123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"013f":function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},"014b":function(e,t,n){"use strict";var r=n("e53d"),i=n("07e3"),o=n("8e60"),s=n("63b6"),a=n("9138"),c=n("ebfd").KEY,u=n("294c"),l=n("dbdb"),f=n("45f2"),h=n("62a0"),d=n("5168"),p=n("ccb9"),g=n("6718"),v=n("47ee"),y=n("9003"),m=n("e4ae"),I=n("f772"),M=n("241e"),C=n("36c3"),T=n("1bc3"),A=n("aebd"),_=n("a159"),b=n("0395"),N=n("bf0b"),E=n("9aa9"),w=n("d9f6"),S=n("c3a1"),O=N.f,D=w.f,L=b.f,R=r.Symbol,j=r.JSON,x=j&&j.stringify,k="prototype",U=d("_hidden"),P=d("toPrimitive"),z={}.propertyIsEnumerable,G=l("symbol-registry"),B=l("symbols"),Y=l("op-symbols"),H=Object[k],$="function"==typeof R&&!!E.f,F=r.QObject,Q=!F||!F[k]||!F[k].findChild,V=o&&u((function(){return 7!=_(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=O(H,t);r&&delete H[t],D(e,t,n),r&&e!==H&&D(H,t,r)}:D,Z=function(e){var t=B[e]=_(R[k]);return t._k=e,t},W=$&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},K=function(e,t,n){return e===H&&K(Y,t,n),m(e),t=T(t,!0),m(n),i(B,t)?(n.enumerable?(i(e,U)&&e[U][t]&&(e[U][t]=!1),n=_(n,{enumerable:A(0,!1)})):(i(e,U)||D(e,U,A(1,{})),e[U][t]=!0),V(e,t,n)):D(e,t,n)},q=function(e,t){m(e);var n,r=v(t=C(t)),i=0,o=r.length;while(o>i)K(e,n=r[i++],t[n]);return e},J=function(e,t){return void 0===t?_(e):q(_(e),t)},X=function(e){var t=z.call(this,e=T(e,!0));return!(this===H&&i(B,e)&&!i(Y,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,U)&&this[U][e])||t)},ee=function(e,t){if(e=C(e),t=T(t,!0),e!==H||!i(B,t)||i(Y,t)){var n=O(e,t);return!n||!i(B,t)||i(e,U)&&e[U][t]||(n.enumerable=!0),n}},te=function(e){var t,n=L(C(e)),r=[],o=0;while(n.length>o)i(B,t=n[o++])||t==U||t==c||r.push(t);return r},ne=function(e){var t,n=e===H,r=L(n?Y:C(e)),o=[],s=0;while(r.length>s)!i(B,t=r[s++])||n&&!i(H,t)||o.push(B[t]);return o};$||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(Y,n),i(this,U)&&i(this[U],e)&&(this[U][e]=!1),V(this,e,A(1,n))};return o&&Q&&V(H,e,{configurable:!0,set:t}),Z(e)},a(R[k],"toString",(function(){return this._k})),N.f=ee,w.f=K,n("6abf").f=b.f=te,n("355d").f=X,E.f=ne,o&&!n("b8e3")&&a(H,"propertyIsEnumerable",X,!0),p.f=function(e){return Z(d(e))}),s(s.G+s.W+s.F*!$,{Symbol:R});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)d(re[ie++]);for(var oe=S(d.store),se=0;oe.length>se;)g(oe[se++]);s(s.S+s.F*!$,"Symbol",{for:function(e){return i(G,e+="")?G[e]:G[e]=R(e)},keyFor:function(e){if(!W(e))throw TypeError(e+" is not a symbol!");for(var t in G)if(G[t]===e)return t},useSetter:function(){Q=!0},useSimple:function(){Q=!1}}),s(s.S+s.F*!$,"Object",{create:J,defineProperty:K,defineProperties:q,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var ae=u((function(){E.f(1)}));s(s.S+s.F*ae,"Object",{getOwnPropertySymbols:function(e){return E.f(M(e))}}),j&&s(s.S+s.F*(!$||u((function(){var e=R();return"[null]"!=x([e])||"{}"!=x({a:e})||"{}"!=x(Object(e))}))),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[1],(I(t)||void 0!==e)&&!W(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!W(t))return t}),r[1]=t,x.apply(j,r)}}),R[k][P]||n("35e8")(R[k],P,R[k].valueOf),f(R,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),s=n("32e9"),a=n("84f2"),c=n("41a0"),u=n("7f20"),l=n("38fd"),f=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",g="values",v=function(){return this};e.exports=function(e,t,n,y,m,I,M){c(n,t,y);var C,T,A,_=function(e){if(!h&&e in w)return w[e];switch(e){case p:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},b=t+" Iterator",N=m==g,E=!1,w=e.prototype,S=w[f]||w[d]||m&&w[m],O=S||_(m),D=m?N?_("entries"):O:void 0,L="Array"==t&&w.entries||S;if(L&&(A=l(L.call(new e)),A!==Object.prototype&&A.next&&(u(A,b,!0),r||"function"==typeof A[f]||s(A,f,v))),N&&S&&S.name!==g&&(E=!0,O=function(){return S.call(this)}),r&&!M||!h&&!E&&w[f]||s(w,f,O),a[t]=O,a[b]=v,m)if(C={values:N?O:_(g),keys:I?O:_(p),entries:D},M)for(T in C)T in w||o(w,T,C[T]);else i(i.P+i.F*(h||E),t,C);return C}},"0293":function(e,t,n){var r=n("241e"),i=n("53e2");n("ce7e")("getPrototypeOf",(function(){return function(e){return i(r(e))}}))},"0298":function(e,t,n){"use strict";var r=n("5ca1"),i=n("4bf8"),o=n("6a99");r(r.P+r.F*n("79e5")((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},"02de":function(e,t,n){"use strict";function r(e){var t=window.getComputedStyle(e),n="none"===t.display,r=null===e.offsetParent&&"fixed"!==t.position;return n||r}n.d(t,"a",(function(){return r}))},"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),c=r(n),u=a.length;return c<0||c>=u?e?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):o:e?a.slice(c,c+2):s-56320+(o-55296<<10)+65536)}}},"036c":function(e,t,n){"use strict";var r=n("5ca1"),i=n("4588"),o=n("bef9"),s=n("9744"),a=1..toFixed,c=Math.floor,u=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f="0",h=function(e,t){var n=-1,r=t;while(++n<6)r+=e*u[n],u[n]=r%1e7,r=c(r/1e7)},d=function(e){var t=6,n=0;while(--t>=0)n+=u[t],u[t]=c(n/e),n=n%e*1e7},p=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==u[e]){var n=String(u[e]);t=""===t?n:t+s.call(f,7-n.length)+n}return t},g=function(e,t,n){return 0===t?n:t%2===1?g(e,t-1,n*e):g(e*e,t/2,n)},v=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n("79e5")((function(){a.call({})}))),"Number",{toFixed:function(e){var t,n,r,a,c=o(this,l),u=i(e),y="",m=f;if(u<0||u>20)throw RangeError(l);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(y="-",c=-c),c>1e-21)if(t=v(c*g(2,69,1))-69,n=t<0?c*g(2,-t,1):c/g(2,t,1),n*=4503599627370496,t=52-t,t>0){h(0,n),r=u;while(r>=7)h(1e7,0),r-=7;h(g(10,r,1),0),r=t-1;while(r>=23)d(1<<23),r-=23;d(1<<r),h(1,1),d(2),m=p()}else h(0,n),h(1<<-t,0),m=p()+s.call(f,u);return u>0?(a=m.length,m=y+(a<=u?"0."+s.call(f,u-a)+m:m.slice(0,a-u)+"."+m.slice(a-u))):m=y+m,m}})},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"0395":function(e,t,n){var r=n("36c3"),i=n("6abf").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return i(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?a(e):i(r(e))}},"042e":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{fround:n("91ca")})},"044b":function(e,t){
- /*!
- * Determine if an object is a Buffer
- *
- * @author Feross Aboukhadijeh <https://feross.org>
- * @license MIT
- */
- e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},"049f":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{log1p:n("d6c6")})},"04ff":function(e,t,n){var r=n("5ca1"),i=n("3ca5");r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},"061b":function(e,t,n){e.exports=n("fa99")},"06a7":function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=r.get,s=r.key;r.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},"06db":function(e,t,n){"use strict";var r=n("23c6"),i={};i[n("2b4c")("toStringTag")]="z",i+""!="[object z]"&&n("2aba")(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"097d":function(e,t,n){"use strict";var r=n("5ca1"),i=n("8378"),o=n("7726"),s=n("ebd6"),a=n("bcaa");r(r.P+r.R,"Promise",{finally:function(e){var t=s(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return a(t,e()).then((function(){return n}))}:e,n?function(n){return a(t,e()).then((function(){throw n}))}:e)}})},"09e0":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},"09fa":function(e,t,n){var r=n("4588"),i=n("9def");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},"0a06":function(e,t,n){"use strict";var r=n("2444"),i=n("c532"),o=n("f6b4"),s=n("5270");function a(e){this.defaults=e,this.interceptors={request:new o,response:new o}}a.prototype.request=function(e){"string"===typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(r,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[s,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},i.forEach(["delete","get","head","options"],(function(e){a.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}})),i.forEach(["post","put","patch"],(function(e){a.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=a},"0a49":function(e,t,n){var r=n("9b43"),i=n("626a"),o=n("4bf8"),s=n("9def"),a=n("cd1c");e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,l=4==e,f=6==e,h=5==e||f,d=t||a;return function(t,a,p){for(var g,v,y=o(t),m=i(y),I=r(a,p,3),M=s(m.length),C=0,T=n?d(t,M):c?d(t,0):void 0;M>C;C++)if((h||C in m)&&(g=m[C],v=I(g,C,y),e))if(n)T[C]=v;else if(v)switch(e){case 3:return!0;case 5:return g;case 6:return C;case 2:T.push(g)}else if(l)return!1;return f?-1:u||l?l:T}}},"0b21":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{sign:n("96fb")})},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0c00":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},"0c36":function(e,t,n){var r=n("5ca1");r(r.G,{global:n("7726")})},"0cd8":function(e,t,n){"use strict";var r=n("5ca1"),i=n("7b23");r(r.P+r.F*!n("2f21")([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},"0d25":function(e,t,n){var r=n("5ca1"),i=n("8079")(),o=n("7726").process,s="process"==n("2d95")(o);r(r.G,{asap:function(e){var t=s&&o.domain;i(t?t.bind(e):e)}})},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},"0d6d":function(e,t,n){var r=n("d3f4"),i=n("67ab").onFreeze;n("5eda")("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e15":function(e,t,n){var r=n("597f");e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},"0f88":function(e,t,n){var r,i=n("7726"),o=n("32e9"),s=n("ca5a"),a=s("typed_array"),c=s("view"),u=!(!i.ArrayBuffer||!i.DataView),l=u,f=0,h=9,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(f<h)(r=i[d[f++]])?(o(r.prototype,a,!0),o(r.prototype,c,!0)):l=!1;e.exports={ABV:u,CONSTR:l,TYPED:a,VIEW:c}},"0fc9":function(e,t,n){var r=n("3a38"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},1098:function(e,t,n){"use strict";t.__esModule=!0;var r=n("17ed"),i=c(r),o=n("f893"),s=c(o),a="function"===typeof s.default&&"symbol"===typeof i.default?function(e){return typeof e}:function(e){return e&&"function"===typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};function c(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof s.default&&"symbol"===a(i.default)?function(e){return"undefined"===typeof e?"undefined":a(e)}:function(e){return e&&"function"===typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"===typeof e?"undefined":a(e)}},"10ad":function(e,t,n){"use strict";var r,i=n("7726"),o=n("0a49")(0),s=n("2aba"),a=n("67ab"),c=n("7333"),u=n("643e"),l=n("d3f4"),f=n("b39a"),h=n("b39a"),d=!i.ActiveXObject&&"ActiveXObject"in i,p="WeakMap",g=a.getWeak,v=Object.isExtensible,y=u.ufstore,m=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},I={get:function(e){if(l(e)){var t=g(e);return!0===t?y(f(this,p)).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(f(this,p),e,t)}},M=e.exports=n("e0b8")(p,m,I,u,!0,!0);h&&d&&(r=u.getConstructor(m,p),c(r.prototype,I),a.NEED=!0,o(["delete","has","get","set"],(function(e){var t=M.prototype,n=t[e];s(t,e,(function(t,i){if(l(t)&&!v(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)}))})))},1169:function(e,t,n){var r=n("2d95");e.exports=Array.isArray||function(e){return"Array"==r(e)}},1173:function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},"11e9":function(e,t,n){var r=n("52a7"),i=n("4630"),o=n("6821"),s=n("6a99"),a=n("69a8"),c=n("c69a"),u=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(n){}if(a(e,t))return i(!r.f.call(e,t),e[t])}},"130f":function(e,t,n){var r=n("5ca1"),i=n("1991");r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},1325:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return u}));var r=n("a142"),i=!1;if(!r["g"])try{var o={};Object.defineProperty(o,"passive",{get:function(){i=!0}}),window.addEventListener("test-passive",null,o)}catch(l){}function s(e,t,n,o){void 0===o&&(o=!1),r["g"]||e.addEventListener(t,n,!!i&&{capture:!1,passive:o})}function a(e,t,n){r["g"]||e.removeEventListener(t,n)}function c(e){e.stopPropagation()}function u(e,t){("boolean"!==typeof e.cancelable||e.cancelable)&&e.preventDefault(),t&&c(e)}},"13d9":function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},1448:function(e,t,n){"use strict";n("386b")("strike",(function(e){return function(){return e(this,"strike","","")}}))},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);var n,s=o(t),a=s.length,c=0;while(a>c)r.f(e,n=s[c++],t[n]);return e}},"14b9":function(e,t,n){var r=n("5ca1");r(r.P,"String",{repeat:n("9744")})},"14e1":function(e,t,n){},"157a":function(e,t,n){},"15ac":function(e,t,n){n("ec30")("Int16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},1654:function(e,t,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"165b":function(e,t,n){var r=n("d3f4");n("5eda")("isExtensible",(function(e){return function(t){return!!r(t)&&(!e||e(t))}}))},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"17ed":function(e,t,n){e.exports={default:n("d8d6"),__esModule:!0}},"18d0":function(e,t,n){var r=n("5ca1"),i=n("3ca5");r(r.G+r.F*(parseInt!=i),{parseInt:i})},1991:function(e,t,n){var r,i,o,s=n("9b43"),a=n("31f4"),c=n("fab2"),u=n("230e"),l=n("7726"),f=l.process,h=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,g=l.Dispatch,v=0,y={},m="onreadystatechange",I=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},M=function(e){I.call(e.data)};h&&d||(h=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return y[++v]=function(){a("function"==typeof e?e:Function(e),t)},r(v),v},d=function(e){delete y[e]},"process"==n("2d95")(f)?r=function(e){f.nextTick(s(I,e,1))}:g&&g.now?r=function(e){g.now(s(I,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=M,r=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",M,!1)):r=m in u("script")?function(e){c.appendChild(u("script"))[m]=function(){c.removeChild(this),I.call(e)}}:function(e){setTimeout(s(I,e,1),0)}),e.exports={set:h,clear:d}},"1af6":function(e,t,n){var r=n("63b6");r(r.S,"Array",{isArray:n("9003")})},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1c01":function(e,t,n){var r=n("5ca1");r(r.S+r.F*!n("9e1e"),"Object",{defineProperty:n("86cc").f})},"1c4c":function(e,t,n){"use strict";var r=n("9b43"),i=n("5ca1"),o=n("4bf8"),s=n("1fa8"),a=n("33a4"),c=n("9def"),u=n("f1ae"),l=n("27ee");i(i.S+i.F*!n("5cc5")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,f,h=o(e),d="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,y=0,m=l(h);if(v&&(g=r(g,p>2?arguments[2]:void 0,2)),void 0==m||d==Array&&a(m))for(t=c(h.length),n=new d(t);t>y;y++)u(n,y,v?g(h[y],y):h[y]);else for(f=m.call(h),n=new d;!(i=f.next()).done;y++)u(n,y,v?s(f,g,[i.value,y],!0):i.value);return n.length=y,n}})},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},"1df8":function(e,t,n){var r=n("63b6");r(r.S,"Object",{setPrototypeOf:n("ead6").set})},"1ec9":function(e,t,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"1f18":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},"1f91":function(e,t,n){var r=n("5ca1"),i=n("e9d2"),o=n("91ca");r(r.S,"Math",{fscale:function(e,t,n,r,s){return o(i(e,t,n,r,s))}})},"1fa8":function(e,t,n){var r=n("cb7c");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(s){var o=e["return"];throw void 0!==o&&r(o.call(e)),s}}},"1fb5":function(e,t,n){"use strict";t.byteLength=l,t.toByteArray=h,t.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function l(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,r=u(e),s=r[0],a=r[1],c=new o(f(e,s,a)),l=0,h=a>0?s-4:s;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t),1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(d(r));return i.join("")}function g(e){for(var t,n=e.length,i=n%3,o=[],s=16383,a=0,c=n-i;a<c;a+=s)o.push(p(e,a,a+s>c?c:a+s));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"20d6":function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(6),o="findIndex",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),r(r.P+r.F*s,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},"20fd":function(e,t,n){"use strict";var r=n("d9f6"),i=n("aebd");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),s=n("be13"),a=n("2b4c"),c=n("520a"),u=a("species"),l=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=a(e),d=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=d?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[h](""),!t})):void 0;if(!d||!p||"replace"===e&&!l||"split"===e&&!f){var g=/./[h],v=n(s,h,""[e],(function(e,t,n,r,i){return t.exec===c?d&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),y=v[0],m=v[1];r(String.prototype,e,y),i(RegExp.prototype,h,2==t?function(e,t){return m.call(e,this,t)}:function(e){return m.call(e,this)})}}},"217b":function(e,t,n){"use strict";var r=n("d3f4"),i=n("38fd"),o=n("2b4c")("hasInstance"),s=Function.prototype;o in s||n("86cc").f(s,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;while(e=i(e))if(this.prototype===e)return!0;return!1}})},"21a1":function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var n=e((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&e(n)?o(t(n),n,r):n}function r(t,r,i){var s=t.slice();return r.forEach((function(r,a){"undefined"===typeof s[a]?s[a]=n(r,i):e(r)?s[a]=o(t[a],r,i):-1===t.indexOf(r)&&s.push(n(r,i))})),s}function i(t,r,i){var s={};return e(t)&&Object.keys(t).forEach((function(e){s[e]=n(t[e],i)})),Object.keys(r).forEach((function(a){e(r[a])&&t[a]?s[a]=o(t[a],r[a],i):s[a]=n(r[a],i)})),s}function o(e,t,o){var s=Array.isArray(t),a=o||{arrayMerge:r},c=a.arrayMerge||r;return s?Array.isArray(e)?c(e,t,o):n(t,o):i(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return o(e,n,t)}))},o}))}));function r(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map((function(e){e(n)})),(e["*"]||[]).map((function(e){e(t,n)}))}}}var i=e((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),o=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},s=i.svg,a=i.xlink,c={};c[s.name]=s.uri,c[a.name]=a.uri;var u,l=function(e,t){void 0===e&&(e="");var r=n(c,t||{}),i=o(r);return"<svg "+i+">"+e+"</svg>"},f=i.svg,h=i.xlink,d={attrs:(u={style:["position: absolute","width: 0","height: 0"].join("; ")},u[f.name]=f.uri,u[h.name]=h.uri,u)},p=function(e){this.config=n(d,e||{}),this.symbols=[]};p.prototype.add=function(e){var t=this,n=t.symbols,r=this.find(e.id);return r?(n[n.indexOf(r)]=e,!1):(n.push(e),!0)},p.prototype.remove=function(e){var t=this,n=t.symbols,r=this.find(e);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},p.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},p.prototype.has=function(e){return null!==this.find(e)},p.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map((function(e){return e.stringify()})).join("");return l(n,t)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))};var g=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};g.prototype.stringify=function(){return this.content},g.prototype.toString=function(){return this.stringify()},g.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var v=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},y=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return v(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(g),m={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},I=function(e){return Array.prototype.slice.call(e,0)},M=navigator.userAgent,C={isChrome:/chrome/i.test(M),isFirefox:/firefox/i.test(M),isIE:/msie/i.test(M)||/trident/i.test(M),isEdge:/edge/i.test(M)},T=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},A=function(e){var t=[];return I(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},_=function(e){return(e||window.location.href).split("#")[0]},b=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,n,r){T(e,{oldUrl:r,newUrl:n})}))}])},N="linearGradient, radialGradient, pattern",E=function(e,t){return void 0===t&&(t=N),I(e.querySelectorAll("symbol")).forEach((function(e){I(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e};function w(e,t){var n=I(e).reduce((function(e,n){if(!n.attributes)return e;var r=I(n.attributes),i=t?r.filter(t):r;return e.concat(i)}),[]);return n}var S=i.xlink.uri,O="xlink:href",D=/[{}|\\\^\[\]`"<>]/g;function L(e){return e.replace(D,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}function R(e,t,n){return I(e).forEach((function(e){var r=e.getAttribute(O);if(r&&0===r.indexOf(t)){var i=r.replace(t,n);e.setAttributeNS(S,O,i)}})),e}var j,x=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],k=x.map((function(e){return"["+e+"]"})).join(","),U=function(e,t,n,r){var i=L(n),o=L(r),s=e.querySelectorAll(k),a=w(s,(function(e){var t=e.localName,n=e.value;return-1!==x.indexOf(t)&&-1!==n.indexOf("url("+i)}));a.forEach((function(e){return e.value=e.value.replace(i,o)})),R(t,i,o)},P={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},z=function(e){function t(t){var i=this;void 0===t&&(t={}),e.call(this,n(m,t));var o=r();this._emitter=o,this.node=null;var s=this,a=s.config;if(a.autoConfigure&&this._autoConfigure(t),a.syncUrlsWithBaseTag){var c=document.getElementsByTagName("base")[0].getAttribute("href");o.on(P.MOUNT,(function(){return i.updateUrls("#",c)}))}var u=this._handleLocationChange.bind(this);this._handleLocationChange=u,a.listenLocationChangeEvent&&window.addEventListener(a.locationChangeEvent,u),a.locationChangeAngularEmitter&&b(a.locationChangeEvent),o.on(P.MOUNT,(function(e){a.moveGradientsOutsideSymbol&&E(e)})),o.on(P.SYMBOL_MOUNT,(function(e){a.moveGradientsOutsideSymbol&&E(e.parentNode),(C.isIE||C.isEdge)&&A(e)}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this,n=t.config;"undefined"===typeof e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="angular"in window),"undefined"===typeof e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=C.isFirefox)},t.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,r=t.newUrl;this.updateUrls(n,r)},t.prototype.add=function(t){var n=this,r=e.prototype.add.call(this,t);return this.isMounted&&r&&(t.mount(n.node),this._emitter.emit(P.SYMBOL_MOUNT,t.node)),r},t.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e;return n.node=r,this.symbols.forEach((function(e){e.mount(n.node),t._emitter.emit(P.SYMBOL_MOUNT,e.node)})),I(r.querySelectorAll("symbol")).forEach((function(e){var t=y.createFromExistingNode(e);t.node=e,n.add(t)})),this._emitter.emit(P.MOUNT,r),r},t.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,r=e._emitter;n.forEach((function(e){return e.destroy()})),r.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e,i=n.render();return this.node=i,t&&r.childNodes[0]?r.insertBefore(i,r.childNodes[0]):r.appendChild(i),this._emitter.emit(P.MOUNT,i),i},t.prototype.render=function(){return v(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return U(this.node,n,_(e)+"#",_(t)+"#"),!0},Object.defineProperties(t.prototype,i),t}(p),G=e((function(e){
- /*!
- * domready (c) Dustin Diaz 2014 - License MIT
- */
- !function(t,n){e.exports=n()}(0,(function(){var e,t=[],n=document,r=n.documentElement.doScroll,i="DOMContentLoaded",o=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return o||n.addEventListener(i,e=function(){n.removeEventListener(i,e),o=1;while(e=t.shift())e()}),function(e){o?setTimeout(e,0):t.push(e)}}))})),B="__SVG_SPRITE_NODE__",Y="__SVG_SPRITE__",H=!!window[Y];H?j=window[Y]:(j=new z({attrs:{id:B}}),window[Y]=j);var $=function(){var e=document.getElementById(B);e?j.attach(e):j.mount(document.body,!0)};document.body?$():G($);var F=j;return F}))}).call(this,n("c8ba"))},2251:function(e,t,n){var r=n("5ca1"),i=n("cb7c"),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},2397:function(e,t,n){var r=n("5ca1"),i=n("2aeb"),o=n("d8e8"),s=n("cb7c"),a=n("d3f4"),c=n("79e5"),u=n("f0c1"),l=(n("7726").Reflect||{}).construct,f=c((function(){function e(){}return!(l((function(){}),[],e)instanceof e)})),h=!c((function(){l((function(){}))}));r(r.S+r.F*(f||h),"Reflect",{construct:function(e,t){o(e),s(t);var n=arguments.length<3?e:o(arguments[2]);if(h&&!f)return l(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var c=n.prototype,d=i(a(c)?c:Object.prototype),p=Function.apply.call(e,d,t);return a(p)?p:d}})},"23be":function(e,t,n){"use strict";n("aa77")("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},"23bf":function(e,t,n){"use strict";var r=n("5ca1"),i=n("fab2"),o=n("2d95"),s=n("77f1"),a=n("9def"),c=[].slice;r(r.P+r.F*n("79e5")((function(){i&&c.call(i)})),"Array",{slice:function(e,t){var n=a(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return c.call(this,e,t);for(var i=s(e,n),u=s(t,n),l=a(u-i),f=new Array(l),h=0;h<l;h++)f[h]="String"==r?this.charAt(i+h):this[i+h];return f}})},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},"23db":function(e,t,n){(function(e,n){var r=9007199254740991,i="[object Arguments]",o="[object Function]",s="[object GeneratorFunction]",a="[object Map]",c="[object Object]",u="[object Promise]",l="[object Set]",f="[object WeakMap]",h="[object DataView]",d=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,g="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,y=g||v||Function("return this")(),m=t&&!t.nodeType&&t,I=m&&"object"==typeof n&&n&&!n.nodeType&&n,M=I&&I.exports===m;function C(e,t){return null==e?void 0:e[t]}function T(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function A(e,t){return function(n){return e(t(n))}}var _=Function.prototype,b=Object.prototype,N=y["__core-js_shared__"],E=function(){var e=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),w=_.toString,S=b.hasOwnProperty,O=b.toString,D=RegExp("^"+w.call(S).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=M?y.Buffer:void 0,R=b.propertyIsEnumerable,j=L?L.isBuffer:void 0,x=A(Object.keys,Object),k=W(y,"DataView"),U=W(y,"Map"),P=W(y,"Promise"),z=W(y,"Set"),G=W(y,"WeakMap"),B=!R.call({valueOf:1},"valueOf"),Y=X(k),H=X(U),$=X(P),F=X(z),Q=X(G);function V(e){return O.call(e)}function Z(e){if(!ce(e)||q(e))return!1;var t=se(e)||T(e)?D:p;return t.test(X(e))}function W(e,t){var n=C(e,t);return Z(n)?n:void 0}var K=V;function q(e){return!!E&&E in e}function J(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||b;return e===n}function X(e){if(null!=e){try{return w.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ee(e){return re(e)&&S.call(e,"callee")&&(!R.call(e,"callee")||O.call(e)==i)}(k&&K(new k(new ArrayBuffer(1)))!=h||U&&K(new U)!=a||P&&K(P.resolve())!=u||z&&K(new z)!=l||G&&K(new G)!=f)&&(K=function(e){var t=O.call(e),n=t==c?e.constructor:void 0,r=n?X(n):void 0;if(r)switch(r){case Y:return h;case H:return a;case $:return u;case F:return l;case Q:return f}return t});var te=Array.isArray;function ne(e){return null!=e&&ae(e.length)&&!se(e)}function re(e){return ue(e)&&ne(e)}var ie=j||le;function oe(e){if(ne(e)&&(te(e)||"string"==typeof e||"function"==typeof e.splice||ie(e)||ee(e)))return!e.length;var t=K(e);if(t==a||t==l)return!e.size;if(B||J(e))return!x(e).length;for(var n in e)if(S.call(e,n))return!1;return!0}function se(e){var t=ce(e)?O.call(e):"";return t==o||t==s}function ae(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function ce(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ue(e){return!!e&&"object"==typeof e}function le(){return!1}n.exports=oe}).call(this,n("c8ba"),n("62e4")(e))},"241e":function(e,t,n){var r=n("25eb");e.exports=function(e){return Object(r(e))}},"242a":function(e,t,n){"use strict";n("386b")("sup",(function(e){return function(){return e(this,"sup","","")}}))},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function a(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t)&&(e=n("b50d")),e}var c={adapter:a(),transformRequest:[function(e,t){return i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(o)})),e.exports=c}).call(this,n("4362"))},"24c5":function(e,t,n){"use strict";var r,i,o,s,a=n("b8e3"),c=n("e53d"),u=n("d864"),l=n("40c3"),f=n("63b6"),h=n("f772"),d=n("79aa"),p=n("1173"),g=n("a22a"),v=n("f201"),y=n("4178").set,m=n("aba2")(),I=n("656e"),M=n("4439"),C=n("bc13"),T=n("cd78"),A="Promise",_=c.TypeError,b=c.process,N=b&&b.versions,E=N&&N.v8||"",w=c[A],S="process"==l(b),O=function(){},D=i=I.f,L=!!function(){try{var e=w.resolve(1),t=(e.constructor={})[n("5168")("species")]=function(e){e(O,O)};return(S||"function"==typeof PromiseRejectionEvent)&&e.then(O)instanceof t&&0!==E.indexOf("6.6")&&-1===C.indexOf("Chrome/66")}catch(r){}}(),R=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},j=function(e,t){if(!e._n){e._n=!0;var n=e._c;m((function(){var r=e._v,i=1==e._s,o=0,s=function(t){var n,o,s,a=i?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{a?(i||(2==e._h&&U(e),e._h=1),!0===a?n=r:(l&&l.enter(),n=a(r),l&&(l.exit(),s=!0)),n===t.promise?u(_("Promise-chain cycle")):(o=R(n))?o.call(n,c,u):c(n)):u(r)}catch(f){l&&!s&&l.exit(),u(f)}};while(n.length>o)s(n[o++]);e._c=[],e._n=!1,t&&!e._h&&x(e)}))}},x=function(e){y.call(c,(function(){var t,n,r,i=e._v,o=k(e);if(o&&(t=M((function(){S?b.emit("unhandledRejection",i,e):(n=c.onunhandledrejection)?n({promise:e,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=S||k(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},k=function(e){return 1!==e._h&&0===(e._a||e._c).length},U=function(e){y.call(c,(function(){var t;S?b.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},P=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),j(t,!0))},z=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw _("Promise can't be resolved itself");(t=R(e))?m((function(){var r={_w:n,_d:!1};try{t.call(e,u(z,r,1),u(P,r,1))}catch(i){P.call(r,i)}})):(n._v=e,n._s=1,j(n,!1))}catch(r){P.call({_w:n,_d:!1},r)}}};L||(w=function(e){p(this,w,A,"_h"),d(e),r.call(this);try{e(u(z,this,1),u(P,this,1))}catch(t){P.call(this,t)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("5c95")(w.prototype,{then:function(e,t){var n=D(v(this,w));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=S?b.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&j(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=u(z,e,1),this.reject=u(P,e,1)},I.f=D=function(e){return e===w||e===s?new o(e):i(e)}),f(f.G+f.W+f.F*!L,{Promise:w}),n("45f2")(w,A),n("4c95")(A),s=n("584a")[A],f(f.S+f.F*!L,A,{reject:function(e){var t=D(this),n=t.reject;return n(e),t.promise}}),f(f.S+f.F*(a||!L),A,{resolve:function(e){return T(a&&this===s?w:this,e)}}),f(f.S+f.F*!(L&&n("4ee1")((function(e){w.all(e)["catch"](O)}))),A,{all:function(e){var t=this,n=D(t),r=n.resolve,i=n.reject,o=M((function(){var n=[],o=0,s=1;g(e,!1,(function(e){var a=o++,c=!1;n.push(void 0),s++,t.resolve(e).then((function(e){c||(c=!0,n[a]=e,--s||r(n))}),i)})),--s||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=D(t),r=n.reject,i=M((function(){g(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},"25b0":function(e,t,n){n("1df8"),e.exports=n("584a").Object.setPrototypeOf},"25c9":function(e,t,n){var r=n("5ca1"),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},"25db":function(e,t,n){n("5eda")("getOwnPropertyNames",(function(){return n("7bbc").f}))},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"262f":function(e,t,n){var r=n("5ca1");r(r.G+r.W+r.F*!n("0f88").ABV,{DataView:n("ed0b").DataView})},2638:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)}var i=["attrs","props","domProps"],o=["class","style","directives"],s=["on","nativeOn"],a=function(e){return e.reduce((function(e,t){for(var n in t)if(e[n])if(-1!==i.indexOf(n))e[n]=r({},e[n],t[n]);else if(-1!==o.indexOf(n)){var a=e[n]instanceof Array?e[n]:[e[n]],u=t[n]instanceof Array?t[n]:[t[n]];e[n]=a.concat(u)}else if(-1!==s.indexOf(n))for(var l in t[n])if(e[n][l]){var f=e[n][l]instanceof Array?e[n][l]:[e[n][l]],h=t[n][l]instanceof Array?t[n][l]:[t[n][l]];e[n][l]=f.concat(h)}else e[n][l]=t[n][l];else if("hook"==n)for(var d in t[n])e[n][d]=e[n][d]?c(e[n][d],t[n][d]):t[n][d];else e[n]=t[n];else e[n]=t[n];return e}),{})},c=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}};e.exports=a},"268f":function(e,t,n){e.exports=n("fde4")},2748:function(e,t,n){var r=n("5ca1"),i=180/Math.PI;r(r.S,"Math",{degrees:function(e){return e*i}})},"27ee":function(e,t,n){var r=n("23c6"),i=n("2b4c")("iterator"),o=n("84f2");e.exports=n("8378").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},2877:function(e,t,n){"use strict";function r(e,t,n,r,i,o,s,a){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=c):i&&(c=a?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},"28a5":function(e,t,n){"use strict";var r=n("aae3"),i=n("cb7c"),o=n("ebd6"),s=n("0390"),a=n("9def"),c=n("5f1b"),u=n("520a"),l=n("79e5"),f=Math.min,h=[].push,d="split",p="length",g="lastIndex",v=4294967295,y=!l((function(){RegExp(v,"y")}));n("214f")("split",2,(function(e,t,n,l){var m;return m="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[p]||2!="ab"[d](/(?:ab)*/)[p]||4!="."[d](/(.?)(.?)/)[p]||"."[d](/()()/)[p]>1||""[d](/.?/)[p]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(i,e,t);var o,s,a,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=void 0===t?v:t>>>0,y=new RegExp(e.source,l+"g");while(o=u.call(y,i)){if(s=y[g],s>f&&(c.push(i.slice(f,o.index)),o[p]>1&&o.index<i[p]&&h.apply(c,o.slice(1)),a=o[0][p],f=s,c[p]>=d))break;y[g]===o.index&&y[g]++}return f===i[p]?!a&&y.test("")||c.push(""):c.push(i.slice(f)),c[p]>d?c.slice(0,d):c}:"0"[d](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var i=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i,r):m.call(String(i),n,r)},function(e,t){var r=l(m,e,this,t,m!==n);if(r.done)return r.value;var u=i(e),h=String(this),d=o(u,RegExp),p=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(y?"y":"g"),I=new d(y?u:"^(?:"+u.source+")",g),M=void 0===t?v:t>>>0;if(0===M)return[];if(0===h.length)return null===c(I,h)?[h]:[];var C=0,T=0,A=[];while(T<h.length){I.lastIndex=y?T:0;var _,b=c(I,y?h:h.slice(T));if(null===b||(_=f(a(I.lastIndex+(y?0:T)),h.length))===C)T=s(h,T,p);else{if(A.push(h.slice(C,T)),A.length===M)return A;for(var N=1;N<=b.length-1;N++)if(A.push(b[N]),A.length===M)return A;T=C=_}}return A.push(h.slice(C)),A}]}))},"28e4":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("9b43"),s=n("4a59");e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,a,c=arguments[1];return i(this),t=void 0!==c,t&&i(c),void 0==e?new this:(n=[],t?(r=0,a=o(c,arguments[2],2),s(e,!1,(function(e){n.push(a(e,r++))}))):s(e,!1,n.push,n),new this(n))}})}},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),c="toString",u=(""+a).split(c);n("8378").inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,s)||i(n,s,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},c="prototype",u=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",s=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+s+"document.F=Object"+i+"/script"+s),e.close(),u=e.F;while(r--)delete u[c][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[c]=r(e),n=new a,a[c]=null,n[s]=e):n=u(),void 0===t?n:i(n,t)}},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){
- /*!
- * Vue.js v2.6.10
- * (c) 2014-2019 Evan You
- * Released under the MIT License.
- */
- var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function o(e){return!0===e}function s(e){return!1===e}function a(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function l(e){return"[object Object]"===u.call(e)}function f(e){return"[object RegExp]"===u.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function g(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}v("slot,component",!0);var y=v("key,ref,slot,slot-scope,is");function m(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var I=Object.prototype.hasOwnProperty;function M(e,t){return I.call(e,t)}function C(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var T=/-(\w)/g,A=C((function(e){return e.replace(T,(function(e,t){return t?t.toUpperCase():""}))})),_=C((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),b=/\B([A-Z])/g,N=C((function(e){return e.replace(b,"-$1").toLowerCase()}));function E(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function w(e,t){return e.bind(t)}var S=Function.prototype.bind?w:E;function O(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function D(e,t){for(var n in t)e[n]=t[n];return e}function L(e){for(var t={},n=0;n<e.length;n++)e[n]&&D(t,e[n]);return t}function R(e,t,n){}var j=function(e,t,n){return!1},x=function(e){return e};function k(e,t){if(e===t)return!0;var n=c(e),r=c(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return k(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var s=Object.keys(e),a=Object.keys(t);return s.length===a.length&&s.every((function(n){return k(e[n],t[n])}))}catch(u){return!1}}function U(e,t){for(var n=0;n<e.length;n++)if(k(e[n],t))return n;return-1}function P(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var z="data-server-rendered",G=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],Y={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:j,isReservedAttr:j,isUnknownElement:j,getTagNamespace:R,parsePlatformTagName:x,mustUseProp:j,async:!0,_lifecycleHooks:B},H=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function $(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function F(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var Q=new RegExp("[^"+H.source+".$_\\d]");function V(e){if(!Q.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var Z,W="__proto__"in{},K="undefined"!==typeof window,q="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=q&&WXEnvironment.platform.toLowerCase(),X=K&&window.navigator.userAgent.toLowerCase(),ee=X&&/msie|trident/.test(X),te=X&&X.indexOf("msie 9.0")>0,ne=X&&X.indexOf("edge/")>0,re=(X&&X.indexOf("android"),X&&/iphone|ipad|ipod|ios/.test(X)||"ios"===J),ie=(X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X),X&&X.match(/firefox\/(\d+)/)),oe={}.watch,se=!1;if(K)try{var ae={};Object.defineProperty(ae,"passive",{get:function(){se=!0}}),window.addEventListener("test-passive",null,ae)}catch(As){}var ce=function(){return void 0===Z&&(Z=!K&&!q&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),Z},ue=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"===typeof e&&/native code/.test(e.toString())}var fe,he="undefined"!==typeof Symbol&&le(Symbol)&&"undefined"!==typeof Reflect&&le(Reflect.ownKeys);fe="undefined"!==typeof Set&&le(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var de=R,pe=0,ge=function(){this.id=pe++,this.subs=[]};ge.prototype.addSub=function(e){this.subs.push(e)},ge.prototype.removeSub=function(e){m(this.subs,e)},ge.prototype.depend=function(){ge.target&&ge.target.addDep(this)},ge.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},ge.target=null;var ve=[];function ye(e){ve.push(e),ge.target=e}function me(){ve.pop(),ge.target=ve[ve.length-1]}var Ie=function(e,t,n,r,i,o,s,a){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Me={child:{configurable:!0}};Me.child.get=function(){return this.componentInstance},Object.defineProperties(Ie.prototype,Me);var Ce=function(e){void 0===e&&(e="");var t=new Ie;return t.text=e,t.isComment=!0,t};function Te(e){return new Ie(void 0,void 0,void 0,String(e))}function Ae(e){var t=new Ie(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var _e=Array.prototype,be=Object.create(_e),Ne=["push","pop","shift","unshift","splice","sort","reverse"];Ne.forEach((function(e){var t=_e[e];F(be,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=t.apply(this,n),s=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&s.observeArray(i),s.dep.notify(),o}))}));var Ee=Object.getOwnPropertyNames(be),we=!0;function Se(e){we=e}var Oe=function(e){this.value=e,this.dep=new ge,this.vmCount=0,F(e,"__ob__",this),Array.isArray(e)?(W?De(e,be):Le(e,be,Ee),this.observeArray(e)):this.walk(e)};function De(e,t){e.__proto__=t}function Le(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];F(e,o,t[o])}}function Re(e,t){var n;if(c(e)&&!(e instanceof Ie))return M(e,"__ob__")&&e.__ob__ instanceof Oe?n=e.__ob__:we&&!ce()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Oe(e)),t&&n&&n.vmCount++,n}function je(e,t,n,r,i){var o=new ge,s=Object.getOwnPropertyDescriptor(e,t);if(!s||!1!==s.configurable){var a=s&&s.get,c=s&&s.set;a&&!c||2!==arguments.length||(n=e[t]);var u=!i&&Re(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=a?a.call(e):n;return ge.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(t)&&Ue(t))),t},set:function(t){var r=a?a.call(e):n;t===r||t!==t&&r!==r||a&&!c||(c?c.call(e,t):n=t,u=!i&&Re(t),o.notify())}})}}function xe(e,t,n){if(Array.isArray(e)&&h(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(je(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function ke(e,t){if(Array.isArray(e)&&h(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||M(e,t)&&(delete e[t],n&&n.dep.notify())}}function Ue(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Ue(t)}Oe.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)je(e,t[n])},Oe.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Re(e[t])};var Pe=Y.optionMergeStrategies;function ze(e,t){if(!t)return e;for(var n,r,i,o=he?Reflect.ownKeys(t):Object.keys(t),s=0;s<o.length;s++)n=o[s],"__ob__"!==n&&(r=e[n],i=t[n],M(e,n)?r!==i&&l(r)&&l(i)&&ze(r,i):xe(e,n,i));return e}function Ge(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,i="function"===typeof e?e.call(n,n):e;return r?ze(r,i):i}:t?e?function(){return ze("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function Be(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?Ye(n):n}function Ye(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function He(e,t,n,r){var i=Object.create(e||null);return t?D(i,t):i}Pe.data=function(e,t,n){return n?Ge(e,t,n):t&&"function"!==typeof t?e:Ge(e,t)},B.forEach((function(e){Pe[e]=Be})),G.forEach((function(e){Pe[e+"s"]=He})),Pe.watch=function(e,t,n,r){if(e===oe&&(e=void 0),t===oe&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in D(i,e),t){var s=i[o],a=t[o];s&&!Array.isArray(s)&&(s=[s]),i[o]=s?s.concat(a):Array.isArray(a)?a:[a]}return i},Pe.props=Pe.methods=Pe.inject=Pe.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return D(i,e),t&&D(i,t),i},Pe.provide=Ge;var $e=function(e,t){return void 0===t?e:t};function Fe(e,t){var n=e.props;if(n){var r,i,o,s={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=A(i),s[o]={type:null})}else if(l(n))for(var a in n)i=n[a],o=A(a),s[o]=l(i)?i:{type:i};else 0;e.props=s}}function Qe(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(l(n))for(var o in n){var s=n[o];r[o]=l(s)?D({from:o},s):{from:s}}else 0}}function Ve(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"===typeof r&&(t[n]={bind:r,update:r})}}function Ze(e,t,n){if("function"===typeof t&&(t=t.options),Fe(t,n),Qe(t,n),Ve(t),!t._base&&(t.extends&&(e=Ze(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Ze(e,t.mixins[r],n);var o,s={};for(o in e)a(o);for(o in t)M(e,o)||a(o);function a(r){var i=Pe[r]||$e;s[r]=i(e[r],t[r],n,r)}return s}function We(e,t,n,r){if("string"===typeof n){var i=e[t];if(M(i,n))return i[n];var o=A(n);if(M(i,o))return i[o];var s=_(o);if(M(i,s))return i[s];var a=i[n]||i[o]||i[s];return a}}function Ke(e,t,n,r){var i=t[e],o=!M(n,e),s=n[e],a=et(Boolean,i.type);if(a>-1)if(o&&!M(i,"default"))s=!1;else if(""===s||s===N(e)){var c=et(String,i.type);(c<0||a<c)&&(s=!0)}if(void 0===s){s=qe(r,i,e);var u=we;Se(!0),Re(s),Se(u)}return s}function qe(e,t,n){if(M(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof r&&"Function"!==Je(t.type)?r.call(e):r}}function Je(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Xe(e,t){return Je(e)===Je(t)}function et(e,t){if(!Array.isArray(t))return Xe(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Xe(t[n],e))return n;return-1}function tt(e,t,n){ye();try{if(t){var r=t;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var s=!1===i[o].call(r,e,t,n);if(s)return}catch(As){rt(As,r,"errorCaptured hook")}}}rt(e,t,n)}finally{me()}}function nt(e,t,n,r,i){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&d(o)&&!o._handled&&(o.catch((function(e){return tt(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(As){tt(As,r,i)}return o}function rt(e,t,n){if(Y.errorHandler)try{return Y.errorHandler.call(null,e,t,n)}catch(As){As!==e&&it(As,null,"config.errorHandler")}it(e,t,n)}function it(e,t,n){if(!K&&!q||"undefined"===typeof console)throw e;console.error(e)}var ot,st=!1,at=[],ct=!1;function ut(){ct=!1;var e=at.slice(0);at.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&le(Promise)){var lt=Promise.resolve();ot=function(){lt.then(ut),re&&setTimeout(R)},st=!0}else if(ee||"undefined"===typeof MutationObserver||!le(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ot="undefined"!==typeof setImmediate&&le(setImmediate)?function(){setImmediate(ut)}:function(){setTimeout(ut,0)};else{var ft=1,ht=new MutationObserver(ut),dt=document.createTextNode(String(ft));ht.observe(dt,{characterData:!0}),ot=function(){ft=(ft+1)%2,dt.data=String(ft)},st=!0}function pt(e,t){var n;if(at.push((function(){if(e)try{e.call(t)}catch(As){tt(As,t,"nextTick")}else n&&n(t)})),ct||(ct=!0,ot()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var gt=new fe;function vt(e){yt(e,gt),gt.clear()}function yt(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!c(e)||Object.isFrozen(e)||e instanceof Ie)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i){n=e.length;while(n--)yt(e[n],t)}else{r=Object.keys(e),n=r.length;while(n--)yt(e[r[n]],t)}}}var mt=C((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function It(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return nt(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)nt(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function Mt(e,t,n,i,s,a){var c,u,l,f;for(c in e)u=e[c],l=t[c],f=mt(c),r(u)||(r(l)?(r(u.fns)&&(u=e[c]=It(u,a)),o(f.once)&&(u=e[c]=s(f.name,u,f.capture)),n(f.name,u,f.capture,f.passive,f.params)):u!==l&&(l.fns=u,e[c]=l));for(c in t)r(e[c])&&(f=mt(c),i(f.name,t[c],f.capture))}function Ct(e,t,n){var s;e instanceof Ie&&(e=e.data.hook||(e.data.hook={}));var a=e[t];function c(){n.apply(this,arguments),m(s.fns,c)}r(a)?s=It([c]):i(a.fns)&&o(a.merged)?(s=a,s.fns.push(c)):s=It([a,c]),s.merged=!0,e[t]=s}function Tt(e,t,n){var o=t.options.props;if(!r(o)){var s={},a=e.attrs,c=e.props;if(i(a)||i(c))for(var u in o){var l=N(u);At(s,c,u,l,!0)||At(s,a,u,l,!1)}return s}}function At(e,t,n,r,o){if(i(t)){if(M(t,n))return e[n]=t[n],o||delete t[n],!0;if(M(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function _t(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function bt(e){return a(e)?[Te(e)]:Array.isArray(e)?Et(e):void 0}function Nt(e){return i(e)&&i(e.text)&&s(e.isComment)}function Et(e,t){var n,s,c,u,l=[];for(n=0;n<e.length;n++)s=e[n],r(s)||"boolean"===typeof s||(c=l.length-1,u=l[c],Array.isArray(s)?s.length>0&&(s=Et(s,(t||"")+"_"+n),Nt(s[0])&&Nt(u)&&(l[c]=Te(u.text+s[0].text),s.shift()),l.push.apply(l,s)):a(s)?Nt(u)?l[c]=Te(u.text+s):""!==s&&l.push(Te(s)):Nt(s)&&Nt(u)?l[c]=Te(u.text+s.text):(o(e._isVList)&&i(s.tag)&&r(s.key)&&i(t)&&(s.key="__vlist"+t+"_"+n+"__"),l.push(s)));return l}function wt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function St(e){var t=Ot(e.$options.inject,e);t&&(Se(!1),Object.keys(t).forEach((function(n){je(e,n,t[n])})),Se(!0))}function Ot(e,t){if(e){for(var n=Object.create(null),r=he?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var s=e[o].from,a=t;while(a){if(a._provided&&M(a._provided,s)){n[o]=a._provided[s];break}a=a.$parent}if(!a)if("default"in e[o]){var c=e[o].default;n[o]="function"===typeof c?c.call(t):c}else 0}}return n}}function Dt(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==t&&o.fnContext!==t||!s||null==s.slot)(n.default||(n.default=[])).push(o);else{var a=s.slot,c=n[a]||(n[a]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(Lt)&&delete n[u];return n}function Lt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Rt(e,t,r){var i,o=Object.keys(t).length>0,s=e?!!e.$stable:!o,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&r&&r!==n&&a===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=jt(t,c,e[c]))}else i={};for(var u in t)u in i||(i[u]=xt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),F(i,"$stable",s),F(i,"$key",a),F(i,"$hasNormal",o),i}function jt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:bt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function xt(e,t){return function(){return e[t]}}function kt(e,t){var n,r,o,s,a;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,o=e.length;r<o;r++)n[r]=t(e[r],r);else if("number"===typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(c(e))if(he&&e[Symbol.iterator]){n=[];var u=e[Symbol.iterator](),l=u.next();while(!l.done)n.push(t(l.value,n.length)),l=u.next()}else for(s=Object.keys(e),n=new Array(s.length),r=0,o=s.length;r<o;r++)a=s[r],n[r]=t(e[a],a,r);return i(n)||(n=[]),n._isVList=!0,n}function Ut(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=D(D({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var s=n&&n.slot;return s?this.$createElement("template",{slot:s},i):i}function Pt(e){return We(this.$options,"filters",e,!0)||x}function zt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Gt(e,t,n,r,i){var o=Y.keyCodes[t]||n;return i&&r&&!Y.keyCodes[t]?zt(i,r):o?zt(o,e):r?N(r)!==t:void 0}function Bt(e,t,n,r,i){if(n)if(c(n)){var o;Array.isArray(n)&&(n=L(n));var s=function(s){if("class"===s||"style"===s||y(s))o=e;else{var a=e.attrs&&e.attrs.type;o=r||Y.mustUseProp(t,a,s)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=A(s),u=N(s);if(!(c in o)&&!(u in o)&&(o[s]=n[s],i)){var l=e.on||(e.on={});l["update:"+s]=function(e){n[s]=e}}};for(var a in n)s(a)}else;return e}function Yt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),$t(r,"__static__"+e,!1)),r}function Ht(e,t,n){return $t(e,"__once__"+t+(n?"_"+n:""),!0),e}function $t(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&Ft(e[r],t+"_"+r,n);else Ft(e,t,n)}function Ft(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Qt(e,t){if(t)if(l(t)){var n=e.on=e.on?D({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function Vt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?Vt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Zt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Wt(e,t){return"string"===typeof e?t+e:e}function Kt(e){e._o=Ht,e._n=g,e._s=p,e._l=kt,e._t=Ut,e._q=k,e._i=U,e._m=Yt,e._f=Pt,e._k=Gt,e._b=Bt,e._v=Te,e._e=Ce,e._u=Vt,e._g=Qt,e._d=Zt,e._p=Wt}function qt(e,t,r,i,s){var a,c=this,u=s.options;M(i,"_uid")?(a=Object.create(i),a._original=i):(a=i,i=i._original);var l=o(u._compiled),f=!l;this.data=e,this.props=t,this.children=r,this.parent=i,this.listeners=e.on||n,this.injections=Ot(u.inject,i),this.slots=function(){return c.$slots||Rt(e.scopedSlots,c.$slots=Dt(r,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Rt(e.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=Rt(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var o=fn(a,e,t,n,r,f);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=i),o}:this._c=function(e,t,n,r){return fn(a,e,t,n,r,f)}}function Jt(e,t,r,o,s){var a=e.options,c={},u=a.props;if(i(u))for(var l in u)c[l]=Ke(l,u,t||n);else i(r.attrs)&&en(c,r.attrs),i(r.props)&&en(c,r.props);var f=new qt(r,c,s,o,e),h=a.render.call(null,f._c,f);if(h instanceof Ie)return Xt(h,r,f.parent,a,f);if(Array.isArray(h)){for(var d=bt(h)||[],p=new Array(d.length),g=0;g<d.length;g++)p[g]=Xt(d[g],r,f.parent,a,f);return p}}function Xt(e,t,n,r,i){var o=Ae(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function en(e,t){for(var n in t)e[A(n)]=t[n]}Kt(qt.prototype);var tn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;tn.prepatch(n,n)}else{var r=e.componentInstance=on(e,On);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;xn(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,zn(n,"mounted")),e.data.keepAlive&&(t._isMounted?Jn(n):Un(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Pn(t,!0):t.$destroy())}},nn=Object.keys(tn);function rn(e,t,n,s,a){if(!r(e)){var u=n.$options._base;if(c(e)&&(e=u.extend(e)),"function"===typeof e){var l;if(r(e.cid)&&(l=e,e=Cn(l,u),void 0===e))return Mn(l,t,n,s,a);t=t||{},Cr(e),i(t.model)&&cn(e.options,t);var f=Tt(t,e,a);if(o(e.options.functional))return Jt(e,f,t,n,s);var h=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var d=t.slot;t={},d&&(t.slot=d)}sn(t);var p=e.options.name||a,g=new Ie("vue-component-"+e.cid+(p?"-"+p:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:f,listeners:h,tag:a,children:s},l);return g}}}function on(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function sn(e){for(var t=e.hook||(e.hook={}),n=0;n<nn.length;n++){var r=nn[n],i=t[r],o=tn[r];i===o||i&&i._merged||(t[r]=i?an(o,i):o)}}function an(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function cn(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),s=o[r],a=t.model.callback;i(s)?(Array.isArray(s)?-1===s.indexOf(a):s!==a)&&(o[r]=[a].concat(s)):o[r]=a}var un=1,ln=2;function fn(e,t,n,r,i,s){return(Array.isArray(n)||a(n))&&(i=r,r=n,n=void 0),o(s)&&(i=ln),hn(e,t,n,r,i)}function hn(e,t,n,r,o){if(i(n)&&i(n.__ob__))return Ce();if(i(n)&&i(n.is)&&(t=n.is),!t)return Ce();var s,a,c;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===ln?r=bt(r):o===un&&(r=_t(r)),"string"===typeof t)?(a=e.$vnode&&e.$vnode.ns||Y.getTagNamespace(t),s=Y.isReservedTag(t)?new Ie(Y.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!i(c=We(e.$options,"components",t))?new Ie(t,n,r,void 0,void 0,e):rn(c,n,e,r,t)):s=rn(t,n,e,r);return Array.isArray(s)?s:i(s)?(i(a)&&dn(s,a),i(n)&&pn(n),s):Ce()}function dn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),i(e.children))for(var s=0,a=e.children.length;s<a;s++){var c=e.children[s];i(c.tag)&&(r(c.ns)||o(n)&&"svg"!==c.tag)&&dn(c,t,n)}}function pn(e){c(e.style)&&vt(e.style),c(e.class)&&vt(e.class)}function gn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=Dt(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,n,r,i){return fn(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return fn(e,t,n,r,i,!0)};var o=r&&r.data;je(e,"$attrs",o&&o.attrs||n,null,!0),je(e,"$listeners",t._parentListeners||n,null,!0)}var vn,yn=null;function mn(e){Kt(e.prototype),e.prototype.$nextTick=function(e){return pt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=Rt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{yn=t,e=r.call(t._renderProxy,t.$createElement)}catch(As){tt(As,t,"render"),e=t._vnode}finally{yn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof Ie||(e=Ce()),e.parent=i,e}}function In(e,t){return(e.__esModule||he&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function Mn(e,t,n,r,i){var o=Ce();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function Cn(e,t){if(o(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var n=yn;if(n&&i(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&i(e.loadingComp))return e.loadingComp;if(n&&!i(e.owners)){var s=e.owners=[n],a=!0,u=null,l=null;n.$on("hook:destroyed",(function(){return m(s,n)}));var f=function(e){for(var t=0,n=s.length;t<n;t++)s[t].$forceUpdate();e&&(s.length=0,null!==u&&(clearTimeout(u),u=null),null!==l&&(clearTimeout(l),l=null))},h=P((function(n){e.resolved=In(n,t),a?s.length=0:f(!0)})),p=P((function(t){i(e.errorComp)&&(e.error=!0,f(!0))})),g=e(h,p);return c(g)&&(d(g)?r(e.resolved)&&g.then(h,p):d(g.component)&&(g.component.then(h,p),i(g.error)&&(e.errorComp=In(g.error,t)),i(g.loading)&&(e.loadingComp=In(g.loading,t),0===g.delay?e.loading=!0:u=setTimeout((function(){u=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,f(!1))}),g.delay||200)),i(g.timeout)&&(l=setTimeout((function(){l=null,r(e.resolved)&&p(null)}),g.timeout)))),a=!1,e.loading?e.loadingComp:e.resolved}}function Tn(e){return e.isComment&&e.asyncFactory}function An(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(i(n)&&(i(n.componentOptions)||Tn(n)))return n}}function _n(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&wn(e,t)}function bn(e,t){vn.$on(e,t)}function Nn(e,t){vn.$off(e,t)}function En(e,t){var n=vn;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function wn(e,t,n){vn=e,Mt(t,n||{},bn,Nn,En,e),vn=void 0}function Sn(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,s=n._events[e];if(!s)return n;if(!t)return n._events[e]=null,n;var a=s.length;while(a--)if(o=s[a],o===t||o.fn===t){s.splice(a,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?O(n):n;for(var r=O(arguments,1),i='event handler for "'+e+'"',o=0,s=n.length;o<s;o++)nt(n[o],t,r,t,i)}return t}}var On=null;function Dn(e){var t=On;return On=e,function(){On=t}}function Ln(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Rn(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Dn(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){zn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||m(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),zn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function jn(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=Ce),zn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new nr(e,r,R,{before:function(){e._isMounted&&!e._isDestroyed&&zn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,zn(e,"mounted")),e}function xn(e,t,r,i,o){var s=i.data.scopedSlots,a=e.$scopedSlots,c=!!(s&&!s.$stable||a!==n&&!a.$stable||s&&e.$scopedSlots.$key!==s.$key),u=!!(o||e.$options._renderChildren||c);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o,e.$attrs=i.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){Se(!1);for(var l=e._props,f=e.$options._propKeys||[],h=0;h<f.length;h++){var d=f[h],p=e.$options.props;l[d]=Ke(d,p,t,e)}Se(!0),e.$options.propsData=t}r=r||n;var g=e.$options._parentListeners;e.$options._parentListeners=r,wn(e,r,g),u&&(e.$slots=Dt(o,i.context),e.$forceUpdate())}function kn(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Un(e,t){if(t){if(e._directInactive=!1,kn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Un(e.$children[n]);zn(e,"activated")}}function Pn(e,t){if((!t||(e._directInactive=!0,!kn(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Pn(e.$children[n]);zn(e,"deactivated")}}function zn(e,t){ye();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)nt(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),me()}var Gn=[],Bn=[],Yn={},Hn=!1,$n=!1,Fn=0;function Qn(){Fn=Gn.length=Bn.length=0,Yn={},Hn=$n=!1}var Vn=0,Zn=Date.now;if(K&&!ee){var Wn=window.performance;Wn&&"function"===typeof Wn.now&&Zn()>document.createEvent("Event").timeStamp&&(Zn=function(){return Wn.now()})}function Kn(){var e,t;for(Vn=Zn(),$n=!0,Gn.sort((function(e,t){return e.id-t.id})),Fn=0;Fn<Gn.length;Fn++)e=Gn[Fn],e.before&&e.before(),t=e.id,Yn[t]=null,e.run();var n=Bn.slice(),r=Gn.slice();Qn(),Xn(n),qn(r),ue&&Y.devtools&&ue.emit("flush")}function qn(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&zn(r,"updated")}}function Jn(e){e._inactive=!1,Bn.push(e)}function Xn(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Un(e[t],!0)}function er(e){var t=e.id;if(null==Yn[t]){if(Yn[t]=!0,$n){var n=Gn.length-1;while(n>Fn&&Gn[n].id>e.id)n--;Gn.splice(n+1,0,e)}else Gn.push(e);Hn||(Hn=!0,pt(Kn))}}var tr=0,nr=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++tr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new fe,this.newDepIds=new fe,this.expression="","function"===typeof t?this.getter=t:(this.getter=V(t),this.getter||(this.getter=R)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var e;ye(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(As){if(!this.user)throw As;tt(As,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&vt(e),me(),this.cleanupDeps()}return e},nr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},nr.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():er(this)},nr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(As){tt(As,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:R,set:R};function ir(e,t,n){rr.get=function(){return this[t][n]},rr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,rr)}function or(e){e._watchers=[];var t=e.$options;t.props&&sr(e,t.props),t.methods&&pr(e,t.methods),t.data?ar(e):Re(e._data={},!0),t.computed&&lr(e,t.computed),t.watch&&t.watch!==oe&&gr(e,t.watch)}function sr(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||Se(!1);var s=function(o){i.push(o);var s=Ke(o,t,n,e);je(r,o,s),o in e||ir(e,"_props",o)};for(var a in t)s(a);Se(!0)}function ar(e){var t=e.$options.data;t=e._data="function"===typeof t?cr(t,e):t||{},l(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);while(i--){var o=n[i];0,r&&M(r,o)||$(o)||ir(e,"_data",o)}Re(t,!0)}function cr(e,t){ye();try{return e.call(t,t)}catch(As){return tt(As,t,"data()"),{}}finally{me()}}var ur={lazy:!0};function lr(e,t){var n=e._computedWatchers=Object.create(null),r=ce();for(var i in t){var o=t[i],s="function"===typeof o?o:o.get;0,r||(n[i]=new nr(e,s||R,R,ur)),i in e||fr(e,i,o)}}function fr(e,t,n){var r=!ce();"function"===typeof n?(rr.get=r?hr(t):dr(n),rr.set=R):(rr.get=n.get?r&&!1!==n.cache?hr(t):dr(n.get):R,rr.set=n.set||R),Object.defineProperty(e,t,rr)}function hr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ge.target&&t.depend(),t.value}}function dr(e){return function(){return e.call(this,this)}}function pr(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?R:S(t[n],e)}function gr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)vr(e,n,r[i]);else vr(e,n,r)}}function vr(e,t,n,r){return l(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function yr(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=xe,e.prototype.$delete=ke,e.prototype.$watch=function(e,t,n){var r=this;if(l(t))return vr(r,e,t,n);n=n||{},n.user=!0;var i=new nr(r,e,t,n);if(n.immediate)try{t.call(r,i.value)}catch(o){tt(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var mr=0;function Ir(e){e.prototype._init=function(e){var t=this;t._uid=mr++,t._isVue=!0,e&&e._isComponent?Mr(t,e):t.$options=Ze(Cr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Ln(t),_n(t),gn(t),zn(t,"beforeCreate"),St(t),or(t),wt(t),zn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function Mr(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function Cr(e){var t=e.options;if(e.super){var n=Cr(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=Tr(e);i&&D(e.extendOptions,i),t=e.options=Ze(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Tr(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function Ar(e){this._init(e)}function _r(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=O(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function br(e){e.mixin=function(e){return this.options=Ze(this.options,e),this}}function Nr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var s=function(e){this._init(e)};return s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.cid=t++,s.options=Ze(n.options,e),s["super"]=n,s.options.props&&Er(s),s.options.computed&&wr(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,G.forEach((function(e){s[e]=n[e]})),o&&(s.options.components[o]=s),s.superOptions=n.options,s.extendOptions=e,s.sealedOptions=D({},s.options),i[r]=s,s}}function Er(e){var t=e.options.props;for(var n in t)ir(e.prototype,"_props",n)}function wr(e){var t=e.options.computed;for(var n in t)fr(e.prototype,n,t[n])}function Sr(e){G.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Or(e){return e&&(e.Ctor.options.name||e.tag)}function Dr(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function Lr(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var s=n[o];if(s){var a=Or(s.componentOptions);a&&!t(a)&&Rr(n,o,r,i)}}}function Rr(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,m(n,t)}Ir(Ar),yr(Ar),Sn(Ar),Rn(Ar),mn(Ar);var jr=[String,RegExp,Array],xr={name:"keep-alive",abstract:!0,props:{include:jr,exclude:jr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Rr(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Lr(e,(function(e){return Dr(t,e)}))})),this.$watch("exclude",(function(t){Lr(e,(function(e){return!Dr(t,e)}))}))},render:function(){var e=this.$slots.default,t=An(e),n=t&&t.componentOptions;if(n){var r=Or(n),i=this,o=i.include,s=i.exclude;if(o&&(!r||!Dr(o,r))||s&&r&&Dr(s,r))return t;var a=this,c=a.cache,u=a.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;c[l]?(t.componentInstance=c[l].componentInstance,m(u,l),u.push(l)):(c[l]=t,u.push(l),this.max&&u.length>parseInt(this.max)&&Rr(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},kr={KeepAlive:xr};function Ur(e){var t={get:function(){return Y}};Object.defineProperty(e,"config",t),e.util={warn:de,extend:D,mergeOptions:Ze,defineReactive:je},e.set=xe,e.delete=ke,e.nextTick=pt,e.observable=function(e){return Re(e),e},e.options=Object.create(null),G.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,D(e.options.components,kr),_r(e),br(e),Nr(e),Sr(e)}Ur(Ar),Object.defineProperty(Ar.prototype,"$isServer",{get:ce}),Object.defineProperty(Ar.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ar,"FunctionalRenderContext",{value:qt}),Ar.version="2.6.10";var Pr=v("style,class"),zr=v("input,textarea,option,select,progress"),Gr=function(e,t,n){return"value"===n&&zr(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Br=v("contenteditable,draggable,spellcheck"),Yr=v("events,caret,typing,plaintext-only"),Hr=function(e,t){return Zr(t)||"false"===t?"false":"contenteditable"===e&&Yr(t)?t:"true"},$r=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Fr="http://www.w3.org/1999/xlink",Qr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Vr=function(e){return Qr(e)?e.slice(6,e.length):""},Zr=function(e){return null==e||!1===e};function Wr(e){var t=e.data,n=e,r=e;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=Kr(r.data,t));while(i(n=n.parent))n&&n.data&&(t=Kr(t,n.data));return qr(t.staticClass,t.class)}function Kr(e,t){return{staticClass:Jr(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function qr(e,t){return i(e)||i(t)?Jr(e,Xr(t)):""}function Jr(e,t){return e?t?e+" "+t:e:t||""}function Xr(e){return Array.isArray(e)?ei(e):c(e)?ti(e):"string"===typeof e?e:""}function ei(e){for(var t,n="",r=0,o=e.length;r<o;r++)i(t=Xr(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function ti(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var ni={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ri=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ii=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),oi=function(e){return ri(e)||ii(e)};function si(e){return ii(e)?"svg":"math"===e?"math":void 0}var ai=Object.create(null);function ci(e){if(!K)return!0;if(oi(e))return!1;if(e=e.toLowerCase(),null!=ai[e])return ai[e];var t=document.createElement(e);return e.indexOf("-")>-1?ai[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ai[e]=/HTMLUnknownElement/.test(t.toString())}var ui=v("text,number,password,search,email,tel,url");function li(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function fi(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function hi(e,t){return document.createElementNS(ni[e],t)}function di(e){return document.createTextNode(e)}function pi(e){return document.createComment(e)}function gi(e,t,n){e.insertBefore(t,n)}function vi(e,t){e.removeChild(t)}function yi(e,t){e.appendChild(t)}function mi(e){return e.parentNode}function Ii(e){return e.nextSibling}function Mi(e){return e.tagName}function Ci(e,t){e.textContent=t}function Ti(e,t){e.setAttribute(t,"")}var Ai=Object.freeze({createElement:fi,createElementNS:hi,createTextNode:di,createComment:pi,insertBefore:gi,removeChild:vi,appendChild:yi,parentNode:mi,nextSibling:Ii,tagName:Mi,setTextContent:Ci,setStyleScope:Ti}),_i={create:function(e,t){bi(t)},update:function(e,t){e.data.ref!==t.data.ref&&(bi(e,!0),bi(t))},destroy:function(e){bi(e,!0)}};function bi(e,t){var n=e.data.ref;if(i(n)){var r=e.context,o=e.componentInstance||e.elm,s=r.$refs;t?Array.isArray(s[n])?m(s[n],o):s[n]===o&&(s[n]=void 0):e.data.refInFor?Array.isArray(s[n])?s[n].indexOf(o)<0&&s[n].push(o):s[n]=[o]:s[n]=o}}var Ni=new Ie("",{},[]),Ei=["create","activate","update","remove","destroy"];function wi(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&i(e.data)===i(t.data)&&Si(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&r(t.asyncFactory.error))}function Si(e,t){if("input"!==e.tag)return!0;var n,r=i(n=e.data)&&i(n=n.attrs)&&n.type,o=i(n=t.data)&&i(n=n.attrs)&&n.type;return r===o||ui(r)&&ui(o)}function Oi(e,t,n){var r,o,s={};for(r=t;r<=n;++r)o=e[r].key,i(o)&&(s[o]=r);return s}function Di(e){var t,n,s={},c=e.modules,u=e.nodeOps;for(t=0;t<Ei.length;++t)for(s[Ei[t]]=[],n=0;n<c.length;++n)i(c[n][Ei[t]])&&s[Ei[t]].push(c[n][Ei[t]]);function l(e){return new Ie(u.tagName(e).toLowerCase(),{},[],void 0,e)}function f(e,t){function n(){0===--n.listeners&&h(e)}return n.listeners=t,n}function h(e){var t=u.parentNode(e);i(t)&&u.removeChild(t,e)}function d(e,t,n,r,s,a,c){if(i(e.elm)&&i(a)&&(e=a[c]=Ae(e)),e.isRootInsert=!s,!p(e,t,n,r)){var l=e.data,f=e.children,h=e.tag;i(h)?(e.elm=e.ns?u.createElementNS(e.ns,h):u.createElement(h,e),T(e),I(e,f,t),i(l)&&C(e,t),m(n,e.elm,r)):o(e.isComment)?(e.elm=u.createComment(e.text),m(n,e.elm,r)):(e.elm=u.createTextNode(e.text),m(n,e.elm,r))}}function p(e,t,n,r){var s=e.data;if(i(s)){var a=i(e.componentInstance)&&s.keepAlive;if(i(s=s.hook)&&i(s=s.init)&&s(e,!1),i(e.componentInstance))return g(e,t),m(n,e.elm,r),o(a)&&y(e,t,n,r),!0}}function g(e,t){i(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,M(e)?(C(e,t),T(e)):(bi(e),t.push(e))}function y(e,t,n,r){var o,a=e;while(a.componentInstance)if(a=a.componentInstance._vnode,i(o=a.data)&&i(o=o.transition)){for(o=0;o<s.activate.length;++o)s.activate[o](Ni,a);t.push(a);break}m(n,e.elm,r)}function m(e,t,n){i(e)&&(i(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function I(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)d(t[r],n,e.elm,null,!0,t,r)}else a(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function M(e){while(e.componentInstance)e=e.componentInstance._vnode;return i(e.tag)}function C(e,n){for(var r=0;r<s.create.length;++r)s.create[r](Ni,e);t=e.data.hook,i(t)&&(i(t.create)&&t.create(Ni,e),i(t.insert)&&n.push(e))}function T(e){var t;if(i(t=e.fnScopeId))u.setStyleScope(e.elm,t);else{var n=e;while(n)i(t=n.context)&&i(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent}i(t=On)&&t!==e.context&&t!==e.fnContext&&i(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function A(e,t,n,r,i,o){for(;r<=i;++r)d(n[r],o,e,t,!1,n,r)}function _(e){var t,n,r=e.data;if(i(r))for(i(t=r.hook)&&i(t=t.destroy)&&t(e),t=0;t<s.destroy.length;++t)s.destroy[t](e);if(i(t=e.children))for(n=0;n<e.children.length;++n)_(e.children[n])}function b(e,t,n,r){for(;n<=r;++n){var o=t[n];i(o)&&(i(o.tag)?(N(o),_(o)):h(o.elm))}}function N(e,t){if(i(t)||i(e.data)){var n,r=s.remove.length+1;for(i(t)?t.listeners+=r:t=f(e.elm,r),i(n=e.componentInstance)&&i(n=n._vnode)&&i(n.data)&&N(n,t),n=0;n<s.remove.length;++n)s.remove[n](e,t);i(n=e.data.hook)&&i(n=n.remove)?n(e,t):t()}else h(e.elm)}function E(e,t,n,o,s){var a,c,l,f,h=0,p=0,g=t.length-1,v=t[0],y=t[g],m=n.length-1,I=n[0],M=n[m],C=!s;while(h<=g&&p<=m)r(v)?v=t[++h]:r(y)?y=t[--g]:wi(v,I)?(S(v,I,o,n,p),v=t[++h],I=n[++p]):wi(y,M)?(S(y,M,o,n,m),y=t[--g],M=n[--m]):wi(v,M)?(S(v,M,o,n,m),C&&u.insertBefore(e,v.elm,u.nextSibling(y.elm)),v=t[++h],M=n[--m]):wi(y,I)?(S(y,I,o,n,p),C&&u.insertBefore(e,y.elm,v.elm),y=t[--g],I=n[++p]):(r(a)&&(a=Oi(t,h,g)),c=i(I.key)?a[I.key]:w(I,t,h,g),r(c)?d(I,o,e,v.elm,!1,n,p):(l=t[c],wi(l,I)?(S(l,I,o,n,p),t[c]=void 0,C&&u.insertBefore(e,l.elm,v.elm)):d(I,o,e,v.elm,!1,n,p)),I=n[++p]);h>g?(f=r(n[m+1])?null:n[m+1].elm,A(e,f,n,p,m,o)):p>m&&b(e,t,h,g)}function w(e,t,n,r){for(var o=n;o<r;o++){var s=t[o];if(i(s)&&wi(e,s))return o}}function S(e,t,n,a,c,l){if(e!==t){i(t.elm)&&i(a)&&(t=a[c]=Ae(t));var f=t.elm=e.elm;if(o(e.isAsyncPlaceholder))i(t.asyncFactory.resolved)?L(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var h,d=t.data;i(d)&&i(h=d.hook)&&i(h=h.prepatch)&&h(e,t);var p=e.children,g=t.children;if(i(d)&&M(t)){for(h=0;h<s.update.length;++h)s.update[h](e,t);i(h=d.hook)&&i(h=h.update)&&h(e,t)}r(t.text)?i(p)&&i(g)?p!==g&&E(f,p,g,n,l):i(g)?(i(e.text)&&u.setTextContent(f,""),A(f,null,g,0,g.length-1,n)):i(p)?b(f,p,0,p.length-1):i(e.text)&&u.setTextContent(f,""):e.text!==t.text&&u.setTextContent(f,t.text),i(d)&&i(h=d.hook)&&i(h=h.postpatch)&&h(e,t)}}}function O(e,t,n){if(o(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var D=v("attrs,class,staticClass,staticStyle,key");function L(e,t,n,r){var s,a=t.tag,c=t.data,u=t.children;if(r=r||c&&c.pre,t.elm=e,o(t.isComment)&&i(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(i(c)&&(i(s=c.hook)&&i(s=s.init)&&s(t,!0),i(s=t.componentInstance)))return g(t,n),!0;if(i(a)){if(i(u))if(e.hasChildNodes())if(i(s=c)&&i(s=s.domProps)&&i(s=s.innerHTML)){if(s!==e.innerHTML)return!1}else{for(var l=!0,f=e.firstChild,h=0;h<u.length;h++){if(!f||!L(f,u[h],n,r)){l=!1;break}f=f.nextSibling}if(!l||f)return!1}else I(t,u,n);if(i(c)){var d=!1;for(var p in c)if(!D(p)){d=!0,C(t,n);break}!d&&c["class"]&&vt(c["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,a){if(!r(t)){var c=!1,f=[];if(r(e))c=!0,d(t,f);else{var h=i(e.nodeType);if(!h&&wi(e,t))S(e,t,f,null,null,a);else{if(h){if(1===e.nodeType&&e.hasAttribute(z)&&(e.removeAttribute(z),n=!0),o(n)&&L(e,t,f))return O(t,f,!0),e;e=l(e)}var p=e.elm,g=u.parentNode(p);if(d(t,f,p._leaveCb?null:g,u.nextSibling(p)),i(t.parent)){var v=t.parent,y=M(t);while(v){for(var m=0;m<s.destroy.length;++m)s.destroy[m](v);if(v.elm=t.elm,y){for(var I=0;I<s.create.length;++I)s.create[I](Ni,v);var C=v.data.hook.insert;if(C.merged)for(var T=1;T<C.fns.length;T++)C.fns[T]()}else bi(v);v=v.parent}}i(g)?b(g,[e],0,0):i(e.tag)&&_(e)}}return O(t,f,c),t.elm}i(e)&&_(e)}}var Li={create:Ri,update:Ri,destroy:function(e){Ri(e,Ni)}};function Ri(e,t){(e.data.directives||t.data.directives)&&ji(e,t)}function ji(e,t){var n,r,i,o=e===Ni,s=t===Ni,a=ki(e.data.directives,e.context),c=ki(t.data.directives,t.context),u=[],l=[];for(n in c)r=a[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Pi(i,"update",t,e),i.def&&i.def.componentUpdated&&l.push(i)):(Pi(i,"bind",t,e),i.def&&i.def.inserted&&u.push(i));if(u.length){var f=function(){for(var n=0;n<u.length;n++)Pi(u[n],"inserted",t,e)};o?Ct(t,"insert",f):f()}if(l.length&&Ct(t,"postpatch",(function(){for(var n=0;n<l.length;n++)Pi(l[n],"componentUpdated",t,e)})),!o)for(n in a)c[n]||Pi(a[n],"unbind",e,e,s)}var xi=Object.create(null);function ki(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)r=e[n],r.modifiers||(r.modifiers=xi),i[Ui(r)]=r,r.def=We(t.$options,"directives",r.name,!0);return i}function Ui(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Pi(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(As){tt(As,n.context,"directive "+e.name+" "+t+" hook")}}var zi=[_i,Li];function Gi(e,t){var n=t.componentOptions;if((!i(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(e.data.attrs)||!r(t.data.attrs))){var o,s,a,c=t.elm,u=e.data.attrs||{},l=t.data.attrs||{};for(o in i(l.__ob__)&&(l=t.data.attrs=D({},l)),l)s=l[o],a=u[o],a!==s&&Bi(c,o,s);for(o in(ee||ne)&&l.value!==u.value&&Bi(c,"value",l.value),u)r(l[o])&&(Qr(o)?c.removeAttributeNS(Fr,Vr(o)):Br(o)||c.removeAttribute(o))}}function Bi(e,t,n){e.tagName.indexOf("-")>-1?Yi(e,t,n):$r(t)?Zr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Br(t)?e.setAttribute(t,Hr(t,n)):Qr(t)?Zr(n)?e.removeAttributeNS(Fr,Vr(t)):e.setAttributeNS(Fr,t,n):Yi(e,t,n)}function Yi(e,t,n){if(Zr(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Hi={create:Gi,update:Gi};function $i(e,t){var n=t.elm,o=t.data,s=e.data;if(!(r(o.staticClass)&&r(o.class)&&(r(s)||r(s.staticClass)&&r(s.class)))){var a=Wr(t),c=n._transitionClasses;i(c)&&(a=Jr(a,Xr(c))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var Fi,Qi={create:$i,update:$i},Vi="__r",Zi="__c";function Wi(e){if(i(e[Vi])){var t=ee?"change":"input";e[t]=[].concat(e[Vi],e[t]||[]),delete e[Vi]}i(e[Zi])&&(e.change=[].concat(e[Zi],e.change||[]),delete e[Zi])}function Ki(e,t,n){var r=Fi;return function i(){var o=t.apply(null,arguments);null!==o&&Xi(e,i,n,r)}}var qi=st&&!(ie&&Number(ie[1])<=53);function Ji(e,t,n,r){if(qi){var i=Vn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Fi.addEventListener(e,t,se?{capture:n,passive:r}:n)}function Xi(e,t,n,r){(r||Fi).removeEventListener(e,t._wrapper||t,n)}function eo(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},i=e.data.on||{};Fi=t.elm,Wi(n),Mt(n,i,Ji,Xi,Ki,t.context),Fi=void 0}}var to,no={create:eo,update:eo};function ro(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,o,s=t.elm,a=e.data.domProps||{},c=t.data.domProps||{};for(n in i(c.__ob__)&&(c=t.data.domProps=D({},c)),a)n in c||(s[n]="");for(n in c){if(o=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===a[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=o;var u=r(o)?"":String(o);io(s,u)&&(s.value=u)}else if("innerHTML"===n&&ii(s.tagName)&&r(s.innerHTML)){to=to||document.createElement("div"),to.innerHTML="<svg>"+o+"</svg>";var l=to.firstChild;while(s.firstChild)s.removeChild(s.firstChild);while(l.firstChild)s.appendChild(l.firstChild)}else if(o!==a[n])try{s[n]=o}catch(As){}}}}function io(e,t){return!e.composing&&("OPTION"===e.tagName||oo(e,t)||so(e,t))}function oo(e,t){var n=!0;try{n=document.activeElement!==e}catch(As){}return n&&e.value!==t}function so(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)return g(n)!==g(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var ao={create:ro,update:ro},co=C((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function uo(e){var t=lo(e.style);return e.staticStyle?D(e.staticStyle,t):t}function lo(e){return Array.isArray(e)?L(e):"string"===typeof e?co(e):e}function fo(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=uo(i.data))&&D(r,n)}(n=uo(e.data))&&D(r,n);var o=e;while(o=o.parent)o.data&&(n=uo(o.data))&&D(r,n);return r}var ho,po=/^--/,go=/\s*!important$/,vo=function(e,t,n){if(po.test(t))e.style.setProperty(t,n);else if(go.test(n))e.style.setProperty(N(t),n.replace(go,""),"important");else{var r=mo(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},yo=["Webkit","Moz","ms"],mo=C((function(e){if(ho=ho||document.createElement("div").style,e=A(e),"filter"!==e&&e in ho)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<yo.length;n++){var r=yo[n]+t;if(r in ho)return r}}));function Io(e,t){var n=t.data,o=e.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var s,a,c=t.elm,u=o.staticStyle,l=o.normalizedStyle||o.style||{},f=u||l,h=lo(t.data.style)||{};t.data.normalizedStyle=i(h.__ob__)?D({},h):h;var d=fo(t,!0);for(a in f)r(d[a])&&vo(c,a,"");for(a in d)s=d[a],s!==f[a]&&vo(c,a,null==s?"":s)}}var Mo={create:Io,update:Io},Co=/\s+/;function To(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Co).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Ao(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Co).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function _o(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&D(t,bo(e.name||"v")),D(t,e),t}return"string"===typeof e?bo(e):void 0}}var bo=C((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),No=K&&!te,Eo="transition",wo="animation",So="transition",Oo="transitionend",Do="animation",Lo="animationend";No&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(So="WebkitTransition",Oo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Do="WebkitAnimation",Lo="webkitAnimationEnd"));var Ro=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function jo(e){Ro((function(){Ro(e)}))}function xo(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),To(e,t))}function ko(e,t){e._transitionClasses&&m(e._transitionClasses,t),Ao(e,t)}function Uo(e,t,n){var r=zo(e,t),i=r.type,o=r.timeout,s=r.propCount;if(!i)return n();var a=i===Eo?Oo:Lo,c=0,u=function(){e.removeEventListener(a,l),n()},l=function(t){t.target===e&&++c>=s&&u()};setTimeout((function(){c<s&&u()}),o+1),e.addEventListener(a,l)}var Po=/\b(transform|all)(,|$)/;function zo(e,t){var n,r=window.getComputedStyle(e),i=(r[So+"Delay"]||"").split(", "),o=(r[So+"Duration"]||"").split(", "),s=Go(i,o),a=(r[Do+"Delay"]||"").split(", "),c=(r[Do+"Duration"]||"").split(", "),u=Go(a,c),l=0,f=0;t===Eo?s>0&&(n=Eo,l=s,f=o.length):t===wo?u>0&&(n=wo,l=u,f=c.length):(l=Math.max(s,u),n=l>0?s>u?Eo:wo:null,f=n?n===Eo?o.length:c.length:0);var h=n===Eo&&Po.test(r[So+"Property"]);return{type:n,timeout:l,propCount:f,hasTransform:h}}function Go(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Bo(t)+Bo(e[n])})))}function Bo(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Yo(e,t){var n=e.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=_o(e.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){var s=o.css,a=o.type,u=o.enterClass,l=o.enterToClass,f=o.enterActiveClass,h=o.appearClass,d=o.appearToClass,p=o.appearActiveClass,v=o.beforeEnter,y=o.enter,m=o.afterEnter,I=o.enterCancelled,M=o.beforeAppear,C=o.appear,T=o.afterAppear,A=o.appearCancelled,_=o.duration,b=On,N=On.$vnode;while(N&&N.parent)b=N.context,N=N.parent;var E=!b._isMounted||!e.isRootInsert;if(!E||C||""===C){var w=E&&h?h:u,S=E&&p?p:f,O=E&&d?d:l,D=E&&M||v,L=E&&"function"===typeof C?C:y,R=E&&T||m,j=E&&A||I,x=g(c(_)?_.enter:_);0;var k=!1!==s&&!te,U=Fo(L),z=n._enterCb=P((function(){k&&(ko(n,O),ko(n,S)),z.cancelled?(k&&ko(n,w),j&&j(n)):R&&R(n),n._enterCb=null}));e.data.show||Ct(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),L&&L(n,z)})),D&&D(n),k&&(xo(n,w),xo(n,S),jo((function(){ko(n,w),z.cancelled||(xo(n,O),U||($o(x)?setTimeout(z,x):Uo(n,a,z)))}))),e.data.show&&(t&&t(),L&&L(n,z)),k||U||z()}}}function Ho(e,t){var n=e.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=_o(e.data.transition);if(r(o)||1!==n.nodeType)return t();if(!i(n._leaveCb)){var s=o.css,a=o.type,u=o.leaveClass,l=o.leaveToClass,f=o.leaveActiveClass,h=o.beforeLeave,d=o.leave,p=o.afterLeave,v=o.leaveCancelled,y=o.delayLeave,m=o.duration,I=!1!==s&&!te,M=Fo(d),C=g(c(m)?m.leave:m);0;var T=n._leaveCb=P((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),I&&(ko(n,l),ko(n,f)),T.cancelled?(I&&ko(n,u),v&&v(n)):(t(),p&&p(n)),n._leaveCb=null}));y?y(A):A()}function A(){T.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),I&&(xo(n,u),xo(n,f),jo((function(){ko(n,u),T.cancelled||(xo(n,l),M||($o(C)?setTimeout(T,C):Uo(n,a,T)))}))),d&&d(n,T),I||M||T())}}function $o(e){return"number"===typeof e&&!isNaN(e)}function Fo(e){if(r(e))return!1;var t=e.fns;return i(t)?Fo(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Qo(e,t){!0!==t.data.show&&Yo(t)}var Vo=K?{create:Qo,activate:Qo,remove:function(e,t){!0!==e.data.show?Ho(e,t):t()}}:{},Zo=[Hi,Qi,no,ao,Mo,Vo],Wo=Zo.concat(zi),Ko=Di({nodeOps:Ai,modules:Wo});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&is(e,"input")}));var qo={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?Ct(n,"postpatch",(function(){qo.componentUpdated(e,t,n)})):Jo(e,t,n.context),e._vOptions=[].map.call(e.options,ts)):("textarea"===n.tag||ui(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ns),e.addEventListener("compositionend",rs),e.addEventListener("change",rs),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Jo(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,ts);if(i.some((function(e,t){return!k(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return es(e,i)})):t.value!==t.oldValue&&es(t.value,i);o&&is(e,"change")}}}};function Jo(e,t,n){Xo(e,t,n),(ee||ne)&&setTimeout((function(){Xo(e,t,n)}),0)}function Xo(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,s,a=0,c=e.options.length;a<c;a++)if(s=e.options[a],i)o=U(r,ts(s))>-1,s.selected!==o&&(s.selected=o);else if(k(ts(s),r))return void(e.selectedIndex!==a&&(e.selectedIndex=a));i||(e.selectedIndex=-1)}}function es(e,t){return t.every((function(t){return!k(t,e)}))}function ts(e){return"_value"in e?e._value:e.value}function ns(e){e.target.composing=!0}function rs(e){e.target.composing&&(e.target.composing=!1,is(e.target,"input"))}function is(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function os(e){return!e.componentInstance||e.data&&e.data.transition?e:os(e.componentInstance._vnode)}var ss={bind:function(e,t,n){var r=t.value;n=os(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Yo(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=os(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Yo(n,(function(){e.style.display=e.__vOriginalDisplay})):Ho(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},as={model:qo,show:ss},cs={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function us(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?us(An(t.children)):e}function ls(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[A(o)]=i[o];return t}function fs(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function hs(e){while(e=e.parent)if(e.data.transition)return!0}function ds(e,t){return t.key===e.key&&t.tag===e.tag}var ps=function(e){return e.tag||Tn(e)},gs=function(e){return"show"===e.name},vs={name:"transition",props:cs,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(ps),n.length)){0;var r=this.mode;0;var i=n[0];if(hs(this.$vnode))return i;var o=us(i);if(!o)return i;if(this._leaving)return fs(e,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=ls(this),u=this._vnode,l=us(u);if(o.data.directives&&o.data.directives.some(gs)&&(o.data.show=!0),l&&l.data&&!ds(o,l)&&!Tn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=D({},c);if("out-in"===r)return this._leaving=!0,Ct(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),fs(e,i);if("in-out"===r){if(Tn(o))return u;var h,d=function(){h()};Ct(c,"afterEnter",d),Ct(c,"enterCancelled",d),Ct(f,"delayLeave",(function(e){h=e}))}}return i}}},ys=D({tag:String,moveClass:String},cs);delete ys.mode;var ms={props:ys,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Dn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],s=ls(this),a=0;a<i.length;a++){var c=i[a];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=s;else;}if(r){for(var u=[],l=[],f=0;f<r.length;f++){var h=r[f];h.data.transition=s,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?u.push(h):l.push(h)}this.kept=e(t,null,u),this.removed=l}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Is),e.forEach(Ms),e.forEach(Cs),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;xo(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Oo,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Oo,e),n._moveCb=null,ko(n,t))})}})))},methods:{hasMove:function(e,t){if(!No)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){Ao(n,e)})),To(n,t),n.style.display="none",this.$el.appendChild(n);var r=zo(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function Is(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Ms(e){e.data.newPos=e.elm.getBoundingClientRect()}function Cs(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var Ts={Transition:vs,TransitionGroup:ms};Ar.config.mustUseProp=Gr,Ar.config.isReservedTag=oi,Ar.config.isReservedAttr=Pr,Ar.config.getTagNamespace=si,Ar.config.isUnknownElement=ci,D(Ar.options.directives,as),D(Ar.options.components,Ts),Ar.prototype.__patch__=K?Ko:R,Ar.prototype.$mount=function(e,t){return e=e&&K?li(e):void 0,jn(this,e,t)},K&&setTimeout((function(){Y.devtools&&ue&&ue.emit("init",Ar)}),0),t["default"]=Ar}.call(this,n("c8ba"))},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,s="function"==typeof o,a=e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))};a.store=r},"2b88":function(e,t,n){"use strict";
- /*!
- * portal-vue © Thorsten Lünborg, 2019
- *
- * Version: 2.1.7
- *
- * LICENCE: MIT
- *
- * https://github.com/linusborg/portal-vue
- *
- */function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n("2b0e"));function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e){return a(e)||c(e)||u()}function a(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function c(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var l="undefined"!==typeof window;function f(e){return Array.isArray(e)||"object"===o(e)?Object.freeze(e):e}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.reduce((function(e,n){var r=n.passengers[0],i="function"===typeof r?r(t):n.passengers;return e.concat(i)}),[])}function d(e,t){return e.map((function(e,t){return[t,e]})).sort((function(e,n){return t(e[1],n[1])||e[0]-n[0]})).map((function(e){return e[1]}))}function p(e,t){return t.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}var g={},v={},y={},m=i.extend({data:function(){return{transports:g,targets:v,sources:y,trackInstances:l}},methods:{open:function(e){if(l){var t=e.to,n=e.from,r=e.passengers,o=e.order,s=void 0===o?1/0:o;if(t&&n&&r){var a={to:t,from:n,passengers:f(r),order:s},c=Object.keys(this.transports);-1===c.indexOf(t)&&i.set(this.transports,t,[]);var u=this.$_getTransportIndex(a),h=this.transports[t].slice(0);-1===u?h.push(a):h[u]=a,this.transports[t]=d(h,(function(e,t){return e.order-t.order}))}}},close:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.to,r=e.from;if(n&&(r||!1!==t)&&this.transports[n])if(t)this.transports[n]=[];else{var i=this.$_getTransportIndex(e);if(i>=0){var o=this.transports[n].slice(0);o.splice(i,1),this.transports[n]=o}}},registerTarget:function(e,t,n){l&&(this.trackInstances&&!n&&this.targets[e]&&console.warn("[portal-vue]: Target ".concat(e," already exists")),this.$set(this.targets,e,Object.freeze([t])))},unregisterTarget:function(e){this.$delete(this.targets,e)},registerSource:function(e,t,n){l&&(this.trackInstances&&!n&&this.sources[e]&&console.warn("[portal-vue]: source ".concat(e," already exists")),this.$set(this.sources,e,Object.freeze([t])))},unregisterSource:function(e){this.$delete(this.sources,e)},hasTarget:function(e){return!(!this.targets[e]||!this.targets[e][0])},hasSource:function(e){return!(!this.sources[e]||!this.sources[e][0])},hasContentFor:function(e){return!!this.transports[e]&&!!this.transports[e].length},$_getTransportIndex:function(e){var t=e.to,n=e.from;for(var r in this.transports[t])if(this.transports[t][r].from===n)return+r;return-1}}}),I=new m(g),M=1,C=i.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(M++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var e=this;this.$nextTick((function(){I.registerSource(e.name,e)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){I.unregisterSource(this.name),this.clear()},watch:{to:function(e,t){t&&t!==e&&this.clear(t),this.sendUpdate()}},methods:{clear:function(e){var t={from:this.name,to:e||this.to};I.close(t)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(e){return"function"===typeof e?e(this.slotProps):e},sendUpdate:function(){var e=this.normalizeSlots();if(e){var t={from:this.name,to:this.to,passengers:s(e),order:this.order};I.open(t)}else this.clear()}},render:function(e){var t=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return t&&this.disabled?t.length<=1&&this.slim?this.normalizeOwnChildren(t)[0]:e(n,[this.normalizeOwnChildren(t)]):this.slim?e():e(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),T=i.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:I.transports,firstRender:!0}},created:function(){var e=this;this.$nextTick((function(){I.registerTarget(e.name,e)}))},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(e,t){I.unregisterTarget(t),I.registerTarget(e,this)}},mounted:function(){var e=this;this.transition&&this.$nextTick((function(){e.firstRender=!1}))},beforeDestroy:function(){I.unregisterTarget(this.name)},computed:{ownTransports:function(){var e=this.transports[this.name]||[];return this.multiple?e:0===e.length?[]:[e[e.length-1]]},passengers:function(){return h(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var e=this.slim&&!this.transition;return e&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),e}},render:function(e){var t=this.noWrapper(),n=this.children(),r=this.transition||this.tag;return t?n[0]:this.slim&&!r?e():e(r,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},n)}}),A=0,_=["disabled","name","order","slim","slotProps","tag","to"],b=["multiple","transition"],N=i.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(A++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!==typeof document){var e=document.querySelector(this.mountTo);if(e){var t=this.$props;if(I.targets[t.name])t.bail?console.warn("[portal-vue]: Target ".concat(t.name," is already mounted.\n Aborting because 'bail: true' is set")):this.portalTarget=I.targets[t.name];else{var n=t.append;if(n){var r="string"===typeof n?n:"DIV",i=document.createElement(r);e.appendChild(i),e=i}var o=p(this.$props,b);o.slim=this.targetSlim,o.tag=this.targetTag,o.slotProps=this.targetSlotProps,o.name=this.to,this.portalTarget=new T({el:e,parent:this.$parent||this,propsData:o})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var e=this.portalTarget;if(this.append){var t=e.$el;t.parentNode.removeChild(t)}e.$destroy()},render:function(e){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),e();if(!this.$scopedSlots.manual){var t=p(this.$props,_);return e(C,{props:t,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var n=this.$scopedSlots.manual({to:this.to});return Array.isArray(n)&&(n=n[0]),n||e()}});function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.component(t.portalName||"Portal",C),e.component(t.portalTargetName||"PortalTarget",T),e.component(t.MountingPortalName||"MountingPortal",N)}var w={install:E};t.default=w,t.Portal=C,t.PortalTarget=T,t.MountingPortal=N,t.Wormhole=I},"2bdd":function(e,t,n){"use strict";var r=n("d282"),i=n("02de"),o=n("a8c1"),s=n("5fbe"),a=n("543e"),c=Object(r["a"])("list"),u=c[0],l=c[1],f=c[2];t["a"]=u({mixins:[Object(s["a"])((function(e){this.scroller||(this.scroller=Object(o["c"])(this.$el)),e(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var e=this;this.$nextTick((function(){if(!(e.innerLoading||e.finished||e.error)){var t,n=e.$el,r=e.scroller,o=e.offset,s=e.direction;t=r.getBoundingClientRect?r.getBoundingClientRect():{top:0,bottom:r.innerHeight};var a=t.bottom-t.top;if(!a||Object(i["a"])(n))return!1;var c=!1,u=e.$refs.placeholder.getBoundingClientRect();c="up"===s?t.top-u.top<=o:u.bottom-t.bottom<=o,c&&(e.innerLoading=!0,e.$emit("input",!0),e.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var e=this.$createElement;if(this.innerLoading&&!this.finished)return e("div",{key:"loading",class:l("loading")},[this.slots("loading")||e(a["a"],{attrs:{size:"16"}},[this.loadingText||f("loading")])])},genFinishedText:function(){var e=this.$createElement;if(this.finished){var t=this.slots("finished")||this.finishedText;if(t)return e("div",{class:l("finished-text")},[t])}},genErrorText:function(){var e=this.$createElement;if(this.error){var t=this.slots("error")||this.errorText;if(t)return e("div",{on:{click:this.clickErrorText},class:l("error-text")},[t])}}},render:function(){var e=arguments[0],t=e("div",{ref:"placeholder",key:"placeholder",class:l("placeholder")});return e("div",{class:l(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():t,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():t])}})},"2caf":function(e,t,n){var r=n("5ca1");r(r.S,"Array",{isArray:n("1169")})},"2d00":function(e,t){e.exports=!1},"2d34":function(e,t,n){var r=n("5ca1"),i=n("38fd"),o=n("cb7c");r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},"2d5c":function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},"2d63":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("5d73"),i=n.n(r),o=n("a745"),s=n.n(o),a=n("5d58"),c=n.n(a),u=n("67bb"),l=n.n(u),f=n("e630");function h(e,t){var n;if("undefined"===typeof l.a||null==e[c.a]){if(s()(e)||(n=Object(f["a"])(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,h=!1;return{s:function(){n=i()(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){h=!0,a=e},f:function(){try{u||null==n["return"]||n["return"]()}finally{if(h)throw a}}}}},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var s=new Error(e);return r(s,t,n,i,o)}},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2e08":function(e,t,n){var r=n("9def"),i=n("9744"),o=n("be13");e.exports=function(e,t,n,s){var a=String(o(e)),c=a.length,u=void 0===n?" ":String(n),l=r(t);if(l<=c||""==u)return a;var f=l-c,h=i.call(u,Math.ceil(f/u.length));return h.length>f&&(h=h.slice(0,f)),s?h+a:a+h}},"2e37":function(e,t,n){var r=n("5ca1");r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2ef0":function(e,t,n){(function(e,r){var i;
- /**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */(function(){var o,s="4.17.20",a=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",d=1,p=2,g=4,v=1,y=2,m=1,I=2,M=4,C=8,T=16,A=32,_=64,b=128,N=256,E=512,w=30,S="...",O=800,D=16,L=1,R=2,j=3,x=1/0,k=9007199254740991,U=17976931348623157e292,P=NaN,z=4294967295,G=z-1,B=z>>>1,Y=[["ary",b],["bind",m],["bindKey",I],["curry",C],["curryRight",T],["flip",E],["partial",A],["partialRight",_],["rearg",N]],H="[object Arguments]",$="[object Array]",F="[object AsyncFunction]",Q="[object Boolean]",V="[object Date]",Z="[object DOMException]",W="[object Error]",K="[object Function]",q="[object GeneratorFunction]",J="[object Map]",X="[object Number]",ee="[object Null]",te="[object Object]",ne="[object Promise]",re="[object Proxy]",ie="[object RegExp]",oe="[object Set]",se="[object String]",ae="[object Symbol]",ce="[object Undefined]",ue="[object WeakMap]",le="[object WeakSet]",fe="[object ArrayBuffer]",he="[object DataView]",de="[object Float32Array]",pe="[object Float64Array]",ge="[object Int8Array]",ve="[object Int16Array]",ye="[object Int32Array]",me="[object Uint8Array]",Ie="[object Uint8ClampedArray]",Me="[object Uint16Array]",Ce="[object Uint32Array]",Te=/\b__p \+= '';/g,Ae=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,be=/&(?:amp|lt|gt|quot|#39);/g,Ne=/[&<>"']/g,Ee=RegExp(be.source),we=RegExp(Ne.source),Se=/<%-([\s\S]+?)%>/g,Oe=/<%([\s\S]+?)%>/g,De=/<%=([\s\S]+?)%>/g,Le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Re=/^\w*$/,je=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xe=/[\\^$.*+?()[\]{}|]/g,ke=RegExp(xe.source),Ue=/^\s+|\s+$/g,Pe=/^\s+/,ze=/\s+$/,Ge=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Be=/\{\n\/\* \[wrapped with (.+)\] \*/,Ye=/,? & /,He=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$e=/\\(\\)?/g,Fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qe=/\w*$/,Ve=/^[-+]0x[0-9a-f]+$/i,Ze=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ke=/^0o[0-7]+$/i,qe=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xe=/($^)/,et=/['\n\r\u2028\u2029\\]/g,tt="\\ud800-\\udfff",nt="\\u0300-\\u036f",rt="\\ufe20-\\ufe2f",it="\\u20d0-\\u20ff",ot=nt+rt+it,st="\\u2700-\\u27bf",at="a-z\\xdf-\\xf6\\xf8-\\xff",ct="\\xac\\xb1\\xd7\\xf7",ut="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lt="\\u2000-\\u206f",ft=" \\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",ht="A-Z\\xc0-\\xd6\\xd8-\\xde",dt="\\ufe0e\\ufe0f",pt=ct+ut+lt+ft,gt="['’]",vt="["+tt+"]",yt="["+pt+"]",mt="["+ot+"]",It="\\d+",Mt="["+st+"]",Ct="["+at+"]",Tt="[^"+tt+pt+It+st+at+ht+"]",At="\\ud83c[\\udffb-\\udfff]",_t="(?:"+mt+"|"+At+")",bt="[^"+tt+"]",Nt="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",wt="["+ht+"]",St="\\u200d",Ot="(?:"+Ct+"|"+Tt+")",Dt="(?:"+wt+"|"+Tt+")",Lt="(?:"+gt+"(?:d|ll|m|re|s|t|ve))?",Rt="(?:"+gt+"(?:D|LL|M|RE|S|T|VE))?",jt=_t+"?",xt="["+dt+"]?",kt="(?:"+St+"(?:"+[bt,Nt,Et].join("|")+")"+xt+jt+")*",Ut="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",zt=xt+jt+kt,Gt="(?:"+[Mt,Nt,Et].join("|")+")"+zt,Bt="(?:"+[bt+mt+"?",mt,Nt,Et,vt].join("|")+")",Yt=RegExp(gt,"g"),Ht=RegExp(mt,"g"),$t=RegExp(At+"(?="+At+")|"+Bt+zt,"g"),Ft=RegExp([wt+"?"+Ct+"+"+Lt+"(?="+[yt,wt,"$"].join("|")+")",Dt+"+"+Rt+"(?="+[yt,wt+Ot,"$"].join("|")+")",wt+"?"+Ot+"+"+Lt,wt+"+"+Rt,Pt,Ut,It,Gt].join("|"),"g"),Qt=RegExp("["+St+tt+ot+dt+"]"),Vt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zt=["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"],Wt=-1,Kt={};Kt[de]=Kt[pe]=Kt[ge]=Kt[ve]=Kt[ye]=Kt[me]=Kt[Ie]=Kt[Me]=Kt[Ce]=!0,Kt[H]=Kt[$]=Kt[fe]=Kt[Q]=Kt[he]=Kt[V]=Kt[W]=Kt[K]=Kt[J]=Kt[X]=Kt[te]=Kt[ie]=Kt[oe]=Kt[se]=Kt[ue]=!1;var qt={};qt[H]=qt[$]=qt[fe]=qt[he]=qt[Q]=qt[V]=qt[de]=qt[pe]=qt[ge]=qt[ve]=qt[ye]=qt[J]=qt[X]=qt[te]=qt[ie]=qt[oe]=qt[se]=qt[ae]=qt[me]=qt[Ie]=qt[Me]=qt[Ce]=!0,qt[W]=qt[K]=qt[ue]=!1;var Jt={"À":"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"},Xt={"&":"&","<":"<",">":">",'"':""","'":"'"},en={"&":"&","<":"<",">":">",""":'"',"'":"'"},tn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,on="object"==typeof e&&e&&e.Object===Object&&e,sn="object"==typeof self&&self&&self.Object===Object&&self,an=on||sn||Function("return this")(),cn=t&&!t.nodeType&&t,un=cn&&"object"==typeof r&&r&&!r.nodeType&&r,ln=un&&un.exports===cn,fn=ln&&on.process,hn=function(){try{var e=un&&un.require&&un.require("util").types;return e||fn&&fn.binding&&fn.binding("util")}catch(t){}}(),dn=hn&&hn.isArrayBuffer,pn=hn&&hn.isDate,gn=hn&&hn.isMap,vn=hn&&hn.isRegExp,yn=hn&&hn.isSet,mn=hn&&hn.isTypedArray;function In(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Mn(e,t,n,r){var i=-1,o=null==e?0:e.length;while(++i<o){var s=e[i];t(r,s,n(s),e)}return r}function Cn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function Tn(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function An(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function _n(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function bn(e,t){var n=null==e?0:e.length;return!!n&&Un(e,t,0)>-1}function Nn(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}function En(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}function wn(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}function Sn(e,t,n,r){var i=-1,o=null==e?0:e.length;r&&o&&(n=e[++i]);while(++i<o)n=t(n,e[i],i,e);return n}function On(e,t,n,r){var i=null==e?0:e.length;r&&i&&(n=e[--i]);while(i--)n=t(n,e[i],i,e);return n}function Dn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var Ln=Bn("length");function Rn(e){return e.split("")}function jn(e){return e.match(He)||[]}function xn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function kn(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o<i)if(t(e[o],o,e))return o;return-1}function Un(e,t,n){return t===t?hr(e,t,n):kn(e,zn,n)}function Pn(e,t,n,r){var i=n-1,o=e.length;while(++i<o)if(r(e[i],t))return i;return-1}function zn(e){return e!==e}function Gn(e,t){var n=null==e?0:e.length;return n?Fn(e,t)/n:P}function Bn(e){return function(t){return null==t?o:t[e]}}function Yn(e){return function(t){return null==e?o:e[t]}}function Hn(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function $n(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Fn(e,t){var n,r=-1,i=e.length;while(++r<i){var s=t(e[r]);s!==o&&(n=n===o?s:n+s)}return n}function Qn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Vn(e,t){return En(t,(function(t){return[t,e[t]]}))}function Zn(e){return function(t){return e(t)}}function Wn(e,t){return En(t,(function(t){return e[t]}))}function Kn(e,t){return e.has(t)}function qn(e,t){var n=-1,r=e.length;while(++n<r&&Un(t,e[n],0)>-1);return n}function Jn(e,t){var n=e.length;while(n--&&Un(t,e[n],0)>-1);return n}function Xn(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var er=Yn(Jt),tr=Yn(Xt);function nr(e){return"\\"+tn[e]}function rr(e,t){return null==e?o:e[t]}function ir(e){return Qt.test(e)}function or(e){return Vt.test(e)}function sr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function ar(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cr(e,t){return function(n){return e(t(n))}}function ur(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var s=e[n];s!==t&&s!==h||(e[n]=h,o[i++]=n)}return o}function lr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function fr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hr(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}function dr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function pr(e){return ir(e)?yr(e):Ln(e)}function gr(e){return ir(e)?mr(e):Rn(e)}var vr=Yn(en);function yr(e){var t=$t.lastIndex=0;while($t.test(e))++t;return t}function mr(e){return e.match($t)||[]}function Ir(e){return e.match(Ft)||[]}var Mr=function e(t){t=null==t?an:Cr.defaults(an.Object(),t,Cr.pick(an,Zt));var n=t.Array,r=t.Date,i=t.Error,He=t.Function,tt=t.Math,nt=t.Object,rt=t.RegExp,it=t.String,ot=t.TypeError,st=n.prototype,at=He.prototype,ct=nt.prototype,ut=t["__core-js_shared__"],lt=at.toString,ft=ct.hasOwnProperty,ht=0,dt=function(){var e=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),pt=ct.toString,gt=lt.call(nt),vt=an._,yt=rt("^"+lt.call(ft).replace(xe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=ln?t.Buffer:o,It=t.Symbol,Mt=t.Uint8Array,Ct=mt?mt.allocUnsafe:o,Tt=cr(nt.getPrototypeOf,nt),At=nt.create,_t=ct.propertyIsEnumerable,bt=st.splice,Nt=It?It.isConcatSpreadable:o,Et=It?It.iterator:o,wt=It?It.toStringTag:o,St=function(){try{var e=Fs(nt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Ot=t.clearTimeout!==an.clearTimeout&&t.clearTimeout,Dt=r&&r.now!==an.Date.now&&r.now,Lt=t.setTimeout!==an.setTimeout&&t.setTimeout,Rt=tt.ceil,jt=tt.floor,xt=nt.getOwnPropertySymbols,kt=mt?mt.isBuffer:o,Ut=t.isFinite,Pt=st.join,zt=cr(nt.keys,nt),Gt=tt.max,Bt=tt.min,$t=r.now,Ft=t.parseInt,Qt=tt.random,Vt=st.reverse,Jt=Fs(t,"DataView"),Xt=Fs(t,"Map"),en=Fs(t,"Promise"),tn=Fs(t,"Set"),on=Fs(t,"WeakMap"),sn=Fs(nt,"create"),cn=on&&new on,un={},fn=Oa(Jt),hn=Oa(Xt),Ln=Oa(en),Rn=Oa(tn),Yn=Oa(on),hr=It?It.prototype:o,yr=hr?hr.valueOf:o,mr=hr?hr.toString:o;function Mr(e){if(Al(e)&&!sl(e)&&!(e instanceof br)){if(e instanceof _r)return e;if(ft.call(e,"__wrapped__"))return La(e)}return new _r(e)}var Tr=function(){function e(){}return function(t){if(!Tl(t))return{};if(At)return At(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Ar(){}function _r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function br(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function Nr(){var e=new br(this.__wrapped__);return e.__actions__=ns(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ns(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ns(this.__views__),e}function Er(){if(this.__filtered__){var e=new br(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function wr(){var e=this.__wrapped__.value(),t=this.__dir__,n=sl(e),r=t<0,i=n?e.length:0,o=Ks(0,i,this.__views__),s=o.start,a=o.end,c=a-s,u=r?a:s-1,l=this.__iteratees__,f=l.length,h=0,d=Bt(c,this.__takeCount__);if(!n||!r&&i==c&&d==c)return Uo(e,this.__actions__);var p=[];e:while(c--&&h<d){u+=t;var g=-1,v=e[u];while(++g<f){var y=l[g],m=y.iteratee,I=y.type,M=m(v);if(I==R)v=M;else if(!M){if(I==L)continue e;break e}}p[h++]=v}return p}function Sr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Or(){this.__data__=sn?sn(null):{},this.size=0}function Dr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Lr(e){var t=this.__data__;if(sn){var n=t[e];return n===l?o:n}return ft.call(t,e)?t[e]:o}function Rr(e){var t=this.__data__;return sn?t[e]!==o:ft.call(t,e)}function jr(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=sn&&t===o?l:t,this}function xr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function kr(){this.__data__=[],this.size=0}function Ur(e){var t=this.__data__,n=ci(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():bt.call(t,n,1),--this.size,!0}function Pr(e){var t=this.__data__,n=ci(t,e);return n<0?o:t[n][1]}function zr(e){return ci(this.__data__,e)>-1}function Gr(e,t){var n=this.__data__,r=ci(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Br(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Yr(){this.size=0,this.__data__={hash:new Sr,map:new(Xt||xr),string:new Sr}}function Hr(e){var t=Hs(this,e)["delete"](e);return this.size-=t?1:0,t}function $r(e){return Hs(this,e).get(e)}function Fr(e){return Hs(this,e).has(e)}function Qr(e,t){var n=Hs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Vr(e){var t=-1,n=null==e?0:e.length;this.__data__=new Br;while(++t<n)this.add(e[t])}function Zr(e){return this.__data__.set(e,l),this}function Wr(e){return this.__data__.has(e)}function Kr(e){var t=this.__data__=new xr(e);this.size=t.size}function qr(){this.__data__=new xr,this.size=0}function Jr(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function Xr(e){return this.__data__.get(e)}function ei(e){return this.__data__.has(e)}function ti(e,t){var n=this.__data__;if(n instanceof xr){var r=n.__data__;if(!Xt||r.length<a-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Br(r)}return n.set(e,t),this.size=n.size,this}function ni(e,t){var n=sl(e),r=!n&&ol(e),i=!n&&!r&&fl(e),o=!n&&!r&&!i&&Pl(e),s=n||r||i||o,a=s?Qn(e.length,it):[],c=a.length;for(var u in e)!t&&!ft.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ia(u,c))||a.push(u);return a}function ri(e){var t=e.length;return t?e[vo(0,t-1)]:o}function ii(e,t){return Ea(ns(e),pi(t,0,e.length))}function oi(e){return Ea(ns(e))}function si(e,t,n){(n!==o&&!nl(e[t],n)||n===o&&!(t in e))&&hi(e,t,n)}function ai(e,t,n){var r=e[t];ft.call(e,t)&&nl(r,n)&&(n!==o||t in e)||hi(e,t,n)}function ci(e,t){var n=e.length;while(n--)if(nl(e[n][0],t))return n;return-1}function ui(e,t,n,r){return Mi(e,(function(e,i,o){t(r,e,n(e),o)})),r}function li(e,t){return e&&rs(t,Cf(t),e)}function fi(e,t){return e&&rs(t,Tf(t),e)}function hi(e,t,n){"__proto__"==t&&St?St(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function di(e,t){var r=-1,i=t.length,s=n(i),a=null==e;while(++r<i)s[r]=a?o:gf(e,t[r]);return s}function pi(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function gi(e,t,n,r,i,s){var a,c=t&d,u=t&p,l=t&g;if(n&&(a=i?n(e,r,i,s):n(e)),a!==o)return a;if(!Tl(e))return e;var f=sl(e);if(f){if(a=Xs(e),!c)return ns(e,a)}else{var h=Ws(e),v=h==K||h==q;if(fl(e))return Qo(e,c);if(h==te||h==H||v&&!i){if(a=u||v?{}:ea(e),!c)return u?os(e,fi(a,e)):is(e,li(a,e))}else{if(!qt[h])return i?e:{};a=ta(e,h,c)}}s||(s=new Kr);var y=s.get(e);if(y)return y;s.set(e,a),xl(e)?e.forEach((function(r){a.add(gi(r,t,n,r,e,s))})):_l(e)&&e.forEach((function(r,i){a.set(i,gi(r,t,n,i,e,s))}));var m=l?u?Ps:Us:u?Tf:Cf,I=f?o:m(e);return Cn(I||e,(function(r,i){I&&(i=r,r=e[i]),ai(a,i,gi(r,t,n,i,e,s))})),a}function vi(e){var t=Cf(e);return function(n){return yi(n,e,t)}}function yi(e,t,n){var r=n.length;if(null==e)return!r;e=nt(e);while(r--){var i=n[r],s=t[i],a=e[i];if(a===o&&!(i in e)||!s(a))return!1}return!0}function mi(e,t,n){if("function"!=typeof e)throw new ot(u);return Aa((function(){e.apply(o,n)}),t)}function Ii(e,t,n,r){var i=-1,o=bn,s=!0,c=e.length,u=[],l=t.length;if(!c)return u;n&&(t=En(t,Zn(n))),r?(o=Nn,s=!1):t.length>=a&&(o=Kn,s=!1,t=new Vr(t));e:while(++i<c){var f=e[i],h=null==n?f:n(f);if(f=r||0!==f?f:0,s&&h===h){var d=l;while(d--)if(t[d]===h)continue e;u.push(f)}else o(t,h,r)||u.push(f)}return u}Mr.templateSettings={escape:Se,evaluate:Oe,interpolate:De,variable:"",imports:{_:Mr}},Mr.prototype=Ar.prototype,Mr.prototype.constructor=Mr,_r.prototype=Tr(Ar.prototype),_r.prototype.constructor=_r,br.prototype=Tr(Ar.prototype),br.prototype.constructor=br,Sr.prototype.clear=Or,Sr.prototype["delete"]=Dr,Sr.prototype.get=Lr,Sr.prototype.has=Rr,Sr.prototype.set=jr,xr.prototype.clear=kr,xr.prototype["delete"]=Ur,xr.prototype.get=Pr,xr.prototype.has=zr,xr.prototype.set=Gr,Br.prototype.clear=Yr,Br.prototype["delete"]=Hr,Br.prototype.get=$r,Br.prototype.has=Fr,Br.prototype.set=Qr,Vr.prototype.add=Vr.prototype.push=Zr,Vr.prototype.has=Wr,Kr.prototype.clear=qr,Kr.prototype["delete"]=Jr,Kr.prototype.get=Xr,Kr.prototype.has=ei,Kr.prototype.set=ti;var Mi=cs(Si),Ci=cs(Oi,!0);function Ti(e,t){var n=!0;return Mi(e,(function(e,r,i){return n=!!t(e,r,i),n})),n}function Ai(e,t,n){var r=-1,i=e.length;while(++r<i){var s=e[r],a=t(s);if(null!=a&&(c===o?a===a&&!Ul(a):n(a,c)))var c=a,u=s}return u}function _i(e,t,n,r){var i=e.length;n=Ql(n),n<0&&(n=-n>i?0:i+n),r=r===o||r>i?i:Ql(r),r<0&&(r+=i),r=n>r?0:Vl(r);while(n<r)e[n++]=t;return e}function bi(e,t){var n=[];return Mi(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Ni(e,t,n,r,i){var o=-1,s=e.length;n||(n=ra),i||(i=[]);while(++o<s){var a=e[o];t>0&&n(a)?t>1?Ni(a,t-1,n,r,i):wn(i,a):r||(i[i.length]=a)}return i}var Ei=us(),wi=us(!0);function Si(e,t){return e&&Ei(e,t,Cf)}function Oi(e,t){return e&&wi(e,t,Cf)}function Di(e,t){return _n(t,(function(t){return Il(e[t])}))}function Li(e,t){t=Yo(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Sa(t[n++])];return n&&n==r?e:o}function Ri(e,t,n){var r=t(e);return sl(e)?r:wn(r,n(e))}function ji(e){return null==e?e===o?ce:ee:wt&&wt in nt(e)?Qs(e):ya(e)}function xi(e,t){return e>t}function ki(e,t){return null!=e&&ft.call(e,t)}function Ui(e,t){return null!=e&&t in nt(e)}function Pi(e,t,n){return e>=Bt(t,n)&&e<Gt(t,n)}function zi(e,t,r){var i=r?Nn:bn,s=e[0].length,a=e.length,c=a,u=n(a),l=1/0,f=[];while(c--){var h=e[c];c&&t&&(h=En(h,Zn(t))),l=Bt(h.length,l),u[c]=!r&&(t||s>=120&&h.length>=120)?new Vr(c&&h):o}h=e[0];var d=-1,p=u[0];e:while(++d<s&&f.length<l){var g=h[d],v=t?t(g):g;if(g=r||0!==g?g:0,!(p?Kn(p,v):i(f,v,r))){c=a;while(--c){var y=u[c];if(!(y?Kn(y,v):i(e[c],v,r)))continue e}p&&p.push(v),f.push(g)}}return f}function Gi(e,t,n,r){return Si(e,(function(e,i,o){t(r,n(e),i,o)})),r}function Bi(e,t,n){t=Yo(t,e),e=Ia(e,t);var r=null==e?e:e[Sa(rc(t))];return null==r?o:In(r,e,n)}function Yi(e){return Al(e)&&ji(e)==H}function Hi(e){return Al(e)&&ji(e)==fe}function $i(e){return Al(e)&&ji(e)==V}function Fi(e,t,n,r,i){return e===t||(null==e||null==t||!Al(e)&&!Al(t)?e!==e&&t!==t:Qi(e,t,n,r,Fi,i))}function Qi(e,t,n,r,i,o){var s=sl(e),a=sl(t),c=s?$:Ws(e),u=a?$:Ws(t);c=c==H?te:c,u=u==H?te:u;var l=c==te,f=u==te,h=c==u;if(h&&fl(e)){if(!fl(t))return!1;s=!0,l=!1}if(h&&!l)return o||(o=new Kr),s||Pl(e)?Rs(e,t,n,r,i,o):js(e,t,c,n,r,i,o);if(!(n&v)){var d=l&&ft.call(e,"__wrapped__"),p=f&&ft.call(t,"__wrapped__");if(d||p){var g=d?e.value():e,y=p?t.value():t;return o||(o=new Kr),i(g,y,n,r,o)}}return!!h&&(o||(o=new Kr),xs(e,t,n,r,i,o))}function Vi(e){return Al(e)&&Ws(e)==J}function Zi(e,t,n,r){var i=n.length,s=i,a=!r;if(null==e)return!s;e=nt(e);while(i--){var c=n[i];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}while(++i<s){c=n[i];var u=c[0],l=e[u],f=c[1];if(a&&c[2]){if(l===o&&!(u in e))return!1}else{var h=new Kr;if(r)var d=r(l,f,u,e,t,h);if(!(d===o?Fi(f,l,v|y,r,h):d))return!1}}return!0}function Wi(e){if(!Tl(e)||ua(e))return!1;var t=Il(e)?yt:We;return t.test(Oa(e))}function Ki(e){return Al(e)&&ji(e)==ie}function qi(e){return Al(e)&&Ws(e)==oe}function Ji(e){return Al(e)&&Cl(e.length)&&!!Kt[ji(e)]}function Xi(e){return"function"==typeof e?e:null==e?Sh:"object"==typeof e?sl(e)?oo(e[0],e[1]):io(e):Yh(e)}function eo(e){if(!fa(e))return zt(e);var t=[];for(var n in nt(e))ft.call(e,n)&&"constructor"!=n&&t.push(n);return t}function to(e){if(!Tl(e))return va(e);var t=fa(e),n=[];for(var r in e)("constructor"!=r||!t&&ft.call(e,r))&&n.push(r);return n}function no(e,t){return e<t}function ro(e,t){var r=-1,i=cl(e)?n(e.length):[];return Mi(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function io(e){var t=$s(e);return 1==t.length&&t[0][2]?da(t[0][0],t[0][1]):function(n){return n===e||Zi(n,e,t)}}function oo(e,t){return sa(e)&&ha(t)?da(Sa(e),t):function(n){var r=gf(n,e);return r===o&&r===t?yf(n,e):Fi(t,r,v|y)}}function so(e,t,n,r,i){e!==t&&Ei(t,(function(s,a){if(i||(i=new Kr),Tl(s))ao(e,t,a,n,so,r,i);else{var c=r?r(Ca(e,a),s,a+"",e,t,i):o;c===o&&(c=s),si(e,a,c)}}),Tf)}function ao(e,t,n,r,i,s,a){var c=Ca(e,n),u=Ca(t,n),l=a.get(u);if(l)si(e,n,l);else{var f=s?s(c,u,n+"",e,t,a):o,h=f===o;if(h){var d=sl(u),p=!d&&fl(u),g=!d&&!p&&Pl(u);f=u,d||p||g?sl(c)?f=c:ul(c)?f=ns(c):p?(h=!1,f=Qo(u,!0)):g?(h=!1,f=qo(u,!0)):f=[]:Ll(u)||ol(u)?(f=c,ol(c)?f=Wl(c):Tl(c)&&!Il(c)||(f=ea(u))):h=!1}h&&(a.set(u,f),i(f,u,r,s,a),a["delete"](u)),si(e,n,f)}}function co(e,t){var n=e.length;if(n)return t+=t<0?n:0,ia(t,n)?e[t]:o}function uo(e,t,n){t=t.length?En(t,(function(e){return sl(e)?function(t){return Li(t,1===e.length?e[0]:e)}:e})):[Sh];var r=-1;t=En(t,Zn(Ys()));var i=ro(e,(function(e,n,i){var o=En(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return $n(i,(function(e,t){return Xo(e,t,n)}))}function lo(e,t){return fo(e,t,(function(t,n){return yf(e,n)}))}function fo(e,t,n){var r=-1,i=t.length,o={};while(++r<i){var s=t[r],a=Li(e,s);n(a,s)&&To(o,Yo(s,e),a)}return o}function ho(e){return function(t){return Li(t,e)}}function po(e,t,n,r){var i=r?Pn:Un,o=-1,s=t.length,a=e;e===t&&(t=ns(t)),n&&(a=En(e,Zn(n)));while(++o<s){var c=0,u=t[o],l=n?n(u):u;while((c=i(a,l,c,r))>-1)a!==e&&bt.call(a,c,1),bt.call(e,c,1)}return e}function go(e,t){var n=e?t.length:0,r=n-1;while(n--){var i=t[n];if(n==r||i!==o){var o=i;ia(i)?bt.call(e,i,1):jo(e,i)}}return e}function vo(e,t){return e+jt(Qt()*(t-e+1))}function yo(e,t,r,i){var o=-1,s=Gt(Rt((t-e)/(r||1)),0),a=n(s);while(s--)a[i?s:++o]=e,e+=r;return a}function mo(e,t){var n="";if(!e||t<1||t>k)return n;do{t%2&&(n+=e),t=jt(t/2),t&&(e+=e)}while(t);return n}function Io(e,t){return _a(ma(e,t,Sh),e+"")}function Mo(e){return ri(Gf(e))}function Co(e,t){var n=Gf(e);return Ea(n,pi(t,0,n.length))}function To(e,t,n,r){if(!Tl(e))return e;t=Yo(t,e);var i=-1,s=t.length,a=s-1,c=e;while(null!=c&&++i<s){var u=Sa(t[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=a){var f=c[u];l=r?r(f,u,c):o,l===o&&(l=Tl(f)?f:ia(t[i+1])?[]:{})}ai(c,u,l),c=c[u]}return e}var Ao=cn?function(e,t){return cn.set(e,t),e}:Sh,_o=St?function(e,t){return St(e,"toString",{configurable:!0,enumerable:!1,value:bh(t),writable:!0})}:Sh;function bo(e){return Ea(Gf(e))}function No(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;var s=n(o);while(++i<o)s[i]=e[i+t];return s}function Eo(e,t){var n;return Mi(e,(function(e,r,i){return n=t(e,r,i),!n})),!!n}function wo(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=B){while(r<i){var o=r+i>>>1,s=e[o];null!==s&&!Ul(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return So(e,t,Sh,n)}function So(e,t,n,r){var i=0,s=null==e?0:e.length;if(0===s)return 0;t=n(t);var a=t!==t,c=null===t,u=Ul(t),l=t===o;while(i<s){var f=jt((i+s)/2),h=n(e[f]),d=h!==o,p=null===h,g=h===h,v=Ul(h);if(a)var y=r||g;else y=l?g&&(r||d):c?g&&d&&(r||!p):u?g&&d&&!p&&(r||!v):!p&&!v&&(r?h<=t:h<t);y?i=f+1:s=f}return Bt(s,G)}function Oo(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var s=e[n],a=t?t(s):s;if(!n||!nl(a,c)){var c=a;o[i++]=0===s?0:s}}return o}function Do(e){return"number"==typeof e?e:Ul(e)?P:+e}function Lo(e){if("string"==typeof e)return e;if(sl(e))return En(e,Lo)+"";if(Ul(e))return mr?mr.call(e):"";var t=e+"";return"0"==t&&1/e==-x?"-0":t}function Ro(e,t,n){var r=-1,i=bn,o=e.length,s=!0,c=[],u=c;if(n)s=!1,i=Nn;else if(o>=a){var l=t?null:Es(e);if(l)return lr(l);s=!1,i=Kn,u=new Vr}else u=t?[]:c;e:while(++r<o){var f=e[r],h=t?t(f):f;if(f=n||0!==f?f:0,s&&h===h){var d=u.length;while(d--)if(u[d]===h)continue e;t&&u.push(h),c.push(f)}else i(u,h,n)||(u!==c&&u.push(h),c.push(f))}return c}function jo(e,t){return t=Yo(t,e),e=Ia(e,t),null==e||delete e[Sa(rc(t))]}function xo(e,t,n,r){return To(e,t,n(Li(e,t)),r)}function ko(e,t,n,r){var i=e.length,o=r?i:-1;while((r?o--:++o<i)&&t(e[o],o,e));return n?No(e,r?0:o,r?o+1:i):No(e,r?o+1:0,r?i:o)}function Uo(e,t){var n=e;return n instanceof br&&(n=n.value()),Sn(t,(function(e,t){return t.func.apply(t.thisArg,wn([e],t.args))}),n)}function Po(e,t,r){var i=e.length;if(i<2)return i?Ro(e[0]):[];var o=-1,s=n(i);while(++o<i){var a=e[o],c=-1;while(++c<i)c!=o&&(s[o]=Ii(s[o]||a,e[c],t,r))}return Ro(Ni(s,1),t,r)}function zo(e,t,n){var r=-1,i=e.length,s=t.length,a={};while(++r<i){var c=r<s?t[r]:o;n(a,e[r],c)}return a}function Go(e){return ul(e)?e:[]}function Bo(e){return"function"==typeof e?e:Sh}function Yo(e,t){return sl(e)?e:sa(e,t)?[e]:wa(ql(e))}var Ho=Io;function $o(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:No(e,t,n)}var Fo=Ot||function(e){return an.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var n=e.length,r=Ct?Ct(n):new e.constructor(n);return e.copy(r),r}function Vo(e){var t=new e.constructor(e.byteLength);return new Mt(t).set(new Mt(e)),t}function Zo(e,t){var n=t?Vo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Wo(e){var t=new e.constructor(e.source,Qe.exec(e));return t.lastIndex=e.lastIndex,t}function Ko(e){return yr?nt(yr.call(e)):{}}function qo(e,t){var n=t?Vo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Jo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,s=Ul(e),a=t!==o,c=null===t,u=t===t,l=Ul(t);if(!c&&!l&&!s&&e>t||s&&a&&u&&!c&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!s&&!l&&e<t||l&&n&&i&&!r&&!s||c&&n&&i||!a&&i||!u)return-1}return 0}function Xo(e,t,n){var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;while(++r<s){var c=Jo(i[r],o[r]);if(c){if(r>=a)return c;var u=n[r];return c*("desc"==u?-1:1)}}return e.index-t.index}function es(e,t,r,i){var o=-1,s=e.length,a=r.length,c=-1,u=t.length,l=Gt(s-a,0),f=n(u+l),h=!i;while(++c<u)f[c]=t[c];while(++o<a)(h||o<s)&&(f[r[o]]=e[o]);while(l--)f[c++]=e[o++];return f}function ts(e,t,r,i){var o=-1,s=e.length,a=-1,c=r.length,u=-1,l=t.length,f=Gt(s-c,0),h=n(f+l),d=!i;while(++o<f)h[o]=e[o];var p=o;while(++u<l)h[p+u]=t[u];while(++a<c)(d||o<s)&&(h[p+r[a]]=e[o++]);return h}function ns(e,t){var r=-1,i=e.length;t||(t=n(i));while(++r<i)t[r]=e[r];return t}function rs(e,t,n,r){var i=!n;n||(n={});var s=-1,a=t.length;while(++s<a){var c=t[s],u=r?r(n[c],e[c],c,n,e):o;u===o&&(u=e[c]),i?hi(n,c,u):ai(n,c,u)}return n}function is(e,t){return rs(e,Vs(e),t)}function os(e,t){return rs(e,Zs(e),t)}function ss(e,t){return function(n,r){var i=sl(n)?Mn:ui,o=t?t():{};return i(n,e,Ys(r,2),o)}}function as(e){return Io((function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:o,a=i>2?n[2]:o;s=e.length>3&&"function"==typeof s?(i--,s):o,a&&oa(n[0],n[1],a)&&(s=i<3?o:s,i=1),t=nt(t);while(++r<i){var c=n[r];c&&e(t,c,r,s)}return t}))}function cs(e,t){return function(n,r){if(null==n)return n;if(!cl(n))return e(n,r);var i=n.length,o=t?i:-1,s=nt(n);while(t?o--:++o<i)if(!1===r(s[o],o,s))break;return n}}function us(e){return function(t,n,r){var i=-1,o=nt(t),s=r(t),a=s.length;while(a--){var c=s[e?a:++i];if(!1===n(o[c],c,o))break}return t}}function ls(e,t,n){var r=t&m,i=ds(e);function o(){var t=this&&this!==an&&this instanceof o?i:e;return t.apply(r?n:this,arguments)}return o}function fs(e){return function(t){t=ql(t);var n=ir(t)?gr(t):o,r=n?n[0]:t.charAt(0),i=n?$o(n,1).join(""):t.slice(1);return r[e]()+i}}function hs(e){return function(t){return Sn(Mh(Vf(t).replace(Yt,"")),e,"")}}function ds(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Tr(e.prototype),r=e.apply(n,t);return Tl(r)?r:n}}function ps(e,t,r){var i=ds(e);function s(){var a=arguments.length,c=n(a),u=a,l=Bs(s);while(u--)c[u]=arguments[u];var f=a<3&&c[0]!==l&&c[a-1]!==l?[]:ur(c,l);if(a-=f.length,a<r)return bs(e,t,ys,s.placeholder,o,c,f,o,o,r-a);var h=this&&this!==an&&this instanceof s?i:e;return In(h,this,c)}return s}function gs(e){return function(t,n,r){var i=nt(t);if(!cl(t)){var s=Ys(n,3);t=Cf(t),n=function(e){return s(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[s?t[a]:a]:o}}function vs(e){return ks((function(t){var n=t.length,r=n,i=_r.prototype.thru;e&&t.reverse();while(r--){var s=t[r];if("function"!=typeof s)throw new ot(u);if(i&&!a&&"wrapper"==Gs(s))var a=new _r([],!0)}r=a?r:n;while(++r<n){s=t[r];var c=Gs(s),l="wrapper"==c?zs(s):o;a=l&&ca(l[0])&&l[1]==(b|C|A|N)&&!l[4].length&&1==l[9]?a[Gs(l[0])].apply(a,l[3]):1==s.length&&ca(s)?a[c]():a.thru(s)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&sl(r))return a.plant(r).value();var i=0,o=n?t[i].apply(this,e):r;while(++i<n)o=t[i].call(this,o);return o}}))}function ys(e,t,r,i,s,a,c,u,l,f){var h=t&b,d=t&m,p=t&I,g=t&(C|T),v=t&E,y=p?o:ds(e);function M(){var o=arguments.length,m=n(o),I=o;while(I--)m[I]=arguments[I];if(g)var C=Bs(M),T=Xn(m,C);if(i&&(m=es(m,i,s,g)),a&&(m=ts(m,a,c,g)),o-=T,g&&o<f){var A=ur(m,C);return bs(e,t,ys,M.placeholder,r,m,A,u,l,f-o)}var _=d?r:this,b=p?_[e]:e;return o=m.length,u?m=Ma(m,u):v&&o>1&&m.reverse(),h&&l<o&&(m.length=l),this&&this!==an&&this instanceof M&&(b=y||ds(b)),b.apply(_,m)}return M}function ms(e,t){return function(n,r){return Gi(n,e,t(r),{})}}function Is(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=Lo(n),r=Lo(r)):(n=Do(n),r=Do(r)),i=e(n,r)}return i}}function Ms(e){return ks((function(t){return t=En(t,Zn(Ys())),Io((function(n){var r=this;return e(t,(function(e){return In(e,r,n)}))}))}))}function Cs(e,t){t=t===o?" ":Lo(t);var n=t.length;if(n<2)return n?mo(t,e):t;var r=mo(t,Rt(e/pr(t)));return ir(t)?$o(gr(r),0,e).join(""):r.slice(0,e)}function Ts(e,t,r,i){var o=t&m,s=ds(e);function a(){var t=-1,c=arguments.length,u=-1,l=i.length,f=n(l+c),h=this&&this!==an&&this instanceof a?s:e;while(++u<l)f[u]=i[u];while(c--)f[u++]=arguments[++t];return In(h,o?r:this,f)}return a}function As(e){return function(t,n,r){return r&&"number"!=typeof r&&oa(t,n,r)&&(n=r=o),t=Fl(t),n===o?(n=t,t=0):n=Fl(n),r=r===o?t<n?1:-1:Fl(r),yo(t,n,r,e)}}function _s(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Zl(t),n=Zl(n)),e(t,n)}}function bs(e,t,n,r,i,s,a,c,u,l){var f=t&C,h=f?a:o,d=f?o:a,p=f?s:o,g=f?o:s;t|=f?A:_,t&=~(f?_:A),t&M||(t&=~(m|I));var v=[e,t,i,p,h,g,d,c,u,l],y=n.apply(o,v);return ca(e)&&Ta(y,v),y.placeholder=r,ba(y,e,t)}function Ns(e){var t=tt[e];return function(e,n){if(e=Zl(e),n=null==n?0:Bt(Ql(n),292),n&&Ut(e)){var r=(ql(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return r=(ql(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var Es=tn&&1/lr(new tn([,-0]))[1]==x?function(e){return new tn(e)}:Uh;function ws(e){return function(t){var n=Ws(t);return n==J?ar(t):n==oe?fr(t):Vn(t,e(t))}}function Ss(e,t,n,r,i,s,a,c){var l=t&I;if(!l&&"function"!=typeof e)throw new ot(u);var f=r?r.length:0;if(f||(t&=~(A|_),r=i=o),a=a===o?a:Gt(Ql(a),0),c=c===o?c:Ql(c),f-=i?i.length:0,t&_){var h=r,d=i;r=i=o}var p=l?o:zs(e),g=[e,t,n,r,i,h,d,s,a,c];if(p&&ga(g,p),e=g[0],t=g[1],n=g[2],r=g[3],i=g[4],c=g[9]=g[9]===o?l?0:e.length:Gt(g[9]-f,0),!c&&t&(C|T)&&(t&=~(C|T)),t&&t!=m)v=t==C||t==T?ps(e,t,c):t!=A&&t!=(m|A)||i.length?ys.apply(o,g):Ts(e,t,n,r);else var v=ls(e,t,n);var y=p?Ao:Ta;return ba(y(v,g),e,t)}function Os(e,t,n,r){return e===o||nl(e,ct[n])&&!ft.call(r,n)?t:e}function Ds(e,t,n,r,i,s){return Tl(e)&&Tl(t)&&(s.set(t,e),so(e,t,o,Ds,s),s["delete"](t)),e}function Ls(e){return Ll(e)?o:e}function Rs(e,t,n,r,i,s){var a=n&v,c=e.length,u=t.length;if(c!=u&&!(a&&u>c))return!1;var l=s.get(e),f=s.get(t);if(l&&f)return l==t&&f==e;var h=-1,d=!0,p=n&y?new Vr:o;s.set(e,t),s.set(t,e);while(++h<c){var g=e[h],m=t[h];if(r)var I=a?r(m,g,h,t,e,s):r(g,m,h,e,t,s);if(I!==o){if(I)continue;d=!1;break}if(p){if(!Dn(t,(function(e,t){if(!Kn(p,t)&&(g===e||i(g,e,n,r,s)))return p.push(t)}))){d=!1;break}}else if(g!==m&&!i(g,m,n,r,s)){d=!1;break}}return s["delete"](e),s["delete"](t),d}function js(e,t,n,r,i,o,s){switch(n){case he:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fe:return!(e.byteLength!=t.byteLength||!o(new Mt(e),new Mt(t)));case Q:case V:case X:return nl(+e,+t);case W:return e.name==t.name&&e.message==t.message;case ie:case se:return e==t+"";case J:var a=ar;case oe:var c=r&v;if(a||(a=lr),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;r|=y,s.set(e,t);var l=Rs(a(e),a(t),r,i,o,s);return s["delete"](e),l;case ae:if(yr)return yr.call(e)==yr.call(t)}return!1}function xs(e,t,n,r,i,s){var a=n&v,c=Us(e),u=c.length,l=Us(t),f=l.length;if(u!=f&&!a)return!1;var h=u;while(h--){var d=c[h];if(!(a?d in t:ft.call(t,d)))return!1}var p=s.get(e),g=s.get(t);if(p&&g)return p==t&&g==e;var y=!0;s.set(e,t),s.set(t,e);var m=a;while(++h<u){d=c[h];var I=e[d],M=t[d];if(r)var C=a?r(M,I,d,t,e,s):r(I,M,d,e,t,s);if(!(C===o?I===M||i(I,M,n,r,s):C)){y=!1;break}m||(m="constructor"==d)}if(y&&!m){var T=e.constructor,A=t.constructor;T==A||!("constructor"in e)||!("constructor"in t)||"function"==typeof T&&T instanceof T&&"function"==typeof A&&A instanceof A||(y=!1)}return s["delete"](e),s["delete"](t),y}function ks(e){return _a(ma(e,o,Qa),e+"")}function Us(e){return Ri(e,Cf,Vs)}function Ps(e){return Ri(e,Tf,Zs)}var zs=cn?function(e){return cn.get(e)}:Uh;function Gs(e){var t=e.name+"",n=un[t],r=ft.call(un,t)?n.length:0;while(r--){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Bs(e){var t=ft.call(Mr,"placeholder")?Mr:e;return t.placeholder}function Ys(){var e=Mr.iteratee||Oh;return e=e===Oh?Xi:e,arguments.length?e(arguments[0],arguments[1]):e}function Hs(e,t){var n=e.__data__;return aa(t)?n["string"==typeof t?"string":"hash"]:n.map}function $s(e){var t=Cf(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,ha(i)]}return t}function Fs(e,t){var n=rr(e,t);return Wi(n)?n:o}function Qs(e){var t=ft.call(e,wt),n=e[wt];try{e[wt]=o;var r=!0}catch(s){}var i=pt.call(e);return r&&(t?e[wt]=n:delete e[wt]),i}var Vs=xt?function(e){return null==e?[]:(e=nt(e),_n(xt(e),(function(t){return _t.call(e,t)})))}:Qh,Zs=xt?function(e){var t=[];while(e)wn(t,Vs(e)),e=Tt(e);return t}:Qh,Ws=ji;function Ks(e,t,n){var r=-1,i=n.length;while(++r<i){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=Bt(t,e+s);break;case"takeRight":e=Gt(e,t-s);break}}return{start:e,end:t}}function qs(e){var t=e.match(Be);return t?t[1].split(Ye):[]}function Js(e,t,n){t=Yo(t,e);var r=-1,i=t.length,o=!1;while(++r<i){var s=Sa(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:(i=null==e?0:e.length,!!i&&Cl(i)&&ia(s,i)&&(sl(e)||ol(e)))}function Xs(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ft.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ea(e){return"function"!=typeof e.constructor||fa(e)?{}:Tr(Tt(e))}function ta(e,t,n){var r=e.constructor;switch(t){case fe:return Vo(e);case Q:case V:return new r(+e);case he:return Zo(e,n);case de:case pe:case ge:case ve:case ye:case me:case Ie:case Me:case Ce:return qo(e,n);case J:return new r;case X:case se:return new r(e);case ie:return Wo(e);case oe:return new r;case ae:return Ko(e)}}function na(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ge,"{\n/* [wrapped with "+t+"] */\n")}function ra(e){return sl(e)||ol(e)||!!(Nt&&e&&e[Nt])}function ia(e,t){var n=typeof e;return t=null==t?k:t,!!t&&("number"==n||"symbol"!=n&&qe.test(e))&&e>-1&&e%1==0&&e<t}function oa(e,t,n){if(!Tl(n))return!1;var r=typeof t;return!!("number"==r?cl(n)&&ia(t,n.length):"string"==r&&t in n)&&nl(n[t],e)}function sa(e,t){if(sl(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ul(e))||(Re.test(e)||!Le.test(e)||null!=t&&e in nt(t))}function aa(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function ca(e){var t=Gs(e),n=Mr[t];if("function"!=typeof n||!(t in br.prototype))return!1;if(e===n)return!0;var r=zs(n);return!!r&&e===r[0]}function ua(e){return!!dt&&dt in e}(Jt&&Ws(new Jt(new ArrayBuffer(1)))!=he||Xt&&Ws(new Xt)!=J||en&&Ws(en.resolve())!=ne||tn&&Ws(new tn)!=oe||on&&Ws(new on)!=ue)&&(Ws=function(e){var t=ji(e),n=t==te?e.constructor:o,r=n?Oa(n):"";if(r)switch(r){case fn:return he;case hn:return J;case Ln:return ne;case Rn:return oe;case Yn:return ue}return t});var la=ut?Il:Vh;function fa(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||ct;return e===n}function ha(e){return e===e&&!Tl(e)}function da(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in nt(n)))}}function pa(e){var t=Pu(e,(function(e){return n.size===f&&n.clear(),e})),n=t.cache;return t}function ga(e,t){var n=e[1],r=t[1],i=n|r,o=i<(m|I|b),s=r==b&&n==C||r==b&&n==N&&e[7].length<=t[8]||r==(b|N)&&t[7].length<=t[8]&&n==C;if(!o&&!s)return e;r&m&&(e[2]=t[2],i|=n&m?0:M);var a=t[3];if(a){var c=e[3];e[3]=c?es(c,a,t[4]):a,e[4]=c?ur(e[3],h):t[4]}return a=t[5],a&&(c=e[5],e[5]=c?ts(c,a,t[6]):a,e[6]=c?ur(e[5],h):t[6]),a=t[7],a&&(e[7]=a),r&b&&(e[8]=null==e[8]?t[8]:Bt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function va(e){var t=[];if(null!=e)for(var n in nt(e))t.push(n);return t}function ya(e){return pt.call(e)}function ma(e,t,r){return t=Gt(t===o?e.length-1:t,0),function(){var i=arguments,o=-1,s=Gt(i.length-t,0),a=n(s);while(++o<s)a[o]=i[t+o];o=-1;var c=n(t+1);while(++o<t)c[o]=i[o];return c[t]=r(a),In(e,this,c)}}function Ia(e,t){return t.length<2?e:Li(e,No(t,0,-1))}function Ma(e,t){var n=e.length,r=Bt(t.length,n),i=ns(e);while(r--){var s=t[r];e[r]=ia(s,n)?i[s]:o}return e}function Ca(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Ta=Na(Ao),Aa=Lt||function(e,t){return an.setTimeout(e,t)},_a=Na(_o);function ba(e,t,n){var r=t+"";return _a(e,na(r,Da(qs(r),n)))}function Na(e){var t=0,n=0;return function(){var r=$t(),i=D-(r-n);if(n=r,i>0){if(++t>=O)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ea(e,t){var n=-1,r=e.length,i=r-1;t=t===o?r:t;while(++n<t){var s=vo(n,i),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var wa=pa((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(je,(function(e,n,r,i){t.push(r?i.replace($e,"$1"):n||e)})),t}));function Sa(e){if("string"==typeof e||Ul(e))return e;var t=e+"";return"0"==t&&1/e==-x?"-0":t}function Oa(e){if(null!=e){try{return lt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Da(e,t){return Cn(Y,(function(n){var r="_."+n[0];t&n[1]&&!bn(e,r)&&e.push(r)})),e.sort()}function La(e){if(e instanceof br)return e.clone();var t=new _r(e.__wrapped__,e.__chain__);return t.__actions__=ns(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ra(e,t,r){t=(r?oa(e,t,r):t===o)?1:Gt(Ql(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];var s=0,a=0,c=n(Rt(i/t));while(s<i)c[a++]=No(e,s,s+=t);return c}function ja(e){var t=-1,n=null==e?0:e.length,r=0,i=[];while(++t<n){var o=e[t];o&&(i[r++]=o)}return i}function xa(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],i=e;while(i--)t[i-1]=arguments[i];return wn(sl(r)?ns(r):[r],Ni(t,1))}var ka=Io((function(e,t){return ul(e)?Ii(e,Ni(t,1,ul,!0)):[]})),Ua=Io((function(e,t){var n=rc(t);return ul(n)&&(n=o),ul(e)?Ii(e,Ni(t,1,ul,!0),Ys(n,2)):[]})),Pa=Io((function(e,t){var n=rc(t);return ul(n)&&(n=o),ul(e)?Ii(e,Ni(t,1,ul,!0),o,n):[]}));function za(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Ql(t),No(e,t<0?0:t,r)):[]}function Ga(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Ql(t),t=r-t,No(e,0,t<0?0:t)):[]}function Ba(e,t){return e&&e.length?ko(e,Ys(t,3),!0,!0):[]}function Ya(e,t){return e&&e.length?ko(e,Ys(t,3),!0):[]}function Ha(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&oa(e,t,n)&&(n=0,r=i),_i(e,t,n,r)):[]}function $a(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ql(n);return i<0&&(i=Gt(r+i,0)),kn(e,Ys(t,3),i)}function Fa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=Ql(n),i=n<0?Gt(r+i,0):Bt(i,r-1)),kn(e,Ys(t,3),i,!0)}function Qa(e){var t=null==e?0:e.length;return t?Ni(e,1):[]}function Va(e){var t=null==e?0:e.length;return t?Ni(e,x):[]}function Za(e,t){var n=null==e?0:e.length;return n?(t=t===o?1:Ql(t),Ni(e,t)):[]}function Wa(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var i=e[t];r[i[0]]=i[1]}return r}function Ka(e){return e&&e.length?e[0]:o}function qa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ql(n);return i<0&&(i=Gt(r+i,0)),Un(e,t,i)}function Ja(e){var t=null==e?0:e.length;return t?No(e,0,-1):[]}var Xa=Io((function(e){var t=En(e,Go);return t.length&&t[0]===e[0]?zi(t):[]})),ec=Io((function(e){var t=rc(e),n=En(e,Go);return t===rc(n)?t=o:n.pop(),n.length&&n[0]===e[0]?zi(n,Ys(t,2)):[]})),tc=Io((function(e){var t=rc(e),n=En(e,Go);return t="function"==typeof t?t:o,t&&n.pop(),n.length&&n[0]===e[0]?zi(n,o,t):[]}));function nc(e,t){return null==e?"":Pt.call(e,t)}function rc(e){var t=null==e?0:e.length;return t?e[t-1]:o}function ic(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=Ql(n),i=i<0?Gt(r+i,0):Bt(i,r-1)),t===t?dr(e,t,i):kn(e,zn,i,!0)}function oc(e,t){return e&&e.length?co(e,Ql(t)):o}var sc=Io(ac);function ac(e,t){return e&&e.length&&t&&t.length?po(e,t):e}function cc(e,t,n){return e&&e.length&&t&&t.length?po(e,t,Ys(n,2)):e}function uc(e,t,n){return e&&e.length&&t&&t.length?po(e,t,o,n):e}var lc=ks((function(e,t){var n=null==e?0:e.length,r=di(e,t);return go(e,En(t,(function(e){return ia(e,n)?+e:e})).sort(Jo)),r}));function fc(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;t=Ys(t,3);while(++r<o){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return go(e,i),n}function hc(e){return null==e?e:Vt.call(e)}function dc(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&oa(e,t,n)?(t=0,n=r):(t=null==t?0:Ql(t),n=n===o?r:Ql(n)),No(e,t,n)):[]}function pc(e,t){return wo(e,t)}function gc(e,t,n){return So(e,t,Ys(n,2))}function vc(e,t){var n=null==e?0:e.length;if(n){var r=wo(e,t);if(r<n&&nl(e[r],t))return r}return-1}function yc(e,t){return wo(e,t,!0)}function mc(e,t,n){return So(e,t,Ys(n,2),!0)}function Ic(e,t){var n=null==e?0:e.length;if(n){var r=wo(e,t,!0)-1;if(nl(e[r],t))return r}return-1}function Mc(e){return e&&e.length?Oo(e):[]}function Cc(e,t){return e&&e.length?Oo(e,Ys(t,2)):[]}function Tc(e){var t=null==e?0:e.length;return t?No(e,1,t):[]}function Ac(e,t,n){return e&&e.length?(t=n||t===o?1:Ql(t),No(e,0,t<0?0:t)):[]}function _c(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Ql(t),t=r-t,No(e,t<0?0:t,r)):[]}function bc(e,t){return e&&e.length?ko(e,Ys(t,3),!1,!0):[]}function Nc(e,t){return e&&e.length?ko(e,Ys(t,3)):[]}var Ec=Io((function(e){return Ro(Ni(e,1,ul,!0))})),wc=Io((function(e){var t=rc(e);return ul(t)&&(t=o),Ro(Ni(e,1,ul,!0),Ys(t,2))})),Sc=Io((function(e){var t=rc(e);return t="function"==typeof t?t:o,Ro(Ni(e,1,ul,!0),o,t)}));function Oc(e){return e&&e.length?Ro(e):[]}function Dc(e,t){return e&&e.length?Ro(e,Ys(t,2)):[]}function Lc(e,t){return t="function"==typeof t?t:o,e&&e.length?Ro(e,o,t):[]}function Rc(e){if(!e||!e.length)return[];var t=0;return e=_n(e,(function(e){if(ul(e))return t=Gt(e.length,t),!0})),Qn(t,(function(t){return En(e,Bn(t))}))}function jc(e,t){if(!e||!e.length)return[];var n=Rc(e);return null==t?n:En(n,(function(e){return In(t,o,e)}))}var xc=Io((function(e,t){return ul(e)?Ii(e,t):[]})),kc=Io((function(e){return Po(_n(e,ul))})),Uc=Io((function(e){var t=rc(e);return ul(t)&&(t=o),Po(_n(e,ul),Ys(t,2))})),Pc=Io((function(e){var t=rc(e);return t="function"==typeof t?t:o,Po(_n(e,ul),o,t)})),zc=Io(Rc);function Gc(e,t){return zo(e||[],t||[],ai)}function Bc(e,t){return zo(e||[],t||[],To)}var Yc=Io((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,jc(e,n)}));function Hc(e){var t=Mr(e);return t.__chain__=!0,t}function $c(e,t){return t(e),e}function Fc(e,t){return t(e)}var Qc=ks((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return di(t,e)};return!(t>1||this.__actions__.length)&&r instanceof br&&ia(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Fc,args:[i],thisArg:o}),new _r(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));function Vc(){return Hc(this)}function Zc(){return new _r(this.value(),this.__chain__)}function Wc(){this.__values__===o&&(this.__values__=$l(this.value()));var e=this.__index__>=this.__values__.length,t=e?o:this.__values__[this.__index__++];return{done:e,value:t}}function Kc(){return this}function qc(e){var t,n=this;while(n instanceof Ar){var r=La(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function Jc(){var e=this.__wrapped__;if(e instanceof br){var t=e;return this.__actions__.length&&(t=new br(this)),t=t.reverse(),t.__actions__.push({func:Fc,args:[hc],thisArg:o}),new _r(t,this.__chain__)}return this.thru(hc)}function Xc(){return Uo(this.__wrapped__,this.__actions__)}var eu=ss((function(e,t,n){ft.call(e,n)?++e[n]:hi(e,n,1)}));function tu(e,t,n){var r=sl(e)?An:Ti;return n&&oa(e,t,n)&&(t=o),r(e,Ys(t,3))}function nu(e,t){var n=sl(e)?_n:bi;return n(e,Ys(t,3))}var ru=gs($a),iu=gs(Fa);function ou(e,t){return Ni(pu(e,t),1)}function su(e,t){return Ni(pu(e,t),x)}function au(e,t,n){return n=n===o?1:Ql(n),Ni(pu(e,t),n)}function cu(e,t){var n=sl(e)?Cn:Mi;return n(e,Ys(t,3))}function uu(e,t){var n=sl(e)?Tn:Ci;return n(e,Ys(t,3))}var lu=ss((function(e,t,n){ft.call(e,n)?e[n].push(t):hi(e,n,[t])}));function fu(e,t,n,r){e=cl(e)?e:Gf(e),n=n&&!r?Ql(n):0;var i=e.length;return n<0&&(n=Gt(i+n,0)),kl(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Un(e,t,n)>-1}var hu=Io((function(e,t,r){var i=-1,o="function"==typeof t,s=cl(e)?n(e.length):[];return Mi(e,(function(e){s[++i]=o?In(t,e,r):Bi(e,t,r)})),s})),du=ss((function(e,t,n){hi(e,n,t)}));function pu(e,t){var n=sl(e)?En:ro;return n(e,Ys(t,3))}function gu(e,t,n,r){return null==e?[]:(sl(t)||(t=null==t?[]:[t]),n=r?o:n,sl(n)||(n=null==n?[]:[n]),uo(e,t,n))}var vu=ss((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function yu(e,t,n){var r=sl(e)?Sn:Hn,i=arguments.length<3;return r(e,Ys(t,4),n,i,Mi)}function mu(e,t,n){var r=sl(e)?On:Hn,i=arguments.length<3;return r(e,Ys(t,4),n,i,Ci)}function Iu(e,t){var n=sl(e)?_n:bi;return n(e,zu(Ys(t,3)))}function Mu(e){var t=sl(e)?ri:Mo;return t(e)}function Cu(e,t,n){t=(n?oa(e,t,n):t===o)?1:Ql(t);var r=sl(e)?ii:Co;return r(e,t)}function Tu(e){var t=sl(e)?oi:bo;return t(e)}function Au(e){if(null==e)return 0;if(cl(e))return kl(e)?pr(e):e.length;var t=Ws(e);return t==J||t==oe?e.size:eo(e).length}function _u(e,t,n){var r=sl(e)?Dn:Eo;return n&&oa(e,t,n)&&(t=o),r(e,Ys(t,3))}var bu=Io((function(e,t){if(null==e)return[];var n=t.length;return n>1&&oa(e,t[0],t[1])?t=[]:n>2&&oa(t[0],t[1],t[2])&&(t=[t[0]]),uo(e,Ni(t,1),[])})),Nu=Dt||function(){return an.Date.now()};function Eu(e,t){if("function"!=typeof t)throw new ot(u);return e=Ql(e),function(){if(--e<1)return t.apply(this,arguments)}}function wu(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Ss(e,b,o,o,o,o,t)}function Su(e,t){var n;if("function"!=typeof t)throw new ot(u);return e=Ql(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ou=Io((function(e,t,n){var r=m;if(n.length){var i=ur(n,Bs(Ou));r|=A}return Ss(e,r,t,n,i)})),Du=Io((function(e,t,n){var r=m|I;if(n.length){var i=ur(n,Bs(Du));r|=A}return Ss(t,r,e,n,i)}));function Lu(e,t,n){t=n?o:t;var r=Ss(e,C,o,o,o,o,o,t);return r.placeholder=Lu.placeholder,r}function Ru(e,t,n){t=n?o:t;var r=Ss(e,T,o,o,o,o,o,t);return r.placeholder=Ru.placeholder,r}function ju(e,t,n){var r,i,s,a,c,l,f=0,h=!1,d=!1,p=!0;if("function"!=typeof e)throw new ot(u);function g(t){var n=r,s=i;return r=i=o,f=t,a=e.apply(s,n),a}function v(e){return f=e,c=Aa(I,t),h?g(e):a}function y(e){var n=e-l,r=e-f,i=t-n;return d?Bt(i,s-r):i}function m(e){var n=e-l,r=e-f;return l===o||n>=t||n<0||d&&r>=s}function I(){var e=Nu();if(m(e))return M(e);c=Aa(I,y(e))}function M(e){return c=o,p&&r?g(e):(r=i=o,a)}function C(){c!==o&&Fo(c),f=0,r=l=i=c=o}function T(){return c===o?a:M(Nu())}function A(){var e=Nu(),n=m(e);if(r=arguments,i=this,l=e,n){if(c===o)return v(l);if(d)return Fo(c),c=Aa(I,t),g(l)}return c===o&&(c=Aa(I,t)),a}return t=Zl(t)||0,Tl(n)&&(h=!!n.leading,d="maxWait"in n,s=d?Gt(Zl(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),A.cancel=C,A.flush=T,A}var xu=Io((function(e,t){return mi(e,1,t)})),ku=Io((function(e,t,n){return mi(e,Zl(t)||0,n)}));function Uu(e){return Ss(e,E)}function Pu(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(u);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Pu.Cache||Br),n}function zu(e){if("function"!=typeof e)throw new ot(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Gu(e){return Su(2,e)}Pu.Cache=Br;var Bu=Ho((function(e,t){t=1==t.length&&sl(t[0])?En(t[0],Zn(Ys())):En(Ni(t,1),Zn(Ys()));var n=t.length;return Io((function(r){var i=-1,o=Bt(r.length,n);while(++i<o)r[i]=t[i].call(this,r[i]);return In(e,this,r)}))})),Yu=Io((function(e,t){var n=ur(t,Bs(Yu));return Ss(e,A,o,t,n)})),Hu=Io((function(e,t){var n=ur(t,Bs(Hu));return Ss(e,_,o,t,n)})),$u=ks((function(e,t){return Ss(e,N,o,o,o,t)}));function Fu(e,t){if("function"!=typeof e)throw new ot(u);return t=t===o?t:Ql(t),Io(e,t)}function Qu(e,t){if("function"!=typeof e)throw new ot(u);return t=null==t?0:Gt(Ql(t),0),Io((function(n){var r=n[t],i=$o(n,0,t);return r&&wn(i,r),In(e,this,i)}))}function Vu(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ot(u);return Tl(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ju(e,t,{leading:r,maxWait:t,trailing:i})}function Zu(e){return wu(e,1)}function Wu(e,t){return Yu(Bo(t),e)}function Ku(){if(!arguments.length)return[];var e=arguments[0];return sl(e)?e:[e]}function qu(e){return gi(e,g)}function Ju(e,t){return t="function"==typeof t?t:o,gi(e,g,t)}function Xu(e){return gi(e,d|g)}function el(e,t){return t="function"==typeof t?t:o,gi(e,d|g,t)}function tl(e,t){return null==t||yi(e,t,Cf(t))}function nl(e,t){return e===t||e!==e&&t!==t}var rl=_s(xi),il=_s((function(e,t){return e>=t})),ol=Yi(function(){return arguments}())?Yi:function(e){return Al(e)&&ft.call(e,"callee")&&!_t.call(e,"callee")},sl=n.isArray,al=dn?Zn(dn):Hi;function cl(e){return null!=e&&Cl(e.length)&&!Il(e)}function ul(e){return Al(e)&&cl(e)}function ll(e){return!0===e||!1===e||Al(e)&&ji(e)==Q}var fl=kt||Vh,hl=pn?Zn(pn):$i;function dl(e){return Al(e)&&1===e.nodeType&&!Ll(e)}function pl(e){if(null==e)return!0;if(cl(e)&&(sl(e)||"string"==typeof e||"function"==typeof e.splice||fl(e)||Pl(e)||ol(e)))return!e.length;var t=Ws(e);if(t==J||t==oe)return!e.size;if(fa(e))return!eo(e).length;for(var n in e)if(ft.call(e,n))return!1;return!0}function gl(e,t){return Fi(e,t)}function vl(e,t,n){n="function"==typeof n?n:o;var r=n?n(e,t):o;return r===o?Fi(e,t,o,n):!!r}function yl(e){if(!Al(e))return!1;var t=ji(e);return t==W||t==Z||"string"==typeof e.message&&"string"==typeof e.name&&!Ll(e)}function ml(e){return"number"==typeof e&&Ut(e)}function Il(e){if(!Tl(e))return!1;var t=ji(e);return t==K||t==q||t==F||t==re}function Ml(e){return"number"==typeof e&&e==Ql(e)}function Cl(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=k}function Tl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Al(e){return null!=e&&"object"==typeof e}var _l=gn?Zn(gn):Vi;function bl(e,t){return e===t||Zi(e,t,$s(t))}function Nl(e,t,n){return n="function"==typeof n?n:o,Zi(e,t,$s(t),n)}function El(e){return Dl(e)&&e!=+e}function wl(e){if(la(e))throw new i(c);return Wi(e)}function Sl(e){return null===e}function Ol(e){return null==e}function Dl(e){return"number"==typeof e||Al(e)&&ji(e)==X}function Ll(e){if(!Al(e)||ji(e)!=te)return!1;var t=Tt(e);if(null===t)return!0;var n=ft.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&<.call(n)==gt}var Rl=vn?Zn(vn):Ki;function jl(e){return Ml(e)&&e>=-k&&e<=k}var xl=yn?Zn(yn):qi;function kl(e){return"string"==typeof e||!sl(e)&&Al(e)&&ji(e)==se}function Ul(e){return"symbol"==typeof e||Al(e)&&ji(e)==ae}var Pl=mn?Zn(mn):Ji;function zl(e){return e===o}function Gl(e){return Al(e)&&Ws(e)==ue}function Bl(e){return Al(e)&&ji(e)==le}var Yl=_s(no),Hl=_s((function(e,t){return e<=t}));function $l(e){if(!e)return[];if(cl(e))return kl(e)?gr(e):ns(e);if(Et&&e[Et])return sr(e[Et]());var t=Ws(e),n=t==J?ar:t==oe?lr:Gf;return n(e)}function Fl(e){if(!e)return 0===e?e:0;if(e=Zl(e),e===x||e===-x){var t=e<0?-1:1;return t*U}return e===e?e:0}function Ql(e){var t=Fl(e),n=t%1;return t===t?n?t-n:t:0}function Vl(e){return e?pi(Ql(e),0,z):0}function Zl(e){if("number"==typeof e)return e;if(Ul(e))return P;if(Tl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Tl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ue,"");var n=Ze.test(e);return n||Ke.test(e)?rn(e.slice(2),n?2:8):Ve.test(e)?P:+e}function Wl(e){return rs(e,Tf(e))}function Kl(e){return e?pi(Ql(e),-k,k):0===e?e:0}function ql(e){return null==e?"":Lo(e)}var Jl=as((function(e,t){if(fa(t)||cl(t))rs(t,Cf(t),e);else for(var n in t)ft.call(t,n)&&ai(e,n,t[n])})),Xl=as((function(e,t){rs(t,Tf(t),e)})),ef=as((function(e,t,n,r){rs(t,Tf(t),e,r)})),tf=as((function(e,t,n,r){rs(t,Cf(t),e,r)})),nf=ks(di);function rf(e,t){var n=Tr(e);return null==t?n:li(n,t)}var of=Io((function(e,t){e=nt(e);var n=-1,r=t.length,i=r>2?t[2]:o;i&&oa(t[0],t[1],i)&&(r=1);while(++n<r){var s=t[n],a=Tf(s),c=-1,u=a.length;while(++c<u){var l=a[c],f=e[l];(f===o||nl(f,ct[l])&&!ft.call(e,l))&&(e[l]=s[l])}}return e})),sf=Io((function(e){return e.push(o,Ds),In(Nf,o,e)}));function af(e,t){return xn(e,Ys(t,3),Si)}function cf(e,t){return xn(e,Ys(t,3),Oi)}function uf(e,t){return null==e?e:Ei(e,Ys(t,3),Tf)}function lf(e,t){return null==e?e:wi(e,Ys(t,3),Tf)}function ff(e,t){return e&&Si(e,Ys(t,3))}function hf(e,t){return e&&Oi(e,Ys(t,3))}function df(e){return null==e?[]:Di(e,Cf(e))}function pf(e){return null==e?[]:Di(e,Tf(e))}function gf(e,t,n){var r=null==e?o:Li(e,t);return r===o?n:r}function vf(e,t){return null!=e&&Js(e,t,ki)}function yf(e,t){return null!=e&&Js(e,t,Ui)}var mf=ms((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),e[t]=n}),bh(Sh)),If=ms((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),ft.call(e,t)?e[t].push(n):e[t]=[n]}),Ys),Mf=Io(Bi);function Cf(e){return cl(e)?ni(e):eo(e)}function Tf(e){return cl(e)?ni(e,!0):to(e)}function Af(e,t){var n={};return t=Ys(t,3),Si(e,(function(e,r,i){hi(n,t(e,r,i),e)})),n}function _f(e,t){var n={};return t=Ys(t,3),Si(e,(function(e,r,i){hi(n,r,t(e,r,i))})),n}var bf=as((function(e,t,n){so(e,t,n)})),Nf=as((function(e,t,n,r){so(e,t,n,r)})),Ef=ks((function(e,t){var n={};if(null==e)return n;var r=!1;t=En(t,(function(t){return t=Yo(t,e),r||(r=t.length>1),t})),rs(e,Ps(e),n),r&&(n=gi(n,d|p|g,Ls));var i=t.length;while(i--)jo(n,t[i]);return n}));function wf(e,t){return Of(e,zu(Ys(t)))}var Sf=ks((function(e,t){return null==e?{}:lo(e,t)}));function Of(e,t){if(null==e)return{};var n=En(Ps(e),(function(e){return[e]}));return t=Ys(t),fo(e,n,(function(e,n){return t(e,n[0])}))}function Df(e,t,n){t=Yo(t,e);var r=-1,i=t.length;i||(i=1,e=o);while(++r<i){var s=null==e?o:e[Sa(t[r])];s===o&&(r=i,s=n),e=Il(s)?s.call(e):s}return e}function Lf(e,t,n){return null==e?e:To(e,t,n)}function Rf(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:To(e,t,n,r)}var jf=ws(Cf),xf=ws(Tf);function kf(e,t,n){var r=sl(e),i=r||fl(e)||Pl(e);if(t=Ys(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Tl(e)&&Il(o)?Tr(Tt(e)):{}}return(i?Cn:Si)(e,(function(e,r,i){return t(n,e,r,i)})),n}function Uf(e,t){return null==e||jo(e,t)}function Pf(e,t,n){return null==e?e:xo(e,t,Bo(n))}function zf(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:xo(e,t,Bo(n),r)}function Gf(e){return null==e?[]:Wn(e,Cf(e))}function Bf(e){return null==e?[]:Wn(e,Tf(e))}function Yf(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=Zl(n),n=n===n?n:0),t!==o&&(t=Zl(t),t=t===t?t:0),pi(Zl(e),t,n)}function Hf(e,t,n){return t=Fl(t),n===o?(n=t,t=0):n=Fl(n),e=Zl(e),Pi(e,t,n)}function $f(e,t,n){if(n&&"boolean"!=typeof n&&oa(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=Fl(e),t===o?(t=e,e=0):t=Fl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Qt();return Bt(e+i*(t-e+nn("1e-"+((i+"").length-1))),t)}return vo(e,t)}var Ff=hs((function(e,t,n){return t=t.toLowerCase(),e+(n?Qf(t):t)}));function Qf(e){return Ih(ql(e).toLowerCase())}function Vf(e){return e=ql(e),e&&e.replace(Je,er).replace(Ht,"")}function Zf(e,t,n){e=ql(e),t=Lo(t);var r=e.length;n=n===o?r:pi(Ql(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function Wf(e){return e=ql(e),e&&we.test(e)?e.replace(Ne,tr):e}function Kf(e){return e=ql(e),e&&ke.test(e)?e.replace(xe,"\\$&"):e}var qf=hs((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Jf=hs((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Xf=fs("toLowerCase");function eh(e,t,n){e=ql(e),t=Ql(t);var r=t?pr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Cs(jt(i),n)+e+Cs(Rt(i),n)}function th(e,t,n){e=ql(e),t=Ql(t);var r=t?pr(e):0;return t&&r<t?e+Cs(t-r,n):e}function nh(e,t,n){e=ql(e),t=Ql(t);var r=t?pr(e):0;return t&&r<t?Cs(t-r,n)+e:e}function rh(e,t,n){return n||null==t?t=0:t&&(t=+t),Ft(ql(e).replace(Pe,""),t||0)}function ih(e,t,n){return t=(n?oa(e,t,n):t===o)?1:Ql(t),mo(ql(e),t)}function oh(){var e=arguments,t=ql(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var sh=hs((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function ah(e,t,n){return n&&"number"!=typeof n&&oa(e,t,n)&&(t=n=o),n=n===o?z:n>>>0,n?(e=ql(e),e&&("string"==typeof t||null!=t&&!Rl(t))&&(t=Lo(t),!t&&ir(e))?$o(gr(e),0,n):e.split(t,n)):[]}var ch=hs((function(e,t,n){return e+(n?" ":"")+Ih(t)}));function uh(e,t,n){return e=ql(e),n=null==n?0:pi(Ql(n),0,e.length),t=Lo(t),e.slice(n,n+t.length)==t}function lh(e,t,n){var r=Mr.templateSettings;n&&oa(e,t,n)&&(t=o),e=ql(e),t=ef({},t,r,Os);var i,s,a=ef({},t.imports,r.imports,Os),c=Cf(a),u=Wn(a,c),l=0,f=t.interpolate||Xe,h="__p += '",d=rt((t.escape||Xe).source+"|"+f.source+"|"+(f===De?Fe:Xe).source+"|"+(t.evaluate||Xe).source+"|$","g"),p="//# sourceURL="+(ft.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Wt+"]")+"\n";e.replace(d,(function(t,n,r,o,a,c){return r||(r=o),h+=e.slice(l,c).replace(et,nr),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),h+="';\n";var g=ft.call(t,"variable")&&t.variable;g||(h="with (obj) {\n"+h+"\n}\n"),h=(s?h.replace(Te,""):h).replace(Ae,"$1").replace(_e,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=Ch((function(){return He(c,p+"return "+h).apply(o,u)}));if(v.source=h,yl(v))throw v;return v}function fh(e){return ql(e).toLowerCase()}function hh(e){return ql(e).toUpperCase()}function dh(e,t,n){if(e=ql(e),e&&(n||t===o))return e.replace(Ue,"");if(!e||!(t=Lo(t)))return e;var r=gr(e),i=gr(t),s=qn(r,i),a=Jn(r,i)+1;return $o(r,s,a).join("")}function ph(e,t,n){if(e=ql(e),e&&(n||t===o))return e.replace(ze,"");if(!e||!(t=Lo(t)))return e;var r=gr(e),i=Jn(r,gr(t))+1;return $o(r,0,i).join("")}function gh(e,t,n){if(e=ql(e),e&&(n||t===o))return e.replace(Pe,"");if(!e||!(t=Lo(t)))return e;var r=gr(e),i=qn(r,gr(t));return $o(r,i).join("")}function vh(e,t){var n=w,r=S;if(Tl(t)){var i="separator"in t?t.separator:i;n="length"in t?Ql(t.length):n,r="omission"in t?Lo(t.omission):r}e=ql(e);var s=e.length;if(ir(e)){var a=gr(e);s=a.length}if(n>=s)return e;var c=n-pr(r);if(c<1)return r;var u=a?$o(a,0,c).join(""):e.slice(0,c);if(i===o)return u+r;if(a&&(c+=u.length-c),Rl(i)){if(e.slice(c).search(i)){var l,f=u;i.global||(i=rt(i.source,ql(Qe.exec(i))+"g")),i.lastIndex=0;while(l=i.exec(f))var h=l.index;u=u.slice(0,h===o?c:h)}}else if(e.indexOf(Lo(i),c)!=c){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r}function yh(e){return e=ql(e),e&&Ee.test(e)?e.replace(be,vr):e}var mh=hs((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ih=fs("toUpperCase");function Mh(e,t,n){return e=ql(e),t=n?o:t,t===o?or(e)?Ir(e):jn(e):e.match(t)||[]}var Ch=Io((function(e,t){try{return In(e,o,t)}catch(n){return yl(n)?n:new i(n)}})),Th=ks((function(e,t){return Cn(t,(function(t){t=Sa(t),hi(e,t,Ou(e[t],e))})),e}));function Ah(e){var t=null==e?0:e.length,n=Ys();return e=t?En(e,(function(e){if("function"!=typeof e[1])throw new ot(u);return[n(e[0]),e[1]]})):[],Io((function(n){var r=-1;while(++r<t){var i=e[r];if(In(i[0],this,n))return In(i[1],this,n)}}))}function _h(e){return vi(gi(e,d))}function bh(e){return function(){return e}}function Nh(e,t){return null==e||e!==e?t:e}var Eh=vs(),wh=vs(!0);function Sh(e){return e}function Oh(e){return Xi("function"==typeof e?e:gi(e,d))}function Dh(e){return io(gi(e,d))}function Lh(e,t){return oo(e,gi(t,d))}var Rh=Io((function(e,t){return function(n){return Bi(n,e,t)}})),jh=Io((function(e,t){return function(n){return Bi(e,n,t)}}));function xh(e,t,n){var r=Cf(t),i=Di(t,r);null!=n||Tl(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Di(t,Cf(t)));var o=!(Tl(n)&&"chain"in n)||!!n.chain,s=Il(e);return Cn(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ns(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,wn([this.value()],arguments))})})),e}function kh(){return an._===this&&(an._=vt),this}function Uh(){}function Ph(e){return e=Ql(e),Io((function(t){return co(t,e)}))}var zh=Ms(En),Gh=Ms(An),Bh=Ms(Dn);function Yh(e){return sa(e)?Bn(Sa(e)):ho(e)}function Hh(e){return function(t){return null==e?o:Li(e,t)}}var $h=As(),Fh=As(!0);function Qh(){return[]}function Vh(){return!1}function Zh(){return{}}function Wh(){return""}function Kh(){return!0}function qh(e,t){if(e=Ql(e),e<1||e>k)return[];var n=z,r=Bt(e,z);t=Ys(t),e-=z;var i=Qn(r,t);while(++n<e)t(n);return i}function Jh(e){return sl(e)?En(e,Sa):Ul(e)?[e]:ns(wa(ql(e)))}function Xh(e){var t=++ht;return ql(e)+t}var ed=Is((function(e,t){return e+t}),0),td=Ns("ceil"),nd=Is((function(e,t){return e/t}),1),rd=Ns("floor");function id(e){return e&&e.length?Ai(e,Sh,xi):o}function od(e,t){return e&&e.length?Ai(e,Ys(t,2),xi):o}function sd(e){return Gn(e,Sh)}function ad(e,t){return Gn(e,Ys(t,2))}function cd(e){return e&&e.length?Ai(e,Sh,no):o}function ud(e,t){return e&&e.length?Ai(e,Ys(t,2),no):o}var ld=Is((function(e,t){return e*t}),1),fd=Ns("round"),hd=Is((function(e,t){return e-t}),0);function dd(e){return e&&e.length?Fn(e,Sh):0}function pd(e,t){return e&&e.length?Fn(e,Ys(t,2)):0}return Mr.after=Eu,Mr.ary=wu,Mr.assign=Jl,Mr.assignIn=Xl,Mr.assignInWith=ef,Mr.assignWith=tf,Mr.at=nf,Mr.before=Su,Mr.bind=Ou,Mr.bindAll=Th,Mr.bindKey=Du,Mr.castArray=Ku,Mr.chain=Hc,Mr.chunk=Ra,Mr.compact=ja,Mr.concat=xa,Mr.cond=Ah,Mr.conforms=_h,Mr.constant=bh,Mr.countBy=eu,Mr.create=rf,Mr.curry=Lu,Mr.curryRight=Ru,Mr.debounce=ju,Mr.defaults=of,Mr.defaultsDeep=sf,Mr.defer=xu,Mr.delay=ku,Mr.difference=ka,Mr.differenceBy=Ua,Mr.differenceWith=Pa,Mr.drop=za,Mr.dropRight=Ga,Mr.dropRightWhile=Ba,Mr.dropWhile=Ya,Mr.fill=Ha,Mr.filter=nu,Mr.flatMap=ou,Mr.flatMapDeep=su,Mr.flatMapDepth=au,Mr.flatten=Qa,Mr.flattenDeep=Va,Mr.flattenDepth=Za,Mr.flip=Uu,Mr.flow=Eh,Mr.flowRight=wh,Mr.fromPairs=Wa,Mr.functions=df,Mr.functionsIn=pf,Mr.groupBy=lu,Mr.initial=Ja,Mr.intersection=Xa,Mr.intersectionBy=ec,Mr.intersectionWith=tc,Mr.invert=mf,Mr.invertBy=If,Mr.invokeMap=hu,Mr.iteratee=Oh,Mr.keyBy=du,Mr.keys=Cf,Mr.keysIn=Tf,Mr.map=pu,Mr.mapKeys=Af,Mr.mapValues=_f,Mr.matches=Dh,Mr.matchesProperty=Lh,Mr.memoize=Pu,Mr.merge=bf,Mr.mergeWith=Nf,Mr.method=Rh,Mr.methodOf=jh,Mr.mixin=xh,Mr.negate=zu,Mr.nthArg=Ph,Mr.omit=Ef,Mr.omitBy=wf,Mr.once=Gu,Mr.orderBy=gu,Mr.over=zh,Mr.overArgs=Bu,Mr.overEvery=Gh,Mr.overSome=Bh,Mr.partial=Yu,Mr.partialRight=Hu,Mr.partition=vu,Mr.pick=Sf,Mr.pickBy=Of,Mr.property=Yh,Mr.propertyOf=Hh,Mr.pull=sc,Mr.pullAll=ac,Mr.pullAllBy=cc,Mr.pullAllWith=uc,Mr.pullAt=lc,Mr.range=$h,Mr.rangeRight=Fh,Mr.rearg=$u,Mr.reject=Iu,Mr.remove=fc,Mr.rest=Fu,Mr.reverse=hc,Mr.sampleSize=Cu,Mr.set=Lf,Mr.setWith=Rf,Mr.shuffle=Tu,Mr.slice=dc,Mr.sortBy=bu,Mr.sortedUniq=Mc,Mr.sortedUniqBy=Cc,Mr.split=ah,Mr.spread=Qu,Mr.tail=Tc,Mr.take=Ac,Mr.takeRight=_c,Mr.takeRightWhile=bc,Mr.takeWhile=Nc,Mr.tap=$c,Mr.throttle=Vu,Mr.thru=Fc,Mr.toArray=$l,Mr.toPairs=jf,Mr.toPairsIn=xf,Mr.toPath=Jh,Mr.toPlainObject=Wl,Mr.transform=kf,Mr.unary=Zu,Mr.union=Ec,Mr.unionBy=wc,Mr.unionWith=Sc,Mr.uniq=Oc,Mr.uniqBy=Dc,Mr.uniqWith=Lc,Mr.unset=Uf,Mr.unzip=Rc,Mr.unzipWith=jc,Mr.update=Pf,Mr.updateWith=zf,Mr.values=Gf,Mr.valuesIn=Bf,Mr.without=xc,Mr.words=Mh,Mr.wrap=Wu,Mr.xor=kc,Mr.xorBy=Uc,Mr.xorWith=Pc,Mr.zip=zc,Mr.zipObject=Gc,Mr.zipObjectDeep=Bc,Mr.zipWith=Yc,Mr.entries=jf,Mr.entriesIn=xf,Mr.extend=Xl,Mr.extendWith=ef,xh(Mr,Mr),Mr.add=ed,Mr.attempt=Ch,Mr.camelCase=Ff,Mr.capitalize=Qf,Mr.ceil=td,Mr.clamp=Yf,Mr.clone=qu,Mr.cloneDeep=Xu,Mr.cloneDeepWith=el,Mr.cloneWith=Ju,Mr.conformsTo=tl,Mr.deburr=Vf,Mr.defaultTo=Nh,Mr.divide=nd,Mr.endsWith=Zf,Mr.eq=nl,Mr.escape=Wf,Mr.escapeRegExp=Kf,Mr.every=tu,Mr.find=ru,Mr.findIndex=$a,Mr.findKey=af,Mr.findLast=iu,Mr.findLastIndex=Fa,Mr.findLastKey=cf,Mr.floor=rd,Mr.forEach=cu,Mr.forEachRight=uu,Mr.forIn=uf,Mr.forInRight=lf,Mr.forOwn=ff,Mr.forOwnRight=hf,Mr.get=gf,Mr.gt=rl,Mr.gte=il,Mr.has=vf,Mr.hasIn=yf,Mr.head=Ka,Mr.identity=Sh,Mr.includes=fu,Mr.indexOf=qa,Mr.inRange=Hf,Mr.invoke=Mf,Mr.isArguments=ol,Mr.isArray=sl,Mr.isArrayBuffer=al,Mr.isArrayLike=cl,Mr.isArrayLikeObject=ul,Mr.isBoolean=ll,Mr.isBuffer=fl,Mr.isDate=hl,Mr.isElement=dl,Mr.isEmpty=pl,Mr.isEqual=gl,Mr.isEqualWith=vl,Mr.isError=yl,Mr.isFinite=ml,Mr.isFunction=Il,Mr.isInteger=Ml,Mr.isLength=Cl,Mr.isMap=_l,Mr.isMatch=bl,Mr.isMatchWith=Nl,Mr.isNaN=El,Mr.isNative=wl,Mr.isNil=Ol,Mr.isNull=Sl,Mr.isNumber=Dl,Mr.isObject=Tl,Mr.isObjectLike=Al,Mr.isPlainObject=Ll,Mr.isRegExp=Rl,Mr.isSafeInteger=jl,Mr.isSet=xl,Mr.isString=kl,Mr.isSymbol=Ul,Mr.isTypedArray=Pl,Mr.isUndefined=zl,Mr.isWeakMap=Gl,Mr.isWeakSet=Bl,Mr.join=nc,Mr.kebabCase=qf,Mr.last=rc,Mr.lastIndexOf=ic,Mr.lowerCase=Jf,Mr.lowerFirst=Xf,Mr.lt=Yl,Mr.lte=Hl,Mr.max=id,Mr.maxBy=od,Mr.mean=sd,Mr.meanBy=ad,Mr.min=cd,Mr.minBy=ud,Mr.stubArray=Qh,Mr.stubFalse=Vh,Mr.stubObject=Zh,Mr.stubString=Wh,Mr.stubTrue=Kh,Mr.multiply=ld,Mr.nth=oc,Mr.noConflict=kh,Mr.noop=Uh,Mr.now=Nu,Mr.pad=eh,Mr.padEnd=th,Mr.padStart=nh,Mr.parseInt=rh,Mr.random=$f,Mr.reduce=yu,Mr.reduceRight=mu,Mr.repeat=ih,Mr.replace=oh,Mr.result=Df,Mr.round=fd,Mr.runInContext=e,Mr.sample=Mu,Mr.size=Au,Mr.snakeCase=sh,Mr.some=_u,Mr.sortedIndex=pc,Mr.sortedIndexBy=gc,Mr.sortedIndexOf=vc,Mr.sortedLastIndex=yc,Mr.sortedLastIndexBy=mc,Mr.sortedLastIndexOf=Ic,Mr.startCase=ch,Mr.startsWith=uh,Mr.subtract=hd,Mr.sum=dd,Mr.sumBy=pd,Mr.template=lh,Mr.times=qh,Mr.toFinite=Fl,Mr.toInteger=Ql,Mr.toLength=Vl,Mr.toLower=fh,Mr.toNumber=Zl,Mr.toSafeInteger=Kl,Mr.toString=ql,Mr.toUpper=hh,Mr.trim=dh,Mr.trimEnd=ph,Mr.trimStart=gh,Mr.truncate=vh,Mr.unescape=yh,Mr.uniqueId=Xh,Mr.upperCase=mh,Mr.upperFirst=Ih,Mr.each=cu,Mr.eachRight=uu,Mr.first=Ka,xh(Mr,function(){var e={};return Si(Mr,(function(t,n){ft.call(Mr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Mr.VERSION=s,Cn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Mr[e].placeholder=Mr})),Cn(["drop","take"],(function(e,t){br.prototype[e]=function(n){n=n===o?1:Gt(Ql(n),0);var r=this.__filtered__&&!t?new br(this):this.clone();return r.__filtered__?r.__takeCount__=Bt(n,r.__takeCount__):r.__views__.push({size:Bt(n,z),type:e+(r.__dir__<0?"Right":"")}),r},br.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Cn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==L||n==j;br.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ys(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Cn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");br.prototype[e]=function(){return this[n](1).value()[0]}})),Cn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");br.prototype[e]=function(){return this.__filtered__?new br(this):this[n](1)}})),br.prototype.compact=function(){return this.filter(Sh)},br.prototype.find=function(e){return this.filter(e).head()},br.prototype.findLast=function(e){return this.reverse().find(e)},br.prototype.invokeMap=Io((function(e,t){return"function"==typeof e?new br(this):this.map((function(n){return Bi(n,e,t)}))})),br.prototype.reject=function(e){return this.filter(zu(Ys(e)))},br.prototype.slice=function(e,t){e=Ql(e);var n=this;return n.__filtered__&&(e>0||t<0)?new br(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(t=Ql(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},br.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},br.prototype.toArray=function(){return this.take(z)},Si(br.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Mr[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);i&&(Mr.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof br,u=a[0],l=c||sl(t),f=function(e){var t=i.apply(Mr,wn([e],a));return r&&h?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(c=l=!1);var h=this.__chain__,d=!!this.__actions__.length,p=s&&!h,g=c&&!d;if(!s&&l){t=g?t:new br(this);var v=e.apply(t,a);return v.__actions__.push({func:Fc,args:[f],thisArg:o}),new _r(v,h)}return p&&g?e.apply(this,a):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),Cn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=st[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Mr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(sl(i)?i:[],e)}return this[n]((function(n){return t.apply(sl(n)?n:[],e)}))}})),Si(br.prototype,(function(e,t){var n=Mr[t];if(n){var r=n.name+"";ft.call(un,r)||(un[r]=[]),un[r].push({name:t,func:n})}})),un[ys(o,I).name]=[{name:"wrapper",func:o}],br.prototype.clone=Nr,br.prototype.reverse=Er,br.prototype.value=wr,Mr.prototype.at=Qc,Mr.prototype.chain=Vc,Mr.prototype.commit=Zc,Mr.prototype.next=Wc,Mr.prototype.plant=qc,Mr.prototype.reverse=Jc,Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=Xc,Mr.prototype.first=Mr.prototype.head,Et&&(Mr.prototype[Et]=Kc),Mr},Cr=Mr();an._=Cr,i=function(){return Cr}.call(t,n,t,r),i===o||(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(e))},"2f21":function(e,t,n){"use strict";var r=n("79e5");e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"2f62":function(e,t,n){"use strict";
- /**
- * vuex v3.1.0
- * (c) 2019 Evan You
- * @license MIT
- */
- function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"b",(function(){return D}));var i="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)})))}function s(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function a(e){return null!==e&&"object"===typeof e}function c(e){return e&&"function"===typeof e.then}var u=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},u.prototype.addChild=function(e,t){this._children[e]=t},u.prototype.removeChild=function(e){delete this._children[e]},u.prototype.getChild=function(e){return this._children[e]},u.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},u.prototype.forEachChild=function(e){s(this._children,e)},u.prototype.forEachGetter=function(e){this._rawModule.getters&&s(this._rawModule.getters,e)},u.prototype.forEachAction=function(e){this._rawModule.actions&&s(this._rawModule.actions,e)},u.prototype.forEachMutation=function(e){this._rawModule.mutations&&s(this._rawModule.mutations,e)},Object.defineProperties(u.prototype,l);var f=function(e){this.register([],e,!1)};function h(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;h(e.concat(r),t.getChild(r),n.modules[r])}}f.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},f.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},f.prototype.update=function(e){h([],this.root,e)},f.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new u(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&s(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},f.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)};var d;var p=function(e){var t=this;void 0===e&&(e={}),!d&&"undefined"!==typeof window&&window.Vue&&w(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new f(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new d;var i=this,s=this,a=s.dispatch,c=s.commit;this.dispatch=function(e,t){return a.call(i,e,t)},this.commit=function(e,t,n){return c.call(i,e,t,n)},this.strict=r;var u=this._modules.root.state;I(this,u,[],this._modules.root),m(this,u),n.forEach((function(e){return e(t)}));var l=void 0!==e.devtools?e.devtools:d.config.devtools;l&&o(this)},g={state:{configurable:!0}};function v(e,t){return t.indexOf(e)<0&&t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function y(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;I(e,n,[],e._modules.root,!0),m(e,n,t)}function m(e,t,n){var r=e._vm;e.getters={};var i=e._wrappedGetters,o={};s(i,(function(t,n){o[n]=function(){return t(e)},Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=d.config.silent;d.config.silent=!0,e._vm=new d({data:{$$state:t},computed:o}),d.config.silent=a,e.strict&&b(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),d.nextTick((function(){return r.$destroy()})))}function I(e,t,n,r,i){var o=!n.length,s=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[s]=r),!o&&!i){var a=N(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){d.set(a,c,r.state)}))}var u=r.context=M(e,s,n);r.forEachMutation((function(t,n){var r=s+n;T(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:s+n,i=t.handler||t;A(e,r,i,u)})),r.forEachGetter((function(t,n){var r=s+n;_(e,r,t,u)})),r.forEachChild((function(r,o){I(e,t,n.concat(o),r,i)}))}function M(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=E(n,r,i),s=o.payload,a=o.options,c=o.type;return a&&a.root||(c=t+c),e.dispatch(c,s)},commit:r?e.commit:function(n,r,i){var o=E(n,r,i),s=o.payload,a=o.options,c=o.type;a&&a.root||(c=t+c),e.commit(c,s,a)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return C(e,t)}},state:{get:function(){return N(e.state,n)}}}),i}function C(e,t){var n={},r=t.length;return Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),n}function T(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function A(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t,i){var o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t,i);return c(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}function _(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function b(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function N(e,t){return t.length?t.reduce((function(e,t){return e[t]}),e):e}function E(e,t,n){return a(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function w(e){d&&e===d||(d=e,r(d))}g.state.get=function(){return this._vm._data.$$state},g.state.set=function(e){0},p.prototype.commit=function(e,t,n){var r=this,i=E(e,t,n),o=i.type,s=i.payload,a=(i.options,{type:o,payload:s}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(e){e(s)}))})),this._subscribers.forEach((function(e){return e(a,r.state)})))},p.prototype.dispatch=function(e,t){var n=this,r=E(e,t),i=r.type,o=r.payload,s={type:i,payload:o},a=this._actions[i];if(a){try{this._actionSubscribers.filter((function(e){return e.before})).forEach((function(e){return e.before(s,n.state)}))}catch(u){0}var c=a.length>1?Promise.all(a.map((function(e){return e(o)}))):a[0](o);return c.then((function(e){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,n.state)}))}catch(u){0}return e}))}},p.prototype.subscribe=function(e){return v(e,this._subscribers)},p.prototype.subscribeAction=function(e){var t="function"===typeof e?{before:e}:e;return v(t,this._actionSubscribers)},p.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},p.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},p.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),I(this,this.state,e,this._modules.get(e),n.preserveState),m(this,this.state)},p.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=N(t.state,e.slice(0,-1));d.delete(n,e[e.length-1])})),y(this)},p.prototype.hotUpdate=function(e){this._modules.update(e),y(this,!0)},p.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(p.prototype,g);var S=x((function(e,t){var n={};return j(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=k(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),O=x((function(e,t){var n={};return j(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=k(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),D=x((function(e,t){var n={};return j(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||k(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),L=x((function(e,t){var n={};return j(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=k(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),R=function(e){return{mapState:S.bind(null,e),mapGetters:D.bind(null,e),mapMutations:O.bind(null,e),mapActions:L.bind(null,e)}};function j(e){return Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}}))}function x(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function k(e,t,n){var r=e._modulesNamespaceMap[n];return r}var U={Store:p,install:w,version:"3.1.0",mapState:S,mapMutations:O,mapGetters:D,mapActions:L,createNamespacedHelpers:R};t["a"]=U},"2f78":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{isubh:function(e,t,n,r){var i=e>>>0,o=t>>>0,s=n>>>0;return o-(r>>>0)-((~i&s|~(i^s)&i-s>>>0)>>>31)|0}})},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},3024:function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},"308d":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7618"),i=n("013f");function o(e,t){return!t||"object"!==Object(r["a"])(t)&&"function"!==typeof t?Object(i["a"])(e):t}},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))})))})),o=s.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},"30f1":function(e,t,n){"use strict";var r=n("b8e3"),i=n("63b6"),o=n("9138"),s=n("35e8"),a=n("481b"),c=n("8f60"),u=n("45f2"),l=n("53e2"),f=n("5168")("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",g="values",v=function(){return this};e.exports=function(e,t,n,y,m,I,M){c(n,t,y);var C,T,A,_=function(e){if(!h&&e in w)return w[e];switch(e){case p:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},b=t+" Iterator",N=m==g,E=!1,w=e.prototype,S=w[f]||w[d]||m&&w[m],O=S||_(m),D=m?N?_("entries"):O:void 0,L="Array"==t&&w.entries||S;if(L&&(A=l(L.call(new e)),A!==Object.prototype&&A.next&&(u(A,b,!0),r||"function"==typeof A[f]||s(A,f,v))),N&&S&&S.name!==g&&(E=!0,O=function(){return S.call(this)}),r&&!M||!h&&!E&&w[f]||s(w,f,O),a[t]=O,a[b]=v,m)if(C={values:N?O:_(g),keys:I?O:_(p),entries:D},M)for(T in C)T in w||o(w,T,C[T]);else i(i.P+i.F*(h||E),t,C);return C}},"31f4":function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},"323e":function(e,t,n){var r,i;
- /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
- * @license MIT */(function(o,s){r=s,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i)})(0,(function(){var e={version:"0.2.0"},t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function n(e,t,n){return e<t?t:e>n?n:e}function r(e){return 100*(-1+e)}function i(e,n,i){var o;return o="translate3d"===t.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"},o.transition="all "+n+"ms "+i,o}e.configure=function(e){var n,r;for(n in e)r=e[n],void 0!==r&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var a=e.isStarted();r=n(r,t.minimum,1),e.status=1===r?null:r;var c=e.render(!a),u=c.querySelector(t.barSelector),l=t.speed,f=t.easing;return c.offsetWidth,o((function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),s(u,i(r,l,f)),1===r?(s(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout((function(){s(c,{transition:"all "+l+"ms linear",opacity:0}),setTimeout((function(){e.remove(),n()}),l)}),l)):setTimeout(n,l)})),this},e.isStarted=function(){return"number"===typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){setTimeout((function(){e.status&&(e.trickle(),n())}),t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var r=e.status;return r?("number"!==typeof t&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&e.start(),t++,n++,r.always((function(){n--,0===n?(t=0,e.done()):e.set((t-n)/t)})),this):this}}(),e.render=function(n){if(e.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var i=document.createElement("div");i.id="nprogress",i.innerHTML=t.template;var o,a=i.querySelector(t.barSelector),u=n?"-100":r(e.status||0),l=document.querySelector(t.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),t.showSpinner||(o=i.querySelector(t.spinnerSelector),o&&f(o)),l!=document.body&&c(l,"nprogress-custom-parent"),l.appendChild(i),i},e.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var o=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),s=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;var r,i=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);while(i--)if(r=e[i]+o,r in n)return r;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n,r,i=arguments;if(2==i.length)for(n in t)r=t[n],void 0!==r&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,i[1],i[2])}}();function a(e,t){var n="string"==typeof e?e:l(e);return n.indexOf(" "+t+" ")>=0}function c(e,t){var n=l(e),r=n+t;a(n,t)||(e.className=r.substring(1))}function u(e,t){var n,r=l(e);a(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function l(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e}))},"32a6":function(e,t,n){var r=n("241e"),i=n("c3a1");n("ce7e")("keys",(function(){return function(e){return i(r(e))}}))},"32d7":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"33a4":function(e,t,n){var r=n("84f2"),i=n("2b4c")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},"34ef":function(e,t,n){n("ec30")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},3535:function(e,t,n){"use strict";var r=n("5ca1"),i=n("02f4")(!0);r(r.P,"String",{at:function(e){return i(this,e)}})},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var r=n("d9f6"),i=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"36bd":function(e,t,n){"use strict";var r=n("4bf8"),i=n("77f1"),o=n("9def");e.exports=function(e){var t=r(this),n=o(t.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),c=s>2?arguments[2]:void 0,u=void 0===c?n:i(c,n);while(u>a)t[a++]=e;return t}},"36c3":function(e,t,n){var r=n("335c"),i=n("25eb");e.exports=function(e){return r(i(e))}},3702:function(e,t,n){var r=n("481b"),i=n("5168")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},"373f":function(e,t,n){"use strict";var r=n("5ca1"),i=n("6821"),o=[].join;r(r.P+r.F*(n("626a")!=Object||!n("2f21")(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},"37a7":function(e,t,n){var r=n("f400"),i=n("5ca1"),o=n("5537")("metadata"),s=o.store||(o.store=new(n("10ad"))),a=function(e,t,n){var i=s.get(e);if(!i){if(!n)return;s.set(e,i=new r)}var o=i.get(t);if(!o){if(!n)return;i.set(t,o=new r)}return o},c=function(e,t,n){var r=a(t,n,!1);return void 0!==r&&r.has(e)},u=function(e,t,n){var r=a(t,n,!1);return void 0===r?void 0:r.get(e)},l=function(e,t,n,r){a(n,r,!0).set(e,t)},f=function(e,t){var n=a(e,t,!1),r=[];return n&&n.forEach((function(e,t){r.push(t)})),r},h=function(e){return void 0===e||"symbol"==typeof e?e:String(e)},d=function(e){i(i.S,"Reflect",e)};e.exports={store:s,map:a,has:c,get:u,set:l,keys:f,key:h,exp:d}},"37b5":function(e,t,n){"use strict";var r=n("5ca1"),i=n("7726"),o=n("8378"),s=n("8079")(),a=n("2b4c")("observable"),c=n("d8e8"),u=n("cb7c"),l=n("f605"),f=n("dcbc"),h=n("32e9"),d=n("4a59"),p=d.RETURN,g=function(e){return null==e?void 0:c(e)},v=function(e){var t=e._c;t&&(e._c=void 0,t())},y=function(e){return void 0===e._o},m=function(e){y(e)||(e._o=void 0,v(e))},I=function(e,t){u(e),this._c=void 0,this._o=e,e=new M(this);try{var n=t(e),r=n;null!=n&&("function"===typeof n.unsubscribe?n=function(){r.unsubscribe()}:c(n),this._c=n)}catch(i){return void e.error(i)}y(this)&&v(this)};I.prototype=f({},{unsubscribe:function(){m(this)}});var M=function(e){this._s=e};M.prototype=f({},{next:function(e){var t=this._s;if(!y(t)){var n=t._o;try{var r=g(n.next);if(r)return r.call(n,e)}catch(i){try{m(t)}finally{throw i}}}},error:function(e){var t=this._s;if(y(t))throw e;var n=t._o;t._o=void 0;try{var r=g(n.error);if(!r)throw e;e=r.call(n,e)}catch(i){try{v(t)}finally{throw i}}return v(t),e},complete:function(e){var t=this._s;if(!y(t)){var n=t._o;t._o=void 0;try{var r=g(n.complete);e=r?r.call(n,e):void 0}catch(i){try{v(t)}finally{throw i}}return v(t),e}}});var C=function(e){l(this,C,"Observable","_f")._f=c(e)};f(C.prototype,{subscribe:function(e){return new I(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)((function(n,r){c(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(n){r(n),i.unsubscribe()}},error:r,complete:n})}))}}),f(C,{from:function(e){var t="function"===typeof this?this:C,n=g(u(e)[a]);if(n){var r=u(n.call(e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}return new t((function(t){var n=!1;return s((function(){if(!n){try{if(d(e,!1,(function(e){if(t.next(e),n)return p}))===p)return}catch(r){if(n)throw r;return void t.error(r)}t.complete()}})),function(){n=!0}}))},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e<t;)n[e]=arguments[e++];return new("function"===typeof this?this:C)((function(e){var t=!1;return s((function(){if(!t){for(var r=0;r<n.length;++r)if(e.next(n[r]),t)return;e.complete()}})),function(){t=!0}}))}}),h(C.prototype,a,(function(){return this})),r(r.G,{Observable:C}),n("7a56")("Observable")},"37c8":function(e,t,n){t.f=n("2b4c")},3846:function(e,t,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"386b":function(e,t,n){var r=n("5ca1"),i=n("79e5"),o=n("be13"),s=/"/g,a=function(e,t,n,r){var i=String(o(e)),a="<"+t;return""!==n&&(a+=" "+n+'="'+String(r).replace(s,""")+'"'),a+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(a),r(r.P+r.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},"386d":function(e,t,n){"use strict";var r=n("cb7c"),i=n("83a1"),o=n("5f1b");n("214f")("search",1,(function(e,t,n,s){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var a=r(e),c=String(this),u=a.lastIndex;i(u,0)||(a.lastIndex=0);var l=o(a,c);return i(a.lastIndex,u)||(a.lastIndex=u),null===l?-1:l.index}]}))},3875:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("1325");function i(e,t){return e>t?"horizontal":t>e?"vertical":""}var o={data:function(){return{direction:""}},methods:{touchStart:function(e){this.resetTouchStatus(),this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY},touchMove:function(e){var t=e.touches[0];this.deltaX=t.clientX<0?0:t.clientX-this.startX,this.deltaY=t.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY);var n=10;(!this.direction||this.offsetX<n&&this.offsetY<n)&&(this.direction=i(this.offsetX,this.offsetY))},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(e){var t=this.onTouchStart,n=this.onTouchMove,i=this.onTouchEnd;Object(r["b"])(e,"touchstart",t),Object(r["b"])(e,"touchmove",n),i&&(Object(r["b"])(e,"touchend",i),Object(r["b"])(e,"touchcancel",i))}}}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e}},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"3a72":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("2d00"),s=n("37c8"),a=n("86cc").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},"3a9c":function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=n("d8e8"),s=r.key,a=r.set;r.exp({metadata:function(e,t){return function(n,r){a(e,t,(void 0!==r?i:o)(n),s(r))}}})},"3b2b":function(e,t,n){var r=n("7726"),i=n("5dbc"),o=n("86cc").f,s=n("9093").f,a=n("aae3"),c=n("0bfb"),u=r.RegExp,l=u,f=u.prototype,h=/a/g,d=/a/g,p=new u(h)!==h;if(n("9e1e")&&(!p||n("79e5")((function(){return d[n("2b4c")("match")]=!1,u(h)!=h||u(d)==d||"/a/i"!=u(h,"i")})))){u=function(e,t){var n=this instanceof u,r=a(e),o=void 0===t;return!n&&r&&e.constructor===u&&o?e:i(p?new l(r&&!o?e.source:e,t):l((r=e instanceof u)?e.source:e,r&&o?c.call(e):t),n?this:f,u)};for(var g=function(e){e in u||o(u,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})},v=s(l),y=0;v.length>y;)g(v[y++]);f.constructor=u,u.prototype=f,n("2aba")(r,"RegExp",u)}n("7a56")("RegExp")},"3b74":function(e,t,n){"use strict";function r(e){return e instanceof RegExp}function i(e){return e&&"[object Function]"==={}.toString.call(e)}function o(e){return null!==e&&!Array.isArray(e)&&"object"===typeof e}function s(e){return"undefined"===typeof e}t.__esModule=!0,t.isUndefined=t.isPlainObject=t.isFunction=t.isRegex=void 0,t.isRegex=r,t.isFunction=i,t.isPlainObject=o,t.isUndefined=s},"3b8d":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("795b"),i=n.n(r);function o(e,t,n,r,o,s,a){try{var c=e[s](a),u=c.value}catch(l){return void n(l)}c.done?t(u):i.a.resolve(u).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new i.a((function(r,i){var s=e.apply(t,n);function a(e){o(s,r,i,a,c,"next",e)}function c(e){o(s,r,i,a,c,"throw",e)}a(void 0)}))}}},"3c11":function(e,t,n){"use strict";var r=n("63b6"),i=n("584a"),o=n("e53d"),s=n("f201"),a=n("cd78");r(r.P+r.R,"Promise",{finally:function(e){var t=s(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return a(t,e()).then((function(){return n}))}:e,n?function(n){return a(t,e()).then((function(){throw n}))}:e)}})},"3c4e":function(e,t,n){"use strict";var r=function(e){return i(e)&&!o(e)};function i(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||c(e)}var s="function"===typeof Symbol&&Symbol.for,a=s?Symbol.for("react.element"):60103;function c(e){return e.$$typeof===a}function u(e){return Array.isArray(e)?[]:{}}function l(e,t){var n=t&&!0===t.clone;return n&&r(e)?d(u(e),e,t):e}function f(e,t,n){var i=e.slice();return t.forEach((function(t,o){"undefined"===typeof i[o]?i[o]=l(t,n):r(t)?i[o]=d(e[o],t,n):-1===e.indexOf(t)&&i.push(l(t,n))})),i}function h(e,t,n){var i={};return r(e)&&Object.keys(e).forEach((function(t){i[t]=l(e[t],n)})),Object.keys(t).forEach((function(o){r(t[o])&&e[o]?i[o]=d(e[o],t[o],n):i[o]=l(t[o],n)})),i}function d(e,t,n){var r=Array.isArray(t),i=Array.isArray(e),o=n||{arrayMerge:f},s=r===i;if(s){if(r){var a=o.arrayMerge||f;return a(e,t,n)}return h(e,t,n)}return l(t,n)}d.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return d(e,n,t)}))};var p=d;e.exports=p},"3ca5":function(e,t,n){var r=n("7726").parseInt,i=n("aa77").trim,o=n("fdef"),s=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(s.test(n)?16:10))}:r},"3f6b":function(e,t,n){e.exports={default:n("51b6"),__esModule:!0}},"40c3":function(e,t,n){var r=n("6b4c"),i=n("5168")("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},4127:function(e,t,n){"use strict";var r=n("d233"),i=n("b313"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,f=i["default"],h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},d=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},p=function e(t,n,i,o,s,c,l,f,p,g,v,y,m){var I=t;if("function"===typeof l?I=l(n,I):I instanceof Date?I=g(I):"comma"===i&&a(I)&&(I=r.maybeMap(I,(function(e){return e instanceof Date?g(e):e})).join(",")),null===I){if(o)return c&&!y?c(n,h.encoder,m,"key"):n;I=""}if(d(I)||r.isBuffer(I)){if(c){var M=y?n:c(n,h.encoder,m,"key");return[v(M)+"="+v(c(I,h.encoder,m,"value"))]}return[v(n)+"="+v(String(I))]}var C,T=[];if("undefined"===typeof I)return T;if(a(l))C=l;else{var A=Object.keys(I);C=f?A.sort(f):A}for(var _=0;_<C.length;++_){var b=C[_],N=I[b];if(!s||null!==N){var E=a(I)?"function"===typeof i?i(n,b):n:n+(p?"."+b:"["+b+"]");u(T,e(N,E,i,o,s,c,l,f,p,g,v,y,m))}}return T},g=function(e){if(!e)return h;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i["default"];if("undefined"!==typeof e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],s=h.filter;return("function"===typeof e.filter||a(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?h.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:h.encode,encoder:"function"===typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:s,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var n,r,i=e,o=g(t);"function"===typeof o.filter?(r=o.filter,i=r("",i)):a(o.filter)&&(r=o.filter,n=r);var c,l=[];if("object"!==typeof i||null===i)return"";c=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=s[c];n||(n=Object.keys(i)),o.sort&&n.sort(o.sort);for(var h=0;h<n.length;++h){var d=n[h];o.skipNulls&&null===i[d]||u(l,p(i[d],d,f,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.formatter,o.encodeValuesOnly,o.charset))}var v=l.join(o.delimiter),y=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""}},"416c":function(e,t,n){n("28e4")("Map")},4178:function(e,t,n){var r,i,o,s=n("d864"),a=n("3024"),c=n("32fc"),u=n("1ec9"),l=n("e53d"),f=l.process,h=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,g=l.Dispatch,v=0,y={},m="onreadystatechange",I=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},M=function(e){I.call(e.data)};h&&d||(h=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return y[++v]=function(){a("function"==typeof e?e:Function(e),t)},r(v),v},d=function(e){delete y[e]},"process"==n("6b4c")(f)?r=function(e){f.nextTick(s(I,e,1))}:g&&g.now?r=function(e){g.now(s(I,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=M,r=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",M,!1)):r=m in u("script")?function(e){c.appendChild(u("script"))[m]=function(){c.removeChild(this),I.call(e)}}:function(e){setTimeout(s(I,e,1),0)}),e.exports={set:h,clear:d}},"419e":function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(r(arguments[t]));return e};function o(e,t,n){var r=new Set(t);return function(t,o,s){return s===e&&Array.from(i(t,o).map((function(e){return{key:n(e),value:e}})).map((function(e){var t=e.key,n=e.value;return{key:r.has(t)?t:n,value:n}})).reduce((function(e,t){var n=t.key,r=t.value;return e["delete"](n),e.set(n,r)}),new Map).values())}}t.__esModule=!0,t["default"]=o},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},"41b2":function(e,t,n){"use strict";t.__esModule=!0;var r=n("3f6b"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},4208:function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t,n){e=e||{};var r=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};n.en.relativeTime=i;var o=function(t,r,o,s){for(var a,c,u,l=o.$locale().relativeTime||i,f=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=f.length,d=0;d<h;d+=1){var p=f[d];p.d&&(a=s?n(t).diff(o,p.d,!0):o.diff(t,p.d,!0));var g=(e.rounding||Math.round)(Math.abs(a));if(u=a>0,g<=p.r||!p.r){g<=1&&d>0&&(p=f[d-1]);var v=l[p.l];c="string"==typeof v?v.replace("%d",g):v(g,r,p.l,u);break}}return r?c:(u?l.future:l.past).replace("%s",c)};r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)};var s=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(s(this),e)},r.fromNow=function(e){return this.from(s(this),e)}}}))},4276:function(e,t,n){var r=n("5ca1"),i=n("2d95");r(r.S,"Error",{isError:function(e){return"Error"===i(e)}})},4328:function(e,t,n){"use strict";var r=n("4127"),i=n("9e6a"),o=n("b313");e.exports={formats:o,parse:i,stringify:r}},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},4379:function(e,t,n){var r=n("4a59");e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},"43fc":function(e,t,n){"use strict";var r=n("63b6"),i=n("656e"),o=n("4439");r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},4439:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},"44b8":function(e,t,n){var r=n("23c6"),i=n("4379");e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},4504:function(e,t,n){"use strict";var r=n("5ca1"),i=n("4bf8"),o=n("d8e8"),s=n("86cc");n("9e1e")&&r(r.P+n("c5b4"),"Object",{__defineGetter__:function(e,t){s.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},"454f":function(e,t,n){n("46a7");var r=n("584a").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45f2":function(e,t,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"469f":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("7d7b")},"46a7":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},4704:function(e,t,n){var r=n("5ca1");r(r.P+r.R,"Map",{toJSON:n("44b8")("Map")})},4795:function(e,t,n){var r=n("7726"),i=n("5ca1"),o=n("a25f"),s=[].slice,a=/MSIE .\./.test(o),c=function(e){return function(t,n){var r=arguments.length>2,i=!!r&&s.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};i(i.G+i.B+i.F*a,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},"47ee":function(e,t,n){var r=n("c3a1"),i=n("9aa9"),o=n("355d");e.exports=function(e){var t=r(e),n=i.f;if(n){var s,a=n(e),c=o.f,u=0;while(a.length>u)c.call(e,s=a[u++])&&t.push(s)}return t}},"481b":function(e,t){e.exports={}},"48c0":function(e,t,n){"use strict";n("386b")("bold",(function(e){return function(){return e(this,"b","","")}}))},"48f4":function(e,t,n){"use strict";function r(e){return"NavigationDuplicated"===e.name||e.message&&-1!==e.message.indexOf("redundant navigation")}function i(e,t){var n=t.to,i=t.url,o=t.replace;if(n&&e){var s=e[o?"replace":"push"](n);s&&s.catch&&s.catch((function(e){if(e&&!r(e))throw e}))}else i&&(o?location.replace(i):location.href=i)}function o(e){i(e.parent&&e.parent.$router,e.props)}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s}));var s={url:String,replace:Boolean,to:[String,Object]}},"48f8":function(e,t,n){"use strict";var r=n("5ca1"),i=n("7b23");r(r.P+r.F*!n("2f21")([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},4917:function(e,t,n){"use strict";var r=n("cb7c"),i=n("9def"),o=n("0390"),s=n("5f1b");n("214f")("match",1,(function(e,t,n,a){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var c=r(e),u=String(this);if(!c.global)return s(c,u);var l=c.unicode;c.lastIndex=0;var f,h=[],d=0;while(null!==(f=s(c,u))){var p=String(f[0]);h[d]=p,""===p&&(c.lastIndex=o(u,i(c.lastIndex),l)),d++}return 0===d?null:h}]}))},"4a59":function(e,t,n){var r=n("9b43"),i=n("1fa8"),o=n("33a4"),s=n("cb7c"),a=n("9def"),c=n("27ee"),u={},l={};t=e.exports=function(e,t,n,f,h){var d,p,g,v,y=h?function(){return e}:c(e),m=r(n,f,t?2:1),I=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(o(y)){for(d=a(e.length);d>I;I++)if(v=t?m(s(p=e[I])[0],p[1]):m(e[I]),v===u||v===l)return v}else for(g=y.call(e);!(p=g.next()).done;)if(v=i(g,m,p.value,t),v===u||v===l)return v};t.BREAK=u,t.RETURN=l},"4aa6":function(e,t,n){e.exports=n("dc62")},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4c95":function(e,t,n){"use strict";var r=n("e53d"),i=n("584a"),o=n("d9f6"),s=n("8e60"),a=n("5168")("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];s&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},"4d16":function(e,t,n){e.exports=n("25b0")},"4dda":function(e,t,n){n("ec30")("Float64",8,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"4e2b":function(e,t,n){"use strict";var r=n("4aa6"),i=n.n(r),o=n("4d16"),s=n.n(o);function a(e,t){return a=s.a||function(e,t){return e.__proto__=t,e},a(e,t)}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=i()(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}n.d(t,"a",(function(){return c}))},"4ee1":function(e,t,n){var r=n("5168")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(s){}return n}},"4f37":function(e,t,n){"use strict";n("aa77")("trim",(function(e){return function(){return e(this,3)}}))},"4f7f":function(e,t,n){"use strict";var r=n("c26b"),i=n("b39a"),o="Set";e.exports=n("e0b8")(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,o),e=0===e?0:e,e)}},r)},"504c":function(e,t,n){var r=n("9e1e"),i=n("0d58"),o=n("6821"),s=n("52a7").f;e.exports=function(e){return function(t){var n,a=o(t),c=i(a),u=c.length,l=0,f=[];while(u>l)n=c[l++],r&&!s.call(a,n)||f.push(e?[n,a[n]]:a[n]);return f}}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},5168:function(e,t,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,s="function"==typeof o,a=e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))};a.store=r},"51b6":function(e,t,n){n("a3c3"),e.exports=n("584a").Object.assign},"520a":function(e,t,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,s=i,a="lastIndex",c=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[a]||0!==t[a]}(),u=void 0!==/()??/.exec("")[1],l=c||u;l&&(s=function(e){var t,n,s,l,f=this;return u&&(n=new RegExp("^"+f.source+"$(?!\\s)",r.call(f))),c&&(t=f[a]),s=i.call(f,e),c&&s&&(f[a]=f.global?s.index+s[0].length:t),u&&s&&s.length>1&&o.call(s[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s}),e.exports=s},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),s=n("2444"),a=n("d925"),c=n("e683");function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){u(e),e.baseURL&&!a(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function(t){return u(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(u(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"52f6":function(e,t,n){"use strict";(function(t){
- /*!
- * shallow-clone <https://github.com/jonschlinkert/shallow-clone>
- *
- * Copyright (c) 2015-present, Jon Schlinkert.
- * Released under the MIT License.
- */
- const r=Symbol.prototype.valueOf,i=n("ef5d");function o(e,t){switch(i(e)){case"array":return e.slice();case"object":return Object.assign({},e);case"date":return new e.constructor(Number(e));case"map":return new Map(e);case"set":return new Set(e);case"buffer":return u(e);case"symbol":return l(e);case"arraybuffer":return a(e);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return c(e);case"regexp":return s(e);case"error":return Object.create(e);default:return e}}function s(e){const t=void 0!==e.flags?e.flags:/\w+$/.exec(e)||void 0,n=new e.constructor(e.source,t);return n.lastIndex=e.lastIndex,n}function a(e){const t=new e.constructor(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}function c(e,t){return new e.constructor(e.buffer,e.byteOffset,e.length)}function u(e){const n=e.length,r=t.allocUnsafe?t.allocUnsafe(n):t.from(n);return e.copy(r),r}function l(e){return r?Object(r.call(e)):{}}e.exports=o}).call(this,n("b639").Buffer)},"536b":function(e,t,n){var r=n("5ca1"),i=Math.asinh;function o(e){return isFinite(e=+e)&&0!=e?e<0?-o(-e):Math.log(e+Math.sqrt(e*e+1)):e}r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:o})},"53e2":function(e,t,n){var r=n("07e3"),i=n("241e"),o=n("5559")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"543e":function(e,t,n){"use strict";var r=n("2638"),i=n.n(r),o=n("d282"),s=n("ea8e"),a=n("ba31"),c=Object(o["a"])("loading"),u=c[0],l=c[1];function f(e,t){if("spinner"===t.type){for(var n=[],r=0;r<12;r++)n.push(e("i"));return n}return e("svg",{class:l("circular"),attrs:{viewBox:"25 25 50 50"}},[e("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}function h(e,t,n){if(n.default){var r,i={fontSize:Object(s["a"])(t.textSize),color:null!=(r=t.textColor)?r:t.color};return e("span",{class:l("text"),style:i},[n.default()])}}function d(e,t,n,r){var o=t.color,c=t.size,u=t.type,d={color:o};if(c){var p=Object(s["a"])(c);d.width=p,d.height=p}return e("div",i()([{class:l([u,{vertical:t.vertical}])},Object(a["b"])(r,!0)]),[e("span",{class:l("spinner",u),style:d},[f(e,t)]),h(e,t,n)])}d.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}},t["a"]=u(d)},"549b":function(e,t,n){"use strict";var r=n("d864"),i=n("63b6"),o=n("241e"),s=n("b0dc"),a=n("3702"),c=n("b447"),u=n("20fd"),l=n("7cd6");i(i.S+i.F*!n("4ee1")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,f,h=o(e),d="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,y=0,m=l(h);if(v&&(g=r(g,p>2?arguments[2]:void 0,2)),void 0==m||d==Array&&a(m))for(t=c(h.length),n=new d(t);t>y;y++)u(n,y,v?g(h[y],y):h[y]);else for(f=m.call(h),n=new d;!(i=f.next()).done;y++)u(n,y,v?s(f,g,[i.value,y],!0):i.value);return n.length=y,n}})},"54a1":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("95d5")},"54a8":function(e,t,n){"use strict";var r=n("5ca1"),i=n("79e5"),o=n("bef9"),s=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==s.call(1,void 0)}))||!i((function(){s.call({})}))),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?s.call(t):s.call(t,e)}})},"551c":function(e,t,n){"use strict";var r,i,o,s,a=n("2d00"),c=n("7726"),u=n("9b43"),l=n("23c6"),f=n("5ca1"),h=n("d3f4"),d=n("d8e8"),p=n("f605"),g=n("4a59"),v=n("ebd6"),y=n("1991").set,m=n("8079")(),I=n("a5b8"),M=n("9c80"),C=n("a25f"),T=n("bcaa"),A="Promise",_=c.TypeError,b=c.process,N=b&&b.versions,E=N&&N.v8||"",w=c[A],S="process"==l(b),O=function(){},D=i=I.f,L=!!function(){try{var e=w.resolve(1),t=(e.constructor={})[n("2b4c")("species")]=function(e){e(O,O)};return(S||"function"==typeof PromiseRejectionEvent)&&e.then(O)instanceof t&&0!==E.indexOf("6.6")&&-1===C.indexOf("Chrome/66")}catch(r){}}(),R=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},j=function(e,t){if(!e._n){e._n=!0;var n=e._c;m((function(){var r=e._v,i=1==e._s,o=0,s=function(t){var n,o,s,a=i?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{a?(i||(2==e._h&&U(e),e._h=1),!0===a?n=r:(l&&l.enter(),n=a(r),l&&(l.exit(),s=!0)),n===t.promise?u(_("Promise-chain cycle")):(o=R(n))?o.call(n,c,u):c(n)):u(r)}catch(f){l&&!s&&l.exit(),u(f)}};while(n.length>o)s(n[o++]);e._c=[],e._n=!1,t&&!e._h&&x(e)}))}},x=function(e){y.call(c,(function(){var t,n,r,i=e._v,o=k(e);if(o&&(t=M((function(){S?b.emit("unhandledRejection",i,e):(n=c.onunhandledrejection)?n({promise:e,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=S||k(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},k=function(e){return 1!==e._h&&0===(e._a||e._c).length},U=function(e){y.call(c,(function(){var t;S?b.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},P=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),j(t,!0))},z=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw _("Promise can't be resolved itself");(t=R(e))?m((function(){var r={_w:n,_d:!1};try{t.call(e,u(z,r,1),u(P,r,1))}catch(i){P.call(r,i)}})):(n._v=e,n._s=1,j(n,!1))}catch(r){P.call({_w:n,_d:!1},r)}}};L||(w=function(e){p(this,w,A,"_h"),d(e),r.call(this);try{e(u(z,this,1),u(P,this,1))}catch(t){P.call(this,t)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("dcbc")(w.prototype,{then:function(e,t){var n=D(v(this,w));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=S?b.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&j(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=u(z,e,1),this.reject=u(P,e,1)},I.f=D=function(e){return e===w||e===s?new o(e):i(e)}),f(f.G+f.W+f.F*!L,{Promise:w}),n("7f20")(w,A),n("7a56")(A),s=n("8378")[A],f(f.S+f.F*!L,A,{reject:function(e){var t=D(this),n=t.reject;return n(e),t.promise}}),f(f.S+f.F*(a||!L),A,{resolve:function(e){return T(a&&this===s?w:this,e)}}),f(f.S+f.F*!(L&&n("5cc5")((function(e){w.all(e)["catch"](O)}))),A,{all:function(e){var t=this,n=D(t),r=n.resolve,i=n.reject,o=M((function(){var n=[],o=0,s=1;g(e,!1,(function(e){var a=o++,c=!1;n.push(void 0),s++,t.resolve(e).then((function(e){c||(c=!0,n[a]=e,--s||r(n))}),i)})),--s||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=D(t),r=n.reject,i=M((function(){g(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",s=i[o]||(i[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var r=n("dbdb")("keys"),i=n("62a0");e.exports=function(e){return r[e]||(r[e]=i(e))}},"55dd":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("4bf8"),s=n("79e5"),a=[].sort,c=[1,2,3];r(r.P+r.F*(s((function(){c.sort(void 0)}))||!s((function(){c.sort(null)}))||!n("2f21")(a)),"Array",{sort:function(e){return void 0===e?a.call(o(this)):a.call(o(this),i(e))}})},5695:function(e,t,n){var r=n("5ca1"),i=n("77f1"),o=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(e){var t,n=[],r=arguments.length,s=0;while(r>s){if(t=+arguments[s++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},"57e7":function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(s||!n("2f21")(o)),"Array",{indexOf:function(e){return s?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},"57f0":function(e,t,n){var r=n("d3f4");n("5eda")("isSealed",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},"584a":function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},"58b2":function(e,t,n){var r=n("5ca1");r(r.S+r.F*!n("9e1e"),"Object",{defineProperties:n("1495")})},"58e6":function(e,t,n){"use strict";var r=n("d282"),i=n("1325"),o=n("a8c1"),s=n("3875"),a=n("543e"),c=Object(r["a"])("pull-refresh"),u=c[0],l=c[1],f=c[2],h=50,d=["pulling","loosing","success"];t["a"]=u({mixins:[s["a"]],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:[Number,String],value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:h}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return"loading"!==this.status&&"success"!==this.status&&!this.disabled},headStyle:function(){if(this.headHeight!==h)return{height:this.headHeight+"px"}}},watch:{value:function(e){this.duration=this.animationDuration,e?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=Object(o["c"])(this.$el)},methods:{checkPullStart:function(e){this.ceiling=0===Object(o["b"])(this.scrollEl),this.ceiling&&(this.duration=0,this.touchStart(e))},onTouchStart:function(e){this.touchable&&this.checkPullStart(e)},onTouchMove:function(e){this.touchable&&(this.ceiling||this.checkPullStart(e),this.touchMove(e),this.ceiling&&this.deltaY>=0&&"vertical"===this.direction&&(Object(i["c"])(e),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var e=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,"loosing"===this.status?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick((function(){e.$emit("refresh")}))):this.setStatus(0))},ease:function(e){var t=+(this.pullDistance||this.headHeight);return e>t&&(e=e<2*t?t+(e-t)/2:1.5*t+(e-2*t)/4),Math.round(e)},setStatus:function(e,t){var n;n=t?"loading":0===e?"normal":e<(this.pullDistance||this.headHeight)?"pulling":"loosing",this.distance=e,n!==this.status&&(this.status=n)},genStatus:function(){var e=this.$createElement,t=this.status,n=this.distance,r=this.slots(t,{distance:n});if(r)return r;var i=[],o=this[t+"Text"]||f(t);return-1!==d.indexOf(t)&&i.push(e("div",{class:l("text")},[o])),"loading"===t&&i.push(e(a["a"],{attrs:{size:"16"}},[o])),i},showSuccessTip:function(){var e=this;this.status="success",setTimeout((function(){e.setStatus(0)}),this.successDuration)}},render:function(){var e=arguments[0],t={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return e("div",{class:l()},[e("div",{ref:"track",class:l("track"),style:t},[e("div",{class:l("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}})},"597f":function(e,t){e.exports=function(e,t,n,r){var i,o=0;function s(){var s=this,a=Number(new Date)-o,c=arguments;function u(){o=Number(new Date),n.apply(s,c)}function l(){i=void 0}r&&!i&&u(),i&&clearTimeout(i),void 0===r&&a>e?u():!0!==t&&(i=setTimeout(r?l:u,void 0===r?e-a:e))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),s}},"5a0c":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="day",o="week",s="month",a="quarter",c="year",u="date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,f=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},d={s:h,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+h(r,2,"0")+":"+h(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,s),o=n-i<0,a=t.clone().add(r+(o?-1:1),s);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(l){return{M:s,y:c,w:o,d:i,D:u,h:r,m:n,s:t,ms:e,Q:a}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g="en",v={};v[g]=p;var y=function(e){return e instanceof C},m=function(e,t,n){var r;if(!e)return g;if("string"==typeof e)v[e]&&(r=e),t&&(v[e]=t,r=e);else{var i=e.name;v[i]=e,r=i}return!n&&r&&(g=r),r||!n&&g},I=function(e,t){if(y(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},M=d;M.l=m,M.i=y,M.w=function(e,t){return I(e,{locale:t.$L,utc:t.$u,$offset:t.$offset})};var C=function(){function h(e){this.$L=this.$L||m(e.locale,null,!0),this.parse(e)}var d=h.prototype;return d.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(M.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(l);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},d.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},d.$utils=function(){return M},d.isValid=function(){return!("Invalid Date"===this.$d.toString())},d.isSame=function(e,t){var n=I(e);return this.startOf(t)<=n&&n<=this.endOf(t)},d.isAfter=function(e,t){return I(e)<this.startOf(t)},d.isBefore=function(e,t){return this.endOf(t)<I(e)},d.$g=function(e,t,n){return M.u(e)?this[t]:this.set(n,e)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(e,a){var l=this,f=!!M.u(a)||a,h=M.p(e),d=function(e,t){var n=M.w(l.$u?Date.UTC(l.$y,t,e):new Date(l.$y,t,e),l);return f?n:n.endOf(i)},p=function(e,t){return M.w(l.toDate()[e].apply(l.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(t)),l)},g=this.$W,v=this.$M,y=this.$D,m="set"+(this.$u?"UTC":"");switch(h){case c:return f?d(1,0):d(31,11);case s:return f?d(1,v):d(0,v+1);case o:var I=this.$locale().weekStart||0,C=(g<I?g+7:g)-I;return d(f?y-C:y+(6-C),v);case i:case u:return p(m+"Hours",0);case r:return p(m+"Minutes",1);case n:return p(m+"Seconds",2);case t:return p(m+"Milliseconds",3);default:return this.clone()}},d.endOf=function(e){return this.startOf(e,!1)},d.$set=function(o,a){var l,f=M.p(o),h="set"+(this.$u?"UTC":""),d=(l={},l[i]=h+"Date",l[u]=h+"Date",l[s]=h+"Month",l[c]=h+"FullYear",l[r]=h+"Hours",l[n]=h+"Minutes",l[t]=h+"Seconds",l[e]=h+"Milliseconds",l)[f],p=f===i?this.$D+(a-this.$W):a;if(f===s||f===c){var g=this.clone().set(u,1);g.$d[d](p),g.init(),this.$d=g.set(u,Math.min(this.$D,g.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},d.set=function(e,t){return this.clone().$set(e,t)},d.get=function(e){return this[M.p(e)]()},d.add=function(e,a){var u,l=this;e=Number(e);var f=M.p(a),h=function(t){var n=I(l);return M.w(n.date(n.date()+Math.round(t*e)),l)};if(f===s)return this.set(s,this.$M+e);if(f===c)return this.set(c,this.$y+e);if(f===i)return h(1);if(f===o)return h(7);var d=(u={},u[n]=6e4,u[r]=36e5,u[t]=1e3,u)[f]||1,p=this.$d.getTime()+e*d;return M.w(p,this)},d.subtract=function(e,t){return this.add(-1*e,t)},d.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var n=e||"YYYY-MM-DDTHH:mm:ssZ",r=M.z(this),i=this.$locale(),o=this.$H,s=this.$m,a=this.$M,c=i.weekdays,u=i.months,l=function(e,r,i,o){return e&&(e[r]||e(t,n))||i[r].substr(0,o)},h=function(e){return M.s(o%12||12,e,"0")},d=i.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:M.s(a+1,2,"0"),MMM:l(i.monthsShort,a,u,3),MMMM:l(u,a),D:this.$D,DD:M.s(this.$D,2,"0"),d:String(this.$W),dd:l(i.weekdaysMin,this.$W,c,2),ddd:l(i.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(o),HH:M.s(o,2,"0"),h:h(1),hh:h(2),a:d(o,s,!0),A:d(o,s,!1),m:String(s),mm:M.s(s,2,"0"),s:String(this.$s),ss:M.s(this.$s,2,"0"),SSS:M.s(this.$ms,3,"0"),Z:r};return n.replace(f,(function(e,t){return t||p[e]||r.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(e,u,l){var f,h=M.p(u),d=I(e),p=6e4*(d.utcOffset()-this.utcOffset()),g=this-d,v=M.m(this,d);return v=(f={},f[c]=v/12,f[s]=v,f[a]=v/3,f[o]=(g-p)/6048e5,f[i]=(g-p)/864e5,f[r]=g/36e5,f[n]=g/6e4,f[t]=g/1e3,f)[h]||g,l?v:M.a(v)},d.daysInMonth=function(){return this.endOf(s).$D},d.$locale=function(){return v[this.$L]},d.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=m(e,t,!0);return r&&(n.$L=r),n},d.clone=function(){return M.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},h}(),T=C.prototype;return I.prototype=T,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W",i],["$M",s],["$y",c],["$D",u]].forEach((function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),I.extend=function(e,t){return e(t,C,I),I},I.locale=m,I.isDayjs=y,I.unix=function(e){return I(1e3*e)},I.en=v[g],I.Ls=v,I}))},"5b4e":function(e,t,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");e.exports=function(e){return function(t,n,s){var a,c=r(t),u=i(c.length),l=o(s,u);if(e&&n!=n){while(u>l)if(a=c[l++],a!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},"5bba":function(e,t,n){n("9d98");var r=n("584a").Object;e.exports=function(e,t){return r.defineProperties(e,t)}},"5c95":function(e,t,n){var r=n("35e8");e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),s=n("2aba"),a=n("9b43"),c="prototype",u=function(e,t,n){var l,f,h,d,p=e&u.F,g=e&u.G,v=e&u.S,y=e&u.P,m=e&u.B,I=g?r:v?r[t]||(r[t]={}):(r[t]||{})[c],M=g?i:i[t]||(i[t]={}),C=M[c]||(M[c]={});for(l in g&&(n=t),n)f=!p&&I&&void 0!==I[l],h=(f?I:n)[l],d=m&&f?a(h,r):y&&"function"==typeof h?a(Function.call,h):h,I&&s(I,l,h,e&u.U),M[l]!=h&&o(M,l,d),y&&C[l]!=h&&(C[l]=h)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"5cc5":function(e,t,n){var r=n("2b4c")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(s){}return n}},"5d40":function(e,t,n){n("28e4")("WeakMap")},"5d58":function(e,t,n){e.exports=n("d8d6")},"5d73":function(e,t,n){e.exports=n("469f")},"5d90":function(e,t,n){n("28e4")("WeakSet")},"5dbc":function(e,t,n){var r=n("d3f4"),i=n("8b97").set;e.exports=function(e,t,n){var o,s=t.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},"5df2":function(e,t,n){var r=n("5ca1"),i=n("d752");r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},"5df3":function(e,t,n){"use strict";var r=n("02f4")(!0);n("01f9")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"5e83":function(e,t,n){e.exports=n("8580")},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",s)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"5fbe":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("1325"),i=0;function o(e){var t="binded_"+i++;function n(){this[t]||(e.call(this,r["b"],!0),this[t]=!0)}function o(){this[t]&&(e.call(this,r["a"],!1),this[t]=!1)}return{mounted:n,activated:n,deactivated:o,beforeDestroy:o}}},6095:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(4);r(r.P+r.F*!n("2f21")([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"63b6":function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("d864"),s=n("35e8"),a=n("07e3"),c="prototype",u=function(e,t,n){var l,f,h,d=e&u.F,p=e&u.G,g=e&u.S,v=e&u.P,y=e&u.B,m=e&u.W,I=p?i:i[t]||(i[t]={}),M=I[c],C=p?r:g?r[t]:(r[t]||{})[c];for(l in p&&(n=t),n)f=!d&&C&&void 0!==C[l],f&&a(I,l)||(h=f?C[l]:n[l],I[l]=p&&"function"!=typeof C[l]?n[l]:y&&f?o(h,r):m&&C[l]==h?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[c]=e[c],t}(h):v&&"function"==typeof h?o(Function.call,h):h,v&&((I.virtual||(I.virtual={}))[l]=h,e&u.R&&M&&!M[l]&&s(M,l,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"63d9":function(e,t,n){n("ec30")("Float32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"643e":function(e,t,n){"use strict";var r=n("dcbc"),i=n("67ab").getWeak,o=n("cb7c"),s=n("d3f4"),a=n("f605"),c=n("4a59"),u=n("0a49"),l=n("69a8"),f=n("b39a"),h=u(5),d=u(6),p=0,g=function(e){return e._l||(e._l=new v)},v=function(){this.a=[]},y=function(e,t){return h(e.a,(function(e){return e[0]===t}))};v.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=d(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var u=e((function(e,r){a(e,u,t,"_i"),e._t=t,e._i=p++,e._l=void 0,void 0!=r&&c(r,n,e[o],e)}));return r(u.prototype,{delete:function(e){if(!s(e))return!1;var n=i(e);return!0===n?g(f(this,t))["delete"](e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!s(e))return!1;var n=i(e);return!0===n?g(f(this,t)).has(e):n&&l(n,this._i)}}),u},def:function(e,t,n){var r=i(o(t),!0);return!0===r?g(e).set(t,n):r[e._i]=n,e},ufstore:g}},"64d5":function(e,t,n){"use strict";var r=n("5ca1"),i=n("4bf8"),o=n("6a99"),s=n("38fd"),a=n("11e9").f;n("9e1e")&&r(r.P+n("c5b4"),"Object",{__lookupSetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=a(n,r))return t.set}while(n=s(n))}})},"656e":function(e,t,n){"use strict";var r=n("79aa");function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},6612:function(e,t,n){var r,i;
- /*! @preserve
- * numeral.js
- * version : 2.0.6
- * author : Adam Draper
- * license : MIT
- * http://adamwdraper.github.com/Numeral-js/
- */(function(o,s){r=s,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i)})(0,(function(){var e,t,n="2.0.6",r={},i={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function a(e,t){this._input=e,this._value=t}return e=function(n){var i,o,c,u;if(e.isNumeral(n))i=n.value();else if(0===n||"undefined"===typeof n)i=0;else if(null===n||t.isNaN(n))i=null;else if("string"===typeof n)if(s.zeroFormat&&n===s.zeroFormat)i=0;else if(s.nullFormat&&n===s.nullFormat||!n.replace(/[^0-9]+/g,"").length)i=null;else{for(o in r)if(u="function"===typeof r[o].regexps.unformat?r[o].regexps.unformat():r[o].regexps.unformat,u&&n.match(u)){c=r[o].unformat;break}c=c||e._.stringToNumber,i=c(n)}else i=Number(n)||null;return new a(n,i)},e.version=n,e.isNumeral=function(e){return e instanceof a},e._=t={numberToFormat:function(t,n,r){var o,s,a,c,u,l,f,h=i[e.options.currentLocale],d=!1,p=!1,g=0,v="",y=1e12,m=1e9,I=1e6,M=1e3,C="",T=!1;if(t=t||0,s=Math.abs(t),e._.includes(n,"(")?(d=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(u=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(o=n.match(/a(k|m|b|t)?/),o=!!o&&o[1],e._.includes(n," a")&&(v=" "),n=n.replace(new RegExp(v+"a[kmbt]?"),""),s>=y&&!o||"t"===o?(v+=h.abbreviations.trillion,t/=y):s<y&&s>=m&&!o||"b"===o?(v+=h.abbreviations.billion,t/=m):s<m&&s>=I&&!o||"m"===o?(v+=h.abbreviations.million,t/=I):(s<I&&s>=M&&!o||"k"===o)&&(v+=h.abbreviations.thousand,t/=M)),e._.includes(n,"[.]")&&(p=!0,n=n.replace("[.]",".")),a=t.toString().split(".")[0],c=n.split(".")[1],l=n.indexOf(","),g=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,c?(e._.includes(c,"[")?(c=c.replace("]",""),c=c.split("["),C=e._.toFixed(t,c[0].length+c[1].length,r,c[1].length)):C=e._.toFixed(t,c.length,r),a=C.split(".")[0],C=e._.includes(C,".")?h.delimiters.decimal+C.split(".")[1]:"",p&&0===Number(C.slice(1))&&(C="")):a=e._.toFixed(t,0,r),v&&!o&&Number(a)>=1e3&&v!==h.abbreviations.trillion)switch(a=String(Number(a)/1e3),v){case h.abbreviations.thousand:v=h.abbreviations.million;break;case h.abbreviations.million:v=h.abbreviations.billion;break;case h.abbreviations.billion:v=h.abbreviations.trillion;break}if(e._.includes(a,"-")&&(a=a.slice(1),T=!0),a.length<g)for(var A=g-a.length;A>0;A--)a="0"+a;return l>-1&&(a=a.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+h.delimiters.thousands)),0===n.indexOf(".")&&(a=""),f=a+C+(v||""),d?f=(d&&T?"(":"")+f+(d&&T?")":""):u>=0?f=0===u?(T?"-":"+")+f:f+(T?"-":"+"):T&&(f="-"+f),f},stringToNumber:function(e){var t,n,r,o=i[s.currentLocale],a=e,c={thousand:3,million:6,billion:9,trillion:12};if(s.zeroFormat&&e===s.zeroFormat)n=0;else if(s.nullFormat&&e===s.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),c)if(r=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),a.match(r)){n*=Math.pow(10,c[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"===typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,o=0;if(3===arguments.length)n=arguments[2];else{while(o<i&&!(o in r))o++;if(o>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;o<i;o++)o in r&&(n=t(n,r[o],o,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){var e=Array.prototype.slice.call(arguments);return e.reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var i,o,s,a,c=e.toString().split("."),u=t-(r||0);return i=2===c.length?Math.min(Math.max(c[1].length,u),t):u,s=Math.pow(10,i),a=(n(e+"e+"+i)/s).toFixed(i),r>t-i&&(o=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),a=a.replace(o,"")),a}},e.options=s,e.formats=r,e.locales=i,e.locale=function(e){return e&&(s.currentLocale=e.toLowerCase()),s.currentLocale},e.localeData=function(e){if(!e)return i[s.currentLocale];if(e=e.toLowerCase(),!i[e])throw new Error("Unknown locale : "+e);return i[e]},e.reset=function(){for(var e in o)s[e]=o[e]},e.zeroFormat=function(e){s.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){s.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){s.defaultFormat="string"===typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,o,s,a,c,u,l;if("string"!==typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),t=t.trim(),t.match(/^\d+$/))return!0;if(""===t)return!1;try{u=e.localeData(n)}catch(f){u=e.localeData(e.locale())}return o=u.currency.symbol,a=u.abbreviations,r=u.delimiters.decimal,i="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,l=t.match(/^[^\d]+/),(null===l||(t=t.substr(1),l[0]===o))&&(l=t.match(/[^\d]+$/),(null===l||(t=t.slice(0,-1),l[0]===a.thousand||l[0]===a.million||l[0]===a.billion||l[0]===a.trillion))&&(c=new RegExp(i+"{2}"),!t.match(/[^\d.,]/g)&&(s=t.split(r),!(s.length>2)&&(s.length<2?!!s[0].match(/^\d+.*\d$/)&&!s[0].match(c):1===s[0].length?!!s[0].match(/^\d+$/)&&!s[0].match(c)&&!!s[1].match(/^\d+$/):!!s[0].match(/^\d+.*\d$/)&&!s[0].match(c)&&!!s[1].match(/^\d+$/)))))},e.fn=a.prototype={clone:function(){return e(this)},format:function(t,n){var i,o,a,c=this._value,u=t||s.defaultFormat;if(n=n||Math.round,0===c&&null!==s.zeroFormat)o=s.zeroFormat;else if(null===c&&null!==s.nullFormat)o=s.nullFormat;else{for(i in r)if(u.match(r[i].regexps.format)){a=r[i].format;break}a=a||e._.numberToFormat,o=a(c,u,n)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e+Math.round(n*t)}return this._value=t.reduce([this._value,e],r,0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e-Math.round(n*t)}return this._value=t.reduce([e],r,Math.round(this._value*n))/n,this},multiply:function(e){function n(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)*Math.round(n*o)/Math.round(o*o)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)/Math.round(n*o)}return this._value=t.reduce([this._value,e],n),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,o=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?(i=i.split(""),i.splice(-1,0,o+"BPS"),i=i.join("")):i=i+o+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}})}(),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=t.suffixes.concat(n.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))),i=r.join("|");i="("+i.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(r,i,o){var s,a,c,u,l=e._.includes(i,"ib")?n:t,f=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),a=0;a<=l.suffixes.length;a++)if(c=Math.pow(l.base,a),u=Math.pow(l.base,a+1),null===r||0===r||r>=c&&r<u){f+=l.suffixes[a],c>0&&(r/=c);break}return s=e._.numberToFormat(r,i,o),s+f},unformat:function(r){var i,o,s=e._.stringToNumber(r);if(s){for(i=t.suffixes.length-1;i>=0;i--){if(e._.includes(r,t.suffixes[i])){o=Math.pow(t.base,i);break}if(e._.includes(r,n.suffixes[i])){o=Math.pow(n.base,i);break}}s*=o||1}return s}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,o,s,a=e.locales[e.options.currentLocale],c={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(c.before=c.before.replace(/[\-\(]/,""),c.after=c.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(c.before,"-")&&!e._.includes(c.before,"(")&&(c.before="-"+c.before),s=0;s<c.before.length;s++)switch(o=c.before[s],o){case"$":i=e._.insert(i,a.currency.symbol,s);break;case" ":i=e._.insert(i," ",s+a.currency.symbol.length-1);break}for(s=c.after.length-1;s>=0;s--)switch(o=c.after[s],o){case"$":i=s===c.after.length-1?i+a.currency.symbol:e._.insert(i,a.currency.symbol,-(c.after.length-(1+s)));break;case" ":i=s===c.after.length-1?i+" ":e._.insert(i," ",-(c.after.length-(1+s)+a.currency.symbol.length-1));break}return i}})}(),function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i,o="number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential(),s=o.split("e");return n=n.replace(/e[\+|\-]{1}0/,""),i=e._.numberToFormat(Number(s[0]),n,r),i+"e"+s[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);function o(t,n,r,i){var o=e._.correctionFactor(t,n),s=t*o*(n*o)/(o*o);return s}return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],o,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i,o=e.locales[e.options.currentLocale],s=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),s+=o.ordinal(t),i=e._.numberToFormat(t,n,r),i+s}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,o=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?(i=i.split(""),i.splice(-1,0,o+"%"),i=i.join("")):i=i+o+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),o=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}})}(),e}))},"66c8":function(e,t,n){var r=n("d3f4");n("5eda")("isFrozen",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},"66f9":function(e,t,n){n("8a81"),n("8478"),n("1c01"),n("58b2"),n("9986"),n("e4f7"),n("456d"),n("25db"),n("0d6d"),n("cf6a"),n("9aea"),n("66c8"),n("57f0"),n("165b"),n("f751"),n("db97"),n("fd24"),n("06db"),n("d92a"),n("7f7f"),n("217b"),n("18d0"),n("b72c"),n("c5f6"),n("036c"),n("54a8"),n("2e37"),n("fca0"),n("7cdf"),n("ee1d"),n("b1b1"),n("87f3"),n("9278"),n("5df2"),n("04ff"),n("7f25"),n("536b"),n("d9ab"),n("f9ab"),n("32d7"),n("25c9"),n("9f3c"),n("042e"),n("c7c6"),n("f4ff"),n("7872"),n("049f"),n("a69f"),n("0b21"),n("6c1a"),n("c7c62"),n("84b4"),n("5695"),n("788d"),n("4f37"),n("5df3"),n("a032"),n("aef6"),n("2fdb"),n("14b9"),n("f559"),n("8449"),n("9c86"),n("fa83"),n("48c0"),n("d263"),n("6c37"),n("9ec8"),n("d0b0"),n("b54a"),n("f386"),n("1448"),n("673e"),n("242a"),n("78ce"),n("0298"),n("8ea5"),n("87b3"),n("c8ce"),n("2caf"),n("1c4c"),n("e804"),n("373f"),n("23bf"),n("55dd"),n("f3e2"),n("6d67"),n("d25f"),n("759f"),n("6095"),n("0cd8"),n("48f8"),n("57e7"),n("9865"),n("744f"),n("6c7b"),n("7514"),n("20d6"),n("d04f"),n("cadf"),n("3b2b"),n("b0c5"),n("6b54"),n("3846"),n("4917"),n("a481"),n("386d"),n("28a5"),n("551c"),n("f400"),n("4f7f"),n("10ad"),n("c02b"),n("c66f"),n("262f"),n("b05c"),n("34ef"),n("6aa2"),n("15ac"),n("af56"),n("b6e4"),n("9c29"),n("63d9"),n("4dda"),n("df1b"),n("2397"),n("88ca"),n("ba16"),n("7ff6"),n("d185"),n("ebde"),n("2d34"),n("f6b3"),n("2251"),n("c698"),n("a19f"),n("9253"),n("9275"),n("6762"),n("e956"),n("71f1"),n("3535"),n("f576"),n("ed50"),n("23be"),n("7c0e"),n("988d"),n("ac4d"),n("c7ca"),n("8e6e"),n("8615"),n("ffc1"),n("4504"),n("fee7"),n("b9a1"),n("64d5"),n("4704"),n("db9a"),n("729b"),n("99c5"),n("764f"),n("bdd1"),n("416c"),n("dd8a"),n("5d40"),n("5d90"),n("0c36"),n("a234"),n("4276"),n("09e0"),n("0c00"),n("2748"),n("1f91"),n("9c00"),n("2f78"),n("b4c2"),n("1f18"),n("692b"),n("c775"),n("8a5c"),n("ed7e"),n("097d"),n("a9cc"),n("e3d0"),n("ceaf"),n("e394"),n("b80b"),n("06a7"),n("7cdff"),n("896f"),n("ec39"),n("3a9c"),n("0d25"),n("37b5"),n("4795"),n("130f"),n("ac6a"),e.exports=n("8378")},6718:function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("b8e3"),s=n("ccb9"),a=n("d9f6").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},"673e":function(e,t,n){"use strict";n("386b")("sub",(function(e){return function(){return e(this,"sub","","")}}))},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"67ab":function(e,t,n){var r=n("ca5a")("meta"),i=n("d3f4"),o=n("69a8"),s=n("86cc").f,a=0,c=Object.isExtensible||function(){return!0},u=!n("79e5")((function(){return c(Object.preventExtensions({}))})),l=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},h=function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},d=function(e){return u&&p.NEED&&c(e)&&!o(e,r)&&l(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:h,onFreeze:d}},"67bb":function(e,t,n){e.exports=n("f921")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"692b":function(e,t,n){var r=n("5ca1"),i=Math.PI/180;r(r.S,"Math",{radians:function(e){return e*i}})},"696e":function(e,t,n){n("c207"),n("1654"),n("6c1c"),n("24c5"),n("3c11"),n("43fc"),e.exports=n("584a").Promise},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"69d3":function(e,t,n){n("6718")("asyncIterator")},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6aa2":function(e,t,n){n("ec30")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},"6abf":function(e,t,n){var r=n("e6f3"),i=n("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6b54":function(e,t,n){"use strict";n("3846");var r=n("cb7c"),i=n("0bfb"),o=n("9e1e"),s="toString",a=/./[s],c=function(e){n("2aba")(RegExp.prototype,s,e,!0)};n("79e5")((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?c((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)})):a.name!=s&&c((function(){return a.call(this)}))},"6bb5":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("061b"),i=n.n(r),o=n("4d16"),s=n.n(o);function a(e){return a=s.a?i.a:function(e){return e.__proto__||i()(e)},a(e)}},"6c1a":function(e,t,n){var r=n("5ca1"),i=n("2d5c"),o=Math.exp;r(r.S+r.F*n("79e5")((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},"6c1c":function(e,t,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),s=n("5168")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var u=a[c],l=r[u],f=l&&l.prototype;f&&!f[s]&&i(f,s,u),o[u]=o.Array}},"6c37":function(e,t,n){"use strict";n("386b")("fontcolor",(function(e){return function(t){return e(this,"font","color",t)}}))},"6c7b":function(e,t,n){var r=n("5ca1");r(r.P,"Array",{fill:n("36bd")}),n("9c6c")("fill")},"6d67":function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(1);r(r.P+r.F*!n("2f21")([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},"6dd8":function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),s=2;function a(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&u()}function c(){o(a)}function u(){var e=Date.now();if(n){if(e-i<s)return;r=!0}else n=!0,r=!1,setTimeout(c,t);i=e}return u}var c=20,u=["top","right","bottom","left","width","height","size","weight"],l="undefined"!==typeof MutationObserver,f=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=a(this.refresh.bind(this),c)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=u.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),h=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||i},p=_(0,0,0,0);function g(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var r=e["border-"+n+"-width"];return t+g(r)}),0)}function y(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],s=e["padding-"+o];n[o]=g(s)}return n}function m(e){var t=e.getBBox();return _(0,0,t.width,t.height)}function I(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=d(e).getComputedStyle(e),i=y(r),o=i.left+i.right,s=i.top+i.bottom,a=g(r.width),c=g(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==t&&(a-=v(r,"left","right")+o),Math.round(c+s)!==n&&(c-=v(r,"top","bottom")+s)),!C(e)){var u=Math.round(a+o)-t,l=Math.round(c+s)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(l)&&(c-=l)}return _(i.left,i.top,a,c)}var M=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"===typeof e.getBBox}}();function C(e){return e===d(e).document.documentElement}function T(e){return r?M(e)?m(e):I(e):p}function A(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(o.prototype);return h(s,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),s}function _(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=_(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=T(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),N=function(){function e(e,t){var n=A(t);h(this,{target:e,contentRect:n})}return e}(),E=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new N(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="undefined"!==typeof WeakMap?new WeakMap:new n,S=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new E(t,n,this);w.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){S.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}}));var O=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:S}();t["default"]=O}.call(this,n("c8ba"))},"6f71":function(e,t,n){"use strict";var r=/(\*|\?)/g;function i(e,t){this.text=e=e||"",this.hasWild=e.indexOf("*")>=0,this.separator=t,this.parts=e.split(t).map(this.classifyPart.bind(this))}i.prototype.match=function(e){var t,n,r=!0,i=this.parts,o=i.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<o;t++)"*"!==i[t]&&(r=t<n.length&&(i[t]instanceof RegExp?i[t].test(n[t]):i[t]===n[t]));r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var s in r={},e)this.match(s)&&(r[s]=e[s]);return r},i.prototype.classifyPart=function(e){return"*"===e?e:e.indexOf("*")>=0||e.indexOf("?")>=0?new RegExp(e.replace(r,".$1")):e},e.exports=function(e,t,n){var r=new i(e,n||/[\/\.]/);return"undefined"!=typeof t?r.match(t):r}},"71c1":function(e,t,n){var r=n("3a38"),i=n("25eb");e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),c=r(n),u=a.length;return c<0||c>=u?e?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):o:e?a.slice(c,c+2):s-56320+(o-55296<<10)+65536)}}},"71f1":function(e,t,n){"use strict";var r=n("5ca1"),i=n("c45f"),o=n("4bf8"),s=n("9def"),a=n("4588"),c=n("cd1c");r(r.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),n=s(t.length),r=c(t,0);return i(r,t,t,n,0,void 0===e?1:a(e)),r}}),n("9c6c")("flatten")},"729b":function(e,t,n){n("c6a1")("Map")},7333:function(e,t,n){"use strict";var r=n("9e1e"),i=n("0d58"),o=n("2621"),s=n("52a7"),a=n("4bf8"),c=n("626a"),u=Object.assign;e.exports=!u||n("79e5")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=a(e),u=arguments.length,l=1,f=o.f,h=s.f;while(u>l){var d,p=c(arguments[l++]),g=f?i(p).concat(f(p)):i(p),v=g.length,y=0;while(v>y)d=g[y++],r&&!h.call(p,d)||(n[d]=p[d])}return n}:u},"733c":function(e,t,n){var r=n("63b6"),i=n("a159"),o=n("79aa"),s=n("e4ae"),a=n("f772"),c=n("294c"),u=n("c189"),l=(n("e53d").Reflect||{}).construct,f=c((function(){function e(){}return!(l((function(){}),[],e)instanceof e)})),h=!c((function(){l((function(){}))}));r(r.S+r.F*(f||h),"Reflect",{construct:function(e,t){o(e),s(t);var n=arguments.length<3?e:o(arguments[2]);if(h&&!f)return l(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var c=n.prototype,d=i(a(c)?c:Object.prototype),p=Function.apply.call(e,d,t);return a(p)?p:d}})},"744f":function(e,t,n){var r=n("5ca1");r(r.P,"Array",{copyWithin:n("ba92")}),n("9c6c")("copyWithin")},7514:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),r(r.P+r.F*s,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},"759f":function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(3);r(r.P+r.F*!n("2f21")([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},"75fc":function(e,t,n){"use strict";var r=n("a745"),i=n.n(r),o=n("db2a");function s(e){if(i()(e))return Object(o["a"])(e)}var a=n("774e"),c=n.n(a),u=n("c8bb"),l=n.n(u),f=n("67bb"),h=n.n(f);function d(e){if("undefined"!==typeof h.a&&l()(Object(e)))return c()(e)}var p=n("e630");function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e){return s(e)||d(e)||Object(p["a"])(e)||g()}n.d(t,"a",(function(){return v}))},7618:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("5d58"),i=n.n(r),o=n("67bb"),s=n.n(o);function a(e){return a="function"===typeof s.a&&"symbol"===typeof i.a?function(e){return typeof e}:function(e){return e&&"function"===typeof s.a&&e.constructor===s.a&&e!==s.a.prototype?"symbol":typeof e},a(e)}},"764f":function(e,t,n){n("c6a1")("WeakMap")},"765d":function(e,t,n){n("6718")("observable")},7676:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return s},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.unique=t.mergeWithRules=t.mergeWithCustomize=t["default"]=t.merge=t.CustomizeRule=t.customizeObject=t.customizeArray=void 0;var a=s(n("6f71")),c=s(n("d540")),u=s(n("c4d8")),l=s(n("419e"));t.unique=l["default"];var f=n("8a52");t.CustomizeRule=f.CustomizeRule;var h=n("3b74");function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return p({}).apply(void 0,o([e],t))}function p(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(h.isUndefined(t)||n.some(h.isUndefined))throw new TypeError("Merging undefined is not supported");if(t.then)throw new TypeError("Promises are not supported");if(!t)return{};if(0===n.length){if(Array.isArray(t)){if(0===t.length)return{};if(t.some(h.isUndefined))throw new TypeError("Merging undefined is not supported");if(t[0].then)throw new TypeError("Promises are not supported");return c["default"](t,u["default"](e))}return t}return c["default"]([t].concat(n),u["default"](e))}}function g(e){return function(t,n,r){var i=Object.keys(e).find((function(e){return a["default"](e,r)}))||"";if(i)switch(e[i]){case f.CustomizeRule.Prepend:return o(n,t);case f.CustomizeRule.Replace:return n;case f.CustomizeRule.Append:default:return o(t,n)}}}function v(e){return p({customizeArray:function(t,n,r){var i=e;return r.split(".").forEach((function(e){i&&(i=i[e])})),h.isPlainObject(i)?m({currentRule:i,a:t,b:n}):"string"===typeof i?I({currentRule:i,a:t,b:n}):void 0}})}t.merge=d,t["default"]=d,t.mergeWithCustomize=p,t.customizeArray=g,t.mergeWithRules=v;var y=Array.isArray;function m(e){var t=e.currentRule,n=e.a,s=e.b;if(!y(n))return n;var a=[],c=n.map((function(e){if(!h.isPlainObject(t))return e;var n={},c=[],u={};Object.entries(t).forEach((function(e){var t=i(e,2),n=t[0],r=t[1];r===f.CustomizeRule.Match?c.push(n):u[n]=r}));var l=s.filter((function(t){var n=c.every((function(n){var r,i;return(null===(r=e[n])||void 0===r?void 0:r.toString())===(null===(i=t[n])||void 0===i?void 0:i.toString())}));return n&&a.push(t),n}));return Object.entries(e).forEach((function(e){var s=i(e,2),a=s[0],c=s[1],d=t;switch(t[a]){case f.CustomizeRule.Match:n[a]=c,Object.entries(d).forEach((function(e){var t=i(e,2),r=t[0],o=t[1];if(o===f.CustomizeRule.Replace&&l.length>0){var s=M(l)[r];"undefined"!==typeof s&&(n[r]=s)}}));break;case f.CustomizeRule.Append:var p=M(l)[a];if(!y(c)||!y(p))throw new TypeError("Trying to append non-arrays");n[a]=l.length>0?c.concat(p):c;break;case f.CustomizeRule.Merge:var g=M(l)[a];if(!h.isPlainObject(c)||!h.isPlainObject(g))throw new TypeError("Trying to merge non-objects");n[a]=r(r({},c),g);break;case f.CustomizeRule.Prepend:var v=M(l)[a];if(!y(c)||!y(v))throw new TypeError("Trying to prepend non-arrays");n[a]=l.length>0?v.concat(c):c;break;case f.CustomizeRule.Replace:n[a]=l.length>0?M(l)[a]:c;break;default:var I=u[a],C=l.map((function(e){return e[a]})).reduce((function(e,t){return y(e)&&y(t)?o(e,t):e}),[]);n[a]=m({currentRule:I,a:c,b:C});break}})),n}));return c.concat(s.filter((function(e){return!a.includes(e)})))}function I(e){var t=e.currentRule,n=e.a,r=e.b;switch(t){case f.CustomizeRule.Append:return n.concat(r);case f.CustomizeRule.Prepend:return r.concat(n);case f.CustomizeRule.Replace:return r}return n}function M(e){return e[e.length-1]}function C(e){return function(t,n,r){switch(e[r]){case f.CustomizeRule.Prepend:return c["default"]([n,t],u["default"]());case f.CustomizeRule.Replace:return n;case f.CustomizeRule.Append:return c["default"]([t,n],u["default"]())}}}t.customizeObject=C},"768b":function(e,t,n){"use strict";var r=n("a745"),i=n.n(r);function o(e){if(i()(e))return e}var s=n("5d73"),a=n.n(s),c=n("c8bb"),u=n.n(c),l=n("67bb"),f=n.n(l);function h(e,t){if("undefined"!==typeof f.a&&u()(Object(e))){var n=[],r=!0,i=!1,o=void 0;try{for(var s,c=a()(e);!(r=(s=c.next()).done);r=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{r||null==c["return"]||c["return"]()}finally{if(i)throw o}}return n}}var d=n("e630");function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){return o(e)||h(e,t)||Object(d["a"])(e,t)||p()}n.d(t,"a",(function(){return g}))},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},7744:function(e,t,n){"use strict";var r=n("c31d"),i=n("2638"),o=n.n(i),s=n("d282"),a=n("a142"),c=n("ba31"),u=n("48f4"),l=n("dfaf"),f=n("ad06"),h=Object(s["a"])("cell"),d=h[0],p=h[1];function g(e,t,n,r){var i,s=t.icon,l=t.size,h=t.title,d=t.label,g=t.value,v=t.isLink,y=n.title||Object(a["c"])(h);function m(){var r=n.label||Object(a["c"])(d);if(r)return e("div",{class:[p("label"),t.labelClass]},[n.label?n.label():d])}function I(){if(y)return e("div",{class:[p("title"),t.titleClass],style:t.titleStyle},[n.title?n.title():e("span",[h]),m()])}function M(){var r=n.default||Object(a["c"])(g);if(r)return e("div",{class:[p("value",{alone:!y}),t.valueClass]},[n.default?n.default():e("span",[g])])}function C(){return n.icon?n.icon():s?e(f["a"],{class:p("left-icon"),attrs:{name:s,classPrefix:t.iconPrefix}}):void 0}function T(){var r=n["right-icon"];if(r)return r();if(v){var i=t.arrowDirection;return e(f["a"],{class:p("right-icon"),attrs:{name:i?"arrow-"+i:"arrow"}})}}function A(e){Object(c["a"])(r,"click",e),Object(u["a"])(r)}var _=null!=(i=t.clickable)?i:v,b={clickable:_,center:t.center,required:t.required,borderless:!t.border};return l&&(b[l]=l),e("div",o()([{class:p(b),attrs:{role:_?"button":null,tabindex:_?0:null},on:{click:A}},Object(c["b"])(r)]),[C(),I(),M(),T(),null==n.extra?void 0:n.extra()])}g.props=Object(r["a"])({},l["a"],u["c"]),t["a"]=d(g)},"774e":function(e,t,n){e.exports=n("d2d5")},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},7872:function(e,t,n){var r=n("5ca1");r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},"788d":function(e,t,n){var r=n("5ca1"),i=n("6821"),o=n("9def");r(r.S,"String",{raw:function(e){var t=i(e.raw),n=o(t.length),r=arguments.length,s=[],a=0;while(n>a)s.push(String(t[a++])),a<r&&s.push(String(arguments[a]));return s.join("")}})},"78ce":function(e,t,n){var r=n("5ca1");r(r.S,"Date",{now:function(){return(new Date).getTime()}})},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"795b":function(e,t,n){e.exports=n("696e")},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7a56":function(e,t,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),s=n("2b4c")("species");e.exports=function(e){var t=r[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},"7a77":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b23":function(e,t,n){var r=n("d8e8"),i=n("4bf8"),o=n("626a"),s=n("9def");e.exports=function(e,t,n,a,c){r(t);var u=i(e),l=o(u),f=s(u.length),h=c?f-1:0,d=c?-1:1;if(n<2)for(;;){if(h in l){a=l[h],h+=d;break}if(h+=d,c?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;c?h>=0:f>h;h+=d)h in l&&(a=t(a,l[h],h,u));return a}},"7b3e":function(e,t,n){"use strict";var r,i=n("a3de");
- /**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */
- function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var s=document.createElement("div");s.setAttribute(n,"return;"),o="function"===typeof s[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=o},"7bbc":function(e,t,n){var r=n("6821"),i=n("9093").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return i(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?a(e):i(r(e))}},"7c0e":function(e,t,n){"use strict";n("aa77")("trimRight",(function(e){return function(){return e(this,2)}}),"trimEnd")},"7cd6":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");e.exports=n("584a").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},"7cdf":function(e,t,n){var r=n("5ca1");r(r.S,"Number",{isInteger:n("9c12")})},"7cdff":function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=r.keys,s=r.key;r.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:s(arguments[1]))}})},"7d7b":function(e,t,n){var r=n("e4ae"),i=n("7cd6");e.exports=n("584a").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},"7e90":function(e,t,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){i(e);var n,s=o(t),a=s.length,c=0;while(a>c)r.f(e,n=s[c++],t[n]);return e}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},"7f25":function(e,t,n){var r=n("5ca1"),i=n("d6c6"),o=Math.sqrt,s=Math.acosh;r(r.S+r.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},"7f7f":function(e,t,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,s="name";s in i||n("9e1e")&&r(i,s,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},"7ff6":function(e,t,n){"use strict";var r=n("5ca1"),i=n("cb7c"),o=function(e){this._t=i(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n("41a0")(o,"Object",(function(){var e,t=this,n=t._k;do{if(t._i>=n.length)return{value:void 0,done:!0}}while(!((e=n[t._i++])in t._t));return{value:e,done:!1}})),r(r.S,"Reflect",{enumerate:function(e){return new o(e)}})},8079:function(e,t,n){var r=n("7726"),i=n("1991").set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==n("2d95")(s);e.exports=function(){var e,t,n,u=function(){var r,i;c&&(r=s.domain)&&r.exit();while(e){i=e.fn,e=e.next;try{i()}catch(o){throw e?n():t=void 0,o}}t=void 0,r&&r.enter()};if(c)n=function(){s.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);n=function(){l.then(u)}}else n=function(){i.call(r,u)};else{var f=!0,h=document.createTextNode("");new o(u).observe(h,{characterData:!0}),n=function(){h.data=f=!f}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},8096:function(e,t,n){},8378:function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},8381:function(e,t,n){"use strict";var r=n("cb7c"),i=n("6a99"),o="number";e.exports=function(e){if("string"!==e&&e!==o&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),e!=o)}},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},8436:function(e,t){e.exports=function(){}},8449:function(e,t,n){"use strict";n("386b")("anchor",(function(e){return function(t){return e(this,"a","name",t)}}))},8478:function(e,t,n){var r=n("5ca1");r(r.S,"Object",{create:n("2aeb")})},"84b4":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},"84f2":function(e,t){e.exports={}},8580:function(e,t,n){n("ee6d"),e.exports=n("584a").Object.getOwnPropertyDescriptors},"85f2":function(e,t,n){e.exports=n("454f")},8615:function(e,t,n){var r=n("5ca1"),i=n("504c")(!1);r(r.S,"Object",{values:function(e){return i(e)}})},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),s=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"87b3":function(e,t,n){var r=Date.prototype,i="Invalid Date",o="toString",s=r[o],a=r.getTime;new Date(NaN)+""!=i&&n("2aba")(r,o,(function(){var e=a.call(this);return e===e?s.call(this):i}))},"87f3":function(e,t,n){var r=n("5ca1");r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},"88ca":function(e,t,n){var r=n("86cc"),i=n("5ca1"),o=n("cb7c"),s=n("6a99");i(i.S+i.F*n("79e5")((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(e,t,n){o(e),t=s(t,!0),o(n);try{return r.f(e,t,n),!0}catch(i){return!1}}})},"896f":function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=n("38fd"),s=r.has,a=r.key,c=function(e,t,n){var r=s(e,t,n);if(r)return!0;var i=o(t);return null!==i&&c(e,i,n)};r.exp({hasMetadata:function(e,t){return c(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},"8a52":function(e,t,n){"use strict";t.__esModule=!0,t.CustomizeRule=void 0,function(e){e["Match"]="match",e["Merge"]="merge",e["Append"]="append",e["Prepend"]="prepend",e["Replace"]="replace"}(t.CustomizeRule||(t.CustomizeRule={}))},"8a5c":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{umulh:function(e,t){var n=65535,r=+e,i=+t,o=r&n,s=i&n,a=r>>>16,c=i>>>16,u=(a*s>>>0)+(o*s>>>16);return a*c+(u>>>16)+((o*c>>>0)+(u&n)>>>16)}})},"8a81":function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("9e1e"),s=n("5ca1"),a=n("2aba"),c=n("67ab").KEY,u=n("79e5"),l=n("5537"),f=n("7f20"),h=n("ca5a"),d=n("2b4c"),p=n("37c8"),g=n("3a72"),v=n("d4c0"),y=n("1169"),m=n("cb7c"),I=n("d3f4"),M=n("4bf8"),C=n("6821"),T=n("6a99"),A=n("4630"),_=n("2aeb"),b=n("7bbc"),N=n("11e9"),E=n("2621"),w=n("86cc"),S=n("0d58"),O=N.f,D=w.f,L=b.f,R=r.Symbol,j=r.JSON,x=j&&j.stringify,k="prototype",U=d("_hidden"),P=d("toPrimitive"),z={}.propertyIsEnumerable,G=l("symbol-registry"),B=l("symbols"),Y=l("op-symbols"),H=Object[k],$="function"==typeof R&&!!E.f,F=r.QObject,Q=!F||!F[k]||!F[k].findChild,V=o&&u((function(){return 7!=_(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=O(H,t);r&&delete H[t],D(e,t,n),r&&e!==H&&D(H,t,r)}:D,Z=function(e){var t=B[e]=_(R[k]);return t._k=e,t},W=$&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},K=function(e,t,n){return e===H&&K(Y,t,n),m(e),t=T(t,!0),m(n),i(B,t)?(n.enumerable?(i(e,U)&&e[U][t]&&(e[U][t]=!1),n=_(n,{enumerable:A(0,!1)})):(i(e,U)||D(e,U,A(1,{})),e[U][t]=!0),V(e,t,n)):D(e,t,n)},q=function(e,t){m(e);var n,r=v(t=C(t)),i=0,o=r.length;while(o>i)K(e,n=r[i++],t[n]);return e},J=function(e,t){return void 0===t?_(e):q(_(e),t)},X=function(e){var t=z.call(this,e=T(e,!0));return!(this===H&&i(B,e)&&!i(Y,e))&&(!(t||!i(this,e)||!i(B,e)||i(this,U)&&this[U][e])||t)},ee=function(e,t){if(e=C(e),t=T(t,!0),e!==H||!i(B,t)||i(Y,t)){var n=O(e,t);return!n||!i(B,t)||i(e,U)&&e[U][t]||(n.enumerable=!0),n}},te=function(e){var t,n=L(C(e)),r=[],o=0;while(n.length>o)i(B,t=n[o++])||t==U||t==c||r.push(t);return r},ne=function(e){var t,n=e===H,r=L(n?Y:C(e)),o=[],s=0;while(r.length>s)!i(B,t=r[s++])||n&&!i(H,t)||o.push(B[t]);return o};$||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(Y,n),i(this,U)&&i(this[U],e)&&(this[U][e]=!1),V(this,e,A(1,n))};return o&&Q&&V(H,e,{configurable:!0,set:t}),Z(e)},a(R[k],"toString",(function(){return this._k})),N.f=ee,w.f=K,n("9093").f=b.f=te,n("52a7").f=X,E.f=ne,o&&!n("2d00")&&a(H,"propertyIsEnumerable",X,!0),p.f=function(e){return Z(d(e))}),s(s.G+s.W+s.F*!$,{Symbol:R});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)d(re[ie++]);for(var oe=S(d.store),se=0;oe.length>se;)g(oe[se++]);s(s.S+s.F*!$,"Symbol",{for:function(e){return i(G,e+="")?G[e]:G[e]=R(e)},keyFor:function(e){if(!W(e))throw TypeError(e+" is not a symbol!");for(var t in G)if(G[t]===e)return t},useSetter:function(){Q=!0},useSimple:function(){Q=!1}}),s(s.S+s.F*!$,"Object",{create:J,defineProperty:K,defineProperties:q,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var ae=u((function(){E.f(1)}));s(s.S+s.F*ae,"Object",{getOwnPropertySymbols:function(e){return E.f(M(e))}}),j&&s(s.S+s.F*(!$||u((function(){var e=R();return"[null]"!=x([e])||"{}"!=x({a:e})||"{}"!=x(Object(e))}))),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[1],(I(t)||void 0!==e)&&!W(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!W(t))return t}),r[1]=t,x.apply(j,r)}}),R[k][P]||n("32e9")(R[k],P,R[k].valueOf),f(R,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},"8aae":function(e,t,n){n("32a6"),e.exports=n("584a").Object.keys},"8b97":function(e,t,n){var r=n("d3f4"),i=n("cb7c"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},"8c4f":function(e,t,n){"use strict";
- /*!
- * vue-router v3.0.6
- * (c) 2019 Evan You
- * @license MIT
- */function r(e,t){0}function i(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function o(e,t){for(var n in t)e[n]=t[n];return e}var s={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,i=t.parent,s=t.data;s.routerView=!0;var c=i.$createElement,u=n.name,l=i.$route,f=i._routerViewCache||(i._routerViewCache={}),h=0,d=!1;while(i&&i._routerRoot!==i){var p=i.$vnode&&i.$vnode.data;p&&(p.routerView&&h++,p.keepAlive&&i._inactive&&(d=!0)),i=i.$parent}if(s.routerViewDepth=h,d)return c(f[u],s,r);var g=l.matched[h];if(!g)return f[u]=null,c();var v=f[u]=g.components[u];s.registerRouteInstance=function(e,t){var n=g.instances[u];(t&&n!==e||!t&&n===e)&&(g.instances[u]=t)},(s.hook||(s.hook={})).prepatch=function(e,t){g.instances[u]=t.componentInstance},s.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==g.instances[u]&&(g.instances[u]=e.componentInstance)};var y=s.props=a(l,g.props&&g.props[u]);if(y){y=s.props=o({},y);var m=s.attrs=s.attrs||{};for(var I in y)v.props&&I in v.props||(m[I]=y[I],delete y[I])}return c(v,s,r)}};function a(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}var c=/[!'()*]/g,u=function(e){return"%"+e.charCodeAt(0).toString(16)},l=/%2C/g,f=function(e){return encodeURIComponent(e).replace(c,u).replace(l,",")},h=decodeURIComponent;function d(e,t,n){void 0===t&&(t={});var r,i=n||p;try{r=i(e||"")}catch(s){r={}}for(var o in t)r[o]=t[o];return r}function p(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=h(n.shift()),i=n.length>0?h(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t}function g(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return f(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(f(t)):r.push(f(t)+"="+f(e)))})),r.join("&")}return f(t)+"="+f(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var v=/\/?$/;function y(e,t,n,r){var i=r&&r.options.stringifyQuery,o=t.query||{};try{o=m(o)}catch(a){}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:C(t,i),matched:e?M(e):[]};return n&&(s.redirectedFrom=C(n,i)),Object.freeze(s)}function m(e){if(Array.isArray(e))return e.map(m);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=m(e[n]);return t}return e}var I=y(null,{path:"/"});function M(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function C(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var i=e.hash;void 0===i&&(i="");var o=t||g;return(n||"/")+o(r)+i}function T(e,t){return t===I?e===t:!!t&&(e.path&&t.path?e.path.replace(v,"")===t.path.replace(v,"")&&e.hash===t.hash&&A(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&A(e.query,t.query)&&A(e.params,t.params)))}function A(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){var r=e[n],i=t[n];return"object"===typeof r&&"object"===typeof i?A(r,i):String(r)===String(i)}))}function _(e,t){return 0===e.path.replace(v,"/").indexOf(t.path.replace(v,"/"))&&(!t.hash||e.hash===t.hash)&&b(e.query,t.query)}function b(e,t){for(var n in t)if(!(n in e))return!1;return!0}var N,E=[String,Object],w=[String,Array],S={name:"RouterLink",props:{to:{type:E,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:w,default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),s=i.location,a=i.route,c=i.href,u={},l=n.options.linkActiveClass,f=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,d=null==f?"router-link-exact-active":f,p=null==this.activeClass?h:this.activeClass,g=null==this.exactActiveClass?d:this.exactActiveClass,v=s.path?y(null,s,null,n):a;u[g]=T(r,v),u[p]=this.exact?u[g]:_(r,v);var m=function(e){O(e)&&(t.replace?n.replace(s):n.push(s))},I={click:O};Array.isArray(this.event)?this.event.forEach((function(e){I[e]=m})):I[this.event]=m;var M={class:u};if("a"===this.tag)M.on=I,M.attrs={href:c};else{var C=D(this.$slots.default);if(C){C.isStatic=!1;var A=C.data=o({},C.data);A.on=I;var b=C.data.attrs=o({},C.data.attrs);b.href=c}else M.on=I}return e(this.tag,M,this.$slots.default)}};function O(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function D(e){if(e)for(var t,n=0;n<e.length;n++){if(t=e[n],"a"===t.tag)return t;if(t.children&&(t=D(t.children)))return t}}function L(e){if(!L.installed||N!==e){L.installed=!0,N=e;var t=function(e){return void 0!==e},n=function(e,n){var r=e.$options._parentVnode;t(r)&&t(r=r.data)&&t(r=r.registerRouteInstance)&&r(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",s),e.component("RouterLink",S);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var R="undefined"!==typeof window;function j(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var i=t.split("/");n&&i[i.length-1]||i.pop();for(var o=e.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?i.pop():"."!==a&&i.push(a)}return""!==i[0]&&i.unshift(""),i.join("/")}function x(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function k(e){return e.replace(/\/\//g,"/")}var U=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},P=re,z=$,G=F,B=Z,Y=ne,H=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(e,t){var n,r=[],i=0,o=0,s="",a=t&&t.delimiter||"/";while(null!=(n=H.exec(e))){var c=n[0],u=n[1],l=n.index;if(s+=e.slice(o,l),o=l+c.length,u)s+=u[1];else{var f=e[o],h=n[2],d=n[3],p=n[4],g=n[5],v=n[6],y=n[7];s&&(r.push(s),s="");var m=null!=h&&null!=f&&f!==h,I="+"===v||"*"===v,M="?"===v||"*"===v,C=n[2]||a,T=p||g;r.push({name:d||i++,prefix:h||"",delimiter:C,optional:M,repeat:I,partial:m,asterisk:!!y,pattern:T?K(T):y?".*":"[^"+W(C)+"]+?"})}}return o<e.length&&(s+=e.substr(o)),s&&r.push(s),r}function F(e,t){return Z($(e,t))}function Q(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function V(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function Z(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"===typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,r){for(var i="",o=n||{},s=r||{},a=s.pretty?Q:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var l,f=o[u.name];if(null==f){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(U(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<f.length;h++){if(l=a(f[h]),!t[c].test(l))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?u.prefix:u.delimiter)+l}}else{if(l=u.asterisk?V(f):a(f),!t[c].test(l))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+l+'"');i+=u.prefix+l}}else i+=u}return i}}function W(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function K(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function q(e,t){return e.keys=t,e}function J(e){return e.sensitive?"":"i"}function X(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return q(e,t)}function ee(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(re(e[i],t,n).source);var o=new RegExp("(?:"+r.join("|")+")",J(n));return q(o,t)}function te(e,t,n){return ne($(e,n),t,n)}function ne(e,t,n){U(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,i=!1!==n.end,o="",s=0;s<e.length;s++){var a=e[s];if("string"===typeof a)o+=W(a);else{var c=W(a.prefix),u="(?:"+a.pattern+")";t.push(a),a.repeat&&(u+="(?:"+c+u+")*"),u=a.optional?a.partial?c+"("+u+")?":"(?:"+c+"("+u+"))?":c+"("+u+")",o+=u}}var l=W(n.delimiter||"/"),f=o.slice(-l.length)===l;return r||(o=(f?o.slice(0,-l.length):o)+"(?:"+l+"(?=$))?"),o+=i?"$":r&&f?"":"(?="+l+"|$)",q(new RegExp("^"+o,J(n)),t)}function re(e,t,n){return U(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?X(e,t):U(e)?ee(e,t,n):te(e,t,n)}P.parse=z,P.compile=G,P.tokensToFunction=B,P.tokensToRegExp=Y;var ie=Object.create(null);function oe(e,t,n){t=t||{};try{var r=ie[e]||(ie[e]=P.compile(e));return t.pathMatch&&(t[0]=t.pathMatch),r(t,{pretty:!0})}catch(i){return""}finally{delete t[0]}}function se(e,t,n,r){var i=t||[],o=n||Object.create(null),s=r||Object.create(null);e.forEach((function(e){ae(i,o,s,e)}));for(var a=0,c=i.length;a<c;a++)"*"===i[a]&&(i.push(i.splice(a,1)[0]),c--,a--);return{pathList:i,pathMap:o,nameMap:s}}function ae(e,t,n,r,i,o){var s=r.path,a=r.name;var c=r.pathToRegexpOptions||{},u=ue(s,i,c.strict);"boolean"===typeof r.caseSensitive&&(c.sensitive=r.caseSensitive);var l={path:u,regex:ce(u,c),components:r.components||{default:r.component},instances:{},name:a,parent:i,matchAs:o,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach((function(r){var i=o?k(o+"/"+r.path):void 0;ae(e,t,n,r,l,i)})),void 0!==r.alias){var f=Array.isArray(r.alias)?r.alias:[r.alias];f.forEach((function(o){var s={path:o,children:r.children};ae(e,t,n,s,i,l.path||"/")}))}t[l.path]||(e.push(l.path),t[l.path]=l),a&&(n[a]||(n[a]=l))}function ce(e,t){var n=P(e,[],t);return n}function ue(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:k(t.path+"/"+e)}function le(e,t,n,r){var i="string"===typeof e?{path:e}:e;if(i._normalized)return i;if(i.name)return o({},e);if(!i.path&&i.params&&t){i=o({},i),i._normalized=!0;var s=o(o({},t.params),i.params);if(t.name)i.name=t.name,i.params=s;else if(t.matched.length){var a=t.matched[t.matched.length-1].path;i.path=oe(a,s,"path "+t.path)}else 0;return i}var c=x(i.path||""),u=t&&t.path||"/",l=c.path?j(c.path,u,n||i.append):u,f=d(c.query,i.query,r&&r.options.parseQuery),h=i.hash||c.hash;return h&&"#"!==h.charAt(0)&&(h="#"+h),{_normalized:!0,path:l,query:f,hash:h}}function fe(e,t){var n=se(e),r=n.pathList,i=n.pathMap,o=n.nameMap;function s(e){se(e,r,i,o)}function a(e,n,s){var a=le(e,n,!1,t),c=a.name;if(c){var u=o[c];if(!u)return l(null,a);var f=u.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof a.params&&(a.params={}),n&&"object"===typeof n.params)for(var h in n.params)!(h in a.params)&&f.indexOf(h)>-1&&(a.params[h]=n.params[h]);if(u)return a.path=oe(u.path,a.params,'named route "'+c+'"'),l(u,a,s)}else if(a.path){a.params={};for(var d=0;d<r.length;d++){var p=r[d],g=i[p];if(he(g.regex,a.path,a.params))return l(g,a,s)}}return l(null,a)}function c(e,n){var r=e.redirect,i="function"===typeof r?r(y(e,n,null,t)):r;if("string"===typeof i&&(i={path:i}),!i||"object"!==typeof i)return l(null,n);var s=i,c=s.name,u=s.path,f=n.query,h=n.hash,d=n.params;if(f=s.hasOwnProperty("query")?s.query:f,h=s.hasOwnProperty("hash")?s.hash:h,d=s.hasOwnProperty("params")?s.params:d,c){o[c];return a({_normalized:!0,name:c,query:f,hash:h,params:d},void 0,n)}if(u){var p=de(u,e),g=oe(p,d,'redirect route with path "'+p+'"');return a({_normalized:!0,path:g,query:f,hash:h},void 0,n)}return l(null,n)}function u(e,t,n){var r=oe(n,t.params,'aliased route with path "'+n+'"'),i=a({_normalized:!0,path:r});if(i){var o=i.matched,s=o[o.length-1];return t.params=i.params,l(s,t)}return l(null,t)}function l(e,n,r){return e&&e.redirect?c(e,r||n):e&&e.matchAs?u(e,n,e.matchAs):y(e,n,r,t)}return{match:a,addRoutes:s}}function he(e,t,n){var r=t.match(e);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var s=e.keys[i-1],a="string"===typeof r[i]?decodeURIComponent(r[i]):r[i];s&&(n[s.name||"pathMatch"]=a)}return!0}function de(e,t){return j(e,t.parent?t.parent.path:"/",!0)}var pe=Object.create(null);function ge(){window.history.replaceState({key:Se()},"",window.location.href.replace(window.location.origin,"")),window.addEventListener("popstate",(function(e){ye(),e.state&&e.state.key&&Oe(e.state.key)}))}function ve(e,t,n,r){if(e.app){var i=e.options.scrollBehavior;i&&e.app.$nextTick((function(){var o=me(),s=i.call(e,t,n,r?o:null);s&&("function"===typeof s.then?s.then((function(e){_e(e,o)})).catch((function(e){0})):_e(s,o))}))}}function ye(){var e=Se();e&&(pe[e]={x:window.pageXOffset,y:window.pageYOffset})}function me(){var e=Se();if(e)return pe[e]}function Ie(e,t){var n=document.documentElement,r=n.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-r.left-t.x,y:i.top-r.top-t.y}}function Me(e){return Ae(e.x)||Ae(e.y)}function Ce(e){return{x:Ae(e.x)?e.x:window.pageXOffset,y:Ae(e.y)?e.y:window.pageYOffset}}function Te(e){return{x:Ae(e.x)?e.x:0,y:Ae(e.y)?e.y:0}}function Ae(e){return"number"===typeof e}function _e(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var r=document.querySelector(e.selector);if(r){var i=e.offset&&"object"===typeof e.offset?e.offset:{};i=Te(i),t=Ie(r,i)}else Me(e)&&(t=Ce(e))}else n&&Me(e)&&(t=Ce(e));t&&window.scrollTo(t.x,t.y)}var be=R&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),Ne=R&&window.performance&&window.performance.now?window.performance:Date,Ee=we();function we(){return Ne.now().toFixed(3)}function Se(){return Ee}function Oe(e){Ee=e}function De(e,t){ye();var n=window.history;try{t?n.replaceState({key:Ee},"",e):(Ee=we(),n.pushState({key:Ee},"",e))}catch(r){window.location[t?"replace":"assign"](e)}}function Le(e){De(e,!0)}function Re(e,t,n){var r=function(i){i>=e.length?n():e[i]?t(e[i],(function(){r(i+1)})):r(i+1)};r(0)}function je(e){return function(t,n,r){var o=!1,s=0,a=null;xe(e,(function(e,t,n,c){if("function"===typeof e&&void 0===e.cid){o=!0,s++;var u,l=ze((function(t){Pe(t)&&(t=t.default),e.resolved="function"===typeof t?t:N.extend(t),n.components[c]=t,s--,s<=0&&r()})),f=ze((function(e){var t="Failed to resolve async component "+c+": "+e;a||(a=i(e)?e:new Error(t),r(a))}));try{u=e(l,f)}catch(d){f(d)}if(u)if("function"===typeof u.then)u.then(l,f);else{var h=u.component;h&&"function"===typeof h.then&&h.then(l,f)}}})),o||r()}}function xe(e,t){return ke(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function ke(e){return Array.prototype.concat.apply([],e)}var Ue="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Pe(e){return e.__esModule||Ue&&"Module"===e[Symbol.toStringTag]}function ze(e){var t=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var Ge=function(e,t){this.router=e,this.base=Be(t),this.current=I,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Be(e){if(!e)if(R){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function Ye(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n<r;n++)if(e[n]!==t[n])break;return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function He(e,t,n,r){var i=xe(e,(function(e,r,i,o){var s=$e(e,t);if(s)return Array.isArray(s)?s.map((function(e){return n(e,r,i,o)})):n(s,r,i,o)}));return ke(r?i.reverse():i)}function $e(e,t){return"function"!==typeof e&&(e=N.extend(e)),e.options[t]}function Fe(e){return He(e,"beforeRouteLeave",Ve,!0)}function Qe(e){return He(e,"beforeRouteUpdate",Ve)}function Ve(e,t){if(t)return function(){return e.apply(t,arguments)}}function Ze(e,t,n){return He(e,"beforeRouteEnter",(function(e,r,i,o){return We(e,i,o,t,n)}))}function We(e,t,n,r,i){return function(o,s,a){return e(o,s,(function(e){a(e),"function"===typeof e&&r.push((function(){Ke(e,t.instances,n,i)}))}))}}function Ke(e,t,n,r){t[n]&&!t[n]._isBeingDestroyed?e(t[n]):r()&&setTimeout((function(){Ke(e,t,n,r)}),16)}Ge.prototype.listen=function(e){this.cb=e},Ge.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Ge.prototype.onError=function(e){this.errorCbs.push(e)},Ge.prototype.transitionTo=function(e,t,n){var r=this,i=this.router.match(e,this.current);this.confirmTransition(i,(function(){r.updateRoute(i),t&&t(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(i)})))}),(function(e){n&&n(e),e&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)})))}))},Ge.prototype.confirmTransition=function(e,t,n){var o=this,s=this.current,a=function(e){i(e)&&(o.errorCbs.length?o.errorCbs.forEach((function(t){t(e)})):(r(!1,"uncaught error during route navigation:"),console.error(e))),n&&n(e)};if(T(e,s)&&e.matched.length===s.matched.length)return this.ensureURL(),a();var c=Ye(this.current.matched,e.matched),u=c.updated,l=c.deactivated,f=c.activated,h=[].concat(Fe(l),this.router.beforeHooks,Qe(u),f.map((function(e){return e.beforeEnter})),je(f));this.pending=e;var d=function(t,n){if(o.pending!==e)return a();try{t(e,s,(function(e){!1===e||i(e)?(o.ensureURL(!0),a(e)):"string"===typeof e||"object"===typeof e&&("string"===typeof e.path||"string"===typeof e.name)?(a(),"object"===typeof e&&e.replace?o.replace(e):o.push(e)):n(e)}))}catch(r){a(r)}};Re(h,d,(function(){var n=[],r=function(){return o.current===e},i=Ze(f,n,r),s=i.concat(o.router.resolveHooks);Re(s,d,(function(){if(o.pending!==e)return a();o.pending=null,t(e),o.router.app&&o.router.app.$nextTick((function(){n.forEach((function(e){e()}))}))}))}))},Ge.prototype.updateRoute=function(e){var t=this.current;this.current=e,this.cb&&this.cb(e),this.router.afterHooks.forEach((function(n){n&&n(e,t)}))};var qe=function(e){function t(t,n){var r=this;e.call(this,t,n);var i=t.options.scrollBehavior,o=be&&i;o&&ge();var s=Je(this.base);window.addEventListener("popstate",(function(e){var n=r.current,i=Je(r.base);r.current===I&&i===s||r.transitionTo(i,(function(e){o&&ve(t,e,n,!0)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){De(k(r.base+e.fullPath)),ve(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){Le(k(r.base+e.fullPath)),ve(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(Je(this.base)!==this.current.fullPath){var t=k(this.base+this.current.fullPath);e?De(t):Le(t)}},t.prototype.getCurrentLocation=function(){return Je(this.base)},t}(Ge);function Je(e){var t=decodeURI(window.location.pathname);return e&&0===t.indexOf(e)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Xe=function(e){function t(t,n,r){e.call(this,t,n),r&&et(this.base)||tt()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this,t=this.router,n=t.options.scrollBehavior,r=be&&n;r&&ge(),window.addEventListener(be?"popstate":"hashchange",(function(){var t=e.current;tt()&&e.transitionTo(nt(),(function(n){r&&ve(e.router,n,t,!0),be||ot(n.fullPath)}))}))},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){it(e.fullPath),ve(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){ot(e.fullPath),ve(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;nt()!==t&&(e?it(t):ot(t))},t.prototype.getCurrentLocation=function(){return nt()},t}(Ge);function et(e){var t=Je(e);if(!/^\/#/.test(t))return window.location.replace(k(e+"/#"+t)),!0}function tt(){var e=nt();return"/"===e.charAt(0)||(ot("/"+e),!1)}function nt(){var e=window.location.href,t=e.indexOf("#");if(t<0)return"";e=e.slice(t+1);var n=e.indexOf("?");if(n<0){var r=e.indexOf("#");e=r>-1?decodeURI(e.slice(0,r))+e.slice(r):decodeURI(e)}else n>-1&&(e=decodeURI(e.slice(0,n))+e.slice(n));return e}function rt(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;return r+"#"+e}function it(e){be?De(rt(e)):window.location.hash=e}function ot(e){be?Le(rt(e)):window.location.replace(rt(e))}var st=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){t.index=n,t.updateRoute(r)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Ge),at=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=fe(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!be&&!1!==e.fallback,this.fallback&&(t="hash"),R||(t="abstract"),this.mode=t,t){case"history":this.history=new qe(this,e.base);break;case"hash":this.history=new Xe(this,e.base,this.fallback);break;case"abstract":this.history=new st(this,e.base);break;default:0}},ct={currentRoute:{configurable:!0}};function ut(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function lt(e,t,n){var r="hash"===n?"#"+t:t;return e?k(e+"/"+r):r}at.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},ct.currentRoute.get=function(){return this.history&&this.history.current},at.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null)})),!this.app){this.app=e;var n=this.history;if(n instanceof qe)n.transitionTo(n.getCurrentLocation());else if(n instanceof Xe){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},at.prototype.beforeEach=function(e){return ut(this.beforeHooks,e)},at.prototype.beforeResolve=function(e){return ut(this.resolveHooks,e)},at.prototype.afterEach=function(e){return ut(this.afterHooks,e)},at.prototype.onReady=function(e,t){this.history.onReady(e,t)},at.prototype.onError=function(e){this.history.onError(e)},at.prototype.push=function(e,t,n){this.history.push(e,t,n)},at.prototype.replace=function(e,t,n){this.history.replace(e,t,n)},at.prototype.go=function(e){this.history.go(e)},at.prototype.back=function(){this.go(-1)},at.prototype.forward=function(){this.go(1)},at.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},at.prototype.resolve=function(e,t,n){t=t||this.history.current;var r=le(e,t,n,this),i=this.match(r,t),o=i.redirectedFrom||i.fullPath,s=this.history.base,a=lt(s,o,this.mode);return{location:r,route:i,href:a,normalizedTo:r,resolved:i}},at.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==I&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(at.prototype,ct),at.install=L,at.version="3.0.6",R&&window.Vue&&window.Vue.use(at),t["a"]=at},"8df4":function(e,t,n){"use strict";var r=n("7a77");function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e,t=new i((function(t){e=t}));return{token:t,cancel:e}},e.exports=i},"8e60":function(e,t,n){e.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8e6e":function(e,t,n){var r=n("5ca1"),i=n("990b"),o=n("6821"),s=n("11e9"),a=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,r=o(e),c=s.f,u=i(r),l={},f=0;while(u.length>f)n=c(r,t=u[f++]),void 0!==n&&a(l,t,n);return l}})},"8ea5":function(e,t,n){var r=n("5ca1"),i=n("8ed0");r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},"8eb7":function(e,t){var n,r,i,o,s,a,c,u,l,f,h,d,p,g,v,y=!1;function m(){if(!y){y=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),m=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(d=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),f=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),v=/Mobile/i.exec(e),h=!!/Win64/.exec(e),t){n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var I=/(?:Trident\/(\d+.\d+))/.exec(e);a=I?parseFloat(I[1])+4:n,r=t[2]?parseFloat(t[2]):NaN,i=t[3]?parseFloat(t[3]):NaN,o=t[4]?parseFloat(t[4]):NaN,o?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s=t&&t[1]?parseFloat(t[1]):NaN):s=NaN}else n=r=i=s=o=NaN;if(m){if(m[1]){var M=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);c=!M||parseFloat(M[1].replace("_","."))}else c=!1;u=!!m[2],l=!!m[3]}else c=u=l=!1}}var I={ie:function(){return m()||n},ieCompatibilityMode:function(){return m()||a>n},ie64:function(){return I.ie()&&h},firefox:function(){return m()||r},opera:function(){return m()||i},webkit:function(){return m()||o},safari:function(){return I.webkit()},chrome:function(){return m()||s},windows:function(){return m()||u},osx:function(){return m()||c},linux:function(){return m()||l},iphone:function(){return m()||d},mobile:function(){return m()||d||p||f||v},nativeApp:function(){return m()||g},android:function(){return m()||f},ipad:function(){return m()||p}};e.exports=I},"8ed0":function(e,t,n){"use strict";var r=n("79e5"),i=Date.prototype.getTime,o=Date.prototype.toISOString,s=function(e){return e>9?e:"0"+e};e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+s(e.getUTCMonth()+1)+"-"+s(e.getUTCDate())+"T"+s(e.getUTCHours())+":"+s(e.getUTCMinutes())+":"+s(e.getUTCSeconds())+"."+(n>99?n:"0"+s(n))+"Z"}:o},"8f60":function(e,t,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),s={};n("35e8")(s,n("5168")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},"8f9b":function(e,t,n){!function(t,r){e.exports=r(n("2b0e"))}("undefined"!=typeof self&&self,(function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="./",t(t.s=64)}([function(e,t,n){"use strict";var r=n(45),i=n.n(r),o=n(6),s=n(50),a=n(13),c=n(49),u=n(27);t.a={data:function(){return{unwatchFns:[]}},mounted:function(){var e=this;a.b&&a.b.load().then((function(){e.__contextReady&&e.__contextReady.call(e,e.convertProps())})),this.$amap=this.$amap||this.$parent.$amap,this.$amap?this.register():this.$on(c.a.AMAP_READY_EVENT,(function(t){e.$amap=t,e.register()}))},destroyed:function(){this.unregisterEvents(),this.$amapComponent&&(this.$amapComponent.setMap&&this.$amapComponent.setMap(null),this.$amapComponent.close&&this.$amapComponent.close(),this.$amapComponent.editor&&this.$amapComponent.editor.close(),this.unwatchFns.forEach((function(e){return e()})),this.unwatchFns=[])},methods:{getHandlerFun:function(e){return this.handlers&&this.handlers[e]?this.handlers[e]:this.$amapComponent["set"+i()(e)]||this.$amapComponent.setOptions},convertProps:function(){var e=this,t={};this.$amap&&(t.map=this.$amap);var n=this.$options.propsData,r=void 0===n?{}:n,i=this.propsRedirect;return Object.keys(r).reduce((function(n,o){var s=o,a=e.convertSignalProp(s,r[s]);return void 0===a||(i&&i[o]&&(s=i[s]),t[s]=a),n}),t)},convertSignalProp:function(e,t){var n="",r="";if(this.amapTagName)try{var s=i()(this.amapTagName).replace(/^El/,"");r=(u.default[s]||"").props[e].$type,n=o.a[r]}catch(e){}if(r&&n)return n(t);if(this.converters&&this.converters[e])return this.converters[e].call(this,t);var a=o.a[e];return a?a(t):t},registerEvents:function(){if(this.setEditorEvents&&this.setEditorEvents(),this.$options.propsData){if(this.$options.propsData.events)for(var e in this.events)s.a.addListener(this.$amapComponent,e,this.events[e]);if(this.$options.propsData.onceEvents)for(var t in this.onceEvents)s.a.addListenerOnce(this.$amapComponent,t,this.onceEvents[t])}},unregisterEvents:function(){s.a.clearListeners(this.$amapComponent)},setPropWatchers:function(){var e=this,t=this.propsRedirect,n=this.$options.propsData,r=void 0===n?{}:n;Object.keys(r).forEach((function(n){var r=n;t&&t[n]&&(r=t[n]);var i=e.getHandlerFun(r);if(i||"events"===n){var o=e.$watch(n,(function(t){return"events"===n?(e.unregisterEvents(),void e.registerEvents()):i&&i===e.$amapComponent.setOptions?i.call(e.$amapComponent,(o={},o[r]=e.convertSignalProp(n,t),o)):void i.call(e.$amapComponent,e.convertSignalProp(n,t));var o}));e.unwatchFns.push(o)}}))},registerToManager:function(){var e=this.amapManager||this.$parent.amapManager;e&&void 0!==this.vid&&e.setComponent(this.vid,this.$amapComponent)},initProps:function(){var e=this;["editable","visible"].forEach((function(t){if(void 0!==e[t]){var n=e.getHandlerFun(t);n&&n.call(e.$amapComponent,e.convertSignalProp(t,e[t]))}}))},printReactiveProp:function(){var e=this;Object.keys(this._props).forEach((function(t){e.$amapComponent["set"+i()(t)]&&console.log(t)}))},register:function(){var e=this,t=this.__initComponent&&this.__initComponent(this.convertProps());t&&t.then?t.then((function(t){return e.registerRest(t)})):this.registerRest(t)},registerRest:function(e){!this.$amapComponent&&e&&(this.$amapComponent=e),this.registerEvents(),this.initProps(),this.setPropWatchers(),this.registerToManager(),this.events&&this.events.init&&this.events.init(this.$amapComponent,this.$amap,this.amapManager||this.$parent.amapManager)},$$getInstance:function(){return this.$amapComponent}}}},function(e,t,n){"use strict";function r(e,t,n,r,i,o,s,a){e=e||{};var c=typeof e.default;"object"!==c&&"function"!==c||(e=e.default);var u,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=o),s?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=u):i&&(u=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var f=l.render;l.render=function(e,t){return u.call(t),f(e,t)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:e,options:l}}t.a=r},function(e,t,n){var r=n(30)("wks"),i=n(14),o=n(3).Symbol,s="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(15)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";function r(e){return new AMap.Pixel(e[0],e[1])}function i(e){return new AMap.Size(e[0],e[1])}function o(e){return Array.isArray(e)?e:[e.getX(),e.getY()]}function s(e){return new AMap.LngLat(e[0],e[1])}function a(e){if(e)return Array.isArray(e)?e.slice():[e.getLng(),e.getLat()]}function c(e){return new AMap.Bounds(s(e[0]),s(e[1]))}t.e=r,t.c=o,t.d=s,t.b=a,n.d(t,"a",(function(){return u}));var u={position:s,offset:r,bounds:c,LngLat:s,Pixel:r,Size:i,Bounds:c}},function(e,t,n){var r=n(3),i=n(8),o=n(11),s=n(14)("src"),a=Function.toString,c=(""+a).split("toString");n(16).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,s)||i(n,s,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[s]||a.call(this)}))},function(e,t,n){var r=n(9),i=n(20);e.exports=n(5)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(10),i=n(31),o=n(33),s=Object.defineProperty;t.f=n(5)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(4);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports={}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(97),i=n(19),o=n.n(i),s=null,a=function(e){o.a.prototype.$isServer||s||(s||(s=new r.a(e)),s.load())}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n=e.exports={version:"2.5.5"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(71);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(75),i=n(22);e.exports=function(e){return r(i(e))}},function(t,n){t.exports=e},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(70),i=n(34),o=n(7),s=n(8),a=n(12),c=n(72),u=n(25),l=n(79),f=n(2)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,p,g,v,y){c(n,t,p);var m,I,M,C=function(e){if(!h&&e in b)return b[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",A="values"==g,_=!1,b=e.prototype,N=b[f]||b["@@iterator"]||g&&b[g],E=N||C(g),w=g?A?C("entries"):E:void 0,S="Array"==t&&b.entries||N;if(S&&(M=l(S.call(new e)))!==Object.prototype&&M.next&&(u(M,T,!0),r||"function"==typeof M[f]||s(M,f,d)),A&&N&&"values"!==N.name&&(_=!0,E=function(){return N.call(this)}),r&&!y||!h&&!_&&b[f]||s(b,f,E),a[t]=E,a[T]=d,g)if(m={values:A?E:C("values"),keys:v?E:C("keys"),entries:w},y)for(I in m)I in b||o(b,I,m[I]);else i(i.P+i.F*(h||_),t,m);return m}},function(e,t,n){var r=n(30)("keys"),i=n(14);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(9).f,i=n(11),o=n(2)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(50);t.a={methods:{setEditorEvents:function(){var e=this;if(this.$amapComponent.editor&&this.events){var t=["addnode","adjust","removenode","end","move"],n={};Object.keys(this.events).forEach((function(r){-1!==t.indexOf(r)&&(n[r]=e.events[r])})),Object.keys(n).forEach((function(t){r.a.addListener(e.$amapComponent.editor,t,n[t])}))}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n(65),n(45)),i=n.n(r),o=n(13),s=n(100),a=n(106),c=n(107),u=n(111),l=n(113),f=n(115),h=n(116),d=n(118),p=n(120),g=n(122),v=n(124),y=n(126),m=n(128),I=n(130),M=n(131);n.d(t,"AMapManager",(function(){return I.a})),n.d(t,"initAMapApiLoader",(function(){return o.a})),n.d(t,"createCustomComponent",(function(){return M.a})),n.d(t,"lazyAMapApiLoaderInstance",(function(){return o.b}));var C=[s.a,a.a,c.a,u.a,l.a,f.a,d.a,h.a,p.a,g.a,v.a,y.a,m.a],T={initAMapApiLoader:o.a,AMapManager:I.a,install:function(e){T.installed||(e.config.optionMergeStrategies.deferredReady=e.config.optionMergeStrategies.created,C.map((function(t){e.component(t.name,t),T[i()(t.name).replace(/^El/,"")]=t})))}};"undefined"!=typeof window&&window.Vue&&function e(t){e.installed||T.install(t)}(window.Vue),t.default=T},function(e,t,n){var r=n(29),i=n(2)("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(3),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t,n){e.exports=!n(5)&&!n(15)((function(){return 7!=Object.defineProperty(n(32)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(4),i=n(3).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(4);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(3),i=n(16),o=n(8),s=n(7),a=n(17),c=function(e,t,n){var u,l,f,h,d=e&c.F,p=e&c.G,g=e&c.S,v=e&c.P,y=e&c.B,m=p?r:g?r[t]||(r[t]={}):(r[t]||{}).prototype,I=p?i:i[t]||(i[t]={}),M=I.prototype||(I.prototype={});for(u in p&&(n=t),n)l=!d&&m&&void 0!==m[u],f=(l?m:n)[u],h=y&&l?a(f,r):v&&"function"==typeof f?a(Function.call,f):f,m&&s(m,u,f,e&c.U),I[u]!=f&&o(I,u,h),v&&M[u]!=f&&(M[u]=f)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){var r=n(10),i=n(73),o=n(38),s=n(24)("IE_PROTO"),a=function(){},c=function(){var e,t=n(32)("iframe"),r=o.length;for(t.style.display="none",n(78).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=r(e),n=new a,a.prototype=null,n[s]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(74),i=n(38);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(21),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(7);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(17),i=n(86),o=n(87),s=n(10),a=n(37),c=n(88),u={},l={};t=e.exports=function(e,t,n,f,h){var d,p,g,v,y=h?function(){return e}:c(e),m=r(n,f,t?2:1),I=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(o(y)){for(d=a(e.length);d>I;I++)if((v=t?m(s(p=e[I])[0],p[1]):m(e[I]))===u||v===l)return v}else for(g=y.call(e);!(p=g.next()).done;)if((v=i(g,m,p.value,t))===u||v===l)return v};t.BREAK=u,t.RETURN=l},function(e,t,n){var r=n(14)("meta"),i=n(4),o=n(11),s=n(9).f,a=0,c=Object.isExtensible||function(){return!0},u=!n(15)((function(){return c(Object.preventExtensions({}))})),l=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},h=function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},d=function(e){return u&&p.NEED&&c(e)&&!o(e,r)&&l(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:h,onFreeze:d}},function(e,t,n){var r=n(4);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";var r=n(96);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}))).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=l[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(o(n.parts[i]));l[n.id]={id:n.id,refs:1,parts:s}}}}function i(){var e=document.createElement("style");return e.type="text/css",f.appendChild(e),e}function o(e){var t,n,r=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(r){if(p)return g;r.parentNode.removeChild(r)}if(v){var o=d++;r=h||(h=i()),t=s.bind(null,r,o,!1),n=s.bind(null,r,o,!0)}else r=i(),t=a.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function s(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function a(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u=n(103),l={},f=c&&(document.head||document.getElementsByTagName("head")[0]),h=null,d=0,p=!1,g=function(){},v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n){p=n;var i=u(e,t);return r(i),function(t){for(var n=[],o=0;o<i.length;o++){var s=i[o],a=l[s.id];a.refs--,n.push(a)}t?(i=u(e,t),r(i)):i=[];for(o=0;o<n.length;o++){a=n[o];if(0===a.refs){for(var c=0;c<a.parts.length;c++)a.parts[c]();delete l[a.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){"use strict";var r=n(104),i=n(49),o=n(6),s=n(0),a=n(13),c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a={name:"el-amap",mixins:[s.a],props:["viewMode","skyColor","rotateEnable","pitch","buildingAnimation","pitchEnable","vid","events","center","zoom","draggEnable","level","zooms","lang","defaultCursor","crs","animateEnable","isHotspot","defaultLayer","rotateEnable","resizeEnable","showIndoorMap","indoorMap","expandZoomRange","dragEnable","zoomEnable","doubleClickZoom","keyboardEnable","jogEnable","scrollWheel","touchZoom","mapStyle","plugin","features","amapManager"],beforeCreate:function(){this._loadPromise=a.b.load()},destroyed:function(){this.$amap&&this.$amap.destroy()},computed:{plugins:function(){var e=[],t=/^AMap./,n=function(e){return t.test(e)?e:"AMap."+e},r=function(e){return e.replace(t,"")};return"string"==typeof this.plugin?e.push({pName:n(this.plugin),sName:r(this.plugin)}):this.plugin instanceof Array&&(e=this.plugin.map((function(e){var t={};return"string"==typeof e?t={pName:n(e),sName:r(e)}:(e.pName=n(e.pName),e.sName=r(e.pName),t=e),t}))),e}},data:function(){return{converters:{center:function(e){return Object(o.d)(e)}},handlers:{zoomEnable:function(e){this.setStatus({zoomEnable:e})},dragEnable:function(e){this.setStatus({dragEnable:e})},rotateEnable:function(e){this.setStatus({rotateEnable:e})}}}},mounted:function(){this.createMap()},addEvents:function(){var e=this;this.$amapComponent.on("moveend",(function(){var t=e.$amapComponent.getCenter();e.center=[t.getLng(),t.getLat()]}))},methods:{addPlugins:function(){var e=this.plugins.filter((function(e){return!AMap[e.sName]}));return e&&e.length?this.$amapComponent.plugin(e,this.addMapControls):this.addMapControls()},addMapControls:function(){var e=this;this.plugins&&this.plugins.length&&(this.$plugins=this.$plugins||{},this.plugins.forEach((function(t){var n=e.convertAMapPluginProps(t),r=e.$plugins[n.pName]=new AMap[n.sName](n);if(e.$amapComponent.addControl(r),t.events)for(var i in t.events){var o=t.events[i];"init"===i?o(r):AMap.event.addListener(r,i,o)}})))},convertAMapPluginProps:function(e){if("object"===(void 0===e?"undefined":c(e))&&e.pName){switch(e.pName){case"AMap.ToolBar":case"AMap.Scale":e.offset&&e.offset instanceof Array&&(e.offset=Object(o.e)(e.offset))}return e}return""},setStatus:function(e){this.$amap.setStatus(e)},createMap:function(){var e=this;this._loadPromise.then((function(){var t=e.$el.querySelector(".el-vue-amap"),n=e.vid||Object(r.a)();t.id=n,e.$amap=e.$amapComponent=new AMap.Map(n,e.convertProps()),e.amapManager&&e.amapManager.setMap(e.$amap),e.$emit(i.a.AMAP_READY_EVENT,e.$amap),e.$children.forEach((function(t){t.$emit(i.a.AMAP_READY_EVENT,e.$amap)})),e.plugins&&e.plugins.length&&e.addPlugins()}))},$$getCenter:function(){return this.$amap?Object(o.b)(this.$amap.getCenter()):Object(o.b)(this.center)}}}},function(e,t,n){"use strict";t.a={AMAP_READY_EVENT:"AMAP_READY_EVENT"}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=void 0,o=function(){function e(){r(this,e),this._listener=new Map}return e.prototype.addListener=function(e,t,n,r){if(!AMap.event)throw new Error("please wait for Map API load");var i=AMap.event.addListener(e,t,n,r);this._listener.get(e)||this._listener.set(e,{});var o=this._listener.get(e);o[t]||(o[t]=[]),o[t].push(i)},e.prototype.removeListener=function(e,t,n){if(!AMap.event)throw new Error("please wait for Map API load");if(this._listener.get(e)&&this._listener.get(e)[t]){var r=this._listener.get(e)[t];if(n){var i=r.indexOf(n);AMap.event.removeListener(r[i]),r.splice(i,1)}else r.forEach((function(e){AMap.event.removeListener(e)})),this._listener.get(e)[t]=[]}},e.prototype.addListenerOnce=function(e,t,n,r){return AMap.event.addListenerOnce(e,t,n,r)},e.prototype.trigger=function(e,t,n){return AMap.event.trigger(e,t,n)},e.prototype.clearListeners=function(e){var t=this,n=this._listener.get(e);n&&Object.keys(n).map((function(n){t.removeListener(e,n)}))},e}();i=i||new o,t.a=i},function(e,t,n){"use strict";var r=n(0),i=n(6),o=n(52),s=n(19),a=n.n(s),c="el-amap-marker";t.a={name:c,mixins:[r.a],props:["vid","position","offset","icon","content","topWhenClick","bubble","draggable","raiseOnDrag","cursor","visible","zIndex","angle","autoRotation","animation","shadow","title","clickable","shape","extData","label","events","onceEvents","template","vnode","contentRender"],data:function(){var e=this;return{$tagName:c,withSlots:!1,tmpVM:null,propsRedirect:{template:"content",vnode:"content",contentRender:"content"},converters:{shape:function(e){return new AMap.MarkerShape(e)},shadow:function(e){return new AMap.Icon(e)},template:function(t){var n=Object(o.a)(t,e);return this.$customContent=n,n.$el},vnode:function(t){var n="function"==typeof t?t(e):t,r=Object(o.c)(n);return this.$customContent=r,r.$el},contentRender:function(t){var n=Object(o.b)(t,e);return this.$customContent=n,n.$el},label:function(e){var t=e.content,n=void 0===t?"":t,r=e.offset,o=void 0===r?[0,0]:r;return{content:n,offset:Object(i.e)(o)}}},handlers:{zIndex:function(e){this.setzIndex(e)},visible:function(e){!1===e?this.hide():this.show()}}}},created:function(){this.tmpVM=new a.a({data:function(){return{node:""}},render:function(e){var t=this.node;return e("div",{ref:"node"},Array.isArray(t)?t:[t])}}).$mount()},methods:{__initComponent:function(e){this.$slots.default&&this.$slots.default.length&&(e.content=this.tmpVM.$refs.node),this.$amapComponent=new AMap.Marker(e)},$$getExtData:function(){return this.$amapComponent.getExtData()},$$getPosition:function(){return Object(i.b)(this.$amapComponent.getPosition())},$$getOffset:function(){return Object(i.c)(this.$amapComponent.getOffset())}},render:function(e){var t=this.$slots.default||[];return t.length&&(this.tmpVM.node=t),null},destroyed:function(){this.tmpVM.$destroy(),this.$customContent&&this.$customContent.$destroy&&this.$customContent.$destroy()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(19),i=n.n(r),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(e,t){var n=["methods","computed","data","filters"],r={},s=i.a.compile(e);n.forEach((function(e){r[e]=t.$parent.$parent.$options[e],"data"===e&&"function"==typeof r[e]&&(r[e]=r[e]())}));var a=new i.a(o({},r,s));return a.$mount(),a},a=function(e){var t=new i.a({render:function(t){return t("div",e)}});return t.$mount(),t},c=function(e,t){var n=new i.a({render:function(n){return e(n,t)}});return n.$mount(),n}},function(e,t,n){"use strict";var r=n(0),i=n(13);t.a={name:"el-amap-search-box",mixins:[r.a],props:["searchOption","onSearchResult","events","default"],data:function(){return{keyword:this.default||"",tips:[],selectedTip:-1,loaded:!1,adcode:null}},mounted:function(){var e=this;i.b.load().then((function(){e.loaded=!0,e._onSearchResult=e.onSearchResult,e.events&&e.events.init&&e.events.init({autoComplete:e._autoComplete,placeSearch:e._placeSearch})}))},computed:{_autoComplete:function(){if(this.loaded)return new AMap.Autocomplete(this.searchOption||{})},_placeSearch:function(){if(this.loaded)return new AMap.PlaceSearch(this.searchOption||{})}},methods:{autoComplete:function(){var e=this;this.keyword&&this._autoComplete&&this._autoComplete.search(this.keyword,(function(t,n){"complete"===t&&(e.tips=n.tips)}))},search:function(){var e=this;if(this.tips=[],this._placeSearch){var t=null;t=this.searchOption.citylimit&&this.searchOption.city?this.searchOption.city:this.adcode,this._placeSearch.setCity(t||this.searchOption.city),this._placeSearch.search(this.keyword,(function(t,n){if(n&&n.poiList&&n.poiList.count){var r=n.poiList.pois,i=r.map((function(e){return e.lat=e.location.lat,e.lng=e.location.lng,e}));e._onSearchResult(i)}else if(void 0===n.poiList)throw new Error(n)}))}},changeTip:function(e){this.adcode=e.adcode,this.keyword=e.name,this.search()},selectTip:function(e){"up"===e&&this.selectedTip>0?(this.selectedTip-=1,this.keyword=this.tips[this.selectedTip].name,this.adcode=this.tips[this.selectedTip].adcode):"down"===e&&this.selectedTip+1<this.tips.length&&(this.selectedTip+=1,this.keyword=this.tips[this.selectedTip].name,this.adcode=this.tips[this.selectedTip].adcode)}}}},function(e,t,n){"use strict";var r=n(0),i=n(6),o=n(26);t.a={name:"el-amap-circle",mixins:[r.a,o.a],props:["vid","zIndex","center","bubble","radius","strokeColor","strokeOpacity","strokeWeight","editable","fillColor","fillOpacity","strokeStyle","extData","strokeDasharray","events","visible","extData","onceEvents"],data:function(){return{converters:{center:function(e){return Object(i.d)(e)}},handlers:{zIndex:function(e){this.setzIndex(e)},visible:function(e){!1===e?this.hide():this.show()},editable:function(e){!0===e?this.editor.open():this.editor.close()}}}},methods:{__initComponent:function(e){this.$amapComponent=new AMap.Circle(e),this.$amapComponent.editor=new AMap.CircleEditor(this.$amap,this.$amapComponent)},$$getCenter:function(){return Object(i.b)(this.$amapComponent.getCenter())}}}},function(e,t,n){"use strict";var r=n(0);t.a={name:"el-amap-ground-image",mixins:[r.a],props:["vid","clickable","opacity","url","bounds","visible","events","onceEvents"],destroyed:function(){this.$amapComponent.setMap(null)},data:function(){return{converters:{},handlers:{visible:function(e){!1===e?this.setMap(null):this.setMap(this.$amap)}}}},methods:{__initComponent:function(e){this.$amapComponent=new AMap.ImageLayer(e)}}}},function(e,t,n){"use strict";var r=n(6),i=n(0),o=n(52),s=n(19),a=n.n(s);t.a={name:"el-amap-info-window",mixins:[i.a],props:["vid","isCustom","autoMove","closeWhenClickMap","content","size","offset","position","showShadow","visible","events","template","vnode","contentRender"],data:function(){var e=this;return{withSlots:!1,tmpVM:null,propsRedirect:{template:"content",vnode:"content",contentRender:"content"},converters:{template:function(t){var n=Object(o.a)(t,e);return this.$customContent=n,n.$el},vnode:function(t){var n="function"==typeof t?t(e):t,r=Object(o.c)(n);return this.$customContent=r,r.$el},contentRender:function(t){var n=Object(o.b)(t,e);return this.$customContent=n,n.$el}},handlers:{visible:function(t){var n=this.getPosition();n&&(!1===t?this.close():this.open(e.$amap,[n.lng,n.lat]))},template:function(e){this.setContent(e)}}}},created:function(){this.tmpVM=new a.a({data:function(){return{node:""}},render:function(e){var t=this.node;return e("div",{ref:"node"},Array.isArray(t)?t:[t])}}).$mount()},destroyed:function(){this.$amapComponent.close(),this.tmpVM.$destroy(),this.$customContent&&this.$customContent.$destroy&&this.$customContent.$destroy()},methods:{__initComponent:function(e){this.$slots.default&&this.$slots.default.length&&(e.content=this.tmpVM.$refs.node),delete e.map,this.$amapComponent=new AMap.InfoWindow(e),!1!==this.visible&&this.$amapComponent.open(this.$amap,Object(r.d)(this.position))}},render:function(e){var t=this.$slots.default||[];return t.length&&(this.tmpVM.node=t),null}}},function(e,t,n){"use strict";var r=n(0),i=n(26),o=n(6);t.a={name:"el-amap-polyline",mixins:[r.a,i.a],props:["vid","zIndex","visible","editable","bubble","geodesic","isOutline","outlineColor","path","strokeColor","strokeOpacity","strokeWeight","strokeStyle","strokeDasharray","events","extData","onceEvents","lineJoin"],data:function(){return{converters:{},handlers:{visible:function(e){!1===e?this.hide():this.show()},editable:function(e){!0===e?this.editor.open():this.editor.close()}}}},methods:{__initComponent:function(e){this.$amapComponent=new AMap.Polyline(e),this.$amapComponent.editor=new AMap.PolyEditor(this.$amap,this.$amapComponent)},$$getPath:function(){return this.$amapComponent.getPath().map(o.b)},$$getBounds:function(){return this.$amapComponent.getBounds()},$$getExtData:function(){return this.$amapComponent.getExtData()}}}},function(e,t,n){"use strict";var r=n(0),i=n(26),o=n(6);t.a={name:"el-amap-polygon",mixins:[r.a,i.a],props:["vid","zIndex","path","bubble","strokeColor","strokeOpacity","strokeWeight","fillColor","editable","fillOpacity","extData","strokeStyle","visible","strokeDasharray","events","onceEvents","draggable"],data:function(){return{converters:{},handlers:{visible:function(e){!1===e?this.hide():this.show()},zIndex:function(e){this.setOptions({zIndex:e})},editable:function(e){!0===e?this.editor.open():this.editor.close()}}}},methods:{__initComponent:function(){var e=this.convertProps();this.$amapComponent=new AMap.Polygon(e),this.$amapComponent.editor=new AMap.PolyEditor(this.$amap,this.$amapComponent)},$$getPath:function(){return this.$amapComponent.getPath().map(o.b)},$$getExtData:function(){return this.$amapComponent.getExtData()},$$contains:function(e){return Array.isArray(e)&&(e=new AMap.LngLat(e[0],e[1])),this.$amapComponent.getBounds().contains(e)}}}},function(e,t,n){"use strict";var r=n(0),i="el-amap-text";t.a={name:i,mixins:[r.a],props:{vid:{type:String,default:""},text:{type:String,default:""},textAlign:{type:String,default:""},verticalAlign:{type:String,default:""},position:{type:Array,default:function(){return[0,0]},$type:"LngLat"},offset:{type:Array,default:function(){return[0,0]},$type:"Pixel"},topWhenClick:{type:Boolean,default:function(){return!1}},bubble:{type:Boolean,default:function(){return!1}},draggable:{type:Boolean,default:function(){return!1}},raiseOnDrag:{type:Boolean,default:function(){return!1}},cursor:{type:String,default:function(){return""}},visible:{type:Boolean,default:function(){return!0}},zIndex:{type:Number,default:function(){return 100}},angle:{type:Number,default:function(){return 0}},autoRotation:{type:Boolean,default:function(){return!1}},animation:{type:String,default:function(){return"“AMAP_ANIMATION_NONE”"}},shadow:{type:Object,default:function(){return{}},$type:"Icon"},title:{type:String,default:function(){return""}},clickable:{type:Boolean,default:!0},events:{type:Object,default:function(){return{}}}},data:function(){return{converters:{},handlers:{zIndex:function(e){this.setzIndex(e)},visible:function(e){!1===e?this.hide():this.show()}},amapTagName:i}},methods:{__initComponent:function(e){this.$amapComponent=new AMap.Text(e)}}}},function(e,t,n){"use strict";var r=n(0),i="el-amap-bezier-curve";t.a={name:i,mixins:[r.a],props:{vid:{type:String},path:{type:Array},strokeColor:{type:String},strokeOpacity:{type:Number},strokeWeight:{type:Number,default:function(){return 1}},strokeStyle:{type:String},strokeDasharray:{type:Array},zIndex:{type:Number},showDir:{type:Boolean},bubble:{type:Boolean},cursor:{type:String},outlineColor:{type:Boolean},isOutline:{type:Boolean},visible:{type:Boolean,default:!0},events:{type:Object,default:function(){return{}}}},data:function(){return{converters:{},handlers:{zIndex:function(e){this.setzIndex(e)},visible:function(e){!1===e?this.hide():this.show()}},amapTagName:i}},methods:{__initComponent:function(e){this.$amapComponent=new AMap.BezierCurve(e)}}}},function(e,t,n){"use strict";var r=n(0),i="el-amap-circle-marker";t.a={name:i,mixins:[r.a],props:{vid:{type:String},zIndex:{type:Number},visible:{type:Boolean,default:!0},center:{type:Array,$type:"LngLat"},bubble:{type:Boolean},radius:{type:Number},strokeColor:{type:String},strokeOpacity:{type:Number},strokeWeight:{type:Number},fillColor:{type:String},fillOpacity:{type:Number},extData:{type:Object},events:{type:Object,default:function(){return{}}}},data:function(){return{converters:{},handlers:{zIndex:function(e){this.setzIndex(e)},visible:function(e){!1===e?this.hide():this.show()}},amapTagName:i}},methods:{__initComponent:function(e){this.$amapComponent=new AMap.CircleMarker(e)}}}},function(e,t,n){"use strict";var r=n(0),i="el-amap-ellipse";t.a={name:i,mixins:[r.a],props:{vid:{type:String},zIndex:{type:Number},center:{type:Array,$type:"LngLat"},radius:{type:Array,default:function(){return[1e3,1e3]}},bubble:{type:Boolean},cursor:{type:String},strokeColor:{type:String},strokeOpacity:{type:Number},strokeWeight:{type:Number},fillColor:{type:String},fillOpacity:{type:Number},strokeStyle:{type:String},extData:{type:Object,default:function(){return{}}},visible:{type:Boolean,default:!0},events:{type:Object,default:function(){return{}}}},data:function(){return{converters:{},handlers:{zIndex:function(e){this.setzIndex(e)},visible:function(e){!1===e?this.hide():this.show()}},amapTagName:i}},methods:{__initComponent:function(e){this.$amapComponent=new AMap.Ellipse(e)}}}},function(e,t,n){"use strict";var r=n(0),i="el-amap-rectangle";t.a={name:i,mixins:[r.a],props:{vid:{type:String},zIndex:{type:Number},center:{type:Array,$type:"LngLat"},bounds:{type:Array,$type:"Bounds"},bubble:{type:Boolean},cursor:{type:String},strokeColor:{type:String},strokeOpacity:{type:Number},strokeWeight:{type:Number},fillColor:{type:String},fillOpacity:{type:Number},strokeStyle:{type:String},extData:{type:Object,default:function(){return{}}},visible:{type:Boolean,default:!0},events:{type:Object,default:function(){return{}}}},data:function(){return{converters:{},handlers:{zIndex:function(e){this.setzIndex(e)},visible:function(e){!1===e?this.hide():this.show()}},amapTagName:i}},methods:{__initComponent:function(e){this.$amapComponent=new AMap.Rectangle(e)}}}},function(e,t,n){e.exports=n(27)},function(e,t,n){"use strict";var r=n(66);n.n(r)},function(e,t,n){n(67),n(68),n(81),n(84),e.exports=n(16).Map},function(e,t,n){"use strict";var r=n(28),i={};i[n(2)("toStringTag")]="z",i+""!="[object z]"&&n(7)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(e,t,n){"use strict";var r=n(69)(!0);n(23)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(21),i=n(22);e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),c=r(n),u=a.length;return c<0||c>=u?e?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):o:e?a.slice(c,c+2):s-56320+(o-55296<<10)+65536)}}},function(e,t){e.exports=!1},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(35),i=n(20),o=n(25),s={};n(8)(s,n(2)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(9),i=n(10),o=n(36);e.exports=n(5)?Object.defineProperties:function(e,t){i(e);for(var n,s=o(t),a=s.length,c=0;a>c;)r.f(e,n=s[c++],t[n]);return e}},function(e,t,n){var r=n(11),i=n(18),o=n(76)(!1),s=n(24)("IE_PROTO");e.exports=function(e,t){var n,a=i(e),c=0,u=[];for(n in a)n!=s&&r(a,n)&&u.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(29);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(18),i=n(37),o=n(77);e.exports=function(e){return function(t,n,s){var a,c=r(t),u=i(c.length),l=o(s,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(21),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(3).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(11),i=n(80),o=n(24)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var r=n(22);e.exports=function(e){return Object(r(e))}},function(e,t,n){for(var r=n(82),i=n(36),o=n(7),s=n(3),a=n(8),c=n(12),u=n(2),l=u("iterator"),f=u("toStringTag"),h=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(d),g=0;g<p.length;g++){var v,y=p[g],m=d[y],I=s[y],M=I&&I.prototype;if(M&&(M[l]||a(M,l,h),M[f]||a(M,f,y),c[y]=h,m))for(v in r)M[v]||o(M,v,r[v],!0)}},function(e,t,n){"use strict";var r=n(83),i=n(39),o=n(12),s=n(18);e.exports=n(23)(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(2)("unscopables"),i=Array.prototype;void 0==i[r]&&n(8)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){"use strict";var r=n(85),i=n(44);e.exports=n(90)("Map",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(i(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(9).f,i=n(35),o=n(40),s=n(17),a=n(41),c=n(42),u=n(23),l=n(39),f=n(89),h=n(5),d=n(43).fastKey,p=n(44),g=h?"_s":"size",v=function(e,t){var n,r=d(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){a(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[g]=0,void 0!=r&&c(r,n,e[u],e)}));return o(l.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[g]=0},delete:function(e){var n=p(this,t),r=v(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[g]--}return!!r},forEach:function(e){p(this,t);for(var n,r=s(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!v(p(this,t),e)}}),h&&r(l.prototype,"size",{get:function(){return p(this,t)[g]}}),l},def:function(e,t,n){var r,i,o=v(e,t);return o?o.v=n:(e._l=o={i:i=d(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[g]++,"F"!==i&&(e._i[i]=o)),e},getEntry:v,setStrong:function(e,t,n){u(e,t,(function(e,n){this._t=p(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?l(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(t)}}},function(e,t,n){var r=n(10);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){var r=n(12),i=n(2)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){var r=n(28),i=n(2)("iterator"),o=n(12);e.exports=n(16).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){"use strict";var r=n(3),i=n(9),o=n(5),s=n(2)("species");e.exports=function(e){var t=r[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(3),i=n(34),o=n(7),s=n(40),a=n(43),c=n(42),u=n(41),l=n(4),f=n(15),h=n(91),d=n(25),p=n(92);e.exports=function(e,t,n,g,v,y){var m=r[e],I=m,M=v?"set":"add",C=I&&I.prototype,T={},A=function(e){var t=C[e];o(C,e,"delete"==e||"has"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof I&&(y||C.forEach&&!f((function(){(new I).entries().next()})))){var _=new I,b=_[M](y?{}:-0,1)!=_,N=f((function(){_.has(1)})),E=h((function(e){new I(e)})),w=!y&&f((function(){for(var e=new I,t=5;t--;)e[M](t,t);return!e.has(-0)}));E||(I=t((function(t,n){u(t,I,e);var r=p(new m,t,I);return void 0!=n&&c(n,v,r[M],r),r})),I.prototype=C,C.constructor=I),(N||w)&&(A("delete"),A("has"),v&&A("get")),(w||b)&&A(M),y&&C.clear&&delete C.clear}else I=g.getConstructor(t,e,v,M),s(I.prototype,n),a.NEED=!0;return d(I,e),T[e]=I,i(i.G+i.W+i.F*(I!=m),T),y||g.setStrong(I,e,v),I}},function(e,t,n){var r=n(2)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(e){}return n}},function(e,t,n){var r=n(4),i=n(93).set;e.exports=function(e,t,n){var o,s=t.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},function(e,t,n){var r=n(4),i=n(10),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(17)(Function.call,n(94).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){var r=n(95),i=n(20),o=n(18),s=n(33),a=n(11),c=n(31),u=Object.getOwnPropertyDescriptor;t.f=n(5)?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(a(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(98),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s={key:null,v:"1.4.4",protocol:"https",hostAndPath:"webapi.amap.com/maps",plugin:[],callback:"amapInitComponent"},a=function(){function e(t){r(this,e),this._config=o({},s,t),this._document=document,this._window=window,this._scriptLoaded=!1,this._queueEvents=[i.a]}return e.prototype.load=function(){var e=this;if(this._window.AMap&&this._window.AMap.Map)return this.loadUIAMap();if(this._scriptLoadingPromise)return this._scriptLoadingPromise;var t=this._document.createElement("script");t.type="text/javascript",t.async=!0,t.defer=!0,t.src=this._getScriptSrc();var n=this._config.uiVersion?this.loadUIAMap():null;return this._scriptLoadingPromise=new Promise((function(r,i){e._window.amapInitComponent=function(){for(;e._queueEvents.length;)e._queueEvents.pop().apply();if(!n)return r();n.then((function(){window.initAMapUI(),setTimeout(r)}))},t.onerror=function(e){return i(e)}})),this._document.head.appendChild(t),this._scriptLoadingPromise},e.prototype.loadUIAMap=function(){var e=this;return!this._config.uiVersion||window.AMapUI?Promise.resolve():new Promise((function(t,n){var r=document.createElement("script"),i=e._config.uiVersion.split("."),o=i[0],s=i[1],a=i[2];if(void 0!==o&&void 0!==s){var c=e._config.protocol+"://webapi.amap.com/ui/"+o+"."+s+"/main-async.js";a&&(c+="?v="+o+"."+s+"."+a),r.src=c,r.type="text/javascript",r.async=!0,e._document.head.appendChild(r),r.onload=function(){setTimeout(t,0)},r.onerror=function(){return n()}}else console.error("amap ui version is not correct, please check! version: ",e._config.uiVersion)}))},e.prototype._getScriptSrc=function(){var e=/^AMap./,t=this._config,n=["v","key","plugin","callback"];if(t.plugin&&t.plugin.length>0){t.plugin.push("Autocomplete","PlaceSearch","PolyEditor","CircleEditor");var r=[];t.plugin.forEach((function(t){var n=e.test(t)?t:"AMap."+t,i=n.replace(e,"");r.push(n,i)})),t.plugin=r}var i=Object.keys(t).filter((function(e){return~n.indexOf(e)})).filter((function(e){return null!=t[e]})).filter((function(e){return!Array.isArray(t[e])||Array.isArray(t[e])&&t[e].length>0})).map((function(e){var n=t[e];return Array.isArray(n)?{key:e,value:n.join(",")}:{key:e,value:n}})).map((function(e){return e.key+"="+e.value})).join("&");return this._config.protocol+"://"+this._config.hostAndPath+"?"+i},e}();t.a=a},function(e,t,n){"use strict";function r(){if(AMap.UA.ios&&"https:"!==document.location.protocol){var e=new i.a;navigator.geolocation.getCurrentPosition=function(){return e.getCurrentPosition.apply(e,arguments)},navigator.geolocation.watchPosition=function(){return e.watchPosition.apply(e,arguments)}}}t.a=r;var i=n(99)},function(e,t,n){"use strict";function r(){this._remoteSvrUrl="https://webapi.amap.com/html/geolocate.html",this._callbackList=[],this._seqBase=1,this._frameReady=0,this._watchIdMap={}}r.prototype={_getSeq:function(){return this._seqBase++},_onRrameReady:function(e){if(0===this._frameReady)return this._frameReadyList||(this._frameReadyList=[]),this._frameReadyList.push(e),void this._prepareIframe();e.call(this)},_prepareIframe:function(){if(!this._iframeWin){var e=document.createElement("iframe");e.src=this._remoteSvrUrl+(this._remoteSvrUrl.indexOf("?")>0?"&":"?"),e.width="0px",e.height="0px",e.style.position="absolute",e.style.display="none",e.allow="geolocation";var t=this,n=setTimeout((function(){t._frameReady=!1,t._callbackFrameReadyList()}),5e3);e.onload=function(){clearTimeout(n),t._frameReady=!0,t._callbackFrameReadyList(),e.onload=null},document.body.appendChild(e),this._iframeWin=e.contentWindow,window.addEventListener("message",(function(e){0===t._remoteSvrUrl.indexOf(e.origin)&&t._handleRemoteMsg(e.data)}),!1)}},_callbackFrameReadyList:function(){if(this._frameReadyList){var e=this._frameReadyList;this._frameReadyList=null;for(var t=0,n=e.length;t<n;t++)e[t].call(this,this._frameReady)}},_pickCallback:function(e,t){for(var n=this._callbackList,r=0,i=n.length;r<i;r++){var o=n[r];if(e===o.seq)return t||n.splice(r,1),o}},_handleRemoteMsg:function(e){var t=e.seq,n=this._pickCallback(t,!!e.notify);n?n.cbk.call(null,e.error,e.result):console.warn("Receive remote msg: ",e)},_postMessage:function(e,t,n,r){this._prepareIframe();var i={cmd:e,args:t,seq:r||this._getSeq()};this._callbackList.push({cbk:n,seq:i.seq}),this._onRrameReady((function(){if(!0===this._frameReady)try{this._iframeWin.postMessage(i,"*")}catch(e){this._pickCallback(i.seq),n(e)}else this._pickCallback(i.seq),n({message:"iFrame load failed!"})}))},getCurrentPosition:function(e,t,n){this._postMessage("getCurrentPosition",[n],(function(n,r){n?t&&t(n):e&&e(r)}))},watchPosition:function(e,t,n){var r="wk"+this._getSeq(),i=this._getSeq();this._watchIdMap[r]={stat:0,seq:i};var o=this;return this._postMessage("watchPosition",[n],(function(n,i){var s=null;i&&(s=i.id);var a=o._watchIdMap[r];if(a.id=s,a.stat=1,a.callbackList){var c=a.callbackList;a.callbackList=null;for(var u=0,l=c.length;u<l;u++)c[u].call(o,s)}n?t&&t(n):e&&e(i.pos)}),i),r},clearWatch:function(e,t){function n(n){i._postMessage("clearWatch",[n],(function(n,o){n||(i._pickCallback(r.seq),delete i._watchIdMap[e]),t&&t(n,o)}))}if(this._watchIdMap[e]){var r=this._watchIdMap[e],i=this;r.stat<1?(r.callbackList||(r.callbackList=[]),r.callbackList.push((function(e){n(e)}))):n(r.id)}else t("Id not exists: "+e)}},t.a=r},function(e,t,n){"use strict";function r(e){n(101)}var i=n(48),o=n(105),s=n(1),a=r,c=Object(s.a)(i.a,o.a,o.b,!1,a,null,null);t.a=c.exports},function(e,t,n){var r=n(102);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(47)("d6014b94",r,!0)},function(e,t,n){t=e.exports=n(46)(!1),t.push([e.i,".el-vue-amap-container,.el-vue-amap-container .el-vue-amap{height:100%}",""])},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],s=o[0],a=o[1],c=o[2],u=o[3],l={id:e+":"+i,css:a,media:c,sourceMap:u};r[s]?r[s].parts.push(l):n.push(r[s]={id:s,parts:[l]})}return n}},function(e,t,n){"use strict";function r(){for(var e=[],t="0123456789abcdef",n=0;n<36;n++)e[n]=t.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=t.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-vue-amap-container"},[n("div",{staticClass:"el-vue-amap"}),e._v(" "),e._t("default")],2)},i=[]},function(e,t,n){"use strict";var r=n(51),i=n(1),o=Object(i.a)(r.a,void 0,void 0,!1,null,null,null);t.a=o.exports},function(e,t,n){"use strict";function r(e){n(108)}var i=n(53),o=n(110),s=n(1),a=r,c=Object(s.a)(i.a,o.a,o.b,!1,a,null,null);t.a=c.exports},function(e,t,n){var r=n(109);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(47)("80e271aa",r,!0)},function(e,t,n){t=e.exports=n(46)(!1),t.push([e.i,".el-vue-search-box-container{position:relative;width:360px;height:45px;background:#fff;box-shadow:0 2px 2px rgba(0,0,0,.15);border-radius:2px 3px 3px 2px;z-index:10}.el-vue-search-box-container .search-box-wrapper{position:absolute;display:flex;align-items:center;left:0;top:0;width:100%;height:100%;box-sizing:border-box}.el-vue-search-box-container .search-box-wrapper input{flex:1;height:20px;line-height:20px;letter-spacing:.5px;font-size:14px;text-indent:10px;box-sizing:border-box;border:none;outline:none}.el-vue-search-box-container .search-box-wrapper .search-btn{width:45px;height:100%;display:flex;align-items:center;justify-content:center;background:transparent;cursor:pointer}.el-vue-search-box-container .search-tips{position:absolute;top:100%;border:1px solid #dbdbdb;background:#fff;overflow:auto}.el-vue-search-box-container .search-tips ul{padding:0;margin:0}.el-vue-search-box-container .search-tips ul li{height:40px;line-height:40px;box-shadow:0 1px 1px rgba(0,0,0,.1);padding:0 10px;cursor:pointer}.el-vue-search-box-container .search-tips ul li.autocomplete-selected{background:#eee}",""])},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-vue-search-box-container",on:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;e.selectTip("up")},function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;e.selectTip("down")}]}},[n("div",{staticClass:"search-box-wrapper"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],attrs:{type:"text"},domProps:{value:e.keyword},on:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.search(t):null},input:[function(t){t.target.composing||(e.keyword=t.target.value)},e.autoComplete]}}),e._v(" "),n("span",{staticClass:"search-btn",on:{click:e.search}},[e._v("搜索")])]),e._v(" "),n("div",{staticClass:"search-tips"},[n("ul",e._l(e.tips,(function(t,r){return n("li",{key:r,class:{"autocomplete-selected":r===e.selectedTip},on:{click:function(n){e.changeTip(t)},mouseover:function(t){e.selectedTip=r}}},[e._v(e._s(t.name))])})))])])},i=[]},function(e,t,n){"use strict";var r=n(54),i=n(112),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";var r=n(55),i=n(114),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";var r=n(56),i=n(1),o=Object(i.a)(r.a,void 0,void 0,!1,null,null,null);t.a=o.exports},function(e,t,n){"use strict";var r=n(57),i=n(117),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";var r=n(58),i=n(119),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";var r=n(59),i=n(121),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";var r=n(60),i=n(123),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";var r=n(61),i=n(125),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";var r=n(62),i=n(127),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";var r=n(63),i=n(129),o=n(1),s=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},i=[]},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(){r(this,e),this._componentMap=new Map,this._map=null}return e.prototype.setMap=function(e){this._map=e},e.prototype.getMap=function(){return this._map},e.prototype.setComponent=function(e,t){this._componentMap.set(e,t)},e.prototype.getComponent=function(e){return this._componentMap.get(e)},e.prototype.getChildInstance=function(e){return this.getComponent(e)},e.prototype.removeComponent=function(e){this._componentMap.delete(e)},e}();t.a=i},function(e,t,n){"use strict";var r=n(0),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.a=function(e){var t=e.init,n=e.data,o=void 0===n?function(){return{}}:n,s=e.converters,a=void 0===s?{}:s,c=e.handlers,u=void 0===c?{}:c,l=e.computed,f=e.methods,h=e.name,d=e.render,p=e.contextReady,g=e.template,v=e.mixins,y=void 0===v?[]:v,m=e.props,I=void 0===m?{}:m,M=i({},e,{props:I,data:function(){return i({},o(),{converters:a,handlers:u})},mixins:[r.a].concat(y),computed:l,methods:i({},f,{__initComponent:t,__contextReady:p})});return g||d||(M.render=function(){return null}),M.install=function(e){return e.use(h,M)},M}}])}))},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"903e":function(e,t,n){"use strict";(function(e){var r;n.d(t,"a",(function(){return Is})),n.d(t,"b",(function(){return Mt})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return bo})),n.d(t,"e",(function(){return j})),n.d(t,"f",(function(){return L})),n.d(t,"g",(function(){return yt})),n.d(t,"h",(function(){return w})),n.d(t,"i",(function(){return Ii})),n.d(t,"j",(function(){return K})),n.d(t,"k",(function(){return gt})),n.d(t,"l",(function(){return F})),n.d(t,"m",(function(){return O})),n.d(t,"n",(function(){return z})),n.d(t,"o",(function(){return Mi})),n.d(t,"p",(function(){return H})),n.d(t,"q",(function(){return B})),n.d(t,"r",(function(){return o})),n.d(t,"s",(function(){return re})),n.d(t,"t",(function(){return V})),n.d(t,"u",(function(){return Ct})),n.d(t,"v",(function(){return _o})),n.d(t,"w",(function(){return b})),n.d(t,"x",(function(){return St})),n.d(t,"y",(function(){return ke})),n.d(t,"z",(function(){return ye})),n.d(t,"A",(function(){return ge})),n.d(t,"B",(function(){return be})),n.d(t,"C",(function(){return ve})),n.d(t,"D",(function(){return Ce})),n.d(t,"E",(function(){return pe})),n.d(t,"F",(function(){return Ae})),n.d(t,"G",(function(){return Ee})),n.d(t,"H",(function(){return Oe})),n.d(t,"I",(function(){return we})),n.d(t,"J",(function(){return it})),n.d(t,"K",(function(){return Me})),n.d(t,"L",(function(){return Ie})),n.d(t,"M",(function(){return Ht})),function(e){e[e.READ=1]="READ",e[e.LISTENED=2]="LISTENED",e[e.DOWNLOADED=4]="DOWNLOADED",e[e.RETRIEVED=8]="RETRIEVED",e[e.UNREAD=0]="UNREAD"}(r||(r={}));var i,o=r,s=["https://nav.cn.ronghub.com","https://nav2-cn.ronghub.com"],a=["wsproxy.cn.ronghub.com","wsap-cn.ronghub.com"],c=["cometproxy-cn.ronghub.com","mini-cn.ronghub.com"],u={"RC:TxtMsg":{isCounted:!0,isPersited:!0},"RC:ImgMsg":{isCounted:!0,isPersited:!0},"RC:VcMsg":{isCounted:!0,isPersited:!0},"RC:ImgTextMsg":{isCounted:!0,isPersited:!0},"RC:FileMsg":{isCounted:!0,isPersited:!0},"RC:HQVCMsg":{isCounted:!0,isPersited:!0},"RC:LBSMsg":{isCounted:!0,isPersited:!0},"RC:PSImgTxtMsg":{isCounted:!0,isPersited:!0},"RC:PSMultiImgTxtMsg":{isCounted:!0,isPersited:!0},"RCJrmf:RpMsg":{isCounted:!0,isPersited:!0},"RCJrmf:RpOpendMsg":{isCounted:!0,isPersited:!0},"RC:CombineMsg":{isCounted:!0,isPersited:!0},"RC:ReferenceMsg":{isCounted:!0,isPersited:!0},"RC:SightMsg":{isCounted:!0,isPersited:!0},"RC:GIFMsg":{isCounted:!0,isPersited:!0},"RC:InfoNtf":{isCounted:!1,isPersited:!0},"RC:ContactNtf":{isCounted:!1,isPersited:!0},"RC:ProfileNtf":{isCounted:!1,isPersited:!0},"RC:CmdNtf":{isCounted:!1,isPersited:!0},"RC:GrpNtf":{isCounted:!1,isPersited:!0},"RC:RcCmd":{isCounted:!1,isPersited:!0},"RC:CmdMsg":{isCounted:!1,isPersited:!1},"RC:TypSts":{isCounted:!1,isPersited:!1},"RC:PSCmd":{isCounted:!1,isPersited:!1},"RC:SRSMsg":{isCounted:!1,isPersited:!1},"RC:RRReqMsg":{isCounted:!1,isPersited:!1},"RC:RRRspMsg":{isCounted:!1,isPersited:!1},"RC:CsChaR":{isCounted:!1,isPersited:!1},"RC:CSCha":{isCounted:!1,isPersited:!1},"RC:CsEva":{isCounted:!1,isPersited:!1},"RC:CsContact":{isCounted:!1,isPersited:!1},"RC:CsHs":{isCounted:!1,isPersited:!1},"RC:CsHsR":{isCounted:!1,isPersited:!1},"RC:CsSp":{isCounted:!1,isPersited:!1},"RC:CsEnd":{isCounted:!1,isPersited:!1},"RC:CsUpdate":{isCounted:!1,isPersited:!1},"RC:ReadNtf":{isCounted:!1,isPersited:!1},"RC:chrmKVNotiMsg":{isCounted:!1,isPersited:!1},"RC:VCAccept":{isCounted:!1,isPersited:!1},"RC:VCRinging":{isCounted:!1,isPersited:!1},"RC:VCSummary":{isCounted:!1,isPersited:!1},"RC:VCHangup":{isCounted:!1,isPersited:!1},"RC:VCInvite":{isCounted:!1,isPersited:!1},"RC:VCModifyMedia":{isCounted:!1,isPersited:!1},"RC:VCModifyMem":{isCounted:!1,isPersited:!1},"RC:MsgExMsg":{isCounted:!1,isPersited:!1},"RC:RRMsg":{isCounted:!1,isPersited:!1},"RC:LogCmdMsg":{isCounted:!1,isPersited:!1},"RC:InterceptMsg":{isCounted:!1,isPersited:!1}},l=["RC:TypSts","RC:InterceptMsg"];!function(e){e.WEBSOCKET="websocket",e.COMET="comet"}(i||(i={}));var f,h=function(e){return f||(f={set:function(t,n){e.localStorage.setItem(t,JSON.stringify(n))},get:function(t){var n;try{n=JSON.parse(e.localStorage.getItem(t))}catch(e){n=null}return n},remove:function(t){return e.localStorage.removeItem(t)},getKeys:function(){var t=[];for(var n in e.localStorage)t.push(n);return t}}),f},d=function(){function e(e){this._caches={},e&&(this._caches=e)}return e.prototype.set=function(e,t){this._caches[e]=t},e.prototype.remove=function(e){var t=this.get(e);return delete this._caches[e],t},e.prototype.get=function(e){return this._caches[e]},e.prototype.getKeys=function(){var e=[];for(var t in this._caches)e.push(t);return e},e}(),p=function(){function e(e,t){var n,r=t?"".concat("RCV4-").concat(t):"RCV4-";this._rootStorage=h(e);var i=this._rootStorage.get(r)||{};this._cache=new d(((n={})[r]=i,n)),this._storageKey=r}return e.prototype._get=function(){var e=this._storageKey;return this._cache.get(e)||{}},e.prototype._set=function(e){var t=this._storageKey;e=e||{},this._cache.set(t,e),this._rootStorage.set(t,e)},e.prototype.set=function(e,t){var n=this._get();n[e]=t,this._set(n)},e.prototype.remove=function(e){var t=this._get();delete t[e],this._set(t)},e.prototype.clear=function(){var e=this._storageKey;this._rootStorage.remove(e),this._cache.remove(e)},e.prototype.get=function(e){return this._get()[e]},e.prototype.getKeys=function(){var e=this._get(),t=[];for(var n in e)t.push(n);return t},e.prototype.getValues=function(){return this._get()||{}},e}(),v=function(e,t){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},v(e,t)};function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},m.apply(this,arguments)};function I(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function M(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function C(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}(function(e){function t(t){return e.call(this,"TODO => ".concat(t))||this}y(t,e)})(Error);var T,A=function(e,t,n){if(void 0===t||void 0===n)return e.toUpperCase();var r=e.slice(t,n);return e.replace(r,(function(e){return e.toUpperCase()}))},_=function(e,t){void 0===t&&(t="utf-8");var n,r=0;if("utf-16"===t)for(var i=0,o=e.length;i<o;i++)r+=(n=e.charCodeAt(i))<=65535?2:4;else for(i=0,o=e.length;i<o;i++)r+=(n=e.charCodeAt(i))<127?1:n<=2047?2:n<=65535?3:4;return r},b=function(e,t){if(e=e.replace(/\?$/,""),!t)return e;var n=Object.keys(t).map((function(e){return"".concat(e,"=").concat(t[e])})).filter((function(e){return!!e}));return n.length?[e,n.join("&")].join("?"):e},N=function(e){return e.match(/\d+(\.\d+){2}/)[0]};!function(e){e[e.IMAGE=1]="IMAGE",e[e.AUDIO=2]="AUDIO",e[e.VIDEO=3]="VIDEO",e[e.FILE=4]="FILE",e[e.SIGHT=5]="SIGHT",e[e.COMBINE_HTML=6]="COMBINE_HTML"}(T||(T={}));var E,w=T;!function(e){e[e.SEND=1]="SEND",e[e.RECEIVE=2]="RECEIVE"}(E||(E={}));var S,O=E;!function(e){e[e.TIMEOUT=-1]="TIMEOUT",e[e.UNKNOWN=-2]="UNKNOWN",e[e.PARAMETER_ERROR=-3]="PARAMETER_ERROR",e[e.EXTRA_METHOD_UNDEFINED=-4]="EXTRA_METHOD_UNDEFINED",e[e.MAIN_PROCESS_ERROR=-5]="MAIN_PROCESS_ERROR",e[e.PARAMETER_CHANGED=-6]="PARAMETER_CHANGED",e[e.SUCCESS=0]="SUCCESS",e[e.RC_DISCUSSION_GROUP_ID_INVALID=20407]="RC_DISCUSSION_GROUP_ID_INVALID",e[e.SEND_FREQUENCY_TOO_FAST=20604]="SEND_FREQUENCY_TOO_FAST",e[e.NOT_IN_DISCUSSION=21406]="NOT_IN_DISCUSSION",e[e.FORBIDDEN_IN_GROUP=22408]="FORBIDDEN_IN_GROUP",e[e.RECALL_MESSAGE=25101]="RECALL_MESSAGE",e[e.NOT_IN_GROUP=22406]="NOT_IN_GROUP",e[e.NOT_IN_CHATROOM=23406]="NOT_IN_CHATROOM",e[e.FORBIDDEN_IN_CHATROOM=23408]="FORBIDDEN_IN_CHATROOM",e[e.RC_CHATROOM_USER_KICKED=23409]="RC_CHATROOM_USER_KICKED",e[e.RC_CHATROOM_NOT_EXIST=23410]="RC_CHATROOM_NOT_EXIST",e[e.RC_CHATROOM_IS_FULL=23411]="RC_CHATROOM_IS_FULL",e[e.RC_CHATROOM_PATAMETER_INVALID=23412]="RC_CHATROOM_PATAMETER_INVALID",e[e.CHATROOM_GET_HISTORYMSG_ERROR=23413]="CHATROOM_GET_HISTORYMSG_ERROR",e[e.CHATROOM_NOT_OPEN_HISTORYMSG_STORE=23414]="CHATROOM_NOT_OPEN_HISTORYMSG_STORE",e[e.CHATROOM_KV_EXCEED=23423]="CHATROOM_KV_EXCEED",e[e.CHATROOM_KV_OVERWRITE_INVALID=23424]="CHATROOM_KV_OVERWRITE_INVALID",e[e.CHATROOM_KV_STORE_NOT_OPEN=23426]="CHATROOM_KV_STORE_NOT_OPEN",e[e.CHATROOM_KEY_NOT_EXIST=23427]="CHATROOM_KEY_NOT_EXIST",e[e.CHATROOM_KV_SET_ERROR=23431]="CHATROOM_KV_SET_ERROR",e[e.SENSITIVE_SHIELD=21501]="SENSITIVE_SHIELD",e[e.SENSITIVE_REPLACE=21502]="SENSITIVE_REPLACE",e[e.JOIN_IN_DISCUSSION=21407]="JOIN_IN_DISCUSSION",e[e.CREATE_DISCUSSION=21408]="CREATE_DISCUSSION",e[e.INVITE_DICUSSION=21409]="INVITE_DICUSSION",e[e.GET_USERINFO_ERROR=23407]="GET_USERINFO_ERROR",e[e.REJECTED_BY_BLACKLIST=405]="REJECTED_BY_BLACKLIST",e[e.RC_NET_CHANNEL_INVALID=30001]="RC_NET_CHANNEL_INVALID",e[e.RC_NET_UNAVAILABLE=30002]="RC_NET_UNAVAILABLE",e[e.RC_MSG_RESP_TIMEOUT=30003]="RC_MSG_RESP_TIMEOUT",e[e.RC_HTTP_SEND_FAIL=30004]="RC_HTTP_SEND_FAIL",e[e.RC_HTTP_REQ_FAIL=30005]="RC_HTTP_REQ_FAIL",e[e.RC_HTTP_RECV_FAIL=30006]="RC_HTTP_RECV_FAIL",e[e.RC_NAVI_RESOURCE_ERROR=30007]="RC_NAVI_RESOURCE_ERROR",e[e.RC_NODE_NOT_FOUND=30008]="RC_NODE_NOT_FOUND",e[e.RC_DOMAIN_NOT_RESOLVE=30009]="RC_DOMAIN_NOT_RESOLVE",e[e.RC_SOCKET_NOT_CREATED=30010]="RC_SOCKET_NOT_CREATED",e[e.RC_SOCKET_DISCONNECTED=30011]="RC_SOCKET_DISCONNECTED",e[e.RC_PING_SEND_FAIL=30012]="RC_PING_SEND_FAIL",e[e.RC_PONG_RECV_FAIL=30013]="RC_PONG_RECV_FAIL",e[e.RC_MSG_SEND_FAIL=30014]="RC_MSG_SEND_FAIL",e[e.RC_MSG_CONTENT_EXCEED_LIMIT=30016]="RC_MSG_CONTENT_EXCEED_LIMIT",e[e.RC_CONN_ACK_TIMEOUT=31e3]="RC_CONN_ACK_TIMEOUT",e[e.RC_CONN_PROTO_VERSION_ERROR=31001]="RC_CONN_PROTO_VERSION_ERROR",e[e.RC_CONN_ID_REJECT=31002]="RC_CONN_ID_REJECT",e[e.RC_CONN_SERVER_UNAVAILABLE=31003]="RC_CONN_SERVER_UNAVAILABLE",e[e.RC_CONN_USER_OR_PASSWD_ERROR=31004]="RC_CONN_USER_OR_PASSWD_ERROR",e[e.RC_CONN_NOT_AUTHRORIZED=31005]="RC_CONN_NOT_AUTHRORIZED",e[e.RC_CONN_REDIRECTED=31006]="RC_CONN_REDIRECTED",e[e.RC_CONN_PACKAGE_NAME_INVALID=31007]="RC_CONN_PACKAGE_NAME_INVALID",e[e.RC_CONN_APP_BLOCKED_OR_DELETED=31008]="RC_CONN_APP_BLOCKED_OR_DELETED",e[e.RC_CONN_USER_BLOCKED=31009]="RC_CONN_USER_BLOCKED",e[e.RC_DISCONN_KICK=31010]="RC_DISCONN_KICK",e[e.RC_DISCONN_EXCEPTION=31011]="RC_DISCONN_EXCEPTION",e[e.RC_DISCONN_SAME_CLIENT_ON_LINE=31023]="RC_DISCONN_SAME_CLIENT_ON_LINE",e[e.RC_APP_AUTH_NOT_PASS=31026]="RC_APP_AUTH_NOT_PASS",e[e.RC_OTP_USED=31027]="RC_OTP_USED",e[e.RC_PLATFORM_ERROR=31028]="RC_PLATFORM_ERROR",e[e.RC_QUERY_ACK_NO_DATA=32001]="RC_QUERY_ACK_NO_DATA",e[e.RC_MSG_DATA_INCOMPLETE=32002]="RC_MSG_DATA_INCOMPLETE",e[e.BIZ_ERROR_CLIENT_NOT_INIT=33001]="BIZ_ERROR_CLIENT_NOT_INIT",e[e.BIZ_ERROR_DATABASE_ERROR=33002]="BIZ_ERROR_DATABASE_ERROR",e[e.BIZ_ERROR_INVALID_PARAMETER=33003]="BIZ_ERROR_INVALID_PARAMETER",e[e.BIZ_ERROR_NO_CHANNEL=33004]="BIZ_ERROR_NO_CHANNEL",e[e.BIZ_ERROR_RECONNECT_SUCCESS=33005]="BIZ_ERROR_RECONNECT_SUCCESS",e[e.BIZ_ERROR_CONNECTING=33006]="BIZ_ERROR_CONNECTING",e[e.MSG_ROAMING_SERVICE_UNAVAILABLE=33007]="MSG_ROAMING_SERVICE_UNAVAILABLE",e[e.MSG_INSERT_ERROR=33008]="MSG_INSERT_ERROR",e[e.MSG_DEL_ERROR=33009]="MSG_DEL_ERROR",e[e.TAG_EXISTS=33101]="TAG_EXISTS",e[e.TAG_NOT_EXIST=33100]="TAG_NOT_EXIST",e[e.NO_TAG_IN_CONVER=33102]="NO_TAG_IN_CONVER",e[e.CONVER_REMOVE_ERROR=34001]="CONVER_REMOVE_ERROR",e[e.CONVER_GETLIST_ERROR=34002]="CONVER_GETLIST_ERROR",e[e.CONVER_SETOP_ERROR=34003]="CONVER_SETOP_ERROR",e[e.CONVER_TOTAL_UNREAD_ERROR=34004]="CONVER_TOTAL_UNREAD_ERROR",e[e.CONVER_TYPE_UNREAD_ERROR=34005]="CONVER_TYPE_UNREAD_ERROR",e[e.CONVER_ID_TYPE_UNREAD_ERROR=34006]="CONVER_ID_TYPE_UNREAD_ERROR",e[e.EXPANSION_LIMIT_EXCEET=34010]="EXPANSION_LIMIT_EXCEET",e[e.MESSAGE_KV_NOT_SUPPORT=34008]="MESSAGE_KV_NOT_SUPPORT",e[e.CONVER_OUT_LIMIT_ERROR=34013]="CONVER_OUT_LIMIT_ERROR",e[e.CONVER_GET_ERROR=35021]="CONVER_GET_ERROR",e[e.GROUP_SYNC_ERROR=35001]="GROUP_SYNC_ERROR",e[e.GROUP_MATCH_ERROR=35002]="GROUP_MATCH_ERROR",e[e.READ_RECEIPT_ERROR=35003]="READ_RECEIPT_ERROR",e[e.PACKAGE_ENVIRONMENT_ERROR=35006]="PACKAGE_ENVIRONMENT_ERROR",e[e.CAN_NOT_RECONNECT=35007]="CAN_NOT_RECONNECT",e[e.SERVER_UNAVAILABLE=35008]="SERVER_UNAVAILABLE",e[e.HOSTNAME_ERROR=35009]="HOSTNAME_ERROR",e[e.HAS_OHTER_SAME_CLIENT_ON_LINE=35010]="HAS_OHTER_SAME_CLIENT_ON_LINE",e[e.METHOD_NOT_AVAILABLE=35011]="METHOD_NOT_AVAILABLE",e[e.METHOD_NOT_SUPPORT=35012]="METHOD_NOT_SUPPORT",e[e.MSG_LIMIT_ERROR=35013]="MSG_LIMIT_ERROR",e[e.METHOD_ONLY_SUPPORT_ULTRA_GROUP=35014]="METHOD_ONLY_SUPPORT_ULTRA_GROUP",e[e.UPLOAD_FILE_FAILED=35020]="UPLOAD_FILE_FAILED",e[e.CHATROOM_ID_ISNULL=36001]="CHATROOM_ID_ISNULL",e[e.CHARTOOM_JOIN_ERROR=36002]="CHARTOOM_JOIN_ERROR",e[e.CHATROOM_HISMESSAGE_ERROR=36003]="CHATROOM_HISMESSAGE_ERROR",e[e.CHATROOM_KV_NOT_FOUND=36004]="CHATROOM_KV_NOT_FOUND",e[e.BLACK_ADD_ERROR=37001]="BLACK_ADD_ERROR",e[e.BLACK_GETSTATUS_ERROR=37002]="BLACK_GETSTATUS_ERROR",e[e.BLACK_REMOVE_ERROR=37003]="BLACK_REMOVE_ERROR",e[e.DRAF_GET_ERROR=38001]="DRAF_GET_ERROR",e[e.DRAF_SAVE_ERROR=38002]="DRAF_SAVE_ERROR",e[e.DRAF_REMOVE_ERROR=38003]="DRAF_REMOVE_ERROR",e[e.SUBSCRIBE_ERROR=39001]="SUBSCRIBE_ERROR",e[e.NOT_SUPPORT=39002]="NOT_SUPPORT",e[e.QNTKN_FILETYPE_ERROR=41001]="QNTKN_FILETYPE_ERROR",e[e.QNTKN_GET_ERROR=41002]="QNTKN_GET_ERROR",e[e.COOKIE_ENABLE=51001]="COOKIE_ENABLE",e[e.HAVNODEVICEID=24001]="HAVNODEVICEID",e[e.DEVICEIDISHAVE=24002]="DEVICEIDISHAVE",e[e.FEILD=24009]="FEILD",e[e.VOIPISNULL=24013]="VOIPISNULL",e[e.NOENGINETYPE=24010]="NOENGINETYPE",e[e.NULLCHANNELNAME=24011]="NULLCHANNELNAME",e[e.VOIPDYANMICERROR=24012]="VOIPDYANMICERROR",e[e.NOVOIP=24014]="NOVOIP",e[e.INTERNALERRROR=24015]="INTERNALERRROR",e[e.VOIPCLOSE=24016]="VOIPCLOSE",e[e.ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL=24416]="ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL",e[e.CANCEL=1]="CANCEL",e[e.REJECT=2]="REJECT",e[e.HANGUP=3]="HANGUP",e[e.BUSYLINE=4]="BUSYLINE",e[e.NO_RESPONSE=5]="NO_RESPONSE",e[e.ENGINE_UN_SUPPORTED=6]="ENGINE_UN_SUPPORTED",e[e.NETWORK_ERROR=7]="NETWORK_ERROR",e[e.REMOTE_CANCEL=11]="REMOTE_CANCEL",e[e.REMOTE_REJECT=12]="REMOTE_REJECT",e[e.REMOTE_HANGUP=13]="REMOTE_HANGUP",e[e.REMOTE_BUSYLINE=14]="REMOTE_BUSYLINE",e[e.REMOTE_NO_RESPONSE=15]="REMOTE_NO_RESPONSE",e[e.REMOTE_ENGINE_UN_SUPPORTED=16]="REMOTE_ENGINE_UN_SUPPORTED",e[e.REMOTE_NETWORK_ERROR=17]="REMOTE_NETWORK_ERROR",e[e.VOIP_NOT_AVALIABLE=18]="VOIP_NOT_AVALIABLE",e[e.CHATROOM_KV_STORE_NOT_ALL_SUCCESS=23428]="CHATROOM_KV_STORE_NOT_ALL_SUCCESS",e[e.CHATROOM_KV_STORE_OUT_LIMIT=23429]="CHATROOM_KV_STORE_OUT_LIMIT",e[e.SEARCH_PROPS_LIMIT_ERROR=35022]="SEARCH_PROPS_LIMIT_ERROR"}(S||(S={}));var D,L=S;!function(e){e[e.NONE=0]="NONE",e[e.PRIVATE=1]="PRIVATE",e[e.DISCUSSION=2]="DISCUSSION",e[e.GROUP=3]="GROUP",e[e.CHATROOM=4]="CHATROOM",e[e.CUSTOMER_SERVICE=5]="CUSTOMER_SERVICE",e[e.SYSTEM=6]="SYSTEM",e[e.APP_PUBLIC_SERVICE=7]="APP_PUBLIC_SERVICE",e[e.PUBLIC_SERVICE=8]="PUBLIC_SERVICE",e[e.ULTRA_GROUP=10]="ULTRA_GROUP",e[e.RTC_ROOM=12]="RTC_ROOM"}(D||(D={}));var R,j=D;!function(e){e[e.CONNECTED=0]="CONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.DISCONNECTED=2]="DISCONNECTED",e[e.NETWORK_UNAVAILABLE=3]="NETWORK_UNAVAILABLE",e[e.CONNECTION_CLOSED=4]="CONNECTION_CLOSED",e[e.KICKED_OFFLINE_BY_OTHER_CLIENT=6]="KICKED_OFFLINE_BY_OTHER_CLIENT",e[e.WEBSOCKET_UNAVAILABLE=7]="WEBSOCKET_UNAVAILABLE",e[e.WEBSOCKET_ERROR=8]="WEBSOCKET_ERROR",e[e.BLOCKED=9]="BLOCKED",e[e.DOMAIN_INCORRECT=12]="DOMAIN_INCORRECT",e[e.DISCONNECT_BY_SERVER=13]="DISCONNECT_BY_SERVER",e[e.REDIRECT=14]="REDIRECT",e[e.APPKEY_IS_FAKE=20]="APPKEY_IS_FAKE",e[e.FORBID_RECONNECT_BY_OTHER_SAME_CLIENT=31023]="FORBID_RECONNECT_BY_OTHER_SAME_CLIENT",e[e.ULTRALIMIT=1101]="ULTRALIMIT",e[e.REQUEST_NAVI=201]="REQUEST_NAVI",e[e.RESPONSE_NAVI=202]="RESPONSE_NAVI",e[e.RESPONSE_NAVI_ERROR=203]="RESPONSE_NAVI_ERROR",e[e.RESPONSE_NAVI_TIMEOUT=204]="RESPONSE_NAVI_TIMEOUT"}(R||(R={}));var x,k=R,U={ACCEPTED:0,UNACCEPTABLE_PROTOCOL_VERSION:1,IDENTIFIER_REJECTED:2,SERVER_UNAVAILABLE:3,TOKEN_INCORRECT:4,NOT_AUTHORIZED:5,REDIRECT:6,PACKAGE_ERROR:7,APP_BLOCK_OR_DELETE:8,BLOCK:9,TOKEN_EXPIRE:10,DEVICE_ERROR:11,HOSTNAME_ERROR:12,HASOHTERSAMECLIENTONLINE:13,IN_OTHER_CLUSTER:15,APP_AUTH_NOT_PASS:16,OTP_USED:17,PLATFORM_ERROR:18};!function(e){e.TextMessage="RC:TxtMsg",e.VOICE="RC:VcMsg",e.HQ_VOICE="RC:HQVCMsg",e.IMAGE="RC:ImgMsg",e.GIF="RC:GIFMsg",e.RICH_CONTENT="RC:ImgTextMsg",e.LOCATION="RC:LBSMsg",e.FILE="RC:FileMsg",e.SIGHT="RC:SightMsg",e.COMBINE="RC:CombineMsg",e.CHRM_KV_NOTIFY="RC:chrmKVNotiMsg",e.LOG_COMMAND="RC:LogCmdMsg",e.EXPANSION_NOTIFY="RC:MsgExMsg",e.REFERENCE="RC:ReferenceMsg",e.RECALL="RC:RcCmd",e.READ_RECEIPT="RC:ReadNtf",e.READ_RECEIPT_REQUEST="RC:RRReqMsg",e.READ_RECEIPT_RESPONSE="RC:RRRspMsg",e.SYNC_READ_STATUS="RC:SRSMsg",e.GROUP_READ_RECEIPT_REQUEST="RC:RRMsg",e.CHATROOM_JOIN="RC:ChrmJoinNtf",e.CHATROOM_LEFT="RC:ChrmQuitNtf",e.CHATROOM_MERGE_CHANGE="RC:ChrmMemChange",e.TYPING_STATUS="RC:TypSts",e.INTERCEPT="RC:InterceptMsg"}(x||(x={}));var P,z=x;!function(e){e[e.OPEN=1]="OPEN",e[e.CLOSE=2]="CLOSE"}(P||(P={}));var G,B=P;!function(e){e[e.ALL_MESSAGE=-1]="ALL_MESSAGE",e[e.NOT_SET=0]="NOT_SET",e[e.AT_MESSAGE_NOTIFICATION=1]="AT_MESSAGE_NOTIFICATION",e[e.AT_USER_NOTIFICATION=2]="AT_USER_NOTIFICATION",e[e.AT_GROUP_ALL_USER_NOTIFICATION=4]="AT_GROUP_ALL_USER_NOTIFICATION",e[e.NOT_MESSAGE_NOTIFICATION=5]="NOT_MESSAGE_NOTIFICATION"}(G||(G={}));var Y,H=G;!function(e){e[e.ALL=1]="ALL",e[e.SINGAL=2]="SINGAL"}(Y||(Y={}));var $,F=Y;!function(e){e[e.QINIU=1]="QINIU",e[e.ALI=2]="ALI",e[e.AWS=3]="AWS",e[e.STC=4]="STC"}($||($={}));var Q,V=$;!function(e){e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE"}(Q||(Q={}));var Z,W,K,q,J=Q;!function(e){e[e.LOG=0]="LOG",e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e[e.FATAL=4]="FATAL",e[e.STATISTICS=6]="STATISTICS",e[e.NONE=1e3]="NONE"}(Z||(Z={})),function(e){e.IM="IM",e.RTC="RTC"}(W||(W={})),function(e){e.L_IMSDK_VER_O="L-imsdk_ver-O",e.A_INIT_O="A-init-O",e.L_INIT_O="L-init-O",e.P_INIT_O="P-init-O",e.A_CONNECT_T="A-connect-T",e.A_CONNECT_R="A-connect-R",e.A_CONNECT_S="A-connect-S",e.A_DISCONNECT_O="A-disconnect-O",e.A_RECONNECT_T="A-reconnect-T",e.A_RECONNECT_R="A_RECONNECT_R",e.L_CONNECT_T="L-connect-T",e.L_CONNECT_R="L-connect-R",e.L_CONNECT_S="L-connect-S",e.P_CONNECT_O="P-connect-O",e.P_CONNECT_S="P-connect-S",e.L_NOTIFY_ULTRA_ONLINE_S="L-notify-ultra-online-S",e.L_ULTRA_SYNC_DONE_S="L-ultra-sync-done-S",e.A_SEND_MSG_T="A-send_msg-T",e.A_SEND_MSG_R="A-send_msg-R",e.P_SEND_MSG_T="P-send_msg-T",e.P_SEND_MSG_R="P-send_msg-R",e.L_SEND_MSG_T="L-send_msg-T",e.L_SEND_MSG_R="L-send_msg-R",e.L_PULL_MSG_T="L-pull_msg-T",e.L_PULL_MSG_R="L-pull_msg-R",e.L_PULL_MSG_O="L-pull_msg-O",e.A_PULL_MSG_O="A-pull_msg-O",e.L_PULL_ULTRA_MSG_T="L-pull_ultra_msg-T",e.L_PULL_ULTRA_MSG_R="L-pull_ultra_msg-R",e.L_PULL_CHATROOM_KV_T="L-pull_chatroom_kv-T",e.L_PULL_CHATROOM_KV_R="L-pull_chatroom_kv-R",e.L_PULL_CHATROOM_MSG_T="L-pull_chatroom_msg-T",e.L_PULL_CHATROOM_MSG_R="L-pull_chatroom_msg-R",e.L_RECEIVE_MSG_O="L-receive_msg-O",e.L_RECEIVE_SYNC_MSG_O="L-receive_sync_msg-O",e.A_DELETE_MESSAGES_S="A-delete_messages-S",e.P_DELETE_MSG_S="P-delete_msg-S",e.L_PULL_CONVERSATION_S="L-pull_conversation-S",e.L_RECALL_ULTRA_MSG_S="L-recall_ultra_msg-S",e.A_REGTYP_O="A-regtyp-O",e.P_REGTYP_O="P-regtype-O",e.P_REGTYP_E="P-regtype-E",e.L_GET_NAVI_T="L-get_navi-T",e.L_GET_NAVI_R="L-get_navi-R",e.L_ENV_S="L-Env-S",e.L_GET_INDEX_NAVI_S="L-get_index_navi-S",e.A_JOIN_CHATROOM_T="A-join_chatroom-T",e.A_JOIN_CHATROOM_R="A-join_chatroom-R",e.L_JOIN_CHATROOM_T="L-join_chatroom-T",e.L_JOIN_CHATROOM_R="L-join_chatroom-R",e.A_QUIT_CHATROOM_T="A-quit_chatroom-T",e.A_QUIT_CHATROOM_R="A-quit_chatroom-R",e.L_REJOIN_CHATROOM_T="L-rejoin_chatroom-T",e.L_REJOIN_CHATROOM_R="L-rejoin_chatroom-R",e.L_MEDIA_S="L-media-S",e.L_MEDIA_UPLOAD_T="L-media_upload-T",e.L_MEDIA_UPLOAD_R="L-media_upload-R",e.G_UPLOAD_LOG_S="G-upload_log-S",e.G_UPLOAD_LOG_E="G-upload_log-E",e.G_GET_REAL_TIMELOG_COMMAND_S="G-get_real_timelog_command-S",e.L_CHECK_ALIVE_IM_T="L-check_alive_im-T",e.L_CHECK_ALIVE_IM_R="L-check_alive_im-R",e.A_GET_HISTORY_MSG_T="A-get_history_msg-T",e.A_GET_HISTORY_MSG_R="A-get_history_msg-R",e.L_GET_HISTORY_MSG_T="L-get_history_msg-T",e.L_GET_HISTORY_MSG_R="L-get_history_msg-R",e.A_CALLBACK_O="A-callback-O",e.A_CALLBACK_E="A-callback-E",e.L_CALLBACK_E="L-callback-E",e.L_PB_ENCODE_E="L-pb-encode-E",e.L_PB_DECODE_E="L-pb-decode-E",e.L_NOTIFY_NAVI_CHANGE_E="L-notify_navi_change-E",e.L_REPORT_FULL_LOG_O="L-report_full_log-O",e.L_REPORT_FULL_LOG_T="L-report_full_log-T",e.L_REPORT_FULL_LOG_R="L-report_full_log-R"}(K||(K={})),function(e){e[e.QUIT=0]="QUIT",e[e.JOIN=1]="JOIN"}(q||(q={}));var X,ee,te=q;!function(e){e[e.GLOBAL=1]="GLOBAL",e[e.CUSTOM=2]="CUSTOM",e[e.THIRD_PARTY=3]="THIRD_PARTY"}(X||(X={})),function(e){e[e.MSG_ORIGINAL=0]="MSG_ORIGINAL",e[e.MSG_EXPANSION=1]="MSG_EXPANSION",e[e.MSG_MODIFY=2]="MSG_MODIFY"}(ee||(ee={}));var ne;!function(e){e[e.typing=0]="typing"}(ne||(ne={}));var re,ie,oe,se,ae,ce,ue;!function(e){e[e.PUBLIC=0]="PUBLIC",e[e.PRIVATE=1]="PRIVATE"}(re||(re={})),function(e){e[e.PUBLIC_TO_PRIVATE=2]="PUBLIC_TO_PRIVATE",e[e.PRIVATE_TO_PUBLIC=3]="PRIVATE_TO_PUBLIC",e[e.PUBLIC_TO_PRIVATE_USER_NOT_IN=6]="PUBLIC_TO_PRIVATE_USER_NOT_IN"}(ie||(ie={})),function(e){e[e.MSG_EXPANSION=1]="MSG_EXPANSION",e[e.MSG_MODIFY=2]="MSG_MODIFY",e[e.MSG_RECALL=3]="MSG_RECALL",e[e.CHANNEL_CHANGE=4]="CHANNEL_CHANGE"}(oe||(oe={})),function(e){e[e.CHANNEL_DELETE=1]="CHANNEL_DELETE",e[e.PUBLIC_TO_PRIVATE=2]="PUBLIC_TO_PRIVATE",e[e.PRIVATE_TO_PUBLIC=3]="PRIVATE_TO_PUBLIC",e[e.PRIVATE_CHANNEL_USER_JOIN_PUBLIC=4]="PRIVATE_CHANNEL_USER_JOIN_PUBLIC",e[e.CHANNEL_USER_KICKED=5]="CHANNEL_USER_KICKED",e[e.PUBLIC_TO_PRIVATE_USER_NOT_IN=6]="PUBLIC_TO_PRIVATE_USER_NOT_IN"}(se||(se={})),function(e){e[e.RTC=0]="RTC",e[e.LIVE=2]="LIVE",e[e.CROSS_MUTI=7]="CROSS_MUTI",e[e.CROSS_LIVE=8]="CROSS_LIVE"}(ae||(ae={})),function(e){e[e.AUDIO_AND_VIDEO=0]="AUDIO_AND_VIDEO",e[e.AUDIO=1]="AUDIO"}(ce||(ce={})),function(e){e[e.ANCHOR=1]="ANCHOR",e[e.AUDIENCE=2]="AUDIENCE"}(ue||(ue={}));var le,fe,he,de={"RC:VCAccept":"RC:VCAccept","RC:VCRinging":"RC:VCRinging","RC:VCSummary":"RC:VCSummary","RC:VCHangup":"RC:VCHangup","RC:VCInvite":"RC:VCInvite","RC:VCModifyMedia":"RC:VCModifyMedia","RC:VCModifyMem":"RC:VCModifyMem"};!function(e){e[e.ROOM=1]="ROOM",e[e.PERSON=2]="PERSON"}(le||(le={})),function(e){e[e.AnchorToViewer=1]="AnchorToViewer",e[e.ViewerToAnchor=2]="ViewerToAnchor"}(fe||(fe={})),function(e){e[e.KICK=0]="KICK",e[e.REFUSE=1]="REFUSE",e[e.COEXIST=2]="COEXIST"}(he||(he={}));var pe=function(e){return"string"==typeof e},ge=function(e){return"boolean"==typeof e},ve=function(e){return"number"==typeof e&&!Number.isNaN(e)},ye=function(e){return-1!==Object.prototype.toString.call(e).indexOf("Array")},me=function(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)},Ie=function(e){return pe(e)&&e.length>0},Me=function(e){return ye(e)&&e.length>0},Ce=function(e){return"[object Object]"===Object.prototype.toString.call(e)},Te=function(e){return"[object Function]"===Object.prototype.toString.call(e)},Ae=function(e){return void 0===e||"[object Undefined]"===Object.prototype.toString.call(e)},_e=function(e){return"[object Null]"===Object.prototype.toString.call(e)},be=function(e){return pe(e)&&/https?:\/\//.test(e)},Ne=function(e){for(var t in e)return!0;return!1},Ee=function(e){return ve(e)&&Object.prototype.hasOwnProperty.call(j,e)},we=function(e){return ve(e)&&Object.prototype.hasOwnProperty.call(H,e)},Se=function(e){var t=!1;return pe(e)&&!/_/g.test(e)&&e.length<=20&&(t=!0),t},Oe=function(e){return ve(e)&&Object.prototype.hasOwnProperty.call(w,e)},De=function(e){var t=!1,n=!1,r=!1;if(Ce(e)){var i=Object.keys(e).length;for(var o in t=i>20,e)if(n||(n=pe(o)&&!/^[A-Za-z0-9_=+-]+$/.test(o)),!r){var s=e[o];r=o.length>32||s.length>4096}}return{isExceedLimit:t,isIllgalEx:n,isExKeyOrValLengthExceedLimit:r}},Le="RC_Logs";function Re(e){var t=e.target.result;if(1===e.oldVersion)try{t.deleteObjectStore(Le)}catch(e){console.warn("version 1 indexDB delete error, name: ".concat(e.name,", message: ").concat(e.message,", stack: ").concat(e.stack))}!function(e,t,n){var r;if(!e.objectStoreNames.contains(t)){var i=m({},n.objectStoreParams);r=e.createObjectStore(t,i),n.indexs&&n.indexs.length>0&&n.indexs.forEach((function(e){r.createIndex(e.indexName,e.key,{unique:e.unique})}))}}(t,Le,{indexs:[{indexName:"time",key:"time",unique:!1}],objectStoreParams:{autoIncrement:!0}})}var je,xe=function(){function e(){}return e.init=function(){if("undefined"!=typeof window&&window&&window.indexedDB){if(e.indexDBSwitch&&!e.opening){e.opening=!0;var t=window.indexedDB.open("RC_ENGINE_DB",2);t.onerror=function(t){e.opening=!1,console.warn("open indexDB request failed ".concat(t.target.error))},t.onsuccess=function(t){e.opening=!1,e._db=t.target.result,e._db&&(e._db.onclose=function(t){var n;console.warn("The database ".concat(null===(n=e._db)||void 0===n?void 0:n.name," has unexpectedly closed."),t),e._db=null,e._instance=null},e._db.onerror=function(t){var n;console.warn("The database ".concat(null===(n=e._db)||void 0===n?void 0:n.name," has opening error."),t),e._db=null,e._instance=null},e._db.onabort=function(t){var n;console.warn("The database ".concat(null===(n=e._db)||void 0===n?void 0:n.name," has opening aborted."),t),e._db=null,e._instance=null}),e._instance=new e},t.onupgradeneeded=function(t){e.opening=!1,e._db=t.target.result,Re(t)}}}else console.debug("IndexDB is not currently supported in the environment!")},e.getInstance=function(){return e._instance},e.prototype.addList=function(t,n){return new Promise((function(r){if(e._db){var i=e._db.transaction([t],"readwrite"),o=i.objectStore(t);n.forEach((function(e){null==o||o.add(e)})),i.oncomplete=function(e){r(!0)},i.onerror=function(e){r(!1)}}else r(!1)}))},e.prototype.getRangeData=function(t,n,r,i){return new Promise((function(o){if(e._db){var s=e._db.transaction([t],"readwrite").objectStore(t),a=IDBKeyRange.bound(r,i),c=s.index(n),u=[],l=c.openCursor(a);l.onsuccess=function(e){var t=e.target.result;t?(u.push(t.value),t.continue()):o(u)},l.onerror=function(e){console.error(e),o([])}}else o([])}))},e.prototype.getCount=function(t,n){return new Promise((function(n){if(e._db){var r=e._db.transaction([t],"readonly").objectStore(t).count();r.onsuccess=function(){n(r.result)},r.onerror=function(e){console.error(e),n(0)}}else n(0)}))},e.prototype.removeFirstData=function(t,n,r){return new Promise((function(n){if(e._db){var i=e._db.transaction([t],"readwrite").objectStore(t),o=i.getAllKeys(IDBKeyRange.lowerBound(0),r);o.onsuccess=function(){var e=o.result;e.length>0&&(i.delete(IDBKeyRange.bound(e[0],e[e.length-1])).onsuccess=function(){n(!0)})}}else n(!1)}))},e._db=null,e.indexDBSwitch=!0,e.opening=!1,e}(),ke=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},Ue=function(){var e=ke();if(e="".concat(e.replace(/-/g,""),"a"),(e=function(e){var t="0123456789abcdefghigklmnopqrstuvwxyzABCDEFGHIGKLMNOPQRSTUVWXYZa0".split(""),n=t.length+1,r=+e,i=[];do{var o=r%n;r=(r-o)/n,i.unshift(t[o])}while(r);return i.join("")}(e=parseInt(e,16))).length>22&&(e=e.slice(0,22)),e.length<22)for(var t=22-e.length,n=0;n<t;n++)e+="0";return e},Pe=Ue(),ze={};function Ge(e){return 4-e}console&&((je={})[Z.DEBUG]=console.debug.bind(console),je[Z.INFO]=console.info.bind(console),je[Z.WARN]=console.warn.bind(console),je[Z.ERROR]=console.error.bind(console),je[Z.FATAL]=console.log.bind(console),ze=je);var Be=[],Ye=function(e){return pe(e)||ve(e)||Ae(e)||ge(e)?e:e instanceof Error?JSON.stringify({name:e.name,message:e.message,stack:e.stack}):JSON.stringify(e)};function He(e,t,n,r){t=/^[\w]+-[\w]+-[\w]+?/.test(t)?t:"L-".concat(t,"-O"),r||(r=["RCRTCLog","RCCall","RCRTC","RTC-A"].includes(t)?W.RTC:W.IM);var i=Date.now(),o="";try{var s=JSON.stringify(n);_(s)>=1e3?(s=function(e,t,n){if(void 0===n&&(n="utf-8"),!e||!t)return"";var r="utf-8"===n?3:2,i=0,o=0,s="";for(o=0;o<e.length;o++){if(e.charCodeAt(o)>255?i+=r:i++,i>t)return s;s+=e.charAt(o)}return e}(s,1e3),tt(K.G_UPLOAD_LOG_S,{msg:"Log length exceeds 1K",tagId:t})):s=n,o=(o=JSON.stringify({message:s,userId:Fe.userId})).replace(/"/g,'""'),o='"'.concat(o,'"')}catch(e){nt(K.G_UPLOAD_LOG_E,{name:e.name,message:e.message,stack:e.stack})}var a=Ge(e),c={sessionId:Pe,time:i,level:a,content:"".concat(Pe,",").concat(Date.now(),",").concat(r,",").concat(a,",").concat(t,",").concat(o,"\n"),userId:Fe.userId};return Be.push(c),c}function $e(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];console&&ze[e]&&ze[e].apply(ze,C(["".concat(t,":")],n,!1))}var Fe={localLogLevel:Z.WARN,userId:""},Qe=-1;Qe>=0&&(clearInterval(Qe),Qe=-1),"undefined"!=typeof window&&window&&window.indexedDB&&(Qe=setInterval((function(){Be.length&&function(e){return I(this,void 0,void 0,(function(){var t,n,r;return M(this,(function(i){switch(i.label){case 0:if(!(t=xe.getInstance()))return[3,6];i.label=1;case 1:return i.trys.push([1,4,,5]),[4,t.addList(Le,e)];case 2:return n=i.sent(),[4,t.getCount(Le,"time")];case 3:return i.sent()>1e5&&t.removeFirstData(Le,"time",2e3),[2,n];case 4:return r=i.sent(),nt(K.G_UPLOAD_LOG_E,{name:r.name,message:r.message,stack:r.stack}),[2,!1];case 5:return[3,7];case 6:return xe.init(),[2,!1];case 7:return[2]}}))}))}(Be.slice()).then((function(e){e&&(Be=[])}))}),3e3));var Ve=Date.now(),Ze=0;function We(){var e=Date.now();return Ve!==e&&(Ve=e,Ze=0),"".concat(Ve,"-").concat(Ze++)}function Ke(e){e.customLogPrint||delete e.customLogPrint,Fe=Object.assign(Fe,e)}function qe(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r={}),e>Z.DEBUG&&(r&&(n=Object.assign(n,r)),He(e,t,n,null==r?void 0:r.logSource)),e>=Fe.localLogLevel){var i="".concat((new Date).toISOString(),"[").concat(t,"][").concat(Z[e],"]"),o="".concat(i," - ").concat(Ye(n));Fe.customLogPrint?Fe.customLogPrint(e,o):$e(e,i,Ye(n))}}var Je,Xe=qe.bind(null,Z.DEBUG),et=qe.bind(null,Z.INFO),tt=qe.bind(null,Z.WARN),nt=qe.bind(null,Z.ERROR),rt=qe.bind(null,Z.FATAL),it=Object.freeze({__proto__:null,sessionId:Pe,logLevelTransformer:Ge,formatLogObj:Ye,insertIntoLogCache:He,_defaultStdout:$e,ID:We,init:Ke,log:qe,debug:Xe,info:et,warn:tt,error:nt,fatal:rt}),ot=function(e){if("browser"!==e.tag)return{type:e.tag,version:"UnKonw"};var t,n,r=navigator.userAgent,i={IE:/rv:([\d.]+)\) like Gecko|MSIE ([\d.]+)/,Edge:/Edge\/([\d.]+)/,Firefox:/Firefox\/([\d.]+)/,Opera:/(?:OPERA|OPR).([\d.]+)/,WeChat:/MicroMessenger\/([\d.]+)/,QQBrowser:/QQBrowser\/([\d.]+)/,Chrome:/Chrome\/([\d.]+)/,Safari:/Version\/([\d.]+).*Safari/,iOSChrome:/Mobile\/([\d.]+).*Safari/};for(var o in i)if(i.hasOwnProperty(o)){var s=r.match(i[o]);if(s){n=o,t=s[1]||s[2];break}}return{type:n||"UnKonw",version:t||"UnKonw"}},st=function(e){var t="RCDeviceId",n=h(e),r="",i=n.get(t);return i?r=i:(r=Ue(),n.set(t,r)),r},at=function(){function e(){}return e.compress=function(e){for(var t=this,n={},r=0;r<e.length-1;r++){var i=e.charAt(r)+e.charAt(r+1);n.hasOwnProperty(i)?n[i].push(r):n[i]=[r]}for(var o=[],s=[],a=function(){if(s.length>0){var e=s.join("");if(s=[],e.length>26){var n=t.numberEncode(e.length),r=String.fromCharCode(t.dataType.NormalExt|n.length);o.push(r+n)}else{var i=String.fromCharCode(t.dataType.Normal|e.length);o.push(i)}o.push(e)}},c=0;c<e.length;){var u=t.indexOf(n,e,c);if(u.length<2)s.push(e.charAt(c++));else if(u.length<4)s.push(e.substr(c,u.length)),c+=u.length;else{var l=t.numberEncode(c-u.offset),f=t.numberEncode(u.length);if(l.length+f.length>=u.length)s.push(e.substr(c,u.length)),c+=u.length;else{a();var h=String.fromCharCode(t.dataType.Compressed|l.length<<2|f.length);o.push(h+l+f),c+=u.length}}}a();var d=t.numberEncode(e.length),p=String.fromCharCode(t.dataType.Tail|d.length);return o.push(p+d),o.join("")},e.uncompress=function(e){var t=this,n=0,r="";e:do{var i=e.charCodeAt(n++),o=i&t.dataType.Mark,s=15&i,a=void 0;switch(o){case t.dataType.Compressed:var c=s>>2,u=3&s;if(0===c||0===u)throw new Error("Data parsing error,at "+n);var l=t.numberDecode(e.substr(n,c)),f=t.numberDecode(e.substr(n+=c,u));if((l=r.length-l)+f>r.length)throw new Error("Data parsing error,at "+n);n+=u,r+=r.substr(l,f);break;case t.dataType.Tail:if((a=t.numberDecode(e.substr(n,s)))!==r.length)throw console.log(r.length),console.log(a),new Error("Data parsing error,at "+n);n+=s;break e;case t.dataType.NormalExt:a=t.numberDecode(e.substr(n,s)),r+=e.substr(n+=s,a),n+=a;break;case t.dataType.Normal:r+=e.substr(n,s),n+=s;break;case t.dataType.Mark:if(s>10)throw new Error("Data parsing error,at "+n);r+=e.substr(n,16+s),n+=16+s;break;default:throw new Error("Data parsing error,at "+n+" header:"+o)}}while(n<e.length);return r},e.indexOf=function(e,t,n){var r={length:0,offset:-1};if(t.length,n>=t.length-1)return r;var i=e[t.charAt(n)+t.charAt(n+1)];if(i[0]===n)return r;for(var o=t.length-n,s=0,a=i.length;s<a;s++){var c=i[s],u=n-c;if(!(u>this.max)){var l=Math.min(o,u);if(l<=r.length)break;if(!(r.length>2&&t.charAt(c+r.length-1)!==t.charAt(n+r.length-1))){for(var f=2,h=f;h<l&&t.charAt(c+h)===t.charAt(n+h);h++)f++;f>=r.length&&(r.length=f,r.offset=c)}}}return r},e.numberEncode=function(e){var t=this,n=[],r=0;do{r=e%t.scale,n.push(t.chars.charAt(r)),e=(e-r)/t.scale}while(e>0);return n.join("")},e.numberDecode=function(e){for(var t=0,n=0,r=e.length-1;r>=0;r--){if(-1===(n=this.chars.indexOf(e.charAt(r))))throw new Error('decode number error, data is "'+e+'"');t=t*this.scale+n}return t},e.dataType={Tail:48,Compressed:64,NormalExt:80,Normal:96,Mark:112},e.chars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",e.scale=e.chars.length,e.max=238327,e}(),ct=function(e){return pe(e)&&/https?:\/\//.test(e)},ut=function(){function e(e){this.info=e,this.logUrl="logcollection.ronghub.com",this.level=1,this.itv=30,this.times=5,this.deviceId="",this.deviceInfo="",this.logSwitch=0,this.logUrl=e.logPolicy.url||this.logUrl,this.level=e.logPolicy.level||this.level,this.itv=e.logPolicy.itv||this.itv,this.times=e.logPolicy.times||this.times,this.deviceId=st(e.runtime),this.logSwitch=e.logSwitch;var t=ot(e.runtime);this.deviceInfo="".concat(t.type,"|").concat(t.version,"|").concat(null==e?void 0:e.sessionId)}return e.prototype.updateUploadLogAttr=function(e){var t=e.logPolicy,n=e.logSwitch,r=e.runtime,i=e.sessionId,o=void 0===i?"":i,s=e.userId;if(t){var a=t.url,c=t.level,u=t.itv,l=t.times;this.logUrl=a||this.logUrl,this.level=c||this.level,this.itv=u||this.itv,this.times=l||this.times}if(n&&(this.logSwitch=n),r){this.deviceId=st(r);var f=ot(r);this.deviceInfo="".concat(f.type,"|").concat(f.version,"|").concat(o)}s&&(this.info.userId=s)},e.init=function(t){return e.reportSwitch=!0,e._instance||(e._instance=new e(t)),e._instance},e.getInstance=function(){return e._instance},e.prototype.reportRealtimeLog=function(t){var n=this;if(0===t.length||!this.logUrl)return Promise.resolve();var r=at.compress(t.map((function(e){return e.content})).join("")),i=ct(this.logUrl)?"":"https://",o="".concat(i).concat(this.logUrl,"?version=").concat(this.info.version,"&appkey=").concat(this.info.appkey,"&userId=").concat(this.info.userId,"&deviceId=").concat(this.deviceId,"&deviceInfo=").concat(this.deviceInfo,"&platform=Web");return this.info.runtime.httpReq({method:"POST",url:o,body:r}).then((function(t){var r=t.data;r&&(r=JSON.parse(r),n.itv=r.nextTime,n.level=r.level,n.logSwitch=r.logSwitch,e.currentRTTimes=1)}))},e.prototype.reportFullLog=function(t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l,f,h,d=this;return M(this,(function(p){switch(p.label){case 0:return e.reportSwitch||tt(K.L_REPORT_FULL_LOG_O,{reportSwitch:!1}),n=t.startTime,r=t.endTime,i=t.platform,o=t.logId,s=t.uri,a=xe.getInstance(),"web"===i.toLowerCase()&&a?n>r?[2]:[4,a.getRangeData(Le,"time",n,r)]:[2];case 1:return c=(c=p.sent()).filter((function(e){return!e.userId||e.userId===d.info.userId})),u=c.length,l=at.compress(c.map((function(e){return e.content})).join("")||"no data"),f=1,h=function(){if(f>3||!e.reportSwitch)return Promise.resolve();var t=s||d.logUrl,n=ct(t)?"":"https://",r="".concat(n).concat(t,"?version=").concat(d.info.version,"&appkey=").concat(d.info.appkey,"&userId=").concat(d.info.userId,"&logId=").concat(o,"&deviceId=").concat(d.deviceId,"&deviceInfo=").concat(d.deviceInfo,"&platform=Web"),i=5e3*(f-1);return f++,new Promise((function(n){setTimeout((function(){var i=We();et(K.L_REPORT_FULL_LOG_T,{currentTimes:f-1,reportSwitch:e.reportSwitch,uri:t,length:u},{traceId:i}),e.reportSwitch&&d.info.runtime.httpReq({url:r,method:"POST",body:l}).then((function(e){var t=e.status,r=e.data;200!==t?(tt(K.L_REPORT_FULL_LOG_R,{status:t,data:r},{traceId:i}),n(h())):(et(K.L_REPORT_FULL_LOG_R,{status:t,data:r},{traceId:i}),n())}))}),i)}))},[2,h()]}}))}))},e.prototype.distroy=function(){e.currentRTTimes=1,e.reportSwitch=!1},e.currentRTTimes=1,e.reportSwitch=!1,e}(),lt=[],ft=-1;function ht(e){null==Je||Je.updateUploadLogAttr(e)}function dt(e,t,n,r){He(4-e,t,n);var i=JSON.stringify({message:n});i=i.replace(/"/g,'""'),i='"'.concat(i,'"');var o={level:e,content:"".concat([Pe,Date.now(),r||W.IM,e,t,i].join(),"\n")};lt.push(o),lt.length>=600&&(lt=lt.slice(-500))}function pt(){if(ft>=0&&(clearTimeout(ft),ft=-1),Je&&Je.logSwitch&&ut.reportSwitch){var e=Je.itv*Math.pow(2,ut.currentRTTimes-1);ut.currentRTTimes<Je.times&&ut.currentRTTimes++,ft=setTimeout((function(){var e=lt.filter((function(e){return e.level<=Je.level}));0===e.length?pt():Je.reportRealtimeLog(e).then((function(){lt=[],et(K.G_UPLOAD_LOG_S,"report real-time log success"),pt()})).catch((function(e){et(K.G_UPLOAD_LOG_E,"report real-time log error -> ".concat(e)),pt()}))}),1e3*e)}}var gt=function(){function e(e,t,n){this.tagId=e,this.logSource=t,this.initiator=n,this._localLogLevel=Z.WARN,this.debug=this.log.bind(this,Z.DEBUG),this.info=this.log.bind(this,Z.INFO),this.warn=this.log.bind(this,Z.WARN),this.error=this.log.bind(this,Z.ERROR),this.fatal=this.log.bind(this,Z.FATAL),this.reportLog=dt}return e.prototype.setLogLevel=function(e){this._localLogLevel="number"!=typeof e?Z.WARN:e},e.prototype.setLogStdout=function(e){this._customLogPrint=e},e.prototype.log=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(e>Z.DEBUG&&He(e,this.tagId,t.map(Ye).join(" ")),!(e<this._localLogLevel)){var r="".concat((new Date).toISOString(),"[").concat(this.tagId,"][").concat(Z[e],"]"),i="".concat(r," - ").concat(t.map(Ye).join(" "));this._customLogPrint?this._customLogPrint(e,i):this._stdout?this._stdout(e,i):$e.apply(void 0,C([e,r],t,!1))}},e.prototype.set=function(e,t){this.warn("logger.set has being deprecated!")},e.prototype.setStdout=function(e){this._stdout=e},e}(),vt=new gt("RCEngine"),yt=function(){function e(){this._map={}}return e.prototype.on=function(e,t,n){var r=this._map[e]||(this._map[e]=[]);r.some((function(e){return e.listener===t&&e.target===n}))||r.push({listener:t,target:n})},e.prototype.once=function(e,t,n){var r=this._map[e]||(this._map[e]=[]);r.some((function(e){return e.listener===t&&e.target===n}))||r.push({listener:t,target:n,once:!0})},e.prototype.off=function(e,t,n){var r=this._map[e];r&&((r=r.filter((function(e){return e.listener!==t||e.target!==n}))).length?this._map[e]=r:delete this._map[e])},e.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this._map[e];if(r)for(var i=r.length-1;i>=0;i-=1){var o=r[i],s=o.target,a=o.once,c=o.listener;a&&r.splice(i,1);try{c.call.apply(c,C([s],t,!1))}catch(e){vt.error(e)}}},e.prototype.removeAll=function(e){delete this._map[e]},e.prototype.clear=function(){Object.keys(this._map).forEach(this.removeAll,this)},e}(),mt="undefined"!=typeof window&&window?(window.__RCVersionInfo||(window.__RCVersionInfo={}),window.__RCVersionInfo):{};mt.engine="5.5.3";var It,Mt,Ct=function(){function e(){}return e.add=function(e,t){mt[e]=t},e.validEngine=function(e){var t=e.match(/\d+\.\d+\.\d+/);if(!t)return vt.warn("The validation engine version '".concat(e,"' is invalid!")),!1;var n=t[0].split(".").map((function(e){return e.padStart(3,"0")})).join("");return mt.engine.match(/\d+\.\d+\.\d+/)[0].split(".").map((function(e){return e.padStart(3,"0")})).join("")>=n},e.getInfo=function(){return mt},e}();!function(e){e[e.STRING=0]="STRING",e[e.ONLY_STRING=1]="ONLY_STRING",e[e.NUMBER=2]="NUMBER",e[e.BOOLEAN=3]="BOOLEAN",e[e.OBJECT=4]="OBJECT",e[e.ARRAY=5]="ARRAY",e[e.CALLBACK=6]="CALLBACK",e[e.CHANNEL_ID=7]="CHANNEL_ID",e[e.CONVERSATION=8]="CONVERSATION"}(Mt||(Mt={}));var Tt,At,_t,bt,Nt,Et=((It={})[Mt.STRING]=Ie,It[Mt.ONLY_STRING]=pe,It[Mt.NUMBER]=ve,It[Mt.BOOLEAN]=function(e){return"boolean"==typeof e},It[Mt.OBJECT]=Ce,It[Mt.ARRAY]=ye,It[Mt.CALLBACK]=function(e){var t=!0;return Ce(e)||(t=!1),(e=e||{}).onSuccess&&!Te(e.onSuccess)&&(t=!1),e.onError&&!Te(e.onError)&&(t=!1),t},It[Mt.CHANNEL_ID]=Se,It[Mt.CONVERSATION]=function(e){var t=!0;return Ce(e)||(t=!1),pe(e.targetId)||(t=!1),Ee(e.conversationType)||(t=!1),Ae(e.channelId)||Se(e.channelId)||(t=!1),t},It),wt=function(e){function t(t){var n=e.call(this,t)||this;return n.name="RCAssertError",n}return y(t,e),t}(Error),St=function(e,t,n,r){if(void 0===r&&(r=!1),!Ot(e,t,n,r))throw new wt("'".concat(e,"' is invalid: ").concat(JSON.stringify(t)))},Ot=function(e,t,n,r){void 0===r&&(r=!1),n=Et[n]||n;var i=r&&!n(t)||!r&&!(Ae(t)||null===t||n(t));return i&&vt.error("'".concat(e,"' is invalid: ").concat(JSON.stringify(t))),!i},Dt=function(e){if(!Ce(e)||void 0===e.low||void 0===e.high)return e;var t=e.low;return t<0&&(t+=4294967296),t=t.toString(16),parseInt(e.high.toString(16)+"00000000".replace(new RegExp("0{".concat(t.length,"}$")),t),16)},Lt=function(e,t){var n=Math.floor(1e3*Math.random()%1e4),r=ke(),i=function(e){e=e||"-";var t=new Date,n=t.getFullYear(),r=t.getMonth()+1,i=t.getDate();return"".concat(n).concat(e).concat(r).concat(e).concat(i)}(),o=(new Date).getTime(),s="";if(t){var a=t.split(".");s=".".concat(a[a.length-1])}return"".concat(e,"__RC-").concat(i,"_").concat(n,"_").concat(o).concat(r).concat(s)},Rt=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=e.threadId,r=e.apnsCollapseId,i=e.category,o=e.richMediaUri,s=t.channelIdMi,a=t.channelIdHW,c=t.channelIdOPPO,u=t.typeVivo,l=t.googleConfig,f={};f["thread-id"]=n||"",f["apns-collapse-id"]=r||"",f.category=i||"",f.richMediaUri=o||"";var h={};h.collapse_key=null==l?void 0:l.collapseKey,h.imageUrl=null==l?void 0:l.imageUrl;var d=null==l?void 0:l.priority;d&&!["high","normal"].includes(d)&&(d="normal"),h.priority=d;var p=[{HW:{channelId:a||""}},{MI:{channelId:s||""}},{OPPO:{channelId:c||""}},{VIVO:{classification:u||""}},{APNS:f},{FCM:h}];return JSON.stringify(p)},jt=function(e,t){var n={},r={notificationId:t||""};if(!e)return{iOSConfig:n,androidConfig:r};try{var i=JSON.parse(e);null==i||i.forEach((function(e){var t,i,o,s,a=Object.keys(e);if(0!==a.length){var c=a[0];switch(c){case"HW":return void(r.channelIdHW=null===(t=e[c])||void 0===t?void 0:t.channelId);case"MI":return void(r.channelIdMi=null===(i=e[c])||void 0===i?void 0:i.channelId);case"OPPO":return void(r.channelIdOPPO=null===(o=e[c])||void 0===o?void 0:o.channelId);case"VIVO":return void(r.typeVivo=null===(s=e[c])||void 0===s?void 0:s.classification);case"APNS":return n.threadId=e[c]["thread-id"],n.apnsCollapseId=e[c]["apns-collapse-id"],n.category=e[c].category,void(n.richMediaUri=e[c].richMediaUri);case"FCM":r.googleConfig={collapseKey:e[c].collapse_key||"",imageUrl:e[c].imageUrl||"",priority:e[c].priority||""}}}}))}catch(t){vt.error("Wrong format for pushConfigs field! content: ".concat(e))}return{iOSConfig:n,androidConfig:r}},xt=function(e){var t=/^[A-Za-z0-9_=+-]+$/.test(e),n=e.length;return t&&n<=128&&n>=1},kt=function(e){var t=e.length;return t<=4096&&t>=1},Ut=(Tt=0,function(){var e=((4294967295&Date.now())>>>0).toString(2),t=Math.floor(Math.random()*(Math.pow(2,20)-1)),n=e+Tt.toString(2).padStart(11,"0")+t.toString(2).padStart(20,"0");return Tt=2047&++Tt,parseInt(n,2)}),Pt=function(e,t,n){var r=null==n?void 0:n.isReverse;Ce(e)&&function(){for(var n in e)t(e[n],n,e)}(),(ye(e)||pe(e))&&function(){if(r)for(var n=e.length-1;n>=0;n--)t(e[n],n);else for(var i=0,o=e.length;i<o;i++)t(e[i],i)}()},zt=function(e,t){return Pt(e,(function(n,r){e[r]=t(n,r)})),e},Gt=function(e,t){if(e.indexOf)return e.indexOf(t);var n=-1;return Pt(e,(function(e,r){t===e&&(n=r)})),n},Bt=function(e,t){var n=[];return Pt(e,(function(e){n.push(e)})),-1!==Gt(n,t)},Yt=function(e){return JSON.parse(JSON.stringify(e))},Ht=function(){return"undefined"!=typeof RCCppEngine},$t=function(e){switch(e){case U.SERVER_UNAVAILABLE:return L.SERVER_UNAVAILABLE;case U.TOKEN_INCORRECT:return L.RC_CONN_USER_OR_PASSWD_ERROR;case U.REDIRECT:return L.RC_CONN_REDIRECTED;case U.APP_BLOCK_OR_DELETE:return L.RC_CONN_APP_BLOCKED_OR_DELETED;case U.BLOCK:return L.RC_CONN_USER_BLOCKED;case U.TOKEN_EXPIRE:return L.RC_CONN_USER_OR_PASSWD_ERROR;case U.HOSTNAME_ERROR:return L.HOSTNAME_ERROR;case U.HASOHTERSAMECLIENTONLINE:return L.HAS_OHTER_SAME_CLIENT_ON_LINE;case U.APP_AUTH_NOT_PASS:return L.RC_APP_AUTH_NOT_PASS;case U.OTP_USED:return L.RC_OTP_USED;case U.PLATFORM_ERROR:return L.RC_PLATFORM_ERROR;default:return L.RC_NET_UNAVAILABLE}},Ft=function(e){var t;if("object"==typeof e&&null!==e)if(Array.isArray(e))for(var n in t=[],e)t.push(Ft(e[n]));else for(var n in t={},e)t[n]=Ft(e[n]);else t=e;return t},Qt=function(e){var t;try{t=Ft(e)}catch(o){vt.error("clone err:",o),t=JSON.parse(JSON.stringify(e))}return t},Vt=function(e){var t={},n=JSON.parse(e);return Pt(n,(function(e,n){t[n]=e.v})),t},Zt={_delayTime:0,setTime:function(e){var t=(new Date).getTime();Zt._delayTime=t-e},getTime:function(){var e=Zt._delayTime;return(new Date).getTime()-e}},Wt=function(e,t){var n=0;return e.isAutoDelete&&(n|=1),e.isOverwrite&&(n|=2),2===t&&(n|=4),n};!function(e){e[e.AT_MOST_ONCE=0]="AT_MOST_ONCE",e[e.AT_LEAST_ONCE=1]="AT_LEAST_ONCE",e[e.EXACTLY_ONCE=2]="EXACTLY_ONCE",e[e.DEFAULT=3]="DEFAULT"}(At||(At={})),function(e){e[e.SYMMETRIC=0]="SYMMETRIC",e[e.CONNECT=1]="CONNECT",e[e.CONN_ACK=2]="CONN_ACK",e[e.PUBLISH=3]="PUBLISH",e[e.PUB_ACK=4]="PUB_ACK",e[e.QUERY=5]="QUERY",e[e.QUERY_ACK=6]="QUERY_ACK",e[e.QUERY_CONFIRM=7]="QUERY_CONFIRM",e[e.SUBSCRIBE=8]="SUBSCRIBE",e[e.SUB_ACK=9]="SUB_ACK",e[e.UNSUBSCRIBE=10]="UNSUBSCRIBE",e[e.UNSUB_ACK=11]="UNSUB_ACK",e[e.PING_REQ=12]="PING_REQ",e[e.PING_RESP=13]="PING_RESP",e[e.DISCONNECT=14]="DISCONNECT",e[e.RESERVER2=15]="RESERVER2"}(_t||(_t={})),function(e){e.PUB="pub",e.QUERY="qry"}(bt||(bt={})),function(e){e[e.V4=4]="V4",e[e.V3=3]="V3"}(Nt||(Nt={}));var Kt,qt=function(){function e(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=At.AT_LEAST_ONCE),void 0===r&&(r=!1),this._retain=!1,this.qos=At.AT_LEAST_ONCE,this._dup=!1,this.syncMsg=!1;var i=e>0;e&&i&&1===arguments.length?(this._retain=(1&e)>0,this.qos=(6&e)>>1,this._dup=(8&e)>0,this.type=e>>4&15,this.syncMsg=8==(8&e)):(this.type=e,this._retain=t,this.qos=n,this._dup=r)}return e.prototype.encode=function(){var e=this.type<<4;return e|=this._retain?1:0,e|=this.qos<<1,e|(this._dup?8:0)},e}(),Jt=function(){function e(){}return e.writeUTF=function(e,t){var n=[],r=0;if(pe(e))for(var i=0,o=e.length;i<o;i++){var s=e.charCodeAt(i);s>=0&&s<=127?(r+=1,n.push(s)):s>=128&&s<=2047?(r+=2,n.push(192|31&s>>6),n.push(128|63&s)):s>=2048&&s<=65535&&(r+=3,n.push(224|15&s>>12),n.push(128|63&s>>6),n.push(128|63&s))}for(i=0,o=n.length;i<o;i++)n[i]>255&&(n[i]&=255);return t?n:r<=255?[0,r].concat(n):[r>>8,255&r].concat(n)},e.readUTF=function(e){for(var t,n,r=[],i=-1,o=e,s="";++i<o.length;){var a=Number(o[i]);if(a===(127&a)||(240==(240&a)?a=(a=(a=(a^=240)<<6|128^o[++i])<<6|128^o[++i])<<6|128^o[++i]:224==(224&a)?a=(a=(a^=224)<<6|128^o[++i])<<6|128^o[++i]:192==(192&a)&&(a=(a^=192)<<6|128^o[++i])),!Number.isFinite(a)||a<0||a>1114111||Math.floor(a)!==a)throw RangeError("Invalid code point: ".concat(a));a<=65535?r.push(a):(t=(a-=65536)>>10|55296,n=a%1024|56320,r.push(t,n)),(i+1===o.length||r.length>16384)&&(s+=String.fromCharCode.apply(null,r),r.length=0)}return s},e}(),Xt=function(){function e(e){this._position=0,this._poolLen=0,this._pool=e,this._poolLen=e.length}return e.prototype.check=function(){return this._position>=this._pool.length},e.prototype.read2Byte=function(){var e=this;if(e.check())return-1;for(var t="",n=0;n<2;n++){var r=e._pool[e._position++].toString(16);1===r.length&&(r="0".concat(r)),t+=r.toString()}return parseInt(t,16)},e.prototype.readInt=function(){var e=this;if(e.check())return-1;for(var t="",n=0;n<4;n++){var r=e._pool[e._position++].toString(16);1===r.length&&(r="0".concat(r)),t+=r.toString()}return parseInt(t,16)},e.prototype.readLong=function(){var e=this;if(e.check())return-1;for(var t="",n=0;n<8;n++){var r=e._pool[e._position++].toString(16);1===r.length&&(r="0".concat(r)),t+=r}return parseInt(t,16)},e.prototype.readByte=function(){if(this.check())return-1;var e=this._pool[this._position++];return e>255&&(e&=255),e},e.prototype.readUTF=function(){if(this.check())return"";var e=this.readByte()<<8|this.readByte(),t=this._pool.subarray(this._position,this._position+=e);return Jt.readUTF(t)},e.prototype.readAll=function(){return this._pool.subarray(this._position,this._poolLen)},e}(),en=function(){function e(){this._pool=[],this._position=0,this._writen=0}return e.prototype.write=function(e){return-1!==Object.prototype.toString.call(e).indexOf("Array")?this._pool=this._pool.concat(e):e>=0&&(e>255&&(e&=255),this._pool.push(e),this._writen++),e},e.prototype.writeArr=function(e){return this._pool=this._pool.concat(e),e},e.prototype.writeUTF=function(e){var t=Jt.writeUTF(e);this._pool=this._pool.concat(t),this._writen+=t.length},e.prototype.getBytesArray=function(){return this._pool},e}(),tn="UpStreamMessage",nn="PushExtra",rn="DownStreamMessage",on="DownStreamMessages",sn="SessionsAttQryInput",an="SessionsAttOutput",cn="SyncRequestMsg",un="ChrmPullMsg",ln="NotifyMsg",fn="HistoryMsgInput",hn="HistoryMsgOuput",dn="RelationQryInput",pn="RelationsOutput",gn="UnreadMsgInfo",vn="DeleteSessionsInput",yn="SessionInfo",mn="DeleteSessionsOutput",In="RelationsInput",Mn="DeleteMsgInput",Cn="CleanHisMsgInput",Tn="SessionMsgReadInput",An="ChrmInput",_n="ChrmOutput",bn="QueryChatRoomInfoInput",Nn="QueryChatRoomInfoOutput",En="GetQNupTokenInput",wn="GetQNupTokenOutput",Sn="GetQNdownloadUrlInput",On="GetDownloadUrlInput",Dn="GetQNdownloadUrlOutput",Ln="GetDownloadUrlOutput",Rn="ChrmKVEntity",jn="SetChrmKV",xn="SetChrmKVS",kn="DeleteChrmKVS",Un="ChrmKVOutput",Pn="ChrmKVSOutput",zn="ChrmKVSVersionEntity",Gn="ChrmKVSOutputEntity",Bn="QueryChrmKV",Yn="SetUserSettingInput",Hn="SetUserSettingOutput",$n="PullUserSettingInput",Fn="PullUserSettingOutput",Qn="UserSettingNotification",Vn="SessionReq",Zn="SessionStates",Wn="SessionState",Kn="SessionStateItem",qn="SessionStateModifyReq",Jn="SessionStateModifyResp",Xn="GroupUnpushQuery",er="GroupUnpushSet",tr="QryRemindListReq",nr="QryRemindListResp",rr="GroupUnpushResult",ir="GrpReadReceiptMsg",or="GrpReadReceiptQryReq",sr="GrpReadReceiptQryResp",ar="GrpMsgReadUser",cr="SessionTagAddInput",ur="SessionTagItem",lr="SessionTagDelInput",fr="SessionDisTagReq",hr="ReportSDKInput",dr="ReportSDKOutput",pr="UltraGrpPullSes",gr="UltraGrpPullMsg",vr="MsgChangeReq",yr="QueryMsgChange",mr="MsgChange",Ir="MsgChangeList",Mr="MsgQuery",Cr="MessageQueryInfo",Tr="MsgQueryAck",Ar="OperateStatus",_r="OperateStatusNotify",br="OperateInfo",Nr="OperateSummary",Er="SetRtcRoomIdInput",wr="SetRtcRoomIdOutput",Sr=((Kt={})[tn]=["sessionId","classname","content","pushText","userId","configFlag","clientUniqueId","appData","extraContent","pushExt","busChannel"],Kt[on]=["list","syncTime","finished","broadcastSyncTime"],Kt[rn]=["fromUserId","type","groupId","classname","content","dataTime","status","msgId","extraContent","pushContent","configFlag","pushExt","busChannel","extStatus","toUserId","groupUnpush"],Kt[nn]=["title","templateIdNoUse","pushId","pushConfigs","templateId"],Kt[sn]=["nothing"],Kt[an]=["inboxTime","sendboxTime","totalUnreadCount"],Kt[cn]=["syncTime","ispolling","isweb","isPullSend","isKeeping","sendBoxSyncTime","broadcastSyncTime"],Kt[un]=["syncTime","count"],Kt[ln]=["type","time","chrmId"],Kt[fn]=["targetId","time","count","order","busChannel"],Kt[hn]=["list","syncTime","hasMsg"],Kt[dn]=["type","count","startTime","order"],Kt[pn]=["info","isFinished"],Kt[gn]=["msgId","msgTime","remindType"],Kt[vn]=["sessions"],Kt[yn]=["type","channelId","busChannel"],Kt[mn]=["nothing"],Kt[In]=["type","msg","count","busChannel","startTime","endTime"],Kt[Mn]=["type","conversationId","msgs","busChannel"],Kt[Cn]=["targetId","dataTime","conversationType","busChannel"],Kt[Tn]=["type","msgTime","channelId","busChannel"],Kt[An]=["nothing"],Kt[_n]=["nothing","sessionId","joinTime"],Kt[bn]=["count","order"],Kt[Nn]=["userTotalNums","userInfos"],Kt[En]=["type","key","httpMethod","queryString"],Kt[Sn]=["type","key","fileName"],Kt[On]=["type","key","fileName"],Kt[wn]=["deadline","token","bosToken","bosDate","path","osskeyId","ossPolicy","ossSign","ossBucketName"],Kt[Dn]=["downloadUrl"],Kt[Ln]=["downloadUrl"],Kt[Rn]=["key","value","status","timestamp","uid","version"],Kt[jn]=["entry","bNotify","notification","type"],Kt[xn]=["entry","bNotify","notification","type"],Kt[kn]=["entry","bNotify","notification","type"],Kt[Un]=["entries","bFullUpdate","syncTime"],Kt[Pn]=["timestamp","errorKeys","keysVersion"],Kt[zn]=["version","key"],Kt[Gn]=["key","errorCode"],Kt[Bn]=["timestamp"],Kt[Yn]=["version","value"],Kt[Hn]=["version","reserve"],Kt[$n]=["version","reserve"],Kt[Fn]=["items","version"],Kt.UserSettingItem=["targetId","type","key","value","version","status","tags"],Kt[Vn]=["time"],Kt[Zn]=["version","state"],Kt[Wn]=["type","channelId","time","stateItem","busChannel"],Kt[Kn]=["sessionStateType","value","tags"],Kt[qn]=["version","state"],Kt[Jn]=["version"],Kt[er]=["busChannel","unpushLevel"],Kt[tr]=["groupId","busChannel","msgTime","size"],Kt[Xn]=["busChannel"],Kt[rr]=["groupId","busChannel","unpushLevel"],Kt[ir]=["msgId","busChannel"],Kt[or]=["msgId","busChannel"],Kt[sr]=["totalMemberNum","list"],Kt[ar]=["readTime","userId"],Kt[cr]=["version","tags"],Kt[ur]=["tagId","name","createdTime","isTop"],Kt[lr]=["version","tags"],Kt[fr]=["tagId"],Kt[Qn]=["version","reserve"],Kt[hr]=["sdkInfo"],Kt[dr]=["nothing"],Kt[pr]=["syncTime","isEraseMsgContent"],Kt[gr]=["syncTime"],Kt[vr]=["fromUserId","targetId","type","busChannel","msgUID","msgTime","content"],Kt[yr]=["syncTime"],Kt[Ir]=["list","syncTime","hasNext"],Kt[mr]=["targetId","type","time","changeType","msgUID","msgTime","busChannel","isAdmin","isDel","operatorId","subChangeType"],Kt[Mr]=["targetId","type","query"],Kt[Cr]=["msgTime","msgUID","busChannel"],Kt[Tr]=["list"],Kt[Ar]=["targetId","type","opType","busChannel"],Kt[_r]=["type","notifyType","info","summary"],Kt[br]=["targetId","busChannel","userId","opType","optime"],Kt[Nr]=["targetId","busChannel","count","opType"],Kt[Er]=["rtcRoomId"],Kt[wr]=["nothing"],Kt),Or="\npackage Modules;\nmessage probuf {\n message SetUserStatusOutput\n {\n optional int32 nothing=1;\n }\n\n message GetUserStatusInput\n {\n optional int32 nothing=1;\n }\n\n message GetUserStatusOutput\n {\n optional string status=1;\n optional string subUserId=2;\n }\n\n message SubUserStatusInput\n {\n repeated string userid =1;\n }\n\n message SubUserStatusOutput\n {\n optional int32 nothing=1;\n }\n message VoipDynamicInput\n {\n required int32 engineType = 1;\n required string channelName = 2;\n optional string channelExtra = 3;\n }\n\n message VoipDynamicOutput\n {\n required string dynamicKey=1;\n }\n message ".concat(ln," {\n required int32 type = 1;\n optional int64 time = 2;\n optional string chrmId=3;\n }\n message ").concat(cn," {\n required int64 syncTime = 1;\n required bool ispolling = 2;\n optional bool isweb=3;\n optional bool isPullSend=4;\n optional bool isKeeping=5;\n optional int64 sendBoxSyncTime=6;\n optional int64 broadcastSyncTime=7;\n }\n message ").concat(tn," {\n required int32 sessionId = 1;\n required string classname = 2;\n required bytes content = 3;\n optional string pushText = 4;\n optional string appData = 5;\n repeated string userId = 6;\n optional int64 delMsgTime = 7;\n optional string delMsgId = 8;\n optional int32 configFlag = 9;\n optional int64 clientUniqueId = 10;\n optional string extraContent = 11;\n optional PushExtra pushExt = 12;\n optional string busChannel = 13; // 该消息所属会话的业务标识\n }\n message ").concat(nn," {\n optional string title = 1;\n optional int32 templateIdNoUse= 2;\n optional string pushId = 3;\n optional string pushConfigs = 4;\n optional string templateId = 5;\n }\n message ").concat(on," {\n repeated DownStreamMessage list = 1;\n required int64 syncTime = 2;\n optional bool finished = 3;\n optional int64 broadcastSyncTime = 4;\n }\n message ").concat(rn," {\n required string fromUserId = 1;\n required ChannelType type = 2;\n optional string groupId = 3;\n required string classname = 4;\n required bytes content = 5;\n required int64 dataTime = 6;\n required int64 status = 7;\n optional int64 extra = 8;\n optional string msgId = 9;\n optional int32 direction = 10;\n optional int32 plantform =11;\n optional int32 isRemoved = 12;\n optional string source = 13;\n optional int64 clientUniqueId = 14;\n optional string extraContent = 15;\n optional string pushContent = 16;\n optional int32 configFlag = 17;\n optional PushExtra pushExt = 18;\n optional string busChannel = 19; // 该消息所属会话的业务标识,限制20字符以内\n // 消息的扩展标记\n // 第0位,表示送达状态: 0x01 表示已送达;\n // 断档: 0x02 表示是否需要执行断档策略;\n // 消息修改: 0x04 拉取历史消息时表示该消息是否修改过\n // 0x08 每条消息携带的频道类型\n optional int64 extStatus = 20;\n repeated string toUserId = 21; //指定接收者(限定群和讨论组)//增加聊天室定向成员\n optional int32 groupUnpush = 22; //群聊默认免打扰级别\n }\n enum ChannelType {\n PERSON = 1;\n PERSONS = 2;\n GROUP = 3;\n TEMPGROUP = 4;\n CUSTOMERSERVICE = 5;\n NOTIFY = 6;\n MC=7;\n MP=8;\n ULTRAGROUP = 10;\n }\n message CreateDiscussionInput {\n optional string name = 1;\n }\n message CreateDiscussionOutput {\n required string id = 1;\n }\n message ChannelInvitationInput {\n repeated string users = 1;\n }\n message LeaveChannelInput {\n required int32 nothing = 1;\n }\n message ChannelEvictionInput {\n required string user = 1;\n }\n message RenameChannelInput {\n required string name = 1;\n }\n message ChannelInfoInput {\n required int32 nothing = 1;\n }\n message ChannelInfoOutput {\n required ChannelType type = 1;\n required string channelId = 2;\n required string channelName = 3;\n required string adminUserId = 4;\n repeated string firstTenUserIds = 5;\n required int32 openStatus = 6;\n }\n message ChannelInfosInput {\n required int32 page = 1;\n optional int32 number = 2;\n }\n message ChannelInfosOutput {\n repeated ChannelInfoOutput channels = 1;\n required int32 total = 2;\n }\n message MemberInfo {\n required string userId = 1;\n required string userName = 2;\n required string userPortrait = 3;\n required string extension = 4;\n }\n message GroupMembersInput {\n required int32 page = 1;\n optional int32 number = 2;\n }\n message GroupMembersOutput {\n repeated MemberInfo members = 1;\n required int32 total = 2;\n }\n message GetUserInfoInput {\n required int32 nothing = 1;\n }\n message GetUserInfoOutput {\n required string userId = 1;\n required string userName = 2;\n required string userPortrait = 3;\n }\n message GetSessionIdInput {\n required int32 nothing = 1;\n }\n message GetSessionIdOutput {\n required int32 sessionId = 1;\n }\n enum FileType {\n image = ").concat(w.IMAGE,";\n audio = ").concat(w.AUDIO,";\n video = ").concat(w.VIDEO,";\n file = ").concat(w.FILE,";\n }\n message ").concat(En," {\n required FileType type = 1;\n optional string key = 2;\n optional string httpMethod = 3;\n optional string queryString = 4;\n }\n message ").concat(Sn," {\n required FileType type = 1;\n required string key = 2;\n optional string fileName = 3;\n }\n message ").concat(On," {\n required FileType type = 1;\n required string key = 2;\n optional string fileName = 3;\n }\n message ").concat(wn," {\n required int64 deadline = 1;\n required string token = 2;\n optional string bosToken = 3;\n optional string bosDate = 4;\n optional string path = 5;\n optional string osskeyId = 6;\n optional string ossPolicy = 7;\n optional string ossSign = 8;\n optional string ossBucketName = 9;\n optional string s3Credential = 10;\n optional string s3Algorithm = 11;\n optional string s3Date = 12;\n optional string s3Policy = 13;\n optional string s3Signature = 14;\n optional string s3BucketName = 15;\n optional string stcAuthorization = 16;\n optional string stcContentSha256 = 17;\n optional string stcDate = 18;\n optional string stcBucketName = 19;\n }\n message ").concat(Dn," {\n required string downloadUrl = 1;\n }\n message ").concat(Ln," {\n required string downloadUrl = 1;\n }\n message Add2BlackListInput {\n required string userId = 1;\n }\n message RemoveFromBlackListInput {\n required string userId = 1;\n }\n message QueryBlackListInput {\n required int32 nothing = 1;\n }\n message QueryBlackListOutput {\n repeated string userIds = 1;\n }\n message BlackListStatusInput {\n required string userId = 1;\n }\n message BlockPushInput {\n required string blockeeId = 1;\n }\n message ModifyPermissionInput {\n required int32 openStatus = 1;\n }\n message GroupInput {\n repeated GroupInfo groupInfo = 1;\n }\n message GroupOutput {\n required int32 nothing = 1;\n }\n message GroupInfo {\n required string id = 1;\n required string name = 2;\n }\n message GroupHashInput {\n required string userId = 1;\n required string groupHashCode = 2;\n }\n message GroupHashOutput {\n required GroupHashType result = 1;\n }\n enum GroupHashType {\n group_success = 0x00;\n group_failure = 0x01;\n }\n message ").concat(An," {\n required int32 nothing = 1;\n }\n message ").concat(_n," {\n required int32 nothing = 1;\n optional string sessionId = 2;\n optional int64 joinTime = 3;\n }\n message ").concat(un," {\n required int64 syncTime = 1;\n required int32 count = 2;\n }\n\n message ChrmPullMsgNew\n {\n required int32 count = 1;\n required int64 syncTime = 2;\n optional string chrmId=3;\n }\n message ").concat(dn,"\n {\n optional ChannelType type = 1;\n optional int32 count = 2;\n optional int64 startTime = 3;\n optional int32 order = 4;\n }\n message ").concat(In,"\n {\n required ChannelType type = 1;\n optional DownStreamMessage msg =2;\n optional int32 count = 3;\n repeated string busChannel = 4;\n optional int64 startTime = 5;\n optional int64 endTime = 6;\n }\n message ").concat(pn,"\n {\n repeated RelationInfo info = 1;\n optional bool isFinished = 2;//是否结束\n }\n message RelationInfo\n {\n required ChannelType type = 1;\n required string userId = 2;\n optional DownStreamMessage msg =3;\n optional int64 readMsgTime= 4;\n optional int64 unreadCount= 5;\n optional string busChannel = 6;//该消息所属会话的业务标识\n optional int64 versionTime = 7;//会话项变更时间戳,注意:非排序时间戳\n optional int64 remindCount = 8;//被@的未读数\n optional int32 busChannelType = 9; // 0: 公有频道; 1: 私有频道;\n optional ").concat(gn," msgInfo = 10;// 新增 首条未读消息信息,可为空\n }\n message ").concat(gn," //未读消息摘要信息\n {\n required string msgId = 1; //消息唯一标示\n required int64 msgTime= 2;//消息时间\n optional int32 remindType= 3;//@类型。查询会话时无此字段。查询未读@列表时返回\n }\n message ").concat(tr," // 新增 查询未读@列表入参\n {\n required string groupId = 1; // 群 ID\n optional string busChannel = 2; // 频道(channelId,可以为空)\n optional int64 msgTime = 3; // 消息时间戳\n optional int32 size = 4; // 单页长度,默认20,最大20\n }\n message ").concat(nr," //查询未读@列表出参\n {\n repeated ").concat(gn," msgInfo = 1; //未读@消息摘要列表\n }\n message RelationInfoReadTime\n {\n required ChannelType type = 1;\n required int64 readMsgTime= 2;\n required string targetId = 3;\n }\n message ").concat(Cn,"\n {\n required string targetId = 1;\n required int64 dataTime = 2;\n optional int32 conversationType= 3;\n optional string busChannel = 4; //该消息所属会话的业务标识,限制20字符以内\n }\n message HistoryMessageInput\n {\n required string targetId = 1;\n required int64 dataTime =2;\n required int32 size = 3;\n }\n\n message HistoryMessagesOuput\n {\n repeated DownStreamMessage list = 1;\n required int64 syncTime = 2;\n required int32 hasMsg = 3;\n }\n message ").concat(bn,"\n {\n required int32 count= 1;\n optional int32 order= 2;\n }\n\n message ").concat(Nn,"\n {\n optional int32 userTotalNums = 1;\n repeated ChrmMember userInfos = 2;\n }\n message ChrmMember\n {\n required int64 time = 1;\n required string id = 2;\n }\n message MPFollowInput\n {\n required string id = 1;\n }\n\n message MPFollowOutput\n {\n required int32 nothing = 1;\n optional MpInfo info =2;\n }\n\n message MCFollowOutput\n {\n required int32 nothing = 1;\n optional MpInfo info =2;\n }\n\n message MpInfo\n {\n required string mpid=1;\n required string name = 2;\n required string type = 3;\n required int64 time=4;\n optional string portraitUrl=5;\n optional string extra =6;\n }\n\n message SearchMpInput\n {\n required int32 type=1;\n required string id=2;\n }\n\n message SearchMpOutput\n {\n required int32 nothing=1;\n repeated MpInfo info = 2;\n }\n\n message PullMpInput\n {\n required int64 time=1;\n required string mpid=2;\n }\n\n message PullMpOutput\n {\n required int32 status=1;\n repeated MpInfo info = 2;\n }\n message ").concat(fn,"\n {\n optional string targetId = 1;\n optional int64 time = 2;\n optional int32 count = 3;\n optional int32 order = 4;\n optional string busChannel = 5; //该消息所属会话的业务标识,限制20字符以内\n }\n\n message ").concat(hn,"\n {\n repeated DownStreamMessage list=1;\n required int64 syncTime=2;\n required int32 hasMsg=3;\n }\n message ").concat(sn,"{\n required int32 nothing = 1;\n }\n message ").concat(an,"{\n required int64 inboxTime = 1;\n required int64 sendboxTime = 2;\n required int64 totalUnreadCount = 3;\n }\n message ").concat(Tn,"\n {\n required ChannelType type = 1;\n required int64 msgTime = 2;\n required string channelId = 3;\n optional string busChannel = 4;//该消息所属会话的业务标识\n }\n message SessionMsgReadOutput\n {\n optional int32 nothing=1;\n }\n message ").concat(vn,"\n {\n repeated SessionInfo sessions = 1;\n }\n message ").concat(yn,"\n {\n required ChannelType type = 1;\n required string channelId = 2;\n optional string busChannel = 3;//所属会话业务标识\n }\n message ").concat(mn,"\n {\n optional int32 nothing=1;\n }\n message ").concat(Mn,"\n {\n optional ChannelType type = 1;\n optional string conversationId = 2;\n repeated DeleteMsg msgs = 3;\n optional string busChannel = 4; //该消息所属会话的业务标识,限制20字符以内\n }\n message DeleteMsg\n {\n optional string msgId = 1;\n optional int64 msgDataTime = 2;\n optional int32 direct = 3;\n }\n message ChrmKVEntity {\n required string key = 1;\n required string value = 2;\n optional int32 status = 3;\n optional int64 timestamp = 4;\n optional string uid = 5;\n optional int64 version = 6;\n }\n message ").concat(jn," {\n required ChrmKVEntity entry = 1;\n optional bool bNotify = 2;\n optional UpStreamMessage notification = 3;\n optional ChannelType type = 4;\n }\n message ").concat(xn," {\n repeated ChrmKVEntity entry = 1;\n optional bool bNotify = 2;\n optional UpStreamMessage notification = 3;\n optional ChannelType type = 4;\n }\n message ").concat(kn," {\n repeated ChrmKVEntity entry = 1;\n optional bool bNotify = 2;\n optional UpStreamMessage notification = 3;\n optional ChannelType type = 4;\n }\n message ").concat(Un," {\n repeated ChrmKVEntity entries = 1;\n optional bool bFullUpdate = 2;\n optional int64 syncTime = 3;\n }\n message ChrmKVSVersionEntity {\n optional int64 version = 1;\n optional string key = 2;\n }\n\n message ").concat(Pn," {\n repeated ChrmKVSOutputEntity errorKeys = 1;\n repeated ChrmKVSVersionEntity keysVersion = 2;\n }\n message ").concat(Gn,"\n {\n optional string key = 1;\n optional int32 errorCode = 2;\n }\n message ").concat(Bn," {\n required int64 timestamp = 1;\n }\n message ").concat(Yn," {\n required int64 version=1;\n required string value=2;\n }\n message ").concat(Hn," {\n required int64 version=1;\n required bool reserve=2;\n }\n message ").concat($n," {\n required int64 version=1;\n optional bool reserve=2;\n }\n message ").concat(Fn," {\n repeated UserSettingItem items = 1;\n required int64 version=2;\n }\n message UserSettingItem {\n required string targetId= 1;\n required ChannelType type = 2;\n required string key = 4;\n required bytes value = 5;\n required int64 version=6;\n required int32 status=7;\n repeated SessionTagItem tags= 8;\n }\n message ").concat(Vn," {\n required int64 time = 1;\n }\n message ").concat(Zn," {\n required int64 version=1;\n repeated SessionState state= 2;\n }\n message ").concat(Wn," {\n required ChannelType type = 1;\n required string channelId = 2;\n optional int64 time = 3;\n repeated SessionStateItem stateItem = 4;\n optional string busChannel = 5;//该消息所属会话的业务标识\n }\n message ").concat(Kn," {\n required SessionStateType sessionStateType = 1;\n required string value = 2;\n repeated SessionTagItem tags = 3;\n }\n enum SessionStateType {\n IsSilent = 1;\n IsTop = 2;\n Tags = 3;\n }\n message ").concat(qn," {\n required int64 version=1;\n repeated SessionState state= 2;\n }\n message ").concat(Xn," {\n optional string busChannel = 1;\n }\n message ").concat(er,"{\n optional string busChannel = 1;\n required int32 unpushLevel = 2;\n }\n message ").concat(rr," {\n required string groupId = 1;\n optional string busChannel = 2;\n required int32 unpushLevel = 3;\n }\n message ").concat(Jn," {\n required int64 version=1;\n }\n message ").concat(ir," {\n repeated string msgId=1; //已读消息ID\n optional string channelId = 2; // 该消息所属会话的业务标识\n }\n message ").concat(or," {\n repeated string msgId=1; //已读消息ID\n optional string channelId = 2; // 该消息所属会话的业务标识\n }\n message ").concat(sr," {\n required int32 totalMemberNum = 1;//群内总人数\n repeated GrpMsgReadUser list = 2;//已读用户列表(list复类型)\n }\n message ").concat(ar," {\n required int64 readTime = 1;//已读时间\n required string userId = 2;//已读用户id\n }\n message ").concat(cr," {\n required int64 version=1;\n repeated SessionTagItem tags=2;\n }\n message ").concat(ur," {\n required string tagId=1;\n optional string name=2;\n optional int64 createdTime=3;\n optional bool isTop=4;\n }\n message ").concat(lr," {\n required int64 version=1;\n repeated SessionTagItem tags=2;\n }\n message ").concat(fr," {\n repeated string tagId=1;\n }\n message ").concat(Qn," {\n required int64 version=1;\n required bool reserve=2;\n }\n message ").concat(hr,' {\n required string sdkInfo=1; // 用户集成的 sdk 信息,json 格式 {"web-rtc": "4.0.3.7"}\n }\n message ').concat(dr,"\n {\n optional int32 nothing=1; //占位\n }\n message ").concat(pr,"\n {\n required int64 syncTime = 1;//同步时间戳\n optional bool isEraseMsgContent = 2;//拉取会话时,是否屏蔽掉消息内容\n }\n message ").concat(gr,"\n {\n required int64 syncTime = 1;//同步时间戳\n }\n message ").concat(vr,"\n {\n required string fromUserId = 1;//(谁发的)\n required string targetId = 2;// 目标Id(超级群Id)\n required ChannelType type = 3;//发送类型如:(P2P,GROUP,ULTRAGROUP)\n required string msgUID = 4; // 扩展消息的内容体\n required int64 msgTime = 5; //原始消息时间\n optional string busChannel = 6; // 该消息所属会话的业务标识,限制20字符以内\n optional string content = 7; // 即extraContent消息扩展内容,下表格说明\n }\n message ").concat(yr," //查询入参\n {\n required int64 syncTime = 1;//同步时间戳\n }\n message ").concat(Ir," //应答结果\n {\n repeated MsgChange list = 1; //变更\n required int64 syncTime = 2; //同步时间(用于下次同步入参)\n optional bool hasNext = 3 ;\n }\n message ").concat(mr," //变更详情\n {\n required string targetId = 1; // 目标Id(超级群Id)\n required ChannelType type = 2; // 会话类型\n required int64 time = 3; // 变更时间\n required int32 changeType = 4; // 消息变更类型(1:扩展,2:修改,3:撤回,4:频道变更)\n required string msgUID = 5; // 消息ID\n required int64 msgTime = 6; // 消息时间\n optional string busChannel = 7; // 频道ID\n optional bool isAdmin = 8; //是否为管理员,默认为 0, 设为 1 时, IMKit 收到此条消息后,小灰条默认显示为“管理员 撤回了一条消息”。\n optional bool isDel = 9; //默认为 0 撤回该条消息同时,用户端将该条消息删除并替换为一条小灰条撤回提示消息;为 1 时,该条消息删除后,不替换为小灰条提示消息。\n optional string operatorId = 10; // 消息变更的操作人 Id; subChangeType 为 5 时,operatorId 表示被踢出超级群私有频道白名单的用户\n // 当 changeType 为 4 时,该参数有意义;\n // 1: 删除频道;\n // 2: 公有频道变为私有频道;\n // 3: 私有频道变为公有频道;\n // 4: 私有频道成员变更-加入, SDK 不通知业务层;\n // 5: 私有频道成员变更-退出;\n // 6: 公有频道变为私有频道,当前用户不在白名单中;\n optional int32 subChangeType = 11;\n }\n message ").concat(Mr," //请求\n {\n required string targetId = 1; // 目标Id(超级群Id)\n required ChannelType type = 2; // 会话类型\n repeated MessageQueryInfo query = 3; //\n }\n message MessageQueryInfo\n {\n required int64 msgTime = 1; // 消息时间\n required string msgUID = 2; // 消息ID\n optional string busChannel = 3; // 频道ID\n }\n message ").concat(Tr," //应答\n {\n repeated DownStreamMessage list = 1;//消息\n }\n message ").concat(Ar," //客户端发送\n {\n optional string targetId = 1;// targetId\n optional ChannelType type = 2;//发送会话类型如:(P2P,GROUP) \n optional int32 opType = 3; //0 , 正在输入, 1 正在XXX \n optional string busChannel = 4; // 频道(channelId,可以为空)\n }\n message ").concat(_r," //服务端发送\n {\n optional ChannelType type = 1;//发送会话类型如(P2P,GROUP) \n optional int64 notifyType = 2; //0x1 表示明细, 0x2 表示汇总 0x3 表示明细+汇总\n repeated OperateInfo info = 3 ; //明细列表 当notifyType 为 1和3时,有效\n repeated OperateSummary summary = 4 ; //汇总列表, 当notifyType 为2和3 时,有效\n }\n message ").concat(br," {\n // XX 正在做什么\n optional string targetId = 1; // 超级群Id 会话id\n optional string busChannel = 2; // 频道(channelId,可以为空)\n optional string userId = 3; // userId\n optional int32 opType = 4; //0 , 正在输入, 1 正在XX \n optional int64 optime = 5; //服务端收到用户操作的上行时间. \n }\n \n message ").concat(Nr," {\n // 几个人 正在干什么\n optional string targetId = 1; // 超级群Id 会话id\n optional string busChannel = 2; // 频道(channelId,可以为空)\n optional int32 count = 3; // 操作人数\n optional int32 opType = 4; //0, 正在输入, 1 正在XX \n }\n\n message ").concat(Er,"\n {\n required string rtcRoomId= 1; //rtc房间ID;\n }\n message ").concat(wr,"\n {\n required int32 nothing = 1; //用于占位\n }\n}\n"),Dr={},Lr=function(e){var t=Sr[e];Dr[e]=function(){for(var e={},n={getArrayData:function(){return e}},r=function(r){var i=t[r],o="set".concat(A(i,0,1));n[o]=function(t){e[i]=t}},i=0;i<t.length;i++)r(i);return n},Dr[e].decode=function(e){var t={};pe(e)&&(e=JSON.parse(e));var n=function(n){var r="get".concat(A(n,0,1));t[n]=e[n],t[r]=function(){return e[n]}};for(var r in e)n(r);return t}};for(var Rr in Sr)Lr(Rr);function jr(t){var n=function(){function e(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function t(e){return!0===(e&&e.__isLong__)}function n(e,t){var n,r,o;return t?(o=(e>>>=0)>=0&&e<256)&&(r=c[e])?r:(n=i(e,(0|e)<0?-1:0,!0),o&&(c[e]=n),n):(o=(e|=0)>=-128&&e<128)&&(r=a[e])?r:(n=i(e,e<0?-1:0,!1),o&&(a[e]=n),n)}function r(e,t){if(isNaN(e)||!isFinite(e))return t?g:p;if(t){if(e<0)return g;if(e>=f)return M}else{if(-h>=e)return C;if(e+1>=h)return I}return e<0?r(-e,t).neg():i(0|e%l,0|e/l,t)}function i(t,n,r){return new e(t,n,r)}function o(e,t,n){var i,s,a,c,l,f,h;if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return p;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||n>36)throw RangeError("radix");if((i=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===i)return o(e.substring(1),t,n).neg();for(s=r(u(n,8)),a=p,c=0;c<e.length;c+=8)l=Math.min(8,e.length-c),f=parseInt(e.substring(c,c+l),n),l<8?(h=r(u(n,l)),a=a.mul(h).add(r(f))):a=(a=a.mul(s)).add(r(f));return a.unsigned=t,a}function s(t){return t instanceof e?t:"number"==typeof t?r(t):"string"==typeof t?o(t):i(t.low,t.high,t.unsigned)}var a,c,u,l,f,h,d,p,g,v,y,m,I,M,C,T;return e.prototype.__isLong__,Object.defineProperty(e.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),e.isLong=t,a={},c={},e.fromInt=n,e.fromNumber=r,e.fromBits=i,u=Math.pow,e.fromString=o,e.fromValue=s,h=(f=(l=4294967296)*l)/2,d=n(16777216),p=n(0),e.ZERO=p,g=n(0,!0),e.UZERO=g,v=n(1),e.ONE=v,y=n(1,!0),e.UONE=y,m=n(-1),e.NEG_ONE=m,I=i(-1,2147483647,!1),e.MAX_VALUE=I,M=i(-1,-1,!0),e.MAX_UNSIGNED_VALUE=M,C=i(0,-2147483648,!1),e.MIN_VALUE=C,(T=e.prototype).toInt=function(){return this.unsigned?this.low>>>0:this.low},T.toNumber=function(){return this.unsigned?(this.high>>>0)*l+(this.low>>>0):this.high*l+(this.low>>>0)},T.toString=function(e){var t,n,i,o,s,a,c,l;if((e=e||10)<2||e>36)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())return this.eq(C)?(t=r(e),i=(n=this.div(t)).mul(t).sub(this),n.toString(e)+i.toInt().toString(e)):"-"+this.neg().toString(e);for(o=r(u(e,6),this.unsigned),s=this,a="";;){if(c=s.div(o),l=(s.sub(c.mul(o)).toInt()>>>0).toString(e),(s=c).isZero())return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}},T.getHighBits=function(){return this.high},T.getHighBitsUnsigned=function(){return this.high>>>0},T.getLowBits=function(){return this.low},T.getLowBitsUnsigned=function(){return this.low>>>0},T.getNumBitsAbs=function(){var e,t;if(this.isNegative())return this.eq(C)?64:this.neg().getNumBitsAbs();for(e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},T.isZero=function(){return 0===this.high&&0===this.low},T.isNegative=function(){return!this.unsigned&&this.high<0},T.isPositive=function(){return this.unsigned||this.high>=0},T.isOdd=function(){return 1==(1&this.low)},T.isEven=function(){return 0==(1&this.low)},T.equals=function(e){return t(e)||(e=s(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},T.eq=T.equals,T.notEquals=function(e){return!this.eq(e)},T.neq=T.notEquals,T.lessThan=function(e){return this.comp(e)<0},T.lt=T.lessThan,T.lessThanOrEqual=function(e){return this.comp(e)<=0},T.lte=T.lessThanOrEqual,T.greaterThan=function(e){return this.comp(e)>0},T.gt=T.greaterThan,T.greaterThanOrEqual=function(e){return this.comp(e)>=0},T.gte=T.greaterThanOrEqual,T.compare=function(e){if(t(e)||(e=s(e)),this.eq(e))return 0;var n=this.isNegative(),r=e.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},T.comp=T.compare,T.negate=function(){return!this.unsigned&&this.eq(C)?C:this.not().add(v)},T.neg=T.negate,T.add=function(e){var n,r,o,a,c,u,l,f,h,d,p;return t(e)||(e=s(e)),n=this.high>>>16,r=65535&this.high,o=this.low>>>16,a=65535&this.low,c=e.high>>>16,u=65535&e.high,l=e.low>>>16,f=0,h=0,d=0,p=0,d+=(p+=a+(65535&e.low))>>>16,h+=(d+=o+l)>>>16,f+=(h+=r+u)>>>16,f+=n+c,i((d&=65535)<<16|(p&=65535),(f&=65535)<<16|(h&=65535),this.unsigned)},T.subtract=function(e){return t(e)||(e=s(e)),this.add(e.neg())},T.sub=T.subtract,T.multiply=function(e){var n,o,a,c,u,l,f,h,g,v,y,m;return this.isZero()?p:(t(e)||(e=s(e)),e.isZero()?p:this.eq(C)?e.isOdd()?C:p:e.eq(C)?this.isOdd()?C:p:this.isNegative()?e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg():e.isNegative()?this.mul(e.neg()).neg():this.lt(d)&&e.lt(d)?r(this.toNumber()*e.toNumber(),this.unsigned):(n=this.high>>>16,o=65535&this.high,a=this.low>>>16,c=65535&this.low,u=e.high>>>16,l=65535&e.high,f=e.low>>>16,g=0,v=0,y=0,m=0,y+=(m+=c*(h=65535&e.low))>>>16,v+=(y+=a*h)>>>16,y&=65535,v+=(y+=c*f)>>>16,g+=(v+=o*h)>>>16,v&=65535,g+=(v+=a*f)>>>16,v&=65535,g+=(v+=c*l)>>>16,g+=n*h+o*f+a*l+c*u,i((y&=65535)<<16|(m&=65535),(g&=65535)<<16|(v&=65535),this.unsigned)))},T.mul=T.multiply,T.divide=function(e){var n,i,o,a,c,l,f;if(t(e)||(e=s(e)),e.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?g:p;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return g;if(e.gt(this.shru(1)))return y;o=g}else{if(this.eq(C))return e.eq(v)||e.eq(m)?C:e.eq(C)?v:(n=this.shr(1).div(e).shl(1)).eq(p)?e.isNegative()?v:m:(i=this.sub(e.mul(n)),o=n.add(i.div(e)));if(e.eq(C))return this.unsigned?g:p;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();o=p}for(i=this;i.gte(e);){for(n=Math.max(1,Math.floor(i.toNumber()/e.toNumber())),c=(a=Math.ceil(Math.log(n)/Math.LN2))<=48?1:u(2,a-48),f=(l=r(n)).mul(e);f.isNegative()||f.gt(i);)f=(l=r(n-=c,this.unsigned)).mul(e);l.isZero()&&(l=v),o=o.add(l),i=i.sub(f)}return o},T.div=T.divide,T.modulo=function(e){return t(e)||(e=s(e)),this.sub(this.div(e).mul(e))},T.mod=T.modulo,T.not=function(){return i(~this.low,~this.high,this.unsigned)},T.and=function(e){return t(e)||(e=s(e)),i(this.low&e.low,this.high&e.high,this.unsigned)},T.or=function(e){return t(e)||(e=s(e)),i(this.low|e.low,this.high|e.high,this.unsigned)},T.xor=function(e){return t(e)||(e=s(e)),i(this.low^e.low,this.high^e.high,this.unsigned)},T.shiftLeft=function(e){return t(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?i(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):i(0,this.low<<e-32,this.unsigned)},T.shl=T.shiftLeft,T.shiftRight=function(e){return t(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?i(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):i(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},T.shr=T.shiftRight,T.shiftRightUnsigned=function(e){var n;return t(e)&&(e=e.toInt()),0===(e&=63)?this:(n=this.high,e<32?i(this.low>>>e|n<<32-e,n>>>e,this.unsigned):i(32===e?n:n>>>e-32,0,this.unsigned))},T.shru=T.shiftRightUnsigned,T.toSigned=function(){return this.unsigned?i(this.low,this.high,!1):this},T.toUnsigned=function(){return this.unsigned?this:i(this.low,this.high,!0)},T.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},T.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,255&t>>>8,255&t>>>16,255&t>>>24,255&e,255&e>>>8,255&e>>>16,255&e>>>24]},T.toBytesBE=function(){var e=this.high,t=this.low;return[255&e>>>24,255&e>>>16,255&e>>>8,255&e,255&t>>>24,255&t>>>16,255&t>>>8,255&t]},e}(),r=function(e){function t(e){var t=0;return function(){return t<e.length?e.charCodeAt(t++):null}}function n(){var e=[],t=[];return function(){return 0===arguments.length?t.join("")+a.apply(String,e):(e.length+arguments.length>1024&&(t.push(a.apply(String,e)),e.length=0),void Array.prototype.push.apply(e,arguments))}}function r(e,t,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,u=c>>1,l=-7,f=n?i-1:0,h=n?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+e[t+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+f],f+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=u}return(d?-1:1)*s*Math.pow(2,o-r)}function i(e,t,n,r,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||1/0===t?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?h/c:h*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*c-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[n+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+d]=255&s,d+=p,s/=256,u-=8);e[n+d-p]|=128*g}var o,s,a,c,u,l=function(e,t,n){if(void 0===e&&(e=l.DEFAULT_CAPACITY),void 0===t&&(t=l.DEFAULT_ENDIAN),void 0===n&&(n=l.DEFAULT_NOASSERT),!n){if((e|=0)<0)throw RangeError("Illegal capacity");t=!!t,n=!!n}this.buffer=0===e?s:new ArrayBuffer(e),this.view=0===e?null:new Uint8Array(this.buffer),this.offset=0,this.markedOffset=-1,this.limit=e,this.littleEndian=t,this.noAssert=n};return l.VERSION="5.0.1",l.LITTLE_ENDIAN=!0,l.BIG_ENDIAN=!1,l.DEFAULT_CAPACITY=16,l.DEFAULT_ENDIAN=l.BIG_ENDIAN,l.DEFAULT_NOASSERT=!1,l.Long=e||null,(o=l.prototype).__isByteBuffer__,Object.defineProperty(o,"__isByteBuffer__",{value:!0,enumerable:!1,configurable:!1}),s=new ArrayBuffer(0),a=String.fromCharCode,l.accessor=function(){return Uint8Array},l.allocate=function(e,t,n){return new l(e,t,n)},l.concat=function(e,t,n,r){var i,o,s,a,c,u;for(("boolean"==typeof t||"string"!=typeof t)&&(r=n,n=t,t=void 0),i=0,s=0,a=e.length;a>s;++s)l.isByteBuffer(e[s])||(e[s]=l.wrap(e[s],t)),(o=e[s].limit-e[s].offset)>0&&(i+=o);if(0===i)return new l(0,n,r);for(u=new l(i,n,r),s=0;a>s;)(o=(c=e[s++]).limit-c.offset)<=0||(u.view.set(c.view.subarray(c.offset,c.limit),u.offset),u.offset+=o);return u.limit=u.offset,u.offset=0,u},l.isByteBuffer=function(e){return!0===(e&&e.__isByteBuffer__)},l.type=function(){return ArrayBuffer},l.wrap=function(e,t,n,r){var i,s;if("string"!=typeof t&&(r=n,n=t,t=void 0),"string"==typeof e)switch(void 0===t&&(t="utf8"),t){case"base64":return l.fromBase64(e,n);case"hex":return l.fromHex(e,n);case"binary":return l.fromBinary(e,n);case"utf8":return l.fromUTF8(e,n);case"debug":return l.fromDebug(e,n);default:throw Error("Unsupported encoding: "+t)}if(null===e||"object"!=typeof e)throw TypeError("Illegal buffer");if(l.isByteBuffer(e))return(i=o.clone.call(e)).markedOffset=-1,i;if(e instanceof Uint8Array)i=new l(0,n,r),e.length>0&&(i.buffer=e.buffer,i.offset=e.byteOffset,i.limit=e.byteOffset+e.byteLength,i.view=new Uint8Array(e.buffer));else if(e instanceof ArrayBuffer)i=new l(0,n,r),e.byteLength>0&&(i.buffer=e,i.offset=0,i.limit=e.byteLength,i.view=e.byteLength>0?new Uint8Array(e):null);else{if("[object Array]"!==Object.prototype.toString.call(e))throw TypeError("Illegal buffer");for((i=new l(e.length,n,r)).limit=e.length,s=0;s<e.length;++s)i.view[s]=e[s]}return i},o.writeBitSet=function(e,t){var n,r,i,o,s,a,c=void 0===t;if(c&&(t=this.offset),!this.noAssert){if(!(e instanceof Array))throw TypeError("Illegal BitSet: Not an array");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}for(r=t,o=(i=e.length)>>3,s=0,t+=this.writeVarint32(i,t);o--;)n=1&!!e[s++]|(1&!!e[s++])<<1|(1&!!e[s++])<<2|(1&!!e[s++])<<3|(1&!!e[s++])<<4|(1&!!e[s++])<<5|(1&!!e[s++])<<6|(1&!!e[s++])<<7,this.writeByte(n,t++);if(i>s){for(a=0,n=0;i>s;)n|=(1&!!e[s++])<<a++;this.writeByte(n,t++)}return c?(this.offset=t,this):t-r},o.readBitSet=function(e){var t,n,r,i,o,s,a,c=void 0===e;for(c&&(e=this.offset),i=(r=(n=this.readVarint32(e)).value)>>3,o=0,s=[],e+=n.length;i--;)t=this.readByte(e++),s[o++]=!!(1&t),s[o++]=!!(2&t),s[o++]=!!(4&t),s[o++]=!!(8&t),s[o++]=!!(16&t),s[o++]=!!(32&t),s[o++]=!!(64&t),s[o++]=!!(128&t);if(r>o)for(a=0,t=this.readByte(e++);r>o;)s[o++]=!!(1&t>>a++);return c&&(this.offset=e),s},o.readBytes=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+e>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+"+e+") <= "+this.buffer.byteLength)}return n=this.slice(t,t+e),r&&(this.offset+=e),n},o.writeBytes=o.append,o.writeInt8=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=1)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=1,this.view[t]=e,r&&(this.offset+=1),this},o.writeByte=o.writeInt8,o.readInt8=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}return 128==(128&(t=this.view[e]))&&(t=-(255-t+1)),n&&(this.offset+=1),t},o.readByte=o.readInt8,o.writeUint8=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=1)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=1,this.view[t]=e,r&&(this.offset+=1),this},o.writeUInt8=o.writeUint8,o.readUint8=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}return t=this.view[e],n&&(this.offset+=1),t},o.readUInt8=o.readUint8,o.writeInt16=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=2)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=2,this.littleEndian?(this.view[t+1]=(65280&e)>>>8,this.view[t]=255&e):(this.view[t]=(65280&e)>>>8,this.view[t+1]=255&e),r&&(this.offset+=2),this},o.writeShort=o.writeInt16,o.readInt16=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+2) <= "+this.buffer.byteLength)}return t=0,this.littleEndian?(t=this.view[e],t|=this.view[e+1]<<8):(t=this.view[e]<<8,t|=this.view[e+1]),32768==(32768&t)&&(t=-(65535-t+1)),n&&(this.offset+=2),t},o.readShort=o.readInt16,o.writeUint16=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=2)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=2,this.littleEndian?(this.view[t+1]=(65280&e)>>>8,this.view[t]=255&e):(this.view[t]=(65280&e)>>>8,this.view[t+1]=255&e),r&&(this.offset+=2),this},o.writeUInt16=o.writeUint16,o.readUint16=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+2) <= "+this.buffer.byteLength)}return t=0,this.littleEndian?(t=this.view[e],t|=this.view[e+1]<<8):(t=this.view[e]<<8,t|=this.view[e+1]),n&&(this.offset+=2),t},o.readUInt16=o.readUint16,o.writeInt32=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=4)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=4,this.littleEndian?(this.view[t+3]=255&e>>>24,this.view[t+2]=255&e>>>16,this.view[t+1]=255&e>>>8,this.view[t]=255&e):(this.view[t]=255&e>>>24,this.view[t+1]=255&e>>>16,this.view[t+2]=255&e>>>8,this.view[t+3]=255&e),r&&(this.offset+=4),this},o.writeInt=o.writeInt32,o.readInt32=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}return t=0,this.littleEndian?(t=this.view[e+2]<<16,t|=this.view[e+1]<<8,t|=this.view[e],t+=this.view[e+3]<<24>>>0):(t=this.view[e+1]<<16,t|=this.view[e+2]<<8,t|=this.view[e+3],t+=this.view[e]<<24>>>0),t|=0,n&&(this.offset+=4),t},o.readInt=o.readInt32,o.writeUint32=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=4)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=4,this.littleEndian?(this.view[t+3]=255&e>>>24,this.view[t+2]=255&e>>>16,this.view[t+1]=255&e>>>8,this.view[t]=255&e):(this.view[t]=255&e>>>24,this.view[t+1]=255&e>>>16,this.view[t+2]=255&e>>>8,this.view[t+3]=255&e),r&&(this.offset+=4),this},o.writeUInt32=o.writeUint32,o.readUint32=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}return t=0,this.littleEndian?(t=this.view[e+2]<<16,t|=this.view[e+1]<<8,t|=this.view[e],t+=this.view[e+3]<<24>>>0):(t=this.view[e+1]<<16,t|=this.view[e+2]<<8,t|=this.view[e+3],t+=this.view[e]<<24>>>0),n&&(this.offset+=4),t},o.readUInt32=o.readUint32,e&&(o.writeInt64=function(t,n){var r,i,o,s=void 0===n;if(s&&(n=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t)),(n+=8)>(r=this.buffer.byteLength)&&this.resize((r*=2)>n?r:n),n-=8,i=t.low,o=t.high,this.littleEndian?(this.view[n+3]=255&i>>>24,this.view[n+2]=255&i>>>16,this.view[n+1]=255&i>>>8,this.view[n]=255&i,n+=4,this.view[n+3]=255&o>>>24,this.view[n+2]=255&o>>>16,this.view[n+1]=255&o>>>8,this.view[n]=255&o):(this.view[n]=255&o>>>24,this.view[n+1]=255&o>>>16,this.view[n+2]=255&o>>>8,this.view[n+3]=255&o,n+=4,this.view[n]=255&i>>>24,this.view[n+1]=255&i>>>16,this.view[n+2]=255&i>>>8,this.view[n+3]=255&i),s&&(this.offset+=8),this},o.writeLong=o.writeInt64,o.readInt64=function(t){var n,r,i,o=void 0===t;if(o&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}return n=0,r=0,this.littleEndian?(n=this.view[t+2]<<16,n|=this.view[t+1]<<8,n|=this.view[t],n+=this.view[t+3]<<24>>>0,t+=4,r=this.view[t+2]<<16,r|=this.view[t+1]<<8,r|=this.view[t],r+=this.view[t+3]<<24>>>0):(r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0,t+=4,n=this.view[t+1]<<16,n|=this.view[t+2]<<8,n|=this.view[t+3],n+=this.view[t]<<24>>>0),i=new e(n,r,!1),o&&(this.offset+=8),i},o.readLong=o.readInt64,o.writeUint64=function(t,n){var r,i,o,s=void 0===n;if(s&&(n=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t)),(n+=8)>(r=this.buffer.byteLength)&&this.resize((r*=2)>n?r:n),n-=8,i=t.low,o=t.high,this.littleEndian?(this.view[n+3]=255&i>>>24,this.view[n+2]=255&i>>>16,this.view[n+1]=255&i>>>8,this.view[n]=255&i,n+=4,this.view[n+3]=255&o>>>24,this.view[n+2]=255&o>>>16,this.view[n+1]=255&o>>>8,this.view[n]=255&o):(this.view[n]=255&o>>>24,this.view[n+1]=255&o>>>16,this.view[n+2]=255&o>>>8,this.view[n+3]=255&o,n+=4,this.view[n]=255&i>>>24,this.view[n+1]=255&i>>>16,this.view[n+2]=255&i>>>8,this.view[n+3]=255&i),s&&(this.offset+=8),this},o.writeUInt64=o.writeUint64,o.readUint64=function(t){var n,r,i,o=void 0===t;if(o&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}return n=0,r=0,this.littleEndian?(n=this.view[t+2]<<16,n|=this.view[t+1]<<8,n|=this.view[t],n+=this.view[t+3]<<24>>>0,t+=4,r=this.view[t+2]<<16,r|=this.view[t+1]<<8,r|=this.view[t],r+=this.view[t+3]<<24>>>0):(r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0,t+=4,n=this.view[t+1]<<16,n|=this.view[t+2]<<8,n|=this.view[t+3],n+=this.view[t]<<24>>>0),i=new e(n,r,!0),o&&(this.offset+=8),i},o.readUInt64=o.readUint64),o.writeFloat32=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e)throw TypeError("Illegal value: "+e+" (not a number)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=4)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=4,i(this.view,e,t,this.littleEndian,23,4),r&&(this.offset+=4),this},o.writeFloat=o.writeFloat32,o.readFloat32=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}return t=r(this.view,e,this.littleEndian,23,4),n&&(this.offset+=4),t},o.readFloat=o.readFloat32,o.writeFloat64=function(e,t){var n,r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e)throw TypeError("Illegal value: "+e+" (not a number)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return(t+=8)>(n=this.buffer.byteLength)&&this.resize((n*=2)>t?n:t),t-=8,i(this.view,e,t,this.littleEndian,52,8),r&&(this.offset+=8),this},o.writeDouble=o.writeFloat64,o.readFloat64=function(e){var t,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+8) <= "+this.buffer.byteLength)}return t=r(this.view,e,this.littleEndian,52,8),n&&(this.offset+=8),t},o.readDouble=o.readFloat64,l.MAX_VARINT32_BYTES=5,l.calculateVarint32=function(e){return(e>>>=0)<128?1:e<16384?2:1<<21>e?3:1<<28>e?4:5},l.zigZagEncode32=function(e){return((e|=0)<<1^e>>31)>>>0},l.zigZagDecode32=function(e){return 0|e>>>1^-(1&e)},o.writeVarint32=function(e,t){var n,r,i,o=void 0===t;if(o&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}for((t+=r=l.calculateVarint32(e))>(i=this.buffer.byteLength)&&this.resize((i*=2)>t?i:t),t-=r,e>>>=0;e>=128;)n=128|127&e,this.view[t++]=n,e>>>=7;return this.view[t++]=e,o?(this.offset=t,this):r},o.writeVarint32ZigZag=function(e,t){return this.writeVarint32(l.zigZagEncode32(e),t)},o.readVarint32=function(e){var t,n,r,i,o=void 0===e;if(o&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}n=0,r=0;do{if(!this.noAssert&&e>this.limit)throw(i=Error("Truncated")).truncated=!0,i;t=this.view[e++],n<5&&(r|=(127&t)<<7*n),++n}while(0!=(128&t));return r|=0,o?(this.offset=e,r):{value:r,length:n}},o.readVarint32ZigZag=function(e){var t=this.readVarint32(e);return"object"==typeof t?t.value=l.zigZagDecode32(t.value):t=l.zigZagDecode32(t),t},e&&(l.MAX_VARINT64_BYTES=10,l.calculateVarint64=function(t){"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t));var n=t.toInt()>>>0,r=t.shiftRightUnsigned(28).toInt()>>>0,i=t.shiftRightUnsigned(56).toInt()>>>0;return 0==i?0==r?n<16384?n<128?1:2:1<<21>n?3:4:r<16384?r<128?5:6:1<<21>r?7:8:i<128?9:10},l.zigZagEncode64=function(t){return"number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),t.shiftLeft(1).xor(t.shiftRight(63)).toUnsigned()},l.zigZagDecode64=function(t){return"number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),t.shiftRightUnsigned(1).xor(t.and(e.ONE).toSigned().negate()).toSigned()},o.writeVarint64=function(t,n){var r,i,o,s,a,c=void 0===n;if(c&&(n=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}switch("number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),r=l.calculateVarint64(t),i=t.toInt()>>>0,o=t.shiftRightUnsigned(28).toInt()>>>0,s=t.shiftRightUnsigned(56).toInt()>>>0,(n+=r)>(a=this.buffer.byteLength)&&this.resize((a*=2)>n?a:n),n-=r,r){case 10:this.view[n+9]=1&s>>>7;case 9:this.view[n+8]=9!==r?128|s:127&s;case 8:this.view[n+7]=8!==r?128|o>>>21:127&o>>>21;case 7:this.view[n+6]=7!==r?128|o>>>14:127&o>>>14;case 6:this.view[n+5]=6!==r?128|o>>>7:127&o>>>7;case 5:this.view[n+4]=5!==r?128|o:127&o;case 4:this.view[n+3]=4!==r?128|i>>>21:127&i>>>21;case 3:this.view[n+2]=3!==r?128|i>>>14:127&i>>>14;case 2:this.view[n+1]=2!==r?128|i>>>7:127&i>>>7;case 1:this.view[n]=1!==r?128|i:127&i}return c?(this.offset+=r,this):r},o.writeVarint64ZigZag=function(e,t){return this.writeVarint64(l.zigZagEncode64(e),t)},o.readVarint64=function(t){var n,r,i,o,s,a,c=void 0===t;if(c&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}if(n=t,r=0,i=0,o=0,s=0,r=127&(s=this.view[t++]),128&s&&(r|=(127&(s=this.view[t++]))<<7,(128&s||this.noAssert&&void 0===s)&&(r|=(127&(s=this.view[t++]))<<14,(128&s||this.noAssert&&void 0===s)&&(r|=(127&(s=this.view[t++]))<<21,(128&s||this.noAssert&&void 0===s)&&(i=127&(s=this.view[t++]),(128&s||this.noAssert&&void 0===s)&&(i|=(127&(s=this.view[t++]))<<7,(128&s||this.noAssert&&void 0===s)&&(i|=(127&(s=this.view[t++]))<<14,(128&s||this.noAssert&&void 0===s)&&(i|=(127&(s=this.view[t++]))<<21,(128&s||this.noAssert&&void 0===s)&&(o=127&(s=this.view[t++]),(128&s||this.noAssert&&void 0===s)&&(o|=(127&(s=this.view[t++]))<<7,128&s||this.noAssert&&void 0===s))))))))))throw Error("Buffer overrun");return a=e.fromBits(r|i<<28,i>>>4|o<<24,!1),c?(this.offset=t,a):{value:a,length:t-n}},o.readVarint64ZigZag=function(t){var n=this.readVarint64(t);return n&&n.value instanceof e?n.value=l.zigZagDecode64(n.value):n=l.zigZagDecode64(n),n}),o.writeCString=function(e,n){var r,i,o,s=void 0===n;if(s&&(n=this.offset),i=e.length,!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");for(r=0;i>r;++r)if(0===e.charCodeAt(r))throw RangeError("Illegal str: Contains NULL-characters");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return i=u.calculateUTF16asUTF8(t(e))[1],n+=i+1,o=this.buffer.byteLength,n>o&&this.resize((o*=2)>n?o:n),n-=i+1,u.encodeUTF16toUTF8(t(e),function(e){this.view[n++]=e}.bind(this)),this.view[n++]=0,s?(this.offset=n,this):i},o.readCString=function(e){var t,r,i,o=void 0===e;if(o&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}return t=e,i=-1,u.decodeUTF8toUTF16(function(){if(0===i)return null;if(e>=this.limit)throw RangeError("Illegal range: Truncated data, "+e+" < "+this.limit);return 0===(i=this.view[e++])?null:i}.bind(this),r=n(),!0),o?(this.offset=e,r()):{string:r(),length:e-t}},o.writeIString=function(e,n){var r,i,o,s=void 0===n;if(s&&(n=this.offset),!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}if(i=n,r=u.calculateUTF16asUTF8(t(e),this.noAssert)[1],n+=4+r,o=this.buffer.byteLength,n>o&&this.resize((o*=2)>n?o:n),n-=4+r,this.littleEndian?(this.view[n+3]=255&r>>>24,this.view[n+2]=255&r>>>16,this.view[n+1]=255&r>>>8,this.view[n]=255&r):(this.view[n]=255&r>>>24,this.view[n+1]=255&r>>>16,this.view[n+2]=255&r>>>8,this.view[n+3]=255&r),n+=4,u.encodeUTF16toUTF8(t(e),function(e){this.view[n++]=e}.bind(this)),n!==i+4+r)throw RangeError("Illegal range: Truncated data, "+n+" == "+(n+4+r));return s?(this.offset=n,this):n-i},o.readIString=function(e){var t,n,r,i=void 0===e;if(i&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}return t=e,n=this.readUint32(e),r=this.readUTF8String(n,l.METRICS_BYTES,e+=4),e+=r.length,i?(this.offset=e,r.string):{string:r.string,length:e-t}},l.METRICS_CHARS="c",l.METRICS_BYTES="b",o.writeUTF8String=function(e,n){var r,i,o,s=void 0===n;if(s&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return i=n,r=u.calculateUTF16asUTF8(t(e))[1],n+=r,o=this.buffer.byteLength,n>o&&this.resize((o*=2)>n?o:n),n-=r,u.encodeUTF16toUTF8(t(e),function(e){this.view[n++]=e}.bind(this)),s?(this.offset=n,this):n-i},o.writeString=o.writeUTF8String,l.calculateUTF8Chars=function(e){return u.calculateUTF16asUTF8(t(e))[0]},l.calculateUTF8Bytes=function(e){return u.calculateUTF16asUTF8(t(e))[1]},l.calculateString=l.calculateUTF8Bytes,o.readUTF8String=function(e,t,r){var i,o,s,a,c;if("number"==typeof t&&(r=t,t=void 0),(i=void 0===r)&&(r=this.offset),void 0===t&&(t=l.METRICS_CHARS),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal length: "+e+" (not an integer)");if(e|=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}if(s=0,a=r,t===l.METRICS_CHARS){if(o=n(),u.decodeUTF8(function(){return e>s&&r<this.limit?this.view[r++]:null}.bind(this),(function(e){++s,u.UTF8toUTF16(e,o)})),s!==e)throw RangeError("Illegal range: Truncated data, "+s+" == "+e);return i?(this.offset=r,o()):{string:o(),length:r-a}}if(t===l.METRICS_BYTES){if(!this.noAssert){if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+e>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+"+e+") <= "+this.buffer.byteLength)}if(c=r+e,u.decodeUTF8toUTF16(function(){return c>r?this.view[r++]:null}.bind(this),o=n(),this.noAssert),r!==c)throw RangeError("Illegal range: Truncated data, "+r+" == "+c);return i?(this.offset=r,o()):{string:o(),length:r-a}}throw TypeError("Unsupported metrics: "+t)},o.readString=o.readUTF8String,o.writeVString=function(e,n){var r,i,o,s,a=void 0===n;if(a&&(n=this.offset),!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}if(o=n,r=u.calculateUTF16asUTF8(t(e),this.noAssert)[1],i=l.calculateVarint32(r),n+=i+r,s=this.buffer.byteLength,n>s&&this.resize((s*=2)>n?s:n),n-=i+r,n+=this.writeVarint32(r,n),u.encodeUTF16toUTF8(t(e),function(e){this.view[n++]=e}.bind(this)),n!==o+r+i)throw RangeError("Illegal range: Truncated data, "+n+" == "+(n+r+i));return a?(this.offset=n,this):n-o},o.readVString=function(e){var t,n,r,i=void 0===e;if(i&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}return t=e,n=this.readVarint32(e),r=this.readUTF8String(n.value,l.METRICS_BYTES,e+=n.length),e+=r.length,i?(this.offset=e,r.string):{string:r.string,length:e-t}},o.append=function(e,t,n){var r,i,o;if(("number"==typeof t||"string"!=typeof t)&&(n=t,t=void 0),(r=void 0===n)&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return e instanceof l||(e=l.wrap(e,t)),(i=e.limit-e.offset)<=0||((n+=i)>(o=this.buffer.byteLength)&&this.resize((o*=2)>n?o:n),n-=i,this.view.set(e.view.subarray(e.offset,e.limit),n),e.offset+=i,r&&(this.offset+=i)),this},o.appendTo=function(e,t){return e.append(this,t),this},o.assert=function(e){return this.noAssert=!e,this},o.capacity=function(){return this.buffer.byteLength},o.clear=function(){return this.offset=0,this.limit=this.buffer.byteLength,this.markedOffset=-1,this},o.clone=function(e){var t=new l(0,this.littleEndian,this.noAssert);return e?(t.buffer=new ArrayBuffer(this.buffer.byteLength),t.view=new Uint8Array(t.buffer)):(t.buffer=this.buffer,t.view=this.view),t.offset=this.offset,t.markedOffset=this.markedOffset,t.limit=this.limit,t},o.compact=function(e,t){var n,r,i;if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}return 0===e&&t===this.buffer.byteLength?this:0===(n=t-e)?(this.buffer=s,this.view=null,this.markedOffset>=0&&(this.markedOffset-=e),this.offset=0,this.limit=0,this):(r=new ArrayBuffer(n),(i=new Uint8Array(r)).set(this.view.subarray(e,t)),this.buffer=r,this.view=i,this.markedOffset>=0&&(this.markedOffset-=e),this.offset=0,this.limit=n,this)},o.copy=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}if(e===t)return new l(0,this.littleEndian,this.noAssert);var n=t-e,r=new l(n,this.littleEndian,this.noAssert);return r.offset=0,r.limit=n,r.markedOffset>=0&&(r.markedOffset-=e),this.copyTo(r,0,e,t),r},o.copyTo=function(e,t,n,r){var i,o,s;if(!this.noAssert&&!l.isByteBuffer(e))throw TypeError("Illegal target: Not a ByteBuffer");if(t=(o=void 0===t)?e.offset:0|t,n=(i=void 0===n)?this.offset:0|n,r=void 0===r?this.limit:0|r,t<0||t>e.buffer.byteLength)throw RangeError("Illegal target range: 0 <= "+t+" <= "+e.buffer.byteLength);if(n<0||r>this.buffer.byteLength)throw RangeError("Illegal source range: 0 <= "+n+" <= "+this.buffer.byteLength);return 0===(s=r-n)?e:(e.ensureCapacity(t+s),e.view.set(this.view.subarray(n,r),t),i&&(this.offset+=s),o&&(e.offset+=s),this)},o.ensureCapacity=function(e){var t=this.buffer.byteLength;return e>t?this.resize((t*=2)>e?t:e):this},o.fill=function(e,t,n){var r=void 0===t;if(r&&(t=this.offset),"string"==typeof e&&e.length>0&&(e=e.charCodeAt(0)),void 0===t&&(t=this.offset),void 0===n&&(n=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal end: Not an integer");if(n>>>=0,t<0||t>n||n>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+n+" <= "+this.buffer.byteLength)}if(t>=n)return this;for(;n>t;)this.view[t++]=e;return r&&(this.offset=t),this},o.flip=function(){return this.limit=this.offset,this.offset=0,this},o.mark=function(e){if(e=void 0===e?this.offset:e,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}return this.markedOffset=e,this},o.order=function(e){if(!this.noAssert&&"boolean"!=typeof e)throw TypeError("Illegal littleEndian: Not a boolean");return this.littleEndian=!!e,this},o.LE=function(e){return this.littleEndian=void 0===e||!!e,this},o.BE=function(e){return this.littleEndian=void 0!==e&&!e,this},o.prepend=function(e,t,n){var r,i,o,s,a;if(("number"==typeof t||"string"!=typeof t)&&(n=t,t=void 0),(r=void 0===n)&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return e instanceof l||(e=l.wrap(e,t)),(i=e.limit-e.offset)<=0||((o=i-n)>0?(s=new ArrayBuffer(this.buffer.byteLength+o),(a=new Uint8Array(s)).set(this.view.subarray(n,this.buffer.byteLength),i),this.buffer=s,this.view=a,this.offset+=o,this.markedOffset>=0&&(this.markedOffset+=o),this.limit+=o,n+=o):new Uint8Array(this.buffer),this.view.set(e.view.subarray(e.offset,e.limit),n-i),e.offset=e.limit,r&&(this.offset-=i)),this},o.prependTo=function(e,t){return e.prepend(this,t),this},o.printDebug=function(e){"function"!=typeof e&&(e=console.log.bind(console)),e(this.toString()+"\n-------------------------------------------------------------------\n"+this.toDebug(!0))},o.remaining=function(){return this.limit-this.offset},o.reset=function(){return this.markedOffset>=0?(this.offset=this.markedOffset,this.markedOffset=-1):this.offset=0,this},o.resize=function(e){var t,n;if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal capacity: "+e+" (not an integer)");if((e|=0)<0)throw RangeError("Illegal capacity: 0 <= "+e)}return this.buffer.byteLength<e&&(t=new ArrayBuffer(e),(n=new Uint8Array(t)).set(this.view),this.buffer=t,this.view=n),this},o.reverse=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}return e===t||Array.prototype.reverse.call(this.view.subarray(e,t)),this},o.skip=function(e){if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal length: "+e+" (not an integer)");e|=0}var t=this.offset+e;if(!this.noAssert&&(t<0||t>this.buffer.byteLength))throw RangeError("Illegal length: 0 <= "+this.offset+" + "+e+" <= "+this.buffer.byteLength);return this.offset=t,this},o.slice=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var n=this.clone();return n.offset=e,n.limit=t,n},o.toBuffer=function(e){var t,n=this.offset,r=this.limit;if(!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: Not an integer");if(n>>>=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal limit: Not an integer");if(r>>>=0,n<0||n>r||r>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+n+" <= "+r+" <= "+this.buffer.byteLength)}return e||0!==n||r!==this.buffer.byteLength?n===r?s:(t=new ArrayBuffer(r-n),new Uint8Array(t).set(new Uint8Array(this.buffer).subarray(n,r),0),t):this.buffer},o.toArrayBuffer=o.toBuffer,o.toString=function(e,t,n){if(void 0===e)return"ByteBufferAB(offset="+this.offset+",markedOffset="+this.markedOffset+",limit="+this.limit+",capacity="+this.capacity()+")";switch("number"==typeof e&&(n=t=e="utf8"),e){case"utf8":return this.toUTF8(t,n);case"base64":return this.toBase64(t,n);case"hex":return this.toHex(t,n);case"binary":return this.toBinary(t,n);case"debug":return this.toDebug();case"columns":return this.toColumns();default:throw Error("Unsupported encoding: "+e)}},c=function(){var e,t,n={},r=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47],i=[];for(e=0,t=r.length;t>e;++e)i[r[e]]=e;return n.encode=function(e,t){for(var n,i;null!==(n=e());)t(r[63&n>>2]),i=(3&n)<<4,null!==(n=e())?(t(r[63&((i|=15&n>>4)|15&n>>4)]),i=(15&n)<<2,null!==(n=e())?(t(r[63&(i|3&n>>6)]),t(r[63&n])):(t(r[63&i]),t(61))):(t(r[63&i]),t(61),t(61))},n.decode=function(e,t){function n(e){throw Error("Illegal character code: "+e)}for(var r,o,s;null!==(r=e());)if(void 0===(o=i[r])&&n(r),null!==(r=e())&&(void 0===(s=i[r])&&n(r),t(o<<2>>>0|(48&s)>>4),null!==(r=e()))){if(void 0===(o=i[r])){if(61===r)break;n(r)}if(t((15&s)<<4>>>0|(60&o)>>2),null!==(r=e())){if(void 0===(s=i[r])){if(61===r)break;n(r)}t((3&o)<<6>>>0|s)}}},n.test=function(e){return/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e)},n}(),o.toBase64=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),t|=0,(e|=0)<0||t>this.capacity||e>t)throw RangeError("begin, end");var r;return c.encode(function(){return t>e?this.view[e++]:null}.bind(this),r=n()),r()},l.fromBase64=function(e,n){if("string"!=typeof e)throw TypeError("str");var r=new l(e.length/4*3,n),i=0;return c.decode(t(e),(function(e){r.view[i++]=e})),r.limit=i,r},l.btoa=function(e){return l.fromBinary(e).toBase64()},l.atob=function(e){return l.fromBase64(e).toBinary()},o.toBinary=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),t|=0,(e|=0)<0||t>this.capacity()||e>t)throw RangeError("begin, end");if(e===t)return"";for(var n=[],r=[];t>e;)n.push(this.view[e++]),n.length>=1024&&(r.push(String.fromCharCode.apply(String,n)),n=[]);return r.join("")+String.fromCharCode.apply(String,n)},l.fromBinary=function(e,t){if("string"!=typeof e)throw TypeError("str");for(var n,r=0,i=e.length,o=new l(i,t);i>r;){if((n=e.charCodeAt(r))>255)throw RangeError("illegal char code: "+n);o.view[r++]=n}return o.limit=i,o},o.toDebug=function(e){for(var t,n=-1,r=this.buffer.byteLength,i="",o="",s="";r>n;){if(-1!==n&&(i+=(t=this.view[n])<16?"0"+t.toString(16).toUpperCase():t.toString(16).toUpperCase(),e&&(o+=t>32&&t<127?String.fromCharCode(t):".")),++n,e&&n>0&&n%16==0&&n!==r){for(;i.length<51;)i+=" ";s+=i+o+"\n",i=o=""}i+=n===this.offset&&n===this.limit?n===this.markedOffset?"!":"|":n===this.offset?n===this.markedOffset?"[":"<":n===this.limit?n===this.markedOffset?"]":">":n===this.markedOffset?"'":e||0!==n&&n!==r?" ":""}if(e&&" "!==i){for(;i.length<51;)i+=" ";s+=i+o+"\n"}return e?s:i},l.fromDebug=function(e,t,n){for(var r,i,o=e.length,s=new l(0|(o+1)/3,t,n),a=0,c=0,u=!1,f=!1,h=!1,d=!1,p=!1;o>a;){switch(r=e.charAt(a++)){case"!":if(!n){if(f||h||d){p=!0;break}f=h=d=!0}s.offset=s.markedOffset=s.limit=c,u=!1;break;case"|":if(!n){if(f||d){p=!0;break}f=d=!0}s.offset=s.limit=c,u=!1;break;case"[":if(!n){if(f||h){p=!0;break}f=h=!0}s.offset=s.markedOffset=c,u=!1;break;case"<":if(!n){if(f){p=!0;break}f=!0}s.offset=c,u=!1;break;case"]":if(!n){if(d||h){p=!0;break}d=h=!0}s.limit=s.markedOffset=c,u=!1;break;case">":if(!n){if(d){p=!0;break}d=!0}s.limit=c,u=!1;break;case"'":if(!n){if(h){p=!0;break}h=!0}s.markedOffset=c,u=!1;break;case" ":u=!1;break;default:if(!n&&u){p=!0;break}if(i=parseInt(r+e.charAt(a++),16),!n&&(isNaN(i)||i<0||i>255))throw TypeError("Illegal str: Not a debug encoded string");s.view[c++]=i,u=!0}if(p)throw TypeError("Illegal str: Invalid symbol at "+a)}if(!n){if(!f||!d)throw TypeError("Illegal str: Missing offset or limit");if(c<s.buffer.byteLength)throw TypeError("Illegal str: Not a debug encoded string (is it hex?) "+c+" < "+o)}return s},o.toHex=function(e,t){if(e=void 0===e?this.offset:e,t=void 0===t?this.limit:t,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}for(var n,r=new Array(t-e);t>e;)(n=this.view[e++])<16?r.push("0",n.toString(16)):r.push(n.toString(16));return r.join("")},l.fromHex=function(e,t,n){var r,i,o,s,a;if(!n){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if(e.length%2!=0)throw TypeError("Illegal str: Length not a multiple of 2")}for(i=e.length,o=new l(0|i/2,t),s=0,a=0;i>s;s+=2){if(r=parseInt(e.substring(s,s+2),16),!n&&(!isFinite(r)||r<0||r>255))throw TypeError("Illegal str: Contains non-hex characters");o.view[a++]=r}return o.limit=a,o},u=function(){var e={MAX_CODEPOINT:1114111,encodeUTF8:function(e,t){var n=null;for("number"==typeof e&&(n=e,e=function(){return null});null!==n||null!==(n=e());)n<128?t(127&n):n<2048?(t(192|31&n>>6),t(128|63&n)):n<65536?(t(224|15&n>>12),t(128|63&n>>6),t(128|63&n)):(t(240|7&n>>18),t(128|63&n>>12),t(128|63&n>>6),t(128|63&n)),n=null},decodeUTF8:function(e,t){for(var n,r,i,o,s=function(e){e=e.slice(0,e.indexOf(null));var t=Error(e.toString());throw t.name="TruncatedError",t.bytes=e,t};null!==(n=e());)if(0==(128&n))t(n);else if(192==(224&n))null===(r=e())&&s([n,r]),t((31&n)<<6|63&r);else if(224==(240&n))(null===(r=e())||null===(i=e()))&&s([n,r,i]),t((15&n)<<12|(63&r)<<6|63&i);else{if(240!=(248&n))throw RangeError("Illegal starting byte: "+n);(null===(r=e())||null===(i=e())||null===(o=e()))&&s([n,r,i,o]),t((7&n)<<18|(63&r)<<12|(63&i)<<6|63&o)}},UTF16toUTF8:function(e,t){for(var n,r=null;null!==(n=null!==r?r:e());)n>=55296&&n<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(t(1024*(n-55296)+r-56320+65536),r=null):t(n);null!==r&&t(r)},UTF8toUTF16:function(e,t){var n=null;for("number"==typeof e&&(n=e,e=function(){return null});null!==n||null!==(n=e());)n<=65535?t(n):(t(55296+((n-=65536)>>10)),t(n%1024+56320)),n=null},encodeUTF16toUTF8:function(t,n){e.UTF16toUTF8(t,(function(t){e.encodeUTF8(t,n)}))},decodeUTF8toUTF16:function(t,n){e.decodeUTF8(t,(function(t){e.UTF8toUTF16(t,n)}))},calculateCodePoint:function(e){return e<128?1:e<2048?2:e<65536?3:4},calculateUTF8:function(e){for(var t,n=0;null!==(t=e());)n+=t<128?1:t<2048?2:t<65536?3:4;return n},calculateUTF16asUTF8:function(t){var n=0,r=0;return e.UTF16toUTF8(t,(function(e){++n,r+=e<128?1:e<2048?2:e<65536?3:4})),[n,r]}};return e}(),o.toUTF8=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var r;try{u.decodeUTF8toUTF16(function(){return t>e?this.view[e++]:null}.bind(this),r=n())}catch(n){if(e!==t)throw RangeError("Illegal range: Truncated data, "+e+" != "+t)}return r()},l.fromUTF8=function(e,n,r){if(!r&&"string"!=typeof e)throw TypeError("Illegal str: Not a string");var i=new l(u.calculateUTF16asUTF8(t(e),!0)[1],n,r),o=0;return u.encodeUTF16toUTF8(t(e),(function(e){i.view[o++]=e})),i.limit=o,i},l}(n),i=function(n,r){var i,o,s={};return s.ByteBuffer=n,s.c=n,i=n,s.Long=r||null,s.VERSION="5.0.1",s.WIRE_TYPES={},s.WIRE_TYPES.VARINT=0,s.WIRE_TYPES.BITS64=1,s.WIRE_TYPES.LDELIM=2,s.WIRE_TYPES.STARTGROUP=3,s.WIRE_TYPES.ENDGROUP=4,s.WIRE_TYPES.BITS32=5,s.PACKABLE_WIRE_TYPES=[s.WIRE_TYPES.VARINT,s.WIRE_TYPES.BITS64,s.WIRE_TYPES.BITS32],s.TYPES={int32:{name:"int32",wireType:s.WIRE_TYPES.VARINT,defaultValue:0},uint32:{name:"uint32",wireType:s.WIRE_TYPES.VARINT,defaultValue:0},sint32:{name:"sint32",wireType:s.WIRE_TYPES.VARINT,defaultValue:0},int64:{name:"int64",wireType:s.WIRE_TYPES.VARINT,defaultValue:s.Long?s.Long.ZERO:void 0},uint64:{name:"uint64",wireType:s.WIRE_TYPES.VARINT,defaultValue:s.Long?s.Long.UZERO:void 0},sint64:{name:"sint64",wireType:s.WIRE_TYPES.VARINT,defaultValue:s.Long?s.Long.ZERO:void 0},bool:{name:"bool",wireType:s.WIRE_TYPES.VARINT,defaultValue:!1},double:{name:"double",wireType:s.WIRE_TYPES.BITS64,defaultValue:0},string:{name:"string",wireType:s.WIRE_TYPES.LDELIM,defaultValue:""},bytes:{name:"bytes",wireType:s.WIRE_TYPES.LDELIM,defaultValue:null},fixed32:{name:"fixed32",wireType:s.WIRE_TYPES.BITS32,defaultValue:0},sfixed32:{name:"sfixed32",wireType:s.WIRE_TYPES.BITS32,defaultValue:0},fixed64:{name:"fixed64",wireType:s.WIRE_TYPES.BITS64,defaultValue:s.Long?s.Long.UZERO:void 0},sfixed64:{name:"sfixed64",wireType:s.WIRE_TYPES.BITS64,defaultValue:s.Long?s.Long.ZERO:void 0},float:{name:"float",wireType:s.WIRE_TYPES.BITS32,defaultValue:0},enum:{name:"enum",wireType:s.WIRE_TYPES.VARINT,defaultValue:0},message:{name:"message",wireType:s.WIRE_TYPES.LDELIM,defaultValue:null},group:{name:"group",wireType:s.WIRE_TYPES.STARTGROUP,defaultValue:null}},s.MAP_KEY_TYPES=[s.TYPES.int32,s.TYPES.sint32,s.TYPES.sfixed32,s.TYPES.uint32,s.TYPES.fixed32,s.TYPES.int64,s.TYPES.sint64,s.TYPES.sfixed64,s.TYPES.uint64,s.TYPES.fixed64,s.TYPES.bool,s.TYPES.string,s.TYPES.bytes],s.ID_MIN=1,s.ID_MAX=536870911,s.convertFieldsToCamelCase=!1,s.populateAccessors=!0,s.populateDefaults=!0,s.Util=function(){var t={};return t.IS_NODE=!("object"!=typeof e||e+""!="[object process]"||e.browser),t.XHR=function(){var e,t=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],n=null;for(e=0;e<t.length;e++){try{n=t[e]()}catch(e){continue}break}if(!n)throw Error("XMLHttpRequest is not supported");return n},t.fetch=function(e,n){if(n&&"function"!=typeof n&&(n=null),t.IS_NODE)if(n)g.readFile(e,(function(e,t){n(e?null:""+t)}));else try{return g.readFileSync(e)}catch(t){return null}else{var r=t.XHR();if(r.open("GET",e,!!n),r.setRequestHeader("Accept","text/plain"),"function"==typeof r.overrideMimeType&&r.overrideMimeType("text/plain"),!n)return r.send(null),200==r.status||0==r.status&&"string"==typeof r.responseText?r.responseText:null;if(r.onreadystatechange=function(){4==r.readyState&&(200==r.status||0==r.status&&"string"==typeof r.responseText?n(r.responseText):n(null))},4==r.readyState)return;r.send(null)}},t.toCamelCase=function(e){return e.replace(/_([a-zA-Z])/g,(function(e,t){return t.toUpperCase()}))},t}(),s.Lang={DELIM:/[\s\{\}=;:\[\],'"\(\)<>]/g,RULE:/^(?:required|optional|repeated|map)$/,TYPE:/^(?:double|float|int32|uint32|sint32|int64|uint64|sint64|fixed32|sfixed32|fixed64|sfixed64|bool|string|bytes)$/,NAME:/^[a-zA-Z_][a-zA-Z_0-9]*$/,TYPEDEF:/^[a-zA-Z][a-zA-Z_0-9]*$/,TYPEREF:/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)+$/,FQTYPEREF:/^(?:\.[a-zA-Z][a-zA-Z_0-9]*)+$/,NUMBER:/^-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+|([0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?)|inf|nan)$/,NUMBER_DEC:/^(?:[1-9][0-9]*|0)$/,NUMBER_HEX:/^0[xX][0-9a-fA-F]+$/,NUMBER_OCT:/^0[0-7]+$/,NUMBER_FLT:/^([0-9]*(\.[0-9]*)?([Ee][+-]?[0-9]+)?|inf|nan)$/,BOOL:/^(?:true|false)$/i,ID:/^(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,NEGID:/^\-?(?:[1-9][0-9]*|0|0[xX][0-9a-fA-F]+|0[0-7]+)$/,WHITESPACE:/\s/,STRING:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")|(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,STRING_DQ:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,STRING_SQ:/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g},s.DotProto=function(e,t){function n(e,n){var r=-1,i=1;if("-"==e.charAt(0)&&(i=-1,e=e.substring(1)),t.NUMBER_DEC.test(e))r=parseInt(e);else if(t.NUMBER_HEX.test(e))r=parseInt(e.substring(2),16);else{if(!t.NUMBER_OCT.test(e))throw Error("illegal id value: "+(i<0?"-":"")+e);r=parseInt(e.substring(1),8)}if(r=0|i*r,!n&&r<0)throw Error("illegal id value: "+(i<0?"-":"")+e);return r}function r(e){var n=1;if("-"==e.charAt(0)&&(n=-1,e=e.substring(1)),t.NUMBER_DEC.test(e))return n*parseInt(e,10);if(t.NUMBER_HEX.test(e))return n*parseInt(e.substring(2),16);if(t.NUMBER_OCT.test(e))return n*parseInt(e.substring(1),8);if("inf"===e)return 1/0*n;if("nan"===e)return NaN;if(t.NUMBER_FLT.test(e))return n*parseFloat(e);throw Error("illegal number value: "+(n<0?"-":"")+e)}function i(e,t,n){void 0===e[t]?e[t]=n:(Array.isArray(e[t])||(e[t]=[e[t]]),e[t].push(n))}var o,s,a={},c=function(e){this.source=e+"",this.index=0,this.line=1,this.stack=[],this._stringOpen=null},u=c.prototype;return u._readString=function(){var e,n='"'===this._stringOpen?t.STRING_DQ:t.STRING_SQ;if(n.lastIndex=this.index-1,!(e=n.exec(this.source)))throw Error("unterminated string");return this.index=n.lastIndex,this.stack.push(this._stringOpen),this._stringOpen=null,e[1]},u.next=function(){var e,n,r,i,o;if(this.stack.length>0)return this.stack.shift();if(this.index>=this.source.length)return null;if(null!==this._stringOpen)return this._readString();do{for(e=!1;t.WHITESPACE.test(r=this.source.charAt(this.index));)if("\n"===r&&++this.line,++this.index===this.source.length)return null;if("/"===this.source.charAt(this.index))if(++this.index,"/"===this.source.charAt(this.index)){for(;"\n"!==this.source.charAt(++this.index);)if(this.index==this.source.length)return null;++this.index,++this.line,e=!0}else{if("*"!==(r=this.source.charAt(this.index)))return"/";do{if("\n"===r&&++this.line,++this.index===this.source.length)return null;n=r,r=this.source.charAt(this.index)}while("*"!==n||"/"!==r);++this.index,e=!0}}while(e);if(this.index===this.source.length)return null;if(i=this.index,t.DELIM.lastIndex=0,!t.DELIM.test(this.source.charAt(i++)))for(;i<this.source.length&&!t.DELIM.test(this.source.charAt(i));)++i;return('"'===(o=this.source.substring(this.index,this.index=i))||"'"===o)&&(this._stringOpen=o),o},u.peek=function(){if(0===this.stack.length){var e=this.next();if(null===e)return null;this.stack.push(e)}return this.stack[0]},u.skip=function(e){var t=this.next();if(t!==e)throw Error("illegal '"+t+"', '"+e+"' expected")},u.omit=function(e){return this.peek()===e&&(this.next(),!0)},u.toString=function(){return"Tokenizer ("+this.index+"/"+this.source.length+" at line "+this.line+")"},a.Tokenizer=c,o=function(e){this.tn=new c(e),this.proto3=!1},(s=o.prototype).parse=function(){var e,n={name:"[ROOT]",package:null,messages:[],enums:[],imports:[],options:{},services:[]},r=!0;try{for(;e=this.tn.next();)switch(e){case"package":if(!r||null!==n.package)throw Error("unexpected 'package'");if(e=this.tn.next(),!t.TYPEREF.test(e))throw Error("illegal package name: "+e);this.tn.skip(";"),n.package=e;break;case"import":if(!r)throw Error("unexpected 'import'");"public"===(e=this.tn.peek())&&this.tn.next(),e=this._readString(),this.tn.skip(";"),n.imports.push(e);break;case"syntax":if(!r)throw Error("unexpected 'syntax'");this.tn.skip("="),"proto3"===(n.syntax=this._readString())&&(this.proto3=!0),this.tn.skip(";");break;case"message":this._parseMessage(n,null),r=!1;break;case"enum":this._parseEnum(n),r=!1;break;case"option":this._parseOption(n);break;case"service":this._parseService(n);break;case"extend":this._parseExtend(n);break;default:throw Error("unexpected '"+e+"'")}}catch(e){throw e.message="Parse error at line "+this.tn.line+": "+e.message,e}return delete n.name,n},o.parse=function(e){return new o(e).parse()},s._readString=function(){var e,t,n="";do{if("'"!==(t=this.tn.next())&&'"'!==t)throw Error("illegal string delimiter: "+t);n+=this.tn.next(),this.tn.skip(t),e=this.tn.peek()}while('"'===e||'"'===e);return n},s._readValue=function(e){var n=this.tn.peek();if('"'===n||"'"===n)return this._readString();if(this.tn.next(),t.NUMBER.test(n))return r(n);if(t.BOOL.test(n))return"true"===n.toLowerCase();if(e&&t.TYPEREF.test(n))return n;throw Error("illegal value: "+n)},s._parseOption=function(e,n){var r,i=this.tn.next(),o=!1;if("("===i&&(o=!0,i=this.tn.next()),!t.TYPEREF.test(i))throw Error("illegal option name: "+i);r=i,o&&(this.tn.skip(")"),r="("+r+")",i=this.tn.peek(),t.FQTYPEREF.test(i)&&(r+=i,this.tn.next())),this.tn.skip("="),this._parseOptionValue(e,r),n||this.tn.skip(";")},s._parseOptionValue=function(e,n){var r=this.tn.peek();if("{"!==r)i(e.options,n,this._readValue(!0));else for(this.tn.skip("{");"}"!==(r=this.tn.next());){if(!t.NAME.test(r))throw Error("illegal option name: "+n+"."+r);this.tn.omit(":")?i(e.options,n+"."+r,this._readValue(!0)):this._parseOptionValue(e,n+"."+r)}},s._parseService=function(e){var n,r=this.tn.next();if(!t.NAME.test(r))throw Error("illegal service name at line "+this.tn.line+": "+r);for(n={name:r,rpc:{},options:{}},this.tn.skip("{");"}"!==(r=this.tn.next());)if("option"===r)this._parseOption(n);else{if("rpc"!==r)throw Error("illegal service token: "+r);this._parseServiceRPC(n)}this.tn.omit(";"),e.services.push(n)},s._parseServiceRPC=function(e){var n,r,i="rpc",o=this.tn.next();if(!t.NAME.test(o))throw Error("illegal rpc service method name: "+o);if(n=o,r={request:null,response:null,request_stream:!1,response_stream:!1,options:{}},this.tn.skip("("),"stream"===(o=this.tn.next()).toLowerCase()&&(r.request_stream=!0,o=this.tn.next()),!t.TYPEREF.test(o))throw Error("illegal rpc service request type: "+o);if(r.request=o,this.tn.skip(")"),"returns"!==(o=this.tn.next()).toLowerCase())throw Error("illegal rpc service request type delimiter: "+o);if(this.tn.skip("("),"stream"===(o=this.tn.next()).toLowerCase()&&(r.response_stream=!0,o=this.tn.next()),r.response=o,this.tn.skip(")"),"{"===(o=this.tn.peek())){for(this.tn.next();"}"!==(o=this.tn.next());){if("option"!==o)throw Error("illegal rpc service token: "+o);this._parseOption(r)}this.tn.omit(";")}else this.tn.skip(";");void 0===e[i]&&(e[i]={}),e[i][n]=r},s._parseMessage=function(e,r){var i=!!r,o=this.tn.next(),s={name:"",fields:[],enums:[],messages:[],options:{},services:[],oneofs:{}};if(!t.NAME.test(o))throw Error("illegal "+(i?"group":"message")+" name: "+o);for(s.name=o,i&&(this.tn.skip("="),r.id=n(this.tn.next()),s.isGroup=!0),"["===(o=this.tn.peek())&&r&&this._parseFieldOptions(r),this.tn.skip("{");"}"!==(o=this.tn.next());)if(t.RULE.test(o))this._parseMessageField(s,o);else if("oneof"===o)this._parseMessageOneOf(s);else if("enum"===o)this._parseEnum(s);else if("message"===o)this._parseMessage(s);else if("option"===o)this._parseOption(s);else if("service"===o)this._parseService(s);else if("extensions"===o)s.extensions=this._parseExtensionRanges();else if("reserved"===o)this._parseIgnored();else if("extend"===o)this._parseExtend(s);else{if(!t.TYPEREF.test(o))throw Error("illegal message token: "+o);if(!this.proto3)throw Error("illegal field rule: "+o);this._parseMessageField(s,"optional",o)}return this.tn.omit(";"),e.messages.push(s),s},s._parseIgnored=function(){for(;";"!==this.tn.peek();)this.tn.next();this.tn.skip(";")},s._parseMessageField=function(e,r,i){var o,s,a;if(!t.RULE.test(r))throw Error("illegal message field rule: "+r);if(o={rule:r,type:"",name:"",options:{},id:0},"map"===r){if(i)throw Error("illegal type: "+i);if(this.tn.skip("<"),s=this.tn.next(),!t.TYPE.test(s)&&!t.TYPEREF.test(s))throw Error("illegal message field type: "+s);if(o.keytype=s,this.tn.skip(","),s=this.tn.next(),!t.TYPE.test(s)&&!t.TYPEREF.test(s))throw Error("illegal message field: "+s);if(o.type=s,this.tn.skip(">"),s=this.tn.next(),!t.NAME.test(s))throw Error("illegal message field name: "+s);o.name=s,this.tn.skip("="),o.id=n(this.tn.next()),"["===(s=this.tn.peek())&&this._parseFieldOptions(o),this.tn.skip(";")}else if("group"===(i=void 0!==i?i:this.tn.next())){if(a=this._parseMessage(e,o),!/^[A-Z]/.test(a.name))throw Error("illegal group name: "+a.name);o.type=a.name,o.name=a.name.toLowerCase(),this.tn.omit(";")}else{if(!t.TYPE.test(i)&&!t.TYPEREF.test(i))throw Error("illegal message field type: "+i);if(o.type=i,s=this.tn.next(),!t.NAME.test(s))throw Error("illegal message field name: "+s);o.name=s,this.tn.skip("="),o.id=n(this.tn.next()),"["===(s=this.tn.peek())&&this._parseFieldOptions(o),this.tn.skip(";")}return e.fields.push(o),o},s._parseMessageOneOf=function(e){var n,r,i,o=this.tn.next();if(!t.NAME.test(o))throw Error("illegal oneof name: "+o);for(r=o,i=[],this.tn.skip("{");"}"!==(o=this.tn.next());)(n=this._parseMessageField(e,"optional",o)).oneof=r,i.push(n.id);this.tn.omit(";"),e.oneofs[r]=i},s._parseFieldOptions=function(e){this.tn.skip("[");for(var t=!0;"]"!==this.tn.peek();)t||this.tn.skip(","),this._parseOption(e,!0),t=!1;this.tn.next()},s._parseEnum=function(e){var r,i={name:"",values:[],options:{}},o=this.tn.next();if(!t.NAME.test(o))throw Error("illegal name: "+o);for(i.name=o,this.tn.skip("{");"}"!==(o=this.tn.next());)if("option"===o)this._parseOption(i);else{if(!t.NAME.test(o))throw Error("illegal name: "+o);this.tn.skip("="),r={name:o,id:n(this.tn.next(),!0)},"["===(o=this.tn.peek())&&this._parseFieldOptions({options:{}}),this.tn.skip(";"),i.values.push(r)}this.tn.omit(";"),e.enums.push(i)},s._parseExtensionRanges=function(){var t,n,i,o=[];do{for(n=[];;){switch(t=this.tn.next()){case"min":i=e.ID_MIN;break;case"max":i=e.ID_MAX;break;default:i=r(t)}if(n.push(i),2===n.length)break;if("to"!==this.tn.peek()){n.push(i);break}this.tn.next()}o.push(n)}while(this.tn.omit(","));return this.tn.skip(";"),o},s._parseExtend=function(e){var n,r=this.tn.next();if(!t.TYPEREF.test(r))throw Error("illegal extend reference: "+r);for(n={ref:r,fields:[]},this.tn.skip("{");"}"!==(r=this.tn.next());)if(t.RULE.test(r))this._parseMessageField(n,r);else{if(!t.TYPEREF.test(r))throw Error("illegal extend token: "+r);if(!this.proto3)throw Error("illegal field rule: "+r);this._parseMessageField(n,"optional",r)}return this.tn.omit(";"),e.messages.push(n),n},s.toString=function(){return"Parser at line "+this.tn.line},a.Parser=o,a}(s,s.Lang),s.Reflect=function(e){function t(t,n){if(t&&"number"==typeof t.low&&"number"==typeof t.high&&"boolean"==typeof t.unsigned&&t.low==t.low&&t.high==t.high)return new e.Long(t.low,t.high,void 0===n?t.unsigned:n);if("string"==typeof t)return e.Long.fromString(t,n||!1,10);if("number"==typeof t)return e.Long.fromNumber(t,n||!1);throw Error("not convertible to Long")}function r(t,n){var i=n.readVarint32(),o=7&i,s=i>>>3;switch(o){case e.WIRE_TYPES.VARINT:do{i=n.readUint8()}while(128==(128&i));break;case e.WIRE_TYPES.BITS64:n.offset+=8;break;case e.WIRE_TYPES.LDELIM:i=n.readVarint32(),n.offset+=i;break;case e.WIRE_TYPES.STARTGROUP:r(s,n);break;case e.WIRE_TYPES.ENDGROUP:if(s===t)return!1;throw Error("Illegal GROUPEND after unknown group: "+s+" ("+t+" expected)");case e.WIRE_TYPES.BITS32:n.offset+=4;break;default:throw Error("Illegal wire type in unknown group "+t+": "+o)}return!0}var o,s,a,c,u,l,f,h,d,p,g,v,y,m,I,M,C={},T=function(e,t,n){this.builder=e,this.parent=t,this.name=n,this.className},A=T.prototype;return A.fqn=function(){for(var e=this.name,t=this;null!=(t=t.parent);)e=t.name+"."+e;return e},A.toString=function(e){return(e?this.className+" ":"")+this.fqn()},A.build=function(){throw Error(this.toString(!0)+" cannot be built directly")},C.T=T,o=function(e,t,n,r,i){T.call(this,e,t,n),this.className="Namespace",this.children=[],this.options=r||{},this.syntax=i||"proto2"},(s=o.prototype=Object.create(T.prototype)).getChildren=function(e){var t,n,r;if(null==(e=e||null))return this.children.slice();for(t=[],n=0,r=this.children.length;r>n;++n)this.children[n]instanceof e&&t.push(this.children[n]);return t},s.addChild=function(e){var t;if(t=this.getChild(e.name))if(t instanceof u.Field&&t.name!==t.originalName&&null===this.getChild(t.originalName))t.name=t.originalName;else{if(!(e instanceof u.Field&&e.name!==e.originalName&&null===this.getChild(e.originalName)))throw Error("Duplicate name in namespace "+this.toString(!0)+": "+e.name);e.name=e.originalName}this.children.push(e)},s.getChild=function(e){var t,n,r="number"==typeof e?"id":"name";for(t=0,n=this.children.length;n>t;++t)if(this.children[t][r]===e)return this.children[t];return null},s.resolve=function(e,t){var n,r="string"==typeof e?e.split("."):e,i=this,o=0;if(""===r[o]){for(;null!==i.parent;)i=i.parent;o++}do{do{if(!(i instanceof C.Namespace)){i=null;break}if(!((n=i.getChild(r[o]))&&n instanceof C.T&&(!t||n instanceof C.Namespace))){i=null;break}i=n,o++}while(o<r.length);if(null!=i)break;if(null!==this.parent)return this.parent.resolve(e,t)}while(null!=i);return i},s.qn=function(e){var t,n,r=[],i=e;do{r.unshift(i.name),i=i.parent}while(null!==i);for(t=1;t<=r.length;t++)if(n=r.slice(r.length-t),e===this.resolve(n,e instanceof C.Namespace))return n.join(".");return e.fqn()},s.build=function(){var e,t,n,r={},i=this.children;for(t=0,n=i.length;n>t;++t)(e=i[t])instanceof o&&(r[e.name]=e.build());return Object.defineProperty&&Object.defineProperty(r,"$options",{value:this.buildOpt()}),r},s.buildOpt=function(){var e,t,n,r,i={},o=Object.keys(this.options);for(e=0,t=o.length;t>e;++e)n=o[e],r=this.options[o[e]],i[n]=r;return i},s.getOption=function(e){return void 0===e?this.options:void 0!==this.options[e]?this.options[e]:null},C.Namespace=o,a=function(t,n,r,i){if(this.type=t,this.resolvedType=n,this.isMapKey=r,this.syntax=i,r&&e.MAP_KEY_TYPES.indexOf(t)<0)throw Error("Invalid map key type: "+t.name)},c=a.prototype,a.defaultFieldValue=function(t){if("string"==typeof t&&(t=e.TYPES[t]),void 0===t.defaultValue)throw Error("default value for type "+t.name+" is not supported");return t==e.TYPES.bytes?new i(0):t.defaultValue},c.verifyValue=function(r){var i,o,s,a=function(e,t){throw Error("Illegal value for "+this.toString(!0)+" of type "+this.type.name+": "+e+" ("+t+")")}.bind(this);switch(this.type){case e.TYPES.int32:case e.TYPES.sint32:case e.TYPES.sfixed32:return("number"!=typeof r||r==r&&r%1!=0)&&a(typeof r,"not an integer"),r>4294967295?0|r:r;case e.TYPES.uint32:case e.TYPES.fixed32:return("number"!=typeof r||r==r&&r%1!=0)&&a(typeof r,"not an integer"),r<0?r>>>0:r;case e.TYPES.int64:case e.TYPES.sint64:case e.TYPES.sfixed64:if(e.Long)try{return t(r,!1)}catch(e){a(typeof r,e.message)}else a(typeof r,"requires Long.js");case e.TYPES.uint64:case e.TYPES.fixed64:if(e.Long)try{return t(r,!0)}catch(e){a(typeof r,e.message)}else a(typeof r,"requires Long.js");case e.TYPES.bool:return"boolean"!=typeof r&&a(typeof r,"not a boolean"),r;case e.TYPES.float:case e.TYPES.double:return"number"!=typeof r&&a(typeof r,"not a number"),r;case e.TYPES.string:return"string"==typeof r||r&&r instanceof String||a(typeof r,"not a string"),""+r;case e.TYPES.bytes:return n.isByteBuffer(r)?r:n.wrap(r);case e.TYPES.enum:for(i=this.resolvedType.getChildren(e.Reflect.Enum.Value),s=0;s<i.length;s++){if(i[s].name==r)return i[s].id;if(i[s].id==r)return i[s].id}if("proto3"===this.syntax)return("number"!=typeof r||r==r&&r%1!=0)&&a(typeof r,"not an integer"),(r>4294967295||r<0)&&a(typeof r,"not in range for uint32"),r;a(r,"not a valid enum value");case e.TYPES.group:case e.TYPES.message:if(r&&"object"==typeof r||a(typeof r,"object expected"),r instanceof this.resolvedType.clazz)return r;if(r instanceof e.Builder.Message){for(s in o={},r)r.hasOwnProperty(s)&&(o[s]=r[s]);r=o}return new this.resolvedType.clazz(r)}throw Error("[INTERNAL] Illegal value for "+this.toString(!0)+": "+r+" (undefined type "+this.type+")")},c.calculateLength=function(t,n){if(null===n)return 0;var r;switch(this.type){case e.TYPES.int32:return n<0?i.calculateVarint64(n):i.calculateVarint32(n);case e.TYPES.uint32:return i.calculateVarint32(n);case e.TYPES.sint32:return i.calculateVarint32(i.zigZagEncode32(n));case e.TYPES.fixed32:case e.TYPES.sfixed32:case e.TYPES.float:return 4;case e.TYPES.int64:case e.TYPES.uint64:return i.calculateVarint64(n);case e.TYPES.sint64:return i.calculateVarint64(i.zigZagEncode64(n));case e.TYPES.fixed64:case e.TYPES.sfixed64:return 8;case e.TYPES.bool:return 1;case e.TYPES.enum:return i.calculateVarint32(n);case e.TYPES.double:return 8;case e.TYPES.string:return r=i.calculateUTF8Bytes(n),i.calculateVarint32(r)+r;case e.TYPES.bytes:if(n.remaining()<0)throw Error("Illegal value for "+this.toString(!0)+": "+n.remaining()+" bytes remaining");return i.calculateVarint32(n.remaining())+n.remaining();case e.TYPES.message:return r=this.resolvedType.calculate(n),i.calculateVarint32(r)+r;case e.TYPES.group:return(r=this.resolvedType.calculate(n))+i.calculateVarint32(t<<3|e.WIRE_TYPES.ENDGROUP)}throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+n+" (unknown type)")},c.encodeValue=function(t,n,r){var o,s;if(null===n)return r;switch(this.type){case e.TYPES.int32:n<0?r.writeVarint64(n):r.writeVarint32(n);break;case e.TYPES.uint32:r.writeVarint32(n);break;case e.TYPES.sint32:r.writeVarint32ZigZag(n);break;case e.TYPES.fixed32:r.writeUint32(n);break;case e.TYPES.sfixed32:r.writeInt32(n);break;case e.TYPES.int64:case e.TYPES.uint64:r.writeVarint64(n);break;case e.TYPES.sint64:r.writeVarint64ZigZag(n);break;case e.TYPES.fixed64:r.writeUint64(n);break;case e.TYPES.sfixed64:r.writeInt64(n);break;case e.TYPES.bool:"string"==typeof n?r.writeVarint32("false"===n.toLowerCase()?0:!!n):r.writeVarint32(n?1:0);break;case e.TYPES.enum:r.writeVarint32(n);break;case e.TYPES.float:r.writeFloat32(n);break;case e.TYPES.double:r.writeFloat64(n);break;case e.TYPES.string:r.writeVString(n);break;case e.TYPES.bytes:if(n.remaining()<0)throw Error("Illegal value for "+this.toString(!0)+": "+n.remaining()+" bytes remaining");o=n.offset,r.writeVarint32(n.remaining()),r.append(n),n.offset=o;break;case e.TYPES.message:s=(new i).LE(),this.resolvedType.encode(n,s),r.writeVarint32(s.offset),r.append(s.flip());break;case e.TYPES.group:this.resolvedType.encode(n,r),r.writeVarint32(t<<3|e.WIRE_TYPES.ENDGROUP);break;default:throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+n+" (unknown type)")}return r},c.decode=function(t,n,r){if(n!=this.type.wireType)throw Error("Unexpected wire type for element");var i,o;switch(this.type){case e.TYPES.int32:return 0|t.readVarint32();case e.TYPES.uint32:return t.readVarint32()>>>0;case e.TYPES.sint32:return 0|t.readVarint32ZigZag();case e.TYPES.fixed32:return t.readUint32()>>>0;case e.TYPES.sfixed32:return 0|t.readInt32();case e.TYPES.int64:return t.readVarint64();case e.TYPES.uint64:return t.readVarint64().toUnsigned();case e.TYPES.sint64:return t.readVarint64ZigZag();case e.TYPES.fixed64:return t.readUint64();case e.TYPES.sfixed64:return t.readInt64();case e.TYPES.bool:return!!t.readVarint32();case e.TYPES.enum:return t.readVarint32();case e.TYPES.float:return t.readFloat();case e.TYPES.double:return t.readDouble();case e.TYPES.string:return t.readVString();case e.TYPES.bytes:if(o=t.readVarint32(),t.remaining()<o)throw Error("Illegal number of bytes for "+this.toString(!0)+": "+o+" required but got only "+t.remaining());return(i=t.clone()).limit=i.offset+o,t.offset+=o,i;case e.TYPES.message:return o=t.readVarint32(),this.resolvedType.decode(t,o);case e.TYPES.group:return this.resolvedType.decode(t,-1,r)}throw Error("[INTERNAL] Illegal decode type")},c.valueFromString=function(t){if(!this.isMapKey)throw Error("valueFromString() called on non-map-key element");switch(this.type){case e.TYPES.int32:case e.TYPES.sint32:case e.TYPES.sfixed32:case e.TYPES.uint32:case e.TYPES.fixed32:return this.verifyValue(parseInt(t));case e.TYPES.int64:case e.TYPES.sint64:case e.TYPES.sfixed64:case e.TYPES.uint64:case e.TYPES.fixed64:return this.verifyValue(t);case e.TYPES.bool:return"true"===t;case e.TYPES.string:return this.verifyValue(t);case e.TYPES.bytes:return i.fromBinary(t)}},c.valueToString=function(t){if(!this.isMapKey)throw Error("valueToString() called on non-map-key element");return this.type===e.TYPES.bytes?t.toString("binary"):t.toString()},C.Element=a,u=function(e,t,n,r,i,s){o.call(this,e,t,n,r,s),this.className="Message",this.extensions=void 0,this.clazz=null,this.isGroup=!!i,this._fields=null,this._fieldsById=null,this._fieldsByName=null},(l=u.prototype=Object.create(o.prototype)).build=function(t){var r,o,s,a;if(this.clazz&&!t)return this.clazz;for(r=function(e,t){function r(t,n,o,s){var a,c,u,l,f,h,d;if(null===t||"object"!=typeof t)return s&&s instanceof e.Reflect.Enum&&null!==(a=e.Reflect.Enum.getName(s.object,t))?a:t;if(i.isByteBuffer(t))return n?t.toBase64():t.toBuffer();if(e.Long.isLong(t))return o?t.toString():e.Long.fromValue(t);if(Array.isArray(t))return c=[],t.forEach((function(e,t){c[t]=r(e,n,o,s)})),c;if(c={},t instanceof e.Map){for(l=(u=t.entries()).next();!l.done;l=u.next())c[t.keyElem.valueToString(l.value[0])]=r(l.value[1],n,o,t.valueElem.resolvedType);return c}for(d in f=t.$type,h=void 0,t)t.hasOwnProperty(d)&&(c[d]=f&&(h=f.getChild(d))?r(t[d],n,o,h.resolvedType):r(t[d],n,o));return c}var o,s,a=t.getChildren(e.Reflect.Message.Field),c=t.getChildren(e.Reflect.Message.OneOf),u=function(n){var r,o,s,l;for(e.Builder.Message.call(this),r=0,o=c.length;o>r;++r)this[c[r].name]=null;for(r=0,o=a.length;o>r;++r)this[(s=a[r]).name]=s.repeated?[]:s.map?new e.Map(s):null,!s.required&&"proto3"!==t.syntax||null===s.defaultValue||(this[s.name]=s.defaultValue);if(arguments.length>0)if(1!==arguments.length||null===n||"object"!=typeof n||!("function"!=typeof n.encode||n instanceof u)||Array.isArray(n)||n instanceof e.Map||i.isByteBuffer(n)||n instanceof ArrayBuffer||e.Long&&n instanceof e.Long)for(r=0,o=arguments.length;o>r;++r)void 0!==(l=arguments[r])&&this.$set(a[r].name,l);else this.$set(n)},l=u.prototype=Object.create(e.Builder.Message.prototype);for(l.add=function(n,r,i){var o=t._fieldsByName[n];if(!i){if(!o)throw Error(this+"#"+n+" is undefined");if(!(o instanceof e.Reflect.Message.Field))throw Error(this+"#"+n+" is not a field: "+o.toString(!0));if(!o.repeated)throw Error(this+"#"+n+" is not a repeated field");r=o.verifyValue(r,!0)}return null===this[n]&&(this[n]=[]),this[n].push(r),this},l.$add=l.add,l.set=function(n,r,i){var o,s,a;if(n&&"object"==typeof n){for(o in i=r,n)n.hasOwnProperty(o)&&void 0!==(r=n[o])&&this.$set(o,r,i);return this}if(s=t._fieldsByName[n],i)this[n]=r;else{if(!s)throw Error(this+"#"+n+" is not a field: undefined");if(!(s instanceof e.Reflect.Message.Field))throw Error(this+"#"+n+" is not a field: "+s.toString(!0));this[s.name]=r=s.verifyValue(r)}return s&&s.oneof&&(a=this[s.oneof.name],null!==r?(null!==a&&a!==s.name&&(this[a]=null),this[s.oneof.name]=s.name):a===n&&(this[s.oneof.name]=null)),this},l.$set=l.set,l.get=function(n,r){if(r)return this[n];var i=t._fieldsByName[n];if(!(i&&i instanceof e.Reflect.Message.Field))throw Error(this+"#"+n+" is not a field: undefined");if(!(i instanceof e.Reflect.Message.Field))throw Error(this+"#"+n+" is not a field: "+i.toString(!0));return this[i.name]},l.$get=l.get,o=0;o<a.length;o++)(s=a[o])instanceof e.Reflect.Message.ExtensionField||t.builder.options.populateAccessors&&function(e){var n,r,i,o=e.originalName.replace(/(_[a-zA-Z])/g,(function(e){return e.toUpperCase().replace("_","")}));o=o.substring(0,1).toUpperCase()+o.substring(1),n=e.originalName.replace(/([A-Z])/g,(function(e){return"_"+e})),r=function(t,n){return this[e.name]=n?t:e.verifyValue(t),this},i=function(){return this[e.name]},null===t.getChild("set"+o)&&(l["set"+o]=r),null===t.getChild("set_"+n)&&(l["set_"+n]=r),null===t.getChild("get"+o)&&(l["get"+o]=i),null===t.getChild("get_"+n)&&(l["get_"+n]=i)}(s);return l.encode=function(e,r){var i,o;"boolean"==typeof e&&(r=e,e=void 0),i=!1,e||(e=new n,i=!0),o=e.littleEndian;try{return t.encode(this,e.LE(),r),(i?e.flip():e).LE(o)}catch(n){throw e.LE(o),n}},u.encode=function(e,t,n){return new u(e).encode(t,n)},l.calculate=function(){return t.calculate(this)},l.encodeDelimited=function(e){var n,r=!1;return e||(e=new i,r=!0),n=(new i).LE(),t.encode(this,n).flip(),e.writeVarint32(n.remaining()),e.append(n),r?e.flip():e},l.encodeAB=function(){try{return this.encode().toArrayBuffer()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toArrayBuffer()),e}},l.toArrayBuffer=l.encodeAB,l.encodeNB=function(){try{return this.encode().toBuffer()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toBuffer()),e}},l.toBuffer=l.encodeNB,l.encode64=function(){try{return this.encode().toBase64()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toBase64()),e}},l.toBase64=l.encode64,l.encodeHex=function(){try{return this.encode().toHex()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toHex()),e}},l.toHex=l.encodeHex,l.toRaw=function(e,t){return r(this,!!e,!!t,this.$type)},l.encodeJSON=function(){return JSON.stringify(r(this,!0,!0,this.$type))},u.decode=function(e,n){var r,o;"string"==typeof e&&(e=i.wrap(e,n||"base64")),r=(e=i.isByteBuffer(e)?e:i.wrap(e)).littleEndian;try{return o=t.decode(e.LE()),e.LE(r),o}catch(n){throw e.LE(r),n}},u.decodeDelimited=function(e,n){var r,o,s;if("string"==typeof e&&(e=i.wrap(e,n||"base64")),(e=i.isByteBuffer(e)?e:i.wrap(e)).remaining()<1)return null;if(r=e.offset,o=e.readVarint32(),e.remaining()<o)return e.offset=r,null;try{return s=t.decode(e.slice(e.offset,e.offset+o).LE()),e.offset+=o,s}catch(n){throw e.offset+=o,n}},u.decode64=function(e){return u.decode(e,"base64")},u.decodeHex=function(e){return u.decode(e,"hex")},u.decodeJSON=function(e){return new u(JSON.parse(e))},l.toString=function(){return t.toString()},Object.defineProperty&&(Object.defineProperty(u,"$options",{value:t.buildOpt()}),Object.defineProperty(l,"$options",{value:u.$options}),Object.defineProperty(u,"$type",{value:t}),Object.defineProperty(l,"$type",{value:t})),u}(e,this),this._fields=[],this._fieldsById={},this._fieldsByName={},s=0,a=this.children.length;a>s;s++)if((o=this.children[s])instanceof g||o instanceof u||o instanceof m){if(r.hasOwnProperty(o.name))throw Error("Illegal reflect child of "+this.toString(!0)+": "+o.toString(!0)+" cannot override static property '"+o.name+"'");r[o.name]=o.build()}else if(o instanceof u.Field)o.build(),this._fields.push(o),this._fieldsById[o.id]=o,this._fieldsByName[o.name]=o;else if(!(o instanceof u.OneOf||o instanceof y))throw Error("Illegal reflect child of "+this.toString(!0)+": "+this.children[s].toString(!0));return this.clazz=r},l.encode=function(e,t,n){var r,i,o,s,a,c=null;for(o=0,s=this._fields.length;s>o;++o)i=e[(r=this._fields[o]).name],r.required&&null===i?null===c&&(c=r):r.encode(n?i:r.verifyValue(i),t,e);if(null!==c)throw(a=Error("Missing at least one required field for "+this.toString(!0)+": "+c)).encoded=t,a;return t},l.calculate=function(e){for(var t,n,r=0,i=0,o=this._fields.length;o>i;++i){if(n=e[(t=this._fields[i]).name],t.required&&null===n)throw Error("Missing at least one required field for "+this.toString(!0)+": "+t);r+=t.calculate(n,e)}return r},l.decode=function(t,n,i){var o,s,a,c,u,l,f,h,d,p,g,v;for(n="number"==typeof n?n:-1,u=t.offset,l=new this.clazz;t.offset<u+n||-1===n&&t.remaining()>0;){if(a=(o=t.readVarint32())>>>3,(s=7&o)===e.WIRE_TYPES.ENDGROUP){if(a!==i)throw Error("Illegal group end indicator for "+this.toString(!0)+": "+a+" ("+(i?i+" expected":"not a group")+")");break}if(c=this._fieldsById[a])c.repeated&&!c.options.packed?l[c.name].push(c.decode(s,t)):c.map?(h=c.decode(s,t),l[c.name].set(h[0],h[1])):(l[c.name]=c.decode(s,t),c.oneof&&(null!==(d=l[c.oneof.name])&&d!==c.name&&(l[d]=null),l[c.oneof.name]=c.name));else switch(s){case e.WIRE_TYPES.VARINT:t.readVarint32();break;case e.WIRE_TYPES.BITS32:t.offset+=4;break;case e.WIRE_TYPES.BITS64:t.offset+=8;break;case e.WIRE_TYPES.LDELIM:f=t.readVarint32(),t.offset+=f;break;case e.WIRE_TYPES.STARTGROUP:for(;r(a,t););break;default:throw Error("Illegal wire type for unknown field "+a+" in "+this.toString(!0)+"#decode: "+s)}}for(p=0,g=this._fields.length;g>p;++p)if(null===l[(c=this._fields[p]).name])if("proto3"===this.syntax)l[c.name]=c.defaultValue;else{if(c.required)throw(v=Error("Missing at least one required field for "+this.toString(!0)+": "+c.name)).decoded=l,v;e.populateDefaults&&null!==c.defaultValue&&(l[c.name]=c.defaultValue)}return l},C.Message=u,f=function(t,n,r,i,o,s,a,c,l,f){T.call(this,t,n,s),this.className="Message.Field",this.required="required"===r,this.repeated="repeated"===r,this.map="map"===r,this.keyType=i||null,this.type=o,this.resolvedType=null,this.id=a,this.options=c||{},this.defaultValue=null,this.oneof=l||null,this.syntax=f||"proto2",this.originalName=this.name,this.element=null,this.keyElement=null,!this.builder.options.convertFieldsToCamelCase||this instanceof u.ExtensionField||(this.name=e.Util.toCamelCase(this.name))},(h=f.prototype=Object.create(T.prototype)).build=function(){this.element=new a(this.type,this.resolvedType,!1,this.syntax),this.map&&(this.keyElement=new a(this.keyType,void 0,!0,this.syntax)),"proto3"!==this.syntax||this.repeated||this.map?void 0!==this.options.default&&(this.defaultValue=this.verifyValue(this.options.default)):this.defaultValue=a.defaultFieldValue(this.type)},h.verifyValue=function(t,n){var r,i,o;if(n=n||!1,r=function(e,t){throw Error("Illegal value for "+this.toString(!0)+" of type "+this.type.name+": "+e+" ("+t+")")}.bind(this),null===t)return this.required&&r(typeof t,"required"),"proto3"===this.syntax&&this.type!==e.TYPES.message&&r(typeof t,"proto3 field without field presence cannot be null"),null;if(this.repeated&&!n){for(Array.isArray(t)||(t=[t]),o=[],i=0;i<t.length;i++)o.push(this.element.verifyValue(t[i]));return o}return this.map&&!n?t instanceof e.Map?t:(t instanceof Object||r(typeof t,"expected ProtoBuf.Map or raw object for map field"),new e.Map(this,t)):(!this.repeated&&Array.isArray(t)&&r(typeof t,"no array expected"),this.element.verifyValue(t))},h.hasWirePresence=function(t,n){if("proto3"!==this.syntax)return null!==t;if(this.oneof&&n[this.oneof.name]===this.name)return!0;switch(this.type){case e.TYPES.int32:case e.TYPES.sint32:case e.TYPES.sfixed32:case e.TYPES.uint32:case e.TYPES.fixed32:return 0!==t;case e.TYPES.int64:case e.TYPES.sint64:case e.TYPES.sfixed64:case e.TYPES.uint64:case e.TYPES.fixed64:return 0!==t.low||0!==t.high;case e.TYPES.bool:return t;case e.TYPES.float:case e.TYPES.double:return 0!==t;case e.TYPES.string:return t.length>0;case e.TYPES.bytes:return t.remaining()>0;case e.TYPES.enum:return 0!==t;case e.TYPES.message:return null!==t;default:return!0}},h.encode=function(t,n,r){var o,s,a,c,u;if(null===this.type||"object"!=typeof this.type)throw Error("[INTERNAL] Unresolved type in "+this.toString(!0)+": "+this.type);if(null===t||this.repeated&&0==t.length)return n;try{if(this.repeated)if(this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0){for(n.writeVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),n.ensureCapacity(n.offset+=1),s=n.offset,o=0;o<t.length;o++)this.element.encodeValue(this.id,t[o],n);a=n.offset-s,(c=i.calculateVarint32(a))>1&&(u=n.slice(s,n.offset),s+=c-1,n.offset=s,n.append(u)),n.writeVarint32(a,s-c)}else for(o=0;o<t.length;o++)n.writeVarint32(this.id<<3|this.type.wireType),this.element.encodeValue(this.id,t[o],n);else this.map?t.forEach((function(t,r){var o=i.calculateVarint32(8|this.keyType.wireType)+this.keyElement.calculateLength(1,r)+i.calculateVarint32(16|this.type.wireType)+this.element.calculateLength(2,t);n.writeVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),n.writeVarint32(o),n.writeVarint32(8|this.keyType.wireType),this.keyElement.encodeValue(1,r,n),n.writeVarint32(16|this.type.wireType),this.element.encodeValue(2,t,n)}),this):this.hasWirePresence(t,r)&&(n.writeVarint32(this.id<<3|this.type.wireType),this.element.encodeValue(this.id,t,n))}catch(e){throw Error("Illegal value for "+this.toString(!0)+": "+t+" ("+e+")")}return n},h.calculate=function(t,n){var r,o,s;if(t=this.verifyValue(t),null===this.type||"object"!=typeof this.type)throw Error("[INTERNAL] Unresolved type in "+this.toString(!0)+": "+this.type);if(null===t||this.repeated&&0==t.length)return 0;r=0;try{if(this.repeated)if(this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0){for(r+=i.calculateVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),s=0,o=0;o<t.length;o++)s+=this.element.calculateLength(this.id,t[o]);r+=i.calculateVarint32(s),r+=s}else for(o=0;o<t.length;o++)r+=i.calculateVarint32(this.id<<3|this.type.wireType),r+=this.element.calculateLength(this.id,t[o]);else this.map?t.forEach((function(t,n){var o=i.calculateVarint32(8|this.keyType.wireType)+this.keyElement.calculateLength(1,n)+i.calculateVarint32(16|this.type.wireType)+this.element.calculateLength(2,t);r+=i.calculateVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),r+=i.calculateVarint32(o),r+=o}),this):this.hasWirePresence(t,n)&&(r+=i.calculateVarint32(this.id<<3|this.type.wireType),r+=this.element.calculateLength(this.id,t))}catch(e){throw Error("Illegal value for "+this.toString(!0)+": "+t+" ("+e+")")}return r},h.decode=function(t,n,r){var i,o,s,c,u,l,f;if(!(!this.map&&t==this.type.wireType||!r&&this.repeated&&this.options.packed&&t==e.WIRE_TYPES.LDELIM||this.map&&t==e.WIRE_TYPES.LDELIM))throw Error("Illegal wire type for field "+this.toString(!0)+": "+t+" ("+this.type.wireType+" expected)");if(t==e.WIRE_TYPES.LDELIM&&this.repeated&&this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0&&!r){for(o=n.readVarint32(),o=n.offset+o,s=[];n.offset<o;)s.push(this.decode(this.type.wireType,n,!0));return s}if(this.map){if(c=a.defaultFieldValue(this.keyType),i=a.defaultFieldValue(this.type),o=n.readVarint32(),n.remaining()<o)throw Error("Illegal number of bytes for "+this.toString(!0)+": "+o+" required but got only "+n.remaining());for((u=n.clone()).limit=u.offset+o,n.offset+=o;u.remaining()>0;)if(t=7&(l=u.readVarint32()),1===(f=l>>>3))c=this.keyElement.decode(u,t,f);else{if(2!==f)throw Error("Unexpected tag in map field key/value submessage");i=this.element.decode(u,t,f)}return[c,i]}return this.element.decode(n,t,this.id)},C.Message.Field=f,d=function(e,t,n,r,i,o,s){f.call(this,e,t,n,null,r,i,o,s),this.extension},d.prototype=Object.create(f.prototype),C.Message.ExtensionField=d,p=function(e,t,n){T.call(this,e,t,n),this.fields=[]},C.Message.OneOf=p,g=function(e,t,n,r,i){o.call(this,e,t,n,r,i),this.className="Enum",this.object=null},g.getName=function(e,t){var n,r,i=Object.keys(e);for(r=0;r<i.length;++r)if(e[n=i[r]]===t)return n;return null},(g.prototype=Object.create(o.prototype)).build=function(t){var n,r,i,o;if(this.object&&!t)return this.object;for(n=new e.Builder.Enum,i=0,o=(r=this.getChildren(g.Value)).length;o>i;++i)n[r[i].name]=r[i].id;return Object.defineProperty&&Object.defineProperty(n,"$options",{value:this.buildOpt(),enumerable:!1}),this.object=n},C.Enum=g,v=function(e,t,n,r){T.call(this,e,t,n),this.className="Enum.Value",this.id=r},v.prototype=Object.create(T.prototype),C.Enum.Value=v,y=function(e,t,n,r){T.call(this,e,t,n),this.field=r},y.prototype=Object.create(T.prototype),C.Extension=y,m=function(e,t,n,r){o.call(this,e,t,n,r),this.className="Service",this.clazz=null},(m.prototype=Object.create(o.prototype)).build=function(t){return this.clazz&&!t?this.clazz:this.clazz=function(e,t){var n,r=function(t){e.Builder.Service.call(this),this.rpcImpl=t||function(e,t,n){setTimeout(n.bind(this,Error("Not implemented, see: https://github.com/dcodeIO/ProtoBuf.js/wiki/Services")),0)}},o=r.prototype=Object.create(e.Builder.Service.prototype),s=t.getChildren(e.Reflect.Service.RPCMethod);for(n=0;n<s.length;n++)!function(e){o[e.name]=function(n,r){try{try{n=e.resolvedRequestType.clazz.decode(i.wrap(n))}catch(e){if(!(e instanceof TypeError))throw e}if(null===n||"object"!=typeof n)throw Error("Illegal arguments");n instanceof e.resolvedRequestType.clazz||(n=new e.resolvedRequestType.clazz(n)),this.rpcImpl(e.fqn(),n,(function(n,i){if(!n){try{i=e.resolvedResponseType.clazz.decode(i)}catch(e){}return i&&i instanceof e.resolvedResponseType.clazz?void r(null,i):void r(Error("Illegal response type received in service method "+t.name+"#"+e.name))}r(n)}))}catch(e){setTimeout(r.bind(this,e),0)}},r[e.name]=function(t,n,i){new r(t)[e.name](n,i)},Object.defineProperty&&(Object.defineProperty(r[e.name],"$options",{value:e.buildOpt()}),Object.defineProperty(o[e.name],"$options",{value:r[e.name].$options}))}(s[n]);return Object.defineProperty&&(Object.defineProperty(r,"$options",{value:t.buildOpt()}),Object.defineProperty(o,"$options",{value:r.$options}),Object.defineProperty(r,"$type",{value:t}),Object.defineProperty(o,"$type",{value:t})),r}(e,this)},C.Service=m,I=function(e,t,n,r){T.call(this,e,t,n),this.className="Service.Method",this.options=r||{}},(I.prototype=Object.create(T.prototype)).buildOpt=s.buildOpt,C.Service.Method=I,M=function(e,t,n,r,i,o,s,a){I.call(this,e,t,n,a),this.className="Service.RPCMethod",this.requestName=r,this.responseName=i,this.requestStream=o,this.responseStream=s,this.resolvedRequestType=null,this.resolvedResponseType=null},M.prototype=Object.create(I.prototype),C.Service.RPCMethod=M,C}(s),s.Builder=function(e,t,n){function r(e){e.messages&&e.messages.forEach((function(t){t.syntax=e.syntax,r(t)})),e.enums&&e.enums.forEach((function(t){t.syntax=e.syntax}))}var i=function(e){this.ns=new n.Namespace(this,null,""),this.ptr=this.ns,this.resolved=!1,this.result=null,this.files={},this.importRoot=null,this.options=e||{}},o=i.prototype;return i.isMessage=function(e){return"string"==typeof e.name&&void 0===e.values&&void 0===e.rpc},i.isMessageField=function(e){return"string"==typeof e.rule&&"string"==typeof e.name&&"string"==typeof e.type&&void 0!==e.id},i.isEnum=function(e){return"string"==typeof e.name&&!(void 0===e.values||!Array.isArray(e.values)||0===e.values.length)},i.isService=function(e){return!("string"!=typeof e.name||"object"!=typeof e.rpc||!e.rpc)},i.isExtend=function(e){return"string"==typeof e.ref},o.reset=function(){return this.ptr=this.ns,this},o.define=function(e){if("string"!=typeof e||!t.TYPEREF.test(e))throw Error("illegal namespace: "+e);return e.split(".").forEach((function(e){var t=this.ptr.getChild(e);null===t&&this.ptr.addChild(t=new n.Namespace(this,this.ptr,e)),this.ptr=t}),this),this},o.create=function(t){var r,o,s,a,c;if(!t)return this;if(Array.isArray(t)){if(0===t.length)return this;t=t.slice()}else t=[t];for(r=[t];r.length>0;){if(t=r.pop(),!Array.isArray(t))throw Error("not a valid namespace: "+JSON.stringify(t));for(;t.length>0;){if(o=t.shift(),i.isMessage(o)){if(s=new n.Message(this,this.ptr,o.name,o.options,o.isGroup,o.syntax),a={},o.oneofs&&Object.keys(o.oneofs).forEach((function(e){s.addChild(a[e]=new n.Message.OneOf(this,s,e))}),this),o.fields&&o.fields.forEach((function(e){if(null!==s.getChild(0|e.id))throw Error("duplicate or invalid field id in "+s.name+": "+e.id);if(e.options&&"object"!=typeof e.options)throw Error("illegal field options in "+s.name+"#"+e.name);var t=null;if("string"==typeof e.oneof&&!(t=a[e.oneof]))throw Error("illegal oneof in "+s.name+"#"+e.name+": "+e.oneof);e=new n.Message.Field(this,s,e.rule,e.keytype,e.type,e.name,e.id,e.options,t,o.syntax),t&&t.fields.push(e),s.addChild(e)}),this),c=[],o.enums&&o.enums.forEach((function(e){c.push(e)})),o.messages&&o.messages.forEach((function(e){c.push(e)})),o.services&&o.services.forEach((function(e){c.push(e)})),o.extensions&&(s.extensions="number"==typeof o.extensions[0]?[o.extensions]:o.extensions),this.ptr.addChild(s),c.length>0){r.push(t),t=c,c=null,this.ptr=s,s=null;continue}c=null}else if(i.isEnum(o))s=new n.Enum(this,this.ptr,o.name,o.options,o.syntax),o.values.forEach((function(e){s.addChild(new n.Enum.Value(this,s,e.name,e.id))}),this),this.ptr.addChild(s);else if(i.isService(o))s=new n.Service(this,this.ptr,o.name,o.options),Object.keys(o.rpc).forEach((function(e){var t=o.rpc[e];s.addChild(new n.Service.RPCMethod(this,s,e,t.request,t.response,!!t.request_stream,!!t.response_stream,t.options))}),this),this.ptr.addChild(s);else{if(!i.isExtend(o))throw Error("not a valid definition: "+JSON.stringify(o));if(s=this.ptr.resolve(o.ref,!0))o.fields.forEach((function(t){var r,i,o,a;if(null!==s.getChild(0|t.id))throw Error("duplicate extended field id in "+s.name+": "+t.id);if(s.extensions&&(r=!1,s.extensions.forEach((function(e){t.id>=e[0]&&t.id<=e[1]&&(r=!0)})),!r))throw Error("illegal extended field id in "+s.name+": "+t.id+" (not within valid ranges)");i=t.name,this.options.convertFieldsToCamelCase&&(i=e.Util.toCamelCase(i)),o=new n.Message.ExtensionField(this,s,t.rule,t.type,this.ptr.fqn()+"."+i,t.id,t.options),a=new n.Extension(this,this.ptr,t.name,o),o.extension=a,this.ptr.addChild(a),s.addChild(o)}),this);else if(!/\.?google\.protobuf\./.test(o.ref))throw Error("extended message "+o.ref+" is not defined")}o=null,s=null}t=null,this.ptr=this.ptr.parent}return this.resolved=!1,this.result=null,this},o.import=function(t,n){var i,o,s,a,c,u,l,f,h="/";if("string"==typeof n){if(e.Util.IS_NODE,!0===this.files[n])return this.reset();this.files[n]=!0}else if("object"==typeof n){if(i=n.root,e.Util.IS_NODE,(i.indexOf("\\")>=0||n.file.indexOf("\\")>=0)&&(h="\\"),o=i+h+n.file,!0===this.files[o])return this.reset();this.files[o]=!0}if(t.imports&&t.imports.length>0){for(a=!1,"object"==typeof n?(this.importRoot=n.root,a=!0,s=this.importRoot,n=n.file,(s.indexOf("\\")>=0||n.indexOf("\\")>=0)&&(h="\\")):"string"==typeof n?this.importRoot?s=this.importRoot:n.indexOf("/")>=0?""===(s=n.replace(/\/[^\/]*$/,""))&&(s="/"):n.indexOf("\\")>=0?(s=n.replace(/\\[^\\]*$/,""),h="\\"):s=".":s=null,c=0;c<t.imports.length;c++)if("string"==typeof t.imports[c]){if(!s)throw Error("cannot determine import root");if("google/protobuf/descriptor.proto"===(u=t.imports[c]))continue;if(u=s+h+u,!0===this.files[u])continue;if(/\.proto$/i.test(u)&&!e.DotProto&&(u=u.replace(/\.proto$/,".json")),null===(l=e.Util.fetch(u)))throw Error("failed to import '"+u+"' in '"+n+"': file not found");/\.json$/i.test(u)?this.import(JSON.parse(l+""),u):this.import(e.DotProto.Parser.parse(l),u)}else n?/\.(\w+)$/.test(n)?this.import(t.imports[c],n.replace(/^(.+)\.(\w+)$/,(function(e,t,n){return t+"_import"+c+"."+n}))):this.import(t.imports[c],n+"_import"+c):this.import(t.imports[c]);a&&(this.importRoot=null)}return t.package&&this.define(t.package),t.syntax&&r(t),f=this.ptr,t.options&&Object.keys(t.options).forEach((function(e){f.options[e]=t.options[e]})),t.messages&&(this.create(t.messages),this.ptr=f),t.enums&&(this.create(t.enums),this.ptr=f),t.services&&(this.create(t.services),this.ptr=f),t.extends&&this.create(t.extends),this.reset()},o.resolveAll=function(){var r;if(null==this.ptr||"object"==typeof this.ptr.type)return this;if(this.ptr instanceof n.Namespace)this.ptr.children.forEach((function(e){this.ptr=e,this.resolveAll()}),this);else if(this.ptr instanceof n.Message.Field){if(t.TYPE.test(this.ptr.type))this.ptr.type=e.TYPES[this.ptr.type];else{if(!t.TYPEREF.test(this.ptr.type))throw Error("illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);if(!(r=(this.ptr instanceof n.Message.ExtensionField?this.ptr.extension.parent:this.ptr.parent).resolve(this.ptr.type,!0)))throw Error("unresolvable type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);if(this.ptr.resolvedType=r,r instanceof n.Enum){if(this.ptr.type=e.TYPES.enum,"proto3"===this.ptr.syntax&&"proto3"!==r.syntax)throw Error("proto3 message cannot reference proto2 enum")}else{if(!(r instanceof n.Message))throw Error("illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);this.ptr.type=r.isGroup?e.TYPES.group:e.TYPES.message}}if(this.ptr.map){if(!t.TYPE.test(this.ptr.keyType))throw Error("illegal key type for map field in "+this.ptr.toString(!0)+": "+this.ptr.keyType);this.ptr.keyType=e.TYPES[this.ptr.keyType]}}else if(this.ptr instanceof e.Reflect.Service.Method){if(!(this.ptr instanceof e.Reflect.Service.RPCMethod))throw Error("illegal service type in "+this.ptr.toString(!0));if(!((r=this.ptr.parent.resolve(this.ptr.requestName,!0))&&r instanceof e.Reflect.Message))throw Error("Illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.requestName);if(this.ptr.resolvedRequestType=r,!((r=this.ptr.parent.resolve(this.ptr.responseName,!0))&&r instanceof e.Reflect.Message))throw Error("Illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.responseName);this.ptr.resolvedResponseType=r}else if(!(this.ptr instanceof e.Reflect.Message.OneOf||this.ptr instanceof e.Reflect.Extension||this.ptr instanceof e.Reflect.Enum.Value))throw Error("illegal object in namespace: "+typeof this.ptr+": "+this.ptr);return this.reset()},o.build=function(e){var t,n,r;if(this.reset(),this.resolved||(this.resolveAll(),this.resolved=!0,this.result=null),null===this.result&&(this.result=this.ns.build()),!e)return this.result;for(t="string"==typeof e?e.split("."):e,n=this.result,r=0;r<t.length;r++){if(!n[t[r]]){n=null;break}n=n[t[r]]}return n},o.lookup=function(e,t){return e?this.ns.resolve(e,t):this.ns},o.toString=function(){return"Builder"},i.Message=function(){},i.Enum=function(){},i.Service=function(){},i}(s,s.Lang,s.Reflect),s.Map=function(e,t){function n(e){var t=0;return{next:function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}}var r=function(e,n){var r,i,o,s;if(!e.map)throw Error("field is not a map");if(this.field=e,this.keyElem=new t.Element(e.keyType,null,!0,e.syntax),this.valueElem=new t.Element(e.type,e.resolvedType,!1,e.syntax),this.map={},Object.defineProperty(this,"size",{get:function(){return Object.keys(this.map).length}}),n)for(r=Object.keys(n),i=0;i<r.length;i++)o=this.keyElem.valueFromString(r[i]),s=this.valueElem.verifyValue(n[r[i]]),this.map[this.keyElem.valueToString(o)]={key:o,value:s}},i=r.prototype;return i.clear=function(){this.map={}},i.delete=function(e){var t=this.keyElem.valueToString(this.keyElem.verifyValue(e)),n=t in this.map;return delete this.map[t],n},i.entries=function(){var e,t,r=[],i=Object.keys(this.map);for(t=0;t<i.length;t++)r.push([(e=this.map[i[t]]).key,e.value]);return n(r)},i.keys=function(){var e,t=[],r=Object.keys(this.map);for(e=0;e<r.length;e++)t.push(this.map[r[e]].key);return n(t)},i.values=function(){var e,t=[],r=Object.keys(this.map);for(e=0;e<r.length;e++)t.push(this.map[r[e]].value);return n(t)},i.forEach=function(e,t){var n,r,i=Object.keys(this.map);for(r=0;r<i.length;r++)e.call(t,(n=this.map[i[r]]).value,n.key,this)},i.set=function(e,t){var n=this.keyElem.verifyValue(e),r=this.valueElem.verifyValue(t);return this.map[this.keyElem.valueToString(n)]={key:n,value:r},this},i.get=function(e){var t=this.keyElem.valueToString(this.keyElem.verifyValue(e));return t in this.map?this.map[t].value:void 0},i.has=function(e){return this.keyElem.valueToString(this.keyElem.verifyValue(e))in this.map},r}(0,s.Reflect),s.loadProto=function(e,t,n){return("string"==typeof t||t&&"string"==typeof t.file&&"string"==typeof t.root)&&(n=t,t=void 0),s.loadJson(s.DotProto.Parser.parse(e),t,n)},s.protoFromString=s.loadProto,s.loadProtoFile=function(e,t,n){if(t&&"object"==typeof t?(n=t,t=null):t&&"function"==typeof t||(t=null),t)return s.Util.fetch("string"==typeof e?e:e.root+"/"+e.file,(function(r){if(null!==r)try{t(null,s.loadProto(r,n,e))}catch(e){t(e)}else t(Error("Failed to fetch file"))}));var r=s.Util.fetch("object"==typeof e?e.root+"/"+e.file:e);return null===r?null:s.loadProto(r,n,e)},s.protoFromFile=s.loadProtoFile,s.newBuilder=function(e){return void 0===(e=e||{}).convertFieldsToCamelCase&&(e.convertFieldsToCamelCase=s.convertFieldsToCamelCase),void 0===e.populateAccessors&&(e.populateAccessors=s.populateAccessors),new s.Builder(e)},s.loadJson=function(e,t,n){return("string"==typeof t||t&&"string"==typeof t.file&&"string"==typeof t.root)&&(n=t,t=null),t&&"object"==typeof t||(t=s.newBuilder()),"string"==typeof e&&(e=JSON.parse(e)),t.import(e,n),t.resolveAll(),t},s.loadJsonFile=function(e,t,n){if(t&&"object"==typeof t?(n=t,t=null):t&&"function"==typeof t||(t=null),t)return s.Util.fetch("string"==typeof e?e:e.root+"/"+e.file,(function(r){if(null!==r)try{t(null,s.loadJson(JSON.parse(r),n,e))}catch(e){t(e)}else t(Error("Failed to fetch file"))}));var r=s.Util.fetch("object"==typeof e?e.root+"/"+e.file:e);return null===r?null:s.loadJson(JSON.parse(r),n,e)},o=t,s.loadProto(o,void 0,"").build("Modules").probuf}(r,n);return i}Dr.getModule=function(e){return Dr[e]()};var xr,kr,Ur,Pr=jr(Or);Pr.getModule=function(e){var t=new Pr[e];return t.getArrayData=function(){var e=t.toArrayBuffer();return me(e)?[].slice.call(new Int8Array(e)):e},t};var zr,Gr,Br="pgMsgP",Yr="chatMsg",Hr="pcMsgP",$r={PRIVATE:"ppMsgS",GROUP:"pgMsgS",CHATROOM:"chatMsgS"},Fr="delMsg",Qr="joinChrm",Vr="joinChrmR",Zr="exitChrm",Wr="setKV",Kr="delKV",qr="setKVS",Jr="delKVS",Xr="qryRelationR",ei="delRelation",ti="setSeAtt",ni={PRIVATE:"cleanPMsg",GROUP:"cleanGMsg",ULTRA_GROUP:"cleanGMsg",CUSTOMER_SERVICE:"cleanCMsg",SYSTEM:"cleanSMsg"},ri="qryPMsg",ii="qryGMsg",oi="qryCHMsg",si="qryCMsg",ai="qrySMsg",ci=((xr={})["ppMsgP"]=j.PRIVATE,xr[Br]=j.GROUP,xr[Yr]=j.CHATROOM,xr[Hr]=j.CUSTOMER_SERVICE,xr),ui=((kr={})[j.PRIVATE]=ri,kr[j.GROUP]=ii,kr[j.CHATROOM]=oi,kr[j.CUSTOMER_SERVICE]=si,kr[j.SYSTEM]=ai,kr),li=((Ur={})[j.PRIVATE]=ni.PRIVATE,Ur[j.GROUP]=ni.GROUP,Ur[j.ULTRA_GROUP]=ni.ULTRA_GROUP,Ur[j.CUSTOMER_SERVICE]=ni.CUSTOMER_SERVICE,Ur[j.SYSTEM]=ni.SYSTEM,Ur),fi="1",hi="0",di=1,pi=2,gi=3,vi=function(){function e(e){this._codec="websocket"===e?Pr:Dr,this._connectType=e}return e.prototype.decodeByPBName=function(e,t,n){var r,i=this,o=e,s=((r={})[on]=i._formatSyncMessages,r[rn]=i._formatReceivedMessage,r[tn]=i._formatSentMessage,r[hn]=i._formatHistoryMessages,r[pn]=i._formatConversationList,r[Nn]=i._formatChatRoomInfos,r[Un]=i._formatChatRoomKVList,r[Fn]=i._formatUserSetting,r[Zn]=i._formatConversationStatus,r[sr]=i._formatGrpReadReceiptQryResp,r[Hn]=i._formatSetUserSettingOutput,r[Qn]=i._formatUserSettingNotification,r[Ir]=i._formatUltraMsgChangeList,r[_r]=i._formatUltraOperateStatusNotifyList,r[Tr]=i._formatUltraMsgList,r[nr]=i._formatUltraGroupUnreadMentionedList,r[_n]=i._formatChrmKVVersion,r)[t];try{o=e.length>0&&i._codec[t].decode(e),Ce(o)&&(o=function(e){for(var t in e)Ce(e[t])&&(e[t]=Dt(e[t]));return e}(o)),Te(s)&&(o=s.call(this,o,n))}catch(n){vt.error("PB parse error\n",n,e,t)}return o},e.prototype._readBytes=function(e){var t=e.offset,n=e.buffer,r=e.limit;if(t)try{var i=me(n)?new Uint8Array(n):n;return Jt.readUTF(i.subarray(t,r))}catch(e){vt.info("readBytes error\n",e)}return e},e.prototype._formatBytes=function(e){if(!e)return e;var t=this._readBytes(e);try{t=JSON.parse(t)}catch(e){vt.info("formatBytes error\n",e)}return t||e},e.prototype._formatSyncMessages=function(e,t){t=t||{};var n=this,r=e.list,i=e.syncTime,o=e.finished;return(Ae(o)||null===o)&&(e.finished=!0),e.syncTime=Dt(i),e.list=zt(r,(function(e){return n._formatReceivedMessage(e,t)})),e},e.prototype._formatReceivedMessage=function(e,t){if(!e)return e;var n=(t=t||{}).currentUserId,r=t.connectedTime,i=e.content,s=e.fromUserId,a=e.type,c=e.groupId,u=e.status,l=e.dataTime,f=e.classname,h=e.msgId,d=e.extraContent,p=e.pushContent,g=e.pushExt,v=e.configFlag,y=e.extStatus;e.toUserId,e.groupUnpush;var I=e.clientUniqueId,M=(e.direction||O.RECEIVE)===O.SEND,C=function(e){var t=o.READ;return{isPersited:!!(16&e),isCounted:!!(32&e),isMentioned:!!(64&e),disableNotification:!!(512&e),receivedStatus:t=2&e?o.RETRIEVED:t,canIncludeExpansion:!!(1024&e)}}(u),T=C.isPersited,A=C.isCounted,_=C.isMentioned,b=C.disableNotification,N=C.receivedStatus,E=C.canIncludeExpansion,w=!!(2&(y||0)),S=!!(4&(y||0)),D=8&(y||0)?re.PRIVATE:re.PUBLIC,L=[j.GROUP,j.CHATROOM,j.RTC_ROOM,j.ULTRA_GROUP].indexOf(a)>-1?c:s,R=M?n:s,x=Dt(l),k=x<r,U=a===j.CHATROOM,P=this._formatBytes(i),z={};if(g&&(z=jt(g.pushConfigs,g.pushId)),P.user){var G=P.user,B=G.portrait,Y=G.portraitUri,H=B||Y;H&&(P.user.portrait=P.user.portraitUri=H)}var $,F=m(m({},z),{pushTitle:null==g?void 0:g.title,pushContent:p,pushData:p,disablePushTitle:!!v&&Boolean(4&v),forceShowDetailContent:!!v&&Boolean(8&v),templateId:null==g?void 0:g.templateId}),Q=M?O.SEND:O.RECEIVE;U&&s===n&&(Q=O.SEND),d&&($={},$=Vt(d));var V={conversationType:a,targetId:L,senderUserId:R,messageType:f,messageUId:h,isPersited:T,isCounted:A,isMentioned:_,sentTime:x,messageDirection:Q,receivedTime:Zt.getTime(),disableNotification:b,receivedStatus:N,canIncludeExpansion:E,content:P,expansion:$,configFlag:v,pushConfig:F,channelId:e.busChannel||"",isInterrupt:w,isModifyMessage:S,messageId:Dt(I)||0};return a!==j.ULTRA_GROUP&&(V.isOffLineMessage=k),a===j.ULTRA_GROUP&&(V.channelType=D),V},e.prototype._formatSentMessage=function(e,t){var n,r=e.content,i=e.classname,o=e.sessionId,s=e.msgId,a=e.extraContent,c=e.pushExt,u=e.pushContent,l=e.configFlag,f=e.extStatus,h=e.clientUniqueId,d=t.signal,p=t.currentUserId,g=d.date,v=d.topic,y=d.targetId,I=!!(2&(f||0)),M=function(e){return{isPersited:!!(1&e),isCounted:!!(2&e),disableNotification:!!(32&e),canIncludeExpansion:!!(64&e)}}(o),C=M.isPersited,T=M.isCounted,A=M.disableNotification,_=M.canIncludeExpansion,b=ci[v]||j.PRIVATE,N=Bt($r,v),E=this._formatBytes(r),w=y;i===z.RECALL&&(b=E.conversationType||b,w=E.targetId||y),a&&(n={},n=Vt(a));var S={};c&&(S=jt(c.pushConfigs,c.pushId));var D=m(m({},S),{pushTitle:null==c?void 0:c.title,pushContent:u,pushData:u,disablePushTitle:!!l&&Boolean(4&l),forceShowDetailContent:!!l&&Boolean(8&l),templateId:null==c?void 0:c.templateId});return{conversationType:b,targetId:w,messageType:i,messageUId:s,isPersited:C,isCounted:T,isStatusMessage:N,senderUserId:p,content:this._formatBytes(r),sentTime:1e3*g,receivedTime:Zt.getTime(),messageDirection:O.SEND,isOffLineMessage:!1,disableNotification:A,canIncludeExpansion:_,expansion:n,pushConfig:D,channelId:e.busChannel||"",isInterrupt:I,messageId:Dt(h)||0}},e.prototype._formatHistoryMessages=function(e,t){var n=this,r=t.conversation||{},i=e.list,o=e.hasMsg,s=r.targetId,a=Dt(e.syncTime),c=[];return Pt(i,(function(e){var i=n._formatReceivedMessage(e,t);r.conversationType===j.ULTRA_GROUP?i.targetId=e.groupId||r.targetId:i.targetId=s,c.push(i)}),{isReverse:!0}),{syncTime:a,list:c,hasMore:!!o}},e.prototype._formatUltraMsgChangeList=function(e){var t=e.list,n=e.syncTime,r=e.hasNext;return{syncTime:n,list:t&&t.map((function(e){var t=e.targetId,n=e.type,r=e.time,i=e.changeType,o=e.msgUID,s=e.msgTime,a=e.busChannel,c=e.isAdmin,u=e.isDel,l=e.operatorId,f=e.subChangeType;return{targetId:t,conversationType:n,changeType:i,messageUId:o,changeTime:Dt(r),sendTime:Dt(s),channelId:a||"",isAdmin:c,isDel:u,operatorId:l,subChangeType:f}})),hasNext:r}},e.prototype._formatUltraOperateStatusNotifyList=function(e){var t=e.type,n=e.notifyType,r=e.info,i=e.summary,o=[],s=[],a=2==(2&n),c=1==(1&n);return c&&Array.isArray(r)&&r.forEach((function(e){var t=e.targetId,n=e.busChannel,r=e.userId,i=e.opType,s=e.optime,a=Dt(s);o.push({targetId:t,channelId:n,userId:r,operationType:i,operationTime:a})})),a&&Array.isArray(i)&&i.forEach((function(e){var t=e.targetId,n=e.busChannel,r=e.count,i=e.opType;s.push({targetId:t,channelId:n,count:r,operationType:i})})),{conversationType:t,info:o,summary:s,hasInfo:c,hasSummary:a}},e.prototype._formatUltraMsgList=function(e,t){var n=this,r=e.list;return{list:r&&r.map((function(e){return n._formatReceivedMessage(e,t)}))}},e.prototype._formatUltraGroupUnreadMentionedList=function(e){var t=e.msgInfo;return(void 0===t?[]:t).map((function(e){return{messageUId:e.msgId,senTtime:Dt(e.msgTime),mentionedType:e.remindType}}))},e.prototype._formatConversationList=function(e,t){var n=this,r=e.info,i=t.afterDecode,o={list:(r=zt(r,(function(e){var r=e.msg,o=e.userId,s=e.type,a=e.unreadCount,c=e.busChannel,u=e.versionTime,l=e.remindCount,f=e.busChannelType;e.readMsgTime;var h=e.msgInfo,d=null;r&&((d=n._formatReceivedMessage(r,t)).targetId=o);var p={targetId:o,conversationType:s,unreadMessageCount:Dt(a)||0,latestMessage:d||{},channelId:c||""};return s===j.ULTRA_GROUP&&(p.versionTime=Dt(u)||0,p.unreadMentionedCount=Dt(l)||0,p.channelType=f||re.PUBLIC,p.lastReadTime=0,h&&(p.firstUnreadMessage={sentTime:Dt(h.msgTime)},p.lastReadTime=Dt(h.msgTime)-1)),(null==i?void 0:i(p))||p})))||[]};return((null==t?void 0:t.conversationType)||j.NONE)===j.ULTRA_GROUP&&(o.isFinished=e.isFinished),o},e.prototype._formatSetUserSettingOutput=function(e){return e},e.prototype._formatChatRoomInfos=function(e){var t=e.userTotalNums,n=e.userInfos;return{userCount:t,userInfos:zt(n,(function(e){var t=e.id,n=e.time;return{id:t,time:Dt(n)}}))}},e.prototype._formatChatRoomKVList=function(e){var t=e.entries,n=e.bFullUpdate,r=e.syncTime;return t=zt(t=t||[],(function(e){var t=e.key,n=e.value,r=e.status,i=e.timestamp,o=e.uid,s=e.version,a=function(e){return{isAutoDelete:!!(1&e),isOverwrite:!!(2&e),type:4&e?J.DELETE:J.UPDATE}}(r);return{key:t,value:n,isAutoDelete:a.isAutoDelete,isOverwrite:a.isOverwrite,type:a.type,userId:o,timestamp:Dt(i),version:Dt(s)}})),{kvEntries:t,isFullUpdate:n,syncTime:r}},e.prototype._formatUserSetting=function(e){var t=this,n=e.items,r=e.version,i={};return Pt(n||[],(function(e){var n=e.key,r=e.version,o=e.value;e.version=Dt(r),e.value=t._readBytes(o),"Tag"===n&&e.tags.forEach((function(e){e.createdTime=Dt(e.createdTime),e.tagName=e.name})),i[n]=e})),{settings:i,version:r}},e.prototype._formatConversationStatus=function(e){var t=e.state,n=[];return Pt(t,(function(e){var t=e.type,r=e.channelId,i=e.time,o=e.stateItem,s=e.busChannel,a=B.CLOSE,c=H.NOT_SET,u=!1,l=[];Pt(o,(function(e){var t=e.sessionStateType,n=e.value,r=e.tags;switch(t){case di:a=n===fi?B.OPEN:B.CLOSE,c=Number(n)||H.NOT_SET;break;case pi:u=n===fi;break;case gi:l=r}})),n.push({conversationType:t,type:t,targetId:r,notificationStatus:a,notificationLevel:c,isTop:u,updatedTime:Dt(i),tags:l,channelId:s||""})})),n},e.prototype._formatGrpReadReceiptQryResp=function(e){var t=e.totalMemberNum,n=e.list;return n.forEach((function(e){e.readTime=Dt(e.readTime)})),{totalMemberCount:t,list:n}},e.prototype._formatUserSettingNotification=function(e){return e},e.prototype._formatChrmKVVersion=function(e){return e},e.prototype._formatRTCJoinedUserInfo=function(e){return(e.info||[]).map((function(e){return{deviceId:e.deviceId,roomId:e.roomId,joinTime:Dt(e.joinTime)}}))},e.prototype.encodeServerConfParams=function(){var e=this._codec.getModule(sn);return e.setNothing(1),e.getArrayData()},e.prototype._getUpMsgModule=function(e,t){var n,r,i,o="comet"===this._connectType,s=e.conversationType,a=t.messageType,c=t.isMentioned,u=t.mentionedType,l=t.mentionedUserIdList,f=t.content,h=t.pushContent,d=t.pushData,p=t.directionalUserIdList,g=t.isFilerWhiteBlacklist,v=t.isVoipPush,y=t.canIncludeExpansion,m=t.expansion,I=t.pushConfig,M=t.channelId,C=t.messageId,T=void 0===C?0:C;[j.GROUP,j.ULTRA_GROUP].includes(s);var A=this._codec.getModule(tn),_=function(e){var t=e.isStatusMessage,n=e.isPersited,r=e.isCounted;t&&(n=r=!1);var i=0;return n&&(i|=1),r&&(i|=2),e.isMentioned&&(i|=4),e.disableNotification&&(i|=32),e.canIncludeExpansion&&(i|=64),i}(t),b=I||{},N=b.pushTitle,E=b.pushContent,w=b.pushData,S=b.iOSConfig,O=b.androidConfig,D=b.templateId,L=b.disablePushTitle,R=b.forceShowDetailContent,x=0;A.setSessionId(_),c&&f&&(f.mentionedInfo={userIdList:(null===(n=f.mentionedInfo)||void 0===n?void 0:n.userIdList)||l||[],type:(null===(r=f.mentionedInfo)||void 0===r?void 0:r.type)||u||F.ALL,mentionedContent:(null===(i=f.mentionedInfo)||void 0===i?void 0:i.mentionedContent)||""});var k=E||h||"",U=w||d||"";if(k&&A.setPushText(k),U&&A.setAppData(U),p&&A.setUserId(p),x|=v?1:0,x|=g?2:0,x|=L?4:0,x|=R?8:0,A.setConfigFlag(x),A.setClassname(a),f.user&&f.user.portraitUri&&(f.user.portrait=f.user.portraitUri),A.setContent(JSON.stringify(f)),y&&m){var P={};Pt(m,(function(e,t){P[t]={v:e}})),A.setExtraContent(JSON.stringify(P))}if(I){var z=this._codec.getModule(nn);if(N&&z.setTitle(N),S&&O){var G=Rt(S,O);z.setPushConfigs(G)}(null==O?void 0:O.notificationId)&&z.setPushId(null==O?void 0:O.notificationId),z.setTemplateId(D||""),A.setPushExt(o?z.getArrayData():z)}return A.setClientUniqueId(T),Ae(M)||A.setBusChannel(M),A},e.prototype.encodeUpMsg=function(e,t){return this._getUpMsgModule(e,t).getArrayData()},e.prototype.encodeSyncMsg=function(e){var t=e.sendboxTime,n=e.inboxTime,r=e.broadcastSyncTime,i=this._codec.getModule(cn);return i.setIspolling(!1),i.setIsPullSend(!0),i.setSendBoxSyncTime(t),i.setSyncTime(n),i.setBroadcastSyncTime(r),i.getArrayData()},e.prototype.encodeChrmSyncMsg=function(e,t){e=e||0,t=t||0;var n=this._codec.getModule(un);return n.setCount(t),n.setSyncTime(e),n.getArrayData()},e.prototype.encodeGetHistoryMsg=function(e,t){var n=t.count,r=t.order,i=t.timestamp,o=t.channelId,s=this._codec.getModule(fn);return s.setTargetId(e),s.setTime(i),s.setCount(n),s.setOrder(r),s.setBusChannel(o||""),s.getArrayData()},e.prototype.encodeSuperSyncMsg=function(e){var t=this._codec.getModule(gr);return t.setSyncTime(e),t.getArrayData()},e.prototype.encodeGetConversationList=function(e){var t=(e=e||{}).count,n=e.startTime,r=this._codec.getModule(dn);return r.setType(1),r.setCount(t),r.setStartTime(n),r.getArrayData()},e.prototype.encodeOldConversationList=function(e){var t=(e=e||{}).count,n=e.type,r=e.startTime,i=e.order;t=t||0,r=r||0,i=i||0;var o=this._codec.getModule(dn);return o.setType(n),o.setCount(t),o.setStartTime(r),o.setOrder(i),o.getArrayData()},e.prototype.encodeRemoveOldConversationList=function(e){var t=(e=e||{}).conversationType,n=e.channelId,r=this._codec.getModule(In);return r.setType(t),n&&r.setBusChannel([n]),r.getArrayData()},e.prototype.encodeRemoveConversationList=function(e){var t=this,n=this._codec.getModule(vn),r=[];return Pt(e,(function(e){var n=e.conversationType,i=e.targetId,o=t._codec.getModule(yn);o.setType(n),o.setChannelId(i),r.push(o)})),n.setSessions(r),n.getArrayData()},e.prototype.encodeDeleteMessages=function(e,t,n,r){var i=this._codec.getModule(Mn),o=[];return Pt(n,(function(e){o.push({msgId:e.messageUId,msgDataTime:e.sentTime,direct:e.messageDirection})})),i.setType(e),i.setConversationId(t),i.setMsgs(o),i.setBusChannel(r),i.getArrayData()},e.prototype.encodeClearMessages=function(e,t,n,r){var i=this._codec.getModule(Cn);return t=t||(new Date).getTime(),i.setDataTime(t),i.setTargetId(e),i.setBusChannel(n),i.setConversationType(r),i.getArrayData()},e.prototype.encodeClearUnreadCount=function(e,t){var n=e.conversationType,r=e.targetId,i=e.channelId,o=t.timestamp,s=this._codec.getModule(Tn);return o=o||+new Date,s.setType(n),s.setChannelId(r),s.setMsgTime(o),s.setBusChannel(i),s.getArrayData()},e.prototype.encodeExpandUltraMessage=function(e,t){var n=e.targetId,r=e.conversationType,i=e.channelId,o=e.messageUId,s=e.sendTime,a=e.keys,c={mid:o,put:e.expansion,del:a,clear:e.removeAll?1:0},u=this._codec.getModule(vr);return u.setFromUserId(t),u.setTargetId(n),u.setType(r),u.setBusChannel(i||""),u.setMsgUID(o),u.setMsgTime(s),u.setContent(JSON.stringify(c)),u.getArrayData()},e.prototype.encodemodifyMessage=function(e,t){var n=e.targetId,r=e.conversationType,i=e.channelId,o=e.messageUId,s=e.sendTime,a=e.content,c=this._codec.getModule(vr);return c.setFromUserId(t),c.setTargetId(n),c.setType(r),c.setBusChannel(i||""),c.setMsgUID(o),c.setMsgTime(s),c.setContent(JSON.stringify(a)),c.getArrayData()},e.prototype.encodeQueryMsgChange=function(e){var t=this._codec.getModule(yr);return t.setSyncTime(e),t.getArrayData()},e.prototype.encodeMsgQuery=function(e){var t=e.targetId,n=e.conversationType,r=e.messages,i=this._codec.getModule(Mr),o=r.map((function(e){return{msgTime:e.sendTime,msgUID:e.messageUId,busChannel:e.channelId}}));return i.setTargetId(t),i.setType(n),i.setQuery(o),i.getArrayData()},e.prototype.encodeUnreadMentionedMsgQuery=function(e){var t=e.targetId,n=e.channelId,r=e.sentTime,i=e.count,o=this._codec.getModule(tr);return o.setGroupId(t),o.setBusChannel(n),o.setMsgTime(r),o.setSize(i),o.getArrayData()},e.prototype.encodeOperateStatus=function(e,t,n,r){var i=this._codec.getModule(Ar);return i.setTargetId(e),i.setType(t),i.setBusChannel(n),i.setOpType(r),i.getArrayData()},e.prototype.encodeJoinOrQuitChatRoom=function(){var e=this._codec.getModule(An);return e.setNothing(1),e.getArrayData()},e.prototype.encodeGetChatRoomInfo=function(e,t){var n=this._codec.getModule(bn);return n.setCount(e),n.setOrder(t),n.getArrayData()},e.prototype.encodeSetUltraGroupDefaultNotificationLevel=function(e,t){var n=this._codec.getModule(er);return n.setUnpushLevel(e),n.setBusChannel(t),n.getArrayData()},e.prototype.encodeGetUltraGroupDefaultNotificationLevel=function(e){var t=this._codec.getModule(Xn);return t.setBusChannel(e),t.getArrayData()},e.prototype.encodeGetFileToken=function(e,t,n,r){var i=this._codec.getModule(En);return i.setType(e),i.setKey(t),i.setHttpMethod(n),i.setQueryString(r),i.getArrayData()},e.prototype.encodeGetFileUrl=function(e,t,n,r){var i=this._codec.getModule(e);return i.setType(t),i.setKey(n),r&&i.setFileName(r),i.getArrayData()},e.prototype.encodeModifyChatRoomKV=function(e,t,n){var r="comet"===this._connectType,i=this._codec.getModule(jn),o=t.key,s=t.value,a=t.notificationExtra,c=t.isSendNotification,u=t.type,l=t.timestamp,f=u||J.UPDATE,h=Wt(t,f),d={key:o,value:s||"",uid:n,version:l};if(Ae(h)||(d.status=h),i.setEntry(d),c){var p={conversationType:j.CHATROOM,targetId:e},g={key:o,value:s,extra:a,type:f},v=this._getUpMsgModule(p,{messageType:z.CHRM_KV_NOTIFY,content:g,isPersited:!1,isCounted:!1}),y=r?v.getArrayData():v;i.setNotification(y),i.setBNotify(!0),i.setType(j.CHATROOM)}return i.getArrayData()},e.prototype.encodeModifyChatRoomKVS=function(e,t,n){this._connectType;var r=this._codec.getModule(xn),i=t.entries,o=t.type||J.UPDATE,s=Wt(t,o),a=[];return i.forEach((function(e){var t={key:e.key,value:e.value||"",uid:n,version:e.timestamp};Ae(s)||(t.status=s),a.push(t)})),r.setEntry(a),r.getArrayData()},e.prototype.encodePullChatRoomKV=function(e){var t=this._codec.getModule(Bn);return t.setTimestamp(e),t.getArrayData()},e.prototype.encodePullUserSetting=function(e){var t=this._codec.getModule($n);return t.setVersion(e),t.getArrayData()},e.prototype.encodeGetConversationStatus=function(e){var t=this._codec.getModule(Vn);return t.setTime(e),t.getArrayData()},e.prototype.encodeSetConversationStatus=function(e,t){var n=this,r="comet"===this._connectType,i=this._codec.getModule(qn),o=Zt.getTime(),s=[];return Pt(e,(function(e){var t=n._codec.getModule(Wn),i=e.conversationType,a=e.targetId,c=e.notificationStatus,u=e.isTop,l=e.channelId,f=e.notificationLevel,h=[];t.setType(i),t.setChannelId(a),t.setTime(o),t.setBusChannel(l);var d=c===B.OPEN,p={};Ae(c)||(p[di]=d),Ae(f)||(p[di]=f),Ae(u)||(p[pi]=u),Pt(p,(function(e,t){if(!Ae(e)){var i=n._codec.getModule(Kn);e=e?fi:hi,Ae(f)||Number(t)!==di||(e=String(f)),i.setSessionStateType(Number(t)),i.setValue(e);var o=r?i.getArrayData():i;h.push(o)}})),t.setStateItem(h);var g=r?t.getArrayData():t;s.push(g)})),i.setVersion(t||o),i.setState(s),i.getArrayData()},e.prototype.encodeReadReceipt=function(e,t){var n=this._codec.getModule(ir);return n.setMsgId(e),t&&n.setChannelId(t),n.getArrayData()},e.prototype.encodeCreateTag=function(e,t){var n=this,r="comet"===this._connectType,i=this._codec.getModule(cr),o=[];return e.forEach((function(e){var t=n._codec.getModule(ur);t.setTagId(e.tagId),t.setName(e.tagName),o.push(r?t.getArrayData():t)})),i.setTags(o),i.setVersion(t),i.getArrayData()},e.prototype.encodeMessageReader=function(e,t){var n=this._codec.getModule(ir);return n.setMsgId(e),t&&n.setChannelId(t),n.getArrayData()},e.prototype.encodeRemoveTag=function(e,t){var n=this,r="comet"===this._connectType,i=this._codec.getModule(lr),o=[];return e.forEach((function(e){var t=n._codec.getModule(ur);t.setTagId(e),o.push(r?t.getArrayData():t)})),i.setTags(o),i.setVersion(t),i.getArrayData()},e.prototype.encodeDisConversationTag=function(e){var t=this._codec.getModule(fr);return t.setTagId(e),t.getArrayData()},e.prototype.encodeUpdateConversationTag=function(e,t){var n=this,r="comet"===this._connectType,i=this._codec.getModule(qn),o=[];return t.forEach((function(t){var i=n._codec.getModule(Wn),s=n._codec.getModule(Kn),a=[];e.forEach((function(e){var t=n._codec.getModule(ur);t.setTagId(e.tagId),Ae(e.isTop)||t.setIsTop(e.isTop),a.push(r?t.getArrayData():t)})),s.setSessionStateType(gi),s.setValue(JSON.stringify(a)),s.setTags(a),i.setType(t.conversationType),i.setChannelId(t.targetId),i.setTime(Date.now()),i.setStateItem([r?s.getArrayData():s]),o.push(r?i.getArrayData():i)})),i.setState(o),i.setVersion(Zt.getTime()),i.getArrayData()},e.prototype.encodeReportSDKInfo=function(e){var t=this._codec.getModule(hr);return t.setSdkInfo(e),t.getArrayData()},e.prototype.encodeUltraGroup=function(e,t){var n=this._codec.getModule(pr);return n.setSyncTime(e),n.setIsEraseMsgContent(t),n.getArrayData()},e.prototype.encodebindRTCRoomForChatroom=function(e){var t=this._codec.getModule(Er);return t.setRtcRoomId(e.rtcRoomId),t.getArrayData()},e}(),yi=function(e,t){this._watcher=t,this.codec=new vi(e)};function mi(e,t,n){if(e&&Je){var r=He(Ge(Z.STATISTICS),e,t,n);return Je.reportRealtimeLog([r]).then((function(){et(K.G_UPLOAD_LOG_S,"big data realtime report success")})).catch((function(e){et(K.G_UPLOAD_LOG_E,"big data realtime report error -> ".concat(e))}))}}!function(e){e[e.PRIVATE=1]="PRIVATE",e[e.OPEN=0]="OPEN"}(zr||(zr={})),function(e){e[e.NAVI=1]="NAVI",e[e.TCP=2]="TCP",e[e.WS=3]="WS"}(Gr||(Gr={}));var Ii,Mi,Ci={},Ti={sdkPrivate:zr.OPEN,serverPrivate:zr.OPEN,bundleId:"lib-next"};function Ai(e){Ti.sdkPrivate=e.sdkPrivate===zr.PRIVATE?zr.PRIVATE:zr.OPEN,Ti.serverPrivate=e.serverPrivate===zr.PRIVATE?zr.PRIVATE:zr.OPEN,e.bundleId&&(Ti.bundleId=e.bundleId)}function _i(){return Ti}function bi(e,t,n){void 0===t&&(t={}),void 0===n&&(n=!1),Ce(t)&&e&&(Ci[e]&&!n||(Ci[e]={}),Ci[e]=m(m({},Ci[e]),t))}function Ni(e){return Ci[e]||{}}!function(e){e.GET="GET",e.POST="POST"}(Ii||(Ii={})),function(e){e.WIFI="wifi",e.FOUR_G="4g",e.THREE_G="3g",e.TWO_G="2g",e.FIVE_G="2g",e.THREE_GENT="3gnet",e.UNKONWN="unknown"}(Mi||(Mi={}));var Ei,wi=function(e,t){return e&&t?"".concat(t,"_").concat(e):e||Date.now()},Si=function(){function e(e){this.header=e,this.messageId=0,this.timestamp=0,this.syncMsg=!1,this.identifier=""}return e.prototype.getIdentifier=function(){var e=this.messageId,t=this.identifier;return wi(e,t)},e.prototype.read=function(e,t,n){this.readMessage(e,t,n)},e.prototype.readMessage=function(e,t,n){return{stream:e,length:t}},e}(),Oi=function(){function e(e){this.lengthSize=0,this.messageId=0,this.topic="",this.targetId="",this.identifier="",this._header=new qt(e,!1,At.AT_MOST_ONCE,!1)}return e.prototype.getIdentifier=function(){var e=this.messageId,t=this.identifier;return wi(e,t)},e.prototype.write=function(e){var t=this.getHeaderFlag();e.write(t),this.writeMessage(e)},e.prototype.setHeaderQos=function(e){this._header.qos=e},e.prototype.getHeaderFlag=function(){return this._header.encode()},e.prototype.getLengthSize=function(){return this.lengthSize},e.prototype.getBufferData=function(){var e=new en;this.write(e);var t=e.getBytesArray();return new Int8Array(t)},e.prototype.getCometData=function(){var e=this.data||{};return JSON.stringify(e)},e}(),Di=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.status=null,t.userId=null,t.timestamp=0,t}return y(t,e),t.prototype.readMessage=function(e,n,r){if(e.readByte(),this.status=+e.readByte(),n<=t.MESSAGE_LENGTH)return{stream:e,length:n};if(r===Nt.V4){var i=e.readByte();1&i&&(this.userId=e.readUTF()),2&i&&e.readUTF(),4&i&&(this.timestamp=e.readLong()),8&i&&(this.messageId=e.read2Byte())}else{this.userId=e.readUTF();var o=e.readUTF();vt.debug("server sessionId -> ".concat(o)),this.timestamp=e.readLong()}return{stream:e,length:n}},t.MESSAGE_LENGTH=2,t}(Si),Li=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.status=0,t}return y(t,e),t.prototype.readMessage=function(e,t){return e.readByte(),this.status=+e.readByte(),{stream:e,length:t}},t.MESSAGE_LENGTH=2,t}(Si),Ri=function(e){function t(){return e.call(this,_t.PING_REQ)||this}return y(t,e),t.prototype.writeMessage=function(e){},t}(Oi),ji=function(e){function t(t){return e.call(this,t)||this}return y(t,e),t}(Si),xi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageId=0,t}return y(t,e),t.prototype.readMessage=function(e,t){var n=256*e.readByte()+e.readByte();return this.messageId=parseInt(n.toString(),10),{stream:e,length:t}},t}(Si),ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.writeMessage=function(e){var t=this.messageId,n=255&t,r=(65280&t)>>8;e.write(r),e.write(n)},t}(Oi),Ui=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.topic="",t.targetId="",t.syncMsg=!1,t.identifier=bt.PUB,t}return y(t,e),t.prototype.readMessage=function(t,n){return this.date=t.readInt(),this.topic=t.readUTF(),this.targetId=t.readUTF(),e.prototype.readMessage.call(this,t,n),this.data=t.readAll(),{stream:t,length:n}},t}(xi),Pi=function(e){function t(t,n,r){var i=e.call(this,_t.PUBLISH)||this;return i.syncMsg=!1,i.identifier=bt.PUB,i.topic=t,i.data=pe(n)?Jt.writeUTF(n):n,i.targetId=r,i}return y(t,e),t.prototype.writeMessage=function(t){t.writeUTF(this.topic),t.writeUTF(this.targetId),e.prototype.writeMessage.call(this,t),t.write(this.data)},t}(ki),zi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.status=0,t.date=0,t.millisecond=0,t.messageUId="",t.timestamp=0,t.identifier=bt.PUB,t.topic="",t.targetId="",t}return y(t,e),t.prototype.readMessage=function(t,n){return e.prototype.readMessage.call(this,t,n),this.date=t.readInt(),this.status=256*t.readByte()+t.readByte(),this.millisecond=256*t.readByte()+t.readByte(),this.timestamp=1e3*this.date+this.millisecond,this.messageUId=t.readUTF(),{stream:t,length:n}},t}(xi),Gi=function(e){function t(t){var n=e.call(this,_t.PUB_ACK)||this;return n.status=0,n.date=0,n.millisecond=0,n.messageUId="",n.timestamp=0,n.messageId=t,n}return y(t,e),t.prototype.writeMessage=function(t){e.prototype.writeMessage.call(this,t)},t}(ki),Bi=function(e){function t(t,n,r){var i=e.call(this,_t.QUERY)||this;return i.identifier=bt.QUERY,i.topic=t,i.data=pe(n)?Jt.writeUTF(n):n,i.targetId=r,i}return y(t,e),t.prototype.writeMessage=function(t){t.writeUTF(this.topic),t.writeUTF(this.targetId),e.prototype.writeMessage.call(this,t),t.write(this.data)},t}(ki),Yi=function(e){function t(t){var n=e.call(this,_t.QUERY_CONFIRM)||this;return n.messageId=t,n}return y(t,e),t}(ki),Hi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.status=0,t.identifier=bt.QUERY,t.topic="",t.targetId="",t}return y(t,e),t.prototype.readMessage=function(t,n){return e.prototype.readMessage.call(this,t,n),this.date=t.readInt(),this.status=256*t.readByte()+t.readByte(),this.data=t.readAll(),{stream:t,length:n}},t}(xi),$i=function(e){var t,n=e.type;switch(n){case _t.CONN_ACK:t=new Di(e);break;case _t.PUBLISH:(t=new Ui(e)).syncMsg=e.syncMsg;break;case _t.PUB_ACK:t=new zi(e);break;case _t.QUERY_ACK:t=new Hi(e);break;case _t.SUB_ACK:case _t.UNSUB_ACK:case _t.PING_RESP:t=new ji(e);break;case _t.DISCONNECT:t=new Li(e);break;default:t=new Si(e),vt.error("No support for deserializing ".concat(n," messages"))}return t};!function(e){e[e.ppMsgP=1]="ppMsgP",e[e.ppMsgN=2]="ppMsgN",e[e.ppMsgS=3]="ppMsgS",e[e.pgMsgP=4]="pgMsgP",e[e.chatMsg=5]="chatMsg",e[e.pcMsgP=6]="pcMsgP",e[e.qryPMsg=7]="qryPMsg",e[e.qryGMsg=8]="qryGMsg",e[e.qryCHMsg=9]="qryCHMsg",e[e.qryCMsg=10]="qryCMsg",e[e.qrySMsg=11]="qrySMsg",e[e.recallMsg=12]="recallMsg",e[e.prMsgS=13]="prMsgS",e[e.rrMsg=14]="rrMsg",e[e.rrList=15]="rrList",e[e.s_ntf=16]="s_ntf",e[e.s_msg=17]="s_msg",e[e.s_stat=18]="s_stat",e[e.s_cmd=19]="s_cmd",e[e.s_us=20]="s_us",e[e.pullUS=21]="pullUS",e[e.pgMsgS=22]="pgMsgS",e[e.chatMsgS=23]="chatMsgS",e[e.qrySessionsAtt=24]="qrySessionsAtt",e[e.pullMsg=25]="pullMsg",e[e.qrySessions=26]="qrySessions",e[e.delSessions=27]="delSessions",e[e.delMsg=28]="delMsg",e[e.updRRTime=29]="updRRTime",e[e.chrmPull=30]="chrmPull",e[e.joinChrm=31]="joinChrm",e[e.joinChrmR=32]="joinChrmR",e[e.exitChrm=33]="exitChrm",e[e.queryChrmI=34]="queryChrmI",e[e.setKV=35]="setKV",e[e.delKV=36]="delKV",e[e.pullKV=37]="pullKV",e[e.qryRelation=38]="qryRelation",e[e.delRelation=39]="delRelation",e[e.pullSeAtts=40]="pullSeAtts",e[e.setSeAtt=41]="setSeAtt",e[e.qnTkn=42]="qnTkn",e[e.qnUrl=43]="qnUrl",e[e.aliUrl=44]="aliUrl",e[e.s3Url=45]="s3Url",e[e.stcUrl=46]="stcUrl",e[e.cleanPMsg=47]="cleanPMsg",e[e.cleanGMsg=48]="cleanGMsg",e[e.cleanCMsg=49]="cleanCMsg",e[e.cleanSMsg=50]="cleanSMsg",e[e.rtcPing=51]="rtcPing",e[e.rtc_ntf=52]="rtc_ntf",e[e.rtcSetOutData=53]="rtcSetOutData",e[e.rtcQryUserOutData=54]="rtcQryUserOutData",e[e.addSeTag=55]="addSeTag",e[e.delSeTag=56]="delSeTag",e[e.addTag=57]="addTag",e[e.delTag=58]="delTag",e[e.disTag=59]="disTag",e[e.reportsdk=60]="reportsdk",e[e.pullUgSes=61]="pullUgSes",e[e.pullUgMsg=62]="pullUgMsg",e[e.ugMsg=63]="ugMsg",e[e.qryUgMsg=64]="qryUgMsg",e[e.updUgRTime=65]="updUgRTime",e[e.upMsgEx=66]="upMsgEx",e[e.modifyMsg=67]="modifyMsg",e[e.qryMsgChange=68]="qryMsgChange",e[e.qryMsg=69]="qryMsg",e[e.operate=70]="operate",e[e.s_opNtf=71]="s_opNtf",e[e.ugUnpushQuery=72]="ugUnpushQuery",e[e.ugUnpushSet=73]="ugUnpushSet",e[e.setRtcRoomId=74]="setRtcRoomId",e[e.qryUgUal=75]="qryUgUal"}(Ei||(Ei={}));var Fi,Qi,Vi,Zi=Ei,Wi=function(e,t,n,r,i,o,s,a){return"".concat(e,"://").concat(t,"/websocket?appId=").concat(n,"&token=").concat(encodeURIComponent(r),"&sdkVer=").concat(o,"&pid=").concat(s,"&apiVer=").concat(i.isFromUniapp?"uniapp":"normal").concat(i.connectPlatform?"&platform=".concat(i.connectPlatform):"").concat(a?"&protocolVer=".concat(a):"")},Ki=function(e){return[Zi.ppMsgS,Zi.pgMsgS,Zi.chatMsgS].map((function(e){return Zi[e]})).indexOf(e)>=0};!function(e){e[e.REDIRECT=0]="REDIRECT",e[e.OTHER_DEVICE_LOGIN=1]="OTHER_DEVICE_LOGIN",e[e.BLOCK=2]="BLOCK",e[e.REMOTE_CLOSE=3]="REMOTE_CLOSE",e[e.LOGOUT=4]="LOGOUT",e[e.BLOCK_NEW=5]="BLOCK_NEW",e[e.REDIRECT_NEW=6]="REDIRECT_NEW"}(Fi||(Fi={})),function(e){e.IM_NAVI="IM-stats_navi-S",e.IM_WEBSOCKET="IM-stats_websocket-S",e.IM_COMET="IM-stats_comet-S",e.IM_CONNECTION_DURATION="IM-stats_con_dur-S"}(Qi||(Qi={}));var qi,Ji="rtcRJoin_data",Xi="rtcRExit",eo="rtcRInfo",to="rtcUData",no="rtcUPut",ro="rtcUDel",io="rtcSetData",oo="userSetData",so="rtcQryData",ao="rtcDelData",co="rtcToken",uo="rtcUserState",lo="rtcUList",fo="viewerJoinR",ho="viewerExitR",po="rtcPullKv",go="rtcIdentityChange",vo="rtcInvite",yo="rtcCancelInvite",mo="rtcInviteAnswer",Io="rtcEndInvite",Mo="rtcQueryJoined";!function(e){e.RtcInput="RtcInput",e.RtcUserListOutput="RtcUserListOutput",e.SetUserStatusInput="SetUserStatusInput",e.RtcSetDataInput="RtcSetDataInput",e.RtcUserSetDataInput="RtcUserSetDataInput",e.RtcDataInput="RtcDataInput",e.RtcSetOutDataInput="RtcSetOutDataInput",e.MCFollowInput="MCFollowInput",e.RtcTokenOutput="RtcTokenOutput",e.RtcQryOutput="RtcQryOutput",e.RtcQryUserOutDataInput="RtcQryUserOutDataInput",e.RtcUserOutDataOutput="RtcUserOutDataOutput",e.RtcQueryListInput="RtcQueryListInput",e.RtcRoomInfoOutput="RtcRoomInfoOutput",e.RtcValueInfo="RtcValueInfo",e.RtcKeyDeleteInput="RtcKeyDeleteInput",e.RtcNotifyMsg="RtcNotifyMsg",e.RtcPullKV="RtcPullKV",e.RtcKVOutput="RtcKVOutput",e.RtcQueryUserJoinedInput="RtcQueryUserJoinedInput",e.RtcQueryUserJoinedOutput="RtcQueryUserJoinedOutput",e.RtcViewerJoinedOutput="RtcViewerJoinedOutput",e.RtcInviteInput="RtcInviteInput",e.RtcCancelInviteInput="RtcCancelInviteInput",e.RtcInviteAnswerInput="RtcInviteAnswerInput",e.RtcEndInviteInput="RtcEndInviteInput"}(qi||(qi={}));var Co=((Vi={})[qi.RtcInput]=["roomType","broadcastType","extraInnerData","needSysChatroom","identityChangeType","joinType","innerDatas","outerDatas"],Vi[qi.RtcUserListOutput]=["users","token","sessionId","roomInfo"],Vi[qi.SetUserStatusInput]=["status"],Vi[qi.RtcSetDataInput]=["interior","target","key","value","objectName","content"],Vi[qi.RtcUserSetDataInput]=["valueInfo","objectName","content"],Vi[qi.RtcDataInput]=["interior","target","key","objectName","content"],Vi[qi.RtcSetOutDataInput]=["target","valueInfo","objectName","content"],Vi[qi.MCFollowInput]=["state"],Vi[qi.RtcTokenOutput]=["rtcToken"],Vi[qi.RtcQryOutput]=["outInfo"],Vi[qi.RtcQryUserOutDataInput]=["userId"],Vi[qi.RtcUserOutDataOutput]=["user"],Vi[qi.RtcQueryListInput]=["order"],Vi[qi.RtcRoomInfoOutput]=["roomId","roomData","userCount","list"],Vi[qi.RtcValueInfo]=["key","value"],Vi[qi.RtcKeyDeleteInput]=["key"],Vi[qi.RtcNotifyMsg]=["type","time","roomId"],Vi[qi.RtcPullKV]=["timestamp","roomId"],Vi[qi.RtcKVOutput]=["entries","bFullUpdate","syncTime"],Vi[qi.RtcQueryUserJoinedInput]=["userId"],Vi[qi.RtcQueryUserJoinedOutput]=["info"],Vi[qi.RtcInviteInput]=["invitedUserId","timeoutTime","invitedRoomId","inviteInfo","inviteSessionId"],Vi[qi.RtcCancelInviteInput]=["invitedUserId","invitedRoomId","inviteInfo","inviteSessionId"],Vi[qi.RtcInviteAnswerInput]=["inviteUserId","answerCode","inviteRoomId","inviteSessionId","content","key","value"],Vi[qi.RtcEndInviteInput]=["inviteRoomId","inviteSessionId","inviteContent","inviteRoomKeys"],Vi),To="\npackage Modules;\nmessage probuf {\n enum JoinType {\n KICK = 0; //踢前一个设备\n REFUSE = 1; //当前加入拒绝\n COEXIST = 2; //两个设备共存\n }\n enum targetType {\n ROOM =1 ;\n PERSON = 2;\n }\n message ".concat(qi.SetUserStatusInput,"\n {\n optional int32 status=1;\n }\n message ").concat(qi.MCFollowInput,"\n {\n required string state = 1;\n }\n message ").concat(qi.RtcQueryListInput,"{\n optional int32 order=1;\n }\n message ").concat(qi.RtcKeyDeleteInput,"{\n repeated string key=1;\n }\n message ").concat(qi.RtcValueInfo,"{\n required string key=1;\n required string value=2;\n }\n message RtcUserInfo{\n required string userId=1;\n repeated ").concat(qi.RtcValueInfo," userData=2; //用户资源信息\n }\n message ").concat(qi.RtcUserListOutput,"{\n repeated RtcUserInfo users=1;\n optional string token=2;\n optional string sessionId=3;\n repeated RtcValueInfo roomInfo = 4; //房间key value\n repeated RtcKVEntity entries = 5;//直播KV属性对象集合\n optional int64 syncTime = 6;//所有属性的最大时间戳(下次拉取KV时用)。\n optional int32 offlineKickTime = 7;//server超时踢人时间,默认60s\n }\n message RtcRoomInfoOutput{\n optional string roomId = 1;\n repeated ").concat(qi.RtcValueInfo," roomData = 2;\n optional int32 userCount = 3;\n repeated RtcUserInfo list=4;\n }\n message ").concat(qi.RtcInput,"{\n required int32 roomType=1;\n optional int32 broadcastType=2;\n optional RtcValueInfo extraInnerData = 3;\n optional bool needSysChatroom = 4; //是否需要同步聊天室\n optional IdentityChangeType identityChangeType = 5; //身份变更类型\n optional JoinType joinType = 6; // 加入房间类型\n repeated ").concat(qi.RtcValueInfo," innerDatas = 7; //用户内部inner数据,角色或者连麦信息等\n repeated ").concat(qi.RtcValueInfo," outerDatas = 8; //用户内部outer数据,自定义数据结构RtcInput。\n }\n message ").concat(qi.RtcQryOutput,"{\n repeated ").concat(qi.RtcValueInfo," outInfo=1;\n }\n message ").concat(qi.RtcDataInput,"{\n required bool interior=1;\n required targetType target=2;\n repeated string key=3;\n optional string objectName=4;\n optional string content=5;\n }\n message ").concat(qi.RtcSetDataInput,"{\n required bool interior=1;\n required targetType target=2;\n required string key=3;\n required string value=4;\n optional string objectName=5;\n optional string content=6;\n }\n message ").concat(qi.RtcUserSetDataInput," {\n repeated ").concat(qi.RtcValueInfo," valueInfo = 1;\n required string objectName = 2;\n repeated ").concat(qi.RtcValueInfo," content = 3;\n }\n message RtcQryInput{\n required bool isInterior=1;\n required targetType target=2;\n repeated string key=3;\n }\n message RtcDelDataInput{\n repeated string key=1;\n required bool isInterior=2;\n required targetType target=3;\n }\n message RtcOutput\n {\n optional int32 nothing=1;\n }\n message ").concat(qi.RtcTokenOutput,"{\n required string rtcToken=1;\n }\n message ").concat(qi.RtcSetOutDataInput,"{\n required targetType target=1;\n repeated ").concat(qi.RtcValueInfo," valueInfo=2;\n optional string objectName=3;\n optional string content=4;\n }\n message ").concat(qi.RtcQryUserOutDataInput,"{\n repeated string userId = 1;\n }\n message ").concat(qi.RtcUserOutDataOutput,"{\n repeated RtcUserInfo user = 1;\n }\n message ").concat(qi.RtcNotifyMsg," \n {\n required int32 type= 1; //(通知类型 1:rtc房间状态KV变更通知)\n optional int64 time= 2; //消息产生时间\n optional string roomId=3; //主播房间id\n }\n message ").concat(qi.RtcPullKV,"\n {\n required int64 timestamp = 1;\n required string roomId = 2;\n }\n message RtcKVEntity \n {\n required string key = 1;\n required string value = 2;\n optional int32 status = 3;\n optional int64 timestamp = 4;\n optional string uid = 5;\n }\n message ").concat(qi.RtcKVOutput,"\n {\n repeated RtcKVEntity entries = 1;\n optional bool bFullUpdate = 2;\n optional int64 syncTime = 3; \n }\n enum IdentityChangeType \n {\n AnchorToViewer = 1; //1为主播变观众\n ViewerToAnchor = 2; //2为观众变主播\n }\n message ").concat(qi.RtcQueryUserJoinedInput,"\n {\n required string userId = 1;\n }\n message RtcJoinedInfo\n {\n required string deviceId = 1; //设备ID\n required string roomId = 2; //加入的房间ID\n optional int64 joinTime = 3; //加入的时间\n }\n message ").concat(qi.RtcQueryUserJoinedOutput,"\n {\n repeated RtcJoinedInfo info = 1;\n }\n message ").concat(qi.RtcViewerJoinedOutput,"\n {\n required string rtcToken=1;\n repeated RtcKVEntity entries = 2;//KV属性对象集合\n optional int64 syncTime = 3;//所有属性的最大时间戳(下次拉取KV时用)。\n }\n message ").concat(qi.RtcInviteInput,"\n {\n required string invitedUserId=1; //被邀请的人的uid\n optional int32 timeoutTime=2; //邀请超时时间(秒),默认三十秒\n required string invitedRoomId=3; //被邀请的房间\n required string inviteInfo=4; //邀请的信息(包含邀请人,被邀请人,各自userid)客户端定义好.协议栈和server透传\n required string inviteSessionId= 5; //客户端保证唯一性(建议roomid_userid_时间戳_随机数)\n }\n message ").concat(qi.RtcCancelInviteInput,"\n {\n required string invitedUserId=1; //被邀请的人的uid\n required string invitedRoomId=2; //被邀请的房间\n required string inviteInfo=3; //取消邀请的信息(包含邀请人,被邀请人,各自userid)客户端定义好.协议栈和server透传\n required string inviteSessionId=4; //邀请的sessionId,客户端发起邀请时产生\n }\n message ").concat(qi.RtcInviteAnswerInput,"\n {\n required string inviteUserId=1; //邀请的人的uid\n required int32 answerCode=2; //是否接受连麦邀请.0为拒绝,1为接受\n required string inviteRoomId=3; //邀请的房间\n required string inviteSessionId=4; //邀请的sessionId\n required string content=5; //需要转发的content\n optional string key=6; //如果接受的话,需要加这个字段,放在room级别的k和v,新加入房间的能拉取到\n optional string value=7; //如果接受的话,需要加这个字段,放在room级别的k和v,新加入房间的能拉取到\n }\n message ").concat(qi.RtcEndInviteInput,"\n {\n required string inviteRoomId=1; //邀请的房间\n required string inviteSessionId=2; //邀请的sessionId\n required string inviteContent=3; //结束连麦的信息(需要透传给房间内其他人)\n repeated string inviteRoomKeys=4; //需要删除连麦的信息的key\n }\n}\n"),Ao=function(e,t){vt.info("websocket send -> messageId: ".concat(e.messageId," topic: ").concat(e.topic));var n=e.getBufferData();t.send(n.buffer)},_o=function(e){function t(t,n){var r=e.call(this,"websocket",n)||this;return r._runtime=t,r._socket=null,r._messageIds={},r._syncMessageIds={},r._failedCount=0,r.ALLOW_FAILED_TIMES=2,r._timer=null,r._idCount=0,r._generateMessageId=function(){return r._idCount>=65535&&(r._idCount=0),++r._idCount},r}return y(t,e),t.prototype.connect=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var s=this;return M(this,(function(a){return[2,new Promise((function(a){var c=n.slice(),u=!1,l=function(){return I(s,void 0,void 0,(function(){var n,s,f;return M(this,(function(h){switch(h.label){case 0:return 0===c.length||u?[2]:(u=!0,n=c.shift(),bi(Qi.IM_WEBSOCKET,{startTime:(new Date).getTime(),host:n,protocol:Gr.WS}),[4,this._connect(e,t,n,r,i,o)]);case 1:if(s=h.sent(),f=s===L.SUCCESS||s===U.REDIRECT?s:$t(s),bi(Qi.IM_WEBSOCKET,{endTime:(new Date).getTime(),code:f}),function(e){I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h,d,p;return M(this,(function(g){switch(g.label){case 0:t=Qi.IM_WEBSOCKET,n=_i(),r=n.sdkPrivate,i=n.serverPrivate,o=n.bundleId,s=Ni(t),a=s.protocol,c=s.startTime,u=s.endTime,l=s.code,f=s.host,h=Mi.UNKONWN,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,e.getNetworkType()];case 2:return h=g.sent(),[3,4];case 3:return d=g.sent(),vt.info(d.message),[3,4];case 4:return p=0,ve(c)&&ve(u)&&u>c&&c&&(p=u-c),mi(t,{spr:r,pr:i,bid:o,ptc:a,dur:p,cod:l,hos:f,net:h}),[2]}}))}))}(this._runtime),s===L.SUCCESS)this._checkAlive(),a(s);else if(s===U.REDIRECT)a(s);else{if(0===c.length)return a($t(s)),[2];u=!1,l()}return[2]}}))}))};i=N(i),s._watcher.status(k.CONNECTING),l()}))]}))}))},t.prototype._connect=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var s,a,c,u,l,f=this;return M(this,(function(h){switch(h.label){case 0:return s=r.replace("http","ws"),a=Wi(s,n,e,t,this._runtime,i,"",o),vt.info("conenct start -> ".concat(a)),this.sendConnectTime=Date.now(),c=this._runtime.createWebSocket(a),u=function(e){f._timer&&(clearTimeout(f._timer),f._timer=null),f._socket===c&&(f._socket=null,f._watcher.status(e))},[4,new Promise((function(e){c.onMessage((function(t){if("[object ArrayBuffer]"===Object.prototype.toString.call(t)){var n=function(e,t){var n=new Uint8Array(e),r=new Xt(n),i=r.readByte(),o=new qt(i),s=$i(o);return s.read(r,n.length-1,t),s}(t,o);if(n instanceof ji&&f._pingResolve)return f._pingResolve(L.SUCCESS),void(f._pingResolve=void 0);if(n instanceof Di)return vt.info("recv connect ack -> ".concat(n.status)),n.status!==U.ACCEPTED?(vt.warn("connect failed: ".concat(n.status)),void e(n.status)):(vt.info("connect success -> ".concat(a)),f.connectedTime=n.timestamp,f.userId=n.userId||"",f._idCount=n.messageId,void e(L.SUCCESS));if(n instanceof Li){var r=n.status;switch(vt.warn("recv disconnect signal -> status: ".concat(r)),r){case Fi.BLOCK_NEW:case Fi.BLOCK:f._watcher.status(k.BLOCKED);break;case Fi.OTHER_DEVICE_LOGIN:f._watcher.status(k.KICKED_OFFLINE_BY_OTHER_CLIENT);break;case Fi.REDIRECT_NEW:case Fi.REDIRECT:f._watcher.status(k.REDIRECT);break;default:f._watcher.status(k.DISCONNECT_BY_SERVER)}}else f._onReceiveSignal(n)}else vt.error("Socket received invalid data:",t)})),c.onClose((function(t,n){for(var r in vt.warn("websocket closed! code:",t,"reason:",n),u(k.CONNECTION_CLOSED),f._messageIds){var i=f._messageIds[r];delete f._messageIds[r],i(L.RC_NET_CHANNEL_INVALID)}e(t)})),c.onError((function(t){for(var n in vt.error("websocket error!",null==t?void 0:t.stack),u(k.WEBSOCKET_ERROR),f._messageIds){var r=f._messageIds[n];delete f._messageIds[n],r(L.RC_NET_CHANNEL_INVALID)}e(L.NETWORK_ERROR)})),c.onOpen((function(){return vt.info("websocket open =>",a)})),setTimeout((function(){e(L.TIMEOUT)}),5e3)}))];case 1:return(l=h.sent())===L.SUCCESS?this._socket=c:(vt.warn("connect result -> code: ".concat(l,", url: ").concat(a)),c.close()),[2,l]}}))}))},t.prototype._checkAlive=function(){var e;return I(this,void 0,void 0,(function(){var t,n,r=this;return M(this,(function(i){switch(i.label){case 0:return this._socket?(t=We(),et(K.L_CHECK_ALIVE_IM_T,{},{traceId:t}),this.sendOnly(new Ri),[4,new Promise((function(e){r._pingResolve=e,r._timer&&clearTimeout(r._timer),r._timer=setTimeout((function(){r._pingResolve=void 0,e(L.TIMEOUT)}),15e3)}))]):[2];case 1:return n=i.sent(),(n===L.SUCCESS?et:tt)(K.L_CHECK_ALIVE_IM_R,{isSuccess:n===L.SUCCESS},{traceId:t}),n!==L.SUCCESS?(this._failedCount+=1,vt.warn("ping failed count: ".concat(this._failedCount,", code: ").concat(n)),this._failedCount>=this.ALLOW_FAILED_TIMES?(this._failedCount=0,vt.warn("ping timeout, close current websocket to reconnect!"),null===(e=this._socket)||void 0===e||e.close(),this._socket=null,this._watcher.status(k.NETWORK_UNAVAILABLE)):this._checkAlive(),[2]):(this._failedCount=0,setTimeout((function(){return r._checkAlive()}),15e3),[2])}}))}))},t.prototype._onReceiveSignal=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a=this;return M(this,(function(c){switch(c.label){case 0:return t=e.messageId,e.header&&e.header.qos!==At.AT_MOST_ONCE&&(e instanceof Ui&&!e.syncMsg&&(vt.info("send pubAck -> ".concat(t," ").concat(e.topic)),this.sendOnly(new Gi(t))),e instanceof Hi&&(vt.info("send queryCon -> ".concat(t," ").concat(e.topic)),this.sendOnly(new Yi(t)))),t>0&&(e instanceof zi||e instanceof Hi)&&(vt.info("recv ack -> messageId: ".concat(t," ").concat(e.topic)),(n=this._messageIds[t])&&(n(e),delete this._messageIds[t]),(r=this._syncMessageIds[t])&&(delete this._syncMessageIds[t],r(e))),e instanceof Ui?(i=e.syncMsg,o=e.topic,vt.info("recv PublishReader -> messageId: ".concat(t," ").concat(o)),o===oo?[2]:!i||Ki(o)?(this._watcher.signal(e),[2]):[4,new Promise((function(e){a._syncMessageIds[t]=e}))]):[3,2];case 1:s=c.sent(),delete this._syncMessageIds[t],this._watcher.signal(e,s),c.label=2;case 2:return[2]}}))}))},t.prototype.sendOnly=function(e){this._socket&&((e instanceof Pi||e instanceof Bi)&&(e.messageId=this._generateMessageId()),Ao(e,this._socket))},t.prototype.send=function(e,t,n,r){return void 0===r&&(r=3e4),I(this,void 0,void 0,(function(){var i,o,s,a,c=this;return M(this,(function(u){switch(u.label){case 0:return this._socket?(i=this._generateMessageId(),e.messageId=i,Ao(e,this._socket),[4,new Promise((function(e){c._messageIds[i]=e,setTimeout((function(){c._messageIds[i]&&delete c._messageIds[i],e()}),r)}))]):[3,2];case 1:return(o=u.sent())?o instanceof Hi||o instanceof zi?(s=t&&o.data&&[L.SUCCESS,L.CHATROOM_KV_STORE_NOT_ALL_SUCCESS].indexOf(o.status)>=0,a=s?this.codec.decodeByPBName(o.data,t,n):o,0!==o.status?(vt.warn("send failed -> message: ".concat(i,", respPBName: ").concat(t,", status: ").concat(o.status)),[2,{code:o.status,data:t&&o.data?a:null}]):[2,{code:L.SUCCESS,data:a}]):[2,{code:o}]:(vt.warn("send timeout -> message: ".concat(i,", respPBName: ").concat(t,", timeout: ").concat(r)),[2,{code:L.TIMEOUT}]);case 2:return[2,{code:L.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype.close=function(){this._socket&&(this._socket.close(),this._socket=null)},t}(yi),bo=function(e){function t(t,n){var r=e.call(this,"comet",n)||this;return r._runtime=t,r._messageIds={},r._syncMessageIds={},r._idCount=0,r._generateMessageId=function(){return++r._idCount},r._pid=encodeURIComponent("".concat((new Date).getTime()+Math.random())),r}return y(t,e),t.prototype.handleCometRes=function(e){var t=this;if(200!==e.status&&202!==e.status)return!1;var n=pe(e.data)?JSON.parse(e.data):e.data;return n?!ye(n)||(Pt(n,(function(e){return I(t,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h,d,p=this;return M(this,(function(g){switch(g.label){case 0:if((t=e.sessionid)&&(this._sessionid=t),n=function(e){var t=e.headerCode,n=new qt(t),r=$i(n);for(var i in e)r[i]=e[i];return r}(e),r=n.messageId,i=n._header,o=n.status,n.identifier,s=i&&i.qos!==At.AT_MOST_ONCE,r&&n.getIdentifier&&(null==(a=this._messageIds[r])||a(n),null===(d=(h=this._syncMessageIds)[r])||void 0===d||d.call(h,n)),s&&(n instanceof Ui&&!n.syncMsg&&(c=new Gi(r),this.sendOnly(c)),n instanceof Hi&&(c=new Yi(r),this.sendOnly(c))),n instanceof Li){switch(o){case Fi.OTHER_DEVICE_LOGIN:this._watcher.status(k.KICKED_OFFLINE_BY_OTHER_CLIENT);break;case Fi.BLOCK:case Fi.BLOCK_NEW:this._watcher.status(k.BLOCKED);break;case Fi.REDIRECT_NEW:case Fi.REDIRECT:this._watcher.status(k.REDIRECT);break;default:this._watcher.status(k.DISCONNECT_BY_SERVER)}return[2]}return n instanceof Ui?(u=n.syncMsg,l=n.topic,!u||Ki(l)?(this._watcher.signal(n),[2,!1]):[4,new Promise((function(e){p._syncMessageIds[r]=e}))]):[3,2];case 1:f=g.sent(),delete this._syncMessageIds[r],this._watcher.signal(n,f),g.label=2;case 2:return[2]}}))}))})),!0):(vt.error("received data is not a validJson",n),!1)},t.prototype._startPullSignal=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o;return M(this,(function(s){switch(s.label){case 0:return t=(new Date).getTime(),n="".concat(e,"://").concat(this._domain,"/pullmsg.js?sessionid=").concat(this._sessionid,"×trap=").concat(t,"&pid=").concat(this._pid),r=We(),et(K.L_CHECK_ALIVE_IM_T,{},{traceId:r}),[4,this._runtime.httpReq({url:n,body:{pid:this._pid},timeout:45e3})];case 1:return i=s.sent(),o=this.handleCometRes(i),(o?et:tt)(K.L_CHECK_ALIVE_IM_R,{isSuccess:o},{traceId:r}),this._isDisconnected||(o?this._startPullSignal(e):(this._isDisconnected=!0,this._watcher.status(k.NETWORK_UNAVAILABLE))),[2]}}))}))},t.prototype.connect=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var o,s,a=this;return M(this,(function(c){return i=N(i),this._protocol=r,this._isDisconnected=!1,this._watcher.status(k.CONNECTING),o=n.slice(),s=!1,[2,new Promise((function(n){var c=function(){return I(a,void 0,void 0,(function(){var a,u,l;return M(this,(function(f){switch(f.label){case 0:return 0===o.length||s?[2]:(s=!0,a=o.shift(),bi(Qi.IM_COMET,{startTime:(new Date).getTime(),host:a,protocol:Gr.NAVI}),[4,this._connect(e,t,a,r,i)]);case 1:if(u=f.sent(),l=u===L.SUCCESS||u===U.REDIRECT?u:$t(u),bi(Qi.IM_COMET,{endTime:(new Date).getTime(),code:l}),function(e){I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h,d,p;return M(this,(function(g){switch(g.label){case 0:t=Qi.IM_COMET,n=_i(),r=n.sdkPrivate,i=n.serverPrivate,o=n.bundleId,s=Ni(t),a=s.protocol,c=s.startTime,u=s.endTime,l=s.code,f=s.host,h=Mi.UNKONWN,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,e.getNetworkType()];case 2:return h=g.sent(),[3,4];case 3:return d=g.sent(),vt.info(d.message),[3,4];case 4:return p=0,ve(c)&&ve(u)&&u>c&&c&&(p=u-c),mi(t,{spr:r,pr:i,bid:o,ptc:a,dur:p,cod:l,hos:f,net:h}),[2]}}))}))}(this._runtime),u===L.SUCCESS)this._startPullSignal(r),n(u);else if(u===U.REDIRECT)n(u);else{if(0===o.length)return n($t(u)),[2];s=!1,c()}return[2]}}))}))};a._watcher.status(k.CONNECTING),c()}))]}))}))},t.prototype._connect=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){var o,s,a,c;return M(this,(function(u){switch(u.label){case 0:return o=function(e){return 200!==e.status&&202!==e.status?(vt.error("handle comet res -> res: ".concat(JSON.stringify(e||{}))),!1):!!e.data&&(function(e){if(Ce(e))return!0;var t=!1;try{var n=JSON.parse(e);t=JSON.stringify(n)===e}catch(e){t=!1}return t}(e.data)?Ce(e.data)?e.data:JSON.parse(e.data):(vt.error("received data is not a validJson",e.data),!1))},s=Wi(r,n,e,t,this._runtime,i,this._pid),this.sendConnectTime=Date.now(),vt.info("conenct start -> ".concat(s)),[4,this._runtime.httpReq({url:s,body:{pid:this._pid},timeout:5e3})];case 1:return a=u.sent(),c=o(a),this._domain=n,c&&0===c.status?(this._sessionid=c.sessionid,this.userId=c.userId,this.connectedTime=c.timestamp,et("connect success -> userId: ".concat(c.userId,", url: ").concat(s))):vt.warn("connect result -> code: ".concat(null==c?void 0:c.status,", url: ").concat(s)),[2,null==c?void 0:c.status]}}))}))},t.prototype.sendCometData=function(e,t){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l;return M(this,(function(f){switch(f.label){case 0:return n=(t=this)._domain,r=t._sessionid,i=t._pid,o=e.messageId,s=e.topic,a=e.targetId,e.identifier,c=e.getHeaderFlag(),u=s?"".concat(this._protocol,"://").concat(n,"/websocket?messageid=").concat(o,"&header=").concat(c,"&sessionid=").concat(r,"&topic=").concat(s,"&targetid=").concat(a,"&pid=").concat(i):"".concat(this._protocol,"://").concat(n,"/websocket?messageid=").concat(o,"&header=").concat(c,"&sessionid=").concat(r,"&pid=").concat(i),[4,this._runtime.httpReq({url:u,method:Ii.POST,body:e.getCometData()})];case 1:return l=f.sent(),this.handleCometRes(l),[2]}}))}))},t.prototype.sendOnly=function(e){this.sendCometData(e)},t.prototype.send=function(e,t,n,r){return void 0===r&&(r=3e4),I(this,void 0,void 0,(function(){var i,o,s,a,c=this;return M(this,(function(u){switch(u.label){case 0:return i=this._generateMessageId(),e.messageId=i,this.sendCometData(e),[4,new Promise((function(e){c._messageIds[i]=e,setTimeout((function(){delete c._messageIds[i],e()}),r)}))];case 1:return(o=u.sent())?(s=t&&o.data&&[L.SUCCESS,L.CHATROOM_KV_STORE_NOT_ALL_SUCCESS].indexOf(o.status)>=0,a=s?this.codec.decodeByPBName(o.data,t,n):o,0!==o.status?[2,{code:o.status,data:t&&o.data?a:null}]:[2,{code:L.SUCCESS,data:a}]):[2,{code:L.TIMEOUT}]}}))}))},t.prototype.close=function(){this._isDisconnected=!0,this._watcher.status(k.DISCONNECTED)},t}(yi),No=function(e){return["navi",e].join("_")},Eo=function(e,t,n,r){var i,o=No(e);try{var s=r.getItem(o);i=s?JSON.parse(s):[]}catch(e){i=[]}var a=Date.now();i.length>0&&(i=i.filter((function(e){return a-e.timestamp<72e5&&t!==e.token}))),i.push({timestamp:a,naviInfo:n,token:t}),r.setItem(o,JSON.stringify(i))};function wo(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h,d,p;return M(this,(function(g){switch(g.label){case 0:t=Qi.IM_NAVI,n=_i(),r=n.sdkPrivate,i=n.serverPrivate,o=n.bundleId,s=Ni(t),a=s.protocol,c=s.startTime,u=s.endTime,l=s.code,f=s.host,h=Mi.UNKONWN,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,e.getNetworkType()];case 2:return h=g.sent(),[3,4];case 3:return d=g.sent(),vt.debug(d.message),[3,4];case 4:return p=0,ve(c)&&ve(u)&&u>c&&c&&(p=u-c),mi(t,{spr:r,pr:i,bid:o,ptc:a,dur:p,cod:l,hos:f,net:h}),[2]}}))}))}var So=function(){function e(e){this._pullQueue=[],this._isPulling=!1,this._pullTime=0,this._engine=e}return e.prototype._startPull=function(){return I(this,void 0,void 0,(function(){var e,t,n,r,i,o,s;return M(this,(function(a){switch(a.label){case 0:return this._isPulling||0===this._pullQueue.length?[2]:(this._isPulling=!0,e=this._pullQueue.splice(0,1)[0],t=e.roomId,n=e.timestamp,(r=this._pullTime)>n?(this._isPulling=!1,this._startPull(),[2]):[4,this._engine.pullRTCRoomEntry(t,r)]);case 1:return i=a.sent(),o=i.code,s=i.data,o===L.SUCCESS?(this._isPulling=!1,this._pullTime=s.syncTime||0,this._startPull()):this._startPull(),[2]}}))}))},e.prototype.pullEntry=function(e,t){this._pullQueue.push({roomId:e,timestamp:t}),this._startPull()},e.prototype.reset=function(){this._pullTime=0,this._isPulling=!1},e}(),Oo=function(e,t,n,r,i,o){var s=i?Object.keys(i).map((function(t){return e.encode(qi.RtcValueInfo,{key:t,value:i[t]},!0)})):void 0,a=o?Object.keys(o).map((function(t){return e.encode(qi.RtcValueInfo,{key:t,value:o[t]},!0)})):void 0;return e.encode(qi.RtcInput,{roomType:t,broadcastType:n,joinType:r,innerDatas:s,outerDatas:a})},Do=function(e,t){var n=e.decode(qi.RtcUserListOutput,t),r=n.users,i=n.token,o=n.sessionId,s=n.roomInfo,a=n.entries,c=n.offlineKickTime,u={};return Pt(r,(function(e){var t=e.userId,n=e.userData,r={};Pt(n,(function(e){var t=e.key,n=e.value;r[t]=n})),u[t]=r})),{users:u,token:i,sessionId:o,roomInfo:s,kvEntries:a,offlineKickTime:c}},Lo=function(){function e(e,t,n,r){this.runtime=e,this.rtcCodec=t,this._watcher=n,this._options=r,this._appkey=this._options.appkey,this._apiVer=this._options.apiVersion,this._apiVersion=N(this._options.apiVersion),this._rtcKVManager=new So(this)}return e.prototype.registerRTCSignalingListener=function(e){this._rtcSignalingListener=e},e.prototype.getNaviInfo=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o;return M(this,(function(s){switch(s.label){case 0:return n&&this._clear(e),i=function(e,t,n){var r,i,o=No(e);try{var s=n.getItem(o);i=s?JSON.parse(s):[]}catch(e){i=[]}var a=Date.now();return i.length>0&&(i=i.filter((function(e){return a-e.timestamp<72e5}))),0===i.length?n.removeItem(o):n.setItem(o,JSON.stringify(i)),(null===(r=i.find((function(e){return e.token===t})))||void 0===r?void 0:r.naviInfo)||null}(this._appkey,e,this.runtime.localStorage),i?[2,i]:(o=this._options.navigators.slice(),t.length&&t.forEach((function(e){o.indexOf(e)<0&&o.unshift(e)})),[4,this.requestNaviInfo(o,this._appkey,e,r)]);case 1:return(i=s.sent())?(this.setNaviInfo2Cache(e,i),[2,i]):[2,i]}}))}))},e.prototype.setNaviInfo2Cache=function(e,t){Eo(this._appkey,e,t,this.runtime.localStorage)},e.prototype._clear=function(e){!function(e,t,n){var r,i=No(e);try{var o=n.getItem(i);r=o?JSON.parse(o):[]}catch(e){r=[]}var s=Date.now();r.length>0&&(r=r.filter((function(e){return s-e.timestamp<72e5&&t!==e.token}))),0===r.length?n.removeItem(i):n.setItem(i,JSON.stringify(r))}(this._appkey,e,this.runtime.localStorage)},e.prototype.joinRTCRoom=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var s,a,c,u,l;return M(this,(function(f){switch(f.label){case 0:return s=Oo(this.rtcCodec,t,n,r,i,o),[4,this.rtcSignaling(e,Ji,!0,s)];case 1:return a=f.sent(),c=a.code,u=a.buffer,c===L.SUCCESS&&u&&(l=Do(this.rtcCodec,u)),[2,{code:c,data:l}]}}))}))},e.prototype.quitRTCRoom=function(e){return I(this,void 0,void 0,(function(){var t;return M(this,(function(n){switch(n.label){case 0:return t=this.rtcCodec.encode(qi.SetUserStatusInput,{status:0}),[4,this.rtcSignaling(e,Xi,!0,t)];case 1:return[2,n.sent().code]}}))}))},e.prototype.getRTCRoomInfo=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o;return M(this,(function(s){switch(s.label){case 0:return t=this.rtcCodec.encode(qi.RtcQueryListInput,{order:2}),[4,this.rtcSignaling(e,eo,!0,t)];case 1:return n=s.sent(),r=n.code,i=n.buffer,r===L.SUCCESS&&i&&(o=this.rtcCodec.decode(qi.RtcRoomInfoOutput,i)),[2,{code:r,data:o}]}}))}))},e.prototype.getRTCUserInfoList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s;return M(this,(function(a){switch(a.label){case 0:return t=this.rtcCodec.encode(qi.RtcQueryListInput,{order:2}),[4,this.rtcSignaling(e,to,!0,t)];case 1:return n=a.sent(),r=n.code,i=n.buffer,r===L.SUCCESS&&i&&(s=Do(this.rtcCodec,i),o={users:s.users}),[2,{code:r,data:o}]}}))}))},e.prototype.getRTCUserInfo=function(e){throw new Error("Method not implemented.")},e.prototype.setRTCUserInfo=function(e,t,n){return I(this,void 0,void 0,(function(){var r;return M(this,(function(i){switch(i.label){case 0:return r=this.rtcCodec.encode(qi.RtcValueInfo,{key:t,value:n}),[4,this.rtcSignaling(e,no,!0,r)];case 1:return[2,i.sent().code]}}))}))},e.prototype.removeRTCUserInfo=function(e,t){return I(this,void 0,void 0,(function(){var n;return M(this,(function(r){switch(r.label){case 0:return n=this.rtcCodec.encode(qi.RtcKeyDeleteInput,{key:t}),[4,this.rtcSignaling(e,ro,!1,n)];case 1:return[2,r.sent().code]}}))}))},e.prototype.setRTCData=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var s;return M(this,(function(a){switch(a.label){case 0:return s=this.rtcCodec.encode(qi.RtcSetDataInput,{interior:r,target:i,key:t,value:n,objectName:null==o?void 0:o.name,content:null==o?void 0:o.content}),[4,this.rtcSignaling(e,io,!1,s)];case 1:return[2,a.sent().code]}}))}))},e.prototype.setRTCTotalRes=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){var o,s;return M(this,(function(a){switch(a.label){case 0:return o={objectName:r,content:this.rtcCodec.encode(qi.RtcValueInfo,{key:t.name,value:t.content},!0),valueInfo:[this.rtcCodec.encode(qi.RtcValueInfo,{key:"uris",value:n},!0),this.rtcCodec.encode(qi.RtcValueInfo,{key:"mcu_uris",value:i},!0)]},s=this.rtcCodec.encode(qi.RtcUserSetDataInput,o),[4,this.rtcSignaling(e,oo,!0,s)];case 1:return[2,a.sent().code]}}))}))},e.prototype.getRTCData=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u;return M(this,(function(l){switch(l.label){case 0:return i=this.rtcCodec.encode(qi.RtcDataInput,{interior:n,target:r,key:t}),[4,this.rtcSignaling(e,so,!0,i)];case 1:return o=l.sent(),s=o.code,a=o.buffer,s===L.SUCCESS&&a?(c=this.rtcCodec.decode(qi.RtcQryOutput,a).outInfo,u={},c.forEach((function(e){u[e.key]=e.value})),[2,{code:s,data:u}]):[2,{code:s}]}}))}))},e.prototype.removeRTCData=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){var o;return M(this,(function(s){switch(s.label){case 0:return o=this.rtcCodec.encode(qi.RtcDataInput,{interior:n,target:r,key:t,objectName:null==i?void 0:i.name,content:null==i?void 0:i.content}),[4,this.rtcSignaling(e,ao,!1,o)];case 1:return[2,s.sent().code]}}))}))},e.prototype.setRTCOutData=function(e,t,n,r){return I(this,void 0,void 0,(function(){return M(this,(function(e){throw new Error("JSEngine's method not implemented.")}))}))},e.prototype.getRTCOutData=function(e,t){return I(this,void 0,void 0,(function(){return M(this,(function(e){throw new Error("JSEngine's method not implemented.")}))}))},e.prototype.getRTCToken=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a;return M(this,(function(c){switch(c.label){case 0:return r=Oo(this.rtcCodec,t,n),[4,this.rtcSignaling(e,co,!0,r)];case 1:return i=c.sent(),o=i.code,s=i.buffer,o===L.SUCCESS&&s?(a=this.rtcCodec.decode(qi.RtcTokenOutput,s).rtcToken,[2,{code:o,data:{rtcToken:a}}]):[2,{code:o}]}}))}))},e.prototype.setRTCState=function(e,t){return I(this,void 0,void 0,(function(){var n;return M(this,(function(r){switch(r.label){case 0:return n=this.rtcCodec.encode(qi.MCFollowInput,{state:t}),[4,this.rtcSignaling(e,uo,!0,n)];case 1:return[2,r.sent().code]}}))}))},e.prototype.getRTCUserList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o;return M(this,(function(s){switch(s.label){case 0:return t=this.rtcCodec.encode(qi.RtcQueryListInput,{order:2}),[4,this.rtcSignaling(e,lo,!0,t)];case 1:return n=s.sent(),r=n.code,i=n.buffer,r===L.SUCCESS&&i?(o=Do(this.rtcCodec,i),[2,{code:r,data:o}]):[2,{code:r}]}}))}))},e.prototype.joinLivingRoomAsAudience=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c,u;return M(this,(function(l){switch(l.label){case 0:return r=Oo(this.rtcCodec,t,n),[4,this.rtcSignaling(e,fo,!0,r)];case 1:return i=l.sent(),o=i.code,s=i.buffer,o===L.SUCCESS&&s?(a=this.rtcCodec.decode(qi.RtcViewerJoinedOutput,s),c=a.rtcToken,u=a.entries,[2,{code:o,data:{token:c,kvEntries:u}}]):[2,{code:o}]}}))}))},e.prototype.pullRTCRoomEntry=function(e,t){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return M(this,(function(c){switch(c.label){case 0:return t=this.rtcCodec.encode(qi.RtcPullKV,{timestamp:0,roomId:e}),[4,this.rtcSignaling(e,po,!0,t)];case 1:return n=c.sent(),r=n.code,i=n.buffer,r!==L.SUCCESS?[2,{code:r}]:(o=this.rtcCodec.decode(qi.RtcKVOutput,i),s=o.entries,o.bFullUpdate,a=o.syncTime,s=(s||[]).map((function(e){return m(m({},e),{timestamp:Dt(e.timestamp)})})),this._watcher.onRTCDataChange(s,e),[2,{code:r,data:{kvEntries:s,syncTime:a}}])}}))}))},e.prototype.quitLivingRoomAsAudience=function(e){return I(this,void 0,void 0,(function(){var t,n;return M(this,(function(r){switch(r.label){case 0:return t=this.rtcCodec.encode(qi.SetUserStatusInput,{status:0}),[4,this.rtcSignaling(e,ho,!0,t)];case 1:return n=r.sent().code,this._rtcKVManager.reset(),[2,n]}}))}))},e.prototype.rtcIdentityChange=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a;return M(this,(function(c){switch(c.label){case 0:return r=this.rtcCodec.encode(qi.RtcInput,{roomType:ae.LIVE,broadcastType:n,identityChangeType:t,needSysChatroom:!1}),[4,this.rtcSignaling(e,go,!0,r)];case 1:return i=c.sent(),o=i.code,s=i.buffer,o===L.SUCCESS&&s?(a=Do(this.rtcCodec,s),[2,{code:o,data:a}]):[2,{code:o}]}}))}))},e.prototype.getRTCJoinedUserInfo=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o;return M(this,(function(s){switch(s.label){case 0:return t=this.rtcCodec.encode(qi.RtcQueryUserJoinedInput,{userId:e}),[4,this.rtcSignaling("",Mo,!0,t)];case 1:return n=s.sent(),r=n.code,i=n.buffer,r===L.SUCCESS&&i?(o=this.rtcCodec.decode(qi.RtcQueryUserJoinedOutput,i).info||[],[2,{code:r,data:o.map((function(e){return{deviceId:e.deviceId,roomId:e.roomId,joinTime:Dt(e.joinTime)}}))}]):[2,{code:r}]}}))}))},e.prototype.setRTCCDNUris=function(e,t,n){return I(this,void 0,void 0,(function(){var r;return M(this,(function(i){switch(i.label){case 0:return r=this.rtcCodec.encode(qi.RtcUserSetDataInput,{objectName:t,valueInfo:this.rtcCodec.encode(qi.RtcValueInfo,{key:"cdn_uris",value:n},!0)}),[4,this.rtcSignaling(e,oo,!0,r)];case 1:return[2,i.sent().code]}}))}))},e.prototype.requestRoomPK=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c;return M(this,(function(u){switch(u.label){case 0:return t=e.invitedRoomId,n=e.invitedUserId,r=e.inviteSessionId,i=e.inviteTimeout,o=e.inviteInfo,s=e.roomId,a=this.rtcCodec.encode(qi.RtcInviteInput,{invitedRoomId:t,invitedUserId:n,inviteSessionId:r,timeoutTime:i,inviteInfo:o}),[4,this.rtcSignaling(s,vo,!0,a)];case 1:return c=u.sent().code,this._rtcKVManager.reset(),[2,c]}}))}))},e.prototype.cancelRoomPK=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return M(this,(function(c){switch(c.label){case 0:return t=e.invitedRoomId,n=e.invitedUserId,r=e.inviteSessionId,i=e.inviteInfo,o=e.roomId,s=this.rtcCodec.encode(qi.RtcCancelInviteInput,{invitedRoomId:t,invitedUserId:n,inviteSessionId:r,inviteInfo:i}),[4,this.rtcSignaling(o,yo,!0,s)];case 1:return a=c.sent().code,this._rtcKVManager.reset(),[2,a]}}))}))},e.prototype.responseRoomPK=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l;return M(this,(function(f){switch(f.label){case 0:return t=e.inviteUserId,n=e.inviteRoomId,r=e.inviteSessionId,i=e.content,o=e.key,s=e.value,a=e.agree,c=e.roomId,u=this.rtcCodec.encode(qi.RtcInviteAnswerInput,{inviteUserId:t,inviteRoomId:n,inviteSessionId:r,content:i,key:o,value:s,answerCode:a?1:0}),[4,this.rtcSignaling(c,mo,!0,u)];case 1:return l=f.sent().code,this._rtcKVManager.reset(),[2,l]}}))}))},e.prototype.endRoomPK=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return M(this,(function(c){switch(c.label){case 0:return t=e.endRoomId,n=e.sessionId,r=e.content,i=e.keys,o=e.roomId,s=this.rtcCodec.encode(qi.RtcEndInviteInput,{inviteRoomId:t,inviteSessionId:n,inviteContent:r,inviteRoomKeys:i}),[4,this.rtcSignaling(o,Io,!0,s)];case 1:return a=c.sent().code,this._rtcKVManager.reset(),[2,a]}}))}))},e.prototype._receiveRtcKv=function(e){if(this._rtcSignalingListener)this._rtcSignalingListener(e);else{var t=this.rtcCodec.decode(qi.RtcNotifyMsg,e),n=t.time,r=t.type,i=t.roomId;1===r&&this._rtcKVManager.pullEntry(i,n)}},e}(),Ro=function(e){this.pbmaps=e},jo=function(e){function t(t,n){var r=e.call(this,t)||this;return r.codec=jr(n),r}return y(t,e),t.prototype.getModule=function(e){return new this.codec[e]},t.prototype.encode=function(e,t,n){var r=new this.codec[e];if(t)try{this.pbmaps[e].forEach((function(e){var n=t[e];void 0!==n&&r["set".concat(A(e,0,1))](n)}))}catch(t){nt(K.L_PB_ENCODE_E,{pbname:e})}return n?r:r.toArrayBuffer()},t.prototype.decode=function(e,t){return this.codec[e].decode(t)},t}(Ro),xo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.encode=function(e,t){var n=this.pbmaps[e],r={};return t&&n.forEach((function(e){void 0!==t[e]&&(r[e]=t[e])})),r},t.prototype.decode=function(e,t){try{return JSON.parse(t)}catch(o){nt(K.L_PB_DECODE_E,{pbname:e,data:t})}},t}(Ro),ko=!1,Uo=[],Po=function(){function e(e){this._context=e}return e.prototype.refetchNaviInfo=function(){return I(this,void 0,void 0,(function(){var e;return M(this,(function(t){switch(t.label){case 0:return ko?[2,new Promise((function(e){Uo.push(e)}))]:(ko=!0,[4,this._context.reqNaviInfo(!0)]);case 1:return e=t.sent(),Uo.forEach((function(t){return t(e)})),Uo.length=0,ko=!1,[2,e]}}))}))},e.prototype.__getContext=function(){return this._context},e.prototype.createCodec=function(e,t){return this._context.createCodec(e,t)},e.prototype.getNaviInfo=function(){return this._context.getInfoFromCache()},e.prototype.getCoreVersion=function(){return this._context.coreVersion},e.prototype.getAPIVersion=function(){return this._context.apiVersion},e.prototype.getAppkey=function(){return this._context.appkey},e.prototype.getCurrentId=function(){return this._context.getCurrentUserId()},e.prototype.getConnectionStatus=function(){return this._context.getConnectionStatus()},e.prototype.getDeviceId=function(){return this._context.getDeviceId()},e.prototype.sendMessage=function(e,t,n){return this._context.sendMessage(e,t,n)},e.prototype.registerMessageType=function(e,t,n,r){void 0===r&&(r=[]),this._context.registerMessageType(e,t,n,r)},e.prototype.getServerTime=function(){return this._context.getServerTime()},e.prototype.getOSInfo=function(){return this._context.getOSInfo()},e.prototype.getProcessInfo=function(){return this._context.getProcessInfo()},e.prototype.getMainProcessInfo=function(){return this._context.getMainProcessInfo()},e}(),zo=function(e,t,n){return[e,t,n].join("_")},Go=function(){function e(e,t){this._runtime=e,this._appkey=t,this._users={}}return e.prototype._getMemData=function(e){return this._users[e]=this._users[e]||{inboxTime:0,outboxTime:0,broadcastSyncTime:0},this._users[e]},e.prototype.setInboxTime=function(e,t){var n=this._getMemData(t);if(!(n.inboxTime>e)){n.inboxTime=e;var r=zo("inbox",this._appkey,t);this._runtime.localStorage.setItem(r,e.toString())}},e.prototype.getInboxTime=function(e){var t=this._getMemData(e);if(0===t.inboxTime){var n=zo("inbox",this._appkey,e);t.inboxTime=parseInt(this._runtime.localStorage.getItem(n),10)||0}return t.inboxTime},e.prototype.setBroadcastSyncTime=function(e,t){var n=this._getMemData(t);if(!(n.broadcastSyncTime>=e||Ae(e))){n.broadcastSyncTime=e;var r=zo("broadcastbox",this._appkey,t);this._runtime.localStorage.setItem(r,e.toString())}},e.prototype.getBroadcastSyncTime=function(e){var t=this._getMemData(e);if(!t||0===t.broadcastSyncTime){var n=zo("broadcastbox",this._appkey,e);t.broadcastSyncTime=parseInt(this._runtime.localStorage.getItem(n),10)||1}return t.broadcastSyncTime},e.prototype.setOutboxTime=function(e,t){var n=this._getMemData(t);if(!(n.outboxTime>=e)){n.outboxTime=e;var r=zo("outbox",this._appkey,t);this._runtime.localStorage.setItem(r,e.toString())}},e.prototype.getOutboxTime=function(e){var t=this._getMemData(e);if(0===t.outboxTime){var n=zo("outbox",this._appkey,e);t.outboxTime=parseInt(this._runtime.localStorage.getItem(n),10)||0}return t.outboxTime},e}(),Bo={_caches:{},set:function(e,t){this._caches[e]=t},get:function(e){return this._caches[e]||0},clear:function(e){this._caches[e]=0}},Yo=function(){function e(e,t){this._kvCaches={},this._chatroomId=e,this._currentUserId=t}return e.prototype._add=function(e){var t=e.key;e.isDeleted=!1,this._kvCaches[t]=e},e.prototype._remove=function(e){var t=e.key,n=this._kvCaches[t];n&&(n.isDeleted=!0,this._kvCaches[t]=n)},e.prototype._setEntry=function(e,t){var n=e.key,r=e.type,i=e.isOverwrite,o=e.userId,s=this._getSetUserId(n),a=r===J.DELETE,c=s===o,u=!this._isExisted(n),l=a?this._remove:this._add;(t||i||c||u)&&l.call(this,e)},e.prototype.getValue=function(e){var t=this._kvCaches[e]||{};return t.isDeleted?null:t.value},e.prototype.getVersion=function(e){var t=this._kvCaches[e]||{};return t.isDeleted?null:t.version},e.prototype.getAllValue=function(){var e={};for(var t in this._kvCaches)this._kvCaches[t].isDeleted||(e[t]=this._kvCaches[t].value);return e},e.prototype._getSetUserId=function(e){return(this._kvCaches[e]||{}).userId},e.prototype._isExisted=function(e){var t=this._kvCaches[e]||{},n=t.value,r=t.isDeleted;return n&&!r},e.prototype.setEntries=function(e){var t=this,n=e.kvEntries,r=e.isFullUpdate;n=n||[],(r=r||!1)&&this.clear(),n.forEach((function(e){t._setEntry(e,r)})),vt.debug("end setEntries")},e.prototype.clear=function(){this._kvCaches={}},e}(),Ho=function(){function e(e){this._pullQueue=[],this._isPulling=!1,this._storeCaches={},this._engine=e}return e.prototype._startPull=function(){return I(this,void 0,void 0,(function(){var e,t,n,r,i,o,s;return M(this,(function(a){switch(a.label){case 0:return this._isPulling||0===this._pullQueue.length?[2]:(this._isPulling=!0,e=this._pullQueue.splice(0,1)[0],t=e.chrmId,n=e.timestamp,(r=Bo.get(t))>n?(this._isPulling=!1,this._startPull(),[2]):[4,this._engine.pullChatroomEntry(t,r)]);case 1:return i=a.sent(),o=i.code,s=i.data,this._isPulling=!1,o===L.SUCCESS?(Bo.set(t,s.syncTime||0),this._startPull()):this._startPull(),[2]}}))}))},e.prototype.reset=function(e){Bo.clear(e);var t=this._storeCaches[e];null==t||t.clear()},e.prototype.pullEntry=function(e,t){this._pullQueue.push({chrmId:e,timestamp:t}),this._startPull()},e.prototype.setLocal=function(e,t,n){var r=this._storeCaches[e];Ne(r)||(r=new Yo(e,n)),r.setEntries(t),this._storeCaches[e]=r},e.prototype.getValue=function(e,t){var n=this._storeCaches[e];return n?n.getValue(t):null},e.prototype.getVersion=function(e,t){var n=this._storeCaches[e];return n?n.getVersion(t):null},e.prototype.getAll=function(e){var t=this._storeCaches[e],n={};return t&&(n=t.getAllValue()),n},e}(),$o=function(){function e(e,t,n,r){this._runtime=e,this._appkey=t,this._userId=n,this._canJoinMulipleChrm=r,this._sessionKey="",this._joinedChrmsInfo={},this._sessionKey="sync-chrm-".concat(this._appkey,"-").concat(this._userId)}return e.prototype.set=function(e,t){void 0===t&&(t=10),this._canJoinMulipleChrm||(this._joinedChrmsInfo={}),this._joinedChrmsInfo[e]=t,this._runtime.sessionStorage.setItem(this._sessionKey,JSON.stringify(this._joinedChrmsInfo))},e.prototype.get=function(){var e,t;try{t=this._runtime.sessionStorage.getItem(this._sessionKey),e=JSON.parse(t||"{}")}catch(o){vt.error("parse rejoined chrm infos error -> ".concat(t)),e={}}return e},e.prototype.remove=function(e){delete this._joinedChrmsInfo[e],Ne(this._joinedChrmsInfo)?this._runtime.sessionStorage.setItem(this._sessionKey,JSON.stringify(this._joinedChrmsInfo)):this.clear()},e.prototype.clear=function(){this._joinedChrmsInfo={},this._runtime.sessionStorage.removeItem(this._sessionKey)},e}(),Fo="converStatusChanged",Qo=function(){function e(e,t,n){this._eventEmitter=new yt,this._pullQueue=[],this._isPulling=!1,this._storagePullTimeKey="con-s-".concat(t,"-").concat(n),this._oldStorage=h(e.runtime),this._storage=new p(e.runtime,this._storagePullTimeKey),this._appkey=t,this._currentUserId=n,this._engine=e,this.adaptOldStatus()}return e.prototype.adaptOldStatus=function(){try{if(this._storage.get(this._storagePullTimeKey))return;var e=this._oldStorage.get(this._storagePullTimeKey)||0;if(!e)return;this._storage.set(this._storagePullTimeKey,e),this._oldStorage.remove(this._storagePullTimeKey)}catch(e){nt(K.A_CALLBACK_E,"adaptOldStatus error: ".concat(e.message))}},e.prototype._set=function(e){var t=this;if(!Ae(e)&&Array.isArray(e)){var n=this._storage.get(this._storagePullTimeKey)||0,r=e.length;e.forEach((function(e,i){var o=e.updatedTime||0;n=o>n?o:n,e.conversationType=e.type,t._eventEmitter.emit(Fo,{statusItem:e,isLastPull:i===r-1})})),this._storage.set(this._storagePullTimeKey,n)}},e.prototype._startPull=function(){return I(this,void 0,void 0,(function(){var e,t,n,r;return M(this,(function(i){switch(i.label){case 0:return this._isPulling||0===this._pullQueue.length?[2]:(this._isPulling=!0,e=this._pullQueue.splice(0,1)[0],[4,this._engine.pullConversationStatus(e)]);case 1:return t=i.sent(),n=t.code,r=t.data,n===L.SUCCESS?(this._isPulling=!1,this._set(r),this._startPull()):this._startPull(),[2]}}))}))},e.prototype.pull=function(e){var t=this._storage.get(this._storagePullTimeKey)||0;(e>t||0===e)&&(this._pullQueue.push(t),this._startPull())},e.prototype.watch=function(e){this._eventEmitter.on(Fo,(function(t){e(t)}))},e.prototype.setConversationUpdatedTime=function(e){var t=this._storage.get(this._storagePullTimeKey)||0;return e&&e>t?(this._storage.set(this._storagePullTimeKey,e),e):t},e.prototype.getConversationUpdatedTime=function(){return this._storage.get(this._storagePullTimeKey)||0},e}(),Vo={c:{keyName:"unreadMessageCount",defaultVal:0},hm:{keyName:"hasMentioned",defaultVal:!1},m:{keyName:"mentionedInfo",defaultVal:null},t:{keyName:"lastUnreadTime",defaultVal:0},lt:{keyName:"lastReadTime",defaultVal:0},nc:{keyName:"notificationStatus",defaultVal:2},nl:{keyName:"notificationLevel",defaultVal:0},to:{keyName:"isTop",defaultVal:!1},tg:{keyName:"tags",defaultVal:{}},mc:{keyName:"unreadMentionedCount",defaultVal:0}},Zo={};for(var Wo in Vo){var Ko=Vo[Wo].keyName;Zo[Ko]=Wo}var qo,Jo=function(){function e(e,t,n){this._appkey=t,this._currentUserId=n;var r="con-".concat(t,"-").concat(n);this.storage=new p(e,r),this._localStore=new p(e,"CONVER-".concat(t,"-").concat(n))}return e.prototype._getStoreKey=function(e,t,n){return"".concat(n,"_").concat(e,"_").concat(t)},e.prototype._getConOptionByKey=function(e){var t=(e=e||"").split("_");if(t.length>=2){var n=t.shift(),r=t.shift(),i=t.join("_");return{conversationType:Number(r),targetId:i,channelId:n}}return{conversationType:j.PRIVATE,targetId:"",channelId:""}},e.prototype.updateMentionedData=function(e){var t=this,n=e.conversationType,r=e.targetId,i=e.messageType,o=e.isMentioned,s=e.content,a=e.senderUserId,c=e.channelId,u=this._getStoreKey(n,r,c),l=this._localStore.get(u)||{},f=Zo.mentionedInfo,h=Zo.hasMentioned,d=l[f]||{},p=d.userIdList||[],g=s.mentionedInfo;if(g){if(o&&n===j.GROUP&&((g.userIdList||[]).forEach((function(e){e===t._currentUserId&&p.indexOf(a)<0&&p.push(a)})),g.type===F.ALL&&p.indexOf(a)<0&&p.push(a)),i===z.RECALL&&n===j.GROUP){var v=p.indexOf(a);v>=0&&p.splice(v,1)}g={userIdList:p,type:(null==g?void 0:g.type)||d.type},0!==p.length?(l[f]=g,l[h]=!0):(delete l[f],delete l[h]),Ne(l)?this._localStore.set(u,l):this._localStore.remove(u)}},e.prototype.set=function(e,t,n,r){var i=this._getStoreKey(e,t,r),o=this._localStore.get(i)||{};for(var s in n){var a=Zo[s],c=n[s];if(!Ae(a)&&!Ae(c)&&"hasMentioned"!==s&&"MentionedInfo"!==s){if(c===Vo[a].defaultVal||"tags"===s&&!Ne(c))delete o[a];else if("tags"===s){var u=c;for(var l in u)u[l].isTop||delete u[l].isTop;o[a]=c}else o[a]=c;o.c||(delete o.t,delete o.hm,delete o.m,delete o.mc)}}Ne(o)?this._localStore.set(i,o):this._localStore.remove(i)},e.prototype.get=function(e,t,n){void 0===n&&(n="");var r=this._getStoreKey(e,t,n),i=this._localStore.get(r)||{},o={};for(var s in Vo){var a=Vo[s],c=a.keyName,u=a.defaultVal;o[c]=i[s]||Yt(u)}return o},e.prototype.getValue=function(e){var t=this._localStore.getValues()||{},n=[];for(var r in t){var i=this._getConOptionByKey(r),o={conversationType:i.conversationType,targetId:i.targetId,channelId:i.channelId},s=t[r];for(var a in s)if(Vo[a]){var c=Vo[a],u=c.keyName,l=c.defaultVal;o[u]=s[a]||Yt(l)}o=e?e(o):o,n.push(o)}return n},e.prototype.getValueForTag=function(){var e=this._localStore.getValues()||{},t={};for(var n in e){var r=this._getConOptionByKey(n),i=r.conversationType,o=r.targetId,s={},a=e[n];for(var c in a){var u=Vo[c],l=u.keyName,f=u.defaultVal;s[l]=a[c]||Yt(f)}for(var h in s.tags){Ae(t[h])&&(t[h]=[]);var d=m(m({},s),{conversationType:i,targetId:o});delete d.tags,t[h].push(d)}}return t},e.prototype.adaptOldStore=function(){try{var e=this.storage.getValues();if(0===Object.keys(e).length)return;for(var t in e){var n="_".concat(t);this._localStore.set(n,e[t])}this.storage.clear()}catch(e){vt.error("adaptOldStore error: ".concat(e.message))}},e}(),Xo=[j.PRIVATE,j.GROUP,j.SYSTEM,j.PUBLIC_SERVICE,j.APP_PUBLIC_SERVICE],es="conversationChanged",ts="conTagStatusChanged",ns=function(){function e(e,t,n,r,i){var o=this;this._updatedConversations={},this._conTagStatusChanged=!1,this._eventEmitter=new yt,this._draftMap={},this._recallMsgTimeMap={},this._appkey=t,this._loginUserId=n,this._store=new Jo(e.runtime,t,n),this._statusManager=new Qo(e,t,n),this._statusManager.watch((function(e){var t=e.statusItem,n=e.isLastPull;o.addStatus(t,n)})),this._eventEmitter.on(es,(function(e){r(e)})),this._eventEmitter.on(ts,(function(){i()}))}return e.prototype._calcUnreadCount=function(e,t){var n=e.content,r=e.messageType,i=e.sentTime,o=e.isCounted,s=e.messageDirection,a=e.senderUserId,c=s===O.SEND&&a===this._loginUserId,u=r===z.RECALL,l=Ce(n),f=!1,h={},d=t.lastUnreadTime||0,p=t.lastReadTime||0,g=t.unreadMessageCount||0;if(d>i||c)return{hasChanged:f,localConversation:t,updateItems:h};if(o&&(t.unreadMessageCount=g+1,t.lastUnreadTime=i,f=!0),u&&l){var v="".concat(e.conversationType,"_").concat(e.channelId,"_").concat(e.targetId),y=!this._recallMsgTimeMap[v]||this._recallMsgTimeMap[v]&&!this._recallMsgTimeMap[v].find((function(e){return e===n.sentTime})),m=d>=n.sentTime;p&&(m=p<n.sentTime),m&&g&&y&&(this._recallMsgTimeMap[v]||(this._recallMsgTimeMap[v]=[]),this._recallMsgTimeMap[v].push(n.sentTime),t.unreadMessageCount=g-1,f=!0)}return f&&(h.unreadMessageCount={val:t.unreadMessageCount,time:i}),{hasChanged:f,localConversation:t,updateItems:h}},e.prototype._calcMentionedInfo=function(e,t){var n=e.content,r=(e.messageDirection,e.isMentioned),i=e.sentTime;O.SEND;var o=Ce(n),s=!1,a={};return r&&o&&n.mentionedInfo&&(t.hasMentioned=!0,s=!0,a.hasMentioned={val:!0,time:i},a.mentionedInfo={val:n.mentionedInfo,time:i}),{hasChanged:s,localConversation:t,updateItems:a}},e.prototype._calcMentionedCount=function(e,t){var n=e.content,r=e.messageDirection,i=!1;if(e.isMentioned&&r===O.RECEIVE&&(null==n?void 0:n.mentionedInfo)){var o=n.mentionedInfo,s=o.type,a=o.userIdList;if(s===F.ALL||(a||[]).includes(this._loginUserId)){i=!0;var c=t.unreadMentionedCount||0;t.unreadMentionedCount=c+1}}return{hasChanged:i,localConversation:t}},e.prototype._setUpdatedConversation=function(e){if(Ce(e)){var t=e.conversationType,n=e.targetId,r=e.channelId,i="".concat(t,"_").concat(n),o=this._store.get(t,n,r)||{};this._updatedConversations[i]=Object.assign(o,e)}},e.prototype._setConTagStatusChanged=function(e,t,n,r){var i=(this._store.get(e,t,r)||{}).tags||{};if(Object.keys(i).length===Object.keys(n).length){for(var o in i)if(!n[o]||!!i[o].isTop!=!!n[o].isTop)return void(this._conTagStatusChanged=!0)}else this._conTagStatusChanged=!0},e.prototype.addStatus=function(e,t){var n=e.conversationType,r=e.targetId,i=e.updatedTime,o=e.notificationStatus,s=e.notificationLevel,a=e.isTop,c=e.tags,u=e.channelId,l={},f={};n!==j.ULTRA_GROUP&&(Ae(o)||(f.notificationStatus={time:i,val:o}),Ae(s)||(f.notificationLevel={time:i,val:s}),Ae(a)||(f.isTop={time:i,val:a}),Ae(c)||(f.tags={time:i,val:c},null==c||c.forEach((function(e){l[e.tagId]={isTop:e.isTop}}))),this._setConTagStatusChanged(n,r,l,u),this._store.set(n,r,{notificationStatus:o,notificationLevel:s,isTop:a,tags:l},u),this._setUpdatedConversation({conversationType:n,targetId:r,updatedItems:f,channelId:u}),t&&this._notifyConversationChanged())},e.prototype._notifyConversationChanged=function(){var e=[];for(var t in this._updatedConversations)e.push(this._updatedConversations[t]);0!==e.length&&(this._eventEmitter.emit(es,e),this._updatedConversations={},this._conTagStatusChanged&&(this._eventEmitter.emit(ts),this._conTagStatusChanged=!1))},e.prototype.setConversationCacheByMessage=function(e,t){var n=this,r=e.conversationType,i=e.isPersited,o=e.targetId,s=e.channelId;if(Xo.indexOf(r)>=0){var a=!1,c=this._store.get(r,o,s),u={};if([this._calcUnreadCount,this._calcMentionedInfo,this._calcMentionedCount].forEach((function(t){var r=t.call(n,e,c),i=r.hasChanged,o=r.localConversation,s=r.updateItems;a=a||i,u=m(m({},u),s),c=Yt(o)})),a&&this._store.set(r,o,c,s),this._store.updateMentionedData(e),i){var l=this._store.get(r,o,s);l.updatedItems=m({latestMessage:{time:e.sentTime,val:e}},u),l.latestMessage=e;var f=Object.assign(l,{conversationType:r,targetId:o,channelId:s});this._setUpdatedConversation(f)}(a||i)&&this._notifyConversationChanged()}},e.prototype.get=function(e,t,n){return void 0===n&&(n=""),this._store.get(e,t,n)},e.prototype.getAllUnreadCount=function(e,t,n){var r=this._store.getValue(),i=0;return r.forEach((function(e){var r=e.unreadMessageCount,o=e.notificationStatus,s=e.notificationLevel,a=e.conversationType;r=r||0,(n||1!==o||s===H.NOT_SET||s===H.ALL_MESSAGE)&&(t.length>0?t.includes(Number(a))&&(i+=Number(r)):i+=Number(r))})),i},e.prototype.getTotalUnreadCountByLevels=function(e,t,n){var r=this._store.getValue(),i=0;return r.forEach((function(r){var o=r.unreadMessageCount,s=r.notificationLevel,a=void 0===s?0:s,c=r.conversationType,u=r.unreadMentionedCount;e.includes(c)&&(0===t.length||t.includes(a))&&(i+=(n?u:o)||0)})),i},e.prototype.getUnreadCountByTag=function(e,t){var n=this._store.getValueForTag()[e]||[],r=0;return n.forEach((function(e){var n=e.unreadMessageCount,i=e.notificationStatus,o=e.notificationLevel;(t||1!==i||-1===o||0===o)&&(n=n||0,r+=Number(n))})),r},e.prototype.getUnreadCount=function(e,t,n){return this._store.get(e,t,n).unreadMessageCount||0},e.prototype.clearUnreadCount=function(e,t,n,r){void 0===r&&(r=!0);var i=this._store.get(e,t,n);i.lastReadTime=i.lastUnreadTime,this._recallMsgTimeMap["".concat(e,"_").concat(n,"_").concat(t)]=[];var o=i.unreadMessageCount,s=i.hasMentioned,a={};if(o&&(i.unreadMessageCount=0,a.unreadMessageCount={val:0,time:Date.now()}),s&&(i.hasMentioned=!1,i.unreadMentionedCount=0,i.mentionedInfo=void 0,a.hasMentioned={val:!1,time:Date.now()},a.mentionedInfo={val:void 0,time:Date.now()}),this._store.set(e,t,i,n),r&&0!==Object.keys(a).length){var c=Object.assign(i,{conversationType:e,targetId:t,channelId:n,updatedItems:a});this._setUpdatedConversation(c),this._notifyConversationChanged()}},e.prototype.clearAllUnreadCount=function(){var e=this;this._store.getValue().forEach((function(t){t.unreadMessageCount&&(t.unreadMessageCount=0,t.lastReadTime=t.lastUnreadTime,e._recallMsgTimeMap={},e._store.set(t.conversationType,t.targetId,t,t.channelId))}))},e.prototype.startPullConversationStatus=function(e){this._statusManager.pull(e)},e.prototype.setDraft=function(e,t,n,r){var i="".concat(e,"_").concat(t,"_").concat(r);this._draftMap[i]=n},e.prototype.getDraft=function(e,t,n){var r="".concat(e,"_").concat(t,"_").concat(n);return this._draftMap[r]},e.prototype.clearDraft=function(e,t,n){var r="".concat(e,"_").concat(t,"_").concat(n);delete this._draftMap[r]},e.prototype.addTagStatus=function(e,t,n,r){void 0===r&&(r="");var i=this._store.get(e,t,r).tags;i=Object.assign(i,n),this._store.set(e,t,{tags:i},r)},e.prototype.deleteTagStatus=function(e,t,n,r){void 0===r&&(r="");var i=this._store.get(e,t,r).tags;n.forEach((function(e){delete i[e]})),this._store.set(e,t,{tags:i},r)},e.prototype.getConversationListForTag=function(){return this._store.getValueForTag()},e.prototype.getBlockConversationList=function(){return this._store.getValue().filter((function(e){return e.notificationStatus===B.OPEN||-1!==e.notificationLevel&&0!==e.notificationLevel})).map((function(e){return{conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId}}))},e.prototype.getTopConversationList=function(){return(this._store.getValue()||{}).filter((function(e){return e.isTop})).map((function(e){return{conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId}}))},e.prototype.adaptOldStore=function(){this._store.adaptOldStore()},e.prototype.getUnreadMentionedCount=function(e,t,n){return void 0===e&&(e=""),this.get(t,n,e).unreadMentionedCount||0},e.prototype.getAllUnreadMentionedCount=function(){var e=this._store.getValue(),t=0;return e.forEach((function(e){var n=e.unreadMentionedCount;n=n||0,t+=Number(n)})),t},e.prototype.getAllConversationState=function(){return this._store.getValue().filter((function(e){return e.unreadMessageCount||e.unreadMentionedCount})).map((function(e){return{conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId,unreadCount:e.unreadMessageCount||0,unreadMentionedCount:e.unreadMentionedCount||0}}))},e.prototype.setConversationUpdatedTime=function(e){return this._statusManager.setConversationUpdatedTime(e)},e.prototype.getConversationUpdatedTime=function(){return this._statusManager.getConversationUpdatedTime()},e}(),rs=function(){function e(e,t,n,r){this._pullQueue=[],this._isPulling=!1,this._storageTagKey="tag-".concat(t,"-").concat(n),this._storagePullTimeKey="us-s-".concat(t,"-").concat(n),this._storage=h(e.runtime),this._engine=e,this._tagWatcherFunc=r}return e.prototype._updateTag=function(e){var t=e.tags,n={};t.forEach((function(e){n[e.tagId]={tagName:e.tagName,createdTime:e.createdTime}})),this._storage.set(this._storageTagKey,n),this._tagWatcherFunc()},e.prototype.addTag=function(e,t){var n=this._storage.get(this._storageTagKey)||{};e.forEach((function(e){var t,r=(null===(t=n[e.tagId])||void 0===t?void 0:t.createdTime)||e.createdTime||0;n[e.tagId]={tagName:e.tagName,createdTime:r}})),this._storage.set(this._storageTagKey,n),this._storage.set(this._storagePullTimeKey,t)},e.prototype.deleteTag=function(e,t){var n=this._storage.get(this._storageTagKey)||{};e.forEach((function(e){delete n[e]})),this._storage.set(this._storageTagKey,n),this._storage.set(this._storagePullTimeKey,t)},e.prototype.getTagsInfo=function(){return this._storage.get(this._storageTagKey)||{}},e.prototype.getTags=function(){var e=this._storage.get(this._storageTagKey)||{},t=[];for(var n in e)t.push({tagId:n,tagName:e[n].tagName,createdTime:e[n].createdTime,conversationCount:0});return t.sort((function(e,t){return(e.createdTime||0)-(t.createdTime||0)}))},e.prototype.getTagById=function(e){var t=this._storage.get(this._storageTagKey)||{};return t[e]?{tagId:e,tagName:t[e].tagName,createdTime:t[e].createdTime,conversationCount:0}:null},e.prototype._startPull=function(){return I(this,void 0,void 0,(function(){var e,t,n,r,i,o,s,a;return M(this,(function(c){switch(c.label){case 0:return this._isPulling||0===this._pullQueue.length?[2]:(this._isPulling=!0,e=this._pullQueue.splice(0,1)[0],[4,this._engine.pullUserSettings(e)]);case 1:return t=c.sent(),n=t.code,r=t.data,n!==L.SUCCESS||Ae(r)?(this._isPulling=!1,this._startPull()):(o=(i=r).settings,s=i.version,a=o.Tag,Ae(a)||this._updateTag(a),this._storage.set(this._storagePullTimeKey,s),this._isPulling=!1,this._startPull()),[2]}}))}))},e.prototype.pullUserSettings=function(e){var t=this._storage.get(this._storagePullTimeKey)||0;(e>t||0===e)&&(this._pullQueue.push(t),this._startPull())},e.prototype.getVersion=function(){return this._storage.get(this._storagePullTimeKey)||0},e}(),is=function(e,t){return["send_msg",e,t].join("_")},os=function(){function e(e,t){this._runtime=e,this._appkey=t,this._sendMessageMap={},this._userId=""}return e.prototype.init=function(e){this._userId=e;var t=is(this._appkey,e);this._sendMessageMap=this._getLocalInfo(t)},e.prototype._getLocalInfo=function(e){var t=this._runtime.localStorage.getItem(e);try{return t?JSON.parse(t):{}}catch(e){return{}}},e.prototype.setMessage=function(e,t){this._sendMessageMap[e]=t;var n=is(this._appkey,this._userId),r=this._getLocalInfo(n);r[e]=t,this._runtime.localStorage.setItem(n,JSON.stringify(r))},e.prototype.getSendMessageMap=function(){return this._sendMessageMap},e.prototype.removeByUID=function(e){delete this._sendMessageMap[e]},e.prototype.removeByTimestamp=function(e){var t=is(this._appkey,this._userId),n=this._getLocalInfo(t);Object.keys(n).forEach((function(t){n[t]<e&&delete n[t]})),this._runtime.localStorage.setItem(t,JSON.stringify(n))},e}();(qo={})[j.PRIVATE]=Zi.qryPMsg,qo[j.GROUP]=Zi.qryGMsg,qo[j.CHATROOM]=Zi.qryCHMsg,qo[j.CUSTOMER_SERVICE]=Zi.qryCMsg,qo[j.SYSTEM]=Zi.qrySMsg;var ss=[Zi[Zi.recallMsg],Zi[Zi.ppMsgS],Zi[Zi.pgMsgS],Zi[Zi.ppMsgP],Zi[Zi.pgMsgP],Zi[Zi.chatMsg],Zi[Zi.pcMsgP],Zi[Zi.prMsgS],Zi[Zi.updUgRTime]],as=function(){function e(e,t,n){this.ULTRA_GROUP_CONVERSATION="ultragroupconversation";var r="".concat(this.ULTRA_GROUP_CONVERSATION,"-").concat(t,"-").concat(n);this._localStore=new p(e,r)}return e.prototype.set=function(e,t,n,r){var i=this._getStoreKey(e,t,r),o=this._localStore.get(i)||{};for(var s in n){var a=us[s],c=n[s];Ae(a)||Ae(c)||(c===cs[a].defaultVal?delete o[a]:o[a]=c)}Ne(o)?this._localStore.set(i,o):this._localStore.remove(i)},e.prototype.get=function(e,t,n){void 0===n&&(n="");var r=this._getStoreKey(e,t,n),i=this._localStore.get(r)||{},o={};for(var s in cs){var a=cs[s],c=a.keyName,u=a.defaultVal;o[c]=i[s]||Yt(u)}return o},e.prototype._getStoreKey=function(e,t,n){return"".concat(n,"_").concat(e,"_").concat(t)},e}(),cs={nc:{keyName:"notificationStatus",defaultVal:2},nl:{keyName:"notificationLevel",defaultVal:0}},us={};for(var ls in cs){var fs=cs[ls].keyName;us[fs]=ls}var hs=function(){function e(e,t,n){this._store=new as(e.runtime,t,n)}return e.prototype.addUltraGroupStatus=function(e){var t=e.conversationType,n=e.targetId,r=e.notificationStatus,i=e.notificationLevel,o=e.channelId;t===j.ULTRA_GROUP&&this._store.set(t,n,{notificationStatus:r,notificationLevel:i},o)},e.prototype.get=function(e,t,n){return void 0===n&&(n=""),this._store.get(e,t,n)},e}(),ds=function(e,t,n,r,i,s,a){return{conversationType:e,targetId:t,senderUserId:s,messageDirection:O.SEND,isCounted:!!n.isCounted,isMentioned:!!n.isMentioned,content:n.content,messageType:n.messageType,isOffLineMessage:!1,isPersited:!!n.isPersited,messageUId:r,sentTime:i,receivedTime:0,disableNotification:!!n.disableNotification,isStatusMessage:!!n.isStatusMessage,canIncludeExpansion:!!n.canIncludeExpansion,expansion:n.canIncludeExpansion?n.expansion:null,receivedStatus:o.UNREAD,pushConfig:n.pushConfig,channelId:n.channelId,isInterrupt:n.isInterrupt,messageId:a||0}},ps=function(e){return e.sort((function(e,t){var n,r,i=(null===(n=e.latestMessage)||void 0===n?void 0:n.sentTime)||0;return((null===(r=t.latestMessage)||void 0===r?void 0:r.sentTime)||0)-i}))},gs=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.naviInfo=null,o._customMessageType={},o._reconnectTimer=-1,o._pullOfflineFinished=!1,o._miniConnectUrl="",o.currentUserId="",o._connectedTime=0,o._localConnectedTime=0,o._status=k.DISCONNECTED,o._pullingMsg=!1,o._pullQueue=[],o._chrmsQueue={},o._latestSyncTimestamp=0,o._intervalTimer=-1,o._intervalTimerForChrmPull=-1,o._lastSyncUltraMsgTimeStamp=0,o._lastSyncUltraMsgLocalTimeStamp=0,o._ultraGroupTimer=-1,o._isUltraPulling=!1,o._ultraGroupTimeQue=[],o._isUltraGroupListExist=!1,o._ultraGroupMap={},o._ultraMsgMap={},o._pullUltraChangeMessageQue=[],o._isPullingUltraChangeMessage=!1,o._lastPullingUltraChangeMessageTime=0,o._ultraMsgChangeMap={},o._letterbox=new Go(t,i.appkey),o._sendMessageStore=new os(t,i.appkey),o._chrmEntryHandler=new Ho(o),o._connectType=i.connectionType,o}return y(t,e),t.prototype._formatJSONPUrl=function(e,t,n,r){var i=this.runtime.isSupportSocket()&&"websocket"===this._connectType?"navi":"cometnavi";return"".concat(e,"/").concat(i,".js?appId=").concat(n,"&token=").concat(encodeURIComponent(t),"&callBack=").concat(r,"&v=").concat(this._apiVersion,"&r=").concat(Date.now())},t.prototype.getNaviInfo=function(t,n,r){var i;return I(this,void 0,void 0,(function(){var o;return M(this,(function(s){return this.runtime.useNavi||(o=void 0,o=this.runtime.isSupportSocket()&&"websocket"===this._connectType?a.join(","):c.join(","),this._miniConnectUrl=(null===(i=this._options.miniCMPProxy)||void 0===i?void 0:i.length)?this._options.miniCMPProxy.join(","):o||"",n=[]),[2,e.prototype.getNaviInfo.call(this,t,n,r)]}))}))},t.prototype.updateNaviInfo=function(e){this.naviInfo=e},t.prototype.requestNaviInfo=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,f,h,d;return M(this,(function(p){switch(p.label){case 0:r="getServerEndpoint",i=0,o=e.length,p.label=1;case 1:return i<o?(s=this._formatJSONPUrl(e[i],n,t,r),Xe("req navi => ".concat(s)),[4,this.runtime.httpReq({url:s,timeout:1e4,dataType:"text"})]):[3,4];case 2:if(a=p.sent(),c=(new Date).getTime(),bi(Qi.IM_NAVI,{endTime:c}),200!==a.status)return u=void 0,403===a.status?(u=L.RC_CONN_USER_OR_PASSWD_ERROR,nt("request navi error: ".concat(u))):401===a.status&&(u=L.RC_CONN_APP_BLOCKED_OR_DELETED,nt("request navi error: ".concat(u))),bi(Qi.IM_NAVI,{code:u}),wo(this.runtime),[3,3];try{return l=a.data.match(/{[\d\D]+}/),0===(f=l&&l[0]?l[0]:"").indexOf('{\\"code\\":')&&(f=JSON.parse('"'.concat(f,'"'))),d=JSON.parse(f),h=/^https/.test(s)?"https":"http",d.protocol=h,this.runtime.useNavi||(d.server="",d.backupServer=this._miniConnectUrl,d.logSwitch=0),Ai({serverPrivate:d.type===zr.PRIVATE?zr.PRIVATE:zr.OPEN}),bi(Qi.IM_NAVI,{code:L.SUCCESS}),d.userId&&(ht({userId:d.userId}),Ke({userId:d.userId})),wo(this.runtime),[2,d]}catch(e){nt("parse navi err =>",e)}p.label=3;case 3:return i+=1,[3,1];case 4:return this.runtime.useNavi?[2,null]:(d={code:200,protocol:"https",server:"",voipCallInfo:"",kvStorage:0,openHttpDNS:!1,historyMsg:!1,chatroomMsg:!1,uploadServer:"https://upload.qiniup.com",bosAddr:"https://gz.bcebos.com",location:"",monitor:0,joinMChrm:!1,openMp:0,openUS:0,grpMsgLimit:0,isFormatted:0,gifSize:2048,logSwitch:0,logPolicy:"",compDays:0,msgAck:"",activeServer:"",qnAddr:"",extkitSwitch:0,alone:!1,voipServer:"",offlinelogserver:"",backupServer:this._miniConnectUrl},bi(Qi.IM_NAVI,{code:d.code,startTime:0,endTime:0,host:""}),wo(this.runtime),[2,d])}}))}))},t.prototype.getNaviInfoFromCache=function(){return this.naviInfo?m({},this.naviInfo):null},t.prototype.getConnectedTime=function(){return this._connectedTime},t.prototype.connect=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a=this;return M(this,(function(c){switch(c.label){case 0:return n=[],this.naviInfo=t,t.server?n.push(t.server):vt.warn("navi.server is invalid"),null==(r=t.backupServer)||r.split(",").forEach((function(e){n.indexOf(e)<0&&n.push(e)})),0===n.length?(vt.error("navi invaild.",n),[2,L.UNKNOWN]):(i=this.runtime.createDataChannel({status:function(r){a._connectionStatusHandler(r,e,n,t.protocol)},signal:this._signalHandler.bind(this)},this._options.connectionType),o=Nt.V3,1===t.openAnti&&(o=Nt.V4),[4,i.connect(this._appkey,e,n,t.protocol,this._apiVer,o)]);case 1:return(s=c.sent())===L.SUCCESS?(this._channel=i,this.currentUserId=i.userId,this._connectedTime=i.connectedTime,this._localConnectedTime=Math.floor((Date.now()+i.sendConnectTime)/2),this._watcher.status(k.CONNECTED),this._status=k.CONNECTED,this._pullOfflineFinished=!1,this._conversationManager=new ns(this,this._appkey,this.currentUserId,this._watcher.conversation,this._watcher.conversationTag),this._ultraGroupManager=new hs(this,this._appkey,this.currentUserId),this._conversationManager.startPullConversationStatus(0),this._userSettingManager=new rs(this,this._appkey,this.currentUserId,this._watcher.tag),this._userSettingManager.pullUserSettings(0),this._sendMessageStore.init(this.currentUserId),this._conversationManager.adaptOldStore(),this._joinedChrmManager=new $o(this.runtime,this._appkey,this.currentUserId,t.joinMChrm),this._startSyncInterval(),1===t.ugMsg&&this._notificationOnline()):i.close(),[2,s]}}))}))},t.prototype._connectionStatusHandler=function(e,t,n,r){switch(vt.warn("connection status changed:",e),this._status=e,e){case k.CONNECTING:case k.CONNECTED:this._watcher.status(e);break;case k.REDIRECT:case k.BLOCKED:case k.KICKED_OFFLINE_BY_OTHER_CLIENT:case k.DISCONNECT_BY_SERVER:this._resetMemoryState(),this._watcher.status(e);break;default:this._watcher.status(e),this._try2Reconnect(t,n,r)}},t.prototype._try2Reconnect=function(e,t,n){var r,i;return I(this,void 0,void 0,(function(){var o,s=this;return M(this,(function(a){switch(a.label){case 0:return this._channel?(o=Nt.V3,1===(null===(r=this.naviInfo)||void 0===r?void 0:r.openAnti)&&(o=Nt.V4),[4,this._channel.connect(this._appkey,e,t,n,this._apiVer,o)]):[2];case 1:return a.sent()===L.SUCCESS?(this._pullOfflineFinished=!1,this._startSyncInterval(),this._watcher.status(k.CONNECTED),this._status=k.CONNECTED,1===(null===(i=this.naviInfo)||void 0===i?void 0:i.ugMsg)&&this._notificationOnline(),this._rejoinChrm(),[2]):(this._watcher.status(k.WEBSOCKET_UNAVAILABLE),this._status=k.WEBSOCKET_UNAVAILABLE,this._reconnectTimer=setTimeout((function(){s._reconnectTimer=-1,s._try2Reconnect(e,t,n)}),5e3),[2])}}))}))},t.prototype._signalHandler=function(e,t){var n=e.syncMsg,r=e.topic;if(n)this._receiveSyncMsg(e,t);else{var i=Zi[r];if(i)switch(i){case Zi.s_ntf:vt.info("recv s_ntf -> signal.messageId: ".concat(e.messageId)),this._pullMsg(e);break;case Zi.s_msg:this._receiveMsg(e);break;case Zi.s_cmd:this._receiveStateNotify(e);break;case Zi.s_us:this._receiveSettingNotify(e);break;case Zi.rtc_ntf:this._receiveRtcKv(e.data);break;case Zi.s_opNtf:this._pullOperateStatusNotify(e)}else vt.error("unknown topic:",r)}},t.prototype._receiveStateNotify=function(e){var t,n=null===(t=this._channel)||void 0===t?void 0:t.codec.decodeByPBName(e.data,ln),r=n.time,i=n.type,o=n.chrmId;switch(i){case 2:this._chrmEntryHandler.pullEntry(o,r);break;case 3:this._conversationManager.startPullConversationStatus(r);break;case 4:this._chrmEntryHandler.reset(o),this._watcher.chatroom({chatroomDestroyed:e.targetId});break;case 6:this._ultraGroupTimeQue.push(r),this._syncUltraMsg(this._lastSyncUltraMsgTimeStamp);break;case 7:this._pullUltraChangeMessageQue.push(r),this._pullUltraChangeMessageList(this._lastPullingUltraChangeMessageTime)}},t.prototype._receiveSettingNotify=function(e){var t,n=(null===(t=this._channel)||void 0===t?void 0:t.codec.decodeByPBName(e.data,Qn)).version;this._userSettingManager.pullUserSettings(n)},t.prototype._receiveMessageExpansion=function(e){var t=e.content,n=t.put,r=t.del,i=t.mid;n&&this._watcher.expansion({updatedExpansion:{messageUId:i,expansion:n}}),r&&this._watcher.expansion({deletedExpansion:{messageUId:i,deletedKeys:r}})},t.prototype._receiveSyncMsg=function(e,t){var n,r;if(ss.includes(e.topic)){if(e.topic===Zi[Zi.updUgRTime]){var i=null===(n=this._channel)||void 0===n?void 0:n.codec.decodeByPBName(e.data,Tn),o=i.channelId,s=i.busChannel,a=this._ultraGroupMap["".concat(s,"_").concat(o)];return a&&(a.unreadMessageCount=0,a.unreadMentionedCount=0,a.firstUnreadMessage&&(a.firstUnreadMessage=null),a.lastReadTime=t.timestamp,this._watcher.conversation(Qt([a]))),void(t&&(this._ultraMsgMap[t.messageUId]=t.timestamp))}var c=null===(r=this._channel)||void 0===r?void 0:r.codec.decodeByPBName(e.data,tn,{currentUserId:this.currentUserId,signal:e});c=this._handleMsgProperties(c),t&&(c.sentTime=t.timestamp,c.messageUId=t.messageUId),et(K.L_RECEIVE_MSG_O,{messageUId:c.messageUId,messgeId:c.messageId,sentTime:c.sentTime}),this._pullingMsg?this._pullQueue.push((null==t?void 0:t.timestamp)||c.sentTime):(t&&this._sendMessageStore.setMessage(t.messageUId,t.timestamp),c.messageType!==z.EXPANSION_NOTIFY?(c.messageType===z.SYNC_READ_STATUS&&this._conversationManager.clearUnreadCount(c.conversationType,c.targetId,c.channelId),this._conversationManager.setConversationCacheByMessage(c,!0),this._watcher.batchMessage([c])):this._receiveMessageExpansion(c))}},t.prototype._pullMsg=function(e){if(this._channel){var t=this._channel.codec.decodeByPBName(e.data,ln),n=t.type,r=t.chrmId,i=t.time;if(vt.info("s_ntf -> type: ".concat(n,", chrmId: ").concat(r,", time: ").concat(i)),2===n){var o=this._chrmsQueue[r];if(!o)return;o.queue.push(i),this._pullChrmMsg(r)}else this._pullQueue.push(i),this._syncMsg()}},t.prototype._startSyncInterval=function(){var e=this;this._stopSyncInterval(),this._intervalTimer=setInterval((function(){Date.now()-e._latestSyncTimestamp>=18e4&&e._syncMsg()}),3e4),this._latestSyncTimestamp=Date.now(),this._syncMsg()},t.prototype._stopSyncInterval=function(){-1!==this._intervalTimer&&(clearInterval(this._intervalTimer),this._intervalTimer=-1)},t.prototype._syncMsg=function(){return I(this,void 0,void 0,(function(){var e,t,n,r,i,o,s,a,c,u,l,f,h,d,p,g,v,y,m,I,C=this;return M(this,(function(M){switch(M.label){case 0:return this._pullingMsg?[2]:this._channel?(this._pullingMsg=!0,e=this._letterbox.getOutboxTime(this.currentUserId),t=this._letterbox.getInboxTime(this.currentUserId),n=this._letterbox.getBroadcastSyncTime(this.currentUserId),vt.info("pullMsg -> sendboxTime: ".concat(e,", inboxTime: ").concat(t,", broadcastSyncTime: ").concat(n)),r=this._channel.codec.encodeSyncMsg({sendboxTime:e,inboxTime:t,broadcastSyncTime:n}),i=new Bi(Zi[Zi.pullMsg],r,this.currentUserId),o=We(),et(K.L_PULL_MSG_T,{outboxTime:e,inboxTime:t,broadcastSyncTime:n},{traceId:o}),[4,this._channel.send(i,on,{connectedTime:this._channel.connectedTime,currentUserId:this.currentUserId})]):(this._pullingMsg=!1,[2]);case 1:return s=M.sent(),a=s.code,c=s.data,this._latestSyncTimestamp=Date.now(),a!==L.SUCCESS||!c||Ae(c.finished)||Ae(c.list)||Ae(c.syncTime)?(vt.warn("pullMsg failed -> code:",a,", data: ",c),tt(K.L_PULL_MSG_R,{code:a,timestamp:this._latestSyncTimestamp},{traceId:o}),this._pullingMsg=!1,[2]):(u=c.list,l=c.finished,f=c.syncTime,h=c.broadcastSyncTime,d=void 0===h?1:h,p=u.map((function(e){return{messageUId:e.messageUId,messageId:e.messageId,sentTime:e.sentTime}})),vt.info("pullMsg success -> syncTime: ".concat(f,", finished: ").concat(l,", messages: ").concat(JSON.stringify(p))),g=0,v=[],y=[],u.forEach((function(e){if(v.push(e.messageUId),e.messageDirection===O.SEND&&(g=Math.max(e.sentTime,g),C._sendMessageStore.getSendMessageMap()[e.messageUId]))C._sendMessageStore.removeByUID(e.messageUId);else if(e.messageType!==z.EXPANSION_NOTIFY){if(e.messageType===z.SYNC_READ_STATUS){if(e.senderUserId!==C.currentUserId)return;C._conversationManager.clearUnreadCount(e.conversationType,e.targetId,e.channelId)}var t=C._handleMsgProperties(e);C._conversationManager.setConversationCacheByMessage(t,!0),y.push(t)}else C._receiveMessageExpansion(e)})),et(K.L_PULL_MSG_O,{messages:y.map((function(e){return e.messageUId}))}),this._watcher.batchMessage(y),this._letterbox.setInboxTime(f,this.currentUserId),this._letterbox.setOutboxTime(g,this.currentUserId),this._letterbox.setBroadcastSyncTime(d,this.currentUserId),this._sendMessageStore.removeByTimestamp(g),this._pullingMsg=!1,m=this._pullQueue.filter((function(e){return e>f})),this._pullQueue.length=0,(I=this._pullQueue).push.apply(I,m),l&&!this._pullOfflineFinished&&(this._pullOfflineFinished=!0,this._watcher.pullFinished()),et(K.L_PULL_MSG_R,{code:a,messageUIds:v.join(","),timestamp:this._latestSyncTimestamp,hasmore:!l},{traceId:o}),(!l||m.length>0)&&this._syncMsg(),[2])}}))}))},t.prototype._receiveMsg=function(e){if(this._channel){var t=this._channel.codec.decodeByPBName(e.data,rn,{currentUserId:this.currentUserId,connectedTime:this._channel.connectedTime});if(t=this._handleMsgProperties(t),et(K.L_RECEIVE_MSG_O,{messageUId:t.messageUId,messgeId:t.messageId,sentTime:t.sentTime}),t.conversationType!==j.RTC_ROOM){if(this._pullingMsg)return;if(this._pullQueue.length>0)return void this._syncMsg()}t.senderUserId===this.currentUserId&&this._sendMessageStore.setMessage(t.messageUId,t.sentTime),t.isStatusMessage||t.senderUserId===this.currentUserId||this._letterbox.setInboxTime(t.sentTime,this.currentUserId),t.messageType!==z.EXPANSION_NOTIFY?t.messageType===z.SYNC_READ_STATUS&&t.senderUserId!==this.currentUserId||(this._conversationManager.setConversationCacheByMessage(t,!0),this._watcher.batchMessage([t])):this._receiveMessageExpansion(t)}},t.prototype._handleMsgProperties=function(e,t){void 0===t&&(t=!1);var n,r=e.messageType,i=e.isCounted,o=e.isPersited,s=e.isStatusMessage,a=r in u,c=r in this._customMessageType;if(n=a?m(m({},u[r]),{isStatusMessage:l.includes(r)}):c?this._customMessageType[r]:{isCounted:!_e(i)&&i,isPersited:!_e(o)&&o,isStatusMessage:!1},Object.assign(e,n),t&&!Ae(s)&&(e.isStatusMessage=s),!t){var f=e.content.user;if(f){var h=f.portrait,d=f.portraitUri,p=h||d;p&&(f.portrait=f.portraitUri=p)}}return e},t.prototype.getHistoryMessage=function(e,t,n,r,i,o,s,a){var c;return void 0===o&&(o=""),I(this,void 0,void 0,(function(){var s,u,l,f,h,d,p,g,v,y;return M(this,(function(m){switch(m.label){case 0:return u=(s=this).currentUserId,l=s._channel,f=ui[e]||ri,h=1===r&&0===n,l?(d=l.codec.encodeGetHistoryMsg(t,{timestamp:n,count:h?2:r,order:i,channelId:o}),et(K.L_GET_HISTORY_MSG_T,{targetId:t,conversationType:e,channelId:o,timestamp:n,count:r,order:i},{traceId:a}),[4,l.send(new Bi(f,d,u),hn,{currentUserId:u,connectedTime:l.connectedTime,conversation:{targetId:t}})]):[3,2];case 1:return p=m.sent(),(g=p.code)===L.SUCCESS&&d?(v=p.data,h&&2===v.list.length&&(v.hasMore=!0,0===i?v.list.shift():v.list.pop()),y=[],null===(c=v.list)||void 0===c||c.forEach((function(e){e&&y.push(e.messageUId)})),et(K.L_GET_HISTORY_MSG_R,{code:g,messageUIds:y.join(",")},{traceId:a}),[2,{code:g,data:{list:v.list,hasMore:v.hasMore}}]):(tt(K.L_GET_HISTORY_MSG_R,{code:g,messageUIds:""},{traceId:a}),[2,{code:g}]);case 2:return[2,{code:L.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype.reportSDKInfo=function(e){var t=this.currentUserId,n=this._channel;if(n){vt.info("reportSDKInfo ->",e);var r=n.codec.encodeReportSDKInfo(JSON.stringify(e)),i=new Bi(Zi[Zi.reportsdk],r,t);n.send(i).then((function(e){var t=e.code;t!==L.SUCCESS&&vt.warn("reportSDKInfo failed -> code: ".concat(t))}))}},t.prototype.deleteRemoteMessage=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l;return M(this,(function(f){switch(f.label){case 0:return o=(i=this).currentUserId,(s=i._channel)?(a=s.codec.encodeDeleteMessages(e,t,n,r),c=new Bi(Fr,a,o),[4,s.send(c)]):[3,2];case 1:return u=f.sent(),l=u.code,L.SUCCESS,[2,l];case 2:return[2,L.RC_NET_CHANNEL_INVALID]}}))}))},t.prototype.deleteRemoteMessageByTimestamp=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,f;return M(this,(function(h){switch(h.label){case 0:return o=(i=this).currentUserId,(s=i._channel)?(a=s.codec.encodeClearMessages(t,n,r,e),c=li[e],u=new Bi(c,a,o),[4,s.send(u)]):[3,2];case 1:return l=h.sent(),f=l.code,L.SUCCESS,[2,f];case 2:return[2,L.RC_NET_CHANNEL_INVALID]}}))}))},t.prototype.getConversationList=function(e,t,n,r,i){return void 0===e&&(e=300),I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,f,h=this;return M(this,(function(d){switch(d.label){case 0:return o=(i=this).currentUserId,s=i._channel,t=t||j.PRIVATE,s?(a=s.codec.encodeOldConversationList({count:e,type:t,startTime:n,order:r}),c=new Bi(Xr,a,o),[4,s.send(c,pn,{currentUserId:o,connectedTime:s.connectedTime,afterDecode:function(e){var t=e.conversationType,n=e.targetId,r=e.channelId,i=h._conversationManager.get(t,n,r);return Object.assign(e,i),e}})]):[3,2];case 1:return u=d.sent(),l=u.code,f=u.data,l!==L.SUCCESS?[2,{code:l}]:[2,{code:l,data:null==f?void 0:f.list}];case 2:return[2,{code:L.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype.removeConversation=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a;return M(this,(function(c){switch(c.label){case 0:return(r=this._channel)?(i=r.codec.encodeRemoveOldConversationList({conversationType:e,channelId:n,targetId:t}),o=new Bi(ei,i,t),[4,r.send(o)]):[3,2];case 1:return s=c.sent(),vt.info("RemoveConversation =>",s),a=s.code,L.SUCCESS,[2,a];case 2:return[2,L.RC_NET_CHANNEL_INVALID]}}))}))},t.prototype.getConversation=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c;return M(this,(function(u){switch(u.label){case 0:return e!==j.ULTRA_GROUP?[3,1]:(r=this._ultraGroupMap["".concat(n,"_").concat(t)])?[3,3]:[2,{code:L.CONVER_GET_ERROR}];case 1:return(i=this._conversationManager.get(e,t,n))?[4,this.getHistoryMessage(e,t,0,1,0)]:[2,{code:L.CONVER_GET_ERROR}];case 2:if(o=u.sent(),s=o.code,a=o.data,s!==L.SUCCESS)return[2,{code:L.CONVER_GET_ERROR}];c=(null==a?void 0:a.list[0])||null,r={conversationType:e,targetId:t,channelId:n,unreadMessageCount:i.unreadMessageCount||0,latestMessage:c,notificationStatus:i.notificationStatus||B.CLOSE,notificationLevel:i.notificationLevel||H.NOT_SET,isTop:i.isTop||!1,lastUnreadTime:i.lastUnreadTime||0,unreadMentionedCount:i.unreadMentionedCount||0},u.label=3;case 3:return[2,{code:L.SUCCESS,data:r}]}}))}))},t.prototype.getAllConversationUnreadCount=function(e,t,n){var r=this._conversationManager.getAllUnreadCount(e,t,n);return Promise.resolve({code:L.SUCCESS,data:r})},t.prototype.getTotalUnreadCountByLevels=function(e,t,n){void 0===n&&(n=!1);var r=0;if(e.includes(j.ULTRA_GROUP)){if(!this._isUltraGroupListExist)return Promise.resolve({code:L.METHOD_NOT_AVAILABLE});for(var i in this._ultraGroupMap){var o=this._ultraGroupMap[i];(0===t.length||t.includes(o.notificationLevel))&&(r+=n?o.unreadMentionedCount:o.unreadMessageCount)}}return r+=this._conversationManager.getTotalUnreadCountByLevels(e,t,n),Promise.resolve({code:L.SUCCESS,data:r})},t.prototype.getConversationUnreadCount=function(e,t,n){var r,i;return i=e===j.ULTRA_GROUP?(null===(r=this._ultraGroupMap["".concat(n,"_").concat(t)])||void 0===r?void 0:r.unreadMessageCount)||0:this._conversationManager.getUnreadCount(e,t,n),Promise.resolve({code:L.SUCCESS,data:i})},t.prototype.clearConversationUnreadCount=function(e,t,n){return this._conversationManager.clearUnreadCount(e,t,n,!1),Promise.resolve(L.SUCCESS)},t.prototype.clearAllUnreadCount=function(){return this._conversationManager.clearAllUnreadCount(),Promise.resolve(L.SUCCESS)},t.prototype.getFirstUnreadMessage=function(e,t){throw new Error("Method not implemented.")},t.prototype.saveConversationMessageDraft=function(e,t,n,r){return this._conversationManager.setDraft(e,t,n,r),Promise.resolve(L.SUCCESS)},t.prototype.getConversationMessageDraft=function(e,t,n){var r=this._conversationManager.getDraft(e,t,n);return Promise.resolve({code:L.SUCCESS,data:r})},t.prototype.clearConversationMessageDraft=function(e,t,n){return this._conversationManager.clearDraft(e,t,n),Promise.resolve(L.SUCCESS)},t.prototype.pullConversationStatus=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l=this;return M(this,(function(f){switch(f.label){case 0:return n=(t=this)._channel,r=t.currentUserId,n?(i=n.codec.encodeGetConversationStatus(e),o=new Bi(Zi[Zi.pullSeAtts],i,r),[4,n.send(o,Zn)]):[3,2];case 1:return s=f.sent(),a=s.code,c=s.data,et(K.L_PULL_CONVERSATION_S,{timestamp:e,userId:r}),a!==L.SUCCESS?[2,{code:a}]:(u=[],Array.isArray(c)&&c.forEach((function(e){var t=e.conversationType,n=e.targetId,r=e.notificationStatus,i=e.channelId,o=e.isTop,s=e.notificationLevel,a=e.updatedTime;a&&l._conversationManager.setConversationUpdatedTime(a);var c=l._ultraGroupMap["".concat(i,"_").concat(n)];t===j.ULTRA_GROUP?c&&(void 0!==r&&(c.notificationStatus=r),void 0!==s&&(c.notificationLevel=s),void 0===s&&void 0===r||l._ultraGroupManager.addUltraGroupStatus(e),"boolean"==typeof o&&(c.isTop=o)):u.push(e)})),[2,{code:a,data:u}]);case 2:return[2,{code:L.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype.batchSetConversationStatus=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h,d=this;return M(this,(function(p){switch(p.label){case 0:return n=(t=this).currentUserId,(r=t._channel)?(i=this._conversationManager.getConversationUpdatedTime(),o=r.codec.encodeSetConversationStatus(e,i),s=new Bi(ti,o,n),[4,r.send(s,Jn)]):[3,2];case 1:return a=p.sent(),c=a.code,u=a.data,c===L.SUCCESS?(l=u,this._conversationManager.setConversationUpdatedTime(l.version),f=[],e.forEach((function(e){var t=e.conversationType,n=e.targetId,r=e.notificationStatus,i=e.notificationLevel,o=e.channelId,s=e.isTop;if(t===j.ULTRA_GROUP){var a=d._ultraGroupMap["".concat(o,"_").concat(n)];a&&(void 0!==r&&(a.notificationStatus=r),void 0!==i&&(a.notificationLevel=i),void 0===i&&void 0===r||d._ultraGroupManager.addUltraGroupStatus(a),void 0!==s&&(a.isTop=s),f.push(a))}else d._conversationManager.addStatus(m(m({},e),{updatedTime:l.version}),!0)})),f.length>0&&(h=Qt(f),h=ps(h),this._watcher.conversation(h)),[2,c]):[2,c];case 2:return[2,L.RC_NET_CHANNEL_INVALID]}}))}))},t.prototype._joinChrm=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,f;return M(this,(function(h){switch(h.label){case 0:return(i=this._channel)?(o=i.codec.encodeJoinOrQuitChatRoom(),a=new Bi(s=n?Vr:Qr,o,e),et(K.L_JOIN_CHATROOM_T,{chatroomId:e,count:t,topic:s},{traceId:r}),[4,i.send(a,_n)]):[2,L.RC_NET_CHANNEL_INVALID];case 1:return c=h.sent(),u=c.code,l=c.data,(u===L.SUCCESS?et:tt)(K.L_JOIN_CHATROOM_R,{code:u,timestamp:(new Date).getTime()},{traceId:r}),u===L.SUCCESS&&(f=l.joinTime,this._chrmsQueue[e]||(this._chrmsQueue[e]={pulling:!1,queue:[],timestamp:0}),this._pullChrmMsg(e,t,f),this.naviInfo.kvStorage&&this._chrmEntryHandler.pullEntry(e,0),this._joinedChrmManager.set(e,t),this._startSyncIntervalForChrmPull()),[2,u]}}))}))},t.prototype._rejoinChrm=function(){return I(this,void 0,void 0,(function(){var e,t,n,r,i,o,s;return M(this,(function(a){switch(a.label){case 0:for(n in e=this._joinedChrmManager.get(),t=[],e)t.push(n);r=0,a.label=1;case 1:return r<t.length?(i=t[r],et(K.L_REJOIN_CHATROOM_T,{chatroomId:i,count:e[i]||10,topic:Vr}),o=We(),[4,this._joinChrm(i,e[i]||10,!0,o)]):[3,4];case 2:s=a.sent(),(s===L.SUCCESS?et:tt)(K.L_REJOIN_CHATROOM_R,{code:s,timestamp:(new Date).getTime()},{traceId:o}),s===L.SUCCESS?this._watcher.chatroom({rejoinedRoom:{chatroomId:i,count:e[i]}}):this._watcher.chatroom({rejoinedRoom:{chatroomId:i,errorCode:s}}),a.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))},t.prototype._pullChrmMsg=function(e,t,n){return void 0===t&&(t=10),void 0===n&&(n=0),I(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,f,h,d,p,g;return M(this,(function(v){switch(v.label){case 0:return this._channel?(r=this._chrmsQueue[e],i=r.pulling,o=r.timestamp,i?[2]:(r.pulling=!0,s=this._channel.codec.encodeChrmSyncMsg(o,t),a=new Bi(Zi[Zi.chrmPull],s,e),et(K.L_PULL_CHATROOM_MSG_T,{chatroomId:e,timestamp:o}),[4,this._channel.send(a,on,{connectedTime:this._channel.connectedTime,currentUserId:this.currentUserId})])):[2];case 1:return c=v.sent(),u=c.code,l=c.data,r.pulling=!1,u===L.SUCCESS&&l?(f=l.list,h=l.syncTime,d=l.finished,r.timestamp=n?Math.max(h,n):h,r.queue=r.queue.filter((function(e){return e>h})),p=[],g=[],f.forEach((function(e){e.sentTime<o||(p.push(e.messageUId),g.push(e))})),this._watcher.batchMessage(g),et(K.L_PULL_CHATROOM_MSG_R,{code:u,timestamp:o,messageUIds:p.join(",")}),(!d||r.queue.length>0)&&this._pullChrmMsg(e),[2]):(tt(K.L_PULL_CHATROOM_MSG_R,{code:u,timestamp:o,messageUIds:""}),vt.warn("pull chatroom msg failed, code:",u,", data:",l),[2])}}))}))},t.prototype.joinChatroom=function(e,t,n){return I(this,void 0,void 0,(function(){return M(this,(function(r){return[2,this._joinChrm(e,t,!1,n)]}))}))},t.prototype.joinExistChatroom=function(e,t,n){return I(this,void 0,void 0,(function(){return M(this,(function(r){return[2,this._joinChrm(e,t,!0,n)]}))}))},t.prototype.quitChatroom=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o;return M(this,(function(s){switch(s.label){case 0:return(t=this._channel)?(n=t.codec.encodeJoinOrQuitChatRoom(),r=new Bi(Zr,n,e),[4,t.send(r)]):[2,L.RC_NET_CHANNEL_INVALID];case 1:return i=s.sent(),(o=i.code)===L.SUCCESS&&(delete this._chrmsQueue[e],this._chrmEntryHandler.reset(e),this._joinedChrmManager.remove(e)),[2,o]}}))}))},t.prototype.getChatroomInfo=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c;return M(this,(function(u){switch(u.label){case 0:return(r=this._channel)?(i=r.codec.encodeGetChatRoomInfo(t,n),o=new Bi(Zi[Zi.queryChrmI],i,e),[4,r.send(o,Nn)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return s=u.sent(),a=s.code,c=s.data,a!==L.SUCCESS?[2,{code:a}]:[2,{code:a,data:c}]}}))}))},t.prototype.getChatroomHistoryMessages=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u;return M(this,(function(l){switch(l.label){case 0:return(i=this._channel)?(o=i.codec.encodeGetHistoryMsg(e,{timestamp:t,count:n,order:r}),s=new Bi(oi,o,e),[4,i.send(s,hn,{conversation:{targetId:e}})]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return a=l.sent(),c=a.code,u=a.data,c!==L.SUCCESS?[2,{code:c}]:[2,{code:c,data:{list:u.list,hasMore:u.hasMore}}]}}))}))},t.prototype._modifyChatroomKV=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l;return M(this,(function(f){switch(f.label){case 0:return r=(n=this)._channel,i=n.currentUserId,r?(o=this._chrmEntryHandler.getVersion(e,t.key),t.version=null==o?this.getServerTime():o,s=r.codec.encodeModifyChatRoomKV(e,t,i),a=t.type===J.UPDATE?Wr:Kr,c=new Bi(a,s,e),[4,r.send(c,_n)]):[2,L.RC_NET_CHANNEL_INVALID];case 1:return u=f.sent(),(l=u.code)===L.SUCCESS?(this._chrmEntryHandler.setLocal(e,{kvEntries:[t],syncTime:(new Date).getTime()},i),[2,l]):[2,l]}}))}))},t.prototype._modifyChatroomKVS=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l,f,h,d,p=this;return M(this,(function(g){switch(g.label){case 0:return r=(n=this)._channel,i=n.currentUserId,r?(t.entries.forEach((function(t){var n=p._chrmEntryHandler.getVersion(e,t.key);t.version=null==n?p.getServerTime():n})),o=r.codec.encodeModifyChatRoomKVS(e,t,i),s=t.type===J.UPDATE?qr:Jr,a=new Bi(s,o,e),[4,r.send(a,Pn)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return c=g.sent(),u=c.code,-1!==[L.SUCCESS,L.CHATROOM_KV_STORE_NOT_ALL_SUCCESS].indexOf(u)&&(f=[],delete(h=m({},t)).entries,t.entries.forEach((function(e){f.push(m(m({},e),h))})),u===L.CHATROOM_KV_STORE_NOT_ALL_SUCCESS&&(d=c.data,vt.warn("设置失败的属性:",d.errorKeys),l=d.errorKeys,d&&Array.isArray(d.errorKeys)&&d.errorKeys.forEach((function(e){var t=f.findIndex((function(t){return e.key===t.key}));-1!==t&&f.splice(t,1)}))),vt.warn("设置成功的属性:",f),this._chrmEntryHandler.setLocal(e,{kvEntries:f,syncTime:(new Date).getTime()},i)),[2,{code:u,data:l}]}}))}))},t.prototype.setChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){return M(this,(function(n){return t.type=J.UPDATE,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKV(e,t)]}))}))},t.prototype.setChatroomEntries=function(e,t){return I(this,void 0,void 0,(function(){return M(this,(function(n){return t.type=J.UPDATE,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKVS(e,t)]}))}))},t.prototype.forceSetChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){return M(this,(function(n){return t.type=J.UPDATE,t.isOverwrite=!0,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKV(e,t)]}))}))},t.prototype.removeChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){return M(this,(function(n){return t.type=J.DELETE,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKV(e,t)]}))}))},t.prototype.removeChatroomEntries=function(e,t){return I(this,void 0,void 0,(function(){return M(this,(function(n){return t.type=J.DELETE,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKVS(e,t)]}))}))},t.prototype.forceRemoveChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){return M(this,(function(n){return t.type=J.DELETE,t.isOverwrite=!0,t.userId=t.userId||this.currentUserId,[2,this._modifyChatroomKV(e,t)]}))}))},t.prototype.getChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c;return M(this,(function(u){switch(u.label){case 0:return(n=this._chrmEntryHandler.getValue(e,t))?[2,Promise.resolve({code:L.SUCCESS,data:n})]:(r=this._channel)?(i=r.codec.encodePullChatRoomKV(0),o=new Bi(Zi[Zi.pullKV],i,e),[4,r.send(o,Un)]):[2,Promise.resolve({code:L.RC_NET_CHANNEL_INVALID})];case 1:return s=u.sent(),(a=s.data||{})&&a.kvEntries&&a.kvEntries.length&&(c=a.kvEntries.find((function(e){return e.key===t})),void 0!==c)?[2,Promise.resolve({code:L.SUCCESS,data:null==c?void 0:c.value})]:[2,Promise.resolve({code:L.CHATROOM_KEY_NOT_EXIST})]}}))}))},t.prototype.getAllChatroomEntry=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s;return M(this,(function(a){switch(a.label){case 0:return(t=this._chrmEntryHandler.getAll(e))&&Object.keys(t).length?[2,Promise.resolve({code:L.SUCCESS,data:t})]:(n=this._channel)?(t={},r=n.codec.encodePullChatRoomKV(0),i=new Bi(Zi[Zi.pullKV],r,e),[4,n.send(i,Un)]):[2,Promise.resolve({code:L.RC_NET_CHANNEL_INVALID})];case 1:return o=a.sent(),(s=o.data||{})&&s.kvEntries&&s.kvEntries.length&&s.kvEntries.forEach((function(e){e.key&&(t[e.key]=e.value||"")})),[2,Promise.resolve({code:L.SUCCESS,data:t})]}}))}))},t.prototype.pullChatroomEntry=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c,u,l,f,h;return M(this,(function(d){switch(d.label){case 0:return r=(n=this)._channel,i=n.currentUserId,r?(o=r.codec.encodePullChatRoomKV(t),s=new Bi(Zi[Zi.pullKV],o,e),et(K.L_PULL_CHATROOM_KV_T,{chatroomId:e,timestamp:t}),[4,r.send(s,Un)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return a=d.sent(),c=a.code,u=a.data,(c===L.SUCCESS?et:tt)(K.L_PULL_CHATROOM_KV_R,{code:c,timestamp:t}),c===L.SUCCESS?(vt.info("Pull success ChrmKV, ".concat(JSON.stringify(a))),this._chrmEntryHandler.setLocal(e,u,i),vt.info("Save into cache success!"),f=(l=u).kvEntries,l.syncTime,h=[],f.length>0&&(f.forEach((function(t){var n=t.key,r=t.value,i=t.type,o=t.timestamp;h.push({key:n,value:r,type:i,timestamp:o,chatroomId:e})})),this._watcher.chatroom({updatedEntries:h})),[2,{code:c,data:u}]):[2,{code:c}]}}))}))},t.prototype._startSyncIntervalForChrmPull=function(){var e=this;this._stopSyncIntervalForChrmPull(),this._intervalTimerForChrmPull=setInterval((function(){var t=Object.keys(e._chrmsQueue);0!==t.length&&e._channel?t.forEach((function(t){e._pullChrmMsg(t),e.naviInfo.kvStorage&&e._chrmEntryHandler.pullEntry(t,0)})):e._stopSyncIntervalForChrmPull()}),18e4)},t.prototype._stopSyncIntervalForChrmPull=function(){"number"!=typeof this._intervalTimerForChrmPull&&(clearInterval(this._intervalTimerForChrmPull),this._intervalTimerForChrmPull=-1)},t.prototype.sendMessage=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){var o,s,a,c,u,l,f,h,d,p,g;return M(this,(function(v){switch(v.label){case 0:return this._channel?(n=function(e,t){return"RC:SRSMsg"===e.messageType&&Object.assign(e,{directionalUserIdList:[t]}),e}(n,this.currentUserId),n=this._handleMsgProperties(n,!0),o=!![j.PRIVATE,j.GROUP].includes(e)&&n.isStatusMessage,s=o?function(e){var t;return(t={},t[j.PRIVATE]=Zi.ppMsgS,t[j.GROUP]=Zi.pgMsgS,t)[e]}(e):function(e){var t;return(t={},t[j.PRIVATE]=Zi.ppMsgP,t[j.GROUP]=Zi.pgMsgP,t[j.CHATROOM]=Zi.chatMsg,t[j.CUSTOMER_SERVICE]=Zi.pcMsgP,t[j.RTC_ROOM]=Zi.prMsgS,t)[e]}(e)||Zi.ppMsgP,o&&(n.isPersited=!1,n.isCounted=!1),a=n.messageId?n.messageId:Ut(),n.messageId=a,c=this._channel.codec.encodeUpMsg({conversationType:e,targetId:t},n),(u=new Pi(Zi[s],c,t)).setHeaderQos(At.AT_LEAST_ONCE),o?(this._channel.sendOnly(u),[2,{code:L.SUCCESS,data:ds(e,t,m({},n),"",0,this.currentUserId,a)}]):(l=Date.now()-this._localConnectedTime+this._connectedTime,f=ds(e,t,m({},n),"",l,this.currentUserId,a),null==r||r(a),et(K.L_SEND_MSG_T,{messageType:n.messageType,conversationType:e,targetId:t,channelId:n.channelId},{traceId:i}),[4,this._channel.send(u)])):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return h=v.sent(),d=h.code,p=h.data,d!==L.SUCCESS?(tt(K.L_SEND_MSG_R,{code:d,messageUId:f.messageUId,messageId:f.messageId},{traceId:i}),[2,{code:d,data:f}]):(et(K.L_SEND_MSG_R,{code:d,messageUId:null==p?void 0:p.messageUId,messageId:null==p?void 0:p.messageId},{traceId:i}),g=p,this._sendMessageStore.setMessage(g.messageUId,g.timestamp),f.sentTime=g.timestamp,f.messageUId=g.messageUId,this._conversationManager.setConversationCacheByMessage(f,!0),[2,{code:L.SUCCESS,data:f}])}}))}))},t.prototype.recallMsg=function(e,t,n,r,i){var o;return I(this,void 0,void 0,(function(){var s,a,c,u,l,f,h,d,p,g,v,y,I;return M(this,(function(M){switch(M.label){case 0:return this._channel?(s=i.user,a=i.extra,c=i.isDelete,u={conversationType:e,targetId:t,messageUId:n,sentTime:r,channelId:i.channelId||"",isDelete:c||!1},s&&(u.user=s),a&&(u.extra=a),l={content:u,messageType:"RC:RcCmd",disableNotification:null==i?void 0:i.disableNotification,pushConfig:null==i?void 0:i.pushConfig,pushContent:(null===(o=i.pushConfig)||void 0===o?void 0:o.pushContent)||i.pushContent||"",channelId:i.channelId},f=Zi[Zi.recallMsg],h=this._channel.codec.encodeUpMsg({conversationType:e,targetId:t},l),(d=new Pi(f,h,this.currentUserId)).setHeaderQos(At.AT_LEAST_ONCE),[4,this._channel.send(d)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return p=M.sent(),g=p.code,v=p.data,e===j.ULTRA_GROUP&&Xe(K.L_RECALL_ULTRA_MSG_S,{code:g,conversationType:e,targetId:t,channelId:i.channelId}),g!==L.SUCCESS?[2,{code:g}]:(y=v,e===j.ULTRA_GROUP?(this._ultraMsgMap[y.messageUId]=y.timestamp,this._updateUltraGroupWhenRecallMsg(t,i.channelId||"",n),[2,{code:L.SUCCESS}]):(this._sendMessageStore.setMessage(y.messageUId,y.timestamp),I=ds(e,t,m(m({},l),{isPersited:!0}),y.messageUId,y.timestamp,this.currentUserId),this._conversationManager.setConversationCacheByMessage(I,!0),[2,{code:L.SUCCESS,data:I}]))}}))}))},t.prototype.sendReadReceiptMessage=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i;return M(this,(function(o){return this._channel?(r=this._channel.codec.encodeReadReceipt(t,n),i=new Bi(Zi[Zi.rrMsg],r,e),[2,this._channel.send(i)]):[2,{code:L.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.getMessageReader=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i;return M(this,(function(o){return this._channel?(r=this._channel.codec.encodeMessageReader(t,n),i=new Bi(Zi[Zi.rrList],r,e),[2,this._channel.send(i,sr)]):[2,{code:L.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.pullUserSettings=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o;return M(this,(function(s){switch(s.label){case 0:return this._channel?(t=this._channel.codec.encodePullUserSetting(e),n=new Bi(Zi[Zi.pullUS],t,this.currentUserId),[4,this._channel.send(n,Fn)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return r=s.sent(),i=r.code,o=r.data,i===L.SUCCESS&&this._naviChangeHandler(o),[2,{code:i,data:o}]}}))}))},t.prototype._naviChangeHandler=function(e){var t;if(e){var n=e.settings,r=null===(t=null==n?void 0:n.VoipInfo)||void 0===t?void 0:t.value;if(r&&this.naviInfo&&this.naviInfo.voipCallInfo!==r){var i=m(m({},this.naviInfo),{voipCallInfo:r});this.naviInfo=i,this._watcher.onNaviDataChange(m({},i))}}else tt(K.L_NOTIFY_NAVI_CHANGE_E,{data:e})},t.prototype.getFileToken=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u;return M(this,(function(l){switch(l.label){case 0:return this._channel?(i=r&&"uploads"!==r?t||"":Lt(e,t),o=this._channel.codec.encodeGetFileToken(e,i,n||"",r||""),s=new Bi(Zi[Zi.qnTkn],o,this.currentUserId),[4,this._channel.send(s,wn)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return a=l.sent(),c=a.code,u=a.data,u=Object.assign(u,{fileName:i}),c===L.SUCCESS?[2,{code:c,data:u}]:[2,{code:c}]}}))}))},t.prototype.getFileUrl=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,f,h;return M(this,(function(d){switch(d.label){case 0:return this._channel?(i="",o="",s="",t===V.QINIU?(o=Sn,s=Dn):(o=On,s=Ln),i=t===V.QINIU?Zi[Zi.qnUrl]:t===V.AWS?Zi[Zi.s3Url]:t===V.STC?Zi[Zi.stcUrl]:Zi[Zi.aliUrl],a=this._channel.codec.encodeGetFileUrl(o,e,n,r),c=new Bi(i,a,this.currentUserId),[4,this._channel.send(c,s)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return u=d.sent(),l=u.code,f=u.data,h=f,l===L.SUCCESS?[2,{code:l,data:h}]:[2,{code:l}]}}))}))},t.prototype.disconnect=function(){this._resetMemoryState(),this._watcher.status(k.DISCONNECTED)},t.prototype._resetMemoryState=function(){-1!==this._reconnectTimer&&(clearTimeout(this._reconnectTimer),this._reconnectTimer=-1),this._channel&&(this._channel.close(),this._channel=void 0),this._pullQueue.length=0,this._stopSyncInterval(),this.resetUltraGroupData()},t.prototype.resetUltraGroupData=function(){this._stopUltraSyncInterval(),this._lastSyncUltraMsgTimeStamp=0,this._lastSyncUltraMsgLocalTimeStamp=0,this._isUltraPulling=!1,this._ultraGroupTimeQue=[],this._isUltraGroupListExist=!1,this._ultraGroupMap={}},t.prototype.destroy=function(){throw new Error("JSEngine's method not implemented.")},t.prototype.registerMessageType=function(e,t,n,r,i){this._customMessageType[e]={isPersited:t,isCounted:n,isStatusMessage:i}},t.prototype.getServerTime=function(){return Date.now()-this._localConnectedTime+this._connectedTime},t.prototype.getCurrentUserId=function(){return this.currentUserId},t.prototype.createTag=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return M(this,(function(c){switch(c.label){case 0:return this._channel?(t=this._userSettingManager.getVersion(),n=this._channel.codec.encodeCreateTag([e],t),r=new Bi(Zi[Zi.addSeTag],n,this.currentUserId),[4,this._channel.send(r,Hn)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return i=c.sent(),o=i.code,s=i.data,o!==L.SUCCESS?[2,{code:o}]:(a=s.version,this._userSettingManager.addTag([m(m({},e),{createdTime:a})],a),[2,{code:L.SUCCESS,data:s}])}}))}))},t.prototype.removeTag=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return M(this,(function(c){switch(c.label){case 0:return this._channel?(t=this._userSettingManager.getVersion(),n=this._channel.codec.encodeRemoveTag([e],t),r=new Bi(Zi[Zi.delSeTag],n,this.currentUserId),[4,this._channel.send(r,Hn)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return i=c.sent(),o=i.code,s=i.data,o!==L.SUCCESS?[2,{code:o}]:(a=s.version,this._userSettingManager.deleteTag([e],a),[2,{code:L.SUCCESS}])}}))}))},t.prototype.updateTag=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return M(this,(function(c){switch(c.label){case 0:return this._channel?(t=this._userSettingManager.getVersion(),n=this._channel.codec.encodeCreateTag([e],t),r=new Bi(Zi[Zi.addSeTag],n,this.currentUserId),[4,this._channel.send(r,Hn)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return i=c.sent(),o=i.code,s=i.data,o!==L.SUCCESS?[2,{code:o}]:(a=s.version,this._userSettingManager.addTag([e],a),[2,{code:L.SUCCESS,data:s}])}}))}))},t.prototype.getTagList=function(){return I(this,void 0,void 0,(function(){var e,t;return M(this,(function(n){return e=this._userSettingManager.getTags(),t=this._conversationManager.getConversationListForTag(),e.forEach((function(e){e.conversationCount=t[e.tagId]?t[e.tagId].length:0})),[2,{code:L.SUCCESS,data:e}]}))}))},t.prototype.addTagForConversations=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s=this;return M(this,(function(a){switch(a.label){case 0:return this._channel?this._userSettingManager.getTagById(e)?(n=this._channel.codec.encodeUpdateConversationTag([{tagId:e}],t),r=new Bi(Zi[Zi.addTag],n,this.currentUserId),[4,this._channel.send(r)]):[2,{code:L.TAG_NOT_EXIST}]:[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return(i=a.sent().code)!==L.SUCCESS?[2,{code:i}]:((o={})[e]={},t.forEach((function(e){s._conversationManager.addTagStatus(e.conversationType,e.targetId,o,e.channelId)})),[2,{code:L.SUCCESS}])}}))}))},t.prototype.removeTagForConversations=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o=this;return M(this,(function(s){switch(s.label){case 0:return this._channel?(n=this._channel.codec.encodeUpdateConversationTag([{tagId:e}],t),r=new Bi(Zi[Zi.delTag],n,this.currentUserId),[4,this._channel.send(r)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return(i=s.sent().code)!==L.SUCCESS?[2,{code:i}]:(t.forEach((function(t){o._conversationManager.deleteTagStatus(t.conversationType,t.targetId,[e],t.channelId)})),[2,{code:L.SUCCESS}])}}))}))},t.prototype.removeTagsForConversation=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c;return M(this,(function(u){switch(u.label){case 0:return this._channel?(n=e.conversationType,r=e.targetId,i=e.channelId,o=t.map((function(e){return{tagId:e}})),s=this._channel.codec.encodeUpdateConversationTag(o,[e]),a=new Bi(Zi[Zi.delTag],s,this.currentUserId),[4,this._channel.send(a)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return(c=u.sent().code)!==L.SUCCESS?[2,{code:c}]:(this._conversationManager.deleteTagStatus(n,r,t,i),[2,{code:L.SUCCESS}])}}))}))},t.prototype.getConversationListByTag=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,f;return M(this,(function(h){switch(h.label){case 0:return i=(r=this).currentUserId,(o=r._channel)?(s=o.codec.encodeOldConversationList({count:n,type:j.PRIVATE,startTime:t}),a=new Bi(Xr,s,i),[4,o.send(a,pn,{currentUserId:i,connectedTime:o.connectedTime})]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return c=h.sent(),u=c.code,l=c.data,f=this._conversationHasTagFilter(e,null==l?void 0:l.list),vt.info("GetConversationListByTag",f),u!==L.SUCCESS?[2,{code:u}]:[2,{code:u,data:f}]}}))}))},t.prototype._conversationHasTagFilter=function(e,t){var n=this,r=[],i=[];function o(e,t){return e.latestMessage&&t.latestMessage?e.latestMessage.sentTime-t.latestMessage.sentTime:0}return t.forEach((function(t){var o=t.conversationType,s=t.targetId,a=t.channelId,c=n._conversationManager.get(o,s,a),u=c.hasMentioned,l=c.mentionedInfo,f=c.lastUnreadTime,h=c.notificationStatus,d=c.isTop,p=c.tags,g=c.unreadMessageCount,v=p&&p[e];if(v){var y=m(m({},t),{hasMentioned:u,mentionedInfo:l,lastUnreadTime:f,notificationStatus:h,isTop:d,unreadMessageCount:g});v.isTop?r.push(m(m({},y),{isTopInTag:!0})):i.push(m(m({},y),{isTopInTag:!1}))}})),C(C([],r.sort(o),!0),i.sort(o),!0)},t.prototype.getUnreadCountByTag=function(e,t){return I(this,void 0,void 0,(function(){var n;return M(this,(function(r){return this._channel?(n=this._conversationManager.getUnreadCountByTag(e,t),[2,{code:L.SUCCESS,data:n}]):[2,{code:L.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.setConversationStatusInTag=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,f,h;return M(this,(function(d){switch(d.label){case 0:return this._channel?(r=t.targetId,i=t.conversationType,o=t.channelId,s=n.isTop,a=[{tagId:e,isTop:s}],(c=this._conversationManager.get(i,r,o)).tags&&Object.hasOwnProperty.call(c.tags,e)?(u=this._channel.codec.encodeUpdateConversationTag(a,[t]),l=new Bi(Zi[Zi.addTag],u,this.currentUserId),[4,this._channel.send(l)]):[2,{code:L.NO_TAG_IN_CONVER}]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return(f=d.sent().code)!==L.SUCCESS?[2,{code:f}]:((h={})[e]={},s&&(h[e].isTop=!0),this._conversationManager.addTagStatus(i,r,h,o),[2,{code:L.SUCCESS}])}}))}))},t.prototype.getTagsForConversation=function(e){var t;return I(this,void 0,void 0,(function(){var n,r,i,o;return M(this,(function(s){if(!this._channel)return[2,{code:L.RC_NET_CHANNEL_INVALID}];if(n=this._conversationManager.get(e.conversationType,e.targetId,e.channelId),r=this._userSettingManager.getTagsInfo(),i=[],n.tags)for(o in n.tags)i.push({tagId:o,tagName:null===(t=r[o])||void 0===t?void 0:t.tagName});return[2,{code:L.SUCCESS,data:i}]}))}))},t.prototype.getBlockConversationList=function(){var e=this._conversationManager.getBlockConversationList();return Promise.resolve({code:L.SUCCESS,data:e})},t.prototype.getTopConversationList=function(){var e=this._conversationManager.getTopConversationList();return Promise.resolve({code:L.SUCCESS,data:e})},t.prototype.getUnreadMentionedCount=function(e){var t,n;return n=e.conversationType===j.ULTRA_GROUP?(null===(t=this._ultraGroupMap["".concat(e.channelId,"_").concat(e.targetId)])||void 0===t?void 0:t.unreadMentionedCount)||0:this._conversationManager.getUnreadMentionedCount(e.channelId,e.conversationType,e.targetId),Promise.resolve({code:L.SUCCESS,data:n})},t.prototype.getAllUnreadMentionedCount=function(){var e=this._conversationManager.getAllUnreadMentionedCount();return Promise.resolve({code:L.SUCCESS,data:e})},t.prototype.getConversationNotificationLevel=function(e,t,n){if(!this._isUltraGroupListExist&&e===j.ULTRA_GROUP)return Promise.resolve({code:L.METHOD_NOT_AVAILABLE});var r;if(!(r=e===j.ULTRA_GROUP?this._ultraGroupManager.get(j.ULTRA_GROUP,t,n):this._conversationManager.get(e,t,n)))return Promise.resolve({code:L.SUCCESS,data:H.NOT_SET});var i=r.notificationLevel;return Ae(r.notificationLevel)&&!Ae(r.notificationStatus)&&(i=B.OPEN===r.notificationStatus?1:0),Promise.resolve({code:L.SUCCESS,data:i})},t.prototype.getConversationNotificationStatus=function(e,t,n){var r;return(r=e===j.ULTRA_GROUP?this._ultraGroupManager.get(j.ULTRA_GROUP,t,n):this._conversationManager.get(e,t,n))?Promise.resolve({code:L.SUCCESS,data:r.notificationStatus}):Promise.resolve({code:L.SUCCESS,data:B.CLOSE})},t.prototype.getRemoteHistoryMessages=function(e,t,n,r,i,o){return this.getHistoryMessage(e,t,n,r,i,o)},t.prototype.getUltraGroupList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i;return M(this,(function(o){return t=e.targetId,n=e.channelType,this._isUltraGroupListExist?(r=Object.values(this._ultraGroupMap).filter((function(e){return!(e.targetId!==t&&t||e.channelType!==n&&ve(n))})),r=ps(r),i=Qt(r),[2,{code:L.SUCCESS,data:i}]):[2,{code:L.METHOD_NOT_AVAILABLE}]}))}))},t.prototype.getBlockUltraGroupList=function(){if(!this._isUltraGroupListExist)return Promise.resolve({code:L.METHOD_NOT_AVAILABLE});var e=Object.values(this._ultraGroupMap),t=[];return e.forEach((function(e){e.notificationStatus===B.OPEN&&t.push({conversationType:j.ULTRA_GROUP,targetId:e.targetId,channelId:e.channelId})})),Promise.resolve({code:L.SUCCESS,data:t})},t.prototype.getTopUltraGroupList=function(){if(!this._isUltraGroupListExist)return Promise.resolve({code:L.METHOD_NOT_AVAILABLE});var e=Object.values(this._ultraGroupMap),t=[];return e.forEach((function(e){!0===e.isTop&&t.push({conversationType:j.ULTRA_GROUP,targetId:e.targetId,channelId:e.channelId})})),Promise.resolve({code:L.SUCCESS,data:t})},t.prototype.getUltraGroupUnreadMentionedCountByTargetId=function(e,t){if(!this._isUltraGroupListExist)return Promise.resolve({code:L.METHOD_NOT_AVAILABLE});var n=0;for(var r in this._ultraGroupMap)r.match(/_.*/g)[0].substring(1)!==e||t&&0!==t.length&&!t.includes(this._ultraGroupMap[r].notificationLevel)||(n+=this._ultraGroupMap[r].unreadMentionedCount);return Promise.resolve({code:L.SUCCESS,data:n})},t.prototype.getUltraGroupUnreadCountByTargetId=function(e,t){var n=0;for(var r in this._ultraGroupMap){var i=this._ultraGroupMap[r];i.targetId!==e||t&&0!==t.length&&!t.includes(this._ultraGroupMap[r].notificationLevel)||(n+=i.unreadMessageCount||0)}return Promise.resolve({code:L.SUCCESS,data:n})},t.prototype.getAllUltraGroupUnreadCount=function(e){if(void 0===e&&(e=!1),!this._isUltraGroupListExist)return Promise.resolve({code:L.METHOD_NOT_AVAILABLE});var t=0;for(var n in this._ultraGroupMap)t+=e?this._ultraGroupMap[n].unreadMentionedCount||0:this._ultraGroupMap[n].unreadMessageCount||0;return Promise.resolve({code:L.SUCCESS,data:t})},t.prototype.clearUltraUnreadcount=function(e,t){return void 0===t&&(t=""),I(this,void 0,void 0,(function(){var n,r,i,o,s;return M(this,(function(a){switch(a.label){case 0:return this._isUltraGroupListExist?this._channel?this._status!==k.CONNECTED?[2,L.RC_NET_UNAVAILABLE]:(n=Date.now(),r=this._channel.codec.encodeClearUnreadCount({conversationType:j.ULTRA_GROUP,targetId:e,channelId:t},{timestamp:n}),(i=new Pi(Zi[Zi.updUgRTime],r,this.currentUserId)).setHeaderQos(At.AT_LEAST_ONCE),[4,this._channel.send(i)]):[2,L.RC_NET_CHANNEL_INVALID]:[2,Promise.resolve(L.METHOD_NOT_AVAILABLE)];case 1:return(o=a.sent().code)===L.SUCCESS&&((s=this._ultraGroupMap["".concat(t,"_").concat(e)])&&(s.unreadMessageCount=0,s.unreadMentionedCount=0,s.lastReadTime=n),s.firstUnreadMessage&&(s.firstUnreadMessage=null)),[2,o]}}))}))},t.prototype._getUltraGroupList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f,h,d,p=this;return M(this,(function(g){switch(g.label){case 0:return this._channel&&this._status===k.CONNECTED?(t=this._channel.codec.encodeUltraGroup(e,!1),n=new Bi(Zi[Zi.pullUgSes],t,this.currentUserId),[4,this._channel.send(n,pn,{currentUserId:this.currentUserId,conversationType:j.ULTRA_GROUP})]):[2];case 1:return r=g.sent(),i=r.code,o=r.data,i===L.SUCCESS&&o?(a=o.list,c=o.isFinished,a.forEach((function(e){e.notificationStatus=B.CLOSE,e.notificationLevel=H.NOT_SET,e.isTop=!1,p._ultraGroupMap["".concat(e.channelId,"_").concat(e.targetId)]=e,p._ultraGroupManager.addUltraGroupStatus(e)})),!1!==c?[3,2]:(u=a.length>0&&a[a.length-1].versionTime||0,this._getUltraGroupList(u),[3,4])):(tt(K.L_ULTRA_SYNC_DONE_S,"Pull ultra group conversation failured, code: ".concat(i,", try again")),s=setTimeout((function(){p._getUltraGroupList(e),clearTimeout(s)}),3e3),[2]);case 2:return et(K.L_ULTRA_SYNC_DONE_S,"Pull ultra group conversation success"),[4,this.pullConversationStatus(0)];case 3:l=g.sent(),f=l.code,h=l.data,f!==L.SUCCESS&&vt.warn("pullConversationStatus fail code: ".concat(f,", data: ").concat(h)),d=Object.values(this._ultraGroupMap),d=ps(d),this._isUltraGroupListExist=!0,this._watcher.ultraGroupEnable(Qt(d)),this._syncUltraMsg(this._lastSyncUltraMsgTimeStamp),g.label=4;case 4:return[2]}}))}))},t.prototype._startUltraSyncInterval=function(){var e=this,t=function(){e._ultraGroupTimer=setTimeout((function(){Date.now()-e._lastSyncUltraMsgLocalTimeStamp>=18e4&&e._syncUltraMsg(e._lastSyncUltraMsgTimeStamp),e._stopUltraSyncInterval(),t()}),3e4)};this._lastSyncUltraMsgLocalTimeStamp=Date.now(),t()},t.prototype._stopUltraSyncInterval=function(){-1!==this._ultraGroupTimer&&(clearTimeout(this._ultraGroupTimer),this._ultraGroupTimer=-1)},t.prototype._notificationOnline=function(){return I(this,void 0,void 0,(function(){var e,t,n,r=this;return M(this,(function(i){switch(i.label){case 0:return this._channel&&this._status===k.CONNECTED?[4,this._fetchUltraMsg(0)]:[2];case 1:return e=i.sent(),t=e.code,n=e.data,t===L.SUCCESS&&n?(et(K.L_NOTIFY_ULTRA_ONLINE_S,"Notify ultra group online success."),this._getUltraGroupList(0),-1===this._ultraGroupTimer&&this._startUltraSyncInterval(),[2]):(tt(K.L_NOTIFY_ULTRA_ONLINE_S,"Notify ultra group online failured, try again."),setTimeout((function(){r._notificationOnline()}),3e3),[2])}}))}))},t.prototype._fetchUltraMsg=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u;return M(this,(function(l){switch(l.label){case 0:return t=this._channel.codec.encodeSuperSyncMsg(e),n=new Bi(Zi[Zi.pullUgMsg],t,this.currentUserId),r=We(),et(K.L_PULL_ULTRA_MSG_T,{timestamp:e},{traceId:r}),[4,this._channel.send(n,on,{currentUserId:this.currentUserId,conversation:{conversationType:j.ULTRA_GROUP}})];case 1:return i=l.sent(),o=i.code,s=i.data,o===L.SUCCESS&&s?(a=s.list,c=s.syncTime,u=a.map((function(e){return e.messageUId})).join(","),et(K.L_PULL_ULTRA_MSG_R,{code:o,messageUIds:u,timestamp:e,syncTime:c},{traceId:r})):tt(K.L_PULL_ULTRA_MSG_R,{code:o,timestamp:e},{traceId:r}),[2,{code:o,data:s}]}}))}))},t.prototype._syncUltraMsg=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f=this;return M(this,(function(h){switch(h.label){case 0:return this._channel&&this._status===k.CONNECTED?this._isUltraPulling?[2]:(this._isUltraPulling=!0,[4,this._fetchUltraMsg(e)]):[2];case 1:return t=h.sent(),n=t.code,r=t.data,this._lastSyncUltraMsgLocalTimeStamp=Date.now(),this._isUltraPulling=!1,n===L.SUCCESS&&r?(i=r.list,o=r.syncTime,s=r.finished,a=[],c={},u=[],i.forEach((function(e){var t,n,r,i=e.targetId,s=e.content,l=e.messageType,h=e.messageUId,d=e.channelId,p=e.isCounted,g=e.channelType;e.isMentioned;var v=e.sentTime;if(a.push(h),f._ultraMsgMap[h])delete f._ultraMsgMap[h];else{var y=0;((null===(t=null==s?void 0:s.mentionedInfo)||void 0===t?void 0:t.type)===F.ALL||(null===(r=null===(n=null==s?void 0:s.mentionedInfo)||void 0===n?void 0:n.userIdList)||void 0===r?void 0:r.includes(f.currentUserId)))&&(y=1);var m=f._ultraGroupMap["".concat(d,"_").concat(i)];if(m)p&&(l===z.RECALL?m.unreadMessageCount>0&&(m.unreadMessageCount-=1):(m.unreadMessageCount+=1,m.unreadMentionedCount+=y,m.firstUnreadMessage||(m.firstUnreadMessage={sentTime:v}))),m.versionTime=o,m.latestMessage=e,m.channelType=g,c["".concat(d,"_").concat(i)]=m,f._ultraGroupManager.addUltraGroupStatus(m);else{var I={conversationType:j.ULTRA_GROUP,targetId:i,channelId:d,unreadMessageCount:p?1:0,unreadMentionedCount:p?y:0,versionTime:o,latestMessage:e,notificationStatus:B.CLOSE,notificationLevel:H.NOT_SET,isTop:!1,channelType:g,firstUnreadMessage:{sentTime:v}};f._ultraGroupMap["".concat(d,"_").concat(i)]=I,c["".concat(d,"_").concat(i)]=I,f._ultraGroupManager.addUltraGroupStatus(I)}u.push(e)}})),Object.keys(c).length>0&&(vt.info("notice ultragroups"),l=Object.values(c),l=ps(l),this._watcher.conversation(Qt(l))),vt.info("notice ultragroup message"),this._watcher.batchMessage(u),this._ultraGroupTimeQue=this._ultraGroupTimeQue.filter((function(e){return e>o})),this._lastSyncUltraMsgTimeStamp=o,(!s||this._ultraGroupTimeQue.length>0)&&this._syncUltraMsg(o),[2]):[2]}}))}))},t.prototype.sendUltraMessage=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,f,h,d,p;return M(this,(function(g){switch(g.label){case 0:return this._channel?this._status!==k.CONNECTED?[2,{code:L.RC_NET_UNAVAILABLE}]:("RC:SRSMsg"===t.messageType&&vt.warn("ultra group -> direction message convert to message"),t=this._handleMsgProperties(t,!0),i=t.messageId?t.messageId:Ut(),t.messageId=i,o=this._channel.codec.encodeUpMsg({conversationType:j.ULTRA_GROUP,targetId:e},t),(s=new Pi(Zi[Zi.ugMsg],o,e)).setHeaderQos(At.AT_LEAST_ONCE),a=Date.now()-this._localConnectedTime+this._connectedTime,c=ds(j.ULTRA_GROUP,e,m({},t),"",a,this.currentUserId,i),n&&n(i),et(K.L_SEND_MSG_T,{messageType:t.messageType,conversationType:j.ULTRA_GROUP,targetId:e,channelId:t.channelId},{traceId:r}),[4,this._channel.send(s)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return u=g.sent(),l=u.code,f=u.data,l!==L.SUCCESS?(tt(K.L_SEND_MSG_R,{code:l,messageUId:c.messageUId,messageId:c.messageId},{traceId:r}),[2,{code:l,data:c}]):(et(K.L_SEND_MSG_R,{code:l,messageUId:null==f?void 0:f.messageUId,messageId:null==f?void 0:f.messageId},{traceId:r}),h=f,c.sentTime=h.timestamp,c.messageUId=h.messageUId,this._ultraMsgMap[h.messageUId]=h.timestamp,d=t.channelId||"",(p=this._ultraGroupMap["".concat(d,"_").concat(e)])?(p.latestMessage=c,ve(p.channelType)&&(c.channelType=p.channelType)):(p={conversationType:j.ULTRA_GROUP,targetId:e,channelId:d,unreadMessageCount:0,unreadMentionedCount:0,versionTime:c.sentTime,latestMessage:c,notificationStatus:B.CLOSE,notificationLevel:H.NOT_SET,isTop:!1},this._ultraGroupMap["".concat(d,"_").concat(e)]=p,this._ultraGroupManager.addUltraGroupStatus(p)),this._watcher.conversation(Qt([p])),[2,{code:l,data:c}])}}))}))},t.prototype.sendUltraGroupTypingStatus=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a;return M(this,(function(c){switch(c.label){case 0:return this._channel?this._status!==k.CONNECTED?[2,{code:L.RC_NET_UNAVAILABLE}]:(n=e.conversationType,r=e.channelId,i=e.targetId,o=this._channel.codec.encodeOperateStatus(i,n,r||"",t||0),(s=new Pi(Zi[Zi.operate],o,i)).setHeaderQos(At.AT_LEAST_ONCE),[4,this._channel.send(s)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return(a=c.sent().code)!==L.SUCCESS?[2,{code:a,msg:L[a]}]:[2,{code:a}]}}))}))},t.prototype.getUltraGroupMessageListByMessageUId=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return M(this,(function(c){switch(c.label){case 0:return this._channel?this._status!==k.CONNECTED?[2,{code:L.RC_NET_UNAVAILABLE}]:e.messages&&e.messages.length<1||e.messages&&e.messages.length>20?[2,{code:L.MSG_LIMIT_ERROR}]:(t={},e.messages.forEach((function(e){t[e.messageUId]=void 0})),n=this._channel.codec.encodeMsgQuery(e),(r=new Bi(Zi[Zi.qryMsg],n,this.currentUserId)).setHeaderQos(At.AT_LEAST_ONCE),[4,this._channel.send(r,Tr,{connectedTime:this._channel.connectedTime,currentUserId:this.currentUserId})]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return i=c.sent(),o=i.code,s=i.data,o!==L.SUCCESS?[2,{code:o,msg:L[o]}]:(a=(s||{}).list,Array.isArray(a)&&a.forEach((function(e){var n=e.messageUId;t[n]=e})),[2,{code:0,data:t}])}}))}))},t.prototype._pullOperateStatusNotify=function(e){if(this._channel){var t=this._channel.codec.decodeByPBName(e.data,_r),n=t.conversationType,r=t.info,i=t.summary;vt.info("s_opNtf -> type: ".concat(n,", info: ").concat(r,", summary: ").concat(i)),this._watcher.operateStatus(t)}},t.prototype.expandUltraMessage=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i;return M(this,(function(o){switch(o.label){case 0:return this._channel?this._status!==k.CONNECTED?[2,{code:L.RC_NET_UNAVAILABLE}]:(t=this._channel.codec.encodeExpandUltraMessage(e,this.currentUserId),(n=new Bi(Zi[Zi.upMsgEx],t,e.targetId)).setHeaderQos(At.AT_LEAST_ONCE),[4,this._channel.send(n)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return r=o.sent(),i=r.code,r.data,i!==L.SUCCESS?[2,{code:i,msg:L[i]}]:[2,{code:i}]}}))}))},t.prototype.modifyMessage=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s;return M(this,(function(a){switch(a.label){case 0:return this._channel?this._status!==k.CONNECTED?[2,{code:L.RC_NET_UNAVAILABLE}]:(t=this._channel.codec.encodemodifyMessage(e,this.currentUserId),(n=new Bi(Zi[Zi.modifyMsg],t,e.targetId)).setHeaderQos(At.AT_LEAST_ONCE),[4,this._channel.send(n)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return r=a.sent(),i=r.code,o=r.data,i!==L.SUCCESS?[2,{code:i,msg:L[i]}]:(s=o,this._ultraMsgMap[s.messageUId]=s.timestamp,[2,{code:i}])}}))}))},t.prototype._pullUltraChangeMessageList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l;return M(this,(function(f){switch(f.label){case 0:return this._channel?this._status!==k.CONNECTED||this._isPullingUltraChangeMessage?[2]:(this._isPullingUltraChangeMessage=!0,t=this._channel.codec.encodeQueryMsgChange(e),(n=new Bi(Zi[Zi.qryMsgChange],t,this.currentUserId)).setHeaderQos(At.AT_LEAST_ONCE),[4,this._channel.send(n,Ir)]):[2];case 1:return r=f.sent(),i=r.code,o=r.data,this._isPullingUltraChangeMessage=!1,i===L.SUCCESS&&o?(s=o.hasNext,a=o.list,c=(null==o?void 0:o.syncTime)||0,this._ultraChannelTypeChangeNotice(a),this._ultraChannelUserKickedNotice(a),this._ultraChannelDeleteNotice(a),this._ultraRecalledNotice(a),this._ultraMsgUpdateNotice([oe.MSG_EXPANSION,oe.MSG_MODIFY],a),u=this._pullUltraChangeMessageQue.filter((function(e){return e>c})),this._pullUltraChangeMessageQue.length=0,(l=this._pullUltraChangeMessageQue).push.apply(l,u),s?this._pullUltraChangeMessageList(c):this._lastPullingUltraChangeMessageTime=c,[2]):[2]}}))}))},t.prototype._ultraChannelTypeChangeNotice=function(e){var t=this,n=[];e.forEach((function(e){var r=e.targetId,i=e.changeType,o=e.subChangeType,s=e.channelId,a=void 0===s?"":s;if(i===oe.CHANNEL_CHANGE&&t._ultraGroupMap["".concat(a,"_").concat(r)]){var c=se.PUBLIC_TO_PRIVATE,u=se.PRIVATE_TO_PUBLIC,l=se.PUBLIC_TO_PRIVATE_USER_NOT_IN;o===u&&(t._ultraGroupMap["".concat(a,"_").concat(r)].channelType=re.PUBLIC),o===c&&(t._ultraGroupMap["".concat(a,"_").concat(r)].channelType=re.PRIVATE);var f=t._ultraGroupMap["".concat(a,"_").concat(r)].channelType,h=void 0===f?re.PUBLIC:f;[c,u,l].includes(o)&&n.push({targetId:r,channelId:a,changeType:o,channelType:h}),o===l&&delete t._ultraGroupMap["".concat(a,"_").concat(r)]}})),n.length>0&&this._watcher.ultraGroupChannelChangeType(n)},t.prototype._ultraChannelDeleteNotice=function(e){var t=this,n=[];Array.isArray(e)&&e.forEach((function(e){var r=e.targetId,i=e.sendTime,o=e.changeType,s=e.subChangeType,a=e.channelId,c=void 0===a?"":a;if(o===oe.CHANNEL_CHANGE&&t._ultraGroupMap["".concat(c,"_").concat(r)]){var u=t._ultraGroupMap["".concat(c,"_").concat(r)].channelType,l=void 0===u?re.PUBLIC:u;s===se.CHANNEL_DELETE&&(n.push({targetId:r,channelId:c,channelType:l,deleteTime:i}),delete t._ultraGroupMap["".concat(c,"_").concat(r)])}})),n.length>0&&this._watcher.ultraGroupChannelDelete(n)},t.prototype._ultraChannelUserKickedNotice=function(e){var t=this,n=[];e.forEach((function(e){var r=e.targetId,i=e.changeType,o=e.operatorId,s=e.subChangeType,a=e.channelId,c=void 0===a?"":a;i===oe.CHANNEL_CHANGE&&t._ultraGroupMap["".concat(c,"_").concat(r)]&&(s===se.CHANNEL_USER_KICKED&&n.push({targetId:r,channelId:c,userId:o,channelType:re.PRIVATE}),o===t.currentUserId&&s===se.CHANNEL_USER_KICKED&&delete t._ultraGroupMap["".concat(c,"_").concat(r)])})),n.length>0&&this._watcher.ultraGroupChannelUserKicked(n)},t.prototype._ultraRecalledNotice=function(e){var t=this,n=[];e.forEach((function(e){var r=e.targetId,i=e.conversationType,o=e.sendTime,s=e.messageUId,a=e.changeType,c=e.operatorId,u=e.channelId,l=void 0===u?"":u;a===oe.MSG_RECALL&&(t._updateUltraGroupWhenRecallMsg(r,l,s,o),n.push({targetId:r,conversationType:i,sendTime:o,messageUId:s,senderUserId:c,channelId:l}))})),n.length>0&&this._watcher.ultraGroupMessageRecalled(n)},t.prototype._ultraMsgUpdateNotice=function(e,t){var n=this;if(t.find((function(t){return e.includes(t.changeType)}))){var r={};t.forEach((function(t){var i=t.targetId,o=t.conversationType,s=t.sendTime,a=t.messageUId,c=t.changeType,u=t.channelId,l=void 0===u?"":u,f="".concat(o,"_").concat(i),h="".concat(a,"_").concat(l,"_").concat(s),d=r[f];if(d)d.add(h);else{var p=new Set([h]);r[f]=p}e.includes(c)&&(n._ultraMsgChangeMap[a]=c)}));var i=function(e){var t=e.split("_"),n=t.shift(),i=t.join("_"),s=r[e],a=[];s.forEach((function(e){var t=e.split("_"),n=t[0],r=t[1],i=t[2];a.push({sendTime:Number(i),messageUId:n,channelId:r})}));var c={targetId:i,conversationType:Number(n),messages:a};o._pullUltraMessageList(c)},o=this;for(var s in r)i(s)}},t.prototype._pullUltraMessageList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u=this;return M(this,(function(l){switch(l.label){case 0:return this._channel?this._status!==k.CONNECTED?[2,{code:L.RC_NET_UNAVAILABLE}]:(t=this._channel.codec.encodeMsgQuery(e),(n=new Bi(Zi[Zi.qryMsg],t,this.currentUserId)).setHeaderQos(At.AT_LEAST_ONCE),[4,this._channel.send(n,Tr,{connectedTime:this._channel.connectedTime,currentUserId:this.currentUserId})]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return r=l.sent(),i=r.code,o=r.data,i!==L.SUCCESS?[2,{code:i,msg:L[i]}]:(s=(o||{}).list,a=[],c=[],Array.isArray(s)&&s.forEach((function(e){var t=e.targetId,n=e.channelId,r=e.messageUId,i=u._ultraGroupMap["".concat(n,"_").concat(t)];i&&i.latestMessage.messageUId===e.messageUId&&(i.latestMessage=e);var o=u._ultraMsgChangeMap["".concat(r)];o===oe.MSG_EXPANSION?a.push(e):o===oe.MSG_MODIFY&&c.push(e)})),a.length>0&&this._watcher.ultraGroupMessageExpansionUpdated(a||[]),c.length>0&&this._watcher.ultraGroupMessageModified(c||[]),[2])}}))}))},t.prototype.getUltraHistoryMsg=function(e,t,n){var r;return I(this,void 0,void 0,(function(){var i,o,s,a,c,u;return M(this,(function(l){switch(l.label){case 0:return this._channel?this._status!==k.CONNECTED?[2,{code:L.RC_NET_UNAVAILABLE}]:(i=this._channel.codec.encodeGetHistoryMsg(e,t),o=new Bi(Zi[Zi.qryUgMsg],i,this.currentUserId),et(K.L_GET_HISTORY_MSG_T,{targetId:e,conversationType:j.ULTRA_GROUP,channelId:t.channelId,timestamp:null==t?void 0:t.timestamp,count:null==t?void 0:t.count},{traceId:n}),[4,this._channel.send(o,hn,{currentUserId:this.currentUserId,conversation:{conversationType:j.ULTRA_GROUP,targetId:e}})]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return s=l.sent(),a=s.code,c=s.data,a===L.SUCCESS&&c?(u=[],null===(r=c.list)||void 0===r||r.forEach((function(e){e&&u.push(e.messageUId)})),et(K.L_GET_HISTORY_MSG_R,{code:a,messageUIds:u.join(",")},{traceId:n}),[2,{code:a,data:c}]):(tt(K.L_GET_HISTORY_MSG_R,{code:a,messageUIds:""},{traceId:n}),vt.warn("get super history message failed, code:",a,", data:",c),[2,{code:a}])}}))}))},t.prototype.searchUltraGroupMessages=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(e){return this._channel?this._status!==k.CONNECTED?[2,{code:L.RC_NET_UNAVAILABLE}]:[2,{code:L.SUCCESS}]:[2,{code:L.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.setUltraGroupDefaultNotificationLevel=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o,s,a;return M(this,(function(c){switch(c.label){case 0:return this._isUltraGroupListExist?(r=this._channel)?(i=r.codec.encodeSetUltraGroupDefaultNotificationLevel(t,n),o=new Bi(Zi[Zi.ugUnpushSet],i,e),[4,r.send(o)]):[3,2]:[2,Promise.resolve({code:L.METHOD_NOT_AVAILABLE})];case 1:return s=c.sent(),a=s.code,L.SUCCESS,[2,{code:a}];case 2:return[2,{code:L.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype.getUltraGroupDefaultNotificationLevel=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o,s,a,c;return M(this,(function(u){switch(u.label){case 0:return this._isUltraGroupListExist?(n=this._channel)?(r=n.codec.encodeGetUltraGroupDefaultNotificationLevel(t),i=new Bi(Zi[Zi.ugUnpushQuery],r,e),[4,n.send(i,rr)]):[3,2]:[2,Promise.resolve({code:L.METHOD_NOT_AVAILABLE})];case 1:return o=u.sent(),s=o.code,a=o.data,s===L.SUCCESS&&a?(c=a.unpushLevel,[2,{code:s,data:c}]):[2,{code:s}];case 2:return[2,{code:L.RC_NET_CHANNEL_INVALID}]}}))}))},t.prototype._updateUltraGroupWhenRecallMsg=function(e,t,n,r){var i="".concat(t,"_").concat(e);if(this._ultraGroupMap[i]){var o=this._ultraGroupMap[i],s=o.latestMessage;o.lastReadTime,s&&s.messageUId===n&&(o.latestMessage=null)}},t.prototype.getAllConversationState=function(){return Promise.resolve({code:L.SUCCESS,data:this._conversationManager.getAllConversationState()})},t.prototype.getUltraGroupUnreadMentionedMessages=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o;return M(this,(function(s){switch(s.label){case 0:return this._channel?this._status!==k.CONNECTED?[2,{code:L.RC_NET_UNAVAILABLE}]:this._isUltraGroupListExist?(t=this._channel.codec.encodeUnreadMentionedMsgQuery(e),n=new Bi(Zi[Zi.qryUgUal],t,this.currentUserId),[4,this._channel.send(n,nr)]):[2,Promise.resolve({code:L.METHOD_NOT_AVAILABLE})]:[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return r=s.sent(),i=r.code,o=r.data,i===L.SUCCESS&&o?[2,{code:i,data:o}]:[2,{code:i}]}}))}))},t.prototype.getUltraGroupFirstUnreadMessageTimestamp=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i;return M(this,(function(o){return this._channel?this._status!==k.CONNECTED?[2,{code:L.RC_NET_UNAVAILABLE}]:this._isUltraGroupListExist?(t=e.targetId,n=e.channelId,r=this._ultraGroupMap["".concat(n,"_").concat(t)]||{},i=r.firstUnreadMessage||null,[2,{code:L.SUCCESS,data:i}]):[2,Promise.resolve({code:L.METHOD_NOT_AVAILABLE})]:[2,{code:L.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.bindRTCRoomForChatroom=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i;return M(this,(function(o){switch(o.label){case 0:return this._channel?(t=e.chatRoomId,n=this._channel.codec.encodebindRTCRoomForChatroom(e),r=new Bi(Zi[Zi.setRtcRoomId],n,t),[4,this._channel.send(r)]):[2,L.RC_NET_CHANNEL_INVALID];case 1:return i=o.sent(),[2,i.code]}}))}))},t.prototype.rtcSignaling=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c;return M(this,(function(u){switch(u.label){case 0:return this._channel?(i=r instanceof ArrayBuffer?Array.prototype.slice.call(new Int8Array(r)):r,o=n?new Bi(t,i,e):new Pi(t,i,e),[4,this._channel.send(o)]):[2,{code:L.RC_NET_CHANNEL_INVALID}];case 1:return s=u.sent(),a=s.code,c=s.data,[2,{code:a,buffer:null==c?void 0:c.data}]}}))}))},t.prototype.rtcPing=function(e,t,n){return I(this,void 0,void 0,(function(){var r;return M(this,(function(i){switch(i.label){case 0:return r=Oo(this.rtcCodec,t,n),[4,this.rtcSignaling(e,Zi[Zi.rtcPing],!0,r)];case 1:return[2,i.sent().code]}}))}))},t.prototype.getDeviceId=function(){return st(this.runtime)},t.prototype.getOSInfo=function(){return I(this,void 0,void 0,(function(){return M(this,(function(e){return[2,{code:L.NOT_SUPPORT}]}))}))},t.prototype.getProcessInfo=function(){return I(this,void 0,void 0,(function(){return M(this,(function(e){return[2,{code:L.NOT_SUPPORT}]}))}))},t.prototype.getMainProcessInfo=function(){return I(this,void 0,void 0,(function(){return M(this,(function(e){return[2,{code:L.NOT_SUPPORT}]}))}))},t.prototype.callExtra=function(e){return Promise.resolve({code:L.EXTRA_METHOD_UNDEFINED})},t.prototype.getConversationListWithAllChannel=function(){throw new Error("Method not implemented.")},t.prototype.getConversationListWithAllChannelByPage=function(e,t){throw new Error("Method not implemented.")},t.prototype.getConversationsByPage=function(e,t,n,r){throw new Error("Method not implemented.")},t.prototype.getHistoryMessagesByObjectNames=function(e,t,n,r,i,o,s){throw new Error("Method not implemented.")},t.prototype.clearConversations=function(){throw new Error("Method not implemented.")},t.prototype.setUserStatusListener=function(e,t){throw new Error("Method not implemented.")},t.prototype.setUserStatus=function(e){throw new Error("Method not implemented.")},t.prototype.subscribeUserStatus=function(e){throw new Error("Method not implemented.")},t.prototype.getUserStatus=function(e){throw new Error("Method not implemented.")},t.prototype.addToBlacklist=function(e){throw new Error("Method not implemented.")},t.prototype.removeFromBlacklist=function(e){throw new Error("Method not implemented.")},t.prototype.getBlacklist=function(){throw new Error("Method not implemented.")},t.prototype.getBlacklistStatus=function(e){throw new Error("Method not implemented.")},t.prototype.insertMessage=function(e,t,n){throw new Error("Method not implemented.")},t.prototype.deleteMessages=function(e){throw new Error("Method not implemented.")},t.prototype.deleteMessagesByTimestamp=function(e,t,n,r,i){throw new Error("Method not implemented.")},t.prototype.clearMessages=function(e,t,n){throw new Error("Method not implemented.")},t.prototype.getMessage=function(e){throw new Error("Method not implemented.")},t.prototype.setMessageContent=function(e,t,n){throw new Error("Method not implemented.")},t.prototype.setMessageSearchField=function(e,t,n){throw new Error("Method not implemented.")},t.prototype.searchConversationByContent=function(e,t,n,r){throw new Error("Method not implemented.")},t.prototype.searchConversationByContentWithAllChannel=function(e,t,n){throw new Error("Method not implemented.")},t.prototype.searchMessageByContent=function(e,t,n,r,i,o){throw new Error("Method not implemented.")},t.prototype.searchMessageByContentWithAllChannel=function(e,t,n,r,i){throw new Error("Method not implemented.")},t.prototype.searchMessageByContentInTimeRangeWithAllChannel=function(e,t,n,r,i,o,s){throw new Error("Method not implemented.")},t.prototype.getUnreadMentionedMessages=function(e,t){throw new Error("Method not implemented.")},t.prototype.setMessageSentStatus=function(e,t){throw new Error("Method not implemented.")},t.prototype.updateMessageReceiptStatus=function(e,t,n,r){throw new Error("Method not implemented.")},t.prototype.setMessageReceivedStatus=function(e,t){throw new Error("Method not implemented.")},t.prototype.clearData=function(){throw new Error("Method not implemented.")},t.prototype.clearUnreadCountByTimestamp=function(e,t,n,r){throw new Error("Method not implemented.")},t}(Lo),vs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.joinRTCRoom=function(e,t,n,r,i,o){return this._context.joinRTCRoom(e,t,n,r,i,o)},t.prototype.quitRTCRoom=function(e){return this._context.quitRTCRoom(e)},t.prototype.rtcPing=function(e,t,n){return this._context.rtcPing(e,t,n)},t.prototype.getRTCRoomInfo=function(e){return this._context.getRTCRoomInfo(e)},t.prototype.getRTCUserInfoList=function(e){return this._context.getRTCUserInfoList(e)},t.prototype.getRTCUserInfo=function(e){return this._context.getRTCUserInfo(e)},t.prototype.setRTCUserInfo=function(e,t,n){return this._context.setRTCUserInfo(e,t,n)},t.prototype.removeRTCUserInfo=function(e,t){return this._context.removeRTCUserInfo(e,t)},t.prototype.setRTCData=function(e,t,n,r,i,o){return this._context.setRTCData(e,t,n,r,i,o)},t.prototype.setRTCTotalRes=function(e,t,n,r,i){return this._context.setRTCTotalRes(e,t,n,r,i)},t.prototype.setRTCCDNUris=function(e,t,n){return this._context.setRTCCDNUris(e,t,n)},t.prototype.getRTCData=function(e,t,n,r){return this._context.getRTCData(e,t,n,r)},t.prototype.removeRTCData=function(e,t,n,r,i){return this._context.removeRTCData(e,t,n,r,i)},t.prototype.setRTCOutData=function(e,t,n,r){return this._context.setRTCOutData(e,t,n,r)},t.prototype.getRTCOutData=function(e,t){return this._context.getRTCOutData(e,t)},t.prototype.getRTCToken=function(e,t,n){return this._context.getRTCToken(e,t,n)},t.prototype.setRTCState=function(e,t){return this._context.setRTCState(e,t)},t.prototype.getRTCUserList=function(e){return this._context.getRTCUserList(e)},t.prototype.joinLivingRoomAsAudience=function(e,t,n){return this._context.joinLivingRoomAsAudience(e,t,n)},t.prototype.quitLivingRoomAsAudience=function(e){return this._context.quitLivingRoomAsAudience(e)},t.prototype.rtcIdentityChange=function(e,t,n){return this._context.rtcIdentityChange(e,t,n)},t.prototype.requestRoomPK=function(e){return this._context.requestRoomPK(e)},t.prototype.cancelRoomPK=function(e){return this._context.cancelRoomPK(e)},t.prototype.responseRoomPK=function(e){return this._context.responseRoomPK(e)},t.prototype.endRoomPK=function(e){return this._context.endRoomPK(e)},t.prototype.registerRTCSignalListener=function(e){this._context.registerRTCSignalingListener(e)},t.prototype.rtcSignaling=function(e,t,n,r){return this._context.rtcSignaling(e,t,n,r)},t.prototype.getRTCJoinedUserInfo=function(e){return this._context.getRTCJoinedUserInfo(e)},t}(Po);function ys(e){return m({},e)}var ms,Is=function(){function e(e,t){var n;this._runtime=e,this._token="",this._pluginContextQueue=[],this._pluginInstanseMap={},this.coreVersion="5.5.3",this._versionInfo={},this._typingInfo={},this._isInternalConnected=!1,this._connectionStatus=k.DISCONNECTED,this._canRedirectConnect=!1,this._watcher={message:void 0,batchMessage:void 0,conversationState:void 0,chatroomState:void 0,connectionState:void 0,rtcInnerWatcher:void 0,expansion:void 0,tag:void 0,conversationTagChanged:void 0,pullFinished:void 0,onConnecting:void 0,onConnected:void 0,onDisconnect:void 0,onSuspend:void 0,readReceiptReceived:void 0,messageReceiptRequest:void 0,messageReceiptResponse:void 0,typingState:void 0,messageBlocked:void 0,ultraGroupEnable:void 0,operateStatus:void 0,ultraGroupMessageExpansionUpdated:void 0,ultraGroupMessageModified:void 0,ultraGroupMessageRecalled:void 0,ultraGroupChannelChangeType:void 0,ultraGroupChannelUserKicked:void 0,ultraGroupChannelDelete:void 0},this._typingInternalTimer=-1,this._typingExpireTime=2e3,this._typingChangedList=[],this._registerMessageSearchPropsMapping={},this.getChatRoomHistoryMessages=this.getChatroomHistoryMessages,this._options=m({},t),this.appkey=this._options.appkey,this.apiVersion=this._options.apiVersion,this.apiPKGName=this._options.apiPKGName||"",this._options.typingExpireTime&&(this._options.typingExpireTime<2e3?this._typingExpireTime=2e3:this._options.typingExpireTime>6e3?this._typingExpireTime=6e3:this._typingExpireTime=this._options.typingExpireTime),this._options.navigators=this._options.navigators.filter((function(e){return/^https?:\/\//.test(e)})),this._options.navigators=this._options.navigators.map((function(e){return e.replace(/\/$/g,"")})),0===this._options.navigators.length&&(n=this._options.navigators).push.apply(n,s),Ai({bundleId:this.apiPKGName}),function(e){Je=ut.init(m(m({},e),{sessionId:Pe})),pt()}({runtime:this._runtime,logSwitch:1,logPolicy:JSON.parse("{}"),appkey:this.appkey,version:this.apiVersion});var r={status:this._connectionStatusListener.bind(this),batchMessage:this._batchMessageReceiver.bind(this),chatroom:this._chatroomInfoListener.bind(this),conversation:this._conversationInfoListener.bind(this),expansion:this._expansionInfoListener.bind(this),tag:this._tagListener.bind(this),conversationTag:this._conversationTagListener.bind(this),onRTCDataChange:this._rtcDataChange.bind(this),pullFinished:this._pullFinishedListener.bind(this),ultraGroupEnable:this._ultraGroupEnableListener.bind(this),operateStatus:this._operateStatusListener.bind(this),ultraGroupMessageExpansionUpdated:this._ultraGroupMessageExpansionUpdatedListener.bind(this),ultraGroupMessageModified:this._ultraGroupMessageModifiedListener.bind(this),ultraGroupMessageRecalled:this._ultraGroupMessageRecalledListener.bind(this),ultraGroupChannelChangeType:this._ultraGroupChannelChangeTypeListener.bind(this),ultraGroupChannelUserKicked:this._ultraGroupChannelUserKickedListener.bind(this),ultraGroupChannelDelete:this._ultraGroupChannelDeleteListener.bind(this),onNaviDataChange:this._naviDataChange.bind(this)};this._rtcCodec=this.createCodec(Co,To),this._engine=Ht()?new RCCppEngine(e,this._rtcCodec,r,this._options):new gs(e,this._rtcCodec,r,this._options)}return e.init=function(t,n){return Ke({customLogPrint:n.logStdout,localLogLevel:n.logLevel}),vt.setLogLevel(n.logLevel),vt.setLogStdout(n.logStdout),et(K.L_INIT_O,{appkey:n.appkey,navigators:n.navigators,connectionType:n.connectionType,logLevel:n.logLevel,typingExpireTime:n.typingExpireTime}),!1===n.indexDBSwitch&&(xe.indexDBSwitch=!1),et(K.L_IMSDK_VER_O,{commitId:"91c274754ff48547d8f76b79194ed406200cffe4",version:"5.5.3"}),vt.debug("APIContext.init =>",n.appkey,n.navigators),this._context?(vt.error("Repeat initialize!"),this._context):(vt.warn("RCEngine Commit:","91c274754ff48547d8f76b79194ed406200cffe4"),this._context=new e(t,n),this._context)},e.destroy=function(){this._context&&(this._context._destroy(),this._context=void 0)},e.prototype.createCodec=function(e,t){return"comet"!==this._options.connectionType||Ht()?new jo(e,t):new xo(e)},e.prototype.install=function(e,t){if(this._pluginInstanseMap[e.tag])return vt.warn("Repeat install plugin: ".concat(e.tag)),this._pluginInstanseMap[e.tag];var n="RCRTC"===e.tag?new vs(this):new Po(this),r=null;try{if(!e.verify(this._runtime))return null;r=e.setup(n,this._runtime,t)}catch(e){vt.error("install plugin error!\n",e)}return["RCRTC","RCCall"].includes(e.tag)&&e.version&&e.name&&(this._versionInfo[e.name]=e.version),r&&(this._pluginContextQueue.push(n),this._pluginInstanseMap[e.tag]=r),r},e.prototype._handleRedirect=function(){return I(this,void 0,void 0,(function(){var e,t=this;return M(this,(function(n){switch(n.label){case 0:return vt.debug("_handleRedirct",this._token),[4,this.connect(this._token,!0)];case 1:return(e=n.sent().code)!==L.SUCCESS&&this._canRedirectConnect&&(this._handleSuspend(e),setTimeout((function(){t._handleRedirect()}),5e3)),[2]}}))}))},e.prototype._connectionStatusListener=function(e){var t,n,r,i;return I(this,void 0,void 0,(function(){return M(this,(function(o){switch(et(K.L_CONNECT_S,{status:e}),[k.REDIRECT,k.BLOCKED,k.KICKED_OFFLINE_BY_OTHER_CLIENT,k.DISCONNECT_BY_SERVER,k.DISCONNECTED,k.NETWORK_UNAVAILABLE].includes(e)&&(bi(Qi.IM_CONNECTION_DURATION,{endTime:(new Date).getTime(),code:e}),function(e){I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u;return M(this,(function(l){switch(l.label){case 0:t=Qi.IM_CONNECTION_DURATION,n=_i().bundleId,r=Ni(t),i=r.startTime,o=r.endTime,s=r.code,a=Mi.UNKONWN,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,e.getNetworkType()];case 2:return a=l.sent(),[3,4];case 3:return c=l.sent(),vt.debug(c.message),[3,4];case 4:return u=0,ve(i)&&ve(o)&&o>i&&i&&(u=o-i),mi(t,{bid:n,cod:s,dur:u,net:a}),[2]}}))}))}(this._runtime)),this._connectionStatus=e,e){case k.REDIRECT:this._canRedirectConnect=!0,this._handleSuspend(e),this._handleRedirect();break;case k.BLOCKED:case k.KICKED_OFFLINE_BY_OTHER_CLIENT:case k.DISCONNECT_BY_SERVER:case k.FORBID_RECONNECT_BY_OTHER_SAME_CLIENT:this._canRedirectConnect=!1,this._handleDisconnect(e);break;case k.CONNECTING:this._handleConnecting();break;case k.CONNECTED:this._handleConnected();break;case k.DISCONNECTED:this._handleDisconnect(e);break;default:this._handleSuspend(e)}return null===(n=null===(t=this._watcher.rtcInnerWatcher)||void 0===t?void 0:t.status)||void 0===n||n.call(t,e),this._pluginContextQueue.forEach((function(t){var n;null===(n=t.onconnectionstatechange)||void 0===n||n.call(t,e)})),null===(i=(r=this._watcher).connectionState)||void 0===i||i.call(r,e),[2]}))}))},e.prototype._handleConnecting=function(){this._watcher.onConnecting&&this._watcher.onConnecting()},e.prototype._handleConnected=function(){this._watcher.onConnected&&this._watcher.onConnected()},e.prototype._handleDisconnect=function(e){this._watcher.onDisconnect&&this._watcher.onDisconnect(e)},e.prototype._handleSuspend=function(e){this._watcher.onSuspend&&this._watcher.onSuspend(e)},e.prototype._messageReceiver=function(e,t,n){var r,i,o,s,a;if((e.conversationType===j.RTC_ROOM||Object.prototype.hasOwnProperty.call(de,e.messageType))&&this._watcher.rtcInnerWatcher&&this._watcher.rtcInnerWatcher.message)this._watcher.rtcInnerWatcher.message(ys(e));else if(-1===["RC:ChrmJoinNtf","RC:ChrmQuitNtf"].indexOf(e.messageType)||"function"!=typeof this._watcher.chatroomState){if("RC:ChrmMemChange"!==e.messageType){if(e.messageType!==z.TYPING_STATUS||(this._addTypingInfo(ys(e)),!this._watcher.typingState)){if(e.messageType===z.LOG_COMMAND&&"rongcloudsystem"===e.senderUserId){var c=e.content,u=c.startTime,l=c.endTime,f=c.platform,h=c.logId,d=c.uri,p=c.packageName,g={startTime:parseInt(u,10),endTime:parseInt(l,10),platform:f,logId:h,uri:d,packageName:p};return et(K.L_REPORT_FULL_LOG_O,g),void(null===(i=ut.getInstance())||void 0===i||i.reportFullLog(g))}if(e.messageType!==z.INTERCEPT){if(!this._pluginContextQueue.some((function(t){if(!t.onmessage)return!1;try{return t.onmessage(ys(e))}catch(e){return vt.error("plugin error =>",e),!1}})))if(null===(s=(o=this._watcher).message)||void 0===s||s.call(o,ys(e),t,n),"RC:ReadNtf"!==e.messageType)if("RC:RRReqMsg"!==e.messageType){if("RC:RRRspMsg"!==e.messageType)return e;var v=null===(a=e.content)||void 0===a?void 0:a.receiptMessageDic,y=this._engine.getCurrentUserId();v&&Array.isArray(v[y])&&"function"==typeof this._watcher.messageReceiptResponse&&this._watcher.messageReceiptResponse({conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},e.senderUserId,v[y])}else"function"==typeof this._watcher.messageReceiptRequest&&this._watcher.messageReceiptRequest({conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},e.content.messageUId,e.senderUserId);else"function"==typeof this._watcher.readReceiptReceived&&this._watcher.readReceiptReceived({conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},e.content.messageUId,e.content.lastMessageSendTime)}else{var m={conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId||"",blockType:e.content.interceptType,blockedMessageUId:e.content.msgUId,extra:e.content.extra};if(e.conversationType===j.ULTRA_GROUP){var I=e.content.sourceType;if(m.sourceType=I,(I===ee.MSG_EXPANSION||I===ee.MSG_MODIFY)&&e.content.sourceContent)try{m.sourceContent=JSON.parse(e.content.sourceContent)}catch(e){tt(K.L_CALLBACK_E,{source:"message.content.sourceContent",msg:e.message})}}this._MessageBlockedListener(m)}}}else if("function"==typeof this._watcher.chatroomState){var M={};Array.isArray(e.content.userList)&&e.content.userList.forEach((function(e){M[e.userId]=e.status})),this._watcher.chatroomState({userChange:{users:M,chatroomId:e.targetId}})}}else this._watcher.chatroomState({userChange:{users:(r={},r[e.senderUserId]="RC:ChrmQuitNtf"===e.messageType?te.QUIT:te.JOIN,r),chatroomId:e.targetId}})},e.prototype._batchMessageReceiver=function(e,t,n){var r=this,i=[];e.forEach((function(e){var o=r._messageReceiver(e,t,n);o&&i.push(o)})),i.length&&this._watcher.batchMessage&&(vt.info("pullMsg apiContext filtered -> ".concat(JSON.stringify(i.map((function(e){return e.messageUId}))))),this._watcher.batchMessage(i))},e.prototype._chatroomInfoListener=function(e){var t,n;null===(n=(t=this._watcher).chatroomState)||void 0===n||n.call(t,e)},e.prototype._conversationInfoListener=function(e){var t,n;null===(n=(t=this._watcher).conversationState)||void 0===n||n.call(t,e)},e.prototype._expansionInfoListener=function(e){var t,n;null===(n=(t=this._watcher).expansion)||void 0===n||n.call(t,e)},e.prototype._tagListener=function(){var e,t;null===(t=(e=this._watcher).tag)||void 0===t||t.call(e)},e.prototype._conversationTagListener=function(){var e,t;null===(t=(e=this._watcher).conversationTagChanged)||void 0===t||t.call(e)},e.prototype._typingStatusListener=function(e){var t,n;null===(n=(t=this._watcher).typingState)||void 0===n||n.call(t,e)},e.prototype._pullFinishedListener=function(){var e,t;null===(t=(e=this._watcher).pullFinished)||void 0===t||t.call(e)},e.prototype._MessageBlockedListener=function(e){var t,n;null===(n=(t=this._watcher).messageBlocked)||void 0===n||n.call(t,e)},e.prototype._ultraGroupEnableListener=function(e){var t,n;null===(n=(t=this._watcher).ultraGroupEnable)||void 0===n||n.call(t,e)},e.prototype._operateStatusListener=function(e){var t,n;null===(n=(t=this._watcher).operateStatus)||void 0===n||n.call(t,e)},e.prototype._ultraGroupMessageExpansionUpdatedListener=function(e){var t,n;null===(n=(t=this._watcher).ultraGroupMessageExpansionUpdated)||void 0===n||n.call(t,e)},e.prototype._ultraGroupMessageModifiedListener=function(e){var t,n;null===(n=(t=this._watcher).ultraGroupMessageModified)||void 0===n||n.call(t,e)},e.prototype._ultraGroupMessageRecalledListener=function(e){var t,n;null===(n=(t=this._watcher).ultraGroupMessageRecalled)||void 0===n||n.call(t,e)},e.prototype._ultraGroupChannelChangeTypeListener=function(e){var t,n;null===(n=(t=this._watcher).ultraGroupChannelChangeType)||void 0===n||n.call(t,e)},e.prototype._ultraGroupChannelUserKickedListener=function(e){var t,n;null===(n=(t=this._watcher).ultraGroupChannelUserKicked)||void 0===n||n.call(t,e)},e.prototype._ultraGroupChannelDeleteListener=function(e){var t,n;null===(n=(t=this._watcher).ultraGroupChannelDelete)||void 0===n||n.call(t,e)},e.prototype._rtcDataChange=function(e,t){this._pluginContextQueue.forEach((function(n){var r;null===(r=n.onrtcdatachange)||void 0===r||r.call(n,e,t)}))},e.prototype._naviDataChange=function(e){Eo(this.appkey,this._getTokenWithoutNavi(),e,this._runtime.localStorage),this._pluginContextQueue.forEach((function(t){null==t||t.onnavidatachange(e)}))},e.prototype.assignWatcher=function(e){var t=this;Object.keys(this._watcher).forEach((function(n){if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n];t._watcher[n]=Te(r)||Ce(r)?r:void 0}}))},e.prototype.resetWatcher=function(){var e=this;Object.keys(this._watcher).forEach((function(t){e._watcher[t]=void 0}))},e.prototype._addTypingInfo=function(e){var t=e.senderUserId,n=e.conversationType,r=e.targetId,i=e.content,o=e.channelId,s=i.typingContentType,a=o||"",c="".concat(n,"#").concat(r,"#").concat(a);this._typingInfo[c]||(this._typingInfo[c]=[]);var u=this._typingInfo[c].findIndex((function(e){return e.userId===t}));u>=0&&this._typingInfo[c][u].messageType===s?this._typingInfo[c][u].timestamp=Date.now():(u>=0&&this._typingInfo[c].splice(u,1),this._typingInfo[c].push({userId:t,messageType:s,timestamp:Date.now()}),this._typingChangedList.includes(c)||this._typingChangedList.push(c),this._startCheckTypingInfo())},e.prototype._startCheckTypingInfo=function(){var e=this;-1===this._typingInternalTimer&&0!==Object.keys(this._typingInfo).length&&(this._typingInternalTimer=setInterval((function(){for(var t in e._typingInfo){var n=e._typingInfo[t].length;e._typingInfo[t]=e._typingInfo[t].filter((function(t){return Date.now()-t.timestamp<e._typingExpireTime})),e._typingInfo[t].length===n||e._typingChangedList.includes(t)||e._typingChangedList.push(t),0===e._typingInfo[t].length&&delete e._typingInfo[t]}if(e._typingChangedList.length>0){var r=e._typingChangedList.map((function(t){return{conversationType:Number(t.split("#")[0]),targetId:t.split("#")[1],channelId:t.split("#")[2],list:e._typingInfo[t]||[]}}));e._typingStatusListener(r),e._typingChangedList=[]}0===Object.keys(e._typingInfo).length&&(clearInterval(e._typingInternalTimer),e._typingInternalTimer=-1)}),500))},e.prototype.getConnectedTime=function(){return this._engine.getConnectedTime()},e.prototype.getServerTime=function(){return this._engine.getServerTime()},e.prototype.getDeviceId=function(){return this._engine.getDeviceId()},e.prototype.getCurrentUserId=function(){return this._engine.getCurrentUserId()},e.prototype.getConnectionStatus=function(){return this._connectionStatus},Object.defineProperty(e.prototype,"token",{get:function(){return this._token},enumerable:!1,configurable:!0}),e.prototype.connect=function(e,t,n,r){var i,o;return void 0===t&&(t=!1),I(this,void 0,void 0,(function(){var s,a,c,u,l,f;return M(this,(function(h){switch(h.label){case 0:return this._connectionStatus===k.CONNECTED?[2,{code:L.SUCCESS,userId:this._engine.getCurrentUserId()}]:this._connectionStatus===k.CONNECTING?[2,{code:L.BIZ_ERROR_CONNECTING}]:"string"!=typeof e||0===e.length?[2,{code:L.RC_CONN_USER_OR_PASSWD_ERROR}]:(this._token=e,[4,this.reqNaviInfo(t,r)]);case 1:return s=h.sent(),a=s.code,c=s.data,a!==L.SUCCESS?[2,{code:a}]:(et(K.L_ENV_S,{isEnterprise:1===(null==c?void 0:c.type)},{traceId:r}),1===(null==c?void 0:c.type)?[2,{code:L.PACKAGE_ENVIRONMENT_ERROR}]:(u=Ct.getInfo(),et(K.L_CONNECT_T,{token:e,refreshNavi:t,reconnectKickEnable:n},{traceId:r}),[4,this._engine.connect(this._getTokenWithoutNavi(),c,n,r)]));case 2:return l=h.sent(),(l===L.SUCCESS?et:tt)(K.L_CONNECT_R,{code:l,userId:this._engine.getCurrentUserId()},{traceId:r}),l===U.REDIRECT?(this._connectionStatus=k.REDIRECT,[2,this.connect(e,!0)]):(f=this._engine.getCurrentUserId(),l===L.SUCCESS&&(bi(Qi.IM_CONNECTION_DURATION,{startTime:(new Date).getTime()},!0),vt.info("connect success, userId: ".concat(f)),1!==(null==c?void 0:c.type)&&(null===(o=(i=this._engine).reportSDKInfo)||void 0===o||o.call(i,u)),ht({runtime:this._runtime,logSwitch:(null==c?void 0:c.logSwitch)||0,logPolicy:JSON.parse((null==c?void 0:c.logPolicy)||"{}"),appkey:this.appkey,version:this.apiVersion,userId:f}),Ke({userId:f}),this._isInternalConnected=!0),l!==L.SUCCESS||Ht()||1===c.openUS&&this._pullUserSettings(),l!==L.SUCCESS&&(this._connectionStatus=k.CONNECTION_CLOSED),[2,{code:l,userId:f}])}}))}))},e.prototype._pullUserSettings=function(){return I(this,void 0,void 0,(function(){return M(this,(function(e){return[2]}))}))},e.prototype.disconnect=function(){var e;return this._isInternalConnected=!1,clearInterval(this._typingInternalTimer),this._typingInternalTimer=-1,this._typingInfo={},null===(e=ut.getInstance())||void 0===e||e.distroy(),Ke({userId:""}),this._engine.disconnect(),this._pluginContextQueue.forEach((function(e){if(e.ondisconnect)try{e.ondisconnect()}catch(e){vt.error("plugin error =>",e)}})),Promise.resolve()},e.prototype.reconnect=function(e){return this._isInternalConnected?Promise.resolve({code:L.CAN_NOT_RECONNECT}):this.connect(this._getTokenWithoutNavi(),!1,e)},e.prototype._getTokenWithoutNavi=function(){return this._token.replace(/@.+$/,"@")},e.prototype.getInfoFromCache=function(){return this._engine.getNaviInfoFromCache()},e.prototype.reqNaviInfo=function(e,t){return I(this,void 0,void 0,(function(){var n,r,i,o;return M(this,(function(s){switch(s.label){case 0:return n=this._token.split("@"),r=n[1],i=r?r.split(";").map((function(e){return/^https?:/.test(e)?e:"https://".concat(e)})):[],t||(t=We()),et(K.L_GET_NAVI_T,{token:this._token,uris:i},{traceId:t}),[4,this._engine.getNaviInfo(this._getTokenWithoutNavi(),i,e,this._options.checkCA)];case 1:return(o=s.sent())?(this._engine.updateNaviInfo(o),et(K.L_GET_NAVI_R,{code:L.SUCCESS,naviInfo:o},{traceId:t}),[2,{code:L.SUCCESS,data:m({},o)}]):(tt(K.L_GET_NAVI_R,{code:L.RC_NAVI_RESOURCE_ERROR},{traceId:t}),[2,{code:L.RC_NAVI_RESOURCE_ERROR,msg:L[L.RC_NAVI_RESOURCE_ERROR]}])}}))}))},e.prototype.registerMessageType=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=!1),ye(r)&&r.length>0&&(this._registerMessageSearchPropsMapping[e]=r),this._engine.registerMessageType(e,t,n,r,i)},e.prototype.registerRTCSignalingListener=function(e){this._engine.registerRTCSignalingListener(e)},e.prototype.checkSearchPropsMsg=function(e,t){var n=this._registerMessageSearchPropsMapping[e],r={};return n&&Ce(t)&&Object.keys(t).forEach((function(e){if(n.includes(e)){var i=t[e];ve(i)&&(i>-Math.pow(2,64)&&i<Math.pow(2,64)&&Number.isInteger(i)||(r[e]=i))}})),Object.keys(r).length>0?{msg:JSON.stringify(r),code:L.SEARCH_PROPS_LIMIT_ERROR}:{code:L.SUCCESS}},e.prototype.sendMessage=function(e,t,n,r,i){var o=this.checkSearchPropsMsg(n.messageType,n.content),s=o.code,a=o.msg;if(s!==L.SUCCESS)return Promise.resolve({code:s,msg:a});if(e!==j.ULTRA_GROUP){var c=this.getInfoFromCache();if(1===((null==c?void 0:c.grpRRVer)||0)&&n.messageType===z.READ_RECEIPT_RESPONSE)return Promise.resolve({code:L.READ_RECEIPT_ERROR})}var u=n.canIncludeExpansion,l=void 0!==u&&u,f=n.expansion;if(l){var h=De(f),d=h.isIllgalEx,p=h.isExKeyOrValLengthExceedLimit;if(h.isExceedLimit||p)return Promise.resolve({code:L.EXPANSION_LIMIT_EXCEET});if(d)return Promise.resolve({code:L.BIZ_ERROR_INVALID_PARAMETER})}var g=JSON.stringify(n.content);return _(g)>131072?Promise.resolve({code:L.RC_MSG_CONTENT_EXCEED_LIMIT}):e===j.ULTRA_GROUP?this._engine.sendUltraMessage(t,n,r,i):this._engine.sendMessage(e,t,n,r,i)},e.prototype.sendExpansionMessage=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a,c,u,l,f;return M(this,(function(h){switch(h.label){case 0:return t=e.channelId,n=e.conversationType,r=e.targetId,i=e.messageUId,o=e.keys,s=e.expansion,a=e.removeAll,e.canIncludeExpansion?(c=De(s),u=c.isIllgalEx,l=c.isExKeyOrValLengthExceedLimit,c.isExceedLimit||l?[2,Promise.resolve({code:L.EXPANSION_LIMIT_EXCEET})]:u?[2,Promise.resolve({code:L.BIZ_ERROR_INVALID_PARAMETER})]:(f={mid:i},s&&(f.put=s),o&&(f.del=o),a&&(f.removeAll=1),[4,this._engine.sendMessage(n,r,{content:f,messageType:z.EXPANSION_NOTIFY,channelId:t})])):[2,{code:L.MESSAGE_KV_NOT_SUPPORT}];case 1:return[2,{code:h.sent().code}]}}))}))},e.prototype.sendReadReceiptMessage=function(e,t,n){return I(this,void 0,void 0,(function(){var r;return M(this,(function(i){return r=this.getInfoFromCache(),0===((null==r?void 0:r.grpRRVer)||0)?[2,{code:L.READ_RECEIPT_ERROR,data:"The read receipt switch is not on, please call the sendMessage method!"}]:[2,this._engine.sendReadReceiptMessage(e,t,n)]}))}))},e.prototype.getMessageReader=function(e,t,n){return I(this,void 0,void 0,(function(){var r;return M(this,(function(i){return r=this.getInfoFromCache(),0===((null==r?void 0:r.grpRRVer)||0)?[2,{code:L.READ_RECEIPT_ERROR}]:[2,this._engine.getMessageReader(e,t,n)]}))}))},e.prototype._destroy=function(){var e;this._isInternalConnected=!1,this._watcher={batchMessage:void 0,message:void 0,conversationState:void 0,chatroomState:void 0,connectionState:void 0,rtcInnerWatcher:void 0,expansion:void 0,tag:void 0,conversationTagChanged:void 0,typingState:void 0,pullFinished:void 0,onConnecting:void 0,onConnected:void 0,onDisconnect:void 0,onSuspend:void 0},this._engine.disconnect(),this._pluginContextQueue.forEach((function(e){if(e.ondestroy)try{e.ondestroy()}catch(e){vt.error("plugin error =>",e)}})),this._pluginContextQueue.length=0,this._pluginInstanseMap={},null===(e=ut.getInstance())||void 0===e||e.distroy(),Ke({userId:""})},e.prototype.getHistoryMessage=function(e,t,n,r,i,o,s,a){if(void 0===n&&(n=0),void 0===r&&(r=20),void 0===i&&(i=0),void 0===o&&(o=""),void 0===s&&(s=""),e===j.ULTRA_GROUP){var c={timestamp:n,count:r,order:i,channelId:o};return this._engine.getUltraHistoryMsg(t,c,a)}return this._engine.getHistoryMessage(e,t,n,r,i,o,s||"",a)},e.prototype.getHistoryMessagesByObjectNames=function(e,t,n,r,i,o,s){return this._engine.getHistoryMessagesByObjectNames(e,t,n,r,i,o,s)},e.prototype.getConversationList=function(e,t,n,r,i){if(void 0===e&&(e=300),void 0===i&&(i=""),t===j.ULTRA_GROUP){var o=L.METHOD_NOT_SUPPORT;return Promise.resolve({code:o,msg:L[o]})}return this._engine.getConversationList(e,t,n,r,i)},e.prototype.getConversationsByPage=function(e,t,n,r){return this._engine.getConversationsByPage(e,t,n,r)},e.prototype.getConversation=function(e,t,n){return this._engine.getConversation(e,t,n)},e.prototype.removeConversation=function(e,t,n){return void 0===n&&(n=""),e===j.ULTRA_GROUP?Promise.resolve(L.METHOD_NOT_SUPPORT):this._engine.removeConversation(e,t,n)},e.prototype.getUltraGroupList=function(e){return this._engine.getUltraGroupList(e)},e.prototype.getBlockUltraGroupList=function(){return this._engine.getBlockUltraGroupList()},e.prototype.getTopUltraGroupList=function(){return this._engine.getTopUltraGroupList()},e.prototype.clearUnreadCount=function(e,t,n){return void 0===n&&(n=""),e===j.ULTRA_GROUP?this._engine.clearUltraUnreadcount(t,n):this._engine.clearConversationUnreadCount(e,t,n)},e.prototype.clearAllUnreadCount=function(){return this._engine.clearAllUnreadCount()},e.prototype.getUnreadCount=function(e,t,n){return void 0===n&&(n=""),this._engine.getConversationUnreadCount(e,t,n)},e.prototype.getTotalUnreadCount=function(e,t,n){if(t&&t.includes(j.ULTRA_GROUP)){var r=L.METHOD_NOT_SUPPORT;return Promise.resolve({code:r,msg:L[r]})}return this._engine.getAllConversationUnreadCount(e,t&&t.length>0?t:[j.PRIVATE,j.GROUP,j.SYSTEM,j.PUBLIC_SERVICE],!!n)},e.prototype.getTotalUnreadCountByLevels=function(e,t,n){return this._engine.getTotalUnreadCountByLevels(e,t,n)},e.prototype.getFirstUnreadMessage=function(e,t,n){return void 0===n&&(n=""),this._engine.getFirstUnreadMessage(e,t,n)},e.prototype.setConversationNotificationLevel=function(e,t,n,r){return void 0===r&&(r=""),I(this,void 0,void 0,(function(){var i;return M(this,(function(o){return i=[{conversationType:e,targetId:t,notificationLevel:n,channelId:r}],[2,this._engine.batchSetConversationStatus(i)]}))}))},e.prototype.setConversationStatus=function(e,t,n,r,i){if(void 0===i&&(i=""),e===j.ULTRA_GROUP&&void 0!==n)return Promise.resolve(L.METHOD_NOT_SUPPORT);var o=[{conversationType:e,targetId:t,isTop:n,notificationStatus:r,channelId:i}];return this._engine.batchSetConversationStatus(o)},e.prototype.saveConversationMessageDraft=function(e,t,n,r){return void 0===r&&(r=""),this._engine.saveConversationMessageDraft(e,t,n,r)},e.prototype.getConversationMessageDraft=function(e,t,n){return void 0===n&&(n=""),this._engine.getConversationMessageDraft(e,t,n)},e.prototype.clearConversationMessageDraft=function(e,t,n){return void 0===n&&(n=""),this._engine.clearConversationMessageDraft(e,t,n)},e.prototype.recallMessage=function(e,t,n,r,i){return this._engine.recallMsg(e,t,n,r,i)},e.prototype.deleteRemoteMessage=function(e,t,n,r){return void 0===r&&(r=""),e===j.ULTRA_GROUP?Promise.resolve(L.METHOD_NOT_SUPPORT):this._engine.deleteRemoteMessage(e,t,n,r)},e.prototype.deleteRemoteMessageByTimestamp=function(e,t,n,r){return void 0===r&&(r=""),this._engine.deleteRemoteMessageByTimestamp(e,t,n,r)},e.prototype.joinChatroom=function(e,t,n){return void 0===t&&(t=10),this._engine.joinChatroom(e,t,n)},e.prototype.joinExistChatroom=function(e,t,n){return void 0===t&&(t=10),this._engine.joinExistChatroom(e,t,n)},e.prototype.quitChatroom=function(e){return this._engine.quitChatroom(e)},e.prototype.getChatroomInfo=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),this._engine.getChatroomInfo(e,t,n)},e.prototype.setChatroomEntry=function(e,t){var n=t.key,r=t.value;return xt(n)&&kt(r)?this._engine.setChatroomEntry(e,t):Promise.resolve(L.BIZ_ERROR_INVALID_PARAMETER)},e.prototype.setChatroomEntries=function(e,t){for(var n=0;n<t.entries.length;n++){var r=t.entries[n],i=r.key,o=r.value;if(!xt(i)||!kt(o))return Promise.resolve({code:L.BIZ_ERROR_INVALID_PARAMETER})}var s=m(m({},t),{isOverwrite:t.isForce});return this._engine.setChatroomEntries(e,s)},e.prototype.forceSetChatroomEntry=function(e,t){var n=t.key,r=t.value;return xt(n)&&kt(r)?this._engine.forceSetChatroomEntry(e,t):Promise.resolve(L.BIZ_ERROR_INVALID_PARAMETER)},e.prototype.removeChatroomEntry=function(e,t){var n=t.key;return xt(n)?this._engine.removeChatroomEntry(e,t):Promise.resolve(L.BIZ_ERROR_INVALID_PARAMETER)},e.prototype.removeChatroomEntries=function(e,t){for(var n=0;n<t.entries.length;n++){var r=t.entries[n].key;if(!xt(r))return Promise.resolve({code:L.BIZ_ERROR_INVALID_PARAMETER})}return this._engine.removeChatroomEntries(e,t)},e.prototype.forceRemoveChatroomEntry=function(e,t){var n=t.key;return xt(n)?this._engine.forceRemoveChatroomEntry(e,t):Promise.resolve(L.BIZ_ERROR_INVALID_PARAMETER)},e.prototype.getChatroomEntry=function(e,t){return this._engine.getChatroomEntry(e,t)},e.prototype.getAllChatroomEntries=function(e){return this._engine.getAllChatroomEntry(e)},e.prototype.getChatroomHistoryMessages=function(e,t,n,r){return void 0===t&&(t=20),void 0===n&&(n=0),void 0===r&&(r=0),this._engine.getChatroomHistoryMessages(e,r,t,n)},e.prototype.getFileToken=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,s,a,c,u,l;return M(this,(function(f){switch(f.label){case 0:return i=this.getInfoFromCache(),o=(null==i?void 0:i.bosAddr)||"",s=(null==i?void 0:i.uploadServer)||"",a=(null==i?void 0:i.ossConfig)||"",[4,this._engine.getFileToken(e,t,n,r)];case 1:return c=f.sent(),u=c.code,l=c.data,u===L.SUCCESS&&l?[2,Promise.resolve(Object.assign(l,{bos:o,qiniu:s,ossConfig:a}))]:[2,Promise.reject(u)]}}))}))},e.prototype.getFileUrl=function(e,t,n,r,i){return void 0===i&&(i=V.QINIU),I(this,void 0,void 0,(function(){var o,s,a;return M(this,(function(c){switch(c.label){case 0:return(null==r?void 0:r.isBosRes)?[2,Promise.resolve(r)]:[4,this._engine.getFileUrl(e,i,t,n)];case 1:return o=c.sent(),s=o.code,a=o.data,s===L.SUCCESS?[2,Promise.resolve(a)]:[2,Promise.reject(s)]}}))}))},e.prototype.createTag=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.createTag(e)]}))}))},e.prototype.removeTag=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.removeTag(e)]}))}))},e.prototype.updateTag=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.updateTag(e)]}))}))},e.prototype.getTagList=function(){return I(this,void 0,void 0,(function(){return M(this,(function(e){return[2,this._engine.getTagList()]}))}))},e.prototype.addTagForConversations=function(e,t){return I(this,void 0,void 0,(function(){return M(this,(function(n){return t.length>1e3?[2,Promise.reject(L.CONVER_OUT_LIMIT_ERROR)]:[2,this._engine.addTagForConversations(e,t)]}))}))},e.prototype.removeTagForConversations=function(e,t){return I(this,void 0,void 0,(function(){return M(this,(function(n){return[2,this._engine.removeTagForConversations(e,t)]}))}))},e.prototype.removeTagsForConversation=function(e,t){return I(this,void 0,void 0,(function(){return M(this,(function(n){return[2,this._engine.removeTagsForConversation(e,t)]}))}))},e.prototype.getConversationListByTag=function(e,t,n,r){return I(this,void 0,void 0,(function(){return M(this,(function(i){return[2,this._engine.getConversationListByTag(e,t,n,r)]}))}))},e.prototype.getUnreadCountByTag=function(e,t){return I(this,void 0,void 0,(function(){return M(this,(function(n){return[2,this._engine.getUnreadCountByTag(e,t)]}))}))},e.prototype.setConversationStatusInTag=function(e,t,n){return I(this,void 0,void 0,(function(){return M(this,(function(r){return[2,this._engine.setConversationStatusInTag(e,t,n)]}))}))},e.prototype.getTagsForConversation=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.getTagsForConversation(e)]}))}))},e.prototype.getBlockConversationList=function(){return this._engine.getBlockConversationList()},e.prototype.getTopConversationList=function(){return this._engine.getTopConversationList()},e.prototype.getUnreadMentionedCount=function(e){return this._engine.getUnreadMentionedCount(e)},e.prototype.getAllUnreadMentionedCount=function(){return this._engine.getAllUnreadMentionedCount()},e.prototype.sendUltraGroupTypingStatus=function(e){if(e.conversationType!==j.ULTRA_GROUP){var t=L.METHOD_ONLY_SUPPORT_ULTRA_GROUP;return Promise.resolve({code:t,msg:L[t]})}return this._engine.sendUltraGroupTypingStatus(e)},e.prototype.getUltraGroupMessageListByMessageUId=function(e){return this._engine.getUltraGroupMessageListByMessageUId(e)},e.prototype.expandUltraMessage=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,s,a;return M(this,(function(c){switch(c.label){case 0:return e.channelId,t=e.conversationType,e.targetId,e.messageUId,e.keys,n=e.expansion,e.removeAll,r=e.canIncludeExpansion,t!==j.ULTRA_GROUP?[2,{code:i=L.METHOD_ONLY_SUPPORT_ULTRA_GROUP,msg:L[i]}]:r?(o=De(n),s=o.isIllgalEx,a=o.isExKeyOrValLengthExceedLimit,o.isExceedLimit||a?[2,{code:L.EXPANSION_LIMIT_EXCEET}]:s?[2,{code:L.BIZ_ERROR_INVALID_PARAMETER}]:[4,this._engine.expandUltraMessage(e)]):[2,{code:L.MESSAGE_KV_NOT_SUPPORT}];case 1:return[2,{code:c.sent().code}]}}))}))},e.prototype.modifyMessage=function(e){return I(this,void 0,void 0,(function(){var t;return M(this,(function(n){switch(n.label){case 0:return e.conversationType!==j.ULTRA_GROUP?[2,{code:t=L.METHOD_ONLY_SUPPORT_ULTRA_GROUP,msg:L[t]}]:[4,this._engine.modifyMessage(e)];case 1:return[2,{code:n.sent().code}]}}))}))},e.prototype.getUltraGroupUnreadMentionedCountByTargetId=function(e,t){return this._engine.getUltraGroupUnreadMentionedCountByTargetId(e,t)},e.prototype.getUltraGroupUnreadCountByTargetId=function(e,t){return this._engine.getUltraGroupUnreadCountByTargetId(e,t)},e.prototype.getAllUltraGroupUnreadCount=function(e){return void 0===e&&(e=!1),this._engine.getAllUltraGroupUnreadCount(e)},e.prototype.getAllConversationState=function(){return this._engine.getAllConversationState()},e.prototype.getUltraGroupUnreadMentionedMessages=function(e){return this._engine.getUltraGroupUnreadMentionedMessages(e)},e.prototype.getUltraGroupFirstUnreadMessageTimestamp=function(e){return this._engine.getUltraGroupFirstUnreadMessageTimestamp(e)},e.prototype.callExtra=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(t=this._engine).callExtra.apply(t,C([e],n,!1))},e.prototype.getOSInfo=function(){return this._engine.getOSInfo()},e.prototype.getProcessInfo=function(){return this._engine.getProcessInfo()},e.prototype.getMainProcessInfo=function(){return this._engine.getMainProcessInfo()},e.prototype.clearConversations=function(e,t){return I(this,void 0,void 0,(function(){return M(this,(function(n){return[2,this._engine.clearConversations(e,t)]}))}))},e.prototype.setUserStatusListener=function(e,t){return this._engine.setUserStatusListener(e,(function(e){try{t(e)}catch(e){vt.error(e)}}))},e.prototype.addToBlacklist=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.addToBlacklist(e)]}))}))},e.prototype.removeFromBlacklist=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.removeFromBlacklist(e)]}))}))},e.prototype.getBlacklist=function(){return I(this,void 0,void 0,(function(){return M(this,(function(e){return[2,this._engine.getBlacklist()]}))}))},e.prototype.getBlacklistStatus=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.getBlacklistStatus(e)]}))}))},e.prototype.insertMessage=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i,o;return M(this,(function(s){return r=this.checkSearchPropsMsg(n.messageType,n.content),i=r.code,o=r.msg,i!==L.SUCCESS?[2,Promise.resolve({code:i,msg:o})]:[2,this._engine.insertMessage(e,t,n)]}))}))},e.prototype.deleteMessages=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.deleteMessages(e)]}))}))},e.prototype.deleteMessagesByTimestamp=function(e,t,n,r,i){return void 0===i&&(i=""),I(this,void 0,void 0,(function(){return M(this,(function(o){return[2,this._engine.deleteMessagesByTimestamp(e,t,n,r,i)]}))}))},e.prototype.clearMessages=function(e,t,n){return void 0===n&&(n=""),I(this,void 0,void 0,(function(){return M(this,(function(r){return[2,this._engine.clearMessages(e,t,n)]}))}))},e.prototype.getMessage=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.getMessage(e)]}))}))},e.prototype.setMessageContent=function(e,t,n){return I(this,void 0,void 0,(function(){return M(this,(function(r){return[2,this._engine.setMessageContent(e,t,n)]}))}))},e.prototype.setMessageSearchField=function(e,t,n){return I(this,void 0,void 0,(function(){return M(this,(function(r){return[2,this._engine.setMessageSearchField(e,t,n)]}))}))},e.prototype.setMessageSentStatus=function(e,t){return I(this,void 0,void 0,(function(){return M(this,(function(n){return[2,this._engine.setMessageSentStatus(e,t)]}))}))},e.prototype.setMessageReceivedStatus=function(e,t){return I(this,void 0,void 0,(function(){return M(this,(function(n){return[2,this._engine.setMessageReceivedStatus(e,t)]}))}))},e.prototype.setMessageStatusToRead=function(e,t,n,r){return I(this,void 0,void 0,(function(){return M(this,(function(i){return[2,this._engine.updateMessageReceiptStatus(e,t,n,r)]}))}))},e.prototype.setUserStatus=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.setUserStatus(e)]}))}))},e.prototype.subscribeUserStatus=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.subscribeUserStatus(e)]}))}))},e.prototype.getUserStatus=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.getUserStatus(e)]}))}))},e.prototype.searchConversationByContent=function(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=""),I(this,void 0,void 0,(function(){return M(this,(function(i){return[2,this._engine.searchConversationByContent(e,t,n,r)]}))}))},e.prototype.searchConversationByContentWithAllChannel=function(e,t,n){return void 0===t&&(t=[]),I(this,void 0,void 0,(function(){return M(this,(function(r){return[2,this._engine.searchConversationByContentWithAllChannel(e,t,n)]}))}))},e.prototype.searchMessageByContent=function(e,t,n,r,i,o,s){return void 0===s&&(s=""),I(this,void 0,void 0,(function(){return M(this,(function(a){return[2,this._engine.searchMessageByContent(e,t,n,r,i,o,s)]}))}))},e.prototype.searchMessageByContentWithAllChannel=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){return M(this,(function(o){return[2,this._engine.searchMessageByContentWithAllChannel(e,t,n,r,i)]}))}))},e.prototype.searchMessageByContentInTimeRangeWithAllChannel=function(e,t,n,r,i,o,s){return I(this,void 0,void 0,(function(){return M(this,(function(a){return[2,this._engine.searchMessageByContentInTimeRangeWithAllChannel(e,t,n,r,i,o,s)]}))}))},e.prototype.getUnreadMentionedMessages=function(e,t,n){return void 0===n&&(n=""),this._engine.getUnreadMentionedMessages(e,t,n)},e.prototype.clearUnreadCountByTimestamp=function(e,t,n,r){return void 0===r&&(r=""),this._engine.clearUnreadCountByTimestamp(e,t,n,r)},e.prototype.getUltraGroupDefaultNotificationLevel=function(e,t){return void 0===t&&(t=""),this._engine.getUltraGroupDefaultNotificationLevel(e,t)},e.prototype.setUltraGroupDefaultNotificationLevel=function(e,t,n){return void 0===n&&(n=""),this._engine.setUltraGroupDefaultNotificationLevel(e,t,n)},e.prototype.getConversationNotificationLevel=function(e,t,n){return void 0===n&&(n=""),this._engine.getConversationNotificationLevel(e,t,n)},e.prototype.getConversationNotificationStatus=function(e,t,n){return void 0===n&&(n=""),this._engine.getConversationNotificationStatus(e,t,n)},e.prototype.getRemoteHistoryMessages=function(e,t,n,r,i,o){return this._engine.getRemoteHistoryMessages(e,t,n,r,i,o)},e.prototype.getConversationListWithAllChannel=function(){return this._engine.getConversationListWithAllChannel()},e.prototype.getConversationListWithAllChannelByPage=function(e,t){return this._engine.getConversationListWithAllChannelByPage(e,t)},e.prototype.clearData=function(){return I(this,void 0,void 0,(function(){return M(this,(function(e){return[2,this._engine.clearData()]}))}))},e.prototype.rtcSignaling=function(e,t,n,r){return this._engine.rtcSignaling(e,t,n,r)},e.prototype.joinRTCRoom=function(e,t,n,r,i,o){return this._engine.joinRTCRoom(e,t,n,r,i,o)},e.prototype.quitRTCRoom=function(e){return this._engine.quitRTCRoom(e)},e.prototype.rtcPing=function(e,t,n){return this._engine.rtcPing(e,t,n)},e.prototype.getRTCRoomInfo=function(e){return this._engine.getRTCRoomInfo(e)},e.prototype.getRTCUserInfoList=function(e){return this._engine.getRTCUserInfoList(e)},e.prototype.getRTCUserInfo=function(e){return this._engine.getRTCUserInfo(e)},e.prototype.setRTCUserInfo=function(e,t,n){return this._engine.setRTCUserInfo(e,t,n)},e.prototype.removeRTCUserInfo=function(e,t){return this._engine.removeRTCUserInfo(e,t)},e.prototype.setRTCData=function(e,t,n,r,i,o){return this._engine.setRTCData(e,t,n,r,i,o)},e.prototype.setRTCTotalRes=function(e,t,n,r,i){return void 0===i&&(i=""),this._engine.setRTCTotalRes(e,t,n,r,i)},e.prototype.setRTCCDNUris=function(e,t,n){return this._engine.setRTCCDNUris(e,t,n)},e.prototype.getRTCData=function(e,t,n,r){return this._engine.getRTCData(e,t,n,r)},e.prototype.removeRTCData=function(e,t,n,r,i){return this._engine.removeRTCData(e,t,n,r,i)},e.prototype.setRTCOutData=function(e,t,n,r){return this._engine.setRTCOutData(e,t,n,r)},e.prototype.getRTCOutData=function(e,t){return this._engine.getRTCOutData(e,t)},e.prototype.getRTCToken=function(e,t,n){return this._engine.getRTCToken(e,t,n)},e.prototype.setRTCState=function(e,t){return this._engine.setRTCState(e,t)},e.prototype.getRTCUserList=function(e){return this._engine.getRTCUserList(e)},e.prototype.joinLivingRoomAsAudience=function(e,t,n){return this._engine.joinLivingRoomAsAudience(e,t,n)},e.prototype.quitLivingRoomAsAudience=function(e){return this._engine.quitLivingRoomAsAudience(e)},e.prototype.rtcIdentityChange=function(e,t,n){return this._engine.rtcIdentityChange(e,t,n)},e.prototype.getRTCJoinedUserInfo=function(e){return this._engine.getRTCJoinedUserInfo(e)},e.prototype.requestRoomPK=function(e){return this._engine.requestRoomPK(e)},e.prototype.cancelRoomPK=function(e){return this._engine.cancelRoomPK(e)},e.prototype.responseRoomPK=function(e){return this._engine.responseRoomPK(e)},e.prototype.endRoomPK=function(e){return this._engine.endRoomPK(e)},e.prototype.bindRTCRoomForChatroom=function(e){return this._engine.bindRTCRoomForChatroom(e)},e}();!function(e){e[e.add=1]="add",e[e.update=2]="update",e[e.delete=3]="delete"}(ms||(ms={}))}).call(this,n("4362"))},9093:function(e,t,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},9138:function(e,t,n){e.exports=n("35e8")},9152:function(e,t){t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,u=c>>1,l=-7,f=n?i-1:0,h=n?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+e[t+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+f],f+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=u}return(d?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),t+=s+f>=1?h/c:h*Math.pow(2,1-f),t*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*c-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[n+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+d]=255&s,d+=p,s/=256,u-=8);e[n+d-p]|=128*g}},"91ca":function(e,t,n){var r=n("96fb"),i=Math.pow,o=i(2,-52),s=i(2,-23),a=i(2,127)*(2-s),c=i(2,-126),u=function(e){return e+1/o-1/o};e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),l=r(e);return i<c?l*u(i/c/s)*c*s:(t=(1+s/o)*i,n=t-(t-i),n>a||n!=n?l*(1/0):l*n)}},"91dd":function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var s={};if("string"!==typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var c=1e3;o&&"number"===typeof o.maxKeys&&(c=o.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var l=0;l<u;++l){var f,h,d,p,g=e[l].replace(a,"%20"),v=g.indexOf(n);v>=0?(f=g.substr(0,v),h=g.substr(v+1)):(f=g,h=""),d=decodeURIComponent(f),p=decodeURIComponent(h),r(s,d)?i(s[d])?s[d].push(p):s[d]=[s[d],p]:s[d]=p}return s};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},9253:function(e,t,n){var r=n("86cc"),i=n("11e9"),o=n("38fd"),s=n("69a8"),a=n("5ca1"),c=n("4630"),u=n("cb7c"),l=n("d3f4");function f(e,t,n){var a,h,d=arguments.length<4?e:arguments[3],p=i.f(u(e),t);if(!p){if(l(h=o(e)))return f(h,t,n,d);p=c(0)}if(s(p,"value")){if(!1===p.writable||!l(d))return!1;if(a=i.f(d,t)){if(a.get||a.set||!1===a.writable)return!1;a.value=n,r.f(d,t,a)}else r.f(d,t,c(0,n));return!0}return void 0!==p.set&&(p.set.call(d,n),!0)}a(a.S,"Reflect",{set:f})},9275:function(e,t,n){var r=n("5ca1"),i=n("8b97");i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(n){return!1}}})},9278:function(e,t,n){var r=n("5ca1");r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},"92fa":function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var i,o,s,a,c;for(s in t)if(i=e[s],o=t[s],i&&n.test(s))if("class"===s&&("string"===typeof i&&(c=i,e[s]=i={},i[c]=!0),"string"===typeof o&&(c=o,t[s]=o={},o[c]=!0)),"on"===s||"nativeOn"===s||"hook"===s)for(a in o)i[a]=r(i[a],o[a]);else if(Array.isArray(i))e[s]=i.concat(o);else if(Array.isArray(o))e[s]=[i].concat(o);else for(a in o)i[a]=o[a];else e[s]=t[s];return e}),{})}},9306:function(e,t,n){"use strict";var r=n("8e60"),i=n("c3a1"),o=n("9aa9"),s=n("355d"),a=n("241e"),c=n("335c"),u=Object.assign;e.exports=!u||n("294c")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=a(e),u=arguments.length,l=1,f=o.f,h=s.f;while(u>l){var d,p=c(arguments[l++]),g=f?i(p).concat(f(p)):i(p),v=g.length,y=0;while(v>y)d=g[y++],r&&!h.call(p,d)||(n[d]=p[d])}return n}:u},9427:function(e,t,n){var r=n("63b6");r(r.S,"Object",{create:n("a159")})},"95d5":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");e.exports=n("584a").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},9619:function(e,t,n){var r=n("597f"),i=n("0e15");e.exports={throttle:r,debounce:i}},9675:function(e,t,n){"use strict";const r=n("52f6"),i=n("ef5d"),o=n("fb48");function s(e,t){switch(i(e)){case"object":return a(e,t);case"array":return c(e,t);default:return r(e)}}function a(e,t){if("function"===typeof t)return t(e);if(t||o(e)){const n=new e.constructor;for(let r in e)n[r]=s(e[r],t);return n}return e}function c(e,t){const n=new e.constructor(e.length);for(let r=0;r<e.length;r++)n[r]=s(e[r],t);return n}e.exports=s},"96cf":function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",u="object"===typeof e,l=t.regeneratorRuntime;if(l)u&&(e.exports=l);else{l=t.regeneratorRuntime=u?e.exports:{},l.wrap=M;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",g={},v={};v[s]=function(){return this};var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==r&&i.call(m,s)&&(v=m);var I=_.prototype=T.prototype=Object.create(v);A.prototype=I.constructor=_,_.constructor=A,_[c]=A.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===A||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(I),e},l.awrap=function(e){return{__await:e}},b(N.prototype),N.prototype[a]=function(){return this},l.AsyncIterator=N,l.async=function(e,t,n,r){var i=new N(M(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(I),I[c]="Generator",I[s]=function(){return this},I.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=L,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return a.type="throw",a.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var c=i.call(s,"catchLoc"),u=i.call(s,"finallyLoc");if(c&&u){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function M(e,t,n,r){var i=t&&t.prototype instanceof T?t:T,o=Object.create(i.prototype),s=new D(r||[]);return o._invoke=E(e,n,s),o}function C(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function T(){}function A(){}function _(){}function b(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function N(e){function t(n,r,o,s){var a=C(e[n],e,r);if("throw"!==a.type){var c=a.arg,u=c.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,o,s)}),(function(e){t("throw",e,o,s)})):Promise.resolve(u).then((function(e){c.value=e,o(c)}),s)}s(a.arg)}var n;function r(e,r){function i(){return new Promise((function(n,i){t(e,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=r}function E(e,t,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return R()}n.method=i,n.arg=o;while(1){var s=n.delegate;if(s){var a=w(s,n);if(a){if(a===g)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=C(e,t,n);if("normal"===c.type){if(r=n.done?p:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}function w(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,w(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=C(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){while(++r<e.length)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},"96fb":function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},9744:function(e,t,n){"use strict";var r=n("4588"),i=n("be13");e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},9865:function(e,t,n){"use strict";var r=n("5ca1"),i=n("6821"),o=n("4588"),s=n("9def"),a=[].lastIndexOf,c=!!a&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(c||!n("2f21")(a)),"Array",{lastIndexOf:function(e){if(c)return a.apply(this,arguments)||0;var t=i(this),n=s(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},"988d":function(e,t,n){"use strict";var r=n("5ca1"),i=n("be13"),o=n("9def"),s=n("aae3"),a=n("0bfb"),c=RegExp.prototype,u=function(e,t){this._r=e,this._s=t};n("41a0")(u,"RegExp String",(function(){var e=this._r.exec(this._s);return{value:e,done:null===e}})),r(r.P,"String",{matchAll:function(e){if(i(this),!s(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in c?String(e.flags):a.call(e),r=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=o(e.lastIndex),new u(r,t)}})},"990b":function(e,t,n){var r=n("9093"),i=n("2621"),o=n("cb7c"),s=n("7726").Reflect;e.exports=s&&s.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},9986:function(e,t,n){var r=n("6821"),i=n("11e9").f;n("5eda")("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},"99c5":function(e,t,n){n("c6a1")("Set")},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9aea":function(e,t,n){var r=n("d3f4"),i=n("67ab").onFreeze;n("5eda")("preventExtensions",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c00":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{iaddh:function(e,t,n,r){var i=e>>>0,o=t>>>0,s=n>>>0;return o+(r>>>0)+((i&s|(i|s)&~(i+s>>>0))>>>31)|0}})},"9c12":function(e,t,n){var r=n("d3f4"),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},"9c29":function(e,t,n){n("ec30")("Uint32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9c80":function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},"9c86":function(e,t,n){"use strict";n("386b")("big",(function(e){return function(){return e(this,"big","","")}}))},"9d98":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperties:n("7e90")})},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"9e6a":function(e,t,n){"use strict";var r=n("d233"),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",f=function(e,t){var n,f={},h=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,p=h.split(t.delimiter,d),g=-1,v=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&(p[n]===l?v="utf-8":p[n]===u&&(v="iso-8859-1"),g=n,n=p.length);for(n=0;n<p.length;++n)if(n!==g){var y,m,I=p[n],M=I.indexOf("]="),C=-1===M?I.indexOf("="):M+1;-1===C?(y=t.decoder(I,s.decoder,v,"key"),m=t.strictNullHandling?null:""):(y=t.decoder(I.slice(0,C),s.decoder,v,"key"),m=r.maybeMap(c(I.slice(C+1),t),(function(e){return t.decoder(e,s.decoder,v,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===v&&(m=a(m)),I.indexOf("[]=")>-1&&(m=o(m)?[m]:m),i.call(f,y)?f[y]=r.combine(f[y],m):f[y]=m}return f},h=function(e,t,n,r){for(var i=r?t:c(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if("[]"===a&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&a!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(s=[],s[l]=i):s[u]=i:s={0:i}}i=s}return i},d=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=n.depth>0&&s.exec(o),u=c?o.slice(0,c.index):o,l=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}var f=0;while(n.depth>0&&null!==(c=a.exec(o))&&f<n.depth){if(f+=1,!n.plainObjects&&i.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(c[1])}return c&&l.push("["+o.slice(c.index)+"]"),h(l,t,n,r)}},p=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?s.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:s.comma,decoder:"function"===typeof e.decoder?e.decoder:s.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}};e.exports=function(e,t){var n=p(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var i="string"===typeof e?f(e,n):e,o=n.plainObjects?Object.create(null):{},s=Object.keys(i),a=0;a<s.length;++a){var c=s[a],u=d(c,i[c],n,"string"===typeof e);o=r.merge(o,u,n)}return r.compact(o)}},"9ec8":function(e,t,n){"use strict";n("386b")("fontsize",(function(e){return function(t){return e(this,"font","size",t)}}))},"9f3c":function(e,t,n){var r=n("5ca1"),i=n("2d5c");r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},a032:function(e,t,n){"use strict";var r=n("5ca1"),i=n("02f4")(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},a142:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return l})),n.d(t,"a",(function(){return f}));var r=n("2b0e"),i="undefined"!==typeof window,o=r["default"].prototype.$isServer;function s(){}function a(e){return void 0!==e&&null!==e}function c(e){return"function"===typeof e}function u(e){return null!==e&&"object"===typeof e}function l(e){return u(e)&&c(e.then)&&c(e.catch)}function f(e,t){var n=t.split("."),r=e;return n.forEach((function(e){var t;r=null!=(t=r[e])?t:""})),r}},a159:function(e,t,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),s=n("5559")("IE_PROTO"),a=function(){},c="prototype",u=function(){var e,t=n("1ec9")("iframe"),r=o.length,i="<",s=">";t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+s+"document.F=Object"+i+"/script"+s),e.close(),u=e.F;while(r--)delete u[c][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[c]=r(e),n=new a,a[c]=null,n[s]=e):n=u(),void 0===t?n:i(n,t)}},a15e:function(e,t,n){"use strict";n.r(t);var r=n("41b2"),i=n.n(r),o=n("1098"),s=n.n(o),a=/%[sdj%]/g,c=function(){};function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],o=t.length;if("function"===typeof i)return i.apply(null,t.slice(1));if("string"===typeof i){for(var s=String(i).replace(a,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),c=t[r];r<o;c=t[++r])s+=" "+c;return s}return i}function l(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function f(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!l(t)||"string"!==typeof e||e))}function h(e,t,n){var r=[],i=0,o=e.length;function s(e){r.push.apply(r,e),i++,i===o&&n(r)}e.forEach((function(e){t(e,s)}))}function d(e,t,n){var r=0,i=e.length;function o(s){if(s&&s.length)n(s);else{var a=r;r+=1,a<i?t(e[a],o):n([])}}o([])}function p(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function g(e,t,n,r){if(t.first){var i=p(e);return d(i,n,r)}var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var s=Object.keys(e),a=s.length,c=0,u=[],l=function(e){u.push.apply(u,e),c++,c===a&&r(u)};s.forEach((function(t){var r=e[t];-1!==o.indexOf(t)?d(r,n,l):h(r,n,l)}))}function v(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function y(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===("undefined"===typeof r?"undefined":s()(r))&&"object"===s()(e[n])?e[n]=i()({},e[n],r):e[n]=r}return e}function m(e,t,n,r,i,o){!e.required||n.hasOwnProperty(e.field)&&!f(t,o||e.type)||r.push(u(i.messages.required,e.fullField))}var I=m;function M(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(u(i.messages.whitespace,e.fullField))}var C=M,T={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},A={integer:function(e){return A.number(e)&&parseInt(e,10)===e},float:function(e){return A.number(e)&&!A.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":s()(e))&&!A.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(T.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(T.url)},hex:function(e){return"string"===typeof e&&!!e.match(T.hex)}};function _(e,t,n,r,i){if(e.required&&void 0===t)I(e,t,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;o.indexOf(a)>-1?A[a](t)||r.push(u(i.messages.types[a],e.fullField,e.type)):a&&("undefined"===typeof t?"undefined":s()(t))!==e.type&&r.push(u(i.messages.types[a],e.fullField,e.type))}}var b=_;function N(e,t,n,r,i){var o="number"===typeof e.len,s="number"===typeof e.min,a="number"===typeof e.max,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,f=null,h="number"===typeof t,d="string"===typeof t,p=Array.isArray(t);if(h?f="number":d?f="string":p&&(f="array"),!f)return!1;p&&(l=t.length),d&&(l=t.replace(c,"_").length),o?l!==e.len&&r.push(u(i.messages[f].len,e.fullField,e.len)):s&&!a&&l<e.min?r.push(u(i.messages[f].min,e.fullField,e.min)):a&&!s&&l>e.max?r.push(u(i.messages[f].max,e.fullField,e.max)):s&&a&&(l<e.min||l>e.max)&&r.push(u(i.messages[f].range,e.fullField,e.min,e.max))}var E=N,w="enum";function S(e,t,n,r,i){e[w]=Array.isArray(e[w])?e[w]:[],-1===e[w].indexOf(t)&&r.push(u(i.messages[w],e.fullField,e[w].join(", ")))}var O=S;function D(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(u(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||r.push(u(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var L=D,R={required:I,whitespace:C,type:b,range:E,enum:O,pattern:L};function j(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t,"string")&&!e.required)return n();R.required(e,t,r,o,i,"string"),f(t,"string")||(R.type(e,t,r,o,i),R.range(e,t,r,o,i),R.pattern(e,t,r,o,i),!0===e.whitespace&&R.whitespace(e,t,r,o,i))}n(o)}var x=j;function k(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();R.required(e,t,r,o,i),void 0!==t&&R.type(e,t,r,o,i)}n(o)}var U=k;function P(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();R.required(e,t,r,o,i),void 0!==t&&(R.type(e,t,r,o,i),R.range(e,t,r,o,i))}n(o)}var z=P;function G(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();R.required(e,t,r,o,i),void 0!==t&&R.type(e,t,r,o,i)}n(o)}var B=G;function Y(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();R.required(e,t,r,o,i),f(t)||R.type(e,t,r,o,i)}n(o)}var H=Y;function $(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();R.required(e,t,r,o,i),void 0!==t&&(R.type(e,t,r,o,i),R.range(e,t,r,o,i))}n(o)}var F=$;function Q(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();R.required(e,t,r,o,i),void 0!==t&&(R.type(e,t,r,o,i),R.range(e,t,r,o,i))}n(o)}var V=Q;function Z(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t,"array")&&!e.required)return n();R.required(e,t,r,o,i,"array"),f(t,"array")||(R.type(e,t,r,o,i),R.range(e,t,r,o,i))}n(o)}var W=Z;function K(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();R.required(e,t,r,o,i),void 0!==t&&R.type(e,t,r,o,i)}n(o)}var q=K,J="enum";function X(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();R.required(e,t,r,o,i),t&&R[J](e,t,r,o,i)}n(o)}var ee=X;function te(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t,"string")&&!e.required)return n();R.required(e,t,r,o,i),f(t,"string")||R.pattern(e,t,r,o,i)}n(o)}var ne=te;function re(e,t,n,r,i){var o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t)&&!e.required)return n();if(R.required(e,t,r,o,i),!f(t)){var a=void 0;a="number"===typeof t?new Date(t):t,R.type(e,a,r,o,i),a&&R.range(e,a.getTime(),r,o,i)}}n(o)}var ie=re;function oe(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":s()(t);R.required(e,t,r,o,i,a),n(o)}var se=oe;function ae(e,t,n,r,i){var o=e.type,s=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,o)&&!e.required)return n();R.required(e,t,r,s,i,o),f(t,o)||R.type(e,t,r,s,i)}n(s)}var ce=ae,ue={string:x,method:U,number:z,boolean:B,regexp:H,integer:F,float:V,array:W,object:q,enum:ee,pattern:ne,date:ie,url:ce,hex:ce,email:ce,required:se};function le(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var fe=le();function he(e){this.rules=null,this._messages=fe,this.define(e)}he.prototype={messages:function(e){return e&&(this._messages=y(le(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":s()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],o=e,a=n,l=r;if("function"===typeof a&&(l=a,a={}),this.rules&&0!==Object.keys(this.rules).length){if(a.messages){var f=this.messages();f===fe&&(f=le()),y(f,a.messages),a.messages=f}else a.messages=this.messages();var h=void 0,d=void 0,p={},m=a.keys||Object.keys(this.rules);m.forEach((function(n){h=t.rules[n],d=o[n],h.forEach((function(r){var s=r;"function"===typeof s.transform&&(o===e&&(o=i()({},o)),d=o[n]=s.transform(d)),s="function"===typeof s?{validator:s}:i()({},s),s.validator=t.getValidationMethod(s),s.field=n,s.fullField=s.fullField||n,s.type=t.getType(s),s.validator&&(p[n]=p[n]||[],p[n].push({rule:s,value:d,source:o,field:n}))}))}));var I={};g(p,a,(function(e,t){var n=e.rule,r=("object"===n.type||"array"===n.type)&&("object"===s()(n.fields)||"object"===s()(n.defaultField));function o(e,t){return i()({},t,{fullField:n.fullField+"."+e})}function l(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],l=s;if(Array.isArray(l)||(l=[l]),l.length&&c("async-validator:",l),l.length&&n.message&&(l=[].concat(n.message)),l=l.map(v(n)),a.first&&l.length)return I[n.field]=1,t(l);if(r){if(n.required&&!e.value)return l=n.message?[].concat(n.message).map(v(n)):a.error?[a.error(n,u(a.messages.required,n.field))]:[],t(l);var f={};if(n.defaultField)for(var h in e.value)e.value.hasOwnProperty(h)&&(f[h]=n.defaultField);for(var d in f=i()({},f,e.rule.fields),f)if(f.hasOwnProperty(d)){var p=Array.isArray(f[d])?f[d]:[f[d]];f[d]=p.map(o.bind(null,d))}var g=new he(f);g.messages(a.messages),e.rule.options&&(e.rule.options.messages=a.messages,e.rule.options.error=a.error),g.validate(e.value,e.rule.options||a,(function(e){t(e&&e.length?l.concat(e):e)}))}else t(l)}r=r&&(n.required||!n.required&&e.value),n.field=e.field;var f=n.validator(n,e.value,l,e.source,a);f&&f.then&&f.then((function(){return l()}),(function(e){return l(e)}))}),(function(e){M(e)}))}else l&&l();function M(e){var t=void 0,n=void 0,r=[],i={};function o(e){Array.isArray(e)?r=r.concat.apply(r,e):r.push(e)}for(t=0;t<e.length;t++)o(e[t]);if(r.length)for(t=0;t<r.length;t++)n=r[t].field,i[n]=i[n]||[],i[n].push(r[t]);else r=null,i=null;l(r,i)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ue.hasOwnProperty(e.type))throw new Error(u("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ue.required:ue[this.getType(e)]||!1}},he.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ue[e]=t},he.messages=fe;t["default"]=he},a19f:function(e,t,n){var r=n("5ca1"),i=n("cb7c"),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(t){return!1}}})},a22a:function(e,t,n){var r=n("d864"),i=n("b0dc"),o=n("3702"),s=n("e4ae"),a=n("b447"),c=n("7cd6"),u={},l={};t=e.exports=function(e,t,n,f,h){var d,p,g,v,y=h?function(){return e}:c(e),m=r(n,f,t?2:1),I=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(o(y)){for(d=a(e.length);d>I;I++)if(v=t?m(s(p=e[I])[0],p[1]):m(e[I]),v===u||v===l)return v}else for(g=y.call(e);!(p=g.next()).done;)if(v=i(g,m,p.value,t),v===u||v===l)return v};t.BREAK=u,t.RETURN=l},a234:function(e,t,n){var r=n("5ca1");r(r.S,"System",{global:n("7726")})},a25f:function(e,t,n){var r=n("7726"),i=r.navigator;e.exports=i&&i.userAgent||""},a3c3:function(e,t,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},a3de:function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=i},a471:function(e,t,n){!function(t,r){e.exports=r(n("5a0c"))}(0,(function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){switch(t){case"W":return e+"周";default:return e+"日"}},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"}};return e.locale(t,null,!0),t}))},a481:function(e,t,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),s=n("4588"),a=n("0390"),c=n("5f1b"),u=Math.max,l=Math.min,f=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,g){return[function(r,i){var o=e(this),s=void 0==r?void 0:r[t];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=g(n,e,this,t);if(i.done)return i.value;var f=r(e),h=String(this),d="function"===typeof t;d||(t=String(t));var y=f.global;if(y){var m=f.unicode;f.lastIndex=0}var I=[];while(1){var M=c(f,h);if(null===M)break;if(I.push(M),!y)break;var C=String(M[0]);""===C&&(f.lastIndex=a(h,o(f.lastIndex),m))}for(var T="",A=0,_=0;_<I.length;_++){M=I[_];for(var b=String(M[0]),N=u(l(s(M.index),h.length),0),E=[],w=1;w<M.length;w++)E.push(p(M[w]));var S=M.groups;if(d){var O=[b].concat(E,N,h);void 0!==S&&O.push(S);var D=String(t.apply(void 0,O))}else D=v(b,h,N,E,S,t);N>=A&&(T+=h.slice(A,N)+D,A=N+b.length)}return T+h.slice(A)}];function v(e,t,r,o,s,a){var c=r+e.length,u=o.length,l=d;return void 0!==s&&(s=i(s),l=h),n.call(a,l,(function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":a=s[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>u){var h=f(l/10);return 0===h?n:h<=u?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):n}a=o[l-1]}return void 0===a?"":a}))}}))},a4bb:function(e,t,n){e.exports=n("8aae")},a5b2:function(e,t,n){e.exports=n("aa28")},a5b8:function(e,t,n){"use strict";var r=n("d8e8");function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},a5d8:function(e,t,n){},a69f:function(e,t,n){var r=n("5ca1");r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},a745:function(e,t,n){e.exports=n("f410")},a753:function(e,t,n){},a78e:function(e,t,n){var r,i;
- /*!
- * JavaScript Cookie v2.2.0
- * https://github.com/js-cookie/js-cookie
- *
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
- * Released under the MIT license
- */(function(o){var s=!1;if(r=o,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i),s=!0,e.exports=o(),s=!0,!s){var a=window.Cookies,c=window.Cookies=o();c.noConflict=function(){return window.Cookies=a,c}}})((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(n){function r(t,i,o){var s;if("undefined"!==typeof document){if(arguments.length>1){if(o=e({path:"/"},r.defaults,o),"number"===typeof o.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*o.expires),o.expires=a}o.expires=o.expires?o.expires.toUTCString():"";try{s=JSON.stringify(i),/^[\{\[]/.test(s)&&(i=s)}catch(v){}i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape);var c="";for(var u in o)o[u]&&(c+="; "+u,!0!==o[u]&&(c+="="+o[u]));return document.cookie=t+"="+i+c}t||(s={});for(var l=document.cookie?document.cookie.split("; "):[],f=/(%[0-9A-Z]{2})+/g,h=0;h<l.length;h++){var d=l[h].split("="),p=d.slice(1).join("=");this.json||'"'!==p.charAt(0)||(p=p.slice(1,-1));try{var g=d[0].replace(f,decodeURIComponent);if(p=n.read?n.read(p,g):n(p,g)||p.replace(f,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(v){}if(t===g){s=p;break}t||(s[g]=p)}catch(v){}}return s}}return r.set=r,r.get=function(e){return r.call(r,e)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,n){r(t,"",e(n,{expires:-1}))},r.withConverter=t,r}return t((function(){}))}))},a832:function(e,t,n){"use strict";
- /*!
- * isobject <https://github.com/jonschlinkert/isobject>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */e.exports=function(e){return null!=e&&"object"===typeof e&&!1===Array.isArray(e)}},a8c1:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return c}));var r=/scroll|auto/i;function i(e,t){void 0===t&&(t=window);var n=e;while(n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==t){var i=window.getComputedStyle(n),o=i.overflowY;if(r.test(o))return n;n=n.parentNode}return t}function o(e){var t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function s(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function a(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function c(e){s(window,e),s(document.body,e)}},a8db:function(e,t,n){"use strict";var r=n("e265"),i=n.n(r),o=n("a4bb"),s=n.n(o);function a(e,t){if(null==e)return{};var n,r,i={},o=s()(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function c(e,t){if(null==e)return{};var n,r,o=a(e,t);if(i.a){var s=i()(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return c}))},a9cc:function(e,t,n){"use strict";var r=n("5ca1"),i=n("a5b8"),o=n("9c80");r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},aa28:function(e,t,n){n("733c"),e.exports=n("584a").Reflect.construct},aa77:function(e,t,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),s=n("fdef"),a="["+s+"]",c="
",u=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),f=function(e,t,n){var i={},a=o((function(){return!!s[e]()||c[e]()!=c})),u=i[e]=a?t(h):s[e];n&&(i[n]=u),r(r.P+r.F*a,"String",i)},h=f.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(l,"")),e};e.exports=f},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},aba2:function(e,t,n){var r=n("e53d"),i=n("4178").set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==n("6b4c")(s);e.exports=function(){var e,t,n,u=function(){var r,i;c&&(r=s.domain)&&r.exit();while(e){i=e.fn,e=e.next;try{i()}catch(o){throw e?n():t=void 0,o}}t=void 0,r&&r.enter()};if(c)n=function(){s.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);n=function(){l.then(u)}}else n=function(){i.call(r,u)};else{var f=!0,h=document.createTextNode("");new o(u).observe(h,{characterData:!0}),n=function(){h.data=f=!f}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},abd7:function(e,t){e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},ac4d:function(e,t,n){n("3a72")("asyncIterator")},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),s=n("7726"),a=n("32e9"),c=n("84f2"),u=n("2b4c"),l=u("iterator"),f=u("toStringTag"),h=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(d),g=0;g<p.length;g++){var v,y=p[g],m=d[y],I=s[y],M=I&&I.prototype;if(M&&(M[l]||a(M,l,h),M[f]||a(M,f,y),c[y]=h,m))for(v in r)M[v]||o(M,v,r[v],!0)}},ad06:function(e,t,n){"use strict";var r=n("2638"),i=n.n(r),o=n("d282"),s=n("ea8e"),a=n("ba31"),c=n("a142"),u=Object(o["a"])("info"),l=u[0],f=u[1];function h(e,t,n,r){var o=t.dot,s=t.info,u=Object(c["c"])(s)&&""!==s;if(o||u)return e("div",i()([{class:f({dot:o})},Object(a["b"])(r,!0)]),[o?"":t.info])}h.props={dot:Boolean,info:[Number,String]};var d=l(h),p=Object(o["a"])("icon"),g=p[0],v=p[1];function y(e){return!!e&&-1!==e.indexOf("/")}var m={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function I(e){return e&&m[e]||e}function M(e,t,n,r){var o,c=I(t.name),u=y(c);return e(t.tag,i()([{class:[t.classPrefix,u?"":t.classPrefix+"-"+c],style:{color:t.color,fontSize:Object(s["a"])(t.size)}},Object(a["b"])(r,!0)]),[n.default&&n.default(),u&&e("img",{class:v("image"),attrs:{src:c}}),e(d,{attrs:{dot:t.dot,info:null!=(o=t.badge)?o:t.info}})])}M.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:v()}};t["a"]=g(M)},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},aef6:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),s="endsWith",a=""[s];r(r.P+r.F*n("5147")(s),"String",{endsWith:function(e){var t=o(this,e,s),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),c=void 0===n?r:Math.min(i(n),r),u=String(e);return a?a.call(t,u,c):t.slice(c-u.length,c)===u}})},af56:function(e,t,n){n("ec30")("Uint16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},b05c:function(e,t,n){n("ec30")("Int8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},b0b4:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("85f2"),i=n.n(r);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),i()(e,r.key,r)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b0dc:function(e,t,n){var r=n("e4ae");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(s){var o=e["return"];throw void 0!==o&&r(o.call(e)),s}}},b1b1:function(e,t,n){var r=n("5ca1"),i=n("9c12"),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},b313:function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o=n("d233"),s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}}},s)},b375:function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}))},b383:function(e,t,n){"use strict";t.decode=t.parse=n("91dd"),t.encode=t.stringify=n("e099")},b39a:function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},b447:function(e,t,n){var r=n("3a38"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},b4c2:function(e,t,n){var r=n("5ca1");r(r.S,"Math",{imulh:function(e,t){var n=65535,r=+e,i=+t,o=r&n,s=i&n,a=r>>16,c=i>>16,u=(a*s>>>0)+(o*s>>>16);return a*c+(u>>16)+((o*c>>>0)+(u&n)>>16)}})},b50d:function(e,t,n){"use strict";var r=n("c532"),i=n("467f"),o=n("30b5"),s=n("c345"),a=n("3934"),c=n("2d83");e.exports=function(e){return new Promise((function(t,u){var l=e.data,f=e.headers;r.isFormData(l)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",p=e.auth.password||"";f.Authorization="Basic "+btoa(d+":"+p)}if(h.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?h.response:h.responseText,o={data:r,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};i(t,u,o),h=null}},h.onerror=function(){u(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){u(c("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var g=n("7aac"),v=(e.withCredentials||a(e.url))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;v&&(f[e.xsrfHeaderName]=v)}if("setRequestHeader"in h&&r.forEach(f,(function(e,t){"undefined"===typeof l&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)})),e.withCredentials&&(h.withCredentials=!0),e.responseType)try{h.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"function"===typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),u(e),h=null)})),void 0===l&&(l=null),h.send(l)}))}},b54a:function(e,t,n){"use strict";n("386b")("link",(function(e){return function(t){return e(this,"a","href",t)}}))},b639:function(e,t,n){"use strict";(function(e){
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <http://feross.org>
- * @license MIT
- */
- var r=n("1fb5"),i=n("9152"),o=n("e3db");function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=u.prototype):(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?v(e,t,n,r):"string"===typeof t?p(e,t,n):y(e,t)}function f(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,n,r){return f(t),t<=0?c(e,t):void 0!==n?"string"===typeof r?c(e,t).fill(n,r):c(e,t).fill(n):c(e,t)}function d(e,t){if(f(t),e=c(e,t<0?0:0|m(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|M(t,n);e=c(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function g(e,t){var n=t.length<0?0:0|m(t.length);e=c(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function v(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=u.prototype):e=g(e,t),e}function y(e,t){if(u.isBuffer(t)){var n=0|m(t.length);return e=c(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?c(e,0):g(e,t);if("Buffer"===t.type&&o(t.data))return g(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function I(e){return+e!=e&&(e=0),u.alloc(+e)}function M(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(r)return K(e).length;t=(""+t).toLowerCase(),r=!0}}function C(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return U(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return D(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function T(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function A(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,i){var o,s=1,a=e.length,c=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=n;o<a;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var f=!0,h=0;h<c;h++)if(u(e,o+h)!==u(t,h)){f=!1;break}if(f)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function N(e,t,n,r){return ee(K(t,e.length-n),e,n,r)}function E(e,t,n,r){return ee(q(t),e,n,r)}function w(e,t,n,r){return E(e,t,n,r)}function S(e,t,n,r){return ee(X(t),e,n,r)}function O(e,t,n,r){return ee(J(t,e.length-n),e,n,r)}function D(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function L(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var o,s,a,c,u=e[i],l=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:o=e[i+1],128===(192&o)&&(c=(31&u)<<6|63&o,c>127&&(l=c));break;case 3:o=e[i+1],s=e[i+2],128===(192&o)&&128===(192&s)&&(c=(15&u)<<12|(63&o)<<6|63&s,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return j(r)}t.Buffer=u,t.SlowBuffer=I,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:s(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return l(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return h(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},u.byteLength=M,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)T(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)T(this,t,t+3),T(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)T(this,t,t+7),T(this,t+1,t+6),T(this,t+2,t+5),T(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?L(this,0,e):C.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,s=n-t,a=Math.min(o,s),c=this.slice(r,i),l=e.slice(t,n),f=0;f<a;++f)if(c[f]!==l[f]){o=c[f],s=l[f];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return A(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return A(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return N(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function j(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=R));return n}function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function k(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function U(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=W(e[o]);return i}function P(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function z(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function G(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function B(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function Y(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function H(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function $(e,t,n,r,o){return o||H(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,o){return o||H(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);var r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||z(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||z(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||z(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||z(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||z(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||z(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||z(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||z(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||z(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||z(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||z(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;G(this,e,t,n,i,0)}var o=1,s=0;this[t]=255&e;while(++s<n&&(o*=256))this[t+s]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;G(this,e,t,n,i,0)}var o=n-1,s=1;this[t+o]=255&e;while(--o>=0&&(s*=256))this[t+o]=e/s&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Y(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Y(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);G(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;this[t]=255&e;while(++o<n&&(s*=256))e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);G(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;this[t+o]=255&e;while(--o>=0&&(s*=256))e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Y(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Y(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return $(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return $(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=u.isBuffer(e)?e:K(new u(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var Q=/[^+\/0-9A-Za-z-_]/g;function V(e){if(e=Z(e).replace(Q,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function Z(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function W(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function J(e,t){for(var n,r,i,o=[],s=0;s<e.length;++s){if((t-=2)<0)break;n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function X(e){return r.toByteArray(V(e))}function ee(e,t,n,r){for(var i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("c8ba"))},b6e4:function(e,t,n){n("ec30")("Int32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},b72c:function(e,t,n){var r=n("5ca1"),i=n("d752");r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},b749:function(e,t,n){"use strict";(function(){if("undefined"!==typeof window){var e,t="ontouchstart"in window;document.createTouch||(document.createTouch=function(e,t,r,i,o,s,a){return new n(t,r,{pageX:i,pageY:o,screenX:s,screenY:a,clientX:i-window.pageXOffset,clientY:o-window.pageYOffset},0,0)}),document.createTouchList||(document.createTouchList=function(){for(var e=i(),t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length=arguments.length,e}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});var n=function(e,t,n,r,i){r=r||0,i=i||0,this.identifier=t,this.target=e,this.clientX=n.clientX+r,this.clientY=n.clientY+i,this.screenX=n.screenX+r,this.screenY=n.screenY+i,this.pageX=n.pageX+r,this.pageY=n.pageY+i},r=!1;u["multiTouchOffset"]=75,t||new u}function i(){var e=[];return e["item"]=function(e){return this[e]||null},e["identifiedTouch"]=function(e){return this[e+1]||null},e}function o(t){return function(n){"mousedown"===n.type&&(r=!0),"mouseup"===n.type&&(r=!1),("mousemove"!==n.type||r)&&(("mousedown"===n.type||!e||e&&!e.dispatchEvent)&&(e=n.target),null==e.closest("[data-no-touch-simulate]")&&s(t,n),"mouseup"===n.type&&(e=null))}}function s(t,n){var r=document.createEvent("Event");r.initEvent(t,!0,!0),r.altKey=n.altKey,r.ctrlKey=n.ctrlKey,r.metaKey=n.metaKey,r.shiftKey=n.shiftKey,r.touches=c(n),r.targetTouches=c(n),r.changedTouches=a(n),e.dispatchEvent(r)}function a(t){var r=i();return r.push(new n(e,1,t,0,0)),r}function c(e){return"mouseup"===e.type?i():a(e)}function u(){window.addEventListener("mousedown",o("touchstart"),!0),window.addEventListener("mousemove",o("touchmove"),!0),window.addEventListener("mouseup",o("touchend"),!0)}})()},b80b:function(e,t,n){var r=n("4f7f"),i=n("4379"),o=n("37a7"),s=n("cb7c"),a=n("38fd"),c=o.keys,u=o.key,l=function(e,t){var n=c(e,t),o=a(e);if(null===o)return n;var s=l(o,t);return s.length?n.length?i(new r(n.concat(s))):s:n};o.exp({getMetadataKeys:function(e){return l(s(e),arguments.length<2?void 0:u(arguments[1]))}})},b8e3:function(e,t){e.exports=!0},b9a1:function(e,t,n){"use strict";var r=n("5ca1"),i=n("4bf8"),o=n("6a99"),s=n("38fd"),a=n("11e9").f;n("9e1e")&&r(r.P+n("c5b4"),"Object",{__lookupGetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=a(n,r))return t.get}while(n=s(n))}})},ba16:function(e,t,n){var r=n("5ca1"),i=n("11e9").f,o=n("cb7c");r(r.S,"Reflect",{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},ba31:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return u}));var r=n("c31d"),i=n("2b0e"),o=["ref","key","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],s={nativeOn:"on"};function a(e,t){var n=o.reduce((function(t,n){return e.data[n]&&(t[s[n]||n]=e.data[n]),t}),{});return t&&(n.on=n.on||{},Object(r["a"])(n.on,e.data.on)),n}function c(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=e.listeners[t];o&&(Array.isArray(o)?o.forEach((function(e){e.apply(void 0,r)})):o.apply(void 0,r))}function u(e,t){var n=new i["default"]({el:document.createElement("div"),props:e.props,render:function(n){return n(e,Object(r["a"])({props:this.$props},t))}});return document.body.appendChild(n.$el),n}},ba92:function(e,t,n){"use strict";var r=n("4bf8"),i=n("77f1"),o=n("9def");e.exports=[].copyWithin||function(e,t){var n=r(this),s=o(n.length),a=i(e,s),c=i(t,s),u=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===u?s:i(u,s))-c,s-a),f=1;c<a&&a<c+l&&(f=-1,c+=l-1,a+=l-1);while(l-- >0)c in n?n[a]=n[c]:delete n[a],a+=f,c+=f;return n}},ba99:function(e,t,n){var r=n("6abf"),i=n("9aa9"),o=n("e4ae"),s=n("e53d").Reflect;e.exports=s&&s.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},bc13:function(e,t,n){var r=n("e53d"),i=r.navigator;e.exports=i&&i.userAgent||""},bc3a:function(e,t,n){e.exports=n("cee4")},bcaa:function(e,t,n){var r=n("cb7c"),i=n("d3f4"),o=n("a5b8");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),s=n.resolve;return s(t),n.promise}},bd86:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("85f2"),i=n.n(r);function o(e,t,n){return t in e?i()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},bdd1:function(e,t,n){n("c6a1")("WeakSet")},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},bef9:function(e,t,n){var r=n("2d95");e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},bf0b:function(e,t,n){var r=n("355d"),i=n("aebd"),o=n("36c3"),s=n("1bc3"),a=n("07e3"),c=n("794b"),u=Object.getOwnPropertyDescriptor;t.f=n("8e60")?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(n){}if(a(e,t))return i(!r.f.call(e,t),e[t])}},bf90:function(e,t,n){var r=n("36c3"),i=n("bf0b").f;n("ce7e")("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},c02b:function(e,t,n){"use strict";var r=n("643e"),i=n("b39a"),o="WeakSet";n("e0b8")(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,o),e,!0)}},r,!1,!0)},c098:function(e,t,n){e.exports=n("d4af")},c189:function(e,t,n){"use strict";var r=n("79aa"),i=n("f772"),o=n("3024"),s=[].slice,a={},c=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=s.call(arguments,1),a=function(){var r=n.concat(s.call(arguments));return this instanceof a?c(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(a.prototype=t.prototype),a}},c207:function(e,t){},c26b:function(e,t,n){"use strict";var r=n("86cc").f,i=n("2aeb"),o=n("dcbc"),s=n("9b43"),a=n("f605"),c=n("4a59"),u=n("01f9"),l=n("d53b"),f=n("7a56"),h=n("9e1e"),d=n("67ab").fastKey,p=n("b39a"),g=h?"_s":"size",v=function(e,t){var n,r=d(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){a(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[g]=0,void 0!=r&&c(r,n,e[u],e)}));return o(l.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[g]=0},delete:function(e){var n=p(this,t),r=v(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[g]--}return!!r},forEach:function(e){p(this,t);var n,r=s(e,arguments.length>1?arguments[1]:void 0,3);while(n=n?n.n:this._f){r(n.v,n.k,this);while(n&&n.r)n=n.p}},has:function(e){return!!v(p(this,t),e)}}),h&&r(l.prototype,"size",{get:function(){return p(this,t)[g]}}),l},def:function(e,t,n){var r,i,o=v(e,t);return o?o.v=n:(e._l=o={i:i=d(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[g]++,"F"!==i&&(e._i[i]=o)),e},getEntry:v,setStrong:function(e,t,n){u(e,t,(function(e,n){this._t=p(e,t),this._k=n,this._l=void 0}),(function(){var e=this,t=e._k,n=e._l;while(n&&n.r)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?l(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(t)}}},c31d:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,"a",(function(){return r}))},c345:function(e,t,n){"use strict";var r=n("c532"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,s){var a,c=r(t),u=i(c.length),l=o(s,u);if(e&&n!=n){while(u>l)if(a=c[l++],a!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},c367:function(e,t,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),s=n("36c3");e.exports=n("30f1")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c3a1:function(e,t,n){var r=n("e6f3"),i=n("1691");e.exports=Object.keys||function(e){return r(e,i)}},c401:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},c45f:function(e,t,n){"use strict";var r=n("1169"),i=n("d3f4"),o=n("9def"),s=n("9b43"),a=n("2b4c")("isConcatSpreadable");function c(e,t,n,u,l,f,h,d){var p,g,v=l,y=0,m=!!h&&s(h,d,3);while(y<u){if(y in n){if(p=m?m(n[y],y,t):n[y],g=!1,i(p)&&(g=p[a],g=void 0!==g?!!g:r(p)),g&&f>0)v=c(e,t,p,o(p.length),v,f-1)-1;else{if(v>=9007199254740991)throw TypeError();e[v]=p}v++}y++}return v}e.exports=c},c4d8:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(r(arguments[t]));return e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var s=o(n("9675")),a=o(n("d540")),c=n("3b74"),u=Array.isArray;function l(e){var t=void 0===e?{}:e,n=t.customizeArray,r=t.customizeObject,o=t.key;return function e(t,f,h){var d=o?o+"."+h:h;if(c.isFunction(t)&&c.isFunction(f))return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(void 0,i(n)),f.apply(void 0,i(n)),h)};if(u(t)&&u(f)){var p=n&&n(t,f,d);return p||i(t,f)}if(c.isRegex(f))return f;if(c.isPlainObject(t)&&c.isPlainObject(f)){p=r&&r(t,f,d);return p||a["default"]([t,f],l({customizeArray:n,customizeObject:r,key:d}))}return c.isPlainObject(f)?s["default"](f):u(f)?i(f):f}}t["default"]=l},c532:function(e,t,n){"use strict";var r=n("1d2b"),i=n("044b"),o=Object.prototype.toString;function s(e){return"[object Array]"===o.call(e)}function a(e){return"[object ArrayBuffer]"===o.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function l(e){return"string"===typeof e}function f(e){return"number"===typeof e}function h(e){return"undefined"===typeof e}function d(e){return null!==e&&"object"===typeof e}function p(e){return"[object Date]"===o.call(e)}function g(e){return"[object File]"===o.call(e)}function v(e){return"[object Blob]"===o.call(e)}function y(e){return"[object Function]"===o.call(e)}function m(e){return d(e)&&y(e.pipe)}function I(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function M(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function C(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function T(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),s(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function A(){var e={};function t(t,n){"object"===typeof e[n]&&"object"===typeof t?e[n]=A(e[n],t):e[n]=t}for(var n=0,r=arguments.length;n<r;n++)T(arguments[n],t);return e}function _(e,t,n){return T(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e}e.exports={isArray:s,isArrayBuffer:a,isBuffer:i,isFormData:c,isArrayBufferView:u,isString:l,isNumber:f,isObject:d,isUndefined:h,isDate:p,isFile:g,isBlob:v,isFunction:y,isStream:m,isURLSearchParams:I,isStandardBrowserEnv:C,forEach:T,merge:A,extend:_,trim:M}},c5b4:function(e,t,n){"use strict";e.exports=n("2d00")||!n("79e5")((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete n("7726")[e]}))},c5f6:function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),s=n("5dbc"),a=n("6a99"),c=n("79e5"),u=n("9093").f,l=n("11e9").f,f=n("86cc").f,h=n("aa77").trim,d="Number",p=r[d],g=p,v=p.prototype,y=o(n("2aeb")(v))==d,m="trim"in String.prototype,I=function(e){var t=a(e,!1);if("string"==typeof t&&t.length>2){t=m?t.trim():h(t,3);var n,r,i,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var s,c=t.slice(2),u=0,l=c.length;u<l;u++)if(s=c.charCodeAt(u),s<48||s>i)return NaN;return parseInt(c,r)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(y?c((function(){v.valueOf.call(n)})):o(n)!=d)?s(new g(I(t)),n,p):I(t)};for(var M,C=n("9e1e")?u(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),T=0;C.length>T;T++)i(g,M=C[T])&&!i(p,M)&&f(p,M,l(g,M));p.prototype=v,v.constructor=p,n("2aba")(r,d,p)}},c603:function(e,t,n){"use strict";var r=n("a5b2"),i=n.n(r),o=n("6bb5");function s(){if("undefined"===typeof Reflect||!i.a)return!1;if(i.a.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(i()(Date,[],(function(){}))),!0}catch(e){return!1}}var a=n("308d");function c(e){var t=s();return function(){var n,r=Object(o["a"])(e);if(t){var s=Object(o["a"])(this).constructor;n=i()(r,arguments,s)}else n=r.apply(this,arguments);return Object(a["a"])(this,n)}}n.d(t,"a",(function(){return c}))},c66f:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0f88"),o=n("ed0b"),s=n("cb7c"),a=n("77f1"),c=n("9def"),u=n("d3f4"),l=n("7726").ArrayBuffer,f=n("ebd6"),h=o.ArrayBuffer,d=o.DataView,p=i.ABV&&l.isView,g=h.prototype.slice,v=i.VIEW,y="ArrayBuffer";r(r.G+r.W+r.F*(l!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,y,{isView:function(e){return p&&p(e)||u(e)&&v in e}}),r(r.P+r.U+r.F*n("79e5")((function(){return!new h(2).slice(1,void 0).byteLength})),y,{slice:function(e,t){if(void 0!==g&&void 0===t)return g.call(s(this),e);var n=s(this).byteLength,r=a(e,n),i=a(void 0===t?n:t,n),o=new(f(this,h))(c(i-r)),u=new d(this),l=new d(o),p=0;while(r<i)l.setUint8(p++,u.getUint8(r++));return o}}),n("7a56")(y)},c698:function(e,t,n){var r=n("5ca1");r(r.S,"Reflect",{ownKeys:n("990b")})},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c6a1:function(e,t,n){"use strict";var r=n("5ca1");e.exports=function(e){r(r.S,e,{of:function(){var e=arguments.length,t=new Array(e);while(e--)t[e]=arguments[e];return new this(t)}})}},c775:function(e,t,n){var r=n("5ca1");r(r.S,"Math",{scale:n("e9d2")})},c7c6:function(e,t,n){var r=n("5ca1"),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){var n,r,o=0,s=0,a=arguments.length,c=0;while(s<a)n=i(arguments[s++]),c<n?(r=c/n,o=o*r*r+1,c=n):n>0?(r=n/c,o+=r*r):o+=n;return c===1/0?1/0:c*Math.sqrt(o)}})},c7c62:function(e,t,n){var r=n("5ca1"),i=n("2d5c"),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},c7ca:function(e,t,n){n("3a72")("observable")},c8af:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8bb:function(e,t,n){e.exports=n("54a1")},c8ce:function(e,t,n){var r=n("2b4c")("toPrimitive"),i=Date.prototype;r in i||n("32e9")(i,r,n("8381"))},c98f:function(e,t,n){(function(e,n){var r=200,i="Expected a function",o="__lodash_hash_undefined__",s=1,a=2,c=1/0,u=9007199254740991,l="[object Arguments]",f="[object Array]",h="[object Boolean]",d="[object Date]",p="[object Error]",g="[object Function]",v="[object GeneratorFunction]",y="[object Map]",m="[object Number]",I="[object Object]",M="[object Promise]",C="[object RegExp]",T="[object Set]",A="[object String]",_="[object Symbol]",b="[object WeakMap]",N="[object ArrayBuffer]",E="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",O="[object Int8Array]",D="[object Int16Array]",L="[object Int32Array]",R="[object Uint8Array]",j="[object Uint8ClampedArray]",x="[object Uint16Array]",k="[object Uint32Array]",U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P=/^\w*$/,z=/^\./,G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B=/[\\^$.*+?()[\]{}|]/g,Y=/\\(\\)?/g,H=/^\[object .+?Constructor\]$/,$=/^(?:0|[1-9]\d*)$/,F={};F[w]=F[S]=F[O]=F[D]=F[L]=F[R]=F[j]=F[x]=F[k]=!0,F[l]=F[f]=F[N]=F[h]=F[E]=F[d]=F[p]=F[g]=F[y]=F[m]=F[I]=F[C]=F[T]=F[A]=F[b]=!1;var Q="object"==typeof e&&e&&e.Object===Object&&e,V="object"==typeof self&&self&&self.Object===Object&&self,Z=Q||V||Function("return this")(),W=t&&!t.nodeType&&t,K=W&&"object"==typeof n&&n&&!n.nodeType&&n,q=K&&K.exports===W,J=q&&Q.process,X=function(){try{return J&&J.binding("util")}catch(e){}}(),ee=X&&X.isTypedArray;function te(e,t){var n=-1,r=e?e.length:0;while(++n<r)if(!1===t(e[n],n,e))break;return e}function ne(e,t){var n=-1,r=e?e.length:0;while(++n<r)if(t(e[n],n,e))return!0;return!1}function re(e){return function(t){return null==t?void 0:t[e]}}function ie(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function oe(e){return function(t){return e(t)}}function se(e,t){return null==e?void 0:e[t]}function ae(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function ce(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ue(e,t){return function(n){return e(t(n))}}function le(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var fe=Array.prototype,he=Function.prototype,de=Object.prototype,pe=Z["__core-js_shared__"],ge=function(){var e=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ve=he.toString,ye=de.hasOwnProperty,me=de.toString,Ie=RegExp("^"+ve.call(ye).replace(B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=Z.Symbol,Ce=Z.Uint8Array,Te=ue(Object.getPrototypeOf,Object),Ae=Object.create,_e=de.propertyIsEnumerable,be=fe.splice,Ne=ue(Object.keys,Object),Ee=Gt(Z,"DataView"),we=Gt(Z,"Map"),Se=Gt(Z,"Promise"),Oe=Gt(Z,"Set"),De=Gt(Z,"WeakMap"),Le=Gt(Object,"create"),Re=Jt(Ee),je=Jt(we),xe=Jt(Se),ke=Jt(Oe),Ue=Jt(De),Pe=Me?Me.prototype:void 0,ze=Pe?Pe.valueOf:void 0,Ge=Pe?Pe.toString:void 0;function Be(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Ye(){this.__data__=Le?Le(null):{}}function He(e){return this.has(e)&&delete this.__data__[e]}function $e(e){var t=this.__data__;if(Le){var n=t[e];return n===o?void 0:n}return ye.call(t,e)?t[e]:void 0}function Fe(e){var t=this.__data__;return Le?void 0!==t[e]:ye.call(t,e)}function Qe(e,t){var n=this.__data__;return n[e]=Le&&void 0===t?o:t,this}function Ve(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Ze(){this.__data__=[]}function We(e){var t=this.__data__,n=gt(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():be.call(t,n,1),!0}function Ke(e){var t=this.__data__,n=gt(t,e);return n<0?void 0:t[n][1]}function qe(e){return gt(this.__data__,e)>-1}function Je(e,t){var n=this.__data__,r=gt(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function Xe(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function et(){this.__data__={hash:new Be,map:new(we||Ve),string:new Be}}function tt(e){return Pt(this,e)["delete"](e)}function nt(e){return Pt(this,e).get(e)}function rt(e){return Pt(this,e).has(e)}function it(e,t){return Pt(this,e).set(e,t),this}function ot(e){var t=-1,n=e?e.length:0;this.__data__=new Xe;while(++t<n)this.add(e[t])}function st(e){return this.__data__.set(e,o),this}function at(e){return this.__data__.has(e)}function ct(e){this.__data__=new Ve(e)}function ut(){this.__data__=new Ve}function lt(e){return this.__data__["delete"](e)}function ft(e){return this.__data__.get(e)}function ht(e){return this.__data__.has(e)}function dt(e,t){var n=this.__data__;if(n instanceof Ve){var i=n.__data__;if(!we||i.length<r-1)return i.push([e,t]),this;n=this.__data__=new Xe(i)}return n.set(e,t),this}function pt(e,t){var n=nn(e)||tn(e)?ie(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!ye.call(e,o)||i&&("length"==o||Ht(o,r))||n.push(o);return n}function gt(e,t){var n=e.length;while(n--)if(en(e[n][0],t))return n;return-1}function vt(e){return cn(e)?Ae(e):{}}Be.prototype.clear=Ye,Be.prototype["delete"]=He,Be.prototype.get=$e,Be.prototype.has=Fe,Be.prototype.set=Qe,Ve.prototype.clear=Ze,Ve.prototype["delete"]=We,Ve.prototype.get=Ke,Ve.prototype.has=qe,Ve.prototype.set=Je,Xe.prototype.clear=et,Xe.prototype["delete"]=tt,Xe.prototype.get=nt,Xe.prototype.has=rt,Xe.prototype.set=it,ot.prototype.add=ot.prototype.push=st,ot.prototype.has=at,ct.prototype.clear=ut,ct.prototype["delete"]=lt,ct.prototype.get=ft,ct.prototype.has=ht,ct.prototype.set=dt;var yt=jt();function mt(e,t){return e&&yt(e,t,gn)}function It(e,t){t=$t(t,e)?[t]:Rt(t);var n=0,r=t.length;while(null!=e&&n<r)e=e[qt(t[n++])];return n&&n==r?e:void 0}function Mt(e){return me.call(e)}function Ct(e,t){return null!=e&&t in Object(e)}function Tt(e,t,n,r,i){return e===t||(null==e||null==t||!cn(e)&&!un(t)?e!==e&&t!==t:At(e,t,Tt,n,r,i))}function At(e,t,n,r,i,o){var s=nn(e),c=nn(t),u=f,h=f;s||(u=Bt(e),u=u==l?I:u),c||(h=Bt(t),h=h==l?I:h);var d=u==I&&!ae(e),p=h==I&&!ae(t),g=u==h;if(g&&!d)return o||(o=new ct),s||fn(e)?xt(e,t,n,r,i,o):kt(e,t,u,n,r,i,o);if(!(i&a)){var v=d&&ye.call(e,"__wrapped__"),y=p&&ye.call(t,"__wrapped__");if(v||y){var m=v?e.value():e,M=y?t.value():t;return o||(o=new ct),n(m,M,r,i,o)}}return!!g&&(o||(o=new ct),Ut(e,t,n,r,i,o))}function _t(e,t,n,r){var i=n.length,o=i,c=!r;if(null==e)return!o;e=Object(e);while(i--){var u=n[i];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}while(++i<o){u=n[i];var l=u[0],f=e[l],h=u[1];if(c&&u[2]){if(void 0===f&&!(l in e))return!1}else{var d=new ct;if(r)var p=r(f,h,l,e,t,d);if(!(void 0===p?Tt(h,f,r,s|a,d):p))return!1}}return!0}function bt(e){if(!cn(e)||Qt(e))return!1;var t=sn(e)||ae(e)?Ie:H;return t.test(Jt(e))}function Nt(e){return un(e)&&an(e.length)&&!!F[me.call(e)]}function Et(e){return"function"==typeof e?e:null==e?yn:"object"==typeof e?nn(e)?Ot(e[0],e[1]):St(e):mn(e)}function wt(e){if(!Vt(e))return Ne(e);var t=[];for(var n in Object(e))ye.call(e,n)&&"constructor"!=n&&t.push(n);return t}function St(e){var t=zt(e);return 1==t.length&&t[0][2]?Wt(t[0][0],t[0][1]):function(n){return n===e||_t(n,e,t)}}function Ot(e,t){return $t(e)&&Zt(t)?Wt(qt(e),t):function(n){var r=dn(n,e);return void 0===r&&r===t?pn(n,e):Tt(t,r,void 0,s|a)}}function Dt(e){return function(t){return It(t,e)}}function Lt(e){if("string"==typeof e)return e;if(ln(e))return Ge?Ge.call(e):"";var t=e+"";return"0"==t&&1/e==-c?"-0":t}function Rt(e){return nn(e)?e:Kt(e)}function jt(e){return function(t,n,r){var i=-1,o=Object(t),s=r(t),a=s.length;while(a--){var c=s[e?a:++i];if(!1===n(o[c],c,o))break}return t}}function xt(e,t,n,r,i,o){var c=i&a,u=e.length,l=t.length;if(u!=l&&!(c&&l>u))return!1;var f=o.get(e);if(f&&o.get(t))return f==t;var h=-1,d=!0,p=i&s?new ot:void 0;o.set(e,t),o.set(t,e);while(++h<u){var g=e[h],v=t[h];if(r)var y=c?r(v,g,h,t,e,o):r(g,v,h,e,t,o);if(void 0!==y){if(y)continue;d=!1;break}if(p){if(!ne(t,(function(e,t){if(!p.has(t)&&(g===e||n(g,e,r,i,o)))return p.add(t)}))){d=!1;break}}else if(g!==v&&!n(g,v,r,i,o)){d=!1;break}}return o["delete"](e),o["delete"](t),d}function kt(e,t,n,r,i,o,c){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!r(new Ce(e),new Ce(t)));case h:case d:case m:return en(+e,+t);case p:return e.name==t.name&&e.message==t.message;case C:case A:return e==t+"";case y:var u=ce;case T:var l=o&a;if(u||(u=le),e.size!=t.size&&!l)return!1;var f=c.get(e);if(f)return f==t;o|=s,c.set(e,t);var g=xt(u(e),u(t),r,i,o,c);return c["delete"](e),g;case _:if(ze)return ze.call(e)==ze.call(t)}return!1}function Ut(e,t,n,r,i,o){var s=i&a,c=gn(e),u=c.length,l=gn(t),f=l.length;if(u!=f&&!s)return!1;var h=u;while(h--){var d=c[h];if(!(s?d in t:ye.call(t,d)))return!1}var p=o.get(e);if(p&&o.get(t))return p==t;var g=!0;o.set(e,t),o.set(t,e);var v=s;while(++h<u){d=c[h];var y=e[d],m=t[d];if(r)var I=s?r(m,y,d,t,e,o):r(y,m,d,e,t,o);if(!(void 0===I?y===m||n(y,m,r,i,o):I)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var M=e.constructor,C=t.constructor;M==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof M&&M instanceof M&&"function"==typeof C&&C instanceof C||(g=!1)}return o["delete"](e),o["delete"](t),g}function Pt(e,t){var n=e.__data__;return Ft(t)?n["string"==typeof t?"string":"hash"]:n.map}function zt(e){var t=gn(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,Zt(i)]}return t}function Gt(e,t){var n=se(e,t);return bt(n)?n:void 0}var Bt=Mt;function Yt(e,t,n){t=$t(t,e)?[t]:Rt(t);var r,i=-1,o=t.length;while(++i<o){var s=qt(t[i]);if(!(r=null!=e&&n(e,s)))break;e=e[s]}if(r)return r;o=e?e.length:0;return!!o&&an(o)&&Ht(s,o)&&(nn(e)||tn(e))}function Ht(e,t){return t=null==t?u:t,!!t&&("number"==typeof e||$.test(e))&&e>-1&&e%1==0&&e<t}function $t(e,t){if(nn(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ln(e))||(P.test(e)||!U.test(e)||null!=t&&e in Object(t))}function Ft(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Qt(e){return!!ge&&ge in e}function Vt(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||de;return e===n}function Zt(e){return e===e&&!cn(e)}function Wt(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(Ee&&Bt(new Ee(new ArrayBuffer(1)))!=E||we&&Bt(new we)!=y||Se&&Bt(Se.resolve())!=M||Oe&&Bt(new Oe)!=T||De&&Bt(new De)!=b)&&(Bt=function(e){var t=me.call(e),n=t==I?e.constructor:void 0,r=n?Jt(n):void 0;if(r)switch(r){case Re:return E;case je:return y;case xe:return M;case ke:return T;case Ue:return b}return t});var Kt=Xt((function(e){e=hn(e);var t=[];return z.test(e)&&t.push(""),e.replace(G,(function(e,n,r,i){t.push(r?i.replace(Y,"$1"):n||e)})),t}));function qt(e){if("string"==typeof e||ln(e))return e;var t=e+"";return"0"==t&&1/e==-c?"-0":t}function Jt(e){if(null!=e){try{return ve.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Xt(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s),s};return n.cache=new(Xt.Cache||Xe),n}function en(e,t){return e===t||e!==e&&t!==t}function tn(e){return on(e)&&ye.call(e,"callee")&&(!_e.call(e,"callee")||me.call(e)==l)}Xt.Cache=Xe;var nn=Array.isArray;function rn(e){return null!=e&&an(e.length)&&!sn(e)}function on(e){return un(e)&&rn(e)}function sn(e){var t=cn(e)?me.call(e):"";return t==g||t==v}function an(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function cn(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function un(e){return!!e&&"object"==typeof e}function ln(e){return"symbol"==typeof e||un(e)&&me.call(e)==_}var fn=ee?oe(ee):Nt;function hn(e){return null==e?"":Lt(e)}function dn(e,t,n){var r=null==e?void 0:It(e,t);return void 0===r?n:r}function pn(e,t){return null!=e&&Yt(e,t,Ct)}function gn(e){return rn(e)?pt(e):wt(e)}function vn(e,t,n){var r=nn(e)||fn(e);if(t=Et(t,4),null==n)if(r||cn(e)){var i=e.constructor;n=r?nn(e)?new i:[]:sn(i)?vt(Te(e)):{}}else n={};return(r?te:mt)(e,(function(e,r,i){return t(n,e,r,i)})),n}function yn(e){return e}function mn(e){return $t(e)?re(qt(e)):Dt(e)}n.exports=vn}).call(this,n("c8ba"),n("62e4")(e))},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),s=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ccb9:function(e,t,n){t.f=n("5168")},cd1c:function(e,t,n){var r=n("e853");e.exports=function(e,t){return new(r(e))(t)}},cd78:function(e,t,n){var r=n("e4ae"),i=n("f772"),o=n("656e");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),s=n.resolve;return s(t),n.promise}},cd93:function(e,t){var n="[object Object]";function r(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function i(e,t){return function(n){return e(t(n))}}var o=Function.prototype,s=Object.prototype,a=o.toString,c=s.hasOwnProperty,u=a.call(Object),l=s.toString,f=i(Object.getPrototypeOf,Object);function h(e){return!!e&&"object"==typeof e}function d(e){if(!h(e)||l.call(e)!=n||r(e))return!1;var t=f(e);if(null===t)return!0;var i=c.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&a.call(i)==u}e.exports=d},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),s=n("613b")("IE_PROTO");e.exports=function(e,t){var n,a=i(e),c=0,u=[];for(n in a)n!=s&&r(a,n)&&u.push(n);while(t.length>c)r(a,n=t[c++])&&(~o(u,n)||u.push(n));return u}},ce7e:function(e,t,n){var r=n("63b6"),i=n("584a"),o=n("294c");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",s)}},ceaf:function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=r.key,s=r.map,a=r.store;r.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:o(arguments[2]),r=s(i(t),n,!1);if(void 0===r||!r["delete"](e))return!1;if(r.size)return!0;var c=a.get(t);return c["delete"](n),!!c.size||a["delete"](t)}})},cee4:function(e,t,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),s=n("2444");function a(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=a(s);c.Axios=o,c.create=function(e){return a(r.merge(s,e))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),e.exports=c,e.exports.default=c},cf6a:function(e,t,n){var r=n("d3f4"),i=n("67ab").onFreeze;n("5eda")("seal",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},d04f:function(e,t,n){n("7a56")("Array")},d0b0:function(e,t,n){"use strict";n("386b")("italics",(function(e){return function(){return e(this,"i","","")}}))},d0ca:function(e,t,n){var r=n("5ca1"),i=n("abd7")(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(e){return i(e)}})},d185:function(e,t,n){var r=n("11e9"),i=n("38fd"),o=n("69a8"),s=n("5ca1"),a=n("d3f4"),c=n("cb7c");function u(e,t){var n,s,l=arguments.length<3?e:arguments[2];return c(e)===l?e[t]:(n=r.f(e,t))?o(n,"value")?n.value:void 0!==n.get?n.get.call(l):void 0:a(s=i(e))?u(s,t,l):void 0}s(s.S,"Reflect",{get:u})},d225:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},d233:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){while(e.length>1){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)"undefined"!==typeof n[o]&&r.push(n[o]);t.obj[t.prop]=r}}},a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},c=function e(t,n,o){if(!n)return t;if("object"!==typeof n){if(i(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var s=t;return i(t)&&!i(n)&&(s=a(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"===typeof s&&n&&"object"===typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),s)},u=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},l=function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},f=function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"===typeof e?r=Symbol.prototype.toString.call(e):"string"!==typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",s=0;s<r.length;++s){var a=r.charCodeAt(s);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},h=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],o=i.obj[i.prop],a=Object.keys(o),c=0;c<a.length;++c){var u=a[c],l=o[u];"object"===typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:o,prop:u}),n.push(l))}return s(t),e},d=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},p=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},v=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};e.exports={arrayToObject:a,assign:u,combine:g,compact:h,decode:l,encode:f,isBuffer:p,isRegExp:d,maybeMap:v,merge:c}},d25f:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(2);r(r.P+r.F*!n("2f21")([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},d263:function(e,t,n){"use strict";n("386b")("fixed",(function(e){return function(){return e(this,"tt","","")}}))},d282:function(e,t,n){"use strict";function r(e,t){return t?"string"===typeof t?" "+e+"--"+t:Array.isArray(t)?t.reduce((function(t,n){return t+r(e,n)}),""):Object.keys(t).reduce((function(n,i){return n+(t[i]?r(e,i):"")}),""):""}function i(e){return function(t,n){return t&&"string"!==typeof t&&(n=t,t=""),t=t?e+"__"+t:e,""+t+r(t,n)}}var o=n("a142"),s=/-(\w)/g;function a(e){return e.replace(s,(function(e,t){return t.toUpperCase()}))}var c={methods:{slots:function(e,t){void 0===e&&(e="default");var n=this.$slots,r=this.$scopedSlots,i=r[e];return i?i(t):n[e]}}};function u(e){var t=this.name;e.component(t,this),e.component(a("-"+t),this)}function l(e){var t=e.scopedSlots||e.data.scopedSlots||{},n=e.slots();return Object.keys(n).forEach((function(e){t[e]||(t[e]=function(){return n[e]})})),t}function f(e){return{functional:!0,props:e.props,model:e.model,render:function(t,n){return e(t,n.props,l(n),n)}}}function h(e){return function(t){return Object(o["d"])(t)&&(t=f(t)),t.functional||(t.mixins=t.mixins||[],t.mixins.push(c)),t.name=e,t.install=u,t}}var d=n("2b0e"),p=Object.prototype.hasOwnProperty;function g(e,t,n){var r=t[n];Object(o["c"])(r)&&(p.call(e,n)&&Object(o["e"])(r)?e[n]=v(Object(e[n]),t[n]):e[n]=r)}function v(e,t){return Object.keys(t).forEach((function(n){g(e,t,n)})),e}var y={name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(e,t){return e+"年"+t+"月"},rangePrompt:function(e){return"选择天数不能超过 "+e+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(e){return e+"折"},condition:function(e){return"满"+e+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(e){return e+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}},m=d["default"].prototype,I=d["default"].util.defineReactive;I(m,"$vantLang","zh-CN"),I(m,"$vantMessages",{"zh-CN":y});var M={messages:function(){return m.$vantMessages[m.$vantLang]},use:function(e,t){var n;m.$vantLang=e,this.add((n={},n[e]=t,n))},add:function(e){void 0===e&&(e={}),v(m.$vantMessages,e)}};function C(e){var t=a(e)+".";return function(e){for(var n=M.messages(),r=Object(o["a"])(n,t+e)||Object(o["a"])(n,e),i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return Object(o["d"])(r)?r.apply(void 0,s):r}}function T(e){return e="van-"+e,[h(e),i(e),C(e)]}n.d(t,"a",(function(){return T}))},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d2d5:function(e,t,n){n("1654"),n("549b"),e.exports=n("584a").Array.from},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d4af:function(e,t,n){"use strict";var r=n("8eb7"),i=n("7b3e"),o=10,s=40,a=800;function c(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*o,i=n*o,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=s,i*=s):(r*=a,i*=a)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}c.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=c},d4c0:function(e,t,n){var r=n("0d58"),i=n("2621"),o=n("52a7");e.exports=function(e){var t=r(e),n=i.f;if(n){var s,a=n(e),c=o.f,u=0;while(a.length>u)c.call(e,s=a[u++])&&t.push(s)}return t}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d540:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return s};function i(e,t){var n=r(e),i=n[0],s=n.slice(1),a=i;return s.forEach((function(e){a=o(a,e,t)})),a}function o(e,t,n){var r={};return Object.keys(e).concat(Object.keys(t)).forEach((function(i){var o=n(e[i],t[i],i);r[i]="undefined"===typeof o?e[i]:o})),r}t.__esModule=!0,t["default"]=i},d6c6:function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},d752:function(e,t,n){var r=n("7726").parseFloat,i=n("aa77").trim;e.exports=1/r(n("fdef")+"-0")!==-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},d758:function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}))},d847:function(e,t,n){e.exports=n("5bba")},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},d8d6:function(e,t,n){n("1654"),n("6c1c"),e.exports=n("ccb9").f("iterator")},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d92a:function(e,t,n){var r=n("5ca1");r(r.P,"Function",{bind:n("f0c1")})},d9ab:function(e,t,n){var r=n("5ca1"),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},d9f6:function(e,t,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),s=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},db2a:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},db4d:function(e,t,n){"use strict";(function(e){if(n("66f9"),n("f3a2"),n("fd5a"),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0;var t="defineProperty";function r(e,n,r){e[n]||Object[t](e,n,{writable:!0,configurable:!0,value:r})}r(String.prototype,"padLeft","".padStart),r(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach((function(e){[][e]&&r(Array,e,Function.call.bind([][e]))}))}).call(this,n("c8ba"))},db72:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n("85f2"),i=n.n(r),o=n("d847"),s=n.n(o),a=n("5e83"),c=n.n(a),u=n("268f"),l=n.n(u),f=n("e265"),h=n.n(f),d=n("a4bb"),p=n.n(d),g=n("bd86");function v(e,t){var n=p()(e);if(h.a){var r=h()(e);t&&(r=r.filter((function(t){return l()(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){Object(g["a"])(e,t,n[t])})):c.a?s()(e,c()(n)):v(Object(n)).forEach((function(t){i()(e,t,l()(n,t))}))}return e}},db97:function(e,t,n){var r=n("5ca1");r(r.S,"Object",{is:n("83a1")})},db9a:function(e,t,n){var r=n("5ca1");r(r.P+r.R,"Set",{toJSON:n("44b8")("Set")})},dbdb:function(e,t,n){var r=n("584a"),i=n("e53d"),o="__core-js_shared__",s=i[o]||(i[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dc62:function(e,t,n){n("9427");var r=n("584a").Object;e.exports=function(e,t){return r.create(e,t)}},dcbc:function(e,t,n){var r=n("2aba");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},dd8a:function(e,t,n){n("28e4")("Set")},df1b:function(e,t,n){var r=n("5ca1"),i=n("d8e8"),o=n("cb7c"),s=(n("7726").Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!n("79e5")((function(){s((function(){}))})),"Reflect",{apply:function(e,t,n){var r=i(e),c=o(n);return s?s(r,t,c):a.call(r,t,c)}})},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,r="/"===s.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),s="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&s&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),s=Math.min(i.length,o.length),a=s,c=0;c<s;c++)if(i[c]!==o[c]){a=c;break}var u=[];for(c=a;c<i.length;c++)u.push("..");return u=u.concat(o.slice(a)),u.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(i=!1,r=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},dfaf:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0},clickable:{type:Boolean,default:null}}},e017:function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var n=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function r(e,t){return t={exports:{}},e(t,t.exports),t.exports}var i=r((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&e(n)?o(t(n),n,r):n}function r(t,r,i){var s=t.slice();return r.forEach((function(r,a){"undefined"===typeof s[a]?s[a]=n(r,i):e(r)?s[a]=o(t[a],r,i):-1===t.indexOf(r)&&s.push(n(r,i))})),s}function i(t,r,i){var s={};return e(t)&&Object.keys(t).forEach((function(e){s[e]=n(t[e],i)})),Object.keys(r).forEach((function(a){e(r[a])&&t[a]?s[a]=o(t[a],r[a],i):s[a]=n(r[a],i)})),s}function o(e,t,o){var s=Array.isArray(t),a=o||{arrayMerge:r},c=a.arrayMerge||r;return s?Array.isArray(e)?c(e,t,o):n(t,o):i(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return o(e,n,t)}))},o}))})),o=r((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),s=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},a=o.svg,c=o.xlink,u={};u[a.name]=a.uri,u[c.name]=c.uri;var l=function(e,t){void 0===e&&(e="");var n=i(u,t||{}),r=s(n);return"<svg "+r+">"+e+"</svg>"},f=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return n(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,r),t}(e);return f}))}).call(this,n("c8ba"))},e099:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===typeof e?o(s(e),(function(s){var a=encodeURIComponent(r(s))+n;return i(e[s])?o(e[s],(function(e){return a+encodeURIComponent(r(e))})).join(t):a+encodeURIComponent(r(e[s]))})).join(t):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var s=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},e0b8:function(e,t,n){"use strict";var r=n("7726"),i=n("5ca1"),o=n("2aba"),s=n("dcbc"),a=n("67ab"),c=n("4a59"),u=n("f605"),l=n("d3f4"),f=n("79e5"),h=n("5cc5"),d=n("7f20"),p=n("5dbc");e.exports=function(e,t,n,g,v,y){var m=r[e],I=m,M=v?"set":"add",C=I&&I.prototype,T={},A=function(e){var t=C[e];o(C,e,"delete"==e||"has"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof I&&(y||C.forEach&&!f((function(){(new I).entries().next()})))){var _=new I,b=_[M](y?{}:-0,1)!=_,N=f((function(){_.has(1)})),E=h((function(e){new I(e)})),w=!y&&f((function(){var e=new I,t=5;while(t--)e[M](t,t);return!e.has(-0)}));E||(I=t((function(t,n){u(t,I,e);var r=p(new m,t,I);return void 0!=n&&c(n,v,r[M],r),r})),I.prototype=C,C.constructor=I),(N||w)&&(A("delete"),A("has"),v&&A("get")),(w||b)&&A(M),y&&C.clear&&delete C.clear}else I=g.getConstructor(t,e,v,M),s(I.prototype,n),a.NEED=!0;return d(I,e),T[e]=I,i(i.G+i.W+i.F*(I!=m),T),y||g.setStrong(I,e,v),I}},e11c:function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return me})),n.d(t,"e",(function(){return de})),n.d(t,"h",(function(){return ut})),n.d(t,"k",(function(){return Ie})),n.d(t,"l",(function(){return ve})),n.d(t,"m",(function(){return K})),n.d(t,"n",(function(){return Z})),n.d(t,"o",(function(){return re})),n.d(t,"p",(function(){return te})),n.d(t,"q",(function(){return $})),n.d(t,"r",(function(){return st})),n.d(t,"s",(function(){return F})),n.d(t,"t",(function(){return q})),n.d(t,"u",(function(){return V})),n.d(t,"v",(function(){return nt})),n.d(t,"w",(function(){return Q})),n.d(t,"x",(function(){return X})),n.d(t,"y",(function(){return ne})),n.d(t,"z",(function(){return H})),n.d(t,"B",(function(){return ot})),n.d(t,"C",(function(){return ct})),n.d(t,"D",(function(){return J})),n.d(t,"E",(function(){return W})),n.d(t,"F",(function(){return ee})),n.d(t,"G",(function(){return Xe})),n.d(t,"H",(function(){return et})),n.d(t,"I",(function(){return qe})),n.d(t,"J",(function(){return rt})),n.d(t,"K",(function(){return it})),n.d(t,"L",(function(){return at})),n.d(t,"M",(function(){return se})),n.d(t,"N",(function(){return ae})),n.d(t,"O",(function(){return ce}));var r=n("903e");n.d(t,"a",(function(){return r["e"]})),n.d(t,"b",(function(){return r["f"]})),n.d(t,"f",(function(){return r["l"]})),n.d(t,"g",(function(){return r["m"]})),n.d(t,"i",(function(){return r["q"]})),n.d(t,"j",(function(){return r["r"]})),n.d(t,"A",(function(){return r["J"]}));var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function s(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}var c,u,l=function(){return!("undefined"==typeof uni||!function(e){for(var t=["request","getSystemInfo"],n=0,r=t.length;n<r;n++)if(!e[t[n]])return!1;return!0}(uni))},f=l(),h={tag:"browser",httpReq:function(e){var t=e.method||r["i"].GET,n=e.timeout||6e4,i=e.headers,o=e.query,s=e.body,a=Object(r["w"])(e.url,o);return new Promise((function(e){var r,o=(r="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,"undefined"!=typeof XMLHttpRequest&&r?new XMLHttpRequest:"undefined"!=typeof XDomainRequest?new XDomainRequest:new ActiveXObject("Microsoft.XMLHTTP")),c="[object XDomainRequest]"===Object.prototype.toString.call(o);if(o.open(t,a),i&&o.setRequestHeader)for(var u in i)o.setRequestHeader(u,i[u]);if(c){o.timeout=n,o.onload=function(){e({data:o.responseText,status:o.status||200})},o.onerror=function(){e({status:o.status||0})},o.ontimeout=function(){e({status:o.status||0})};var l="object"==typeof s?JSON.stringify(s):s;o.send(l)}else o.onreadystatechange=function(){4===o.readyState&&e({data:o.responseText,status:o.status})},o.onerror=function(){e({status:o.status||0})},setTimeout((function(){o.abort(),e({status:o.status||0})}),n),o.send(s)}))},localStorage:null===window||void 0===window?void 0:window.localStorage,sessionStorage:null===window||void 0===window?void 0:window.sessionStorage,isSupportSocket:function(){return"undefined"!=typeof WebSocket},useNavi:!0,connectPlatform:"",isFromUniapp:f,createWebSocket:function(e,t){var n=new WebSocket(e,t);return n.binaryType="arraybuffer",{onClose:function(e){n.onclose=function(t){var n=t.code,r=t.reason;e(n,r)}},onError:function(e){n.onerror=e},onMessage:function(e){n.onmessage=function(t){e(t.data)}},onOpen:function(e){n.onopen=e},send:function(e){n.send(e)},close:function(e,t){n.close()}}},createDataChannel:function(e,t){return this.isSupportSocket()&&"websocket"===t?new r["v"](this,e):new r["d"](this,e)},getNetworkType:function(){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection,t=e.type,n=e.effectiveType,i=t||n||r["o"].UNKONWN;return new Promise((function(e){e(i)}))}},d=l(),p=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r["J"].ID();try{return r["J"].info(r["j"].A_CALLBACK_O,{func_name:e,source:"wechat"},{traceId:i}),wx[e].apply(wx,t)}catch(t){r["J"].error(r["j"].A_CALLBACK_E,{func_name:e,source:"wechat"},{traceId:i}),console.error(t)}}},g={setItem:p("setStorageSync"),getItem:p("getStorageSync"),removeItem:p("removeStorageSync"),clear:p("clearStorageSync")},v={tag:"wechat",httpReq:function(e){var t=e.method||r["i"].GET,n=e.timeout||6e4,i=e.headers,o=e.query,s=e.body,a=Object(r["w"])(e.url,o);return new Promise((function(e){wx.request({url:a,method:t,header:i,timeout:n,data:s,success:function(t){e({data:t.data,status:t.statusCode})},fail:function(){e({status:r["f"].RC_HTTP_REQ_FAIL})}})}))},localStorage:g,sessionStorage:g,isSupportSocket:function(){return!0},useNavi:!1,connectPlatform:"MiniProgram",isFromUniapp:d,createWebSocket:function(e,t){var n=wx.connectSocket({url:e,protocols:t});return{onClose:function(e){n.onClose((function(t){e(t.code,t.reason)}))},onError:function(e){n.onError((function(t){e(t.errMsg)}))},onMessage:function(e){n.onMessage((function(t){e(t.data)}))},onOpen:function(e){n.onOpen(e)},send:function(e){n.send({data:e})},close:function(e,t){n.close({code:e,reason:t})}}},createDataChannel:function(e,t){return"websocket"===t?new r["v"](this,e):new r["d"](this,e)},getNetworkType:function(){return new Promise((function(e){wx.getNetworkType({success:function(t){var n=t.networkType;e(n)},fail:function(){e(r["o"].UNKONWN)}})}))}},y=l(),m=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r["J"].ID();try{if(r["J"].info(r["j"].A_CALLBACK_O,{func_name:e,source:"alipay"},{traceId:i}),"setStorageSync"===e)return my[e]({key:t[0],data:JSON.parse(t[1])});if("clearStorageSync"===e)return my[e]();if("removeStorageSync"===e)return my[e]({key:t[0]});var o=my[e]({key:t[0]}).data;return o?JSON.stringify(o):o}catch(t){r["J"].error(r["j"].A_CALLBACK_E,{func_name:e,source:"alipay"},{traceId:i}),console.error(t)}}},I={setItem:m("setStorageSync"),getItem:m("getStorageSync"),removeItem:m("removeStorageSync"),clear:m("clearStorageSync")},M={tag:"alipay",httpReq:function(e){var t=e.method||r["i"].GET,n=e.timeout||6e4,i=e.headers,o=e.query,s=e.body,a=Object(r["w"])(e.url,o),c=e.dataType||"json";return new Promise((function(e){my.request({url:a,method:t,headers:i,timeout:n,data:s,dataType:c,success:function(t){e({data:t.data,status:t.status})},fail:function(){e({status:r["f"].RC_HTTP_REQ_FAIL})}})}))},localStorage:I,sessionStorage:I,isSupportSocket:function(){return!0},useNavi:!1,connectPlatform:"MiniProgram",isFromUniapp:y,createWebSocket:function(e){return my.connectSocket({url:e}),{onClose:function(e){my.onSocketClose(e)},onError:function(e){my.onSocketError((function(t){e(t.errMsg)}))},onMessage:function(e){my.onSocketMessage((function(t){t.isBuffer?e(my.base64ToArrayBuffer(t.data)):e(t.data)}))},onOpen:function(e){my.onSocketOpen(e)},send:function(e){my.sendSocketMessage({data:my.arrayBufferToBase64(e),isBuffer:!0})},close:function(){my.closeSocket()}}},createDataChannel:function(e,t){return"websocket"===t?new r["v"](this,e):new r["d"](this,e)},getNetworkType:function(){return new Promise((function(e){my.getNetworkType({success:function(t){var n=t.networkType;e(n)},fail:function(){e(r["o"].UNKONWN)}})}))}},C=l(),T=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r["J"].ID();try{return r["J"].info(r["j"].A_CALLBACK_O,{func_name:e,source:"toutiao"},{traceId:i}),tt[e].apply(tt,t)}catch(t){r["J"].error(r["j"].A_CALLBACK_E,{func_name:e,source:"toutiao"},{traceId:i}),console.error(t)}}},A={setItem:T("setStorageSync"),getItem:T("getStorageSync"),removeItem:T("removeStorageSync"),clear:T("clearStorageSync")},_={tag:"toutiao",isSupportSocket:function(){return!0},useNavi:!1,connectPlatform:"MiniProgram",isFromUniapp:C,localStorage:A,sessionStorage:A,httpReq:function(e){return new Promise((function(t){tt.request({url:e.url,data:e.body,header:e.headers,method:e.method,success:function(e){console.log("调用成功",e.data);var n=(null==e?void 0:e.data)||{},r={data:JSON.stringify(n),status:e.statusCode};t(r)},fail:function(e){t({status:r["f"].RC_HTTP_REQ_FAIL})}})}))},createWebSocket:function(e,t){var n=tt.connectSocket({url:e,protocols:t});return{onOpen:function(e){n.onOpen(e)},onClose:function(e){n.onClose((function(t){return e(t.code,t.reason)}))},onError:function(e){n.onError((function(t){return e(t.errMsg)}))},onMessage:function(e){n.onMessage((function(t){return e(t.data)}))},send:function(e){n.send({data:e})},close:function(e,t){n.close({code:e,reason:t})}}},createDataChannel:function(e,t){return"websocket"===t?new r["v"](this,e):new r["d"](this,e)},getNetworkType:function(){return new Promise((function(e){tt.getNetworkType({success:function(t){var n=t.networkType;e(n)},fail:function(){e(r["o"].UNKONWN)}})}))}},b=l(),N=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r["J"].ID();try{return r["J"].info(r["j"].A_CALLBACK_O,{func_name:e,source:"baidu"},{traceId:i}),swan[e].apply(swan,t)}catch(t){r["J"].error(r["j"].A_CALLBACK_E,{func_name:e,source:"baidu"},{traceId:i}),console.error(t)}}},E={setItem:N("setStorageSync"),getItem:N("getStorageSync"),removeItem:N("removeStorageSync"),clear:N("clearStorageSync")},w={tag:"baidu",isSupportSocket:function(){return!0},useNavi:!1,connectPlatform:"MiniProgram",isFromUniapp:b,localStorage:E,sessionStorage:E,httpReq:function(e){return new Promise((function(t,n){swan.request({url:e.url,data:e.body,header:e.headers,method:e.method,success:function(e){console.log("调用成功",e.data);var n=(null==e?void 0:e.data)||{},r={data:JSON.stringify(n),status:e.statusCode};t(r)},fail:function(e){t({status:r["f"].RC_HTTP_REQ_FAIL})}})}))},createWebSocket:function(e,t){var n=swan.connectSocket({url:e,protocols:t});return{onOpen:function(e){n.onOpen(e)},onClose:function(e){n.onClose((function(t){return e(t.code,t.reason)}))},onError:function(e){n.onError((function(t){return e(t.errMsg)}))},onMessage:function(e){n.onMessage((function(t){return e(t.data)}))},send:function(e){n.send({data:e})},close:function(e,t){n.close({code:e,reason:t})}}},createDataChannel:function(e,t){return"websocket"===t?new r["v"](this,e):new r["d"](this,e)},getNetworkType:function(){return s(this,void 0,void 0,(function(){return a(this,(function(e){return[2,new Promise((function(e){swan.getNetworkType({success:function(t){var n=t.networkType;e(n)},fail:function(){e(r["o"].UNKONWN)}})}))]}))}))}},S=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r["J"].ID();try{return r["J"].info(r["j"].A_CALLBACK_O,{func_name:e,source:"uniapp"},{traceId:i}),uni[e].apply(uni,t)}catch(t){r["J"].error(r["j"].A_CALLBACK_E,{func_name:e,source:"uniapp"},{traceId:i}),console.error(t)}}},O={setItem:S("setStorageSync"),getItem:S("getStorageSync"),removeItem:S("removeStorageSync"),clear:S("clearStorageSync")},D={tag:"uniapp",httpReq:function(e){var t=e.method||r["i"].GET,n=e.timeout||6e4,i=e.headers,o=e.query,s=e.body,a=Object(r["w"])(e.url,o);return new Promise((function(e){uni.request({url:a,method:t,header:i,timeout:n,data:s,success:function(t){e({data:t.data,status:t.statusCode})},fail:function(){e({status:r["f"].RC_HTTP_REQ_FAIL})}})}))},localStorage:O,sessionStorage:O,isSupportSocket:function(){return!0},useNavi:!0,connectPlatform:"",isFromUniapp:!0,createWebSocket:function(e,t){var n={complete:function(){},url:e,protocols:t},r=uni.connectSocket(n);return{onClose:function(e){r.onClose((function(t){e(t.code,t.reason)}))},onError:function(e){r.onError((function(t){e(t.errMsg)}))},onMessage:function(e){r.onMessage((function(t){e(t.data)}))},onOpen:function(e){r.onOpen(e)},send:function(e){r.send({data:e})},close:function(e,t){r.close({code:e,reason:t})}}},createDataChannel:function(e,t){return"websocket"===t?new r["v"](this,e):new r["d"](this,e)},getNetworkType:function(){return new Promise((function(e){uni.getNetworkType({success:function(t){var n=t.networkType;e(n)},fail:function(){e(r["o"].UNKONWN)}})}))}},L=function(e){return e&&e.request&&e.getSystemInfo},R="undefined"!=typeof uni&&L(uni)?function(){switch(Object({VUE_APP_BASE_API:"api",NODE_ENV:"production",BASE_URL:""}).VUE_APP_PLATFORM){case"app-plus":return D;case"mp-baidu":return w;case"mp-toutiao":return _;case"mp-alipay":return M;case"mp-weixin":return v;default:return h}}():"undefined"!=typeof my&&L(my)?M:"undefined"!=typeof tt&&L(tt)?_:"undefined"!=typeof swan&&L(swan)?w:"undefined"!=typeof wx&&L(wx)?v:h,j=new r["k"]("RCIM");function x(e){var t=e.conversationType,n=e.channelId,i=e.messageType,o=e.content,s=e.senderUserId,a=e.targetId,c=e.sentTime,u=e.receivedTime,l=e.messageUId,f=e.messageDirection,h=e.isPersited,d=e.isCounted,p=e.isOffLineMessage,g=e.canIncludeExpansion,v=e.expansion,y=e.receivedStatus,m=e.disableNotification,I=e.isMentioned,M=e.isStatusMessage,C=e.readReceiptInfo,T=e.pushConfig,A=e.messageId,_=e.isInterrupt,b=e.isModifyMessage,N=e.channelType,E=e.sentStatus;y||(y=r["r"].UNREAD);var w={messageType:i,channelId:n||"",content:o,senderUserId:s,targetId:a,conversationType:t,sentTime:c,receivedTime:u,messageUId:l,messageDirection:f,isPersited:h,isCounted:d,isMentioned:I,disableNotification:m,isStatusMessage:M,canIncludeExpansion:g,expansion:v,receivedStatus:y,readReceiptInfo:C,pushConfig:T,messageId:A,isInterrupt:_,isModifyMessage:b,sentStatus:E};return t!==r["e"].ULTRA_GROUP&&(w.isOffLineMessage=p),t===r["e"].ULTRA_GROUP&&Object(r["C"])(N)&&(w.channelType=N),w}function k(e){var t=e.conversationType,n=e.targetId,r=e.latestMessage,i=e.unreadMessageCount,o=e.hasMentioned,s=e.mentionedInfo,a=e.lastUnreadTime,c=e.notificationStatus,u=e.notificationLevel,l=e.isTop,f=e.channelId,h=e.unreadMentionedCount;return{conversationType:t,targetId:n,latestMessage:r&&x(r),unreadMessageCount:i,hasMentioned:o,mentionedInfo:o?{type:null==s?void 0:s.type,userIdList:null==s?void 0:s.userIdList}:void 0,lastUnreadTime:a,notificationStatus:c,notificationLevel:u,isTop:l,channelId:f,unreadMentionedCount:h}}!function(e){e.CONNECTING="CONNECTING",e.CONNECTED="CONNECTED",e.DISCONNECT="DISCONNECT",e.SUSPEND="SUSPEND",e.MESSAGES="MESSAGES",e.READ_RECEIPT_RECEIVED="READ_RECEIPT_RECEIVED",e.MESSAGE_RECEIPT_REQUEST="MESSAGE_RECEIPT_REQUEST",e.MESSAGE_RECEIPT_RESPONSE="MESSAGE_RECEIPT_RESPONSE",e.CONVERSATION="CONVERSATION",e.CHATROOM="CHATROOM",e.EXPANSION="EXPANSION",e.PULL_OFFLINE_MESSAGE_FINISHED="PULL_OFFLINE_MESSAGE_FINISHED",e.TAG="TAG",e.CONVERSATION_TAG="CONVERSATION_TAG",e.TYPING_STATUS="TYPING_STATUS",e.MESSAGE_BLOCKED="MESSAGE_BLOCKED",e.ULTRA_GROUP_ENABLE="ULTRA_GROUP_ENABLE",e.OPERATE_STATUS="OPERATE_STATUS",e.ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED="ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED",e.ULTRA_GROUP_MESSAGE_MODIFIED="ULTRA_GROUP_MESSAGE_MODIFIED",e.ULTRA_GROUP_MESSAGE_RECALLED="ULTRA_GROUP_MESSAGE_RECALLED",e.ULTRA_GROUP_CHANNEL_TYPE_CHANGE="ULTRA_GROUP_CHANNEL_TYPE_CHANGE",e.ULTRA_GROUP_CHANNEL_DELETE="ULTRA_GROUP_CHANNEL_DELETE",e.ULTRA_GROUP_CHANNEL_USER_KICKED="ULTRA_GROUP_CHANNEL_USER_KICKED"}(c||(c={})),function(e){e[e.SENDING=10]="SENDING",e[e.FAILED=20]="FAILED",e[e.SENT=30]="SENT",e[e.RECEIVED=40]="RECEIVED",e[e.READ=50]="READ",e[e.DESTROYED=60]="DESTROYED"}(u||(u={}));var U,P=function(e){function t(n){var i=e.call(this)||this;i.initOptions=n,Object(r["x"])("options.navigators",n.navigators,(function(e){return Object(r["z"])(e)&&(0===e.length||e.every(r["B"]))})),j.setLogLevel(n.logLevel),j.setLogStdout(n.logStdout);var o=null==n?void 0:n.connectType;return o?r["c"].WEBSOCKET!==o&&r["c"].COMET!==o&&(j.warn("RongIMLib connectionType must be ".concat(r["c"].WEBSOCKET," or ").concat(r["c"].COMET)),o=r["c"].WEBSOCKET):o=r["c"].WEBSOCKET,r["J"].info(r["j"].A_INIT_O,{appkey:n.appkey,navigators:n.navigators||[],connectionType:o,logLevel:n.logLevel}),i._context=r["a"].init(R,{appkey:n.appkey,apiVersion:"5.5.3",navigators:n.navigators||[],miniCMPProxy:n.customCMP||[],connectionType:o,logLevel:n.logLevel,logStdout:n.logStdout,indexDBSwitch:n.indexDBSwitch,checkCA:n.checkCA}),i.watch(),t.imClient=i,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),Object.defineProperty(t.prototype,"context",{get:function(){if(!this._context)throw new Error("Please perform the init method!");return this._context},enumerable:!1,configurable:!0}),t.prototype.watch=function(){var e=this,t=r["J"].ID(),n={onConnecting:function(){e.emit(c.CONNECTING)},onConnected:function(){e.emit(c.CONNECTED)},onDisconnect:function(n){r["J"].info(r["j"].A_CONNECT_S,{status:n},{traceId:t}),e.emit(c.DISCONNECT,n)},onSuspend:function(n){r["J"].info(r["j"].A_CONNECT_S,{status:n},{traceId:t}),e.emit(c.SUSPEND,n)},batchMessage:function(t){r["J"].info(r["j"].A_PULL_MSG_O,{messages:t.map((function(e){return e.messageUId}))}),e.emit(c.MESSAGES,{messages:t.map((function(e){return x(e)}))})},typingState:function(t){e.emit(c.TYPING_STATUS,{status:t})},readReceiptReceived:function(t,n,r){e.emit(c.READ_RECEIPT_RECEIVED,{conversation:t,messageUId:n,sentTime:r})},messageReceiptRequest:function(t,n,r){e.emit(c.MESSAGE_RECEIPT_REQUEST,{conversation:t,messageUId:n,senderUserId:r})},messageReceiptResponse:function(t,n,r){e.emit(c.MESSAGE_RECEIPT_RESPONSE,{conversation:t,receivedUserId:n,messageUIdList:r})},conversationState:function(t){var n=t.map((function(e){var t=e.conversationType;return t===r["e"].ULTRA_GROUP?{conversation:{conversationType:t,latestMessage:e.latestMessage?x(e.latestMessage):null,targetId:e.targetId,unreadMessageCount:e.unreadMessageCount,unreadMentionedCount:e.unreadMentionedCount,versionTime:e.versionTime,notificationStatus:e.notificationStatus,notificationLevel:e.notificationLevel,lastUnreadTime:e.lastUnreadTime,channelId:e.channelId}}:{conversation:{conversationType:t,latestMessage:e.latestMessage?x(e.latestMessage):null,targetId:e.targetId,unreadMessageCount:e.unreadMessageCount,hasMentioned:e.hasMentioned,mentionedInfo:e.mentionedInfo,lastUnreadTime:e.lastUnreadTime,notificationStatus:e.notificationStatus,notificationLevel:e.notificationLevel,isTop:e.isTop,channelId:e.channelId,unreadMentionedCount:e.unreadMentionedCount},updatedItems:e.updatedItems}}));e.emit(c.CONVERSATION,{conversationList:n})},chatroomState:function(t){e.emit(c.CHATROOM,t)},expansion:function(t){e.emit(c.EXPANSION,t)},pullFinished:function(){e.emit(c.PULL_OFFLINE_MESSAGE_FINISHED)},tag:function(){e.emit(c.TAG)},conversationTagChanged:function(){e.emit(c.CONVERSATION_TAG)},messageBlocked:function(t){e.emit(c.MESSAGE_BLOCKED,t)},ultraGroupEnable:function(t){e.emit(c.ULTRA_GROUP_ENABLE,t)},operateStatus:function(t){e.emit(c.OPERATE_STATUS,t)},ultraGroupMessageExpansionUpdated:function(t){e.emit(c.ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED,t)},ultraGroupMessageModified:function(t){e.emit(c.ULTRA_GROUP_MESSAGE_MODIFIED,t)},ultraGroupMessageRecalled:function(t){e.emit(c.ULTRA_GROUP_MESSAGE_RECALLED,t)},ultraGroupChannelChangeType:function(t){e.emit(c.ULTRA_GROUP_CHANNEL_TYPE_CHANGE,t)},ultraGroupChannelUserKicked:function(t){e.emit(c.ULTRA_GROUP_CHANNEL_USER_KICKED,t)},ultraGroupChannelDelete:function(t){e.emit(c.ULTRA_GROUP_CHANNEL_DELETE,t)}};this.context.assignWatcher(n)},t}(r["g"]),z={TIMEOUT:{code:-1,msg:"Network timeout"},SDK_INTERNAL_ERROR:{code:-2,msg:"SDK internal error"},PARAMETER_ERROR:{code:-3,msg:"Please check the parameters, the {param} expected a value of {expect} but received {current}"},REJECTED_BY_BLACKLIST:{code:405,msg:"Blacklisted by the other party"},SEND_TOO_FAST:{code:20604,msg:"Sending messages too quickly"},NOT_IN_GROUP:{code:22406,msg:"Not in group"},ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL:{code:r["f"].ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL,msg:"ultra group user not in private channel"},FORBIDDEN_IN_GROUP:{code:22408,msg:"Forbbiden from speaking in the group"},NOT_IN_CHATROOM:{code:23406,msg:"Not in chatRoom"},FORBIDDEN_IN_CHATROOM:{code:23408,msg:"Forbbiden from speaking in the chatRoom"},KICKED_FROM_CHATROOM:{code:23409,msg:"Kicked out and forbbiden from joining the chatRoom"},CHATROOM_NOT_EXIST:{code:23410,msg:"ChatRoom does not exist"},CHATROOM_IS_FULL:{code:23411,msg:"ChatRoom members exceeded"},PARAMETER_INVALID_CHATROOM:{code:23412,msg:"Invalid chatRoom parameters"},ROAMING_SERVICE_UNAVAILABLE_CHATROOM:{code:23414,msg:"ChatRoom message roaming service is not open, Please go to the developer to open this service"},RECALLMESSAGE_PARAMETER_INVALID:{code:25101,msg:"Invalid recall message parameter"},ROAMING_SERVICE_UNAVAILABLE_MESSAGE:{code:25102,msg:"Single group chat roaming service is not open, Please go to the developer to open this service"},PUSHSETTING_PARAMETER_INVALID:{code:26001,msg:"Invalid push parameter"},OPERATION_BLOCKED:{code:20605,msg:"Operation is blocked"},OPERATION_NOT_SUPPORT:{code:20606,msg:"Operation is not supported"},MSG_BLOCKED_SENSITIVE_WORD:{code:21501,msg:"The sent message contains sensitive words"},REPLACED_SENSITIVE_WORD:{code:21502,msg:"Sensitive words in the message have been replaced"},NOT_CONNECTED:{code:30001,msg:"Please connect successfully first"},NAVI_REQUEST_ERROR:{code:30007,msg:"Navigation http request failed"},CMP_REQUEST_ERROR:{code:30010,msg:"CMP sniff http request failed"},CONN_APPKEY_FAKE:{code:31002,msg:"Your appkey is fake"},CONN_MINI_SERVICE_NOT_OPEN:{code:31003,msg:"Mini program service is not open, Please go to the developer to open this service"},CONN_ACK_TIMEOUT:{code:31e3,msg:"Connection ACK timeout"},CONN_TOKEN_INCORRECT:{code:31004,msg:"Your token is not valid or expired"},CONN_NOT_AUTHRORIZED:{code:31005,msg:"AppKey and Token do not match"},CONN_REDIRECTED:{code:31006,msg:"Connection redirection"},CONN_APP_BLOCKED_OR_DELETED:{code:31008,msg:"AppKey is banned or deleted"},CONN_USER_BLOCKED:{code:31009,msg:"User blocked"},CONN_DOMAIN_INCORRECT:{code:31012,msg:"Connect domain error, Please check the set security domain"},ROAMING_SERVICE_UNAVAILABLE:{code:33007,msg:"Roaming service cloud is not open, Please go to the developer to open this service"},RC_CONNECTION_EXIST:{code:34001,msg:"Connection already exists"},CHATROOM_KV_EXCEED:{code:23423,msg:"ChatRoom KV setting exceeds maximum"},CHATROOM_KV_OVERWRITE_INVALID:{code:23424,msg:"ChatRoom KV already exists"},CHATROOM_KV_STORE_NOT_OPEN:{code:23426,msg:"ChatRoom KV storage service is not open, Please go to the developer to open this service"},CHATROOM_KEY_NOT_EXIST:{code:23427,msg:"ChatRoom key does not exist"},MSG_KV_NOT_SUPPORT:{code:34008,msg:"The message cannot be extended"},SEND_MESSAGE_KV_FAIL:{code:34009,msg:"Sending RC expansion message fail"},EXPANSION_LIMIT_EXCEET:{code:34010,msg:"The message expansion size is beyond the limit"},ILLGAL_PARAMS:{code:33003,msg:"Incorrect parameters passed in while calling the interface"},UPLOAD_FILE_FAILED:{code:35020,msg:"File upload failed"},CHATROOM_KV_STORE_NOT_ALL_SUCCESS:{code:23428,msg:"Chatroom kv store not all success"},CHATROOM_KV_STORE_OUT_LIMIT:{code:23429,msg:"Chatroom kv's length is out of limit"},TAG_EXISTS:{code:33101,msg:"The tag already exists"},TAG_NOT_EXIST:{code:33100,msg:"The tag does not exist"},NOT_SUPPORT:{code:r["f"].NOT_SUPPORT,msg:"The method is not supported in a browser!"}},G={};for(var B in z){var Y=z[B].code;G[Y]=B}z.ROAMING_SERVICE_UNAVAILABLE.code;var H=function(e){U?j.error("Please do not repeatedly perform the init method"):U=new P(e)};function $(e,t){return s(this,void 0,void 0,(function(){var n,i;return a(this,(function(o){switch(o.label){case 0:return Object(r["x"])("token",e,r["b"].STRING,!0),Object(r["x"])("reconnectKickEnable",t,r["b"].BOOLEAN),j.warn("RongIMLib Version: ".concat("5.5.3",", Commit: ").concat("91c274754ff48547d8f76b79194ed406200cffe4")),n=r["J"].ID(),r["J"].info(r["j"].A_CONNECT_T,{token:e,reconnectKickEnable:t},{traceId:n}),[4,U.context.connect(e,!1,t,n)];case 1:return i=o.sent(),(i.code===r["f"].SUCCESS?r["J"].info:r["J"].warn)(r["j"].A_CONNECT_R,{code:i.code,userId:i.userId},{traceId:n}),i.code===r["f"].SUCCESS?[2,{code:i.code,data:{userId:i.userId}}]:[2,{code:i.code,msg:G[i.code]}]}}))}))}function F(){return r["J"].info(r["j"].A_DISCONNECT_O,{}),U.context.disconnect()}function Q(){return U.context.getServerTime()}function V(){return U.context.getCurrentUserId()}function Z(e,t,n){U.on(e,t,n)}function W(e,t,n){U.off(e,t,n)}function K(e,t){r["u"].add(e,t)}function q(e,t){return s(this,void 0,void 0,(function(){var n,i,o;return a(this,(function(s){switch(s.label){case 0:return j.debug("get conversation list ->"),[4,P.imClient.context.getConversationList(null==e?void 0:e.count,void 0,null==e?void 0:e.startTime,null==e?void 0:e.order,t)];case 1:return n=s.sent(),i=n.code,o=n.data,i===r["f"].SUCCESS&&o?[2,{code:0,data:o.map((function(e){return k(e)}))}]:(j.warn("get conversation list fail ->".concat(i,":").concat(G[i])),[2,{code:i,msg:G[i]}])}}))}))}function J(e){return s(this,void 0,void 0,(function(){var t,n;return a(this,(function(i){switch(i.label){case 0:return Object(r["x"])("options.conversationType",e.conversationType,r["G"],!0),Object(r["x"])("options.targetId",e.targetId,r["b"].STRING,!0),Object(r["x"])("options.channelId",e.channelId,r["b"].CHANNEL_ID),[4,P.imClient.context.removeConversation(e.conversationType,e.targetId,e.channelId)];case 1:return t=i.sent(),n="conversationType:".concat(e.conversationType,",targetId:").concat(e.targetId),j.debug("destroy conversation ->".concat(n)),t!==r["f"].SUCCESS?(j.warn("destroy conversation fail ->".concat(t,":").concat(G[t],",").concat(n)),[2,{code:t,msg:G[t]}]):[2,{code:t}]}}))}))}function X(e){return s(this,void 0,void 0,(function(){var t,n,i,o;return a(this,(function(s){switch(s.label){case 0:return Object(r["x"])("options.conversationType",e.conversationType,r["G"],!0),Object(r["x"])("options.targetId",e.targetId,r["b"].STRING,!0),Object(r["x"])("options.channelId",e.channelId,r["b"].CHANNEL_ID),[4,P.imClient.context.getConversationMessageDraft(e.conversationType,e.targetId,e.channelId)];case 1:return t=s.sent(),n=t.code,i=t.data,o="conversationType:".concat(e.conversationType,",targetId:").concat(e.targetId),j.debug("get draft ->".concat(o)),n===r["f"].SUCCESS?[2,{code:n,data:i||""}]:(j.warn("get draft fail ->".concat(n,":").concat(G[n],",").concat(o)),[2,{code:n,msg:G[n]}])}}))}))}function ee(e,t){return s(this,void 0,void 0,(function(){var n,i;return a(this,(function(o){switch(o.label){case 0:return Object(r["x"])("options.conversationType",e.conversationType,r["G"],!0),Object(r["x"])("options.targetId",e.targetId,r["b"].STRING,!0),Object(r["x"])("options.channelId",e.channelId,r["b"].CHANNEL_ID),Object(r["x"])("draft",t,r["b"].STRING,!0),n="conversationType:".concat(e.conversationType,",targetId:").concat(e.targetId),j.debug("set draft ->".concat(n)),[4,P.imClient.context.saveConversationMessageDraft(e.conversationType,e.targetId,t,e.channelId)];case 1:return(i=o.sent())===r["f"].SUCCESS?[2,{code:i}]:(j.warn("set draft fail ->".concat(i,":").concat(G[i],",").concat(n)),[2,{code:i,msg:G[i]}])}}))}))}function te(e){return s(this,void 0,void 0,(function(){var t,n;return a(this,(function(i){switch(i.label){case 0:return Object(r["x"])("options.conversationType",e.conversationType,r["G"],!0),Object(r["x"])("options.targetId",e.targetId,r["b"].STRING,!0),Object(r["x"])("options.channelId",e.channelId,r["b"].CHANNEL_ID),t="conversationType:".concat(e.conversationType,",targetId:").concat(e.targetId),j.debug("delete draft ->".concat(t)),[4,P.imClient.context.clearConversationMessageDraft(e.conversationType,e.targetId,e.channelId)];case 1:return(n=i.sent())===r["f"].SUCCESS?[2,{code:n}]:(j.warn("delete draft fail ->".concat(n,":").concat(G[n],",").concat(t)),[2,{code:n,msg:G[n]}])}}))}))}function ne(e,t){return s(this,void 0,void 0,(function(){var n,i,o,s,c,u;return a(this,(function(a){switch(a.label){case 0:if(j.debug("get total unread count -> ConversationType:".concat(JSON.stringify(t)," includeMuted:").concat(e)),Object(r["x"])("includeMuted",e,r["b"].BOOLEAN,!1),Object(r["x"])("conversationTypes",t,r["b"].ARRAY,!1),t)for(n=0,i=t;n<i.length;n++)o=i[n],Object(r["x"])("conversationType",o,r["G"]);return[4,P.imClient.context.getTotalUnreadCount("",t,e)];case 1:return s=a.sent(),c=s.code,u=s.data,c===r["f"].SUCCESS?[2,{code:c,data:u}]:(j.warn("getTotalUnreadCount fail ->".concat(c,":").concat(G[c])),[2,{code:c,msg:G[c]}])}}))}))}function re(e){return s(this,void 0,void 0,(function(){var t,n;return a(this,(function(i){switch(i.label){case 0:return Object(r["x"])("options.conversationType",e.conversationType,r["G"],!0),Object(r["x"])("options.targetId",e.targetId,r["b"].STRING,!0),Object(r["x"])("options.channelId",e.channelId,r["b"].CHANNEL_ID),[4,P.imClient.context.clearUnreadCount(e.conversationType,e.targetId,e.channelId)];case 1:return t=i.sent(),n="conversationType:".concat(e.conversationType,",targetId:").concat(e.targetId),j.debug("clear unreadMsgNum ->".concat(n)),t!==r["f"].SUCCESS?(j.warn("clear unreadMsgNum fail ->".concat(t,":").concat(G[t],",").concat(n)),[2,{code:t,msg:G[t]}]):[2,{code:t}]}}))}))}var ie=function(e,t){void 0===t&&(t=""),Object(r["x"])("options.conversationType",e.conversationType,r["G"],!0),Object(r["x"])("options.targetId",e.targetId,r["b"].STRING,!0),Object(r["x"])("options.channelId",e.channelId,r["b"].CHANNEL_ID);var n="conversationType:".concat(e.conversationType,",targetId:").concat(e.targetId);return j.debug("".concat(t," -> ").concat(n)),n},oe=function(e,t,n){return void 0===n&&(n=""),s(void 0,void 0,void 0,(function(){var i,o;return a(this,(function(s){switch(s.label){case 0:return i=ie(e,n),[4,t()];case 1:return(o=s.sent())!==r["f"].SUCCESS?(j.warn("".concat(n," fail -> ").concat(o," : ").concat(G[o]," , ").concat(i)),[2,{code:o,msg:G[o]}]):[2,{code:o}]}}))}))};function se(e,t){return s(this,void 0,void 0,(function(){return a(this,(function(n){return Object(r["x"])("notificationLevel",t,(function(e){return void 0!==r["p"][e]}),!0),[2,oe(e,(function(){return P.imClient.context.setConversationNotificationLevel(e.conversationType,e.targetId,t,e.channelId)}),"setConversationNotificationLevel")]}))}))}function ae(e,t){return s(this,void 0,void 0,(function(){return a(this,(function(n){return Object(r["x"])("notificationStatus",t,(function(e){return 1===e||2===e}),!0),[2,oe(e,(function(){return P.imClient.context.setConversationStatus(e.conversationType,e.targetId,void 0,t,e.channelId)}),"setConversationNotificationStatus")]}))}))}function ce(e,t){return void 0===t&&(t=!0),s(this,void 0,void 0,(function(){var n,i;return a(this,(function(o){switch(o.label){case 0:return Object(r["x"])("options.type",e.conversationType,r["G"],!0),Object(r["x"])("options.targetId",e.targetId,r["b"].STRING,!0),Object(r["x"])("options.channelId",e.channelId,r["b"].CHANNEL_ID),n="conversationType:".concat(e.conversationType,",targetId:").concat(e.targetId),j.debug("set conversation status ->".concat(n)),[4,P.imClient.context.setConversationStatus(e.conversationType,e.targetId,t,void 0,e.channelId)];case 1:return(i=o.sent())!==r["f"].SUCCESS?(j.warn("set conversation status fail ->".concat(i,":").concat(G[i],",").concat(n)),[2,{code:i,msg:G[i]}]):[2,{code:i}]}}))}))}var ue=function(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=!0),this.messageType=e,this.content=t,this.isPersited=n,this.isCounted=r};function le(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=!0),function(r){return new ue(e,r,t,n)}}var fe,he,de=le("RC:ImgMsg"),pe=le("RC:HQVCMsg"),ge=le("RC:SightMsg"),ve=le("RC:TxtMsg"),ye=le("RC:CombineMsg"),me=le("RC:FileMsg"),Ie=(le("RC:GIFMsg"),le("RC:VcMsg"),le("RC:LBSMsg"),le("RC:ReferenceMsg")),Me=(le("RC:ImgTextMsg"),{qiniu:function(e,t,n,i){var o=P.imClient.context.getInfoFromCache();if(1===(null==o?void 0:o.type)&&t.chunk_size&&i.size>t.chunk_size){var s=Object(r["y"])(),a=i.name.substr(i.name.lastIndexOf("."));s+=a,i.uniqueName=s,Ee(i,t,n)}else Ne(e,t,n,i)},baidu:function(e,t,n,r){if(r.size>Te)throw new Error("the file size is over 5GB!");var i=t||{};t=t||he;var o=new XMLHttpRequest,s=Ae();if(i.uploadHost.bos||i.bosUploadPath){var a=s+Ce[0][1]+i.bosUploadPath;Ce.shift();var c=i.bosHeader||{},u={filename:t.uniqueValue||r.uniqueName,name:r.name,downloadUrl:a,isBosRes:!0};o.upload&&t.support_options&&(o.upload.onprogress=function(e){n.onProgress(e.loaded,e.total,!0)}),o.onreadystatechange=function(){4===o.readyState&&(JSON.parse(o.responseText||"{}").filename=t.uniqueValue,200===o.status?n.onCompleted(u,!0):Ce.length?Me[Ce[0][0]](e,t,n,r):n.onError("upload fail"))},o.open(t.method,a,!0),o.setRequestHeader("authorization",c.bosToken),o.setRequestHeader("x-bce-date",c.bosDate),o.send(r)}},aliyun:function(e,t,n,i){if(i.size>Te)throw new Error("the file size is over 5GB!");var o=new FormData;o.set("file",e.get("file")),o.set("key",e.get("key")),o.set("token",e.get("token"));var s=Ce[0][1];Ce.shift(),e=e||fe,t=(t=t||{})||he;var a=new XMLHttpRequest,c=Ae(),u="".concat(c+t.ossBucketName,".").concat(s);a.upload&&t.support_options&&(a.upload.onprogress=function(e){n.onProgress(e.loaded,e.total)}),a.onreadystatechange=function(){if(4===a.readyState){var e=JSON.parse(a.responseText||"{}");e.name=t.uniqueValue,e.filename=t.uploadFileName,e.uploadMethod=r["t"]?r["t"].ALI:"",200===a.status?n.onCompleted(e):Ce.length?Me[Ce[0][0]](o,t,n,i):n.onError("upload fail")}},a.open(t.method,u,!0),console.log("ali:url",u);var l=t.aliHeader||{};e.set("OSSAccessKeyId",l.osskeyId),e.set("policy",l.ossPolicy),e.set("Signature",l.ossSign),e.set("success_action_status",200),e.delete("key"),e.append("key",t.uploadFileName),e.delete("file"),e.append("file",i),a.send(e)},s3:function(e,t,n,i){var o=new FormData,s=new XMLHttpRequest,a=Ae(),c=t.contentDisposition,u=Ce[0][1],l="".concat(a+t.s3BucketName,".").concat(u);console.log("uploadS3:url",l),Ce.shift(),s.upload&&t.support_options&&(s.upload.onprogress=function(e){n.onProgress(e.loaded,e.total)}),s.onreadystatechange=function(){if(4===s.readyState){var o=JSON.parse(s.responseText||"{}");if(o.name=t.uniqueValue,o.filename=t.uploadFileName,o.uploadMethod=r["t"].AWS,200===s.status||204===s.status)n.onCompleted(o);else if(Ce.length){var a=new FormData;a.set("file",e.get("file")),a.set("key",e.get("key")),a.set("token",e.get("token")),Me[Ce[0][0]](a,t,n,i)}else n.onError("upload fail")}},s.open(t.method,l,!0);var f=t?t.s3Header:{},h=i&&i.type;c?o.set("Content-Disposition","".concat(c,";")):o.set("Content-Disposition","text/html"===h?"inline;":"attachment;"),o.set("Content-Type",h),o.set("x-amz-credential",f.s3Credential),o.set("x-amz-algorithm",f.s3Algorithm),o.set("x-amz-date",f.s3Date),o.set("policy",f.s3Policy),o.set("x-amz-signature",f.s3Signature),o.set("key",t.uploadFileName),o.set("file",i),s.send(o)},stc:function(e,t,n,i){var o=new XMLHttpRequest,s=t.contentDisposition,a=Ce[0][1],c="https://".concat(a,"/").concat(t.stcBucketName,"/").concat(t.uploadFileName);Ce.shift(),o.upload&&t.support_options&&(o.upload.onprogress=function(e){n.onProgress(e.loaded,e.total)}),o.onreadystatechange=function(){if(4===o.readyState){var s=JSON.parse(o.responseText||"{}");if(s.name=t.uniqueValue,s.filename=t.uploadFileName,s.uploadMethod=r["t"]?r["t"].STC:"",200===o.status||204===o.status)n.onCompleted(s);else if(Ce.length){var a=new FormData;a.set("file",e.get("file")),a.set("key",e.get("key")),a.set("token",e.get("token")),Me[Ce[0][0]](a,t,n,i)}else n.onError("upload fail")}},o.open("PUT",c,!0);var u=t?t.stcHeader:{};o.setRequestHeader("Content-Type",i.type),s?o.setRequestHeader("Content-Disposition","".concat(s,";")):o.setRequestHeader("Content-Disposition","text/html"===i.type?"inline;":"attachment;"),o.setRequestHeader("Authorization",u.stcAuthorization),o.setRequestHeader("x-amz-content-sha256",u.stcContentSha256),o.setRequestHeader("x-amz-date",u.stcDate),o.send(i)}}),Ce=[],Te=5368709120;function Ae(){var e="https://";return"http:"!==location.protocol&&"file:"!==location.protocol||(e="http://"),e}var _e,be=(_e="RC-upload-",{get:function(e){e=_e+e;var t=localStorage.getItem(e);if(t)return null!==(t=JSON.parse(t||"{}"))&&t.type&&t.data?t.data:null},set:function(e,t){var n=localStorage;e=_e+e,t={data:t,type:typeof t,updateTime:Date.now()},n.setItem(e,JSON.stringify(t))},remove:function(e){e=_e+e,localStorage.removeItem(e)}});function Ne(e,t,n,i){var o="https://"+t.uploadHost.qiniu,s=(/http/.test(Ce[0][1])?"":Ae())+Ce[0][1]||o;t.isChunk||Ce.shift();var a=new XMLHttpRequest;a.upload&&t.support_options&&(a.upload.onprogress=function(e){n.onProgress(e.loaded,e.total)}),a.onreadystatechange=function(){if(4===a.readyState){var o=JSON.parse(a.responseText||"{}");o.filename=t.uniqueValue,o.uploadMethod=r["t"]?r["t"].QINIU:"",200===a.status||204===a.status?n.onCompleted(o):Ce.length?Me[Ce[0][0]](e,t,n,i):n.onError("upload fail")}},a.open(t.method,s,!0),n.onOpen(a),t.stream&&a.setRequestHeader("authorization","UpToken ".concat(t.multi_parmas.token)),function(e,t){for(var n in e)t(n,e[n])}(t.headers,(function(e,t){a.setRequestHeader(e,t)})),a.send(e)}function Ee(e,t,n,i){var o=0,s=i||Object(r["y"])(),a=be.get(s);a&&(e.uniqueName=a.sessionId,o=a.offset);var c=Math.min(t.chunk_size,e.size-o),u=e.slice(o,o+c),l=e.uniqueName;t.multi_parmas.name=l,t.filesize=e.size;var f="bytes=".concat(o,"-").concat(o+c);t.headers={Range:f,"X-File-TransactionId":l,"X-File-Total-Size":e.size},t.isChunk=!0,u.name=e.name,u=function(e,t,n){var r=new FormData;for(var i in t.unique_key&&r.append(t.unique_key,n),r.append(t.file_data_name,e,e.name),t.multi_parmas){var o=t.multi_parmas[i];r.append(i,o)}return r}(u,t,e.uniqueName),Ne(u,t,{onCompleted:function(r){o+=c;var i=e.uniqueName;be.set(s,{offset:o,sessionId:i}),o<e.size?Ee(e,t,n,s):(o=0,be.remove(s),n.onCompleted(r))},onError:function(e){console.error(e),n.onError(e)},onProgress:function(e,r){var i=e+o;n.onProgress(i,t.filesize)},onOpen:function(e){n.onOpen(e)}},e)}function we(e,t,n){var i,o,s=e&&e.type||"text/plain",a=s.indexOf("image")>-1?1:4,c=t.contentDisposition,u=Math.ceil(e.size/t.stc_chunk_size),l=t&&JSON.parse(t.ossConfig?t.ossConfig:"");Array.isArray(l)||(l=[]);var f=l.find((function(e){return Object.keys(e).includes("stc")})),h="uploads";P.imClient.context.getFileToken(a,i,"POST",h).then((function(r){i=r.fileName,o="https://".concat(f.stc,"/").concat(t.stcBucketName,"/").concat(i),console.log("uploadStcMultipart:url",o);var a=new XMLHttpRequest;a.open("POST","".concat(o,"?").concat(h),!0),c?a.setRequestHeader("Content-Disposition","".concat(c,";")):a.setRequestHeader("Content-Disposition","text/html"===e.type?"inline;":"attachment;"),a.setRequestHeader("Authorization",r&&r.stcAuthorization),a.setRequestHeader("x-amz-content-sha256",r&&r.stcContentSha256),a.setRequestHeader("x-amz-date",r&&r.stcDate),a.setRequestHeader("Content-Type",s),a.send(),a.onreadystatechange=function(){if(4===a.readyState){var e=a.response.match(/(?:<UploadId>)(\S*?)(?:<\/UploadId>)/);console.log("uploadId",e),200===a.status||204===a.status?function(e){for(var t=[],n=1;n<=u;n++)t.push(v(e,n));g(e,t)}(Array.isArray(e)&&e[1]):n.onError("uploadStcMultipart:did not get uploadId")}}}),(function(e){n.onError("uploadStcMultipart:".concat(e))}));var d=[],p=new Map;function g(c,l){l&&Array.isArray(l)&&0!==l.length&&Promise.all(l).then((function(){var l="uploadId=".concat(c);if(p.size===u)P.imClient.context.getFileToken(a,i,"POST",l).then((function(i){console.log("onSuccess",i),console.log("onSuccess:uploadId",c);var a=new XMLHttpRequest;a.open("POST","".concat(o,"?").concat(l),!0),a.setRequestHeader("Authorization",i&&i.stcAuthorization),a.setRequestHeader("x-amz-content-sha256",i&&i.stcContentSha256),a.setRequestHeader("x-amz-date",i&&i.stcDate),a.setRequestHeader("Content-Type",s);var u="<CompleteMultipartUpload xmlns='http://s3.amazonaws.com/doc/2006-03-01/'>",f=Array.from(p.keys()||[]).sort((function(e,t){return e-t}));console.log("keys",f),f.forEach((function(e){u+="<Part><ETag>".concat(p.get(e),"</ETag><PartNumber>").concat(e,"</PartNumber></Part>")})),u+="</CompleteMultipartUpload>",a.send(u),console.log("xml",u),a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status||204===a.status){var i={name:e.name,filename:t.uploadFileName,uploadMethod:r["t"].STC};n.onCompleted(i)}else n.onError("uploadStcMultipart:upload does not end")}}),(function(e){n.onError("uploadStcMultipart:".concat(e))}));else{for(var f=[],h=0,y=d;h<y.length;h++){var m=y[h];f.push(v(c,m))}g(c,f)}}),(function(e){console.error(e),n.onError("uploadStcMultipart: chunkFiles upload failed and those will reupload");for(var t=[],r=0,i=d;r<i.length;r++){var o=i[r];t.push(v(c,o))}g(c,t)}))}function v(n,r){return new Promise((function(c,u){var l="partNumber=".concat(r,"&uploadId=").concat(n);P.imClient.context.getFileToken(a,i,"PUT",l).then((function(n){console.log("signature ".concat(r," onSuccess"),n);var i=e&&e.slice((r-1)*t.stc_chunk_size,r*t.stc_chunk_size);console.log("fileChunk:size",i.size);var a=new XMLHttpRequest;a.open("PUT","".concat(o,"?").concat(l),!0),a.setRequestHeader("Authorization",n&&n.stcAuthorization),a.setRequestHeader("x-amz-content-sha256",n&&n.stcContentSha256),a.setRequestHeader("x-amz-date",n&&n.stcDate),a.setRequestHeader("Content-Type",s),a.send(i),a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status||204===a.status){var e=a.getResponseHeader("etag");console.log("etag:".concat(r),e),p.set(r,e),c(e)}else d.includes(r)||d.push(r),u(r)}}),(function(e){console.log("getETags:签名验证失败"),d.includes(r)||d.push(r),u(r)}))}))}}var Se={form:function(e,t){var n=new FormData;if(t.unique_key){var r=e.name.substr(e.name.lastIndexOf(".")),i=Oe()+r;n.append(t.unique_key,i),t.uniqueValue=i}return n.append(t.file_data_name,e),De(t.multi_parmas,(function(e,t){n.append(e,t)})),n},json:function(e,t){var n={};if(t.unique_key){var r=e.name.substr(e.name.lastIndexOf(".")),i=Oe()+r;n[t.unique_key]=i,t.uniqueValue=i}return n[t.file_data_name]=e,De(t.multi_parmas,(function(e,t){n[e]=t})),JSON.stringify(n)},data:function(e,t){return e}};function Oe(){var e=(new Date).getTime();return"xxxxxx4xxxyxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}function De(e,t){for(var n in e)t(n,e[n])}var Le,Re,je,xe=0,ke=function(){function e(e){this.options=function(e){var t={domain:"",method:"POST",file_data_name:"file",unique_key:"key",base64_size:4194304,chunk_size:4194304,bos_chunk_size:4294967296,stc_chunk_size:10485760,headers:{},multi_parmas:{},query:{},support_options:!0,data:Se.form,genUId:Oe};if(!e||!e.domain)throw new Error("domain is null");for(var n in e)t[n]=e[n];return t}(e)}return e.prototype.setOptions=function(e){var t=this;De(e,(function(e,n){t.options[e]=n}))},e.prototype.upload=function(e,t){if(e){var n=this;!function(e,t,n){var r,i;fe=e,he=t,Ce=[];var o,s=P.imClient.context.getInfoFromCache();if(1===(null==s?void 0:s.type)&&(null===(r=P.imClient.initOptions)||void 0===r?void 0:r.uploadDomain))Ce=[["qiniu",null===(i=P.imClient.initOptions)||void 0===i?void 0:i.uploadDomain]];else if(t.ossConfig){var a,c,u=JSON.parse(t.ossConfig),l="",f=[];u.forEach((function(e){var t=Number(e.p)-1;for(var n in e)"aliyun"===n&&(l=e[n]),"s3"===n&&(a=e[n]),"stc"===n&&(c=e[n]),"p"!==n&&(f[t]=[n,e[n]])})),f.forEach((function(e){e&&Ce.push(e)})),u.length!==Ce.length&&(Ce=[["qiniu",t.domain],["baidu",t.uploadHost.bos],["aliyun",l],["s3",a],["stc",c]])}else Ce=[["qiniu",t.domain],["baidu",t.uploadHost.bos]];if(t.ossConfig){var h=t&&JSON.parse(t.ossConfig);Array.isArray(h)||(h=[]),o=h.find((function(e){return Object.keys(e).includes("stc")}))}if(o&&1===parseInt(o.p,10)&&e.size>=4194304)we(e,t,n);else{var d=t.data(e,t);Me[Ce[0][0]](d,t,n,e)}}(e,this.options,{onProgress:function(e,n,r){Le=e,r?Le=xe+e/n*(n-xe):xe=Le,t.onProgress(Le,n)},onCompleted:function(e){t.onCompleted(e)},onError:function(e){t.onError(e)},onOpen:function(e){n.xhr=e}})}else t.onError("upload file is null.")},e.prototype.cancel=function(){var e;null===(e=this.xhr)||void 0===e||e.abort()},e}(),Ue={init:function(e){return new ke(e)},dataType:Se,resize:function(e,t,n){e.type;var r=document.createElement("canvas"),i=new FileReader;i.readAsDataURL(e),i.onload=function(e){var i=e.target.result,o=new Image;o.src=i;var s=o.width,a=o.height,c=function(e,t){var n=1,r=e.width,i=t.maxWidth||0;i>0&&r>i&&(n=i/r);var o=e.height,s=t.maxHeight||0;if(s>0&&o>s){var a=s/o;n=Math.min(n,a)}var c=t.maxSize||0,u=Math.ceil(e.size/1e3);if(u>c){var l=c/u;n=Math.min(n,l)}return n}({width:s,height:a,size:e.total},t),u=i;c<1&&(u=function(e,t,n){return r.width=t,r.height=n,r.getContext("2d").drawImage(e,0,0,t,n),r.toDataURL("image/jpg")}(o,s*c,a*c)),n(u)}}},Pe=function(e,t,n){var r=document.createElement("canvas"),i=r.getContext("2d"),o=new Image,s="string"==typeof e;o.onload=function(s){var a=function(e,t,n){var r,i,o,s=e<t,a=0,c=0;return(s?t/e:e/t)>n.scale?(s?(i=100,c=((o=t/(r=e/100))-n.maxHeight)/2):(o=100,a=((i=e/(r=t/100))-n.maxWidth)/2),{w:i,h:o,x:-a,y:-c}):(s?(r=t/n.maxHeight,o=n.maxHeight,i=e/r):(r=e/n.maxWidth,i=n.maxWidth,o=t/r),{w:i,h:o,x:-a,y:-c})}(o.width,o.height,t);r.width=a.w>t.maxWidth?t.maxWidth:a.w,r.height=a.h>t.maxHeight?t.maxHeight:a.h,i.drawImage(o,a.x,a.y,a.w,a.h);var c=r.toDataURL("string"==typeof e?"image/jpg":e.type,t.quality);c=c.replace(/data:image\/[^;]+;base64,/,""),n(c)},o.src=s?"data:image/jpg;base64,".concat(e):function(e){var t=window.URL||window.webkitURL;return t?t.createObjectURL(e):""}(e)},ze=function(e,t){var n=e.file,r=e.compress;Pe(n,r,t)},Ge=function(e,t){if(e.getToken)e.getToken((function(n,r){r=r||{},e.multi_parmas=e.multi_parmas||{},e.multi_parmas.token=n,e.uploadHost=e.uploadHost||{},e.uploadHost.bos=r.bos,e.ossConfig=r.ossConfig,e.bosHeader=e.bosHeader||{},e.bosHeader.bosDate=r.bosDate,e.bosHeader.bosToken=r.bosToken,e.bosUploadPath=r.path,e.aliHeader={},e.aliHeader.osskeyId=r.osskeyId,e.aliHeader.ossPolicy=r.ossPolicy,e.aliHeader.ossSign=r.ossSign,e.ossBucketName=r.ossBucketName,e.uploadFileName=r.fileName,e.s3Header={},e.s3Header.s3Credential=r.s3Credential,e.s3Header.s3Algorithm=r.s3Algorithm,e.s3Header.s3Date=r.s3Date,e.s3Header.s3Policy=r.s3Policy,e.s3Header.s3Signature=r.s3Signature,e.s3BucketName=r.s3BucketName,e.stcHeader={},e.stcHeader.stcAuthorization=r.stcAuthorization,e.stcHeader.stcContentSha256=r.stcContentSha256,e.stcHeader.stcDate=r.stcDate,e.stcBucketName=r.stcBucketName,e.headers=e.headers||{},e.base64&&(e.headers["Content-type"]="application/octet-stream",e.headers.Authorization="UpToken ".concat(n));var i=Ue.init(e);t(i)}));else{e.headers=e.headers||{},e.base64&&(e.headers["Content-type"]="application/octet-stream");var n=Ue.init(e);t(n)}},Be=function(e,t,n){t.upload(e.file,{onError:function(e){n.onError(e)},onProgress:function(e,t){n.onProgress(e,t)},onCompleted:function(t){t.filename=t.filename||t.hash;var r=e.compressThumbnail||ze;e.compress?r(e,(function(e){t.thumbnail=e,n.onCompleted(t)})):n.onCompleted(t)}})},Ye=function(){function e(e){this.instance=e}return e.prototype.upload=function(e,t){Be({file:e},this.instance,t)},e.prototype.cancel=function(){this.instance.cancel()},e}(),He=function(){function e(e,t){this.instance=e,this.cfg=t}return e.prototype.upload=function(e,t){var n={file:e,compress:this.cfg};Be(n,this.instance,t)},e.prototype.cancel=function(){this.instance.cancel()},e}(),$e=function(e,t){Ge(e,(function(n){var r,i,o,s,a={maxHeight:(null===(r=e.thumbnailConfig)||void 0===r?void 0:r.maxHeight)||160,maxWidth:(null===(i=e.thumbnailConfig)||void 0===i?void 0:i.maxWidth)||160,quality:(null===(o=e.thumbnailConfig)||void 0===o?void 0:o.quality)||.5,scale:(null===(s=e.thumbnailConfig)||void 0===s?void 0:s.scale)||2.4},c=new He(n,a);t(c)}))},Fe=function(e,t){Ge(e,(function(e){var n=new Ye(e);t(n)}))},Qe=$e;function Ve(e,t,n,i){var c,u=this;void 0===t&&(t=r["h"].FILE),c=t===r["h"].IMAGE?r["h"].IMAGE:r["h"].FILE;var l=P.imClient.context.getInfoFromCache();if(!je&&(je="upload.qiniup.com",l&&l.ossConfig))try{var f=JSON.parse(l.ossConfig).find((function(e){return void 0!==e.qiniu}));f&&(je=f.qiniu)}catch(e){}var h=o({domain:je,getToken:function(e){P.imClient.context.getFileToken(c).then((function(t){e(t.token,t)})).catch((function(e){n.onFail(e)}))}},i);(c===r["h"].IMAGE?Qe:Fe)(h,(function(i){i.upload(e,{onProgress:function(e,t){var r,i=Math.floor(e/t*100);null===(r=n.onProgress)||void 0===r||r.call(n,i)},onCompleted:function(i){return s(u,void 0,void 0,(function(){return a(this,(function(u){return 1===(null==l?void 0:l.type)?function(e,t,n,i,s){var a,c={type:n.type,name:i.rc_url.file_name,downloadUrl:(null===(a=P.imClient.initOptions)||void 0===a?void 0:a.uploadDomain)+i.rc_url.path};e!==r["h"].AUDIO?(e===r["h"].IMAGE&&(c.thumbnail=i.thumbnail),s.onSuccess(c)):Ze(n).then((function(e){s.onSuccess(o(o({},c),e))}))}(t,0,e,i,n):function(e,t,n,i,c){var u=this;Ke(t,i.filename,i.name,i,i.uploadMethod).then((function(l){return s(u,void 0,void 0,(function(){var s;return a(this,(function(a){return 0!==l.code?(c.onFail(l),[2]):((s=l.data).type=n.type,s.name=i.name||i.filename,e===r["h"].AUDIO?(Ze(n).then((function(e){c.onSuccess(o(o({},s),e))})),[2]):(t===r["h"].IMAGE&&(s.thumbnail=i.thumbnail),c.onSuccess(s),[2]))}))}))})).catch((function(e){c.onFail(e)}))}(t,c,e,i,n),[2]}))}))},onError:function(e){n.onFail(e)}})}))}function Ze(e){return new Promise((function(t){if("function"!=typeof e.arrayBuffer){var n=new FileReader;n.onload=function(){n.result?We(n.result).then((function(e){t(e)}),(function(){t({})})):t({})},n.onerror=function(){t({duration:0})},n.readAsArrayBuffer(e)}else e.arrayBuffer().then(We).then((function(e){t(e)}))}))}function We(e){return Re=Re||new AudioContext,new Promise((function(t,n){Re.decodeAudioData(e,(function(e){t({duration:e.duration,length:e.length})}),n)}))}function Ke(e,t,n,i,o){return Object(r["x"])("fileType",e,r["H"],!0),Object(r["x"])("filename",t,r["b"].STRING),Object(r["x"])("saveName",n,r["b"].STRING),Object(r["x"])("serverType",o,r["b"].NUMBER),new Promise((function(s){P.imClient.context.getFileUrl(e,t,n,i,o).then((function(e){s({code:r["f"].SUCCESS,data:e})})).catch((function(e){s({code:e})}))}))}function qe(e,t,n){return s(this,void 0,void 0,(function(){var i,s,c,u,l,f,h,d,p,g,v,y;return a(this,(function(a){switch(a.label){case 0:return n=n||{},t instanceof ue==0?(j.warn("send message fail -> message parameter is not an instance of BaseMessage"),[2,z.ILLGAL_PARAMS]):(Object(r["x"])("conversation",e,r["b"].OBJECT,!0),i=e.conversationType,s=e.targetId,c=e.channelId,Object(r["x"])("conversation.targetId",s,r["b"].STRING,!0),Object(r["x"])("conversation.conversationType",i,r["b"].NUMBER),Object(r["x"])("conversation.channelId",c,r["b"].CHANNEL_ID),Object(r["x"])("options.isStatusMessage",null==n?void 0:n.isStatusMessage,r["b"].BOOLEAN),Object(r["x"])("options.disableNotification",null==n?void 0:n.disableNotification,r["b"].BOOLEAN),Object(r["x"])("options.pushContent",null==n?void 0:n.pushContent,r["b"].STRING),Object(r["x"])("options.pushData",null==n?void 0:n.pushData,r["b"].STRING),Object(r["x"])("options.isMentioned",null==n?void 0:n.isMentioned,r["b"].BOOLEAN),Object(r["x"])("options.mentionedType",null==n?void 0:n.mentionedType,r["b"].NUMBER),Object(r["x"])("options.mentionedUserIdList",null==n?void 0:n.mentionedUserIdList,r["b"].ARRAY),Object(r["x"])("options.directionalUserIdList",null==n?void 0:n.directionalUserIdList,r["b"].ARRAY),Object(r["x"])("options.isVoipPush",null==n?void 0:n.isVoipPush,r["b"].BOOLEAN),Object(r["x"])("options.canIncludeExpansion",null==n?void 0:n.canIncludeExpansion,r["b"].BOOLEAN),Object(r["x"])("options.expansion",null==n?void 0:n.expansion,r["b"].OBJECT),Object(r["x"])("options.pushConfig",null==n?void 0:n.pushConfig,r["b"].OBJECT),Object(r["x"])("options.messageId",null==n?void 0:n.messageId,r["b"].NUMBER),u="conversationType:".concat(i,",targetId:").concat(s),j.debug("send message ->".concat(u)),l=function(e,t,n){var r=e.isStatusMessage,i=e.disableNotification,s=e.pushContent,a=e.pushData,c=e.isMentioned,u=e.mentionedType,l=e.mentionedUserIdList,f=e.directionalUserIdList,h=e.isVoipPush,d=e.canIncludeExpansion,p=e.expansion,g=e.isFilerWhiteBlacklist,v=e.pushConfig,y=e.messageId,m=n.channelId;return o({isStatusMessage:r,disableNotification:i,pushContent:s,pushData:a,isMentioned:c,mentionedType:u,mentionedUserIdList:l,directionalUserIdList:f,isVoipPush:h,canIncludeExpansion:d,expansion:p,isFilerWhiteBlacklist:g,pushConfig:v,channelId:m||"",messageId:y},t)}(n,t,e),f={isMentioned:!!n.isMentioned,content:t.content,messageType:t.messageType,isPersited:t.isPersited||!1,isCounted:t.isCounted||!1,disableNotification:!!(null==n?void 0:n.disableNotification),canIncludeExpansion:!!(null==n?void 0:n.canIncludeExpansion),expansion:(null==n?void 0:n.expansion)||null,conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId,senderUserId:P.imClient.context.getCurrentUserId(),messageUId:"",messageDirection:r["m"].SEND,receivedTime:0,isStatusMessage:n.isStatusMessage||!1,receivedStatus:r["r"].UNREAD,isOffLineMessage:!1,pushConfig:null==n?void 0:n.pushConfig},i!==r["e"].ULTRA_GROUP&&(f.isOffLineMessage=!1),h=function(e){f.messageId=e;try{(null==n?void 0:n.onSendBefore)&&n.onSendBefore(x(f))}catch(e){r["J"].error('Callback method "onSendBefore" execution error',e)}},d=r["J"].ID(),r["J"].info(r["j"].A_SEND_MSG_T,{messageType:t.messageType,conversationType:i,targetId:s,channelId:c},{traceId:d}),[4,P.imClient.context.sendMessage(i,s,l,h,d)]);case 1:return p=a.sent(),g=p.code,v=p.data,(g===r["f"].SUCCESS?r["J"].info:r["J"].warn)(r["j"].A_SEND_MSG_R,{code:g,messageUId:v?v.messageUId:"",messageId:v?v.messageId:""},{traceId:d}),g===r["f"].SUCCESS?(y=x(v),[2,{code:g,data:y}]):(j.warn("send message fail ->".concat(g,":").concat(G[g],",").concat(u)),f.sentTime=(null==v?void 0:v.sentTime)||0,[2,{code:g,msg:G[g],data:x(f)}])}}))}))}function Je(e,t){return function(n,i,o,s){Object(r["x"])("sendOptions.contentDisposition",null==s?void 0:s.contentDisposition,(function(e){return["inline","attachment"].includes(e)}));var a={contentDisposition:null==s?void 0:s.contentDisposition};if(s&&"thumbnailConfig"in s){var c=null==s?void 0:s.thumbnailConfig;Object(r["x"])("sendOptions.maxHeight",null==c?void 0:c.maxHeight,r["b"].NUMBER),Object(r["x"])("sendOptions.maxWidth",null==c?void 0:c.maxWidth,r["b"].NUMBER),Object(r["x"])("sendOptions.quality",null==c?void 0:c.quality,r["b"].NUMBER),Object(r["x"])("sendOptions.scale",null==c?void 0:c.scale,r["b"].NUMBER),a.thumbnailConfig=c}return new Promise((function(c){var u=r["J"].ID();r["J"].info(r["j"].L_MEDIA_UPLOAD_T,{filesize:i.file.size,type:e},{traceId:u}),Ve(i.file,e,{onProgress:null==o?void 0:o.onProgress,onSuccess:function(e){var a,l=(null===(a=null==o?void 0:o.onComplete)||void 0===a?void 0:a.call(o,{url:e.downloadUrl}))||t(e,i);e&&e.downloadUrl&&r["J"].info(r["j"].L_MEDIA_UPLOAD_R,{downurl:e.downloadUrl,code:r["f"].SUCCESS},{traceId:u}),qe(n,l,s).then(c)},onFail:function(e){r["J"].warn(r["j"].L_MEDIA_UPLOAD_R,{code:r["f"].UPLOAD_FILE_FAILED},{traceId:u}),c({code:r["f"].UPLOAD_FILE_FAILED,msg:e||r["f"][r["f"].UPLOAD_FILE_FAILED]})}},a)}))}}Ue.dataType;var Xe=Je(r["h"].FILE,(function(e,t){return new me({name:e.name,size:t.file.size,type:t.file.type,fileUrl:e.downloadUrl,user:t.user,extra:t.extra})})),et=Je(r["h"].IMAGE,(function(e,t){return new de({content:e.thumbnail,imageUri:e.downloadUrl,user:t.user,extra:t.extra})}));Je(r["h"].AUDIO,(function(e,t){return new pe({remoteUrl:e.downloadUrl,duration:e.duration,type:e.type,user:t.user,extra:t.extra})})),Je(r["h"].SIGHT,(function(e,t){return new ge({sightUrl:e.downloadUrl,content:t.thumbnail,duration:t.duration,size:t.file.size||e.size,name:t.name||e.name,user:t.user,extra:t.extra})}));function nt(e,t){return s(this,void 0,void 0,(function(){var n,i,o,s,c,u;return a(this,(function(a){switch(a.label){case 0:return Object(r["x"])("options.timestamp",null==t?void 0:t.timestamp,r["b"].NUMBER),Object(r["x"])("options.count",null==t?void 0:t.count,r["b"].NUMBER),Object(r["x"])("options.order",null==t?void 0:t.order,(function(e){return 0===e||1===e})),Object(r["x"])("conversation.channelId",null==e?void 0:e.channelId,r["b"].CHANNEL_ID),n="conversationType:".concat(e.conversationType,",targetId:").concat(e.targetId),j.debug("get history message ->".concat(n)),i=r["J"].ID(),r["J"].info(r["j"].A_GET_HISTORY_MSG_T,{targetId:e.targetId,conversationType:e.conversationType,channelId:e.channelId,timestamp:null==t?void 0:t.timestamp,count:null==t?void 0:t.count},{traceId:i}),[4,P.imClient.context.getHistoryMessage(e.conversationType,e.targetId,null==t?void 0:t.timestamp,null==t?void 0:t.count,null==t?void 0:t.order,null==e?void 0:e.channelId,"",i)];case 1:return o=a.sent(),s=o.code,c=o.data,s===r["f"].SUCCESS&&c?(u=c.list.map((function(e){return x(e)})),r["J"].info(r["j"].A_GET_HISTORY_MSG_R,{code:s,messageLength:u.length},{traceId:i}),[2,{code:s,data:{list:u,hasMore:c.hasMore}}]):(r["J"].warn(r["j"].A_GET_HISTORY_MSG_R,{code:s,messageUIds:""},{traceId:i}),j.warn("get history message fail ->".concat(s,":").concat(G[s],",").concat(n)),[2,{code:s,msg:G[s]}])}}))}))}function rt(e,t,n,i){return s(this,void 0,void 0,(function(){var o,s,c,u,l;return a(this,(function(a){switch(a.label){case 0:return o={targetId:e,conversationType:r["e"].PRIVATE,channelId:i},s=new ue("RC:ReadNtf",{messageUId:t,lastMessageSendTime:n,type:1}),[4,qe(o,s)];case 1:return c=a.sent(),u=c.code,l=c.msg,0===u?[2,{code:u}]:[2,{code:u,msg:l}]}}))}))}function it(e,t,n){return s(this,void 0,void 0,(function(){var i,o,s,c,u,l,f;return a(this,(function(a){switch(a.label){case 0:return Object(r["x"])("targetId",e,r["b"].STRING,!0),Object(r["x"])("messageList",t,r["b"].OBJECT,!0),Object(r["x"])("channelId",n,r["b"].CHANNEL_ID),Object.keys(t).forEach((function(e){Object(r["x"])(e,t[e],r["b"].ARRAY)})),i={targetId:e,conversationType:r["e"].GROUP,channelId:n},s=P.imClient.context.getInfoFromCache(),0!==(c=(null==s?void 0:s.grpRRVer)||0)?[3,2]:(u=new ue("RC:RRRspMsg",{receiptMessageDic:t}),[4,qe(i,u)]);case 1:return o=a.sent(),[3,4];case 2:return 1!==c?[3,4]:(l=[],Object.keys(t).forEach((function(e){t[e].forEach((function(e){-1===l.indexOf(e)&&l.push(e)}))})),l.length?[4,P.imClient.context.sendReadReceiptMessage(e,l,n)]:(j.warn("Error in parameter messageList."),[2,{code:r["f"].PARAMETER_ERROR}]));case 3:o=a.sent(),a.label=4;case 4:return(f=o.code)===r["f"].SUCCESS?[2,{code:f}]:(j.warn("send read receipt message fail ->".concat(f,":").concat(G[f])),[2,{code:f,msg:G[f]}])}}))}))}function ot(e,t){return s(this,void 0,void 0,(function(){var n,i,o,s,c;return a(this,(function(a){switch(a.label){case 0:return Object(r["x"])("options.messageUId",t.messageUId,r["b"].STRING,!0),Object(r["x"])("options.sentTime",t.sentTime,r["b"].NUMBER,!0),Object(r["x"])("options.disableNotification",null==t?void 0:t.disableNotification,r["b"].BOOLEAN),Object(r["x"])("options.pushConfig",null==t?void 0:t.pushConfig,r["b"].OBJECT),Object(r["x"])("conversation.channelId",null==e?void 0:e.channelId,r["b"].CHANNEL_ID),n={user:t.user,channelId:e.channelId||"",disableNotification:null==t?void 0:t.disableNotification,pushConfig:null==t?void 0:t.pushConfig,extra:t.extra,isDelete:t.isDelete},i="conversationType:".concat(e.conversationType,",targetId:").concat(e.targetId,",messageUId:").concat(t.messageUId),j.debug("recall message ->".concat(i)),[4,P.imClient.context.recallMessage(e.conversationType,e.targetId,t.messageUId,t.sentTime,n)];case 1:return o=a.sent(),s=o.code,c=o.data,s===r["f"].SUCCESS&&c?[2,{code:s,data:x(c)}]:s===r["f"].SUCCESS?[2,{code:s}]:(j.warn("recall message fail ->".concat(s,":").concat(G[s],",").concat(i)),[2,{code:s,msg:G[s]}])}}))}))}function st(e,t){return s(this,void 0,void 0,(function(){var n,i;return a(this,(function(o){switch(o.label){case 0:return Object(r["x"])("options",t,(function(e){return Object(r["z"])(e)&&e.length}),!0),t.forEach((function(e){Object(r["x"])("options.messageUId",e.messageUId,r["b"].STRING,!0),Object(r["x"])("options.sentTime",e.sentTime,r["b"].NUMBER,!0),Object(r["x"])("options.messageDirection",e.messageDirection,(function(e){return 1===e||2===e}),!0)})),Object(r["x"])("conversation.channelId",null==e?void 0:e.channelId,r["b"].CHANNEL_ID),n="conversationType:".concat(e.conversationType,",targetId:").concat(e.targetId),j.debug("delete messages ->".concat(n)),[4,P.imClient.context.deleteRemoteMessage(e.conversationType,e.targetId,t,e.channelId)];case 1:return(i=o.sent())!==r["f"].SUCCESS?(j.warn("delete message fail ->".concat(i,":").concat(G[i],",").concat(n)),[2,{code:i,msg:G[i]}]):[2,{code:r["f"].SUCCESS}]}}))}))}function at(e,t){return s(this,void 0,void 0,(function(){var n,i,o,s,c,u;return a(this,(function(a){switch(a.label){case 0:return Object(r["x"])("typingContentType",t,r["b"].STRING,!0),n="conversationType:".concat(e.conversationType,",targetId:").concat(e.targetId),j.debug("send typing status message ->".concat(n)),i={messageType:"RC:TypSts",content:{typingContentType:t},isStatusMessage:!0,channelId:e.channelId},o=r["J"].ID(),r["J"].info(r["j"].A_SEND_MSG_T,{messageType:i.messageType,conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},{traceId:o}),[4,P.imClient.context.sendMessage(e.conversationType,e.targetId,i,void 0,o)];case 1:return s=a.sent(),c=s.code,u=s.data,(c===r["f"].SUCCESS?r["J"].info:r["J"].warn)(r["j"].A_SEND_MSG_R,{code:c,messageUId:u?u.messageUId:"",messageId:u?u.messageId:""},{traceId:o}),c===r["f"].SUCCESS?[2,{code:c,data:x(u)}]:(j.warn("send typing status message fail ->".concat(c,":").concat(G[c],",").concat(n)),[2,{code:c,msg:G[c]}])}}))}))}function ct(e,t,n,i,o){return Object(r["x"])("messageType",e,r["b"].STRING,!0),Object(r["x"])("isPersited",t,r["b"].BOOLEAN,!0),Object(r["x"])("isCounted",n,r["b"].BOOLEAN,!0),Object(r["x"])("isStatusMessage",o,r["b"].BOOLEAN,!1),r["J"].info(r["j"].A_REGTYP_O,{messageType:e,isCounted:n,isStatusMessage:o,isPersited:t}),P.imClient.context.registerMessageType(e,t,n,i,o),le(e,t,n)}Je(r["h"].COMBINE_HTML,(function(e,t){return new ye({remoteUrl:e.downloadUrl,nameList:t.nameList,summaryList:t.summaryList,conversationType:t.conversationType,user:t.user,extra:t.extra})}));var ut={TEXT:"RC:TxtMsg",VOICE:"RC:VcMsg",HQ_VOICE:"RC:HQVCMsg",IMAGE:"RC:ImgMsg",GIF:"RC:GIFMsg",RICH_CONTENT:"RC:ImgTextMsg",LOCATION:"RC:LBSMsg",FILE:"RC:FileMsg",SIGHT:"RC:SightMsg",COMBINE:"RC:CombineMsg",CHRM_KV_NOTIFY:"RC:chrmKVNotiMsg",LOG_COMMAND:"RC:LogCmdMsg",EXPANSION_NOTIFY:"RC:MsgExMsg",REFERENCE:"RC:ReferenceMsg",RECALL_MESSAGE_TYPE:"RC:RcCmd"};Object.freeze({__proto__:null,getAllConversationList:function(e){return s(this,void 0,void 0,(function(){var t,n,i,o;return a(this,(function(s){switch(s.label){case 0:return Object(r["M"])()?(Object(r["x"])("channelId",e,r["b"].ONLY_STRING),j.info("getAllConversationList -> channelId: ".concat(e)),Object(r["F"])(e)?[4,P.imClient.context.getConversationListWithAllChannel()]:[3,2]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return t=s.sent(),[3,4];case 2:return[4,P.imClient.context.getConversationList(void 0,void 0,void 0,void 0,e)];case 3:t=s.sent(),s.label=4;case 4:return n=t.code,i=t.data,n===r["f"].SUCCESS&&i?(o=i.map((function(e){return k(e)})),[2,{code:n,data:o}]):(j.warn("getAllConversationList fail -> code: ".concat(n," channelId: ").concat(e)),[2,{code:n,msg:G[n]}])}}))}))},getConversationList:function(e,t,n){return s(this,void 0,void 0,(function(){var i,o,s,c,u,l;return a(this,(function(a){switch(a.label){case 0:return Object(r["M"])()?(Object(r["x"])("startTime",e,r["b"].NUMBER,!0),Object(r["x"])("count",t,r["b"].NUMBER,!0),Object(r["x"])("channelId",n,r["b"].ONLY_STRING),i="startTime: ".concat(e,", count: ").concat(t,", channelId: ").concat(n),j.info("getConversationList -> ".concat(i)),Object(r["F"])(n)?[4,P.imClient.context.getConversationListWithAllChannelByPage(e,t)]:[3,2]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return o=a.sent(),[3,4];case 2:return s=[1,2,3,5,6,7,8],[4,P.imClient.context.getConversationsByPage(s,e,t,n)];case 3:o=a.sent(),a.label=4;case 4:return c=o.code,u=o.data,c===r["f"].SUCCESS&&u?(l=u.map((function(e){return k(e)})),[2,{code:c,data:l}]):(j.warn("getConversationList fail -> code: ".concat(c," ").concat(i)),[2,{code:c,msg:G[c]}])}}))}))},searchConversationByContent:function(e,t,n){return s(this,void 0,void 0,(function(){var i,o,s,c,u;return a(this,(function(a){switch(a.label){case 0:return Object(r["M"])()?(Object(r["x"])("keyword",e,r["b"].STRING,!0),Object(r["x"])("messageTypes",t,r["b"].ARRAY,!0),Object(r["x"])("channelId",n,r["b"].ONLY_STRING),t.forEach((function(e){Object(r["x"])("messageType",e,r["b"].STRING,!0)})),i="keyword: ".concat(e,", messageTypes: ").concat(JSON.stringify(t),", channelId: ").concat(n),j.info("searchConversationByContent -> ".concat(r["v"])),Object(r["F"])(n)?[4,P.imClient.context.searchConversationByContentWithAllChannel(e,t)]:[3,2]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return o=a.sent(),[3,4];case 2:return[4,P.imClient.context.searchConversationByContent(e,t,n)];case 3:o=a.sent(),a.label=4;case 4:return s=o.code,c=o.data,s===r["f"].SUCCESS&&c?(u=c.map((function(e){return k(e)})),[2,{code:s,data:u}]):(j.warn("searchConversationByContent fail -> code: ".concat(s," ").concat(i)),[2,{code:s,msg:G[s]}])}}))}))},searchMessages:function(e,t,n,i){return s(this,void 0,void 0,(function(){var o,s,c,u,l,f,h,d,p,g;return a(this,(function(a){switch(a.label){case 0:return Object(r["M"])()?(Object(r["x"])("conversation",e,r["b"].CONVERSATION,!0),Object(r["x"])("keyword",t,r["b"].STRING,!0),Object(r["x"])("startTime",n,r["b"].NUMBER,!0),Object(r["x"])("count",i,r["b"].NUMBER,!0),o="conversation: ".concat(JSON.stringify(e),", keyword: ").concat(t,", timestamp: ").concat(n,", count: ").concat(i),j.info("searchMessages -> ".concat(o)),s=e.targetId,c=e.conversationType,u=e.channelId,Object(r["F"])(u)?[4,P.imClient.context.searchMessageByContentWithAllChannel(c,s,t,n,i)]:[3,2]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return l=a.sent(),[3,4];case 2:return[4,P.imClient.context.searchMessageByContent(c,s,t,n,i,0,u)];case 3:l=a.sent(),a.label=4;case 4:return f=l.code,h=l.data,f===r["f"].SUCCESS&&h?(d=h.messages,p=h.count,g=d.map((function(e){return x(e)})),[2,{code:f,data:{messages:g,count:p}}]):(j.warn("searchMessages fail -> code: ".concat(f," ").concat(o)),[2,{code:f,msg:G[f]}])}}))}))},searchMessageInTimeRange:function(e,t){return s(this,void 0,void 0,(function(){var n,i,o,s,c,u,l,f,h,d,p;return a(this,(function(a){switch(a.label){case 0:return Object(r["M"])()?(Object(r["x"])("conversation",e,r["b"].CONVERSATION,!0),Object(r["x"])("option",t,r["b"].OBJECT,!0),Object(r["x"])("option.keyword",t.keyword,r["b"].STRING,!0),Object(r["x"])("option.startTime",t.startTime,r["b"].NUMBER,!0),Object(r["x"])("option.endTime",t.endTime,r["b"].NUMBER,!0),Object(r["x"])("option.offset",t.offset,r["b"].NUMBER),Object(r["x"])("option.limit",t.limit,r["b"].NUMBER),n="conversation: ".concat(JSON.stringify(e),", option: ").concat(JSON.stringify(t)),j.info("searchMessageInTimeRange -> ".concat(n)),i=e.conversationType,o=e.targetId,s=t.keyword,c=t.startTime,u=t.endTime,l=t.offset,f=t.limit,l=l||0,f=f||5,[4,P.imClient.context.searchMessageByContentInTimeRangeWithAllChannel(i,o,s,c,u,l,f)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return h=a.sent(),d=h.code,p=h.data,d===r["f"].SUCCESS&&p?[2,{code:d,data:{messages:p.messages.map((function(e){return x(e)}))}}]:(j.warn("searchMessageInTimeRange fail -> code: ".concat(d,", ").concat(n)),[2,{code:d}])}}))}))},getHistoryMessagesByMessageTypes:function(e,t){return s(this,void 0,void 0,(function(){var n,i,o,s,c,u,l,f,h,d,p,g,v,y,m;return a(this,(function(a){switch(a.label){case 0:return Object(r["M"])()?(Object(r["x"])("conversation",e,r["b"].CONVERSATION,!0),Object(r["x"])("option",t,r["b"].OBJECT,!0),n=t.count,i=t.timestamp,o=t.order,s=t.messageTypes,Object(r["x"])("option.count",n,r["b"].NUMBER),Object(r["x"])("option.timestamp",i,r["b"].NUMBER),Object(r["x"])("option.order",o,(function(e){return[0,1].includes(e)})),Object(r["x"])("option.messageTypes",s,r["b"].ARRAY,!0),s.forEach((function(e){Object(r["x"])("option.messageType",e,r["b"].STRING,!0)})),c="conversation: ".concat(JSON.stringify(e),", option: ").concat(JSON.stringify(t)),j.info("getHistoryMessagesByMessageTypes -> ".concat(c)),u=e.conversationType,l=e.targetId,f=e.channelId,n||(n=20),i||(i=0),o||(o=0),f||(f=""),[4,P.imClient.context.getHistoryMessagesByObjectNames(u,l,i,n,s,o,f)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return h=a.sent(),d=h.code,p=h.data,d===r["f"].SUCCESS?(v=(g=p).list,y=g.hasMore,m=v.map((function(e){return x(e)})),[2,{code:d,data:{messages:m,hasMore:y}}]):(j.warn("getHistoryMessagesByMessageTypes fail -> code: ".concat(d," ").concat(c)),[2,{code:d,msg:G[d]}])}}))}))},setMessageStatusToRead:function(e,t){return s(this,void 0,void 0,(function(){var n,i,o,s;return a(this,(function(a){switch(a.label){case 0:return Object(r["M"])()?(Object(r["x"])("conversation",e,r["b"].CONVERSATION,!0),Object(r["x"])("timestamp",t,r["b"].NUMBER,!0),n="conversation: ".concat(JSON.stringify(e),", timestamp: ").concat(t),j.info("updateSentMsgReceiptStatus -> ".concat(n)),i=e.conversationType,o=e.targetId,s=e.channelId,[4,P.imClient.context.setMessageStatusToRead(i,o,t,s)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return[2,a.sent()]}}))}))},setMessageReceivedStatus:function(e,t){return s(this,void 0,void 0,(function(){return a(this,(function(n){switch(n.label){case 0:return Object(r["M"])()?(Object(r["x"])("messageId",e,r["b"].NUMBER,!0),Object(r["x"])("receivedStatus",t,(function(e){return!Object(r["F"])(r["r"][e])}),!0),j.info("setMessageReceivedStatus -> messageId: ".concat(e,", receivedStatus: ").concat(t)),[4,P.imClient.context.setMessageReceivedStatus(e,t)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return[2,{code:n.sent()}]}}))}))},setMessageSentStatus:function(e,t){return s(this,void 0,void 0,(function(){return a(this,(function(n){switch(n.label){case 0:return Object(r["M"])()?(Object(r["x"])("messageId",e,r["b"].NUMBER,!0),Object(r["x"])("sentStatus",t,(function(e){return!Object(r["F"])(u[e])}),!0),j.info("setMessageSentStatus ->messageId: ".concat(e,", sentStatus: ").concat(t)),[4,P.imClient.context.setMessageSentStatus(e,t)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return[2,{code:n.sent()}]}}))}))},setMessageContent:function(e,t,n){return void 0===n&&(n=""),s(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return Object(r["M"])()?(Object(r["x"])("messageId",e,r["b"].NUMBER,!0),Object(r["x"])("content",t,r["b"].OBJECT,!0),Object(r["x"])("messageType",n,r["b"].ONLY_STRING,!0),j.info("setMessageSentStatus ->messageId: ".concat(e,", messageType: ").concat(n)),[4,P.imClient.context.setMessageContent(e,t,n)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return[2,{code:i.sent()}]}}))}))},deleteMessages:function(e){return s(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return Object(r["M"])()?(Object(r["x"])("messageIds",e,r["b"].ARRAY,!0),e.forEach((function(e){Object(r["x"])("messageId",e,r["b"].NUMBER,!0)})),j.info("deleteMessages ->messageIds: ".concat(JSON.stringify(e))),[4,P.imClient.context.deleteMessages(e)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return[2,{code:t.sent()}]}}))}))},clearMessages:function(e){return s(this,void 0,void 0,(function(){var t,n,i,o;return a(this,(function(s){switch(s.label){case 0:return Object(r["M"])()?(t=e.conversationType,n=e.targetId,i=e.channelId,j.info("clearMessages ->targetId:".concat(n,",conversationType:").concat(t)),[4,P.imClient.context.clearMessages(t,n,i)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return(o=s.sent())===r["f"].SUCCESS?[2,{code:o}]:(j.warn("clearMessages ->code:".concat(o,",targetId:").concat(n)),[2,{code:o,msg:G[o]}])}}))}))},deleteMessagesByTimestamp:function(e,t,n){return s(this,void 0,void 0,(function(){var i,o,s,c;return a(this,(function(a){switch(a.label){case 0:return Object(r["M"])()?(i=e.conversationType,o=e.targetId,s=e.channelId,Object(r["x"])("conversationType",i,r["b"].NUMBER,!0),Object(r["x"])("targetId",o,r["b"].STRING,!0),Object(r["x"])("timestamp",t,r["b"].NUMBER,!0),Object(r["x"])("cleanSpace",n,r["b"].BOOLEAN),[4,P.imClient.context.deleteMessagesByTimestamp(i,o,t,n,s)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return(c=a.sent())===r["f"].SUCCESS?[2,{code:c}]:(j.warn("deleteMessagesByTimestamp ->code:".concat(c,",targetId:").concat(o)),[2,{code:c,msg:G[c]}])}}))}))},insertMessage:function(e,t,n){return void 0===n&&(n={}),s(this,void 0,void 0,(function(){var i,o,s,c,u,l,f,h,d,p,g,v,y,m,I,M;return a(this,(function(a){switch(a.label){case 0:return Object(r["M"])()?(i=t.senderUserId,o=t.messageType,s=t.content,c=t.messageDirection,u=t.messageUId,l=t.canIncludeExpansion,f=t.expansion,h=t.disableNotification,d=t.sentTime,p=t.sentStatus,j.info("insertMessage ->targetId:".concat(e.targetId,",conversationType:").concat(e.conversationType)),g=n.isUnread,v=n.searchContent,y={senderUserId:i,messageType:o,content:s,messageDirection:c,sentTime:d,sentStatus:p,searchContent:v,isUnread:g,messageUId:u,disableNotification:h,canIncludeExpansion:l,expansionMsg:JSON.stringify(f),channelId:e.channelId||""},[4,P.imClient.context.insertMessage(e.conversationType,e.targetId,y)]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return m=a.sent(),I=m.code,M=m.data,I===r["f"].SUCCESS?[2,{code:I,data:x(M)}]:(j.warn("insertMessage ->code:".concat(I,",targetId:").concat(e.targetId)),[2,{code:I,msg:G[I]}])}}))}))},clearLocalData:function(){return s(this,void 0,void 0,(function(){var e,t,n;return a(this,(function(i){switch(i.label){case 0:return Object(r["M"])()?(j.info("clearData -> "),[4,P.imClient.context.clearData()]):[2,{code:r["f"].NOT_SUPPORT,msg:G[r["f"].NOT_SUPPORT]}];case 1:return e=i.sent(),t=e.code,n=e.data,[2,{code:t,data:n}]}}))}))}});r["u"].add("imlib-next","5.5.3")},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e265:function(e,t,n){e.exports=n("ed33")},e394:function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=n("38fd"),s=r.has,a=r.get,c=r.key,u=function(e,t,n){var r=s(e,t,n);if(r)return a(e,t,n);var i=o(t);return null!==i?u(e,i,n):void 0};r.exp({getMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:c(arguments[2]))}})},e3d0:function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=r.key,s=r.set;r.exp({defineMetadata:function(e,t,n,r){s(e,t,i(n),o(r))}})},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e3eb:function(e,t,n){const r=n("23db"),i=n("cd93"),o=n("c98f");e.exports=function e(t,{cleanKeys:n=[],cleanValues:s=[],emptyArrays:a=!0,emptyObjects:c=!0,emptyStrings:u=!0,NaNValues:l=!1,nullValues:f=!0,undefinedValues:h=!0}={}){return o(t,(t,o,d)=>{if(!n.includes(d)&&((Array.isArray(o)||i(o))&&(o=e(o,{NaNValues:l,cleanKeys:n,cleanValues:s,emptyArrays:a,emptyObjects:c,emptyStrings:u,nullValues:f,undefinedValues:h})),!s.includes(o)&&!(c&&i(o)&&r(o))&&(!a||!Array.isArray(o)||o.length)&&(!u||""!==o)&&(!l||!Number.isNaN(o))&&(!f||null!==o)&&(!h||void 0!==o)))return Array.isArray(t)?t.push(o):void(t[d]=o)})}},e418:function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var o=n(e),s=n(t),a="("===(i=i||"()")[0],c=")"===i[1];return(a?this.isAfter(o,r):!this.isBefore(o,r))&&(c?this.isBefore(s,r):!this.isAfter(s,r))||(a?this.isBefore(o,r):!this.isAfter(o,r))&&(c?this.isAfter(s,r):!this.isBefore(s,r))}}}))},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e4f7:function(e,t,n){var r=n("4bf8"),i=n("38fd");n("5eda")("getPrototypeOf",(function(){return function(e){return i(r(e))}}))},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e630:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("774e"),i=n.n(r),o=n("db2a");function s(e,t){if(e){if("string"===typeof e)return Object(o["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?i()(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(o["a"])(e,t):void 0}}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6f3:function(e,t,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),s=n("5559")("IE_PROTO");e.exports=function(e,t){var n,a=i(e),c=0,u=[];for(n in a)n!=s&&r(a,n)&&u.push(n);while(t.length>c)r(a,n=t[c++])&&(~o(u,n)||u.push(n));return u}},e76a:function(e,t,n){"use strict";const r={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,shadowDomShim:!1,slotChildNodesFix:!1,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0},i="app";let o,s,a,c,u=0,l=!1,f=!1,h=!1,d=!1,p=null,g=0,v=!1;const y="undefined"!==typeof window?window:{},m=(r.cssVarShim&&y.CSS,y.document||{head:{}}),I=(y.HTMLElement,{$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)}),M=!r.shadowDomShim||!r.shadowDom||(()=>(m.head.attachShadow+"").indexOf("[native")>-1)(),C=(()=>{let e=!1;try{m.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(t){}return e})(),T=e=>Promise.resolve(e),A=!!r.constructableCSS&&(()=>{try{return new CSSStyleSheet,"function"===typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),_=(e,t,n,i)=>{r.hostListener&&n&&(r.hostListenerTargetParent&&(n=i?n.filter(([e])=>32&e):n.filter(([e])=>!(32&e))),n.map(([n,i,o])=>{const s=r.hostListenerTarget?N(e,n):e,a=b(t,o),c=E(n);I.ael(s,i,a,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>I.rel(s,i,a,c))}))},b=(e,t)=>n=>{try{r.lazyLoad?256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n]):e.$hostElement$[t](n)}catch(i){it(i)}},N=(e,t)=>r.hostListenerTargetDocument&&4&t?m:r.hostListenerTargetWindow&&8&t?y:r.hostListenerTargetBody&&16&t?m.body:r.hostListenerTargetParent&&32&t?e.parentElement:e,E=e=>C?{passive:0!==(1&e),capture:0!==(2&e)}:0!==(2&e),w="r",S="o",O="s",D="t",L="s-id",R="sty-id",j="c-id",x="http://www.w3.org/1999/xlink",k=(e,t="")=>{if(r.profile&&performance.mark){const n=`st:${e}:${t}:${u++}`;return performance.mark(n),()=>performance.measure(`[Stencil] ${e}() <${t}>`,n)}return()=>{}},U=(e,t)=>r.profile&&performance.mark?(0===performance.getEntriesByName(e).length&&performance.mark(e),()=>{0===performance.getEntriesByName(t).length&&performance.measure(t,e)}):()=>{},P=new WeakMap,z=(e,t,n)=>{let r=lt.get(e);A&&n?(r=r||new CSSStyleSheet,r.replace(t)):r=t,lt.set(e,r)},G=(e,t,n,i)=>{let o=Y(t,n),s=lt.get(o);if(!r.attachStyles)return o;if(e=11===e.nodeType?e:m,s)if("string"===typeof s){e=e.head||e;let n,a=P.get(e);if(a||P.set(e,a=new Set),!a.has(o)){if(r.hydrateClientSide&&e.host&&(n=e.querySelector(`[${R}="${o}"]`)))n.innerHTML=s;else{if(r.cssVarShim&&I.$cssShim$){n=I.$cssShim$.createHostStyle(i,o,s,!!(10&t.$flags$));const e=n["s-sc"];e&&(o=e,a=null)}else n=m.createElement("style"),n.innerHTML=s;(r.hydrateServerSide||r.hotModuleReplacement)&&n.setAttribute(R,o),e.insertBefore(n,e.querySelector("link"))}a&&a.add(o)}}else r.constructableCSS&&!e.adoptedStyleSheets.includes(s)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return o},B=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,o=k("attachStyles",t.$tagName$),s=G(r.shadowDom&&M&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);(r.shadowDom||r.scoped)&&r.cssAnnotations&&10&i&&(n["s-sc"]=s,n.classList.add(s+"-h"),r.scoped&&2&i&&n.classList.add(s+"-s")),o()},Y=(e,t)=>"sc-"+(r.mode&&t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),H=e=>ft.map(t=>t(e)).find(e=>!!e),$={},F="http://www.w3.org/2000/svg",Q="http://www.w3.org/1999/xhtml",V=e=>null!=e,Z=e=>(e=typeof e,"object"===e||"function"===e),W=(e,t,...n)=>{let i=null,o=null,s=null,a=!1,c=!1,u=[];const l=t=>{for(let n=0;n<t.length;n++)i=t[n],Array.isArray(i)?l(i):null!=i&&"boolean"!==typeof i&&((a="function"!==typeof e&&!Z(i))?i=String(i):r.isDev&&"function"!==typeof e&&void 0===i.$flags$&&st("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects."),a&&c?u[u.length-1].$text$+=i:u.push(a?K(null,i):i),c=a)};if(l(n),t&&(r.isDev&&"input"===e&&ne(t),r.vdomKey&&t.key&&(o=t.key),r.slotRelocation&&t.name&&(s=t.name),r.vdomClass)){const e=t.className||t.class;e&&(t.class="object"!==typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}if(r.isDev&&u.some(J)&&st("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function."),r.vdomFunctional&&"function"===typeof e)return e(null===t?{}:t,u,X);const f=K(e,null);return f.$attrs$=t,u.length>0&&(f.$children$=u),r.vdomKey&&(f.$key$=o),r.slotRelocation&&(f.$name$=s),f},K=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return r.vdomAttribute&&(n.$attrs$=null),r.vdomKey&&(n.$key$=null),r.slotRelocation&&(n.$name$=null),n},q={},J=e=>e&&e.$tag$===q,X={forEach:(e,t)=>e.map(ee).forEach(t),map:(e,t)=>e.map(ee).map(t).map(te)},ee=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),te=e=>{if("function"===typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),W(e.vtag,t,...e.vchildren||[])}const t=K(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},ne=e=>{const t=Object.keys(e),n=t.indexOf("type"),r=t.indexOf("min"),i=t.indexOf("max"),o=t.indexOf("min"),s=t.indexOf("value");-1!==s&&(s<n||s<r||s<i||s<o)&&at('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},re=(e,t,n,i,o,s)=>{if(n!==i){let c=rt(e,t),u=t.toLowerCase();if(r.vdomClass&&"class"===t){const t=e.classList,r=oe(n),o=oe(i);t.remove(...r.filter(e=>e&&!o.includes(e))),t.add(...o.filter(e=>e&&!r.includes(e)))}else if(r.vdomStyle&&"style"===t){if(r.updatable)for(const t in n)i&&null!=i[t]||(!r.hydrateServerSide&&t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in i)n&&i[t]===n[t]||(!r.hydrateServerSide&&t.includes("-")?e.style.setProperty(t,i[t]):e.style[t]=i[t])}else if(r.vdomKey&&"key"===t);else if(r.vdomRef&&"ref"===t)i&&i(e);else if(!r.vdomListener||(r.lazyLoad?c:e.__lookupSetter__(t))||"o"!==t[0]||"n"!==t[1]){if(r.vdomPropOrAttr){const l=Z(i);if((c||l&&null!==i)&&!o)try{if(e.tagName.includes("-"))e[t]=i;else{let r=null==i?"":i;"list"===t?c=!1:null!=n&&e[t]==r||(e[t]=r)}}catch(a){}let f=!1;r.vdomXlink&&u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,f=!0),null==i||!1===i?!1===i&&""!==e.getAttribute(t)||(r.vdomXlink&&f?e.removeAttributeNS(x,t):e.removeAttribute(t)):(!c||4&s||o)&&!l&&(i=!0===i?"":i,r.vdomXlink&&f?e.setAttributeNS(x,t,i):e.setAttribute(t,i))}}else t="-"===t[2]?t.slice(3):rt(y,u)?u.slice(2):u[2]+t.slice(3),n&&I.rel(e,t,n,!1),i&&I.ael(e,t,i,!1)}},ie=/\s/,oe=e=>e?e.split(ie):[],se=(e,t,n,i)=>{const o=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,s=e&&e.$attrs$||$,a=t.$attrs$||$;if(r.updatable)for(i in s)i in a||re(o,i,s[i],void 0,n,t.$flags$);for(i in a)re(o,i,s[i],a[i],n,t.$flags$)},ae=(e,t,n,i)=>{let c,u,f,p=t.$children$[n],g=0;if(r.slotRelocation&&!l&&(h=!0,"slot"===p.$tag$&&(o&&i.classList.add(o+"-s"),p.$flags$|=p.$children$?2:1)),r.isDev&&p.$elm$&&st(`The JSX ${null!==p.$text$?`"${p.$text$}" text`:`"${p.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),r.vdomText&&null!==p.$text$)c=p.$elm$=m.createTextNode(p.$text$);else if(r.slotRelocation&&1&p.$flags$)c=p.$elm$=r.isDebug||r.hydrateServerSide?Te(p):m.createTextNode("");else{if(r.svg&&!d&&(d="svg"===p.$tag$),c=p.$elm$=r.svg?m.createElementNS(d?F:Q,r.slotRelocation&&2&p.$flags$?"slot-fb":p.$tag$):m.createElement(r.slotRelocation&&2&p.$flags$?"slot-fb":p.$tag$),r.svg&&d&&"foreignObject"===p.$tag$&&(d=!1),r.vdomAttribute&&se(null,p,d),(r.shadowDom||r.scoped)&&V(o)&&c["s-si"]!==o&&c.classList.add(c["s-si"]=o),p.$children$)for(g=0;g<p.$children$.length;++g)u=ae(e,p,g,c),u&&c.appendChild(u);r.svg&&("svg"===p.$tag$?d=!1:"foreignObject"===c.tagName&&(d=!0))}return r.slotRelocation&&(c["s-hn"]=a,3&p.$flags$&&(c["s-sr"]=!0,c["s-cr"]=s,c["s-sn"]=p.$name$||"",f=e&&e.$children$&&e.$children$[n],f&&f.$tag$===p.$tag$&&e.$elm$&&ce(e.$elm$,!1))),c},ce=(e,t)=>{I.$flags$|=1;const n=e.childNodes;for(let r=n.length-1;r>=0;r--){const e=n[r];e["s-hn"]!==a&&e["s-ol"]&&(pe(e).insertBefore(e,de(e)),e["s-ol"].remove(),e["s-ol"]=void 0,h=!0),t&&ce(e,t)}I.$flags$&=-2},ue=(e,t,n,i,o,s)=>{let c,u=r.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowDom&&u.shadowRoot&&u.tagName===a&&(u=u.shadowRoot);o<=s;++o)i[o]&&(c=ae(null,n,o,e),c&&(i[o].$elm$=c,u.insertBefore(c,r.slotRelocation?de(t):t)))},le=(e,t,n,i,o)=>{for(;t<=n;++t)(i=e[t])&&(o=i.$elm$,Me(i),r.slotRelocation&&(f=!0,o["s-ol"]?o["s-ol"].remove():ce(o,!0)),o.remove())},fe=(e,t,n,i)=>{let o,s,a=0,c=0,u=0,l=0,f=t.length-1,h=t[0],d=t[f],p=i.length-1,g=i[0],v=i[p];while(a<=f&&c<=p)if(null==h)h=t[++a];else if(null==d)d=t[--f];else if(null==g)g=i[++c];else if(null==v)v=i[--p];else if(he(h,g))ge(h,g),h=t[++a],g=i[++c];else if(he(d,v))ge(d,v),d=t[--f],v=i[--p];else if(he(h,v))!r.slotRelocation||"slot"!==h.$tag$&&"slot"!==v.$tag$||ce(h.$elm$.parentNode,!1),ge(h,v),e.insertBefore(h.$elm$,d.$elm$.nextSibling),h=t[++a],v=i[--p];else if(he(d,g))!r.slotRelocation||"slot"!==h.$tag$&&"slot"!==v.$tag$||ce(d.$elm$.parentNode,!1),ge(d,g),e.insertBefore(d.$elm$,h.$elm$),d=t[--f],g=i[++c];else{if(u=-1,r.vdomKey)for(l=a;l<=f;++l)if(t[l]&&null!==t[l].$key$&&t[l].$key$===g.$key$){u=l;break}r.vdomKey&&u>=0?(s=t[u],s.$tag$!==g.$tag$?o=ae(t&&t[c],n,u,e):(ge(s,g),t[u]=void 0,o=s.$elm$),g=i[++c]):(o=ae(t&&t[c],n,c,e),g=i[++c]),o&&(r.slotRelocation?pe(h.$elm$).insertBefore(o,de(h.$elm$)):h.$elm$.parentNode.insertBefore(o,h.$elm$))}a>f?ue(e,null==i[p+1]?null:i[p+1].$elm$,n,i,c,p):r.updatable&&c>p&&le(t,a,f)},he=(e,t)=>e.$tag$===t.$tag$&&(r.slotRelocation&&"slot"===e.$tag$?e.$name$===t.$name$:!r.vdomKey||e.$key$===t.$key$),de=e=>e&&e["s-ol"]||e,pe=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,ge=(e,t)=>{const n=t.$elm$=e.$elm$,i=e.$children$,o=t.$children$,s=t.$tag$,a=t.$text$;let c;r.vdomText&&null!==a?r.vdomText&&r.slotRelocation&&(c=n["s-cr"])?c.parentNode.textContent=a:r.vdomText&&e.$text$!==a&&(n.data=a):(r.svg&&(d="svg"===s||"foreignObject"!==s&&d),(r.vdomAttribute||r.reflect)&&(r.slot&&"slot"===s||se(e,t,d)),r.updatable&&null!==i&&null!==o?fe(n,i,t,o):null!==o?(r.updatable&&r.vdomText&&null!==e.$text$&&(n.textContent=""),ue(n,null,t,o,0,o.length-1)):r.updatable&&null!==i&&le(i,0,i.length-1),r.svg&&d&&"svg"===s&&(d=!1))},ve=e=>{let t,n,r,i,o,s,a=e.childNodes;for(n=0,r=a.length;n<r;n++)if(t=a[n],1===t.nodeType){if(t["s-sr"])for(o=t["s-sn"],t.hidden=!1,i=0;i<r;i++)if(s=a[i].nodeType,a[i]["s-hn"]!==t["s-hn"]||""!==o){if(1===s&&o===a[i].getAttribute("slot")){t.hidden=!0;break}}else if(1===s||3===s&&""!==a[i].textContent.trim()){t.hidden=!0;break}ve(t)}},ye=[],me=e=>{let t,n,r,i,o,s,a=0,c=e.childNodes,u=c.length;for(;a<u;a++){if(t=c[a],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(r=n.parentNode.childNodes,i=t["s-sn"],s=r.length-1;s>=0;s--)n=r[s],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(Ie(n,i)?(o=ye.find(e=>e.$nodeToRelocate$===n),f=!0,n["s-sn"]=n["s-sn"]||i,o?o.$slotRefNode$=t:ye.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&ye.map(e=>{Ie(e.$nodeToRelocate$,n["s-sn"])&&(o=ye.find(e=>e.$nodeToRelocate$===n),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))})):ye.some(e=>e.$nodeToRelocate$===n)||ye.push({$nodeToRelocate$:n}));1===t.nodeType&&me(t)}},Ie=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,Me=e=>{r.vdomRef&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Me))},Ce=(e,t)=>{const n=e.$hostElement$,i=e.$cmpMeta$,c=e.$vnode$||K(null,null),u=J(t)?t:W(null,null,t);if(a=n.tagName,r.isDev&&Array.isArray(t)&&t.some(J))throw new Error(`The <Host> must be the single root component.\nLooks like the render() function of "${a.toLowerCase()}" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n `);if(r.reflect&&i.$attrsToReflect$&&(u.$attrs$=u.$attrs$||{},i.$attrsToReflect$.map(([e,t])=>u.$attrs$[t]=n[e])),u.$tag$=null,u.$flags$|=4,e.$vnode$=u,u.$elm$=c.$elm$=r.shadowDom&&n.shadowRoot||n,(r.scoped||r.shadowDom)&&(o=n["s-sc"]),r.slotRelocation&&(s=n["s-cr"],l=M&&0!==(1&i.$flags$),f=!1),ge(c,u),r.slotRelocation){if(I.$flags$|=1,h){let e,t,n,i,o,s;me(u.$elm$);let a=0;for(;a<ye.length;a++)e=ye[a],t=e.$nodeToRelocate$,t["s-ol"]||(n=r.isDebug||r.hydrateServerSide?Ae(t):m.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(a=0;a<ye.length;a++)if(e=ye[a],t=e.$nodeToRelocate$,e.$slotRefNode$){i=e.$slotRefNode$.parentNode,o=e.$slotRefNode$.nextSibling,n=t["s-ol"];while(n=n.previousSibling)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&i===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&i!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),i.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}f&&ve(u.$elm$),I.$flags$&=-2,ye.length=0}},Te=e=>m.createComment(`<slot${e.$name$?' name="'+e.$name$+'"':""}> (host=${a.toLowerCase()})`),Ae=e=>m.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),_e=e=>r.lazyLoad?tt(e).$hostElement$:e,be=(e,t,n)=>{const i=_e(e);return{emit:e=>(r.isDev&&!i.isConnected&&at(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),Ne(i,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e}))}},Ne=(e,t,n)=>{const r=I.ce(t,n);return e.dispatchEvent(r),r},Ee=(e,t)=>{r.asyncLoading&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},we=(e,t)=>{if(r.taskQueue&&r.updatable&&(e.$flags$|=16),r.asyncLoading&&4&e.$flags$)return void(e.$flags$|=512);Ee(e,e.$ancestorComponent$);const n=()=>Se(e,t);return r.taskQueue?Mt(n):n()},Se=(e,t)=>{const n=e.$hostElement$,i=k("scheduleUpdate",e.$cmpMeta$.$tagName$),o=r.lazyLoad?e.$lazyInstance$:n;let s;return t?(r.lazyLoad&&r.hostListener&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>je(o,e,t)),e.$queuedListeners$=null)),ke(n,"componentWillLoad"),r.cmpWillLoad&&(s=je(o,"componentWillLoad"))):(ke(n,"componentWillUpdate"),r.cmpWillUpdate&&(s=je(o,"componentWillUpdate"))),ke(n,"componentWillRender"),r.cmpWillRender&&(s=xe(s,()=>je(o,"componentWillRender"))),i(),xe(s,()=>Oe(e,o,t))},Oe=async(e,t,n)=>{const i=e.$hostElement$,o=k("update",e.$cmpMeta$.$tagName$),s=i["s-rc"];r.style&&n&&B(e);const a=k("render",e.$cmpMeta$.$tagName$);if(r.isDev&&(e.$flags$|=1024),r.hydrateServerSide?await De(e,t,i):De(e,t,i),r.cssVarShim&&I.$cssShim$&&I.$cssShim$.updateHost(i),r.isDev&&(e.$renderCount$++,e.$flags$&=-1025),r.hydrateServerSide)try{Pe(i),n&&(1&e.$cmpMeta$.$flags$?i["s-en"]="":2&e.$cmpMeta$.$flags$&&(i["s-en"]="c"))}catch(c){it(c,i)}if(r.asyncLoading&&s&&(s.map(e=>e()),i["s-rc"]=void 0),a(),o(),r.asyncLoading){const t=i["s-p"],n=()=>Le(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}else Le(e)},De=(e,t,n)=>{const i=!!r.allRenderFn,o=!!r.lazyLoad,s=!!r.taskQueue,a=!!r.updatable;try{if(p=t,t=(i||t.render)&&t.render(),a&&s&&(e.$flags$&=-17),(a||o)&&(e.$flags$|=2),r.hasRenderFn||r.reflect)if(r.vdomRender||r.reflect){if(r.hydrateServerSide)return Promise.resolve(t).then(t=>Ce(e,t));Ce(e,t)}else n.textContent=t}catch(c){it(c,e.$hostElement$)}return p=null,null},Le=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,i=k("postUpdate",t),o=r.lazyLoad?e.$lazyInstance$:n,s=e.$ancestorComponent$;r.cmpDidRender&&(r.isDev&&(e.$flags$|=1024),je(o,"componentDidRender"),r.isDev&&(e.$flags$&=-1025)),ke(n,"componentDidRender"),64&e.$flags$?(r.cmpDidUpdate&&(r.isDev&&(e.$flags$|=1024),je(o,"componentDidUpdate"),r.isDev&&(e.$flags$&=-1025)),ke(n,"componentDidUpdate"),i()):(e.$flags$|=64,r.asyncLoading&&r.cssAnnotations&&Ue(n),r.cmpDidLoad&&(r.isDev&&(e.$flags$|=2048),je(o,"componentDidLoad"),r.isDev&&(e.$flags$&=-2049)),ke(n,"componentDidLoad"),i(),r.asyncLoading&&(e.$onReadyResolve$(n),s||Re(t))),r.hotModuleReplacement&&n["s-hmr-load"]&&n["s-hmr-load"](),r.method&&r.lazyLoad&&e.$onInstanceResolve$(n),r.asyncLoading&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&It(()=>we(e,!1)),e.$flags$&=-517)},Re=e=>{r.cssAnnotations&&Ue(m.documentElement),r.asyncQueue&&(I.$flags$|=2),It(()=>Ne(y,"appload",{detail:{namespace:i}})),r.profile&&performance.measure&&performance.measure(`[Stencil] ${i} initial load (by ${e})`,"st:app:start")},je=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(r){it(r)}},xe=(e,t)=>e&&e.then?e.then(t):t(),ke=(e,t)=>{r.lifecycleDOMEvents&&Ne(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:i}})},Ue=e=>r.hydratedClass?e.classList.add("hydrated"):r.hydratedAttribute?e.setAttribute("hydrated",""):void 0,Pe=e=>{const t=e.children;if(null!=t)for(let n=0,r=t.length;n<r;n++){const e=t[n];"function"===typeof e.connectedCallback&&e.connectedCallback(),Pe(e)}},ze=(e,t,n,i)=>{const o=k("hydrateClient",t),s=e.shadowRoot,a=[],c=[],u=r.shadowDom&&s?[]:null,l=i.$vnode$=K(t,null);I.$orgLocNodes$||Be(m.body,I.$orgLocNodes$=new Map),e[L]=n,e.removeAttribute(L),Ge(l,a,c,u,e,e,n),a.map(e=>{const n=e.$hostId$+"."+e.$nodeId$,r=I.$orgLocNodes$.get(n),i=e.$elm$;r&&M&&""===r["s-en"]&&r.parentNode.insertBefore(i,r.nextSibling),s||(i["s-hn"]=t,r&&(i["s-ol"]=r,i["s-ol"]["s-nr"]=i)),I.$orgLocNodes$.delete(n)}),r.shadowDom&&s&&u.map(e=>{e&&s.appendChild(e)}),o()},Ge=(e,t,n,i,o,s,a)=>{let c,u,l,f;if(1===s.nodeType){for(c=s.getAttribute(j),c&&(u=c.split("."),u[0]!==a&&"0"!==u[0]||(l={$flags$:0,$hostId$:u[0],$nodeId$:u[1],$depth$:u[2],$index$:u[3],$tag$:s.tagName.toLowerCase(),$elm$:s,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(l),s.removeAttribute(j),e.$children$||(e.$children$=[]),e.$children$[l.$index$]=l,e=l,i&&"0"===l.$depth$&&(i[l.$index$]=l.$elm$))),f=s.childNodes.length-1;f>=0;f--)Ge(e,t,n,i,o,s.childNodes[f],a);if(s.shadowRoot)for(f=s.shadowRoot.childNodes.length-1;f>=0;f--)Ge(e,t,n,i,o,s.shadowRoot.childNodes[f],a)}else if(8===s.nodeType)u=s.nodeValue.split("."),u[1]!==a&&"0"!==u[1]||(c=u[0],l={$flags$:0,$hostId$:u[1],$nodeId$:u[2],$depth$:u[3],$index$:u[4],$elm$:s,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},c===D?(l.$elm$=s.nextSibling,l.$elm$&&3===l.$elm$.nodeType&&(l.$text$=l.$elm$.textContent,t.push(l),s.remove(),e.$children$||(e.$children$=[]),e.$children$[l.$index$]=l,i&&"0"===l.$depth$&&(i[l.$index$]=l.$elm$))):l.$hostId$===a&&(c===O?(l.$tag$="slot",u[5]?s["s-sn"]=l.$name$=u[5]:s["s-sn"]="",s["s-sr"]=!0,r.shadowDom&&i&&(l.$elm$=m.createElement(l.$tag$),l.$name$&&l.$elm$.setAttribute("name",l.$name$),s.parentNode.insertBefore(l.$elm$,s),s.remove(),"0"===l.$depth$&&(i[l.$index$]=l.$elm$)),n.push(l),e.$children$||(e.$children$=[]),e.$children$[l.$index$]=l):c===w&&(r.shadowDom&&i?s.remove():r.slotRelocation&&(o["s-cr"]=s,s["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=K(null,s.textContent);t.$elm$=s,t.$index$="0",e.$children$=[t]}},Be=(e,t)=>{if(1===e.nodeType){let n=0;for(;n<e.childNodes.length;n++)Be(e.childNodes[n],t);if(e.shadowRoot)for(n=0;n<e.shadowRoot.childNodes.length;n++)Be(e.shadowRoot.childNodes[n],t)}else if(8===e.nodeType){const n=e.nodeValue.split(".");n[0]===S&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},Ye=(e,t)=>null==e||Z(e)?e:r.propBoolean&&4&t?"false"!==e&&(""===e||!!e):r.propNumber&&2&t?parseFloat(e):r.propString&&1&t?String(e):e,He=(e,t)=>tt(e).$instanceValues$.get(t),$e=(e,t,n,i)=>{const o=tt(e),s=r.lazyLoad?o.$hostElement$:e,a=o.$instanceValues$.get(t),c=o.$flags$,u=r.lazyLoad?o.$lazyInstance$:s;if(n=Ye(n,i.$members$[t][0]),(!r.lazyLoad||!(8&c)||void 0===a)&&n!==a&&(o.$instanceValues$.set(t,n),r.isDev&&(1024&o.$flags$?at(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",s,"\nNew value",n,"\nOld value",a):2048&o.$flags$&&at(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",s,"\nNew value",n,"\nOld value",a)),!r.lazyLoad||u)){if(r.watchCallback&&i.$watchers$&&128&c){const e=i.$watchers$[t];e&&e.map(e=>{try{u[e](n,a,t)}catch(r){it(r,s)}})}if(r.updatable&&2===(18&c)){if(r.cmpShouldUpdate&&u.componentShouldUpdate&&!1===u.componentShouldUpdate(n,a,t))return;we(o,!1)}}},Fe=(e,t,n)=>{if(r.member&&t.$members$){r.watchCallback&&e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),o=e.prototype;if(i.map(([e,[i]])=>{(r.prop||r.state)&&(31&i||(!r.lazyLoad||2&n)&&32&i)?Object.defineProperty(o,e,{get(){return He(this,e)},set(o){if(r.isDev){const r=tt(this);0===(1&n)&&0===(8&r.$flags$)&&0!==(31&i)&&0===(1024&i)&&at(`@Prop() "${e}" on <${t.$tagName$}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`)}$e(this,e,o,t)},configurable:!0,enumerable:!0}):r.lazyLoad&&r.method&&1&n&&64&i&&Object.defineProperty(o,e,{value(...t){const n=tt(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[e](...t))}})}),r.observeAttribute&&(!r.lazyLoad||1&n)){const n=new Map;o.attributeChangedCallback=function(e,t,r){I.jmp(()=>{const t=n.get(e);this.hasOwnProperty(t)&&(r=this[t],delete this[t]),this[t]=(null!==r||"boolean"!==typeof this[t])&&r})},e.observedAttributes=i.filter(([e,t])=>15&t[0]).map(([e,i])=>{const o=i[1]||e;return n.set(o,e),r.reflect&&512&i[0]&&t.$attrsToReflect$.push([e,o]),o})}}return e},Qe=async(e,t,i,o,s)=>{if((r.lazyLoad||r.hydrateServerSide||r.style)&&0===(32&t.$flags$)){if(r.lazyLoad||r.hydrateClientSide){if(t.$flags$|=32,s=ut(i,t,o),s.then){const e=U(`st:load:${i.$tagName$}:${t.$modeName$}`,`[Stencil] Load module for <${i.$tagName$}>`);s=await s,e()}if((r.isDev||r.isDebug)&&!s)throw new Error(`Constructor for "${i.$tagName$}#${t.$modeName$}" was not found`);r.member&&!s.isProxied&&(r.watchCallback&&(i.$watchers$=s.watchers),Fe(s,i,2),s.isProxied=!0);const e=k("createInstance",i.$tagName$);r.member&&(t.$flags$|=8);try{new s(t)}catch(u){it(u)}r.member&&(t.$flags$&=-9),r.watchCallback&&(t.$flags$|=128),e(),Ve(t.$lazyInstance$)}else s=e.constructor,t.$flags$|=32,customElements.whenDefined(i.$tagName$).then(()=>t.$flags$|=128);if(r.style&&s.style){let o=s.style;r.mode&&"string"!==typeof o&&(o=o[t.$modeName$=H(e)],r.hydrateServerSide&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));const a=Y(i,t.$modeName$);if(!lt.has(a)){const e=k("registerStyles",i.$tagName$);!r.hydrateServerSide&&r.shadowDom&&r.shadowDomShim&&8&i.$flags$&&(o=await n.e("chunk-2d2080c7").then(n.bind(null,"a2aa")).then(e=>e.scopeCss(o,a,!1))),z(a,o,!!(1&i.$flags$)),e()}}}const a=t.$ancestorComponent$,c=()=>we(t,!0);r.asyncLoading&&a&&a["s-rc"]?a["s-rc"].push(c):c()},Ve=e=>{r.lazyLoad&&r.connectedCallback&&je(e,"connectedCallback")},Ze=e=>{if(0===(1&I.$flags$)){const t=tt(e),n=t.$cmpMeta$,i=k("connectedCallback",n.$tagName$);if(r.hostListenerTargetParent&&_(e,t,n.$listeners$,!0),1&t.$flags$)_(e,t,n.$listeners$,!1),Ve(t.$lazyInstance$);else{let i;if(t.$flags$|=1,r.hydrateClientSide&&(i=e.getAttribute(L),i)){if(r.shadowDom&&M&&1&n.$flags$){const t=r.mode?G(e.shadowRoot,n,e.getAttribute("s-mode")):G(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}ze(e,n.$tagName$,i,t)}if(r.slotRelocation&&!i&&(r.hydrateServerSide||(r.slot||r.shadowDom)&&12&n.$flags$)&&We(e),r.asyncLoading){let n=e;while(n=n.parentNode||n.host)if(r.hydrateClientSide&&1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Ee(t,t.$ancestorComponent$=n);break}}r.prop&&!r.hydrateServerSide&&n.$members$&&Object.entries(n.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),r.initializeNextTick?It(()=>Qe(e,t,n)):Qe(e,t,n)}i()}},We=e=>{const t=e["s-cr"]=m.createComment(r.isDebug?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},Ke=e=>{if(0===(1&I.$flags$)){const t=tt(e),n=r.lazyLoad?t.$lazyInstance$:e;r.hostListener&&t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),r.cssVarShim&&I.$cssShim$&&I.$cssShim$.removeHost(e),r.lazyLoad&&r.disconnectedCallback&&je(n,"disconnectedCallback"),r.cmpDidUnload&&je(n,"componentDidUnload")}},qe=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};r.member&&(n.$members$=t[2]),r.hostListener&&(n.$listeners$=t[3]),r.watchCallback&&(n.$watchers$=e.$watchers$),r.reflect&&(n.$attrsToReflect$=[]),r.shadowDom&&!M&&1&n.$flags$&&(n.$flags$|=8);const i=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){nt(this,n)},connectedCallback(){Ze(this),r.connectedCallback&&i&&i.call(this)},disconnectedCallback(){Ke(this),r.disconnectedCallback&&o&&o.call(this)}}),e.is=n.$tagName$,Fe(e,n,3)},Je=e=>{M?e.attachShadow({mode:"open"}):e.shadowRoot=e},Xe=(e,t)=>t,et=new WeakMap,tt=e=>et.get(e),nt=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return r.isDev&&(n.$renderCount$=0),r.method&&r.lazyLoad&&(n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e)),r.asyncLoading&&(n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[]),_(e,n,t.$listeners$,!1),et.set(e,n)},rt=(e,t)=>t in e,it=(e,t)=>(c||console.error)(e,t),ot=r.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],st=(...e)=>console.error(...ot,...e),at=(...e)=>console.warn(...ot,...e),ct=new Map,ut=(e,t,i)=>{const o=e.$tagName$.replace(/-/g,"_"),s=e.$lazyBundleId$;if(r.isDev&&"string"!==typeof s)return void st(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);const a=!r.hotModuleReplacement&&ct.get(s);return a?a[o]:n("bc66")(`./${s}.entry.js${r.hotModuleReplacement&&i?"?s-hmr="+i:""}`).then(e=>(r.hotModuleReplacement||ct.set(s,e),e[o]),it)},lt=new Map,ft=[],ht=[],dt=[],pt=[],gt=(e,t)=>n=>{e.push(n),v||(v=!0,t&&4&I.$flags$?It(mt):I.raf(mt))},vt=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){it(t)}e.length=0},yt=(e,t)=>{let n=0,r=0;while(n<e.length&&(r=performance.now())<t)try{e[n++](r)}catch(i){it(i)}n===e.length?e.length=0:0!==n&&e.splice(0,n)},mt=()=>{if(r.asyncQueue&&g++,vt(ht),r.asyncQueue){const e=2===(6&I.$flags$)?performance.now()+14*Math.ceil(.1*g):1/0;yt(dt,e),yt(pt,e),dt.length>0&&(pt.push(...dt),dt.length=0),(v=ht.length+dt.length+pt.length>0)?I.raf(mt):g=0}else vt(dt),(v=ht.length>0)&&I.raf(mt)},It=e=>T().then(e),Mt=gt(dt,!0);r.isDev,r.isTesting;var Ct,Tt,At,_t=n("e11c"),bt=n("903e");function Nt(e){return Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(e)}function Et(e){var t="function"===typeof Map?new Map:void 0;return Et=function(e){if(null===e||!St(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return wt(e,arguments,kt(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Dt(n,e)},Et(e)}function wt(e,t,n){return wt=xt()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),o=new i;return n&&Dt(o,n.prototype),o},wt.apply(null,arguments)}function St(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function Ot(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dt(e,t)}function Dt(e,t){return Dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dt(e,t)}function Lt(e){var t=xt();return function(){var n,r=kt(e);if(t){var i=kt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Rt(this,n)}}function Rt(e,t){if(t&&("object"===Nt(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jt(e)}function jt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function kt(e){return kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kt(e)}function Ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach((function(t){zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gt(e){return $t(e)||Ht(e)||Yt(e)||Bt()}function Bt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Yt(e,t){if(e){if("string"===typeof e)return Ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(e,t):void 0}}function Ht(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function $t(e){if(Array.isArray(e))return Ft(e)}function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zt(e,t,n){return t&&Vt(e.prototype,t),n&&Vt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,"a",(function(){return as})),function(e){e["INIT"]="INIT",e["CONNECTED"]="CONNECTED",e["MESSAGES"]="MESSAGES",e["CONVERSATION"]="conversation",e["UPDATE_CONVERSATION"]="udpate_conversation",e["TYPING_STATUS"]="typing_status",e["PULL_OFFLINE_MESSAGE_FINISHED"]="pull_offline_message_finished",e["READ_RECEIPT_RECEIVED"]="read_receipt_received",e["MESSAGE_RECEIPT_REQUEST"]="message_receipt_request",e["MESSAGE_RECEIPT_RESPONSE"]="message_receipt_response",e["SWITCH_CONVERSATION"]="switch_conversation",e["REFERENCE_MESSAGE"]="reference_message",e["CLOSE_REFERENCE"]="close_reference",e["UPDATE_MESSAGE"]="update_message",e["DELETE_MESSAGE"]="delete_message",e["MESSAGE_SENDING"]="message_sending",e["MESSAGE_SEND_SUCCESS"]="message_send_success",e["MESSAGE_SEND_FAIL"]="message_send_fail",e["UPLOAD_PROGRESS"]="upload_progress",e["UPLOAD_COMPLETE"]="upload_complete",e["LANGUAGE_CHANGED"]="language_changed",e["USER_INFO_CHANGED"]="user_info_changed",e["GROUP_INFO_CHANGED"]="group_info_changed",e["CONVERSATION_INFO_CHANGED"]="conversation_info_changed"}(Tt||(Tt={})),function(e){e["A_KIT_INIT_O"]="A-kit-init-O",e["A_KIT_MSG_INSERT_O"]="A-kit-msg_insert-O",e["A_KIT_MSG_DELETE_O"]="A-kit-msg_delete-O",e["A_KIT_MSG_UPDATE_O"]="A-kit-msg_update-O",e["A_KIT_WILL__MSGMSG_RECALL_O"]="A-kit-msg_recall-O",e["A_KIT_WILL_SEND_MSG_T"]="A-kit-will_send_msg-T",e["A_KIT_WILL_SEND_MSG_R"]="A-kit-will_send_msg-R",e["A_KIT_WILL_DISPLAY_MSG_T"]="A-kit-will_display_msg-T",e["A_KIT_WILL_DISPLAY_MSG_R"]="A-kit-will_display_msg-R",e["A_KIT_CONVERSATION_CREATE_O"]="A-kit-conversation_create-O",e["A_KIT_CONVERSATION_UPDATE_O"]="A-kit-conversation_update-O",e["A_KIT_CONVERSATION_DELETE_O"]="A-kit-conversation_delete-O",e["A_KIT_CONVERSATION_UNREAD_TIME_S"]="A-kit-conversation_unread_time-S",e["A_KIT_CONVERSATION_LISTENER_S"]="A-kit-conversation_listener-S",e["A_KIT_MESSAGE_LISTENER_S"]="A-kit-message_listener-S",e["A_KIT_READ_RECEIOT_LISTENER_S"]="A-kit-read_receipt_listener-S",e["A_KIT_FORWARD_O"]="A-kit-forward-O",e["A_KIT_UPDATA_INFO_O"]="A-kit-update_info_o",e["A_KIT_SAVE_DRAFT_O"]="A-kit-save-draft_o",e["A_KIT_MESSAGE_UNKNOW_O"]="A-kit-message-unknow_o",e["A_KIT_PARAM_ERROR_O"]="A-kit-param-error_o",e["A_KIT_COPY_FAILE_O"]="A-kit-copy-faile_o"}(At||(At={}));var Wt,Kt="polyfill",qt=function(){function e(){Qt(this,e),this.FIRST_COUNT_BASE=30,this.COUNT_BASE=30,this.first=!0,this.topConversations=[],this.unTopConversations=[]}return Zt(e,[{key:"setPullCount",value:function(e){this.COUNT_BASE=e.pullCount,this.FIRST_COUNT_BASE=e.pullCount}},{key:"getRemoteConversation",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return Object(_t["t"])({count:e,startTime:r,order:i}).then((function(e){if(0===e.code){var r=e.data;r.forEach((function(e){var n=e,r=t.getUnReadTime(n.conversationType,n.targetId,n.channelId),i=n.latestMessage.conversationType===bt["e"].PRIVATE,o=n.latestMessage.messageDirection===bt["m"].SEND,s=n.latestMessage.sentTime>r||!r;i&&o&&s&&(n.latestMessage.receivedStatus=bt["r"].UNREAD)})),n.customIntercept&&"function"===typeof n.customIntercept.interceptConversation&&(r=r.filter((function(e){var t=n.customIntercept.interceptConversation(e);return!t}))),n.customDisplayMessage&&n.customDisplayMessage.willDisplayConversationMessage&&"function"===typeof n.customDisplayMessage.willDisplayConversationMessage&&(r=r.map((function(e){var t=e,r=t.latestMessage;if(r){var i=n.customDisplayMessage.willDisplayConversationMessage(r.content,r.conversationType,r.targetId,r.messageType);t.latestMessage.content=i}return t}))),n.update(r.map((function(e){return{conversation:e}})))}}))}},{key:"findConversationFromList",value:function(e,t){var n=t.findIndex((function(t){return t.conversationType===e.conversationType&&t.targetId===e.targetId&&t.channelId===e.channelId}));return n}},{key:"findConversation",value:function(e){var t=e;t.channelId=t.channelId||"";var n=this.findConversationFromList(t,this.topConversations);return-1!==n?{source:this.topConversations,index:n}:(n=this.findConversationFromList(t,this.unTopConversations),-1!==n?{source:this.unTopConversations,index:n}:null)}},{key:"update",value:function(e){var t=this,n=e,r=this.topConversations.filter((function(e){return e.latestMessage&&e.latestMessage.messageType===Kt})),i=this.unTopConversations.filter((function(e){return e.latestMessage&&e.latestMessage.messageType===Kt})),o=r.concat(i);n=n.concat(o.map((function(e){return{conversation:e}}))),n.forEach((function(e){if(e&&(e.conversation||e.updatedItems)){var n=t.findConversation({conversationType:e.conversation.conversationType,targetId:e.conversation.targetId,channelId:e.conversation.channelId||""}),r=n?n.source[n.index]:e.conversation;t.merge(r,e.conversation),void 0!==e.updatedItems&&Object.keys(e.updatedItems).length&&n?(Object.prototype.hasOwnProperty.call(e.updatedItems,"isTop"),n.source.splice(n.index,1),r&&Object.keys(e.updatedItems).forEach((function(t){r[t]=e.updatedItems[t].val}))):e.conversation&&n&&n.source.splice(n.index,1),r.isTop?t.sortConversation(r,t.topConversations):t.sortConversation(r,t.unTopConversations)}}))}},{key:"merge",value:function(e,t){var n=e;Object.keys(t).forEach((function(e){void 0!==t[e]&&null!==t[e]&&(n[e]=t[e])}))}},{key:"sortConversation",value:function(e,t){t.length||t.push(e);var n=t.findIndex((function(t){return t.targetId===e.targetId&&t.channelId===e.channelId&&t.conversationType===e.conversationType}));if(-1!==n){if(t[n].latestMessage){if(!e.latestMessage)return;if(t[n].latestMessage.sentTime>e.latestMessage.sentTime)return}t.splice(n,1)}for(var r=-1,i=0;i<t.length;i++){var o=t[i];if(!o.latestMessage){r=i;break}if(e.latestMessage&&e.latestMessage.sentTime>=o.latestMessage.sentTime){r=i;break}}-1===r&&(r=t.length),t.splice(r,0,e)}},{key:"create",value:function(e){var t={conversationType:e.conversationType,channelId:e.channelId,targetId:e.targetId,latestMessage:{conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId,sentTime:(new Date).getTime(),messageType:Kt,content:"",senderUserId:"",receivedTime:0,messageUId:"none",messageDirection:1,isPersited:!0,isCounted:!0,isOffLineMessage:!1,canIncludeExpansion:!1,receivedStatus:bt["r"].UNREAD}};this.sortConversation(t,this.unTopConversations),bt["J"].info(At.A_KIT_CONVERSATION_CREATE_O,t)}},{key:"remove",value:function(e){var t=this;return Object(_t["D"])(e).then((function(n){var r=t.findConversation(e);return r&&0===n.code&&(r.source.splice(r.index,1),bt["J"].info(At.A_KIT_CONVERSATION_DELETE_O,{index:r.index,conversation:r.source[r.index]})),n}))}},{key:"getLastTime",value:function(e){for(var t=(new Date).getTime(),n=e.length-1;n>=0;n--){var r=e[n];if(r.latestMessage){t=r.latestMessage.sentTime;break}}return t}},{key:"getList",value:function(e,t){var n=this;if(e){var r=this.getLastTime(this.topConversations),i=this.getLastTime(this.unTopConversations),o=this.first?this.FIRST_COUNT_BASE:this.COUNT_BASE,s=Math.min(r,i);return this.getRemoteConversation(o,t,s).then((function(){n.first=!1;var e=[].concat(Gt(n.topConversations),Gt(n.unTopConversations));return e}))}var a=[].concat(Gt(this.topConversations),Gt(this.unTopConversations));return Promise.resolve(a)}},{key:"changeTopStatus",value:function(e,t){return Object(_t["O"])(e,t).then((function(e){return e}))}},{key:"changeNotificationStatus",value:function(e,t){var n=this;return Object(_t["N"])(e,t).then((function(r){if(0===r.code){var i=n.findConversation(e);i.source[i.index].notificationStatus=t}return r}))}},{key:"clearLocalConversation",value:function(){this.unTopConversations=[],this.topConversations=[]}}]),e}();function Jt(e,t){return(e.channelId||"")===(t.channelId||"")&&e.conversationType===t.conversationType&&e.targetId===t.targetId}function Xt(e){return"".concat(e.conversationType,"&&").concat(e.targetId,"&&").concat(e.channelId||"")}function en(e){return new Promise((function(t,n){var r=new FileReader;r.readAsDataURL(e),r.onload=function(e){r.onerror=null,r.onload=null,t(e.target.result)},r.onerror=function(e){r.onerror=null,r.onload=null,n(e)}}))}var tn,nn,rn={},on={},sn=function(){function e(t){Qt(this,e),this.config=t}return Zt(e,[{key:"getUserProfile",value:function(e){return this.config.getUserProfile?Wt?Promise.resolve(Wt):this.config.getUserProfile(e).then((function(e){return Wt=e,Wt})):Promise.reject(new Error("Method getUserProfile is not defined!"))}},{key:"getConversationProfile",value:function(e){if(!this.config.getConversationProfile)return Promise.reject(new Error("Method getConversationProfile is not defined!"));for(var t=[],n=0;n<e.length;n++){var r=e[n],i=Xt(r),o=rn[i];o&&(e.splice(n,1),t.push(o),n--)}return this.config.getConversationProfile(e).then((function(e){return e.forEach((function(e){if(e&&e.targetId&&e.conversationType){var t=Xt(e);rn[t]=e}})),[].concat(Gt(e),t)}))}},{key:"getGroupMembers",value:function(e){if(!this.config.getGroupMembers)return Promise.reject(new Error("Method getGroupMembers is not defined!"));var t=Xt(e);return on[t]?Promise.resolve(on[t]):this.config.getGroupMembers(e).then((function(t){var n=Xt(e);return t?(on[n]=t,on[n]):null}))}},{key:"clearMyProfileCache",value:function(){Wt=null}},{key:"updateUserProfile",value:function(e){if(Wt.id===e.id)return Wt=e,void _t["A"].info(At.A_KIT_UPDATA_INFO_O,{myProfileCache:e});_t["A"].info(At.A_KIT_UPDATA_INFO_O,{msg:"update failed id is not equal"})}},{key:"updateGroupMembers",value:function(e,t){if(e&&e.targetId&&e.conversationType){var n=Xt(e);on[n]&&(on[n]=t),_t["A"].info(At.A_KIT_UPDATA_INFO_O,{key:t})}}},{key:"updateConversationProfile",value:function(e,t){var n=Xt(e);rn[n]&&(rn[n]=Pt(Pt({},t),e)),_t["A"].info(At.A_KIT_UPDATA_INFO_O,{key:t})}}]),e}(),an=function(){function e(){Qt(this,e),this.localMessages={}}return Zt(e,[{key:"currentConversation",get:function(){return this._currentConversation},set:function(e){this._currentConversation=e}},{key:"getMessages",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20,o=i;o=Math.min(20,Math.max(1,o)),this._unReadTime=t;var s=this.getLocalMessage(e,r,o);if(s.list&&s.list.forEach((function(e){var t=e,r=t.conversationType===_t["a"].PRIVATE,i=t.messageDirection===_t["g"].SEND,o=t.sentTime<=n._unReadTime;r&&i&&o&&(t.receivedStatus=_t["j"].READ)})),s.list.length>=o)return Promise.resolve(s);if(!1===s.hasMore)return Promise.resolve(s);var a=Xt(e),c=0;return this.localMessages[a]&&this.localMessages[a].list.length>0&&(c=this.localMessages[a].list[0].sentTime),this.getRemoteMessages(e,{count:o,timestamp:c}).then((function(){return n.getLocalMessage(e,r,o)}))}},{key:"getLocalMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20,r=Xt(e),i=this.localMessages[r],o=t;if(0===n)return i||{list:[],hasMore:!0};if(!i)return{list:[],hasMore:!0};0===o&&(o=Date.now());var s=i.list.findIndex((function(e){return o<=e.sentTime})),a=[];return 0===s?{list:[],hasMore:i.hasMore}:(-1===s&&(s=i.list.length),a=i.list.slice(Math.max(0,s-n),s),a.length>=n&&s-n>0?{list:a,hasMore:!0}:{list:a,hasMore:i.hasMore})}},{key:"getRemoteMessages",value:function(e,t){var n=this;return Object(_t["v"])(e,t).then((function(e){if(0===e.code){var t=e.data.list;n.customIntercept&&"function"===typeof n.customIntercept.interceptMessage&&(t=t.filter((function(e){var t=n.customIntercept.interceptMessage(e);return!t}))),n.customDisplayMessage&&n.customDisplayMessage.willDisplayMessages&&"function"===typeof n.customDisplayMessage.willDisplayMessages&&(t=t.map((function(e){var t=e,r=n.customDisplayMessage.willDisplayMessages(t.content,t.conversationType,t.targetId,t.messageType);return t.content=r,t}))),n.setLocalMessages(t,e.data.hasMore)}}))}},{key:"setLocalMessages",value:function(e,t){var n=this,r=[];if(!e.length)return{new:r};var i=[],o="".concat(e[0].conversationType,"&&").concat(e[0].targetId,"&&").concat(e[0].channelId||"");this.localMessages[o]?void 0!==t&&(this.localMessages[o].hasMore=t):this.localMessages[o]={list:[],hasMore:void 0===t||t};var s=this.localMessages[o].list;return e.forEach((function(e){var t=e,a=s.length;if("RC:RcCmd"===t.messageType&&t.messageDirection===_t["g"].RECEIVE){var c=t.content;if(c&&c.messageUId){var u=n.deleteMessageByUId(s,c.messageUId);u&&i.push(u)}}for(var l=0;l<s.length;l++){var f=s[l];if(t.messageUId===f.messageUId)return;if(t.sentTime<=f.sentTime){a=l;break}}n._currentConversation&&Jt(t,n._currentConversation)&&r.push(t);var h=t.conversationType===_t["a"].PRIVATE,d=t.messageDirection===_t["g"].SEND,p=t.sentTime>n._unReadTime||!n._unReadTime;h&&d&&p&&(t.receivedStatus=_t["j"].UNREAD),n.localMessages[o].list.splice(a,0,t)})),r.sort((function(e,t){return e.sentTime-t.sentTime})),{new:r,remove:i}}},{key:"recallMessage",value:function(e){var t=Xt(e),n=this.localMessages[t];if(!n)return null;var r=n.list;if(r&&r.length){var i=r.findIndex((function(t){return t.messageUId===e.messageUId}));return-1!==i?(r[i].messageType="RC:RcCmd",r[i]):null}return null}},{key:"deleteMessage",value:function(e){var t=Xt(e),n=this.localMessages[t];if(!n)return!1;var r=n.list;if(r&&r.length){var i=r.findIndex((function(t){return t.messageUId===e.messageUId}));return-1!==i&&(bt["J"].info(At.A_KIT_MSG_DELETE_O,{index:i,message:r[i]}),r.splice(i,1),!0)}return!1}},{key:"deleteMessageByUId",value:function(e,t){var n=e.findIndex((function(e){return e.messageUId===t}));if(-1!==n){var r=e[n];return e.splice(n,1),bt["J"].info(At.A_KIT_MSG_DELETE_O,{index:n,message:e[n]}),r}return null}},{key:"insertMessage",value:function(e){var t=Xt(e),n=this.localMessages[t];if(n){var r=this.localMessages[t].list,i=r.findIndex((function(t){return t.sentTime>e.sentTime}));-1===i?r.push(e):r.splice(i,0,e),bt["J"].info(At.A_KIT_MSG_INSERT_O,{index:i,message:e})}else this.localMessages[t]={list:[e],hasMore:!0}}},{key:"updateMessage",value:function(e){var t=Xt(e),n=this.localMessages[t];if(n){var r=this.localMessages[t].list,i=-1;e.messageId&&(i=r.findIndex((function(t){return t.messageId===e.messageId}))),-1===i&&e.messageUId&&(i=r.findIndex((function(t){return t.messageUId===e.messageUId}))),-1!==i?Object.keys(e).forEach((function(t){void 0!==e[t]&&(r[i][t]=e[t])})):this.insertMessage(e)}else this.insertMessage(e)}},{key:"cutMessages",value:function(){var e=Xt(this._currentConversation),t=this.localMessages[e];t&&t.list.length>100&&(t.list.splice(0,t.list.length-100),t.hasMore=!0)}},{key:"clearLocalConversation",value:function(){this.localMessages={}}}]),e}();(function(e){e["ZH_CN"]="zh_CN",e["ZH_TW"]="zh_TW",e["EN"]="en"})(tn||(tn={}));var cn=function(e,t,n){var r="imkit_".concat(t,"_").concat(n);return nn={set:function(t,n){var i=JSON.stringify(t);e.localStorage.setItem("".concat(r,"_").concat(n),i),void 0!==t&&null!==t||e.localStorage.removeItem("".concat(r,"_").concat(n))},get:function(t){var n;try{n=JSON.parse(e.localStorage.getItem("".concat(r,"_").concat(t)))}catch(i){n=null}return n},remove:function(t){e.localStorage.removeItem("".concat(r,"_").concat(t))}},nn},un=function(){function e(){Qt(this,e),this._conversationStorage={}}return Zt(e,[{key:"init",value:function(e,t){this._kitStorage=cn(window,e,t),this._conversationStorage=this._kitStorage.get("conversation")||{}}},{key:"updateUnReadTime",value:function(e,t,n,r){var i=this.getConversationKey(t,n,r);this._conversationStorage[i]=e,this._kitStorage.set(this._conversationStorage,"conversation")}},{key:"getUnReadTime",value:function(e,t,n){var r=this.getConversationKey(e,t,n);return this._conversationStorage[r]||0}},{key:"data",get:function(){return this._conversationStorage}},{key:"getConversationKey",value:function(e,t,n){return"".concat(n,"_").concat(e,"_").concat(t)}}]),e}(),ln=function(){function e(){Qt(this,e),this._LangStore=null}return Zt(e,[{key:"init",value:function(e,t){this._kitStorage=cn(window,e,t),this._LangStore=this._kitStorage.get("lang")||null}},{key:"setLang",value:function(e){this._LangStore=e,this._kitStorage.set(this._LangStore,"lang")}},{key:"getLang",value:function(){var e=this._LangStore&&this._LangStore.lang?this._LangStore.lang:tn.ZH_CN;return e}}]),e}();function fn(){return~~(16777215*Math.random())}function hn(e){return-1!==["RC:Delivered"].indexOf(e)}var dn=!1,pn=function(e){Ot(n,e);var t=Lt(n);function n(){var e;return Qt(this,n),e=t.call(this),e.switchTimes={},e.receiptRequstCache=[],e._fileCache={},n.INSTANCE||(e.conversationManager=new qt,e.messageManager=new an,e._conversationStorage=new un,e._langStore=new ln,n.INSTANCE=jt(e)),e}return Zt(n,[{key:"init",value:function(e){var t=e;dn&&bt["J"].error(At.A_KIT_INIT_O,{msg:"禁止多次初始化!"}),t.libOption&&Object(bt["L"])(t.libOption.appkey)||bt["J"].error(At.A_KIT_INIT_O,{msg:"参数错误:libOption.appkey 为必传字段!",data:t}),this._appkey=t.libOption.appkey,Object(_t["z"])(t.libOption),t.conversationPullCount=t.conversationPullCount?t.conversationPullCount:30,this.conversationManager.setPullCount({pullCount:t.conversationPullCount}),this.customMessage=t.customMessage,this.customIntercept=t.customIntercept,this.conversationManager.customIntercept=this.customIntercept,this.customDisplayMessage=t.customDisplayMessage,this.messageManager.customIntercept=this.customIntercept,this.messageManager.customDisplayMessage=this.customDisplayMessage,this.conversationManager.customDisplayMessage=this.customDisplayMessage,this.service=new sn(t.service),this.setListener(),dn=!0,this.emit(Tt.INIT)}},{key:"connect",value:function(e,t){return Object(_t["q"])(e,t)}},{key:"disconnect",value:function(){return this.conversationManager.clearLocalConversation(),this.messageManager.clearLocalConversation(),this.service.clearMyProfileCache(),Object(_t["s"])()}},{key:"getTime",value:function(){return this.startLocalTime&&!this.startServerTime||(this.startLocalTime=Date.now(),this.startServerTime=Object(_t["w"])()),Date.now()-this.startLocalTime+this.startServerTime}},{key:"currentConversation",get:function(){return this._currentConversation},set:function(e){this._currentConversation=e}},{key:"lang",get:function(){var e=this._langStore.getLang()?this._langStore.getLang():tn.ZH_CN;return e},set:function(e){this._langStore.setLang(e)}},{key:"selectConversation",value:function(e){var t=this;if(!this.currentConversation||!Jt(this.currentConversation,e)){if(this.conversationManager.findConversation(e)||(this.createConversation(e),this.emit(Tt.CONVERSATION,this.currentConversation)),this.currentConversation){var n=Xt(this.currentConversation);this.switchTimes[n]=this.getTime(),this.messageManager.cutMessages()}this.currentConversation=e,this.messageManager.currentConversation=this.currentConversation,this.emit(Tt.SWITCH_CONVERSATION,this.currentConversation),this.receiptRequstCache.forEach((function(e){Jt(e.conversation,t.currentConversation)&&t.emit(Tt.MESSAGE_RECEIPT_REQUEST,e)}))}}},{key:"changeLanguage",value:function(e){if(e&&e.lang)return this._langStore.setLang(e),void this.emit(Tt.LANGUAGE_CHANGED,e);bt["J"].info(At.A_KIT_PARAM_ERROR_O,{msg:"参数异常,切换语言失败"})}},{key:"setListener",value:function(){var e=this;Object(_t["n"])(_t["c"].CONNECTED,(function(){e._currentUsreId=Object(_t["u"])(),e._conversationStorage.init(e._appkey,e._currentUsreId),e._langStore.init(e._appkey,e._currentUsreId),e.emit(Tt.CONNECTED,!0),e.emit(Tt.LANGUAGE_CHANGED,{lang:e.lang})})),Object(_t["n"])(_t["c"].DISCONNECT,(function(){e.currentConversation=null,e.emit(Tt.SWITCH_CONVERSATION,e.currentConversation),e.emit(Tt.CONNECTED,!1)})),Object(_t["n"])(_t["c"].CONVERSATION,(function(t){bt["J"].info(At.A_KIT_CONVERSATION_LISTENER_S,t);var n=t.conversationList;e.customIntercept&&"function"===typeof e.customIntercept.interceptConversation&&(n=n.filter((function(t){var n=e.customIntercept.interceptConversation(t.conversation);return!n}))),n=n.filter((function(e){if(e.updatedItems&&e.updatedItems.latestMessage&&e.updatedItems.latestMessage.val){var t=e.updatedItems.latestMessage.val.messageType;return!hn(t)}return!0})),n.length&&(e.conversationManager.update(n),e.emit(Tt.CONVERSATION,n))})),Object(_t["n"])(_t["c"].MESSAGES,(function(t){bt["J"].info(At.A_KIT_MESSAGE_LISTENER_S,t);var n=t.messages;if(n.forEach((function(e){var t=e;t.conversationType===bt["e"].PRIVATE&&t.receivedStatus===bt["r"].READ&&(t.receivedStatus=bt["r"].UNREAD)})),e.customIntercept&&"function"===typeof e.customIntercept.interceptMessage&&(n=n.filter((function(t){var n=e.customIntercept.interceptMessage(t);return!n}))),e.customDisplayMessage&&e.customDisplayMessage.willDisplayMessages&&"function"===typeof e.customDisplayMessage.willDisplayMessages&&(n=n.map((function(t){var n=t,r=e.customDisplayMessage.willDisplayMessages(n.content,n.conversationType,n.targetId,n.messageType);return n.content=r,n}))),n=n.filter((function(e){return!hn(e.messageType)})),n.length){var r=e.messageManager.setLocalMessages(n);e.currentConversation&&r["new"].length&&e.emit(Tt.MESSAGES,r["new"]),r.remove&&r.remove.length&&e.emit(Tt.DELETE_MESSAGE,r.remove)}})),Object(_t["n"])(_t["c"].PULL_OFFLINE_MESSAGE_FINISHED,(function(){e.emit(Tt.PULL_OFFLINE_MESSAGE_FINISHED)})),Object(_t["n"])(_t["c"].TYPING_STATUS,(function(t){e.emit(Tt.TYPING_STATUS,t)})),Object(_t["n"])(_t["c"].READ_RECEIPT_RECEIVED,(function(t){var n=t.conversation,r=t.sentTime,i=t.messageUId,o=e.conversationManager.findConversation(n);if(o){var s=o.source[o.index],a=s.latestMessage;a.sentTime!==r&&a.messageUId!==i||(e.conversationManager.update([{conversation:s,updatedItems:{latestMessage:{time:Date.now(),val:Pt(Pt({},a),{},{receivedStatus:bt["r"].READ})}}}]),e.emit(Tt.CONVERSATION,s))}var c=e.messageManager.getLocalMessage(n,0,0),u=c.list.findIndex((function(e){return e.sentTime===r||e.messageUId===i}));-1!==u&&c.list.forEach((function(t){var n=t;n.receivedStatus=bt["r"].READ,e.messageManager.updateMessage(n),e.emit(Tt.UPDATE_MESSAGE,n)})),e._conversationStorage.updateUnReadTime(r,n.conversationType,n.targetId,n.channelId),e.emit(Tt.READ_RECEIPT_RECEIVED,t)})),Object(_t["n"])(_t["c"].MESSAGE_RECEIPT_REQUEST,(function(t){var n=t.conversation,r=t.messageUId;if(Jt(e.currentConversation,n))e.emit(Tt.MESSAGE_RECEIPT_REQUEST,t);else{var i=Xt(n);if(e.switchTimes[i]){var o=e.messageManager.getLocalMessage(n,0,0),s=o.list.findIndex((function(t){return t.messageUId===r&&t.receivedTime<e.switchTimes[i]}));-1===s?e.receiptRequstCache.push(t):Object(_t["K"])(n.targetId,zt({},t.senderUserId,[t.messageUId]),n.channelId)}else e.receiptRequstCache.push(t)}})),Object(_t["n"])(_t["c"].MESSAGE_RECEIPT_RESPONSE,(function(t){e.emit(Tt.MESSAGE_RECEIPT_RESPONSE,t)}))}},{key:"getMessages",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20,r=this._conversationStorage.getUnReadTime(e.conversationType,e.targetId,e.channelId);return this.messageManager.getMessages(e,r,t,n)}},{key:"getConversation",value:function(e){var t=this.conversationManager.findConversation(e);return t&&-1!==t.index?this.service.getConversationProfile([e]).then((function(e){var n=e[0];return{conversation:t.source[t.index],profile:n}})):Promise.resolve(null)}},{key:"getConversationList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.conversationManager.getList(t,this._conversationStorage).then((function(t){var n=t.map((function(e){return{conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId}}));return e.service.getConversationProfile(n).then((function(e){return t.map((function(t){return{conversation:t,profile:e.find((function(e){return!(!e||!Jt(e,t))}))}}))}))["catch"]((function(){return t.map((function(e){return{conversation:e}}))}))}))}},{key:"createConversation",value:function(e){return this.conversationManager.create(e)}},{key:"deleteConversation",value:function(e){return this.currentConversation=null,this.emit(Tt.SWITCH_CONVERSATION,this.currentConversation),this.conversationManager.remove(e)}},{key:"setConversationToTop",value:function(e,t){return this.conversationManager.changeTopStatus(e,t)}},{key:"setConversationNotificationStatus",value:function(e,t){return this.conversationManager.changeNotificationStatus(e,t)}},{key:"referenceMessage",value:function(e){this.emit(Tt.REFERENCE_MESSAGE,e)}},{key:"recallMessage",value:function(e){var t=this;Object(_t["B"])({conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},{messageUId:e.messageUId,sentTime:e.sentTime}).then((function(n){if(0===n.code){var r=t.messageManager.recallMessage(e);r&&t.emit(Tt.UPDATE_MESSAGE,r)}}))}},{key:"deleteMessage",value:function(e){var t=this;Object(_t["r"])({conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},[{messageUId:e.messageUId,sentTime:e.sentTime,messageDirection:e.messageDirection}]).then((function(n){if(0===n.code){var r=t.messageManager.deleteMessage(e);r&&t.emit(Tt.DELETE_MESSAGE,[e])}}))}},{key:"registerMessageType",value:function(e,t,n,r,i){return Object(_t["C"])(e,t,n,r,i)}},{key:"sendMessage",value:function(e,t,n){var r=t,i=fn(),o=r.content,s=r;return r.messageType===bt["n"].REFERENCE&&(this.emit(Tt.CLOSE_REFERENCE),s=new _t["k"](Pt({},o))),r.messageType===bt["n"].TextMessage&&(s=new _t["l"]({content:o.content})),r.messageType!==bt["n"].TextMessage&&r.messageType!==bt["n"].REFERENCE||(r.content=this._willSendMessage(r.content,e.conversationType,e.targetId,r.messageType)),this.decorateMessage(e,i,s,Object(_t["I"])(e,r,n))}},{key:"sendImageMessage",value:function(e,t,n,r){var i=this,o=t,s=fn();this._fileCache[s]=o;var a=function(t){return o=i._willSendMessage(o,e.conversationType,e.targetId,bt["n"].IMAGE),i.decorateMessage(e,s,new _t["e"]({content:t,imageUri:""}),Object(_t["H"])(e,o,{onProgress:function(e){i.emit(Tt.UPLOAD_PROGRESS,{messageId:s,progress:e}),"function"===typeof n.onProgress&&n.onProgress(e)},onComplete:function(e){i.emit(Tt.UPLOAD_COMPLETE,{messageId:s,fileInfo:e}),"function"===typeof n.onComplete&&n.onComplete(e)}},r))};return en(o.file).then((function(e){a(e)}))["catch"]((function(){a("")}))}},{key:"sendFileMessage",value:function(e,t,n,r){var i=this,o=t,s=fn(),a=o.file;return this._fileCache[s]=a,o=this._willSendMessage(o,e.conversationType,e.targetId,bt["n"].FILE),this.decorateMessage(e,s,new _t["d"]({name:a.name,size:a.size,type:a.type,fileUrl:""}),Object(_t["G"])(e,o,{onProgress:function(e){i.emit(Tt.UPLOAD_PROGRESS,{messageId:s,progress:e}),"function"===typeof n.onProgress&&n.onProgress(e)},onComplete:function(e){i.emit(Tt.UPLOAD_COMPLETE,{messageId:s,fileInfo:e}),"function"===typeof n.onComplete&&n.onComplete(e)}},r))}},{key:"resendMessage",value:function(e,t){this.messageManager.deleteMessage(t),this.emit(Tt.DELETE_MESSAGE,[t]);var n,r,i,o=null,s=t.content;switch(t.messageType){case"RC:TxtMsg":i=null,s.mentionedInfo&&(i=s.mentionedInfo,i.isMentioned=!0),o=new _t["l"]({content:s.content}),this.sendMessage(e,o,i);break;case"RC:ImgMsg":r=this._fileCache[t.messageId],this.sendImageMessage(e,r,{onProgress:function(){},onComplete:function(){}}),delete this._fileCache[t.messageId];break;case"RC:FileMsg":n=this._fileCache[t.messageId],this.sendFileMessage(e,{file:n},{onProgress:function(){},onComplete:function(){}}),delete this._fileCache[t.messageId];break;case"RC:ReferenceMsg":o=new _t["k"]({referMsgUserId:s.referMsgUserId,referMsg:s.referMsg,content:s.content,objName:s.objName}),this.sendMessage(e,o,i);break}}},{key:"_willSendMessage",value:function(e,t,n,r){var i=e;return this.customDisplayMessage&&this.customDisplayMessage.willSendMessage&&"function"===typeof this.customDisplayMessage.willSendMessage&&(i=this.customDisplayMessage.willSendMessage(i,t,n,r)),i}},{key:"decorateMessage",value:function(e,t,n,r){var i=this,o={targetId:e.targetId,channelId:e.channelId,conversationType:e.conversationType,messageType:n.messageType,content:n.content,sentTime:Date.now(),messageDirection:bt["m"].SEND,senderUserId:Object(_t["u"])(),receivedTime:void 0,isPersited:n.isPersited,isCounted:n.isCounted,messageUId:"sending_".concat(t),isOffLineMessage:!1,canIncludeExpansion:!1,receivedStatus:bt["r"].UNREAD,messageId:t};this.messageManager.insertMessage(o),this.emit(Tt.MESSAGES,[o]);var s=this.conversationManager.findConversation(e),a=null;if(s){a=s.source[s.index];var c={conversation:a,updatedItems:{latestMessage:{time:Date.now(),val:o}}};this.conversationManager.update([c]),this.emit(Tt.UPDATE_CONVERSATION,[Pt(Pt({},a),{},{latestMessage:o})])}return this.emit(Tt.MESSAGE_SENDING,o),r.then((function(e){var n=e.data?e.data:o;if(n.messageId=t,n&&n.content&&i.customDisplayMessage&&i.customDisplayMessage.willDisplayMessages&&"function"===typeof i.customDisplayMessage.willDisplayMessages&&(n.content=i.customDisplayMessage.willDisplayMessages(n.content,n.conversationType,n.targetId,n.messageType)),0===e.code)i.messageManager.updateMessage(n),i.emit(Tt.MESSAGE_SEND_SUCCESS,n),delete i._fileCache[n.messageId];else{if(s){n.messageUId="fail_".concat(n.messageId);var r={conversation:a,updatedItems:{latestMessage:{time:Date.now(),val:n}}};i.conversationManager.update([r]),i.emit(Tt.UPDATE_CONVERSATION,[Pt(Pt({},a),{},{latestMessage:n})])}i.messageManager.updateMessage(n),i.emit(Tt.MESSAGE_SEND_FAIL,n)}return e}))}},{key:"getConversationProfile",value:function(e){return this.service.getConversationProfile([e]).then((function(e){return e&&e.length?e[0]:null}))}},{key:"getGroupMemberProfile",value:function(e,t){return e.conversationType===bt["e"].GROUP&&t?this.service.getGroupMembers(e).then((function(e){var n=e.findIndex((function(e){return e.id===t}));return-1!==n?e[n]:null})):null}},{key:"getGroupMembers",value:function(e){return this.service.getGroupMembers(e)}},{key:"getMyProfile",value:function(){var e=Object(_t["u"])();if(!e)throw new Error("Unable to get the current user ID.");return this.service.getUserProfile(e)}},{key:"isCustomUserMessage",value:function(e){if(!this.customMessage)return!1;var t=this.customMessage.userMessage;return t&&void 0!==t[e.messageType]}},{key:"createCustomUserMessageDom",value:function(e){if(!this.customMessage)return null;var t=this.customMessage.userMessage;return t?t[e.messageType](e):null}},{key:"isCustomNotifyMessage",value:function(e){if(!this.customMessage)return!1;var t=this.customMessage.notifyMessage;return t&&void 0!==t[e.messageType]}},{key:"createCustomNotifyMessageDom",value:function(e){if(!this.customMessage)return null;var t=this.customMessage.notifyMessage;return t?t[e.messageType](e):null}},{key:"isCustomLastMessage",value:function(e){if(!this.customMessage)return!1;var t=this.customMessage.lastMessage;return t&&void 0!==t[e.messageType]}},{key:"createCustomLastMessageDom",value:function(e){if(!this.customMessage)return null;var t=this.customMessage.lastMessage;return t?t[e.messageType](e):null}},{key:"clearMessagesUnreadStatus",value:function(e){Object(_t["o"])(e),this.conversationManager.update([{conversation:e,updatedItems:{unreadMessageCount:{time:Date.now(),val:0}}}]),this.emit(Tt.UPDATE_CONVERSATION,[Pt(Pt({},e),{},{unreadMessageCount:0})])}},{key:"saveTextMessageDraft",value:function(e,t){var n=this;Object(_t["F"])(e,t).then((function(e){0===e.code?n.emit(Tt.SWITCH_CONVERSATION,n.currentConversation):bt["J"].info(At.A_KIT_SAVE_DRAFT_O,{msg:"保存草稿失败",info:e.msg})}))}},{key:"updateUserProfile",value:function(e){this.service.updateUserProfile(e),this.emit(Tt.USER_INFO_CHANGED,e)}},{key:"updateGroupMembers",value:function(e,t){this.service.updateGroupMembers(e,t),this.emit(Tt.GROUP_INFO_CHANGED,t)}},{key:"updateConversationProfile",value:function(e,t){this.service.updateConversationProfile(e,t),this.emit(Tt.CONVERSATION_INFO_CHANGED,t)}}]),n}(bt["g"]);pn.INSTANCE=null;var gn=new pn;console.warn("IMKit版本信息","9/19/2022, 3:07:00 PM","51828b5b4e3ba1a652a23c5bf321346ec4a52359","5.4.2"),Object(_t["m"])("IMKit","5.4.2");var vn=0;function yn(e){return"IFRAME"===e.tagName?e.contentWindow.getSelection():window.getSelection()}function mn(e){var t;return"IFRAME"===e.tagName&&(t=e),t?t.contentDocument?t.contentDocument:t.contentWindow?t.contentWindow.document:null:document}function In(e){return e}function Mn(e){var t=e;if("IFRAME"===e.tagName)return t=e.contentWindow.document,void(t.contentEditable=!0);t.getAttribute&&void 0===t.getAttribute("contenteditable")&&t.setAttribute("contenteditable",!0)}function Cn(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top,bottom:t.bottom,right:t.right,x:t.x,y:t.y,width:t.width,height:t.height}}function Tn(e){var t=document.createDocumentFragment(),n=document.createElement("div");n.innerHTML=e;while(n.firstChild)t.appendChild(n.firstChild);return t}function An(e){var t,n=mn(e),r=n.body,i=yn(e);if(i.rangeCount>0){var o=i.getRangeAt(0).cloneRange();o.collapse(!0),o.setStart(r,0),t=o.cloneContents()}return t}function _n(e){var t,n=yn(e);if(n.rangeCount>0){var r=mn(e),i=r.body,o=n.getRangeAt(0).cloneRange();o.collapse(!1),o.setEnd(i,i.childNodes.length),t=o.cloneContents()}return t}function bn(e){e.focus();var t=mn(e),n=t.body;if("undefined"!==typeof window.getSelection&&"undefined"!==typeof document.createRange){var r=t.createRange();r.selectNodeContents(n),r.collapse(!1);var i=yn(e);i.removeAllRanges(),i.addRange(r)}else if("undefined"!==typeof t.body.createTextRange){var o=t.body.createTextRange();o.moveToElementText(n),o.collapse(!1),o.select()}}var Nn=function(){function e(t,n,r){Qt(this,e),Mn(t),this.container=t,this.configs=In(n),this.triggers=this.configs.map((function(e){return e.trigger})),this.triggering=!1,this.bindFuncs(),this.body=mn(t).body,this.body.addEventListener("keydown",this.checkKeyDown,!1),this.locale=r}return Zt(e,[{key:"bindFuncs",value:function(){this.checkKeyDown=this.checkKeyDown.bind(this),this.onSelect=this.onSelect.bind(this),this.checkMouse=this.checkMouse.bind(this)}},{key:"checkKeyDown",value:function(e){var t=e.key,n=this.triggers.indexOf(t);if(-1!==n){if(e.preventDefault(),this.triggering)return;var r=this.configs[n],i="<span id='at_".concat(vn,"' class='at-span' data-trigger='@'>@</span>"),o=this.inserElement(i,vn);if(o){this.currentIndex=vn;var s=Cn(o);"function"===typeof r.onTrigger&&(this.triggering=!0,r.onTrigger(s,this.onSelect))}}else if(8===e.keyCode){if(this.triggering)return e.preventDefault(),void this.cancelTrigger();var a=yn(this.container);if(0===a.rangeCount)return;var c=mn(this.container),u=c.body,l=a.getRangeAt(0),f=l.commonAncestorContainer,h=f.parentNode;if(h&&this.isAtNode(h))return h.parentNode.removeChild(h),void e.preventDefault();var d=a.getRangeAt(0).cloneRange();d.collapse(!0),d.setStart(u,0);var p=d.cloneContents(),g=p.lastChild;if(this.isAtNode(g)){var v=u.querySelector("#".concat(g.id));v.parentNode.removeChild(v),e.preventDefault()}}else 27===e.keyCode&&this.triggering&&(e.preventDefault(),this.cancelTrigger())}},{key:"cancelTrigger",value:function(){var e=mn(this.container),t=e.querySelector("#at_".concat(this.currentIndex));if(t){e.body.removeChild(t);var n=t.getAttribute("data-trigger"),r=this.triggers.indexOf(n);if(-1!==r){var i=this.configs[r];i.onCancel()}}this.triggering=!1}},{key:"isAtNode",value:function(e){return!!e&&(1===e.nodeType&&"SPAN"===e.nodeName&&void 0!==e.getAttribute("data-trigger"))}},{key:"onSelect",value:function(e){this.triggering=!1;var t=mn(this.container),n=t.querySelector("#at_".concat(this.currentIndex));if(n){n.innerHTML="@".concat(e.value);var r=e.value===this.locale.other.all?"all":e.id;n.setAttribute("data-id",r),vn++,t.body.focus();var i=t.createRange();i.setStartAfter(n.nextSibling||n),i.collapse(!0);var o=yn(this.container);o.removeAllRanges(),o.addRange(i)}else this.cancelTrigger()}},{key:"inserElement",value:function(e,t){var n=mn(this.container);bn(n.body);var r=Tn(e),i=yn(this.container),o=i.getRangeAt(0);o.insertNode(r);var s=n.querySelector("#at_".concat(t));return i.removeAllRanges(),i.selectAllChildren(s),i.collapseToEnd(),s}},{key:"checkMouse",value:function(e){if(this.triggering)e.preventDefault();else{var t=An(this.container),n=t.lastChild;if(null!==n&&1===n.nodeType&&"SPAN"===n.nodeName){var r=n.id;this.currentIndex=n.id.substring(3);var i=n.getAttribute("data-trigger"),o=this.triggers.indexOf(i);if(-1!==o){var s=mn(this.container).querySelector("#".concat(r));if(s){var a=this.configs[o],c=Cn(s);"function"===typeof a.onTrigger&&(this.triggering=!0,a.onTrigger(c,this.onSelect))}}}}}},{key:"dispose",value:function(){this.body.removeEventListener("keydown",this.checkKeyDown,!1)}}]),e}(),En={area:"zh_CN",lang:"中文",conversation:{loading:"正在加载列表",forMore:"上拉获取更多",noData:"当前无会话",draft:"草稿",atMe:"有人@我",file:"文件",img:"图片",location:"位置消息",video:"短视频",audio:"语音消息",quote:"引用消息",yesterday:"昨天",before:"前天",top:"取消置顶",noTop:"置顶",inform:"允许消息通知",noInform:"消息免打扰",delete:"删除",read:"已读",unread:"未读",recall:"撤回了一条消息",you:"你"},message:{history:"下拉获取历史消息",noHistory:"没有更多历史消息了",loading:"加载中...",completed:"加载完毕",noData:"新的一天,新的开始",year:"年",month:"月",day:"日",hour:"点",minute:"分",copy:"复制",quote:"引用",recall:"撤回",delete:"删除",msgRecall:"撤回了一条消息",you:"你",opposite:"对方",file:"文件",location:"位置",nonsupport:"当前版本不支持查看此消息",forward:"转发"},messageEdit:{send:"发送",image:"图片",picError:"图片格式有误",file:"文件"},other:{unKnowMessage:"未知消息",all:"所有人"}},wn={area:"en",lang:"English",conversation:{loading:"loading...",forMore:"more",noData:"empty",draft:"draft",atMe:"@me",file:"file",img:"image",location:"location",video:"video",audio:"audio",quote:"quote",yesterday:"yesterday",before:"before",top:"untop",noTop:"top",inform:"unmute",noInform:"mute",delete:"delete",read:"read",unread:"unread",recall:"recalled a message",you:"You "},message:{history:"more",noHistory:"no more",loading:"loading...",completed:"completed",noData:"empty",year:"year ",month:"month ",day:"day",hour:"hour",minute:"minute",copy:"copy",quote:"quote",recall:"recall",delete:"delete",msgRecall:"recalled message",you:"you",opposite:"opposite",file:"file",location:"location",nonsupport:"the current version does not support viewing this message",forward:"forward"},messageEdit:{send:"send",image:"image",picError:"image format is wrong",file:"file"},other:{unKnowMessage:"Unknown message",all:"all people"}},Sn={zh_CN:En,en:wn},On=".editor-content{width:calc(100% - 11em);height:100%;line-height:1.5;font-size:1.8em;overflow:auto;border:none}.editor-content:focus{border:none;outline:none}.post-btn{position:absolute;right:4em;bottom:5em}.post-btn button{font-size:2.4em;border:0.1em solid #aaaeb2;border-radius:0.5em;height:2.83333em;width:7em;background:#fff;color:#0099ff;outline:none}.post-btn button:disabled{border:0.1em solid #c7cbce;color:#c7cbce}",Dn=function(e){Ot(n,e);var t=Lt(n);function n(){var e;return Qt(this,n),e=t.call(this),e.__registerHost(),Je(jt(e)),e.post=be(jt(e),"post",7),e.contentChange=be(jt(e),"contentChange",7),e.inputContent=be(jt(e),"inputContent",7),e.memberListVisible=!1,e.hasContent=!1,e.lang=gn.lang,e.handleInput=e.handleInput.bind(jt(e)),e.handleKeyDown=e.handleKeyDown.bind(jt(e)),e.postHandler=e.postHandler.bind(jt(e)),e.handlePastContent=e.handlePastContent.bind(jt(e)),e.handleSelectMember=e.handleSelectMember.bind(jt(e)),e.handleCloseMemberList=e.handleCloseMemberList.bind(jt(e)),e.handleSwitchConversation=e.handleSwitchConversation.bind(jt(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(jt(e)),e}return Zt(n,[{key:"validateWatchData",value:function(e,t){if(!t||e.time!==t.time){var n=mn(this.contentRef);n.body.innerHTML=e.text,bn(this.contentRef)}}},{key:"validateConversationData",value:function(e,t){t&&(t.conversationType!==_t["a"].GROUP?e&&e.conversationType===_t["a"].GROUP&&this.createAt():e&&e.conversationType!==_t["a"].GROUP&&this.at&&this.at.dispose())}},{key:"componentWillLoad",value:function(){gn.off(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged),gn.on(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){if(this.contentRef){var e=mn(this.contentRef);e&&(e.body.removeEventListener("paste",this.handlePastContent),e.body.removeEventListener("input",this.handleInput),e.body.removeEventListener("keydown",this.handleKeyDown))}this.at&&this.at.dispose(),gn.off(Tt.SWITCH_CONVERSATION,this.handleSwitchConversation),gn.off(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"componentDidLoad",value:function(){var e=this;if(this.value){var t=mn(this.contentRef);t.body.innerHTML=this.value.text}setTimeout((function(){e.conversation&&e.conversation.conversationType===_t["a"].GROUP&&e.createAt();var t=mn(e.contentRef);t&&(t.body.addEventListener("paste",e.handlePastContent),t.body.addEventListener("input",e.handleInput),t.body.addEventListener("keydown",e.handleKeyDown),t.designMode="on",t.contentEditable=!0,t.body.style.margin=0,t.body.style.padding=0,t.body.style.wordBreak="break-all")}),500),gn.on(Tt.SWITCH_CONVERSATION,this.handleSwitchConversation)}},{key:"handleInput",value:function(){var e=this;this.checkContentLength(),this.contentChangeHandler(),this.inputTimer||this.inputContent.emit(),this.inputTimer=setTimeout((function(){clearTimeout(e.inputTimer),e.inputTimer=null}),5e3)}},{key:"checkContentLength",value:function(){var e=this;this.checkContentTimer||(this.checkContentTimer=setTimeout((function(){if(mn(e.contentRef)){var t=mn(e.contentRef).body.innerHTML;t=t.trim(),t=t.replace(/ /g,""),t=t.replace(/<br>/g,""),e.hasContent=!!t,e.checkContentTimer=null}}),400))}},{key:"contentChangeHandler",value:function(){this.contentChange.emit(mn(this.contentRef).body.innerHTML)}},{key:"handlePastContent",value:function(e){var t=(e.clipboardData||window.clipboardData).getData("text"),n=yn(this.contentRef);if(n.rangeCount){n.deleteFromDocument();var r=n.getRangeAt(0),i=document.createTextNode(t);r.insertNode(i),r.setStartAfter(i),r.collapse(!0),e.preventDefault(),this.checkContentLength()}}},{key:"postHandler",value:function(){var e=mn(this.contentRef);this.post.emit(e.body.innerHTML),e.body.innerHTML="",this.hasContent=!1,this.at&&(this.at.triggering=!1)}},{key:"handleKeyDown",value:function(e){if(13===e.keyCode){if(e.preventDefault(),e.shiftKey){var t=yn(this.contentRef),n=t.getRangeAt(0),r=_n(this.contentRef),i=Array.prototype.filter.call(r.childNodes,(function(e){return!("#text"===e.nodeName&&!e.data)}));if(!i.length){var o=document.createElement("br");n.insertNode(o)}var s=document.createElement("br");return n.insertNode(s),void n.collapse(!1)}this.memberListVisible=!1,this.postHandler()}this.checkContentLength()}},{key:"createAt",value:function(){var e=this;this.at=new Nn(this.contentRef,[{trigger:"@",onTrigger:function(t,n){var r=e.contentRef.getBoundingClientRect();e.targetRect={width:t.width,height:t.height,x:t.x+r.x,y:t.y+r.y},e.memberListVisible=!0,e.atItemSelect=n},onCancel:function(){e.memberListVisible=!1}}],this.locale)}},{key:"handleSelectMember",value:function(e){var t=e.detail;this.atItemSelect(t),this.memberListVisible=!1,this.contentChange.emit(mn(this.contentRef).body.innerHTML)}},{key:"handleCloseMemberList",value:function(e){!e.detail&&this.at&&this.at.cancelTrigger(),this.memberListVisible=!1}},{key:"handleSwitchConversation",value:function(){this.handleCloseMemberList({}),this.checkContentLength()}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"render",value:function(){var e=this;this.locale=this.lang?Sn[this.lang]:Sn.zh_CN;var t=this.locale;return W(Xe,null,W("iframe",{class:"editor-content",contentEditable:"true",ref:function(t){return e.contentRef=t,e.contentRef}}),W("div",{class:"post-btn"},W("button",{disabled:!this.hasContent,onClick:this.postHandler},t.messageEdit.send)),W("member-list",{conversation:this.conversation,visible:this.memberListVisible,targetRect:this.targetRect,onSelectMember:this.handleSelectMember,onClose:this.handleCloseMemberList}))}}],[{key:"watchers",get:function(){return{value:["validateWatchData"],conversation:["validateConversationData"]}}},{key:"style",get:function(){return On}}]),n}(Et(HTMLElement)),Ln=".context-menu{font-size:2em;position:fixed;top:0;left:0;z-index:1;min-width:7em;background:#ffffff;-webkit-box-shadow:0px 0px 15px 3px rgb(100 102 109 / 19%);box-shadow:0px 0px 15px 3px rgb(100 102 109 / 19%);border-radius:0.5em}.context-menu ul{list-style:none;margin:0;padding:0}.context-menu li{list-style:none;line-height:2;text-align:center;background:#fff;height:3em;line-height:3em;cursor:pointer;padding:0 1em;color:#111f2c}.context-menu li:hover,.context-menu li.hover{background:#f2f8ff}",Rn=function(e){Ot(n,e);var t=Lt(n);function n(){var e;return Qt(this,n),e=t.call(this),e.__registerHost(),e.hide=be(jt(e),"hide",7),e.topStatusChange=be(jt(e),"topStatusChange",7),e.notificationStatusChange=be(jt(e),"notificationStatusChange",7),e["delete"]=be(jt(e),"delete",7),e.position={top:0,left:0},e.visible=!1,e.topStatus=!1,e.notificationStatus=!1,e.lang=gn.lang,e.handleHide=e.handleHide.bind(jt(e)),e.topStatusChangeHandler=e.topStatusChangeHandler.bind(jt(e)),e.notificationStatusHandler=e.notificationStatusHandler.bind(jt(e)),e.deleteHandler=e.deleteHandler.bind(jt(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(jt(e)),e}return Zt(n,[{key:"componentWillLoad",value:function(){document.body.addEventListener("mouseup",this.handleHide,!1),window.addEventListener("blur",this.handleHide,!1),gn.on(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){document.body.removeEventListener("mouseup",this.handleHide,!1),window.removeEventListener("blur",this.handleHide,!1)}},{key:"handleHide",value:function(e){0===e.button&&this.hide.emit()}},{key:"topStatusChangeHandler",value:function(){this.topStatusChange.emit(!this.topStatus)}},{key:"notificationStatusHandler",value:function(){this.notificationStatusChange.emit(!this.notificationStatus)}},{key:"deleteHandler",value:function(){this["delete"].emit()}},{key:"createCustomMenu",value:function(){var e=this;if(!this.customMenu||!this.conversation)return[];var t=[];return this.customMenu.forEach((function(n){var r=n.name(e.conversation);r&&t.push({name:r,callback:function(){return n.callback(e.conversation)}})})),t}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"render",value:function(){var e,t=this,n=this.createCustomMenu();this.locale=this.lang?Sn[this.lang]:Sn.zh_CN;var r=this.locale,i=document.documentElement.clientHeight,o=3;o+=n.length;var s=(null===(e=this.contextMenu)||void 0===e?void 0:e.childNodes[0].childNodes[0].clientHeight)*o||0,a=function(){return t.position?i-t.position.top<s?t.position.top-s:t.position.top:0};return W("div",{class:"context-menu",style:{"z-index":this.visible?"1":"-1",display:"block",opacity:this.visible?"1":"0",left:"".concat(this.position?this.position.left:0,"px"),top:"".concat(a(),"px")},ref:function(e){return t.contextMenu=e,t.contextMenu}},W("ul",null,W("li",{onClick:this.topStatusChangeHandler},this.topStatus?r.conversation.top:r.conversation.noTop),W("li",{onClick:this.notificationStatusHandler},this.notificationStatus?r.conversation.inform:r.conversation.noInform),W("li",{onClick:this.deleteHandler},r.conversation["delete"]),n.map((function(e){return W("li",{onClick:e.callback},e.name)}))))}}],[{key:"style",get:function(){return Ln}}]),n}(Et(HTMLElement)),jn={"/9j":{type:"image",suffix:"JPG"},iVB:{type:"image",suffix:"PNG"},Qk0:{type:"image",suffix:"BMP"},SUk:{type:"image",suffix:"TIFF"},JVB:{type:"image",suffix:"PDF"},UEs:{type:"image",suffix:"OFD"},IyF:{type:"audio",suffix:"AMR"}};function xn(e){if(e.startsWith("data:/")||e.startsWith("http"))return e;var t=e.substr(0,3);return jn[t]?"data:".concat(jn[t].type,"/").concat(jn[t].suffix.toLowerCase(),";base64,").concat(e):e}function kn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n=e.getFullYear(),r=e.getMonth()+1,i=e.getDate(),o=new Date("".concat(n,"/").concat(r,"/").concat(i)).getTime(),s=t.getFullYear(),a=t.getMonth()+1,c=t.getDate(),u=new Date("".concat(s,"/").concat(a,"/").concat(c)).getTime(),l=(o-u)/1e3/60/60/24;return l}function Un(e,t,n){if(!e)return null;var r=new Date(e),i=r.getFullYear(),o=r.getMonth()+1,s=r.getDate(),a="".concat(r.getHours());a.length<2&&(a="0".concat(a));var c="".concat(r.getMinutes());c.length<2&&(c="0".concat(c));var u=new Date,l=kn(r);if(-1===l){var f=n.conversation.yesterday;return"".concat(f)}return u.getFullYear()===i?u.toDateString()===r.toDateString()?"".concat(a,":").concat(c):"".concat(o,"/").concat(s):"zh_CN"===n.area?"".concat(i,"/").concat(o,"/").concat(s):"".concat(o,"/").concat(s,"/").concat(i)}function Pn(e){return e.replace(/<[^>]+>/g,"")}function zn(e){var t;return"object"===Nt(e)?Array.isArray(e)?(t=[],Object.keys(e).forEach((function(n){t.push(zn(e[n]))}))):null===e?t=null:e instanceof RegExp?t=e:(t={},Object.keys(e).forEach((function(n){t[n]=zn(e[n])}))):t=e,t}function Gn(e){var t=e,n=/(((^https?:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)$/g;return t=t.replace("<","<"),t=t.replace(">",">"),n.test(t)&&(t=t.replace(n,(function(e){var t="";return e.indexOf("http:")<0&&e.indexOf("https:")<0&&(t="//"),'<a target="_blank" class="url-wrap" href="'.concat(t).concat(e,'">').concat(e,"</a>")}))),t}var Bn='.conversation-item.top-item::after{content:" ";display:block;width:0;height:0;border-top:2em solid #4790ee;border-right:2em solid transparent;position:absolute;left:0;top:0}.conversation-item{height:10.4em;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;padding:0 2em 0 2em;position:relative;text-align:left}.conversation-item:hover{background:#f3f3f3}.conversation-item.hover{background:#f1f1f1}.conversation-item .user-avatar{width:6.4em;height:6.4em;margin:0 2em 0 0;position:relative}.avatar-image{background:#4790ee;border-radius:50%;width:6.4em;height:6.4em;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.conversation-item .user-avatar img{width:100%}.conversation-item .user-avatar .message-count{position:absolute;right:0;top:0;height:2em;line-height:2em;background-color:#ff4141;color:#fff;border-radius:1em;text-align:center;font-size:1.1em;min-width:2em;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 0.6em}.conversation-info{-ms-flex-positive:1;flex-grow:1;width:calc(100% - 10em)}.info-block{-ms-flex-positive:0;flex-grow:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;margin:0 0 0.6em;width:100%}.info-block:last-child{margin:0}.user-name{font-size:2.2em;height:1.091em;line-height:0.9em;font-weight:400;color:#111f2c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:49%}.latest-message{color:#a0a5ab;font-size:1.6em;line-height:1.6em;width:calc(100% - 2.2em);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.latest-message>div{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;font-size:1.25em;line-height:1.25em}.latest-message>div .ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;width:100%}.latest-message-ellipsis{width:100%}.last-time{color:#c7cbce;height:1.3333em;line-height:1.3333em;text-align:right;font-size:1.8em}.notification{height:2em;line-height:2em}.notification span{width:2em;height:2em;display:inline-block}.notification .disable{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjdweCIgaGVpZ2h0PSIyNnB4IiB2aWV3Qm94PSIwIDAgMjcgMjYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5YWN5omT5omwPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IjAxX+S8muivneWIl+ihqOamguiniCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTQwMS4wMDAwMDAsIC02MzguMDAwMDAwKSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPGcgaWQ9IuWFjeaJk+aJsCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNDAxLjQwMDAwMCwgNjM4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgeD0iMCIgeT0iMCIgd2lkdGg9IjI2IiBoZWlnaHQ9IjI2Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNy4zMTI1LDEyLjQ2ODUgTDE3LjYxOTUsMTguNjg3NSBMMTguNjg3NSwxOC42ODc1IEMxOS41ODQ5NjI3LDE4LjY4NzUgMjAuMzEyNSwxOS40MTUwMzczIDIwLjMxMjUsMjAuMzEyNSBDMjAuMzEyNSwyMS4yMDk5NjI3IDE5LjU4NDk2MjcsMjEuOTM3NSAxOC42ODc1LDIxLjkzNzUgTDYuNSwyMS45Mzc1IEM1LjYwMjUzNzI4LDIxLjkzNzUgNC44NzUsMjEuMjA5OTYyNyA0Ljg3NSwyMC4zMTI1IEM0Ljg3NSwxOS40MTUwMzczIDUuNjAyNTM3MjgsMTguNjg3NSA2LjUsMTguNjg3NSBMNy4zMTI1LDE4LjY4NzUgTDcuMzEyNSwxMi40Njg1IFogTTEyLjU5Mzc1LDQuMDYyNSBDMTMuMjY2ODQ3LDQuMDYyNSAxMy44MTI1LDQuNjA4MTUyOTYgMTMuODEyNSw1LjI4MTI1IEwxMy44MTI5ODE0LDUuODI4OTMzMzYgQzE2LjE0MTkzMjYsNi4zNzkzMDM1MyAxNy44NzUsOC40NzE2MzY5NyAxNy44NzUsMTAuOTY4NzUgTDE3Ljg3Mzk1NTQsMTQuOTYwNSBMMjIuMDU1OTU1NCwxNy40MjI1MjIxIEwyMS4yMjExOTk5LDE4Ljg5NjgyNzMgTDQuMTgwOTU1NDMsOC44NjQ5Mzk1MSBMNS4wMTU3MTA5Miw3LjM5MDYzNDM2IEw3LjcwMjgwMTc2LDguOTcyNTIwMjggQzguMzQwNzUxODksNy40MTEwOTUyMiA5LjcwNDY4NjA3LDYuMjIzMzQ3OTMgMTEuMzc1MDgyNiw1LjgyODgwMDExIEwxMS4zNzUsNS4yODEyNSBDMTEuMzc1LDQuNjA4MTUyOTYgMTEuOTIwNjUzLDQuMDYyNSAxMi41OTM3NSw0LjA2MjUgWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbD0iI0QxRDFEMSI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=);background-repeat:no-repeat;background-size:contain}.latest-message .fail{}.latest-message .sending::before,.latest-message .fail::before{content:" ";display:inline-block;background-size:contain;background-repeat:no-repeat;vertical-align:middle;width:1.3em;height:1.3em;margin:0 0.2em 0 0}.latest-message .sending::before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjdweCIgaGVpZ2h0PSIyNnB4IiB2aWV3Qm94PSIwIDAgMjcgMjYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5q2j5Zyo5Y+R6YCBPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IjAyX+WNleiBii3ljZXogYrlkJHkuIrmu5rliqjml7YtbG9hZGluZyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEwNC4wMDAwMDAsIC01MzQuMDAwMDAwKSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPGcgaWQ9Iue8lue7hOWkh+S7vS00IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjQwMDAwMCwgNDc1LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9Iuato+WcqOWPkemAgSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTA0LjAwMDAwMCwgNTkuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgeD0iMCIgeT0iMCIgd2lkdGg9IjI2IiBoZWlnaHQ9IjI2Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9Iue8lue7hC0yNSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMi4wMDAwMDAsIDQuMDAwMDAwKSIgZmlsbD0iI0Q4RDhEOCI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik05Ljg1NzE0Mjg2LDAgTDkuODU3MTQyODYsNC45MDkwOTA5MSBMMTUuNjA3MTQyOSw0LjkwOTA5MDkxIEwxNS42MDcxNDI5LDEzLjkwOTA5MDkgTDkuODU3MTQyODYsMTMuOTA5MDkwOSBMOS44NTcxNDI4NiwxOCBMMCw5LjAyNzU5MzU1IEw5Ljg1NzE0Mjg2LDAgWiBNMTkuNzE0Mjg1Nyw0LjkwOTA5MDkxIEwxOS43MTQyODU3LDEzLjkwOTA5MDkgTDE3LjI1LDEzLjkwOTA5MDkgTDE3LjI1LDQuOTA5MDkwOTEgTDE5LjcxNDI4NTcsNC45MDkwOTA5MSBaIE0yMyw0LjkwOTA5MDkxIEwyMywxMy45MDkwOTA5IEwyMS4zNTcxNDI5LDEzLjkwOTA5MDkgTDIxLjM1NzE0MjksNC45MDkwOTA5MSBMMjMsNC45MDkwOTA5MSBaIiBpZD0i5b2i54q257uT5ZCIIj48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.latest-message .fail::before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjVweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjUgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5oSf5Y+55Y+3PC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IjAyX+WNleiBii3ljZXogYrlkJHkuIrmu5rliqjml7YtbG9hZGluZyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEwNC4wMDAwMDAsIC02MzkuMDAwMDAwKSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPGcgaWQ9IuaEn+WPueWPtyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTA0LjQwMDAwMCwgNjM5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8ZyBpZD0i57yW57uELTI0IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxLjUwMDAwMCwgMS41MDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSLmpK3lnIblvaIiIGZpbGw9IiNGRjQxNDEiIGN4PSIxMC41IiBjeT0iMTAuNSIgcj0iMTAuNSI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgZmlsbD0iI0ZGRkZGRiIgeD0iOS43NSIgeT0iNS4yNSIgd2lkdGg9IjEuNSIgaGVpZ2h0PSI3LjUiPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSLmpK3lnIblvaIiIGZpbGw9IiNGRkZGRkYiIGN4PSIxMC41IiBjeT0iMTUiIHI9IjEiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.mentioned{color:red}.latest-message i{font-style:normal}',Yn=function(e){Ot(n,e);var t=Lt(n);function n(){var e;return Qt(this,n),e=t.call(this),e.__registerHost(),e.selectConversation=be(jt(e),"selectConversation",7),e.isHover=!1,e.draft="",e.lang=gn.lang,e.selectHandler=e.selectHandler.bind(jt(e)),e.handleSwitchConversation=e.handleSwitchConversation.bind(jt(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(jt(e)),e.handleInfoChanged=e.handleInfoChanged.bind(jt(e)),e}return Zt(n,[{key:"componentWillLoad",value:function(){gn.on(Tt.SWITCH_CONVERSATION,this.handleSwitchConversation),gn.off(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged),gn.on(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged),gn.on(Tt.CONVERSATION_INFO_CHANGED,this.handleInfoChanged),gn.on(Tt.GROUP_INFO_CHANGED,this.handleInfoChanged)}},{key:"componentDidUpdate",value:function(){gn.off(Tt.SWITCH_CONVERSATION,this.handleSwitchConversation),gn.on(Tt.SWITCH_CONVERSATION,this.handleSwitchConversation),gn.off(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged),gn.on(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){gn.off(Tt.SWITCH_CONVERSATION,this.handleSwitchConversation),gn.off(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged),gn.off(Tt.GROUP_INFO_CHANGED,this.handleInfoChanged),gn.off(Tt.CONVERSATION_INFO_CHANGED,this.handleInfoChanged)}},{key:"handleInfoChanged",value:function(){var e=this,t=this.data.conversation.latestMessage||null;if(t.messageType===_t["h"].RECALL_MESSAGE_TYPE){var n=this.locale.conversation.recall,r=t.messageDirection===_t["g"].SEND,i="";t.conversationType!==_t["a"].PRIVATE||r?t.conversationType===_t["a"].GROUP&&gn.getGroupMemberProfile({targetId:t.targetId,conversationType:_t["a"].GROUP,channelId:t.channelId},t.senderUserId).then((function(o){r||(i=o&&(o.groupNickname||o.name)||t.senderUserId),e.nameRef.innerText="".concat(i," ").concat(n)})):gn.getConversationProfile({targetId:t.targetId,conversationType:_t["a"].PRIVATE,channelId:t.channelId}).then((function(r){i=r?r.name:t.senderUserId,e.nameRef.innerText="".concat(i," ").concat(n)}))}}},{key:"handleSwitchConversation",value:function(){var e=this;this.locale=this.lang?Sn[this.lang]:Sn.zh_CN,gn.currentConversation&&Jt(gn.currentConversation,this.data.conversation)?this.draft="":Object(_t["x"])(this.data.conversation).then((function(t){if(0===t.code&&t.data){var n=document.createElement("div");n.innerHTML=t.data;var r="[".concat(e.locale.conversation.draft,"]");e.draft=W("span",null,W("i",{style:{color:"red"}},r," ")," ",n.innerText)}else e.draft=""}))}},{key:"getLatestMessage",value:function(e,t){var n=this;if(!e)return"";var r="",i=0!==this.data.conversation.unreadMessageCount&&(!gn.currentConversation||!Jt(gn.currentConversation,this.data.conversation));if(i){var o="[".concat(t.conversation.atMe,"]");this.data.conversation.hasMentioned&&(r=W("span",{class:"mentioned"},o))}var s="",a="";e.messageDirection===_t["g"].SEND&&(e.messageUId.startsWith("fail_")?a="fail":e.messageUId.startsWith("sending_")?a="sending":e.conversationType===_t["a"].PRIVATE&&"polyfill"!==e.messageType&&(s=e.receivedStatus===_t["j"].UNREAD?"[".concat(t.conversation.unread,"]"):"[".concat(t.conversation.read,"]")));var c,u,l,f="",h=t.conversation.recall,d=t.conversation.you;switch(e.messageType){case _t["h"].TEXT:f=e.content.content;break;case _t["h"].FILE:c="[".concat(t.conversation.file,"]"),f=c;break;case _t["h"].IMAGE:c="[".concat(t.conversation.img,"]"),f=c;break;case _t["h"].LOCATION:c="[".concat(t.conversation.location,"]"),f=c;break;case _t["h"].SIGHT:c="[".concat(t.conversation.video,"]"),f=c;break;case _t["h"].HQ_VOICE:c="[".concat(t.conversation.audio,"]"),f=c;break;case _t["h"].REFERENCE:c="[".concat(t.conversation.quote,"]"),f=c;break;case _t["h"].RECALL_MESSAGE_TYPE:u=e.messageDirection===_t["g"].SEND,l=u?d:"",e.conversationType!==_t["a"].PRIVATE||u?e.conversationType===_t["a"].GROUP&&gn.getGroupMemberProfile({targetId:e.targetId,conversationType:_t["a"].GROUP,channelId:e.channelId},e.senderUserId).then((function(t){u||(l=t&&(t.groupNickname||t.name)||e.senderUserId),n.nameRef.innerText="".concat(l," ").concat(h)})):gn.getConversationProfile({targetId:e.targetId,conversationType:_t["a"].PRIVATE,channelId:e.channelId}).then((function(t){l=t?t.name:e.senderUserId,n.nameRef.innerText="".concat(l," ").concat(h)})),f=l+h,s="";break;default:gn.isCustomLastMessage(e)&&(f=gn.createCustomLastMessageDom(e)?gn.createCustomLastMessageDom(e):"")}return f=f.replace(/[\r\n]/g,""),this.nameRef&&(this.nameRef.innerText=" ".concat(f)),W("div",{class:"".concat(a," latest-message-ellipsis")},W("span",{class:"ellipsis"},r,s,W("span",{ref:function(e){return n.nameRef=e,n.nameRef}}," ".concat(f))))}},{key:"selectHandler",value:function(e){2!==e.button&&this.selectConversation.emit({conversationType:this.data.conversation.conversationType,targetId:this.data.conversation.targetId,channelId:this.data.conversation.channelId})}},{key:"conversationFormatTime",value:function(e,t){return e?Un(e.sentTime,{hour:":",minute:""},t):null}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang,this.handleSwitchConversation()}},{key:"render",value:function(){var e,t,n;this.locale=this.lang?Sn[this.lang]:Sn.zh_CN;var r=this.data,i=this.isHover,o=this.locale;return W("div",{class:"conversation-item ".concat(r.conversation.isTop?"top-item":"untop-item").concat(i?" hover":""),key:"".concat(r.conversation.targetId,"&&").concat(r.conversation.conversationType,"&&").concat(r.conversation.channelId),onMouseUp:this.selectHandler},W("div",{class:"user-avatar"},W("div",{class:"avatar-image"},null!==(e=r.profile)&&void 0!==e&&e.portraitUri?W("img",{src:r.profile.portraitUri}):null),r.conversation.unreadMessageCount?W("span",{class:"message-count"},r.conversation.unreadMessageCount):null),W("div",{class:"conversation-info"},W("div",{class:"info-block"},W("div",{class:"user-name"},W("span",null,null!==(t=r.profile)&&void 0!==t&&t.name?null===(n=r.profile)||void 0===n?void 0:n.name:r.conversation.targetId)),W("div",{class:"last-time"},this.conversationFormatTime(r.conversation.latestMessage,o))),W("div",{class:"info-block"},W("div",{class:"latest-message"},W("div",null,this.draft?this.draft:this.getLatestMessage(r.conversation.latestMessage,o))),W("div",{class:"notification"},r.conversation.notificationStatus===_t["i"].OPEN?W("span",{class:"disable"}):null))))}}],[{key:"style",get:function(){return Bn}}]),n}(Et(HTMLElement)),Hn=function(e,t){return Hn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Hn(e,t)};function $n(e,t){function n(){this.constructor=e}Hn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Fn=function(){return Fn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Fn.apply(this,arguments)};function Qn(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}var Vn=[{sourceKey:"scroller.scrollBehaviorX.currentPos",key:"x"},{sourceKey:"scroller.scrollBehaviorY.currentPos",key:"y"},{sourceKey:"scroller.scrollBehaviorX.hasScroll",key:"hasHorizontalScroll"},{sourceKey:"scroller.scrollBehaviorY.hasScroll",key:"hasVerticalScroll"},{sourceKey:"scroller.scrollBehaviorX.contentSize",key:"scrollerWidth"},{sourceKey:"scroller.scrollBehaviorY.contentSize",key:"scrollerHeight"},{sourceKey:"scroller.scrollBehaviorX.maxScrollPos",key:"maxScrollX"},{sourceKey:"scroller.scrollBehaviorY.maxScrollPos",key:"maxScrollY"},{sourceKey:"scroller.scrollBehaviorX.minScrollPos",key:"minScrollX"},{sourceKey:"scroller.scrollBehaviorY.minScrollPos",key:"minScrollY"},{sourceKey:"scroller.scrollBehaviorX.movingDirection",key:"movingDirectionX"},{sourceKey:"scroller.scrollBehaviorY.movingDirection",key:"movingDirectionY"},{sourceKey:"scroller.scrollBehaviorX.direction",key:"directionX"},{sourceKey:"scroller.scrollBehaviorY.direction",key:"directionY"},{sourceKey:"scroller.actions.enabled",key:"enabled"},{sourceKey:"scroller.animater.pending",key:"pending"},{sourceKey:"scroller.animater.stop",key:"stop"},{sourceKey:"scroller.scrollTo",key:"scrollTo"},{sourceKey:"scroller.scrollBy",key:"scrollBy"},{sourceKey:"scroller.scrollToElement",key:"scrollToElement"},{sourceKey:"scroller.resetPosition",key:"resetPosition"}];function Zn(e){console.error("[BScroll warn]: "+e)}var Wn="undefined"!==typeof window,Kn=Wn&&navigator.userAgent.toLowerCase(),qn=!(!Kn||!/wechatdevtools/.test(Kn)),Jn=Kn&&Kn.indexOf("android")>0,Xn=function(){if("string"===typeof Kn){var e=/os (\d\d?_\d(_\d)?)/,t=e.exec(Kn);if(!t)return!1;var n=t[1].split("_").map((function(e){return parseInt(e,10)}));return!!(13===n[0]&&n[1]>=4)}return!1}(),er=!1;if(Wn){var tr="test-passive";try{var nr={};Object.defineProperty(nr,"passive",{get:function(){er=!0}}),window.addEventListener(tr,(function(){}),nr)}catch(cs){}}function rr(){return window.performance&&window.performance.now&&window.performance.timing?window.performance.now()+window.performance.timing.navigationStart:+new Date}var ir=function(e,t){for(var n in t)e[n]=t[n];return e};function or(e){return void 0===e||null===e}function sr(e,t,n){return e<t?t:e>n?n:e}var ar=Wn&&document.createElement("div").style,cr=function(){if(!Wn)return!1;for(var e=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,n=e;t<n.length;t++){var r=n[t];if(void 0!==ar[r.value])return r.key}return!1}();function ur(e){return!1===cr?e:"standard"===cr?"transitionEnd"===e?"transitionend":e:cr+e.charAt(0).toUpperCase()+e.substr(1)}function lr(e){return"string"===typeof e?document.querySelector(e):e}function fr(e,t,n,r){var i=er?{passive:!1,capture:!!r}:!!r;e.addEventListener(t,n,i)}function hr(e,t,n,r){e.removeEventListener(t,n,{capture:!!r})}function dr(e){var t=0,n=0;while(e)t-=e.offsetLeft,n-=e.offsetTop,e=e.offsetParent;return{left:t,top:n}}cr&&"standard"!==cr&&cr.toLowerCase();var pr=ur("transform"),gr=ur("transition"),vr=Wn&&ur("perspective")in ar,yr=Wn&&("ontouchstart"in window||qn),mr=Wn&&gr in ar,Ir={transform:pr,transition:gr,transitionTimingFunction:ur("transitionTimingFunction"),transitionDuration:ur("transitionDuration"),transitionDelay:ur("transitionDelay"),transformOrigin:ur("transformOrigin"),transitionEnd:ur("transitionEnd"),transitionProperty:ur("transitionProperty")},Mr={touchstart:1,touchmove:1,touchend:1,touchcancel:1,mousedown:2,mousemove:2,mouseup:2};function Cr(e){if(e instanceof window.SVGElement){var t=e.getBoundingClientRect();return{top:t.top,left:t.left,width:t.width,height:t.height}}return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}}function Tr(e,t){for(var n in t)if(t[n].test(e[n]))return!0;return!1}var Ar=Tr;function _r(e,t){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.pageX=e.pageX,n.pageY=e.pageY,e.target.dispatchEvent(n)}function br(e,t){var n;void 0===t&&(t="click"),"mouseup"===e.type?n=e:"touchend"!==e.type&&"touchcancel"!==e.type||(n=e.changedTouches[0]);var r,i={};n&&(i.screenX=n.screenX||0,i.screenY=n.screenY||0,i.clientX=n.clientX||0,i.clientY=n.clientY||0);var o=!0,s=!0,a=e.ctrlKey,c=e.shiftKey,u=e.altKey,l=e.metaKey,f={ctrlKey:a,shiftKey:c,altKey:u,metaKey:l};if("undefined"!==typeof MouseEvent)try{r=new MouseEvent(t,ir(Fn({bubbles:o,cancelable:s},f),i))}catch(e){h()}else h();function h(){r=document.createEvent("Event"),r.initEvent(t,o,s),ir(r,i)}r.forwardedTouchEvent=!0,r._constructed=!0,e.target.dispatchEvent(r)}function Nr(e){br(e,"dblclick")}var Er={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(e){return 1+--e*e*e*e*e}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(e){return e*(2-e)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(e){return 1- --e*e*e*e}}},wr=1e3/60,Sr=Wn&&window;function Or(){}var Dr=function(){return Wn?Sr.requestAnimationFrame||Sr.webkitRequestAnimationFrame||Sr.mozRequestAnimationFrame||Sr.oRequestAnimationFrame||function(e){return window.setTimeout(e,e.interval||wr)}:Or}(),Lr=function(){return Wn?Sr.cancelAnimationFrame||Sr.webkitCancelAnimationFrame||Sr.mozCancelAnimationFrame||Sr.oCancelAnimationFrame||function(e){window.clearTimeout(e)}:Or}(),Rr=function(e){},jr={enumerable:!0,configurable:!0,get:Rr,set:Rr},xr=function(e,t){for(var n=t.split("."),r=0;r<n.length-1;r++)if(e=e[n[r]],"object"!==Nt(e)||!e)return;var i=n.pop();return"function"===typeof e[i]?function(){return e[i].apply(e,arguments)}:e[i]},kr=function(e,t,n){for(var r,i=t.split("."),o=0;o<i.length-1;o++)r=i[o],e[r]||(e[r]={}),e=e[r];e[i.pop()]=n};function Ur(e,t,n){jr.get=function(){return xr(this,t)},jr.set=function(e){kr(this,t,e)},Object.defineProperty(e,n,jr)}var Pr=function(){function e(e){this.events={},this.eventTypes={},this.registerType(e)}return e.prototype.on=function(e,t,n){return void 0===n&&(n=this),this.hasType(e),this.events[e]||(this.events[e]=[]),this.events[e].push([t,n]),this},e.prototype.once=function(e,t,n){var r=this;void 0===n&&(n=this),this.hasType(e);var i=function i(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];r.off(e,i);var a=t.apply(n,o);if(!0===a)return a};return i.fn=t,this.on(e,i),this},e.prototype.off=function(e,t){if(!e&&!t)return this.events={},this;if(e){if(this.hasType(e),!t)return this.events[e]=[],this;var n=this.events[e];if(!n)return this;var r=n.length;while(r--)(n[r][0]===t||n[r][0]&&n[r][0].fn===t)&&n.splice(r,1);return this}},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.hasType(e);var r=this.events[e];if(r)for(var i,o=r.length,s=Qn(r),a=0;a<o;a++){var c=s[a],u=c[0],l=c[1];if(u&&(i=u.apply(l,t),!0===i))return i}},e.prototype.registerType=function(e){var t=this;e.forEach((function(e){t.eventTypes[e]=e}))},e.prototype.destroy=function(){this.events={},this.eventTypes={}},e.prototype.hasType=function(e){var t=this.eventTypes,n=t[e]===e;n||Zn('EventEmitter has used unknown event type: "'+e+'", should be oneof ['+Object.keys(t).map((function(e){return JSON.stringify(e)}))+"]")},e}(),zr=function(){function e(e,t){this.wrapper=e,this.events=t,this.addDOMEvents()}return e.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},e.prototype.addDOMEvents=function(){this.handleDOMEvents(fr)},e.prototype.removeDOMEvents=function(){this.handleDOMEvents(hr)},e.prototype.handleDOMEvents=function(e){var t=this,n=this.wrapper;this.events.forEach((function(r){e(n,r.name,t,!!r.capture)}))},e.prototype.handleEvent=function(e){var t=e.type;this.events.some((function(n){return n.name===t&&(n.handler(e),!0)}))},e}(),Gr=function(){function e(){}return e}(),Br=function(e){function t(){var t=e.call(this)||this;return t.startX=0,t.startY=0,t.scrollX=!1,t.scrollY=!0,t.freeScroll=!1,t.directionLockThreshold=0,t.eventPassthrough="",t.click=!1,t.dblclick=!1,t.tap="",t.bounce={top:!0,bottom:!0,left:!0,right:!0},t.bounceTime=800,t.momentum=!0,t.momentumLimitTime=300,t.momentumLimitDistance=15,t.swipeTime=2500,t.swipeBounceTime=500,t.deceleration=.0015,t.flickLimitTime=200,t.flickLimitDistance=100,t.resizePolling=60,t.probeType=0,t.stopPropagation=!1,t.preventDefault=!0,t.preventDefaultException={tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},t.tagException={tagName:/^TEXTAREA$/},t.HWCompositing=!0,t.useTransition=!0,t.bindToWrapper=!1,t.bindToTarget=!1,t.disableMouse=yr,t.disableTouch=!yr,t.autoBlur=!0,t.autoEndDistance=5,t.outOfBoundaryDampingFactor=1/3,t.specifiedIndexAsContent=0,t.quadrant=1,t}return $n(t,e),t.prototype.merge=function(e){if(!e)return this;for(var t in e)"bounce"!==t?this[t]=e[t]:this.bounce=this.resolveBounce(e[t]);return this},t.prototype.process=function(){return this.translateZ=this.HWCompositing&&vr?" translateZ(1px)":"",this.useTransition=this.useTransition&&mr,this.preventDefault=!this.eventPassthrough&&this.preventDefault,this.scrollX="horizontal"!==this.eventPassthrough&&this.scrollX,this.scrollY="vertical"!==this.eventPassthrough&&this.scrollY,this.freeScroll=this.freeScroll&&!this.eventPassthrough,this.scrollX=!!this.freeScroll||this.scrollX,this.scrollY=!!this.freeScroll||this.scrollY,this.directionLockThreshold=this.eventPassthrough?0:this.directionLockThreshold,this},t.prototype.resolveBounce=function(e){var t,n={top:!0,right:!0,bottom:!0,left:!0},r={top:!1,right:!1,bottom:!1,left:!1};return t="object"===Nt(e)?ir(n,e):e?n:r,t},t}(Gr),Yr=function(){function e(e,t){this.wrapper=e,this.options=t,this.hooks=new Pr(["beforeStart","start","move","end","click"]),this.handleDOMEvents()}return e.prototype.handleDOMEvents=function(){var e=this.options,t=e.bindToWrapper,n=e.disableMouse,r=e.disableTouch,i=e.click,o=this.wrapper,s=t?o:window,a=[],c=[],u=!r,l=!n;i&&a.push({name:"click",handler:this.click.bind(this),capture:!0}),u&&(a.push({name:"touchstart",handler:this.start.bind(this)}),c.push({name:"touchmove",handler:this.move.bind(this)},{name:"touchend",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)})),l&&(a.push({name:"mousedown",handler:this.start.bind(this)}),c.push({name:"mousemove",handler:this.move.bind(this)},{name:"mouseup",handler:this.end.bind(this)})),this.wrapperEventRegister=new zr(o,a),this.targetEventRegister=new zr(s,c)},e.prototype.beforeHandler=function(e,t){var n=this.options,r=n.preventDefault,i=n.stopPropagation,o=n.preventDefaultException,s={start:function(){return r&&!Tr(e.target,o)},end:function(){return r&&!Tr(e.target,o)},move:function(){return r}};s[t]()&&e.preventDefault(),i&&e.stopPropagation()},e.prototype.setInitiated=function(e){void 0===e&&(e=0),this.initiated=e},e.prototype.start=function(e){var t=Mr[e.type];if(!this.initiated||this.initiated===t)if(this.setInitiated(t),Ar(e.target,this.options.tagException))this.setInitiated();else if((2!==t||0===e.button)&&!this.hooks.trigger(this.hooks.eventTypes.beforeStart,e)){this.beforeHandler(e,"start");var n=e.touches?e.touches[0]:e;this.pointX=n.pageX,this.pointY=n.pageY,this.hooks.trigger(this.hooks.eventTypes.start,e)}},e.prototype.move=function(e){if(Mr[e.type]===this.initiated){this.beforeHandler(e,"move");var t=e.touches?e.touches[0]:e,n=t.pageX-this.pointX,r=t.pageY-this.pointY;if(this.pointX=t.pageX,this.pointY=t.pageY,!this.hooks.trigger(this.hooks.eventTypes.move,{deltaX:n,deltaY:r,e:e})){var i=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,o=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,s=this.pointX-i,a=this.pointY-o,c=this.options.autoEndDistance;(s>document.documentElement.clientWidth-c||a>document.documentElement.clientHeight-c||s<c||a<c)&&this.end(e)}}},e.prototype.end=function(e){Mr[e.type]===this.initiated&&(this.setInitiated(),this.beforeHandler(e,"end"),this.hooks.trigger(this.hooks.eventTypes.end,e))},e.prototype.click=function(e){this.hooks.trigger(this.hooks.eventTypes.click,e)},e.prototype.setContent=function(e){e!==this.wrapper&&(this.wrapper=e,this.rebindDOMEvents())},e.prototype.rebindDOMEvents=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.handleDOMEvents()},e.prototype.destroy=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.hooks.destroy()},e}(),Hr={x:["translateX","px"],y:["translateY","px"]},$r=function(){function e(e){this.setContent(e),this.hooks=new Pr(["beforeTranslate","translate"])}return e.prototype.getComputedPosition=function(){var e=window.getComputedStyle(this.content,null),t=e[Ir.transform].split(")")[0].split(", "),n=+(t[12]||t[4])||0,r=+(t[13]||t[5])||0;return{x:n,y:r}},e.prototype.translate=function(e){var t=[];Object.keys(e).forEach((function(n){if(Hr[n]){var r=Hr[n][0];if(r){var i=Hr[n][1],o=e[n];t.push(r+"("+o+i+")")}}})),this.hooks.trigger(this.hooks.eventTypes.beforeTranslate,t,e),this.style[Ir.transform]=t.join(" "),this.hooks.trigger(this.hooks.eventTypes.translate,e)},e.prototype.setContent=function(e){this.content!==e&&(this.content=e,this.style=e.style)},e.prototype.destroy=function(){this.hooks.destroy()},e}(),Fr=function(){function e(e,t,n){this.translater=t,this.options=n,this.timer=0,this.hooks=new Pr(["move","end","beforeForceStop","forceStop","callStop","time","timeFunction"]),this.setContent(e)}return e.prototype.translate=function(e){this.translater.translate(e)},e.prototype.setPending=function(e){this.pending=e},e.prototype.setForceStopped=function(e){this.forceStopped=e},e.prototype.setCallStop=function(e){this.callStopWhenPending=e},e.prototype.setContent=function(e){this.content!==e&&(this.content=e,this.style=e.style,this.stop())},e.prototype.clearTimer=function(){this.timer&&(Lr(this.timer),this.timer=0)},e.prototype.destroy=function(){this.hooks.destroy(),Lr(this.timer)},e}(),Qr=function(e,t,n,r){var i=function(e,t){var n=e-t,r=n>0?-1:n<0?1:0;return r},o=i(t.x,e.x),s=i(t.y,e.y),a=n.x-r.x,c=n.y-r.y;return o*a<=0&&s*c<=0},Vr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $n(t,e),t.prototype.startProbe=function(e,t){var n=this,r=e,i=function i(){var o=n.translater.getComputedPosition();Qr(e,t,o,r)&&n.hooks.trigger(n.hooks.eventTypes.move,o),n.pending||(n.callStopWhenPending?n.callStopWhenPending=!1:n.hooks.trigger(n.hooks.eventTypes.end,o)),r=o,n.pending&&(n.timer=Dr(i))};this.callStopWhenPending&&this.setCallStop(!1),Lr(this.timer),i()},t.prototype.transitionTime=function(e){void 0===e&&(e=0),this.style[Ir.transitionDuration]=e+"ms",this.hooks.trigger(this.hooks.eventTypes.time,e)},t.prototype.transitionTimingFunction=function(e){this.style[Ir.transitionTimingFunction]=e,this.hooks.trigger(this.hooks.eventTypes.timeFunction,e)},t.prototype.transitionProperty=function(){this.style[Ir.transitionProperty]=Ir.transform},t.prototype.move=function(e,t,n,r){this.setPending(n>0),this.transitionTimingFunction(r),this.transitionProperty(),this.transitionTime(n),this.translate(t);var i=3===this.options.probeType;n&&i&&this.startProbe(e,t),n||(this._reflow=this.content.offsetHeight,i&&this.hooks.trigger(this.hooks.eventTypes.move,t),this.hooks.trigger(this.hooks.eventTypes.end,t))},t.prototype.doStop=function(){var e=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),e){this.setPending(!1),Lr(this.timer);var t=this.translater.getComputedPosition(),n=t.x,r=t.y;this.transitionTime(),this.translate({x:n,y:r}),this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,{x:n,y:r})}return e},t.prototype.stop=function(){var e=this.doStop();e&&this.hooks.trigger(this.hooks.eventTypes.callStop)},t}(Fr),Zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $n(t,e),t.prototype.move=function(e,t,n,r){if(!n)return this.translate(t),3===this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.move,t),void this.hooks.trigger(this.hooks.eventTypes.end,t);this.animate(e,t,n,r)},t.prototype.animate=function(e,t,n,r){var i=this,o=rr(),s=o+n,a=3===this.options.probeType,c=function c(){var u=rr();if(u>=s)return i.translate(t),a&&i.hooks.trigger(i.hooks.eventTypes.move,t),void i.hooks.trigger(i.hooks.eventTypes.end,t);u=(u-o)/n;var l=r(u),f={};Object.keys(t).forEach((function(n){var r=e[n],i=t[n];f[n]=(i-r)*l+r})),i.translate(f),a&&i.hooks.trigger(i.hooks.eventTypes.move,f),i.pending&&(i.timer=Dr(c)),i.pending||(i.callStopWhenPending?i.callStopWhenPending=!1:i.hooks.trigger(i.hooks.eventTypes.end,t))};this.setPending(!0),this.callStopWhenPending&&this.setCallStop(!1),Lr(this.timer),c()},t.prototype.doStop=function(){var e=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),e){this.setPending(!1),Lr(this.timer);var t=this.translater.getComputedPosition();this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,t)}return e},t.prototype.stop=function(){var e=this.doStop();e&&this.hooks.trigger(this.hooks.eventTypes.callStop)},t}(Fr);function Wr(e,t,n){var r=n.useTransition,i={};return Object.defineProperty(i,"probeType",{enumerable:!0,configurable:!1,get:function(){return n.probeType}}),r?new Vr(e,t,i):new Zr(e,t,i)}var Kr,qr,Jr,Xr,ei=function(){function e(e,t,n){this.wrapper=e,this.options=n,this.hooks=new Pr(["beforeComputeBoundary","computeBoundary","momentum","end","ignoreHasScroll"]),this.refresh(t)}return e.prototype.start=function(){this.dist=0,this.setMovingDirection(0),this.setDirection(0)},e.prototype.move=function(e){return e=this.hasScroll?e:0,this.setMovingDirection(e),this.performDampingAlgorithm(e,this.options.outOfBoundaryDampingFactor)},e.prototype.setMovingDirection=function(e){this.movingDirection=e>0?-1:e<0?1:0},e.prototype.setDirection=function(e){this.direction=e>0?-1:e<0?1:0},e.prototype.performDampingAlgorithm=function(e,t){var n=this.currentPos+e;return(n>this.minScrollPos||n<this.maxScrollPos)&&(n=n>this.minScrollPos&&this.options.bounces[0]||n<this.maxScrollPos&&this.options.bounces[1]?this.currentPos+e*t:n>this.minScrollPos?this.minScrollPos:this.maxScrollPos),n},e.prototype.end=function(e){var t={duration:0},n=Math.abs(this.currentPos-this.startPos);if(this.options.momentum&&e<this.options.momentumLimitTime&&n>this.options.momentumLimitDistance){var r=-1===this.direction&&this.options.bounces[0]||1===this.direction&&this.options.bounces[1]?this.wrapperSize:0;t=this.hasScroll?this.momentum(this.currentPos,this.startPos,e,this.maxScrollPos,this.minScrollPos,r,this.options):{destination:this.currentPos,duration:0}}else this.hooks.trigger(this.hooks.eventTypes.end,t);return t},e.prototype.momentum=function(e,t,n,r,i,o,s){void 0===s&&(s=this.options);var a=e-t,c=Math.abs(a)/n,u=s.deceleration,l=s.swipeBounceTime,f=s.swipeTime,h=Math.min(f,2*c/u),d={destination:e+c*c/u*(a<0?-1:1),duration:h,rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,d,a),d.destination<r?(d.destination=o?Math.max(r-o/4,r-o/d.rate*c):r,d.duration=l):d.destination>i&&(d.destination=o?Math.min(i+o/4,i+o/d.rate*c):i,d.duration=l),d.destination=Math.round(d.destination),d},e.prototype.updateDirection=function(){var e=this.currentPos-this.absStartPos;this.setDirection(e)},e.prototype.refresh=function(e){var t=this.options.rect,n=t.size,r=t.position,i="static"===window.getComputedStyle(this.wrapper,null).position,o=Cr(this.wrapper);this.wrapperSize=this.wrapper["width"===n?"clientWidth":"clientHeight"],this.setContent(e);var s=Cr(this.content);this.contentSize=s[n],this.relativeOffset=s[r],i&&(this.relativeOffset-=o[r]),this.computeBoundary(),this.setDirection(0)},e.prototype.setContent=function(e){e!==this.content&&(this.content=e,this.resetState())},e.prototype.resetState=function(){this.currentPos=0,this.startPos=0,this.dist=0,this.setDirection(0),this.setMovingDirection(0),this.resetStartPos()},e.prototype.computeBoundary=function(){this.hooks.trigger(this.hooks.eventTypes.beforeComputeBoundary);var e={minScrollPos:0,maxScrollPos:this.wrapperSize-this.contentSize};e.maxScrollPos<0&&(e.maxScrollPos-=this.relativeOffset,0===this.options.specifiedIndexAsContent&&(e.minScrollPos=-this.relativeOffset)),this.hooks.trigger(this.hooks.eventTypes.computeBoundary,e),this.minScrollPos=e.minScrollPos,this.maxScrollPos=e.maxScrollPos,this.hasScroll=this.options.scrollable&&this.maxScrollPos<this.minScrollPos,!this.hasScroll&&this.minScrollPos<this.maxScrollPos&&(this.maxScrollPos=this.minScrollPos,this.contentSize=this.wrapperSize)},e.prototype.updatePosition=function(e){this.currentPos=e},e.prototype.getCurrentPos=function(){return this.currentPos},e.prototype.checkInBoundary=function(){var e=this.adjustPosition(this.currentPos),t=e===this.getCurrentPos();return{position:e,inBoundary:t}},e.prototype.adjustPosition=function(e){return this.hasScroll||this.hooks.trigger(this.hooks.eventTypes.ignoreHasScroll)?e>this.minScrollPos?e=this.minScrollPos:e<this.maxScrollPos&&(e=this.maxScrollPos):e=this.minScrollPos,e},e.prototype.updateStartPos=function(){this.startPos=this.currentPos},e.prototype.updateAbsStartPos=function(){this.absStartPos=this.currentPos},e.prototype.resetStartPos=function(){this.updateStartPos(),this.updateAbsStartPos()},e.prototype.getAbsDist=function(e){return this.dist+=e,Math.abs(this.dist)},e.prototype.destroy=function(){this.hooks.destroy()},e}(),ti=(Kr={},Kr["yes"]=function(e){return!0},Kr["no"]=function(e){return e.preventDefault(),!1},Kr),ni=(qr={},qr["horizontal"]=(Jr={},Jr["yes"]="horizontal",Jr["no"]="vertical",Jr),qr["vertical"]=(Xr={},Xr["yes"]="vertical",Xr["no"]="horizontal",Xr),qr),ri=function(){function e(e,t,n){this.directionLockThreshold=e,this.freeScroll=t,this.eventPassthrough=n,this.reset()}return e.prototype.reset=function(){this.directionLocked=""},e.prototype.checkMovingDirection=function(e,t,n){return this.computeDirectionLock(e,t),this.handleEventPassthrough(n)},e.prototype.adjustDelta=function(e,t){return"horizontal"===this.directionLocked?t=0:"vertical"===this.directionLocked&&(e=0),{deltaX:e,deltaY:t}},e.prototype.computeDirectionLock=function(e,t){""!==this.directionLocked||this.freeScroll||(e>t+this.directionLockThreshold?this.directionLocked="horizontal":t>=e+this.directionLockThreshold?this.directionLocked="vertical":this.directionLocked="none")},e.prototype.handleEventPassthrough=function(e){var t=ni[this.directionLocked];if(t){if(this.eventPassthrough===t["yes"])return ti["yes"](e);if(this.eventPassthrough===t["no"])return ti["no"](e)}return!1},e}(),ii=function(e,t,n){return 2===n?[t,-e]:3===n?[-e,-t]:4===n?[-t,e]:[e,t]},oi=function(){function e(e,t,n,r,i){this.hooks=new Pr(["start","beforeMove","scrollStart","scroll","beforeEnd","end","scrollEnd","contentNotMoved","detectMovingDirection","coordinateTransformation"]),this.scrollBehaviorX=e,this.scrollBehaviorY=t,this.actionsHandler=n,this.animater=r,this.options=i,this.directionLockAction=new ri(i.directionLockThreshold,i.freeScroll,i.eventPassthrough),this.enabled=!0,this.bindActionsHandler()}return e.prototype.bindActionsHandler=function(){var e=this;this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start,(function(t){return!e.enabled||e.handleStart(t)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move,(function(t){var n=t.deltaX,r=t.deltaY,i=t.e;if(!e.enabled)return!0;var o=ii(n,r,e.options.quadrant),s=o[0],a=o[1],c={deltaX:s,deltaY:a};return e.hooks.trigger(e.hooks.eventTypes.coordinateTransformation,c),e.handleMove(c.deltaX,c.deltaY,i)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end,(function(t){return!e.enabled||e.handleEnd(t)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click,(function(t){e.enabled&&!t._constructed&&e.handleClick(t)}))},e.prototype.handleStart=function(e){var t=rr();this.fingerMoved=!1,this.contentMoved=!1,this.startTime=t,this.directionLockAction.reset(),this.scrollBehaviorX.start(),this.scrollBehaviorY.start(),this.animater.doStop(),this.scrollBehaviorX.resetStartPos(),this.scrollBehaviorY.resetStartPos(),this.hooks.trigger(this.hooks.eventTypes.start,e)},e.prototype.handleMove=function(e,t,n){if(!this.hooks.trigger(this.hooks.eventTypes.beforeMove,n)){var r=this.scrollBehaviorX.getAbsDist(e),i=this.scrollBehaviorY.getAbsDist(t),o=rr();if(this.checkMomentum(r,i,o))return!0;if(this.directionLockAction.checkMovingDirection(r,i,n))return this.actionsHandler.setInitiated(),!0;var s=this.directionLockAction.adjustDelta(e,t),a=this.scrollBehaviorX.getCurrentPos(),c=this.scrollBehaviorX.move(s.deltaX),u=this.scrollBehaviorY.getCurrentPos(),l=this.scrollBehaviorY.move(s.deltaY);if(!this.hooks.trigger(this.hooks.eventTypes.detectMovingDirection)){this.fingerMoved||(this.fingerMoved=!0);var f=c!==a||l!==u;this.contentMoved||f||this.hooks.trigger(this.hooks.eventTypes.contentNotMoved),!this.contentMoved&&f&&(this.contentMoved=!0,this.hooks.trigger(this.hooks.eventTypes.scrollStart)),this.contentMoved&&f&&(this.animater.translate({x:c,y:l}),this.dispatchScroll(o))}}},e.prototype.dispatchScroll=function(e){e-this.startTime>this.options.momentumLimitTime&&(this.startTime=e,this.scrollBehaviorX.updateStartPos(),this.scrollBehaviorY.updateStartPos(),1===this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())),this.options.probeType>1&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())},e.prototype.checkMomentum=function(e,t,n){return n-this.endTime>this.options.momentumLimitTime&&t<this.options.momentumLimitDistance&&e<this.options.momentumLimitDistance},e.prototype.handleEnd=function(e){if(!this.hooks.trigger(this.hooks.eventTypes.beforeEnd,e)){var t=this.getCurrentPos();if(this.scrollBehaviorX.updateDirection(),this.scrollBehaviorY.updateDirection(),this.hooks.trigger(this.hooks.eventTypes.end,e,t))return!0;t=this.ensureIntegerPos(t),this.animater.translate(t),this.endTime=rr();var n=this.endTime-this.startTime;this.hooks.trigger(this.hooks.eventTypes.scrollEnd,t,n)}},e.prototype.ensureIntegerPos=function(e){this.ensuringInteger=!0;var t=e.x,n=e.y,r=this.scrollBehaviorX,i=r.minScrollPos,o=r.maxScrollPos,s=this.scrollBehaviorY,a=s.minScrollPos,c=s.maxScrollPos;return t=t>0?Math.ceil(t):Math.floor(t),n=n>0?Math.ceil(n):Math.floor(n),t=sr(t,o,i),n=sr(n,c,a),{x:t,y:n}},e.prototype.handleClick=function(e){Tr(e.target,this.options.preventDefaultException)||(e.preventDefault(),e.stopPropagation())},e.prototype.getCurrentPos=function(){return{x:this.scrollBehaviorX.getCurrentPos(),y:this.scrollBehaviorY.getCurrentPos()}},e.prototype.refresh=function(){this.endTime=0},e.prototype.destroy=function(){this.hooks.destroy()},e}();function si(e){var t=["click","bindToWrapper","disableMouse","disableTouch","preventDefault","stopPropagation","tagException","preventDefaultException","autoEndDistance"].reduce((function(t,n){return t[n]=e[n],t}),{});return t}function ai(e,t,n,r){var i=["momentum","momentumLimitTime","momentumLimitDistance","deceleration","swipeBounceTime","swipeTime","outOfBoundaryDampingFactor","specifiedIndexAsContent"].reduce((function(t,n){return t[n]=e[n],t}),{});return i.scrollable=!!e[t],i.bounces=n,i.rect=r,i}function ci(e,t,n){n.forEach((function(n){var r,i;"string"===typeof n?r=i=n:(r=n.source,i=n.target),e.on(r,(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.trigger.apply(t,Qn([i],e))}))}))}function ui(e,t){for(var n=Object.keys(e),r=0,i=n;r<i.length;r++){var o=i[r];if(e[o]!==t[o])return!1}return!0}var li=1,fi=function(){function e(e,t,n){this.wrapper=e,this.content=t,this.resizeTimeout=0,this.hooks=new Pr(["beforeStart","beforeMove","beforeScrollStart","scrollStart","scroll","beforeEnd","scrollEnd","resize","touchEnd","end","flick","scrollCancel","momentum","scrollTo","minDistanceScroll","scrollToElement","beforeRefresh"]),this.options=n;var r=this.options.bounce,i=r.left,o=r.right,s=r.top,a=r.bottom;this.scrollBehaviorX=new ei(e,t,ai(n,"scrollX",[i,o],{size:"width",position:"left"})),this.scrollBehaviorY=new ei(e,t,ai(n,"scrollY",[s,a],{size:"height",position:"top"})),this.translater=new $r(this.content),this.animater=Wr(this.content,this.translater,this.options),this.actionsHandler=new Yr(this.options.bindToTarget?this.content:e,si(this.options)),this.actions=new oi(this.scrollBehaviorX,this.scrollBehaviorY,this.actionsHandler,this.animater,this.options);var c=this.resize.bind(this);this.resizeRegister=new zr(window,[{name:"orientationchange",handler:c},{name:"resize",handler:c}]),this.registerTransitionEnd(),this.init()}return e.prototype.init=function(){var e=this;this.bindTranslater(),this.bindAnimater(),this.bindActions(),this.hooks.on(this.hooks.eventTypes.scrollEnd,(function(){e.togglePointerEvents(!0)}))},e.prototype.registerTransitionEnd=function(){this.transitionEndRegister=new zr(this.content,[{name:Ir.transitionEnd,handler:this.transitionEnd.bind(this)}])},e.prototype.bindTranslater=function(){var e=this,t=this.translater.hooks;t.on(t.eventTypes.beforeTranslate,(function(t){e.options.translateZ&&t.push(e.options.translateZ)})),t.on(t.eventTypes.translate,(function(t){var n=e.getCurrentPos();e.updatePositions(t),!0!==e.actions.ensuringInteger?t.x===n.x&&t.y===n.y||e.togglePointerEvents(!1):e.actions.ensuringInteger=!1}))},e.prototype.bindAnimater=function(){var e=this;this.animater.hooks.on(this.animater.hooks.eventTypes.end,(function(t){e.resetPosition(e.options.bounceTime)||(e.animater.setPending(!1),e.hooks.trigger(e.hooks.eventTypes.scrollEnd,t))})),ci(this.animater.hooks,this.hooks,[{source:this.animater.hooks.eventTypes.move,target:this.hooks.eventTypes.scroll},{source:this.animater.hooks.eventTypes.forceStop,target:this.hooks.eventTypes.scrollEnd}])},e.prototype.bindActions=function(){var e=this,t=this.actions;ci(t.hooks,this.hooks,[{source:t.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeStart},{source:t.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeScrollStart},{source:t.hooks.eventTypes.beforeMove,target:this.hooks.eventTypes.beforeMove},{source:t.hooks.eventTypes.scrollStart,target:this.hooks.eventTypes.scrollStart},{source:t.hooks.eventTypes.scroll,target:this.hooks.eventTypes.scroll},{source:t.hooks.eventTypes.beforeEnd,target:this.hooks.eventTypes.beforeEnd}]),t.hooks.on(t.hooks.eventTypes.end,(function(n,r){return e.hooks.trigger(e.hooks.eventTypes.touchEnd,r),!!e.hooks.trigger(e.hooks.eventTypes.end,r)||(!(t.fingerMoved||(e.hooks.trigger(e.hooks.eventTypes.scrollCancel),!e.checkClick(n)))||(e.resetPosition(e.options.bounceTime,Er.bounce)?(e.animater.setForceStopped(!1),!0):void 0))})),t.hooks.on(t.hooks.eventTypes.scrollEnd,(function(n,r){var i=Math.abs(n.x-e.scrollBehaviorX.startPos),o=Math.abs(n.y-e.scrollBehaviorY.startPos);if(e.checkFlick(r,i,o))return e.animater.setForceStopped(!1),void e.hooks.trigger(e.hooks.eventTypes.flick);e.momentum(n,r)?e.animater.setForceStopped(!1):(t.contentMoved&&e.hooks.trigger(e.hooks.eventTypes.scrollEnd,n),e.animater.forceStopped&&e.animater.setForceStopped(!1))}))},e.prototype.checkFlick=function(e,t,n){var r=1;if(this.hooks.events.flick.length>1&&e<this.options.flickLimitTime&&t<this.options.flickLimitDistance&&n<this.options.flickLimitDistance&&(n>r||t>r))return!0},e.prototype.momentum=function(e,t){var n={time:0,easing:Er.swiper,newX:e.x,newY:e.y},r=this.scrollBehaviorX.end(t),i=this.scrollBehaviorY.end(t);if(n.newX=or(r.destination)?n.newX:r.destination,n.newY=or(i.destination)?n.newY:i.destination,n.time=Math.max(r.duration,i.duration),this.hooks.trigger(this.hooks.eventTypes.momentum,n,this),n.newX!==e.x||n.newY!==e.y)return(n.newX>this.scrollBehaviorX.minScrollPos||n.newX<this.scrollBehaviorX.maxScrollPos||n.newY>this.scrollBehaviorY.minScrollPos||n.newY<this.scrollBehaviorY.maxScrollPos)&&(n.easing=Er.swipeBounce),this.scrollTo(n.newX,n.newY,n.time,n.easing),!0},e.prototype.checkClick=function(e){var t={preventClick:this.animater.forceStopped};if(this.hooks.trigger(this.hooks.eventTypes.checkClick))return this.animater.setForceStopped(!1),!0;if(!t.preventClick){var n=this.options.dblclick,r=!1;if(n&&this.lastClickTime){var i=n.delay,o=void 0===i?300:i;rr()-this.lastClickTime<o&&(r=!0,Nr(e))}return this.options.tap&&_r(e,this.options.tap),this.options.click&&!Tr(e.target,this.options.preventDefaultException)&&br(e),this.lastClickTime=r?null:rr(),!0}return!1},e.prototype.resize=function(){var e=this;this.actions.enabled&&(Jn&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((function(){e.hooks.trigger(e.hooks.eventTypes.resize)}),this.options.resizePolling))},e.prototype.transitionEnd=function(e){if(e.target===this.content&&this.animater.pending){var t=this.animater;t.transitionTime(),this.resetPosition(this.options.bounceTime,Er.bounce)||(this.animater.setPending(!1),3!==this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.scrollEnd,this.getCurrentPos()))}},e.prototype.togglePointerEvents=function(e){void 0===e&&(e=!0);for(var t=this.content.children.length?this.content.children:[this.content],n=e?"auto":"none",r=0;r<t.length;r++){var i=t[r];i.isBScrollContainer||(i.style.pointerEvents=n)}},e.prototype.refresh=function(e){var t=this.setContent(e);this.hooks.trigger(this.hooks.eventTypes.beforeRefresh),this.scrollBehaviorX.refresh(e),this.scrollBehaviorY.refresh(e),t&&(this.translater.setContent(e),this.animater.setContent(e),this.transitionEndRegister.destroy(),this.registerTransitionEnd(),this.options.bindToTarget&&this.actionsHandler.setContent(e)),this.actions.refresh(),this.wrapperOffset=dr(this.wrapper)},e.prototype.setContent=function(e){var t=e!==this.content;return t&&(this.content=e),t},e.prototype.scrollBy=function(e,t,n,r){void 0===n&&(n=0);var i=this.getCurrentPos(),o=i.x,s=i.y;r=r||Er.bounce,e+=o,t+=s,this.scrollTo(e,t,n,r)},e.prototype.scrollTo=function(e,t,n,r,i){void 0===n&&(n=0),void 0===r&&(r=Er.bounce),void 0===i&&(i={start:{},end:{}});var o=this.options.useTransition?r.style:r.fn,s=this.getCurrentPos(),a=Fn({x:s.x,y:s.y},i.start),c=Fn({x:e,y:t},i.end);if(this.hooks.trigger(this.hooks.eventTypes.scrollTo,c),!ui(a,c)){var u=Math.abs(c.x-a.x),l=Math.abs(c.y-a.y);u<li&&l<li&&(n=0,this.hooks.trigger(this.hooks.eventTypes.minDistanceScroll)),this.animater.move(a,c,n,o)}},e.prototype.scrollToElement=function(e,t,n,r,i){var o=lr(e),s=dr(o),a=function(e,t,n){return"number"===typeof e?e:e?Math.round(t/2-n/2):0};n=a(n,o.offsetWidth,this.wrapper.offsetWidth),r=a(r,o.offsetHeight,this.wrapper.offsetHeight);var c=function(e,t,n,r){return e-=t,e=r.adjustPosition(e-n),e};s.left=c(s.left,this.wrapperOffset.left,n,this.scrollBehaviorX),s.top=c(s.top,this.wrapperOffset.top,r,this.scrollBehaviorY),this.hooks.trigger(this.hooks.eventTypes.scrollToElement,o,s)||this.scrollTo(s.left,s.top,t,i)},e.prototype.resetPosition=function(e,t){void 0===e&&(e=0),void 0===t&&(t=Er.bounce);var n=this.scrollBehaviorX.checkInBoundary(),r=n.position,i=n.inBoundary,o=this.scrollBehaviorY.checkInBoundary(),s=o.position,a=o.inBoundary;return(!i||!a)&&(Xn&&this.reflow(),this.scrollTo(r,s,e,t),!0)},e.prototype.reflow=function(){this._reflow=this.content.offsetHeight},e.prototype.updatePositions=function(e){this.scrollBehaviorX.updatePosition(e.x),this.scrollBehaviorY.updatePosition(e.y)},e.prototype.getCurrentPos=function(){return this.actions.getCurrentPos()},e.prototype.enable=function(){this.actions.enabled=!0},e.prototype.disable=function(){Lr(this.animater.timer),this.actions.enabled=!1},e.prototype.destroy=function(){var e=this,t=["resizeRegister","transitionEndRegister","actionsHandler","actions","hooks","animater","translater","scrollBehaviorX","scrollBehaviorY"];t.forEach((function(t){return e[t].destroy()}))},e}(),hi=function(e){function t(t,n){var r=e.call(this,["refresh","contentChanged","enable","disable","beforeScrollStart","scrollStart","scroll","scrollEnd","scrollCancel","touchEnd","flick","destroy"])||this,i=lr(t);return i?(r.plugins={},r.options=(new Br).merge(n).process(),r.setContent(i).valid?(r.hooks=new Pr(["refresh","enable","disable","destroy","beforeInitialScrollTo","contentChanged"]),r.init(i),r):r):(Zn("Can not resolve the wrapper DOM."),r)}return $n(t,e),t.use=function(e){var n=e.pluginName,r=t.plugins.some((function(t){return e===t.ctor}));return r?t:or(n)?(Zn("Plugin Class must specify plugin's name in static property by 'pluginName' field."),t):(t.pluginsMap[n]=!0,t.plugins.push({name:n,applyOrder:e.applyOrder,ctor:e}),t)},t.prototype.setContent=function(e){var t=!1,n=!0,r=e.children[this.options.specifiedIndexAsContent];return r?(t=this.content!==r,t&&(this.content=r)):(Zn("The wrapper need at least one child element to be content element to scroll."),n=!1),{valid:n,contentChanged:t}},t.prototype.init=function(e){var t=this;this.wrapper=e,e.isBScrollContainer=!0,this.scroller=new fi(e,this.content,this.options),this.scroller.hooks.on(this.scroller.hooks.eventTypes.resize,(function(){t.refresh()})),this.eventBubbling(),this.handleAutoBlur(),this.enable(),this.proxy(Vn),this.applyPlugins(),this.refreshWithoutReset(this.content);var n=this.options,r=n.startX,i=n.startY,o={x:r,y:i};this.hooks.trigger(this.hooks.eventTypes.beforeInitialScrollTo,o)||this.scroller.scrollTo(o.x,o.y)},t.prototype.applyPlugins=function(){var e=this,n=this.options;t.plugins.sort((function(e,t){var n,r=(n={},n["pre"]=-1,n["post"]=1,n),i=e.applyOrder?r[e.applyOrder]:0,o=t.applyOrder?r[t.applyOrder]:0;return i-o})).forEach((function(t){var r=t.ctor;n[t.name]&&"function"===typeof r&&(e.plugins[t.name]=new r(e))}))},t.prototype.handleAutoBlur=function(){this.options.autoBlur&&this.on(this.eventTypes.beforeScrollStart,(function(){var e=document.activeElement;!e||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName||e.blur()}))},t.prototype.eventBubbling=function(){ci(this.scroller.hooks,this,[this.eventTypes.beforeScrollStart,this.eventTypes.scrollStart,this.eventTypes.scroll,this.eventTypes.scrollEnd,this.eventTypes.scrollCancel,this.eventTypes.touchEnd,this.eventTypes.flick])},t.prototype.refreshWithoutReset=function(e){this.scroller.refresh(e),this.hooks.trigger(this.hooks.eventTypes.refresh,e),this.trigger(this.eventTypes.refresh,e)},t.prototype.proxy=function(e){var t=this;e.forEach((function(e){var n=e.key,r=e.sourceKey;Ur(t,r,n)}))},t.prototype.refresh=function(){var e=this.setContent(this.wrapper),t=e.contentChanged,n=e.valid;if(n){var r=this.content;this.refreshWithoutReset(r),t&&(this.hooks.trigger(this.hooks.eventTypes.contentChanged,r),this.trigger(this.eventTypes.contentChanged,r)),this.scroller.resetPosition()}},t.prototype.enable=function(){this.scroller.enable(),this.hooks.trigger(this.hooks.eventTypes.enable),this.trigger(this.eventTypes.enable)},t.prototype.disable=function(){this.scroller.disable(),this.hooks.trigger(this.hooks.eventTypes.disable),this.trigger(this.eventTypes.disable)},t.prototype.destroy=function(){this.hooks.trigger(this.hooks.eventTypes.destroy),this.trigger(this.eventTypes.destroy),this.scroller.destroy()},t.prototype.eventRegister=function(e){this.registerType(e)},t.plugins=[],t.pluginsMap={},t}(Pr);function di(e,t){var n=new hi(e,t);return n}di.use=hi.use,di.plugins=hi.plugins,di.pluginsMap=hi.pluginsMap;var pi=di,gi="undefined"!==typeof window,vi=gi&&navigator.userAgent.toLowerCase();
- /*!
- * better-scroll / pull-up
- * (c) 2016-2021 ustbhuangyi
- * Released under the MIT License.
- */if(vi&&/wechatdevtools/.test(vi),vi&&vi.indexOf("android"),function(){if("string"===typeof vi){var e=/os (\d\d?_\d(_\d)?)/,t=e.exec(vi);if(!t)return!1;var n=t[1].split("_").map((function(e){return parseInt(e,10)}));return!!(13===n[0]&&n[1]>=4)}}(),gi){var yi="test-passive";try{var mi={};Object.defineProperty(mi,"passive",{get:function(){}}),window.addEventListener(yi,(function(){}),mi)}catch(cs){}}var Ii=function(e,t){for(var n in t)e[n]=t[n];return e},Mi=gi&&document.createElement("div").style,Ci=function(){if(!gi)return!1;for(var e=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,n=e;t<n.length;t++){var r=n[t];if(void 0!==Mi[r.value])return r.key}return!1}();function Ti(e){return!1===Ci?e:"standard"===Ci?"transitionEnd"===e?"transitionend":e:Ci+e.charAt(0).toUpperCase()+e.substr(1)}Ci&&"standard"!==Ci&&Ci.toLowerCase();Ti("transform"),Ti("transition");gi&&Ti("perspective"),Ti("transitionTimingFunction"),Ti("transitionDuration"),Ti("transitionDelay"),Ti("transformOrigin"),Ti("transitionEnd"),Ti("transitionProperty");var Ai="plugins.pullUpLoad",_i=[{key:"finishPullUp",name:"finishPullUp"},{key:"openPullUp",name:"openPullUp"},{key:"closePullUp",name:"closePullUp"},{key:"autoPullUpLoad",name:"autoPullUpLoad"}],bi=_i.map((function(e){return{key:e.key,sourceKey:Ai+"."+e.name}})),Ni="pullingUp",Ei=function(){function e(e){this.scroll=e,this.pulling=!1,this.watching=!1,this.init()}return e.prototype.init=function(){this.handleBScroll(),this.handleOptions(this.scroll.options.pullUpLoad),this.handleHooks(),this.watch()},e.prototype.handleBScroll=function(){this.scroll.registerType([Ni]),this.scroll.proxy(bi)},e.prototype.handleOptions=function(e){void 0===e&&(e={}),e=!0===e?{}:e;var t={threshold:0};this.options=Ii(t,e),this.scroll.options.probeType=3},e.prototype.handleHooks=function(){var e=this;this.hooksFn=[];var t=this.scroll.scroller.scrollBehaviorY;this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.contentChanged,(function(){e.finishPullUp()})),this.registerHooks(t.hooks,t.hooks.eventTypes.computeBoundary,(function(e){e.maxScrollPos>0&&(e.maxScrollPos=-1)}))},e.prototype.registerHooks=function(e,t,n){e.on(t,n,this),this.hooksFn.push([e,t,n])},e.prototype.watch=function(){this.watching||(this.watching=!0,this.registerHooks(this.scroll,this.scroll.eventTypes.scroll,this.checkPullUp))},e.prototype.unwatch=function(){this.watching=!1,this.scroll.off(this.scroll.eventTypes.scroll,this.checkPullUp)},e.prototype.checkPullUp=function(e){var t=this,n=this.options.threshold;1===this.scroll.movingDirectionY&&e.y<=this.scroll.maxScrollY+n&&(this.pulling=!0,this.scroll.once(this.scroll.eventTypes.scrollEnd,(function(){t.pulling=!1})),this.unwatch(),this.scroll.trigger(Ni))},e.prototype.finishPullUp=function(){var e=this;this.scroll.scroller.scrollBehaviorY.setMovingDirection(0),this.pulling?this.scroll.once(this.scroll.eventTypes.scrollEnd,(function(){e.watch()})):this.watch()},e.prototype.openPullUp=function(e){void 0===e&&(e={}),this.handleOptions(e),this.watch()},e.prototype.closePullUp=function(){this.unwatch()},e.prototype.autoPullUpLoad=function(){var e=this.options.threshold,t=this.scroll.scroller.scrollBehaviorY;if(!this.pulling&&this.watching){var n=-1,r=t.maxScrollPos+e+n;this.scroll.scroller.scrollBehaviorY.setMovingDirection(n),this.scroll.scrollTo(this.scroll.x,r,this.scroll.options.bounceTime)}},e.pluginName="pullUpLoad",e}();
- /*!
- * better-scroll / mouse-wheel
- * (c) 2016-2021 ustbhuangyi
- * Released under the MIT License.
- */
- function wi(e){console.error("[BScroll warn]: "+e)}var Si="undefined"!==typeof window,Oi=Si&&navigator.userAgent.toLowerCase();Oi&&/wechatdevtools/.test(Oi),Oi&&Oi.indexOf("android"),function(){if("string"===typeof Oi){var e=/os (\d\d?_\d(_\d)?)/,t=e.exec(Oi);if(!t)return!1;var n=t[1].split("_").map((function(e){return parseInt(e,10)}));return!!(13===n[0]&&n[1]>=4)}}();var Di=!1;if(Si){var Li="test-passive";try{var Ri={};Object.defineProperty(Ri,"passive",{get:function(){Di=!0}}),window.addEventListener(Li,(function(){}),Ri)}catch(cs){}}var ji=function(e,t){for(var n in t)e[n]=t[n];return e},xi=Si&&document.createElement("div").style,ki=function(){if(!Si)return!1;for(var e=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,n=e;t<n.length;t++){var r=n[t];if(void 0!==xi[r.value])return r.key}return!1}();function Ui(e){return!1===ki?e:"standard"===ki?"transitionEnd"===e?"transitionend":e:ki+e.charAt(0).toUpperCase()+e.substr(1)}function Pi(e,t,n,r){var i=Di?{passive:!1,capture:!!r}:!!r;e.addEventListener(t,n,i)}function zi(e,t,n,r){e.removeEventListener(t,n,{capture:!!r})}ki&&"standard"!==ki&&ki.toLowerCase();Ui("transform"),Ui("transition");function Gi(e,t){for(var n in t)if(t[n].test(e[n]))return!0;return!1}Si&&Ui("perspective"),Ui("transitionTimingFunction"),Ui("transitionDuration"),Ui("transitionDelay"),Ui("transformOrigin"),Ui("transitionEnd"),Ui("transitionProperty");var Bi=function(){function e(e,t){this.wrapper=e,this.events=t,this.addDOMEvents()}return e.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},e.prototype.addDOMEvents=function(){this.handleDOMEvents(Pi)},e.prototype.removeDOMEvents=function(){this.handleDOMEvents(zi)},e.prototype.handleDOMEvents=function(e){var t=this,n=this.wrapper;this.events.forEach((function(r){e(n,r.name,t,!!r.capture)}))},e.prototype.handleEvent=function(e){var t=e.type;this.events.some((function(n){return n.name===t&&(n.handler(e),!0)}))},e}(),Yi=function(){function e(e){this.scroll=e,this.wheelEndTimer=0,this.wheelMoveTimer=0,this.wheelStart=!1,this.init()}return e.prototype.init=function(){this.handleBScroll(),this.handleOptions(),this.handleHooks(),this.registerEvent()},e.prototype.handleBScroll=function(){this.scroll.registerType(["alterOptions","mousewheelStart","mousewheelMove","mousewheelEnd"])},e.prototype.handleOptions=function(){var e=!0===this.scroll.options.mouseWheel?{}:this.scroll.options.mouseWheel,t={speed:20,invert:!1,easeTime:300,discreteTime:400,throttleTime:0,dampingFactor:.1};this.mouseWheelOpt=ji(t,e)},e.prototype.handleHooks=function(){this.hooksFn=[],this.registerHooks(this.scroll.hooks,"destroy",this.destroy)},e.prototype.registerEvent=function(){this.eventRegister=new Bi(this.scroll.scroller.wrapper,[{name:"wheel",handler:this.wheelHandler.bind(this)},{name:"mousewheel",handler:this.wheelHandler.bind(this)},{name:"DOMMouseScroll",handler:this.wheelHandler.bind(this)}])},e.prototype.registerHooks=function(e,t,n){e.on(t,n,this),this.hooksFn.push([e,t,n])},e.prototype.wheelHandler=function(e){if(this.scroll.enabled){this.beforeHandler(e),this.wheelStart||(this.wheelStartHandler(e),this.wheelStart=!0);var t=this.getWheelDelta(e);this.wheelMoveHandler(t),this.wheelEndDetector(t)}},e.prototype.wheelStartHandler=function(e){this.cleanCache();var t=this.scroll.scroller,n=t.scrollBehaviorX,r=t.scrollBehaviorY;n.setMovingDirection(0),r.setMovingDirection(0),n.setDirection(0),r.setDirection(0),this.scroll.trigger(this.scroll.eventTypes.alterOptions,this.mouseWheelOpt),this.scroll.trigger(this.scroll.eventTypes.mousewheelStart)},e.prototype.cleanCache=function(){this.deltaCache=[]},e.prototype.wheelMoveHandler=function(e){var t=this,n=this.mouseWheelOpt,r=n.throttleTime,i=n.dampingFactor;if(r&&this.wheelMoveTimer)this.deltaCache.push(e);else{var o=this.deltaCache.reduce((function(e,t){return{x:e.x+t.x,y:e.y+t.y}}),{x:0,y:0});this.cleanCache();var s=this.scroll.scroller,a=s.scrollBehaviorX,c=s.scrollBehaviorY;a.setMovingDirection(-e.directionX),c.setMovingDirection(-e.directionY),a.setDirection(e.x),c.setDirection(e.y);var u=a.performDampingAlgorithm(Math.round(e.x)+o.x,i),l=c.performDampingAlgorithm(Math.round(e.y)+o.x,i);if(!this.scroll.trigger(this.scroll.eventTypes.mousewheelMove,{x:u,y:l})){var f=this.getEaseTime();u===this.scroll.x&&l===this.scroll.y||this.scroll.scrollTo(u,l,f)}r&&(this.wheelMoveTimer=window.setTimeout((function(){t.wheelMoveTimer=0}),r))}},e.prototype.wheelEndDetector=function(e){var t=this;window.clearTimeout(this.wheelEndTimer),this.wheelEndTimer=window.setTimeout((function(){t.wheelStart=!1,window.clearTimeout(t.wheelMoveTimer),t.wheelMoveTimer=0,t.scroll.trigger(t.scroll.eventTypes.mousewheelEnd,e)}),this.mouseWheelOpt.discreteTime)},e.prototype.getWheelDelta=function(e){var t=this.mouseWheelOpt,n=t.speed,r=t.invert,i=0,o=0,s=r?-1:1;switch(!0){case"deltaX"in e:1===e.deltaMode?(i=-e.deltaX*n,o=-e.deltaY*n):(i=-e.deltaX,o=-e.deltaY);break;case"wheelDeltaX"in e:i=e.wheelDeltaX/120*n,o=e.wheelDeltaY/120*n;break;case"wheelDelta"in e:i=o=e.wheelDelta/120*n;break;case"detail"in e:i=o=-e.detail/3*n;break}i*=s,o*=s,this.scroll.hasVerticalScroll||(Math.abs(o)>Math.abs(i)&&(i=o),o=0),this.scroll.hasHorizontalScroll||(i=0);var a=i>0?-1:i<0?1:0,c=o>0?-1:o<0?1:0;return{x:i,y:o,directionX:a,directionY:c}},e.prototype.beforeHandler=function(e){var t=this.scroll.options,n=t.preventDefault,r=t.stopPropagation,i=t.preventDefaultException;n&&!Gi(e.target,i)&&e.preventDefault(),r&&e.stopPropagation()},e.prototype.getEaseTime=function(){var e=100,t=this.mouseWheelOpt.easeTime;return t<e&&wi("easeTime should be greater than 100.If mouseWheel easeTime is too small,scrollEnd will be triggered many times."),Math.max(t,e)},e.prototype.destroy=function(){this.eventRegister.destroy(),window.clearTimeout(this.wheelEndTimer),window.clearTimeout(this.wheelMoveTimer),this.hooksFn.forEach((function(e){var t=e[0],n=e[1],r=e[2];t.off(n,r)}))},e.pluginName="mouseWheel",e.applyOrder="pre",e}();Yi.prototype.wheelMoveHandler=function(e){var t=this,n=this.mouseWheelOpt,r=n.throttleTime,i=n.dampingFactor;if(r&&this.wheelMoveTimer)this.deltaCache.push(e);else{var o=this.deltaCache.reduce((function(e,t){return{x:e.x+t.x,y:e.y+t.y}}),{x:0,y:0});this.cleanCache();var s=this.scroll.scroller,a=s.scrollBehaviorX,c=s.scrollBehaviorY;a.setMovingDirection(-e.directionX),c.setMovingDirection(-e.directionY),a.setDirection(e.x),c.setDirection(e.y);var u=a.performDampingAlgorithm(Math.round(e.x)+o.x,i),l=c.performDampingAlgorithm(Math.round(e.y)+o.x,i);if(!this.scroll.trigger(this.scroll.eventTypes.mousewheelMove,{x:u,y:l})){var f=this.getEaseTime();u===this.scroll.x&&l===this.scroll.y||(Math.abs(this.scroll.y-l)<1&&(l=this.scroll.y>l?this.scroll.y-1.01:this.scroll.y+1.01),this.scroll.scrollTo(u,l,f))}r&&(this.wheelMoveTimer=window.setTimeout((function(){t.wheelMoveTimer=0}),r))}};var Hi={touchstart:1,touchmove:1,touchend:1,touchcancel:1,mousedown:2,mousemove:2,mouseup:2};function $i(e,t){var n=!1;return Object.keys(t).forEach((function(r){t[r].test(e[r])&&(n=!0)})),n}var Fi=$i,Qi=function(e){var t=Hi[e.type];if(!this.initiated||this.initiated===t)if(this.setInitiated(t),Fi(e.target,this.options.tagException))this.setInitiated();else if(2!==t||0===e.button){if(!this.hooks.trigger(this.hooks.eventTypes.beforeStart,e)){this.beforeHandler(e,"start");var n=e.touches?e.touches[0]:e;this.pointX=n.pageX,this.pointY=n.pageY,this.hooks.trigger(this.hooks.eventTypes.start,e)}}else this.setInitiated()},Vi=".conversation-wrapper{height:100%;background:#fff;position:relative}.conversation-container{height:100%}.pullup-tips{text-align:center;color:#111f2c;height:3.4em;line-height:3.4em;width:100%;text-align:center;font-size:2em}.after-trigger::before{content:' ';display:inline-block;width:1.8em;height:1.8em;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjhweCIgaGVpZ2h0PSIyOHB4IiB2aWV3Qm94PSIwIDAgMjggMjgiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+bG9hZGluZzwvdGl0bGU+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9Ijk0LjA4NjkxNDElIiB5MT0iMCUiIHgyPSI5NC4wODY5MTQxJSIgeTI9IjkwLjU1OTA4MiUiIGlkPSJsaW5lYXJHcmFkaWVudC0xIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzhGOTQ5QSIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjAlIj48L3N0b3A+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4Rjk0OUEiIHN0b3Atb3BhY2l0eT0iMC4zIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iMTAwJSIgeTE9IjguNjczNzA2MDUlIiB4Mj0iMTAwJSIgeTI9IjkwLjYyODY2MjElIiBpZD0ibGluZWFyR3JhZGllbnQtMiI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4Rjk0OUEiIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzhGOTQ5QSIgc3RvcC1vcGFjaXR5PSIwLjMiIG9mZnNldD0iMTAwJSI+PC9zdG9wPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8L2RlZnM+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIwM1/lkJHkuIvmu5rliqjml7Zsb2FkaW5nIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTQyLjAwMDAwMCwgLTkxMS4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8ZyBpZD0i572R57uc5LiN5Y+v55So5o+Q56S6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgNTc5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9ImxvYWRpbmciIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0Mi4wMDAwMDAsIDMzMi4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0i55+p5b2iIiB4PSIwIiB5PSIwIiB3aWR0aD0iMjgiIGhlaWdodD0iMjgiPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iTG9hZGluZ0JyYW5kIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyLjAwMDAwMCwgMi4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTEyLDAgQzE4LjYyNzQxNywwIDI0LDUuMzcyNTgzIDI0LDEyIEMyNCwxOC42Mjc0MTcgMTguNjI3NDE3LDI0IDEyLDI0IEwxMiwyMS45IEMxNy40Njc2MTksMjEuOSAyMS45LDE3LjQ2NzYxOSAyMS45LDEyIEMyMS45LDYuNTMyMzgwOTkgMTcuNDY3NjE5LDIuMSAxMiwyLjEgTDEyLDAgWiIgaWQ9Iui3r+W+hCIgZmlsbD0idXJsKCNsaW5lYXJHcmFkaWVudC0xKSI+PC9wYXRoPgogICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTIsMCBMMTIsMi4xIEM2LjUzMjM4MDk5LDIuMSAyLjEsNi41MzIzODA5OSAyLjEsMTIgQzIuMSwxNy40Njc2MTkgNi41MzIzODA5OSwyMS45IDEyLDIxLjkgTDEyLDI0IEM1LjM3MjU4MywyNCAwLDE4LjYyNzQxNyAwLDEyIEMwLDUuMzcyNTgzIDUuMzcyNTgzLDAgMTIsMCBaIiBpZD0i6Lev5b6EIiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTIpIj48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwiIGZpbGw9IiM4Rjk0OUEiIGN4PSIxMi4xNSIgY3k9IjEuMDUiIHI9IjEuMDUiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+) no-repeat;-webkit-animation:loading 1s infinite;animation:loading 1s infinite;vertical-align:middle;margin:0 0.8em 0 0}@-webkit-keyframes loading{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loading{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.no-data{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-size:2.2em;color:#111f2c;background:#fff}.no-data::before{content:' ';display:block;width:5.81818em;height:5.81818em;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTI4cHgiIGhlaWdodD0iMTI4cHgiIHZpZXdCb3g9IjAgMCAxMjggMTI4IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPHRpdGxlPue8uuecgWljb248L3RpdGxlPgogICAgPGcgaWQ9Iumhtemdoi0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMDJf5Lya6K+d5YiX6KGo5Li656m6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTYwLjAwMDAwMCwgLTM1NC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9Iue8uuecgWljb24iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE2MC4wMDAwMDAsIDM1NC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8ZyBpZD0iYmVsbHMtKDEpIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzLjAwMDAwMCwgMTEuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0yMDMiIHN0cm9rZS1vcGFjaXR5PSIwLjQiIHN0cm9rZT0iI0EzQjFCRiIgc3Ryb2tlLXdpZHRoPSIyIiBjeD0iMjAuNSIgY3k9IjMuNSIgcj0iMy41Ij48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTIwM+Wkh+S7vSIgc3Ryb2tlLW9wYWNpdHk9IjAuNCIgc3Ryb2tlPSIjQTNCMUJGIiBzdHJva2Utd2lkdGg9IjEuODI0IiBjeD0iMTA4IiBjeT0iMjMiIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMTcuNSw0NSBDMTE4LjA0ODAyMSw0NSAxMTguNDkyMjc5LDQ1LjQ0NDI1ODYgMTE4LjQ5MjI3OSw0NS45OTIyNzkzIEwxMTguNDkyLDQ4LjM2OCBMMTIxLDQ4LjM2ODM0NyBDMTIxLjU1MjI4NSw0OC4zNjgzNDcgMTIyLDQ4LjgxNjA2MjMgMTIyLDQ5LjM2ODM0NyBDMTIyLDQ5LjkyMDYzMTggMTIxLjU1MjI4NSw1MC4zNjgzNDcgMTIxLDUwLjM2ODM0NyBMMTE4LjQ5Miw1MC4zNjggTDExOC40OTIyNzksNTMuMDc3NzQ4MSBDMTE4LjQ5MjI3OSw1My42MjU3Njg4IDExOC4wNDgwMjEsNTQuMDcwMDI3NCAxMTcuNSw1NC4wNzAwMjc0IEMxMTYuOTUxOTc5LDU0LjA3MDAyNzQgMTE2LjUwNzcyMSw1My42MjU3Njg4IDExNi41MDc3MjEsNTMuMDc3NzQ4MSBMMTE2LjUwNyw1MC4zNjggTDExNCw1MC4zNjgzNDcgQzExMy40NDc3MTUsNTAuMzY4MzQ3IDExMyw0OS45MjA2MzE4IDExMyw0OS4zNjgzNDcgQzExMyw0OC44MTYwNjIzIDExMy40NDc3MTUsNDguMzY4MzQ3IDExNCw0OC4zNjgzNDcgTDExNi41MDcsNDguMzY4IEwxMTYuNTA3NzIxLDQ1Ljk5MjI3OTMgQzExNi41MDc3MjEsNDUuNDQ0MjU4NiAxMTYuOTUxOTc5LDQ1IDExNy41LDQ1IFoiIGlkPSJDb21iaW5lZC1TaGFwZSIgZmlsbC1vcGFjaXR5PSIwLjQiIGZpbGw9IiNBM0IxQkYiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNC41LDU5IEM1LjA0ODAyMDcsNTkgNS40OTIyNzkyNSw1OS40NDQyNTg2IDUuNDkyMjc5MjUsNTkuOTkyMjc5MyBMNS40OTIsNjIuMzY4IEw4LDYyLjM2ODM0NyBDOC41NTIyODQ3NSw2Mi4zNjgzNDcgOSw2Mi44MTYwNjIzIDksNjMuMzY4MzQ3IEM5LDYzLjkyMDYzMTggOC41NTIyODQ3NSw2NC4zNjgzNDcgOCw2NC4zNjgzNDcgTDUuNDkyLDY0LjM2OCBMNS40OTIyNzkyNSw2Ny4wNzc3NDgxIEM1LjQ5MjI3OTI1LDY3LjYyNTc2ODggNS4wNDgwMjA3LDY4LjA3MDAyNzQgNC41LDY4LjA3MDAyNzQgQzMuOTUxOTc5Myw2OC4wNzAwMjc0IDMuNTA3NzIwNzUsNjcuNjI1NzY4OCAzLjUwNzcyMDc1LDY3LjA3Nzc0ODEgTDMuNTA3LDY0LjM2OCBMMSw2NC4zNjgzNDcgQzAuNDQ3NzE1MjUsNjQuMzY4MzQ3IDYuNzYzNTM3NTFlLTE3LDYzLjkyMDYzMTggMCw2My4zNjgzNDcgQy02Ljc2MzUzNzUxZS0xNyw2Mi44MTYwNjIzIDAuNDQ3NzE1MjUsNjIuMzY4MzQ3IDEsNjIuMzY4MzQ3IEwzLjUwNyw2Mi4zNjggTDMuNTA3NzIwNzUsNTkuOTkyMjc5MyBDMy41MDc3MjA3NSw1OS40NDQyNTg2IDMuOTUxOTc5Myw1OSA0LjUsNTkgWiIgaWQ9IkNvbWJpbmVkLVNoYXBlLUNvcHkiIGZpbGwtb3BhY2l0eT0iMC40IiBmaWxsPSIjQTNCMUJGIj48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgPGVsbGlwc2UgaWQ9Ik92YWwtNCIgZmlsbD0iI0RBRTBFNSIgY3g9IjY0IiBjeT0iMTAyLjUiIHJ4PSIyOCIgcnk9IjIuNSI+PC9lbGxpcHNlPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPGcgaWQ9IjI0Z2wtYnViYmxlczciIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE2LjAwMDAwMCwgMjQuMDAwMDAwKSIgZmlsbD0iI0RBRTBFNSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNOS43OTE2NjY3LDU5LjIxMDI3NDggQzkuMjcyMjg0NCw1OS4yMTAyNzQ4IDguNzc0MTc0NjMsNTkuMDAyMzM0NSA4LjQwNjkxNTg4LDU4LjYzMjE5ODUgQzguMDM5NjU3MTIsNTguMjYyMDYyNSA3LjgzMzMzMzMsNTcuNzYwMDUwMyA3LjgzMzMzMzMsNTcuMjM2NTk5IEw3LjgzMzMzMzMsNDcuMzY4MjE5OCBDMy41MDkwNjAxOSw0Ny4zNjM0NjA4IDAuMDA0NzIxOTY0NzIsNDMuODMxNjY4IDAsMzkuNDczNTE2NSBMMCw3Ljg5NDcwMzI3IEMwLjAwNDcyMTk2NDcyLDMuNTM2NTUxOCAzLjUwOTA2MDE5LDAuMDA0NzU4OTU4NzggNy44MzMzMzMzLDAgTDU4Ljc1LDAgQzYzLjA3NDI3MzEsMC4wMDQ3NTg5NTg3OCA2Ni41Nzg2MTEzLDMuNTM2NTUxOCA2Ni41ODMzMzMzLDcuODk0NzAzMjcgTDY2LjU4MzMzMzMsMTMuODE1NzMwNyBDNjYuNTgzMzMzMywxNC45MDU3NjE4IDY1LjcwNjU1NzYsMTUuNzg5NDA2NSA2NC42MjUsMTUuNzg5NDA2NSBDNjMuNTQzNDQyNCwxNS43ODk0MDY1IDYyLjY2NjY2NjcsMTQuOTA1NzYxOCA2Mi42NjY2NjY3LDEzLjgxNTczMDcgTDYyLjY2NjY2NjcsNy44OTQ3MDMyNyBDNjIuNjY0MzA1Nyw1LjcxNTYyNzUyIDYwLjkxMjEzNjYsMy45NDk3MzExMSA1OC43NSwzLjk0NzM1MTY4IEw3LjgzMzMzMzMsMy45NDczNTE2OCBDNS42NzExOTY3NywzLjk0OTczMTE2IDMuOTE5MDI3NjgsNS43MTU2Mjc1NiAzLjkxNjY2NjcsNy44OTQ3MDMyNyBMMy45MTY2NjY3LDM5LjQ3MzUxNjUgQzMuOTE5MDI3NjgsNDEuNjUyNTkyMiA1LjY3MTE5Njc3LDQzLjQxODQ4ODYgNy44MzMzMzMzLDQzLjQyMDg2ODEgTDkuNzkxNjY2Nyw0My40MjA4NjgxIEMxMC4zMTEwNDksNDMuNDIwODY4MSAxMC44MDkxNTg3LDQzLjYyODgwODQgMTEuMTc2NDE3NSw0My45OTg5NDQ0IEMxMS41NDM2NzYyLDQ0LjM2OTA4MDQgMTEuNzUsNDQuODcxMDkyNiAxMS43NSw0NS4zOTQ1NDQgTDExLjc1LDUyLjQ3MjAyMjIgTDIwLjE1Njc1NzgsNDMuOTk4Nzg1MSBDMjAuOTIxNjIxOSw0My4yMjc5Mjg4IDIyLjE2MTcxMTQsNDMuMjI3OTI4OSAyMi45MjY1NzU0LDQzLjk5ODc4NTIgQzIzLjY5MTQzOTQsNDQuNzY5NjQxNSAyMy42OTE0Mzk1LDQ2LjAxOTQ0NjUgMjIuOTI2NTc1NSw0Ni43OTAzMDI4IEwxMS4xNzY1NzU1LDU4LjYzMjM1NzggQzEwLjgwOTI1MjIsNTkuMDAyNDc0NCAxMC4zMTEwODExLDU5LjIxMDI3NDggOS43OTE2NjY3LDU5LjIxMDI3NDggTDkuNzkxNjY2Nyw1OS4yMTAyNzQ4IFogTTY0LjA1MjE4NzUsNzQuNDIxNzY0NCBMNzEuMzEwODcyNCw2Ny4xMDQ5NzggTDg2LjE2NjY2NjcsNjcuMTA0OTc4IEM5MC40OTA5Mzk4LDY3LjEwMDIxOTEgOTMuOTk1Mjc4LDYzLjU2ODQyNjIgOTQsNTkuMjEwMjc0OCBMOTQsMjcuNjMxNDYxNiBDOTMuOTk1Mjc4MSwyMy4yNzMzMTAxIDkwLjQ5MDkzOTgsMTkuNzQxNTE3MiA4Ni4xNjY2NjY3LDE5LjczNjc1ODIgTDM1LjI1LDE5LjczNjc1ODIgQzMwLjkyNTcyNjksMTkuNzQxNTE3MiAyNy40MjEzODg2LDIzLjI3MzMxMDEgMjcuNDE2NjY2NywyNy42MzE0NjE2IEwyNy40MTY2NjY3LDU5LjIxMDI3NDggQzI3LjQyMTM4ODcsNjMuNTY4NDI2MiAzMC45MjU3MjY5LDY3LjEwMDIxOTEgMzUuMjUsNjcuMTA0OTc4IEw1NC4wMjI0NjA5LDY3LjEwNDk3OCBMNjEuMjgxNzU3OCw3NC40MjE3NjQ0IEM2MS42NDkwMjk0LDc0Ljc5MTk5NzkgNjIuMTQ3MjA2OSw3NSA2Mi42NjY2NjY3LDc1IEM2My4xODYxMjY0LDc1IDYzLjY4NDMwMzksNzQuNzkxOTk3OSA2NC4wNTE1NzU1LDc0LjQyMTc2NDQgTDY0LjA1MjE4NzUsNzQuNDIxNzY0NCBaIE04Ni4xNjY2NjY3LDIzLjY4NDEwOTkgQzg4LjMyODgwMzMsMjMuNjg2NDg5NCA5MC4wODA5NzI0LDI1LjQ1MjM4NTggOTAuMDgzMzMzMywyNy42MzE0NjE2IEw5MC4wODMzMzMzLDU5LjIxMDI3NDggQzkwLjA4MDk3MjQsNjEuMzg5MzUwNSA4OC4zMjg4MDMzLDYzLjE1NTI0NyA4Ni4xNjY2NjY3LDYzLjE1NzYyNjQgTDcwLjUsNjMuMTU3NjI2NCBDNjkuOTgwNTg1Niw2My4xNTc1NDE5IDY5LjQ4MjQxNDUsNjMuMzY1NDI2NyA2OS4xMTUwOTExLDYzLjczNTU0MzMgTDYyLjY2NjY2NjcsNzAuMjM1MTA0NiBMNTYuMjE4MjQyMiw2My43MzU1NDMzIEM1NS44NTA5MTg4LDYzLjM2NTQyNjcgNTUuMzUyNzQ3Nyw2My4xNTc1NDE5IDU0LjgzMzMzMzMsNjMuMTU3NjI2NCBMMzUuMjUsNjMuMTU3NjI2NCBDMzMuMDg3ODYzNCw2My4xNTUyNDcgMzEuMzM1Njk0Miw2MS4zODkzNTA1IDMxLjMzMzMzMzMsNTkuMjEwMjc0OCBMMzEuMzMzMzMzMywyNy42MzE0NjE2IEMzMS4zMzU2OTQyLDI1LjQ1MjM4NTggMzMuMDg3ODYzNCwyMy42ODY0ODkzIDM1LjI1LDIzLjY4NDEwOTkgTDg2LjE2NjY2NjcsMjMuNjg0MTA5OSBaIiBpZD0i5b2i54q2Ij48L3BhdGg+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==);margin:0 0 1.04545em}.mentioned{margin:0 0.5em 0 0}";pi.use(Ei),pi.use(Yi);var Zi=function(e){Ot(n,e);var t=Lt(n);function n(){var e;return Qt(this,n),e=t.call(this),e.__registerHost(),Je(jt(e)),e.updateConversation=be(jt(e),"updateConversation",7),e.tapConversation=be(jt(e),"tapConversation",7),e.deleteConversation=be(jt(e),"deleteConversation",7),e.baseSize="16px",e.isPullUpLoad=!1,e.data=[],e.lang=gn.lang,e.contextMenuData={visible:!1},e.getConversationList=e.getConversationList.bind(jt(e)),e.handleUpdateConversation=e.handleUpdateConversation.bind(jt(e)),e.switchConversation=e.switchConversation.bind(jt(e)),e.hideContextMenu=e.hideContextMenu.bind(jt(e)),e.handleTopStatusChange=e.handleTopStatusChange.bind(jt(e)),e.handleDelete=e.handleDelete.bind(jt(e)),e.handleNotificationStatusChange=e.handleNotificationStatusChange.bind(jt(e)),e.pullingUpHandler=e.pullingUpHandler.bind(jt(e)),e.handleSelectConversation=e.handleSelectConversation.bind(jt(e)),e.handleMouseLeave=e.handleMouseLeave.bind(jt(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(jt(e)),e.handleConversationInfoChanged=e.handleConversationInfoChanged.bind(jt(e)),e}return Zt(n,[{key:"componentWillLoad",value:function(){var e=this;gn.on(Tt.CONVERSATION,this.getConversationList),gn.on(Tt.UPDATE_CONVERSATION,this.handleUpdateConversation),gn.on(Tt.SWITCH_CONVERSATION,this.switchConversation),gn.off(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged),gn.on(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged),gn.on(Tt.CONVERSATION_INFO_CHANGED,this.handleConversationInfoChanged),gn.on(Tt.CONNECTED,(function(t){t?e.getConversationList(!0):e.data=[]}))}},{key:"disconnectedCallback",value:function(){gn.off(Tt.CONVERSATION,this.getConversationList),gn.off(Tt.UPDATE_CONVERSATION,this.handleUpdateConversation),gn.off(Tt.SWITCH_CONVERSATION,this.switchConversation),gn.off(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged),gn.off(Tt.CONVERSATION_INFO_CHANGED,this.handleConversationInfoChanged),this.bscroll&&(this.bscroll.off("pullingUp",this.pullingUpHandler),this.bscroll.destroy())}},{key:"handleConversationInfoChanged",value:function(){this.getConversationList()}},{key:"getConversationList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return gn.getConversationList(t).then((function(t){e.data=t}))}},{key:"handleUpdateConversation",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var n=e.data.findIndex((function(e){return e.conversation&&Jt(e.conversation,t)}));-1!==n&&(e.data[n].conversation=t)})),t.length&&(this.data=zn(this.data))}},{key:"switchConversation",value:function(e){this.currentConversation=e}},{key:"createScroll",value:function(){var e=this;this.scrollWrapper&&(this.bscroll=new pi(this.scrollWrapper,{bindToWrapper:!0,mouseWheel:{throttleTime:30},scrollX:!1,scrollY:!0,pullUpLoad:!0,click:!0,bounce:{top:!1,bottom:!0,left:!1,right:!1}}),this.bscroll.on("pullingUp",this.pullingUpHandler),this.bscroll.scroller.actionsHandler.wrapperEventRegister.events.forEach((function(t){var n=t;"mousedown"===n.name&&(n.handler=Qi.bind(e.bscroll.scroller.actionsHandler))})))}},{key:"componentDidUpdate",value:function(){!this.bscroll&&this.scrollWrapper&&this.createScroll(),this.bscroll&&this.bscroll.refresh()}},{key:"pullingUpHandler",value:function(){var e=this;this.isPullUpLoad=!0,setTimeout((function(){e.getConversationList(!0).then((function(){setTimeout((function(){e.isPullUpLoad=!1,e.bscroll.finishPullUp()}),200)}))}),1e3)}},{key:"handleConversationRightClick",value:function(e,t){t.preventDefault();var n=t.clientY,r=t.clientX;this.contextMenuData={visible:!0,position:{top:n,left:r},topStatus:e.isTop,notificationStatus:1===e.notificationStatus},this.operatedConversation=e}},{key:"hideContextMenu",value:function(){this.contextMenuData={visible:!1}}},{key:"handleTopStatusChange",value:function(e){void 0!==e&&gn.setConversationToTop({conversationType:this.operatedConversation.conversationType,targetId:this.operatedConversation.targetId,channelId:this.operatedConversation.channelId},e.detail)}},{key:"handleNotificationStatusChange",value:function(e){void 0!==e&&gn.setConversationNotificationStatus({conversationType:this.operatedConversation.conversationType,targetId:this.operatedConversation.targetId,channelId:this.operatedConversation.channelId},e.detail?_t["i"].OPEN:_t["i"].CLOSE)}},{key:"handleDelete",value:function(){var e=this,t={conversationType:this.operatedConversation.conversationType,targetId:this.operatedConversation.targetId,channelId:this.operatedConversation.channelId||""};gn.deleteConversation(t).then((function(){e.getConversationList(!0),e.deleteConversation.emit(t)}))}},{key:"handleSelectConversation",value:function(e){gn.selectConversation(e.detail),this.tapConversation.emit(e.detail)}},{key:"isHover",value:function(e){return!!this.currentConversation&&(e.channelId===this.currentConversation.channelId&&e.targetId===this.currentConversation.targetId&&e.conversationType===this.currentConversation.conversationType)}},{key:"getPullupTip",value:function(){this.locale=this.lang?Sn[this.lang]:Sn.zh_CN;var e=this.locale;return this.isPullUpLoad?W("div",{class:"after-trigger"},W("span",{class:"pullup-txt"},e.conversation.loading)):"ontouchstart"in window&&!this.isPullUpLoad?W("div",{class:"before-trigger"},W("span",{class:"pullup-txt"},e.conversation.forMore)):null}},{key:"handleMouseLeave",value:function(){this.bscroll&&(this.bscroll.stop(),this.bscroll.scroller.actionsHandler.setInitiated())}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"render",value:function(){var e=this;this.locale=this.lang?Sn[this.lang]:Sn.zh_CN;var t=this.contextMenuData,n=this.locale;return W("div",{class:"conversation-wrapper",style:{fontSize:this.baseSize}},this.data.length?W("conversation-context-menu",Object.assign({},t,{conversation:this.operatedConversation,onHide:this.hideContextMenu,onTopStatusChange:this.handleTopStatusChange,onNotificationStatusChange:this.handleNotificationStatusChange,onDelete:this.handleDelete,customMenu:this.customMenu})):null,this.data.length?W("div",{class:"conversation-container",ref:function(t){return e.scrollWrapper=t,e.scrollWrapper}},W("div",{class:"conversation-scroll-wrapper",onMouseLeave:this.handleMouseLeave},W("div",{class:"conversation-list"},this.data.map((function(t){return W("conversation-item",{key:"".concat(t.conversation.targetId,"_").concat(t.conversation.channelId,"_").concat(t.conversation.conversationType),isHover:e.isHover(t.conversation),data:t,onContextMenu:function(n){return e.handleConversationRightClick(t.conversation,n)},onSelectConversation:e.handleSelectConversation})}))),W("div",{class:"pullup-tips"},this.data.length?this.getPullupTip():null))):W("div",{class:"no-data"},W("span",null,n.conversation.noData)))}}],[{key:"style",get:function(){return Vi}}]),n}(Et(HTMLElement)),Wi=".member-list{min-width:14em;max-width:30em;max-height:16em;background:#ffffff;-webkit-box-shadow:0em 0em 1.5em 0.3em rgba(100, 102, 109, 0.19);box-shadow:0em 0em 1.5em 0.3em rgba(100, 102, 109, 0.19);border-radius:0.4em;overflow:auto;position:fixed}.member-list ul{padding:0;margin:0;list-style:none}.member-list li{width:100%;height:4em;line-height:4em;cursor:pointer;padding:0 1em;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:1.3em}.member-list li:hover{background:#dfdfdf}",Ki=function(e){Ot(n,e);var t=Lt(n);function n(){var e;return Qt(this,n),e=t.call(this),e.__registerHost(),e.close=be(jt(e),"close",7),e.selectMember=be(jt(e),"selectMember",7),e.visible=!1,e.memberList=[],e.position={left:0,top:0},e.lang=gn.lang,e.selected=!1,e.selectMemberHandler=e.selectMemberHandler.bind(jt(e)),e.closeHandler=e.closeHandler.bind(jt(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(jt(e)),e.handleGroupInfoChanged=e.handleGroupInfoChanged.bind(jt(e)),e}return Zt(n,[{key:"validateWatchConversation",value:function(e,t){e.conversationType===t.conversationType&&e.channelId===t.channelId&&e.targetId===t.targetId||this.getMemberList()}},{key:"validateWatchVisible",value:function(e,t){e&&e!==t&&this.calcPopPosition()}},{key:"componentWillLoad",value:function(){window.addEventListener("click",this.closeHandler,!1),gn.off(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged),gn.on(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged),gn.on(Tt.GROUP_INFO_CHANGED,this.handleGroupInfoChanged),this.getMemberList()}},{key:"disconnectedCallback",value:function(){gn.off(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged),gn.off(Tt.GROUP_INFO_CHANGED,this.handleGroupInfoChanged),window.removeEventListener("click",this.closeHandler,!1)}},{key:"closeHandler",value:function(){this.close.emit(this.selected),this.selected=!1}},{key:"getMemberList",value:function(){var e=this;this.conversation&&this.conversation.conversationType===_t["a"].GROUP&&gn.getGroupMembers(this.conversation).then((function(t){if(t){e.memberList=Gt(t);var n=Object(_t["u"])(),r=e.memberList.findIndex((function(e){return e.id===n}));-1!==r&&e.memberList.splice(r,1)}else e.memberList=[]}))}},{key:"selectMemberHandler",value:function(e){var t=e.target,n=t.getAttribute("data-id");if(n){var r=t.getAttribute("data-name");this.selectMember.emit({id:n,value:r}),this.selected=!0}else this.selected=!1}},{key:"calcPopPosition",value:function(){var e=this;this.visible&&setTimeout((function(){var t=e.targetRect||{x:0,y:0,height:0,width:0,bottom:0,top:0,left:0,right:0};if(!e.listRef)return t;var n={left:t.x,top:t.y},r=e.listRef.getBoundingClientRect(),i=r.width||r.right-r.left,o=r.height||r.bottom-r.top,s=document.documentElement.clientWidth,a=document.documentElement.clientHeight,c=t.x,u=t.y+t.height;return n.left=c+i>s?s-i:c<0?0:c,u+o>a?n.top=a-o:n.top<0?n.top=0:n.top=u,e.position=n,null}),17)}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"handleGroupInfoChanged",value:function(e){this.memberList=e}},{key:"render",value:function(){var e=this;this.locale=this.lang?Sn[this.lang]:Sn.zh_CN;var t=this.memberList,n=this.visible,r=this.position,i=this.locale;return W("div",{class:"member-list",ref:function(t){return e.listRef=t,e.listRef},style:{display:n?"block":"none",left:"".concat(r.left,"px"),top:"".concat(r.top,"px")}},W("ul",{onClick:this.selectMemberHandler},W("li",{"data-id":"all","data-name":i.other.all},i.other.all),t.map((function(e){return W("li",{"data-id":e.id,"data-name":e.groupNickname||e.name||e.id},e.groupNickname||e.name||e.id)}))))}}],[{key:"watchers",get:function(){return{conversation:["validateWatchConversation"],visible:["validateWatchVisible"]}}},{key:"style",get:function(){return Wi}}]),n}(Et(HTMLElement)),qi=".message-context-menu{font-size:2em;position:fixed;top:0;left:0;z-index:1;min-width:7em;background:#FFFFFF;-webkit-box-shadow:0em 0em 0.75em 0.15em rgba(100, 102, 109, 0.19);box-shadow:0em 0em 0.75em 0.15em rgba(100, 102, 109, 0.19);border-radius:0.2em}.message-context-menu ul{list-style:none;padding:0;margin:0}.message-context-menu ul li{list-style:none;line-height:2;text-align:center;background:#fff;height:3em;line-height:3em;cursor:pointer;padding:0 1em;color:#111F2C}.message-context-menu ul li:hover{background:#F2F8FF}",Ji=function(e){Ot(n,e);var t=Lt(n);function n(){var e;return Qt(this,n),e=t.call(this),e.__registerHost(),e.position={top:0,left:0},e.visible=!1,e.lang=gn.lang,e.isShowForward=!1,e.msgType=["RC:TxtMsg","RC:FileMsg","RC:ImgMsg"],e.handleCopy=e.handleCopy.bind(jt(e)),e.handleReference=e.handleReference.bind(jt(e)),e.handleRecall=e.handleRecall.bind(jt(e)),e.handleDelete=e.handleDelete.bind(jt(e)),e.handlForward=e.handlForward.bind(jt(e)),e.hide=e.hide.bind(jt(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(jt(e)),e}return Zt(n,[{key:"watchPosition",value:function(){this.visible||(this.visible=!0)}},{key:"watchMessage",value:function(){}},{key:"componentWillLoad",value:function(){document.body.addEventListener("mouseup",this.hide,!1),window.addEventListener("blur",this.hide,!1),gn.on(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){document.body.removeEventListener("mouseup",this.hide,!1),window.removeEventListener("blur",this.hide,!1),gn.off(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"handleCopy",value:function(){var e;switch(this.message.messageType){case _t["h"].TEXT:e={"text/plain":new Blob([this.message.content.content],{type:"text/plain"})};break;default:e=null}if(!e)throw new Error("No data copied");try{if(navigator.clipboard){var t=navigator.clipboard;return void t.write([new Clipboard(e)])}var n=document.createElement("input");n.setAttribute("id","COPY_INPUT"),n.style.position="fixed",n.style.left="-100%",n.style.top="0",n.style.zIndex="-100",n.style.opacity="0",document.body.appendChild(n),n.value=this.message.content.content,n.focus(),n.select(),document.execCommand("copy")&&document.execCommand("copy")}catch(cs){bt["J"].info(At.A_KIT_COPY_FAILE_O,{msg:"Failed to copy",e:cs})}}},{key:"handleReference",value:function(){this.message&&gn.referenceMessage(this.message)}},{key:"handleRecall",value:function(){this.message&&this.message.messageDirection===_t["g"].SEND&&gn.recallMessage(this.message)}},{key:"handleDelete",value:function(){this.message&&gn.deleteMessage(this.message)}},{key:"handlForward",value:function(){var e=this;if(this.message){var t=this.forwardList.callback(this.message);Object(bt["z"])(t)?Object(bt["K"])(t)?t.length>6?bt["J"].error(At.A_KIT_FORWARD_O,"Forwarding quantity exceeds the limit"):t.forEach((function(t){var n,r=e.message.content;switch(e.message.messageType){case"RC:TxtMsg":n=new _t["l"]({content:r.content});break;case"RC:ImgMsg":n=new _t["e"]({content:r.content,imageUri:r.imageUri});break;case"RC:FileMsg":n=new _t["d"]({name:r.name,size:r.size,type:r.type,fileUrl:r.fileUrl});break}var i={conversationType:t.conversationType,targetId:t.targetId};gn.sendMessage(i,n,null)})):bt["J"].error(At.A_KIT_FORWARD_O,"Forwarding list is empty"):bt["J"].error(At.A_KIT_FORWARD_O,"Forwardlist needs to return an array")}}},{key:"hide",value:function(e){2!==e.button&&this.hide&&(this.visible=!1)}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"createCustomMenu",value:function(){var e=this;if(!this.customMenu||!this.message)return[];var t=[];return this.customMenu.forEach((function(n){var r=n.name(Pt({},e.message));r&&t.push({name:r,callback:function(){return n.callback(Pt({},e.message))}})})),t}},{key:"render",value:function(){var e,t,n=this;this.locale=this.lang?Sn[this.lang]:Sn.zh_CN;var r=this.locale,i=this.message,o=this.createCustomMenu();this.isShowForward=!(!this.forwardList||!this.forwardList.callback);var s=document.documentElement.clientHeight,a=document.documentElement.clientWidth,c=2;i&&i.messageType===_t["h"].TEXT&&++c,(i&&i.messageDirection)===_t["g"].SEND&&++c,this.isShowForward&&++c,c+=o.length;var u=(null===(e=this.contextMenu)||void 0===e?void 0:e.childNodes[0].childNodes[0].clientHeight)*c||0,l=(null===(t=this.contextMenu)||void 0===t?void 0:t.childNodes[0].clientWidth)||0,f=function(){return n.position?s-n.position.top<u?n.position.top-u:n.position.top:0},h=function(){return n.position?a-n.position.left<l?n.position.left-l:n.position.left:0};return W("div",{class:"message-context-menu",style:{"z-index":this.visible?"1":"-1",display:"block",opacity:this.visible?"1":"0",left:"".concat(h(),"px"),top:"".concat(f(),"px")},ref:function(e){return n.contextMenu=e,n.contextMenu}},W("ul",null,i&&i.messageType===_t["h"].TEXT?W("li",{onClick:this.handleCopy},r.message.copy):null,W("li",{onClick:this.handleReference},r.message.quote),(i&&i.messageDirection)===_t["g"].SEND?W("li",{onClick:this.handleRecall},r.message.recall):null,W("li",{onClick:this.handleDelete},r.message["delete"]),this.isShowForward&&i&&this.msgType.indexOf(i.messageType)>-1?W("li",{onClick:this.handlForward},r.message.forward):null,o.map((function(e){return W("li",{onClick:e.callback},e.name)}))))}}],[{key:"watchers",get:function(){return{position:["watchPosition"],message:["watchMessage"]}}},{key:"style",get:function(){return qi}}]),n}(Et(HTMLElement)),Xi=".message-editor-wrapper{position:relative;width:100%;height:100%;min-width:10em;min-height:10em;text-align:left;background:#fbfbfc;border-top:1px solid rgb(227, 229, 230)}.editor-body{width:100%;height:100%}.editor-tool-bar{width:100%;height:4em}.editor-content-wrapper{width:100%;height:calc(100% - 7.5em);padding:0.5em 1em;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.editor-tool-bar{padding:3em 0 0.5em 4em}.editor-tool-bar .buttons .button{width:3.6em;height:3.6em;overflow:hidden;display:inline-block;text-align:center;line-height:3em;margin:0 3em 0 0;border-radius:0.5em;cursor:pointer;overflow:hidden}.editor-tool-bar .buttons .button input{display:none}.editor-tool-bar .buttons .button .label{display:block;width:3.6em;padding:3.6em 0 0;height:0;overflow:hidden;background-repeat:no-repeat;background-size:contain}.editor-tool-bar .buttons .button.image-btn .label{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzZweCIgaGVpZ2h0PSIzNnB4IiB2aWV3Qm94PSIwIDAgMzYgMzYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5Zu+54mHaWNvbjwvdGl0bGU+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIwM1/lkJHkuIvmu5rliqjml7Zsb2FkaW5nIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNDg3LjAwMDAwMCwgLTcxMC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IuWbvueJh2ljb24iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQ4Ny4wMDAwMDAsIDcxMC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTMwLjU5MDE2MzksNSBDMzEuMjU0NDc3Niw1IDMxLjg1NTgwNyw1LjI3MjE2MzE4IDMyLjI5MTMyMjksNS43MTA3NjA2MSBDMzIuNzI5MzgyNiw2LjE1MTkxOTczIDMzLDYuNzYxMzc4NTcgMzMsNy40MzM5NjIyNiBMMzMsNy40MzM5NjIyNiBMMzMsMjguNTY2MDM3NyBDMzMsMjkuMjM4NjIxNCAzMi43MjkzODI2LDI5Ljg0ODA4MDMgMzIuMjkxMzIyOSwzMC4yODkyMzk0IEMzMS44NTU4MDcsMzAuNzI3ODM2OCAzMS4yNTQ0Nzc2LDMxIDMwLjU5MDE2MzksMzEgTDMwLjU5MDE2MzksMzEgTDUuNDA5ODM2MDcsMzEgQzQuNzcxNDc4LDMxIDQuMTU5NTg0OTUsMzAuNzQ0MDcxIDMuNzA4MzEyOTcsMzAuMjg5NjA2MSBDMy4yNTQ0MDU4MywyOS44MzI0ODczIDMsMjkuMjEyMzQzNSAzLDI4LjU2NjAzNzcgTDMsMjguNTY2MDM3NyBMMyw3LjQzMzk2MjI2IEMzLDYuNzYxMzc4NTcgMy4yNzA2MTc0Myw2LjE1MTkxOTczIDMuNzA4Njc3MDgsNS43MTA3NjA2MSBDNC4xNDQxOTMwMyw1LjI3MjE2MzE4IDQuNzQ1NTIyNCw1IDUuNDA5ODM2MDcsNSBMNS40MDk4MzYwNyw1IFoiIGlkPSLot6/lvoQiIHN0cm9rZT0iIzc3Nzc3NyIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0yNC4zMjM1NDYyLDE2Ljc1Mzg3NTkgQzI1LjEyMjQ1ODksMTYuNjk2NDUxMSAyNS45MzcwMzc0LDE2Ljg0NTc5MSAyNi42Nzk5NjAxLDE3LjIwODk0OTMgTDI2LjY3OTk2MDEsMTcuMjA4OTQ5MyBMMzAuNTE2ODEyNCwxOS4wODMxNDM5IEMzMS4yNzg3ODQ4LDE5LjQ1NTU3NTIgMzEuOTAxMTEwOCwyMC4wMjE3NzQzIDMyLjMzMjMyNzEsMjAuNzAzODUwNSBDMzIuNzYwNDkyMiwyMS4zODExMDA3IDMzLDIyLjE3MjUzOTYgMzMsMjIuOTk5NjYyNiBMMzMsMjIuOTk5NjYyNiBMMzMsMjguNjY3NjgwNSBDMzMsMjkuMzA4ODQ1NiAzMi43MzE4Nzc1LDI5Ljg4ODQ0MzggMzIuMzAyMTI2MiwzMC4zMDg1MTY0IEMzMS44NjQwMzM2LDMwLjczNjc0MjUgMzEuMjU4NDYyNCwzMC45OTk5OTk2IDMwLjU5MDkwMjUsMzAuOTk5OTk5NiBMMzAuNTkwOTAyNSwzMC45OTk5OTk2IEw1Ljk3OTc4MjIsMzAuOTk5OTk5OCBDNS43MjU1NTQ0NiwzMS4wMDAxNDgxIDUuNDg1NjM4MDEsMzAuOTIwNDIxNCA1LjI5MDM3MTk0LDMwLjc4MDU1NjIgQzUuMTAxMzMwOTQsMzAuNjQ1MTQ5OSA0Ljk1NDExMjE3LDMwLjQ1MzAyNjEgNC44Nzk5NjA4LDMwLjIyMzEzMiBDNC44MDczNDIyNywyOS45OTc5OTAyIDQuODEzNjgyNjYsMjkuNzYyODQwOSA0Ljg4NzYxOTkxLDI5LjU1MDE1OTQgQzQuOTYzMjEzMzYsMjkuMzMyNzEzOCA1LjEwOTAwNzYsMjkuMTM5MjI0OCA1LjMxMTQ1OTczLDI5LjAwMDg0NDEgTDUuMzExNDU5NzMsMjkuMDAwODQ0MSBMMjIuMDYzMTA4MywxNy41Mzk4MDg2IEMyMi43NDI3NjU3LDE3LjA3NDk2NDYgMjMuNTI1NDg1NywxNi44MTEyMzk1IDI0LjMyMzU0NjIsMTYuNzUzODc1OSBaIiBpZD0i6Lev5b6EIiBzdHJva2U9IiM3Nzc3NzciIHN0cm9rZS13aWR0aD0iMiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTAuNjg1NzE0MywxNC44Mzg3MDk3IEMxMS45NDgwNzk0LDE0LjgzODcwOTcgMTIuOTcxNDI4NiwxMy44Mjc3Mzk4IDEyLjk3MTQyODYsMTIuNTgwNjQ1MiBDMTIuOTcxNDI4NiwxMS4zMzM1NTA2IDExLjk0ODA3OTQsMTAuMzIyNTgwNiAxMC42ODU3MTQzLDEwLjMyMjU4MDYgQzkuNDIzMzQ5MTIsMTAuMzIyNTgwNiA4LjQsMTEuMzMzNTUwNiA4LjQsMTIuNTgwNjQ1MiBDOC40LDEzLjgyNzczOTcgOS40MjMzNDkxMiwxNC44Mzg3MDk3IDEwLjY4NTcxNDMsMTQuODM4NzA5NyBMMTAuNjg1NzE0MywxNC44Mzg3MDk3IFoiIGlkPSLot6/lvoQiIGZpbGw9IiM3Nzc3NzciIGZpbGwtcnVsZT0ibm9uemVybyI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.editor-tool-bar .buttons .button.image-btn .label:hover{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzZweCIgaGVpZ2h0PSIzNnB4IiB2aWV3Qm94PSIwIDAgMzYgMzYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5Zu+54mHaWNvbjwvdGl0bGU+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIxN1/ljZXogYot5Y+R6YCB5Zu+54mH5raI5oGvIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNDg3LjAwMDAwMCwgLTg2MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IuWbvueJh2ljb24iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQ4Ny4wMDAwMDAsIDg2MC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTMwLjU5MDE2MzksNSBDMzEuMjU0NDc3Niw1IDMxLjg1NTgwNyw1LjI3MjE2MzE4IDMyLjI5MTMyMjksNS43MTA3NjA2MSBDMzIuNzI5MzgyNiw2LjE1MTkxOTczIDMzLDYuNzYxMzc4NTcgMzMsNy40MzM5NjIyNiBMMzMsNy40MzM5NjIyNiBMMzMsMjguNTY2MDM3NyBDMzMsMjkuMjM4NjIxNCAzMi43MjkzODI2LDI5Ljg0ODA4MDMgMzIuMjkxMzIyOSwzMC4yODkyMzk0IEMzMS44NTU4MDcsMzAuNzI3ODM2OCAzMS4yNTQ0Nzc2LDMxIDMwLjU5MDE2MzksMzEgTDMwLjU5MDE2MzksMzEgTDUuNDA5ODM2MDcsMzEgQzQuNzcxNDc4LDMxIDQuMTU5NTg0OTUsMzAuNzQ0MDcxIDMuNzA4MzEyOTcsMzAuMjg5NjA2MSBDMy4yNTQ0MDU4MywyOS44MzI0ODczIDMsMjkuMjEyMzQzNSAzLDI4LjU2NjAzNzcgTDMsMjguNTY2MDM3NyBMMyw3LjQzMzk2MjI2IEMzLDYuNzYxMzc4NTcgMy4yNzA2MTc0Myw2LjE1MTkxOTczIDMuNzA4Njc3MDgsNS43MTA3NjA2MSBDNC4xNDQxOTMwMyw1LjI3MjE2MzE4IDQuNzQ1NTIyNCw1IDUuNDA5ODM2MDcsNSBMNS40MDk4MzYwNyw1IFoiIGlkPSLot6/lvoQiIHN0cm9rZT0iIzAwOTlGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0yNC4zMjM1NDYyLDE2Ljc1Mzg3NTkgQzI1LjEyMjQ1ODksMTYuNjk2NDUxMSAyNS45MzcwMzc0LDE2Ljg0NTc5MSAyNi42Nzk5NjAxLDE3LjIwODk0OTMgTDI2LjY3OTk2MDEsMTcuMjA4OTQ5MyBMMzAuNTE2ODEyNCwxOS4wODMxNDM5IEMzMS4yNzg3ODQ4LDE5LjQ1NTU3NTIgMzEuOTAxMTEwOCwyMC4wMjE3NzQzIDMyLjMzMjMyNzEsMjAuNzAzODUwNSBDMzIuNzYwNDkyMiwyMS4zODExMDA3IDMzLDIyLjE3MjUzOTYgMzMsMjIuOTk5NjYyNiBMMzMsMjIuOTk5NjYyNiBMMzMsMjguNjY3NjgwNSBDMzMsMjkuMzA4ODQ1NiAzMi43MzE4Nzc1LDI5Ljg4ODQ0MzggMzIuMzAyMTI2MiwzMC4zMDg1MTY0IEMzMS44NjQwMzM2LDMwLjczNjc0MjUgMzEuMjU4NDYyNCwzMC45OTk5OTk2IDMwLjU5MDkwMjUsMzAuOTk5OTk5NiBMMzAuNTkwOTAyNSwzMC45OTk5OTk2IEw1Ljk3OTc4MjIsMzAuOTk5OTk5OCBDNS43MjU1NTQ0NiwzMS4wMDAxNDgxIDUuNDg1NjM4MDEsMzAuOTIwNDIxNCA1LjI5MDM3MTk0LDMwLjc4MDU1NjIgQzUuMTAxMzMwOTQsMzAuNjQ1MTQ5OSA0Ljk1NDExMjE3LDMwLjQ1MzAyNjEgNC44Nzk5NjA4LDMwLjIyMzEzMiBDNC44MDczNDIyNywyOS45OTc5OTAyIDQuODEzNjgyNjYsMjkuNzYyODQwOSA0Ljg4NzYxOTkxLDI5LjU1MDE1OTQgQzQuOTYzMjEzMzYsMjkuMzMyNzEzOCA1LjEwOTAwNzYsMjkuMTM5MjI0OCA1LjMxMTQ1OTczLDI5LjAwMDg0NDEgTDUuMzExNDU5NzMsMjkuMDAwODQ0MSBMMjIuMDYzMTA4MywxNy41Mzk4MDg2IEMyMi43NDI3NjU3LDE3LjA3NDk2NDYgMjMuNTI1NDg1NywxNi44MTEyMzk1IDI0LjMyMzU0NjIsMTYuNzUzODc1OSBaIiBpZD0i6Lev5b6EIiBzdHJva2U9IiMwMDk5RkYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTAuNjg1NzE0MywxNC44Mzg3MDk3IEMxMS45NDgwNzk0LDE0LjgzODcwOTcgMTIuOTcxNDI4NiwxMy44Mjc3Mzk4IDEyLjk3MTQyODYsMTIuNTgwNjQ1MiBDMTIuOTcxNDI4NiwxMS4zMzM1NTA2IDExLjk0ODA3OTQsMTAuMzIyNTgwNiAxMC42ODU3MTQzLDEwLjMyMjU4MDYgQzkuNDIzMzQ5MTIsMTAuMzIyNTgwNiA4LjQsMTEuMzMzNTUwNiA4LjQsMTIuNTgwNjQ1MiBDOC40LDEzLjgyNzczOTcgOS40MjMzNDkxMiwxNC44Mzg3MDk3IDEwLjY4NTcxNDMsMTQuODM4NzA5NyBMMTAuNjg1NzE0MywxNC44Mzg3MDk3IFoiIGlkPSLot6/lvoQiIGZpbGw9IiMwMDk5RkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.editor-tool-bar .buttons .button.file-btn .label{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzZweCIgaGVpZ2h0PSIzNnB4IiB2aWV3Qm94PSIwIDAgMzYgMzYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5paH5Lu2aWNvbjwvdGl0bGU+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIwM1/lkJHkuIvmu5rliqjml7Zsb2FkaW5nIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNTUzLjAwMDAwMCwgLTcxMC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IuaWh+S7tmljb24iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDU1My4wMDAwMDAsIDcxMC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTMxLjUsNSBDMzIuMTkwNTY5Miw1IDMyLjgxNTYxNjgsNS4yNzk2MzUwNSAzMy4yNjc5OTA5LDUuNzMyMDA5MTIgQzMzLjcyMDM2NDksNi4xODQzODMyIDM0LDYuODA5NDMwOCAzNCw3LjUgTDM0LDcuNSBMMzQsMjguNSBDMzQsMjkuMTkwNTY5MiAzMy43MjAzNjQ5LDI5LjgxNTYxNjggMzMuMjY3OTkwOSwzMC4yNjc5OTA5IEMzMi44MTU2MTY4LDMwLjcyMDM2NDkgMzIuMTkwNTY5MiwzMSAzMS41LDMxIEwzMS41LDMxIEw1LjUsMzEgQzQuODA5NDMwOCwzMSA0LjE4NDM4MzIsMzAuNzIwMzY0OSAzLjczMjAwOTEyLDMwLjI2Nzk5MDkgQzMuMjc5NjM1MDUsMjkuODE1NjE2OCAzLDI5LjE5MDU2OTIgMywyOC41IEwzLDI4LjUgTDMsMTEgQzMsMTAuMzA5NDMwOCAzLjI3OTYzNTA1LDkuNjg0MzgzMiAzLjczMjAwOTEyLDkuMjMyMDA5MTIgQzQuMTg0MzgzMiw4Ljc3OTYzNTA1IDQuODA5NDMwOCw4LjUgNS41LDguNSBMNS41LDguNSBMMTcuOTE0MjEzNiw4LjUgTDIxLjE5NTM4OCw1LjIxODgyNTUzIEMyMS4zMzYxNDA5LDUuMDc4MDcyNjggMjEuNTI3MzQzNyw1IDIxLjcyNjU2MjUsNSBMMjEuNzI2NTYyNSw1IFoiIGlkPSLot6/lvoQiIHN0cm9rZT0iIzc3Nzc3NyIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4LjUwMDAwMCwgMTguMDAwMDAwKSBzY2FsZSgtMSwgMSkgdHJhbnNsYXRlKC0xOC41MDAwMDAsIC0xOC4wMDAwMDApICI+PC9wYXRoPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTI3LjcyMjIyMjIsMjcgTDkuMjc3Nzc3NzgsMjcgQzguNTcxMDA2OTQsMjcgOCwyNi41NTMxMjUgOCwyNiBDOCwyNS40NDY4NzUgOC41NzEwMDY5NCwyNSA5LjI3Nzc3Nzc4LDI1IEwyNy43MjIyMjIyLDI1IEMyOC40Mjg5OTMxLDI1IDI5LDI1LjQ0Njg3NSAyOSwyNiBDMjksMjYuNTUzMTI1IDI4LjQyODk5MzEsMjcgMjcuNzIyMjIyMiwyNyBaIiBpZD0i6Lev5b6EIiBmaWxsPSIjNzc3Nzc3IiBmaWxsLXJ1bGU9Im5vbnplcm8iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4LjUwMDAwMCwgMjYuMDAwMDAwKSBzY2FsZSgtMSwgMSkgdHJhbnNsYXRlKC0xOC41MDAwMDAsIC0yNi4wMDAwMDApICI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.editor-tool-bar .buttons .button.file-btn .label:hover{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzZweCIgaGVpZ2h0PSIzNnB4IiB2aWV3Qm94PSIwIDAgMzYgMzYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5paH5Lu2aWNvbjwvdGl0bGU+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIxOV/ljZXogYot5paH5Lu25LiK5Lyg5LitIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNTUzLjAwMDAwMCwgLTcxMC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IuaWh+S7tmljb24iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDU1My4wMDAwMDAsIDcxMC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTMxLjUsNSBDMzIuMTkwNTY5Miw1IDMyLjgxNTYxNjgsNS4yNzk2MzUwNSAzMy4yNjc5OTA5LDUuNzMyMDA5MTIgQzMzLjcyMDM2NDksNi4xODQzODMyIDM0LDYuODA5NDMwOCAzNCw3LjUgTDM0LDcuNSBMMzQsMjguNSBDMzQsMjkuMTkwNTY5MiAzMy43MjAzNjQ5LDI5LjgxNTYxNjggMzMuMjY3OTkwOSwzMC4yNjc5OTA5IEMzMi44MTU2MTY4LDMwLjcyMDM2NDkgMzIuMTkwNTY5MiwzMSAzMS41LDMxIEwzMS41LDMxIEw1LjUsMzEgQzQuODA5NDMwOCwzMSA0LjE4NDM4MzIsMzAuNzIwMzY0OSAzLjczMjAwOTEyLDMwLjI2Nzk5MDkgQzMuMjc5NjM1MDUsMjkuODE1NjE2OCAzLDI5LjE5MDU2OTIgMywyOC41IEwzLDI4LjUgTDMsMTEgQzMsMTAuMzA5NDMwOCAzLjI3OTYzNTA1LDkuNjg0MzgzMiAzLjczMjAwOTEyLDkuMjMyMDA5MTIgQzQuMTg0MzgzMiw4Ljc3OTYzNTA1IDQuODA5NDMwOCw4LjUgNS41LDguNSBMNS41LDguNSBMMTcuOTE0MjEzNiw4LjUgTDIxLjE5NTM4OCw1LjIxODgyNTUzIEMyMS4zMzYxNDA5LDUuMDc4MDcyNjggMjEuNTI3MzQzNyw1IDIxLjcyNjU2MjUsNSBMMjEuNzI2NTYyNSw1IFoiIGlkPSLot6/lvoQiIHN0cm9rZT0iIzAwOTlGRiIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4LjUwMDAwMCwgMTguMDAwMDAwKSBzY2FsZSgtMSwgMSkgdHJhbnNsYXRlKC0xOC41MDAwMDAsIC0xOC4wMDAwMDApICI+PC9wYXRoPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTI3LjcyMjIyMjIsMjcgTDkuMjc3Nzc3NzgsMjcgQzguNTcxMDA2OTQsMjcgOCwyNi41NTMxMjUgOCwyNiBDOCwyNS40NDY4NzUgOC41NzEwMDY5NCwyNSA5LjI3Nzc3Nzc4LDI1IEwyNy43MjIyMjIyLDI1IEMyOC40Mjg5OTMxLDI1IDI5LDI1LjQ0Njg3NSAyOSwyNiBDMjksMjYuNTUzMTI1IDI4LjQyODk5MzEsMjcgMjcuNzIyMjIyMiwyNyBaIiBpZD0i6Lev5b6EIiBmaWxsPSIjMDA5OUZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4LjUwMDAwMCwgMjYuMDAwMDAwKSBzY2FsZSgtMSwgMSkgdHJhbnNsYXRlKC0xOC41MDAwMDAsIC0yNi4wMDAwMDApICI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.error-tip{width:300px;height:50px;position:fixed;top:0;left:0;right:0;bottom:0;margin:auto;background:#f56c6c;line-height:50px;color:#fff;font-size:20px;border-radius:8px}",eo=function(e){Ot(n,e);var t=Lt(n);function n(){var e;return Qt(this,n),e=t.call(this),e.__registerHost(),e.baseSize="16px",e.showMemberList=!1,e.isError=!1,e.lang=gn.lang,e.connected=!0,e.content="",e.switchConversation=e.switchConversation.bind(jt(e)),e.sendFileMessage=e.sendFileMessage.bind(jt(e)),e.sendImageMessage=e.sendImageMessage.bind(jt(e)),e.handlePostMessage=e.handlePostMessage.bind(jt(e)),e.handleEditorChange=e.handleEditorChange.bind(jt(e)),e.handleReferenceMessage=e.handleReferenceMessage.bind(jt(e)),e.handleCloseReference=e.handleCloseReference.bind(jt(e)),e.handleConnected=e.handleConnected.bind(jt(e)),e.handleConnecting=e.handleConnecting.bind(jt(e)),e.handleSuspend=e.handleSuspend.bind(jt(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(jt(e)),e}return Zt(n,[{key:"checkMentioned",value:function(){var e={mentionedUserIdList:[],mentionedType:_t["f"].SINGAL},t=document.createElement("div");t.innerHTML=this.content;var n=t.querySelectorAll("span.at-span");if(n.length){for(var r=0;r<n.length;r++){var i=n[r],o=i.getAttribute("data-id");if("all"===o){e.mentionedType=_t["f"].ALL,e.mentionedUserIdList.length=0;break}-1===e.mentionedUserIdList.indexOf(o)&&e.mentionedUserIdList.push(o)}return e}return null}},{key:"handlePostMessage",value:function(e){var t=e.detail;if(t&&this.connected){var n,r,i=this.checkMentioned();if(t=t.replace(/<br\s?\/?>/gi,"\n"),t=t.replace(/ /gi," "),t=Pn(t),this.referenceMessage)n=new _t["k"]({referMsgUserId:this.referenceMessage.message.senderUserId,referMsg:this.referenceMessage.message.content,content:t,objName:this.referenceMessage.message.messageType});else{var o={content:t};r=i?Pt({isMentioned:!0},i):void 0,r||(o.mentionedInfo=r),n=new _t["l"](o)}gn.sendMessage(this.conversation,n,r),this.content=""}}},{key:"sendImageMessage",value:function(){var e=this,t=["image/jpeg","image/jpg","image/png"];if(this.connected){var n=this.imageInputRef.files;if(n.length){var r=n[0];if(-1===t.indexOf(n[0].type))return this.isError=!0,void setTimeout((function(){e.isError=!1}),2e3);gn.sendImageMessage(this.conversation,{file:r},{onProgress:function(){},onComplete:function(){}}),this.imageInputRef.value=""}}}},{key:"sendFileMessage",value:function(){if(this.connected){var e=this.fileInputRef.files;if(e.length){var t=e[0];gn.sendFileMessage(this.conversation,{file:t},{onProgress:function(){},onComplete:function(){}}),this.fileInputRef.value=""}}}},{key:"componentDidLoad",value:function(){this.draft&&(this.content=this.draft.text),Object(_t["n"])(_t["c"].CONNECTED,this.handleConnected),Object(_t["n"])(_t["c"].CONNECTING,this.handleConnecting),Object(_t["n"])(_t["c"].SUSPEND,this.handleSuspend)}},{key:"componentWillLoad",value:function(){this.conversation=gn.currentConversation,(gn.currentConversation&&gn.currentConversation.conversationType)===_t["a"].SYSTEM&&(this.conversation=null),gn.on(Tt.SWITCH_CONVERSATION,this.switchConversation),gn.on(Tt.REFERENCE_MESSAGE,this.handleReferenceMessage),gn.on(Tt.CLOSE_REFERENCE,this.handleCloseReference),gn.on(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){gn.off(Tt.SWITCH_CONVERSATION,this.switchConversation),gn.off(Tt.REFERENCE_MESSAGE,this.handleReferenceMessage),gn.off(Tt.CLOSE_REFERENCE,this.handleCloseReference),gn.off(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged),Object(_t["E"])(_t["c"].CONNECTED,this.handleConnected),Object(_t["E"])(_t["c"].CONNECTING,this.handleConnecting),Object(_t["E"])(_t["c"].SUSPEND,this.handleSuspend),this.content&&gn.saveTextMessageDraft(this.conversation,this.content)}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"handleConnected",value:function(){this.connected=!0}},{key:"handleConnecting",value:function(){this.connected=!1}},{key:"handleSuspend",value:function(){this.connected=!1}},{key:"handleReferenceMessage",value:function(e){this.referenceMessage={message:e,time:Date.now()}}},{key:"handleCloseReference",value:function(){this.referenceMessage=null}},{key:"switchConversation",value:function(e){var t=this;this.handleCloseReference(),this.conversation&&this.conversation!==e&&this.content&&gn.saveTextMessageDraft(this.conversation,this.content),this.conversation=e,this.draft={time:Date.now(),text:""},this.content="",e&&e.conversationType!==_t["a"].SYSTEM?Object(_t["x"])(this.conversation).then((function(e){0===e.code&&(e.data&&(t.draft={time:Date.now(),text:e.data},t.content=t.draft.text),Object(_t["p"])(t.conversation))})):this.conversation=null}},{key:"handleEditorChange",value:function(e){var t=e.detail;t=t.trim(),"<br>"===t&&(t=""),this.content=t}},{key:"onInputContent",value:function(){Object(_t["L"])(this.conversation,_t["h"].TEXT)}},{key:"render",value:function(){var e=this;this.locale=this.lang?Sn[this.lang]:Sn.zh_CN;var t=this.conversation,n=this.isError,r=this.locale;return t?W("div",{class:"message-editor-wrapper",style:{fontSize:this.baseSize}},W("reference-message",{referenceMessage:this.referenceMessage,onClose:this.handleCloseReference}),W("div",{class:"editor-body"},W("div",{class:"editor-tool-bar"},W("div",{class:"buttons"},W("div",{class:"button image-btn"},W("input",{type:"file",accept:"image/jpeg,image/jpg,image/png",ref:function(t){return e.imageInputRef=t,e.imageInputRef},onChange:this.sendImageMessage}),W("span",{class:"label",onClick:function(){return e.imageInputRef.click()}},r.messageEdit.picture),n?W("div",{class:"error-tip"},r.messageEdit.picError):""),W("div",{class:"button file-btn"},W("input",{type:"file",accept:"*",ref:function(t){return e.fileInputRef=t,e.fileInputRef},onChange:this.sendFileMessage}),W("span",{class:"label",onClick:function(){return e.fileInputRef.click()}},r.messageEdit.file)))),W("div",{class:"editor-content-wrapper"},W("content-editor",{conversation:this.conversation,onPost:this.handlePostMessage,onContentChange:this.handleEditorChange,onInputContent:this.onInputContent,value:this.draft})))):null}}],[{key:"style",get:function(){return Xi}}]),n}(Et(HTMLElement)),to=function(){function e(t,n){Qt(this,e),this.uid=t.messageUId,this.direction=t.messageDirection,this.content=t.content,this.callback=n,this.messageType=t.messageType,this.conversationType=t.conversationType,this.senderUserId=t.senderUserId,this.targetId=t.targetId,this.channelId=t.channelId}return Zt(e,[{key:"wrap",value:function(e){return W("div",{class:"message-content"},e)}}]),e}(),no={"application/zip":"file-zip","application/gzip":"file-zip","application/x-zip-compressed":"file-zip","application/x-tar":"file-zip","application/x-compressed":"file-zip","application/msword":"file-word","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"file-word","application/rtf":"file-text","application/vnd.ms-excel application/x-excel":"file-xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"file-xls","application/x-xls":"file-xls","text/csv":"file-xls","application/vnd.ms-excel":"file-xls","application/x-ppt":"file-ppt","application/vnd.ms-powerpoint":"file-ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"file-ppt","application/vnd.openxmlformats-officedocument.presentationml.slideshow":"file-ppt","application/pdf":"file-pdf","audio/mp3":"file-audio","audio/wav":"file-audio","audio/m3u":"file-audio","audio/midi":"file-audio","audio/flac":"file-audio","audio/ape":"file-audio","audio/x-ms-wma":"file-audio","video/mpeg4":"file-video","video/x-ms-wmv":"file-video","video/avi":"file-video","video/mpg":"file-video","video/mp4":"file-video","video/x-msvideo":"file-video","video/x-flv":"file-video","application/x-mpegURL":"file-video","video/3gpp":"file-video","text/plain":"file-plain","image/jpeg":"file-image","image/tiff":"file-image","image/png":"file-image","image/gif":"file-image","application/vnd.android.package-archive":"file-apk","application/xml":"file-text","application/rdf+xml":"file-text","application/rss+xml":"file-text","application/soap+xml":"file-text","application/atom+xml":"file-text","application/xhtml+xml":"file-text","text/html":"file-text","text/xml":"file-text","text/css":"file-text"};function ro(e){var t=e;return t<1024?"".concat(t,"B"):(t>1073741824?t="".concat((t/1024/1024/1024).toFixed(2),"G"):t>1048576?t="".concat((t/1024/1024).toFixed(2),"M"):t>1024&&(t="".concat((t/1024).toFixed(2),"K")),t)}var io=function(e){Ot(n,e);var t=Lt(n);function n(e,r){var i;return Qt(this,n),i=t.call(this,e,r),i.handleClick=i.handleClick.bind(jt(i)),i}return Zt(n,[{key:"handleClick",value:function(){"function"===typeof this.callback&&this.callback({type:"file",url:this.content.fileUrl,size:this.content.size,name:this.content.name,fileType:this.content.type})}},{key:"getFileIcon",value:function(e){var t=no[e];return t||"file-icon"}},{key:"create",value:function(){var e=this.content;return this.wrap(W("div",{class:"file-message-body","data-origin":e.imageUri},W("div",{class:"file-message-icon ".concat(this.getFileIcon(e.type))}),W("div",{class:"file-desc"},W("div",{class:"file-name",title:e.name},e.name),W("div",{class:"file-size"},ro(e.size))),this.uid.startsWith("sending_")||this.uid.startsWith("fail_")?null:W("div",{class:"file-download-btn",onClick:this.handleClick})))}}]),n}(to),oo=function(e){Ot(n,e);var t=Lt(n);function n(){return Qt(this,n),t.apply(this,arguments)}return Zt(n,[{key:"create",value:function(){var e=this.content;return this.wrap(W("div",{class:"gif-message-body"},W("img",{src:e.remoteUrl})))}}]),n}(to),so="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgMzIgMzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+6K+t6Z+z5aSH5Lu9IDI8L3RpdGxlPgogICAgPGcgaWQ9Iumhtemdoi0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMDVf5Y2V6IGKLeS4jeaUr+aMgeeahOa2iOaBr+exu+Weiy3or63pn7Pmtojmga8iIHRyYW5zZm9ybT0idHJhbnNsYXRlKC01ODQuMDAwMDAwLCAtNjA0LjAwMDAwMCkiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgICAgIDxnIGlkPSLnvJbnu4TlpIfku70tNSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTY0LjAwMDAwMCwgNTg5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9Iuivremfs+Wkh+S7vS0yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMC4wMDAwMDAsIDE1LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIGZpbGw9IiMwMDAwMDAiIG9wYWNpdHk9IjAiIHg9IjAiIHk9IjAiIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiI+PC9yZWN0PgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0xOS44ODAxNiwyOS45MiBMMTcuNjY3NTIsMjcuNzA3MiBDMjEuMDI5NzYsMjQuODMwMjQgMjMuMTY4NDgsMjAuNTYzODQgMjMuMTY4NDgsMTUuNzkxMDQgQzIzLjE2ODQ4LDExLjI0NDMyIDIxLjIyMjA4LDcuMTYyMjQgMTguMTMxNjgsNC4yOTgwOCBMMjAuMzQ5NzYsMi4wOCBDMjQuMDA2NCw1LjUxMjE2IDI2LjMwMzIsMTAuMzc2MTYgMjYuMzAzMiwxNS43ODY1NiBDMjYuMzAzMiwyMS40MjU0NCAyMy44MTAwOCwyNi40NzEyIDE5Ljg4MDE2LDI5LjkyIFoiIGlkPSLot6/lvoQiIGZpbGw9IiMxMTFGMkMiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTMuOTA4OTYsMjMuOTQ4NjQgTDExLjYyOTYsMjEuNjY5NiBDMTMuNzAwOTYsMjAuNTI0NDggMTUuMTA0MzIsMTguMzIwNjQgMTUuMTA0MzIsMTUuNzg2NTYgQzE1LjEwNDMyLDEzLjQ4NjA4IDEzLjk0NjU2LDExLjQ1Nzc2IDEyLjE4MzM2LDEwLjI0NjI0IEwxNC40MjE2LDguMDA4MzIgQzE2Ljc0MTI4LDkuODExNjggMTguMjQsMTIuNjIxMjggMTguMjQsMTUuNzg2NTYgQzE4LjI0LDE5LjE4MjA4IDE2LjUyMjU2LDIyLjE3NTUyIDEzLjkwODk2LDIzLjk0ODY0IEwxMy45MDg5NiwyMy45NDg2NCBaIE03LjkzNjQ4LDE4LjQ3NDU2IEM2LjY5OTY4LDE4LjQ3NDU2IDUuNjk2OCwxNy40NzIgNS42OTY4LDE2LjIzNDcyIEM1LjY5NjgsMTQuOTk3MjggNi42OTk1MiwxMy45OTQ4OCA3LjkzNjQ4LDEzLjk5NDg4IEM5LjE3NDI0LDEzLjk5NDg4IDEwLjE3NjQ4LDE0Ljk5NzI4IDEwLjE3NjQ4LDE2LjIzNDcyIEMxMC4xNzY0OCwxNy40NzIgOS4xNzQyNCwxOC40NzQ1NiA3LjkzNjQ4LDE4LjQ3NDU2IEw3LjkzNjQ4LDE4LjQ3NDU2IFoiIGlkPSLlvaLnirYiIGZpbGw9IiMxMTFGMkMiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",ao="data:image/gif;base64,R0lGODlhQABAAIcAAAAAABEfLBIgLREfLRIfLRIgLBEgLBEgLRIhLgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFFAAAACwAAAAAQABAAAAIiwABCBxIsKDBgwgTKlzIsKHDhxAjSpxIsaLFixgzatzIsaPHjyBDihxJsqTJkyhTqlzJsqXLlzBjypxJs6bNmzhz6txJUsCAAgd2Bhg6tEBOAkSJBr2ZNOlNAU2J4ow6FGeBqEZxHki69OiAAwZ4ih1LtqzZs2jTql3Ltq3bt3Djyp1Lt67du3h1BgQAIfkEBRQAAAAsGAAQAAwAIAAACHEAAQgEIGCgwYEGAgQ4iFChQoYJHT40KNHhgYMVFQ7AmPGggIwFDX6syLDjwYgOCZQkyVHiSpctHTI8wJJizYEFbgo0aRPmwJEOQw4EaZDmTQJEh/IEkNPkgIwBLu6EavBpRaECrSpEwBCA1a4DuXYNCAAh+QQJFAAAACwkAAQAEQA4AAAIygABCASAYKDBgwMNBDCAsKHCABAbGnwIMUABiQIraiSAkYDGihgBUKzIEaOAjxZDHkAZEgDKiyZZqvwoIOQAmR0/lpR48mNLlAVzaqwZEqfEmxp/0lRaESZGow2hIvSYNCRVkCF7YsVY4GNQiV01fm2oFSJRsD6tpn26VqLUg28NfjyQ9SNDoRXHIowrMGxViSMDnI3aFmHZAAOKFj7oF+JOwyjvEl48EOlfhCvt8kRJt6HlywYbk3SLcvDBz4hbWu6sOnXLhK8BBAQAIfkEBRQAAAAsAAAAAAEAAQAACAQAAQQEADs=",co=function(e){Ot(n,e);var t=Lt(n);function n(e,r){var i;return Qt(this,n),i=t.call(this,e,r),i.isPlaying=!1,i.handleClick=i.handleClick.bind(jt(i)),i.onStart=i.onStart.bind(jt(i)),i.onStop=i.onStop.bind(jt(i)),i}return Zt(n,[{key:"handleClick",value:function(){var e;"function"===typeof this.callback&&("RC:VcMsg"===this.messageType?e=xn(this.content.content):this.messageType===bt["n"].HQ_VOICE&&(e=this.content.remoteUrl),this.callback({uid:this.uid,type:"hqvoice",url:e,duration:this.content.duration,onStart:this.onStart,onStop:this.onStop}))}},{key:"onStart",value:function(){this.voiceIcon.src=ao}},{key:"onStop",value:function(){this.voiceIcon.src=so}},{key:"create",value:function(){var e=this,t=this.content;return this.wrap(W("div",{class:"hqvoice-message-body",style:{width:"".concat(Math.max(150,Math.min(500,t.duration/60*500)),"px")},"data-origin":t.remoteUrl,onClick:this.handleClick},W("img",{ref:function(t){e.voiceIcon=t},class:"voice-icon",src:so}),t.duration?W("span",null,Math.round(t.duration),"''"):null))}}]),n}(to),uo=function(e){Ot(n,e);var t=Lt(n);function n(e,r){var i;return Qt(this,n),i=t.call(this,e,r),i.handleClick=i.handleClick.bind(jt(i)),i.onError=i.onError.bind(jt(i)),i}return Zt(n,[{key:"handleClick",value:function(){"function"===typeof this.callback&&this.callback({type:"image",thumb:this.content.content,url:this.content.imageUri})}},{key:"onError",value:function(e){var t=e.target;t.src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjQwcHgiIGhlaWdodD0iMjQwcHgiIHZpZXdCb3g9IjAgMCAyNDAgMjQwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPHRpdGxlPuWbvueJh+WKoOi9veWksei0pTwvdGl0bGU+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIxOF/ljZXogYot5Y+R6YCB5Zu+54mH5Yqg6L295aSx6LSlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNTY0LjAwMDAwMCwgLTIzNS4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9IuWbvueJh+WKoOi9veWksei0pSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTY0LjAwMDAwMCwgMjM1LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE2LDAgTDIzNiwwIEMyMzguMjA5MTM5LC00LjA1ODEyMjUxZS0xNiAyNDAsMS43OTA4NjEgMjQwLDQgTDI0MCwyMjQgQzI0MCwyMzIuODM2NTU2IDIzMi44MzY1NTYsMjQwIDIyNCwyNDAgTDE2LDI0MCBDNy4xNjM0NDQsMjQwIDEuMDgyMTY2ZS0xNSwyMzIuODM2NTU2IDAsMjI0IEwwLDE2IEMtMS4wODIxNjZlLTE1LDcuMTYzNDQ0IDcuMTYzNDQ0LDEuNjIzMjQ5ZS0xNSAxNiwwIFoiIGlkPSLokpnniYgiIGZpbGwtcnVsZT0ibm9uemVybyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTIwLjAwMDAwMCwgMTIwLjAwMDAwMCkgc2NhbGUoLTEsIDEpIHRyYW5zbGF0ZSgtMTIwLjAwMDAwMCwgLTEyMC4wMDAwMDApICI+PC9wYXRoPgogICAgICAgICAgICAgICAgPHRleHQgZm9udC1mYW1pbHk9IlBpbmdGYW5nU0MtUmVndWxhciwgUGluZ0ZhbmcgU0MiIGZvbnQtc2l6ZT0iMjQiIGZvbnQtd2VpZ2h0PSJub3JtYWwiIGxldHRlci1zcGFjaW5nPSItMC4xNzM1NzE0MjkiIGZpbGw9IiNBMEE1QUIiPgogICAgICAgICAgICAgICAgICAgIDx0c3BhbiB4PSI0OSIgeT0iMTg4Ij7lm77niYfliqDovb3lpLHotKU8L3RzcGFuPgogICAgICAgICAgICAgICAgPC90ZXh0PgogICAgICAgICAgICAgICAgPGcgaWQ9IuaOpeaUtuaWueWKoOi9veWbvueJh+Wksei0pSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNzEuMDAwMDAwLCA0NS4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0i55+p5b2iIiB4PSIwIiB5PSIwIiB3aWR0aD0iOTgiIGhlaWdodD0iOTgiPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNODMuNTEyMDE2Nyw3IEwxNC40ODc5ODMzLDcgQzguMTMxNzAwMjksNy4wMzk3NTQ3MSAzLDEyLjIxODA4MjUgMywxOC41OTIwODU3IEwzLDc2LjQzMjAxNDMgQzMuMDEzMTYwMDQsODIuODA1OTY0OCA4LjE1NTcwMzk4LDg3Ljk3MzUxMDcgMTQuNTEyMDE2Nyw4OCBMODMuNTEyMDE2Nyw4OCBDODkuODU4OTM3OSw4Ny45NjAzMTczIDk0Ljk4NjkyNzgsODIuNzk2NjE2IDk1LDc2LjQzMjAxNDMgTDk1LDE4LjU5MjA4NTcgQzk1LDEyLjIxODA4MjUgODkuODY4Mjk5Nyw3LjAzOTc1NDcxIDgzLjUxMjAxNjcsNyBaIE04OS4yNTYwMDgzLDY5Ljg1MjcyMjQgTDc1LjQzNjc4MTYsNTIuMTM5MjQ0MyBDNzQuNjg2MDAzLDUwLjgxNzI2MTcgNzMuMzI5NDg4LDQ5Ljk1NTUxMTIgNzEuODE2Nzc0NSw0OS44Mzk1Njk3IEM3MC4zMDQwNjEsNDkuNzIzNjI4MyA2OC44MzI2OTc3LDUwLjM2ODYzNjggNjcuODkwMjgyMiw1MS41NjA4NDUgTDU3Ljc5NjIzODMsNjEuNzMxMDMyNSBMNTUuODQ5NTI5OCw2My42ODMxMyBMNTEuODExOTEyMiw2Ny43NTYwMjUgTDQ4LjkyNzg5OTcsNjQuMDQ0NjI5NiBMMzUuMjA0ODA2Nyw0Ni4zMzExNTE1IEMzNC4zOTI4NTk2LDQ1LjIzOTIwNTUgMzMuMTE0MzI3MSw0NC41OTU5MjU1IDMxLjc1NjAwODQsNDQuNTk1OTI1NSBDMzAuMzk3Njg5Nyw0NC41OTU5MjU1IDI5LjExOTE1NzEsNDUuMjM5MjA1NSAyOC4zMDcyMTAxLDQ2LjMzMTE1MTUgTDguNzQzOTkxNjgsNzAuMDY5NjIyMSBMOC43NDM5OTE2OCwxOC41OTIwODU3IEM4LjU1MTk5NTA0LDE1LjU5MDgyOTcgMTAuODIyMTM0OSwxMy4wMDE1MzE4IDEzLjgxNTA0NywxMi44MDgwOTI4IEw4My41MTIwMTY3LDEyLjgwODA5MjggQzg2LjU5NzM3NzksMTMuMDI5NTA2MSA4OS4wNDgwOTA3LDE1LjQ5NzI4NTcgODkuMjU2MDA4MywxOC41OTIwODU3IEw4OS4yNTYwMDgzLDY5Ljg1MjcyMjQgWiBNNjkuNDc2NDg5MSwyNi45MDY1NzU1IEM2Ni4wODY2Mjk1LDIzLjUxMzU3MyA2MC41OTYxNDQyLDIzLjUxNjk0NTcgNTcuMjEwNDMyOCwyNi45MTQxMTA0IEM1My44MjQ3MjE0LDMwLjMxMTI3NSA1My44MjQ3MjE0LDM1LjgxNjk2MDggNTcuMjEwNDMyOCwzOS4yMTQxMjU0IEM2MC41OTYxNDQyLDQyLjYxMTI5IDY2LjA4NjYyOTUsNDIuNjE0NjYyNyA2OS40NzY0ODkxLDM5LjIyMTY2MDMgQzcxLjEwNzAxNzgsMzcuNTg5NjE5OCA3Mi4wMjMyOTEzLDM1LjM3NDI5NTQgNzIuMDIzMjkxMywzMy4wNjQxMTc5IEM3Mi4wMjMyOTEzLDMwLjc1Mzk0MDQgNzEuMTA3MDE3OCwyOC41Mzg2MTU5IDY5LjQ3NjQ4OTEsMjYuOTA2NTc1NSBMNjkuNDc2NDg5MSwyNi45MDY1NzU1IFoiIGlkPSLlvaLnirYiIGZpbGw9IiM4NTg1ODUiIGZpbGwtcnVsZT0ibm9uemVybyI+PC9wYXRoPgogICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSLot6/lvoQiIGZpbGw9IiNGRkZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIgcG9pbnRzPSI2NCA2Ni42OTYxNzAyIDUyLjU1MTUzNzEgODggMzggODggNTQuNDU1Njk2MiA3MS42MDUxMDY0IDUwLjYyMjY5MjEgNjYuMjIyMDg3OSA1OC4xMjI5NjU2IDYwIj48L3BvbHlnb24+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="}},{key:"create",value:function(){var e=this.content;return this.wrap(W("div",{class:"image-message-body","data-origin":e.imageUri,onClick:this.handleClick},e.content?W("img",{src:xn(e.content),onError:this.onError}):null))}}]),n}(to),lo=function(e){Ot(n,e);var t=Lt(n);function n(){return Qt(this,n),t.apply(this,arguments)}return Zt(n,[{key:"create",value:function(){var e=gn.lang?gn.lang:Sn.zh_CN,t=Sn[e],n="[".concat(t.message.location,"]").concat(t.message.nonsupport);return this.wrap(W("div",{class:"location-message-body"},W("p",null,n)))}}]),n}(to),fo=function(e){Ot(n,e);var t=Lt(n);function n(){return Qt(this,n),t.apply(this,arguments)}return Zt(n,[{key:"create",value:function(){var e,t=this,n=gn.lang?gn.lang:Sn.zh_CN,r=Sn[n];return this.direction===_t["g"].SEND?e="".concat(r.message.you," "):this.conversationType===_t["a"].PRIVATE?gn.getConversationProfile({targetId:this.targetId,conversationType:_t["a"].PRIVATE,channelId:this.channelId}).then((function(n){e=n?n.name:t.senderUserId,t.nameRef.innerText="".concat(e," ")})):this.conversationType===_t["a"].GROUP&&gn.getGroupMemberProfile({targetId:this.targetId,conversationType:_t["a"].GROUP,channelId:this.channelId},this.senderUserId).then((function(n){e=n&&(n.groupNickname||n.name)||t.senderUserId,t.nameRef.innerText="".concat(e," ")})),this.wrap(W("div",{class:"recall-message-body"},W("div",{class:"tip-content"},W("span",{ref:function(e){return t.nameRef=e,t.nameRef}},e),r.message.msgRecall)))}}]),n}(to),ho=function(e){Ot(n,e);var t=Lt(n);function n(e,r){var i;return Qt(this,n),i=t.call(this,e,r),i.message=e,i.getName(e),i}return Zt(n,[{key:"componentWillLoad",value:function(){gn.on(Tt.GROUP_INFO_CHANGED,this.handleInfoChanged),gn.on(Tt.USER_INFO_CHANGED,this.handleInfoChanged),gn.on(Tt.CONVERSATION_INFO_CHANGED,this.handleInfoChanged)}},{key:"disconnectedCallback",value:function(){gn.off(Tt.GROUP_INFO_CHANGED,this.handleInfoChanged),gn.off(Tt.USER_INFO_CHANGED,this.handleInfoChanged),gn.off(Tt.CONVERSATION_INFO_CHANGED,this.handleInfoChanged)}},{key:"handleInfoChanged",value:function(){this.message&&this.getName(this.message)}},{key:"getName",value:function(e){var t=this;this.name=this.content.referMsgUserId;var n={conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId};if(e.conversationType===_t["a"].GROUP)gn.getGroupMemberProfile(n,this.name).then((function(e){e&&(t.name=e.groupNickname||e.name,t.nameRef&&(t.nameRef.innerText=t.name))}));else if(e.conversationType===_t["a"].PRIVATE){var r;r=e.content.referMsgUserId===Object(_t["u"])()?gn.getMyProfile():gn.getConversationProfile(n),r.then((function(e){e&&(t.name=e.displayName||e.name,t.nameRef&&(t.nameRef.innerText=t.name))}))}}},{key:"getRererenceContent",value:function(e,t){var n="",r="",i="",o=gn.lang?gn.lang:Sn.zh_CN,s=Sn[o];switch(e){case _t["h"].TEXT:i=Object(bt["D"])(t.content)?t.content.content:t.content,r=Gn(i),n=W("div",{innerHTML:r,class:"referenced-message-text"},W("div",{class:"quote quoteContent",innerHTML:r}));break;case _t["h"].IMAGE:i=Object(bt["D"])(t.content)?t.content.content:t.content,n=W("img",{src:xn(i)});break;case _t["h"].GIF:i=Object(bt["D"])(t.content)?t.content.remoteUrl:t.remoteUrl,n=W("img",{src:i});break;case _t["h"].FILE:i=Object(bt["D"])(t.content)?t.content.name:t.name,n="[".concat(s.conversation.file,"] ").concat(i);break;case _t["h"].RICH_CONTENT:i=Object(bt["D"])(t.content)?t.content.title:t.title,n="[".concat(s.conversation.img,"] ").concat(i);break;case _t["h"].REFERENCE:n=Object(bt["D"])(t.content)?t.content.content:t.content;break}return n}},{key:"create",value:function(){var e=this,t=this.content;return this.wrap(W("div",{class:"reference-message-body"},W("div",{class:"reference-message-content"},W("div",{class:"user",ref:function(t){return e.nameRef=t,e.nameRef}},this.name),W("div",{class:"content"},this.getRererenceContent(t.objName,t.referMsg))),W("div",{class:"message-content",innerHTML:Gn(t.content)})))}}]),n}(to),po=function(e){Ot(n,e);var t=Lt(n);function n(e,r){var i;return Qt(this,n),i=t.call(this,e,r),i.handleClick=i.handleClick.bind(jt(i)),i}return Zt(n,[{key:"handleClick",value:function(){"function"===typeof this.callback&&this.callback({type:"richContent",url:this.content.url})}},{key:"create",value:function(){var e=this.content;return this.wrap(W("div",{class:"rich-message-body","data-url":e.url,onClick:this.handleClick},W("div",{class:"title"},e.title),W("div",{class:"content"},e.imageUri?W("img",{src:e.imageUri}):null,W("p",null,e.content))))}}]),n}(to),go=function(e){Ot(n,e);var t=Lt(n);function n(e,r){var i;return Qt(this,n),i=t.call(this,e,r),i.handleClick=i.handleClick.bind(jt(i)),i}return Zt(n,[{key:"handleClick",value:function(){"function"===typeof this.callback&&this.callback({type:"sight",url:this.content.sightUrl,thumb:this.content.content,duration:this.content.duration,size:this.content.size,name:this.content.name})}},{key:"formatDuration",value:function(e){var t=e,n=Math.floor(t/3600)>=10?Math.floor(t/3600):"0".concat(Math.floor(t/3600));t-=3600*n;var r=Math.floor(t/60)>=10?Math.floor(t/60):"0".concat(Math.floor(t/60));t-=60*r;var i=t>=10?t:"0".concat(t);return 1*n>0?"".concat(n,":").concat(r,":").concat(i):"".concat(r,":").concat(i)}},{key:"create",value:function(){var e=this.content;return this.wrap(W("div",{class:"sight-message-body","data-origin":e.imageUri,onClick:this.handleClick},W("img",{class:"sight-conver",src:xn(e.content)}),W("div",{class:"file-duration"},this.formatDuration(e.duration)),W("div",{class:"start-play-btn"},W("button",null))))}}]),n}(to),vo=function(e){Ot(n,e);var t=Lt(n);function n(){return Qt(this,n),t.apply(this,arguments)}return Zt(n,[{key:"create",value:function(){var e=this.content.content;return e=Gn(e),this.wrap(W("div",{class:"text-message-body"},W("p",{innerHTML:e})))}}]),n}(to),yo={"RC:RcCmd":fo,"RC:InfoNtf":null,"RC:ContactNtf":null,"RC:ProfileNtf":null,"RC:CmdNtf":null,"RC:GrpNtf":null},mo=(Ct={},zt(Ct,_t["h"].TEXT,vo),zt(Ct,_t["h"].IMAGE,uo),zt(Ct,_t["h"].FILE,io),zt(Ct,_t["h"].SIGHT,go),zt(Ct,_t["h"].HQ_VOICE,co),zt(Ct,_t["h"].GIF,oo),zt(Ct,_t["h"].REFERENCE,ho),zt(Ct,_t["h"].RICH_CONTENT,po),zt(Ct,_t["h"].LOCATION,lo),zt(Ct,"RC:VcMsg",co),Ct);function Io(e,t){var n=mo[e.messageType]||yo[e.messageType];return n?new n(e,t).create():"不识别的消息内容"}var Mo=".message-item{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:start;justify-content:flex-start;margin:0 1.5em;padding:2em 0}.ntf-message-item{display:block}.ntf-message-item .tip-content{text-align:center}.message-item.receiver{-ms-flex-direction:row;flex-direction:row}.message-item.poster{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.message-item .avatar{width:6em;height:6em;border-radius:50%;background:#4790ee;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;overflow:hidden;-ms-flex-negative:0;flex-shrink:0}.message-item .avatar img{min-width:100%}.message-item .message-body-wrapper{position:relative;padding:0 1.6em;max-width:50em;-webkit-box-sizing:border-box;box-sizing:border-box}.message-item .message-body-wrapper .name{color:#a0a5ab;font-size:1.8em;line-height:1;margin:0 0 0.4em}.message-item .message-body{font-size:2.4em;border:0.1em solid #ccc;border-radius:1em;position:relative}.message-body .receive-status{width:3.67em;position:absolute;left:-4.2em;bottom:-0.2em;font-size:0.75em;color:#0099ff;text-align:right}.message-item.poster .message-body{border-radius:0.6667em 0.16666em 0.6667em 0.6667em;background:#d7eefd;border:1px solid #bdd9eb}.message-item.receiver .message-body{border-radius:0.16666em 0.6667em 0.6667em 0.6667em;border:1px solid #e2e4e5;background:#fff}.message-content p{margin:0;padding:0;line-height:1.5;font-weight:400;word-break:break-word}.time-separation,.message-group-notifi{font-size:2em;text-align:center;padding:1.5em;color:#a0a5ab}.message-item.fail .receive-status,.message-item.sending .receive-status{display:none}.message-item.sending .message-body::before,.message-item.fail .message-body::before{content:' ';display:block;width:1.6667em;height:1.6667em;background-repeat:no-repeat;background-size:contain;position:absolute;left:-2.2em;bottom:0}.message-item.fail .message-body::before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjVweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjUgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5oSf5Y+55Y+3PC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IjAyX+WNleiBii3ljZXogYrlkJHkuIrmu5rliqjml7YtbG9hZGluZyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEwNC4wMDAwMDAsIC02MzkuMDAwMDAwKSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPGcgaWQ9IuaEn+WPueWPtyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTA0LjQwMDAwMCwgNjM5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8ZyBpZD0i57yW57uELTI0IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxLjUwMDAwMCwgMS41MDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSLmpK3lnIblvaIiIGZpbGw9IiNGRjQxNDEiIGN4PSIxMC41IiBjeT0iMTAuNSIgcj0iMTAuNSI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgZmlsbD0iI0ZGRkZGRiIgeD0iOS43NSIgeT0iNS4yNSIgd2lkdGg9IjEuNSIgaGVpZ2h0PSI3LjUiPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSLmpK3lnIblvaIiIGZpbGw9IiNGRkZGRkYiIGN4PSIxMC41IiBjeT0iMTUiIHI9IjEiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.message-item.sending .message-body::before{content:' ';display:inline-block;width:1.5em;height:1.5em;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjhweCIgaGVpZ2h0PSIyOHB4IiB2aWV3Qm94PSIwIDAgMjggMjgiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+bG9hZGluZzwvdGl0bGU+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgeDE9Ijk0LjA4NjkxNDElIiB5MT0iMCUiIHgyPSI5NC4wODY5MTQxJSIgeTI9IjkwLjU1OTA4MiUiIGlkPSJsaW5lYXJHcmFkaWVudC0xIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzhGOTQ5QSIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjAlIj48L3N0b3A+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4Rjk0OUEiIHN0b3Atb3BhY2l0eT0iMC4zIiBvZmZzZXQ9IjEwMCUiPjwvc3RvcD4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCB4MT0iMTAwJSIgeTE9IjguNjczNzA2MDUlIiB4Mj0iMTAwJSIgeTI9IjkwLjYyODY2MjElIiBpZD0ibGluZWFyR3JhZGllbnQtMiI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4Rjk0OUEiIG9mZnNldD0iMCUiPjwvc3RvcD4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzhGOTQ5QSIgc3RvcC1vcGFjaXR5PSIwLjMiIG9mZnNldD0iMTAwJSI+PC9zdG9wPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8L2RlZnM+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIwM1/lkJHkuIvmu5rliqjml7Zsb2FkaW5nIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTQyLjAwMDAwMCwgLTkxMS4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8ZyBpZD0i572R57uc5LiN5Y+v55So5o+Q56S6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwgNTc5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9ImxvYWRpbmciIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0Mi4wMDAwMDAsIDMzMi4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0i55+p5b2iIiB4PSIwIiB5PSIwIiB3aWR0aD0iMjgiIGhlaWdodD0iMjgiPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iTG9hZGluZ0JyYW5kIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyLjAwMDAwMCwgMi4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTEyLDAgQzE4LjYyNzQxNywwIDI0LDUuMzcyNTgzIDI0LDEyIEMyNCwxOC42Mjc0MTcgMTguNjI3NDE3LDI0IDEyLDI0IEwxMiwyMS45IEMxNy40Njc2MTksMjEuOSAyMS45LDE3LjQ2NzYxOSAyMS45LDEyIEMyMS45LDYuNTMyMzgwOTkgMTcuNDY3NjE5LDIuMSAxMiwyLjEgTDEyLDAgWiIgaWQ9Iui3r+W+hCIgZmlsbD0idXJsKCNsaW5lYXJHcmFkaWVudC0xKSI+PC9wYXRoPgogICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTIsMCBMMTIsMi4xIEM2LjUzMjM4MDk5LDIuMSAyLjEsNi41MzIzODA5OSAyLjEsMTIgQzIuMSwxNy40Njc2MTkgNi41MzIzODA5OSwyMS45IDEyLDIxLjkgTDEyLDI0IEM1LjM3MjU4MywyNCAwLDE4LjYyNzQxNyAwLDEyIEMwLDUuMzcyNTgzIDUuMzcyNTgzLDAgMTIsMCBaIiBpZD0i6Lev5b6EIiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTIpIj48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwiIGZpbGw9IiM4Rjk0OUEiIGN4PSIxMi4xNSIgY3k9IjEuMDUiIHI9IjEuMDUiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+) no-repeat;-webkit-animation:loading 1s infinite;animation:loading 1s infinite;vertical-align:middle;}@-webkit-keyframes loading{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loading{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.text-message-body,.location-message-body{padding:0.5em 0.8333em}.file-message-body{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0.83333em;display:-ms-flexbox;display:flex;max-width:20em;-ms-flex-align:center;align-items:center;}.file-message-body .file-message-icon{width:3.5em;height:3.5em;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;background-repeat:no-repeat;background-size:contain;margin:0 0.833333em 0 0}.file-message-body .file-message-icon.file-icon{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotf5pyq55+lPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgb3BhY2l0eT0iMC43Ij4KICAgICAgICA8ZyBpZD0i54q25oCB5YiH5Zu+IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjExLjAwMDAwMCwgLTcwMC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9Imljb25f5paH5Lu257G75Z6LX+acquefpSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjExLjAwMDAwMCwgNzAwLjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS0zOC1Db3B5LTQiIGZpbGw9IiNCNUI5QkMiIHg9IjAiIHk9IjAiIHdpZHRoPSI4NCIgaGVpZ2h0PSI4NCIgcng9IjYiPjwvcmVjdD4KICAgICAgICAgICAgICAgIDxnIGlkPSJHcm91cC04IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMS4wMDAwMDAsIDE0LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0yNS41NDYzNTQyLDAgTDQxLjgwMywxNi4xNyBMNDEuODAzMTI1LDUzLjYyMDU4NTMgQzQxLjgwMzEyNSw1NC43ODk3MjUgNDAuODUxNDY1Miw1NS43Mzc1IDM5LjY3MjYzMDgsNTUuNzM3NSBMMi4xMzA0OTQyNCw1NS43Mzc1IEMwLjk1Mzg1NDc2MSw1NS43Mzc1IDAsNTQuNzkzNDU3OSAwLDUzLjYyMDU4NTMgTDAsMi4xMTY5MTQ2OSBDMCwwLjk0Nzc3NDk5IDAuOTUxNjU5Nzk2LDAgMi4xMzA0OTQyNCwwIEwyNS41NDYzNTQyLDAgWiIgaWQ9IkNvbWJpbmVkLVNoYXBlIiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTI1LjU0NjM1NDIsMCBMNDEuODQxOTYzOSwxNi4yMDg4NjAxIEwyNi42MTU1NTQ2LDE2LjIwODg2MDEgQzI2LjAyNTA1MTUsMTYuMjA4ODYwMSAyNS41NDYzNTQyLDE1Ljc0MTI0MDkgMjUuNTQ2MzU0MiwxNS4xNDUzNTE1IEwyNS41NDYzNTQyLDAgWiIgaWQ9IlRyaWFuZ2xlLTMiIGZpbGw9IiNENkQ2RDYiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)}.file-message-body .file-message-icon.file-zip{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfemlwPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IueKtuaAgeWIh+WbviIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxMS4wMDAwMDAsIC04MDYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSJpY29uX+aWh+S7tuexu+Wei196aXAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIxMS4wMDAwMDAsIDgwNi4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSJHcm91cC0xMi1Db3B5IiBmaWxsPSIjRkZCRDRDIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTM4LUNvcHktNCIgeD0iMCIgeT0iMCIgd2lkdGg9Ijg0IiBoZWlnaHQ9Ijg0IiByeD0iNiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTciIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMzLjAwMDAwMCwgMC4wMDAwMDApIiBmaWxsPSIjRkZGRkZGIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTMiIHg9IjguNTk5NSIgeT0iMCIgd2lkdGg9IjguNTk5NSIgaGVpZ2h0PSIyMC45MDE1NjI1Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS0zLUNvcHkiIHg9IjAiIHk9IjIwLjkwMTU2MjUiIHdpZHRoPSI4LjU5OTUiIGhlaWdodD0iOC4zNjA2MjUiPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTMtQ29weS0yIiB4PSI4LjU5OTUiIHk9IjI5LjI2MjE4NzUiIHdpZHRoPSI4LjU5OTUiIGhlaWdodD0iOC4zNjA2MjUiPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTMtQ29weS0zIiB4PSIwIiB5PSIzNy42MjI4MTI1IiB3aWR0aD0iOC41OTk1IiBoZWlnaHQ9IjguMzYwNjI1Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS0zLUNvcHktNCIgeD0iOC41OTk1IiB5PSI0NS45ODM0Mzc1IiB3aWR0aD0iOC41OTk1IiBoZWlnaHQ9IjguMzYwNjI1Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS0zLUNvcHktNSIgeD0iOC41OTk1IiB5PSI1NC4zNDQwNjI1IiB3aWR0aD0iOC41OTk1IiBoZWlnaHQ9IjguMzYwNjI1Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS0zLUNvcHktNiIgeD0iMCIgeT0iNTQuMzQ0MDYyNSIgd2lkdGg9IjguNTk5NSIgaGVpZ2h0PSI4LjM2MDYyNSI+PC9yZWN0PgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.file-message-body .file-message-icon.file-word{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfZG9jPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IueKtuaAgeWIh+WbviIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxMS4wMDAwMDAsIC0yNzQuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSJpY29uX+aWh+S7tuexu+Wei19kb2MiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIxMS4wMDAwMDAsIDI3NC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSJHcm91cC02IiBmaWxsPSIjNjBBN0ZFIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTM4IiB4PSIwIiB5PSIwIiB3aWR0aD0iODQiIGhlaWdodD0iODQiIHJ4PSI2Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMjIuOTU0NTQ1NSwyMCBMMjIuOTU0LDU0LjQ0MyBMNDEuNDQ0MzQ2NCwzNi4wMDUwOTYyIEw0Ni4yMTk4NDI5LDQwLjc2NzI1MDYgTDQ2LjIxMyw0MC43NzMgTDYwLjA0NSw1NC40MzggTDYwLjA0NTQ1NDUsMjAgTDY3LDIwIEw2Nyw2My45MjIzOTgyIEw2MC4xNTMsNjMuOTIyIEw2MC4wNzkyNjk5LDY0IEw0MS41LDQ1LjQ3MyBMMjIuOTU5NDI2OSw2My45NjI2ODA1IEwyMi45MjEsNjMuOTIyIEwxNiw2My45MjIzOTgyIEwxNiwyMCBMMjIuOTU0NTQ1NSwyMCBaIiBpZD0iQ29tYmluZWQtU2hhcGUiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)}.file-message-body .file-message-icon.file-xls{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfZXhjZWw8L3RpdGxlPgogICAgPGcgaWQ9Iumhtemdoi0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0i54q25oCB5YiH5Zu+IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjExLjAwMDAwMCwgLTQ4OC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9Imljb25f5paH5Lu257G75Z6LX2V4Y2VsIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMTEuMDAwMDAwLCA0ODguMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLTM4LUNvcHktMiIgZmlsbD0iIzAyRDFBNSIgeD0iMCIgeT0iMCIgd2lkdGg9Ijg0IiBoZWlnaHQ9Ijg0IiByeD0iNiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTYzLDIxIEw0Ni45NzEsNDEuNSBMNjMsNjIgTDUzLjAzODU4MTksNjEuOTc2NzkwNSBMNDEuOTk5LDQ3Ljg1OCBMMzAuOTYxNDE4MSw2MS45NzY3OTA1IEwyMSw2MiBMMzcuMDI4LDQxLjUgTDIxLDIxIEwzMC45NjE0MTgxLDIxLjAyMzIwOTUgTDQyLDM1LjE0MSBMNTMuMDM4NTgxOSwyMS4wMjMyMDk1IEw2MywyMSBaIiBpZD0iQ29tYmluZWQtU2hhcGUiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)}.file-message-body .file-message-icon.file-ppt{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfcHB0PC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IueKtuaAgeWIh+WbviIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxMS4wMDAwMDAsIC05MTIuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSJpY29uX+aWh+S7tuexu+Wei19wcHQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIxMS4wMDAwMDAsIDkxMi4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtMzgtQ29weS01IiBmaWxsPSIjRkY4NjU0IiB4PSIwIiB5PSIwIiB3aWR0aD0iODQiIGhlaWdodD0iODQiIHJ4PSI2Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMjYsMjAgTDQ1Ljg2MDcxODIsMjAgQzQ4LjQ3MjI2NTUsMjAgNTAuNzc2OTIxNSwyMC40MjAyOTE0IDUyLjc3NDc1NTIsMjEuMjYwODg2OCBDNTQuNzcyNTg4OSwyMi4xMDE0ODIyIDU2LjQ1NzAxMTYsMjMuMjAwNzA1OCA1Ny44MjgwNzQsMjQuNTU4NTkwNyBDNTkuMTk5MTM2MywyNS45MTY0NzU1IDYwLjIzNzIxMDgsMjcuNDQyNDU2NiA2MC45NDIzMjg2LDI5LjEzNjU3OTYgQzYxLjY0NzQ0NjQsMzAuODMwNzAyNiA2MiwzMi41MTgzMzQyIDYyLDM0LjE5OTUyNDkgQzYyLDM2LjAzNTkwMjYgNjEuNjQwOTE3NiwzNy44MDc1OTI0IDYwLjkyMjc0MjEsMzkuNTE0NjQ3NyBDNjAuMjA0NTY2Niw0MS4yMjE3MDI5IDU5LjE1OTk2MzMsNDIuNzQxMjE3OSA1Ny43ODg5MDEsNDQuMDczMjM4MyBDNTYuNDE3ODM4Niw0NS40MDUyNTg3IDU0LjczMzQxNTksNDYuNDcyMTUyMiA1Mi43MzU1ODIyLDQ3LjI3Mzk1MDkgQzUwLjczNzc0ODQsNDguMDc1NzQ5NiA0OC40NDYxNSw0OC40NzY2NDI5IDQ1Ljg2MDcxODIsNDguNDc2NjQyOSBMMzQuMjY1NTA2LDQ4LjQ3NjY0MjkgTDM0LjI2NTUwNiw2OSBMMjYsNjkgTDI2LDIwIFogTTM0LjI2NTUwNiw0Mi44NTExNDgxIEw0NS44NjA3MTgyLDQyLjg1MTE0ODEgQzQ2LjkwNTMzNzEsNDIuODUxMTQ4MSA0Ny45MTA3Njc3LDQyLjYyNDgzNzMgNDguODc3MDQwMyw0Mi4xNzIyMDkgQzQ5Ljg0MzMxMjgsNDEuNzE5NTgwNyA1MC42ODU1MjQyLDQxLjA5ODg0MjcgNTEuNDAzNjk5Nyw0MC4zMDk5NzYyIEM1Mi4xMjE4NzUyLDM5LjUyMTEwOTggNTIuNjk2NDA3LDM4LjU5NjQ2ODcgNTMuMTI3MzEyMywzNy41MzYwMjUzIEM1My41NTgyMTc2LDM2LjQ3NTU4MTkgNTMuNzczNjY3LDM1LjMzNzU2MjIgNTMuNzczNjY3LDM0LjEyMTkzMTkgQzUzLjc3MzY2NywzMi45MzIxNjYxIDUzLjU3MTI3NTEsMzEuODI2NDc2NSA1My4xNjY0ODUzLDMwLjgwNDgyOTggQzUyLjc2MTY5NTUsMjkuNzgzMTgzMSA1Mi4yMDY3NSwyOC45MDM4MDQyIDUxLjUwMTYzMjIsMjguMTY2NjY2NyBDNTAuNzk2NTE0NCwyNy40Mjk1MjkyIDQ5Ljk2MDgzMTgsMjYuODQ3NTg3MiA0OC45OTQ1NTkzLDI2LjQyMDgyMzQgQzQ4LjAyODI4NjgsMjUuOTk0MDU5NiA0Ni45ODM2ODM1LDI1Ljc4MDY4MDkgNDUuODYwNzE4MiwyNS43ODA2ODA5IEwzNC4yNjU1MDYsMjUuNzgwNjgwOSBMMzQuMjY1NTA2LDQyLjg1MTE0ODEgWiIgaWQ9IlAiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)}.file-message-body .file-message-icon.file-pdf{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfcGRmPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IueKtuaAgeWIh+WbviIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxMS4wMDAwMDAsIC01OTQuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSJpY29uX+aWh+S7tuexu+Wei19wZGYiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIxMS4wMDAwMDAsIDU5NC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtMzgtQ29weS0zIiBmaWxsPSIjRjM2NjY2IiB4PSIwIiB5PSIwIiB3aWR0aD0iODQiIGhlaWdodD0iODQiIHJ4PSI2Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8ZyBpZD0icGRmIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOS4wMDAwMDAsIDE5LjAwMDAwMCkiIGZpbGw9IiNGRkZGRkYiPgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0yOS44ODk5NTUxLDMwLjI0MTE4MDkgQzI0LjY5ODg4OTksMzEuMzgyNTY3OSAxOS43NTk5Mjk0LDMzLjAzMzM2NTkgMTQuODIwOTY4OCwzNS4wNjcxNzk2IEMxMC44OTQyNDY5LDQyLjA1MzM4NzMgNy4yMTk2Mjk3Myw0NS42MTE2MDM4IDQuMDUzMDQxNzQsNDUuNjExNjAzOCBDMy40MTg5NjAxOCw0NS42MTE2MDM4IDIuNjU4ODI2MjcsNDUuNDg1MjA4NiAyLjE1MDc5NzA4LDQ1LjEwMjE5MjggQzAuODI0MDMxNTY4LDQ0LjQ4MDk5NTggLTAuMDE3MjE5NjYzNiw0My4xMzg1MjQ2IDAuMDAwMjY3NDczMDgzLDQxLjY3MDM3MTUgQzAuMDAwMjY3NDczMDgzLDQwLjUyODk4NDUgMC4yNTIzNzIxODcsMzcuMzUzNzgzOCAxMi4yODQ2NDI2LDMyLjE0ODU5OTQgQzE1LjAxNDYxMTYsMjcuMTIzOTMxNiAxNy4yNjE4MzkyLDIxLjg1MDMyMTQgMTguOTk1OTc1NywxNi4zOTg5OTEgQzE3LjQ3OTUyNzYsMTMuMzUwMTg1NCAxNC4xODMwNjc1LDUuODU4Mzk2OTcgMTYuNDYzNDY5MiwyLjA0NzM5MDA2IEMxNy4yMjM2MDMxLDAuNjQ5MzgyNDk3IDE4Ljc0Mzg3MSwtMC4xMTI4MTg4ODYgMjAuMzkwMTkxMSwwLjAxMzU3NjMxODMgQzIxLjY4MjUyMTYsMC4wMjY3OTYyNTY0IDIyLjg5Njg4NiwwLjYzNTYyOTkzNSAyMy42ODI4MzE1LDEuNjY0Mzc0MjkgQzI1LjMyOTE1MTcsMy45NTA5Nzg0NCAyNS4xOTkyNzk1LDguNzc2OTc3MTQgMjMuMDUyNTY5NywxNS44ODk1OCBDMjUuMDgwMzE2OCwxOS42OTY0NzE1IDI3LjczNTU3NjgsMjMuMTMyMDU3NiAzMC45MDYwMTM1LDI2LjA1MDk4ODQgQzMzLjU2NDU3MjMsMjUuNTQ1NDA3NiAzNi4yMjY5NTA5LDI1LjE2MjM5MTggMzguODg1NTA5NywyNS4xNjIzOTE4IEM0NC44NDA1Mjg2LDI1LjI4ODc4NyA0NS43MjY3MTQ5LDI4LjA4ODYzMjMgNDUuNjAwNjYyNSwyOS43MzE3Njk5IEM0NS41OTY4NDI4LDM0LjA1MjE4NzggNDEuNDE0MTk2NCwzNC4wNTIxODc4IDM5LjI2MzY2NjgsMzQuMDUyMTg3OCBDMzUuODEyNDI4NiwzMy44MjI0MTA2IDMyLjUyNjI0MTEsMzIuNDg2MzY3NCAyOS44ODk5NTUxLDMwLjI0MTE4MDkgWiBNMy44MDA5MzcwMiw0MS45MjY5OTIxIEw0LjE3OTA5NDA5LDQxLjgwMDU5NjkgQzUuOTUxNDY2NjMsNDEuMTY0NzkwNyA3LjM0NTY4MjA5LDM5Ljg5NzAwODUgOC4zNTc5MjA3MSwzOC4yNDIzODA0IEM2LjQ1NTY3NjA1LDM5LjAwODQxMTkgNC45MzkyMjgsNDAuMjcyMzYzOSAzLjgwMDkzNzAyLDQxLjkyNjk5MjEgTDMuODAwOTM3MDIsNDEuOTI2OTkyMSBaIE0yMC42NDYxMTU2LDMuODI0NTgzMjMgTDIwLjI2NDEzODgsMy44MjQ1ODMyMyBDMjAuMTM4MDg2NCwzLjgyNDU4MzIzIDE5Ljg4MjE2MTksMy44MjQ1ODMyMyAxOS43NTYxMDk2LDMuOTUwOTc4NDQgQzE5LjI1MTkwMDIsNi4xMTExODczOCAxOS42MzAwNTcyLDguMzk3NzkxNTMgMjAuNTIwMDYzMywxMC40MzE2MDUzIEMyMS4yNTQwNjYxLDguMjk3Mzc2MjkgMjEuMjk4MTc1Myw1Ljk4NTQwMDMxIDIwLjY0NjExNTYsMy44MjQ1ODMyMyBMMjAuNjQ2MTE1NiwzLjgyNDU4MzIzIFogTTIxLjUzMjMwMTksMjIuMjM5OTgxNSBMMjEuNDA2MjQ5NSwyMi40OTY2MDIgTDIxLjI3NjM3NzQsMjIuMzY2Mzc2NyBDMjAuMTM4MDg2NCwyNS4yODg3ODcgMTguODY5OTIzMywyOC4yMDczNjcyIDE3LjQ3NTcwNzksMzEuMDAzMzgyMyBMMTcuNzI3ODEyNiwzMC44NzY5ODcxIEwxNy43Mjc4MTI2LDMxLjEyOTc3NzUgQzIwLjU0NjA5NzksMzAuMTEyMzM3NSAyMy40MjIzOTgyLDI5LjI2NDM2NjggMjYuMzQxMzkwMywyOC41OTAzODI5IEwyNi4yMTkxNTc3LDI4LjQ2Mzk4NzcgTDI2LjYwMTEzNDUsMjguNDYzOTg3NyBDMjQuNjk4OTc0LDI2LjU3Mjg5MDEgMjMuMDAwMDUyOSwyNC40ODY3ODk0IDIxLjUzMjMwMTksMjIuMjM5OTgxNSBMMjEuNTMyMzAxOSwyMi4yMzk5ODE1IFogTTM4Ljc1NTYzNzYsMjguOTczMzk4NyBDMzcuNjE3MzQ2NiwyOC45NzMzOTg3IDM2LjYwNTEwOCwyOC45NzMzOTg3IDM1LjQ2NjgxNywyOS4yMjYxODkxIEMzNi43MzExNjAzLDI5Ljg1ODE2NTEgMzcuOTk5MzIzNCwzMC4xMTQ3ODU3IDM5LjI2MzY2NjgsMzAuMjQxMTgwOSBDNDAuMTQ5ODUzLDMwLjM2NzU3NjEgNDEuMDM5ODU5MSwzMC4yNDExODA5IDQxLjc5NjE3MzIsMjkuOTg4MzkwNSBDNDEuNzk2MTczMiwyOS42MDkyMDQ5IDQxLjI4ODE0NCwyOC45NzMzOTg3IDM4Ljc1NTYzNzYsMjguOTczMzk4NyBMMzguNzU1NjM3NiwyOC45NzMzOTg3IFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.file-message-body .file-message-icon.file-audio{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfbXAzPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IueKtuaAgeWIh+WbviIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxMS4wMDAwMDAsIC0zODIuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSJpY29uX+aWh+S7tuexu+Wei19tcDMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIxMS4wMDAwMDAsIDM4Mi4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtMzgtQ29weSIgZmlsbD0iIzg5RDA0MiIgeD0iMCIgeT0iMCIgd2lkdGg9Ijg0IiBoZWlnaHQ9Ijg0IiByeD0iNiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTM3LjQ3NTIyMjcsMzEuNzU2NTMyMyBMNTEuODYwODE3MSw1Ni4yNDQyMzQgQzU0LjQ1OTc1Miw2MC42NjgyMzkgNTIuNDYxMjgxNSw2Ni41ODQwMTU4IDQ3LjM5NzEwODQsNjkuNDU3NDkxMyBDNDIuMzMyOTM1Myw3Mi4zMzA5NjY5IDM2LjEyMDc1ODksNzEuMDc0MDE0NCAzMy41MjE4MjQxLDY2LjY1MDAwOTQgQzMwLjkyMjg4OTIsNjIuMjI2MDA0NCAzMi45MjEzNTk3LDU2LjMxMDIyNzYgMzcuOTg1NTMyOCw1My40MzY3NTIxIEM0MC44NjYwNDQ3LDUxLjgwMjMxMzQgNDQuMTE3OTc2Niw1MS41MDQyMTU4IDQ2Ljg2NTEyNzQsNTIuMzY1MTcxNCBMMzEsMjUuMzU4OTUyOCBMMzEuMjQ4NDgzOCwyNS4yMTc5NiBMMzEuMjQwMzE0NCwyNS4yMDYyOTgzIEMzMS4yNDAzMTQ0LDI1LjIwNjI5ODMgMzEuNDIzNDIxNSwyNS4xMTA4NzI3IDMxLjc0NzU5NjEsMjQuOTM0NzU3NCBMMzMuMDM3NjY1OSwyNC4yMDI3NTU1IEwzMy4wNDMyNDAzLDI0LjIxMjI0NDQgQzM2LjUzMDQ0OCwyMi4yMjE1Mjk2IDQzLjk1MDU0OTEsMTcuNjI5MzUwNyA0NS4wMDg2MzA2LDE0LjA0NDI2ODUgQzQ2LjM5OTEyMDQsOS4zMzI4OTE4OSA1Mi4xMzQ5MjcxLDIxLjgxMzIxMDQgNDYuMzc2NTA1MSwyNi42MzM0MDI0IEM0Mi41NDQyMDQ3LDI5Ljg0MTI5OTMgMzkuMjUwMTE5NCwzMS4yMDM4OTUxIDM3LjQ3NTIyMjcsMzEuNzU2NTMyMyBMMzcuNDc1MjIyNywzMS43NTY1MzIzIFoiIGlkPSJDb21iaW5lZC1TaGFwZSIgZmlsbD0iI0ZGRkZGRiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}.file-message-body .file-message-icon.file-plain{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfdHh0PC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IueKtuaAgeWIh+WbviIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxMS4wMDAwMDAsIC0xMTI0LjAwMDAwMCkiPgogICAgICAgICAgICA8ZyBpZD0iaWNvbl/mlofku7bnsbvlnotfdHh0IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMTEuMDAwMDAwLCAxMTI0LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwLTEyLUNvcHkiIGZpbGw9IiMzRUE5RkYiPgogICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtMzgtQ29weS00IiB4PSIwIiB5PSIwIiB3aWR0aD0iODQiIGhlaWdodD0iODQiIHJ4PSI2Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtNCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjEuMDAwMDAwLCAyMy4wMDAwMDApIiBmaWxsPSIjRkZGRkZGIj4KICAgICAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4yNzk1MDAsIDAuMzc0NzA2KSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSJSZWN0YW5nbGUtNSIgeD0iMCIgeT0iMCIgd2lkdGg9IjQxLjkyNSIgaGVpZ2h0PSI3LjAyNTczNTI5IiByeD0iMC42MzciPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTEuNjkzMjUsMTkuOTI1MzY3NiBMNDAuMjMxNzUsMTkuOTI1MzY3NiBDNDAuNTgzNTU1NCwxOS45MjUzNjc2IDQwLjg2ODc1LDIwLjIxMDU2MjMgNDAuODY4NzUsMjAuNTYyMzY3NiBMNDAuODY4NzUsMjYuMjc1ODY3NiBDNDAuODY4NzUsMjYuNjI3NjczIDQwLjU4MzU1NTQsMjYuOTEyODY3NiA0MC4yMzE3NSwyNi45MTI4Njc2IEwxLjY5MzI1LDI2LjkxMjg2NzYgQzEuMzQxNDQ0NjEsMjYuOTEyODY3NiAxLjA1NjI1LDI2LjYyNzY3MyAxLjA1NjI1LDI2LjI3NTg2NzYgTDEuMDU2MjUsMjAuNTYyMzY3NiBDMS4wNTYyNSwyMC4yMTA1NjIzIDEuMzQxNDQ0NjEsMTkuOTI1MzY3NiAxLjY5MzI1LDE5LjkyNTM2NzYgWiIgaWQ9IlJlY3RhbmdsZS01LUNvcHkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwLjk2MjUwMCwgMjMuNDE5MTE4KSByb3RhdGUoLTI3MC4wMDAwMDApIHRyYW5zbGF0ZSgtMjAuOTYyNTAwLCAtMjMuNDE5MTE4KSAiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==)}.file-message-body .file-message-icon.file-video{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfbXA0PC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IueKtuaAgeWIh+WbviIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxMS4wMDAwMDAsIC0xMDE4LjAwMDAwMCkiPgogICAgICAgICAgICA8ZyBpZD0iaWNvbl/mlofku7bnsbvlnotfbXA0IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMTEuMDAwMDAwLCAxMDE4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS0zOC1Db3B5LTYiIGZpbGw9IiNBMzk2RTgiIHg9IjAiIHk9IjAiIHdpZHRoPSI4NCIgaGVpZ2h0PSI4NCIgcng9IjYiPjwvcmVjdD4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik02Mi4zNDQ4NDI5LDI1IEM2My44MTEyNDU3LDI1IDY1LDI2LjE4NDU2NzkgNjUsMjcuNjU5NDE1NyBMNjUsNTcuMzQwNTg0MyBDNjUsNTguODA5MzM5IDYzLjgxNjY4ODcsNjAgNjIuMzQ0ODQyOSw2MCBMMjEuNjU1MTU3MSw2MCBDMjAuMTg4NzU0Myw2MCAxOSw1OC44MTU0MzIxIDE5LDU3LjM0MDU4NDMgTDE5LDI3LjY1OTQxNTcgQzE5LDI2LjE5MDY2MSAyMC4xODMzMTEzLDI1IDIxLjY1NTE1NzEsMjUgTDYyLjM0NDg0MjksMjUgWiBNMzcuMSwzNS4yNjU5Njk2IEwzNy4xLDUwLjg5MDY5OTMgQzM3LjEsNTIuMzU0MzUxMiAzOC4wNTM2MTMzLDUyLjgyOTk2OCAzOS4yMzE1MzU5LDUxLjk1MTg0MDYgTDQ5LjAwMjk0NjksNDQuNjY3MzY5MiBDNTAuMTgwMTYxNyw0My43ODk3Njk1IDUwLjE4MDg2OTUsNDIuMzY3NDI3IDQ5LjAwMjk0NjksNDEuNDg5Mjk5NyBMMzkuMjMxNTM1OSwzNC4yMDQ4MjgyIEMzOC4wNTQzMjExLDMzLjMyNzIyODYgMzcuMSwzMy44MDA3NzEyIDM3LjEsMzUuMjY1OTY5NiBaIiBpZD0iQ29tYmluZWQtU2hhcGUiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)}.file-message-body .file-message-icon.file-image{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVAAAAFQCAMAAADeNtbrAAAAq1BMVEUAAACK0EOK0UOK0EOP4VGJ0UOK0EOK0UKJ0EKK0EOL0UKK0UOK0EOP10iQ2EiK0UKJ0EL////o9tv7/fmV1VX5/Pbv+OX9/vy4442P0kvV7ruz4Yb3/PLy+urt9+Ge2GSM0Ufo9dnh88/0+u7e8sqY1lqR00+K0ETM6q2t3nu85JTl9dXT7bir3Xil22+b11/E56Cv34DP7LLA5pui2mqo3HTa8MOL0UbH6aaB6/VOAAAAEHRSTlMApHnxCP3l2NC+f29MIBPyp/tPoQAAByJJREFUeNrs10sOwjAMRdGXpP82wftfLROEKB8JWiN5cM8SruIk1l5d0zwWw1fKOKe16qO2TIafTUvTO13mZB5UcqcX22A4bNj0JPeGE/q8H/dkOCk9jj09HSTdZYODrJuN+9NFv90uUN53J0PHwP9h6Bv/eTelSVoMbhZJ7O+OJqkaHFWtBkcrS5KvpNngaNZocDTqYnBUZHBFUILGRlCCxkZQgsZGUILGRlCCxkZQgsZGUILGRlCCxkZQgsZGUILGRlCCxkZQgsZG0Cs7dCwAAAAAMMjfeho7CiGhb0KFvgkV+iZU6JtQoW9Chb4JFfomVOibUKFvQoW+CRX6JlTom1Chb0KFvgkV+iZU6JtQoW9Chb4JFfomVOibUKFvQoW+CRX6Fvt2ltsqEERheAunwjwagwHPseMp+1/ZjWRFSRoaQ9NIdt3+FsDDL5VUQtUm6JMGXYWuRS/JcsMVxtEfdDanlzafQdkUQXcOvThnB2X6g85evieRM4Mq/UFffN7v5lCkP+iKWFhBjf6gIbEQQo3+oC6x4EKN/qAvun+KLKjRH5SYgAIT1ASVMkGfHRSYoCaolAn67KDABDVBpUzQZwcFJqgJKmWCPjsoMEFNUCkT9NlBgQlqgkqZoM8OCv6DoF662KQODWaCtnL9Cl/q8yGhYUzQNocM325+QUOYoE1WhN/snAYwQZt8/JUNKWqCNmwhClLqzQQVWTYadtSbCSpaokVOfZmgoj1a+NSXCSpwarSwqS8TVJCilUU9maCCHK1c6skEFWzQqqCeTFBBgjYZ9cUiaOqX5dolPWy02FMnZkHnFb5kS9LCR4vubzMLapW4uySkwRuaqpjk2AU94FsQkgZHNHxQB25BkwA/jjGNVtgQRCTHL6jw83JBo20C/HH0SI5d0A0Ea4fGerPx47akDvyCniF639BYsV/jLlgn1IVd0C2a6pNHYxXL6LKLDrlF3bgFdWy0maU0HdZBT2iXLWkynIMmGWT2CU2DddAj5IItTYJz0BydjgXpxzmoN0M3+0q6sQ76gYd8h/TiHDSu8FiZk06sg67Ry8kifTgHdW/oZ/ZGurAOukNft0+P9OAcdIEB9i7pwDmo944H9G/5rIMuMdCqoLE4B40rDFVdaRzWQX0oiGIag3PQtIYKOyd1rINeoGhtkSrOQa9Q9j4nNZyDWiXU1WpbPuugnxjl7NJwnIMWAcYJPmgo1kF9jLZLaBjOQefQoAppCNZB91ClvuVzDhpiBMWzMs5BrRJjKG35rIMeMI7KWRnnoEkGneqDRw95i6gsI5dn0AianVPqlp7s+/I65xh0A926z8rijzO+lQ7DoGdM4JJIRz3DLz6/oFtMIggloy5YcAvq2NBK/njE2e7RZMfMgp6glXTLz6MMrSJeQd0M2jXPytxDCakrq6BHTKrciKPeVBWMguaYWL32Azxw5BP0H7t2kqQgFARh2CPkEwFBEREnnNv5/ifrHb1sFrXIfFHfEf7QoCAyr8GgjCboHRS2bSRB51tw6CIJegCLUxRBFzuwKKoYgp7B4xVB0DWY3OWD5lcwKTL1oHtwuYgHpTmZenvtoFOwWS6Ug455TqbeMxcO+gKhr27QNxh9xqpBkw0o1blo0C9I3TSDtgVI7RrJoDPQuiaCQRsQewgGvYDZUS5oCWrXRCxoMgG3g1jQG9itpIJWS7DbpEpBiU+m3lQo6BEK1jpBn1AwmasEPUHDTCRoyn4y9d4aQR9QMZkrBM34T6bej0LQDkJK/qArKNm27EFJ1rWDdexBSda1w524g/JNRf5TVNRBeda1g72YgxKta4e7EwdlWtcOVmS0QbnWtYNdWIOSrWuH25MGZVvXDjbJOYOq/kCBFWXQCrLWlEFbqNq1lEGD2Gv8nynpQ2n9gaRpTho0rPQeS8tDuSB+UwrVWMsiYf98Jw0GTIImIQoJDJgEzUIUMhgwCVqGKJQwYBK0C1HoYMAkKJoQgQYGjILWaZCX1rAxgoGzfNH0DCMjWKjF//VNDSsj2OjKTPQeTbKyg50RHOBBeXlQD8rNg3pQbh7Ug3LzoB6Umwf1oNw8qAfl5kE9KDcP6kG5edDf9uskt4EYBqJoSa2eB/P+p40TIEg8AYabi1r8d4QPSCQJ6o2gBPVGUIJ6IyhBvRGUoN4ISlBvBCWoN4IS1BtBCeqNoAT1RlCCeiMoQb0RlKDeCEpQbwQlqDeCEtQbQQnqjaAE9UZQgnojKEG9EZSg3ghKUG8EJag3ghLUG0EJ6o2gBPVGUIJ6IyhBvRGUoN7UBRJ1GgOJRs2BRLNKIFHRGki0ag8k2qUpkGaStATSLJIONtE03aGrGkhS9a0NgRRD04+tDyToN13x6NNU/eJcylD0p1H0tNL0X+UfPaWvurMx608YNj1olQ3/Q11teuZYuOs/MC2HXtrXMo+XwFsu41zWXTe+AIkX5RUygDIXAAAAAElFTkSuQmCC)}.file-message-body .file-message-icon.file-apk{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iODRweCIgaGVpZ2h0PSI4NHB4IiB2aWV3Qm94PSIwIDAgODQgODQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbl/mlofku7bnsbvlnotfYXBrPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IueKtuaAgeWIh+WbviIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIxMS4wMDAwMDAsIC0xNjU0LjAwMDAwMCkiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgICAgIDxnIGlkPSJpY29uX+aWh+S7tuexu+Wei19hcGsiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIxMS4wMDAwMDAsIDE2NTQuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNy44NzQ5OTk5NywwIEw3Ni4xMjUsMCBDODAuNDU2MjUsMCA4NCwzLjU0Mzc1IDg0LDcuODc0OTk5OTcgTDg0LDc2LjEyNSBDODQsODAuNDU2MjUgODAuNDU2MjUsODQgNzYuMTI1LDg0IEw3Ljg3NDk5OTk3LDg0IEMzLjU0Mzc1LDg0IDAsODAuNDU2MjUgMCw3Ni4xMjUgTDAsNy44NzQ5OTk5NyBDMCwzLjU0Mzc1IDMuNTQzNzUsMCA3Ljg3NDk5OTk3LDAgWiIgaWQ9Iui3r+W+hCIgZmlsbD0iI0EwQzUzOCI+PC9wYXRoPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTU3Ljc2NjY2NjYsNDguNTEyODk0NyBDNTcuNzY2NjY2Niw1MC4xNjc0NjAzIDU5LjIzMzMzMzMsNTEuNjM4MTg1MiA2MC44ODMzMzMzLDUxLjYzODE4NTIgQzYyLjcxNjY2NjYsNTEuNjM4MTg1MiA2NCw1MC4xNjc0NjAzIDY0LDQ4LjUxMjg5NDcgTDY0LDM2LjE5NTU3MzQgQzY0LDM0LjM1NzE2NzIgNjIuNTMzMzMzMywzMy4wNzAyODI5IDYwLjg4MzMzMzMsMzMuMDcwMjgyOSBDNTkuMjMzMzMzMywzMy4wNzAyODI5IDU3Ljc2NjY2NjYsMzQuNTQxMDA3OCA1Ny43NjY2NjY2LDM2LjE5NTU3MzQgTDU3Ljc2NjY2NjYsNDguNTEyODk0NyBaIE00Ni41ODMzMzM0LDI1LjkwMDQ5ODkgQzQ2LjU4MzMzMzQsMjQuOTgxMjk1OCA0Ny4zMTY2NjY3LDI0LjQyOTc3MzkgNDguMDQ5OTk5OSwyNC40Mjk3NzM5IEM0OC45NjY2NjY2LDI0LjQyOTc3MzkgNDkuNjk5OTk5OSwyNS4xNjUxMzY0IDQ5LjY5OTk5OTksMjUuOTAwNDk4OSBDNDkuNjk5OTk5OSwyNi44MTk3MDIgNDguOTY2NjY2NiwyNy4zNzEyMjM3IDQ4LjA0OTk5OTksMjcuMzcxMjIzNyBDNDcuMTMzMzMzMywyNy4zNzEyMjM3IDQ2LjU4MzMzMzQsMjYuNjM1ODYxMyA0Ni41ODMzMzM0LDI1LjkwMDQ5ODkgWiBNMzQuNjY2NjY2NywyNS45MDA0OTg5IEMzNC42NjY2NjY3LDI0Ljk4MTI5NTggMzUuNCwyNC40Mjk3NzM5IDM2LjEzMzMzMzQsMjQuNDI5NzczOSBDMzcuMDUsMjQuNDI5NzczOSAzNy42MDAwMDAxLDI1LjE2NTEzNjQgMzcuNjAwMDAwMSwyNS45MDA0OTg5IEMzNy42MDAwMDAxLDI2LjgxOTcwMiAzNi44NjY2NjY3LDI3LjM3MTIyMzcgMzYuMTMzMzMzNCwyNy4zNzEyMjM3IEMzNS4yMTY2NjY3LDI3LjM3MTIyMzcgMzQuNjY2NjY2NywyNi42MzU4NjEzIDM0LjY2NjY2NjcsMjUuOTAwNDk4OSBaIE0yOC4wNjY2NjY3LDU1LjY4MjY3ODggQzI4LjA2NjY2NjcsNTYuOTY5NTYzMiAyOS4xNjY2NjY2LDU4LjA3MjYwNjggMzAuNDUsNTguMDcyNjA2NyBMMzMuMiw1OC4wNzI2MDY3IEwzMy4yLDY0Ljg3NDcwOTYgQzMzLjIsNjYuNTI5Mjc1MiAzNC40ODMzMzM0LDY4IDM2LjMxNjY2NjcsNjggQzM3Ljk2NjY2NjcsNjggMzkuNDMzMzMzNCw2Ni41MjkyNzUgMzkuNDMzMzMzNCw2NC44NzQ3MDk2IEwzOS40MzMzMzM0LDU4LjA3MjYwNjcgTDQ0LjM4MzMzMzMsNTguMDcyNjA2NyBMNDQuMzgzMzMzMyw2NC44NzQ3MDk2IEM0NC4zODMzMzMzLDY2LjUyOTI3NTIgNDUuNjY2NjY2Nyw2OCA0Ny41LDY4IEM0OS4zMzMzMzMzLDY4IDUwLjYxNjY2NjcsNjYuNTI5Mjc1IDUwLjYxNjY2NjYsNjQuODc0NzA5NiBMNTAuNjE2NjY2Niw1OC4wNzI2MDY3IEw1My4zNjY2NjY3LDU4LjA3MjYwNjcgQzU0LjgzMzMzMzQsNTguMDcyNjA2NyA1NS43NSw1Ni45Njk1NjMgNTUuNzUsNTUuNjgyNjc4OCBMNTUuNzUsMzMuMjU0MTIzNSBMMjguMDY2NjY2NywzMy4yNTQxMjM1IEwyOC4wNjY2NjY3LDU1LjY4MjY3ODggWiBNNTUuOTMzMzMzMywzMS4yMzE4NzY3IEM1NS41NjY2NjY3LDI3LjAwMzU0MjYgNTIuNjMzMzMzMywyMy41MTA1NzA5IDQ4LjYsMjEuNDg4MzI0IEw1MS4xNjY2NjY2LDE3LjgxMTUxMTcgQzUxLjM0OTk5OTksMTcuNjI3NjcxMiA1MS4zNDk5OTk5LDE3LjI1OTk4OTkgNTEuMTY2NjY2NiwxNy4wNzYxNDkzIEM1MC45ODMzMzMzLDE2Ljg5MjMwODcgNTAuOCwxNy4wNzYxNDkzIDUwLjYxNjY2NjYsMTcuMjU5OTg5OSBMNDcuODY2NjY2NiwyMS4xMjA2NDI4IEM0Ni4wMzMzMzMzLDIwLjM4NTI4MDQgNDQuMiwyMC4wMTc1OTkyIDQyLjE4MzMzMzMsMjAuMDE3NTk5MSBDNDAuMTY2NjY2NiwyMC4wMTc1OTg5IDM4LjE1LDIwLjM4NTI4MDIgMzYuMzE2NjY2NywyMS4xMjA2NDI4IEwzMy43NSwxNy4yNTk5ODk5IEMzMy41NjY2NjY3LDE3LjA3NjE0OTMgMzMuMzgzMzMzNCwxNi44OTIzMDg3IDMzLjIsMTcuMDc2MTQ5MyBDMzMuMDE2NjY2NywxNy4yNTk5ODk5IDMzLjAxNjY2NjcsMTcuNDQzODMwNCAzMy4wMTY2NjY3LDE3LjgxMTUxMTcgTDM1LjU4MzMzMzMsMjEuNDg4MzI0IEMzMS41NSwyMy4zMjY3MzAyIDI4LjYxNjY2NjcsMjYuODE5NzAxOCAyOC4yNSwzMS4yMzE4NzY3IEw1NS45MzMzMzMzLDMxLjIzMTg3NjcgTDU1LjkzMzMzMzMsMzEuMjMxODc2NyBaIE0yMCw0OC41MTI4OTQ3IEMyMCw1MC4xNjc0NjAzIDIxLjI4MzMzMzQsNTEuNjM4MTg1MiAyMy4xMTY2NjY3LDUxLjYzODE4NTIgQzI0Ljc2NjY2NjcsNTEuNjM4MTg1MiAyNi4yMzMzMzM0LDUwLjE2NzQ2MDMgMjYuMjMzMzMzNCw0OC41MTI4OTQ3IEwyNi4yMzMzMzM0LDM2LjE5NTU3MzQgQzI2LjIzMzMzMzQsMzQuMzU3MTY3MiAyNC43NjY2NjY3LDMzLjA3MDI4MjkgMjMuMTE2NjY2NywzMy4wNzAyODI5IEMyMS4yODMzMzM0LDMzLjA3MDI4MjkgMjAsMzQuNTQxMDA3OCAyMCwzNi4xOTU1NzM0IEwyMCw0OC41MTI4OTQ3IFoiIGlkPSLlvaLnirYiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)}.file-message-body .file-message-icon.file-text{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTY4cHgiIGhlaWdodD0iMTY4cHgiIHZpZXdCb3g9IjAgMCAxNjggMTY4IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPHRpdGxlPmljb25f5paH5Lu257G75Z6LX+aWh+S7tjwvdGl0bGU+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLnirbmgIHliIflm74iIHRyYW5zZm9ybT0idHJhbnNsYXRlKC02OTYuMDAwMDAwLCAtMzE4Ni4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8ZyBpZD0iaWNvbl/mlofku7bnsbvlnotf5paH5Lu2IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg2OTYuMDAwMDAwLCAzMTg2LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9ImFwayIgZmlsbD0iI0EwQzUzOCI+CiAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTE1Ljg5NDE5NDcsMC4xNjM4NTc2OTggTDE1Mi4yMjM3ODMsMC4xNjM4NTc2OTggQzE2MC44NzU0NjgsMC4xNjM4NTc2OTggMTY3Ljk1NDEyLDcuMjQyNTA5MzggMTY3Ljk1NDEyLDE1Ljg5NDE5NDcgTDE2Ny45NTQxMiwxNTIuMjIzNzgzIEMxNjcuOTU0MTIsMTYwLjg3NTQ2OCAxNjAuODc1NDY4LDE2Ny45NTQxMiAxNTIuMjIzNzgzLDE2Ny45NTQxMiBMMTUuODk0MTk0NywxNjcuOTU0MTIgQzcuMjQyNTA5MzgsMTY3Ljk1NDEyIDAuMTYzODU3Njk4LDE2MC44NzU0NjggMC4xNjM4NTc2OTgsMTUyLjIyMzc4MyBMMC4xNjM4NTc2OTgsMTUuODk0MTk0NyBDMC4xNjM4NTc2OTgsNy4yNDI1MDkzOCA3LjI0MjUwOTM4LDAuMTYzODU3Njk4IDE1Ljg5NDE5NDcsMC4xNjM4NTc2OTggWiIgaWQ9Iui3r+W+hCI+PC9wYXRoPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPGcgaWQ9IuaWh+S7tiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNDUuMDAwMDAwLCAzNi4wMDAwMDApIiBmaWxsPSIjRkZGRkZGIj4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNzAuOTIxNzQ2NiwwIEw2LjM2ODMyMTkyLDAgQzIuNTcxMDYxNjQsMCAwLjAzOTU1NDc5NDUsMi41MzA0MzQ3OCAwLjAzOTU1NDc5NDUsNi4zMjYwODY5NiBMMC4wMzk1NTQ3OTQ1LDg5LjgzMDQzNDggQzAuMDM5NTU0Nzk0NSw5Mi45OTM0NzgzIDMuMjAzOTM4MzYsOTYuMTU2NTIxNyA2LjM2ODMyMTkyLDk2LjE1NjUyMTcgTDQ2Ljg3MjQzMTUsOTYuMTU2NTIxNyBDNTAuNjY5NjkxOCw5Ni4xNTY1MjE3IDUzLjIwMTE5ODYsOTMuNjI2MDg3IDUzLjIwMTE5ODYsODkuODMwNDM0OCBMNTMuMjAxMTk4Niw3Ni41NDU2NTIyIEM1My4yMDExOTg2LDczLjM4MjYwODcgNTYuMzY1NTgyMiw3MC4yMTk1NjUyIDU5LjUyOTk2NTgsNzAuMjE5NTY1MiBMNzAuMjg4ODY5OSw3MC4yMTk1NjUyIEM3NC4wODYxMzAxLDcwLjIxOTU2NTIgNzYuNjE3NjM3LDY3LjY4OTEzMDQgNzYuNjE3NjM3LDYzLjg5MzQ3ODMgTDc2LjYxNzYzNyw1LjY5MzQ3ODI2IEM3Ny44ODMzOTA0LDIuNTMwNDM0NzggNzQuNzE5MDA2OCwwIDcwLjkyMTc0NjYsMCBaIE01MC4wMzY4MTUxLDUxLjg3MzkxMyBDNTAuMDM2ODE1MSw1My43NzE3MzkxIDQ4Ljc3MTA2MTYsNTUuMDM2OTU2NSA0Ni44NzI0MzE1LDU1LjAzNjk1NjUgTDE4LjM5Mjk3OTUsNTUuMDM2OTU2NSBDMTYuNDk0MzQ5Myw1NS4wMzY5NTY1IDE1LjIyODU5NTksNTMuNzcxNzM5MSAxNS4yMjg1OTU5LDUxLjg3MzkxMyBMMTUuMjI4NTk1OSw1MS4yNDEzMDQzIEMxNS4yMjg1OTU5LDQ5LjM0MzQ3ODMgMTYuNDk0MzQ5Myw0OC4wNzgyNjA5IDE4LjM5Mjk3OTUsNDguMDc4MjYwOSBMNDYuODcyNDMxNSw0OC4wNzgyNjA5IEM0OC43NzEwNjE2LDQ4LjA3ODI2MDkgNTAuMDM2ODE1MSw0OS4zNDM0NzgzIDUwLjAzNjgxNTEsNTEuODczOTEzIFogTTYzLjk2MDEwMjcsMzQuNzkzNDc4MyBDNjMuOTYwMTAyNywzNi42OTEzMDQzIDYyLjY5NDM0OTMsMzcuOTU2NTIxNyA2MC43OTU3MTkyLDM3Ljk1NjUyMTcgTDE4LjM5Mjk3OTUsMzcuOTU2NTIxNyBDMTYuNDk0MzQ5MywzNy4zMjM5MTMgMTQuNTk1NzE5MiwzNi4wNTg2OTU3IDE0LjU5NTcxOTIsMzQuNzkzNDc4MyBMMTQuNTk1NzE5MiwzNC4xNjA4Njk2IEMxNC41OTU3MTkyLDMyLjI2MzA0MzUgMTUuODYxNDcyNiwzMC45OTc4MjYxIDE3Ljc2MDEwMjcsMzAuOTk3ODI2MSBMNjAuMTYyODQyNSwzMC45OTc4MjYxIEM2Mi42OTQzNDkzLDMwLjk5NzgyNjEgNjMuOTYwMTAyNywzMi4yNjMwNDM1IDYzLjk2MDEwMjcsMzQuNzkzNDc4MyBMNjMuOTYwMTAyNywzNC43OTM0NzgzIFogTTYzLjk2MDEwMjcsMTcuNzEzMDQzNSBDNjMuOTYwMTAyNywxOS42MTA4Njk2IDYyLjY5NDM0OTMsMjAuODc2MDg3IDYwLjc5NTcxOTIsMjAuODc2MDg3IEwxOC4zOTI5Nzk1LDIwLjg3NjA4NyBDMTYuNDk0MzQ5MywyMC44NzYwODcgMTUuMjI4NTk1OSwxOS42MTA4Njk2IDE1LjIyODU5NTksMTcuNzEzMDQzNSBMMTUuMjI4NTk1OSwxNy4wODA0MzQ4IEMxNS4yMjg1OTU5LDE1LjE4MjYwODcgMTYuNDk0MzQ5MywxMy45MTczOTEzIDE4LjM5Mjk3OTUsMTMuOTE3MzkxMyBMNjAuNzk1NzE5MiwxMy45MTczOTEzIEM2Mi42OTQzNDkzLDEzLjkxNzM5MTMgNjMuOTYwMTAyNywxNS4xODI2MDg3IDYzLjk2MDEwMjcsMTcuNzEzMDQzNSBaIiBpZD0i5b2i54q2Ij48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTU3LjYzMTMzNTYsODAuOTczOTEzIEw1Ny42MzEzMzU2LDg5LjgzMDQzNDggQzU3LjYzMTMzNTYsOTIuOTkzNDc4MyA2MS40Mjg1OTU5LDk0LjI1ODY5NTcgNjMuMzI3MjI2LDkyLjM2MDg2OTYgTDc1Ljk4NDc2MDMsNzkuNzA4Njk1NyBDNzcuODgzMzkwNCw3Ny44MTA4Njk2IDc2LjYxNzYzNyw3NC4wMTUyMTc0IDczLjQ1MzI1MzQsNzQuMDE1MjE3NCBMNjQuNTkyOTc5NSw3NC4wMTUyMTc0IEM2MC43OTU3MTkyLDc0LjAxNTIxNzQgNTcuNjMxMzM1Niw3Ny4xNzgyNjA5IDU3LjYzMTMzNTYsODAuOTczOTEzIFoiIGlkPSLot6/lvoQiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+)}.file-message-body .file-desc{width:7.9166em;margin:0 0.41666em 0 0}.file-message-body .file-desc .file-name{height:2.3333em;line-height:1.1;text-overflow:ellipsis;font-size:1em;margin:0 0 0.1667em;word-break:break-all;overflow:hidden;white-space:nowrap}.file-message-body .file-desc .file-size{font-weight:400;color:#c7cbce;line-height:0.83333em;font-size:0.75em}.file-message-body .file-download-btn{background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNzBweCIgaGVpZ2h0PSI3MHB4IiB2aWV3Qm94PSIwIDAgNzAgNzAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5LiL6L29aWNvbjwvdGl0bGU+CiAgICA8ZyBpZD0i6aG16Z2iLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSIwNF/ljZXogYot5paH5Lu25raI5oGv5oKs5YGc54K55Ye754q25oCBIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtOTY1LjAwMDAwMCwgLTUyOC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9Iue8lue7hOWkh+S7vS01IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1NjQuMDAwMDAwLCA1MDEuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0i5LiL6L29aWNvbiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNDAyLjAwMDAwMCwgMjguMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0i5qSt5ZyG5b2iIiBzdHJva2U9IiNFMkU0RTUiIGZpbGw9IiNGRkZGRkYiIGN4PSIzNCIgY3k9IjM0IiByPSIzNCI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTM1LjYyMTEzNzMsMzcuMzE4NDc0IEw0NC4xMDk2NTIzLDI4Ljg4MzU1NjcgQzQ0LjU0MjA5NTUsMjguNDUzODQ0IDQ1LjI0MzIyNDQsMjguNDUzODQ0IDQ1LjY3NTY2NzYsMjguODgzNTU2NyBDNDYuMTA4MTEwOCwyOS4zMTMyNjk0IDQ2LjEwODExMDgsMzAuMDA5OTcxMyA0NS42NzU2Njc2LDMwLjQzOTY4NCBMMzUuNDA3NTg5Nyw0MC42NDI5Mjc4IEMzNC45MTExNDk1LDQxLjExOTAyNDEgMzQuMTI0NDY3LDQxLjExOTAyNDEgMzMuNjI4MDI2OCw0MC42NDI5Mjc4IEwyMy4zMjQzNTc2LDMwLjQ1NzM2NzMgQzIzLjA0NDYxNTksMzAuMTc5MzkxOSAyMi45MzUzNjQ0LDI5Ljc3NDIzNCAyMy4wMzc3NTY5LDI5LjM5NDUxMjUgQzIzLjE0MDE0OTUsMjkuMDE0NzkxMSAyMy40Mzg2MzAzLDI4LjcxODE5NDkgMjMuODIwNzY0NiwyOC42MTY0NDg5IEMyNC4yMDI4OTg5LDI4LjUxNDcwMjggMjQuNjEwNjMxMywyOC42MjMyNjQ2IDI0Ljg5MDM3MywyOC45MDEyNCBMMzMuMzc4ODg4LDM3LjMzNjE1NzMgTDMzLjM3ODg4OCwyMC4yNTQxMjM1IEMzMy4zMjQyNjc1LDE5LjgyNTg5MjkgMzMuNTIzNTEzNywxOS40MDQ4NDk2IDMzLjg5MDI1NzUsMTkuMTczNTA3IEMzNC4yNTcwMDEzLDE4Ljk0MjE2NDMgMzQuNzI1MjI4MywxOC45NDIxNjQzIDM1LjA5MTk3MjEsMTkuMTczNTA3IEMzNS40NTg3MTU5LDE5LjQwNDg0OTYgMzUuNjU3OTYyMSwxOS44MjU4OTI5IDM1LjYwMzM0MTYsMjAuMjU0MTIzNSBMMzUuNjIxMTM3MywzNy4zMTg0NzQgWiBNMjEuOTQ4MjczMSw0NyBDMjEuNDA2MzAxMiw0Ni45MzYxNjMgMjEsNDYuNTA3Njk4NyAyMSw0NiBDMjEsNDUuNDkyMzAxMyAyMS40MDYzMDEyLDQ1LjA2MzgzNyAyMS45NDgyNzMxLDQ1IEw0Ni4wNTE3MjY5LDQ1IEM0Ni41OTM2OTg4LDQ1LjA2MzgzNyA0Nyw0NS40OTIzMDEzIDQ3LDQ2IEM0Nyw0Ni41MDc2OTg3IDQ2LjU5MzY5ODgsNDYuOTM2MTYzIDQ2LjA1MTcyNjksNDcgTDIxLjk0ODI3MzEsNDcgWiIgaWQ9IuW9oueKtiIgZmlsbD0iIzAwOTlGRiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==) no-repeat;background-size:contain;width:2.8333em;height:2.8333em;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;cursor:pointer}.hqvoice-message-body{-webkit-box-sizing:border-box;box-sizing:border-box;font-size:1em;color:#111f2c;padding:0.625em 0.8333em 0.625em;display:-ms-flexbox;display:flex}.message-item.receiver .hqvoice-message-body{-ms-flex-direction:row;flex-direction:row}.message-item.poster .hqvoice-message-body{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.hqvoice-message-body img{width:1.3333em;height:1.3333em}.message-item.receiver .hqvoice-message-body img{margin:0 1.6em 0 0}.message-item.poster .hqvoice-message-body img{margin:0 0 0 1.6em;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.sight-message-body{max-width:12.5em;position:relative;border-radius:0.5em;border:1px solid #e2e4e5;overflow:hidden}.sight-message-body img{display:block}.sight-message-body .file-duration{font-size:0.8333em;color:#ffffff;position:absolute;line-height:1.166667em;right:0.58333em;bottom:0.416667em;z-index:2}.sight-message-body .start-play-btn{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background:rgba(0, 0, 0, 0.2);position:absolute;left:0;top:0;z-index:1;font-size:1em}.sight-message-body .start-play-btn button{background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNzJweCIgaGVpZ2h0PSI3MnB4IiB2aWV3Qm94PSIwIDAgNzIgNzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+57yW57uEIDEwPC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IjE2X+WNleiBii3lsI/op4bpopHmtojmga8tMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTExMzYuMDAwMDAwLCAtNTAzLjAwMDAwMCkiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtMTEiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMjAuMDAwMDAwLCA0NTEuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0i57yW57uELTEwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMTYuMDAwMDAwLCA1Mi4wMDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSLmpK3lnIblvaIiIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIiBjeD0iMzYiIGN5PSIzNiIgcj0iMzUiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0zMS41MzY0NDM1LDIzLjk3NjYzMTkgTDUwLjI0OTU5MiwzNS44NzE1NDI0IEM1MC43MTU2ODUxLDM2LjE2NzgxMTkgNTAuODUzMzU0MywzNi43ODU4MjkgNTAuNTU3MDg0OCwzNy4yNTE5MjIxIEM1MC40NzU2MTIyLDM3LjM4MDA5NTMgNTAuMzY2MDE1MSwzNy40ODgwMjcyIDUwLjIzNjYwOTgsMzcuNTY3NTI4MSBMMzEuNTIzNDYxMyw0OS4wNjQwNTMyIEMzMS4wNTI4ODczLDQ5LjM1MzE1MjkgMzAuNDM3MDUwMiw0OS4yMDYwMzkgMzAuMTQ3OTUwNSw0OC43MzU0NjUgQzMwLjA1MTIxMTcsNDguNTc4MDAxMSAzMCw0OC4zOTY4MDk4IDMwLDQ4LjIxMjAwMzggTDMwLDI0LjgyMDU2ODEgQzMwLDI0LjI2ODI4MzQgMzAuNDQ3NzE1MywyMy44MjA1NjgxIDMxLDIzLjgyMDU2ODEgQzMxLjE5MDAwOTksMjMuODIwNTY4MSAzMS4zNzYwODcyLDIzLjg3NDcwMjMgMzEuNTM2NDQzNSwyMy45NzY2MzE5IFoiIGlkPSLnn6nlvaIiIGZpbGw9IiNGRkZGRkYiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+) no-repeat;background-size:contain;width:3em;height:3em;border:none}.gif-message-body img{max-width:30em;display:block}.reference-message-body{padding:0.5833em 0.8333em;min-width:8.333em}.reference-message-body .reference-message-content{border-bottom:1px solid rgba(160, 165, 171, 0.26)}.reference-message-body .reference-message-content .user{font-size:0.83333em;color:#a0a5ab;border-left:0.16667em solid #a0a5ab;padding:0 0 0 0.41666em;height:1.08333em;line-height:1.08333em}.reference-message-body .reference-message-content .content{color:#111f2c;padding:0.41667em 0 0.3em 0.58333em;word-break:break-all}.reference-message-body .reference-message-content .content img{width:2.91667em;height:2.91667em;border-radius:0.25em}.reference-message-body .message-content{color:#111f2c;font-size:1em;padding:0.41667em 0 0 0.05833em;word-break:break-all;position:relative}.rich-message-body{padding:0.58333em 0.83333em}.rich-message-body .title{color:#111f2c;font-size:1em;max-height:4.16667em;line-height:1.41667em;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box}.rich-message-body .content{line-height:1.4;color:#a0a5ab;font-size:0.83333em;overflow:hidden}.rich-message-body .content>p{height:5em;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box}.rich-message-body .content img{float:right;width:4.6667em;height:4.6667em;overflow:hidden;text-overflow:ellipsis;word-break:break-all;border-radius:0.25em;border:1px solid #979797;margin:0 0 0 1em}.message-item.custom-notify-message-item{text-align:center;display:block;font-size:1.5em}a.url-wrap{color:#0099ff;text-decoration:none}.referenced-message-text{height:1em;line-height:1;overflow:hidden;text-overflow:ellipsis;word-break:keep-all}div.referenced-message-text:hover div{visibility:visible}.quote{position:absolute;top:2em;z-index:100}.quoteContent{width:100%;word-break:break-all;visibility:hidden;padding:0.17em;background:#fff;-webkit-box-shadow:0px 0px 15px 3px rgba(100, 102, 109, 0.19);box-shadow:0px 0px 15px 3px rgba(100, 102, 109, 0.19);border-radius:0.17em;font-size:0.8em;font-family:PingFangSC-Regular, PingFang SC;font-weight:400;color:#111f2c;line-height:1.2}.sendFail{content:' ';display:block;width:1.6667em;height:1.6667em;background-repeat:no-repeat;background-size:contain;position:absolute;left:-2.2em;bottom:0;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjVweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjUgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5oSf5Y+55Y+3PC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IjAyX+WNleiBii3ljZXogYrlkJHkuIrmu5rliqjml7YtbG9hZGluZyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEwNC4wMDAwMDAsIC02MzkuMDAwMDAwKSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgPGcgaWQ9IuaEn+WPueWPtyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTA0LjQwMDAwMCwgNjM5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8ZyBpZD0i57yW57uELTI0IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxLjUwMDAwMCwgMS41MDAwMDApIj4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSLmpK3lnIblvaIiIGZpbGw9IiNGRjQxNDEiIGN4PSIxMC41IiBjeT0iMTAuNSIgcj0iMTAuNSI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgPHJlY3QgaWQ9IuefqeW9oiIgZmlsbD0iI0ZGRkZGRiIgeD0iOS43NSIgeT0iNS4yNSIgd2lkdGg9IjEuNSIgaGVpZ2h0PSI3LjUiPjwvcmVjdD4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSLmpK3lnIblvaIiIGZpbGw9IiNGRkZGRkYiIGN4PSIxMC41IiBjeT0iMTUiIHI9IjEiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=)}",Co=function(e){Ot(n,e);var t=Lt(n);function n(){var e;return Qt(this,n),e=t.call(this),e.__registerHost(),e.rightClick=be(jt(e),"rightClick",7),e.tapMessageItem=be(jt(e),"tapMessageItem",7),e.lang=gn.lang,e.lastTime=0,e.tapMessageHandler=e.tapMessageHandler.bind(jt(e)),e.rightClickHandler=e.rightClickHandler.bind(jt(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(jt(e)),e}return Zt(n,[{key:"validateData",value:function(e,t){e!==t&&(this.lastTime=0)}},{key:"componentWillLoad",value:function(){gn.off(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged),gn.on(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){gn.off(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"handleLanguageChanged",value:function(e){this.lastTime=0,this.lang=e.lang}},{key:"findMember",value:function(e){return this.groupMembers&&this.groupMembers.length?this.groupMembers.find((function(t){return t.id===e})):null}},{key:"getTimeLine",value:function(e,t){return W("li",{class:"time-separation"},Un(e,{hour:":",minute:""},t))}},{key:"tapMessageHandler",value:function(e){this.tapMessageItem.emit(e.detail)}},{key:"getItem",value:function(e){if(-1!==e.messageType.indexOf("__RECALL"))return null;if(yo[e.messageType])return W("li",{class:"message-item ntf-message-item"},Io(e));if(gn.isCustomNotifyMessage(e))return W("li",{class:"message-item custom-notify-message-item",innerHTML:gn.createCustomNotifyMessageDom(e)});var t=e.conversationType===bt["e"].GROUP,n={groupNickname:"",id:"",name:""};if(t){var r=this.findMember(e.senderUserId);r&&(n=r)}return W("message-item",{member:n,message:e,isGroupMember:t,conversationProfile:this.conversationProfile,myProfile:this.myProfile,onRightClick:this.rightClickHandler,onTap:this.tapMessageHandler})}},{key:"rightClickHandler",value:function(e){this.rightClick.emit(e.detail)}},{key:"checkGroup",value:function(e){var t=this,n=this.messages;return n.map((function(n){return n.sentTime-t.lastTime<3e5?t.getItem(n):(t.lastTime=n.sentTime,W(Xe,null,t.getTimeLine(n.sentTime,e),t.getItem(n)))}))}},{key:"render",value:function(){this.locale=this.lang?Sn[this.lang]:Sn.zh_CN;var e=this.locale;return W("ul",{style:{"list-style":"none",padding:"0",margin:"0"}},this.checkGroup(e))}}],[{key:"watchers",get:function(){return{messages:["validateData"]}}},{key:"style",get:function(){return Mo}}]),n}(Et(HTMLElement)),To=".message-item.image-message-item .message-body,.message-item.sight-message-item .message-body,.message-item.gif-message-item .message-body{background:none;border:none;padding:0}.message-item.image-message-item .message-body .image-message-body img{max-width:10em;min-width:2.5em}.message-item.image-message-item .image-message-body{min-width:2.2222em;min-height:2.2222em;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.message-item.file-message-item .upload-progress-mask{width:1.165em;height:1.165em;min-width:1.165em;top:0.27em;left:0.27em;border-radius:0.1em;background:none}.message-item.file-message-item .upload-progress-mask .upload-progress-bar{width:141.4%;height:141.4%}.message-item.file-message-item .upload-progress-mask .upload-progress-bar svg path{fill:rgba(0, 0, 0, .4)}.message-item .name{color:#a0a5ab;font-size:1.8em;line-height:1;margin:0 0 0 4.5em;position:absolute}.message-body-margin{margin-top:2em}",Ao=function(e){Ot(n,e);var t=Lt(n);function n(){var e;return Qt(this,n),e=t.call(this),e.__registerHost(),e.rightClick=be(jt(e),"rightClick",7),e.tap=be(jt(e),"tap",7),e.lang=gn.lang,e.handleClick=e.handleClick.bind(jt(e)),e.handleFail=e.handleFail.bind(jt(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(jt(e)),e}return Zt(n,[{key:"componentWillLoad",value:function(){gn.off(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged),gn.on(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){gn.off(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"getMessageStyleClass",value:function(e){var t,n=(t={},zt(t,_t["h"].IMAGE,"image-message-item"),zt(t,_t["h"].SIGHT,"sight-message-item"),zt(t,_t["h"].GIF,"gif-message-item"),zt(t,_t["h"].FILE,"file-message-item"),t);return"".concat(n[e.messageType]||e.messageType," ")}},{key:"rightClickHandler",value:function(e,t){return 2!==t.button?null:(t.preventDefault(),this.rightClick.emit({message:e,position:{top:t.clientY,left:t.clientX}}))}},{key:"getReceivedStatus",value:function(e,t){var n="";return e.messageDirection===_t["g"].SEND&&e.conversationType===_t["a"].PRIVATE&&(n=e.receivedStatus===_t["j"].UNREAD?t.conversation.unread:t.conversation.read),n}},{key:"getProgressBar",value:function(e){return 0===e.messageUId.indexOf("sending")&&e.messageId&&-1!==[_t["h"].IMAGE,_t["h"].FILE,_t["h"].SIGHT,_t["h"].HQ_VOICE,_t["h"].GIF].indexOf(e.messageType)?W("progress-bar",{mId:e.messageId,reverse:e.messageType===_t["h"].FILE}):null}},{key:"handleClick",value:function(e){this.tap.emit(e)}},{key:"handleFail",value:function(){var e={conversationType:this.message.conversationType,targetId:this.message.targetId,channelId:this.message.channelId};gn.resendMessage(e,this.message)}},{key:"showAvatar",value:function(){return this.isGroupMember?this.member&&this.member.portraitUri?W("img",{src:this.member.portraitUri}):null:this.message.messageDirection===_t["g"].RECEIVE?this.conversationProfile?W("img",{src:this.conversationProfile.portraitUri}):null:this.myProfile?W("img",{src:this.myProfile.portraitUri}):null}},{key:"showMessage",value:function(){return mo[this.message.messageType]?W(Xe,null,this.message.messageUId.startsWith("fail_")?W("div",{onClick:this.handleFail,class:"sendFail"}):W("div",{class:"receive-status"}," ",this.getReceivedStatus(this.message,this.locale)," "),Io(this.message,this.handleClick),this.getProgressBar(this.message)):gn.isCustomUserMessage(this.message)?W("div",null,W("div",{class:"receive-status"}," ",this.getReceivedStatus(this.message,this.locale)," "),W("div",{innerHTML:gn.createCustomUserMessageDom(this.message)})):null}},{key:"render",value:function(){var e=this;this.locale=this.lang?Sn[this.lang]:Sn.zh_CN;var t=this.message,n=this.isGroupMember,r=this.member;return mo[t.messageType]||gn.isCustomUserMessage(t)?W("li",{class:"message-item ".concat(this.getMessageStyleClass(t)).concat(t.conversationType===_t["a"].SYSTEM?"system-user-message-item ":"").concat(t.messageDirection===_t["g"].RECEIVE?"receiver ":"poster ").concat(t.messageUId.startsWith("sending_")?"sending ":""),key:t.messageUId,"data-key":t.messageUId},W("div",{class:"avatar"},this.showAvatar()),n&&t.messageDirection===_t["g"].RECEIVE?W("div",{class:"name"},W("span",null,r.groupNickname||r.name||r.id)):null,W("div",{class:"message-body-wrapper ".concat(n&&t.messageDirection===_t["g"].RECEIVE?"message-body-margin":""),onContextMenu:function(n){return e.rightClickHandler(t,n)}},t.conversationType===_t["a"].SYSTEM?W("div",{class:"name"},W("span",null,this.conversationProfile.name)):null,W("div",{class:"message-body"},this.showMessage()))):(_t["A"].info(At.A_KIT_MESSAGE_UNKNOW_O,{msg:"无法识别的消息",message:t}),null)}}],[{key:"style",get:function(){return To}}]),n}(Et(HTMLElement)),_o="undefined"!==typeof window,bo=_o&&navigator.userAgent.toLowerCase();if(bo&&/wechatdevtools/.test(bo),bo&&bo.indexOf("android"),function(){if("string"===typeof bo){var e=/os (\d\d?_\d(_\d)?)/,t=e.exec(bo);if(!t)return!1;var n=t[1].split("_").map((function(e){return parseInt(e,10)}));return!!(13===n[0]&&n[1]>=4)}}(),_o){var No="test-passive";try{var Eo={};Object.defineProperty(Eo,"passive",{get:function(){}}),window.addEventListener(No,(function(){}),Eo)}catch(cs){}}var wo=function(e,t){for(var n in t)e[n]=t[n];return e},So=_o&&document.createElement("div").style,Oo=function(){if(!_o)return!1;for(var e=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,n=e;t<n.length;t++){var r=n[t];if(void 0!==So[r.value])return r.key}return!1}();function Do(e){return!1===Oo?e:"standard"===Oo?"transitionEnd"===e?"transitionend":e:Oo+e.charAt(0).toUpperCase()+e.substr(1)}Oo&&"standard"!==Oo&&Oo.toLowerCase();Do("transform"),Do("transition");_o&&Do("perspective"),Do("transitionTimingFunction"),Do("transitionDuration"),Do("transitionDelay"),Do("transformOrigin"),Do("transitionEnd"),Do("transitionProperty");var Lo={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(e){return 1+--e*e*e*e*e}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(e){return e*(2-e)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(e){return 1- --e*e*e*e}}},Ro="plugins.pullDownRefresh",jo=[{key:"finishPullDown",name:"finishPullDown"},{key:"openPullDown",name:"openPullDown"},{key:"closePullDown",name:"closePullDown"},{key:"autoPullDownRefresh",name:"autoPullDownRefresh"}],xo=jo.map((function(e){return{key:e.key,sourceKey:Ro+"."+e.name}})),ko="pullingDown",Uo="enterThreshold",Po="leaveThreshold",zo=function(){function e(e){this.scroll=e,this.pulling=0,this.thresholdBoundary=0,this.init()}return e.prototype.setPulling=function(e){this.pulling=e},e.prototype.setThresholdBoundary=function(e){this.thresholdBoundary=e},e.prototype.init=function(){this.handleBScroll(),this.handleOptions(this.scroll.options.pullDownRefresh),this.handleHooks(),this.watch()},e.prototype.handleBScroll=function(){this.scroll.registerType([ko,Uo,Po]),this.scroll.proxy(xo)},e.prototype.handleOptions=function(e){void 0===e&&(e={}),e=!0===e?{}:e;var t={threshold:90,stop:40};this.options=wo(t,e),this.scroll.options.probeType=3},e.prototype.handleHooks=function(){var e=this;this.hooksFn=[];var t=this.scroll.scroller,n=t.scrollBehaviorY;this.currentMinScrollY=this.cachedOriginanMinScrollY=n.minScrollPos,this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.contentChanged,(function(){e.finishPullDown()})),this.registerHooks(n.hooks,n.hooks.eventTypes.computeBoundary,(function(t){t.maxScrollPos>0&&(t.maxScrollPos=-1),t.minScrollPos=e.currentMinScrollY})),this.hasMouseWheelPlugin()&&(this.registerHooks(this.scroll,this.scroll.eventTypes.alterOptions,(function(e){var t=300,n=350;e.discreteTime=t,e.easeTime=n})),this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelEnd,(function(){t.hooks.trigger(t.hooks.eventTypes.end)})))},e.prototype.registerHooks=function(e,t,n){e.on(t,n,this),this.hooksFn.push([e,t,n])},e.prototype.hasMouseWheelPlugin=function(){return!!this.scroll.eventTypes.alterOptions},e.prototype.watch=function(){var e=this.scroll.scroller;this.watching=!0,this.registerHooks(e.hooks,e.hooks.eventTypes.end,this.checkPullDown),this.registerHooks(this.scroll,this.scroll.eventTypes.scrollStart,this.resetStateBeforeScrollStart),this.registerHooks(this.scroll,this.scroll.eventTypes.scroll,this.checkLocationOfThresholdBoundary),this.hasMouseWheelPlugin()&&this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelStart,this.resetStateBeforeScrollStart)},e.prototype.resetStateBeforeScrollStart=function(){this.isFetchingStatus()||(this.setPulling(1),this.setThresholdBoundary(0))},e.prototype.checkLocationOfThresholdBoundary=function(){if(1===this.pulling){var e=this.scroll,t=1!==this.thresholdBoundary&&this.locateInsideThresholdBoundary(),n=2!==this.thresholdBoundary&&!this.locateInsideThresholdBoundary();t&&(this.setThresholdBoundary(1),e.trigger(Uo)),n&&(this.setThresholdBoundary(2),e.trigger(Po))}},e.prototype.locateInsideThresholdBoundary=function(){return this.scroll.y<=this.options.threshold},e.prototype.unwatch=function(){var e=this.scroll,t=e.scroller;this.watching=!1,t.hooks.off(t.hooks.eventTypes.end,this.checkPullDown),e.off(e.eventTypes.scrollStart,this.resetStateBeforeScrollStart),e.off(e.eventTypes.scroll,this.checkLocationOfThresholdBoundary),this.hasMouseWheelPlugin()&&e.off(e.eventTypes.mousewheelStart,this.resetStateBeforeScrollStart)},e.prototype.checkPullDown=function(){var e=this.options,t=e.threshold,n=e.stop;return!(this.scroll.y<t)&&(1===this.pulling&&(this.modifyBehaviorYBoundary(n),this.setPulling(2),this.scroll.trigger(ko)),this.scroll.scrollTo(this.scroll.x,n,this.scroll.options.bounceTime,Lo.bounce),this.isFetchingStatus())},e.prototype.isFetchingStatus=function(){return 2===this.pulling},e.prototype.modifyBehaviorYBoundary=function(e){var t=this.scroll.scroller.scrollBehaviorY;this.cachedOriginanMinScrollY=t.minScrollPos,this.currentMinScrollY=e,t.computeBoundary()},e.prototype.finishPullDown=function(){if(this.isFetchingStatus()){var e=this.scroll.scroller.scrollBehaviorY;this.currentMinScrollY=this.cachedOriginanMinScrollY,e.computeBoundary(),this.setPulling(0),this.scroll.resetPosition(this.scroll.options.bounceTime,Lo.bounce)}},e.prototype.openPullDown=function(e){void 0===e&&(e={}),this.handleOptions(e),this.watching||this.watch()},e.prototype.closePullDown=function(){this.unwatch()},e.prototype.autoPullDownRefresh=function(){var e=this.options,t=e.threshold,n=e.stop;!this.isFetchingStatus()&&this.watching&&(this.modifyBehaviorYBoundary(n),this.scroll.trigger(this.scroll.eventTypes.scrollStart),this.scroll.scrollTo(this.scroll.x,t),this.setPulling(2),this.scroll.trigger(ko),this.scroll.scrollTo(this.scroll.x,n,this.scroll.options.bounceTime,Lo.bounce))},e.pluginName="pullDownRefresh",e}(),Go='.message-container{width:100%;height:100%;background:#fbfbfc}.message-list-container{height:calc(100% - 10.5em);overflow:hidden;position:relative}.message-list-scroller{min-height:101%}.message-list-wrapper{position:relative;height:100%;overflow:hidden}.conversation-info{border-bottom:0.1em solid #e3e5e6;padding:0 2.5em;height:10.4em;text-align:left}.conversation-info .receiver{padding:0 0 0;color:#333;font-size:2.8em;font-weight:500;line-height:3.714}.message-list{list-style:none;padding:0 1em}.pulldown-wrapper{position:absolute;width:100%;padding:2em;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transform:translateY(-100%) translateZ(0);transform:translateY(-100%) translateZ(0);text-align:center;color:#999;font-size:2em}.message-loading{-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;color:rgb(153, 153, 153);font-size:2em}.no-data{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#fff}.no-data::before{content:" ";display:block;width:12.8em;height:12.8em;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTI4cHgiIGhlaWdodD0iMTI4cHgiIHZpZXdCb3g9IjAgMCAxMjggMTI4IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPHRpdGxlPue8uuecgWljb248L3RpdGxlPgogICAgPGcgaWQ9Iumhtemdoi0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMDJf5Lya6K+d5YiX6KGo5Li656m6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTYwLjAwMDAwMCwgLTM1NC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9Iue8uuecgWljb24iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE2MC4wMDAwMDAsIDM1NC4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4Ij48L3JlY3Q+CiAgICAgICAgICAgICAgICA8ZyBpZD0iYmVsbHMtKDEpIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzLjAwMDAwMCwgMTEuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0yMDMiIHN0cm9rZS1vcGFjaXR5PSIwLjQiIHN0cm9rZT0iI0EzQjFCRiIgc3Ryb2tlLXdpZHRoPSIyIiBjeD0iMjAuNSIgY3k9IjMuNSIgcj0iMy41Ij48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTIwM+Wkh+S7vSIgc3Ryb2tlLW9wYWNpdHk9IjAuNCIgc3Ryb2tlPSIjQTNCMUJGIiBzdHJva2Utd2lkdGg9IjEuODI0IiBjeD0iMTA4IiBjeT0iMjMiIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMTcuNSw0NSBDMTE4LjA0ODAyMSw0NSAxMTguNDkyMjc5LDQ1LjQ0NDI1ODYgMTE4LjQ5MjI3OSw0NS45OTIyNzkzIEwxMTguNDkyLDQ4LjM2OCBMMTIxLDQ4LjM2ODM0NyBDMTIxLjU1MjI4NSw0OC4zNjgzNDcgMTIyLDQ4LjgxNjA2MjMgMTIyLDQ5LjM2ODM0NyBDMTIyLDQ5LjkyMDYzMTggMTIxLjU1MjI4NSw1MC4zNjgzNDcgMTIxLDUwLjM2ODM0NyBMMTE4LjQ5Miw1MC4zNjggTDExOC40OTIyNzksNTMuMDc3NzQ4MSBDMTE4LjQ5MjI3OSw1My42MjU3Njg4IDExOC4wNDgwMjEsNTQuMDcwMDI3NCAxMTcuNSw1NC4wNzAwMjc0IEMxMTYuOTUxOTc5LDU0LjA3MDAyNzQgMTE2LjUwNzcyMSw1My42MjU3Njg4IDExNi41MDc3MjEsNTMuMDc3NzQ4MSBMMTE2LjUwNyw1MC4zNjggTDExNCw1MC4zNjgzNDcgQzExMy40NDc3MTUsNTAuMzY4MzQ3IDExMyw0OS45MjA2MzE4IDExMyw0OS4zNjgzNDcgQzExMyw0OC44MTYwNjIzIDExMy40NDc3MTUsNDguMzY4MzQ3IDExNCw0OC4zNjgzNDcgTDExNi41MDcsNDguMzY4IEwxMTYuNTA3NzIxLDQ1Ljk5MjI3OTMgQzExNi41MDc3MjEsNDUuNDQ0MjU4NiAxMTYuOTUxOTc5LDQ1IDExNy41LDQ1IFoiIGlkPSJDb21iaW5lZC1TaGFwZSIgZmlsbC1vcGFjaXR5PSIwLjQiIGZpbGw9IiNBM0IxQkYiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNC41LDU5IEM1LjA0ODAyMDcsNTkgNS40OTIyNzkyNSw1OS40NDQyNTg2IDUuNDkyMjc5MjUsNTkuOTkyMjc5MyBMNS40OTIsNjIuMzY4IEw4LDYyLjM2ODM0NyBDOC41NTIyODQ3NSw2Mi4zNjgzNDcgOSw2Mi44MTYwNjIzIDksNjMuMzY4MzQ3IEM5LDYzLjkyMDYzMTggOC41NTIyODQ3NSw2NC4zNjgzNDcgOCw2NC4zNjgzNDcgTDUuNDkyLDY0LjM2OCBMNS40OTIyNzkyNSw2Ny4wNzc3NDgxIEM1LjQ5MjI3OTI1LDY3LjYyNTc2ODggNS4wNDgwMjA3LDY4LjA3MDAyNzQgNC41LDY4LjA3MDAyNzQgQzMuOTUxOTc5Myw2OC4wNzAwMjc0IDMuNTA3NzIwNzUsNjcuNjI1NzY4OCAzLjUwNzcyMDc1LDY3LjA3Nzc0ODEgTDMuNTA3LDY0LjM2OCBMMSw2NC4zNjgzNDcgQzAuNDQ3NzE1MjUsNjQuMzY4MzQ3IDYuNzYzNTM3NTFlLTE3LDYzLjkyMDYzMTggMCw2My4zNjgzNDcgQy02Ljc2MzUzNzUxZS0xNyw2Mi44MTYwNjIzIDAuNDQ3NzE1MjUsNjIuMzY4MzQ3IDEsNjIuMzY4MzQ3IEwzLjUwNyw2Mi4zNjggTDMuNTA3NzIwNzUsNTkuOTkyMjc5MyBDMy41MDc3MjA3NSw1OS40NDQyNTg2IDMuOTUxOTc5Myw1OSA0LjUsNTkgWiIgaWQ9IkNvbWJpbmVkLVNoYXBlLUNvcHkiIGZpbGwtb3BhY2l0eT0iMC40IiBmaWxsPSIjQTNCMUJGIj48L3BhdGg+CiAgICAgICAgICAgICAgICAgICAgPGVsbGlwc2UgaWQ9Ik92YWwtNCIgZmlsbD0iI0RBRTBFNSIgY3g9IjY0IiBjeT0iMTAyLjUiIHJ4PSIyOCIgcnk9IjIuNSI+PC9lbGxpcHNlPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPGcgaWQ9IjI0Z2wtYnViYmxlczciIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE2LjAwMDAwMCwgMjQuMDAwMDAwKSIgZmlsbD0iI0RBRTBFNSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNOS43OTE2NjY3LDU5LjIxMDI3NDggQzkuMjcyMjg0NCw1OS4yMTAyNzQ4IDguNzc0MTc0NjMsNTkuMDAyMzM0NSA4LjQwNjkxNTg4LDU4LjYzMjE5ODUgQzguMDM5NjU3MTIsNTguMjYyMDYyNSA3LjgzMzMzMzMsNTcuNzYwMDUwMyA3LjgzMzMzMzMsNTcuMjM2NTk5IEw3LjgzMzMzMzMsNDcuMzY4MjE5OCBDMy41MDkwNjAxOSw0Ny4zNjM0NjA4IDAuMDA0NzIxOTY0NzIsNDMuODMxNjY4IDAsMzkuNDczNTE2NSBMMCw3Ljg5NDcwMzI3IEMwLjAwNDcyMTk2NDcyLDMuNTM2NTUxOCAzLjUwOTA2MDE5LDAuMDA0NzU4OTU4NzggNy44MzMzMzMzLDAgTDU4Ljc1LDAgQzYzLjA3NDI3MzEsMC4wMDQ3NTg5NTg3OCA2Ni41Nzg2MTEzLDMuNTM2NTUxOCA2Ni41ODMzMzMzLDcuODk0NzAzMjcgTDY2LjU4MzMzMzMsMTMuODE1NzMwNyBDNjYuNTgzMzMzMywxNC45MDU3NjE4IDY1LjcwNjU1NzYsMTUuNzg5NDA2NSA2NC42MjUsMTUuNzg5NDA2NSBDNjMuNTQzNDQyNCwxNS43ODk0MDY1IDYyLjY2NjY2NjcsMTQuOTA1NzYxOCA2Mi42NjY2NjY3LDEzLjgxNTczMDcgTDYyLjY2NjY2NjcsNy44OTQ3MDMyNyBDNjIuNjY0MzA1Nyw1LjcxNTYyNzUyIDYwLjkxMjEzNjYsMy45NDk3MzExMSA1OC43NSwzLjk0NzM1MTY4IEw3LjgzMzMzMzMsMy45NDczNTE2OCBDNS42NzExOTY3NywzLjk0OTczMTE2IDMuOTE5MDI3NjgsNS43MTU2Mjc1NiAzLjkxNjY2NjcsNy44OTQ3MDMyNyBMMy45MTY2NjY3LDM5LjQ3MzUxNjUgQzMuOTE5MDI3NjgsNDEuNjUyNTkyMiA1LjY3MTE5Njc3LDQzLjQxODQ4ODYgNy44MzMzMzMzLDQzLjQyMDg2ODEgTDkuNzkxNjY2Nyw0My40MjA4NjgxIEMxMC4zMTEwNDksNDMuNDIwODY4MSAxMC44MDkxNTg3LDQzLjYyODgwODQgMTEuMTc2NDE3NSw0My45OTg5NDQ0IEMxMS41NDM2NzYyLDQ0LjM2OTA4MDQgMTEuNzUsNDQuODcxMDkyNiAxMS43NSw0NS4zOTQ1NDQgTDExLjc1LDUyLjQ3MjAyMjIgTDIwLjE1Njc1NzgsNDMuOTk4Nzg1MSBDMjAuOTIxNjIxOSw0My4yMjc5Mjg4IDIyLjE2MTcxMTQsNDMuMjI3OTI4OSAyMi45MjY1NzU0LDQzLjk5ODc4NTIgQzIzLjY5MTQzOTQsNDQuNzY5NjQxNSAyMy42OTE0Mzk1LDQ2LjAxOTQ0NjUgMjIuOTI2NTc1NSw0Ni43OTAzMDI4IEwxMS4xNzY1NzU1LDU4LjYzMjM1NzggQzEwLjgwOTI1MjIsNTkuMDAyNDc0NCAxMC4zMTEwODExLDU5LjIxMDI3NDggOS43OTE2NjY3LDU5LjIxMDI3NDggTDkuNzkxNjY2Nyw1OS4yMTAyNzQ4IFogTTY0LjA1MjE4NzUsNzQuNDIxNzY0NCBMNzEuMzEwODcyNCw2Ny4xMDQ5NzggTDg2LjE2NjY2NjcsNjcuMTA0OTc4IEM5MC40OTA5Mzk4LDY3LjEwMDIxOTEgOTMuOTk1Mjc4LDYzLjU2ODQyNjIgOTQsNTkuMjEwMjc0OCBMOTQsMjcuNjMxNDYxNiBDOTMuOTk1Mjc4MSwyMy4yNzMzMTAxIDkwLjQ5MDkzOTgsMTkuNzQxNTE3MiA4Ni4xNjY2NjY3LDE5LjczNjc1ODIgTDM1LjI1LDE5LjczNjc1ODIgQzMwLjkyNTcyNjksMTkuNzQxNTE3MiAyNy40MjEzODg2LDIzLjI3MzMxMDEgMjcuNDE2NjY2NywyNy42MzE0NjE2IEwyNy40MTY2NjY3LDU5LjIxMDI3NDggQzI3LjQyMTM4ODcsNjMuNTY4NDI2MiAzMC45MjU3MjY5LDY3LjEwMDIxOTEgMzUuMjUsNjcuMTA0OTc4IEw1NC4wMjI0NjA5LDY3LjEwNDk3OCBMNjEuMjgxNzU3OCw3NC40MjE3NjQ0IEM2MS42NDkwMjk0LDc0Ljc5MTk5NzkgNjIuMTQ3MjA2OSw3NSA2Mi42NjY2NjY3LDc1IEM2My4xODYxMjY0LDc1IDYzLjY4NDMwMzksNzQuNzkxOTk3OSA2NC4wNTE1NzU1LDc0LjQyMTc2NDQgTDY0LjA1MjE4NzUsNzQuNDIxNzY0NCBaIE04Ni4xNjY2NjY3LDIzLjY4NDEwOTkgQzg4LjMyODgwMzMsMjMuNjg2NDg5NCA5MC4wODA5NzI0LDI1LjQ1MjM4NTggOTAuMDgzMzMzMywyNy42MzE0NjE2IEw5MC4wODMzMzMzLDU5LjIxMDI3NDggQzkwLjA4MDk3MjQsNjEuMzg5MzUwNSA4OC4zMjg4MDMzLDYzLjE1NTI0NyA4Ni4xNjY2NjY3LDYzLjE1NzYyNjQgTDcwLjUsNjMuMTU3NjI2NCBDNjkuOTgwNTg1Niw2My4xNTc1NDE5IDY5LjQ4MjQxNDUsNjMuMzY1NDI2NyA2OS4xMTUwOTExLDYzLjczNTU0MzMgTDYyLjY2NjY2NjcsNzAuMjM1MTA0NiBMNTYuMjE4MjQyMiw2My43MzU1NDMzIEM1NS44NTA5MTg4LDYzLjM2NTQyNjcgNTUuMzUyNzQ3Nyw2My4xNTc1NDE5IDU0LjgzMzMzMzMsNjMuMTU3NjI2NCBMMzUuMjUsNjMuMTU3NjI2NCBDMzMuMDg3ODYzNCw2My4xNTUyNDcgMzEuMzM1Njk0Miw2MS4zODkzNTA1IDMxLjMzMzMzMzMsNTkuMjEwMjc0OCBMMzEuMzMzMzMzMywyNy42MzE0NjE2IEMzMS4zMzU2OTQyLDI1LjQ1MjM4NTggMzMuMDg3ODYzNCwyMy42ODY0ODkzIDM1LjI1LDIzLjY4NDEwOTkgTDg2LjE2NjY2NjcsMjMuNjg0MTA5OSBaIiBpZD0i5b2i54q2Ij48L3BhdGg+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==);margin:0 0 1em}.no-data span{font-size:2.2em}.typing-status{position:absolute;bottom:20px;left:20px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;width:40px}.typing-status span{display:block;width:6px;height:6px;border-radius:50%;background:#111f2c}.typing-status span:nth-child(1){opacity:90%;-webkit-animation:animatedBackground_0 1s linear infinite;animation:animatedBackground_0 1s linear infinite}.typing-status span:nth-child(2){opacity:40%;-webkit-animation:animatedBackground_1 1s linear infinite;animation:animatedBackground_1 1s linear infinite}.typing-status span:nth-child(3){opacity:20%;-webkit-animation:animatedBackground_2 1s linear infinite;animation:animatedBackground_2 1s linear infinite}@-webkit-keyframes animatedBackground_0{0%{opacity:90%}33.33%{opacity:20%}66.66%{opacity:40%}100%{opacity:90%}}@keyframes animatedBackground_0{0%{opacity:90%}33.33%{opacity:20%}66.66%{opacity:40%}100%{opacity:90%}}@-webkit-keyframes animatedBackground_1{0%{opacity:40%}33.33%{opacity:90%}66.66%{opacity:20%}100%{opacity:40%}}@keyframes animatedBackground_1{0%{opacity:40%}33.33%{opacity:90%}66.66%{opacity:20%}100%{opacity:40%}}@-webkit-keyframes animatedBackground_2{0%{opacity:20%}33.33%{opacity:40%}66.66%{opacity:90%}100%{opacity:20%}}@keyframes animatedBackground_2{0%{opacity:20%}33.33%{opacity:40%}66.66%{opacity:90%}100%{opacity:20%}}';pi.use(zo),pi.use(Yi);var Bo=70,Yo=56,Ho=function(e){Ot(n,e);var t=Lt(n);function n(){var e;return Qt(this,n),e=t.call(this),e.__registerHost(),Je(jt(e)),e.tapMessage=be(jt(e),"tapMessage",7),e.baseSize="16px",e.messages=[],e.hasMore=!0,e.beforePullDown=!0,e.isPullingDown=!1,e.isLoading=!1,e.lang=gn.lang,e.groupMembers=[],e.isGetHistory=!1,e.scrollWrapper=null,e.lastPosition=0,e.handleSwitchConversation=e.handleSwitchConversation.bind(jt(e)),e.handleMessages=e.handleMessages.bind(jt(e)),e.pullingDownHandler=e.pullingDownHandler.bind(jt(e)),e.handleReceiptRequest=e.handleReceiptRequest.bind(jt(e)),e.handleSelectMessage=e.handleSelectMessage.bind(jt(e)),e.handleUpdateMessage=e.handleUpdateMessage.bind(jt(e)),e.handleDeleteMessage=e.handleDeleteMessage.bind(jt(e)),e.tapMessageHandler=e.tapMessageHandler.bind(jt(e)),e.handleTypingStatus=e.handleTypingStatus.bind(jt(e)),e.handleMouseLeave=e.handleMouseLeave.bind(jt(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(jt(e)),e.handleUserInfoChanged=e.handleUserInfoChanged.bind(jt(e)),e.handleGroupInfoChanged=e.handleGroupInfoChanged.bind(jt(e)),e.handleConversationInfoChanged=e.handleConversationInfoChanged.bind(jt(e)),gn.on(Tt.CONNECTED,(function(t){e.isConnect=t,e.isConnect?e.updateMyProfile():e.myProfile=null})),e}return Zt(n,[{key:"updateMyProfile",value:function(){var e=this;gn.getMyProfile().then((function(t){e.myProfile=t}))}},{key:"updateMessageList",value:function(e){var t=this,n=e||gn.currentConversation;n&&n!==this.conversation&&gn.getConversation(n).then((function(e){e&&t.loadData(e)}))}},{key:"componentWillLoad",value:function(){gn.on(Tt.SWITCH_CONVERSATION,this.handleSwitchConversation),gn.on(Tt.MESSAGES,this.handleMessages),gn.on(Tt.MESSAGE_RECEIPT_REQUEST,this.handleReceiptRequest),gn.on(Tt.UPDATE_MESSAGE,this.handleUpdateMessage),gn.on(Tt.DELETE_MESSAGE,this.handleDeleteMessage),gn.on(Tt.MESSAGE_SEND_SUCCESS,this.handleUpdateMessage),gn.on(Tt.MESSAGE_SEND_FAIL,this.handleUpdateMessage),gn.on(Tt.TYPING_STATUS,this.handleTypingStatus),gn.on(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged),gn.on(Tt.USER_INFO_CHANGED,this.handleUserInfoChanged),gn.on(Tt.GROUP_INFO_CHANGED,this.handleGroupInfoChanged),gn.on(Tt.CONVERSATION_INFO_CHANGED,this.handleConversationInfoChanged)}},{key:"componentDidLoad",value:function(){var e=this;this.scrollWrapper&&this.mountScroller(),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState&&e.bscroll&&setTimeout((function(){e.bscroll.refresh(),e.bscroll.scrollTo(0,e.bscroll.maxScrollY)}),100)})),gn.currentConversation&&this.handleSwitchConversation(gn.currentConversation)}},{key:"disconnectedCallback",value:function(){this.bscroll&&(this.bscroll.off("pullingDown",this.pullingDownHandler),this.bscroll.destroy()),gn.off(Tt.SWITCH_CONVERSATION,this.handleSwitchConversation),gn.off(Tt.MESSAGES,this.handleMessages),gn.off(Tt.MESSAGE_RECEIPT_REQUEST,this.handleReceiptRequest),gn.off(Tt.UPDATE_MESSAGE,this.handleUpdateMessage),gn.off(Tt.DELETE_MESSAGE,this.handleDeleteMessage),gn.off(Tt.MESSAGE_SEND_SUCCESS,this.handleUpdateMessage),gn.off(Tt.MESSAGE_SEND_FAIL,this.handleUpdateMessage),gn.off(Tt.TYPING_STATUS,this.handleTypingStatus),gn.off(Tt.LANGUAGE_CHANGED,this.handleLanguageChanged),gn.off(Tt.USER_INFO_CHANGED,this.handleUserInfoChanged),gn.off(Tt.GROUP_INFO_CHANGED,this.handleGroupInfoChanged),gn.off(Tt.CONVERSATION_INFO_CHANGED,this.handleConversationInfoChanged)}},{key:"componentDidUpdate",value:function(){this.isGetHistory&&(this.bscroll&&(this.bscroll.refresh(),this.bscroll.scrollTo(0,Math.min(0,this.lastPosition+this.bscroll.maxScrollY))),this.isGetHistory=!1)}},{key:"mountScroller",value:function(){var e=this;this.scrollWrapper&&(this.bscroll=new pi(this.scrollWrapper,{bindToWrapper:!0,mouseWheel:{throttleTime:30},scrollX:!1,scrollY:!0,pullDownRefresh:{threshold:Bo,stop:Yo},bounce:{top:!0,bottom:!1,left:!1,right:!1},preventDefaultException:{className:/((hqvoice|sight|image|richContent)-message-body)|file-download-btn/}}),this.bscroll.on("pullingDown",this.pullingDownHandler),this.bscroll.scroller.actionsHandler.wrapperEventRegister.events.forEach((function(t){var n=t;"mousedown"===n.name&&(n.handler=Qi.bind(e.bscroll.scroller.actionsHandler))})),setTimeout((function(){e.bscroll.refresh(),e.bscroll.scrollTo(0,e.bscroll.maxScrollY)}),600))}},{key:"pullingDownHandler",value:function(){var e=this;if(this.lastPosition=-this.bscroll.maxScrollY,!this.hasMore)return this.beforePullDown=!0,this.isPullingDown=!1,void this.bscroll.finishPullDown();this.beforePullDown=!1,this.isPullingDown=!0;var t=Date.now();this.messages.length&&(t=this.messages[0].sentTime),this.isConnect&&gn.getMessages({conversationType:this.conversation.conversationType,targetId:this.conversation.targetId,channelId:this.conversation.channelId},t,30).then((function(t){return t.list.length?t.list[0].conversationType!==e.conversation.conversationType||t.list[0].targetId!==e.conversation.targetId||t.list[0].channelId!==e.conversation.channelId?(e.beforePullDown=!0,e.isPullingDown=!1,void e.bscroll.finishPullDown()):void setTimeout((function(){e.messages=t.list.concat(e.messages),e.hasMore=t.hasMore,e.beforePullDown=!0,e.isPullingDown=!1,setTimeout((function(){e.bscroll.refresh()}),100),e.bscroll.finishPullDown(),e.isGetHistory=!0}),600):(e.hasMore=t.hasMore,e.beforePullDown=!0,e.isPullingDown=!1,void e.bscroll.finishPullDown())}))}},{key:"handleSwitchConversation",value:function(e){if(!e)return this.conversation=null,void(this.bscroll=null);this.hasMore=!0,this.bscroll||this.mountScroller(),this.isPullingDown=!1,this.beforePullDown=!0,this.messages&&(this.messages=[]),this.updateMessageList(e)}},{key:"loadData",value:function(e){var t=this;this.conversation=e.conversation,this.conversationProfile=e.profile,this.conversation.conversationType===_t["a"].GROUP?gn.getGroupMembers(this.conversation).then((function(e){t.groupMembers=Gt(e),t.getMessages()})):(this.groupMembers=null,this.getMessages())}},{key:"getMessages",value:function(){var e=this;return this.isLoading=!0,gn.getMessages({conversationType:this.conversation.conversationType,targetId:this.conversation.targetId,channelId:this.conversation.channelId}).then((function(t){if(e.isLoading=!1,e.messages=t.list,e.hasMore=t.hasMore,e.messages.length&&(e.bscroll?setTimeout((function(){e.bscroll.refresh(),e.bscroll.scrollTo(0,e.bscroll.maxScrollY)}),600):setTimeout((function(){e.mountScroller()}),100)),e.conversation.unreadMessageCount){var n=e.messages[e.messages.length-1];n&&e.sendReadReceipt(n)}}))}},{key:"handleMessages",value:function(e){var t=this;if(e.length&&this.conversation&&Jt(e[0],this.conversation)){var n=function(){var n=[].concat(Gt(t.messages),Gt(e));t.messages=n,t.bscroll||t.mountScroller(),t.bscroll.y<t.bscroll.maxScrollY+30?setTimeout((function(){t.bscroll.refresh(),t.bscroll.scrollTo(0,t.bscroll.maxScrollY)}),100):setTimeout((function(){t.bscroll.refresh()}),100);var r=n[n.length-1];r&&t.sendReadReceipt(r)};this.conversation.conversationType===_t["a"].GROUP?gn.getGroupMembers({conversationType:this.conversation.conversationType,targetId:this.conversation.targetId,channelId:this.conversation.channelId}).then((function(e){t.groupMembers=e,n()})):(this.groupMembers=null,n())}}},{key:"sendReadReceipt",value:function(e){gn.clearMessagesUnreadStatus(this.conversation),e&&e.conversationType===_t["a"].PRIVATE&&Object(_t["J"])(this.conversation.targetId,e.messageUId,e.sentTime,this.conversation.channelId)}},{key:"handleReceiptRequest",value:function(e){Object(_t["K"])(e.conversation.targetId,zt({},e.senderUserId,[e.messageUId]),e.conversation.channelId)}},{key:"handleSelectMessage",value:function(e){var t=e.detail,n=t.message,r=t.position;n.messageUId.startsWith("sending_")||n.messageUId.startsWith("fail_")||(this.selectedMessage=n,this.contextMenuPosition=r)}},{key:"handleUpdateMessage",value:function(e){var t=this,n=this.messages.findIndex((function(t){return e.messageUId===t.messageUId}));-1!==n&&(this.messages[n]=e,this.messages=Gt(this.messages),this.bscroll?setTimeout((function(){t.bscroll.refresh()}),100):this.mountScroller())}},{key:"handleDeleteMessage",value:function(e){var t=this;e.forEach((function(e){var n=t.messages.findIndex((function(t){return e.messageUId===t.messageUId}));-1!==n&&t.messages.splice(n,1)})),this.messages=Gt(this.messages),this.bscroll?setTimeout((function(){t.bscroll.refresh()}),100):this.mountScroller()}},{key:"tapMessageHandler",value:function(e){this.tapMessage.emit(e.detail)}},{key:"handleMouseLeave",value:function(){this.bscroll&&(this.bscroll.stop(),this.bscroll.scroller.actionsHandler.setInitiated())}},{key:"handleTypingStatus",value:function(e){var t=this,n=e.status||[],r=n.findIndex((function(e){return t.conversation&&Jt(e,t.conversation)}));-1!==r&&(this.typingTimer&&(clearTimeout(this.typingTimer),this.typingTimer=null),this.showTypingStatus=!0,this.typingTimer=setTimeout((function(){t.showTypingStatus=!1}),5e3))}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"handleUserInfoChanged",value:function(e){this.myProfile=e,this.refreshScroller()}},{key:"handleConversationInfoChanged",value:function(e){this.conversation&&e.conversationType&&e.targetId&&Jt(this.conversation,{conversationType:e.conversationType,targetId:e.targetId})&&(this.conversationProfile=e,this.refreshScroller())}},{key:"handleGroupInfoChanged",value:function(e){this.conversation&&(this.groupMembers=e,this.refreshScroller())}},{key:"refreshScroller",value:function(){var e=this;this.bscroll||this.mountScroller(),this.bscroll.y<this.bscroll.maxScrollY+30?setTimeout((function(){e.bscroll.refresh(),e.bscroll.scrollTo(0,e.bscroll.maxScrollY)}),100):setTimeout((function(){e.bscroll.refresh()}),100)}},{key:"render",value:function(){var e=this;this.locale=this.lang?Sn[this.lang]:Sn.zh_CN;var t=this.conversationProfile,n=this.conversation,r=this.messages,i=this.groupMembers,o=this.myProfile,s=this.locale;return n?W("div",{class:"message-container",style:{fontSize:this.baseSize}},W("div",{class:"conversation-info"},W("div",{class:"receiver"},W("span",{class:"name"},t?t.name:n.targetId),n.conversationType===_t["a"].GROUP?W("span",{class:"count"},"(",null===t||void 0===t?void 0:t.memberCount,")"):null)),W("div",{class:"message-list-container",onMouseLeave:this.handleMouseLeave},W("div",{class:"input-tip"}),W("message-context-menu",{message:this.selectedMessage,position:this.contextMenuPosition,customMenu:this.customMenu,forwardList:this.forwardList}),W("div",{class:"message-loading"},W("div",{style:{display:this.isLoading?"block":"none"}},W("span",null,s.message.loading))),W("div",{class:"message-list-wrapper",ref:function(t){return e.scrollWrapper=t,e.scrollWrapper}},W("div",{class:"message-list-scroller"},W("div",{class:"pulldown-wrapper"},W("div",{style:{display:this.beforePullDown?"block":"none"}},this.hasMore?W("span",null,s.message.loading):W("span",null,s.message.noHistory))),W("div",{class:"message-list"},W("message-group",{messages:r,groupMembers:i,conversationProfile:t,myProfile:o,onRightClick:this.handleSelectMessage,onTapMessageItem:this.tapMessageHandler})))),W("div",{class:"typing-status",style:{display:this.showTypingStatus?"flex":"none"}},W("span",null),W("span",null),W("span",null)))):W("div",{class:"no-data",style:{fontSize:this.baseSize}},W("span",null,s.message.noData))}}],[{key:"style",get:function(){return Go}}]),n}(Et(HTMLElement)),$o=".upload-progress-mask{width:100%;height:100%;position:absolute;top:0;left:0;background:rgba(0, 0, 0, 0.4);font-size:72px;min-width:2.2222em;min-height:1em;overflow:hidden}.upload-progress-bar{position:absolute;width:1em;height:1em;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.upload-progress-bar svg{fill:#ffffff}";function Fo(e,t){var n="http://www.w3.org/2000/svg",r=document.createElementNS(n,e);return Object.keys(t).forEach((function(e){Object.prototype.hasOwnProperty.call(t,e)&&r.setAttribute(e,t[e])})),r}var Qo=function(e){Ot(n,e);var t=Lt(n);function n(){var e;return Qt(this,n),e=t.call(this),e.__registerHost(),e.reverse=!1,e.handleUploadProgress=e.handleUploadProgress.bind(jt(e)),e}return Zt(n,[{key:"componentWillLoad",value:function(){gn.on(Tt.UPLOAD_PROGRESS,this.handleUploadProgress)}},{key:"disconnectedCallback",value:function(){gn.off(Tt.UPLOAD_PROGRESS,this.handleUploadProgress)}},{key:"drawPath",value:function(e){var t=e;t=t||0;var n,r=146,i=150,o=150,s=i+Math.sin(Math.PI/180*t)*r,a=o-Math.cos(Math.PI/180*t)*r;n=this.reverse?t<=180?"M".concat(i," ").concat(o-r,"A").concat(r," ").concat(r," 0 0 0 ").concat(i," ").concat(o+r,"A").concat(r," ").concat(r," 0 0 0 ").concat(s," ").concat(a,"L").concat(i," ").concat(o," L").concat(i," ").concat(o-r,"Z"):"M".concat(i," ").concat(o-r,"A").concat(r," ").concat(r," 0 0 0 ").concat(s," ").concat(a,"L").concat(i," ").concat(o," L").concat(i," ").concat(o-r,"Z"):t<=180?"M".concat(i," ").concat(o-r,"A").concat(r," ").concat(r," 0 0 1 ").concat(s," ").concat(a,"L").concat(i," ").concat(o," L").concat(i," ").concat(o-r,"Z"):"M".concat(i," ").concat(o-r,"A").concat(r," ").concat(r," 0 0 1 ").concat(i," ").concat(o+r,"A").concat(r," ").concat(r," 0 0 1 ").concat(s," ").concat(a,"L").concat(i," ").concat(o," L").concat(i," ").concat(o-r,"Z");var c=Fo("path",{fill:"rgba(255, 255, 255, 1)",d:n});while(this.svg.childNodes.length>1)this.svg.removeChild(this.svg.childNodes[1]);this.svg.appendChild(c)}},{key:"handleUploadProgress",value:function(e){this.mId===e.messageId&&this.drawPath(3.6*e.progress)}},{key:"render",value:function(){var e=this;return W("div",{class:"upload-progress-mask"},W("div",{class:"upload-progress-bar"},W("svg",{ref:function(t){return e.svg=t,e.svg},id:"svg",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 300 300"},W("circle",{xmlns:"http://www.w3.org/2000/svg",cx:"150",cy:"150",r:"148",stroke:"#ffffff","stroke-width":"2",fill:"none"}))))}}],[{key:"style",get:function(){return $o}}]),n}(Et(HTMLElement)),Vo=".message-reference{position:absolute;-webkit-transform:translateY(calc(-100% - 1px));transform:translateY(calc(-100% - 1px));min-height:4.5em;padding:.83333em .291667em .83333em .83333em;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:2.4em;background:#fff}.message-reference .close-btn{position:absolute;right:.83333em;top:.83333em;width:1.33333em;height:0;padding-top:1.33333em;overflow:hidden;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgMzIgMzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+5YWzICDpl63lpIfku708L3RpdGxlPgogICAgPGcgaWQ9Iumhtemdoi0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMTBf5Y2V6IGKLeW8leeUqOa2iOaBr+agt+W8jyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEzODkuMDAwMDAwLCAtNTkyLjAwMDAwMCkiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgICAgIDxnIGlkPSLlhbMtLemXreWkh+S7vSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTM4OS4wMDAwMDAsIDU5Mi4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIGZpbGw9IiMwMDAwMDAiIG9wYWNpdHk9IjAiIHg9IjAiIHk9IjAiIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiI+PC9yZWN0PgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE3LjcxNzk4NzEsMTYuMjg0MjcxMiBMMjYuNzc3NTg3OSw3LjIyNDY3MDQxIEMyNy4yMzQ4OTM4LDYuNzY3MzY0NSAyNy4yMzQ4OTM4LDYuMDEzNDI3NzMgMjYuNzc3NTg3OSw1LjU1NjEyMTgzIEwyNi43MjgxNDk0LDUuNTA2NjgzMzUgQzI2LjI3MDg0MzUsNS4wNDkzNzc0NCAyNS41MTY5MDY3LDUuMDQ5Mzc3NDQgMjUuMDU5NjAwOCw1LjUwNjY4MzM1IEwxNiwxNC41Nzg2NDM4IEw2Ljk0MDM5OTE3LDUuNTA2NjgzMzUgQzYuNDgzMDkzMjYsNS4wNDkzNzc0NCA1LjcyOTE1NjQ5LDUuMDQ5Mzc3NDQgNS4yNzE4NTA1OSw1LjUwNjY4MzM1IEw1LjIyMjQxMjExLDUuNTU2MTIxODMgQzQuNzUyNzQ2NTgsNi4wMTM0Mjc3MyA0Ljc1Mjc0NjU4LDYuNzY3MzY0NSA1LjIyMjQxMjExLDcuMjI0NjcwNDEgTDE0LjI4MjAxMjksMTYuMjg0MjcxMiBMNS4yMjI0MTIxMSwyNS4zNDM4NzIxIEM0Ljc2NTEwNjIsMjUuODAxMTc4IDQuNzY1MTA2MiwyNi41NTUxMTQ3IDUuMjIyNDEyMTEsMjcuMDEyNDIwNyBMNS4yNzE4NTA1OSwyNy4wNjE4NTkxIEM1LjcyOTE1NjQ5LDI3LjUxOTE2NSA2LjQ4MzA5MzI2LDI3LjUxOTE2NSA2Ljk0MDM5OTE3LDI3LjA2MTg1OTEgTDE2LDE4LjAwMjI1ODMgTDI1LjA1OTYwMDgsMjcuMDYxODU5MSBDMjUuNTE2OTA2NywyNy41MTkxNjUgMjYuMjcwODQzNSwyNy41MTkxNjUgMjYuNzI4MTQ5NCwyNy4wNjE4NTkxIEwyNi43Nzc1ODc5LDI3LjAxMjQyMDcgQzI3LjIzNDg5MzgsMjYuNTU1MTE0NyAyNy4yMzQ4OTM4LDI1LjgwMTE3OCAyNi43Nzc1ODc5LDI1LjM0Mzg3MjEgTDE3LjcxNzk4NzEsMTYuMjg0MjcxMiBaIiBpZD0i6Lev5b6EIiBmaWxsPSIjQTBBNUFCIj48L3BhdGg+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==) no-repeat;background-size:contain;border:none;cursor:pointer}.message-reference .message-body{border-left:0.08333em solid #E3E5E6;padding:0 0 0 0.83333em;height:100%}.message-reference .content{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-reference .content .reference-image{width:100%;height:2.92em}.message-reference .content .reference-image img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}",Zo=function(e){Ot(n,e);var t=Lt(n);function n(){var e;return Qt(this,n),e=t.call(this),e.__registerHost(),e.close=be(jt(e),"close",7),e.lang=gn.lang,e.closeReference=e.closeReference.bind(jt(e)),e.handleInfoChanged=e.handleInfoChanged.bind(jt(e)),e}return Zt(n,[{key:"validateData",value:function(){this.referenceMessage?this.handleReferenceMessage(this.referenceMessage.message):this.closeReference()}},{key:"componentWillLoad",value:function(){gn.on(Tt.GROUP_INFO_CHANGED,this.handleInfoChanged),gn.on(Tt.USER_INFO_CHANGED,this.handleInfoChanged),gn.on(Tt.CONVERSATION_INFO_CHANGED,this.handleInfoChanged)}},{key:"disconnectedCallback",value:function(){gn.off(Tt.GROUP_INFO_CHANGED,this.handleInfoChanged),gn.off(Tt.USER_INFO_CHANGED,this.handleInfoChanged),gn.off(Tt.CONVERSATION_INFO_CHANGED,this.handleInfoChanged)}},{key:"handleInfoChanged",value:function(){this.referenceMessage&&this.handleReferenceMessage(this.referenceMessage.message)}},{key:"closeReference",value:function(){this.name="",this.content="",this.close.emit()}},{key:"handleReferenceMessage",value:function(e){var t,n=this,r={conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId};t=e.conversationType===_t["a"].GROUP?gn.getGroupMemberProfile(r,e.senderUserId).then((function(t){return t?t.groupNickname||t.name:e.senderUserId})):e.senderUserId===Object(_t["u"])()?gn.getMyProfile().then((function(t){return t.displayName||t.name||e.senderUserId})):gn.getConversationProfile(r).then((function(t){return t?t.displayName||t.name:e.senderUserId})),t&&t.then((function(t){switch(n.name=t,e.messageType){case _t["h"].TEXT:n.content=e.content.content;break;case _t["h"].IMAGE:n.content=W("div",{class:"reference-image"},W("img",{src:xn(e.content.content)}));break;case _t["h"].FILE:n.content="[".concat(n.locale.conversation.file,"]").concat(e.content.name);break;case _t["h"].GIF:n.content=W("img",{src:e.content.remoteUrl});break;case _t["h"].HQ_VOICE:n.content="[".concat(n.locale.conversation.file,"]");break;case _t["h"].SIGHT:n.content=W("img",{src:e.content.content});break;case _t["h"].RICH_CONTENT:n.content=e.content.title;break;case _t["h"].REFERENCE:n.content=e.content.content||"";break;default:n.content="[".concat(n.locale.other.unKnowMessage,"]");break}}))}},{key:"componentShouldUpdate",value:function(){return!(!this.name&&!this.content)}},{key:"render",value:function(){this.locale=this.lang?Sn[this.lang]:Sn.zh_CN;var e=this.name,t=this.content;return e&&t?W("div",{class:"message-reference"},W("div",{class:"message-body"},W("div",{class:"name"},this.name,":"),W("div",{class:"content"},this.content)),W("button",{class:"close-btn",onClick:this.closeReference},"关闭")):null}}],[{key:"watchers",get:function(){return{referenceMessage:["validateData"]}}},{key:"style",get:function(){return Vo}}]),n}(Et(HTMLElement)),Wo=qe(Dn,[1,"content-editor",{conversation:[16],value:[16],memberListVisible:[32],targetRect:[32],hasContent:[32],locale:[32],lang:[32]}]),Ko=qe(Rn,[0,"conversation-context-menu",{position:[16],visible:[4],topStatus:[4,"top-status"],notificationStatus:[4,"notification-status"],customMenu:[16],conversation:[16],locale:[32],lang:[32]}]),qo=qe(Yn,[0,"conversation-item",{data:[16],isHover:[4,"is-hover"],draft:[32],locale:[32],lang:[32]}]),Jo=qe(Zi,[1,"conversation-list",{baseSize:[1,"base-size"],userBackground:[1,"user-background"],customMenu:[16],currentConversation:[32],isPullUpLoad:[32],data:[32],locale:[32],lang:[32],contextMenuData:[32]}]),Xo=qe(Ki,[0,"member-list",{conversation:[16],visible:[4],targetRect:[16],memberList:[32],position:[32],locale:[32],lang:[32]}]),es=qe(Ji,[0,"message-context-menu",{position:[16],message:[16],customMenu:[16],forwardList:[16],visible:[32],locale:[32],lang:[32],isShowForward:[32],msgType:[32]}]),ts=qe(eo,[0,"message-editor",{baseSize:[1,"base-size"],conversation:[32],hasContent:[32],referenceMessage:[32],showMemberList:[32],draft:[32],isError:[32],locale:[32],lang:[32]}]),ns=qe(Co,[0,"message-group",{messages:[16],groupMembers:[16],conversationProfile:[16],myProfile:[16],locale:[32],lang:[32]}]),rs=qe(Ao,[0,"message-item",{message:[16],member:[16],isGroupMember:[4,"is-group-member"],conversationProfile:[16],myProfile:[16],locale:[32],lang:[32]}]),is=qe(Ho,[1,"message-list",{baseSize:[1,"base-size"],customMenu:[16],forwardList:[16],conversation:[32],conversationProfile:[32],messages:[32],hasMore:[32],beforePullDown:[32],isPullingDown:[32],isLoading:[32],locale:[32],lang:[32],groupMembers:[32],selectedMessage:[32],contextMenuPosition:[32],showTypingStatus:[32],myProfile:[32]}]),os=qe(Qo,[0,"progress-bar",{mId:[2,"m-id"],reverse:[4]}]),ss=qe(Zo,[0,"reference-message",{referenceMessage:[16],content:[32],name:[32],locale:[32],lang:[32]}]),as=function(e){"undefined"!==typeof customElements&&[Wo,Ko,qo,Jo,Xo,es,ts,ns,rs,is,os,ss].forEach((function(t){customElements.get(t.is)||customElements.define(t.is,t,e)}))}},e804:function(e,t,n){"use strict";var r=n("5ca1"),i=n("f1ae");r(r.S+r.F*n("79e5")((function(){function e(){}return!(Array.of.call(e)instanceof e)})),"Array",{of:function(){var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);while(t>e)i(n,e,arguments[e++]);return n.length=t,n}})},e853:function(e,t,n){var r=n("d3f4"),i=n("1169"),o=n("2b4c")("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},e956:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c45f"),o=n("4bf8"),s=n("9def"),a=n("d8e8"),c=n("cd1c");r(r.P,"Array",{flatMap:function(e){var t,n,r=o(this);return a(e),t=s(r.length),n=c(r,0),i(n,r,r,t,0,1,e,arguments[1]),n}}),n("9c6c")("flatMap")},e9d2:function(e,t){e.exports=Math.scale||function(e,t,n,r,i){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-r)/(n-t)+r}},ea8e:function(e,t,n){"use strict";var r=n("a142");function i(e){return/^\d+(\.\d+)?$/.test(e)}function o(e){if(Object(r["c"])(e))return e=String(e),i(e)?e+"px":e}n.d(t,"a",(function(){return o}))},ead6:function(e,t,n){var r=n("f772"),i=n("e4ae"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("d864")(Function.call,n("bf0b").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},ebd6:function(e,t,n){var r=n("cb7c"),i=n("d8e8"),o=n("2b4c")("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||void 0==(n=r(s)[o])?t:i(n)}},ebde:function(e,t,n){var r=n("11e9"),i=n("5ca1"),o=n("cb7c");i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},ebfd:function(e,t,n){var r=n("62a0")("meta"),i=n("f772"),o=n("07e3"),s=n("d9f6").f,a=0,c=Object.isExtensible||function(){return!0},u=!n("294c")((function(){return c(Object.preventExtensions({}))})),l=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},h=function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},d=function(e){return u&&p.NEED&&c(e)&&!o(e,r)&&l(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:h,onFreeze:d}},ec30:function(e,t,n){"use strict";if(n("9e1e")){var r=n("2d00"),i=n("7726"),o=n("79e5"),s=n("5ca1"),a=n("0f88"),c=n("ed0b"),u=n("9b43"),l=n("f605"),f=n("4630"),h=n("32e9"),d=n("dcbc"),p=n("4588"),g=n("9def"),v=n("09fa"),y=n("77f1"),m=n("6a99"),I=n("69a8"),M=n("23c6"),C=n("d3f4"),T=n("4bf8"),A=n("33a4"),_=n("2aeb"),b=n("38fd"),N=n("9093").f,E=n("27ee"),w=n("ca5a"),S=n("2b4c"),O=n("0a49"),D=n("c366"),L=n("ebd6"),R=n("cadf"),j=n("84f2"),x=n("5cc5"),k=n("7a56"),U=n("36bd"),P=n("ba92"),z=n("86cc"),G=n("11e9"),B=z.f,Y=G.f,H=i.RangeError,$=i.TypeError,F=i.Uint8Array,Q="ArrayBuffer",V="Shared"+Q,Z="BYTES_PER_ELEMENT",W="prototype",K=Array[W],q=c.ArrayBuffer,J=c.DataView,X=O(0),ee=O(2),te=O(3),ne=O(4),re=O(5),ie=O(6),oe=D(!0),se=D(!1),ae=R.values,ce=R.keys,ue=R.entries,le=K.lastIndexOf,fe=K.reduce,he=K.reduceRight,de=K.join,pe=K.sort,ge=K.slice,ve=K.toString,ye=K.toLocaleString,me=S("iterator"),Ie=S("toStringTag"),Me=w("typed_constructor"),Ce=w("def_constructor"),Te=a.CONSTR,Ae=a.TYPED,_e=a.VIEW,be="Wrong length!",Ne=O(1,(function(e,t){return De(L(e,e[Ce]),t)})),Ee=o((function(){return 1===new F(new Uint16Array([1]).buffer)[0]})),we=!!F&&!!F[W].set&&o((function(){new F(1).set({})})),Se=function(e,t){var n=p(e);if(n<0||n%t)throw H("Wrong offset!");return n},Oe=function(e){if(C(e)&&Ae in e)return e;throw $(e+" is not a typed array!")},De=function(e,t){if(!C(e)||!(Me in e))throw $("It is not a typed array constructor!");return new e(t)},Le=function(e,t){return Re(L(e,e[Ce]),t)},Re=function(e,t){var n=0,r=t.length,i=De(e,r);while(r>n)i[n]=t[n++];return i},je=function(e,t,n){B(e,t,{get:function(){return this._d[n]}})},xe=function(e){var t,n,r,i,o,s,a=T(e),c=arguments.length,l=c>1?arguments[1]:void 0,f=void 0!==l,h=E(a);if(void 0!=h&&!A(h)){for(s=h.call(a),r=[],t=0;!(o=s.next()).done;t++)r.push(o.value);a=r}for(f&&c>2&&(l=u(l,arguments[2],2)),t=0,n=g(a.length),i=De(this,n);n>t;t++)i[t]=f?l(a[t],t):a[t];return i},ke=function(){var e=0,t=arguments.length,n=De(this,t);while(t>e)n[e]=arguments[e++];return n},Ue=!!F&&o((function(){ye.call(new F(1))})),Pe=function(){return ye.apply(Ue?ge.call(Oe(this)):Oe(this),arguments)},ze={copyWithin:function(e,t){return P.call(Oe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ne(Oe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return U.apply(Oe(this),arguments)},filter:function(e){return Le(this,ee(Oe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return re(Oe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ie(Oe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(Oe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return se(Oe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return oe(Oe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return de.apply(Oe(this),arguments)},lastIndexOf:function(e){return le.apply(Oe(this),arguments)},map:function(e){return Ne(Oe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return fe.apply(Oe(this),arguments)},reduceRight:function(e){return he.apply(Oe(this),arguments)},reverse:function(){var e,t=this,n=Oe(t).length,r=Math.floor(n/2),i=0;while(i<r)e=t[i],t[i++]=t[--n],t[n]=e;return t},some:function(e){return te(Oe(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return pe.call(Oe(this),e)},subarray:function(e,t){var n=Oe(this),r=n.length,i=y(e,r);return new(L(n,n[Ce]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,g((void 0===t?r:y(t,r))-i))}},Ge=function(e,t){return Le(this,ge.call(Oe(this),e,t))},Be=function(e){Oe(this);var t=Se(arguments[1],1),n=this.length,r=T(e),i=g(r.length),o=0;if(i+t>n)throw H(be);while(o<i)this[t+o]=r[o++]},Ye={entries:function(){return ue.call(Oe(this))},keys:function(){return ce.call(Oe(this))},values:function(){return ae.call(Oe(this))}},He=function(e,t){return C(e)&&e[Ae]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},$e=function(e,t){return He(e,t=m(t,!0))?f(2,e[t]):Y(e,t)},Fe=function(e,t,n){return!(He(e,t=m(t,!0))&&C(n)&&I(n,"value"))||I(n,"get")||I(n,"set")||n.configurable||I(n,"writable")&&!n.writable||I(n,"enumerable")&&!n.enumerable?B(e,t,n):(e[t]=n.value,e)};Te||(G.f=$e,z.f=Fe),s(s.S+s.F*!Te,"Object",{getOwnPropertyDescriptor:$e,defineProperty:Fe}),o((function(){ve.call({})}))&&(ve=ye=function(){return de.call(this)});var Qe=d({},ze);d(Qe,Ye),h(Qe,me,Ye.values),d(Qe,{slice:Ge,set:Be,constructor:function(){},toString:ve,toLocaleString:Pe}),je(Qe,"buffer","b"),je(Qe,"byteOffset","o"),je(Qe,"byteLength","l"),je(Qe,"length","e"),B(Qe,Ie,{get:function(){return this[Ae]}}),e.exports=function(e,t,n,c){c=!!c;var u=e+(c?"Clamped":"")+"Array",f="get"+e,d="set"+e,p=i[u],y=p||{},m=p&&b(p),I=!p||!a.ABV,T={},A=p&&p[W],E=function(e,n){var r=e._d;return r.v[f](n*t+r.o,Ee)},w=function(e,n,r){var i=e._d;c&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[d](n*t+i.o,r,Ee)},S=function(e,t){B(e,t,{get:function(){return E(this,t)},set:function(e){return w(this,t,e)},enumerable:!0})};I?(p=n((function(e,n,r,i){l(e,p,u,"_d");var o,s,a,c,f=0,d=0;if(C(n)){if(!(n instanceof q||(c=M(n))==Q||c==V))return Ae in n?Re(p,n):xe.call(p,n);o=n,d=Se(r,t);var y=n.byteLength;if(void 0===i){if(y%t)throw H(be);if(s=y-d,s<0)throw H(be)}else if(s=g(i)*t,s+d>y)throw H(be);a=s/t}else a=v(n),s=a*t,o=new q(s);h(e,"_d",{b:o,o:d,l:s,e:a,v:new J(o)});while(f<a)S(e,f++)})),A=p[W]=_(Qe),h(A,"constructor",p)):o((function(){p(1)}))&&o((function(){new p(-1)}))&&x((function(e){new p,new p(null),new p(1.5),new p(e)}),!0)||(p=n((function(e,n,r,i){var o;return l(e,p,u),C(n)?n instanceof q||(o=M(n))==Q||o==V?void 0!==i?new y(n,Se(r,t),i):void 0!==r?new y(n,Se(r,t)):new y(n):Ae in n?Re(p,n):xe.call(p,n):new y(v(n))})),X(m!==Function.prototype?N(y).concat(N(m)):N(y),(function(e){e in p||h(p,e,y[e])})),p[W]=A,r||(A.constructor=p));var O=A[me],D=!!O&&("values"==O.name||void 0==O.name),L=Ye.values;h(p,Me,!0),h(A,Ae,u),h(A,_e,!0),h(A,Ce,p),(c?new p(1)[Ie]==u:Ie in A)||B(A,Ie,{get:function(){return u}}),T[u]=p,s(s.G+s.W+s.F*(p!=y),T),s(s.S,u,{BYTES_PER_ELEMENT:t}),s(s.S+s.F*o((function(){y.of.call(p,1)})),u,{from:xe,of:ke}),Z in A||h(A,Z,t),s(s.P,u,ze),k(u),s(s.P+s.F*we,u,{set:Be}),s(s.P+s.F*!D,u,Ye),r||A.toString==ve||(A.toString=ve),s(s.P+s.F*o((function(){new p(1).slice()})),u,{slice:Ge}),s(s.P+s.F*(o((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!o((function(){A.toLocaleString.call([1,2])}))),u,{toLocaleString:Pe}),j[u]=D?O:L,r||D||h(A,me,L)}}else e.exports=function(){}},ec39:function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=r.has,s=r.key;r.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},ed0b:function(e,t,n){"use strict";var r=n("7726"),i=n("9e1e"),o=n("2d00"),s=n("0f88"),a=n("32e9"),c=n("dcbc"),u=n("79e5"),l=n("f605"),f=n("4588"),h=n("9def"),d=n("09fa"),p=n("9093").f,g=n("86cc").f,v=n("36bd"),y=n("7f20"),m="ArrayBuffer",I="DataView",M="prototype",C="Wrong length!",T="Wrong index!",A=r[m],_=r[I],b=r.Math,N=r.RangeError,E=r.Infinity,w=A,S=b.abs,O=b.pow,D=b.floor,L=b.log,R=b.LN2,j="buffer",x="byteLength",k="byteOffset",U=i?"_b":j,P=i?"_l":x,z=i?"_o":k;function G(e,t,n){var r,i,o,s=new Array(n),a=8*n-t-1,c=(1<<a)-1,u=c>>1,l=23===t?O(2,-24)-O(2,-77):0,f=0,h=e<0||0===e&&1/e<0?1:0;for(e=S(e),e!=e||e===E?(i=e!=e?1:0,r=c):(r=D(L(e)/R),e*(o=O(2,-r))<1&&(r--,o*=2),e+=r+u>=1?l/o:l*O(2,1-u),e*o>=2&&(r++,o/=2),r+u>=c?(i=0,r=c):r+u>=1?(i=(e*o-1)*O(2,t),r+=u):(i=e*O(2,u-1)*O(2,t),r=0));t>=8;s[f++]=255&i,i/=256,t-=8);for(r=r<<t|i,a+=t;a>0;s[f++]=255&r,r/=256,a-=8);return s[--f]|=128*h,s}function B(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,s=o>>1,a=i-7,c=n-1,u=e[c--],l=127&u;for(u>>=7;a>0;l=256*l+e[c],c--,a-=8);for(r=l&(1<<-a)-1,l>>=-a,a+=t;a>0;r=256*r+e[c],c--,a-=8);if(0===l)l=1-s;else{if(l===o)return r?NaN:u?-E:E;r+=O(2,t),l-=s}return(u?-1:1)*r*O(2,l-t)}function Y(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function H(e){return[255&e]}function $(e){return[255&e,e>>8&255]}function F(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function Q(e){return G(e,52,8)}function V(e){return G(e,23,4)}function Z(e,t,n){g(e[M],t,{get:function(){return this[n]}})}function W(e,t,n,r){var i=+n,o=d(i);if(o+t>e[P])throw N(T);var s=e[U]._b,a=o+e[z],c=s.slice(a,a+t);return r?c:c.reverse()}function K(e,t,n,r,i,o){var s=+n,a=d(s);if(a+t>e[P])throw N(T);for(var c=e[U]._b,u=a+e[z],l=r(+i),f=0;f<t;f++)c[u+f]=l[o?f:t-f-1]}if(s.ABV){if(!u((function(){A(1)}))||!u((function(){new A(-1)}))||u((function(){return new A,new A(1.5),new A(NaN),A.name!=m}))){A=function(e){return l(this,A),new w(d(e))};for(var q,J=A[M]=w[M],X=p(w),ee=0;X.length>ee;)(q=X[ee++])in A||a(A,q,w[q]);o||(J.constructor=A)}var te=new _(new A(2)),ne=_[M].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||c(_[M],{setInt8:function(e,t){ne.call(this,e,t<<24>>24)},setUint8:function(e,t){ne.call(this,e,t<<24>>24)}},!0)}else A=function(e){l(this,A,m);var t=d(e);this._b=v.call(new Array(t),0),this[P]=t},_=function(e,t,n){l(this,_,I),l(e,A,I);var r=e[P],i=f(t);if(i<0||i>r)throw N("Wrong offset!");if(n=void 0===n?r-i:h(n),i+n>r)throw N(C);this[U]=e,this[z]=i,this[P]=n},i&&(Z(A,x,"_l"),Z(_,j,"_b"),Z(_,x,"_l"),Z(_,k,"_o")),c(_[M],{getInt8:function(e){return W(this,1,e)[0]<<24>>24},getUint8:function(e){return W(this,1,e)[0]},getInt16:function(e){var t=W(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=W(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return Y(W(this,4,e,arguments[1]))},getUint32:function(e){return Y(W(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return B(W(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return B(W(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){K(this,1,e,H,t)},setUint8:function(e,t){K(this,1,e,H,t)},setInt16:function(e,t){K(this,2,e,$,t,arguments[2])},setUint16:function(e,t){K(this,2,e,$,t,arguments[2])},setInt32:function(e,t){K(this,4,e,F,t,arguments[2])},setUint32:function(e,t){K(this,4,e,F,t,arguments[2])},setFloat32:function(e,t){K(this,4,e,V,t,arguments[2])},setFloat64:function(e,t){K(this,8,e,Q,t,arguments[2])}});y(A,m),y(_,I),a(_[M],s.VIEW,!0),t[m]=A,t[I]=_},ed33:function(e,t,n){n("014b"),e.exports=n("584a").Object.getOwnPropertySymbols},ed50:function(e,t,n){"use strict";var r=n("5ca1"),i=n("2e08"),o=n("a25f"),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*s,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},ed7e:function(e,t,n){var r=n("5ca1");r(r.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},ee1d:function(e,t,n){var r=n("5ca1");r(r.S,"Number",{isNaN:function(e){return e!=e}})},ee6d:function(e,t,n){var r=n("63b6"),i=n("ba99"),o=n("36c3"),s=n("bf0b"),a=n("20fd");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,r=o(e),c=s.f,u=i(r),l={},f=0;while(u.length>f)n=c(r,t=u[f++]),void 0!==n&&a(l,t,n);return l}})},ef5d:function(e,t){var n=Object.prototype.toString;function r(e){return"function"===typeof e.constructor?e.constructor.name:null}function i(e){return Array.isArray?Array.isArray(e):e instanceof Array}function o(e){return e instanceof Error||"string"===typeof e.message&&e.constructor&&"number"===typeof e.constructor.stackTraceLimit}function s(e){return e instanceof Date||"function"===typeof e.toDateString&&"function"===typeof e.getDate&&"function"===typeof e.setDate}function a(e){return e instanceof RegExp||"string"===typeof e.flags&&"boolean"===typeof e.ignoreCase&&"boolean"===typeof e.multiline&&"boolean"===typeof e.global}function c(e,t){return"GeneratorFunction"===r(e)}function u(e){return"function"===typeof e.throw&&"function"===typeof e.return&&"function"===typeof e.next}function l(e){try{if("number"===typeof e.length&&"function"===typeof e.callee)return!0}catch(t){if(-1!==t.message.indexOf("callee"))return!0}return!1}function f(e){return!(!e.constructor||"function"!==typeof e.constructor.isBuffer)&&e.constructor.isBuffer(e)}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("boolean"===t)return"boolean";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if("function"===t)return c(e)?"generatorfunction":"function";if(i(e))return"array";if(f(e))return"buffer";if(l(e))return"arguments";if(s(e))return"date";if(o(e))return"error";if(a(e))return"regexp";switch(r(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(u(e))return"generator";switch(t=n.call(e),t){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}},f0c1:function(e,t,n){"use strict";var r=n("d8e8"),i=n("d3f4"),o=n("31f4"),s=[].slice,a={},c=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=s.call(arguments,1),a=function(){var r=n.concat(s.call(arguments));return this instanceof a?c(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(a.prototype=t.prototype),a}},f1ae:function(e,t,n){"use strict";var r=n("86cc"),i=n("4630");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},f201:function(e,t,n){var r=n("e4ae"),i=n("79aa"),o=n("5168")("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||void 0==(n=r(s)[o])?t:i(n)}},f386:function(e,t,n){"use strict";n("386b")("small",(function(e){return function(){return e(this,"small","","")}}))},f3a2:function(e,t,n){(function(t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",u="object"===typeof e,l=t.regeneratorRuntime;if(l)u&&(e.exports=l);else{l=t.regeneratorRuntime=u?e.exports:{},l.wrap=M;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",g={},v={};v[s]=function(){return this};var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==r&&i.call(m,s)&&(v=m);var I=_.prototype=T.prototype=Object.create(v);A.prototype=I.constructor=_,_.constructor=A,_[c]=A.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===A||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(I),e},l.awrap=function(e){return{__await:e}},b(N.prototype),N.prototype[a]=function(){return this},l.AsyncIterator=N,l.async=function(e,t,n,r){var i=new N(M(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(I),I[c]="Generator",I[s]=function(){return this},I.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=L,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return a.type="throw",a.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var c=i.call(s,"catchLoc"),u=i.call(s,"finallyLoc");if(c&&u){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function M(e,t,n,r){var i=t&&t.prototype instanceof T?t:T,o=Object.create(i.prototype),s=new D(r||[]);return o._invoke=E(e,n,s),o}function C(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function T(){}function A(){}function _(){}function b(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function N(e){function n(t,r,o,s){var a=C(e[t],e,r);if("throw"!==a.type){var c=a.arg,u=c.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):Promise.resolve(u).then((function(e){c.value=e,o(c)}),s)}s(a.arg)}var r;function o(e,t){function i(){return new Promise((function(r,i){n(e,t,r,i)}))}return r=r?r.then(i,i):i()}"object"===typeof t.process&&t.process.domain&&(n=t.process.domain.bind(n)),this._invoke=o}function E(e,t,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return R()}n.method=i,n.arg=o;while(1){var s=n.delegate;if(s){var a=w(s,n);if(a){if(a===g)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=C(e,t,n);if("normal"===c.type){if(r=n.done?p:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}function w(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,w(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=C(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){while(++r<e.length)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:R}}function R(){return{value:n,done:!0}}}("object"===typeof t?t:"object"===typeof window?window:"object"===typeof self?self:this)}).call(this,n("c8ba"))},f3e2:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(0),o=n("2f21")([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},f400:function(e,t,n){"use strict";var r=n("c26b"),i=n("b39a"),o="Map";e.exports=n("e0b8")(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return r.def(i(this,o),0===e?0:e,t)}},r,!0)},f410:function(e,t,n){n("1af6"),e.exports=n("584a").Array.isArray},f4ff:function(e,t,n){var r=n("5ca1"),i=Math.imul;r(r.S+r.F*n("79e5")((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(e,t){var n=65535,r=+e,i=+t,o=n&r,s=n&i;return 0|o*s+((n&r>>>16)*s+o*(n&i>>>16)<<16>>>0)}})},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),s="startsWith",a=""[s];r(r.P+r.F*n("5147")(s),"String",{startsWith:function(e){var t=o(this,e,s),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return a?a.call(t,r,n):t.slice(n,n+r.length)===r}})},f576:function(e,t,n){"use strict";var r=n("5ca1"),i=n("2e08"),o=n("a25f"),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*s,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},f5df:function(e,t,n){},f605:function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},f6b3:function(e,t,n){var r=n("5ca1");r(r.S,"Reflect",{has:function(e,t){return t in e}})},f6b4:function(e,t,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},f893:function(e,t,n){e.exports={default:n("f921"),__esModule:!0}},f904:function(e,t,n){"use strict";var r=n("13d9"),i={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function s(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function a(e,t){var n,a,c,u,l,f,h=!1;t||(t={}),n=t.debug||!1;try{c=r(),u=document.createRange(),l=document.getSelection(),f=document.createElement("span"),f.textContent=e,f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i["default"];window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(f),u.selectNodeContents(f),l.addRange(u);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");h=!0}catch(p){n&&console.error("unable to copy using execCommand: ",p),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),h=!0}catch(p){n&&console.error("unable to copy using clipboardData: ",p),n&&console.error("falling back to prompt"),a=s("message"in t?t.message:o),window.prompt(a,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(u):l.removeAllRanges()),f&&document.body.removeChild(f),c()}return h}e.exports=a},f921:function(e,t,n){n("014b"),n("c207"),n("69d3"),n("765d"),e.exports=n("584a").Symbol},f9ab:function(e,t,n){var r=n("5ca1"),i=n("96fb");r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fa83:function(e,t,n){"use strict";n("386b")("blink",(function(e){return function(){return e(this,"blink","","")}}))},fa99:function(e,t,n){n("0293"),e.exports=n("584a").Object.getPrototypeOf},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb48:function(e,t,n){"use strict";
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */var r=n("a832");function i(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==i(e)&&(t=e.constructor,"function"===typeof t&&(n=t.prototype,!1!==i(n)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},fca0:function(e,t,n){var r=n("5ca1"),i=n("7726").isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},fd24:function(e,t,n){var r=n("5ca1");r(r.S,"Object",{setPrototypeOf:n("8b97").set})},fd5a:function(e,t,n){n("d0ca"),e.exports=n("8378").RegExp.escape},fde4:function(e,t,n){n("bf90");var r=n("584a").Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}},fdef:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},fee7:function(e,t,n){"use strict";var r=n("5ca1"),i=n("4bf8"),o=n("d8e8"),s=n("86cc");n("9e1e")&&r(r.P+n("c5b4"),"Object",{__defineSetter__:function(e,t){s.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},ffc1:function(e,t,n){var r=n("5ca1"),i=n("504c")(!0);r(r.S,"Object",{entries:function(e){return i(e)}})}}]);
|