Files
xj-admin/public/static/im-web/js/vendors~app.b38bf4ff.js
T
lianlonggang 7106e99a7b fix(chat): 修复消息气泡组件头像加载及位置服务地图链接
- 实现头像加载失败处理机制,添加默认头像回退方案
- 使用 ref 状态追踪头像加载失败情况,避免 watchEffect 重置问题
- 更新位置服务地图链接,从腾讯地图切换到高德地图服务
- 配置 Vue 构建依赖转译,解决 element-plus 兼容性问题
- 移除多个无用的 SVG 图标文件,精简项目资源
2026-04-10 14:43:08 +08:00

400 lines
4.9 MiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["vendors~app"],{"0054":function(e,t,n){"use strict";var r=n("a5eb"),o=n("9883"),a=n("a0b9"),i=n("7106"),s=n("ce18"),c=n("06fa"),l=n("6220"),u=n("fb2d"),d=n("efb3"),p=n("c978"),f=n("fc48"),h=n("8c12"),m=n("eb54"),v=n("0cfd"),g=n("3e80"),_=n("8c68"),b=n("ac44"),y=String,O=o("JSON","stringify"),M=s(/./.exec),k=s("".charAt),C=s("".charCodeAt),w=s("".replace),S=s("".slice),T=s([].push),I=s(1.1.toString),E=/[\uD800-\uDFFF]/g,j=/^[\uD800-\uDBFF]$/,D=/^[\uDC00-\uDFFF]$/,L=g(),A=L.length,N=!_||c((function(){var e=o("Symbol")("stringify detection");return"[null]"!==O([e])||"{}"!==O({a:e})||"{}"!==O(Object(e))})),R=c((function(){return'"\\udf06\\ud834"'!==O("\udf06\ud834")||'"\\udead"'!==O("\udead")})),x=N?function(e,t){var n=m(arguments),r=U(t);if(u(r)||void 0!==e&&!p(e))return n[1]=function(e,t){if(u(r)&&(t=i(r,this,y(e),t)),!p(t))return t},a(O,null,n)}:O,P=function(e,t,n){var r=k(n,t-1),o=k(n,t+1);return M(j,e)&&!M(D,o)||M(D,e)&&!M(j,r)?"\\u"+I(C(e,0),16):e},U=function(e){if(u(e))return e;if(l(e)){for(var t=e.length,n=[],r=0;r<t;r++){var o=e[r];"string"==typeof o?T(n,o):"number"!=typeof o&&"Number"!==f(o)&&"String"!==f(o)||T(n,h(o))}var a=n.length,i=!0;return function(e,t){if(i)return i=!1,t;if(l(this))return t;for(var r=0;r<a;r++)if(n[r]===e)return t}}};O&&r({target:"JSON",stat:!0,arity:3,forced:N||R||!b},{stringify:function(e,t,n){var r=U(t),o=[],a=x(e,(function(e,t){var n=u(r)?i(r,this,y(e),t):t;return!b&&d(n)?L+(T(o,n.rawJSON)-1):n}),n);if("string"!=typeof a)return a;if(R&&(a=w(a,E,P)),b)return a;for(var s="",c=a.length,l=0;l<c;l++){var p=k(a,l);if('"'===p){var f=v(a,++l).end-1,h=S(a,l,f);s+=S(h,0,A)===L?o[S(h,A)]:'"'+h+'"',l=f}else s+=p}return s}})},"00ce":function(e,t,n){"use strict";var r,o=n("a284"),a=n("a645"),i=n("417f"),s=n("dc99"),c=n("1409"),l=n("67ee"),u=n("0d25"),d=n("67d9"),p=n("17aa"),f=n("6591"),h=n("e050"),m=n("ab2b"),v=n("59eb"),g=n("c3ae"),_=n("8ca0"),b=Function,y=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(t){}},O=n("2aa9"),M=n("71c9"),k=function(){throw new u},C=O?function(){try{return k}catch(e){try{return O(arguments,"callee").get}catch(t){return k}}}():k,w=n("5156")(),S=n("833a"),T=n("17bc"),I=n("f2e1"),E=n("e16f"),j=n("926d"),D={},L="undefined"!==typeof Uint8Array&&S?S(Uint8Array):r,A={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":w&&S?S([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":D,"%AsyncGenerator%":D,"%AsyncGeneratorFunction%":D,"%AsyncIteratorPrototype%":D,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":i,"%Float16Array%":"undefined"===typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":D,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&S?S(S([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&w&&S?S((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":O,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&w&&S?S((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&S?S(""[Symbol.iterator]()):r,"%Symbol%":w?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":C,"%TypedArray%":L,"%TypeError%":u,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet,"%Function.prototype.call%":j,"%Function.prototype.apply%":E,"%Object.defineProperty%":M,"%Object.getPrototypeOf%":T,"%Math.abs%":p,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":v,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":I};if(S)try{null.error}catch(K){var N=S(S(K));A["%Error.prototype%"]=N}var R=function e(t){var n;if("%AsyncFunction%"===t)n=y("async function () {}");else if("%GeneratorFunction%"===t)n=y("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=y("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&S&&(n=S(o.prototype))}return A[t]=n,n},x={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},P=n("0f7c"),U=n("9671"),V=P.call(j,Array.prototype.concat),B=P.call(E,Array.prototype.splice),F=P.call(j,String.prototype.replace),G=P.call(j,String.prototype.slice),H=P.call(j,RegExp.prototype.exec),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,q=function(e){var t=G(e,0,1),n=G(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return F(e,Y,(function(e,t,n,o){r[r.length]=n?F(o,z,"$1"):t||e})),r},W=function(e,t){var n,r=e;if(U(x,r)&&(n=x[r],r="%"+n[0]+"%"),U(A,r)){var o=A[r];if(o===D&&(o=R(r)),"undefined"===typeof o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===H(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=q(e),r=n.length>0?n[0]:"",o=W("%"+r+"%",t),a=o.name,i=o.value,s=!1,c=o.alias;c&&(r=c[0],B(n,V([0,1],c)));for(var d=1,p=!0;d<n.length;d+=1){var f=n[d],h=G(f,0,1),m=G(f,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==f&&p||(s=!0),r+="."+f,a="%"+r+"%",U(A,a))i=A[a];else if(null!=i){if(!(f in i)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(O&&d+1>=n.length){var v=O(i,f);p=!!v,i=p&&"get"in v&&!("originalValue"in v.get)?v.get:i[f]}else p=U(i,f),i=i[f];p&&!s&&(A[a]=i)}}return i}},"00ee":function(e,t,n){"use strict";var r=n("b622"),o=r("toStringTag"),a={};a[o]="z",e.exports="[object z]"===String(a)},"010e":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}});return t}))},"015d":function(e,t,n){"use strict";var r=n("cfe9"),o=n("e330"),a=r.Uint8Array,i=r.SyntaxError,s=Math.min,c=o("".match);e.exports=function(e,t){var n=e.length;if(n%2!==0)throw new i("String should be an even number of characters");for(var r=t?s(t.length,n/2):n/2,o=t||new a(r),l=c(e,/.{2}/g),u=0;u<r;u++){var d=+("0x"+l[u]+"0");if(d!==d)throw new i("String should only contain hex characters");o[u]=d>>4}return{bytes:o,read:u<<1}}},"024f":function(e,t,n){"use strict";var r=n("a5eb"),o=n("ee07");r({target:"Number",stat:!0,forced:Number.parseFloat!==o},{parseFloat:o})},"0273":function(e,t,n){"use strict";var r=n("c1b2"),o=n("4180"),a=n("2c6c");e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},"0293":function(e,t,n){"use strict";n("04b8")},"02fb":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}});return t}))},"0315":function(e,t,n){"use strict";var r=n("2c0f");e.exports=/ipad|iphone|ipod/i.test(r)&&/applewebkit/i.test(r)},"033d":function(e,t,n){"use strict";var r=n("a5eb"),o=n("3eba"),a=n("d175"),i=a(o.setInterval,!0);r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},"0348":function(e,t,n){e.exports=n("fd76")},"0363":function(e,t,n){"use strict";var r=n("3eba"),o=n("d659"),a=n("0e6f"),i=n("3e80"),s=n("8c68"),c=n("62d0"),l=r.Symbol,u=o("wks"),d=c?l["for"]||l:l&&l.withoutSetter||i;e.exports=function(e){return a(u,e)||(u[e]=s&&a(l,e)?l[e]:d("Symbol."+e)),u[e]}},"0366":function(e,t,n){"use strict";var r=n("4625"),o=n("59ed"),a=n("40d5"),i=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:a?i(e,t):function(){return e.apply(t,arguments)}}},"0388":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("0c24"),o=n("83ec"),a=n("0e69"),i=n("304f"),s=n("3e9e"),c=n("7a23"),l=Object(c["defineComponent"])({name:"ElBadge",__name:"badge",props:s["a"],setup(e,{expose:t}){const n=e,r=Object(i["d"])("badge"),s=Object(c["computed"])(()=>n.isDot?"":Object(o["d"])(n.value)&&Object(o["d"])(n.max)&&n.max<n.value?n.max+"+":""+n.value),l=Object(c["computed"])(()=>{var e;return[{backgroundColor:n.color,marginRight:Object(a["b"])(-n.offset[0]),marginTop:Object(a["b"])(n.offset[1])},null!==(e=n.badgeStyle)&&void 0!==e?e:{}]});return t({content:s}),(t,n)=>(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",{class:Object(c["normalizeClass"])(Object(c["unref"])(r).b())},[Object(c["renderSlot"])(t.$slots,"default"),Object(c["createVNode"])(c["Transition"],{name:Object(c["unref"])(r).namespace.value+"-zoom-in-center"},{default:Object(c["withCtx"])(()=>[!e.hidden&&(s.value||e.isDot||t.$slots.content)?(Object(c["openBlock"])(),Object(c["createElementBlock"])("sup",{key:0,class:Object(c["normalizeClass"])([Object(c["unref"])(r).e("content"),Object(c["unref"])(r).em("content",e.type),Object(c["unref"])(r).is("fixed",!!t.$slots.default),Object(c["unref"])(r).is("dot",e.isDot),Object(c["unref"])(r).is("hide-zero",!e.showZero&&0===e.value),e.badgeClass]),style:Object(c["normalizeStyle"])(l.value)},[Object(c["renderSlot"])(t.$slots,"content",{value:s.value},()=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(s.value),1)])],6)):Object(c["createCommentVNode"])("v-if",!0)]),_:3},8,["name"])],2))}}),u=l;const d=Object(r["a"])(u)},"03d2":function(e,t,n){"use strict";var r=n("3515");e.exports=r},"03ec":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){var t=/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран";return e+t},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});return t}))},"042b":function(e,t,n){"use strict";n("a2ac");var r=n("c18e");e.exports=r("Array","every")},"045d":function(e,t,n){e.exports=n("049e")},"049e":function(e,t,n){"use strict";var r=n("2419");n("5145"),e.exports=r},"04b8":function(e,t,n){"use strict";n("3e47");var r,o=n("a5eb"),a=n("c1b2"),i=n("36b8"),s=n("3eba"),c=n("6414"),l=n("ce18"),u=n("fdbe"),d=n("2296"),p=n("5f7d"),f=n("0e6f"),h=n("f44f"),m=n("471b"),v=n("eb54"),g=n("cbd0").codeAt,_=n("e7f1"),b=n("8c12"),y=n("2874"),O=n("f868"),M=n("718c"),k=n("2f5a"),C=k.set,w=k.getterFor("URL"),S=M.URLSearchParams,T=M.getState,I=s.URL,E=s.TypeError,j=s.encodeURIComponent,D=s.parseInt,L=Math.floor,A=Math.pow,N=l("".charAt),R=l(/./.exec),x=l([].join),P=l(1.1.toString),U=l([].pop),V=l([].push),B=l("".replace),F=l([].shift),G=l("".split),H=l("".slice),Y=l("".toLowerCase),z=l([].unshift),q="Invalid authority",W="Invalid scheme",K="Invalid host",$="Invalid port",J=/[a-z]/i,X=/[\d+\-.a-z]/i,Q=/\d/,Z=/^0x/i,ee=/^[0-7]+$/,te=/^\d+$/,ne=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,oe=/[\0\t\n\r #/:<>?@[\\\]^|]/,ae=/^[\u0000-\u0020]+/,ie=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,se=/[\t\n\r]/g,ce=function(e){var t,n,r=G(e,".");if(""===r[r.length-1]){if(1===r.length)return!1;r.length--}return t=r[r.length-1],!!R(te,t)||!!R(Z,t)&&(n=H(t,2),""===n||!!R(ne,n))},le=function(e){var t,n,r,o,a,i,s,c=G(e,".");if(c.length&&""===c[c.length-1]&&c.length--,t=c.length,t>4)return null;for(n=[],r=0;r<t;r++){if(o=c[r],""===o)return null;if(a=10,o.length>1&&"0"===N(o,0)&&(a=R(Z,o)?16:8,o=H(o,8===a?1:2)),""===o)i=0;else{if(!R(10===a?te:8===a?ee:ne,o))return null;i=D(o,a)}V(n,i)}for(r=0;r<t;r++)if(i=n[r],r===t-1){if(i>=A(256,5-t))return null}else if(i>255)return null;for(s=U(n),r=0;r<n.length;r++)s+=n[r]*A(256,3-r);return s},ue=function(e){var t,n,r,o,a,i,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,d=0,p=function(){return N(e,d)};if(":"===p()){if(":"!==N(e,1))return;d+=2,l++,u=l}while(p()){if(8===l)return;if(":"!==p()){t=n=0;while(n<4&&R(ne,p()))t=16*t+D(p(),16),d++,n++;if("."===p()){if(0===n)return;if(d-=n,l>6)return;r=0;while(p()){if(o=null,r>0){if(!("."===p()&&r<4))return;d++}if(!R(Q,p()))return;while(R(Q,p())){if(a=D(p(),10),null===o)o=a;else{if(0===o)return;o=10*o+a}if(o>255)return;d++}c[l]=256*c[l]+o,r++,2!==r&&4!==r||l++}if(4!==r)return;break}if(":"===p()){if(d++,!p())return}else if(p())return;c[l++]=t}else{if(null!==u)return;d++,l++,u=l}}if(null!==u){i=l-u,l=7;while(0!==l&&i>0)s=c[l],c[l--]=c[u+i-1],c[u+--i]=s}else if(8!==l)return;return c},de=function(e){for(var t=null,n=1,r=null,o=0,a=0;a<8;a++)0!==e[a]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=a),++o);return o>n?r:t},pe=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)z(t,e%256),e=L(e/256);return x(t,".")}if("object"==typeof e){for(t="",r=de(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=P(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},fe={},he=h({},fe,{" ":1,'"':1,"#":1,"<":1,">":1}),me=h({},he,{"'":1}),ve=h({},fe,{" ":1,'"':1,"<":1,">":1,"`":1}),ge=h({},ve,{"#":1,"?":1,"{":1,"}":1,"^":1}),_e=h({},ge,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),be=function(e,t){var n=g(e,0);return n>=32&&n<127&&!f(t,e)?e:"'"===e&&f(t,e)?"%27":j(e)},ye={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Oe=function(e,t){var n;return 2===e.length&&R(J,N(e,0))&&(":"===(n=N(e,1))||!t&&"|"===n)},Me=function(e){var t;return e.length>1&&Oe(H(e,0,2))&&(2===e.length||"/"===(t=N(e,2))||"\\"===t||"?"===t||"#"===t)},ke=function(e){return"."===e||"%2e"===Y(e)},Ce=function(e){return e=Y(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},we={},Se={},Te={},Ie={},Ee={},je={},De={},Le={},Ae={},Ne={},Re={},xe={},Pe={},Ue={},Ve={},Be={},Fe={},Ge={},He={},Ye={},ze={},qe=function(e,t,n){var r,o,a,i=b(e);if(t){if(o=this.parse(i),o)throw new E(o);this.searchParams=null}else{if(void 0!==n&&(r=new qe(n,!0)),o=this.parse(i,null,r),o)throw new E(o);a=T(new S),a.bindURL(this),this.searchParams=a}};qe.prototype={type:"URL",parse:function(e,t,n){var o,a,i,s,c=this,l=t||we,u=0,d="",p=!1,h=!1,g=!1;e=b(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=B(e,ae,""),e=B(e,ie,"$1")),e=B(e,se,""),o=m(e);while(u<=o.length){switch(a=o[u],l){case we:if(!a||!R(J,a)){if(t)return W;l=Te;continue}d+=Y(a),l=Se;break;case Se:if(a&&R(X,a))d+=Y(a);else{if(":"!==a){if(t)return W;d="",l=Te,u=0;continue}if(t&&(c.isSpecial()!==f(ye,d)||"file"===d&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&""===c.host))return;if(c.scheme=d,t)return void(c.isSpecial()&&ye[c.scheme]===c.port&&(c.port=null));d="","file"===c.scheme?l=Ue:c.isSpecial()&&n&&n.scheme===c.scheme?l=Ie:c.isSpecial()?l=Le:"/"===o[u+1]?(l=Ee,u++):(c.cannotBeABaseURL=!0,V(c.path,""),l=He)}break;case Te:if(!n||n.cannotBeABaseURL&&"#"!==a)return W;if(n.cannotBeABaseURL&&"#"===a){c.scheme=n.scheme,c.path=v(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=ze;break}l="file"===n.scheme?Ue:je;continue;case Ie:if("/"!==a||"/"!==o[u+1]){l=je;continue}l=Ae,u++;break;case Ee:if("/"===a){l=Ne;break}l=Ge;continue;case je:if(c.scheme=n.scheme,a===r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query;else if("/"===a||"\\"===a&&c.isSpecial())l=De;else if("?"===a)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query="",l=Ye;else{if("#"!==a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.path.length&&c.path.length--,l=Ge;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query,c.fragment="",l=ze}break;case De:if(!c.isSpecial()||"/"!==a&&"\\"!==a){if("/"!==a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=Ge;continue}l=Ne}else l=Ae;break;case Le:if(l=Ae,"/"!==a||"/"!==o[u+1])continue;u++;break;case Ae:if("/"!==a&&"\\"!==a){l=Ne;continue}break;case Ne:if("@"===a){p&&(d="%40"+d),p=!0,i=m(d);for(var _=0;_<i.length;_++){var y=i[_];if(":"!==y||g){var O=be(y,_e);g?c.password+=O:c.username+=O}else g=!0}d=""}else if(a===r||"/"===a||"?"===a||"#"===a||"\\"===a&&c.isSpecial()){if(p&&""===d)return q;u-=m(d).length+1,d="",l=Re}else d+=a;break;case Re:case xe:if(t&&"file"===c.scheme){l=Be;continue}if(":"!==a||h){if(a===r||"/"===a||"?"===a||"#"===a||"\\"===a&&c.isSpecial()){if(c.isSpecial()&&""===d)return K;if(t&&""===d&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(d),s)return s;if(d="",l=Fe,t)return;continue}"["===a?h=!0:"]"===a&&(h=!1),d+=a}else{if(""===d)return K;if(t===xe)return;if(s=c.parseHost(d),s)return s;d="",l=Pe}break;case Pe:if(!R(Q,a)){if(a===r||"/"===a||"?"===a||"#"===a||"\\"===a&&c.isSpecial()||t){if(""!==d){var M=D(d,10);if(M>65535)return $;c.port=c.isSpecial()&&M===ye[c.scheme]?null:M,d=""}if(t)return;l=Fe;continue}return $}d+=a;break;case Ue:if(c.scheme="file",c.host="","/"===a||"\\"===a)l=Ve;else{if(!n||"file"!==n.scheme){l=Ge;continue}switch(a){case r:c.host=n.host,c.path=v(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=v(n.path),c.query="",l=Ye;break;case"#":c.host=n.host,c.path=v(n.path),c.query=n.query,c.fragment="",l=ze;break;default:c.host=n.host,Me(x(v(o,u),""))||(c.path=v(n.path),c.shortenPath()),l=Ge;continue}}break;case Ve:if("/"===a||"\\"===a){l=Be;break}n&&"file"===n.scheme&&(c.host=n.host,!Me(x(v(o,u),""))&&Oe(n.path[0],!0)&&V(c.path,n.path[0])),l=Ge;continue;case Be:if(a===r||"/"===a||"\\"===a||"?"===a||"#"===a){if(!t&&Oe(d))l=Ge;else if(""===d){if(c.host="",t)return;l=Fe}else{if(s=c.parseHost(d),s)return s;if("localhost"===c.host&&(c.host=""),t)return;d="",l=Fe}continue}d+=a;break;case Fe:if(c.isSpecial()){if(l=Ge,"/"!==a&&"\\"!==a)continue}else if(t||"?"!==a)if(t||"#"!==a){if(a!==r&&(l=Ge,"/"!==a))continue}else c.fragment="",l=ze;else c.query="",l=Ye;break;case Ge:if(a===r||"/"===a||"\\"===a&&c.isSpecial()||!t&&("?"===a||"#"===a)){if(Ce(d)?(c.shortenPath(),"/"===a||"\\"===a&&c.isSpecial()||V(c.path,"")):ke(d)?"/"===a||"\\"===a&&c.isSpecial()||V(c.path,""):("file"===c.scheme&&!c.path.length&&Oe(d)&&(null!==c.host&&""!==c.host&&(c.host=""),d=N(d,0)+":"),V(c.path,d)),d="","file"===c.scheme&&(a===r||"?"===a||"#"===a))while(c.path.length>1&&""===c.path[0])F(c.path);"?"===a?(c.query="",l=Ye):"#"===a&&(c.fragment="",l=ze)}else d+=be(a,ge);break;case He:"?"===a?(c.query="",l=Ye):"#"===a?(c.fragment="",l=ze):a!==r&&(c.path[0]+=be(a,fe));break;case Ye:t||"#"!==a?a!==r&&(c.query+=be(a,c.isSpecial()?me:he)):(c.fragment="",l=ze);break;case ze:a!==r&&(c.fragment+=be(a,ve));break}u++}},parseHost:function(e){var t,n,r;if("["===N(e,0)){if("]"!==N(e,e.length-1))return K;if(t=ue(H(e,1,-1)),!t)return K;this.host=t}else if(this.isSpecial()){if(e=_(e),R(re,e))return K;if(ce(e)){if(t=le(e),null===t)return K;this.host=t}else this.host=e}else{if(R(oe,e))return K;for(t="",n=m(e),r=0;r<n.length;r++)t+=be(n[r],fe);this.host=t}},cannotHaveUsernamePasswordPort:function(){return null===this.host||""===this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return f(ye,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&Oe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,o=e.host,a=e.port,i=e.path,s=e.query,c=e.fragment,l=t+":";return null!==o?(l+="//",e.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=pe(o),null!==a&&(l+=":"+a)):"file"===t&&(l+="//"),null===o&&!e.cannotBeABaseURL&&i.length>1&&""===i[0]&&(l+="/."),l+=e.cannotBeABaseURL?i[0]:i.length?"/"+x(i,"/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},setHref:function(e){var t=this.parse(e);if(t)throw new E(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new We(this.path[0]).origin}catch(n){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+pe(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",we)},getUsername:function(){return this.username},setUsername:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=be(t[n],_e)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=be(t[n],_e)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?pe(e):pe(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Re)},getHostname:function(){var e=this.host;return null===e?"":pe(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,xe)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=b(e),""===e?this.port=null:this.parse(e,Pe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+x(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Fe))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=b(e),""===e?this.query=null:("?"===N(e,0)&&(e=H(e,1)),this.query="",this.parse(e,Ye)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=b(e),""!==e?("#"===N(e,0)&&(e=H(e,1)),this.fragment="",this.parse(e,ze)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var We=function(e){var t=p(this,Ke),n=O(arguments.length,1)>1?arguments[1]:void 0,r=C(t,new qe(e,!1,n));a||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Ke=We.prototype,$e=function(e,t){return{get:function(){return w(this)[e]()},set:t&&function(e){return w(this)[t](e)},configurable:!0,enumerable:!0}};if(a&&(d(Ke,"href",$e("serialize","setHref")),d(Ke,"origin",$e("getOrigin")),d(Ke,"protocol",$e("getProtocol","setProtocol")),d(Ke,"username",$e("getUsername","setUsername")),d(Ke,"password",$e("getPassword","setPassword")),d(Ke,"host",$e("getHost","setHost")),d(Ke,"hostname",$e("getHostname","setHostname")),d(Ke,"port",$e("getPort","setPort")),d(Ke,"pathname",$e("getPathname","setPathname")),d(Ke,"search",$e("getSearch","setSearch")),d(Ke,"searchParams",$e("getSearchParams")),d(Ke,"hash",$e("getHash","setHash"))),u(Ke,"toJSON",(function(){return w(this).serialize()}),{enumerable:!0}),u(Ke,"toString",(function(){return w(this).serialize()}),{enumerable:!0}),I){var Je=I.createObjectURL,Xe=I.revokeObjectURL;Je&&u(We,"createObjectURL",c(Je,I)),Xe&&u(We,"revokeObjectURL",c(Xe,I))}y(We,"URL"),o({global:!0,constructor:!0,forced:!i,sham:!a},{URL:We})},"04e6":function(e,t,n){"use strict";n("c5a8");var r=n("764b");e.exports=r.setInterval},"04f8":function(e,t,n){"use strict";var r=n("1212"),o=n("d039"),a=n("cfe9"),i=a.String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"04ff":function(e,t,n){"use strict";var r=n("437b"),o=n("1519"),a=Array.prototype;e.exports=function(e){var t=e.find;return e===a||r(a,e)&&t===a.find?o:t}},"0512":function(e,t,n){var r=function(e){return e&&"undefined"!==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(e,t){for(var n in t)o(e,n,{get:t[n],enumerable:!0})},l=function(e,t,n,r){var c=!0,l=!1,u=void 0;if(t&&"object"==typeof t||"function"==typeof t)try{for(var d,p=function(i,c){var l=c.value;!s.call(e,l)&&l!==n&&o(e,l,{get:function(){return t[l]},enumerable:!(r=a(t,l))||r.enumerable})},f=i(t)[Symbol.iterator]();!(c=(d=f.next()).done);c=!0)p(f,d)}catch(h){l=!0,u=h}finally{try{c||null==f.return||f.return()}finally{if(l)throw u}}return e},u=function(e){return l(o({},"__esModule",{value:!0}),e)},d={};c(d,{default:function(){return F}}),e.exports=u(d);var p,f,h,m,v,g,_,b,y,O,M,k,C,w,S,T=!1;function I(){if(!T){T=!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),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(k=/\b(iPhone|iP[ao]d)/.exec(e),C=/\b(iP[ao]d)/.exec(e),O=/Android/i.exec(e),w=/FBAN\/\w+;/i.exec(e),S=/Mobile/i.exec(e),M=!!/Win64/.exec(e),t){p=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,p&&document&&document.documentMode&&(p=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);g=r?parseFloat(r[1])+4:p,f=t[2]?parseFloat(t[2]):NaN,h=t[3]?parseFloat(t[3]):NaN,m=t[4]?parseFloat(t[4]):NaN,m?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),v=t&&t[1]?parseFloat(t[1]):NaN):v=NaN}else p=f=h=v=m=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);_=!o||parseFloat(o[1].replace("_","."))}else _=!1;b=!!n[2],y=!!n[3]}else _=b=y=!1}}var E,j={ie:function(){return I()||p},ieCompatibilityMode:function(){return I()||g>p},ie64:function(){return j.ie()&&M},firefox:function(){return I()||f},opera:function(){return I()||h},webkit:function(){return I()||m},safari:function(){return j.webkit()},chrome:function(){return I()||v},windows:function(){return I()||b},osx:function(){return I()||_},linux:function(){return I()||y},iphone:function(){return I()||k},mobile:function(){return I()||k||C||O||S},nativeApp:function(){return I()||w},android:function(){return I()||O},ipad:function(){return I()||C}},D=j,L=!!(("undefined"===typeof window?"undefined":r(window))<"u"&&window.document&&window.document.createElement),A={canUseDOM:L,canUseWorkers:("undefined"===typeof Worker?"undefined":r(Worker))<"u",canUseEventListeners:L&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:L&&!!window.screen,isInWorker:!L},N=A;function R(e,t){if(!N.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&E&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}N.canUseDOM&&(E=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var x=R,P=10,U=40,V=800;function B(e){var t=0,n=0,r=0,o=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*P,o=n*P,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=U,o*=U):(r*=V,o*=V)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}B.getEventType=function(){return D.firefox()?"DOMMouseScroll":x("wheel")?"wheel":"mousewheel"};var F=B},"0558":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e){return e%100===11||e%10!==1}function n(e,n,r,o){var a=e+" ";switch(r){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(n||o?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||o?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||o?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(o?"daga":"dögum"):n?a+"dagur":a+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(o?"mánuði":"mánuðum"):n?a+"mánuður":a+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return t(e)?a+(n||o?"ár":"árum"):a+(n||o?"ár":"ári")}}var r=e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return r}))},"05f2":function(e,t,n){e.exports=n("9361")},"06cf":function(e,t,n){"use strict";var r=n("83ab"),o=n("c65b"),a=n("d1e7"),i=n("5c6c"),s=n("fc6a"),c=n("a04b"),l=n("1a2d"),u=n("0cfb"),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=c(t),u)try{return d(e,t)}catch(n){}if(l(e,t))return i(!o(a.f,e,t),e[t])}},"06fa":function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},"0721":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"079c":function(e,t,n){"use strict";var r=n("0e62");e.exports=r},"079e":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});return t}))},"07fa":function(e,t,n){"use strict";var r=n("50c4");e.exports=function(e){return r(e.length)}},"083a":function(e,t,n){"use strict";var r=n("c44a");n("5145"),e.exports=r},"0898":function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return M})),n.d(t,"c",(function(){return b}));n("14d9");var r=n("d254"),o=n.n(r),a=n("9a73"),i=n.n(a),s=n("14b1"),c=n.n(s),l=n("045d"),u=n.n(l),d=n("5b1a"),p=n.n(d),f=n("8b9c"),h=n.n(f),m=n("7d20"),v=n("d095"),g=n("7a23");const _="__epPropKey",b=e=>e,y=e=>Object(m["isObject"])(e)&&!!e[_],O=(e,t)=>{if(!Object(m["isObject"])(e)||y(e))return e;const{values:n,required:r,default:a,type:s,validator:l}=e,d={type:s,required:!!r,validator:n||l?r=>{let s=!1,d=[];if(n&&(d=o()(n),Object(m["hasOwn"])(e,"default")&&d.push(a),s||(s=i()(d).call(d,r))),l&&(s||(s=l(r))),!s&&d.length>0){var f;const e=c()(f=[...new u.a(d)]).call(f,e=>p()(e)).join(", ");Object(g["warn"])(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${p()(r)}.`)}return s}:void 0,[_]:!0};return Object(m["hasOwn"])(e,"default")&&(d.default=a),d},M=e=>{var t;return Object(v["fromPairs"])(c()(t=h()(e)).call(t,([e,t])=>[e,O(t,e)]))}},"0913":function(e,t,n){"use strict";var r=n("a5eb"),o=n("14df");r({target:"Reflect",stat:!0},{ownKeys:o})},"0931":function(e,t,n){"use strict";(function(e){var r=n("9834"),o=n("7a23");function a(e,t,n){let a;a=o.isRef(n)?{evaluating:n}:n||{};const{lazy:i=!1,evaluating:s,shallow:c=!0,onError:l=r.noop}=a,u=o.ref(!i),d=c?o.shallowRef(t):o.ref(t);let p=0;return o.watchEffect(async t=>{if(!u.value)return;p++;const n=p;let r=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{const o=await e(e=>{t(()=>{s&&(s.value=!1),r||e()})});n===p&&(d.value=o)}catch(o){l(o)}finally{s&&n===p&&(s.value=!1),r=!0}}),i?o.computed(()=>(u.value=!0,d.value)):d}function i(e,t,n,r){let a=o.inject(e);return n&&(a=o.inject(e,n)),r&&(a=o.inject(e,n,r)),"function"===typeof t?o.computed(e=>t(a,e)):o.computed({get:e=>t.get(a,e),set:t.set})}function s(e={}){const{inheritAttrs:t=!0}=e,n=o.shallowRef(),a=o.defineComponent({setup(e,{slots:t}){return()=>{n.value=t.default}}}),i=o.defineComponent({inheritAttrs:t,setup(e,{attrs:r,slots:o}){return()=>{var e;n.value;const a=null==(e=n.value)?void 0:e.call(n,{...c(r),$slots:o});return t&&1===(null==a?void 0:a.length)?a[0]:a}}});return r.makeDestructurable({define:a,reuse:i},[a,i])}function c(e){const t={};for(const n in e)t[r.camelize(n)]=e[n];return t}function l(e={}){let t=0;const n=o.ref([]);function r(...r){const a=o.shallowReactive({key:t++,args:r,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return n.value.push(a),a.promise=new Promise((e,t)=>{a.resolve=t=>(a.isResolving=!0,e(t)),a.reject=t}).finally(()=>{a.promise=void 0;const e=n.value.indexOf(a);-1!==e&&n.value.splice(e,1)}),a.promise}function a(...t){return e.singleton&&n.value.length>0?n.value[0].promise:r(...t)}const i=o.defineComponent((t,{slots:r})=>{const a=()=>n.value.map(e=>{var t;return o.h(o.Fragment,{key:e.key},null==(t=r.default)?void 0:t.call(r,e))});return e.transition?()=>o.h(o.TransitionGroup,e.transition,a):a});return i.start=a,i}function u(e){return function(...t){return e.apply(this,t.map(e=>r.toValue(e)))}}const d=r.isClient?window:void 0,p=r.isClient?window.document:void 0,f=r.isClient?window.navigator:void 0,h=r.isClient?window.location:void 0;function m(e){var t;const n=r.toValue(e);return null!=(t=null==n?void 0:n.$el)?t:n}function v(...e){let t,n,a,i;if("string"===typeof e[0]||Array.isArray(e[0])?([n,a,i]=e,t=d):[t,n,a,i]=e,!t)return r.noop;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const s=[],c=()=>{s.forEach(e=>e()),s.length=0},l=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),u=o.watch(()=>[m(t),r.toValue(i)],([e,t])=>{if(c(),!e)return;const o=r.isObject(t)?{...t}:t;s.push(...n.flatMap(t=>a.map(n=>l(e,t,n,o))))},{immediate:!0,flush:"post"}),p=()=>{u(),c()};return r.tryOnScopeDispose(p),p}let g=!1;function _(e,t,n={}){const{window:o=d,ignore:a=[],capture:i=!0,detectIframe:s=!1}=n;if(!o)return r.noop;r.isIOS&&!g&&(g=!0,Array.from(o.document.body.children).forEach(e=>e.addEventListener("click",r.noop)),o.document.documentElement.addEventListener("click",r.noop));let c=!0;const l=e=>r.toValue(a).some(t=>{if("string"===typeof t)return Array.from(o.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{const n=m(t);return n&&(e.target===n||e.composedPath().includes(n))}});function u(e){const t=r.toValue(e);return t&&16===t.$.subTree.shapeFlag}function p(e,t){const n=r.toValue(e),o=n.$.subTree&&n.$.subTree.children;return!(null==o||!Array.isArray(o))&&o.some(e=>e.el===t.target||t.composedPath().includes(e.el))}const f=n=>{const r=m(e);null!=n.target&&(r instanceof Element||!u(e)||!p(e,n))&&r&&r!==n.target&&!n.composedPath().includes(r)&&(0===n.detail&&(c=!l(n)),c?t(n):c=!0)};let h=!1;const _=[v(o,"click",e=>{h||(h=!0,setTimeout(()=>{h=!1},0),f(e))},{passive:!0,capture:i}),v(o,"pointerdown",t=>{const n=m(e);c=!l(t)&&!(!n||t.composedPath().includes(n))},{passive:!0}),s&&v(o,"blur",n=>{setTimeout(()=>{var r;const a=m(e);"IFRAME"!==(null==(r=o.document.activeElement)?void 0:r.tagName)||(null==a?void 0:a.contains(o.document.activeElement))||t(n)},0)})].filter(Boolean),b=()=>_.forEach(e=>e());return b}function b(e){return"function"===typeof e?e:"string"===typeof e?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function y(...e){let t,n,o={};3===e.length?(t=e[0],n=e[1],o=e[2]):2===e.length?"object"===typeof e[1]?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:a=d,eventName:i="keydown",passive:s=!1,dedupe:c=!1}=o,l=b(t),u=e=>{e.repeat&&r.toValue(c)||l(e)&&n(e)};return v(a,i,u,s)}function O(e,t,n={}){return y(e,t,{...n,eventName:"keydown"})}function M(e,t,n={}){return y(e,t,{...n,eventName:"keypress"})}function k(e,t,n={}){return y(e,t,{...n,eventName:"keyup"})}const C=500,w=10;function S(e,t,n){var r,a;const i=o.computed(()=>m(e));let s,c,l,u=!1;function d(){s&&(clearTimeout(s),s=void 0),c=void 0,l=void 0,u=!1}function p(e){var t,r,o;const[a,s,p]=[l,c,u];if(d(),!(null==n?void 0:n.onMouseUp)||!s||!a)return;if((null==(t=null==n?void 0:n.modifiers)?void 0:t.self)&&e.target!==i.value)return;(null==(r=null==n?void 0:n.modifiers)?void 0:r.prevent)&&e.preventDefault(),(null==(o=null==n?void 0:n.modifiers)?void 0:o.stop)&&e.stopPropagation();const f=e.x-s.x,h=e.y-s.y,m=Math.sqrt(f*f+h*h);n.onMouseUp(e.timeStamp-a,m,p)}function f(e){var r,o,a,p;(null==(r=null==n?void 0:n.modifiers)?void 0:r.self)&&e.target!==i.value||(d(),(null==(o=null==n?void 0:n.modifiers)?void 0:o.prevent)&&e.preventDefault(),(null==(a=null==n?void 0:n.modifiers)?void 0:a.stop)&&e.stopPropagation(),c={x:e.x,y:e.y},l=e.timeStamp,s=setTimeout(()=>{u=!0,t(e)},null!=(p=null==n?void 0:n.delay)?p:C))}function h(e){var t,r,o,a;if((null==(t=null==n?void 0:n.modifiers)?void 0:t.self)&&e.target!==i.value)return;if(!c||!1===(null==n?void 0:n.distanceThreshold))return;(null==(r=null==n?void 0:n.modifiers)?void 0:r.prevent)&&e.preventDefault(),(null==(o=null==n?void 0:n.modifiers)?void 0:o.stop)&&e.stopPropagation();const s=e.x-c.x,l=e.y-c.y,u=Math.sqrt(s*s+l*l);u>=(null!=(a=null==n?void 0:n.distanceThreshold)?a:w)&&d()}const g={capture:null==(r=null==n?void 0:n.modifiers)?void 0:r.capture,once:null==(a=null==n?void 0:n.modifiers)?void 0:a.once},_=[v(i,"pointerdown",f,g),v(i,"pointermove",h,g),v(i,["pointerup","pointerleave"],p,g)],b=()=>_.forEach(e=>e());return b}function T(){const{activeElement:e,body:t}=document;if(!e)return!1;if(e===t)return!1;switch(e.tagName){case"INPUT":case"TEXTAREA":return!0}return e.hasAttribute("contenteditable")}function I({keyCode:e,metaKey:t,ctrlKey:n,altKey:r}){return!(t||n||r)&&(e>=48&&e<=57||(e>=65&&e<=90||e>=97&&e<=122))}function E(e,t={}){const{document:n=p}=t,r=t=>{!T()&&I(t)&&e(t)};n&&v(n,"keydown",r,{passive:!0})}function j(e,t=null){const n=o.getCurrentInstance();let a=()=>{};const i=o.customRef((r,o)=>(a=o,{get(){var o,a;return r(),null!=(a=null==(o=null==n?void 0:n.proxy)?void 0:o.$refs[e])?a:t},set(){}}));return r.tryOnMounted(a),o.onUpdated(a),i}function D(){const e=o.ref(!1),t=o.getCurrentInstance();return t&&o.onMounted(()=>{e.value=!0},t),e}function L(e){const t=D();return o.computed(()=>(t.value,Boolean(e())))}function A(e,t,n={}){const{window:a=d,...i}=n;let s;const c=L(()=>a&&"MutationObserver"in a),l=()=>{s&&(s.disconnect(),s=void 0)},u=o.computed(()=>{const t=r.toValue(e),n=(Array.isArray(t)?t:[t]).map(m).filter(r.notNullish);return new Set(n)}),p=o.watch(()=>u.value,e=>{l(),c.value&&e.size&&(s=new MutationObserver(t),e.forEach(e=>s.observe(e,i)))},{immediate:!0,flush:"post"}),f=()=>null==s?void 0:s.takeRecords(),h=()=>{p(),l()};return r.tryOnScopeDispose(h),{isSupported:c,stop:h,takeRecords:f}}function N(e={}){var t;const{window:n=d,deep:r=!0,triggerOnRemoval:a=!1}=e,i=null!=(t=e.document)?t:null==n?void 0:n.document,s=()=>{var e;let t=null==i?void 0:i.activeElement;if(r)while(null==t?void 0:t.shadowRoot)t=null==(e=null==t?void 0:t.shadowRoot)?void 0:e.activeElement;return t},c=o.ref(),l=()=>{c.value=s()};return n&&(v(n,"blur",e=>{null===e.relatedTarget&&l()},!0),v(n,"focus",l,!0)),a&&A(i,e=>{e.filter(e=>e.removedNodes.length).map(e=>Array.from(e.removedNodes)).flat().forEach(e=>{e===c.value&&l()})},{childList:!0,subtree:!0}),l(),c}function R(e,t={}){const{immediate:n=!0,fpsLimit:a,window:i=d}=t,s=o.ref(!1),c=a?1e3/a:null;let l=0,u=null;function p(t){if(!s.value||!i)return;l||(l=t);const n=t-l;c&&n<c||(l=t,e({delta:n,timestamp:t})),u=i.requestAnimationFrame(p)}function f(){!s.value&&i&&(s.value=!0,l=0,u=i.requestAnimationFrame(p))}function h(){s.value=!1,null!=u&&i&&(i.cancelAnimationFrame(u),u=null)}return n&&f(),r.tryOnScopeDispose(h),{isActive:o.readonly(s),pause:h,resume:f}}function x(e,t,n){let a,i;r.isObject(n)?(a=n,i=r.objectOmit(n,["window","immediate","commitStyles","persist","onReady","onError"])):(a={duration:n},i=n);const{window:s=d,immediate:c=!0,commitStyles:l,persist:u,playbackRate:p=1,onReady:f,onError:h=(e=>{console.error(e)})}=a,g=L(()=>s&&HTMLElement&&"animate"in HTMLElement.prototype),_=o.shallowRef(void 0),b=o.shallowReactive({startTime:null,currentTime:null,timeline:null,playbackRate:p,pending:!1,playState:c?"idle":"paused",replaceState:"active"}),y=o.computed(()=>b.pending),O=o.computed(()=>b.playState),M=o.computed(()=>b.replaceState),k=o.computed({get(){return b.startTime},set(e){b.startTime=e,_.value&&(_.value.startTime=e)}}),C=o.computed({get(){return b.currentTime},set(e){b.currentTime=e,_.value&&(_.value.currentTime=e,P())}}),w=o.computed({get(){return b.timeline},set(e){b.timeline=e,_.value&&(_.value.timeline=e)}}),S=o.computed({get(){return b.playbackRate},set(e){b.playbackRate=e,_.value&&(_.value.playbackRate=e)}}),T=()=>{if(_.value)try{_.value.play(),P()}catch(e){U(),h(e)}else A()},I=()=>{var e;try{null==(e=_.value)||e.pause(),U()}catch(t){h(t)}},E=()=>{var e;_.value||A();try{null==(e=_.value)||e.reverse(),P()}catch(t){U(),h(t)}},j=()=>{var e;try{null==(e=_.value)||e.finish(),U()}catch(t){h(t)}},D=()=>{var e;try{null==(e=_.value)||e.cancel(),U()}catch(t){h(t)}};function A(n){const o=m(e);g.value&&o&&(_.value||(_.value=o.animate(r.toValue(t),i)),u&&_.value.persist(),1!==p&&(_.value.playbackRate=p),n&&!c?_.value.pause():P(),null==f||f(_.value))}o.watch(()=>m(e),e=>{e&&A()}),o.watch(()=>t,t=>{_.value&&A(),!m(e)&&_.value&&(_.value.effect=new KeyframeEffect(m(e),r.toValue(t),i))},{deep:!0}),r.tryOnMounted(()=>A(!0),!1),r.tryOnScopeDispose(D),v(_,["cancel","finish","remove"],U),v(_,"finish",()=>{var e;l&&(null==(e=_.value)||e.commitStyles())});const{resume:N,pause:x}=R(()=>{_.value&&(b.pending=_.value.pending,b.playState=_.value.playState,b.replaceState=_.value.replaceState,b.startTime=_.value.startTime,b.currentTime=_.value.currentTime,b.timeline=_.value.timeline,b.playbackRate=_.value.playbackRate)},{immediate:!1});function P(){g.value&&N()}function U(){g.value&&s&&s.requestAnimationFrame(x)}return{isSupported:g,animate:_,play:T,pause:I,reverse:E,finish:j,cancel:D,pending:y,playState:O,replaceState:M,startTime:k,currentTime:C,timeline:w,playbackRate:S}}function P(e,t){const{interrupt:n=!0,onError:a=r.noop,onFinished:i=r.noop,signal:s}=t||{},c={aborted:"aborted",fulfilled:"fulfilled",pending:"pending",rejected:"rejected"},l=Array.from(Array.from({length:e.length}),()=>({state:c.pending,data:null})),u=o.reactive(l),d=o.ref(-1);if(!e||0===e.length)return i(),{activeIndex:d,result:u};function p(e,t){d.value++,u[d.value].data=t,u[d.value].state=e}return e.reduce((t,r)=>t.then(t=>{var o;if(null==s?void 0:s.aborted)return void p(c.aborted,new Error("aborted"));if((null==(o=u[d.value])?void 0:o.state)===c.rejected&&n)return void i();const a=r(t).then(t=>(p(c.fulfilled,t),d.value===e.length-1&&i(),t));return s?Promise.race([a,U(s)]):a}).catch(e=>(null==s?void 0:s.aborted)?(p(c.aborted,e),e):(p(c.rejected,e),a(),e)),Promise.resolve()),{activeIndex:d,result:u}}function U(e){return new Promise((t,n)=>{const r=new Error("aborted");e.aborted?n(r):e.addEventListener("abort",()=>n(r),{once:!0})})}function V(e,t,n){const{immediate:a=!0,delay:i=0,onError:s=r.noop,onSuccess:c=r.noop,resetOnExecute:l=!0,shallow:u=!0,throwError:d}=null!=n?n:{},p=u?o.shallowRef(t):o.ref(t),f=o.ref(!1),h=o.ref(!1),m=o.shallowRef(void 0);async function v(n=0,...o){l&&(p.value=t),m.value=void 0,f.value=!1,h.value=!0,n>0&&await r.promiseTimeout(n);const a="function"===typeof e?e(...o):e;try{const e=await a;p.value=e,f.value=!0,c(e)}catch(i){if(m.value=i,s(i),d)throw i}finally{h.value=!1}return p.value}a&&v(i);const g={state:p,isReady:f,isLoading:h,error:m,execute:v};function _(){return new Promise((e,t)=>{r.until(h).toBe(!1).then(()=>e(g)).catch(t)})}return{...g,then(e,t){return _().then(e,t)}}}const B={array:e=>JSON.stringify(e),object:e=>JSON.stringify(e),set:e=>JSON.stringify(Array.from(e)),map:e=>JSON.stringify(Object.fromEntries(e)),null:()=>""};function F(e){return e?e instanceof Map?B.map:e instanceof Set?B.set:Array.isArray(e)?B.array:B.object:B.null}function G(e,t){const n=o.ref(""),a=o.ref();function i(){if(r.isClient)return a.value=new Promise((n,o)=>{try{const a=r.toValue(e);if(null==a)n("");else if("string"===typeof a)n(Y(new Blob([a],{type:"text/plain"})));else if(a instanceof Blob)n(Y(a));else if(a instanceof ArrayBuffer)n(window.btoa(String.fromCharCode(...new Uint8Array(a))));else if(a instanceof HTMLCanvasElement)n(a.toDataURL(null==t?void 0:t.type,null==t?void 0:t.quality));else if(a instanceof HTMLImageElement){const e=a.cloneNode(!1);e.crossOrigin="Anonymous",H(e).then(()=>{const r=document.createElement("canvas"),o=r.getContext("2d");r.width=e.width,r.height=e.height,o.drawImage(e,0,0,r.width,r.height),n(r.toDataURL(null==t?void 0:t.type,null==t?void 0:t.quality))}).catch(o)}else{if("object"===typeof a){const e=(null==t?void 0:t.serializer)||F(a),r=e(a);return n(Y(new Blob([r],{type:"application/json"})))}o(new Error("target is unsupported types"))}}catch(a){o(a)}}),a.value.then(e=>n.value=e),a.value}return o.isRef(e)||"function"===typeof e?o.watch(e,i,{immediate:!0}):i(),{base64:n,promise:a,execute:i}}function H(e){return new Promise((t,n)=>{e.complete?t():(e.onload=()=>{t()},e.onerror=n)})}function Y(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=e=>{t(e.target.result)},r.onerror=n,r.readAsDataURL(e)})}function z(e={}){const{navigator:t=f}=e,n=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],r=L(()=>t&&"getBattery"in t&&"function"===typeof t.getBattery),a=o.ref(!1),i=o.ref(0),s=o.ref(0),c=o.ref(1);let l;function u(){a.value=this.charging,i.value=this.chargingTime||0,s.value=this.dischargingTime||0,c.value=this.level}return r.value&&t.getBattery().then(e=>{l=e,u.call(l),v(l,n,u,{passive:!0})}),{isSupported:r,charging:a,chargingTime:i,dischargingTime:s,level:c}}function q(e){let{acceptAllDevices:t=!1}=e||{};const{filters:n,optionalServices:a,navigator:i=f}=e||{},s=L(()=>i&&"bluetooth"in i),c=o.shallowRef(void 0),l=o.shallowRef(null);async function u(){if(s.value){l.value=null,n&&n.length>0&&(t=!1);try{c.value=await(null==i?void 0:i.bluetooth.requestDevice({acceptAllDevices:t,filters:n,optionalServices:a}))}catch(e){l.value=e}}}o.watch(c,()=>{h()});const d=o.ref(),p=o.computed(()=>{var e;return(null==(e=d.value)?void 0:e.connected)||!1});async function h(){if(l.value=null,c.value&&c.value.gatt){c.value.addEventListener("gattserverdisconnected",()=>{});try{d.value=await c.value.gatt.connect()}catch(e){l.value=e}}}return r.tryOnMounted(()=>{var e;c.value&&(null==(e=c.value.gatt)||e.connect())}),r.tryOnScopeDispose(()=>{var e;c.value&&(null==(e=c.value.gatt)||e.disconnect())}),{isSupported:s,isConnected:p,device:c,requestDevice:u,server:d,error:l}}function W(e,t={}){const{window:n=d}=t,a=L(()=>n&&"matchMedia"in n&&"function"===typeof n.matchMedia);let i;const s=o.ref(!1),c=e=>{s.value=e.matches},l=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",c):i.removeListener(c))},u=o.watchEffect(()=>{a.value&&(l(),i=n.matchMedia(r.toValue(e)),"addEventListener"in i?i.addEventListener("change",c):i.addListener(c),s.value=i.matches)});return r.tryOnScopeDispose(()=>{u(),l(),i=void 0}),s}const K={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},$={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},J={xs:0,sm:600,md:960,lg:1264,xl:1904},X={xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560},Q=J,Z={xs:480,sm:576,md:768,lg:992,xl:1200,xxl:1600},ee={xs:0,sm:600,md:1024,lg:1440,xl:1920},te={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560},ne={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},re={sm:576,md:768,lg:992,xl:1200},oe={xs:0,sm:768,md:992,lg:1200,xl:1920};function ae(e,t={}){function n(t,n){let o=r.toValue(e[r.toValue(t)]);return null!=n&&(o=r.increaseWithUnit(o,n)),"number"===typeof o&&(o+="px"),o}const{window:a=d,strategy:i="min-width"}=t;function s(e){return!!a&&a.matchMedia(e).matches}const c=e=>W(()=>`(min-width: ${n(e)})`,t),l=e=>W(()=>`(max-width: ${n(e)})`,t),u=Object.keys(e).reduce((e,t)=>(Object.defineProperty(e,t,{get:()=>"min-width"===i?c(t):l(t),enumerable:!0,configurable:!0}),e),{});function p(){const t=Object.keys(e).map(e=>[e,c(e)]);return o.computed(()=>t.filter(([,e])=>e.value).map(([e])=>e))}return Object.assign(u,{greaterOrEqual:c,smallerOrEqual:l,greater(e){return W(()=>`(min-width: ${n(e,.1)})`,t)},smaller(e){return W(()=>`(max-width: ${n(e,-.1)})`,t)},between(e,r){return W(()=>`(min-width: ${n(e)}) and (max-width: ${n(r,-.1)})`,t)},isGreater(e){return s(`(min-width: ${n(e,.1)})`)},isGreaterOrEqual(e){return s(`(min-width: ${n(e)})`)},isSmaller(e){return s(`(max-width: ${n(e,-.1)})`)},isSmallerOrEqual(e){return s(`(max-width: ${n(e)})`)},isInBetween(e,t){return s(`(min-width: ${n(e)}) and (max-width: ${n(t,-.1)})`)},current:p,active(){const e=p();return o.computed(()=>0===e.value.length?"":e.value.at(-1))}})}function ie(e){const{name:t,window:n=d}=e,a=L(()=>n&&"BroadcastChannel"in n),i=o.ref(!1),s=o.ref(),c=o.ref(),l=o.shallowRef(null),u=e=>{s.value&&s.value.postMessage(e)},p=()=>{s.value&&s.value.close(),i.value=!0};return a.value&&r.tryOnMounted(()=>{l.value=null,s.value=new BroadcastChannel(t),s.value.addEventListener("message",e=>{c.value=e.data},{passive:!0}),s.value.addEventListener("messageerror",e=>{l.value=e},{passive:!0}),s.value.addEventListener("close",()=>{i.value=!0})}),r.tryOnScopeDispose(()=>{p()}),{isSupported:a,channel:s,data:c,post:u,close:p,error:l,isClosed:i}}const se=["hash","host","hostname","href","pathname","port","protocol","search"];function ce(e={}){const{window:t=d}=e,n=Object.fromEntries(se.map(e=>[e,o.ref()]));for(const[s,c]of r.objectEntries(n))o.watch(c,e=>{(null==t?void 0:t.location)&&t.location[s]!==e&&(t.location[s]=e)});const a=e=>{var r;const{state:a,length:i}=(null==t?void 0:t.history)||{},{origin:s}=(null==t?void 0:t.location)||{};for(const o of se)n[o].value=null==(r=null==t?void 0:t.location)?void 0:r[o];return o.reactive({trigger:e,state:a,length:i,origin:s,...n})},i=o.ref(a("load"));return t&&(v(t,"popstate",()=>i.value=a("popstate"),{passive:!0}),v(t,"hashchange",()=>i.value=a("hashchange"),{passive:!0})),i}function le(e,t=((e,t)=>e===t),n){const r=o.ref(e.value);return o.watch(()=>e.value,e=>{t(e,r.value)||(r.value=e)},n),r}function ue(e,t={}){const{controls:n=!1,navigator:a=f}=t,i=L(()=>a&&"permissions"in a),s=o.shallowRef(),c="string"===typeof e?{name:e}:e,l=o.shallowRef(),u=()=>{var e,t;l.value=null!=(t=null==(e=s.value)?void 0:e.state)?t:"prompt"};v(s,"change",u);const d=r.createSingletonPromise(async()=>{if(i.value){if(!s.value)try{s.value=await a.permissions.query(c)}catch(e){s.value=void 0}finally{u()}return n?o.toRaw(s.value):void 0}});return d(),n?{state:l,isSupported:i,query:d}:l}function de(e={}){const{navigator:t=f,read:n=!1,source:a,copiedDuring:i=1500,legacy:s=!1}=e,c=L(()=>t&&"clipboard"in t),l=ue("clipboard-read"),u=ue("clipboard-write"),d=o.computed(()=>c.value||s),p=o.ref(""),h=o.ref(!1),m=r.useTimeoutFn(()=>h.value=!1,i);function g(){c.value&&O(l.value)?t.clipboard.readText().then(e=>{p.value=e}):p.value=y()}async function _(e=r.toValue(a)){d.value&&null!=e&&(c.value&&O(u.value)?await t.clipboard.writeText(e):b(e),p.value=e,h.value=!0,m.start())}function b(e){const t=document.createElement("textarea");t.value=null!=e?e:"",t.style.position="absolute",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}function y(){var e,t,n;return null!=(n=null==(t=null==(e=null==document?void 0:document.getSelection)?void 0:e.call(document))?void 0:t.toString())?n:""}function O(e){return"granted"===e||"prompt"===e}return d.value&&n&&v(["copy","cut"],g),{isSupported:d,text:p,copied:h,copy:_}}function pe(e={}){const{navigator:t=f,read:n=!1,source:a,copiedDuring:i=1500}=e,s=L(()=>t&&"clipboard"in t),c=o.ref([]),l=o.ref(!1),u=r.useTimeoutFn(()=>l.value=!1,i);function d(){s.value&&t.clipboard.read().then(e=>{c.value=e})}async function p(e=r.toValue(a)){s.value&&null!=e&&(await t.clipboard.write(e),c.value=e,l.value=!0,u.start())}return s.value&&n&&v(["copy","cut"],d),{isSupported:s,content:c,copied:l,copy:p}}function fe(e){return JSON.parse(JSON.stringify(e))}function he(e,t={}){const n=o.ref({}),{manual:a,clone:i=fe,deep:s=!0,immediate:c=!0}=t;function l(){n.value=i(r.toValue(e))}return a||!o.isRef(e)&&"function"!==typeof e?l():o.watch(e,l,{...t,deep:s,immediate:c}),{cloned:n,sync:l}}const me="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{},ve="__vueuse_ssr_handlers__",ge=_e();function _e(){return ve in me||(me[ve]=me[ve]||{}),me[ve]}function be(e,t){return ge[e]||t}function ye(e,t){ge[e]=t}function Oe(e){return W("(prefers-color-scheme: dark)",e)}function Me(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"===typeof e?"boolean":"string"===typeof e?"string":"object"===typeof e?"object":Number.isNaN(e)?"any":"number"}const ke={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ce="vueuse-storage";function we(e,t,n,a={}){var i;const{flush:s="pre",deep:c=!0,listenToStorageChanges:l=!0,writeDefaults:u=!0,mergeDefaults:p=!1,shallow:f,window:h=d,eventFilter:m,onError:g=(e=>{console.error(e)}),initOnMounted:_}=a,b=(f?o.shallowRef:o.ref)("function"===typeof t?t():t);if(!n)try{n=be("getDefaultStorage",()=>{var e;return null==(e=d)?void 0:e.localStorage})()}catch(j){g(j)}if(!n)return b;const y=r.toValue(t),O=Me(y),M=null!=(i=a.serializer)?i:ke[O],{pause:k,resume:C}=r.pausableWatch(b,()=>S(b.value),{flush:s,deep:c,eventFilter:m});function w(t,r){if(h){const o={key:e,oldValue:t,newValue:r,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",o):new CustomEvent(Ce,{detail:o}))}}function S(t){try{const r=n.getItem(e);if(null==t)w(r,null),n.removeItem(e);else{const o=M.write(t);r!==o&&(n.setItem(e,o),w(r,o))}}catch(j){g(j)}}function T(t){const r=t?t.newValue:n.getItem(e);if(null==r)return u&&null!=y&&n.setItem(e,M.write(y)),y;if(!t&&p){const e=M.read(r);return"function"===typeof p?p(e,y):"object"!==O||Array.isArray(e)?e:{...y,...e}}return"string"!==typeof r?r:M.read(r)}function I(t){if(!t||t.storageArea===n)if(t&&null==t.key)b.value=y;else if(!t||t.key===e){k();try{(null==t?void 0:t.newValue)!==M.write(b.value)&&(b.value=T(t))}catch(j){g(j)}finally{t?o.nextTick(C):C()}}}function E(e){I(e.detail)}return h&&l&&r.tryOnMounted(()=>{n instanceof Storage?v(h,"storage",I):v(h,Ce,E),_&&I()}),_||I(),b}const Se="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Te(e={}){const{selector:t="html",attribute:n="class",initialValue:a="auto",window:i=d,storage:s,storageKey:c="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:u,emitAuto:p,disableTransition:f=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},v=Oe({window:i}),g=o.computed(()=>v.value?"dark":"light"),_=u||(null==c?r.toRef(a):we(c,a,s,{window:i,listenToStorageChanges:l})),b=o.computed(()=>"auto"===_.value?g.value:_.value),y=be("updateHTMLAttrs",(e,t,n)=>{const r="string"===typeof e?null==i?void 0:i.document.querySelector(e):m(e);if(!r)return;const o=new Set,a=new Set;let s,c=null;if("class"===t){const e=n.split(/\s/g);Object.values(h).flatMap(e=>(e||"").split(/\s/g)).filter(Boolean).forEach(t=>{e.includes(t)?o.add(t):a.add(t)})}else c={key:t,value:n};if(0!==o.size||0!==a.size||null!==c){f&&(s=i.document.createElement("style"),s.appendChild(document.createTextNode(Se)),i.document.head.appendChild(s));for(const e of o)r.classList.add(e);for(const e of a)r.classList.remove(e);c&&r.setAttribute(c.key,c.value),f&&(i.getComputedStyle(s).opacity,document.head.removeChild(s))}});function O(e){var r;y(t,n,null!=(r=h[e])?r:e)}function M(t){e.onChanged?e.onChanged(t,O):O(t)}o.watch(b,M,{flush:"post",immediate:!0}),r.tryOnMounted(()=>M(b.value));const k=o.computed({get(){return p?_.value:b.value},set(e){_.value=e}});return Object.assign(k,{store:_,system:g,state:b})}function Ie(e=o.ref(!1)){const t=r.createEventHook(),n=r.createEventHook(),a=r.createEventHook();let i=r.noop;const s=t=>(a.trigger(t),e.value=!0,new Promise(e=>{i=e})),c=n=>{e.value=!1,t.trigger(n),i({data:n,isCanceled:!1})},l=t=>{e.value=!1,n.trigger(t),i({data:t,isCanceled:!0})};return{isRevealed:o.computed(()=>e.value),reveal:s,confirm:c,cancel:l,onReveal:a.on,onConfirm:t.on,onCancel:n.on}}function Ee(e,t,n={}){const{window:a=d,initialValue:i,observe:s=!1}=n,c=o.ref(i),l=o.computed(()=>{var e;return m(t)||(null==(e=null==a?void 0:a.document)?void 0:e.documentElement)});function u(){var t;const n=r.toValue(e),o=r.toValue(l);if(o&&a&&n){const e=null==(t=a.getComputedStyle(o).getPropertyValue(n))?void 0:t.trim();c.value=e||i}}return s&&A(l,u,{attributeFilter:["style","class"],window:a}),o.watch([l,()=>r.toValue(e)],(e,t)=>{t[0]&&t[1]&&t[0].style.removeProperty(t[1]),u()},{immediate:!0}),o.watch(c,t=>{var n;const o=r.toValue(e);(null==(n=l.value)?void 0:n.style)&&o&&(null==t?l.value.style.removeProperty(o):l.value.style.setProperty(o,t))}),c}function je(e){const t=o.getCurrentInstance(),n=r.computedWithControl(()=>null,()=>e?m(e):t.proxy.$el);return o.onUpdated(n.trigger),o.onMounted(n.trigger),n}function De(e,t){const n=o.shallowRef(d()),a=r.toRef(e),i=o.computed({get(){var e;const r=a.value;let o=(null==t?void 0:t.getIndexOf)?t.getIndexOf(n.value,r):r.indexOf(n.value);return o<0&&(o=null!=(e=null==t?void 0:t.fallbackIndex)?e:0),o},set(e){s(e)}});function s(e){const t=a.value,r=t.length,o=(e%r+r)%r,i=t[o];return n.value=i,i}function c(e=1){return s(i.value+e)}function l(e=1){return c(e)}function u(e=1){return c(-e)}function d(){var n,o;return null!=(o=r.toValue(null!=(n=null==t?void 0:t.initialValue)?n:r.toValue(e)[0]))?o:void 0}return o.watch(a,()=>s(i.value)),{state:n,index:i,next:l,prev:u,go:s}}function Le(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=Te({...e,onChanged:(t,n)=>{var r;e.onChanged?null==(r=e.onChanged)||r.call(e,"dark"===t,n,t):n(t)},modes:{dark:t,light:n}}),a=o.computed(()=>r.system.value),i=o.computed({get(){return"dark"===r.value},set(e){const t=e?"dark":"light";a.value===t?r.value="auto":r.value=t}});return i}function Ae(e){return e}function Ne(e,t){return e.value=t}function Re(e){return e?"function"===typeof e?e:fe:Ae}function xe(e){return e?"function"===typeof e?e:fe:Ae}function Pe(e,t={}){const{clone:n=!1,dump:a=Re(n),parse:i=xe(n),setSource:s=Ne}=t;function c(){return o.markRaw({snapshot:a(e.value),timestamp:r.timestamp()})}const l=o.ref(c()),u=o.ref([]),d=o.ref([]),p=t=>{s(e,i(t.snapshot)),l.value=t},f=()=>{u.value.unshift(l.value),l.value=c(),t.capacity&&u.value.length>t.capacity&&u.value.splice(t.capacity,Number.POSITIVE_INFINITY),d.value.length&&d.value.splice(0,d.value.length)},h=()=>{u.value.splice(0,u.value.length),d.value.splice(0,d.value.length)},m=()=>{const e=u.value.shift();e&&(d.value.unshift(l.value),p(e))},v=()=>{const e=d.value.shift();e&&(u.value.unshift(l.value),p(e))},g=()=>{p(l.value)},_=o.computed(()=>[l.value,...u.value]),b=o.computed(()=>u.value.length>0),y=o.computed(()=>d.value.length>0);return{source:e,undoStack:u,redoStack:d,last:l,history:_,canUndo:b,canRedo:y,clear:h,commit:f,reset:g,undo:m,redo:v}}function Ue(e,t={}){const{deep:n=!1,flush:o="pre",eventFilter:a}=t,{eventFilter:i,pause:s,resume:c,isActive:l}=r.pausableFilter(a),{ignoreUpdates:u,ignorePrevAsyncUpdates:d,stop:p}=r.watchIgnorable(e,g,{deep:n,flush:o,eventFilter:i});function f(e,t){d(),u(()=>{e.value=t})}const h=Pe(e,{...t,clone:t.clone||n,setSource:f}),{clear:m,commit:v}=h;function g(){d(),v()}function _(e){c(),e&&g()}function b(e){let t=!1;const n=()=>t=!0;u(()=>{e(n)}),t||g()}function y(){p(),m()}return{...h,isTracking:l,pause:s,resume:_,commit:g,batch:b,dispose:y}}function Ve(e,t={}){const n=t.debounce?r.debounceFilter(t.debounce):void 0,o=Ue(e,{...t,eventFilter:n});return{...o}}function Be(e={}){const{window:t=d,eventFilter:n=r.bypassFilter}=e,a=o.ref({x:null,y:null,z:null}),i=o.ref({alpha:null,beta:null,gamma:null}),s=o.ref(0),c=o.ref({x:null,y:null,z:null});if(t){const e=r.createFilterWrapper(n,e=>{a.value=e.acceleration,c.value=e.accelerationIncludingGravity,i.value=e.rotationRate,s.value=e.interval});v(t,"devicemotion",e)}return{acceleration:a,accelerationIncludingGravity:c,rotationRate:i,interval:s}}function Fe(e={}){const{window:t=d}=e,n=L(()=>t&&"DeviceOrientationEvent"in t),r=o.ref(!1),a=o.ref(null),i=o.ref(null),s=o.ref(null);return t&&n.value&&v(t,"deviceorientation",e=>{r.value=e.absolute,a.value=e.alpha,i.value=e.beta,s.value=e.gamma}),{isSupported:n,isAbsolute:r,alpha:a,beta:i,gamma:s}}function Ge(e={}){const{window:t=d}=e,n=o.ref(1);if(t){let e,o=function(){n.value=t.devicePixelRatio,a(),e=t.matchMedia(`(resolution: ${n.value}dppx)`),e.addEventListener("change",o,{once:!0})},a=function(){null==e||e.removeEventListener("change",o)};o(),r.tryOnScopeDispose(a)}return{pixelRatio:n}}function He(e={}){const{navigator:t=f,requestPermissions:n=!1,constraints:r={audio:!0,video:!0},onUpdated:a}=e,i=o.ref([]),s=o.computed(()=>i.value.filter(e=>"videoinput"===e.kind)),c=o.computed(()=>i.value.filter(e=>"audioinput"===e.kind)),l=o.computed(()=>i.value.filter(e=>"audiooutput"===e.kind)),u=L(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),d=o.ref(!1);let p;async function h(){u.value&&(i.value=await t.mediaDevices.enumerateDevices(),null==a||a(i.value),p&&(p.getTracks().forEach(e=>e.stop()),p=null))}async function m(){if(!u.value)return!1;if(d.value)return!0;const{state:e,query:n}=ue("camera",{controls:!0});if(await n(),"granted"!==e.value){let e=!0;try{p=await t.mediaDevices.getUserMedia(r)}catch(o){p=null,e=!1}h(),d.value=e}else d.value=!0;return d.value}return u.value&&(n&&m(),v(t.mediaDevices,"devicechange",h),h()),{devices:i,ensurePermissions:m,permissionGranted:d,videoInputs:s,audioInputs:c,audioOutputs:l,isSupported:u}}function Ye(e={}){var t;const n=o.ref(null!=(t=e.enabled)&&t),r=e.video,a=e.audio,{navigator:i=f}=e,s=L(()=>{var e;return null==(e=null==i?void 0:i.mediaDevices)?void 0:e.getDisplayMedia}),c={audio:a,video:r},l=o.shallowRef();async function u(){var e;if(s.value&&!l.value)return l.value=await i.mediaDevices.getDisplayMedia(c),null==(e=l.value)||e.getTracks().forEach(e=>e.addEventListener("ended",p)),l.value}async function d(){var e;null==(e=l.value)||e.getTracks().forEach(e=>e.stop()),l.value=void 0}function p(){d(),n.value=!1}async function h(){return await u(),l.value&&(n.value=!0),l.value}return o.watch(n,e=>{e?u():d()},{immediate:!0}),{isSupported:s,stream:l,start:h,stop:p,enabled:n}}function ze(e={}){const{document:t=p}=e;if(!t)return o.ref("visible");const n=o.ref(t.visibilityState);return v(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function qe(e,t={}){var n,a;const{pointerTypes:i,preventDefault:s,stopPropagation:c,exact:l,onMove:u,onEnd:p,onStart:f,initialValue:h,axis:m="both",draggingElement:g=d,containerElement:_,handle:b=e,buttons:y=[0]}=t,O=o.ref(null!=(n=r.toValue(h))?n:{x:0,y:0}),M=o.ref(),k=e=>!i||i.includes(e.pointerType),C=e=>{r.toValue(s)&&e.preventDefault(),r.toValue(c)&&e.stopPropagation()},w=n=>{var o;if(!r.toValue(y).includes(n.button))return;if(r.toValue(t.disabled)||!k(n))return;if(r.toValue(l)&&n.target!==r.toValue(e))return;const a=r.toValue(_),i=null==(o=null==a?void 0:a.getBoundingClientRect)?void 0:o.call(a),s=r.toValue(e).getBoundingClientRect(),c={x:n.clientX-(a?s.left-i.left+a.scrollLeft:s.left),y:n.clientY-(a?s.top-i.top+a.scrollTop:s.top)};!1!==(null==f?void 0:f(c,n))&&(M.value=c,C(n))},S=n=>{if(r.toValue(t.disabled)||!k(n))return;if(!M.value)return;const o=r.toValue(_),a=r.toValue(e).getBoundingClientRect();let{x:i,y:s}=O.value;"x"!==m&&"both"!==m||(i=n.clientX-M.value.x,o&&(i=Math.min(Math.max(0,i),o.scrollWidth-a.width))),"y"!==m&&"both"!==m||(s=n.clientY-M.value.y,o&&(s=Math.min(Math.max(0,s),o.scrollHeight-a.height))),O.value={x:i,y:s},null==u||u(O.value,n),C(n)},T=e=>{!r.toValue(t.disabled)&&k(e)&&M.value&&(M.value=void 0,null==p||p(O.value,e),C(e))};if(r.isClient){const e={capture:null==(a=t.capture)||a};v(b,"pointerdown",w,e),v(g,"pointermove",S,e),v(g,"pointerup",T,e)}return{...r.toRefs(O),position:O,isDragging:o.computed(()=>!!M.value),style:o.computed(()=>`left:${O.value.x}px;top:${O.value.y}px;`)}}function We(e,t={}){var n,a;const i=o.ref(!1),s=o.shallowRef(null);let c=0,l=!0;if(r.isClient){const r="function"===typeof t?{onDrop:t}:t,u=null==(n=r.multiple)||n,d=null!=(a=r.preventDefaultForUnhandled)&&a,p=e=>{var t,n;const r=Array.from(null!=(n=null==(t=e.dataTransfer)?void 0:t.files)?n:[]);return 0===r.length?null:u?r:[r[0]]},f=e=>{if(r.dataTypes){const t=o.unref(r.dataTypes);return"function"===typeof t?t(e):!t||t.some(t=>e.includes(t))}return!0},h=e=>{var t,n;const r=Array.from(null!=(n=null==(t=e.dataTransfer)?void 0:t.items)?n:[]),o=r.map(e=>e.type),a=f(o),i=u||r.length<=1;return a&&i},m=(e,t)=>{var n,o,a,u;if(l=h(e),!l)return d&&e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="copy");const f=p(e);switch(t){case"enter":c+=1,i.value=!0,null==(n=r.onEnter)||n.call(r,null,e);break;case"over":null==(o=r.onOver)||o.call(r,null,e);break;case"leave":c-=1,0===c&&(i.value=!1),null==(a=r.onLeave)||a.call(r,null,e);break;case"drop":c=0,i.value=!1,l&&(s.value=f,null==(u=r.onDrop)||u.call(r,f,e));break}};v(e,"dragenter",e=>m(e,"enter")),v(e,"dragover",e=>m(e,"over")),v(e,"dragleave",e=>m(e,"leave")),v(e,"drop",e=>m(e,"drop"))}return{files:s,isOverDropZone:i}}function Ke(e,t,n={}){const{window:a=d,...i}=n;let s;const c=L(()=>a&&"ResizeObserver"in a),l=()=>{s&&(s.disconnect(),s=void 0)},u=o.computed(()=>{const t=r.toValue(e);return Array.isArray(t)?t.map(e=>m(e)):[m(t)]}),p=o.watch(u,e=>{if(l(),c.value&&a){s=new ResizeObserver(t);for(const t of e)t&&s.observe(t,i)}},{immediate:!0,flush:"post"}),f=()=>{l(),p()};return r.tryOnScopeDispose(f),{isSupported:c,stop:f}}function $e(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:i=!0,immediate:s=!0,updateTiming:c="sync"}=t,l=o.ref(0),u=o.ref(0),d=o.ref(0),p=o.ref(0),f=o.ref(0),h=o.ref(0),g=o.ref(0),_=o.ref(0);function b(){const t=m(e);if(!t)return void(n&&(l.value=0,u.value=0,d.value=0,p.value=0,f.value=0,h.value=0,g.value=0,_.value=0));const r=t.getBoundingClientRect();l.value=r.height,u.value=r.bottom,d.value=r.left,p.value=r.right,f.value=r.top,h.value=r.width,g.value=r.x,_.value=r.y}function y(){"sync"===c?b():"next-frame"===c&&requestAnimationFrame(()=>b())}return Ke(e,y),o.watch(()=>m(e),e=>!e&&y()),A(e,y,{attributeFilter:["style","class"]}),i&&v("scroll",y,{capture:!0,passive:!0}),a&&v("resize",y,{passive:!0}),r.tryOnMounted(()=>{s&&y()}),{height:l,bottom:u,left:d,right:p,top:f,width:h,x:g,y:_,update:y}}function Je(e){const{x:t,y:n,document:a=p,multiple:i,interval:s="requestAnimationFrame",immediate:c=!0}=e,l=L(()=>r.toValue(i)?a&&"elementsFromPoint"in a:a&&"elementFromPoint"in a),u=o.ref(null),d=()=>{var e,o;u.value=r.toValue(i)?null!=(e=null==a?void 0:a.elementsFromPoint(r.toValue(t),r.toValue(n)))?e:[]:null!=(o=null==a?void 0:a.elementFromPoint(r.toValue(t),r.toValue(n)))?o:null},f="requestAnimationFrame"===s?R(d,{immediate:c}):r.useIntervalFn(d,s,{immediate:c});return{isSupported:l,element:u,...f}}function Xe(e,t={}){const{delayEnter:n=0,delayLeave:r=0,window:a=d}=t,i=o.ref(!1);let s;const c=e=>{const t=e?n:r;s&&(clearTimeout(s),s=void 0),t?s=setTimeout(()=>i.value=e,t):i.value=e};return a?(v(e,"mouseenter",()=>c(!0),{passive:!0}),v(e,"mouseleave",()=>c(!1),{passive:!0}),i):i}function Qe(e,t={width:0,height:0},n={}){const{window:a=d,box:i="content-box"}=n,s=o.computed(()=>{var t,n;return null==(n=null==(t=m(e))?void 0:t.namespaceURI)?void 0:n.includes("svg")}),c=o.ref(t.width),l=o.ref(t.height),{stop:u}=Ke(e,([t])=>{const n="border-box"===i?t.borderBoxSize:"content-box"===i?t.contentBoxSize:t.devicePixelContentBoxSize;if(a&&s.value){const t=m(e);if(t){const e=t.getBoundingClientRect();c.value=e.width,l.value=e.height}}else if(n){const e=Array.isArray(n)?n:[n];c.value=e.reduce((e,{inlineSize:t})=>e+t,0),l.value=e.reduce((e,{blockSize:t})=>e+t,0)}else c.value=t.contentRect.width,l.value=t.contentRect.height},n);r.tryOnMounted(()=>{const n=m(e);n&&(c.value="offsetWidth"in n?n.offsetWidth:t.width,l.value="offsetHeight"in n?n.offsetHeight:t.height)});const p=o.watch(()=>m(e),e=>{c.value=e?t.width:0,l.value=e?t.height:0});function f(){u(),p()}return{width:c,height:l,stop:f}}function Ze(e,t,n={}){const{root:a,rootMargin:i="0px",threshold:s=0,window:c=d,immediate:l=!0}=n,u=L(()=>c&&"IntersectionObserver"in c),p=o.computed(()=>{const t=r.toValue(e);return(Array.isArray(t)?t:[t]).map(m).filter(r.notNullish)});let f=r.noop;const h=o.ref(l),v=u.value?o.watch(()=>[p.value,m(a),h.value],([e,n])=>{if(f(),!h.value)return;if(!e.length)return;const o=new IntersectionObserver(t,{root:m(n),rootMargin:i,threshold:s});e.forEach(e=>e&&o.observe(e)),f=()=>{o.disconnect(),f=r.noop}},{immediate:l,flush:"post"}):r.noop,g=()=>{f(),v(),h.value=!1};return r.tryOnScopeDispose(g),{isSupported:u,isActive:h,pause(){f(),h.value=!1},resume(){h.value=!0},stop:g}}function et(e,t={}){const{window:n=d,scrollTarget:r,threshold:a=0}=t,i=o.ref(!1);return Ze(e,e=>{let t=i.value,n=0;for(const r of e)r.time>=n&&(n=r.time,t=r.isIntersecting);i.value=t},{root:r,window:n,threshold:a}),i}const tt=new Map;function nt(e){const t=o.getCurrentScope();function n(n){var r;const o=tt.get(e)||new Set;o.add(n),tt.set(e,o);const i=()=>a(n);return null==(r=null==t?void 0:t.cleanups)||r.push(i),i}function r(e){function t(...n){a(t),e(...n)}return n(t)}function a(t){const n=tt.get(e);n&&(n.delete(t),n.size||i())}function i(){tt.delete(e)}function s(t,n){var r;null==(r=tt.get(e))||r.forEach(e=>e(t,n))}return{on:n,once:r,off:a,emit:s,reset:i}}function rt(e){return!0===e?{}:e}function ot(e,t=[],n={}){const a=o.ref(null),i=o.ref(null),s=o.ref("CONNECTING"),c=o.ref(null),l=o.shallowRef(null),u=r.toRef(e),d=o.shallowRef(null);let p=!1,f=0;const{withCredentials:h=!1,immediate:m=!0}=n,g=()=>{r.isClient&&c.value&&(c.value.close(),c.value=null,s.value="CLOSED",p=!0)},_=()=>{if(p||"undefined"===typeof u.value)return;const e=new EventSource(u.value,{withCredentials:h});s.value="CONNECTING",c.value=e,e.onopen=()=>{s.value="OPEN",l.value=null},e.onerror=t=>{if(s.value="CLOSED",l.value=t,2===e.readyState&&!p&&n.autoReconnect){e.close();const{retries:t=-1,delay:r=1e3,onFailed:o}=rt(n.autoReconnect);f+=1,"number"===typeof t&&(t<0||f<t)||"function"===typeof t&&t()?setTimeout(_,r):null==o||o()}},e.onmessage=e=>{a.value=null,i.value=e.data,d.value=e.lastEventId};for(const n of t)v(e,n,e=>{a.value=n,i.value=e.data||null})},b=()=>{r.isClient&&(g(),p=!1,f=0,_())};return m&&o.watch(u,b,{immediate:!0}),r.tryOnScopeDispose(g),{eventSource:c,event:a,data:i,status:s,error:l,open:b,close:g,lastEventId:d}}function at(e={}){const{initialValue:t=""}=e,n=L(()=>"undefined"!==typeof window&&"EyeDropper"in window),r=o.ref(t);async function a(e){if(!n.value)return;const t=new window.EyeDropper,o=await t.open(e);return r.value=o.sRGBHex,o}return{isSupported:n,sRGBHex:r,open:a}}function it(e=null,t={}){const{baseUrl:n="",rel:a="icon",document:i=p}=t,s=r.toRef(e),c=e=>{const t=null==i?void 0:i.head.querySelectorAll(`link[rel*="${a}"]`);if(t&&0!==t.length)null==t||t.forEach(t=>t.href=`${n}${e}`);else{const t=null==i?void 0:i.createElement("link");t&&(t.rel=a,t.href=`${n}${e}`,t.type="image/"+e.split(".").pop(),null==i||i.head.append(t))}};return o.watch(s,(e,t)=>{"string"===typeof e&&e!==t&&c(e)},{immediate:!0}),s}const st={json:"application/json",text:"text/plain"};function ct(e){return e&&r.containsProp(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}const lt=/^(?:[a-z][a-z\d+\-.]*:)?\/\//i;function ut(e){return lt.test(e)}function dt(e){return"undefined"!==typeof Headers&&e instanceof Headers?Object.fromEntries(e.entries()):e}function pt(e,...t){return"overwrite"===e?async e=>{const n=t[t.length-1];return n?{...e,...await n(e)}:e}:async e=>{for(const n of t)n&&(e={...e,...await n(e)});return e}}function ft(e={}){const t=e.combination||"chain",n=e.options||{},a=e.fetchOptions||{};function i(i,...s){const c=o.computed(()=>{const t=r.toValue(e.baseUrl),n=r.toValue(i);return t&&!ut(n)?mt(t,n):n});let l=n,u=a;return s.length>0&&(ct(s[0])?l={...l,...s[0],beforeFetch:pt(t,n.beforeFetch,s[0].beforeFetch),afterFetch:pt(t,n.afterFetch,s[0].afterFetch),onFetchError:pt(t,n.onFetchError,s[0].onFetchError)}:u={...u,...s[0],headers:{...dt(u.headers)||{},...dt(s[0].headers)||{}}}),s.length>1&&ct(s[1])&&(l={...l,...s[1],beforeFetch:pt(t,n.beforeFetch,s[1].beforeFetch),afterFetch:pt(t,n.afterFetch,s[1].afterFetch),onFetchError:pt(t,n.onFetchError,s[1].onFetchError)}),ht(c,u,l)}return i}function ht(e,...t){var n;const a="function"===typeof AbortController;let i={},s={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const c={method:"GET",type:"text",payload:void 0};t.length>0&&(ct(t[0])?s={...s,...t[0]}:i=t[0]),t.length>1&&ct(t[1])&&(s={...s,...t[1]});const{fetch:l=(null==(n=d)?void 0:n.fetch),initialData:u,timeout:p}=s,f=r.createEventHook(),h=r.createEventHook(),m=r.createEventHook(),v=o.ref(!1),g=o.ref(!1),_=o.ref(!1),b=o.ref(null),y=o.shallowRef(null),O=o.shallowRef(null),M=o.shallowRef(u||null),k=o.computed(()=>a&&g.value);let C,w;const S=()=>{a&&(null==C||C.abort(),C=new AbortController,C.signal.onabort=()=>_.value=!0,i={...i,signal:C.signal})},T=e=>{g.value=e,v.value=!e};p&&(w=r.useTimeoutFn(S,p,{immediate:!1}));let I=0;const E=async(t=!1)=>{var n,o;S(),T(!0),O.value=null,b.value=null,_.value=!1,I+=1;const a=I,d={method:c.method,headers:{}};if(c.payload){const e=dt(d.headers),t=r.toValue(c.payload),o=Object.getPrototypeOf(t);c.payloadType||!t||o!==Object.prototype&&!Array.isArray(o)||t instanceof FormData||(c.payloadType="json"),c.payloadType&&(e["Content-Type"]=null!=(n=st[c.payloadType])?n:c.payloadType),d.body="json"===c.payloadType?JSON.stringify(t):t}let p=!1;const v={url:r.toValue(e),options:{...d,...i},cancel:()=>{p=!0}};if(s.beforeFetch&&Object.assign(v,await s.beforeFetch(v)),p||!l)return T(!1),Promise.resolve(null);let g=null;return w&&w.start(),l(v.url,{...d,...v.options,headers:{...dt(d.headers),...dt(null==(o=v.options)?void 0:o.headers)}}).then(async e=>{if(y.value=e,b.value=e.status,g=await e.clone()[c.type](),!e.ok)throw M.value=u||null,new Error(e.statusText);return s.afterFetch&&({data:g}=await s.afterFetch({data:g,response:e})),M.value=g,f.trigger(e),e}).catch(async e=>{let n=e.message||e.name;if(s.onFetchError&&({error:n,data:g}=await s.onFetchError({data:g,error:e,response:y.value})),O.value=n,s.updateDataOnError&&(M.value=g),h.trigger(e),t)throw e;return null}).finally(()=>{a===I&&T(!1),w&&w.stop(),m.trigger(null)})},j=r.toRef(s.refetch);o.watch([j,r.toRef(e)],([e])=>e&&E(),{deep:!0});const D={isFinished:o.readonly(v),isFetching:o.readonly(g),statusCode:b,response:y,error:O,data:M,canAbort:k,aborted:_,abort:S,execute:E,onFetchResponse:f.on,onFetchError:h.on,onFetchFinally:m.on,get:L("GET"),put:L("PUT"),post:L("POST"),delete:L("DELETE"),patch:L("PATCH"),head:L("HEAD"),options:L("OPTIONS"),json:N("json"),text:N("text"),blob:N("blob"),arrayBuffer:N("arrayBuffer"),formData:N("formData")};function L(e){return(t,n)=>{if(!g.value)return c.method=e,c.payload=t,c.payloadType=n,o.isRef(c.payload)&&o.watch([j,r.toRef(c.payload)],([e])=>e&&E(),{deep:!0}),{...D,then(e,t){return A().then(e,t)}}}}function A(){return new Promise((e,t)=>{r.until(v).toBe(!0).then(()=>e(D)).catch(t)})}function N(e){return()=>{if(!g.value)return c.type=e,{...D,then(e,t){return A().then(e,t)}}}}return s.immediate&&Promise.resolve().then(()=>E()),{...D,then(e,t){return A().then(e,t)}}}function mt(e,t){return e.endsWith("/")||t.startsWith("/")?e.endsWith("/")&&t.startsWith("/")?`${e.slice(0,-1)}${t}`:`${e}${t}`:`${e}/${t}`}const vt={multiple:!0,accept:"*",reset:!1,directory:!1};function gt(e={}){const{document:t=p}=e,n=o.ref(null),{on:a,trigger:i}=r.createEventHook(),{on:s,trigger:c}=r.createEventHook();let l;t&&(l=t.createElement("input"),l.type="file",l.onchange=e=>{const t=e.target;n.value=t.files,i(n.value)},l.oncancel=()=>{c()});const u=()=>{n.value=null,l&&l.value&&(l.value="",i(null))},d=t=>{if(!l)return;const n={...vt,...e,...t};l.multiple=n.multiple,l.accept=n.accept,l.webkitdirectory=n.directory,r.hasOwn(n,"capture")&&(l.capture=n.capture),n.reset&&u(),l.click()};return{files:o.readonly(n),open:d,reset:u,onCancel:s,onChange:a}}function _t(e={}){const{window:t=d,dataType:n="Text"}=e,a=t,i=L(()=>a&&"showSaveFilePicker"in a&&"showOpenFilePicker"in a),s=o.ref(),c=o.ref(),l=o.ref(),u=o.computed(()=>{var e,t;return null!=(t=null==(e=l.value)?void 0:e.name)?t:""}),p=o.computed(()=>{var e,t;return null!=(t=null==(e=l.value)?void 0:e.type)?t:""}),f=o.computed(()=>{var e,t;return null!=(t=null==(e=l.value)?void 0:e.size)?t:0}),h=o.computed(()=>{var e,t;return null!=(t=null==(e=l.value)?void 0:e.lastModified)?t:0});async function m(t={}){if(!i.value)return;const[n]=await a.showOpenFilePicker({...r.toValue(e),...t});s.value=n,await y()}async function v(t={}){i.value&&(s.value=await a.showSaveFilePicker({...e,...t}),c.value=void 0,await y())}async function g(e={}){if(i.value){if(!s.value)return _(e);if(c.value){const e=await s.value.createWritable();await e.write(c.value),await e.close()}await b()}}async function _(t={}){if(i.value){if(s.value=await a.showSaveFilePicker({...e,...t}),c.value){const e=await s.value.createWritable();await e.write(c.value),await e.close()}await b()}}async function b(){var e;l.value=await(null==(e=s.value)?void 0:e.getFile())}async function y(){var e,t;await b();const o=r.toValue(n);"Text"===o?c.value=await(null==(e=l.value)?void 0:e.text()):"ArrayBuffer"===o?c.value=await(null==(t=l.value)?void 0:t.arrayBuffer()):"Blob"===o&&(c.value=l.value)}return o.watch(()=>r.toValue(n),y),{isSupported:i,data:c,file:l,fileName:u,fileMIME:p,fileSize:f,fileLastModified:h,open:m,create:v,save:g,saveAs:_,updateData:y}}function bt(e,t={}){const{initialValue:n=!1,focusVisible:r=!1,preventScroll:a=!1}=t,i=o.ref(!1),s=o.computed(()=>m(e));v(s,"focus",e=>{var t,n;r&&!(null==(n=(t=e.target).matches)?void 0:n.call(t,":focus-visible"))||(i.value=!0)}),v(s,"blur",()=>i.value=!1);const c=o.computed({get:()=>i.value,set(e){var t,n;!e&&i.value?null==(t=s.value)||t.blur():e&&!i.value&&(null==(n=s.value)||n.focus({preventScroll:a}))}});return o.watch(s,()=>{c.value=n},{immediate:!0,flush:"post"}),{focused:c}}const yt="focusin",Ot="focusout";function Mt(e,t={}){const{window:n=d}=t,r=o.computed(()=>m(e)),a=o.ref(!1),i=o.computed(()=>a.value),s=N(t);return n&&s.value?(v(r,yt,()=>a.value=!0),v(r,Ot,()=>a.value=!1),{focused:i}):{focused:i}}function kt(e){var t;const n=o.ref(0);if("undefined"===typeof performance)return n;const r=null!=(t=null==e?void 0:e.every)?t:10;let a=performance.now(),i=0;return R(()=>{if(i+=1,i>=r){const e=performance.now(),t=e-a;n.value=Math.round(1e3/(t/i)),a=e,i=0}}),n}const Ct=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function wt(e,t={}){const{document:n=p,autoExit:a=!1}=t,i=o.computed(()=>{var t;return null!=(t=m(e))?t:null==n?void 0:n.querySelector("html")}),s=o.ref(!1),c=o.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(e=>n&&e in n||i.value&&e in i.value)),l=o.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(e=>n&&e in n||i.value&&e in i.value)),u=o.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(e=>n&&e in n||i.value&&e in i.value)),d=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(e=>n&&e in n),f=L(()=>i.value&&n&&void 0!==c.value&&void 0!==l.value&&void 0!==u.value),h=()=>!!d&&(null==n?void 0:n[d])===i.value,g=()=>{if(u.value){if(n&&null!=n[u.value])return n[u.value];{const e=i.value;if(null!=(null==e?void 0:e[u.value]))return Boolean(e[u.value])}}return!1};async function _(){if(f.value&&s.value){if(l.value)if(null!=(null==n?void 0:n[l.value]))await n[l.value]();else{const e=i.value;null!=(null==e?void 0:e[l.value])&&await e[l.value]()}s.value=!1}}async function b(){if(!f.value||s.value)return;g()&&await _();const e=i.value;c.value&&null!=(null==e?void 0:e[c.value])&&(await e[c.value](),s.value=!0)}async function y(){await(s.value?_():b())}const O=()=>{const e=g();(!e||e&&h())&&(s.value=e)};return v(n,Ct,O,!1),v(()=>m(i),Ct,O,!1),a&&r.tryOnScopeDispose(_),{isSupported:f,isFullscreen:s,enter:b,exit:_,toggle:y}}function St(e){return o.computed(()=>e.value?{buttons:{a:e.value.buttons[0],b:e.value.buttons[1],x:e.value.buttons[2],y:e.value.buttons[3]},bumper:{left:e.value.buttons[4],right:e.value.buttons[5]},triggers:{left:e.value.buttons[6],right:e.value.buttons[7]},stick:{left:{horizontal:e.value.axes[0],vertical:e.value.axes[1],button:e.value.buttons[10]},right:{horizontal:e.value.axes[2],vertical:e.value.axes[3],button:e.value.buttons[11]}},dpad:{up:e.value.buttons[12],down:e.value.buttons[13],left:e.value.buttons[14],right:e.value.buttons[15]},back:e.value.buttons[8],start:e.value.buttons[9]}:null)}function Tt(e={}){const{navigator:t=f}=e,n=L(()=>t&&"getGamepads"in t),a=o.ref([]),i=r.createEventHook(),s=r.createEventHook(),c=e=>{const t=[],n="vibrationActuator"in e?e.vibrationActuator:null;return n&&t.push(n),e.hapticActuators&&t.push(...e.hapticActuators),{id:e.id,index:e.index,connected:e.connected,mapping:e.mapping,timestamp:e.timestamp,vibrationActuator:e.vibrationActuator,hapticActuators:t,axes:e.axes.map(e=>e),buttons:e.buttons.map(e=>({pressed:e.pressed,touched:e.touched,value:e.value}))}},l=()=>{const e=(null==t?void 0:t.getGamepads())||[];for(const t of e)t&&a.value[t.index]&&(a.value[t.index]=c(t))},{isActive:u,pause:d,resume:p}=R(l),h=e=>{a.value.some(({index:t})=>t===e.index)||(a.value.push(c(e)),i.trigger(e.index)),p()},m=e=>{a.value=a.value.filter(t=>t.index!==e.index),s.trigger(e.index)};return v("gamepadconnected",e=>h(e.gamepad)),v("gamepaddisconnected",e=>m(e.gamepad)),r.tryOnMounted(()=>{const e=(null==t?void 0:t.getGamepads())||[];for(const t of e)t&&a.value[t.index]&&h(t)}),d(),{isSupported:n,onConnected:i.on,onDisconnected:s.on,gamepads:a,pause:d,resume:p,isActive:u}}function It(e={}){const{enableHighAccuracy:t=!0,maximumAge:n=3e4,timeout:a=27e3,navigator:i=f,immediate:s=!0}=e,c=L(()=>i&&"geolocation"in i),l=o.ref(null),u=o.shallowRef(null),d=o.ref({accuracy:0,latitude:Number.POSITIVE_INFINITY,longitude:Number.POSITIVE_INFINITY,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function p(e){l.value=e.timestamp,d.value=e.coords,u.value=null}let h;function m(){c.value&&(h=i.geolocation.watchPosition(p,e=>u.value=e,{enableHighAccuracy:t,maximumAge:n,timeout:a}))}function v(){h&&i&&i.geolocation.clearWatch(h)}return s&&m(),r.tryOnScopeDispose(()=>{v()}),{isSupported:c,coords:d,locatedAt:l,error:u,resume:m,pause:v}}const Et=["mousemove","mousedown","resize","keydown","touchstart","wheel"],jt=6e4;function Dt(e=jt,t={}){const{initialState:n=!1,listenForVisibilityChange:a=!0,events:i=Et,window:s=d,eventFilter:c=r.throttleFilter(50)}=t,l=o.ref(n),u=o.ref(r.timestamp());let p;const f=()=>{l.value=!1,clearTimeout(p),p=setTimeout(()=>l.value=!0,e)},h=r.createFilterWrapper(c,()=>{u.value=r.timestamp(),f()});if(s){const e=s.document;for(const t of i)v(s,t,h,{passive:!0});a&&v(e,"visibilitychange",()=>{e.hidden||h()}),f()}return{idle:l,lastActive:u,reset:f}}async function Lt(e){return new Promise((t,n)=>{const r=new Image,{src:o,srcset:a,sizes:i,class:s,loading:c,crossorigin:l,referrerPolicy:u}=e;r.src=o,a&&(r.srcset=a),i&&(r.sizes=i),s&&(r.className=s),c&&(r.loading=c),l&&(r.crossOrigin=l),u&&(r.referrerPolicy=u),r.onload=()=>t(r),r.onerror=n})}function At(e,t={}){const n=V(()=>Lt(r.toValue(e)),void 0,{resetOnExecute:!0,...t});return o.watch(()=>r.toValue(e),()=>n.execute(t.delay),{deep:!0}),n}function Nt(e){return"undefined"!==typeof Window&&e instanceof Window?e.document.documentElement:"undefined"!==typeof Document&&e instanceof Document?e.documentElement:e}const Rt=1;function xt(e,t={}){const{throttle:n=0,idle:a=200,onStop:i=r.noop,onScroll:s=r.noop,offset:c={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:u="auto",window:p=d,onError:f=(e=>{console.error(e)})}=t,h=o.ref(0),g=o.ref(0),_=o.computed({get(){return h.value},set(e){y(e,void 0)}}),b=o.computed({get(){return g.value},set(e){y(void 0,e)}});function y(t,n){var o,a,i,s;if(!p)return;const c=r.toValue(e);if(!c)return;null==(i=c instanceof Document?p.document.body:c)||i.scrollTo({top:null!=(o=r.toValue(n))?o:b.value,left:null!=(a=r.toValue(t))?a:_.value,behavior:r.toValue(u)});const l=(null==(s=null==c?void 0:c.document)?void 0:s.documentElement)||(null==c?void 0:c.documentElement)||c;null!=_&&(h.value=l.scrollLeft),null!=b&&(g.value=l.scrollTop)}const O=o.ref(!1),M=o.reactive({left:!0,right:!1,top:!0,bottom:!1}),k=o.reactive({left:!1,right:!1,top:!1,bottom:!1}),C=e=>{O.value&&(O.value=!1,k.left=!1,k.right=!1,k.top=!1,k.bottom=!1,i(e))},w=r.useDebounceFn(C,n+a),S=e=>{var t;if(!p)return;const n=(null==(t=null==e?void 0:e.document)?void 0:t.documentElement)||(null==e?void 0:e.documentElement)||m(e),{display:r,flexDirection:o}=getComputedStyle(n),a=n.scrollLeft;k.left=a<h.value,k.right=a>h.value;const i=Math.abs(a)<=(c.left||0),s=Math.abs(a)+n.clientWidth>=n.scrollWidth-(c.right||0)-Rt;"flex"===r&&"row-reverse"===o?(M.left=s,M.right=i):(M.left=i,M.right=s),h.value=a;let l=n.scrollTop;e!==p.document||l||(l=p.document.body.scrollTop),k.top=l<g.value,k.bottom=l>g.value;const u=Math.abs(l)<=(c.top||0),d=Math.abs(l)+n.clientHeight>=n.scrollHeight-(c.bottom||0)-Rt;"flex"===r&&"column-reverse"===o?(M.top=d,M.bottom=u):(M.top=u,M.bottom=d),g.value=l},T=e=>{var t;if(!p)return;const n=null!=(t=e.target.documentElement)?t:e.target;S(n),O.value=!0,w(e),s(e)};return v(e,"scroll",n?r.useThrottleFn(T,n,!0,!1):T,l),r.tryOnMounted(()=>{try{const t=r.toValue(e);if(!t)return;S(t)}catch(t){f(t)}}),v(e,"scrollend",C,l),{x:_,y:b,isScrolling:O,arrivedState:M,directions:k,measure(){const t=r.toValue(e);p&&t&&S(t)}}}function Pt(e,t,n={}){var a;const{direction:i="bottom",interval:s=100,canLoadMore:c=(()=>!0)}=n,l=o.reactive(xt(e,{...n,offset:{[i]:null!=(a=n.distance)?a:0,...n.offset}})),u=o.ref(),d=o.computed(()=>!!u.value),p=o.computed(()=>Nt(r.toValue(e))),f=et(p);function h(){if(l.measure(),!p.value||!f.value||!c(p.value))return;const{scrollHeight:e,clientHeight:n,scrollWidth:r,clientWidth:a}=p.value,d="bottom"===i||"top"===i?e<=n:r<=a;(l.arrivedState[i]||d)&&(u.value||(u.value=Promise.all([t(l),new Promise(e=>setTimeout(e,s))]).finally(()=>{u.value=null,o.nextTick(()=>h())})))}const m=o.watch(()=>[l.arrivedState[i],f.value],h,{immediate:!0});return r.tryOnUnmounted(m),{isLoading:d,reset(){o.nextTick(()=>h())}}}const Ut=["mousedown","mouseup","keydown","keyup"];function Vt(e,t={}){const{events:n=Ut,document:r=p,initial:a=null}=t,i=o.ref(a);return r&&n.forEach(t=>{v(r,t,t=>{"function"===typeof t.getModifierState&&(i.value=t.getModifierState(e))})}),i}function Bt(e,t,n={}){const{window:r=d}=n;return we(e,t,null==r?void 0:r.localStorage,n)}const Ft={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function Gt(e={}){const{reactive:t=!1,target:n=d,aliasMap:a=Ft,passive:i=!0,onEventFired:s=r.noop}=e,c=o.reactive(new Set),l={toJSON(){return{}},current:c},u=t?o.reactive(l):l,p=new Set,f=new Set;function h(e,n){e in u&&(t?u[e]=n:u[e].value=n)}function m(){c.clear();for(const e of f)h(e,!1)}function g(e,t){var n,r;const o=null==(n=e.key)?void 0:n.toLowerCase(),a=null==(r=e.code)?void 0:r.toLowerCase(),i=[a,o].filter(Boolean);o&&(t?c.add(o):c.delete(o));for(const s of i)f.add(s),h(s,t);"meta"!==o||t?"function"===typeof e.getModifierState&&e.getModifierState("Meta")&&t&&[...c,...i].forEach(e=>p.add(e)):(p.forEach(e=>{c.delete(e),h(e,!1)}),p.clear())}v(n,"keydown",e=>(g(e,!0),s(e)),{passive:i}),v(n,"keyup",e=>(g(e,!1),s(e)),{passive:i}),v("blur",m,{passive:!0}),v("focus",m,{passive:!0});const _=new Proxy(u,{get(e,n,i){if("string"!==typeof n)return Reflect.get(e,n,i);if(n=n.toLowerCase(),n in a&&(n=a[n]),!(n in u))if(/[+_-]/.test(n)){const e=n.split(/[+_-]/g).map(e=>e.trim());u[n]=o.computed(()=>e.every(e=>r.toValue(_[e])))}else u[n]=o.ref(!1);const s=Reflect.get(e,n,i);return t?r.toValue(s):s}});return _}function Ht(e,t){r.toValue(e)&&t(r.toValue(e))}function Yt(e){let t=[];for(let n=0;n<e.length;++n)t=[...t,[e.start(n),e.end(n)]];return t}function zt(e){return Array.from(e).map(({label:e,kind:t,language:n,mode:r,activeCues:o,cues:a,inBandMetadataTrackDispatchType:i},s)=>({id:s,label:e,kind:t,language:n,mode:r,activeCues:o,cues:a,inBandMetadataTrackDispatchType:i}))}const qt={src:"",tracks:[]};function Wt(e,t={}){e=r.toRef(e),t={...qt,...t};const{document:n=p}=t,a=o.ref(0),i=o.ref(0),s=o.ref(!1),c=o.ref(1),l=o.ref(!1),u=o.ref(!1),d=o.ref(!1),f=o.ref(1),h=o.ref(!1),m=o.ref([]),g=o.ref([]),_=o.ref(-1),b=o.ref(!1),y=o.ref(!1),O=n&&"pictureInPictureEnabled"in n,M=r.createEventHook(),k=r.createEventHook(),C=t=>{Ht(e,e=>{if(t){const n="number"===typeof t?t:t.id;e.textTracks[n].mode="disabled"}else for(let t=0;t<e.textTracks.length;++t)e.textTracks[t].mode="disabled";_.value=-1})},w=(t,n=!0)=>{Ht(e,e=>{const r="number"===typeof t?t:t.id;n&&C(),e.textTracks[r].mode="showing",_.value=r})},S=()=>new Promise((t,r)=>{Ht(e,async e=>{O&&(b.value?n.exitPictureInPicture().then(t).catch(r):e.requestPictureInPicture().then(t).catch(r))})});o.watchEffect(()=>{if(!n)return;const o=r.toValue(e);if(!o)return;const a=r.toValue(t.src);let i=[];a&&("string"===typeof a?i=[{src:a}]:Array.isArray(a)?i=a:r.isObject(a)&&(i=[a]),o.querySelectorAll("source").forEach(e=>{e.removeEventListener("error",M.trigger),e.remove()}),i.forEach(({src:e,type:t})=>{const r=n.createElement("source");r.setAttribute("src",e),r.setAttribute("type",t||""),r.addEventListener("error",M.trigger),o.appendChild(r)}),o.load())}),r.tryOnScopeDispose(()=>{const t=r.toValue(e);t&&t.querySelectorAll("source").forEach(e=>e.removeEventListener("error",M.trigger))}),o.watch([e,c],()=>{const t=r.toValue(e);t&&(t.volume=c.value)}),o.watch([e,y],()=>{const t=r.toValue(e);t&&(t.muted=y.value)}),o.watch([e,f],()=>{const t=r.toValue(e);t&&(t.playbackRate=f.value)}),o.watchEffect(()=>{if(!n)return;const o=r.toValue(t.tracks),a=r.toValue(e);o&&o.length&&a&&(a.querySelectorAll("track").forEach(e=>e.remove()),o.forEach(({default:e,kind:t,label:r,src:o,srcLang:i},s)=>{const c=n.createElement("track");c.default=e||!1,c.kind=t,c.label=r,c.src=o,c.srclang=i,c.default&&(_.value=s),a.appendChild(c)}))});const{ignoreUpdates:T}=r.watchIgnorable(a,t=>{const n=r.toValue(e);n&&(n.currentTime=t)}),{ignoreUpdates:I}=r.watchIgnorable(d,t=>{const n=r.toValue(e);n&&(t?n.play().catch(e=>{throw k.trigger(e),e}):n.pause())});v(e,"timeupdate",()=>T(()=>a.value=r.toValue(e).currentTime)),v(e,"durationchange",()=>i.value=r.toValue(e).duration),v(e,"progress",()=>m.value=Yt(r.toValue(e).buffered)),v(e,"seeking",()=>s.value=!0),v(e,"seeked",()=>s.value=!1),v(e,["waiting","loadstart"],()=>{l.value=!0,I(()=>d.value=!1)}),v(e,"loadeddata",()=>l.value=!1),v(e,"playing",()=>{l.value=!1,u.value=!1,I(()=>d.value=!0)}),v(e,"ratechange",()=>f.value=r.toValue(e).playbackRate),v(e,"stalled",()=>h.value=!0),v(e,"ended",()=>u.value=!0),v(e,"pause",()=>I(()=>d.value=!1)),v(e,"play",()=>I(()=>d.value=!0)),v(e,"enterpictureinpicture",()=>b.value=!0),v(e,"leavepictureinpicture",()=>b.value=!1),v(e,"volumechange",()=>{const t=r.toValue(e);t&&(c.value=t.volume,y.value=t.muted)});const E=[],j=o.watch([e],()=>{const t=r.toValue(e);t&&(j(),E[0]=v(t.textTracks,"addtrack",()=>g.value=zt(t.textTracks)),E[1]=v(t.textTracks,"removetrack",()=>g.value=zt(t.textTracks)),E[2]=v(t.textTracks,"change",()=>g.value=zt(t.textTracks)))});return r.tryOnScopeDispose(()=>E.forEach(e=>e())),{currentTime:a,duration:i,waiting:l,seeking:s,ended:u,stalled:h,buffered:m,playing:d,rate:f,volume:c,muted:y,tracks:g,selectedTrack:_,enableTrack:w,disableTrack:C,supportsPictureInPicture:O,togglePictureInPicture:S,isPictureInPicture:b,onSourceError:M.on,onPlaybackError:k.on}}function Kt(e,t){const n=()=>(null==t?void 0:t.cache)?o.shallowReactive(t.cache):o.shallowReactive(new Map),r=n(),a=(...e)=>(null==t?void 0:t.getKey)?t.getKey(...e):JSON.stringify(e),i=(t,...n)=>(r.set(t,e(...n)),r.get(t)),s=(...e)=>i(a(...e),...e),c=(...e)=>{r.delete(a(...e))},l=()=>{r.clear()},u=(...e)=>{const t=a(...e);return r.has(t)?r.get(t):i(t,...e)};return u.load=s,u.delete=c,u.clear=l,u.generateKey=a,u.cache=r,u}function $t(e={}){const t=o.ref(),n=L(()=>"undefined"!==typeof performance&&"memory"in performance);if(n.value){const{interval:n=1e3}=e;r.useIntervalFn(()=>{t.value=performance.memory},n,{immediate:e.immediate,immediateCallback:e.immediateCallback})}return{isSupported:n,memory:t}}const Jt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function Xt(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:a={x:0,y:0},window:i=d,target:s=i,scroll:c=!0,eventFilter:l}=e;let u=null,p=0,f=0;const h=o.ref(a.x),m=o.ref(a.y),g=o.ref(null),_="function"===typeof t?t:Jt[t],b=e=>{const t=_(e);u=e,t&&([h.value,m.value]=t,g.value="mouse"),i&&(p=i.scrollX,f=i.scrollY)},y=e=>{if(e.touches.length>0){const t=_(e.touches[0]);t&&([h.value,m.value]=t,g.value="touch")}},O=()=>{if(!u||!i)return;const e=_(u);u instanceof MouseEvent&&e&&(h.value=e[0]+i.scrollX-p,m.value=e[1]+i.scrollY-f)},M=()=>{h.value=a.x,m.value=a.y},k=l?e=>l(()=>b(e),{}):e=>b(e),C=l?e=>l(()=>y(e),{}):e=>y(e),w=l?()=>l(()=>O(),{}):()=>O();if(s){const e={passive:!0};v(s,["mousemove","dragover"],k,e),n&&"movement"!==t&&(v(s,["touchstart","touchmove"],C,e),r&&v(s,"touchend",M,e)),c&&"page"===t&&v(i,"scroll",w,{passive:!0})}return{x:h,y:m,sourceType:g}}function Qt(e,t={}){const{handleOutside:n=!0,window:r=d}=t,a=t.type||"page",{x:i,y:s,sourceType:c}=Xt(t),l=o.ref(null!=e?e:null==r?void 0:r.document.body),u=o.ref(0),p=o.ref(0),f=o.ref(0),h=o.ref(0),g=o.ref(0),_=o.ref(0),b=o.ref(!0);let y=()=>{};return r&&(y=o.watch([l,i,s],()=>{const e=m(l);if(!e||!(e instanceof Element))return;const{left:t,top:o,width:c,height:d}=e.getBoundingClientRect();f.value=t+("page"===a?r.pageXOffset:0),h.value=o+("page"===a?r.pageYOffset:0),g.value=d,_.value=c;const v=i.value-f.value,y=s.value-h.value;b.value=0===c||0===d||v<0||y<0||v>c||y>d,!n&&b.value||(u.value=v,p.value=y)},{immediate:!0}),v(document,"mouseleave",()=>{b.value=!0})),{x:i,y:s,sourceType:c,elementX:u,elementY:p,elementPositionX:f,elementPositionY:h,elementHeight:g,elementWidth:_,isOutside:b,stop:y}}function Zt(e={}){const{touch:t=!0,drag:n=!0,capture:r=!1,initialValue:a=!1,window:i=d}=e,s=o.ref(a),c=o.ref(null);if(!i)return{pressed:s,sourceType:c};const l=e=>()=>{s.value=!0,c.value=e},u=()=>{s.value=!1,c.value=null},p=o.computed(()=>m(e.target)||i);return v(p,"mousedown",l("mouse"),{passive:!0,capture:r}),v(i,"mouseleave",u,{passive:!0,capture:r}),v(i,"mouseup",u,{passive:!0,capture:r}),n&&(v(p,"dragstart",l("mouse"),{passive:!0,capture:r}),v(i,"drop",u,{passive:!0,capture:r}),v(i,"dragend",u,{passive:!0,capture:r})),t&&(v(p,"touchstart",l("touch"),{passive:!0,capture:r}),v(i,"touchend",u,{passive:!0,capture:r}),v(i,"touchcancel",u,{passive:!0,capture:r})),{pressed:s,sourceType:c}}function en(e={}){const{window:t=d}=e,n=null==t?void 0:t.navigator,r=L(()=>n&&"language"in n),a=o.ref(null==n?void 0:n.language);return v(t,"languagechange",()=>{n&&(a.value=n.language)}),{isSupported:r,language:a}}function tn(e={}){const{window:t=d}=e,n=null==t?void 0:t.navigator,r=L(()=>n&&"connection"in n),a=o.ref(!0),i=o.ref(!1),s=o.ref(void 0),c=o.ref(void 0),l=o.ref(void 0),u=o.ref(void 0),p=o.ref(void 0),f=o.ref(void 0),h=o.ref("unknown"),m=r.value&&n.connection;function g(){n&&(a.value=n.onLine,s.value=a.value?void 0:Date.now(),c.value=a.value?Date.now():void 0,m&&(l.value=m.downlink,u.value=m.downlinkMax,f.value=m.effectiveType,p.value=m.rtt,i.value=m.saveData,h.value=m.type))}return t&&(v(t,"offline",()=>{a.value=!1,s.value=Date.now()}),v(t,"online",()=>{a.value=!0,c.value=Date.now()})),m&&v(m,"change",g,!1),g(),{isSupported:o.readonly(r),isOnline:o.readonly(a),saveData:o.readonly(i),offlineAt:o.readonly(s),onlineAt:o.readonly(c),downlink:o.readonly(l),downlinkMax:o.readonly(u),effectiveType:o.readonly(f),rtt:o.readonly(p),type:o.readonly(h)}}function nn(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,a=o.ref(new Date),i=()=>a.value=new Date,s="requestAnimationFrame"===n?R(i,{immediate:!0}):r.useIntervalFn(i,n,{immediate:!0});return t?{now:a,...s}:a}function rn(e){const t=o.ref(),n=()=>{t.value&&URL.revokeObjectURL(t.value),t.value=void 0};return o.watch(()=>r.toValue(e),e=>{n(),e&&(t.value=URL.createObjectURL(e))},{immediate:!0}),r.tryOnScopeDispose(n),o.readonly(t)}function on(e,t,n){if("function"===typeof e||o.isReadonly(e))return o.computed(()=>r.clamp(r.toValue(e),r.toValue(t),r.toValue(n)));const a=o.ref(e);return o.computed({get(){return a.value=r.clamp(a.value,r.toValue(t),r.toValue(n))},set(e){a.value=r.clamp(e,r.toValue(t),r.toValue(n))}})}function an(e){const{total:t=Number.POSITIVE_INFINITY,pageSize:n=10,page:a=1,onPageChange:i=r.noop,onPageSizeChange:s=r.noop,onPageCountChange:c=r.noop}=e,l=on(n,1,Number.POSITIVE_INFINITY),u=o.computed(()=>Math.max(1,Math.ceil(r.toValue(t)/r.toValue(l)))),d=on(a,1,u),p=o.computed(()=>1===d.value),f=o.computed(()=>d.value===u.value);function h(){d.value--}function m(){d.value++}o.isRef(a)&&r.syncRef(a,d,{direction:o.isReadonly(a)?"ltr":"both"}),o.isRef(n)&&r.syncRef(n,l,{direction:o.isReadonly(n)?"ltr":"both"});const v={currentPage:d,currentPageSize:l,pageCount:u,isFirstPage:p,isLastPage:f,prev:h,next:m};return o.watch(d,()=>{i(o.reactive(v))}),o.watch(l,()=>{s(o.reactive(v))}),o.watch(u,()=>{c(o.reactive(v))}),v}function sn(e={}){const{isOnline:t}=tn(e);return t}function cn(e={}){const{window:t=d}=e,n=o.ref(!1),r=e=>{if(!t)return;e=e||t.event;const r=e.relatedTarget||e.toElement;n.value=!r};return t&&(v(t,"mouseout",r,{passive:!0}),v(t.document,"mouseleave",r,{passive:!0}),v(t.document,"mouseenter",r,{passive:!0})),n}function ln(e={}){const{window:t=d}=e,n=L(()=>t&&"screen"in t&&"orientation"in t.screen),r=n.value?t.screen.orientation:{},a=o.ref(r.type),i=o.ref(r.angle||0);n.value&&v(t,"orientationchange",()=>{a.value=r.type,i.value=r.angle});const s=e=>n.value&&"function"===typeof r.lock?r.lock(e):Promise.reject(new Error("Not supported")),c=()=>{n.value&&"function"===typeof r.unlock&&r.unlock()};return{isSupported:n,orientation:a,angle:i,lockOrientation:s,unlockOrientation:c}}function un(e,t={}){const{deviceOrientationTiltAdjust:n=(e=>e),deviceOrientationRollAdjust:r=(e=>e),mouseTiltAdjust:a=(e=>e),mouseRollAdjust:i=(e=>e),window:s=d}=t,c=o.reactive(Fe({window:s})),l=o.reactive(ln({window:s})),{elementX:u,elementY:p,elementWidth:f,elementHeight:h}=Qt(e,{handleOutside:!1,window:s}),m=o.computed(()=>c.isSupported&&(null!=c.alpha&&0!==c.alpha||null!=c.gamma&&0!==c.gamma)?"deviceOrientation":"mouse"),v=o.computed(()=>{if("deviceOrientation"===m.value){let e;switch(l.orientation){case"landscape-primary":e=c.gamma/90;break;case"landscape-secondary":e=-c.gamma/90;break;case"portrait-primary":e=-c.beta/90;break;case"portrait-secondary":e=c.beta/90;break;default:e=-c.beta/90}return r(e)}{const e=-(p.value-h.value/2)/h.value;return i(e)}}),g=o.computed(()=>{if("deviceOrientation"===m.value){let e;switch(l.orientation){case"landscape-primary":e=c.beta/90;break;case"landscape-secondary":e=-c.beta/90;break;case"portrait-primary":e=c.gamma/90;break;case"portrait-secondary":e=-c.gamma/90;break;default:e=c.gamma/90}return n(e)}{const e=(u.value-f.value/2)/f.value;return a(e)}});return{roll:v,tilt:g,source:m}}function dn(e=je()){const t=o.shallowRef(),n=()=>{const n=m(e);n&&(t.value=n.parentElement)};return r.tryOnMounted(n),o.watch(()=>r.toValue(e),n),t}function pn(e,t){const{window:n=d,immediate:o=!0,...a}=e,i=L(()=>n&&"PerformanceObserver"in n);let s;const c=()=>{null==s||s.disconnect()},l=()=>{i.value&&(c(),s=new PerformanceObserver(t),s.observe(a))};return r.tryOnScopeDispose(c),o&&l(),{isSupported:i,start:l,stop:c}}const fn={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},hn=Object.keys(fn);function mn(e={}){const{target:t=d}=e,n=o.ref(!1),a=o.ref(e.initialValue||{});Object.assign(a.value,fn,a.value);const i=t=>{n.value=!0,e.pointerTypes&&!e.pointerTypes.includes(t.pointerType)||(a.value=r.objectPick(t,hn,!1))};if(t){const e={passive:!0};v(t,["pointerdown","pointermove","pointerup"],i,e),v(t,"pointerleave",()=>n.value=!1,e)}return{...r.toRefs(a),isInside:n}}function vn(e,t={}){const{document:n=p}=t,a=L(()=>n&&"pointerLockElement"in n),i=o.ref(),s=o.ref();let c;async function l(t){var n;if(!a.value)throw new Error("Pointer Lock API is not supported by your browser.");if(s.value=t instanceof Event?t.currentTarget:null,c=t instanceof Event?null!=(n=m(e))?n:s.value:m(t),!c)throw new Error("Target element undefined.");return c.requestPointerLock(),await r.until(i).toBe(c)}async function u(){return!!i.value&&(n.exitPointerLock(),await r.until(i).toBeNull(),!0)}return a.value&&(v(n,"pointerlockchange",()=>{var e;const t=null!=(e=n.pointerLockElement)?e:i.value;c&&t===c&&(i.value=n.pointerLockElement,i.value||(c=s.value=null))}),v(n,"pointerlockerror",()=>{var e;const t=null!=(e=n.pointerLockElement)?e:i.value;if(c&&t===c){const e=n.pointerLockElement?"release":"acquire";throw new Error(`Failed to ${e} pointer lock.`)}})),{isSupported:a,element:i,triggerElement:s,lock:l,unlock:u}}function gn(e,t={}){const n=r.toRef(e),{threshold:a=50,onSwipe:i,onSwipeEnd:s,onSwipeStart:c,disableTextSelect:l=!1}=t,u=o.reactive({x:0,y:0}),d=(e,t)=>{u.x=e,u.y=t},p=o.reactive({x:0,y:0}),f=(e,t)=>{p.x=e,p.y=t},h=o.computed(()=>u.x-p.x),m=o.computed(()=>u.y-p.y),{max:g,abs:_}=Math,b=o.computed(()=>g(_(h.value),_(m.value))>=a),y=o.ref(!1),O=o.ref(!1),M=o.computed(()=>b.value?_(h.value)>_(m.value)?h.value>0?"left":"right":m.value>0?"up":"down":"none"),k=e=>{var n,r,o;const a=0===e.buttons,i=1===e.buttons;return null==(o=null!=(r=null==(n=t.pointerTypes)?void 0:n.includes(e.pointerType))?r:a||i)||o},C=[v(e,"pointerdown",e=>{if(!k(e))return;O.value=!0;const t=e.target;null==t||t.setPointerCapture(e.pointerId);const{clientX:n,clientY:r}=e;d(n,r),f(n,r),null==c||c(e)}),v(e,"pointermove",e=>{if(!k(e))return;if(!O.value)return;const{clientX:t,clientY:n}=e;f(t,n),!y.value&&b.value&&(y.value=!0),y.value&&(null==i||i(e))}),v(e,"pointerup",e=>{k(e)&&(y.value&&(null==s||s(e,M.value)),O.value=!1,y.value=!1)})];r.tryOnMounted(()=>{var e,t,r,o,a,i,s,c;null==(t=null==(e=n.value)?void 0:e.style)||t.setProperty("touch-action","none"),l&&(null==(o=null==(r=n.value)?void 0:r.style)||o.setProperty("-webkit-user-select","none"),null==(i=null==(a=n.value)?void 0:a.style)||i.setProperty("-ms-user-select","none"),null==(c=null==(s=n.value)?void 0:s.style)||c.setProperty("user-select","none"))});const w=()=>C.forEach(e=>e());return{isSwiping:o.readonly(y),direction:o.readonly(M),posStart:o.readonly(u),posEnd:o.readonly(p),distanceX:h,distanceY:m,stop:w}}function _n(e){const t=W("(prefers-color-scheme: light)",e),n=W("(prefers-color-scheme: dark)",e);return o.computed(()=>n.value?"dark":t.value?"light":"no-preference")}function bn(e){const t=W("(prefers-contrast: more)",e),n=W("(prefers-contrast: less)",e),r=W("(prefers-contrast: custom)",e);return o.computed(()=>t.value?"more":n.value?"less":r.value?"custom":"no-preference")}function yn(e={}){const{window:t=d}=e;if(!t)return o.ref(["en"]);const n=t.navigator,r=o.ref(n.languages);return v(t,"languagechange",()=>{r.value=n.languages}),r}function On(e){const t=W("(prefers-reduced-motion: reduce)",e);return o.computed(()=>t.value?"reduce":"no-preference")}function Mn(e,t){const n=o.shallowRef(t);return o.watch(r.toRef(e),(e,t)=>{n.value=t},{flush:"sync"}),o.readonly(n)}const kn="--vueuse-safe-area-top",Cn="--vueuse-safe-area-right",wn="--vueuse-safe-area-bottom",Sn="--vueuse-safe-area-left";function Tn(){const e=o.ref(""),t=o.ref(""),n=o.ref(""),a=o.ref("");if(r.isClient){const e=Ee(kn),t=Ee(Cn),n=Ee(wn),o=Ee(Sn);e.value="env(safe-area-inset-top, 0px)",t.value="env(safe-area-inset-right, 0px)",n.value="env(safe-area-inset-bottom, 0px)",o.value="env(safe-area-inset-left, 0px)",i(),v("resize",r.useDebounceFn(i))}function i(){e.value=In(kn),t.value=In(Cn),n.value=In(wn),a.value=In(Sn)}return{top:e,right:t,bottom:n,left:a,update:i}}function In(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function En(e,t=r.noop,n={}){const{immediate:a=!0,manual:i=!1,type:s="text/javascript",async:c=!0,crossOrigin:l,referrerPolicy:u,noModule:d,defer:f,document:h=p,attrs:m={}}=n,v=o.ref(null);let g=null;const _=n=>new Promise((o,a)=>{const i=e=>(v.value=e,o(e),e);if(!h)return void o(!1);let p=!1,g=h.querySelector(`script[src="${r.toValue(e)}"]`);g?g.hasAttribute("data-loaded")&&i(g):(g=h.createElement("script"),g.type=s,g.async=c,g.src=r.toValue(e),f&&(g.defer=f),l&&(g.crossOrigin=l),d&&(g.noModule=d),u&&(g.referrerPolicy=u),Object.entries(m).forEach(([e,t])=>null==g?void 0:g.setAttribute(e,t)),p=!0),g.addEventListener("error",e=>a(e)),g.addEventListener("abort",e=>a(e)),g.addEventListener("load",()=>{g.setAttribute("data-loaded","true"),t(g),i(g)}),p&&(g=h.head.appendChild(g)),n||i(g)}),b=(e=!0)=>(g||(g=_(e)),g),y=()=>{if(!h)return;g=null,v.value&&(v.value=null);const t=h.querySelector(`script[src="${r.toValue(e)}"]`);t&&h.head.removeChild(t)};return a&&!i&&r.tryOnMounted(b),i||r.tryOnUnmounted(y),{scriptTag:v,load:b,unload:y}}function jn(e){const t=window.getComputedStyle(e);if("scroll"===t.overflowX||"scroll"===t.overflowY||"auto"===t.overflowX&&e.clientWidth<e.scrollWidth||"auto"===t.overflowY&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!(!t||"BODY"===t.tagName)&&jn(t)}}function Dn(e){const t=e||window.event,n=t.target;return!jn(n)&&(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))}const Ln=new WeakMap;function An(e,t=!1){const n=o.ref(t);let a=null,i="";o.watch(r.toRef(e),e=>{const t=Nt(r.toValue(e));if(t){const e=t;if(Ln.get(e)||Ln.set(e,e.style.overflow),"hidden"!==e.style.overflow&&(i=e.style.overflow),"hidden"===e.style.overflow)return n.value=!0;if(n.value)return e.style.overflow="hidden"}},{immediate:!0});const s=()=>{const t=Nt(r.toValue(e));t&&!n.value&&(r.isIOS&&(a=v(t,"touchmove",e=>{Dn(e)},{passive:!1})),t.style.overflow="hidden",n.value=!0)},c=()=>{const t=Nt(r.toValue(e));t&&n.value&&(r.isIOS&&(null==a||a()),t.style.overflow=i,Ln.delete(t),n.value=!1)};return r.tryOnScopeDispose(c),o.computed({get(){return n.value},set(e){e?s():c()}})}function Nn(e,t,n={}){const{window:r=d}=n;return we(e,t,null==r?void 0:r.sessionStorage,n)}function Rn(e={},t={}){const{navigator:n=f}=t,o=n,a=L(()=>o&&"canShare"in o),i=async(t={})=>{if(a.value){const n={...r.toValue(e),...r.toValue(t)};let a=!0;if(n.files&&o.canShare&&(a=o.canShare({files:n.files})),a)return o.share(n)}};return{isSupported:a,share:i}}const xn=(e,t)=>e.sort(t),Pn=(e,t)=>e-t;function Un(...e){var t,n,a,i;const[s]=e;let c=Pn,l={};2===e.length?"object"===typeof e[1]?(l=e[1],c=null!=(t=l.compareFn)?t:Pn):c=null!=(n=e[1])?n:Pn:e.length>2&&(c=null!=(a=e[1])?a:Pn,l=null!=(i=e[2])?i:{});const{dirty:u=!1,sortFn:d=xn}=l;return u?(o.watchEffect(()=>{const e=d(r.toValue(s),c);o.isRef(s)?s.value=e:s.splice(0,s.length,...e)}),s):o.computed(()=>d([...r.toValue(s)],c))}function Vn(e={}){const{interimResults:t=!0,continuous:n=!0,maxAlternatives:a=1,window:i=d}=e,s=r.toRef(e.lang||"en-US"),c=o.ref(!1),l=o.ref(!1),u=o.ref(""),p=o.shallowRef(void 0),f=(e=!c.value)=>{c.value=e},h=()=>{c.value=!0},m=()=>{c.value=!1},v=i&&(i.SpeechRecognition||i.webkitSpeechRecognition),g=L(()=>v);let _;return g.value&&(_=new v,_.continuous=n,_.interimResults=t,_.lang=r.toValue(s),_.maxAlternatives=a,_.onstart=()=>{l.value=!1},o.watch(s,e=>{_&&!c.value&&(_.lang=e)}),_.onresult=e=>{const t=e.results[e.resultIndex],{transcript:n}=t[0];l.value=t.isFinal,u.value=n,p.value=void 0},_.onerror=e=>{p.value=e},_.onend=()=>{c.value=!1,_.lang=r.toValue(s)},o.watch(c,()=>{c.value?_.start():_.stop()})),r.tryOnScopeDispose(()=>{c.value=!1}),{isSupported:g,isListening:c,isFinal:l,recognition:_,result:u,error:p,toggle:f,start:h,stop:m}}function Bn(e,t={}){const{pitch:n=1,rate:a=1,volume:i=1,window:s=d}=t,c=s&&s.speechSynthesis,l=L(()=>c),u=o.ref(!1),p=o.ref("init"),f=r.toRef(e||""),h=r.toRef(t.lang||"en-US"),m=o.shallowRef(void 0),v=(e=!u.value)=>{u.value=e},g=e=>{e.lang=r.toValue(h),e.voice=r.toValue(t.voice)||null,e.pitch=r.toValue(n),e.rate=r.toValue(a),e.volume=i,e.onstart=()=>{u.value=!0,p.value="play"},e.onpause=()=>{u.value=!1,p.value="pause"},e.onresume=()=>{u.value=!0,p.value="play"},e.onend=()=>{u.value=!1,p.value="end"},e.onerror=e=>{m.value=e}},_=o.computed(()=>{u.value=!1,p.value="init";const e=new SpeechSynthesisUtterance(f.value);return g(e),e}),b=()=>{c.cancel(),_&&c.speak(_.value)},y=()=>{c.cancel(),u.value=!1};return l.value&&(g(_.value),o.watch(h,e=>{_.value&&!u.value&&(_.value.lang=e)}),t.voice&&o.watch(t.voice,()=>{c.cancel()}),o.watch(u,()=>{u.value?c.resume():c.pause()})),r.tryOnScopeDispose(()=>{u.value=!1}),{isSupported:l,isPlaying:u,status:p,utterance:_,error:m,stop:y,toggle:v,speak:b}}function Fn(e,t){const n=o.ref(e),r=o.computed(()=>Array.isArray(n.value)?n.value:Object.keys(n.value)),a=o.ref(r.value.indexOf(null!=t?t:r.value[0])),i=o.computed(()=>d(a.value)),s=o.computed(()=>0===a.value),c=o.computed(()=>a.value===r.value.length-1),l=o.computed(()=>r.value[a.value+1]),u=o.computed(()=>r.value[a.value-1]);function d(e){return Array.isArray(n.value)?n.value[e]:n.value[r.value[e]]}function p(e){if(r.value.includes(e))return d(r.value.indexOf(e))}function f(e){r.value.includes(e)&&(a.value=r.value.indexOf(e))}function h(){c.value||a.value++}function m(){s.value||a.value--}function v(e){O(e)&&f(e)}function g(e){return r.value.indexOf(e)===a.value+1}function _(e){return r.value.indexOf(e)===a.value-1}function b(e){return r.value.indexOf(e)===a.value}function y(e){return a.value<r.value.indexOf(e)}function O(e){return a.value>r.value.indexOf(e)}return{steps:n,stepNames:r,index:a,current:i,next:l,previous:u,isFirst:s,isLast:c,at:d,get:p,goTo:f,goToNext:h,goToPrevious:m,goBackTo:v,isNext:g,isPrevious:_,isCurrent:b,isBefore:y,isAfter:O}}function Gn(e,t,n,a={}){var i;const{flush:s="pre",deep:c=!0,listenToStorageChanges:l=!0,writeDefaults:u=!0,mergeDefaults:p=!1,shallow:f,window:h=d,eventFilter:m,onError:g=(e=>{console.error(e)})}=a,_=r.toValue(t),b=Me(_),y=(f?o.shallowRef:o.ref)(t),O=null!=(i=a.serializer)?i:ke[b];if(!n)try{n=be("getDefaultStorageAsync",()=>{var e;return null==(e=d)?void 0:e.localStorage})()}catch(k){g(k)}async function M(t){if(n&&(!t||t.key===e))try{const r=t?t.newValue:await n.getItem(e);if(null==r)y.value=_,u&&null!==_&&await n.setItem(e,await O.write(_));else if(p){const e=await O.read(r);"function"===typeof p?y.value=p(e,_):"object"!==b||Array.isArray(e)?y.value=e:y.value={..._,...e}}else y.value=await O.read(r)}catch(k){g(k)}}return M(),h&&l&&v(h,"storage",e=>Promise.resolve().then(()=>M(e))),n&&r.watchWithFilter(y,async()=>{try{null==y.value?await n.removeItem(e):await n.setItem(e,await O.write(y.value))}catch(k){g(k)}},{flush:s,deep:c,eventFilter:m}),y}let Hn=0;function Yn(e,t={}){const n=o.ref(!1),{document:a=p,immediate:i=!0,manual:s=!1,id:c="vueuse_styletag_"+ ++Hn}=t,l=o.ref(e);let u=()=>{};const d=()=>{if(!a)return;const e=a.getElementById(c)||a.createElement("style");e.isConnected||(e.id=c,t.media&&(e.media=t.media),a.head.appendChild(e)),n.value||(u=o.watch(l,t=>{e.textContent=t},{immediate:!0}),n.value=!0)},f=()=>{a&&n.value&&(u(),a.head.removeChild(a.getElementById(c)),n.value=!1)};return i&&!s&&r.tryOnMounted(d),s||r.tryOnScopeDispose(f),{id:c,css:l,unload:f,load:d,isLoaded:o.readonly(n)}}function zn(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:a,onSwipeStart:i,passive:s=!0,window:c=d}=t,l=o.reactive({x:0,y:0}),u=o.reactive({x:0,y:0}),p=o.computed(()=>l.x-u.x),f=o.computed(()=>l.y-u.y),{max:h,abs:m}=Math,g=o.computed(()=>h(m(p.value),m(f.value))>=n),_=o.ref(!1),b=o.computed(()=>g.value?m(p.value)>m(f.value)?p.value>0?"left":"right":f.value>0?"up":"down":"none"),y=e=>[e.touches[0].clientX,e.touches[0].clientY],O=(e,t)=>{l.x=e,l.y=t},M=(e,t)=>{u.x=e,u.y=t};let k;const C=qn(null==c?void 0:c.document);k=s?C?{passive:!0}:{capture:!1}:C?{passive:!1,capture:!0}:{capture:!0};const w=e=>{_.value&&(null==a||a(e,b.value)),_.value=!1},S=[v(e,"touchstart",e=>{if(1!==e.touches.length)return;const[t,n]=y(e);O(t,n),M(t,n),null==i||i(e)},k),v(e,"touchmove",e=>{if(1!==e.touches.length)return;const[t,n]=y(e);M(t,n),k.capture&&!k.passive&&Math.abs(p.value)>Math.abs(f.value)&&e.preventDefault(),!_.value&&g.value&&(_.value=!0),_.value&&(null==r||r(e))},k),v(e,["touchend","touchcancel"],w,k)],T=()=>S.forEach(e=>e());return{isPassiveEventSupported:C,isSwiping:_,direction:b,coordsStart:l,coordsEnd:u,lengthX:p,lengthY:f,stop:T}}function qn(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",r.noop,n),e.removeEventListener("x",r.noop),t}function Wn(){const e=o.ref([]);return e.value.set=t=>{t&&e.value.push(t)},o.onBeforeUpdate(()=>{e.value.length=0}),e}function Kn(e={}){const{document:t=p,selector:n="html",observe:a=!1,initialValue:i="ltr"}=e;function s(){var e,r;return null!=(r=null==(e=null==t?void 0:t.querySelector(n))?void 0:e.getAttribute("dir"))?r:i}const c=o.ref(s());return r.tryOnMounted(()=>c.value=s()),a&&t&&A(t.querySelector(n),()=>c.value=s(),{attributes:!0}),o.computed({get(){return c.value},set(e){var r,o;c.value=e,t&&(c.value?null==(r=t.querySelector(n))||r.setAttribute("dir",c.value):null==(o=t.querySelector(n))||o.removeAttribute("dir"))}})}function $n(e){var t;const n=null!=(t=e.rangeCount)?t:0;return Array.from({length:n},(t,n)=>e.getRangeAt(n))}function Jn(e={}){const{window:t=d}=e,n=o.ref(null),r=o.computed(()=>{var e,t;return null!=(t=null==(e=n.value)?void 0:e.toString())?t:""}),a=o.computed(()=>n.value?$n(n.value):[]),i=o.computed(()=>a.value.map(e=>e.getBoundingClientRect()));function s(){n.value=null,t&&(n.value=t.getSelection())}return t&&v(t.document,"selectionchange",s),{text:r,rects:i,ranges:a,selection:n}}function Xn(e){var t;const n=o.ref(null==e?void 0:e.element),a=o.ref(null==e?void 0:e.input),i=null!=(t=null==e?void 0:e.styleProp)?t:"height",s=o.ref(1),c=o.ref(0);function l(){var t;if(!n.value)return;let o="";n.value.style[i]="1px",s.value=null==(t=n.value)?void 0:t.scrollHeight;const a=r.toValue(null==e?void 0:e.styleTarget);a?a.style[i]=s.value+"px":o=s.value+"px",n.value.style[i]=o}return o.watch([a,n],()=>o.nextTick(l),{immediate:!0}),o.watch(s,()=>{var t;return null==(t=null==e?void 0:e.onResize)?void 0:t.call(e)}),Ke(n,([{contentRect:e}])=>{c.value!==e.width&&(c.value=e.width,l())}),(null==e?void 0:e.watch)&&o.watch(e.watch,l,{immediate:!0,deep:!0}),{textarea:n,input:a,triggerResize:l}}function Qn(e,t={}){const{throttle:n=200,trailing:o=!0}=t,a=r.throttleFilter(n,o),i=Ue(e,{...t,eventFilter:a});return{...i}}const Zn=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],er={justNow:"just now",past:e=>e.match(/\d/)?e+" ago":e,future:e=>e.match(/\d/)?"in "+e:e,month:(e,t)=>1===e?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>1===e?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>1===e?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>1===e?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""};function tr(e){return e.toISOString().slice(0,10)}function nr(e,t={}){const{controls:n=!1,updateInterval:a=3e4}=t,{now:i,...s}=nn({interval:a,controls:!0}),c=o.computed(()=>rr(new Date(r.toValue(e)),t,r.toValue(i)));return n?{timeAgo:c,...s}:c}function rr(e,t={},n=Date.now()){var r;const{max:o,messages:a=er,fullDateFormatter:i=tr,units:s=Zn,showSecond:c=!1,rounding:l="round"}=t,u="number"===typeof l?e=>+e.toFixed(l):Math[l],d=+n-+e,p=Math.abs(d);function f(e,t){return u(Math.abs(e)/t.value)}function h(e,t){const n=f(e,t),r=e>0,o=m(t.name,n,r);return m(r?"past":"future",o,r)}function m(e,t,n){const r=a[e];return"function"===typeof r?r(t,n):r.replace("{0}",t.toString())}if(p<6e4&&!c)return a.justNow;if("number"===typeof o&&p>o)return i(new Date(e));if("string"===typeof o){const t=null==(r=s.find(e=>e.name===o))?void 0:r.max;if(t&&p>t)return i(new Date(e))}for(const[v,g]of s.entries()){const e=f(d,g);if(e<=0&&s[v-1])return h(d,s[v-1]);if(p<g.max)return h(d,g)}return a.invalid}function or(e,t,n){const{start:a}=r.useTimeoutFn(s,t,{immediate:!1}),i=o.ref(!1);async function s(){i.value&&(await e(),a())}function c(){i.value||(i.value=!0,s())}function l(){i.value=!1}return(null==n?void 0:n.immediate)&&c(),r.tryOnScopeDispose(l),{isActive:i,pause:l,resume:c}}function ar(e={}){const{controls:t=!1,offset:n=0,immediate:a=!0,interval:i="requestAnimationFrame",callback:s}=e,c=o.ref(r.timestamp()+n),l=()=>c.value=r.timestamp()+n,u=s?()=>{l(),s(c.value)}:l,d="requestAnimationFrame"===i?R(u,{immediate:a}):r.useIntervalFn(u,i,{immediate:a});return t?{timestamp:c,...d}:c}function ir(e=null,t={}){var n,a,i;const{document:s=p,restoreOnUnmount:c=(e=>e)}=t,l=null!=(n=null==s?void 0:s.title)?n:"",u=r.toRef(null!=(a=null!=e?e:null==s?void 0:s.title)?a:null),d=e&&"function"===typeof e;function f(e){if(!("titleTemplate"in t))return e;const n=t.titleTemplate||"%s";return"function"===typeof n?n(e):r.toValue(n).replace(/%s/g,e)}return o.watch(u,(e,t)=>{e!==t&&s&&(s.title=f("string"===typeof e?e:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!d&&A(null==(i=s.head)?void 0:i.querySelector("title"),()=>{s&&s.title!==u.value&&(u.value=f(s.title))},{childList:!0}),r.tryOnBeforeUnmount(()=>{if(c){const e=c(l,u.value||"");null!=e&&s&&(s.title=e)}}),u}const sr={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]},cr=Object.assign({},{linear:r.identity},sr);function lr([e,t,n,r]){const o=(e,t)=>1-3*t+3*e,a=(e,t)=>3*t-6*e,i=e=>3*e,s=(e,t,n)=>((o(t,n)*e+a(t,n))*e+i(t))*e,c=(e,t,n)=>3*o(t,n)*e*e+2*a(t,n)*e+i(t),l=t=>{let r=t;for(let o=0;o<4;++o){const o=c(r,e,n);if(0===o)return r;const a=s(r,e,n)-t;r-=a/o}return r};return o=>e===t&&n===r?o:s(l(o),t,r)}function ur(e,t,n){return e+n*(t-e)}function dr(e){return("number"===typeof e?[e]:e)||[]}function pr(e,t,n,o={}){var a,i;const s=r.toValue(t),c=r.toValue(n),l=dr(s),u=dr(c),d=null!=(a=r.toValue(o.duration))?a:1e3,p=Date.now(),f=Date.now()+d,h="function"===typeof o.transition?o.transition:null!=(i=r.toValue(o.transition))?i:r.identity,m="function"===typeof h?h:lr(h);return new Promise(t=>{e.value=s;const n=()=>{var r;if(null==(r=o.abort)?void 0:r.call(o))return void t();const a=Date.now(),i=m((a-p)/d),s=dr(e.value).map((e,t)=>ur(l[t],u[t],i));Array.isArray(e.value)?e.value=s.map((e,t)=>{var n,r;return ur(null!=(n=l[t])?n:0,null!=(r=u[t])?r:0,i)}):"number"===typeof e.value&&(e.value=s[0]),a<f?requestAnimationFrame(n):(e.value=c,t())};n()})}function fr(e,t={}){let n=0;const a=()=>{const t=r.toValue(e);return"number"===typeof t?t:t.map(r.toValue)},i=o.ref(a());return o.watch(a,async e=>{var o,a;if(r.toValue(t.disabled))return;const s=++n;if(t.delay&&await r.promiseTimeout(r.toValue(t.delay)),s!==n)return;const c=Array.isArray(e)?e.map(r.toValue):r.toValue(e);null==(o=t.onStarted)||o.call(t),await pr(i,i.value,c,{...t,abort:()=>{var e;return s!==n||(null==(e=t.abort)?void 0:e.call(t))}}),null==(a=t.onFinished)||a.call(t)},{deep:!0}),o.watch(()=>r.toValue(t.disabled),e=>{e&&(n++,i.value=a())}),r.tryOnScopeDispose(()=>{n++}),o.computed(()=>r.toValue(t.disabled)?a():i.value)}function hr(e="history",t={}){const{initialValue:n={},removeNullishValues:a=!0,removeFalsyValues:i=!1,write:s=!0,window:c=d}=t;if(!c)return o.reactive(n);const l=o.reactive({});function u(){if("history"===e)return c.location.search||"";if("hash"===e){const e=c.location.hash||"",t=e.indexOf("?");return t>0?e.slice(t):""}return(c.location.hash||"").replace(/^#/,"")}function p(t){const n=t.toString();if("history"===e)return`${n?"?"+n:""}${c.location.hash||""}`;if("hash-params"===e)return`${c.location.search||""}${n?"#"+n:""}`;const r=c.location.hash||"#",o=r.indexOf("?");return o>0?`${c.location.search||""}${r.slice(0,o)}${n?"?"+n:""}`:`${c.location.search||""}${r}${n?"?"+n:""}`}function f(){return new URLSearchParams(u())}function h(e){const t=new Set(Object.keys(l));for(const n of e.keys()){const r=e.getAll(n);l[n]=r.length>1?r:e.get(n)||"",t.delete(n)}Array.from(t).forEach(e=>delete l[e])}const{pause:m,resume:g}=r.pausableWatch(l,()=>{const e=new URLSearchParams("");Object.keys(l).forEach(t=>{const n=l[t];Array.isArray(n)?n.forEach(n=>e.append(t,n)):a&&null==n||i&&!n?e.delete(t):e.set(t,n)}),_(e)},{deep:!0});function _(e,t){m(),t&&h(e),c.history.replaceState(c.history.state,c.document.title,c.location.pathname+p(e)),g()}function b(){s&&_(f(),!0)}v(c,"popstate",b,!1),"history"!==e&&v(c,"hashchange",b,!1);const y=f();return y.keys().next().value?h(y):Object.assign(l,n),l}function mr(e={}){var t,n;const a=o.ref(null!=(t=e.enabled)&&t),i=o.ref(null==(n=e.autoSwitch)||n),s=o.ref(e.constraints),{navigator:c=f}=e,l=L(()=>{var e;return null==(e=null==c?void 0:c.mediaDevices)?void 0:e.getUserMedia}),u=o.shallowRef();function d(e){switch(e){case"video":if(s.value)return s.value.video||!1;break;case"audio":if(s.value)return s.value.audio||!1;break}}async function p(){if(l.value&&!u.value)return u.value=await c.mediaDevices.getUserMedia({video:d("video"),audio:d("audio")}),u.value}function h(){var e;null==(e=u.value)||e.getTracks().forEach(e=>e.stop()),u.value=void 0}function m(){h(),a.value=!1}async function v(){return await p(),u.value&&(a.value=!0),u.value}async function g(){return h(),await v()}return o.watch(a,e=>{e?p():h()},{immediate:!0}),o.watch(s,()=>{i.value&&u.value&&g()},{immediate:!0}),r.tryOnScopeDispose(()=>{m()}),{isSupported:l,stream:u,start:v,stop:m,restart:g,constraints:s,enabled:a,autoSwitch:i}}function vr(e,t,n,a={}){var i,s,c;const{clone:l=!1,passive:u=!1,eventName:d,deep:p=!1,defaultValue:f,shouldEmit:h}=a,m=o.getCurrentInstance(),v=n||(null==m?void 0:m.emit)||(null==(i=null==m?void 0:m.$emit)?void 0:i.bind(m))||(null==(c=null==(s=null==m?void 0:m.proxy)?void 0:s.$emit)?void 0:c.bind(null==m?void 0:m.proxy));let g=d;t||(t="modelValue"),g=g||"update:"+t.toString();const _=e=>l?"function"===typeof l?l(e):fe(e):e,b=()=>r.isDef(e[t])?_(e[t]):f,y=e=>{h?h(e)&&v(g,e):v(g,e)};if(u){const n=b(),r=o.ref(n);let a=!1;return o.watch(()=>e[t],e=>{a||(a=!0,r.value=_(e),o.nextTick(()=>a=!1))}),o.watch(r,n=>{a||n===e[t]&&!p||y(n)},{deep:p}),r}return o.computed({get(){return b()},set(e){y(e)}})}function gr(e,t,n={}){const r={};for(const o in e)r[o]=vr(e,o,t,n);return r}function _r(e){const{pattern:t=[],interval:n=0,navigator:o=f}=e||{},a=L(()=>"undefined"!==typeof o&&"vibrate"in o),i=r.toRef(t);let s;const c=(e=i.value)=>{a.value&&o.vibrate(e)},l=()=>{a.value&&o.vibrate(0),null==s||s.pause()};return n>0&&(s=r.useIntervalFn(c,n,{immediate:!1,immediateCallback:!1})),{isSupported:a,pattern:t,intervalControls:s,vibrate:c,stop:l}}function br(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:a,currentList:i,containerRef:s}="itemHeight"in t?jr(t,e):Er(t,e);return{list:i,scrollTo:o,containerProps:{ref:s,onScroll:()=>{a()},style:n},wrapperProps:r}}function yr(e){const t=o.ref(null),n=Qe(t),r=o.ref([]),a=o.shallowRef(e),i=o.ref({start:0,end:10});return{state:i,source:a,currentList:r,size:n,containerRef:t}}function Or(e,t,n){return r=>{if("number"===typeof n)return Math.ceil(r/n);const{start:o=0}=e.value;let a=0,i=0;for(let e=o;e<t.value.length;e++){const t=n(e);if(a+=t,i=e,a>r)break}return i-o}}function Mr(e,t){return n=>{if("number"===typeof t)return Math.floor(n/t)+1;let r=0,o=0;for(let a=0;a<e.value.length;a++){const e=t(a);if(r+=e,r>=n){o=a;break}}return o+1}}function kr(e,t,n,r,{containerRef:o,state:a,currentList:i,source:s}){return()=>{const c=o.value;if(c){const o=n("vertical"===e?c.scrollTop:c.scrollLeft),l=r("vertical"===e?c.clientHeight:c.clientWidth),u=o-t,d=o+l+t;a.value={start:u<0?0:u,end:d>s.value.length?s.value.length:d},i.value=s.value.slice(a.value.start,a.value.end).map((e,t)=>({data:e,index:t+a.value.start}))}}}function Cr(e,t){return n=>{if("number"===typeof e){const t=n*e;return t}const r=t.value.slice(0,n).reduce((t,n,r)=>t+e(r),0);return r}}function wr(e,t,n,r){o.watch([e.width,e.height,t,n],()=>{r()})}function Sr(e,t){return o.computed(()=>"number"===typeof e?t.value.length*e:t.value.reduce((t,n,r)=>t+e(r),0))}const Tr={horizontal:"scrollLeft",vertical:"scrollTop"};function Ir(e,t,n,r){return o=>{r.value&&(r.value[Tr[e]]=n(o),t())}}function Er(e,t){const n=yr(t),{state:r,source:a,currentList:i,size:s,containerRef:c}=n,l={overflowX:"auto"},{itemWidth:u,overscan:d=5}=e,p=Or(r,a,u),f=Mr(a,u),h=kr("horizontal",d,f,p,n),m=Cr(u,a),v=o.computed(()=>m(r.value.start)),g=Sr(u,a);wr(s,t,c,h);const _=Ir("horizontal",h,m,c),b=o.computed(()=>({style:{height:"100%",width:g.value-v.value+"px",marginLeft:v.value+"px",display:"flex"}}));return{scrollTo:_,calculateRange:h,wrapperProps:b,containerStyle:l,currentList:i,containerRef:c}}function jr(e,t){const n=yr(t),{state:r,source:a,currentList:i,size:s,containerRef:c}=n,l={overflowY:"auto"},{itemHeight:u,overscan:d=5}=e,p=Or(r,a,u),f=Mr(a,u),h=kr("vertical",d,f,p,n),m=Cr(u,a),v=o.computed(()=>m(r.value.start)),g=Sr(u,a);wr(s,t,c,h);const _=Ir("vertical",h,m,c),b=o.computed(()=>({style:{width:"100%",height:g.value-v.value+"px",marginTop:v.value+"px"}}));return{calculateRange:h,scrollTo:_,containerStyle:l,wrapperProps:b,currentList:i,containerRef:c}}function Dr(e={}){const{navigator:t=f,document:n=p}=e,a=o.ref(!1),i=o.shallowRef(null),s=ze({document:n}),c=L(()=>t&&"wakeLock"in t),l=o.computed(()=>!!i.value&&"visible"===s.value);async function u(e){var n;await(null==(n=i.value)?void 0:n.release()),i.value=c.value?await t.wakeLock.request(e):null}async function d(e){"visible"===s.value?await u(e):a.value=e}async function h(){a.value=!1;const e=i.value;i.value=null,await(null==e?void 0:e.release())}return c.value&&(v(i,"release",()=>{var e,t;a.value=null!=(t=null==(e=i.value)?void 0:e.type)&&t}),r.whenever(()=>"visible"===s.value&&"visible"===(null==n?void 0:n.visibilityState)&&a.value,e=>{a.value=!1,u(e)})),{sentinel:i,isSupported:c,isActive:l,request:d,forceRequest:u,release:h}}function Lr(e={}){const{window:t=d,requestPermissions:n=!0}=e,a=e,i=L(()=>{if(!t||!("Notification"in t))return!1;try{new Notification("")}catch(e){return!1}return!0}),s=o.ref(i.value&&"permission"in Notification&&"granted"===Notification.permission),c=o.ref(null),l=async()=>{if(i.value){if(!s.value&&"denied"!==Notification.permission){const e=await Notification.requestPermission();"granted"===e&&(s.value=!0)}return s.value}},{on:u,trigger:p}=r.createEventHook(),{on:f,trigger:h}=r.createEventHook(),{on:m,trigger:g}=r.createEventHook(),{on:_,trigger:b}=r.createEventHook(),y=async e=>{if(!i.value||!s.value)return;const t=Object.assign({},a,e);return c.value=new Notification(t.title||"",t),c.value.onclick=p,c.value.onshow=h,c.value.onerror=g,c.value.onclose=b,c.value},O=()=>{c.value&&c.value.close(),c.value=null};if(n&&r.tryOnMounted(l),r.tryOnScopeDispose(O),i.value&&t){const e=t.document;v(e,"visibilitychange",t=>{t.preventDefault(),"visible"===e.visibilityState&&O()})}return{isSupported:i,notification:c,ensurePermissions:l,permissionGranted:s,show:y,close:O,onClick:u,onShow:f,onError:m,onClose:_}}const Ar="ping";function Nr(e){return!0===e?{}:e}function Rr(e,t={}){const{onConnected:n,onDisconnected:a,onError:i,onMessage:s,immediate:c=!0,autoClose:l=!0,protocols:u=[]}=t,d=o.ref(null),p=o.ref("CLOSED"),f=o.ref(),h=r.toRef(e);let m,g,_,b=!1,y=0,O=[];const M=()=>{if(O.length&&f.value&&"OPEN"===p.value){for(const e of O)f.value.send(e);O=[]}},k=()=>{clearTimeout(_),_=void 0},C=(e=1e3,t)=>{r.isClient&&f.value&&(b=!0,k(),null==m||m(),f.value.close(e,t),f.value=void 0)},w=(e,t=!0)=>f.value&&"OPEN"===p.value?(M(),f.value.send(e),!0):(t&&O.push(e),!1),S=()=>{if(b||"undefined"===typeof h.value)return;const e=new WebSocket(h.value,u);f.value=e,p.value="CONNECTING",e.onopen=()=>{p.value="OPEN",y=0,null==n||n(e),null==g||g(),M()},e.onclose=n=>{if(p.value="CLOSED",null==a||a(e,n),!b&&t.autoReconnect&&(null==f.value||e===f.value)){const{retries:e=-1,delay:n=1e3,onFailed:r}=Nr(t.autoReconnect);"number"===typeof e&&(e<0||y<e)?(y+=1,setTimeout(S,n)):"function"===typeof e&&e()?setTimeout(S,n):null==r||r()}},e.onerror=t=>{null==i||i(e,t)},e.onmessage=n=>{if(t.heartbeat){k();const{message:e=Ar,responseMessage:r=e}=Nr(t.heartbeat);if(n.data===r)return}d.value=n.data,null==s||s(e,n)}};if(t.heartbeat){const{message:e=Ar,interval:n=1e3,pongTimeout:o=1e3}=Nr(t.heartbeat),{pause:a,resume:i}=r.useIntervalFn(()=>{w(e,!1),null==_&&(_=setTimeout(()=>{C(),b=!1},o))},n,{immediate:!1});m=a,g=i}l&&(r.isClient&&v("beforeunload",()=>C()),r.tryOnScopeDispose(C));const T=()=>{(r.isClient||r.isWorker)&&(C(),b=!1,y=0,S())};return c&&T(),o.watch(h,T),{data:d,status:p,close:C,send:w,open:T,ws:f}}function xr(e,t,n){const{window:a=d}=null!=n?n:{},i=o.ref(null),s=o.shallowRef(),c=(...e)=>{s.value&&s.value.postMessage(...e)},l=function(){s.value&&s.value.terminate()};return a&&(s.value="string"===typeof e?new Worker(e,t):"function"===typeof e?e():e,s.value.onmessage=e=>{i.value=e.data},r.tryOnScopeDispose(()=>{s.value&&s.value.terminate()})),{data:i,post:c,terminate:l,worker:s}}function Pr(e,t){if(0===e.length&&0===t.length)return"";const n=e.map(e=>`'${e}'`).toString(),r=t.filter(e=>"function"===typeof e).map(e=>{const t=e.toString();if(t.trim().startsWith("function"))return t;{const n=e.name;return`const ${n} = ${t}`}}).join(";"),o=`importScripts(${n});`;return`${""===n.trim()?"":o} ${r}`}function Ur(e){return t=>{const n=t.data[0];return Promise.resolve(e.apply(void 0,n)).then(e=>{postMessage(["SUCCESS",e])}).catch(e=>{postMessage(["ERROR",e])})}}function Vr(e,t,n){const r=`${Pr(t,n)}; onmessage=(${Ur})(${e})`,o=new Blob([r],{type:"text/javascript"}),a=URL.createObjectURL(o);return a}function Br(e,t={}){const{dependencies:n=[],localDependencies:a=[],timeout:i,window:s=d}=t,c=o.ref(),l=o.ref("PENDING"),u=o.ref({}),p=o.ref(),f=(e="PENDING")=>{c.value&&c.value._url&&s&&(c.value.terminate(),URL.revokeObjectURL(c.value._url),u.value={},c.value=void 0,s.clearTimeout(p.value),l.value=e)};f(),r.tryOnScopeDispose(f);const h=()=>{const t=Vr(e,n,a),r=new Worker(t);return r._url=t,r.onmessage=e=>{const{resolve:t=(()=>{}),reject:n=(()=>{})}=u.value,[r,o]=e.data;switch(r){case"SUCCESS":t(o),f(r);break;default:n(o),f("ERROR");break}},r.onerror=e=>{const{reject:t=(()=>{})}=u.value;e.preventDefault(),t(e),f("ERROR")},i&&(p.value=setTimeout(()=>f("TIMEOUT_EXPIRED"),i)),r},m=(...e)=>new Promise((t,n)=>{var r;u.value={resolve:t,reject:n},null==(r=c.value)||r.postMessage([[...e]]),l.value="RUNNING"}),v=(...e)=>"RUNNING"===l.value?(console.error("[useWebWorkerFn] You can only run one instance of the worker at a time."),Promise.reject()):(c.value=h(),m(...e));return{workerFn:v,workerStatus:l,workerTerminate:f}}function Fr(e={}){const{window:t=d}=e;if(!t)return o.ref(!1);const n=o.ref(t.document.hasFocus());return v(t,"blur",()=>{n.value=!1}),v(t,"focus",()=>{n.value=!0}),n}function Gr(e={}){const{window:t=d,behavior:n="auto"}=e;if(!t)return{x:o.ref(0),y:o.ref(0)};const r=o.ref(t.scrollX),a=o.ref(t.scrollY),i=o.computed({get(){return r.value},set(e){scrollTo({left:e,behavior:n})}}),s=o.computed({get(){return a.value},set(e){scrollTo({top:e,behavior:n})}});return v(t,"scroll",()=>{r.value=t.scrollX,a.value=t.scrollY},{capture:!1,passive:!0}),{x:i,y:s}}function Hr(e={}){const{window:t=d,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:a=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:s=!0,type:c="inner"}=e,l=o.ref(n),u=o.ref(a),p=()=>{t&&("outer"===c?(l.value=t.outerWidth,u.value=t.outerHeight):s?(l.value=t.innerWidth,u.value=t.innerHeight):(l.value=t.document.documentElement.clientWidth,u.value=t.document.documentElement.clientHeight))};if(p(),r.tryOnMounted(p),v("resize",p,{passive:!0}),i){const e=W("(orientation: portrait)");o.watch(e,()=>p())}return{width:l,height:u}}t.DefaultMagicKeysAliasMap=Ft,t.StorageSerializers=ke,t.TransitionPresets=cr,t.asyncComputed=a,t.breakpointsAntDesign=Z,t.breakpointsBootstrapV5=$,t.breakpointsElement=oe,t.breakpointsMasterCss=ne,t.breakpointsPrimeFlex=re,t.breakpointsQuasar=ee,t.breakpointsSematic=te,t.breakpointsTailwind=K,t.breakpointsVuetify=Q,t.breakpointsVuetifyV2=J,t.breakpointsVuetifyV3=X,t.cloneFnJSON=fe,t.computedAsync=a,t.computedInject=i,t.createFetch=ft,t.createReusableTemplate=s,t.createTemplatePromise=l,t.createUnrefFn=u,t.customStorageEventName=Ce,t.defaultDocument=p,t.defaultLocation=h,t.defaultNavigator=f,t.defaultWindow=d,t.executeTransition=pr,t.formatTimeAgo=rr,t.getSSRHandler=be,t.mapGamepadToXbox360Controller=St,t.onClickOutside=_,t.onKeyDown=O,t.onKeyPressed=M,t.onKeyStroke=y,t.onKeyUp=k,t.onLongPress=S,t.onStartTyping=E,t.setSSRHandler=ye,t.templateRef=j,t.unrefElement=m,t.useActiveElement=N,t.useAnimate=x,t.useAsyncQueue=P,t.useAsyncState=V,t.useBase64=G,t.useBattery=z,t.useBluetooth=q,t.useBreakpoints=ae,t.useBroadcastChannel=ie,t.useBrowserLocation=ce,t.useCached=le,t.useClipboard=de,t.useClipboardItems=pe,t.useCloned=he,t.useColorMode=Te,t.useConfirmDialog=Ie,t.useCssVar=Ee,t.useCurrentElement=je,t.useCycleList=De,t.useDark=Le,t.useDebouncedRefHistory=Ve,t.useDeviceMotion=Be,t.useDeviceOrientation=Fe,t.useDevicePixelRatio=Ge,t.useDevicesList=He,t.useDisplayMedia=Ye,t.useDocumentVisibility=ze,t.useDraggable=qe,t.useDropZone=We,t.useElementBounding=$e,t.useElementByPoint=Je,t.useElementHover=Xe,t.useElementSize=Qe,t.useElementVisibility=et,t.useEventBus=nt,t.useEventListener=v,t.useEventSource=ot,t.useEyeDropper=at,t.useFavicon=it,t.useFetch=ht,t.useFileDialog=gt,t.useFileSystemAccess=_t,t.useFocus=bt,t.useFocusWithin=Mt,t.useFps=kt,t.useFullscreen=wt,t.useGamepad=Tt,t.useGeolocation=It,t.useIdle=Dt,t.useImage=At,t.useInfiniteScroll=Pt,t.useIntersectionObserver=Ze,t.useKeyModifier=Vt,t.useLocalStorage=Bt,t.useMagicKeys=Gt,t.useManualRefHistory=Pe,t.useMediaControls=Wt,t.useMediaQuery=W,t.useMemoize=Kt,t.useMemory=$t,t.useMounted=D,t.useMouse=Xt,t.useMouseInElement=Qt,t.useMousePressed=Zt,t.useMutationObserver=A,t.useNavigatorLanguage=en,t.useNetwork=tn,t.useNow=nn,t.useObjectUrl=rn,t.useOffsetPagination=an,t.useOnline=sn,t.usePageLeave=cn,t.useParallax=un,t.useParentElement=dn,t.usePerformanceObserver=pn,t.usePermission=ue,t.usePointer=mn,t.usePointerLock=vn,t.usePointerSwipe=gn,t.usePreferredColorScheme=_n,t.usePreferredContrast=bn,t.usePreferredDark=Oe,t.usePreferredLanguages=yn,t.usePreferredReducedMotion=On,t.usePrevious=Mn,t.useRafFn=R,t.useRefHistory=Ue,t.useResizeObserver=Ke,t.useScreenOrientation=ln,t.useScreenSafeArea=Tn,t.useScriptTag=En,t.useScroll=xt,t.useScrollLock=An,t.useSessionStorage=Nn,t.useShare=Rn,t.useSorted=Un,t.useSpeechRecognition=Vn,t.useSpeechSynthesis=Bn,t.useStepper=Fn,t.useStorage=we,t.useStorageAsync=Gn,t.useStyleTag=Yn,t.useSupported=L,t.useSwipe=zn,t.useTemplateRefsList=Wn,t.useTextDirection=Kn,t.useTextSelection=Jn,t.useTextareaAutosize=Xn,t.useThrottledRefHistory=Qn,t.useTimeAgo=nr,t.useTimeoutPoll=or,t.useTimestamp=ar,t.useTitle=ir,t.useTransition=fr,t.useUrlSearchParams=hr,t.useUserMedia=mr,t.useVModel=vr,t.useVModels=gr,t.useVibrate=_r,t.useVirtualList=br,t.useWakeLock=Dr,t.useWebNotification=Lr,t.useWebSocket=Rr,t.useWebWorker=xr,t.useWebWorkerFn=Br,t.useWindowFocus=Fr,t.useWindowScroll=Gr,t.useWindowSize=Hr,Object.keys(r).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}))}).call(this,n("c8ba"))},"0974":function(e,t,n){"use strict";var r=n("e477");e.exports=r},"0a06":function(e,t,n){"use strict";var r=n("c532"),o=n("30b5"),a=n("f6b49"),i=n("5270"),s=n("4a7b"),c=n("848b"),l=c.validators;function u(e){this.defaults=e,this.interceptors={request:new a,response:new a}}u.prototype.request=function(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var a,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!o){var d=[i,void 0];Array.prototype.unshift.apply(d,r),d=d.concat(u),a=Promise.resolve(t);while(d.length)a=a.then(d.shift(),d.shift());return a}var p=t;while(r.length){var f=r.shift(),h=r.shift();try{p=f(p)}catch(m){h(m);break}}try{a=i(p)}catch(m){return Promise.reject(m)}while(u.length)a=a.then(u.shift(),u.shift());return a},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},"0a08":function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return f}));var r=n("3b4c"),o=n.n(r),a=n("0931"),i=n("83ec"),s=n("8afb"),c=n("7a23");const l={current:0},u=Object(c["ref"])(0),d=2e3,p=o()("elZIndexContextKey"),f=o()("zIndexContextKey"),h=e=>{const t=Object(c["getCurrentInstance"])()?Object(c["inject"])(p,l):l,n=e||(Object(c["getCurrentInstance"])()?Object(c["inject"])(f,void 0):void 0),r=Object(c["computed"])(()=>{const e=Object(c["unref"])(n);return Object(i["d"])(e)?e:d}),o=Object(c["computed"])(()=>r.value+u.value),h=()=>(t.current++,u.value=t.current,o.value);return a["isClient"]||Object(c["inject"])(p)||Object(s["a"])("ZIndexInjection","Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed\nusage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })"),{initialZIndex:r,currentZIndex:o,nextZIndex:h}}},"0a3c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return a}))},"0a43":function(e,t,n){"use strict";var r=n("3876");e.exports=r},"0a84":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return t}))},"0aa1":function(e,t,n){"use strict";var r=n("a5eb"),o=n("4fff"),a=n("a016"),i=n("06fa"),s=i((function(){a(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return a(o(e))}})},"0b1d":function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e}},"0b25":function(e,t,n){"use strict";var r=n("5926"),o=n("50c4"),a=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw new a("Wrong length or index");return n}},"0b7b":function(e,t,n){"use strict";var r=n("8f95"),o=n("f8b6"),a=n("0b1d"),i=n("7463"),s=n("0363"),c=s("iterator");e.exports=function(e){if(!a(e))return o(e,c)||o(e,"@@iterator")||i[r(e)]}},"0c1f":function(e,t,n){"use strict";var r=n("a5eb"),o=n("b1bc").end,a=n("cd24");r({target:"String",proto:!0,forced:a},{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"0c24":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return m}));var r=n("14b1"),o=n.n(r),a=n("8b9c"),i=n.n(a),s=n("493c"),c=n.n(s),l=n("7d20"),u=n("d095");const d=e=>{const t=e.props,n=Object(l["isArray"])(t)?Object(u["fromPairs"])(o()(t).call(t,e=>[e,{}])):t;e.setPropsDefaults=t=>{if(n){for(const[e,r]of i()(t)){const t=n[e];Object(l["hasOwn"])(n,e)&&(Object(u["isPlainObject"])(t)?n[e]={...t,default:r}:n[e]={type:t,default:r})}e.props=n}}},p=(e,t)=>{if(e.install=n=>{for(const r of[e,...c()(null!==t&&void 0!==t?t:{})])n.component(r.name,r)},t)for(const[n,r]of i()(t))e[n]=r;return d(e),e},f=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),h=(e,t)=>(e.install=n=>{n.directive(t,e)},e),m=e=>(e.install=l["NOOP"],d(e),e)},"0c33":function(e,t,n){"use strict";n("25a6");var r=n("c18e");e.exports=r("Array","some")},"0c57":function(e,t,n){"use strict";var r=n("a5eb"),o=n("7042"),a=n("baa7").CONSTRUCTOR,i=n("96ed"),s=n("9883"),c=n("fb2d"),l=n("fdbe"),u=i&&i.prototype;if(r({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&c(i)){var d=s("Promise").prototype["catch"];u["catch"]!==d&&l(u,"catch",d,{unsafe:!0})}},"0c82":function(e,t,n){"use strict";n("b288")},"0c9f":function(e,t,n){"use strict";var r=n("7106"),o=n("0e6f"),a=n("437b"),i=n("3a45"),s=n("2e13"),c=RegExp.prototype;e.exports=i.correct?function(e){return e.flags}:function(e){return i.correct||!a(c,e)||o(e,"flags")?e.flags:r(s,e)}},"0ca2":function(e,t,n){"use strict";n("e219");var r=n("764b");e.exports=r.parseFloat},"0caa":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var o={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?o[n][0]:o[n][1]}var n=e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}});return n}))},"0cae":function(e,t,n){"use strict";var r=n("a5eb"),o=n("3eba"),a=n("6594"),i=n("7106"),s=n("06fa"),c=n("0273"),l=n("5b57"),u=n("5f7d"),d=n("fb2d"),p=n("dfdb"),f=n("0b1d"),h=n("2874"),m=n("4180").f,v=n("dee0").forEach,g=n("c1b2"),_=n("2f5a"),b=_.set,y=_.getterFor;e.exports=function(e,t,n){var _,O=-1!==e.indexOf("Map"),M=-1!==e.indexOf("Weak"),k=O?"set":"add",C=o[e],w=C&&C.prototype,S={};if(g&&d(C)&&(M||w.forEach&&!s((function(){(new C).entries().next()})))){_=t((function(t,n){b(u(t,T),{type:e,collection:new C}),f(n)||l(n,t[k],{that:t,AS_ENTRIES:O})}));var T=_.prototype,I=y(e);v(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"===e||"set"===e;!(e in w)||M&&"clear"===e||c(T,e,(function(n,r){var o=this,a=I(o).collection;if(!t&&M&&!p(n))return"get"===e&&void 0;var s=a[e]("forEach"===e?function(e,t){i(n,r,e,t,o)}:0===n?0:n,r);return t?o:s}))})),M||m(T,"size",{configurable:!0,get:function(){return I(this).collection.size}})}else _=n.getConstructor(t,e,O,k),a.enable();return h(_,e,!1,!0),S[e]=_,r({global:!0,forced:!0},S),M||n.setStrong(_,e,O),_}},"0cf0":function(e,t,n){"use strict";var r=n("b323"),o=n("9e57"),a=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},"0cfb":function(e,t,n){"use strict";var r=n("83ab"),o=n("d039"),a=n("cc12");e.exports=!r&&!o((function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},"0cfd":function(e,t,n){"use strict";var r=n("ce18"),o=n("0e6f"),a=SyntaxError,i=parseInt,s=String.fromCharCode,c=r("".charAt),l=r("".slice),u=r(/./.exec),d={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},p=/^[\da-f]{4}$/i,f=/^[\u0000-\u001F]$/;e.exports=function(e,t){var n=!0,r="";while(t<e.length){var h=c(e,t);if("\\"===h){var m=l(e,t,t+2);if(o(d,m))r+=d[m],t+=2;else{if("\\u"!==m)throw new a('Unknown escape sequence: "'+m+'"');t+=2;var v=l(e,t,t+4);if(!u(p,v))throw new a("Bad Unicode escape at: "+t);r+=s(i(v,16)),t+=4}}else{if('"'===h){n=!1,t++;break}if(u(f,h))throw new a("Bad control character in string literal at: "+t);r+=h,t++}}if(n)throw new a("Unterminated string at: "+t);return{value:r,end:t}}},"0d25":function(e,t,n){"use strict";e.exports=TypeError},"0d26":function(e,t,n){"use strict";var r=n("a902");e.exports=r},"0d26b":function(e,t,n){"use strict";var r=n("e330"),o=Error,a=r("".replace),i=function(e){return String(new o(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(i);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)while(t--)e=a(e,s,"");return e}},"0d51":function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},"0d79":function(e,t,n){"use strict";var r=n("8b9e");e.exports=r},"0dc8":function(e,t,n){e.exports=n("fc754")},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e43":function(e,t,n){"use strict";var r=n("a38c");e.exports=r},"0e49":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourdhui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return t}))},"0e62":function(e,t,n){"use strict";n("e904");var r=n("764b");e.exports=r.Number.isNaN},"0e67":function(e,t,n){"use strict";var r=n("f94a");r("iterator")},"0e69":function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return C})),n.d(t,"c",(function(){return M})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return O})),n.d(t,"f",(function(){return k}));n("d9e2");var r=n("e4f0"),o=n.n(r),a=n("44a4"),i=n.n(a),s=n("9a73"),c=n.n(s),l=n("4573"),u=n.n(l),d=n("9885"),p=n("0931"),f=n("7d20"),h=n("83ec"),m=n("bfce"),v=n("8afb");const g="utils/dom/style",_=(e="")=>{var t;return o()(t=e.split(" ")).call(t,e=>!!i()(e).call(e))},b=(e,t)=>{if(!e||!t)return!1;if(c()(t).call(t," "))throw new Error("className should not contain space.");return e.classList.contains(t)},y=(e,t)=>{e&&i()(t).call(t)&&e.classList.add(..._(t))},O=(e,t)=>{e&&i()(t).call(t)&&e.classList.remove(..._(t))},M=(e,t)=>{if(!p["isClient"]||!e||!t||Object(d["f"])(e))return"";let n=Object(f["camelize"])(t);"float"===n&&(n="cssFloat");try{var r;const t=e.style[n];if(t)return t;const o=null===(r=document.defaultView)||void 0===r?void 0:r.getComputedStyle(e,"");return o?o[n]:""}catch{return e.style[n]}},k=(e,t,n)=>{var r;if(e&&t)if(Object(f["isObject"])(t))u()(r=Object(m["a"])(t)).call(r,([t,n])=>k(e,t,n));else{const r=Object(f["camelize"])(t);e.style[r]=n}};function C(e,t="px"){return e||0===e?Object(h["d"])(e)||Object(h["f"])(e)?`${e}${t}`:Object(f["isString"])(e)?e:void Object(v["a"])(g,"binding value must be a string or number"):""}},"0e6b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:0,doy:4}});return t}))},"0e6f":function(e,t,n){"use strict";var r=n("ce18"),o=n("4fff"),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(o(e),t)}},"0e81":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},n=e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10,o=e%100-r,a=e>=100?100:null;return e+(t[r]||t[o]||t[a])}},week:{dow:1,doy:7}});return n}))},"0ed2":function(e,t,n){"use strict";var r=n("b15d"),o=n("30d3"),a=n("99fa"),i=n("71c3");e.exports=function(e){var t=r(this),n=i(e);return!(o(t)>n.size)&&!1!==a(t,(function(e){if(!n.includes(e))return!1}),!0)}},"0f14":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"0f33":function(e,t,n){"use strict";var r=n("cfe9"),o=n("d039"),a=r.RegExp,i=!o((function(){var e=!0;try{a(".","d")}catch(l){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(i.hasIndices="d"),i)o(s,i[s]);var c=Object.getOwnPropertyDescriptor(a.prototype,"flags").get.call(t);return c!==r||n!==r}));e.exports={correct:i}},"0f38":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},"0f3d":function(e,t,n){"use strict";(function(e){function n(){return n=Object.assign?Object.assign.bind():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},n.apply(this,arguments)}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function i(){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 s(e,t,n){return s=i()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=Function.bind.apply(e,r),i=new o;return n&&a(i,n.prototype),i},s.apply(null,arguments)}function c(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function l(e){var t="function"===typeof Map?new Map:void 0;return l=function(e){if(null===e||!c(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 s(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,e)},l(e)}Object.defineProperty(t,"__esModule",{value:!0});var u=/%[sdj%]/g,d=function(){};function p(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if("function"===typeof e)return e.apply(null,n);if("string"===typeof e){var i=e.replace(u,(function(e){if("%%"===e)return"%";if(o>=a)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}}));return i}return e}function h(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}function m(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!h(t)||"string"!==typeof e||e))}function v(e,t,n){var r=[],o=0,a=e.length;function i(e){r.push.apply(r,e||[]),o++,o===a&&n(r)}e.forEach((function(e){t(e,i)}))}function g(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length)n(i);else{var s=r;r+=1,s<o?t(e[s],a):n([])}}a([])}function _(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}"undefined"!==typeof e&&Object({NODE_ENV:"production",BASE_URL:""});var b=function(e){function t(t,n){var r;return r=e.call(this,"Async Validation Error")||this,r.errors=t,r.fields=n,r}return r(t,e),t}(l(Error));function y(e,t,n,r,o){if(t.first){var a=new Promise((function(t,a){var i=function(e){return r(e),e.length?a(new b(e,p(e))):t(o)},s=_(e);g(s,n,i)}));return a["catch"]((function(e){return e})),a}var i=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,l=0,u=[],d=new Promise((function(t,a){var d=function(e){if(u.push.apply(u,e),l++,l===c)return r(u),u.length?a(new b(u,p(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?g(r,n,d):v(r,n,d)}))}));return d["catch"]((function(e){return e})),d}function O(e){return!(!e||void 0===e.message)}function M(e,t){for(var n=e,r=0;r<t.length;r++){if(void 0==n)return n;n=n[t[r]]}return n}function k(e,t){return function(n){var r;return r=e.fullFields?M(t,e.fullFields):t[n.field||e.fullField],O(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"===typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function C(e,t){if(t)for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];"object"===typeof o&&"object"===typeof e[r]?e[r]=n({},e[r],o):e[r]=o}return e}var w,S=function(e,t,n,r,o,a){!e.required||n.hasOwnProperty(e.field)&&!m(t,a||e.type)||r.push(f(o.messages.required,e.fullField))},T=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(f(o.messages.whitespace,e.fullField))},I=function(){if(w)return w;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),c=function(e){return e&&e.exact?a:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};c.v4=function(e){return e&&e.exact?i:new RegExp(""+t(e)+n+t(e),"g")},c.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+o+t(e),"g")};var l="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=c.v4().source,p=c.v6().source,f="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',_="(?:"+l+"|www\\.)"+u+"(?:localhost|"+d+"|"+p+"|"+f+h+m+")"+v+g;return w=new RegExp("(?:^"+_+"$)","i"),w},E={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},j={integer:function(e){return j.number(e)&&parseInt(e,10)===e},float:function(e){return j.number(e)&&!j.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&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!j.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(E.email)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(I())},hex:function(e){return"string"===typeof e&&!!e.match(E.hex)}},D=function(e,t,n,r,o){if(e.required&&void 0===t)S(e,t,n,r,o);else{var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=e.type;a.indexOf(i)>-1?j[i](t)||r.push(f(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(f(o.messages.types[i],e.fullField,e.type))}},L=function(e,t,n,r,o){var a="number"===typeof e.len,i="number"===typeof e.min,s="number"===typeof e.max,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,u=null,d="number"===typeof t,p="string"===typeof t,h=Array.isArray(t);if(d?u="number":p?u="string":h&&(u="array"),!u)return!1;h&&(l=t.length),p&&(l=t.replace(c,"_").length),a?l!==e.len&&r.push(f(o.messages[u].len,e.fullField,e.len)):i&&!s&&l<e.min?r.push(f(o.messages[u].min,e.fullField,e.min)):s&&!i&&l>e.max?r.push(f(o.messages[u].max,e.fullField,e.max)):i&&s&&(l<e.min||l>e.max)&&r.push(f(o.messages[u].range,e.fullField,e.min,e.max))},A="enum",N=function(e,t,n,r,o){e[A]=Array.isArray(e[A])?e[A]:[],-1===e[A].indexOf(t)&&r.push(f(o.messages[A],e.fullField,e[A].join(", ")))},R=function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(f(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var a=new RegExp(e.pattern);a.test(t)||r.push(f(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}},x={required:S,whitespace:T,type:D,range:L,enum:N,pattern:R},P=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t,"string")&&!e.required)return n();x.required(e,t,r,a,o,"string"),m(t,"string")||(x.type(e,t,r,a,o),x.range(e,t,r,a,o),x.pattern(e,t,r,a,o),!0===e.whitespace&&x.whitespace(e,t,r,a,o))}n(a)},U=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t)&&!e.required)return n();x.required(e,t,r,a,o),void 0!==t&&x.type(e,t,r,a,o)}n(a)},V=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(""===t&&(t=void 0),m(t)&&!e.required)return n();x.required(e,t,r,a,o),void 0!==t&&(x.type(e,t,r,a,o),x.range(e,t,r,a,o))}n(a)},B=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t)&&!e.required)return n();x.required(e,t,r,a,o),void 0!==t&&x.type(e,t,r,a,o)}n(a)},F=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t)&&!e.required)return n();x.required(e,t,r,a,o),m(t)||x.type(e,t,r,a,o)}n(a)},G=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t)&&!e.required)return n();x.required(e,t,r,a,o),void 0!==t&&(x.type(e,t,r,a,o),x.range(e,t,r,a,o))}n(a)},H=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t)&&!e.required)return n();x.required(e,t,r,a,o),void 0!==t&&(x.type(e,t,r,a,o),x.range(e,t,r,a,o))}n(a)},Y=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if((void 0===t||null===t)&&!e.required)return n();x.required(e,t,r,a,o,"array"),void 0!==t&&null!==t&&(x.type(e,t,r,a,o),x.range(e,t,r,a,o))}n(a)},z=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t)&&!e.required)return n();x.required(e,t,r,a,o),void 0!==t&&x.type(e,t,r,a,o)}n(a)},q="enum",W=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t)&&!e.required)return n();x.required(e,t,r,a,o),void 0!==t&&x[q](e,t,r,a,o)}n(a)},K=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t,"string")&&!e.required)return n();x.required(e,t,r,a,o),m(t,"string")||x.pattern(e,t,r,a,o)}n(a)},$=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t,"date")&&!e.required)return n();var s;if(x.required(e,t,r,a,o),!m(t,"date"))s=t instanceof Date?t:new Date(t),x.type(e,s,r,a,o),s&&x.range(e,s.getTime(),r,a,o)}n(a)},J=function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":typeof t;x.required(e,t,r,a,o,i),n(a)},X=function(e,t,n,r,o){var a=e.type,i=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(m(t,a)&&!e.required)return n();x.required(e,t,r,i,o,a),m(t,a)||x.type(e,t,r,i,o)}n(i)},Q=function(e,t,n,r,o){var a=[],i=e.required||!e.required&&r.hasOwnProperty(e.field);if(i){if(m(t)&&!e.required)return n();x.required(e,t,r,a,o)}n(a)},Z={string:P,method:U,number:V,boolean:B,regexp:F,integer:G,float:H,array:Y,object:z,enum:W,pattern:K,date:$,url:X,hex:X,email:X,required:J,any:Q};function ee(){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 te=ee(),ne=function(){function e(e){this.rules=null,this._messages=te,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=C(ee(),e)),this._messages},t.validate=function(t,r,o){var a=this;void 0===r&&(r={}),void 0===o&&(o=function(){});var i=t,s=r,c=o;if("function"===typeof s&&(c=s,s={}),!this.rules||0===Object.keys(this.rules).length)return c&&c(null,i),Promise.resolve(i);function l(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var o=0;o<e.length;o++)r(e[o]);t.length?(n=p(t),c(t,n)):c(null,i)}if(s.messages){var u=this.messages();u===te&&(u=ee()),C(u,s.messages),s.messages=u}else s.messages=this.messages();var d={},h=s.keys||Object.keys(this.rules);h.forEach((function(e){var r=a.rules[e],o=i[e];r.forEach((function(r){var s=r;"function"===typeof s.transform&&(i===t&&(i=n({},i)),o=i[e]=s.transform(o)),s="function"===typeof s?{validator:s}:n({},s),s.validator=a.getValidationMethod(s),s.validator&&(s.field=e,s.fullField=s.fullField||e,s.type=a.getType(s),d[e]=d[e]||[],d[e].push({rule:s,value:o,source:i,field:e}))}))}));var m={};return y(d,s,(function(t,r){var o,a=t.rule,c=("object"===a.type||"array"===a.type)&&("object"===typeof a.fields||"object"===typeof a.defaultField);function l(e,t){return n({},t,{fullField:a.fullField+"."+e,fullFields:a.fullFields?[].concat(a.fullFields,[e]):[e]})}function u(o){void 0===o&&(o=[]);var u=Array.isArray(o)?o:[o];!s.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(k(a,i));if(s.first&&d.length)return m[a.field]=1,r(d);if(c){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(k(a,i)):s.error&&(d=[s.error(a,f(s.messages.required,a.field))]),r(d);var p={};a.defaultField&&Object.keys(t.value).map((function(e){p[e]=a.defaultField})),p=n({},p,t.rule.fields);var h={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];h[e]=n.map(l.bind(null,e))}));var v=new e(h);v.messages(s.messages),t.rule.options&&(t.rule.options.messages=s.messages,t.rule.options.error=s.error),v.validate(t.value,t.rule.options||s,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),r(t.length?t:null)}))}else r(d)}if(c=c&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)o=a.asyncValidator(a,t.value,u,t.source,s);else if(a.validator){try{o=a.validator(a,t.value,u,t.source,s)}catch(d){null==console.error||console.error(d),s.suppressValidatorError||setTimeout((function(){throw d}),0),u(d.message)}!0===o?u():!1===o?u("function"===typeof a.message?a.message(a.fullField||a.field):a.message||(a.fullField||a.field)+" fails"):o instanceof Array?u(o):o instanceof Error&&u(o.message)}o&&o.then&&o.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){l(e)}),i)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!Z.hasOwnProperty(e.type))throw new Error(f("Unknown rule type %s",e.type));return e.type||"string"},t.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]?Z.required:Z[this.getType(e)]||void 0},e}();ne.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Z[e]=t},ne.warning=d,ne.messages=te,ne.validators=Z,t["default"]=ne}).call(this,n("4362"))},"0f79":function(e,t,n){e.exports=n("3c9f")},"0f7c":function(e,t,n){"use strict";var r=n("688e");e.exports=Function.prototype.bind||r},"0f7c3":function(e,t,n){"use strict";var r=n("a5eb"),o=n("3eba"),a=n("7106"),i=n("ce18"),s=n("7042"),c=n("c1b2"),l=n("8c68"),u=n("06fa"),d=n("0e6f"),p=n("437b"),f=n("6f8d"),h=n("a421"),m=n("2c75"),v=n("8c12"),g=n("2c6c"),_=n("4896"),b=n("a016"),y=n("0cf0"),O=n("8e11"),M=n("a205"),k=n("44ba"),C=n("4180"),w=n("c230"),S=n("7043"),T=n("fdbe"),I=n("2296"),E=n("d659"),j=n("b2ed"),D=n("6e9a"),L=n("3e80"),A=n("0363"),N=n("beea"),R=n("f94a"),x=n("bc31"),P=n("2874"),U=n("2f5a"),V=n("dee0").forEach,B=j("hidden"),F="Symbol",G="prototype",H=U.set,Y=U.getterFor(F),z=Object[G],q=o.Symbol,W=q&&q[G],K=o.RangeError,$=o.TypeError,J=o.QObject,X=k.f,Q=C.f,Z=O.f,ee=S.f,te=i([].push),ne=E("symbols"),re=E("op-symbols"),oe=E("wks"),ae=!J||!J[G]||!J[G].findChild,ie=function(e,t,n){var r=X(z,t);return r&&delete z[t],Q(e,t,n),r&&e!==z&&Q(z,t,r),e},se=c&&u((function(){return 7!==_(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?ie:Q,ce=function(e,t){var n=ne[e]=_(W);return H(n,{type:F,tag:e,description:t}),c||(n.description=t),n},le=function(e,t,n){e===z&&le(re,t,n),f(e);var r=m(t);return f(n),d(ne,r)?(("enumerable"in n?!n.enumerable:!d(e,r)||d(e,B)&&e[B][r])?(d(e,B)||Q(e,B,g(1,_(null))),e[B][r]=!0):(d(e,B)&&e[B][r]&&(e[B][r]=!1),n=_(n,{enumerable:g(0,!1)})),se(e,r,n)):Q(e,r,n)},ue=function(e,t){f(e);var n=h(t),r=b(n).concat(me(n));return V(r,(function(t){c&&!a(pe,n,t)||le(e,t,n[t])})),e},de=function(e,t){return void 0===t?_(e):ue(_(e),t)},pe=function(e){var t=m(e),n=a(ee,this,t);return!(this===z&&d(ne,t)&&!d(re,t))&&(!(n||!d(this,t)||!d(ne,t)||d(this,B)&&this[B][t])||n)},fe=function(e,t){var n=h(e),r=m(t);if(n!==z||!d(ne,r)||d(re,r)){var o=X(n,r);return!o||!d(ne,r)||d(n,B)&&n[B][r]||(o.enumerable=!0),o}},he=function(e){var t=Z(h(e)),n=[];return V(t,(function(e){d(ne,e)||d(D,e)||te(n,e)})),n},me=function(e){var t=e===z,n=Z(t?re:h(e)),r=[];return V(n,(function(e){!d(ne,e)||t&&!d(z,e)||te(r,ne[e])})),r};l||(q=function(){if(p(W,this))throw new $("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,t=L(e),n=function(e){var r=void 0===this?o:this;r===z&&a(n,re,e),d(r,B)&&d(r[B],t)&&(r[B][t]=!1);var i=g(1,e);try{se(r,t,i)}catch(s){if(!(s instanceof K))throw s;ie(r,t,i)}};return c&&ae&&se(z,t,{configurable:!0,set:n}),ce(t,e)},W=q[G],T(W,"toString",(function(){return Y(this).tag})),T(q,"withoutSetter",(function(e){return ce(L(e),e)})),S.f=pe,C.f=le,w.f=ue,k.f=fe,y.f=O.f=he,M.f=me,N.f=function(e){return ce(A(e),e)},c&&(I(W,"description",{configurable:!0,get:function(){return Y(this).description}}),s||T(z,"propertyIsEnumerable",pe,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),V(b(oe),(function(e){R(e)})),r({target:F,stat:!0,forced:!l},{useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!c},{create:de,defineProperty:le,defineProperties:ue,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:he}),x(),P(q,F),D[B]=!0},"0f8e":function(e,t,n){"use strict";var r=n("f94a");r("matcher")},"0feb":function(e,t,n){"use strict";var r=n("a5eb"),o=n("7106"),a=n("4fff"),i=n("7168"),s=n("e8f8"),c=n("fc48"),l=n("06fa"),u=l((function(){return null!==new Date(NaN).toJSON()||1!==o(Date.prototype.toJSON,{toISOString:function(){return 1}})}));r({target:"Date",proto:!0,forced:u},{toJSON:function(e){var t=a(this),n=i(t,"number");return"number"!=typeof n||isFinite(n)?"toISOString"in t||"Date"!==c(t)?t.toISOString():o(s,t):null}})},"0ff2":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return t}))},1096:function(e,t,n){"use strict";n("be70");var r=n("0974");e.exports=r},"10e8":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return t}))},1127:function(e,t,n){"use strict";var r=n("2d80"),o=n("0f79"),a=n("9474"),i=n("65b8");function s(e,t){l(e)&&(e="100%");const n=u(e);return e=360===t?e:Math.min(t,Math.max(0,o(e))),n&&(e=a(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(e=360===t?(e<0?e%t+t:e%t)/o(String(t)):e%t/o(String(t)),e)}function c(e){return Math.min(1,Math.max(0,e))}function l(e){return"string"===typeof e&&-1!==i(e).call(e,".")&&1===o(e)}function u(e){return"string"===typeof e&&-1!==i(e).call(e,"%")}function d(e){return e=o(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function p(e){return Number(e)<=1?100*Number(e)+"%":e}function f(e){return 1===e.length?"0"+e:String(e)}r(t,"__esModule",{value:!0}),t.pad2=t.convertToPercentage=t.boundAlpha=t.isPercentage=t.isOnePointZero=t.clamp01=t.bound01=void 0,t.bound01=s,t.clamp01=c,t.isOnePointZero=l,t.isPercentage=u,t.boundAlpha=d,t.convertToPercentage=p,t.pad2=f},"11f2":function(e,t,n){"use strict";var r=n("a5eb"),o=n("9883"),a=n("0e6f"),i=n("8c12"),s=n("d659"),c=n("e0b4"),l=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=i(e);if(a(l,t))return l[t];var n=o("Symbol")(t);return l[t]=n,u[n]=t,n}})},1212:function(e,t,n){"use strict";var r,o,a=n("cfe9"),i=n("b5db"),s=a.process,c=a.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(r=u.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},1236:function(e,t,n){"use strict";var r=n("23e7"),o=n("83ab"),a=n("cfe9"),i=n("d066"),s=n("e330"),c=n("c65b"),l=n("1626"),u=n("861d"),d=n("e8b5"),p=n("1a2d"),f=n("577e"),h=n("07fa"),m=n("8418"),v=n("d039"),g=n("d24a"),_=n("04f8"),b=a.JSON,y=a.Number,O=a.SyntaxError,M=b&&b.parse,k=i("Object","keys"),C=Object.getOwnPropertyDescriptor,w=s("".charAt),S=s("".slice),T=s(/./.exec),I=s([].push),E=/^\d$/,j=/^[1-9]$/,D=/^[\d-]$/,L=/^[\t\n\r ]$/,A=0,N=1,R=function(e,t){e=f(e);var n=new V(e,0,""),r=n.parse(),o=r.value,a=n.skip(L,r.end);if(a<e.length)throw new O('Unexpected extra character: "'+w(e,a)+'" after the parsed data at: '+a);return l(t)?x({"":o},"",t,r):o},x=function(e,t,n,r){var o,a,i,s,l,f=e[t],m=r&&f===r.value,v=m&&"string"==typeof r.source?{source:r.source}:{};if(u(f)){var g=d(f),_=m?r.nodes:g?[]:{};if(g)for(o=_.length,i=h(f),s=0;s<i;s++)P(f,s,x(f,""+s,n,s<o?_[s]:void 0));else for(a=k(f),i=h(a),s=0;s<i;s++)l=a[s],P(f,l,x(f,l,n,p(_,l)?_[l]:void 0))}return c(n,e,t,f,v)},P=function(e,t,n){if(o){var r=C(e,t);if(r&&!r.configurable)return}void 0===n?delete e[t]:m(e,t,n)},U=function(e,t,n,r){this.value=e,this.end=t,this.source=n,this.nodes=r},V=function(e,t){this.source=e,this.index=t};V.prototype={fork:function(e){return new V(this.source,e)},parse:function(){var e=this.source,t=this.skip(L,this.index),n=this.fork(t),r=w(e,t);if(T(D,r))return n.number();switch(r){case"{":return n.object();case"[":return n.array();case'"':return n.string();case"t":return n.keyword(!0);case"f":return n.keyword(!1);case"n":return n.keyword(null)}throw new O('Unexpected character: "'+r+'" at: '+t)},node:function(e,t,n,r,o){return new U(t,r,e?null:S(this.source,n,r),o)},object:function(){var e=this.source,t=this.index+1,n=!1,r={},o={},a=!1;while(t<e.length){if(t=this.until(['"',"}"],t),"}"===w(e,t)&&!n){t++,a=!0;break}var i=this.fork(t).string(),s=i.value;t=i.end,t=this.until([":"],t)+1,t=this.skip(L,t),i=this.fork(t).parse(),m(o,s,i),m(r,s,i.value),t=this.until([",","}"],i.end);var c=w(e,t);if(","===c)n=!0,t++;else if("}"===c){t++,a=!0;break}}if(!a)throw new O("Unterminated object at: "+t);return this.node(N,r,this.index,t,o)},array:function(){var e=this.source,t=this.index+1,n=!1,r=[],o=[],a=!1;while(t<e.length){if(t=this.skip(L,t),"]"===w(e,t)&&!n){t++,a=!0;break}var i=this.fork(t).parse();if(I(o,i),I(r,i.value),t=this.until([",","]"],i.end),","===w(e,t))n=!0,t++;else if("]"===w(e,t)){t++,a=!0;break}}if(!a)throw new O("Unterminated array at: "+t);return this.node(N,r,this.index,t,o)},string:function(){var e=this.index,t=g(this.source,this.index+1);return this.node(A,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,n=t;if("-"===w(e,n)&&n++,"0"===w(e,n))n++;else{if(!T(j,w(e,n)))throw new O("Failed to parse number at: "+n);n=this.skip(E,n+1)}if("."===w(e,n)){var r=n+1;if(n=this.skip(E,r),r===n)throw new O("Failed to parse number's fraction at: "+n)}if("e"===w(e,n)||"E"===w(e,n)){n++,"+"!==w(e,n)&&"-"!==w(e,n)||n++;var o=n;if(n=this.skip(E,n),o===n)throw new O("Failed to parse number's exponent value at: "+n)}return this.node(A,y(S(e,t,n)),t,n)},keyword:function(e){var t=""+e,n=this.index,r=n+t.length;if(S(this.source,n,r)!==t)throw new O("Failed to parse value at: "+n);return this.node(A,e,n,r)},skip:function(e,t){for(var n=this.source;t<n.length;t++)if(!T(e,w(n,t)))break;return t},until:function(e,t){t=this.skip(L,t);for(var n=w(this.source,t),r=0;r<e.length;r++)if(e[r]===n)return t;throw new O('Unexpected character: "'+n+'" at: '+t)}};var B=v((function(){var e,t="9007199254740993";return M(t,(function(t,n,r){e=r.source})),e!==t})),F=_&&!v((function(){return 1/M("-0 \t")!==-1/0}));r({target:"JSON",stat:!0,forced:B},{parse:function(e,t){return F&&!l(t)?M(e):R(e,t)}})},"127f":function(e,t,n){"use strict";var r=n("a5eb"),o=n("b1bc").start,a=n("cd24");r({target:"String",proto:!0,forced:a},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},1301:function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},1317:function(e,t,n){"use strict";var r=n("06fa"),o=n("dfdb"),a=n("fc48"),i=n("6663"),s=Object.isExtensible,c=r((function(){s(1)}));e.exports=c||i?function(e){return!!o(e)&&((!i||"ArrayBuffer"!==a(e))&&(!s||s(e)))}:s},1344:function(e,t,n){"use strict";t["a"]=function(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map((function(e){e(n)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,n)}))}}}},"13a1":function(e,t,n){"use strict";var r=n("3eba"),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},"13b6":function(e,t,n){"use strict";var r=n("223b");e.exports=r},"13cf":function(e,t,n){"use strict";var r=n("fc48"),o=n("ce18");e.exports=function(e){if("Function"===r(e))return o(e)}},"13d2":function(e,t,n){"use strict";var r=n("e330"),o=n("d039"),a=n("1626"),i=n("1a2d"),s=n("83ab"),c=n("5e77").CONFIGURABLE,l=n("8925"),u=n("69f3"),d=u.enforce,p=u.get,f=String,h=Object.defineProperty,m=r("".slice),v=r("".replace),g=r([].join),_=s&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),y=e.exports=function(e,t,n){"Symbol("===m(f(t),0,7)&&(t="["+v(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||c&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),_&&n&&i(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=d(e);return i(r,"source")||(r.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=y((function(){return a(this)&&p(this).source||l(this)}),"toString")},"13e9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10===1?t[0]:t[1]:t[2]},translate:function(e,n,r,o){var a,i=t.words[r];return 1===r.length?"y"===r&&n?"једна година":o||n?i[0]:i[1]:(a=t.correctGrammaticalCase(e,i),"yy"===r&&n&&"годину"===a?e+" година":e+" "+a)}},n=e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},1409:function(e,t,n){"use strict";e.exports=ReferenceError},1465:function(e,t,n){},1471:function(e,t,n){"use strict";e.exports=function(){return!1}},"147b":function(e,t,n){"use strict";var r=n("a5eb"),o=n("dee0").filter,a=n("9c96"),i=a("filter");r({target:"Array",proto:!0,forced:!i},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"14b1":function(e,t,n){e.exports=n("5c68")},"14d9":function(e,t,n){"use strict";var r=n("23e7"),o=n("7b0b"),a=n("07fa"),i=n("3a34"),s=n("3511"),c=n("d039"),l=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},d=l||!u();r({target:"Array",proto:!0,arity:1,forced:d},{push:function(e){var t=o(this),n=a(t),r=arguments.length;s(n+r);for(var c=0;c<r;c++)t[n]=arguments[c],n++;return i(t,n),n}})},"14df":function(e,t,n){"use strict";var r=n("9883"),o=n("ce18"),a=n("0cf0"),i=n("a205"),s=n("6f8d"),c=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=i.f;return n?c(t,n(e)):t}},1519:function(e,t,n){"use strict";n("bdf4");var r=n("c18e");e.exports=r("Array","find")},1626:function(e,t,n){"use strict";var r="object"==typeof document&&document.all;e.exports="undefined"==typeof r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},"167b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}});return t}))},1696:function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(var o in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==r||!0!==i.enumerable)return!1}return!0}},1787:function(e,t,n){"use strict";var r=n("861d");e.exports=function(e){return r(e)||null===e}},"17aa":function(e,t,n){"use strict";e.exports=Math.abs},"17bc":function(e,t,n){"use strict";var r=n("a284");e.exports=r.getPrototypeOf||null},"17c1":function(e,t,n){"use strict";var r=n("bcb4");n("5145"),e.exports=r},"182d":function(e,t,n){"use strict";var r=n("f8cd"),o=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new o("Wrong offset");return n}},1875:function(e,t,n){"use strict";var r=n("0b1d"),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},"18fa":function(e,t,n){"use strict";var r=n("f94a");r("dispose")},1909:function(e,t,n){"use strict";var r=n("a493");e.exports=r},1967:function(e,t,n){"use strict";var r=n("3eba"),o=n("06fa"),a=n("ce18"),i=n("8c12"),s=n("ff96").trim,c=n("81f0"),l=r.parseInt,u=r.Symbol,d=u&&u.iterator,p=/^[+-]?0x/i,f=a(p.exec),h=8!==l(c+"08")||22!==l(c+"0x16")||d&&!o((function(){l(Object(d))}));e.exports=h?function(e,t){var n=s(i(e));return l(n,t>>>0||(f(p,n)?16:10))}:l},"19aa":function(e,t,n){"use strict";var r=n("3a9b"),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new o("Incorrect invocation")}},"1a2d":function(e,t,n){"use strict";var r=n("e330"),o=n("7b0b"),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(o(e),t)}},"1ac8":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}))},"1ad4":function(e,t,n){"use strict";n.d(t,"a",(function(){return rr})),n.d(t,"b",(function(){return Je})),n.d(t,"c",(function(){return ar})),n.d(t,"d",(function(){return ir})),n.d(t,"e",(function(){return sr})),n.d(t,"f",(function(){return fn})),n.d(t,"g",(function(){return Qe})),n.d(t,"h",(function(){return yn})),n.d(t,"i",(function(){return On})),n.d(t,"j",(function(){return bt})),n.d(t,"k",(function(){return ye})),n.d(t,"l",(function(){return or})),n.d(t,"m",(function(){return Mn}));for(var r=n("7c31"),o=n("eb547"),a={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),c="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=0;l<10;l++)a[48+l]=a[96+l]=String(l);for(l=1;l<=24;l++)a[l+111]="F"+l;for(l=65;l<=90;l++)a[l]=String.fromCharCode(l+32),i[l]=String.fromCharCode(l);for(var u in a)i.hasOwnProperty(u)||(i[u]=a[u]);function d(e){var t=s&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||c&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key,n=!t&&e.key||(e.shiftKey?i:a)[e.keyCode]||e.key||"Unidentified";return"Esc"==n&&(n="Escape"),"Del"==n&&(n="Delete"),"Left"==n&&(n="ArrowLeft"),"Up"==n&&(n="ArrowUp"),"Right"==n&&(n="ArrowRight"),"Down"==n&&(n="ArrowDown"),n}var p=n("6ffb");const f="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),h="undefined"!=typeof navigator&&/Win/.test(navigator.platform);function m(e){let t,n,r,o,a=e.split(/-(?!$)/),i=a[a.length-1];"Space"==i&&(i=" ");for(let s=0;s<a.length-1;s++){let e=a[s];if(/^(cmd|meta|m)$/i.test(e))o=!0;else if(/^a(lt)?$/i.test(e))t=!0;else if(/^(c|ctrl|control)$/i.test(e))n=!0;else if(/^s(hift)?$/i.test(e))r=!0;else{if(!/^mod$/i.test(e))throw new Error("Unrecognized modifier name: "+e);f?o=!0:n=!0}}return t&&(i="Alt-"+i),n&&(i="Ctrl-"+i),o&&(i="Meta-"+i),r&&(i="Shift-"+i),i}function v(e){let t=Object.create(null);for(let n in e)t[m(n)]=e[n];return t}function g(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function _(e){return new p["d"]({props:{handleKeyDown:b(e)}})}function b(e){let t=v(e);return function(e,n){let r,o=d(n),i=t[g(o,n)];if(i&&i(e.state,e.dispatch,e))return!0;if(1==o.length&&" "!=o){if(n.shiftKey){let r=t[g(o,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(h&&n.ctrlKey&&n.altKey)&&(r=a[n.keyCode])&&r!=o){let o=t[g(r,n)];if(o&&o(e.state,e.dispatch,e))return!0}}return!1}}var y=n("b17a"),O=n("b923"),M=n("6f27");const k=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function C(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const w=(e,t,n)=>{let r=C(e,n);if(!r)return!1;let o=D(r);if(!o){let n=r.blockRange(),o=n&&Object(O["i"])(n);return null!=o&&(t&&t(e.tr.lift(n,o).scrollIntoView()),!0)}let a=o.nodeBefore;if($(e,o,t,-1))return!0;if(0==r.parent.content.size&&(E(a,"end")||p["c"].isSelectable(a)))for(let i=r.depth;;i--){let n=Object(O["j"])(e.doc,r.before(i),r.after(i),M["j"].empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(E(a,"end")?p["f"].findFrom(r.doc.resolve(r.mapping.map(o.pos,-1)),-1):p["c"].create(r.doc,o.pos-a.nodeSize)),t(r.scrollIntoView())}return!0}if(1==i||r.node(i-1).childCount>1)break}return!(!a.isAtom||o.depth!=r.depth-1)&&(t&&t(e.tr.delete(o.pos-a.nodeSize,o.pos).scrollIntoView()),!0)},S=(e,t,n)=>{let r=C(e,n);if(!r)return!1;let o=D(r);return!!o&&I(e,o,t)},T=(e,t,n)=>{let r=L(e,n);if(!r)return!1;let o=R(r);return!!o&&I(e,o,t)};function I(e,t,n){let r=t.nodeBefore,o=r,a=t.pos-1;for(;!o.isTextblock;a--){if(o.type.spec.isolating)return!1;let e=o.lastChild;if(!e)return!1;o=e}let i=t.nodeAfter,s=i,c=t.pos+1;for(;!s.isTextblock;c++){if(s.type.spec.isolating)return!1;let e=s.firstChild;if(!e)return!1;s=e}let l=Object(O["j"])(e.doc,a,c,M["j"].empty);if(!l||l.from!=a||l instanceof O["b"]&&l.slice.size>=c-a)return!1;if(n){let t=e.tr.step(l);t.setSelection(p["h"].create(t.doc,a)),n(t.scrollIntoView())}return!0}function E(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)return!1}return!1}const j=(e,t,n)=>{let{$head:r,empty:o}=e.selection,a=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;a=D(r)}let i=a&&a.nodeBefore;return!(!i||!p["c"].isSelectable(i))&&(t&&t(e.tr.setSelection(p["c"].create(e.doc,a.pos-i.nodeSize)).scrollIntoView()),!0)};function D(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function L(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const A=(e,t,n)=>{let r=L(e,n);if(!r)return!1;let o=R(r);if(!o)return!1;let a=o.nodeAfter;if($(e,o,t,1))return!0;if(0==r.parent.content.size&&(E(a,"start")||p["c"].isSelectable(a))){let n=Object(O["j"])(e.doc,r.before(),r.after(),M["j"].empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(E(a,"start")?p["f"].findFrom(r.doc.resolve(r.mapping.map(o.pos)),1):p["c"].create(r.doc,r.mapping.map(o.pos))),t(r.scrollIntoView())}return!0}}return!(!a.isAtom||o.depth!=r.depth-1)&&(t&&t(e.tr.delete(o.pos,o.pos+a.nodeSize).scrollIntoView()),!0)},N=(e,t,n)=>{let{$head:r,empty:o}=e.selection,a=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;a=R(r)}let i=a&&a.nodeAfter;return!(!i||!p["c"].isSelectable(i))&&(t&&t(e.tr.setSelection(p["c"].create(e.doc,a.pos)).scrollIntoView()),!0)};function R(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const x=(e,t)=>{let n,r=e.selection,o=r instanceof p["c"];if(o){if(r.node.isTextblock||!Object(O["d"])(e.doc,r.from))return!1;n=r.from}else if(n=Object(O["h"])(e.doc,r.from,-1),null==n)return!1;if(t){let r=e.tr.join(n);o&&r.setSelection(p["c"].create(r.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0},P=(e,t)=>{let n,r=e.selection;if(r instanceof p["c"]){if(r.node.isTextblock||!Object(O["d"])(e.doc,r.to))return!1;n=r.to}else if(n=Object(O["h"])(e.doc,r.to,1),null==n)return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0},U=(e,t)=>{let{$from:n,$to:r}=e.selection,o=n.blockRange(r),a=o&&Object(O["i"])(o);return null!=a&&(t&&t(e.tr.lift(o,a).scrollIntoView()),!0)},V=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function B(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const F=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),a=n.indexAfter(-1),i=B(o.contentMatchAt(a));if(!i||!o.canReplaceWith(a,a,i))return!1;if(t){let r=n.after(),o=e.tr.replaceWith(r,r,i.createAndFill());o.setSelection(p["f"].near(o.doc.resolve(r),1)),t(o.scrollIntoView())}return!0},G=(e,t)=>{let n=e.selection,{$from:r,$to:o}=n;if(n instanceof p["a"]||r.parent.inlineContent||o.parent.inlineContent)return!1;let a=B(o.parent.contentMatchAt(o.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,i=e.tr.insert(n,a.createAndFill());i.setSelection(p["h"].create(i.doc,n+1)),t(i.scrollIntoView())}return!0},H=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(Object(O["e"])(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),o=r&&Object(O["i"])(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)};function Y(e){return(t,n)=>{let{$from:r,$to:o}=t.selection;if(t.selection instanceof p["c"]&&t.selection.node.isBlock)return!(!r.parentOffset||!Object(O["e"])(t.doc,r.pos))&&(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let a,i,s=[],c=!1,l=!1;for(let p=r.depth;;p--){let t=r.node(p);if(t.isBlock){c=r.end(p)==r.pos+(r.depth-p),l=r.start(p)==r.pos-(r.depth-p),i=B(r.node(p-1).contentMatchAt(r.indexAfter(p-1)));let t=e&&e(o.parent,c,r);s.unshift(t||(c&&i?{type:i}:null)),a=p;break}if(1==p)return!1;s.unshift(null)}let u=t.tr;(t.selection instanceof p["h"]||t.selection instanceof p["a"])&&u.deleteSelection();let d=u.mapping.map(r.pos),f=Object(O["e"])(u.doc,d,s.length,s);if(f||(s[0]=i?{type:i}:null,f=Object(O["e"])(u.doc,d,s.length,s)),!f)return!1;if(u.split(d,s.length,s),!c&&l&&r.node(a).type!=i){let e=u.mapping.map(r.before(a)),t=u.doc.resolve(e);i&&r.node(a-1).canReplaceWith(t.index(),t.index()+1,i)&&u.setNodeMarkup(u.mapping.map(r.before(a)),i)}return n&&n(u.scrollIntoView()),!0}}const z=Y(),q=(e,t)=>{let n,{$from:r,to:o}=e.selection,a=r.sharedDepth(o);return 0!=a&&(n=r.before(a),t&&t(e.tr.setSelection(p["c"].create(e.doc,n))),!0)},W=(e,t)=>(t&&t(e.tr.setSelection(new p["a"](e.doc))),!0);function K(e,t,n){let r=t.nodeBefore,o=t.nodeAfter,a=t.index();return!!(r&&o&&r.type.compatibleContent(o.type))&&(!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(a,a+1)||!o.isTextblock&&!Object(O["d"])(e.doc,t.pos))&&(n&&n(e.tr.join(t.pos).scrollIntoView()),!0))}function $(e,t,n,r){let o,a,i=t.nodeBefore,s=t.nodeAfter,c=i.type.spec.isolating||s.type.spec.isolating;if(!c&&K(e,t,n))return!0;let l=!c&&t.parent.canReplace(t.index(),t.index()+1);if(l&&(o=(a=i.contentMatchAt(i.childCount)).findWrapping(s.type))&&a.matchType(o[0]||s.type).validEnd){if(n){let r=t.pos+s.nodeSize,a=M["c"].empty;for(let e=o.length-1;e>=0;e--)a=M["c"].from(o[e].create(null,a));a=M["c"].from(i.copy(a));let c=e.tr.step(new O["a"](t.pos-1,r,t.pos,r,new M["j"](a,1,0),o.length,!0)),l=c.doc.resolve(r+2*o.length);l.nodeAfter&&l.nodeAfter.type==i.type&&Object(O["d"])(c.doc,l.pos)&&c.join(l.pos),n(c.scrollIntoView())}return!0}let u=s.type.spec.isolating||r>0&&c?null:p["f"].findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&Object(O["i"])(d);if(null!=f&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(l&&E(s,"start",!0)&&E(i,"end")){let r=i,o=[];for(;;){if(o.push(r),r.isTextblock)break;r=r.lastChild}let a=s,c=1;for(;!a.isTextblock;a=a.firstChild)c++;if(r.canReplace(r.childCount,r.childCount,a.content)){if(n){let r=M["c"].empty;for(let e=o.length-1;e>=0;e--)r=M["c"].from(o[e].copy(r));let a=e.tr.step(new O["a"](t.pos-o.length,t.pos+s.nodeSize,t.pos+c,t.pos+s.nodeSize-c,new M["j"](r,o.length,0),0,!0));n(a.scrollIntoView())}return!0}}return!1}function J(e){return function(t,n){let r=t.selection,o=e<0?r.$from:r.$to,a=o.depth;while(o.node(a).isInline){if(!a)return!1;a--}return!!o.node(a).isTextblock&&(n&&n(t.tr.setSelection(p["h"].create(t.doc,e<0?o.start(a):o.end(a)))),!0)}}const X=J(-1),Q=J(1);function Z(e,t=null){return function(n,r){let{$from:o,$to:a}=n.selection,i=o.blockRange(a),s=i&&Object(O["g"])(i,e,t);return!!s&&(r&&r(n.tr.wrap(i,s).scrollIntoView()),!0)}}function ee(e,t=null){return function(n,r){let o=!1;for(let a=0;a<n.selection.ranges.length&&!o;a++){let{$from:{pos:r},$to:{pos:i}}=n.selection.ranges[a];n.doc.nodesBetween(r,i,(r,a)=>{if(o)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)o=!0;else{let t=n.doc.resolve(a),r=t.index();o=t.parent.canReplaceWith(r,r+1,e)}})}if(!o)return!1;if(r){let o=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:a},$to:{pos:i}}=n.selection.ranges[r];o.setBlockType(a,i,e,t)}r(o.scrollIntoView())}return!0}}function te(...e){return function(t,n,r){for(let o=0;o<e.length;o++)if(e[o](t,n,r))return!0;return!1}}let ne=te(k,w,j),re=te(k,A,N);const oe={Enter:te(V,G,H,z),"Mod-Enter":F,Backspace:ne,"Mod-Backspace":ne,"Shift-Backspace":ne,Delete:re,"Mod-Delete":re,"Mod-a":W},ae={"Ctrl-h":oe["Backspace"],"Alt-Backspace":oe["Mod-Backspace"],"Ctrl-d":oe["Delete"],"Ctrl-Alt-Backspace":oe["Mod-Delete"],"Alt-Delete":oe["Mod-Delete"],"Alt-d":oe["Mod-Delete"],"Ctrl-a":X,"Ctrl-e":Q};for(let cr in oe)ae[cr]=oe[cr];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!("undefined"==typeof os||!os.platform)&&os.platform();function ie(e,t=null){return function(n,r){let{$from:o,$to:a}=n.selection,i=o.blockRange(a);if(!i)return!1;let s=r?n.tr:null;return!!se(s,i,e,t)&&(r&&r(s.scrollIntoView()),!0)}}function se(e,t,n,r=null){let o=!1,a=t,i=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=i.resolve(t.start-2);a=new M["g"](e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new M["g"](t.$from,i.resolve(t.$to.end(t.depth)),t.depth)),o=!0}let s=Object(O["g"])(a,n,r,t);return!!s&&(e&&ce(e,t,s,o,n),!0)}function ce(e,t,n,r,o){let a=M["c"].empty;for(let u=n.length-1;u>=0;u--)a=M["c"].from(n[u].type.create(n[u].attrs,a));e.step(new O["a"](t.start-(r?2:0),t.end,t.start,t.end,new M["j"](a,0,0),n.length,!0));let i=0;for(let u=0;u<n.length;u++)n[u].type==o&&(i=u+1);let s=n.length-i,c=t.start+n.length-(r?2:0),l=t.parent;for(let u=t.startIndex,d=t.endIndex,p=!0;u<d;u++,p=!1)!p&&Object(O["e"])(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(u).nodeSize;return e}function le(e){return function(t,n){let{$from:r,$to:o}=t.selection,a=r.blockRange(o,t=>t.childCount>0&&t.firstChild.type==e);return!!a&&(!n||(r.node(a.depth-1).type==e?ue(t,n,e,a):de(t,n,a)))}}function ue(e,t,n,r){let o=e.tr,a=r.end,i=r.$to.end(r.depth);a<i&&(o.step(new O["a"](a-1,i,a,i,new M["j"](M["c"].from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new M["g"](o.doc.resolve(r.$from.pos),o.doc.resolve(i),r.depth));const s=Object(O["i"])(r);if(null==s)return!1;o.lift(r,s);let c=o.doc.resolve(o.mapping.map(a,-1)-1);return Object(O["d"])(o.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&o.join(c.pos),t(o.scrollIntoView()),!0}function de(e,t,n){let r=e.tr,o=n.parent;for(let f=n.end,h=n.endIndex-1,m=n.startIndex;h>m;h--)f-=o.child(h).nodeSize,r.delete(f-1,f+1);let a=r.doc.resolve(n.start),i=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=0==n.startIndex,c=n.endIndex==o.childCount,l=a.node(-1),u=a.index(-1);if(!l.canReplace(u+(s?0:1),u+1,i.content.append(c?M["c"].empty:M["c"].from(o))))return!1;let d=a.pos,p=d+i.nodeSize;return r.step(new O["a"](d-(s?1:0),p+(c?1:0),d+1,p-1,new M["j"]((s?M["c"].empty:M["c"].from(o.copy(M["c"].empty))).append(c?M["c"].empty:M["c"].from(o.copy(M["c"].empty))),s?0:1,c?0:1),s?0:1)),t(r.scrollIntoView()),!0}function pe(e){return function(t,n){let{$from:r,$to:o}=t.selection,a=r.blockRange(o,t=>t.childCount>0&&t.firstChild.type==e);if(!a)return!1;let i=a.startIndex;if(0==i)return!1;let s=a.parent,c=s.child(i-1);if(c.type!=e)return!1;if(n){let r=c.lastChild&&c.lastChild.type==s.type,o=M["c"].from(r?e.create():null),i=new M["j"](M["c"].from(e.create(null,M["c"].from(s.type.create(null,o)))),r?3:1,0),l=a.start,u=a.end;n(t.tr.step(new O["a"](l-(r?3:1),u,l,u,i,1,!0)).scrollIntoView())}return!0}}function fe(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:o}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,a=n.storedMarks,n}}}class he{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:o}=n,a=this.buildProps(o);return Object.fromEntries(Object.entries(e).map(([e,t])=>{const n=(...e)=>{const n=t(...e)(a);return o.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(o),n};return[e,n]}))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:n,editor:r,state:o}=this,{view:a}=r,i=[],s=!!e,c=e||o.tr,l=()=>(s||!t||c.getMeta("preventDispatch")||this.hasCustomState||a.dispatch(c),i.every(e=>!0===e)),u={...Object.fromEntries(Object.entries(n).map(([e,n])=>{const r=(...e)=>{const r=this.buildProps(c,t),o=n(...e)(r);return i.push(o),u};return[e,r]})),run:l};return u}createCan(e){const{rawCommands:t,state:n}=this,r=!1,o=e||n.tr,a=this.buildProps(o,r),i=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...a,dispatch:void 0})]));return{...i,chain:()=>this.createChain(o,r)}}buildProps(e,t=!0){const{rawCommands:n,editor:r,state:o}=this,{view:a}=r,i={tr:e,editor:r,view:a,state:fe({state:o,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(i)]))}};return i}}class me{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}once(e,t){const n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}}function ve(e,t,n){if(void 0===e.config[t]&&e.parent)return ve(e.parent,t,n);if("function"===typeof e.config[t]){const r=e.config[t].bind({...n,parent:e.parent?ve(e.parent,t,n):null});return r}return e.config[t]}function ge(e){const t=e.filter(e=>"extension"===e.type),n=e.filter(e=>"node"===e.type),r=e.filter(e=>"mark"===e.type);return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function _e(e){const t=[],{nodeExtensions:n,markExtensions:r}=ge(e),o=[...n,...r],a={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(e=>{const n={name:e.name,options:e.options,storage:e.storage,extensions:o},r=ve(e,"addGlobalAttributes",n);if(!r)return;const i=r();i.forEach(e=>{e.types.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...a,...r}})})})})}),o.forEach(e=>{const n={name:e.name,options:e.options,storage:e.storage},r=ve(e,"addAttributes",n);if(!r)return;const o=r();Object.entries(o).forEach(([n,r])=>{const o={...a,...r};"function"===typeof(null===o||void 0===o?void 0:o.default)&&(o.default=o.default()),(null===o||void 0===o?void 0:o.isRequired)&&void 0===(null===o||void 0===o?void 0:o.default)&&delete o.default,t.push({type:e.name,name:n,attribute:o})})}),t}function be(e,t){if("string"===typeof e){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function ye(...e){return e.filter(e=>!!e).reduce((e,t)=>{const n={...e};return Object.entries(t).forEach(([e,t])=>{const r=n[e];if(r)if("class"===e){const r=t?String(t).split(" "):[],o=n[e]?n[e].split(" "):[],a=r.filter(e=>!o.includes(e));n[e]=[...o,...a].join(" ")}else if("style"===e){const r=t?t.split(";").map(e=>e.trim()).filter(Boolean):[],o=n[e]?n[e].split(";").map(e=>e.trim()).filter(Boolean):[],a=new Map;o.forEach(e=>{const[t,n]=e.split(":").map(e=>e.trim());a.set(t,n)}),r.forEach(e=>{const[t,n]=e.split(":").map(e=>e.trim());a.set(t,n)}),n[e]=Array.from(a.entries()).map(([e,t])=>`${e}: ${t}`).join("; ")}else n[e]=t;else n[e]=t}),n},{})}function Oe(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>ye(e,t),{})}function Me(e){return"function"===typeof e}function ke(e,t,...n){return Me(e)?t?e.bind(t)(...n):e(...n):e}function Ce(e={}){return 0===Object.keys(e).length&&e.constructor===Object}function we(e){return"string"!==typeof e?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):"true"===e||"false"!==e&&e}function Se(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(!1===r)return!1;const o=t.reduce((e,t)=>{const r=t.attribute.parseHTML?t.attribute.parseHTML(n):we(n.getAttribute(t.name));return null===r||void 0===r?e:{...e,[t.name]:r}},{});return{...r,...o}}}}function Te(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>("attrs"!==e||!Ce(t))&&(null!==t&&void 0!==t)))}function Ie(e,t){var n;const r=_e(e),{nodeExtensions:o,markExtensions:a}=ge(e),i=null===(n=o.find(e=>ve(e,"topNode")))||void 0===n?void 0:n.name,s=Object.fromEntries(o.map(n=>{const o=r.filter(e=>e.type===n.name),a={name:n.name,options:n.options,storage:n.storage,editor:t},i=e.reduce((e,t)=>{const r=ve(t,"extendNodeSchema",a);return{...e,...r?r(n):{}}},{}),s=Te({...i,content:ke(ve(n,"content",a)),marks:ke(ve(n,"marks",a)),group:ke(ve(n,"group",a)),inline:ke(ve(n,"inline",a)),atom:ke(ve(n,"atom",a)),selectable:ke(ve(n,"selectable",a)),draggable:ke(ve(n,"draggable",a)),code:ke(ve(n,"code",a)),whitespace:ke(ve(n,"whitespace",a)),linebreakReplacement:ke(ve(n,"linebreakReplacement",a)),defining:ke(ve(n,"defining",a)),isolating:ke(ve(n,"isolating",a)),attrs:Object.fromEntries(o.map(e=>{var t;return[e.name,{default:null===(t=null===e||void 0===e?void 0:e.attribute)||void 0===t?void 0:t.default}]}))}),c=ke(ve(n,"parseHTML",a));c&&(s.parseDOM=c.map(e=>Se(e,o)));const l=ve(n,"renderHTML",a);l&&(s.toDOM=e=>l({node:e,HTMLAttributes:Oe(e,o)}));const u=ve(n,"renderText",a);return u&&(s.toText=u),[n.name,s]})),c=Object.fromEntries(a.map(n=>{const o=r.filter(e=>e.type===n.name),a={name:n.name,options:n.options,storage:n.storage,editor:t},i=e.reduce((e,t)=>{const r=ve(t,"extendMarkSchema",a);return{...e,...r?r(n):{}}},{}),s=Te({...i,inclusive:ke(ve(n,"inclusive",a)),excludes:ke(ve(n,"excludes",a)),group:ke(ve(n,"group",a)),spanning:ke(ve(n,"spanning",a)),code:ke(ve(n,"code",a)),attrs:Object.fromEntries(o.map(e=>{var t;return[e.name,{default:null===(t=null===e||void 0===e?void 0:e.attribute)||void 0===t?void 0:t.default}]}))}),c=ke(ve(n,"parseHTML",a));c&&(s.parseDOM=c.map(e=>Se(e,o)));const l=ve(n,"renderHTML",a);return l&&(s.toDOM=e=>l({mark:e,HTMLAttributes:Oe(e,o)})),[n.name,s]}));return new y["e"]({topNode:i,nodes:s,marks:c})}function Ee(e,t){return t.nodes[e]||t.marks[e]||null}function je(e,t){return Array.isArray(t)?t.some(t=>{const n="string"===typeof t?t:t.name;return n===e.name}):t}function De(e,t){const n=y["b"].fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument(),o=r.createElement("div");return o.appendChild(n),o.innerHTML}const Le=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(e,t,o,a)=>{var i,s;const c=(null===(s=(i=e.type.spec).toText)||void 0===s?void 0:s.call(i,{node:e,pos:t,parent:o,index:a}))||e.textContent||"%leaf%";n+=e.isAtom&&!e.isText?c:c.slice(0,Math.max(0,r-t))}),n};function Ae(e){return"[object RegExp]"===Object.prototype.toString.call(e)}class Ne{constructor(e){this.find=e.find,this.handler=e.handler}}const Re=(e,t)=>{if(Ae(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function xe(e){var t;const{editor:n,from:r,to:o,text:a,rules:i,plugin:s}=e,{view:c}=n;if(c.composing)return!1;const l=c.state.doc.resolve(r);if(l.parent.type.spec.code||(null===(t=l.nodeBefore||l.nodeAfter)||void 0===t?void 0:t.marks.find(e=>e.type.spec.code)))return!1;let u=!1;const d=Le(l)+a;return i.forEach(e=>{if(u)return;const t=Re(d,e.find);if(!t)return;const i=c.state.tr,l=fe({state:c.state,transaction:i}),p={from:r-(t[0].length-a.length),to:o},{commands:f,chain:h,can:m}=new he({editor:n,state:l}),v=e.handler({state:l,range:p,match:t,commands:f,chain:h,can:m});null!==v&&i.steps.length&&(i.setMeta(s,{transform:i,from:r,to:o,text:a}),c.dispatch(i),u=!0)}),u}function Pe(e){const{editor:t,rules:n}=e,o=new r["d"]({state:{init(){return null},apply(e,r,a){const i=e.getMeta(o);if(i)return i;const s=e.getMeta("applyInputRules"),c=!!s;return c&&setTimeout(()=>{let{text:e}=s;e="string"===typeof e?e:De(y["c"].from(e),a.schema);const{from:r}=s,i=r+e.length;xe({editor:t,from:r,to:i,text:e,rules:n,plugin:o})}),e.selectionSet||e.docChanged?null:r}},props:{handleTextInput(e,r,a,i){return xe({editor:t,from:r,to:a,text:i,rules:n,plugin:o})},handleDOMEvents:{compositionend:e=>(setTimeout(()=>{const{$cursor:r}=e.state.selection;r&&xe({editor:t,from:r.pos,to:r.pos,text:"",rules:n,plugin:o})}),!1)},handleKeyDown(e,r){if("Enter"!==r.key)return!1;const{$cursor:a}=e.state.selection;return!!a&&xe({editor:t,from:a.pos,to:a.pos,text:"\n",rules:n,plugin:o})}},isInputRules:!0});return o}function Ue(e){return Object.prototype.toString.call(e).slice(8,-1)}function Ve(e){return"Object"===Ue(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function Be(e,t){const n={...e};return Ve(e)&&Ve(t)&&Object.keys(t).forEach(r=>{Ve(t[r])&&Ve(e[r])?n[r]=Be(e[r],t[r]):n[r]=t[r]}),n}class Fe{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ke(ve(this,"addOptions",{name:this.name}))),this.storage=ke(ve(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Fe(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>Be(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new Fe(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=ke(ve(t,"addOptions",{name:t.name})),t.storage=ke(ve(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:n}=e.state,r=e.state.selection.$from,o=r.pos===r.end();if(o){const o=r.marks(),a=!!o.find(e=>(null===e||void 0===e?void 0:e.type.name)===t.name);if(!a)return!1;const i=o.find(e=>(null===e||void 0===e?void 0:e.type.name)===t.name);return i&&n.removeStoredMark(i),n.insertText(" ",r.pos),e.view.dispatch(n),!0}return!1}}function Ge(e){return"number"===typeof e}const He=(e,t,n)=>{if(Ae(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map(t=>{const n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(t.replaceWith)),n}):[]};function Ye(e){const{editor:t,state:n,from:r,to:o,rule:a,pasteEvent:i,dropEvent:s}=e,{commands:c,chain:l,can:u}=new he({editor:t,state:n}),d=[];n.doc.nodesBetween(r,o,(e,t)=>{if(!e.isTextblock||e.type.spec.code)return;const p=Math.max(r,t),f=Math.min(o,t+e.content.size),h=e.textBetween(p-t,f-t,void 0,""),m=He(h,a.find,i);m.forEach(e=>{if(void 0===e.index)return;const t=p+e.index+1,r=t+e[0].length,o={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},f=a.handler({state:n,range:o,match:e,commands:c,chain:l,can:u,pasteEvent:i,dropEvent:s});d.push(f)})});const p=d.every(e=>null!==e);return p}let ze=null;const qe=e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return null===(t=n.clipboardData)||void 0===t||t.setData("text/html",e),n};function We(e){const{editor:t,rules:n}=e;let o,a=null,i=!1,s=!1,c="undefined"!==typeof ClipboardEvent?new ClipboardEvent("paste"):null;try{o="undefined"!==typeof DragEvent?new DragEvent("drop"):null}catch{o=null}const l=({state:e,from:n,to:r,rule:a,pasteEvt:i})=>{const s=e.tr,l=fe({state:e,transaction:s}),u=Ye({editor:t,state:l,from:Math.max(n-1,0),to:r.b-1,rule:a,pasteEvent:i,dropEvent:o});if(u&&s.steps.length){try{o="undefined"!==typeof DragEvent?new DragEvent("drop"):null}catch{o=null}return c="undefined"!==typeof ClipboardEvent?new ClipboardEvent("paste"):null,s}},u=n.map(e=>new r["d"]({view(e){const n=n=>{var r;a=(null===(r=e.dom.parentElement)||void 0===r?void 0:r.contains(n.target))?e.dom.parentElement:null,a&&(ze=t)},r=()=>{ze&&(ze=null)};return window.addEventListener("dragstart",n),window.addEventListener("dragend",r),{destroy(){window.removeEventListener("dragstart",n),window.removeEventListener("dragend",r)}}},props:{handleDOMEvents:{drop:(e,t)=>{if(s=a===e.dom.parentElement,o=t,!s){const e=ze;(null===e||void 0===e?void 0:e.isEditable)&&setTimeout(()=>{const t=e.state.selection;t&&e.commands.deleteRange({from:t.from,to:t.to})},10)}return!1},paste:(e,t)=>{var n;const r=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text/html");return c=t,i=!!(null===r||void 0===r?void 0:r.includes("data-pm-slice")),!1}}},appendTransaction:(t,n,r)=>{const o=t[0],a="paste"===o.getMeta("uiEvent")&&!i,u="drop"===o.getMeta("uiEvent")&&!s,d=o.getMeta("applyPasteRules"),p=!!d;if(!a&&!u&&!p)return;if(p){let{text:t}=d;t="string"===typeof t?t:De(y["c"].from(t),r.schema);const{from:n}=d,o=n+t.length,a=qe(t);return l({rule:e,state:r,from:n,to:{b:o},pasteEvt:a})}const f=n.doc.content.findDiffStart(r.doc.content),h=n.doc.content.findDiffEnd(r.doc.content);return Ge(f)&&h&&f!==h.b?l({rule:e,state:r,from:f,to:h,pasteEvt:c}):void 0}}));return u}function Ke(e){const t=e.filter((t,n)=>e.indexOf(t)!==n);return Array.from(new Set(t))}class $e{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=$e.resolve(e),this.schema=Ie(this.extensions,t),this.setupExtensions()}static resolve(e){const t=$e.sort($e.flatten(e)),n=Ke(t.map(e=>e.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(e=>`'${e}'`).join(", ")}]. This can lead to issues.`),t}static flatten(e){return e.map(e=>{const t={name:e.name,options:e.options,storage:e.storage},n=ve(e,"addExtensions",t);return n?[e,...this.flatten(n())]:e}).flat(10)}static sort(e){const t=100;return e.sort((e,n)=>{const r=ve(e,"priority")||t,o=ve(n,"priority")||t;return r>o?-1:r<o?1:0})}get commands(){return this.extensions.reduce((e,t)=>{const n={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:Ee(t.name,this.schema)},r=ve(t,"addCommands",n);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,t=$e.sort([...this.extensions].reverse()),n=[],r=[],o=t.map(t=>{const o={name:t.name,options:t.options,storage:t.storage,editor:e,type:Ee(t.name,this.schema)},a=[],i=ve(t,"addKeyboardShortcuts",o);let s={};if("mark"===t.type&&ve(t,"exitable",o)&&(s.ArrowRight=()=>Fe.handleExit({editor:e,mark:t})),i){const t=Object.fromEntries(Object.entries(i()).map(([t,n])=>[t,()=>n({editor:e})]));s={...s,...t}}const c=_(s);a.push(c);const l=ve(t,"addInputRules",o);je(t,e.options.enableInputRules)&&l&&n.push(...l());const u=ve(t,"addPasteRules",o);je(t,e.options.enablePasteRules)&&u&&r.push(...u());const d=ve(t,"addProseMirrorPlugins",o);if(d){const e=d();a.push(...e)}return a}).flat();return[Pe({editor:e,rules:n}),...We({editor:e,rules:r}),...o]}get attributes(){return _e(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=ge(this.extensions);return Object.fromEntries(t.filter(e=>!!ve(e,"addNodeView")).map(t=>{const n=this.attributes.filter(e=>e.type===t.name),r={name:t.name,options:t.options,storage:t.storage,editor:e,type:be(t.name,this.schema)},o=ve(t,"addNodeView",r);if(!o)return[];const a=(r,a,i,s,c)=>{const l=Oe(r,n);return o()({node:r,view:a,getPos:i,decorations:s,innerDecorations:c,editor:e,extension:t,HTMLAttributes:l})};return[t.name,a]}))}setupExtensions(){this.extensions.forEach(e=>{var t;this.editor.extensionStorage[e.name]=e.storage;const n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:Ee(e.name,this.schema)};if("mark"===e.type){const r=null===(t=ke(ve(e,"keepOnSplit",n)))||void 0===t||t;r&&this.splittableMarks.push(e.name)}const r=ve(e,"onBeforeCreate",n),o=ve(e,"onCreate",n),a=ve(e,"onUpdate",n),i=ve(e,"onSelectionUpdate",n),s=ve(e,"onTransaction",n),c=ve(e,"onFocus",n),l=ve(e,"onBlur",n),u=ve(e,"onDestroy",n);r&&this.editor.on("beforeCreate",r),o&&this.editor.on("create",o),a&&this.editor.on("update",a),i&&this.editor.on("selectionUpdate",i),s&&this.editor.on("transaction",s),c&&this.editor.on("focus",c),l&&this.editor.on("blur",l),u&&this.editor.on("destroy",u)})}}class Je{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ke(ve(this,"addOptions",{name:this.name}))),this.storage=ke(ve(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Je(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>Be(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new Je({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=ke(ve(t,"addOptions",{name:t.name})),t.storage=ke(ve(t,"addStorage",{name:t.name,options:t.options})),t}}function Xe(e,t,n){const{from:r,to:o}=t,{blockSeparator:a="\n\n",textSerializers:i={}}=n||{};let s="";return e.nodesBetween(r,o,(e,n,c,l)=>{var u;e.isBlock&&n>r&&(s+=a);const d=null===i||void 0===i?void 0:i[e.type.name];if(d)return c&&(s+=d({node:e,pos:n,parent:c,index:l,range:t})),!1;e.isText&&(s+=null===(u=null===e||void 0===e?void 0:e.text)||void 0===u?void 0:u.slice(Math.max(r,n)-n,o-n))}),s}function Qe(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const Ze=Je.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new r["d"]({key:new r["e"]("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:o}=t,{ranges:a}=o,i=Math.min(...a.map(e=>e.$from.pos)),s=Math.max(...a.map(e=>e.$to.pos)),c=Qe(n),l={from:i,to:s};return Xe(r,l,{...void 0!==this.options.blockSeparator?{blockSeparator:this.options.blockSeparator}:{},textSerializers:c})}}})]}}),et=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),null===(n=null===window||void 0===window?void 0:window.getSelection())||void 0===n||n.removeAllRanges())}),!0),tt=(e=!1)=>({commands:t})=>t.setContent("",e),nt=()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:o}=r;return!n||(o.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;const{doc:r,mapping:o}=t,a=r.resolve(o.map(n)),i=r.resolve(o.map(n+e.nodeSize)),s=a.blockRange(i);if(!s)return;const c=Object(O["i"])(s);if(e.type.isTextblock){const{defaultType:e}=a.parent.contentMatchAt(a.index());t.setNodeMarkup(s.start,e)}(c||0===c)&&t.lift(s,c)})}),!0)},rt=e=>t=>e(t),ot=()=>({state:e,dispatch:t})=>G(e,t),at=(e,t)=>({editor:n,tr:o})=>{const{state:a}=n,i=a.doc.slice(e.from,e.to);o.deleteRange(e.from,e.to);const s=o.mapping.map(t);return o.insert(s,i.content),o.setSelection(new r["g"](o.doc.resolve(Math.max(s-1,0)))),!0},it=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const o=e.selection.$anchor;for(let a=o.depth;a>0;a-=1){const n=o.node(a);if(n.type===r.type){if(t){const t=o.before(a),n=o.after(a);e.delete(t,n).scrollIntoView()}return!0}}return!1},st=e=>({tr:t,state:n,dispatch:r})=>{const o=be(e,n.schema),a=t.selection.$anchor;for(let e=a.depth;e>0;e-=1){const n=a.node(e);if(n.type===o){if(r){const n=a.before(e),r=a.after(e);t.delete(n,r).scrollIntoView()}return!0}}return!1},ct=e=>({tr:t,dispatch:n})=>{const{from:r,to:o}=e;return n&&t.delete(r,o),!0},lt=()=>({state:e,dispatch:t})=>k(e,t),ut=()=>({commands:e})=>e.keyboardShortcut("Enter"),dt=()=>({state:e,dispatch:t})=>F(e,t);function pt(e,t,n={strict:!0}){const r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:Ae(t[r])?t[r].test(e[r]):t[r]===e[r])}function ft(e,t,n={}){return e.find(e=>e.type===t&&pt(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function ht(e,t,n={}){return!!ft(e,t,n)}function mt(e,t,n){var r;if(!e||!t)return;let o=e.parent.childAfter(e.parentOffset);if(o.node&&o.node.marks.some(e=>e.type===t)||(o=e.parent.childBefore(e.parentOffset)),!o.node||!o.node.marks.some(e=>e.type===t))return;n=n||(null===(r=o.node.marks[0])||void 0===r?void 0:r.attrs);const a=ft([...o.node.marks],t,n);if(!a)return;let i=o.index,s=e.start()+o.offset,c=i+1,l=s+o.node.nodeSize;while(i>0&&ht([...e.parent.child(i-1).marks],t,n))i-=1,s-=e.parent.child(i).nodeSize;while(c<e.parent.childCount&&ht([...e.parent.child(c).marks],t,n))l+=e.parent.child(c).nodeSize,c+=1;return{from:s,to:l}}function vt(e,t){if("string"===typeof e){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}const gt=(e,t={})=>({tr:n,state:o,dispatch:a})=>{const i=vt(e,o.schema),{doc:s,selection:c}=n,{$from:l,from:u,to:d}=c;if(a){const e=mt(l,i,t);if(e&&e.from<=u&&e.to>=d){const t=r["g"].create(s,e.from,e.to);n.setSelection(t)}}return!0},_t=e=>t=>{const n="function"===typeof e?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1};function bt(e){return e instanceof r["g"]}function yt(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function Ot(e,t=null){if(!t)return null;const n=r["f"].atStart(e),o=r["f"].atEnd(e);if("start"===t||!0===t)return n;if("end"===t)return o;const a=n.from,i=o.to;return"all"===t?r["g"].create(e,yt(0,a,i),yt(e.content.size,a,i)):r["g"].create(e,yt(t,a,i),yt(t,a,i))}function Mt(){return"Android"===navigator.platform||/android/i.test(navigator.userAgent)}function kt(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function Ct(){return"undefined"!==typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}const wt=(e=null,t={})=>({editor:n,view:r,tr:o,dispatch:a})=>{t={scrollIntoView:!0,...t};const i=()=>{(kt()||Mt())&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),!Ct()||kt()||Mt()||r.dom.focus({preventScroll:!0}))})};if(r.hasFocus()&&null===e||!1===e)return!0;if(a&&null===e&&!bt(n.state.selection))return i(),!0;const s=Ot(o.doc,e)||n.state.selection,c=n.state.selection.eq(s);return a&&(c||o.setSelection(s),c&&o.storedMarks&&o.setStoredMarks(o.storedMarks),i()),!0},St=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),Tt=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),It=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];3===r.nodeType&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):1===r.nodeType&&It(r)}return e};function Et(e){const t=`<body>${e}</body>`,n=(new window.DOMParser).parseFromString(t,"text/html").body;return It(n)}function jt(e,t,n){if(e instanceof y["d"]||e instanceof y["c"])return e;n={slice:!0,parseOptions:{},...n};const r="object"===typeof e&&null!==e,o="string"===typeof e;if(r)try{const r=Array.isArray(e)&&e.length>0;if(r)return y["c"].fromArray(e.map(e=>t.nodeFromJSON(e)));const o=t.nodeFromJSON(e);return n.errorOnInvalidContent&&o.check(),o}catch(a){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:a});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",a),jt("",t,n)}if(o){if(n.errorOnInvalidContent){let r=!1,o="";const a=new y["e"]({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:e=>(r=!0,o="string"===typeof e?e:e.outerHTML,null)}]}})});if(n.slice?y["a"].fromSchema(a).parseSlice(Et(e),n.parseOptions):y["a"].fromSchema(a).parse(Et(e),n.parseOptions),n.errorOnInvalidContent&&r)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error("Invalid element found: "+o)})}const r=y["a"].fromSchema(t);return n.slice?r.parseSlice(Et(e),n.parseOptions).content:r.parse(Et(e),n.parseOptions)}return jt("",t,n)}function Dt(e,t,n){const o=e.steps.length-1;if(o<t)return;const a=e.steps[o];if(!(a instanceof O["b"]||a instanceof O["a"]))return;const i=e.mapping.maps[o];let s=0;i.forEach((e,t,n,r)=>{0===s&&(s=r)}),e.setSelection(r["f"].near(e.doc.resolve(s),n))}const Lt=e=>!("type"in e),At=(e,t,n)=>({tr:r,dispatch:o,editor:a})=>{var i;if(o){let o;n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};const c=e=>{a.emit("contentError",{editor:a,error:e,disableCollaboration:()=>{a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},l={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{jt(t,a.schema,{parseOptions:l,errorOnInvalidContent:!0})}catch(s){c(s)}try{o=jt(t,a.schema,{parseOptions:l,errorOnInvalidContent:null!==(i=n.errorOnInvalidContent)&&void 0!==i?i:a.options.enableContentCheck})}catch(s){return c(s),!1}let{from:u,to:d}="number"===typeof e?{from:e,to:e}:{from:e.from,to:e.to},p=!0,f=!0;const h=Lt(o)?o:[o];if(h.forEach(e=>{e.check(),p=!!p&&(e.isText&&0===e.marks.length),f=!!f&&e.isBlock}),u===d&&f){const{parent:e}=r.doc.resolve(u),t=e.isTextblock&&!e.type.spec.code&&!e.childCount;t&&(u-=1,d+=1)}let m;if(p){if(Array.isArray(t))m=t.map(e=>e.text||"").join("");else if(t instanceof y["c"]){let e="";t.forEach(t=>{t.text&&(e+=t.text)}),m=e}else m="object"===typeof t&&t&&t.text?t.text:t;r.insertText(m,u,d)}else m=o,r.replaceWith(u,d,m);n.updateSelection&&Dt(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:u,text:m}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:u,text:m})}return!0},Nt=()=>({state:e,dispatch:t})=>x(e,t),Rt=()=>({state:e,dispatch:t})=>P(e,t),xt=()=>({state:e,dispatch:t})=>w(e,t),Pt=()=>({state:e,dispatch:t})=>A(e,t),Ut=()=>({state:e,dispatch:t,tr:n})=>{try{const r=Object(O["h"])(e.doc,e.selection.$from.pos,-1);return null!==r&&void 0!==r&&(n.join(r,2),t&&t(n),!0)}catch{return!1}},Vt=()=>({state:e,dispatch:t,tr:n})=>{try{const r=Object(O["h"])(e.doc,e.selection.$from.pos,1);return null!==r&&void 0!==r&&(n.join(r,2),t&&t(n),!0)}catch{return!1}},Bt=()=>({state:e,dispatch:t})=>S(e,t),Ft=()=>({state:e,dispatch:t})=>T(e,t);function Gt(){return"undefined"!==typeof navigator&&/Mac/.test(navigator.platform)}function Ht(e){const t=e.split(/-(?!$)/);let n,r,o,a,i=t[t.length-1];"Space"===i&&(i=" ");for(let s=0;s<t.length-1;s+=1){const e=t[s];if(/^(cmd|meta|m)$/i.test(e))a=!0;else if(/^a(lt)?$/i.test(e))n=!0;else if(/^(c|ctrl|control)$/i.test(e))r=!0;else if(/^s(hift)?$/i.test(e))o=!0;else{if(!/^mod$/i.test(e))throw new Error("Unrecognized modifier name: "+e);kt()||Gt()?a=!0:r=!0}}return n&&(i="Alt-"+i),r&&(i="Ctrl-"+i),a&&(i="Meta-"+i),o&&(i="Shift-"+i),i}const Yt=e=>({editor:t,view:n,tr:r,dispatch:o})=>{const a=Ht(e).split(/-(?!$)/),i=a.find(e=>!["Alt","Ctrl","Meta","Shift"].includes(e)),s=new KeyboardEvent("keydown",{key:"Space"===i?" ":i,altKey:a.includes("Alt"),ctrlKey:a.includes("Ctrl"),metaKey:a.includes("Meta"),shiftKey:a.includes("Shift"),bubbles:!0,cancelable:!0}),c=t.captureTransaction(()=>{n.someProp("handleKeyDown",e=>e(n,s))});return null===c||void 0===c||c.steps.forEach(e=>{const t=e.map(r.mapping);t&&o&&r.maybeStep(t)}),!0};function zt(e,t,n={}){const{from:r,to:o,empty:a}=e.selection,i=t?be(t,e.schema):null,s=[];e.doc.nodesBetween(r,o,(e,t)=>{if(e.isText)return;const n=Math.max(r,t),a=Math.min(o,t+e.nodeSize);s.push({node:e,from:n,to:a})});const c=o-r,l=s.filter(e=>!i||i.name===e.node.type.name).filter(e=>pt(e.node.attrs,n,{strict:!1}));if(a)return!!l.length;const u=l.reduce((e,t)=>e+t.to-t.from,0);return u>=c}const qt=(e,t={})=>({state:n,dispatch:r})=>{const o=be(e,n.schema),a=zt(n,o,t);return!!a&&U(n,r)},Wt=()=>({state:e,dispatch:t})=>H(e,t),Kt=e=>({state:t,dispatch:n})=>{const r=be(e,t.schema);return le(r)(t,n)},$t=()=>({state:e,dispatch:t})=>V(e,t);function Jt(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function Xt(e,t){const n="string"===typeof t?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}const Qt=(e,t)=>({tr:n,state:r,dispatch:o})=>{let a=null,i=null;const s=Jt("string"===typeof e?e:e.name,r.schema);return!!s&&("node"===s&&(a=be(e,r.schema)),"mark"===s&&(i=vt(e,r.schema)),o&&n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{a&&a===e.type&&n.setNodeMarkup(r,void 0,Xt(e.attrs,t)),i&&e.marks.length&&e.marks.forEach(o=>{i===o.type&&n.addMark(r,r+e.nodeSize,i.create(Xt(o.attrs,t)))})})}),!0)},Zt=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),en=()=>({tr:e,dispatch:t})=>{if(t){const t=new r["a"](e.doc);e.setSelection(t)}return!0},tn=()=>({state:e,dispatch:t})=>j(e,t),nn=()=>({state:e,dispatch:t})=>N(e,t),rn=()=>({state:e,dispatch:t})=>q(e,t),on=()=>({state:e,dispatch:t})=>Q(e,t),an=()=>({state:e,dispatch:t})=>X(e,t);function sn(e,t,n={},r={}){return jt(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}const cn=(e,t=!1,n={},r={})=>({editor:o,tr:a,dispatch:i,commands:s})=>{var c,l;const{doc:u}=a;if("full"!==n.preserveWhitespace){const s=sn(e,o.schema,n,{errorOnInvalidContent:null!==(c=r.errorOnInvalidContent)&&void 0!==c?c:o.options.enableContentCheck});return i&&a.replaceWith(0,u.content.size,s).setMeta("preventUpdate",!t),!0}return i&&a.setMeta("preventUpdate",!t),s.insertContentAt({from:0,to:u.content.size},e,{parseOptions:n,errorOnInvalidContent:null!==(l=r.errorOnInvalidContent)&&void 0!==l?l:o.options.enableContentCheck})};function ln(e,t){const n=vt(t,e.schema),{from:r,to:o,empty:a}=e.selection,i=[];a?(e.storedMarks&&i.push(...e.storedMarks),i.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,o,e=>{i.push(...e.marks)});const s=i.find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}function un(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function dn(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function pn(e){return t=>dn(t.$from,e)}function fn(e,t){const n={from:0,to:e.content.size};return Xe(e,n,t)}function hn(e,t){const n=be(t,e.schema),{from:r,to:o}=e.selection,a=[];e.doc.nodesBetween(r,o,e=>{a.push(e)});const i=a.reverse().find(e=>e.type.name===n.name);return i?{...i.attrs}:{}}function mn(e,t){const n=Jt("string"===typeof t?t:t.name,e.schema);return"node"===n?hn(e,t):"mark"===n?ln(e,t):{}}function vn(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{const r=e.find(e=>e.type===t&&e.name===n);return!!r&&r.attribute.keepOnSplit}))}function gn(e,t,n={}){const{empty:r,ranges:o}=e.selection,a=t?vt(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!a||a.name===e.type.name).find(e=>pt(e.attrs,n,{strict:!1}));let i=0;const s=[];if(o.forEach(({$from:t,$to:n})=>{const r=t.pos,o=n.pos;e.doc.nodesBetween(r,o,(e,t)=>{if(!e.isText&&!e.marks.length)return;const n=Math.max(r,t),a=Math.min(o,t+e.nodeSize),c=a-n;i+=c,s.push(...e.marks.map(e=>({mark:e,from:n,to:a})))})}),0===i)return!1;const c=s.filter(e=>!a||a.name===e.mark.type.name).filter(e=>pt(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),l=s.filter(e=>!a||e.mark.type!==a&&e.mark.type.excludes(a)).reduce((e,t)=>e+t.to-t.from,0),u=c>0?c+l:c;return u>=i}function _n(e,t,n={}){if(!t)return zt(e,null,n)||gn(e,null,n);const r=Jt(t,e.schema);return"node"===r?zt(e,t,n):"mark"===r&&gn(e,t,n)}function bn(e,t){const{nodeExtensions:n}=ge(t),r=n.find(t=>t.name===e);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},a=ke(ve(r,"group",o));return"string"===typeof a&&a.split(" ").includes("list")}function yn(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if("hardBreak"===e.type.name)return!0;if(e.isText)return/^\s*$/m.test(null!==(r=e.text)&&void 0!==r?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(0===e.content.childCount)return!0;if(t){let r=!0;return e.content.forEach(e=>{!1!==r&&(yn(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function On(e){return e instanceof r["c"]}function Mn(e,t,n){const r=0,o=e.state.doc.content.size,a=yt(t,r,o),i=yt(n,r,o),s=e.coordsAtPos(a),c=e.coordsAtPos(i,-1),l=Math.min(s.top,c.top),u=Math.max(s.bottom,c.bottom),d=Math.min(s.left,c.left),p=Math.max(s.right,c.right),f=p-d,h=u-l,m=d,v=l,g={top:l,bottom:u,left:d,right:p,width:f,height:h,x:m,y:v};return{...g,toJSON:()=>g}}function kn(e,t,n){var r;const{selection:o}=t;let a=null;if(bt(o)&&(a=o.$cursor),a){const t=null!==(r=e.storedMarks)&&void 0!==r?r:a.marks();return!!n.isInSet(t)||!t.some(e=>e.type.excludes(n))}const{ranges:i}=o;return i.some(({$from:t,$to:r})=>{let o=0===t.depth&&(e.doc.inlineContent&&e.doc.type.allowsMarkType(n));return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(o)return!1;if(e.isInline){const t=!r||r.type.allowsMarkType(n),a=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));o=t&&a}return!o}),o})}const Cn=(e,t={})=>({tr:n,state:r,dispatch:o})=>{const{selection:a}=n,{empty:i,ranges:s}=a,c=vt(e,r.schema);if(o)if(i){const e=ln(r,c);n.addStoredMark(c.create({...e,...t}))}else s.forEach(e=>{const o=e.$from.pos,a=e.$to.pos;r.doc.nodesBetween(o,a,(e,r)=>{const i=Math.max(r,o),s=Math.min(r+e.nodeSize,a),l=e.marks.find(e=>e.type===c);l?e.marks.forEach(e=>{c===e.type&&n.addMark(i,s,c.create({...e.attrs,...t}))}):n.addMark(i,s,c.create(t))})});return kn(r,n,c)},wn=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),Sn=(e,t={})=>({state:n,dispatch:r,chain:o})=>{const a=be(e,n.schema);let i;return n.selection.$anchor.sameParent(n.selection.$head)&&(i=n.selection.$anchor.parent.attrs),a.isTextblock?o().command(({commands:e})=>{const r=ee(a,{...i,...t})(n);return!!r||e.clearNodes()}).command(({state:e})=>ee(a,{...i,...t})(e,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Tn=e=>({tr:t,dispatch:n})=>{if(n){const{doc:n}=t,o=yt(e,0,n.content.size),a=r["c"].create(n,o);t.setSelection(a)}return!0},In=e=>({tr:t,dispatch:n})=>{if(n){const{doc:n}=t,{from:o,to:a}="number"===typeof e?{from:e,to:e}:e,i=r["g"].atStart(n).from,s=r["g"].atEnd(n).to,c=yt(o,i,s),l=yt(a,i,s),u=r["g"].create(n,c,l);t.setSelection(u)}return!0},En=e=>({state:t,dispatch:n})=>{const r=be(e,t.schema);return pe(r)(t,n)};function jn(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(e=>null===t||void 0===t?void 0:t.includes(e.type.name));e.tr.ensureMarks(r)}}const Dn=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:o,editor:a})=>{const{selection:i,doc:s}=t,{$from:c,$to:l}=i,u=a.extensionManager.attributes,d=vn(u,c.node().type.name,c.node().attrs);if(i instanceof r["c"]&&i.node.isBlock)return!(!c.parentOffset||!Object(O["e"])(s,c.pos))&&(o&&(e&&jn(n,a.extensionManager.splittableMarks),t.split(c.pos).scrollIntoView()),!0);if(!c.parent.isBlock)return!1;const p=l.parentOffset===l.parent.content.size,f=0===c.depth?void 0:un(c.node(-1).contentMatchAt(c.indexAfter(-1)));let h=p&&f?[{type:f,attrs:d}]:void 0,m=Object(O["e"])(t.doc,t.mapping.map(c.pos),1,h);if(h||m||!Object(O["e"])(t.doc,t.mapping.map(c.pos),1,f?[{type:f}]:void 0)||(m=!0,h=f?[{type:f,attrs:d}]:void 0),o){if(m&&(i instanceof r["g"]&&t.deleteSelection(),t.split(t.mapping.map(c.pos),1,h),f&&!p&&!c.parentOffset&&c.parent.type!==f)){const e=t.mapping.map(c.before()),n=t.doc.resolve(e);c.node(-1).canReplaceWith(n.index(),n.index()+1,f)&&t.setNodeMarkup(t.mapping.map(c.before()),f)}e&&jn(n,a.extensionManager.splittableMarks),t.scrollIntoView()}return m},Ln=(e,t={})=>({tr:n,state:o,dispatch:a,editor:i})=>{var s;const c=be(e,o.schema),{$from:l,$to:u}=o.selection,d=o.selection.node;if(d&&d.isBlock||l.depth<2||!l.sameParent(u))return!1;const p=l.node(-1);if(p.type!==c)return!1;const f=i.extensionManager.attributes;if(0===l.parent.content.size&&l.node(-1).childCount===l.indexAfter(-1)){if(2===l.depth||l.node(-3).type!==c||l.index(-2)!==l.node(-2).childCount-1)return!1;if(a){let e=y["c"].empty;const o=l.index(-1)?1:l.index(-2)?2:3;for(let t=l.depth-o;t>=l.depth-3;t-=1)e=y["c"].from(l.node(t).copy(e));const a=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,i={...vn(f,l.node().type.name,l.node().attrs),...t},u=(null===(s=c.contentMatch.defaultType)||void 0===s?void 0:s.createAndFill(i))||void 0;e=e.append(y["c"].from(c.createAndFill(null,u)||void 0));const d=l.before(l.depth-(o-1));n.replace(d,l.after(-a),new y["f"](e,4-o,0));let p=-1;n.doc.nodesBetween(d,n.doc.content.size,(e,t)=>{if(p>-1)return!1;e.isTextblock&&0===e.content.size&&(p=t+1)}),p>-1&&n.setSelection(r["g"].near(n.doc.resolve(p))),n.scrollIntoView()}return!0}const h=u.pos===l.end()?p.contentMatchAt(0).defaultType:null,m={...vn(f,p.type.name,p.attrs),...t},v={...vn(f,l.node().type.name,l.node().attrs),...t};n.delete(l.pos,u.pos);const g=h?[{type:c,attrs:m},{type:h,attrs:v}]:[{type:c,attrs:m}];if(!Object(O["e"])(n.doc,l.pos,2))return!1;if(a){const{selection:e,storedMarks:t}=o,{splittableMarks:r}=i.extensionManager,s=t||e.$to.parentOffset&&e.$from.marks();if(n.split(l.pos,2,g).scrollIntoView(),!s||!a)return!0;const c=s.filter(e=>r.includes(e.type.name));n.ensureMarks(c)}return!0},An=(e,t)=>{const n=pn(e=>e.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===r)return!0;const o=e.doc.nodeAt(r),a=n.node.type===(null===o||void 0===o?void 0:o.type)&&Object(O["d"])(e.doc,n.pos);return!a||(e.join(n.pos),!0)},Nn=(e,t)=>{const n=pn(e=>e.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(void 0===r)return!0;const o=e.doc.nodeAt(r),a=n.node.type===(null===o||void 0===o?void 0:o.type)&&Object(O["d"])(e.doc,r);return!a||(e.join(r),!0)},Rn=(e,t,n,r={})=>({editor:o,tr:a,state:i,dispatch:s,chain:c,commands:l,can:u})=>{const{extensions:d,splittableMarks:p}=o.extensionManager,f=be(e,i.schema),h=be(t,i.schema),{selection:m,storedMarks:v}=i,{$from:g,$to:_}=m,b=g.blockRange(_),y=v||m.$to.parentOffset&&m.$from.marks();if(!b)return!1;const O=pn(e=>bn(e.type.name,d))(m);if(b.depth>=1&&O&&b.depth-O.depth<=1){if(O.node.type===f)return l.liftListItem(h);if(bn(O.node.type.name,d)&&f.validContent(O.node.content)&&s)return c().command(()=>(a.setNodeMarkup(O.pos,f),!0)).command(()=>An(a,f)).command(()=>Nn(a,f)).run()}return n&&y&&s?c().command(()=>{const e=u().wrapInList(f,r),t=y.filter(e=>p.includes(e.type.name));return a.ensureMarks(t),!!e||l.clearNodes()}).wrapInList(f,r).command(()=>An(a,f)).command(()=>Nn(a,f)).run():c().command(()=>{const e=u().wrapInList(f,r);return!!e||l.clearNodes()}).wrapInList(f,r).command(()=>An(a,f)).command(()=>Nn(a,f)).run()},xn=(e,t={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:a=!1}=n,i=vt(e,r.schema),s=gn(r,i,t);return s?o.unsetMark(i,{extendEmptyMarkRange:a}):o.setMark(i,t)},Pn=(e,t,n={})=>({state:r,commands:o})=>{const a=be(e,r.schema),i=be(t,r.schema),s=zt(r,a,n);let c;return r.selection.$anchor.sameParent(r.selection.$head)&&(c=r.selection.$anchor.parent.attrs),s?o.setNode(i,c):o.setNode(a,{...c,...n})},Un=(e,t={})=>({state:n,commands:r})=>{const o=be(e,n.schema),a=zt(n,o,t);return a?r.lift(o):r.wrapIn(o,t)},Vn=()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let a;if(o.spec.isInputRules&&(a=o.getState(e))){if(t){const t=e.tr,n=a.transform;for(let e=n.steps.length-1;e>=0;e-=1)t.step(n.steps[e].invert(n.docs[e]));if(a.text){const n=t.doc.resolve(a.from).marks();t.replaceWith(a.from,a.to,e.schema.text(a.text,n))}else t.delete(a.from,a.to)}return!0}}return!1},Bn=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:o}=n;return r||t&&o.forEach(t=>{e.removeMark(t.$from.pos,t.$to.pos)}),!0},Fn=(e,t={})=>({tr:n,state:r,dispatch:o})=>{var a;const{extendEmptyMarkRange:i=!1}=t,{selection:s}=n,c=vt(e,r.schema),{$from:l,empty:u,ranges:d}=s;if(!o)return!0;if(u&&i){let{from:e,to:t}=s;const r=null===(a=l.marks().find(e=>e.type===c))||void 0===a?void 0:a.attrs,o=mt(l,c,r);o&&(e=o.from,t=o.to),n.removeMark(e,t,c)}else d.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,c)});return n.removeStoredMark(c),!0},Gn=(e,t={})=>({tr:n,state:r,dispatch:o})=>{let a=null,i=null;const s=Jt("string"===typeof e?e:e.name,r.schema);return!!s&&("node"===s&&(a=be(e,r.schema)),"mark"===s&&(i=vt(e,r.schema)),o&&n.selection.ranges.forEach(e=>{const o=e.$from.pos,s=e.$to.pos;let c,l,u,d;n.selection.empty?r.doc.nodesBetween(o,s,(e,t)=>{a&&a===e.type&&(u=Math.max(t,o),d=Math.min(t+e.nodeSize,s),c=t,l=e)}):r.doc.nodesBetween(o,s,(e,r)=>{r<o&&a&&a===e.type&&(u=Math.max(r,o),d=Math.min(r+e.nodeSize,s),c=r,l=e),r>=o&&r<=s&&(a&&a===e.type&&n.setNodeMarkup(r,void 0,{...e.attrs,...t}),i&&e.marks.length&&e.marks.forEach(a=>{if(i===a.type){const c=Math.max(r,o),l=Math.min(r+e.nodeSize,s);n.addMark(c,l,i.create({...a.attrs,...t}))}}))}),l&&(void 0!==c&&n.setNodeMarkup(c,void 0,{...l.attrs,...t}),i&&l.marks.length&&l.marks.forEach(e=>{i===e.type&&n.addMark(u,d,i.create({...e.attrs,...t}))}))}),!0)},Hn=(e,t={})=>({state:n,dispatch:r})=>{const o=be(e,n.schema);return Z(o,t)(n,r)},Yn=(e,t={})=>({state:n,dispatch:r})=>{const o=be(e,n.schema);return ie(o,t)(n,r)};var zn=Object.freeze({__proto__:null,blur:et,clearContent:tt,clearNodes:nt,command:rt,createParagraphNear:ot,cut:at,deleteCurrentNode:it,deleteNode:st,deleteRange:ct,deleteSelection:lt,enter:ut,exitCode:dt,extendMarkRange:gt,first:_t,focus:wt,forEach:St,insertContent:Tt,insertContentAt:At,joinBackward:xt,joinDown:Rt,joinForward:Pt,joinItemBackward:Ut,joinItemForward:Vt,joinTextblockBackward:Bt,joinTextblockForward:Ft,joinUp:Nt,keyboardShortcut:Yt,lift:qt,liftEmptyBlock:Wt,liftListItem:Kt,newlineInCode:$t,resetAttributes:Qt,scrollIntoView:Zt,selectAll:en,selectNodeBackward:tn,selectNodeForward:nn,selectParentNode:rn,selectTextblockEnd:on,selectTextblockStart:an,setContent:cn,setMark:Cn,setMeta:wn,setNode:Sn,setNodeSelection:Tn,setTextSelection:In,sinkListItem:En,splitBlock:Dn,splitListItem:Ln,toggleList:Rn,toggleMark:xn,toggleNode:Pn,toggleWrap:Un,undoInputRule:Vn,unsetAllMarks:Bn,unsetMark:Fn,updateAttributes:Gn,wrapIn:Hn,wrapInList:Yn});const qn=Je.create({name:"commands",addCommands(){return{...zn}}}),Wn=Je.create({name:"drop",addProseMirrorPlugins(){return[new r["d"]({key:new r["e"]("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),Kn=Je.create({name:"editable",addProseMirrorPlugins(){return[new r["d"]({key:new r["e"]("editable"),props:{editable:()=>this.editor.options.editable}})]}}),$n=new r["e"]("focusEvents"),Jn=Je.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new r["d"]({key:$n,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),Xn=Je.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{const{selection:n,doc:o}=t,{empty:a,$anchor:i}=n,{pos:s,parent:c}=i,l=i.parent.isTextblock&&s>0?t.doc.resolve(s-1):i,u=l.parent.type.spec.isolating,d=i.pos-i.parentOffset,p=u&&1===l.parent.childCount?d===i.pos:r["f"].atStart(o).from===s;return!(!a||!c.type.isTextblock||c.textContent.length||!p||p&&"paragraph"===i.parent.type.name)&&e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n=()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),o={Enter:n,"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},a={...o},i={...o,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return kt()||Gt()?i:a},addProseMirrorPlugins(){return[new r["d"]({key:new r["e"]("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(e=>e.getMeta("composition")))return;const o=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),a=e.some(e=>e.getMeta("preventClearDocument"));if(!o||a)return;const{empty:i,from:s,to:c}=t.selection,l=r["f"].atStart(t.doc).from,u=r["f"].atEnd(t.doc).to,d=s===l&&c===u;if(i||!d)return;const p=yn(n.doc);if(!p)return;const f=n.tr,h=fe({state:n,transaction:f}),{commands:m}=new he({editor:this.editor,state:h});return m.clearNodes(),f.steps.length?f:void 0}})]}}),Qn=Je.create({name:"paste",addProseMirrorPlugins(){return[new r["d"]({key:new r["e"]("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),Zn=Je.create({name:"tabindex",addProseMirrorPlugins(){return[new r["d"]({key:new r["e"]("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class er{get name(){return this.node.type.name}constructor(e,t,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=t,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return null!==(e=this.actualDepth)&&void 0!==e?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,n=this.to;if(this.isBlock){if(0===this.content.size)return void console.error(`You cant set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);t=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:t,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(0===this.depth)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),t=this.resolvedPos.doc.resolve(e);return new er(t,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new er(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new er(e,this.editor)}get children(){const e=[];return this.node.content.forEach((t,n)=>{const r=t.isBlock&&!t.isTextblock,o=t.isAtom&&!t.isText,a=this.pos+n+(o?0:1);if(a<0||a>this.resolvedPos.doc.nodeSize-2)return;const i=this.resolvedPos.doc.resolve(a);if(!r&&i.depth<=this.depth)return;const s=new er(i,this.editor,r,r?t:null);r&&(s.actualDepth=this.depth+1),e.push(new er(i,this.editor,r,r?t:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,t={}){let n=null,r=this.parent;while(r&&!n){if(r.node.type.name===e)if(Object.keys(t).length>0){const e=r.node.attrs,n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];if(e[o]!==t[o])break}}else n=r;r=r.parent}return n}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},n=!1){let r=[];if(!this.children||0===this.children.length)return r;const o=Object.keys(t);return this.children.forEach(a=>{if(!(n&&r.length>0)){if(a.node.type.name===e){const e=o.every(e=>t[e]===a.node.attrs[e]);e&&r.push(a)}n&&r.length>0||(r=r.concat(a.querySelectorAll(e,t,n)))}}),r}setAttribute(e){const{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}}const tr='.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 0 !important;\n height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}';function nr(e,t,n){const r=document.querySelector(`style[data-tiptap-style${n?"-"+n:""}]`);if(null!==r)return r;const o=document.createElement("style");return t&&o.setAttribute("nonce",t),o.setAttribute("data-tiptap-style"+(n?"-"+n:""),""),o.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(o),o}class rr extends me{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:e})=>{throw e},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:e,slice:t,moved:n})=>this.options.onDrop(e,t,n)),this.on("paste",({event:e,slice:t})=>this.options.onPaste(e,t)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=nr(tr,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const n=Me(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const t=this.state.plugins;let n=t;if([].concat(e).forEach(e=>{const t="string"===typeof e?e+"$":e.key;n=n.filter(e=>!e.key.startsWith(t))}),t.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;const n=this.options.enableCoreExtensions?[Kn,Ze.configure({blockSeparator:null===(t=null===(e=this.options.coreExtensionOptions)||void 0===e?void 0:e.clipboardTextSerializer)||void 0===t?void 0:t.blockSeparator}),qn,Jn,Xn,Zn,Wn,Qn].filter(e=>"object"!==typeof this.options.enableCoreExtensions||!1!==this.options.enableCoreExtensions[e.name]):[],r=[...n,...this.options.extensions].filter(e=>["extension","node","mark"].includes(null===e||void 0===e?void 0:e.type));this.extensionManager=new $e(r,this)}createCommandManager(){this.commandManager=new he({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let t;try{t=sn(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(s){if(!(s instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(s.message))throw s;this.emit("contentError",{editor:this,error:s,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(e=>"collaboration"!==e.name),this.createExtensionManager()}}),t=sn(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=Ot(t,this.options.autofocus);this.view=new o["c"](this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...null===(e=this.options.editorProps)||void 0===e?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:r["b"].create({doc:t,selection:n||void 0})});const a=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(a),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className="tiptap "+this.view.dom.className}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void e.steps.forEach(e=>{var t;return null===(t=this.capturedTransaction)||void 0===t?void 0:t.step(e)}):void(this.capturedTransaction=e);const t=this.state.apply(e),n=!this.state.selection.eq(t.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),o=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),o&&this.emit("blur",{editor:this,event:o.event,transaction:e}),e.docChanged&&!e.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return mn(this.state,e)}isActive(e,t){const n="string"===typeof e?e:null,r="string"===typeof e?t:e;return _n(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return De(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t="\n\n",textSerializers:n={}}=e||{};return fn(this.state.doc,{blockSeparator:t,textSerializers:{...Qe(this.schema),...n}})}get isEmpty(){return yn(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(null===(e=this.view)||void 0===e?void 0:e.docView)}$node(e,t){var n;return(null===(n=this.$doc)||void 0===n?void 0:n.querySelector(e,t))||null}$nodes(e,t){var n;return(null===(n=this.$doc)||void 0===n?void 0:n.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new er(t,this)}get $doc(){return this.$pos(0)}}function or(e){return new Ne({find:e.find,handler:({state:t,range:n,match:r})=>{const o=ke(e.getAttributes,void 0,r)||{},{tr:a}=t,i=n.from;let s=n.to;const c=e.type.create(o);if(r[1]){const e=r[0].lastIndexOf(r[1]);let t=i+e;t>s?t=s:s=t+r[1].length;const n=r[0][r[0].length-1];a.insertText(n,i+r[0].length-1),a.replaceWith(t,s,c)}else if(r[0]){const t=e.type.isInline?i:i-1;a.insert(t,e.type.create(o)).delete(a.mapping.map(i),a.mapping.map(s))}a.scrollIntoView()}})}class ar{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ke(ve(this,"addOptions",{name:this.name}))),this.storage=ke(ve(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ar(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>Be(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new ar(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=ke(ve(t,"addOptions",{name:t.name})),t.storage=ke(ve(t,"addStorage",{name:t.name,options:t.options})),t}}class ir{constructor(e,t,n){this.isDragging=!1,this.component=e,this.editor=t.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=t.extension,this.node=t.node,this.decorations=t.decorations,this.innerDecorations=t.innerDecorations,this.view=t.view,this.HTMLAttributes=t.HTMLAttributes,this.getPos=t.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var t,n,o,a,i,s,c;const{view:l}=this.editor,u=e.target,d=3===u.nodeType?null===(t=u.parentElement)||void 0===t?void 0:t.closest("[data-drag-handle]"):u.closest("[data-drag-handle]");if(!this.dom||(null===(n=this.contentDOM)||void 0===n?void 0:n.contains(u))||!d)return;let p=0,f=0;if(this.dom!==d){const t=this.dom.getBoundingClientRect(),n=d.getBoundingClientRect(),r=null!==(o=e.offsetX)&&void 0!==o?o:null===(a=e.nativeEvent)||void 0===a?void 0:a.offsetX,c=null!==(i=e.offsetY)&&void 0!==i?i:null===(s=e.nativeEvent)||void 0===s?void 0:s.offsetY;p=n.x-t.x+r,f=n.y-t.y+c}const h=this.dom.cloneNode(!0);null===(c=e.dataTransfer)||void 0===c||c.setDragImage(h,p,f);const m=this.getPos();if("number"!==typeof m)return;const v=r["c"].create(l.state.doc,m),g=l.state.tr.setSelection(v);l.dispatch(g)}stopEvent(e){var t;if(!this.dom)return!1;if("function"===typeof this.options.stopEvent)return this.options.stopEvent({event:e});const n=e.target,o=this.dom.contains(n)&&!(null===(t=this.contentDOM)||void 0===t?void 0:t.contains(n));if(!o)return!1;const a=e.type.startsWith("drag"),i="drop"===e.type,s=["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable;if(s&&!i&&!a)return!0;const{isEditable:c}=this.editor,{isDragging:l}=this,u=!!this.node.type.spec.draggable,d=r["c"].isSelectable(this.node),p="copy"===e.type,f="paste"===e.type,h="cut"===e.type,m="mousedown"===e.type;if(!u&&d&&a&&e.target===this.dom&&e.preventDefault(),u&&a&&!l&&e.target===this.dom)return e.preventDefault(),!1;if(u&&c&&!l&&m){const e=n.closest("[data-drag-handle]"),t=e&&(this.dom===e||this.dom.contains(e));t&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(l||i||p||f||h||m&&d)}ignoreMutation(e){if(!this.dom||!this.contentDOM)return!0;if("function"===typeof this.options.ignoreMutation)return this.options.ignoreMutation({mutation:e});if(this.node.isLeaf||this.node.isAtom)return!0;if("selection"===e.type)return!1;if(this.dom.contains(e.target)&&"childList"===e.type&&(kt()||Mt())&&this.editor.isFocused){const t=[...Array.from(e.addedNodes),...Array.from(e.removedNodes)];if(t.every(e=>e.isContentEditable))return!1}return this.contentDOM===e.target&&"attributes"===e.type||!this.contentDOM.contains(e.target)}updateAttributes(e){this.editor.commands.command(({tr:t})=>{const n=this.getPos();return"number"===typeof n&&(t.setNodeMarkup(n,void 0,{...this.node.attrs,...e}),!0)})}deleteNode(){const e=this.getPos();if("number"!==typeof e)return;const t=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:t})}}function sr(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}},"1b0d":function(e,t,n){"use strict";var r=n("437b"),o=n("9412"),a=n("da43"),i=Array.prototype,s=String.prototype;e.exports=function(e){var t=e.includes;return e===i||r(i,e)&&t===i.includes?o:"string"==typeof e||e===s||r(s,e)&&t===s.includes?a:t}},"1b45":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},"1ba9":function(e,t,n){"use strict";n("8c3c");var r=n("764b");e.exports=r.Reflect.get},"1be4":function(e,t,n){"use strict";var r=n("d066");e.exports=r("document","documentElement")},"1c0a":function(e,t,n){"use strict";var r=n("d63b"),o=n("8f95");e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},"1c29":function(e,t,n){"use strict";n("fc93"),n("6f89"),n("8b7b"),n("b288"),n("e363"),n("64db"),n("18fa"),n("22a9"),n("9080"),n("0e67"),n("e699"),n("e7cc"),n("2e85"),n("980e"),n("9ac4"),n("274e"),n("8d05"),n("ef09"),n("aa1b"),n("522d"),n("8176"),n("d1ac");var r=n("764b");e.exports=r.Symbol},"1cb0":function(e,t,n){"use strict";var r=n("d789");e.exports=r},"1cfd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,o,a,i){var s=n(t),c=r[e][n(t)];return 2===s&&(c=c[o?0:1]),c.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],i=e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return i}))},"1d02":function(e,t,n){"use strict";var r=n("ebb5"),o=n("a258").findLastIndex,a=r.aTypedArray,i=r.exportTypedArrayMethod;i("findLastIndex",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},"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)}}},"1d3a":function(e,t,n){"use strict";var r=n("a5eb"),o=n("6220"),a=n("bae4"),i=n("dfdb"),s=n("4508"),c=n("c74f"),l=n("a421"),u=n("6c15"),d=n("ffb3"),p=n("0363"),f=n("9c96"),h=n("eb54"),m=f("slice"),v=p("species"),g=Array,_=Math.max;r({target:"Array",proto:!0,forced:!m},{slice:function(e,t){var n,r,p,f=l(this),m=c(f),b=s(e,m),y=s(void 0===t?m:t,m);if(o(f)&&(n=f.constructor,a(n)&&(n===g||o(n.prototype))?n=void 0:i(n)&&(n=n[v],null===n&&(n=void 0)),n===g||void 0===n))return h(f,b,y);for(r=new(void 0===n?g:n)(_(y-b,0)),p=0;b<y;b++,p++)b in f&&u(r,p,f[b]);return d(r,p),r}})},"1d80":function(e,t,n){"use strict";var r=n("7234"),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},"1db3":function(e,t,n){"use strict";n("4283"),n("9c6f");var r=n("c18e");e.exports=r("Array","flat")},"1dda":function(e,t,n){"use strict";var r=n("6220"),o=n("bae4"),a=n("dfdb"),i=n("0363"),s=i("species"),c=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,o(t)&&(t===c||r(t.prototype))?t=void 0:a(t)&&(t=t[s],null===t&&(t=void 0))),void 0===t?c:t}},"1e1e":function(e,t,n){"use strict";var r=n("3eba"),o=r.isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&o(e)}},"1e52":function(e,t,n){"use strict";var r=n("2364");n("5145"),e.exports=r},"1e54":function(e,t,n){"use strict";var r=n("5e0b");e.exports=r},"1eaf":function(e,t,n){e.exports=n("86d6")},"1f77":function(e,t,n){"use strict";n.d(t,"a",(function(){return Dj}));var r=n("0c24"),o=n("b181"),a=n("8afb"),i=n("0e69"),s=n("c79f"),c=n("0898");const l=Object(c["b"])({to:{type:Object(c["c"])([String,Object]),required:!0},disabled:Boolean});var u=n("7a23"),d=Object(u["defineComponent"])({__name:"teleport",props:l,setup(e){return(e,t)=>e.disabled?Object(u["renderSlot"])(e.$slots,"default",{key:0}):(Object(u["openBlock"])(),Object(u["createBlock"])(u["Teleport"],{key:1,to:e.to},[Object(u["renderSlot"])(e.$slots,"default")],8,["to"]))}}),p=d;const f=Object(r["a"])(p);var h=n("83ec");const m=Object(c["b"])({zIndex:{type:Object(c["c"])([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"},teleported:Boolean,appendTo:{type:l.to.type,default:"body"}}),v={scroll:({scrollTop:e,fixed:t})=>Object(h["d"])(e)&&Object(h["a"])(t),[o["a"]]:e=>Object(h["a"])(e)};var g=n("304f"),_=n("0931");const b="ElAffix";var y=Object(u["defineComponent"])({name:b,__name:"affix",props:m,emits:v,setup(e,{expose:t,emit:n}){const r=e,c=n,l=Object(g["d"])("affix"),d=Object(u["shallowRef"])(),p=Object(u["shallowRef"])(),h=Object(u["shallowRef"])(),{height:m}=Object(_["useWindowSize"])(),{height:v,width:y,top:O,bottom:M,left:k,update:C}=Object(_["useElementBounding"])(p,{windowScroll:!1}),w=Object(_["useElementBounding"])(d),S=Object(u["ref"])(!1),T=Object(u["ref"])(0),I=Object(u["ref"])(0),E=Object(u["computed"])(()=>!r.teleported||!S.value),j=Object(u["computed"])(()=>({display:"flow-root",height:S.value?v.value+"px":"",width:S.value?y.value+"px":""})),D=Object(u["computed"])(()=>{if(!S.value)return{};const e=Object(i["b"])(r.offset);return{height:v.value+"px",width:y.value+"px",top:"top"===r.position?e:"",bottom:"bottom"===r.position?e:"",left:r.teleported?k.value+"px":"",transform:I.value?`translateY(${I.value}px)`:"",zIndex:r.zIndex}}),L=()=>{if(!h.value)return;T.value=h.value instanceof Window?document.documentElement.scrollTop:h.value.scrollTop||0;const{position:e,target:t,offset:n}=r,o=n+v.value;if("top"===e)if(t){const e=w.bottom.value-o;S.value=n>O.value&&w.bottom.value>0,I.value=e<0?e:0}else S.value=n>O.value;else if(t){const e=m.value-w.top.value-o;S.value=m.value-n<M.value&&m.value>w.top.value,I.value=e<0?-e:0}else S.value=m.value-n<M.value},A=async()=>{S.value?(S.value=!1,await Object(u["nextTick"])(),C(),S.value=!0):C()},N=async()=>{C(),await Object(u["nextTick"])(),c("scroll",{scrollTop:T.value,fixed:S.value})};return Object(u["watch"])(S,e=>c(o["a"],e)),Object(u["onMounted"])(()=>{var e;r.target?(d.value=null!==(e=document.querySelector(r.target))&&void 0!==e?e:void 0,d.value||Object(a["b"])(b,"Target does not exist: "+r.target)):d.value=document.documentElement;h.value=Object(s["c"])(p.value,!0),C()}),Object(u["onActivated"])(()=>{Object(u["nextTick"])(A)}),Object(u["onDeactivated"])(()=>{S.value=!1}),Object(_["useEventListener"])(h,"scroll",N),Object(u["watchEffect"])(L),t({update:L,updateRoot:A}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref_key:"root",ref:p,class:Object(u["normalizeClass"])(Object(u["unref"])(l).b()),style:Object(u["normalizeStyle"])(j.value)},[Object(u["createVNode"])(Object(u["unref"])(f),{disabled:E.value,to:e.appendTo},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])({[Object(u["unref"])(l).m("fixed")]:S.value}),style:Object(u["normalizeStyle"])(D.value)},[Object(u["renderSlot"])(t.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}}),O=y;const M=Object(r["a"])(O);var k=n("54bb"),C=n("c52e"),w=n.n(C),S=n("31e7"),T=n("9215"),I=n("bfce");const E=["light","dark"],j=Object(c["b"])({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Object(I["c"])(S["c"]),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:E,default:"light"}}),D={close:e=>e instanceof MouseEvent};var L=Object(u["defineComponent"])({name:"ElAlert",__name:"alert",props:j,emits:D,setup(e,{emit:t}){const{Close:n}=S["b"],r=e,o=t,a=Object(u["useSlots"])(),i=Object(g["d"])("alert"),s=Object(u["ref"])(!0),c=Object(u["computed"])(()=>S["c"][r.type]),l=Object(u["computed"])(()=>{var e,t;if(r.description)return!0;const n=null===(e=a.default)||void 0===e?void 0:e.call(a);return!!n&&w()(t=Object(T["b"])(n)).call(t,e=>!Object(T["d"])(e))}),d=e=>{s.value=!1,o("close",e)};return(t,r)=>(Object(u["openBlock"])(),Object(u["createBlock"])(u["Transition"],{name:Object(u["unref"])(i).b("fade"),persisted:""},{default:Object(u["withCtx"])(()=>[Object(u["withDirectives"])(Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(i).b(),Object(u["unref"])(i).m(e.type),Object(u["unref"])(i).is("center",e.center),Object(u["unref"])(i).is(e.effect)]),role:"alert"},[e.showIcon&&(t.$slots.icon||c.value)?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(i).e("icon"),Object(u["unref"])(i).is("big",l.value)])},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"icon",{},()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(c.value)))])]),_:3},8,["class"])):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("content"))},[e.title||t.$slots.title?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(i).e("title"),{"with-description":l.value}])},[Object(u["renderSlot"])(t.$slots,"title",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.title),1)])],2)):Object(u["createCommentVNode"])("v-if",!0),l.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("p",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("description"))},[Object(u["renderSlot"])(t.$slots,"default",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.description),1)])],2)):Object(u["createCommentVNode"])("v-if",!0),e.closable?(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:2},[e.closeText?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(i).e("close-btn"),Object(u["unref"])(i).is("customed")]),onClick:d},Object(u["toDisplayString"])(e.closeText),3)):(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("close-btn")),onClick:d},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(n))]),_:1},8,["class"]))],64)):Object(u["createCommentVNode"])("v-if",!0)],2)],2),[[u["vShow"],s.value]])]),_:3},8,["name"]))}}),A=L;const N=Object(r["a"])(A);n("d9e2"),n("14d9");var R=n("505e"),x=n.n(R),P=n("3393"),U=n.n(P),V=n("65b8"),B=n.n(V),F=n("c651"),G=n.n(F),H=n("4573"),Y=n.n(H),z=n("045d"),q=n.n(z),W=n("e4f0"),K=n.n(W),$=n("14b1"),J=n.n($),X=n("fa81"),Q=n.n(X),Z=n("3818"),ee=n.n(Z),te=n("7d20"),ne=n("d095"),re=n("d5eb");const oe=Object(c["b"])({size:{type:String,values:re["a"]},disabled:Boolean}),ae=Object(c["b"])({...oe,model:Object,rules:{type:Object(c["c"])(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:Object(c["c"])([Object,Boolean]),default:!0}}),ie={validate:(e,t,n)=>(Object(te["isArray"])(e)||Object(te["isString"])(e))&&Object(h["a"])(t)&&Object(te["isString"])(n)};var se=n("5112"),ce=n("4bea"),le=n("9a73"),ue=n.n(le);const de="ElForm";function pe(){const e=Object(u["ref"])([]),t=Object(u["computed"])(()=>{if(!e.value.length)return"0";const t=Math.max(...e.value);return t?t+"px":""});function n(n){var r;const o=B()(r=e.value).call(r,n);return-1===o&&"0"===t.value&&Object(a["a"])(de,"unexpected width "+n),o}function r(t,r){if(t&&r){var o;const a=n(r);U()(o=e.value).call(o,a,1,t)}else t&&e.value.push(t)}function o(t){var r;const o=n(t);o>-1&&U()(r=e.value).call(r,o,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:o}}const fe=(e,t)=>{var n;const r=J()(n=Object(ne["castArray"])(t)).call(n,e=>Object(te["isArray"])(e)?e.join("."):e);return r.length>0?K()(e).call(e,e=>e.propString&&ue()(r).call(r,e.propString)):e},he="ElForm";var me=Object(u["defineComponent"])({name:he,__name:"form",props:ae,emits:ie,setup(e,{expose:t,emit:n}){const r=e,o=n,i=Object(u["ref"])(),s=Object(u["reactive"])([]),c=new x.a,l=Object(ce["b"])(),d=Object(g["d"])("form"),p=Object(u["computed"])(()=>{const{labelPosition:e,inline:t}=r;return[d.b(),d.m(l.value||"default"),{[d.m("label-"+e)]:e,[d.m("inline")]:t}]}),f=e=>fe(s,[e])[0],h=e=>{s.push(e),e.propString&&(c.has(e.propString)?e.setInitialValue(c.get(e.propString)):c.set(e.propString,Object(ne["cloneDeep"])(e.fieldValue)))},m=e=>{e.prop&&U()(s).call(s,B()(s).call(s,e),1)},v=e=>{if(r.model)if(e){for(const t of G()(c).call(c))c.set(t,Object(ne["cloneDeep"])(Object(I["b"])(e,t).value));Y()(s).call(s,t=>{t.prop&&t.setInitialValue(Object(I["b"])(e,t.prop).value)})}else Object(a["a"])(he,"initModel is required for setInitialValues to work.");else Object(a["a"])(he,"model is required for setInitialValues to work.")},_=(e=[])=>{var t,n,o;if(!r.model)return void Object(a["a"])(he,"model is required for resetFields to work.");Y()(t=fe(s,e)).call(t,e=>e.resetField());const i=new q.a(K()(n=J()(s).call(s,e=>e.propString)).call(n,Boolean)),l=e.length>0?J()(o=Object(ne["castArray"])(e)).call(o,e=>Object(te["isArray"])(e)?e.join("."):e):[...G()(c).call(c)];for(const a of l)!i.has(a)&&c.has(a)&&(Object(I["b"])(r.model,a).value=Object(ne["cloneDeep"])(c.get(a)))},b=(e=[])=>{var t;Y()(t=fe(s,e)).call(t,e=>e.clearValidate())},y=Object(u["computed"])(()=>{const e=!!r.model;return e||Object(a["a"])(he,"model is required for validate to work."),e}),O=e=>{if(0===s.length)return[];const t=fe(s,e);return t.length?t:(Object(a["a"])(he,"please pass correct props!"),[])},M=async e=>C(void 0,e),k=async(e=[])=>{if(!y.value)return!1;const t=O(e);if(0===t.length)return!0;let n={};for(const r of t)try{await r.validate(""),"error"!==r.validateState||r.error||r.resetField()}catch(t){n={...n,...t}}return 0===Q()(n).length||ee.a.reject(n)},C=async(e=[],t)=>{let n=!1;const o=!Object(te["isFunction"])(t);try{return n=await k(e),!0===n&&await(null===t||void 0===t?void 0:t(n)),n}catch(s){if(s instanceof Error)throw s;const e=s;var a;if(r.scrollToError)i.value&&(null===(a=i.value.querySelector(`.${d.b()}-item.is-error`))||void 0===a||a.scrollIntoView(r.scrollIntoViewOptions));return!n&&await(null===t||void 0===t?void 0:t(!1,e)),o&&ee.a.reject(e)}},w=e=>{var t;const n=f(e);n&&(null===(t=n.$el)||void 0===t||t.scrollIntoView(r.scrollIntoViewOptions))};return Object(u["watch"])(()=>r.rules,()=>{r.validateOnRuleChange&&M().catch(e=>Object(a["a"])(e))},{deep:!0,flush:"post"}),Object(u["provide"])(se["a"],Object(u["reactive"])({...Object(u["toRefs"])(r),emit:o,resetFields:_,clearValidate:b,validateField:C,getField:f,addField:h,removeField:m,setInitialValues:v,...pe()})),t({validate:M,validateField:C,resetFields:_,clearValidate:b,scrollToField:w,getField:f,fields:s,setInitialValues:v}),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("form",{ref_key:"formRef",ref:i,class:Object(u["normalizeClass"])(p.value)},[Object(u["renderSlot"])(e.$slots,"default")],2))}}),ve=me,ge=n("35b0");const _e=["","error","validating","success"],be=Object(c["b"])({label:String,labelWidth:{type:[String,Number]},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:Object(c["c"])([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Object(c["c"])([Object,Array])},error:String,validateStatus:{type:String,values:_e},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:re["a"]}});var ye=n("afd8"),Oe=n.n(ye),Me=n("c192"),ke=n.n(Me);const Ce="ElLabelWrap";var we=Object(u["defineComponent"])({name:Ce,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Object(u["inject"])(se["a"],void 0),r=Object(u["inject"])(se["b"]);r||Object(a["b"])(Ce,"usage: <el-form-item><label-wrap /></el-form-item>");const o=Object(g["d"])("form"),i=Object(u["ref"])(),s=Object(u["ref"])(0),c=()=>{var e;if(null!==(e=i.value)&&void 0!==e&&e.firstElementChild){const e=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Oe()(e))}return 0},l=(r="update")=>{Object(u["nextTick"])(()=>{t.default&&e.isAutoWidth&&("update"===r?s.value=c():"remove"===r&&(null===n||void 0===n||n.deregisterLabelWidth(s.value)))})},d=()=>l("update");return Object(u["onMounted"])(()=>{d()}),Object(u["onBeforeUnmount"])(()=>{l("remove")}),Object(u["onUpdated"])(()=>d()),Object(u["watch"])(s,(t,r)=>{e.updateAll&&(null===n||void 0===n||n.registerLabelWidth(t,r))}),Object(_["useResizeObserver"])(Object(u["computed"])(()=>{var e,t;return null!==(e=null===(t=i.value)||void 0===t?void 0:t.firstElementChild)&&void 0!==e?e:null}),d),()=>{var a;if(!t)return null;const{isAutoWidth:c}=e;if(c){var l;const e=null===n||void 0===n?void 0:n.autoLabelWidth,a=null===r||void 0===r?void 0:r.hasLabel,c={};if(a&&e&&"auto"!==e){const t=Math.max(0,ke()(e,10)-s.value),o="left"===(r.labelPosition||n.labelPosition)?"marginRight":"marginLeft";t&&(c[o]=t+"px")}return Object(u["createVNode"])("div",{ref:i,class:[o.be("item","label-wrap")],style:c},[null===(l=t.default)||void 0===l?void 0:l.call(t)])}return Object(u["createVNode"])(u["Fragment"],{ref:i},[null===(a=t.default)||void 0===a?void 0:a.call(t)])}}}),Se=n("0f3d"),Te=n.n(Se);const Ie=["role","aria-labelledby"];var Ee=Object(u["defineComponent"])({name:"ElFormItem",__name:"form-item",props:be,setup(e,{expose:t}){const n=e,r=Object(u["useSlots"])(),o=Object(u["inject"])(se["a"],void 0),a=Object(u["inject"])(se["b"],void 0),s=Object(ce["b"])(void 0,{formItem:!1}),c=Object(g["d"])("form-item"),l=Object(ge["a"])().value,d=Object(u["ref"])([]),p=Object(u["ref"])(""),f=Object(_["refDebounced"])(p,100),m=Object(u["ref"])(""),v=Object(u["ref"])();let b=void 0,y=!1;const O=Object(u["computed"])(()=>n.labelPosition||(null===o||void 0===o?void 0:o.labelPosition)),M=Object(u["computed"])(()=>{var e;return"top"===O.value?{}:{width:Object(i["b"])(null!==(e=n.labelWidth)&&void 0!==e?e:null===o||void 0===o?void 0:o.labelWidth)}}),k=Object(u["computed"])(()=>{var e;if("top"===O.value||null!==o&&void 0!==o&&o.inline)return{};if(!n.label&&!n.labelWidth&&A)return{};const t=Object(i["b"])(null!==(e=n.labelWidth)&&void 0!==e?e:null===o||void 0===o?void 0:o.labelWidth);return n.label||r.label?{}:{marginLeft:t}}),C=Object(u["computed"])(()=>[c.b(),c.m(s.value),c.is("error","error"===p.value),c.is("validating","validating"===p.value),c.is("success","success"===p.value),c.is("required",U.value||n.required),c.is("no-asterisk",null===o||void 0===o?void 0:o.hideRequiredAsterisk),"right"===(null===o||void 0===o?void 0:o.requireAsteriskPosition)?"asterisk-right":"asterisk-left",{[c.m("feedback")]:null===o||void 0===o?void 0:o.statusIcon,[c.m("label-"+O.value)]:O.value}]),S=Object(u["computed"])(()=>Object(h["a"])(n.inlineMessage)?n.inlineMessage:(null===o||void 0===o?void 0:o.inlineMessage)||!1),T=Object(u["computed"])(()=>[c.e("error"),{[c.em("error","inline")]:S.value}]),E=Object(u["computed"])(()=>n.prop?Object(te["isArray"])(n.prop)?n.prop.join("."):n.prop:""),j=Object(u["computed"])(()=>!(!n.label&&!r.label)),D=Object(u["computed"])(()=>{var e;return null!==(e=n.for)&&void 0!==e?e:1===d.value.length?d.value[0]:void 0}),L=Object(u["computed"])(()=>!D.value&&j.value),A=!!a,N=Object(u["computed"])(()=>{const e=null===o||void 0===o?void 0:o.model;if(e&&n.prop)return Object(I["b"])(e,n.prop).value}),R=Object(u["computed"])(()=>{const{required:e}=n,t=[];n.rules&&t.push(...Object(ne["castArray"])(n.rules));const r=null===o||void 0===o?void 0:o.rules;if(r&&n.prop){const e=Object(I["b"])(r,n.prop).value;e&&t.push(...Object(ne["castArray"])(e))}if(void 0!==e){var a;const n=K()(a=J()(t).call(t,(e,t)=>[e,t])).call(a,([e])=>"required"in e);if(n.length>0)for(const[r,o]of n)r.required!==e&&(t[o]={...r,required:e});else t.push({required:e})}return t}),x=Object(u["computed"])(()=>R.value.length>0),P=e=>{var t,n;return J()(t=K()(n=R.value).call(n,t=>{var n;return!t.trigger||!e||(Object(te["isArray"])(t.trigger)?ue()(n=t.trigger).call(n,e):t.trigger===e)})).call(t,({trigger:e,...t})=>t)},U=Object(u["computed"])(()=>{var e;return w()(e=R.value).call(e,e=>e.required)}),V=Object(u["computed"])(()=>{var e;return"error"===f.value&&n.showMessage&&(null===(e=null===o||void 0===o?void 0:o.showMessage)||void 0===e||e)}),B=Object(u["computed"])(()=>`${n.label||""}${(null===o||void 0===o?void 0:o.labelSuffix)||""}`),F=e=>{p.value=e},G=e=>{var t,r;const{errors:a,fields:i}=e;a&&i||console.error(e),F("error"),m.value=a?null!==(t=null===a||void 0===a||null===(r=a[0])||void 0===r?void 0:r.message)&&void 0!==t?t:n.prop+" is required":"",null===o||void 0===o||o.emit("validate",n.prop,!1,m.value)},H=()=>{F("success"),null===o||void 0===o||o.emit("validate",n.prop,!0,"")},Y=async e=>{const t=E.value;return new Te.a({[t]:e}).validate({[t]:N.value},{firstFields:!0}).then(()=>(H(),!0)).catch(e=>(G(e),ee.a.reject(e)))},z=async(e,t)=>{if(y||!n.prop)return!1;const r=Object(te["isFunction"])(t);if(!x.value)return null===t||void 0===t||t(!1),!1;const o=P(e);return 0===o.length?(null===t||void 0===t||t(!0),!0):(F("validating"),Y(o).then(()=>(null===t||void 0===t||t(!0),!0)).catch(e=>{const{fields:n}=e;return null===t||void 0===t||t(!1,n),!r&&ee.a.reject(n)}))},q=()=>{F(""),m.value="",y=!1},W=async()=>{const e=null===o||void 0===o?void 0:o.model;if(!e||!n.prop)return;const t=Object(I["b"])(e,n.prop);y=!0,t.value=Object(ne["cloneDeep"])(b),await Object(u["nextTick"])(),q(),y=!1},$=e=>{var t;ue()(t=d.value).call(t,e)||d.value.push(e)},X=e=>{var t;d.value=K()(t=d.value).call(t,t=>t!==e)},Q=e=>{b=Object(ne["cloneDeep"])(e)};Object(u["watch"])(()=>n.error,e=>{m.value=e||"",F(e?"error":"")},{immediate:!0}),Object(u["watch"])(()=>n.validateStatus,e=>F(e||""));const Z=Object(u["reactive"])({...Object(u["toRefs"])(n),$el:v,size:s,validateMessage:m,validateState:p,labelId:l,inputIds:d,isGroup:L,hasLabel:j,fieldValue:N,addInputId:$,removeInputId:X,resetField:W,clearValidate:q,validate:z,propString:E,setInitialValue:Q});return Object(u["provide"])(se["b"],Z),Object(u["onMounted"])(()=>{n.prop&&(Q(N.value),null===o||void 0===o||o.addField(Z))}),Object(u["onBeforeUnmount"])(()=>{null===o||void 0===o||o.removeField(Z)}),t({size:s,validateMessage:m,validateState:p,validate:z,clearValidate:q,resetField:W,setInitialValue:Q}),(t,n)=>{var r;return Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref_key:"formItemRef",ref:v,class:Object(u["normalizeClass"])(C.value),role:L.value?"group":void 0,"aria-labelledby":L.value?Object(u["unref"])(l):void 0},[Object(u["createVNode"])(Object(u["unref"])(we),{"is-auto-width":"auto"===M.value.width,"update-all":"auto"===(null===(r=Object(u["unref"])(o))||void 0===r?void 0:r.labelWidth)},{default:Object(u["withCtx"])(()=>[e.label||t.$slots.label?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(D.value?"label":"div"),{key:0,id:Object(u["unref"])(l),for:D.value,class:Object(u["normalizeClass"])(Object(u["unref"])(c).e("label")),style:Object(u["normalizeStyle"])(M.value)},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"label",{label:B.value},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(B.value),1)])]),_:3},8,["id","for","class","style"])):Object(u["createCommentVNode"])("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(c).e("content")),style:Object(u["normalizeStyle"])(k.value)},[Object(u["renderSlot"])(t.$slots,"default"),Object(u["createVNode"])(u["TransitionGroup"],{name:Object(u["unref"])(c).namespace.value+"-zoom-in-top"},{default:Object(u["withCtx"])(()=>[V.value?Object(u["renderSlot"])(t.$slots,"error",{key:0,error:m.value},()=>[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(T.value)},Object(u["toDisplayString"])(m.value),3)]):Object(u["createCommentVNode"])("v-if",!0)]),_:3},8,["name"])],6)],10,Ie)}}}),je=Ee;const De=Object(r["a"])(ve,{FormItem:je}),Le=Object(r["d"])(je),Ae=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Ne=Object(c["b"])({role:{type:String,values:Ae,default:"tooltip"}});var Re=n("3b4c"),xe=n.n(Re);const Pe=xe()("popper"),Ue=xe()("popperContent");var Ve=Object(u["defineComponent"])({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:Ne,setup(e,{expose:t}){const n=e,r={triggerRef:Object(u["ref"])(),popperInstanceRef:Object(u["ref"])(),contentRef:Object(u["ref"])(),referenceRef:Object(u["ref"])(),role:Object(u["computed"])(()=>n.role)};return t(r),Object(u["provide"])(Pe,r),(e,t)=>Object(u["renderSlot"])(e.$slots,"default")}}),Be=Ve;const Fe=Object(r["a"])(Be),Ge=()=>{const e=Object(g["c"])(),t=Object(ge["b"])(),n=Object(u["computed"])(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:Object(u["computed"])(()=>"#"+n.value)}},He=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Ye=()=>{const{id:e,selector:t}=Ge();return Object(u["onBeforeMount"])(()=>{_["isClient"]&&(document.body.querySelector(t.value)||He(e.value))}),{id:e,selector:t}};var ze=n("2b0b"),qe=n.n(ze);function We(){let e;const t=(t,r)=>{n(),e=qe()(t,r)},n=()=>window.clearTimeout(e);return Object(_["tryOnScopeDispose"])(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Ke=Object(c["b"])({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),$e={showAfter:0,hideAfter:200,autoClose:0},Je=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:a}=We(),{registerTimeout:i,cancelTimeout:s}=We(),c=(t,s=Object(u["unref"])(e))=>{a(()=>{r(t);const e=Object(u["unref"])(n);Object(h["d"])(e)&&e>0&&i(()=>{o(t)},e)},s)},l=(e,n=Object(u["unref"])(t))=>{s(),a(()=>{o(e)},n)};return{onOpen:c,onClose:l}};var Xe=Object(u["defineComponent"])({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=Object(g["d"])("popper"),{arrowRef:r,arrowStyle:o}=Object(u["inject"])(Ue,void 0);return Object(u["onBeforeUnmount"])(()=>{r.value=void 0}),t({arrowRef:r}),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{ref_key:"arrowRef",ref:r,class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("arrow")),style:Object(u["normalizeStyle"])(Object(u["unref"])(o)),"data-popper-arrow":""},null,6))}}),Qe=Xe;const Ze=Object(c["a"])({type:Object(c["c"])(Boolean),default:null}),et=Object(c["a"])({type:Object(c["c"])(Function)}),tt=e=>{const t="update:"+e,n="onUpdate:"+e,r=[t],o={[e]:Ze,[n]:et},a=({indicator:r,toggleReason:o,shouldHideWhenRouteChanges:a,shouldProceed:i,onShow:s,onHide:c})=>{const l=Object(u["getCurrentInstance"])(),{emit:d}=l,p=l.props,f=Object(u["computed"])(()=>Object(te["isFunction"])(p[n])),m=Object(u["computed"])(()=>null===p[e]),v=e=>{!0!==r.value&&(r.value=!0,o&&(o.value=e),Object(te["isFunction"])(s)&&s(e))},g=e=>{!1!==r.value&&(r.value=!1,o&&(o.value=e),Object(te["isFunction"])(c)&&c(e))},b=e=>{if(!0===p.disabled||Object(te["isFunction"])(i)&&!i())return;const n=f.value&&_["isClient"];n&&d(t,!0),!m.value&&n||v(e)},y=e=>{if(!0===p.disabled||!_["isClient"])return;const n=f.value&&_["isClient"];n&&d(t,!1),!m.value&&n||g(e)},O=e=>{Object(h["a"])(e)&&(p.disabled&&e?f.value&&d(t,!1):r.value!==e&&(e?v():g()))},M=()=>{r.value?y():b()};return Object(u["watch"])(()=>p[e],O),a&&void 0!==l.appContext.config.globalProperties.$route&&Object(u["watch"])(()=>({...l.proxy.$route}),()=>{a.value&&r.value&&y()}),Object(u["onMounted"])(()=>{O(p[e])}),{hide:y,show:b,toggle:M,hasUpdateHandler:f}};return{useModelToggle:a,useModelToggleProps:o,useModelToggleEmits:r}},{useModelToggle:nt,useModelToggleProps:rt,useModelToggleEmits:ot}=tt("modelValue"),at=Object(c["b"])({arrowOffset:{type:Number,default:5}}),it={arrowOffset:5};var st=n("8b1e"),ct=n("5e76");const lt=["fixed","absolute"],ut=Object(c["b"])({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Object(c["c"])(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:ct["placements"],default:"bottom"},popperOptions:{type:Object(c["c"])(Object),default:()=>({})},strategy:{type:String,values:lt,default:"absolute"}}),dt=Object(c["b"])({...ut,...at,id:String,style:{type:Object(c["c"])([String,Array,Object])},className:{type:Object(c["c"])([String,Array,Object])},effect:{type:Object(c["c"])(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:Object(c["c"])([String,Array,Object])},popperStyle:{type:Object(c["c"])([String,Array,Object])},referenceEl:{type:Object(c["c"])(Object)},triggerTargetEl:{type:Object(c["c"])(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Object(st["a"])(["ariaLabel"]),loop:Boolean}),pt={boundariesPadding:0,gpuAcceleration:!0,offset:12,placement:"bottom",popperOptions:()=>({}),strategy:"absolute"},ft={...pt,...it,effect:"dark",enterable:!0,stopPopperMouseEvent:!0,visible:!1,pure:!1,focusOnShow:!1,trapping:!1,virtualTriggering:!1,loop:!1,style:void 0,popperStyle:void 0},ht={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},mt=Object(c["b"])({...Ke,...dt,appendTo:{type:l.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Object(c["c"])(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Object(st["a"])(["ariaLabel"])});var vt=n("49c6");const gt=Object(c["b"])({virtualRef:{type:Object(c["c"])(Object)},virtualTriggering:Boolean,onMouseenter:{type:Object(c["c"])(Function)},onMouseleave:{type:Object(c["c"])(Function)},onClick:{type:Object(c["c"])(Function)},onKeydown:{type:Object(c["c"])(Function)},onFocus:{type:Object(c["c"])(Function)},onBlur:{type:Object(c["c"])(Function)},onContextmenu:{type:Object(c["c"])(Function)},id:String,open:Boolean}),_t=Object(c["b"])({...gt,disabled:Boolean,trigger:{type:Object(c["c"])([String,Array]),default:"hover"},triggerKeys:{type:Object(c["c"])(Array),default:()=>[vt["a"].enter,vt["a"].numpadEnter,vt["a"].space]},focusOnTarget:Boolean}),{useModelToggleProps:bt,useModelToggleEmits:yt,useModelToggle:Ot}=tt("visible"),Mt=Object(c["b"])({...Ne,...bt,...mt,..._t,...at,showArrow:{type:Boolean,default:!0}}),kt=[...yt,"before-show","before-hide","show","hide","open","close"],Ct=xe()("elTooltip");var wt=n("9885"),St=n("6a7a"),Tt=n("52da"),It=n.n(Tt);const Et=xe()("elForwardRef"),jt=e=>{const t=t=>{e.value=t};Object(u["provide"])(Et,{setForwardRef:t})},Dt=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Lt="ElOnlyChild",At=Object(u["defineComponent"])({name:Lt,setup(e,{slots:t,attrs:n}){var r,o;const i=Dt(null!==(r=null===(o=Object(u["inject"])(Et))||void 0===o?void 0:o.setForwardRef)&&void 0!==r?r:te["NOOP"]);return()=>{var e;const r=null===(e=t.default)||void 0===e?void 0:e.call(t,n);if(!r)return null;const[o,s]=Nt(r);return o?(s>1&&Object(a["a"])(Lt,"requires exact only one valid child."),Object(u["withDirectives"])(Object(u["cloneVNode"])(o,n),[[i]])):(Object(a["a"])(Lt,"no valid child node found"),null)}}});function Nt(e){if(!e)return[null,0];const t=e,n=K()(t).call(t,e=>e.type!==u["Comment"]).length;for(const r of t){if(Object(te["isObject"])(r))switch(r.type){case u["Comment"]:continue;case u["Text"]:case"svg":return[Rt(r),n];case u["Fragment"]:return Nt(r.children);default:return[r,n]}return[Rt(r),n]}return[null,0]}function Rt(e){const t=Object(g["d"])("only-child");return Object(u["createVNode"])("span",{class:t.e("content")},[e])}var xt=Object(u["defineComponent"])({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:gt,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=Object(u["inject"])(Pe,void 0);jt(o);const a=Object(u["computed"])(()=>s.value?n.id:void 0),i=Object(u["computed"])(()=>{if(r&&"tooltip"===r.value)return n.open&&n.id?n.id:void 0}),s=Object(u["computed"])(()=>{if(r&&"tooltip"!==r.value)return r.value}),c=Object(u["computed"])(()=>s.value?""+n.open:void 0);let l=void 0;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return Object(u["onMounted"])(()=>{Object(u["watch"])(()=>n.virtualRef,e=>{e&&(o.value=Object(_["unrefElement"])(e))},{immediate:!0}),Object(u["watch"])(o,(e,t)=>{var r,o;null===(r=l)||void 0===r||r(),l=void 0,Object(h["b"])(t)&&Y()(d).call(d,e=>{var r;const o=n[e];o&&t.removeEventListener(It()(e).call(e,2).toLowerCase(),o,ue()(r=["onFocus","onBlur"]).call(r,e))}),Object(h["b"])(e)&&(Y()(d).call(d,t=>{var r;const o=n[t];o&&e.addEventListener(It()(t).call(t,2).toLowerCase(),o,ue()(r=["onFocus","onBlur"]).call(r,t))}),Object(wt["d"])(e)&&(l=Object(u["watch"])([a,i,s,c],t=>{var n;Y()(n=["aria-controls","aria-describedby","aria-haspopup","aria-expanded"]).call(n,(n,r)=>{Object(ne["isNil"])(t[r])?e.removeAttribute(n):e.setAttribute(n,t[r])})},{immediate:!0}))),Object(h["b"])(t)&&Object(wt["d"])(t)&&Y()(o=["aria-controls","aria-describedby","aria-haspopup","aria-expanded"]).call(o,e=>t.removeAttribute(e))},{immediate:!0})}),Object(u["onBeforeUnmount"])(()=>{var e;if(null===(e=l)||void 0===e||e(),l=void 0,o.value&&Object(h["b"])(o.value)){const e=o.value;Y()(d).call(d,t=>{var r;const o=n[t];o&&e.removeEventListener(It()(t).call(t,2).toLowerCase(),o,ue()(r=["onFocus","onBlur"]).call(r,t))}),o.value=void 0}}),t({triggerRef:o}),(t,n)=>e.virtualTriggering?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(At),Object(u["mergeProps"])({key:0},t.$attrs,{"aria-controls":a.value,"aria-describedby":i.value,"aria-expanded":c.value,"aria-haspopup":s.value}),{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}),Pt=xt;const Ut=(e,t)=>Object(te["isArray"])(e)?ue()(e).call(e,t):e===t,Vt=(e,t,n)=>r=>{Ut(Object(u["unref"])(e),t)&&n(r)};var Bt=Object(u["defineComponent"])({name:"ElTooltipTrigger",__name:"trigger",props:_t,setup(e,{expose:t}){const n=e,r=Object(g["d"])("tooltip"),{controlled:o,id:a,open:i,onOpen:s,onClose:c,onToggle:l}=Object(u["inject"])(Ct,void 0),d=Object(u["ref"])(null),p=()=>{if(Object(u["unref"])(o)||n.disabled)return!0},f=Object(u["toRef"])(n,"trigger"),h=Object(St["a"])(p,Vt(f,"hover",e=>{s(e),n.focusOnTarget&&e.target&&Object(u["nextTick"])(()=>{Object(wt["a"])(e.target,{preventScroll:!0})})})),m=Object(St["a"])(p,Vt(f,"hover",c)),v=Object(St["a"])(p,Vt(f,"click",e=>{0===e.button&&l(e)})),_=Object(St["a"])(p,Vt(f,"focus",s)),b=Object(St["a"])(p,Vt(f,"focus",c)),y=Object(St["a"])(p,Vt(f,"contextmenu",e=>{e.preventDefault(),l(e)})),O=Object(St["a"])(p,e=>{var t;const r=Object(St["b"])(e);ue()(t=n.triggerKeys).call(t,r)&&(e.preventDefault(),l(e))});return t({triggerRef:d}),(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Pt),{id:Object(u["unref"])(a),"virtual-ref":e.virtualRef,open:Object(u["unref"])(i),"virtual-triggering":e.virtualTriggering,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("trigger")),onBlur:Object(u["unref"])(b),onClick:Object(u["unref"])(v),onContextmenu:Object(u["unref"])(y),onFocus:Object(u["unref"])(_),onMouseenter:Object(u["unref"])(h),onMouseleave:Object(u["unref"])(m),onKeydown:Object(u["unref"])(O)},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}),Ft=Bt,Gt=n("c751"),Ht=n.n(Gt);const Yt=e=>[...new q.a(e)],zt=e=>Object(te["isArray"])(e)?e[0]:e,qt=e=>e||0===e?Object(te["isArray"])(e)?e:[e]:[];var Wt=n("7cf3"),Kt=n("e76e"),$t=n.n(Kt);const Jt=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=Xt(e);$t()(i.value,t)},requires:["computeStyles"]},o=Object(u["computed"])(()=>{const{onFirstUpdate:e,placement:t,strategy:o,modifiers:a}=Object(u["unref"])(n);return{onFirstUpdate:e,placement:t||"bottom",strategy:o||"absolute",modifiers:[...a||[],r,{name:"applyStyles",enabled:!1}]}}),a=Object(u["shallowRef"])(),i=Object(u["ref"])({styles:{popper:{position:Object(u["unref"])(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return Object(u["watch"])(o,e=>{const t=Object(u["unref"])(a);t&&t.setOptions(e)},{deep:!0}),Object(u["watch"])([e,t],([e,t])=>{s(),e&&t&&(a.value=Object(ct["createPopper"])(e,t,Object(u["unref"])(o)))}),Object(u["onBeforeUnmount"])(()=>{s()}),{state:Object(u["computed"])(()=>{var e;return{...(null===(e=Object(u["unref"])(a))||void 0===e?void 0:e.state)||{}}}),styles:Object(u["computed"])(()=>Object(u["unref"])(i).styles),attributes:Object(u["computed"])(()=>Object(u["unref"])(i).attributes),update:()=>{var e;return null===(e=Object(u["unref"])(a))||void 0===e?void 0:e.update()},forceUpdate:()=>{var e;return null===(e=Object(u["unref"])(a))||void 0===e?void 0:e.forceUpdate()},instanceRef:Object(u["computed"])(()=>Object(u["unref"])(a))}};function Xt(e){const t=Q()(e.elements);return{styles:Object(ne["fromPairs"])(J()(t).call(t,t=>[t,e.styles[t]||{}])),attributes:Object(ne["fromPairs"])(J()(t).call(t,t=>[t,e.attributes[t]]))}}const Qt=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,a={placement:n,strategy:r,...o,modifiers:[...en(e),...t]};return tn(a,null===o||void 0===o?void 0:o.modifiers),a},Zt=e=>{if(_["isClient"])return Object(_["unrefElement"])(e)};function en(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,null!==t&&void 0!==t?t:12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function tn(e,t){t&&(e.modifiers=[...e.modifiers,...null!==t&&void 0!==t?t:[]])}const nn=0,rn=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=Object(u["inject"])(Pe,void 0),a=Object(u["ref"])(),i=Object(u["computed"])(()=>e.arrowOffset),s=Object(u["computed"])(()=>({name:"eventListeners",enabled:!!e.visible})),c=Object(u["computed"])(()=>{var e;const t=Object(u["unref"])(a),n=null!==(e=Object(u["unref"])(i))&&void 0!==e?e:nn;return{name:"arrow",enabled:!Object(ne["isUndefined"])(t),options:{element:t,padding:n}}}),l=Object(u["computed"])(()=>({onFirstUpdate:()=>{m()},...Qt(e,[Object(u["unref"])(c),Object(u["unref"])(s)])})),d=Object(u["computed"])(()=>Zt(e.referenceEl)||Object(u["unref"])(r)),{attributes:p,state:f,styles:h,update:m,forceUpdate:v,instanceRef:g}=Jt(d,n,l);let b;return Object(u["watch"])(g,e=>t.value=e,{flush:"sync"}),Object(u["onMounted"])(()=>{Object(u["watch"])(()=>{var e,t;return null===(e=Object(u["unref"])(d))||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e)},()=>{m()})}),Object(u["watch"])(()=>e.visible,e=>{var t;null===(t=b)||void 0===t||t(),b=void 0,e&&(b=Object(_["useResizeObserver"])(n,m).stop)}),Object(u["onBeforeUnmount"])(()=>{var e;t.value=void 0,null===(e=b)||void 0===e||e(),b=void 0}),{attributes:p,arrowRef:a,contentRef:n,instanceRef:g,state:f,styles:h,role:o,forceUpdate:v,update:m}};var on=n("0a08");const an=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=Object(on["b"])(),a=Object(g["d"])("popper"),i=Object(u["computed"])(()=>Object(u["unref"])(t).popper),s=Object(u["ref"])(Object(h["d"])(e.zIndex)?e.zIndex:o()),c=Object(u["computed"])(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),l=Object(u["computed"])(()=>[{zIndex:Object(u["unref"])(s)},Object(u["unref"])(n).popper,e.popperStyle||{}]),d=Object(u["computed"])(()=>"dialog"===r.value?"false":void 0),p=Object(u["computed"])(()=>Object(u["unref"])(n).arrow||{}),f=()=>{s.value=Object(h["d"])(e.zIndex)?e.zIndex:o()};return{ariaModal:d,arrowStyle:p,contentAttrs:i,contentClass:c,contentStyle:l,contentZIndex:s,updateZIndex:f}},sn=(e,t)=>{const n=Object(u["ref"])(!1),r=Object(u["ref"])(),o=()=>{t("focus")},a=e=>{var n;"pointer"!==(null===(n=e.detail)||void 0===n?void 0:n.focusReason)&&(r.value="first",t("blur"))},i=t=>{e.visible&&!n.value&&(t.target&&(r.value=t.target),n.value=!0)},s=t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),n.value=!1)},c=()=>{n.value=!1,t("close")};return Object(u["onBeforeUnmount"])(()=>{r.value=void 0}),{focusStartRef:r,trapped:n,onFocusAfterReleased:a,onFocusAfterTrapped:o,onFocusInTrap:i,onFocusoutPrevented:s,onReleaseRequested:c}};var cn=Object(u["defineComponent"])({name:"ElPopperContent",__name:"content",props:dt,emits:ht,setup(e,{expose:t,emit:n}){const r=n,o=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:s,onFocusAfterTrapped:c,onFocusInTrap:l,onFocusoutPrevented:d,onReleaseRequested:p}=sn(o,r),{attributes:f,arrowRef:m,contentRef:v,styles:g,instanceRef:_,role:b,update:y}=rn(o),{ariaModal:O,arrowStyle:M,contentAttrs:k,contentClass:C,contentStyle:w,updateZIndex:S}=an(o,{styles:g,attributes:f,role:b}),T=Object(u["inject"])(se["b"],void 0);Object(u["provide"])(Ue,{arrowStyle:M,arrowRef:m}),T&&Object(u["provide"])(se["b"],{...T,addInputId:te["NOOP"],removeInputId:te["NOOP"]});let I=void 0;const E=(e=!0)=>{y(),e&&S()},j=()=>{E(!1),o.visible&&o.focusOnShow?i.value=!0:!1===o.visible&&(i.value=!1)};return Object(u["onMounted"])(()=>{Object(u["watch"])(()=>o.triggerTargetEl,(e,t)=>{var n,r;null===(n=I)||void 0===n||n(),I=void 0;const a=Object(u["unref"])(e||v.value),i=Object(u["unref"])(t||v.value);Object(h["b"])(a)&&(I=Object(u["watch"])([b,()=>o.ariaLabel,O,()=>o.id],e=>{var t;Y()(t=["role","aria-label","aria-modal","id"]).call(t,(t,n)=>{Object(ne["isNil"])(e[n])?a.removeAttribute(t):a.setAttribute(t,e[n])})},{immediate:!0})),i!==a&&Object(h["b"])(i)&&Y()(r=["role","aria-label","aria-modal","id"]).call(r,e=>{i.removeAttribute(e)})},{immediate:!0}),Object(u["watch"])(()=>o.visible,j,{immediate:!0})}),Object(u["onBeforeUnmount"])(()=>{var e;null===(e=I)||void 0===e||e(),I=void 0,v.value=void 0}),t({popperContentRef:v,popperInstanceRef:_,updatePopper:E,contentStyle:w}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",Object(u["mergeProps"])({ref_key:"contentRef",ref:v},Object(u["unref"])(k),{style:Object(u["unref"])(w),class:Object(u["unref"])(C),tabindex:"-1",onMouseenter:n[0]||(n[0]=e=>t.$emit("mouseenter",e)),onMouseleave:n[1]||(n[1]=e=>t.$emit("mouseleave",e))}),[Object(u["createVNode"])(Object(u["unref"])(Wt["a"]),{loop:e.loop,trapped:Object(u["unref"])(i),"trap-on-focus-in":!0,"focus-trap-el":Object(u["unref"])(v),"focus-start-el":Object(u["unref"])(a),onFocusAfterTrapped:Object(u["unref"])(c),onFocusAfterReleased:Object(u["unref"])(s),onFocusin:Object(u["unref"])(l),onFocusoutPrevented:Object(u["unref"])(d),onReleaseRequested:Object(u["unref"])(p)},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}}),ln=cn,un=Object(u["defineComponent"])({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:mt,setup(e,{expose:t}){const n=e,{selector:r}=Ge(),o=Object(g["d"])("tooltip"),a=Object(u["ref"])(),i=Object(_["computedEager"])(()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.popperContentRef});let s;const{controlled:c,id:l,open:d,trigger:p,onClose:h,onOpen:m,onShow:v,onHide:b,onBeforeShow:y,onBeforeHide:O}=Object(u["inject"])(Ct,void 0),M=Object(u["computed"])(()=>n.transition||o.namespace.value+"-fade-in-linear"),k=Object(u["computed"])(()=>n.persistent);Object(u["onBeforeUnmount"])(()=>{var e;null===(e=s)||void 0===e||e()});const C=Object(u["computed"])(()=>!!Object(u["unref"])(k)||Object(u["unref"])(d)),w=Object(u["computed"])(()=>!n.disabled&&Object(u["unref"])(d)),S=Object(u["computed"])(()=>n.appendTo||r.value),T=Object(u["computed"])(()=>{var e;return null!==(e=n.style)&&void 0!==e?e:{}}),I=Object(u["ref"])(!0),E=()=>{b(),P()&&Object(wt["a"])(document.body,{preventScroll:!0}),I.value=!0},j=()=>{if(Object(u["unref"])(c))return!0},D=Object(St["a"])(j,()=>{n.enterable&&Ut(Object(u["unref"])(p),"hover")&&m()}),L=Object(St["a"])(j,()=>{Ut(Object(u["unref"])(p),"hover")&&h()}),A=()=>{var e,t;null===(e=a.value)||void 0===e||null===(t=e.updatePopper)||void 0===t||t.call(e),null===y||void 0===y||y()},N=()=>{null===O||void 0===O||O()},R=()=>{v()},x=()=>{n.virtualTriggering||h()},P=e=>{var t;const n=null===(t=a.value)||void 0===t?void 0:t.popperContentRef,r=(null===e||void 0===e?void 0:e.relatedTarget)||document.activeElement;return null===n||void 0===n?void 0:n.contains(r)};return Object(u["watch"])(()=>Object(u["unref"])(d),e=>{var t;e?(I.value=!1,s=Object(_["onClickOutside"])(i,()=>{var e;Object(u["unref"])(c)||Ht()(e=qt(Object(u["unref"])(p))).call(e,e=>"hover"!==e&&"focus"!==e)&&h()},{detectIframe:!0})):null===(t=s)||void 0===t||t()},{flush:"post"}),t({contentRef:a,isFocusInsideContent:P}),(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(f),{disabled:!e.teleported,to:S.value},{default:Object(u["withCtx"])(()=>[C.value||!I.value?(Object(u["openBlock"])(),Object(u["createBlock"])(u["Transition"],{key:0,name:M.value,appear:!k.value,onAfterLeave:E,onBeforeEnter:A,onAfterEnter:R,onBeforeLeave:N,persisted:""},{default:Object(u["withCtx"])(()=>[Object(u["withDirectives"])(Object(u["createVNode"])(Object(u["unref"])(ln),Object(u["mergeProps"])({id:Object(u["unref"])(l),ref_key:"contentRef",ref:a},t.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":I.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,T.value],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:w.value,"z-index":e.zIndex,loop:e.loop,onMouseenter:Object(u["unref"])(D),onMouseleave:Object(u["unref"])(L),onBlur:x,onClose:Object(u["unref"])(h)}),{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[u["vShow"],w.value]])]),_:3},8,["name","appear"])):Object(u["createCommentVNode"])("v-if",!0)]),_:3},8,["disabled","to"]))}}),dn=un;const pn=["innerHTML"],fn={key:1};var hn=Object(u["defineComponent"])({name:"ElTooltip",__name:"tooltip",props:Mt,emits:kt,setup(e,{expose:t,emit:n}){const r=e,o=n;Ye();const a=Object(g["d"])("tooltip"),i=Object(ge["a"])(),s=Object(u["ref"])(),c=Object(u["ref"])(),l=()=>{var e;const t=Object(u["unref"])(s);t&&(null===(e=t.popperInstanceRef)||void 0===e||e.update())},d=Object(u["ref"])(!1),p=Object(u["ref"])(),{show:f,hide:m,hasUpdateHandler:v}=Ot({indicator:d,toggleReason:p}),{onOpen:_,onClose:b}=Je({showAfter:Object(u["toRef"])(r,"showAfter"),hideAfter:Object(u["toRef"])(r,"hideAfter"),autoClose:Object(u["toRef"])(r,"autoClose"),open:f,close:m}),y=Object(u["computed"])(()=>Object(h["a"])(r.visible)&&!v.value),O=Object(u["computed"])(()=>[a.b(),r.popperClass]);Object(u["provide"])(Ct,{controlled:y,id:i,open:Object(u["readonly"])(d),trigger:Object(u["toRef"])(r,"trigger"),onOpen:_,onClose:b,onToggle:e=>{Object(u["unref"])(d)?b(e):_(e)},onShow:()=>{o("show",p.value)},onHide:()=>{o("hide",p.value)},onBeforeShow:()=>{o("before-show",p.value)},onBeforeHide:()=>{o("before-hide",p.value)},updatePopper:l}),Object(u["watch"])(()=>r.disabled,e=>{e&&d.value&&(d.value=!1),!e&&Object(h["a"])(r.visible)&&(d.value=r.visible)});const M=e=>{var t;return null===(t=c.value)||void 0===t?void 0:t.isFocusInsideContent(e)};return Object(u["onDeactivated"])(()=>d.value&&m()),Object(u["onBeforeUnmount"])(()=>{p.value=void 0}),t({popperRef:s,contentRef:c,isFocusInsideContent:M,updatePopper:l,onOpen:_,onClose:b,hide:m}),(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Fe),{ref_key:"popperRef",ref:s,role:e.role},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Ft,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:Object(u["withCtx"])(()=>[t.$slots.default?Object(u["renderSlot"])(t.$slots,"default",{key:0}):Object(u["createCommentVNode"])("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),Object(u["createVNode"])(dn,{ref_key:"contentRef",ref:c,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":O.value,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo,loop:e.loop},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"content",{},()=>[e.rawContent?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:0,innerHTML:e.content},null,8,pn)):(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",fn,Object(u["toDisplayString"])(e.content),1))]),e.showArrow?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Qe),{key:0})):Object(u["createCommentVNode"])("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}}),mn=hn;const vn=Object(r["a"])(mn);var gn=n("c349");const _n=Object(c["b"])({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:Object(c["c"])([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Object(st["a"])(["ariaLabel","ariaOrientation"])}),bn={"end-reached":e=>{var t;return ue()(t=["left","right","top","bottom"]).call(t,e)},scroll:({scrollTop:e,scrollLeft:t})=>{var n;return Ht()(n=[e,t]).call(n,h["d"])}},yn=xe()("scrollbarContextKey"),On=Object(c["b"])({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),Mn=4,kn={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},Cn=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),wn=Object(c["b"])({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Sn="Thumb";var Tn=Object(u["defineComponent"])({__name:"thumb",props:wn,setup(e){const t=e,n=Object(u["inject"])(yn),r=Object(g["d"])("scrollbar");n||Object(a["b"])(Sn,"can not inject scrollbar context");const o=Object(u["ref"])(),i=Object(u["ref"])(),s=Object(u["ref"])({}),c=Object(u["ref"])(!1);let l=!1,d=!1,p=0,f=0,h=_["isClient"]?document.onselectstart:null;const m=Object(u["computed"])(()=>kn[t.vertical?"vertical":"horizontal"]),v=Object(u["computed"])(()=>Cn({size:t.size,move:t.move,bar:m.value})),b=Object(u["computed"])(()=>o.value[m.value.offset]**2/n.wrapElement[m.value.scrollSize]/t.ratio/i.value[m.value.offset]),y=e=>{var t,n;if(e.stopPropagation(),e.ctrlKey||ue()(t=[1,2]).call(t,e.button))return;null===(n=window.getSelection())||void 0===n||n.removeAllRanges(),M(e);const r=e.currentTarget;r&&(s.value[m.value.axis]=r[m.value.offset]-(e[m.value.client]-r.getBoundingClientRect()[m.value.direction]))},O=e=>{if(!i.value||!o.value||!n.wrapElement)return;const t=100*(Math.abs(e.target.getBoundingClientRect()[m.value.direction]-e[m.value.client])-i.value[m.value.offset]/2)*b.value/o.value[m.value.offset];n.wrapElement[m.value.scroll]=t*n.wrapElement[m.value.scrollSize]/100},M=e=>{e.stopImmediatePropagation(),l=!0,p=n.wrapElement.scrollHeight,f=n.wrapElement.scrollWidth,document.addEventListener("mousemove",k),document.addEventListener("mouseup",C),h=document.onselectstart,document.onselectstart=()=>!1},k=e=>{if(!o.value||!i.value)return;if(!1===l)return;const t=s.value[m.value.axis];if(!t)return;const r=100*(-1*(o.value.getBoundingClientRect()[m.value.direction]-e[m.value.client])-(i.value[m.value.offset]-t))*b.value/o.value[m.value.offset];"scrollLeft"===m.value.scroll?n.wrapElement[m.value.scroll]=r*f/100:n.wrapElement[m.value.scroll]=r*p/100},C=()=>{l=!1,s.value[m.value.axis]=0,document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",C),T(),d&&(c.value=!1)},w=()=>{d=!1,c.value=!!t.size},S=()=>{d=!0,c.value=l};Object(u["onBeforeUnmount"])(()=>{T(),document.removeEventListener("mouseup",C)});const T=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return Object(_["useEventListener"])(Object(u["toRef"])(n,"scrollbarElement"),"mousemove",w),Object(_["useEventListener"])(Object(u["toRef"])(n,"scrollbarElement"),"mouseleave",S),(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(u["Transition"],{name:Object(u["unref"])(r).b("fade"),persisted:""},{default:Object(u["withCtx"])(()=>[Object(u["withDirectives"])(Object(u["createElementVNode"])("div",{ref_key:"instance",ref:o,class:Object(u["normalizeClass"])([Object(u["unref"])(r).e("bar"),Object(u["unref"])(r).is(m.value.key)]),onMousedown:O,onClick:n[0]||(n[0]=Object(u["withModifiers"])(()=>{},["stop"]))},[Object(u["createElementVNode"])("div",{ref_key:"thumb",ref:i,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("thumb")),style:Object(u["normalizeStyle"])(v.value),onMousedown:y},null,38)],34),[[u["vShow"],e.always||c.value]])]),_:1},8,["name"]))}}),In=Tn,En=Object(u["defineComponent"])({__name:"bar",props:On,setup(e,{expose:t}){const n=e,r=Object(u["inject"])(yn),o=Object(u["ref"])(0),a=Object(u["ref"])(0),i=Object(u["ref"])(""),s=Object(u["ref"])(""),c=Object(u["ref"])(1),l=Object(u["ref"])(1),d=e=>{if(e){const t=e.offsetHeight-Mn,n=e.offsetWidth-Mn;a.value=100*e.scrollTop/t*c.value,o.value=100*e.scrollLeft/n*l.value}},p=()=>{const e=null===r||void 0===r?void 0:r.wrapElement;if(!e)return;const t=e.offsetHeight-Mn,o=e.offsetWidth-Mn,a=t**2/e.scrollHeight,u=o**2/e.scrollWidth,d=Math.max(a,n.minSize),p=Math.max(u,n.minSize);c.value=a/(t-a)/(d/(t-d)),l.value=u/(o-u)/(p/(o-p)),s.value=d+Mn<t?d+"px":"",i.value=p+Mn<o?p+"px":""};return t({handleScroll:d,update:p}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],null,[Object(u["createVNode"])(In,{move:o.value,ratio:l.value,size:i.value,always:e.always},null,8,["move","ratio","size","always"]),Object(u["createVNode"])(In,{move:a.value,ratio:c.value,size:s.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),jn=En;const Dn=["tabindex"],Ln="ElScrollbar";var An=Object(u["defineComponent"])({name:Ln,__name:"scrollbar",props:_n,emits:bn,setup(e,{expose:t,emit:n}){const r=e,o=n,s=Object(g["d"])("scrollbar");let c=void 0,l=void 0,d=void 0,p=0,f=0,m="";const v={bottom:!1,top:!1,right:!1,left:!1},b=Object(u["ref"])(),y=Object(u["ref"])(),O=Object(u["ref"])(),M=Object(u["ref"])(),k=Object(u["computed"])(()=>{const e={},t=Object(i["b"])(r.height),n=Object(i["b"])(r.maxHeight);return t&&(e.height=t),n&&(e.maxHeight=n),[r.wrapStyle,e]}),C=Object(u["computed"])(()=>[r.wrapClass,s.e("wrap"),{[s.em("wrap","hidden-default")]:!r.native}]),w=Object(u["computed"])(()=>[s.e("view"),r.viewClass]),S=e=>{var t;return null!==(t=v[e])&&void 0!==t&&t},T={top:"bottom",bottom:"top",left:"right",right:"left"},I=e=>{const t=T[m];if(!t)return;const n=e[m],r=e[t];n&&!v[m]&&(v[m]=!0),!r&&v[t]&&(v[t]=!1)},E=()=>{if(y.value){var e;null===(e=M.value)||void 0===e||e.handleScroll(y.value);const t=p,n=f;p=y.value.scrollTop,f=y.value.scrollLeft;const a={bottom:p+y.value.clientHeight>=y.value.scrollHeight-r.distance,top:p<=r.distance&&0!==t,right:f+y.value.clientWidth>=y.value.scrollWidth-r.distance&&n!==f,left:f<=r.distance&&0!==n};if(o("scroll",{scrollTop:p,scrollLeft:f}),t!==p&&(m=p>t?"bottom":"top"),n!==f&&(m=f>n?"right":"left"),r.distance>0){if(S(m))return;I(a)}a[m]&&o("end-reached",m)}};function j(e,t){Object(te["isObject"])(e)?y.value.scrollTo(e):Object(h["d"])(e)&&Object(h["d"])(t)&&y.value.scrollTo(e,t)}const D=e=>{Object(h["d"])(e)?y.value.scrollTop=e:Object(a["a"])(Ln,"value must be a number")},L=e=>{Object(h["d"])(e)?y.value.scrollLeft=e:Object(a["a"])(Ln,"value must be a number")},A=()=>{var e;null===(e=M.value)||void 0===e||e.update(),v[m]=!1};return Object(u["watch"])(()=>r.noresize,e=>{var t,n,r;e?(null===(t=c)||void 0===t||t(),null===(n=l)||void 0===n||n(),null===(r=d)||void 0===r||r()):(({stop:c}=Object(_["useResizeObserver"])(O,A)),({stop:l}=Object(_["useResizeObserver"])(y,A)),d=Object(_["useEventListener"])("resize",A))},{immediate:!0}),Object(u["watch"])(()=>[r.maxHeight,r.height],()=>{r.native||Object(u["nextTick"])(()=>{var e;A(),y.value&&(null===(e=M.value)||void 0===e||e.handleScroll(y.value))})}),Object(u["provide"])(yn,Object(u["reactive"])({scrollbarElement:b,wrapElement:y})),Object(u["onActivated"])(()=>{y.value&&(y.value.scrollTop=p,y.value.scrollLeft=f)}),Object(u["onMounted"])(()=>{r.native||Object(u["nextTick"])(()=>{A()})}),Object(u["onUpdated"])(()=>A()),t({wrapRef:y,update:A,scrollTo:j,setScrollTop:D,setScrollLeft:L,handleScroll:E}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref_key:"scrollbarRef",ref:b,class:Object(u["normalizeClass"])(Object(u["unref"])(s).b())},[Object(u["createElementVNode"])("div",{ref_key:"wrapRef",ref:y,class:Object(u["normalizeClass"])(C.value),style:Object(u["normalizeStyle"])(k.value),tabindex:e.tabindex,onScroll:E},[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.tag),{id:e.id,ref_key:"resizeRef",ref:O,class:Object(u["normalizeClass"])(w.value),style:Object(u["normalizeStyle"])(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,Dn),e.native?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createBlock"])(jn,{key:0,ref_key:"barRef",ref:M,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),Nn=An;const Rn=Object(r["a"])(Nn);var xn=n("d254"),Pn=n.n(xn),Un=n("8160");const Vn=Object(c["b"])({...Un["b"],valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:Object(c["c"])(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:Object(c["c"])([Function,Array]),default:te["NOOP"]},popperClass:mt.popperClass,popperStyle:mt.popperStyle,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:mt.teleported,appendTo:mt.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),Bn={[o["c"]]:e=>Object(te["isString"])(e)||Object(h["d"])(e),[o["b"]]:e=>Object(te["isString"])(e)||Object(h["d"])(e),[o["a"]]:e=>Object(te["isString"])(e)||Object(h["d"])(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Object(te["isObject"])(e)};var Fn=n("9ad7");const Gn=["aria-expanded","aria-owns"],Hn={key:0},Yn=["id","aria-selected","onClick"],zn="ElAutocomplete";var qn=Object(u["defineComponent"])({name:zn,inheritAttrs:!1,__name:"autocomplete",props:Vn,emits:Bn,setup(e,{expose:t,emit:n}){const r=e,i=n,s=Object(u["computed"])(()=>Object(ne["pick"])(r,Q()(Un["b"]))),c=Object(u["useAttrs"])(),l=Object(ce["a"])(),d=Object(g["d"])("autocomplete"),p=Object(u["ref"])(),f=Object(u["ref"])(),h=Object(u["ref"])(),m=Object(u["ref"])();let v=!1,b=!1;const y=Object(u["ref"])([]),O=Object(u["ref"])(-1),M=Object(u["ref"])(""),C=Object(u["ref"])(!1),w=Object(u["ref"])(!1),S=Object(u["ref"])(!1),T=Object(ge["a"])(),I=Object(u["computed"])(()=>c.style),E=Object(u["computed"])(()=>(y.value.length>0||S.value)&&C.value),j=Object(u["computed"])(()=>!r.hideLoading&&S.value),D=Object(u["computed"])(()=>p.value?Pn()(p.value.$el.querySelectorAll("input")):[]),L=()=>{E.value&&(M.value=p.value.$el.offsetWidth+"px")},A=()=>{O.value=-1},N=async e=>{if(w.value)return;const t=e=>{S.value=!1,w.value||(Object(te["isArray"])(e)?(y.value=e,O.value=r.highlightFirstItem?0:-1):Object(a["b"])(zn,"autocomplete suggestions must be an array"))};if(S.value=!0,Object(te["isArray"])(r.fetchSuggestions))t(r.fetchSuggestions);else{const n=await r.fetchSuggestions(e,t);Object(te["isArray"])(n)&&t(n)}},R=Object(_["useDebounceFn"])(N,Object(u["computed"])(()=>r.debounce)),x=e=>{const t=!!e;if(i(o["b"],e),i(o["c"],e),w.value=!1,C.value||(C.value=t),!r.triggerOnFocus&&!e)return w.value=!0,void(y.value=[]);R(e)},P=e=>{var t,n;l.value||("INPUT"!==(null===(t=e.target)||void 0===t?void 0:t.tagName)||ue()(n=D.value).call(n,document.activeElement))&&(C.value=!0)},U=e=>{i(o["a"],e)},V=e=>{if(b)b=!1;else{var t;C.value=!0,i("focus",e);const n=null!==(t=r.modelValue)&&void 0!==t?t:"";r.triggerOnFocus&&!v&&R(String(n))}},B=e=>{qe()(()=>{var t;null!==(t=h.value)&&void 0!==t&&t.isFocusInsideContent()?b=!0:(C.value&&z(),i("blur",e))})},F=()=>{C.value=!1,i(o["c"],""),i("clear")},G=async()=>{var e;null!==(e=p.value)&&void 0!==e&&e.isComposing||(E.value&&O.value>=0&&O.value<y.value.length?K(y.value[O.value]):(r.selectWhenUnmatched&&(i("select",{value:r.modelValue}),y.value=[],O.value=-1),C.value=!0,R(String(r.modelValue))))},H=e=>{E.value&&(e.preventDefault(),e.stopPropagation(),z())},z=()=>{C.value=!1},q=()=>{var e;null===(e=p.value)||void 0===e||e.focus()},W=()=>{var e;null===(e=p.value)||void 0===e||e.blur()},K=async e=>{i(o["b"],e[r.valueKey]),i(o["c"],e[r.valueKey]),i("select",e),y.value=[],O.value=-1},$=e=>{var t;if(!E.value||S.value)return;if(e<0){if(!r.loopNavigation)return void(O.value=-1);e=y.value.length-1}e>=y.value.length&&(e=r.loopNavigation?0:y.value.length-1);const[n,o]=J(),a=o[e],i=n.scrollTop,{offsetTop:s,scrollHeight:c}=a;s+c>i+n.clientHeight&&(n.scrollTop=s+c-n.clientHeight),s<i&&(n.scrollTop=s),O.value=e,null===(t=p.value)||void 0===t||null===(t=t.ref)||void 0===t||t.setAttribute("aria-activedescendant",`${T.value}-item-${O.value}`)},J=()=>{const e=f.value.querySelector("."+d.be("suggestion","wrap"));return[e,e.querySelectorAll(`.${d.be("suggestion","list")} li`)]},X=Object(_["onClickOutside"])(m,e=>{var t;if(null!==(t=h.value)&&void 0!==t&&t.isFocusInsideContent())return;const n=b;b=!1,E.value&&(n?B(new FocusEvent("blur",e)):z())}),Z=e=>{switch(Object(St["b"])(e)){case vt["a"].up:e.preventDefault(),$(O.value-1);break;case vt["a"].down:e.preventDefault(),$(O.value+1);break;case vt["a"].enter:case vt["a"].numpadEnter:e.preventDefault(),G();break;case vt["a"].tab:z();break;case vt["a"].esc:H(e);break;case vt["a"].home:e.preventDefault(),$(0);break;case vt["a"].end:e.preventDefault(),$(y.value.length-1);break;case vt["a"].pageUp:e.preventDefault(),$(Math.max(0,O.value-10));break;case vt["a"].pageDown:e.preventDefault(),$(Math.min(y.value.length-1,O.value+10));break}};return Object(u["onBeforeUnmount"])(()=>{null===X||void 0===X||X()}),Object(u["onMounted"])(()=>{var e,t;const n=null===(e=p.value)||void 0===e?void 0:e.ref;n&&(Y()(t=[{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:T.value},{key:"aria-activedescendant",value:`${T.value}-item-${O.value}`}]).call(t,({key:e,value:t})=>n.setAttribute(e,t)),v=n.hasAttribute("readonly"))}),t({highlightedIndex:O,activated:C,loading:S,inputRef:p,popperRef:h,suggestions:y,handleSelect:K,handleKeyEnter:G,focus:q,blur:W,close:z,highlight:$,getData:N}),(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(vn),{ref_key:"popperRef",ref:h,visible:E.value,placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[Object(u["unref"])(d).e("popper"),e.popperClass],"popper-style":e.popperStyle,teleported:e.teleported,"append-to":e.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:Object(u["unref"])(d).namespace.value+"-zoom-in-top",persistent:"",role:"listbox",onBeforeShow:L,onHide:A},{content:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{ref_key:"regionRef",ref:f,class:Object(u["normalizeClass"])([Object(u["unref"])(d).b("suggestion"),Object(u["unref"])(d).is("loading",j.value)]),style:Object(u["normalizeStyle"])({[e.fitInputWidth?"width":"minWidth"]:M.value,outline:"none"}),role:"region"},[t.$slots.header?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(d).be("suggestion","header")),onClick:n[0]||(n[0]=Object(u["withModifiers"])(()=>{},["stop"]))},[Object(u["renderSlot"])(t.$slots,"header")],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createVNode"])(Object(u["unref"])(Rn),{id:Object(u["unref"])(T),tag:"ul","wrap-class":Object(u["unref"])(d).be("suggestion","wrap"),"view-class":Object(u["unref"])(d).be("suggestion","list"),role:"listbox"},{default:Object(u["withCtx"])(()=>[j.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("li",Hn,[Object(u["renderSlot"])(t.$slots,"loading",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),{class:Object(u["normalizeClass"])(Object(u["unref"])(d).is("loading"))},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Loading"]))]),_:1},8,["class"])])])):(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],{key:1},Object(u["renderList"])(y.value,(n,r)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{id:`${Object(u["unref"])(T)}-item-${r}`,key:r,class:Object(u["normalizeClass"])({highlighted:O.value===r}),role:"option","aria-selected":O.value===r,onClick:e=>K(n)},[Object(u["renderSlot"])(t.$slots,"default",{item:n},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(n[e.valueKey]),1)])],10,Yn))),128))]),_:3},8,["id","wrap-class","view-class"]),t.$slots.footer?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(d).be("suggestion","footer")),onClick:n[1]||(n[1]=Object(u["withModifiers"])(()=>{},["stop"]))},[Object(u["renderSlot"])(t.$slots,"footer")],2)):Object(u["createCommentVNode"])("v-if",!0)],6)]),default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{ref_key:"listboxRef",ref:m,class:Object(u["normalizeClass"])([Object(u["unref"])(d).b(),t.$attrs.class]),style:Object(u["normalizeStyle"])(I.value),role:"combobox","aria-haspopup":"listbox","aria-expanded":E.value,"aria-owns":Object(u["unref"])(T)},[Object(u["createVNode"])(Object(u["unref"])(gn["a"]),Object(u["mergeProps"])({ref_key:"inputRef",ref:p},Object(u["mergeProps"])(s.value,t.$attrs),{"model-value":e.modelValue,disabled:Object(u["unref"])(l),onInput:x,onChange:U,onFocus:V,onBlur:B,onClear:F,onKeydown:Z,onMousedown:P}),Object(u["createSlots"])({_:2},[t.$slots.prepend?{name:"prepend",fn:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"prepend")]),key:"0"}:void 0,t.$slots.append?{name:"append",fn:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"append")]),key:"1"}:void 0,t.$slots.prefix?{name:"prefix",fn:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"prefix")]),key:"2"}:void 0,t.$slots.suffix?{name:"suffix",fn:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"suffix")]),key:"3"}:void 0]),1040,["model-value","disabled"])],14,Gn)]),_:3},8,["visible","placement","popper-class","popper-style","teleported","append-to","transition"]))}}),Wn=qn;const Kn=Object(r["a"])(Wn),$n=Object(c["b"])({size:{type:[Number,String],values:re["a"],validator:e=>Object(h["d"])(e)},shape:{type:String,values:["circle","square"]},icon:{type:S["e"]},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:Object(c["c"])(String),default:"cover"}}),Jn={error:e=>e instanceof Event},Xn=xe()("avatarGroupContextKey"),Qn=["src","alt","srcset"];var Zn=Object(u["defineComponent"])({name:"ElAvatar",__name:"avatar",props:$n,emits:Jn,setup(e,{emit:t}){const n=e,r=t,o=Object(u["inject"])(Xn,void 0),a=Object(g["d"])("avatar"),s=Object(u["ref"])(!1),c=Object(u["computed"])(()=>{var e;return null!==(e=n.size)&&void 0!==e?e:null===o||void 0===o?void 0:o.size}),l=Object(u["computed"])(()=>{var e,t;return null!==(e=null!==(t=n.shape)&&void 0!==t?t:null===o||void 0===o?void 0:o.shape)&&void 0!==e?e:"circle"}),d=Object(u["computed"])(()=>{const{icon:e}=n,t=[a.b()];return Object(te["isString"])(c.value)&&t.push(a.m(c.value)),e&&t.push(a.m("icon")),l.value&&t.push(a.m(l.value)),t}),p=Object(u["computed"])(()=>Object(h["d"])(c.value)?a.cssVarBlock({size:Object(i["b"])(c.value)}):void 0),f=Object(u["computed"])(()=>({objectFit:n.fit}));function m(e){s.value=!0,r("error",e)}return Object(u["watch"])(()=>[n.src,n.srcSet],()=>s.value=!1),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{class:Object(u["normalizeClass"])(d.value),style:Object(u["normalizeStyle"])(p.value)},[!e.src&&!e.srcSet||s.value?e.icon?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:1},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.icon)))]),_:1})):Object(u["renderSlot"])(t.$slots,"default",{key:2}):(Object(u["openBlock"])(),Object(u["createElementBlock"])("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:Object(u["normalizeStyle"])(f.value),onError:m},null,44,Qn))],6))}}),er=Zn;const tr={size:{type:Object(c["c"])([Number,String]),values:re["a"],validator:e=>Object(h["d"])(e)},shape:{type:Object(c["c"])(String),values:["circle","square"]},collapseAvatars:Boolean,collapseAvatarsTooltip:Boolean,maxCollapseAvatars:{type:Number,default:1},effect:{type:Object(c["c"])(String),default:"light"},placement:{type:Object(c["c"])(String),values:ct["placements"],default:"top"},popperClass:mt.popperClass,popperStyle:mt.popperStyle,collapseClass:String,collapseStyle:{type:Object(c["c"])([String,Array,Object])}};var nr=Object(u["defineComponent"])({name:"ElAvatarGroup",props:tr,setup(e,{slots:t}){const n=Object(g["d"])("avatar-group");return Object(u["provide"])(Xn,Object(u["reactive"])({size:Object(u["toRef"])(e,"size"),shape:Object(u["toRef"])(e,"shape")})),()=>{var r,o;const a=Object(T["b"])(null!==(r=null===(o=t.default)||void 0===o?void 0:o.call(t))&&void 0!==r?r:[]);let i=a;if(e.collapseAvatars&&a.length>e.maxCollapseAvatars){i=It()(a).call(a,0,e.maxCollapseAvatars);const t=It()(a).call(a,e.maxCollapseAvatars);i.push(Object(u["createVNode"])(vn,{popperClass:e.popperClass,popperStyle:e.popperStyle,placement:e.placement,effect:e.effect,disabled:!e.collapseAvatarsTooltip},{default:()=>Object(u["createVNode"])(er,{size:e.size,shape:e.shape,class:e.collapseClass,style:e.collapseStyle},{default:()=>[Object(u["createTextVNode"])("+ "),t.length]}),content:()=>Object(u["createVNode"])("div",{class:n.e("collapse-avatars")},[J()(t).call(t,(e,t)=>{var n;return Object(u["isVNode"])(e)?Object(u["cloneVNode"])(e,{key:null!==(n=e.key)&&void 0!==n?n:t}):e})])}))}return Object(u["createVNode"])("div",{class:n.b()},[i])}}});const rr=Object(r["a"])(er,{AvatarGroup:nr}),or=Object(r["d"])(nr),ar={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},ir={click:e=>e instanceof MouseEvent},sr=(e,t,n)=>{const r=Object(u["shallowRef"])(),o=Object(u["shallowRef"])(),i=Object(u["ref"])(!1),s=()=>{r.value&&(i.value=r.value.scrollTop>=e.visibilityHeight)},c=e=>{var n;null===(n=r.value)||void 0===n||n.scrollTo({top:0,behavior:"smooth"}),t("click",e)};return Object(_["useEventListener"])(o,"scroll",Object(_["useThrottleFn"])(s,300,!0)),Object(u["onMounted"])(()=>{var t;(o.value=document,r.value=document.documentElement,e.target)&&(r.value=null!==(t=document.querySelector(e.target))&&void 0!==t?t:void 0,r.value||Object(a["b"])(n,"target does not exist: "+e.target),o.value=r.value);s()}),{visible:i,handleClick:c}},cr="ElBacktop";var lr=Object(u["defineComponent"])({name:cr,__name:"backtop",props:ar,emits:ir,setup(e,{emit:t}){const n=e,r=t,o=Object(g["d"])("backtop"),{handleClick:a,visible:i}=sr(n,r,cr),s=Object(u["computed"])(()=>({right:n.right+"px",bottom:n.bottom+"px"}));return(e,t)=>(Object(u["openBlock"])(),Object(u["createBlock"])(u["Transition"],{name:Object(u["unref"])(o).namespace.value+"-fade-in"},{default:Object(u["withCtx"])(()=>[Object(u["unref"])(i)?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,style:Object(u["normalizeStyle"])(s.value),class:Object(u["normalizeClass"])(Object(u["unref"])(o).b()),onClick:t[0]||(t[0]=Object(u["withModifiers"])((...e)=>Object(u["unref"])(a)&&Object(u["unref"])(a)(...e),["stop"]))},[Object(u["renderSlot"])(e.$slots,"default",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),{class:Object(u["normalizeClass"])(Object(u["unref"])(o).e("icon"))},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["CaretTop"]))]),_:1},8,["class"])])],6)):Object(u["createCommentVNode"])("v-if",!0)]),_:3},8,["name"]))}}),ur=lr;const dr=Object(r["a"])(ur);var pr=n("0388"),fr=n("4cb3");const hr=Object(c["b"])({separator:{type:String,default:"/"},separatorIcon:{type:S["e"]}}),mr=xe()("breadcrumbKey"),vr=["aria-label"];var gr=Object(u["defineComponent"])({name:"ElBreadcrumb",__name:"breadcrumb",props:hr,setup(e){const{t:t}=Object(fr["b"])(),n=e,r=Object(g["d"])("breadcrumb"),o=Object(u["ref"])();return Object(u["provide"])(mr,n),Object(u["onMounted"])(()=>{const e=o.value.querySelectorAll("."+r.e("item"));e.length&&e[e.length-1].setAttribute("aria-current","page")}),(e,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref_key:"breadcrumb",ref:o,class:Object(u["normalizeClass"])(Object(u["unref"])(r).b()),"aria-label":Object(u["unref"])(t)("el.breadcrumb.label"),role:"navigation"},[Object(u["renderSlot"])(e.$slots,"default")],10,vr))}}),_r=gr;const br=Object(c["b"])({to:{type:Object(c["c"])([String,Object]),default:""},replace:Boolean});var yr=Object(u["defineComponent"])({name:"ElBreadcrumbItem",__name:"breadcrumb-item",props:br,setup(e){const t=e,n=Object(u["getCurrentInstance"])(),r=Object(u["inject"])(mr,void 0),o=Object(g["d"])("breadcrumb"),a=n.appContext.config.globalProperties.$router,i=()=>{t.to&&a&&(t.replace?a.replace(t.to):a.push(t.to))};return(t,n)=>{var a,s;return Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(o).e("item"))},[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])([Object(u["unref"])(o).e("inner"),Object(u["unref"])(o).is("link",!!e.to)]),role:"link",onClick:i},[Object(u["renderSlot"])(t.$slots,"default")],2),null!==(a=Object(u["unref"])(r))&&void 0!==a&&a.separatorIcon?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(o).e("separator"))},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(Object(u["unref"])(r).separatorIcon)))]),_:1},8,["class"])):(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(o).e("separator")),role:"presentation"},Object(u["toDisplayString"])(null===(s=Object(u["unref"])(r))||void 0===s?void 0:s.separator),3))],2)}}}),Or=yr;const Mr=Object(r["a"])(_r,{BreadcrumbItem:Or}),kr=Object(r["d"])(Or);var Cr=n("93b2");const wr=Object(r["a"])(Cr["a"]);var Sr=n("cf2e");const Tr=["hours","minutes","seconds"],Ir="EP_PICKER_BASE",Er="ElPopperOptions",jr=xe()("commonPickerContextKey"),Dr="HH:mm:ss",Lr="YYYY-MM-DD",Ar={date:Lr,dates:Lr,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${Lr} ${Dr}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:Lr,datetimerange:`${Lr} ${Dr}`};var Nr=n("27b6"),Rr=n("5143");const xr=Object(c["b"])({disabledHours:{type:Object(c["c"])(Function)},disabledMinutes:{type:Object(c["c"])(Function)},disabledSeconds:{type:Object(c["c"])(Function)}}),Pr=Object(c["b"])({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),Ur=Object(c["b"])({automaticDropdown:{type:Boolean,default:!0},id:{type:Object(c["c"])([Array,String])},name:{type:Object(c["c"])([Array,String])},popperClass:mt.popperClass,popperStyle:mt.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object(c["c"])([String,Object]),default:Fn["CircleClose"]},editable:{type:Boolean,default:!0},saveOnBlur:{type:Boolean,default:!0},prefixIcon:{type:Object(c["c"])([String,Object]),default:""},size:Nr["c"],readonly:Boolean,disabled:{type:Boolean,default:void 0},placeholder:{type:String,default:""},popperOptions:{type:Object(c["c"])(Object),default:()=>({})},modelValue:{type:Object(c["c"])([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:Object(c["c"])([Date,Array])},defaultTime:{type:Object(c["c"])([Date,Array])},isRange:Boolean,...xr,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:Object(c["c"])([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:Object(c["c"])(String),values:ct["placements"],default:"bottom"},fallbackPlacements:{type:Object(c["c"])(Array),default:["bottom","top","right","left"]},...Rr["c"],...Object(st["a"])(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),Vr=Object(c["b"])({id:{type:Object(c["c"])(Array)},name:{type:Object(c["c"])(Array)},modelValue:{type:Object(c["c"])([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean});var Br=n("a4fc"),Fr=n.n(Br),Gr=n("a27e"),Hr=n("8cf4"),Yr=n("44a4"),zr=n.n(Yr),qr=n("5a0c"),Wr=n.n(qr);const Kr=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],$r=e=>{var t;return Pn()(G()(t=Pn()({length:e})).call(t))},Jr=e=>{var t;return zr()(t=e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"")).call(t)},Xr=e=>{var t;return zr()(t=e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"")).call(t)},Qr=function(e,t){const n=Object(te["isDate"])(e),r=Object(te["isDate"])(t);return n&&r?e.getTime()===t.getTime():!n&&!r&&e===t},Zr=function(e,t){const n=Object(te["isArray"])(e),r=Object(te["isArray"])(t);return n&&r?e.length===t.length&&Ht()(e).call(e,(e,n)=>Qr(e,t[n])):!n&&!r&&Qr(e,t)},eo=function(e,t,n){const r=Object(h["c"])(t)||"x"===t?Wr()(e).locale(n):Wr()(e,t).locale(n);return r.isValid()?r:void 0},to=function(e,t,n){return Object(h["c"])(t)?e:"x"===t?+e:Wr()(e).locale(n).format(t)},no=(e,t)=>{const n=[],r=null===t||void 0===t?void 0:t();for(let a=0;a<e;a++){var o;n.push(null!==(o=null===r||void 0===r?void 0:ue()(r).call(r,a))&&void 0!==o&&o)}return n},ro=e=>Object(te["isArray"])(e)?J()(e).call(e,e=>e.toDate()):e.toDate(),oo=(e,t)=>{const{lang:n}=Object(fr["b"])(),r=Object(u["ref"])(!1),a=Object(u["ref"])(!1),i=Object(u["ref"])(null),s=Object(u["computed"])(()=>{const{modelValue:t}=e;return!t||Object(te["isArray"])(t)&&!K()(t).call(t,Boolean).length}),c=r=>{if(!Zr(e.modelValue,r)){let a;Object(te["isArray"])(r)?a=J()(r).call(r,t=>to(t,e.valueFormat,n.value)):r&&(a=to(r,e.valueFormat,n.value)),t(o["c"],r?a:r,n.value)}},l=Object(u["computed"])(()=>{var t,r;let o;if(s.value?d.value.getDefaultValue&&(o=d.value.getDefaultValue()):o=Object(te["isArray"])(e.modelValue)?J()(t=e.modelValue).call(t,t=>eo(t,e.valueFormat,n.value)):eo(null!==(r=e.modelValue)&&void 0!==r?r:"",e.valueFormat,n.value),d.value.getRangeAvailableTime){const e=d.value.getRangeAvailableTime(o);Object(ne["isEqual"])(e,o)||(o=e,s.value||c(ro(o)))}return Object(te["isArray"])(o)&&w()(o).call(o,e=>!e)&&(o=[]),o}),d=Object(u["ref"])({}),p=e=>{d.value[e[0]]=e[1],d.value.panelReady=!0},f=e=>{t("calendar-change",e)},h=(e,n,r)=>{t("panel-change",e,n,r)},m=(e="",t=!1)=>{let n;r.value=t,n=Object(te["isArray"])(e)?J()(e).call(e,e=>e.toDate()):e?e.toDate():e,i.value=null,c(n)};return{parsedValue:l,pickerActualVisible:a,pickerOptions:d,pickerVisible:r,userInput:i,valueIsEmpty:s,emitInput:c,onCalendarChange:f,onPanelChange:h,onPick:m,onSetPickerOption:p}};var ao=n("c9ac");const io=["id","name","placeholder","value","disabled"],so=["id","name","placeholder","value","disabled"];var co=Object(u["defineComponent"])({name:"PickerRangeTrigger",inheritAttrs:!1,__name:"picker-range-trigger",props:Vr,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const r=e,o=n,{formItem:a}=Object(Hr["a"])(),{inputId:i}=Object(Hr["b"])(Object(u["reactive"])({id:Object(u["computed"])(()=>{var e;return null===(e=r.id)||void 0===e?void 0:e[0]})}),{formItemContext:a}),s=Object(ao["a"])(),c=Object(g["d"])("date"),l=Object(g["d"])("range"),d=Object(u["ref"])(),p=Object(u["ref"])(),{wrapperRef:f,isFocused:h}=Object(Gr["a"])(d,{disabled:Object(u["computed"])(()=>r.disabled)}),m=e=>{o("click",e)},v=e=>{o("mouseenter",e)},_=e=>{o("mouseleave",e)},b=e=>{o("touchstart",e)},y=e=>{o("startInput",e)},O=e=>{o("endInput",e)},M=e=>{o("startChange",e)},k=e=>{o("endChange",e)},C=()=>{var e;null===(e=d.value)||void 0===e||e.focus()},w=()=>{var e,t;null===(e=d.value)||void 0===e||e.blur(),null===(t=p.value)||void 0===t||t.blur()};return t({focus:C,blur:w}),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref_key:"wrapperRef",ref:f,class:Object(u["normalizeClass"])([Object(u["unref"])(c).is("active",Object(u["unref"])(h)),e.$attrs.class]),style:Object(u["normalizeStyle"])(e.$attrs.style),onClick:m,onMouseenter:v,onMouseleave:_,onTouchstartPassive:b},[Object(u["renderSlot"])(e.$slots,"prefix"),Object(u["createElementVNode"])("input",Object(u["mergeProps"])(Object(u["unref"])(s),{id:Object(u["unref"])(i),ref_key:"inputRef",ref:d,name:e.name&&e.name[0],placeholder:e.startPlaceholder,value:e.modelValue&&e.modelValue[0],class:Object(u["unref"])(l).b("input"),disabled:e.disabled,onInput:y,onChange:M}),null,16,io),Object(u["renderSlot"])(e.$slots,"range-separator"),Object(u["createElementVNode"])("input",Object(u["mergeProps"])(Object(u["unref"])(s),{id:e.id&&e.id[1],ref_key:"endInputRef",ref:p,name:e.name&&e.name[1],placeholder:e.endPlaceholder,value:e.modelValue&&e.modelValue[1],class:Object(u["unref"])(l).b("input"),disabled:e.disabled,onInput:O,onChange:k}),null,16,so),Object(u["renderSlot"])(e.$slots,"suffix")],38))}}),lo=co,uo=Object(u["defineComponent"])({name:"Picker",__name:"picker",props:Ur,emits:[o["c"],o["a"],"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,i=n,s=Object(u["useAttrs"])(),c=Object(g["d"])("date"),l=Object(g["d"])("input"),d=Object(g["d"])("range"),{formItem:p}=Object(Hr["a"])(),f=Object(u["inject"])(Er,{}),h=Object(Rr["b"])(r,null),m=Object(u["ref"])(),v=Object(u["ref"])(),b=Object(u["ref"])(null);let y=!1;const O=Object(ce["a"])(),M=oo(r,i),{parsedValue:C,pickerActualVisible:w,userInput:S,pickerVisible:T,pickerOptions:I,valueIsEmpty:E,emitInput:j,onPick:D,onSetPickerOption:L,onCalendarChange:A,onPanelChange:N}=M,{isFocused:R,handleFocus:x,handleBlur:P}=Object(Gr["a"])(v,{disabled:O,beforeFocus(){return r.readonly},afterFocus(){r.automaticDropdown&&(T.value=!0)},beforeBlur(e){var t;return!y&&(null===(t=m.value)||void 0===t?void 0:t.isFocusInsideContent(e))},afterBlur(){var e,t;Z.value&&!r.saveOnBlur?E.value||null===(e=(t=I.value).handleCancel)||void 0===e||e.call(t):ge();T.value=!1,y=!1,r.validateEvent&&(null===p||void 0===p||p.validate("blur").catch(e=>Object(a["a"])(e)))}}),U=Object(u["ref"])(!1),V=Object(u["computed"])(()=>[c.b("editor"),c.bm("editor",r.type),l.e("wrapper"),c.is("disabled",O.value),c.is("active",T.value),d.b("editor"),he?d.bm("editor",he.value):"",s.class]),B=Object(u["computed"])(()=>[l.e("icon"),d.e("close-icon"),ae.value?"":d.em("close-icon","hidden")]);Object(u["watch"])(T,e=>{e?Object(u["nextTick"])(()=>{e&&(b.value=r.modelValue)}):(S.value=null,Object(u["nextTick"])(()=>{F(r.modelValue)}))});const F=(e,t)=>{!t&&Zr(e,b.value)||(i(o["a"],e),t&&(b.value=e),r.validateEvent&&(null===p||void 0===p||p.validate("change").catch(e=>Object(a["a"])(e))))},G=e=>{i("keydown",e)},H=Object(u["computed"])(()=>v.value?Pn()(v.value.$el.querySelectorAll("input")):[]),Y=(e,t,n)=>{const r=H.value;r.length&&(n&&"min"!==n?"max"===n&&(r[1].setSelectionRange(e,t),r[1].focus()):(r[0].setSelectionRange(e,t),r[0].focus()))},z=()=>{w.value=!0},q=()=>{i("visible-change",!0)},W=()=>{w.value=!1,T.value=!1,i("visible-change",!1)},K=()=>{T.value=!0},$=()=>{T.value=!1},X=Object(u["computed"])(()=>{const e=be(C.value);return Object(te["isArray"])(S.value)?[S.value[0]||e&&e[0]||"",S.value[1]||e&&e[1]||""]:null!==S.value?S.value:Z.value&&E.value&&!r.saveOnBlur||!Z.value&&E.value||!T.value&&E.value?"":e?ee.value||ne.value||re.value?e.join(", "):e:""}),Q=Object(u["computed"])(()=>{var e;return ue()(e=r.type).call(e,"time")}),Z=Object(u["computed"])(()=>{var e;return Fr()(e=r.type).call(e,"time")}),ee=Object(u["computed"])(()=>"dates"===r.type),ne=Object(u["computed"])(()=>"months"===r.type),re=Object(u["computed"])(()=>"years"===r.type),oe=Object(u["computed"])(()=>r.prefixIcon||(Q.value?Fn["Clock"]:Fn["Calendar"])),ae=Object(u["computed"])(()=>r.clearable&&!O.value&&!r.readonly&&!E.value&&(U.value||R.value)),ie=e=>{r.readonly||O.value||(ae.value&&(null===e||void 0===e||e.stopPropagation(),I.value.handleClear?I.value.handleClear():j(h.valueOnClear.value),F(h.valueOnClear.value,!0),W()),i("clear"))},se=async e=>{var t;r.readonly||O.value||"INPUT"===(null===(t=e.target)||void 0===t?void 0:t.tagName)&&!R.value&&r.automaticDropdown||(T.value=!0)},le=()=>{r.readonly||O.value||!E.value&&r.clearable&&(U.value=!0)},de=()=>{U.value=!1},pe=e=>{var t;r.readonly||O.value||"INPUT"===(null===(t=e.touches[0].target)||void 0===t?void 0:t.tagName)&&!R.value&&r.automaticDropdown||(T.value=!0)},fe=Object(u["computed"])(()=>{var e;return ue()(e=r.type).call(e,"range")}),he=Object(ce["b"])(),me=Object(u["computed"])(()=>{var e;return null===(e=Object(u["unref"])(m))||void 0===e||null===(e=e.popperRef)||void 0===e?void 0:e.contentRef}),ve=Object(_["onClickOutside"])(v,e=>{var t,n;const r=Object(u["unref"])(me),o=Object(_["unrefElement"])(v);r&&(e.target===r||ue()(t=e.composedPath()).call(t,r))||e.target===o||o&&ue()(n=e.composedPath()).call(n,o)||(T.value=!1)});Object(u["onBeforeUnmount"])(()=>{null===ve||void 0===ve||ve()});const ge=()=>{if(!Z.value||r.saveOnBlur){if(S.value){const e=_e(X.value);e&&(ye(e)&&j(ro(e)),S.value=null)}""===S.value&&(j(h.valueOnClear.value),F(h.valueOnClear.value,!0),S.value=null)}},_e=e=>e?I.value.parseUserInput(e):null,be=e=>e?Object(te["isArray"])(e)?J()(e).call(e,e=>e.format(r.format)):e.format(r.format):null,ye=e=>I.value.isValidValue(e),Oe=async e=>{if(r.readonly||O.value)return;const t=Object(St["b"])(e);if(G(e),t!==vt["a"].esc)if(t===vt["a"].down&&(I.value.handleFocusPicker&&(e.preventDefault(),e.stopPropagation()),!1===T.value&&(T.value=!0,await Object(u["nextTick"])()),I.value.handleFocusPicker))I.value.handleFocusPicker();else{if(t!==vt["a"].tab)return t===vt["a"].enter||t===vt["a"].numpadEnter?(T.value?(null===S.value||""===S.value||ye(_e(X.value)))&&(ge(),T.value=!1):T.value=!0,e.preventDefault(),void e.stopPropagation()):void(S.value?e.stopPropagation():I.value.handleKeydownInput&&I.value.handleKeydownInput(e));y=!0}else!0===T.value&&(T.value=!1,e.preventDefault(),e.stopPropagation())},Me=e=>{S.value=e,T.value||(T.value=!0)},ke=e=>{const t=e.target;S.value?S.value=[t.value,S.value[1]]:S.value=[t.value,null]},Ce=e=>{const t=e.target;S.value?S.value=[S.value[0],t.value]:S.value=[null,t.value]},we=()=>{const e=S.value,t=_e(e&&e[0]),n=Object(u["unref"])(C);if(t&&t.isValid()){var r;S.value=[be(t),(null===(r=X.value)||void 0===r?void 0:r[1])||null];const e=[t,n&&(n[1]||null)];ye(e)&&(j(ro(e)),S.value=null)}},Se=()=>{const e=Object(u["unref"])(S),t=_e(e&&e[1]),n=Object(u["unref"])(C);if(t&&t.isValid()){var r;S.value=[(null===(r=Object(u["unref"])(X))||void 0===r?void 0:r[0])||null,be(t)];const e=[n&&n[0],t];ye(e)&&(j(ro(e)),S.value=null)}},Te=()=>{var e;null===(e=v.value)||void 0===e||e.focus()},Ie=()=>{var e;null===(e=v.value)||void 0===e||e.blur()};return Object(u["provide"])(Ir,{props:r,emptyValues:h}),Object(u["provide"])(jr,M),t({focus:Te,blur:Ie,handleOpen:K,handleClose:$,onPick:D}),(e,t)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(vn),Object(u["mergeProps"])({ref_key:"refPopper",ref:m,visible:Object(u["unref"])(T),effect:"light",pure:"",trigger:"click"},e.$attrs,{role:"dialog",teleported:"",transition:Object(u["unref"])(c).namespace.value+"-zoom-in-top","popper-class":[Object(u["unref"])(c).namespace.value+"-picker__popper",e.popperClass],"popper-style":e.popperStyle,"popper-options":Object(u["unref"])(f),"fallback-placements":e.fallbackPlacements,"gpu-acceleration":!1,placement:e.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:z,onShow:q,onHide:W}),{default:Object(u["withCtx"])(()=>[fe.value?(Object(u["openBlock"])(),Object(u["createBlock"])(lo,{key:1,id:e.id,ref_key:"inputRef",ref:v,"model-value":X.value,name:e.name,disabled:Object(u["unref"])(O),readonly:!e.editable||e.readonly,"start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,class:Object(u["normalizeClass"])(V.value),style:Object(u["normalizeStyle"])(e.$attrs.style),"aria-label":e.ariaLabel,tabindex:e.tabindex,autocomplete:"off",role:"combobox",onClick:se,onFocus:Object(u["unref"])(x),onBlur:Object(u["unref"])(P),onStartInput:ke,onStartChange:we,onEndInput:Ce,onEndChange:Se,onMousedown:se,onMouseenter:le,onMouseleave:de,onTouchstartPassive:pe,onKeydown:Oe},{prefix:Object(u["withCtx"])(()=>[oe.value?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(l).e("icon"),Object(u["unref"])(d).e("icon")])},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(oe.value)))]),_:1},8,["class"])):Object(u["createCommentVNode"])("v-if",!0)]),"range-separator":Object(u["withCtx"])(()=>[Object(u["renderSlot"])(e.$slots,"range-separator",{},()=>[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(d).b("separator"))},Object(u["toDisplayString"])(e.rangeSeparator),3)])]),suffix:Object(u["withCtx"])(()=>[e.clearIcon?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])(B.value),onMousedown:Object(u["withModifiers"])(Object(u["unref"])(te["NOOP"]),["prevent"]),onClick:ie},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.clearIcon)))]),_:1},8,["class","onMousedown"])):Object(u["createCommentVNode"])("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(gn["a"]),{key:0,id:e.id,ref_key:"inputRef",ref:v,"container-role":"combobox","model-value":X.value,name:e.name,size:Object(u["unref"])(he),disabled:Object(u["unref"])(O),placeholder:e.placeholder,class:Object(u["normalizeClass"])([Object(u["unref"])(c).b("editor"),Object(u["unref"])(c).bm("editor",e.type),Object(u["unref"])(c).is("focus",Object(u["unref"])(T)),e.$attrs.class]),style:Object(u["normalizeStyle"])(e.$attrs.style),readonly:!e.editable||e.readonly||ee.value||ne.value||re.value||"week"===e.type,"aria-label":e.ariaLabel,tabindex:e.tabindex,"validate-event":!1,onInput:Me,onFocus:Object(u["unref"])(x),onBlur:Object(u["unref"])(P),onKeydown:Oe,onChange:ge,onMousedown:se,onMouseenter:le,onMouseleave:de,onTouchstartPassive:pe,onClick:t[0]||(t[0]=Object(u["withModifiers"])(()=>{},["stop"]))},{prefix:Object(u["withCtx"])(()=>[oe.value?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(l).e("icon")),onMousedown:Object(u["withModifiers"])(se,["prevent"]),onTouchstartPassive:pe},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(oe.value)))]),_:1},8,["class"])):Object(u["createCommentVNode"])("v-if",!0)]),suffix:Object(u["withCtx"])(()=>[ae.value&&e.clearIcon?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(l).e("icon")+" clear-icon"),onMousedown:Object(u["withModifiers"])(Object(u["unref"])(te["NOOP"]),["prevent"]),onClick:ie},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.clearIcon)))]),_:1},8,["class","onMousedown"])):Object(u["createCommentVNode"])("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur"]))]),content:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(e.$slots,"default",{visible:Object(u["unref"])(T),actualVisible:Object(u["unref"])(w),parsedValue:Object(u["unref"])(C),format:e.format,dateFormat:e.dateFormat,timeFormat:e.timeFormat,unlinkPanels:e.unlinkPanels,type:e.type,defaultValue:e.defaultValue,showNow:e.showNow,showConfirm:e.showConfirm,showFooter:e.showFooter,showWeekNumber:e.showWeekNumber,onPick:t[1]||(t[1]=(...e)=>Object(u["unref"])(D)&&Object(u["unref"])(D)(...e)),onSelectRange:Y,onSetPickerOption:t[2]||(t[2]=(...e)=>Object(u["unref"])(L)&&Object(u["unref"])(L)(...e)),onCalendarChange:t[3]||(t[3]=(...e)=>Object(u["unref"])(A)&&Object(u["unref"])(A)(...e)),onClear:ie,onPanelChange:t[4]||(t[4]=(...e)=>Object(u["unref"])(N)&&Object(u["unref"])(N)(...e)),onMousedown:t[5]||(t[5]=Object(u["withModifiers"])(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}}),po=uo;const fo=Object(c["b"])({...Pr,datetimeRole:String,parsedValue:{type:Object(c["c"])(Object)}}),ho=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const r=(r,o,a,i)=>{var s;const c={hour:e,minute:t,second:n};let l=r;return Y()(s=["hour","minute","second"]).call(s,e=>{if(c[e]){var t;let n;const r=c[e];switch(e){case"minute":n=r(l.hour(),o,i);break;case"second":n=r(l.hour(),l.minute(),o,i);break;default:n=r(o,i);break}if(null!==(t=n)&&void 0!==t&&t.length&&!ue()(n).call(n,l[e]())){const t=a?0:n.length-1;l=l[e](n[t])}}}),l},o={},a=([e,t])=>{o[e]=t};return{timePickerOptions:o,getAvailableTime:r,onSetOption:a}},mo=e=>{var t;const n=(e,t)=>e||t,r=e=>!0!==e;return K()(t=J()(e).call(e,n)).call(t,r)},vo=(e,t,n)=>{const r=(t,n)=>no(24,e&&(()=>null===e||void 0===e?void 0:e(t,n))),o=(e,n,r)=>no(60,t&&(()=>null===t||void 0===t?void 0:t(e,n,r))),a=(e,t,r,o)=>no(60,n&&(()=>null===n||void 0===n?void 0:n(e,t,r,o)));return{getHoursList:r,getMinutesList:o,getSecondsList:a}},go=(e,t,n)=>{const{getHoursList:r,getMinutesList:o,getSecondsList:a}=vo(e,t,n),i=(e,t)=>mo(r(e,t)),s=(e,t,n)=>mo(o(e,t,n)),c=(e,t,n,r)=>mo(a(e,t,n,r));return{getAvailableHours:i,getAvailableMinutes:s,getAvailableSeconds:c}},_o=(e,t)=>{const n=Object(u["ref"])(e.parsedValue);return Object(u["watch"])(()=>e.visible,r=>{const o=Object(u["toValue"])(t.modelValue),a=Object(u["toValue"])(t.valueOnClear);r&&o===a?n.value=a:r||(n.value=e.parsedValue)}),n};var bo=n("5a8b"),yo=n("21e7"),Oo=n.n(yo);const Mo=100,ko=600,Co="_RepeatClick",wo={beforeMount(e,t){const n=t.value,{interval:r=Mo,delay:o=ko}=Object(te["isFunction"])(n)?{}:n;let a,i;const s=()=>Object(te["isFunction"])(n)?n():n.handler(),c=()=>{i&&(clearTimeout(i),i=void 0),a&&(clearInterval(a),a=void 0)},l=e=>{0===e.button&&(c(),s(),document.addEventListener("mouseup",c,{once:!0}),i=qe()(()=>{a=Oo()(()=>{s()},r)},o))};e[Co]={start:l,clear:c},e.addEventListener("mousedown",l)},unmounted(e){if(!e[Co])return;const{start:t,clear:n}=e[Co];t&&e.removeEventListener("mousedown",t),n&&(n(),document.removeEventListener("mouseup",n)),e[Co]=null}},So=Object(c["b"])({role:{type:String,required:!0},spinnerDate:{type:Object(c["c"])(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:Object(c["c"])(String),default:""},...xr}),To=["onClick"],Io=["onMouseenter"];var Eo=Object(u["defineComponent"])({__name:"basic-time-spinner",props:So,emits:[o["a"],"select-range","set-option"],setup(e,{emit:t}){const n=e,{isRange:r,format:a,saveOnBlur:s}=Object(u["inject"])(Ir).props,c=t,l=Object(g["d"])("time"),{getHoursList:d,getMinutesList:p,getSecondsList:f}=vo(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let m=!1;const v={hours:!1,minutes:!1,seconds:!1},_=Object(u["ref"])(),b={hours:Object(u["ref"])(),minutes:Object(u["ref"])(),seconds:Object(u["ref"])()},y=Object(u["computed"])(()=>n.showSeconds?Tr:It()(Tr).call(Tr,0,2)),O=Object(u["computed"])(()=>{const{spinnerDate:e}=n;return{hours:e.hour(),minutes:e.minute(),seconds:e.second()}}),M=Object(u["computed"])(()=>{const{hours:e,minutes:t}=Object(u["unref"])(O),{role:o,spinnerDate:a}=n,i=r?void 0:a;return{hours:d(o,i),minutes:p(e,o,i),seconds:f(e,t,o,i)}}),C=Object(u["computed"])(()=>{const{hours:e,minutes:t,seconds:n}=Object(u["unref"])(O);return{hours:Kr(e,23),minutes:Kr(t,59),seconds:Kr(n,59)}}),w=Object(ne["debounce"])(e=>{m=!1,I(e)},200),S=e=>{if(!n.amPmMode)return"";const t="A"===n.amPmMode;let r=e<12?" am":" pm";return t&&(r=r.toUpperCase()),r},T=e=>{let t=[0,0];const n=a||Dr,r=B()(n).call(n,"HH"),o=B()(n).call(n,"mm"),i=B()(n).call(n,"ss");switch(e){case"hours":-1!==r&&(t=[r,r+2]);break;case"minutes":-1!==o&&(t=[o,o+2]);break;case"seconds":-1!==i&&(t=[i,i+2]);break}const[s,l]=t;c("select-range",s,l),_.value=e},I=e=>{D(e,Object(u["unref"])(O)[e])},E=()=>{I("hours"),I("minutes"),I("seconds")},j=e=>e.querySelector(`.${l.namespace.value}-scrollbar__wrap`),D=(e,t)=>{if(n.arrowControl)return;const r=Object(u["unref"])(b[e]);r&&r.$el&&(s||(v[e]=!0,Object(bo["b"])(()=>{v[e]=!1})),j(r.$el).scrollTop=Math.max(0,t*L(e)))},L=e=>{var t;const n=null===(t=Object(u["unref"])(b[e]))||void 0===t?void 0:t.$el.querySelector("li");return n&&Oe()(Object(i["c"])(n,"height"))||0},A=()=>{R(1)},N=()=>{R(-1)},R=e=>{_.value||T("hours");const t=_.value,n=Object(u["unref"])(O)[t],r=x(t,n,e,"hours"===_.value?24:60);P(t,r),D(t,r),Object(u["nextTick"])(()=>T(t))},x=(e,t,n,r)=>{let o=(t+n+r)%r;const a=Object(u["unref"])(M)[e];while(a[o]&&o!==t)o=(o+n+r)%r;return o},P=(e,t)=>{if(Object(u["unref"])(M)[e][t])return;const{hours:r,minutes:a,seconds:i}=Object(u["unref"])(O);let s;switch(e){case"hours":s=n.spinnerDate.hour(t).minute(a).second(i);break;case"minutes":s=n.spinnerDate.hour(r).minute(t).second(i);break;case"seconds":s=n.spinnerDate.hour(r).minute(a).second(t);break}c(o["a"],s)},U=(e,{value:t,disabled:n})=>{n||(P(e,t),T(e),D(e,t))},V=e=>{if(!s&&v[e])return;const t=Object(u["unref"])(b[e]);t&&(m=!0,w(e),P(e,Math.min(Math.round((j(t.$el).scrollTop-(.5*F(e)-10)/L(e)+3)/L(e)),"hours"===e?23:59)))},F=e=>Object(u["unref"])(b[e]).$el.offsetHeight,G=()=>{const e=e=>{const t=Object(u["unref"])(b[e]);t&&t.$el&&(j(t.$el).onscroll=()=>{V(e)})};e("hours"),e("minutes"),e("seconds")};Object(u["onMounted"])(()=>{Object(u["nextTick"])(()=>{!n.arrowControl&&G(),E(),"start"===n.role&&T("hours")})});const H=(e,t)=>{b[t].value=null!==e&&void 0!==e?e:void 0};return c("set-option",[n.role+"_scrollDown",R]),c("set-option",[n.role+"_emitSelectRange",T]),Object(u["watch"])(()=>n.spinnerDate,()=>{m||E()}),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(l).b("spinner"),{"has-seconds":e.showSeconds}])},[e.arrowControl?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],{key:0},Object(u["renderList"])(y.value,t=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Rn),{key:t,ref_for:!0,ref:e=>H(e,t),class:Object(u["normalizeClass"])(Object(u["unref"])(l).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":Object(u["unref"])(l).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:e=>T(t),onMousemove:e=>I(t)},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(M.value[t],(n,r)=>{var o,a;return Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{key:r,class:Object(u["normalizeClass"])([Object(u["unref"])(l).be("spinner","item"),Object(u["unref"])(l).is("active",r===O.value[t]),Object(u["unref"])(l).is("disabled",n)]),onClick:e=>U(t,{value:r,disabled:n})},["hours"===t?(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:0},[Object(u["createTextVNode"])(Object(u["toDisplayString"])(It()(o="0"+(e.amPmMode?r%12||12:r)).call(o,-2))+Object(u["toDisplayString"])(S(r)),1)],64)):(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:1},[Object(u["createTextVNode"])(Object(u["toDisplayString"])(It()(a="0"+r).call(a,-2)),1)],64))],10,To)}),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),e.arrowControl?(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],{key:1},Object(u["renderList"])(y.value,t=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:t,class:Object(u["normalizeClass"])([Object(u["unref"])(l).be("spinner","wrapper"),Object(u["unref"])(l).is("arrow")]),onMouseenter:e=>T(t)},[Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{class:Object(u["normalizeClass"])(["arrow-up",Object(u["unref"])(l).be("spinner","arrow")])},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowUp"]))]),_:1},8,["class"])),[[Object(u["unref"])(wo),N]]),Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{class:Object(u["normalizeClass"])(["arrow-down",Object(u["unref"])(l).be("spinner","arrow")])},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowDown"]))]),_:1},8,["class"])),[[Object(u["unref"])(wo),A]]),Object(u["createElementVNode"])("ul",{class:Object(u["normalizeClass"])(Object(u["unref"])(l).be("spinner","list"))},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(C.value[t],(n,r)=>{var o,a;return Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{key:r,class:Object(u["normalizeClass"])([Object(u["unref"])(l).be("spinner","item"),Object(u["unref"])(l).is("active",n===O.value[t]),Object(u["unref"])(l).is("disabled",M.value[t][n])])},[Object(u["unref"])(h["d"])(n)?(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:0},["hours"===t?(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:0},[Object(u["createTextVNode"])(Object(u["toDisplayString"])(It()(o="0"+(e.amPmMode?n%12||12:n)).call(o,-2))+Object(u["toDisplayString"])(S(n)),1)],64)):(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:1},[Object(u["createTextVNode"])(Object(u["toDisplayString"])(It()(a="0"+n).call(a,-2)),1)],64))],64)):Object(u["createCommentVNode"])("v-if",!0)],2)}),128))],2)],42,Io))),128)):Object(u["createCommentVNode"])("v-if",!0)],2))}}),jo=Eo,Do=Object(u["defineComponent"])({__name:"panel-time-pick",props:fo,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=t,o=Object(u["inject"])(Ir),{arrowControl:a,disabledHours:i,disabledMinutes:s,disabledSeconds:c,defaultValue:l}=o.props,{getAvailableHours:d,getAvailableMinutes:p,getAvailableSeconds:f}=go(i,s,c),m=Object(g["d"])("time"),{t:v,lang:_}=Object(fr["b"])(),b=Object(u["ref"])([0,2]),y=_o(n,{modelValue:Object(u["computed"])(()=>o.props.modelValue),valueOnClear:Object(u["computed"])(()=>null!==o&&void 0!==o&&o.emptyValues?o.emptyValues.valueOnClear.value:null)}),O=Object(u["computed"])(()=>Object(h["g"])(n.actualVisible)?m.namespace.value+"-zoom-in-top":""),M=Object(u["computed"])(()=>{var e;return ue()(e=n.format).call(e,"ss")}),k=Object(u["computed"])(()=>{var e,t;return ue()(e=n.format).call(e,"A")?"A":ue()(t=n.format).call(t,"a")?"a":""}),C=e=>{const t=Wr()(e).locale(_.value),n=N(t);return t.isSame(n)},w=()=>{const e=y.value;r("pick",e,!1),Object(u["nextTick"])(()=>{y.value=e})},S=(e=!1,t=!1)=>{t||r("pick",n.parsedValue,e)},T=e=>{n.visible&&r("pick",N(e).millisecond(0),!0)},I=(e,t)=>{r("select-range",e,t),b.value=[e,t]},E=e=>{const t=n.format,r=B()(t).call(t,"HH"),o=B()(t).call(t,"mm"),a=B()(t).call(t,"ss"),i=[],s=[];-1!==r&&(i.push(r),s.push("hours")),-1!==o&&(i.push(o),s.push("minutes")),-1!==a&&M.value&&(i.push(a),s.push("seconds"));const c=(B()(i).call(i,b.value[0])+e+i.length)%i.length;D["start_emitSelectRange"](s[c])},j=e=>{var t,n;const r=Object(St["b"])(e),{left:o,right:a,up:i,down:s}=vt["a"];if(ue()(t=[o,a]).call(t,r))return E(r===o?-1:1),void e.preventDefault();if(ue()(n=[i,s]).call(n,r)){const t=r===i?-1:1;return D["start_scrollDown"](t),void e.preventDefault()}},{timePickerOptions:D,onSetOption:L,getAvailableTime:A}=ho({getAvailableHours:d,getAvailableMinutes:p,getAvailableSeconds:f}),N=e=>A(e,n.datetimeRole||"",!0),R=e=>e?Wr()(e,n.format).locale(_.value):null,x=()=>Wr()(l).locale(_.value);return r("set-picker-option",["isValidValue",C]),r("set-picker-option",["parseUserInput",R]),r("set-picker-option",["handleKeydownInput",j]),r("set-picker-option",["getRangeAvailableTime",N]),r("set-picker-option",["getDefaultValue",x]),r("set-picker-option",["handleCancel",w]),(e,t)=>(Object(u["openBlock"])(),Object(u["createBlock"])(u["Transition"],{name:O.value},{default:Object(u["withCtx"])(()=>[e.actualVisible||e.visible?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(m).b("panel"))},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(m).be("panel","content"),{"has-seconds":M.value}])},[Object(u["createVNode"])(jo,{ref:"spinner",role:e.datetimeRole||"start","arrow-control":Object(u["unref"])(a),"show-seconds":M.value,"am-pm-mode":k.value,"spinner-date":e.parsedValue,"disabled-hours":Object(u["unref"])(i),"disabled-minutes":Object(u["unref"])(s),"disabled-seconds":Object(u["unref"])(c),onChange:T,onSetOption:Object(u["unref"])(L),onSelectRange:I},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(m).be("panel","footer"))},[Object(u["createElementVNode"])("button",{type:"button",class:Object(u["normalizeClass"])([Object(u["unref"])(m).be("panel","btn"),"cancel"]),onClick:w},Object(u["toDisplayString"])(Object(u["unref"])(v)("el.datepicker.cancel")),3),Object(u["createElementVNode"])("button",{type:"button",class:Object(u["normalizeClass"])([Object(u["unref"])(m).be("panel","btn"),"confirm"]),onClick:t[0]||(t[0]=e=>S())},Object(u["toDisplayString"])(Object(u["unref"])(v)("el.datepicker.confirm")),3)],2)],2)):Object(u["createCommentVNode"])("v-if",!0)]),_:1},8,["name"]))}}),Lo=Do,Ao=n("a3e3"),No=n.n(Ao);const Ro=Object(c["b"])({...Pr,parsedValue:{type:Object(c["c"])(Array)}}),xo=["disabled"];var Po=Object(u["defineComponent"])({__name:"panel-time-range",props:Ro,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=t,o=(e,t)=>{const n=[];for(let r=e;r<=t;r++)n.push(r);return n},{t:a,lang:i}=Object(fr["b"])(),s=Object(g["d"])("time"),c=Object(g["d"])("picker"),l=Object(u["inject"])(Ir),{arrowControl:d,disabledHours:p,disabledMinutes:f,disabledSeconds:h,defaultValue:m}=l.props,v=Object(u["computed"])(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",d),k.value?"has-seconds":""]),_=Object(u["computed"])(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",d),k.value?"has-seconds":""]),b=Object(u["computed"])(()=>n.parsedValue[0]),y=Object(u["computed"])(()=>n.parsedValue[1]),O=_o(n,{modelValue:Object(u["computed"])(()=>l.props.modelValue),valueOnClear:Object(u["computed"])(()=>null!==l&&void 0!==l&&l.emptyValues?l.emptyValues.valueOnClear.value:null)}),M=()=>{const e=O.value;r("pick",e,!1),Object(u["nextTick"])(()=>{O.value=e})},k=Object(u["computed"])(()=>{var e;return ue()(e=n.format).call(e,"ss")}),C=Object(u["computed"])(()=>{var e,t;return ue()(e=n.format).call(e,"A")?"A":ue()(t=n.format).call(t,"a")?"a":""}),w=(e=!1)=>{r("pick",[b.value,y.value],e)},S=e=>{E(e.millisecond(0),y.value)},T=e=>{E(b.value,e.millisecond(0))},I=e=>{const t=J()(e).call(e,e=>Wr()(e).locale(i.value)),n=F(t);return t[0].isSame(n[0])&&t[1].isSame(n[1])},E=(e,t)=>{n.visible&&r("pick",[e,t],!0)},j=Object(u["computed"])(()=>b.value>y.value),D=Object(u["ref"])([0,2]),L=(e,t)=>{r("select-range",e,t,"min"),D.value=[e,t]},A=Object(u["computed"])(()=>k.value?11:8),N=(e,t)=>{r("select-range",e,t,"max");const n=Object(u["unref"])(A);D.value=[e+n,t+n]},R=e=>{var t;const n=k.value?[0,3,6,11,14,17]:[0,3,8,11],r=No()(t=["hours","minutes"]).call(t,k.value?["seconds"]:[]),o=(B()(n).call(n,D.value[0])+e+n.length)%n.length,a=n.length/2;o<a?z["start_emitSelectRange"](r[o]):z["end_emitSelectRange"](r[o-a])},x=e=>{var t,n;const r=Object(St["b"])(e),{left:o,right:a,up:i,down:s}=vt["a"];if(ue()(t=[o,a]).call(t,r))return R(r===o?-1:1),void e.preventDefault();if(ue()(n=[i,s]).call(n,r)){const t=r===i?-1:1;return z[(D.value[0]<A.value?"start":"end")+"_scrollDown"](t),void e.preventDefault()}},P=(e,t)=>{const n=p?p(e):[],r="start"===e,a=(t||(r?y.value:b.value)).hour();return Object(ne["union"])(n,r?o(a+1,23):o(0,a-1))},U=(e,t,n)=>{const r=f?f(e,t):[],a="start"===t,i=n||(a?y.value:b.value);if(e!==i.hour())return r;const s=i.minute();return Object(ne["union"])(r,a?o(s+1,59):o(0,s-1))},V=(e,t,n,r)=>{const a=h?h(e,t,n):[],i="start"===n,s=r||(i?y.value:b.value),c=s.hour(),l=s.minute();if(e!==c||t!==l)return a;const u=s.second();return Object(ne["union"])(a,i?o(u+1,59):o(0,u-1))},F=([e,t])=>[q(e,"start",!0,t),q(t,"end",!1,e)],{getAvailableHours:G,getAvailableMinutes:H,getAvailableSeconds:Y}=go(P,U,V),{timePickerOptions:z,getAvailableTime:q,onSetOption:W}=ho({getAvailableHours:G,getAvailableMinutes:H,getAvailableSeconds:Y}),K=e=>e?Object(te["isArray"])(e)?J()(e).call(e,e=>Wr()(e,n.format).locale(i.value)):Wr()(e,n.format).locale(i.value):null,$=()=>{if(Object(te["isArray"])(m))return J()(m).call(m,e=>Wr()(e).locale(i.value));const e=Wr()(m).locale(i.value);return[e,e.add(60,"m")]};return r("set-picker-option",["parseUserInput",K]),r("set-picker-option",["isValidValue",I]),r("set-picker-option",["handleKeydownInput",x]),r("set-picker-option",["getDefaultValue",$]),r("set-picker-option",["getRangeAvailableTime",F]),r("set-picker-option",["handleCancel",M]),(e,t)=>e.actualVisible?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(s).b("range-picker"),Object(u["unref"])(c).b("panel")])},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(s).be("range-picker","content"))},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(s).be("range-picker","cell"))},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(s).be("range-picker","header"))},Object(u["toDisplayString"])(Object(u["unref"])(a)("el.datepicker.startTime")),3),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(v.value)},[Object(u["createVNode"])(jo,{ref:"minSpinner",role:"start","show-seconds":k.value,"am-pm-mode":C.value,"arrow-control":Object(u["unref"])(d),"spinner-date":b.value,"disabled-hours":P,"disabled-minutes":U,"disabled-seconds":V,onChange:S,onSetOption:Object(u["unref"])(W),onSelectRange:L},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(s).be("range-picker","cell"))},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(s).be("range-picker","header"))},Object(u["toDisplayString"])(Object(u["unref"])(a)("el.datepicker.endTime")),3),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(_.value)},[Object(u["createVNode"])(jo,{ref:"maxSpinner",role:"end","show-seconds":k.value,"am-pm-mode":C.value,"arrow-control":Object(u["unref"])(d),"spinner-date":y.value,"disabled-hours":P,"disabled-minutes":U,"disabled-seconds":V,onChange:T,onSetOption:Object(u["unref"])(W),onSelectRange:N},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(s).be("panel","footer"))},[Object(u["createElementVNode"])("button",{type:"button",class:Object(u["normalizeClass"])([Object(u["unref"])(s).be("panel","btn"),"cancel"]),onClick:t[0]||(t[0]=e=>M())},Object(u["toDisplayString"])(Object(u["unref"])(a)("el.datepicker.cancel")),3),Object(u["createElementVNode"])("button",{type:"button",class:Object(u["normalizeClass"])([Object(u["unref"])(s).be("panel","btn"),"confirm"]),disabled:j.value,onClick:t[1]||(t[1]=e=>w())},Object(u["toDisplayString"])(Object(u["unref"])(a)("el.datepicker.confirm")),11,xo)],2)],2)):Object(u["createCommentVNode"])("v-if",!0)}}),Uo=Po,Vo=n("f906"),Bo=n.n(Vo);Wr.a.extend(Bo.a);var Fo=Object(u["defineComponent"])({name:"ElTimePicker",install:null,props:{...Ur,isRange:Boolean},emits:[o["c"]],setup(e,t){const n=Object(u["ref"])(),[r,a]=e.isRange?["timerange",Uo]:["time",Lo],i=e=>t.emit(o["c"],e);return Object(u["provide"])(Er,e.popperOptions),t.expose({focus:()=>{var e;null===(e=n.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=n.value)||void 0===e||e.blur()},handleOpen:()=>{var e;null===(e=n.value)||void 0===e||e.handleOpen()},handleClose:()=>{var e;null===(e=n.value)||void 0===e||e.handleClose()}}),()=>{var t;const o=null!==(t=e.format)&&void 0!==t?t:Dr;return Object(u["createVNode"])(po,Object(u["mergeProps"])(e,{ref:n,type:r,format:o,"onUpdate:modelValue":i}),{default:e=>Object(u["createVNode"])(a,e,null)})}}});const Go=Object(r["a"])(Fo),Ho=Object(c["b"])({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:re["a"]},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),Yo={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},zo=["aria-label"],qo=["aria-label"];var Wo=Object(u["defineComponent"])({name:"ElTag",__name:"tag",props:Ho,emits:Yo,setup(e,{emit:t}){const n=e,r=t,o=Object(ce["b"])(),{t:a}=Object(fr["b"])(),i=Object(g["d"])("tag"),s=Object(u["computed"])(()=>{const{type:e,hit:t,effect:r,closable:a,round:s}=n;return[i.b(),i.is("closable",a),i.m(e||"primary"),i.m(o.value),i.m(r),i.is("hit",t),i.is("round",s)]}),c=e=>{r("close",e)},l=e=>{r("click",e)},d=e=>{var t;null!==e&&void 0!==e&&null!==(t=e.component)&&void 0!==t&&null!==(t=t.subTree)&&void 0!==t&&null!==(t=t.component)&&void 0!==t&&t.bum&&(e.component.subTree.component.bum=null)};return(t,n)=>e.disableTransitions?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:0,class:Object(u["normalizeClass"])(s.value),style:Object(u["normalizeStyle"])({backgroundColor:e.color}),onClick:l},[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("content"))},[Object(u["renderSlot"])(t.$slots,"default")],2),e.closable?(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:0,"aria-label":Object(u["unref"])(a)("el.tag.close"),class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("close")),type:"button",onClick:Object(u["withModifiers"])(c,["stop"])},[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Close"]))]),_:1})],10,zo)):Object(u["createCommentVNode"])("v-if",!0)],6)):(Object(u["openBlock"])(),Object(u["createBlock"])(u["Transition"],{key:1,name:Object(u["unref"])(i).namespace.value+"-zoom-in-center",appear:"",onVnodeMounted:d},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(s.value),style:Object(u["normalizeStyle"])({backgroundColor:e.color}),onClick:l},[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("content"))},[Object(u["renderSlot"])(t.$slots,"default")],2),e.closable?(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:0,"aria-label":Object(u["unref"])(a)("el.tag.close"),class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("close")),type:"button",onClick:Object(u["withModifiers"])(c,["stop"])},[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Close"]))]),_:1})],10,qo)):Object(u["createCommentVNode"])("v-if",!0)],6)]),_:3},8,["name"]))}}),Ko=Wo;const $o=Object(r["a"])(Ko);var Jo=n("bd01");const Xo="ElOption",Qo=Object(c["b"])({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean});var Zo=n("a7ea");const ea=xe()("ElSelectGroup"),ta=xe()("ElSelect");function na(e,t){const n=Object(u["inject"])(ta);n||Object(a["b"])(Xo,"usage: <el-select><el-option /></el-select/>");const r=Object(u["inject"])(ea,{disabled:!1}),o=Object(u["computed"])(()=>p(Object(ne["castArray"])(n.props.modelValue),e.value)),i=Object(u["computed"])(()=>{if(n.props.multiple){var e;const t=Object(ne["castArray"])(null!==(e=n.props.modelValue)&&void 0!==e?e:[]);return!o.value&&t.length>=n.props.multipleLimit&&n.props.multipleLimit>0}return!1}),s=Object(u["computed"])(()=>{var t;return null!==(t=e.label)&&void 0!==t?t:Object(te["isObject"])(e.value)?"":e.value}),c=Object(u["computed"])(()=>e.value||e.label||""),l=Object(u["computed"])(()=>e.disabled||t.groupDisabled||i.value),d=Object(u["getCurrentInstance"])(),p=(t=[],r)=>{if(Object(te["isObject"])(e.value)){const e=n.props.valueKey;return t&&w()(t).call(t,t=>Object(u["toRaw"])(Object(ne["get"])(t,e))===Object(ne["get"])(r,e))}return t&&ue()(t).call(t,r)},f=()=>{var e;l.value||(n.states.hoveringIndex=B()(e=n.optionsArray).call(e,d.proxy))},h=n=>{t.visible=new RegExp(Object(Zo["b"])(n),"i").test(String(s.value))||e.created};return Object(u["watch"])(()=>s.value,()=>{e.created||n.props.remote||n.setSelected()}),Object(u["watch"])(()=>e.value,(t,r)=>{const{remote:o,valueKey:a}=n.props;if((o?t===r:Object(ne["isEqual"])(t,r))||(n.onOptionDestroy(r,d.proxy),n.onOptionCreate(d.proxy)),!e.created&&!o){if(a&&Object(te["isObject"])(t)&&Object(te["isObject"])(r)&&t[a]===r[a])return;n.setSelected()}}),Object(u["watch"])(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:s,currentValue:c,itemSelected:o,isDisabled:l,hoverItem:f,updateOption:h}}var ra=Object(u["defineComponent"])({name:Xo,componentName:Xo,props:Qo,setup(e){const t=Object(g["d"])("select"),n=Object(ge["a"])(),r=Object(u["computed"])(()=>[t.be("dropdown","item"),t.is("disabled",Object(u["unref"])(s)),t.is("selected",Object(u["unref"])(i)),t.is("hovering",Object(u["unref"])(f))]),o=Object(u["reactive"])({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:a,itemSelected:i,isDisabled:s,select:c,hoverItem:l,updateOption:d}=na(e,o),{visible:p,hover:f}=Object(u["toRefs"])(o),h=Object(u["getCurrentInstance"])().proxy;function m(){s.value||c.handleOptionSelect(h)}return c.onOptionCreate(h),Object(u["onBeforeUnmount"])(()=>{const e=h.value;Object(u["nextTick"])(()=>{const{selected:t}=c.states,n=w()(t).call(t,e=>e.value===h.value);c.states.cachedOptions.get(e)!==h||n||c.states.cachedOptions.delete(e)}),c.onOptionDestroy(e,h)}),{ns:t,id:n,containerKls:r,currentLabel:a,itemSelected:i,isDisabled:s,select:c,visible:p,hover:f,states:o,hoverItem:l,updateOption:d,selectOptionClick:m}}});const oa=["id","aria-disabled","aria-selected"];function aa(e,t,n,r,o,a){return Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{id:e.id,class:Object(u["normalizeClass"])(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:t[0]||(t[0]=(...t)=>e.hoverItem&&e.hoverItem(...t)),onClick:t[1]||(t[1]=Object(u["withModifiers"])((...t)=>e.selectOptionClick&&e.selectOptionClick(...t),["stop"]))},[Object(u["renderSlot"])(e.$slots,"default",{},()=>[Object(u["createElementVNode"])("span",null,Object(u["toDisplayString"])(e.currentLabel),1)])],42,oa)),[[u["vShow"],e.visible]])}var ia=Object(Jo["a"])(ra,[["render",aa]]),sa=Object(u["defineComponent"])({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Object(g["d"])("select"),n=Object(u["ref"])(),r=Object(u["getCurrentInstance"])(),o=Object(u["ref"])([]);Object(u["provide"])(ea,Object(u["reactive"])({...Object(u["toRefs"])(e)}));const a=Object(u["computed"])(()=>{var e;return w()(e=o.value).call(e,e=>!0===e.visible)}),i=e=>{var t;return"ElOption"===e.type.name&&!(null===(t=e.component)||void 0===t||!t.proxy)},s=e=>{const t=Object(ne["castArray"])(e),n=[];return Y()(t).call(t,e=>{var t;Object(u["isVNode"])(e)&&(i(e)?n.push(e.component.proxy):Object(te["isArray"])(e.children)&&e.children.length?n.push(...s(e.children)):null!==(t=e.component)&&void 0!==t&&t.subTree&&n.push(...s(e.component.subTree)))}),n},c=()=>{o.value=s(r.subTree)};return Object(u["onMounted"])(()=>{c()}),Object(_["useMutationObserver"])(n,c,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:a,ns:t}}});function ca(e,t,n,r,o,a){return Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("ul",{ref:"groupRef",class:Object(u["normalizeClass"])(e.ns.be("group","wrap"))},[Object(u["createElementVNode"])("li",{class:Object(u["normalizeClass"])(e.ns.be("group","title"))},Object(u["toDisplayString"])(e.label),3),Object(u["createElementVNode"])("li",null,[Object(u["createElementVNode"])("ul",{class:Object(u["normalizeClass"])(e.ns.b("group"))},[Object(u["renderSlot"])(e.$slots,"default")],2)])],2)),[[u["vShow"],e.visible]])}var la=Object(Jo["a"])(sa,[["render",ca]]),ua=n("b4d1"),da=n.n(ua),pa=n("298b"),fa=n.n(pa);const ha=11,ma=2;function va(){const e=Object(u["shallowRef"])(),t=Object(u["ref"])(0),n=Object(u["computed"])(()=>({minWidth:Math.max(t.value,ha)+"px"})),r=()=>{var n,r;t.value=null!==(n=null===(r=e.value)||void 0===r?void 0:r.getBoundingClientRect().width)&&void 0!==n?n:0};return Object(_["useResizeObserver"])(e,r),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}var ga=n("8fa2"),_a=n.n(ga),ba=n("4c43"),ya=n.n(ba);const Oa=new x.a;if(_["isClient"]){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of _a()(Oa).call(Oa))for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function Ma(e,t){let n=[];return Object(te["isArray"])(t.arg)?n=t.arg:Object(h["b"])(t.arg)&&n.push(t.arg),function(r,o){const a=t.instance.popperRef,i=r.target,s=null===o||void 0===o?void 0:o.target,c=!t||!t.instance,l=!i||!s,u=e.contains(i)||e.contains(s),d=e===i,p=n.length&&w()(n).call(n,e=>null===e||void 0===e?void 0:e.contains(i))||n.length&&ue()(n).call(n,s),f=a&&(a.contains(i)||a.contains(s));c||l||u||d||p||f||t.value(r,o)}}const ka={beforeMount(e,t){Oa.has(e)||Oa.set(e,[]),Oa.get(e).push({documentHandler:Ma(e,t),bindingFn:t.value})},updated(e,t){Oa.has(e)||Oa.set(e,[]);const n=Oa.get(e),r=ya()(n).call(n,e=>e.bindingFn===t.oldValue),o={documentHandler:Ma(e,t),bindingFn:t.value};r>=0?U()(n).call(n,r,1,o):n.push(o)},unmounted(e){Oa.delete(e)}},Ca={label:"label",value:"value",disabled:"disabled",options:"options"};function wa(e){const t=Object(u["ref"])({...Ca,...e.props});let n={...e.props};Object(u["watch"])(()=>e.props,e=>{Object(ne["isEqual"])(e,n)||(t.value={...Ca,...e},n={...e})},{deep:!0});const r=e=>Object(ne["get"])(e,t.value.label),o=e=>Object(ne["get"])(e,t.value.value),a=e=>Object(ne["get"])(e,t.value.disabled),i=e=>Object(ne["get"])(e,t.value.options);return{aliasProps:t,getLabel:r,getValue:o,getDisabled:a,getOptions:i}}var Sa=Object(u["defineComponent"])({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Object(u["inject"])(ta),t=Object(g["d"])("select"),n=Object(u["computed"])(()=>e.props.popperClass),r=Object(u["computed"])(()=>e.props.multiple),o=Object(u["computed"])(()=>e.props.fitInputWidth),a=Object(u["ref"])("");function i(){var t;const n=null===(t=e.selectRef)||void 0===t?void 0:t.offsetWidth;a.value=n?n-ma+"px":""}return Object(u["onMounted"])(()=>{i(),Object(_["useResizeObserver"])(e.selectRef,i)}),{ns:t,minWidth:a,popperClass:n,isMultiple:r,isFitInputWidth:o}}});function Ta(e,t,n,r,o,a){return Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Object(u["normalizeStyle"])({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(e.ns.be("dropdown","header"))},[Object(u["renderSlot"])(e.$slots,"header")],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["renderSlot"])(e.$slots,"default"),e.$slots.footer?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(e.ns.be("dropdown","footer"))},[Object(u["renderSlot"])(e.$slots,"footer")],2)):Object(u["createCommentVNode"])("v-if",!0)],6)}var Ia=Object(Jo["a"])(Sa,[["render",Ta]]),Ea=n("a952"),ja=n.n(Ea),Da=n("fc56"),La=n.n(Da),Aa=n("6df1");const Na=(e,t)=>{const{t:n}=Object(fr["b"])(),r=Object(u["useSlots"])(),i=Object(ge["a"])(),c=Object(g["d"])("select"),l=Object(g["d"])("input"),d=Object(u["reactive"])({inputValue:"",options:new x.a,cachedOptions:new x.a,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),p=Object(u["ref"])(),f=Object(u["ref"])(),m=Object(u["ref"])(),v=Object(u["ref"])(),b=Object(u["ref"])(),y=Object(u["ref"])(),O=Object(u["ref"])(),M=Object(u["ref"])(),k=Object(u["ref"])(),C=Object(u["ref"])(),T=Object(u["ref"])(),I=Object(u["ref"])(!1),E=Object(u["ref"])(),j=Object(u["ref"])(!1),{form:D,formItem:L}=Object(Hr["a"])(),{inputId:A}=Object(Hr["b"])(e,{formItemContext:L}),{valueOnClear:N,isEmptyValue:R}=Object(Rr["b"])(e),{isComposing:P,handleCompositionStart:V,handleCompositionUpdate:F,handleCompositionEnd:G}=Object(Aa["a"])({afterComposition:e=>Ae(e)}),H=Object(ce["a"])(),{wrapperRef:z,isFocused:q,handleBlur:W}=Object(Gr["a"])(b,{disabled:H,afterFocus(){e.automaticDropdown&&!I.value&&(I.value=!0,d.menuVisibleOnFocus=!0)},beforeBlur(e){var t,n;return(null===(t=m.value)||void 0===t?void 0:t.isFocusInsideContent(e))||(null===(n=v.value)||void 0===n?void 0:n.isFocusInsideContent(e))},afterBlur(){var t;I.value=!1,d.menuVisibleOnFocus=!1,e.validateEvent&&(null===L||void 0===L||null===(t=L.validate)||void 0===t||t.call(L,"blur").catch(e=>Object(a["a"])(e)))}}),$=Object(u["computed"])(()=>Object(te["isArray"])(e.modelValue)?e.modelValue.length>0:!R(e.modelValue)),X=Object(u["computed"])(()=>{var e;return null!==(e=null===D||void 0===D?void 0:D.statusIcon)&&void 0!==e&&e}),Q=Object(u["computed"])(()=>e.clearable&&!H.value&&$.value&&(q.value||d.inputHovering)),Z=Object(u["computed"])(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),ee=Object(u["computed"])(()=>c.is("reverse",!(!Z.value||!I.value))),re=Object(u["computed"])(()=>(null===L||void 0===L?void 0:L.validateState)||""),oe=Object(u["computed"])(()=>re.value&&S["d"][re.value]),ae=Object(u["computed"])(()=>e.remote?e.debounce:0),ie=Object(u["computed"])(()=>e.remote&&!d.inputValue&&0===d.options.size),se=Object(u["computed"])(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&d.inputValue&&d.options.size>0&&0===le.value?e.noMatchText||n("el.select.noMatch"):0===d.options.size?e.noDataText||n("el.select.noData"):null),le=Object(u["computed"])(()=>{var e;return K()(e=de.value).call(e,e=>e.visible).length}),de=Object(u["computed"])(()=>{var e,t;const n=Pn()(_a()(e=d.options).call(e)),r=[];return Y()(t=d.optionValues).call(t,e=>{const t=ya()(n).call(n,t=>t.value===e);t>-1&&r.push(n[t])}),r.length>=n.length?r:n}),pe=Object(u["computed"])(()=>{var e;return Pn()(_a()(e=d.cachedOptions).call(e))}),fe=Object(u["computed"])(()=>{var t,n;const r=w()(t=K()(n=de.value).call(n,e=>!e.created)).call(t,e=>e.currentLabel===d.inputValue);return e.filterable&&e.allowCreate&&""!==d.inputValue&&!r}),he=()=>{var t;e.filterable&&Object(te["isFunction"])(e.filterMethod)||e.filterable&&e.remote&&Object(te["isFunction"])(e.remoteMethod)||Y()(t=de.value).call(t,e=>{var t;null===(t=e.updateOption)||void 0===t||t.call(e,d.inputValue)})},me=Object(ce["b"])(),ve=Object(u["computed"])(()=>{var e;return ue()(e=["small"]).call(e,me.value)?"small":"default"}),_e=Object(u["computed"])({get(){return I.value&&(e.loading||!ie.value||e.remote&&!!r.empty)&&(!j.value||!Object(h["c"])(d.previousQuery)||d.options.size>0)},set(e){I.value=e}}),be=Object(u["computed"])(()=>{if(e.multiple&&!Object(h["g"])(e.modelValue))return 0===Object(ne["castArray"])(e.modelValue).length&&!d.inputValue;const t=Object(te["isArray"])(e.modelValue)?e.modelValue[0]:e.modelValue;return!e.filterable&&!Object(h["g"])(t)||!d.inputValue}),ye=Object(u["computed"])(()=>{var t;const r=null!==(t=e.placeholder)&&void 0!==t?t:n("el.select.placeholder");return e.multiple||!$.value?r:d.selectedLabel}),Me=Object(u["computed"])(()=>_["isIOS"]?null:"mouseenter");Object(u["watch"])(()=>e.modelValue,(t,n)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(d.inputValue="",ke("")),we(),!Object(ne["isEqual"])(t,n)&&e.validateEvent&&(null===L||void 0===L||L.validate("change").catch(e=>Object(a["a"])(e)))},{flush:"post",deep:!0}),Object(u["watch"])(()=>I.value,e=>{e?ke(d.inputValue):(d.inputValue="",d.previousQuery=null,d.isBeforeHide=!0,d.menuVisibleOnFocus=!1)}),Object(u["watch"])(()=>{var e;return ja()(e=d.options).call(e)},()=>{_["isClient"]&&(we(),e.defaultFirstOption&&(e.filterable||e.remote)&&le.value&&Ce())},{flush:"post"}),Object(u["watch"])([()=>d.hoveringIndex,de],([e])=>{var t;Object(h["d"])(e)&&e>-1?E.value=de.value[e]||{}:E.value={},Y()(t=de.value).call(t,e=>{e.hover=E.value===e})}),Object(u["watchEffect"])(()=>{d.isBeforeHide||he()});const ke=t=>{d.previousQuery===t||P.value||(d.previousQuery=t,e.filterable&&Object(te["isFunction"])(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&Object(te["isFunction"])(e.remoteMethod)&&e.remoteMethod(t),e.defaultFirstOption&&(e.filterable||e.remote)&&le.value?Object(u["nextTick"])(Ce):Object(u["nextTick"])(Te))},Ce=()=>{var e,t;const n=K()(e=de.value).call(e,e=>e.visible&&!e.disabled&&!e.states.groupDisabled),r=La()(n).call(n,e=>e.created),o=n[0];d.hoveringIndex=Fe(J()(t=de.value).call(t,e=>e.value),r||o)},we=()=>{var t;if(!e.multiple){const t=Se(Object(te["isArray"])(e.modelValue)?e.modelValue[0]:e.modelValue);return d.selectedLabel=t.currentLabel,void(d.selected=[t])}d.selectedLabel="";const n=[];Object(h["g"])(e.modelValue)||Y()(t=Object(ne["castArray"])(e.modelValue)).call(t,e=>{n.push(Se(e))}),d.selected=n},Se=t=>{let n;const r=Object(te["isPlainObject"])(t);for(let i=d.cachedOptions.size-1;i>=0;i--){const s=pe.value[i];if(r?Object(ne["get"])(s.value,e.valueKey)===Object(ne["get"])(t,e.valueKey):s.value===t){var o,a;n={index:B()(o=K()(a=de.value).call(a,e=>!e.created)).call(o,s),value:t,currentLabel:s.currentLabel,get isDisabled(){return s.isDisabled}};break}}return n||{index:-1,value:t,currentLabel:r?t.label:null!==t&&void 0!==t?t:""}},Te=()=>{const e=d.selected.length;if(e>0){var t;const n=d.selected[e-1];d.hoveringIndex=ya()(t=de.value).call(t,e=>et(n)===et(e))}else d.hoveringIndex=-1},Ie=()=>{d.selectionWidth=Oe()(window.getComputedStyle(f.value).width)},Ee=()=>{d.collapseItemWidth=C.value.getBoundingClientRect().width},je=()=>{var e,t;null===(e=m.value)||void 0===e||null===(t=e.updatePopper)||void 0===t||t.call(e)},De=()=>{var e,t;null===(e=v.value)||void 0===e||null===(t=e.updatePopper)||void 0===t||t.call(e)},Le=()=>{d.inputValue.length>0&&!I.value&&(I.value=!0),ke(d.inputValue)},Ae=t=>{if(d.inputValue=t.target.value,!e.remote)return Le();j.value=!0,Ne()},Ne=Object(_["useDebounceFn"])(()=>{Le(),j.value=!1},ae),Re=n=>{Object(ne["isEqual"])(e.modelValue,n)||t(o["a"],n)},xe=e=>Object(ne["findLastIndex"])(e,e=>{const t=d.cachedOptions.get(e);return!(null!==t&&void 0!==t&&t.disabled)&&!(null!==t&&void 0!==t&&t.states.groupDisabled)}),Pe=n=>{const r=Object(St["b"])(n);if(e.multiple&&r!==vt["a"].delete&&n.target.value.length<=0){var a;const n=It()(a=Object(ne["castArray"])(e.modelValue)).call(a),r=xe(n);if(r<0)return;const i=n[r];U()(n).call(n,r,1),t(o["c"],n),Re(n),t("remove-tag",i)}},Ue=(n,r)=>{var a;const i=B()(a=d.selected).call(a,r);if(i>-1&&!H.value){var s;const n=It()(s=Object(ne["castArray"])(e.modelValue)).call(s);U()(n).call(n,i,1),t(o["c"],n),Re(n),t("remove-tag",r.value)}n.stopPropagation(),We()},Ve=n=>{n.stopPropagation();const r=e.multiple?[]:N.value;if(e.multiple)for(const e of d.selected)e.isDisabled&&r.push(e.value);t(o["c"],r),Re(r),d.hoveringIndex=-1,I.value=!1,t("clear"),We()},Be=n=>{if(e.multiple){var r,a;const i=It()(r=Object(ne["castArray"])(null!==(a=e.modelValue)&&void 0!==a?a:[])).call(r),s=Fe(i,n);s>-1?U()(i).call(i,s,1):(e.multipleLimit<=0||i.length<e.multipleLimit)&&i.push(n.value),t(o["c"],i),Re(i),n.created&&ke(""),!e.filterable||!n.created&&e.reserveKeyword||(d.inputValue="")}else!Object(ne["isEqual"])(e.modelValue,n.value)&&t(o["c"],n.value),Re(n.value),I.value=!1;We(),I.value||Object(u["nextTick"])(()=>{Ge(n)})},Fe=(t,n)=>Object(h["g"])(n)?-1:Object(te["isObject"])(n.value)?ya()(t).call(t,t=>Object(ne["isEqual"])(Object(ne["get"])(t,e.valueKey),et(n))):B()(t).call(t,n.value),Ge=e=>{var t;const n=Object(te["isArray"])(e)?e[e.length-1]:e;let r=null;if(!Object(ne["isNil"])(null===n||void 0===n?void 0:n.value)){var o;const e=K()(o=de.value).call(o,e=>e.value===n.value);e.length>0&&(r=e[0].$el)}if(m.value&&r){var a,i;const e=null===(a=m.value)||void 0===a||null===(a=a.popperRef)||void 0===a||null===(a=a.contentRef)||void 0===a||null===(i=a.querySelector)||void 0===i?void 0:i.call(a,"."+c.be("dropdown","wrap"));e&&Object(s["f"])(e,r)}null===(t=T.value)||void 0===t||t.handleScroll()},He=e=>{d.options.set(e.value,e),d.cachedOptions.set(e.value,e)},Ye=(e,t)=>{d.options.get(e)===t&&d.options.delete(e)},ze=Object(u["computed"])(()=>{var e;return null===(e=m.value)||void 0===e||null===(e=e.popperRef)||void 0===e?void 0:e.contentRef}),qe=()=>{d.isBeforeHide=!1,Object(u["nextTick"])(()=>{var e;null===(e=T.value)||void 0===e||e.update(),Ge(d.selected)})},We=()=>{var e;null===(e=b.value)||void 0===e||e.focus()},Ke=()=>{var e;if(I.value)return I.value=!1,void Object(u["nextTick"])(()=>{var e;return null===(e=b.value)||void 0===e?void 0:e.blur()});null===(e=b.value)||void 0===e||e.blur()},$e=e=>{Ve(e)},Je=e=>{if(I.value=!1,q.value){const t=new FocusEvent("blur",e);Object(u["nextTick"])(()=>W(t))}},Xe=()=>{d.inputValue.length>0?d.inputValue="":I.value=!1},Qe=t=>{var n;H.value||e.filterable&&I.value&&t&&(null===(n=O.value)||void 0===n||!n.contains(t.target))||(_["isIOS"]&&(d.inputHovering=!0),d.menuVisibleOnFocus?d.menuVisibleOnFocus=!1:I.value=!I.value)},Ze=()=>{if(I.value){const e=de.value[d.hoveringIndex];e&&!e.isDisabled&&Be(e)}else Qe()},et=t=>Object(te["isObject"])(t.value)?Object(ne["get"])(t.value,e.valueKey):t.value,tt=Object(u["computed"])(()=>{var e,t;return Ht()(e=K()(t=de.value).call(t,e=>e.visible)).call(e,e=>e.isDisabled)}),nt=Object(u["computed"])(()=>{var t;return e.multiple?e.collapseTags?It()(t=d.selected).call(t,0,e.maxCollapseTags):d.selected:[]}),rt=Object(u["computed"])(()=>{var t;return e.multiple&&e.collapseTags?It()(t=d.selected).call(t,e.maxCollapseTags):[]}),ot=e=>{if(I.value){if(0!==d.options.size&&0!==le.value&&!P.value&&!tt.value){"next"===e?(d.hoveringIndex++,d.hoveringIndex===d.options.size&&(d.hoveringIndex=0)):"prev"===e&&(d.hoveringIndex--,d.hoveringIndex<0&&(d.hoveringIndex=d.options.size-1));const t=de.value[d.hoveringIndex];!t.isDisabled&&t.visible||ot(e),Object(u["nextTick"])(()=>Ge(E.value))}}else I.value=!0},at=(e,t,n,r)=>{for(let o=t;o>=0&&o<r;o+=n){const t=e[o];if((null===t||void 0===t||!t.isDisabled)&&null!==t&&void 0!==t&&t.visible)return o}return null},it=(e,t)=>{var n;const r=d.options.size;if(0===r)return;const o=Object(ne["clamp"])(e,0,r-1),a=de.value,i="up"===t?-1:1,s=null!==(n=at(a,o,i,r))&&void 0!==n?n:at(a,o-i,-i,r);null!=s&&(d.hoveringIndex=s,Object(u["nextTick"])(()=>Ge(E.value)))},st=e=>{const t=Object(St["b"])(e);let n=!0;switch(t){case vt["a"].up:ot("prev");break;case vt["a"].down:ot("next");break;case vt["a"].enter:case vt["a"].numpadEnter:P.value||Ze();break;case vt["a"].esc:Xe();break;case vt["a"].backspace:return n=!1,void Pe(e);case vt["a"].home:if(!I.value)return;it(0,"down");break;case vt["a"].end:if(!I.value)return;it(d.options.size-1,"up");break;case vt["a"].pageUp:if(!I.value)return;it(d.hoveringIndex-10,"up");break;case vt["a"].pageDown:if(!I.value)return;it(d.hoveringIndex+10,"down");break;default:n=!1;break}n&&(e.preventDefault(),e.stopPropagation())},ct=()=>{if(!f.value)return 0;const e=window.getComputedStyle(f.value);return Oe()(e.gap||"6px")},lt=Object(u["computed"])(()=>{const t=ct(),n=e.filterable?t+ha:0;return{maxWidth:(C.value&&1===e.maxCollapseTags?d.selectionWidth-d.collapseItemWidth-t-n:d.selectionWidth-n)+"px"}}),ut=Object(u["computed"])(()=>({maxWidth:d.selectionWidth+"px"})),dt=e=>{t("popup-scroll",e)};let pt;return Object(_["useResizeObserver"])(f,Ie),Object(_["useResizeObserver"])(z,je),Object(_["useResizeObserver"])(k,De),Object(_["useResizeObserver"])(C,Ee),Object(u["watch"])(()=>_e.value,e=>{var n;e?pt=Object(_["useResizeObserver"])(M,je).stop:(null===(n=pt)||void 0===n||n(),pt=void 0);t("visible-change",e)}),Object(u["onMounted"])(()=>{we()}),{inputId:A,contentId:i,nsSelect:c,nsInput:l,states:d,isFocused:q,expanded:I,optionsArray:de,hoverOption:E,selectSize:me,filteredOptionsCount:le,updateTooltip:je,updateTagTooltip:De,debouncedOnInputChange:Ne,onInput:Ae,deletePrevTag:Pe,deleteTag:Ue,deleteSelected:Ve,handleOptionSelect:Be,scrollToOption:Ge,hasModelValue:$,shouldShowPlaceholder:be,currentPlaceholder:ye,mouseEnterEventName:Me,needStatusIcon:X,showClearBtn:Q,iconComponent:Z,iconReverse:ee,validateState:re,validateIcon:oe,showNewOption:fe,updateOptions:he,collapseTagSize:ve,setSelected:we,selectDisabled:H,emptyText:se,handleCompositionStart:V,handleCompositionUpdate:F,handleCompositionEnd:G,handleKeydown:st,onOptionCreate:He,onOptionDestroy:Ye,handleMenuEnter:qe,focus:We,blur:Ke,handleClearClick:$e,handleClickOutside:Je,handleEsc:Xe,toggleMenu:Qe,selectOption:Ze,getValueKey:et,navigateOptions:ot,dropdownMenuVisible:_e,showTagList:nt,collapseTagList:rt,popupScroll:dt,getOption:Se,tagStyle:lt,collapseTagStyle:ut,popperRef:ze,inputRef:b,tooltipRef:m,tagTooltipRef:v,prefixRef:y,suffixRef:O,selectRef:p,wrapperRef:z,selectionRef:f,scrollbarRef:T,menuRef:M,tagMenuRef:k,collapseItemRef:C}};var Ra=Object(u["defineComponent"])({name:"ElOptions",setup(e,{slots:t}){const n=Object(u["inject"])(ta);let r=[];return()=>{var e,o;const a=null===(e=t.default)||void 0===e?void 0:e.call(t),i=[];function s(e){Object(te["isArray"])(e)&&Y()(e).call(e,e=>{var t,n,r,o;const a=null===(t=(null===e||void 0===e?void 0:e.type)||{})||void 0===t?void 0:t.name;"ElOptionGroup"===a?s(Object(te["isString"])(e.children)||Object(te["isArray"])(e.children)||!Object(te["isFunction"])(null===(n=e.children)||void 0===n?void 0:n.default)?e.children:null===(r=e.children)||void 0===r?void 0:r.default()):"ElOption"===a?i.push(null===(o=e.props)||void 0===o?void 0:o.value):Object(te["isArray"])(e.children)&&s(e.children)})}return a.length&&s(null===(o=a[0])||void 0===o?void 0:o.children),Object(ne["isEqual"])(i,r)||(r=i,n&&(n.states.optionValues=i)),a}}});const xa=Object(c["b"])({name:String,id:String,modelValue:{type:Object(c["c"])([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Nr["c"],effect:{type:Object(c["c"])(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:Object(c["c"])([String,Object])},popperOptions:{type:Object(c["c"])(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:Object(c["c"])(Function)},filterMethod:{type:Object(c["c"])(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:Object(c["c"])(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},teleported:mt.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:S["e"],default:Fn["CircleClose"]},fitInputWidth:Boolean,suffixIcon:{type:S["e"],default:Fn["ArrowDown"]},tagType:{...Ho.type,default:"info"},tagEffect:{...Ho.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:Object(c["c"])(String),values:ct["placements"],default:"bottom-start"},fallbackPlacements:{type:Object(c["c"])(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:mt.appendTo,options:{type:Object(c["c"])(Array)},props:{type:Object(c["c"])(Object),default:()=>Ca},...Rr["c"],...Object(st["a"])(["ariaLabel"])}),Pa=(o["c"],o["a"],bn.scroll,"ElSelect"),Ua=new da.a,Va=e=>(...t)=>{var n,r;const o=t[0];if(!o||ue()(o).call(o,'Slot "default" invoked outside of the render function')&&null!==(n=t[2])&&void 0!==n&&ue()(n).call(n,"ElTreeSelect"))return;const a=null===(r=Ua.get(e))||void 0===r?void 0:r.originalWarnHandler;a?a(...t):console.warn(...t)},Ba=e=>{let t=Ua.get(e);return t||(t={originalWarnHandler:e.config.warnHandler,handler:Va(e),count:0},Ua.set(e,t)),t};var Fa=Object(u["defineComponent"])({name:Pa,componentName:Pa,components:{ElSelectMenu:Ia,ElOption:ia,ElOptions:Ra,ElOptionGroup:la,ElTag:$o,ElScrollbar:Rn,ElTooltip:vn,ElIcon:k["a"]},directives:{ClickOutside:ka},props:xa,emits:[o["c"],o["a"],"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const r=Object(u["getCurrentInstance"])(),o=Ba(r.appContext);o.count+=1,r.appContext.config.warnHandler=o.handler;const a=Object(u["computed"])(()=>{const{modelValue:t,multiple:n}=e,r=n?[]:void 0;return Object(te["isArray"])(t)?n?t:r:n?r:t}),i=Object(u["reactive"])({...Object(u["toRefs"])(e),modelValue:a}),s=Na(i,t),{calculatorRef:c,inputStyle:l}=va(),{getLabel:d,getValue:p,getOptions:f,getDisabled:h}=wa(e),m=e=>({label:d(e),value:p(e),disabled:h(e)}),v=e=>fa()(e).call(e,(e,t)=>(e.push(t),t.children&&t.children.length>0&&e.push(...v(t.children)),e),[]),g=e=>{var t;Y()(t=Object(T["b"])(e||[])).call(t,e=>{if(Object(te["isObject"])(e)&&("ElOption"===e.type.name||"ElTree"===e.type.name)){var t,n;const o=e.type.name;if("ElTree"===o)Y()(t=v((null===(n=e.props)||void 0===n?void 0:n.data)||[])).call(t,e=>{var t;e.currentLabel=null!==(t=e.label)&&void 0!==t?t:Object(te["isObject"])(e.value)?"":e.value,s.onOptionCreate(e)});else if("ElOption"===o){var r;const t={...e.props};t.currentLabel=null!==(r=t.label)&&void 0!==r?r:Object(te["isObject"])(t.value)?"":t.value,s.onOptionCreate(t)}}})};Object(u["watch"])(()=>{var t;return[e.persistent||s.expanded.value||!n.default||null===(t=n.default)||void 0===t?void 0:t.call(n),a.value]},()=>{var t;e.persistent||s.expanded.value||n.default&&(s.states.options.clear(),g(null===(t=n.default)||void 0===t?void 0:t.call(n)))},{immediate:!0}),Object(u["provide"])(ta,Object(u["reactive"])({props:i,states:s.states,selectRef:s.selectRef,optionsArray:s.optionsArray,setSelected:s.setSelected,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy}));const _=Object(u["computed"])(()=>{var t;return e.multiple?J()(t=s.states.selected).call(t,e=>e.currentLabel):s.states.selectedLabel});return Object(u["onBeforeUnmount"])(()=>{const e=Ua.get(r.appContext);e&&(e.count-=1,e.count<=0&&(r.appContext.config.warnHandler=e.originalWarnHandler,Ua.delete(r.appContext)))}),{...s,modelValue:a,selectedLabel:_,calculatorRef:c,inputStyle:l,getLabel:d,getValue:p,getOptions:f,getDisabled:h,getOptionProps:m}}});const Ga=["id","value","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],Ha=["textContent"],Ya={key:1};function za(e,t,n,r,o,a){const i=Object(u["resolveComponent"])("el-tag"),s=Object(u["resolveComponent"])("el-tooltip"),c=Object(u["resolveComponent"])("el-icon"),l=Object(u["resolveComponent"])("el-option"),d=Object(u["resolveComponent"])("el-option-group"),p=Object(u["resolveComponent"])("el-options"),f=Object(u["resolveComponent"])("el-scrollbar"),h=Object(u["resolveComponent"])("el-select-menu"),m=Object(u["resolveDirective"])("click-outside");return Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("div",Object(u["mergeProps"])({ref:"selectRef",class:[e.nsSelect.b(),e.nsSelect.m(e.selectSize)]},{[Object(u["toHandlerKey"])(e.mouseEnterEventName)]:t[11]||(t[11]=t=>e.states.inputHovering=!0)},{onMouseleave:t[12]||(t[12]=t=>e.states.inputHovering=!1)}),[Object(u["createVNode"])(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:e.nsSelect.namespace.value+"-zoom-in-top","stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[10]||(t[10]=t=>e.states.isBeforeHide=!1)},{default:Object(u["withCtx"])(()=>{var n;return[Object(u["createElementVNode"])("div",{ref:"wrapperRef",class:Object(u["normalizeClass"])([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[7]||(t[7]=Object(u["withModifiers"])((...t)=>e.toggleMenu&&e.toggleMenu(...t),["prevent"]))},[e.$slots.prefix?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,ref:"prefixRef",class:Object(u["normalizeClass"])(e.nsSelect.e("prefix"))},[Object(u["renderSlot"])(e.$slots,"prefix")],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{ref:"selectionRef",class:Object(u["normalizeClass"])([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?Object(u["renderSlot"])(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>{var t,n,r,o,a,c,l,d,p,f,h,m,v,g,_,b,y,O,M,k,C;return[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.showTagList,t=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:e.getValueKey(t),class:Object(u["normalizeClass"])(e.nsSelect.e("selected-item"))},[Object(u["createVNode"])(i,{closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Object(u["normalizeStyle"])(e.tagStyle),onClose:n=>e.deleteTag(n,t)},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(e.nsSelect.e("tags-text"))},[Object(u["renderSlot"])(e.$slots,"label",{index:t.index,label:t.currentLabel,value:t.value},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(t.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(Object(u["openBlock"])(),Object(u["createBlock"])(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":null!==(t=null===(n=e.tagTooltip)||void 0===n?void 0:n.fallbackPlacements)&&void 0!==t?t:["bottom","top","right","left"],effect:null!==(r=null===(o=e.tagTooltip)||void 0===o?void 0:o.effect)&&void 0!==r?r:e.effect,placement:null!==(a=null===(c=e.tagTooltip)||void 0===c?void 0:c.placement)&&void 0!==a?a:"bottom","popper-class":null!==(l=null===(d=e.tagTooltip)||void 0===d?void 0:d.popperClass)&&void 0!==l?l:e.popperClass,"popper-style":null!==(p=null===(f=e.tagTooltip)||void 0===f?void 0:f.popperStyle)&&void 0!==p?p:e.popperStyle,teleported:null!==(h=null===(m=e.tagTooltip)||void 0===m?void 0:m.teleported)&&void 0!==h?h:e.teleported,"append-to":null!==(v=null===(g=e.tagTooltip)||void 0===g?void 0:g.appendTo)&&void 0!==v?v:e.appendTo,"popper-options":null!==(_=null===(b=e.tagTooltip)||void 0===b?void 0:b.popperOptions)&&void 0!==_?_:e.popperOptions,transition:null===(y=e.tagTooltip)||void 0===y?void 0:y.transition,"show-after":null===(O=e.tagTooltip)||void 0===O?void 0:O.showAfter,"hide-after":null===(M=e.tagTooltip)||void 0===M?void 0:M.hideAfter,"auto-close":null===(k=e.tagTooltip)||void 0===k?void 0:k.autoClose,offset:null===(C=e.tagTooltip)||void 0===C?void 0:C.offset},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{ref:"collapseItemRef",class:Object(u["normalizeClass"])(e.nsSelect.e("selected-item"))},[Object(u["createVNode"])(i,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Object(u["normalizeStyle"])(e.collapseTagStyle)},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(e.nsSelect.e("tags-text"))}," + "+Object(u["toDisplayString"])(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{ref:"tagMenuRef",class:Object(u["normalizeClass"])(e.nsSelect.e("selection"))},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.collapseTagList,t=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:e.getValueKey(t),class:Object(u["normalizeClass"])(e.nsSelect.e("selected-item"))},[Object(u["createVNode"])(i,{class:"in-tooltip",closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(e.nsSelect.e("tags-text"))},[Object(u["renderSlot"])(e.$slots,"label",{index:t.index,label:t.currentLabel,value:t.value},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(t.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):Object(u["createCommentVNode"])("v-if",!0)]}):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[Object(u["createElementVNode"])("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,type:"text",name:e.name,class:Object(u["normalizeClass"])([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Object(u["normalizeStyle"])(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":(null===(n=e.hoverOption)||void 0===n?void 0:n.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:t[0]||(t[0]=(...t)=>e.handleKeydown&&e.handleKeydown(...t)),onCompositionstart:t[1]||(t[1]=(...t)=>e.handleCompositionStart&&e.handleCompositionStart(...t)),onCompositionupdate:t[2]||(t[2]=(...t)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...t)),onCompositionend:t[3]||(t[3]=(...t)=>e.handleCompositionEnd&&e.handleCompositionEnd(...t)),onInput:t[4]||(t[4]=(...t)=>e.onInput&&e.onInput(...t)),onChange:t[5]||(t[5]=Object(u["withModifiers"])(()=>{},["stop"])),onClick:t[6]||(t[6]=Object(u["withModifiers"])((...t)=>e.toggleMenu&&e.toggleMenu(...t),["stop"]))},null,46,Ga),e.filterable?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Object(u["normalizeClass"])(e.nsSelect.e("input-calculator")),textContent:Object(u["toDisplayString"])(e.states.inputValue)},null,10,Ha)):Object(u["createCommentVNode"])("v-if",!0)],2),e.shouldShowPlaceholder?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?Object(u["renderSlot"])(e.$slots,"label",{key:0,index:e.getOption(e.modelValue).index,label:e.currentPlaceholder,value:e.modelValue},()=>[Object(u["createElementVNode"])("span",null,Object(u["toDisplayString"])(e.currentPlaceholder),1)]):(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",Ya,Object(u["toDisplayString"])(e.currentPlaceholder),1))],2)):Object(u["createCommentVNode"])("v-if",!0)],2),Object(u["createElementVNode"])("div",{ref:"suffixRef",class:Object(u["normalizeClass"])(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(Object(u["openBlock"])(),Object(u["createBlock"])(c,{key:0,class:Object(u["normalizeClass"])([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.iconComponent)))]),_:1},8,["class"])):Object(u["createCommentVNode"])("v-if",!0),e.showClearBtn&&e.clearIcon?(Object(u["openBlock"])(),Object(u["createBlock"])(c,{key:1,class:Object(u["normalizeClass"])([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.clearIcon)))]),_:1},8,["class","onClick"])):Object(u["createCommentVNode"])("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(Object(u["openBlock"])(),Object(u["createBlock"])(c,{key:2,class:Object(u["normalizeClass"])([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading","validating"===e.validateState)])},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.validateIcon)))]),_:1},8,["class"])):Object(u["createCommentVNode"])("v-if",!0)],2)],2)]}),content:Object(u["withCtx"])(()=>[Object(u["createVNode"])(h,{ref:"menuRef"},{default:Object(u["withCtx"])(()=>[e.$slots.header?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(e.nsSelect.be("dropdown","header")),onClick:t[8]||(t[8]=Object(u["withModifiers"])(()=>{},["stop"]))},[Object(u["renderSlot"])(e.$slots,"header")],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["withDirectives"])(Object(u["createVNode"])(f,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:Object(u["normalizeClass"])([e.nsSelect.is("empty",0===e.filteredOptionsCount)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:Object(u["withCtx"])(()=>[e.showNewOption?(Object(u["openBlock"])(),Object(u["createBlock"])(l,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):Object(u["createCommentVNode"])("v-if",!0),Object(u["createVNode"])(p,null,{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(e.$slots,"default",{},()=>[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.options,(t,n)=>{var r;return Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:n},[null!==(r=e.getOptions(t))&&void 0!==r&&r.length?(Object(u["openBlock"])(),Object(u["createBlock"])(d,{key:0,label:e.getLabel(t),disabled:e.getDisabled(t)},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.getOptions(t),t=>(Object(u["openBlock"])(),Object(u["createBlock"])(l,Object(u["mergeProps"])({key:e.getValue(t)},{ref_for:!0},e.getOptionProps(t)),null,16))),128))]),_:2},1032,["label","disabled"])):(Object(u["openBlock"])(),Object(u["createBlock"])(l,Object(u["mergeProps"])({key:1,ref_for:!0},e.getOptionProps(t)),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[u["vShow"],e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(e.nsSelect.be("dropdown","loading"))},[Object(u["renderSlot"])(e.$slots,"loading")],2)):e.loading||0===e.filteredOptionsCount?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:2,class:Object(u["normalizeClass"])(e.nsSelect.be("dropdown","empty"))},[Object(u["renderSlot"])(e.$slots,"empty",{},()=>[Object(u["createElementVNode"])("span",null,Object(u["toDisplayString"])(e.emptyText),1)])],2)):Object(u["createCommentVNode"])("v-if",!0),e.$slots.footer?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:3,class:Object(u["normalizeClass"])(e.nsSelect.be("dropdown","footer")),onClick:t[9]||(t[9]=Object(u["withModifiers"])(()=>{},["stop"]))},[Object(u["renderSlot"])(e.$slots,"footer")],2)):Object(u["createCommentVNode"])("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],16)),[[m,e.handleClickOutside,e.popperRef]])}var qa=Object(Jo["a"])(Fa,[["render",za]]);const Wa=Object(r["a"])(qa,{Option:ia,OptionGroup:la}),Ka=Object(r["d"])(ia),$a=Object(r["d"])(la),Ja=e=>Object(te["isArray"])(e)&&2===e.length&&Ht()(e).call(e,e=>Object(te["isDate"])(e)),Xa=Object(c["b"])({modelValue:{type:Date},range:{type:Object(c["c"])(Array),validator:Ja},controllerType:{type:String,values:["button","select"],default:"button"},formatter:{type:Object(c["c"])(Function)}}),Qa={[o["c"]]:e=>Object(te["isDate"])(e),[o["b"]]:e=>Object(te["isDate"])(e)},Za=(e,t)=>{var n;const r=e.subtract(1,"month").endOf("month").date();return J()(n=$r(t)).call(n,(e,n)=>r-(t-n-1))},ei=e=>{var t;return J()(t=$r(e.daysInMonth())).call(t,(e,t)=>t+1)},ti=e=>{var t;return J()(t=$r(e.length/7)).call(t,t=>{const n=7*t;return It()(e).call(e,n,n+7)})},ni=Object(c["b"])({selectedDay:{type:Object(c["c"])(Object)},range:{type:Object(c["c"])(Array)},date:{type:Object(c["c"])(Object),required:!0},hideHeader:{type:Boolean}}),ri={pick:e=>Object(te["isObject"])(e)};var oi=n("6806"),ai=n("5e0f"),ii=n.n(ai);const si=(e,t)=>{Wr.a.extend(ii.a);const n=Wr.a.localeData().firstDayOfWeek(),{t:r,lang:o}=Object(fr["b"])(),a=Wr()().locale(o.value),i=Object(u["computed"])(()=>!!e.range&&!!e.range.length),s=Object(u["computed"])(()=>{let t=[];if(i.value){var r,o;const[n,a]=e.range,i=J()(r=$r(a.date()-n.date()+1)).call(r,e=>({text:n.date()+e,type:"current"}));let s=i.length%7;s=0===s?0:7-s;const c=J()(o=$r(s)).call(o,(e,t)=>({text:t+1,type:"next"}));t=No()(i).call(i,c)}else{var a,s,c;const r=e.date.startOf("month").day(),o=J()(a=Za(e.date,(r-n+7)%7)).call(a,e=>({text:e,type:"prev"})),i=J()(s=ei(e.date)).call(s,e=>({text:e,type:"current"}));t=[...o,...i];const l=J()(c=$r(7-(t.length%7||7))).call(c,(e,t)=>({text:t+1,type:"next"}));t=No()(t).call(t,l)}return ti(t)}),c=Object(u["computed"])(()=>{var e,t;const o=n;return 0===o?J()(oi["a"]).call(oi["a"],e=>r("el.datepicker.weeks."+e)):J()(e=No()(t=It()(oi["a"]).call(oi["a"],o)).call(t,It()(oi["a"]).call(oi["a"],0,o))).call(e,e=>r("el.datepicker.weeks."+e))}),l=(t,n)=>{switch(n){case"prev":return e.date.startOf("month").subtract(1,"month").date(t);case"next":return e.date.startOf("month").add(1,"month").date(t);case"current":return e.date.date(t)}},d=({text:e,type:n})=>{t("pick",l(e,n))},p=({text:t,type:n})=>{const r=l(t,n);return{isSelected:r.isSame(e.selectedDay),type:n+"-month",day:r.format("YYYY-MM-DD"),date:r.toDate()}};return{now:a,isInRange:i,rows:s,weekDays:c,getFormattedDate:l,handlePickDay:d,getSlotData:p}},ci={key:0},li=["onClick"];var ui=Object(u["defineComponent"])({name:"DateTable",__name:"date-table",props:ni,emits:ri,setup(e,{expose:t,emit:n}){const r=e,{isInRange:o,now:a,rows:i,weekDays:s,getFormattedDate:c,handlePickDay:l,getSlotData:d}=si(r,n),p=Object(g["d"])("calendar-table"),f=Object(g["d"])("calendar-day"),h=({text:e,type:t})=>{const n=[t];if("current"===t){const o=c(e,t);o.isSame(r.selectedDay,"day")&&n.push(f.is("selected")),o.isSame(a,"day")&&n.push(f.is("today"))}return n};return t({getFormattedDate:c}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("table",{class:Object(u["normalizeClass"])([Object(u["unref"])(p).b(),Object(u["unref"])(p).is("range",Object(u["unref"])(o))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createElementBlock"])("thead",ci,[Object(u["createElementVNode"])("tr",null,[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(Object(u["unref"])(s),e=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("th",{key:e,scope:"col"},Object(u["toDisplayString"])(e),1))),128))])])),Object(u["createElementVNode"])("tbody",null,[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(Object(u["unref"])(i),(n,r)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("tr",{key:r,class:Object(u["normalizeClass"])({[Object(u["unref"])(p).e("row")]:!0,[Object(u["unref"])(p).em("row","hide-border")]:0===r&&e.hideHeader})},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(n,(e,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("td",{key:n,class:Object(u["normalizeClass"])(h(e)),onClick:t=>Object(u["unref"])(l)(e)},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(f).b())},[Object(u["renderSlot"])(t.$slots,"date-cell",{data:Object(u["unref"])(d)(e)},()=>[Object(u["createElementVNode"])("span",null,Object(u["toDisplayString"])(e.text),1)])],2)],10,li))),128))],2))),128))])],2))}}),di=ui;const pi=(e,t)=>{const n=e.endOf("month"),r=t.startOf("month"),o=n.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[o.startOf("week"),t]]},fi=(e,t)=>{const n=e.endOf("month"),r=e.add(1,"month").startOf("month"),o=n.isSame(r,"week")?r.add(1,"week"):r,a=o.endOf("month"),i=t.startOf("month"),s=a.isSame(i,"week")?i.add(1,"week"):i;return[[e,n],[o.startOf("week"),a],[s.startOf("week"),t]]},hi=(e,t,n)=>{const{lang:r}=Object(fr["b"])(),i=Object(u["ref"])(),s=Wr()().locale(r.value),c=Object(u["computed"])({get(){return e.modelValue?d.value:i.value},set(e){if(!e)return;i.value=e;const n=e.toDate();t(o["b"],n),t(o["c"],n)}}),l=Object(u["computed"])(()=>{var t,o;if(!e.range||!Object(te["isArray"])(e.range)||2!==e.range.length||w()(t=e.range).call(t,e=>!Object(te["isDate"])(e)))return[];const[i,s]=J()(o=e.range).call(o,e=>Wr()(e).locale(r.value));return i.isAfter(s)?(Object(a["a"])(n,"end time should be greater than start time"),[]):i.isSame(s,"month")?v(i,s):i.add(1,"month").month()!==s.month()?(Object(a["a"])(n,"start time and end time interval must not exceed two months"),[]):v(i,s)}),d=Object(u["computed"])(()=>e.modelValue?Wr()(e.modelValue).locale(r.value):c.value||(l.value.length?l.value[0][0]:s)),p=Object(u["computed"])(()=>d.value.subtract(1,"month").date(1)),f=Object(u["computed"])(()=>d.value.add(1,"month").date(1)),h=Object(u["computed"])(()=>d.value.subtract(1,"year").date(1)),m=Object(u["computed"])(()=>d.value.add(1,"year").date(1)),v=(e,t)=>{const r=e.startOf("week"),o=t.endOf("week"),i=r.get("month"),s=o.get("month");return i===s?[[r,o]]:(i+1)%12===s?pi(r,o):i+2===s||(i+1)%11===s?fi(r,o):(Object(a["a"])(n,"start time and end time interval must not exceed two months"),[])},g=e=>{c.value=e},_=e=>{const t={"prev-month":p.value,"next-month":f.value,"prev-year":h.value,"next-year":m.value,today:s}[e];t.isSame(d.value,"day")||g(t)},b=e=>{"today"===e?_("today"):g(e)};return{calculateValidatedDateRange:v,date:d,realSelectedDay:c,pickDay:g,selectDate:_,validatedRange:l,handleDateChange:b}},mi=Object(c["b"])({date:{type:Object(c["c"])(Object),required:!0},formatter:{type:Object(c["c"])(Function)}}),vi={"date-change":e=>Object(te["isObject"])(e)||Object(te["isString"])(e)};var gi=Object(u["defineComponent"])({name:"SelectController",__name:"select-controller",props:mi,emits:vi,setup(e,{emit:t}){const n=e,r=t,o=Object(g["d"])("calendar-select"),{t:a,lang:i}=Object(fr["b"])(),s=Pn()({length:12},(e,t)=>{const r=t+1;return{value:r,label:Object(te["isFunction"])(n.formatter)?n.formatter(r,"month"):r}}),c=Object(u["computed"])(()=>n.date.year()),l=Object(u["computed"])(()=>n.date.month()+1),d=Object(u["computed"])(()=>{const e=[];for(let t=-10;t<10;t++){const r=c.value+t;if(r>0){const t=Object(te["isFunction"])(n.formatter)?n.formatter(r,"year"):r;e.push({value:r,label:t})}}return e}),p=e=>{r("date-change",Wr()(new Date(e,l.value-1,1)).locale(i.value))},f=e=>{r("date-change",Wr()(new Date(c.value,e-1,1)).locale(i.value))},h=()=>{r("date-change","today")};return(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],null,[Object(u["createVNode"])(Object(u["unref"])(Wa),{"model-value":c.value,size:"small",class:Object(u["normalizeClass"])(Object(u["unref"])(o).e("year")),"validate-event":!1,options:d.value,onChange:p},null,8,["model-value","class","options"]),Object(u["createVNode"])(Object(u["unref"])(Wa),{"model-value":l.value,size:"small",class:Object(u["normalizeClass"])(Object(u["unref"])(o).e("month")),"validate-event":!1,options:Object(u["unref"])(s),onChange:f},null,8,["model-value","class","options"]),Object(u["createVNode"])(Object(u["unref"])(Sr["a"]),{size:"small",onClick:h},{default:Object(u["withCtx"])(()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(Object(u["unref"])(a)("el.datepicker.today")),1)]),_:1})],64))}}),_i=gi;const bi="ElCalendar";var yi=Object(u["defineComponent"])({name:bi,__name:"calendar",props:Xa,emits:Qa,setup(e,{expose:t,emit:n}){const r=Object(g["d"])("calendar"),{calculateValidatedDateRange:o,date:a,pickDay:i,realSelectedDay:s,selectDate:c,validatedRange:l,handleDateChange:d}=hi(e,n,bi),{t:p}=Object(fr["b"])(),f=Object(u["computed"])(()=>{const e="el.datepicker.month"+a.value.format("M");return`${a.value.year()} ${p("el.datepicker.year")} ${p(e)}`});return t({selectedDay:s,pickDay:i,selectDate:c,calculateValidatedDateRange:o}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).b())},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("header"))},[Object(u["renderSlot"])(t.$slots,"header",{date:f.value},()=>[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("title"))},Object(u["toDisplayString"])(f.value),3),0===Object(u["unref"])(l).length&&"button"===e.controllerType?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("button-group"))},[Object(u["createVNode"])(Object(u["unref"])(Sr["b"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Sr["a"]),{size:"small",onClick:n[0]||(n[0]=e=>Object(u["unref"])(c)("prev-month"))},{default:Object(u["withCtx"])(()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(Object(u["unref"])(p)("el.datepicker.prevMonth")),1)]),_:1}),Object(u["createVNode"])(Object(u["unref"])(Sr["a"]),{size:"small",onClick:n[1]||(n[1]=e=>Object(u["unref"])(c)("today"))},{default:Object(u["withCtx"])(()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(Object(u["unref"])(p)("el.datepicker.today")),1)]),_:1}),Object(u["createVNode"])(Object(u["unref"])(Sr["a"]),{size:"small",onClick:n[2]||(n[2]=e=>Object(u["unref"])(c)("next-month"))},{default:Object(u["withCtx"])(()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(Object(u["unref"])(p)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):0===Object(u["unref"])(l).length&&"select"===e.controllerType?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("select-controller"))},[Object(u["createVNode"])(_i,{date:Object(u["unref"])(a),formatter:e.formatter,onDateChange:Object(u["unref"])(d)},null,8,["date","formatter","onDateChange"])],2)):Object(u["createCommentVNode"])("v-if",!0)])],2),0===Object(u["unref"])(l).length?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("body"))},[Object(u["createVNode"])(di,{date:Object(u["unref"])(a),"selected-day":Object(u["unref"])(s),onPick:Object(u["unref"])(i)},Object(u["createSlots"])({_:2},[t.$slots["date-cell"]?{name:"date-cell",fn:Object(u["withCtx"])(e=>[Object(u["renderSlot"])(t.$slots,"date-cell",Object(u["normalizeProps"])(Object(u["guardReactiveProps"])(e)))]),key:"0"}:void 0]),1032,["date","selected-day","onPick"])],2)):(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("body"))},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(Object(u["unref"])(l),(e,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(di,{key:n,date:e[0],"selected-day":Object(u["unref"])(s),range:e,"hide-header":0!==n,onPick:Object(u["unref"])(i)},Object(u["createSlots"])({_:2},[t.$slots["date-cell"]?{name:"date-cell",fn:Object(u["withCtx"])(e=>[Object(u["renderSlot"])(t.$slots,"date-cell",Object(u["mergeProps"])({ref_for:!0},e))]),key:"0"}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}}),Oi=yi;const Mi=Object(r["a"])(Oi);var ki=n("edd9");const Ci=Object(c["b"])({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:Object(c["c"])([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}});xe()("cardContextKey");var wi=Object(u["defineComponent"])({name:"ElCard",__name:"card",props:Ci,setup(e){const t=Object(ki["c"])("card"),n=Object(g["d"])("card");return(r,o)=>{var a;return Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(n).b(),Object(u["unref"])(n).is((e.shadow||(null===(a=Object(u["unref"])(t))||void 0===a?void 0:a.shadow)||"always")+"-shadow")])},[r.$slots.header||e.header?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("header"),e.headerClass])},[Object(u["renderSlot"])(r.$slots,"header",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.header),1)])],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("body"),e.bodyClass]),style:Object(u["normalizeStyle"])(e.bodyStyle)},[Object(u["renderSlot"])(r.$slots,"default")],6),r.$slots.footer||e.footer?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("footer"),e.footerClass])},[Object(u["renderSlot"])(r.$slots,"footer",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.footer),1)])],2)):Object(u["createCommentVNode"])("v-if",!0)],2)}}}),Si=wi;const Ti=Object(r["a"])(Si),Ii=Object(c["b"])({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),Ei={change:(e,t)=>{var n;return Ht()(n=[e,t]).call(n,h["d"])}};var ji=n("800f"),Di=n.n(ji),Li=n("78b2"),Ai=n.n(Li);const Ni=(e,t,n)=>{var r,o,a,i;return K()(r=J()(o=J()(a=K()(i=Object(T["b"])(e.subTree)).call(i,e=>{var n;return Object(u["isVNode"])(e)&&(null===(n=e.type)||void 0===n?void 0:n.name)===t&&!!e.component})).call(a,e=>e.component.uid)).call(o,e=>n[e])).call(r,e=>!!e)},Ri=(e,t)=>{const n=Object(u["shallowRef"])({}),r=Object(u["shallowRef"])([]),o=new da.a,a=e=>{n.value[e.uid]=e,Object(u["triggerRef"])(n),Object(u["onMounted"])(()=>{const t=e.getVnode().el,r=t.parentNode;if(!o.has(r)){var a;o.set(r,[]);const e=Ai()(a=r.insertBefore).call(a,r);r.insertBefore=(t,a)=>{var i;return w()(i=o.get(r)).call(i,e=>t===e||a===e)&&Object(u["triggerRef"])(n),e(t,a)}}o.get(r).push(t)})},i=e=>{delete n.value[e.uid],Object(u["triggerRef"])(n);const t=e.getVnode().el,r=t.parentNode,a=o.get(r),i=B()(a).call(a,t);U()(a).call(a,i,1)},s=()=>{r.value=Ni(e,t,n.value)},c=e=>e.render();return{children:r,addChild:a,removeChild:i,ChildrenSorter:Object(u["defineComponent"])({setup(e,{slots:t}){return()=>(s(),t.default?Object(u["h"])(c,{render:t.default}):null)}})}},xi=xe()("carouselContextKey"),Pi="ElCarouselItem",Ui=300,Vi=(e,t,n)=>{const{children:r,addChild:i,removeChild:s,ChildrenSorter:c}=Ri(Object(u["getCurrentInstance"])(),Pi),l=Object(u["useSlots"])(),d=Object(u["ref"])(-1),p=Object(u["ref"])(null),f=Object(u["ref"])(!1),h=Object(u["ref"])(),m=Object(u["ref"])(0),v=Object(u["ref"])(!0),g=Object(u["computed"])(()=>"never"!==e.arrow&&!Object(u["unref"])(O)),b=Object(u["computed"])(()=>{var e;return w()(e=r.value).call(e,e=>e.props.label.toString().length>0)}),y=Object(u["computed"])(()=>"card"===e.type),O=Object(u["computed"])(()=>"vertical"===e.direction),M=Object(u["computed"])(()=>"auto"!==e.height?{height:e.height}:{height:m.value+"px",overflow:"hidden"}),k=Object(ne["throttle"])(e=>{D(e)},Ui,{trailing:!0}),C=Object(ne["throttle"])(e=>{V(e)},Ui),S=e=>!v.value||(d.value<=1?e<=1:e>1);function I(){p.value&&(clearInterval(p.value),p.value=null)}function E(){e.interval<=0||!e.autoplay||p.value||(p.value=Oo()(()=>j(),e.interval))}const j=()=>{d.value<r.value.length-1?d.value=d.value+1:e.loop&&(d.value=0)};function D(t){if(Object(te["isString"])(t)){var o,i;const e=K()(o=r.value).call(o,e=>e.props.name===t);e.length>0&&(t=B()(i=r.value).call(i,e[0]))}if(t=Number(t),Di()(t)||t!==Math.floor(t))return void Object(a["a"])(n,"index must be integer.");const s=r.value.length,c=d.value;d.value=t<0?e.loop?s-1:0:t>=s?e.loop?0:s-1:t,c===d.value&&L(c),H()}function L(e){var t;Y()(t=r.value).call(t,(t,n)=>{t.translateItem(n,d.value,e)})}function A(e,t){var n,o;const a=Object(u["unref"])(r),i=a.length;if(0===i||!e.states.inStage)return!1;const s=t+1,c=t-1,l=i-1,d=a[l].states.active,p=a[0].states.active,f=null===(n=a[s])||void 0===n||null===(n=n.states)||void 0===n?void 0:n.active,h=null===(o=a[c])||void 0===o||null===(o=o.states)||void 0===o?void 0:o.active;return t===l&&p||f?"left":!!(0===t&&d||h)&&"right"}function N(){f.value=!0,e.pauseOnHover&&I()}function R(){f.value=!1,E()}function x(e){var t;Object(u["unref"])(O)||Y()(t=r.value).call(t,(t,n)=>{e===A(t,n)&&(t.states.hover=!0)})}function P(){var e;Object(u["unref"])(O)||Y()(e=r.value).call(e,e=>{e.states.hover=!1})}function U(e){d.value=e}function V(t){"hover"===e.trigger&&t!==d.value&&(d.value=t)}function F(){D(d.value-1)}function G(){D(d.value+1)}function H(){I(),e.pauseOnHover&&f.value||E()}function z(t){"auto"===e.height&&(m.value=t)}function q(){var t,n;const r=null===(t=l.default)||void 0===t?void 0:t.call(l);if(!r)return null;const o=K()(n=Object(T["b"])(r)).call(n,e=>Object(u["isVNode"])(e)&&e.type.name===Pi);return 2===(null===o||void 0===o?void 0:o.length)&&e.loop&&!y.value?(v.value=!0,o):(v.value=!1,null)}Object(u["watch"])(()=>d.value,(e,n)=>{L(n),v.value&&(e%=2,n%=2),n>-1&&t(o["a"],e,n)});const W=Object(u["computed"])({get:()=>v.value?d.value%2:d.value,set:e=>d.value=e});Object(u["watch"])(()=>e.autoplay,e=>{e?E():I()}),Object(u["watch"])(()=>e.loop,()=>{D(d.value)}),Object(u["watch"])(()=>e.interval,()=>{H()});const $=Object(u["shallowRef"])();return Object(u["onMounted"])(()=>{Object(u["watch"])(()=>r.value,()=>{r.value.length>0&&D(e.initialIndex)},{immediate:!0}),$.value=Object(_["useResizeObserver"])(h.value,()=>{L()}),E()}),Object(u["onBeforeUnmount"])(()=>{I(),h.value&&$.value&&$.value.stop()}),Object(u["provide"])(xi,{root:h,isCardType:y,isVertical:O,items:r,loop:e.loop,cardScale:e.cardScale,addItem:i,removeItem:s,setActiveItem:D,setContainerHeight:z}),{root:h,activeIndex:d,exposeActiveIndex:W,arrowDisplay:g,hasLabel:b,hover:f,isCardType:y,items:r,isVertical:O,containerStyle:M,isItemsTwoLength:v,handleButtonEnter:x,handleButtonLeave:P,handleIndicatorClick:U,handleMouseEnter:N,handleMouseLeave:R,setActiveItem:D,prev:F,next:G,PlaceholderItem:q,isTwoLengthShow:S,ItemsSorter:c,throttledArrowClick:k,throttledIndicatorHover:C}},Bi=["aria-label"],Fi=["aria-label"],Gi=["onMouseenter","onClick"],Hi=["aria-label"],Yi={key:0},zi={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},qi="ElCarousel";var Wi=Object(u["defineComponent"])({name:qi,__name:"carousel",props:Ii,emits:Ei,setup(e,{expose:t,emit:n}){const r=e,{root:o,activeIndex:a,exposeActiveIndex:i,arrowDisplay:s,hasLabel:c,hover:l,isCardType:d,items:p,isVertical:f,containerStyle:h,handleButtonEnter:m,handleButtonLeave:v,handleIndicatorClick:_,handleMouseEnter:b,handleMouseLeave:y,setActiveItem:O,prev:M,next:C,PlaceholderItem:w,isTwoLengthShow:S,ItemsSorter:T,throttledArrowClick:I,throttledIndicatorHover:E}=Vi(r,n,qi),j=Object(g["d"])("carousel"),{t:D}=Object(fr["b"])(),L=Object(u["computed"])(()=>{const e=[j.b(),j.m(r.direction)];return Object(u["unref"])(d)&&e.push(j.m("card")),e.push(j.is("vertical-outside",Object(u["unref"])(f)&&"outside"===r.indicatorPosition)),e}),A=Object(u["computed"])(()=>{const e=[j.e("indicators"),j.em("indicators",r.direction)];return Object(u["unref"])(c)&&e.push(j.em("indicators","labels")),"outside"===r.indicatorPosition&&e.push(j.em("indicators","outside")),Object(u["unref"])(f)&&e.push(j.em("indicators","right")),e});function N(e){if(!r.motionBlur)return;const t=Object(u["unref"])(f)?j.namespace.value+"-transitioning-vertical":j.namespace.value+"-transitioning";e.currentTarget.classList.add(t)}function R(e){if(!r.motionBlur)return;const t=Object(u["unref"])(f)?j.namespace.value+"-transitioning-vertical":j.namespace.value+"-transitioning";e.currentTarget.classList.remove(t)}return t({activeIndex:i,setActiveItem:O,prev:M,next:C}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref_key:"root",ref:o,class:Object(u["normalizeClass"])(L.value),onMouseenter:n[6]||(n[6]=Object(u["withModifiers"])((...e)=>Object(u["unref"])(b)&&Object(u["unref"])(b)(...e),["stop"])),onMouseleave:n[7]||(n[7]=Object(u["withModifiers"])((...e)=>Object(u["unref"])(y)&&Object(u["unref"])(y)(...e),["stop"]))},[Object(u["unref"])(s)?(Object(u["openBlock"])(),Object(u["createBlock"])(u["Transition"],{key:0,name:"carousel-arrow-left",persisted:""},{default:Object(u["withCtx"])(()=>[Object(u["withDirectives"])(Object(u["createElementVNode"])("button",{type:"button",class:Object(u["normalizeClass"])([Object(u["unref"])(j).e("arrow"),Object(u["unref"])(j).em("arrow","left")]),"aria-label":Object(u["unref"])(D)("el.carousel.leftArrow"),onMouseenter:n[0]||(n[0]=e=>Object(u["unref"])(m)("left")),onMouseleave:n[1]||(n[1]=(...e)=>Object(u["unref"])(v)&&Object(u["unref"])(v)(...e)),onClick:n[2]||(n[2]=Object(u["withModifiers"])(e=>Object(u["unref"])(I)(Object(u["unref"])(a)-1),["stop"]))},[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowLeft"]))]),_:1})],42,Bi),[[u["vShow"],("always"===e.arrow||Object(u["unref"])(l))&&(e.loop||Object(u["unref"])(a)>0)]])]),_:1})):Object(u["createCommentVNode"])("v-if",!0),Object(u["unref"])(s)?(Object(u["openBlock"])(),Object(u["createBlock"])(u["Transition"],{key:1,name:"carousel-arrow-right",persisted:""},{default:Object(u["withCtx"])(()=>[Object(u["withDirectives"])(Object(u["createElementVNode"])("button",{type:"button",class:Object(u["normalizeClass"])([Object(u["unref"])(j).e("arrow"),Object(u["unref"])(j).em("arrow","right")]),"aria-label":Object(u["unref"])(D)("el.carousel.rightArrow"),onMouseenter:n[3]||(n[3]=e=>Object(u["unref"])(m)("right")),onMouseleave:n[4]||(n[4]=(...e)=>Object(u["unref"])(v)&&Object(u["unref"])(v)(...e)),onClick:n[5]||(n[5]=Object(u["withModifiers"])(e=>Object(u["unref"])(I)(Object(u["unref"])(a)+1),["stop"]))},[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowRight"]))]),_:1})],42,Fi),[[u["vShow"],("always"===e.arrow||Object(u["unref"])(l))&&(e.loop||Object(u["unref"])(a)<Object(u["unref"])(p).length-1)]])]),_:1})):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(j).e("container")),style:Object(u["normalizeStyle"])(Object(u["unref"])(h)),onTransitionstart:N,onTransitionend:R},[Object(u["createVNode"])(Object(u["unref"])(w)),Object(u["renderSlot"])(t.$slots,"default")],38),Object(u["createVNode"])(Object(u["unref"])(T),null,{default:Object(u["withCtx"])(()=>["none"!==e.indicatorPosition?(Object(u["openBlock"])(),Object(u["createElementBlock"])("ul",{key:0,class:Object(u["normalizeClass"])(A.value)},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(Object(u["unref"])(p),(t,n)=>Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{key:n,class:Object(u["normalizeClass"])([Object(u["unref"])(j).e("indicator"),Object(u["unref"])(j).em("indicator",e.direction),Object(u["unref"])(j).is("active",n===Object(u["unref"])(a))]),onMouseenter:e=>Object(u["unref"])(E)(n),onClick:Object(u["withModifiers"])(e=>Object(u["unref"])(_)(n),["stop"])},[Object(u["createElementVNode"])("button",{class:Object(u["normalizeClass"])(Object(u["unref"])(j).e("button")),"aria-label":Object(u["unref"])(D)("el.carousel.indicator",{index:n+1})},[Object(u["unref"])(c)?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",Yi,Object(u["toDisplayString"])(t.props.label),1)):Object(u["createCommentVNode"])("v-if",!0)],10,Hi)],42,Gi)),[[u["vShow"],Object(u["unref"])(S)(n)]])),128))],2)):Object(u["createCommentVNode"])("v-if",!0)]),_:1}),e.motionBlur?(Object(u["openBlock"])(),Object(u["createElementBlock"])("svg",zi,[...n[8]||(n[8]=[Object(u["createElementVNode"])("defs",null,[Object(u["createElementVNode"])("filter",{id:"elCarouselHorizontal"},[Object(u["createElementVNode"])("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),Object(u["createElementVNode"])("filter",{id:"elCarouselVertical"},[Object(u["createElementVNode"])("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1)])])):Object(u["createCommentVNode"])("v-if",!0)],34))}}),Ki=Wi;const $i=Object(c["b"])({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Ji=e=>{const t=Object(u["inject"])(xi),n=Object(u["getCurrentInstance"])();t||Object(a["a"])(Pi,"usage: <el-carousel></el-carousel-item></el-carousel>"),n||Object(a["a"])(Pi,"compositional hook can only be invoked inside setups");const r=Object(u["ref"])(),o=Object(u["ref"])(!1),i=Object(u["ref"])(0),s=Object(u["ref"])(1),c=Object(u["ref"])(!1),l=Object(u["ref"])(!1),d=Object(u["ref"])(!1),p=Object(u["ref"])(!1),{isCardType:f,isVertical:m,cardScale:v}=t;function g(e,t,n){const r=n-1,o=t-1,a=t+1,i=n/2;return 0===t&&e===r?-1:t===r&&0===e?n:e<o&&t-e>=i?n+1:e>a&&e-t>=i?-2:e}function _(e,n){var r,o;const a=Object(u["unref"])(m)?(null===(r=t.root.value)||void 0===r?void 0:r.offsetHeight)||0:(null===(o=t.root.value)||void 0===o?void 0:o.offsetWidth)||0;return d.value?a*((2-v)*(e-n)+1)/4:e<n?-(1+v)*a/4:(3+v)*a/4}function b(e,n,r){const o=t.root.value;return o?((r?o.offsetHeight:o.offsetWidth)||0)*(e-n):0}const y=(e,n,o)=>{var a;const y=Object(u["unref"])(f),O=null!==(a=t.items.value.length)&&void 0!==a?a:NaN,M=e===n;y||Object(h["g"])(o)||(p.value=M||e===o),!M&&O>2&&t.loop&&(e=g(e,n,O));const k=Object(u["unref"])(m);c.value=M,y?(d.value=Math.round(Math.abs(e-n))<=1,i.value=_(e,n),s.value=Object(u["unref"])(c)?1:v):i.value=b(e,n,k),l.value=!0,M&&r.value&&t.setContainerHeight(r.value.offsetHeight)};function O(){if(t&&Object(u["unref"])(f)){var e;const r=ya()(e=t.items.value).call(e,({uid:e})=>e===n.uid);t.setActiveItem(r)}}const M={props:e,states:Object(u["reactive"])({hover:o,translate:i,scale:s,active:c,ready:l,inStage:d,animating:p}),uid:n.uid,getVnode:()=>n.vnode,translateItem:y};return t.addItem(M),Object(u["onBeforeUnmount"])(()=>{t.removeItem(M)}),{carouselItemRef:r,active:c,animating:p,hover:o,inStage:d,isVertical:m,translate:i,isCardType:f,scale:s,ready:l,handleItemClick:O}};var Xi=Object(u["defineComponent"])({name:Pi,__name:"carousel-item",props:$i,setup(e){const t=e,n=Object(g["d"])("carousel"),{carouselItemRef:r,active:o,animating:a,hover:i,inStage:s,isVertical:c,translate:l,isCardType:d,scale:p,ready:f,handleItemClick:h}=Ji(t),m=Object(u["computed"])(()=>[n.e("item"),n.is("active",o.value),n.is("in-stage",s.value),n.is("hover",i.value),n.is("animating",a.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&c.value}]),v=Object(u["computed"])(()=>({transform:[`${"translate"+(Object(u["unref"])(c)?"Y":"X")}(${Object(u["unref"])(l)}px)`,`scale(${Object(u["unref"])(p)})`].join(" ")}));return(e,t)=>Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref_key:"carouselItemRef",ref:r,class:Object(u["normalizeClass"])(m.value),style:Object(u["normalizeStyle"])(v.value),onClick:t[0]||(t[0]=(...e)=>Object(u["unref"])(h)&&Object(u["unref"])(h)(...e))},[Object(u["unref"])(d)?Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("mask"))},null,2)),[[u["vShow"],!Object(u["unref"])(o)]]):Object(u["createCommentVNode"])("v-if",!0),Object(u["renderSlot"])(e.$slots,"default")],6)),[[u["vShow"],Object(u["unref"])(f)]])}}),Qi=Xi;const Zi=Object(r["a"])(Ki,{CarouselItem:Qi}),es=Object(r["d"])(Qi),ts={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:Nr["c"],tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...Object(st["a"])(["ariaControls"])},ns={[o["c"]]:e=>Object(te["isString"])(e)||Object(h["d"])(e)||Object(h["a"])(e),change:e=>Object(te["isString"])(e)||Object(h["d"])(e)||Object(h["a"])(e)};var rs=n("344d");const os=xe()("checkboxGroupContextKey"),as=({model:e,isChecked:t})=>{const n=Object(u["inject"])(os,void 0),r=Object(u["inject"])(se["a"],void 0),o=Object(u["computed"])(()=>{var r,o;const a=null===n||void 0===n||null===(r=n.max)||void 0===r?void 0:r.value,i=null===n||void 0===n||null===(o=n.min)||void 0===o?void 0:o.value;return!Object(h["g"])(a)&&e.value.length>=a&&!t.value||!Object(h["g"])(i)&&e.value.length<=i&&t.value});return{isDisabled:Object(ce["a"])(Object(u["computed"])(()=>{var e,t;return void 0===n?null!==(e=null===r||void 0===r?void 0:r.disabled)&&void 0!==e?e:o.value:(null===(t=n.disabled)||void 0===t?void 0:t.value)||o.value})),isLimitDisabled:o}},is=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:i,isLabeledByFormItem:s})=>{const c=Object(u["inject"])(os,void 0),{formItem:l}=Object(Hr["a"])(),{emit:d}=Object(u["getCurrentInstance"])();function p(t){var n,r,o,a,i;return ue()(n=[!0,e.trueValue,e.trueLabel]).call(n,t)?null===(r=null!==(o=e.trueValue)&&void 0!==o?o:e.trueLabel)||void 0===r||r:null!==(a=null!==(i=e.falseValue)&&void 0!==i?i:e.falseLabel)&&void 0!==a&&a}function f(e,t){d(o["a"],p(e),t)}function h(e){if(n.value)return;const t=e.target;d(o["a"],p(t.checked),e)}async function m(o){var a,c;n.value||(r.value||i.value||!s.value||w()(a=o.composedPath()).call(a,e=>"LABEL"===e.tagName)||(t.value=p(ue()(c=[!1,e.falseValue,e.falseLabel]).call(c,t.value)),await Object(u["nextTick"])(),f(t.value,o)))}const v=Object(u["computed"])(()=>(null===c||void 0===c?void 0:c.validateEvent)||e.validateEvent);return Object(u["watch"])(()=>e.modelValue,()=>{v.value&&(null===l||void 0===l||l.validate("change").catch(e=>Object(a["a"])(e)))}),{handleChange:h,onClickRoot:m}},ss=e=>{const t=Object(u["ref"])(!1),{emit:n}=Object(u["getCurrentInstance"])(),r=Object(u["inject"])(os,void 0),a=Object(u["computed"])(()=>!1===Object(h["g"])(r)),i=Object(u["ref"])(!1),s=Object(u["computed"])({get(){var n,o;return a.value?null===r||void 0===r||null===(n=r.modelValue)||void 0===n?void 0:n.value:null!==(o=e.modelValue)&&void 0!==o?o:t.value},set(e){var c,l;a.value&&Object(te["isArray"])(e)?(i.value=void 0!==(null===r||void 0===r||null===(c=r.max)||void 0===c?void 0:c.value)&&e.length>(null===r||void 0===r?void 0:r.max.value)&&e.length>s.value.length,!1===i.value&&(null===r||void 0===r||null===(l=r.changeEvent)||void 0===l||l.call(r,e))):(n(o["c"],e),t.value=e)}});return{model:s,isGroup:a,isLimitExceeded:i}},cs=(e,t,{model:n})=>{const r=Object(u["inject"])(os,void 0),o=Object(u["ref"])(!1),a=Object(u["computed"])(()=>Object(h["e"])(e.value)?e.label:e.value),i=Object(u["computed"])(()=>{var t,r;const o=n.value;return Object(h["a"])(o)?o:Object(te["isArray"])(o)?Object(te["isObject"])(a.value)?w()(t=J()(o).call(o,u["toRaw"])).call(t,e=>Object(ne["isEqual"])(e,a.value)):ue()(r=J()(o).call(o,u["toRaw"])).call(r,a.value):null!==o&&void 0!==o?o===e.trueValue||o===e.trueLabel:!!o});return{checkboxButtonSize:Object(ce["b"])(Object(u["computed"])(()=>{var e;return null===r||void 0===r||null===(e=r.size)||void 0===e?void 0:e.value}),{prop:!0}),isChecked:i,isFocused:o,checkboxSize:Object(ce["b"])(Object(u["computed"])(()=>{var e;return null===r||void 0===r||null===(e=r.size)||void 0===e?void 0:e.value})),hasOwnLabel:Object(u["computed"])(()=>!!t.default||!Object(h["e"])(a.value)),actualValue:a}},ls=(e,t)=>{const{formItem:n}=Object(Hr["a"])(),{model:r,isGroup:o,isLimitExceeded:a}=ss(e),{isFocused:i,isChecked:s,checkboxButtonSize:c,checkboxSize:l,hasOwnLabel:d,actualValue:p}=cs(e,t,{model:r}),{isDisabled:f}=as({model:r,isChecked:s}),{inputId:m,isLabeledByFormItem:v}=Object(Hr["b"])(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:g,onClickRoot:_}=is(e,{model:r,isLimitExceeded:a,hasOwnLabel:d,isDisabled:f,isLabeledByFormItem:v}),b=()=>{function t(){var t,n,o;Object(te["isArray"])(r.value)&&!ue()(t=r.value).call(t,p.value)?r.value.push(p.value):r.value=null===(n=null!==(o=e.trueValue)&&void 0!==o?o:e.trueLabel)||void 0===n||n}e.checked&&t()};return b(),Object(rs["a"])({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},Object(u["computed"])(()=>o.value&&Object(h["e"])(e.value))),Object(rs["a"])({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},Object(u["computed"])(()=>!!e.trueLabel)),Object(rs["a"])({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},Object(u["computed"])(()=>!!e.falseLabel)),{inputId:m,isLabeledByFormItem:v,isChecked:s,isDisabled:f,isFocused:i,checkboxButtonSize:c,checkboxSize:l,hasOwnLabel:d,model:r,actualValue:p,handleChange:g,onClickRoot:_}},us=["id","indeterminate","name","tabindex","disabled"];var ds=Object(u["defineComponent"])({name:"ElCheckbox",__name:"checkbox",props:ts,emits:ns,setup(e){const t=e,{inputId:n,isLabeledByFormItem:r,isChecked:o,isDisabled:a,isFocused:i,checkboxSize:s,hasOwnLabel:c,model:l,actualValue:d,handleChange:p,onClickRoot:f}=ls(t,Object(u["useSlots"])()),h=Object(u["computed"])(()=>{var e,n,r,o;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":null===(e=null!==(n=t.trueValue)&&void 0!==n?n:t.trueLabel)||void 0===e||e,"false-value":null!==(r=null!==(o=t.falseValue)&&void 0!==o?o:t.falseLabel)&&void 0!==r&&r}:{value:d.value}}),m=Object(g["d"])("checkbox"),v=Object(u["computed"])(()=>[m.b(),m.m(s.value),m.is("disabled",a.value),m.is("bordered",t.border),m.is("checked",o.value)]),_=Object(u["computed"])(()=>[m.e("input"),m.is("disabled",a.value),m.is("checked",o.value),m.is("indeterminate",t.indeterminate),m.is("focus",i.value)]);return(t,o)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(!Object(u["unref"])(c)&&Object(u["unref"])(r)?"span":"label"),{for:!Object(u["unref"])(c)&&Object(u["unref"])(r)?null:Object(u["unref"])(n),class:Object(u["normalizeClass"])(v.value),"aria-controls":e.indeterminate?e.ariaControls:null,"aria-checked":e.indeterminate?"mixed":void 0,"aria-label":e.ariaLabel,onClick:Object(u["unref"])(f)},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(_.value)},[Object(u["withDirectives"])(Object(u["createElementVNode"])("input",Object(u["mergeProps"])({id:Object(u["unref"])(n),"onUpdate:modelValue":o[0]||(o[0]=e=>Object(u["isRef"])(l)?l.value=e:null),class:Object(u["unref"])(m).e("original"),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:Object(u["unref"])(a)},h.value,{onChange:o[1]||(o[1]=(...e)=>Object(u["unref"])(p)&&Object(u["unref"])(p)(...e)),onFocus:o[2]||(o[2]=e=>i.value=!0),onBlur:o[3]||(o[3]=e=>i.value=!1),onClick:o[4]||(o[4]=Object(u["withModifiers"])(()=>{},["stop"]))}),null,16,us),[[u["vModelCheckbox"],Object(u["unref"])(l)]]),Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(m).e("inner"))},null,2)],2),Object(u["unref"])(c)?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(m).e("label"))},[Object(u["renderSlot"])(t.$slots,"default"),t.$slots.default?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:0},[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.label),1)],64))],2)):Object(u["createCommentVNode"])("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}}),ps=ds,fs=n("b0bc"),hs=n.n(fs);const ms=["name","tabindex","disabled"];var vs=Object(u["defineComponent"])({name:"ElCheckboxButton",__name:"checkbox-button",props:ts,emits:ns,setup(e){const t=e,{isFocused:n,isChecked:r,isDisabled:o,checkboxButtonSize:a,model:i,actualValue:s,handleChange:c}=ls(t,Object(u["useSlots"])()),l=Object(u["computed"])(()=>{var e,n,r,o;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":null===(e=null!==(n=t.trueValue)&&void 0!==n?n:t.trueLabel)||void 0===e||e,"false-value":null!==(r=null!==(o=t.falseValue)&&void 0!==o?o:t.falseLabel)&&void 0!==r&&r}:{value:s.value}}),d=Object(u["inject"])(os,void 0),p=Object(g["d"])("checkbox"),f=Object(u["computed"])(()=>{var e,t,n,r;const o=null!==(e=null===d||void 0===d||null===(t=hs()(d))||void 0===t?void 0:t.value)&&void 0!==e?e:"";return{backgroundColor:o,borderColor:o,color:null!==(n=null===d||void 0===d||null===(r=d.textColor)||void 0===r?void 0:r.value)&&void 0!==n?n:"",boxShadow:o?"-1px 0 0 0 "+o:void 0}}),h=Object(u["computed"])(()=>[p.b("button"),p.bm("button",a.value),p.is("disabled",o.value),p.is("checked",r.value),p.is("focus",n.value)]);return(t,a)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("label",{class:Object(u["normalizeClass"])(h.value)},[Object(u["withDirectives"])(Object(u["createElementVNode"])("input",Object(u["mergeProps"])({"onUpdate:modelValue":a[0]||(a[0]=e=>Object(u["isRef"])(i)?i.value=e:null),class:Object(u["unref"])(p).be("button","original"),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:Object(u["unref"])(o)},l.value,{onChange:a[1]||(a[1]=(...e)=>Object(u["unref"])(c)&&Object(u["unref"])(c)(...e)),onFocus:a[2]||(a[2]=e=>n.value=!0),onBlur:a[3]||(a[3]=e=>n.value=!1),onClick:a[4]||(a[4]=Object(u["withModifiers"])(()=>{},["stop"]))}),null,16,ms),[[u["vModelCheckbox"],Object(u["unref"])(i)]]),t.$slots.default||e.label?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(p).be("button","inner")),style:Object(u["normalizeStyle"])(Object(u["unref"])(r)?f.value:void 0)},[Object(u["renderSlot"])(t.$slots,"default",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.label),1)])],6)):Object(u["createCommentVNode"])("v-if",!0)],2))}}),gs=vs;const _s=Object(c["b"])({modelValue:{type:Object(c["c"])(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:Nr["c"],fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:Object(c["c"])(Array)},props:{type:Object(c["c"])(Object),default:()=>ys},type:{type:String,values:["checkbox","button"],default:"checkbox"},...Object(st["a"])(["ariaLabel"])}),bs={[o["c"]]:e=>Object(te["isArray"])(e),change:e=>Object(te["isArray"])(e)},ys={label:"label",value:"value",disabled:"disabled"};var Os=Object(u["defineComponent"])({name:"ElCheckboxGroup",__name:"checkbox-group",props:_s,emits:bs,setup(e,{emit:t}){const n=e,r=t,i=Object(g["d"])("checkbox"),s=Object(ce["a"])(),{formItem:c}=Object(Hr["a"])(),{inputId:l,isLabeledByFormItem:d}=Object(Hr["b"])(n,{formItemContext:c}),p=async e=>{r(o["c"],e),await Object(u["nextTick"])(),r(o["a"],e)},f=Object(u["computed"])({get(){return n.modelValue},set(e){p(e)}}),h=Object(u["computed"])(()=>({...ys,...n.props})),m=e=>{const{label:t,value:n,disabled:r}=h.value,o={label:e[t],value:e[n],disabled:e[r]};return{...Object(ne["omit"])(e,[t,n,r]),...o}},v=Object(u["computed"])(()=>"button"===n.type?gs:ps);return Object(u["provide"])(os,{...Object(ne["pick"])(Object(u["toRefs"])(n),["size","min","max","validateEvent","fill","textColor"]),disabled:s,modelValue:f,changeEvent:p}),Object(u["watch"])(()=>n.modelValue,(e,t)=>{n.validateEvent&&!Object(ne["isEqual"])(e,t)&&(null===c||void 0===c||c.validate("change").catch(e=>Object(a["a"])(e)))}),(t,n)=>{var r;return Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.tag),{id:Object(u["unref"])(l),class:Object(u["normalizeClass"])(Object(u["unref"])(i).b("group")),role:"group","aria-label":Object(u["unref"])(d)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":Object(u["unref"])(d)?null===(r=Object(u["unref"])(c))||void 0===r?void 0:r.labelId:void 0},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"default",{},()=>[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.options,(e,t)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(v.value),Object(u["mergeProps"])({key:t},{ref_for:!0},m(e)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}}),Ms=Os;const ks=Object(r["a"])(ps,{CheckboxButton:gs,CheckboxGroup:Ms}),Cs=Object(r["d"])(gs),ws=Object(r["d"])(Ms),Ss=Object(c["b"])({modelValue:{type:[String,Number,Boolean],default:void 0},size:Nr["c"],disabled:{type:Boolean,default:void 0},label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),Ts=Object(c["b"])({...Ss,border:Boolean}),Is={[o["c"]]:e=>Object(te["isString"])(e)||Object(h["d"])(e)||Object(h["a"])(e),[o["a"]]:e=>Object(te["isString"])(e)||Object(h["d"])(e)||Object(h["a"])(e)},Es=xe()("radioGroupKey"),js=(e,t)=>{const n=Object(u["ref"])(),r=Object(u["inject"])(Es,void 0),a=Object(u["computed"])(()=>!!r),i=Object(u["computed"])(()=>Object(h["e"])(e.value)?e.label:e.value),s=Object(u["computed"])({get(){return a.value?r.modelValue:e.modelValue},set(s){a.value?r.changeEvent(s):t&&t(o["c"],s),n.value.checked=e.modelValue===i.value}}),c=Object(ce["b"])(Object(u["computed"])(()=>null===r||void 0===r?void 0:r.size)),l=Object(ce["a"])(Object(u["computed"])(()=>null===r||void 0===r?void 0:r.disabled)),d=Object(u["ref"])(!1),p=Object(u["computed"])(()=>l.value||a.value&&s.value!==i.value?-1:0);return Object(rs["a"])({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},Object(u["computed"])(()=>a.value&&Object(h["e"])(e.value))),{radioRef:n,isGroup:a,radioGroup:r,focus:d,size:c,disabled:l,tabIndex:p,modelValue:s,actualValue:i}},Ds=["value","name","disabled","checked"];var Ls=Object(u["defineComponent"])({name:"ElRadio",__name:"radio",props:Ts,emits:Is,setup(e,{emit:t}){const n=e,r=t,a=Object(g["d"])("radio"),{radioRef:i,radioGroup:s,focus:c,size:l,disabled:d,modelValue:p,actualValue:f}=js(n,r);function h(){Object(u["nextTick"])(()=>r(o["a"],p.value))}return(t,n)=>{var r;return Object(u["openBlock"])(),Object(u["createElementBlock"])("label",{class:Object(u["normalizeClass"])([Object(u["unref"])(a).b(),Object(u["unref"])(a).is("disabled",Object(u["unref"])(d)),Object(u["unref"])(a).is("focus",Object(u["unref"])(c)),Object(u["unref"])(a).is("bordered",e.border),Object(u["unref"])(a).is("checked",Object(u["unref"])(p)===Object(u["unref"])(f)),Object(u["unref"])(a).m(Object(u["unref"])(l))])},[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])([Object(u["unref"])(a).e("input"),Object(u["unref"])(a).is("disabled",Object(u["unref"])(d)),Object(u["unref"])(a).is("checked",Object(u["unref"])(p)===Object(u["unref"])(f))])},[Object(u["withDirectives"])(Object(u["createElementVNode"])("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":n[0]||(n[0]=e=>Object(u["isRef"])(p)?p.value=e:null),class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("original")),value:Object(u["unref"])(f),name:e.name||(null===(r=Object(u["unref"])(s))||void 0===r?void 0:r.name),disabled:Object(u["unref"])(d),checked:Object(u["unref"])(p)===Object(u["unref"])(f),type:"radio",onFocus:n[1]||(n[1]=e=>c.value=!0),onBlur:n[2]||(n[2]=e=>c.value=!1),onChange:h,onClick:n[3]||(n[3]=Object(u["withModifiers"])(()=>{},["stop"]))},null,42,Ds),[[u["vModelRadio"],Object(u["unref"])(p)]]),Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("inner"))},null,2)],2),Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("label")),onKeydown:n[4]||(n[4]=Object(u["withModifiers"])(()=>{},["stop"]))},[Object(u["renderSlot"])(t.$slots,"default",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.label),1)])],34)],2)}}}),As=Ls;const Ns=Object(c["b"])({...Ss}),Rs=["value","name","disabled"];var xs=Object(u["defineComponent"])({name:"ElRadioButton",__name:"radio-button",props:Ns,setup(e){const t=e,n=Object(g["d"])("radio"),{radioRef:r,focus:o,size:a,disabled:i,modelValue:s,radioGroup:c,actualValue:l}=js(t),d=Object(u["computed"])(()=>{var e,t,n;return{backgroundColor:(null==(e=c)?void 0:hs()(e))||"",borderColor:(null==(t=c)?void 0:hs()(t))||"",boxShadow:(null==(n=c)?void 0:hs()(n))?"-1px 0 0 0 "+hs()(c):"",color:(null===c||void 0===c?void 0:c.textColor)||""}});return(t,p)=>{var f;return Object(u["openBlock"])(),Object(u["createElementBlock"])("label",{class:Object(u["normalizeClass"])([Object(u["unref"])(n).b("button"),Object(u["unref"])(n).is("active",Object(u["unref"])(s)===Object(u["unref"])(l)),Object(u["unref"])(n).is("disabled",Object(u["unref"])(i)),Object(u["unref"])(n).is("focus",Object(u["unref"])(o)),Object(u["unref"])(n).bm("button",Object(u["unref"])(a))])},[Object(u["withDirectives"])(Object(u["createElementVNode"])("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":p[0]||(p[0]=e=>Object(u["isRef"])(s)?s.value=e:null),class:Object(u["normalizeClass"])(Object(u["unref"])(n).be("button","original-radio")),value:Object(u["unref"])(l),type:"radio",name:e.name||(null===(f=Object(u["unref"])(c))||void 0===f?void 0:f.name),disabled:Object(u["unref"])(i),onFocus:p[1]||(p[1]=e=>o.value=!0),onBlur:p[2]||(p[2]=e=>o.value=!1),onClick:p[3]||(p[3]=Object(u["withModifiers"])(()=>{},["stop"]))},null,42,Rs),[[u["vModelRadio"],Object(u["unref"])(s)]]),Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(n).be("button","inner")),style:Object(u["normalizeStyle"])(Object(u["unref"])(s)===Object(u["unref"])(l)?d.value:{}),onKeydown:p[4]||(p[4]=Object(u["withModifiers"])(()=>{},["stop"]))},[Object(u["renderSlot"])(t.$slots,"default",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.label),1)])],38)],2)}}}),Ps=xs;const Us={label:"label",value:"value",disabled:"disabled"},Vs=Object(c["b"])({id:{type:String,default:void 0},size:Nr["c"],disabled:{type:Boolean,default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},options:{type:Object(c["c"])(Array)},props:{type:Object(c["c"])(Object),default:()=>Us},type:{type:String,values:["radio","button"],default:"radio"},...Object(st["a"])(["ariaLabel"])}),Bs=Is,Fs=["id","aria-label","aria-labelledby"];var Gs=Object(u["defineComponent"])({name:"ElRadioGroup",__name:"radio-group",props:Vs,emits:Bs,setup(e,{emit:t}){const n=e,r=t,i=Object(g["d"])("radio"),s=Object(ge["a"])(),c=Object(u["ref"])(),{formItem:l}=Object(Hr["a"])(),{inputId:d,isLabeledByFormItem:p}=Object(Hr["b"])(n,{formItemContext:l}),f=e=>{r(o["c"],e),Object(u["nextTick"])(()=>r(o["a"],e))};Object(u["onMounted"])(()=>{var e;const t=c.value.querySelectorAll("[type=radio]"),n=t[0];!w()(e=Pn()(t)).call(e,e=>e.checked)&&n&&(n.tabIndex=0)});const h=Object(u["computed"])(()=>n.name||s.value),m=Object(u["computed"])(()=>({...Us,...n.props})),v=e=>{const{label:t,value:n,disabled:r}=m.value,o={label:e[t],value:e[n],disabled:e[r]};return{...Object(ne["omit"])(e,[t,n,r]),...o}},_=Object(u["computed"])(()=>"button"===n.type?Ps:As);return Object(u["provide"])(Es,Object(u["reactive"])({...Object(u["toRefs"])(n),changeEvent:f,name:h})),Object(u["watch"])(()=>n.modelValue,(e,t)=>{n.validateEvent&&!Object(ne["isEqual"])(e,t)&&(null===l||void 0===l||l.validate("change").catch(e=>Object(a["a"])(e)))}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{id:Object(u["unref"])(d),ref_key:"radioGroupRef",ref:c,class:Object(u["normalizeClass"])(Object(u["unref"])(i).b("group")),role:"radiogroup","aria-label":Object(u["unref"])(p)?void 0:e.ariaLabel||"radio-group","aria-labelledby":Object(u["unref"])(p)?Object(u["unref"])(l).labelId:void 0},[Object(u["renderSlot"])(t.$slots,"default",{},()=>[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.options,(e,t)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(_.value),Object(u["mergeProps"])({key:t},{ref_for:!0},v(e)),null,16))),128))])],10,Fs))}}),Hs=Gs;const Ys=Object(r["a"])(As,{RadioButton:Ps,RadioGroup:Hs}),zs=Object(r["d"])(Hs),qs=Object(r["d"])(Ps),Ws=Object(c["b"])({modelValue:{type:Object(c["c"])([Number,String,Array,Object])},options:{type:Object(c["c"])(Array),default:()=>[]},props:{type:Object(c["c"])(Object),default:()=>({})}}),Ks={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:te["NOOP"],value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},$s=Object(c["b"])({...Ws,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),Js=e=>!0,Xs={[o["c"]]:Js,[o["a"]]:Js,close:()=>!0,"expand-change":e=>e},Qs=e=>Object(u["computed"])(()=>({...Ks,...e.props})),Zs=xe()();function ec(e){return!!(Object(te["isArray"])(e)?Ht()(e).call(e,({type:e})=>e===u["Comment"]):(null===e||void 0===e?void 0:e.type)===u["Comment"])}var tc=Object(u["defineComponent"])({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=Object(g["d"])("cascader-node"),{renderLabelFn:n}=Object(u["inject"])(Zs),{node:r}=e,{data:o,label:a}=r,i=()=>{const e=null===n||void 0===n?void 0:n({node:r,data:o});return ec(e)?a:null!==e&&void 0!==e?e:a};return()=>Object(u["createVNode"])("span",{class:t.e("label")},[i()])}});const nc=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"];var rc=Object(u["defineComponent"])({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=e,r=t,o=Object(u["inject"])(Zs),a=Object(g["d"])("cascader-node"),i=Object(u["computed"])(()=>o.isHoverMenu),s=Object(u["computed"])(()=>o.config.multiple),c=Object(u["computed"])(()=>o.config.checkStrictly),l=Object(u["computed"])(()=>o.config.showPrefix),d=Object(u["computed"])(()=>{var e;return null===(e=o.checkedNodes[0])||void 0===e?void 0:e.uid}),p=Object(u["computed"])(()=>n.node.isDisabled),f=Object(u["computed"])(()=>n.node.isLeaf),h=Object(u["computed"])(()=>c.value&&!f.value||!p.value),m=Object(u["computed"])(()=>_(o.expandingNode)),v=Object(u["computed"])(()=>{var e;return c.value&&w()(e=o.checkedNodes).call(e,_)}),_=e=>{var t;const{level:r,uid:o}=n.node;return(null===e||void 0===e||null===(t=e.pathNodes[r-1])||void 0===t?void 0:t.uid)===o},b=()=>{m.value||o.expandNode(n.node)},y=e=>{const{node:t}=n;e!==t.checked&&o.handleCheckChange(t,e)},O=()=>{o.lazyLoad(n.node,()=>{f.value||b()})},M=e=>{i.value&&(C(),!f.value&&r("expand",e))},C=()=>{const{node:e}=n;h.value&&!e.loading&&(e.loaded?b():O())},S=()=>{!f.value||p.value||c.value||s.value?(o.config.checkOnClickNode&&(s.value||c.value)||f.value&&o.config.checkOnClickLeaf)&&!p.value?T(!n.node.checked):i.value||C():I(!0)},T=e=>{c.value?(y(e),n.node.loaded&&b()):I(e)},I=e=>{n.node.loaded?(y(e),!c.value&&b()):O()};return(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!f.value,"aria-owns":f.value?void 0:e.menuId,"aria-expanded":m.value,tabindex:h.value?-1:void 0,class:Object(u["normalizeClass"])([Object(u["unref"])(a).b(),Object(u["unref"])(a).is("selectable",c.value),Object(u["unref"])(a).is("active",e.node.checked),Object(u["unref"])(a).is("disabled",!h.value),m.value&&"in-active-path",v.value&&"in-checked-path"]),onMouseenter:M,onFocus:M,onClick:S},[Object(u["createCommentVNode"])(" prefix "),s.value&&l.value?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(ks),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:p.value,onClick:n[0]||(n[0]=Object(u["withModifiers"])(()=>{},["stop"])),"onUpdate:modelValue":T},null,8,["model-value","indeterminate","disabled"])):c.value&&l.value?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Ys),{key:1,"model-value":d.value,label:e.node.uid,disabled:p.value,"onUpdate:modelValue":T,onClick:n[1]||(n[1]=Object(u["withModifiers"])(()=>{},["stop"]))},{default:Object(u["withCtx"])(()=>[Object(u["createCommentVNode"])("\n Add an empty element to avoid render label,\n do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485\n "),n[2]||(n[2]=Object(u["createElementVNode"])("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):f.value&&e.node.checked?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:2,class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("prefix"))},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Check"]))]),_:1},8,["class"])):Object(u["createCommentVNode"])("v-if",!0),Object(u["createCommentVNode"])(" content "),Object(u["createVNode"])(Object(u["unref"])(tc),{node:e.node},null,8,["node"]),Object(u["createCommentVNode"])(" postfix "),f.value?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:3},[e.node.loading?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(a).is("loading"),Object(u["unref"])(a).e("postfix")])},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Loading"]))]),_:1},8,["class"])):(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:1,class:Object(u["normalizeClass"])(["arrow-right",Object(u["unref"])(a).e("postfix")])},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowRight"]))]),_:1},8,["class"]))],64))],42,nc))}}),oc=rc,ac=Object(u["defineComponent"])({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=Object(u["getCurrentInstance"])(),r=Object(g["d"])("cascader-menu"),{t:o}=Object(fr["b"])(),a=Object(ge["a"])();let i,s;const c=Object(u["inject"])(Zs),l=Object(u["ref"])(),d=Object(u["computed"])(()=>!t.nodes.length),p=Object(u["computed"])(()=>!c.initialLoaded),f=Object(u["computed"])(()=>`${a.value}-${t.index}`),h=e=>{i=e.target},m=e=>{if(c.isHoverMenu&&i&&l.value)if(i.contains(e.target)){var t;v();const o=n.vnode.el,{left:a}=o.getBoundingClientRect(),{offsetWidth:s,offsetHeight:c}=o,u=e.clientX-a,d=i.offsetTop,p=d+i.offsetHeight,f=(null===(t=o.querySelector("."+r.e("wrap")))||void 0===t?void 0:t.scrollTop)||0;l.value.innerHTML=`\n <path style="pointer-events: auto;" fill="transparent" d="M${u} ${d} L${s} ${f} V${d} Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M${u} ${p} L${s} ${c+f} V${p} Z" />\n `}else s||(s=qe()(_,c.config.hoverThreshold))},v=()=>{s&&(clearTimeout(s),s=void 0)},_=()=>{l.value&&(l.value.innerHTML="",v())};return(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Rn),{key:f.value,tag:"ul",role:"menu",class:Object(u["normalizeClass"])(Object(u["unref"])(r).b()),"wrap-class":Object(u["unref"])(r).e("wrap"),"view-class":[Object(u["unref"])(r).e("list"),Object(u["unref"])(r).is("empty",d.value)],onMousemove:m,onMouseleave:_},{default:Object(u["withCtx"])(()=>{var n;return[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.nodes,e=>(Object(u["openBlock"])(),Object(u["createBlock"])(oc,{key:e.uid,node:e,"menu-id":f.value,onExpand:h},null,8,["node","menu-id"]))),128)),p.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("empty-text"))},[Object(u["createVNode"])(Object(u["unref"])(k["a"]),{size:"14",class:Object(u["normalizeClass"])(Object(u["unref"])(r).is("loading"))},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Loading"]))]),_:1},8,["class"]),Object(u["createTextVNode"])(" "+Object(u["toDisplayString"])(Object(u["unref"])(o)("el.cascader.loading")),1)],2)):d.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("empty-text"))},[Object(u["renderSlot"])(t.$slots,"empty",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(Object(u["unref"])(o)("el.cascader.noData")),1)])],2)):null!==(n=Object(u["unref"])(c))&&void 0!==n&&n.isHoverMenu?(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:2},[Object(u["createCommentVNode"])(" eslint-disable vue/html-self-closing "),(Object(u["openBlock"])(),Object(u["createElementBlock"])("svg",{ref_key:"hoverZone",ref:l,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("hover-zone"))},null,2))],2112)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createCommentVNode"])(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}),ic=ac;let sc=0;const cc=e=>{const t=[e];let{parent:n}=e;while(n)t.unshift(n),n=n.parent;return t};var lc=class e{constructor(t,n,r,o=!1){var a;this.data=t,this.config=n,this.parent=r,this.root=o,this.uid=sc++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:s,children:c}=n,l=t[c],u=cc(this);this.level=o?0:r?r.level+1:1,this.value=t[i],this.label=t[s],this.pathNodes=u,this.pathValues=J()(u).call(u,e=>e.value),this.pathLabels=J()(u).call(u,e=>e.label),this.childrenData=l,this.children=J()(a=l||[]).call(a,t=>new e(t,n,this)),this.loaded=!n.lazy||this.isLeaf||!Object(h["c"])(l),this.text=""}get isDisabled(){const{data:e,parent:t,config:n}=this,{disabled:r,checkStrictly:o}=n;return(Object(te["isFunction"])(r)?r(e,this):!!e[r])||!o&&!(null===t||void 0===t||!t.isDisabled)}get isLeaf(){const{data:e,config:t,childrenData:n,loaded:r}=this,{lazy:o,leaf:a}=t,i=Object(te["isFunction"])(a)?a(e,this):e[a];return Object(h["g"])(i)?!(o&&!r)&&!(Object(te["isArray"])(n)&&n.length):!!i}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,o=new e(t,this.config,this);return Object(te["isArray"])(n)?n.push(t):this.childrenData=[t],r.push(o),o}calcText(e,t){const n=e?this.pathLabels.join(t):this.label;return this.text=n,n}broadcast(e){var t;Y()(t=this.children).call(t,t=>{var n;t&&(t.broadcast(e),null===(n=t.onParentCheck)||void 0===n||n.call(t,e))})}emit(){const{parent:e}=this;var t;e&&(null===(t=e.onChildCheck)||void 0===t||t.call(e),e.emit())}onParentCheck(e){this.isDisabled||this.setCheckState(e)}onChildCheck(){const{children:e}=this,t=K()(e).call(e,e=>!e.isDisabled),n=!!t.length&&Ht()(t).call(t,e=>e.checked);this.setCheckState(n)}setCheckState(e){var t,n,r;const o=this.children.length,a=fa()(t=this.children).call(t,(e,t)=>e+(t.checked?1:t.indeterminate?.5:0),0);this.checked=this.loaded&&Ht()(n=K()(r=this.children).call(r,e=>!e.isDisabled)).call(n,e=>e.loaded&&e.checked)&&e,this.indeterminate=this.loaded&&a!==o&&a>0}doCheck(e){if(this.checked===e)return;const{checkStrictly:t,multiple:n}=this.config;t||!n?this.checked=e:(this.broadcast(e),this.setCheckState(e),this.emit())}};const uc=(e,t)=>fa()(e).call(e,(e,n)=>(n.isLeaf?e.push(n):(!t&&e.push(n),e=No()(e).call(e,uc(n.children,t))),e),[]);var dc=class{constructor(e,t){var n;this.config=t;const r=J()(n=e||[]).call(n,e=>new lc(e,this.config));this.nodes=r,this.allNodes=uc(r,!1),this.leafNodes=uc(r,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new lc(e,this.config);t||this.nodes.push(n),this.appendAllNodesAndLeafNodes(n)}appendNodes(e,t){e.length>0?Y()(e).call(e,e=>this.appendNode(e,t)):t&&t.isLeaf&&this.leafNodes.push(t)}appendAllNodesAndLeafNodes(e){var t;this.allNodes.push(e),e.isLeaf&&this.leafNodes.push(e),e.children&&Y()(t=e.children).call(t,e=>{this.appendAllNodesAndLeafNodes(e)})}getNodeByValue(e,t=!1){var n;return Object(h["e"])(e)?null:La()(n=this.getFlattedNodes(t)).call(n,t=>Object(ne["isEqual"])(t.value,e)||Object(ne["isEqual"])(t.pathValues,e))||null}getSameNode(e){var t;return e&&La()(t=this.getFlattedNodes(!1)).call(t,({value:t,level:n})=>Object(ne["isEqual"])(e.value,t)&&e.level===n)||null}};const pc=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},fc=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():Object(wt["e"])(e)&&e.click()},hc=(e,t)=>{const n=It()(t).call(t,0),r=J()(n).call(n,e=>e.uid),o=fa()(e).call(e,(e,t)=>{const o=B()(r).call(r,t.uid);return o>-1&&(e.push(t),U()(n).call(n,o,1),U()(r).call(r,o,1)),e},[]);return o.push(...n),o};var mc=Object(u["defineComponent"])({name:"ElCascaderPanel",__name:"index",props:$s,emits:Xs,setup(e,{expose:t,emit:n}){const r=e,a=n;let i=!1;const c=Object(g["d"])("cascader"),l=Qs(r),d=Object(u["useSlots"])();let p;const f=Object(u["ref"])(!0),m=Object(u["ref"])(!1),v=Object(u["ref"])([]),b=Object(u["ref"])(),y=Object(u["ref"])([]),O=Object(u["ref"])(),M=Object(u["ref"])([]),k=Object(u["computed"])(()=>"hover"===l.value.expandTrigger),C=Object(u["computed"])(()=>r.renderLabel||d.default),w=()=>{const{options:e}=r,t=l.value;i=!1,p=new dc(e,t),y.value=[p.getNodes()],t.lazy&&Object(h["c"])(r.options)?(f.value=!1,S(void 0,e=>{e&&(p=new dc(e,t),y.value=[p.getNodes()]),f.value=!0,N(!1,!0)})):N(!1,!0)},S=(e,t)=>{const n=l.value;e=e||new lc({},n,void 0,!0),e.loading=!0;const r=n=>{var r;const o=e,a=o.root?null:o;o.loading=!1,o.loaded=!0,o.childrenData=o.childrenData||[],n&&(null===(r=p)||void 0===r||r.appendNodes(n,a)),n&&(null===t||void 0===t||t(n)),0===e.level&&(m.value=!0)},o=()=>{e.loading=!1,e.loaded=!1,0===e.level&&(f.value=!0)};n.lazyLoad(e,r,o)},T=(e,t)=>{var n,r,o;const{level:i}=e,s=It()(n=y.value).call(n,0,i);let c;e.isLeaf?c=e.pathNodes[i-2]:(c=e,s.push(e.children)),(null===(r=O.value)||void 0===r?void 0:r.uid)!==(null===(o=c)||void 0===o?void 0:o.uid)&&(O.value=e,y.value=s,!t&&a("expand-change",(null===e||void 0===e?void 0:e.pathValues)||[]))},I=(e,t,n=!0)=>{const{checkStrictly:r,multiple:o}=l.value,s=M.value[0];i=!0,!o&&(null===s||void 0===s||s.doCheck(!1)),e.doCheck(t),A(),n&&!o&&!r&&a("close"),!n&&!o&&E(e)},E=e=>{e&&(e=e.parent,E(e),e&&T(e))},j=e=>{var t;return null===(t=p)||void 0===t?void 0:t.getFlattedNodes(e)},D=e=>{var t;return null===(t=j(e))||void 0===t?void 0:K()(t).call(t,({checked:e})=>!1!==e)},L=()=>{var e,t;Y()(e=M.value).call(e,e=>e.doCheck(!1)),A(),y.value=It()(t=y.value).call(t,0,1),O.value=void 0,a("expand-change",[])},A=()=>{var e;const{checkStrictly:t,multiple:n}=l.value,r=M.value,o=hc(r,D(!t)),a=J()(o).call(o,e=>e.valueByOption);M.value=o,b.value=n?a:null!==(e=a[0])&&void 0!==e?e:null},N=(e=!1,t=!1)=>{const{modelValue:n}=r,{lazy:o,multiple:a,checkStrictly:s}=l.value,c=!s;if(f.value&&!i&&(t||!Object(ne["isEqual"])(n,b.value)))if(o&&!e){var u,d;const e=K()(u=J()(d=Yt(Object(ne["flattenDeep"])(qt(n)))).call(d,e=>{var t;return null===(t=p)||void 0===t?void 0:t.getNodeByValue(e)})).call(u,e=>!!e&&!e.loaded&&!e.loading);e.length?Y()(e).call(e,e=>{S(e,()=>N(!1,t))}):N(!0,t)}else{var h;R(Yt(J()(h=a?qt(n):[n]).call(h,e=>{var t;return null===(t=p)||void 0===t?void 0:t.getNodeByValue(e,c)})),t),b.value=Object(ne["cloneDeep"])(null!==n&&void 0!==n?n:void 0)}},R=(e,t=!0)=>{var n,r,o;const{checkStrictly:a}=l.value,i=M.value,s=K()(e).call(e,e=>!!e&&(a||e.isLeaf)),c=null===(n=p)||void 0===n?void 0:n.getSameNode(O.value),d=t&&c||s[0];d?Y()(r=d.pathNodes).call(r,e=>T(e,!0)):O.value=void 0,Y()(i).call(i,e=>e.doCheck(!1)),Y()(o=Object(u["reactive"])(s)).call(o,e=>e.doCheck(!0)),M.value=s,Object(u["nextTick"])(x)},x=()=>{var e;_["isClient"]&&Y()(e=v.value).call(e,e=>{const t=null===e||void 0===e?void 0:e.$el;if(t){const e=t.querySelector(`.${c.namespace.value}-scrollbar__wrap`);let n=t.querySelector(`.${c.b("node")}.in-active-path`);if(!n){const e=t.querySelectorAll(`.${c.b("node")}.${c.is("active")}`);n=e[e.length-1]}Object(s["f"])(e,n)}})},P=e=>{const t=e.target,n=Object(St["b"])(e);switch(n){case vt["a"].up:case vt["a"].down:e.preventDefault(),Object(wt["b"])(Object(wt["c"])(t,n===vt["a"].up?-1:1,`.${c.b("node")}[tabindex="-1"]`));break;case vt["a"].left:{var r;e.preventDefault();const n=null===(r=v.value[pc(t)-1])||void 0===r?void 0:r.$el.querySelector(`.${c.b("node")}[aria-expanded="true"]`);Object(wt["b"])(n);break}case vt["a"].right:{var o;e.preventDefault();const n=null===(o=v.value[pc(t)+1])||void 0===o?void 0:o.$el.querySelector(`.${c.b("node")}[tabindex="-1"]`);Object(wt["b"])(n);break}case vt["a"].enter:case vt["a"].numpadEnter:fc(t);break}};Object(u["provide"])(Zs,Object(u["reactive"])({config:l,expandingNode:O,checkedNodes:M,isHoverMenu:k,initialLoaded:f,renderLabelFn:C,lazyLoad:S,expandNode:T,handleCheckChange:I})),Object(u["watch"])(l,(e,t)=>{Object(ne["isEqual"])(e,t)||w()},{immediate:!0}),Object(u["watch"])(()=>r.options,w,{deep:!0}),Object(u["watch"])(()=>r.modelValue,()=>{i=!1,N()},{deep:!0}),Object(u["watch"])(()=>b.value,e=>{Object(ne["isEqual"])(e,r.modelValue)||(a(o["c"],e),a(o["a"],e))});const U=()=>{m.value||w()};return Object(u["onBeforeUpdate"])(()=>v.value=[]),Object(u["onMounted"])(()=>!Object(h["c"])(r.modelValue)&&N()),t({menuList:v,menus:y,checkedNodes:M,handleKeyDown:P,handleCheckChange:I,getFlattedNodes:j,getCheckedNodes:D,clearCheckedNodes:L,calculateCheckedValue:A,scrollToExpandingNode:x,loadLazyRootNodes:U}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(c).b("panel"),Object(u["unref"])(c).is("bordered",e.border)]),onKeydown:P},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(y.value,(e,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(ic,{key:n,ref_for:!0,ref:e=>v.value[n]=e,index:n,nodes:[...e]},{empty:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"empty")]),_:3},8,["index","nodes"]))),128))],34))}}),vc=mc;const gc=Object(r["a"])(vc),_c=Object(c["b"])({...Ws,size:Nr["c"],placeholder:String,disabled:{type:Boolean,default:void 0},clearable:Boolean,clearIcon:{type:S["e"],default:Fn["CircleClose"]},filterable:Boolean,filterMethod:{type:Object(c["c"])(Function),default:(e,t)=>{var n;return ue()(n=e.text).call(n,t)}},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:Boolean,maxCollapseTagsTooltipHeight:{type:[String,Number]},debounce:{type:Number,default:300},beforeFilter:{type:Object(c["c"])(Function),default:()=>!0},placement:{type:Object(c["c"])(String),values:ct["placements"],default:"bottom-start"},fallbackPlacements:{type:Object(c["c"])(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:mt.popperClass,popperStyle:mt.popperStyle,teleported:mt.teleported,effect:{type:Object(c["c"])(String),default:"light"},tagType:{...Ho.type,default:"info"},tagEffect:{...Ho.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},...Rr["c"]}),bc=e=>!0,yc={[o["c"]]:bc,[o["a"]]:bc,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Object(h["a"])(e),expandChange:e=>!!e,removeTag:e=>!!e},Oc=["placeholder"],Mc=["onClick"];var kc=Object(u["defineComponent"])({name:"ElCascader",__name:"cascader",props:_c,emits:yc,setup(e,{expose:t,emit:n}){const r={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:e})=>{var t;const{modifiersData:n,placement:r}=e;ue()(t=["right","left","bottom","top"]).call(t,r)||n.arrow&&(n.arrow.x=35)},requires:["arrow"]}]},i=e,s=n,c=Object(u["useAttrs"])(),l=Object(u["useSlots"])();let d=0,p=0;const f=Object(g["d"])("cascader"),h=Object(g["d"])("input"),m={small:7,default:11,large:15},{t:v}=Object(fr["b"])(),{formItem:b}=Object(Hr["a"])(),y=Object(ce["a"])(),{valueOnClear:O}=Object(Rr["b"])(i),{isComposing:M,handleComposition:C}=Object(Aa["a"])({afterComposition(e){var t;const n=null===(t=e.target)||void 0===t?void 0:t.value;Ne(n)}}),w=Object(u["ref"])(),S=Object(u["ref"])(),T=Object(u["ref"])(),I=Object(u["ref"])(),E=Object(u["ref"])(),j=Object(u["ref"])(),D=Object(u["ref"])(!1),L=Object(u["ref"])(!1),A=Object(u["ref"])(!1),N=Object(u["ref"])(""),R=Object(u["ref"])(""),x=Object(u["ref"])([]),P=Object(u["ref"])([]),U=Object(u["computed"])(()=>{var e;return i.props.multiple?i.collapseTags?It()(e=x.value).call(e,0,i.maxCollapseTags):x.value:[]}),V=Object(u["computed"])(()=>{var e;return i.props.multiple&&i.collapseTags?It()(e=x.value).call(e,i.maxCollapseTags):[]}),B=Object(u["computed"])(()=>c.style),F=Object(u["computed"])(()=>{var e;return null!==(e=i.placeholder)&&void 0!==e?e:v("el.cascader.placeholder")}),G=Object(u["computed"])(()=>R.value||x.value.length>0||M.value?"":F.value),H=Object(ce["b"])(),z=Object(u["computed"])(()=>"small"===H.value?"small":"default"),q=Object(u["computed"])(()=>!!i.props.multiple),W=Object(u["computed"])(()=>!i.filterable||q.value),$=Object(u["computed"])(()=>q.value?R.value:N.value),X=Object(u["computed"])(()=>{var e;return(null===(e=E.value)||void 0===e?void 0:e.checkedNodes)||[]}),{wrapperRef:Q,isFocused:Z,handleBlur:ee}=Object(Gr["a"])(T,{disabled:y,beforeBlur(e){var t,n;return(null===(t=w.value)||void 0===t?void 0:t.isFocusInsideContent(e))||(null===(n=S.value)||void 0===n?void 0:n.isFocusInsideContent(e))},afterBlur(){var e;i.validateEvent&&(null===b||void 0===b||null===(e=b.validate)||void 0===e||e.call(b,"blur").catch(e=>Object(a["a"])(e)))}}),re=Object(u["computed"])(()=>!(!i.clearable||y.value||A.value||!L.value&&!Z.value)&&!!X.value.length),oe=Object(u["computed"])(()=>{const{showAllLevels:e,separator:t}=i,n=X.value;return n.length?q.value?"":n[0].calcText(e,t):""}),ae=Object(u["computed"])(()=>(null===b||void 0===b?void 0:b.validateState)||""),ie=Object(u["computed"])({get(){return Object(ne["cloneDeep"])(i.modelValue)},set(e){const t=null!==e&&void 0!==e?e:O.value;s(o["c"],t),s(o["a"],t),i.validateEvent&&(null===b||void 0===b||b.validate("change").catch(e=>Object(a["a"])(e)))}}),se=Object(u["computed"])(()=>[f.b(),f.m(H.value),f.is("disabled",y.value),c.class]),le=Object(u["computed"])(()=>[h.e("icon"),"icon-arrow-down",f.is("reverse",D.value)]),de=Object(u["computed"])(()=>f.is("focus",Z.value)),pe=Object(u["computed"])(()=>{var e;return null===(e=w.value)||void 0===e||null===(e=e.popperRef)||void 0===e?void 0:e.contentRef}),fe=e=>{Z.value&&ee(new FocusEvent("blur",e)),he(!1)},he=e=>{var t;y.value||(e=null!==e&&void 0!==e?e:!D.value,e!==D.value&&(D.value=e,null===(t=T.value)||void 0===t||null===(t=t.input)||void 0===t||t.setAttribute("aria-expanded",""+e),e?(me(),E.value&&Object(u["nextTick"])(E.value.scrollToExpandingNode)):i.filterable&&Ee(),s("visibleChange",e)))},me=()=>{Object(u["nextTick"])(()=>{var e;null===(e=w.value)||void 0===e||e.updatePopper()})},ve=()=>{A.value=!1},ge=e=>{const{showAllLevels:t,separator:n}=i;return{node:e,key:e.uid,text:e.calcText(t,n),hitState:!1,closable:!y.value&&!e.isDisabled}},_e=e=>{var t;const n=e.node;n.doCheck(!1),null===(t=E.value)||void 0===t||t.calculateCheckedValue(),s("removeTag",n.valueByOption)},be=()=>{switch(i.showCheckedStrategy){case"child":return X.value;case"parent":{const e=we(!1),t=J()(e).call(e,e=>e.value);return K()(e).call(e,e=>!e.parent||!ue()(t).call(t,e.parent.value))}default:return[]}},ye=()=>{if(!q.value)return;const e=be(),t=[];Y()(e).call(e,e=>t.push(ge(e))),x.value=t},Me=()=>{var e,t;const{filterMethod:n,showAllLevels:r,separator:o}=i,a=null===(e=E.value)||void 0===e||null===(e=e.getFlattedNodes(!i.props.checkStrictly))||void 0===e?void 0:K()(e).call(e,e=>!e.isDisabled&&(e.calcText(r,o),n(e,$.value)));q.value&&Y()(t=x.value).call(t,e=>{e.hitState=!1}),A.value=!0,P.value=a,me()},ke=()=>{var e;let t;t=A.value&&j.value?j.value.$el.querySelector("."+f.e("suggestion-item")):null===(e=E.value)||void 0===e?void 0:e.$el.querySelector(`.${f.b("node")}[tabindex="-1"]`),t&&(t.focus(),!A.value&&t.click())},Ce=()=>{var e,t;const n=null===(e=T.value)||void 0===e?void 0:e.input,r=I.value,o=null===(t=j.value)||void 0===t?void 0:t.$el;if(_["isClient"]&&n){if(o){const e=o.querySelector("."+f.e("suggestion-list"));e.style.minWidth=n.offsetWidth+"px"}if(r){const{offsetHeight:e}=r,t=x.value.length>0?Math.max(e,d)-2+"px":d+"px";if(n.style.height=t,l.prefix){var a;const e=null===(a=T.value)||void 0===a?void 0:a.$el.querySelector("."+h.e("prefix"));let t=0;e&&(t=e.offsetWidth,t>0&&(t+=m[H.value||"default"])),r.style.left=t+"px"}else r.style.left="0";me()}}},we=e=>{var t;return null===(t=E.value)||void 0===t?void 0:t.getCheckedNodes(e)},Se=e=>{me(),s("expandChange",e)},Te=e=>{if(!M.value)switch(Object(St["b"])(e)){case vt["a"].enter:case vt["a"].numpadEnter:he();break;case vt["a"].down:he(!0),Object(u["nextTick"])(ke),e.preventDefault();break;case vt["a"].esc:!0===D.value&&(e.preventDefault(),e.stopPropagation(),he(!1));break;case vt["a"].tab:he(!1);break}},Ie=()=>{var e;null===(e=E.value)||void 0===e||e.clearCheckedNodes(),!D.value&&i.filterable&&Ee(),he(!1),s("clear")},Ee=()=>{const{value:e}=oe;N.value=e,R.value=e},je=e=>{var t;const{checked:n}=e;var r;q.value?null===(t=E.value)||void 0===t||t.handleCheckChange(e,!n,!1):(!n&&(null===(r=E.value)||void 0===r||r.handleCheckChange(e,!0,!1)),he(!1))},De=e=>{const t=e.target,n=Object(St["b"])(e);switch(n){case vt["a"].up:case vt["a"].down:e.preventDefault(),Object(wt["b"])(Object(wt["c"])(t,n===vt["a"].up?-1:1,`.${f.e("suggestion-item")}[tabindex="-1"]`));break;case vt["a"].enter:case vt["a"].numpadEnter:t.click();break}},Le=()=>{const e=x.value[x.value.length-1];p=R.value?0:p+1,!e||!p||i.collapseTags&&x.value.length>1||(e.hitState?_e(e):e.hitState=!0)},Ae=Object(_["useDebounceFn"])(()=>{const{value:e}=$;if(!e)return;const t=i.beforeFilter(e);Object(te["isPromise"])(t)?t.then(Me).catch(()=>{}):!1!==t?Me():ve()},Object(u["computed"])(()=>i.debounce)),Ne=(e,t)=>{!D.value&&he(!0),null!==t&&void 0!==t&&t.isComposing||(e?Ae():ve())},Re=e=>Oe()(Object(_["useCssVar"])(h.cssVarName("input-height"),e).value)-2,xe=()=>{var e;null===(e=T.value)||void 0===e||e.focus()},Pe=()=>{var e;null===(e=T.value)||void 0===e||e.blur()};return Object(u["watch"])(A,me),Object(u["watch"])([X,y,()=>i.collapseTags,()=>i.maxCollapseTags],ye),Object(u["watch"])(x,()=>{Object(u["nextTick"])(()=>Ce())}),Object(u["watch"])(H,async()=>{await Object(u["nextTick"])();const e=T.value.input;d=Re(e)||d,Ce()}),Object(u["watch"])(oe,Ee,{immediate:!0}),Object(u["watch"])(()=>D.value,e=>{var t;e&&i.props.lazy&&i.props.lazyLoad&&(null===(t=E.value)||void 0===t||t.loadLazyRootNodes())}),Object(u["onMounted"])(()=>{const e=T.value.input,t=Re(e);d=e.offsetHeight||t,Object(_["useResizeObserver"])(e,Ce)}),t({getCheckedNodes:we,cascaderPanelRef:E,togglePopperVisible:he,contentRef:pe,presentText:oe,focus:xe,blur:Pe}),(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(vn),{ref_key:"tooltipRef",ref:w,visible:D.value,teleported:e.teleported,"popper-class":[Object(u["unref"])(f).e("dropdown"),e.popperClass],"popper-style":e.popperStyle,"popper-options":r,"fallback-placements":e.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:e.placement,transition:Object(u["unref"])(f).namespace.value+"-zoom-in-top",effect:e.effect,pure:"",persistent:e.persistent,onHide:ve},{default:Object(u["withCtx"])(()=>[Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref_key:"wrapperRef",ref:Q,class:Object(u["normalizeClass"])(se.value),style:Object(u["normalizeStyle"])(B.value),onClick:n[8]||(n[8]=()=>he(!W.value||void 0)),onKeydown:Te,onMouseenter:n[9]||(n[9]=e=>L.value=!0),onMouseleave:n[10]||(n[10]=e=>L.value=!1)},[Object(u["createVNode"])(Object(u["unref"])(gn["a"]),{ref_key:"inputRef",ref:T,modelValue:N.value,"onUpdate:modelValue":n[1]||(n[1]=e=>N.value=e),placeholder:G.value,readonly:W.value,disabled:Object(u["unref"])(y),"validate-event":!1,size:Object(u["unref"])(H),class:Object(u["normalizeClass"])(de.value),tabindex:q.value&&e.filterable&&!Object(u["unref"])(y)?-1:void 0,onCompositionstart:Object(u["unref"])(C),onCompositionupdate:Object(u["unref"])(C),onCompositionend:Object(u["unref"])(C),onInput:Ne},Object(u["createSlots"])({suffix:Object(u["withCtx"])(()=>[re.value?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:"clear",class:Object(u["normalizeClass"])([Object(u["unref"])(h).e("icon"),"icon-circle-close"]),onClick:Object(u["withModifiers"])(Ie,["stop"])},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.clearIcon)))]),_:1},8,["class"])):(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:"arrow-down",class:Object(u["normalizeClass"])(le.value),onClick:n[0]||(n[0]=Object(u["withModifiers"])(e=>he(),["stop"]))},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowDown"]))]),_:1},8,["class"]))]),_:2},[t.$slots.prefix?{name:"prefix",fn:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),q.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,ref_key:"tagWrapper",ref:I,class:Object(u["normalizeClass"])([Object(u["unref"])(f).e("tags"),Object(u["unref"])(f).is("validate",Boolean(ae.value))])},[Object(u["renderSlot"])(t.$slots,"tag",{data:x.value,deleteTag:_e},()=>[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(U.value,t=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])($o),{key:t.key,type:e.tagType,size:z.value,effect:e.tagEffect,hit:t.hitState,closable:t.closable,"disable-transitions":"",onClose:e=>_e(t)},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("span",null,Object(u["toDisplayString"])(t.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),e.collapseTags&&x.value.length>e.maxCollapseTags?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(vn),{key:0,ref_key:"tagTooltipRef",ref:S,disabled:D.value||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,effect:e.effect,persistent:e.persistent},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])($o),{closable:!1,size:z.value,type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(f).e("tags-text"))}," + "+Object(u["toDisplayString"])(x.value.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect"])]),content:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Rn),{"max-height":e.maxCollapseTagsTooltipHeight},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(f).e("collapse-tags"))},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(V.value,(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:n,class:Object(u["normalizeClass"])(Object(u["unref"])(f).e("collapse-tag"))},[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])($o),{key:t.key,class:"in-tooltip",type:e.tagType,size:z.value,effect:e.tagEffect,hit:t.hitState,closable:t.closable,"disable-transitions":"",onClose:e=>_e(t)},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("span",null,Object(u["toDisplayString"])(t.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:1},8,["disabled","popper-class","popper-style","effect","persistent"])):Object(u["createCommentVNode"])("v-if",!0),e.filterable&&!Object(u["unref"])(y)?Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("input",{key:1,"onUpdate:modelValue":n[2]||(n[2]=e=>R.value=e),type:"text",class:Object(u["normalizeClass"])(Object(u["unref"])(f).e("search-input")),placeholder:oe.value?"":F.value,onInput:n[3]||(n[3]=e=>Ne(R.value,e)),onClick:n[4]||(n[4]=Object(u["withModifiers"])(e=>he(!0),["stop"])),onKeydown:Object(u["withKeys"])(Le,["delete"]),onCompositionstart:n[5]||(n[5]=(...e)=>Object(u["unref"])(C)&&Object(u["unref"])(C)(...e)),onCompositionupdate:n[6]||(n[6]=(...e)=>Object(u["unref"])(C)&&Object(u["unref"])(C)(...e)),onCompositionend:n[7]||(n[7]=(...e)=>Object(u["unref"])(C)&&Object(u["unref"])(C)(...e))},null,42,Oc)),[[u["vModelText"],R.value]]):Object(u["createCommentVNode"])("v-if",!0)],2)):Object(u["createCommentVNode"])("v-if",!0)],38)),[[Object(u["unref"])(ka),fe,pe.value]])]),content:Object(u["withCtx"])(()=>[t.$slots.header?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(f).e("header")),onClick:n[11]||(n[11]=Object(u["withModifiers"])(()=>{},["stop"]))},[Object(u["renderSlot"])(t.$slots,"header")],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["withDirectives"])(Object(u["createVNode"])(Object(u["unref"])(gc),{ref_key:"cascaderPanelRef",ref:E,modelValue:ie.value,"onUpdate:modelValue":n[12]||(n[12]=e=>ie.value=e),options:e.options,props:i.props,border:!1,"render-label":t.$slots.default,onExpandChange:Se,onClose:n[13]||(n[13]=e=>t.$nextTick(()=>he(!1)))},{empty:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"empty")]),_:3},8,["modelValue","options","props","render-label"]),[[u["vShow"],!A.value]]),e.filterable?Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Rn),{key:1,ref_key:"suggestionPanel",ref:j,tag:"ul",class:Object(u["normalizeClass"])(Object(u["unref"])(f).e("suggestion-panel")),"view-class":Object(u["unref"])(f).e("suggestion-list"),onKeydown:De},{default:Object(u["withCtx"])(()=>[P.value.length?(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],{key:0},Object(u["renderList"])(P.value,e=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{key:e.uid,class:Object(u["normalizeClass"])([Object(u["unref"])(f).e("suggestion-item"),Object(u["unref"])(f).is("checked",e.checked)]),tabindex:-1,onClick:t=>je(e)},[Object(u["renderSlot"])(t.$slots,"suggestion-item",{item:e},()=>[Object(u["createElementVNode"])("span",null,Object(u["toDisplayString"])(e.text),1),e.checked?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Check"]))]),_:1})):Object(u["createCommentVNode"])("v-if",!0)])],10,Mc))),128)):Object(u["renderSlot"])(t.$slots,"empty",{key:1},()=>[Object(u["createElementVNode"])("li",{class:Object(u["normalizeClass"])(Object(u["unref"])(f).e("empty-text"))},Object(u["toDisplayString"])(Object(u["unref"])(v)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[u["vShow"],A.value]]):Object(u["createCommentVNode"])("v-if",!0),t.$slots.footer?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:2,class:Object(u["normalizeClass"])(Object(u["unref"])(f).e("footer")),onClick:n[14]||(n[14]=Object(u["withModifiers"])(()=>{},["stop"]))},[Object(u["renderSlot"])(t.$slots,"footer")],2)):Object(u["createCommentVNode"])("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}}),Cc=kc;const wc=Object(r["a"])(Cc),Sc=Object(c["b"])({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),Tc={"update:checked":e=>Object(h["a"])(e),[o["a"]]:e=>Object(h["a"])(e)};var Ic=Object(u["defineComponent"])({name:"ElCheckTag",__name:"check-tag",props:Sc,emits:Tc,setup(e,{emit:t}){const n=e,r=t,a=Object(g["d"])("check-tag"),i=Object(u["computed"])(()=>[a.b(),a.is("checked",n.checked),a.is("disabled",n.disabled),a.m(n.type||"primary")]),s=()=>{if(n.disabled)return;const e=!n.checked;r(o["a"],e),r("update:checked",e)};return(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{class:Object(u["normalizeClass"])(i.value),onClick:s},[Object(u["renderSlot"])(e.$slots,"default")],2))}}),Ec=Ic;const jc=Object(r["a"])(Ec),Dc=["start","center","end","space-around","space-between","space-evenly"],Lc=["top","middle","bottom"],Ac=Object(c["b"])({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Dc,default:"start"},align:{type:String,values:Lc}}),Nc=xe()("rowContextKey");var Rc=Object(u["defineComponent"])({name:"ElRow",__name:"row",props:Ac,setup(e){const t=e,n=Object(g["d"])("row");Object(u["provide"])(Nc,{gutter:Object(u["computed"])(()=>t.gutter)});const r=Object(u["computed"])(()=>{const e={};return t.gutter?(e.marginRight=e.marginLeft=`-${t.gutter/2}px`,e):e}),o=Object(u["computed"])(()=>[n.b(),n.is("justify-"+t.justify,"start"!==t.justify),n.is("align-"+t.align,!!t.align)]);return(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.tag),{class:Object(u["normalizeClass"])(o.value),style:Object(u["normalizeStyle"])(r.value)},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"default")]),_:3},8,["class","style"]))}}),xc=Rc;const Pc=Object(r["a"])(xc);var Uc=n("8b9c"),Vc=n.n(Uc),Bc=n("f5f6");const Fc=Object(c["b"])({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:Object(c["c"])([Number,Object]),default:()=>Object(Bc["a"])({})},sm:{type:Object(c["c"])([Number,Object]),default:()=>Object(Bc["a"])({})},md:{type:Object(c["c"])([Number,Object]),default:()=>Object(Bc["a"])({})},lg:{type:Object(c["c"])([Number,Object]),default:()=>Object(Bc["a"])({})},xl:{type:Object(c["c"])([Number,Object]),default:()=>Object(Bc["a"])({})}});var Gc=Object(u["defineComponent"])({name:"ElCol",__name:"col",props:Fc,setup(e){const t=e,{gutter:n}=Object(u["inject"])(Nc,{gutter:Object(u["computed"])(()=>0)}),r=Object(g["d"])("col"),o=Object(u["computed"])(()=>{const e={};return n.value&&(e.paddingLeft=e.paddingRight=n.value/2+"px"),e}),a=Object(u["computed"])(()=>{var e,o;const a=[];return Y()(e=["span","offset","pull","push"]).call(e,e=>{const n=t[e];Object(h["d"])(n)&&("span"===e?a.push(r.b(""+t[e])):n>0&&a.push(r.b(`${e}-${t[e]}`)))}),Y()(o=["xs","sm","md","lg","xl"]).call(o,e=>{var n;Object(h["d"])(t[e])?a.push(r.b(`${e}-${t[e]}`)):Object(te["isObject"])(t[e])&&Y()(n=Vc()(t[e])).call(n,([t,n])=>{a.push("span"!==t?r.b(`${e}-${t}-${n}`):r.b(`${e}-${n}`))})}),n.value&&a.push(r.is("guttered")),[r.b(),a]});return(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.tag),{class:Object(u["normalizeClass"])(a.value),style:Object(u["normalizeStyle"])(o.value)},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"default")]),_:3},8,["class","style"]))}}),Hc=Gc;const Yc=Object(r["a"])(Hc);var zc=Object(u["defineComponent"])({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=Object(g["d"])("collapse-transition"),n=e=>{e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},r={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height&&(e.dataset.elExistsHeight=e.style.height),e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){requestAnimationFrame(()=>{e.dataset.oldOverflow=e.style.overflow,e.dataset.elExistsHeight?e.style.maxHeight=e.dataset.elExistsHeight:0!==e.scrollHeight?e.style.maxHeight=e.scrollHeight+"px":e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow="hidden"})},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},enterCancelled(e){n(e)},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=e.scrollHeight+"px",e.style.overflow="hidden"},leave(e){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){n(e)},leaveCancelled(e){n(e)}};return(e,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(u["Transition"],Object(u["mergeProps"])({name:Object(u["unref"])(t).b()},Object(u["toHandlers"])(r)),{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(e.$slots,"default")]),_:3},16,["name"]))}}),qc=zc;const Wc=Object(r["a"])(qc),Kc=e=>Object(h["d"])(e)||Object(te["isString"])(e)||Object(te["isArray"])(e),$c=Object(c["b"])({accordion:Boolean,modelValue:{type:Object(c["c"])([Array,String,Number]),default:()=>Object(Bc["a"])([])},expandIconPosition:{type:Object(c["c"])([String]),default:"right"},beforeCollapse:{type:Object(c["c"])(Function)}}),Jc={[o["c"]]:Kc,[o["a"]]:Kc},Xc=xe()("collapseContextKey"),Qc="ElCollapse",Zc=(e,t)=>{const n=Object(u["ref"])(Object(ne["castArray"])(e.modelValue)),r=r=>{n.value=r;const a=e.accordion?n.value[0]:n.value;t(o["c"],a),t(o["a"],a)},i=t=>{if(e.accordion)r([n.value[0]===t?"":t]);else{const e=[...n.value],o=B()(e).call(e,t);o>-1?U()(e).call(e,o,1):e.push(t),r(e)}},s=async t=>{var n;const{beforeCollapse:r}=e;if(!r)return void i(t);const o=r(t);ue()(n=[Object(te["isPromise"])(o),Object(h["a"])(o)]).call(n,!0)||Object(a["b"])(Qc,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),Object(te["isPromise"])(o)?o.then(e=>{!1!==e&&i(t)}).catch(e=>{Object(a["a"])(Qc,"some error occurred: "+e)}):o&&i(t)};return Object(u["watch"])(()=>e.modelValue,()=>n.value=Object(ne["castArray"])(e.modelValue),{deep:!0}),Object(u["provide"])(Xc,{activeNames:n,handleItemClick:s}),{activeNames:n,setActiveNames:r}},el=e=>{const t=Object(g["d"])("collapse");return{rootKls:Object(u["computed"])(()=>[t.b(),t.b("icon-position-"+e.expandIconPosition)])}};var tl=Object(u["defineComponent"])({name:"ElCollapse",__name:"collapse",props:$c,emits:Jc,setup(e,{expose:t,emit:n}){const r=e,{activeNames:o,setActiveNames:a}=Zc(r,n),{rootKls:i}=el(r);return t({activeNames:o,setActiveNames:a}),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(i))},[Object(u["renderSlot"])(e.$slots,"default")],2))}}),nl=tl;const rl=Object(c["b"])({title:{type:String,default:""},name:{type:Object(c["c"])([String,Number]),default:void 0},icon:{type:S["e"],default:Fn["ArrowRight"]},disabled:Boolean}),ol=e=>{const t=Object(u["inject"])(Xc),{namespace:n}=Object(g["d"])("collapse"),r=Object(u["ref"])(!1),o=Object(u["ref"])(!1),a=Object(ge["b"])(),i=Object(u["computed"])(()=>a.current++),s=Object(u["computed"])(()=>{var t;return null!==(t=e.name)&&void 0!==t?t:`${n.value}-id-${a.prefix}-${Object(u["unref"])(i)}`}),c=Object(u["computed"])(()=>{var e;return null===t||void 0===t?void 0:ue()(e=t.activeNames.value).call(e,Object(u["unref"])(s))}),l=()=>{qe()(()=>{o.value?o.value=!1:r.value=!0},50)},d=n=>{var a;e.disabled||null!==(a=n.target)&&void 0!==a&&a.closest("input, textarea, select")||(null===t||void 0===t||t.handleItemClick(Object(u["unref"])(s)),r.value=!1,o.value=!0)},p=e=>{var n;null!==(n=e.target)&&void 0!==n&&n.closest("input, textarea, select")||(e.preventDefault(),null===t||void 0===t||t.handleItemClick(Object(u["unref"])(s)))};return{focusing:r,id:i,isActive:c,handleFocus:l,handleHeaderClick:d,handleEnterClick:p}},al=(e,{focusing:t,isActive:n,id:r})=>{const o=Object(g["d"])("collapse"),a=Object(u["computed"])(()=>[o.b("item"),o.is("active",Object(u["unref"])(n)),o.is("disabled",e.disabled)]),i=Object(u["computed"])(()=>[o.be("item","header"),o.is("active",Object(u["unref"])(n)),{focusing:Object(u["unref"])(t)&&!e.disabled}]),s=Object(u["computed"])(()=>[o.be("item","arrow"),o.is("active",Object(u["unref"])(n))]);return{itemTitleKls:Object(u["computed"])(()=>[o.be("item","title")]),arrowKls:s,headKls:i,rootKls:a,itemWrapperKls:Object(u["computed"])(()=>o.be("item","wrap")),itemContentKls:Object(u["computed"])(()=>o.be("item","content")),scopedContentId:Object(u["computed"])(()=>o.b("content-"+Object(u["unref"])(r))),scopedHeadId:Object(u["computed"])(()=>o.b("head-"+Object(u["unref"])(r)))}},il=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],sl=["id","aria-hidden","aria-labelledby"];var cl=Object(u["defineComponent"])({name:"ElCollapseItem",__name:"collapse-item",props:rl,setup(e,{expose:t}){const n=e,{focusing:r,id:o,isActive:a,handleFocus:i,handleHeaderClick:s,handleEnterClick:c}=ol(n),{arrowKls:l,headKls:d,rootKls:p,itemTitleKls:f,itemWrapperKls:h,itemContentKls:m,scopedContentId:v,scopedHeadId:g}=al(n,{focusing:r,isActive:a,id:o});return t({isActive:a}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(p))},[Object(u["createElementVNode"])("div",{id:Object(u["unref"])(g),class:Object(u["normalizeClass"])(Object(u["unref"])(d)),"aria-expanded":Object(u["unref"])(a),"aria-controls":Object(u["unref"])(v),"aria-describedby":Object(u["unref"])(v),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"button",onClick:n[0]||(n[0]=(...e)=>Object(u["unref"])(s)&&Object(u["unref"])(s)(...e)),onKeydown:n[1]||(n[1]=Object(u["withKeys"])(Object(u["withModifiers"])((...e)=>Object(u["unref"])(c)&&Object(u["unref"])(c)(...e),["stop"]),["space","enter"])),onFocus:n[2]||(n[2]=(...e)=>Object(u["unref"])(i)&&Object(u["unref"])(i)(...e)),onBlur:n[3]||(n[3]=e=>r.value=!1)},[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(f))},[Object(u["renderSlot"])(t.$slots,"title",{isActive:Object(u["unref"])(a)},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.title),1)])],2),Object(u["renderSlot"])(t.$slots,"icon",{isActive:Object(u["unref"])(a)},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),{class:Object(u["normalizeClass"])(Object(u["unref"])(l))},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.icon)))]),_:1},8,["class"])])],42,il),Object(u["createVNode"])(Object(u["unref"])(Wc),null,{default:Object(u["withCtx"])(()=>[Object(u["withDirectives"])(Object(u["createElementVNode"])("div",{id:Object(u["unref"])(v),role:"region",class:Object(u["normalizeClass"])(Object(u["unref"])(h)),"aria-hidden":!Object(u["unref"])(a),"aria-labelledby":Object(u["unref"])(g)},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(m))},[Object(u["renderSlot"])(t.$slots,"default")],2)],10,sl),[[u["vShow"],Object(u["unref"])(a)]])]),_:3})],2))}}),ll=cl;const ul=Object(r["a"])(nl,{CollapseItem:ll}),dl=Object(r["d"])(ll),pl=Object(c["b"])({modelValue:{type:Object(c["c"])(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:{type:Object(c["c"])(String)},disabled:Boolean,predefine:{type:Object(c["c"])(Array)},validateEvent:{type:Boolean,default:!0},hueSliderClass:{type:Object(c["c"])([String,Array,Object])},hueSliderStyle:{type:Object(c["c"])([String,Array,Object])}}),fl={[o["c"]]:e=>Object(te["isString"])(e)||Object(ne["isNil"])(e)},hl=xe()("colorCommonPickerKey"),ml=xe()("colorPickerPanelContextKey"),vl=Object(c["b"])({color:{type:Object(c["c"])(Object),required:!0},vertical:Boolean,disabled:Boolean}),gl=vl,_l=e=>{let t=0,n=e;while(n)t+=n.offsetTop,n=n.offsetParent;return t},bl=(e,t)=>Math.abs(_l(e)-_l(t)),yl=e=>{var t;let n,r;return"touchend"===e.type?(r=e.changedTouches[0].clientY,n=e.changedTouches[0].clientX):Fr()(t=e.type).call(t,"touch")?(r=e.touches[0].clientY,n=e.touches[0].clientX):(r=e.clientY,n=e.clientX),{clientX:n,clientY:r}};let Ol=!1;function Ml(e,t){if(!_["isClient"])return;const n=function(e){var n;null===(n=t.drag)||void 0===n||n.call(t,e)},r=function(e){var o;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,Ol=!1,null===(o=t.end)||void 0===o||o.call(t,e)},o=function(e){var o;Ol||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),Ol=!0,null===(o=t.start)||void 0===o||o.call(t,e))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o,{passive:!1})}const kl=(e,{key:t,minValue:n,maxValue:r})=>{const o=Object(u["getCurrentInstance"])(),a=Object(u["shallowRef"])(),i=Object(u["shallowRef"])(),s=Object(u["computed"])(()=>e.color.get(t));function c(t){var n;e.disabled||(t.target!==a.value&&l(t),null===(n=a.value)||void 0===n||n.focus())}function l(n){if(!i.value||!a.value||e.disabled)return;const s=o.vnode.el.getBoundingClientRect(),{clientX:c,clientY:l}=yl(n);let u;if(e.vertical){let e=l-s.top;e=Math.max(a.value.offsetHeight/2,e),e=Math.min(e,s.height-a.value.offsetHeight/2),u=Math.round((e-a.value.offsetHeight/2)/(s.height-a.value.offsetHeight)*r)}else{let e=c-s.left;e=Math.max(a.value.offsetWidth/2,e),e=Math.min(e,s.width-a.value.offsetWidth/2),u=Math.round((e-a.value.offsetWidth/2)/(s.width-a.value.offsetWidth)*r)}e.color.set(t,u)}function d(o){if(e.disabled)return;const{shiftKey:a}=o,i=Object(St["b"])(o),s=a?10:1,c="hue"===t?-1:1;let l=!0;switch(i){case vt["a"].left:case vt["a"].down:p(-s*c);break;case vt["a"].right:case vt["a"].up:p(s*c);break;case vt["a"].home:e.color.set(t,"hue"===t?r:n);break;case vt["a"].end:e.color.set(t,"hue"===t?n:r);break;case vt["a"].pageDown:p(-4*c);break;case vt["a"].pageUp:p(4*c);break;default:l=!1;break}l&&o.preventDefault()}function p(o){let a=s.value+o;a=a<n?n:a>r?r:a,e.color.set(t,a)}return{thumb:a,bar:i,currentValue:s,handleDrag:l,handleClick:c,handleKeydown:d}},Cl=(e,{namespace:t,maxValue:n,bar:r,thumb:o,currentValue:a,handleDrag:s,getBackground:c})=>{const l=Object(u["getCurrentInstance"])(),d=Object(g["d"])(t),p=Object(u["ref"])(0),f=Object(u["ref"])(0),h=Object(u["ref"])();function m(){if(!o.value)return 0;if(e.vertical)return 0;const t=l.vnode.el,r=a.value;return t?Math.round(r*(t.offsetWidth-o.value.offsetWidth/2)/n):0}function v(){if(!o.value)return 0;const t=l.vnode.el;if(!e.vertical)return 0;const r=a.value;return t?Math.round(r*(t.offsetHeight-o.value.offsetHeight/2)/n):0}function _(){p.value=m(),f.value=v(),h.value=null===c||void 0===c?void 0:c()}Object(u["onMounted"])(()=>{if(!r.value||!o.value)return;const e={drag:e=>{s(e)},end:e=>{s(e)}};Ml(r.value,e),Ml(o.value,e),_()}),Object(u["watch"])(a,()=>_()),Object(u["watch"])(()=>e.color.value,()=>_());const b=Object(u["computed"])(()=>[d.b(),d.is("vertical",e.vertical),d.is("disabled",e.disabled)]),y=Object(u["computed"])(()=>d.e("bar")),O=Object(u["computed"])(()=>d.e("thumb"));return{rootKls:b,barKls:y,barStyle:Object(u["computed"])(()=>({background:h.value})),thumbKls:O,thumbStyle:Object(u["computed"])(()=>({left:Object(i["b"])(p.value),top:Object(i["b"])(f.value)})),thumbLeft:p,thumbTop:f,update:_}},wl=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],Sl=0,Tl=100;var Il=Object(u["defineComponent"])({name:"ElColorAlphaSlider",__name:"alpha-slider",props:vl,setup(e,{expose:t}){const n=e,{currentValue:r,bar:o,thumb:a,handleDrag:i,handleClick:s,handleKeydown:c}=kl(n,{key:"alpha",minValue:Sl,maxValue:Tl}),{rootKls:l,barKls:d,barStyle:p,thumbKls:f,thumbStyle:h,update:m}=Cl(n,{namespace:"color-alpha-slider",maxValue:Tl,currentValue:r,bar:o,thumb:a,handleDrag:i,getBackground:b}),{t:v}=Object(fr["b"])(),g=Object(u["computed"])(()=>v("el.colorpicker.alphaLabel")),_=Object(u["computed"])(()=>v("el.colorpicker.alphaDescription",{alpha:r.value,color:n.color.value}));function b(){if(n.color&&n.color.value){const{r:e,g:t,b:r}=n.color.toRgb();return`linear-gradient(to right, rgba(${e}, ${t}, ${r}, 0) 0%, rgba(${e}, ${t}, ${r}, 1) 100%)`}return""}return t({update:m,bar:o,thumb:a}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(l))},[Object(u["createElementVNode"])("div",{ref_key:"bar",ref:o,class:Object(u["normalizeClass"])(Object(u["unref"])(d)),style:Object(u["normalizeStyle"])(Object(u["unref"])(p)),onClick:n[0]||(n[0]=(...e)=>Object(u["unref"])(s)&&Object(u["unref"])(s)(...e))},null,6),Object(u["createElementVNode"])("div",{ref_key:"thumb",ref:a,class:Object(u["normalizeClass"])(Object(u["unref"])(f)),style:Object(u["normalizeStyle"])(Object(u["unref"])(h)),"aria-label":g.value,"aria-valuenow":Object(u["unref"])(r),"aria-valuetext":_.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":Sl,"aria-valuemax":Tl,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:n[1]||(n[1]=(...e)=>Object(u["unref"])(c)&&Object(u["unref"])(c)(...e))},null,46,wl)],2))}}),El=Il;const jl=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],Dl=0,Ll=360;var Al=Object(u["defineComponent"])({name:"ElColorHueSlider",__name:"hue-slider",props:gl,setup(e,{expose:t}){const n=e,{currentValue:r,bar:o,thumb:a,handleDrag:i,handleClick:s,handleKeydown:c}=kl(n,{key:"hue",minValue:Dl,maxValue:Ll}),{rootKls:l,barKls:d,thumbKls:p,thumbStyle:f,thumbTop:h,update:m}=Cl(n,{namespace:"color-hue-slider",maxValue:Ll,currentValue:r,bar:o,thumb:a,handleDrag:i}),{t:v}=Object(fr["b"])(),g=Object(u["computed"])(()=>v("el.colorpicker.hueLabel")),_=Object(u["computed"])(()=>v("el.colorpicker.hueDescription",{hue:r.value,color:n.color.value}));return t({bar:o,thumb:a,thumbTop:h,update:m}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(l))},[Object(u["createElementVNode"])("div",{ref_key:"bar",ref:o,class:Object(u["normalizeClass"])(Object(u["unref"])(d)),onClick:n[0]||(n[0]=(...e)=>Object(u["unref"])(s)&&Object(u["unref"])(s)(...e))},null,2),Object(u["createElementVNode"])("div",{ref_key:"thumb",ref:a,class:Object(u["normalizeClass"])(Object(u["unref"])(p)),style:Object(u["normalizeStyle"])(Object(u["unref"])(f)),"aria-label":g.value,"aria-valuenow":Object(u["unref"])(r),"aria-valuetext":_.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":Dl,"aria-valuemax":Ll,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:n[1]||(n[1]=(...e)=>Object(u["unref"])(c)&&Object(u["unref"])(c)(...e))},null,46,jl)],2))}}),Nl=Al;const Rl=Object(c["b"])({colors:{type:Object(c["c"])(Array),required:!0},color:{type:Object(c["c"])(Object),required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean});var xl=n("c741"),Pl=class{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new xl["TinyColor"],this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const t in e)Object(te["hasOwn"])(e,t)&&(this[t]=e[t]);e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(1!==arguments.length||"object"!==typeof e)this["_"+e]=t,this._isValid=!0,this.doOnChange();else for(const n in e)Object(te["hasOwn"])(e,n)&&this.set(n,e[n])}get(e){var t;return ue()(t=["hue","saturation","value","alpha"]).call(t,e)?Math.round(this["_"+e]):this["_"+e]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(e){const t=new xl["TinyColor"](e);if(this._isValid=t.isValid,t.isValid){const{h:e,s:n,v:r,a:o}=t.toHsv();this._hue=e,this._saturation=100*n,this._value=100*r,this._alpha=100*o}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}clear(){this._isValid=!1,this.value="",this._hue=0,this._saturation=100,this._value=100,this._alpha=100}compare(e){const t=new xl["TinyColor"]({h:e._hue,s:e._saturation/100,v:e._value/100,a:e._alpha/100});return this._tiny.equals(t)}doOnChange(){const{_hue:e,_saturation:t,_value:n,_alpha:r,format:o,enableAlpha:a}=this;let i=o||(a?"rgb":"hex");"hex"===o&&a&&(i="hex8"),this._tiny=new xl["TinyColor"]({h:e,s:t/100,v:n/100,a:r/100}),this.value=this._isValid?this._tiny.toString(i):""}};const Ul=e=>{const{currentColor:t}=Object(u["inject"])(ml),n=Object(u["ref"])(o(e.colors,e.color));function r(t){e.color.fromString(e.colors[t])}function o(t,n){return J()(t).call(t,t=>{const r=new Pl({value:t,enableAlpha:e.enableAlpha});return r.selected=r.compare(n),r})}return Object(u["watch"])(()=>t.value,t=>{var r;const o=new Pl({value:t,enableAlpha:e.enableAlpha});Y()(r=n.value).call(r,e=>{e.selected=o.compare(e)})}),Object(u["watchEffect"])(()=>{n.value=o(e.colors,e.color)}),{rgbaColors:n,handleSelect:r}},Vl=e=>{const t=Object(g["d"])("color-predefine"),n=Object(u["computed"])(()=>[t.b(),t.is("disabled",e.disabled)]),r=Object(u["computed"])(()=>t.e("colors"));function o(e){return[t.e("color-selector"),t.is("alpha",e.get("alpha")<100),{selected:e.selected}]}return{rootKls:n,colorsKls:r,colorSelectorKls:o}},Bl=["disabled","aria-label","onClick"];var Fl=Object(u["defineComponent"])({name:"ElColorPredefine",__name:"predefine",props:Rl,setup(e){const t=e,{rgbaColors:n,handleSelect:r}=Ul(t),{rootKls:o,colorsKls:a,colorSelectorKls:i}=Vl(t),{t:s}=Object(fr["b"])(),c=e=>s("el.colorpicker.predefineDescription",{value:e});return(t,s)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(o))},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(a))},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(Object(u["unref"])(n),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:e.colors[n],type:"button",disabled:e.disabled,"aria-label":c(t.value),class:Object(u["normalizeClass"])(Object(u["unref"])(i)(t)),onClick:e=>Object(u["unref"])(r)(n)},[Object(u["createElementVNode"])("div",{style:Object(u["normalizeStyle"])({backgroundColor:t.value})},null,4)],10,Bl))),128))],2)],2))}}),Gl=Fl;const Hl=Object(c["b"])({color:{type:Object(c["c"])(Object),required:!0},disabled:Boolean}),Yl=e=>{const t=Object(u["getCurrentInstance"])(),n=Object(u["ref"])(),r=Object(u["ref"])(0),o=Object(u["ref"])(0),a=Object(u["ref"])("hsl(0, 100%, 50%)"),i=Object(u["computed"])(()=>e.color.get("saturation")),s=Object(u["computed"])(()=>e.color.get("value")),c=Object(u["computed"])(()=>e.color.get("hue"));function l(t){var r;e.disabled||(t.target!==n.value&&d(t),null===(r=n.value)||void 0===r||r.focus({preventScroll:!0}))}function d(n){if(e.disabled)return;const a=t.vnode.el.getBoundingClientRect(),{clientX:i,clientY:s}=yl(n);let c=i-a.left,l=s-a.top;c=Math.max(0,c),c=Math.min(c,a.width),l=Math.max(0,l),l=Math.min(l,a.height),o.value=c,r.value=l,e.color.set({saturation:c/a.width*100,value:100-l/a.height*100})}function p(t){if(e.disabled)return;const{shiftKey:n}=t,r=Object(St["b"])(t),o=n?10:1;let a=!0;switch(r){case vt["a"].left:f(-o);break;case vt["a"].right:f(o);break;case vt["a"].up:h(o);break;case vt["a"].down:h(-o);break;default:a=!1;break}a&&t.preventDefault()}function f(t){let n=i.value+t;n=n<0?0:n>100?100:n,e.color.set("saturation",n)}function h(t){let n=s.value+t;n=n<0?0:n>100?100:n,e.color.set("value",n)}return{cursorRef:n,cursorTop:r,cursorLeft:o,background:a,saturation:i,brightness:s,hue:c,handleClick:l,handleDrag:d,handleKeydown:p}},zl=(e,{cursorTop:t,cursorLeft:n,background:r,handleDrag:o})=>{const a=Object(u["getCurrentInstance"])(),s=Object(g["d"])("color-svpanel");function c(){const o=e.color.get("saturation"),i=e.color.get("value"),{clientWidth:s,clientHeight:c}=a.vnode.el;n.value=o*s/100,t.value=(100-i)*c/100,r.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}return Object(u["onMounted"])(()=>{Ml(a.vnode.el,{drag:e=>{o(e)},end:e=>{o(e)}}),c()}),Object(u["watch"])([()=>e.color.get("hue"),()=>e.color.get("value"),()=>e.color.value],()=>c()),{rootKls:Object(u["computed"])(()=>s.b()),cursorKls:Object(u["computed"])(()=>s.e("cursor")),rootStyle:Object(u["computed"])(()=>({backgroundColor:r.value})),cursorStyle:Object(u["computed"])(()=>({top:Object(i["b"])(t.value),left:Object(i["b"])(n.value)})),update:c}},ql=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"];var Wl=Object(u["defineComponent"])({name:"ElSvPanel",__name:"sv-panel",props:Hl,setup(e,{expose:t}){const n=e,{cursorRef:r,cursorTop:o,cursorLeft:a,background:i,saturation:s,brightness:c,handleClick:l,handleDrag:d,handleKeydown:p}=Yl(n),{rootKls:f,cursorKls:h,rootStyle:m,cursorStyle:v,update:g}=zl(n,{cursorTop:o,cursorLeft:a,background:i,handleDrag:d}),{t:_}=Object(fr["b"])(),b=Object(u["computed"])(()=>_("el.colorpicker.svLabel")),y=Object(u["computed"])(()=>_("el.colorpicker.svDescription",{saturation:s.value,brightness:c.value,color:n.color.value}));return t({update:g}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(f)),style:Object(u["normalizeStyle"])(Object(u["unref"])(m)),onClick:n[1]||(n[1]=(...e)=>Object(u["unref"])(l)&&Object(u["unref"])(l)(...e))},[Object(u["createElementVNode"])("div",{ref_key:"cursorRef",ref:r,class:Object(u["normalizeClass"])(Object(u["unref"])(h)),style:Object(u["normalizeStyle"])(Object(u["unref"])(v)),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":b.value,"aria-valuenow":`${Object(u["unref"])(s)},${Object(u["unref"])(c)}`,"aria-valuetext":y.value,onKeydown:n[0]||(n[0]=(...e)=>Object(u["unref"])(p)&&Object(u["unref"])(p)(...e))},null,46,ql)],6))}}),Kl=Wl;const $l=(e,t)=>{const n=Object(u["reactive"])(new Pl({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return Object(u["watch"])(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(o["c"],n.value)}),{color:n}};var Jl=Object(u["defineComponent"])({name:"ElColorPickerPanel",__name:"color-picker-panel",props:pl,emits:fl,setup(e,{expose:t,emit:n}){const r=e,i=n,s=Object(g["d"])("color-picker-panel"),{formItem:c}=Object(Hr["a"])(),l=Object(ce["a"])(),d=Object(u["ref"])(),p=Object(u["ref"])(),f=Object(u["ref"])(),h=Object(u["ref"])(),m=Object(u["ref"])(""),{color:v}=Object(u["inject"])(hl,()=>$l(r,i),!0);function _(){v.fromString(m.value),v.value!==m.value&&(m.value=v.value)}function b(){var e;r.validateEvent&&(null===c||void 0===c||null===(e=c.validate)||void 0===e||e.call(c,"blur").catch(e=>Object(a["a"])(e)))}function y(){var e,t,n;null===(e=d.value)||void 0===e||e.update(),null===(t=p.value)||void 0===t||t.update(),null===(n=f.value)||void 0===n||n.update()}return Object(u["onMounted"])(()=>{r.modelValue&&(m.value=v.value),Object(u["nextTick"])(y)}),Object(u["watch"])(()=>r.modelValue,e=>{e!==v.value&&(e?v.fromString(e):v.clear())}),Object(u["watch"])(()=>v.value,e=>{i(o["c"],e),m.value=e,r.validateEvent&&(null===c||void 0===c||c.validate("change").catch(e=>Object(a["a"])(e)))}),Object(u["provide"])(ml,{currentColor:Object(u["computed"])(()=>v.value)}),t({color:v,inputRef:h,update:y}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(s).b(),Object(u["unref"])(s).is("disabled",Object(u["unref"])(l)),Object(u["unref"])(s).is("border",e.border)]),onFocusout:b},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(s).e("wrapper"))},[Object(u["createVNode"])(Nl,{ref_key:"hueRef",ref:d,color:Object(u["unref"])(v),vertical:"",disabled:Object(u["unref"])(l),class:Object(u["normalizeClass"])(["hue-slider",e.hueSliderClass]),style:Object(u["normalizeStyle"])(e.hueSliderStyle)},null,8,["color","disabled","class","style"]),Object(u["createVNode"])(Kl,{ref_key:"svRef",ref:p,color:Object(u["unref"])(v),disabled:Object(u["unref"])(l)},null,8,["color","disabled"])],2),e.showAlpha?(Object(u["openBlock"])(),Object(u["createBlock"])(El,{key:0,ref_key:"alphaRef",ref:f,color:Object(u["unref"])(v),disabled:Object(u["unref"])(l)},null,8,["color","disabled"])):Object(u["createCommentVNode"])("v-if",!0),e.predefine?(Object(u["openBlock"])(),Object(u["createBlock"])(Gl,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:Object(u["unref"])(v),colors:e.predefine,disabled:Object(u["unref"])(l)},null,8,["enable-alpha","color","colors","disabled"])):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(s).e("footer"))},[Object(u["createVNode"])(Object(u["unref"])(gn["a"]),{ref_key:"inputRef",ref:h,modelValue:m.value,"onUpdate:modelValue":n[0]||(n[0]=e=>m.value=e),"validate-event":!1,size:"small",disabled:Object(u["unref"])(l),onChange:_},null,8,["modelValue","disabled"]),Object(u["renderSlot"])(t.$slots,"footer")],2)],34))}}),Xl=Jl;const Ql=Object(r["a"])(Xl),Zl=Object(c["b"])({persistent:{type:Boolean,default:!0},modelValue:{type:Object(c["c"])(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:{type:Object(c["c"])(String)},disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},size:Nr["c"],popperClass:mt.popperClass,popperStyle:mt.popperStyle,tabindex:{type:[String,Number],default:0},teleported:mt.teleported,appendTo:mt.appendTo,predefine:{type:Object(c["c"])(Array)},validateEvent:{type:Boolean,default:!0},...Rr["c"],...Object(st["a"])(["ariaLabel"])}),eu={[o["c"]]:e=>Object(te["isString"])(e)||Object(ne["isNil"])(e),[o["a"]]:e=>Object(te["isString"])(e)||Object(ne["isNil"])(e),activeChange:e=>Object(te["isString"])(e)||Object(ne["isNil"])(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},tu=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"];var nu=Object(u["defineComponent"])({name:"ElColorPicker",__name:"color-picker",props:Zl,emits:eu,setup(e,{expose:t,emit:n}){const r=e,i=n,{t:s}=Object(fr["b"])(),c=Object(g["d"])("color"),{formItem:l}=Object(Hr["a"])(),d=Object(ce["b"])(),p=Object(ce["a"])(),{valueOnClear:f,isEmptyValue:h}=Object(Rr["b"])(r,null),m=$l(r,i),{inputId:v,isLabeledByFormItem:b}=Object(Hr["b"])(r,{formItemContext:l}),y=Object(u["ref"])(),O=Object(u["ref"])(),M=Object(u["ref"])(),C=Object(u["ref"])(!1),w=Object(u["ref"])(!1);let S=!0;const{isFocused:T,handleFocus:I,handleBlur:E}=Object(Gr["a"])(O,{disabled:p,beforeBlur(e){var t;return null===(t=y.value)||void 0===t?void 0:t.isFocusInsideContent(e)},afterBlur(){var e;U(!1),G(),r.validateEvent&&(null===l||void 0===l||null===(e=l.validate)||void 0===e||e.call(l,"blur").catch(e=>Object(a["a"])(e)))}}),j=Object(_["reactiveComputed"])(()=>{var e,t;return null!==(e=null===(t=M.value)||void 0===t?void 0:t.color)&&void 0!==e?e:m.color}),D=Object(u["computed"])(()=>Object(ne["pick"])(r,Q()(pl))),L=Object(u["computed"])(()=>r.modelValue||w.value?P(j,r.showAlpha):"transparent"),A=Object(u["computed"])(()=>r.modelValue||w.value?j.value:""),N=Object(u["computed"])(()=>b.value?void 0:r.ariaLabel||s("el.colorpicker.defaultLabel")),R=Object(u["computed"])(()=>b.value?null===l||void 0===l?void 0:l.labelId:void 0),x=Object(u["computed"])(()=>[c.b("picker"),c.is("disabled",p.value),c.bm("picker",d.value),c.is("focused",T.value)]);function P(e,t){const{r:n,g:r,b:o,a:a}=e.toRgb();return t?`rgba(${n}, ${r}, ${o}, ${a})`:`rgb(${n}, ${r}, ${o})`}function U(e){C.value=e}const V=Object(ne["debounce"])(U,100,{leading:!0});function B(){p.value||U(!0)}function F(){V(!1),G()}function G(){Object(u["nextTick"])(()=>{r.modelValue?j.fromString(r.modelValue):(j.value="",Object(u["nextTick"])(()=>{w.value=!1}))})}function H(){p.value||(C.value&&G(),V(!C.value))}function Y(){const e=h(j.value)?f.value:j.value;i(o["c"],e),i(o["a"],e),r.validateEvent&&(null===l||void 0===l||l.validate("change").catch(e=>Object(a["a"])(e))),V(!1),Object(u["nextTick"])(()=>{const e=new Pl({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});j.compare(e)||G()})}function z(){V(!1),i(o["c"],f.value),i(o["a"],f.value),r.modelValue!==f.value&&r.validateEvent&&(null===l||void 0===l||l.validate("change").catch(e=>Object(a["a"])(e))),G(),i("clear")}function q(){var e;null===M||void 0===M||null===(e=M.value)||void 0===e||null===(e=e.inputRef)||void 0===e||e.focus()}function W(){C.value&&(F(),T.value&&J())}function K(e){e.preventDefault(),e.stopPropagation(),U(!1),G()}function $(e){switch(Object(St["b"])(e)){case vt["a"].enter:case vt["a"].numpadEnter:case vt["a"].space:e.preventDefault(),e.stopPropagation(),B();break;case vt["a"].esc:K(e);break}}function J(){O.value.focus()}function X(){O.value.blur()}return Object(u["watch"])(()=>A.value,e=>{S&&i("activeChange",e),S=!0}),Object(u["watch"])(()=>j.value,()=>{r.modelValue||w.value||(w.value=!0)}),Object(u["watch"])(()=>r.modelValue,e=>{e?e&&e!==j.value&&(S=!1,j.fromString(e)):w.value=!1}),Object(u["watch"])(()=>C.value,()=>{M.value&&Object(u["nextTick"])(M.value.update)}),Object(u["provide"])(hl,m),t({color:j,show:B,hide:F,focus:J,blur:X}),(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(vn),{ref_key:"popper",ref:y,visible:C.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[Object(u["unref"])(c).be("picker","panel"),e.popperClass],"popper-style":e.popperStyle,"stop-popper-mouse-event":!1,pure:"",loop:"",role:"dialog",effect:"light",trigger:"click",teleported:e.teleported,transition:Object(u["unref"])(c).namespace.value+"-zoom-in-top",persistent:e.persistent,"append-to":e.appendTo,onShow:q,onHide:n[2]||(n[2]=e=>U(!1))},{content:Object(u["withCtx"])(()=>[Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Ql),Object(u["mergeProps"])({ref_key:"pickerPanelRef",ref:M},D.value,{border:!1,"validate-event":!1,onKeydown:Object(u["withKeys"])(K,["esc"])}),{footer:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",null,[e.clearable?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Sr["a"]),{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(c).be("footer","link-btn")),text:"",size:"small",onClick:z},{default:Object(u["withCtx"])(()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(Object(u["unref"])(s)("el.colorpicker.clear")),1)]),_:1},8,["class"])):Object(u["createCommentVNode"])("v-if",!0),Object(u["createVNode"])(Object(u["unref"])(Sr["a"]),{plain:"",size:"small",class:Object(u["normalizeClass"])(Object(u["unref"])(c).be("footer","btn")),onClick:Y},{default:Object(u["withCtx"])(()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(Object(u["unref"])(s)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[Object(u["unref"])(ka),W,O.value]])]),default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",Object(u["mergeProps"])({id:Object(u["unref"])(v),ref_key:"triggerRef",ref:O},t.$attrs,{class:x.value,role:"button","aria-label":N.value,"aria-labelledby":R.value,"aria-description":Object(u["unref"])(s)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":Object(u["unref"])(p),tabindex:Object(u["unref"])(p)?void 0:e.tabindex,onKeydown:$,onFocus:n[0]||(n[0]=(...e)=>Object(u["unref"])(I)&&Object(u["unref"])(I)(...e)),onBlur:n[1]||(n[1]=(...e)=>Object(u["unref"])(E)&&Object(u["unref"])(E)(...e))}),[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(c).be("picker","trigger")),onClick:H},[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])([Object(u["unref"])(c).be("picker","color"),Object(u["unref"])(c).is("alpha",e.showAlpha)])},[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(c).be("picker","color-inner")),style:Object(u["normalizeStyle"])({backgroundColor:L.value})},[Object(u["withDirectives"])(Object(u["createVNode"])(Object(u["unref"])(k["a"]),{class:Object(u["normalizeClass"])([Object(u["unref"])(c).be("picker","icon"),Object(u["unref"])(c).is("icon-arrow-down")])},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowDown"]))]),_:1},8,["class"]),[[u["vShow"],e.modelValue||w.value]]),Object(u["withDirectives"])(Object(u["createVNode"])(Object(u["unref"])(k["a"]),{class:Object(u["normalizeClass"])([Object(u["unref"])(c).be("picker","empty"),Object(u["unref"])(c).is("icon-close")])},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Close"]))]),_:1},8,["class"]),[[u["vShow"],!e.modelValue&&!w.value]])],6)],2)],2)],16,tu)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}}),ru=nu;const ou=Object(r["a"])(ru);var au=Object(u["defineComponent"])({name:"ElContainer",__name:"container",props:{direction:{type:String,required:!1}},setup(e){const t=e,n=Object(u["useSlots"])(),r=Object(g["d"])("container"),o=Object(u["computed"])(()=>{var e;return"vertical"===t.direction||"horizontal"!==t.direction&&(!(!n||!n.default)&&w()(e=n.default()).call(e,e=>{const t=e.type.name;return"ElHeader"===t||"ElFooter"===t}))});return(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("section",{class:Object(u["normalizeClass"])([Object(u["unref"])(r).b(),Object(u["unref"])(r).is("vertical",o.value)])},[Object(u["renderSlot"])(e.$slots,"default")],2))}}),iu=au,su=Object(u["defineComponent"])({name:"ElAside",__name:"aside",props:{width:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=Object(g["d"])("aside"),r=Object(u["computed"])(()=>t.width?n.cssVarBlock({width:t.width}):{});return(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("aside",{class:Object(u["normalizeClass"])(Object(u["unref"])(n).b()),style:Object(u["normalizeStyle"])(r.value)},[Object(u["renderSlot"])(e.$slots,"default")],6))}}),cu=su,lu=Object(u["defineComponent"])({name:"ElFooter",__name:"footer",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=Object(g["d"])("footer"),r=Object(u["computed"])(()=>t.height?n.cssVarBlock({height:t.height}):{});return(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("footer",{class:Object(u["normalizeClass"])(Object(u["unref"])(n).b()),style:Object(u["normalizeStyle"])(r.value)},[Object(u["renderSlot"])(e.$slots,"default")],6))}}),uu=lu,du=Object(u["defineComponent"])({name:"ElHeader",__name:"header",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=Object(g["d"])("header"),r=Object(u["computed"])(()=>t.height?n.cssVarBlock({height:t.height}):{});return(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("header",{class:Object(u["normalizeClass"])(Object(u["unref"])(n).b()),style:Object(u["normalizeStyle"])(r.value)},[Object(u["renderSlot"])(e.$slots,"default")],6))}}),pu=du,fu=Object(u["defineComponent"])({name:"ElMain",__name:"main",setup(e){const t=Object(g["d"])("main");return(e,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("main",{class:Object(u["normalizeClass"])(Object(u["unref"])(t).b())},[Object(u["renderSlot"])(e.$slots,"default")],2))}}),hu=fu;const mu=Object(r["a"])(iu,{Aside:cu,Footer:uu,Header:pu,Main:hu}),vu=Object(r["d"])(cu),gu=Object(r["d"])(uu),_u=Object(r["d"])(pu),bu=Object(r["d"])(hu);var yu=n("897b"),Ou=n.n(yu);const Mu=Object(c["b"])({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:Object(c["c"])([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:Object(c["c"])([String,Object,Array])}});var ku=Object(u["defineComponent"])({name:"ElStatistic",__name:"statistic",props:Mu,setup(e,{expose:t}){const n=e,r=Object(g["d"])("statistic"),o=Object(u["computed"])(()=>{var e;const{value:t,formatter:r,precision:o,decimalSeparator:a,groupSeparator:i}=n;if(Object(te["isFunction"])(r))return r(t);if(!Object(h["d"])(t)||Di()(t))return t;let[s,c=""]=String(t).split(".");return c=It()(e=Ou()(c).call(c,o,"0")).call(e,0,o>0?o:0),s=s.replace(/\B(?=(\d{3})+(?!\d))/g,i),[s,c].join(c?a:"")});return t({displayValue:o}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).b())},[t.$slots.title||e.title?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("head"))},[Object(u["renderSlot"])(t.$slots,"title",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.title),1)])],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("content"))},[t.$slots.prefix||e.prefix?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("prefix"))},[Object(u["renderSlot"])(t.$slots,"prefix",{},()=>[Object(u["createElementVNode"])("span",null,Object(u["toDisplayString"])(e.prefix),1)])],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("number")),style:Object(u["normalizeStyle"])(e.valueStyle)},Object(u["toDisplayString"])(o.value),7),t.$slots.suffix||e.suffix?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("suffix"))},[Object(u["renderSlot"])(t.$slots,"suffix",{},()=>[Object(u["createElementVNode"])("span",null,Object(u["toDisplayString"])(e.suffix),1)])],2)):Object(u["createCommentVNode"])("v-if",!0)],2)],2))}}),Cu=ku;const wu=Object(r["a"])(Cu);var Su=n("3002"),Tu=n.n(Su);const Iu=Object(c["b"])({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:Object(c["c"])([Number,Object]),default:0},valueStyle:{type:Object(c["c"])([String,Object,Array])}}),Eu={finish:()=>!0,[o["a"]]:e=>Object(h["d"])(e)};var ju=n("cf34"),Du=n.n(ju);const Lu=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],Au=e=>Object(h["d"])(e)?new Date(e).getTime():e.valueOf(),Nu=(e,t)=>{let n=e;return fa()(Lu).call(Lu,(e,[t,r])=>{const o=new RegExp(t+"+(?![^\\[\\]]*\\])","g");if(o.test(e)){const t=Math.floor(n/r);return n-=t*r,e.replace(o,e=>{var n;return Du()(n=String(t)).call(n,e.length,"0")})}return e},t).replace(/\[([^\]]*)]/g,"$1")};var Ru=Object(u["defineComponent"])({name:"ElCountdown",__name:"countdown",props:Iu,emits:Eu,setup(e,{expose:t,emit:n}){const r=e,a=n;let i;const s=Object(u["ref"])(0),c=Object(u["computed"])(()=>Nu(s.value,r.format)),l=e=>Nu(e,r.format),d=()=>{i&&(Object(bo["a"])(i),i=void 0)},p=()=>{const e=Au(r.value),t=()=>{let n=e-Tu()();a(o["a"],n),n<=0?(n=0,d(),a("finish")):i=Object(bo["b"])(t),s.value=n};i=Object(bo["b"])(t)};return Object(u["onMounted"])(()=>{s.value=Au(r.value)-Tu()(),Object(u["watch"])(()=>[r.value,r.format],()=>{d(),p()},{immediate:!0})}),Object(u["onBeforeUnmount"])(()=>{d()}),t({displayValue:c}),(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(wu),{value:s.value,title:e.title,prefix:e.prefix,suffix:e.suffix,"value-style":e.valueStyle,formatter:l},Object(u["createSlots"])({_:2},[Object(u["renderList"])(t.$slots,(e,n)=>({name:n,fn:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,n)])}))]),1032,["value","title","prefix","suffix","value-style"]))}}),xu=Ru;const Pu=Object(r["a"])(xu),Uu=Object(c["b"])({valueFormat:String,dateFormat:String,timeFormat:String,disabled:{type:Boolean,default:void 0},modelValue:{type:Object(c["c"])([Date,Array,String,Number]),default:""},defaultValue:{type:Object(c["c"])([Date,Array])},defaultTime:{type:Object(c["c"])([Date,Array])},isRange:Boolean,...xr,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,unlinkPanels:Boolean,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:Boolean,showWeekNumber:Boolean,type:{type:Object(c["c"])(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0}}),Vu=xe()("rootPickerContextKey"),Bu="ElIsDefaultFormat",Fu=["date","dates","year","years","month","months","week","range"],Gu=Object(c["b"])({cellClassName:{type:Object(c["c"])(Function)},disabledDate:{type:Object(c["c"])(Function)},date:{type:Object(c["c"])(Object),required:!0},minDate:{type:Object(c["c"])(Object)},maxDate:{type:Object(c["c"])(Object)},parsedValue:{type:Object(c["c"])([Object,Array])},rangeState:{type:Object(c["c"])(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),Hu=Object(c["b"])({type:{type:Object(c["c"])(String),required:!0,values:oi["b"]},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean,editable:{type:Boolean,default:!0}}),Yu=Object(c["b"])({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:Object(c["c"])(Array)}}),zu=e=>({type:String,values:Fu,default:e}),qu=Object(c["b"])({...Hu,parsedValue:{type:Object(c["c"])([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),Wu=e=>{if(!Object(te["isArray"])(e))return!1;const[t,n]=e;return Wr.a.isDayjs(t)&&Wr.a.isDayjs(n)&&Wr()(t).isValid()&&Wr()(n).isValid()&&t.isSameOrBefore(n)},Ku=(e,{lang:t,step:n=1,unit:r,unlinkPanels:o})=>{let a;if(Object(te["isArray"])(e)){let[a,i]=J()(e).call(e,e=>Wr()(e).locale(t));return o||(i=a.add(n,r)),[a,i]}return a=e?Wr()(e):Wr()(),a=a.locale(t),[a,a.add(n,r)]},$u=(e,t,{columnIndexOffset:n,startDate:r,nextEndDate:o,now:a,unit:i,relativeDateGetter:s,setCellMetadata:c,setRowMetadata:l})=>{for(let u=0;u<e.row;u++){const d=t[u];for(let t=0;t<e.column;t++){let l=d[t+n];l||(l={row:u,column:t,type:"normal",inRange:!1,start:!1,end:!1});const p=s(u*e.column+t);l.dayjs=p,l.date=p.toDate(),l.timestamp=p.valueOf(),l.type="normal",l.inRange=!!(r&&p.isSameOrAfter(r,i)&&o&&p.isSameOrBefore(o,i))||!!(r&&p.isSameOrBefore(r,i)&&o&&p.isSameOrAfter(o,i)),null!==r&&void 0!==r&&r.isSameOrAfter(o)?(l.start=!!o&&p.isSame(o,i),l.end=r&&p.isSame(r,i)):(l.start=!!r&&p.isSame(r,i),l.end=!!o&&p.isSame(o,i)),p.isSame(a,i)&&(l.type="today"),null===c||void 0===c||c(l,{rowIndex:u,columnIndex:t}),d[t+n]=l}null===l||void 0===l||l(d)}},Ju=(e,t,n,r)=>{var o;const a=Wr()().locale(r).startOf("month").month(n).year(t).hour(e.hour()).minute(e.minute()).second(e.second());return J()(o=$r(a.daysInMonth())).call(o,e=>a.add(e,"day").toDate())},Xu=(e,t,n,r,o)=>{var a;const i=Wr()().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),s=La()(a=Ju(e,t,n,r)).call(a,e=>!(null!==o&&void 0!==o&&o(e)));return s?Wr()(s).locale(r):i.locale(r)},Qu=(e,t,n)=>{var r;const o=e.year();if(null===n||void 0===n||!n(e.toDate()))return e.locale(t);const a=e.month();if(!Ht()(r=Ju(e,o,a,t)).call(r,n))return Xu(e,o,a,t,n);for(let s=0;s<12;s++){var i;if(!Ht()(i=Ju(e,o,s,t)).call(i,n))return Xu(e,o,s,t,n)}return e},Zu=(e,t,n,r)=>{if(Object(te["isArray"])(e))return J()(e).call(e,e=>Zu(e,t,n,r));if(Object(te["isString"])(e)){const n=null!==r&&void 0!==r&&r.value?Wr()(e):Wr()(e,t);if(!n.isValid())return n}return Wr()(e,t).locale(n)},ed=Object(c["b"])({...Gu,showWeekNumber:Boolean,selectionMode:zu("date")}),td=["changerange","pick","select"],nd=(e="")=>{var t;return ue()(t=["normal","today"]).call(t,e)},rd=(e,t)=>{var n;const{lang:r}=Object(fr["b"])(),o=Object(u["ref"])(),a=Object(u["ref"])(),i=Object(u["ref"])(),s=Object(u["ref"])(),c=Object(u["ref"])([[],[],[],[],[],[]]);let l=!1;const d=e.date.$locale().weekStart||7,p=J()(n=e.date.locale("en").localeData().weekdaysShort()).call(n,e=>e.toLowerCase()),f=Object(u["computed"])(()=>d>3?7-d:-d),h=Object(u["computed"])(()=>{const t=e.date.startOf("month");return t.subtract(t.day()||7,"day")}),m=Object(u["computed"])(()=>{var e;return It()(e=No()(p).call(p,p)).call(e,d,d+7)}),v=Object(u["computed"])(()=>{var e;return w()(e=Object(ne["flatten"])(Object(u["unref"])(M))).call(e,e=>e.isCurrent)}),g=Object(u["computed"])(()=>{const t=e.date.startOf("month");return{startOfMonthDay:t.day()||7,dateCountOfMonth:t.daysInMonth(),dateCountOfLastMonth:t.subtract(1,"month").daysInMonth()}}),_=Object(u["computed"])(()=>"dates"===e.selectionMode?qt(e.parsedValue):[]),b=(e,{count:t,rowIndex:n,columnIndex:r})=>{const{startOfMonthDay:o,dateCountOfMonth:a,dateCountOfLastMonth:i}=Object(u["unref"])(g),s=Object(u["unref"])(f);if(!(n>=0&&n<=1))return t<=a?e.text=t:(e.text=t-a,e.type="next-month"),!0;{const a=o+s<0?7+o+s:o+s;if(r+7*n>=a)return e.text=t,!0;e.text=i-(a-r%7)+1+7*n,e.type="prev-month"}return!1},y=(t,{columnIndex:n,rowIndex:r},o)=>{const{disabledDate:a,cellClassName:i}=e,s=Object(u["unref"])(_),c=b(t,{count:o,rowIndex:r,columnIndex:n}),l=t.dayjs.toDate();return t.selected=La()(s).call(s,e=>e.isSame(t.dayjs,"day")),t.isSelected=!!t.selected,t.isCurrent=C(t),t.disabled=null===a||void 0===a?void 0:a(l),t.customClass=null===i||void 0===i?void 0:i(l),c},O=t=>{if("week"===e.selectionMode){const[n,r]=e.showWeekNumber?[1,7]:[0,6],o=P(t[n+1]);t[n].inRange=o,t[n].start=o,t[r].inRange=o,t[r].end=o}},M=Object(u["computed"])(()=>{const{minDate:t,maxDate:n,rangeState:o,showWeekNumber:a}=e,i=Object(u["unref"])(f),s=Object(u["unref"])(c),l="day";let d=1;if($u({row:6,column:7},s,{startDate:t,columnIndexOffset:a?1:0,nextEndDate:o.endDate||n||o.selecting&&t||null,now:Wr()().locale(Object(u["unref"])(r)).startOf(l),unit:l,relativeDateGetter:e=>Object(u["unref"])(h).add(e-i,l),setCellMetadata:(...e)=>{y(...e,d)&&(d+=1)},setRowMetadata:O}),a)for(let e=0;e<6;e++)s[e][1].dayjs&&(s[e][0]={type:"week",text:s[e][1].dayjs.week()});return s});Object(u["watch"])(()=>e.date,async()=>{var e;null!==(e=Object(u["unref"])(o))&&void 0!==e&&e.contains(document.activeElement)&&(await Object(u["nextTick"])(),await k())});const k=async()=>{var e;return null===(e=Object(u["unref"])(a))||void 0===e?void 0:e.focus()},C=t=>"date"===e.selectionMode&&nd(t.type)&&S(t,e.parsedValue),S=(t,n)=>!!n&&Wr()(n).locale(Object(u["unref"])(r)).isSame(e.date.date(Number(t.text)),"day"),T=(t,n)=>{const r=Object(u["unref"])(g).startOfMonthDay,o=Object(u["unref"])(f),a=r+o<0?7+r+o:r+o,i=7*t+(n-(e.showWeekNumber?1:0));return e.date.startOf("month").subtract(a,"day").add(i,"day")},I=n=>{var r;if(!e.rangeState.selecting)return;let o=n.target;if("SPAN"===o.tagName&&(o=null===(r=o.parentNode)||void 0===r?void 0:r.parentNode),"DIV"===o.tagName&&(o=o.parentNode),"TD"!==o.tagName)return;const a=o.parentNode.rowIndex-1,c=o.cellIndex;Object(u["unref"])(M)[a][c].disabled||a===Object(u["unref"])(i)&&c===Object(u["unref"])(s)||(i.value=a,s.value=c,t("changerange",{selecting:!0,endDate:T(a,c)}))},E=e=>!Object(u["unref"])(v)&&1===(null===e||void 0===e?void 0:e.text)&&nd(e.type)||e.isCurrent,j=t=>{l||Object(u["unref"])(v)||"date"!==e.selectionMode||x(t,!0)},D=e=>{e.target.closest("td")&&(l=!0)},L=e=>{e.target.closest("td")&&(l=!1)},A=n=>{e.rangeState.selecting&&e.minDate?(n>=e.minDate?t("pick",{minDate:e.minDate,maxDate:n}):t("pick",{minDate:n,maxDate:e.minDate}),t("select",!1)):(t("pick",{minDate:n,maxDate:null}),t("select",!0))},N=e=>{const n=e.week(),r=`${e.year()}w${n}`;t("pick",{year:e.year(),week:n,value:r,date:e.startOf("week")})},R=(n,r)=>{var o,a;t("pick",r?K()(o=qt(e.parsedValue)).call(o,e=>(null===e||void 0===e?void 0:e.valueOf())!==n.valueOf()):No()(a=qt(e.parsedValue)).call(a,[n]))},x=(n,r=!1)=>{if(e.disabled)return;const o=n.target.closest("td");if(!o)return;const a=o.parentNode.rowIndex-1,i=o.cellIndex,s=Object(u["unref"])(M)[a][i];if(s.disabled||"week"===s.type)return;const c=T(a,i);switch(e.selectionMode){case"range":A(c);break;case"date":t("pick",c,r);break;case"week":N(c);break;case"dates":R(c,!!s.selected);break;default:break}},P=t=>{if("week"!==e.selectionMode)return!1;let n=e.date.startOf("day");if("prev-month"===t.type&&(n=n.subtract(1,"month")),"next-month"===t.type&&(n=n.add(1,"month")),n=n.date(ke()(t.text,10)),e.parsedValue&&!Object(te["isArray"])(e.parsedValue)){const t=(e.parsedValue.day()-d+7)%7-1;return e.parsedValue.subtract(t,"day").isSame(n,"day")}return!1};return{WEEKS:m,rows:M,tbodyRef:o,currentCellRef:a,focus:k,isCurrent:C,isWeekActive:P,isSelectedCell:E,handlePickDate:x,handleMouseUp:L,handleMouseDown:D,handleMouseMove:I,handleFocus:j}},od=(e,{isCurrent:t,isWeekActive:n})=>{const r=Object(g["d"])("date-table"),{t:o}=Object(fr["b"])(),a=Object(u["computed"])(()=>[r.b(),r.is("week-mode","week"===e.selectionMode&&!e.disabled)]),i=Object(u["computed"])(()=>o("el.datepicker.dateTablePrompt")),s=n=>{const r=[];return nd(n.type)&&!n.disabled?(r.push("available"),"today"===n.type&&r.push("today")):r.push(n.type),t(n)&&r.push("current"),n.inRange&&(nd(n.type)||"week"===e.selectionMode)&&(r.push("in-range"),n.start&&r.push("start-date"),n.end&&r.push("end-date")),(n.disabled||e.disabled)&&r.push("disabled"),n.selected&&r.push("selected"),n.customClass&&r.push(n.customClass),r.join(" ")},c=e=>[r.e("row"),{current:n(e)}];return{tableKls:a,tableLabel:i,weekHeaderClass:r.e("week-header"),getCellClasses:s,getRowKls:c,t:o}},ad=Object(c["b"])({cell:{type:Object(c["c"])(Object)}});var id=Object(u["defineComponent"])({name:"ElDatePickerCell",props:ad,setup(e){const t=Object(g["d"])("date-table-cell"),{slots:n}=Object(u["inject"])(Vu);return()=>{const{cell:r}=e;return Object(u["renderSlot"])(n,"default",{...r},()=>{var e;return[Object(u["createVNode"])("div",{class:t.b()},[Object(u["createVNode"])("span",{class:t.e("text")},[null!==(e=null===r||void 0===r?void 0:r.renderText)&&void 0!==e?e:null===r||void 0===r?void 0:r.text])])]})}}});const sd=["aria-label"],cd=["aria-label"],ld=["aria-current","aria-selected","tabindex","aria-disabled"];var ud=Object(u["defineComponent"])({__name:"basic-date-table",props:ed,emits:td,setup(e,{expose:t,emit:n}){const r=e,{WEEKS:o,rows:a,tbodyRef:i,currentCellRef:s,focus:c,isCurrent:l,isWeekActive:d,isSelectedCell:p,handlePickDate:f,handleMouseUp:h,handleMouseDown:m,handleMouseMove:v,handleFocus:g}=rd(r,n),{tableLabel:_,tableKls:b,getCellClasses:y,getRowKls:O,weekHeaderClass:M,t:k}=od(r,{isCurrent:l,isWeekActive:d});let C=!1;return Object(u["onBeforeUnmount"])(()=>{C=!0}),t({focus:c}),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("table",{"aria-label":Object(u["unref"])(_),class:Object(u["normalizeClass"])(Object(u["unref"])(b)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:t[1]||(t[1]=(...e)=>Object(u["unref"])(f)&&Object(u["unref"])(f)(...e)),onMousemove:t[2]||(t[2]=(...e)=>Object(u["unref"])(v)&&Object(u["unref"])(v)(...e)),onMousedown:t[3]||(t[3]=(...e)=>Object(u["unref"])(m)&&Object(u["unref"])(m)(...e)),onMouseup:t[4]||(t[4]=(...e)=>Object(u["unref"])(h)&&Object(u["unref"])(h)(...e))},[Object(u["createElementVNode"])("tbody",{ref_key:"tbodyRef",ref:i},[Object(u["createElementVNode"])("tr",null,[e.showWeekNumber?(Object(u["openBlock"])(),Object(u["createElementBlock"])("th",{key:0,scope:"col",class:Object(u["normalizeClass"])(Object(u["unref"])(M))},null,2)):Object(u["createCommentVNode"])("v-if",!0),(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(Object(u["unref"])(o),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("th",{key:t,"aria-label":Object(u["unref"])(k)("el.datepicker.weeksFull."+e),scope:"col"},Object(u["toDisplayString"])(Object(u["unref"])(k)("el.datepicker.weeks."+e)),9,cd))),128))]),(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(Object(u["unref"])(a),(n,r)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("tr",{key:r,class:Object(u["normalizeClass"])(Object(u["unref"])(O)(e.showWeekNumber?n[2]:n[1]))},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(n,(n,o)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("td",{key:`${r}.${o}`,ref_for:!0,ref:e=>!Object(u["unref"])(C)&&Object(u["unref"])(p)(n)&&(s.value=e),class:Object(u["normalizeClass"])(Object(u["unref"])(y)(n)),"aria-current":n.isCurrent?"date":void 0,"aria-selected":n.isCurrent,tabindex:e.disabled?void 0:Object(u["unref"])(p)(n)?0:-1,"aria-disabled":e.disabled,onFocus:t[0]||(t[0]=(...e)=>Object(u["unref"])(g)&&Object(u["unref"])(g)(...e))},[Object(u["createVNode"])(Object(u["unref"])(id),{cell:n},null,8,["cell"])],42,ld))),128))],2))),128))],512)],42,sd))}}),dd=ud;const pd=Object(c["b"])({...Gu,selectionMode:zu("month")}),fd=["aria-label"],hd=["aria-selected","aria-label","tabindex","onKeydown"];var md=Object(u["defineComponent"])({__name:"basic-month-table",props:pd,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){var r;const o=e,a=n,s=Object(g["d"])("month-table"),{t:c,lang:l}=Object(fr["b"])(),d=Object(u["ref"])(),p=Object(u["ref"])(),f=Object(u["ref"])(J()(r=o.date.locale("en").localeData().monthsShort()).call(r,e=>e.toLowerCase())),h=Object(u["ref"])([[],[],[]]),m=Object(u["ref"])(),v=Object(u["ref"])(),_=Object(u["computed"])(()=>{const e=h.value,t=Wr()().locale(l.value).startOf("month");for(let s=0;s<3;s++){const c=e[s];for(let e=0;e<4;e++){var n,r,a,i;const l=c[n=e]||(c[n]={row:s,column:e,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0});l.type="normal";const u=4*s+e,d=o.date.startOf("year").month(u),p=o.rangeState.endDate||o.maxDate||o.rangeState.selecting&&o.minDate||null;l.inRange=!!(o.minDate&&d.isSameOrAfter(o.minDate,"month")&&p&&d.isSameOrBefore(p,"month"))||!!(o.minDate&&d.isSameOrBefore(o.minDate,"month")&&p&&d.isSameOrAfter(p,"month")),null!==(r=o.minDate)&&void 0!==r&&r.isSameOrAfter(p)?(l.start=!(!p||!d.isSame(p,"month")),l.end=o.minDate&&d.isSame(o.minDate,"month")):(l.start=!(!o.minDate||!d.isSame(o.minDate,"month")),l.end=!(!p||!d.isSame(p,"month"))),t.isSame(d)&&(l.type="today");const f=d.toDate();l.text=u,l.disabled=(null===(a=o.disabledDate)||void 0===a?void 0:a.call(o,f))||!1,l.date=f,l.customClass=null===(i=o.cellClassName)||void 0===i?void 0:i.call(o,f),l.dayjs=d,l.timestamp=d.valueOf(),l.isSelected=O(l)}}return e}),b=()=>{var e;null===(e=p.value)||void 0===e||e.focus()},y=e=>{var t,n;const r={},a=o.date.year(),i=new Date,s=e.text;return r.disabled=o.disabled||!!o.disabledDate&&Ht()(t=Ju(o.date,a,s,l.value)).call(t,o.disabledDate),r.current=w()(n=qt(o.parsedValue)).call(n,e=>Wr.a.isDayjs(e)&&e.year()===a&&e.month()===s),r.today=i.getFullYear()===a&&i.getMonth()===s,e.customClass&&(r[e.customClass]=!0),e.inRange&&(r["in-range"]=!0,e.start&&(r["start-date"]=!0),e.end&&(r["end-date"]=!0)),r},O=e=>{var t;const n=o.date.year(),r=e.text;return w()(t=qt(o.date)).call(t,e=>e.year()===n&&e.month()===r)},M=e=>{var t;if(!o.rangeState.selecting)return;let n=e.target;if("SPAN"===n.tagName&&(n=null===(t=n.parentNode)||void 0===t?void 0:t.parentNode),"DIV"===n.tagName&&(n=n.parentNode),"TD"!==n.tagName)return;const r=n.parentNode.rowIndex,i=n.cellIndex;_.value[r][i].disabled||r===m.value&&i===v.value||(m.value=r,v.value=i,a("changerange",{selecting:!0,endDate:o.date.startOf("year").month(4*r+i)}))},k=e=>{var t;if(o.disabled)return;const n=null===(t=e.target)||void 0===t?void 0:t.closest("td");if("TD"!==(null===n||void 0===n?void 0:n.tagName))return;if(Object(i["d"])(n,"disabled"))return;const r=n.cellIndex,s=4*n.parentNode.rowIndex+r,c=o.date.startOf("year").month(s);if("months"===o.selectionMode){var u,d;if("keydown"===e.type)return void a("pick",qt(o.parsedValue),!1);const t=Xu(o.date,o.date.year(),s,l.value,o.disabledDate);a("pick",Object(i["d"])(n,"current")?K()(u=qt(o.parsedValue)).call(u,e=>(null===e||void 0===e?void 0:e.year())!==t.year()||(null===e||void 0===e?void 0:e.month())!==t.month()):No()(d=qt(o.parsedValue)).call(d,[Wr()(t)]))}else"range"===o.selectionMode?o.rangeState.selecting?(o.minDate&&c>=o.minDate?a("pick",{minDate:o.minDate,maxDate:c}):a("pick",{minDate:c,maxDate:o.minDate}),a("select",!1)):(a("pick",{minDate:c,maxDate:null}),a("select",!0)):a("pick",s)};return Object(u["watch"])(()=>o.date,async()=>{var e,t;null!==(e=d.value)&&void 0!==e&&e.contains(document.activeElement)&&(await Object(u["nextTick"])(),null===(t=p.value)||void 0===t||t.focus())}),t({focus:b}),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("table",{role:"grid","aria-label":Object(u["unref"])(c)("el.datepicker.monthTablePrompt"),class:Object(u["normalizeClass"])(Object(u["unref"])(s).b()),onClick:k,onMousemove:M},[Object(u["createElementVNode"])("tbody",{ref_key:"tbodyRef",ref:d},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(_.value,(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("tr",{key:t},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e,(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("td",{key:t,ref_for:!0,ref:t=>e.isSelected&&(p.value=t),class:Object(u["normalizeClass"])(y(e)),"aria-selected":!!e.isSelected,"aria-label":Object(u["unref"])(c)("el.datepicker.month"+(+e.text+1)),tabindex:e.isSelected?0:-1,onKeydown:[Object(u["withKeys"])(Object(u["withModifiers"])(k,["prevent","stop"]),["space"]),Object(u["withKeys"])(Object(u["withModifiers"])(k,["prevent","stop"]),["enter"])]},[Object(u["createVNode"])(Object(u["unref"])(id),{cell:{...e,renderText:Object(u["unref"])(c)("el.datepicker.months."+f.value[e.text])}},null,8,["cell"])],42,hd))),128))]))),128))],512)],42,fd))}}),vd=md;const gd=Object(c["b"])({...Gu,selectionMode:zu("year")}),_d=["aria-label"],bd=["aria-selected","aria-label","tabindex","onKeydown"];var yd=Object(u["defineComponent"])({__name:"basic-year-table",props:gd,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=(e,t)=>{var n;const r=Wr()(String(e)).locale(t).startOf("year");return J()(n=$r(r.endOf("year").dayOfYear())).call(n,e=>r.add(e,"day").toDate())},o=e,a=n,s=Object(g["d"])("year-table"),{t:c,lang:l}=Object(fr["b"])(),d=Object(u["ref"])(),p=Object(u["ref"])(),f=Object(u["computed"])(()=>10*Math.floor(o.date.year()/10)),h=Object(u["ref"])([[],[],[]]),m=Object(u["ref"])(),v=Object(u["ref"])(),_=Object(u["computed"])(()=>{const e=h.value,t=Wr()().locale(l.value).startOf("year");for(let i=0;i<3;i++){const s=e[i];for(let e=0;e<4;e++){var n,r,a;if(4*i+e>=10)break;let c=s[e];c||(c={row:i,column:e,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0}),c.type="normal";const l=4*i+e+f.value,u=Wr()().year(l),d=o.rangeState.endDate||o.maxDate||o.rangeState.selecting&&o.minDate||null;c.inRange=!!(o.minDate&&u.isSameOrAfter(o.minDate,"year")&&d&&u.isSameOrBefore(d,"year"))||!!(o.minDate&&u.isSameOrBefore(o.minDate,"year")&&d&&u.isSameOrAfter(d,"year")),null!==(n=o.minDate)&&void 0!==n&&n.isSameOrAfter(d)?(c.start=!(!d||!u.isSame(d,"year")),c.end=!(!o.minDate||!u.isSame(o.minDate,"year"))):(c.start=!(!o.minDate||!u.isSame(o.minDate,"year")),c.end=!(!d||!u.isSame(d,"year"))),t.isSame(u)&&(c.type="today"),c.text=l;const p=u.toDate();c.disabled=(null===(r=o.disabledDate)||void 0===r?void 0:r.call(o,p))||!1,c.date=p,c.customClass=null===(a=o.cellClassName)||void 0===a?void 0:a.call(o,p),c.dayjs=u,c.timestamp=u.valueOf(),c.isSelected=O(c),s[e]=c}}return e}),b=()=>{var e;null===(e=p.value)||void 0===e||e.focus()},y=e=>{var t,n;const a={},i=Wr()().locale(l.value),s=e.text;return a.disabled=o.disabled||!!o.disabledDate&&Ht()(t=r(s,l.value)).call(t,o.disabledDate),a.today=i.year()===s,a.current=w()(n=qt(o.parsedValue)).call(n,e=>e.year()===s),e.customClass&&(a[e.customClass]=!0),e.inRange&&(a["in-range"]=!0,e.start&&(a["start-date"]=!0),e.end&&(a["end-date"]=!0)),a},O=e=>{var t;const n=e.text;return w()(t=qt(o.date)).call(t,e=>e.year()===n)},M=e=>{var t;if(o.disabled)return;const n=null===(t=e.target)||void 0===t?void 0:t.closest("td");if(!n||!n.textContent||Object(i["d"])(n,"disabled"))return;const r=n.cellIndex,s=4*n.parentNode.rowIndex+r+f.value,c=Wr()().year(s);if("range"===o.selectionMode)o.rangeState.selecting?(o.minDate&&c>=o.minDate?a("pick",{minDate:o.minDate,maxDate:c}):a("pick",{minDate:c,maxDate:o.minDate}),a("select",!1)):(a("pick",{minDate:c,maxDate:null}),a("select",!0));else if("years"===o.selectionMode){var u,d;if("keydown"===e.type)return void a("pick",qt(o.parsedValue),!1);const t=Qu(c.startOf("year"),l.value,o.disabledDate);a("pick",Object(i["d"])(n,"current")?K()(u=qt(o.parsedValue)).call(u,e=>(null===e||void 0===e?void 0:e.year())!==s):No()(d=qt(o.parsedValue)).call(d,[t]))}else a("pick",s)},k=e=>{var t;if(!o.rangeState.selecting)return;const n=null===(t=e.target)||void 0===t?void 0:t.closest("td");if(!n)return;const r=n.parentNode.rowIndex,i=n.cellIndex;_.value[r][i].disabled||r===m.value&&i===v.value||(m.value=r,v.value=i,a("changerange",{selecting:!0,endDate:Wr()().year(f.value).add(4*r+i,"year")}))};return Object(u["watch"])(()=>o.date,async()=>{var e,t;null!==(e=d.value)&&void 0!==e&&e.contains(document.activeElement)&&(await Object(u["nextTick"])(),null===(t=p.value)||void 0===t||t.focus())}),t({focus:b}),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("table",{role:"grid","aria-label":Object(u["unref"])(c)("el.datepicker.yearTablePrompt"),class:Object(u["normalizeClass"])(Object(u["unref"])(s).b()),onClick:M,onMousemove:k},[Object(u["createElementVNode"])("tbody",{ref_key:"tbodyRef",ref:d},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(_.value,(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("tr",{key:t},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e,(e,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("td",{key:`${t}_${n}`,ref_for:!0,ref:t=>e.isSelected&&(p.value=t),class:Object(u["normalizeClass"])(["available",y(e)]),"aria-selected":e.isSelected,"aria-label":String(e.text),tabindex:e.isSelected?0:-1,onKeydown:[Object(u["withKeys"])(Object(u["withModifiers"])(M,["prevent","stop"]),["space"]),Object(u["withKeys"])(Object(u["withModifiers"])(M,["prevent","stop"]),["enter"])]},[Object(u["createVNode"])(Object(u["unref"])(id),{cell:e},null,8,["cell"])],42,bd))),128))]))),128))],512)],42,_d))}}),Od=yd;const Md=["disabled","onClick"],kd=["aria-label","disabled"],Cd=["aria-label","disabled"],wd=["tabindex","aria-disabled"],Sd=["tabindex","aria-disabled"],Td=["aria-label","disabled"],Id=["aria-label","disabled"];var Ed=Object(u["defineComponent"])({__name:"panel-date-pick",props:qu,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=(e,t,n)=>!0,r=e,o=t,a=Object(g["d"])("picker-panel"),i=Object(g["d"])("date-picker"),s=Object(u["useAttrs"])(),c=Object(u["useSlots"])(),{t:l,lang:d}=Object(fr["b"])(),p=Object(u["inject"])(Ir),f=Object(u["inject"])(Bu,void 0),{shortcuts:h,disabledDate:m,cellClassName:v,defaultTime:_}=p.props,b=Object(u["toRef"])(p.props,"defaultValue"),y=Object(u["ref"])(),O=Object(u["ref"])(Wr()().locale(d.value)),M=Object(u["ref"])(!1);let C=!1;const w=Object(u["computed"])(()=>Wr()(_).locale(d.value)),S=Object(u["computed"])(()=>O.value.month()),T=Object(u["computed"])(()=>O.value.year()),I=Object(u["ref"])([]),E=Object(u["ref"])(null),j=Object(u["ref"])(null),D=e=>!(I.value.length>0)||n(e,I.value,r.format||"HH:mm:ss"),L=e=>!_||ae.value||M.value||C?K.value?e.millisecond(0):e.startOf("day"):w.value.year(e.year()).month(e.month()).date(e.date()),A=(e,...t)=>{e?Object(te["isArray"])(e)?o("pick",J()(e).call(e,L),...t):o("pick",L(e),...t):o("pick",e,...t),E.value=null,j.value=null,M.value=!1,C=!1},N=async(e,t)=>{if("date"===B.value&&Wr.a.isDayjs(e)){const n=zt(r.parsedValue);let o=n?n.year(e.year()).month(e.month()).date(e.date()):e;D(o)||(o=I.value[0][0].year(e.year()).month(e.month()).date(e.date())),O.value=o,A(o,K.value||t)}else"week"===B.value?A(e.date):"dates"===B.value&&A(e,!0)},R=e=>{const t=e?"add":"subtract";O.value=O.value[t](1,"month"),ke("month")},x=e=>{const t=O.value,n=e?"add":"subtract";O.value="year"===P.value?t[n](10,"year"):t[n](1,"year"),ke("year")},P=Object(u["ref"])("date"),U=Object(u["computed"])(()=>{const e=l("el.datepicker.year");if("year"===P.value){const t=10*Math.floor(T.value/10);return e?`${t} ${e} - ${t+9} ${e}`:`${t} - ${t+9}`}return`${T.value} ${e}`}),V=e=>{const t=Object(te["isFunction"])(e.value)?e.value():e.value;if(t)return C=!0,void A(Wr()(t).locale(d.value));e.onClick&&e.onClick({attrs:s,slots:c,emit:o})},B=Object(u["computed"])(()=>{var e;const{type:t}=r;return ue()(e=["week","month","months","year","years","dates"]).call(e,t)?t:"date"}),F=Object(u["computed"])(()=>"dates"===B.value||"months"===B.value||"years"===B.value),G=Object(u["computed"])(()=>"date"===B.value?P.value:B.value),H=Object(u["computed"])(()=>!!h.length),Y=async(e,t)=>{if("month"===B.value)O.value=Xu(O.value,O.value.year(),e,d.value,m),A(O.value,!1);else if("months"===B.value)A(e,null===t||void 0===t||t);else{var n;O.value=Xu(O.value,O.value.year(),e,d.value,m),P.value="date",ue()(n=["month","year","date","week"]).call(n,B.value)&&(A(O.value,!0),await Object(u["nextTick"])(),be())}ke("month")},z=async(e,t)=>{if("year"===B.value)O.value=Qu(O.value.startOf("year").year(e),d.value,m),A(O.value,!1);else if("years"===B.value)A(e,null===t||void 0===t||t);else{var n;O.value=Qu(O.value.year(e),d.value,m),P.value="month",ue()(n=["month","year","date","week"]).call(n,B.value)&&(A(O.value,!0),await Object(u["nextTick"])(),be())}ke("year")},q=Object(ce["a"])(),W=async e=>{q.value||(P.value=e,await Object(u["nextTick"])(),be())},K=Object(u["computed"])(()=>"datetime"===r.type||"datetimerange"===r.type),$=Object(u["computed"])(()=>{const e=K.value||"dates"===B.value,t="years"===B.value,n="months"===B.value,r="date"===P.value,o="year"===P.value,a="month"===P.value;return e&&r||t&&o||n&&a}),X=Object(u["computed"])(()=>!F.value&&r.showNow||r.showConfirm),Q=Object(u["computed"])(()=>!!m&&(!r.parsedValue||(Object(te["isArray"])(r.parsedValue)?m(r.parsedValue[0].toDate()):m(r.parsedValue.toDate())))),Z=()=>{if(F.value)A(r.parsedValue);else{let e=zt(r.parsedValue);if(!e){const t=Wr()(_).locale(d.value),n=_e();e=t.year(n.year()).month(n.month()).date(n.date())}O.value=e,A(e)}},ee=Object(u["computed"])(()=>!!m&&m(Wr()().locale(d.value).toDate())),ne=()=>{const e=Wr()().locale(d.value).toDate();M.value=!0,m&&m(e)||!D(e)||(O.value=Wr()().locale(d.value),A(O.value))},re=Object(u["computed"])(()=>r.timeFormat||Xr(r.format)||Dr),oe=Object(u["computed"])(()=>r.dateFormat||Jr(r.format)||Lr),ae=Object(u["computed"])(()=>j.value?j.value:r.parsedValue||b.value?(zt(r.parsedValue)||O.value).format(re.value):void 0),ie=Object(u["computed"])(()=>E.value?E.value:r.parsedValue||b.value?(zt(r.parsedValue)||O.value).format(oe.value):void 0),se=Object(u["ref"])(!1),le=()=>{se.value=!0},de=()=>{se.value=!1},pe=e=>({hour:e.hour(),minute:e.minute(),second:e.second(),year:e.year(),month:e.month(),date:e.date()}),fe=(e,t,n)=>{const{hour:o,minute:a,second:i}=pe(e),s=zt(r.parsedValue);O.value=s?s.hour(o).minute(a).second(i):e,A(O.value,!0),n||(se.value=t)},he=e=>{const t=Wr()(e,re.value).locale(d.value);if(t.isValid()&&D(t)){const{year:e,month:n,date:r}=pe(O.value);O.value=t.year(e).month(n).date(r),j.value=null,se.value=!1,A(O.value,!0)}},me=e=>{const t=Zu(e,oe.value,d.value,f);if(t.isValid()){if(m&&m(t.toDate()))return;const{hour:e,minute:n,second:r}=pe(O.value);O.value=t.hour(e).minute(n).second(r),E.value=null,A(O.value,!0)}},ve=e=>Wr.a.isDayjs(e)&&e.isValid()&&(!m||!m(e.toDate())),ge=e=>Zu(e,r.format,d.value,f),_e=()=>{const e=Wr()(b.value).locale(d.value);if(!b.value){const e=w.value;return Wr()().hour(e.hour()).minute(e.minute()).second(e.second()).locale(d.value)}return e},be=()=>{var e,t;ue()(e=["week","month","year","date"]).call(e,B.value)&&(null===(t=y.value)||void 0===t||t.focus())},ye=()=>{be(),"week"===B.value&&Me(vt["a"].down)},Oe=e=>{var t,n;const r=Object(St["b"])(e);ue()(t=[vt["a"].up,vt["a"].down,vt["a"].left,vt["a"].right,vt["a"].home,vt["a"].end,vt["a"].pageUp,vt["a"].pageDown]).call(t,r)&&(Me(r),e.stopPropagation(),e.preventDefault()),ue()(n=[vt["a"].enter,vt["a"].space,vt["a"].numpadEnter]).call(n,r)&&null===E.value&&null===j.value&&(e.preventDefault(),A(O.value,!1))},Me=e=>{const{up:t,down:n,left:r,right:a,home:i,end:s,pageUp:c,pageDown:l}=vt["a"],u={year:{[t]:-4,[n]:4,[r]:-1,[a]:1,offset:(e,t)=>e.setFullYear(e.getFullYear()+t)},month:{[t]:-4,[n]:4,[r]:-1,[a]:1,offset:(e,t)=>e.setMonth(e.getMonth()+t)},week:{[t]:-1,[n]:1,[r]:-1,[a]:1,offset:(e,t)=>e.setDate(e.getDate()+7*t)},date:{[t]:-7,[n]:7,[r]:-1,[a]:1,[i]:e=>-e.getDay(),[s]:e=>6-e.getDay(),[c]:e=>-new Date(e.getFullYear(),e.getMonth(),0).getDate(),[l]:e=>new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),offset:(e,t)=>e.setDate(e.getDate()+t)}},p=O.value.toDate();while(Math.abs(O.value.diff(p,"year",!0))<1){var f;const t=u[G.value];if(!t)return;if(t.offset(p,Object(te["isFunction"])(t[e])?t[e](p):null!==(f=t[e])&&void 0!==f?f:0),m&&m(p))break;const n=Wr()(p).locale(d.value);O.value=n,o("pick",n,!0);break}},ke=e=>{o("panel-change",O.value.toDate(),e,P.value)};return Object(u["watch"])(()=>B.value,e=>{var t;ue()(t=["month","year"]).call(t,e)?P.value=e:P.value="years"!==e?"months"!==e?"date":"month":"year"},{immediate:!0}),Object(u["watch"])(()=>b.value,e=>{e&&(O.value=_e())},{immediate:!0}),Object(u["watch"])(()=>r.parsedValue,e=>{if(e){if(F.value)return;if(Object(te["isArray"])(e))return;O.value=e}else O.value=_e()},{immediate:!0}),o("set-picker-option",["isValidValue",ve]),o("set-picker-option",["parseUserInput",ge]),o("set-picker-option",["handleFocusPicker",ye]),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(a).b(),Object(u["unref"])(i).b(),Object(u["unref"])(a).is("border",e.border),Object(u["unref"])(a).is("disabled",Object(u["unref"])(q)),{"has-sidebar":e.$slots.sidebar||H.value,"has-time":K.value}])},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("body-wrapper"))},[Object(u["renderSlot"])(e.$slots,"sidebar",{class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("sidebar"))}),H.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("sidebar"))},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(Object(u["unref"])(h),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:t,type:"button",disabled:Object(u["unref"])(q),class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("shortcut")),onClick:t=>V(e)},Object(u["toDisplayString"])(e.text),11,Md))),128))],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("body"))},[K.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("time-header"))},[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("editor-wrap"))},[Object(u["createVNode"])(Object(u["unref"])(gn["a"]),{placeholder:Object(u["unref"])(l)("el.datepicker.selectDate"),"model-value":ie.value,size:"small","validate-event":!1,disabled:Object(u["unref"])(q),readonly:!e.editable,onInput:t[0]||(t[0]=e=>E.value=e),onChange:me},null,8,["placeholder","model-value","disabled","readonly"])],2),Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("editor-wrap"))},[Object(u["createVNode"])(Object(u["unref"])(gn["a"]),{placeholder:Object(u["unref"])(l)("el.datepicker.selectTime"),"model-value":ae.value,size:"small","validate-event":!1,disabled:Object(u["unref"])(q),readonly:!e.editable,onFocus:le,onInput:t[1]||(t[1]=e=>j.value=e),onChange:he},null,8,["placeholder","model-value","disabled","readonly"]),Object(u["createVNode"])(Object(u["unref"])(Lo),{visible:se.value,format:re.value,"parsed-value":O.value,onPick:fe},null,8,["visible","format","parsed-value"])],2)),[[Object(u["unref"])(ka),de]])],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["withDirectives"])(Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(i).e("header"),("year"===P.value||"month"===P.value)&&Object(u["unref"])(i).em("header","bordered")])},[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("prev-btn"))},[Object(u["createElementVNode"])("button",{type:"button","aria-label":Object(u["unref"])(l)("el.datepicker.prevYear"),class:Object(u["normalizeClass"])(["d-arrow-left",Object(u["unref"])(a).e("icon-btn")]),disabled:Object(u["unref"])(q),onClick:t[2]||(t[2]=e=>x(!1))},[Object(u["renderSlot"])(e.$slots,"prev-year",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["DArrowLeft"]))]),_:1})])],10,kd),Object(u["withDirectives"])(Object(u["createElementVNode"])("button",{type:"button","aria-label":Object(u["unref"])(l)("el.datepicker.prevMonth"),class:Object(u["normalizeClass"])([Object(u["unref"])(a).e("icon-btn"),"arrow-left"]),disabled:Object(u["unref"])(q),onClick:t[3]||(t[3]=e=>R(!1))},[Object(u["renderSlot"])(e.$slots,"prev-month",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowLeft"]))]),_:1})])],10,Cd),[[u["vShow"],"date"===P.value]])],2),Object(u["createElementVNode"])("span",{role:"button",class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("header-label")),"aria-live":"polite",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:t[4]||(t[4]=Object(u["withKeys"])(e=>W("year"),["enter"])),onClick:t[5]||(t[5]=e=>W("year"))},Object(u["toDisplayString"])(U.value),43,wd),Object(u["withDirectives"])(Object(u["createElementVNode"])("span",{role:"button","aria-live":"polite",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,class:Object(u["normalizeClass"])([Object(u["unref"])(i).e("header-label"),{active:"month"===P.value}]),onKeydown:t[6]||(t[6]=Object(u["withKeys"])(e=>W("month"),["enter"])),onClick:t[7]||(t[7]=e=>W("month"))},Object(u["toDisplayString"])(Object(u["unref"])(l)("el.datepicker.month"+(S.value+1))),43,Sd),[[u["vShow"],"date"===P.value]]),Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("next-btn"))},[Object(u["withDirectives"])(Object(u["createElementVNode"])("button",{type:"button","aria-label":Object(u["unref"])(l)("el.datepicker.nextMonth"),class:Object(u["normalizeClass"])([Object(u["unref"])(a).e("icon-btn"),"arrow-right"]),disabled:Object(u["unref"])(q),onClick:t[8]||(t[8]=e=>R(!0))},[Object(u["renderSlot"])(e.$slots,"next-month",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowRight"]))]),_:1})])],10,Td),[[u["vShow"],"date"===P.value]]),Object(u["createElementVNode"])("button",{type:"button","aria-label":Object(u["unref"])(l)("el.datepicker.nextYear"),class:Object(u["normalizeClass"])([Object(u["unref"])(a).e("icon-btn"),"d-arrow-right"]),disabled:Object(u["unref"])(q),onClick:t[9]||(t[9]=e=>x(!0))},[Object(u["renderSlot"])(e.$slots,"next-year",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["DArrowRight"]))]),_:1})])],10,Id)],2)],2),[[u["vShow"],"time"!==P.value]]),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("content")),onKeydown:Oe},["date"===P.value?(Object(u["openBlock"])(),Object(u["createBlock"])(dd,{key:0,ref_key:"currentViewRef",ref:y,"selection-mode":B.value,date:O.value,"parsed-value":e.parsedValue,"disabled-date":Object(u["unref"])(m),disabled:Object(u["unref"])(q),"cell-class-name":Object(u["unref"])(v),"show-week-number":e.showWeekNumber,onPick:N},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):Object(u["createCommentVNode"])("v-if",!0),"year"===P.value?(Object(u["openBlock"])(),Object(u["createBlock"])(Od,{key:1,ref_key:"currentViewRef",ref:y,"selection-mode":B.value,date:O.value,"disabled-date":Object(u["unref"])(m),disabled:Object(u["unref"])(q),"parsed-value":e.parsedValue,"cell-class-name":Object(u["unref"])(v),onPick:z},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):Object(u["createCommentVNode"])("v-if",!0),"month"===P.value?(Object(u["openBlock"])(),Object(u["createBlock"])(vd,{key:2,ref_key:"currentViewRef",ref:y,"selection-mode":B.value,date:O.value,"parsed-value":e.parsedValue,"disabled-date":Object(u["unref"])(m),disabled:Object(u["unref"])(q),"cell-class-name":Object(u["unref"])(v),onPick:Y},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):Object(u["createCommentVNode"])("v-if",!0)],34)],2)],2),e.showFooter&&$.value&&X.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("footer"))},[Object(u["withDirectives"])(Object(u["createVNode"])(Object(u["unref"])(Sr["a"]),{text:"",size:"small",class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("link-btn")),disabled:ee.value,onClick:ne},{default:Object(u["withCtx"])(()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(Object(u["unref"])(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[u["vShow"],!F.value&&e.showNow]]),e.showConfirm?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Sr["a"]),{key:0,plain:"",size:"small",class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("link-btn")),disabled:Q.value,onClick:Z},{default:Object(u["withCtx"])(()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(Object(u["unref"])(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):Object(u["createCommentVNode"])("v-if",!0)],2)):Object(u["createCommentVNode"])("v-if",!0)],2))}}),jd=Ed;const Dd=Object(c["b"])({...Hu,...Yu}),Ld=e=>{const{emit:t}=Object(u["getCurrentInstance"])(),n=Object(u["useAttrs"])(),r=Object(u["useSlots"])(),o=o=>{const a=Object(te["isFunction"])(o.value)?o.value():o.value;a?t("pick",[Wr()(a[0]).locale(e.value),Wr()(a[1]).locale(e.value)]):o.onClick&&o.onClick({attrs:n,slots:r,emit:t})};return o},Ad=(e,{defaultValue:t,defaultTime:n,leftDate:r,rightDate:o,step:a,unit:i,sortDates:s})=>{const{emit:c}=Object(u["getCurrentInstance"])(),{pickerNs:l}=Object(u["inject"])(Vu),d=Object(g["d"])("date-range-picker"),{t:p,lang:f}=Object(fr["b"])(),h=Ld(f),m=Object(u["ref"])(),v=Object(u["ref"])(),_=Object(u["ref"])({endDate:null,selecting:!1}),b=e=>{_.value=e},y=(e=!1)=>{const t=Object(u["unref"])(m),n=Object(u["unref"])(v);Wu([t,n])&&c("pick",[t,n],e)},O=e=>{_.value.selecting=e,e||(_.value.endDate=null)},M=e=>{if(Object(te["isArray"])(e)&&2===e.length){const[t,n]=e;m.value=t,r.value=t,v.value=n,s(Object(u["unref"])(m),Object(u["unref"])(v))}else k()},k=()=>{let[s,c]=Ku(Object(u["unref"])(t),{lang:Object(u["unref"])(f),step:a,unit:i,unlinkPanels:e.unlinkPanels});const l=e=>e.diff(e.startOf("d"),"ms"),d=Object(u["unref"])(n);if(d){let e=0,t=0;if(Object(te["isArray"])(d)){const[n,r]=J()(d).call(d,Wr.a);e=l(n),t=l(r)}else{const n=l(Wr()(d));e=n,t=n}s=s.startOf("d").add(e,"ms"),c=c.startOf("d").add(t,"ms")}m.value=void 0,v.value=void 0,r.value=s,o.value=c};return Object(u["watch"])(t,e=>{e&&k()},{immediate:!0}),Object(u["watch"])(()=>e.parsedValue,e=>{null!==e&&void 0!==e&&e.length&&Object(ne["isEqual"])(e,[m.value,v.value])||M(e)},{immediate:!0}),Object(u["watch"])(()=>e.visible,()=>{e.visible&&M(e.parsedValue)},{immediate:!0}),{minDate:m,maxDate:v,rangeState:_,lang:f,ppNs:l,drpNs:d,handleChangeRange:b,handleRangeConfirm:y,handleShortcutClick:h,onSelect:O,parseValue:M,t:p}},Nd=(e,t,n,r)=>{const o=Object(u["ref"])("date"),a=Object(u["ref"])(),i=Object(u["ref"])("date"),s=Object(u["ref"])(),{disabledDate:c}=Object(u["inject"])(Ir).props,{t:l,lang:d}=Object(fr["b"])(),p=Object(u["computed"])(()=>n.value.year()),f=Object(u["computed"])(()=>n.value.month()),h=Object(u["computed"])(()=>r.value.year()),m=Object(u["computed"])(()=>r.value.month());function v(e,t){const n=l("el.datepicker.year");if("year"===e.value){const e=10*Math.floor(t.value/10);return n?`${e} ${n} - ${e+9} ${n}`:`${e} - ${e+9}`}return`${t.value} ${n}`}function g(e){null===e||void 0===e||e.focus()}async function _(t,n){if(e.disabled)return;const r="left"===t?o:i,c="left"===t?a:s;r.value=n,await Object(u["nextTick"])(),g(c.value)}async function b(t,l,p){if(e.disabled)return;const f="left"===l,h=f?n:r,m=f?r:n,v=f?o:i,_=f?a:s;"year"===t&&(h.value=Qu(h.value.year(p),d.value,c)),"month"===t&&(h.value=Xu(h.value,h.value.year(),p,d.value,c)),e.unlinkPanels||(m.value="left"===l?h.value.add(1,"month"):h.value.subtract(1,"month")),v.value="year"===t?"month":"date",await Object(u["nextTick"])(),g(_.value),y(t)}function y(e){t("panel-change",[n.value.toDate(),r.value.toDate()],e)}function O(e,t,n){const r=n?"add":"subtract";return"year"===e?t[r](10,"year"):t[r](1,"year")}return{leftCurrentView:o,rightCurrentView:i,leftCurrentViewRef:a,rightCurrentViewRef:s,leftYear:p,rightYear:h,leftMonth:f,rightMonth:m,leftYearLabel:Object(u["computed"])(()=>v(o,p)),rightYearLabel:Object(u["computed"])(()=>v(i,h)),showLeftPicker:e=>_("left",e),showRightPicker:e=>_("right",e),handleLeftYearPick:e=>b("year","left",e),handleRightYearPick:e=>b("year","right",e),handleLeftMonthPick:e=>b("month","left",e),handleRightMonthPick:e=>b("month","right",e),handlePanelChange:y,adjustDateByView:O}},Rd=["disabled","onClick"],xd=["aria-label","disabled"],Pd=["aria-label","disabled"],Ud=["disabled","aria-label"],Vd=["disabled","aria-label"],Bd=["tabindex","aria-disabled"],Fd=["tabindex","aria-disabled"],Gd=["disabled","aria-label"],Hd=["disabled","aria-label"],Yd=["aria-label","disabled"],zd=["disabled","aria-label"],qd=["tabindex","aria-disabled"],Wd=["tabindex","aria-disabled"],Kd="month";var $d=Object(u["defineComponent"])({__name:"panel-date-range",props:Dd,emits:["pick","set-picker-option","calendar-change","panel-change","clear"],setup(e,{emit:t}){const n=e,r=t,o=Object(u["inject"])(Ir),a=Object(u["inject"])(Bu,void 0),{disabledDate:i,cellClassName:s,defaultTime:c,clearable:l}=o.props,d=Object(u["toRef"])(o.props,"format"),p=Object(u["toRef"])(o.props,"shortcuts"),f=Object(u["toRef"])(o.props,"defaultValue"),{lang:h}=Object(fr["b"])(),m=Object(u["ref"])(Wr()().locale(h.value)),v=Object(u["ref"])(Wr()().locale(h.value).add(1,Kd)),{minDate:g,maxDate:_,rangeState:b,ppNs:y,drpNs:O,handleChangeRange:M,handleRangeConfirm:C,handleShortcutClick:w,onSelect:S,parseValue:T,t:I}=Ad(n,{defaultValue:f,defaultTime:c,leftDate:m,rightDate:v,unit:Kd,sortDates:Le});Object(u["watch"])(()=>n.visible,e=>{!e&&b.value.selecting&&(T(n.parsedValue),S(!1))});const E=Object(u["ref"])({min:null,max:null}),j=Object(u["ref"])({min:null,max:null}),{leftCurrentView:D,rightCurrentView:L,leftCurrentViewRef:A,rightCurrentViewRef:N,leftYear:R,rightYear:x,leftMonth:P,rightMonth:U,leftYearLabel:V,rightYearLabel:B,showLeftPicker:F,showRightPicker:G,handleLeftYearPick:H,handleRightYearPick:Y,handleLeftMonthPick:z,handleRightMonthPick:q,handlePanelChange:W,adjustDateByView:K}=Nd(n,r,m,v),$=Object(u["computed"])(()=>!!p.value.length),J=Object(u["computed"])(()=>null!==E.value.min?E.value.min:g.value?g.value.format(te.value):""),X=Object(u["computed"])(()=>null!==E.value.max?E.value.max:_.value||g.value?(_.value||g.value).format(te.value):""),Q=Object(u["computed"])(()=>null!==j.value.min?j.value.min:g.value?g.value.format(ee.value):""),Z=Object(u["computed"])(()=>null!==j.value.max?j.value.max:_.value||g.value?(_.value||g.value).format(ee.value):""),ee=Object(u["computed"])(()=>n.timeFormat||Xr(d.value||"")||Dr),te=Object(u["computed"])(()=>n.dateFormat||Jr(d.value||"")||Lr),ne=e=>Wu(e)&&(!i||!i(e[0].toDate())&&!i(e[1].toDate())),re=()=>{m.value=K(D.value,m.value,!1),n.unlinkPanels||(v.value=m.value.add(1,"month")),W("year")},oe=()=>{m.value=m.value.subtract(1,"month"),n.unlinkPanels||(v.value=m.value.add(1,"month")),W("month")},ae=()=>{n.unlinkPanels?v.value=K(L.value,v.value,!0):(m.value=K(L.value,m.value,!0),v.value=m.value.add(1,"month")),W("year")},ie=()=>{n.unlinkPanels?v.value=v.value.add(1,"month"):(m.value=m.value.add(1,"month"),v.value=m.value.add(1,"month")),W("month")},se=()=>{m.value=K(D.value,m.value,!0),W("year")},le=()=>{m.value=m.value.add(1,"month"),W("month")},ue=()=>{v.value=K(L.value,v.value,!1),W("year")},de=()=>{v.value=v.value.subtract(1,"month"),W("month")},pe=Object(u["computed"])(()=>{const e=(P.value+1)%12,t=P.value+1>=12?1:0;return n.unlinkPanels&&new Date(R.value+t,e)<new Date(x.value,U.value)}),fe=Object(u["computed"])(()=>n.unlinkPanels&&12*x.value+U.value-(12*R.value+P.value+1)>=12),he=Object(ce["a"])(),me=Object(u["computed"])(()=>!(g.value&&_.value&&!b.value.selecting&&Wu([g.value,_.value])&&!he.value)),ve=Object(u["computed"])(()=>"datetime"===n.type||"datetimerange"===n.type),ge=(e,t)=>{if(e)return c?Wr()(c[t]||c).locale(h.value).year(e.year()).month(e.month()).date(e.date()):e},_e=(e,t=!0)=>{const n=e.minDate,o=e.maxDate,a=ge(n,0),i=ge(o,1);_.value===i&&g.value===a||(r("calendar-change",[n.toDate(),o&&o.toDate()]),_.value=i,g.value=a,!ve.value&&t&&(t=!a||!i),C(t))},be=Object(u["ref"])(!1),ye=Object(u["ref"])(!1),Oe=()=>{be.value=!1},Me=()=>{ye.value=!1},ke=(e,t)=>{E.value[t]=e;const r=Wr()(e,te.value).locale(h.value);if(r.isValid()){if(i&&i(r.toDate()))return;"min"===t?(m.value=r,g.value=(g.value||m.value).year(r.year()).month(r.month()).date(r.date()),n.unlinkPanels||_.value&&!_.value.isBefore(g.value)||(v.value=r.add(1,"month"),_.value=g.value.add(1,"month"))):(v.value=r,_.value=(_.value||v.value).year(r.year()).month(r.month()).date(r.date()),n.unlinkPanels||g.value&&!g.value.isAfter(_.value)||(m.value=r.subtract(1,"month"),g.value=_.value.subtract(1,"month"))),Le(g.value,_.value),C(!0)}},Ce=(e,t)=>{E.value[t]=null},we=(e,t)=>{j.value[t]=e;const n=Wr()(e,ee.value).locale(h.value);n.isValid()&&("min"===t?(be.value=!0,g.value=(g.value||m.value).hour(n.hour()).minute(n.minute()).second(n.second()),m.value=g.value):(ye.value=!0,_.value=(_.value||v.value).hour(n.hour()).minute(n.minute()).second(n.second()),v.value=_.value))},Se=(e,t)=>{j.value[t]=null,"min"===t?(m.value=g.value,be.value=!1,_.value&&!_.value.isBefore(g.value)||(_.value=g.value)):(v.value=_.value,ye.value=!1,_.value&&_.value.isBefore(g.value)&&(g.value=_.value)),C(!0)},Te=(e,t,r)=>{j.value.min||(e&&(g.value=(g.value||m.value).hour(e.hour()).minute(e.minute()).second(e.second())),r||(be.value=t),_.value&&!_.value.isBefore(g.value)||(_.value=g.value,v.value=e,Object(u["nextTick"])(()=>{T(n.parsedValue)})),C(!0))},Ie=(e,t,n)=>{j.value.max||(e&&(_.value=(_.value||v.value).hour(e.hour()).minute(e.minute()).second(e.second())),n||(ye.value=t),_.value&&_.value.isBefore(g.value)&&(g.value=_.value),C(!0))},Ee=()=>{je(),r("clear")},je=()=>{let e=null;null!==o&&void 0!==o&&o.emptyValues&&(e=o.emptyValues.valueOnClear.value),m.value=Ku(Object(u["unref"])(f),{lang:Object(u["unref"])(h),unit:"month",unlinkPanels:n.unlinkPanels})[0],v.value=m.value.add(1,"month"),_.value=void 0,g.value=void 0,C(!0),r("pick",e)},De=e=>Zu(e,d.value||"",h.value,a);function Le(e,t){if(n.unlinkPanels&&t){const n=(null===e||void 0===e?void 0:e.year())||0,r=(null===e||void 0===e?void 0:e.month())||0,o=t.year(),a=t.month();v.value=n===o&&r===a?t.add(1,Kd):t}else v.value=m.value.add(1,Kd),t&&(v.value=v.value.hour(t.hour()).minute(t.minute()).second(t.second()))}return r("set-picker-option",["isValidValue",ne]),r("set-picker-option",["parseUserInput",De]),r("set-picker-option",["handleClear",je]),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(y).b(),Object(u["unref"])(O).b(),Object(u["unref"])(y).is("border",e.border),Object(u["unref"])(y).is("disabled",Object(u["unref"])(he)),{"has-sidebar":e.$slots.sidebar||$.value,"has-time":ve.value}])},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(y).e("body-wrapper"))},[Object(u["renderSlot"])(e.$slots,"sidebar",{class:Object(u["normalizeClass"])(Object(u["unref"])(y).e("sidebar"))}),$.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(y).e("sidebar"))},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(p.value,(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:t,type:"button",disabled:Object(u["unref"])(he),class:Object(u["normalizeClass"])(Object(u["unref"])(y).e("shortcut")),onClick:t=>Object(u["unref"])(w)(e)},Object(u["toDisplayString"])(e.text),11,Rd))),128))],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(y).e("body"))},[ve.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(O).e("time-header"))},[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(O).e("editors-wrap"))},[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(O).e("time-picker-wrap"))},[Object(u["createVNode"])(Object(u["unref"])(gn["a"]),{size:"small",disabled:Object(u["unref"])(b).selecting||Object(u["unref"])(he),placeholder:Object(u["unref"])(I)("el.datepicker.startDate"),class:Object(u["normalizeClass"])(Object(u["unref"])(O).e("editor")),"model-value":J.value,"validate-event":!1,readonly:!e.editable,onInput:t[0]||(t[0]=e=>ke(e,"min")),onChange:t[1]||(t[1]=e=>Ce(e,"min"))},null,8,["disabled","placeholder","class","model-value","readonly"])],2),Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(O).e("time-picker-wrap"))},[Object(u["createVNode"])(Object(u["unref"])(gn["a"]),{size:"small",class:Object(u["normalizeClass"])(Object(u["unref"])(O).e("editor")),disabled:Object(u["unref"])(b).selecting||Object(u["unref"])(he),placeholder:Object(u["unref"])(I)("el.datepicker.startTime"),"model-value":Q.value,"validate-event":!1,readonly:!e.editable,onFocus:t[2]||(t[2]=e=>be.value=!0),onInput:t[3]||(t[3]=e=>we(e,"min")),onChange:t[4]||(t[4]=e=>Se(e,"min"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Object(u["createVNode"])(Object(u["unref"])(Lo),{visible:be.value,format:ee.value,"datetime-role":"start","parsed-value":Object(u["unref"])(g)||m.value,onPick:Te},null,8,["visible","format","parsed-value"])],2)),[[Object(u["unref"])(ka),Oe]])],2),Object(u["createElementVNode"])("span",null,[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowRight"]))]),_:1})]),Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])([Object(u["unref"])(O).e("editors-wrap"),"is-right"])},[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(O).e("time-picker-wrap"))},[Object(u["createVNode"])(Object(u["unref"])(gn["a"]),{size:"small",class:Object(u["normalizeClass"])(Object(u["unref"])(O).e("editor")),disabled:Object(u["unref"])(b).selecting||Object(u["unref"])(he),placeholder:Object(u["unref"])(I)("el.datepicker.endDate"),"model-value":X.value,readonly:!Object(u["unref"])(g)||!e.editable,"validate-event":!1,onInput:t[5]||(t[5]=e=>ke(e,"max")),onChange:t[6]||(t[6]=e=>Ce(e,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(O).e("time-picker-wrap"))},[Object(u["createVNode"])(Object(u["unref"])(gn["a"]),{size:"small",class:Object(u["normalizeClass"])(Object(u["unref"])(O).e("editor")),disabled:Object(u["unref"])(b).selecting||Object(u["unref"])(he),placeholder:Object(u["unref"])(I)("el.datepicker.endTime"),"model-value":Z.value,readonly:!Object(u["unref"])(g)||!e.editable,"validate-event":!1,onFocus:t[7]||(t[7]=e=>Object(u["unref"])(g)&&(ye.value=!0)),onInput:t[8]||(t[8]=e=>we(e,"max")),onChange:t[9]||(t[9]=e=>Se(e,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Object(u["createVNode"])(Object(u["unref"])(Lo),{"datetime-role":"end",visible:ye.value,format:ee.value,"parsed-value":Object(u["unref"])(_)||v.value,onPick:Ie},null,8,["visible","format","parsed-value"])],2)),[[Object(u["unref"])(ka),Me]])],2)],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([[Object(u["unref"])(y).e("content"),Object(u["unref"])(O).e("content")],"is-left"])},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(O).e("header"))},[Object(u["createElementVNode"])("button",{type:"button",class:Object(u["normalizeClass"])([Object(u["unref"])(y).e("icon-btn"),"d-arrow-left"]),"aria-label":Object(u["unref"])(I)("el.datepicker.prevYear"),disabled:Object(u["unref"])(he),onClick:re},[Object(u["renderSlot"])(e.$slots,"prev-year",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["DArrowLeft"]))]),_:1})])],10,xd),Object(u["withDirectives"])(Object(u["createElementVNode"])("button",{type:"button",class:Object(u["normalizeClass"])([Object(u["unref"])(y).e("icon-btn"),"arrow-left"]),"aria-label":Object(u["unref"])(I)("el.datepicker.prevMonth"),disabled:Object(u["unref"])(he),onClick:oe},[Object(u["renderSlot"])(e.$slots,"prev-month",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowLeft"]))]),_:1})])],10,Pd),[[u["vShow"],"date"===Object(u["unref"])(D)]]),e.unlinkPanels?(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:0,type:"button",disabled:!fe.value||Object(u["unref"])(he),class:Object(u["normalizeClass"])([[Object(u["unref"])(y).e("icon-btn"),Object(u["unref"])(y).is("disabled",!fe.value||Object(u["unref"])(he))],"d-arrow-right"]),"aria-label":Object(u["unref"])(I)("el.datepicker.nextYear"),onClick:se},[Object(u["renderSlot"])(e.$slots,"next-year",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["DArrowRight"]))]),_:1})])],10,Ud)):Object(u["createCommentVNode"])("v-if",!0),e.unlinkPanels&&"date"===Object(u["unref"])(D)?(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:1,type:"button",disabled:!pe.value||Object(u["unref"])(he),class:Object(u["normalizeClass"])([[Object(u["unref"])(y).e("icon-btn"),Object(u["unref"])(y).is("disabled",!pe.value||Object(u["unref"])(he))],"arrow-right"]),"aria-label":Object(u["unref"])(I)("el.datepicker.nextMonth"),onClick:le},[Object(u["renderSlot"])(e.$slots,"next-month",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowRight"]))]),_:1})])],10,Vd)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",null,[Object(u["createElementVNode"])("span",{role:"button",class:Object(u["normalizeClass"])(Object(u["unref"])(O).e("header-label")),"aria-live":"polite",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:t[10]||(t[10]=Object(u["withKeys"])(e=>Object(u["unref"])(F)("year"),["enter"])),onClick:t[11]||(t[11]=e=>Object(u["unref"])(F)("year"))},Object(u["toDisplayString"])(Object(u["unref"])(V)),43,Bd),Object(u["withDirectives"])(Object(u["createElementVNode"])("span",{role:"button","aria-live":"polite",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,class:Object(u["normalizeClass"])([Object(u["unref"])(O).e("header-label"),{active:"month"===Object(u["unref"])(D)}]),onKeydown:t[12]||(t[12]=Object(u["withKeys"])(e=>Object(u["unref"])(F)("month"),["enter"])),onClick:t[13]||(t[13]=e=>Object(u["unref"])(F)("month"))},Object(u["toDisplayString"])(Object(u["unref"])(I)("el.datepicker.month"+(m.value.month()+1))),43,Fd),[[u["vShow"],"date"===Object(u["unref"])(D)]])])],2),"date"===Object(u["unref"])(D)?(Object(u["openBlock"])(),Object(u["createBlock"])(dd,{key:0,ref_key:"leftCurrentViewRef",ref:A,"selection-mode":"range",date:m.value,"min-date":Object(u["unref"])(g),"max-date":Object(u["unref"])(_),"range-state":Object(u["unref"])(b),"disabled-date":Object(u["unref"])(i),"cell-class-name":Object(u["unref"])(s),"show-week-number":e.showWeekNumber,disabled:Object(u["unref"])(he),onChangerange:Object(u["unref"])(M),onPick:_e,onSelect:Object(u["unref"])(S)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):Object(u["createCommentVNode"])("v-if",!0),"year"===Object(u["unref"])(D)?(Object(u["openBlock"])(),Object(u["createBlock"])(Od,{key:1,ref_key:"leftCurrentViewRef",ref:A,"selection-mode":"year",date:m.value,"disabled-date":Object(u["unref"])(i),"parsed-value":e.parsedValue,disabled:Object(u["unref"])(he),onPick:Object(u["unref"])(H)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):Object(u["createCommentVNode"])("v-if",!0),"month"===Object(u["unref"])(D)?(Object(u["openBlock"])(),Object(u["createBlock"])(vd,{key:2,ref_key:"leftCurrentViewRef",ref:A,"selection-mode":"month",date:m.value,"parsed-value":e.parsedValue,"disabled-date":Object(u["unref"])(i),disabled:Object(u["unref"])(he),onPick:Object(u["unref"])(z)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):Object(u["createCommentVNode"])("v-if",!0)],2),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([[Object(u["unref"])(y).e("content"),Object(u["unref"])(O).e("content")],"is-right"])},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(O).e("header"))},[e.unlinkPanels?(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:0,type:"button",disabled:!fe.value||Object(u["unref"])(he),class:Object(u["normalizeClass"])([[Object(u["unref"])(y).e("icon-btn"),Object(u["unref"])(y).is("disabled",!fe.value||Object(u["unref"])(he))],"d-arrow-left"]),"aria-label":Object(u["unref"])(I)("el.datepicker.prevYear"),onClick:ue},[Object(u["renderSlot"])(e.$slots,"prev-year",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["DArrowLeft"]))]),_:1})])],10,Gd)):Object(u["createCommentVNode"])("v-if",!0),e.unlinkPanels&&"date"===Object(u["unref"])(L)?(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:1,type:"button",disabled:!pe.value||Object(u["unref"])(he),class:Object(u["normalizeClass"])([[Object(u["unref"])(y).e("icon-btn"),Object(u["unref"])(y).is("disabled",!pe.value||Object(u["unref"])(he))],"arrow-left"]),"aria-label":Object(u["unref"])(I)("el.datepicker.prevMonth"),onClick:de},[Object(u["renderSlot"])(e.$slots,"prev-month",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowLeft"]))]),_:1})])],10,Hd)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("button",{type:"button","aria-label":Object(u["unref"])(I)("el.datepicker.nextYear"),class:Object(u["normalizeClass"])([Object(u["unref"])(y).e("icon-btn"),"d-arrow-right"]),disabled:Object(u["unref"])(he),onClick:ae},[Object(u["renderSlot"])(e.$slots,"next-year",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["DArrowRight"]))]),_:1})])],10,Yd),Object(u["withDirectives"])(Object(u["createElementVNode"])("button",{type:"button",class:Object(u["normalizeClass"])([Object(u["unref"])(y).e("icon-btn"),"arrow-right"]),disabled:Object(u["unref"])(he),"aria-label":Object(u["unref"])(I)("el.datepicker.nextMonth"),onClick:ie},[Object(u["renderSlot"])(e.$slots,"next-month",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowRight"]))]),_:1})])],10,zd),[[u["vShow"],"date"===Object(u["unref"])(L)]]),Object(u["createElementVNode"])("div",null,[Object(u["createElementVNode"])("span",{role:"button",class:Object(u["normalizeClass"])(Object(u["unref"])(O).e("header-label")),"aria-live":"polite",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:t[14]||(t[14]=Object(u["withKeys"])(e=>Object(u["unref"])(G)("year"),["enter"])),onClick:t[15]||(t[15]=e=>Object(u["unref"])(G)("year"))},Object(u["toDisplayString"])(Object(u["unref"])(B)),43,qd),Object(u["withDirectives"])(Object(u["createElementVNode"])("span",{role:"button","aria-live":"polite",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,class:Object(u["normalizeClass"])([Object(u["unref"])(O).e("header-label"),{active:"month"===Object(u["unref"])(L)}]),onKeydown:t[16]||(t[16]=Object(u["withKeys"])(e=>Object(u["unref"])(G)("month"),["enter"])),onClick:t[17]||(t[17]=e=>Object(u["unref"])(G)("month"))},Object(u["toDisplayString"])(Object(u["unref"])(I)("el.datepicker.month"+(v.value.month()+1))),43,Wd),[[u["vShow"],"date"===Object(u["unref"])(L)]])])],2),"date"===Object(u["unref"])(L)?(Object(u["openBlock"])(),Object(u["createBlock"])(dd,{key:0,ref_key:"rightCurrentViewRef",ref:N,"selection-mode":"range",date:v.value,"min-date":Object(u["unref"])(g),"max-date":Object(u["unref"])(_),"range-state":Object(u["unref"])(b),"disabled-date":Object(u["unref"])(i),"cell-class-name":Object(u["unref"])(s),"show-week-number":e.showWeekNumber,disabled:Object(u["unref"])(he),onChangerange:Object(u["unref"])(M),onPick:_e,onSelect:Object(u["unref"])(S)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):Object(u["createCommentVNode"])("v-if",!0),"year"===Object(u["unref"])(L)?(Object(u["openBlock"])(),Object(u["createBlock"])(Od,{key:1,ref_key:"rightCurrentViewRef",ref:N,"selection-mode":"year",date:v.value,"disabled-date":Object(u["unref"])(i),"parsed-value":e.parsedValue,disabled:Object(u["unref"])(he),onPick:Object(u["unref"])(Y)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):Object(u["createCommentVNode"])("v-if",!0),"month"===Object(u["unref"])(L)?(Object(u["openBlock"])(),Object(u["createBlock"])(vd,{key:2,ref_key:"rightCurrentViewRef",ref:N,"selection-mode":"month",date:v.value,"parsed-value":e.parsedValue,"disabled-date":Object(u["unref"])(i),disabled:Object(u["unref"])(he),onPick:Object(u["unref"])(q)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):Object(u["createCommentVNode"])("v-if",!0)],2)],2)],2),e.showFooter&&ve.value&&(e.showConfirm||Object(u["unref"])(l))?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(y).e("footer"))},[Object(u["unref"])(l)?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Sr["a"]),{key:0,text:"",size:"small",class:Object(u["normalizeClass"])(Object(u["unref"])(y).e("link-btn")),onClick:Ee},{default:Object(u["withCtx"])(()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(Object(u["unref"])(I)("el.datepicker.clear")),1)]),_:1},8,["class"])):Object(u["createCommentVNode"])("v-if",!0),e.showConfirm?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Sr["a"]),{key:1,plain:"",size:"small",class:Object(u["normalizeClass"])(Object(u["unref"])(y).e("link-btn")),disabled:me.value,onClick:t[18]||(t[18]=e=>Object(u["unref"])(C)(!1))},{default:Object(u["withCtx"])(()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(Object(u["unref"])(I)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):Object(u["createCommentVNode"])("v-if",!0)],2)):Object(u["createCommentVNode"])("v-if",!0)],2))}}),Jd=$d;const Xd=Object(c["b"])({...Yu}),Qd=["pick","set-picker-option","calendar-change"],Zd=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=Object(fr["b"])(),o=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},a=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},i=()=>{t.value=t.value.add(1,"year")},s=()=>{n.value=n.value.subtract(1,"year")};return{leftPrevYear:o,rightNextYear:a,leftNextYear:i,rightPrevYear:s,leftLabel:Object(u["computed"])(()=>`${t.value.year()} ${r("el.datepicker.year")}`),rightLabel:Object(u["computed"])(()=>`${n.value.year()} ${r("el.datepicker.year")}`),leftYear:Object(u["computed"])(()=>t.value.year()),rightYear:Object(u["computed"])(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year())}},ep=["disabled","onClick"],tp=["disabled"],np=["disabled"],rp=["disabled"],op=["disabled"],ap="year";var ip=Object(u["defineComponent"])({name:"DatePickerMonthRange",__name:"panel-month-range",props:Xd,emits:Qd,setup(e,{emit:t}){const n=e,r=t,{lang:o}=Object(fr["b"])(),a=Object(u["inject"])(Ir),i=Object(u["inject"])(Bu,void 0),{shortcuts:s,disabledDate:c,cellClassName:l}=a.props,d=Object(u["toRef"])(a.props,"format"),p=Object(u["toRef"])(a.props,"defaultValue"),f=Object(u["ref"])(Wr()().locale(o.value)),h=Object(u["ref"])(Wr()().locale(o.value).add(1,ap)),{minDate:m,maxDate:v,rangeState:g,ppNs:_,drpNs:b,handleChangeRange:y,handleRangeConfirm:O,handleShortcutClick:M,onSelect:C,parseValue:w}=Ad(n,{defaultValue:p,leftDate:f,rightDate:h,unit:ap,sortDates:V}),S=Object(u["computed"])(()=>!!s.length),{leftPrevYear:T,rightNextYear:I,leftNextYear:E,rightPrevYear:j,leftLabel:D,rightLabel:L,leftYear:A,rightYear:N}=Zd({unlinkPanels:Object(u["toRef"])(n,"unlinkPanels"),leftDate:f,rightDate:h}),R=Object(u["computed"])(()=>n.unlinkPanels&&N.value>A.value+1),x=(e,t=!0)=>{const n=e.minDate,o=e.maxDate;v.value===o&&m.value===n||(r("calendar-change",[n.toDate(),o&&o.toDate()]),v.value=o,m.value=n,t&&O())},P=()=>{let e=null;null!==a&&void 0!==a&&a.emptyValues&&(e=a.emptyValues.valueOnClear.value),f.value=Ku(Object(u["unref"])(p),{lang:Object(u["unref"])(o),unit:"year",unlinkPanels:n.unlinkPanels})[0],h.value=f.value.add(1,"year"),r("pick",e)},U=e=>Zu(e,d.value,o.value,i);function V(e,t){n.unlinkPanels&&t?h.value=((null===e||void 0===e?void 0:e.year())||0)===t.year()?t.add(1,ap):t:h.value=f.value.add(1,ap)}const B=Object(ce["a"])();return Object(u["watch"])(()=>n.visible,e=>{!e&&g.value.selecting&&(w(n.parsedValue),C(!1))}),r("set-picker-option",["isValidValue",Wu]),r("set-picker-option",["parseUserInput",U]),r("set-picker-option",["handleClear",P]),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(_).b(),Object(u["unref"])(b).b(),Object(u["unref"])(_).is("border",e.border),Object(u["unref"])(_).is("disabled",Object(u["unref"])(B)),{"has-sidebar":Boolean(e.$slots.sidebar)||S.value}])},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(_).e("body-wrapper"))},[Object(u["renderSlot"])(e.$slots,"sidebar",{class:Object(u["normalizeClass"])(Object(u["unref"])(_).e("sidebar"))}),S.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(_).e("sidebar"))},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(Object(u["unref"])(s),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:t,type:"button",class:Object(u["normalizeClass"])(Object(u["unref"])(_).e("shortcut")),disabled:Object(u["unref"])(B),onClick:t=>Object(u["unref"])(M)(e)},Object(u["toDisplayString"])(e.text),11,ep))),128))],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(_).e("body"))},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([[Object(u["unref"])(_).e("content"),Object(u["unref"])(b).e("content")],"is-left"])},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(b).e("header"))},[Object(u["createElementVNode"])("button",{type:"button",class:Object(u["normalizeClass"])([Object(u["unref"])(_).e("icon-btn"),"d-arrow-left"]),disabled:Object(u["unref"])(B),onClick:t[0]||(t[0]=(...e)=>Object(u["unref"])(T)&&Object(u["unref"])(T)(...e))},[Object(u["renderSlot"])(e.$slots,"prev-year",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["DArrowLeft"]))]),_:1})])],10,tp),e.unlinkPanels?(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:0,type:"button",disabled:!R.value||Object(u["unref"])(B),class:Object(u["normalizeClass"])([[Object(u["unref"])(_).e("icon-btn"),Object(u["unref"])(_).is("disabled",!R.value||Object(u["unref"])(B))],"d-arrow-right"]),onClick:t[1]||(t[1]=(...e)=>Object(u["unref"])(E)&&Object(u["unref"])(E)(...e))},[Object(u["renderSlot"])(e.$slots,"next-year",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["DArrowRight"]))]),_:1})])],10,np)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",null,Object(u["toDisplayString"])(Object(u["unref"])(D)),1)],2),Object(u["createVNode"])(vd,{"selection-mode":"range",date:f.value,"min-date":Object(u["unref"])(m),"max-date":Object(u["unref"])(v),"range-state":Object(u["unref"])(g),"disabled-date":Object(u["unref"])(c),disabled:Object(u["unref"])(B),"cell-class-name":Object(u["unref"])(l),onChangerange:Object(u["unref"])(y),onPick:x,onSelect:Object(u["unref"])(C)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([[Object(u["unref"])(_).e("content"),Object(u["unref"])(b).e("content")],"is-right"])},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(b).e("header"))},[e.unlinkPanels?(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:0,type:"button",disabled:!R.value||Object(u["unref"])(B),class:Object(u["normalizeClass"])([[Object(u["unref"])(_).e("icon-btn"),Object(u["unref"])(_).is("disabled",!R.value||Object(u["unref"])(B))],"d-arrow-left"]),onClick:t[2]||(t[2]=(...e)=>Object(u["unref"])(j)&&Object(u["unref"])(j)(...e))},[Object(u["renderSlot"])(e.$slots,"prev-year",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["DArrowLeft"]))]),_:1})])],10,rp)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("button",{type:"button",class:Object(u["normalizeClass"])([Object(u["unref"])(_).e("icon-btn"),"d-arrow-right"]),disabled:Object(u["unref"])(B),onClick:t[3]||(t[3]=(...e)=>Object(u["unref"])(I)&&Object(u["unref"])(I)(...e))},[Object(u["renderSlot"])(e.$slots,"next-year",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["DArrowRight"]))]),_:1})])],10,op),Object(u["createElementVNode"])("div",null,Object(u["toDisplayString"])(Object(u["unref"])(L)),1)],2),Object(u["createVNode"])(vd,{"selection-mode":"range",date:h.value,"min-date":Object(u["unref"])(m),"max-date":Object(u["unref"])(v),"range-state":Object(u["unref"])(g),"disabled-date":Object(u["unref"])(c),disabled:Object(u["unref"])(B),"cell-class-name":Object(u["unref"])(l),onChangerange:Object(u["unref"])(y),onPick:x,onSelect:Object(u["unref"])(C)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}}),sp=ip;const cp=Object(c["b"])({...Yu}),lp=["pick","set-picker-option","calendar-change"],up=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const r=()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},o=()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},a=()=>{t.value=t.value.add(10,"year")},i=()=>{n.value=n.value.subtract(10,"year")};return{leftPrevYear:r,rightNextYear:o,leftNextYear:a,rightPrevYear:i,leftLabel:Object(u["computed"])(()=>{const e=10*Math.floor(t.value.year()/10);return`${e}-${e+9}`}),rightLabel:Object(u["computed"])(()=>{const e=10*Math.floor(n.value.year()/10);return`${e}-${e+9}`}),leftYear:Object(u["computed"])(()=>10*Math.floor(t.value.year()/10)+9),rightYear:Object(u["computed"])(()=>10*Math.floor(n.value.year()/10))}},dp=["disabled","onClick"],pp=["disabled"],fp=["disabled"],hp=["disabled"],mp=["disabled"],vp=10,gp="year";var _p=Object(u["defineComponent"])({name:"DatePickerYearRange",__name:"panel-year-range",props:cp,emits:lp,setup(e,{emit:t}){const n=e,r=t,{lang:o}=Object(fr["b"])(),a=Object(u["ref"])(Wr()().locale(o.value)),i=Object(u["ref"])(Wr()().locale(o.value).add(vp,gp)),s=Object(u["inject"])(Bu,void 0),c=Object(u["inject"])(Ir),{shortcuts:l,disabledDate:d,cellClassName:p}=c.props,f=Object(u["toRef"])(c.props,"format"),h=Object(u["toRef"])(c.props,"defaultValue"),{minDate:m,maxDate:v,rangeState:g,ppNs:_,drpNs:b,handleChangeRange:y,handleRangeConfirm:O,handleShortcutClick:M,onSelect:C,parseValue:w}=Ad(n,{defaultValue:h,leftDate:a,rightDate:i,step:vp,unit:gp,sortDates:Y}),{leftPrevYear:S,rightNextYear:T,leftNextYear:I,rightPrevYear:E,leftLabel:j,rightLabel:D,leftYear:L,rightYear:A}=up({unlinkPanels:Object(u["toRef"])(n,"unlinkPanels"),leftDate:a,rightDate:i}),N=Object(ce["a"])(),R=Object(u["computed"])(()=>!!l.length),x=Object(u["computed"])(()=>[_.b(),b.b(),_.is("border",n.border),_.is("disabled",N.value),{"has-sidebar":Boolean(Object(u["useSlots"])().sidebar)||R.value}]),P=Object(u["computed"])(()=>({content:[_.e("content"),b.e("content"),"is-left"],arrowLeftBtn:[_.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[_.e("icon-btn"),_.is("disabled",!V.value||N.value),"d-arrow-right"]})),U=Object(u["computed"])(()=>({content:[_.e("content"),b.e("content"),"is-right"],arrowLeftBtn:[_.e("icon-btn"),_.is("disabled",!V.value||N.value),"d-arrow-left"],arrowRightBtn:[_.e("icon-btn"),"d-arrow-right"]})),V=Object(u["computed"])(()=>n.unlinkPanels&&A.value>L.value+1),B=(e,t=!0)=>{const n=e.minDate,o=e.maxDate;v.value===o&&m.value===n||(r("calendar-change",[n.toDate(),o&&o.toDate()]),v.value=o,m.value=n,t&&O())},F=e=>Zu(e,f.value,o.value,s),G=e=>Wu(e)&&(!d||!d(e[0].toDate())&&!d(e[1].toDate())),H=()=>{let e=null;null!==c&&void 0!==c&&c.emptyValues&&(e=c.emptyValues.valueOnClear.value);const t=Ku(Object(u["unref"])(h),{lang:Object(u["unref"])(o),step:vp,unit:gp,unlinkPanels:n.unlinkPanels});a.value=t[0],i.value=t[1],r("pick",e)};function Y(e,t){if(n.unlinkPanels&&t){const n=(null===e||void 0===e?void 0:e.year())||0,r=t.year();i.value=n+vp>r?t.add(vp,gp):t}else i.value=a.value.add(vp,gp)}return Object(u["watch"])(()=>n.visible,e=>{!e&&g.value.selecting&&(w(n.parsedValue),C(!1))}),r("set-picker-option",["isValidValue",G]),r("set-picker-option",["parseUserInput",F]),r("set-picker-option",["handleClear",H]),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(x.value)},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(_).e("body-wrapper"))},[Object(u["renderSlot"])(e.$slots,"sidebar",{class:Object(u["normalizeClass"])(Object(u["unref"])(_).e("sidebar"))}),R.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(_).e("sidebar"))},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(Object(u["unref"])(l),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:t,type:"button",class:Object(u["normalizeClass"])(Object(u["unref"])(_).e("shortcut")),disabled:Object(u["unref"])(N),onClick:t=>Object(u["unref"])(M)(e)},Object(u["toDisplayString"])(e.text),11,dp))),128))],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(_).e("body"))},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(P.value.content)},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(b).e("header"))},[Object(u["createElementVNode"])("button",{type:"button",class:Object(u["normalizeClass"])(P.value.arrowLeftBtn),disabled:Object(u["unref"])(N),onClick:t[0]||(t[0]=(...e)=>Object(u["unref"])(S)&&Object(u["unref"])(S)(...e))},[Object(u["renderSlot"])(e.$slots,"prev-year",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["DArrowLeft"]))]),_:1})])],10,pp),e.unlinkPanels?(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:0,type:"button",disabled:!V.value||Object(u["unref"])(N),class:Object(u["normalizeClass"])(P.value.arrowRightBtn),onClick:t[1]||(t[1]=(...e)=>Object(u["unref"])(I)&&Object(u["unref"])(I)(...e))},[Object(u["renderSlot"])(e.$slots,"next-year",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["DArrowRight"]))]),_:1})])],10,fp)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",null,Object(u["toDisplayString"])(Object(u["unref"])(j)),1)],2),Object(u["createVNode"])(Od,{"selection-mode":"range",date:a.value,"min-date":Object(u["unref"])(m),"max-date":Object(u["unref"])(v),"range-state":Object(u["unref"])(g),"disabled-date":Object(u["unref"])(d),disabled:Object(u["unref"])(N),"cell-class-name":Object(u["unref"])(p),onChangerange:Object(u["unref"])(y),onPick:B,onSelect:Object(u["unref"])(C)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(U.value.content)},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(b).e("header"))},[e.unlinkPanels?(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:0,type:"button",disabled:!V.value||Object(u["unref"])(N),class:Object(u["normalizeClass"])(U.value.arrowLeftBtn),onClick:t[2]||(t[2]=(...e)=>Object(u["unref"])(E)&&Object(u["unref"])(E)(...e))},[Object(u["renderSlot"])(e.$slots,"prev-year",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["DArrowLeft"]))]),_:1})])],10,hp)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("button",{type:"button",class:Object(u["normalizeClass"])(U.value.arrowRightBtn),disabled:Object(u["unref"])(N),onClick:t[3]||(t[3]=(...e)=>Object(u["unref"])(T)&&Object(u["unref"])(T)(...e))},[Object(u["renderSlot"])(e.$slots,"next-year",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["DArrowRight"]))]),_:1})])],10,mp),Object(u["createElementVNode"])("div",null,Object(u["toDisplayString"])(Object(u["unref"])(D)),1)],2),Object(u["createVNode"])(Od,{"selection-mode":"range",date:i.value,"min-date":Object(u["unref"])(m),"max-date":Object(u["unref"])(v),"range-state":Object(u["unref"])(g),"disabled-date":Object(u["unref"])(d),disabled:Object(u["unref"])(N),"cell-class-name":Object(u["unref"])(p),onChangerange:Object(u["unref"])(y),onPick:B,onSelect:Object(u["unref"])(C)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}}),bp=_p;const yp=function(e){switch(e){case"daterange":case"datetimerange":return Jd;case"monthrange":return sp;case"yearrange":return bp;default:return jd}};var Op=n("8f19"),Mp=n.n(Op),kp=n("2a04"),Cp=n.n(kp),wp=n("1ac8"),Sp=n.n(wp),Tp=n("8d82"),Ip=n.n(Tp),Ep=n("d758"),jp=n.n(Ep),Dp=n("b375"),Lp=n.n(Dp);function Ap(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Object(u["isVNode"])(e)}Wr.a.extend(ii.a),Wr.a.extend(Mp.a),Wr.a.extend(Bo.a),Wr.a.extend(Cp.a),Wr.a.extend(Sp.a),Wr.a.extend(Ip.a),Wr.a.extend(jp.a),Wr.a.extend(Lp.a);var Np=Object(u["defineComponent"])({name:"ElDatePickerPanel",install:null,inheritAttrs:!1,props:Uu,emits:[o["c"],"calendar-change","panel-change","visible-change","clear"],setup(e,{slots:t,emit:n,attrs:r}){const o=Object(g["d"])("picker-panel");Object(h["g"])(Object(u["inject"])(Ir,void 0))&&Object(u["provide"])(Ir,{props:Object(u["reactive"])({...Object(u["toRefs"])(e)})}),Object(u["provide"])(Vu,{slots:t,pickerNs:o});const{parsedValue:a,onCalendarChange:i,onPanelChange:s,onSetPickerOption:c,onPick:l}=Object(u["inject"])(jr,()=>oo(e,n),!0);return()=>Object(u["createVNode"])(yp(e.type),Object(u["mergeProps"])(Object(ne["omit"])(r,"onPick"),e,{parsedValue:a.value,"onSet-picker-option":c,"onCalendar-change":i,"onPanel-change":s,onClear:()=>n("clear"),onPick:l}),Ap(t)?t:{default:()=>[t]})}});const Rp=Object(r["a"])(Np),xp=Object(c["b"])({...Ur,type:{type:Object(c["c"])(String),default:"date"}});function Pp(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Object(u["isVNode"])(e)}var Up=Object(u["defineComponent"])({name:"ElDatePicker",install:null,props:xp,emits:[o["c"]],setup(e,{expose:t,emit:n,slots:r}){Object(u["provide"])(Bu,Object(u["computed"])(()=>!e.format)),Object(u["provide"])(Er,Object(u["reactive"])(Object(u["toRef"])(e,"popperOptions")));const a=Object(u["ref"])();t({focus:()=>{var e;null===(e=a.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=a.value)||void 0===e||e.blur()},handleOpen:()=>{var e;null===(e=a.value)||void 0===e||e.handleOpen()},handleClose:()=>{var e;null===(e=a.value)||void 0===e||e.handleClose()}});const i=e=>{n(o["c"],e)};return()=>{var t;const n=null!==(t=e.format)&&void 0!==t?t:Ar[e.type]||Lr;return Object(u["createVNode"])(po,Object(u["mergeProps"])(e,{format:n,type:e.type,ref:a,"onUpdate:modelValue":i}),{default:t=>Object(u["createVNode"])(Rp,Object(u["mergeProps"])({disabled:e.disabled,editable:e.editable,border:!1},t),Pp(r)?r:{default:()=>[r]}),"range-separator":r["range-separator"]})}}});const Vp=Object(r["a"])(Up),Bp=Object(c["b"])({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Nr["c"],title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number]}}),Fp=xe()("elDescriptions"),Gp=Object(c["b"])({row:{type:Object(c["c"])(Array),default:()=>[]}});var Hp=Object(u["defineComponent"])({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Object(u["inject"])(Fp,{})}},render(){var e,t,n,r;const o=Object(T["c"])(this.cell),a=J()(e=(null===(t=this.cell)||void 0===t?void 0:t.dirs)||[]).call(e,e=>{const{dir:t,arg:n,modifiers:r,value:o}=e;return[t,o,n,r]}),{border:s,direction:c}=this.descriptions,l="vertical"===c,d=()=>{var e,t;return(null===(e=this.cell)||void 0===e||null===(e=e.children)||void 0===e||null===(t=e.label)||void 0===t?void 0:t.call(e))||o.label},p=()=>{var e,t;return null===(e=this.cell)||void 0===e||null===(e=e.children)||void 0===e||null===(t=e.default)||void 0===t?void 0:t.call(e)},f=o.span,h=o.rowspan,m=o.align?"is-"+o.align:"",v=o.labelAlign?"is-"+o.labelAlign:m,_=o.className,b=o.labelClassName,y={width:Object(i["b"])("label"===this.type&&null!==(n=null!==(r=o.labelWidth)&&void 0!==r?r:this.descriptions.labelWidth)&&void 0!==n?n:o.width),minWidth:Object(i["b"])(o.minWidth)},O=Object(g["d"])("descriptions");switch(this.type){case"label":return Object(u["withDirectives"])(Object(u["h"])(this.tag,{style:y,class:[O.e("cell"),O.e("label"),O.is("bordered-label",s),O.is("vertical-label",l),v,b],colSpan:l?f:1,rowspan:l?1:h},d()),a);case"content":return Object(u["withDirectives"])(Object(u["h"])(this.tag,{style:y,class:[O.e("cell"),O.e("content"),O.is("bordered-content",s),O.is("vertical-content",l),m,_],colSpan:l?f:2*f-1,rowspan:l?2*h-1:h},p()),a);default:{var M;const e=d(),t={},n=Object(i["b"])(null!==(M=o.labelWidth)&&void 0!==M?M:this.descriptions.labelWidth);return n&&(t.width=n,t.display="inline-block"),Object(u["withDirectives"])(Object(u["h"])("td",{style:y,class:[O.e("cell"),m],colSpan:f,rowspan:h},[Object(ne["isNil"])(e)?void 0:Object(u["h"])("span",{style:t,class:[O.e("label"),b]},e),Object(u["h"])("span",{class:[O.e("content"),_]},p())]),a)}}}});const Yp={key:1};var zp=Object(u["defineComponent"])({name:"ElDescriptionsRow",__name:"descriptions-row",props:Gp,setup(e){const t=Object(u["inject"])(Fp,{});return(n,r)=>"vertical"===Object(u["unref"])(t).direction?(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:0},[Object(u["createElementVNode"])("tr",null,[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.row,(e,t)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Hp),{key:"tr1-"+t,cell:e,tag:"th",type:"label"},null,8,["cell"]))),128))]),Object(u["createElementVNode"])("tr",null,[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.row,(e,t)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Hp),{key:"tr2-"+t,cell:e,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(Object(u["openBlock"])(),Object(u["createElementBlock"])("tr",Yp,[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.row,(e,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:"tr3-"+n},[Object(u["unref"])(t).border?(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:0},[Object(u["createVNode"])(Object(u["unref"])(Hp),{cell:e,tag:"td",type:"label"},null,8,["cell"]),Object(u["createVNode"])(Object(u["unref"])(Hp),{cell:e,tag:"td",type:"content"},null,8,["cell"])],64)):(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Hp),{key:1,cell:e,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}}),qp=zp;const Wp="ElDescriptionsItem";var Kp=Object(u["defineComponent"])({name:"ElDescriptions",__name:"description",props:Bp,setup(e){const t=e,n=Object(g["d"])("descriptions"),r=Object(ce["b"])(),o=Object(u["useSlots"])();Object(u["provide"])(Fp,t);const a=Object(u["computed"])(()=>[n.b(),n.m(r.value)]),i=(e,t,n,r=!1)=>(e.props||(e.props={}),t>n&&(e.props.span=n),r&&(e.props.span=t),e),s=()=>{var e;if(!o.default)return[];const n=K()(e=Object(T["b"])(o.default())).call(e,e=>{var t;return(null===e||void 0===e||null===(t=e.type)||void 0===t?void 0:t.name)===Wp}),r=[];let a=[],s=t.column,c=0;const l=[];return Y()(n).call(n,(e,o)=>{var u,d;const p=(null===(u=e.props)||void 0===u?void 0:u.span)||1,f=(null===(d=e.props)||void 0===d?void 0:d.rowspan)||1,h=r.length;if(l[h]||(l[h]=0),f>1)for(let t=1;t<f;t++){var m;l[m=h+t]||(l[m]=0),l[h+t]++,c++}if(l[h]>0&&(s-=l[h],l[h]=0),o<n.length-1&&(c+=p>s?s:p),o===n.length-1){const n=t.column-c%t.column;return a.push(i(e,n,s,!0)),void r.push(a)}p<s?(s-=p,a.push(e)):(a.push(i(e,p,s)),r.push(a),s=t.column,a=[])}),r};return(t,r)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(a.value)},[e.title||e.extra||t.$slots.title||t.$slots.extra?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("header"))},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("title"))},[Object(u["renderSlot"])(t.$slots,"title",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.title),1)])],2),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("extra"))},[Object(u["renderSlot"])(t.$slots,"extra",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.extra),1)])],2)],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("body"))},[Object(u["createElementVNode"])("table",{class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("table"),Object(u["unref"])(n).is("bordered",e.border)])},[Object(u["createElementVNode"])("tbody",null,[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(s(),(e,t)=>(Object(u["openBlock"])(),Object(u["createBlock"])(qp,{key:t,row:e},null,8,["row"]))),128))])],2)],2)],2))}}),$p=Kp;const Jp=["left","center","right"],Xp=Object(c["b"])({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number]},align:{type:String,values:Jp,default:"left"},labelAlign:{type:String,values:Jp},className:{type:String,default:""},labelClassName:{type:String,default:""}}),Qp=Object(u["defineComponent"])({name:Wp,props:Xp}),Zp=Object(r["a"])($p,{DescriptionsItem:Qp}),ef=Object(r["d"])(Qp);var tf=n("89d4");const nf=Object(c["b"])({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:S["e"]},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),rf={close:()=>!0},of={alignCenter:void 0,draggable:void 0,overflow:void 0,showClose:!0,title:"",ariaLevel:"2"},af=Object(c["b"])({...nf,appendToBody:Boolean,appendTo:{type:l.to.type,default:"body"},beforeClose:{type:Object(c["c"])(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:Object(c["c"])([String,Object]),default:void 0}}),sf={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[o["c"]]:e=>Object(h["a"])(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0};xe()("dialogContextKey");var cf=n("d5f6");const lf=xe()("dialogInjectionKey"),uf="dialog-fade",df=(...e)=>t=>{Y()(e).call(e,e=>{e.value=t})};var pf=n("be44"),ff=n("72a5");const hf=["aria-level"],mf=["aria-label"],vf=["id"];var gf=Object(u["defineComponent"])({name:"ElDialogContent",__name:"dialog-content",props:nf,emits:rf,setup(e,{expose:t}){const{t:n}=Object(fr["b"])(),{Close:r}=S["a"],o=e,{dialogRef:a,headerRef:i,bodyId:s,ns:c,style:l}=Object(u["inject"])(lf),{focusTrapRef:d}=Object(u["inject"])(ff["f"]),p=df(d,a),f=Object(u["computed"])(()=>!!o.draggable),{resetPosition:h,updatePosition:m,isDragging:v}=Object(pf["a"])(a,i,f,Object(u["computed"])(()=>!!o.overflow)),g=Object(u["computed"])(()=>[c.b(),c.is("fullscreen",o.fullscreen),c.is("draggable",f.value),c.is("dragging",v.value),c.is("align-center",!!o.alignCenter),{[c.m("center")]:o.center}]);return t({resetPosition:h,updatePosition:m}),(t,o)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref:Object(u["unref"])(p),class:Object(u["normalizeClass"])(g.value),style:Object(u["normalizeStyle"])(Object(u["unref"])(l)),tabindex:"-1"},[Object(u["createElementVNode"])("header",{ref_key:"headerRef",ref:i,class:Object(u["normalizeClass"])([Object(u["unref"])(c).e("header"),e.headerClass,{"show-close":e.showClose}])},[Object(u["renderSlot"])(t.$slots,"header",{},()=>[Object(u["createElementVNode"])("span",{role:"heading","aria-level":e.ariaLevel,class:Object(u["normalizeClass"])(Object(u["unref"])(c).e("title"))},Object(u["toDisplayString"])(e.title),11,hf)]),e.showClose?(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:0,"aria-label":Object(u["unref"])(n)("el.dialog.close"),class:Object(u["normalizeClass"])(Object(u["unref"])(c).e("headerbtn")),type:"button",onClick:o[0]||(o[0]=e=>t.$emit("close"))},[Object(u["createVNode"])(Object(u["unref"])(k["a"]),{class:Object(u["normalizeClass"])(Object(u["unref"])(c).e("close"))},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.closeIcon||Object(u["unref"])(r))))]),_:1},8,["class"])],10,mf)):Object(u["createCommentVNode"])("v-if",!0)],2),Object(u["createElementVNode"])("div",{id:Object(u["unref"])(s),class:Object(u["normalizeClass"])([Object(u["unref"])(c).e("body"),e.bodyClass])},[Object(u["renderSlot"])(t.$slots,"default")],10,vf),t.$slots.footer?(Object(u["openBlock"])(),Object(u["createElementBlock"])("footer",{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(c).e("footer"),e.footerClass])},[Object(u["renderSlot"])(t.$slots,"footer")],2)):Object(u["createCommentVNode"])("v-if",!0)],6))}}),_f=gf,bf=n("7190");const yf="ElDialog",Of=(e,t)=>{var n;const r=Object(u["getCurrentInstance"])().emit,{nextZIndex:s}=Object(on["b"])();let c="";const l=Object(ge["a"])(),d=Object(ge["a"])(),p=Object(u["ref"])(!1),f=Object(u["ref"])(!1),h=Object(u["ref"])(!1),m=Object(u["ref"])(null!==(n=e.zIndex)&&void 0!==n?n:s()),v=Object(u["ref"])(!1);let b=void 0,y=void 0;const O=Object(ki["c"])(),M=Object(u["computed"])(()=>{var e,t;return null!==(e=null===(t=O.value)||void 0===t?void 0:t.namespace)&&void 0!==e?e:g["a"]}),k=Object(u["computed"])(()=>{var e;return null===(e=O.value)||void 0===e?void 0:e.dialog}),C=Object(u["computed"])(()=>{const t={},n=`--${M.value}-dialog`;if(!e.fullscreen){e.top&&(t[n+"-margin-top"]=e.top);const r=Object(i["b"])(e.width);r&&(t[n+"-width"]=r)}return t}),w=Object(u["computed"])(()=>{var t,n,r;return null!==(t=null!==(n=e.draggable)&&void 0!==n?n:null===(r=k.value)||void 0===r?void 0:r.draggable)&&void 0!==t&&t&&!e.fullscreen}),S=Object(u["computed"])(()=>{var t,n,r;return null!==(t=null!==(n=e.alignCenter)&&void 0!==n?n:null===(r=k.value)||void 0===r?void 0:r.alignCenter)&&void 0!==t&&t}),T=Object(u["computed"])(()=>{var t,n,r;return null!==(t=null!==(n=e.overflow)&&void 0!==n?n:null===(r=k.value)||void 0===r?void 0:r.overflow)&&void 0!==t&&t}),I=Object(u["computed"])(()=>S.value?{display:"flex"}:{}),E=Object(u["computed"])(()=>{var t,n,r;const o=null!==(t=null!==(n=e.transition)&&void 0!==n?n:null===(r=k.value)||void 0===r?void 0:r.transition)&&void 0!==t?t:uf,i={name:o,onAfterEnter:j,onBeforeLeave:L,onAfterLeave:D};if(Object(te["isObject"])(o)){const e={...o},t=(e,t)=>n=>{Object(te["isArray"])(e)?Y()(e).call(e,e=>{Object(te["isFunction"])(e)&&e(n)}):Object(te["isFunction"])(e)&&e(n),t()};return e.onAfterEnter=t(e.onAfterEnter,j),e.onBeforeLeave=t(e.onBeforeLeave,L),e.onAfterLeave=t(e.onAfterLeave,D),e.name||(e.name=uf,Object(a["a"])(yf,`transition.name is missing when using object syntax, fallback to '${uf}'`)),e}return i});function j(){r("opened")}function D(){r("closed"),r(o["c"],!1),e.destroyOnClose&&(h.value=!1),v.value=!1}function L(){v.value=!0,r("close")}function A(){var t,n;null===(t=y)||void 0===t||t(),null===(n=b)||void 0===n||n(),e.openDelay&&e.openDelay>0?({stop:b}=Object(_["useTimeoutFn"])(()=>P(),e.openDelay)):P()}function N(){var t,n;null===(t=b)||void 0===t||t(),null===(n=y)||void 0===n||n(),e.closeDelay&&e.closeDelay>0?({stop:y}=Object(_["useTimeoutFn"])(()=>U(),e.closeDelay)):U()}function R(){function t(e){e||(f.value=!0,p.value=!1)}e.beforeClose?e.beforeClose(t):N()}function x(){e.closeOnClickModal&&R()}function P(){_["isClient"]&&(p.value=!0)}function U(){p.value=!1}function V(){r("openAutoFocus")}function B(){r("closeAutoFocus")}function F(e){var t;"pointer"===(null===(t=e.detail)||void 0===t?void 0:t.focusReason)&&e.preventDefault()}function G(){e.closeOnPressEscape&&R()}return e.lockScroll&&Object(bf["a"])(p),Object(u["watch"])(()=>e.zIndex,()=>{var t;m.value=null!==(t=e.zIndex)&&void 0!==t?t:s()}),Object(u["watch"])(()=>e.modelValue,n=>{var o;n?(f.value=!1,v.value=!1,A(),h.value=!0,m.value=null!==(o=e.zIndex)&&void 0!==o?o:s(),Object(u["nextTick"])(()=>{r("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):p.value&&N()}),Object(u["watch"])(()=>e.fullscreen,e=>{t.value&&(e?(c=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=c)}),Object(u["onMounted"])(()=>{e.modelValue&&(p.value=!0,h.value=!0,A())}),{afterEnter:j,afterLeave:D,beforeLeave:L,handleClose:R,onModalClick:x,close:N,doClose:U,onOpenAutoFocus:V,onCloseAutoFocus:B,onCloseRequested:G,onFocusoutPrevented:F,titleId:l,bodyId:d,closed:f,style:C,overlayDialogStyle:I,rendered:h,visible:p,zIndex:m,transitionConfig:E,_draggable:w,_alignCenter:S,_overflow:T,closing:v}},Mf=["aria-label","aria-labelledby","aria-describedby"];var kf=Object(u["defineComponent"])({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:af,emits:sf,setup(e,{expose:t}){const n=e,r=Object(u["useSlots"])();Object(rs["a"])({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},Object(u["computed"])(()=>!!r.title));const o=Object(g["d"])("dialog"),a=Object(u["ref"])(),i=Object(u["ref"])(),s=Object(u["ref"])(),{visible:c,titleId:l,bodyId:d,style:p,overlayDialogStyle:h,rendered:m,transitionConfig:v,zIndex:_,_draggable:b,_alignCenter:y,_overflow:O,handleClose:M,onModalClick:k,onOpenAutoFocus:C,onCloseAutoFocus:w,onCloseRequested:S,onFocusoutPrevented:T,closing:I}=Of(n,a);Object(u["provide"])(lf,{dialogRef:a,headerRef:i,bodyId:d,ns:o,rendered:m,style:p});const E=Object(tf["a"])(k),j=Object(u["computed"])(()=>n.modalPenetrable&&!n.modal&&!n.fullscreen),D=()=>{var e;null===(e=s.value)||void 0===e||e.resetPosition()};return t({visible:c,dialogContentRef:s,resetPosition:D,handleClose:M}),(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(f),{to:e.appendTo,disabled:"body"===e.appendTo&&!e.appendToBody},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(u["Transition"],Object(u["mergeProps"])(Object(u["unref"])(v),{persisted:""}),{default:Object(u["withCtx"])(()=>{var r;return[Object(u["withDirectives"])(Object(u["createVNode"])(Object(u["unref"])(cf["a"]),{"custom-mask-event":"",mask:e.modal,"overlay-class":[null!==(r=e.modalClass)&&void 0!==r?r:"",Object(u["unref"])(o).namespace.value+"-modal-dialog",Object(u["unref"])(o).is("penetrable",j.value)],"z-index":Object(u["unref"])(_)},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:Object(u["unref"])(l),"aria-describedby":Object(u["unref"])(d),class:Object(u["normalizeClass"])([Object(u["unref"])(o).namespace.value+"-overlay-dialog",Object(u["unref"])(o).is("closing",Object(u["unref"])(I))]),style:Object(u["normalizeStyle"])(Object(u["unref"])(h)),onClick:n[0]||(n[0]=(...e)=>Object(u["unref"])(E).onClick&&Object(u["unref"])(E).onClick(...e)),onMousedown:n[1]||(n[1]=(...e)=>Object(u["unref"])(E).onMousedown&&Object(u["unref"])(E).onMousedown(...e)),onMouseup:n[2]||(n[2]=(...e)=>Object(u["unref"])(E).onMouseup&&Object(u["unref"])(E).onMouseup(...e))},[Object(u["createVNode"])(Object(u["unref"])(Wt["a"]),{loop:"",trapped:Object(u["unref"])(c),"focus-start-el":"container",onFocusAfterTrapped:Object(u["unref"])(C),onFocusAfterReleased:Object(u["unref"])(w),onFocusoutPrevented:Object(u["unref"])(T),onReleaseRequested:Object(u["unref"])(S)},{default:Object(u["withCtx"])(()=>[Object(u["unref"])(m)?(Object(u["openBlock"])(),Object(u["createBlock"])(_f,Object(u["mergeProps"])({key:0,ref_key:"dialogContentRef",ref:s},t.$attrs,{center:e.center,"align-center":Object(u["unref"])(y),"close-icon":e.closeIcon,draggable:Object(u["unref"])(b),overflow:Object(u["unref"])(O),fullscreen:e.fullscreen,"header-class":e.headerClass,"body-class":e.bodyClass,"footer-class":e.footerClass,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:Object(u["unref"])(M)}),Object(u["createSlots"])({header:Object(u["withCtx"])(()=>[t.$slots.title?Object(u["renderSlot"])(t.$slots,"title",{key:1}):Object(u["renderSlot"])(t.$slots,"header",{key:0,close:Object(u["unref"])(M),titleId:Object(u["unref"])(l),titleClass:Object(u["unref"])(o).e("title")})]),default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"default")]),_:2},[t.$slots.footer?{name:"footer",fn:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"footer")]),key:"0"}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):Object(u["createCommentVNode"])("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,Mf)]),_:3},8,["mask","overlay-class","z-index"]),[[u["vShow"],Object(u["unref"])(c)]])]}),_:3},16)]),_:3},8,["to","disabled"]))}}),Cf=kf;const wf=Object(r["a"])(Cf),Sf=Object(c["b"])({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Object(c["c"])(String),default:"solid"}});var Tf=Object(u["defineComponent"])({name:"ElDivider",__name:"divider",props:Sf,setup(e){const t=e,n=Object(g["d"])("divider"),r=Object(u["computed"])(()=>n.cssVar({"border-style":t.borderStyle}));return(t,o)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(n).b(),Object(u["unref"])(n).m(e.direction)]),style:Object(u["normalizeStyle"])(r.value),role:"separator"},[t.$slots.default&&"vertical"!==e.direction?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("text"),Object(u["unref"])(n).is(e.contentPosition)])},[Object(u["renderSlot"])(t.$slots,"default")],2)):Object(u["createCommentVNode"])("v-if",!0)],6))}}),If=Tf;const Ef=Object(r["a"])(If),jf=Object(c["b"])({...af,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),Df={...sf,"resize-start":(e,t)=>e instanceof MouseEvent&&"number"===typeof t,resize:(e,t)=>e instanceof MouseEvent&&"number"===typeof t,"resize-end":(e,t)=>e instanceof MouseEvent&&"number"===typeof t};function Lf(e,t,n){const{width:r,height:o}=Object(_["useWindowSize"])(),a=Object(u["computed"])(()=>{var t;return ue()(t=["ltr","rtl"]).call(t,e.direction)}),s=Object(u["computed"])(()=>{var t;return ue()(t=["ltr","ttb"]).call(t,e.direction)?1:-1}),c=Object(u["computed"])(()=>a.value?r.value:o.value),l=Object(u["computed"])(()=>Object(_["clamp"])(d.value+s.value*p.value,4,c.value)),d=Object(u["ref"])(0),p=Object(u["ref"])(0),f=Object(u["ref"])(!1),h=Object(u["ref"])(!1);let m=[],v=[];const g=()=>{var e;const n=null===(e=t.value)||void 0===e?void 0:e.closest('[aria-modal="true"]');return n?a.value?n.offsetWidth:n.offsetHeight:100};Object(u["watch"])(()=>[e.size,e.resizable],()=>{h.value=!1,d.value=0,p.value=0,O()});const b=t=>{e.resizable&&(h.value||(d.value=g(),h.value=!0),m=[t.pageX,t.pageY],f.value=!0,n("resize-start",t,d.value),v.push(Object(_["useEventListener"])(window,"mouseup",O),Object(_["useEventListener"])(window,"mousemove",y)))},y=e=>{const{pageX:t,pageY:r}=e,o=t-m[0],i=r-m[1];p.value=a.value?o:i,n("resize",e,l.value)},O=e=>{f.value&&(m=[],d.value=l.value,p.value=0,f.value=!1,Y()(v).call(v,e=>null===e||void 0===e?void 0:e()),v=[],e&&n("resize-end",e,d.value))},M=Object(_["useEventListener"])(t,"mousedown",b);return Object(u["onBeforeUnmount"])(()=>{M(),O()}),{size:Object(u["computed"])(()=>h.value?l.value+"px":Object(i["b"])(e.size)),isResizing:f,isHorizontal:a}}const Af=["aria-label","aria-labelledby","aria-describedby"],Nf=["id","aria-level"],Rf=["aria-label"],xf=["id"];var Pf=Object(u["defineComponent"])({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:jf,emits:Df,setup(e,{expose:t,emit:n}){const r=e,o=n,a=Object(u["useSlots"])();Object(rs["a"])({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},Object(u["computed"])(()=>!!a.title));const i=Object(u["ref"])(),s=Object(u["ref"])(),c=Object(u["ref"])(),l=Object(g["d"])("drawer"),{t:d}=Object(fr["b"])(),{afterEnter:p,afterLeave:h,beforeLeave:m,visible:v,rendered:_,titleId:b,bodyId:y,zIndex:O,onModalClick:M,onOpenAutoFocus:C,onCloseAutoFocus:w,onFocusoutPrevented:S,onCloseRequested:T,handleClose:I}=Of(r,i),{isHorizontal:E,size:j,isResizing:D}=Lf(r,c,o),L=Object(u["computed"])(()=>r.modalPenetrable&&!r.modal);return t({handleClose:I,afterEnter:p,afterLeave:h}),(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(f),{to:e.appendTo,disabled:"body"===e.appendTo&&!e.appendToBody},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(u["Transition"],{name:Object(u["unref"])(l).b("fade"),onAfterEnter:Object(u["unref"])(p),onAfterLeave:Object(u["unref"])(h),onBeforeLeave:Object(u["unref"])(m),persisted:""},{default:Object(u["withCtx"])(()=>{var r;return[Object(u["withDirectives"])(Object(u["createVNode"])(Object(u["unref"])(cf["a"]),{mask:e.modal,"overlay-class":[Object(u["unref"])(l).is("drawer"),null!==(r=e.modalClass)&&void 0!==r?r:"",Object(u["unref"])(l).namespace.value+"-modal-drawer",Object(u["unref"])(l).is("penetrable",L.value)],"z-index":Object(u["unref"])(O),onClick:Object(u["unref"])(M)},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Wt["a"]),{loop:"",trapped:Object(u["unref"])(v),"focus-trap-el":i.value,"focus-start-el":s.value,onFocusAfterTrapped:Object(u["unref"])(C),onFocusAfterReleased:Object(u["unref"])(w),onFocusoutPrevented:Object(u["unref"])(S),onReleaseRequested:Object(u["unref"])(T)},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",Object(u["mergeProps"])({ref_key:"drawerRef",ref:i,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:Object(u["unref"])(b),"aria-describedby":Object(u["unref"])(y)},t.$attrs,{class:[Object(u["unref"])(l).b(),e.direction,Object(u["unref"])(v)&&"open",Object(u["unref"])(l).is("dragging",Object(u["unref"])(D))],style:{[Object(u["unref"])(E)?"width":"height"]:Object(u["unref"])(j)},role:"dialog",onClick:n[1]||(n[1]=Object(u["withModifiers"])(()=>{},["stop"]))}),[Object(u["createElementVNode"])("span",{ref_key:"focusStartRef",ref:s,class:Object(u["normalizeClass"])(Object(u["unref"])(l).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(Object(u["openBlock"])(),Object(u["createElementBlock"])("header",{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(l).e("header"),e.headerClass])},[t.$slots.title?Object(u["renderSlot"])(t.$slots,"title",{key:1},()=>[Object(u["createCommentVNode"])(" DEPRECATED SLOT ")]):Object(u["renderSlot"])(t.$slots,"header",{key:0,close:Object(u["unref"])(I),titleId:Object(u["unref"])(b),titleClass:Object(u["unref"])(l).e("title")},()=>[Object(u["createElementVNode"])("span",{id:Object(u["unref"])(b),role:"heading","aria-level":e.headerAriaLevel,class:Object(u["normalizeClass"])(Object(u["unref"])(l).e("title"))},Object(u["toDisplayString"])(e.title),11,Nf)]),e.showClose?(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:2,"aria-label":Object(u["unref"])(d)("el.drawer.close"),class:Object(u["normalizeClass"])(Object(u["unref"])(l).e("close-btn")),type:"button",onClick:n[0]||(n[0]=(...e)=>Object(u["unref"])(I)&&Object(u["unref"])(I)(...e))},[Object(u["createVNode"])(Object(u["unref"])(k["a"]),{class:Object(u["normalizeClass"])(Object(u["unref"])(l).e("close"))},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Close"]))]),_:1},8,["class"])],10,Rf)):Object(u["createCommentVNode"])("v-if",!0)],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["unref"])(_)?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,id:Object(u["unref"])(y),class:Object(u["normalizeClass"])([Object(u["unref"])(l).e("body"),e.bodyClass])},[Object(u["renderSlot"])(t.$slots,"default")],10,xf)):Object(u["createCommentVNode"])("v-if",!0),t.$slots.footer?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:2,class:Object(u["normalizeClass"])([Object(u["unref"])(l).e("footer"),e.footerClass])},[Object(u["renderSlot"])(t.$slots,"footer")],2)):Object(u["createCommentVNode"])("v-if",!0),e.resizable?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:3,ref_key:"draggerRef",ref:c,style:Object(u["normalizeStyle"])({zIndex:Object(u["unref"])(O)}),class:Object(u["normalizeClass"])(Object(u["unref"])(l).e("dragger"))},null,6)):Object(u["createCommentVNode"])("v-if",!0)],16,Af)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[u["vShow"],Object(u["unref"])(v)]])]}),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}}),Uf=Pf;const Vf=Object(r["a"])(Uf);var Bf=n("82ec"),Ff=n.n(Bf),Gf=Object(u["defineComponent"])({inheritAttrs:!1});function Hf(e,t,n,r,o,a){return Object(u["renderSlot"])(e.$slots,"default")}var Yf=Object(Jo["a"])(Gf,[["render",Hf]]),zf=Object(u["defineComponent"])({name:"ElCollectionItem",inheritAttrs:!1});function qf(e,t,n,r,o,a){return Object(u["renderSlot"])(e.$slots,"default")}var Wf=Object(Jo["a"])(zf,[["render",qf]]);const Kf="data-el-collection-item",$f=e=>{const t=`El${e}Collection`,n=t+"Item",r=xe()(t),o=xe()(n);return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:$t()({},Yf,{name:t,setup(){const e=Object(u["ref"])(),t=new x.a,n=()=>{var n;const r=Object(u["unref"])(e);if(!r)return[];const o=Pn()(r.querySelectorAll(`[${Kf}]`));return Ff()(n=[..._a()(t).call(t)]).call(n,(e,t)=>B()(o).call(o,e.ref)-B()(o).call(o,t.ref))};Object(u["provide"])(r,{itemMap:t,getItems:n,collectionRef:e})}}),ElCollectionItem:$t()({},Wf,{name:n,setup(e,{attrs:t}){const n=Object(u["ref"])(),a=Object(u["inject"])(r,void 0);Object(u["provide"])(o,{collectionItemRef:n}),Object(u["onMounted"])(()=>{const e=Object(u["unref"])(n);e&&a.itemMap.set(e,{ref:e,...t})}),Object(u["onBeforeUnmount"])(()=>{const e=Object(u["unref"])(n);a.itemMap.delete(e)})}})}},Jf=Object(c["b"])({style:{type:Object(c["c"])([String,Array,Object])},currentTabId:{type:Object(c["c"])(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:Object(c["c"])(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:Xf,ElCollectionItem:Qf,COLLECTION_INJECTION_KEY:Zf,COLLECTION_ITEM_INJECTION_KEY:eh}=$f("RovingFocusGroup");var th=n("df10"),nh=n.n(th);const rh=xe()("elRovingFocusGroup"),oh=xe()("elRovingFocusGroupItem"),ah={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},ih=(e,t)=>{if("rtl"!==t)return e;switch(e){case vt["a"].right:return vt["a"].left;case vt["a"].left:return vt["a"].right;default:return e}},sh=(e,t,n)=>{var r,o;const a=ih(Object(St["b"])(e),n);if(("vertical"!==t||!ue()(r=[vt["a"].left,vt["a"].right]).call(r,a))&&("horizontal"!==t||!ue()(o=[vt["a"].up,vt["a"].down]).call(o,a)))return ah[a]},ch=(e,t)=>J()(e).call(e,(n,r)=>e[(r+t)%e.length]),lh=e=>{const{activeElement:t}=document;for(const n of e){if(n===t)return;if(n.focus(),t!==document.activeElement)return}},uh="currentTabIdChange",dh="rovingFocusGroup.entryFocus",ph={bubbles:!1,cancelable:!0};var fh=Object(u["defineComponent"])({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:Jf,emits:[uh,"entryFocus"],setup(e,{emit:t}){var n;const r=Object(u["ref"])(null!==(n=e.currentTabId||e.defaultCurrentTabId)&&void 0!==n?n:null),o=Object(u["ref"])(!1),a=Object(u["ref"])(!1),i=Object(u["ref"])(),{getItems:s}=Object(u["inject"])(Zf,void 0),c=Object(u["computed"])(()=>[{outline:"none"},e.style]),l=e=>{t(uh,e)},d=()=>{o.value=!0},p=Object(St["a"])(t=>{var n;null===(n=e.onMousedown)||void 0===n||n.call(e,t)},()=>{a.value=!0}),f=Object(St["a"])(t=>{var n;null===(n=e.onFocus)||void 0===n||n.call(e,t)},e=>{const t=!Object(u["unref"])(a),{target:n,currentTarget:i}=e;if(n===i&&t&&!Object(u["unref"])(o)){const e=new Event(dh,ph);if(null===i||void 0===i||i.dispatchEvent(e),!e.defaultPrevented){var c,l,d;const e=K()(c=s()).call(c,e=>e.focusable);lh(J()(l=K()(d=[La()(e).call(e,e=>e.active),La()(e).call(e,e=>e.id===Object(u["unref"])(r)),...e]).call(d,Boolean)).call(l,e=>e.ref))}}a.value=!1}),h=Object(St["a"])(t=>{var n;null===(n=e.onBlur)||void 0===n||n.call(e,t)},()=>{o.value=!1}),m=(...e)=>{t("entryFocus",...e)},v=t=>{const n=sh(t);if(n){var r,o;t.preventDefault();let a=J()(r=K()(o=s()).call(o,e=>e.focusable)).call(r,e=>e.ref);switch(n){case"last":nh()(a).call(a);break;case"prev":case"next":{"prev"===n&&nh()(a).call(a);const r=B()(a).call(a,t.currentTarget);a=e.loop?ch(a,r+1):It()(a).call(a,r+1);break}default:break}Object(u["nextTick"])(()=>{lh(a)})}};Object(u["provide"])(rh,{currentTabbedId:Object(u["readonly"])(r),loop:Object(u["toRef"])(e,"loop"),tabIndex:Object(u["computed"])(()=>Object(u["unref"])(o)?-1:0),rovingFocusGroupRef:i,rovingFocusGroupRootStyle:c,orientation:Object(u["toRef"])(e,"orientation"),dir:Object(u["toRef"])(e,"dir"),onItemFocus:l,onItemShiftTab:d,onBlur:h,onFocus:f,onMousedown:p,onKeydown:v}),Object(u["watch"])(()=>e.currentTabId,e=>{r.value=null!==e&&void 0!==e?e:null}),Object(_["useEventListener"])(i,dh,m)}});function hh(e,t,n,r,o,a){return Object(u["renderSlot"])(e.$slots,"default")}var mh=Object(Jo["a"])(fh,[["render",hh]]),vh=Object(u["defineComponent"])({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:Xf,ElRovingFocusGroupImpl:mh}});function gh(e,t,n,r,o,a){const i=Object(u["resolveComponent"])("el-roving-focus-group-impl"),s=Object(u["resolveComponent"])("el-focus-group-collection");return Object(u["openBlock"])(),Object(u["createBlock"])(s,null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(i,Object(u["normalizeProps"])(Object(u["guardReactiveProps"])(e.$attrs)),{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(e.$slots,"default")]),_:3},16)]),_:3})}var _h=Object(Jo["a"])(vh,[["render",gh]]),bh=_h;const yh=Object(c["b"])({trigger:{..._t.trigger,type:Object(c["c"])([String,Array])},triggerKeys:{type:Object(c["c"])(Array),default:()=>[vt["a"].enter,vt["a"].numpadEnter,vt["a"].space,vt["a"].down]},virtualTriggering:_t.virtualTriggering,virtualRef:_t.virtualRef,effect:{...mt.effect,default:"light"},type:{type:Object(c["c"])(String)},placement:{type:Object(c["c"])(String),default:"bottom"},popperOptions:{type:Object(c["c"])(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:Object(c["c"])([Number,String]),default:0},maxHeight:{type:Object(c["c"])([Number,String]),default:""},popperClass:mt.popperClass,popperStyle:mt.popperStyle,disabled:Boolean,role:{type:String,values:Ae,default:"menu"},buttonProps:{type:Object(c["c"])(Object)},teleported:mt.teleported,appendTo:mt.appendTo,persistent:{type:Boolean,default:!0}}),Oh=Object(c["b"])({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:S["e"]}}),Mh=Object(c["b"])({onKeydown:{type:Object(c["c"])(Function)}}),kh=[vt["a"].down,vt["a"].pageDown,vt["a"].home],Ch=[vt["a"].up,vt["a"].pageUp,vt["a"].end],wh=xe()("elDropdown"),Sh="elDropdown",{ButtonGroup:Th}=Sr["a"];var Ih=Object(u["defineComponent"])({name:"ElDropdown",components:{ElButton:Sr["a"],ElButtonGroup:Th,ElScrollbar:Rn,ElTooltip:vn,ElRovingFocusGroup:bh,ElOnlyChild:At,ElIcon:k["a"],ArrowDown:Fn["ArrowDown"]},props:yh,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Object(u["getCurrentInstance"])(),r=Object(g["d"])("dropdown"),{t:o}=Object(fr["b"])(),a=Object(u["ref"])(),s=Object(u["ref"])(),c=Object(u["ref"])(),l=Object(u["ref"])(),d=Object(u["ref"])(null),p=Object(u["ref"])(null),f=Object(u["ref"])(!1),h=Object(u["computed"])(()=>({maxHeight:Object(i["b"])(e.maxHeight)})),m=Object(u["computed"])(()=>[r.m(k.value)]),v=Object(u["computed"])(()=>Object(ne["castArray"])(e.trigger)),_=Object(ge["a"])().value,b=Object(u["computed"])(()=>e.id||_);function y(){var e;null===(e=c.value)||void 0===e||e.onClose(void 0,0)}function O(){var e;null===(e=c.value)||void 0===e||e.onClose()}function M(){var e;null===(e=c.value)||void 0===e||e.onOpen()}const k=Object(ce["b"])();function C(...e){t("command",...e)}function w(){}function S(){var e;const t=Object(u["unref"])(l);ue()(e=v.value).call(e,"hover")&&(null===t||void 0===t||t.focus({preventScroll:!0})),p.value=null}function T(e){p.value=e}function I(){t("visible-change",!0)}function E(e){var t;f.value="keydown"===(null===e||void 0===e?void 0:e.type),null===(t=l.value)||void 0===t||t.focus()}function j(){t("visible-change",!1)}Object(u["provide"])(wh,{contentRef:l,role:Object(u["computed"])(()=>e.role),triggerId:b,isUsingKeyboard:f,onItemEnter:w,onItemLeave:S,handleClose:O}),Object(u["provide"])(Sh,{instance:n,dropdownSize:k,handleClick:y,commandHandler:C,trigger:Object(u["toRef"])(e,"trigger"),hideOnClick:Object(u["toRef"])(e,"hideOnClick")});const D=e=>{t("click",e)};return{t:o,ns:r,scrollbar:d,wrapStyle:h,dropdownTriggerKls:m,dropdownSize:k,triggerId:b,currentTabId:p,handleCurrentTabIdChange:T,handlerMainButtonClick:D,handleClose:O,handleOpen:M,handleBeforeShowTooltip:I,handleShowTooltip:E,handleBeforeHideTooltip:j,popperRef:c,contentRef:l,triggeringElementRef:a,referenceElementRef:s}}});function Eh(e,t,n,r,o,a){var i;const s=Object(u["resolveComponent"])("el-roving-focus-group"),c=Object(u["resolveComponent"])("el-scrollbar"),l=Object(u["resolveComponent"])("el-only-child"),d=Object(u["resolveComponent"])("el-tooltip"),p=Object(u["resolveComponent"])("el-button"),f=Object(u["resolveComponent"])("arrow-down"),h=Object(u["resolveComponent"])("el-icon"),m=Object(u["resolveComponent"])("el-button-group");return Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([e.ns.b(),e.ns.is("disabled",e.disabled)])},[Object(u["createVNode"])(d,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":"hover"===e.trigger?e.showTimeout:0,"hide-after":"hover"===e.trigger?e.hideTimeout:0,"virtual-ref":null!==(i=e.virtualRef)&&void 0!==i?i:e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:e.ns.namespace.value+"-zoom-in-top",teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Object(u["createSlots"])({content:Object(u["withCtx"])(()=>[Object(u["createVNode"])(c,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(s,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:Object(u["withCtx"])(()=>[Object(u["createVNode"])(l,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(Object(u["openBlock"])(),Object(u["createBlock"])(m,{key:0},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(p,Object(u["mergeProps"])({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),Object(u["createVNode"])(p,Object(u["mergeProps"])({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(h,{class:Object(u["normalizeClass"])(e.ns.e("icon"))},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(f)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):Object(u["createCommentVNode"])("v-if",!0)],2)}var jh=Object(Jo["a"])(Ih,[["render",Eh]]),Dh=Object(u["defineComponent"])({components:{ElRovingFocusCollectionItem:Qf},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:r,onItemShiftTab:o,onKeydown:a}=Object(u["inject"])(rh,void 0),i=Object(ge["a"])(),s=Object(u["ref"])(),c=Object(St["a"])(e=>{t("mousedown",e)},t=>{e.focusable?r(Object(u["unref"])(i)):t.preventDefault()}),l=Object(St["a"])(e=>{t("focus",e)},()=>{r(Object(u["unref"])(i))}),d=Object(St["a"])(e=>{t("keydown",e)},e=>{const{shiftKey:t,target:n,currentTarget:r}=e;Object(St["b"])(e)===vt["a"].tab&&t?o():n===r&&a(e)}),p=Object(u["computed"])(()=>n.value===Object(u["unref"])(i));return Object(u["provide"])(oh,{rovingFocusGroupItemRef:s,tabIndex:Object(u["computed"])(()=>Object(u["unref"])(p)?0:-1),handleMousedown:c,handleFocus:l,handleKeydown:d}),{id:i,handleKeydown:d,handleFocus:l,handleMousedown:c}}});function Lh(e,t,n,r,o,a){const i=Object(u["resolveComponent"])("el-roving-focus-collection-item");return Object(u["openBlock"])(),Object(u["createBlock"])(i,{id:e.id,focusable:e.focusable,active:e.active},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var Ah=Object(Jo["a"])(Dh,[["render",Lh]]),Nh=Object(u["defineComponent"])({name:"DropdownItemImpl",components:{ElIcon:k["a"]},props:Oh,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Object(g["d"])("dropdown"),{role:r}=Object(u["inject"])(wh,void 0),{collectionItemRef:o}=Object(u["inject"])(eh,void 0),{rovingFocusGroupItemRef:a,tabIndex:i,handleFocus:s,handleKeydown:c,handleMousedown:l}=Object(u["inject"])(oh,void 0),d=df(o,a),p=Object(u["computed"])(()=>"menu"===r.value?"menuitem":"navigation"===r.value?"link":"button"),f=Object(St["a"])(e=>{var n;const r=Object(St["b"])(e);if(ue()(n=[vt["a"].enter,vt["a"].numpadEnter,vt["a"].space]).call(n,r))return e.preventDefault(),e.stopImmediatePropagation(),t("clickimpl",e),!0},c);return{ns:n,itemRef:d,dataset:{[Kf]:""},role:p,tabIndex:i,handleFocus:s,handleKeydown:f,handleMousedown:l}}});const Rh=["aria-disabled","tabindex","role"];function xh(e,t,n,r,o,a){const i=Object(u["resolveComponent"])("el-icon");return Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],null,[e.divided?(Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{key:0,role:"separator",class:Object(u["normalizeClass"])(e.ns.bem("menu","item","divided"))},null,2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("li",Object(u["mergeProps"])({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=t=>e.$emit("clickimpl",t)),onFocus:t[1]||(t[1]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onKeydown:t[2]||(t[2]=Object(u["withModifiers"])((...t)=>e.handleKeydown&&e.handleKeydown(...t),["self"])),onMousedown:t[3]||(t[3]=(...t)=>e.handleMousedown&&e.handleMousedown(...t)),onPointermove:t[4]||(t[4]=t=>e.$emit("pointermove",t)),onPointerleave:t[5]||(t[5]=t=>e.$emit("pointerleave",t))}),[e.icon||e.$slots.icon?(Object(u["openBlock"])(),Object(u["createBlock"])(i,{key:0},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(e.$slots,"icon",{},()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.icon)))])]),_:3})):Object(u["createCommentVNode"])("v-if",!0),Object(u["renderSlot"])(e.$slots,"default")],16,Rh)],64)}var Ph=Object(Jo["a"])(Nh,[["render",xh]]);const Uh=()=>{const e=Object(u["inject"])(Sh,{});return{elDropdown:e,_elDropdownSize:Object(u["computed"])(()=>null===e||void 0===e?void 0:e.dropdownSize)}};var Vh=Object(u["defineComponent"])({name:"ElDropdownItem",components:{ElRovingFocusItem:Ah,ElDropdownItemImpl:Ph},inheritAttrs:!1,props:Oh,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=Uh(),o=Object(u["getCurrentInstance"])(),{onItemEnter:a,onItemLeave:i}=Object(u["inject"])(wh,void 0),s=Object(St["a"])(e=>(t("pointermove",e),e.defaultPrevented),Object(St["d"])(t=>{if(e.disabled)return void i(t);const n=t.currentTarget;n===document.activeElement||n.contains(document.activeElement)||(a(t),t.defaultPrevented||null===n||void 0===n||n.focus({preventScroll:!0}))})),c=Object(St["a"])(e=>(t("pointerleave",e),e.defaultPrevented),Object(St["d"])(i));return{handleClick:Object(St["a"])(n=>{if(!e.disabled)return t("click",n),"keydown"!==n.type&&n.defaultPrevented},t=>{var n,a,i;e.disabled?t.stopImmediatePropagation():(null!==r&&void 0!==r&&null!==(n=r.hideOnClick)&&void 0!==n&&n.value&&(null===(a=r.handleClick)||void 0===a||a.call(r)),null===(i=r.commandHandler)||void 0===i||i.call(r,e.command,o,t))}),handlePointerMove:s,handlePointerLeave:c,propsAndAttrs:Object(u["computed"])(()=>({...e,...n}))}}});function Bh(e,t,n,r,o,a){const i=Object(u["resolveComponent"])("el-dropdown-item-impl"),s=Object(u["resolveComponent"])("el-roving-focus-item");return Object(u["openBlock"])(),Object(u["createBlock"])(s,{focusable:!e.disabled},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(i,Object(u["mergeProps"])(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),Object(u["createSlots"])({default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(e.$slots,"icon")]),key:"0"}:void 0]),1040,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var Fh=Object(Jo["a"])(Vh,[["render",Bh]]),Gh=Object(u["defineComponent"])({name:"ElDropdownMenu",props:Mh,setup(e){const t=Object(g["d"])("dropdown"),{_elDropdownSize:n}=Uh(),r=n.value,{contentRef:o,role:a,triggerId:i,isUsingKeyboard:s,handleClose:c}=Object(u["inject"])(wh,void 0),{rovingFocusGroupRef:l,rovingFocusGroupRootStyle:d,onBlur:p,onFocus:f,onKeydown:h,onMousedown:m}=Object(u["inject"])(rh,void 0),{collectionRef:v}=Object(u["inject"])(Zf,void 0),_=Object(u["computed"])(()=>[t.b("menu"),t.bm("menu",null===r||void 0===r?void 0:r.value)]),b=df(o,l,v),y=Object(St["a"])(t=>{var n;null===(n=e.onKeydown)||void 0===n||n.call(e,t)},e=>{const{currentTarget:t,target:n}=e,r=Object(St["b"])(e);if(t.contains(n),vt["a"].tab===r)return c();h(e)});function O(e){s.value&&f(e)}return{size:r,rovingFocusGroupRootStyle:d,dropdownKls:_,role:a,triggerId:i,dropdownListWrapperRef:b,handleKeydown:y,onBlur:p,handleFocus:O,onMousedown:m}}});const Hh=["role","aria-labelledby"];function Yh(e,t,n,r,o,a){return Object(u["openBlock"])(),Object(u["createElementBlock"])("ul",{ref:e.dropdownListWrapperRef,class:Object(u["normalizeClass"])(e.dropdownKls),style:Object(u["normalizeStyle"])(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onFocusout:t[1]||(t[1]=(...t)=>e.onBlur&&e.onBlur(...t)),onKeydown:t[2]||(t[2]=Object(u["withModifiers"])((...t)=>e.handleKeydown&&e.handleKeydown(...t),["self"])),onMousedown:t[3]||(t[3]=Object(u["withModifiers"])((...t)=>e.onMousedown&&e.onMousedown(...t),["self"]))},[Object(u["renderSlot"])(e.$slots,"default")],46,Hh)}var zh=Object(Jo["a"])(Gh,[["render",Yh]]);const qh=Object(r["a"])(jh,{DropdownItem:Fh,DropdownMenu:zh}),Wh=Object(r["d"])(Fh),Kh=Object(r["d"])(zh),$h=Object(c["b"])({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),Jh={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Xh=["id"],Qh=["stop-color"],Zh=["stop-color"],em=["id"],tm=["stop-color"],nm=["stop-color"],rm=["id"],om={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},am={transform:"translate(-1268.000000, -535.000000)"},im={transform:"translate(1268.000000, 535.000000)"},sm=["fill"],cm=["fill"],lm={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},um=["fill"],dm=["fill"],pm=["fill"],fm=["fill"],hm=["fill"],mm={transform:"translate(53.000000, 45.000000)"},vm=["fill","xlink:href"],gm=["fill","mask"],_m=["fill"];var bm=Object(u["defineComponent"])({name:"ImgEmpty",__name:"img-empty",setup(e){const t=Object(g["d"])("empty"),n=Object(ge["a"])();return(e,r)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("svg",Jh,[Object(u["createElementVNode"])("defs",null,[Object(u["createElementVNode"])("linearGradient",{id:"linearGradient-1-"+Object(u["unref"])(n),x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[Object(u["createElementVNode"])("stop",{"stop-color":`var(${Object(u["unref"])(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Qh),Object(u["createElementVNode"])("stop",{"stop-color":`var(${Object(u["unref"])(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,Zh)],8,Xh),Object(u["createElementVNode"])("linearGradient",{id:"linearGradient-2-"+Object(u["unref"])(n),x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[Object(u["createElementVNode"])("stop",{"stop-color":`var(${Object(u["unref"])(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,tm),Object(u["createElementVNode"])("stop",{"stop-color":`var(${Object(u["unref"])(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,nm)],8,em),Object(u["createElementVNode"])("rect",{id:"path-3-"+Object(u["unref"])(n),x:"0",y:"0",width:"17",height:"36"},null,8,rm)]),Object(u["createElementVNode"])("g",om,[Object(u["createElementVNode"])("g",am,[Object(u["createElementVNode"])("g",im,[Object(u["createElementVNode"])("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${Object(u["unref"])(t).cssVarBlockName("fill-color-3")})`},null,8,sm),Object(u["createElementVNode"])("polygon",{fill:`var(${Object(u["unref"])(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,cm),Object(u["createElementVNode"])("g",lm,[Object(u["createElementVNode"])("polygon",{fill:`var(${Object(u["unref"])(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,um),Object(u["createElementVNode"])("polygon",{fill:`var(${Object(u["unref"])(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,dm),Object(u["createElementVNode"])("rect",{fill:`url(#linearGradient-1-${Object(u["unref"])(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,pm),Object(u["createElementVNode"])("polygon",{fill:`var(${Object(u["unref"])(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,fm)]),Object(u["createElementVNode"])("rect",{fill:`url(#linearGradient-2-${Object(u["unref"])(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,hm),Object(u["createElementVNode"])("g",mm,[Object(u["createElementVNode"])("use",{fill:`var(${Object(u["unref"])(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":"#path-3-"+Object(u["unref"])(n)},null,8,vm),Object(u["createElementVNode"])("polygon",{fill:`var(${Object(u["unref"])(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${Object(u["unref"])(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,gm)]),Object(u["createElementVNode"])("polygon",{fill:`var(${Object(u["unref"])(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,_m)])])])]))}}),ym=bm;const Om=["src"],Mm={key:1};var km=Object(u["defineComponent"])({name:"ElEmpty",__name:"empty",props:$h,setup(e){const t=e,{t:n}=Object(fr["b"])(),r=Object(g["d"])("empty"),o=Object(u["computed"])(()=>t.description||n("el.table.emptyText")),a=Object(u["computed"])(()=>({width:Object(i["b"])(t.imageSize)}));return(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).b())},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("image")),style:Object(u["normalizeStyle"])(a.value)},[e.image?(Object(u["openBlock"])(),Object(u["createElementBlock"])("img",{key:0,src:e.image,ondragstart:"return false"},null,8,Om)):Object(u["renderSlot"])(t.$slots,"image",{key:1},()=>[Object(u["createVNode"])(ym)])],6),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("description"))},[t.$slots.description?Object(u["renderSlot"])(t.$slots,"description",{key:0}):(Object(u["openBlock"])(),Object(u["createElementBlock"])("p",Mm,Object(u["toDisplayString"])(o.value),1))],2),t.$slots.default?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("bottom"))},[Object(u["renderSlot"])(t.$slots,"default")],2)):Object(u["createCommentVNode"])("v-if",!0)],2))}}),Cm=km;const wm=Object(r["a"])(Cm);var Sm=n("493c"),Tm=n.n(Sm);const Im=Object(c["b"])({urlList:{type:Object(c["c"])(Array),default:()=>Object(Bc["a"])([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:Object(c["c"])(String)}}),Em={close:()=>!0,error:e=>e instanceof Event,switch:e=>Object(h["d"])(e),rotate:e=>Object(h["d"])(e)},jm=["src","crossorigin"];var Dm=Object(u["defineComponent"])({name:"ElImageViewer",__name:"image-viewer",props:Im,emits:Em,setup(e,{expose:t,emit:n}){var r;const o={CONTAIN:{name:"contain",icon:Object(u["markRaw"])(Fn["FullScreen"])},ORIGINAL:{name:"original",icon:Object(u["markRaw"])(Fn["ScaleToOriginal"])}},a=e,i=n;let s;const{t:c}=Object(fr["b"])(),l=Object(g["d"])("image-viewer"),{nextZIndex:d}=Object(on["b"])(),p=Object(u["ref"])(),h=Object(u["ref"])(),m=Object(u["effectScope"])(),v=Object(u["computed"])(()=>{const{scale:e,minScale:t,maxScale:n}=a;return Object(_["clamp"])(e,t,n)}),b=Object(u["ref"])(!0),y=Object(u["ref"])(!1),O=Object(u["ref"])(!1),M=Object(u["ref"])(a.initialIndex),C=Object(u["shallowRef"])(o.CONTAIN),w=Object(u["ref"])({scale:v.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),S=Object(u["ref"])(null!==(r=a.zIndex)&&void 0!==r?r:d());Object(bf["a"])(O,{ns:l});const T=Object(u["computed"])(()=>{const{urlList:e}=a;return e.length<=1}),E=Object(u["computed"])(()=>0===M.value),j=Object(u["computed"])(()=>M.value===a.urlList.length-1),D=Object(u["computed"])(()=>a.urlList[M.value]),L=Object(u["computed"])(()=>[l.e("btn"),l.e("prev"),l.is("disabled",!a.infinite&&E.value)]),A=Object(u["computed"])(()=>[l.e("btn"),l.e("next"),l.is("disabled",!a.infinite&&j.value)]),N=Object(u["computed"])(()=>{const{scale:e,deg:t,offsetX:n,offsetY:r,enableTransition:a}=w.value;let i=n/e,s=r/e;const c=t*Math.PI/180,l=Math.cos(c),u=Math.sin(c);i=i*l+s*u,s=s*l-n/e*u;const d={transform:`scale(${e}) rotate(${t}deg) translate(${i}px, ${s}px)`,transition:a?"transform .3s":""};return C.value.name===o.CONTAIN.name&&(d.maxWidth=d.maxHeight="100%"),d}),R=Object(u["computed"])(()=>`${M.value+1} / ${a.urlList.length}`);function x(){var e;U(),null===(e=s)||void 0===e||e(),O.value=!1,i("close")}function P(){const e=Object(ne["throttle"])(e=>{switch(Object(St["b"])(e)){case vt["a"].esc:a.closeOnPressEscape&&x();break;case vt["a"].space:Y();break;case vt["a"].left:q();break;case vt["a"].up:K("zoomIn");break;case vt["a"].right:W();break;case vt["a"].down:K("zoomOut");break}}),t=Object(ne["throttle"])(e=>{K((e.deltaY||e.deltaX)<0?"zoomIn":"zoomOut",{zoomRate:a.zoomRate,enableTransition:!1})});m.run(()=>{Object(_["useEventListener"])(document,"keydown",e),Object(_["useEventListener"])(p,"wheel",t)})}function U(){m.stop()}function V(){b.value=!1}function B(e){y.value=!0,b.value=!1,i("error",e),e.target.alt=c("el.image.error")}function F(e){if(b.value||0!==e.button||!p.value)return;w.value.enableTransition=!1;const{offsetX:t,offsetY:n}=w.value,r=e.pageX,o=e.pageY,a=Object(ne["throttle"])(e=>{w.value={...w.value,offsetX:t+e.pageX-r,offsetY:n+e.pageY-o}}),i=Object(_["useEventListener"])(document,"mousemove",a),s=Object(_["useEventListener"])(document,"mouseup",()=>{i(),s()});e.preventDefault()}function G(e){if(b.value||!p.value||1!==e.touches.length)return;w.value.enableTransition=!1;const{offsetX:t,offsetY:n}=w.value,{pageX:r,pageY:o}=e.touches[0],a=Object(ne["throttle"])(e=>{const a=e.touches[0];w.value={...w.value,offsetX:t+a.pageX-r,offsetY:n+a.pageY-o}}),i=Object(_["useEventListener"])(document,"touchmove",a),s=Object(_["useEventListener"])(document,"touchend",()=>{i(),s()});e.preventDefault()}function H(){w.value={scale:v.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function Y(){if(b.value||y.value)return;const e=Object(I["c"])(o),t=Tm()(o),n=C.value.name;C.value=o[e[(ya()(t).call(t,e=>e.name===n)+1)%e.length]],H()}function z(e){y.value=!1;const t=a.urlList.length;M.value=(e+t)%t}function q(){E.value&&!a.infinite||z(M.value-1)}function W(){j.value&&!a.infinite||z(M.value+1)}function K(e,t={}){if(b.value||y.value)return;const{minScale:n,maxScale:r}=a,{zoomRate:o,rotateDeg:s,enableTransition:c}={zoomRate:a.zoomRate,rotateDeg:90,enableTransition:!0,...t};switch(e){case"zoomOut":w.value.scale>n&&(w.value.scale=Oe()((w.value.scale/o).toFixed(3)));break;case"zoomIn":w.value.scale<r&&(w.value.scale=Oe()((w.value.scale*o).toFixed(3)));break;case"clockwise":w.value.deg+=s,i("rotate",w.value.deg);break;case"anticlockwise":w.value.deg-=s,i("rotate",w.value.deg);break}w.value.enableTransition=c}function $(e){var t;"pointer"===(null===(t=e.detail)||void 0===t?void 0:t.focusReason)&&e.preventDefault()}function J(){a.closeOnPressEscape&&x()}function X(e){if(e.ctrlKey)return e.deltaY<0||e.deltaY>0?(e.preventDefault(),!1):void 0}return Object(u["watch"])(()=>v.value,e=>{w.value.scale=e}),Object(u["watch"])(D,()=>{Object(u["nextTick"])(()=>{var e;null!==(e=h.value)&&void 0!==e&&e.complete||(b.value=!0)})}),Object(u["watch"])(M,e=>{H(),i("switch",e)}),Object(u["onMounted"])(()=>{O.value=!0,P(),s=Object(_["useEventListener"])("wheel",X,{passive:!1})}),t({setActiveItem:z}),(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(f),{to:"body",disabled:!e.teleported},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(u["Transition"],{name:"viewer-fade",appear:""},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{ref_key:"wrapper",ref:p,tabindex:-1,class:Object(u["normalizeClass"])(Object(u["unref"])(l).e("wrapper")),style:Object(u["normalizeStyle"])({zIndex:S.value})},[Object(u["createVNode"])(Object(u["unref"])(Wt["a"]),{loop:"",trapped:"","focus-trap-el":p.value,"focus-start-el":"container",onFocusoutPrevented:$,onReleaseRequested:J},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(l).e("mask")),onClick:n[0]||(n[0]=Object(u["withModifiers"])(t=>e.hideOnClickModal&&x(),["self"]))},null,2),Object(u["createCommentVNode"])(" CLOSE "),Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])([Object(u["unref"])(l).e("btn"),Object(u["unref"])(l).e("close")]),onClick:x},[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Close"]))]),_:1})],2),Object(u["createCommentVNode"])(" ARROW "),T.value?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:0},[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(L.value),onClick:q},[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowLeft"]))]),_:1})],2),Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(A.value),onClick:W},[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowRight"]))]),_:1})],2)],64)),t.$slots.progress||e.showProgress?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])([Object(u["unref"])(l).e("btn"),Object(u["unref"])(l).e("progress")])},[Object(u["renderSlot"])(t.$slots,"progress",{activeIndex:M.value,total:e.urlList.length},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(R.value),1)])],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createCommentVNode"])(" ACTIONS "),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(l).e("btn"),Object(u["unref"])(l).e("actions")])},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(l).e("actions__inner"))},[Object(u["renderSlot"])(t.$slots,"toolbar",{actions:K,prev:q,next:W,reset:Y,activeIndex:M.value,setActiveItem:z},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),{onClick:n[1]||(n[1]=e=>K("zoomOut"))},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ZoomOut"]))]),_:1}),Object(u["createVNode"])(Object(u["unref"])(k["a"]),{onClick:n[2]||(n[2]=e=>K("zoomIn"))},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ZoomIn"]))]),_:1}),Object(u["createElementVNode"])("i",{class:Object(u["normalizeClass"])(Object(u["unref"])(l).e("actions__divider"))},null,2),Object(u["createVNode"])(Object(u["unref"])(k["a"]),{onClick:Y},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(C.value.icon)))]),_:1}),Object(u["createElementVNode"])("i",{class:Object(u["normalizeClass"])(Object(u["unref"])(l).e("actions__divider"))},null,2),Object(u["createVNode"])(Object(u["unref"])(k["a"]),{onClick:n[3]||(n[3]=e=>K("anticlockwise"))},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["RefreshLeft"]))]),_:1}),Object(u["createVNode"])(Object(u["unref"])(k["a"]),{onClick:n[4]||(n[4]=e=>K("clockwise"))},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["RefreshRight"]))]),_:1})])],2)],2),Object(u["createCommentVNode"])(" CANVAS "),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(l).e("canvas"))},[y.value&&t.$slots["viewer-error"]?Object(u["renderSlot"])(t.$slots,"viewer-error",{key:0,activeIndex:M.value,src:D.value}):(Object(u["openBlock"])(),Object(u["createElementBlock"])("img",{ref_key:"imgRef",ref:h,key:D.value,src:D.value,style:Object(u["normalizeStyle"])(N.value),class:Object(u["normalizeClass"])(Object(u["unref"])(l).e("img")),crossorigin:e.crossorigin,onLoad:V,onError:B,onMousedown:F,onTouchstart:G},null,46,jm))],2),Object(u["renderSlot"])(t.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}}),Lm=Dm;const Am=Object(r["a"])(Lm),Nm=Object(c["b"])({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:Object(c["c"])([String,Object])},previewSrcList:{type:Object(c["c"])(Array),default:()=>Object(Bc["a"])([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:Object(c["c"])(String)}}),Rm={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Object(h["d"])(e),close:()=>!0,show:()=>!0},xm=["src","loading","crossorigin"],Pm={key:0};var Um=Object(u["defineComponent"])({name:"ElImage",inheritAttrs:!1,__name:"image",props:Nm,emits:Rm,setup(e,{expose:t,emit:n}){const r=e,o=n,{t:a}=Object(fr["b"])(),i=Object(g["d"])("image"),c=Object(u["useAttrs"])(),l=Object(u["computed"])(()=>{var e;return Object(ne["fromPairs"])(K()(e=Vc()(c)).call(e,([e])=>{var t;return/^(data-|on[A-Z])/i.test(e)||ue()(t=["id","style"]).call(t,e)}))}),d=Object(ao["a"])({excludeListeners:!0,excludeKeys:Object(u["computed"])(()=>Q()(l.value))}),p=Object(u["ref"])(),f=Object(u["ref"])(!1),m=Object(u["ref"])(!0),v=Object(u["ref"])(!1),b=Object(u["ref"])(),y=Object(u["ref"])(),O=_["isClient"]&&"loading"in HTMLImageElement.prototype;let M;const k=Object(u["computed"])(()=>[i.e("inner"),w.value&&i.e("preview"),m.value&&i.is("loading")]),C=Object(u["computed"])(()=>{const{fit:e}=r;return _["isClient"]&&e?{objectFit:e}:{}}),w=Object(u["computed"])(()=>{const{previewSrcList:e}=r;return Object(te["isArray"])(e)&&e.length>0}),S=Object(u["computed"])(()=>{const{previewSrcList:e,initialIndex:t}=r;let n=t;return t>e.length-1&&(n=0),n}),T=Object(u["computed"])(()=>"eager"!==r.loading&&(!O&&"lazy"===r.loading||r.lazy)),I=()=>{_["isClient"]&&(m.value=!0,f.value=!1,p.value=r.src)};function E(e){m.value=!1,f.value=!1,o("load",e)}function j(e){m.value=!1,f.value=!0,o("error",e)}function D(e){e&&(I(),N())}const L=Object(_["useThrottleFn"])(D,200,!0);async function A(){var e;if(!_["isClient"])return;await Object(u["nextTick"])();const{scrollContainer:t}=r;if(Object(h["b"])(t))y.value=t;else if(Object(te["isString"])(t)&&""!==t)y.value=null!==(e=document.querySelector(t))&&void 0!==e?e:void 0;else if(b.value){const e=Object(s["c"])(b.value);y.value=Object(h["h"])(e)?void 0:e}const{stop:n}=Object(_["useIntersectionObserver"])(b,([e])=>{L(e.isIntersecting)},{root:y});M=n}function N(){var e;_["isClient"]&&L&&(null===(e=M)||void 0===e||e(),y.value=void 0,M=void 0)}function R(){w.value&&(v.value=!0,o("show"))}function x(){v.value=!1,o("close")}function P(e){o("switch",e)}return Object(u["watch"])(()=>r.src,()=>{T.value?(m.value=!0,f.value=!1,N(),A()):I()}),Object(u["onMounted"])(()=>{T.value?A():I()}),t({showPreview:R}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",Object(u["mergeProps"])({ref_key:"container",ref:b},l.value,{class:[Object(u["unref"])(i).b(),t.$attrs.class]}),[f.value?Object(u["renderSlot"])(t.$slots,"error",{key:0},()=>[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("error"))},Object(u["toDisplayString"])(Object(u["unref"])(a)("el.image.error")),3)]):(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:1},[void 0!==p.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("img",Object(u["mergeProps"])({key:0},Object(u["unref"])(d),{src:p.value,loading:e.loading,style:C.value,class:k.value,crossorigin:e.crossorigin,onClick:R,onLoad:E,onError:j}),null,16,xm)):Object(u["createCommentVNode"])("v-if",!0),m.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("wrapper"))},[Object(u["renderSlot"])(t.$slots,"placeholder",{},()=>[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("placeholder"))},null,2)])],2)):Object(u["createCommentVNode"])("v-if",!0)],64)),w.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:2},[v.value?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Am),{key:0,"z-index":e.zIndex,"initial-index":S.value,infinite:e.infinite,"zoom-rate":e.zoomRate,"min-scale":e.minScale,"max-scale":e.maxScale,"show-progress":e.showProgress,"url-list":e.previewSrcList,scale:e.scale,crossorigin:e.crossorigin,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:x,onSwitch:P},Object(u["createSlots"])({toolbar:Object(u["withCtx"])(e=>[Object(u["renderSlot"])(t.$slots,"toolbar",Object(u["normalizeProps"])(Object(u["guardReactiveProps"])(e)))]),default:Object(u["withCtx"])(()=>[t.$slots.viewer?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",Pm,[Object(u["renderSlot"])(t.$slots,"viewer")])):Object(u["createCommentVNode"])("v-if",!0)]),_:2},[t.$slots.progress?{name:"progress",fn:Object(u["withCtx"])(e=>[Object(u["renderSlot"])(t.$slots,"progress",Object(u["normalizeProps"])(Object(u["guardReactiveProps"])(e)))]),key:"0"}:void 0,t.$slots["viewer-error"]?{name:"viewer-error",fn:Object(u["withCtx"])(e=>[Object(u["renderSlot"])(t.$slots,"viewer-error",Object(u["normalizeProps"])(Object(u["guardReactiveProps"])(e)))]),key:"1"}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","scale","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):Object(u["createCommentVNode"])("v-if",!0)],64)):Object(u["createCommentVNode"])("v-if",!0)],16))}}),Vm=Um;const Bm=Object(r["a"])(Vm);var Fm=n("3118"),Gm=n.n(Fm),Hm=n("a37a"),Ym=n.n(Hm),zm=n("8599"),qm=n.n(zm);const Wm=Object(c["b"])({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Gm.a},min:{type:Number,default:Ym.a},modelValue:{type:[Number,null]},readonly:Boolean,disabled:{type:Boolean,default:void 0},size:Nr["c"],controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:Object(c["c"])([String,Number,null]),validator:e=>{var t;return null===e||Object(h["d"])(e)||ue()(t=["min","max"]).call(t,e)},default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===ke()(""+e,10)},validateEvent:{type:Boolean,default:!0},...Object(st["a"])(["ariaLabel"]),inputmode:{type:Object(c["c"])(String),default:void 0},align:{type:Object(c["c"])(String),default:"center"},disabledScientific:Boolean}),Km={[o["a"]]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[o["b"]]:e=>Object(h["d"])(e)||Object(ne["isNil"])(e),[o["c"]]:e=>Object(h["d"])(e)||Object(ne["isNil"])(e)},$m=["aria-label"],Jm=["aria-label"];var Xm=Object(u["defineComponent"])({name:"ElInputNumber",__name:"input-number",props:Wm,emits:Km,setup(e,{expose:t,emit:n}){const r=e,i=n,{t:s}=Object(fr["b"])(),c=Object(g["d"])("input-number"),l=Object(u["ref"])(),d=Object(u["reactive"])({currentValue:r.modelValue,userInput:null}),{formItem:p}=Object(Hr["a"])(),f=Object(u["computed"])(()=>Object(h["d"])(r.modelValue)&&r.modelValue<=r.min),m=Object(u["computed"])(()=>Object(h["d"])(r.modelValue)&&r.modelValue>=r.max),v=Object(u["computed"])(()=>{const e=C(r.step);return Object(h["g"])(r.precision)?Math.max(C(r.modelValue),e):(e>r.precision&&Object(a["a"])("InputNumber","precision should not be less than the decimal places of step"),r.precision)}),_=Object(u["computed"])(()=>r.controls&&"right"===r.controlsPosition),b=Object(ce["b"])(),y=Object(ce["a"])(),O=Object(u["computed"])(()=>{if(null!==d.userInput)return d.userInput;let e=d.currentValue;if(Object(ne["isNil"])(e))return"";if(Object(h["d"])(e)){if(Di()(e))return"";Object(h["g"])(r.precision)||(e=e.toFixed(r.precision))}return e}),M=(e,t)=>{if(Object(h["g"])(t)&&(t=v.value),0===t)return Math.round(e);let n=String(e);const r=B()(n).call(n,".");if(-1===r)return e;if(!n.replace(".","").split("")[r+t])return e;const o=n.length;return"5"===n.charAt(o-1)&&(n=It()(n).call(n,0,Math.max(0,o-1))+"6"),Oe()(Number(n).toFixed(t))},C=e=>{if(Object(ne["isNil"])(e))return 0;const t=e.toString(),n=B()(t).call(t,".");let r=0;return-1!==n&&(r=t.length-n-1),r},w=(e,t=1)=>Object(h["d"])(e)?e>=Gm.a&&1===t?(Object(a["a"])("InputNumber","The value has reached the maximum safe integer limit."),e):e<=Ym.a&&-1===t?(Object(a["a"])("InputNumber","The value has reached the minimum safe integer limit."),e):M(e+r.step*t):d.currentValue,S=e=>{var t;const n=Object(St["b"])(e),o=Object(St["c"])(e);if(r.disabledScientific&&ue()(t=["e","E"]).call(t,o))e.preventDefault();else switch(n){case vt["a"].up:e.preventDefault(),T();break;case vt["a"].down:e.preventDefault(),I();break}},T=()=>{r.readonly||y.value||m.value||(j(w(Number(O.value)||0)),i(o["b"],d.currentValue),P())},I=()=>{r.readonly||y.value||f.value||(j(w(Number(O.value)||0,-1)),i(o["b"],d.currentValue),P())},E=(e,t)=>{const{max:n,min:s,step:c,precision:l,stepStrictly:u,valueOnClear:d}=r;n<s&&Object(a["b"])("InputNumber","min should not be greater than max.");let p=Number(e);if(Object(ne["isNil"])(e)||Di()(p))return null;if(""===e){if(null===d)return null;p=Object(te["isString"])(d)?{min:s,max:n}[d]:d}return u&&(p=M(Math.round(M(p/c))*c,l),p!==e&&t&&i(o["c"],p)),Object(h["g"])(l)||(p=M(p,l)),(p>n||p<s)&&(p=p>n?n:s,t&&i(o["c"],p)),p},j=(e,t=!0)=>{var n;const s=d.currentValue,c=E(e);t?(d.userInput=null,s===c&&e||(i(o["c"],c),s!==c&&i(o["a"],c,s),r.validateEvent&&(null===p||void 0===p||null===(n=p.validate)||void 0===n||n.call(p,"change").catch(e=>Object(a["a"])(e))),d.currentValue=c)):i(o["c"],c)},D=e=>{d.userInput=e;const t=""===e?null:Number(e);i(o["b"],t),j(t,!1)},L=e=>{const t=""!==e?Number(e):"";(Object(h["d"])(t)&&!Di()(t)||""===e)&&j(t),P(),d.userInput=null},A=()=>{var e,t;null===(e=l.value)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e)},N=()=>{var e,t;null===(e=l.value)||void 0===e||null===(t=e.blur)||void 0===t||t.call(e)},R=e=>{i("focus",e)},x=e=>{var t,n;d.userInput=null,null===d.currentValue&&null!==(t=l.value)&&void 0!==t&&t.input&&(l.value.input.value=""),i("blur",e),r.validateEvent&&(null===p||void 0===p||null===(n=p.validate)||void 0===n||n.call(p,"blur").catch(e=>Object(a["a"])(e)))},P=()=>{d.currentValue!==r.modelValue&&(d.currentValue=r.modelValue)},U=e=>{document.activeElement===e.target&&e.preventDefault()};return Object(u["watch"])(()=>r.modelValue,(e,t)=>{const n=E(e,!0);null===d.userInput&&n!==t&&(d.currentValue=n)},{immediate:!0}),Object(u["watch"])(()=>r.precision,()=>{d.currentValue=E(r.modelValue)}),Object(u["onMounted"])(()=>{var e;const{min:t,max:n,modelValue:a}=r,s=null===(e=l.value)||void 0===e?void 0:e.input;if(s.setAttribute("role","spinbutton"),qm()(n)?s.setAttribute("aria-valuemax",String(n)):s.removeAttribute("aria-valuemax"),qm()(t)?s.setAttribute("aria-valuemin",String(t)):s.removeAttribute("aria-valuemin"),s.setAttribute("aria-valuenow",d.currentValue||0===d.currentValue?String(d.currentValue):""),s.setAttribute("aria-disabled",String(y.value)),!Object(h["d"])(a)&&null!=a){let e=Number(a);Di()(e)&&(e=null),i(o["c"],e)}s.addEventListener("wheel",U,{passive:!1})}),Object(u["onUpdated"])(()=>{var e,t;null===(e=l.value)||void 0===e||null===(e=e.input)||void 0===e||e.setAttribute("aria-valuenow",""+(null!==(t=d.currentValue)&&void 0!==t?t:""))}),t({focus:A,blur:N}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(c).b(),Object(u["unref"])(c).m(Object(u["unref"])(b)),Object(u["unref"])(c).is("disabled",Object(u["unref"])(y)),Object(u["unref"])(c).is("without-controls",!e.controls),Object(u["unref"])(c).is("controls-right",_.value),Object(u["unref"])(c).is(e.align,!!e.align)]),onDragstart:n[0]||(n[0]=Object(u["withModifiers"])(()=>{},["prevent"]))},[e.controls?Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:0,role:"button","aria-label":Object(u["unref"])(s)("el.inputNumber.decrease"),class:Object(u["normalizeClass"])([Object(u["unref"])(c).e("decrease"),Object(u["unref"])(c).is("disabled",f.value)]),onKeydown:Object(u["withKeys"])(I,["enter"])},[Object(u["renderSlot"])(t.$slots,"decrease-icon",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[_.value?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Fn["ArrowDown"]),{key:0})):(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Fn["Minus"]),{key:1}))]),_:1})])],42,$m)),[[Object(u["unref"])(wo),I]]):Object(u["createCommentVNode"])("v-if",!0),e.controls?Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:1,role:"button","aria-label":Object(u["unref"])(s)("el.inputNumber.increase"),class:Object(u["normalizeClass"])([Object(u["unref"])(c).e("increase"),Object(u["unref"])(c).is("disabled",m.value)]),onKeydown:Object(u["withKeys"])(T,["enter"])},[Object(u["renderSlot"])(t.$slots,"increase-icon",{},()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[_.value?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Fn["ArrowUp"]),{key:0})):(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Fn["Plus"]),{key:1}))]),_:1})])],42,Jm)),[[Object(u["unref"])(wo),T]]):Object(u["createCommentVNode"])("v-if",!0),Object(u["createVNode"])(Object(u["unref"])(gn["a"]),{id:e.id,ref_key:"input",ref:l,type:"number",step:e.step,"model-value":O.value,placeholder:e.placeholder,readonly:e.readonly,disabled:Object(u["unref"])(y),size:Object(u["unref"])(b),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,inputmode:e.inputmode,onKeydown:S,onBlur:x,onFocus:R,onInput:D,onChange:L},Object(u["createSlots"])({_:2},[t.$slots.prefix?{name:"prefix",fn:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"prefix")]),key:"0"}:void 0,t.$slots.suffix?{name:"suffix",fn:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"suffix")]),key:"1"}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],34))}}),Qm=Xm;const Zm=Object(r["a"])(Qm),ev=Object(c["b"])({modelValue:{type:Object(c["c"])(Array)},max:Number,tagType:{...Ho.type,default:"info"},tagEffect:Ho.effect,effect:{type:Object(c["c"])(String),default:"light"},trigger:{type:Object(c["c"])(String),default:vt["a"].enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:Nr["c"],clearable:Boolean,clearIcon:{type:S["e"],default:Fn["CircleClose"]},disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:Object(c["c"])(String),default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),tv={[o["c"]]:e=>Object(te["isArray"])(e)||Object(h["g"])(e),[o["a"]]:e=>Object(te["isArray"])(e)||Object(h["g"])(e),[o["b"]]:e=>Object(te["isString"])(e),"add-tag":e=>Object(te["isString"])(e)||Object(te["isArray"])(e),"remove-tag":(e,t)=>Object(te["isString"])(e)&&Object(h["d"])(t),"drag-tag":(e,t,n)=>Object(h["d"])(e)&&Object(h["d"])(t)&&Object(te["isString"])(n),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function nv({wrapperRef:e,handleDragged:t,afterDragged:n}){const r=Object(g["d"])("input-tag"),o=Object(u["shallowRef"])(),a=Object(u["ref"])(!1);let s,c,l,d;function p(e){return`.${r.e("inner")} .${r.namespace.value}-tag:nth-child(${e+1})`}function f(t,n){s=n,c=e.value.querySelector(p(n)),c&&(c.style.opacity="0.5"),t.dataTransfer.effectAllowed="move"}function m(t,n){if(l=n,t.preventDefault(),t.dataTransfer.dropEffect="move",Object(h["g"])(s)||s===n)return void(a.value=!1);const c=e.value.querySelector(p(n)).getBoundingClientRect(),u=!(s+1===n),f=!(s-1===n),m=t.clientX-c.left,v=u?f?.5:1:-1,g=f?u?.5:0:1;d=m<=c.width*v?"before":m>c.width*g?"after":void 0;const _=e.value.querySelector("."+r.e("inner")),b=_.getBoundingClientRect(),y=Oe()(Object(i["c"])(_,"gap"))/2,O=c.top-b.top;let M=-9999;if("before"===d)M=Math.max(c.left-b.left-y,Math.floor(-y/2));else if("after"===d){const e=c.right-b.left;M=e+(b.width===e?Math.floor(y/2):y)}Object(i["f"])(o.value,{top:O+"px",left:M+"px"}),a.value=!!d}function v(e){e.preventDefault(),c&&(c.style.opacity=""),!d||Object(h["g"])(s)||Object(h["g"])(l)||s===l||t(s,l,d),a.value=!1,s=void 0,c=null,l=void 0,d=void 0,null===n||void 0===n||n()}return{dropIndicatorRef:o,showDropIndicator:a,handleDragStart:f,handleDragOver:m,handleDragEnd:v}}function rv(){const e=Object(u["ref"])(!1),t=()=>{e.value=!0},n=()=>{e.value=!1};return{hovering:e,handleMouseEnter:t,handleMouseLeave:n}}var ov=n("6ab4");function av({props:e,emit:t,formItem:n}){const r=Object(ce["a"])(),i=Object(ce["b"])(),s=Object(u["shallowRef"])(),c=Object(u["ref"])(),l=Object(u["ref"])(),d=Object(u["computed"])(()=>{var e;return ue()(e=["small"]).call(e,i.value)?"small":"default"}),p=Object(u["computed"])(()=>{var t;return null!==(t=e.modelValue)&&void 0!==t&&t.length?void 0:e.placeholder}),f=Object(u["computed"])(()=>!(e.readonly||r.value)),m=Object(u["computed"])(()=>{var t,n;return!Object(h["g"])(e.max)&&(null!==(t=null===(n=e.modelValue)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>=e.max}),v=Object(u["computed"])(()=>{var t;return e.collapseTags?null===(t=e.modelValue)||void 0===t?void 0:It()(t).call(t,0,e.maxCollapseTags):e.modelValue}),g=Object(u["computed"])(()=>{var t;return e.collapseTags?null===(t=e.modelValue)||void 0===t?void 0:It()(t).call(t,e.maxCollapseTags):[]}),_=n=>{var r;const a=[...null!==(r=e.modelValue)&&void 0!==r?r:[],...Object(ne["castArray"])(n)];t(o["c"],a),t(o["a"],a),t("add-tag",n),c.value=void 0},b=t=>{var n;const r=t.split(e.delimiter),o=r.length>1?K()(n=J()(r).call(r,e=>zr()(e).call(e))).call(n,Boolean):[];if(e.max){var a,i;const t=e.max-(null!==(a=null===(i=e.modelValue)||void 0===i?void 0:i.length)&&void 0!==a?a:0);U()(o).call(o,t)}return 1===o.length?o[0]:o},y=n=>{var r;const a=null===(r=n.clipboardData)||void 0===r?void 0:r.getData("text");if(e.readonly||m.value||!e.delimiter||!a)return;const{selectionStart:i=0,selectionEnd:s=0,value:c}=n.target,l=It()(c).call(c,0,i)+a+It()(c).call(c,s),u=b(l);u.length&&(_(u),t(o["b"],l),n.preventDefault())},O=n=>{if(m.value)c.value=void 0;else if(!L.value){if(e.delimiter&&c.value){const e=b(c.value);e.length&&_(e)}t(o["b"],n.target.value)}},M=t=>{var n;if(!L.value)switch(Object(St["b"])(t)){case e.trigger:t.preventDefault(),t.stopPropagation(),C();break;case vt["a"].numpadEnter:e.trigger===vt["a"].enter&&(t.preventDefault(),t.stopPropagation(),C());break;case vt["a"].backspace:!c.value&&null!==(n=e.modelValue)&&void 0!==n&&n.length&&(t.preventDefault(),t.stopPropagation(),w(e.modelValue.length-1));break}},k=t=>{if(!L.value&&Object(ov["a"])())switch(Object(St["b"])(t)){case vt["a"].space:e.trigger===vt["a"].space&&(t.preventDefault(),t.stopPropagation(),C());break}},C=()=>{var e;const t=null===(e=c.value)||void 0===e?void 0:zr()(e).call(e);t&&!m.value&&_(t)},w=n=>{var r,a;const i=It()(r=null!==(a=e.modelValue)&&void 0!==a?a:[]).call(r),[s]=U()(i).call(i,n,1);t(o["c"],i),t(o["a"],i),t("remove-tag",s,n)},S=()=>{c.value=void 0,t(o["c"],void 0),t(o["a"],void 0),t("clear")},T=(n,r,a)=>{var i,s;const c=It()(i=null!==(s=e.modelValue)&&void 0!==s?s:[]).call(i),[l]=U()(c).call(c,n,1),u=r>n&&"before"===a?-1:r<n&&"after"===a?1:0;U()(c).call(c,r+u,0,l),t(o["c"],c),t(o["a"],c),t("drag-tag",n,r+u,l)},I=()=>{var e;null===(e=s.value)||void 0===e||e.focus()},E=()=>{var e;null===(e=s.value)||void 0===e||e.blur()},{wrapperRef:j,isFocused:D}=Object(Gr["a"])(s,{disabled:r,beforeBlur(e){var t;return null===(t=l.value)||void 0===t?void 0:t.isFocusInsideContent(e)},afterBlur(){var t;e.saveOnBlur?C():c.value=void 0,e.validateEvent&&(null===n||void 0===n||null===(t=n.validate)||void 0===t||t.call(n,"blur").catch(e=>Object(a["a"])(e)))}}),{isComposing:L,handleCompositionStart:A,handleCompositionUpdate:N,handleCompositionEnd:R}=Object(Aa["a"])({afterComposition:O});return Object(u["watch"])(()=>e.modelValue,()=>{var t;e.validateEvent&&(null===n||void 0===n||null===(t=n.validate)||void 0===t||t.call(n,o["a"]).catch(e=>Object(a["a"])(e)))}),{inputRef:s,wrapperRef:j,tagTooltipRef:l,isFocused:D,isComposing:L,inputValue:c,size:i,tagSize:d,placeholder:p,closable:f,disabled:r,inputLimit:m,showTagList:v,collapseTagList:g,handleDragged:T,handlePaste:y,handleInput:O,handleKeydown:M,handleKeyup:k,handleAddTag:C,handleRemoveTag:w,handleClear:S,handleCompositionStart:A,handleCompositionUpdate:N,handleCompositionEnd:R,focus:I,blur:E}}function iv({props:e,isFocused:t,hovering:n,disabled:r,inputValue:o,size:a,validateState:i,validateIcon:s,needStatusIcon:c}){const l=Object(u["useAttrs"])(),d=Object(u["useSlots"])(),p=Object(g["d"])("input-tag"),f=Object(g["d"])("input"),h=Object(u["ref"])(),m=Object(u["ref"])(),v=Object(u["computed"])(()=>[p.b(),p.is("focused",t.value),p.is("hovering",n.value),p.is("disabled",r.value),p.m(a.value),p.e("wrapper"),l.class]),b=Object(u["computed"])(()=>[l.style]),y=Object(u["computed"])(()=>{var t,n;return[p.e("inner"),p.is("draggable",e.draggable),p.is("left-space",!(null!==(t=e.modelValue)&&void 0!==t&&t.length)&&!d.prefix),p.is("right-space",!(null!==(n=e.modelValue)&&void 0!==n&&n.length)&&!M.value)]}),O=Object(u["computed"])(()=>{var a;return e.clearable&&!r.value&&!e.readonly&&((null===(a=e.modelValue)||void 0===a?void 0:a.length)||o.value)&&(t.value||n.value)}),M=Object(u["computed"])(()=>d.suffix||O.value||i.value&&s.value&&c.value),k=Object(u["reactive"])({innerWidth:0,collapseItemWidth:0}),C=()=>{if(!m.value)return 0;const e=window.getComputedStyle(m.value);return Oe()(e.gap||"6px")},w=()=>{k.innerWidth=Oe()(window.getComputedStyle(m.value).width)},S=()=>{k.collapseItemWidth=h.value.getBoundingClientRect().width},T=Object(u["computed"])(()=>{if(!e.collapseTags)return{};const t=C(),n=t+ha,r=h.value&&1===e.maxCollapseTags?k.innerWidth-k.collapseItemWidth-t-n:k.innerWidth-n;return{maxWidth:Math.max(r,0)+"px"}});return Object(_["useResizeObserver"])(m,w),Object(_["useResizeObserver"])(h,S),{ns:p,nsInput:f,containerKls:v,containerStyle:b,innerKls:y,showClear:O,showSuffix:M,tagStyle:T,collapseItemRef:h,innerRef:m}}const sv=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],cv=["textContent"];var lv=Object(u["defineComponent"])({name:"ElInputTag",inheritAttrs:!1,__name:"input-tag",props:ev,emits:tv,setup(e,{expose:t,emit:n}){const r=e,o=n,a=Object(ao["a"])(),i=Object(u["useSlots"])(),{form:s,formItem:c}=Object(Hr["a"])(),{inputId:l}=Object(Hr["b"])(r,{formItemContext:c}),d=Object(u["computed"])(()=>{var e;return null!==(e=null===s||void 0===s?void 0:s.statusIcon)&&void 0!==e&&e}),p=Object(u["computed"])(()=>(null===c||void 0===c?void 0:c.validateState)||""),f=Object(u["computed"])(()=>p.value&&S["d"][p.value]),{inputRef:h,wrapperRef:m,tagTooltipRef:v,isFocused:g,inputValue:_,size:b,tagSize:y,placeholder:O,closable:M,disabled:C,showTagList:w,collapseTagList:T,handleDragged:I,handlePaste:E,handleInput:j,handleKeydown:D,handleKeyup:L,handleRemoveTag:A,handleClear:N,handleCompositionStart:R,handleCompositionUpdate:x,handleCompositionEnd:P,focus:U,blur:V}=av({props:r,emit:o,formItem:c}),{hovering:B,handleMouseEnter:F,handleMouseLeave:G}=rv(),{calculatorRef:H,inputStyle:Y}=va(),{dropIndicatorRef:z,showDropIndicator:q,handleDragStart:W,handleDragOver:K,handleDragEnd:$}=nv({wrapperRef:m,handleDragged:I,afterDragged:U}),{ns:J,nsInput:X,containerKls:Q,containerStyle:Z,innerKls:ee,showClear:ne,showSuffix:re,tagStyle:oe,collapseItemRef:ae,innerRef:ie}=iv({props:r,hovering:B,isFocused:g,inputValue:_,disabled:C,size:b,validateState:p,validateIcon:f,needStatusIcon:d});return t({focus:U,blur:V}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref_key:"wrapperRef",ref:m,class:Object(u["normalizeClass"])(Object(u["unref"])(Q)),style:Object(u["normalizeStyle"])(Object(u["unref"])(Z)),onMouseenter:n[9]||(n[9]=(...e)=>Object(u["unref"])(F)&&Object(u["unref"])(F)(...e)),onMouseleave:n[10]||(n[10]=(...e)=>Object(u["unref"])(G)&&Object(u["unref"])(G)(...e))},[Object(u["unref"])(i).prefix?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(J).e("prefix"))},[Object(u["renderSlot"])(t.$slots,"prefix")],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{ref_key:"innerRef",ref:ie,class:Object(u["normalizeClass"])(Object(u["unref"])(ee))},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(Object(u["unref"])(w),(r,o)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])($o),{key:o,size:Object(u["unref"])(y),closable:Object(u["unref"])(M),type:e.tagType,effect:e.tagEffect,draggable:Object(u["unref"])(M)&&e.draggable,style:Object(u["normalizeStyle"])(Object(u["unref"])(oe)),"disable-transitions":"",onClose:e=>Object(u["unref"])(A)(o),onDragstart:e=>Object(u["unref"])(W)(e,o),onDragover:e=>Object(u["unref"])(K)(e,o),onDragend:Object(u["unref"])($),onDrop:n[0]||(n[0]=Object(u["withModifiers"])(()=>{},["stop"]))},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"tag",{value:r,index:o},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(r),1)])]),_:2},1032,["size","closable","type","effect","draggable","style","onClose","onDragstart","onDragover","onDragend"]))),128)),e.collapseTags&&e.modelValue&&e.modelValue.length>e.maxCollapseTags?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(vn),{key:0,ref_key:"tagTooltipRef",ref:v,disabled:!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom"},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{ref_key:"collapseItemRef",ref:ae,class:Object(u["normalizeClass"])(Object(u["unref"])(J).e("collapse-tag"))},[Object(u["createVNode"])(Object(u["unref"])($o),{closable:!1,size:Object(u["unref"])(y),type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:Object(u["withCtx"])(()=>[Object(u["createTextVNode"])(" + "+Object(u["toDisplayString"])(e.modelValue.length-e.maxCollapseTags),1)]),_:1},8,["size","type","effect"])],2)]),content:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(J).e("input-tag-list"))},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(Object(u["unref"])(T),(n,r)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])($o),{key:r,size:Object(u["unref"])(y),closable:Object(u["unref"])(M),type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:t=>Object(u["unref"])(A)(r+e.maxCollapseTags)},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"tag",{value:n,index:r+e.maxCollapseTags},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(n),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(J).e("input-wrapper"))},[Object(u["withDirectives"])(Object(u["createElementVNode"])("input",Object(u["mergeProps"])({id:Object(u["unref"])(l),ref_key:"inputRef",ref:h,"onUpdate:modelValue":n[1]||(n[1]=e=>Object(u["isRef"])(_)?_.value=e:null)},Object(u["unref"])(a),{type:"text",minlength:e.minlength,maxlength:e.maxlength,disabled:Object(u["unref"])(C),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,placeholder:Object(u["unref"])(O),autofocus:e.autofocus,ariaLabel:e.ariaLabel,class:Object(u["unref"])(J).e("input"),style:Object(u["unref"])(Y),onCompositionstart:n[2]||(n[2]=(...e)=>Object(u["unref"])(R)&&Object(u["unref"])(R)(...e)),onCompositionupdate:n[3]||(n[3]=(...e)=>Object(u["unref"])(x)&&Object(u["unref"])(x)(...e)),onCompositionend:n[4]||(n[4]=(...e)=>Object(u["unref"])(P)&&Object(u["unref"])(P)(...e)),onPaste:n[5]||(n[5]=(...e)=>Object(u["unref"])(E)&&Object(u["unref"])(E)(...e)),onInput:n[6]||(n[6]=(...e)=>Object(u["unref"])(j)&&Object(u["unref"])(j)(...e)),onKeydown:n[7]||(n[7]=(...e)=>Object(u["unref"])(D)&&Object(u["unref"])(D)(...e)),onKeyup:n[8]||(n[8]=(...e)=>Object(u["unref"])(L)&&Object(u["unref"])(L)(...e))}),null,16,sv),[[u["vModelText"],Object(u["unref"])(_)]]),Object(u["createElementVNode"])("span",{ref_key:"calculatorRef",ref:H,"aria-hidden":"true",class:Object(u["normalizeClass"])(Object(u["unref"])(J).e("input-calculator")),textContent:Object(u["toDisplayString"])(Object(u["unref"])(_))},null,10,cv)],2),Object(u["withDirectives"])(Object(u["createElementVNode"])("div",{ref_key:"dropIndicatorRef",ref:z,class:Object(u["normalizeClass"])(Object(u["unref"])(J).e("drop-indicator"))},null,2),[[u["vShow"],Object(u["unref"])(q)]])],2),Object(u["unref"])(re)?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(J).e("suffix"))},[Object(u["renderSlot"])(t.$slots,"suffix"),Object(u["unref"])(ne)?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(J).e("icon"),Object(u["unref"])(J).e("clear")]),onMousedown:Object(u["withModifiers"])(Object(u["unref"])(te["NOOP"]),["prevent"]),onClick:Object(u["unref"])(N)},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):Object(u["createCommentVNode"])("v-if",!0),p.value&&f.value&&d.value?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:1,class:Object(u["normalizeClass"])([Object(u["unref"])(X).e("icon"),Object(u["unref"])(X).e("validateIcon"),Object(u["unref"])(X).is("loading","validating"===p.value)])},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(f.value)))]),_:1},8,["class"])):Object(u["createCommentVNode"])("v-if",!0)],2)):Object(u["createCommentVNode"])("v-if",!0)],38))}}),uv=lv;const dv=Object(r["a"])(uv),pv=Object(c["b"])({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:S["e"]}}),fv={click:e=>e instanceof MouseEvent},hv=["href","target"];var mv=Object(u["defineComponent"])({name:"ElLink",__name:"link",props:pv,emits:fv,setup(e,{emit:t}){const n=e,r=t,o=Object(ki["c"])("link");Object(rs["a"])({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},Object(u["computed"])(()=>Object(h["a"])(n.underline)));const a=Object(g["d"])("link"),i=Object(u["computed"])(()=>{var e,t,r;return[a.b(),a.m(null!==(e=null!==(t=n.type)&&void 0!==t?t:null===(r=o.value)||void 0===r?void 0:r.type)&&void 0!==e?e:"default"),a.is("disabled",n.disabled),a.is("underline","always"===s.value),a.is("hover-underline","hover"===s.value&&!n.disabled)]}),s=Object(u["computed"])(()=>{var e,t,r;return Object(h["a"])(n.underline)?n.underline?"hover":"never":null!==(e=null!==(t=n.underline)&&void 0!==t?t:null===(r=o.value)||void 0===r?void 0:r.underline)&&void 0!==e?e:"hover"});function c(e){n.disabled||r("click",e)}return(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("a",{class:Object(u["normalizeClass"])(i.value),href:e.disabled||!e.href?void 0:e.href,target:e.disabled||!e.href?void 0:e.target,onClick:c},[e.icon?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.icon)))]),_:1})):Object(u["createCommentVNode"])("v-if",!0),t.$slots.default?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("inner"))},[Object(u["renderSlot"])(t.$slots,"default")],2)):Object(u["createCommentVNode"])("v-if",!0),t.$slots.icon?Object(u["renderSlot"])(t.$slots,"icon",{key:2}):Object(u["createCommentVNode"])("v-if",!0)],10,hv))}}),vv=mv;const gv=Object(r["a"])(vv);function _v(e,t){const n=Object(u["computed"])(()=>{let n=e.parent;const r=[t.value];while("ElMenu"!==n.type.name)n.props.index&&r.unshift(n.props.index),n=n.parent;return r});return{parentMenu:Object(u["computed"])(()=>{let t=e.parent;while(t&&!ue()(n=["ElMenu","ElSubMenu"]).call(n,t.type.name)){var n;t=t.parent}return t}),indexPath:n}}function bv(e){return Object(u["computed"])(()=>{const t=e.backgroundColor;return t?new xl["TinyColor"](t).shade(20).toString():""})}const yv=(e,t)=>{const n=Object(g["d"])("menu");return Object(u["computed"])(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":bv(e).value||"","active-color":e.activeTextColor||"",level:""+t}))},Ov="rootMenu",Mv="subMenu:",kv=Object(c["b"])({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:Object(c["c"])([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:S["e"]},expandOpenIcon:{type:S["e"]},collapseCloseIcon:{type:S["e"]},collapseOpenIcon:{type:S["e"]}}),Cv="ElSubMenu";var wv=Object(u["defineComponent"])({name:Cv,props:kv,setup(e,{slots:t,expose:n}){const r=Object(u["getCurrentInstance"])(),{indexPath:o,parentMenu:i}=_v(r,Object(u["computed"])(()=>e.index)),s=Object(g["d"])("menu"),c=Object(g["d"])("sub-menu"),l=Object(u["inject"])(Ov);l||Object(a["b"])(Cv,"can not inject root menu");const d=Object(u["inject"])(`${Mv}${i.value.uid}`);d||Object(a["b"])(Cv,"can not inject sub menu");const p=Object(u["ref"])({}),f=Object(u["ref"])({});let m;const v=Object(u["ref"])(!1),b=Object(u["ref"])(),y=Object(u["ref"])(),O=Object(u["computed"])(()=>0===d.level),M=Object(u["computed"])(()=>"horizontal"===D.value&&O.value?"bottom-start":"right-start"),C=Object(u["computed"])(()=>"horizontal"===D.value&&O.value||"vertical"===D.value&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?E.value?e.expandOpenIcon:e.expandCloseIcon:Fn["ArrowDown"]:e.collapseCloseIcon&&e.collapseOpenIcon?E.value?e.collapseOpenIcon:e.collapseCloseIcon:Fn["ArrowRight"]),S=Object(u["computed"])(()=>{const t=e.teleported;return Object(h["g"])(t)?O.value:t}),T=Object(u["computed"])(()=>l.props.collapse?s.namespace.value+"-zoom-in-left":s.namespace.value+"-zoom-in-top"),I=Object(u["computed"])(()=>"horizontal"===D.value&&O.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),E=Object(u["computed"])(()=>{var t;return ue()(t=l.openedMenus).call(t,e.index)}),j=Object(u["computed"])(()=>{var e;return w()(e=[...Tm()(p.value),...Tm()(f.value)]).call(e,({active:e})=>e)}),D=Object(u["computed"])(()=>l.props.mode),L=Object(u["computed"])(()=>l.props.persistent),A=Object(u["reactive"])({index:e.index,indexPath:o,active:j}),N=yv(l.props,d.level+1),R=Object(u["computed"])(()=>{var t;return null!==(t=e.popperOffset)&&void 0!==t?t:l.props.popperOffset}),x=Object(u["computed"])(()=>{var t;return null!==(t=e.popperClass)&&void 0!==t?t:l.props.popperClass}),P=Object(u["computed"])(()=>{var t;return null!==(t=e.popperStyle)&&void 0!==t?t:l.props.popperStyle}),U=Object(u["computed"])(()=>{var t;return null!==(t=e.showTimeout)&&void 0!==t?t:l.props.showTimeout}),V=Object(u["computed"])(()=>{var t;return null!==(t=e.hideTimeout)&&void 0!==t?t:l.props.hideTimeout}),B=()=>{var e;return null===(e=y.value)||void 0===e||null===(e=e.popperRef)||void 0===e||null===(e=e.popperInstanceRef)||void 0===e?void 0:e.destroy()},F=e=>{e||B()},G=()=>{"hover"===l.props.menuTrigger&&"horizontal"===l.props.mode||l.props.collapse&&"vertical"===l.props.mode||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:o.value,active:j.value})},H=(t,n=U.value)=>{var r,a;"focus"!==t.type&&("click"===l.props.menuTrigger&&"horizontal"===l.props.mode||!l.props.collapse&&"vertical"===l.props.mode||e.disabled?d.mouseInChild.value=!0:(d.mouseInChild.value=!0,null===(r=m)||void 0===r||r(),({stop:m}=Object(_["useTimeoutFn"])(()=>{l.openMenu(e.index,o.value)},n)),S.value&&(null===(a=i.value.vnode.el)||void 0===a||a.dispatchEvent(new MouseEvent("mouseenter"))),"mouseenter"===t.type&&t.target&&Object(u["nextTick"])(()=>{Object(wt["a"])(t.target,{preventScroll:!0})})))},Y=(t=!1)=>{var n,r;"click"===l.props.menuTrigger&&"horizontal"===l.props.mode||!l.props.collapse&&"vertical"===l.props.mode?d.mouseInChild.value=!1:(null===(n=m)||void 0===n||n(),d.mouseInChild.value=!1,({stop:m}=Object(_["useTimeoutFn"])(()=>!v.value&&l.closeMenu(e.index,o.value),V.value)),S.value&&t&&(null===(r=d.handleMouseleave)||void 0===r||r.call(d,!0)))};Object(u["watch"])(()=>l.props.collapse,e=>F(Boolean(e)));{const e=e=>{f.value[e.index]=e},t=e=>{delete f.value[e.index]};Object(u["provide"])(`${Mv}${r.uid}`,{addSubMenu:e,removeSubMenu:t,handleMouseleave:Y,mouseInChild:v,level:d.level+1})}return n({opened:E}),Object(u["onMounted"])(()=>{l.addSubMenu(A),d.addSubMenu(A)}),Object(u["onBeforeUnmount"])(()=>{d.removeSubMenu(A),l.removeSubMenu(A)}),()=>{var n;const o=[null===(n=t.title)||void 0===n?void 0:n.call(t),Object(u["h"])(k["a"],{class:c.e("icon-arrow"),style:{transform:E.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Object(te["isString"])(C.value)?Object(u["h"])(r.appContext.components[C.value]):Object(u["h"])(C.value)})],a=l.isMenuPopup?Object(u["h"])(vn,{ref:y,visible:E.value,effect:"light",pure:!0,offset:R.value,showArrow:!1,persistent:L.value,popperClass:x.value,popperStyle:P.value,placement:M.value,teleported:S.value,fallbackPlacements:I.value,transition:T.value,gpuAcceleration:!1},{content:()=>{var e;return Object(u["h"])("div",{class:[s.m(D.value),s.m("popup-container"),x.value],onMouseenter:e=>H(e,100),onMouseleave:()=>Y(!0),onFocus:e=>H(e,100)},[Object(u["h"])("ul",{class:[s.b(),s.m("popup"),s.m("popup-"+M.value)],style:N.value},[null===(e=t.default)||void 0===e?void 0:e.call(t)])])},default:()=>Object(u["h"])("div",{class:c.e("title"),onClick:G},o)}):Object(u["h"])(u["Fragment"],{},[Object(u["h"])("div",{class:c.e("title"),ref:b,onClick:G},o),Object(u["h"])(Wc,{},{default:()=>{var e;return Object(u["withDirectives"])(Object(u["h"])("ul",{role:"menu",class:[s.b(),s.m("inline")],style:N.value},[null===(e=t.default)||void 0===e?void 0:e.call(t)]),[[u["vShow"],E.value]])}})]);return Object(u["h"])("li",{class:[c.b(),c.is("active",j.value),c.is("opened",E.value),c.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:E.value,onMouseenter:H,onMouseleave:()=>Y(),onFocus:H},[a])}}}),Sv=class{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Y()(Array.prototype).call(this.subMenuItems,t=>{t.addEventListener("keydown",t=>{const n=Object(St["b"])(t);let r=!1;switch(n){case vt["a"].down:this.gotoSubIndex(this.subIndex+1),r=!0;break;case vt["a"].up:this.gotoSubIndex(this.subIndex-1),r=!0;break;case vt["a"].tab:Object(wt["h"])(e,"mouseleave");break;case vt["a"].enter:case vt["a"].numpadEnter:case vt["a"].space:r=!0,t.currentTarget.click();break}return r&&(t.preventDefault(),t.stopPropagation()),!1})})}},Tv=class{constructor(e,t){this.domNode=e,this.submenu=null,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new Sv(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{const t=Object(St["b"])(e);let n=!1;switch(t){case vt["a"].down:Object(wt["h"])(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break;case vt["a"].up:Object(wt["h"])(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break;case vt["a"].tab:Object(wt["h"])(e.currentTarget,"mouseleave");break;case vt["a"].enter:case vt["a"].numpadEnter:case vt["a"].space:n=!0,e.currentTarget.click();break}n&&e.preventDefault()})}},Iv=class{constructor(e,t){this.domNode=e,this.init(t)}init(e){var t;const n=this.domNode.childNodes;Y()(t=Pn()(n)).call(t,t=>{1===t.nodeType&&new Tv(t,e)})}},Ev=Object(u["defineComponent"])({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(e){const t=Object(g["d"])("menu"),n={onBeforeEnter:e=>e.style.opacity="0.2",onEnter(e,n){Object(i["a"])(e,t.namespace.value+"-opacity-transition"),e.style.opacity="1",n()},onAfterEnter(e){Object(i["e"])(e,t.namespace.value+"-opacity-transition"),e.style.opacity=""},onBeforeLeave(e){e.dataset||(e.dataset={}),Object(i["d"])(e,t.m("collapse"))?(Object(i["e"])(e,t.m("collapse")),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth.toString(),Object(i["a"])(e,t.m("collapse"))):(Object(i["a"])(e,t.m("collapse")),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth.toString(),Object(i["e"])(e,t.m("collapse"))),e.style.width=e.scrollWidth+"px",e.style.overflow="hidden"},onLeave(e){Object(i["a"])(e,"horizontal-collapse-transition"),e.style.width=e.dataset.scrollWidth+"px"}};return(e,t)=>(Object(u["openBlock"])(),Object(u["createBlock"])(u["Transition"],Object(u["mergeProps"])({mode:"out-in"},n),{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(e.$slots,"default")]),_:3},16))}}),jv=Ev;const Dv=Object(c["b"])({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Object(c["c"])(Array),default:()=>Object(Bc["a"])([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:S["e"],default:()=>Fn["More"]},popperEffect:{type:Object(c["c"])(String),default:"dark"},popperClass:String,popperStyle:{type:Object(c["c"])([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),Lv=e=>Object(te["isArray"])(e)&&Ht()(e).call(e,e=>Object(te["isString"])(e)),Av={close:(e,t)=>Object(te["isString"])(e)&&Lv(t),open:(e,t)=>Object(te["isString"])(e)&&Lv(t),select:(e,t,n,r)=>Object(te["isString"])(e)&&Lv(t)&&Object(te["isObject"])(n)&&(Object(h["g"])(r)||r instanceof ee.a)},Nv=64;var Rv=Object(u["defineComponent"])({name:"ElMenu",props:Dv,emits:Av,setup(e,{emit:t,slots:n,expose:r}){var o;const a=Object(u["getCurrentInstance"])(),i=a.appContext.config.globalProperties.$router,s=Object(u["ref"])(),c=Object(u["ref"])(),l=Object(g["d"])("menu"),d=Object(g["d"])("sub-menu");let p=Nv;const f=Object(u["ref"])(-1),h=Object(u["ref"])(e.defaultOpeneds&&!e.collapse?It()(o=e.defaultOpeneds).call(o,0):[]),m=Object(u["ref"])(e.defaultActive),v=Object(u["ref"])({}),b=Object(u["ref"])({}),y=Object(u["computed"])(()=>"horizontal"===e.mode||"vertical"===e.mode&&e.collapse),O=()=>{var t;const n=m.value&&v.value[m.value];n&&"horizontal"!==e.mode&&!e.collapse&&Y()(t=n.indexPath).call(t,e=>{const t=b.value[e];t&&M(e,t.indexPath)})},M=(n,r)=>{var o,a;ue()(o=h.value).call(o,n)||(e.uniqueOpened&&(h.value=K()(a=h.value).call(a,e=>ue()(r).call(r,e))),h.value.push(n),t("open",n,r))},C=e=>{var t,n;const r=B()(t=h.value).call(t,e);-1!==r&&U()(n=h.value).call(n,r,1)},w=(e,n)=>{C(e),t("close",e,n)},S=({index:e,indexPath:t})=>{var n;ue()(n=h.value).call(n,e)?w(e,t):M(e,t)},I=n=>{("horizontal"===e.mode||e.collapse)&&(h.value=[]);const{index:r,indexPath:o}=n;if(!Object(ne["isNil"])(r)&&!Object(ne["isNil"])(o))if(e.router&&i){const e=n.route||r,a=i.push(e).then(e=>(e||(m.value=r),e));t("select",r,o,{index:r,indexPath:o,route:e},a)}else m.value=r,t("select",r,o,{index:r,indexPath:o})},E=t=>{var n,r;const o=v.value;m.value=null!==(n=null===(r=o[t]||m.value&&o[m.value]||o[e.defaultActive])||void 0===r?void 0:r.index)&&void 0!==n?n:t},j=e=>{const t=getComputedStyle(e),n=ke()(t.marginLeft,10),r=ke()(t.marginRight,10);return e.offsetWidth+n+r||0},D=()=>{var e;if(!s.value)return-1;const t=K()(e=Pn()(s.value.childNodes)).call(e,e=>"#comment"!==e.nodeName&&("#text"!==e.nodeName||e.nodeValue)),n=getComputedStyle(s.value),r=ke()(n.paddingLeft,10),o=ke()(n.paddingRight,10),a=s.value.clientWidth-r-o;let i=0,c=0;return Y()(t).call(t,(e,t)=>{i+=j(e),i<=a-p&&(c=t+1)}),c===t.length?-1:c},L=e=>b.value[e].indexPath,A=(e,t=33.34)=>{let n;return()=>{n&&clearTimeout(n),n=qe()(()=>{e()},t)}};let N=!0;const R=()=>{const e=Object(_["unrefElement"])(c);if(e&&(p=j(e)||Nv),f.value===D())return;const t=()=>{f.value=-1,Object(u["nextTick"])(()=>{f.value=D()})};N?t():A(t)(),N=!1};let x;Object(u["watch"])(()=>e.defaultActive,e=>{v.value[e]||(m.value=""),E(e)}),Object(u["watch"])(()=>e.collapse,e=>{e&&(h.value=[])}),Object(u["watch"])(v.value,O),Object(u["watchEffect"])(()=>{var t;"horizontal"===e.mode&&e.ellipsis?x=Object(_["useResizeObserver"])(s,R).stop:null===(t=x)||void 0===t||t()});const P=Object(u["ref"])(!1);{const t=e=>{b.value[e.index]=e},n=e=>{delete b.value[e.index]},r=e=>{v.value[e.index]=e},o=e=>{delete v.value[e.index]};Object(u["provide"])(Ov,Object(u["reactive"])({props:e,openedMenus:h,items:v,subMenus:b,activeIndex:m,isMenuPopup:y,addMenuItem:r,removeMenuItem:o,addSubMenu:t,removeSubMenu:n,openMenu:M,closeMenu:w,handleMenuItemClick:I,handleSubMenuClick:S})),Object(u["provide"])(`${Mv}${a.uid}`,{addSubMenu:t,removeSubMenu:n,mouseInChild:P,level:0})}Object(u["onMounted"])(()=>{"horizontal"===e.mode&&new Iv(a.vnode.el,l.namespace.value)});{const e=e=>{const{indexPath:t}=b.value[e];Y()(t).call(t,e=>M(e,t))};r({open:e,close:C,updateActiveIndex:E,handleResize:R})}const V=yv(e,0);return()=>{var r,o;let a=null!==(r=null===(o=n.default)||void 0===o?void 0:o.call(n))&&void 0!==r?r:[];const i=[];if("horizontal"===e.mode&&s.value){var p;const t=K()(p=Object(T["b"])(a)).call(p,e=>8!==(null===e||void 0===e?void 0:e.shapeFlag)),n=-1===f.value?t:It()(t).call(t,0,f.value),r=-1===f.value?[]:It()(t).call(t,f.value);null!==r&&void 0!==r&&r.length&&e.ellipsis&&(a=n,i.push(Object(u["h"])(wv,{ref:c,index:"sub-menu-more",class:d.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Object(u["h"])(k["a"],{class:d.e("icon-more")},{default:()=>Object(u["h"])(e.ellipsisIcon)}),default:()=>r})))}const m=e.closeOnClickOutside?[[ka,()=>{var e;h.value.length&&(P.value||(Y()(e=h.value).call(e,e=>t("close",e,L(e))),h.value=[]))}]]:[],v=Object(u["withDirectives"])(Object(u["h"])("ul",{key:String(e.collapse),role:"menubar",ref:s,style:V.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...a,...i]),m);return e.collapseTransition&&"vertical"===e.mode?Object(u["h"])(jv,()=>v):v}}});const xv=Object(c["b"])({index:{type:Object(c["c"])([String,null]),default:null},route:{type:Object(c["c"])([String,Object])},disabled:Boolean}),Pv={click:e=>Object(te["isString"])(e.index)&&Object(te["isArray"])(e.indexPath)},Uv="ElMenuItem";var Vv=Object(u["defineComponent"])({name:Uv,__name:"menu-item",props:xv,emits:Pv,setup(e,{expose:t,emit:n}){const r=e,o=n;Object(h["e"])(r.index)&&Object(a["a"])(Uv,'Missing required prop: "index"');const i=Object(u["getCurrentInstance"])(),s=Object(u["inject"])(Ov),c=Object(g["d"])("menu"),l=Object(g["d"])("menu-item");s||Object(a["b"])(Uv,"can not inject root menu");const{parentMenu:d,indexPath:p}=_v(i,Object(u["toRef"])(r,"index")),f=Object(u["inject"])(`${Mv}${d.value.uid}`);f||Object(a["b"])(Uv,"can not inject sub menu");const m=Object(u["computed"])(()=>r.index===s.activeIndex),v=Object(u["reactive"])({index:r.index,indexPath:p,active:m}),_=()=>{r.disabled||(s.handleMenuItemClick({index:r.index,indexPath:p.value,route:r.route}),o("click",v))};return Object(u["onMounted"])(()=>{f.addSubMenu(v),s.addMenuItem(v)}),Object(u["onBeforeUnmount"])(()=>{f.removeSubMenu(v),s.removeMenuItem(v)}),t({parentMenu:d,rootMenu:s,active:m,nsMenu:c,nsMenuItem:l,handleClick:_}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{class:Object(u["normalizeClass"])([Object(u["unref"])(l).b(),Object(u["unref"])(l).is("active",m.value),Object(u["unref"])(l).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:_},["ElMenu"===Object(u["unref"])(d).type.name&&Object(u["unref"])(s).props.collapse&&t.$slots.title?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(vn),{key:0,effect:Object(u["unref"])(s).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":Object(u["unref"])(s).props.popperClass,"popper-style":Object(u["unref"])(s).props.popperStyle,persistent:Object(u["unref"])(s).props.persistent,"focus-on-target":""},{content:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"title")]),default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(c).be("tooltip","trigger"))},[Object(u["renderSlot"])(t.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:1},[Object(u["renderSlot"])(t.$slots,"default"),Object(u["renderSlot"])(t.$slots,"title")],64))],2))}}),Bv=Vv;const Fv={title:String};var Gv=Object(u["defineComponent"])({name:"ElMenuItemGroup",__name:"menu-item-group",props:Fv,setup(e){const t=Object(g["d"])("menu-item-group");return(n,r)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{class:Object(u["normalizeClass"])(Object(u["unref"])(t).b())},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(t).e("title"))},[n.$slots.title?Object(u["renderSlot"])(n.$slots,"title",{key:1}):(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:0},[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.title),1)],64))],2),Object(u["createElementVNode"])("ul",null,[Object(u["renderSlot"])(n.$slots,"default")])],2))}}),Hv=Gv;const Yv=Object(r["a"])(Rv,{MenuItem:Bv,MenuItemGroup:Hv,SubMenu:wv}),zv=Object(r["d"])(Bv),qv=Object(r["d"])(Hv),Wv=Object(r["d"])(wv),Kv=Object(c["b"])({icon:{type:S["e"],default:()=>Fn["Back"]},title:String,content:{type:String,default:""}}),$v={back:()=>!0},Jv=["aria-label"];var Xv=Object(u["defineComponent"])({name:"ElPageHeader",__name:"page-header",props:Kv,emits:$v,setup(e,{emit:t}){const n=t,{t:r}=Object(fr["b"])(),o=Object(g["d"])("page-header");function a(){n("back")}return(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(o).b(),Object(u["unref"])(o).is("contentful",!!t.$slots.default),{[Object(u["unref"])(o).m("has-breadcrumb")]:!!t.$slots.breadcrumb,[Object(u["unref"])(o).m("has-extra")]:!!t.$slots.extra}])},[t.$slots.breadcrumb?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(o).e("breadcrumb"))},[Object(u["renderSlot"])(t.$slots,"breadcrumb")],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(o).e("header"))},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(o).e("left"))},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(o).e("back")),role:"button",tabindex:"0",onClick:a},[e.icon||t.$slots.icon?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,"aria-label":e.title||Object(u["unref"])(r)("el.pageHeader.title"),class:Object(u["normalizeClass"])(Object(u["unref"])(o).e("icon"))},[Object(u["renderSlot"])(t.$slots,"icon",{},()=>[e.icon?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.icon)))]),_:1})):Object(u["createCommentVNode"])("v-if",!0)])],10,Jv)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(o).e("title"))},[Object(u["renderSlot"])(t.$slots,"title",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.title||Object(u["unref"])(r)("el.pageHeader.title")),1)])],2)],2),Object(u["createVNode"])(Object(u["unref"])(Ef),{direction:"vertical"}),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(o).e("content"))},[Object(u["renderSlot"])(t.$slots,"content",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.content),1)])],2)],2),t.$slots.extra?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(o).e("extra"))},[Object(u["renderSlot"])(t.$slots,"extra")],2)):Object(u["createCommentVNode"])("v-if",!0)],2),t.$slots.default?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(o).e("main"))},[Object(u["renderSlot"])(t.$slots,"default")],2)):Object(u["createCommentVNode"])("v-if",!0)],2))}}),Qv=Xv;const Zv=Object(r["a"])(Qv);var eg=n("4d3a"),tg=n.n(eg);const ng=xe()("elPaginationKey"),rg=Object(c["b"])({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:S["e"]}}),og={click:e=>e instanceof MouseEvent},ag=["disabled","aria-label","aria-disabled"],ig={key:0};var sg=Object(u["defineComponent"])({name:"ElPaginationPrev",__name:"prev",props:rg,emits:og,setup(e){const t=e,{t:n}=Object(fr["b"])(),r=Object(u["computed"])(()=>t.disabled||t.currentPage<=1);return(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{type:"button",class:"btn-prev",disabled:r.value,"aria-label":e.prevText||Object(u["unref"])(n)("el.pagination.prev"),"aria-disabled":r.value,onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[e.prevText?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",ig,Object(u["toDisplayString"])(e.prevText),1)):(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:1},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.prevIcon)))]),_:1}))],8,ag))}}),cg=sg;const lg=Object(c["b"])({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:S["e"]}}),ug=["disabled","aria-label","aria-disabled"],dg={key:0};var pg=Object(u["defineComponent"])({name:"ElPaginationNext",__name:"next",props:lg,emits:["click"],setup(e){const t=e,{t:n}=Object(fr["b"])(),r=Object(u["computed"])(()=>t.disabled||t.currentPage===t.pageCount||0===t.pageCount);return(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{type:"button",class:"btn-next",disabled:r.value,"aria-label":e.nextText||Object(u["unref"])(n)("el.pagination.next"),"aria-disabled":r.value,onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[e.nextText?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",dg,Object(u["toDisplayString"])(e.nextText),1)):(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:1},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.nextIcon)))]),_:1}))],8,ug))}}),fg=pg;const hg=()=>Object(u["inject"])(ng,{}),mg=Object(c["b"])({pageSize:{type:Number,required:!0},pageSizes:{type:Object(c["c"])(Array),default:()=>Object(Bc["a"])([10,20,30,40,50,100])},popperClass:{type:String},popperStyle:{type:Object(c["c"])([String,Object])},disabled:Boolean,teleported:Boolean,size:{type:String,values:re["a"]},appendSizeTo:String});var vg=Object(u["defineComponent"])({name:"ElPaginationSizes",__name:"sizes",props:mg,emits:["page-size-change"],setup(e,{emit:t}){const n=e,r=t,{t:o}=Object(fr["b"])(),a=Object(g["d"])("pagination"),i=hg(),s=Object(u["ref"])(n.pageSize);Object(u["watch"])(()=>n.pageSizes,(e,t)=>{Object(ne["isEqual"])(e,t)||Object(te["isArray"])(e)&&r("page-size-change",ue()(e).call(e,n.pageSize)?n.pageSize:n.pageSizes[0])}),Object(u["watch"])(()=>n.pageSize,e=>{s.value=e});const c=Object(u["computed"])(()=>n.pageSizes);function l(e){var t;e!==s.value&&(s.value=e,null===(t=i.handleSizeChange)||void 0===t||t.call(i,Number(e)))}return(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("sizes"))},[Object(u["createVNode"])(Object(u["unref"])(Wa),{"model-value":s.value,disabled:e.disabled,"popper-class":e.popperClass,"popper-style":e.popperStyle,size:e.size,teleported:e.teleported,"validate-event":!1,"append-to":e.appendSizeTo,onChange:l},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(c.value,e=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Ka),{key:e,value:e,label:e+Object(u["unref"])(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}}),gg=vg;const _g=Object(c["b"])({size:{type:String,values:re["a"]}}),bg=["disabled"];var yg=Object(u["defineComponent"])({name:"ElPaginationJumper",__name:"jumper",props:_g,setup(e){const{t:t}=Object(fr["b"])(),n=Object(g["d"])("pagination"),{pageCount:r,disabled:o,currentPage:a,changeEvent:i}=hg(),s=Object(u["ref"])(),c=Object(u["computed"])(()=>{var e;return null!==(e=s.value)&&void 0!==e?e:null===a||void 0===a?void 0:a.value});function l(e){s.value=e?+e:""}function d(e){e=tg()(+e),null===i||void 0===i||i(e),s.value=void 0}return(e,a)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("jump")),disabled:Object(u["unref"])(o)},[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("goto")])},Object(u["toDisplayString"])(Object(u["unref"])(t)("el.pagination.goto")),3),Object(u["createVNode"])(Object(u["unref"])(gn["a"]),{size:e.size,class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("editor"),Object(u["unref"])(n).is("in-pagination")]),min:1,max:Object(u["unref"])(r),disabled:Object(u["unref"])(o),"model-value":c.value,"validate-event":!1,"aria-label":Object(u["unref"])(t)("el.pagination.page"),type:"number","onUpdate:modelValue":l,onChange:d},null,8,["size","class","max","disabled","model-value","aria-label"]),Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("classifier")])},Object(u["toDisplayString"])(Object(u["unref"])(t)("el.pagination.pageClassifier")),3)],10,bg))}}),Og=yg;const Mg=Object(c["b"])({total:{type:Number,default:1e3}}),kg=["disabled"];var Cg=Object(u["defineComponent"])({name:"ElPaginationTotal",__name:"total",props:Mg,setup(e){const{t:t}=Object(fr["b"])(),n=Object(g["d"])("pagination"),{disabled:r}=hg();return(e,o)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("total")),disabled:Object(u["unref"])(r)},Object(u["toDisplayString"])(Object(u["unref"])(t)("el.pagination.total",{total:e.total})),11,kg))}}),wg=Cg;const Sg=Object(c["b"])({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Tg=["aria-current","aria-label","tabindex"],Ig=["tabindex","aria-label"],Eg=["aria-current","aria-label","tabindex"],jg=["tabindex","aria-label"],Dg=["aria-current","aria-label","tabindex"];var Lg=Object(u["defineComponent"])({name:"ElPaginationPager",__name:"pager",props:Sg,emits:[o["a"]],setup(e,{emit:t}){const n=e,r=t,a=Object(g["d"])("pager"),i=Object(g["d"])("icon"),{t:s}=Object(fr["b"])(),c=Object(u["ref"])(!1),l=Object(u["ref"])(!1),d=Object(u["ref"])(!1),p=Object(u["ref"])(!1),f=Object(u["ref"])(!1),h=Object(u["ref"])(!1),m=Object(u["computed"])(()=>{const e=n.pagerCount,t=(e-1)/2,r=Number(n.currentPage),o=Number(n.pageCount);let a=!1,i=!1;o>e&&(r>e-t&&(a=!0),r<o-t&&(i=!0));const s=[];if(a&&!i){const t=o-(e-2);for(let e=t;e<o;e++)s.push(e)}else if(!a&&i)for(let n=2;n<e;n++)s.push(n);else if(a&&i){const t=Math.floor(e/2)-1;for(let e=r-t;e<=r+t;e++)s.push(e)}else for(let n=2;n<o;n++)s.push(n);return s}),v=Object(u["computed"])(()=>["more","btn-quickprev",i.b(),a.is("disabled",n.disabled)]),_=Object(u["computed"])(()=>["more","btn-quicknext",i.b(),a.is("disabled",n.disabled)]),b=Object(u["computed"])(()=>n.disabled?-1:0);function y(e=!1){n.disabled||(e?d.value=!0:p.value=!0)}function O(e=!1){e?f.value=!0:h.value=!0}function M(e){var t,a;const i=e.target;if("li"===i.tagName.toLowerCase()&&ue()(t=Pn()(i.classList)).call(t,"number")){const e=Number(i.textContent);e!==n.currentPage&&r(o["a"],e)}else"li"===i.tagName.toLowerCase()&&ue()(a=Pn()(i.classList)).call(a,"more")&&k(e)}function k(e){var t;const a=e.target;if("ul"===a.tagName.toLowerCase()||n.disabled)return;let i=Number(a.textContent);const s=n.pageCount,c=n.currentPage,l=n.pagerCount-2;var u,d;ue()(t=a.className).call(t,"more")&&(ue()(u=a.className).call(u,"quickprev")?i=c-l:ue()(d=a.className).call(d,"quicknext")&&(i=c+l));Di()(+i)||(i<1&&(i=1),i>s&&(i=s)),i!==c&&r(o["a"],i)}return Object(u["watch"])(()=>[n.pageCount,n.pagerCount,n.currentPage],([e,t,n])=>{const r=(t-1)/2;let o=!1,a=!1;e>t&&(o=n>t-r,a=n<e-r),d.value&&(d.value=o),p.value&&(p.value=a),c.value=o,l.value=a},{immediate:!0}),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("ul",{class:Object(u["normalizeClass"])(Object(u["unref"])(a).b()),onClick:k,onKeyup:Object(u["withKeys"])(M,["enter"])},[e.pageCount>0?(Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{key:0,class:Object(u["normalizeClass"])([[Object(u["unref"])(a).is("active",1===e.currentPage),Object(u["unref"])(a).is("disabled",e.disabled)],"number"]),"aria-current":1===e.currentPage,"aria-label":Object(u["unref"])(s)("el.pagination.currentPage",{pager:1}),tabindex:b.value}," 1 ",10,Tg)):Object(u["createCommentVNode"])("v-if",!0),c.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{key:1,class:Object(u["normalizeClass"])(v.value),tabindex:b.value,"aria-label":Object(u["unref"])(s)("el.pagination.prevPages",{pager:e.pagerCount-2}),onMouseenter:t[0]||(t[0]=e=>y(!0)),onMouseleave:t[1]||(t[1]=e=>d.value=!1),onFocus:t[2]||(t[2]=e=>O(!0)),onBlur:t[3]||(t[3]=e=>f.value=!1)},[!d.value&&!f.value||e.disabled?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Fn["MoreFilled"]),{key:1})):(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Fn["DArrowLeft"]),{key:0}))],42,Ig)):Object(u["createCommentVNode"])("v-if",!0),(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(m.value,t=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{key:t,class:Object(u["normalizeClass"])([[Object(u["unref"])(a).is("active",e.currentPage===t),Object(u["unref"])(a).is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===t,"aria-label":Object(u["unref"])(s)("el.pagination.currentPage",{pager:t}),tabindex:b.value},Object(u["toDisplayString"])(t),11,Eg))),128)),l.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{key:2,class:Object(u["normalizeClass"])(_.value),tabindex:b.value,"aria-label":Object(u["unref"])(s)("el.pagination.nextPages",{pager:e.pagerCount-2}),onMouseenter:t[4]||(t[4]=e=>y()),onMouseleave:t[5]||(t[5]=e=>p.value=!1),onFocus:t[6]||(t[6]=e=>O()),onBlur:t[7]||(t[7]=e=>h.value=!1)},[!p.value&&!h.value||e.disabled?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Fn["MoreFilled"]),{key:1})):(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Fn["DArrowRight"]),{key:0}))],42,jg)):Object(u["createCommentVNode"])("v-if",!0),e.pageCount>1?(Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{key:3,class:Object(u["normalizeClass"])([[Object(u["unref"])(a).is("active",e.currentPage===e.pageCount),Object(u["unref"])(a).is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===e.pageCount,"aria-label":Object(u["unref"])(s)("el.pagination.currentPage",{pager:e.pageCount}),tabindex:b.value},Object(u["toDisplayString"])(e.pageCount),11,Dg)):Object(u["createCommentVNode"])("v-if",!0)],34))}}),Ag=Lg;const Ng=e=>"number"!==typeof e,Rg=Object(c["b"])({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Object(h["d"])(e)&&tg()(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Object(c["c"])(Array),default:()=>Object(Bc["a"])([10,20,30,40,50,100])},popperClass:{type:String,default:""},popperStyle:{type:Object(c["c"])([String,Object])},prevText:{type:String,default:""},prevIcon:{type:S["e"],default:()=>Fn["ArrowLeft"]},nextText:{type:String,default:""},nextIcon:{type:S["e"],default:()=>Fn["ArrowRight"]},teleported:{type:Boolean,default:!0},small:Boolean,size:Nr["c"],background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),xg={"update:current-page":e=>Object(h["d"])(e),"update:page-size":e=>Object(h["d"])(e),"size-change":e=>Object(h["d"])(e),change:(e,t)=>Object(h["d"])(e)&&Object(h["d"])(t),"current-change":e=>Object(h["d"])(e),"prev-click":e=>Object(h["d"])(e),"next-click":e=>Object(h["d"])(e)},Pg="ElPagination";var Ug=Object(u["defineComponent"])({name:Pg,props:Rg,emits:xg,setup(e,{emit:t,slots:n}){const{t:r}=Object(fr["b"])(),i=Object(g["d"])("pagination"),s=Object(u["getCurrentInstance"])().vnode.props||{},c=Object(Nr["b"])(),l=Object(u["computed"])(()=>{var t;return e.small?"small":null!==(t=e.size)&&void 0!==t?t:c.value});Object(rs["a"])({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},Object(u["computed"])(()=>!!e.small));const d="onUpdate:currentPage"in s||"onUpdate:current-page"in s||"onCurrentChange"in s,p="onUpdate:pageSize"in s||"onUpdate:page-size"in s||"onSizeChange"in s,f=Object(u["computed"])(()=>{var t;if(Ng(e.total)&&Ng(e.pageCount))return!1;if(!Ng(e.currentPage)&&!d)return!1;if(ue()(t=e.layout).call(t,"sizes"))if(Ng(e.pageCount)){if(!Ng(e.total)&&!Ng(e.pageSize)&&!p)return!1}else if(!p)return!1;return!0}),h=Object(u["ref"])(Ng(e.defaultPageSize)?10:e.defaultPageSize),m=Object(u["ref"])(Ng(e.defaultCurrentPage)?1:e.defaultCurrentPage),v=Object(u["computed"])({get(){return Ng(e.pageSize)?h.value:e.pageSize},set(n){Ng(e.pageSize)&&(h.value=n),p&&(t("update:page-size",n),t("size-change",n))}}),_=Object(u["computed"])(()=>{let t=0;return Ng(e.pageCount)?Ng(e.total)||(t=Math.max(1,Math.ceil(e.total/v.value))):t=e.pageCount,t}),b=Object(u["computed"])({get(){return Ng(e.currentPage)?m.value:e.currentPage},set(n){let r=n;n<1?r=1:n>_.value&&(r=_.value),Ng(e.currentPage)&&(m.value=r),d&&(t("update:current-page",r),t("current-change",r))}});function y(e){b.value=e}function O(e){v.value=e;const t=_.value;b.value>t&&(b.value=t)}function M(){e.disabled||(b.value-=1,t("prev-click",b.value))}function k(){e.disabled||(b.value+=1,t("next-click",b.value))}function C(e,t){e&&(e.props||(e.props={}),e.props.class=[e.props.class,t].join(" "))}return Object(u["watch"])(_,e=>{b.value>e&&(b.value=e)}),Object(u["watch"])([b,v],e=>{t(o["a"],...e)},{flush:"post"}),Object(u["provide"])(ng,{pageCount:_,disabled:Object(u["computed"])(()=>e.disabled),currentPage:b,changeEvent:y,handleSizeChange:O}),()=>{var t,o,s;if(!f.value)return Object(a["a"])(Pg,r("el.pagination.deprecationWarning")),null;if(!e.layout)return null;if(e.hideOnSinglePage&&_.value<=1)return null;const c=[],d=[],p=Object(u["h"])("div",{class:i.e("rightwrapper")},d),h={prev:Object(u["h"])(cg,{disabled:e.disabled,currentPage:b.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:M}),jumper:Object(u["h"])(Og,{size:l.value}),pager:Object(u["h"])(Ag,{currentPage:b.value,pageCount:_.value,pagerCount:e.pagerCount,onChange:y,disabled:e.disabled}),next:Object(u["h"])(fg,{disabled:e.disabled,currentPage:b.value,pageCount:_.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:k}),sizes:Object(u["h"])(gg,{pageSize:v.value,pageSizes:e.pageSizes,popperClass:e.popperClass,popperStyle:e.popperStyle,disabled:e.disabled,teleported:e.teleported,size:l.value,appendSizeTo:e.appendSizeTo}),slot:null!==(t=null===n||void 0===n||null===(o=n.default)||void 0===o?void 0:o.call(n))&&void 0!==t?t:null,total:Object(u["h"])(wg,{total:Ng(e.total)?0:e.total})},m=J()(s=e.layout.split(",")).call(s,e=>zr()(e).call(e));let g=!1;return Y()(m).call(m,e=>{"->"!==e?g?d.push(h[e]):c.push(h[e]):g=!0}),C(c[0],i.is("first")),C(c[c.length-1],i.is("last")),g&&d.length>0&&(C(d[0],i.is("first")),C(d[d.length-1],i.is("last")),c.push(p)),Object(u["h"])("div",{class:[i.b(),i.is("background",e.background),i.m(l.value)]},c)}}});const Vg=Object(r["a"])(Ug);var Bg=n("446f");const Fg=Object(c["b"])({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:Bg["c"],default:"primary"},cancelButtonType:{type:String,values:Bg["c"],default:"text"},icon:{type:S["e"],default:()=>Fn["QuestionFilled"]},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...mt.effect,default:"light"},teleported:mt.teleported,persistent:mt.persistent,width:{type:[String,Number],default:150},virtualTriggering:_t.virtualTriggering,virtualRef:_t.virtualRef}),Gg={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent};var Hg=Object(u["defineComponent"])({name:"ElPopconfirm",__name:"popconfirm",props:Fg,emits:Gg,setup(e,{expose:t,emit:n}){const r=e,o=n,{t:a}=Object(fr["b"])(),s=Object(g["d"])("popconfirm"),c=Object(u["ref"])(),l=Object(u["ref"])(),d=Object(u["computed"])(()=>{var e;return null===(e=Object(u["unref"])(c))||void 0===e?void 0:e.popperRef}),p=()=>{var e,t;null===(e=l.value)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e)},f=()=>{var e,t;null===(e=c.value)||void 0===e||null===(t=e.onClose)||void 0===t||t.call(e)},h=Object(u["computed"])(()=>({width:Object(i["b"])(r.width)})),m=e=>{o("confirm",e),f()},v=e=>{o("cancel",e),f()},_=Object(u["computed"])(()=>r.confirmButtonText||a("el.popconfirm.confirmButtonText")),b=Object(u["computed"])(()=>r.cancelButtonText||a("el.popconfirm.cancelButtonText"));return t({popperRef:d,hide:f}),(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(vn),Object(u["mergeProps"])({ref_key:"tooltipRef",ref:c,trigger:"click",effect:e.effect},t.$attrs,{"virtual-triggering":e.virtualTriggering,"virtual-ref":e.virtualRef,"popper-class":Object(u["unref"])(s).namespace.value+"-popover","popper-style":h.value,teleported:e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent,loop:"",onShow:p}),{content:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{ref_key:"rootRef",ref:l,tabindex:"-1",class:Object(u["normalizeClass"])(Object(u["unref"])(s).b())},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(s).e("main"))},[!e.hideIcon&&e.icon?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(s).e("icon")),style:Object(u["normalizeStyle"])({color:e.iconColor})},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.icon)))]),_:1},8,["class","style"])):Object(u["createCommentVNode"])("v-if",!0),Object(u["createTextVNode"])(" "+Object(u["toDisplayString"])(e.title),1)],2),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(s).e("action"))},[Object(u["renderSlot"])(t.$slots,"actions",{confirm:m,cancel:v},()=>[Object(u["createVNode"])(Object(u["unref"])(Sr["a"]),{size:"small",type:"text"===e.cancelButtonType?"":e.cancelButtonType,text:"text"===e.cancelButtonType,onClick:v},{default:Object(u["withCtx"])(()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(b.value),1)]),_:1},8,["type","text"]),Object(u["createVNode"])(Object(u["unref"])(Sr["a"]),{size:"small",type:"text"===e.confirmButtonType?"":e.confirmButtonType,text:"text"===e.confirmButtonType,onClick:m},{default:Object(u["withCtx"])(()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(_.value),1)]),_:1},8,["type","text"])])],2)],2)]),default:Object(u["withCtx"])(()=>[t.$slots.reference?Object(u["renderSlot"])(t.$slots,"reference",{key:0}):Object(u["createCommentVNode"])("v-if",!0)]),_:3},16,["effect","virtual-triggering","virtual-ref","popper-class","popper-style","teleported","hide-after","persistent"]))}}),Yg=Hg;const zg=Object(r["a"])(Yg),qg=Object(c["b"])({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Object(c["c"])(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Object(c["c"])([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Object(c["c"])(Function),default:e=>e+"%"}}),Wg=["aria-valuenow"],Kg={viewBox:"0 0 100 100"},$g=["d","stroke","stroke-linecap","stroke-width"],Jg=["d","stroke","opacity","stroke-linecap","stroke-width"],Xg={key:0};var Qg=Object(u["defineComponent"])({name:"ElProgress",__name:"progress",props:qg,setup(e){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=e,r=Object(g["d"])("progress"),o=Object(u["computed"])(()=>{const e={width:n.percentage+"%",animationDuration:n.duration+"s"},t=y(n.percentage);return ue()(t).call(t,"gradient")?e.background=t:e.backgroundColor=t,e}),a=Object(u["computed"])(()=>(n.strokeWidth/n.width*100).toFixed(1)),i=Object(u["computed"])(()=>{var e;return ue()(e=["circle","dashboard"]).call(e,n.type)?ke()(""+(50-Oe()(a.value)/2),10):0}),s=Object(u["computed"])(()=>{const e=i.value,t="dashboard"===n.type;return`\n M 50 50\n m 0 ${t?"":"-"}${e}\n a ${e} ${e} 0 1 1 0 ${t?"-":""}${2*e}\n a ${e} ${e} 0 1 1 0 ${t?"":"-"}${2*e}\n `}),c=Object(u["computed"])(()=>2*Math.PI*i.value),l=Object(u["computed"])(()=>"dashboard"===n.type?.75:1),d=Object(u["computed"])(()=>-1*c.value*(1-l.value)/2+"px"),p=Object(u["computed"])(()=>({strokeDasharray:`${c.value*l.value}px, ${c.value}px`,strokeDashoffset:d.value})),f=Object(u["computed"])(()=>({strokeDasharray:`${c.value*l.value*(n.percentage/100)}px, ${c.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=Object(u["computed"])(()=>{let e;return e=n.color?y(n.percentage):t[n.status]||t.default,e}),m=Object(u["computed"])(()=>"warning"===n.status?Fn["WarningFilled"]:"line"===n.type?"success"===n.status?Fn["CircleCheck"]:Fn["CircleClose"]:"success"===n.status?Fn["Check"]:Fn["Close"]),v=Object(u["computed"])(()=>"line"===n.type?12+.4*n.strokeWidth:.111111*n.width+2),_=Object(u["computed"])(()=>n.format(n.percentage));function b(e){var t;const n=100/e.length;return Ff()(t=J()(e).call(e,(e,t)=>Object(te["isString"])(e)?{color:e,percentage:(t+1)*n}:e)).call(t,(e,t)=>e.percentage-t.percentage)}const y=e=>{const{color:t}=n;if(Object(te["isFunction"])(t))return t(e);if(Object(te["isString"])(t))return t;{var r;const n=b(t);for(const t of n)if(t.percentage>e)return t.color;return null===(r=n[n.length-1])||void 0===r?void 0:r.color}};return(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(r).b(),Object(u["unref"])(r).m(e.type),Object(u["unref"])(r).is(e.status),{[Object(u["unref"])(r).m("without-text")]:!e.showText,[Object(u["unref"])(r).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},["line"===e.type?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(r).b("bar"))},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).be("bar","outer")),style:Object(u["normalizeStyle"])({height:e.strokeWidth+"px"})},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(r).be("bar","inner"),{[Object(u["unref"])(r).bem("bar","inner","indeterminate")]:e.indeterminate},{[Object(u["unref"])(r).bem("bar","inner","striped")]:e.striped},{[Object(u["unref"])(r).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:Object(u["normalizeStyle"])(o.value)},[(e.showText||t.$slots.default)&&e.textInside?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(r).be("bar","innerText"))},[Object(u["renderSlot"])(t.$slots,"default",{percentage:e.percentage},()=>[Object(u["createElementVNode"])("span",null,Object(u["toDisplayString"])(_.value),1)])],2)):Object(u["createCommentVNode"])("v-if",!0)],6)],6)],2)):(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(r).b("circle")),style:Object(u["normalizeStyle"])({height:e.width+"px",width:e.width+"px"})},[(Object(u["openBlock"])(),Object(u["createElementBlock"])("svg",Kg,[Object(u["createElementVNode"])("path",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).be("circle","track")),d:s.value,stroke:`var(${Object(u["unref"])(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":a.value,fill:"none",style:Object(u["normalizeStyle"])(p.value)},null,14,$g),Object(u["createElementVNode"])("path",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).be("circle","path")),d:s.value,stroke:h.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":a.value,style:Object(u["normalizeStyle"])(f.value)},null,14,Jg)]))],6)),!e.showText&&!t.$slots.default||e.textInside?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:2,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("text")),style:Object(u["normalizeStyle"])({fontSize:v.value+"px"})},[Object(u["renderSlot"])(t.$slots,"default",{percentage:e.percentage},()=>[e.status?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:1},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(m.value)))]),_:1})):(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",Xg,Object(u["toDisplayString"])(_.value),1))])],6))],10,Wg))}}),Zg=Qg;const e_=Object(r["a"])(Zg),t_=Object(c["b"])({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:Object(c["c"])([Array,Object]),default:()=>Object(Bc["a"])(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:Object(c["c"])([Array,Object]),default:()=>[Fn["StarFilled"],Fn["StarFilled"],Fn["StarFilled"]]},voidIcon:{type:S["e"],default:()=>Fn["Star"]},disabledVoidIcon:{type:S["e"],default:()=>Fn["StarFilled"]},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:Object(c["c"])(Array),default:()=>Object(Bc["a"])(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Nr["c"],clearable:Boolean,...Object(st["a"])(["ariaLabel"])}),n_={[o["a"]]:e=>Object(h["d"])(e),[o["c"]]:e=>Object(h["d"])(e)},r_=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax","tabindex","aria-disabled"],o_=["onMousemove","onClick"];var a_=Object(u["defineComponent"])({name:"ElRate",__name:"rate",props:t_,emits:n_,setup(e,{expose:t,emit:n}){function r(e,t){var n,r,o;const a=e=>Object(te["isObject"])(e),i=t[Ff()(n=K()(r=J()(o=Q()(t)).call(o,e=>+e)).call(r,n=>{const r=t[n];return a(r)&&r.excluded?e<n:e<=n})).call(n,(e,t)=>e-t)[0]];return a(i)&&i.value||i}const a=e,i=n,s=Object(u["inject"])(se["b"],void 0),c=Object(ce["b"])(),l=Object(g["d"])("rate"),{inputId:d,isLabeledByFormItem:p}=Object(Hr["b"])(a,{formItemContext:s}),f=Object(u["ref"])(Object(ne["clamp"])(a.modelValue,0,a.max)),h=Object(u["ref"])(-1),m=Object(u["ref"])(!0),v=Object(u["ref"])([]),_=Object(u["computed"])(()=>{var e;return J()(e=v.value).call(e,e=>e.$el.clientWidth)}),b=Object(u["computed"])(()=>[l.b(),l.m(c.value)]),y=Object(ce["a"])(),O=Object(u["computed"])(()=>l.cssVarBlock({"void-color":a.voidColor,"disabled-void-color":a.disabledVoidColor,"fill-color":S.value})),M=Object(u["computed"])(()=>{let e="";return a.showScore?e=a.scoreTemplate.replace(/\{\s*value\s*\}/,y.value?""+a.modelValue:""+f.value):a.showText&&(e=a.texts[Math.ceil(f.value)-1]),e}),C=Object(u["computed"])(()=>100*a.modelValue-100*Math.floor(a.modelValue)),w=Object(u["computed"])(()=>Object(te["isArray"])(a.colors)?{[a.lowThreshold]:a.colors[0],[a.highThreshold]:{value:a.colors[1],excluded:!0},[a.max]:a.colors[2]}:a.colors),S=Object(u["computed"])(()=>{const e=r(f.value,w.value);return Object(te["isObject"])(e)?"":e}),T=Object(u["computed"])(()=>{let e="";return y.value?e=C.value+"%":a.allowHalf&&(e="50%"),{color:S.value,width:e}}),I=Object(u["computed"])(()=>{let e=Object(te["isArray"])(a.icons)?[...a.icons]:{...a.icons};return e=Object(u["markRaw"])(e),Object(te["isArray"])(e)?{[a.lowThreshold]:e[0],[a.highThreshold]:{value:e[1],excluded:!0},[a.max]:e[2]}:e}),E=Object(u["computed"])(()=>r(a.modelValue,I.value)),j=Object(u["computed"])(()=>y.value?Object(te["isString"])(a.disabledVoidIcon)?a.disabledVoidIcon:Object(u["markRaw"])(a.disabledVoidIcon):Object(te["isString"])(a.voidIcon)?a.voidIcon:Object(u["markRaw"])(a.voidIcon)),D=Object(u["computed"])(()=>r(f.value,I.value));function L(e){const t=y.value&&C.value>0&&e-1<a.modelValue&&e>a.modelValue,n=a.allowHalf&&m.value&&e-.5<=f.value&&e>f.value;return t||n}function A(e){a.clearable&&e===a.modelValue&&(e=0),i(o["c"],e),a.modelValue!==e&&i(o["a"],e)}function N(e){y.value||(a.allowHalf&&m.value?A(f.value):A(e))}function R(e){if(y.value)return;const t=Object(St["b"])(e),n=a.allowHalf?.5:1;let r=f.value;switch(t){case vt["a"].up:case vt["a"].right:r+=n;break;case vt["a"].left:case vt["a"].down:r-=n;break}return r=Object(ne["clamp"])(r,0,a.max),r!==f.value?(e.stopPropagation(),e.preventDefault(),i(o["c"],r),i(o["a"],r),r):void 0}function x(e,t){y.value||(a.allowHalf&&t?(m.value=2*t.offsetX<=_.value[e-1],f.value=m.value?e-.5:e):f.value=e,h.value=e)}function P(){y.value||(a.allowHalf&&(m.value=a.modelValue!==Math.floor(a.modelValue)),f.value=Object(ne["clamp"])(a.modelValue,0,a.max),h.value=-1)}return Object(u["watch"])(()=>a.modelValue,e=>{f.value=Object(ne["clamp"])(e,0,a.max),m.value=a.modelValue!==Math.floor(a.modelValue)}),a.modelValue||i(o["c"],0),t({setCurrentValue:x,resetCurrentValue:P}),(t,n)=>{var r;return Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{id:Object(u["unref"])(d),class:Object(u["normalizeClass"])([b.value,Object(u["unref"])(l).is("disabled",Object(u["unref"])(y))]),role:"slider","aria-label":Object(u["unref"])(p)?void 0:e.ariaLabel||"rating","aria-labelledby":Object(u["unref"])(p)?null===(r=Object(u["unref"])(s))||void 0===r?void 0:r.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":M.value||void 0,"aria-valuemin":"0","aria-valuemax":e.max,style:Object(u["normalizeStyle"])(O.value),tabindex:Object(u["unref"])(y)?void 0:0,"aria-disabled":Object(u["unref"])(y),onKeydown:R},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.max,(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:t,class:Object(u["normalizeClass"])(Object(u["unref"])(l).e("item")),onMousemove:t=>x(e,t),onMouseleave:P,onClick:t=>N(e)},[Object(u["createVNode"])(Object(u["unref"])(k["a"]),{ref_for:!0,ref_key:"iconRefs",ref:v,class:Object(u["normalizeClass"])([Object(u["unref"])(l).e("icon"),{hover:h.value===e},Object(u["unref"])(l).is("active",e<=f.value),Object(u["unref"])(l).is("focus-visible",e===Math.ceil(f.value||1))])},{default:Object(u["withCtx"])(()=>[Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(D.value),null,null,512)),[[u["vShow"],!L(e)&&e<=f.value]]),Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(j.value),null,null,512)),[[u["vShow"],!L(e)&&e>f.value]]),Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(j.value),{class:Object(u["normalizeClass"])([Object(u["unref"])(l).em("decimal","box")])},null,8,["class"])),[[u["vShow"],L(e)]]),Object(u["withDirectives"])(Object(u["createVNode"])(Object(u["unref"])(k["a"]),{style:Object(u["normalizeStyle"])(T.value),class:Object(u["normalizeClass"])([Object(u["unref"])(l).e("icon"),Object(u["unref"])(l).e("decimal")])},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(E.value)))]),_:1},8,["style","class"]),[[u["vShow"],L(e)]])]),_:2},1032,["class"])],42,o_))),128)),e.showText||e.showScore?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(l).e("text")),style:Object(u["normalizeStyle"])({color:e.textColor})},Object(u["toDisplayString"])(M.value),7)):Object(u["createCommentVNode"])("v-if",!0)],46,r_)}}}),i_=a_;const s_=Object(r["a"])(i_),c_={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},l_={[c_.primary]:Fn["InfoFilled"],[c_.success]:Fn["CircleCheckFilled"],[c_.warning]:Fn["WarningFilled"],[c_.error]:Fn["CircleCloseFilled"],[c_.info]:Fn["InfoFilled"]},u_=Object(c["b"])({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}});var d_=Object(u["defineComponent"])({name:"ElResult",__name:"result",props:u_,setup(e){const t=e,n=Object(g["d"])("result"),r=Object(u["computed"])(()=>{const e=t.icon,n=e&&c_[e]?c_[e]:"icon-info";return{class:n,component:l_[n]||l_["icon-info"]}});return(t,o)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(n).b())},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("icon"))},[Object(u["renderSlot"])(t.$slots,"icon",{},()=>[r.value.component?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(r.value.component),{key:0,class:Object(u["normalizeClass"])(r.value.class)},null,8,["class"])):Object(u["createCommentVNode"])("v-if",!0)])],2),e.title||t.$slots.title?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("title"))},[Object(u["renderSlot"])(t.$slots,"title",{},()=>[Object(u["createElementVNode"])("p",null,Object(u["toDisplayString"])(e.title),1)])],2)):Object(u["createCommentVNode"])("v-if",!0),e.subTitle||t.$slots["sub-title"]?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("subtitle"))},[Object(u["renderSlot"])(t.$slots,"sub-title",{},()=>[Object(u["createElementVNode"])("p",null,Object(u["toDisplayString"])(e.subTitle),1)])],2)):Object(u["createCommentVNode"])("v-if",!0),t.$slots.extra?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:2,class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("extra"))},[Object(u["renderSlot"])(t.$slots,"extra")],2)):Object(u["createCommentVNode"])("v-if",!0)],2))}}),p_=d_;const f_=Object(r["a"])(p_),h_=Object(c["b"])({allowCreate:Boolean,autocomplete:{type:Object(c["c"])(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:S["e"],default:Fn["CircleClose"]},effect:{type:Object(c["c"])(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:Object(c["c"])(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:Object(c["c"])(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:Object(c["c"])([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:Object(c["c"])(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:Object(c["c"])(Array),required:!0},placeholder:{type:String},teleported:mt.teleported,persistent:{type:Boolean,default:!0},popperClass:mt.popperClass,popperStyle:mt.popperStyle,popperOptions:{type:Object(c["c"])(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:Nr["c"],props:{type:Object(c["c"])(Object),default:()=>Ca},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:Object(c["c"])(String),values:ct["placements"],default:"bottom-start"},fallbackPlacements:{type:Object(c["c"])(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Ho.type,default:"info"},tagEffect:{...Ho.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:mt.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Object(h["a"])(e)||Object(h["d"])(e)}},suffixIcon:{type:S["e"],default:Fn["ArrowDown"]},...Rr["c"],...Object(st["a"])(["ariaLabel"])}),m_=Object(c["b"])({data:Array,disabled:Boolean,hovering:Boolean,item:{type:Object(c["c"])(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),v_={[o["c"]]:e=>!0,[o["a"]]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},g_={hover:e=>Object(h["d"])(e),select:(e,t)=>!0},__=xe()("ElSelectV2Injection"),b_=50,y_="itemRendered",O_="scroll",M_="forward",k_="backward",C_="auto",w_="smart",S_="start",T_="center",I_="end",E_="horizontal",j_="vertical",D_="ltr",L_="rtl",A_="negative",N_="positive-ascending",R_="positive-descending",x_={[E_]:"left",[j_]:"top"},P_=20,U_=(e,t)=>e<t?M_:k_,V_=e=>e===D_||e===L_||e===E_,B_=e=>e===L_;let F_=null;function G_(e=!1){if(null===F_||e){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const n=document.createElement("div"),r=n.style;return r.width="100px",r.height="100px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?F_=R_:(e.scrollLeft=1,F_=0===e.scrollLeft?A_:N_),document.body.removeChild(e),F_}return F_}function H_({move:e,size:t,bar:n},r){const o={},a=`translate${n.axis}(${e}px)`;return o[n.size]=t,o.transform=a,"horizontal"===r?o.height="100%":o.width="100%",o}var Y_=n("a0bf"),z_=n.n(Y_);const q_=()=>{const e=Object(u["getCurrentInstance"])().proxy.$props;return Object(u["computed"])(()=>{const t=(e,t,n)=>({});return e.perfMode?Object(ne["memoize"])(t):z_()(t)})},W_=({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let o,a=0;const i=n=>n<0&&t.value||n>0&&e.value,s=e=>{Object(bo["a"])(o);let{deltaX:t,deltaY:s}=e;e.shiftKey&&0!==s&&(t=s,s=0);const c=n.value===E_?t:s;i(c)||(a+=c,Object(ov["b"])()||0===c||e.preventDefault(),o=Object(bo["b"])(()=>{r(a),a=0}))};return{hasReachedEdge:i,onWheel:s}},K_=Object(c["a"])({type:Object(c["c"])([Number,Function]),required:!0}),$_=Object(c["a"])({type:Number}),J_=Object(c["a"])({type:Number,default:2}),X_=Object(c["a"])({type:String,values:["ltr","rtl"],default:"ltr"}),Q_=Object(c["a"])({type:Number,default:0}),Z_=Object(c["a"])({type:Number,required:!0}),eb=Object(c["a"])({type:String,values:["horizontal","vertical"],default:j_}),tb=Object(c["b"])({className:{type:String,default:""},containerElement:{type:Object(c["c"])([String,Object]),default:"div"},data:{type:Object(c["c"])(Array),default:()=>Object(Bc["a"])([])},direction:X_,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:Object(c["c"])(Object),default:()=>({})},style:{type:Object(c["c"])([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),nb=Object(c["b"])({cache:J_,estimatedItemSize:$_,layout:eb,initScrollOffset:Q_,total:Z_,itemSize:K_,...tb}),rb={type:Number,default:6},ob={type:Number,default:0},ab={type:Number,default:2},ib=Object(c["b"])({columnCache:J_,columnWidth:K_,estimatedColumnWidth:$_,estimatedRowHeight:$_,initScrollLeft:Q_,initScrollTop:Q_,itemKey:{type:Object(c["c"])(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:J_,rowHeight:K_,totalColumn:Z_,totalRow:Z_,hScrollbarSize:rb,vScrollbarSize:rb,scrollbarStartGap:ob,scrollbarEndGap:ab,role:String,...tb}),sb=Object(c["b"])({alwaysOn:Boolean,class:String,layout:eb,total:Z_,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:rb,startGap:ob,endGap:ab,visible:Boolean}),cb=Object(u["defineComponent"])({name:"ElVirtualScrollBar",props:sb,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=Object(u["computed"])(()=>e.startGap+e.endGap),r=Object(g["d"])("virtual-scrollbar"),o=Object(g["d"])("scrollbar"),a=Object(u["ref"])(),i=Object(u["ref"])();let s=null,c=null;const l=Object(u["reactive"])({isDragging:!1,traveled:0}),d=Object(u["computed"])(()=>kn[e.layout]),p=Object(u["computed"])(()=>e.clientSize-Object(u["unref"])(n)),f=Object(u["computed"])(()=>({position:"absolute",width:(E_===e.layout?p.value:e.scrollbarSize)+"px",height:(E_===e.layout?e.scrollbarSize:p.value)+"px",[x_[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=Object(u["computed"])(()=>{const t=e.ratio;if(t>=100)return Number.POSITIVE_INFINITY;if(t>=50)return t*p.value/100;const n=p.value/3;return Math.floor(Math.min(Math.max(t*p.value/100,P_),n))}),m=Object(u["computed"])(()=>{if(!qm()(h.value))return{display:"none"};const t=h.value+"px";return H_({bar:d.value,size:t,move:l.traveled},e.layout)}),v=Object(u["computed"])(()=>Math.ceil(e.clientSize-h.value-Object(u["unref"])(n))),_=()=>{window.addEventListener("mousemove",M),window.addEventListener("mouseup",O);const e=Object(u["unref"])(i);e&&(c=document.onselectstart,document.onselectstart=()=>!1,e.addEventListener("touchmove",M,{passive:!0}),e.addEventListener("touchend",O))},b=()=>{window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",O),document.onselectstart=c,c=null;const e=Object(u["unref"])(i);e&&(e.removeEventListener("touchmove",M),e.removeEventListener("touchend",O))},y=e=>{var n;e.stopImmediatePropagation(),e.ctrlKey||ue()(n=[1,2]).call(n,e.button)||(l.isDragging=!0,l[d.value.axis]=e.currentTarget[d.value.offset]-(e[d.value.client]-e.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),_())},O=()=>{l.isDragging=!1,l[d.value.axis]=0,t("stop-move"),b()},M=e=>{const{isDragging:n}=l;if(!n)return;if(!i.value||!a.value)return;const r=l[d.value.axis];if(!r)return;Object(bo["a"])(s);const o=-1*(a.value.getBoundingClientRect()[d.value.direction]-e[d.value.client])-(i.value[d.value.offset]-r);s=Object(bo["b"])(()=>{l.traveled=Math.max(0,Math.min(o,v.value)),t("scroll",o,v.value)})},k=e=>{const n=Math.abs(e.target.getBoundingClientRect()[d.value.direction]-e[d.value.client])-i.value[d.value.offset]/2;l.traveled=Math.max(0,Math.min(n,v.value)),t("scroll",n,v.value)};return Object(u["watch"])(()=>e.scrollFrom,e=>{l.isDragging||(l.traveled=Math.ceil(e*v.value))}),Object(u["onBeforeUnmount"])(()=>{b()}),()=>Object(u["h"])("div",{role:"presentation",ref:a,class:[r.b(),e.class,(e.alwaysOn||l.isDragging)&&"always-on"],style:f.value,onMousedown:Object(u["withModifiers"])(k,["stop","prevent"]),onTouchstartPrevent:y},Object(u["h"])("div",{ref:i,class:o.e("thumb"),style:m.value,onMousedown:y},[]))}}),lb=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:o,getStartIndexForOffset:a,getStopIndexForStartIndex:i,initCache:s,clearCache:c,validateProps:l})=>Object(u["defineComponent"])({name:null!==e&&void 0!==e?e:"ElVirtualList",props:nb,emits:[y_,O_],setup(e,{emit:d,expose:p}){l(e);const f=Object(u["getCurrentInstance"])(),m=Object(g["d"])("vl"),v=Object(u["ref"])(s(e,f)),b=q_(),y=Object(u["ref"])(),O=Object(u["ref"])(),M=Object(u["ref"])(),k=Object(u["ref"])({isScrolling:!1,scrollDir:"forward",scrollOffset:Object(h["d"])(e.initScrollOffset)?e.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:e.scrollbarAlwaysOn}),C=Object(u["computed"])(()=>{const{total:t,cache:n}=e,{isScrolling:r,scrollDir:o,scrollOffset:s}=Object(u["unref"])(k);if(0===t)return[0,0,0,0];const c=a(e,s,Object(u["unref"])(v)),l=i(e,c,s,Object(u["unref"])(v)),d=r&&o!==k_?1:Math.max(1,n),p=r&&o!==M_?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,l+p)),c,l]}),w=Object(u["computed"])(()=>o(e,Object(u["unref"])(v))),S=Object(u["computed"])(()=>V_(e.layout)),T=Object(u["computed"])(()=>[{position:"relative",["overflow-"+(S.value?"x":"y")]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:e.direction,height:Object(h["d"])(e.height)?e.height+"px":e.height,width:Object(h["d"])(e.width)?e.width+"px":e.width},e.style]),I=Object(u["computed"])(()=>{const e=Object(u["unref"])(w),t=Object(u["unref"])(S);return{height:t?"100%":e+"px",pointerEvents:Object(u["unref"])(k).isScrolling?"none":void 0,width:t?e+"px":"100%",margin:0,boxSizing:"border-box"}}),E=Object(u["computed"])(()=>S.value?e.width:e.height),{onWheel:j}=W_({atStartEdge:Object(u["computed"])(()=>k.value.scrollOffset<=0),atEndEdge:Object(u["computed"])(()=>k.value.scrollOffset>=w.value),layout:Object(u["computed"])(()=>e.layout)},e=>{var t,n;null===(t=(n=M.value).onMouseUp)||void 0===t||t.call(n),x(Math.min(k.value.scrollOffset+e,w.value-E.value))});Object(_["useEventListener"])(y,"wheel",j,{passive:!1});const D=()=>{const{total:t}=e;if(t>0){const[e,t,n,r]=Object(u["unref"])(C);d(y_,e,t,n,r)}const{scrollDir:n,scrollOffset:r,updateRequested:o}=Object(u["unref"])(k);d(O_,n,r,o)},L=e=>{const{clientHeight:t,scrollHeight:n,scrollTop:r}=e.currentTarget,o=Object(u["unref"])(k);if(o.scrollOffset===r)return;const a=Math.max(0,Math.min(r,n-t));k.value={...o,isScrolling:!0,scrollDir:U_(o.scrollOffset,a),scrollOffset:a,updateRequested:!1},Object(u["nextTick"])(V)},A=t=>{const{clientWidth:n,scrollLeft:r,scrollWidth:o}=t.currentTarget,a=Object(u["unref"])(k);if(a.scrollOffset===r)return;const{direction:i}=e;let s=r;if(i===L_)switch(G_()){case A_:s=-r;break;case R_:s=o-n-r;break}s=Math.max(0,Math.min(s,o-n)),k.value={...a,isScrolling:!0,scrollDir:U_(a.scrollOffset,s),scrollOffset:s,updateRequested:!1},Object(u["nextTick"])(V)},N=e=>{Object(u["unref"])(S)?A(e):L(e),D()},R=(e,t)=>{const n=(w.value-E.value)/t*e;x(Math.min(w.value-E.value,n))},x=e=>{e=Math.max(e,0),e!==Object(u["unref"])(k).scrollOffset&&(k.value={...Object(u["unref"])(k),scrollOffset:e,scrollDir:U_(Object(u["unref"])(k).scrollOffset,e),updateRequested:!0},Object(u["nextTick"])(V))},P=(n,r=C_)=>{const{scrollOffset:o}=Object(u["unref"])(k);n=Math.max(0,Math.min(n,e.total-1)),x(t(e,n,r,o,Object(u["unref"])(v)))},U=t=>{const{direction:o,itemSize:a,layout:i}=e,s=b.value(c&&a,c&&i,c&&o);let l;if(Object(te["hasOwn"])(s,String(t)))l=s[t];else{const a=r(e,t,Object(u["unref"])(v)),i=n(e,t,Object(u["unref"])(v)),c=Object(u["unref"])(S),d=o===L_,p=c?a:0;s[t]=l={position:"absolute",left:d?void 0:p+"px",right:d?p+"px":void 0,top:c?0:a+"px",height:c?"100%":i+"px",width:c?i+"px":"100%"}}return l},V=()=>{k.value.isScrolling=!1,Object(u["nextTick"])(()=>{b.value(-1,null,null)})},B=()=>{const e=y.value;e&&(e.scrollTop=0)};Object(u["onMounted"])(()=>{if(!_["isClient"])return;const{initScrollOffset:t}=e,n=Object(u["unref"])(y);Object(h["d"])(t)&&n&&(Object(u["unref"])(S)?n.scrollLeft=t:n.scrollTop=t),D()}),Object(u["onUpdated"])(()=>{const{direction:t,layout:n}=e,{scrollOffset:r,updateRequested:o}=Object(u["unref"])(k),a=Object(u["unref"])(y);if(o&&a)if(n===E_)if(t===L_)switch(G_()){case A_:a.scrollLeft=-r;break;case N_:a.scrollLeft=r;break;default:{const{clientWidth:e,scrollWidth:t}=a;a.scrollLeft=t-e-r;break}}else a.scrollLeft=r;else a.scrollTop=r}),Object(u["onActivated"])(()=>{Object(u["unref"])(y).scrollTop=Object(u["unref"])(k).scrollOffset});const F={ns:m,clientSize:E,estimatedTotalSize:w,windowStyle:T,windowRef:y,innerRef:O,innerStyle:I,itemsToRender:C,scrollbarRef:M,states:k,getItemStyle:U,onScroll:N,onScrollbarScroll:R,onWheel:j,scrollTo:x,scrollToItem:P,resetScrollTop:B};return p({windowRef:y,innerRef:O,getItemStyleCache:b,scrollTo:x,scrollToItem:P,resetScrollTop:B,states:k}),F},render(e){const{$slots:t,className:n,clientSize:r,containerElement:o,data:a,getItemStyle:i,innerElement:s,itemsToRender:c,innerStyle:l,layout:d,total:p,onScroll:f,onScrollbarScroll:h,states:m,useIsScrolling:v,windowStyle:g,ns:_}=e,[b,y]=c,O=Object(u["resolveDynamicComponent"])(o),M=Object(u["resolveDynamicComponent"])(s),k=[];if(p>0)for(let I=b;I<=y;I++){var C;k.push(Object(u["h"])(u["Fragment"],{key:I},null===(C=t.default)||void 0===C?void 0:C.call(t,{data:a,index:I,isScrolling:v?m.isScrolling:void 0,style:i(I)})))}const w=[Object(u["h"])(M,Object(u["mergeProps"])(e.innerProps,{style:l,ref:"innerRef"}),Object(te["isString"])(M)?k:{default:()=>k})],S=Object(u["h"])(cb,{ref:"scrollbarRef",clientSize:r,layout:d,onScroll:h,ratio:100*r/this.estimatedTotalSize,scrollFrom:m.scrollOffset/(this.estimatedTotalSize-r),total:p,alwaysOn:m.scrollbarAlwaysOn}),T=Object(u["h"])(O,{class:[_.e("window"),n],style:g,onScroll:f,ref:"windowRef",key:0},Object(te["isString"])(O)?[w]:{default:()=>[w]});return Object(u["h"])("div",{key:0,class:[_.e("wrapper"),m.scrollbarAlwaysOn?"always-on":""]},[T,S])}}),ub=lb({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:r,width:o},i,s,c)=>{const l=V_(r)?o:e;Object(te["isString"])(l)&&Object(a["b"])("[ElVirtualList]","\n You should set\n width/height\n to number when your layout is\n horizontal/vertical\n ");const u=Math.max(0,t*n-l),d=Math.min(u,i*n),p=Math.max(0,(i+1)*n-l);switch(s===w_&&(s=c>=p-l&&c<=d+l?C_:T_),s){case S_:return d;case I_:return p;case T_:{const e=Math.round(p+(d-p)/2);return e<Math.ceil(l/2)?0:e>u+Math.floor(l/2)?u:e}case C_:default:return c>=p&&c<=d?c:c<p?p:d}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:r,width:o},a,i)=>{const s=a*n,c=V_(r)?o:e,l=Math.ceil((c+i-s)/n);return Math.max(0,Math.min(t-1,a+l-1))},initCache(){},clearCache:!0,validateProps(){}}),db="ElDynamicSizeList",pb=(e,t,n)=>{const{itemSize:r}=e,{items:o,lastVisitedIndex:a}=n;if(t>a){let e=0;if(a>=0){const t=o[a];e=t.offset+t.size}for(let n=a+1;n<=t;n++){const t=r(n);o[n]={offset:e,size:t},e+=t}n.lastVisitedIndex=t}return o[t]},fb=(e,t,n)=>{const{items:r,lastVisitedIndex:o}=t;return(o>0?r[o].offset:0)>=n?hb(e,t,0,o,n):mb(e,t,Math.max(0,o),n)},hb=(e,t,n,r,o)=>{while(n<=r){const a=n+Math.floor((r-n)/2),i=pb(e,a,t).offset;if(i===o)return a;i<o?n=a+1:i>o&&(r=a-1)}return Math.max(0,n-1)},mb=(e,t,n,r)=>{const{total:o}=e;let a=1;while(n<o&&pb(e,n,t).offset<r)n+=a,a*=2;return hb(e,t,Math.floor(n/2),Math.min(n,o-1),r)},vb=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:r})=>{let o=0;if(r>=e&&(r=e-1),r>=0){const e=t[r];o=e.offset+e.size}const a=(e-r-1)*n;return o+a},gb=lb({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>pb(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:vb,getOffset:(e,t,n,r,o)=>{const{height:a,layout:i,width:s}=e,c=V_(i)?s:a,l=pb(e,t,o),u=vb(e,o),d=Math.max(0,Math.min(u-c,l.offset)),p=Math.max(0,l.offset-c+l.size);switch(n===w_&&(n=r>=p-c&&r<=d+c?C_:T_),n){case S_:return d;case I_:return p;case T_:return Math.round(p+(d-p)/2);case C_:default:return r>=p&&r<=d?r:r<p?p:d}},getStartIndexForOffset:(e,t,n)=>fb(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:o,total:a,layout:i,width:s}=e,c=V_(i)?s:o,l=pb(e,t,r),u=n+c;let d=l.offset+l.size,p=t;while(p<a-1&&d<u)p++,d+=pb(e,p,r).size;return p},initCache({estimatedItemSize:e=b_},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1,clearCacheAfterIndex:(e,r=!0)=>{var o,a;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,e-1),null===(o=t.exposed)||void 0===o||o.getItemStyleCache(-1),r&&(null===(a=t.proxy)||void 0===a||a.$forceUpdate())}};return n},clearCache:!1,validateProps:({itemSize:e})=>{"function"!==typeof e&&Object(a["b"])(db,`\n itemSize is required as function, but the given value was ${typeof e}\n `)}});var _b=Object(u["defineComponent"])({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:Object(g["d"])("select")}}});function bb(e,t,n,r,o,a){return Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(e.ns.be("group","title")),style:Object(u["normalizeStyle"])({...e.style,lineHeight:e.height+"px"})},Object(u["toDisplayString"])(e.item.label),7)}var yb=Object(Jo["a"])(_b,[["render",bb]]);function Ob(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}var Mb=Object(u["defineComponent"])({props:m_,emits:g_,setup(e,{emit:t}){const n=Object(u["inject"])(__),r=Object(g["d"])("select"),{hoverItem:o,selectOptionClick:a}=Ob(e,{emit:t}),{getLabel:i}=wa(n.props);return{ns:r,contentId:n.contentId,hoverItem:o,selectOptionClick:a,getLabel:i}}});const kb=["id","aria-selected","aria-disabled"];function Cb(e,t,n,r,o,a){return Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:Object(u["normalizeStyle"])(e.style),class:Object(u["normalizeClass"])([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:t[0]||(t[0]=(...t)=>e.hoverItem&&e.hoverItem(...t)),onClick:t[1]||(t[1]=Object(u["withModifiers"])((...t)=>e.selectOptionClick&&e.selectOptionClick(...t),["stop"]))},[Object(u["renderSlot"])(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[Object(u["createElementVNode"])("span",null,Object(u["toDisplayString"])(e.getLabel(e.item)),1)])],46,kb)}var wb=Object(Jo["a"])(Mb,[["render",Cb]]);const Sb={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var Tb=Object(u["defineComponent"])({name:"ElSelectDropdown",props:Sb,setup(e,{slots:t,expose:n}){const r=Object(u["inject"])(__),o=Object(g["d"])("select"),{getLabel:a,getValue:i,getDisabled:s}=wa(r.props),c=Object(u["ref"])([]),l=Object(u["ref"])(),d=Object(u["computed"])(()=>e.data.length);Object(u["watch"])(()=>d.value,()=>{var e,t;null===(e=r.tooltipRef.value)||void 0===e||null===(t=e.updatePopper)||void 0===t||t.call(e)});const p=Object(u["computed"])(()=>Object(h["g"])(r.props.estimatedOptionHeight)),f=Object(u["computed"])(()=>p.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:e=>c.value[e]}),m=(e=[],t)=>{const{props:{valueKey:n}}=r;return Object(te["isObject"])(t)?e&&w()(e).call(e,e=>Object(u["toRaw"])(Object(ne["get"])(e,n))===Object(ne["get"])(t,n)):ue()(e).call(e,t)},v=(e,t)=>{if(Object(te["isObject"])(t)){const{valueKey:n}=r.props;return Object(ne["get"])(e,n)===Object(ne["get"])(t,n)}return e===t},b=(e,t)=>r.props.multiple?m(e,i(t)):v(e,i(t)),y=(e,t)=>{const{disabled:n,multiple:o,multipleLimit:a}=r.props;return n||!t&&!!o&&a>0&&e.length>=a},O=t=>e.hoveringIndex===t,M=e=>{const t=l.value;t&&t.scrollToItem(e)},k=()=>{const e=l.value;e&&e.resetScrollTop()};n({listRef:l,isSized:p,isItemDisabled:y,isItemHovering:O,isItemSelected:b,scrollToItem:M,resetScrollTop:k});const C=e=>{const{index:n,data:o,style:i}=e,c=Object(u["unref"])(p),{itemSize:l,estimatedSize:d}=Object(u["unref"])(f),{modelValue:h}=r.props,{onSelect:m,onHover:v}=r,g=o[n];if("Group"===g.type)return Object(u["createVNode"])(yb,{item:g,style:i,height:c?l:d},null);const _=b(h,g),M=y(h,_),k=O(n);return Object(u["createVNode"])(wb,Object(u["mergeProps"])(e,{selected:_,disabled:s(g)||M,created:!!g.created,hovering:k,item:g,onSelect:m,onHover:v}),{default:e=>{var n;return(null===(n=t.default)||void 0===n?void 0:n.call(t,e))||Object(u["createVNode"])("span",null,[a(g)])}})},{onKeyboardNavigate:S,onKeyboardSelect:T}=r,I=()=>{S("forward")},E=()=>{S("backward")},j=()=>{},D=e=>{var t;const n=Object(St["b"])(e),{tab:r,esc:o,down:a,up:i,enter:s,numpadEnter:c}=vt["a"];switch(ue()(t=[o,a,i,s,c]).call(t,n)&&(e.preventDefault(),e.stopPropagation()),n){case r:case o:j();break;case a:I();break;case i:E();break;case s:case c:T();break}};return()=>{var n,a,i,s;const{data:c,width:d}=e,{height:h,multiple:m,scrollbarAlwaysOn:v}=r.props,g=Object(u["computed"])(()=>!!_["isIOS"]||v),b=Object(u["unref"])(p)?ub:gb;return Object(u["createVNode"])("div",{class:[o.b("dropdown"),o.is("multiple",m)],style:{width:d+"px"}},[null===(n=t.header)||void 0===n?void 0:n.call(t),(null===(a=t.loading)||void 0===a?void 0:a.call(t))||(null===(i=t.empty)||void 0===i?void 0:i.call(t))||Object(u["createVNode"])(b,Object(u["mergeProps"])({ref:l},Object(u["unref"])(f),{className:o.be("dropdown","list"),scrollbarAlwaysOn:g.value,data:c,height:h,width:d,total:c.length,innerElement:"ul",innerProps:{id:e.id,role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},onKeydown:D}),{default:e=>Object(u["createVNode"])(C,e,null)}),null===(s=t.footer)||void 0===s?void 0:s.call(t)])}}});function Ib(e,t){const{aliasProps:n,getLabel:r,getValue:o}=wa(e),a=Object(u["ref"])(0),i=Object(u["ref"])(),s=Object(u["computed"])(()=>e.allowCreate&&e.filterable);function c(n){var o,a;const i=e=>r(e)===n;return e.options&&w()(o=e.options).call(o,i)||w()(a=t.createdOptions).call(a,i)}function l(t){s.value&&(e.multiple&&t.created?a.value++:i.value=t)}function d(o){if(s.value)if(o&&o.length>0){var l;if(c(o))return void(t.createdOptions=K()(l=t.createdOptions).call(l,e=>r(e)!==t.previousQuery));const e={[n.value.value]:o,[n.value.label]:o,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=a.value?t.createdOptions[a.value]=e:t.createdOptions.push(e)}else if(e.multiple)t.createdOptions.length=a.value;else{const e=i.value;t.createdOptions.length=0,e&&e.created&&t.createdOptions.push(e)}}function p(n){var i;if(!s.value||!n||!n.created||n.created&&e.reserveKeyword&&t.inputValue===r(n))return;const c=ya()(i=t.createdOptions).call(i,e=>o(e)===o(n));var l;~c&&(U()(l=t.createdOptions).call(l,c,1),a.value--)}function f(){s.value&&(t.createdOptions.length=0,a.value=0)}return Object(u["watch"])(()=>e.options,e=>{var n;const o=new q.a(J()(e).call(e,e=>r(e)));t.createdOptions=K()(n=t.createdOptions).call(n,e=>!o.has(r(e)))}),{createNewOption:d,removeNewOption:p,selectNewOption:l,clearAllNewOption:f}}const Eb=(e,t)=>{const{t:n}=Object(fr["b"])(),r=Object(u["useSlots"])(),i=Object(g["d"])("select"),s=Object(g["d"])("input"),{form:c,formItem:l}=Object(Hr["a"])(),{inputId:d}=Object(Hr["b"])(e,{formItemContext:l}),{aliasProps:p,getLabel:f,getValue:m,getDisabled:v,getOptions:b}=wa(e),{valueOnClear:y,isEmptyValue:O}=Object(Rr["b"])(e),M=Object(u["reactive"])({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),k=Object(u["ref"])(-1),C=Object(u["ref"])(!1),T=Object(u["ref"])(),I=Object(u["ref"])(),E=Object(u["ref"])(),j=Object(u["ref"])(),D=Object(u["ref"])(),L=Object(u["ref"])(),A=Object(u["ref"])(),N=Object(u["ref"])(),R=Object(u["ref"])(),P=Object(u["ref"])(),{isComposing:V,handleCompositionStart:F,handleCompositionEnd:G,handleCompositionUpdate:H}=Object(Aa["a"])({afterComposition:e=>ht(e)}),z=Object(ce["a"])(),{wrapperRef:q,isFocused:W,handleBlur:$}=Object(Gr["a"])(D,{disabled:z,afterFocus(){e.automaticDropdown&&!ee.value&&(ee.value=!0,M.menuVisibleOnFocus=!0)},beforeBlur(e){var t,n;return(null===(t=E.value)||void 0===t?void 0:t.isFocusInsideContent(e))||(null===(n=j.value)||void 0===n?void 0:n.isFocusInsideContent(e))},afterBlur(){var t;ee.value=!1,M.menuVisibleOnFocus=!1,e.validateEvent&&(null===l||void 0===l||null===(t=l.validate)||void 0===t||t.call(l,"blur").catch(e=>Object(a["a"])(e)))}}),X=Object(u["computed"])(()=>_e("")),Q=Object(u["computed"])(()=>!e.loading&&(e.options.length>0||M.createdOptions.length>0)),Z=Object(u["ref"])([]),ee=Object(u["ref"])(!1),re=Object(u["computed"])(()=>{var e;return null!==(e=null===c||void 0===c?void 0:c.statusIcon)&&void 0!==e&&e}),oe=Object(u["computed"])(()=>{const t=Z.value.length*e.itemHeight;return t>e.height?e.height:t}),ae=Object(u["computed"])(()=>e.multiple?Object(te["isArray"])(e.modelValue)&&e.modelValue.length>0:!O(e.modelValue)),ie=Object(u["computed"])(()=>e.clearable&&!z.value&&ae.value&&(W.value||M.inputHovering)),se=Object(u["computed"])(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),le=Object(u["computed"])(()=>se.value&&i.is("reverse",ee.value)),de=Object(u["computed"])(()=>(null===l||void 0===l?void 0:l.validateState)||""),pe=Object(u["computed"])(()=>{if(de.value)return S["d"][de.value]}),fe=Object(u["computed"])(()=>e.remote?e.debounce:0),he=Object(u["computed"])(()=>e.remote&&!M.inputValue&&!Q.value),me=Object(u["computed"])(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&M.inputValue&&Q.value&&0===Z.value.length?e.noMatchText||n("el.select.noMatch"):Q.value?null:e.noDataText||n("el.select.noData")),ve=Object(u["computed"])(()=>e.filterable&&Object(te["isFunction"])(e.filterMethod)),ge=Object(u["computed"])(()=>e.filterable&&e.remote&&Object(te["isFunction"])(e.remoteMethod)),_e=t=>{var n;const r=new RegExp(Object(Zo["b"])(t),"i"),o=e=>!(!ve.value&&!ge.value)||(!t||r.test(f(e)||""));return e.loading?[]:fa()(n=[...M.createdOptions,...e.options]).call(n,(t,n)=>{const r=b(n);if(Object(te["isArray"])(r)){const e=K()(r).call(r,o);e.length>0&&t.push({label:f(n),type:"Group"},...e)}else(e.remote||o(n))&&t.push(n);return t},[])},be=()=>{Z.value=_e(M.inputValue)},ye=Object(u["computed"])(()=>{var e;const t=new x.a;return Y()(e=X.value).call(e,(e,n)=>{t.set(Je(m(e)),{option:e,index:n})}),t}),Me=Object(u["computed"])(()=>{var e;const t=new x.a;return Y()(e=Z.value).call(e,(e,n)=>{t.set(Je(m(e)),{option:e,index:n})}),t}),ke=Object(u["computed"])(()=>{var e;return Ht()(e=Z.value).call(e,e=>v(e))}),Ce=Object(ce["b"])(),we=Object(u["computed"])(()=>"small"===Ce.value?"small":"default"),Se=()=>{var t;if(Object(h["d"])(e.fitInputWidth))return void(k.value=e.fitInputWidth);const n=(null===(t=T.value)||void 0===t?void 0:t.offsetWidth)||200;!e.fitInputWidth&&Q.value?Object(u["nextTick"])(()=>{k.value=Math.max(n,Te())}):k.value=n},Te=()=>{var e,t;const n=document.createElement("canvas").getContext("2d"),r=i.be("dropdown","item"),o=((null===(e=N.value)||void 0===e||null===(e=e.listRef)||void 0===e?void 0:e.innerRef)||document).querySelector("."+r);if(null===o||null===n)return 0;const a=getComputedStyle(o),s=Oe()(a.paddingLeft)+Oe()(a.paddingRight);return n.font="bold "+a.font.replace(new RegExp(`\\b${a.fontWeight}\\b`),""),fa()(t=Z.value).call(t,(e,t)=>{const r=n.measureText(f(t));return Math.max(r.width,e)},0)+s},Ie=()=>{if(!I.value)return 0;const e=window.getComputedStyle(I.value);return Oe()(e.gap||"6px")},Ee=Object(u["computed"])(()=>{const t=Ie(),n=e.filterable?t+ha:0;return{maxWidth:(P.value&&1===e.maxCollapseTags?M.selectionWidth-M.collapseItemWidth-t-n:M.selectionWidth-n)+"px"}}),je=Object(u["computed"])(()=>({maxWidth:M.selectionWidth+"px"})),De=Object(u["computed"])(()=>Object(te["isArray"])(e.modelValue)?0===e.modelValue.length&&!M.inputValue:!e.filterable||!M.inputValue),Le=Object(u["computed"])(()=>{var t;const r=null!==(t=e.placeholder)&&void 0!==t?t:n("el.select.placeholder");return e.multiple||!ae.value?r:M.selectedLabel}),Ae=Object(u["computed"])(()=>{var e;return null===(e=E.value)||void 0===e||null===(e=e.popperRef)||void 0===e?void 0:e.contentRef}),Ne=Object(u["computed"])(()=>{if(e.multiple){const t=e.modelValue.length;if(t>0&&Me.value.has(e.modelValue[t-1])){const{index:n}=Me.value.get(e.modelValue[t-1]);return n}}else if(!O(e.modelValue)&&Me.value.has(e.modelValue)){const{index:t}=Me.value.get(e.modelValue);return t}return-1}),Re=Object(u["computed"])({get(){return ee.value&&(e.loading||!he.value||e.remote&&!!r.empty)&&(!C.value||!Object(h["c"])(M.previousQuery)||Q.value)},set(e){ee.value=e}}),xe=Object(u["computed"])(()=>{var t;return e.multiple?e.collapseTags?It()(t=M.cachedOptions).call(t,0,e.maxCollapseTags):M.cachedOptions:[]}),Pe=Object(u["computed"])(()=>{var t;return e.multiple&&e.collapseTags?It()(t=M.cachedOptions).call(t,e.maxCollapseTags):[]}),{createNewOption:Ue,removeNewOption:Ve,selectNewOption:Be,clearAllNewOption:Fe}=Ib(e,M),Ge=t=>{var n;z.value||e.filterable&&ee.value&&t&&(null===(n=A.value)||void 0===n||!n.contains(t.target))||(M.menuVisibleOnFocus?M.menuVisibleOnFocus=!1:ee.value=!ee.value)},He=()=>{M.inputValue.length>0&&!ee.value&&(ee.value=!0),Ue(M.inputValue),Object(u["nextTick"])(()=>{ze(M.inputValue)})},Ye=Object(_["useDebounceFn"])(()=>{He(),C.value=!1},fe),ze=t=>{M.previousQuery===t||V.value||(M.previousQuery=t,e.filterable&&Object(te["isFunction"])(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&Object(te["isFunction"])(e.remoteMethod)&&e.remoteMethod(t),e.defaultFirstOption&&(e.filterable||e.remote)&&Z.value.length?Object(u["nextTick"])(qe):Object(u["nextTick"])(ft))},qe=()=>{var e;const t=K()(e=Z.value).call(e,e=>!e.disabled&&"Group"!==e.type),n=La()(t).call(t,e=>e.created),r=t[0];M.hoveringIndex=$e(Z.value,n||r)},We=n=>{Object(ne["isEqual"])(e.modelValue,n)||t(o["a"],n)},Ke=n=>{t(o["c"],n),We(n),M.previousValue=e.multiple?String(n):n,Object(u["nextTick"])(()=>{if(e.multiple&&Object(te["isArray"])(e.modelValue)){var t,n;const r=It()(t=M.cachedOptions).call(t),o=J()(n=e.modelValue).call(n,e=>bt(e,r));Object(ne["isEqual"])(M.cachedOptions,o)||(M.cachedOptions=o)}else Ot(!0)})},$e=(t=[],n)=>{if(!Object(te["isObject"])(n))return B()(t).call(t,n);const r=e.valueKey;let o=-1;return w()(t).call(t,(e,t)=>Object(ne["get"])(e,r)===Object(ne["get"])(n,r)&&(o=t,!0)),o},Je=t=>Object(te["isObject"])(t)?Object(ne["get"])(t,e.valueKey):t,Xe=()=>{Se()},Qe=()=>{M.selectionWidth=Oe()(window.getComputedStyle(I.value).width)},Ze=()=>{M.collapseItemWidth=P.value.getBoundingClientRect().width},et=()=>{var e,t;null===(e=E.value)||void 0===e||null===(t=e.updatePopper)||void 0===t||t.call(e)},tt=()=>{var e,t;null===(e=j.value)||void 0===e||null===(t=e.updatePopper)||void 0===t||t.call(e)},nt=t=>{const n=m(t);if(e.multiple){var r;let a=It()(r=e.modelValue).call(r);const i=$e(a,n);var o;if(i>-1)a=[...It()(a).call(a,0,i),...It()(a).call(a,i+1)],U()(o=M.cachedOptions).call(o,i,1),Ve(t);else(e.multipleLimit<=0||a.length<e.multipleLimit)&&(a=[...a,n],M.cachedOptions.push(t),Be(t));Ke(a),t.created&&ze(""),!e.filterable||!t.created&&e.reserveKeyword||(M.inputValue="")}else M.selectedLabel=f(t),!Object(ne["isEqual"])(e.modelValue,n)&&Ke(n),ee.value=!1,Be(t),t.created||Fe();ot()},rt=(n,r)=>{var o;let a=It()(o=e.modelValue).call(o);const i=$e(a,m(r));var s,c,l;i>-1&&!z.value&&(a=[...It()(s=e.modelValue).call(s,0,i),...It()(c=e.modelValue).call(c,i+1)],U()(l=M.cachedOptions).call(l,i,1),Ke(a),t("remove-tag",m(r)),Ve(r));n.stopPropagation(),ot()},ot=()=>{var e;null===(e=D.value)||void 0===e||e.focus()},at=()=>{var e;if(ee.value)return ee.value=!1,void Object(u["nextTick"])(()=>{var e;return null===(e=D.value)||void 0===e?void 0:e.blur()});null===(e=D.value)||void 0===e||e.blur()},it=()=>{M.inputValue.length>0?M.inputValue="":ee.value=!1},st=e=>Object(ne["findLastIndex"])(e,e=>{var t;return!w()(t=M.cachedOptions).call(t,t=>m(t)===e&&v(t))}),ct=n=>{const r=Object(St["b"])(n);if(e.multiple&&r!==vt["a"].delete&&0===M.inputValue.length){var o,a;n.preventDefault();const r=It()(o=e.modelValue).call(o),i=st(r);if(i<0)return;const s=r[i];U()(r).call(r,i,1);const c=M.cachedOptions[i];U()(a=M.cachedOptions).call(a,i,1),Ve(c),Ke(r),t("remove-tag",s)}},lt=()=>{let n;n=Object(te["isArray"])(e.modelValue)?[]:y.value,M.selectedLabel="",ee.value=!1,Ke(n),t("clear"),Fe(),ot()},ut=(e,t)=>{var n;const r=Z.value;if(!ue()(n=["forward","backward"]).call(n,e)||z.value||r.length<=0||ke.value||V.value)return;if(!ee.value)return Ge();Object(h["g"])(t)&&(t=M.hoveringIndex);let o=-1;"forward"===e?(o=t+1,o>=r.length&&(o=0)):"backward"===e&&(o=t-1,(o<0||o>=r.length)&&(o=r.length-1));const a=r[o];if(v(a)||"Group"===a.type)return ut(e,o);M.hoveringIndex=o,_t(o)},dt=()=>{if(!ee.value)return Ge();~M.hoveringIndex&&Z.value[M.hoveringIndex]&&nt(Z.value[M.hoveringIndex])},pt=e=>{M.hoveringIndex=null!==e&&void 0!==e?e:-1},ft=()=>{var t;if(e.multiple){const t=e.modelValue.length;if(t>0){var n;const r=e.modelValue[t-1];M.hoveringIndex=ya()(n=Z.value).call(n,e=>Je(r)===Je(m(e)))}else M.hoveringIndex=-1}else M.hoveringIndex=ya()(t=Z.value).call(t,t=>Je(m(t))===Je(e.modelValue))},ht=t=>{if(M.inputValue=t.target.value,!e.remote)return He();C.value=!0,Ye()},mt=e=>{ee.value=!1,W.value&&$(new FocusEvent("blur",e))},gt=()=>(M.isBeforeHide=!1,Object(u["nextTick"])(()=>{~Ne.value&&_t(Ne.value)})),_t=e=>{N.value.scrollToItem(e)},bt=(e,t)=>{const n=Je(e);if(ye.value.has(n)){const{option:e}=ye.value.get(n);return e}if(t&&t.length){const e=La()(t).call(t,e=>Je(m(e))===n);if(e)return e}return{[p.value.value]:e,[p.value.label]:e}},yt=e=>{var t,n;return null!==(t=null===(n=ye.value.get(m(e)))||void 0===n?void 0:n.index)&&void 0!==t?t:-1},Ot=(t=!1)=>{if(e.multiple)if(e.modelValue.length>0){var n;const t=It()(n=M.cachedOptions).call(n);M.cachedOptions.length=0,M.previousValue=e.modelValue.toString();for(const n of e.modelValue){const e=bt(n,t);M.cachedOptions.push(e)}}else M.cachedOptions=[],M.previousValue=void 0;else if(ae.value){M.previousValue=e.modelValue;const n=Z.value,r=ya()(n).call(n,t=>Je(m(t))===Je(e.modelValue));~r?M.selectedLabel=f(n[r]):M.selectedLabel&&!t||(M.selectedLabel=Je(e.modelValue))}else M.selectedLabel="",M.previousValue=void 0;Fe(),Se()};let Mt;return Object(u["watch"])(()=>e.fitInputWidth,()=>{Se()}),Object(u["watch"])(ee,t=>{t?(e.persistent||Se(),ze("")):(M.inputValue="",M.previousQuery=null,M.isBeforeHide=!0,M.menuVisibleOnFocus=!1,Ue(""))}),Object(u["watch"])(()=>e.modelValue,(t,n)=>{var r;(!t||Object(te["isArray"])(t)&&0===t.length||e.multiple&&!Object(ne["isEqual"])(t.toString(),M.previousValue)||!e.multiple&&Je(t)!==Je(M.previousValue))&&Ot(!0),!Object(ne["isEqual"])(t,n)&&e.validateEvent&&(null===l||void 0===l||null===(r=l.validate)||void 0===r||r.call(l,"change").catch(e=>Object(a["a"])(e)))},{deep:!0}),Object(u["watch"])(()=>e.options,()=>{const e=D.value;(!e||e&&document.activeElement!==e)&&Ot()},{deep:!0,flush:"post"}),Object(u["watch"])(()=>Z.value,()=>(Se(),N.value&&Object(u["nextTick"])(N.value.resetScrollTop))),Object(u["watchEffect"])(()=>{M.isBeforeHide||be()}),Object(u["watchEffect"])(()=>{const{valueKey:t,options:n}=e,r=new x.a;for(const e of n){const n=m(e);let o=n;if(Object(te["isObject"])(o)&&(o=Object(ne["get"])(n,t)),r.get(o)){Object(a["a"])("ElSelectV2","The option values you provided seem to be duplicated, which may cause some problems, please check.");break}r.set(o,!0)}}),Object(u["onMounted"])(()=>{Ot()}),Object(_["useResizeObserver"])(T,Xe),Object(_["useResizeObserver"])(I,Qe),Object(_["useResizeObserver"])(q,et),Object(_["useResizeObserver"])(R,tt),Object(_["useResizeObserver"])(P,Ze),Object(u["watch"])(()=>Re.value,e=>{var n;e?Mt=Object(_["useResizeObserver"])(N,et).stop:(null===(n=Mt)||void 0===n||n(),Mt=void 0);t("visible-change",e)}),{inputId:d,collapseTagSize:we,currentPlaceholder:Le,expanded:ee,emptyText:me,popupHeight:oe,debounce:fe,allOptions:X,allOptionsValueMap:ye,filteredOptions:Z,iconComponent:se,iconReverse:le,tagStyle:Ee,collapseTagStyle:je,popperSize:k,dropdownMenuVisible:Re,hasModelValue:ae,shouldShowPlaceholder:De,selectDisabled:z,selectSize:Ce,needStatusIcon:re,showClearBtn:ie,states:M,isFocused:W,nsSelect:i,nsInput:s,inputRef:D,menuRef:N,tagMenuRef:R,tooltipRef:E,tagTooltipRef:j,selectRef:T,wrapperRef:q,selectionRef:I,prefixRef:L,suffixRef:A,collapseItemRef:P,popperRef:Ae,validateState:de,validateIcon:pe,showTagList:xe,collapseTagList:Pe,debouncedOnInputChange:Ye,deleteTag:rt,getLabel:f,getValue:m,getDisabled:v,getValueKey:Je,getIndex:yt,handleClear:lt,handleClickOutside:mt,handleDel:ct,handleEsc:it,focus:ot,blur:at,handleMenuEnter:gt,handleResize:Xe,resetSelectionWidth:Qe,updateTooltip:et,updateTagTooltip:tt,updateOptions:be,toggleMenu:Ge,scrollTo:_t,onInput:ht,onKeyboardNavigate:ut,onKeyboardSelect:dt,onSelect:nt,onHover:pt,handleCompositionStart:F,handleCompositionEnd:G,handleCompositionUpdate:H}};var jb=Object(u["defineComponent"])({name:"ElSelectV2",components:{ElSelectMenu:Tb,ElTag:$o,ElTooltip:vn,ElIcon:k["a"]},directives:{ClickOutside:ka},props:h_,emits:v_,setup(e,{emit:t}){const n=Object(u["computed"])(()=>{const{modelValue:t,multiple:n}=e,r=n?[]:void 0;return Object(te["isArray"])(t)?n?t:r:n?r:t}),r=Eb(Object(u["reactive"])({...Object(u["toRefs"])(e),modelValue:n}),t),{calculatorRef:o,inputStyle:a}=va(),i=Object(ge["a"])();Object(u["provide"])(__,{props:Object(u["reactive"])({...Object(u["toRefs"])(e),height:r.popupHeight,modelValue:n}),expanded:r.expanded,tooltipRef:r.tooltipRef,contentId:i,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect});const s=Object(u["computed"])(()=>{var t;return e.multiple?J()(t=r.states.cachedOptions).call(t,e=>r.getLabel(e)):r.states.selectedLabel});return{...r,modelValue:n,selectedLabel:s,calculatorRef:o,inputStyle:a,contentId:i,BORDER_HORIZONTAL_WIDTH:ma}}});const Db=["id","value","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],Lb=["textContent"],Ab={key:1};function Nb(e,t,n,r,o,a){const i=Object(u["resolveComponent"])("el-tag"),s=Object(u["resolveComponent"])("el-tooltip"),c=Object(u["resolveComponent"])("el-icon"),l=Object(u["resolveComponent"])("el-select-menu"),d=Object(u["resolveDirective"])("click-outside");return Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref:"selectRef",class:Object(u["normalizeClass"])([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[15]||(t[15]=t=>e.states.inputHovering=!0),onMouseleave:t[16]||(t[16]=t=>e.states.inputHovering=!1)},[Object(u["createVNode"])(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:e.nsSelect.namespace.value+"-zoom-in-top",trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[14]||(t[14]=t=>e.states.isBeforeHide=!1)},{default:Object(u["withCtx"])(()=>{var n,r;return[Object(u["createElementVNode"])("div",{ref:"wrapperRef",class:Object(u["normalizeClass"])([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[11]||(t[11]=Object(u["withModifiers"])((...t)=>e.toggleMenu&&e.toggleMenu(...t),["prevent"]))},[e.$slots.prefix?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,ref:"prefixRef",class:Object(u["normalizeClass"])(e.nsSelect.e("prefix"))},[Object(u["renderSlot"])(e.$slots,"prefix")],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{ref:"selectionRef",class:Object(u["normalizeClass"])([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?Object(u["renderSlot"])(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>{var t,n,r,o,a,c,l,d,p,f,h,m,v,g,_,b,y,O,M,k,C;return[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.showTagList,t=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:e.getValueKey(e.getValue(t)),class:Object(u["normalizeClass"])(e.nsSelect.e("selected-item"))},[Object(u["createVNode"])(i,{closable:!e.selectDisabled&&!e.getDisabled(t),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Object(u["normalizeStyle"])(e.tagStyle),onClose:n=>e.deleteTag(n,t)},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(e.nsSelect.e("tags-text"))},[Object(u["renderSlot"])(e.$slots,"label",{index:e.getIndex(t),label:e.getLabel(t),value:e.getValue(t)},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.getLabel(t)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.cachedOptions.length>e.maxCollapseTags?(Object(u["openBlock"])(),Object(u["createBlock"])(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":null!==(t=null===(n=e.tagTooltip)||void 0===n?void 0:n.fallbackPlacements)&&void 0!==t?t:["bottom","top","right","left"],effect:null!==(r=null===(o=e.tagTooltip)||void 0===o?void 0:o.effect)&&void 0!==r?r:e.effect,placement:null!==(a=null===(c=e.tagTooltip)||void 0===c?void 0:c.placement)&&void 0!==a?a:"bottom","popper-class":null!==(l=null===(d=e.tagTooltip)||void 0===d?void 0:d.popperClass)&&void 0!==l?l:e.popperClass,"popper-style":null!==(p=null===(f=e.tagTooltip)||void 0===f?void 0:f.popperStyle)&&void 0!==p?p:e.popperStyle,teleported:null!==(h=null===(m=e.tagTooltip)||void 0===m?void 0:m.teleported)&&void 0!==h?h:e.teleported,"append-to":null!==(v=null===(g=e.tagTooltip)||void 0===g?void 0:g.appendTo)&&void 0!==v?v:e.appendTo,"popper-options":null!==(_=null===(b=e.tagTooltip)||void 0===b?void 0:b.popperOptions)&&void 0!==_?_:e.popperOptions,transition:null===(y=e.tagTooltip)||void 0===y?void 0:y.transition,"show-after":null===(O=e.tagTooltip)||void 0===O?void 0:O.showAfter,"hide-after":null===(M=e.tagTooltip)||void 0===M?void 0:M.hideAfter,"auto-close":null===(k=e.tagTooltip)||void 0===k?void 0:k.autoClose,offset:null===(C=e.tagTooltip)||void 0===C?void 0:C.offset},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{ref:"collapseItemRef",class:Object(u["normalizeClass"])(e.nsSelect.e("selected-item"))},[Object(u["createVNode"])(i,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:Object(u["normalizeStyle"])(e.collapseTagStyle),"disable-transitions":""},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(e.nsSelect.e("tags-text"))}," + "+Object(u["toDisplayString"])(e.states.cachedOptions.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{ref:"tagMenuRef",class:Object(u["normalizeClass"])(e.nsSelect.e("selection"))},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.collapseTagList,t=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:e.getValueKey(e.getValue(t)),class:Object(u["normalizeClass"])(e.nsSelect.e("selected-item"))},[Object(u["createVNode"])(i,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(t),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(e.nsSelect.e("tags-text"))},[Object(u["renderSlot"])(e.$slots,"label",{index:e.getIndex(t),label:e.getLabel(t),value:e.getValue(t)},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.getLabel(t)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):Object(u["createCommentVNode"])("v-if",!0)]}):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[Object(u["createElementVNode"])("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,style:Object(u["normalizeStyle"])(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:Object(u["normalizeClass"])([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox","aria-controls":e.contentId,"aria-activedescendant":e.states.hoveringIndex>=0?`${e.contentId}-${e.states.hoveringIndex}`:"",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:t[0]||(t[0]=(...t)=>e.onInput&&e.onInput(...t)),onChange:t[1]||(t[1]=Object(u["withModifiers"])(()=>{},["stop"])),onCompositionstart:t[2]||(t[2]=(...t)=>e.handleCompositionStart&&e.handleCompositionStart(...t)),onCompositionupdate:t[3]||(t[3]=(...t)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...t)),onCompositionend:t[4]||(t[4]=(...t)=>e.handleCompositionEnd&&e.handleCompositionEnd(...t)),onKeydown:[t[5]||(t[5]=Object(u["withKeys"])(Object(u["withModifiers"])(t=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[6]||(t[6]=Object(u["withKeys"])(Object(u["withModifiers"])(t=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[7]||(t[7]=Object(u["withKeys"])(Object(u["withModifiers"])((...t)=>e.onKeyboardSelect&&e.onKeyboardSelect(...t),["stop","prevent"]),["enter"])),t[8]||(t[8]=Object(u["withKeys"])(Object(u["withModifiers"])((...t)=>e.handleEsc&&e.handleEsc(...t),["stop","prevent"]),["esc"])),t[9]||(t[9]=Object(u["withKeys"])(Object(u["withModifiers"])((...t)=>e.handleDel&&e.handleDel(...t),["stop"]),["delete"]))],onClick:t[10]||(t[10]=Object(u["withModifiers"])((...t)=>e.toggleMenu&&e.toggleMenu(...t),["stop"]))},null,46,Db),e.filterable?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Object(u["normalizeClass"])(e.nsSelect.e("input-calculator")),textContent:Object(u["toDisplayString"])(e.states.inputValue)},null,10,Lb)):Object(u["createCommentVNode"])("v-if",!0)],2),e.shouldShowPlaceholder?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?Object(u["renderSlot"])(e.$slots,"label",{key:0,index:null!==(n=null===(r=e.allOptionsValueMap.get(e.modelValue))||void 0===r?void 0:r.index)&&void 0!==n?n:-1,label:e.currentPlaceholder,value:e.modelValue},()=>[Object(u["createElementVNode"])("span",null,Object(u["toDisplayString"])(e.currentPlaceholder),1)]):(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",Ab,Object(u["toDisplayString"])(e.currentPlaceholder),1))],2)):Object(u["createCommentVNode"])("v-if",!0)],2),Object(u["createElementVNode"])("div",{ref:"suffixRef",class:Object(u["normalizeClass"])(e.nsSelect.e("suffix"))},[e.iconComponent?Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createBlock"])(c,{key:0,class:Object(u["normalizeClass"])([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.iconComponent)))]),_:1},8,["class"])),[[u["vShow"],!e.showClearBtn]]):Object(u["createCommentVNode"])("v-if",!0),e.showClearBtn&&e.clearIcon?(Object(u["openBlock"])(),Object(u["createBlock"])(c,{key:1,class:Object(u["normalizeClass"])([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:Object(u["withModifiers"])(e.handleClear,["prevent","stop"])},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.clearIcon)))]),_:1},8,["class","onClick"])):Object(u["createCommentVNode"])("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(Object(u["openBlock"])(),Object(u["createBlock"])(c,{key:2,class:Object(u["normalizeClass"])([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading","validating"===e.validateState)])},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.validateIcon)))]),_:1},8,["class"])):Object(u["createCommentVNode"])("v-if",!0)],2)],2)]}),content:Object(u["withCtx"])(()=>[Object(u["createVNode"])(l,{id:e.contentId,ref:"menuRef",data:e.filteredOptions,width:e.popperSize-e.BORDER_HORIZONTAL_WIDTH,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn,"aria-label":e.ariaLabel},Object(u["createSlots"])({default:Object(u["withCtx"])(t=>[Object(u["renderSlot"])(e.$slots,"default",Object(u["normalizeProps"])(Object(u["guardReactiveProps"])(t)))]),_:2},[e.$slots.header?{name:"header",fn:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(e.nsSelect.be("dropdown","header")),onClick:t[12]||(t[12]=Object(u["withModifiers"])(()=>{},["stop"]))},[Object(u["renderSlot"])(e.$slots,"header")],2)]),key:"0"}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(e.nsSelect.be("dropdown","loading"))},[Object(u["renderSlot"])(e.$slots,"loading")],2)]),key:"1"}:e.loading||0===e.filteredOptions.length?{name:"empty",fn:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(e.nsSelect.be("dropdown","empty"))},[Object(u["renderSlot"])(e.$slots,"empty",{},()=>[Object(u["createElementVNode"])("span",null,Object(u["toDisplayString"])(e.emptyText),1)])],2)]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(e.nsSelect.be("dropdown","footer")),onClick:t[13]||(t[13]=Object(u["withModifiers"])(()=>{},["stop"]))},[Object(u["renderSlot"])(e.$slots,"footer")],2)]),key:"3"}:void 0]),1032,["id","data","width","hovering-index","scrollbar-always-on","aria-label"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],34)),[[d,e.handleClickOutside,e.popperRef]])}var Rb=Object(Jo["a"])(jb,[["render",Nb]]);const xb=Object(r["a"])(Rb),Pb=Object(c["b"])({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}});var Ub=Object(u["defineComponent"])({name:"ElSkeletonItem",__name:"skeleton-item",props:Pb,setup(e){const t=Object(g["d"])("skeleton");return(n,r)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(t).e("item"),Object(u["unref"])(t).e(e.variant)])},["image"===e.variant?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Fn["PictureFilled"]),{key:0})):Object(u["createCommentVNode"])("v-if",!0)],2))}}),Vb=Ub;const Bb=(e,t=0)=>{if(0===t)return e;const n=Object(u["ref"])(Object(te["isObject"])(t)&&Boolean(t.initVal));let r=null;const o=t=>{Object(h["g"])(t)?n.value=e.value:(r&&clearTimeout(r),r=qe()(()=>{n.value=e.value},t))},a=e=>{"leading"===e?Object(h["d"])(t)?o(t):o(t.leading):Object(te["isObject"])(t)?o(t.trailing):n.value=!1};return Object(u["onMounted"])(()=>a("leading")),Object(u["watch"])(()=>e.value,e=>{a(e?"leading":"trailing")}),n},Fb=Object(c["b"])({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Object(c["c"])([Number,Object])}});var Gb=Object(u["defineComponent"])({name:"ElSkeleton",__name:"skeleton",props:Fb,setup(e,{expose:t}){const n=e,r=Object(g["d"])("skeleton"),o=Bb(Object(u["toRef"])(n,"loading"),n.throttle);return t({uiLoading:o}),(t,n)=>Object(u["unref"])(o)?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",Object(u["mergeProps"])({key:0,class:[Object(u["unref"])(r).b(),Object(u["unref"])(r).is("animated",e.animated)]},t.$attrs),[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.count,n=>(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:n},[Object(u["unref"])(o)?Object(u["renderSlot"])(t.$slots,"template",{key:n},()=>[Object(u["createVNode"])(Vb,{class:Object(u["normalizeClass"])(Object(u["unref"])(r).is("first")),variant:"p"},null,8,["class"]),(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.rows,t=>(Object(u["openBlock"])(),Object(u["createBlock"])(Vb,{key:t,class:Object(u["normalizeClass"])([Object(u["unref"])(r).e("paragraph"),Object(u["unref"])(r).is("last",t===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"]))),128))]):Object(u["createCommentVNode"])("v-if",!0)],64))),128))],16)):Object(u["renderSlot"])(t.$slots,"default",Object(u["normalizeProps"])(Object(u["mergeProps"])({key:1},t.$attrs)))}}),Hb=Gb;const Yb=Object(r["a"])(Hb,{SkeletonItem:Vb}),zb=Object(r["d"])(Vb),qb=xe()("sliderContextKey"),Wb=Object(c["b"])({modelValue:{type:Object(c["c"])([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Object(c["c"])([Number,String]),default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Nr["c"],inputSize:Nr["c"],showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Object(c["c"])(Function),default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:Object(c["c"])(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:ct["placements"],default:"top"},marks:{type:Object(c["c"])(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Object(st["a"])(["ariaLabel"])}),Kb=e=>Object(h["d"])(e)||Object(te["isArray"])(e)&&Ht()(e).call(e,h["d"]),$b={[o["c"]]:Kb,[o["b"]]:Kb,[o["a"]]:Kb},Jb=(e,t,n)=>{const r=Object(u["ref"])();return Object(u["onMounted"])(async()=>{e.range?(Object(te["isArray"])(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!Object(h["d"])(e.modelValue)||Di()(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Object(_["useEventListener"])(window,"resize",n),await Object(u["nextTick"])(),n()}),{sliderWrapper:r}},Xb=e=>{const t=Object(u["computed"])(()=>{var t,n,r,o;return e.marks?J()(t=K()(n=Ff()(r=J()(o=Q()(e.marks)).call(o,Oe.a)).call(r,(e,t)=>e-t)).call(n,t=>t<=e.max&&t>=e.min)).call(t,t=>({point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]})):[]});return Object(u["watchEffect"])(()=>{if("mark"!==e.step||e.marks||Object(a["a"])("ElSlider","marks prop must be provided when step is mark"),e.marks){var n;const r=Q()(e.marks),o=J()(n=t.value).call(n,e=>e.point),i=K()(r).call(r,e=>{const t=Oe()(e);return Di()(t)||!ue()(o).call(o,t)});i.length>0&&Object(a["a"])("ElSlider",`Some marks keys are invalid (not a number or out of [min, max]): [${J()(i).call(i,e=>`'${e}'`).join(", ")}] and will be ignored.`)}}),t},Qb=(e,t,n)=>{const{formItem:r}=Object(Hr["a"])(),a=Object(u["shallowRef"])(),i=Object(u["ref"])(),s=Object(u["ref"])(),c={firstButton:i,secondButton:s},l=Object(ce["a"])(),d=Object(u["computed"])(()=>Math.min(t.firstValue,t.secondValue)),p=Object(u["computed"])(()=>Math.max(t.firstValue,t.secondValue)),f=Object(u["computed"])(()=>e.range?100*(p.value-d.value)/(e.max-e.min)+"%":100*(t.firstValue-e.min)/(e.max-e.min)+"%"),h=Object(u["computed"])(()=>e.range?100*(d.value-e.min)/(e.max-e.min)+"%":"0%"),m=Object(u["computed"])(()=>e.vertical?{height:e.height}:{}),v=Object(u["computed"])(()=>e.vertical?{height:f.value,bottom:h.value}:{width:f.value,left:h.value}),g=()=>{a.value&&(t.sliderSize=a.value.getBoundingClientRect()[e.vertical?"height":"width"])},_=n=>{const r=e.min+n*(e.max-e.min)/100;if(!e.range)return i;let o;return o=Math.abs(d.value-r)<Math.abs(p.value-r)?t.firstValue<t.secondValue?"firstButton":"secondButton":t.firstValue>t.secondValue?"firstButton":"secondButton",c[o]},b=e=>{const t=_(e);return t.value.setPosition(e),t},y=n=>{t.firstValue=null!==n&&void 0!==n?n:e.min,M(e.range?[d.value,p.value]:null!==n&&void 0!==n?n:e.min)},O=n=>{t.secondValue=n,e.range&&M([d.value,p.value])},M=e=>{n(o["c"],e),n(o["b"],e)},k=async()=>{await Object(u["nextTick"])(),n(o["a"],e.range?[d.value,p.value]:e.modelValue)},C=n=>{var r,o;if(l.value||t.dragging)return;g();let i=0;if(e.vertical){var s,c;const e=null!==(s=null===(c=n.touches)||void 0===c||null===(c=c.item(0))||void 0===c?void 0:c.clientY)&&void 0!==s?s:n.clientY;i=(a.value.getBoundingClientRect().bottom-e)/t.sliderSize*100}else i=((null!==(r=null===(o=n.touches)||void 0===o||null===(o=o.item(0))||void 0===o?void 0:o.clientX)&&void 0!==r?r:n.clientX)-a.value.getBoundingClientRect().left)/t.sliderSize*100;return i<0||i>100?void 0:b(i)},w=e=>{var t,n;(null!==(t=c["firstButton"].value)&&void 0!==t&&t.dragging||null!==(n=c["secondButton"].value)&&void 0!==n&&n.dragging)&&e.preventDefault()},S=async e=>{const t=C(e);t&&(await Object(u["nextTick"])(),t.value.onButtonDown(e))},T=e=>{C(e)&&k()},I=e=>{l.value||t.dragging||b(e)&&k()};return{elFormItem:r,slider:a,firstButton:i,secondButton:s,sliderDisabled:l,minValue:d,maxValue:p,runwayStyle:m,barStyle:v,resetSize:g,setPosition:b,emitChange:k,onSliderWrapperPrevent:w,onSliderClick:T,onSliderDown:S,onSliderMarkerDown:I,setFirstValue:y,setSecondValue:O}},Zb=(e,t,n,r)=>{const o=Object(u["computed"])(()=>{var o;if(!e.showStops||e.min>e.max)return[];if("mark"===e.step||0===e.step)return 0===e.step&&Object(a["a"])("ElSlider","step should not be 0."),[];const i=Math.ceil((e.max-e.min)/e.step),s=100*e.step/(e.max-e.min),c=J()(o=Pn()({length:i-1})).call(o,(e,t)=>(t+1)*s);return e.range?K()(c).call(c,t=>t<100*(n.value-e.min)/(e.max-e.min)||t>100*(r.value-e.min)/(e.max-e.min)):K()(c).call(c,n=>n>100*(t.firstValue-e.min)/(e.max-e.min))}),i=t=>e.vertical?{bottom:t+"%"}:{left:t+"%"};return{stops:o,getStopStyle:i}},ey=(e,t,n,r,i,s)=>{const c=e=>{i(o["c"],e),i(o["b"],e)},l=()=>{var o;return e.range?!Ht()(o=[n.value,r.value]).call(o,(e,n)=>e===t.oldValue[n]):e.modelValue!==t.oldValue},d=()=>{e.min>e.max&&Object(a["b"])("Slider","min should not be greater than max.");const n=e.modelValue;if(e.range&&Object(te["isArray"])(n))if(n[1]<e.min)c([e.min,e.min]);else if(n[0]>e.max)c([e.max,e.max]);else if(n[0]<e.min)c([e.min,n[1]]);else if(n[1]>e.max)c([n[0],e.max]);else{var r;if(t.firstValue=n[0],t.secondValue=n[1],l())e.validateEvent&&(null===s||void 0===s||null===(r=s.validate)||void 0===r||r.call(s,"change").catch(e=>Object(a["a"])(e))),t.oldValue=It()(n).call(n)}else if(!e.range&&Object(h["d"])(n)&&!Di()(n))if(n<e.min)c(e.min);else if(n>e.max)c(e.max);else{var o;if(t.firstValue=n,l())e.validateEvent&&(null===s||void 0===s||null===(o=s.validate)||void 0===o||o.call(s,"change").catch(e=>Object(a["a"])(e))),t.oldValue=n}};d(),Object(u["watch"])(()=>t.dragging,e=>{e||d()}),Object(u["watch"])(()=>e.modelValue,(e,n)=>{t.dragging||Object(te["isArray"])(e)&&Object(te["isArray"])(n)&&Ht()(e).call(e,(e,t)=>e===n[t])&&t.firstValue===e[0]&&t.secondValue===e[1]||d()},{deep:!0}),Object(u["watch"])(()=>[e.min,e.max],()=>{d()})};var ty=n("af70"),ny=n.n(ty);const ry=(e,t,n)=>{const r=Object(u["ref"])(),o=Object(u["ref"])(!1),a=Object(u["computed"])(()=>t.value instanceof Function);return{tooltip:r,tooltipVisible:o,formatValue:Object(u["computed"])(()=>a.value&&t.value(e.modelValue)||e.modelValue),displayTooltip:Object(ne["debounce"])(()=>{n.value&&(o.value=!0)},50),hideTooltip:Object(ne["debounce"])(()=>{n.value&&(o.value=!1)},50)}},oy=(e,t,n)=>{const{disabled:r,min:a,max:i,step:s,showTooltip:c,persistent:l,precision:d,sliderSize:p,formatTooltip:f,emitChange:m,resetSize:v,updateDragging:g,markList:b}=Object(u["inject"])(qb),{tooltip:y,tooltipVisible:O,formatValue:M,displayTooltip:k,hideTooltip:C}=ry(e,f,c),w=Object(u["ref"])(),S=Object(u["computed"])(()=>(e.modelValue-a.value)/(i.value-a.value)*100+"%"),T=Object(u["computed"])(()=>e.vertical?{bottom:S.value}:{left:S.value}),I=Object(u["computed"])(()=>"mark"===s.value&&b.value.length>0),E=()=>{t.hovering=!0,k()},j=()=>{t.hovering=!1,t.dragging||C()},D=e=>{r.value||(e.preventDefault(),G(e),window.addEventListener("mousemove",H),window.addEventListener("touchmove",H),window.addEventListener("mouseup",Y),window.addEventListener("touchend",Y),window.addEventListener("contextmenu",Y),w.value.focus())},L=e=>{r.value||(t.newPosition=Oe()(S.value)+e/(i.value-a.value)*100,z(t.newPosition),m())},A=t=>{if(r.value||!b.value.length)return;const n=e.modelValue,o=ny.a,s=Math.abs(t);let c;if(t>0){var l;const e=ya()(l=b.value).call(l,e=>e.point>n+o);if(-1!==e){const t=Math.min(e+s-1,b.value.length-1);c=b.value[t].point}}else{let e=-1;for(let t=b.value.length-1;t>=0;t--)if(b.value[t].point<n-o){e=t;break}if(-1!==e){const t=Math.max(e-(s-1),0);c=b.value[t].point}}void 0!==c&&c!==n&&(z((c-a.value)/(i.value-a.value)*100),m())},N=()=>{I.value?A(-1):Object(h["d"])(s.value)&&L(-s.value)},R=()=>{I.value?A(1):Object(h["d"])(s.value)&&L(s.value)},x=()=>{I.value?A(-4):Object(h["d"])(s.value)&&L(4*-s.value)},P=()=>{I.value?A(4):Object(h["d"])(s.value)&&L(4*s.value)},U=()=>{r.value||(z(0),m())},V=()=>{r.value||(z(100),m())},B=e=>{const t=Object(St["b"])(e);let n=!0;switch(t){case vt["a"].left:case vt["a"].down:N();break;case vt["a"].right:case vt["a"].up:R();break;case vt["a"].home:U();break;case vt["a"].end:V();break;case vt["a"].pageDown:x();break;case vt["a"].pageUp:P();break;default:n=!1;break}n&&e.preventDefault()},F=e=>{var t;let n,r;return Fr()(t=e.type).call(t,"touch")?(r=e.touches[0].clientY,n=e.touches[0].clientX):(r=e.clientY,n=e.clientX),{clientX:n,clientY:r}},G=n=>{t.dragging=!0,t.isClick=!0;const{clientX:r,clientY:o}=F(n);e.vertical?t.startY=o:t.startX=r,t.startPosition=Oe()(S.value),t.newPosition=t.startPosition},H=n=>{if(t.dragging){let r;t.isClick=!1,k(),v();const{clientX:o,clientY:a}=F(n);e.vertical?(t.currentY=a,r=(t.startY-t.currentY)/p.value*100):(t.currentX=o,r=(t.currentX-t.startX)/p.value*100),t.newPosition=t.startPosition+r,z(t.newPosition)}},Y=()=>{t.dragging&&(qe()(()=>{t.dragging=!1,t.hovering||C(),t.isClick||z(t.newPosition),m()},0),window.removeEventListener("mousemove",H),window.removeEventListener("touchmove",H),window.removeEventListener("mouseup",Y),window.removeEventListener("touchend",Y),window.removeEventListener("contextmenu",Y))},z=async r=>{var c;if(null===r||Di()(+r))return;let l;if(r=Object(ne["clamp"])(r,0,100),"mark"===s.value)l=0===b.value.length?r<=50?a.value:i.value:fa()(c=b.value).call(c,(e,t)=>Math.abs(t.position-r)<Math.abs(e.position-r)?t:e).point;else{const e=Math.floor((i.value-a.value)/s.value),t=e*s.value/(i.value-a.value)*100,n=t+(100-t)/2;if(r<t){const n=t/e,o=Math.round(r/n);l=a.value+o*s.value}else l=r<n?a.value+e*s.value:i.value;l=Oe()(l.toFixed(d.value))}l!==e.modelValue&&n(o["c"],l),t.dragging||e.modelValue===t.oldValue||(t.oldValue=e.modelValue),await Object(u["nextTick"])(),t.dragging&&k(),y.value.updatePopper()};return Object(u["watch"])(()=>t.dragging,e=>{g(e)}),Object(_["useEventListener"])(w,"touchstart",D,{passive:!1}),{disabled:r,button:w,tooltip:y,tooltipVisible:O,showTooltip:c,persistent:l,wrapperStyle:T,formatValue:M,handleMouseEnter:E,handleMouseLeave:j,onButtonDown:D,onKeyDown:B,setPosition:z}},ay=Object(c["b"])({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:ct["placements"],default:"top"}}),iy={[o["c"]]:e=>Object(h["d"])(e)},sy=["tabindex"];var cy=Object(u["defineComponent"])({name:"ElSliderButton",__name:"button",props:ay,emits:iy,setup(e,{expose:t,emit:n}){const r=e,o=n,a=Object(g["d"])("slider"),i=Object(u["reactive"])({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),s=Object(u["computed"])(()=>!!p.value&&f.value),{disabled:c,button:l,tooltip:d,showTooltip:p,persistent:f,tooltipVisible:h,wrapperStyle:m,formatValue:v,handleMouseEnter:_,handleMouseLeave:b,onButtonDown:y,onKeyDown:O,setPosition:M}=oy(r,i,o),{hovering:k,dragging:C}=Object(u["toRefs"])(i);return t({onButtonDown:y,onKeyDown:O,setPosition:M,hovering:k,dragging:C}),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref_key:"button",ref:l,class:Object(u["normalizeClass"])([Object(u["unref"])(a).e("button-wrapper"),{hover:Object(u["unref"])(k),dragging:Object(u["unref"])(C)}]),style:Object(u["normalizeStyle"])(Object(u["unref"])(m)),tabindex:Object(u["unref"])(c)?void 0:0,onMouseenter:t[0]||(t[0]=(...e)=>Object(u["unref"])(_)&&Object(u["unref"])(_)(...e)),onMouseleave:t[1]||(t[1]=(...e)=>Object(u["unref"])(b)&&Object(u["unref"])(b)(...e)),onMousedown:t[2]||(t[2]=(...e)=>Object(u["unref"])(y)&&Object(u["unref"])(y)(...e)),onFocus:t[3]||(t[3]=(...e)=>Object(u["unref"])(_)&&Object(u["unref"])(_)(...e)),onBlur:t[4]||(t[4]=(...e)=>Object(u["unref"])(b)&&Object(u["unref"])(b)(...e)),onKeydown:t[5]||(t[5]=(...e)=>Object(u["unref"])(O)&&Object(u["unref"])(O)(...e))},[Object(u["createVNode"])(Object(u["unref"])(vn),{ref_key:"tooltip",ref:d,visible:Object(u["unref"])(h),placement:e.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":e.tooltipClass,disabled:!Object(u["unref"])(p),persistent:s.value},{content:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("span",null,Object(u["toDisplayString"])(Object(u["unref"])(v)),1)]),default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(a).e("button"),{hover:Object(u["unref"])(k),dragging:Object(u["unref"])(C)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,sy))}}),ly=cy;const uy=Object(c["b"])({mark:{type:Object(c["c"])([String,Object]),default:void 0}});var dy=Object(u["defineComponent"])({name:"ElSliderMarker",props:uy,setup(e){const t=Object(g["d"])("slider"),n=Object(u["computed"])(()=>Object(te["isString"])(e.mark)?e.mark:e.mark.label),r=Object(u["computed"])(()=>Object(te["isString"])(e.mark)?void 0:e.mark.style);return()=>Object(u["h"])("div",{class:t.e("marks-text"),style:r.value},n.value)}});const py=["id","role","aria-label","aria-labelledby"],fy={key:1};var hy=Object(u["defineComponent"])({name:"ElSlider",__name:"slider",props:Wb,emits:$b,setup(e,{expose:t,emit:n}){const r=e,o=n,a=Object(g["d"])("slider"),{t:i}=Object(fr["b"])(),s=Object(u["reactive"])({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:c,slider:l,firstButton:d,secondButton:p,sliderDisabled:f,minValue:m,maxValue:v,runwayStyle:b,barStyle:y,resetSize:O,emitChange:M,onSliderWrapperPrevent:k,onSliderClick:C,onSliderDown:w,onSliderMarkerDown:S,setFirstValue:T,setSecondValue:I}=Qb(r,s,o),{stops:E,getStopStyle:j}=Zb(r,s,m,v),{inputId:D,isLabeledByFormItem:L}=Object(Hr["b"])(r,{formItemContext:c}),A=Object(ce["b"])(),N=Object(u["computed"])(()=>r.inputSize||A.value),R=Object(u["computed"])(()=>r.showInput&&!r.range&&"mark"!==r.step),x=Object(u["computed"])(()=>r.ariaLabel||i("el.slider.defaultLabel",{min:r.min,max:r.max})),P=Object(u["computed"])(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):x.value),U=Object(u["computed"])(()=>r.formatValueText?r.formatValueText(q.value):""+q.value),V=Object(u["computed"])(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),B=Object(u["computed"])(()=>r.formatValueText?r.formatValueText(W.value):""+W.value),F=Object(u["computed"])(()=>[a.b(),a.m(A.value),a.is("vertical",r.vertical),{[a.m("with-input")]:R.value}]),G=Xb(r);ey(r,s,m,v,o,c);const H=Object(u["computed"])(()=>Object(h["d"])(r.step)?r.step:1),Y=Object(u["computed"])(()=>{var e;const t=Object(h["d"])(r.step)?r.step:1,n=J()(e=[r.min,r.max,t]).call(e,e=>{const t=(""+e).split(".")[1];return t?t.length:0});return Math.max.apply(null,n)}),{sliderWrapper:z}=Jb(r,s,O),{firstValue:q,secondValue:W,sliderSize:K}=Object(u["toRefs"])(s),$=e=>{s.dragging=e};return Object(_["useEventListener"])(z,"touchstart",k,{passive:!1}),Object(_["useEventListener"])(z,"touchmove",k,{passive:!1}),Object(u["provide"])(qb,{...Object(u["toRefs"])(r),sliderSize:K,disabled:f,precision:Y,markList:G,emitChange:M,resetSize:O,updateDragging:$}),t({onSliderClick:C}),(e,t)=>{var n,r;return Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{id:e.range?Object(u["unref"])(D):void 0,ref_key:"sliderWrapper",ref:z,class:Object(u["normalizeClass"])(F.value),role:e.range?"group":void 0,"aria-label":e.range&&!Object(u["unref"])(L)?x.value:void 0,"aria-labelledby":e.range&&Object(u["unref"])(L)?null===(n=Object(u["unref"])(c))||void 0===n?void 0:n.labelId:void 0},[Object(u["createElementVNode"])("div",{ref_key:"slider",ref:l,class:Object(u["normalizeClass"])([Object(u["unref"])(a).e("runway"),{"show-input":R.value},Object(u["unref"])(a).is("disabled",Object(u["unref"])(f))]),style:Object(u["normalizeStyle"])(Object(u["unref"])(b)),onMousedown:t[0]||(t[0]=(...e)=>Object(u["unref"])(w)&&Object(u["unref"])(w)(...e)),onTouchstartPassive:t[1]||(t[1]=(...e)=>Object(u["unref"])(w)&&Object(u["unref"])(w)(...e))},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("bar")),style:Object(u["normalizeStyle"])(Object(u["unref"])(y))},null,6),Object(u["createVNode"])(ly,{id:e.range?void 0:Object(u["unref"])(D),ref_key:"firstButton",ref:d,"model-value":Object(u["unref"])(q),vertical:e.vertical,"tooltip-class":e.tooltipClass,placement:e.placement,role:"slider","aria-label":e.range||!Object(u["unref"])(L)?P.value:void 0,"aria-labelledby":!e.range&&Object(u["unref"])(L)?null===(r=Object(u["unref"])(c))||void 0===r?void 0:r.labelId:void 0,"aria-valuemin":e.min,"aria-valuemax":e.range?Object(u["unref"])(W):e.max,"aria-valuenow":Object(u["unref"])(q),"aria-valuetext":U.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":Object(u["unref"])(f),"onUpdate:modelValue":Object(u["unref"])(T)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),e.range?(Object(u["openBlock"])(),Object(u["createBlock"])(ly,{key:0,ref_key:"secondButton",ref:p,"model-value":Object(u["unref"])(W),vertical:e.vertical,"tooltip-class":e.tooltipClass,placement:e.placement,role:"slider","aria-label":V.value,"aria-valuemin":Object(u["unref"])(q),"aria-valuemax":e.max,"aria-valuenow":Object(u["unref"])(W),"aria-valuetext":B.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":Object(u["unref"])(f),"onUpdate:modelValue":Object(u["unref"])(I)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):Object(u["createCommentVNode"])("v-if",!0),e.showStops?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",fy,[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(Object(u["unref"])(E),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:t,class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("stop")),style:Object(u["normalizeStyle"])(Object(u["unref"])(j)(e))},null,6))),128))])):Object(u["createCommentVNode"])("v-if",!0),Object(u["unref"])(G).length>0?(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:2},[Object(u["createElementVNode"])("div",null,[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(Object(u["unref"])(G),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:t,style:Object(u["normalizeStyle"])(Object(u["unref"])(j)(e.position)),class:Object(u["normalizeClass"])([Object(u["unref"])(a).e("stop"),Object(u["unref"])(a).e("marks-stop")])},null,6))),128))]),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("marks"))},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(Object(u["unref"])(G),(e,t)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(dy),{key:t,mark:e.mark,style:Object(u["normalizeStyle"])(Object(u["unref"])(j)(e.position)),onMousedown:Object(u["withModifiers"])(t=>Object(u["unref"])(S)(e.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):Object(u["createCommentVNode"])("v-if",!0)],38),R.value?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Zm),{key:0,ref:"input","model-value":Object(u["unref"])(q),class:Object(u["normalizeClass"])(Object(u["unref"])(a).e("input")),step:H.value,disabled:Object(u["unref"])(f),controls:e.showInputControls,min:e.min,max:e.max,precision:Y.value,size:N.value,"onUpdate:modelValue":Object(u["unref"])(T),onChange:Object(u["unref"])(M)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):Object(u["createCommentVNode"])("v-if",!0)],10,py)}}}),my=hy;const vy=Object(r["a"])(my),gy=Object(c["b"])({prefixCls:{type:String}}),_y=Object(u["defineComponent"])({name:"ElSpaceItem",props:gy,setup(e,{slots:t}){const n=Object(g["d"])("space"),r=Object(u["computed"])(()=>(e.prefixCls||n.b())+"__item");return()=>Object(u["h"])("div",{class:r.value},Object(u["renderSlot"])(t,"default"))}}),by={small:8,default:12,large:16};function yy(e){const t=Object(g["d"])("space"),n=Object(u["computed"])(()=>[t.b(),t.m(e.direction),e.class]),r=Object(u["ref"])(0),o=Object(u["ref"])(0),a=Object(u["computed"])(()=>[e.wrap||hs()(e)?{flexWrap:"wrap"}:{},{alignItems:e.alignment},{rowGap:o.value+"px",columnGap:r.value+"px"},e.style]),i=Object(u["computed"])(()=>hs()(e)?{flexGrow:1,minWidth:e.fillRatio+"%"}:{});return Object(u["watchEffect"])(()=>{const{size:t="small",wrap:n,direction:a,fill:i}=e;if(Object(te["isArray"])(t)){const[e=0,n=0]=t;r.value=e,o.value=n}else{let e;e=Object(h["d"])(t)?t:by[t||"small"]||by.small,(n||i)&&"horizontal"===a?r.value=o.value=e:"horizontal"===a?(r.value=e,o.value=0):(o.value=e,r.value=0)}}),{classes:n,containerStyle:a,itemStyle:i}}const Oy=Object(c["b"])({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:Object(c["c"])([String,Object,Array]),default:""},style:{type:Object(c["c"])([String,Array,Object]),default:""},alignment:{type:Object(c["c"])(String),default:"center"},prefixCls:{type:String},spacer:{type:Object(c["c"])([Object,String,Number,Array]),default:null,validator:e=>Object(u["isVNode"])(e)||Object(h["d"])(e)||Object(te["isString"])(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:re["a"],validator:e=>Object(h["d"])(e)||Object(te["isArray"])(e)&&2===e.length&&Ht()(e).call(e,h["d"])}}),My=Object(u["defineComponent"])({name:"ElSpace",props:Oy,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:o}=yy(e);function a(t,n="",r=[]){const{prefixCls:i}=e;return Y()(t).call(t,(e,t)=>{var s;Object(T["e"])(e)?Object(te["isArray"])(e.children)&&Y()(s=e.children).call(s,(e,t)=>{Object(T["e"])(e)&&Object(te["isArray"])(e.children)?a(e.children,n+t+"-",r):Object(u["isVNode"])(e)&&(null===e||void 0===e?void 0:e.type)===u["Comment"]?r.push(e):r.push(Object(u["createVNode"])(_y,{style:o.value,prefixCls:i,key:"nested-"+(n+t)},{default:()=>[e]},T["a"].PROPS|T["a"].STYLE,["style","prefixCls"]))}):Object(T["f"])(e)&&r.push(Object(u["createVNode"])(_y,{style:o.value,prefixCls:i,key:"LoopKey"+(n+t)},{default:()=>[e]},T["a"].PROPS|T["a"].STYLE,["style","prefixCls"]))}),r}return()=>{var i;const{spacer:s,direction:c}=e,l=Object(u["renderSlot"])(t,"default",{key:0},()=>[]);if(0===(null!==(i=l.children)&&void 0!==i?i:[]).length)return null;if(Object(te["isArray"])(l.children)){let e=a(l.children);if(s){const t=e.length-1;e=fa()(e).call(e,(e,n,r)=>{const a=[...e,n];return r!==t&&a.push(Object(u["createVNode"])("span",{style:[o.value,"vertical"===c?"width: 100%":null],key:r},[Object(u["isVNode"])(s)?s:Object(u["createTextVNode"])(s,T["a"].TEXT)],T["a"].STYLE)),a},[])}return Object(u["createVNode"])("div",{class:n.value,style:r.value},e,T["a"].STYLE|T["a"].CLASS)}return l.children}}}),ky=Object(r["a"])(My),Cy=Object(c["b"])({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),wy={[o["a"]]:(e,t)=>{var n;return Ht()(n=[e,t]).call(n,h["d"])}},Sy="ElSteps";var Ty=Object(u["defineComponent"])({name:"ElSteps",__name:"steps",props:Cy,emits:wy,setup(e,{emit:t}){const n=e,r=t,a=Object(g["d"])("steps"),{children:i,addChild:s,removeChild:c,ChildrenSorter:l}=Ri(Object(u["getCurrentInstance"])(),"ElStep");return Object(u["watch"])(i,()=>{var e;Y()(e=i.value).call(e,(e,t)=>{e.setIndex(t)})}),Object(u["provide"])(Sy,{props:n,steps:i,addStep:s,removeStep:c}),Object(u["watch"])(()=>n.active,(e,t)=>{r(o["a"],e,t)}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(a).b(),Object(u["unref"])(a).m(e.simple?"simple":e.direction)])},[Object(u["renderSlot"])(t.$slots,"default"),Object(u["createVNode"])(Object(u["unref"])(l))],2))}}),Iy=Ty;const Ey=Object(c["b"])({title:{type:String,default:""},icon:{type:S["e"]},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}});var jy=Object(u["defineComponent"])({name:"ElStep",__name:"item",props:Ey,setup(e){const t=e,n=Object(g["d"])("step"),r=Object(u["ref"])(-1),o=Object(u["ref"])({}),a=Object(u["ref"])(""),i=Object(u["inject"])(Sy),s=Object(u["getCurrentInstance"])();let c=0,l=0;Object(u["onMounted"])(()=>{Object(u["watch"])([()=>i.props.active,()=>i.props.processStatus,()=>i.props.finishStatus],([e],[t])=>{l=t||0,c=e-l,S(e)},{immediate:!0})});const d=Object(u["computed"])(()=>t.status||a.value),p=Object(u["computed"])(()=>{const e=i.steps.value[r.value-1];return e?e.internalStatus.value:"wait"}),f=Object(u["computed"])(()=>i.props.alignCenter),m=Object(u["computed"])(()=>"vertical"===i.props.direction),v=Object(u["computed"])(()=>i.props.simple),_=Object(u["computed"])(()=>i.steps.value.length),b=Object(u["computed"])(()=>{var e;return(null===(e=i.steps.value[_.value-1])||void 0===e?void 0:e.uid)===s.uid}),y=Object(u["computed"])(()=>v.value?"":i.props.space),O=Object(u["computed"])(()=>[n.b(),n.is(v.value?"simple":i.props.direction),n.is("flex",b.value&&!y.value&&!f.value),n.is("center",f.value&&!m.value&&!v.value)]),M=Object(u["computed"])(()=>{const e={flexBasis:Object(h["d"])(y.value)?y.value+"px":y.value?y.value:100/(_.value-(f.value?0:1))+"%"};return m.value||b.value&&(e.maxWidth=100/_.value+"%"),e}),C=e=>{r.value=e},w=e=>{const t="wait"===e,n={transitionDelay:(1===Math.abs(c)?0:c>0?150*(r.value+1-l):150*-(r.value+1-i.props.active))+"ms"},a=e===i.props.processStatus||t?0:100;n.borderWidth=a&&!v.value?"1px":0,n["vertical"===i.props.direction?"height":"width"]=a+"%",o.value=n},S=e=>{e>r.value?a.value=i.props.finishStatus:e===r.value&&"error"!==p.value?a.value=i.props.processStatus:a.value="wait";const t=i.steps.value[r.value-1];t&&t.calcProgress(a.value)},T={uid:s.uid,getVnode:()=>s.vnode,currentStatus:d,internalStatus:a,setIndex:C,calcProgress:w};return i.addStep(T),Object(u["onBeforeUnmount"])(()=>{i.removeStep(T)}),(t,a)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{style:Object(u["normalizeStyle"])(M.value),class:Object(u["normalizeClass"])(O.value)},[Object(u["createCommentVNode"])(" icon & line "),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("head"),Object(u["unref"])(n).is(d.value)])},[v.value?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("line"))},[Object(u["createElementVNode"])("i",{class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("line-inner")),style:Object(u["normalizeStyle"])(o.value)},null,6)],2)),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("icon"),Object(u["unref"])(n).is(e.icon||t.$slots.icon?"icon":"text")])},[Object(u["renderSlot"])(t.$slots,"icon",{},()=>[e.icon?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("icon-inner"))},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.icon)))]),_:1},8,["class"])):"success"===d.value?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:1,class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("icon-inner"),Object(u["unref"])(n).is("status")])},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Check"]))]),_:1},8,["class"])):"error"===d.value?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:2,class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("icon-inner"),Object(u["unref"])(n).is("status")])},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Close"]))]),_:1},8,["class"])):v.value?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:3,class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("icon-inner"))},Object(u["toDisplayString"])(r.value+1),3))])],2)],2),Object(u["createCommentVNode"])(" title & description "),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("main"))},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("title"),Object(u["unref"])(n).is(d.value)])},[Object(u["renderSlot"])(t.$slots,"title",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.title),1)])],2),v.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("arrow"))},null,2)):(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("description"),Object(u["unref"])(n).is(d.value)])},[Object(u["renderSlot"])(t.$slots,"description",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.description),1)])],2))],2)],6))}}),Dy=jy;const Ly=Object(r["a"])(Iy,{Step:Dy}),Ay=Object(r["d"])(Dy);var Ny=n("5a89");const Ry=Object(c["b"])({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:Ny["a"]},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:S["e"]},activeActionIcon:{type:S["e"]},activeIcon:{type:S["e"]},inactiveIcon:{type:S["e"]},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:Object(c["c"])(Function)},id:String,tabindex:{type:[String,Number]},...Object(st["a"])(["ariaLabel"])}),xy={[o["c"]]:e=>Object(h["a"])(e)||Object(te["isString"])(e)||Object(h["d"])(e),[o["a"]]:e=>Object(h["a"])(e)||Object(te["isString"])(e)||Object(h["d"])(e),[o["b"]]:e=>Object(h["a"])(e)||Object(te["isString"])(e)||Object(h["d"])(e)},Py=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],Uy=["aria-hidden"],Vy={key:1},By={key:1},Fy=["aria-hidden"],Gy="ElSwitch";var Hy=Object(u["defineComponent"])({name:Gy,__name:"switch",props:Ry,emits:xy,setup(e,{expose:t,emit:n}){var r;const s=e,c=n,{formItem:l}=Object(Hr["a"])(),d=Object(ce["b"])(),p=Object(g["d"])("switch"),{inputId:f}=Object(Hr["b"])(s,{formItemContext:l}),m=Object(ce["a"])(Object(u["computed"])(()=>{if(s.loading)return!0})),v=Object(u["ref"])(!1!==s.modelValue),_=Object(u["shallowRef"])(),b=Object(u["computed"])(()=>[p.b(),p.m(d.value),p.is("disabled",m.value),p.is("checked",w.value)]),y=Object(u["computed"])(()=>[p.e("label"),p.em("label","left"),p.is("active",!w.value)]),O=Object(u["computed"])(()=>[p.e("label"),p.em("label","right"),p.is("active",w.value)]),M=Object(u["computed"])(()=>({width:Object(i["b"])(s.width)}));Object(u["watch"])(()=>s.modelValue,()=>{v.value=!0});const C=Object(u["computed"])(()=>!!v.value&&s.modelValue),w=Object(u["computed"])(()=>C.value===s.activeValue);ue()(r=[s.activeValue,s.inactiveValue]).call(r,C.value)||(c(o["c"],s.inactiveValue),c(o["a"],s.inactiveValue),c(o["b"],s.inactiveValue)),Object(u["watch"])(w,e=>{var t;_.value.checked=e,s.validateEvent&&(null===l||void 0===l||null===(t=l.validate)||void 0===t||t.call(l,"change").catch(e=>Object(a["a"])(e)))});const S=()=>{const e=w.value?s.inactiveValue:s.activeValue;c(o["c"],e),c(o["a"],e),c(o["b"],e),Object(u["nextTick"])(()=>{_.value.checked=w.value})},T=()=>{var e;if(m.value)return;const{beforeChange:t}=s;if(!t)return void S();const n=t();ue()(e=[Object(te["isPromise"])(n),Object(h["a"])(n)]).call(e,!0)||Object(a["b"])(Gy,"beforeChange must return type `Promise<boolean>` or `boolean`"),Object(te["isPromise"])(n)?n.then(e=>{e&&S()}).catch(e=>{Object(a["a"])(Gy,"some error occurred: "+e)}):n&&S()},I=()=>{var e,t;null===(e=_.value)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e)};return Object(u["onMounted"])(()=>{_.value.checked=w.value}),t({focus:I,checked:w}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(b.value),onClick:Object(u["withModifiers"])(T,["prevent"])},[Object(u["createElementVNode"])("input",{id:Object(u["unref"])(f),ref_key:"input",ref:_,class:Object(u["normalizeClass"])(Object(u["unref"])(p).e("input")),type:"checkbox",role:"switch","aria-checked":w.value,"aria-disabled":Object(u["unref"])(m),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:Object(u["unref"])(m),tabindex:e.tabindex,onChange:S,onKeydown:Object(u["withKeys"])(T,["enter"])},null,42,Py),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText||t.$slots.inactive)?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:0,class:Object(u["normalizeClass"])(y.value)},[Object(u["renderSlot"])(t.$slots,"inactive",{},()=>[e.inactiveIcon?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.inactiveIcon)))]),_:1})):Object(u["createCommentVNode"])("v-if",!0),!e.inactiveIcon&&e.inactiveText?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:1,"aria-hidden":w.value},Object(u["toDisplayString"])(e.inactiveText),9,Uy)):Object(u["createCommentVNode"])("v-if",!0)])],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(p).e("core")),style:Object(u["normalizeStyle"])(M.value)},[e.inlinePrompt?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(p).e("inner"))},[w.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(p).e("inner-wrapper"))},[Object(u["renderSlot"])(t.$slots,"active",{},()=>[e.activeIcon?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.activeIcon)))]),_:1})):Object(u["createCommentVNode"])("v-if",!0),!e.activeIcon&&e.activeText?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",By,Object(u["toDisplayString"])(e.activeText),1)):Object(u["createCommentVNode"])("v-if",!0)])],2)):(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(p).e("inner-wrapper"))},[Object(u["renderSlot"])(t.$slots,"inactive",{},()=>[e.inactiveIcon?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.inactiveIcon)))]),_:1})):Object(u["createCommentVNode"])("v-if",!0),!e.inactiveIcon&&e.inactiveText?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",Vy,Object(u["toDisplayString"])(e.inactiveText),1)):Object(u["createCommentVNode"])("v-if",!0)])],2))],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(p).e("action"))},[e.loading?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(p).is("loading"))},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Loading"]))]),_:1},8,["class"])):w.value?Object(u["renderSlot"])(t.$slots,"active-action",{key:1},()=>[e.activeActionIcon?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.activeActionIcon)))]),_:1})):Object(u["createCommentVNode"])("v-if",!0)]):w.value?Object(u["createCommentVNode"])("v-if",!0):Object(u["renderSlot"])(t.$slots,"inactive-action",{key:2},()=>[e.inactiveActionIcon?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.inactiveActionIcon)))]),_:1})):Object(u["createCommentVNode"])("v-if",!0)])],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText||t.$slots.active)?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:1,class:Object(u["normalizeClass"])(O.value)},[Object(u["renderSlot"])(t.$slots,"active",{},()=>[e.activeIcon?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.activeIcon)))]),_:1})):Object(u["createCommentVNode"])("v-if",!0),!e.activeIcon&&e.activeText?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:1,"aria-hidden":!w.value},Object(u["toDisplayString"])(e.activeText),9,Fy)):Object(u["createCommentVNode"])("v-if",!0)])],2)):Object(u["createCommentVNode"])("v-if",!0)],2))}}),Yy=Hy;const zy=Object(r["a"])(Yy);var qy=n("0348"),Wy=n.n(qy),Ky=n("0512"),$y=n.n(Ky);const Jy="_Mousewheel",Xy=function(e,t){if(e&&e.addEventListener){Qy(e);const n=function(e){const n=$y()(e);t&&Wy()(t,this,[e,n])};e[Jy]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},Qy=e=>{var t;null!==(t=e[Jy])&&void 0!==t&&t.wheelHandler&&(e.removeEventListener("wheel",e[Jy].wheelHandler),e[Jy]=null)},Zy={beforeMount(e,t){Xy(e,t.value)},unmounted(e){Qy(e)},updated(e,t){t.value!==t.oldValue&&Xy(e,t.value)}},eO=function(e){var t;return null===(t=e.target)||void 0===t?void 0:t.closest("td")},tO=function(e,t,n,r,o){var a,i;if(!t&&!r&&(!o||Object(te["isArray"])(o)&&!o.length))return e;n=Object(te["isString"])(n)?"descending"===n?-1:1:n&&n<0?-1:1;const s=r?null:function(n,r){return o?Object(ne["flatMap"])(Object(ne["castArray"])(o),t=>Object(te["isString"])(t)?Object(ne["get"])(n,t):t(n,r,e)):("$key"!==t&&Object(te["isObject"])(n)&&"$value"in n&&(n=n.$value),[Object(te["isObject"])(n)?t?Object(ne["get"])(n,t):null:n])},c=function(e,t){if(r)return r(e.value,t.value);for(let r=0,l=null!==(n=null===(o=e.key)||void 0===o?void 0:o.length)&&void 0!==n?n:0;r<l;r++){var n,o,a,i,s,c;if((null===(a=e.key)||void 0===a?void 0:a[r])<(null===(i=t.key)||void 0===i?void 0:i[r]))return-1;if((null===(s=e.key)||void 0===s?void 0:s[r])>(null===(c=t.key)||void 0===c?void 0:c[r]))return 1}return 0};return J()(a=Ff()(i=J()(e).call(e,(e,t)=>({value:e,index:t,key:s?s(e,t):null}))).call(i,(e,t)=>{let r=c(e,t);return r||(r=e.index-t.index),r*+n})).call(a,e=>e.value)},nO=function(e,t){var n;let r=null;return Y()(n=e.columns).call(n,e=>{e.id===t&&(r=e)}),r},rO=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const o=e.columns[r];if(o.columnKey===t){n=o;break}}return n||Object(a["b"])("ElTable","No column matching with column-key: "+t),n},oO=function(e,t,n){const r=(t.className||"").match(new RegExp(n+"-table_[^\\s]+","gm"));return r?nO(e,r[0]):null},aO=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(Object(te["isString"])(t)){if(!ue()(t).call(t,"."))return""+e[t];const n=t.split(".");let r=e;for(const e of n)r=r[e];return""+r}return Object(te["isFunction"])(t)?t.call(null,e):""},iO=function(e,t,n=!1,r="children"){const o=e||[],a={};return Y()(o).call(o,(e,o)=>{if(a[aO(e,t)]={row:e,index:o},n){const n=e[r];Object(te["isArray"])(n)&&$t()(a,iO(n,t,!0,r))}}),a};function sO(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(Object(te["hasOwn"])(t,r)){const e=t[r];Object(h["g"])(e)||(n[r]=e)}return n}function cO(e){return""===e||Object(h["g"])(e)||(e=ke()(e,10),Di()(e)&&(e="")),e}function lO(e){return""===e||Object(h["g"])(e)||(e=cO(e),Di()(e)&&(e=80)),e}function uO(e){return Object(h["d"])(e)?e:Object(te["isString"])(e)?/^\d+(?:px)?$/.test(e)?ke()(e,10):e:null}function dO(...e){return 0===e.length?e=>e:1===e.length?e[0]:fa()(e).call(e,(e,t)=>(...n)=>e(t(...n)))}function pO(e,t,n,r,o,a,i){var s;let c=null!==a&&void 0!==a?a:0,l=!1;const u=()=>{if(!i)return B()(e).call(e,t);const n=aO(t,i);return ya()(e).call(e,e=>aO(e,i)===n)},d=u(),p=-1!==d,f=null===o||void 0===o?void 0:o.call(null,t,c),m=n=>{"add"===n?e.push(t):U()(e).call(e,d,1),l=!0},v=e=>{let t=0;const n=(null===r||void 0===r?void 0:r.children)&&e[r.children];return n&&Object(te["isArray"])(n)&&(t+=n.length,Y()(n).call(n,e=>{t+=v(e)})),t};return o&&!f||(Object(h["a"])(n)?n&&!p?m("add"):!n&&p&&m("remove"):m(p?"remove":"add")),null!==r&&void 0!==r&&r.checkStrictly||null===r||void 0===r||!r.children||!Object(te["isArray"])(t[r.children])||Y()(s=t[r.children]).call(s,t=>{const a=pO(e,t,null!==n&&void 0!==n?n:!p,r,o,c+1,i);c+=v(t)+1,a&&(l=a)}),l}function fO(e,t,n="children",r="hasChildren",o=!1){const a=e=>!(Object(te["isArray"])(e)&&e.length);function i(e,s,c){t(e,s,c),Y()(s).call(s,e=>{if(e[r]&&o)return void t(e,null,c+1);const s=e[n];a(s)||i(e,s,c+1)})}Y()(e).call(e,e=>{if(e[r]&&o)return void t(e,null,0);const s=e[n];a(s)||i(e,s,0)})}const hO=(e,t,n,r)=>{const o={strategy:"fixed",...e.popperOptions},a=Object(te["isFunction"])(null===r||void 0===r?void 0:r.tooltipFormatter)?r.tooltipFormatter({row:n,column:r,cellValue:Object(I["b"])(n,r.property).value}):void 0;return Object(u["isVNode"])(a)?{slotContent:a,content:null,...e,popperOptions:o}:{slotContent:null,content:null!==a&&void 0!==a?a:t,...e,popperOptions:o}};let mO=null;function vO(e,t,n,r,o,a){var i,s;const c=hO(e,t,n,r),l={...c,slotContent:void 0};if((null===(i=mO)||void 0===i?void 0:i.trigger)===o){var d;const e=null===(d=mO.vm)||void 0===d?void 0:d.component;return Object(ne["merge"])(null===e||void 0===e?void 0:e.props,l),void(e&&c.slotContent&&(e.slots.content=()=>[c.slotContent]))}null===(s=mO)||void 0===s||s();const p=null===a||void 0===a?void 0:a.refs.tableWrapper,f=null===p||void 0===p?void 0:p.dataset.prefix,h=Object(u["createVNode"])(vn,{virtualTriggering:!0,virtualRef:o,appendTo:p,placement:"top",transition:"none",offset:0,hideAfter:0,...l},c.slotContent?{content:()=>c.slotContent}:void 0);h.appContext={...a.appContext,...a};const m=document.createElement("div");Object(u["render"])(h,m),h.component.exposed.onOpen();const v=null===p||void 0===p?void 0:p.querySelector(`.${f}-scrollbar__wrap`);mO=()=>{var e;null!==(e=h.component)&&void 0!==e&&null!==(e=e.exposed)&&void 0!==e&&e.onClose&&h.component.exposed.onClose(),Object(u["render"])(null,m);const t=mO;null===v||void 0===v||v.removeEventListener("scroll",t),t.trigger=void 0,t.vm=void 0,mO=null},mO.trigger=null!==o&&void 0!==o?o:void 0,mO.vm=h,null===v||void 0===v||v.addEventListener("scroll",mO)}function gO(e){return e.children?Object(ne["flatMap"])(e.children,gO):[e]}function _O(e,t){return e+t.colSpan}const bO=(e,t,n,r)=>{let o=0,a=e;const i=n.states.columns.value;if(r){var s;const t=gO(r[e]);o=fa()(s=It()(i).call(i,0,B()(i).call(i,t[0]))).call(s,_O,0),a=o+fa()(t).call(t,_O,0)-1}else o=e;let c;switch(t){case"left":a<n.states.fixedLeafColumnsLength.value&&(c="left");break;case"right":o>=i.length-n.states.rightFixedLeafColumnsLength.value&&(c="right");break;default:a<n.states.fixedLeafColumnsLength.value?c="left":o>=i.length-n.states.rightFixedLeafColumnsLength.value&&(c="right")}return c?{direction:c,start:o,after:a}:{}},yO=(e,t,n,r,o,a=0)=>{const i=[],{direction:s,start:c,after:l}=bO(t,n,r,o);if(s){const t="left"===s;i.push(`${e}-fixed-column--${s}`),t&&l+a===r.states.fixedLeafColumnsLength.value-1?i.push("is-last-column"):t||c-a!==r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value||i.push("is-first-column")}return i};function OO(e,t){return e+(Object(ne["isNull"])(t.realWidth)||Di()(t.realWidth)?Number(t.width):t.realWidth)}const MO=(e,t,n,r)=>{var o,a,i;const{direction:s,start:c=0,after:l=0}=bO(e,t,n,r);if(!s)return;const u={},d="left"===s,p=n.states.columns.value;return d?u.left=fa()(o=It()(p).call(p,0,c)).call(o,OO,0):u.right=fa()(a=nh()(i=It()(p).call(p,l+1)).call(i)).call(a,OO,0),u},kO=(e,t)=>{e&&(Di()(e[t])||(e[t]=e[t]+"px"))};function CO(e){return w()(e).call(e,e=>!Object(u["isVNode"])(e)||e.type!==u["Comment"]&&!(e.type===u["Fragment"]&&!CO(e.children)))?e:null}function wO(e){const t=Object(u["getCurrentInstance"])(),n=Object(u["ref"])(!1),r=Object(u["ref"])([]),o=(e,n)=>{var r;const o=t.store.states.rowExpandable.value;return null===(r=null===o||void 0===o?void 0:o(e,n))||void 0===r||r},a=()=>{const a=e.data.value||[],i=e.rowKey.value;if(n.value)r.value=t.store.states.rowExpandable.value?K()(a).call(a,o):It()(a).call(a);else if(i){const e=iO(r.value,i);r.value=K()(a).call(a,(t,n)=>!!e[aO(t,i)]&&o(t,n))}else r.value=[]},i=(n,a)=>{var i,s;const c=B()(i=e.data.value||[]).call(i,n);c>-1&&!o(n,c)||pO(r.value,n,a,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",n,It()(s=r.value).call(s))},s=n=>{t.store.assertRowKey();const a=e.data.value||[],i=e.rowKey.value,s=iO(a,i);r.value=fa()(n).call(n,(e,t)=>{const n=s[t];return n&&o(n.row,n.index)&&e.push(n.row),e},[])},c=t=>{var n;const o=e.rowKey.value;return o?!!iO(r.value,o)[aO(t,o)]:ue()(n=r.value).call(n,t)};return{updateExpandRows:a,toggleRowExpansion:i,setExpandRowKeys:s,isRowExpanded:c,states:{expandRows:r,defaultExpandAll:n}}}function SO(e){const t=Object(u["getCurrentInstance"])(),n=Object(u["ref"])(null),r=Object(u["ref"])(null),o=e=>{t.store.assertRowKey(),n.value=e,i(e)},a=()=>{n.value=null},i=n=>{var o,a;const{data:i,rowKey:s}=e,c=r.value;let l=null;s.value&&(l=null!==(o=La()(a=Object(u["unref"])(i)||[]).call(a,e=>aO(e,s.value)===n))&&void 0!==o?o:null),r.value=null!==l&&void 0!==l?l:null,t.emit("current-change",r.value,c)},s=e=>{const n=r.value;if(e&&e!==n)return r.value=e,void t.emit("current-change",r.value,n);!e&&n&&(r.value=null,t.emit("current-change",null,n))},c=()=>{const o=e.rowKey.value,s=e.data.value||[],c=r.value;c&&!ue()(s).call(s,c)?o?i(aO(c,o)):(r.value=null,t.emit("current-change",null,c)):n.value&&(i(n.value),a())};return{setCurrentRowKey:o,restoreCurrentRowKey:a,setCurrentRowByKey:i,updateCurrentRow:s,updateCurrentRowData:c,states:{_currentRowKey:n,currentRow:r}}}function TO(e){const t=Object(u["ref"])([]),n=Object(u["ref"])({}),r=Object(u["ref"])(16),o=Object(u["ref"])(!1),a=Object(u["ref"])({}),i=Object(u["ref"])("hasChildren"),s=Object(u["ref"])("children"),c=Object(u["ref"])(!1),l=Object(u["getCurrentInstance"])(),d=Object(u["computed"])(()=>e.rowKey.value?f(e.data.value||[]):{}),p=Object(u["computed"])(()=>{const t=e.rowKey.value,n=Q()(a.value),r={};return n.length?(Y()(n).call(n,e=>{if(a.value[e].length){var n;const o={children:[]};Y()(n=a.value[e]).call(n,e=>{const n=aO(e,t);o.children.push(n),e[i.value]&&!r[n]&&(r[n]={children:[]})}),r[e]=o}}),r):r}),f=t=>{const n=e.rowKey.value,r={};return fO(t,(e,t,a)=>{const i=aO(e,n);Object(te["isArray"])(t)?r[i]={children:J()(t).call(t,e=>aO(e,n)),level:a}:o.value&&(r[i]={children:[],lazy:!0,level:a})},s.value,i.value,o.value),r},m=(e=!1,r)=>{var a,i;r||(r=null===(a=l.store)||void 0===a?void 0:a.states.defaultExpandAll.value);const s=d.value,c=p.value,f=Q()(s),h={};if(f.length){const a=Object(u["unref"])(n),i=[],l=(n,o)=>{var a;if(e)return t.value?r||ue()(a=t.value).call(a,o):!!(r||null!==n&&void 0!==n&&n.expanded);{var i;const e=r||t.value&&ue()(i=t.value).call(i,o);return!!(null!==n&&void 0!==n&&n.expanded||e)}};Y()(f).call(f,e=>{const t=a[e],n={...s[e]};if(n.expanded=l(t,e),n.lazy){const{loaded:r=!1,loading:o=!1}=t||{};n.loaded=!!r,n.loading=!!o,i.push(e)}h[e]=n});const d=Q()(c);o.value&&d.length&&i.length&&Y()(d).call(d,e=>{const t=a[e],n=c[e].children;if(ue()(i).call(i,e)){var r;if(0!==(null===(r=h[e].children)||void 0===r?void 0:r.length))throw new Error("[ElTable]children must be an empty array.");h[e].children=n}else{const{loaded:r=!1,loading:o=!1}=t||{};h[e]={lazy:!0,loaded:!!r,loading:!!o,expanded:l(t,e),children:n,level:void 0}}})}n.value=h,null===(i=l.store)||void 0===i||i.updateTableScrollY()};Object(u["watch"])(()=>t.value,()=>{m(!0)},{deep:!0}),Object(u["watch"])(()=>d.value,()=>{m()}),Object(u["watch"])(()=>p.value,()=>{m()});const v=e=>{t.value=e,m()},g=e=>o.value&&e&&"loaded"in e&&!e.loaded,_=(t,r)=>{l.store.assertRowKey();const o=e.rowKey.value,a=aO(t,o),i=a&&n.value[a];if(a&&i&&"expanded"in i){const e=i.expanded;r=Object(h["g"])(r)?!i.expanded:r,n.value[a].expanded=r,e!==r&&l.emit("expand-change",t,r),r&&g(i)&&y(t,a,i),l.store.updateTableScrollY()}},b=t=>{l.store.assertRowKey();const r=e.rowKey.value,o=aO(t,r),a=n.value[o];g(a)?y(t,o,a):_(t,void 0)},y=(e,t,r)=>{const{load:o}=l.props;o&&!n.value[t].loaded&&(n.value[t].loading=!0,o(e,r,r=>{if(!Object(te["isArray"])(r))throw new TypeError("[ElTable] data must be an array");n.value[t].loading=!1,n.value[t].loaded=!0,n.value[t].expanded=!0,r.length&&(a.value[t]=r),l.emit("expand-change",e,!0)}))},O=(e,t)=>{const{lazy:n,rowKey:r}=l.props;if(n){if(!r)throw new Error("[Table] rowKey is required in updateKeyChild");a.value[e]&&(a.value[e]=t)}};return{loadData:y,loadOrToggle:b,toggleTreeExpansion:_,updateTreeExpandKeys:v,updateTreeData:m,updateKeyChildren:O,normalize:f,states:{expandRowKeys:t,treeData:n,indent:r,lazy:o,lazyTreeNodeMap:a,lazyColumnIdentifier:i,childrenColumnName:s,checkStrictly:c}}}const IO=(e,t)=>{const n=t.sortingColumn;return!n||Object(te["isString"])(n.sortable)?e:tO(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},EO=e=>{const t=[];return Y()(e).call(e,e=>{e.children&&e.children.length>0?t.push.apply(t,EO(e.children)):t.push(e)}),t};function jO(){var e;const t=Object(u["getCurrentInstance"])(),{size:n}=Object(u["toRefs"])(null===(e=t.proxy)||void 0===e?void 0:e.$props),r=Object(u["ref"])(null),o=Object(u["ref"])([]),a=Object(u["ref"])([]),i=Object(u["ref"])(!1),s=Object(u["ref"])([]),c=Object(u["ref"])([]),l=Object(u["ref"])([]),d=Object(u["ref"])([]),p=Object(u["ref"])([]),f=Object(u["ref"])([]),h=Object(u["ref"])([]),m=Object(u["ref"])([]),v=[],g=Object(u["ref"])(0),_=Object(u["ref"])(0),b=Object(u["ref"])(0),y=Object(u["ref"])(!1),O=Object(u["ref"])([]),M=Object(u["ref"])(!1),k=Object(u["ref"])(!1),C=Object(u["ref"])(null),S=Object(u["ref"])(null),T=Object(u["ref"])({}),I=Object(u["ref"])(null),E=Object(u["ref"])(null),j=Object(u["ref"])(null),D=Object(u["ref"])(null),L=Object(u["ref"])(null),A=Object(u["computed"])(()=>r.value?iO(O.value,r.value):void 0);Object(u["watch"])(o,()=>{var e;t.state&&(P(!1),"auto"===t.props.tableLayout&&(null===(e=t.refs.tableHeaderRef)||void 0===e||e.updateFixedColumnStyle()))},{deep:!0});const N=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},R=e=>{var t;null===(t=e.children)||void 0===t||Y()(t).call(t,t=>{t.fixed=e.fixed,R(t)})},x=()=>{var e,t,n,r,o,a,u,f,h,m;Y()(e=s.value).call(e,e=>{R(e)}),d.value=K()(t=s.value).call(t,e=>{var t;return ue()(t=[!0,"left"]).call(t,e.fixed)});const v=La()(n=s.value).call(n,e=>"selection"===e.type);let y;var O;v&&"right"!==v.fixed&&!ue()(r=d.value).call(r,v)&&(0===B()(O=s.value).call(O,v)&&d.value.length&&(d.value.unshift(v),y=!0));p.value=K()(o=s.value).call(o,e=>"right"===e.fixed);const M=K()(a=s.value).call(a,e=>(!y||"selection"!==e.type)&&!e.fixed);c.value=No()(u=No()(f=Pn()(d.value)).call(f,M)).call(u,p.value);const k=EO(M),C=EO(d.value),w=EO(p.value);g.value=k.length,_.value=C.length,b.value=w.length,l.value=No()(h=No()(m=Pn()(C)).call(m,k)).call(h,w),i.value=d.value.length>0||p.value.length>0},P=(e,n=!1)=>{e&&x(),n?t.state.doLayout():t.state.debouncedUpdateLayout()},U=e=>{var t;return A.value?!!A.value[aO(e,r.value)]:ue()(t=O.value).call(t,e)},V=()=>{y.value=!1;const e=O.value;O.value=[],e.length&&t.emit("selection-change",[])},F=()=>{var e;let n;if(r.value){var a;n=[];const e=null===t||void 0===t||null===(a=t.store)||void 0===a||null===(a=a.states)||void 0===a?void 0:a.childrenColumnName.value,i=iO(o.value,r.value,!0,e);for(const t in A.value)Object(te["hasOwn"])(A.value,t)&&!i[t]&&n.push(A.value[t].row)}else n=K()(e=O.value).call(e,e=>{var t;return!ue()(t=o.value).call(t,e)});if(n.length){var i;const e=K()(i=O.value).call(i,e=>!ue()(n).call(n,e));O.value=e,t.emit("selection-change",It()(e).call(e))}},G=()=>{var e;return It()(e=O.value||[]).call(e)},H=(e,n,a=!0,i=!1)=>{var s,c,l;const u={children:null===t||void 0===t||null===(s=t.store)||void 0===s||null===(s=s.states)||void 0===s?void 0:s.childrenColumnName.value,checkStrictly:null===t||void 0===t||null===(c=t.store)||void 0===c||null===(c=c.states)||void 0===c?void 0:c.checkStrictly.value};if(pO(O.value,e,n,u,i?void 0:C.value,B()(l=o.value).call(l,e),r.value)){var d;const n=It()(d=O.value||[]).call(d);a&&t.emit("select",n,e),t.emit("selection-change",n)}},z=()=>{var e,n,r,a;const i=k.value?!y.value:!(y.value||O.value.length);y.value=i;let s=!1,c=0;const l=null===t||void 0===t||null===(e=t.store)||void 0===e||null===(e=e.states)||void 0===e?void 0:e.rowKey.value,{childrenColumnName:u}=t.store.states,d={children:u.value,checkStrictly:!1};Y()(n=o.value).call(n,(e,t)=>{const n=t+c;pO(O.value,e,i,d,C.value,n,l)&&(s=!0),c+=W(aO(e,l))}),s&&t.emit("selection-change",O.value?It()(r=O.value).call(r):[]),t.emit("select-all",It()(a=O.value||[]).call(a))},q=()=>{var e;if(0===(null===(e=o.value)||void 0===e?void 0:e.length))return void(y.value=!1);const{childrenColumnName:n}=t.store.states;let r=0,a=0;const i=e=>{for(const o of e){var t;const e=C.value&&C.value.call(null,o,r);if(U(o))a++;else if(!C.value||e)return!1;if(r++,null!==(t=o[n.value])&&void 0!==t&&t.length&&!i(o[n.value]))return!1}return!0},s=i(o.value||[]);y.value=0!==a&&s},W=e=>{var n;if(!t||!t.store)return 0;const{treeData:r}=t.store.states;let o=0;const a=null===(n=r.value[e])||void 0===n?void 0:n.children;return a&&(o+=a.length,Y()(a).call(a,e=>{o+=W(e)})),o},$=(e,t)=>{var n;const r={};return Y()(n=Object(ne["castArray"])(e)).call(n,e=>{T.value[e.id]=t,r[e.columnKey||e.id]=t}),r},X=(e,t,n)=>{E.value&&E.value!==e&&(E.value.order=null),E.value=e,j.value=t,D.value=n},Z=()=>{var e;let t=Object(u["unref"])(a);Y()(e=Q()(T.value)).call(e,e=>{const n=T.value[e];if(!n||0===n.length)return;const r=nO({columns:l.value},e);r&&r.filterMethod&&(t=K()(t).call(t,e=>w()(n).call(n,t=>r.filterMethod.call(null,t,e,r))))}),I.value=t},ee=()=>{var e;o.value=IO(null!==(e=I.value)&&void 0!==e?e:[],{sortingColumn:E.value,sortProp:j.value,sortOrder:D.value})},re=e=>{var t;(null==(t=e)?void 0:K()(t))||Z(),ee()},oe=e=>{const{tableHeaderRef:n}=t.refs;if(!n)return;const r=$t()({},n.filterPanels),o=Q()(r);if(o.length)if(Object(te["isString"])(e)&&(e=[e]),Object(te["isArray"])(e)){const n=J()(e).call(e,e=>rO({columns:l.value},e));Y()(o).call(o,e=>{const t=La()(n).call(n,t=>t.id===e);t&&(t.filteredValue=[])}),t.store.commit("filterChange",{column:n,values:[],silent:!0,multi:!0})}else Y()(o).call(o,e=>{var t;const n=La()(t=l.value).call(t,t=>t.id===e);n&&(n.filteredValue=[])}),T.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},ae=()=>{E.value&&(X(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:ie,toggleRowExpansion:se,updateExpandRows:ce,states:le,isRowExpanded:de}=wO({data:o,rowKey:r}),{updateTreeExpandKeys:pe,toggleTreeExpansion:fe,updateTreeData:he,updateKeyChildren:me,loadOrToggle:ve,states:ge}=TO({data:o,rowKey:r}),{updateCurrentRowData:_e,updateCurrentRow:be,setCurrentRowKey:ye,states:Oe}=SO({data:o,rowKey:r}),Me=e=>{ie(e),pe(e)},ke=(e,t)=>{var n;w()(n=l.value).call(n,({type:e})=>"expand"===e)?se(e,t):fe(e,t)};return{assertRowKey:N,updateColumns:x,scheduleLayout:P,isSelected:U,clearSelection:V,cleanSelection:F,getSelectionRows:G,toggleRowSelection:H,_toggleAllSelection:z,toggleAllSelection:null,updateAllSelected:q,updateFilters:$,updateCurrentRow:be,updateSort:X,execFilter:Z,execSort:ee,execQuery:re,clearFilter:oe,clearSort:ae,toggleRowExpansion:se,setExpandRowKeysAdapter:Me,setCurrentRowKey:ye,toggleRowExpansionAdapter:ke,isRowExpanded:de,updateExpandRows:ce,updateCurrentRowData:_e,loadOrToggle:ve,updateTreeData:he,updateKeyChildren:me,states:{tableSize:n,rowKey:r,data:o,_data:a,isComplex:i,_columns:s,originColumns:c,columns:l,fixedColumns:d,rightFixedColumns:p,leafColumns:f,fixedLeafColumns:h,rightFixedLeafColumns:m,updateOrderFns:v,leafColumnsLength:g,fixedLeafColumnsLength:_,rightFixedLeafColumnsLength:b,isAllSelected:y,selection:O,reserveSelection:M,selectOnIndeterminate:k,selectable:C,rowExpandable:S,filters:T,filteredData:I,sortingColumn:E,sortProp:j,sortOrder:D,hoverRow:L,...le,...ge,...Oe}}}function DO(e,t){return J()(e).call(e,e=>{var n;return e.id===t.id?t:(null!==(n=e.children)&&void 0!==n&&n.length&&(e.children=DO(e.children,t)),e)})}function LO(e){Y()(e).call(e,e=>{var t,n;e.no=null===(t=e.getColumnIndex)||void 0===t?void 0:t.call(e),null!==(n=e.children)&&void 0!==n&&n.length&&LO(e.children)}),Ff()(e).call(e,(e,t)=>e.no-t.no)}function AO(){const e=Object(u["getCurrentInstance"])(),t=jO(),n=Object(g["d"])("table"),{t:r}=Object(fr["b"])(),o={setData(t,n){const r=Object(u["unref"])(t._data)!==n;t.data.value=n,t._data.value=n,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),Object(u["unref"])(t.reserveSelection)?e.store.assertRowKey():r?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(t,n,r,o){const a=Object(u["unref"])(t._columns);let i=[];var s;r?(r&&!r.children&&(r.children=[]),null===(s=r.children)||void 0===s||s.push(n),i=DO(a,r)):(a.push(n),i=a);LO(i),t._columns.value=i,t.updateOrderFns.push(o),"selection"===n.type&&(t.selectable.value=n.selectable,t.reserveSelection.value=n.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(t,n){var r;(null===(r=n.getColumnIndex)||void 0===r?void 0:r.call(n))!==n.no&&(LO(t._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(t,n,r,o){var a,i;const s=Object(u["unref"])(t._columns)||[];if(r){var c,l;null===(c=r.children)||void 0===c||U()(c).call(c,ya()(l=r.children).call(l,e=>e.id===n.id),1),Object(u["nextTick"])(()=>{var e;0===(null===(e=r.children)||void 0===e?void 0:e.length)&&delete r.children}),t._columns.value=DO(s,r)}else{const e=B()(s).call(s,n);e>-1&&(U()(s).call(s,e,1),t._columns.value=s)}const d=B()(a=t.updateOrderFns).call(a,o);d>-1&&U()(i=t.updateOrderFns).call(i,d,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(t,n){const{prop:r,order:o,init:a}=n;if(r){var i;const n=La()(i=Object(u["unref"])(t.columns)).call(i,e=>e.property===r);n&&(n.order=o,e.store.updateSort(n,r,o),e.store.commit("changeSortCondition",{init:a}))}},changeSortCondition(t,n){const{sortingColumn:r,sortProp:o,sortOrder:a}=t,i=Object(u["unref"])(r),s=Object(u["unref"])(o),c=Object(u["unref"])(a);Object(ne["isNull"])(c)&&(t.sortingColumn.value=null,t.sortProp.value=null),e.store.execQuery({filter:!0}),n&&(n.silent||n.init)||e.emit("sort-change",{column:i,prop:s,order:c}),e.store.updateTableScrollY()},filterChange(t,n){const{column:r,values:o,silent:a}=n,i=e.store.updateFilters(r,o);e.store.execQuery(),a||e.emit("filter-change",i),e.store.updateTableScrollY()},toggleAllSelection(){var t,n;null===(t=(n=e.store).toggleAllSelection)||void 0===t||t.call(n)},rowSelectedChanged(t,n){e.store.toggleRowSelection(n),e.store.updateAllSelected()},setHoverRow(e,t){e.hoverRow.value=t},setCurrentRow(t,n){e.store.updateCurrentRow(n)}},a=function(t,...n){const r=e.store.mutations;if(!r[t])throw new Error("Action not found: "+t);r[t].apply(e,[e.store.states,...n])},i=function(){Object(u["nextTick"])(()=>e.layout.updateScrollY.apply(e.layout))};return{ns:n,t:r,...t,mutations:o,commit:a,updateTableScrollY:i}}const NO={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",rowExpandable:"rowExpandable",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"},["treeProps.checkStrictly"]:{key:"checkStrictly",default:!1}};function RO(e,t){var n;if(!e)throw new Error("Table is required.");const r=AO();return r.toggleAllSelection=Object(ne["debounce"])(r._toggleAllSelection,10),Y()(n=Q()(NO)).call(n,e=>{PO(UO(t,e),e,r)}),xO(r,t),r}function xO(e,t){var n;Y()(n=Q()(NO)).call(n,n=>{Object(u["watch"])(()=>UO(t,n),t=>{PO(t,n,e)})})}function PO(e,t,n){let r=e,o=NO[t];Object(te["isObject"])(o)&&(r=r||o.default,o=o.key),n.states[o].value=r}function UO(e,t){if(ue()(t).call(t,".")){const n=t.split(".");let r=e;return Y()(n).call(n,e=>{r=r[e]}),r}return e[t]}var VO=class{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=Object(u["ref"])(null),this.scrollX=Object(u["ref"])(!1),this.scrollY=Object(u["ref"])(!1),this.bodyWidth=Object(u["ref"])(null),this.fixedWidth=Object(u["ref"])(null),this.rightFixedWidth=Object(u["ref"])(null),this.gutterWidth=0;for(const t in e)Object(te["hasOwn"])(e,t)&&(Object(u["isRef"])(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const e=this.height.value;if(Object(ne["isNull"])(e))return!1;const t=this.table.refs.scrollBarRef;if(this.table.vnode.el&&null!==t&&void 0!==t&&t.wrapRef){let e=!0;const n=this.scrollY.value;return e=t.wrapRef.scrollHeight>t.wrapRef.clientHeight,this.scrollY.value=e,n!==e}return!1}setHeight(e,t="height"){if(!_["isClient"])return;const n=this.table.vnode.el;e=uO(e),this.height.value=Number(e),n||!e&&0!==e?n&&Object(h["d"])(e)?(n.style[t]=e+"px",this.updateElsHeight()):n&&Object(te["isString"])(e)&&(n.style[t]=e,this.updateElsHeight()):Object(u["nextTick"])(()=>this.setHeight(e,t))}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){var e;const t=[];return Y()(e=this.table.store.states.columns.value).call(e,e=>{e.isColumnGroup?t.push.apply(t,e.columns):t.push(e)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let t=e;while("DIV"!==t.tagName){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}updateColumnsWidth(){var e;if(!_["isClient"])return;const t=this.fit,n=null===(e=this.table.vnode.el)||void 0===e?void 0:e.clientWidth;let r=0;const o=this.getFlattenColumns(),a=K()(o).call(o,e=>!Object(h["d"])(e.width));if(Y()(o).call(o,e=>{Object(h["d"])(e.width)&&e.realWidth&&(e.realWidth=null)}),a.length>0&&t){if(Y()(o).call(o,e=>{r+=Number(e.width||e.minWidth||80)}),r<=n){this.scrollX.value=!1;const e=n-r;if(1===a.length)a[0].realWidth=Number(a[0].minWidth||80)+e;else{const t=e/fa()(a).call(a,(e,t)=>e+Number(t.minWidth||80),0);let n=0;Y()(a).call(a,(e,r)=>{if(0===r)return;const o=Math.floor(Number(e.minWidth||80)*t);n+=o,e.realWidth=Number(e.minWidth||80)+o}),a[0].realWidth=Number(a[0].minWidth||80)+e-n}}else this.scrollX.value=!0,Y()(a).call(a,e=>{e.realWidth=Number(e.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else Y()(o).call(o,e=>{e.width||e.minWidth?e.realWidth=Number(e.width||e.minWidth):e.realWidth=80,r+=e.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const i=this.store.states.fixedColumns.value;if(i.length>0){let e=0;Y()(i).call(i,t=>{e+=Number(t.realWidth||t.width)}),this.fixedWidth.value=e}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let e=0;Y()(s).call(s,t=>{e+=Number(t.realWidth||t.width)}),this.rightFixedWidth.value=e}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){var t,n;const r=B()(t=this.observers).call(t,e);-1!==r&&U()(n=this.observers).call(n,r,1)}notifyObservers(e){var t;Y()(t=this.observers).call(t,t=>{var n,r;switch(e){case"columns":null===(n=t.state)||void 0===n||n.onColumnsChange(this);break;case"scrollable":null===(r=t.state)||void 0===r||r.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}})}};const BO=xe()("ElTable"),FO=e=>{const t=[];return Y()(e).call(e,e=>{e.children?(t.push(e),t.push.apply(t,FO(e.children))):t.push(e)}),t},GO=e=>{var t;let n=1;const r=(e,t)=>{if(t&&(e.level=t.level+1,n<e.level&&(n=e.level)),e.children){var o;let t=0;Y()(o=e.children).call(o,n=>{r(n,e),t+=n.colSpan}),e.colSpan=t}else e.colSpan=1};Y()(e).call(e,e=>{e.level=1,r(e,void 0)});const o=[];for(let a=0;a<n;a++)o.push([]);return Y()(t=FO(e)).call(t,e=>{var t;e.children?(e.rowSpan=1,Y()(t=e.children).call(t,e=>e.isSubColumn=!0)):e.rowSpan=n-e.level+1;o[e.level-1].push(e)}),o};function HO(e){const t=Object(u["inject"])(BO),n=Object(u["computed"])(()=>GO(e.store.states.originColumns.value)),r=Object(u["computed"])(()=>{const e=n.value.length>1;return e&&t&&(t.state.isGroup.value=!0),e}),o=e=>{e.stopPropagation(),null===t||void 0===t||t.store.commit("toggleAllSelection")};return{isGroup:r,toggleAllSelection:o,columnRows:n}}var YO=Object(u["defineComponent"])({name:"ElTableFilterPanel",components:{ElCheckbox:ks,ElCheckboxGroup:ws,ElScrollbar:Rn,ElTooltip:vn,ElIcon:k["a"],ArrowDown:Fn["ArrowDown"],ArrowUp:Fn["ArrowUp"]},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:mt.appendTo},setup(e){const t=Object(u["getCurrentInstance"])(),{t:n}=Object(fr["b"])(),r=Object(g["d"])("table-filter"),o=null===t||void 0===t?void 0:t.parent;e.column&&!o.filterPanels.value[e.column.id]&&(o.filterPanels.value[e.column.id]=t);const a=Object(u["ref"])(null),i=Object(u["ref"])(null),s=Object(u["ref"])(0),c=Object(u["computed"])(()=>e.column&&e.column.filters),l=Object(u["computed"])(()=>e.column&&e.column.filterClassName?`${r.b()} ${e.column.filterClassName}`:r.b()),d=Object(u["computed"])({get:()=>{var t;return((null===(t=e.column)||void 0===t?void 0:t.filteredValue)||[])[0]},set:e=>{var t,n;p.value&&(Object(h["e"])(e)?U()(n=p.value).call(n,0,1):U()(t=p.value).call(t,0,1,e))}}),p=Object(u["computed"])({get(){return e.column&&e.column.filteredValue||[]},set(t){var n;e.column&&(null===(n=e.upDataColumn)||void 0===n||n.call(e,"filteredValue",t))}}),f=Object(u["computed"])(()=>!e.column||e.column.filterMultiple),m=e=>e.value===d.value,v=()=>{var e;null===(e=a.value)||void 0===e||e.onClose()},_=()=>{O(p.value),v()},b=()=>{p.value=[],O(p.value),v()},y=(e,t)=>{d.value=e,s.value=t,Object(h["e"])(e)?O([]):O(p.value),v()},O=t=>{var n,r;null===(n=e.store)||void 0===n||n.commit("filterChange",{column:e.column,values:t}),null===(r=e.store)||void 0===r||r.updateAllSelected()},M=()=>{var t,n;null===(t=i.value)||void 0===t||t.focus(),!f.value&&C(),e.column&&(null===(n=e.upDataColumn)||void 0===n||n.call(e,"filterOpened",!0))},k=()=>{var t;e.column&&(null===(t=e.upDataColumn)||void 0===t||t.call(e,"filterOpened",!1))},C=()=>{var e;if(Object(h["e"])(d))return void(s.value=0);const t=ya()(e=c.value||[]).call(e,e=>e.value===d.value);s.value=t>=0?t+1:0},w=e=>{var t;const n=Object(St["b"])(e),o=(c.value?c.value.length:0)+1;let a=s.value,l=!0;switch(n){case vt["a"].down:case vt["a"].right:a=(a+1)%o;break;case vt["a"].up:case vt["a"].left:a=(a-1+o)%o;break;case vt["a"].tab:v(),l=!1;break;case vt["a"].enter:case vt["a"].space:if(0===a)y(null,0);else{const e=(c.value||[])[a-1];e.value&&y(e.value,a)}break;default:l=!1;break}l&&e.preventDefault(),s.value=a,null===(t=i.value)||void 0===t||null===(t=t.querySelector(`.${r.e("list-item")}:nth-child(${a+1})`))||void 0===t||t.focus()};return{multiple:f,filterClassName:l,filteredValue:p,filterValue:d,filters:c,handleConfirm:_,handleReset:b,handleSelect:y,isPropAbsent:h["e"],isActive:m,t:n,ns:r,tooltipRef:a,rootRef:i,checkedIndex:s,handleShowTooltip:M,handleHideTooltip:k,handleKeydown:w}}});const zO=["disabled"],qO=["tabindex","aria-checked"],WO=["tabindex","aria-checked","onClick"],KO=["aria-label"];function $O(e,t,n,r,o,a){const i=Object(u["resolveComponent"])("el-checkbox"),s=Object(u["resolveComponent"])("el-checkbox-group"),c=Object(u["resolveComponent"])("el-scrollbar"),l=Object(u["resolveComponent"])("arrow-up"),d=Object(u["resolveComponent"])("arrow-down"),p=Object(u["resolveComponent"])("el-icon"),f=Object(u["resolveComponent"])("el-tooltip");return Object(u["openBlock"])(),Object(u["createBlock"])(f,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:Object(u["withCtx"])(()=>[e.multiple?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,ref:"rootRef",tabindex:"-1",class:Object(u["normalizeClass"])(e.ns.e("multiple"))},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(e.ns.e("content"))},[Object(u["createVNode"])(c,{"wrap-class":e.ns.e("wrap")},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.filteredValue=t),class:Object(u["normalizeClass"])(e.ns.e("checkbox-group"))},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.filters,e=>(Object(u["openBlock"])(),Object(u["createBlock"])(i,{key:e.value,value:e.value},{default:Object(u["withCtx"])(()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(e.ns.e("bottom"))},[Object(u["createElementVNode"])("button",{class:Object(u["normalizeClass"])(e.ns.is("disabled",0===e.filteredValue.length)),disabled:0===e.filteredValue.length,type:"button",onClick:t[1]||(t[1]=(...t)=>e.handleConfirm&&e.handleConfirm(...t))},Object(u["toDisplayString"])(e.t("el.table.confirmFilter")),11,zO),Object(u["createElementVNode"])("button",{type:"button",onClick:t[2]||(t[2]=(...t)=>e.handleReset&&e.handleReset(...t))},Object(u["toDisplayString"])(e.t("el.table.resetFilter")),1)],2)],2)):(Object(u["openBlock"])(),Object(u["createElementBlock"])("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:Object(u["normalizeClass"])(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...t)=>e.handleKeydown&&e.handleKeydown(...t))},[Object(u["createElementVNode"])("li",{role:"radio",class:Object(u["normalizeClass"])([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:0===e.checkedIndex?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=t=>e.handleSelect(null,0))},Object(u["toDisplayString"])(e.t("el.table.clearFilter")),11,qO),(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.filters,(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{key:t.value,role:"radio",class:Object(u["normalizeClass"])([e.ns.e("list-item"),e.ns.is("active",e.isActive(t))]),tabindex:e.checkedIndex===n+1?0:-1,"aria-checked":e.isActive(t),onClick:r=>e.handleSelect(t.value,n+1)},Object(u["toDisplayString"])(t.text),11,WO))),128))],34))]),default:Object(u["withCtx"])(()=>{var t;return[Object(u["createElementVNode"])("button",{type:"button",class:Object(u["normalizeClass"])(e.ns.namespace.value+"-table__column-filter-trigger"),"aria-label":e.t("el.table.filterLabel",{column:(null===(t=e.column)||void 0===t?void 0:t.label)||""})},[Object(u["createVNode"])(p,null,{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(e.$slots,"filter-icon",{},()=>{var t;return[null!==(t=e.column)&&void 0!==t&&t.filterOpened?(Object(u["openBlock"])(),Object(u["createBlock"])(l,{key:0})):(Object(u["openBlock"])(),Object(u["createBlock"])(d,{key:1}))]})]),_:3})],10,KO)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var JO=Object(Jo["a"])(YO,[["render",$O]]);function XO(e){const t=Object(u["getCurrentInstance"])();Object(u["onBeforeMount"])(()=>{n.value.addObserver(t)}),Object(u["onMounted"])(()=>{r(n.value),o(n.value)}),Object(u["onUpdated"])(()=>{r(n.value),o(n.value)}),Object(u["onUnmounted"])(()=>{n.value.removeObserver(t)});const n=Object(u["computed"])(()=>{const t=e.layout;if(!t)throw new Error("Can not find table layout.");return t}),r=t=>{var n;const r=(null===(n=e.vnode.el)||void 0===n?void 0:n.querySelectorAll("colgroup > col"))||[];if(!r.length)return;const o=t.getFlattenColumns(),a={};Y()(o).call(o,e=>{a[e.id]=e});for(let e=0,i=r.length;e<i;e++){const t=r[e],n=a[t.getAttribute("name")];n&&t.setAttribute("width",n.realWidth||n.width)}},o=t=>{var n,r;const o=(null===(n=e.vnode.el)||void 0===n?void 0:n.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let e=0,i=o.length;e<i;e++)o[e].setAttribute("width",t.scrollY.value?t.gutterWidth:"0");const a=(null===(r=e.vnode.el)||void 0===r?void 0:r.querySelectorAll("th.gutter"))||[];for(let e=0,i=a.length;e<i;e++){const n=a[e];n.style.width=t.scrollY.value?t.gutterWidth+"px":"0",n.style.display=t.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:o}}function QO(e,t){const n=Object(u["getCurrentInstance"])(),r=Object(u["inject"])(BO),o=e=>{e.stopPropagation()},a=(e,t)=>{!t.filters&&t.sortable?g(e,t,!1):t.filterable&&!t.sortable&&o(e),null===r||void 0===r||r.emit("header-click",t,e)},s=(e,t)=>{null===r||void 0===r||r.emit("header-contextmenu",t,e)},c=Object(u["ref"])(null),l=Object(u["ref"])(!1),d=Object(u["ref"])(),p=(o,a)=>{if(_["isClient"]&&!(a.children&&a.children.length>0)&&c.value&&e.border&&c.value.id===a.id){var s,u;l.value=!0;const p=r;t("set-drag-visible",!0);const f=null===p||void 0===p||null===(s=p.vnode.el)||void 0===s?void 0:s.getBoundingClientRect().left,h=null===n||void 0===n||null===(u=n.vnode)||void 0===u||null===(u=u.el)||void 0===u?void 0:u.querySelector("th."+a.id),m=h.getBoundingClientRect(),v=m.left-f+30;Object(i["a"])(h,"noclick"),d.value={startMouseLeft:o.clientX,startLeft:m.right-f,startColumnLeft:m.left-f,tableLeft:f};const g=null===p||void 0===p?void 0:p.refs.resizeProxy;g.style.left=d.value.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const _=e=>{const t=e.clientX-d.value.startMouseLeft,n=d.value.startLeft+t;g.style.left=Math.max(v,n)+"px"},b=()=>{if(l.value){const{startColumnLeft:n,startLeft:r}=d.value;a.width=a.realWidth=ke()(g.style.left,10)-n,null===p||void 0===p||p.emit("header-dragend",a.width,r-n,a,o),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,c.value=null,d.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",b),document.onselectstart=null,document.ondragstart=null,qe()(()=>{Object(i["e"])(h,"noclick")},0)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",b)}},f=(t,n)=>{var r;if(!e.border||n.children&&n.children.length>0)return;const o=t.target,a=Object(h["b"])(o)?o.closest("th"):null;if(!a)return;const s=Object(i["d"])(a,"is-sortable");if(s){const e=l.value?"col-resize":"";a.style.cursor=e;const t=a.querySelector(".caret-wrapper");t&&(t.style.cursor=e)}if(!n.resizable||l.value)return void(c.value=null);const u=a.getBoundingClientRect(),d=(null===(r=a.parentNode)||void 0===r?void 0:r.lastElementChild)===a,p=e.allowDragLastColumn||!d,f=u.width>12&&u.right-t.clientX<8&&p,m=f?"col-resize":"";document.body.style.cursor=m,c.value=f?n:null,s&&(a.style.cursor=m)},m=()=>{_["isClient"]&&!l.value&&(document.body.style.cursor="")},v=({order:e,sortOrders:t})=>{if(""===e)return t[0];const n=B()(t).call(t,e||null);return t[n>t.length-2?0:n+1]},g=(t,n,o)=>{var a,s;t.stopPropagation();const c=n.order===o?null:o||v(n),l=null===(a=t.target)||void 0===a?void 0:a.closest("th");if(l&&Object(i["d"])(l,"noclick"))return void Object(i["e"])(l,"noclick");if(!n.sortable)return;const u=t.currentTarget;if(w()(s=["ascending","descending"]).call(s,e=>{var t;return Object(i["d"])(u,e)&&!ue()(t=n.sortOrders).call(t,e)}))return;const d=e.store.states;let p,f=d.sortProp.value;const h=d.sortingColumn.value;(h!==n||h===n&&Object(ne["isNull"])(h.order))&&(h&&(h.order=null),d.sortingColumn.value=n,f=n.property),p=n.order=c||null,d.sortProp.value=f,d.sortOrder.value=p,null===r||void 0===r||r.store.commit("changeSortCondition")};return{handleHeaderClick:a,handleHeaderContextMenu:s,handleMouseDown:p,handleMouseMove:f,handleMouseOut:m,handleSortClick:g,handleFilterClick:o}}function ZO(e){const t=Object(u["inject"])(BO),n=Object(g["d"])("table"),r=e=>{const n=null===t||void 0===t?void 0:t.props.headerRowStyle;return Object(te["isFunction"])(n)?n.call(null,{rowIndex:e}):n},o=e=>{const n=[],r=null===t||void 0===t?void 0:t.props.headerRowClassName;return Object(te["isString"])(r)?n.push(r):Object(te["isFunction"])(r)&&n.push(r.call(null,{rowIndex:e})),n.join(" ")},a=(n,r,o,a)=>{var i;let s=null!==(i=null===t||void 0===t?void 0:t.props.headerCellStyle)&&void 0!==i?i:{};Object(te["isFunction"])(s)&&(s=s.call(null,{rowIndex:n,columnIndex:r,row:o,column:a}));const c=MO(r,a.fixed,e.store,o);return kO(c,"left"),kO(c,"right"),$t()({},s,c)},i=(r,o,a,i)=>{const s=yO(n.b(),o,i.fixed,e.store,a),c=[i.id,i.order,i.headerAlign,i.className,i.labelClassName,...s];i.children||c.push("is-leaf"),i.sortable&&c.push("is-sortable");const l=null===t||void 0===t?void 0:t.props.headerCellClassName;return Object(te["isString"])(l)?c.push(l):Object(te["isFunction"])(l)&&c.push(l.call(null,{rowIndex:r,columnIndex:o,row:a,column:i})),c.push(n.e("cell")),K()(c).call(c,e=>Boolean(e)).join(" ")};return{getHeaderRowStyle:r,getHeaderRowClass:o,getHeaderCellStyle:a,getHeaderCellClass:i}}var eM=Object(u["defineComponent"])({name:"ElTableHeader",components:{ElCheckbox:ks},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=Object(u["getCurrentInstance"])(),r=Object(u["inject"])(BO),o=Object(g["d"])("table"),a=Object(u["ref"])({}),{onColumnsChange:i,onScrollableChange:s}=XO(r),c="auto"===(null===r||void 0===r?void 0:r.props.tableLayout),l=Object(u["reactive"])(new x.a),d=Object(u["ref"])();let p;const f=()=>{p=qe()(()=>{l.size>0&&(Y()(l).call(l,(e,t)=>{const n=d.value.querySelector("."+t.replace(/\s/g,"."));n&&(e.width=n.getBoundingClientRect().width||e.width)}),l.clear())})};Object(u["watch"])(l,f),Object(u["onBeforeUnmount"])(()=>{p&&(clearTimeout(p),p=void 0)}),Object(u["onMounted"])(async()=>{await Object(u["nextTick"])(),await Object(u["nextTick"])();const{prop:t,order:n}=e.defaultSort;null===r||void 0===r||r.store.commit("sort",{prop:t,order:n,init:!0}),f()});const{handleHeaderClick:h,handleHeaderContextMenu:m,handleMouseDown:v,handleMouseMove:_,handleMouseOut:b,handleSortClick:y,handleFilterClick:O}=QO(e,t),{getHeaderRowStyle:M,getHeaderRowClass:k,getHeaderCellStyle:C,getHeaderCellClass:w}=ZO(e),{isGroup:S,toggleAllSelection:T,columnRows:I}=HO(e),{t:E}=Object(fr["b"])();return n.state={onColumnsChange:i,onScrollableChange:s},n.filterPanels=a,{ns:o,t:E,filterPanels:a,onColumnsChange:i,onScrollableChange:s,columnRows:I,getHeaderRowClass:k,getHeaderRowStyle:M,getHeaderCellClass:w,getHeaderCellStyle:C,handleHeaderClick:h,handleHeaderContextMenu:m,handleMouseDown:v,handleMouseMove:_,handleMouseOut:b,handleSortClick:y,handleFilterClick:O,isGroup:S,toggleAllSelection:T,saveIndexSelection:l,isTableLayoutAuto:c,theadRef:d,updateFixedColumnStyle:f}},render(){const{ns:e,t:t,isGroup:n,columnRows:r,getHeaderCellStyle:o,getHeaderCellClass:a,getHeaderRowClass:i,getHeaderRowStyle:s,handleHeaderClick:c,handleHeaderContextMenu:l,handleMouseDown:d,handleMouseMove:p,handleSortClick:f,handleMouseOut:h,store:m,$parent:v,saveIndexSelection:g,isTableLayoutAuto:_}=this;let b=1;return Object(u["h"])("thead",{ref:"theadRef",class:e.is("group",n)},J()(r).call(r,(e,n)=>Object(u["h"])("tr",{class:i(n),key:n,style:s(n)},J()(e).call(e,(r,i)=>{r.rowSpan>b&&(b=r.rowSpan);const s=a(n,i,e,r);return _&&r.fixed&&g.set(s,r),Object(u["h"])("th",{class:s,colspan:r.colSpan,key:r.id+"-thead",rowspan:r.rowSpan,scope:r.colSpan>1?"colgroup":"col",ariaSort:r.sortable?r.order:void 0,style:o(n,i,e,r),onClick:e=>{var t;null!==(t=e.currentTarget)&&void 0!==t&&t.classList.contains("noclick")||c(e,r)},onContextmenu:e=>l(e,r),onMousedown:e=>d(e,r),onMousemove:e=>p(e,r),onMouseout:h},[Object(u["h"])("div",{class:["cell",r.filteredValue&&r.filteredValue.length>0?"highlight":""]},[r.renderHeader?r.renderHeader({column:r,$index:i,store:m,_self:v}):r.label,r.sortable&&Object(u["h"])("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:r.label||""}),onClick:e=>f(e,r)},[Object(u["h"])("i",{onClick:e=>f(e,r,"ascending"),class:"sort-caret ascending"}),Object(u["h"])("i",{onClick:e=>f(e,r,"descending"),class:"sort-caret descending"})]),r.filterable&&Object(u["h"])(JO,{store:m,placement:r.filterPlacement||"bottom-start",appendTo:null===v||void 0===v?void 0:v.appendFilterPanelTo,column:r,upDataColumn:(e,t)=>{r[e]=t}},{"filter-icon":()=>r.renderFilterIcon?r.renderFilterIcon({filterOpened:r.filterOpened}):null})])])}))))}});function tM(e,t,n=.03){return e-t>n}function nM(e){const t=Object(u["inject"])(BO),n=Object(u["ref"])(""),r=Object(u["ref"])(Object(u["h"])("div")),o=(n,r,o)=>{var a;const i=t,s=eO(n);let c=null;const l=null===i||void 0===i||null===(a=i.vnode.el)||void 0===a?void 0:a.dataset.prefix;var u,d;s&&(c=oO({columns:null!==(u=null===(d=e.store)||void 0===d?void 0:d.states.columns.value)&&void 0!==u?u:[]},s,l),c&&(null===i||void 0===i||i.emit("cell-"+o,r,c,s,n)));null===i||void 0===i||i.emit("row-"+o,r,c,n)},a=(e,t)=>{o(e,t,"dblclick")},s=(t,n)=>{var r;null===(r=e.store)||void 0===r||r.commit("setCurrentRow",n),o(t,n,"click")},c=(e,t)=>{o(e,t,"contextmenu")},l=Object(ne["debounce"])(t=>{var n;null===(n=e.store)||void 0===n||n.commit("setHoverRow",t)},30),d=Object(ne["debounce"])(()=>{var t;null===(t=e.store)||void 0===t||t.commit("setHoverRow",null)},30),p=e=>{const t=window.getComputedStyle(e,null);return{left:ke()(t.paddingLeft,10)||0,right:ke()(t.paddingRight,10)||0,top:ke()(t.paddingTop,10)||0,bottom:ke()(t.paddingBottom,10)||0}},f=(e,t,n)=>{var r;let o=null===t||void 0===t||null===(r=t.target)||void 0===r?void 0:r.parentNode;while(e>1){var a;if(o=null===(a=o)||void 0===a?void 0:a.nextSibling,!o||"TR"!==o.nodeName)break;n(o,"hover-row hover-fixed-row"),e--}},h=(n,r,o)=>{var a,s,c;if(!t)return;const l=t,u=eO(n),d=null===l||void 0===l||null===(a=l.vnode.el)||void 0===a?void 0:a.dataset.prefix;let h=null;if(u){var m,v;if(h=oO({columns:null!==(m=null===(v=e.store)||void 0===v?void 0:v.states.columns.value)&&void 0!==m?m:[]},u,d),!h)return;u.rowSpan>1&&f(u.rowSpan,n,i["a"]);const t=l.hoverState={cell:u,column:h,row:r};null===l||void 0===l||l.emit("cell-mouse-enter",t.row,t.column,t.cell,n)}if(!o)return void((null===mO||void 0===mO?void 0:mO.trigger)===u&&(null===mO||void 0===mO||mO()));const g=n.target.querySelector(".cell");if(!(Object(i["d"])(g,d+"-tooltip")&&g.childNodes.length&&null!==(s=g.textContent)&&void 0!==s&&zr()(s).call(s)))return;const _=document.createRange();_.setStart(g,0),_.setEnd(g,g.childNodes.length);const{width:b,height:y}=_.getBoundingClientRect(),{width:O,height:M}=g.getBoundingClientRect(),{top:k,left:C,right:w,bottom:S}=p(g),T=C+w,I=k+S;tM(b+T,O)||tM(y+I,M)||tM(g.scrollWidth,O)?vO(o,null!==(c=(null===u||void 0===u?void 0:u.innerText)||(null===u||void 0===u?void 0:u.textContent))&&void 0!==c?c:"",r,h,u,l):(null===mO||void 0===mO?void 0:mO.trigger)===u&&(null===mO||void 0===mO||mO())},m=e=>{const n=eO(e);if(!n)return;n.rowSpan>1&&f(n.rowSpan,e,i["e"]);const r=null===t||void 0===t?void 0:t.hoverState;null===t||void 0===t||t.emit("cell-mouse-leave",null===r||void 0===r?void 0:r.row,null===r||void 0===r?void 0:r.column,null===r||void 0===r?void 0:r.cell,e)};return{handleDoubleClick:a,handleClick:s,handleContextMenu:c,handleMouseEnter:l,handleMouseLeave:d,handleCellMouseEnter:h,handleCellMouseLeave:m,tooltipContent:n,tooltipTrigger:r}}function rM(e){const t=Object(u["inject"])(BO),n=Object(g["d"])("table"),r=(e,n)=>{const r=null===t||void 0===t?void 0:t.props.rowStyle;return Object(te["isFunction"])(r)?r.call(null,{row:e,rowIndex:n}):r||null},o=(r,o,a)=>{var i;const s=[n.e("row")];null!==t&&void 0!==t&&t.props.highlightCurrentRow&&r===(null===(i=e.store)||void 0===i?void 0:i.states.currentRow.value)&&s.push("current-row"),e.stripe&&a%2===1&&s.push(n.em("row","striped"));const c=null===t||void 0===t?void 0:t.props.rowClassName;return Object(te["isString"])(c)?s.push(c):Object(te["isFunction"])(c)&&s.push(c.call(null,{row:r,rowIndex:o})),s},a=(n,r,o,a)=>{const i=null===t||void 0===t?void 0:t.props.cellStyle;let s=null!==i&&void 0!==i?i:{};Object(te["isFunction"])(i)&&(s=i.call(null,{rowIndex:n,columnIndex:r,row:o,column:a}));const c=MO(r,null===e||void 0===e?void 0:e.fixed,e.store);return kO(c,"left"),kO(c,"right"),$t()({},s,c)},i=(r,o,a,i,s)=>{const c=yO(n.b(),o,null===e||void 0===e?void 0:e.fixed,e.store,void 0,s),l=[i.id,i.align,i.className,...c],u=null===t||void 0===t?void 0:t.props.cellClassName;return Object(te["isString"])(u)?l.push(u):Object(te["isFunction"])(u)&&l.push(u.call(null,{rowIndex:r,columnIndex:o,row:a,column:i})),l.push(n.e("cell")),K()(l).call(l,e=>Boolean(e)).join(" ")},s=(e,n,r,o)=>{let a=1,i=1;const s=null===t||void 0===t?void 0:t.props.spanMethod;if(Object(te["isFunction"])(s)){const t=s({row:e,column:n,rowIndex:r,columnIndex:o});Object(te["isArray"])(t)?(a=t[0],i=t[1]):Object(te["isObject"])(t)&&(a=t.rowspan,i=t.colspan)}return{rowspan:a,colspan:i}},c=(e,t,n)=>{var r;if(t<1)return e[n].realWidth;const o=It()(r=J()(e).call(e,({realWidth:e,width:t})=>e||t)).call(r,n,n+t);return Number(fa()(o).call(o,(e,t)=>Number(e)+Number(t),-1))};return{getRowStyle:r,getRowClass:o,getCellStyle:a,getCellClass:i,getSpan:s,getColspanRealWidth:c}}const oM=["colspan","rowspan"];var aM=Object(u["defineComponent"])({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("td",{colspan:e.colspan,rowspan:e.rowspan},[Object(u["renderSlot"])(t.$slots,"default")],8,oM))}}),iM=aM;function sM(e){const t=Object(u["inject"])(BO),n=Object(g["d"])("table"),{handleDoubleClick:r,handleClick:o,handleContextMenu:a,handleMouseEnter:i,handleMouseLeave:s,handleCellMouseEnter:c,handleCellMouseLeave:l,tooltipContent:d,tooltipTrigger:p}=nM(e),{getRowStyle:f,getRowClass:m,getCellStyle:v,getCellClass:_,getSpan:b,getColspanRealWidth:y}=rM(e);let O=-1;const M=Object(u["computed"])(()=>{var t,n;return null===(t=e.store)||void 0===t?void 0:ya()(n=t.states.columns.value).call(n,({type:e})=>"default"===e)}),k=(e,n)=>{var r;const o=null===t||void 0===t||null===(r=t.props)||void 0===r?void 0:r.rowKey;return o?aO(e,o):n},C=(d,p,g,C=!1)=>{var w;const{tooltipEffect:T,tooltipOptions:I,store:E}=e,{indent:j,columns:D}=E.states,L=[];let A=!0;return g&&(L.push(n.em("row","level-"+g.level)),A=!!g.display),0===p&&(O=-1),e.stripe&&A&&O++,L.push(...m(d,p,O)),Object(u["h"])("tr",{style:[A?null:{display:"none"},f(d,p)],class:L,key:k(d,p),onDblclick:e=>r(e,d),onClick:e=>o(e,d),onContextmenu:e=>a(e,d),onMouseenter:()=>i(p),onMouseleave:s},J()(w=D.value).call(w,(n,r)=>{const{rowspan:o,colspan:a}=b(d,n,p,r);if(!o||!a)return null;const i=$t()({},n);i.realWidth=y(D.value,a,r);const s={store:E,_self:e.context||t,column:i,row:d,$index:p,cellIndex:r,expanded:C};r===M.value&&g&&(s.treeNode={indent:g.level&&g.level*j.value,level:g.level},Object(h["a"])(g.expanded)&&(s.treeNode.expanded=g.expanded,"loading"in g&&(s.treeNode.loading=g.loading),"noLazyChildren"in g&&(s.treeNode.noLazyChildren=g.noLazyChildren)));const f=`${k(d,p)},${r}`,m=i.columnKey||i.rawColumnKey||"",O=n.showOverflowTooltip&&Object(ne["merge"])({effect:T},I,n.showOverflowTooltip);return Object(u["h"])(iM,{style:v(p,r,d,n),class:_(p,r,d,n,a-1),key:`${m}${f}`,rowspan:o,colspan:a,onMouseenter:e=>c(e,d,O),onMouseleave:l},{default:()=>S(r,n,s)})}))},S=(e,t,n)=>t.renderCell(n),T=(r,o)=>{const a=e.store,{isRowExpanded:i,assertRowKey:s}=a,{treeData:c,lazyTreeNodeMap:l,childrenColumnName:d,rowKey:p}=a.states,f=a.states.columns.value;if(w()(f).call(f,({type:e})=>"expand"===e)){const e=i(r),s=C(r,o,void 0,e),c=null===t||void 0===t?void 0:t.renderExpanded;if(!c)return console.error("[Element Error]renderExpanded is required."),s;const l=[[s]];return(t.props.preserveExpandedContent||e)&&l[0].push(Object(u["h"])("tr",{key:"expanded-row__"+s.key,style:{display:e?"":"none"}},[Object(u["h"])("td",{colspan:f.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[c({row:r,$index:o,store:a,expanded:e})])])),l}if(Q()(c.value).length){s();const e=aO(r,p.value);let t=c.value[e],n=null;t&&(n={expanded:t.expanded,level:t.level,display:!0,noLazyChildren:void 0,loading:void 0},Object(h["a"])(t.lazy)&&(n&&Object(h["a"])(t.loaded)&&t.loaded&&(n.noLazyChildren=!(t.children&&t.children.length)),n.loading=t.loading));const a=[C(r,o,null!==n&&void 0!==n?n:void 0)];if(t){let n=0;const i=(e,r)=>{e&&e.length&&r&&Y()(e).call(e,e=>{const s={display:r.display&&r.expanded,level:r.level+1,expanded:!1,noLazyChildren:!1,loading:!1},u=aO(e,p.value);if(Object(h["e"])(u))throw new Error("For nested data item, row-key is required.");t={...c.value[u]},t&&(s.expanded=t.expanded,t.level=t.level||s.level,t.display=!(!t.expanded||!s.display),Object(h["a"])(t.lazy)&&(Object(h["a"])(t.loaded)&&t.loaded&&(s.noLazyChildren=!(t.children&&t.children.length)),s.loading=t.loading)),n++,a.push(C(e,o+n,s)),t&&i(l.value[u]||e[d.value],t)})};t.display=!0,i(l.value[e]||r[d.value],t)}return a}return C(r,o,void 0)};return{wrappedRowRender:T,tooltipContent:d,tooltipTrigger:p}}const cM={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var lM=Object(u["defineComponent"])({name:"ElTableBody",props:cM,setup(e){var t;const n=Object(u["getCurrentInstance"])(),r=Object(u["inject"])(BO),o=Object(g["d"])("table"),{wrappedRowRender:a,tooltipContent:s,tooltipTrigger:c}=sM(e),{onColumnsChange:l,onScrollableChange:d}=XO(r),p=[];return Object(u["watch"])(null===(t=e.store)||void 0===t?void 0:t.states.hoverRow,(t,r)=>{var a,s,c;const l=null===n||void 0===n?void 0:n.vnode.el,u=K()(a=Pn()((null===l||void 0===l?void 0:l.children)||[])).call(a,e=>null===e||void 0===e?void 0:e.classList.contains(""+o.e("row")));let d=t;const f=null===(s=u[d])||void 0===s?void 0:s.childNodes;if(null!==f&&void 0!==f&&f.length){var h,m;let e=0;Y()(h=fa()(m=Pn()(f)).call(m,(t,n,r)=>{var o,a;return(null===(o=f[r])||void 0===o?void 0:o.colSpan)>1&&(e=null===(a=f[r])||void 0===a?void 0:a.colSpan),"TD"!==n.nodeName&&0===e&&t.push(r),e>0&&e--,t},[])).call(h,e=>{d=t;while(d>0){var n;const t=null===(n=u[d-1])||void 0===n?void 0:n.childNodes;if(t[e]&&"TD"===t[e].nodeName&&t[e].rowSpan>1){Object(i["a"])(t[e],"hover-cell"),p.push(t[e]);break}d--}})}else Y()(p).call(p,e=>Object(i["e"])(e,"hover-cell")),p.length=0;null!==(c=e.store)&&void 0!==c&&c.states.isComplex.value&&_["isClient"]&&Object(bo["b"])(()=>{const e=u[r],n=u[t];e&&!e.classList.contains("hover-fixed-row")&&Object(i["e"])(e,"hover-row"),n&&Object(i["a"])(n,"hover-row")})}),Object(u["onUnmounted"])(()=>{null===mO||void 0===mO||mO()}),{ns:o,onColumnsChange:l,onScrollableChange:d,wrappedRowRender:a,tooltipContent:s,tooltipTrigger:c}},render(){var e;const{wrappedRowRender:t,store:n}=this;return Object(u["h"])("tbody",{tabIndex:-1},[fa()(e=(null===n||void 0===n?void 0:n.states.data.value)||[]).call(e,(e,n)=>No()(e).call(e,t(n,e.length)),[])])}});function uM(){var e;const t=null===(e=Object(u["inject"])(BO))||void 0===e?void 0:e.store;return{leftFixedLeafCount:Object(u["computed"])(()=>{var e;return null!==(e=null===t||void 0===t?void 0:t.states.fixedLeafColumnsLength.value)&&void 0!==e?e:0}),rightFixedLeafCount:Object(u["computed"])(()=>{var e;return null!==(e=null===t||void 0===t?void 0:t.states.rightFixedColumns.value.length)&&void 0!==e?e:0}),columnsCount:Object(u["computed"])(()=>{var e;return null!==(e=null===t||void 0===t?void 0:t.states.columns.value.length)&&void 0!==e?e:0}),leftFixedCount:Object(u["computed"])(()=>{var e;return null!==(e=null===t||void 0===t?void 0:t.states.fixedColumns.value.length)&&void 0!==e?e:0}),rightFixedCount:Object(u["computed"])(()=>{var e;return null!==(e=null===t||void 0===t?void 0:t.states.rightFixedColumns.value.length)&&void 0!==e?e:0}),columns:Object(u["computed"])(()=>{var e;return null!==(e=null===t||void 0===t?void 0:t.states.columns.value)&&void 0!==e?e:[]})}}function dM(e){const{columns:t}=uM(),n=Object(g["d"])("table"),r=(t,r)=>{const o=t[r],a=[n.e("cell"),o.id,o.align,o.labelClassName,...yO(n.b(),r,o.fixed,e.store)];return o.className&&a.push(o.className),o.children||a.push(n.is("leaf")),a},o=(t,n)=>{const r=MO(n,t.fixed,e.store);return kO(r,"left"),kO(r,"right"),r};return{getCellClasses:r,getCellStyles:o,columns:t}}var pM=Object(u["defineComponent"])({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=Object(u["inject"])(BO),n=Object(g["d"])("table"),{getCellClasses:r,getCellStyles:o,columns:a}=dM(e),{onScrollableChange:i,onColumnsChange:s}=XO(t);return{ns:n,onScrollableChange:i,onColumnsChange:s,getCellClasses:r,getCellStyles:o,columns:a}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:o}=this,a=this.store.states.data.value;let i=[];return r?i=r({columns:e,data:a}):Y()(e).call(e,(e,t)=>{if(0===t)return void(i[t]=o);const n=J()(a).call(a,t=>Number(t[e.property])),r=[];let s=!0;Y()(n).call(n,e=>{if(!Di()(+e)){s=!1;const t=(""+e).split(".")[1];r.push(t?t.length:0)}});const c=Math.max.apply(null,r);i[t]=s?"":fa()(n).call(n,(e,t)=>{const n=Number(t);return Di()(+n)?e:Oe()((e+t).toFixed(Math.min(c,20)))},0)}),Object(u["h"])(Object(u["h"])("tfoot",[Object(u["h"])("tr",{},[...J()(e).call(e,(r,o)=>Object(u["h"])("td",{key:o,colspan:r.colSpan,rowspan:r.rowSpan,class:n(e,o),style:t(r,o)},[Object(u["h"])("div",{class:["cell",r.labelClassName]},[i[o]])]))])]))}});function fM(e){const t=t=>{e.commit("setCurrentRow",t)},n=()=>e.getSelectionRows(),r=(t,n,r=!0)=>{e.toggleRowSelection(t,n,!1,r),e.updateAllSelected()},o=()=>{e.clearSelection()},a=t=>{e.clearFilter(t)},i=()=>{e.commit("toggleAllSelection")},s=(t,n)=>{e.toggleRowExpansionAdapter(t,n)},c=()=>{e.clearSort()},l=(t,n)=>{e.commit("sort",{prop:t,order:n})},u=(t,n)=>{e.updateKeyChildren(t,n)};return{setCurrentRow:t,getSelectionRows:n,toggleRowSelection:r,clearSelection:o,clearFilter:a,toggleAllSelection:i,toggleRowExpansion:s,clearSort:c,sort:l,updateKeyChildren:u}}function hM(e,t,n,r){const o=Object(u["ref"])(!1),a=Object(u["ref"])(null),i=Object(u["ref"])(!1),s=e=>{i.value=e},c=Object(u["ref"])({width:null,height:null,headerHeight:null}),l=Object(u["ref"])(!1),d={display:"inline-block",verticalAlign:"middle"},p=Object(u["ref"])(),f=Object(u["ref"])(0),h=Object(u["ref"])(0),m=Object(u["ref"])(0),v=Object(u["ref"])(0),g=Object(u["ref"])(0);Object(u["watch"])(()=>e.height,e=>{t.setHeight(null!==e&&void 0!==e?e:null)},{immediate:!0}),Object(u["watch"])(()=>e.maxHeight,e=>{t.setMaxHeight(null!==e&&void 0!==e?e:null)},{immediate:!0}),Object(u["watch"])(()=>[e.currentRowKey,n.states.rowKey],([e,t])=>{Object(u["unref"])(t)&&Object(u["unref"])(e)&&n.setCurrentRowKey(""+e)},{immediate:!0}),Object(u["watch"])(()=>e.data,e=>{r.store.commit("setData",e)},{immediate:!0,deep:!0}),Object(u["watchEffect"])(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const b=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},y=(e,t)=>{const{pixelX:n,pixelY:o}=t;Math.abs(n)>=Math.abs(o)&&(r.refs.bodyWrapper.scrollLeft+=t.pixelX/5)},O=Object(u["computed"])(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),M=Object(u["computed"])(()=>({width:t.bodyWidth.value?t.bodyWidth.value+"px":""})),k=()=>{O.value&&t.updateElsHeight(),t.updateColumnsWidth(),"undefined"!==typeof window&&requestAnimationFrame(T)};Object(u["onMounted"])(async()=>{var t;await Object(u["nextTick"])(),n.updateColumns(),I(),requestAnimationFrame(k);const o=r.vnode.el,a=r.refs.headerWrapper;e.flexible&&o&&o.parentElement&&(o.parentElement.style.minWidth="0"),c.value={width:p.value=o.offsetWidth,height:o.offsetHeight,headerHeight:e.showHeader&&a?a.offsetHeight:null},Y()(t=n.states.columns.value).call(t,e=>{e.filteredValue&&e.filteredValue.length&&r.store.commit("filterChange",{column:e,values:e.filteredValue,silent:!0})}),r.$ready=!0});const C=(e,n)=>{var r;if(!e)return;const o=K()(r=Pn()(e.classList)).call(r,e=>!Fr()(e).call(e,"is-scrolling-"));o.push(t.scrollX.value?n:"is-scrolling-none"),e.className=o.join(" ")},w=e=>{const{tableWrapper:t}=r.refs;C(t,e)},S=e=>{const{tableWrapper:t}=r.refs;return!(!t||!t.classList.contains(e))},T=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const e="is-scrolling-none";return void(S(e)||w(e))}const e=r.refs.scrollBarRef.wrapRef;if(!e)return;const{scrollLeft:n,offsetWidth:o,scrollWidth:a}=e,{headerWrapper:i,footerWrapper:s}=r.refs;i&&(i.scrollLeft=n),s&&(s.scrollLeft=n),w(n>=a-o-1?"is-scrolling-right":0===n?"is-scrolling-left":"is-scrolling-middle")},I=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&Object(_["useEventListener"])(r.refs.scrollBarRef.wrapRef,"scroll",T,{passive:!0}),e.fit?Object(_["useResizeObserver"])(r.vnode.el,E):Object(_["useEventListener"])(window,"resize",E),Object(_["useResizeObserver"])(r.refs.tableInnerWrapper,()=>{var e;E(),null===(e=r.refs)||void 0===e||null===(e=e.scrollBarRef)||void 0===e||e.update()}))},E=()=>{var t,n,o,a;const i=r.vnode.el;if(!r.$ready||!i)return;let s=!1;const{width:l,height:u,headerHeight:d}=c.value,_=p.value=i.offsetWidth;l!==_&&(s=!0);const b=i.offsetHeight;(e.height||O.value)&&u!==b&&(s=!0);const y="fixed"===e.tableLayout?r.refs.headerWrapper:null===(t=r.refs.tableHeaderRef)||void 0===t?void 0:t.$el;e.showHeader&&(null===y||void 0===y?void 0:y.offsetHeight)!==d&&(s=!0),f.value=(null===(n=r.refs.tableWrapper)||void 0===n?void 0:n.scrollHeight)||0,m.value=(null===y||void 0===y?void 0:y.scrollHeight)||0,v.value=(null===(o=r.refs.footerWrapper)||void 0===o?void 0:o.offsetHeight)||0,g.value=(null===(a=r.refs.appendWrapper)||void 0===a?void 0:a.offsetHeight)||0,h.value=f.value-m.value-v.value-g.value,s&&(c.value={width:_,height:b,headerHeight:e.showHeader&&(null===y||void 0===y?void 0:y.offsetHeight)||0},k())},j=Object(ce["b"])(),D=Object(u["computed"])(()=>{const{bodyWidth:e,scrollY:n,gutterWidth:r}=t;return e.value?e.value-(n.value?r:0)+"px":""}),L=Object(u["computed"])(()=>e.maxHeight?"fixed":e.tableLayout);return{isHidden:o,renderExpanded:a,setDragVisible:s,isGroup:l,handleMouseLeave:b,handleHeaderFooterMousewheel:y,tableSize:j,emptyBlockStyle:Object(u["computed"])(()=>{if(e.data&&e.data.length)return;let t="100%";e.height&&h.value&&(t=h.value+"px");const n=p.value;return{width:n?n+"px":"",height:t}}),resizeProxyVisible:i,bodyWidth:D,resizeState:c,doLayout:k,tableBodyStyles:M,tableLayout:L,scrollbarViewStyle:d,scrollbarStyle:Object(u["computed"])(()=>e.height?{height:"100%"}:e.maxHeight?Di()(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${m.value+v.value}px)`}:{maxHeight:+e.maxHeight-m.value-v.value+"px"}:{})}}function mM(e){let t;const n=()=>{const n=e.vnode.el.querySelector(".hidden-columns"),r={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t=new MutationObserver(()=>{Y()(o).call(o,e=>e())}),t.observe(n,r)};Object(u["onMounted"])(()=>{n()}),Object(u["onUnmounted"])(()=>{var e;null===(e=t)||void 0===e||e.disconnect()})}var vM={data:{type:Array,default:()=>[]},size:Nr["c"],width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,rowExpandable:{type:Function},defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:[String,Object,Array],default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function gM(e){const t="auto"===e.tableLayout;let n=e.columns||[];t&&Ht()(n).call(n,({width:e})=>Object(h["g"])(e))&&(n=[]);const r=n=>{const r={key:`${e.tableLayout}_${n.id}`,style:{},name:void 0};return t?r.style={width:n.width+"px"}:r.name=n.id,r};return Object(u["h"])("colgroup",{},J()(n).call(n,e=>Object(u["h"])("col",r(e))))}gM.props=["columns","tableLayout"];const _M=()=>{const e=Object(u["ref"])(),t=(t,n)=>{const r=e.value;r&&r.scrollTo(t,n)},n=(t,n)=>{var r;const o=e.value;o&&Object(h["d"])(n)&&ue()(r=["Top","Left"]).call(r,t)&&o["setScroll"+t](n)},r=e=>n("Top",e),o=e=>n("Left",e);return{scrollBarRef:e,scrollTo:t,setScrollTop:r,setScrollLeft:o}};let bM=1;var yM=Object(u["defineComponent"])({name:"ElTable",directives:{Mousewheel:Zy},components:{TableHeader:eM,TableBody:lM,TableFooter:pM,ElScrollbar:Rn,hColgroup:gM},props:vM,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t:t}=Object(fr["b"])(),n=Object(g["d"])("table"),r=Object(ki["c"])("table"),o=Object(u["getCurrentInstance"])();Object(u["provide"])(BO,o);const a=RO(o,e);o.store=a;const i=new VO({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=i;const s=Object(u["computed"])(()=>0===(a.states.data.value||[]).length),{setCurrentRow:c,getSelectionRows:l,toggleRowSelection:d,clearSelection:p,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:m,clearSort:v,sort:_,updateKeyChildren:b}=fM(a),{isHidden:y,renderExpanded:O,setDragVisible:M,isGroup:k,handleMouseLeave:C,handleHeaderFooterMousewheel:w,tableSize:S,emptyBlockStyle:T,resizeProxyVisible:I,bodyWidth:E,resizeState:j,doLayout:D,tableBodyStyles:L,tableLayout:A,scrollbarViewStyle:N,scrollbarStyle:R}=hM(e,i,a,o),{scrollBarRef:x,scrollTo:P,setScrollLeft:U,setScrollTop:V}=_M(),B=Object(ne["debounce"])(D,50),F=`${n.namespace.value}-table_${bM++}`;o.tableId=F,o.state={isGroup:k,resizeState:j,doLayout:D,debouncedUpdateLayout:B};const G=Object(u["computed"])(()=>{var n;return null!==(n=e.sumText)&&void 0!==n?n:t("el.table.sumText")}),H=Object(u["computed"])(()=>{var n;return null!==(n=e.emptyText)&&void 0!==n?n:t("el.table.emptyText")}),Y=Object(u["computed"])(()=>{var t,n;return null!==(t=e.tooltipEffect)&&void 0!==t?t:null===(n=r.value)||void 0===n?void 0:n.tooltipEffect}),z=Object(u["computed"])(()=>{var t,n;return null!==(t=e.tooltipOptions)&&void 0!==t?t:null===(n=r.value)||void 0===n?void 0:n.tooltipOptions}),q=Object(u["computed"])(()=>GO(a.states.originColumns.value)[0]);return mM(o),Object(u["onBeforeUnmount"])(()=>{B.cancel()}),{ns:n,layout:i,store:a,columns:q,handleHeaderFooterMousewheel:w,handleMouseLeave:C,tableId:F,tableSize:S,isHidden:y,isEmpty:s,renderExpanded:O,resizeProxyVisible:I,resizeState:j,isGroup:k,bodyWidth:E,tableBodyStyles:L,emptyBlockStyle:T,debouncedUpdateLayout:B,setCurrentRow:c,getSelectionRows:l,toggleRowSelection:d,clearSelection:p,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:m,clearSort:v,doLayout:D,sort:_,updateKeyChildren:b,t:t,setDragVisible:M,context:o,computedSumText:G,computedEmptyText:H,computedTooltipEffect:Y,computedTooltipOptions:z,tableLayout:A,scrollbarViewStyle:N,scrollbarStyle:R,scrollBarRef:x,scrollTo:P,setScrollLeft:U,setScrollTop:V,allowDragLastColumn:e.allowDragLastColumn}}});const OM=["data-prefix"],MM={ref:"hiddenColumns",class:"hidden-columns"};function kM(e,t,n,r,o,a){const i=Object(u["resolveComponent"])("hColgroup"),s=Object(u["resolveComponent"])("table-header"),c=Object(u["resolveComponent"])("table-body"),l=Object(u["resolveComponent"])("table-footer"),d=Object(u["resolveComponent"])("el-scrollbar"),p=Object(u["resolveDirective"])("mousewheel");return Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref:"tableWrapper",class:Object(u["normalizeClass"])([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:0!==(e.store.states.data.value||[]).length&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m("layout-"+e.tableLayout)]),style:Object(u["normalizeStyle"])(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...t)=>e.handleMouseLeave&&e.handleMouseLeave(...t))},[Object(u["createElementVNode"])("div",{ref:"tableInnerWrapper",class:Object(u["normalizeClass"])(e.ns.e("inner-wrapper"))},[Object(u["createElementVNode"])("div",MM,[Object(u["renderSlot"])(e.$slots,"default")],512),e.showHeader&&"fixed"===e.tableLayout?Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,ref:"headerWrapper",class:Object(u["normalizeClass"])(e.ns.e("header-wrapper"))},[Object(u["createElementVNode"])("table",{ref:"tableHeader",class:Object(u["normalizeClass"])(e.ns.e("header")),style:Object(u["normalizeStyle"])(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Object(u["createVNode"])(i,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Object(u["createVNode"])(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[p,e.handleHeaderFooterMousewheel]]):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{ref:"bodyWrapper",class:Object(u["normalizeClass"])(e.ns.e("body-wrapper"))},[Object(u["createVNode"])(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:t[0]||(t[0]=t=>e.$emit("scroll",t))},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("table",{ref:"tableBody",class:Object(u["normalizeClass"])(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Object(u["normalizeStyle"])({width:e.bodyWidth,tableLayout:e.tableLayout})},[Object(u["createVNode"])(i,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&"auto"===e.tableLayout?(Object(u["openBlock"])(),Object(u["createBlock"])(s,{key:0,ref:"tableHeaderRef",class:Object(u["normalizeClass"])(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):Object(u["createCommentVNode"])("v-if",!0),Object(u["createVNode"])(c,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.computedTooltipEffect,"tooltip-options":e.computedTooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&"auto"===e.tableLayout?(Object(u["openBlock"])(),Object(u["createBlock"])(l,{key:1,class:Object(u["normalizeClass"])(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):Object(u["createCommentVNode"])("v-if",!0)],6),e.isEmpty?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,ref:"emptyBlock",style:Object(u["normalizeStyle"])(e.emptyBlockStyle),class:Object(u["normalizeClass"])(e.ns.e("empty-block"))},[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(e.ns.e("empty-text"))},[Object(u["renderSlot"])(e.$slots,"empty",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.computedEmptyText),1)])],2)],6)):Object(u["createCommentVNode"])("v-if",!0),e.$slots.append?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,ref:"appendWrapper",class:Object(u["normalizeClass"])(e.ns.e("append-wrapper"))},[Object(u["renderSlot"])(e.$slots,"append")],2)):Object(u["createCommentVNode"])("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&"fixed"===e.tableLayout?Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,ref:"footerWrapper",class:Object(u["normalizeClass"])(e.ns.e("footer-wrapper"))},[Object(u["createElementVNode"])("table",{class:Object(u["normalizeClass"])(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Object(u["normalizeStyle"])(e.tableBodyStyles)},[Object(u["createVNode"])(i,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Object(u["createVNode"])(l,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[u["vShow"],!e.isEmpty],[p,e.handleHeaderFooterMousewheel]]):Object(u["createCommentVNode"])("v-if",!0),e.border||e.isGroup?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:2,class:Object(u["normalizeClass"])(e.ns.e("border-left-patch"))},null,2)):Object(u["createCommentVNode"])("v-if",!0)],2),Object(u["withDirectives"])(Object(u["createElementVNode"])("div",{ref:"resizeProxy",class:Object(u["normalizeClass"])(e.ns.e("column-resize-proxy"))},null,2),[[u["vShow"],e.resizeProxyVisible]])],46,OM)}var CM=Object(Jo["a"])(yM,[["render",kM]]);const wM={selection:"table-column--selection",expand:"table__expand-column"},SM={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},TM=e=>wM[e]||"",IM={selection:{renderHeader({store:e}){var t;function n(){return e.states.data.value&&0===e.states.data.value.length}return Object(u["h"])(ks,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":null!==(t=e.toggleAllSelection)&&void 0!==t?t:void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")})},renderCell({row:e,column:t,store:n,$index:r}){return Object(u["h"])(ks,{disabled:!!t.selectable&&!t.selectable.call(null,e,r),size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:e=>e.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:n.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return Object(h["d"])(r)?n=t+r:Object(te["isFunction"])(r)&&(n=r(t)),Object(u["h"])("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:r,$index:o}){var a,i,s;const{ns:c}=n,l=[c.e("expand-icon")];!e.renderExpand&&r&&l.push(c.em("expand-icon","expanded"));const d=function(e){e.stopPropagation(),n.toggleRowExpansion(t)},p=null===(a=null===(i=(s=n.states.rowExpandable).value)||void 0===i?void 0:i.call(s,t,o))||void 0===a||a;return p||l.push(c.is("disabled")),Object(u["h"])("button",{type:"button",disabled:!p,"aria-label":n.t(r?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":r,class:l,onClick:d},{default:()=>e.renderExpand?[e.renderExpand({expanded:r,expandable:p})]:[Object(u["h"])(k["a"],null,{default:()=>[Object(u["h"])(Fn["ArrowRight"])]})]})},sortable:!1,resizable:!1}};function EM({row:e,column:t,$index:n}){var r;const o=t.property,a=o&&Object(I["b"])(e,o).value;return t&&t.formatter?t.formatter(e,t,a,n):(null===a||void 0===a||null===(r=a.toString)||void 0===r?void 0:r.call(a))||""}function jM({row:e,treeNode:t,store:n},r=!1){const{ns:o}=n;if(!t)return r?[Object(u["h"])("span",{class:o.e("placeholder")})]:null;const a=[],i=function(r){r.stopPropagation(),t.loading||n.loadOrToggle(e)};if(t.indent&&a.push(Object(u["h"])("span",{class:o.e("indent"),style:{"padding-left":t.indent+"px"}})),Object(h["a"])(t.expanded)&&!t.noLazyChildren){const e=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let r=Fn["ArrowRight"];t.loading&&(r=Fn["Loading"]),a.push(Object(u["h"])("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:e,onClick:i},{default:()=>[Object(u["h"])(k["a"],{class:o.is("loading",t.loading)},{default:()=>[Object(u["h"])(r)]})]}))}else a.push(Object(u["h"])("span",{class:o.e("placeholder")}));return a}function DM(e,t){return fa()(e).call(e,(e,t)=>(e[t]=t,e),t)}function LM(e,t){const n=Object(u["getCurrentInstance"])(),r=()=>{var r;const o=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},i=DM(o,a);Y()(r=Q()(i)).call(r,r=>{const o=a[r];Object(te["hasOwn"])(t,o)&&Object(u["watch"])(()=>t[o],t=>{let a=t;"width"===o&&"realWidth"===r&&(a=cO(t)),"minWidth"===o&&"realMinWidth"===r&&(a=lO(t)),n.columnConfig.value[o]=a,n.columnConfig.value[r]=a;const i="fixed"===o;e.value.store.scheduleLayout(i)})})},o=()=>{var r;const o=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],a=["showOverflowTooltip"],i={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=DM(o,i);Y()(r=Q()(s)).call(r,e=>{const r=i[e];Object(te["hasOwn"])(t,r)&&Object(u["watch"])(()=>t[r],t=>{n.columnConfig.value[e]=t,"filters"!==e&&"filterMethod"!==e||(n.columnConfig.value["filterable"]=!(!n.columnConfig.value["filters"]&&!n.columnConfig.value["filterMethod"]))})}),Y()(a).call(a,r=>{Object(te["hasOwn"])(e.value.props,r)&&Object(u["watch"])(()=>e.value.props[r],e=>{"selection"!==n.columnConfig.value.type&&Object(h["g"])(t[r])&&(n.columnConfig.value[r]=e)})});const c=Object(ki["c"])("table");c.value&&Object(te["hasOwn"])(c.value,"showOverflowTooltip")&&Object(u["watch"])(()=>{var e;return null===(e=c.value)||void 0===e?void 0:e.showOverflowTooltip},r=>{"selection"!==n.columnConfig.value.type&&Object(h["g"])(t.showOverflowTooltip)&&Object(h["g"])(e.value.props.showOverflowTooltip)&&(n.columnConfig.value.showOverflowTooltip=r)})};return{registerComplexWatchers:r,registerNormalWatchers:o}}function AM(e,t,n){const r=Object(u["getCurrentInstance"])(),o=Object(u["ref"])(""),i=Object(u["ref"])(!1),s=Object(u["ref"])(),c=Object(u["ref"])(),l=Object(g["d"])("table");Object(u["watchEffect"])(()=>{s.value=e.align?"is-"+e.align:null,s.value}),Object(u["watchEffect"])(()=>{c.value=e.headerAlign?"is-"+e.headerAlign:s.value,c.value});const d=Object(u["computed"])(()=>{let e=r.vnode.vParent||r.parent;while(e&&!e.tableId&&!e.columnId)e=e.vnode.vParent||e.parent;return e}),p=Object(u["computed"])(()=>{const{store:e}=r.parent;if(!e)return!1;const{treeData:t}=e.states,n=t.value;return n&&Q()(n).length>0}),f=Object(u["ref"])(cO(e.width)),m=Object(u["ref"])(lO(e.minWidth)),v=e=>(f.value&&(e.width=f.value),m.value&&(e.minWidth=m.value),!f.value&&m.value&&(e.width=void 0),e.minWidth||(e.minWidth=80),e.realWidth=Number(Object(h["g"])(e.width)?e.minWidth:e.width),e),_=e=>{var t;const n=e.type,r=IM[n]||{};Y()(t=Q()(r)).call(t,t=>{const n=r[t];"className"===t||Object(h["g"])(n)||(e[t]=n)});const o=TM(n);if(o){const t=`${Object(u["unref"])(l.namespace)}-${o}`;e.className=e.className?`${e.className} ${t}`:t}return e},b=e=>{function t(e){var t;"ElTableColumn"===(null===e||void 0===e||null===(t=e.type)||void 0===t?void 0:t.name)&&(e.vParent=r)}Object(te["isArray"])(e)?Y()(e).call(e,e=>t(e)):t(e)},y=o=>{e.renderHeader?Object(a["a"])("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==o.type&&(o.renderHeader=e=>{if(r.columnConfig.value["label"],t.header){const n=t.header(e);if(CO(n))return Object(u["h"])(u["Fragment"],n)}return Object(u["createTextVNode"])(o.label)}),t["filter-icon"]&&(o.renderFilterIcon=e=>Object(u["renderSlot"])(t,"filter-icon",e)),t.expand&&(o.renderExpand=e=>Object(u["renderSlot"])(t,"expand",e));let i=o.renderCell;return"expand"===o.type?(o.renderCell=e=>Object(u["h"])("div",{class:"cell"},[i(e)]),n.value.renderExpanded=e=>t.default?t.default(e):t.default):(i=i||EM,o.renderCell=e=>{var r;let a=null;if(t.default){const n=t.default(e);a=w()(n).call(n,e=>e.type!==u["Comment"])?n:i(e)}else a=i(e);const{columns:s}=n.value.store.states,c=ya()(r=s.value).call(r,e=>"default"===e.type),d=jM(e,p.value&&e.cellIndex===c),f={class:"cell",style:{}};return o.showOverflowTooltip&&(f.class=`${f.class} ${Object(u["unref"])(l.namespace)}-tooltip`,f.style={width:(e.column.realWidth||Number(e.column.width))-1+"px"}),b(a),Object(u["h"])("div",f,[d,a])}),o},O=(...t)=>fa()(t).call(t,(t,n)=>(Object(te["isArray"])(n)&&Y()(n).call(n,n=>{t[n]=e[n]}),t),{}),M=(e,t)=>B()(Array.prototype).call(e,t),k=()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)};return{columnId:o,realAlign:s,isSubColumn:i,realHeaderAlign:c,columnOrTableParent:d,setColumnWidth:v,setColumnForcedProps:_,setColumnRenders:y,getPropsData:O,getColumnElIndex:M,updateColumnOrder:k}}var NM={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>Ht()(e).call(e,e=>{var t;return ue()(t=["ascending","descending",null]).call(t,e)})}};let RM=1;var xM=Object(u["defineComponent"])({name:"ElTableColumn",components:{ElCheckbox:ks},props:NM,setup(e,{slots:t}){const n=Object(u["getCurrentInstance"])(),r=Object(ki["c"])("table"),o=Object(u["ref"])({}),a=Object(u["computed"])(()=>{let e=n.parent;while(e&&!e.tableId)e=e.parent;return e}),{registerNormalWatchers:i,registerComplexWatchers:s}=LM(a,e),{columnId:c,isSubColumn:l,realHeaderAlign:d,columnOrTableParent:p,setColumnWidth:f,setColumnForcedProps:m,setColumnRenders:v,getPropsData:g,getColumnElIndex:_,realAlign:b,updateColumnOrder:y}=AM(e,t,a),O=p.value;c.value=`${"tableId"in O&&O.tableId||"columnId"in O&&O.columnId}_column_${RM++}`,Object(u["onBeforeMount"])(()=>{var t,u,p,_;l.value=a.value!==O;const y=e.type||"default",M=""===e.sortable||e.sortable,k="selection"!==y&&(Object(h["g"])(e.showOverflowTooltip)?null!==(t=O.props.showOverflowTooltip)&&void 0!==t?t:null===(u=r.value)||void 0===u?void 0:u.showOverflowTooltip:e.showOverflowTooltip),C=Object(h["g"])(e.tooltipFormatter)?null!==(p=O.props.tooltipFormatter)&&void 0!==p?p:null===(_=r.value)||void 0===_?void 0:_.tooltipFormatter:e.tooltipFormatter,w={...SM[y],id:c.value,type:y,property:e.prop||e.property,align:b,headerAlign:d,showOverflowTooltip:k,tooltipFormatter:C,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:M,index:e.index,rawColumnKey:n.vnode.key};let S=g(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);S=sO(w,S),S=dO(v,f,m)(S),o.value=S,i(),s()}),Object(u["onMounted"])(()=>{var e,t;const r=p.value,i=l.value?null===(e=r.vnode.el)||void 0===e?void 0:e.children:null===(t=r.refs.hiddenColumns)||void 0===t?void 0:t.children,s=()=>_(i||[],n.vnode.el);o.value.getColumnIndex=s,s()>-1&&a.value.store.commit("insertColumn",o.value,l.value?"columnConfig"in r&&r.columnConfig.value:null,y)}),Object(u["onBeforeUnmount"])(()=>{const e=o.value.getColumnIndex;(e?e():-1)>-1&&a.value.store.commit("removeColumn",o.value,l.value?"columnConfig"in O&&O.columnConfig.value:null,y)}),n.columnId=c.value,n.columnConfig=o},render(){try{var e,t;const o=null===(e=(t=this.$slots).default)||void 0===e?void 0:e.call(t,{row:{},column:{},$index:-1}),a=[];if(Object(te["isArray"])(o))for(const e of o){var n,r;"ElTableColumn"===(null===(n=e.type)||void 0===n?void 0:n.name)||2&e.shapeFlag?a.push(e):e.type===u["Fragment"]&&Object(te["isArray"])(e.children)&&Y()(r=e.children).call(r,e=>{1024===(null===e||void 0===e?void 0:e.patchFlag)||Object(te["isString"])(null===e||void 0===e?void 0:e.children)||a.push(e)})}return Object(u["h"])("div",a)}catch{return Object(u["h"])("div",[])}}}),PM=xM;const UM=Object(r["a"])(CM,{TableColumn:PM}),VM=Object(r["d"])(PM);let BM=function(e){return e["ASC"]="asc",e["DESC"]="desc",e}({}),FM=function(e){return e["LEFT"]="left",e["CENTER"]="center",e["RIGHT"]="right",e}({}),GM=function(e){return e["LEFT"]="left",e["RIGHT"]="right",e}({});const HM={[BM.ASC]:BM.DESC,[BM.DESC]:BM.ASC},YM=(BM.ASC,BM.DESC,xe()("placeholder")),zM=(e,t,n)=>{var r,o,a;const i={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:null!==(r=e.flexGrow)&&void 0!==r?r:0,flexShrink:null!==(o=e.flexShrink)&&void 0!==o?o:1}},s={...null!==(a=e.style)&&void 0!==a?a:{},...i,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(s.maxWidth=e.maxWidth),e.minWidth&&(s.minWidth=e.minWidth)),s};function qM(e,t,n){const r=Object(u["computed"])(()=>{var e;return J()(e=Object(u["unref"])(t)).call(e,(e,t)=>{var n,r;return{...e,key:null!==(n=null!==(r=e.key)&&void 0!==r?r:e.dataKey)&&void 0!==n?n:t}})}),o=Object(u["computed"])(()=>{var e;return K()(e=Object(u["unref"])(r)).call(e,e=>!e.hidden)}),a=Object(u["computed"])(()=>{var e;return K()(e=Object(u["unref"])(o)).call(e,e=>"left"===e.fixed||!0===e.fixed)}),i=Object(u["computed"])(()=>{var e;return K()(e=Object(u["unref"])(o)).call(e,e=>"right"===e.fixed)}),s=Object(u["computed"])(()=>{var e;return K()(e=Object(u["unref"])(o)).call(e,e=>!e.fixed)}),c=Object(u["computed"])(()=>{var e,t,n;const r=[];return Y()(e=Object(u["unref"])(a)).call(e,e=>{r.push({...e,placeholderSign:YM})}),Y()(t=Object(u["unref"])(s)).call(t,e=>{r.push(e)}),Y()(n=Object(u["unref"])(i)).call(n,e=>{r.push({...e,placeholderSign:YM})}),r}),l=Object(u["computed"])(()=>Object(u["unref"])(a).length||Object(u["unref"])(i).length),d=Object(u["computed"])(()=>{var t;return fa()(t=Object(u["unref"])(r)).call(t,(t,r)=>(t[r.key]=zM(r,Object(u["unref"])(n),e.fixed),t),{})}),p=Object(u["computed"])(()=>{var e;return fa()(e=Object(u["unref"])(o)).call(e,(e,t)=>e+t.width,0)}),f=e=>{var t;return La()(t=Object(u["unref"])(r)).call(t,t=>t.key===e)},h=e=>Object(u["unref"])(d)[e],m=(e,t)=>{e.width=t};function v(t){var n;const{key:r}=t.currentTarget.dataset;if(!r)return;const{sortState:o,sortBy:a}=e;let i=BM.ASC;i=Object(te["isObject"])(o)?HM[o[r]]:HM[a.order],null===(n=e.onColumnSort)||void 0===n||n.call(e,{column:f(r),key:r,order:i})}return{columns:r,columnsStyles:d,columnsTotalWidth:p,fixedColumnsOnLeft:a,fixedColumnsOnRight:i,hasFixedColumns:l,mainColumns:c,normalColumns:s,visibleColumns:o,getColumn:f,getColumnStyle:h,updateColumnWidth:m,onColumnSorted:v}}const WM=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:o})=>{const a=Object(u["ref"])({scrollLeft:0,scrollTop:0});function i(e){var o,a,i;const{scrollTop:s}=e;null===(o=t.value)||void 0===o||o.scrollTo(e),null===(a=n.value)||void 0===a||a.scrollToTop(s),null===(i=r.value)||void 0===i||i.scrollToTop(s)}function s(e){a.value=e,i(e)}function c(e){a.value.scrollTop=e,i(Object(u["unref"])(a))}function l(e){var n,r;a.value.scrollLeft=e,null===(n=t.value)||void 0===n||null===(r=n.scrollTo)||void 0===r||r.call(n,Object(u["unref"])(a))}function d(t){var n;s(t),null===(n=e.onScroll)||void 0===n||n.call(e,t)}function p({scrollTop:e}){const{scrollTop:t}=Object(u["unref"])(a);e!==t&&c(e)}function f(e,n="auto"){var r;null===(r=t.value)||void 0===r||r.scrollToRow(e,n)}return Object(u["watch"])(()=>Object(u["unref"])(a).scrollTop,(e,t)=>{e>t&&o()}),{scrollPos:a,scrollTo:s,scrollToLeft:l,scrollToTop:c,scrollToRow:f,onScroll:d,onVerticalScroll:p}},KM=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:o,ns:a,isScrolling:i})=>{const s=Object(u["getCurrentInstance"])(),{emit:c}=s,l=Object(u["shallowRef"])(!1),d=Object(u["ref"])(e.defaultExpandedRowKeys||[]),p=Object(u["ref"])(-1),f=Object(u["shallowRef"])(null),m=Object(u["ref"])({}),v=Object(u["ref"])({}),g=Object(u["shallowRef"])({}),_=Object(u["shallowRef"])({}),b=Object(u["shallowRef"])({}),y=Object(u["computed"])(()=>Object(h["d"])(e.estimatedRowHeight));function O(t){var n;null===(n=e.onRowsRendered)||void 0===n||n.call(e,t),t.rowCacheEnd>Object(u["unref"])(p)&&(p.value=t.rowCacheEnd)}function M({hovered:e,rowKey:t}){var n;i.value||Y()(n=o.vnode.el.querySelectorAll(`[rowkey="${String(t)}"]`)).call(n,t=>{e?t.classList.add(a.is("hovered")):t.classList.remove(a.is("hovered"))})}function k({expanded:t,rowData:n,rowIndex:r,rowKey:i}){var s,l;const p=[...Object(u["unref"])(d)],f=B()(p).call(p,i);t?-1===f&&p.push(i):f>-1&&U()(p).call(p,f,1),d.value=p,c("update:expandedRowKeys",p),null===(s=e.onRowExpand)||void 0===s||s.call(e,{expanded:t,rowData:n,rowIndex:r,rowKey:i}),null===(l=e.onExpandedRowsChange)||void 0===l||l.call(e,p),o.vnode.el.querySelector(`.${a.is("hovered")}[rowkey="${String(i)}"]`)&&Object(u["nextTick"])(()=>M({hovered:!0,rowKey:i}))}const C=Object(ne["debounce"])(()=>{var e,o,a,i;l.value=!0,m.value={...Object(u["unref"])(m),...Object(u["unref"])(v)},w(Object(u["unref"])(f),!1),v.value={},f.value=null,null===(e=t.value)||void 0===e||e.forceUpdate(),null===(o=n.value)||void 0===o||o.forceUpdate(),null===(a=r.value)||void 0===a||a.forceUpdate(),null===(i=s.proxy)||void 0===i||i.$forceUpdate(),l.value=!1},0);function w(e,o=!1){var a;Object(u["unref"])(y)&&Y()(a=[t,n,r]).call(a,t=>{const n=Object(u["unref"])(t);n&&n.resetAfterRowIndex(e,o)})}function S(e,t,n){const r=Object(u["unref"])(f);(null===r||r>n)&&(f.value=n),v.value[e]=t}function T({rowKey:e,height:t,rowIndex:n},r){var o;r?r===GM.RIGHT?b.value[e]=t:g.value[e]=t:_.value[e]=t;const a=Math.max(...J()(o=[g,b,_]).call(o,t=>t.value[e]||0));Object(u["unref"])(m)[e]!==a&&(S(e,a,n),C())}return{expandedRowKeys:d,lastRenderedRowIndex:p,isDynamic:y,isResetting:l,rowHeights:m,resetAfterIndex:w,onRowExpanded:k,onRowHovered:M,onRowsRendered:O,onRowHeightChange:T}},$M=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const o=Object(u["ref"])({}),a=Object(u["computed"])(()=>{const n={},{data:r,rowKey:a}=e,i=Object(u["unref"])(t);if(!i||!i.length)return r;const s=[],c=new q.a;Y()(i).call(i,e=>c.add(e));let l=It()(r).call(r);Y()(l).call(l,e=>n[e[a]]=0);while(l.length>0){const e=l.shift();var d;if(s.push(e),c.has(e[a])&&Object(te["isArray"])(e.children)&&e.children.length>0)l=[...e.children,...l],Y()(d=e.children).call(d,t=>n[t[a]]=n[e[a]]+1)}return o.value=n,s}),i=Object(u["computed"])(()=>{const{data:t,expandColumnKey:n}=e;return n?Object(u["unref"])(a):t});return Object(u["watch"])(i,(e,t)=>{e!==t&&(n.value=-1,r(0,!0))}),{data:i,depthMap:o}},JM=(e,t)=>e+t,XM=e=>Object(te["isArray"])(e)?fa()(e).call(e,JM,0):e,QM=(e,t,n={})=>Object(te["isFunction"])(e)?e(t):null!==e&&void 0!==e?e:n,ZM=e=>{var t;return Y()(t=["width","maxWidth","minWidth","height"]).call(t,t=>{e[t]=Object(i["b"])(e[t])}),e},ek=e=>Object(u["isVNode"])(e)?t=>Object(u["h"])(e,t):e,tk=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:o})=>{const a=Object(u["computed"])(()=>{const{fixed:n,width:r,vScrollbarSize:o}=e,a=r-o;return n?Math.max(Math.round(Object(u["unref"])(t)),a):a}),s=Object(u["computed"])(()=>{const{height:t=0,maxHeight:r=0,footerHeight:o,hScrollbarSize:a}=e;if(r>0){const e=Object(u["unref"])(m),t=Object(u["unref"])(n),i=Object(u["unref"])(f)+e+t+a;return Math.min(i,r-o)}return t-o}),c=Object(u["computed"])(()=>{const{maxHeight:t}=e,r=Object(u["unref"])(s);if(Object(h["d"])(t)&&t>0)return r;const o=Object(u["unref"])(n)+Object(u["unref"])(f)+Object(u["unref"])(m);return Math.min(r,o)}),l=e=>e.width,d=Object(u["computed"])(()=>{var e;return XM(J()(e=Object(u["unref"])(r)).call(e,l))}),p=Object(u["computed"])(()=>{var e;return XM(J()(e=Object(u["unref"])(o)).call(e,l))}),f=Object(u["computed"])(()=>XM(e.headerHeight)),m=Object(u["computed"])(()=>{var t;return((null===(t=e.fixedData)||void 0===t?void 0:t.length)||0)*e.rowHeight}),v=Object(u["computed"])(()=>Object(u["unref"])(s)-Object(u["unref"])(f)-Object(u["unref"])(m)),g=Object(u["computed"])(()=>{const{style:t={},height:n,width:r}=e;return ZM({...t,height:n,width:r})});return{bodyWidth:a,fixedTableHeight:c,mainTableHeight:s,leftTableWidth:d,rightTableWidth:p,windowHeight:v,footerHeight:Object(u["computed"])(()=>ZM({height:e.footerHeight})),emptyStyle:Object(u["computed"])(()=>({top:Object(i["b"])(Object(u["unref"])(f)),bottom:Object(i["b"])(e.footerHeight),width:Object(i["b"])(e.width)})),rootStyle:g,headerHeight:f}};function nk(e){const t=Object(u["ref"])(),n=Object(u["ref"])(),r=Object(u["ref"])(),{columns:o,columnsStyles:a,columnsTotalWidth:i,fixedColumnsOnLeft:s,fixedColumnsOnRight:c,hasFixedColumns:l,mainColumns:d,onColumnSorted:p}=qM(e,Object(u["toRef"])(e,"columns"),Object(u["toRef"])(e,"fixed")),{scrollTo:f,scrollToLeft:m,scrollToTop:v,scrollToRow:_,onScroll:b,onVerticalScroll:y,scrollPos:O}=WM(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:Q}),M=Object(g["d"])("table-v2"),k=Object(u["getCurrentInstance"])(),C=Object(u["shallowRef"])(!1),{expandedRowKeys:w,lastRenderedRowIndex:S,isDynamic:T,isResetting:I,rowHeights:E,resetAfterIndex:j,onRowExpanded:D,onRowHeightChange:L,onRowHovered:A,onRowsRendered:N}=KM(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:k,ns:M,isScrolling:C}),{data:R,depthMap:x}=$M(e,{expandedRowKeys:w,lastRenderedRowIndex:S,resetAfterIndex:j}),P=Object(u["computed"])(()=>{var t;const{estimatedRowHeight:n,rowHeight:r}=e,o=Object(u["unref"])(R);return Object(h["d"])(n)?fa()(t=Tm()(Object(u["unref"])(E))).call(t,(e,t)=>e+t,0):o.length*r}),{bodyWidth:U,fixedTableHeight:V,mainTableHeight:B,leftTableWidth:F,rightTableWidth:G,windowHeight:H,footerHeight:Y,emptyStyle:z,rootStyle:q,headerHeight:W}=tk(e,{columnsTotalWidth:i,fixedColumnsOnLeft:s,fixedColumnsOnRight:c,rowsHeight:P}),K=Object(u["ref"])(),$=Object(u["computed"])(()=>{const t=0===Object(u["unref"])(R).length;return Object(te["isArray"])(e.fixedData)?0===e.fixedData.length&&t:t});function J(t){const{estimatedRowHeight:n,rowHeight:r,rowKey:o}=e;return n?Object(u["unref"])(E)[Object(u["unref"])(R)[t][o]]||n:r}const X=Object(u["ref"])(!1);function Q(){const{onEndReached:t}=e;if(!t)return;const{scrollTop:n}=Object(u["unref"])(O),r=Object(u["unref"])(P),o=r-(n+Object(u["unref"])(H))+e.hScrollbarSize;!X.value&&Object(u["unref"])(S)>=0&&r<=n+Object(u["unref"])(B)-Object(u["unref"])(W)?(X.value=!0,t(o)):X.value=!1}return Object(u["watch"])(()=>Object(u["unref"])(P),()=>X.value=!1),Object(u["watch"])(()=>e.expandedRowKeys,e=>w.value=e,{deep:!0}),{columns:o,containerRef:K,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:T,isResetting:I,isScrolling:C,hasFixedColumns:l,columnsStyles:a,columnsTotalWidth:i,data:R,expandedRowKeys:w,depthMap:x,fixedColumnsOnLeft:s,fixedColumnsOnRight:c,mainColumns:d,bodyWidth:U,emptyStyle:z,rootStyle:q,footerHeight:Y,mainTableHeight:B,fixedTableHeight:V,leftTableWidth:F,rightTableWidth:G,showEmpty:$,getRowHeight:J,onColumnSorted:p,onRowHovered:A,onRowExpanded:D,onRowsRendered:N,onRowHeightChange:L,scrollTo:f,scrollToLeft:m,scrollToTop:v,scrollToRow:_,onScroll:b,onVerticalScroll:y}}const rk=xe()("tableV2"),ok="tableV2GridScrollLeft",ak=String,ik={type:Object(c["c"])(Array),required:!0},sk=(Object(c["c"])(Object),{type:Object(c["c"])(Array)}),ck={...sk,required:!0},lk=String,uk={type:Object(c["c"])(Array),default:()=>Object(Bc["a"])([])},dk={type:Number,required:!0},pk={type:Object(c["c"])([String,Number,xe.a]),default:"id"},fk={type:Object(c["c"])(Object)},hk=Object(c["b"])({class:String,columns:ik,columnsStyles:{type:Object(c["c"])(Object),required:!0},depth:Number,expandColumnKey:lk,estimatedRowHeight:{...ib.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:Object(c["c"])(Function)},onRowHover:{type:Object(c["c"])(Function)},onRowHeightChange:{type:Object(c["c"])(Function)},rowData:{type:Object(c["c"])(Object),required:!0},rowEventHandlers:{type:Object(c["c"])(Object)},rowIndex:{type:Number,required:!0},rowKey:pk,style:{type:Object(c["c"])(Object)}}),mk={type:Number,required:!0},vk=Object(c["b"])({class:String,columns:ik,fixedHeaderData:{type:Object(c["c"])(Array)},headerData:{type:Object(c["c"])(Array),required:!0},headerHeight:{type:Object(c["c"])([Number,Array]),default:50},rowWidth:mk,rowHeight:{type:Number,default:50},height:mk,width:mk}),gk=Object(c["b"])({columns:ik,data:ck,fixedData:sk,estimatedRowHeight:hk.estimatedRowHeight,width:dk,height:dk,headerWidth:dk,headerHeight:vk.headerHeight,bodyWidth:dk,rowHeight:dk,cache:nb.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:ib.scrollbarAlwaysOn,scrollbarStartGap:ib.scrollbarStartGap,scrollbarEndGap:ib.scrollbarEndGap,class:ak,style:fk,containerStyle:fk,getRowHeight:{type:Object(c["c"])(Function),required:!0},rowKey:hk.rowKey,onRowsRendered:{type:Object(c["c"])(Function)},onScroll:{type:Object(c["c"])(Function)}}),_k=Object(c["b"])({cache:gk.cache,estimatedRowHeight:hk.estimatedRowHeight,rowKey:pk,headerClass:{type:Object(c["c"])([String,Function])},headerProps:{type:Object(c["c"])([Object,Function])},headerCellProps:{type:Object(c["c"])([Object,Function])},headerHeight:vk.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:Object(c["c"])([String,Function])},rowProps:{type:Object(c["c"])([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:Object(c["c"])([Object,Function])},columns:ik,data:ck,dataGetter:{type:Object(c["c"])(Function)},fixedData:sk,expandColumnKey:hk.expandColumnKey,expandedRowKeys:uk,defaultExpandedRowKeys:uk,class:ak,fixed:Boolean,style:{type:Object(c["c"])(Object)},width:dk,height:dk,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:ib.hScrollbarSize,vScrollbarSize:ib.vScrollbarSize,scrollbarAlwaysOn:sb.alwaysOn,sortBy:{type:Object(c["c"])(Object),default:()=>({})},sortState:{type:Object(c["c"])(Object),default:void 0},onColumnSort:{type:Object(c["c"])(Function)},onExpandedRowsChange:{type:Object(c["c"])(Function)},onEndReached:{type:Object(c["c"])(Function)},onRowExpand:hk.onRowExpand,onScroll:gk.onScroll,onRowsRendered:gk.onRowsRendered,rowEventHandlers:hk.rowEventHandlers}),bk=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:r},o)=>{let a=null,i=0,s=0;const c=(o,a)=>{const i=o<0&&t.value||o>0&&e.value,s=a<0&&r.value||a>0&&n.value;return i||s},l=e=>{Object(bo["a"])(a);let t=e.deltaX,n=e.deltaY;Math.abs(t)>Math.abs(n)?n=0:t=0,e.shiftKey&&0!==n&&(t=n,n=0),c(t,n)?0!==e.deltaX&&0===t&&e.preventDefault():(i+=t,s+=n,e.preventDefault(),a=Object(bo["b"])(()=>{o(i,s),i=0,s=0}))};return{hasReachedEdge:c,onWheel:l}},yk=(e,t,n,r,o,a,i)=>{const s=Object(u["ref"])(0),c=Object(u["ref"])(0);let l,d=0,p=0;const f=e=>{Object(bo["a"])(l),s.value=e.touches[0].clientX,c.value=e.touches[0].clientY,d=0,p=0},h=e=>{e.preventDefault(),Object(bo["a"])(l),d+=s.value-e.touches[0].clientX,p+=c.value-e.touches[0].clientY,s.value=e.touches[0].clientX,c.value=e.touches[0].clientY,l=Object(bo["b"])(()=>{const e=r.value-Object(u["unref"])(a),s=o.value-Object(u["unref"])(i);n({scrollLeft:Math.min(t.value.scrollLeft+d,e),scrollTop:Math.min(t.value.scrollTop+p,s)}),d=0,p=0})};return Object(_["useEventListener"])(e,"touchstart",f,{passive:!0}),Object(_["useEventListener"])(e,"touchmove",h,{passive:!1}),{touchStartX:s,touchStartY:c,handleTouchStart:f,handleTouchMove:h}},Ok=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:a,getEstimatedTotalWidth:i,getColumnOffset:c,getRowOffset:l,getRowPosition:d,getRowStartIndexForOffset:p,getRowStopIndexForStartIndex:f,initCache:m,injectToInstance:v,validateProps:b})=>Object(u["defineComponent"])({name:null!==e&&void 0!==e?e:"ElVirtualList",props:ib,emits:[y_,O_],setup(e,{emit:y,expose:O,slots:M}){const k=Object(g["d"])("vl");b(e);const C=Object(u["getCurrentInstance"])(),w=Object(u["ref"])(m(e,C));null===v||void 0===v||v(C,w);const S=Object(u["ref"])(),T=Object(u["ref"])(),I=Object(u["ref"])(),E=Object(u["ref"])(),j=Object(u["ref"])({isScrolling:!1,scrollLeft:Object(h["d"])(e.initScrollLeft)?e.initScrollLeft:0,scrollTop:Object(h["d"])(e.initScrollTop)?e.initScrollTop:0,updateRequested:!1,xAxisScrollDir:M_,yAxisScrollDir:M_}),D=q_(),L=Object(u["computed"])(()=>ke()(""+e.height,10)),A=Object(u["computed"])(()=>ke()(""+e.width,10)),N=Object(u["computed"])(()=>{const{totalColumn:t,totalRow:n,columnCache:a}=e,{isScrolling:i,xAxisScrollDir:s,scrollLeft:c}=Object(u["unref"])(j);if(0===t||0===n)return[0,0,0,0];const l=r(e,c,Object(u["unref"])(w)),d=o(e,l,c,Object(u["unref"])(w)),p=i&&s!==k_?1:Math.max(1,a),f=i&&s!==M_?1:Math.max(1,a);return[Math.max(0,l-p),Math.max(0,Math.min(t-1,d+f)),l,d]}),R=Object(u["computed"])(()=>{const{totalColumn:t,totalRow:n,rowCache:r}=e,{isScrolling:o,yAxisScrollDir:a,scrollTop:i}=Object(u["unref"])(j);if(0===t||0===n)return[0,0,0,0];const s=p(e,i,Object(u["unref"])(w)),c=f(e,s,i,Object(u["unref"])(w)),l=o&&a!==k_?1:Math.max(1,r),d=o&&a!==M_?1:Math.max(1,r);return[Math.max(0,s-l),Math.max(0,Math.min(n-1,c+d)),s,c]}),x=Object(u["computed"])(()=>a(e,Object(u["unref"])(w))),P=Object(u["computed"])(()=>i(e,Object(u["unref"])(w))),U=Object(u["computed"])(()=>{var t;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:e.direction,height:Object(h["d"])(e.height)?e.height+"px":e.height,width:Object(h["d"])(e.width)?e.width+"px":e.width},null!==(t=e.style)&&void 0!==t?t:{}]}),V=Object(u["computed"])(()=>{const e=Object(u["unref"])(P)+"px";return{height:Object(u["unref"])(x)+"px",pointerEvents:Object(u["unref"])(j).isScrolling?"none":void 0,width:e,margin:0,boxSizing:"border-box"}}),B=()=>{const{totalColumn:t,totalRow:n}=e;if(t>0&&n>0){const[e,t,n,r]=Object(u["unref"])(N),[o,a,i,s]=Object(u["unref"])(R);y(y_,{columnCacheStart:e,columnCacheEnd:t,rowCacheStart:o,rowCacheEnd:a,columnVisibleStart:n,columnVisibleEnd:r,rowVisibleStart:i,rowVisibleEnd:s})}const{scrollLeft:r,scrollTop:o,updateRequested:a,xAxisScrollDir:i,yAxisScrollDir:s}=Object(u["unref"])(j);y(O_,{xAxisScrollDir:i,scrollLeft:r,yAxisScrollDir:s,scrollTop:o,updateRequested:a})},F=t=>{const{clientHeight:n,clientWidth:r,scrollHeight:o,scrollLeft:a,scrollTop:i,scrollWidth:s}=t.currentTarget,c=Object(u["unref"])(j);if(c.scrollTop===i&&c.scrollLeft===a)return;let l=a;if(B_(e.direction))switch(G_()){case A_:l=-a;break;case R_:l=s-r-a;break}j.value={...c,isScrolling:!0,scrollLeft:l,scrollTop:Math.max(0,Math.min(i,o-n)),updateRequested:!0,xAxisScrollDir:U_(c.scrollLeft,l),yAxisScrollDir:U_(c.scrollTop,i)},Object(u["nextTick"])(()=>Q()),Z(),B()},G=(e,t)=>{const n=Object(u["unref"])(L),r=(x.value-n)/t*e;z({scrollTop:Math.min(x.value-n,r)})},H=(e,t)=>{const n=Object(u["unref"])(A),r=(P.value-n)/t*e;z({scrollLeft:Math.min(P.value-n,r)})},{onWheel:Y}=bk({atXStartEdge:Object(u["computed"])(()=>j.value.scrollLeft<=0),atXEndEdge:Object(u["computed"])(()=>j.value.scrollLeft>=P.value-Object(u["unref"])(A)),atYStartEdge:Object(u["computed"])(()=>j.value.scrollTop<=0),atYEndEdge:Object(u["computed"])(()=>j.value.scrollTop>=x.value-Object(u["unref"])(L))},(e,t)=>{var n,r,o,a;null===(n=T.value)||void 0===n||null===(r=n.onMouseUp)||void 0===r||r.call(n),null===(o=I.value)||void 0===o||null===(a=o.onMouseUp)||void 0===a||a.call(o);const i=Object(u["unref"])(A),s=Object(u["unref"])(L);z({scrollLeft:Math.min(j.value.scrollLeft+e,P.value-i),scrollTop:Math.min(j.value.scrollTop+t,x.value-s)})});Object(_["useEventListener"])(S,"wheel",Y,{passive:!1});const z=({scrollLeft:e=j.value.scrollLeft,scrollTop:t=j.value.scrollTop})=>{e=Math.max(e,0),t=Math.max(t,0);const n=Object(u["unref"])(j);t===n.scrollTop&&e===n.scrollLeft||(j.value={...n,xAxisScrollDir:U_(n.scrollLeft,e),yAxisScrollDir:U_(n.scrollTop,t),scrollLeft:e,scrollTop:t,updateRequested:!0},Object(u["nextTick"])(()=>Q()),Z(),B())},{touchStartX:q,touchStartY:W,handleTouchStart:K,handleTouchMove:$}=yk(S,j,z,P,x,A,L),J=(t=0,n=0,r=C_)=>{const o=Object(u["unref"])(j);n=Math.max(0,Math.min(n,e.totalColumn-1)),t=Math.max(0,Math.min(t,e.totalRow-1));const d=Object(s["b"])(k.namespace.value),p=Object(u["unref"])(w),f=a(e,p),h=i(e,p);z({scrollLeft:c(e,n,r,o.scrollLeft,p,h>e.width?d:0),scrollTop:l(e,t,r,o.scrollTop,p,f>e.height?d:0)})},X=(r,o)=>{const{columnWidth:a,direction:i,rowHeight:s}=e,c=D.value(t&&a,t&&s,t&&i),l=`${r},${o}`;if(Object(te["hasOwn"])(c,l))return c[l];{const[,t]=n(e,o,Object(u["unref"])(w)),a=Object(u["unref"])(w),s=B_(i),[p,f]=d(e,r,a),[h]=n(e,o,a);return c[l]={position:"absolute",left:s?void 0:t+"px",right:s?t+"px":void 0,top:f+"px",height:p+"px",width:h+"px"},c[l]}},Q=()=>{j.value.isScrolling=!1,Object(u["nextTick"])(()=>{D.value(-1,null,null)})};Object(u["onMounted"])(()=>{if(!_["isClient"])return;const{initScrollLeft:t,initScrollTop:n}=e,r=Object(u["unref"])(S);r&&(Object(h["d"])(t)&&(r.scrollLeft=t),Object(h["d"])(n)&&(r.scrollTop=n)),B()});const Z=()=>{const{direction:t}=e,{scrollLeft:n,scrollTop:r,updateRequested:o}=Object(u["unref"])(j),a=Object(u["unref"])(S);if(o&&a){if(t===L_)switch(G_()){case A_:a.scrollLeft=-n;break;case N_:a.scrollLeft=n;break;default:{const{clientWidth:e,scrollWidth:t}=a;a.scrollLeft=t-e-n;break}}else a.scrollLeft=Math.max(0,n);a.scrollTop=Math.max(0,r)}},{resetAfterColumnIndex:ee,resetAfterRowIndex:ne,resetAfter:re}=C.proxy;O({windowRef:S,innerRef:E,getItemStyleCache:D,touchStartX:q,touchStartY:W,handleTouchStart:K,handleTouchMove:$,scrollTo:z,scrollToItem:J,states:j,resetAfterColumnIndex:ee,resetAfterRowIndex:ne,resetAfter:re});const oe=()=>{const{scrollbarAlwaysOn:t,scrollbarStartGap:n,scrollbarEndGap:r,totalColumn:o,totalRow:a}=e,i=Object(u["unref"])(A),s=Object(u["unref"])(L),c=Object(u["unref"])(P),l=Object(u["unref"])(x),{scrollLeft:d,scrollTop:p}=Object(u["unref"])(j);return{horizontalScrollbar:Object(u["h"])(cb,{ref:T,alwaysOn:t,startGap:n,endGap:r,class:k.e("horizontal"),clientSize:i,layout:"horizontal",onScroll:H,ratio:100*i/c,scrollFrom:d/(c-i),total:a,visible:!0}),verticalScrollbar:Object(u["h"])(cb,{ref:I,alwaysOn:t,startGap:n,endGap:r,class:k.e("vertical"),clientSize:s,layout:"vertical",onScroll:G,ratio:100*s/l,scrollFrom:p/(l-s),total:o,visible:!0})}},ae=()=>{const[t,n]=Object(u["unref"])(N),[r,o]=Object(u["unref"])(R),{data:a,totalColumn:i,totalRow:s,useIsScrolling:c,itemKey:l}=e,d=[];if(s>0&&i>0)for(let e=r;e<=o;e++)for(let r=t;r<=n;r++){var p;const t=l({columnIndex:r,data:a,rowIndex:e});d.push(Object(u["h"])(u["Fragment"],{key:t},null===(p=M.default)||void 0===p?void 0:p.call(M,{columnIndex:r,data:a,isScrolling:c?Object(u["unref"])(j).isScrolling:void 0,style:X(e,r),rowIndex:e})))}return d},ie=()=>{const t=Object(u["resolveDynamicComponent"])(e.innerElement),n=ae();return[Object(u["h"])(t,Object(u["mergeProps"])(e.innerProps,{style:Object(u["unref"])(V),ref:E}),Object(te["isString"])(t)?n:{default:()=>n})]},se=()=>{const t=Object(u["resolveDynamicComponent"])(e.containerElement),{horizontalScrollbar:n,verticalScrollbar:r}=oe(),o=ie();return Object(u["h"])("div",{key:0,class:k.e("wrapper"),role:e.role},[Object(u["h"])(t,{class:e.className,style:Object(u["unref"])(U),onScroll:F,ref:S},Object(te["isString"])(t)?o:{default:()=>o}),n,r])};return se}}),Mk="ElFixedSizeGrid",kk=Ok({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},r,o,a,i,s)=>{n=Number(n);const c=Math.max(0,e*t-n),l=Math.min(c,r*t),u=Math.max(0,r*t-n+s+t);switch("smart"===o&&(o=a>=u-n&&a<=l+n?C_:T_),o){case S_:return l;case I_:return u;case T_:{const e=Math.round(u+(l-u)/2);return e<Math.ceil(n/2)?0:e>c+Math.floor(n/2)?c:e}case C_:default:return a>=u&&a<=l?a:u>l||a<u?u:l}},getRowOffset:({rowHeight:e,height:t,totalRow:n},r,o,a,i,s)=>{t=Number(t);const c=Math.max(0,n*e-t),l=Math.min(c,r*e),u=Math.max(0,r*e-t+s+e);switch(o===w_&&(o=a>=u-t&&a<=l+t?C_:T_),o){case S_:return l;case I_:return u;case T_:{const e=Math.round(u+(l-u)/2);return e<Math.ceil(t/2)?0:e>c+Math.floor(t/2)?c:e}case C_:default:return a>=u&&a<=l?a:u>l||a<u?u:l}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},r,o)=>{const a=r*e,i=Math.ceil((n+o-a)/e);return Math.max(0,Math.min(t-1,r+i-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},r,o)=>{const a=r*e,i=Math.ceil((n+o-a)/e);return Math.max(0,Math.min(t-1,r+i-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{Object(h["d"])(e)||Object(a["b"])(Mk,`\n "columnWidth" must be passed as number,\n instead ${typeof e} was given.\n `),Object(h["d"])(t)||Object(a["b"])(Mk,`\n "columnWidth" must be passed as number,\n instead ${typeof t} was given.\n `)}}),{max:Ck,min:wk,floor:Sk}=Math,Tk="ElDynamicSizeGrid",Ik={column:"columnWidth",row:"rowHeight"},Ek={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},jk=(e,t,n,r)=>{const[o,a,i]=[n[r],e[Ik[r]],n[Ek[r]]];if(t>i){let e=0;if(i>=0){const t=o[i];e=t.offset+t.size}for(let n=i+1;n<=t;n++){const t=a(n);o[n]={offset:e,size:t},e+=t}n[Ek[r]]=t}return o[t]},Dk=(e,t,n,r,o,a)=>{while(n<=r){const i=n+Sk((r-n)/2),s=jk(e,i,t,a).offset;if(s===o)return i;s<o?n=i+1:r=i-1}return Ck(0,n-1)},Lk=(e,t,n,r,o)=>{const a="column"===o?e.totalColumn:e.totalRow;let i=1;while(n<a&&jk(e,n,t,o).offset<r)n+=i,i*=2;return Dk(e,t,Sk(n/2),wk(n,a-1),r,o)},Ak=(e,t,n,r)=>{const[o,a]=[t[r],t[Ek[r]]];return(a>0?o[a].offset:0)>=n?Dk(e,t,0,a,n,r):Lk(e,t,Ck(0,a),n,r)},Nk=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:r})=>{let o=0;if(n>=e&&(n=e-1),n>=0){const e=r[n];o=e.offset+e.size}const a=(e-n-1)*t;return o+a},Rk=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let o=0;if(r>e&&(r=e-1),r>=0){const e=t[r];o=e.offset+e.size}const a=(e-r-1)*n;return o+a},xk={column:Rk,row:Nk},Pk=(e,t,n,r,o,a,i)=>{const[s,c]=["row"===a?e.height:e.width,xk[a]],l=jk(e,t,o,a),u=Ck(0,wk(c(e,o)-s,l.offset)),d=Ck(0,l.offset-s+i+l.size);switch(n===w_&&(n=r>=d-s&&r<=u+s?C_:T_),n){case S_:return u;case I_:return d;case T_:return Math.round(d+(u-d)/2);case C_:default:return r>=d&&r<=u?r:d>u||r<d?d:u}},Uk=Ok({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=jk(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=jk(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,o,a)=>Pk(e,t,n,r,o,"column",a),getRowOffset:(e,t,n,r,o,a)=>Pk(e,t,n,r,o,"row",a),getColumnStartIndexForOffset:(e,t,n)=>Ak(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const o=jk(e,t,r,"column"),a=n+e.width;let i=o.offset+o.size,s=t;while(s<e.totalColumn-1&&i<a)s++,i+=jk(e,t,r,"column").size;return s},getEstimatedTotalHeight:Nk,getEstimatedTotalWidth:Rk,getRowStartIndexForOffset:(e,t,n)=>Ak(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:o,height:a}=e,i=jk(e,t,r,"row"),s=n+a;let c=i.size+i.offset,l=t;while(l<o-1&&c<s)l++,c+=jk(e,l,r,"row").size;return l},injectToInstance:(e,t)=>{const n=({columnIndex:n,rowIndex:r},o)=>{var a,i;o=!!Object(h["g"])(o)||o,Object(h["d"])(n)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,n-1)),Object(h["d"])(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),null===(a=e.exposed)||void 0===a||a.getItemStyleCache.value(-1,null,null),o&&(null===(i=e.proxy)||void 0===i||i.$forceUpdate())},r=(e,t)=>{n({columnIndex:e},t)},o=(e,t)=>{n({rowIndex:e},t)};$t()(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:o,resetAfter:n})},initCache:({estimatedColumnWidth:e=b_,estimatedRowHeight:t=b_})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{Object(te["isFunction"])(e)||Object(a["b"])(Tk,`\n "columnWidth" must be passed as function,\n instead ${typeof e} was given.\n `),Object(te["isFunction"])(t)||Object(a["b"])(Tk,`\n "rowHeight" must be passed as function,\n instead ${typeof t} was given.\n `)}}),Vk=Object(u["defineComponent"])({name:"ElTableV2Header",props:vk,setup(e,{slots:t,expose:n}){const r=Object(g["d"])("table-v2"),o=Object(u["inject"])(ok),a=Object(u["ref"])(),i=Object(u["computed"])(()=>ZM({width:e.width,height:e.height})),s=Object(u["computed"])(()=>ZM({width:e.rowWidth,height:e.height})),c=Object(u["computed"])(()=>Object(ne["castArray"])(Object(u["unref"])(e.headerHeight))),l=e=>{const t=Object(u["unref"])(a);Object(u["nextTick"])(()=>{(null===t||void 0===t?void 0:t.scroll)&&t.scroll({left:e})})},d=()=>{const n=r.e("fixed-header-row"),{columns:o,fixedHeaderData:a,rowHeight:i}=e;return null===a||void 0===a?void 0:J()(a).call(a,(e,r)=>{var a;const s=ZM({height:i,width:"100%"});return null===(a=t.fixed)||void 0===a?void 0:a.call(t,{class:n,columns:o,rowData:e,rowIndex:-(r+1),style:s})})},p=()=>{var n;const o=r.e("dynamic-header-row"),{columns:a}=e;return J()(n=Object(u["unref"])(c)).call(n,(e,n)=>{var r;const i=ZM({width:"100%",height:e});return null===(r=t.dynamic)||void 0===r?void 0:r.call(t,{class:o,columns:a,headerIndex:n,style:i})})};return Object(u["onUpdated"])(()=>{null!==o&&void 0!==o&&o.value&&l(o.value)}),n({scrollToLeft:l}),()=>{if(!(e.height<=0))return Object(u["createVNode"])("div",{ref:a,class:e.class,style:Object(u["unref"])(i),role:"rowgroup"},[Object(u["createVNode"])("div",{style:Object(u["unref"])(s),class:r.e("header")},[p(),d()])])}}}),Bk="ElTableV2Grid",Fk=e=>{const t=Object(u["ref"])(),n=Object(u["ref"])(),r=Object(u["ref"])(0),o=Object(u["computed"])(()=>{const{data:t,rowHeight:n,estimatedRowHeight:r}=e;if(!r)return t.length*n}),a=Object(u["computed"])(()=>{const{fixedData:t,rowHeight:n}=e;return((null===t||void 0===t?void 0:t.length)||0)*n}),i=Object(u["computed"])(()=>XM(e.headerHeight)),s=Object(u["computed"])(()=>{const{height:t}=e;return Math.max(0,t-Object(u["unref"])(i)-Object(u["unref"])(a))}),c=Object(u["computed"])(()=>Object(u["unref"])(i)+Object(u["unref"])(a)>0),l=({data:t,rowIndex:n})=>t[n][e.rowKey];function d({rowCacheStart:t,rowCacheEnd:n,rowVisibleStart:r,rowVisibleEnd:o}){var a;null===(a=e.onRowsRendered)||void 0===a||a.call(e,{rowCacheStart:t,rowCacheEnd:n,rowVisibleStart:r,rowVisibleEnd:o})}function p(e,t){var r;null===(r=n.value)||void 0===r||r.resetAfterRowIndex(e,t)}function f(e,o){const a=Object(u["unref"])(t),i=Object(u["unref"])(n);Object(te["isObject"])(e)?(null===a||void 0===a||a.scrollToLeft(e.scrollLeft),r.value=e.scrollLeft,null===i||void 0===i||i.scrollTo(e)):(null===a||void 0===a||a.scrollToLeft(e),r.value=e,null===i||void 0===i||i.scrollTo({scrollLeft:e,scrollTop:o}))}function m(e){var t;null===(t=Object(u["unref"])(n))||void 0===t||t.scrollTo({scrollTop:e})}function v(e,t){const o=Object(u["unref"])(n);if(!o)return;const a=r.value;o.scrollToItem(e,0,t),a&&f({scrollLeft:a})}function g(){var e,r;null===(e=Object(u["unref"])(n))||void 0===e||e.$forceUpdate(),null===(r=Object(u["unref"])(t))||void 0===r||r.$forceUpdate()}return Object(u["watch"])(()=>e.bodyWidth,()=>{var t;Object(h["d"])(e.estimatedRowHeight)&&(null===(t=n.value)||void 0===t||t.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:g,fixedRowHeight:a,gridHeight:s,hasHeader:c,headerHeight:i,headerRef:t,totalHeight:o,itemKey:l,onItemRendered:d,resetAfterRowIndex:p,scrollTo:f,scrollToTop:m,scrollToRow:v,scrollLeft:r}},Gk=Object(u["defineComponent"])({name:Bk,props:gk,setup(e,{slots:t,expose:n}){const{ns:r}=Object(u["inject"])(rk),{bodyRef:o,fixedRowHeight:a,gridHeight:i,hasHeader:s,headerRef:c,headerHeight:l,totalHeight:d,forceUpdate:p,itemKey:f,onItemRendered:m,resetAfterRowIndex:v,scrollTo:g,scrollToTop:_,scrollToRow:b,scrollLeft:y}=Fk(e);Object(u["provide"])(ok,y),Object(u["onActivated"])(async()=>{var e;await Object(u["nextTick"])();const t=null===(e=o.value)||void 0===e?void 0:e.states.scrollTop;t&&_(Math.round(t)+1)}),n({forceUpdate:p,totalHeight:d,scrollTo:g,scrollToTop:_,scrollToRow:b,resetAfterRowIndex:v});const O=()=>e.bodyWidth;return()=>{const{cache:n,columns:d,data:p,fixedData:v,useIsScrolling:g,scrollbarAlwaysOn:_,scrollbarEndGap:b,scrollbarStartGap:y,style:M,rowHeight:k,bodyWidth:C,estimatedRowHeight:w,headerWidth:S,height:T,width:I,getRowHeight:E,onScroll:j}=e,D=Object(h["d"])(w),L=D?Uk:kk,A=Object(u["unref"])(l);return Object(u["createVNode"])("div",{role:"table",class:[r.e("table"),e.class],style:M},[Object(u["createVNode"])(L,{ref:o,data:p,useIsScrolling:g,itemKey:f,columnCache:0,columnWidth:D?O:C,totalColumn:1,totalRow:p.length,rowCache:n,rowHeight:D?E:k,width:I,height:Object(u["unref"])(i),class:r.e("body"),role:"rowgroup",scrollbarStartGap:y,scrollbarEndGap:b,scrollbarAlwaysOn:_,onScroll:j,onItemRendered:m,perfMode:!1},{default:e=>{var n;const r=p[e.rowIndex];return null===(n=t.row)||void 0===n?void 0:n.call(t,{...e,columns:d,rowData:r})}}),Object(u["unref"])(s)&&Object(u["createVNode"])(Vk,{ref:c,class:r.e("header-wrapper"),columns:d,headerData:p,headerHeight:e.headerHeight,fixedHeaderData:v,rowWidth:S,rowHeight:k,width:I,height:Math.min(A+Object(u["unref"])(a),T)},{dynamic:t.header,fixed:t.row})])}}});function Hk(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Object(u["isVNode"])(e)}const Yk=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return Object(u["createVNode"])(Gk,Object(u["mergeProps"])({ref:n},r),Hk(t)?t:{default:()=>[t]})};function zk(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Object(u["isVNode"])(e)}const qk=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return Object(u["createVNode"])(Gk,Object(u["mergeProps"])({ref:n},r),zk(t)?t:{default:()=>[t]})};function Wk(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Object(u["isVNode"])(e)}const Kk=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return Object(u["createVNode"])(Gk,Object(u["mergeProps"])({ref:n},r),Wk(t)?t:{default:()=>[t]})},$k=e=>{const{isScrolling:t}=Object(u["inject"])(rk),n=Object(u["ref"])(!1),r=Object(u["ref"])(),o=Object(u["computed"])(()=>Object(h["d"])(e.estimatedRowHeight)&&e.rowIndex>=0),a=(t=!1)=>{const o=Object(u["unref"])(r);if(!o)return;const{columns:a,onRowHeightChange:i,rowKey:s,rowIndex:c,style:l}=e,{height:d}=o.getBoundingClientRect();n.value=!0,Object(u["nextTick"])(()=>{if(t||d!==ke()(l.height)){const e=a[0],t=(null===e||void 0===e?void 0:e.placeholderSign)===YM;null===i||void 0===i||i({rowKey:s,height:d,rowIndex:c},e&&!t&&e.fixed)}})},i=Object(u["computed"])(()=>{var t,n;const{rowData:r,rowIndex:o,rowKey:a,onRowHover:i}=e,s=e.rowEventHandlers||{},c={};return Y()(t=Vc()(s)).call(t,([e,t])=>{Object(te["isFunction"])(t)&&(c[e]=e=>{t({event:e,rowData:r,rowIndex:o,rowKey:a})})}),i&&Y()(n=[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}]).call(n,({name:e,hovered:t})=>{const n=c[e];c[e]=e=>{i({event:e,hovered:t,rowData:r,rowIndex:o,rowKey:a}),null===n||void 0===n||n(e)}}),c}),s=t=>{const{onRowExpand:n,rowData:r,rowIndex:o,rowKey:a}=e;null===n||void 0===n||n({expanded:t,rowData:r,rowIndex:o,rowKey:a})};return Object(u["onMounted"])(()=>{Object(u["unref"])(o)&&a(!0)}),{isScrolling:t,measurable:o,measured:n,rowRef:r,eventHandlers:i,onExpand:s}},Jk=Object(u["defineComponent"])({name:"ElTableV2TableRow",props:hk,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:o,isScrolling:a,measurable:i,measured:s,rowRef:c,onExpand:l}=$k(e);return t({onExpand:l}),()=>{const{columns:t,columnsStyles:d,expandColumnKey:p,depth:f,rowData:h,rowIndex:m,style:v}=e;let g=J()(t).call(t,(e,r)=>{const o=Object(te["isArray"])(h.children)&&h.children.length>0&&e.key===p;return n.cell({column:e,columns:t,columnIndex:r,depth:f,style:d[e.key],rowData:h,rowIndex:m,isScrolling:Object(u["unref"])(a),expandIconProps:o?{rowData:h,rowIndex:m,onExpand:l}:void 0})});if(n.row&&(g=n.row({cells:J()(g).call(g,e=>Object(te["isArray"])(e)&&1===e.length?e[0]:e),style:v,columns:t,depth:f,rowData:h,rowIndex:m,isScrolling:Object(u["unref"])(a)})),Object(u["unref"])(i)){const{height:t,...n}=v||{},a=Object(u["unref"])(s);return Object(u["createVNode"])("div",Object(u["mergeProps"])({ref:c,class:e.class,style:a?v:n,role:"row"},r,Object(u["unref"])(o)),[g])}return Object(u["createVNode"])("div",Object(u["mergeProps"])(r,{ref:c,class:e.class,style:v,role:"row"},Object(u["unref"])(o)),[g])}}});function Xk(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Object(u["isVNode"])(e)}const Qk=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:o,expandColumnKey:a,expandedRowKeys:i,estimatedRowHeight:s,hasFixedColumns:c,rowData:l,rowIndex:d,style:p,isScrolling:f,rowProps:h,rowClass:m,rowKey:v,rowEventHandlers:g,ns:_,onRowHovered:b,onRowExpanded:y}=e,O=QM(m,{columns:n,rowData:l,rowIndex:d},""),M=QM(h,{columns:n,rowData:l,rowIndex:d}),k=l[v],C=o[k]||0,w=Boolean(a),S=d<0,T=[_.e("row"),O,_.is("expanded",w&&ue()(i).call(i,k)),_.is("fixed",!C&&S),_.is("customized",Boolean(t.row)),{[_.e("row-depth-"+C)]:w&&d>=0}],I=c?b:void 0,E={...M,columns:n,columnsStyles:r,class:T,depth:C,expandColumnKey:a,estimatedRowHeight:S?void 0:s,isScrolling:f,rowIndex:d,rowData:l,rowKey:k,rowEventHandlers:g,style:p},j=e=>{null===I||void 0===I||I({hovered:!0,rowKey:k,event:e,rowData:l,rowIndex:d})},D=e=>{null===I||void 0===I||I({hovered:!1,rowKey:k,event:e,rowData:l,rowIndex:d})};return Object(u["createVNode"])(Jk,Object(u["mergeProps"])(E,{onRowExpand:y,onMouseenter:j,onMouseleave:D,rowkey:k}),Xk(t)?t:{default:()=>[t]})},Zk=(e,{slots:t})=>{var n;const{cellData:r,style:o}=e,a=(null===r||void 0===r||null===(n=r.toString)||void 0===n?void 0:n.call(r))||"",i=Object(u["renderSlot"])(t,"default",e,()=>[a]);return Object(u["createVNode"])("div",{class:e.class,title:a,style:o},[i])};Zk.displayName="ElTableV2Cell",Zk.inheritAttrs=!1;const eC=e=>{const{expanded:t,expandable:n,onExpand:r,style:o,size:a,ariaLabel:i}=e;return Object(u["createVNode"])("button",Object(u["mergeProps"])({onClick:n?()=>r(!t):void 0,ariaLabel:i,ariaExpanded:t,class:e.class},{type:"button"}),[Object(u["createVNode"])(k["a"],{size:a,style:o},{default:()=>[Object(u["createVNode"])(Fn["ArrowRight"],null,null)]})])};eC.inheritAttrs=!1;const tC=({columns:e,column:t,columnIndex:n,depth:r,expandIconProps:o,isScrolling:a,rowData:i,rowIndex:s,style:c,expandedRowKeys:l,ns:d,t:p,cellProps:f,expandColumnKey:h,indentSize:m,iconSize:v,rowKey:g},{slots:_})=>{const b=ZM(c);if(t.placeholderSign===YM)return Object(u["createVNode"])("div",{class:d.em("row-cell","placeholder"),style:b},null);const{cellRenderer:y,dataKey:O,dataGetter:M}=t,k=Object(te["isFunction"])(M)?M({columns:e,column:t,columnIndex:n,rowData:i,rowIndex:s}):Object(ne["get"])(i,null!==O&&void 0!==O?O:""),C=QM(f,{cellData:k,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:i}),w={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:k,isScrolling:a,rowData:i,rowIndex:s},S=ek(y),T=S?S(w):Object(u["renderSlot"])(_,"default",w,()=>[Object(u["createVNode"])(Zk,w,null)]),I=[d.e("row-cell"),t.class,t.align===FM.CENTER&&d.is("align-center"),t.align===FM.RIGHT&&d.is("align-right")],E=s>=0&&h&&t.key===h,j=s>=0&&ue()(l).call(l,i[g]);let D;const L=`margin-inline-start: ${r*m}px;`;return E&&(D=Object(te["isObject"])(o)?Object(u["createVNode"])(eC,Object(u["mergeProps"])(o,{class:[d.e("expand-icon"),d.is("expanded",j)],size:v,expanded:j,ariaLabel:p(j?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:L,expandable:!0}),null):Object(u["createVNode"])("div",{style:[L,`width: ${v}px; height: ${v}px;`].join(" ")},null)),Object(u["createVNode"])("div",Object(u["mergeProps"])({class:I,style:b},C,{role:"cell"}),[D,T])};tC.inheritAttrs=!1;const nC=Object(c["b"])({class:String,columns:ik,columnsStyles:{type:Object(c["c"])(Object),required:!0},headerIndex:Number,style:{type:Object(c["c"])(Object)}}),rC=Object(u["defineComponent"])({name:"ElTableV2HeaderRow",props:nC,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:r,headerIndex:o,style:a}=e;let i=J()(n).call(n,(e,a)=>t.cell({columns:n,column:e,columnIndex:a,headerIndex:o,style:r[e.key]}));return t.header&&(i=t.header({cells:J()(i).call(i,e=>Object(te["isArray"])(e)&&1===e.length?e[0]:e),columns:n,headerIndex:o})),Object(u["createVNode"])("div",{class:e.class,style:a,role:"row"},[i])}}});function oC(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Object(u["isVNode"])(e)}const aC=({columns:e,columnsStyles:t,headerIndex:n,style:r,headerClass:o,headerProps:a,ns:i},{slots:s})=>{const c={columns:e,headerIndex:n},l=[i.e("header-row"),QM(o,c,""),i.is("customized",Boolean(s.header))];return Object(u["createVNode"])(rC,{...QM(a,c),columnsStyles:t,class:l,columns:e,headerIndex:n,style:r},oC(s)?s:{default:()=>[s]})},iC=(e,{slots:t})=>Object(u["renderSlot"])(t,"default",e,()=>{var t,n;return[Object(u["createVNode"])("div",{class:e.class,title:null===(t=e.column)||void 0===t?void 0:t.title},[null===(n=e.column)||void 0===n?void 0:n.title])]});iC.displayName="ElTableV2HeaderCell",iC.inheritAttrs=!1;const sC=e=>{const{sortOrder:t}=e;return Object(u["createVNode"])("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[Object(u["createVNode"])(k["a"],{size:14},{default:()=>[t===BM.ASC?Object(u["createVNode"])(Fn["SortUp"],null,null):Object(u["createVNode"])(Fn["SortDown"],null,null)]})])},cC=(e,{slots:t})=>{const{column:n,ns:r,t:o,style:a,onColumnSorted:i}=e,s=ZM(a);if(n.placeholderSign===YM)return Object(u["createVNode"])("div",{class:r.em("header-row-cell","placeholder"),style:s},null);const{headerCellRenderer:c,headerClass:l,sortable:d}=n,p={...e,class:r.e("header-cell-text")},f=ek(c),h=f?f(p):Object(u["renderSlot"])(t,"default",p,()=>[Object(u["createVNode"])(iC,p,null)]),{sortBy:m,sortState:v,headerCellProps:g}=e;let _,b,y;if(v){const e=v[n.key];_=Boolean(HM[e]),b=_?e:BM.ASC}else _=n.key===m.key,b=_?m.order:BM.ASC;y=b===BM.ASC?"ascending":b===BM.DESC?"descending":void 0;const O=[r.e("header-cell"),QM(l,e,""),n.align===FM.CENTER&&r.is("align-center"),n.align===FM.RIGHT&&r.is("align-right"),d&&r.is("sortable")];return Object(u["createVNode"])("div",Object(u["mergeProps"])({...QM(g,e),onClick:n.sortable?i:void 0,ariaSort:d?y:void 0,class:O,style:s,["data-key"]:n.key},{role:"columnheader"}),[h,d&&Object(u["createVNode"])(sC,{class:[r.e("sort-icon"),_&&r.is("sorting")],sortOrder:b,ariaLabel:o("el.table.sortLabel",{column:n.title||""})},null)])},lC=(e,{slots:t})=>{var n;return Object(u["createVNode"])("div",{class:e.class,style:e.style},[null===(n=t.default)||void 0===n?void 0:n.call(t)])};lC.displayName="ElTableV2Footer";const uC=(e,{slots:t})=>{const n=Object(u["renderSlot"])(t,"default",{},()=>[Object(u["createVNode"])(wm,null,null)]);return Object(u["createVNode"])("div",{class:e.class,style:e.style},[n])};uC.displayName="ElTableV2Empty";const dC=(e,{slots:t})=>{var n;return Object(u["createVNode"])("div",{class:e.class,style:e.style},[null===(n=t.default)||void 0===n?void 0:n.call(t)])};function pC(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Object(u["isVNode"])(e)}dC.displayName="ElTableV2Overlay";const fC=Object(u["defineComponent"])({name:"ElTableV2",props:_k,setup(e,{slots:t,expose:n}){const r=Object(g["d"])("table-v2"),{t:o}=Object(fr["b"])(),{columnsStyles:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:s,mainColumns:c,mainTableHeight:l,fixedTableHeight:d,leftTableWidth:p,rightTableWidth:f,data:h,depthMap:m,expandedRowKeys:v,hasFixedColumns:_,mainTableRef:b,leftTableRef:y,rightTableRef:O,isDynamic:M,isResetting:k,isScrolling:C,bodyWidth:w,emptyStyle:S,rootStyle:T,footerHeight:I,showEmpty:E,scrollTo:j,scrollToLeft:D,scrollToTop:L,scrollToRow:A,getRowHeight:N,onColumnSorted:R,onRowHeightChange:x,onRowHovered:P,onRowExpanded:U,onRowsRendered:V,onScroll:B,onVerticalScroll:F}=nk(e);return n({scrollTo:j,scrollToLeft:D,scrollToTop:L,scrollToRow:A}),Object(u["provide"])(rk,{ns:r,isResetting:k,isScrolling:C}),()=>{const{cache:n,cellProps:g,estimatedRowHeight:k,expandColumnKey:C,fixedData:j,headerHeight:D,headerClass:L,headerProps:A,headerCellProps:G,sortBy:H,sortState:Y,rowHeight:z,rowClass:q,rowEventHandlers:W,rowKey:K,rowProps:$,scrollbarAlwaysOn:J,indentSize:X,iconSize:Q,useIsScrolling:Z,vScrollbarSize:ee,width:te}=e,ne=Object(u["unref"])(h),re={cache:n,class:r.e("main"),columns:Object(u["unref"])(c),data:ne,fixedData:j,estimatedRowHeight:k,bodyWidth:Object(u["unref"])(w),headerHeight:D,headerWidth:Object(u["unref"])(w),height:Object(u["unref"])(l),mainTableRef:b,rowKey:K,rowHeight:z,scrollbarAlwaysOn:J,scrollbarStartGap:2,scrollbarEndGap:ee,useIsScrolling:Z,width:te,getRowHeight:N,onRowsRendered:V,onScroll:B},oe=Object(u["unref"])(p),ae=Object(u["unref"])(d),ie={cache:n,class:r.e("left"),columns:Object(u["unref"])(i),data:ne,fixedData:j,estimatedRowHeight:k,leftTableRef:y,rowHeight:z,bodyWidth:oe,headerWidth:oe,headerHeight:D,height:ae,rowKey:K,scrollbarAlwaysOn:J,scrollbarStartGap:2,scrollbarEndGap:ee,useIsScrolling:Z,width:oe,getRowHeight:N,onScroll:F},se=Object(u["unref"])(f),ce={cache:n,class:r.e("right"),columns:Object(u["unref"])(s),data:ne,fixedData:j,estimatedRowHeight:k,rightTableRef:O,rowHeight:z,bodyWidth:se,headerWidth:se,headerHeight:D,height:ae,rowKey:K,scrollbarAlwaysOn:J,scrollbarStartGap:2,scrollbarEndGap:ee,width:se,style:`${r.cssVarName("table-scrollbar-size")}: ${ee}px`,useIsScrolling:Z,getRowHeight:N,onScroll:F},le=Object(u["unref"])(a),ue={ns:r,depthMap:Object(u["unref"])(m),columnsStyles:le,expandColumnKey:C,expandedRowKeys:Object(u["unref"])(v),estimatedRowHeight:k,hasFixedColumns:Object(u["unref"])(_),rowProps:$,rowClass:q,rowKey:K,rowEventHandlers:W,onRowHovered:P,onRowExpanded:U,onRowHeightChange:x},de={cellProps:g,expandColumnKey:C,indentSize:X,iconSize:Q,rowKey:K,expandedRowKeys:Object(u["unref"])(v),ns:r,t:o},pe={ns:r,headerClass:L,headerProps:A,columnsStyles:le},fe={ns:r,t:o,sortBy:H,sortState:Y,headerCellProps:G,onColumnSorted:R},he={row:e=>Object(u["createVNode"])(Qk,Object(u["mergeProps"])(e,ue),{row:t.row,cell:e=>{let n;return t.cell?Object(u["createVNode"])(tC,Object(u["mergeProps"])(e,de,{style:le[e.column.key]}),pC(n=t.cell(e))?n:{default:()=>[n]}):Object(u["createVNode"])(tC,Object(u["mergeProps"])(e,de,{style:le[e.column.key]}),null)}}),header:e=>Object(u["createVNode"])(aC,Object(u["mergeProps"])(e,pe),{header:t.header,cell:e=>{let n;return t["header-cell"]?Object(u["createVNode"])(cC,Object(u["mergeProps"])(e,fe,{style:le[e.column.key]}),pC(n=t["header-cell"](e))?n:{default:()=>[n]}):Object(u["createVNode"])(cC,Object(u["mergeProps"])(e,fe,{style:le[e.column.key]}),null)}})},me=[e.class,r.b(),r.e("root"),r.is("dynamic",Object(u["unref"])(M))],ve={class:r.e("footer"),style:Object(u["unref"])(I)};return Object(u["createVNode"])("div",{class:me,style:Object(u["unref"])(T)},[Object(u["createVNode"])(Yk,re,pC(he)?he:{default:()=>[he]}),Object(u["createVNode"])(qk,ie,pC(he)?he:{default:()=>[he]}),Object(u["createVNode"])(Kk,ce,pC(he)?he:{default:()=>[he]}),t.footer&&Object(u["createVNode"])(lC,ve,{default:t.footer}),Object(u["unref"])(E)&&Object(u["createVNode"])(uC,{class:r.e("empty"),style:Object(u["unref"])(S)},{default:t.empty}),t.overlay&&Object(u["createVNode"])(dC,{class:r.e("overlay")},{default:t.overlay})])}}}),hC=e=>{const t=Object(u["ref"])(),n=Object(u["ref"])(0),r=Object(u["ref"])(0);let o;return Object(u["onMounted"])(()=>{o=Object(_["useResizeObserver"])(t,([e])=>{const{width:t,height:o}=e.contentRect,{paddingLeft:a,paddingRight:i,paddingTop:s,paddingBottom:c}=getComputedStyle(e.target),l=ke()(a)||0,u=ke()(i)||0,d=ke()(s)||0,p=ke()(c)||0;n.value=t-l-u,r.value=o-d-p}).stop}),Object(u["onBeforeUnmount"])(()=>{var e;null===(e=o)||void 0===e||e()}),Object(u["watch"])([n,r],([t,n])=>{var r;null===(r=e.onResize)||void 0===r||r.call(e,{width:t,height:n})}),{sizer:t,width:n,height:r}},mC=Object(c["b"])({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:Object(c["c"])(Function)}}),vC=Object(u["defineComponent"])({name:"ElAutoResizer",props:mC,setup(e,{slots:t}){const n=Object(g["d"])("auto-resizer"),{height:r,width:o,sizer:a}=hC(e),i={width:"100%",height:"100%"};return()=>{var e;return Object(u["createVNode"])("div",{ref:a,class:n.b(),style:i},[null===(e=t.default)||void 0===e?void 0:e.call(t,{height:r.value,width:o.value})])}}}),gC=Object(r["a"])(fC),_C=Object(r["a"])(vC),bC=xe()("tabsRootContextKey"),yC=Object(c["b"])({tabs:{type:Object(c["c"])(Array),default:()=>Object(Bc["a"])([])},tabRefs:{type:Object(c["c"])(Object),default:()=>Object(Bc["a"])({})}}),OC="ElTabBar";var MC=Object(u["defineComponent"])({name:OC,__name:"tab-bar",props:yC,setup(e,{expose:t}){const n=e,r=Object(u["inject"])(bC);r||Object(a["b"])(OC,"<el-tabs><el-tab-bar /></el-tabs>");const o=Object(g["d"])("tabs"),i=Object(u["ref"])(),s=Object(u["ref"])(),c=Object(u["computed"])(()=>{var e;return Object(h["g"])(r.props.defaultValue)||Boolean(null===(e=s.value)||void 0===e?void 0:e.transform)}),l=()=>{var e,t;let o=0,a=0;const i=ue()(e=["top","bottom"]).call(e,r.props.tabPosition)?"width":"height",s="width"===i?"x":"y",c="x"===s?"left":"top";return Ht()(t=n.tabs).call(t,e=>{if(Object(h["g"])(e.paneName))return!1;const t=n.tabRefs[e.paneName];if(!t)return!1;if(!e.active)return!0;o=t["offset"+Object(Zo["a"])(c)],a=t["client"+Object(Zo["a"])(i)];const r=window.getComputedStyle(t);return"width"===i&&(a-=Oe()(r.paddingLeft)+Oe()(r.paddingRight),o+=Oe()(r.paddingLeft)),!1}),{[i]:a+"px",transform:`translate${Object(Zo["a"])(s)}(${o}px)`}},d=()=>s.value=l(),p=[],f=()=>{var e;Y()(p).call(p,e=>e.stop()),p.length=0,Y()(e=Tm()(n.tabRefs)).call(e,e=>{p.push(Object(_["useResizeObserver"])(e,d))})};Object(u["watch"])(()=>n.tabs,async()=>{await Object(u["nextTick"])(),d(),f()},{immediate:!0});const m=Object(_["useResizeObserver"])(i,()=>d());return Object(u["onBeforeUnmount"])(()=>{Y()(p).call(p,e=>e.stop()),p.length=0,m.stop()}),t({ref:i,update:d}),(e,t)=>c.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,ref_key:"barRef",ref:i,class:Object(u["normalizeClass"])([Object(u["unref"])(o).e("active-bar"),Object(u["unref"])(o).is(Object(u["unref"])(r).props.tabPosition)]),style:Object(u["normalizeStyle"])(s.value)},null,6)):Object(u["createCommentVNode"])("v-if",!0)}}),kC=MC;const CC=Object(c["b"])({panes:{type:Object(c["c"])(Array),default:()=>Object(Bc["a"])([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),wC={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},SC="ElTabNav",TC=Object(u["defineComponent"])({name:SC,props:CC,emits:wC,setup(e,{expose:t,emit:n}){const r=Object(u["inject"])(bC);r||Object(a["b"])(SC,"<el-tabs><tab-nav /></el-tabs>");const o=Object(g["d"])("tabs"),i=Object(_["useDocumentVisibility"])(),s=Object(_["useWindowFocus"])(),c=Object(u["ref"])(),l=Object(u["ref"])(),d=Object(u["ref"])(),p=Object(u["ref"])({}),f=Object(u["ref"])(),h=Object(u["ref"])(!1),m=Object(u["ref"])(0),v=Object(u["ref"])(!1),b=Object(u["ref"])(!0),y=Object(u["ref"])(!1),O=Object(u["shallowRef"])(),M=Object(u["computed"])(()=>{var e;return ue()(e=["top","bottom"]).call(e,r.props.tabPosition)}),C=Object(u["computed"])(()=>M.value?"width":"height"),w=Object(u["computed"])(()=>{const e="width"===C.value?"X":"Y";return{transition:y.value?"none":void 0,transform:`translate${e}(-${m.value}px)`}}),{width:S,height:T}=Object(_["useElementSize"])(c),{width:I,height:E}=Object(_["useElementSize"])(l,{width:0,height:0},{box:"border-box"}),j=Object(u["computed"])(()=>M.value?S.value:T.value),D=Object(u["computed"])(()=>M.value?I.value:E.value),{onWheel:L}=W_({atStartEdge:Object(u["computed"])(()=>m.value<=0),atEndEdge:Object(u["computed"])(()=>D.value-m.value<=j.value),layout:Object(u["computed"])(()=>M.value?"horizontal":"vertical")},e=>{m.value=Object(ne["clamp"])(m.value+e,0,D.value-j.value)}),A=e=>{y.value=!0,L(e),Object(bo["b"])(()=>{y.value=!1})},N=()=>{if(!c.value)return;const e=c.value.getBoundingClientRect()[C.value],t=m.value;t&&(m.value=t>e?t-e:0)},R=()=>{if(!c.value||!l.value)return;const e=l.value.getBoundingClientRect()[C.value],t=c.value.getBoundingClientRect()[C.value],n=m.value;tM(e-n,t)&&(m.value=e-n>2*t?n+t:e-t)},x=async()=>{const t=l.value;if(!h.value||!d.value||!c.value||!t)return;await Object(u["nextTick"])();const n=p.value[e.currentName];if(!n)return;const r=c.value,o=n.getBoundingClientRect(),a=r.getBoundingClientRect(),i=a.left+1,s=a.right-1,f=t.getBoundingClientRect(),v=M.value?f.width-a.width:f.height-a.height,g=m.value;let _=g;M.value?(o.left<i&&(_=g-(i-o.left)),o.right>s&&(_=g+o.right-s)):(o.top<a.top&&(_=g-(a.top-o.top)),o.bottom>a.bottom&&(_=g+(o.bottom-a.bottom))),_=Math.max(_,0),m.value=Math.min(_,v)},P=()=>{var t;if(!l.value||!c.value)return;e.stretch&&(null===(t=f.value)||void 0===t||t.update());const n=l.value.getBoundingClientRect()[C.value],r=c.value.getBoundingClientRect()[C.value],o=m.value;r<n?(h.value=h.value||{},h.value.prev=o,h.value.next=tM(n,o+r),tM(r,n-o)&&(m.value=n-r)):(h.value=!1,o>0&&(m.value=0))},U=e=>{const t=Object(St["b"])(e);let n=0;switch(t){case vt["a"].left:case vt["a"].up:n=-1;break;case vt["a"].right:case vt["a"].down:n=1;break;default:return}const r=Pn()(e.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let o=B()(r).call(r,e.target)+n;o<0?o=r.length-1:o>=r.length&&(o=0),r[o].focus({preventScroll:!0}),r[o].click(),V()},V=()=>{b.value&&(v.value=!0)},F=()=>v.value=!1,G=(e,t)=>{p.value[t]=e},H=async()=>{var t;await Object(u["nextTick"])(),null===(t=p.value[e.currentName])||void 0===t||t.focus({preventScroll:!0})};return Object(u["watch"])(i,e=>{"hidden"===e?b.value=!1:"visible"===e&&qe()(()=>b.value=!0,50)}),Object(u["watch"])(s,e=>{e?qe()(()=>b.value=!0,50):b.value=!1}),Object(_["useResizeObserver"])(d,()=>{Object(bo["b"])(P)}),Object(u["onMounted"])(()=>qe()(()=>x(),0)),Object(u["onUpdated"])(()=>P()),t({scrollToActiveTab:x,removeFocus:F,focusActiveTab:H,tabListRef:l,tabBarRef:f,scheduleRender:()=>Object(u["triggerRef"])(O)}),()=>{var t,a;const i=h.value?[Object(u["createVNode"])("span",{class:[o.e("nav-prev"),o.is("disabled",!h.value.prev)],onClick:N},[Object(u["createVNode"])(k["a"],null,{default:()=>[Object(u["createVNode"])(Fn["ArrowLeft"],null,null)]})]),Object(u["createVNode"])("span",{class:[o.e("nav-next"),o.is("disabled",!h.value.next)],onClick:R},[Object(u["createVNode"])(k["a"],null,{default:()=>[Object(u["createVNode"])(Fn["ArrowRight"],null,null)]})])]:null,s=J()(t=e.panes).call(t,(t,a)=>{var i,s,c,l,d;const p=t.uid,f=t.props.disabled,h=null!==(i=null!==(s=t.props.name)&&void 0!==s?s:t.index)&&void 0!==i?i:""+a,m=!f&&(t.isClosable||!1!==t.props.closable&&e.editable);t.index=""+a;const g=m?Object(u["createVNode"])(k["a"],{class:"is-icon-close",onClick:e=>n("tabRemove",t,e)},{default:()=>[Object(u["createVNode"])(Fn["Close"],null,null)]}):null,_=(null===(c=(l=t.slots).label)||void 0===c?void 0:c.call(l))||t.props.label,b=!f&&t.active?null!==(d=e.tabindex)&&void 0!==d?d:r.props.tabindex:-1;return Object(u["createVNode"])("div",{ref:e=>G(e,h),class:[o.e("item"),o.is(r.props.tabPosition),o.is("active",t.active),o.is("disabled",f),o.is("closable",m),o.is("focus",v.value)],id:"tab-"+h,key:"tab-"+p,"aria-controls":"pane-"+h,role:"tab","aria-selected":t.active,tabindex:b,onFocus:()=>V(),onBlur:()=>F(),onClick:e=>{F(),n("tabClick",t,h,e)},onKeydown:e=>{const r=Object(St["b"])(e);!m||r!==vt["a"].delete&&r!==vt["a"].backspace||n("tabRemove",t,e)}},[_,g])});return O.value,Object(u["createVNode"])("div",{ref:d,class:[o.e("nav-wrap"),o.is("scrollable",!!h.value),o.is(r.props.tabPosition)]},[i,Object(u["createVNode"])("div",{class:o.e("nav-scroll"),ref:c},[e.panes.length>0?Object(u["createVNode"])("div",{class:[o.e("nav"),o.is(r.props.tabPosition),o.is("stretch",e.stretch&&ue()(a=["top","bottom"]).call(a,r.props.tabPosition))],ref:l,style:w.value,role:"tablist",onKeydown:U,onWheel:A},[e.type?null:Object(u["createVNode"])(kC,{ref:f,tabs:[...e.panes],tabRefs:p.value},null),s]):null])])}}}),IC=Object(c["b"])({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Object(c["c"])(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),EC=e=>Object(te["isString"])(e)||Object(h["d"])(e),jC={[o["c"]]:e=>EC(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>EC(e),edit:(e,t)=>{var n;return ue()(n=["remove","add"]).call(n,t)},tabRemove:e=>EC(e),tabAdd:()=>!0},DC=Object(u["defineComponent"])({name:"ElTabs",props:IC,emits:jC,setup(e,{emit:t,slots:n,expose:r}){var a;const i=Object(g["d"])("tabs"),s=Object(u["computed"])(()=>{var t;return ue()(t=["left","right"]).call(t,e.tabPosition)}),{children:c,addChild:l,removeChild:d,ChildrenSorter:p}=Ri(Object(u["getCurrentInstance"])(),"ElTabPane"),f=Object(u["ref"])(),m=Object(u["ref"])(null!==(a=Object(h["g"])(e.modelValue)?e.defaultValue:e.modelValue)&&void 0!==a?a:"0"),v=async(n,r=!1)=>{if(m.value!==n&&!Object(h["g"])(n))try{let d;if(e.beforeLeave){const t=e.beforeLeave(n,m.value);d=t instanceof ee.a?await t:t}else d=!0;if(!1!==d){var a,i,s,l,u;const e=null===(a=La()(i=c.value).call(i,e=>e.paneName===m.value))||void 0===a?void 0:a.isFocusInsidePane();m.value=n,r&&(t(o["c"],n),t("tabChange",n)),null===(s=f.value)||void 0===s||null===(l=s.removeFocus)||void 0===l||l.call(s),e&&(null===(u=f.value)||void 0===u||u.focusActiveTab())}}catch{}},_=(e,n,r)=>{e.props.disabled||(t("tabClick",e,r),v(n,!0))},b=(e,n)=>{e.props.disabled||Object(h["g"])(e.props.name)||(n.stopPropagation(),t("edit",e.props.name,"remove"),t("tabRemove",e.props.name))},y=()=>{t("edit",void 0,"add"),t("tabAdd")},O=e=>{var t;const n=Object(St["b"])(e);ue()(t=[vt["a"].enter,vt["a"].numpadEnter]).call(t,n)&&y()},M=t=>{var n;const r=t.el.firstChild,o=ue()(n=["bottom","right"]).call(n,e.tabPosition)?t.children[0].el:t.children[1].el;r!==o&&r.before(o)};return Object(u["watch"])(()=>e.modelValue,e=>v(e)),Object(u["watch"])(m,async()=>{var e;await Object(u["nextTick"])(),null===(e=f.value)||void 0===e||e.scrollToActiveTab()}),Object(u["provide"])(bC,{props:e,currentName:m,registerPane:l,unregisterPane:d,nav$:f}),r({currentName:m,get tabNavRef(){return Object(ne["omit"])(f.value,["scheduleRender"])}}),()=>{const t=n["add-icon"],r=e.editable||e.addable?Object(u["createVNode"])("div",{class:[i.e("new-tab"),s.value&&i.e("new-tab-vertical")],tabindex:e.tabindex,onClick:y,onKeydown:O},[t?Object(u["renderSlot"])(n,"add-icon"):Object(u["createVNode"])(k["a"],{class:i.is("icon-plus")},{default:()=>[Object(u["createVNode"])(Fn["Plus"],null,null)]})]):null,o=()=>Object(u["createVNode"])(TC,{ref:f,currentName:m.value,editable:e.editable,type:e.type,panes:c.value,stretch:e.stretch,onTabClick:_,onTabRemove:b},null),a=Object(u["createVNode"])("div",{class:[i.e("header"),s.value&&i.e("header-vertical"),i.is(e.tabPosition)]},[Object(u["createVNode"])(p,null,{default:o,$stable:!0}),r]),l=Object(u["createVNode"])("div",{class:i.e("content")},[Object(u["renderSlot"])(n,"default")]);return Object(u["createVNode"])("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:"card"===e.type,[i.m("border-card")]:"border-card"===e.type}],onVnodeMounted:M,onVnodeUpdated:M},[l,a])}}}),LC=Object(c["b"])({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),AC=["id","aria-hidden","aria-labelledby"],NC="ElTabPane";var RC=Object(u["defineComponent"])({name:NC,__name:"tab-pane",props:LC,setup(e){const t=e,n=Object(u["getCurrentInstance"])(),r=Object(u["useSlots"])(),o=Object(u["inject"])(bC);o||Object(a["b"])(NC,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Object(g["d"])("tab-pane"),s=Object(u["ref"])(),c=Object(u["ref"])(),l=Object(u["computed"])(()=>{var e;return null!==(e=t.closable)&&void 0!==e?e:o.props.closable}),d=Object(u["computed"])(()=>{var e;return o.currentName.value===(null!==(e=t.name)&&void 0!==e?e:c.value)}),p=Object(u["ref"])(d.value),f=Object(u["computed"])(()=>{var e;return null!==(e=t.name)&&void 0!==e?e:c.value}),h=Object(u["computed"])(()=>!t.lazy||p.value||d.value),m=()=>{var e;return null===(e=s.value)||void 0===e?void 0:e.contains(document.activeElement)};Object(u["watch"])(d,e=>{e&&(p.value=!0)});const v=Object(u["reactive"])({uid:n.uid,getVnode:()=>n.vnode,slots:r,props:t,paneName:f,active:d,index:c,isClosable:l,isFocusInsidePane:m});return o.registerPane(v),Object(u["onBeforeUnmount"])(()=>{o.unregisterPane(v)}),Object(u["onBeforeUpdate"])(()=>{var e;r.label&&(null===(e=o.nav$.value)||void 0===e||e.scheduleRender())}),(e,t)=>h.value?Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,id:"pane-"+f.value,ref_key:"paneRef",ref:s,class:Object(u["normalizeClass"])(Object(u["unref"])(i).b()),role:"tabpanel","aria-hidden":!d.value,"aria-labelledby":"tab-"+f.value},[Object(u["renderSlot"])(e.$slots,"default")],10,AC)),[[u["vShow"],d.value]]):Object(u["createCommentVNode"])("v-if",!0)}}),xC=RC;const PC=Object(r["a"])(DC,{TabPane:xC}),UC=Object(r["d"])(xC),VC=Object(c["b"])({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:re["a"],default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}});var BC=Object(u["defineComponent"])({name:"ElText",__name:"text",props:VC,setup(e){const t=e,n=Object(u["ref"])(),r=Object(ce["b"])(),o=Object(g["d"])("text"),a=Object(u["computed"])(()=>[o.b(),o.m(t.type),o.m(r.value),o.is("truncated",t.truncated),o.is("line-clamp",!Object(h["g"])(t.lineClamp))]),i=()=>{var e,r,o;if(Object(u["useAttrs"])().title)return;let a=!1;const i=(null===(e=n.value)||void 0===e?void 0:e.textContent)||"";if(t.truncated){var s,c;const e=null===(s=n.value)||void 0===s?void 0:s.offsetWidth,t=null===(c=n.value)||void 0===c?void 0:c.scrollWidth;e&&t&&t>e&&(a=!0)}else if(!Object(h["g"])(t.lineClamp)){var l,d;const e=null===(l=n.value)||void 0===l?void 0:l.offsetHeight,t=null===(d=n.value)||void 0===d?void 0:d.scrollHeight;e&&t&&t>e&&(a=!0)}a?null===(r=n.value)||void 0===r||r.setAttribute("title",i):null===(o=n.value)||void 0===o||o.removeAttribute("title")};return Object(u["onMounted"])(i),Object(u["onUpdated"])(i),(t,r)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.tag),{ref_key:"textRef",ref:n,class:Object(u["normalizeClass"])(a.value),style:Object(u["normalizeStyle"])({"-webkit-line-clamp":e.lineClamp})},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"default")]),_:3},8,["class","style"]))}}),FC=BC;const GC=Object(r["a"])(FC),HC="00:30",YC=Object(c["b"])({format:{type:String,default:"HH:mm"},modelValue:{type:Object(c["c"])(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:Object(c["c"])(String),default:"light"},clearable:{type:Boolean,default:!0},size:Nr["c"],placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:HC},minTime:{type:Object(c["c"])(String)},maxTime:{type:Object(c["c"])(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:Object(c["c"])([String,Object]),default:()=>Fn["Clock"]},clearIcon:{type:Object(c["c"])([String,Object]),default:()=>Fn["CircleClose"]},popperClass:{type:String,default:""},popperStyle:{type:Object(c["c"])([String,Object])},...Rr["c"]}),zC=e=>{const t=(e||"").split(":");if(t.length>=2){let n=ke()(t[0],10);const r=ke()(t[1],10),o=e.toUpperCase();return ue()(o).call(o,"AM")&&12===n?n=0:ue()(o).call(o,"PM")&&12!==n&&(n+=12),{hours:n,minutes:r}}return null},qC=(e,t)=>{const n=zC(e);if(!n)return-1;const r=zC(t);if(!r)return-1;const o=n.minutes+60*n.hours,a=r.minutes+60*r.hours;return o===a?0:o>a?1:-1},WC=e=>{var t;return Du()(t=""+e).call(t,2,"0")},KC=e=>`${WC(e.hours)}:${WC(e.minutes)}`,$C=(e,t)=>{const n=zC(e);if(!n)return"";const r=zC(t);if(!r)return"";const o={hours:n.hours,minutes:n.minutes};return o.minutes+=r.minutes,o.hours+=r.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,KC(o)};var JC=Object(u["defineComponent"])({name:"ElTimeSelect",__name:"time-select",props:YC,emits:[o["a"],"blur","focus","clear",o["c"]],setup(e,{expose:t}){Wr.a.extend(Bo.a);const{Option:n}=Wa,r=e,i=Object(g["d"])("input"),s=Object(u["ref"])(),c=Object(ce["a"])(),{lang:l}=Object(fr["b"])(),d=Object(u["computed"])(()=>r.modelValue),p=Object(u["computed"])(()=>{const e=zC(r.start);return e?KC(e):null}),f=Object(u["computed"])(()=>{const e=zC(r.end);return e?KC(e):null}),h=Object(u["computed"])(()=>{const e=zC(r.minTime||"");return e?KC(e):null}),m=Object(u["computed"])(()=>{const e=zC(r.maxTime||"");return e?KC(e):null}),v=Object(u["computed"])(()=>{const e=zC(r.step),t=!e||e.hours<0||e.minutes<0||Di()(e.hours)||Di()(e.minutes)||0===e.hours&&0===e.minutes;return t&&Object(a["a"])("ElTimeSelect",`invalid step, fallback to default step (${HC}).`),t?HC:KC(e)}),_=Object(u["computed"])(()=>{const e=[],t=(t,n)=>{e.push({value:t,rawValue:n,disabled:qC(n,h.value||"-1:-1")<=0||qC(n,m.value||"100:100")>=0})};if(r.start&&r.end&&r.step){var n;let o,a=p.value;while(a&&f.value&&qC(a,f.value)<=0)o=Wr()(a,"HH:mm").locale(l.value).format(r.format),t(o,a),a=$C(a,v.value);r.includeEndTime&&f.value&&(null===(n=e[e.length-1])||void 0===n?void 0:n.rawValue)!==f.value&&t(Wr()(f.value,"HH:mm").locale(l.value).format(r.format),f.value)}return e}),b=()=>{var e,t;null===(e=s.value)||void 0===e||null===(t=e.blur)||void 0===t||t.call(e)},y=()=>{var e,t;null===(e=s.value)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e)};return t({blur:b,focus:y}),(t,r)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Wa),{ref_key:"select",ref:s,name:e.name,"model-value":d.value,disabled:Object(u["unref"])(c),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"empty-values":e.emptyValues,"value-on-clear":e.valueOnClear,"popper-class":e.popperClass,"popper-style":e.popperStyle,"onUpdate:modelValue":r[0]||(r[0]=e=>t.$emit(Object(u["unref"])(o["c"]),e)),onChange:r[1]||(r[1]=e=>t.$emit(Object(u["unref"])(o["a"]),e)),onBlur:r[2]||(r[2]=e=>t.$emit("blur",e)),onFocus:r[3]||(r[3]=e=>t.$emit("focus",e)),onClear:r[4]||(r[4]=()=>t.$emit("clear"))},{prefix:Object(u["withCtx"])(()=>[e.prefixIcon?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("prefix-icon"))},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.prefixIcon)))]),_:1},8,["class"])):Object(u["createCommentVNode"])("v-if",!0)]),default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(_.value,e=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(n),{key:e.value,label:e.value,value:e.value,disabled:e.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["name","model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}}),XC=JC;const QC=Object(r["a"])(XC),ZC="timeline",ew=Object(c["b"])({mode:{type:String,values:["start","alternate","alternate-reverse","end"],default:"start"},reverse:Boolean}),tw=Object(u["defineComponent"])({name:"ElTimeline",props:ew,setup(e,{slots:t}){const n=Object(g["d"])("timeline");Object(u["provide"])(ZC,{props:e,slots:t});const r=Object(u["computed"])(()=>[n.b(),n.is(e.mode)]);return()=>{var n,o;const a=Object(T["b"])(null!==(n=null===(o=t.default)||void 0===o?void 0:o.call(t))&&void 0!==n?n:[]);return Object(u["h"])("ul",{class:r.value},nh()(e)?nh()(a).call(a):a)}}}),nw=Object(c["b"])({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:S["e"]},hollow:Boolean});var rw=Object(u["defineComponent"])({name:"ElTimelineItem",__name:"timeline-item",props:nw,setup(e){const t=e,{props:n}=Object(u["inject"])(ZC),r=Object(g["d"])("timeline-item"),o=Object(u["computed"])(()=>[r.e("node"),r.em("node",t.size||""),r.em("node",t.type||""),r.is("hollow",t.hollow)]),a=Object(u["computed"])(()=>[r.b(),{[r.e("center")]:t.center},r.is(n.mode)]);return(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{class:Object(u["normalizeClass"])(a.value)},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("tail"))},null,2),t.$slots.dot?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(o.value),style:Object(u["normalizeStyle"])({backgroundColor:e.color})},[e.icon?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("icon"))},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.icon)))]),_:1},8,["class"])):Object(u["createCommentVNode"])("v-if",!0)],6)),t.$slots.dot?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("dot"))},[Object(u["renderSlot"])(t.$slots,"dot")],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("wrapper"))},[e.hideTimestamp||"top"!==e.placement?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(r).e("timestamp"),Object(u["unref"])(r).is("top")])},Object(u["toDisplayString"])(e.timestamp),3)),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("content"))},[Object(u["renderSlot"])(t.$slots,"default")],2),e.hideTimestamp||"bottom"!==e.placement?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])([Object(u["unref"])(r).e("timestamp"),Object(u["unref"])(r).is("bottom")])},Object(u["toDisplayString"])(e.timestamp),3))],2)],2))}}),ow=rw;const aw=Object(r["a"])(tw,{TimelineItem:ow}),iw=Object(r["d"])(ow),sw="left-check-change",cw="right-check-change",lw=Object(c["b"])({data:{type:Object(c["c"])(Array),default:()=>[]},titles:{type:Object(c["c"])(Array),default:()=>[]},buttonTexts:{type:Object(c["c"])(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:Object(c["c"])(Function)},leftDefaultChecked:{type:Object(c["c"])(Array),default:()=>[]},rightDefaultChecked:{type:Object(c["c"])(Array),default:()=>[]},renderContent:{type:Object(c["c"])(Function)},modelValue:{type:Object(c["c"])(Array),default:()=>[]},format:{type:Object(c["c"])(Object),default:()=>({})},filterable:Boolean,props:{type:Object(c["c"])(Object),default:()=>Object(Bc["a"])({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),uw=(e,t)=>{var n;return Ht()(n=[e,t]).call(n,te["isArray"])||Object(te["isArray"])(e)&&Object(ne["isNil"])(t)},dw={[o["a"]]:(e,t,n)=>{var r,o;return Ht()(r=[e,n]).call(r,te["isArray"])&&ue()(o=["left","right"]).call(o,t)},[o["c"]]:e=>Object(te["isArray"])(e),[sw]:uw,[cw]:uw},pw=e=>{const t={label:"label",key:"key",disabled:"disabled"};return Object(u["computed"])(()=>({...t,...e.props}))},fw=(e,t)=>{const n=(n,r)=>{e.leftChecked=n,r&&t(sw,n,r)},r=(n,r)=>{e.rightChecked=n,r&&t(cw,n,r)};return{onSourceCheckedChange:n,onTargetCheckedChange:r}},hw=e=>{const t=pw(e),n=Object(u["computed"])(()=>{var n;return fa()(n=e.data).call(n,(e,n)=>(e[n[t.value.key]]=n)&&e,{})});return{sourceData:Object(u["computed"])(()=>{var n;return K()(n=e.data).call(n,n=>{var r;return!ue()(r=e.modelValue).call(r,n[t.value.key])})}),targetData:Object(u["computed"])(()=>{var r,o;return"original"===e.targetOrder?K()(r=e.data).call(r,n=>{var r;return ue()(r=e.modelValue).call(r,n[t.value.key])}):fa()(o=e.modelValue).call(o,(e,t)=>{const r=n.value[t];return r&&e.push(r),e},[])})}},mw=(e,t,n)=>{const r=pw(e),a=(e,t,r)=>{n(o["c"],e),n(o["a"],e,t,r)},i=()=>{var n,r;const o=It()(n=e.modelValue).call(n);Y()(r=t.rightChecked).call(r,e=>{const t=B()(o).call(o,e);t>-1&&U()(o).call(o,t,1)}),a(o,"left",t.rightChecked)},s=()=>{var n,o,i,s,c;let l=It()(n=e.modelValue).call(n);const u=J()(o=K()(i=e.data).call(i,n=>{var o,a;const i=n[r.value.key];return ue()(o=t.leftChecked).call(o,i)&&!ue()(a=e.modelValue).call(a,i)})).call(o,e=>e[r.value.key]);l="unshift"===e.targetOrder?No()(u).call(u,l):No()(l).call(l,u),"original"===e.targetOrder&&(l=J()(s=K()(c=e.data).call(c,e=>ue()(l).call(l,e[r.value.key]))).call(s,e=>e[r.value.key])),a(l,"right",t.leftChecked)};return{addToLeft:i,addToRight:s}},vw="checked-change",gw=Object(c["b"])({data:lw.data,optionRender:{type:Object(c["c"])(Function)},placeholder:String,title:String,filterable:Boolean,format:lw.format,filterMethod:lw.filterMethod,defaultChecked:lw.leftDefaultChecked,props:lw.props}),_w={[vw]:uw},bw=(e,t,n)=>{const r=pw(e),o=Object(u["computed"])(()=>{var n;return K()(n=e.data).call(n,n=>{var o;return Object(te["isFunction"])(e.filterMethod)?e.filterMethod(t.query,n):ue()(o=String(n[r.value.label]||n[r.value.key]).toLowerCase()).call(o,t.query.toLowerCase())})}),a=Object(u["computed"])(()=>{var e;return K()(e=o.value).call(e,e=>!e[r.value.disabled])}),i=Object(u["computed"])(()=>{const n=t.checked.length,r=e.data.length,{noChecked:o,hasChecked:a}=e.format;return o&&a?n>0?a.replace(/\${checked}/g,n.toString()).replace(/\${total}/g,r.toString()):o.replace(/\${total}/g,r.toString()):`${n}/${r}`}),s=Object(u["computed"])(()=>{const e=t.checked.length;return e>0&&e<a.value.length}),c=()=>{var e;const n=J()(e=a.value).call(e,e=>e[r.value.key]);t.allChecked=n.length>0&&Ht()(n).call(n,e=>{var n;return ue()(n=t.checked).call(n,e)})},l=e=>{var n;t.checked=e?J()(n=a.value).call(n,e=>e[r.value.key]):[]};return Object(u["watch"])(()=>t.checked,(e,r)=>{var o;c(),t.checkChangeByUser?n(vw,e,K()(o=No()(e).call(e,r)).call(o,t=>!ue()(e).call(e,t)||!ue()(r).call(r,t))):(n(vw,e),t.checkChangeByUser=!0)}),Object(u["watch"])(a,()=>{c()}),Object(u["watch"])(()=>e.data,()=>{var e,n;const a=[],i=J()(e=o.value).call(e,e=>e[r.value.key]);Y()(n=t.checked).call(n,e=>{ue()(i).call(i,e)&&a.push(e)}),t.checkChangeByUser=!1,t.checked=a}),Object(u["watch"])(()=>e.defaultChecked,(e,n)=>{var o;if(n&&e.length===n.length&&Ht()(e).call(e,e=>ue()(n).call(n,e)))return;const i=[],s=J()(o=a.value).call(o,e=>e[r.value.key]);Y()(e).call(e,e=>{ue()(s).call(s,e)&&i.push(e)}),t.checkChangeByUser=!1,t.checked=i},{immediate:!0}),{filteredData:o,checkableData:a,checkedSummary:i,isIndeterminate:s,updateAllChecked:c,handleAllCheckedChange:l}};var yw=Object(u["defineComponent"])({name:"ElTransferPanel",__name:"transfer-panel",props:gw,emits:_w,setup(e,{expose:t,emit:n}){const r=e,o=n,a=Object(u["useSlots"])(),i=({option:e})=>e,{t:s}=Object(fr["b"])(),c=Object(g["d"])("transfer"),l=Object(u["reactive"])({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=pw(r),{filteredData:p,checkedSummary:f,isIndeterminate:m,handleAllCheckedChange:v}=bw(r,l,o),_=Object(u["computed"])(()=>!Object(h["c"])(l.query)&&Object(h["c"])(p.value)),b=Object(u["computed"])(()=>!Object(h["c"])(a.default()[0].children)),{checked:y,allChecked:O,query:M}=Object(u["toRefs"])(l);return t({query:M}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(c).b("panel"))},[Object(u["createElementVNode"])("p",{class:Object(u["normalizeClass"])(Object(u["unref"])(c).be("panel","header"))},[Object(u["createVNode"])(Object(u["unref"])(ks),{modelValue:Object(u["unref"])(O),"onUpdate:modelValue":n[0]||(n[0]=e=>Object(u["isRef"])(O)?O.value=e:null),indeterminate:Object(u["unref"])(m),"validate-event":!1,onChange:Object(u["unref"])(v)},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(c).be("panel","header-title"))},Object(u["toDisplayString"])(e.title),3),Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(c).be("panel","header-count"))},Object(u["toDisplayString"])(Object(u["unref"])(f)),3)]),_:1},8,["modelValue","indeterminate","onChange"])],2),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(c).be("panel","body"),Object(u["unref"])(c).is("with-footer",b.value)])},[e.filterable?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(gn["a"]),{key:0,modelValue:Object(u["unref"])(M),"onUpdate:modelValue":n[1]||(n[1]=e=>Object(u["isRef"])(M)?M.value=e:null),class:Object(u["normalizeClass"])(Object(u["unref"])(c).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":Object(u["unref"])(Fn["Search"]),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):Object(u["createCommentVNode"])("v-if",!0),Object(u["withDirectives"])(Object(u["createVNode"])(Object(u["unref"])(ws),{modelValue:Object(u["unref"])(y),"onUpdate:modelValue":n[2]||(n[2]=e=>Object(u["isRef"])(y)?y.value=e:null),"validate-event":!1,class:Object(u["normalizeClass"])([Object(u["unref"])(c).is("filterable",e.filterable),Object(u["unref"])(c).be("panel","list")])},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(Object(u["unref"])(p),t=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(ks),{key:t[Object(u["unref"])(d).key],class:Object(u["normalizeClass"])(Object(u["unref"])(c).be("panel","item")),value:t[Object(u["unref"])(d).key],disabled:t[Object(u["unref"])(d).disabled],"validate-event":!1},{default:Object(u["withCtx"])(()=>{var n;return[Object(u["createVNode"])(i,{option:null===(n=e.optionRender)||void 0===n?void 0:n.call(e,t)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[u["vShow"],!_.value&&!Object(u["unref"])(h["c"])(e.data)]]),Object(u["withDirectives"])(Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(c).be("panel","empty"))},[Object(u["renderSlot"])(t.$slots,"empty",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(_.value?Object(u["unref"])(s)("el.transfer.noMatch"):Object(u["unref"])(s)("el.transfer.noData")),1)])],2),[[u["vShow"],_.value||Object(u["unref"])(h["c"])(e.data)]])],2),b.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("p",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(c).be("panel","footer"))},[Object(u["renderSlot"])(t.$slots,"default")],2)):Object(u["createCommentVNode"])("v-if",!0)],2))}}),Ow=yw;const Mw={key:0},kw={key:0};var Cw=Object(u["defineComponent"])({name:"ElTransfer",__name:"transfer",props:lw,emits:dw,setup(e,{expose:t,emit:n}){const r=e,o=n,i=Object(u["useSlots"])(),{t:s}=Object(fr["b"])(),c=Object(g["d"])("transfer"),{formItem:l}=Object(Hr["a"])(),d=Object(u["reactive"])({leftChecked:[],rightChecked:[]}),p=pw(r),{sourceData:f,targetData:m}=hw(r),{onSourceCheckedChange:v,onTargetCheckedChange:_}=fw(d,o),{addToLeft:b,addToRight:y}=mw(r,d,o),O=Object(u["ref"])(),M=Object(u["ref"])(),C=e=>{switch(e){case"left":O.value.query="";break;case"right":M.value.query="";break}},w=Object(u["computed"])(()=>2===r.buttonTexts.length),S=Object(u["computed"])(()=>r.titles[0]||s("el.transfer.titles.0")),T=Object(u["computed"])(()=>r.titles[1]||s("el.transfer.titles.1")),I=Object(u["computed"])(()=>r.filterPlaceholder||s("el.transfer.filterPlaceholder"));Object(u["watch"])(()=>r.modelValue,()=>{var e;r.validateEvent&&(null===l||void 0===l||null===(e=l.validate)||void 0===e||e.call(l,"change").catch(e=>Object(a["a"])(e)))});const E=Object(u["computed"])(()=>e=>{var t,n;if(r.renderContent)return r.renderContent(u["h"],e);const o=K()(t=(null===(n=i.default)||void 0===n?void 0:n.call(i,{option:e}))||[]).call(t,e=>e.type!==u["Comment"]);return o.length?o:Object(u["h"])("span",e[p.value.label]||e[p.value.key])});return t({clearQuery:C,leftPanel:O,rightPanel:M}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(c).b())},[Object(u["createVNode"])(Ow,{ref_key:"leftPanel",ref:O,data:Object(u["unref"])(f),"option-render":E.value,placeholder:I.value,title:S.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:r.props,onCheckedChange:Object(u["unref"])(v)},{empty:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"left-empty")]),default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(c).e("buttons"))},[Object(u["createVNode"])(Object(u["unref"])(Sr["a"]),{type:"primary",class:Object(u["normalizeClass"])([Object(u["unref"])(c).e("button"),Object(u["unref"])(c).is("with-texts",w.value)]),disabled:Object(u["unref"])(h["c"])(d.rightChecked),onClick:Object(u["unref"])(b)},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowLeft"]))]),_:1}),Object(u["unref"])(h["g"])(e.buttonTexts[0])?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",Mw,Object(u["toDisplayString"])(e.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),Object(u["createVNode"])(Object(u["unref"])(Sr["a"]),{type:"primary",class:Object(u["normalizeClass"])([Object(u["unref"])(c).e("button"),Object(u["unref"])(c).is("with-texts",w.value)]),disabled:Object(u["unref"])(h["c"])(d.leftChecked),onClick:Object(u["unref"])(y)},{default:Object(u["withCtx"])(()=>[Object(u["unref"])(h["g"])(e.buttonTexts[1])?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",kw,Object(u["toDisplayString"])(e.buttonTexts[1]),1)),Object(u["createVNode"])(Object(u["unref"])(k["a"]),null,{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ArrowRight"]))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),Object(u["createVNode"])(Ow,{ref_key:"rightPanel",ref:M,data:Object(u["unref"])(m),"option-render":E.value,placeholder:I.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:T.value,"default-checked":e.rightDefaultChecked,props:r.props,onCheckedChange:Object(u["unref"])(_)},{empty:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"right-empty")]),default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}}),ww=Cw;const Sw=Object(r["a"])(ww);var Tw=n("2d80"),Iw=n.n(Tw);const Ew="$treeNodeId",jw=function(e,t){t&&!t[Ew]&&Iw()(t,Ew,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Dw=(e,t)=>null===t||void 0===t?void 0:t[e||Ew],Lw=(e,t,n)=>{const r=e.value.currentNode;n();const o=e.value.currentNode;r!==o&&t("current-change",o?o.data:null,o)};var Aw=n("acf5"),Nw=n.n(Aw);const Rw=e=>{let t=!0,n=!0,r=!0,o=!0;for(let a=0,i=e.length;a<i;a++){const i=e[a];(!0!==i.checked||i.indeterminate)&&(t=!1,i.disabled||(r=!1)),(!1!==i.checked||i.indeterminate)&&(n=!1),i.isEffectivelyChecked||(o=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n,isEffectivelyChecked:o}},xw=function(e){if(0===e.childNodes.length||e.loading)return void(e.isEffectivelyChecked=e.disabled||e.checked);const{all:t,none:n,half:r,isEffectivelyChecked:o}=Rw(e.childNodes);e.isEffectivelyChecked=o,t?(e.checked=!0,e.indeterminate=!1):r?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const a=e.parent;a&&0!==a.level&&(e.store.checkStrictly||xw(a))},Pw=function(e,t){const n=e.store.props,r=e.data||{},o=n[t];if(Object(te["isFunction"])(o))return o(r,e);if(Object(te["isString"])(o))return r[o];if(Object(h["g"])(o)){const e=r[t];return Object(h["g"])(e)?"":e}},Uw=function(e,t){Y()(e).call(e,e=>{e.canFocus=t,Uw(e.childNodes,t)})};let Vw=0;var Bw=class e{constructor(e){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=Vw++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const t in e)Object(te["hasOwn"])(e,t)&&(this[t]=e[t]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var e;const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&"undefined"!==typeof n.isLeaf){const e=Pw(this,"isLeaf");Object(h["a"])(e)&&(this.isLeafByUser=e)}if(!0!==t.lazy&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Object(te["isArray"])(this.data)||jw(this,this.data),!this.data)return;const r=t.defaultExpandedKeys,o=t.key;o&&!Object(ne["isNil"])(this.key)&&r&&ue()(r).call(r,this.key)&&this.expand(null,t.autoExpandParent),o&&void 0!==t.currentNodeKey&&this.key===t.currentNodeKey&&(t.currentNode&&(t.currentNode.isCurrent=!1),t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),1!==this.level&&!0!==(null===(e=this.parent)||void 0===e?void 0:e.expanded)||(this.canFocus=!0)}setData(e){let t;Object(te["isArray"])(e)||jw(this,e),this.data=e,this.childNodes=[],t=0===this.level&&Object(te["isArray"])(this.data)?this.data:Pw(this,"children")||[];for(let n=0,r=t.length;n<r;n++)this.insertChild({data:t[n]})}get label(){return Pw(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return Pw(this,"disabled")}get nextSibling(){const e=this.parent;if(e){var t;const n=B()(t=e.childNodes).call(t,this);if(n>-1)return e.childNodes[n+1]}return null}get previousSibling(){const e=this.parent;if(e){var t;const n=B()(t=e.childNodes).call(t,this);if(n>-1)return n>0?e.childNodes[n-1]:null}return null}contains(e,t=!0){var n;return w()(n=this.childNodes||[]).call(n,n=>n===e||t&&n.contains(e))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(t,n,r){var o;if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof e)){if(!r){const e=this.getChildren(!0);null!==e&&void 0!==e&&ue()(e).call(e,t.data)||(Object(h["g"])(n)||n<0?null===e||void 0===e||e.push(t.data):null===e||void 0===e||U()(e).call(e,n,0,t.data))}$t()(t,{parent:this,store:this.store}),t=Object(u["reactive"])(new e(t)),t instanceof e&&t.initialize()}t.level=this.level+1,Object(h["g"])(n)||n<0?this.childNodes.push(t):U()(o=this.childNodes).call(o,n,0,t),this.updateLeafState()}insertBefore(e,t){var n;let r;t&&(r=B()(n=this.childNodes).call(n,t)),this.insertChild(e,r)}insertAfter(e,t){let n;var r;t&&(n=B()(r=this.childNodes).call(r,t),-1!==n&&(n+=1));this.insertChild(e,n)}removeChild(e){var t;const n=this.getChildren()||[],r=B()(n).call(n,e.data);r>-1&&U()(n).call(n,r,1);const o=B()(t=this.childNodes).call(t,e);var a;o>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,U()(a=this.childNodes).call(a,o,1));this.updateLeafState()}removeChildByData(e){var t;const n=La()(t=this.childNodes).call(t,t=>t.data===e);n&&this.removeChild(n)}expand(e,t){const n=()=>{if(t){let e=this.parent;while(e&&e.level>0)e.expanded=!0,e=e.parent}this.expanded=!0,e&&e(),Uw(this.childNodes,!0)};this.shouldLoadData()?this.loadData(e=>{Object(te["isArray"])(e)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||xw(this),n())}):n()}doCreateChildren(e,t={}){Y()(e).call(e,e=>{this.insertChild($t()({data:e},t),void 0,!0)})}collapse(){this.expanded=!1,Uw(this.childNodes,!1)}shouldLoadData(){return Boolean(!0===this.store.lazy&&this.store.load&&!this.loaded)}updateLeafState(){if(!0===this.store.lazy&&!0!==this.loaded&&"undefined"!==typeof this.isLeafByUser)return this.isLeaf=this.isLeafByUser,void(this.isEffectivelyChecked=this.isLeaf&&this.disabled);const e=this.childNodes;if(!this.store.lazy||!0===this.store.lazy&&!0===this.loaded)return this.isLeaf=!e||0===e.length,void(this.isEffectivelyChecked=this.isLeaf&&this.disabled);this.isLeaf=!1}setChecked(e,t,n,r){if(this.indeterminate="half"===e,this.checked=!0===e,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly)return;if(!this.shouldLoadData()||this.store.checkDescendants){const n=()=>{if(t){const n=this.childNodes;for(let s=0,c=n.length;s<c;s++){const o=n[s];r=r||!1!==e;const a=o.disabled&&o.isLeaf?o.checked:r;o.setChecked(a,t,!0,r)}const{half:o,all:a,isEffectivelyChecked:i}=Rw(n);a||(this.checked=a,this.indeterminate=o),this.isEffectivelyChecked=this.childNodes.length?i:this.disabled||this.checked}};if(this.shouldLoadData())return void this.loadData(()=>{n(),xw(this)},{checked:!1!==e});n()}const o=this.parent;o&&0!==o.level&&(n||xw(o))}getChildren(e=!1){if(0===this.level)return this.data;const t=this.data;if(!t)return null;const n=this.store.props;let r="children";return n&&(r=n.children||"children"),Object(h["g"])(t[r])&&(t[r]=null),e&&!t[r]&&(t[r]=[]),t[r]}updateChildren(){var e;const t=this.getChildren()||[],n=J()(e=this.childNodes).call(e,e=>e.data),r={},o=[];Y()(t).call(t,(e,t)=>{const a=e[Ew];a&&w()(n).call(n,e=>(null===e||void 0===e?void 0:e[Ew])===a)?r[a]={index:t,data:e}:o.push({index:t,data:e})}),this.store.lazy||Y()(n).call(n,e=>{r[null===e||void 0===e?void 0:e[Ew]]||this.removeChildByData(e)}),Y()(o).call(o,({index:e,data:t})=>{this.insertChild({data:t},e)}),this.updateLeafState()}loadData(e,t={}){if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Q()(t).length)e&&e.call(this);else{this.loading=!0;const n=n=>{this.childNodes=[],this.doCreateChildren(n,t),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,n)},r=()=>{this.loading=!1};this.store.load(this,n,r)}}eachNode(e){const t=[this];while(t.length){const n=t.shift();t.unshift(...n.childNodes),e(n)}}reInitChecked(){this.store.checkStrictly||xw(this)}},Fw=class{constructor(e){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const t in e)Object(te["hasOwn"])(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new Bw({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,e=>{this.root.doCreateChildren(e),this._initDefaultCheckedNodes()},te["NOOP"])}else this._initDefaultCheckedNodes()}filter(e){const t=this.filterNodeMethod,n=this.lazy,r=async function(o){const a=o.root?o.root.childNodes:o.childNodes;for(const[n,i]of ja()(a).call(a))i.visible=!(null===t||void 0===t||!t.call(i,e,i.data,i)),n%80===0&&n>0&&await Object(u["nextTick"])(),await r(i);if(!o.visible&&a.length){let e=!0;e=!w()(a).call(a,e=>e.visible),o.root?o.root.visible=!1===e:o.visible=!1===e}e&&o.visible&&!o.isLeaf&&(n&&!o.loaded||o.expand())};r(this)}setData(e){e!==this.root.data?(this.nodesMap={},this.root.setData(e),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof Bw)return e;const t=Object(te["isObject"])(e)?Dw(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){var n;const r=this.getNode(t);null===(n=r.parent)||void 0===n||n.insertBefore({data:e},r)}insertAfter(e,t){var n;const r=this.getNode(t);null===(n=r.parent)||void 0===n||n.insertAfter({data:e},r)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const n=Object(h["e"])(t)?this.root:this.getNode(t);n&&n.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;Y()(e).call(e,e=>{const n=t[e];n&&n.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){const t=this.defaultCheckedKeys||[];!Object(ne["isNil"])(e.key)&&ue()(t).call(t,e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(e&&e.data)if(t){const t=e.key;Object(ne["isNil"])(t)||(this.nodesMap[t]=e)}else this.nodesMap[e.id]=e}deregisterNode(e){var t;this.key&&e&&e.data&&(Y()(t=e.childNodes).call(t,e=>{this.deregisterNode(e)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const n=[],r=function(o){var a;Y()(a=o.root?o.root.childNodes:o.childNodes).call(a,o=>{(o.checked||t&&o.indeterminate)&&(!e||e&&o.isLeaf)&&n.push(o.data),r(o)})};return r(this),n}getCheckedKeys(e=!1){var t;return J()(t=this.getCheckedNodes(e)).call(t,e=>(e||{})[this.key])}getHalfCheckedNodes(){const e=[],t=function(n){var r;Y()(r=n.root?n.root.childNodes:n.childNodes).call(r,n=>{n.indeterminate&&e.push(n.data),t(n)})};return t(this),e}getHalfCheckedKeys(){var e;return J()(e=this.getHalfCheckedNodes()).call(e,e=>(e||{})[this.key])}_getAllNodes(){const e=[],t=this.nodesMap;for(const n in t)Object(te["hasOwn"])(t,n)&&e.push(t[n]);return e}updateChildren(e,t){const n=this.nodesMap[e];if(!n)return;const r=n.childNodes;for(let o=r.length-1;o>=0;o--){const e=r[o];this.remove(e.data)}for(let o=0,a=t.length;o<a;o++){const e=t[o];this.append(e,n.data)}}_setCheckedKeys(e,t=!1,n){var r;const o=Ff()(r=this._getAllNodes()).call(r,(e,t)=>e.level-t.level),a=Nw()(null),i=Q()(n);Y()(o).call(o,e=>e.setChecked(!1,!1));const s=t=>{var n;Y()(n=t.childNodes).call(n,t=>{var n;a[t.data[e]]=!0,null!==(n=t.childNodes)&&void 0!==n&&n.length&&s(t)})};for(let c=0,l=o.length;c<l;c++){const n=o[c],r=n.data[e].toString();if(ue()(i).call(i,r)){if(n.childNodes.length&&s(n),n.isLeaf||this.checkStrictly)n.setChecked(!0,!1);else if(n.setChecked(!0,!0),t){n.setChecked(!1,!1,!0);const e=function(t){var n;Y()(n=t.childNodes).call(n,t=>{t.isLeaf||t.setChecked(!1,!1,!0),e(t)}),t.reInitChecked()};e(n)}}else n.checked&&!a[r]&&n.setChecked(!1,!1)}}setCheckedNodes(e,t=!1){const n=this.key,r={};Y()(e).call(e,e=>{r[(e||{})[n]]=!0}),this._setCheckedKeys(n,t,r)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const n=this.key,r={};Y()(e).call(e,e=>{r[e]=!0}),this._setCheckedKeys(n,t,r)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,Y()(e).call(e,e=>{const t=this.getNode(e);t&&t.expand(null,this.autoExpandParent)})}setChecked(e,t,n){const r=this.getNode(e);r&&r.setChecked(!!t,n)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){var n;const r=e[this.key],o=this.nodesMap[r];this.setCurrentNode(o),t&&this.currentNode&&this.currentNode.level>1&&(null===(n=this.currentNode.parent)||void 0===n||n.expand(null,!0))}setCurrentNodeKey(e,t=!0){if(this.currentNodeKey=e,Object(h["e"])(e))return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);const n=this.getNode(e);var r;n&&(this.setCurrentNode(n),t&&this.currentNode&&this.currentNode.level>1&&(null===(r=this.currentNode.parent)||void 0===r||r.expand(null,!0)))}};const Gw="RootTree",Hw="NodeInstance",Yw="TreeNodeMap";function zw(e){const t=Object(u["inject"])(Yw,null);let n={treeNodeExpand:t=>{var n;e.node!==t&&(null===(n=e.node)||void 0===n||n.collapse())},children:new q.a};return t&&t.children.add(n),Object(u["onBeforeUnmount"])(()=>{t&&t.children.delete(n),n=null}),Object(u["provide"])(Yw,n),{broadcastExpanded:t=>{if(e.accordion)for(const e of n.children)e.treeNodeExpand(t)}}}const qw=xe()("dragEvents");function Ww({props:e,ctx:t,el$:n,dropIndicator$:r,store:o}){const a=Object(g["d"])("tree"),s=Object(u["ref"])({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null}),c=({event:n,treeNode:r})=>{if(n.dataTransfer){if(Object(te["isFunction"])(e.allowDrag)&&!e.allowDrag(r.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch{}s.value.draggingNode=r,t.emit("node-drag-start",r.node,n)}},l=({event:o,treeNode:c})=>{if(!o.dataTransfer)return;const l=c,u=s.value.dropNode;u&&u.node.id!==l.node.id&&Object(i["e"])(u.$el,a.is("drop-inner"));const d=s.value.draggingNode;if(!d||!l)return;let p=!0,f=!0,h=!0,m=!0;Object(te["isFunction"])(e.allowDrop)&&(p=e.allowDrop(d.node,l.node,"prev"),m=f=e.allowDrop(d.node,l.node,"inner"),h=e.allowDrop(d.node,l.node,"next")),o.dataTransfer.dropEffect=f||p||h?"move":"none",(p||f||h)&&(null===u||void 0===u?void 0:u.node.id)!==l.node.id&&(u&&t.emit("node-drag-leave",d.node,u.node,o),t.emit("node-drag-enter",d.node,l.node,o)),s.value.dropNode=p||f||h?l:null,l.node.nextSibling===d.node&&(h=!1),l.node.previousSibling===d.node&&(p=!1),l.node.contains(d.node,!1)&&(f=!1),(d.node===l.node||d.node.contains(l.node))&&(p=!1,f=!1,h=!1);const v=l.$el,g=v.querySelector("."+a.be("node","content")).getBoundingClientRect(),_=n.value.getBoundingClientRect(),b=n.value.scrollTop;let y;const O=p?f?.25:h?.45:1:Number.NEGATIVE_INFINITY,M=h?f?.75:p?.55:0:Number.POSITIVE_INFINITY;let k=-9999;const C=o.clientY-g.top;y=C<g.height*O?"before":C>g.height*M?"after":f?"inner":"none";const w=v.querySelector("."+a.be("node","expand-icon")).getBoundingClientRect(),S=r.value;"before"===y?k=w.top-_.top+b:"after"===y&&(k=w.bottom-_.top+b),S.style.top=k+"px",S.style.left=w.right-_.left+"px","inner"===y?Object(i["a"])(v,a.is("drop-inner")):Object(i["e"])(v,a.is("drop-inner")),s.value.showDropIndicator="before"===y||"after"===y,s.value.allowDrop=s.value.showDropIndicator||m,s.value.dropType=y,t.emit("node-drag-over",d.node,l.node,o)},d=e=>{const{draggingNode:n,dropType:r,dropNode:c}=s.value;if(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move"),null!==n&&void 0!==n&&n.node.data&&c){var l,u;const s={data:n.node.data};"none"!==r&&n.node.remove(),"before"===r?null===(l=c.node.parent)||void 0===l||l.insertBefore(s,c.node):"after"===r?null===(u=c.node.parent)||void 0===u||u.insertAfter(s,c.node):"inner"===r&&c.node.insertChild(s),"none"!==r&&(o.value.registerNode(s),o.value.key&&n.node.eachNode(e=>{var t;null===(t=o.value.nodesMap[e.data[o.value.key]])||void 0===t||t.setChecked(e.checked,!o.value.checkStrictly)})),Object(i["e"])(c.$el,a.is("drop-inner")),t.emit("node-drag-end",n.node,c.node,r,e),"none"!==r&&t.emit("node-drop",n.node,c.node,r,e)}n&&!c&&t.emit("node-drag-end",n.node,null,r,e),s.value.showDropIndicator=!1,s.value.draggingNode=null,s.value.dropNode=null,s.value.allowDrop=!0};return Object(u["provide"])(qw,{treeNodeDragStart:c,treeNodeDragOver:l,treeNodeDragEnd:d}),{dragState:s}}var Kw=Object(u["defineComponent"])({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Object(g["d"])("tree"),n=Object(u["inject"])(Hw),r=Object(u["inject"])(Gw);return()=>{const o=e.node,{data:a,store:i}=o;return e.renderContent?e.renderContent(u["h"],{_self:n,node:o,data:a,store:i}):Object(u["renderSlot"])(r.ctx.slots,"default",{node:o,data:a},()=>[Object(u["h"])(GC,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[o.label])])}}}),$w=Kw,Jw=Object(u["defineComponent"])({name:"ElTreeNode",components:{ElCollapseTransition:Wc,ElCheckbox:ks,NodeContent:$w,ElIcon:k["a"],Loading:Fn["Loading"]},props:{node:{type:Bw,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=Object(g["d"])("tree"),{broadcastExpanded:r}=zw(e),o=Object(u["inject"])(Gw),i=Object(u["ref"])(!1),s=Object(u["ref"])(!1),c=Object(u["ref"])(),l=Object(u["ref"])(),d=Object(u["ref"])(),p=Object(u["inject"])(qw),f=Object(u["getCurrentInstance"])();Object(u["provide"])(Hw,f),o||Object(a["a"])("Tree","Can not find node's tree."),e.node.expanded&&(i.value=!0,s.value=!0);const h=o.props.props["children"]||"children";Object(u["watch"])(()=>{var t;const n=null===(t=e.node.data)||void 0===t?void 0:t[h];return n&&[...n]},()=>{e.node.updateChildren()}),Object(u["watch"])(()=>e.node.indeterminate,t=>{_(e.node.checked,t)}),Object(u["watch"])(()=>e.node.checked,t=>{_(t,e.node.indeterminate)}),Object(u["watch"])(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),Object(u["watch"])(()=>e.node.expanded,e=>{Object(u["nextTick"])(()=>i.value=e),e&&(s.value=!0)});const m=e=>o.props.nodeKey?Dw(o.props.nodeKey,e.data):e.id,v=t=>{const n=e.props.class;if(!n)return{};let r;if(Object(te["isFunction"])(n)){const{data:e}=t;r=n(e,t)}else r=n;return Object(te["isString"])(r)?{[r]:!0}:r},_=(t,n)=>{c.value===t&&l.value===n||o.ctx.emit("check-change",e.node.data,t,n),c.value=t,l.value=n},b=t=>{Lw(o.store,o.ctx.emit,()=>{var t;if(null!==o&&void 0!==o&&null!==(t=o.props)&&void 0!==t&&t.nodeKey){const t=m(e.node);o.store.value.setCurrentNodeKey(t)}else o.store.value.setCurrentNode(e.node)}),o.currentNode.value=e.node,o.props.expandOnClickNode&&O(),(o.props.checkOnClickNode||e.node.isLeaf&&o.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&M(!e.node.checked),o.ctx.emit("node-click",e.node.data,e.node,f,t)},y=t=>{var n;null!==(n=o.instance.vnode.props)&&void 0!==n&&n["onNodeContextmenu"]&&(t.stopPropagation(),t.preventDefault()),o.ctx.emit("node-contextmenu",t,e.node.data,e.node,f)},O=()=>{e.node.isLeaf||(i.value?(o.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},M=t=>{const n=null===o||void 0===o?void 0:o.props.checkStrictly,r=e.node.childNodes;!n&&r.length&&(t=w()(r).call(r,e=>!e.isEffectivelyChecked)),e.node.setChecked(t,!n),Object(u["nextTick"])(()=>{const t=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})})},k=(e,t,n)=>{r(t),o.ctx.emit("node-expand",e,t,n)},C=t=>{o.props.draggable&&p.treeNodeDragStart({event:t,treeNode:e})},S=t=>{t.preventDefault(),o.props.draggable&&p.treeNodeDragOver({event:t,treeNode:{$el:d.value,node:e.node}})},T=e=>{e.preventDefault()},I=e=>{o.props.draggable&&p.treeNodeDragEnd(e)};return{ns:n,node$:d,tree:o,expanded:i,childNodeRendered:s,oldChecked:c,oldIndeterminate:l,getNodeKey:m,getNodeClass:v,handleSelectChange:_,handleClick:b,handleContextMenu:y,handleExpandIconClick:O,handleCheckChange:M,handleChildNodeExpand:k,handleDragStart:C,handleDragOver:S,handleDrop:T,handleDragEnd:I,CaretRight:Fn["CaretRight"]}}});const Xw=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],Qw=["aria-expanded"];function Zw(e,t,n,r,o,a){const i=Object(u["resolveComponent"])("el-icon"),s=Object(u["resolveComponent"])("el-checkbox"),c=Object(u["resolveComponent"])("loading"),l=Object(u["resolveComponent"])("node-content"),d=Object(u["resolveComponent"])("el-tree-node"),p=Object(u["resolveComponent"])("el-collapse-transition");return Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref:"node$",class:Object(u["normalizeClass"])([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=Object(u["withModifiers"])((...t)=>e.handleClick&&e.handleClick(...t),["stop"])),onContextmenu:t[3]||(t[3]=(...t)=>e.handleContextMenu&&e.handleContextMenu(...t)),onDragstart:t[4]||(t[4]=Object(u["withModifiers"])((...t)=>e.handleDragStart&&e.handleDragStart(...t),["stop"])),onDragover:t[5]||(t[5]=Object(u["withModifiers"])((...t)=>e.handleDragOver&&e.handleDragOver(...t),["stop"])),onDragend:t[6]||(t[6]=Object(u["withModifiers"])((...t)=>e.handleDragEnd&&e.handleDragEnd(...t),["stop"])),onDrop:t[7]||(t[7]=Object(u["withModifiers"])((...t)=>e.handleDrop&&e.handleDrop(...t),["stop"]))},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(e.ns.be("node","content")),style:Object(u["normalizeStyle"])({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(Object(u["openBlock"])(),Object(u["createBlock"])(i,{key:0,class:Object(u["normalizeClass"])([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Object(u["withModifiers"])(e.handleExpandIconClick,["stop"])},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):Object(u["createCommentVNode"])("v-if",!0),e.showCheckbox?(Object(u["openBlock"])(),Object(u["createBlock"])(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Object(u["withModifiers"])(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):Object(u["createCommentVNode"])("v-if",!0),e.node.loading?(Object(u["openBlock"])(),Object(u["createBlock"])(i,{key:2,class:Object(u["normalizeClass"])([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(c)]),_:1},8,["class"])):Object(u["createCommentVNode"])("v-if",!0),Object(u["createVNode"])(l,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Object(u["createVNode"])(p,null,{default:Object(u["withCtx"])(()=>[!e.renderAfterExpand||e.childNodeRendered?Object(u["withDirectives"])((Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=Object(u["withModifiers"])(()=>{},["stop"]))},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.node.childNodes,t=>(Object(u["openBlock"])(),Object(u["createBlock"])(d,{key:e.getNodeKey(t),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:t,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,Qw)),[[u["vShow"],e.expanded]]):Object(u["createCommentVNode"])("v-if",!0)]),_:1})],42,Xw)),[[u["vShow"],e.node.visible]])}var eS=Object(Jo["a"])(Jw,[["render",Zw]]);function tS({el$:e},t){const n=Object(g["d"])("tree");function r(e,n){var r,o;const a=t.value.getNode(e[n].dataset.key);return a.canFocus&&a.visible&&((null===(r=a.parent)||void 0===r?void 0:r.expanded)||0===(null===(o=a.parent)||void 0===o?void 0:o.level))}Object(u["onMounted"])(()=>{a()}),Object(u["onUpdated"])(()=>{var t,n;null===(t=e.value)||void 0===t||Y()(n=t.querySelectorAll("input[type=checkbox]")).call(n,e=>{e.setAttribute("tabindex","-1")})});const o=t=>{var o,a,i,s;const c=t.target;if(!ue()(o=c.className).call(o,n.b("node")))return;const l=Object(St["b"])(t),u=Pn()(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=B()(u).call(u,c);let p;if(ue()(a=[vt["a"].up,vt["a"].down]).call(a,l)){if(t.preventDefault(),l===vt["a"].up){p=-1===d?0:0!==d?d-1:u.length-1;const e=p;while(1){if(r(u,p))break;if(p--,p===e){p=-1;break}p<0&&(p=u.length-1)}}else{p=-1===d?0:d<u.length-1?d+1:0;const e=p;while(1){if(r(u,p))break;if(p++,p===e){p=-1;break}p>=u.length&&(p=0)}}-1!==p&&u[p].focus()}ue()(i=[vt["a"].left,vt["a"].right]).call(i,l)&&(t.preventDefault(),c.click());const f=c.querySelector('[type="checkbox"]');ue()(s=[vt["a"].enter,vt["a"].numpadEnter,vt["a"].space]).call(s,l)&&f&&(t.preventDefault(),f.click())};Object(_["useEventListener"])(e,"keydown",o);const a=()=>{var t,r;if(!e.value)return;const o=Pn()(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Y()(t=Pn()(e.value.querySelectorAll("input[type=checkbox]"))).call(t,e=>{e.setAttribute("tabindex","-1")});const a=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);a.length?a[0].setAttribute("tabindex","0"):null===(r=o[0])||void 0===r||r.setAttribute("tabindex","0")}}const nS=Object(c["b"])({data:{type:Object(c["c"])(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:Object(c["c"])(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:Object(c["c"])(Function)},allowDrop:{type:Object(c["c"])(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:S["e"]}}),rS={"check-change":(e,t,n)=>e&&Object(h["a"])(t)&&Object(h["a"])(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,r)=>e&&t&&r instanceof Event,"node-contextmenu":(e,t,n,r)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,r)=>e&&r,"node-drop":(e,t,n,r)=>e&&t&&r,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n};var oS=Object(u["defineComponent"])({name:"ElTree",components:{ElTreeNode:eS},props:nS,emits:rS,setup(e,t){const{t:n}=Object(fr["b"])(),r=Object(g["d"])("tree"),o=Object(u["ref"])(new Fw({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const a=Object(u["ref"])(o.value.root),i=Object(u["ref"])(null),s=Object(u["ref"])(null),c=Object(u["ref"])(null),{broadcastExpanded:l}=zw(e),{dragState:d}=Ww({props:e,ctx:t,el$:s,dropIndicator$:c,store:o});tS({el$:s},o);const p=Object(u["getCurrentInstance"])(),f=Object(u["computed"])(()=>{let e=null===p||void 0===p?void 0:p.parent;while(e){if("ElTreeSelect"===e.type.name)return!0;e=e.parent}return!1}),h=Object(u["computed"])(()=>{const{childNodes:e}=a.value;return(!e||0===e.length||Ht()(e).call(e,({visible:e})=>!e))&&!f.value});Object(u["watch"])(()=>e.currentNodeKey,e=>{o.value.setCurrentNodeKey(null!==e&&void 0!==e?e:null)}),Object(u["watch"])(()=>e.defaultCheckedKeys,(e,t)=>{Object(ne["isEqual"])(e,t)||o.value.setDefaultCheckedKey(null!==e&&void 0!==e?e:[])}),Object(u["watch"])(()=>e.defaultExpandedKeys,e=>{o.value.setDefaultExpandedKeys(null!==e&&void 0!==e?e:[])}),Object(u["watch"])(()=>e.data,e=>{o.value.setData(e)},{deep:!0}),Object(u["watch"])(()=>e.checkStrictly,e=>{o.value.checkStrictly=e});const m=t=>{var n;if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");K()(n=o.value).call(n,t)},v=t=>e.nodeKey?Dw(e.nodeKey,t.data):t.id,_=t=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in "+t)},b=e=>{_("getNodePath");const t=o.value.getNode(e);if(!t)return[];const n=[t.data];let r=t.parent;while(r&&r!==a.value)n.push(r.data),r=r.parent;return nh()(n).call(n)},y=(e,t)=>o.value.getCheckedNodes(e,t),O=e=>o.value.getCheckedKeys(e),M=()=>{const e=o.value.getCurrentNode();return e?e.data:null},k=()=>{_("getCurrentKey");const t=M();return t?t[e.nodeKey]:null},C=(e,t)=>{_("setCheckedNodes"),o.value.setCheckedNodes(e,t)},w=(e,t)=>{_("setCheckedKeys"),o.value.setCheckedKeys(e,t)},S=(e,t,n)=>{o.value.setChecked(e,t,n)},T=()=>o.value.getHalfCheckedNodes(),I=()=>o.value.getHalfCheckedKeys(),E=(e,n=!0)=>{_("setCurrentNode"),Lw(o,t.emit,()=>{l(e),o.value.setUserCurrentNode(e,n)})},j=(e=null,n=!0)=>{_("setCurrentKey"),Lw(o,t.emit,()=>{l(),o.value.setCurrentNodeKey(e,n)})},D=e=>o.value.getNode(e),L=e=>{o.value.remove(e)},A=(e,t)=>{o.value.append(e,t)},N=(e,t)=>{o.value.insertBefore(e,t)},R=(e,t)=>{o.value.insertAfter(e,t)},x=(e,n,r)=>{l(n),t.emit("node-expand",e,n,r)},P=(e,t)=>{_("updateKeyChildren"),o.value.updateChildren(e,t)};return Object(u["provide"])(Gw,{ctx:t,props:e,store:o,root:a,currentNode:i,instance:p}),Object(u["provide"])(se["b"],void 0),{ns:r,store:o,root:a,currentNode:i,dragState:d,el$:s,dropIndicator$:c,isEmpty:h,filter:m,getNodeKey:v,getNodePath:b,getCheckedNodes:y,getCheckedKeys:O,getCurrentNode:M,getCurrentKey:k,setCheckedNodes:C,setCheckedKeys:w,setChecked:S,getHalfCheckedNodes:T,getHalfCheckedKeys:I,setCurrentNode:E,setCurrentKey:j,t:n,getNode:D,remove:L,append:A,insertBefore:N,insertAfter:R,handleNodeExpand:x,updateKeyChildren:P}}});function aS(e,t,n,r,o,a){const i=Object(u["resolveComponent"])("el-tree-node");return Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref:"el$",class:Object(u["normalizeClass"])([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner","inner"===e.dragState.dropType),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.root.childNodes,t=>(Object(u["openBlock"])(),Object(u["createBlock"])(i,{key:e.getNodeKey(t),node:t,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(e.ns.e("empty-block"))},[Object(u["renderSlot"])(e.$slots,"empty",{},()=>{var t;return[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(e.ns.e("empty-text"))},Object(u["toDisplayString"])(null!==(t=e.emptyText)&&void 0!==t?t:e.t("el.tree.emptyText")),3)]})],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["withDirectives"])(Object(u["createElementVNode"])("div",{ref:"dropIndicator$",class:Object(u["normalizeClass"])(e.ns.e("drop-indicator"))},null,2),[[u["vShow"],e.dragState.showDropIndicator]])],2)}var iS=Object(Jo["a"])(oS,[["render",aS]]);const sS=Object(r["a"])(iS);n("33d1"),n("ea98");const cS=(e,{attrs:t,emit:n},{select:r,tree:a,key:i})=>{const s=Object(g["d"])("tree-select");Object(u["watch"])(()=>e.data,()=>{e.filterable&&Object(u["nextTick"])(()=>{var e,t;null===(e=a.value)||void 0===e||K()(e).call(e,null===(t=r.value)||void 0===t?void 0:t.states.inputValue)})},{flush:"post"});const c=e=>{const t=e.at(-1);var n;t.expanded&&t.childNodes.at(-1)?c([t.childNodes.at(-1)]):null===(n=a.value.el$)||void 0===n||null===(n=n.querySelector(`[data-key="${e.at(-1).key}"]`))||void 0===n||n.focus({preventScroll:!0})};return Object(u["onMounted"])(()=>{Object(_["useEventListener"])(()=>{var e;return null===(e=r.value)||void 0===e?void 0:e.$el},"keydown",async e=>{var t;const n=Object(St["b"])(e),{dropdownMenuVisible:o}=r.value;ue()(t=[vt["a"].down,vt["a"].up]).call(t,n)&&o&&(await Object(u["nextTick"])(),qe()(()=>{var e;if(vt["a"].up!==n)null===(e=r.value.optionsArray[r.value.states.hoveringIndex].$el)||void 0===e||null===(e=e.parentNode)||void 0===e||null===(e=e.parentNode)||void 0===e||e.focus({preventScroll:!0});else{const e=a.value.store.root.childNodes;c(e)}}))},{capture:!0})}),{...Object(ne["pick"])(Object(u["toRefs"])(e),Q()(Wa.props)),...t,class:Object(u["computed"])(()=>t.class),style:Object(u["computed"])(()=>t.style),"onUpdate:modelValue":e=>n(o["c"],e),valueKey:i,popperClass:Object(u["computed"])(()=>{const t=[s.e("popper")];return e.popperClass&&t.push(e.popperClass),t.join(" ")}),filterMethod:(t="")=>{var n;e.filterMethod?e.filterMethod(t):e.remoteMethod?e.remoteMethod(t):null===(n=a.value)||void 0===n||K()(n).call(n,t)}}},lS=Object(u["defineComponent"])({extends:Ka,setup(e,t){const n=Ka.setup(e,t);delete n.selectOptionClick;const r=Object(u["getCurrentInstance"])().proxy;return Object(u["nextTick"])(()=>{n.select.states.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),Object(u["watch"])(()=>t.attrs.visible,e=>{Object(u["nextTick"])(()=>{n.states.visible=e})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function uS(e){return e||0===e}function dS(e){return Object(te["isArray"])(e)&&e.length}function pS(e){return Object(te["isArray"])(e)?e:uS(e)?[e]:[]}function fS(e,t,n,r,o){for(let a=0;a<e.length;a++){const i=e[a];if(t(i,a,e,o))return r?r(i,a,e,o):i;{const e=n(i);if(dS(e)){const o=fS(e,t,n,r,i);if(o)return o}}}}function hS(e,t,n,r){for(let o=0;o<e.length;o++){const a=e[o];t(a,o,e,r);const i=n(a);dS(i)&&hS(i,t,n,a)}}const mS=(e,{attrs:t,slots:n,emit:r},{select:a,tree:i,key:s})=>{var c,l;Object(u["watch"])([()=>e.modelValue,i],()=>{e.showCheckbox&&Object(u["nextTick"])(()=>{const t=i.value;t&&!Object(ne["isEqual"])(t.getCheckedKeys(),pS(e.modelValue))&&t.setCheckedKeys(pS(e.modelValue))})},{immediate:!0,deep:!0});const d=Object(u["computed"])(()=>({value:s.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),p=(e,t)=>{var n;const r=d.value[e];return Object(te["isFunction"])(r)?r(t,null===(n=i.value)||void 0===n?void 0:n.getNode(p("value",t))):t[r]},f=K()(c=J()(l=pS(e.modelValue)).call(l,t=>fS(e.data||[],e=>p("value",e)===t,e=>p("children",e),(e,t,n,r)=>r&&p("value",r)))).call(c,e=>uS(e)),m=Object(u["computed"])(()=>{var t;if(!e.renderAfterExpand&&!e.lazy)return[];const n=[];return hS(No()(t=e.data).call(t,e.cacheData),e=>{const t=p("value",e);n.push({value:t,currentLabel:p("label",e),isDisabled:p("disabled",e)})},e=>p("children",e)),n}),v=()=>{var e,t;return null===(e=i.value)||void 0===e?void 0:K()(t=e.getCheckedKeys()).call(t,e=>{var t;const n=null===(t=i.value)||void 0===t?void 0:t.getNode(e);return!Object(ne["isNil"])(n)&&Object(h["c"])(n.childNodes)})},g=t=>{Object(ne["isEqual"])(e.modelValue,t)||r(o["a"],t)};function _(e){r(o["c"],e),g(e)}return{...Object(ne["pick"])(Object(u["toRefs"])(e),Q()(sS.props)),...t,nodeKey:s,expandOnClickNode:Object(u["computed"])(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:Object(u["computed"])(()=>{var t;return e.defaultExpandedKeys?No()(t=e.defaultExpandedKeys).call(t,f):f}),renderContent:(t,{node:r,data:o,store:a})=>t(lS,{value:p("value",o),label:p("label",o),disabled:p("disabled",o),visible:r.visible},e.renderContent?()=>e.renderContent(t,{node:r,data:o,store:a}):n.default?()=>n.default({node:r,data:o,store:a}):void 0),filterNodeMethod:(t,n,r)=>e.filterNodeMethod?e.filterNodeMethod(t,n,r):!t||new RegExp(Object(Zo["b"])(t),"i").test(p("label",n)||""),onNodeClick:(n,r,o)=>{var i;if(null===(i=t.onNodeClick)||void 0===i||i.call(t,n,r,o),!e.showCheckbox||!e.checkOnClickNode)if(e.showCheckbox||!e.checkStrictly&&!r.isLeaf)e.expandOnClickNode&&o.proxy.handleExpandIconClick();else if(!p("disabled",n)){var s,c;const e=null===(s=a.value)||void 0===s?void 0:s.states.options.get(p("value",n));null===(c=a.value)||void 0===c||c.handleOptionSelect(e)}},onCheck:(n,r)=>{var o,s;if(!e.showCheckbox)return;const c=p("value",n),l={};hS([i.value.store.root],e=>l[e.key]=e,e=>e.childNodes);const d=r.checkedKeys,f=e.multiple?K()(o=pS(e.modelValue)).call(o,e=>!(e in l)&&!ue()(d).call(d,e)):[],h=No()(f).call(f,d);if(e.checkStrictly)_(e.multiple?h:ue()(h).call(h,c)?c:void 0);else if(e.multiple){const e=v();_(No()(f).call(f,e))}else{const t=fS([n],e=>!dS(p("children",e))&&!p("disabled",e),e=>p("children",e)),r=t?p("value",t):void 0,o=uS(e.modelValue)&&!!fS([n],t=>p("value",t)===e.modelValue,e=>p("children",e));_(r===e.modelValue||o?void 0:r)}Object(u["nextTick"])(()=>{var r;const o=pS(e.modelValue);i.value.setCheckedKeys(o),null===(r=t.onCheck)||void 0===r||r.call(t,n,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})}),null===(s=a.value)||void 0===s||s.focus()},onNodeExpand:(n,r,o)=>{var a;null===(a=t.onNodeExpand)||void 0===a||a.call(t,n,r,o),Object(u["nextTick"])(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&r.checked){var t;const n={},r=i.value.getCheckedKeys();hS([i.value.store.root],e=>n[e.key]=e,e=>e.childNodes);const o=K()(t=pS(e.modelValue)).call(t,e=>!(e in n)&&!ue()(r).call(r,e)),a=v();_(No()(o).call(o,a))}})},cacheOptions:m}};var vS=Object(u["defineComponent"])({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Object(u["inject"])(ta);return Object(u["watch"])(()=>e.data,()=>{var n,r,o;Y()(n=e.data).call(n,e=>{t.states.cachedOptions.has(e.value)||t.states.cachedOptions.set(e.value,e)});const a=(null===(r=t.selectRef)||void 0===r?void 0:r.querySelectorAll("input"))||[];_["isClient"]&&!ue()(o=Pn()(a)).call(o,document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}}),gS=Object(u["defineComponent"])({name:"ElTreeSelect",inheritAttrs:!1,props:{...xa,...nS,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r,emit:o,attrs:a}=t,i={...a,onChange:void 0},s=Object(u["ref"])(),c=Object(u["ref"])(),l=Object(u["computed"])(()=>e.nodeKey||e.valueKey||"value"),d=cS(e,{attrs:a,emit:o},{select:s,tree:c,key:l}),{cacheOptions:p,...f}=mS(e,{attrs:i,slots:n,emit:o},{select:s,tree:c,key:l}),h=Object(u["reactive"])({});return r(h),Object(u["onMounted"])(()=>{$t()(h,{...Object(ne["pick"])(c.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Object(ne["pick"])(s.value,["focus","blur","selectedLabel"]),treeRef:c.value,selectRef:s.value})}),()=>Object(u["h"])(Wa,Object(u["reactive"])({...d,ref:e=>s.value=e}),{...n,default:()=>[Object(u["h"])(vS,{data:p.value}),Object(u["h"])(sS,Object(u["reactive"])({...f,ref:e=>c.value=e}))]})}}),_S=gS;const bS=Object(r["a"])(_S);n("e9f5"),n("910d");const yS=xe()(),OS={key:-1,level:-1,data:{}};let MS=function(e){return e["KEY"]="id",e["LABEL"]="label",e["CHILDREN"]="children",e["DISABLED"]="disabled",e["CLASS"]="",e}({}),kS=function(e){return e["ADD"]="add",e["DELETE"]="delete",e}({});const CS={type:Number,default:26},wS=Object(c["b"])({data:{type:Object(c["c"])(Array),default:()=>Object(Bc["a"])([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:Object(c["c"])(Object),default:()=>Object(Bc["a"])({children:MS.CHILDREN,label:MS.LABEL,disabled:MS.DISABLED,value:MS.KEY,class:MS.CLASS})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:Object(c["c"])(Array),default:()=>Object(Bc["a"])([])},checkStrictly:Boolean,defaultExpandedKeys:{type:Object(c["c"])(Array),default:()=>Object(Bc["a"])([])},indent:{type:Number,default:16},itemSize:CS,icon:{type:S["e"]},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:Object(c["c"])([String,Number])},accordion:Boolean,filterMethod:{type:Object(c["c"])(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),SS=Object(c["b"])({node:{type:Object(c["c"])(Object),default:()=>Object(Bc["a"])(OS)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:CS}),TS=Object(c["b"])({node:{type:Object(c["c"])(Object),required:!0}}),IS="node-click",ES="node-drop",jS="node-expand",DS="node-collapse",LS="current-change",AS="check",NS="check-change",RS="node-contextmenu",xS={[IS]:(e,t,n)=>e&&t&&n,[ES]:(e,t,n)=>e&&t&&n,[jS]:(e,t)=>e&&t,[DS]:(e,t)=>e&&t,[LS]:(e,t)=>e&&t,[AS]:(e,t)=>e&&t,[NS]:(e,t)=>e&&Object(h["a"])(t),[RS]:(e,t,n)=>e&&t&&n},PS={click:(e,t)=>!(!e||!t),drop:(e,t)=>!(!e||!t),toggle:e=>!!e,check:(e,t)=>e&&Object(h["a"])(t)};function US(e,t){const n=Object(u["ref"])(new q.a),r=Object(u["ref"])(new q.a),{emit:o}=Object(u["getCurrentInstance"])();Object(u["watch"])([()=>t.value,()=>e.defaultCheckedKeys],()=>Object(u["nextTick"])(()=>{b(e.defaultCheckedKeys)}),{immediate:!0});const a=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:o,maxLevel:a}=t.value,i=n.value,s=new q.a;for(let e=a;e>=1;--e){const t=o.get(e);t&&Y()(t).call(t,e=>{const t=e.children;let n=!e.isLeaf||e.disabled||i.has(e.key);if(t){let r=!0,o=!1;for(const e of t){const t=e.key;if(e.isEffectivelyChecked||(n=!1),i.has(t))o=!0;else{if(s.has(t)){r=!1,o=!0;break}r=!1}}r?i.add(e.key):o?(s.add(e.key),i.delete(e.key)):(i.delete(e.key),s.delete(e.key))}e.isEffectivelyChecked=n})}r.value=s},i=e=>n.value.has(e.key),s=e=>r.value.has(e.key),c=(t,r,o=!0,i=!0)=>{const s=n.value,c=t.children;!e.checkStrictly&&o&&null!==c&&void 0!==c&&c.length&&(r=w()(c).call(c,e=>!e.isEffectivelyChecked));const u=(t,n)=>{s[n?kS.ADD:kS.DELETE](t.key);const r=t.children;!e.checkStrictly&&r&&Y()(r).call(r,e=>{e.disabled&&!e.children||u(e,n)})};u(t,r),i&&a(),o&&l(t,r)},l=(e,t)=>{const{checkedNodes:n,checkedKeys:r}=m(),{halfCheckedNodes:a,halfCheckedKeys:i}=v();o(AS,e.data,{checkedKeys:r,checkedNodes:n,halfCheckedKeys:i,halfCheckedNodes:a}),o(NS,e.data,t)};function d(e=!1){return m(e).checkedKeys}function p(e=!1){return m(e).checkedNodes}function f(){return v().halfCheckedKeys}function h(){return v().halfCheckedNodes}function m(r=!1){const o=[],a=[];if(null!==t&&void 0!==t&&t.value&&e.showCheckbox){var i;const{treeNodeMap:e}=t.value;Y()(i=n.value).call(i,t=>{const n=e.get(t);n&&(!r||r&&n.isLeaf)&&(a.push(t),o.push(n.data))})}return{checkedKeys:a,checkedNodes:o}}function v(){const n=[],o=[];if(null!==t&&void 0!==t&&t.value&&e.showCheckbox){var a;const{treeNodeMap:e}=t.value;Y()(a=r.value).call(a,t=>{const r=e.get(t);r&&(o.push(t),n.push(r.data))})}return{halfCheckedNodes:n,halfCheckedKeys:o}}function g(e){n.value.clear(),r.value.clear(),Object(u["nextTick"])(()=>{b(e)})}function _(n,r){if(null!==t&&void 0!==t&&t.value&&e.showCheckbox){const e=t.value.treeNodeMap.get(n);e&&c(e,r,!1)}}function b(n){if(null!==t&&void 0!==t&&t.value){const{treeNodeMap:r}=t.value;if(e.showCheckbox&&r&&(null===n||void 0===n?void 0:n.length)>0){for(const e of n){const t=r.get(e);t&&!i(t)&&c(t,!0,!1,!1)}a()}}}return{updateCheckedKeys:a,toggleCheckbox:c,isChecked:i,isIndeterminate:s,getCheckedKeys:d,getCheckedNodes:p,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:_,setCheckedKeys:g}}function VS(e,t){const n=Object(u["ref"])(new q.a([])),r=Object(u["ref"])(new q.a([])),o=Object(u["computed"])(()=>Object(te["isFunction"])(e.filterMethod));function a(a){var i;if(!o.value)return;const s=new q.a,c=r.value,l=n.value,u=[],d=(null===(i=t.value)||void 0===i?void 0:i.treeNodes)||[],p=e.filterMethod;function f(e){Y()(e).call(e,e=>{u.push(e),null!==p&&void 0!==p&&p(a,e.data,e)?Y()(u).call(u,e=>{s.add(e.key),e.expanded=!0}):(e.expanded=!1,e.isLeaf&&l.add(e.key));const t=e.children;if(t&&f(t),!e.isLeaf)if(s.has(e.key)){if(t){let n=!0;for(const e of t)if(!l.has(e.key)){n=!1;break}n?c.add(e.key):c.delete(e.key)}}else l.add(e.key);u.pop()})}return l.clear(),f(d),s}function i(e){return r.value.has(e.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:a,isForceHiddenExpandIcon:i}}function BS(e,t){const n=Object(u["ref"])(new q.a),r=Object(u["ref"])(),o=Object(u["shallowRef"])(),a=Object(u["ref"])(),{isIndeterminate:i,isChecked:s,toggleCheckbox:c,getCheckedKeys:l,getCheckedNodes:d,getHalfCheckedKeys:p,getHalfCheckedNodes:f,setChecked:h,setCheckedKeys:m}=US(e,o),{doFilter:v,hiddenNodeKeySet:g,isForceHiddenExpandIcon:_}=VS(e,o),b=Object(u["computed"])(()=>{var t;return(null===(t=e.props)||void 0===t?void 0:t.value)||MS.KEY}),y=Object(u["computed"])(()=>{var t;return(null===(t=e.props)||void 0===t?void 0:t.children)||MS.CHILDREN}),O=Object(u["computed"])(()=>{var t;return(null===(t=e.props)||void 0===t?void 0:t.disabled)||MS.DISABLED}),M=Object(u["computed"])(()=>{var t;return(null===(t=e.props)||void 0===t?void 0:t.label)||MS.LABEL}),k=Object(u["computed"])(()=>{var e;const t=n.value,r=g.value,a=[],i=(null===(e=o.value)||void 0===e?void 0:e.treeNodes)||[],s=[];for(let n=i.length-1;n>=0;--n)s.push(i[n]);while(s.length){const e=s.pop();if(!r.has(e.key)&&(a.push(e),e.children&&t.has(e.key)))for(let t=e.children.length-1;t>=0;--t)s.push(e.children[t])}return a}),C=Object(u["computed"])(()=>k.value.length>0);function w(e){const t=new x.a,r=new x.a;let o=1;function a(e,i=1,s){const c=[];for(const o of e){var l;const e=I(o),u={level:i,key:e,data:o};u.label=j(o),u.parent=s;const d=T(o);u.disabled=E(o),u.isLeaf=!d||0===d.length,u.expanded=n.value.has(e),d&&d.length&&(u.children=a(d,i+1,u)),c.push(u),t.set(e,u),r.has(i)||r.set(i,[]),null===(l=r.get(i))||void 0===l||l.push(u)}return i>o&&(o=i),c}const i=a(e);return{treeNodeMap:t,levelTreeNodeMap:r,maxLevel:o,treeNodes:i}}function S(e){const t=v(e);t&&(n.value=t)}function T(e){return e[y.value]}function I(e){return e?e[b.value]:""}function E(e){return e[O.value]}function j(e){return e[M.value]}function D(e){n.value.has(e.key)?V(e):U(e)}function L(e){var t;const r=new q.a,a=o.value.treeNodeMap;Y()(t=n.value).call(t,e=>{const t=a.get(e);t&&(t.expanded=!1)}),Y()(e).call(e,e=>{let t=a.get(e);while(t&&!r.has(t.key))r.add(t.key),t.expanded=!0,t=t.parent}),n.value=r}function A(n,r){t(IS,n.data,n,r),R(n),e.expandOnClickNode&&D(n),e.showCheckbox&&(e.checkOnClickNode||n.isLeaf&&e.checkOnClickLeaf)&&!n.disabled&&c(n,!s(n),!0)}function N(e,n){t(ES,e.data,e,n)}function R(e){G(e)||(r.value=e.key,t(LS,e.data,e))}function P(e,t){c(e,t)}function U(r){const a=n.value;if(o.value&&e.accordion){const{treeNodeMap:e}=o.value;Y()(a).call(a,t=>{const n=e.get(t);r&&r.level===(null===n||void 0===n?void 0:n.level)&&(a.delete(t),n.expanded=!1)})}a.add(r.key);const i=$(r.key);i&&(i.expanded=!0,t(jS,i.data,i))}function V(e){n.value.delete(e.key);const r=$(e.key);r&&(r.expanded=!1,t(DS,r.data,r))}function F(e){return!!e.disabled}function G(e){const t=r.value;return void 0!==t&&t===e.key}function H(){var e;if(r.value)return null===(e=o.value)||void 0===e||null===(e=e.treeNodeMap.get(r.value))||void 0===e?void 0:e.data}function z(){return r.value}function W(e){r.value=e}function K(e){o.value=w(e)}function $(e){var t;const n=Object(te["isObject"])(e)?I(e):e;return null===(t=o.value)||void 0===t?void 0:t.treeNodeMap.get(n)}function J(e,t="auto"){var n;const r=$(e);r&&a.value&&a.value.scrollToItem(B()(n=k.value).call(n,r),t)}function X(e){var t;null===(t=a.value)||void 0===t||t.scrollTo(e)}return Object(u["watch"])(()=>e.currentNodeKey,e=>{r.value=e},{immediate:!0}),Object(u["watch"])(()=>e.defaultExpandedKeys,e=>{L(e||[])}),Object(u["watch"])(()=>e.data,t=>{K(t),L(e.defaultExpandedKeys||[])},{immediate:!0}),{tree:o,flattenTree:k,isNotEmpty:C,listRef:a,getKey:I,getChildren:T,toggleExpand:D,toggleCheckbox:c,isChecked:s,isIndeterminate:i,isDisabled:F,isCurrent:G,isForceHiddenExpandIcon:_,handleNodeClick:A,handleNodeDrop:N,handleNodeCheck:P,getCurrentNode:H,getCurrentKey:z,setCurrentKey:W,getCheckedKeys:l,getCheckedNodes:d,getHalfCheckedKeys:p,getHalfCheckedNodes:f,setChecked:h,setCheckedKeys:m,filter:S,setData:K,getNode:$,expandNode:U,collapseNode:V,setExpandedKeys:L,scrollToNode:J,scrollTo:X}}var FS=Object(u["defineComponent"])({name:"ElTreeNodeContent",props:TS,setup(e){const t=Object(u["inject"])(yS),n=Object(g["d"])("tree");return()=>{const r=e.node,{data:o}=r;return null!==t&&void 0!==t&&t.ctx.slots.default?t.ctx.slots.default({node:r,data:o}):Object(u["h"])(GC,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[null===r||void 0===r?void 0:r.label])}}});const GS=["aria-expanded","aria-disabled","aria-checked","data-key"];var HS=Object(u["defineComponent"])({name:"ElTreeNode",__name:"tree-node",props:SS,emits:PS,setup(e,{emit:t}){const n=e,r=t,o=Object(u["inject"])(yS),a=Object(g["d"])("tree"),i=Object(u["computed"])(()=>{var e;return null!==(e=null===o||void 0===o?void 0:o.props.indent)&&void 0!==e?e:16}),s=Object(u["computed"])(()=>{var e;return null!==(e=null===o||void 0===o?void 0:o.props.icon)&&void 0!==e?e:Fn["CaretRight"]}),c=e=>{var t;const n=null===o||void 0===o||null===(t=o.props.props)||void 0===t?void 0:t.class;if(!n)return{};let r;if(Object(te["isFunction"])(n)){const{data:t}=e;r=n(t,e)}else r=n;return Object(te["isString"])(r)?{[r]:!0}:r},l=e=>{r("click",n.node,e)},d=e=>{r("drop",n.node,e)},p=()=>{r("toggle",n.node)},f=e=>{r("check",n.node,e)},h=e=>{var t,r;null!==o&&void 0!==o&&null!==(t=o.instance)&&void 0!==t&&null!==(t=t.vnode)&&void 0!==t&&null!==(t=t.props)&&void 0!==t&&t["onNodeContextmenu"]&&(e.stopPropagation(),e.preventDefault()),null===o||void 0===o||o.ctx.emit(RS,e,null===(r=n.node)||void 0===r?void 0:r.data,n.node)};return(t,n)=>{var r,o,m;return Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref:"node$",class:Object(u["normalizeClass"])([Object(u["unref"])(a).b("node"),Object(u["unref"])(a).is("expanded",e.expanded),Object(u["unref"])(a).is("current",e.current),Object(u["unref"])(a).is("focusable",!e.disabled),Object(u["unref"])(a).is("checked",!e.disabled&&e.checked),c(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":null===(r=e.node)||void 0===r?void 0:r.key,onClick:Object(u["withModifiers"])(l,["stop"]),onContextmenu:h,onDragover:n[1]||(n[1]=Object(u["withModifiers"])(()=>{},["prevent"])),onDragenter:n[2]||(n[2]=Object(u["withModifiers"])(()=>{},["prevent"])),onDrop:Object(u["withModifiers"])(d,["stop"])},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(a).be("node","content")),style:Object(u["normalizeStyle"])({paddingLeft:(e.node.level-1)*i.value+"px",height:e.itemSize+"px"})},[s.value?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(a).is("leaf",!(null===(o=e.node)||void 0===o||!o.isLeaf)),Object(u["unref"])(a).is("hidden",e.hiddenExpandIcon),{expanded:!(null!==(m=e.node)&&void 0!==m&&m.isLeaf)&&e.expanded},Object(u["unref"])(a).be("node","expand-icon")]),onClick:Object(u["withModifiers"])(p,["stop"])},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(s.value)))]),_:1},8,["class"])):Object(u["createCommentVNode"])("v-if",!0),e.showCheckbox?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(ks),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:f,onClick:n[0]||(n[0]=Object(u["withModifiers"])(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):Object(u["createCommentVNode"])("v-if",!0),Object(u["createVNode"])(Object(u["unref"])(FS),{node:{...e.node,expanded:e.expanded}},null,8,["node"])],6)],42,GS)}}}),YS=HS,zS=Object(u["defineComponent"])({name:"ElTreeV2",__name:"tree",props:wS,emits:xS,setup(e,{expose:t,emit:n}){const r=e,o=n,a=Object(u["useSlots"])(),i=Object(u["computed"])(()=>r.itemSize);Object(u["provide"])(yS,{ctx:{emit:o,slots:a},props:r,instance:Object(u["getCurrentInstance"])()}),Object(u["provide"])(se["b"],void 0);const{t:s}=Object(fr["b"])(),c=Object(g["d"])("tree"),{flattenTree:l,isNotEmpty:d,listRef:p,toggleExpand:f,isIndeterminate:h,isChecked:m,isDisabled:v,isCurrent:_,isForceHiddenExpandIcon:b,handleNodeClick:y,handleNodeDrop:O,handleNodeCheck:M,toggleCheckbox:k,getCurrentNode:C,getCurrentKey:w,setCurrentKey:S,getCheckedKeys:T,getCheckedNodes:I,getHalfCheckedKeys:E,getHalfCheckedNodes:j,setChecked:D,setCheckedKeys:L,filter:A,setData:N,getNode:R,expandNode:x,collapseNode:P,setExpandedKeys:U,scrollToNode:V,scrollTo:B}=BS(r,o);return t({toggleCheckbox:k,getCurrentNode:C,getCurrentKey:w,setCurrentKey:S,getCheckedKeys:T,getCheckedNodes:I,getHalfCheckedKeys:E,getHalfCheckedNodes:j,setChecked:D,setCheckedKeys:L,filter:A,setData:N,getNode:R,expandNode:x,collapseNode:P,setExpandedKeys:U,scrollToNode:V,scrollTo:B}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(c).b(),{[Object(u["unref"])(c).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[Object(u["unref"])(d)?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(ub),{key:0,ref_key:"listRef",ref:p,"class-name":Object(u["unref"])(c).b("virtual-list"),data:Object(u["unref"])(l),total:Object(u["unref"])(l).length,height:e.height,"item-size":i.value,"perf-mode":e.perfMode,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:Object(u["withCtx"])(({data:t,index:n,style:r})=>[(Object(u["openBlock"])(),Object(u["createBlock"])(YS,{key:t[n].key,style:Object(u["normalizeStyle"])(r),node:t[n],expanded:t[n].expanded,"show-checkbox":e.showCheckbox,checked:Object(u["unref"])(m)(t[n]),indeterminate:Object(u["unref"])(h)(t[n]),"item-size":i.value,disabled:Object(u["unref"])(v)(t[n]),current:Object(u["unref"])(_)(t[n]),"hidden-expand-icon":Object(u["unref"])(b)(t[n]),onClick:Object(u["unref"])(y),onToggle:Object(u["unref"])(f),onCheck:Object(u["unref"])(M),onDrop:Object(u["unref"])(O)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(c).e("empty-block"))},[Object(u["renderSlot"])(t.$slots,"empty",{},()=>{var t;return[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(c).e("empty-text"))},Object(u["toDisplayString"])(null!==(t=e.emptyText)&&void 0!==t?t:Object(u["unref"])(s)("el.tree.emptyText")),3)]})],2))],2))}}),qS=zS;const WS=Object(r["a"])(qS);n("1236");const KS="ElUpload";var $S=class extends Error{constructor(e,t,n,r){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=r}};function JS(e,t,n){let r;return r=n.response?""+(n.response.error||n.response):n.responseText?""+n.responseText:`fail to ${t.method} ${e} ${n.status}`,new $S(r,n.status,t.method,e)}function XS(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const QS=e=>{"undefined"===typeof XMLHttpRequest&&Object(a["b"])(KS,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",t=>{const n=t;n.percent=t.total>0?t.loaded/t.total*100:0,e.onProgress(n)});const r=new FormData;if(e.data)for(const[a,i]of Vc()(e.data))Object(te["isArray"])(i)?2===i.length&&i[0]instanceof Blob&&Object(te["isString"])(i[1])?r.append(a,i[0],i[1]):Y()(i).call(i,e=>{r.append(a,e)}):r.append(a,i);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(JS(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(JS(n,e,t));e.onSuccess(XS(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)Y()(o).call(o,(e,n)=>t.setRequestHeader(n,e));else for(const[a,i]of Vc()(o))Object(ne["isNil"])(i)||t.setRequestHeader(a,String(i));return t.send(r),t},ZS=["text","picture","picture-card"];let eT=1;const tT=()=>Tu()()+eT++,nT=Object(c["b"])({action:{type:String,default:"#"},headers:{type:Object(c["c"])(Object)},method:{type:String,default:"post"},data:{type:Object(c["c"])([Object,Function,ee.a]),default:()=>Object(Bc["a"])({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:Object(c["c"])(Array),default:()=>Object(Bc["a"])([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:ZS,default:"text"},httpRequest:{type:Object(c["c"])(Function),default:QS},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),rT=Object(c["b"])({...nT,beforeUpload:{type:Object(c["c"])(Function),default:te["NOOP"]},beforeRemove:{type:Object(c["c"])(Function)},onRemove:{type:Object(c["c"])(Function),default:te["NOOP"]},onChange:{type:Object(c["c"])(Function),default:te["NOOP"]},onPreview:{type:Object(c["c"])(Function),default:te["NOOP"]},onSuccess:{type:Object(c["c"])(Function),default:te["NOOP"]},onProgress:{type:Object(c["c"])(Function),default:te["NOOP"]},onError:{type:Object(c["c"])(Function),default:te["NOOP"]},onExceed:{type:Object(c["c"])(Function),default:te["NOOP"]},crossorigin:{type:Object(c["c"])(String)}}),oT={action:"#",method:"post",data:()=>Object(Bc["a"])({}),name:"file",showFileList:!0,accept:"",fileList:()=>Object(Bc["a"])([]),autoUpload:!0,listType:"text",httpRequest:QS,disabled:void 0},aT=(te["NOOP"],te["NOOP"],te["NOOP"],te["NOOP"],te["NOOP"],te["NOOP"],te["NOOP"],te["NOOP"],xe()("uploadContextKey")),iT=Object(c["b"])({files:{type:Object(c["c"])(Array),default:()=>Object(Bc["a"])([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:Object(c["c"])(Function),default:te["NOOP"]},listType:{type:String,values:ZS,default:"text"},crossorigin:{type:Object(c["c"])(String)}}),sT={remove:e=>!!e},cT=["tabindex","aria-disabled","onKeydown"],lT=["src","crossorigin"],uT=["onClick"],dT=["title"],pT=["onClick"],fT=["onClick"];var hT=Object(u["defineComponent"])({name:"ElUploadList",__name:"upload-list",props:iT,emits:sT,setup(e,{emit:t}){const n=e,r=t,{t:o}=Object(fr["b"])(),a=Object(g["d"])("upload"),i=Object(g["d"])("icon"),s=Object(g["d"])("list"),c=Object(ce["a"])(),l=Object(u["ref"])(!1),d=Object(u["computed"])(()=>[a.b("list"),a.bm("list",n.listType),a.is("disabled",c.value)]),p=e=>{r("remove",e)};return(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(u["TransitionGroup"],{tag:"ul",class:Object(u["normalizeClass"])(d.value),name:Object(u["unref"])(s).b()},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.files,(r,s)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{key:r.uid||r.name,class:Object(u["normalizeClass"])([Object(u["unref"])(a).be("list","item"),Object(u["unref"])(a).is(r.status),{focusing:l.value}]),tabindex:Object(u["unref"])(c)?void 0:0,"aria-disabled":Object(u["unref"])(c),role:"button",onKeydown:Object(u["withKeys"])(e=>!Object(u["unref"])(c)&&p(r),["delete"]),onFocus:n[0]||(n[0]=e=>l.value=!0),onBlur:n[1]||(n[1]=e=>l.value=!1),onClick:n[2]||(n[2]=e=>l.value=!1)},[Object(u["renderSlot"])(t.$slots,"default",{file:r,index:s},()=>{var t;return["picture"===e.listType||"uploading"!==r.status&&"picture-card"===e.listType?(Object(u["openBlock"])(),Object(u["createElementBlock"])("img",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(a).be("list","item-thumbnail")),src:r.url,crossorigin:e.crossorigin,alt:""},null,10,lT)):Object(u["createCommentVNode"])("v-if",!0),"uploading"===r.status||"picture-card"!==e.listType?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(a).be("list","item-info"))},[Object(u["createElementVNode"])("a",{class:Object(u["normalizeClass"])(Object(u["unref"])(a).be("list","item-name")),onClick:Object(u["withModifiers"])(t=>e.handlePreview(r),["prevent"])},[Object(u["createVNode"])(Object(u["unref"])(k["a"]),{class:Object(u["normalizeClass"])(Object(u["unref"])(i).m("document"))},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Document"]))]),_:1},8,["class"]),Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(a).be("list","item-file-name")),title:r.name},Object(u["toDisplayString"])(r.name),11,dT)],10,uT),"uploading"===r.status?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(e_),{key:0,type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:Number(r.percentage),style:Object(u["normalizeStyle"])("picture-card"===e.listType?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):Object(u["createCommentVNode"])("v-if",!0)],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("label",{class:Object(u["normalizeClass"])(Object(u["unref"])(a).be("list","item-status-label"))},["text"===e.listType?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(i).m("upload-success"),Object(u["unref"])(i).m("circle-check")])},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["CircleCheck"]))]),_:1},8,["class"])):ue()(t=["picture-card","picture"]).call(t,e.listType)?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:1,class:Object(u["normalizeClass"])([Object(u["unref"])(i).m("upload-success"),Object(u["unref"])(i).m("check")])},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Check"]))]),_:1},8,["class"])):Object(u["createCommentVNode"])("v-if",!0)],2),Object(u["unref"])(c)?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:2,class:Object(u["normalizeClass"])(Object(u["unref"])(i).m("close")),"aria-label":Object(u["unref"])(o)("el.upload.delete"),role:"button",tabindex:"0",onClick:e=>p(r),onKeydown:Object(u["withKeys"])(Object(u["withModifiers"])(e=>p(r),["prevent"]),["enter","space"])},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Close"]))]),_:1},8,["class","aria-label","onClick","onKeydown"])),Object(u["unref"])(c)?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createElementBlock"])("i",{key:3,class:Object(u["normalizeClass"])(Object(u["unref"])(i).m("close-tip"))},Object(u["toDisplayString"])(Object(u["unref"])(o)("el.upload.deleteTip")),3)),"picture-card"===e.listType?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:4,class:Object(u["normalizeClass"])(Object(u["unref"])(a).be("list","item-actions"))},[Object(u["createElementVNode"])("span",{class:Object(u["normalizeClass"])(Object(u["unref"])(a).be("list","item-preview")),onClick:t=>e.handlePreview(r)},[Object(u["createVNode"])(Object(u["unref"])(k["a"]),{class:Object(u["normalizeClass"])(Object(u["unref"])(i).m("zoom-in"))},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["ZoomIn"]))]),_:1},8,["class"])],10,pT),Object(u["unref"])(c)?Object(u["createCommentVNode"])("v-if",!0):(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(a).be("list","item-delete")),onClick:e=>p(r)},[Object(u["createVNode"])(Object(u["unref"])(k["a"]),{class:Object(u["normalizeClass"])(Object(u["unref"])(i).m("delete"))},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(Fn["Delete"]))]),_:1},8,["class"])],10,fT))],2)):Object(u["createCommentVNode"])("v-if",!0)]})],42,cT))),128)),Object(u["renderSlot"])(t.$slots,"append")]),_:3},8,["class","name"]))}}),mT=hT;const vT=Object(c["b"])({...nT,beforeUpload:{type:Object(c["c"])(Function),default:te["NOOP"]},onRemove:{type:Object(c["c"])(Function),default:te["NOOP"]},onStart:{type:Object(c["c"])(Function),default:te["NOOP"]},onSuccess:{type:Object(c["c"])(Function),default:te["NOOP"]},onProgress:{type:Object(c["c"])(Function),default:te["NOOP"]},onError:{type:Object(c["c"])(Function),default:te["NOOP"]},onExceed:{type:Object(c["c"])(Function),default:te["NOOP"]}}),gT=(te["NOOP"],te["NOOP"],te["NOOP"],te["NOOP"],te["NOOP"],te["NOOP"],te["NOOP"],Object(c["b"])({disabled:{type:Boolean,default:void 0},directory:Boolean})),_T={file:e=>Object(te["isArray"])(e)},bT="ElUploadDrag";var yT=Object(u["defineComponent"])({name:bT,__name:"upload-dragger",props:gT,emits:_T,setup(e,{emit:t}){const n=e,r=t;Object(u["inject"])(aT)||Object(a["b"])(bT,"usage: <el-upload><el-upload-dragger /></el-upload>");const o=Object(g["d"])("upload"),i=Object(u["ref"])(!1),s=Object(ce["a"])(),c=e=>new ee.a((t,n)=>e.file(t,n)),l=async e=>{try{if(e.isFile){const t=await c(e);return t.isDirectory=!1,[t]}if(e.isDirectory){const t=e.createReader(),n=()=>new ee.a((e,n)=>t.readEntries(e,n)),r=[];let o=await n();while(o.length>0)r.push(...o),o=await n();const a=J()(r).call(r,e=>l(e).catch(()=>[]));return Object(ne["flatten"])(await ee.a.all(a))}}catch{return[]}return[]},d=async e=>{if(s.value)return;i.value=!1,e.stopPropagation();const t=Pn()(e.dataTransfer.files),o=e.dataTransfer.items||[];if(n.directory){var a,c;const e=K()(a=J()(c=Pn()(o)).call(c,e=>{var t;return null===e||void 0===e||null===(t=e.webkitGetAsEntry)||void 0===t?void 0:t.call(e)})).call(a,e=>e);r("file",Object(ne["flatten"])(await ee.a.all(J()(e).call(e,l))))}else Y()(t).call(t,(e,t)=>{var n,r;const a=null===(n=o[t])||void 0===n||null===(r=n.webkitGetAsEntry)||void 0===r?void 0:r.call(n);a&&(e.isDirectory=a.isDirectory)}),r("file",t)},p=()=>{s.value||(i.value=!0)},f=e=>{e.currentTarget.contains(e.relatedTarget)||(i.value=!1)};return(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(o).b("dragger"),Object(u["unref"])(o).is("dragover",i.value)]),onDrop:Object(u["withModifiers"])(d,["prevent"]),onDragover:Object(u["withModifiers"])(p,["prevent"]),onDragleave:Object(u["withModifiers"])(f,["prevent"])},[Object(u["renderSlot"])(e.$slots,"default")],34))}}),OT=yT;const MT=["tabindex","aria-disabled","onKeydown"],kT=["name","disabled","multiple","accept","webkitdirectory"];var CT=Object(u["defineComponent"])({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:vT,setup(e,{expose:t}){const n=e,r=Object(g["d"])("upload"),o=Object(ce["a"])(),a=Object(u["shallowRef"])({}),i=Object(u["shallowRef"])(),s=e=>{if(0===e.length)return;const{autoUpload:t,limit:r,fileList:o,multiple:a,onStart:i,onExceed:s}=n;if(r&&o.length+e.length>r)s(e,o);else{a||(e=It()(e).call(e,0,1));for(const n of e){const e=n;e.uid=tT(),i(e),t&&c(e)}}},c=async e=>{if(i.value.value="",!n.beforeUpload)return d(e);let t,r={};try{const o=n.data,a=n.beforeUpload(e);r=Object(te["isPlainObject"])(n.data)?Object(ne["cloneDeep"])(n.data):n.data,t=await a,Object(te["isPlainObject"])(n.data)&&Object(ne["isEqual"])(o,r)&&(r=Object(ne["cloneDeep"])(n.data))}catch{t=!1}if(!1===t)return void n.onRemove(e);let o=e;t instanceof Blob&&(o=t instanceof File?t:new File([t],e.name,{type:e.type})),d($t()(o,{uid:e.uid}),r)},l=async(e,t)=>Object(te["isFunction"])(e)?e(t):e,d=async(e,t)=>{const{headers:r,data:o,method:i,withCredentials:s,name:c,action:u,onProgress:d,onSuccess:p,onError:f,httpRequest:h}=n;try{t=await l(null!==t&&void 0!==t?t:o,e)}catch{return void n.onRemove(e)}const{uid:m}=e,v={headers:r||{},withCredentials:s,file:e,data:t,method:i,filename:c,action:u,onProgress:t=>{d(t,e)},onSuccess:t=>{p(t,e),delete a.value[m]},onError:t=>{f(t,e),delete a.value[m]}},g=h(v);a.value[m]=g,g instanceof ee.a&&g.then(v.onSuccess,v.onError)},p=e=>{const t=e.target.files;t&&s(Pn()(t))},f=()=>{o.value||(i.value.value="",i.value.click())},h=()=>{f()},m=e=>{var t,n;Y()(t=K()(n=Object(I["a"])(a.value)).call(n,e?([t])=>String(e.uid)===t:()=>!0)).call(t,([e,t])=>{t instanceof XMLHttpRequest&&t.abort(),delete a.value[e]})};return t({abort:m,upload:c}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(r).b(),Object(u["unref"])(r).m(e.listType),Object(u["unref"])(r).is("drag",e.drag),Object(u["unref"])(r).is("disabled",Object(u["unref"])(o))]),tabindex:Object(u["unref"])(o)?void 0:0,"aria-disabled":Object(u["unref"])(o),role:"button",onClick:f,onKeydown:Object(u["withKeys"])(Object(u["withModifiers"])(h,["self"]),["enter","space"])},[e.drag?(Object(u["openBlock"])(),Object(u["createBlock"])(OT,{key:0,disabled:Object(u["unref"])(o),directory:e.directory,onFile:s},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"default")]),_:3},8,["disabled","directory"])):Object(u["renderSlot"])(t.$slots,"default",{key:1}),Object(u["createElementVNode"])("input",{ref_key:"inputRef",ref:i,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("input")),name:e.name,disabled:Object(u["unref"])(o),multiple:e.multiple,accept:e.accept,webkitdirectory:e.directory||void 0,type:"file",onChange:p,onClick:n[0]||(n[0]=Object(u["withModifiers"])(()=>{},["stop"]))},null,42,kT)],42,MT))}}),wT=CT,ST=n("47c7"),TT=n.n(ST);const IT="ElUpload",ET=e=>{var t;null!==(t=e.url)&&void 0!==t&&Fr()(t).call(t,"blob:")&&TT.a.revokeObjectURL(e.url)},jT=(e,t)=>{const n=Object(_["useVModel"])(e,"fileList",void 0,{passive:!0}),r=e=>{var t;return La()(t=n.value).call(t,t=>t.uid===e.uid)};function o(e){var n;null===(n=t.value)||void 0===n||n.abort(e)}function i(e=["ready","uploading","success","fail"]){var t;n.value=K()(t=n.value).call(t,t=>!ue()(e).call(e,t.status))}function s(e){var t;n.value=K()(t=n.value).call(t,t=>t.uid!==e.uid)}const c=t=>{Object(u["nextTick"])(()=>e.onChange(t,n.value))},l=(t,o)=>{const a=r(o);a&&(console.error(t),a.status="fail",s(a),e.onError(t,a,n.value),c(a))},d=(t,o)=>{const a=r(o);a&&(e.onProgress(t,a,n.value),a.status="uploading",a.percentage=Math.round(t.percent))},p=(t,o)=>{const a=r(o);a&&(a.status="success",a.response=t,e.onSuccess(t,a,n.value),c(a))},f=t=>{Object(ne["isNil"])(t.uid)&&(t.uid=tT());const r={name:t.name,percentage:0,status:"ready",size:t.size,raw:t,uid:t.uid};if("picture-card"===e.listType||"picture"===e.listType)try{r.url=TT.a.createObjectURL(t)}catch(o){Object(a["a"])(IT,o.message),e.onError(o,r,n.value)}n.value=[...n.value,r],c(r)},h=async t=>{const i=t instanceof File?r(t):t;i||Object(a["b"])(IT,"file to be removed not found");const c=t=>{o(t),s(t),e.onRemove(t,n.value),ET(t)};e.beforeRemove?!1!==await e.beforeRemove(i,n.value)&&c(i):c(i)};function m(){var e,r;Y()(e=K()(r=n.value).call(r,({status:e})=>"ready"===e)).call(e,({raw:e})=>{var n;return e&&(null===(n=t.value)||void 0===n?void 0:n.upload(e))})}return Object(u["watch"])(()=>e.listType,t=>{var r;"picture-card"!==t&&"picture"!==t||(n.value=J()(r=n.value).call(r,t=>{const{raw:r,url:o}=t;if(!o&&r)try{t.url=TT.a.createObjectURL(r)}catch(a){e.onError(a,t,n.value)}return t}))}),Object(u["watch"])(n,e=>{for(const t of e)t.uid||(t.uid=tT()),t.status||(t.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:i,handleError:l,handleProgress:d,handleStart:f,handleSuccess:p,handleRemove:h,submit:m,revokeFileObjectURL:ET}};var DT=Object(u["defineComponent"])({name:"ElUpload",__name:"upload",props:rT,setup(e,{expose:t}){const n=e,r=Object(ce["a"])(),o=Object(u["shallowRef"])(),{abort:a,submit:i,clearFiles:s,uploadFiles:c,handleStart:l,handleError:d,handleRemove:p,handleSuccess:f,handleProgress:h,revokeFileObjectURL:m}=jT(n,o),v=Object(u["computed"])(()=>"picture-card"===n.listType),g=Object(u["computed"])(()=>({...n,fileList:c.value,onStart:l,onProgress:h,onSuccess:f,onError:d,onRemove:p}));return Object(u["onBeforeUnmount"])(()=>{var e;Y()(e=c.value).call(e,m)}),Object(u["provide"])(aT,{accept:Object(u["toRef"])(n,"accept")}),t({abort:a,submit:i,clearFiles:s,handleStart:l,handleRemove:p}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",null,[v.value&&e.showFileList?(Object(u["openBlock"])(),Object(u["createBlock"])(mT,{key:0,disabled:Object(u["unref"])(r),"list-type":e.listType,files:Object(u["unref"])(c),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:Object(u["unref"])(p)},Object(u["createSlots"])({append:Object(u["withCtx"])(()=>[Object(u["createVNode"])(wT,Object(u["mergeProps"])({ref_key:"uploadRef",ref:o},g.value),{default:Object(u["withCtx"])(()=>[t.$slots.trigger?Object(u["renderSlot"])(t.$slots,"trigger",{key:0}):Object(u["createCommentVNode"])("v-if",!0),!t.$slots.trigger&&t.$slots.default?Object(u["renderSlot"])(t.$slots,"default",{key:1}):Object(u["createCommentVNode"])("v-if",!0)]),_:3},16)]),_:2},[t.$slots.file?{name:"default",fn:Object(u["withCtx"])(({file:e,index:n})=>[Object(u["renderSlot"])(t.$slots,"file",{file:e,index:n})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):Object(u["createCommentVNode"])("v-if",!0),!v.value||v.value&&!e.showFileList?(Object(u["openBlock"])(),Object(u["createBlock"])(wT,Object(u["mergeProps"])({key:1,ref_key:"uploadRef",ref:o},g.value),{default:Object(u["withCtx"])(()=>[t.$slots.trigger?Object(u["renderSlot"])(t.$slots,"trigger",{key:0}):Object(u["createCommentVNode"])("v-if",!0),!t.$slots.trigger&&t.$slots.default?Object(u["renderSlot"])(t.$slots,"default",{key:1}):Object(u["createCommentVNode"])("v-if",!0)]),_:3},16)):Object(u["createCommentVNode"])("v-if",!0),t.$slots.trigger?Object(u["renderSlot"])(t.$slots,"default",{key:2}):Object(u["createCommentVNode"])("v-if",!0),Object(u["renderSlot"])(t.$slots,"tip"),!v.value&&e.showFileList?(Object(u["openBlock"])(),Object(u["createBlock"])(mT,{key:3,disabled:Object(u["unref"])(r),"list-type":e.listType,files:Object(u["unref"])(c),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:Object(u["unref"])(p)},Object(u["createSlots"])({_:2},[t.$slots.file?{name:"default",fn:Object(u["withCtx"])(({file:e,index:n})=>[Object(u["renderSlot"])(t.$slots,"file",{file:e,index:n})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):Object(u["createCommentVNode"])("v-if",!0)]))}}),LT=DT;const AT=Object(r["a"])(LT),NT=Object(c["b"])({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:Object(c["c"])([String,Array]),default:"Element Plus"},font:{type:Object(c["c"])(Object)},gap:{type:Object(c["c"])(Array),default:()=>[100,100]},offset:{type:Object(c["c"])(Array)}});function RT(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function xT(e){var t;return J()(t=Q()(e)).call(t,t=>`${RT(t)}: ${e[t]};`).join(" ")}function PT(){return window.devicePixelRatio||1}const UT=(e,t)=>{var n;let r=!1;return e.removedNodes.length&&t&&(r=ue()(n=Pn()(e.removedNodes)).call(n,t)),"attributes"===e.type&&e.target===t&&(r=!0),r},VT={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function BT(e,t,n=1){const r=document.createElement("canvas"),o=r.getContext("2d"),a=e*n,i=t*n;return r.setAttribute("width",a+"px"),r.setAttribute("height",i+"px"),o.save(),[o,r,a,i]}function FT(){function e(e,t,n,r,o,a,i,s,c){var l;const[u,d,p,f]=BT(r,o,n);let h=0;if(e instanceof HTMLImageElement)u.drawImage(e,0,0,p,f);else{const{color:t,fontSize:r,fontStyle:i,fontWeight:s,fontFamily:l,textAlign:d,textBaseline:f}=a,m=Number(r)*n;u.font=`${i} normal ${s} ${m}px/${o}px ${l}`,u.fillStyle=t,u.textAlign=d,u.textBaseline=f;const v=Object(te["isArray"])(e)?e:[e];if("top"!==f&&v[0]){const e=u.measureText(v[0]);u.textBaseline="top";const t=u.measureText(v[0]);h=e.actualBoundingBoxAscent-t.actualBoundingBoxAscent}null===v||void 0===v||Y()(v).call(v,(e,t)=>{const[r,o]=VT[d];u.fillText(null!==e&&void 0!==e?e:"",p*r+c*o,t*(m+a.fontGap*n))})}const m=Math.PI/180*Number(t),v=Math.max(r,o),[g,_,b]=BT(v,v,n);function y(e,t){return[e*Math.cos(m)-t*Math.sin(m),e*Math.sin(m)+t*Math.cos(m)]}g.translate(b/2,b/2),g.rotate(m),p>0&&f>0&&g.drawImage(d,-p/2,-f/2);let O=0,M=0,k=0,C=0;const w=p/2,S=f/2;Y()(l=[[0-w,0-S],[0+w,0-S],[0+w,0+S],[0-w,0+S]]).call(l,([e,t])=>{const[n,r]=y(e,t);O=Math.min(O,n),M=Math.max(M,n),k=Math.min(k,r),C=Math.max(C,r)});const T=O+b/2,I=k+b/2,E=M-O,j=C-k,D=i*n,L=s*n,A=2*(E+D),N=j+L,[R,x]=BT(A,N);function P(e=0,t=0){R.drawImage(_,T,I,E,j,e,t+h,E,j)}return P(),P(E+D,-j/2-L/2),P(E+D,+j/2+L/2),[x.toDataURL(),A/n,N/n]}return e}var GT=Object(u["defineComponent"])({name:"ElWatermark",__name:"watermark",props:NT,setup(e){const t={position:"relative"},n=e,r=Object(u["computed"])(()=>{var e,t;return null!==(e=null===(t=n.font)||void 0===t?void 0:t.fontGap)&&void 0!==e?e:3}),o=Object(u["computed"])(()=>{var e,t;return null!==(e=null===(t=n.font)||void 0===t?void 0:t.color)&&void 0!==e?e:"rgba(0,0,0,.15)"}),a=Object(u["computed"])(()=>{var e,t;return null!==(e=null===(t=n.font)||void 0===t?void 0:t.fontSize)&&void 0!==e?e:16}),i=Object(u["computed"])(()=>{var e,t;return null!==(e=null===(t=n.font)||void 0===t?void 0:t.fontWeight)&&void 0!==e?e:"normal"}),s=Object(u["computed"])(()=>{var e,t;return null!==(e=null===(t=n.font)||void 0===t?void 0:t.fontStyle)&&void 0!==e?e:"normal"}),c=Object(u["computed"])(()=>{var e,t;return null!==(e=null===(t=n.font)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:"sans-serif"}),l=Object(u["computed"])(()=>{var e,t;return null!==(e=null===(t=n.font)||void 0===t?void 0:t.textAlign)&&void 0!==e?e:"center"}),d=Object(u["computed"])(()=>{var e,t;return null!==(e=null===(t=n.font)||void 0===t?void 0:t.textBaseline)&&void 0!==e?e:"hanging"}),p=Object(u["computed"])(()=>n.gap[0]),f=Object(u["computed"])(()=>n.gap[1]),m=Object(u["computed"])(()=>p.value/2),v=Object(u["computed"])(()=>f.value/2),g=Object(u["computed"])(()=>{var e,t;return null!==(e=null===(t=n.offset)||void 0===t?void 0:t[0])&&void 0!==e?e:m.value}),b=Object(u["computed"])(()=>{var e,t;return null!==(e=null===(t=n.offset)||void 0===t?void 0:t[1])&&void 0!==e?e:v.value}),y=()=>{const e={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let t=g.value-m.value,r=b.value-v.value;return t>0&&(e.left=t+"px",e.width=`calc(100% - ${t}px)`,t=0),r>0&&(e.top=r+"px",e.height=`calc(100% - ${r}px)`,r=0),e.backgroundPosition=`${t}px ${r}px`,e},O=Object(u["shallowRef"])(null),M=Object(u["shallowRef"])(),k=Object(u["ref"])(!1),C=()=>{M.value&&(M.value.remove(),M.value=void 0)},w=(e,t)=>{var n;O.value&&M.value&&(k.value=!0,M.value.setAttribute("style",xT({...y(),backgroundImage:`url('${e}')`,backgroundSize:Math.floor(t)+"px"})),null===(n=O.value)||void 0===n||n.append(M.value),qe()(()=>{k.value=!1}))},S=e=>{let t=120,o=64,i=0;const{image:s,content:l,width:u,height:d,rotate:p}=n;if(!s&&e.measureText){e.font=`${Number(a.value)}px ${c.value}`;const n=Object(te["isArray"])(l)?l:[l];let s=0,u=0;Y()(n).call(n,t=>{const{width:n,fontBoundingBoxAscent:r,fontBoundingBoxDescent:o,actualBoundingBoxAscent:a,actualBoundingBoxDescent:i}=e.measureText(t),c=Object(h["g"])(r)?a+i:r+o;n>s&&(s=Math.ceil(n)),c>u&&(u=Math.ceil(c))}),t=s,o=u*n.length+(n.length-1)*r.value;const d=Math.PI/180*Number(p);i=Math.ceil(Math.abs(Math.sin(d)*o)/2),t+=i}return[null!==u&&void 0!==u?u:t,null!==d&&void 0!==d?d:o,i]},T=FT(),I=()=>{const e=document.createElement("canvas").getContext("2d"),t=n.image,u=n.content,h=n.rotate;if(e){M.value||(M.value=document.createElement("div"));const n=PT(),[m,v,g]=S(e),_=e=>{const[t,u]=T(e||"",h,n,m,v,{color:o.value,fontSize:a.value,fontStyle:s.value,fontWeight:i.value,fontFamily:c.value,fontGap:r.value,textAlign:l.value,textBaseline:d.value},p.value,f.value,g);w(t,u)};if(t){const e=new Image;e.onload=()=>{_(e)},e.onerror=()=>{_(u)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=t}else _(u)}};Object(u["onMounted"])(()=>{I()}),Object(u["watch"])(()=>n,()=>{I()},{deep:!0,flush:"post"}),Object(u["onBeforeUnmount"])(()=>{C()});const E=e=>{k.value||Y()(e).call(e,e=>{UT(e,M.value)&&(C(),I())})};return Object(_["useMutationObserver"])(O,E,{attributes:!0,subtree:!0,childList:!0}),(e,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref_key:"containerRef",ref:O,style:Object(u["normalizeStyle"])([t])},[Object(u["renderSlot"])(e.$slots,"default")],4))}}),HT=GT;const YT=Object(r["a"])(HT),zT=["absolute","fixed"],qT=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],WT=Object(c["b"])({placement:{type:Object(c["c"])(String),values:qT,default:"bottom"},reference:{type:Object(c["c"])(Object),default:null},strategy:{type:Object(c["c"])(String),values:zT,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),KT={close:()=>!0},$T=Object(c["b"])({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:S["e"]},placement:WT.placement,contentStyle:{type:Object(c["c"])([Object])},mask:{type:Object(c["c"])([Boolean,Object]),default:!0},gap:{type:Object(c["c"])(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:Object(c["c"])([Boolean,Object]),default:()=>({block:"center"})},type:{type:Object(c["c"])(String)},appendTo:{type:l.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),JT={[o["c"]]:e=>Object(h["a"])(e),["update:current"]:e=>Object(h["d"])(e),close:e=>Object(h["d"])(e),finish:()=>!0,change:e=>Object(h["d"])(e)};var XT=n("712a");const QT=(e,t,n,r,o)=>{const a=Object(u["ref"])(null),i=()=>{let t;return t=Object(te["isString"])(e.value)?document.querySelector(e.value):Object(te["isFunction"])(e.value)?e.value():e.value,t},s=()=>{const e=i();if(!e||!t.value)return void(a.value=null);eI(e)||e.scrollIntoView(o.value);const{left:n,top:r,width:s,height:c}=e.getBoundingClientRect();a.value={left:n,top:r,width:s,height:c,radius:0}};Object(u["onMounted"])(()=>{Object(u["watch"])([t,e],()=>{s()},{immediate:!0}),window.addEventListener("resize",s)}),Object(u["onBeforeUnmount"])(()=>{window.removeEventListener("resize",s)});const c=e=>{var t;return null!==(t=Object(te["isArray"])(n.value.offset)?n.value.offset[e]:n.value.offset)&&void 0!==t?t:6},l=Object(u["computed"])(()=>{var e;if(!a.value)return a.value;const t=c(0),r=c(1),o=(null===(e=n.value)||void 0===e?void 0:e.radius)||2;return{left:a.value.left-t,top:a.value.top-r,width:a.value.width+2*t,height:a.value.height+2*r,radius:o}});return{mergedPosInfo:l,triggerTarget:Object(u["computed"])(()=>{const e=i();return r.value&&e&&window.DOMRect?{getBoundingClientRect(){var e,t,n,r;return window.DOMRect.fromRect({width:(null===(e=l.value)||void 0===e?void 0:e.width)||0,height:(null===(t=l.value)||void 0===t?void 0:t.height)||0,x:(null===(n=l.value)||void 0===n?void 0:n.left)||0,y:(null===(r=l.value)||void 0===r?void 0:r.top)||0})}}:e||void 0})}},ZT=xe()("ElTour");function eI(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:r,right:o,bottom:a,left:i}=e.getBoundingClientRect();return r>=0&&i>=0&&o<=t&&a<=n}const tI=(e,t,n,r,o,a,i,s)=>{const c=Object(u["ref"])(),l=Object(u["ref"])(),d=Object(u["ref"])({}),p={x:c,y:l,placement:r,strategy:o,middlewareData:d},f=Object(u["computed"])(()=>{const e=[Object(XT["offset"])(Object(u["unref"])(a)),Object(XT["flip"])(),Object(XT["shift"])(),nI()];return Object(u["unref"])(s)&&Object(u["unref"])(n)&&e.push(Object(XT["arrow"])({element:Object(u["unref"])(n)})),e}),h=async()=>{var n;if(!_["isClient"])return;const a=Object(u["unref"])(e),i=Object(u["unref"])(t);if(!a||!i)return;const s=await Object(XT["computePosition"])(a,i,{placement:Object(u["unref"])(r),strategy:Object(u["unref"])(o),middleware:Object(u["unref"])(f)});Y()(n=Object(I["c"])(p)).call(n,e=>{p[e].value=s[e]})},m=Object(u["computed"])(()=>{if(!Object(u["unref"])(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:Object(u["unref"])(i)};const{overflow:t}=Object(u["unref"])(d);return{position:Object(u["unref"])(o),zIndex:Object(u["unref"])(i),top:null!=Object(u["unref"])(l)?Object(u["unref"])(l)+"px":"",left:null!=Object(u["unref"])(c)?Object(u["unref"])(c)+"px":"",maxWidth:null!==t&&void 0!==t&&t.maxWidth?(null===t||void 0===t?void 0:t.maxWidth)+"px":""}}),v=Object(u["computed"])(()=>{if(!Object(u["unref"])(s))return{};const{arrow:e}=Object(u["unref"])(d);return{left:null!=(null===e||void 0===e?void 0:e.x)?(null===e||void 0===e?void 0:e.x)+"px":"",top:null!=(null===e||void 0===e?void 0:e.y)?(null===e||void 0===e?void 0:e.y)+"px":""}});let g;return Object(u["onMounted"])(()=>{const n=Object(u["unref"])(e),r=Object(u["unref"])(t);n&&r&&(g=Object(XT["autoUpdate"])(n,r,h)),Object(u["watchEffect"])(()=>{h()})}),Object(u["onBeforeUnmount"])(()=>{g&&g()}),{update:h,contentStyle:m,arrowStyle:v}},nI=()=>({name:"overflow",async fn(e){const t=await Object(XT["detectOverflow"])(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),rI=Object(c["b"])({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:Object(c["c"])(Object)},targetAreaClickable:{type:Boolean,default:!0}}),oI={style:{width:"100%",height:"100%"}},aI=["d"];var iI=Object(u["defineComponent"])({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:rI,setup(e){const t=e,{ns:n}=Object(u["inject"])(ZT),r=Object(u["computed"])(()=>{var e,n;return null!==(e=null===(n=t.pos)||void 0===n?void 0:n.radius)&&void 0!==e?e:2}),o=Object(u["computed"])(()=>{const e=r.value,t=`a${e},${e} 0 0 1`;return{topRight:`${t} ${e},${e}`,bottomRight:`${t} ${-e},${e}`,bottomLeft:`${t} ${-e},${-e}`,topLeft:`${t} ${e},${-e}`}}),{width:a,height:i}=Object(_["useWindowSize"])(),s=Object(u["computed"])(()=>{const e=a.value,n=i.value,s=o.value,c=`M${e},0 L0,0 L0,${n} L${e},${n} L${e},0 Z`,l=r.value;return t.pos?`${c} M${t.pos.left+l},${t.pos.top} h${t.pos.width-2*l} ${s.topRight} v${t.pos.height-2*l} ${s.bottomRight} h${-t.pos.width+2*l} ${s.bottomLeft} v${-t.pos.height+2*l} ${s.topLeft} z`:c}),c=Object(u["computed"])(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),l=Object(u["computed"])(()=>({fill:hs()(t),pointerEvents:"auto",cursor:"auto"}));return Object(bf["a"])(Object(u["toRef"])(t,"visible"),{ns:n}),(t,r)=>e.visible?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",Object(u["mergeProps"])({key:0,class:Object(u["unref"])(n).e("mask"),style:c.value},t.$attrs),[(Object(u["openBlock"])(),Object(u["createElementBlock"])("svg",oI,[Object(u["createElementVNode"])("path",{class:Object(u["normalizeClass"])(Object(u["unref"])(n).e("hollow")),style:Object(u["normalizeStyle"])(l.value),d:s.value},null,14,aI)]))],16)):Object(u["createCommentVNode"])("v-if",!0)}}),sI=iI;const cI=["data-side"];var lI=Object(u["defineComponent"])({name:"ElTourContent",__name:"content",props:WT,emits:KT,setup(e,{emit:t}){const n=e,r=t,o=Object(u["ref"])(n.placement),a=Object(u["ref"])(n.strategy),i=Object(u["ref"])(null),s=Object(u["ref"])(null);Object(u["watch"])(()=>n.placement,()=>{o.value=n.placement});const{contentStyle:c,arrowStyle:l}=tI(Object(u["toRef"])(n,"reference"),i,s,o,a,Object(u["toRef"])(n,"offset"),Object(u["toRef"])(n,"zIndex"),Object(u["toRef"])(n,"showArrow")),d=Object(u["computed"])(()=>o.value.split("-")[0]),{ns:p}=Object(u["inject"])(ZT),f=()=>{r("close")},h=e=>{"pointer"===e.detail.focusReason&&e.preventDefault()};return(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref_key:"contentRef",ref:i,style:Object(u["normalizeStyle"])(Object(u["unref"])(c)),class:Object(u["normalizeClass"])(Object(u["unref"])(p).e("content")),"data-side":d.value,tabindex:"-1"},[Object(u["createVNode"])(Object(u["unref"])(Wt["a"]),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":i.value||void 0,onReleaseRequested:f,onFocusoutPrevented:h},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"default")]),_:3},8,["focus-trap-el"]),e.showArrow?(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:0,ref_key:"arrowRef",ref:s,style:Object(u["normalizeStyle"])(Object(u["unref"])(l)),class:Object(u["normalizeClass"])(Object(u["unref"])(p).e("arrow"))},null,6)):Object(u["createCommentVNode"])("v-if",!0)],14,cI))}}),uI=lI,dI=Object(u["defineComponent"])({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let r=0;return()=>{var o,a;const i=null===(o=t.default)||void 0===o?void 0:o.call(t),s=[];let c=0;function l(e){Object(te["isArray"])(e)&&Y()(e).call(e,e=>{var t;"ElTourStep"===(null===(t=(null===e||void 0===e?void 0:e.type)||{})||void 0===t?void 0:t.name)&&(s.push(e),c+=1)})}return i.length&&l(Object(T["b"])(null===(a=i[0])||void 0===a?void 0:a.children)),r!==c&&(r=c,n("update-total",c)),s.length?s[e.current]:null}}}),pI=Object(u["defineComponent"])({name:"ElTour",inheritAttrs:!1,__name:"tour",props:$T,emits:JT,setup(e,{emit:t}){const n=e,r=t,a=Object(g["d"])("tour"),i=Object(u["ref"])(0),s=Object(u["ref"])(),c=Object(_["useVModel"])(n,"current",r,{passive:!0}),l=Object(u["computed"])(()=>{var e;return null===(e=s.value)||void 0===e?void 0:e.target}),d=Object(u["computed"])(()=>[a.b(),"primary"===k.value?a.m("primary"):""]),p=Object(u["computed"])(()=>{var e;return(null===(e=s.value)||void 0===e?void 0:e.placement)||n.placement}),m=Object(u["computed"])(()=>{var e,t;return null!==(e=null===(t=s.value)||void 0===t?void 0:t.contentStyle)&&void 0!==e?e:n.contentStyle}),v=Object(u["computed"])(()=>{var e,t;return null!==(e=null===(t=s.value)||void 0===t?void 0:t.mask)&&void 0!==e?e:n.mask}),b=Object(u["computed"])(()=>!!v.value&&n.modelValue),y=Object(u["computed"])(()=>Object(h["a"])(v.value)?void 0:v.value),O=Object(u["computed"])(()=>{var e,t;return!!l.value&&(null!==(e=null===(t=s.value)||void 0===t?void 0:t.showArrow)&&void 0!==e?e:n.showArrow)}),M=Object(u["computed"])(()=>{var e,t;return null!==(e=null===(t=s.value)||void 0===t?void 0:t.scrollIntoViewOptions)&&void 0!==e?e:n.scrollIntoViewOptions}),k=Object(u["computed"])(()=>{var e,t;return null!==(e=null===(t=s.value)||void 0===t?void 0:t.type)&&void 0!==e?e:n.type}),{nextZIndex:C}=Object(on["b"])(),w=C(),S=Object(u["computed"])(()=>{var e;return null!==(e=n.zIndex)&&void 0!==e?e:w}),{mergedPosInfo:T,triggerTarget:I}=QT(l,Object(u["toRef"])(n,"modelValue"),Object(u["toRef"])(n,"gap"),v,M);Object(u["watch"])(()=>n.modelValue,e=>{e||(c.value=0)});const E=()=>{n.closeOnPressEscape&&(r(o["c"],!1),r("close",c.value))},j=e=>{i.value=e},D=Object(u["useSlots"])();return Object(u["provide"])(ZT,{currentStep:s,current:c,total:i,showClose:Object(u["toRef"])(n,"showClose"),closeIcon:Object(u["toRef"])(n,"closeIcon"),mergedType:k,ns:a,slots:D,updateModelValue(e){r(o["c"],e)},onClose(){r("close",c.value)},onFinish(){r("finish")},onChange(){r(o["a"],c.value)}}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],null,[Object(u["createVNode"])(Object(u["unref"])(f),{to:e.appendTo},{default:Object(u["withCtx"])(()=>{var n,r;return[Object(u["createElementVNode"])("div",Object(u["mergeProps"])({class:d.value},t.$attrs),[Object(u["createVNode"])(sI,{visible:b.value,fill:null===(n=y.value)||void 0===n?void 0:n.color,style:Object(u["normalizeStyle"])(null===(r=y.value)||void 0===r?void 0:r.style),pos:Object(u["unref"])(T),"z-index":S.value,"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?(Object(u["openBlock"])(),Object(u["createBlock"])(uI,{key:Object(u["unref"])(c),reference:Object(u["unref"])(I),placement:p.value,"show-arrow":O.value,"z-index":S.value,style:Object(u["normalizeStyle"])(m.value),onClose:E},{default:Object(u["withCtx"])(()=>[Object(u["createVNode"])(Object(u["unref"])(dI),{current:Object(u["unref"])(c),onUpdateTotal:j},{default:Object(u["withCtx"])(()=>[Object(u["renderSlot"])(t.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):Object(u["createCommentVNode"])("v-if",!0)],16)]}),_:3},8,["to"]),Object(u["createCommentVNode"])(" just for IDE "),Object(u["createCommentVNode"])("v-if",!0)],64))}}),fI=pI;const hI=Object(c["b"])({target:{type:Object(c["c"])([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:S["e"]},showArrow:{type:Boolean,default:void 0},placement:WT.placement,mask:{type:Object(c["c"])([Boolean,Object]),default:void 0},contentStyle:{type:Object(c["c"])([Object])},prevButtonProps:{type:Object(c["c"])(Object)},nextButtonProps:{type:Object(c["c"])(Object)},scrollIntoViewOptions:{type:Object(c["c"])([Boolean,Object]),default:void 0},type:{type:Object(c["c"])(String)}}),mI={close:()=>!0},vI=["aria-label"];var gI=Object(u["defineComponent"])({name:"ElTourStep",__name:"step",props:hI,emits:mI,setup(e,{emit:t}){const n=e,r=t,{Close:o}=S["a"],{t:a}=Object(fr["b"])(),{currentStep:i,current:s,total:c,showClose:l,closeIcon:d,mergedType:p,ns:f,slots:h,updateModelValue:m,onClose:v,onFinish:g,onChange:_}=Object(u["inject"])(ZT);Object(u["watch"])(n,e=>{i.value=e},{immediate:!0});const b=Object(u["computed"])(()=>{var e;return null!==(e=n.showClose)&&void 0!==e?e:l.value}),y=Object(u["computed"])(()=>{var e,t;return null!==(e=null!==(t=n.closeIcon)&&void 0!==t?t:d.value)&&void 0!==e?e:o}),O=e=>{if(e)return Object(ne["omit"])(e,["children","onClick"])},M=()=>{var e,t;s.value-=1,null!==(e=n.prevButtonProps)&&void 0!==e&&e.onClick&&(null===(t=n.prevButtonProps)||void 0===t||t.onClick()),_()},C=()=>{var e;s.value>=c.value-1?w():s.value+=1,null!==(e=n.nextButtonProps)&&void 0!==e&&e.onClick&&n.nextButtonProps.onClick(),_()},w=()=>{T(),g()},T=()=>{m(!1),v(),r("close")},I=e=>{var t;if(null===(t=e.target)||void 0===t||!t.isContentEditable)switch(Object(St["b"])(e)){case vt["a"].left:e.preventDefault(),s.value>0&&M();break;case vt["a"].right:e.preventDefault(),C();break}};return Object(u["onMounted"])(()=>{window.addEventListener("keydown",I)}),Object(u["onBeforeUnmount"])(()=>{window.removeEventListener("keydown",I)}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],null,[b.value?(Object(u["openBlock"])(),Object(u["createElementBlock"])("button",{key:0,"aria-label":Object(u["unref"])(a)("el.tour.close"),class:Object(u["normalizeClass"])(Object(u["unref"])(f).e("closebtn")),type:"button",onClick:T},[Object(u["createVNode"])(Object(u["unref"])(k["a"]),{class:Object(u["normalizeClass"])(Object(u["unref"])(f).e("close"))},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(y.value)))]),_:1},8,["class"])],10,vI)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("header",{class:Object(u["normalizeClass"])([Object(u["unref"])(f).e("header"),{"show-close":Object(u["unref"])(l)}])},[Object(u["renderSlot"])(t.$slots,"header",{},()=>[Object(u["createElementVNode"])("span",{role:"heading",class:Object(u["normalizeClass"])(Object(u["unref"])(f).e("title"))},Object(u["toDisplayString"])(e.title),3)])],2),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(f).e("body"))},[Object(u["renderSlot"])(t.$slots,"default",{},()=>[Object(u["createElementVNode"])("span",null,Object(u["toDisplayString"])(e.description),1)])],2),Object(u["createElementVNode"])("footer",{class:Object(u["normalizeClass"])(Object(u["unref"])(f).e("footer"))},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(f).b("indicators"))},[Object(u["unref"])(h).indicators?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(Object(u["unref"])(h).indicators),{key:0,current:Object(u["unref"])(s),total:Object(u["unref"])(c)},null,8,["current","total"])):(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],{key:1},Object(u["renderList"])(Object(u["unref"])(c),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("span",{key:e,class:Object(u["normalizeClass"])([Object(u["unref"])(f).b("indicator"),Object(u["unref"])(f).is("active",t===Object(u["unref"])(s))])},null,2))),128))],2),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(f).b("buttons"))},[Object(u["unref"])(s)>0?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Sr["a"]),Object(u["mergeProps"])({key:0,size:"small",type:Object(u["unref"])(p)},O(e.prevButtonProps),{onClick:M}),{default:Object(u["withCtx"])(()=>{var t,n;return[Object(u["createTextVNode"])(Object(u["toDisplayString"])(null!==(t=null===(n=e.prevButtonProps)||void 0===n?void 0:n.children)&&void 0!==t?t:Object(u["unref"])(a)("el.tour.previous")),1)]}),_:1},16,["type"])):Object(u["createCommentVNode"])("v-if",!0),Object(u["unref"])(s)<=Object(u["unref"])(c)-1?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(Sr["a"]),Object(u["mergeProps"])({key:1,size:"small",type:"primary"===Object(u["unref"])(p)?"default":"primary"},O(e.nextButtonProps),{onClick:C}),{default:Object(u["withCtx"])(()=>{var t,n;return[Object(u["createTextVNode"])(Object(u["toDisplayString"])(null!==(t=null===(n=e.nextButtonProps)||void 0===n?void 0:n.children)&&void 0!==t?t:Object(u["unref"])(s)===Object(u["unref"])(c)-1?Object(u["unref"])(a)("el.tour.finish"):Object(u["unref"])(a)("el.tour.next")),1)]}),_:1},16,["type"])):Object(u["createCommentVNode"])("v-if",!0)],2)],2)],64))}}),_I=gI;const bI=Object(r["a"])(fI,{TourStep:_I}),yI=Object(r["d"])(_I),OI=e=>{if(!_["isClient"]||""===e)return null;if(Object(te["isString"])(e))try{return document.querySelector(e)}catch{return null}return e};function MI(e){let t=0;const n=(...n)=>{t&&Object(bo["a"])(t),t=Object(bo["b"])(()=>{e(...n),t=0})};return n.cancel=()=>{Object(bo["a"])(t),t=0},n}const kI=Object(c["b"])({container:{type:Object(c["c"])([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:Object(c["c"])(String),default:"default"},direction:{type:Object(c["c"])(String),default:"vertical"},selectScrollTop:Boolean}),CI={change:e=>Object(te["isString"])(e),click:(e,t)=>e instanceof MouseEvent&&(Object(te["isString"])(t)||Object(h["g"])(t))},wI=xe()("anchor");var SI=Object(u["defineComponent"])({name:"ElAnchor",__name:"anchor",props:kI,emits:CI,setup(e,{expose:t,emit:n}){const r=e,a=n,i=Object(u["useSlots"])(),c=Object(u["ref"])(""),l=Object(u["ref"])({}),d=Object(u["ref"])(null),p=Object(u["ref"])(null),f=Object(u["ref"])(),m={};let v=!1,b=0;const y=Object(g["d"])("anchor"),O=Object(u["computed"])(()=>[y.b(),"underline"===r.type?y.m("underline"):"",y.m(r.direction)]),M=e=>{m[e.href]=e.el},k=e=>{delete m[e]},C=e=>{c.value!==e&&(c.value=e,a(o["a"],e))};let w=null,S="";const T=e=>{if(!f.value)return;const t=OI(e);if(!t)return;if(w){if(S===e)return;w()}S=e,v=!0;const n=Object(s["d"])(t,f.value),o=bl(t,n),a=n.scrollHeight-n.clientHeight,i=Math.min(o-r.offset,a);w=Object(s["a"])(f.value,b,i,r.duration,()=>{qe()(()=>{v=!1,S=""},20)})},I=e=>{e&&(C(e),T(e))},E=(e,t)=>{a("click",e,t),I(t)},j=MI(()=>{f.value&&(b=Object(s["e"])(f.value));const e=D();v||Object(h["g"])(e)||C(e)}),D=()=>{if(!f.value)return;const e=Object(s["e"])(f.value),t=[];for(const n of Q()(m)){const e=OI(n);if(!e)continue;const o=bl(e,Object(s["d"])(e,f.value));t.push({top:o-r.offset-r.bound,href:n})}Ff()(t).call(t,(e,t)=>e.top-t.top);for(let n=0;n<t.length;n++){const o=t[n],a=t[n+1];if(0===n&&0===e)return r.selectScrollTop?o.href:"";if(o.top<=e&&(!a||a.top>e))return o.href}},L=()=>{const e=OI(r.container);!e||Object(h["h"])(e)?f.value=window:f.value=e};Object(_["useEventListener"])(f,"scroll",j);const A=()=>{Object(u["nextTick"])(()=>{if(!d.value||!p.value||!c.value)return void(l.value={});const e=m[c.value];if(!e)return void(l.value={});const t=d.value.getBoundingClientRect(),n=p.value.getBoundingClientRect(),o=e.getBoundingClientRect();"horizontal"===r.direction?l.value={left:o.left-t.left+"px",width:o.width+"px",opacity:1}:l.value={top:o.top-t.top+(o.height-n.height)/2+"px",opacity:1}})};return Object(u["watch"])(c,A),Object(u["watch"])(()=>{var e;return null===(e=i.default)||void 0===e?void 0:e.call(i)},A),Object(u["onMounted"])(()=>{L();const e=decodeURIComponent(window.location.hash);OI(e)?I(e):j()}),Object(u["watch"])(()=>r.container,()=>{L()}),Object(u["provide"])(wI,{ns:y,direction:r.direction,currentAnchor:c,addLink:M,removeLink:k,handleClick:E}),t({scrollTo:I}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref_key:"anchorRef",ref:d,class:Object(u["normalizeClass"])(O.value)},[e.marker?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,ref_key:"markerRef",ref:p,class:Object(u["normalizeClass"])(Object(u["unref"])(y).e("marker")),style:Object(u["normalizeStyle"])(l.value)},null,6)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(y).e("list"))},[Object(u["renderSlot"])(t.$slots,"default")],2)],2))}}),TI=SI;const II=Object(c["b"])({title:String,href:String}),EI=["href"];var jI=Object(u["defineComponent"])({name:"ElAnchorLink",__name:"anchor-link",props:II,setup(e){const t=e,n=Object(u["ref"])(null),{ns:r,direction:o,currentAnchor:a,addLink:i,removeLink:s,handleClick:c}=Object(u["inject"])(wI),l=Object(u["computed"])(()=>[r.e("link"),r.is("active",a.value===t.href)]),d=e=>{c(e,t.href)};return Object(u["watch"])(()=>t.href,(e,t)=>{Object(u["nextTick"])(()=>{t&&s(t),e&&i({href:e,el:n.value})})}),Object(u["onMounted"])(()=>{const{href:e}=t;e&&i({href:e,el:n.value})}),Object(u["onBeforeUnmount"])(()=>{const{href:e}=t;e&&s(e)}),(t,a)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("item"))},[Object(u["createElementVNode"])("a",{ref_key:"linkRef",ref:n,class:Object(u["normalizeClass"])(l.value),href:e.href,onClick:d},[Object(u["renderSlot"])(t.$slots,"default",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.title),1)])],10,EI),t.$slots["sub-link"]&&"vertical"===Object(u["unref"])(o)?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("list"))},[Object(u["renderSlot"])(t.$slots,"sub-link")],2)):Object(u["createCommentVNode"])("v-if",!0)],2))}}),DI=jI;const LI=Object(r["a"])(TI,{AnchorLink:DI}),AI=Object(r["d"])(DI),NI={label:"label",value:"value",disabled:"disabled"},RI=(Object(c["b"])({direction:{type:Object(c["c"])(String),default:"horizontal"},options:{type:Object(c["c"])(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:Object(c["c"])(Object),default:()=>NI},block:Boolean,size:Nr["c"],disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...Object(st["a"])(["ariaLabel"])}),{[o["c"]]:e=>Object(te["isString"])(e)||Object(h["d"])(e)||Object(h["a"])(e),[o["a"]]:e=>Object(te["isString"])(e)||Object(h["d"])(e)||Object(h["a"])(e)}),xI=["id","aria-label","aria-labelledby"],PI=["name","disabled","checked","onChange"];var UI=Object(u["defineComponent"])({name:"ElSegmented",__name:"segmented",props:{direction:{type:String,required:!1,default:"horizontal"},options:{type:Array,required:!1,default:()=>[]},modelValue:{type:[String,Number,Boolean],required:!1,default:void 0},props:{type:Object,required:!1,default:()=>NI},block:{type:Boolean,required:!1},size:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:void 0},validateEvent:{type:Boolean,required:!1,default:!0},id:{type:String,required:!1},name:{type:String,required:!1},ariaLabel:{type:String,required:!1}},emits:RI,setup(e,{emit:t}){const n=e,r=t,i=Object(g["d"])("segmented"),s=Object(ge["a"])(),c=Object(ce["b"])(),l=Object(ce["a"])(),{formItem:d}=Object(Hr["a"])(),{inputId:p,isLabeledByFormItem:f}=Object(Hr["b"])(n,{formItemContext:d}),h=Object(u["ref"])(null),m=Object(_["useActiveElement"])(),v=Object(u["reactive"])({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),b=(e,t)=>{const a=O(t);r(o["c"],a),r(o["a"],a),e.target.checked=a===n.modelValue},y=Object(u["computed"])(()=>({...NI,...n.props})),O=e=>Object(te["isObject"])(e)?e[y.value.value]:e,M=e=>Object(te["isObject"])(e)?e[y.value.label]:e,k=e=>!!(l.value||Object(te["isObject"])(e)&&e[y.value.disabled]),C=e=>n.modelValue===O(e),w=e=>{var t;return La()(t=n.options).call(t,t=>O(t)===e)},S=e=>[i.e("item"),i.is("selected",C(e)),i.is("disabled",k(e))],T=()=>{if(!h.value)return;const e=h.value.querySelector(".is-selected"),t=h.value.querySelector(".is-selected input");if(!e||!t)return v.width=0,v.height=0,v.translateX=0,v.translateY=0,void(v.focusVisible=!1);v.isInit=!0,"vertical"===n.direction?(v.height=e.offsetHeight,v.translateY=e.offsetTop):(v.width=e.offsetWidth,v.translateX=e.offsetLeft);try{v.focusVisible=t.matches(":focus-visible")}catch{}},I=Object(u["computed"])(()=>[i.b(),i.m(c.value),i.is("block",n.block)]),E=Object(u["computed"])(()=>({width:"vertical"===n.direction?"100%":v.width+"px",height:"vertical"===n.direction?v.height+"px":"100%",transform:"vertical"===n.direction?`translateY(${v.translateY}px)`:`translateX(${v.translateX}px)`,display:v.isInit?"block":"none"})),j=Object(u["computed"])(()=>[i.e("item-selected"),i.is("disabled",k(w(n.modelValue))),i.is("focus-visible",v.focusVisible)]),D=Object(u["computed"])(()=>n.name||s.value);return Object(_["useResizeObserver"])(h,T),Object(u["watch"])(m,T),Object(u["watch"])(()=>n.modelValue,()=>{var e;T(),n.validateEvent&&(null===d||void 0===d||null===(e=d.validate)||void 0===e||e.call(d,"change").catch(e=>Object(a["a"])(e)))},{flush:"post"}),(t,n)=>e.options.length?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,id:Object(u["unref"])(p),ref_key:"segmentedRef",ref:h,class:Object(u["normalizeClass"])(I.value),role:"radiogroup","aria-label":Object(u["unref"])(f)?void 0:e.ariaLabel||"segmented","aria-labelledby":Object(u["unref"])(f)?Object(u["unref"])(d).labelId:void 0},[Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(i).e("group"),Object(u["unref"])(i).m(e.direction)])},[Object(u["createElementVNode"])("div",{style:Object(u["normalizeStyle"])(E.value),class:Object(u["normalizeClass"])(j.value)},null,6),(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.options,(e,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("label",{key:n,class:Object(u["normalizeClass"])(S(e))},[Object(u["createElementVNode"])("input",{class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("item-input")),type:"radio",name:D.value,disabled:k(e),checked:C(e),onChange:t=>b(t,e)},null,42,PI),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(i).e("item-label"))},[Object(u["renderSlot"])(t.$slots,"default",{item:e},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(M(e)),1)])],2)],2))),128))],2)],10,xI)):Object(u["createCommentVNode"])("v-if",!0)}}),VI=UI;const BI=Object(r["a"])(VI),FI=(e,t)=>{var n;const r=e.toLowerCase();return ue()(n=(t.label||t.value||"").toLowerCase()).call(n,r)},GI=(e,t,n)=>{const{selectionEnd:r}=e;if(null===r)return;const o=e.value,a=Object(ne["castArray"])(t);let i,s=-1;for(let c=r-1;c>=0;--c){const e=o[c];if(-1!==s||e!==n&&"\n"!==e&&"\r"!==e){if(ue()(a).call(a,e)){const t=-1===s?r:s;i={pattern:It()(o).call(o,c+1,t),start:c+1,end:t,prefix:e,prefixIndex:c,splitIndex:s,selectionEnd:r};break}}else s=c}return i},HI=(e,t={debug:!1,useSelectionEnd:!1})=>{var n,r;const o=null!==e.selectionStart?e.selectionStart:0,a=null!==e.selectionEnd?e.selectionEnd:0,i=t.useSelectionEnd?a:o,s=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const e=document.querySelector("#input-textarea-caret-position-mirror-div");null!==e&&void 0!==e&&e.parentNode&&e.parentNode.removeChild(e)}const c=document.createElement("div");c.id="input-textarea-caret-position-mirror-div",document.body.appendChild(c);const l=c.style,u=window.getComputedStyle(e),d="INPUT"===e.nodeName;l.whiteSpace=d?"nowrap":"pre-wrap",d||(l.wordWrap="break-word"),l.position="absolute",t.debug||(l.visibility="hidden"),Y()(s).call(s,e=>{if(d&&"lineHeight"===e)if("border-box"===u.boxSizing){const e=ke()(u.height),t=ke()(u.paddingTop)+ke()(u.paddingBottom)+ke()(u.borderTopWidth)+ke()(u.borderBottomWidth),n=t+ke()(u.lineHeight);l.lineHeight=e>n?e-t+"px":e===n?u.lineHeight:"0"}else l.lineHeight=u.height;else l[e]=u[e]}),Object(ov["b"])()?e.scrollHeight>ke()(u.height)&&(l.overflowY="scroll"):l.overflow="hidden",c.textContent=It()(n=e.value).call(n,0,Math.max(0,i)),d&&c.textContent&&(c.textContent=c.textContent.replace(/\s/g," "));const p=document.createElement("span");p.textContent=It()(r=e.value).call(r,Math.max(0,i))||".",p.style.position="relative",p.style.left=-e.scrollLeft+"px",p.style.top=-e.scrollTop+"px",c.appendChild(p);const f={top:p.offsetTop+ke()(u.borderTopWidth),left:p.offsetLeft+ke()(u.borderLeftWidth),height:1.5*ke()(u.fontSize)};return t.debug?p.style.backgroundColor="#aaa":document.body.removeChild(c),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},YI=Object(c["b"])({...Un["b"],options:{type:Object(c["c"])(Array),default:()=>[]},prefix:{type:Object(c["c"])([String,Array]),default:"@",validator:e=>Object(te["isString"])(e)?1===e.length:Ht()(e).call(e,e=>Object(te["isString"])(e)&&1===e.length)},split:{type:String,default:" ",validator:e=>1===e.length},filterOption:{type:Object(c["c"])([Boolean,Function]),default:()=>FI,validator:e=>!1===e||Object(te["isFunction"])(e)},placement:{type:Object(c["c"])(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:Object(c["c"])(Function)},modelValue:String,loading:Boolean,popperClass:mt.popperClass,popperStyle:mt.popperStyle,popperOptions:{type:Object(c["c"])(Object),default:()=>({})},props:{type:Object(c["c"])(Object),default:()=>qI}}),zI={[o["c"]]:e=>Object(te["isString"])(e),"whole-remove":(e,t)=>Object(te["isString"])(e)&&Object(te["isString"])(t),input:e=>Object(te["isString"])(e),search:(e,t)=>Object(te["isString"])(e)&&Object(te["isString"])(t),select:(e,t)=>Object(te["isObject"])(e)&&Object(te["isString"])(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},qI={value:"value",label:"label",disabled:"disabled"},WI=Object(c["b"])({options:{type:Object(c["c"])(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),KI={select:e=>Object(te["isString"])(e.value)},$I=["id","aria-disabled","aria-selected","onMousemove","onClick"];var JI=Object(u["defineComponent"])({name:"ElMentionDropdown",__name:"mention-dropdown",props:WI,emits:KI,setup(e,{expose:t,emit:n}){const r=e,o=n,a=Object(g["d"])("mention"),{t:i}=Object(fr["b"])(),c=Object(u["ref"])(-1),l=Object(u["ref"])(),d=Object(u["ref"])(),p=Object(u["ref"])(),f=(e,t)=>[a.be("dropdown","item"),a.is("hovering",c.value===t),a.is("disabled",e.disabled||r.disabled)],h=e=>{e.disabled||r.disabled||o("select",e)},m=e=>{c.value=e},v=Object(u["computed"])(()=>{var e;return r.disabled||Ht()(e=r.options).call(e,e=>e.disabled)}),_=Object(u["computed"])(()=>r.options[c.value]),b=()=>{!_.value||_.value.disabled||r.disabled||o("select",_.value)},y=e=>{const{options:t}=r;if(0===t.length||v.value)return;"next"===e?(c.value++,c.value===t.length&&(c.value=0)):"prev"===e&&(c.value--,c.value<0&&(c.value=t.length-1));const n=t[c.value];n.disabled?y(e):Object(u["nextTick"])(()=>O(n))},O=e=>{var t,n;const{options:o}=r,i=ya()(o).call(o,t=>t.value===e.value),c=null===(t=d.value)||void 0===t?void 0:t[i];if(c){var u,f;const e=null===(u=p.value)||void 0===u||null===(f=u.querySelector)||void 0===f?void 0:f.call(u,"."+a.be("dropdown","wrap"));e&&Object(s["f"])(e,c)}null===(n=l.value)||void 0===n||n.handleScroll()},M=()=>{var e;v.value||0===r.options.length?c.value=-1:c.value=ya()(e=r.options).call(e,e=>!e.disabled)};return Object(u["watch"])(()=>r.options,M,{immediate:!0}),t({hoveringIndex:c,navigateOptions:y,selectHoverOption:b,hoverOption:_}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref_key:"dropdownRef",ref:p,class:Object(u["normalizeClass"])(Object(u["unref"])(a).b("dropdown"))},[t.$slots.header?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(a).be("dropdown","header"))},[Object(u["renderSlot"])(t.$slots,"header")],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["withDirectives"])(Object(u["createVNode"])(Object(u["unref"])(Rn),{id:e.contentId,ref_key:"scrollbarRef",ref:l,tag:"ul","wrap-class":Object(u["unref"])(a).be("dropdown","wrap"),"view-class":Object(u["unref"])(a).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(!0),Object(u["createElementBlock"])(u["Fragment"],null,Object(u["renderList"])(e.options,(n,r)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("li",{id:`${e.contentId}-${r}`,ref_for:!0,ref_key:"optionRefs",ref:d,key:r,class:Object(u["normalizeClass"])(f(n,r)),role:"option","aria-disabled":n.disabled||e.disabled||void 0,"aria-selected":c.value===r,onMousemove:e=>m(r),onClick:Object(u["withModifiers"])(e=>h(n),["stop"])},[Object(u["renderSlot"])(t.$slots,"label",{item:n,index:r},()=>{var e;return[Object(u["createElementVNode"])("span",null,Object(u["toDisplayString"])(null!==(e=n.label)&&void 0!==e?e:n.value),1)]})],42,$I))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[u["vShow"],e.options.length>0&&!e.loading]]),e.loading?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])(Object(u["unref"])(a).be("dropdown","loading"))},[Object(u["renderSlot"])(t.$slots,"loading",{},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(Object(u["unref"])(i)("el.mention.loading")),1)])],2)):Object(u["createCommentVNode"])("v-if",!0),t.$slots.footer?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:2,class:Object(u["normalizeClass"])(Object(u["unref"])(a).be("dropdown","footer"))},[Object(u["renderSlot"])(t.$slots,"footer")],2)):Object(u["createCommentVNode"])("v-if",!0)],2))}}),XI=JI,QI=Object(u["defineComponent"])({name:"ElMention",inheritAttrs:!1,__name:"mention",props:YI,emits:zI,setup(e,{expose:t,emit:n}){const r=e,a=n,i=Object(u["computed"])(()=>Object(ne["pick"])(r,Q()(Un["b"]))),s=Object(g["d"])("mention"),c=Object(ce["a"])(),l=Object(ge["a"])(),d=Object(u["ref"])(),p=Object(u["ref"])(),f=Object(u["ref"])(),h=Object(u["ref"])(!1),m=Object(u["ref"])(),v=Object(u["ref"])(),_=Object(u["computed"])(()=>r.showArrow?r.placement:r.placement+"-start"),b=Object(u["computed"])(()=>r.showArrow?["bottom","top"]:["bottom-start","top-start"]),y=Object(u["computed"])(()=>({...qI,...r.props})),O=e=>{const t={label:e[y.value.label],value:e[y.value.value],disabled:e[y.value.disabled]};return{...e,...t}},M=Object(u["computed"])(()=>{var e;return J()(e=r.options).call(e,O)}),k=Object(u["computed"])(()=>{var e;const{filterOption:t}=r;return v.value&&t?K()(e=M.value).call(e,e=>t(v.value.pattern,e)):M.value}),C=Object(u["computed"])(()=>h.value&&(!!k.value.length||r.loading)),w=Object(u["computed"])(()=>{var e;return`${l.value}-${null===(e=f.value)||void 0===e?void 0:e.hoveringIndex}`}),S=e=>{a(o["c"],e),a(o["b"],e),A()},T=e=>{var t,n,i,s;if(null!==(t=d.value)&&void 0!==t&&t.isComposing)return;const c=Object(St["b"])(e);switch(c){case vt["a"].left:case vt["a"].right:A();break;case vt["a"].up:case vt["a"].down:if(!h.value)return;e.preventDefault(),null===(n=f.value)||void 0===n||n.navigateOptions(c===vt["a"].up?"prev":"next");break;case vt["a"].enter:case vt["a"].numpadEnter:if(!h.value)return void("textarea"!==r.type&&A());e.preventDefault(),null!==(i=f.value)&&void 0!==i&&i.hoverOption?null===(s=f.value)||void 0===s||s.selectHoverOption():h.value=!1;break;case vt["a"].esc:if(!h.value)return;e.preventDefault(),h.value=!1;break;case vt["a"].backspace:if(r.whole&&v.value){var l;const{splitIndex:t,selectionEnd:n,pattern:i,prefixIndex:s,prefix:c}=v.value,d=L();if(!d)return;const p=d.value,f=La()(l=M.value).call(l,e=>e.value===i);if((Object(te["isFunction"])(r.checkIsWhole)?r.checkIsWhole(i,c):f)&&-1!==t&&t+1===n){e.preventDefault();const n=It()(p).call(p,0,s)+It()(p).call(p,t+1);a(o["c"],n),a(o["b"],n),a("whole-remove",i,c);const r=s;Object(u["nextTick"])(()=>{d.selectionStart=r,d.selectionEnd=r,R()})}}}},{wrapperRef:I}=Object(Gr["a"])(d,{disabled:c,afterFocus(){A()},beforeBlur(e){var t;return null===(t=p.value)||void 0===t?void 0:t.isFocusInsideContent(e)},afterBlur(){h.value=!1}}),E=()=>{A()},j=e=>{var t;return La()(t=r.options).call(t,t=>e.value===t[y.value.value])},D=e=>{if(!v.value)return;const t=L();if(!t)return;const n=t.value,{split:i}=r,s=It()(n).call(n,v.value.end),c=Fr()(s).call(s,i),l=`${e.value}${c?"":i}`,d=It()(n).call(n,0,v.value.start)+l+s;a(o["c"],d),a(o["b"],d),a("select",j(e),v.value.prefix);const p=v.value.start+l.length+(c?1:0);Object(u["nextTick"])(()=>{t.selectionStart=p,t.selectionEnd=p,t.focus(),R()})},L=()=>{var e,t;return"textarea"===r.type?null===(e=d.value)||void 0===e?void 0:e.textarea:null===(t=d.value)||void 0===t?void 0:t.input},A=()=>{qe()(()=>{N(),R(),Object(u["nextTick"])(()=>{var e;return null===(e=p.value)||void 0===e?void 0:e.updatePopper()})},0)},N=()=>{const e=L();if(!e)return;const t=HI(e),n=e.getBoundingClientRect(),r=I.value.getBoundingClientRect();m.value={position:"absolute",width:0,height:t.height+"px",left:t.left+n.left-r.left+"px",top:t.top+n.top-r.top+"px"}},R=()=>{const e=L();if(document.activeElement!==e)return void(h.value=!1);const{prefix:t,split:n}=r;if(v.value=GI(e,t,n),v.value&&-1===v.value.splitIndex)return h.value=!0,void a("search",v.value.pattern,v.value.prefix);h.value=!1};return t({input:d,tooltip:p,dropdownVisible:C}),(t,n)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref_key:"wrapperRef",ref:I,class:Object(u["normalizeClass"])(Object(u["unref"])(s).b())},[Object(u["createVNode"])(Object(u["unref"])(gn["a"]),Object(u["mergeProps"])(Object(u["mergeProps"])(i.value,t.$attrs),{ref_key:"elInputRef",ref:d,"model-value":e.modelValue,disabled:Object(u["unref"])(c),role:C.value?"combobox":void 0,"aria-activedescendant":C.value?w.value||"":void 0,"aria-controls":C.value?Object(u["unref"])(l):void 0,"aria-expanded":C.value||void 0,"aria-label":e.ariaLabel,"aria-autocomplete":C.value?"none":void 0,"aria-haspopup":C.value?"listbox":void 0,onInput:S,onKeydown:T,onMousedown:E}),Object(u["createSlots"])({_:2},[Object(u["renderList"])(t.$slots,(e,n)=>({name:n,fn:Object(u["withCtx"])(e=>[Object(u["renderSlot"])(t.$slots,n,Object(u["normalizeProps"])(Object(u["guardReactiveProps"])(e)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),Object(u["createVNode"])(Object(u["unref"])(vn),{ref_key:"tooltipRef",ref:p,visible:C.value,"popper-class":[Object(u["unref"])(s).e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,placement:_.value,"fallback-placements":b.value,effect:"light",pure:"",offset:e.offset,"show-arrow":e.showArrow},{default:Object(u["withCtx"])(()=>[Object(u["createElementVNode"])("div",{style:Object(u["normalizeStyle"])(m.value)},null,4)]),content:Object(u["withCtx"])(()=>[Object(u["createVNode"])(XI,{ref_key:"dropdownRef",ref:f,options:k.value,disabled:Object(u["unref"])(c),loading:e.loading,"content-id":Object(u["unref"])(l),"aria-label":e.ariaLabel,onSelect:D,onClick:n[0]||(n[0]=Object(u["withModifiers"])(e=>{var t;return null===(t=d.value)||void 0===t?void 0:t.focus()},["stop"]))},Object(u["createSlots"])({_:2},[Object(u["renderList"])(t.$slots,(e,n)=>({name:n,fn:Object(u["withCtx"])(e=>[Object(u["renderSlot"])(t.$slots,n,Object(u["normalizeProps"])(Object(u["guardReactiveProps"])(e)))])}))]),1032,["options","disabled","loading","content-id","aria-label"])]),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}}),ZI=QI;const eE=Object(r["a"])(ZI),tE=Object(c["b"])({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),nE={resizeStart:(e,t)=>!0,resize:(e,t)=>!0,resizeEnd:(e,t)=>!0,collapse:(e,t,n)=>!0};function rE(e){const t=Object(u["ref"])(),{width:n,height:r}=Object(_["useElementSize"])(t);return{containerEl:t,containerSize:Object(u["computed"])(()=>"horizontal"===e.value?n.value:r.value)}}var oE=n("e6da"),aE=n.n(oE);function iE(e){return Number(It()(e).call(e,0,-1))/100}function sE(e){return Number(It()(e).call(e,0,-2))}function cE(e){return Object(te["isString"])(e)&&aE()(e).call(e,"%")}function lE(e){return Object(te["isString"])(e)&&aE()(e).call(e,"px")}function uE(e,t){const n=Object(u["computed"])(()=>{var t;return J()(t=e.value).call(t,e=>e.size)}),r=Object(u["computed"])(()=>e.value.length),o=Object(u["ref"])([]);Object(u["watch"])([n,r,t],()=>{let n=[],a=0;for(let o=0;o<r.value;o+=1){var i;const r=null===(i=e.value[o])||void 0===i?void 0:i.size;if(cE(r))n[o]=iE(r);else if(lE(r))n[o]=sE(r)/t.value;else if(r||0===r){const e=Number(r);Di()(e)||(n[o]=e/t.value)}else a+=1,n[o]=void 0}const s=fa()(n).call(n,(e,t)=>e+(t||0),0);if(s>1||!a){const e=1/s;n=J()(n).call(n,t=>void 0===t?0:t*e)}else{const e=(1-s)/a;n=J()(n).call(n,t=>void 0===t?e:t)}o.value=n});const a=e=>e*t.value;return{percentSizes:o,pxSizes:Object(u["computed"])(()=>{var e;return J()(e=o.value).call(e,a)})}}function dE(e,t,n,r){const o=e=>e*t.value||0;function a(e,t){return cE(e)?o(iE(e)):lE(e)?sE(e):null!==e&&void 0!==e?e:t}const i=Object(u["ref"])(0),s=Object(u["ref"])(null);let c=[],l=te["NOOP"];const d=Object(u["computed"])(()=>{var t;return J()(t=e.value).call(t,e=>[e.min,e.max])});Object(u["watch"])(r,()=>{if(i.value){const e=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(e)}});const p=e=>{i.value=0,s.value={index:e,confirmed:!1},c=n.value},f=(n,o)=>{var u,p;let f=null;if((!s.value||!s.value.confirmed)&&0!==o)if(o>0)f=n,s.value={index:n,confirmed:!0};else for(let e=n;e>=0;e-=1)if(c[e]>0){f=e,s.value={index:e,confirmed:!0};break}const h=null!==(u=null!==f&&void 0!==f?f:null===(p=s.value)||void 0===p?void 0:p.index)&&void 0!==u?u:n,m=[...c],v=h+1,g=a(d.value[h][0],0),_=a(d.value[v][0],0),b=a(d.value[h][1],t.value||0),y=a(d.value[v][1],t.value||0);let O=o;m[h]+O<g&&(O=g-m[h]),m[v]-O<_&&(O=m[v]-_),m[h]+O>b&&(O=b-m[h]),m[v]-O>y&&(O=m[v]-y),m[h]+=O,m[v]-=O,i.value=O,l=()=>{var t;Y()(t=e.value).call(t,(e,t)=>{e.size=m[t]}),l=te["NOOP"]},r.value||l()},h=()=>{r.value&&l(),i.value=0,s.value=null,c=[]},m=[],v=(t,r)=>{var o;m.length||m.push(...n.value);const a=n.value,i="start"===r?t:t+1,s="start"===r?t+1:t,c=a[i],l=a[s];if(0!==c&&0!==l)a[i]=0,a[s]+=c,m[t]=c;else{const e=c+l,n=m[t],r=e-n;a[s]=n,a[i]=r}Y()(o=e.value).call(o,(e,t)=>{e.size=a[t]})};return{lazyOffset:i,onMoveStart:p,onMoving:f,onMoveEnd:h,movingIndex:s,onCollapse:v}}const pE=xe()("splitterRootContextKey");var fE=Object(u["defineComponent"])({name:"ElSplitter",__name:"splitter",props:tE,emits:nE,setup(e,{emit:t}){const n=Object(g["d"])("splitter"),r=t,o=e,a=Object(u["toRef"])(o,"layout"),i=Object(u["toRef"])(o,"lazy"),{containerEl:s,containerSize:c}=rE(a),{removeChild:l,children:d,addChild:p,ChildrenSorter:f}=Ri(Object(u["getCurrentInstance"])(),"ElSplitterPanel");Object(u["watch"])(d,()=>{var e;_.value=null,Y()(e=d.value).call(e,(e,t)=>{e.setIndex(t)})});const{percentSizes:h,pxSizes:m}=uE(d,c),{lazyOffset:v,movingIndex:_,onMoveStart:b,onMoving:y,onMoveEnd:O,onCollapse:M}=dE(d,c,m,i),k=Object(u["computed"])(()=>({[n.cssVarBlockName("bar-offset")]:i.value?v.value+"px":void 0})),C=e=>{b(e),r("resizeStart",e,m.value)},w=(e,t)=>{y(e,t),i.value||r("resize",e,m.value)},S=async e=>{O(),await Object(u["nextTick"])(),r("resizeEnd",e,m.value)},T=(e,t)=>{M(e,t),r("collapse",e,t,m.value)};return Object(u["provide"])(pE,Object(u["reactive"])({panels:d,percentSizes:h,pxSizes:m,layout:a,lazy:i,movingIndex:_,containerSize:c,onMoveStart:C,onMoving:w,onMoveEnd:S,onCollapse:T,registerPanel:p,unregisterPanel:l})),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{ref_key:"containerEl",ref:s,class:Object(u["normalizeClass"])([Object(u["unref"])(n).b(),Object(u["unref"])(n).e(a.value)]),style:Object(u["normalizeStyle"])(k.value)},[Object(u["renderSlot"])(e.$slots,"default"),Object(u["createVNode"])(Object(u["unref"])(f)),Object(u["createCommentVNode"])(" Prevent iframe touch events from breaking "),Object(u["unref"])(_)?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("mask"),Object(u["unref"])(n).e("mask-"+a.value)])},null,2)):Object(u["createCommentVNode"])("v-if",!0)],6))}}),hE=fE;const mE=Object(c["b"])({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),vE={"update:size":e=>"number"===typeof e||"string"===typeof e};function gE(e){return e&&Object(te["isObject"])(e)?e:{start:!!e,end:!!e}}function _E(e,t,n,r){return!!(null!==e&&void 0!==e&&e.collapsible.end&&t>0)||!!(null!==n&&void 0!==n&&n.collapsible.start&&0===r&&t>0)}var bE=Object(u["defineComponent"])({name:"ElSplitterBar",__name:"split-bar",props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const n=Object(g["d"])("splitter-bar"),r=e,o=t,a=Object(u["computed"])(()=>"horizontal"===r.layout),i=Object(u["computed"])(()=>a.value?{width:0}:{height:0}),s=Object(u["computed"])(()=>({width:a.value?"16px":"100%",height:a.value?"100%":"16px",cursor:r.resizable?a.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),c=Object(u["computed"])(()=>{const e=n.e("dragger");return{[e+"-horizontal"]:a.value,[e+"-vertical"]:!a.value,[e+"-active"]:!!l.value}}),l=Object(u["ref"])(null),d=e=>{r.resizable&&(l.value=[e.pageX,e.pageY],o("moveStart",r.index),window.addEventListener("mouseup",m),window.addEventListener("mousemove",f))},p=e=>{if(r.resizable&&1===e.touches.length){e.preventDefault();const t=e.touches[0];l.value=[t.pageX,t.pageY],o("moveStart",r.index),window.addEventListener("touchend",v),window.addEventListener("touchmove",h)}},f=e=>{const{pageX:t,pageY:n}=e,i=t-l.value[0],s=n-l.value[1],c=a.value?i:s;o("moving",r.index,c)},h=e=>{if(1===e.touches.length){e.preventDefault();const t=e.touches[0],n=t.pageX-l.value[0],i=t.pageY-l.value[1],s=a.value?n:i;o("moving",r.index,s)}},m=()=>{l.value=null,window.removeEventListener("mouseup",m),window.removeEventListener("mousemove",f),o("moveEnd",r.index)},v=()=>{l.value=null,window.removeEventListener("touchend",v),window.removeEventListener("touchmove",h),o("moveEnd",r.index)},_=Object(u["computed"])(()=>a.value?Fn["ArrowLeft"]:Fn["ArrowUp"]),b=Object(u["computed"])(()=>a.value?Fn["ArrowRight"]:Fn["ArrowDown"]);return(t,r)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(n).b()]),style:Object(u["normalizeStyle"])(i.value)},[e.startCollapsible?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("collapse-icon"),Object(u["unref"])(n).e(e.layout+"-collapse-icon-start")]),onClick:r[0]||(r[0]=t=>o("collapse",e.index,"start"))},[Object(u["renderSlot"])(t.$slots,"start-collapsible",{},()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(_.value),{style:{width:"12px",height:"12px"}}))])],2)):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("dragger"),c.value,Object(u["unref"])(n).is("disabled",!e.resizable),Object(u["unref"])(n).is("lazy",e.resizable&&e.lazy)]),style:Object(u["normalizeStyle"])(s.value),onMousedown:d,onTouchstart:p},null,38),e.endCollapsible?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:1,class:Object(u["normalizeClass"])([Object(u["unref"])(n).e("collapse-icon"),Object(u["unref"])(n).e(e.layout+"-collapse-icon-end")]),onClick:r[1]||(r[1]=t=>o("collapse",e.index,"end"))},[Object(u["renderSlot"])(t.$slots,"end-collapsible",{},()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(b.value),{style:{width:"12px",height:"12px"}}))])],2)):Object(u["createCommentVNode"])("v-if",!0)],6))}}),yE=bE;const OE="ElSplitterPanel";var ME=Object(u["defineComponent"])({name:OE,__name:"split-panel",props:mE,emits:vE,setup(e,{expose:t,emit:n}){const r=Object(g["d"])("splitter-panel"),o=e,i=n,s=Object(u["inject"])(pE);s||Object(a["b"])(OE,"usage: <el-splitter><el-splitter-panel /></el-splitter/>");const{panels:c,layout:l,lazy:d,containerSize:p,pxSizes:f}=Object(u["toRefs"])(s),{registerPanel:h,unregisterPanel:m,onCollapse:v,onMoveEnd:_,onMoveStart:b,onMoving:y}=s,O=Object(u["ref"])(),M=Object(u["getCurrentInstance"])(),k=M.uid,C=Object(u["ref"])(0),w=Object(u["computed"])(()=>c.value[C.value]),S=e=>{C.value=e},T=Object(u["computed"])(()=>{var e;return w.value&&null!==(e=f.value[C.value])&&void 0!==e?e:0}),I=Object(u["computed"])(()=>{var e;return w.value&&null!==(e=f.value[C.value+1])&&void 0!==e?e:0}),E=Object(u["computed"])(()=>w.value?c.value[C.value+1]:null),j=Object(u["computed"])(()=>{var e;return!!E.value&&(o.resizable&&(null===(e=E.value)||void 0===e?void 0:e.resizable)&&(0!==T.value||!o.min)&&(0!==I.value||!E.value.min))}),D=Object(u["computed"])(()=>!!w.value&&C.value!==c.value.length-1),L=Object(u["computed"])(()=>_E(w.value,T.value,E.value,I.value)),A=Object(u["computed"])(()=>_E(E.value,I.value,w.value,T.value));function N(e){return cE(e)?iE(e)*p.value||0:lE(e)?sE(e):null!==e&&void 0!==e?e:0}let R=!1;Object(u["watch"])(()=>o.size,()=>{if(!R&&w.value){if(!p.value)return void(w.value.size=o.size);const e=N(o.size),t=N(o.max),n=N(o.min),r=Math.min(Math.max(e,n||0),t||e);r!==e&&i("update:size",r),w.value.size=r}}),Object(u["watch"])(()=>{var e;return null===(e=w.value)||void 0===e?void 0:e.size},e=>{e!==o.size&&(R=!0,i("update:size",e),Object(u["nextTick"])(()=>R=!1))}),Object(u["watch"])(()=>o.resizable,e=>{w.value&&(w.value.resizable=e)});const x=Object(u["reactive"])({uid:k,getVnode:()=>M.vnode,setIndex:S,...o,collapsible:Object(u["computed"])(()=>gE(o.collapsible))});return h(x),Object(u["onBeforeUnmount"])(()=>m(x)),t({splitterPanelRef:O}),(e,t)=>(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],null,[Object(u["createElementVNode"])("div",Object(u["mergeProps"])({ref_key:"panelEl",ref:O,class:[Object(u["unref"])(r).b()],style:{flexBasis:T.value+"px"}},e.$attrs),[Object(u["renderSlot"])(e.$slots,"default")],16),D.value?(Object(u["openBlock"])(),Object(u["createBlock"])(yE,{key:0,index:C.value,layout:Object(u["unref"])(l),lazy:Object(u["unref"])(d),resizable:j.value,"start-collapsible":L.value,"end-collapsible":A.value,onMoveStart:Object(u["unref"])(b),onMoving:Object(u["unref"])(y),onMoveEnd:Object(u["unref"])(_),onCollapse:Object(u["unref"])(v)},{"start-collapsible":Object(u["withCtx"])(()=>[Object(u["renderSlot"])(e.$slots,"start-collapsible")]),"end-collapsible":Object(u["withCtx"])(()=>[Object(u["renderSlot"])(e.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):Object(u["createCommentVNode"])("v-if",!0)],64))}}),kE=ME;const CE=Object(r["a"])(hE,{SplitPanel:kE}),wE=Object(r["d"])(kE),SE=Object(c["b"])({trigger:_t.trigger,triggerKeys:_t.triggerKeys,placement:yh.placement,disabled:_t.disabled,visible:mt.visible,transition:mt.transition,popperOptions:yh.popperOptions,tabindex:yh.tabindex,content:mt.content,popperStyle:mt.popperStyle,popperClass:mt.popperClass,enterable:{...mt.enterable,default:!0},effect:{...mt.effect,default:"light"},teleported:mt.teleported,appendTo:mt.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),TE={"update:visible":e=>Object(h["a"])(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},IE="onUpdate:visible";var EE=Object(u["defineComponent"])({name:"ElPopover",__name:"popover",props:SE,emits:TE,setup(e,{expose:t,emit:n}){const r=e,o=n,a=Object(u["computed"])(()=>r[IE]),s=Object(g["d"])("popover"),c=Object(u["ref"])(),l=Object(u["computed"])(()=>{var e;return null===(e=Object(u["unref"])(c))||void 0===e?void 0:e.popperRef}),d=Object(u["computed"])(()=>[{width:Object(i["b"])(r.width)},r.popperStyle]),p=Object(u["computed"])(()=>[s.b(),r.popperClass,{[s.m("plain")]:!!r.content}]),f=Object(u["computed"])(()=>r.transition===s.namespace.value+"-fade-in-linear"),h=()=>{var e;null===(e=c.value)||void 0===e||e.hide()},m=()=>{o("before-enter")},v=()=>{o("before-leave")},_=()=>{o("after-enter")},b=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:l,hide:h}),(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(vn),Object(u["mergeProps"])({ref_key:"tooltipRef",ref:c},t.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":p.value,"popper-style":d.value,teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":f.value,"onUpdate:visible":a.value,onBeforeShow:m,onBeforeHide:v,onShow:_,onHide:b}),{content:Object(u["withCtx"])(()=>[e.title?(Object(u["openBlock"])(),Object(u["createElementBlock"])("div",{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(s).e("title")),role:"title"},Object(u["toDisplayString"])(e.title),3)):Object(u["createCommentVNode"])("v-if",!0),Object(u["renderSlot"])(t.$slots,"default",{hide:h},()=>[Object(u["createTextVNode"])(Object(u["toDisplayString"])(e.content),1)])]),default:Object(u["withCtx"])(()=>[t.$slots.reference?Object(u["renderSlot"])(t.$slots,"reference",{key:0}):Object(u["createCommentVNode"])("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}}),jE=EE;const DE=(e,t)=>{var n;const r=null===(n=t.arg||t.value)||void 0===n?void 0:n.popperRef;r&&(r.triggerRef=e)};var LE={mounted(e,t){DE(e,t)},updated(e,t){DE(e,t)}};const AE="popover",NE=Object(r["b"])(LE,AE),RE=Object(r["a"])(jE,{directive:NE});var xE=[M,N,Kn,_C,rr,or,dr,pr["a"],Mr,kr,Sr["a"],Sr["b"],Mi,Ti,Zi,es,wc,gc,jc,ks,Cs,ws,Yc,ul,dl,Wc,Ql,ou,wr,mu,vu,gu,_u,bu,Vp,Rp,Zp,ef,wf,Ef,Vf,qh,Wh,Kh,wm,De,Le,k["a"],Bm,Am,gn["a"],Zm,dv,gv,Yv,zv,qv,Wv,Zv,Vg,zg,RE,Fe,e_,Ys,qs,zs,s_,f_,Pc,Rn,Wa,Ka,$a,xb,Yb,zb,vy,ky,wu,Pu,Ly,Ay,zy,UM,VM,gC,PC,UC,$o,GC,Go,QC,aw,iw,vn,Sw,sS,bS,WS,AT,YT,bI,yI,LI,AI,BI,eE,CE,wE];const PE=xe()("INSTALLED_KEY"),UE="2.13.6",VE=(e=[])=>{const t=(t,n)=>{t[PE]||(t[PE]=!0,Y()(e).call(e,e=>t.use(e)),n&&Object(ki["a"])(n,t,!0))};return{version:UE,install:t}},BE="ElInfiniteScroll",FE=50,GE=200,HE=0,YE={delay:{type:Number,default:GE},distance:{type:Number,default:HE},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},zE=(e,t)=>{var n;return fa()(n=Vc()(YE)).call(n,(n,[r,o])=>{var a,i;const{type:s,default:c}=o,l=e.getAttribute("infinite-scroll-"+r);let u=null!==(a=null!==(i=t[l])&&void 0!==i?i:l)&&void 0!==a?a:c;return u="false"!==u&&u,u=s(u),n[r]=Di()(u)?c:u,n},{})},qE=e=>{const{observer:t}=e[BE];t&&(t.disconnect(),delete e[BE].observer)},WE=(e,t)=>{const{container:n,containerEl:r,instance:o,observer:a,lastScrollTop:i}=e[BE],{disabled:s,distance:c}=zE(e,o),{clientHeight:l,scrollHeight:u,scrollTop:d}=r,p=d-i;if(e[BE].lastScrollTop=d,a||s||p<0)return;let f=!1;if(n===e)f=u-(l+d)<=c;else{const{clientTop:t,scrollHeight:n}=e,o=bl(e,r);f=d+l>=o+t+n-c}f&&t.call(o)};function KE(e,t){const{containerEl:n,instance:r}=e[BE],{disabled:o}=zE(e,r);o||0===n.clientHeight||(n.scrollHeight<=n.clientHeight?t.call(r):qE(e))}const $E={async mounted(e,t){const{instance:n,value:r}=t;Object(rs["a"])({scope:BE,from:"the directive v-infinite-scroll",replacement:"the el-scrollbar infinite scroll",version:"3.0.0",ref:"https://element-plus.org/en-US/component/scrollbar#infinite-scroll"},!0),Object(te["isFunction"])(r)||Object(a["b"])(BE,"'v-infinite-scroll' binding value must be a function"),await Object(u["nextTick"])();const{delay:o,immediate:i}=zE(e,n),c=Object(s["c"])(e,!0),l=c===window?document.documentElement:c,d=Object(ne["throttle"])(Ai()(WE).call(WE,null,e,r),o);if(c){if(e[BE]={instance:n,container:c,containerEl:l,delay:o,cb:r,onScroll:d,lastScrollTop:l.scrollTop},i){const t=new MutationObserver(Object(ne["throttle"])(Ai()(KE).call(KE,null,e,r),FE));e[BE].observer=t,t.observe(e,{childList:!0,subtree:!0}),KE(e,r)}c.addEventListener("scroll",d)}},unmounted(e){if(!e[BE])return;const{container:t,onScroll:n}=e[BE];null===t||void 0===t||t.removeEventListener("scroll",n),qE(e)},async updated(e){if(e[BE]){const{containerEl:t,cb:n,observer:r}=e[BE];t.clientHeight&&r&&KE(e,n)}else await Object(u["nextTick"])()}},JE=$E;JE.install=e=>{e.directive("InfiniteScroll",JE)};const XE=JE;function QE(e,t){let n;const r=Object(u["ref"])(!1),o=Object(u["reactive"])({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(e){o.text=e}function s(){const e=o.parent,t=f.ns;if(!e.vLoadingAddClassList){let n=e.getAttribute("loading-number");n=ke()(n)-1,n?e.setAttribute("loading-number",n.toString()):(Object(i["e"])(e,t.bm("parent","relative")),e.removeAttribute("loading-number")),Object(i["e"])(e,t.bm("parent","hidden"))}c(),p.unmount()}function c(){var e;null===(e=f.$el)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(f.$el)}function l(){var t;e.beforeClose&&!e.beforeClose()||(r.value=!0,clearTimeout(n),n=qe()(d,400),o.visible=!1,null===(t=e.closed)||void 0===t||t.call(e))}function d(){if(!r.value)return;const e=o.parent;r.value=!1,e.vLoadingAddClassList=void 0,s()}const p=Object(u["createApp"])(Object(u["defineComponent"])({name:"ElLoading",setup(e,{expose:t}){const{ns:n,zIndex:r}=Object(ki["b"])("loading");return t({ns:n,zIndex:r}),()=>{const e=o.spinner||o.svg,t=Object(u["h"])("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...e?{innerHTML:e}:{}},[Object(u["h"])("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),r=o.text?Object(u["h"])("p",{class:n.b("text")},[o.text]):void 0;return Object(u["h"])(u["Transition"],{name:n.b("fade"),onAfterLeave:d},{default:Object(u["withCtx"])(()=>[Object(u["withDirectives"])(Object(u["createVNode"])("div",{style:{backgroundColor:o.background||""},class:[n.b("mask"),o.customClass,n.is("fullscreen",o.fullscreen)]},[Object(u["h"])("div",{class:n.b("spinner")},[t,r])]),[[u["vShow"],o.visible]])])})}}}));$t()(p._context,null!==t&&void 0!==t?t:{});const f=p.mount(document.createElement("div"));return{...Object(u["toRefs"])(o),setText:a,removeElLoadingChild:c,close:l,handleAfterLeave:d,vm:f,get $el(){return f.$el}}}let ZE=void 0;const ej=function(e={},t){if(!_["isClient"])return;const n=tj(e);if(n.fullscreen&&ZE)return ZE;const r=QE({...n,closed:()=>{var e;null===(e=n.closed)||void 0===e||e.call(n),n.fullscreen&&(ZE=void 0)}},null!==t&&void 0!==t?t:ej._context);nj(n,n.parent,r),rj(n,n.parent,r),n.parent.vLoadingAddClassList=()=>rj(n,n.parent,r);let o=n.parent.getAttribute("loading-number");return o=o?""+(ke()(o)+1):"1",n.parent.setAttribute("loading-number",o),n.parent.appendChild(r.$el),Object(u["nextTick"])(()=>r.visible.value=n.visible),n.fullscreen&&(ZE=r),r},tj=e=>{var t,n,r,o;let a;return a=Object(te["isString"])(e.target)?null!==(t=document.querySelector(e.target))&&void 0!==t?t:document.body:e.target||document.body,{parent:a===document.body||e.body?document.body:a,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:a===document.body&&(null===(n=e.fullscreen)||void 0===n||n),lock:null!==(r=e.lock)&&void 0!==r&&r,customClass:e.customClass||"",visible:null===(o=e.visible)||void 0===o||o,beforeClose:e.beforeClose,closed:e.closed,target:a}},nj=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=Object(i["c"])(document.body,"position"),n.originalOverflow.value=Object(i["c"])(document.body,"overflow"),o.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Object(i["c"])(document.body,"position"),await Object(u["nextTick"])();for(const t of["top","left"]){const n="top"===t?"scrollTop":"scrollLeft";o[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]-ke()(Object(i["c"])(document.body,"margin-"+t),10)+"px"}for(const t of["height","width"])o[t]=e.target.getBoundingClientRect()[t]+"px"}else n.originalPosition.value=Object(i["c"])(t,"position");for(const[a,i]of Vc()(o))n.$el.style[a]=i},rj=(e,t,n)=>{var r;const o=n.vm.ns||n.vm._.exposed.ns;ue()(r=["absolute","fixed","sticky"]).call(r,n.originalPosition.value)?Object(i["e"])(t,o.bm("parent","relative")):Object(i["a"])(t,o.bm("parent","relative")),e.fullscreen&&e.lock?Object(i["a"])(t,o.bm("parent","hidden")):Object(i["e"])(t,o.bm("parent","hidden"))};ej._context=null;const oj=xe()("ElLoading"),aj=e=>"element-loading-"+Object(te["hyphenate"])(e),ij=(e,t)=>{var n,r,o,a;const i=t.instance,s=e=>Object(te["isObject"])(t.value)?t.value[e]:void 0,c=e=>Object(u["ref"])(Object(te["isString"])(e)&&(null===i||void 0===i?void 0:i[e])||e),l=t=>c(s(t)||e.getAttribute(aj(t))),d=null!==(n=s("fullscreen"))&&void 0!==n?n:t.modifiers.fullscreen,p={text:l("text"),svg:l("svg"),svgViewBox:l("svgViewBox"),spinner:l("spinner"),background:l("background"),customClass:l("customClass"),fullscreen:d,target:null!==(r=s("target"))&&void 0!==r?r:d?void 0:e,body:null!==(o=s("body"))&&void 0!==o?o:t.modifiers.body,lock:null!==(a=s("lock"))&&void 0!==a?a:t.modifiers.lock},f=ej(p);f._context=cj._context,e[oj]={options:p,instance:f}},sj=(e,t)=>{for(const n of Q()(e))Object(u["isRef"])(e[n])&&(e[n].value=t[n])},cj={mounted(e,t){t.value&&ij(e,t)},updated(e,t){const n=e[oj];if(!t.value)return null===n||void 0===n||n.instance.close(),void(e[oj]=null);n?sj(n.options,Object(te["isObject"])(t.value)?t.value:{text:e.getAttribute(aj("text")),svg:e.getAttribute(aj("svg")),svgViewBox:e.getAttribute(aj("svgViewBox")),spinner:e.getAttribute(aj("spinner")),background:e.getAttribute(aj("background")),customClass:e.getAttribute(aj("customClass"))}):ij(e,t)},unmounted(e){var t;null===(t=e[oj])||void 0===t||t.instance.close(),e[oj]=null},_context:null},lj={install(e){ej._context=e._context,cj._context=e._context,e.directive("loading",cj),e.config.globalProperties.$loading=ej},directive:cj,service:ej};var uj=n("3ef4"),dj=n("c9a1");const pj=["primary","success","info","warning","error"],fj=Object(c["b"])({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:S["e"]},id:{type:String,default:""},message:{type:Object(c["c"])([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:Object(c["c"])(Function),default:()=>{}},onClose:{type:Object(c["c"])(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...pj,""],default:""},zIndex:Number,closeIcon:{type:S["e"],default:Fn["Close"]}}),hj={destroy:()=>!0},mj=["id"],vj=["textContent"],gj={key:0},_j=["innerHTML"];var bj=Object(u["defineComponent"])({name:"ElNotification",__name:"notification",props:fj,emits:hj,setup(e,{expose:t}){const n=e,{ns:r,zIndex:o}=Object(ki["b"])("notification"),{nextZIndex:a,currentZIndex:i}=o,s=Object(u["ref"])(!1);let c=void 0;const l=Object(u["computed"])(()=>{const e=n.type;return e&&S["c"][n.type]?r.m(e):""}),d=Object(u["computed"])(()=>n.type&&S["c"][n.type]||n.icon),p=Object(u["computed"])(()=>{var e;return aE()(e=n.position).call(e,"right")?"right":"left"}),f=Object(u["computed"])(()=>{var e;return Fr()(e=n.position).call(e,"top")?"top":"bottom"}),h=Object(u["computed"])(()=>{var e;return{[f.value]:n.offset+"px",zIndex:null!==(e=n.zIndex)&&void 0!==e?e:i.value}});function m(){n.duration>0&&({stop:c}=Object(_["useTimeoutFn"])(()=>{s.value&&g()},n.duration))}function v(){var e;null===(e=c)||void 0===e||e()}function g(){s.value=!1}function b(e){switch(Object(St["b"])(e)){case vt["a"].delete:case vt["a"].backspace:v();break;case vt["a"].esc:s.value&&g();break;default:m();break}}return Object(u["onMounted"])(()=>{m(),a(),s.value=!0}),Object(_["useEventListener"])(document,"keydown",b),t({visible:s,close:g}),(t,n)=>(Object(u["openBlock"])(),Object(u["createBlock"])(u["Transition"],{name:Object(u["unref"])(r).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:n[1]||(n[1]=e=>t.$emit("destroy")),persisted:""},{default:Object(u["withCtx"])(()=>[Object(u["withDirectives"])(Object(u["createElementVNode"])("div",{id:e.id,class:Object(u["normalizeClass"])([Object(u["unref"])(r).b(),e.customClass,p.value]),style:Object(u["normalizeStyle"])(h.value),role:"alert",onMouseenter:v,onMouseleave:m,onClick:n[0]||(n[0]=(...t)=>e.onClick&&e.onClick(...t))},[d.value?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])([Object(u["unref"])(r).e("icon"),l.value])},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(d.value)))]),_:1},8,["class"])):Object(u["createCommentVNode"])("v-if",!0),Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("group"))},[Object(u["createElementVNode"])("h2",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("title")),textContent:Object(u["toDisplayString"])(e.title)},null,10,vj),Object(u["withDirectives"])(Object(u["createElementVNode"])("div",{class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("content")),style:Object(u["normalizeStyle"])(e.title?void 0:{margin:0})},[Object(u["renderSlot"])(t.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(Object(u["openBlock"])(),Object(u["createElementBlock"])(u["Fragment"],{key:1},[Object(u["createCommentVNode"])(" Caution here, message could've been compromised, never use user's input as message "),Object(u["createElementVNode"])("p",{innerHTML:e.message},null,8,_j)],2112)):(Object(u["openBlock"])(),Object(u["createElementBlock"])("p",gj,Object(u["toDisplayString"])(e.message),1))])],6),[[u["vShow"],e.message]]),e.showClose?(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["unref"])(k["a"]),{key:0,class:Object(u["normalizeClass"])(Object(u["unref"])(r).e("closeBtn")),onClick:Object(u["withModifiers"])(g,["stop"])},{default:Object(u["withCtx"])(()=>[(Object(u["openBlock"])(),Object(u["createBlock"])(Object(u["resolveDynamicComponent"])(e.closeIcon)))]),_:1},8,["class"])):Object(u["createCommentVNode"])("v-if",!0)],2)],46,mj),[[u["vShow"],s.value]])]),_:3},8,["name","onBeforeLeave"]))}}),yj=bj;const Oj={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Mj=16;let kj=1;const Cj=function(e={},t){var n;if(!_["isClient"])return{close:()=>{}};(Object(te["isString"])(e)||Object(u["isVNode"])(e))&&(e={message:e});const r=e.position||"top-right";let o=e.offset||0;Y()(n=Oj[r]).call(n,({vm:e})=>{var t;o+=((null===(t=e.el)||void 0===t?void 0:t.offsetHeight)||0)+Mj}),o+=Mj;const i="notification_"+kj++,s=e.onClose,c={...e,offset:o,id:i,onClose:()=>{wj(i,r,s)}};let l=document.body;Object(h["b"])(e.appendTo)?l=e.appendTo:Object(te["isString"])(e.appendTo)&&(l=document.querySelector(e.appendTo)),Object(h["b"])(l)||(Object(a["a"])("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),l=document.body);const d=document.createElement("div"),p=Object(u["createVNode"])(yj,c,Object(te["isFunction"])(c.message)?c.message:Object(u["isVNode"])(c.message)?()=>c.message:null);return p.appContext=Object(h["g"])(t)?Cj._context:t,p.props.onDestroy=()=>{Object(u["render"])(null,d)},Object(u["render"])(p,d),Oj[r].push({vm:p}),l.appendChild(d.firstElementChild),{close:()=>{p.component.exposed.visible.value=!1}}};function wj(e,t,n){const r=Oj[t],o=ya()(r).call(r,({vm:t})=>{var n;return(null===(n=t.component)||void 0===n?void 0:n.props.id)===e});if(-1===o)return;const{vm:a}=r[o];if(!a)return;null===n||void 0===n||n(a);const i=a.el.offsetHeight,s=t.split("-")[0];U()(r).call(r,o,1);const c=r.length;if(!(c<1))for(let l=o;l<c;l++){const{el:e,component:t}=r[l].vm,n=ke()(e.style[s],10)-i-Mj;t.props.offset=n}}function Sj(){for(const e of Tm()(Oj))Y()(e).call(e,({vm:e})=>{e.component.exposed.visible.value=!1})}function Tj(e="top-right"){var t;let n=(null===(t=Oj[e][0])||void 0===t||null===(t=t.vm.component)||void 0===t||null===(t=t.props)||void 0===t?void 0:t.offset)||0;for(const{vm:o}of Oj[e]){var r;o.component.props.offset=n,n+=((null===(r=o.el)||void 0===r?void 0:r.offsetHeight)||0)+Mj}}Y()(pj).call(pj,e=>{Cj[e]=(t={},n)=>((Object(te["isString"])(t)||Object(u["isVNode"])(t))&&(t={message:t}),Cj({...t,type:e},n))}),Cj.closeAll=Sj,Cj.updateOffsets=Tj,Cj._context=null;const Ij=Object(r["c"])(Cj,"$notify");var Ej=[XE,lj,uj["a"],dj["a"],Ij,NE],jj=VE([...xE,...Ej]);jj.install,jj.version;var Dj=jj},"1fb7":function(e,t,n){"use strict";var r=n("c199");n("5145"),e.exports=r},"1fc1":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var o={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":e+" "+t(o[r],+e)}var r=e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}});return r}))},2005:function(e,t,n){"use strict";var r=n("75bd"),o=TypeError;e.exports=function(e){if(r(e))throw new o("ArrayBuffer is detached");return e}},"201b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20===0||e%100===0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});return t}))},"21b8":function(e,t,n){"use strict";var r=n("a5eb"),o=n("e9d9");r({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},"21e7":function(e,t,n){e.exports=n("04e6")},"223b":function(e,t,n){"use strict";var r=n("437b"),o=n("62a4"),a=Array.prototype;e.exports=function(e){var t=e.sort;return e===a||r(a,e)&&t===a.sort?o:t}},2296:function(e,t,n){"use strict";var r=n("4180");e.exports=function(e,t,n){return r.f(e,t,n)}},"22a1":function(e,t,n){"use strict";n("522d"),n("8176"),n("6f89"),n("d1ac"),n("ef09");var r=n("beea");e.exports=r.f("toStringTag")},"22a9":function(e,t,n){"use strict";var r=n("f94a");r("hasInstance")},"22f8":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}});return t}))},2303:function(e,t){},2364:function(e,t,n){"use strict";n("9103"),n("6f89"),n("3e47"),n("0e67");var r=n("beea");e.exports=r.f("iterator")},"23cb":function(e,t,n){"use strict";var r=n("5926"),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},"23e7":function(e,t,n){"use strict";var r=n("cfe9"),o=n("06cf").f,a=n("9112"),i=n("cb2d"),s=n("6374"),c=n("e893"),l=n("94ca");e.exports=function(e,t){var n,u,d,p,f,h,m=e.target,v=e.global,g=e.stat;if(u=v?r:g?r[m]||s(m,{}):r[m]&&r[m].prototype,u)for(d in t){if(f=t[d],e.dontCallGetSet?(h=o(u,d),p=h&&h.value):p=u[d],n=l(v?d:m+(g?".":"#")+d,e.forced),!n&&void 0!==p){if(typeof f==typeof p)continue;c(f,p)}(e.sham||p&&p.sham)&&a(f,"sham",!0),i(u,d,f,e)}}},2419:function(e,t,n){"use strict";n("9103"),n("6f89"),n("8c5a"),n("f5af"),n("7511"),n("57f3"),n("6efd"),n("84a1"),n("2bf0"),n("c6f1"),n("3e47");var r=n("764b");e.exports=r.Set},"241c":function(e,t,n){"use strict";var r=n("ca84"),o=n("7839"),a=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},2421:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"],o=e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return o}))},"249d":function(e,t,n){"use strict";var r=n("23e7"),o=n("41f6");o&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return o(this,arguments.length?arguments[0]:void 0,!0)}})},"24b4":function(e,t,n){"use strict";var r=n("8f95"),o=n("0e6f"),a=n("437b"),i=n("bc0d");n("dc95");var s=Array.prototype,c={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===s||a(s,e)&&t===s.forEach||o(c,r(e))?i:t}},2545:function(e,t,n){"use strict";n("c812");var r=n("764b");e.exports=r.Object.entries},2552:function(e,t,n){"use strict";var r=n("0e43");e.exports=r},2554:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){switch(n){case"m":return t?"jedna minuta":r?"jednu minutu":"jedne minute"}}function n(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",r;case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",r;case"h":return"jedan sat";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",r;case"dd":return r+=1===e?"dan":"dana",r;case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",r;case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",r}}var r=e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:t,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return r}))},"256d":function(e,t,n){e.exports=n("2dfd")},"25a6":function(e,t,n){"use strict";var r=n("a5eb"),o=n("dee0").some,a=n("9f61"),i=a("some");r({target:"Array",proto:!0,forced:!i},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"25de":function(e,t,n){"use strict";e.exports=n("c1dc")},2611:function(e,t,n){"use strict";var r=n("a5eb"),o=n("9691");r({target:"Symbol",stat:!0},{isRegisteredSymbol:o})},2616:function(e,t,n){"use strict";var r=n("0363"),o=n("7463"),a=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[a]===e)}},"266f":function(e,t,n){"use strict";var r=n("f94a");r("patternMatch")},"26aa":function(e,t,n){"use strict";n("fc93");var r=n("c18e");e.exports=r("Array","concat")},"26f9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function r(e,t,n,r){return t?a(n)[0]:r?a(n)[1]:a(n)[2]}function o(e){return e%10===0||e>10&&e<20}function a(e){return t[e].split("_")}function i(e,t,n,i){var s=e+" ";return 1===e?s+r(e,t,n[0],i):t?s+(o(e)?a(n)[1]:a(n)[0]):i?s+a(n)[1]:s+(o(e)?a(n)[1]:a(n)[2])}var s=e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});return s}))},2714:function(e,t,n){(function(t){var r="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&o&&"function"===typeof o.get?o.get:null,i=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"===typeof c.get?c.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype,p=d?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype,h=f?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,v=m?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,_=Object.prototype.toString,b=Function.prototype.toString,y=String.prototype.match,O=String.prototype.slice,M=String.prototype.replace,k=String.prototype.toUpperCase,C=String.prototype.toLowerCase,w=RegExp.prototype.test,S=Array.prototype.concat,T=Array.prototype.join,I=Array.prototype.slice,E=Math.floor,j="function"===typeof BigInt?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,L="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"===typeof Symbol&&"object"===typeof Symbol.iterator,N="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A||"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,x=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-E(-e):E(e);if(r!==e){var o=String(r),a=O.call(t,o.length+1);return M.call(o,n,"$&_")+"."+M.call(M.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return M.call(t,n,"$&_")}var U=n(1),V=U.custom,B=Z(V)?V:null,F={__proto__:null,double:'"',single:"'"},G={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function H(e,t,n){var r=n.quoteStyle||t,o=F[r];return o+e+o}function Y(e){return M.call(String(e),/"/g,"&quot;")}function z(e){return!N||!("object"===typeof e&&(N in e||"undefined"!==typeof e[N]))}function q(e){return"[object Array]"===re(e)&&z(e)}function W(e){return"[object Date]"===re(e)&&z(e)}function K(e){return"[object RegExp]"===re(e)&&z(e)}function $(e){return"[object Error]"===re(e)&&z(e)}function J(e){return"[object String]"===re(e)&&z(e)}function X(e){return"[object Number]"===re(e)&&z(e)}function Q(e){return"[object Boolean]"===re(e)&&z(e)}function Z(e){if(A)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!L)return!1;try{return L.call(e),!0}catch(t){}return!1}function ee(e){if(!e||"object"!==typeof e||!j)return!1;try{return j.call(e),!0}catch(t){}return!1}e.exports=function e(n,r,o,s){var c=r||{};if(ne(c,"quoteStyle")&&!ne(F,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ne(c,"maxStringLength")&&("number"===typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var d=!ne(c,"customInspect")||c.customInspect;if("boolean"!==typeof d&&"symbol"!==d)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ne(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ne(c,"numericSeparator")&&"boolean"!==typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=c.numericSeparator;if("undefined"===typeof n)return"undefined";if(null===n)return"null";if("boolean"===typeof n)return n?"true":"false";if("string"===typeof n)return pe(n,c);if("number"===typeof n){if(0===n)return 1/0/n>0?"0":"-0";var f=String(n);return p?P(n,f):f}if("bigint"===typeof n){var h=String(n)+"n";return p?P(n,h):h}var m="undefined"===typeof c.depth?5:c.depth;if("undefined"===typeof o&&(o=0),o>=m&&m>0&&"object"===typeof n)return q(n)?"[Array]":"[Object]";var v=_e(c,o);if("undefined"===typeof s)s=[];else if(ae(s,n)>=0)return"[Circular]";function _(t,n,r){if(n&&(s=I.call(s),s.push(n)),r){var a={depth:c.depth};return ne(c,"quoteStyle")&&(a.quoteStyle=c.quoteStyle),e(t,a,o+1,s)}return e(t,c,o+1,s)}if("function"===typeof n&&!K(n)){var b=oe(n),y=ye(n,_);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(y.length>0?" { "+T.call(y,", ")+" }":"")}if(Z(n)){var k=A?M.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):L.call(n);return"object"!==typeof n||A?k:he(k)}if(de(n)){for(var w="<"+C.call(String(n.nodeName)),E=n.attributes||[],D=0;D<E.length;D++)w+=" "+E[D].name+"="+H(Y(E[D].value),"double",c);return w+=">",n.childNodes&&n.childNodes.length&&(w+="..."),w+="</"+C.call(String(n.nodeName))+">",w}if(q(n)){if(0===n.length)return"[]";var V=ye(n,_);return v&&!ge(V)?"["+be(V,v)+"]":"[ "+T.call(V,", ")+" ]"}if($(n)){var G=ye(n,_);return"cause"in Error.prototype||!("cause"in n)||R.call(n,"cause")?0===G.length?"["+String(n)+"]":"{ ["+String(n)+"] "+T.call(G,", ")+" }":"{ ["+String(n)+"] "+T.call(S.call("[cause]: "+_(n.cause),G),", ")+" }"}if("object"===typeof n&&d){if(B&&"function"===typeof n[B]&&U)return U(n,{depth:m-o});if("symbol"!==d&&"function"===typeof n.inspect)return n.inspect()}if(ie(n)){var z=[];return i&&i.call(n,(function(e,t){z.push(_(t,n,!0)+" => "+_(e,n))})),ve("Map",a.call(n),z,v)}if(le(n)){var te=[];return u&&u.call(n,(function(e){te.push(_(e,n))})),ve("Set",l.call(n),te,v)}if(se(n))return me("WeakMap");if(ue(n))return me("WeakSet");if(ce(n))return me("WeakRef");if(X(n))return he(_(Number(n)));if(ee(n))return he(_(j.call(n)));if(Q(n))return he(g.call(n));if(J(n))return he(_(String(n)));if("undefined"!==typeof window&&n===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&n===globalThis||"undefined"!==typeof t&&n===t)return"{ [object globalThis] }";if(!W(n)&&!K(n)){var fe=ye(n,_),Oe=x?x(n)===Object.prototype:n instanceof Object||n.constructor===Object,Me=n instanceof Object?"":"null prototype",ke=!Oe&&N&&Object(n)===n&&N in n?O.call(re(n),8,-1):Me?"Object":"",Ce=Oe||"function"!==typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"",we=Ce+(ke||Me?"["+T.call(S.call([],ke||[],Me||[]),": ")+"] ":"");return 0===fe.length?we+"{}":v?we+"{"+be(fe,v)+"}":we+"{ "+T.call(fe,", ")+" }"}return String(n)};var te=Object.prototype.hasOwnProperty||function(e){return e in this};function ne(e,t){return te.call(e,t)}function re(e){return _.call(e)}function oe(e){if(e.name)return e.name;var t=y.call(b.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ae(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function ie(e){if(!a||!e||"object"!==typeof e)return!1;try{a.call(e);try{l.call(e)}catch(t){return!0}return e instanceof Map}catch(n){}return!1}function se(e){if(!p||!e||"object"!==typeof e)return!1;try{p.call(e,p);try{h.call(e,h)}catch(t){return!0}return e instanceof WeakMap}catch(n){}return!1}function ce(e){if(!v||!e||"object"!==typeof e)return!1;try{return v.call(e),!0}catch(t){}return!1}function le(e){if(!l||!e||"object"!==typeof e)return!1;try{l.call(e);try{a.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}function ue(e){if(!h||!e||"object"!==typeof e)return!1;try{h.call(e,h);try{p.call(e,p)}catch(t){return!0}return e instanceof WeakSet}catch(n){}return!1}function de(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function pe(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return pe(O.call(e,0,t.maxStringLength),t)+r}var o=G[t.quoteStyle||"single"];o.lastIndex=0;var a=M.call(M.call(e,o,"\\$1"),/[\x00-\x1f]/g,fe);return H(a,"single",t)}function fe(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+k.call(t.toString(16))}function he(e){return"Object("+e+")"}function me(e){return e+" { ? }"}function ve(e,t,n,r){var o=r?be(n,r):T.call(n,", ");return e+" ("+t+") {"+o+"}"}function ge(e){for(var t=0;t<e.length;t++)if(ae(e[t],"\n")>=0)return!1;return!0}function _e(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=T.call(Array(e.indent+1)," ")}return{base:n,prev:T.call(Array(t+1),n)}}function be(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+T.call(e,","+n)+"\n"+t.prev}function ye(e,t){var n=q(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=ne(e,o)?t(e[o],e):""}var a,i="function"===typeof D?D(e):[];if(A){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var c in e)ne(e,c)&&(n&&String(Number(c))===c&&c<e.length||A&&a["$"+c]instanceof Symbol||(w.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"===typeof D)for(var l=0;l<i.length;l++)R.call(e,i[l])&&r.push("["+t(i[l])+"]: "+t(e[i[l]],e));return r}}).call(this,n("c8ba"))},"274e":function(e,t,n){"use strict";var r=n("f94a");r("split")},"27ac":function(e,t,n){"use strict";var r=n("f4c9");e.exports=r},"27b6":function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c}));var r=n("3b4c"),o=n.n(r),a=n("d5eb"),i=n("0898"),s=n("7a23");const c=Object(i["a"])({type:String,values:a["a"],required:!1}),l=o()("size"),u=()=>{const e=Object(s["inject"])(l,{});return Object(s["computed"])(()=>Object(s["unref"])(e.size)||"")}},"27bd":function(e,t,n){"use strict";n("a551");var r=n("764b"),o=r.Object;e.exports=function(e){return o.getOwnPropertyNames(e)}},"27d1":function(e,t,n){"use strict";var r=n("bc59");e.exports=r},2834:function(e,t,n){"use strict";var r=n("ebb5"),o=n("e330"),a=n("59ed"),i=n("dfb9"),s=r.aTypedArray,c=r.getTypedArrayConstructor,l=r.exportTypedArrayMethod,u=o(r.TypedArrayPrototype.sort);l("toSorted",(function(e){void 0!==e&&a(e);var t=s(this),n=i(c(t),t);return u(n,e)}))},2874:function(e,t,n){"use strict";var r=n("d63b"),o=n("4180").f,a=n("0273"),i=n("0e6f"),s=n("1c0a"),c=n("0363"),l=c("toStringTag");e.exports=function(e,t,n,c){var u=n?e:e&&e.prototype;u&&(i(u,l)||o(u,l,{configurable:!0,value:t}),c&&!r&&a(u,"toString",s))}},2921:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},"293c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}},n=e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"298b":function(e,t,n){e.exports=n("7c74")},"2a04":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e="week",t="year";return function(n,r,o){var a=r.prototype;a.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var a=o(this).startOf(t).add(1,t).date(r),i=o(this).endOf(e);if(a.isBefore(i))return 1}var s=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(s,e,!0);return c<0?o(this).startOf("week").week():Math.ceil(c)},a.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}))},"2a07":function(e,t,n){"use strict";var r=n("cfe9"),o=n("9adc");e.exports=function(e){if(o){try{return r.process.getBuiltinModule(e)}catch(t){}try{return Function('return require("'+e+'")')()}catch(t){}}}},"2a0a":function(e,t,n){"use strict";n("b309")},"2a44":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("0898"),o=n("9215"),a=n("304f"),i=n("89d4"),s=n("7a23");const c=Object(r["b"])({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:Object(r["c"])([String,Array,Object])},zIndex:{type:Object(r["c"])([String,Number])}}),l={click:e=>e instanceof MouseEvent},u="overlay";var d=Object(s["defineComponent"])({name:"ElOverlay",props:c,emits:l,setup(e,{slots:t,emit:n}){const r=Object(a["d"])(u),c=e=>{n("click",e)},{onClick:l,onMousedown:d,onMouseup:p}=Object(i["a"])(e.customMaskEvent?void 0:c);return()=>e.mask?Object(s["createVNode"])("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:d,onMouseup:p},[Object(s["renderSlot"])(t,"default")],o["a"].STYLE|o["a"].CLASS|o["a"].PROPS,["onClick","onMouseup","onMousedown"]):Object(s["h"])("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Object(s["renderSlot"])(t,"default")])}})},"2a62":function(e,t,n){"use strict";var r=n("c65b"),o=n("825a"),a=n("dc4a");e.exports=function(e,t,n){var i,s;o(e);try{if(i=a(e,"return"),!i){if("throw"===t)throw n;return n}i=r(i,e)}catch(c){s=!0,i=c}if("throw"===t)throw n;if(s)throw i;return o(i),n}},"2aa9":function(e,t,n){"use strict";var r=n("6c3d");if(r)try{r([],"length")}catch(o){r=null}e.exports=r},"2b0b":function(e,t,n){e.exports=n("6ebd")},"2b1b":function(e,t,n){"use strict";var r=n("04ff");e.exports=r},"2b58":function(e,t,n){e.exports=n("2d0f1")},"2b99":function(e,t,n){"use strict";var r=n("2d0f");e.exports=r},"2ba4":function(e,t,n){"use strict";var r=n("40d5"),o=Function.prototype,a=o.apply,i=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?i.bind(a):function(){return i.apply(a,arguments)})},"2baa":function(e,t,n){"use strict";e.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(r){return!0}}},"2bf0":function(e,t,n){"use strict";var r=n("a5eb"),o=n("42f6"),a=n("ea55"),i=n("1471"),s=!i("symmetricDifference")||!a("symmetricDifference");r({target:"Set",proto:!0,real:!0,forced:s},{symmetricDifference:o})},"2bfb":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return t}))},"2c0f":function(e,t,n){"use strict";var r=n("3eba"),o=r.navigator,a=o&&o.userAgent;e.exports=a?String(a):""},"2c28":function(e,t,n){"use strict";(function(e){n.d(t,"onClickOutside",(function(){return c})),n.d(t,"onLongPress",(function(){return u})),n.d(t,"useElementBounding",(function(){return _}));var r=n("3654"),o=n("f890");function a(e){var t;const n=Object(o["unref"])(e);return null!=(t=null==n?void 0:n.$el)?t:n}const i=r["isClient"]?window:void 0;r["isClient"]&&window.document,r["isClient"]&&window.navigator,r["isClient"]&&window.location;function s(...e){let t,n,s,c;if(Object(r["isString"])(e[0])?([n,s,c]=e,t=i):[t,n,s,c]=e,!t)return r["noop"];let l=r["noop"];const u=Object(o["watch"])(()=>a(t),e=>{l(),e&&(e.addEventListener(n,s,c),l=()=>{e.removeEventListener(n,s,c),l=r["noop"]})},{immediate:!0,flush:"post"}),d=()=>{u(),l()};return Object(r["tryOnScopeDispose"])(d),d}function c(e,t,n={}){const{window:r=i,ignore:c,capture:l=!0,detectIframe:u=!1}=n;if(!r)return;const d=Object(o["ref"])(!0);let p;const f=n=>{r.clearTimeout(p);const o=a(e),i=n.composedPath();o&&o!==n.target&&!i.includes(o)&&d.value&&(c&&c.length>0&&c.some(e=>{const t=a(e);return t&&(n.target===t||i.includes(t))})||t(n))},h=[s(r,"click",f,{passive:!0,capture:l}),s(r,"pointerdown",t=>{const n=a(e);d.value=!!n&&!t.composedPath().includes(n)},{passive:!0}),s(r,"pointerup",e=>{if(0===e.button){const t=e.composedPath();e.composedPath=()=>t,p=r.setTimeout(()=>f(e),50)}},{passive:!0}),u&&s(r,"blur",n=>{var r;const o=a(e);"IFRAME"!==(null==(r=document.activeElement)?void 0:r.tagName)||(null==o?void 0:o.contains(document.activeElement))||t(n)})].filter(Boolean),m=()=>h.forEach(e=>e());return m}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const l=500;function u(e,t,n){var r,i;const c=Object(o["computed"])(()=>a(e));let u=null;function d(){null!=u&&(clearTimeout(u),u=null)}function p(e){var r,o,a,i;(null==(r=null==n?void 0:n.modifiers)?void 0:r.self)&&e.target!==c.value||(d(),(null==(o=null==n?void 0:n.modifiers)?void 0:o.prevent)&&e.preventDefault(),(null==(a=null==n?void 0:n.modifiers)?void 0:a.stop)&&e.stopPropagation(),u=setTimeout(()=>t(e),null!=(i=null==n?void 0:n.delay)?i:l))}const f={capture:null==(r=null==n?void 0:n.modifiers)?void 0:r.capture,once:null==(i=null==n?void 0:n.modifiers)?void 0:i.once};s(c,"pointerdown",p,f),s(c,"pointerup",d,f),s(c,"pointerleave",d,f)}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const d="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{},p="__vueuse_ssr_handlers__";d[p]=d[p]||{};d[p];Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var f=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,v=(e,t)=>{var n={};for(var r in e)h.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&f)for(var r of f(e))t.indexOf(r)<0&&m.call(e,r)&&(n[r]=e[r]);return n};function g(e,t,n={}){const s=n,{window:c=i}=s,l=v(s,["window"]);let u;const d=c&&"ResizeObserver"in c,p=()=>{u&&(u.disconnect(),u=void 0)},f=Object(o["watch"])(()=>a(e),e=>{p(),d&&c&&e&&(u=new ResizeObserver(t),u.observe(e,l))},{immediate:!0,flush:"post"}),h=()=>{p(),f()};return Object(r["tryOnScopeDispose"])(h),{isSupported:d,stop:h}}function _(e,t={}){const{reset:n=!0,windowResize:i=!0,windowScroll:c=!0,immediate:l=!0}=t,u=Object(o["ref"])(0),d=Object(o["ref"])(0),p=Object(o["ref"])(0),f=Object(o["ref"])(0),h=Object(o["ref"])(0),m=Object(o["ref"])(0),v=Object(o["ref"])(0),_=Object(o["ref"])(0);function b(){const t=a(e);if(!t)return void(n&&(u.value=0,d.value=0,p.value=0,f.value=0,h.value=0,m.value=0,v.value=0,_.value=0));const r=t.getBoundingClientRect();u.value=r.height,d.value=r.bottom,p.value=r.left,f.value=r.right,h.value=r.top,m.value=r.width,v.value=r.x,_.value=r.y}return g(e,b),Object(o["watch"])(()=>a(e),e=>!e&&b()),c&&s("scroll",b,{passive:!0}),i&&s("resize",b,{passive:!0}),Object(r["tryOnMounted"])(()=>{l&&b()}),{height:u,bottom:d,left:p,right:f,top:h,width:m,x:v,y:_,update:b}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;new Map;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var b;(function(e){e["UP"]="UP",e["RIGHT"]="RIGHT",e["DOWN"]="DOWN",e["LEFT"]="LEFT",e["NONE"]="NONE"})(b||(b={}));Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;r["identity"]}).call(this,n("c8ba"))},"2c34":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("1ad4");const o=r["c"].create({name:"text",group:"inline"})},"2c66":function(e,t,n){"use strict";var r=n("83ab"),o=n("edd0"),a=n("75bd"),i=ArrayBuffer.prototype;r&&!("detached"in i)&&o(i,"detached",{configurable:!0,get:function(){return a(this)}})},"2c6c":function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"2c75":function(e,t,n){"use strict";var r=n("7168"),o=n("c978");e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},"2cf1":function(e,t,n){"use strict";var r=n("c7d2"),o=n("8c12"),a=n("1875"),i=RangeError,s=Math.floor;e.exports=function(e){var t=o(a(this)),n="",c=r(e);if(c<0||c===1/0)throw new i("Wrong number of repetitions");for(;c>0;(c=s(c/2))&&(t+=t))c%2&&(n+=t);return n}},"2d0f":function(e,t,n){"use strict";n("932a");var r=n("764b");e.exports=r.Reflect.deleteProperty},"2d0f1":function(e,t,n){"use strict";var r=n("dce2");e.exports=r},"2d80":function(e,t,n){e.exports=n("0e43")},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,o,a){var i=new Error(e);return r(i,t,n,o,a)}},"2d9a":function(e,t,n){"use strict";var r=n("ac0c");e.exports=r},"2dfd":function(e,t,n){"use strict";var r=n("1ba9");e.exports=r},"2e10":function(e,t,n){e.exports=n("b1a6")},"2e13":function(e,t,n){"use strict";var r=n("6f8d");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2e85":function(e,t,n){"use strict";var r=n("f94a");r("replace")},"2e8c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}});return t}))},"2ec7":function(e,t,n){"use strict";var r=n("716a");n("5145"),e.exports=r},"2ef0":function(e,t,n){(function(e,r){var o;
/**
* @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 a,i="4.18.1",s=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",d="Invalid `imports` option passed into `_.template`",p="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",m=1,v=2,g=4,_=1,b=2,y=1,O=2,M=4,k=8,C=16,w=32,S=64,T=128,I=256,E=512,j=30,D="...",L=800,A=16,N=1,R=2,x=3,P=1/0,U=9007199254740991,V=17976931348623157e292,B=NaN,F=4294967295,G=F-1,H=F>>>1,Y=[["ary",T],["bind",y],["bindKey",O],["curry",k],["curryRight",C],["flip",E],["partial",w],["partialRight",S],["rearg",I]],z="[object Arguments]",q="[object Array]",W="[object AsyncFunction]",K="[object Boolean]",$="[object Date]",J="[object DOMException]",X="[object Error]",Q="[object Function]",Z="[object GeneratorFunction]",ee="[object Map]",te="[object Number]",ne="[object Null]",re="[object Object]",oe="[object Promise]",ae="[object Proxy]",ie="[object RegExp]",se="[object Set]",ce="[object String]",le="[object Symbol]",ue="[object Undefined]",de="[object WeakMap]",pe="[object WeakSet]",fe="[object ArrayBuffer]",he="[object DataView]",me="[object Float32Array]",ve="[object Float64Array]",ge="[object Int8Array]",_e="[object Int16Array]",be="[object Int32Array]",ye="[object Uint8Array]",Oe="[object Uint8ClampedArray]",Me="[object Uint16Array]",ke="[object Uint32Array]",Ce=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Te=/&(?:amp|lt|gt|quot|#39);/g,Ie=/[&<>"']/g,Ee=RegExp(Te.source),je=RegExp(Ie.source),De=/<%-([\s\S]+?)%>/g,Le=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Re=/^\w*$/,xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Ue=RegExp(Pe.source),Ve=/^\s+/,Be=/\s/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ge=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,Ye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ze=/[()=,{}\[\]\/\s]/,qe=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,$e=/^[-+]0x[0-9a-f]+$/i,Je=/^0b[01]+$/i,Xe=/^\[object .+?Constructor\]$/,Qe=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\d*)$/,et=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tt=/($^)/,nt=/['\n\r\u2028\u2029\\]/g,rt="\\ud800-\\udfff",ot="\\u0300-\\u036f",at="\\ufe20-\\ufe2f",it="\\u20d0-\\u20ff",st=ot+at+it,ct="\\u2700-\\u27bf",lt="a-z\\xdf-\\xf6\\xf8-\\xff",ut="\\xac\\xb1\\xd7\\xf7",dt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pt="\\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",mt="\\ufe0e\\ufe0f",vt=ut+dt+pt+ft,gt="[']",_t="["+rt+"]",bt="["+vt+"]",yt="["+st+"]",Ot="\\d+",Mt="["+ct+"]",kt="["+lt+"]",Ct="[^"+rt+vt+Ot+ct+lt+ht+"]",wt="\\ud83c[\\udffb-\\udfff]",St="(?:"+yt+"|"+wt+")",Tt="[^"+rt+"]",It="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",jt="["+ht+"]",Dt="\\u200d",Lt="(?:"+kt+"|"+Ct+")",At="(?:"+jt+"|"+Ct+")",Nt="(?:"+gt+"(?:d|ll|m|re|s|t|ve))?",Rt="(?:"+gt+"(?:D|LL|M|RE|S|T|VE))?",xt=St+"?",Pt="["+mt+"]?",Ut="(?:"+Dt+"(?:"+[Tt,It,Et].join("|")+")"+Pt+xt+")*",Vt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Bt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ft=Pt+xt+Ut,Gt="(?:"+[Mt,It,Et].join("|")+")"+Ft,Ht="(?:"+[Tt+yt+"?",yt,It,Et,_t].join("|")+")",Yt=RegExp(gt,"g"),zt=RegExp(yt,"g"),qt=RegExp(wt+"(?="+wt+")|"+Ht+Ft,"g"),Wt=RegExp([jt+"?"+kt+"+"+Nt+"(?="+[bt,jt,"$"].join("|")+")",At+"+"+Rt+"(?="+[bt,jt+Lt,"$"].join("|")+")",jt+"?"+Lt+"+"+Nt,jt+"+"+Rt,Bt,Vt,Ot,Gt].join("|"),"g"),Kt=RegExp("["+Dt+rt+st+mt+"]"),$t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jt=["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"],Xt=-1,Qt={};Qt[me]=Qt[ve]=Qt[ge]=Qt[_e]=Qt[be]=Qt[ye]=Qt[Oe]=Qt[Me]=Qt[ke]=!0,Qt[z]=Qt[q]=Qt[fe]=Qt[K]=Qt[he]=Qt[$]=Qt[X]=Qt[Q]=Qt[ee]=Qt[te]=Qt[re]=Qt[ie]=Qt[se]=Qt[ce]=Qt[de]=!1;var Zt={};Zt[z]=Zt[q]=Zt[fe]=Zt[he]=Zt[K]=Zt[$]=Zt[me]=Zt[ve]=Zt[ge]=Zt[_e]=Zt[be]=Zt[ee]=Zt[te]=Zt[re]=Zt[ie]=Zt[se]=Zt[ce]=Zt[le]=Zt[ye]=Zt[Oe]=Zt[Me]=Zt[ke]=!0,Zt[X]=Zt[Q]=Zt[de]=!1;var en={"À":"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"},tn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},nn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},rn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},on=parseFloat,an=parseInt,sn="object"==typeof e&&e&&e.Object===Object&&e,cn="object"==typeof self&&self&&self.Object===Object&&self,ln=sn||cn||Function("return this")(),un=t&&!t.nodeType&&t,dn=un&&"object"==typeof r&&r&&!r.nodeType&&r,pn=dn&&dn.exports===un,fn=pn&&sn.process,hn=function(){try{var e=dn&&dn.require&&dn.require("util").types;return e||fn&&fn.binding&&fn.binding("util")}catch(t){}}(),mn=hn&&hn.isArrayBuffer,vn=hn&&hn.isDate,gn=hn&&hn.isMap,_n=hn&&hn.isRegExp,bn=hn&&hn.isSet,yn=hn&&hn.isTypedArray;function On(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 o=-1,a=null==e?0:e.length;while(++o<a){var i=e[o];t(r,i,n(i),e)}return r}function kn(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 Cn(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function wn(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 Sn(e,t){var n=-1,r=null==e?0:e.length,o=0,a=[];while(++n<r){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}function Tn(e,t){var n=null==e?0:e.length;return!!n&&Vn(e,t,0)>-1}function In(e,t,n){var r=-1,o=null==e?0:e.length;while(++r<o)if(n(t,e[r]))return!0;return!1}function En(e,t){var n=-1,r=null==e?0:e.length,o=Array(r);while(++n<r)o[n]=t(e[n],n,e);return o}function jn(e,t){var n=-1,r=t.length,o=e.length;while(++n<r)e[o+n]=t[n];return e}function Dn(e,t,n,r){var o=-1,a=null==e?0:e.length;r&&a&&(n=e[++o]);while(++o<a)n=t(n,e[o],o,e);return n}function Ln(e,t,n,r){var o=null==e?0:e.length;r&&o&&(n=e[--o]);while(o--)n=t(n,e[o],o,e);return n}function An(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 Nn=Hn("length");function Rn(e){return e.split("")}function xn(e){return e.match(Ye)||[]}function Pn(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Un(e,t,n,r){var o=e.length,a=n+(r?1:-1);while(r?a--:++a<o)if(t(e[a],a,e))return a;return-1}function Vn(e,t,n){return t===t?mr(e,t,n):Un(e,Fn,n)}function Bn(e,t,n,r){var o=n-1,a=e.length;while(++o<a)if(r(e[o],t))return o;return-1}function Fn(e){return e!==e}function Gn(e,t){var n=null==e?0:e.length;return n?Wn(e,t)/n:B}function Hn(e){return function(t){return null==t?a:t[e]}}function Yn(e){return function(t){return null==e?a:e[t]}}function zn(e,t,n,r,o){return o(e,(function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)})),n}function qn(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Wn(e,t){var n,r=-1,o=e.length;while(++r<o){var i=t(e[r]);i!==a&&(n=n===a?i:n+i)}return n}function Kn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function $n(e,t){return En(t,(function(t){return[t,e[t]]}))}function Jn(e){return e?e.slice(0,br(e)+1).replace(Ve,""):e}function Xn(e){return function(t){return e(t)}}function Qn(e,t){return En(t,(function(t){return e[t]}))}function Zn(e,t){return e.has(t)}function er(e,t){var n=-1,r=e.length;while(++n<r&&Vn(t,e[n],0)>-1);return n}function tr(e,t){var n=e.length;while(n--&&Vn(t,e[n],0)>-1);return n}function nr(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var rr=Yn(en),or=Yn(tn);function ar(e){return"\\"+rn[e]}function ir(e,t){return null==e?a:e[t]}function sr(e){return Kt.test(e)}function cr(e){return $t.test(e)}function lr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function ur(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function dr(e,t){return function(n){return e(t(n))}}function pr(e,t){var n=-1,r=e.length,o=0,a=[];while(++n<r){var i=e[n];i!==t&&i!==h||(e[n]=h,a[o++]=n)}return a}function fr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function mr(e,t,n){var r=n-1,o=e.length;while(++r<o)if(e[r]===t)return r;return-1}function vr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function gr(e){return sr(e)?Or(e):Nn(e)}function _r(e){return sr(e)?Mr(e):Rn(e)}function br(e){var t=e.length;while(t--&&Be.test(e.charAt(t)));return t}var yr=Yn(nn);function Or(e){var t=qt.lastIndex=0;while(qt.test(e))++t;return t}function Mr(e){return e.match(qt)||[]}function kr(e){return e.match(Wt)||[]}var Cr=function e(t){t=null==t?ln:wr.defaults(ln.Object(),t,wr.pick(ln,Jt));var n=t.Array,r=t.Date,o=t.Error,Be=t.Function,Ye=t.Math,rt=t.Object,ot=t.RegExp,at=t.String,it=t.TypeError,st=n.prototype,ct=Be.prototype,lt=rt.prototype,ut=t["__core-js_shared__"],dt=ct.toString,pt=lt.hasOwnProperty,ft=0,ht=function(){var e=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),mt=lt.toString,vt=dt.call(rt),gt=ln._,_t=ot("^"+dt.call(pt).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=pn?t.Buffer:a,yt=t.Symbol,Ot=t.Uint8Array,Mt=bt?bt.allocUnsafe:a,kt=dr(rt.getPrototypeOf,rt),Ct=rt.create,wt=lt.propertyIsEnumerable,St=st.splice,Tt=yt?yt.isConcatSpreadable:a,It=yt?yt.iterator:a,Et=yt?yt.toStringTag:a,jt=function(){try{var e=Ki(rt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Dt=t.clearTimeout!==ln.clearTimeout&&t.clearTimeout,Lt=r&&r.now!==ln.Date.now&&r.now,At=t.setTimeout!==ln.setTimeout&&t.setTimeout,Nt=Ye.ceil,Rt=Ye.floor,xt=rt.getOwnPropertySymbols,Pt=bt?bt.isBuffer:a,Ut=t.isFinite,Vt=st.join,Bt=dr(rt.keys,rt),Ft=Ye.max,Gt=Ye.min,Ht=r.now,qt=t.parseInt,Wt=Ye.random,Kt=st.reverse,$t=Ki(t,"DataView"),en=Ki(t,"Map"),tn=Ki(t,"Promise"),nn=Ki(t,"Set"),rn=Ki(t,"WeakMap"),sn=Ki(rt,"create"),cn=rn&&new rn,un={},dn=As($t),fn=As(en),hn=As(tn),Nn=As(nn),Rn=As(rn),Yn=yt?yt.prototype:a,mr=Yn?Yn.valueOf:a,Or=Yn?Yn.toString:a;function Mr(e){if(Su(e)&&!lu(e)&&!(e instanceof Ir)){if(e instanceof Tr)return e;if(pt.call(e,"__wrapped__"))return Rs(e)}return new Tr(e)}var Cr=function(){function e(){}return function(t){if(!wu(t))return{};if(Ct)return Ct(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function Sr(){}function Tr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Ir(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function Er(){var e=new Ir(this.__wrapped__);return e.__actions__=ai(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ai(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ai(this.__views__),e}function jr(){if(this.__filtered__){var e=new Ir(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Dr(){var e=this.__wrapped__.value(),t=this.__dir__,n=lu(e),r=t<0,o=n?e.length:0,a=Zi(0,o,this.__views__),i=a.start,s=a.end,c=s-i,l=r?s:i-1,u=this.__iteratees__,d=u.length,p=0,f=Gt(c,this.__takeCount__);if(!n||!r&&o==c&&f==c)return Ba(e,this.__actions__);var h=[];e:while(c--&&p<f){l+=t;var m=-1,v=e[l];while(++m<d){var g=u[m],_=g.iteratee,b=g.type,y=_(v);if(b==R)v=y;else if(!y){if(b==N)continue e;break e}}h[p++]=v}return h}function Lr(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 Ar(){this.__data__=sn?sn(null):{},this.size=0}function Nr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Rr(e){var t=this.__data__;if(sn){var n=t[e];return n===p?a:n}return pt.call(t,e)?t[e]:a}function xr(e){var t=this.__data__;return sn?t[e]!==a:pt.call(t,e)}function Pr(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=sn&&t===a?p:t,this}function Ur(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 Vr(){this.__data__=[],this.size=0}function Br(e){var t=this.__data__,n=po(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():St.call(t,n,1),--this.size,!0}function Fr(e){var t=this.__data__,n=po(t,e);return n<0?a:t[n][1]}function Gr(e){return po(this.__data__,e)>-1}function Hr(e,t){var n=this.__data__,r=po(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Yr(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 zr(){this.size=0,this.__data__={hash:new Lr,map:new(en||Ur),string:new Lr}}function qr(e){var t=qi(this,e)["delete"](e);return this.size-=t?1:0,t}function Wr(e){return qi(this,e).get(e)}function Kr(e){return qi(this,e).has(e)}function $r(e,t){var n=qi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Jr(e){var t=-1,n=null==e?0:e.length;this.__data__=new Yr;while(++t<n)this.add(e[t])}function Xr(e){return this.__data__.set(e,p),this}function Qr(e){return this.__data__.has(e)}function Zr(e){var t=this.__data__=new Ur(e);this.size=t.size}function eo(){this.__data__=new Ur,this.size=0}function to(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function no(e){return this.__data__.get(e)}function ro(e){return this.__data__.has(e)}function oo(e,t){var n=this.__data__;if(n instanceof Ur){var r=n.__data__;if(!en||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yr(r)}return n.set(e,t),this.size=n.size,this}function ao(e,t){var n=lu(e),r=!n&&cu(e),o=!n&&!r&&hu(e),a=!n&&!r&&!o&&Fu(e),i=n||r||o||a,s=i?Kn(e.length,at):[],c=s.length;for(var l in e)!t&&!pt.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ss(l,c))||s.push(l);return s}function io(e){var t=e.length;return t?e[ba(0,t-1)]:a}function so(e,t){return js(ai(e),_o(t,0,e.length))}function co(e){return js(ai(e))}function lo(e,t,n){(n!==a&&!au(e[t],n)||n===a&&!(t in e))&&vo(e,t,n)}function uo(e,t,n){var r=e[t];pt.call(e,t)&&au(r,n)&&(n!==a||t in e)||vo(e,t,n)}function po(e,t){var n=e.length;while(n--)if(au(e[n][0],t))return n;return-1}function fo(e,t,n,r){return Co(e,(function(e,o,a){t(r,e,n(e),a)})),r}function ho(e,t){return e&&ii(t,kd(t),e)}function mo(e,t){return e&&ii(t,Cd(t),e)}function vo(e,t,n){"__proto__"==t&&jt?jt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function go(e,t){var r=-1,o=t.length,i=n(o),s=null==e;while(++r<o)i[r]=s?a:gd(e,t[r]);return i}function _o(e,t,n){return e===e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e}function bo(e,t,n,r,o,i){var s,c=t&m,l=t&v,u=t&g;if(n&&(s=o?n(e,r,o,i):n(e)),s!==a)return s;if(!wu(e))return e;var d=lu(e);if(d){if(s=ns(e),!c)return ai(e,s)}else{var p=Qi(e),f=p==Q||p==Z;if(hu(e))return $a(e,c);if(p==re||p==z||f&&!o){if(s=l||f?{}:rs(e),!c)return l?ci(e,mo(s,e)):si(e,ho(s,e))}else{if(!Zt[p])return o?e:{};s=os(e,p,c)}}i||(i=new Zr);var h=i.get(e);if(h)return h;i.set(e,s),Uu(e)?e.forEach((function(r){s.add(bo(r,t,n,r,e,i))})):Tu(e)&&e.forEach((function(r,o){s.set(o,bo(r,t,n,o,e,i))}));var _=u?l?Fi:Bi:l?Cd:kd,b=d?a:_(e);return kn(b||e,(function(r,o){b&&(o=r,r=e[o]),uo(s,o,bo(r,t,n,o,e,i))})),s}function yo(e){var t=kd(e);return function(n){return Oo(n,e,t)}}function Oo(e,t,n){var r=n.length;if(null==e)return!r;e=rt(e);while(r--){var o=n[r],i=t[o],s=e[o];if(s===a&&!(o in e)||!i(s))return!1}return!0}function Mo(e,t,n){if("function"!=typeof e)throw new it(l);return Ss((function(){e.apply(a,n)}),t)}function ko(e,t,n,r){var o=-1,a=Tn,i=!0,c=e.length,l=[],u=t.length;if(!c)return l;n&&(t=En(t,Xn(n))),r?(a=In,i=!1):t.length>=s&&(a=Zn,i=!1,t=new Jr(t));e:while(++o<c){var d=e[o],p=null==n?d:n(d);if(d=r||0!==d?d:0,i&&p===p){var f=u;while(f--)if(t[f]===p)continue e;l.push(d)}else a(t,p,r)||l.push(d)}return l}Mr.templateSettings={escape:De,evaluate:Le,interpolate:Ae,variable:"",imports:{_:Mr}},Mr.prototype=Sr.prototype,Mr.prototype.constructor=Mr,Tr.prototype=Cr(Sr.prototype),Tr.prototype.constructor=Tr,Ir.prototype=Cr(Sr.prototype),Ir.prototype.constructor=Ir,Lr.prototype.clear=Ar,Lr.prototype["delete"]=Nr,Lr.prototype.get=Rr,Lr.prototype.has=xr,Lr.prototype.set=Pr,Ur.prototype.clear=Vr,Ur.prototype["delete"]=Br,Ur.prototype.get=Fr,Ur.prototype.has=Gr,Ur.prototype.set=Hr,Yr.prototype.clear=zr,Yr.prototype["delete"]=qr,Yr.prototype.get=Wr,Yr.prototype.has=Kr,Yr.prototype.set=$r,Jr.prototype.add=Jr.prototype.push=Xr,Jr.prototype.has=Qr,Zr.prototype.clear=eo,Zr.prototype["delete"]=to,Zr.prototype.get=no,Zr.prototype.has=ro,Zr.prototype.set=oo;var Co=di(Ao),wo=di(No,!0);function So(e,t){var n=!0;return Co(e,(function(e,r,o){return n=!!t(e,r,o),n})),n}function To(e,t,n){var r=-1,o=e.length;while(++r<o){var i=e[r],s=t(i);if(null!=s&&(c===a?s===s&&!Bu(s):n(s,c)))var c=s,l=i}return l}function Io(e,t,n,r){var o=e.length;n=$u(n),n<0&&(n=-n>o?0:o+n),r=r===a||r>o?o:$u(r),r<0&&(r+=o),r=n>r?0:Ju(r);while(n<r)e[n++]=t;return e}function Eo(e,t){var n=[];return Co(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function jo(e,t,n,r,o){var a=-1,i=e.length;n||(n=is),o||(o=[]);while(++a<i){var s=e[a];t>0&&n(s)?t>1?jo(s,t-1,n,r,o):jn(o,s):r||(o[o.length]=s)}return o}var Do=pi(),Lo=pi(!0);function Ao(e,t){return e&&Do(e,t,kd)}function No(e,t){return e&&Lo(e,t,kd)}function Ro(e,t){return Sn(t,(function(t){return Mu(e[t])}))}function xo(e,t){t=za(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Ls(t[n++])];return n&&n==r?e:a}function Po(e,t,n){var r=t(e);return lu(e)?r:jn(r,n(e))}function Uo(e){return null==e?e===a?ue:ne:Et&&Et in rt(e)?$i(e):ys(e)}function Vo(e,t){return e>t}function Bo(e,t){return null!=e&&pt.call(e,t)}function Fo(e,t){return null!=e&&t in rt(e)}function Go(e,t,n){return e>=Gt(t,n)&&e<Ft(t,n)}function Ho(e,t,r){var o=r?In:Tn,i=e[0].length,s=e.length,c=s,l=n(s),u=1/0,d=[];while(c--){var p=e[c];c&&t&&(p=En(p,Xn(t))),u=Gt(p.length,u),l[c]=!r&&(t||i>=120&&p.length>=120)?new Jr(c&&p):a}p=e[0];var f=-1,h=l[0];e:while(++f<i&&d.length<u){var m=p[f],v=t?t(m):m;if(m=r||0!==m?m:0,!(h?Zn(h,v):o(d,v,r))){c=s;while(--c){var g=l[c];if(!(g?Zn(g,v):o(e[c],v,r)))continue e}h&&h.push(v),d.push(m)}}return d}function Yo(e,t,n,r){return Ao(e,(function(e,o,a){t(r,n(e),o,a)})),r}function zo(e,t,n){t=za(t,e),e=Ms(e,t);var r=null==e?e:e[Ls(ic(t))];return null==r?a:On(r,e,n)}function qo(e){return Su(e)&&Uo(e)==z}function Wo(e){return Su(e)&&Uo(e)==fe}function Ko(e){return Su(e)&&Uo(e)==$}function $o(e,t,n,r,o){return e===t||(null==e||null==t||!Su(e)&&!Su(t)?e!==e&&t!==t:Jo(e,t,n,r,$o,o))}function Jo(e,t,n,r,o,a){var i=lu(e),s=lu(t),c=i?q:Qi(e),l=s?q:Qi(t);c=c==z?re:c,l=l==z?re:l;var u=c==re,d=l==re,p=c==l;if(p&&hu(e)){if(!hu(t))return!1;i=!0,u=!1}if(p&&!u)return a||(a=new Zr),i||Fu(e)?xi(e,t,n,r,o,a):Pi(e,t,c,n,r,o,a);if(!(n&_)){var f=u&&pt.call(e,"__wrapped__"),h=d&&pt.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,v=h?t.value():t;return a||(a=new Zr),o(m,v,n,r,a)}}return!!p&&(a||(a=new Zr),Ui(e,t,n,r,o,a))}function Xo(e){return Su(e)&&Qi(e)==ee}function Qo(e,t,n,r){var o=n.length,i=o,s=!r;if(null==e)return!i;e=rt(e);while(o--){var c=n[o];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}while(++o<i){c=n[o];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===a&&!(l in e))return!1}else{var p=new Zr;if(r)var f=r(u,d,l,e,t,p);if(!(f===a?$o(d,u,_|b,r,p):f))return!1}}return!0}function Zo(e){if(!wu(e)||ps(e))return!1;var t=Mu(e)?_t:Xe;return t.test(As(e))}function ea(e){return Su(e)&&Uo(e)==ie}function ta(e){return Su(e)&&Qi(e)==se}function na(e){return Su(e)&&Cu(e.length)&&!!Qt[Uo(e)]}function ra(e){return"function"==typeof e?e:null==e?Dp:"object"==typeof e?lu(e)?la(e[0],e[1]):ca(e):Yp(e)}function oa(e){if(!hs(e))return Bt(e);var t=[];for(var n in rt(e))pt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function aa(e){if(!wu(e))return bs(e);var t=hs(e),n=[];for(var r in e)("constructor"!=r||!t&&pt.call(e,r))&&n.push(r);return n}function ia(e,t){return e<t}function sa(e,t){var r=-1,o=du(e)?n(e.length):[];return Co(e,(function(e,n,a){o[++r]=t(e,n,a)})),o}function ca(e){var t=Wi(e);return 1==t.length&&t[0][2]?vs(t[0][0],t[0][1]):function(n){return n===e||Qo(n,e,t)}}function la(e,t){return ls(e)&&ms(t)?vs(Ls(e),t):function(n){var r=gd(n,e);return r===a&&r===t?bd(n,e):$o(t,r,_|b)}}function ua(e,t,n,r,o){e!==t&&Do(t,(function(i,s){if(o||(o=new Zr),wu(i))da(e,t,s,n,ua,r,o);else{var c=r?r(Cs(e,s),i,s+"",e,t,o):a;c===a&&(c=i),lo(e,s,c)}}),Cd)}function da(e,t,n,r,o,i,s){var c=Cs(e,n),l=Cs(t,n),u=s.get(l);if(u)lo(e,n,u);else{var d=i?i(c,l,n+"",e,t,s):a,p=d===a;if(p){var f=lu(l),h=!f&&hu(l),m=!f&&!h&&Fu(l);d=l,f||h||m?lu(c)?d=c:pu(c)?d=ai(c):h?(p=!1,d=$a(l,!0)):m?(p=!1,d=ei(l,!0)):d=[]:Ru(l)||cu(l)?(d=c,cu(c)?d=Qu(c):wu(c)&&!Mu(c)||(d=rs(l))):p=!1}p&&(s.set(l,d),o(d,l,r,i,s),s["delete"](l)),lo(e,n,d)}}function pa(e,t){var n=e.length;if(n)return t+=t<0?n:0,ss(t,n)?e[t]:a}function fa(e,t,n){t=t.length?En(t,(function(e){return lu(e)?function(t){return xo(t,1===e.length?e[0]:e)}:e})):[Dp];var r=-1;t=En(t,Xn(zi()));var o=sa(e,(function(e,n,o){var a=En(t,(function(t){return t(e)}));return{criteria:a,index:++r,value:e}}));return qn(o,(function(e,t){return ni(e,t,n)}))}function ha(e,t){return ma(e,t,(function(t,n){return bd(e,n)}))}function ma(e,t,n){var r=-1,o=t.length,a={};while(++r<o){var i=t[r],s=xo(e,i);n(s,i)&&wa(a,za(i,e),s)}return a}function va(e){return function(t){return xo(t,e)}}function ga(e,t,n,r){var o=r?Bn:Vn,a=-1,i=t.length,s=e;e===t&&(t=ai(t)),n&&(s=En(e,Xn(n)));while(++a<i){var c=0,l=t[a],u=n?n(l):l;while((c=o(s,u,c,r))>-1)s!==e&&St.call(s,c,1),St.call(e,c,1)}return e}function _a(e,t){var n=e?t.length:0,r=n-1;while(n--){var o=t[n];if(n==r||o!==a){var a=o;ss(o)?St.call(e,o,1):Pa(e,o)}}return e}function ba(e,t){return e+Rt(Wt()*(t-e+1))}function ya(e,t,r,o){var a=-1,i=Ft(Nt((t-e)/(r||1)),0),s=n(i);while(i--)s[o?i:++a]=e,e+=r;return s}function Oa(e,t){var n="";if(!e||t<1||t>U)return n;do{t%2&&(n+=e),t=Rt(t/2),t&&(e+=e)}while(t);return n}function Ma(e,t){return Ts(Os(e,t,Dp),e+"")}function ka(e){return io(Gd(e))}function Ca(e,t){var n=Gd(e);return js(n,_o(t,0,n.length))}function wa(e,t,n,r){if(!wu(e))return e;t=za(t,e);var o=-1,i=t.length,s=i-1,c=e;while(null!=c&&++o<i){var l=Ls(t[o]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=s){var d=c[l];u=r?r(d,l,c):a,u===a&&(u=wu(d)?d:ss(t[o+1])?[]:{})}uo(c,l,u),c=c[l]}return e}var Sa=cn?function(e,t){return cn.set(e,t),e}:Dp,Ta=jt?function(e,t){return jt(e,"toString",{configurable:!0,enumerable:!1,value:Tp(t),writable:!0})}:Dp;function Ia(e){return js(Gd(e))}function Ea(e,t,r){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;var i=n(a);while(++o<a)i[o]=e[o+t];return i}function ja(e,t){var n;return Co(e,(function(e,r,o){return n=t(e,r,o),!n})),!!n}function Da(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t===t&&o<=H){while(r<o){var a=r+o>>>1,i=e[a];null!==i&&!Bu(i)&&(n?i<=t:i<t)?r=a+1:o=a}return o}return La(e,t,Dp,n)}function La(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;t=n(t);var s=t!==t,c=null===t,l=Bu(t),u=t===a;while(o<i){var d=Rt((o+i)/2),p=n(e[d]),f=p!==a,h=null===p,m=p===p,v=Bu(p);if(s)var g=r||m;else g=u?m&&(r||f):c?m&&f&&(r||!h):l?m&&f&&!h&&(r||!v):!h&&!v&&(r?p<=t:p<t);g?o=d+1:i=d}return Gt(i,G)}function Aa(e,t){var n=-1,r=e.length,o=0,a=[];while(++n<r){var i=e[n],s=t?t(i):i;if(!n||!au(s,c)){var c=s;a[o++]=0===i?0:i}}return a}function Na(e){return"number"==typeof e?e:Bu(e)?B:+e}function Ra(e){if("string"==typeof e)return e;if(lu(e))return En(e,Ra)+"";if(Bu(e))return Or?Or.call(e):"";var t=e+"";return"0"==t&&1/e==-P?"-0":t}function xa(e,t,n){var r=-1,o=Tn,a=e.length,i=!0,c=[],l=c;if(n)i=!1,o=In;else if(a>=s){var u=t?null:ji(e);if(u)return fr(u);i=!1,o=Zn,l=new Jr}else l=t?[]:c;e:while(++r<a){var d=e[r],p=t?t(d):d;if(d=n||0!==d?d:0,i&&p===p){var f=l.length;while(f--)if(l[f]===p)continue e;t&&l.push(p),c.push(d)}else o(l,p,n)||(l!==c&&l.push(p),c.push(d))}return c}function Pa(e,t){t=za(t,e);var n=-1,r=t.length;if(!r)return!0;while(++n<r){var o=Ls(t[n]);if("__proto__"===o&&!pt.call(e,"__proto__"))return!1;if(("constructor"===o||"prototype"===o)&&n<r-1)return!1}var a=Ms(e,t);return null==a||delete a[Ls(ic(t))]}function Ua(e,t,n,r){return wa(e,t,n(xo(e,t)),r)}function Va(e,t,n,r){var o=e.length,a=r?o:-1;while((r?a--:++a<o)&&t(e[a],a,e));return n?Ea(e,r?0:a,r?a+1:o):Ea(e,r?a+1:0,r?o:a)}function Ba(e,t){var n=e;return n instanceof Ir&&(n=n.value()),Dn(t,(function(e,t){return t.func.apply(t.thisArg,jn([e],t.args))}),n)}function Fa(e,t,r){var o=e.length;if(o<2)return o?xa(e[0]):[];var a=-1,i=n(o);while(++a<o){var s=e[a],c=-1;while(++c<o)c!=a&&(i[a]=ko(i[a]||s,e[c],t,r))}return xa(jo(i,1),t,r)}function Ga(e,t,n){var r=-1,o=e.length,i=t.length,s={};while(++r<o){var c=r<i?t[r]:a;n(s,e[r],c)}return s}function Ha(e){return pu(e)?e:[]}function Ya(e){return"function"==typeof e?e:Dp}function za(e,t){return lu(e)?e:ls(e,t)?[e]:Ds(ed(e))}var qa=Ma;function Wa(e,t,n){var r=e.length;return n=n===a?r:n,!t&&n>=r?e:Ea(e,t,n)}var Ka=Dt||function(e){return ln.clearTimeout(e)};function $a(e,t){if(t)return e.slice();var n=e.length,r=Mt?Mt(n):new e.constructor(n);return e.copy(r),r}function Ja(e){var t=new e.constructor(e.byteLength);return new Ot(t).set(new Ot(e)),t}function Xa(e,t){var n=t?Ja(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Qa(e){var t=new e.constructor(e.source,Ke.exec(e));return t.lastIndex=e.lastIndex,t}function Za(e){return mr?rt(mr.call(e)):{}}function ei(e,t){var n=t?Ja(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ti(e,t){if(e!==t){var n=e!==a,r=null===e,o=e===e,i=Bu(e),s=t!==a,c=null===t,l=t===t,u=Bu(t);if(!c&&!u&&!i&&e>t||i&&s&&l&&!c&&!u||r&&s&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||c&&n&&o||!s&&o||!l)return-1}return 0}function ni(e,t,n){var r=-1,o=e.criteria,a=t.criteria,i=o.length,s=n.length;while(++r<i){var c=ti(o[r],a[r]);if(c){if(r>=s)return c;var l=n[r];return c*("desc"==l?-1:1)}}return e.index-t.index}function ri(e,t,r,o){var a=-1,i=e.length,s=r.length,c=-1,l=t.length,u=Ft(i-s,0),d=n(l+u),p=!o;while(++c<l)d[c]=t[c];while(++a<s)(p||a<i)&&(d[r[a]]=e[a]);while(u--)d[c++]=e[a++];return d}function oi(e,t,r,o){var a=-1,i=e.length,s=-1,c=r.length,l=-1,u=t.length,d=Ft(i-c,0),p=n(d+u),f=!o;while(++a<d)p[a]=e[a];var h=a;while(++l<u)p[h+l]=t[l];while(++s<c)(f||a<i)&&(p[h+r[s]]=e[a++]);return p}function ai(e,t){var r=-1,o=e.length;t||(t=n(o));while(++r<o)t[r]=e[r];return t}function ii(e,t,n,r){var o=!n;n||(n={});var i=-1,s=t.length;while(++i<s){var c=t[i],l=r?r(n[c],e[c],c,n,e):a;l===a&&(l=e[c]),o?vo(n,c,l):uo(n,c,l)}return n}function si(e,t){return ii(e,Ji(e),t)}function ci(e,t){return ii(e,Xi(e),t)}function li(e,t){return function(n,r){var o=lu(n)?Mn:fo,a=t?t():{};return o(n,e,zi(r,2),a)}}function ui(e){return Ma((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:a,s=o>2?n[2]:a;i=e.length>3&&"function"==typeof i?(o--,i):a,s&&cs(n[0],n[1],s)&&(i=o<3?a:i,o=1),t=rt(t);while(++r<o){var c=n[r];c&&e(t,c,r,i)}return t}))}function di(e,t){return function(n,r){if(null==n)return n;if(!du(n))return e(n,r);var o=n.length,a=t?o:-1,i=rt(n);while(t?a--:++a<o)if(!1===r(i[a],a,i))break;return n}}function pi(e){return function(t,n,r){var o=-1,a=rt(t),i=r(t),s=i.length;while(s--){var c=i[e?s:++o];if(!1===n(a[c],c,a))break}return t}}function fi(e,t,n){var r=t&y,o=vi(e);function a(){var t=this&&this!==ln&&this instanceof a?o:e;return t.apply(r?n:this,arguments)}return a}function hi(e){return function(t){t=ed(t);var n=sr(t)?_r(t):a,r=n?n[0]:t.charAt(0),o=n?Wa(n,1).join(""):t.slice(1);return r[e]()+o}}function mi(e){return function(t){return Dn(Mp($d(t).replace(Yt,"")),e,"")}}function vi(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=Cr(e.prototype),r=e.apply(n,t);return wu(r)?r:n}}function gi(e,t,r){var o=vi(e);function i(){var s=arguments.length,c=n(s),l=s,u=Yi(i);while(l--)c[l]=arguments[l];var d=s<3&&c[0]!==u&&c[s-1]!==u?[]:pr(c,u);if(s-=d.length,s<r)return Ii(e,t,yi,i.placeholder,a,c,d,a,a,r-s);var p=this&&this!==ln&&this instanceof i?o:e;return On(p,this,c)}return i}function _i(e){return function(t,n,r){var o=rt(t);if(!du(t)){var i=zi(n,3);t=kd(t),n=function(e){return i(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[i?t[s]:s]:a}}function bi(e){return Vi((function(t){var n=t.length,r=n,o=Tr.prototype.thru;e&&t.reverse();while(r--){var i=t[r];if("function"!=typeof i)throw new it(l);if(o&&!s&&"wrapper"==Hi(i))var s=new Tr([],!0)}r=s?r:n;while(++r<n){i=t[r];var c=Hi(i),u="wrapper"==c?Gi(i):a;s=u&&ds(u[0])&&u[1]==(T|k|w|I)&&!u[4].length&&1==u[9]?s[Hi(u[0])].apply(s,u[3]):1==i.length&&ds(i)?s[c]():s.thru(i)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&lu(r))return s.plant(r).value();var o=0,a=n?t[o].apply(this,e):r;while(++o<n)a=t[o].call(this,a);return a}}))}function yi(e,t,r,o,i,s,c,l,u,d){var p=t&T,f=t&y,h=t&O,m=t&(k|C),v=t&E,g=h?a:vi(e);function _(){var a=arguments.length,b=n(a),y=a;while(y--)b[y]=arguments[y];if(m)var O=Yi(_),M=nr(b,O);if(o&&(b=ri(b,o,i,m)),s&&(b=oi(b,s,c,m)),a-=M,m&&a<d){var k=pr(b,O);return Ii(e,t,yi,_.placeholder,r,b,k,l,u,d-a)}var C=f?r:this,w=h?C[e]:e;return a=b.length,l?b=ks(b,l):v&&a>1&&b.reverse(),p&&u<a&&(b.length=u),this&&this!==ln&&this instanceof _&&(w=g||vi(w)),w.apply(C,b)}return _}function Oi(e,t){return function(n,r){return Yo(n,e,t(r),{})}}function Mi(e,t){return function(n,r){var o;if(n===a&&r===a)return t;if(n!==a&&(o=n),r!==a){if(o===a)return r;"string"==typeof n||"string"==typeof r?(n=Ra(n),r=Ra(r)):(n=Na(n),r=Na(r)),o=e(n,r)}return o}}function ki(e){return Vi((function(t){return t=En(t,Xn(zi())),Ma((function(n){var r=this;return e(t,(function(e){return On(e,r,n)}))}))}))}function Ci(e,t){t=t===a?" ":Ra(t);var n=t.length;if(n<2)return n?Oa(t,e):t;var r=Oa(t,Nt(e/gr(t)));return sr(t)?Wa(_r(r),0,e).join(""):r.slice(0,e)}function wi(e,t,r,o){var a=t&y,i=vi(e);function s(){var t=-1,c=arguments.length,l=-1,u=o.length,d=n(u+c),p=this&&this!==ln&&this instanceof s?i:e;while(++l<u)d[l]=o[l];while(c--)d[l++]=arguments[++t];return On(p,a?r:this,d)}return s}function Si(e){return function(t,n,r){return r&&"number"!=typeof r&&cs(t,n,r)&&(n=r=a),t=Ku(t),n===a?(n=t,t=0):n=Ku(n),r=r===a?t<n?1:-1:Ku(r),ya(t,n,r,e)}}function Ti(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Xu(t),n=Xu(n)),e(t,n)}}function Ii(e,t,n,r,o,i,s,c,l,u){var d=t&k,p=d?s:a,f=d?a:s,h=d?i:a,m=d?a:i;t|=d?w:S,t&=~(d?S:w),t&M||(t&=~(y|O));var v=[e,t,o,h,p,m,f,c,l,u],g=n.apply(a,v);return ds(e)&&ws(g,v),g.placeholder=r,Is(g,e,t)}function Ei(e){var t=Ye[e];return function(e,n){if(e=Xu(e),n=null==n?0:Gt($u(n),292),n&&Ut(e)){var r=(ed(e)+"e").split("e"),o=t(r[0]+"e"+(+r[1]+n));return r=(ed(o)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var ji=nn&&1/fr(new nn([,-0]))[1]==P?function(e){return new nn(e)}:Vp;function Di(e){return function(t){var n=Qi(t);return n==ee?ur(t):n==se?hr(t):$n(t,e(t))}}function Li(e,t,n,r,o,i,s,c){var u=t&O;if(!u&&"function"!=typeof e)throw new it(l);var d=r?r.length:0;if(d||(t&=~(w|S),r=o=a),s=s===a?s:Ft($u(s),0),c=c===a?c:$u(c),d-=o?o.length:0,t&S){var p=r,f=o;r=o=a}var h=u?a:Gi(e),m=[e,t,n,r,o,p,f,i,s,c];if(h&&_s(m,h),e=m[0],t=m[1],n=m[2],r=m[3],o=m[4],c=m[9]=m[9]===a?u?0:e.length:Ft(m[9]-d,0),!c&&t&(k|C)&&(t&=~(k|C)),t&&t!=y)v=t==k||t==C?gi(e,t,c):t!=w&&t!=(y|w)||o.length?yi.apply(a,m):wi(e,t,n,r);else var v=fi(e,t,n);var g=h?Sa:ws;return Is(g(v,m),e,t)}function Ai(e,t,n,r){return e===a||au(e,lt[n])&&!pt.call(r,n)?t:e}function Ni(e,t,n,r,o,i){return wu(e)&&wu(t)&&(i.set(t,e),ua(e,t,a,Ni,i),i["delete"](t)),e}function Ri(e){return Ru(e)?a:e}function xi(e,t,n,r,o,i){var s=n&_,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,h=n&b?new Jr:a;i.set(e,t),i.set(t,e);while(++p<c){var m=e[p],v=t[p];if(r)var g=s?r(v,m,p,t,e,i):r(m,v,p,e,t,i);if(g!==a){if(g)continue;f=!1;break}if(h){if(!An(t,(function(e,t){if(!Zn(h,t)&&(m===e||o(m,e,n,r,i)))return h.push(t)}))){f=!1;break}}else if(m!==v&&!o(m,v,n,r,i)){f=!1;break}}return i["delete"](e),i["delete"](t),f}function Pi(e,t,n,r,o,a,i){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||!a(new Ot(e),new Ot(t)));case K:case $:case te:return au(+e,+t);case X:return e.name==t.name&&e.message==t.message;case ie:case ce:return e==t+"";case ee:var s=ur;case se:var c=r&_;if(s||(s=fr),e.size!=t.size&&!c)return!1;var l=i.get(e);if(l)return l==t;r|=b,i.set(e,t);var u=xi(s(e),s(t),r,o,a,i);return i["delete"](e),u;case le:if(mr)return mr.call(e)==mr.call(t)}return!1}function Ui(e,t,n,r,o,i){var s=n&_,c=Bi(e),l=c.length,u=Bi(t),d=u.length;if(l!=d&&!s)return!1;var p=l;while(p--){var f=c[p];if(!(s?f in t:pt.call(t,f)))return!1}var h=i.get(e),m=i.get(t);if(h&&m)return h==t&&m==e;var v=!0;i.set(e,t),i.set(t,e);var g=s;while(++p<l){f=c[p];var b=e[f],y=t[f];if(r)var O=s?r(y,b,f,t,e,i):r(b,y,f,e,t,i);if(!(O===a?b===y||o(b,y,n,r,i):O)){v=!1;break}g||(g="constructor"==f)}if(v&&!g){var M=e.constructor,k=t.constructor;M==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof M&&M instanceof M&&"function"==typeof k&&k instanceof k||(v=!1)}return i["delete"](e),i["delete"](t),v}function Vi(e){return Ts(Os(e,a,$s),e+"")}function Bi(e){return Po(e,kd,Ji)}function Fi(e){return Po(e,Cd,Xi)}var Gi=cn?function(e){return cn.get(e)}:Vp;function Hi(e){var t=e.name+"",n=un[t],r=pt.call(un,t)?n.length:0;while(r--){var o=n[r],a=o.func;if(null==a||a==e)return o.name}return t}function Yi(e){var t=pt.call(Mr,"placeholder")?Mr:e;return t.placeholder}function zi(){var e=Mr.iteratee||Lp;return e=e===Lp?ra:e,arguments.length?e(arguments[0],arguments[1]):e}function qi(e,t){var n=e.__data__;return us(t)?n["string"==typeof t?"string":"hash"]:n.map}function Wi(e){var t=kd(e),n=t.length;while(n--){var r=t[n],o=e[r];t[n]=[r,o,ms(o)]}return t}function Ki(e,t){var n=ir(e,t);return Zo(n)?n:a}function $i(e){var t=pt.call(e,Et),n=e[Et];try{e[Et]=a;var r=!0}catch(i){}var o=mt.call(e);return r&&(t?e[Et]=n:delete e[Et]),o}var Ji=xt?function(e){return null==e?[]:(e=rt(e),Sn(xt(e),(function(t){return wt.call(e,t)})))}:Kp,Xi=xt?function(e){var t=[];while(e)jn(t,Ji(e)),e=kt(e);return t}:Kp,Qi=Uo;function Zi(e,t,n){var r=-1,o=n.length;while(++r<o){var a=n[r],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=Gt(t,e+i);break;case"takeRight":e=Ft(e,t-i);break}}return{start:e,end:t}}function es(e){var t=e.match(Ge);return t?t[1].split(He):[]}function ts(e,t,n){t=za(t,e);var r=-1,o=t.length,a=!1;while(++r<o){var i=Ls(t[r]);if(!(a=null!=e&&n(e,i)))break;e=e[i]}return a||++r!=o?a:(o=null==e?0:e.length,!!o&&Cu(o)&&ss(i,o)&&(lu(e)||cu(e)))}function ns(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&pt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function rs(e){return"function"!=typeof e.constructor||hs(e)?{}:Cr(kt(e))}function os(e,t,n){var r=e.constructor;switch(t){case fe:return Ja(e);case K:case $:return new r(+e);case he:return Xa(e,n);case me:case ve:case ge:case _e:case be:case ye:case Oe:case Me:case ke:return ei(e,n);case ee:return new r;case te:case ce:return new r(e);case ie:return Qa(e);case se:return new r;case le:return Za(e)}}function as(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(Fe,"{\n/* [wrapped with "+t+"] */\n")}function is(e){return lu(e)||cu(e)||!!(Tt&&e&&e[Tt])}function ss(e,t){var n=typeof e;return t=null==t?U:t,!!t&&("number"==n||"symbol"!=n&&Ze.test(e))&&e>-1&&e%1==0&&e<t}function cs(e,t,n){if(!wu(n))return!1;var r=typeof t;return!!("number"==r?du(n)&&ss(t,n.length):"string"==r&&t in n)&&au(n[t],e)}function ls(e,t){if(lu(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Bu(e))||(Re.test(e)||!Ne.test(e)||null!=t&&e in rt(t))}function us(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function ds(e){var t=Hi(e),n=Mr[t];if("function"!=typeof n||!(t in Ir.prototype))return!1;if(e===n)return!0;var r=Gi(n);return!!r&&e===r[0]}function ps(e){return!!ht&&ht in e}($t&&Qi(new $t(new ArrayBuffer(1)))!=he||en&&Qi(new en)!=ee||tn&&Qi(tn.resolve())!=oe||nn&&Qi(new nn)!=se||rn&&Qi(new rn)!=de)&&(Qi=function(e){var t=Uo(e),n=t==re?e.constructor:a,r=n?As(n):"";if(r)switch(r){case dn:return he;case fn:return ee;case hn:return oe;case Nn:return se;case Rn:return de}return t});var fs=ut?Mu:$p;function hs(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||lt;return e===n}function ms(e){return e===e&&!wu(e)}function vs(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==a||e in rt(n)))}}function gs(e){var t=Fl(e,(function(e){return n.size===f&&n.clear(),e})),n=t.cache;return t}function _s(e,t){var n=e[1],r=t[1],o=n|r,a=o<(y|O|T),i=r==T&&n==k||r==T&&n==I&&e[7].length<=t[8]||r==(T|I)&&t[7].length<=t[8]&&n==k;if(!a&&!i)return e;r&y&&(e[2]=t[2],o|=n&y?0:M);var s=t[3];if(s){var c=e[3];e[3]=c?ri(c,s,t[4]):s,e[4]=c?pr(e[3],h):t[4]}return s=t[5],s&&(c=e[5],e[5]=c?oi(c,s,t[6]):s,e[6]=c?pr(e[5],h):t[6]),s=t[7],s&&(e[7]=s),r&T&&(e[8]=null==e[8]?t[8]:Gt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function bs(e){var t=[];if(null!=e)for(var n in rt(e))t.push(n);return t}function ys(e){return mt.call(e)}function Os(e,t,r){return t=Ft(t===a?e.length-1:t,0),function(){var o=arguments,a=-1,i=Ft(o.length-t,0),s=n(i);while(++a<i)s[a]=o[t+a];a=-1;var c=n(t+1);while(++a<t)c[a]=o[a];return c[t]=r(s),On(e,this,c)}}function Ms(e,t){return t.length<2?e:xo(e,Ea(t,0,-1))}function ks(e,t){var n=e.length,r=Gt(t.length,n),o=ai(e);while(r--){var i=t[r];e[r]=ss(i,n)?o[i]:a}return e}function Cs(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var ws=Es(Sa),Ss=At||function(e,t){return ln.setTimeout(e,t)},Ts=Es(Ta);function Is(e,t,n){var r=t+"";return Ts(e,as(r,Ns(es(r),n)))}function Es(e){var t=0,n=0;return function(){var r=Ht(),o=A-(r-n);if(n=r,o>0){if(++t>=L)return arguments[0]}else t=0;return e.apply(a,arguments)}}function js(e,t){var n=-1,r=e.length,o=r-1;t=t===a?r:t;while(++n<t){var i=ba(n,o),s=e[i];e[i]=e[n],e[n]=s}return e.length=t,e}var Ds=gs((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(xe,(function(e,n,r,o){t.push(r?o.replace(qe,"$1"):n||e)})),t}));function Ls(e){if("string"==typeof e||Bu(e))return e;var t=e+"";return"0"==t&&1/e==-P?"-0":t}function As(e){if(null!=e){try{return dt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ns(e,t){return kn(Y,(function(n){var r="_."+n[0];t&n[1]&&!Tn(e,r)&&e.push(r)})),e.sort()}function Rs(e){if(e instanceof Ir)return e.clone();var t=new Tr(e.__wrapped__,e.__chain__);return t.__actions__=ai(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function xs(e,t,r){t=(r?cs(e,t,r):t===a)?1:Ft($u(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];var i=0,s=0,c=n(Nt(o/t));while(i<o)c[s++]=Ea(e,i,i+=t);return c}function Ps(e){var t=-1,n=null==e?0:e.length,r=0,o=[];while(++t<n){var a=e[t];a&&(o[r++]=a)}return o}function Us(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],o=e;while(o--)t[o-1]=arguments[o];return jn(lu(r)?ai(r):[r],jo(t,1))}var Vs=Ma((function(e,t){return pu(e)?ko(e,jo(t,1,pu,!0)):[]})),Bs=Ma((function(e,t){var n=ic(t);return pu(n)&&(n=a),pu(e)?ko(e,jo(t,1,pu,!0),zi(n,2)):[]})),Fs=Ma((function(e,t){var n=ic(t);return pu(n)&&(n=a),pu(e)?ko(e,jo(t,1,pu,!0),a,n):[]}));function Gs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===a?1:$u(t),Ea(e,t<0?0:t,r)):[]}function Hs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===a?1:$u(t),t=r-t,Ea(e,0,t<0?0:t)):[]}function Ys(e,t){return e&&e.length?Va(e,zi(t,3),!0,!0):[]}function zs(e,t){return e&&e.length?Va(e,zi(t,3),!0):[]}function qs(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&cs(e,t,n)&&(n=0,r=o),Io(e,t,n,r)):[]}function Ws(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:$u(n);return o<0&&(o=Ft(r+o,0)),Un(e,zi(t,3),o)}function Ks(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==a&&(o=$u(n),o=n<0?Ft(r+o,0):Gt(o,r-1)),Un(e,zi(t,3),o,!0)}function $s(e){var t=null==e?0:e.length;return t?jo(e,1):[]}function Js(e){var t=null==e?0:e.length;return t?jo(e,P):[]}function Xs(e,t){var n=null==e?0:e.length;return n?(t=t===a?1:$u(t),jo(e,t)):[]}function Qs(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var o=e[t];vo(r,o[0],o[1])}return r}function Zs(e){return e&&e.length?e[0]:a}function ec(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:$u(n);return o<0&&(o=Ft(r+o,0)),Vn(e,t,o)}function tc(e){var t=null==e?0:e.length;return t?Ea(e,0,-1):[]}var nc=Ma((function(e){var t=En(e,Ha);return t.length&&t[0]===e[0]?Ho(t):[]})),rc=Ma((function(e){var t=ic(e),n=En(e,Ha);return t===ic(n)?t=a:n.pop(),n.length&&n[0]===e[0]?Ho(n,zi(t,2)):[]})),oc=Ma((function(e){var t=ic(e),n=En(e,Ha);return t="function"==typeof t?t:a,t&&n.pop(),n.length&&n[0]===e[0]?Ho(n,a,t):[]}));function ac(e,t){return null==e?"":Vt.call(e,t)}function ic(e){var t=null==e?0:e.length;return t?e[t-1]:a}function sc(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==a&&(o=$u(n),o=o<0?Ft(r+o,0):Gt(o,r-1)),t===t?vr(e,t,o):Un(e,Fn,o,!0)}function cc(e,t){return e&&e.length?pa(e,$u(t)):a}var lc=Ma(uc);function uc(e,t){return e&&e.length&&t&&t.length?ga(e,t):e}function dc(e,t,n){return e&&e.length&&t&&t.length?ga(e,t,zi(n,2)):e}function pc(e,t,n){return e&&e.length&&t&&t.length?ga(e,t,a,n):e}var fc=Vi((function(e,t){var n=null==e?0:e.length,r=go(e,t);return _a(e,En(t,(function(e){return ss(e,n)?+e:e})).sort(ti)),r}));function hc(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],a=e.length;t=zi(t,3);while(++r<a){var i=e[r];t(i,r,e)&&(n.push(i),o.push(r))}return _a(e,o),n}function mc(e){return null==e?e:Kt.call(e)}function vc(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&cs(e,t,n)?(t=0,n=r):(t=null==t?0:$u(t),n=n===a?r:$u(n)),Ea(e,t,n)):[]}function gc(e,t){return Da(e,t)}function _c(e,t,n){return La(e,t,zi(n,2))}function bc(e,t){var n=null==e?0:e.length;if(n){var r=Da(e,t);if(r<n&&au(e[r],t))return r}return-1}function yc(e,t){return Da(e,t,!0)}function Oc(e,t,n){return La(e,t,zi(n,2),!0)}function Mc(e,t){var n=null==e?0:e.length;if(n){var r=Da(e,t,!0)-1;if(au(e[r],t))return r}return-1}function kc(e){return e&&e.length?Aa(e):[]}function Cc(e,t){return e&&e.length?Aa(e,zi(t,2)):[]}function wc(e){var t=null==e?0:e.length;return t?Ea(e,1,t):[]}function Sc(e,t,n){return e&&e.length?(t=n||t===a?1:$u(t),Ea(e,0,t<0?0:t)):[]}function Tc(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===a?1:$u(t),t=r-t,Ea(e,t<0?0:t,r)):[]}function Ic(e,t){return e&&e.length?Va(e,zi(t,3),!1,!0):[]}function Ec(e,t){return e&&e.length?Va(e,zi(t,3)):[]}var jc=Ma((function(e){return xa(jo(e,1,pu,!0))})),Dc=Ma((function(e){var t=ic(e);return pu(t)&&(t=a),xa(jo(e,1,pu,!0),zi(t,2))})),Lc=Ma((function(e){var t=ic(e);return t="function"==typeof t?t:a,xa(jo(e,1,pu,!0),a,t)}));function Ac(e){return e&&e.length?xa(e):[]}function Nc(e,t){return e&&e.length?xa(e,zi(t,2)):[]}function Rc(e,t){return t="function"==typeof t?t:a,e&&e.length?xa(e,a,t):[]}function xc(e){if(!e||!e.length)return[];var t=0;return e=Sn(e,(function(e){if(pu(e))return t=Ft(e.length,t),!0})),Kn(t,(function(t){return En(e,Hn(t))}))}function Pc(e,t){if(!e||!e.length)return[];var n=xc(e);return null==t?n:En(n,(function(e){return On(t,a,e)}))}var Uc=Ma((function(e,t){return pu(e)?ko(e,t):[]})),Vc=Ma((function(e){return Fa(Sn(e,pu))})),Bc=Ma((function(e){var t=ic(e);return pu(t)&&(t=a),Fa(Sn(e,pu),zi(t,2))})),Fc=Ma((function(e){var t=ic(e);return t="function"==typeof t?t:a,Fa(Sn(e,pu),a,t)})),Gc=Ma(xc);function Hc(e,t){return Ga(e||[],t||[],uo)}function Yc(e,t){return Ga(e||[],t||[],wa)}var zc=Ma((function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,Pc(e,n)}));function qc(e){var t=Mr(e);return t.__chain__=!0,t}function Wc(e,t){return t(e),e}function Kc(e,t){return t(e)}var $c=Vi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return go(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Ir&&ss(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Kc,args:[o],thisArg:a}),new Tr(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(o)}));function Jc(){return qc(this)}function Xc(){return new Tr(this.value(),this.__chain__)}function Qc(){this.__values__===a&&(this.__values__=Wu(this.value()));var e=this.__index__>=this.__values__.length,t=e?a:this.__values__[this.__index__++];return{done:e,value:t}}function Zc(){return this}function el(e){var t,n=this;while(n instanceof Sr){var r=Rs(n);r.__index__=0,r.__values__=a,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function tl(){var e=this.__wrapped__;if(e instanceof Ir){var t=e;return this.__actions__.length&&(t=new Ir(this)),t=t.reverse(),t.__actions__.push({func:Kc,args:[mc],thisArg:a}),new Tr(t,this.__chain__)}return this.thru(mc)}function nl(){return Ba(this.__wrapped__,this.__actions__)}var rl=li((function(e,t,n){pt.call(e,n)?++e[n]:vo(e,n,1)}));function ol(e,t,n){var r=lu(e)?wn:So;return n&&cs(e,t,n)&&(t=a),r(e,zi(t,3))}function al(e,t){var n=lu(e)?Sn:Eo;return n(e,zi(t,3))}var il=_i(Ws),sl=_i(Ks);function cl(e,t){return jo(gl(e,t),1)}function ll(e,t){return jo(gl(e,t),P)}function ul(e,t,n){return n=n===a?1:$u(n),jo(gl(e,t),n)}function dl(e,t){var n=lu(e)?kn:Co;return n(e,zi(t,3))}function pl(e,t){var n=lu(e)?Cn:wo;return n(e,zi(t,3))}var fl=li((function(e,t,n){pt.call(e,n)?e[n].push(t):vo(e,n,[t])}));function hl(e,t,n,r){e=du(e)?e:Gd(e),n=n&&!r?$u(n):0;var o=e.length;return n<0&&(n=Ft(o+n,0)),Vu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Vn(e,t,n)>-1}var ml=Ma((function(e,t,r){var o=-1,a="function"==typeof t,i=du(e)?n(e.length):[];return Co(e,(function(e){i[++o]=a?On(t,e,r):zo(e,t,r)})),i})),vl=li((function(e,t,n){vo(e,n,t)}));function gl(e,t){var n=lu(e)?En:sa;return n(e,zi(t,3))}function _l(e,t,n,r){return null==e?[]:(lu(t)||(t=null==t?[]:[t]),n=r?a:n,lu(n)||(n=null==n?[]:[n]),fa(e,t,n))}var bl=li((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function yl(e,t,n){var r=lu(e)?Dn:zn,o=arguments.length<3;return r(e,zi(t,4),n,o,Co)}function Ol(e,t,n){var r=lu(e)?Ln:zn,o=arguments.length<3;return r(e,zi(t,4),n,o,wo)}function Ml(e,t){var n=lu(e)?Sn:Eo;return n(e,Gl(zi(t,3)))}function kl(e){var t=lu(e)?io:ka;return t(e)}function Cl(e,t,n){t=(n?cs(e,t,n):t===a)?1:$u(t);var r=lu(e)?so:Ca;return r(e,t)}function wl(e){var t=lu(e)?co:Ia;return t(e)}function Sl(e){if(null==e)return 0;if(du(e))return Vu(e)?gr(e):e.length;var t=Qi(e);return t==ee||t==se?e.size:oa(e).length}function Tl(e,t,n){var r=lu(e)?An:ja;return n&&cs(e,t,n)&&(t=a),r(e,zi(t,3))}var Il=Ma((function(e,t){if(null==e)return[];var n=t.length;return n>1&&cs(e,t[0],t[1])?t=[]:n>2&&cs(t[0],t[1],t[2])&&(t=[t[0]]),fa(e,jo(t,1),[])})),El=Lt||function(){return ln.Date.now()};function jl(e,t){if("function"!=typeof t)throw new it(l);return e=$u(e),function(){if(--e<1)return t.apply(this,arguments)}}function Dl(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Li(e,T,a,a,a,a,t)}function Ll(e,t){var n;if("function"!=typeof t)throw new it(l);return e=$u(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Al=Ma((function(e,t,n){var r=y;if(n.length){var o=pr(n,Yi(Al));r|=w}return Li(e,r,t,n,o)})),Nl=Ma((function(e,t,n){var r=y|O;if(n.length){var o=pr(n,Yi(Nl));r|=w}return Li(t,r,e,n,o)}));function Rl(e,t,n){t=n?a:t;var r=Li(e,k,a,a,a,a,a,t);return r.placeholder=Rl.placeholder,r}function xl(e,t,n){t=n?a:t;var r=Li(e,C,a,a,a,a,a,t);return r.placeholder=xl.placeholder,r}function Pl(e,t,n){var r,o,i,s,c,u,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new it(l);function m(t){var n=r,i=o;return r=o=a,d=t,s=e.apply(i,n),s}function v(e){return d=e,c=Ss(b,t),p?m(e):s}function g(e){var n=e-u,r=e-d,o=t-n;return f?Gt(o,i-r):o}function _(e){var n=e-u,r=e-d;return u===a||n>=t||n<0||f&&r>=i}function b(){var e=El();if(_(e))return y(e);c=Ss(b,g(e))}function y(e){return c=a,h&&r?m(e):(r=o=a,s)}function O(){c!==a&&Ka(c),d=0,r=u=o=c=a}function M(){return c===a?s:y(El())}function k(){var e=El(),n=_(e);if(r=arguments,o=this,u=e,n){if(c===a)return v(u);if(f)return Ka(c),c=Ss(b,t),m(u)}return c===a&&(c=Ss(b,t)),s}return t=Xu(t)||0,wu(n)&&(p=!!n.leading,f="maxWait"in n,i=f?Ft(Xu(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h),k.cancel=O,k.flush=M,k}var Ul=Ma((function(e,t){return Mo(e,1,t)})),Vl=Ma((function(e,t,n){return Mo(e,Xu(t)||0,n)}));function Bl(e){return Li(e,E)}function Fl(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(l);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Fl.Cache||Yr),n}function Gl(e){if("function"!=typeof e)throw new it(l);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 Hl(e){return Ll(2,e)}Fl.Cache=Yr;var Yl=qa((function(e,t){t=1==t.length&&lu(t[0])?En(t[0],Xn(zi())):En(jo(t,1),Xn(zi()));var n=t.length;return Ma((function(r){var o=-1,a=Gt(r.length,n);while(++o<a)r[o]=t[o].call(this,r[o]);return On(e,this,r)}))})),zl=Ma((function(e,t){var n=pr(t,Yi(zl));return Li(e,w,a,t,n)})),ql=Ma((function(e,t){var n=pr(t,Yi(ql));return Li(e,S,a,t,n)})),Wl=Vi((function(e,t){return Li(e,I,a,a,a,t)}));function Kl(e,t){if("function"!=typeof e)throw new it(l);return t=t===a?t:$u(t),Ma(e,t)}function $l(e,t){if("function"!=typeof e)throw new it(l);return t=null==t?0:Ft($u(t),0),Ma((function(n){var r=n[t],o=Wa(n,0,t);return r&&jn(o,r),On(e,this,o)}))}function Jl(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new it(l);return wu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Pl(e,t,{leading:r,maxWait:t,trailing:o})}function Xl(e){return Dl(e,1)}function Ql(e,t){return zl(Ya(t),e)}function Zl(){if(!arguments.length)return[];var e=arguments[0];return lu(e)?e:[e]}function eu(e){return bo(e,g)}function tu(e,t){return t="function"==typeof t?t:a,bo(e,g,t)}function nu(e){return bo(e,m|g)}function ru(e,t){return t="function"==typeof t?t:a,bo(e,m|g,t)}function ou(e,t){return null==t||Oo(e,t,kd(t))}function au(e,t){return e===t||e!==e&&t!==t}var iu=Ti(Vo),su=Ti((function(e,t){return e>=t})),cu=qo(function(){return arguments}())?qo:function(e){return Su(e)&&pt.call(e,"callee")&&!wt.call(e,"callee")},lu=n.isArray,uu=mn?Xn(mn):Wo;function du(e){return null!=e&&Cu(e.length)&&!Mu(e)}function pu(e){return Su(e)&&du(e)}function fu(e){return!0===e||!1===e||Su(e)&&Uo(e)==K}var hu=Pt||$p,mu=vn?Xn(vn):Ko;function vu(e){return Su(e)&&1===e.nodeType&&!Ru(e)}function gu(e){if(null==e)return!0;if(du(e)&&(lu(e)||"string"==typeof e||"function"==typeof e.splice||hu(e)||Fu(e)||cu(e)))return!e.length;var t=Qi(e);if(t==ee||t==se)return!e.size;if(hs(e))return!oa(e).length;for(var n in e)if(pt.call(e,n))return!1;return!0}function _u(e,t){return $o(e,t)}function bu(e,t,n){n="function"==typeof n?n:a;var r=n?n(e,t):a;return r===a?$o(e,t,a,n):!!r}function yu(e){if(!Su(e))return!1;var t=Uo(e);return t==X||t==J||"string"==typeof e.message&&"string"==typeof e.name&&!Ru(e)}function Ou(e){return"number"==typeof e&&Ut(e)}function Mu(e){if(!wu(e))return!1;var t=Uo(e);return t==Q||t==Z||t==W||t==ae}function ku(e){return"number"==typeof e&&e==$u(e)}function Cu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=U}function wu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Su(e){return null!=e&&"object"==typeof e}var Tu=gn?Xn(gn):Xo;function Iu(e,t){return e===t||Qo(e,t,Wi(t))}function Eu(e,t,n){return n="function"==typeof n?n:a,Qo(e,t,Wi(t),n)}function ju(e){return Nu(e)&&e!=+e}function Du(e){if(fs(e))throw new o(c);return Zo(e)}function Lu(e){return null===e}function Au(e){return null==e}function Nu(e){return"number"==typeof e||Su(e)&&Uo(e)==te}function Ru(e){if(!Su(e)||Uo(e)!=re)return!1;var t=kt(e);if(null===t)return!0;var n=pt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&dt.call(n)==vt}var xu=_n?Xn(_n):ea;function Pu(e){return ku(e)&&e>=-U&&e<=U}var Uu=bn?Xn(bn):ta;function Vu(e){return"string"==typeof e||!lu(e)&&Su(e)&&Uo(e)==ce}function Bu(e){return"symbol"==typeof e||Su(e)&&Uo(e)==le}var Fu=yn?Xn(yn):na;function Gu(e){return e===a}function Hu(e){return Su(e)&&Qi(e)==de}function Yu(e){return Su(e)&&Uo(e)==pe}var zu=Ti(ia),qu=Ti((function(e,t){return e<=t}));function Wu(e){if(!e)return[];if(du(e))return Vu(e)?_r(e):ai(e);if(It&&e[It])return lr(e[It]());var t=Qi(e),n=t==ee?ur:t==se?fr:Gd;return n(e)}function Ku(e){if(!e)return 0===e?e:0;if(e=Xu(e),e===P||e===-P){var t=e<0?-1:1;return t*V}return e===e?e:0}function $u(e){var t=Ku(e),n=t%1;return t===t?n?t-n:t:0}function Ju(e){return e?_o($u(e),0,F):0}function Xu(e){if("number"==typeof e)return e;if(Bu(e))return B;if(wu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=wu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jn(e);var n=Je.test(e);return n||Qe.test(e)?an(e.slice(2),n?2:8):$e.test(e)?B:+e}function Qu(e){return ii(e,Cd(e))}function Zu(e){return e?_o($u(e),-U,U):0===e?e:0}function ed(e){return null==e?"":Ra(e)}var td=ui((function(e,t){if(hs(t)||du(t))ii(t,kd(t),e);else for(var n in t)pt.call(t,n)&&uo(e,n,t[n])})),nd=ui((function(e,t){ii(t,Cd(t),e)})),rd=ui((function(e,t,n,r){ii(t,Cd(t),e,r)})),od=ui((function(e,t,n,r){ii(t,kd(t),e,r)})),ad=Vi(go);function id(e,t){var n=Cr(e);return null==t?n:ho(n,t)}var sd=Ma((function(e,t){e=rt(e);var n=-1,r=t.length,o=r>2?t[2]:a;o&&cs(t[0],t[1],o)&&(r=1);while(++n<r){var i=t[n],s=Cd(i),c=-1,l=s.length;while(++c<l){var u=s[c],d=e[u];(d===a||au(d,lt[u])&&!pt.call(e,u))&&(e[u]=i[u])}}return e})),cd=Ma((function(e){return e.push(a,Ni),On(Id,a,e)}));function ld(e,t){return Pn(e,zi(t,3),Ao)}function ud(e,t){return Pn(e,zi(t,3),No)}function dd(e,t){return null==e?e:Do(e,zi(t,3),Cd)}function pd(e,t){return null==e?e:Lo(e,zi(t,3),Cd)}function fd(e,t){return e&&Ao(e,zi(t,3))}function hd(e,t){return e&&No(e,zi(t,3))}function md(e){return null==e?[]:Ro(e,kd(e))}function vd(e){return null==e?[]:Ro(e,Cd(e))}function gd(e,t,n){var r=null==e?a:xo(e,t);return r===a?n:r}function _d(e,t){return null!=e&&ts(e,t,Bo)}function bd(e,t){return null!=e&&ts(e,t,Fo)}var yd=Oi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=mt.call(t)),e[t]=n}),Tp(Dp)),Od=Oi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=mt.call(t)),pt.call(e,t)?e[t].push(n):e[t]=[n]}),zi),Md=Ma(zo);function kd(e){return du(e)?ao(e):oa(e)}function Cd(e){return du(e)?ao(e,!0):aa(e)}function wd(e,t){var n={};return t=zi(t,3),Ao(e,(function(e,r,o){vo(n,t(e,r,o),e)})),n}function Sd(e,t){var n={};return t=zi(t,3),Ao(e,(function(e,r,o){vo(n,r,t(e,r,o))})),n}var Td=ui((function(e,t,n){ua(e,t,n)})),Id=ui((function(e,t,n,r){ua(e,t,n,r)})),Ed=Vi((function(e,t){var n={};if(null==e)return n;var r=!1;t=En(t,(function(t){return t=za(t,e),r||(r=t.length>1),t})),ii(e,Fi(e),n),r&&(n=bo(n,m|v|g,Ri));var o=t.length;while(o--)Pa(n,t[o]);return n}));function jd(e,t){return Ld(e,Gl(zi(t)))}var Dd=Vi((function(e,t){return null==e?{}:ha(e,t)}));function Ld(e,t){if(null==e)return{};var n=En(Fi(e),(function(e){return[e]}));return t=zi(t),ma(e,n,(function(e,n){return t(e,n[0])}))}function Ad(e,t,n){t=za(t,e);var r=-1,o=t.length;o||(o=1,e=a);while(++r<o){var i=null==e?a:e[Ls(t[r])];i===a&&(r=o,i=n),e=Mu(i)?i.call(e):i}return e}function Nd(e,t,n){return null==e?e:wa(e,t,n)}function Rd(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:wa(e,t,n,r)}var xd=Di(kd),Pd=Di(Cd);function Ud(e,t,n){var r=lu(e),o=r||hu(e)||Fu(e);if(t=zi(t,4),null==n){var a=e&&e.constructor;n=o?r?new a:[]:wu(e)&&Mu(a)?Cr(kt(e)):{}}return(o?kn:Ao)(e,(function(e,r,o){return t(n,e,r,o)})),n}function Vd(e,t){return null==e||Pa(e,t)}function Bd(e,t,n){return null==e?e:Ua(e,t,Ya(n))}function Fd(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:Ua(e,t,Ya(n),r)}function Gd(e){return null==e?[]:Qn(e,kd(e))}function Hd(e){return null==e?[]:Qn(e,Cd(e))}function Yd(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=Xu(n),n=n===n?n:0),t!==a&&(t=Xu(t),t=t===t?t:0),_o(Xu(e),t,n)}function zd(e,t,n){return t=Ku(t),n===a?(n=t,t=0):n=Ku(n),e=Xu(e),Go(e,t,n)}function qd(e,t,n){if(n&&"boolean"!=typeof n&&cs(e,t,n)&&(t=n=a),n===a&&("boolean"==typeof t?(n=t,t=a):"boolean"==typeof e&&(n=e,e=a)),e===a&&t===a?(e=0,t=1):(e=Ku(e),t===a?(t=e,e=0):t=Ku(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Wt();return Gt(e+o*(t-e+on("1e-"+((o+"").length-1))),t)}return ba(e,t)}var Wd=mi((function(e,t,n){return t=t.toLowerCase(),e+(n?Kd(t):t)}));function Kd(e){return Op(ed(e).toLowerCase())}function $d(e){return e=ed(e),e&&e.replace(et,rr).replace(zt,"")}function Jd(e,t,n){e=ed(e),t=Ra(t);var r=e.length;n=n===a?r:_o($u(n),0,r);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}function Xd(e){return e=ed(e),e&&je.test(e)?e.replace(Ie,or):e}function Qd(e){return e=ed(e),e&&Ue.test(e)?e.replace(Pe,"\\$&"):e}var Zd=mi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),ep=mi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),tp=hi("toLowerCase");function np(e,t,n){e=ed(e),t=$u(t);var r=t?gr(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ci(Rt(o),n)+e+Ci(Nt(o),n)}function rp(e,t,n){e=ed(e),t=$u(t);var r=t?gr(e):0;return t&&r<t?e+Ci(t-r,n):e}function op(e,t,n){e=ed(e),t=$u(t);var r=t?gr(e):0;return t&&r<t?Ci(t-r,n)+e:e}function ap(e,t,n){return n||null==t?t=0:t&&(t=+t),qt(ed(e).replace(Ve,""),t||0)}function ip(e,t,n){return t=(n?cs(e,t,n):t===a)?1:$u(t),Oa(ed(e),t)}function sp(){var e=arguments,t=ed(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var cp=mi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function lp(e,t,n){return n&&"number"!=typeof n&&cs(e,t,n)&&(t=n=a),n=n===a?F:n>>>0,n?(e=ed(e),e&&("string"==typeof t||null!=t&&!xu(t))&&(t=Ra(t),!t&&sr(e))?Wa(_r(e),0,n):e.split(t,n)):[]}var up=mi((function(e,t,n){return e+(n?" ":"")+Op(t)}));function dp(e,t,n){return e=ed(e),n=null==n?0:_o($u(n),0,e.length),t=Ra(t),e.slice(n,n+t.length)==t}function pp(e,t,n){var r=Mr.templateSettings;n&&cs(e,t,n)&&(t=a),e=ed(e),t=od({},t,r,Ai);var i=od({},t.imports,r.imports,Ai),s=kd(i),c=Qn(i,s);kn(s,(function(e){if(ze.test(e))throw new o(d)}));var l,p,f=0,h=t.interpolate||tt,m="__p += '",v=ot((t.escape||tt).source+"|"+h.source+"|"+(h===Ae?We:tt).source+"|"+(t.evaluate||tt).source+"|$","g"),g="//# sourceURL="+(pt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xt+"]")+"\n";e.replace(v,(function(t,n,r,o,a,i){return r||(r=o),m+=e.slice(f,i).replace(nt,ar),n&&(l=!0,m+="' +\n__e("+n+") +\n'"),a&&(p=!0,m+="';\n"+a+";\n__p += '"),r&&(m+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=i+t.length,t})),m+="';\n";var _=pt.call(t,"variable")&&t.variable;if(_){if(ze.test(_))throw new o(u)}else m="with (obj) {\n"+m+"\n}\n";m=(p?m.replace(Ce,""):m).replace(we,"$1").replace(Se,"$1;"),m="function("+(_||"obj")+") {\n"+(_?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(p?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+m+"return __p\n}";var b=kp((function(){return Be(s,g+"return "+m).apply(a,c)}));if(b.source=m,yu(b))throw b;return b}function fp(e){return ed(e).toLowerCase()}function hp(e){return ed(e).toUpperCase()}function mp(e,t,n){if(e=ed(e),e&&(n||t===a))return Jn(e);if(!e||!(t=Ra(t)))return e;var r=_r(e),o=_r(t),i=er(r,o),s=tr(r,o)+1;return Wa(r,i,s).join("")}function vp(e,t,n){if(e=ed(e),e&&(n||t===a))return e.slice(0,br(e)+1);if(!e||!(t=Ra(t)))return e;var r=_r(e),o=tr(r,_r(t))+1;return Wa(r,0,o).join("")}function gp(e,t,n){if(e=ed(e),e&&(n||t===a))return e.replace(Ve,"");if(!e||!(t=Ra(t)))return e;var r=_r(e),o=er(r,_r(t));return Wa(r,o).join("")}function _p(e,t){var n=j,r=D;if(wu(t)){var o="separator"in t?t.separator:o;n="length"in t?$u(t.length):n,r="omission"in t?Ra(t.omission):r}e=ed(e);var i=e.length;if(sr(e)){var s=_r(e);i=s.length}if(n>=i)return e;var c=n-gr(r);if(c<1)return r;var l=s?Wa(s,0,c).join(""):e.slice(0,c);if(o===a)return l+r;if(s&&(c+=l.length-c),xu(o)){if(e.slice(c).search(o)){var u,d=l;o.global||(o=ot(o.source,ed(Ke.exec(o))+"g")),o.lastIndex=0;while(u=o.exec(d))var p=u.index;l=l.slice(0,p===a?c:p)}}else if(e.indexOf(Ra(o),c)!=c){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+r}function bp(e){return e=ed(e),e&&Ee.test(e)?e.replace(Te,yr):e}var yp=mi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Op=hi("toUpperCase");function Mp(e,t,n){return e=ed(e),t=n?a:t,t===a?cr(e)?kr(e):xn(e):e.match(t)||[]}var kp=Ma((function(e,t){try{return On(e,a,t)}catch(n){return yu(n)?n:new o(n)}})),Cp=Vi((function(e,t){return kn(t,(function(t){t=Ls(t),vo(e,t,Al(e[t],e))})),e}));function wp(e){var t=null==e?0:e.length,n=zi();return e=t?En(e,(function(e){if("function"!=typeof e[1])throw new it(l);return[n(e[0]),e[1]]})):[],Ma((function(n){var r=-1;while(++r<t){var o=e[r];if(On(o[0],this,n))return On(o[1],this,n)}}))}function Sp(e){return yo(bo(e,m))}function Tp(e){return function(){return e}}function Ip(e,t){return null==e||e!==e?t:e}var Ep=bi(),jp=bi(!0);function Dp(e){return e}function Lp(e){return ra("function"==typeof e?e:bo(e,m))}function Ap(e){return ca(bo(e,m))}function Np(e,t){return la(e,bo(t,m))}var Rp=Ma((function(e,t){return function(n){return zo(n,e,t)}})),xp=Ma((function(e,t){return function(n){return zo(e,n,t)}}));function Pp(e,t,n){var r=kd(t),o=Ro(t,r);null!=n||wu(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Ro(t,kd(t)));var a=!(wu(n)&&"chain"in n)||!!n.chain,i=Mu(e);return kn(o,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),o=n.__actions__=ai(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,jn([this.value()],arguments))})})),e}function Up(){return ln._===this&&(ln._=gt),this}function Vp(){}function Bp(e){return e=$u(e),Ma((function(t){return pa(t,e)}))}var Fp=ki(En),Gp=ki(wn),Hp=ki(An);function Yp(e){return ls(e)?Hn(Ls(e)):va(e)}function zp(e){return function(t){return null==e?a:xo(e,t)}}var qp=Si(),Wp=Si(!0);function Kp(){return[]}function $p(){return!1}function Jp(){return{}}function Xp(){return""}function Qp(){return!0}function Zp(e,t){if(e=$u(e),e<1||e>U)return[];var n=F,r=Gt(e,F);t=zi(t),e-=F;var o=Kn(r,t);while(++n<e)t(n);return o}function ef(e){return lu(e)?En(e,Ls):Bu(e)?[e]:ai(Ds(ed(e)))}function tf(e){var t=++ft;return ed(e)+t}var nf=Mi((function(e,t){return e+t}),0),rf=Ei("ceil"),of=Mi((function(e,t){return e/t}),1),af=Ei("floor");function sf(e){return e&&e.length?To(e,Dp,Vo):a}function cf(e,t){return e&&e.length?To(e,zi(t,2),Vo):a}function lf(e){return Gn(e,Dp)}function uf(e,t){return Gn(e,zi(t,2))}function df(e){return e&&e.length?To(e,Dp,ia):a}function pf(e,t){return e&&e.length?To(e,zi(t,2),ia):a}var ff=Mi((function(e,t){return e*t}),1),hf=Ei("round"),mf=Mi((function(e,t){return e-t}),0);function vf(e){return e&&e.length?Wn(e,Dp):0}function gf(e,t){return e&&e.length?Wn(e,zi(t,2)):0}return Mr.after=jl,Mr.ary=Dl,Mr.assign=td,Mr.assignIn=nd,Mr.assignInWith=rd,Mr.assignWith=od,Mr.at=ad,Mr.before=Ll,Mr.bind=Al,Mr.bindAll=Cp,Mr.bindKey=Nl,Mr.castArray=Zl,Mr.chain=qc,Mr.chunk=xs,Mr.compact=Ps,Mr.concat=Us,Mr.cond=wp,Mr.conforms=Sp,Mr.constant=Tp,Mr.countBy=rl,Mr.create=id,Mr.curry=Rl,Mr.curryRight=xl,Mr.debounce=Pl,Mr.defaults=sd,Mr.defaultsDeep=cd,Mr.defer=Ul,Mr.delay=Vl,Mr.difference=Vs,Mr.differenceBy=Bs,Mr.differenceWith=Fs,Mr.drop=Gs,Mr.dropRight=Hs,Mr.dropRightWhile=Ys,Mr.dropWhile=zs,Mr.fill=qs,Mr.filter=al,Mr.flatMap=cl,Mr.flatMapDeep=ll,Mr.flatMapDepth=ul,Mr.flatten=$s,Mr.flattenDeep=Js,Mr.flattenDepth=Xs,Mr.flip=Bl,Mr.flow=Ep,Mr.flowRight=jp,Mr.fromPairs=Qs,Mr.functions=md,Mr.functionsIn=vd,Mr.groupBy=fl,Mr.initial=tc,Mr.intersection=nc,Mr.intersectionBy=rc,Mr.intersectionWith=oc,Mr.invert=yd,Mr.invertBy=Od,Mr.invokeMap=ml,Mr.iteratee=Lp,Mr.keyBy=vl,Mr.keys=kd,Mr.keysIn=Cd,Mr.map=gl,Mr.mapKeys=wd,Mr.mapValues=Sd,Mr.matches=Ap,Mr.matchesProperty=Np,Mr.memoize=Fl,Mr.merge=Td,Mr.mergeWith=Id,Mr.method=Rp,Mr.methodOf=xp,Mr.mixin=Pp,Mr.negate=Gl,Mr.nthArg=Bp,Mr.omit=Ed,Mr.omitBy=jd,Mr.once=Hl,Mr.orderBy=_l,Mr.over=Fp,Mr.overArgs=Yl,Mr.overEvery=Gp,Mr.overSome=Hp,Mr.partial=zl,Mr.partialRight=ql,Mr.partition=bl,Mr.pick=Dd,Mr.pickBy=Ld,Mr.property=Yp,Mr.propertyOf=zp,Mr.pull=lc,Mr.pullAll=uc,Mr.pullAllBy=dc,Mr.pullAllWith=pc,Mr.pullAt=fc,Mr.range=qp,Mr.rangeRight=Wp,Mr.rearg=Wl,Mr.reject=Ml,Mr.remove=hc,Mr.rest=Kl,Mr.reverse=mc,Mr.sampleSize=Cl,Mr.set=Nd,Mr.setWith=Rd,Mr.shuffle=wl,Mr.slice=vc,Mr.sortBy=Il,Mr.sortedUniq=kc,Mr.sortedUniqBy=Cc,Mr.split=lp,Mr.spread=$l,Mr.tail=wc,Mr.take=Sc,Mr.takeRight=Tc,Mr.takeRightWhile=Ic,Mr.takeWhile=Ec,Mr.tap=Wc,Mr.throttle=Jl,Mr.thru=Kc,Mr.toArray=Wu,Mr.toPairs=xd,Mr.toPairsIn=Pd,Mr.toPath=ef,Mr.toPlainObject=Qu,Mr.transform=Ud,Mr.unary=Xl,Mr.union=jc,Mr.unionBy=Dc,Mr.unionWith=Lc,Mr.uniq=Ac,Mr.uniqBy=Nc,Mr.uniqWith=Rc,Mr.unset=Vd,Mr.unzip=xc,Mr.unzipWith=Pc,Mr.update=Bd,Mr.updateWith=Fd,Mr.values=Gd,Mr.valuesIn=Hd,Mr.without=Uc,Mr.words=Mp,Mr.wrap=Ql,Mr.xor=Vc,Mr.xorBy=Bc,Mr.xorWith=Fc,Mr.zip=Gc,Mr.zipObject=Hc,Mr.zipObjectDeep=Yc,Mr.zipWith=zc,Mr.entries=xd,Mr.entriesIn=Pd,Mr.extend=nd,Mr.extendWith=rd,Pp(Mr,Mr),Mr.add=nf,Mr.attempt=kp,Mr.camelCase=Wd,Mr.capitalize=Kd,Mr.ceil=rf,Mr.clamp=Yd,Mr.clone=eu,Mr.cloneDeep=nu,Mr.cloneDeepWith=ru,Mr.cloneWith=tu,Mr.conformsTo=ou,Mr.deburr=$d,Mr.defaultTo=Ip,Mr.divide=of,Mr.endsWith=Jd,Mr.eq=au,Mr.escape=Xd,Mr.escapeRegExp=Qd,Mr.every=ol,Mr.find=il,Mr.findIndex=Ws,Mr.findKey=ld,Mr.findLast=sl,Mr.findLastIndex=Ks,Mr.findLastKey=ud,Mr.floor=af,Mr.forEach=dl,Mr.forEachRight=pl,Mr.forIn=dd,Mr.forInRight=pd,Mr.forOwn=fd,Mr.forOwnRight=hd,Mr.get=gd,Mr.gt=iu,Mr.gte=su,Mr.has=_d,Mr.hasIn=bd,Mr.head=Zs,Mr.identity=Dp,Mr.includes=hl,Mr.indexOf=ec,Mr.inRange=zd,Mr.invoke=Md,Mr.isArguments=cu,Mr.isArray=lu,Mr.isArrayBuffer=uu,Mr.isArrayLike=du,Mr.isArrayLikeObject=pu,Mr.isBoolean=fu,Mr.isBuffer=hu,Mr.isDate=mu,Mr.isElement=vu,Mr.isEmpty=gu,Mr.isEqual=_u,Mr.isEqualWith=bu,Mr.isError=yu,Mr.isFinite=Ou,Mr.isFunction=Mu,Mr.isInteger=ku,Mr.isLength=Cu,Mr.isMap=Tu,Mr.isMatch=Iu,Mr.isMatchWith=Eu,Mr.isNaN=ju,Mr.isNative=Du,Mr.isNil=Au,Mr.isNull=Lu,Mr.isNumber=Nu,Mr.isObject=wu,Mr.isObjectLike=Su,Mr.isPlainObject=Ru,Mr.isRegExp=xu,Mr.isSafeInteger=Pu,Mr.isSet=Uu,Mr.isString=Vu,Mr.isSymbol=Bu,Mr.isTypedArray=Fu,Mr.isUndefined=Gu,Mr.isWeakMap=Hu,Mr.isWeakSet=Yu,Mr.join=ac,Mr.kebabCase=Zd,Mr.last=ic,Mr.lastIndexOf=sc,Mr.lowerCase=ep,Mr.lowerFirst=tp,Mr.lt=zu,Mr.lte=qu,Mr.max=sf,Mr.maxBy=cf,Mr.mean=lf,Mr.meanBy=uf,Mr.min=df,Mr.minBy=pf,Mr.stubArray=Kp,Mr.stubFalse=$p,Mr.stubObject=Jp,Mr.stubString=Xp,Mr.stubTrue=Qp,Mr.multiply=ff,Mr.nth=cc,Mr.noConflict=Up,Mr.noop=Vp,Mr.now=El,Mr.pad=np,Mr.padEnd=rp,Mr.padStart=op,Mr.parseInt=ap,Mr.random=qd,Mr.reduce=yl,Mr.reduceRight=Ol,Mr.repeat=ip,Mr.replace=sp,Mr.result=Ad,Mr.round=hf,Mr.runInContext=e,Mr.sample=kl,Mr.size=Sl,Mr.snakeCase=cp,Mr.some=Tl,Mr.sortedIndex=gc,Mr.sortedIndexBy=_c,Mr.sortedIndexOf=bc,Mr.sortedLastIndex=yc,Mr.sortedLastIndexBy=Oc,Mr.sortedLastIndexOf=Mc,Mr.startCase=up,Mr.startsWith=dp,Mr.subtract=mf,Mr.sum=vf,Mr.sumBy=gf,Mr.template=pp,Mr.times=Zp,Mr.toFinite=Ku,Mr.toInteger=$u,Mr.toLength=Ju,Mr.toLower=fp,Mr.toNumber=Xu,Mr.toSafeInteger=Zu,Mr.toString=ed,Mr.toUpper=hp,Mr.trim=mp,Mr.trimEnd=vp,Mr.trimStart=gp,Mr.truncate=_p,Mr.unescape=bp,Mr.uniqueId=tf,Mr.upperCase=yp,Mr.upperFirst=Op,Mr.each=dl,Mr.eachRight=pl,Mr.first=Zs,Pp(Mr,function(){var e={};return Ao(Mr,(function(t,n){pt.call(Mr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Mr.VERSION=i,kn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Mr[e].placeholder=Mr})),kn(["drop","take"],(function(e,t){Ir.prototype[e]=function(n){n=n===a?1:Ft($u(n),0);var r=this.__filtered__&&!t?new Ir(this):this.clone();return r.__filtered__?r.__takeCount__=Gt(n,r.__takeCount__):r.__views__.push({size:Gt(n,F),type:e+(r.__dir__<0?"Right":"")}),r},Ir.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),kn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==N||n==x;Ir.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:zi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),kn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Ir.prototype[e]=function(){return this[n](1).value()[0]}})),kn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Ir.prototype[e]=function(){return this.__filtered__?new Ir(this):this[n](1)}})),Ir.prototype.compact=function(){return this.filter(Dp)},Ir.prototype.find=function(e){return this.filter(e).head()},Ir.prototype.findLast=function(e){return this.reverse().find(e)},Ir.prototype.invokeMap=Ma((function(e,t){return"function"==typeof e?new Ir(this):this.map((function(n){return zo(n,e,t)}))})),Ir.prototype.reject=function(e){return this.filter(Gl(zi(e)))},Ir.prototype.slice=function(e,t){e=$u(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Ir(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(t=$u(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Ir.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ir.prototype.toArray=function(){return this.take(F)},Ao(Ir.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Mr[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Mr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof Ir,l=s[0],u=c||lu(t),d=function(e){var t=o.apply(Mr,jn([e],s));return r&&p?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var p=this.__chain__,f=!!this.__actions__.length,h=i&&!p,m=c&&!f;if(!i&&u){t=m?t:new Ir(this);var v=e.apply(t,s);return v.__actions__.push({func:Kc,args:[d],thisArg:a}),new Tr(v,p)}return h&&m?e.apply(this,s):(v=this.thru(d),h?r?v.value()[0]:v.value():v)})})),kn(["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 o=this.value();return t.apply(lu(o)?o:[],e)}return this[n]((function(n){return t.apply(lu(n)?n:[],e)}))}})),Ao(Ir.prototype,(function(e,t){var n=Mr[t];if(n){var r=n.name+"";pt.call(un,r)||(un[r]=[]),un[r].push({name:t,func:n})}})),un[yi(a,O).name]=[{name:"wrapper",func:a}],Ir.prototype.clone=Er,Ir.prototype.reverse=jr,Ir.prototype.value=Dr,Mr.prototype.at=$c,Mr.prototype.chain=Jc,Mr.prototype.commit=Xc,Mr.prototype.next=Qc,Mr.prototype.plant=el,Mr.prototype.reverse=tl,Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=nl,Mr.prototype.first=Mr.prototype.head,It&&(Mr.prototype[It]=Zc),Mr},wr=Cr();ln._=wr,o=function(){return wr}.call(t,n,t,r),o===a||(r.exports=o)}).call(this)}).call(this,n("c8ba"),n("62e4")(e))},"2f5a":function(e,t,n){"use strict";var r,o,a,i=n("cce9"),s=n("3eba"),c=n("dfdb"),l=n("0273"),u=n("0e6f"),d=n("7685"),p=n("b2ed"),f=n("6e9a"),h="Object already initialized",m=s.TypeError,v=s.WeakMap,g=function(e){return a(e)?o(e):r(e,{})},_=function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}};if(i||d.state){var b=d.state||(d.state=new v);b.get=b.get,b.has=b.has,b.set=b.set,r=function(e,t){if(b.has(e))throw new m(h);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},a=function(e){return b.has(e)}}else{var y=p("state");f[y]=!0,r=function(e,t){if(u(e,y))throw new m(h);return t.facade=e,l(e,y,t),t},o=function(e){return u(e,y)?e[y]:{}},a=function(e){return u(e,y)}}e.exports={set:r,get:o,has:a,enforce:g,getterFor:_}},"2f97":function(e,t,n){"use strict";var r=n("ab36"),o=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a("Can't set "+o(e)+" as a prototype")}},"2fa7":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("9a13"),o=n.n(r),a=n("b5f1"),i=n.n(a),s=n("373a"),c=n.n(s);function l(e){return l="function"==typeof i.a&&"symbol"==typeof c.a?function(e){return typeof e}:function(e){return e&&"function"==typeof i.a&&e.constructor===i.a&&e!==i.a.prototype?"symbol":typeof e},l(e)}n("d9e2");var u=n("b915"),d=n.n(u);function p(e,t){if("object"!=l(e)||!e)return e;var n=e[d.a];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function f(e){var t=p(e,"string");return"symbol"==l(t)?t:t+""}function h(e,t,n){return(t=f(t))in e?o()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},3002:function(e,t,n){e.exports=n("96a8")},"304f":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return d}));var r=n("3b4c"),o=n.n(r),a=n("7a23");const i="el",s="is-",c=(e,t,n,r,o)=>{let a=`${e}-${t}`;return n&&(a+="-"+n),r&&(a+="__"+r),o&&(a+="--"+o),a},l=o()("namespaceContextKey"),u=e=>{const t=e||(Object(a["getCurrentInstance"])()?Object(a["inject"])(l,Object(a["ref"])(i)):Object(a["ref"])(i));return Object(a["computed"])(()=>Object(a["unref"])(t)||i)},d=(e,t)=>{const n=u(t),r=(t="")=>c(n.value,e,t,"",""),o=t=>t?c(n.value,e,"",t,""):"",a=t=>t?c(n.value,e,"","",t):"",i=(t,r)=>t&&r?c(n.value,e,t,r,""):"",l=(t,r)=>t&&r?c(n.value,e,"",t,r):"",d=(t,r)=>t&&r?c(n.value,e,t,"",r):"",p=(t,r,o)=>t&&r&&o?c(n.value,e,t,r,o):"",f=(e,...t)=>{const n=!(t.length>=1)||t[0];return e&&n?`${s}${e}`:""},h=e=>{const t={};for(const r in e)e[r]&&(t[`--${n.value}-${r}`]=e[r]);return t},m=t=>{const r={};for(const o in t)t[o]&&(r[`--${n.value}-${e}-${o}`]=t[o]);return r},v=e=>`--${n.value}-${e}`,g=t=>`--${n.value}-${e}-${t}`;return{namespace:n,b:r,e:o,m:a,be:i,em:l,bm:d,bem:p,is:f,cssVar:h,cssVarName:v,cssVarBlock:m,cssVarBlockName:g}}},"30b5":function(e,t,n){"use strict";var r=n("c532");function o(e){return encodeURIComponent(e).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 a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var i=[];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)),i.push(o(t)+"="+o(e))})))})),a=i.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},"30d3":function(e,t,n){"use strict";e.exports=function(e){return e.size}},"30ef":function(e,t,n){"use strict";var r=n("f75e");e.exports=r},"310f":function(e,t,n){"use strict";var r=n("437b"),o=n("042b"),a=Array.prototype;e.exports=function(e){var t=e.every;return e===a||r(a,e)&&t===a.every?o:t}},3118:function(e,t,n){e.exports=n("0d79")},"31e7":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return a}));var r=n("0898"),o=n("9ad7");const a=Object(r["c"])([String,Object,Function]),i={Close:o["Close"]},s={Close:o["Close"],SuccessFilled:o["SuccessFilled"],InfoFilled:o["InfoFilled"],WarningFilled:o["WarningFilled"],CircleCloseFilled:o["CircleCloseFilled"]},c={primary:o["InfoFilled"],success:o["SuccessFilled"],warning:o["WarningFilled"],error:o["CircleCloseFilled"],info:o["InfoFilled"]},l={validating:o["Loading"],success:o["CircleCheck"],error:o["CircleClose"]}},3272:function(e,t,n){"use strict";var r=n("2545");e.exports=r},3327:function(e,t,n){"use strict";n("21b8");var r=n("c18e");e.exports=r("Function","bind")},3393:function(e,t,n){e.exports=n("b539")},"33d1":function(e,t,n){"use strict";var r=n("23e7"),o=n("7b0b"),a=n("07fa"),i=n("5926"),s=n("44d2");r({target:"Array",proto:!0},{at:function(e){var t=o(this),n=a(t),r=i(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}}),s("at")},"33f3":function(e,t,n){"use strict";var r=n("00ce"),o=n("3bbf"),a=n("2714"),i=n("f213"),s=n("0d25"),c=r("%WeakMap%",!0),l=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),p=o("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+a(e))},delete:function(n){if(c&&n&&("object"===typeof n||"function"===typeof n)){if(e)return p(e,n)}else if(i&&t)return t["delete"](n);return!1},get:function(n){return c&&n&&("object"===typeof n||"function"===typeof n)&&e?l(e,n):t&&t.get(n)},has:function(n){return c&&n&&("object"===typeof n||"function"===typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){c&&n&&("object"===typeof n||"function"===typeof n)?(e||(e=new c),u(e,n,r)):i&&(t||(t=i()),t.set(n,r))}};return n}:i},"344d":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("8afb"),o=n("7a23");const a=({from:e,replacement:t,scope:n,version:a,ref:i,type:s="API"},c)=>{Object(o["watch"])(()=>Object(o["unref"])(c),o=>{o&&Object(r["a"])(n,`[${s}] ${e} is about to be deprecated in version ${a}, please use ${t} instead.\nFor more detail, please visit: ${i}\n`)},{immediate:!0})}},"34af":function(e,t,n){"use strict";var r=n("23e7"),o=n("cfe9"),a=n("8a96"),i=n("6b37"),s=n("2005"),c=n("015d");function l(){try{var e=new ArrayBuffer(16,{maxByteLength:1024});new Uint8Array(e).setFromHex("cafed00d")}catch(t){return!0}}o.Uint8Array&&r({target:"Uint8Array",proto:!0,forced:l()},{setFromHex:function(e){i(this),a(e),s(this.buffer);var t=c(e,this).read;return{read:t,written:t/2}}})},3511:function(e,t,n){"use strict";var r=TypeError,o=9007199254740991;e.exports=function(e){if(e>o)throw new r("Maximum allowed index exceeded");return e}},3515:function(e,t,n){"use strict";var r=n("437b"),o=n("d877"),a=Array.prototype;e.exports=function(e){var t=e.findIndex;return e===a||r(a,e)&&t===a.findIndex?o:t}},3581:function(e,t,n){(function(t){!function(t,n){e.exports=n()}(0,(function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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,s(r.key),r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function c(e){return(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})(e)}var l="undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&("mac"===wx.getSystemInfoSync().platform||"windows"===wx.getSystemInfoSync().platform),d="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting)||u,p="undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),f="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),h="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),m="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),v="undefined"!=typeof uni&&"undefined"==typeof window&&"function"==typeof uni.requireNativePlugin,g=v&&"ios"===uni.getDeviceInfo().platform.toLocaleLowerCase(),_=(v&&uni.getDeviceInfo().platform.toLocaleLowerCase(),d||p||f||h||m||v),b=void 0!==l&&(void 0!==l.nativeModuleProxy||void 0!==l.ReactNative),y=p?qq:f?tt:h?swan:m?my:d?wx:v?uni:{},O=function(e){if("object"!==c(e)||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n};function M(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(O(e)){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}return!1}var k=function(){return r((function t(){e(this,t),this._n="WebRequest"}),[{key:"request",value:function(e,t){var n=this,r="".concat(this._n,".request"),o=e.downloadUrl||"",a=(e.method||"PUT").toUpperCase(),s=e.url;if(console.log("%c tim-upload-plugin %c","background:#0abf5b; padding:1px; border-radius:3px; color: #fff","background:transparent","".concat(r," URL:").concat(s)),e.qs){var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"=";return M(e)?"":O(e)?Object.keys(e).map((function(r){var o=encodeURIComponent(r)+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(e)})).join(t):o+encodeURIComponent(e[r])})).filter(Boolean).join(t):void 0}(e.qs);c&&(s+="".concat(-1===s.indexOf("?")?"?":"&").concat(c))}var l=new XMLHttpRequest;l.open(a,s,!0),l.responseType=e.dataType||"text";var u=e.headers||{};if(e.uploadByIP&&(u=i(i({},u),{},{host:e.uploadIP})),!M(u))for(var d in u)u.hasOwnProperty(d)&&"content-length"!==d.toLowerCase()&&"user-agent"!==d.toLowerCase()&&"origin"!==d.toLowerCase()&&"host"!==d.toLowerCase()&&l.setRequestHeader(d,u[d]);return l.onload=function(){if(200===l.status)t(null,n._xhrRes(l,n._xhrBody(l,o,e.uploadByIP&&e.uploadIP),u));else{if(e.uploadIP&&-1===e.url.indexOf(e.uploadIP))return e.url=function(e,t){return e.replace(/^http(s)?:\/\/(.*?)\//,"https://".concat(t,"/"))}(e.url,e.uploadIP),e.uploadByIP=!0,n.request(e,t);var r={code:l.status,message:JSON.stringify(l.responseText)};t(r,n._xhrRes(l,n._xhrBody(l,o,e.uploadByIP&&e.uploadIP),u))}},l.onerror=function(r){var a=n._xhrBody(l,o,e.uploadByIP&&e.uploadIP),i={code:l.status,message:JSON.stringify(l.responseText)};a||l.statusText||0!==l.status||(r.message="CORS blocked or network error"),t(i,n._xhrRes(l,a)),i=null},e.onProgress&&l.upload&&(l.upload.onprogress=function(t){var n=t.total,r=t.loaded,o=Math.floor(100*r/n);e.onProgress({total:n,loaded:r,percent:(o>=100?100:o)/100})}),l.send(e.resources),l}},{key:"_xhrRes",value:function(e,t){var n={};return e.getAllResponseHeaders().trim().split("\n").forEach((function(e){if(e){var t=e.indexOf(":"),r=e.substr(0,t).trim().toLowerCase(),o=e.substr(t+1).trim();n[r]=o}})),{statusCode:e.status,statusMessage:e.statusText,headers:n,data:t}}},{key:"_xhrBody",value:function(e,t,n){return 200===e.status&&t?{location:t,uploadIP:n}:{response:e.responseText,uploadIP:n}}}])}(),C=["unknown","image","video","audio","log"],w=["name"],S=function(){return r((function t(){e(this,t)}),[{key:"request",value:function(e,t){var n=this,r=e.resources,o=void 0===r?"":r,a=e.headers,s=void 0===a?{}:a,c=e.url,l=e.downloadUrl,u=void 0===l?"":l,d=c,p=null,f=u.match(/^(https?:\/\/[^/]+\/)([^/]*\/?)(.*)$/),h=decodeURIComponent(f[3]),v=h.indexOf("?")>-1?h.split("?")[0]:h,_={key:e.fileKey?e.fileKey:v,success_action_status:200,"Content-Type":""},b={};if(g){var O=c.split("?sign=");if(O.length>1){var M=O[1];d="".concat(O[0],"?sign=").concat(encodeURIComponent("".concat(M))),b.sign=decodeURIComponent(M),b.signature=decodeURIComponent(M)}}var k={url:d,header:s,name:"file",filePath:o,formData:i(i({},_),b),timeout:e.timeout||3e5};if(m){var S=k;S.name,k=i(i({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(S,w)),{},{fileName:"file",fileType:C[e.fileType]})}return(p=y.uploadFile(i(i({},k),{},{success:function(e){n._handleResponse({response:e,downloadUrl:u,callback:t})},fail:function(e){n._handleResponse({response:e,downloadUrl:u,callback:t})}}))).onProgressUpdate&&p.onProgressUpdate((function(t){e.onProgress&&e.onProgress({total:t.totalBytesExpectedToSend,loaded:t.totalBytesSent,percent:Math.floor(t.progress)/100})})),p}},{key:"_handleResponse",value:function(e){var t=e.downloadUrl,n=e.response,r=e.callback,o=n.header,a={};if(o)for(var s in o)o.hasOwnProperty(s)&&(a[s.toLowerCase()]=o[s]);var c=+n.statusCode;200===c?r(null,{statusCode:c,headers:a,data:i(i({},n.data),{},{location:t})}):r({code:c,message:JSON.stringify(n.data)},{statusCode:c,headers:a,data:void 0})}}])}(),T=function(){return r((function t(){e(this,t)}),[{key:"request",value:function(e,t){var n=this,r=e.resources,o=void 0===r?"":r,a=e.fileKey,i=void 0===a?"":a,s=e.url,c=e.downloadUrl,l=void 0===c?"":c,u=new FormData;u.append("key",i),u.append("success_action_status",200),u.append("file",{uri:o,type:"application/octet-stream",name:"uploaded_file"}),fetch(s,{method:"POST",headers:{"Content-Type":"multipart/form-data"},body:u}).then((function(e){n._handleResponse({response:e,downloadUrl:l,callback:t})})).catch((function(e){n._handleResponse({response:e,downloadUrl:l,callback:t})}))}},{key:"_handleResponse",value:function(e){var t=e.downloadUrl,n=e.response,r=e.callback,o=n.headers,a=n.status,i=o&&o.map||{};200===a?r(null,{statusCode:200,headers:i,data:{location:t}}):r({code:a,message:JSON.stringify(n)},{statusCode:a,headers:i,data:void 0})}}])}();return function(){return r((function t(){e(this,t),this.retry=1,this.tryCount=0,this.systemClockOffset=0,this.httpRequest=_?new S:b?new T:new k,console.log("TIMUploadPlugin.VERSION: ".concat("1.4.3"))}),[{key:"uploadFile",value:function(e,t){var n=this;return this.httpRequest.request(e,(function(r,o){r&&n.tryCount<n.retry&&n.allowRetry(r)?(n.tryCount++,n.uploadFile(e,t)):(n.tryCount=0,t(r,o))}))}},{key:"allowRetry",value:function(e){var t=!1,n=!1;if(e){var r=e.headers&&(e.headers.date||e.headers.Date)||e.error&&e.error.ServerTime;try{var o=e.error&&e.error.Code,a=e.error&&e.error.Message;("RequestTimeTooSkewed"===o||"AccessDenied"===o&&"Request has expired"===a)&&(n=!0)}catch(l){}if(n&&r){var i=Date.now(),s=Date.parse(r);Math.abs(i+this.systemClockOffset-s)>=3e4&&(this.systemClockOffset=s-i,t=!0)}else 5===Math.floor(e.statusCode/100)&&(t=!0)}return t}}],[{key:"getVersion",value:function(){return"1.4.3"}}])}()}))}).call(this,n("c8ba"))},3584:function(e,t,n){"use strict";var r=n("ce18"),o=n("4e19");e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(a){}}},"35b0":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d}));var r=n("3b4c"),o=n.n(r),a=n("0931"),i=n("8afb"),s=n("304f"),c=n("7a23");const l={prefix:Math.floor(1e4*Math.random()),current:0},u=o()("elIdInjection"),d=()=>Object(c["getCurrentInstance"])()?Object(c["inject"])(u,l):l,p=e=>{const t=d();a["isClient"]||t!==l||Object(i["a"])("IdInjection","Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed\nusage: app.provide(ID_INJECTION_KEY, {\n prefix: number,\n current: number,\n})");const n=Object(s["c"])();return Object(a["computedEager"])(()=>Object(c["unref"])(e)||`${n.value}-id-${t.prefix}-${t.current++}`)}},"362a":function(e,t,n){"use strict";var r=n("a5eb"),o=n("7042"),a=n("96ed"),i=n("06fa"),s=n("9883"),c=n("fb2d"),l=n("b0ea"),u=n("7ef9"),d=n("fdbe"),p=a&&a.prototype,f=!!a&&i((function(){p["finally"].call({then:function(){}},(function(){}))}));if(r({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(e){var t=l(this,s("Promise")),n=c(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!o&&c(a)){var h=s("Promise").prototype["finally"];p["finally"]!==h&&d(p,"finally",h,{unsafe:!0})}},3653:function(e,t,n){!function(t,r){e.exports=r(n("5781"),n("595e"),n("e23e"),n("b3bc"))}(window,(function(e,t,n,r){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=31)}([function(e,t,n){"use strict";n.r(t),n.d(t,"mainUrl",(function(){return r})),n.d(t,"backupUrl",(function(){return o})),n.d(t,"Mode",(function(){return a})),n.d(t,"Role",(function(){return i})),n.d(t,"VIDEO_STAT_BIT",(function(){return s})),n.d(t,"AUDIO_STAT_BIT",(function(){return c})),n.d(t,"AUDIO_MUTE_BIT",(function(){return l})),n.d(t,"VIDEO_MUTE_BIT",(function(){return u})),n.d(t,"VIDEO_MUTED_MASK",(function(){return d})),n.d(t,"AUX_VIDEO_MUTED_MASK",(function(){return p})),n.d(t,"AUDIO_MUTED_MASK",(function(){return f})),n.d(t,"MAIN_STREAM_MSID",(function(){return h})),n.d(t,"AUX_STREAM_MSID",(function(){return m})),n.d(t,"StreamType",(function(){return v})),n.d(t,"TRTC_QUALITY_UNKNOWN",(function(){return g})),n.d(t,"TRTC_QUALITY_EXCELLENT",(function(){return _})),n.d(t,"TRTC_QUALITY_GOOD",(function(){return b})),n.d(t,"TRTC_QUALITY_POOR",(function(){return y})),n.d(t,"TRTC_QUALITY_BAD",(function(){return O})),n.d(t,"TRTC_QUALITY_VBAD",(function(){return M})),n.d(t,"TRTC_QUALITY_DISCONNECTED",(function(){return k})),n.d(t,"DTLS_STATE_UNKNOWN",(function(){return C})),n.d(t,"SuccessRate",(function(){return w})),n.d(t,"MTA_API_PENDING",(function(){return S})),n.d(t,"MTA_API_SUCCESS",(function(){return T})),n.d(t,"ConnectionState",(function(){return I})),n.d(t,"UPLINK_RECONNECTION_COUNT",(function(){return E})),n.d(t,"DOWNLINK_RECONNECTION_COUNT",(function(){return j})),n.d(t,"SIGNAL_RECONNECTION_COUNT",(function(){return D})),n.d(t,"KIBANA_EVENT",(function(){return L})),n.d(t,"SIGNAL_PING_TIMEOUT",(function(){return A})),n.d(t,"SIGNAL_PING_PONG_INTERVAL",(function(){return N})),n.d(t,"INNER_EVENT",(function(){return R})),n.d(t,"AI_NOISE_REDUCE_ASSETS_PATH",(function(){return x})),n.d(t,"MAX_NUMBER_ROOM_ID",(function(){return P})),n.d(t,"NAME",(function(){return U})),n.d(t,"CONSOLE_DOMESTIC",(function(){return V})),n.d(t,"CONSOLE_FOREIGN",(function(){return B})),n.d(t,"BUY_ADDRESS_DOMESTIC",(function(){return F})),n.d(t,"BUY_ADDRESS_FOREIGN",(function(){return G})),n.d(t,"REGION_CHINA",(function(){return H})),n.d(t,"REGION_SINGAPORE",(function(){return Y})),n.d(t,"REGION_FRANKFURT",(function(){return z})),n.d(t,"REGION_SEOUL",(function(){return q})),n.d(t,"REGION_BOMBAY",(function(){return W})),n.d(t,"REGION_SILICON",(function(){return K}));const r="wss://qcloud.rtc.qq.com:8687",o="wss://bk.rtc.qq.com:8687",a={RTC:1,LIVE:2},i={HOST:20,AUDIENCE:21},s=1,c=8,l=64,u=16,d=1,p=2,f=4,h="5Y2wZK8nANNAoVw6dSAHVjNxrD1ObBM2kBPV",m="224d130c-7b5c-415b-aaa2-79c2eb5a6df2",v={NONE:0,AUDIO:1,MAIN:2,AUX:7},g=0,_=1,b=2,y=3,O=4,M=5,k=6,C="unknown",w={JOIN:"join",PUBLISH:"publish",UNPUBLISH:"unpublish",LOCAL_STREAM_INITIALIZE:"local_stream_initialize",SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscibe",UPLINK_CONNECTION:"uplink_connection",UPLINK_RECONNECTION:"uplink_reconnection",DOWNLINK_CONNECTION:"downlink_connection",DOWNLINK_RECONNECTION:"downlink_reconnection",SIGNAL_CONNECTION:"signal_connection",SIGNAL_RECONNECTION:"signal_reconnection",UPDATE_STREAM:"update_stream"},S="pending",T="success",I={CONNECTING:"connecting",CONNECTED:"connected",DISCONNECTED:"disconnected"},E=30,j=30,D=30,L={SDK_CONSTRUCT:"sdkConstruct",SDK_LOGIN:"sdkLogin",DELTA_JOIN:"delta-join",REJOIN:"rejoin",LEAVE:"leave",DELTA_LEAVE:"delta-leave",PUBLISH:"publish",DELTA_PUBLISH:"delta-publish",UNPUBLISH:"unpublish",SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",UPLINK_CONNECTION:"uplink-connection",UPLINK_RECONNECTION:"uplink-reconnection",DOWNLINK_CONNECTION:"downlink-connection",DOWNLINK_RECONNECTION:"downlink-reconnection",ON_TRACK:"ontrack",SET_LOCAL_DESCRIPTION:"setLocalDescription",SET_REMOTE_DESCRIPTION:"setRemoteDescription",ICE_CONNECTION_STATE:"iceConnectionState",LOCAL_STREAM_INITIALIZE:"stream-initialize",SIGNAL_CONNECTION:"websocketConnectionState",SIGNAL_RECONNECTION:"websocketReconnectionState",UPDATE_STREAM:"update-stream",RECOVER_SUBSCRIPTION:"recover-subscription"},A=6e3,N=1e4,R={SET_REMOTE_OFFER_FINISHED:"set-remote-offer-finished"},x="https://web.sdk.qcloud.com/trtc/webrtc/download/aiNoiseReduce/",P=2147483647,U={DEFAULT:"default",BOOLEAN:"boolean",STRING:"string",NUMBER:"number",OBJECT:"object",ARRAY:"array",FUNCTION:"function",FILE:"file",MAP:"map",SET:"set",UNDEFINED:"undefined",VIDEO:"video",AUDIO:"audio",ON_ERROR:"onError",MAIN:"main",RTC:"rtc",LIVE:"live",SMALL:"small",BIG:"big",AUXILIARY:"auxiliary",INVITER:"inviter",INVITEE:"invitee",VIDEO_INPUT:"videoinput",AUDIO_INPUT:"audioinput",LOCAL:"local",REMOTE:"remote",TRTC:"TRTC",WEB:"web",NORMAL:"normal",REJECT:"reject",IGNORE:"ignore",TIMEOUT:"timeout",RIC:"ric",RAF:"raf",INTERVAL:"interval",CANCEL:"cancel",BUSYLINE:"busyline",UNKNOWN:"unknown",SINGLE_CALL:"SingleCall",GROUP_CALL:"groupCall",CALLER:"caller",CALLEE:"callee",COVER:"cover",CONTAIN:"contain",FILL:"fill",AV_CALL:"av_call",CALLKIT_RECORDS_SVR:"callkit_records_svr",SINGLE:"single",GROUP:"group",START_CALL:"start_call",RECEIVE_CALL:"receive_call",CALL_ACCEPTED:"call_accepted",ACCEPT_CALL:"accept_call",CALL_MISSED:"call_missed",NOT_ANSWER_CALL:"not_answer_call",CALL_REJECTED:"call_rejected",REJECT_CALL:"reject_call",CALL_BUSY:"call_busy",IGNORE_CALL:"ignore_call",CANCEL_CALL:"cancel_call",CALL_CANCELED:"call_canceled",CALL_FAILED:"call_failed",CALL_END:"call_end",CALL_INTERRUPTED:"call_interrupted",INVITE_USER:"invite_user",JOIN_IN_GROUP_CALL:"join_in_group_call",EVENT_REPORT:"event_report",HEART_BEAT:"heartbeat",CALLING:"calling",BANNED:"banned",WAITING:"waiting",CONNECTED:"connected"},V="https://console.cloud.tencent.com/im/detail",B="https://console.intl.cloud.tencent.com/im/detail",F="https://buy.cloud.tencent.com/avc?addRavLicense=1",G="https://buy.tencentcloud.com/avc?addRavLicense=1",H=1,Y=9,z=17,q=18,W=21,K=15},function(e,t,n){"use strict";n.r(t),n.d(t,"isMap",(function(){return a})),n.d(t,"isSet",(function(){return i})),n.d(t,"isFile",(function(){return s})),n.d(t,"isNumber",(function(){return c})),n.d(t,"isString",(function(){return l})),n.d(t,"isObject",(function(){return u})),n.d(t,"isBoolean",(function(){return d})),n.d(t,"isPlainObject",(function(){return p})),n.d(t,"isArray",(function(){return f})),n.d(t,"isUndefined",(function(){return h})),n.d(t,"isNativeClass",(function(){return v})),n.d(t,"isArrayOrObject",(function(){return g})),n.d(t,"isFunction",(function(){return _})),n.d(t,"isInstanceOfError",(function(){return b})),n.d(t,"getType",(function(){return y})),n.d(t,"TimeUtil",(function(){return M})),n.d(t,"stringifyError",(function(){return k})),n.d(t,"map2String",(function(){return C})),n.d(t,"randomString",(function(){return T})),n.d(t,"isValidType",(function(){return I})),n.d(t,"mapKeys",(function(){return E})),n.d(t,"mapValues",(function(){return j})),n.d(t,"generateRandomRoomID",(function(){return D})),n.d(t,"formatDuration",(function(){return A})),n.d(t,"compareVersion",(function(){return N})),n.d(t,"date2ISOString",(function(){return R})),n.d(t,"getHostType",(function(){return x})),n.d(t,"isCallSignaling",(function(){return P})),n.d(t,"performanceNow",(function(){return U})),n.d(t,"isDomesticSDKAppID",(function(){return V})),n.d(t,"getPurchaseAddress",(function(){return B})),n.d(t,"getRegionId",(function(){return F})),n.d(t,"timeoutForFun",(function(){return G}));var r=n(7),o=n(0);const a=function(e){return y(e)===o.NAME.MAP},i=function(e){return y(e)===o.NAME.SET},s=function(e){return y(e)===o.NAME.FILE},c=function(e){return null!==e&&(typeof e===o.NAME.NUMBER&&!isNaN(e-0)||typeof e===o.NAME.OBJECT&&e.constructor===Number)},l=function(e){return typeof e===o.NAME.STRING},u=function(e){return null!==e&&typeof e===o.NAME.OBJECT},d=function(e){return typeof e===o.NAME.BOOLEAN},p=function(e){if(typeof e!==o.NAME.OBJECT||null===e)return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;let n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n},f=function(e){return typeof Array.isArray===o.NAME.FUNCTION?Array.isArray(e):y(e)===o.NAME.ARRAY},h=function(e){return typeof e===o.NAME.UNDEFINED},m=/^class\s/,v=function(e){return typeof e===o.NAME.FUNCTION&&m.test(e.toString())},g=function(e){return f(e)||u(e)},_=function(e){return typeof e===o.NAME.FUNCTION},b=function(e){return e instanceof Error},y=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()};let O=0;Date.now||(Date.now=function(){return(new Date).getTime()});const M={now(){0===O&&(O=Date.now()-1);const e=Date.now()-O;return e>4294967295?(O+=4294967295,Date.now()-O):e},utc:()=>Math.round(Date.now()/1e3)},k=function(e){return JSON.stringify(e,["message","code"])},C=function(e){if(!a(e))return"not a map!!!";let t="";for(const[n,r]of e.entries()){if(a(r))return`[k=${n} -> ${C(r)}`;t+=`[k=${n} v=${r}] `}return t},w="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",S=w.length,T=function(){let e="";for(let t=32;t>0;--t)e+=w[Math.floor(Math.random()*S)];return e},I=function(e,t){for(const n in e)if(e[n]===t)return!0;return!1};function E(e,t){const n={};return Object.keys(e).forEach(r=>{n[t(e[r],r)]=e[r]}),n}function j(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=t(e[r],r)}),n}function D(){return Math.round(1e8*Math.random())}function L(e){return e<10?"0"+e:e}function A(e){if(e<60)return"00:00:"+L(e);if(e<3600){const t=parseInt(e/60),n=e-60*t;return`00:${L(t)}:${L(n)}`}const t=parseInt(e/3600),n=e-3600*t,r=parseInt(n/60),o=n-60*r;return`${L(t)}:${L(r)}:${L(o)}`}function N(e,t){e=e.split("."),t=t.split(".");const n=Math.max(e.length,t.length);for(;e.length<n;)e.push("0");for(;t.length<n;)t.push("0");for(let r=0;r<n;r++){const n=parseInt(e[r]),o=parseInt(t[r]);if(n>o)return 1;if(n<o)return-1}return 0}const R=function(){const e=new Date,t=e.toISOString(),n=e.getTimezoneOffset()/60;let r="";return r=n<0?n>-10?"+0"+Math.abs(100*n):"+"+Math.abs(100*n):n>=10?"-"+100*n:"-0"+100*n,t.replace("Z",r)};function x(){let e="unknown";return r.IS_MAC&&(e="mac"),r.IS_WIN&&(e="windows"),r.IS_IOS&&(e="ios"),r.IS_ANDROID&&(e="android"),e}function P(e){return e===o.NAME.AV_CALL}function U(){return performance&&performance.now?Math.floor(performance.now()):Date.now()}function V(e){const t=String(e);return t.startsWith("14")||t.startsWith("16")||t.startsWith("17")}function B(e){return`${V(e)?o.BUY_ADDRESS_DOMESTIC:o.BUY_ADDRESS_FOREIGN}&position=${e}&regionId=${F(e)}`}function F(e){return e>=2e7&&e<3e7||e>=172e7&&e<173e7?o.REGION_SINGAPORE:e>=3e7&&e<4e7||e>=173e7&&e<174e7?o.REGION_SEOUL:e>=4e7&&e<5e7||e>=174e7&&e<175e7?o.REGION_FRANKFURT:e>=5e7&&e<6e7||e>=175e7&&e<176e7?o.REGION_BOMBAY:e>=7e7&&e<8e7||e>=177e7&&e<178e7?o.REGION_SILICON:o.REGION_CHINA}async function G(e,t){return Promise.race([e(),new Promise((e,n)=>{setTimeout(()=>{e()},t)})])}},function(e,t,n){"use strict";n.r(t);var r=n(8),o=n(1);let a=0;const i=new Map;function s(){const e=new Date;return`TUICallEngine ${e.toLocaleTimeString("en-US",{hour12:!1})}.${function(e){let t;switch(e.toString().length){case 1:t="00"+e;break;case 2:t="0"+e;break;default:t=e}return t}(e.getMilliseconds())}:`}const c={_data:[],_length:0,_visible:!1,arguments2String(e){let t;if(1===e.length)t=s()+e[0];else{t=s();for(let n=0,{length:r}=e;n<r;n++)Object(o.isArrayOrObject)(e[n])?Object(o.isInstanceOfError)(e[n])?t+=Object(o.stringifyError)(e[n]):t+=JSON.stringify(e[n]):t+=e[n],t+=" "}return t},debug(){if(a<=-1){const e=this.arguments2String(arguments);c.record(e,"debug"),r.a.debug(e)}},log(){if(a<=0){const e=this.arguments2String(arguments);c.record(e,"log"),r.a.log(e)}},info(){if(a<=1){const e=this.arguments2String(arguments);c.record(e,"info"),r.a.info(e)}},warn(){if(a<=2){const e=this.arguments2String(arguments);c.record(e,"warn"),r.a.warn(e)}},error(){if(a<=3){const e=this.arguments2String(arguments);c.record(e,"error"),r.a.error(e)}},time(e){i.set(e,o.TimeUtil.now())},timeEnd(e){if(i.has(e)){const t=o.TimeUtil.now()-i.get(e);return i.delete(e),t}return r.a.warn(`未找到对应label: ${e}, 请在调用 logger.timeEnd 前,调用 logger.time`),0},setLevel(e){e<4&&r.a.log(`${s()}set level from ${a} to ${e}`),a=e},getLevel:()=>a,record(e,t){1100===c._length&&(c._data.splice(0,100),c._length=1e3),c._length++,c._data.push(`${e} [${t}] \n`)},getLog:()=>c._data};t.default=c},function(e,t,n){"use strict";var r=n(19),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function i(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:c,isUndefined:i,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):a(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={UNKNOWN:65535,NO_NETWORK:2805,FAILURE_SWITCH_TO_AUDIO:60001,FAILURE_SWITCH_TO_VIDEO:60002,NOT_MICROPHONE_LIST:60003,NOT_CAMERA_LIST:60004,NOT_SUPPORT:60006,ERROR_PACKAGE_NOT_PURCHASED:-1001,ERROR_PACKAGE_NOT_SUPPORTED:-1002,ERROR_TIM_VERSION_OUTDATED:-1003,ERROR_PERMISSION_DENIED:-1101,ERROR_GET_DEVICE_LIST_FAIL:-1102,ERROR_INIT_FAIL:-1201,ERROR_PARAM_INVALID:-1202,ERROR_REQUEST_REFUSED:-1203,ERROR_REQUEST_REPEATED:-1204,ERROR_SCENE_NOT_SUPPORTED:-1205,ERROR_SIGNALING_SEND_FAIL:-1401,ERROR_INVALID_INVITEID:8010,ERROR_INVALID_SEND_FAIL:20003,ERROR_HTTP:3e4,ERROR_BLACKLIST:20007}},function(e,t,n){var r;self,r=()=>(()=>{"use strict";var e={530:function(e,t,n){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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0});var i,s=n(928),c=n(434),l=n(757),u=n(150),d=n(758),p=n(23);!function(e){e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARING=2]="WARING",e[e.ERROR=3]="ERROR"}(i||(i={}));var f={metric:!0,context:!0},h=function(e,t,n){return void 0===n&&(n=0),(0,s.isPlainObject)(e)?(0,s.isPlainObject)(t)?(Object.keys(t).forEach((function(r){var o=e[r],a=t[r];e[r]=f[r]&&0===n?h(o,a,1):a})),e):e:(0,s.isPlainObject)(t)?t:{}},m={clsConfig:{endpoint:"",topicId:""}},v=function(){function e(e){var t=this;this.url="",this.uploadChannel="",this.sendPipe=null,this.sendEsPipe=null,this._logLevel=i.INFO,this._getReportDataList=[];var n=e||m,r=n.clsConfig,s=n.esConfig,c=r.endpoint,f=r.topicId;this.esConfig=s,this.endpoint=c,this.topicId=f;var h=this.buildUploadUrl();this.url=h,this.initPageUnloadMonitor(),this.sendPipe=(0,l.createPipeline)([(0,p.createThrottlePipe)(this,5),(0,u.formatClsLog)(),(0,d.limitLengthPipe)(),function(e){return o(t,void 0,void 0,(function(){var t,n,r=this;return a(this,(function(i){return t=0,(n=function(){return o(r,void 0,void 0,(function(){var r;return a(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.send({url:h,data:e})];case 1:return o.sent(),[3,3];case 2:return r=o.sent(),t<=2?(t++,setTimeout((function(){n()}),1e3)):console.debug(r),[3,3];case 3:return[2]}}))}))})(),[2]}))}))}])}return e.prototype.initPageUnloadMonitor=function(){var e=this,t=this;!(0,s.isMiniProgram)()&&document&&"function"==typeof document.addEventListener&&document.addEventListener("visibilitychange",(function(){if("hidden"===document.visibilityState){var n=e.getCommonReportData(),r=h(n,{level:i.WARING,method:"PAGE_UNLOAD",type:"event"});if(t.esConfig)try{var s=t.esConfig,c=s.url,f=s.table;(0,l.createPipeline)([(0,p.createThrottlePipe)(t,1),(0,u.formatESLog)({table:f}),(0,d.limitLengthPipe)(),function(t){return o(e,void 0,void 0,(function(){var e;return a(this,(function(n){try{e=new Blob([JSON.stringify(t)],{type:"application/x-www-form-urlencoded"}),null===navigator||void 0===navigator||navigator.sendBeacon(c,e)}catch(e){console.debug(e)}return[2]}))}))}])(r)}catch(e){console.debug(e)}}}))},e.prototype.updateEsConfig=function(e){var t=this;try{if(e){this.esConfig=e;var n=e.url,r=e.table;n&&r&&(this.uploadChannel=n,this.sendEsPipe=(0,l.createPipeline)([(0,p.createThrottlePipe)(this,5),(0,u.formatESLog)({table:r}),(0,d.limitLengthPipe)(),function(e){return o(t,void 0,void 0,(function(){var t,r,i=this;return a(this,(function(s){return t=0,(r=function(){return o(i,void 0,void 0,(function(){var o;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.send({url:n,data:e})];case 1:return a.sent(),[3,3];case 2:return o=a.sent(),t<=2?(t++,setTimeout((function(){r()}),1e3)):console.debug(o),[3,3];case 3:return[2]}}))}))})(),[2]}))}))}]))}}catch(e){console.debug(e)}},e.prototype.updateGetReportData=function(e){"function"==typeof e&&this._getReportDataList.push(e)},e.prototype.setLogLevel=function(e){"number"!=typeof e&&(e=i.INFO),this._logLevel=e},e.prototype.createLogFunc=function(e){var t=this;return function(n,r){t.log(n,r,{level:e})}},e.prototype.buildUploadUrl=function(){return this.endpoint&&this.topicId?"".concat(this.endpoint,"/tracklog?topic_id=").concat(this.topicId):""},e.prototype.info=function(e,t){this.log(e,t,{level:i.INFO})},e.prototype.debug=function(e,t){this.log(e,t,{level:i.DEBUG})},e.prototype.warn=function(e,t){this.log(e,t,{level:i.WARING})},e.prototype.error=function(e,t){this.log(e,t,{level:i.ERROR})},e.prototype.log=function(e,t,n){try{var o=n||{},a=o.level;if(o.topicId,this._logLevel<=a){var i=this.getCommonReportData(),s=h(i,r({level:a,method:e},t));this.sendPipe(s),"function"==typeof this.sendEsPipe&&this.sendEsPipe(s)}}catch(e){console.debug(e)}},e.prototype.getCommonReportData=function(){for(var e={},t=0;t<this._getReportDataList.length;t++)e=h(e,this._getReportDataList[t]());return e},e.prototype.send=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o;return a(this,(function(a){switch(a.label){case 0:n=(t=e||{}).url,r=t.data,a.label=1;case 1:return a.trys.push([1,4,,5]),n?[4,(0,c.request)({url:n,data:r,method:"post"})]:[3,3];case 2:a.sent(),a.label=3;case 3:return[3,5];case 4:throw o=a.sent(),console.debug(o),new Error(o);case 5:return[2]}}))}))},e}();t.default=v},314:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatClsLog=void 0;var r=n(928);t.formatClsLog=function(){return function(e,t){try{t({logs:null==e?void 0:e.map((function(e){var t={};return Object.keys(e).forEach((function(n){if((0,r.isPlainObject)(e[n]))try{t[n]=(0,r.stringifyPlus)(e[n])}catch(e){console.debug(e)}else"time"===n&&(t[n]=new Date(e[n]).toISOString()),t[n]=e[n]+""})),{contents:t,time:e.time}})),source:""})}catch(e){console.debug(e)}}}},597:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatESLog=void 0;var r=n(928);t.formatESLog=function(e){var t=e.table;return function(e,n){try{var o=null==e?void 0:e.map((function(e){var t={};return Object.keys(e).forEach((function(n){if((0,r.isPlainObject)(e[n]))try{t[n]=(0,r.stringifyPlus)(e[n])}catch(e){console.debug(e)}else t[n]="level"===n?e[n]+"":"time"===n?new Date(e[n]).toISOString():e[n]})),t}));n({table:t,report:o})}catch(e){console.debug(e)}}}},150:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatClsLog=t.formatESLog=void 0;var r=n(314);Object.defineProperty(t,"formatClsLog",{enumerable:!0,get:function(){return r.formatClsLog}});var o=n(597);Object.defineProperty(t,"formatESLog",{enumerable:!0,get:function(){return o.formatESLog}})},757:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createPipeline=void 0;var r=n(928);t.createPipeline=function(e){if(!e||!e.reduce||!e.length)throw new TypeError("createPipeline need at least one function param");return 1===e.length?function(t,n){e[0](t,n||r.noop)}:e.reduce((function(e,t){return function(n,o){return void 0===o&&(o=r.noop),e(n,(function(e){return null==t?void 0:t(e,o)}))}}))}},758:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.limitLengthPipe=t.MAX_LOG_LENGTH=void 0;var r=n(928);t.MAX_LOG_LENGTH=102400,t.limitLengthPipe=function(){return function(e,n){try{var o=(e=e||{}).logs,a=void 0===o?[]:o;e.logs=null==a?void 0:a.map((function(e){var n=t.MAX_LOG_LENGTH,o=e.contents;return Object.keys(o).forEach((function(e){var t=o[e];try{t&&t.length>n&&(o[e]=null==t?void 0:t.substring(0,n))}catch(a){console.debug("size of content > limitSize"),o[e]=(0,r.stringifyPlus)(t).substring(0,n)}})),e})),n(e)}catch(e){console.debug(e)}}}},23:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createThrottlePipe=void 0,t.createThrottlePipe=function(e,t){var n,r=[];return function(o,a){if(Array.isArray(o)?r=r.concat(o):r.push(o),t&&r.length>=t||e.sendNow&&r.length>0)return a(r.splice(0,r.length)),void(n&&clearTimeout(n));n&&clearTimeout(n),n=setTimeout((function(){n=null,r.length>0&&a(r.splice(0,r.length))}),e.delay||1e3)}}},434:function(e,t,n){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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.request=void 0;var s=n(147),c=n(310),l=n(928);t.request=function(e){return o(void 0,void 0,void 0,(function(){var t=e.url,n=e.data,o=e.header,u=void 0===o?{}:o,d=e.method,p=void 0===d?"GET":d,f=e.dataType,h=e.responseType,m=i(e,["url","data","header","method","dataType","responseType"]);return a(this,(function(e){return(0,l.isBrowser)()?[2,(0,c.requestXHR)(t,n,{headers:u,method:p,responseType:h,dataType:f})]:(0,l.isMiniProgram)()?[2,(0,s.requestWeapp)(r({url:t,data:n,header:u,method:p,dataType:f,responseType:h},m))]:(console.debug("unsupport env"),[2])}))}))}},147:function(e,t,n){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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.requestWeapp=void 0;var i=n(690),s=0;t.requestWeapp=function(e){return o(this,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:n.trys.push([0,5,6,7]),n.label=1;case 1:return s>=2?[4,(0,i.startBlocking)()]:[3,3];case 2:return n.sent(),[3,1];case 3:return s++,[4,new Promise((function(t,n){wx.request(r(r({},e),{success:function(e){t(e)},fail:function(e){n(e)}}))}))];case 4:return[2,n.sent()];case 5:return t=n.sent(),[2,Promise.reject(t)];case 6:return s--,(0,i.resolveFirstBlock)(),[7];case 7:return[2]}}))}))}},310:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.requestXHR=void 0;var a=n(580),i=n(690),s=0;function c(e,t,n){n.status?t(new Error("Request failed with status code "+n.status)):e(n)}t.default=c,t.requestXHR=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),r(this,void 0,void 0,(function(){var l,u=this;return o(this,(function(d){switch(d.label){case 0:return d.trys.push([0,2,3,4]),[4,new Promise((function(l,d){return r(u,void 0,void 0,(function(){var r,u,p,f,h,m;return o(this,(function(o){switch(o.label){case 0:return s>=2?[4,(0,i.startBlocking)()]:[3,2];case 1:return o.sent(),[3,0];case 2:return s++,r=n.method,u=n.headers,p=void 0===u?{}:u,f=n.responseType,h=void 0===f?"json":f,r=(r||"get").toUpperCase(),Object.assign(p,{"Content-type":"application/json"}),(m=new window.XMLHttpRequest).responseType=h,m.timeout=1e4,m.onreadystatechange=function(){4===m.readyState&&(200===m.status?l({data:m.response}):d({code:m.status,msg:m.statusText}))},m.ontimeout=function(e){d({code:m.status,msg:m.statusText})},m.onloadend=function(){m&&(c((function(e){l(e)}),(function(e){d(e)}),{status:m.status,statusText:m.statusText}),m=null)},m.onabort=function(){m&&(d(new Error("Request aborted")),m=null)},m.onerror=function(){d(new Error("Network Error")),m=null},"GET"===r?e="url".concat(-1===e.indexOf("?")?"?":"&").concat(a.default.stringify(t)):"POST"===r&&(t=JSON.stringify(t)),m.open(r,e,!0),Object.keys(p).forEach((function(e){m.setRequestHeader(e,p[e])})),m.send("POST"===r?t:null),[2]}}))}))}))];case 1:return[2,d.sent()];case 2:throw l=d.sent(),new Error(l);case 3:return s--,(0,i.resolveFirstBlock)(),[7];case 4:return[2]}}))}))}},928:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.date2ISOString=t.stringifyPlus=t.noop=t.isBrowser=t.isMiniProgram=t.isPlainObject=t.appendParams=void 0,t.appendParams=function(e,n){void 0===n&&(n={});var r=[];return Object.keys(n).forEach((function(e){var o=n[e];if(void 0!==o){if((0,t.isPlainObject)(o))try{o=JSON.stringify(o)}catch(e){}r.push("".concat(e,"=").concat(encodeURIComponent(o)))}})),r.length?(e.indexOf("?")>-1?"".concat(e,"&"):"".concat(e,"?"))+r.join("&"):e},t.isPlainObject=function(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n},t.isMiniProgram=function(){try{return!(!(null===wx||void 0===wx?void 0:wx.request)||!(null===wx||void 0===wx?void 0:wx.connectSocket))}catch(e){return!1}},t.isBrowser=function(){try{return!(0,t.isMiniProgram)()&&"undefined"!=typeof window&&void 0!==window.document}catch(e){return!1}},t.noop=function(){};var n=function(){var e=new WeakSet;return function(t,n){if(n instanceof Error)return"Error.message: ".concat(n.message," \n Error.stack: ").concat(n.stack);if("object"==typeof n&&null!==n){if(e.has(n))return"[Circular ".concat(t||"root","]");e.add(n)}return n}};t.stringifyPlus=function(e){if("string"==typeof e)return e;try{return e instanceof Error?(JSON.stringify(e,n())||"undefined").replace(/"/gim,""):JSON.stringify(e,n())||"undefined"}catch(e){return"error happen when aegis stringify: \n ".concat(e.message," \n ").concat(e.stack)}},t.date2ISOString=function(){var e,t=new Date,n=t.toISOString(),r=t.getTimezoneOffset()/60;return e=r<0?r>-10?"+0".concat(Math.abs(100*r)):"+".concat(Math.abs(100*r)):r>=10?"-".concat(100*r):"-0".concat(100*r),n.replace("Z",e)}},580:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(928);t.default={stringify:function(e){return e?Object.keys(e).map((function(t){var n=e[t];if((0,r.isPlainObject)(n))n=JSON.stringify(n);else{if("string"!=typeof n&&"number"!=typeof n)return"";n=+n}return encodeURIComponent(t)+"="+encodeURIComponent(n)})).filter((function(e){return e.length>0})).join("&"):""}}},690:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.startBlocking=t.resolveFirstBlock=void 0;var n=[];t.startBlocking=function(){var e,t=new Promise((function(t){e=t}));return n.push({promise:t,resolve:e}),t},t.resolveFirstBlock=function(){n.length&&(n[0].resolve(),n.shift())}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0});var t=n(530),o={debug:console.debug,info:console.info,warn:console.warn,error:console.error,updateGetReportData:function(e){console.debug(e)}},a=null;e.default=function(e){if(!a){var n=e||{},r=n.clsConfig,i=(n.esConfig,r.endpoint),s=r.topicId;if(!i||!s)return console.debug("endpoint and topicId must not be null"),o;a=new t.default(e)}return a}})(),r})(),e.exports=r()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEVICEID_TYPE=t.DEVICE_TYPE=t.CALL_EXPERMENTEL_API_TYPE=t.LOG_LEVEL=t.MODE_TYPE=t.VALID_VIDEO_PROFILE_LIST=t.BUSINESS_ID=t.ACTION_TYPE=t.CALL_ROLE=t.CALL_STATUS=t.CMD_TYPE=t.CMD_TYPE_LIST=t.CALL_TYPE=void 0;var r=n(14);!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.AUDIO_CALL=1]="AUDIO_CALL",e[e.VIDEO_CALL=2]="VIDEO_CALL"}(t.CALL_TYPE||(t.CALL_TYPE={})),t.CMD_TYPE_LIST=["","audioCall","videoCall"],function(e){e.AUDIO_CALL="audioCall",e.VIDEO_CALL="videoCall",e.HANG_UP="hangup",e.SWITCH_TO_AUDIO="switchToAudio",e.SWITCH_TO_AUDIO_CALL="switch_to_audio_call",e.SWITCH_TO_VIDEO="switchToVideo"}(t.CMD_TYPE||(t.CMD_TYPE={})),function(e){e.IDLE="idle",e.CALLING="calling",e.CONNECTED="connected"}(t.CALL_STATUS||(t.CALL_STATUS={})),function(e){e.UNKNOWN="",e.INVITER="inviter",e.INVITEE="invitee"}(t.CALL_ROLE||(t.CALL_ROLE={})),function(e){e[e.INVITE=1]="INVITE",e[e.CANCEL_INVITE=2]="CANCEL_INVITE",e[e.ACCEPT_INVITE=3]="ACCEPT_INVITE",e[e.REJECT_INVITE=4]="REJECT_INVITE",e[e.INVITE_TIMEOUT=5]="INVITE_TIMEOUT"}(t.ACTION_TYPE||(t.ACTION_TYPE={})),function(e){e[e.SIGNAL=1]="SIGNAL"}(t.BUSINESS_ID||(t.BUSINESS_ID={})),t.VALID_VIDEO_PROFILE_LIST=Object.keys(r.TUICommonDefine.VideoEncoderParams),function(e){e.AUDIO="audio",e.VIDEO="video"}(t.MODE_TYPE||(t.MODE_TYPE={})),function(e){e[e.NORMAL=0]="NORMAL",e[e.RELEASE=1]="RELEASE",e[e.WARNING=2]="WARNING",e[e.ERROR=3]="ERROR",e[e.NONE=4]="NONE"}(t.LOG_LEVEL||(t.LOG_LEVEL={})),function(e){e[e.BASE=Math.pow(2,16)]="BASE",e[e.PRO=Math.pow(2,17)]="PRO",e[e.ULTIMATE=Math.pow(2,18)]="ULTIMATE"}(t.CALL_EXPERMENTEL_API_TYPE||(t.CALL_EXPERMENTEL_API_TYPE={})),function(e){e.AUDIO="audio",e.VIDEO="video",e.CAMERA="camera",e.MICROPHONES="microphones"}(t.DEVICE_TYPE||(t.DEVICE_TYPE={})),function(e){e.audio="microphoneId",e.video="cameraId"}(t.DEVICEID_TYPE||(t.DEVICEID_TYPE={}))},function(e,t,n){"use strict";n.r(t),n.d(t,"IN_Browser",(function(){return r})),n.d(t,"IN_WXMiniProgram",(function(){return o})),n.d(t,"USER_AGENT",(function(){return a})),n.d(t,"IS_IPAD",(function(){return c})),n.d(t,"IS_IPHONE",(function(){return l})),n.d(t,"IS_IPOD",(function(){return u})),n.d(t,"IS_IOS",(function(){return d})),n.d(t,"IOS_VERSION",(function(){return p})),n.d(t,"IS_ANDROID",(function(){return f})),n.d(t,"ANDROID_VERSION",(function(){return h})),n.d(t,"IS_OLD_ANDROID",(function(){return m})),n.d(t,"IS_NATIVE_ANDROID",(function(){return v})),n.d(t,"IS_FIREFOX",(function(){return g})),n.d(t,"FIREFOX_VERSION",(function(){return _})),n.d(t,"IS_EDGE",(function(){return b})),n.d(t,"EDGE_VERSION",(function(){return y})),n.d(t,"IS_EDG",(function(){return O})),n.d(t,"EDG_VERSION",(function(){return M})),n.d(t,"IS_CHROME",(function(){return k})),n.d(t,"CHROME_MAJOR_VERSION",(function(){return C})),n.d(t,"CHROME_VERSION",(function(){return w})),n.d(t,"IS_IE8",(function(){return S})),n.d(t,"IE_VERSION",(function(){return T})),n.d(t,"IS_SAFARI",(function(){return I})),n.d(t,"IS_ANY_SAFARI",(function(){return E})),n.d(t,"SAFARI_VERSION",(function(){return j})),n.d(t,"IS_TBS",(function(){return D})),n.d(t,"TBS_VERSION",(function(){return L})),n.d(t,"IS_X5MQQB",(function(){return A})),n.d(t,"IS_MQQB",(function(){return N})),n.d(t,"MQQB_VERSION",(function(){return R})),n.d(t,"IS_QQB",(function(){return x})),n.d(t,"IS_WECHAT",(function(){return P})),n.d(t,"WECHAT_VERSION",(function(){return U})),n.d(t,"IS_WIN",(function(){return V})),n.d(t,"IS_MAC",(function(){return B})),n.d(t,"IS_LINUX",(function(){return F})),n.d(t,"IS_WX",(function(){return G})),n.d(t,"IS_UCBROWSER",(function(){return H})),n.d(t,"IS_MIUIBROWSER",(function(){return Y})),n.d(t,"IS_HUAWEIBROWSER",(function(){return z})),n.d(t,"HUAWEI_VERSION",(function(){return q})),n.d(t,"BROWSER_VERSION",(function(){return W})),n.d(t,"IS_LOCAL",(function(){return K})),n.d(t,"getBrowserInfo",(function(){return J})),n.d(t,"getOsInfo",(function(){return X}));const r="undefined"!=typeof window,o="undefined"!=typeof wx,a=window.navigator&&window.navigator.userAgent||"",i=/AppleWebKit\/([\d.]+)/i.exec(a),s=i?parseFloat(i.pop()):null,c=/iPad/i.test(a),l=/iPhone/i.test(a)&&!c,u=/iPod/i.test(a),d=l||c||u,p=function(){const e=a.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),f=/Android/i.test(a),h=function(){const e=a.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;const t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(`${e[1]}.${e[2]}`):t||null}(),m=f&&/webkit/i.test(a)&&h<2.3,v=f&&h<5&&s<537,g=/Firefox/i.test(a),_=function(){const e=a.match(/Firefox\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),b=/Edge\//i.test(a),y=b&&function(){const e=a.match(/Edge\/(\d+)/i);if(e&&e[1])return e[1]}(),O=/Edg\//i.test(a),M=function(){const e=a.match(/Edg\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),k=!b&&/Chrome/i.test(a),C=function(){const e=a.match(/Chrome\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),w=function(){const e=a.match(/Chrome\/([\d.]+)/);return e&&e[1]?e[1]:null}(),S=/MSIE\s8\.0/.test(a),T=function(){const e=/MSIE\s(\d+)\.\d/.exec(a);let t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(a)&&/rv:11.0/.test(a)&&(t=11),t}(),I=/Safari/i.test(a)&&!k&&!f&&!b,E=I||d,j=function(){const e=a.match(/Version\/([\d.]+)/);return e&&e[1]?e[1]:null}(),D=/TBS\/\d+/i.test(a),L=function(){const e=a.match(/TBS\/(\d+)/i);if(e&&e[1])return e[1]}(),A=!D&&/MQQBrowser\/\d+/i.test(a)&&/COVC\/\d+/i.test(a),N=!D&&/MQQBrowser\/\d+/i.test(a),R=(N||A)&&function(){const e=a.match(/ MQQBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),x=!D&&/ QQBrowser\/\d+/i.test(a),P=/(micromessenger|webbrowser)/i.test(a),U=P&&function(){const e=a.match(/MicroMessenger\/(\d+)/i);if(e&&e[1])return e[1]}(),V=/Windows/i.test(a),B=/MAC OS X/i.test(a),F=/Linux/i.test(a),G=/MicroMessenger/i.test(a),H=/UCBrowser/i.test(a),Y=/MiuiBrowser/i.test(a),z=/HuaweiBrowser/i.test(a),q=z&&function(){const e=a.match(/HuaweiBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),W=k?"Chrome/"+w:I?"Safari/"+j:"NotSupportedBrowser",K="file:"===location.protocol||"localhost"===location.hostname||/^\d+\.\d+\.\d+\.\d+$/.test(location.hostname),$=new Map([[g,["Firefox",_]],[O,["Edg",M]],[k,["Chrome",w]],[I,["Safari",j]],[D,["TBS",L]],[P&&l,["WeChat",U]],[N,["QQ(Mobile)",R]],[A,["QQ(Mobile X5)",R]],[z,["HW",q]],[b,["EDGE",y]]]);function J(){let e="unknown",t="unknown";return $.get(!0)&&(e=$.get(!0)[0],t=$.get(!0)[1]),{name:e,version:t}}function X(){let e="unknown";return B&&(e="mac"),V&&(e="windows"),f&&(e="android"),d&&(e="iOS"),{name:e}}},function(e,t,n){"use strict";(function(e){let n,r;n="undefined"!=typeof console?console:void 0!==e&&e.console?e.console:"undefined"!=typeof window&&window.console?window.console:{};const o=function(){},a=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"];let{length:i}=a;for(;i--;)r=a[i],console[r]||(n[r]=o);n.methods=a,t.a=n}).call(this,n(35))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_CN_MESSAGE=t.ERROR_MESSAGE=void 0,t.ERROR_MESSAGE={NO_NETWORK:"未连接到网络",FAILURE_SWITCH_TO_AUDIO:"switch to audio call error",FAILURE_SWITCH_TO_VIDEO:"switch to video call error",NOT_MICROPHONE_LIST:"No microphone device",NOT_CAMERA_LIST:"No camera device",ERROR_PACKAGE_NOT_PURCHASED:"You do not have TUICallKit package, please open the free experience in the console: https://console.intl.cloud.tencent.com/im/detail or purchase the official package: ${purchaseAddress}",ERROR_PACKAGE_NOT_SUPPORTED:"The package you purchased does not support this ability. You can refer to here to purchase: ${purchaseAddress}",ERROR_TIM_VERSION_OUTDATED:"TIM SDK version is too old, Please upgrade version",ERROR_PERMISSION_DENIED:"camera permission refused / microphone permission refused. You can perform the trtc capability test at https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html to check whether the current environment supports audio and video calls",ERROR_GET_DEVICE_LIST_FAIL:"Failed to get device list",ERROR_INIT_FAIL:"init or login is not complete, this API needs to be used after init. To solve the problem, please go to: https://cloud.tencent.com/document/product/647/78769#3a61f42b-e06f-49af-88bf-362d40025887",ERROR_REQUEST_REFUSED:"The API is support use in the state of. To solve the problem, please go to: https://cloud.tencent.com/document/product/647/78769#5e65043d-e3dc-4bd3-8220-3ac7694dfa42",ERROR_REQUEST_REPEATED:"The current method is being executed, please do not call it repeatedly",ERROR_REQUEST_REPEATED_SWITCH:"Consistent with the current call type, please do not switch repeatedly",ERROR_SCENE_NOT_SUPPORTED:"In the current call scene, this function is not supported",ERROR_SIGNALING_SEND_FAIL:"signaling failed to send",ERROR_INVALID_INVITEID:"inviteID is invalid or invitation has been processed. To solve the problem, please go to: https://cloud.tencent.com/document/product/647/84363#e97ea97b-7812-42ed-89b7-2a3840ac0e3f",ERROR_INVALID_SEND_FAIL:"Invalid sender or receiver identifier! To solve the problem, please go to: https://cloud.tencent.com/document/product/647/84363#661be1b0-f649-4199-a343-958c3f4f4bbb",ERROR_PARAM_INVALID:"invalid parameter",ERROR_HTTP:"The current page is detected to be using the http protocol(or localhost). To ensure smooth access and experience of all functions of TUICallEngine SDK for production environment users, please use the https protocol to access the audio and video application page. More Info: https://web.sdk.qcloud.com/trtc/webrtc/doc/en/tutorial-05-info-browser.html#h2-3",NOT_SUPPORT:"The current page does not have webRTC capability. You can perform the trtc capability test at https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html to check whether the current environment supports audio and video calls"},t.ERROR_CN_MESSAGE={NO_NETWORK:"未连接到网络",FAILURE_SWITCH_TO_AUDIO:"切换语音通话失败",FAILURE_SWITCH_TO_VIDEO:"切换视频通话失败",NOT_MICROPHONE_LIST:"没有麦克风设备",NOT_CAMERA_LIST:"没有摄像头设备",ERROR_PACKAGE_NOT_PURCHASED:"您的应用还未开通音视频通话(TUICallKit)能力,您可以去控制台申请免费体验: https://console.cloud.tencent.com/im/detail 或购买通话能力套餐包: ${purchaseAddress}",ERROR_PACKAGE_NOT_SUPPORTED:"您暂不支持使用该能力,请前往如下购买页购买开通: ${purchaseAddress}",ERROR_TIM_VERSION_OUTDATED:"TIM SDK 版本太旧,请升级版本",ERROR_PERMISSION_DENIED:"摄像头/麦克风权限被拒绝,可以前往: https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html 进行 trtc 能力测试,查看当前环境是否支持音视频通话",ERROR_GET_DEVICE_LIST_FAIL:"获取设备列表失败",ERROR_INIT_FAIL:"TUICallEngine 初始化登录未完成,需要在 init 或 login 完成后使用此 API 。解决方案请前往: https://cloud.tencent.com/document/product/647/78769#3a61f42b-e06f-49af-88bf-362d40025887",ERROR_REQUEST_REFUSED:"当前通话状态无法使用该 API。解决方案请前往: https://cloud.tencent.com/document/product/647/78769#5e65043d-e3dc-4bd3-8220-3ac7694dfa42",ERROR_REQUEST_REPEATED:"当前方法正在执行中,请勿重复调用",ERROR_REQUEST_REPEATED_SWITCH:"与当前通话类型一致,请勿重复切换",ERROR_SCENE_NOT_SUPPORTED:"当前通话场景不支持该功能",ERROR_SIGNALING_SEND_FAIL:"信令发送失败",ERROR_INVALID_INVITEID:"邀请 ID 无效或邀请已处理。解决方案请前往: https://cloud.tencent.com/document/product/647/84363#e97ea97b-7812-42ed-89b7-2a3840ac0e3f",ERROR_INVALID_SEND_FAIL:"消息发送方或接收方 UserID 无效或不存在。解决方案请前往: https://cloud.tencent.com/document/product/647/84363#661be1b0-f649-4199-a343-958c3f4f4bbb",ERROR_PARAM_INVALID:"参数错误",ERROR_HTTP:"检测到当前页面正处于 http 协议下,为确保生产环境用户顺畅接入和体验 TUICallEngine SDK 的全部功能,请使用 https 协议(或 localhost)访问音视频应用页面。详情请前往:https://web.sdk.qcloud.com/trtc/webrtc/doc/zh-cn/tutorial-05-info-browser.html#h2-3",NOT_SUPPORT:"当前页面不具备 webRTC 能力。可以前往: https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html 进行 trtc 能力测试,查看当前环境是否支持音视频通话"}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(4),i=n(9),s=function(e){function t(t){var n=t.message,r=t.code,o=void 0===r?a.default.UNKNOWN:r,s=e.call(this,n+" "+function(e){for(var t in i.ERROR_CN_MESSAGE)if(a.default[t]===e)return i.ERROR_CN_MESSAGE[t];return"UNKNOWN"}(o)+" <"+function(e){for(var t in a.default)if(a.default[t]===e)return t;return"UNKNOWN"}(o)+": "+o+">")||this;return s.code=o,s.name="TUICallEngineError",s.message_=n,s}return o(t,e),t.prototype.getCode=function(){return this.code},t}(Error);t.default=s},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(2),a=n(4),i=n.n(a),s=n(9);class c{constructor(e){this.sdkappid="",this.version="",this.userid="",this.platform="",this.useragent="",this.method=e,this.codeint=1,this.calltype=1,this.talktime=0,this.message="",this.text="",this.startts=Date.now(),this.endts=0,this.timespan=0,this.time="",this.networktype="",this.host=Object(r.getHostType)()}static bindController(e){c.prototype._eventStatController=e}setCommonInfo(e){const{SDKAppID:t,version:n,userID:o,platform:a,scene:i}=e;this.sdkappid=t,this.version=""+n,this.userid=o,this.platform=a,this.scene=i,this.time=Object(r.date2ISOString)(),this.startts&&this.endts&&!this.timespan&&(this.timespan=Math.abs(this.endts-this.startts))}setEnd(e=!1){this.endts=Date.now(),e?this._eventStatController.pushIn(this):setTimeout(()=>{this._eventStatController.pushIn(this)},0)}setError(e,t,n){return this.setNetworkType(n),t?(e.code&&this.setCode(e.code),e.message&&this.setMessage(e.message)):(this.setCode(i.a.NO_NETWORK),this.setMessage(s.ERROR_MESSAGE.NO_NETWORK)),this}setCode(e){return"ECONNABORTED"===e&&(this.codeint=103),Object(r.isNumber)(e)?this.codeint=e:o.default.warn("SSOLogData.setCode value not a number, please check!",e,typeof e),this}setMessage(e){return Object(r.isString)(e)?(this.message=e,this):this}setText(e){return Object(r.isNumber)(e)?this.text=e.toString():Object(r.isString)(e)?this.text=e:Object(r.isPlainObject)(e)&&(this.text=JSON.stringify(e)),this}setTalkTime(e){return this.talktime=e,this}setMessageType(e){return this.msgType=e,this}setCallType(e){return this.calltype=e,this}setNetworkType(e){return Object(r.isUndefined)(e)?o.default.warn("SSOLogData.setNetworkType value is undefined, please check!"):this.networktype=e,this}}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TUICallEvent=void 0,t.TUICallEvent={ERROR:"onError",SDK_READY:"sdkReady",ON_CALL_BEGIN:"onCallBegin",INVITED:"onInvited",ON_CALL_RECEIVED:"onCallReceived",USER_ACCEPT:"onUserAccept",USER_ENTER:"onUserEnter",USER_LEAVE:"onUserLeave",REJECT:"onReject",NO_RESP:"onNoResp",LINE_BUSY:"onLineBusy",CALLING_CANCEL:"onCallingCancel",ON_CALL_CANCELED:"onCallCanceled",KICKED_OUT:"onKickedOut",CALLING_TIMEOUT:"onCallingTimeout",CALL_END:"onCallEnd",CALLING_END:"onCallEnd",USER_VIDEO_AVAILABLE:"onUserVideoAvailable",USER_AUDIO_AVAILABLE:"onUserAudioAvailable",USER_VOICE_VOLUME:"onUserVoiceVolume",GROUP_CALL_INVITEE_LIST_UPDATE:"onGroupCallInviteeListUpdate",CALL_TYPE_CHANGED:"onCallTypeChanged",DEVICED_UPDATED:"onDeviceUpdated",MESSAGE_SENT_BY_ME:"onMessageSentByMe"}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return h}));var r=n(2),o=n(1);class a{constructor(){this._table="timweb-trtccalling",this._report=[]}pushIn(e){r.default.debug("SSOLogBody.pushIn",this._report.length,e),this._report.push(e)}backfill(e){Object(o.isArray)(e)&&0!==e.length&&(r.default.debug("SSOLogBody.backfill",this._report.length,e.length),this._report.unshift(...e))}getLogsNumInMemory(){return this._report.length}isEmpty(){return 0===this._report.length}_reset(){this._report.length=0,this._report=[]}getTable(){return this._table}getLogsInMemory(){const e=this._report.slice();return this._reset(),e}}var i=n(11),s=n(17),c=n(29),l=n.n(c);const u={CURRENT:{COMMON:"https://webim.tim.qq.com"},PRODUCTION:{COMMON:"https://webim.tim.qq.com"},OVERSEA_PRODUCTION:{COMMON:"https://api.im.qcloud.com"},SANDBOX:{COMMON:"https://events.tim.qq.com"},TEST:{COMMON:"https://test.tim.qq.com"}},d={IM_OPEN_STAT:"imopenstat"},p={TIM_WEB_TRTCCALLING_REPORT:"tweb_trtccalling_report"},f={imopenstat:"v4"};class h{constructor(){this.TAG="trtccalling-ssolog-event",this._reportBody=new a,this._version=s.version||"",this.MIN_THRESHOLD=20,this.MAX_THRESHOLD=100,this.WAITING_TIME=6e4,this.INTERVAL=2e4,this._timerID=0,this._resetLastReportTime(),this._startReportTimer(),this._retryCount=0,this.MAX_RETRY_COUNT=3}reportAtOnce(){r.default.debug("EventStatController.reportAtOnce"),this._report()}pushIn(e){e instanceof i.default&&(e.setCommonInfo({SDKAppID:Number(sessionStorage.getItem("sdkAppId")),version:this._version,userID:sessionStorage.getItem("userId")}),this._reportBody.pushIn(e),this._report())}_resetLastReportTime(){this._lastReportTime=Date.now()}_startReportTimer(){this._timerID=setInterval(()=>{Date.now()<this._lastReportTime+this.WAITING_TIME||this._reportBody.isEmpty()||this._report()},this.INTERVAL)}_stopReportTimer(){this._timerID>0&&(clearInterval(this._timerID),this._timerID=0)}_report(){if(this._reportBody.isEmpty())return;const e=Math.ceil(+new Date/1e3),t=sessionStorage.getItem("sdkAppId"),n=this._reportBody.getLogsInMemory(),a={table:this._reportBody.getTable(),report:n},i=`${u.CURRENT.COMMON}/${f.imopenstat}/${d.IM_OPEN_STAT}/${p.TIM_WEB_TRTCCALLING_REPORT}/?sdkappid=${t}&reqtime=${e}`;l.a.post(i,JSON.stringify(a)).then(()=>{this._resetLastReportTime(),this._retryCount>0&&(r.default.debug("EventStatController.report retry success"),this._retryCount=0)}).catch(e=>{r.default.warn("EventStatController.report, error:"+Object(o.stringifyError)(e)),this._reportBody.backfill(n),this._reportBody.getLogsNumInMemory()>this.MAX_THRESHOLD||this._retryCount===this.MAX_RETRY_COUNT||0===this._timerID?this._retryCount=0:this._retryCount+=1})}reset(){r.default.log("EventStatController.reset"),this._stopReportTimer(),this._report()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TUICommonDefine=t.TUICallType=void 0,t.TUICallType={AUDIO_CALL:1,VIDEO_CALL:2,DEVCIED_CAMERA:"camera",DEVCIED_MICROPHONES:"microphones"},t.TUICommonDefine={VideoEncoderParams:{"120p":"120p","120p_2":"120p_2","180p":"180p","180p_2":"180p_2","240p":"240p","360p":"360p","360p_2":"360p_2","480p":"480p","480p_2":"480p_2","720p":"720p","1080p":"1080p","1440p":"1440p","4K":"4K"}}},function(e,t,n){"use strict";n.r(t),n.d(t,"LOG_STATUS",(function(){return r}));const r={START:"start",SUCCESS:"success",FAIL:"fail"};t.default={SDK_CONSTRUCT:"sdkConstruct",SDK_READY:"sdkReady",SDK_NOT_READY:"sdkNotReady",LOGIN:"login",LOGOUT:"logout",CALL:"call",GROUP_CALL:"groupCall",ACCEPT:"accept",REJECT:"reject",HANGUP:"hangup",START_REMOTE_VIEW:"startRemoteView",STOP_REMOTE_VIEW:"stopRemoteView",START_LOCAL_VIEW:"startLocalView",STOP_LOCAL_VIEW:"stopLocalView",OPEN_CAMERA:"openCamera",CLOSE_CAMERA:"closeCamera",SET_MIC_MUTE:"setMicMute",SET_VIDEO_QUALITY:"setVideoQuality",SWITCH_TO_AUDIO_CALL:"switchToAudioCall",SWITCH_TO_VIDEO_CALL:"switchToVideoCall",SET_VIDEO_RENDER_PARAMS:"setVideoRenderParams",MUTE:"mute",UNMUTE:"unmute",SWITCH_CALL_MIDIA_TYPE:"switchCallMediaType",GET_DEVICE_LIST:"getDeviceList",SWITCH_DEVICE:"switchDevice",SET_SELF_INFO:"setSelfInfo",ENABLE_AI_VOICE:"enableAIVoice",CHANGE_CALL_STATUS:"changeCallStatus",TALK_TIME:"talktime",ERROR:"error",INVITED:"invited",GROUP_CALL_INVITEE_LIST_UPDATE:"group_call_invitee_list_update",USER_ENTER:"user_enter",USER_LEAVE:"user_leave",NO_RESP:"no_resp",LINE_BUSY:"line_busy",CALLING_CANCEL:"calling_cancel",KICKED_OUT:"kicked_out",CALLING_TIMEOUT:"calling_timeout",CALLING_END:"calling_end",USER_VIDEO_AVAILABLE:"user_video_available",USER_AUDIO_AVAILABLE:"user_audio_available",USER_VOICE_VOLUME:"user_voice_volume",CALL_TYPE_CHANGED:"call_type_changed",DEVICED_UPDATED:"deviced_updated",QUALITY_REPORT:"quality_report",TSIGNALING_NEW_INVITATION_RECEIVED:"tsignaling_new_invitation_received"}},function(e,t,n){"use strict";(function(t){var r=n(3),o=n(43),a=n(21),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(c=n(22)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(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)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(i)})),e.exports=l}).call(this,n(42))},function(e){e.exports=JSON.parse('{"name":"tuicall-engine-webrtc","version":"1.6.1","description":"腾讯云 tuicall-engine-webrtc","main":"index","private":true,"dependencies":{"rtc-ai-denoiser":"latest","EventEmitter":"^1.0.0","axios":"^0.21.0","dayjs":"^1.11.7","tuikit-logger":"latest"},"peerDependencies":{"trtc-js-sdk":"latest","tim-js-sdk":"latest","tsignaling":"latest"},"devDependencies":{"@babel/preset-typescript":"^7.12.7","@typescript-eslint/eslint-plugin":"^4.33.0","@typescript-eslint/parser":"^4.33.0","docdash-blue":"^1.1.9","eslint":"^7.27.0","eslint-config-google":"^0.14.0","eslint-plugin-prettier":"^4.0.0","fs-extra":"^9.0.1","jsdoc":"^3.6.11","prettier":"^2.5.0","pretty":"^2.0.0","replace":"^1.2.2","rimraf":"^4.1.2","ts-loader":"^8.4.0","typescript":"^3.9.7","watch":"^1.0.2","webpack":"^4.44.1","webpack-cli":"^3.3.12"},"scripts":{"watch":"watch \'npm run build_withcopy4\' src","dev":"npm run watch","build":"webpack --config webpack.config.js","build_withcopy":"npm run build && cp dist/npm/tuicall-engine-webrtc.js ../../github/TUICalling/Web/node_modules/tuicall-engine-webrtc/tuicall-engine-webrtc.js","build_withcopy2":"npm run build && cp dist/npm/tuicall-engine-webrtc.js ../sdk/trtc-calling-webrtc-demo/node_modules/tuicall-engine-webrtc/tuicall-engine-webrtc.js","build_withcopy3":"npm run build && cp dist/npm/tuicall-engine-webrtc.js ./example-js/tuicall-engine-webrtc.js","build_withcopy4":"npm run build && cp dist/npm/tuicall-engine-webrtc.js ./example/node_modules/tuicall-engine-webrtc/tuicall-engine-webrtc.js","build_demo3":"npm run build && cp dist/npm/tuicall-engine-webrtc.js ./examples/call-engine-demo-vue3//node_modules/tuicall-engine-webrtc/tuicall-engine-webrtc.js","build:package":"node build/package-bundle.js","lint":"./node_modules/.bin/eslint ./src; exit 0","fix":"./node_modules/.bin/eslint --fix ./src; exit 0","prerelease":"npm run lint && npm run build && npm run doc && npm run build:package","doc":"npm run doc:clean && tsc --target ESNEXT && npm run doc:build","doc:build":"npm run changelog && npm run main && ./node_modules/.bin/jsdoc -c build/jsdoc/jsdoc.json && node ./build/jsdoc/fix-doc.js","doc:clean":"node ./build/jsdoc/clean-doc.js","changelog":"cp CHANGELOG.md build/jsdoc/tutorials/20-CHANGELOG.md","main":"cp README.md build/jsdoc/main.md"},"repository":{"type":"git","url":"https://github.com/tencentyun/TUICallKit/tree/main/Web"},"author":"Tencent Cloud Terminal R&D Center","license":"ISC"}')},function(t,n){t.exports=e},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)}}},function(e,t,n){"use strict";var r=n(3);function o(e){return encodeURIComponent(e).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 a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!=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)),i.push(o(t)+"="+o(e))})))})),a=i.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(3),o=n(44),a=n(45),i=n(20),s=n(46),c=n(49),l=n(50),u=n(23);e.exports=function(e){return new Promise((function(t,n){var d=e.data,p=e.headers,f=e.responseType;r.isFormData(d)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(m+":"+v)}var g=s(e.baseURL,e.url);function _(){if(h){var r="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,a={data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};o(t,n,a),h=null}}if(h.open(e.method.toUpperCase(),i(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=_:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(_)},h.onabort=function(){h&&(n(u("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(u("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||l(g))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;b&&(p[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&r.forEach(p,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),f&&"json"!==f&&(h.responseType=e.responseType),"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(),n(e),h=null)})),d||(d=null),h.send(d)}))}},function(e,t,n){"use strict";var r=n(21);e.exports=function(e,t,n,o,a){var i=new Error(e);return r(i,t,n,o,a)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],a=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(a,l),r.forEach(i,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(void 0,t[o])})),r.forEach(s,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var u=o.concat(a).concat(i).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(d,l),n}},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},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateBusiness=t.businessValidate=void 0;var a=n(5),i=n(10),s=n(4),c=n(9),l=n(6),u=n(1);function d(e,t,n){if(a.default().error("validateBusiness.fail",{text:{error:e}}),2905===e.code)throw new i.default({message:c.ERROR_MESSAGE.ERROR_TIM_VERSION_OUTDATED+" >= 2.21.2",code:s.default.ERROR_TIM_VERSION_OUTDATED});var r="";throw r=t===l.CALL_EXPERMENTEL_API_TYPE.PRO?function(e){var t=u.isDomesticSDKAppID(e)?""+c.ERROR_CN_MESSAGE.ERROR_PACKAGE_NOT_SUPPORTED:""+c.ERROR_MESSAGE.ERROR_PACKAGE_NOT_SUPPORTED;return t.replace("${purchaseAddress}",u.getPurchaseAddress(e))}(n)+" <ERROR_PACKAGE_NOT_SUPPORTED: "+s.default.ERROR_PACKAGE_NOT_SUPPORTED+">":function(e){var t=u.isDomesticSDKAppID(e)?""+c.ERROR_CN_MESSAGE.ERROR_PACKAGE_NOT_PURCHASED:""+c.ERROR_MESSAGE.ERROR_PACKAGE_NOT_PURCHASED;return t.replace("${purchaseAddress}",u.getPurchaseAddress(e))}(n)+" <ERROR_PACKAGE_NOT_PURCHASED: "+s.default.ERROR_PACKAGE_NOT_PURCHASED+">",new Error(r)}function p(e,t,n){return r(this,void 0,void 0,(function(){return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.tim.callExperimentalAPI("isCommercialAbilityEnabled",e)];case 1:if(r.sent().data.enabled)return[2,t.apply(this,n)];try{e===l.CALL_EXPERMENTEL_API_TYPE.BASE&&(this._callDataReport.setCodeAndMessage(s.default.ERROR_PACKAGE_NOT_SUPPORTED,c.ERROR_MESSAGE.ERROR_PACKAGE_NOT_SUPPORTED),this._callDataReport.uploadToKibana())}catch(e){console.warn("base ability check failed, userId:"+this.getUserID()+", error: "+e)}throw new i.default({message:c.ERROR_MESSAGE.ERROR_PACKAGE_NOT_SUPPORTED,code:s.default.ERROR_PACKAGE_NOT_SUPPORTED});case 2:return d(r.sent(),e,this._sdkAppID),[3,3];case 3:return[2]}}))}))}t.businessValidate=function(e){return function(t,n,a){var i=a.value;return a.value=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r(this,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,p.call(this,e,i,t)];case 1:return[2,n.sent()];case 2:throw n.sent();case 3:return[2]}}))}))},a}},t.validateBusiness=function(e,t,n){return r(this,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e.callExperimentalAPI("isCommercialAbilityEnabled",t)];case 1:if((r=o.sent()).data.enabled)return[2,Promise.resolve(r.data.enabled)];throw new i.default({message:c.ERROR_MESSAGE.ERROR_PACKAGE_NOT_SUPPORTED,code:s.default.ERROR_PACKAGE_NOT_SUPPORTED});case 2:return d(o.sent(),t,n),[3,3];case 3:return[2]}}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRoleMapping=t.callTypeMapping=void 0;var r=n(6),o=n(0);t.callTypeMapping=function(e){var t=o.NAME.UNKNOWN;switch(e){case r.CALL_TYPE.AUDIO_CALL:t=o.NAME.AUDIO;break;case r.CALL_TYPE.VIDEO_CALL:t=o.NAME.VIDEO}return t},t.callRoleMapping=function(e){var t=e;return t===r.CALL_ROLE.INVITER?t=o.NAME.CALLER:t===r.CALL_ROLE.INVITEE&&(t=o.NAME.CALLEE),t}},function(e,t,n){e.exports=n(37)},function(e,t,n){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",a="hour",i="day",s="week",c="month",l="quarter",u="year",d="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,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,m={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("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,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()),o=t.clone().add(r,c),a=n-o<0,i=t.clone().add(r+(a?-1:1),c);return+(-(r+(n-o)/(a?o-i:i-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:u,w:s,d:i,D:d,h:a,m:o,s:r,ms:n,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},_="en",b={};b[_]=m;var y="$isDayjsObject",O=function(e){return e instanceof w||!(!e||!e[y])},M=function e(t,n,r){var o;if(!t)return _;if("string"==typeof t){var a=t.toLowerCase();b[a]&&(o=a),n&&(b[a]=n,o=a);var i=t.split("-");if(!o&&i.length>1)return e(i[0])}else{var s=t.name;b[s]=t,o=s}return!r&&o&&(_=o),o||!r&&_},k=function(e,t){if(O(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new w(n)},C=g;C.l=M,C.i=O,C.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function m(e){this.$L=M(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[y]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.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(f);if(r){var o=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.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()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return k(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<k(e)},v.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,l=!!C.u(t)||t,p=C.p(e),f=function(e,t){var r=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return l?r:r.endOf(i)},h=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,v=this.$M,g=this.$D,_="set"+(this.$u?"UTC":"");switch(p){case u:return l?f(1,0):f(31,11);case c:return l?f(1,v):f(0,v+1);case s:var b=this.$locale().weekStart||0,y=(m<b?m+7:m)-b;return f(l?g-y:g+(6-y),v);case i:case d:return h(_+"Hours",0);case a:return h(_+"Minutes",1);case o:return h(_+"Seconds",2);case r:return h(_+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var s,l=C.p(e),p="set"+(this.$u?"UTC":""),f=(s={},s[i]=p+"Date",s[d]=p+"Date",s[c]=p+"Month",s[u]=p+"FullYear",s[a]=p+"Hours",s[o]=p+"Minutes",s[r]=p+"Seconds",s[n]=p+"Milliseconds",s)[l],h=l===i?this.$D+(t-this.$W):t;if(l===c||l===u){var m=this.clone().set(d,1);m.$d[f](h),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(n,l){var d,p=this;n=Number(n);var f=C.p(l),h=function(e){var t=k(p);return C.w(t.date(t.date()+Math.round(e*n)),p)};if(f===c)return this.set(c,this.$M+n);if(f===u)return this.set(u,this.$y+n);if(f===i)return h(1);if(f===s)return h(7);var m=(d={},d[o]=e,d[a]=t,d[r]=1e3,d)[f]||1,v=this.$d.getTime()+n*m;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),a=this.$H,i=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,o,a){return e&&(e[n]||e(t,r))||o[n].slice(0,a)},f=function(e){return C.s(a%12||12,e,"0")},m=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,l,3);case"MMMM":return d(l,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(a);case"HH":return C.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(a,i,!0);case"A":return m(a,i,!1);case"m":return String(i);case"mm":return C.s(i,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,d,p){var f,h=this,m=C.p(d),v=k(n),g=(v.utcOffset()-this.utcOffset())*e,_=this-v,b=function(){return C.m(h,v)};switch(m){case u:f=b()/12;break;case c:f=b();break;case l:f=b()/3;break;case s:f=(_-g)/6048e5;break;case i:f=(_-g)/864e5;break;case a:f=_/t;break;case o:f=_/e;break;case r:f=_/1e3;break;default:f=_}return p?f:C.a(f)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return b[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=M(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),S=w.prototype;return k.prototype=S,[["$ms",n],["$s",r],["$m",o],["$H",a],["$W",i],["$M",c],["$y",u],["$D",d]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),k.extend=function(e,t){return e.$i||(e(t,w,k),e.$i=!0),k},k.locale=M,k.isDayjs=O,k.unix=function(e){return k(1e3*e)},k.en=b[_],k.Ls=b,k.p={},k}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(32),o=n(12),a=n(14);t.default={TUICallEngine:r.default,TUICallEvent:o.TUICallEvent,TUICallType:a.TUICallType}},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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__decorate||function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},c=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};Object.defineProperty(t,"__esModule",{value:!0});var l=n(33),u=n(1),d=n(34),p=n(18),f=n(57),h=n(58),m=n(60),v=n(11),g=n(15),_=n(13),b=n(7),y=n(61),O=n(2),M=n(5),k=n(6),C=n(10),w=n(4),S=n(9),T=n(0),I=n(62),E=n(68),j=n(70),D=n(72),L=p,A=f,N=n(17),R="TUICallEngine",x=M.default({clsConfig:{endpoint:D.CLS_ENDPOINT,topicId:D.CLS_TOPIC_ID}}),P=function(){function e(e){this._localPlayOptions={mirror:!1,muted:!0,objectFit:T.NAME.COVER},this._remotePlayOptions={mirror:!1,muted:!1,objectFit:T.NAME.COVER},this._permission={audio:!1,video:!1},this._initialCallId="",this._sdkAppID=e.SDKAppID,this._isLogin=!1,this._trtcClient=null,this._userID="",this._userSig="",this._switchCallModeStatus=!0,this._timExternal=!1,this._inviterInviteID={},this._audioVideoSwitchIdList=[],this._acceptedUserObject={},this._callTimeout=30,this._callStatus=k.CALL_STATUS.IDLE,this._callType=k.CALL_TYPE.UNKNOWN,this._roomID=0,this._isInviter=!1,this._isGroupCall=!1,this._inviteeList=[],this._unHandledInviteeList=[],this._handledInviteeList=[],sessionStorage.setItem("sdkAppId",""+this._sdkAppID),this._localViewId="",this._netMonitor=new y.default,this._outerEmitter=new l.default,this._delegate=new m.default(this._outerEmitter),this._callDataReport=new E.CallDataReport({version:N.version,sdkAppId:e.SDKAppID}),this._dataReportObserver=new E.TUICallEngineObserver(this._outerEmitter,this._callDataReport),this._connectStartTime=0,e.tim&&(this._timExternal=!0),this.tim=e.tim||A.create(e),this._tsignalingClient=new h.default(this,r(r({tim:this.tim},e),{isRejectNotifyAll:!0})),this._callRecordReport=new j.CallRecordReport({version:N.version,tim:this.tim}),this._recordReportObserver=new j.TUICallEngineRecordObserver(this._outerEmitter,this._callRecordReport),this._quality="480p";var t=new v.default(g.default.SDK_CONSTRUCT);this._eventStatController=new _.default,v.default.bindController(this._eventStatController),t.setText({SDKVersion:N.version,userAgent:b.USER_AGENT,SDKAppID:e.SDKAppID,timExternal:this._timExternal}).setEnd(),this._initLogger(e),this._logger.info(R+".constructor.start",{text:{data:e},type:"api"}),O.default.info(R+" SDK Version:"+N.version+", SDKAppID:"+e.SDKAppID+", UserAgent:"+b.USER_AGENT)}return e.prototype._initLogger=function(e){var t=this;this._logger=x,this._logger.updateGetReportData((function(){return{app:"TUICallEngine-web",verison:N.version,useragent:{userAgent:window.navigator.userAgent,language:window.navigator.language,platform:window.navigator.platform},platform:T.NAME.WEB,sdkappid:e.SDKAppID,time:+new Date,userid:t.getUserID(),callinfo:{roomid:t.getRoomID(),inviteid:t.getInitialCallId(),callrole:t.isInviter()?T.NAME.INVITER:T.NAME.INVITEE,groupid:t.getGroupID(),calltype:t.getCallType(),handledInviteeList:t.getHandledInviteeList(),unHandledInviteeList:t.getUnHandledInviteeList()},callkitversion:e.callkitVersion||T.NAME.UNKNOWN,framework:e.frameWork||T.NAME.UNKNOWN,isfromchat:e.chat?"true":"false"}}))},e.prototype.getDevicePermission=function(){return this._permission},e.prototype.setDevicePermission=function(e,t){this._permission[e]=t},e.prototype.getTrtcClient=function(){var e;return null===(e=this._trtcClient)||void 0===e?void 0:e.getClient()},e.prototype.getLogger=function(){return this._logger},e.prototype.getUserID=function(){return this._userID},e.prototype.setRoomID=function(e){this._roomID=e},e.prototype.getRoomID=function(){return this._roomID},e.prototype.getCallType=function(){return this._callType},e.prototype.setCallType=function(e){this._callType=e},e.prototype.isInviter=function(){return this._isInviter},e.prototype.setConnectStartTime=function(e){this._connectStartTime=e},e.prototype.getConnectStartTime=function(){return this._connectStartTime},e.prototype.getInviteeList=function(){return this._inviteeList},e.prototype.setInviteeList=function(e){this._inviteeList=c(e)},e.prototype.getCallDataReport=function(){return this._callDataReport},e.prototype.getCallRecordReport=function(){return this._callRecordReport},e.prototype.getUnHandledInviteeList=function(){return this._unHandledInviteeList||[]},e.prototype.setUnHandledInviteeList=function(e){this._unHandledInviteeList=c(e),O.default.log(R+".setUnHandledInviteeList",this._unHandledInviteeList)},e.prototype.addUnHandledInviteeList=function(e){var t=this;void 0===e&&(e=[]),0!==e.length&&e.forEach((function(e){-1===t._unHandledInviteeList.indexOf(e)&&t._unHandledInviteeList.push(e)}))},e.prototype.deleteUnHandledInviteeList=function(e){var t=this;void 0===e&&(e=[]),0!==e.length&&e.forEach((function(e){t._unHandledInviteeList=t._unHandledInviteeList.filter((function(t){return t!==e}))}))},e.prototype.getHandledInviteeList=function(){return this._handledInviteeList||[]},e.prototype.setHandledInviteeList=function(e){this._handledInviteeList=c(e),O.default.log(R+".setHandledInviteeList",this._handledInviteeList)},e.prototype.addHandledInviteeList=function(e){var t=this;void 0===e&&(e=[]),0!==e.length&&e.forEach((function(e){-1===t._handledInviteeList.indexOf(e)&&t._handledInviteeList.push(e)}))},e.prototype.deleteHandledInviteeList=function(e){var t=this;void 0===e&&(e=[]),0!==e.length&&e.forEach((function(e){t._handledInviteeList=t._handledInviteeList.filter((function(t){return t!==e}))}))},e.prototype.isGroupCall=function(){return this._isGroupCall},e.prototype.setIsGroupCall=function(e){this._isGroupCall=e},e.prototype.getGroupID=function(){return this._groupID},e.prototype.setGroupID=function(e){this._groupID=e},e.prototype.setLocalPlayOptions=function(e){void 0===e&&(e={}),this._localPlayOptions=r(r({},this._localPlayOptions),e)},e.prototype.getLocalPlayOptions=function(){return this._localPlayOptions||{}},e.prototype.setRemotePlayOptions=function(e){void 0===e&&(e={}),this._remotePlayOptions=r(r({},this._remotePlayOptions),e)},e.prototype.getRemotePlayOptions=function(){return this._remotePlayOptions||{}},e.prototype.addAcceptedUserList=function(e,t){var n=this;if(0!==t.length)if(e)0===(this._acceptedUserObject[e]||[]).length?this._acceptedUserObject[e]=t:t.forEach((function(t){-1===n._acceptedUserObject[e].indexOf(t)&&n._acceptedUserObject[e].push(t)}));else for(var r=this.getInviterInviteIdList(),o=function(e){var o=r[e],i=a.getInviterInviteIdUserList(o),s=t.filter((function(e){return-1!==i.indexOf(e)}));0===(a._acceptedUserObject[o]||[]).length?a._acceptedUserObject[o]=s:s.forEach((function(e){-1===n._acceptedUserObject[o].indexOf(e)&&n._acceptedUserObject[o].push(e)}))},a=this,i=0;i<r.length;i++)o(i)},e.prototype.getAcceptedUserList=function(e){return this._acceptedUserObject[e]||[]},e.prototype.setIsLogin=function(e){this._isLogin=e},e.prototype.getIsLogin=function(){return this._isLogin},e.createInstance=function(t){return x.updateEsConfig({url:D.ES_URL+"?sdkappid="+(null==t?void 0:t.SDKAppID),table:D.ES_TABLE}),e.instance||(e.instance=new e(t)),e.instance},e.prototype.destroyInstance=function(){return i(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return this.getIsLogin()?this._timExternal?[4,this.logout()]:[3,2]:[3,4];case 1:return t.sent(),[3,4];case 2:return[4,this.tim.destroy()];case 3:t.sent(),t.label=4;case 4:return this._callDataReport.reset(),this._dataReportObserver.removeLister(),this._callRecordReport.reset(),this._recordReportObserver.removeLister(),e.instance=null,[2]}}))}))},e.prototype.setLogLevel=function(e){O.default.setLevel(e),this._tsignalingClient.setLogLevel(e),L.Logger.setLogLevel(1)},e.prototype.on=function(e,t,n){this._outerEmitter.on(e,t,n||this)},e.prototype.off=function(e,t,n){this._outerEmitter.off(e,t,n||this)},e.prototype.init=function(e){return i(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this.login(e)]}))}))},e.prototype.login=function(e){return i(this,void 0,void 0,(function(){var t,n,o,a,i;return s(this,(function(s){switch(s.label){case 0:if(this._logger.updateGetReportData((function(){return{userid:e.userID}})),this._logger.info(R+".login.start",{text:{data:r(r({},e),{userSig:""})},type:"api"}),this.getIsLogin())return this._logger.warn(R+".login.fail",{text:{error:"userId has been login"},type:"api"}),O.default.warn(R+".login - userId has been login"),[2];s.label=1;case 1:return s.trys.push([1,3,,4]),O.default.debug(R+".login - params:",e),this._netMonitor.start(),t=e.userID,n=e.userSig,o=e.assetsPath,this._userID=t,this._callDataReport.setUserID(t),this._userSig=n,this._trtcClient=new d.default({sdkAppID:this._sdkAppID,userID:t,userSig:n,tuiCallEngine:this,assetsPath:o}),sessionStorage.setItem("userId",""+this._userID),[4,this._tsignalingClient.login({userID:t,userSig:n})];case 2:return a=s.sent(),this.setIsLogin(!0),[2,a];case 3:throw i=s.sent(),this._logger.error(R+".login.fail",{text:{error:i},type:"api"}),new Error(R+".login - userId: "+this._userID+" login failed, error: "+i+" ");case 4:return[2]}}))}))},e.prototype.logout=function(){return i(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:O.default.debug(R+".logout"),this._logger.info(R+".logout.start",{text:{data:{userID:this._userID,timExternal:this._timExternal}},type:"api"}),this._userID="",this._userSig="",t.label=1;case 1:return t.trys.push([1,5,,6]),[4,this._resetTUICallEngine()];case 2:return t.sent(),this._trtcClient.removeTRTCEvents(),this._trtcClient=null,this.setIsLogin(!1),this._timExternal?[3,4]:[4,this._tsignalingClient.logout()];case 3:t.sent(),t.label=4;case 4:return[2,!0];case 5:throw e=t.sent(),this._logger.error(R+".logout.fail",{text:{data:{userID:this._userID},error:e},type:"api"}),new Error(R+".logout failed, error: "+e+" ");case 6:return[2]}}))}))},e.prototype.call=function(e){var t,n;return i(this,void 0,void 0,(function(){var o,a,i,c,l,d,p,f,h,m,v;return s(this,(function(s){switch(s.label){case 0:this._logger.info(R+".call.start",{text:{data:e},type:"api"}),O.default.log(R+".call - params:",e),this._callDataReport.setAbilityBit(!0),this._callDataReport.setCallScene(T.NAME.SINGLE_CALL),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,null===(t=this._trtcClient)||void 0===t?void 0:t.getMediaDevicesAuth({audio:!0})];case 2:return s.sent(),[3,4];case 3:return o=s.sent(),this.checkDevicePermissionErrorHandle(o,"call",T.NAME.AUDIO),[3,4];case 4:if(a=e.userID,i=e.type,c=e.offlinePushInfo,l=e.roomID,d=e.timeout,p=e.userData,this.getUserID()===a)throw this._logger.error(R+".call.fail",{text:{error:"Called id can not be yourself. userId:"+this.getUserID()+", inviteeId:"+a},type:"api"}),O.default.log(R+".call failed. Called id can't be yourself. userId:"+this.getUserID()+", inviteeId:"+a),new Error(R+".call failed. Called id can't be yourself. userId:"+this.getUserID()+", inviteeId:"+a);this._callStatus=k.CALL_STATUS.CALLING,this._callType=i,this._isInviter=!0,this._inviterID=this._userID,this._inviteeID=a,this._isGroupCall=!1,this._groupID="",this._roomID=l||u.generateRandomRoomID(),this._callTimeout=d||this._callTimeout,O.default.info("roomID:"+this._roomID),f={callType:T.NAME.SINGLE,mediaType:i,inviteeList:[a]},s.label=5;case 5:return s.trys.push([5,11,,13]),[4,null===(n=this._trtcClient)||void 0===n?void 0:n.join(this._roomID)];case 6:return s.sent(),this._callDataReport.setEnterRoomTime((new Date).getTime()),this._tsignalingClient.setTSignalingIsJoined(!0),h=this._callDataReport.getCallData(),h=r(r({},h),{roomID:this._roomID,callRole:k.CALL_ROLE.INVITER,callType:this._callType,inviteeList:[a]}),this._callDataReport.setCallData(h),[4,this._tsignalingClient.invite({userID:a,type:i,roomID:this._roomID,timeout:this._callTimeout,offlinePushInfo:c,userIDList:[a],userData:p})];case 7:return m=s.sent(),this._callDataReport.setSendSignalingTime((new Date).getTime()),this.setHandledInviteeList([this._userID]),this.setUnHandledInviteeList([a]),m.data.message.conversationType,m.data.message.from,m.data.message.to,0!==m.code?[3,8]:(this.addInviterInviteId(m.inviteID,[this._userID,a]),this._callDataReport.setInviteID(m.inviteID),this.setInitialCallId(m.inviteID),this._callRecordUpload(r({eventType:T.NAME.START_CALL},f)),this._callRecordReport.startHeartbeat(),[3,10]);case 8:return this._callDataReport.setCodeAndMessage(m.code,m.message),this._callDataReport.uploadToKibana(),this._callRecordUpload(r({eventType:T.NAME.CALL_FAILED},f)),this._logger.error(R+".call.fail",{text:{error:m},type:"api"}),[4,this._resetTUICallEngine()];case 9:s.sent(),s.label=10;case 10:return[2,m];case 11:return(v=s.sent()).getCode?this._callDataReport.setCodeAndMessage(v.getCode(),v.message):v.code===w.default.ERROR_BLACKLIST?(this._delegate.onError(w.default.ERROR_BLACKLIST,v.message),this._callDataReport.setCodeAndMessage(w.default.ERROR_BLACKLIST,v.message)):this._callDataReport.setCodeAndMessage(w.default.UNKNOWN,JSON.stringify(v)),this._callDataReport.uploadToKibana(),this._callRecordUpload(r({eventType:T.NAME.CALL_FAILED},f)),this._logger.error(R+".call.fail",{text:{error:v},type:"api"}),[4,this._resetTUICallEngine()];case 12:throw s.sent(),new C.default({message:R+"<call>: failed "+v.message,code:v.code});case 13:return[2]}}))}))},e.prototype.addAudioVideoSwitchIdList=function(e){e&&this._audioVideoSwitchIdList.push(e)},e.prototype.getAudioVideoSwitchIdList=function(){return this._audioVideoSwitchIdList||[]},e.prototype.addInviterInviteId=function(e,t){0!==t.length&&(0===(this._inviterInviteID[e]||[]).length?this._inviterInviteID[e]=t:this._inviterInviteID[e]=c(this._inviterInviteID[e],t))},e.prototype.getInviterInviteIdList=function(){return Object.keys(this._inviterInviteID||{})},e.prototype.getTotalInviterInviteIdList=function(){var e=this.getInviterInviteIdList();return c(this._audioVideoSwitchIdList,e)},e.prototype.getInviterInviteIdUserList=function(e){var t=this,n=[];return e?n=this._inviterInviteID[e]||[]:this.getInviterInviteIdList().forEach((function(e){n=c(n,t.getInviterInviteIdUserList(e))})),n},e.prototype.getInviterID=function(){return this._inviterID},e.prototype.setInviterID=function(e){this._inviterID=e},e.prototype.groupCall=function(e){var t,n;return i(this,void 0,void 0,(function(){var o,a,i,l,d,p,f,h,m,v,g;return s(this,(function(s){switch(s.label){case 0:if(this._logger.info(R+".groupCall.start",{text:{data:e},type:"api"}),0===(null===(t=null==e?void 0:e.userIDList)||void 0===t?void 0:t.length))throw new C.default({message:R+"<groupCall>: userIDList don'\t empty ",code:w.default.ERROR_PARAM_INVALID});O.default.debug(R+".groupCall - params:",e),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,null===(n=this._trtcClient)||void 0===n?void 0:n.getMediaDevicesAuth({audio:!0})];case 2:return s.sent(),[3,4];case 3:return o=s.sent(),this.checkDevicePermissionErrorHandle(o,"groupCall",T.NAME.AUDIO),[3,4];case 4:if(a=e.userIDList,i=e.type,l=e.groupID,d=e.offlinePushInfo,p=e.roomID,f=e.timeout,h=e.userData,-1!==(a=c(a)).indexOf(this.getUserID()))throw O.default.log(R+".groupCall failed. Called list can't contain yourself. userId:"+this.getUserID()+", inviteeIdList:"+a),new Error(R+".groupCall failed. Called list can't contain yourself. userId:"+this.getUserID()+", inviteeIdList:"+a);this._callType=i,this._isInviter=!0,this._isGroupCall=!0,this._inviterID=this._userID,this._groupID=l||"",this.setInviteeList(a),this.setHandledInviteeList([this._userID]),this.setUnHandledInviteeList(a),this._roomID||(this._roomID=p||u.generateRandomRoomID(),this._callStatus=k.CALL_STATUS.CALLING),this._callTimeout=f||this._callTimeout,this._callDataReport.setCallScene(T.NAME.GROUP_CALL),m={callType:T.NAME.GROUP,mediaType:i,inviteeList:a},s.label=5;case 5:return s.trys.push([5,11,,13]),[4,this._trtcClient.join(this._roomID)];case 6:return s.sent(),this._tsignalingClient.setTSignalingIsJoined(!0),[4,this._tsignalingClient.inviteInGroup({groupID:this._groupID,userIDList:a,type:i,roomID:this._roomID,timeout:this._callTimeout,offlinePushInfo:d,userData:h})];case 7:return v=s.sent(),O.default.log("groupCall res",v),l?(v.data.message.conversationType,v.data.message.from,v.data.message.to,0!==v.code?[3,8]:(this.addInviterInviteId(v.inviteID,c([this._userID],a)),this.setInitialCallId(v.inviteID),this._callRecordUpload(r({eventType:T.NAME.START_CALL},m)),this._callRecordReport.startHeartbeat(),[3,10])):[3,10];case 8:return this._callRecordUpload(r({eventType:T.NAME.CALL_FAILED},m)),this._logger.error(R+".inviteInGroup.fail",{text:{data:v},type:"api"}),[4,this._resetTUICallEngine()];case 9:s.sent(),s.label=10;case 10:return[2,v];case 11:return g=s.sent(),this._callRecordUpload(r({eventType:T.NAME.CALL_FAILED},m)),this._logger.error(R+".groupCall.fail",{text:{error:g},type:"api"}),[4,this._resetTUICallEngine()];case 12:throw s.sent(),new C.default({message:R+"<groupCall>: failed "+g.message,code:g.code});case 13:return[2]}}))}))},e.prototype.joinInGroupCall=function(e){var t,n;return i(this,void 0,void 0,(function(){var r,o,a,i,c,l;return s(this,(function(s){switch(s.label){case 0:this._logger.info(R+".joinInGroupCall.start",{text:{data:e},type:"api"}),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,null===(t=this._trtcClient)||void 0===t?void 0:t.getMediaDevicesAuth({audio:!0})];case 2:return s.sent(),[3,4];case 3:return r=s.sent(),this.checkDevicePermissionErrorHandle(r,"joinInGroupCall",T.NAME.AUDIO),[3,4];case 4:return s.trys.push([4,6,,8]),o=e.roomID,a=e.type,i=e.groupID,this._callType=a,this._groupID=i,this._roomID=o,this._isGroupCall=!0,this._isInviter=!1,this.addHandledInviteeList([this.getUserID()]),this.changeCallStatus(k.CALL_STATUS.CALLING),[4,null===(n=this._trtcClient)||void 0===n?void 0:n.join(o)];case 5:return s.sent(),this.changeCallStatus(k.CALL_STATUS.CONNECTED),this.getCallRecordReport().setBodyStatus(k.CALL_STATUS.CONNECTED),O.default.log(R+".joinInGroupCall roomID:"+o+",type:"+a+",userID:"+this.getUserID()),c={eventType:T.NAME.JOIN_IN_GROUP_CALL,callType:T.NAME.GROUP,mediaType:this._callType},this._callRecordUpload(c),this._callRecordReport.startHeartbeat(),[3,8];case 6:return l=s.sent(),this._logger.error(R+".joinInGroupCall.fail",{text:{error:l},type:"api"}),[4,this._resetTUICallEngine()];case 7:throw s.sent(),new Error(R+".joinInGroupCall failed error: "+l);case 8:return[2]}}))}))},e.prototype.inviteUser=function(e){return i(this,void 0,void 0,(function(){var t,n,r,o,a,i,l,u,d,p,f,h=this;return s(this,(function(s){switch(s.label){case 0:if(this._logger.info(R+".inviteUser.start",{text:{data:e},type:"api"}),!this.isGroupCall())throw this._logger.error(R+".inviteUser.fail",{text:{error:"inviteUser failed",data:e},type:"api"}),O.default.error(R+".inviteUser failed - groupID:"+this._groupID+", roomID:"+this._roomID+", type:"+this._callType),new Error(R+".inviteUser failed - groupID:"+this._groupID+", roomID:"+this._roomID+", type:"+this._callType);if(!this.isInviter()&&this._callStatus!==k.CALL_STATUS.CONNECTED)throw this._logger.error(R+".inviteUser.fail",{text:{error:"current status:"+this._callStatus+" not support"},type:"api"}),O.default.error(R+".inviteUser failed - current status:"+this._callStatus+" not support"),new Error(R+".inviteUser failed - current status:"+this._callStatus+" not support");if(t=e.userIDList,n=void 0===t?[]:t,r=e.offlinePushInfo,0===n.length)throw this._logger.error(R+".inviteUser.fail",{text:{error:"userIDList is empty"},type:"api"}),O.default.error(R+".inviteUser failed - userIDList is empty"),new Error(R+".inviteUser failed - userIDList is empty");if(o=this.getHandledInviteeList(),a=this.getUnHandledInviteeList(),i=c(o,a),0===(l=n.filter((function(e){return-1===i.indexOf(e)}))).length)return this._logger.error(R+".inviteUser.fail",{text:{error:"userIDList in call list",data:{userIDList:n,totalUserList:i}},type:"api"}),O.default.error(R+".inviteUser failed - userIDList in call list. userIDList:"+JSON.stringify(n)+", call list:"+JSON.stringify(i)),[2,Promise.reject(R+".inviteUser failed - userIDList in call list. userIDList:"+JSON.stringify(n)+", call list:"+JSON.stringify(i))];n=l,s.label=1;case 1:return s.trys.push([1,3,,4]),u=this._handledInviteeList.filter((function(e){return e!==h._userID})),[4,this._tsignalingClient.inviteInGroup({groupID:this._groupID,userIDList:n,type:this._callType,roomID:this._roomID,timeout:this._callTimeout,inCallUserIDs:c(this._unHandledInviteeList,u),offlinePushInfo:r,initialCallId:this.getInitialCallId()})];case 2:return d=s.sent(),O.default.log("inviteUser res",d),this._callType,d.data.message.conversationType,d.data.message.from,d.data.message.to,0===d.code?(this.addUnHandledInviteeList(n),this.addInviterInviteId(d.inviteID,c([this._userID],n)),p={eventType:T.NAME.INVITE_USER,callType:T.NAME.GROUP,mediaType:this._callType,inviteeList:n},this._callRecordUpload(p)):this._logger.error(R+".inviteUser.fail",{type:"api"}),[2,d];case 3:throw f=s.sent(),new Error(R+".inviteUser failed, userId:"+this.getUserID()+", inviteeIdList:"+n+", error: "+f);case 4:return[2]}}))}))},e.prototype.accept=function(){var e,t;return i(this,void 0,void 0,(function(){var n,o,a,i,c,l,u,d,p,f;return s(this,(function(s){switch(s.label){case 0:if(this._logger.info(R+".accept.start",{text:{data:{callStatus:this.getCallStatus(),inviteData:this._tsignalingClient.getInviteData()},type:"api"}}),O.default.debug(R+".accept"),this.getCallStatus()===k.CALL_STATUS.CONNECTED)return this._logger.error(R+".accept.fail",{text:{error:"already connected, avoid repeat accept"},type:"api"}),O.default.warn(R+".accept - already connected, avoid repeat accept"),[2];if(!this._tsignalingClient.getInviteData())return this._logger.error(R+".accept.fail",{text:{error:"there are no calls to accept"},type:"api"}),O.default.warn(R+".accept - there are no calls to accept"),[2];this._callDataReport.setCallAcceptTime((new Date).getTime()),s.label=1;case 1:return s.trys.push([1,5,,6]),[4,null===(e=this._trtcClient)||void 0===e?void 0:e.getMediaDevicesAuth({audio:!0})];case 2:return s.sent().audio?[3,4]:[4,this._resetTUICallEngine()];case 3:s.sent(),s.label=4;case 4:return[3,6];case 5:return n=s.sent(),this.checkDevicePermissionErrorHandle(n,"accept",T.NAME.AUDIO),[3,6];case 6:o=this._tsignalingClient.getInviteData(),a=o.inviteID,i=o.inviteData,c=i.roomID,l=i.callType,O.default.debug(R+".accept - params","inviteID: "+a+",callType: "+l+",roomID: "+c+"."),this._callType=l,this._callStatus=k.CALL_STATUS.CALLING,console.log("accept roomId: "+c),u={},s.label=7;case 7:return s.trys.push([7,9,,11]),this._callDataReport.setEnterRoomTime((new Date).getTime()),[4,null===(t=this._trtcClient)||void 0===t?void 0:t.join(c)];case 8:return u=s.sent(),this.addHandledInviteeList([this.getUserID()]),this.deleteUnHandledInviteeList([this.getUserID()]),this.addAcceptedUserList(a,[this.getUserID()]),this._tsignalingClient.setInviteData(null),this.changeCallStatus(k.CALL_STATUS.CONNECTED),this.getCallRecordReport().setBodyStatus(k.CALL_STATUS.CONNECTED),[3,11];case 9:return d=s.sent(),this._logger.error(R+".accept.join.fail",{text:{error:d},type:"api"}),this.isGroupCall()||(d.getCode?this._callDataReport.setCodeAndMessage(d.getCode(),d.message):this._callDataReport.setCodeAndMessage(w.default.UNKNOWN,JSON.stringify(d)),this._callDataReport.uploadToKibana()),[4,this._resetTUICallEngine()];case 10:throw s.sent(),new Error(R+".accept failed, error: "+d);case 11:u=r(r({},u),{roomID:c,callType:l}),s.label=12;case 12:return s.trys.push([12,14,,16]),[4,this._tsignalingClient.accept({inviteID:a,callType:l})];case 13:return p=s.sent(),p.data.message.conversationType,this._userID,p.data.message.to,this._callRecordUpload({eventType:T.NAME.ACCEPT_CALL}),[3,16];case 14:return f=s.sent(),O.default.error(f),this._logger.error(R+".accept.fail",{text:{error:f},type:"api"}),[4,this._resetTUICallEngine()];case 15:throw s.sent(),this.isGroupCall()||(this._callDataReport.setCodeAndMessage(w.default.UNKNOWN,JSON.stringify(f)),this._callDataReport.uploadToKibana()),new C.default({message:R+"<accept>: failed "+f.message,code:f.code});case 16:return[2,r(r({},u),p)]}}))}))},e.prototype.reject=function(){return i(this,void 0,void 0,(function(){var e,t,n,o,a,i,c,l;return s(this,(function(s){switch(s.label){case 0:if(this._logger.info(R+".reject.start",{text:{data:{inviteData:this._tsignalingClient.getInviteData(),callStatus:this._callStatus},type:"api"}}),!this._tsignalingClient.getInviteData())return O.default.warn(R+".reject - there are no calls to reject"),[2];e=this._callStatus===k.CALL_STATUS.CONNECTED,t=this._tsignalingClient.getInviteData(),n=t.inviteID,o=t.inviteData,a=o.callType,O.default.warn(R+".reject - params","inviteID: "+n+",callType: "+a+",isBusy: "+e+"."),s.label=1;case 1:return s.trys.push([1,5,,6]),[4,this._tsignalingClient.reject({inviteID:n,callType:a,isBusy:e})];case 2:return i=s.sent(),this._callRecordUpload({eventType:T.NAME.REJECT_CALL}),e?[3,4]:(c=this.generateEventData(),[4,this._resetTUICallEngine()]);case 3:s.sent(),this._delegate.onCallingCancel(r(r({userID:this._userID},c),{reason:T.NAME.REJECT})),s.label=4;case 4:return[2,i];case 5:throw l=s.sent(),this._logger.error(R+".reject.fail",{text:{error:l},type:"api"}),new C.default({message:R+"<reject>: failed "+l.message,code:l.code});case 6:return[2]}}))}))},e.prototype.hangup=function(){var e;return i(this,void 0,void 0,(function(){var t,n,o,a,i,l,u,d,p,f,h,m,v,g,_,b,y,M,C,w;return s(this,(function(S){switch(S.label){case 0:if(this._logger.info(R+".hangup.start",{text:{data:{inviteData:this._tsignalingClient.getInviteData(),callStatus:this._callStatus,inviterInviteID:this._acceptedUserObject,inviteIdList:this.getInviterInviteIdList(),isInviter:this.isInviter(),isGroupCall:this.isGroupCall(),callType:this.getCallType(),currentUserID:this.getUserID()}},type:"api"}),O.default.warn(R+". - callStatus:"+this._callStatus+" _inviterInviteID:"+JSON.stringify(this._acceptedUserObject)),this._callStatus===k.CALL_STATUS.IDLE)throw this._logger.error(R+".hangup.fail",{text:{error:"current status:"+this._callStatus,type:"api"}}),new Error(R+".hangup failed. current status:"+this._callStatus);if(this._callStatus===k.CALL_STATUS.CALLING&&0===this.getInviterInviteIdList().length)throw this._logger.error(R+".hangup.fail",{text:{error:"call/groupCall incomplete。please wait cancel"},type:"api"}),new Error(R+".call/groupCall incomplete。please wait cancel");if(t=this.isGroupCall(),n=this.isInviter(),o=this.getUserID(),a=this.generateCallTotalTime(),i=this.getCallType(),u=this.getInviterInviteIdList(),this._callStatus!==k.CALL_STATUS.CONNECTED)return[3,7];S.label=1;case 1:return S.trys.push([1,5,,7]),[4,null===(e=this._trtcClient)||void 0===e?void 0:e.leave()];case 2:return S.sent(),0!==u.length?[3,4]:(m=this.generateCallEndData({callMediaType:i,totalTime:a}),this._delegate.onCallEnd(m),[4,this._resetTUICallEngine()]);case 3:S.sent(),S.label=4;case 4:return[3,7];case 5:return d=S.sent(),this._logger.error(R+".hangup.fail",{text:{error:d},type:"api"}),[4,this._resetTUICallEngine()];case 6:throw S.sent(),new Error(d);case 7:p=this.getHandledInviteeList(),f=this.getUnHandledInviteeList(),h=this.generateEventData(),S.label=8;case 8:return S.trys.push([8,30,,31]),t?[3,15]:(m=this.generateCallEndData(),n?1!==f.length?[3,10]:[4,this._cancel()]:[3,12]);case 9:return l=S.sent(),this._delegate.onCallingCancel(r(r({userID:o},h),{reason:T.NAME.NORMAL})),[3,11];case 10:this._delegate.onCallEnd(m),S.label=11;case 11:return[3,13];case 12:this._delegate.onCallEnd(m),S.label=13;case 13:return[4,this._resetTUICallEngine()];case 14:return S.sent(),[3,29];case 15:return v=this.getCallStatus(),g={callType:i,userIDList:c(p.filter((function(e){return e!==o})),f),callEnd:a},n?v!==k.CALL_STATUS.CALLING?[3,18]:[4,this._cancel(this.getInviterInviteIdList())]:[3,23];case 16:return l=S.sent(),[4,this._resetTUICallEngine()];case 17:S.sent(),this._delegate.onCallingCancel(r(r({userID:o},h),{reason:T.NAME.NORMAL})),S.label=18;case 18:if(v!==k.CALL_STATUS.CONNECTED)return[3,22];_=function(e){var t,n,r,a,i,d;return s(this,(function(s){switch(s.label){case 0:return t=u[e],n=b.getInviterInviteIdUserList(t),(r=b.getAcceptedUserList(t)).length>0?(a=r.filter((function(e){return-1!==p.indexOf(e)})),i=n.filter((function(e){return-1!==f.indexOf(e)})),g.userIDList=c(a,i).filter((function(e){return e!==o})),O.default.warn("inviter emit hangup signal, notify userIDList:"+JSON.stringify(g.userIDList)),0===g.userIDList.length?[3,2]:[4,b._tsignalingClient.hangup(g)]):[3,5];case 1:return l=s.sent(),[3,4];case 2:return p.length>1?(g.userIDList=p.filter((function(e){return e!==o})),[4,b._tsignalingClient.hangup(g)]):[3,4];case 3:l=s.sent(),s.label=4;case 4:return[3,7];case 5:return d=b.getUnHandledInviteeList(),n.filter((function(e){return-1!==d.indexOf(e)})).length>0?(O.default.warn("inviter emit cancel signal, userIdList:"+n),[4,b._cancel([t])]):[3,7];case 6:l=s.sent(),s.label=7;case 7:return[2]}}))},b=this,C=0,S.label=19;case 19:return C<u.length?[5,_(C)]:[3,22];case 20:S.sent(),S.label=21;case 21:return C++,[3,19];case 22:return[3,27];case 23:y=function(e){var t,n,r,a,i,d;return s(this,(function(s){switch(s.label){case 0:return t=u[e],n=M.getInviterInviteIdUserList(t),(r=M.getAcceptedUserList(t)).length>0?(a=r.filter((function(e){return-1!==p.indexOf(e)})),i=n.filter((function(e){return-1!==f.indexOf(e)})),g.userIDList=c(a,i).filter((function(e){return e!==o})),O.default.warn("invitee emit hangup signal, notify userIDList:"+JSON.stringify(g.userIDList)),0===g.userIDList.length?[3,2]:[4,M._tsignalingClient.hangup(g)]):[3,5];case 1:return l=s.sent(),[3,4];case 2:return p.length>1?(g.userIDList=p.filter((function(e){return e!==o})),[4,M._tsignalingClient.hangup(g)]):[3,4];case 3:l=s.sent(),s.label=4;case 4:return[3,7];case 5:return d=M.getUnHandledInviteeList(),n.filter((function(e){return-1!==d.indexOf(e)})).length>0?(O.default.warn("invitee emit cancel signal, inviteID:"+t),[4,M._cancel([t])]):[3,7];case 6:l=s.sent(),s.label=7;case 7:return[2]}}))},M=this,C=0,S.label=24;case 24:return C<u.length?[5,y(C)]:[3,27];case 25:S.sent(),S.label=26;case 26:return C++,[3,24];case 27:return[4,this._resetTUICallEngine()];case 28:S.sent(),S.label=29;case 29:return[2,l];case 30:throw w=S.sent(),this._logger.error(R+".hangup.fail",{text:{error:w},type:"api"}),O.default.warn(R+".hangup failed, error: "+w),new Error(R+".hangup failed, error: "+w);case 31:return[2]}}))}))},e.prototype._cancel=function(e){return i(this,void 0,void 0,(function(){var t,n,r,o,a,i;return s(this,(function(s){switch(s.label){case 0:this._logger.info(R+"._cancel.start",{text:{data:{inviteIDList:e,inviterInviteID:this._inviterInviteID},type:"api"}}),O.default.log("_cancel _inviterInviteID",this._inviterInviteID),t=[],s.label=1;case 1:s.trys.push([1,6,,7]),0===(e||[]).length&&(e=this.getInviterInviteIdList().slice(0,1)),n=0,s.label=2;case 2:return n<e.length?(r=e[n],[4,this._tsignalingClient.cancel({inviteID:r})]):[3,5];case 3:o=s.sent(),t.push(o),s.label=4;case 4:return n++,[3,2];case 5:return[3,7];case 6:throw a=s.sent(),this._logger.error(R+"._cancel.fail",{text:{error:a},type:"api"}),new C.default({message:R+"<_cancel>: failed "+a.message,code:a.code});case 7:return i="cancel "+JSON.stringify(t)+" succeeded",O.default.log(R+"._cancel "+i),[2,t]}}))}))},e.prototype.startRemoteView=function(e){var t;return i(this,void 0,void 0,(function(){var n,r,o;return s(this,(function(a){return this._logger.info(R+".startRemoteView.start",{text:{data:e},type:"api"}),O.default.debug(R+".startRemoteView - params:",e),n=e.userID,r=e.videoViewDomID,o=e.options,[2,null===(t=this._trtcClient)||void 0===t?void 0:t.playRemoteVideo({videoViewDomID:r,userID:n,options:o})]}))}))},e.prototype.stopRemoteView=function(e){var t;return i(this,void 0,void 0,(function(){var n;return s(this,(function(r){return this._logger.info(R+".stopRemoteView.start",{text:{data:e},type:"api"}),O.default.debug(R+".stopRemoteView - params:",e),n=e.userID,[2,null===(t=this._trtcClient)||void 0===t?void 0:t.stopRemoteVideo({userID:n})]}))}))},e.prototype.startLocalView=function(e){var t;return i(this,void 0,void 0,(function(){var n,r,o,a;return s(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),this._logger.info(R+".startLocalView.start",{text:{data:e},type:"api"}),O.default.debug(R+".startLocalView - params:",e),n=e.userID,r=e.videoViewDomID,o=e.options,this._localViewId=r,[4,null===(t=this._trtcClient)||void 0===t?void 0:t.playLocalVideo({videoViewDomID:r,userID:n,options:o})];case 1:return i.sent(),[3,3];case 2:throw a=i.sent(),this._logger.error(R+".startLocalView.fail",{text:{error:a},type:"api"}),new Error(R+".startLocalView failed. error: "+a);case 3:return[2]}}))}))},e.prototype.stopLocalView=function(e){var t;return i(this,void 0,void 0,(function(){return s(this,(function(n){return this._logger.info(R+".stopLocalView.start",{text:{data:e},type:"api"}),O.default.debug(R+".stopLocalView - params:",e),e.userID,this._localViewId="",[2,null===(t=this._trtcClient)||void 0===t?void 0:t.stopLocalVideo()]}))}))},e.prototype.openCamera=function(e){var t;return i(this,void 0,void 0,(function(){var n,r,o;return s(this,(function(a){switch(a.label){case 0:if(a.trys.push([0,2,,3]),this._logger.info(R+".openCamera.start",{text:{data:{hasDomID:!!e,hasLocalViewId:!!this._localViewId}},type:"api"}),n=e,!e){if(!this._localViewId)return this._logger.error(R+".openCamera.fail",{text:{error:"A DOM parameter is required to render the camera data"},type:"api"}),O.default.error(R+".openCamera failed. error: A DOM parameter is required to render the camera data"),[2];O.default.warn(R+".openCamera warning. warn: A DOM parameter is required to render the camera data. "+R+".startLocalView() will be deprecated soon."),n=this._localViewId}return r={videoViewDomID:n,userID:this.getUserID()},[4,null===(t=this._trtcClient)||void 0===t?void 0:t.playLocalVideo(r)];case 1:return a.sent(),[3,3];case 2:throw o=a.sent(),this._logger.error(R+".openCamera.fail",{text:{error:o},type:"api"}),O.default.error(R+".openCamera failed. error: "+o),new Error(R+".openCamera failed. error: "+o);case 3:return[2]}}))}))},e.prototype.closeCamera=function(){var e;return i(this,void 0,void 0,(function(){return s(this,(function(t){try{return this._logger.info(R+".openCamera.start",{type:"api"}),[2,null===(e=this._trtcClient)||void 0===e?void 0:e.stopLocalVideo()]}catch(e){throw this._logger.error(R+".openCamera.fail",{text:{error:e},type:"api"}),new Error(R+".closeCamera failed. error: "+e)}return[2]}))}))},e.prototype.openMicrophone=function(){var e;return i(this,void 0,void 0,(function(){return s(this,(function(t){return this._logger.info(R+".openMicrophone.start",{type:"api"}),[2,null===(e=this._trtcClient)||void 0===e?void 0:e.unMuteLocalAudio()]}))}))},e.prototype.closeMicrophone=function(){var e;return i(this,void 0,void 0,(function(){return s(this,(function(t){return this._logger.info(R+".closeMicrophone.start",{type:"api"}),[2,null===(e=this._trtcClient)||void 0===e?void 0:e.muteLocalAudio()]}))}))},e.prototype.setVideoQuality=function(e){return i(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return this._logger.info(R+".setVideoQuality.start",{text:{data:{profile:e,currentProfile:this.getVideoQuality(),hasTrtcClient:!!this._trtcClient}},type:"api"}),O.default.debug(R+".setVideoQuality - quality:"+JSON.stringify(e)),e===this.getVideoQuality()?(O.default.warn(R+".setVideoQuality failed - profile not change"),[2]):(this._quality=e,this._trtcClient?[4,this._trtcClient._setVideoProfile(this._trtcClient.getLocalStream(),e)]:[3,2]);case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},e.prototype.getVideoQuality=function(){return this._quality},e.prototype.setVideoRenderParams=function(e){return i(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return this._logger.info(R+".setVideoRenderParams.start",{text:{data:{params:e,hasTRTCClient:!!this._trtcClient}},type:"api"}),this._trtcClient?[4,this._trtcClient._setVideoRenderParams(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},e.prototype.switchCallMediaType=function(e){return i(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:if(this._logger.info(R+".switchCallMediaType.start",{text:{data:{newMediaType:e,currentCallType:this._callType}},type:"api"}),this._callType===e)throw this._logger.error(R+".switchCallMediaType.fail",{text:{error:S.ERROR_MESSAGE.ERROR_REQUEST_REPEATED_SWITCH},type:"api"}),new C.default({message:R+"<switchCallMediaType>: "+S.ERROR_MESSAGE.ERROR_REQUEST_REPEATED_SWITCH,code:w.default.ERROR_REQUEST_REPEATED});if(!this._switchCallModeStatus)throw this._logger.error(R+".switchCallMediaType.fail",{text:{error:"audio and video call switching"},type:"api"}),new Error(R+" audio and video call switching.");O.default.log(R+".switchCallMediaType",this._inviterID,this._inviteeID),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._tsignalingClient.switchCallMode({userID:this._isInviter?this._inviteeID:this._inviterID,callType:this._callType,roomID:this._roomID,timeout:this._callTimeout,mode:e===k.CALL_TYPE.AUDIO_CALL?k.MODE_TYPE.AUDIO:k.MODE_TYPE.VIDEO})];case 2:return n.sent(),this.setSwitchCallModeStatus(!1),[3,4];case 3:throw t=n.sent(),this._logger.error(R+".switchCallMediaType.fail",{text:{error:t},type:"api"}),new Error(R+".switchCallMediaType failed, error: "+t);case 4:return[2]}}))}))},e.prototype.setSwitchCallModeStatus=function(e){this._switchCallModeStatus=e},e.prototype.getSwitchCallModeStatus=function(){return this._switchCallModeStatus},e.prototype.getDeviceList=function(e){var t,n;return i(this,void 0,void 0,(function(){var r,o;return s(this,(function(a){switch(a.label){case 0:if(this._logger.info(R+".getDeviceList.start",{text:{data:{deviceType:e}},type:"api"}),e!==k.DEVICE_TYPE.CAMERA)return[3,5];a.label=1;case 1:return a.trys.push([1,4,,5]),[4,null===(t=this._trtcClient)||void 0===t?void 0:t.getMediaDevicesAuth({video:!0,isThrowVideoError:!0})];case 2:return a.sent(),[4,L.getCameras()];case 3:return[2,a.sent()];case 4:return r=a.sent(),this.checkDevicePermissionErrorHandle(r,"getDeviceList",T.NAME.VIDEO),[3,5];case 5:if(e!==k.DEVICE_TYPE.MICROPHONES)return[3,10];a.label=6;case 6:return a.trys.push([6,9,,10]),[4,null===(n=this._trtcClient)||void 0===n?void 0:n.getMediaDevicesAuth({audio:!0})];case 7:return a.sent(),[4,L.getMicrophones()];case 8:return[2,a.sent()];case 9:return o=a.sent(),this.checkDevicePermissionErrorHandle(o,"getDeviceList",T.NAME.AUDIO),[3,10];case 10:return[2]}}))}))},e.prototype.switchDevice=function(e){var t;return i(this,void 0,void 0,(function(){var n,r;return s(this,(function(o){return this._logger.info(R+".switchDevice.start",{text:{data:{params:e}},type:"api"}),n=e.deviceType,r=e.deviceId,O.default.debug(R+".switchDevice -params: deviceType:"+n+",deviceID:"+r),[2,null===(t=this._trtcClient)||void 0===t?void 0:t.switchDevice(n,r)]}))}))},e.prototype.setSelfInfo=function(e){return i(this,void 0,void 0,(function(){var t,n,r;return s(this,(function(o){return this._logger.info(R+".setSelfInfo.start",{text:{data:{params:e}},type:"api"}),t=e.nickName,n=e.avatar,r={nick:t,avatar:n},!t&&delete r.nick,!n&&delete r.avatar,O.default.log(R+".setSelfInfo -params: nickName:"+r.nick+",avatar:"+r.avatar),[2,this.tim.updateMyProfile(r)]}))}))},e.prototype.generateCallEndData=function(e){var t=e||{},n=t.roomId,r=t.callMediaType,o=t.callRole,a=t.totalTime,i=t.userId;return n=n||this.getRoomID(),r=r||this.getCallType(),o||(o=this.isInviter()?k.CALL_ROLE.INVITER:k.CALL_ROLE.INVITEE),{roomID:n,callMediaType:r,callRole:o,totalTime:a=u.isUndefined(a)?this.generateCallTotalTime():a,userID:i=i||this.getUserID()}},e.prototype.generateEventData=function(){return{callID:this.getInviterInviteIdList()[0],roomID:this._roomID,callRole:this._isInviter?T.NAME.INVITER:T.NAME.INVITEE,callMediaType:this._callType}},e.prototype.enableAIVoice=function(e){var t;return i(this,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return this._logger.info(R+".enableAIVoice.start",{text:{data:{enable:e}},type:"api"}),this._trtcClient?[4,null===(t=this._trtcClient)||void 0===t?void 0:t.enableAIVoice(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},e.prototype._resetTUICallEngine=function(){var e;return i(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return O.default.debug(R+"._resetTUICallEngine"),this._roomID=0,this._isInviter=!1,this._isGroupCall=!1,this.setSwitchCallModeStatus(!0),this._groupID="",this._callStatus=k.CALL_STATUS.IDLE,this._inviteeList=[],this._unHandledInviteeList=[],this._handledInviteeList=[],this._inviterInviteID={},this._audioVideoSwitchIdList=[],this._acceptedUserObject={},this._connectStartTime=0,this._switchCallModeStatus=!0,this._initialCallId="",this._localViewId="",[4,null===(e=this._trtcClient)||void 0===e?void 0:e.reset()];case 1:return n.sent(),this._tsignalingClient.setInviteData(null),this._tsignalingClient.resetJoined(),(t=document.getElementById("_trtc_calling_layer"))&&(t.innerHTML=""),[2]}}))}))},e.prototype.getCallStatus=function(){return this._callStatus},e.prototype.changeCallStatus=function(e){this._callStatus!==e&&(this._logger.info(R+".changeCallStatus.start",{text:{data:{newCallStatus:e,currentStatus:this._callStatus}},type:"api"}),O.default.debug(R+".changeCallStatus from "+this._callStatus+" to "+e),this._callStatus=e)},e.prototype._callRecordUpload=function(e){var t=r(r({},e),{callRole:this.isInviter()?T.NAME.INVITER:T.NAME.INVITEE,userID:this.getUserID(),roomID:this.getRoomID(),inviteID:this.getInitialCallId()});this._callRecordReport.eventUpload(t)},e.prototype.extractCallingInfoFromMessage=function(e){if(!e)return"";if("TIMCustomElem"!==e.type)return"";var t=JSON.parse(e.payload.data);if(O.default.debug(R+".extractCallingInfoFromMessage - signalingData:",e.payload.data),t.businessID!==k.BUSINESS_ID.SIGNAL)return"";switch(t.actionType){case k.ACTION_TYPE.INVITE:var n=JSON.parse(t.data);return n.call_end>0?"结束通话,通话时长:"+u.formatDuration(n.call_end):0!==n.call_end&&n.room_id?"发起通话":"结束群聊";case k.ACTION_TYPE.CANCEL_INVITE:return"取消通话";case k.ACTION_TYPE.ACCEPT_INVITE:return"已接听";case k.ACTION_TYPE.REJECT_INVITE:return"拒绝通话";case k.ACTION_TYPE.INVITE_TIMEOUT:return"无应答";default:return""}},e.prototype.setInitialCallId=function(e){this._initialCallId=e},e.prototype.getInitialCallId=function(){return this._initialCallId},e.prototype.generateCallTotalTime=function(){return 0===this.getConnectStartTime()?0:Math.round((Date.now()-this.getConnectStartTime())/1e3)},e.prototype.checkDevicePermissionErrorHandle=function(e,t,n){var r=w.default.UNKNOWN,o="";switch(null==e?void 0:e.name){case"NotFoundError":n===T.NAME.AUDIO&&(r=w.default.NOT_MICROPHONE_LIST),n===T.NAME.VIDEO&&(r=w.default.NOT_CAMERA_LIST),o=R+"."+t+" failed. error: "+e+".";break;case"NotAllowedError":r=w.default.ERROR_PERMISSION_DENIED,o=R+"."+t+" failed: "+S.ERROR_MESSAGE.ERROR_PERMISSION_DENIED+". 如何设备授权: https://web.sdk.qcloud.com/component/trtccalling/doc/TUICallEngine/web/tutorial-33-device-permission.html."}throw this._delegate.onError(r,JSON.stringify(o)),this._logger.error(R+"."+t+".fail",{text:{error:e},type:"api"}),new C.default({code:r,message:o})},e.CALL_TYPE=k.CALL_TYPE,o([I.paramValidate(I.VALIDATE_PARAMS.login),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"init",null),o([I.paramValidate(I.VALIDATE_PARAMS.login),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"login",null),o([I.avoidRepeatedCall(),I.paramValidate(I.VALIDATE_PARAMS.call),I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.IDLE]}),I.businessValidate(k.CALL_EXPERMENTEL_API_TYPE.BASE),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"call",null),o([I.avoidRepeatedCall(),I.paramValidate(I.VALIDATE_PARAMS.groupCall),I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.IDLE]}),I.businessValidate(k.CALL_EXPERMENTEL_API_TYPE.PRO),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"groupCall",null),o([I.paramValidate(I.VALIDATE_PARAMS.joinInGroupCall),I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.IDLE]}),I.businessValidate(k.CALL_EXPERMENTEL_API_TYPE.PRO),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"joinInGroupCall",null),o([I.paramValidate(I.VALIDATE_PARAMS.inviteUser),I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.CALLING,k.CALL_STATUS.CONNECTED]}),I.businessValidate(k.CALL_EXPERMENTEL_API_TYPE.PRO),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"inviteUser",null),o([I.avoidRepeatedCall(),I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.CALLING]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],e.prototype,"accept",null),o([I.avoidRepeatedCall(),I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.CALLING]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],e.prototype,"reject",null),o([I.avoidRepeatedCall(),I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.CALLING,k.CALL_STATUS.CONNECTED]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],e.prototype,"hangup",null),o([I.paramValidate(I.VALIDATE_PARAMS.startRemoteView),I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.CONNECTED]}),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"startRemoteView",null),o([I.paramValidate(I.VALIDATE_PARAMS.stopRemoteView),I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.CONNECTED]}),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"stopRemoteView",null),o([I.paramValidate(I.VALIDATE_PARAMS.startLocalView),I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.CALLING,k.CALL_STATUS.CONNECTED]}),I.apiCallQueue(),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"startLocalView",null),o([I.paramValidate(I.VALIDATE_PARAMS.stopLocalView),I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.CALLING,k.CALL_STATUS.CONNECTED]}),I.apiCallQueue(),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"stopLocalView",null),o([I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.CALLING,k.CALL_STATUS.CONNECTED]}),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"openCamera",null),o([I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.CALLING,k.CALL_STATUS.CONNECTED]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],e.prototype,"closeCamera",null),o([I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.CALLING,k.CALL_STATUS.CONNECTED]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],e.prototype,"openMicrophone",null),o([I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.CALLING,k.CALL_STATUS.CONNECTED]}),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],e.prototype,"closeMicrophone",null),o([I.paramValidate(I.VALIDATE_PARAMS.setVideoQuality),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"setVideoQuality",null),o([I.paramValidate(I.VALIDATE_PARAMS.setVideoRenderParams),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"setVideoRenderParams",null),o([I.paramValidate(I.VALIDATE_PARAMS.switchCallMediaType),I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.CONNECTED,k.CALL_STATUS.CALLING],scene:!0}),a("design:type",Function),a("design:paramtypes",[Number]),a("design:returntype",Promise)],e.prototype,"switchCallMediaType",null),o([I.paramValidate(I.VALIDATE_PARAMS.getDeviceList),I.statusValidate({init:!0}),a("design:type",Function),a("design:paramtypes",[String]),a("design:returntype",Promise)],e.prototype,"getDeviceList",null),o([I.paramValidate(I.VALIDATE_PARAMS.switchDevice),I.statusValidate({init:!0,callStatus:[k.CALL_STATUS.CALLING,k.CALL_STATUS.CONNECTED]}),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"switchDevice",null),o([I.paramValidate(I.VALIDATE_PARAMS.setSelfInfo),I.statusValidate({init:!0}),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],e.prototype,"setSelfInfo",null),o([I.statusValidate({init:!0}),a("design:type",Function),a("design:paramtypes",[Boolean]),a("design:returntype",Promise)],e.prototype,"enableAIVoice",null),o([I.paramValidate(I.VALIDATE_PARAMS.createInstance),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",void 0)],e,"createInstance",null),e}();t.default=P},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));const r=Function.prototype.apply,o=new WeakMap;function a(e){return o.has(e)||o.set(e,{}),o.get(e)}class i{constructor(e=null,t=console){const n=a(this);return n._events=new Set,n._callbacks={},n._console=t,n._maxListeners=null===e?null:parseInt(e,10),this}_addCallback(e,t,n,r){return this._getCallbacks(e).push({callback:t,context:n,weight:r}),this._getCallbacks(e).sort((e,t)=>e.weight>t.weight),this}_getCallbacks(e){return a(this)._callbacks[e]}_getCallbackIndex(e,t){return this._has(e)?this._getCallbacks(e).findIndex(e=>e.callback===t):null}_achieveMaxListener(e){return null!==a(this)._maxListeners&&a(this)._maxListeners<=this.listenersNumber(e)}_callbackIsExists(e,t,n){const r=this._getCallbackIndex(e,t),o=-1!==r?this._getCallbacks(e)[r]:void 0;return-1!==r&&o&&o.context===n}_has(e){return a(this)._events.has(e)}on(e,t,n=null,r=1){const o=a(this);if("function"!=typeof t)throw new TypeError(t+" is not a function");return this._has(e)?(this._achieveMaxListener(e)&&o._console.warn(`Max listeners (${o._maxListeners}) for event "${e}" is reached!`),this._callbackIsExists(...arguments)&&o._console.warn(`Event "${e}" already has the callback ${t}.`)):(o._events.add(e),o._callbacks[e]=[]),this._addCallback(...arguments),this}once(e,t,n=null,o=1){const a=(...o)=>(this.off(e,a),r.call(t,n,o));return this.on(e,a,n,o)}off(e,t=null){const n=a(this);let r;return this._has(e)&&(null===t?(n._events.delete(e),n._callbacks[e]=null):(r=this._getCallbackIndex(e,t),-1!==r&&(n._callbacks[e].splice(r,1),this.off(...arguments)))),this}emit(e,...t){return this._has(e)&&this._getCallbacks(e).forEach(e=>r.call(e.callback,e.context,t)),this}clear(){const e=a(this);return e._events.clear(),e._callbacks={},this}listenersNumber(e){return this._has(e)?this._getCallbacks(e).length:null}}},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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};Object.defineProperty(t,"__esModule",{value:!0});var s=n(18),c=n(5),l=n(2),u=n(36),d=n(6),p=n(1),f=n(11),h=n(15),m=n(13),v=n(10),g=n(4),_=n(9),b=n(6),y=n(56),O=n(27),M=n(0),k=n(0),C=n(7),w="TRTCClient",S=s,T=function(){function e(e){var t,n=this;this._sdkAppID=e.sdkAppID,this._userID=e.userID,this._userSig=e.userSig,this._tuiCallEngine=e.tuiCallEngine,this._videoAvailableMap=new Map,this._isJoined=!1,this._isPublished=!1,this._unPublishing=!1,this._localStream=null,this._remoteStreams=[],this._userIdDomMap=new Map,this._device={video:null,audio:null,microphoneList:[],cameraList:[]},this._prevDevices=[],this._assetsPath=e.assetsPath,this._eventStatController=new m.default,f.default.bindController(this._eventStatController),this._isAiNoiseSuppress=!0,this._logger=c.default(),u.isHttpProtocols()&&console.error("code: "+g.default.ERROR_HTTP+", "+_.ERROR_MESSAGE.ERROR_HTTP+", "+_.ERROR_CN_MESSAGE.ERROR_HTTP);var r=S.VERSION;p.compareVersion(r,"4.7.0")>=0?S.checkSystemRequirements().then((function(e){if(!e.result)throw n._tuiCallEngine._delegate.onError(g.default.NOT_SUPPORT,JSON.stringify(e)),new v.default({message:_.ERROR_MESSAGE.NOT_SUPPORT+" "+JSON.stringify(e),code:g.default.NOT_SUPPORT})})):S.checkSystemRequirements().then((function(e){if(!e)throw n._tuiCallEngine._delegate.onError(g.default.NOT_SUPPORT,e),new v.default({message:_.ERROR_MESSAGE.NOT_SUPPORT+" "+JSON.stringify(e),code:g.default.NOT_SUPPORT})})),this._frameWorkType=32,p.compareVersion(r,"4.15.1")>=0?(this._frameWorkType=30,this._component=14,((null===(t=null===window||void 0===window?void 0:window.localStorage)||void 0===t?void 0:t.getItem("_isTIMCallKit"))||(null===window||void 0===window?void 0:window._isTIMCallKit))&&(this._component=15)):this._component=3,this.init()}return e.prototype.init=function(){var e=this;this._client=S.createClient({mode:k.NAME.RTC,sdkAppId:this._sdkAppID,userId:this._userID,userSig:this._userSig,frameWorkType:this._frameWorkType,component:this._component}),this.addTRTCEvents(),navigator.mediaDevices.addEventListener("devicechange",(function(){return o(e,void 0,void 0,(function(){var e,t,n,r,o,s=this;return a(this,(function(a){switch(a.label){case 0:return[4,S.getMicrophones()];case 1:return e=a.sent(),[4,S.getCameras()];case 2:return t=a.sent(),n=i(e,t),this.setDevices(n),r=n.filter((function(e){return s._prevDevices.findIndex((function(t){var n=t.deviceId;return e.deviceId===n}))<0})),o=this._prevDevices.filter((function(e){return n.findIndex((function(t){var n=t.deviceId;return e.deviceId===n}))<0})),r.length>0&&this.handleDevicesAdd(r),o.length>0&&this.handleDevicesRemoved(o),this._tuiCallEngine._delegate.onDeviceUpdated(this._device.microphoneList,this._device.cameraList,this._device.audio,this._device.video),this._prevDevices=n,[2]}}))}))}))},e.prototype.getClient=function(){return this._client},e.prototype.getRemoteStreams=function(){return this._remoteStreams},e.prototype.getLocalStream=function(){return this._localStream},e.prototype.getMicrophoneList=function(){return o(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return[4,S.getMicrophones()];case 1:return e=t.sent(),this._device.microphoneList=e,[2]}}))}))},e.prototype.getCamerasList=function(){return o(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return[4,S.getCameras()];case 1:return e=t.sent(),this._device.cameraList=e,[2]}}))}))},e.prototype.getDevices=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return this._logger.info(w+".getDevices.start",{text:{data:{callType:e}},type:"api"}),[4,this.getMicrophoneList()];case 1:return t.sent(),0!==this._device.microphoneList.length?[3,3]:[4,this._tuiCallEngine._resetTUICallEngine()];case 2:return t.sent(),this._tuiCallEngine._delegate.onError(g.default.NOT_MICROPHONE_LIST,_.ERROR_MESSAGE.NOT_MICROPHONE_LIST),this._logger.error(w+".getDevices.fail",{text:{error:_.ERROR_MESSAGE.NOT_MICROPHONE_LIST},type:"api"}),[2];case 3:return this._device.audio=JSON.parse(JSON.stringify(this._device.microphoneList[0])),e===d.CALL_TYPE.VIDEO_CALL&&this._tuiCallEngine.getDevicePermission().video?[4,this.getCamerasList()]:[3,5];case 4:t.sent(),this._device.video=JSON.parse(JSON.stringify(this._device.cameraList[0])),t.label=5;case 5:return this._prevDevices.length>0||(this._prevDevices=i(this._device.microphoneList,this._device.cameraList)),[2]}}))}))},e.prototype.setDevices=function(e){this._device.microphoneList=e.filter((function(e){return e.kind===k.NAME.AUDIO_INPUT}))||[],this._device.cameraList=e.filter((function(e){return e.kind===k.NAME.VIDEO_INPUT}))||[]},e.prototype.handleDevicesAdd=function(e,t){var n=this;e.forEach((function(e){e.kind===k.NAME.AUDIO_INPUT?n.switchDevice(d.DEVICE_TYPE.AUDIO,e.deviceId):e.kind===k.NAME.VIDEO_INPUT&&t&&n.switchDevice(d.DEVICE_TYPE.VIDEO,e.deviceId)}))},e.prototype.handleDevicesRemoved=function(e){var t=this;e.forEach((function(e){e.kind===k.NAME.AUDIO_INPUT?t.isCurrentMicrophoneRemoved(e.deviceId)&&t.handleDevicesAdd(t._prevDevices):e.kind===k.NAME.VIDEO_INPUT&&t.isCurrentCameraRemoved(e.deviceId)&&t.handleDevicesAdd(t._prevDevices,!0)}))},e.prototype.isCurrentMicrophoneRemoved=function(e){var t,n=null===(t=this._localStream)||void 0===t?void 0:t.getAudioTrack();return!(!n||n.getSettings().deviceId!==e)},e.prototype.isCurrentCameraRemoved=function(e){var t,n=null===(t=this._localStream)||void 0===t?void 0:t.getVideoTrack();return!(!n||n.getSettings().deviceId!==e)},e.prototype.switchDevice=function(e,t){return o(this,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return this._logger.info(w+".switchDevice.start",{text:{data:{deviceType:e,deviceId:t}},type:"api"}),l.default.log(w+".switchDevice - params: deviceType:"+e+",deviceID:"+t),this._localStream?[4,this._localStream.switchDevice(e,t)]:[3,2];case 1:r.sent(),r.label=2;case 2:return n={deviceType:e,deviceId:t},this._device[e]=n,this._tuiCallEngine._delegate.onDeviceUpdated(this._device.microphoneList,this._device.cameraList,this._device.audio,this._device.video),[2]}}))}))},e.prototype.join=function(e){var t;return o(this,void 0,void 0,(function(){var n,r,o,i,s,c,u,f,h,m=this;return a(this,(function(a){switch(a.label){case 0:return n=+new Date,r=this.getCallType(),this._logger.info(w+".join.start",{text:{data:{roomID:e,callType:r,isJoin:this._isJoined}},type:"api"}),r!==d.CALL_TYPE.VIDEO_CALL||this._tuiCallEngine.getDevicePermission().video?[3,2]:[4,this.getMediaDevicesAuth({video:!0})];case 1:a.sent(),a.label=2;case 2:return[4,this.getDevices(r)];case 3:if(a.sent(),this._isJoined)return this._logger.error(w+".join.fail",{text:{error:"duplicate RtcClient.join() observed"},type:"api"}),l.default.warn(w+".join - duplicate RtcClient.join() observed"),[2];a.label=4;case 4:return a.trys.push([4,6,,7]),[4,this._client.join({roomId:e})];case 5:return a.sent(),this._isJoined=!0,this._tuiCallEngine.isInviter()||(o=this._tuiCallEngine.generateEventData(),this._tuiCallEngine._delegate.onCallBegin(o)),i=+new Date,this._logger.info(w+".join.success",{type:"api",text:{cost:i-n}}),l.default.log(w+".join - join room success, callType:"+r),[3,7];case 6:throw s=a.sent(),this._logger.error(w+".join.fail",{text:{error:s},type:"api"}),l.default.error(w+".join - join room failed! "+s),new Error(w+".join - join room failed! "+s);case 7:if(this._tuiCallEngine.getCallStatus()===d.CALL_STATUS.IDLE)return this._logger.error(w+".join.fail",{text:{error:"early hangup"},type:"api"}),l.default.warn(w+".join - early hangup"),[2,this._tuiCallEngine.hangup()];c={audio:!0,video:!1,userId:this._userID},r===d.CALL_TYPE.VIDEO_CALL&&this._tuiCallEngine.getDevicePermission().video&&(c.video=!0),a.label=8;case 8:return a.trys.push([8,15,,16]),u=+new Date,this._logger.info(w+".join.createStream.start",{text:{data:c},type:"api"}),this._localStream=S.createStream(c),[4,this._setVideoProfile(this._localStream)];case 9:return a.sent(),[4,this._localStream.initialize()];case 10:return a.sent(),(null===(t=null==this?void 0:this._tuiCallEngine)||void 0===t?void 0:t.tim)?[4,p.timeoutForFun((function(){return m._addAiNoiseReduce(m._tuiCallEngine.tim)}),3e3)]:[3,12];case 11:a.sent(),a.label=12;case 12:return f=+new Date,this._logger.info(w+".join.createStream.success",{text:{cost:f-u},type:"api"}),l.default.log(w+".join - initialize local stream success"),this._tuiCallEngine.isInviter()?[3,14]:[4,this.publish()];case 13:a.sent(),a.label=14;case 14:return this._joinedTimestamp=new Date,[2,{audio:c.audio,video:c.video,userId:c.userId}];case 15:throw h=a.sent(),this._logger.error(w+".join.fail",{text:{error:h},type:"api"}),l.default.error(w+".join - failed to initialize local stream - "+h),new v.default({message:w+"<join>: "+_.ERROR_MESSAGE.ERROR_PERMISSION_DENIED,code:g.default.ERROR_PERMISSION_DENIED});case 16:return[2]}}))}))},e.prototype._addAiNoiseReduce=function(e){return o(this,void 0,void 0,(function(){var t,n,r;return a(this,(function(o){switch(o.label){case 0:this._logger.info(w+"._addAiNoiseReduce.start",{type:"api",text:{data:{assetsPath:this._assetsPath}}}),o.label=1;case 1:return o.trys.push([1,7,,8]),[4,O.validateBusiness(e,b.CALL_EXPERMENTEL_API_TYPE.PRO,this._sdkAppID)];case 2:return t=o.sent(),l.default.info(w+"._addAiNoiseReduce - aiNoiseReduceSupport."+t),t&&y?(this._assetsPath||l.default.warn(w+"._addAiNoiseReduce - please pass validate assetsPath"),this._aiNoiseSuppression=new y({assetsPath:this._assetsPath||M.AI_NOISE_REDUCE_ASSETS_PATH}),n=this,[4,this._aiNoiseSuppression.createProcessor({sdkAppId:this._sdkAppID,userId:this._userID,userSig:this._userSig})]):[3,6];case 3:return n._aiNoiseSuppressionProcessor=o.sent(),[4,this._aiNoiseSuppressionProcessor.process(this._localStream)];case 4:return o.sent(),[4,this.enableAIVoice(this._isAiNoiseSuppress)];case 5:o.sent(),o.label=6;case 6:return[3,8];case 7:return r=o.sent(),this._logger.error(w+"._addAiNoiseReduce.fail",{text:{error:r},type:"api"}),l.default.warn(w+"._addAiNoiseReduce - error."+r),[3,8];case 8:return[2]}}))}))},e.prototype.playLocalVideo=function(e){var t;return o(this,void 0,void 0,(function(){var n,r,o,i,s,c;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,5,,6]),this._logger.info(w+".playLocalVideo.start",{text:{data:e},type:"api"}),l.default.debug(w+".playLocalVideo - params:",e),n=e.videoViewDomID,r=e.userID,e.options&&this._tuiCallEngine.setLocalPlayOptions(e.options),o=this._tuiCallEngine.getLocalPlayOptions(),i=n,typeof n===k.NAME.STRING&&(i=document.getElementById(n)),this._userIdDomMap.set(r,i),!this._localStream||this._localStream.hasVideo()?[3,2]:(s=this._localStream.getVideoTrack(),[4,this.addTrack(s)]);case 1:a.sent(),a.label=2;case 2:return i?[4,null===(t=null==this?void 0:this._localStream)||void 0===t?void 0:t.play(i,o)]:[3,4];case 3:a.sent(),a.label=4;case 4:return[3,6];case 5:throw c=a.sent(),this._logger.error(w+".playLocalVideo.fail",{text:{error:c},type:"api"}),l.default.error(w+".playLocalVideo - failed, error:"+c),new Error(w+".playLocalVideo - failed, error:"+c);case 6:return[2]}}))}))},e.prototype.stopLocalVideo=function(){return o(this,void 0,void 0,(function(){var e,t;return a(this,(function(n){switch(n.label){case 0:return n.trys.push([0,6,,7]),this._logger.info(w+".stopLocalVideo.start",{text:{data:{hasLocalStream:!!this._localStream,hasVideo:this._localStream&&this._localStream.hasVideo()}},type:"api"}),this._localStream?this._localStream.hasAudio()?(e=this._localStream.getVideoTrack())?[4,this._localStream.removeTrack(e)]:[3,2]:[3,3]:[3,5];case 1:n.sent(),e.stop(),n.label=2;case 2:return[3,5];case 3:return[4,this.unpublish()];case 4:n.sent(),this._localStream.stop(),this._localStream.close(),this._localStream=null,this._userIdDomMap.delete(this._tuiCallEngine.getUserID()),n.label=5;case 5:return[3,7];case 6:throw t=n.sent(),this._logger.error(w+".stopLocalVideo.fail",{text:{error:t},type:"api"}),l.default.error(w+".stopLocalVideo - failed to play local video "+t),new Error(w+".stopLocalVideo - failed to play local video "+t);case 7:return[2]}}))}))},e.prototype.playRemoteVideo=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o,i,s;return a(this,(function(a){switch(a.label){case 0:l.default.debug(w+".playRemoteVideo - params:",e),t=e.videoViewDomID,n=e.userID,e.options&&this._tuiCallEngine.setRemotePlayOptions(e.options),r=this._tuiCallEngine.getRemotePlayOptions(),o=t,typeof t===k.NAME.STRING&&(o=document.getElementById(t)),this._userIdDomMap.set(n,o),a.label=1;case 1:if(a.trys.push([1,6,,7]),!(i=this._remoteStreams.find((function(e){return e.getUserId()===n}))))throw new Error("currentRemoteUserStream is empty");if(!o)throw new Error("domID is empty");return document.getElementById("_trtc_calling_audio_call-"+n)?[4,i.stop()]:[3,3];case 2:a.sent(),document.getElementById("_trtc_calling_audio_call-"+n).remove(),a.label=3;case 3:return[4,null==i?void 0:i.play(o,r)];case 4:return a.sent(),[4,null==i?void 0:i.unmuteVideo()];case 5:return a.sent(),[3,7];case 6:throw s=a.sent(),this._logger.error(w+".playRemoteVideo.fail",{text:{error:s},type:"api"}),l.default.error(w+".playRemoteVideo - failed to play remote video reason: "+s),new Error(w+".playRemoteVideo - failed to play remote video reason: "+s);case 7:return[2]}}))}))},e.prototype.stopRemoteVideo=function(e){return o(this,void 0,void 0,(function(){var t,n,r;return a(this,(function(o){switch(o.label){case 0:l.default.debug(w+".stopRemoteVideo - params:",e),t=e.userID,o.label=1;case 1:return o.trys.push([1,4,,5]),(n=this._remoteStreams.find((function(e){return e.getUserId()===t})))&&n.hasVideo()?[4,n.muteVideo()]:[3,3];case 2:o.sent(),o.label=3;case 3:return[3,5];case 4:throw r=o.sent(),this._logger.error(w+".stopRemoteView.fail",{text:{error:r},type:"api"}),l.default.error(w+".stopRemoteVideo - failed to stop remote video "+r),new Error(w+".stopRemoteVideo - failed to stop remote video "+r);case 5:return[2]}}))}))},e.prototype.getCallType=function(){return this._tuiCallEngine.getCallType()},e.prototype.leave=function(){var e,t;return o(this,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return this._logger.info(w+".leave.start",{text:{data:{isJoined:this._isJoined}},type:"api"}),l.default.log(w+"-leave._isJoined:"+this._isJoined),this._isJoined?[4,this.unpublish()]:(l.default.warn(w+".leave - please join() firstly"),[2]);case 1:return r.sent(),this._tuiCallEngine.getCallDataReport().setExitRoomTime((new Date).getTime()),[4,this._client.leave()];case 2:return r.sent(),this._isJoined=!1,this._isPublished=!1,null===(e=null==this?void 0:this._localStream)||void 0===e||e.close(),this._localStream=null,this._remoteStreams=[],this._userIdDomMap.clear(),this._videoAvailableMap.clear(),this._leaveTimestamp=new Date,this._client.enableAudioVolumeEvaluation(-1),null===(t=null==this?void 0:this._aiNoiseSuppressionProcessor)||void 0===t||t.destroy(),this._aiNoiseSuppressionProcessor=null,this._isAiNoiseSuppress=!0,n=Math.floor((this._leaveTimestamp-this._joinedTimestamp)/1e3),new f.default(h.default.TALK_TIME).setTalkTime(n).setText("talkTime record").setEnd(),[2]}}))}))},e.prototype.publish=function(){return o(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:if(this._logger.info(w+".publish.start",{text:{data:{isJoined:this._isJoined,isPublished:this._isPublished,hasLocalStream:!!this._localStream}},type:"api"}),!this._isJoined)return l.default.warn(w+".publish - please join() firstly"),[2];if(this._isPublished)return l.default.warn(w+".publish - duplicate RtcClient.publish() observed"),[2];if(this._tuiCallEngine.getCallStatus()===d.CALL_STATUS.IDLE)return this._logger.error(w+".publish.fail",{text:{error:"early hangup"},type:"api"}),l.default.warn(w+".join - early hangup"),this._tuiCallEngine.hangup(),[2];if(!this._localStream)return[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._client.publish(this._localStream)];case 2:return t.sent(),this._isPublished=!0,l.default.log(w+".publish success"),[3,4];case 3:return e=t.sent(),this._logger.error(w+".publish.fail",{text:{error:e},type:"api"}),l.default.error(w+".publish - failed to publish local stream "+e),this._isPublished=!1,[3,4];case 4:return[2]}}))}))},e.prototype.unpublish=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this._logger.info(w+".unpublish.start",{text:{data:{isPublished:this._isPublished,hasLocalStream:!!this._localStream,unPublishing:this._unPublishing}},type:"api"}),this._isPublished?this._localStream?this._unPublishing?(l.default.log(w+".unpublish - _unPublishing"),[2]):(this._unPublishing=!0,[4,this._client.unpublish(this._localStream)]):(l.default.warn(w+".unpublish - RtcClient._localStream is null"),[2]):(l.default.warn(w+".unpublish - RtcClient.unpublish() called but not published yet"),[2]);case 1:return e.sent(),l.default.log(w+".unpublish - complete"),this._unPublishing=!1,this._isPublished=!1,[2]}}))}))},e.prototype.playAudioStream=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o;return a(this,(function(a){return t=e.getUserId(),n="_trtc_calling_audio_call-"+t,(r=document.getElementById("_trtc_calling_layer"))||((r=document.createElement("div")).setAttribute("id","_trtc_calling_layer"),r.style.display="none",document.body.appendChild(r)),(o=document.createElement("div")).setAttribute("id",n),r.appendChild(o),e&&(e.play(n),e.on("error",(function(t){if(16451===t.getCode()){var n=document.createElement("button");n.onclick=function(){l.default.log(w+".remoteStream - resume"),e.resume()},n.style.display="none",document.body.appendChild(n);var r=setTimeout((function(){n.click(),clearTimeout(r),document.body.removeChild(n)}),0)}}))),[2]}))}))},e.prototype.delegateVideoAvailableState=function(e,t){e&&this._videoAvailableMap.get(e)!==t&&(this._videoAvailableMap.set(e,t),this._tuiCallEngine._delegate.onUserVideoAvailable({userID:e,isVideoAvailable:t}))},e.prototype.querySubscribeSuccess=function(e){return void 0!==this._videoAvailableMap.get(e)},e.prototype.addTRTCEvents=function(){var e=this;this._client.on("error",(function(t){l.default.error(w+".handleEvents - client on error "+t);var n=t.getCode(),r=JSON.stringify({name:k.NAME.TRTC,error:t});e._tuiCallEngine._delegate.onError(n,r)})),this._client.on("client-banned",(function(t){return o(e,void 0,void 0,(function(){var e,n;return a(this,(function(o){switch(o.label){case 0:return l.default.error(w+".handleEvents - client has been banned for "+t),this._tuiCallEngine.getCallStatus()===d.CALL_STATUS.CONNECTED&&(e=this._tuiCallEngine.generateCallEndData(),this._tuiCallEngine._delegate.onCallEnd(e)),this._tuiCallEngine.getCallStatus()!==d.CALL_STATUS.CALLING?[3,2]:(n=r(r({},this._tuiCallEngine.generateEventData()),{reason:k.NAME.BANNED}),this._tuiCallEngine._delegate.onCallingCancel(r({userID:this._tuiCallEngine.getUserID()},n)),[4,this._tuiCallEngine._cancel()]);case 1:o.sent(),o.label=2;case 2:return[4,this._tuiCallEngine._resetTUICallEngine()];case 3:return o.sent(),[2]}}))}))})),this._client.on("peer-join",(function(t){return o(e,void 0,void 0,(function(){var e,n,r,o;return a(this,(function(a){switch(a.label){case 0:return e=t.userId,this._isPublished||!this._tuiCallEngine.isInviter()?[3,2]:[4,this.publish()];case 1:a.sent(),a.label=2;case 2:return l.default.log(w+".handleEvents - peer-join "+e),this._tuiCallEngine.getConnectStartTime()||(this._tuiCallEngine.setConnectStartTime(Date.now()),this._client.enableAudioVolumeEvaluation(1e3)),this._tuiCallEngine._delegate.onUserEnter(e),n=this._tuiCallEngine.isGroupCall(),this._tuiCallEngine.addHandledInviteeList([e]),this._tuiCallEngine.deleteUnHandledInviteeList([e]),this._tuiCallEngine.addAcceptedUserList(null,[e]),this._tuiCallEngine.getCallStatus()===d.CALL_STATUS.CALLING&&this._tuiCallEngine.isInviter()&&(r=this._tuiCallEngine.generateEventData(),this._tuiCallEngine._delegate.onCallBegin(r)),this._tuiCallEngine.changeCallStatus(d.CALL_STATUS.CONNECTED),n&&(o=this._tuiCallEngine.getHandledInviteeList(),this._tuiCallEngine._delegate.onGroupCallInviteeListUpdate(o)),[2]}}))}))})),this._client.on("peer-leave",(function(t){return o(e,void 0,void 0,(function(){var e,n,r,o,i,s,c,u;return a(this,(function(a){switch(a.label){case 0:return this._tuiCallEngine.getCallStatus()===d.CALL_STATUS.IDLE?[2]:(e=t.userId,l.default.log(w+".handleEvents - peer-leave:"+e),n=this._tuiCallEngine.isGroupCall(),this._tuiCallEngine.deleteHandledInviteeList([e]),this._videoAvailableMap.delete(e),this._tuiCallEngine._delegate.onUserLeave(e),n?(r=this._tuiCallEngine.getHandledInviteeList(),o=this._tuiCallEngine.getUnHandledInviteeList(),0!==r.length&&this._tuiCallEngine._delegate.onGroupCallInviteeListUpdate(r),i=this._tuiCallEngine.getUserID(),1!==r.length||r[0]!==i||0!==o.length?[3,2]:(s=this._tuiCallEngine.generateCallEndData(),this._tuiCallEngine._delegate.onCallEnd(s),[4,this._tuiCallEngine._resetTUICallEngine()])):[3,3]);case 1:a.sent(),a.label=2;case 2:return[3,6];case 3:return c=this._tuiCallEngine.getHandledInviteeList(),u={callType:this._tuiCallEngine.getCallType(),userIDList:[e],callEnd:this._tuiCallEngine.generateCallTotalTime()},1!==c.length?[3,6]:[4,this._tuiCallEngine._tsignalingClient.hangup(u)];case 4:return a.sent(),[4,this._tuiCallEngine._resetTUICallEngine()];case 5:a.sent(),a.label=6;case 6:return[2]}}))}))})),this._client.on("stream-added",(function(t){return o(e,void 0,void 0,(function(){var e,n,r,o,i,s;return a(this,(function(a){switch(a.label){case 0:e=t.stream,n=e.getId(),r=e.getUserId(),l.default.log(w+".handleEvents - remote stream added, userID:"+r+" streamID:"+n+" type:"+e.getType()),a.label=1;case 1:return a.trys.push([1,3,,5]),[4,this._client.subscribe(e)];case 2:return a.sent(),[3,5];case 3:return o=a.sent(),i=o.getCode(),s=JSON.stringify({name:"TRTC",error:o}),[4,this._tuiCallEngine._resetTUICallEngine()];case 4:return a.sent(),this._tuiCallEngine._delegate.onError(i,s),[3,5];case 5:return[2]}}))}))})),this._client.on("stream-subscribed",(function(t){return o(e,void 0,void 0,(function(){var e,n;return a(this,(function(r){return e=t.stream,n=e.getUserId(),l.default.log(w+".handleEvents - stream subscribed, _remoteStreams:"+this._remoteStreams+", userID:"+n+", video: "+e.hasVideo()),this._remoteStreams.push(e),this._tuiCallEngine.getCallType()===d.CALL_TYPE.VIDEO_CALL&&this.delegateVideoAvailableState(n,e.hasVideo()),(this.getCallType()===d.CALL_TYPE.AUDIO_CALL||this._tuiCallEngine.getCallType()===d.CALL_TYPE.VIDEO_CALL&&!e.hasVideo())&&this.playAudioStream(e),[2]}))}))})),this._client.on("stream-removed",(function(t){var n=t.stream,r=n.getId(),o=n.getUserId(),a="_trtc_calling_audio_call-"+o;if(l.default.log(w+".handleEvents - remote stream-removed, streamID:"+r+" type:"+n.getType()),e._tuiCallEngine._delegate.onUserAudioAvailable({userID:o,isAudioAvailable:!1}),e._tuiCallEngine._delegate.onUserVideoAvailable({userID:o,isVideoAvailable:!1}),n.stop(),n.close(),e._remoteStreams=e._remoteStreams.filter((function(e){return e.getId()!==r})),e.getCallType()===d.CALL_TYPE.AUDIO_CALL){var i=document.getElementById("_trtc_calling_layer"),s=document.getElementById(a);i&&s&&i.removeChild(s)}e._videoAvailableMap.delete(o)})),this._client.on("stream-updated",(function(t){var n=t.stream,r=n.getUserId(),o=n.getType(),a=n.hasAudio(),i=n.hasVideo();l.default.log(w+".handleEvents - stream-updated, type:"+o+" hasAudio:"+a+" hasVideo:"+i),e.querySubscribeSuccess(r)&&e.delegateVideoAvailableState(r,!!i)})),this._client.on("mute-audio",(function(t){l.default.debug(w+".handleEvents - "+t.userId+" mute audio"),e._tuiCallEngine._delegate.onUserAudioAvailable({userID:t.userId,isAudioAvailable:!1})})),this._client.on("unmute-audio",(function(t){l.default.debug(w+".handleEvents - "+t.userId+" unmute audio"),e._tuiCallEngine._delegate.onUserAudioAvailable({userID:t.userId,isAudioAvailable:!0})})),this._client.on("mute-video",(function(t){l.default.debug(w+".handleEvents - "+t.userId+" mute video"),e.querySubscribeSuccess(t.userId)&&e.delegateVideoAvailableState(t.userId,!1)})),this._client.on("unmute-video",(function(t){l.default.debug(w+".handleEvents - "+t.userId+" unmute video"),e.querySubscribeSuccess(t.userId)&&e.delegateVideoAvailableState(t.userId,!0)})),this._client.on("audio-volume",(function(t){l.default.debug(w+".handleEvents - "+t+" audio volume"),e._tuiCallEngine._delegate.onUserVoiceVolume(t.result)})),this._client.on("connection-state-changed",(function(e){l.default.log(w+".handleEvents - RtcClient state changed from "+e.prevState+" to "+e.state)}))},e.prototype.removeTRTCEvents=function(){this._client.off("*")},e.prototype.muteLocalAudio=function(){var e;null===(e=this._localStream)||void 0===e||e.muteAudio()},e.prototype.unMuteLocalAudio=function(){var e;null===(e=this._localStream)||void 0===e||e.unmuteAudio()},e.prototype.switchCallMode=function(e){return o(this,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:switch(l.default.log(w+".switchCallMode - type",e),t=this._localStream.getVideoTrack(),e){case d.CALL_TYPE.VIDEO_CALL:return[3,1];case d.CALL_TYPE.AUDIO_CALL:return[3,2]}return[3,6];case 1:try{this.removeTrack(t),this._tuiCallEngine.setCallType(d.CALL_TYPE.AUDIO_CALL),this._tuiCallEngine.setSwitchCallModeStatus(!0),this._tuiCallEngine._delegate.onCallTypeChanged(d.CALL_TYPE.VIDEO_CALL,d.CALL_TYPE.AUDIO_CALL)}catch(e){this._tuiCallEngine._delegate.onError(g.default.FAILURE_SWITCH_TO_AUDIO,_.ERROR_MESSAGE.FAILURE_SWITCH_TO_AUDIO)}return[3,6];case 2:return n.trys.push([2,4,,5]),[4,this.addTrack(t)];case 3:return n.sent(),this._tuiCallEngine.setCallType(d.CALL_TYPE.VIDEO_CALL),this._tuiCallEngine.setSwitchCallModeStatus(!0),this._tuiCallEngine._delegate.onCallTypeChanged(d.CALL_TYPE.AUDIO_CALL,d.CALL_TYPE.VIDEO_CALL),[3,5];case 4:return n.sent(),this._tuiCallEngine._delegate.onError(g.default.FAILURE_SWITCH_TO_VIDEO,_.ERROR_MESSAGE.FAILURE_SWITCH_TO_VIDEO),[3,5];case 5:return[3,6];case 6:return[2]}}))}))},e.prototype.removeTrack=function(e){return o(this,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:if(l.default.log(w+".removeTrack ",!!e),!e)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._localStream.removeTrack(e)];case 2:return n.sent(),e.stop(),[3,4];case 3:throw t=n.sent(),l.default.error(w+".removeTrack - failed to removeTrack local stream "+t),new Error(t);case 4:return[2]}}))}))},e.prototype.addTrack=function(e){var t,n;return o(this,void 0,void 0,(function(){var r,o,i,s,c;return a(this,(function(a){switch(a.label){case 0:return this._logger.info(w+".addTrack.start",{type:"api"}),l.default.log(w+".addTrack ",!e),e?[3,7]:(r={userId:this._tuiCallEngine.getUserID(),audio:!1,video:!0},(o=null===(t=null==this?void 0:this._localStream)||void 0===t?void 0:t.getCameraId())&&(r.cameraId=o),i=S.createStream(r),[4,this._setVideoProfile(i)]);case 1:return a.sent(),[4,i.initialize()];case 2:a.sent(),s=i.getVideoTrack(),a.label=3;case 3:return a.trys.push([3,6,,7]),s?[4,null===(n=this._localStream)||void 0===n?void 0:n.addTrack(s)]:[3,5];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw c=a.sent(),this._logger.error(w+".addTrack.fail",{text:{error:c},type:"api"}),l.default.error(w+".addTrack - failed to addTrack local stream "+c),new Error(c);case 7:return[2]}}))}))},e.prototype.reset=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this._isJoined?[4,this.leave()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.getMediaDevicesAuth=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o;return a(this,(function(a){switch(a.label){case 0:if(u.isHttpProtocols())throw this._logger.error(w+".getMediaDevicesAuth.fail",{text:{error:_.ERROR_MESSAGE.ERROR_HTTP},type:"api"}),new v.default({message:""+_.ERROR_MESSAGE.ERROR_HTTP,code:g.default.ERROR_HTTP});if(t=this._tuiCallEngine.getDevicePermission(),!e.audio)return[3,4];if(C.IS_IOS&&t.audio)return[2,t];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia({audio:!0,video:!1})];case 2:return r=a.sent(),this.releaseStream(r),this._tuiCallEngine.setDevicePermission(d.DEVICE_TYPE.AUDIO,!0),[3,4];case 3:throw n=a.sent(),this._tuiCallEngine.setDevicePermission(d.DEVICE_TYPE.AUDIO,!1),n;case 4:if(!e.video)return[3,8];if(C.IS_IOS&&t.video)return[2,t];a.label=5;case 5:return a.trys.push([5,7,,8]),[4,navigator.mediaDevices.getUserMedia({audio:!1,video:!0})];case 6:return r=a.sent(),this.releaseStream(r),this._tuiCallEngine.setDevicePermission(d.DEVICE_TYPE.VIDEO,!0),[3,8];case 7:if(o=a.sent(),this._tuiCallEngine.setDevicePermission(d.DEVICE_TYPE.VIDEO,!1),l.default.error(w+".getMediaDevicesAuth - failed to get user video steam - "+o),e.isThrowVideoError)throw o;return[3,8];case 8:return[2,this._tuiCallEngine.getDevicePermission()]}}))}))},e.prototype.enableAIVoice=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return this._isAiNoiseSuppress=e,this._aiNoiseSuppressionProcessor?(l.default.info(w+".enableAIVoice "+e),e?[4,this._aiNoiseSuppressionProcessor.enable()]:[3,2]):(this._logger.error(w+".enableAIVoice.fail",{text:{data:{enable:e}},type:"api"}),[2]);case 1:return t.sent(),[3,4];case 2:return[4,this._aiNoiseSuppressionProcessor.disable()];case 3:t.sent(),t.label=4;case 4:return[2]}}))}))},e.prototype.releaseStream=function(e){for(var t=e.getTracks(),n=0;n<t.length;n++)t[n].stop()},e.prototype._setVideoProfile=function(e,t){return o(this,void 0,void 0,(function(){var n,r;return a(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,7]),this._logger.info(w+"._setVideoProfile.start",{type:"api"}),e?(t=t||this._tuiCallEngine.getVideoQuality(),e?[4,e.setVideoProfile(t)]:[3,2]):(this._logger.error(w+"._setVideoProfile.fail",{text:{error:"stream is empty"},type:"api"}),l.default.warn(w+"._setVideoProfile - stream is empty"),[2]);case 1:o.sent(),o.label=2;case 2:return[3,7];case 3:return n=o.sent(),this._logger.error(w+"._setVideoProfile.fail",{text:{error:n},type:"api"}),"OverconstrainedError"!==n.name?[3,5]:(console.error("当前摄像头不支持该 profile"),[4,(r=S.createStream({video:!0,audio:!1})).initialize()]);case 4:return o.sent(),this._localStream.replaceTrack(r.getVideoTrack()),[3,6];case 5:console.error("当前浏览器不支持动态调用该接口"),o.label=6;case 6:return[3,7];case 7:return[2]}}))}))},e.prototype._setVideoRenderParams=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o,i,s,c,u,d,f,h,m,v,g,_;return a(this,(function(b){switch(b.label){case 0:return b.trys.push([0,11,,12]),n=(t=e||{}).userID,r=t.objectFit,o=void 0===r?"":r,n&&!this._userIdDomMap.has(n)?(this._logger.error(w+".setVideoRenderParams.fail",{text:{error:n+" does not have a play node"},type:"api"}),l.default.warn(w+"._setVideoRenderParams - failed the userID: "+n+" does not have a play node"),[2]):(i={},o!==k.NAME.CONTAIN&&o!==k.NAME.COVER&&o!==k.NAME.FILL||(i.objectFit=e.objectFit),p.isBoolean(e.muted)&&(i.muted=e.muted),p.isBoolean(e.mirror)&&(i.mirror=e.mirror),s=this._tuiCallEngine.getUserID(),n!==s&&n?[3,3]:(this._tuiCallEngine.setLocalPlayOptions(i),c=this._tuiCallEngine.getLocalPlayOptions(),v=this._userIdDomMap.get(s),this._localStream?[4,this._localStream.play(v,c)]:[3,2]));case 1:b.sent(),b.label=2;case 2:b.label=3;case 3:if(n)return[3,7];this._tuiCallEngine.setRemotePlayOptions(i),m=this._tuiCallEngine.getRemotePlayOptions(),u=(u=Array.from(this._userIdDomMap,(function(e){return e[0]}))).filter((function(e){return e!==s})),d=function(e){var t,n;return a(this,(function(r){switch(r.label){case 0:return t=f._userIdDomMap.get(u[e]),n=f._remoteStreams.find((function(t){return t.getUserId()===u[e]})),n?[4,n.play(t,m)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}}))},f=this,h=0,b.label=4;case 4:return h<u.length?[5,d(h)]:[3,7];case 5:b.sent(),b.label=6;case 6:return h++,[3,4];case 7:return n&&n!==s?(this._tuiCallEngine.setRemotePlayOptions(i),m=this._tuiCallEngine.getRemotePlayOptions(),v=this._userIdDomMap.get(n),g=this._remoteStreams.find((function(e){return e.getUserId()===n})),g?[4,g.play(v,m)]:[3,9]):[3,10];case 8:b.sent(),b.label=9;case 9:b.label=10;case 10:return[3,12];case 11:return _=b.sent(),this._logger.error(w+".setVideoRenderParams.fail",{text:{error:_},type:"api"}),l.default.warn(w+"._setVideoRenderParams - failed call stream.play error: "+_),[3,12];case 12:return[2]}}))}))},e}();t.default=T},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHttpProtocols=void 0,t.isHttpProtocols=function(){if(!window)return!1;if(!window.location)return!1;var e=window.location,t=e.protocol,n=e.hostname;return"http:"===t&&"localhost"!==n&&"127.0.0.1"!==n}},function(e,t,n){"use strict";var r=n(3),o=n(19),a=n(38),i=n(25);function s(e){var t=new a(e),n=o(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var c=s(n(16));c.Axios=a,c.create=function(e){return s(i(c.defaults,e))},c.Cancel=n(26),c.CancelToken=n(53),c.isCancel=n(24),c.all=function(e){return Promise.all(e)},c.spread=n(54),c.isAxiosError=n(55),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";var r=n(3),o=n(20),a=n(39),i=n(40),s=n(25),c=n(51),l=c.validators;function u(e){this.defaults=e,this.interceptors={request:new a,response:new a}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:l.transitional(l.boolean,"1.0.0"),forcedJSONParsing:l.transitional(l.boolean,"1.0.0"),clarifyTimeoutError:l.transitional(l.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!r){var u=[i,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(a),o=Promise.resolve(e);u.length;)o=o.then(u.shift(),u.shift());return o}for(var d=e;n.length;){var p=n.shift(),f=n.shift();try{d=p(d)}catch(e){f(e);break}}try{o=i(d)}catch(e){return Promise.reject(e)}for(;a.length;)o=o.then(a.shift(),a.shift());return o},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(3);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(3),o=n(41),a=n(24),i=n(16);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o.call(e,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]})),(e.adapter||i.adapter)(e).then((function(t){return s(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(s(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(3),o=n(16);e.exports=function(e,t,n){var a=this||o;return r.forEach(n,(function(n){e=n.call(a,e,t)})),e}},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var c,l=[],u=!1,d=-1;function p(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&f())}function f(){if(!u){var e=s(p);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(23);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(3);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,a,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.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)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(47),o=n(48);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(3),o=["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,a,i={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(i[t]&&o.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},function(e,t,n){"use strict";var r=n(3);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(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=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(52),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={},i=r.version.split(".");function s(e,t){for(var n=t?t.split("."):i,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&s(t);function i(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(i(r," has been removed in "+t));return o&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],i=t[a];if(i){var s=e[a],c=void 0===s||i(s,a,e);if(!0!==c)throw new TypeError("option "+a+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+a)}},validators:o}},function(e){e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},function(e,t,n){"use strict";var r=n(26);function o(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))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,n){e.exports=t},function(e,t){e.exports=n},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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},s=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};Object.defineProperty(t,"__esModule",{value:!0});var c=n(59),l=n(5),u=n(2),d=n(6),p="TSignalClient",f=n(0),h=n(1),m=function(){function e(e,t){this._tuiCallEngine=e,this._tsignaling=new c(t),this._tsignalingReady=!1,this._joined=!1,this._newInvitationData=null,this._resolveMap=new Map,this._logger=l.default(),this.addTSignalEvents()}return e.prototype.setTSignalingIsJoined=function(e){this._joined=e},e.prototype.getTSignalingIsJoined=function(){return this._joined},e.prototype.setLogLevel=function(e){this._tsignaling.setLogLevel(e)},e.prototype.addTSignalEvents=function(){var e=this._tsignaling;e.on(c.EVENT.SDK_READY,this.onSdkReady,this),e.on(c.EVENT.SDK_NOT_READY,this.onSdkNotReady,this),e.on(c.EVENT.NEW_INVITATION_RECEIVED,this.onNewInvitationReceived,this),e.on(c.EVENT.INVITEE_ACCEPTED,this.onInviteeAccepted,this),e.on(c.EVENT.INVITEE_REJECTED,this.onInviteeRejected,this),e.on(c.EVENT.INVITATION_CANCELLED,this.onInvitationCancelled,this),e.on(c.EVENT.INVITATION_TIMEOUT,this.onInvitationTimeout,this),e.on(c.EVENT.KICKED_OUT,this.onKickedOut,this),e.on(c.EVENT.NET_STATE_CHANGE,this.onNetStateChange,this),c.EVENT.MESSAGE_SENT_BY_ME&&e.on(c.EVENT.MESSAGE_SENT_BY_ME,this.onMessageSentByMe,this)},e.prototype.onSdkReady=function(e){this._logger.info(p+".onSdkReady",{type:"event"}),this._tsignalingReady=!0,this._tuiCallEngine._delegate.onSdkReady(e);var t=this._resolveMap.get("login");t&&(t.resolve(t.value),this._resolveMap.delete("login"))},e.prototype.onSdkNotReady=function(){this._logger.info(p+".onSdkNotReady",{type:"event"}),this._tsignalingReady=!1},e.prototype.onNewInvitationReceived=function(e){var t,n,r;return o(this,void 0,void 0,(function(){var o,i,s,c,l,m,v,g,_,b,y;return a(this,(function(a){switch(a.label){case 0:return o=this._tuiCallEngine.getCallStatus(),this._logger.info(p+".onNewInvitationReceived",{type:"event",text:{data:{params:e,currentCallStatus:o}}}),u.default.log(p+".onNewInvitationReceived - params:",e,"currentCallStatus:"+o),i=e.data,s=i.inviter,c=i.inviteeList,l=i.data,m=i.inviteID,v=i.groupID,g=JSON.parse(l),h.isCallSignaling(null==g?void 0:g.businessID)?(g.room_id||(g.room_id=null===(t=null==g?void 0:g.data)||void 0===t?void 0:t.room_id),_=(null===(n=null==g?void 0:g.data)||void 0===n?void 0:n.initialCallId)||"",this._tuiCallEngine.getUserID()===s?[2]:(y={inviter:s,inviteeList:c,inviteID:m,isGroupCall:b=!!v,inviteData:g,groupID:v,initialCallId:_,currentCallStatus:o,inCallUserIDs:(null==g?void 0:g.inCallUserIDs)||[]},(null===(r=null==g?void 0:g.data)||void 0===r?void 0:r.cmd)!==d.CMD_TYPE.HANG_UP?[3,2]:(u.default.log(p+".hangup - params:",s,g,this._tuiCallEngine.getHandledInviteeList(),this._tuiCallEngine.getUnHandledInviteeList(),o,b),o===d.CALL_STATUS.IDLE?[2]:[4,this.handleHangupSignal(y)]))):[2];case 1:return a.sent(),[2];case 2:return!v&&this.judgeSwitchCallMode(g)?(o!==d.CALL_STATUS.IDLE&&this._tuiCallEngine.getRoomID()===g.room_id&&(this.handleSwitchCallMode(m,g),this._tuiCallEngine.addAudioVideoSwitchIdList(m)),[2]):o===d.CALL_STATUS.IDLE?[3,4]:[4,this.reject({inviteID:m,callType:g.call_type,isBusy:!0})];case 3:return a.sent(),this._tuiCallEngine.getCallRecordReport().eventUploadNotSave({inviteID:_||m,callRole:f.NAME.INVITEE,eventType:f.NAME.IGNORE_CALL,roomID:g.room_id,mediaType:g.call_type,callType:v?f.NAME.GROUP:f.NAME.SINGLE}),[2];case 4:return this.handleInvitedSignal(y),[2]}}))}))},e.prototype.handleHangupSignal=function(e){return o(this,void 0,void 0,(function(){var t,n,o,i,s,c,l,u,h,m;return a(this,(function(a){switch(a.label){case 0:if(this._logger.info(p+".handleHangupSignal",{text:{data:r(r({},e),{isInviter:this._tuiCallEngine.isInviter(),isGroupCall:this._tuiCallEngine.isGroupCall()})},type:"event"}),t=e.inviter,n=e.inviteData,o=e.currentCallStatus,i=e.inviteeList,s=this._tuiCallEngine.isGroupCall(),c=this._tuiCallEngine.isInviter(),o===d.CALL_STATUS.CALLING){if(u=this._tuiCallEngine.getHandledInviteeList(),-1!==(h=this._tuiCallEngine.getUnHandledInviteeList()).indexOf(t)&&this._tuiCallEngine.deleteUnHandledInviteeList([t]),-1===u.indexOf(t))return[2]}else if(this._tuiCallEngine.deleteHandledInviteeList([t]),-1===(u=this._tuiCallEngine.getHandledInviteeList()).indexOf(t)&&u.length>1)return[2];return l=this._tuiCallEngine.generateCallEndData({totalTime:n.call_end||0}),s?[3,2]:[4,this._tuiCallEngine._resetTUICallEngine()];case 1:return a.sent(),this._tuiCallEngine._delegate.onCallEnd(l),[3,10];case 2:return this._tuiCallEngine.deleteHandledInviteeList([t]),u=this._tuiCallEngine.getHandledInviteeList(),h=this._tuiCallEngine.getUnHandledInviteeList(),c?1!==u.length||0!==h.length?[3,4]:[4,this._tuiCallEngine._resetTUICallEngine()]:[3,5];case 3:a.sent(),this._tuiCallEngine._delegate.onCallEnd(l),a.label=4;case 4:return[3,10];case 5:return o!==d.CALL_STATUS.CALLING?[3,8]:(-1!==i.indexOf(this._tuiCallEngine.getUserID())&&this._tuiCallEngine._delegate.onUserLeave(t),0!==u.length||1!==h.length?[3,7]:(m=this._tuiCallEngine.generateEventData(),[4,this._tuiCallEngine._resetTUICallEngine()]));case 6:a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r(r({userID:t},m),{reason:f.NAME.NORMAL})),a.label=7;case 7:return[3,10];case 8:return 1!==u.length||0!==h.length?[3,10]:[4,this._tuiCallEngine._resetTUICallEngine()];case 9:a.sent(),this._tuiCallEngine._delegate.onCallEnd(l),a.label=10;case 10:return[2]}}))}))},e.prototype.handleInvitedSignal=function(e){return o(this,void 0,void 0,(function(){var t,n,o,i,c,l,u,p,h,m,v,g,_,b;return a(this,(function(a){return t=e.inviter,n=e.inviteeList,o=e.isGroupCall,i=e.groupID,c=e.inviteID,l=e.inviteData,u=e.inCallUserIDs,p=void 0===u?[]:u,h=e.initialCallId,m=void 0===h?"":h,this._tuiCallEngine.changeCallStatus(d.CALL_STATUS.CALLING),this._tuiCallEngine.setInviterID(t),this._tuiCallEngine.setInviteeList(n),this._tuiCallEngine.setRoomID(l.room_id),this._tuiCallEngine.setCallType(l.call_type),this._tuiCallEngine.addUnHandledInviteeList(s(n,p)),this._tuiCallEngine.addHandledInviteeList([t]),this._tuiCallEngine.addAcceptedUserList(c,[t]),this._tuiCallEngine.setInitialCallId(m),o&&(this._tuiCallEngine.setIsGroupCall(o),this._tuiCallEngine.setGroupID(i)),this._tuiCallEngine.addInviterInviteId(c,s([t],n)),v=p.filter((function(e){return-1===n.indexOf(e)})),this._newInvitationData={sponsor:t,userIDList:s(n,v),isFromGroup:o,inviteID:c,groupID:i,inviteData:{version:l.version,callType:l.call_type,roomID:l.room_id},userData:l.userData,calleeIdList:n},g=this._tuiCallEngine.getCallDataReport().getCallData(),g=r(r({},g),{roomID:l.room_id,inviteID:c,callRole:d.CALL_ROLE.INVITEE,callType:l.call_type,inviteeList:n,callScene:i?f.NAME.GROUP_CALL:f.NAME.SINGLE_CALL}),_=this._tuiCallEngine.generateEventData()||{},this._tuiCallEngine.getCallDataReport().setCallData(g),b={eventType:f.NAME.RECEIVE_CALL,callType:i?f.NAME.GROUP:f.NAME.SINGLE,mediaType:l.call_type,callRole:f.NAME.INVITEE,userID:this._tuiCallEngine.getUserID(),roomID:l.room_id,inviteID:m||c},this._tuiCallEngine.getCallRecordReport().eventUpload(b),this._tuiCallEngine._delegate.onInvited(r(r({},_),this._newInvitationData)),[2]}))}))},e.prototype.getInviteData=function(){return this._newInvitationData},e.prototype.setInviteData=function(e){this._newInvitationData=e},e.prototype.handleSwitchCallMode=function(e,t){var n={inviteID:e,callType:t.call_type,switch_to_audio_call:null},r={cmd:d.CMD_TYPE.SWITCH_TO_VIDEO};t.call_type===d.CALL_TYPE.VIDEO_CALL?(n.switch_to_audio_call=d.CMD_TYPE.SWITCH_TO_AUDIO_CALL,r.cmd=d.CMD_TYPE.SWITCH_TO_AUDIO):delete n.switch_to_audio_call;var o=this._tuiCallEngine.getCallStatus();if(this.accept(n,r),o===d.CALL_STATUS.CALLING){var a=t.call_type===d.CALL_TYPE.VIDEO_CALL?d.CALL_TYPE.AUDIO_CALL:d.CALL_TYPE.VIDEO_CALL;this._tuiCallEngine._delegate.onCallTypeChanged(t.call_type,a),this._newInvitationData.inviteData.callType=a,this._tuiCallEngine.setSwitchCallModeStatus(!1)}else o===d.CALL_STATUS.CONNECTED&&(this._tuiCallEngine.setSwitchCallModeStatus(!1),this._tuiCallEngine._trtcClient.switchCallMode(this._tuiCallEngine.getCallType()))},e.prototype.judgeSwitchCallMode=function(e){var t=e.switch_to_audio_call&&e.switch_to_audio_call===d.CMD_TYPE.SWITCH_TO_AUDIO_CALL||e.data&&e.data.cmd===d.CMD_TYPE.SWITCH_TO_AUDIO||e.data&&e.data.cmd===d.CMD_TYPE.SWITCH_TO_VIDEO;return u.default.log(p+".switchCallMode:",e,"isSwitchCallMode-"+t),t},e.prototype.onInviteeAccepted=function(e){return o(this,void 0,void 0,(function(){var t,n,o,i,s;return a(this,(function(a){switch(a.label){case 0:return this._logger.info(p+".onInviteeAccepted",{text:{data:e},type:"event"}),u.default.log(p+".onInviteeAccepted - params:",e),t=JSON.parse(e.data.data),h.isCallSignaling(null==t?void 0:t.businessID)?(n=e.data.invitee,o=e.data.inviteID,-1===this._tuiCallEngine.getTotalInviterInviteIdList().indexOf(o)?[2]:this._tuiCallEngine.isGroupCall()||!this.judgeSwitchCallMode(t)||this._tuiCallEngine.getSwitchCallModeStatus()?(i=this._tuiCallEngine.getCallStatus(),n!==this._tuiCallEngine.getUserID()||i!==d.CALL_STATUS.CALLING?[3,2]:(s=this._tuiCallEngine.generateEventData(),[4,this._tuiCallEngine._resetTUICallEngine()])):(this._tuiCallEngine._trtcClient.switchCallMode(this._tuiCallEngine.getCallType()),[2])):[2];case 1:return a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r({userID:n},s)),[2];case 2:return i===d.CALL_STATUS.CALLING&&this._tuiCallEngine.isInviter()&&(s=this._tuiCallEngine.generateEventData(),this._tuiCallEngine._delegate.onCallBegin(s)),this._tuiCallEngine.isInviter()&&this._tuiCallEngine.changeCallStatus(d.CALL_STATUS.CONNECTED),this._tuiCallEngine._delegate.onUserAccept(n),this._tuiCallEngine.addHandledInviteeList([n]),this._tuiCallEngine.deleteUnHandledInviteeList([n]),this._tuiCallEngine.addAcceptedUserList(o,[n]),[2]}}))}))},e.prototype.onInviteeRejected=function(e){var t;return o(this,void 0,void 0,(function(){var n,o,i,s,c,l,m,v,g,_,b,y,O;return a(this,(function(a){switch(a.label){case 0:return this._logger.info(p+".onInviteeRejected",{text:{data:r(r({},e),{currentUserID:this._tuiCallEngine.getUserID(),currentCallStatus:this._tuiCallEngine.getCallStatus()})},type:"event"}),u.default.log(p+".onInviteeRejected - params:",e),n=e.data.inviteID,o=JSON.parse(e.data.data),h.isCallSignaling(null==o?void 0:o.businessID)?this._tuiCallEngine.isGroupCall()||this._tuiCallEngine.getSwitchCallModeStatus()||-1===this._tuiCallEngine.getAudioVideoSwitchIdList().indexOf(n)?(i=e.data.invitee,s=e.data.inviter,c=this._tuiCallEngine.getUserID(),(l=this._tuiCallEngine.getCallStatus())===d.CALL_STATUS.IDLE?[2]:-1===this._tuiCallEngine.getInviterInviteIdList().indexOf(n)?(this._tuiCallEngine.isInviter()&&-1!==this._tuiCallEngine.getInviterInviteIdUserList().indexOf(i)||this._tuiCallEngine.deleteUnHandledInviteeList([i]),[2]):(m=this._tuiCallEngine.generateEventData(),v=r({userID:i},m),c!==i||l!==d.CALL_STATUS.CALLING?[3,2]:[4,this._tuiCallEngine._resetTUICallEngine()])):(u.default.log(p+".onInviteeRejected - Audio and video switching is not available"),this._tuiCallEngine.setSwitchCallModeStatus(!0),[2]):[2];case 1:return a.sent(),this._tuiCallEngine._delegate.onCallingCancel(v),[2];case 2:return g=this._tuiCallEngine.isGroupCall(),_=this._tuiCallEngine.isInviter(),this._tuiCallEngine.deleteUnHandledInviteeList([i]),b=this._tuiCallEngine.getUnHandledInviteeList(),y=this._tuiCallEngine.getHandledInviteeList(),l===d.CALL_STATUS.CONNECTED&&-1!==y.indexOf(i)?[2]:"line_busy"===o.line_busy||""===o.line_busy||(null===(t=null==o?void 0:o.data)||void 0===t?void 0:t.message)&&"lineBusy"===o.data.message?g?[3,4]:[4,this._tuiCallEngine._resetTUICallEngine()]:[3,7];case 3:return a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r(r({},v),{reason:f.NAME.BUSYLINE})),[3,6];case 4:return 0!==b.length||1!==y.length?[3,6]:[4,this._tuiCallEngine._resetTUICallEngine()];case 5:a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r(r({},v),{reason:f.NAME.BUSYLINE})),a.label=6;case 6:return s===this._tuiCallEngine.getInviterID()&&this._tuiCallEngine._delegate.onLineBusy(i),[3,18];case 7:return g?[3,9]:[4,this._tuiCallEngine._resetTUICallEngine()];case 8:return a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r(r({},v),{reason:f.NAME.REJECT})),this._tuiCallEngine._delegate.onReject(i),[3,18];case 9:return l!==d.CALL_STATUS.CALLING?[3,15]:_?0!==b.length||1!==y.length?[3,11]:[4,this._tuiCallEngine._resetTUICallEngine()]:[3,12];case 10:a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r(r({},v),{reason:f.NAME.REJECT})),a.label=11;case 11:return[3,14];case 12:return 1!==b.length||0!==y.length?[3,14]:[4,this._tuiCallEngine._resetTUICallEngine()];case 13:a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r(r({},v),{reason:f.NAME.REJECT})),a.label=14;case 14:return[3,17];case 15:return 0!==b.length||1!==y.length?[3,17]:(O=this._tuiCallEngine.generateCallEndData({userId:i}),[4,this._tuiCallEngine._resetTUICallEngine()]);case 16:a.sent(),this._tuiCallEngine._delegate.onCallEnd(O),a.label=17;case 17:this._tuiCallEngine._delegate.onReject(i),a.label=18;case 18:return[2]}}))}))},e.prototype.onInvitationCancelled=function(e){return o(this,void 0,void 0,(function(){var t,n;return a(this,(function(o){switch(o.label){case 0:return this._logger.info(p+".onInvitationCancelled",{text:{data:r(r({},e),{currentUserID:this._tuiCallEngine.getUserID(),currentCallStatus:this._tuiCallEngine.getCallStatus(),inviteeList:this._tuiCallEngine.getInviterInviteIdList()})},type:"event"}),u.default.log(p+".onInvitationCancelled - params:",e,this._tuiCallEngine.getCallStatus()),t=JSON.parse(e.data.data),h.isCallSignaling(null==t?void 0:t.businessID)?this._tuiCallEngine.getCallStatus()===d.CALL_STATUS.IDLE||-1===this._tuiCallEngine.getInviterInviteIdList().indexOf(e.data.inviteID)?[2]:(n=this._tuiCallEngine.generateEventData(),[4,this._tuiCallEngine._resetTUICallEngine()]):[2];case 1:return o.sent(),this._tuiCallEngine._delegate.onCallingCancel(r(r({userID:this._tuiCallEngine.getUserID()},n),{reason:f.NAME.NORMAL})),[2]}}))}))},e.prototype.onInvitationTimeout=function(e){var t;return o(this,void 0,void 0,(function(){var n,o,i,s,c,l,h,m,v,g,_,b,y,O,M;return a(this,(function(a){switch(a.label){case 0:return this._logger.info(p+".onInvitationTimeout",{text:{data:r(r({},e),{currentUserID:this._tuiCallEngine.getUserID(),isGroupCall:this._tuiCallEngine.isGroupCall(),currentCallStatus:this._tuiCallEngine.getCallStatus(),inviteeList:this._tuiCallEngine.getInviterInviteIdList()})},type:"event"}),n=e.data,o=n.inviter,i=n.inviteeList,s=void 0===i?[]:i,c=n.inviteID,l=this._tuiCallEngine.getUserID(),h=this._tuiCallEngine.isGroupCall(),m=this._tuiCallEngine.isInviter(),v=this._tuiCallEngine.getCallStatus(),this._tuiCallEngine.deleteUnHandledInviteeList(s),u.default.log(p+".onInvitationTimeout - params:",e,"currentUserID:"+l+" isInviter:"+m+" isGroupCall:"+h+" currentCallStatus:"+v+" inviteID:"+(null===(t=null==this?void 0:this._newInvitationData)||void 0===t?void 0:t.inviteID)),-1===this._tuiCallEngine.getInviterInviteIdList().indexOf(c)||v===d.CALL_STATUS.IDLE?[2]:(g=this._tuiCallEngine.getHandledInviteeList(),_=this._tuiCallEngine.getUnHandledInviteeList(),b=r(r({},this._tuiCallEngine.generateEventData()),{reason:f.NAME.TIMEOUT}),h?[3,2]:[4,this._tuiCallEngine._resetTUICallEngine()]);case 1:return a.sent(),m?(this._tuiCallEngine._delegate.onCallingCancel(r({userID:s[0]},b)),this._tuiCallEngine._delegate.onNoResp(o,s)):(this._tuiCallEngine._delegate.onCallingCancel(r({userID:s[0]||""},b)),y=this._tuiCallEngine.getCallRecordReport().getCallRecordData().head,this._tuiCallEngine.getCallRecordReport().eventUpload(r(r({},y),{eventType:f.NAME.NOT_ANSWER_CALL,inviteID:this._tuiCallEngine.getInitialCallId()}))),[3,12];case 2:return v!==d.CALL_STATUS.CALLING?[3,10]:m?0!==_.length?[3,4]:[4,this._tuiCallEngine._resetTUICallEngine()]:[3,5];case 3:a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r({userID:s.join(",")},b)),a.label=4;case 4:return this._tuiCallEngine._delegate.onNoResp(o,s),[3,9];case 5:return-1!==s.indexOf(l)?[3,6]:(this._tuiCallEngine._delegate.onNoResp(o,s),[3,8]);case 6:return[4,this._tuiCallEngine._resetTUICallEngine()];case 7:a.sent(),this._tuiCallEngine._delegate.onCallingCancel(r({userID:l},b)),a.label=8;case 8:O=this._tuiCallEngine.getCallRecordReport().getCallRecordData().head,this._tuiCallEngine.getCallRecordReport().eventUpload(r(r({},O),{eventType:f.NAME.NOT_ANSWER_CALL,inviteID:this._tuiCallEngine.getInitialCallId()})),a.label=9;case 9:return[3,12];case 10:return this._tuiCallEngine._delegate.onNoResp(o,s),1!==g.length||0!==_.length?[3,12]:(M=this._tuiCallEngine.generateCallEndData(),[4,this._tuiCallEngine._resetTUICallEngine()]);case 11:a.sent(),this._tuiCallEngine._delegate.onCallEnd(M),a.label=12;case 12:return[2]}}))}))},e.prototype.onKickedOut=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this._logger.info(p+".onKickedOut",{text:{error:"onKickedOut"},type:"event"}),u.default.log(p+".onKickedOut"),this._tuiCallEngine.setIsLogin(!1),this._tuiCallEngine._trtcClient.removeTRTCEvents(),[4,this._tuiCallEngine._resetTUICallEngine()];case 1:return e.sent(),this._tuiCallEngine._delegate.onKickedOut(),[2]}}))}))},e.prototype.onNetStateChange=function(){u.default.debug(p+".onNetStateChange")},e.prototype.onMessageSentByMe=function(e){this._tuiCallEngine._delegate.onMessageSentByMe(e)},e.prototype.login=function(e){return o(this,void 0,void 0,(function(){var t=this;return a(this,(function(n){return this._logger.info(p+".login.start",{text:{data:e},type:"api"}),[2,new Promise((function(n,r){t._tsignaling.login(e).then((function(e){var r;if(null===(r=e.data)||void 0===r?void 0:r.repeatLogin)return t._logger.info(p+".login.success",{text:{error:"The TIM login status has been inherited into Call"},type:"api"}),u.default.warn(p+".login - success: The TIM login status has been inherited into Call. IM 登录状态已成功被 Call 继承。"),void n();t._resolveMap.set("login",{resolve:n,value:e})})).catch((function(e){r(e)}))}))]}))}))},e.prototype.logout=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return this._logger.info(p+".logout.start",{type:"api"}),this._joined=!1,[2,this._tsignaling.logout()]}))}))},e.prototype.invite=function(e){return o(this,void 0,void 0,(function(){var t,n,o,i,s,c,l,u,d;return a(this,(function(a){switch(a.label){case 0:return this._logger.info(p+".invite.start",{text:{data:e},type:"api"}),t=e.userID,n=e.type,o=e.roomID,i=e.timeout,s=e.offlinePushInfo,c=e.userIDList,l=e.userData,u=void 0===l?"":l,[4,this._tsignaling.invite({userID:t,data:JSON.stringify(this.handleNewSignaling({version:0,call_type:n,room_id:o},{userIDs:c},u)),timeout:i,offlinePushInfo:s})];case 1:return d=a.sent(),[2,r(r({},d),{roomID:o,userID:t})]}}))}))},e.prototype.inviteInGroup=function(e){return o(this,void 0,void 0,(function(){var t,n,o,i,s,c,l,u,d,f,h,m;return a(this,(function(a){switch(a.label){case 0:return this._logger.info(p+".inviteInGroup.start",{text:{data:e},type:"api"}),t=e.groupID,n=e.userIDList,o=e.roomID,i=e.type,s=e.timeout,c=e.offlinePushInfo,l=e.inCallUserIDs,u=e.userData,d=void 0===u?"":u,f=e.initialCallId,h=void 0===f?"":f,[4,this._tsignaling.inviteInGroup({groupID:t,inviteeList:n,data:JSON.stringify(this.handleNewSignaling({version:0,call_type:i,room_id:o,inCallUserIDs:l},{initialCallId:h},d)),timeout:s,offlinePushInfo:c})];case 1:return m=a.sent(),[2,r(r({},m),{roomID:o,groupID:t})]}}))}))},e.prototype.hangup=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o,i,s,c,l;return a(this,(function(a){switch(a.label){case 0:return this._logger.info(p+".hangup.start",{text:{data:e},type:"api"}),u.default.log(p+".hangup - params:",e),t=e.userIDList,n=e.callType,r=e.callEnd,i={version:0,call_type:n,call_end:o=void 0===r?0:r},s={cmd:d.CMD_TYPE.HANG_UP},c=JSON.stringify(this.handleNewSignaling(i,s)),this._tuiCallEngine.isGroupCall()&&this._tuiCallEngine.getGroupID()?[4,this._tsignaling.inviteInGroup({inviteeList:t,groupID:this._tuiCallEngine.getGroupID(),data:c,timeout:0})]:[3,2];case 1:return a.sent(),[3,4];case 2:return[4,this._tsignaling.invite({userID:t[0],data:c,timeout:0})];case 3:a.sent(),a.label=4;case 4:return this._joined=!1,l=this._tuiCallEngine.generateCallEndData({callMediaType:n,totalTime:o}),this._tuiCallEngine._delegate.onCallEnd(l),[2]}}))}))},e.prototype.accept=function(e,t){return o(this,void 0,void 0,(function(){var n,o,s;return a(this,(function(a){switch(a.label){case 0:return this._logger.info(p+".accept.start",{text:{data:e},type:"api"}),n=e.inviteID,o=e.callType,s=i(e,["inviteID","callType"]),[4,this._tsignaling.accept({inviteID:n,data:JSON.stringify(this.handleNewSignaling(r({version:0,call_type:o},s),t))})];case 1:return[2,a.sent()]}}))}))},e.prototype.reject=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o;return a(this,(function(a){return this._logger.info(p+".reject.start",{text:{data:{params:e}},type:"api"}),t=e.inviteID,n=e.callType,r=e.isBusy,o={version:0,call_type:n},r&&(o.line_busy="line_busy"),[2,this._tsignaling.reject({inviteID:t,data:JSON.stringify(this.handleNewSignaling(o,{message:r?"lineBusy":""}))})]}))}))},e.prototype.cancel=function(e){return o(this,void 0,void 0,(function(){var t,n;return a(this,(function(r){return this._logger.info(p+".cancel.start",{text:{data:e},type:"api"}),t=e.inviteID,n=JSON.stringify(this.handleNewSignaling({version:4,businessID:f.NAME.AV_CALL,call_type:this._tuiCallEngine.getCallType()})),[2,this._tsignaling.cancel({inviteID:t,data:n})]}))}))},e.prototype.resetJoined=function(){this._joined=!1},e.prototype.switchCallMode=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o,i,s,c,l;return a(this,(function(a){switch(a.label){case 0:return this._logger.info(p+".switchCallMode.start",{text:{data:e},type:"api"}),t=e.userID,n=e.callType,r=e.roomID,o=e.timeout,i=e.mode,s={version:0,call_type:n,room_id:r,switch_to_audio_call:null},c={cmd:d.CMD_TYPE.SWITCH_TO_VIDEO},i===d.MODE_TYPE.AUDIO?(s.switch_to_audio_call=d.CMD_TYPE.SWITCH_TO_AUDIO_CALL,c.cmd=d.CMD_TYPE.SWITCH_TO_AUDIO):delete s.switch_to_audio_call,[4,this._tsignaling.invite({userID:t,data:JSON.stringify(this.handleNewSignaling(s,c)),timeout:o})];case 1:return(l=a.sent()).inviteID&&this._tuiCallEngine.addAudioVideoSwitchIdList(l.inviteID),[2]}}))}))},e.prototype.handleNewSignaling=function(e,t,n){return r(r({userData:n||""},e),{version:4,businessID:f.NAME.AV_CALL,platform:"Web",data:r({cmd:d.CMD_TYPE_LIST[e.call_type],room_id:e.room_id,inviter:this._tuiCallEngine.getInviterID(),message:""},t)})},e}();t.default=m},function(e,t){e.exports=r},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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),a=n(12),i=n(2),s=n(11),c=n(13),l="TUICallObserver",u=function(){function e(e){this._eventEmitter=e,this._callEngineLogger=o.default(),this._eventStatController=new c.default,s.default.bindController(this._eventStatController)}return e.prototype.onError=function(e,t){i.default.debug(l+".onError code:"+e+" msg:"+t),this._eventEmitter.emit(a.TUICallEvent.ERROR,{code:e,msg:t}),this._callEngineLogger.error("onError",{type:"event",text:{error:{code:e,msg:t}}})},e.prototype.onSdkReady=function(e){i.default.debug(l+".onSdkReady params:"+e),this._eventEmitter.emit(a.TUICallEvent.SDK_READY,e),this._callEngineLogger.info("TUICallEvent.SDK_READY",{type:"event",text:{data:{params:e}}})},e.prototype.onInvited=function(e){i.default.debug(l+".onInvited params:",e);var t=e.sponsor,n=e.userIDList,o=e.isFromGroup,s=e.inviteData,c=e.inviteID,u=e.userData,d=void 0===u?"":u,p=e.calleeIdList,f=e.callID,h=e.roomID,m=e.callMediaType,v=e.callRole,g={callID:f,calleeIdList:p,groupID:e.groupID,callMediaType:m,roomID:h,callRole:v,userData:d},_=r({sponsor:t,userIDList:n,isFromGroup:o,inviteData:s,inviteID:c},g);this._eventEmitter.emit(a.TUICallEvent.INVITED,_),this._eventEmitter.emit(a.TUICallEvent.ON_CALL_RECEIVED,g),this._callEngineLogger.info("TUICallEvent.INVITED",{type:"event",text:{data:{params:e}}})},e.prototype.onUserAccept=function(e){i.default.debug(l+".onUserAccept userID:"+e),this._eventEmitter.emit(a.TUICallEvent.USER_ACCEPT,{userID:e}),this._callEngineLogger.info("TUICallEvent.USER_ACCEPT",{type:"event",text:{data:{userID:e}}})},e.prototype.onCallBegin=function(e){i.default.debug(l+".onCallBegin params:"+JSON.stringify(e)),this._eventEmitter.emit(a.TUICallEvent.ON_CALL_BEGIN,e),this._callEngineLogger.info("TUICallEvent.ON_CALL_BEGIN",{type:"event",text:{data:{params:e}}})},e.prototype.onUserEnter=function(e){i.default.debug(l+".onUserEnter userID:"+e),this._eventEmitter.emit(a.TUICallEvent.USER_ENTER,{userID:e}),this._callEngineLogger.info("TUICallEvent.USER_ENTER",{type:"event",text:{data:{userID:e}}})},e.prototype.onUserLeave=function(e){i.default.debug(l+".onUserLeave userID:"+e),this._eventEmitter.emit(a.TUICallEvent.USER_LEAVE,{userID:e}),this._callEngineLogger.info("TUICallEvent.USER_LEAVE",{type:"event",text:{data:{userID:e}}})},e.prototype.onReject=function(e){i.default.debug(l+".onReject userID:"+e),this._eventEmitter.emit(a.TUICallEvent.REJECT,{userID:e}),this._callEngineLogger.info("TUICallEvent.REJECT",{type:"event",text:{data:{userID:e}}})},e.prototype.onNoResp=function(e,t){i.default.debug(l+".onNoResp userIDList:",e,t),this._eventEmitter.emit(a.TUICallEvent.NO_RESP,{sponsor:e,userIDList:t}),this._callEngineLogger.info("TUICallEvent.NO_RESP",{type:"event",text:{data:{sponsor:e,userIDList:t}}})},e.prototype.onLineBusy=function(e){i.default.debug(l+".onLineBusy userID:"+e),this._eventEmitter.emit(a.TUICallEvent.LINE_BUSY,{userID:e}),this._callEngineLogger.info("TUICallEvent.LINE_BUSY",{type:"event",text:{data:{userID:e}}})},e.prototype.onCallingCancel=function(e,t){void 0===t&&(t=""),i.default.debug(l+".onCallingCancel ",e),this._eventEmitter.emit(a.TUICallEvent.CALLING_CANCEL,e),this._eventEmitter.emit(a.TUICallEvent.ON_CALL_CANCELED,e),this._callEngineLogger.info("TUICallEvent.ON_CALL_CANCELED",{type:"event",text:{data:{params:e}}})},e.prototype.onKickedOut=function(){i.default.debug(l+".onKickedOut"),this._eventEmitter.emit(a.TUICallEvent.KICKED_OUT,{}),this._callEngineLogger.info("TUICallEvent.KICKED_OUT",{type:"event"})},e.prototype.onCallingTimeout=function(e,t){i.default.debug(l+".onCallingTimeout userIDList:",t),this._eventEmitter.emit(a.TUICallEvent.CALLING_TIMEOUT,{sponsor:e,userIDList:t}),this._callEngineLogger.info("TUICallEvent.CALLING_TIMEOUT",{type:"event",text:{data:{sponsor:e,userIDList:t}}})},e.prototype.onCallEnd=function(e){i.default.debug(l+".onCallEnd params:"+e),this._eventEmitter.emit(a.TUICallEvent.CALLING_END,r(r({},e),{callEnd:e.totalTime})),this._callEngineLogger.info("TUICallEvent.CALLING_END",{type:"event",text:{data:{params:e}}})},e.prototype.onUserVideoAvailable=function(e){i.default.debug(l+".onUserVideoAvailable params:",e);var t=e.userID,n=e.isVideoAvailable;this._eventEmitter.emit(a.TUICallEvent.USER_VIDEO_AVAILABLE,{userID:t,isVideoAvailable:n}),this._callEngineLogger.info("TUICallEvent.USER_VIDEO_AVAILABLE",{type:"event",text:{data:{params:e}}})},e.prototype.onUserAudioAvailable=function(e){i.default.debug(l+".onUserAudioAvailable params:",e);var t=e.userID,n=e.isAudioAvailable;this._eventEmitter.emit(a.TUICallEvent.USER_AUDIO_AVAILABLE,{userID:t,isAudioAvailable:n}),this._callEngineLogger.info("TUICallEvent.USER_AUDIO_AVAILABLE",{type:"event",text:{data:{params:e}}})},e.prototype.onUserVoiceVolume=function(e){this._eventEmitter.emit(a.TUICallEvent.USER_VOICE_VOLUME,{volumeMap:e})},e.prototype.onGroupCallInviteeListUpdate=function(e){this._eventEmitter.emit(a.TUICallEvent.GROUP_CALL_INVITEE_LIST_UPDATE,{userIDList:e}),this._callEngineLogger.info("TUICallEvent.GROUP_CALL_INVITEE_LIST_UPDATE",{type:"event",text:{data:{userIDList:e}}})},e.prototype.onCallTypeChanged=function(e,t){this._eventEmitter.emit(a.TUICallEvent.CALL_TYPE_CHANGED,{oldCallType:e,newCallType:t}),this._callEngineLogger.info("TUICallEvent.CALL_TYPE_CHANGED",{type:"event",text:{data:{oldCallType:e,newCallType:t}}})},e.prototype.onDeviceUpdated=function(e,t,n,r){this._eventEmitter.emit(a.TUICallEvent.DEVICED_UPDATED,{microphoneList:e,cameraList:t,currentMicrophone:n,currentCamera:r}),this._callEngineLogger.info("TUICallEvent.DEVICED_UPDATED",{type:"event",text:{data:{microphoneList:e,cameraList:t,currentMicrophone:n,currentCamera:r}}})},e.prototype.onMessageSentByMe=function(e){this._eventEmitter.emit(a.TUICallEvent.MESSAGE_SENT_BY_ME,e)},e}();t.default=u},function(e,t,n){"use strict";n.r(t);var r=n(2);const o="none",a="online",i=function(){let e=window.location.protocol;return["http:","https:"].indexOf(e)<0&&(e="http:"),e};t.default=class{constructor(){this._networkType="",this.maxWaitTime=3e3}start(){this._networkType=a}_onNetworkStatusChange(e){this._networkType=e.networkType,e.isConnected?r.default.info("NetMonitor networkType:"+e.networkType):r.default.warn("NetMonitor no network, please check!")}probe(){return new Promise(e=>{if(window&&window.fetch)fetch(`${i()}//webim-1252463788.file.myqcloud.com/assets/test/speed.xml?random=${Math.random()}`).then(t=>{t.ok?e([!0,a]):e([!1,o])}).catch(()=>{e([!1,o])});else{const t=new XMLHttpRequest,n=setTimeout(()=>{r.default.warn("NetMonitor fetch timeout. Probably no network, please check!"),t.abort(),this._networkType=o,e([!1,o])},this.maxWaitTime);t.onreadystatechange=function(){4===t.readyState&&(clearTimeout(n),200===t.status||304===t.status?(this._networkType=a,e([!0,a])):(r.default.warn(`NetMonitor fetch status:${t.status}. Probably no network, please check!`),this._networkType=o,e([!1,o])))},t.open("GET",`${i()}//webim-1252463788.file.myqcloud.com/assets/test/speed.xml?random=${Math.random()}`),t.send()}})}getNetworkType(){return this._networkType}reset(){this._networkType=""}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apiCallQueue=t.avoidRepeatedCall=t.statusValidate=t.businessValidate=t.paramValidate=t.VALIDATE_PARAMS=void 0;var r=n(63);Object.defineProperty(t,"VALIDATE_PARAMS",{enumerable:!0,get:function(){return r.VALIDATE_PARAMS}});var o=n(64);Object.defineProperty(t,"paramValidate",{enumerable:!0,get:function(){return o.paramValidate}});var a=n(27);Object.defineProperty(t,"businessValidate",{enumerable:!0,get:function(){return a.businessValidate}});var i=n(65);Object.defineProperty(t,"statusValidate",{enumerable:!0,get:function(){return i.statusValidate}});var s=n(66);Object.defineProperty(t,"avoidRepeatedCall",{enumerable:!0,get:function(){return s.avoidRepeatedCall}});var c=n(67);Object.defineProperty(t,"apiCallQueue",{enumerable:!0,get:function(){return c.apiCallQueue}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATE_PARAMS=void 0;var r=n(14),o=n(0);t.VALIDATE_PARAMS={createInstance:{SDKAppID:{required:!0,rules:[o.NAME.NUMBER],allowEmpty:!1},tim:{required:!1,rules:[o.NAME.OBJECT],allowEmpty:!0}},login:{userID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1},userSig:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1}},call:{userID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1},type:{required:!0,rules:[o.NAME.NUMBER],range:[1,2],allowEmpty:!1},roomID:{required:!1,rules:[o.NAME.NUMBER],range:"1~"+o.MAX_NUMBER_ROOM_ID,allowEmpty:!1},timeout:{required:!1,rules:[o.NAME.NUMBER],allowEmpty:!1}},groupCall:{userIDList:{required:!0,rules:[o.NAME.ARRAY],allowEmpty:!1},type:{required:!0,rules:[o.NAME.NUMBER],range:[1,2],allowEmpty:!1},groupID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1},roomID:{required:!1,rules:[o.NAME.NUMBER],range:"1~"+o.MAX_NUMBER_ROOM_ID,allowEmpty:!1},timeout:{required:!1,rules:[o.NAME.NUMBER],allowEmpty:!1}},joinInGroupCall:{type:{required:!0,rules:[o.NAME.NUMBER],range:[1,2],allowEmpty:!1},groupID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1},roomID:{required:!0,rules:[o.NAME.NUMBER],allowEmpty:!1}},inviteUser:{userIDList:{required:!0,rules:[o.NAME.ARRAY],allowEmpty:!1}},startRemoteView:{userID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1},videoViewDomID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1}},stopRemoteView:{userID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1}},startLocalView:{userID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1},videoViewDomID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1}},stopLocalView:{userID:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1}},switchDevice:{deviceType:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1},deviceId:{required:!0,rules:[o.NAME.STRING],allowEmpty:!1}},setVideoQuality:[{key:"profile",required:!0,rules:[o.NAME.STRING,o.NAME.OBJECT],range:Object.keys(r.TUICommonDefine.VideoEncoderParams),allowEmpty:!1}],switchCallMediaType:[{key:"newMediaType",required:!0,rules:[o.NAME.NUMBER],range:[1,2],allowEmpty:!1}],getDeviceList:[{key:"deviceType",required:!0,rules:[o.NAME.STRING],range:["camera","microphones"],allowEmpty:!1}],setSelfInfo:{nickName:{required:!1,rules:[o.NAME.STRING],allowEmpty:!1},avatar:{required:!1,rules:[o.NAME.STRING],allowEmpty:!1}},setVideoRenderParams:{objectFit:{require:!1,rules:[o.NAME.STRING],range:[o.NAME.CONTAIN,o.NAME.COVER,o.NAME.FILL],allowEmpty:!1},muted:{require:!1,rules:[o.NAME.BOOLEAN],allowEmpty:!1},mirror:{require:!1,rules:[o.NAME.BOOLEAN],allowEmpty:!1}}}},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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.paramValidate=void 0;var o=n(5),a=n(1),i=n(10),s=n(4);function c(e,t,n){var i=o.default();try{if(a.isArray(e))for(var s=0;s<e.length;s++)l.call(this,r(r({},e[s]),{value:t[s],name:n}));else for(var c in e)l.call(this,r(r({},e[c]),{value:t[0][c],name:n,key:c}))}catch(e){throw i.error("paramValidate.fail",{text:{error:e}}),e}}function l(e){var t=e.required,n=e.rules,r=e.range,o=e.value,c=e.allowEmpty,l=e.name,u=e.key;if(a.isUndefined(o)){if(t)throw new i.default({message:"API<"+l+">: "+u+" is required.",code:s.default.ERROR_PARAM_INVALID})}else{var d="";if(!n.some((function(e){return e===a.getType(o)}))){for(var p=0;p<n.length;p++){var f=n[p];d+=(f=f.replace(f[0],f[0].toUpperCase()))+"/"}throw d=d.substring(0,d.length-1),new i.default({message:"API<"+l+">: "+u+" must be "+d+", current "+u+" is "+typeof o+".",code:s.default.ERROR_PARAM_INVALID})}if(!1===c&&a.isString(o)&&""===o.trim())throw new i.default({message:"API<"+l+">: "+u+" is blank.",code:s.default.ERROR_PARAM_INVALID});if(a.isArray(r)&&r&&-1===r.indexOf(o))throw new i.default({message:"API<"+l+">: "+u+" error, only be "+r+", current "+u+" is "+o+".",code:s.default.ERROR_PARAM_INVALID});if(a.isString(r)&&-1!==r.indexOf("~")){var h=r.split("~");if(o<+h[0]||o>+h[1]||a.isNumber(o)&&Number.isNaN(o))throw new i.default({message:"API<"+l+">: "+u+" error, only be "+r+", current "+u+" is "+o+".",code:s.default.ERROR_PARAM_INVALID})}}}t.paramValidate=function(e){return function(t,n,r){var o=r.value;return r.value=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return c.call(this,e,t,n),o.apply(this,t)},r}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.statusValidate=void 0;var r=n(5),o=n(10),a=n(4),i=n(9);function s(e,t,n){var s,c=r.default();if((null==e?void 0:e.init)&&!this._isLogin)throw c.error("statusValidate.fail",{text:{error:"API<"+n+">: "+i.ERROR_MESSAGE.ERROR_INIT_FAIL}}),new o.default({message:"API<"+n+">: "+i.ERROR_MESSAGE.ERROR_INIT_FAIL,code:a.default.ERROR_INIT_FAIL});if(-1===(null===(s=null==e?void 0:e.callStatus)||void 0===s?void 0:s.indexOf(this._callStatus)))throw c.error("statusValidate.fail",{text:{error:"API<"+n+">: "+i.ERROR_MESSAGE.ERROR_REQUEST_REFUSED+". support status: ["+e.callStatus.join(",")+"], current status: "+this._callStatus}}),new o.default({message:"API<"+n+">: "+i.ERROR_MESSAGE.ERROR_REQUEST_REFUSED+". support status: ["+e.callStatus.join(",")+"], current status: "+this._callStatus,code:a.default.ERROR_REQUEST_REFUSED});if((null==e?void 0:e.scene)&&this._isGroupCall)throw c.error("statusValidate.fail",{text:{error:"API<"+n+">: "+i.ERROR_MESSAGE.ERROR_SCENE_NOT_SUPPORTED}}),new o.default({message:"API<"+n+">: "+i.ERROR_MESSAGE.ERROR_SCENE_NOT_SUPPORTED,code:a.default.ERROR_SCENE_NOT_SUPPORTED})}t.statusValidate=function(e){return function(t,n,r){var o=r.value;return r.value=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return s.call(this,e,t,n),o.apply(this,t)},r}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.avoidRepeatedCall=void 0;var a=n(5),i=n(10),s=n(4);t.avoidRepeatedCall=function(){var e=a.default();return function(t,n,a){var c=a.value,l=new Set;return a.value=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return r(this,void 0,void 0,(function(){var r,a;return o(this,(function(o){switch(o.label){case 0:if(l.has(this))throw e.error("avoidRepeatedCall.fail",{text:{error:"previous "+n+"() is ongoing, please avoid repeated calls"}}),new i.default({message:"previous "+n+"() is ongoing, please avoid repeated calls",code:s.default.ERROR_REQUEST_REPEATED});o.label=1;case 1:return o.trys.push([1,3,,4]),l.add(this),[4,c.apply(this,t)];case 2:return r=o.sent(),l.delete(this),[2,r];case 3:throw a=o.sent(),e.error("avoidRepeatedCall.fail",{text:{error:a}}),l.delete(this),a;case 4:return[2]}}))}))},a}}},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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.apiCallQueue=void 0;var o=new WeakMap;t.apiCallQueue=function(){return function(e,t,n){var a=n.value,i=function(e){var t=e.fn,n=e.args,a=e.context,s=e.resolve,c=e.reject;t.apply(a,n).then(s,c).finally((function(){var e=o.get(a);e.shift(),e[0]&&i(r({},e[0]))}))};return n.value=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new Promise((function(n,r){if(o.has(e)){var s=o.get(e),c=s.length;s.push({fn:a,args:t,context:e,resolve:n,reject:r}),0===c&&i({fn:a,args:t,context:e,resolve:n,reject:r})}else o.set(e,[{fn:a,args:t,context:e,resolve:n,reject:r}]),i({fn:a,args:t,context:e,resolve:n,reject:r})}))},n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TUICallEngineObserver=t.CallDataReport=void 0;var r=n(6),o=n(12),a=n(11),i=n(15),s=n(13),c=n(0),l=n(69),u=n(1),d=n(28),p=function(){function e(e){this._eventStatController=new s.default,a.default.bindController(this._eventStatController),this.initializeCallData(e),this._ssoLog=new a.default(i.default.QUALITY_REPORT)}return e.prototype.setCallData=function(e){this._callData=e},e.prototype.getCallData=function(){return this._callData},e.prototype.setInviteID=function(e){this._callData.inviteID=e},e.prototype.setTotalTime=function(e){this._callData.totalTime=e},e.prototype.setAbilityBit=function(e){this._callData.abilityBit=!!e},e.prototype.setEnterRoomTime=function(e){this._callData.enterRoomTime=l.convertTimeStampToString(e)},e.prototype.setSendSignalingTime=function(e){this._callData.sendSignalingTime=l.convertTimeStampToString(e)},e.prototype.setCallAcceptTime=function(e){this._callData.callAcceptTime=l.convertTimeStampToString(e)},e.prototype.setExitRoomTime=function(e){this._callData.exitRoomTime=l.convertTimeStampToString(e)},e.prototype.setCallEndTime=function(e){this._callData.callEndTime=e},e.prototype.setCodeAndMessage=function(e,t){this._callData.code=e||0,this._callData.message=t||""},e.prototype.setCallScene=function(e){this._callData.callScene=e||""},e.prototype.getResult=function(){return this._callData.result},e.prototype.setResult=function(e){this._callData.result=e||""},e.prototype.setUserID=function(e){this._callData.userID=e||""},e.prototype.packageCallDataToKibana=function(){var e=d.callTypeMapping(this._callData.callType),t=d.callRoleMapping(this._callData.callRole);return"CallData{version='"+this._callData.version+", platform="+this._callData.platform+", framework="+this._callData.framework+", sdk_app_id="+this._callData.sdkAppId+", user_id="+this._callData.userID+", room_id="+this._callData.roomID+", invite_id="+this._callData.inviteID+", invitee_list="+this._callData.inviteeList+", media_type="+e+", role="+t+", call_scene="+this._callData.callScene+", result="+this._callData.result+", total_time="+this._callData.totalTime+", total_score="+this._callData.totalScore+", ability_bit="+this._callData.abilityBit+", enter_room="+this._callData.enterRoomTime+", send_signaling="+this._callData.sendSignalingTime+", call_accept="+this._callData.callAcceptTime+", exit_room="+this._callData.exitRoomTime+", call_end="+this._callData.callEndTime+", code="+this._callData.code+", message="+this._callData.message+", network="+this._callData.network+", audio="+this._callData.audio+", video="+this._callData.video+"}"},e.prototype.initializeCallData=function(e){var t=e||{},n=t.version,o=void 0===n?"":n,a=t.sdkAppId,i=void 0===a?0:a,s=t.userID,l=void 0===s?"":s,d=u.getHostType();this._callData={version:o,platform:d,framework:c.NAME.WEB,sdkAppId:i,userID:l,roomID:0,inviteID:"",callRole:r.CALL_ROLE.UNKNOWN,callScene:"",callType:r.CALL_TYPE.UNKNOWN,inviteeList:[],result:c.NAME.UNKNOWN,totalTime:0,totalScore:0,code:0,message:"",abilityBit:!1,enterRoomTime:"",sendSignalingTime:"",callAcceptTime:"",exitRoomTime:"",callEndTime:"",network:0,audio:0,video:0}},e.prototype.reset=function(){this.initializeCallData(),this._ssoLog=null},e.prototype.clearCallDataAfterUpload=function(){var e=this.getCallData(),t=e.version,n=e.sdkAppId,r=e.userID;this.initializeCallData({version:t,sdkAppId:n,userID:r})},e.prototype.uploadToKibana=function(){try{this._ssoLog.setText(this.packageCallDataToKibana()).setEnd(),this.clearCallDataAfterUpload()}catch(e){}},e}();t.CallDataReport=p;var f=function(){function e(e,t){this._eventEmitter=e,this._callDataReport=t,this.registerListener()}return e.prototype.registerListener=function(){this._eventEmitter.on(o.TUICallEvent.CALLING_END,this.onCallEnd.bind(this)),this._eventEmitter.on(o.TUICallEvent.CALLING_CANCEL,this.onCallingCancel.bind(this)),this._eventEmitter.on(o.TUICallEvent.NO_RESP,this.onNoResponse.bind(this)),this._eventEmitter.on(o.TUICallEvent.LINE_BUSY,this.onLineBusy.bind(this)),this._eventEmitter.on(o.TUICallEvent.REJECT,this.onReject.bind(this))},e.prototype.removeLister=function(){this._eventEmitter.off(o.TUICallEvent.CALLING_END,this.onCallEnd.bind(this)),this._eventEmitter.off(o.TUICallEvent.CALLING_CANCEL,this.onCallingCancel.bind(this)),this._eventEmitter.off(o.TUICallEvent.NO_RESP,this.onNoResponse.bind(this)),this._eventEmitter.off(o.TUICallEvent.LINE_BUSY,this.onLineBusy.bind(this)),this._eventEmitter.off(o.TUICallEvent.REJECT,this.onReject.bind(this))},e.prototype.onCallEnd=function(e){var t=e.totalTime,n=void 0===t?0:t;this._callDataReport.setTotalTime(n),this._callDataReport.setResult(c.NAME.NORMAL),this._callDataReport.setCodeAndMessage(),this._callDataReport.uploadToKibana()},e.prototype.onCallingCancel=function(){this._callDataReport.getResult()||this._callDataReport.setResult(c.NAME.CANCEL),this._callDataReport.setCodeAndMessage(),this._callDataReport.uploadToKibana()},e.prototype.onNoResponse=function(){this._callDataReport.setResult(c.NAME.TIMEOUT)},e.prototype.onLineBusy=function(){this._callDataReport.setResult(c.NAME.BUSYLINE)},e.prototype.onReject=function(){this._callDataReport.setResult(c.NAME.REJECT)},e}();t.TUICallEngineObserver=f},function(e,t,n){"use strict";n.r(t),n.d(t,"setBaseTime",(function(){return c})),n.d(t,"getCurrentTime",(function(){return l})),n.d(t,"getTimestamp",(function(){return u})),n.d(t,"convertTimeStampToString",(function(){return d}));var r=n(2),o=n(30),a=n.n(o);let i=(new Date).getTime(),s=0;const c=function(e){i=e,s=i-(new Date).getTime();const t=new Date;t.setTime(e),r.default.info("baseTime from server: "+t+" offset: "+s)},l=function(){return(new Date).getTime()+s},u=function(){const e=new Date;return e.setTime(l()),e.toLocaleString()},d=e=>e<=0?"":a()(e).format("YYYY-MM-DD HH:mm:ss")},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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.TUICallEngineRecordObserver=t.CallRecordReport=void 0;var i=n(6),s=n(12),c=n(0),l=n(2),u=n(71),d=n(7),p=n(28),f={serviceCommand:c.NAME.CALLKIT_RECORDS_SVR+".*"},h=function(){function e(e){this._tim=e.tim,this._heartbeat=-1,this._lastHeartBeatTime=-1,this._bodyStatus=c.NAME.WAITING,this.initializeCallData(e)}return e.prototype.getCallRecordData=function(){return this._callRecordData},e.prototype.initializeCallData=function(e){var t=e||{},n=t.version,r=void 0===n?"":n,o=t.userID,a=void 0===o?"":o,s=d.getOsInfo().name,l={version:1,command:c.NAME.EVENT_REPORT,sdk_version:r,seq:0,os_name:c.NAME.WEB,os_version:"0.0",device_name:s,framework:c.NAME.WEB,call_type:"",media_type:"",client_ts:0,role:i.CALL_ROLE.UNKNOWN,user_id:a,room_id:"",call_id:""};this._callRecordData={head:l,body:{event_type:"",code:0,message:"",invitee_list:[]}}},e.prototype.reset=function(){this.initializeCallData()},e.prototype._setCallType=function(e){e&&(this._callRecordData.head=r(r({},this._callRecordData.head),{call_type:e}))},e.prototype._setMediaType=function(e){e&&(this._callRecordData.head=r(r({},this._callRecordData.head),{media_type:p.callTypeMapping(e)}))},e.prototype._setCallRole=function(e){e&&(this._callRecordData.head=r(r({},this._callRecordData.head),{role:e}))},e.prototype._setUserID=function(e){e&&(this._callRecordData.head=r(r({},this._callRecordData.head),{user_id:e}))},e.prototype._setRoomID=function(e){e&&(this._callRecordData.head=r(r({},this._callRecordData.head),{room_id:""+e}))},e.prototype._setInviteID=function(e){void 0===e&&(e=""),e&&(this._callRecordData.head=r(r({},this._callRecordData.head),{call_id:e}))},e.prototype._setEventType=function(e){e&&(this._callRecordData.body=r(r({},this._callRecordData.body),{event_type:e}))},e.prototype._setInviteeList=function(e){void 0===e&&(e=[]),this._callRecordData.body=r(r({},this._callRecordData.body),{invitee_list:e})},e.prototype._setSeq=function(){var e=this.getCallRecordData().head.seq;this._callRecordData.head=r(r({},this._callRecordData.head),{seq:e+1})},e.prototype.setBodyStatus=function(e){if(e){var t=c.NAME.WAITING;switch(e){case i.CALL_STATUS.CALLING:t=c.NAME.WAITING;break;case i.CALL_STATUS.CONNECTED:t=c.NAME.CALLING}this._bodyStatus=t}},e.prototype.eventUpload=function(e){var t;return o(this,void 0,void 0,(function(){var n,o,i,s,l,u,d,h,m,v,g,_,b,y;return a(this,(function(a){switch(a.label){case 0:return n=e.eventType,o=e.callType,i=e.mediaType,s=e.callRole,l=e.userID,u=e.roomID,d=e.inviteID,h=e.inviteeList,m=void 0===h?[]:h,n?(this._callRecordData.head=r(r({},this._callRecordData.head),{command:c.NAME.EVENT_REPORT,client_ts:Math.floor(Date.now()/1e3)}),this._setCallType(o),this._setMediaType(i),this._setCallRole(s),this._setUserID(l),this._setRoomID(u),this._setInviteID(d),this._setEventType(n),this._setInviteeList(m),this._setSeq(),v=this.getCallRecordData(),g=v.head,_=v.body,b={head:r(r({},g),{role:p.callRoleMapping(g.role)}),body:_},y=r(r({},f),{data:JSON.stringify(b)}),[4,null===(t=null==this?void 0:this._tim)||void 0===t?void 0:t.callExperimentalAPI("sendTRTCCustomData",y)]):[2];case 1:return a.sent(),[2]}}))}))},e.prototype.eventUploadNotSave=function(e){var t;return o(this,void 0,void 0,(function(){var n,o,i,s,c,l,u,d,h,m,v;return a(this,(function(a){switch(a.label){case 0:return n=e.eventType,o=e.callType,i=e.mediaType,s=e.callRole,c=e.roomID,l=e.inviteID,this._setSeq(),u=this.getCallRecordData(),d=u.head,h=u.body,m={head:r(r({},d),{role:p.callRoleMapping(s),call_id:l,call_type:o,media_type:p.callTypeMapping(i),room_id:""+c,client_ts:Math.floor(Date.now()/1e3)}),body:r(r({},h),{event_type:n})},v=r(r({},f),{data:JSON.stringify(m)}),[4,null===(t=null==this?void 0:this._tim)||void 0===t?void 0:t.callExperimentalAPI("sendTRTCCustomData",v)];case 1:return a.sent(),[2]}}))}))},e.prototype.heartBeatUpload=function(){var e;return o(this,void 0,void 0,(function(){var t,n,o,i;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),this._setSeq(),t=this._callRecordData.head,n={head:r(r({},t),{role:p.callRoleMapping(t.role),clientTs:Date.now(),command:c.NAME.HEART_BEAT}),body:{status:this._bodyStatus}},o=r(r({},f),{data:n}),[4,null===(e=null==this?void 0:this._tim)||void 0===e?void 0:e.callExperimentalAPI("sendTRTCCustomData",o)];case 1:return a.sent(),[3,3];case 2:return i=a.sent(),console.warn("heartBeatUpload failed. error: "+JSON.stringify(i)),[3,3];case 3:return[2]}}))}))},e.prototype.startHeartbeat=function(){-1===this._heartbeat&&(l.default.info("start heart beat..."),this.heartBeatUpload(),this._heartbeat=u.default.run(c.NAME.TIMEOUT,this.doHeartbeat.bind(this),{delay:2e3,count:0,backgroundTask:!0}))},e.prototype.stopHeartbeat=function(){-1!==this._heartbeat&&(l.default.info("stop heart beat"),u.default.clearTask(this._heartbeat),this._heartbeat=-1,this._lastHeartBeatTime=-1,this._bodyStatus=c.NAME.WAITING)},e.prototype.doHeartbeat=function(){return o(this,void 0,void 0,(function(){var e;return a(this,(function(t){return this.heartBeatUpload(),e=Date.now(),this._lastHeartBeatTime>0&&e-this._lastHeartBeatTime>1e4&&l.default.warn("heartbeat took "+(e-this._lastHeartBeatTime)),this._lastHeartBeatTime=e,[2]}))}))},e}();t.CallRecordReport=h;var m=function(){function e(e,t){this._eventEmitter=e,this._callRecordDataReport=t,this._isCallAccepted=!1,this.registerListener()}return e.prototype.registerListener=function(){this._eventEmitter.on(s.TUICallEvent.ON_CALL_RECEIVED,this.onCallReceived.bind(this)),this._eventEmitter.on(s.TUICallEvent.USER_ACCEPT,this.onCallAccepted.bind(this)),this._eventEmitter.on(s.TUICallEvent.CALLING_END,this.onCallEnd.bind(this)),this._eventEmitter.on(s.TUICallEvent.CALLING_CANCEL,this.onCallingCancel.bind(this)),this._eventEmitter.on(s.TUICallEvent.NO_RESP,this.onNoResponse.bind(this)),this._eventEmitter.on(s.TUICallEvent.LINE_BUSY,this.onLineBusy.bind(this)),this._eventEmitter.on(s.TUICallEvent.REJECT,this.onReject.bind(this))},e.prototype.removeLister=function(){this._eventEmitter.off(s.TUICallEvent.ON_CALL_RECEIVED,this.onCallReceived),this._eventEmitter.off(s.TUICallEvent.USER_ACCEPT,this.onCallAccepted),this._eventEmitter.off(s.TUICallEvent.CALLING_END,this.onCallEnd),this._eventEmitter.off(s.TUICallEvent.CALLING_CANCEL,this.onCallingCancel),this._eventEmitter.off(s.TUICallEvent.NO_RESP,this.onNoResponse),this._eventEmitter.off(s.TUICallEvent.LINE_BUSY,this.onLineBusy),this._eventEmitter.off(s.TUICallEvent.REJECT,this.onReject)},e.prototype.onCallReceived=function(){this._callRecordDataReport.startHeartbeat()},e.prototype.onCallAccepted=function(){var e=this._callRecordDataReport.getCallRecordData().head;if((null==e?void 0:e.role)===c.NAME.INVITER){if(this._isCallAccepted&&e.call_type===c.NAME.GROUP)return;this._isCallAccepted=!0;var t={eventType:c.NAME.CALL_ACCEPTED};this._callRecordDataReport.eventUpload(t),this._callRecordDataReport.setBodyStatus(i.CALL_STATUS.CONNECTED)}},e.prototype.onCallEnd=function(){var e={eventType:c.NAME.CALL_END};this._isCallAccepted=!1,this._callRecordDataReport.eventUpload(e),this._callRecordDataReport.stopHeartbeat()},e.prototype.onCallingCancel=function(e){var t=this._callRecordDataReport.getCallRecordData().head,n=t.role===c.NAME.INVITER?c.NAME.CANCEL_CALL:c.NAME.CALL_CANCELED;this._isCallAccepted=!1;var r=(e||{}).reason;((void 0===r?"":r)===c.NAME.NORMAL||t.role===c.NAME.INVITER&&t.call_type===c.NAME.GROUP)&&this._callRecordDataReport.eventUpload({eventType:n}),this._callRecordDataReport.stopHeartbeat()},e.prototype.onNoResponse=function(){this._uploadInC2C(c.NAME.TIMEOUT)},e.prototype.onLineBusy=function(){this._uploadInC2C(c.NAME.BUSYLINE)},e.prototype.onReject=function(){this._uploadInC2C(c.NAME.REJECT)},e.prototype._uploadInC2C=function(e){var t=this._callRecordDataReport.getCallRecordData().head;if((null==t?void 0:t.call_type)===c.NAME.SINGLE){var n="";switch(e){case c.NAME.TIMEOUT:n=t.role===c.NAME.INVITER?c.NAME.CALL_MISSED:c.NAME.NOT_ANSWER_CALL;break;case c.NAME.REJECT:n=t.role===c.NAME.INVITER&&c.NAME.CALL_REJECTED;break;case c.NAME.BUSYLINE:n=t.role===c.NAME.INVITER?c.NAME.CALL_BUSY:c.NAME.NOT_ANSWER_CALL;break;default:return}this._callRecordDataReport.eventUpload({eventType:n})}},e}();t.TUICallEngineRecordObserver=m},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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(0),i=null===window||void 0===window?void 0:window.cancelAnimationFrame,s=function(){function e(){}return e.generateTaskID=function(){return this.currentTaskID++},e.run=function(e,t,n){void 0===e&&(e=a.NAME.TIMEOUT),n=e===a.NAME.INTERVAL?r({delay:2e3,count:0,backgroundTask:!0},n):e===a.NAME.RAF?r({fps:60,delay:16.6,count:0,backgroundTask:!0},n):r({delay:2e3,count:0,backgroundTask:!0},n),o.isObject(t)&&(n=r(r({},n),t)),o.isFunction(e)&&(t=e,e=a.NAME.TIMEOUT);var i=r({taskID:this.generateTaskID(),loopCount:0,intervalID:null,timeoutID:null,rafID:null,taskName:e,callback:t},n);return this.taskMap.set(i.taskID,i),this[e](i),i.taskID},e.interval=function(e){var t=this;return e.intervalID=setInterval((function(){e.callback(),e.loopCount+=1,t.isBreakLoop(e)}),e.delay)},e.timeout=function(e){var t=this,n=function(){if(e.callback(),e.loopCount+=1,!t.isBreakLoop(e))return e.timeoutID=setTimeout(n,e.delay)};return e.timeoutID=setTimeout(n,e.delay)},e.raf=function(e){var t=this;e.delay=(1e3/e.fps).toFixed(2);var n,r=o.performanceNow(),a=function(){if(document.hidden&&e.backgroundTask){if(n=o.performanceNow()-r,r=o.performanceNow(),e.callback(),e.loopCount+=1,t.isBreakLoop(e))return;return e.timeoutID=setTimeout(a,e.delay-Math.floor(n%e.delay))}if((n=o.performanceNow()-r)>=e.delay&&(r=o.performanceNow()-Math.floor(n%e.delay),e.callback(),e.loopCount+=1),!t.isBreakLoop(e))return e.rafID=requestAnimationFrame(a)};if(e.rafID=requestAnimationFrame(a),e.backgroundTask){var i=function(){if(document.hidden){var t=o.performanceNow()-r;t>=e.delay?a():e.timeoutID=setTimeout(a,e.delay-t)}};document.addEventListener("visibilitychange",i),e.onVisibilitychange=i,document.hidden&&i()}return e.taskID},e.hasTask=function(e){return this.taskMap.has(e)},e.clearTask=function(e){if(!this.taskMap.has(e))return!0;var t=this.taskMap.get(e),n=t.intervalID,r=t.timeoutID,o=t.rafID,a=t.onVisibilitychange;return n&&clearInterval(n),r&&clearTimeout(r),o&&i(o),a&&document.removeEventListener("visibilitychange",a),this.taskMap.delete(e),!0},e.isBreakLoop=function(e){return!this.taskMap.has(e.taskID)||0!==e.count&&e.loopCount>=e.count&&(this.clearTask(e.taskID),!0)},e.taskMap=new Map,e.currentTaskID=1,e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ES_TABLE=t.ES_URL=t.CLS_TOPIC_ID=t.CLS_ENDPOINT=void 0,t.CLS_ENDPOINT="https://ap-nanjing.cls.tencentcs.com",t.CLS_TOPIC_ID="a1310e66-a3f5-4572-a1c3-7a327a27496d",t.ES_URL="https://webim.tim.qq.com/v4/imopenstat/tweb_trtccalling_report",t.ES_TABLE="timweb-trtccalling"}]).default}))},3654:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("8afd"),a=Object.defineProperty,i=Object.defineProperties,s=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&d(e,n,t[n]);if(c)for(var n of c(t))u.call(t,n)&&d(e,n,t[n]);return e},f=(e,t)=>i(e,s(t));function h(e,t){var n;const r=o.shallowRef();return o.watchEffect(()=>{r.value=e()},f(p({},t),{flush:null!=(n=null==t?void 0:t.flush)?n:"sync"})),o.readonly(r)}const m="undefined"!==typeof window,v=e=>"undefined"!==typeof e,g=(e,...t)=>{e||console.warn(...t)},_=Object.prototype.toString,b=e=>"boolean"===typeof e,y=e=>"function"===typeof e,O=e=>"number"===typeof e,M=e=>"string"===typeof e,k=e=>"[object Object]"===_.call(e),C=e=>"undefined"!==typeof window&&"[object Window]"===_.call(e),w=()=>Date.now(),S=()=>+Date.now(),T=(e,t,n)=>Math.min(n,Math.max(t,e)),I=()=>{},E=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e),j=m&&(null==(r=null==window?void 0:window.navigator)?void 0:r.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function D(e,t){function n(...n){e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})}return n}const L=e=>e();function A(e,t={}){let n,r;const a=a=>{const i=o.unref(e),s=o.unref(t.maxWait);if(n&&clearTimeout(n),i<=0||void 0!==s&&s<=0)return r&&(clearTimeout(r),r=null),a();s&&!r&&(r=setTimeout(()=>{n&&clearTimeout(n),r=null,a()},s)),n=setTimeout(()=>{r&&clearTimeout(r),r=null,a()},i)};return a}function N(e,t=!0,n=!0){let r,a=0,i=!0;const s=()=>{r&&(clearTimeout(r),r=void 0)},c=c=>{const l=o.unref(e),u=Date.now()-a;if(s(),l<=0)return a=Date.now(),c();u>l&&(n||!i)?(a=Date.now(),c()):t&&(r=setTimeout(()=>{a=Date.now(),i=!0,s(),c()},l)),n||r||(r=setTimeout(()=>i=!0,l)),i=!1};return c}function R(e=L){const t=o.ref(!0);function n(){t.value=!1}function r(){t.value=!0}const a=(...n)=>{t.value&&e(...n)};return{isActive:t,pause:n,resume:r,eventFilter:a}}function x(e="this function"){if(!o.isVue3)throw new Error(`[VueUse] ${e} is only works on Vue 3.`)}const P={mounted:o.isVue3?"mounted":"inserted",updated:o.isVue3?"updated":"componentUpdated",unmounted:o.isVue3?"unmounted":"unbind"};function U(e,t=!1,n="Timeout"){return new Promise((r,o)=>{t?setTimeout(()=>o(n),e):setTimeout(r,e)})}function V(e){return e}function B(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const e=t;t=void 0,e&&await e},n}function F(e){return e()}function G(e,...t){return t.some(t=>t in e)}function H(e,t){var n;if("number"===typeof e)return e+t;const r=(null==(n=e.match(/^-?[0-9]+\.?[0-9]*/))?void 0:n[0])||"",o=e.slice(r.length),a=parseFloat(r)+t;return Number.isNaN(a)?e:a+o}function Y(e,t,n=!1){return t.reduce((t,r)=>(r in e&&(n&&void 0===e[r]||(t[r]=e[r])),t),{})}function z(e,t){let n,r,a=void 0;const i=o.ref(!0),s=()=>{i.value=!0,r()};o.watch(e,s,{flush:"sync"});const c=y(t)?t:t.get,l=y(t)?void 0:t.set,u=o.customRef((e,t)=>(n=e,r=t,{get(){return i.value&&(a=c(),i.value=!1),n(),a},set(e){null==l||l(e)}}));return Object.isExtensible(u)&&(u.trigger=s),u}function q(){const e=[],t=t=>{const n=e.indexOf(t);-1!==n&&e.splice(n,1)},n=n=>(e.push(n),{off:()=>t(n)}),r=t=>{e.forEach(e=>e(t))};return{on:n,off:t,trigger:r}}function W(e){let t,n=!1;const r=o.effectScope(!0);return()=>(n||(t=r.run(e),n=!0),t)}function K(e){const t=Symbol("InjectionState"),n=(...n)=>{o.provide(t,e(...n))},r=()=>o.inject(t);return[n,r]}function $(e){return!!o.getCurrentScope()&&(o.onScopeDispose(e),!0)}function J(e){let t,n,r=0;const a=()=>{r-=1,n&&r<=0&&(n.stop(),t=void 0,n=void 0)};return(...i)=>(r+=1,t||(n=o.effectScope(!0),t=n.run(()=>e(...i))),$(a),t)}function X(e,t,{enumerable:n=!1,unwrap:r=!0}={}){x();for(const[a,i]of Object.entries(t))"value"!==a&&(o.isRef(i)&&r?Object.defineProperty(e,a,{get(){return i.value},set(e){i.value=e},enumerable:n}):Object.defineProperty(e,a,{value:i,enumerable:n}));return e}function Q(e,t){return null==t?o.unref(e):o.unref(e)[t]}function Z(e){return null!=o.unref(e)}function ee(...e){return o.computed(()=>e.every(e=>o.unref(e)))}function te(e){return o.computed(()=>!o.unref(e))}function ne(...e){return o.computed(()=>e.some(e=>o.unref(e)))}var re=Object.defineProperty,oe=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,se=(e,t,n)=>t in e?re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ce=(e,t)=>{for(var n in t||(t={}))ae.call(t,n)&&se(e,n,t[n]);if(oe)for(var n of oe(t))ie.call(t,n)&&se(e,n,t[n]);return e};function le(e,t){if("undefined"!==typeof Symbol){const n=ce({},e);return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:t[e++],done:e>t.length})}}}),n}return Object.assign([...t],e)}function ue(e){return function(...t){return o.computed(()=>e.apply(this,t.map(e=>o.unref(e))))}}function de(e,t={}){let n=[];if(Array.isArray(t))n=t;else{const{includeOwnProperties:r=!0}=t;n.push(...Object.keys(e)),r&&n.push(...Object.getOwnPropertyNames(e))}return Object.fromEntries(n.map(t=>{const n=e[t];return[t,"function"===typeof n?ue(n.bind(e)):n]}))}function pe(e){if(!o.isRef(e))return o.reactive(e);const t=new Proxy({},{get(t,n,r){return o.unref(Reflect.get(e.value,n,r))},set(t,n,r){return o.isRef(e.value[n])&&!o.isRef(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return o.reactive(t)}function fe(e){return pe(o.computed(e))}function he(e,...t){const n=t.flat();return fe(()=>Object.fromEntries(Object.entries(o.toRefs(e)).filter(e=>!n.includes(e[0]))))}function me(e,...t){const n=t.flat();return o.reactive(Object.fromEntries(n.map(t=>[t,o.toRef(e,t)])))}function ve(e,t=1e4){return o.customRef((n,r)=>{let a,i=e;const s=()=>setTimeout(()=>{i=e,r()},o.unref(t));return $(()=>{clearTimeout(a)}),{get(){return n(),i},set(e){i=e,r(),clearTimeout(a),a=s()}}})}function ge(e,t=200,n={}){return D(A(t,n),e)}function _e(e,t=200,n={}){if(t<=0)return e;const r=o.ref(e.value),a=ge(()=>{r.value=e.value},t,n);return o.watch(e,()=>a()),r}function be(e,t){return o.computed({get(){var n;return null!=(n=e.value)?n:t},set(t){e.value=t}})}function ye(e,t=200,n=!0,r=!0){return D(N(t,n,r),e)}function Oe(e,t=200,n=!0,r=!0){if(t<=0)return e;const a=o.ref(e.value),i=ye(()=>{a.value=e.value},t,n,r);return o.watch(e,()=>i()),a}function Me(e,t={}){let n,r,a=e;const i=o.customRef((e,t)=>(n=e,r=t,{get(){return s()},set(e){c(e)}}));function s(e=!0){return e&&n(),a}function c(e,n=!0){var o,i;if(e===a)return;const s=a;!1!==(null==(o=t.onBeforeChange)?void 0:o.call(t,e,s))&&(a=e,null==(i=t.onChanged)||i.call(t,e,s),n&&r())}const l=()=>s(!1),u=e=>c(e,!1),d=()=>s(!1),p=e=>c(e,!1);return X(i,{get:s,set:c,untrackedGet:l,silentSet:u,peek:d,lay:p},{enumerable:!0})}const ke=Me;function Ce(e){return"function"===typeof e?o.computed(e):o.ref(e)}function we(e){return"function"===typeof e?e():o.unref(e)}function Se(...e){if(2===e.length){const[t,n]=e;t.value=n}if(3===e.length)if(o.isVue2)o.set(...e);else{const[t,n,r]=e;t[n]=r}}function Te(e,t,n={}){const{flush:r="sync",deep:a=!1,immediate:i=!0,direction:s="both"}=n;let c,l;return"both"!==s&&"ltr"!==s||(c=o.watch(e,e=>t.value=e,{flush:r,deep:a,immediate:i})),"both"!==s&&"rtl"!==s||(l=o.watch(t,t=>e.value=t,{flush:r,deep:a,immediate:i})),()=>{null==c||c(),null==l||l()}}function Ie(e,t,n={}){const{flush:r="sync",deep:a=!1,immediate:i=!0}=n;return Array.isArray(t)||(t=[t]),o.watch(e,e=>t.forEach(t=>t.value=e),{flush:r,deep:a,immediate:i})}var Ee=Object.defineProperty,je=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Re=(e,t,n)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xe=(e,t)=>{for(var n in t||(t={}))Ae.call(t,n)&&Re(e,n,t[n]);if(Le)for(var n of Le(t))Ne.call(t,n)&&Re(e,n,t[n]);return e},Pe=(e,t)=>je(e,De(t));function Ue(e){if(!o.isRef(e))return o.toRefs(e);const t=Array.isArray(e.value)?new Array(e.value.length):{};for(const n in e.value)t[n]=o.customRef(()=>({get(){return e.value[n]},set(t){if(Array.isArray(e.value)){const r=[...e.value];r[n]=t,e.value=r}else{const r=Pe(xe({},e.value),{[n]:t});Object.setPrototypeOf(r,e.value),e.value=r}}}));return t}function Ve(e,t=!0){o.getCurrentInstance()?o.onBeforeMount(e):t?e():o.nextTick(e)}function Be(e){o.getCurrentInstance()&&o.onBeforeUnmount(e)}function Fe(e,t=!0){o.getCurrentInstance()?o.onMounted(e):t?e():o.nextTick(e)}function Ge(e){o.getCurrentInstance()&&o.onUnmounted(e)}function He(e){let t=!1;function n(n,{flush:r="sync",deep:a=!1,timeout:i,throwOnTimeout:s}={}){let c=null;const l=new Promise(i=>{c=o.watch(e,e=>{n(e)!==t&&(null==c||c(),i(e))},{flush:r,deep:a,immediate:!0})}),u=[l];return null!=i&&u.push(U(i,s).then(()=>o.unref(e)).finally(()=>null==c?void 0:c())),Promise.race(u)}function r(r,a){if(!o.isRef(r))return n(e=>e===r,a);const{flush:i="sync",deep:s=!1,timeout:c,throwOnTimeout:l}=null!=a?a:{};let u=null;const d=new Promise(n=>{u=o.watch([e,r],([e,r])=>{t!==(e===r)&&(null==u||u(),n(e))},{flush:i,deep:s,immediate:!0})}),p=[d];return null!=c&&p.push(U(c,l).then(()=>o.unref(e)).finally(()=>(null==u||u(),o.unref(e)))),Promise.race(p)}function a(e){return n(e=>Boolean(e),e)}function i(e){return r(null,e)}function s(e){return r(void 0,e)}function c(e){return n(Number.isNaN,e)}function l(e,t){return n(t=>{const n=Array.from(t);return n.includes(e)||n.includes(o.unref(e))},t)}function u(e){return d(1,e)}function d(e=1,t){let r=-1;return n(()=>(r+=1,r>=e),t)}if(Array.isArray(o.unref(e))){const e={toMatch:n,toContains:l,changed:u,changedTimes:d,get not(){return t=!t,this}};return e}{const e={toMatch:n,toBe:r,toBeTruthy:a,toBeNull:i,toBeNaN:c,toBeUndefined:s,changed:u,changedTimes:d,get not(){return t=!t,this}};return e}}function Ye(e=0,t={}){const n=o.ref(e),{max:r=1/0,min:a=-1/0}=t,i=(e=1)=>n.value=Math.min(r,n.value+e),s=(e=1)=>n.value=Math.max(a,n.value-e),c=()=>n.value,l=e=>n.value=e,u=(t=e)=>(e=t,l(t));return{count:n,inc:i,dec:s,get:c,set:l,reset:u}}const ze=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,qe=/\[([^\]]+)]|Y{1,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,We=(e,t)=>{const n=e.getFullYear(),r=e.getMonth(),o=e.getDate(),a=e.getHours(),i=e.getMinutes(),s=e.getSeconds(),c=e.getMilliseconds(),l=e.getDay(),u={YY:String(n).slice(-2),YYYY:n,M:r+1,MM:(""+(r+1)).padStart(2,"0"),D:String(o),DD:(""+o).padStart(2,"0"),H:String(a),HH:(""+a).padStart(2,"0"),h:(""+(a%12||12)).padStart(1,"0"),hh:(""+(a%12||12)).padStart(2,"0"),m:String(i),mm:(""+i).padStart(2,"0"),s:String(s),ss:(""+s).padStart(2,"0"),SSS:(""+c).padStart(3,"0"),d:l};return t.replace(qe,(e,t)=>t||u[e])},Ke=e=>{if(null===e)return new Date(NaN);if(void 0===e)return new Date;if(e instanceof Date)return new Date(e);if("string"===typeof e&&!/Z$/i.test(e)){const t=e.match(ze);if(t){const e=t[2]-1||0,n=(t[7]||"0").substring(0,3);return new Date(t[1],e,t[3]||1,t[4]||0,t[5]||0,t[6]||0,n)}}return new Date(e)};function $e(e,t="HH:mm:ss"){return o.computed(()=>We(Ke(o.unref(e)),o.unref(t)))}function Je(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:a=!1}=n;let i=null;const s=o.ref(!1);function c(){i&&(clearInterval(i),i=null)}function l(){s.value=!1,c()}function u(){o.unref(t)<=0||(s.value=!0,a&&e(),c(),i=setInterval(e,o.unref(t)))}if(r&&m&&u(),o.isRef(t)){const e=o.watch(t,()=>{s.value&&m&&u()});$(e)}return $(l),{isActive:s,pause:l,resume:u}}var Xe=Object.defineProperty,Qe=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(e,t,n)=>t in e?Xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nt=(e,t)=>{for(var n in t||(t={}))Ze.call(t,n)&&tt(e,n,t[n]);if(Qe)for(var n of Qe(t))et.call(t,n)&&tt(e,n,t[n]);return e};function rt(e=1e3,t={}){const{controls:n=!1,immediate:r=!0}=t,a=o.ref(0),i=Je(()=>a.value+=1,e,{immediate:r});return n?nt({counter:a},i):a}function ot(e,t={}){var n;const r=o.ref(null!=(n=t.initialValue)?n:null);return o.watch(e,()=>r.value=S(),t),r}function at(e,t,n={}){const{immediate:r=!0}=n,a=o.ref(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function c(){a.value=!1,s()}function l(...n){s(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...n)},o.unref(t))}return r&&(a.value=!0,m&&l()),$(c),{isPending:a,start:l,stop:c}}var it=Object.defineProperty,st=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,ut=(e,t,n)=>t in e?it(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dt=(e,t)=>{for(var n in t||(t={}))ct.call(t,n)&&ut(e,n,t[n]);if(st)for(var n of st(t))lt.call(t,n)&&ut(e,n,t[n]);return e};function pt(e=1e3,t={}){const{controls:n=!1}=t,r=at(I,e,t),a=o.computed(()=>!r.isPending.value);return n?dt({ready:a},r):a}function ft(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,a=o.isRef(e),i=o.ref(e);function s(e){return arguments.length?(i.value=e,i.value):(i.value=i.value===o.unref(n)?o.unref(r):o.unref(n),i.value)}return a?s:[i,s]}function ht(e,t,n){let r=(null==n?void 0:n.immediate)?[]:[...e instanceof Function?e():Array.isArray(e)?e:o.unref(e)];return o.watch(e,(e,n,o)=>{const a=new Array(r.length),i=[];for(const t of e){let e=!1;for(let n=0;n<r.length;n++)if(!a[n]&&t===r[n]){a[n]=!0,e=!0;break}e||i.push(t)}const s=r.filter((e,t)=>!a[t]);t(e,r,i,s,o),r=[...e]},n)}var mt=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,_t=(e,t)=>{var n={};for(var r in e)vt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&mt)for(var r of mt(e))t.indexOf(r)<0&&gt.call(e,r)&&(n[r]=e[r]);return n};function bt(e,t,n={}){const r=n,{eventFilter:a=L}=r,i=_t(r,["eventFilter"]);return o.watch(e,D(a,t),i)}var yt=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,kt=(e,t)=>{var n={};for(var r in e)Ot.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&yt)for(var r of yt(e))t.indexOf(r)<0&&Mt.call(e,r)&&(n[r]=e[r]);return n};function Ct(e,t,n){const r=n,{count:a}=r,i=kt(r,["count"]),s=o.ref(0),c=bt(e,(...e)=>{s.value+=1,s.value>=o.unref(a)&&o.nextTick(()=>c()),t(...e)},i);return{count:s,stop:c}}var wt=Object.defineProperty,St=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Dt=(e,t,n)=>t in e?wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lt=(e,t)=>{for(var n in t||(t={}))Et.call(t,n)&&Dt(e,n,t[n]);if(It)for(var n of It(t))jt.call(t,n)&&Dt(e,n,t[n]);return e},At=(e,t)=>St(e,Tt(t)),Nt=(e,t)=>{var n={};for(var r in e)Et.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&It)for(var r of It(e))t.indexOf(r)<0&&jt.call(e,r)&&(n[r]=e[r]);return n};function Rt(e,t,n={}){const r=n,{debounce:o=0,maxWait:a}=r,i=Nt(r,["debounce","maxWait"]);return bt(e,t,At(Lt({},i),{eventFilter:A(o,{maxWait:a})}))}var xt=Object.defineProperty,Pt=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Gt=(e,t,n)=>t in e?xt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ht=(e,t)=>{for(var n in t||(t={}))Bt.call(t,n)&&Gt(e,n,t[n]);if(Vt)for(var n of Vt(t))Ft.call(t,n)&&Gt(e,n,t[n]);return e},Yt=(e,t)=>Pt(e,Ut(t)),zt=(e,t)=>{var n={};for(var r in e)Bt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Vt)for(var r of Vt(e))t.indexOf(r)<0&&Ft.call(e,r)&&(n[r]=e[r]);return n};function qt(e,t,n={}){const r=n,{eventFilter:a=L}=r,i=zt(r,["eventFilter"]),s=D(a,t);let c,l,u;if("sync"===i.flush){const t=o.ref(!1);l=()=>{},c=e=>{t.value=!0,e(),t.value=!1},u=o.watch(e,(...e)=>{t.value||s(...e)},i)}else{const t=[],n=o.ref(0),r=o.ref(0);l=()=>{n.value=r.value},t.push(o.watch(e,()=>{r.value++},Yt(Ht({},i),{flush:"sync"}))),c=e=>{const t=r.value;e(),n.value+=r.value-t},t.push(o.watch(e,(...e)=>{const t=n.value>0&&n.value===r.value;n.value=0,r.value=0,t||s(...e)},i)),u=()=>{t.forEach(e=>e())}}return{stop:u,ignoreUpdates:c,ignorePrevAsyncUpdates:l}}function Wt(e,t,n){const r=o.watch(e,(...e)=>(o.nextTick(()=>r()),t(...e)),n)}var Kt=Object.defineProperty,$t=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,Qt=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,en=(e,t,n)=>t in e?Kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tn=(e,t)=>{for(var n in t||(t={}))Qt.call(t,n)&&en(e,n,t[n]);if(Xt)for(var n of Xt(t))Zt.call(t,n)&&en(e,n,t[n]);return e},nn=(e,t)=>$t(e,Jt(t)),rn=(e,t)=>{var n={};for(var r in e)Qt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Xt)for(var r of Xt(e))t.indexOf(r)<0&&Zt.call(e,r)&&(n[r]=e[r]);return n};function on(e,t,n={}){const r=n,{eventFilter:o}=r,a=rn(r,["eventFilter"]),{eventFilter:i,pause:s,resume:c,isActive:l}=R(o),u=bt(e,t,nn(tn({},a),{eventFilter:i}));return{stop:u,pause:s,resume:c,isActive:l}}var an=Object.defineProperty,sn=Object.defineProperties,cn=Object.getOwnPropertyDescriptors,ln=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,pn=(e,t,n)=>t in e?an(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fn=(e,t)=>{for(var n in t||(t={}))un.call(t,n)&&pn(e,n,t[n]);if(ln)for(var n of ln(t))dn.call(t,n)&&pn(e,n,t[n]);return e},hn=(e,t)=>sn(e,cn(t)),mn=(e,t)=>{var n={};for(var r in e)un.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ln)for(var r of ln(e))t.indexOf(r)<0&&dn.call(e,r)&&(n[r]=e[r]);return n};function vn(e,t,n={}){const r=n,{throttle:o=0,trailing:a=!0,leading:i=!0}=r,s=mn(r,["throttle","trailing","leading"]);return bt(e,t,hn(fn({},s),{eventFilter:N(o,a,i)}))}var gn=Object.defineProperty,_n=Object.defineProperties,bn=Object.getOwnPropertyDescriptors,yn=Object.getOwnPropertySymbols,On=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,kn=(e,t,n)=>t in e?gn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cn=(e,t)=>{for(var n in t||(t={}))On.call(t,n)&&kn(e,n,t[n]);if(yn)for(var n of yn(t))Mn.call(t,n)&&kn(e,n,t[n]);return e},wn=(e,t)=>_n(e,bn(t));function Sn(e,t,n={}){let r;function o(){if(!r)return;const e=r;r=void 0,e()}function a(e){r=e}const i=(e,n)=>(o(),t(e,n,a)),s=qt(e,i,n),{ignoreUpdates:c}=s,l=()=>{let t;return c(()=>{t=i(Tn(e),En(e))}),t};return wn(Cn({},s),{trigger:l})}function Tn(e){return o.isReactive(e)?e:Array.isArray(e)?e.map(e=>In(e)):In(e)}function In(e){return"function"===typeof e?e():o.unref(e)}function En(e){return Array.isArray(e)?e.map(()=>{}):void 0}function jn(e,t,n){return o.watch(e,(e,n,r)=>{e&&t(e,n,r)},n)}t.__onlyVue3=x,t.and=ee,t.assert=g,t.autoResetRef=ve,t.bypassFilter=L,t.clamp=T,t.computedEager=h,t.computedWithControl=z,t.containsProp=G,t.controlledComputed=z,t.controlledRef=ke,t.createEventHook=q,t.createFilterWrapper=D,t.createGlobalState=W,t.createInjectionState=K,t.createReactiveFn=ue,t.createSharedComposable=J,t.createSingletonPromise=B,t.debounceFilter=A,t.debouncedRef=_e,t.debouncedWatch=Rt,t.directiveHooks=P,t.eagerComputed=h,t.extendRef=X,t.formatDate=We,t.get=Q,t.identity=V,t.ignorableWatch=qt,t.increaseWithUnit=H,t.invoke=F,t.isBoolean=b,t.isClient=m,t.isDef=v,t.isDefined=Z,t.isFunction=y,t.isIOS=j,t.isNumber=O,t.isObject=k,t.isString=M,t.isWindow=C,t.logicAnd=ee,t.logicNot=te,t.logicOr=ne,t.makeDestructurable=le,t.noop=I,t.normalizeDate=Ke,t.not=te,t.now=w,t.objectPick=Y,t.or=ne,t.pausableFilter=R,t.pausableWatch=on,t.promiseTimeout=U,t.rand=E,t.reactify=ue,t.reactifyObject=de,t.reactiveComputed=fe,t.reactiveOmit=he,t.reactivePick=me,t.refAutoReset=ve,t.refDebounced=_e,t.refDefault=be,t.refThrottled=Oe,t.refWithControl=Me,t.resolveRef=Ce,t.resolveUnref=we,t.set=Se,t.syncRef=Te,t.syncRefs=Ie,t.throttleFilter=N,t.throttledRef=Oe,t.throttledWatch=vn,t.timestamp=S,t.toReactive=pe,t.toRefs=Ue,t.tryOnBeforeMount=Ve,t.tryOnBeforeUnmount=Be,t.tryOnMounted=Fe,t.tryOnScopeDispose=$,t.tryOnUnmounted=Ge,t.until=He,t.useCounter=Ye,t.useDateFormat=$e,t.useDebounce=_e,t.useDebounceFn=ge,t.useInterval=rt,t.useIntervalFn=Je,t.useLastChanged=ot,t.useThrottle=Oe,t.useThrottleFn=ye,t.useTimeout=pt,t.useTimeoutFn=at,t.useToggle=ft,t.watchArray=ht,t.watchAtMost=Ct,t.watchDebounced=Rt,t.watchIgnorable=qt,t.watchOnce=Wt,t.watchPausable=on,t.watchThrottled=vn,t.watchTriggerable=Sn,t.watchWithFilter=bt,t.whenever=jn},3696:function(e,t,n){"use strict";var r=n("a5eb"),o=n("8aa9");r({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:o})},"36b8":function(e,t,n){"use strict";var r=n("06fa"),o=n("0363"),a=n("c1b2"),i=n("7042"),s=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t["delete"]("b"),r+=n+e})),n["delete"]("a",2),n["delete"]("b",void 0),i&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(i||!a)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host}))},"36c5":function(e,t,n){"use strict";var r=n("437b"),o=n("bcfb"),a=Array.prototype;e.exports=function(e){var t=e.reverse;return e===a||r(a,e)&&t===a.reverse?o:t}},"36f2":function(e,t,n){"use strict";var r,o,a,i,s=n("cfe9"),c=n("2a07"),l=n("dbe5"),u=s.structuredClone,d=s.ArrayBuffer,p=s.MessageChannel,f=!1;if(l)f=function(e){u(e,{transfer:[e]})};else if(d)try{p||(r=c("worker_threads"),r&&(p=r.MessageChannel)),p&&(o=new p,a=new d(2),i=function(e){o.port1.postMessage(null,[e])},2===a.byteLength&&(i(a),0===a.byteLength&&(f=i)))}catch(h){}e.exports=f},"36f7":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("1ad4");const o=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,a=r["c"].create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",Object(r["k"])(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[Object(r["l"])({find:o,type:this.type,getAttributes:e=>{const[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}})},"373a":function(e,t,n){"use strict";e.exports=n("4598")},"37e8":function(e,t,n){"use strict";var r=n("83ab"),o=n("aed9"),a=n("9bf2"),i=n("825a"),s=n("fc6a"),c=n("df75");t.f=r&&!o?Object.defineProperties:function(e,t){i(e);var n,r=s(t),o=c(t),l=o.length,u=0;while(l>u)a.f(e,n=o[u++],r[n]);return e}},3818:function(e,t,n){e.exports=n("2ec7")},"386d":function(e,t,n){"use strict";var r=n("a5eb"),o=n("8550");r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},3876:function(e,t,n){"use strict";var r=n("437b"),o=n("af5f"),a=String.prototype;e.exports=function(e){var t=e.startsWith;return"string"==typeof e||e===a||r(a,e)&&t===a.startsWith?o:t}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},3886:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}});return t}))},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 o(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=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},3940:function(e,t,n){"use strict";var r=n("c1b2"),o=n("06fa");e.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},"39a6":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},"39bd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};function r(e,t,n,r){var o="";if(t)switch(n){case"s":o="काही सेकंद";break;case"ss":o="%d सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे";break}else switch(n){case"s":o="काही सेकंदां";break;case"ss":o="%d सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां";break}return o.replace(/%d/i,e)}var o=e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});return o}))},"39de":function(e,t,n){e.exports=n("a2ce")},"3a34":function(e,t,n){"use strict";var r=n("83ab"),o=n("e8b5"),a=TypeError,i=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!i(e,"length").writable)throw new a("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},"3a39":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"},r=e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});return r}))},"3a40":function(e,t,n){"use strict";var r=n("9883"),o=n("7c42"),a=r("Set"),i=a.prototype;e.exports={Set:a,add:o("add",1),has:o("has",1),remove:o("delete",1),proto:i}},"3a45":function(e,t,n){"use strict";var r=n("3eba"),o=n("06fa"),a=r.RegExp,i=!o((function(){var e=!0;try{a(".","d")}catch(l){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(i.hasIndices="d"),i)o(s,i[s]);var c=Object.getOwnPropertyDescriptor(a.prototype,"flags").get.call(t);return c!==r||n!==r}));e.exports={correct:i}},"3a6c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},"3a95":function(e,t,n){"use strict";var r=n("a5eb"),o=n("ad27");r({target:"Promise",stat:!0},{withResolvers:function(){var e=o.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},"3a9b":function(e,t,n){"use strict";var r=n("e330");e.exports=r({}.isPrototypeOf)},"3b1b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"},n=e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}});return n}))},"3b4c":function(e,t,n){e.exports=n("abf2")},"3b6a":function(e,t,n){"use strict";var r=n("0f7c"),o=n("e16f"),a=n("926d"),i=n("6b3f");e.exports=i||r.call(a,o)},"3b7b":function(e,t,n){"use strict";n("bbe3");var r=n("c18e");e.exports=r("Array","indexOf")},"3bbe":function(e,t,n){"use strict";var r=n("1787"),o=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a("Can't set "+o(e)+" as a prototype")}},"3bbf":function(e,t,n){"use strict";var r=n("00ce"),o=n("f9ae"),a=o([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&a(e,".prototype.")>-1?o([n]):n}},"3c0d":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],o=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function a(e){return e>1&&e<5&&1!==~~(e/10)}function i(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?o+(a(e)?"sekundy":"sekund"):o+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?o+(a(e)?"minuty":"minut"):o+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?o+(a(e)?"hodiny":"hodin"):o+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?o+(a(e)?"dny":"dní"):o+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?o+(a(e)?"měsíce":"měsíců"):o+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?o+(a(e)?"roky":"let"):o+"lety"}}var s=e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return s}))},"3c5d":function(e,t,n){"use strict";var r=n("cfe9"),o=n("c65b"),a=n("ebb5"),i=n("07fa"),s=n("182d"),c=n("7b0b"),l=n("d039"),u=r.RangeError,d=r.Int8Array,p=d&&d.prototype,f=p&&p.set,h=a.aTypedArray,m=a.exportTypedArrayMethod,v=!l((function(){var e=new Uint8ClampedArray(2);return o(f,e,{length:1,0:3},1),3!==e[1]})),g=v&&a.NATIVE_ARRAY_BUFFER_VIEWS&&l((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){h(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=c(e);if(v)return o(f,this,n,t);var r=this.length,a=i(n),l=0;if(a+t>r)throw new u("Wrong length");while(l<a)this[t+l]=n[l++]}),!v||g)},"3c9f":function(e,t,n){"use strict";var r=n("0ca2");e.exports=r},"3ce8":function(e,t,n){"use strict";n("51b8"),e.exports=n("3eba")},"3cef":function(e,t,n){"use strict";var r=n("b15d"),o=n("3a40").has,a=n("30d3"),i=n("71c3"),s=n("99fa"),c=n("5415"),l=n("8a3b");e.exports=function(e){var t=r(this),n=i(e);if(a(t)<=n.size)return!1!==s(t,(function(e){if(n.includes(e))return!1}),!0);var u=n.getIterator();return!1!==c(u,(function(e){if(o(t,e))return l(u.iterator,"normal",!1)}))}},"3dcb":function(e,t,n){"use strict";var r=n("a5eb");r({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},"3de5":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:""},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","":"0"},r=e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}});return r}))},"3dea":function(e,t,n){"use strict";var r=n("1e52");e.exports=r},"3e23":function(e,t,n){"use strict";var r=TypeError,o=9007199254740991;e.exports=function(e){if(e>o)throw new r("Maximum allowed index exceeded");return e}},"3e47":function(e,t,n){"use strict";var r=n("cbd0").charAt,o=n("8c12"),a=n("2f5a"),i=n("b7a8"),s=n("ddb5"),c="String Iterator",l=a.set,u=a.getterFor(c);i(String,"String",(function(e){l(this,{type:c,string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?s(void 0,!0):(e=r(n,o),t.index+=e.length,s(e,!1))}))},"3e476":function(e,t,n){"use strict";var r=n("a5eb"),o=n("c1b2"),a=n("4180").f;r({target:"Object",stat:!0,forced:Object.defineProperty!==a,sham:!o},{defineProperty:a})},"3e80":function(e,t,n){"use strict";var r=n("ce18"),o=0,a=Math.random(),i=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++o+a,36)}},"3e92":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:""},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","":"0"},r=e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}});return r}))},"3e9e":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("0898");const o=Object(r["b"])({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:Object(r["c"])([String,Object,Array])},offset:{type:Object(r["c"])(Array),default:()=>[0,0]},badgeClass:{type:String}})},"3eba":function(e,t,n){"use strict";(function(t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},"3ed8":function(e,t,n){"use strict";var r=n("a5eb"),o=n("9c9e"),a=n("7042"),i=o.get,s=o.has,c=o.set;r({target:"WeakMap",proto:!0,real:!0,forced:a},{getOrInsert:function(e,t){return s(this,e)?i(this,e):(c(this,e,t),t)}})},"3ef4":function(e,t,n){"use strict";n.d(t,"a",(function(){return $}));var r=n("0c24"),o=(n("14d9"),n("9a73")),a=n.n(o),i=n("65b8"),s=n.n(i),c=n("3393"),l=n.n(c),u=n("fc56"),d=n.n(u),p=n("4573"),f=n.n(p),h=n("0931"),m=n("7d20"),v=n("83ec"),g=n("8afb"),_=n("93b2"),b=n("e466"),y=n("4c43"),O=n.n(y),M=n("7a23");const k=Object(M["shallowReactive"])({}),C=e=>(k[e]||(k[e]=Object(M["shallowReactive"])([])),k[e]),w=(e,t)=>{const n=k[t]||[],r=O()(n).call(n,t=>t.id===e),o=n[r];let a;return r>0&&(a=n[r-1]),{current:o,prev:a}},S=(e,t)=>{const{prev:n}=w(e,t);return n?n.vm.exposed.bottom.value:0},T=(e,t,n)=>{var r;return O()(r=k[n]||[]).call(r,t=>t.id===e)>0?16:t};var I=n("a4fc"),E=n.n(I),j=n("49c6"),D=n("6a7a"),L=n("31e7"),A=n("54bb"),N=n("0388"),R=n("edd9");const x=["id"],P=["innerHTML"];var U=Object(M["defineComponent"])({name:"ElMessage",__name:"message",props:b["e"],emits:b["c"],setup(e,{expose:t,emit:n}){const{Close:r}=L["b"],o=e,i=n,s=Object(M["ref"])(!1),{ns:c,zIndex:l}=Object(R["b"])("message"),{currentZIndex:u,nextZIndex:d}=l,p=Object(M["ref"])(),f=Object(M["ref"])(!1),m=Object(M["ref"])(0);let v=void 0;const g=Object(M["computed"])(()=>o.type?"error"===o.type?"danger":o.type:"info"),_=Object(M["computed"])(()=>{const e=o.type;return{[c.bm("icon",e)]:e&&L["c"][e]}}),y=Object(M["computed"])(()=>o.icon||L["c"][o.type]||""),O=Object(M["computed"])(()=>o.placement||b["a"]),k=Object(M["computed"])(()=>S(o.id,O.value)),C=Object(M["computed"])(()=>T(o.id,o.offset,O.value)+k.value),w=Object(M["computed"])(()=>m.value+C.value),I=Object(M["computed"])(()=>{var e,t;return a()(e=O.value).call(e,"left")?c.is("left"):a()(t=O.value).call(t,"right")?c.is("right"):c.is("center")}),U=Object(M["computed"])(()=>{var e;return E()(e=O.value).call(e,"top")?"top":"bottom"}),V=Object(M["computed"])(()=>({[U.value]:C.value+"px",zIndex:u.value}));function B(){0!==o.duration&&({stop:v}=Object(h["useTimeoutFn"])(()=>{G()},o.duration))}function F(){var e;null===(e=v)||void 0===e||e()}function G(){f.value=!1,Object(M["nextTick"])(()=>{var e;s.value||(null===(e=o.onClose)||void 0===e||e.call(o),i("destroy"))})}function H(e){Object(D["b"])(e)===j["a"].esc&&G()}return Object(M["onMounted"])(()=>{B(),d(),f.value=!0}),Object(M["watch"])(()=>o.repeatNum,()=>{F(),B()}),Object(h["useEventListener"])(document,"keydown",H),Object(h["useResizeObserver"])(p,()=>{m.value=p.value.getBoundingClientRect().height}),t({visible:f,bottom:w,close:G}),(t,n)=>(Object(M["openBlock"])(),Object(M["createBlock"])(M["Transition"],{name:Object(M["unref"])(c).b("fade"),onBeforeEnter:n[0]||(n[0]=e=>s.value=!0),onBeforeLeave:e.onClose,onAfterLeave:n[1]||(n[1]=e=>t.$emit("destroy")),persisted:""},{default:Object(M["withCtx"])(()=>[Object(M["withDirectives"])(Object(M["createElementVNode"])("div",{id:e.id,ref_key:"messageRef",ref:p,class:Object(M["normalizeClass"])([Object(M["unref"])(c).b(),{[Object(M["unref"])(c).m(e.type)]:e.type},Object(M["unref"])(c).is("closable",e.showClose),Object(M["unref"])(c).is("plain",e.plain),Object(M["unref"])(c).is("bottom","bottom"===U.value),I.value,e.customClass]),style:Object(M["normalizeStyle"])(V.value),role:"alert",onMouseenter:F,onMouseleave:B},[e.repeatNum>1?(Object(M["openBlock"])(),Object(M["createBlock"])(Object(M["unref"])(N["a"]),{key:0,value:e.repeatNum,type:g.value,class:Object(M["normalizeClass"])(Object(M["unref"])(c).e("badge"))},null,8,["value","type","class"])):Object(M["createCommentVNode"])("v-if",!0),y.value?(Object(M["openBlock"])(),Object(M["createBlock"])(Object(M["unref"])(A["a"]),{key:1,class:Object(M["normalizeClass"])([Object(M["unref"])(c).e("icon"),_.value])},{default:Object(M["withCtx"])(()=>[(Object(M["openBlock"])(),Object(M["createBlock"])(Object(M["resolveDynamicComponent"])(y.value)))]),_:1},8,["class"])):Object(M["createCommentVNode"])("v-if",!0),Object(M["renderSlot"])(t.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(Object(M["openBlock"])(),Object(M["createElementBlock"])(M["Fragment"],{key:1},[Object(M["createCommentVNode"])(" Caution here, message could've been compromised, never use user's input as message "),Object(M["createElementVNode"])("p",{class:Object(M["normalizeClass"])(Object(M["unref"])(c).e("content")),innerHTML:e.message},null,10,P)],2112)):(Object(M["openBlock"])(),Object(M["createElementBlock"])("p",{key:0,class:Object(M["normalizeClass"])(Object(M["unref"])(c).e("content"))},Object(M["toDisplayString"])(e.message),3))]),e.showClose?(Object(M["openBlock"])(),Object(M["createBlock"])(Object(M["unref"])(A["a"]),{key:2,class:Object(M["normalizeClass"])(Object(M["unref"])(c).e("closeBtn")),onClick:Object(M["withModifiers"])(G,["stop"])},{default:Object(M["withCtx"])(()=>[Object(M["createVNode"])(Object(M["unref"])(r))]),_:1},8,["class"])):Object(M["createCommentVNode"])("v-if",!0)],46,x),[[M["vShow"],f.value]])]),_:3},8,["name","onBeforeLeave"]))}}),V=U;let B=1;const F=e=>{if(e.appendTo){if(Object(m["isString"])(e.appendTo)){let t=document.querySelector(e.appendTo);Object(v["b"])(t)||(Object(g["a"])("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body),e.appendTo=t}}else e.appendTo=document.body},G=e=>{!e.placement&&Object(m["isString"])(_["b"].placement)&&_["b"].placement&&(e.placement=_["b"].placement),e.placement||(e.placement=b["a"]),a()(b["d"]).call(b["d"],e.placement)||(Object(g["a"])("ElMessage",`Invalid placement: ${e.placement}. Falling back to '${b["a"]}'.`),e.placement=b["a"])},H=e=>{const t=!e||Object(m["isString"])(e)||Object(M["isVNode"])(e)||Object(m["isFunction"])(e)?{message:e}:e,n={...b["b"],...t};return F(n),G(n),Object(v["a"])(_["b"].grouping)&&!n.grouping&&(n.grouping=_["b"].grouping),Object(v["d"])(_["b"].duration)&&3e3===n.duration&&(n.duration=_["b"].duration),Object(v["d"])(_["b"].offset)&&16===n.offset&&(n.offset=_["b"].offset),Object(v["a"])(_["b"].showClose)&&!n.showClose&&(n.showClose=_["b"].showClose),Object(v["a"])(_["b"].plain)&&!n.plain&&(n.plain=_["b"].plain),n},Y=e=>{const t=k[e.props.placement||b["a"]],n=s()(t).call(t,e);if(-1===n)return;l()(t).call(t,n,1);const{handler:r}=e;r.close()},z=({appendTo:e,...t},n)=>{const r="message_"+B++,o=t.onClose,a=document.createElement("div"),i={...t,id:r,onClose:()=>{null===o||void 0===o||o(),Y(l)},onDestroy:()=>{Object(M["render"])(null,a)}},s=Object(M["createVNode"])(V,i,Object(m["isFunction"])(i.message)||Object(M["isVNode"])(i.message)?{default:Object(m["isFunction"])(i.message)?i.message:()=>i.message}:null);s.appContext=n||q._context,Object(M["render"])(s,a),e.appendChild(a.firstElementChild);const c=s.component,l={id:r,vnode:s,vm:c,handler:{close:()=>{c.exposed.close()}},props:s.component.props};return l},q=(e={},t)=>{if(!h["isClient"])return{close:()=>{}};const n=H(e),r=C(n.placement||b["a"]);if(n.grouping&&r.length){const e=d()(r).call(r,({vnode:e})=>{var t;return(null===(t=e.props)||void 0===t?void 0:t.message)===n.message});if(e)return e.props.repeatNum+=1,e.props.type=n.type,e.handler}if(Object(v["d"])(_["b"].max)&&r.length>=_["b"].max)return{close:()=>{}};const o=z(n,t);return r.push(o),o.handler};function W(e){for(const t in k)if(Object(m["hasOwn"])(k,t)){const n=[...k[t]];for(const t of n)e&&e!==t.props.type||t.handler.close()}}function K(e){var t;k[e]&&f()(t=[...k[e]]).call(t,e=>e.handler.close())}f()(b["f"]).call(b["f"],e=>{q[e]=(t={},n)=>q({...H(t),type:e},n)}),q.closeAll=W,q.closeAllByPlacement=K,q._context=null;const $=Object(r["c"])(q,"$message")},"3f10":function(e,t,n){"use strict";var r=n("4057");e.exports=r},"3f4e":function(e,t,n){"use strict";function r(){return o().__VUE_DEVTOOLS_GLOBAL_HOOK__}function o(){return"undefined"!==typeof navigator&&"undefined"!==typeof window?window:"undefined"!==typeof globalThis?globalThis:{}}n.d(t,"a",(function(){return f}));const a="function"===typeof Proxy,i="devtools-plugin:setup",s="plugin:settings:set";let c,l;function u(){var e;return void 0!==c||("undefined"!==typeof window&&window.performance?(c=!0,l=window.performance):"undefined"!==typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(c=!0,l=globalThis.perf_hooks.performance):c=!1),c}function d(){return u()?l.now():Date.now()}class p{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const i in e.settings){const t=e.settings[i];n[i]=t.defaultValue}const r="__vue-devtools-plugin-settings__"+e.id;let o=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(o,t)}catch(a){}this.fallbacks={getSettings(){return o},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(a){}o=e},now(){return d()}},t&&t.on(s,(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function f(e,t){const n=e,s=o(),c=r(),l=a&&n.enableEarlyProxy;if(!c||!s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&l){const e=l?new p(n,c):null,r=s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[];r.push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else c.emit(i,e,t)}},4035:function(e,t,n){"use strict";var r=n("e332");e.exports=r},4057:function(e,t,n){"use strict";n("024f");var r=n("764b");e.exports=r.Number.parseFloat},"40d5":function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"40e9":function(e,t,n){"use strict";var r=n("23e7"),o=n("41f6");o&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return o(this,arguments.length?arguments[0]:void 0,!1)}})},"410b":function(e,t,n){"use strict";var r=n("a5eb"),o=n("dee0").map,a=n("9c96"),i=a("map");r({target:"Array",proto:!0,forced:!i},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},4127:function(e,t,n){"use strict";var r=n("5402"),o=n("d233"),a=n("b313"),i=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,c(t)?t:[t])},d=Date.prototype.toISOString,p=a["default"],f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:a.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},m={},v=function e(t,n,a,i,s,l,d,p,v,g,_,b,y,O,M,k,C,w){var S=t,T=w,I=0,E=!1;while(void 0!==(T=T.get(m))&&!E){var j=T.get(t);if(I+=1,"undefined"!==typeof j){if(j===I)throw new RangeError("Cyclic object value");E=!0}"undefined"===typeof T.get(m)&&(I=0)}if("function"===typeof g?S=g(n,S):S instanceof Date?S=y(S):"comma"===a&&c(S)&&(S=o.maybeMap(S,(function(e){return e instanceof Date?y(e):e}))),null===S){if(l)return v&&!k?v(n,f.encoder,C,"key",O):n;S=""}if(h(S)||o.isBuffer(S)){if(v){var D=k?n:v(n,f.encoder,C,"key",O);return[M(D)+"="+M(v(S,f.encoder,C,"value",O))]}return[M(n)+"="+M(String(S))]}var L,A=[];if("undefined"===typeof S)return A;if("comma"===a&&c(S))k&&v&&(S=o.maybeMap(S,v)),L=[{value:S.length>0?S.join(",")||null:void 0}];else if(c(g))L=g;else{var N=Object.keys(S);L=_?N.sort(_):N}var R=p?String(n).replace(/\./g,"%2E"):String(n),x=i&&c(S)&&1===S.length?R+"[]":R;if(s&&c(S)&&0===S.length)return x+"[]";for(var P=0;P<L.length;++P){var U=L[P],V="object"===typeof U&&U&&"undefined"!==typeof U.value?U.value:S[U];if(!d||null!==V){var B=b&&p?String(U).replace(/\./g,"%2E"):String(U),F=c(S)?"function"===typeof a?a(x,B):x:x+(b?"."+B:"["+B+"]");w.set(t,I);var G=r();G.set(m,w),u(A,e(V,F,a,i,s,l,d,p,"comma"===a&&k&&c(S)?null:v,g,_,b,y,O,M,k,C,G))}}return A},g=function(e){if(!e)return f;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.encodeDotInKeys&&"boolean"!==typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.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=a["default"];if("undefined"!==typeof e.format){if(!i.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=a.formatters[n],l=f.filter;if(("function"===typeof e.filter||c(e.filter))&&(l=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="undefined"===typeof e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:"undefined"===typeof e.delimiter?f.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"===typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"===typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:l,format:n,formatter:o,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};e.exports=function(e,t){var n,o,a=e,i=g(t);"function"===typeof i.filter?(o=i.filter,a=o("",a)):c(i.filter)&&(o=i.filter,n=o);var l=[];if("object"!==typeof a||null===a)return"";var d=s[i.arrayFormat],p="comma"===d&&i.commaRoundTrip;n||(n=Object.keys(a)),i.sort&&n.sort(i.sort);for(var f=r(),h=0;h<n.length;++h){var m=n[h],_=a[m];i.skipNulls&&null===_||u(l,v(_,m,d,p,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,f))}var b=l.join(i.delimiter),y=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),b.length>0?y+b:""}},"417f":function(e,t,n){"use strict";e.exports=EvalError},4180:function(e,t,n){"use strict";var r=n("c1b2"),o=n("77b2"),a=n("3940"),i=n("6f8d"),s=n("2c75"),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",f="writable";t.f=r?a?function(e,t,n){if(i(e),t=s(t),i(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=u(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:d in n?n[d]:r[d],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(i(e),t=s(t),i(n),o)try{return l(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"418f":function(e,t,n){"use strict";var r=n("23e7"),o=n("cfe9"),a=n("e330"),i=n("f69d"),s=n("6b37"),c=n("2005"),l=n("b917"),u=n("da63"),d=l.i2c,p=l.i2cUrl,f=a("".charAt),h=o.Uint8Array,m=!h||!h.prototype.toBase64||!function(){try{var e=new h;e.toBase64(null)}catch(t){return!0}}();h&&r({target:"Uint8Array",proto:!0,forced:m},{toBase64:function(){var e=s(this),t=arguments.length?i(arguments[0]):void 0,n="base64"===u(t)?d:p,r=!!t&&!!t.omitPadding;c(this.buffer);for(var o,a="",l=0,h=e.length,m=function(e){return f(n,o>>6*e&63)};l+2<h;l+=3)o=(e[l]<<16)+(e[l+1]<<8)+e[l+2],a+=m(3)+m(2)+m(1)+m(0);return l+2===h?(o=(e[l]<<16)+(e[l+1]<<8),a+=m(3)+m(2)+m(1)+(r?"":"=")):l+1===h&&(o=e[l]<<16,a+=m(3)+m(2)+(r?"":"==")),a}})},"41b5":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("1ad4");const o=r["c"].create({name:"doc",topNode:!0,content:"block+"})},"41f6":function(e,t,n){"use strict";var r=n("cfe9"),o=n("e330"),a=n("7282"),i=n("0b25"),s=n("2005"),c=n("b620"),l=n("36f2"),u=n("dbe5"),d=r.structuredClone,p=r.ArrayBuffer,f=r.DataView,h=Math.max,m=Math.min,v=p.prototype,g=f.prototype,_=o(v.slice),b=a(v,"resizable","get"),y=a(v,"maxByteLength","get"),O=o(g.getInt8),M=o(g.setInt8);e.exports=(u||l)&&function(e,t,n){var r,o=c(e),a=void 0===t?o:i(t),v=!b||!b(e);if(s(e),u&&(e=d(e,{transfer:[e]}),o===a&&(n||v)))return e;if(o>=a&&(!n||v))r=_(e,0,a);else{var g=n&&!v&&y?{maxByteLength:h(a,y(e))}:void 0;r=new p(a,g);for(var k=new f(e),C=new f(r),w=m(a,o),S=0;S<w;S++)M(C,S,O(k,S))}return u||l(e),r}},4202:function(e,t,n){"use strict";n("147b");var r=n("c18e");e.exports=r("Array","filter")},4221:function(e,t,n){"use strict";n("e342");var r=n("764b");e.exports=r.Math.hypot},"423e":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});return t}))},4283:function(e,t,n){"use strict";var r=n("a5eb"),o=n("5d30"),a=n("4fff"),i=n("c74f"),s=n("c7d2"),c=n("4344");r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),n=i(t),r=void 0===e?1:s(e),l=c(t,0);return o(l,t,t,n,0,r),l}})},"42e6":function(e,t,n){"use strict";var r=n("06fa");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},"42f6":function(e,t,n){"use strict";var r=n("b15d"),o=n("3a40"),a=n("c84f"),i=n("71c3"),s=n("5415"),c=o.add,l=o.has,u=o.remove;e.exports=function(e){var t=r(this),n=i(e).getIterator(),o=a(t);return s(n,(function(e){l(t,e)?u(o,e):c(o,e)})),o}},4328:function(e,t,n){"use strict";var r=n("4127"),o=n("9e6a"),a=n("b313");e.exports={formats:a,parse:o,stringify:r}},4344:function(e,t,n){"use strict";var r=n("1dda");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},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={}},"437b":function(e,t,n){"use strict";var r=n("ce18");e.exports=r({}.isPrototypeOf)},4402:function(e,t,n){"use strict";var r=n("f446");e.exports=r},"440c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){var t=e.substr(0,e.indexOf(" "));return o(t)?"a "+e:"an "+e}function r(e){var t=e.substr(0,e.indexOf(" "));return o(t)?"viru "+e:"virun "+e}function o(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10,n=e/10;return o(0===t?n:t)}if(e<1e4){while(e>=10)e/=10;return o(e)}return e/=1e3,o(e)}var a=e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:r,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},"446f":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return s}));var r=n("0898"),o=n("31e7"),a=n("27b6"),i=n("9ad7");const s=["default","primary","success","warning","info","danger","text",""],c=["button","submit","reset"],l=Object(r["b"])({size:a["c"],disabled:{type:Boolean,default:void 0},type:{type:String,values:s,default:""},icon:{type:o["e"]},nativeType:{type:String,values:c,default:"button"},loading:Boolean,loadingIcon:{type:o["e"],default:()=>i["Loading"]},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,dashed:{type:Boolean,default:void 0},color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Object(r["c"])([String,Object]),default:"button"}}),u={click:e=>e instanceof MouseEvent}},4487:function(e,t,n){"use strict";var r=n("9c9e"),o=new r.WeakMap,a=r.set,i=r.remove;e.exports=function(e){return a(o,e,1),i(o,e),e}},"44a4":function(e,t,n){e.exports=n("8eeb")},"44ad":function(e,t,n){"use strict";var r=n("e330"),o=n("d039"),a=n("c6b6"),i=Object,s=r("".split);e.exports=o((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"===a(e)?s(e,""):i(e)}:i},"44b3":function(e,t,n){"use strict";n("4c06");var r=n("c18e");e.exports=r("Array","reduce")},"44ba":function(e,t,n){"use strict";var r=n("c1b2"),o=n("7106"),a=n("7043"),i=n("2c6c"),s=n("a421"),c=n("2c75"),l=n("0e6f"),u=n("77b2"),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=c(t),u)try{return d(e,t)}catch(n){}if(l(e,t))return i(!o(a.f,e,t),e[t])}},"44d2":function(e,t,n){"use strict";var r=n("b622"),o=n("7c73"),a=n("9bf2").f,i=r("unscopables"),s=Array.prototype;void 0===s[i]&&a(s,i,{configurable:!0,value:o(null)}),e.exports=function(e){s[i][e]=!0}},4500:function(e,t,n){"use strict";var r=n("a5eb"),o=n("ad27"),a=n("baa7").CONSTRUCTOR;r({target:"Promise",stat:!0,forced:a},{reject:function(e){var t=o.f(this),n=t.reject;return n(e),t.promise}})},4508:function(e,t,n){"use strict";var r=n("c7d2"),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},4573:function(e,t,n){e.exports=n("24b4")},4598:function(e,t,n){"use strict";var r=n("3dea");e.exports=r},4625:function(e,t,n){"use strict";var r=n("c6b6"),o=n("e330");e.exports=function(e){if("Function"===r(e))return o(e)}},"464e":function(e,t,n){"use strict";var r=n("a5eb"),o=n("ce18"),a=Date,i=o(a.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return i(new a)}})},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"46c4":function(e,t,n){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},"471b":function(e,t,n){"use strict";var r=n("6414"),o=n("7106"),a=n("4fff"),i=n("faaa"),s=n("2616"),c=n("bae4"),l=n("c74f"),u=n("6c15"),d=n("ffb3"),p=n("d9f3"),f=n("0b7b"),h=n("8a3b"),m=Array;e.exports=function(e){var t=c(this),n=arguments.length,v=n>1?arguments[1]:void 0,g=void 0!==v;g&&(v=r(v,n>2?arguments[2]:void 0));var _,b,y,O,M,k,C=a(e),w=f(C),S=0;if(!w||this===m&&s(w))for(_=l(C),b=t?new this(_):m(_);_>S;S++)k=g?v(C[S],S):C[S],u(b,S,k);else for(b=t?new this:[],O=p(C,w),M=O.next;!(y=o(M,O)).done;S++){k=g?i(O,v,[y.value,S],!0):y.value;try{u(b,S,k)}catch(T){h(O,"throw",T)}}return d(b,S),b}},4754:function(e,t,n){"use strict";e.exports=function(e,t){return{value:e,done:t}}},"47c7":function(e,t,n){e.exports=n("cdb4")},"484e":function(e,t,n){"use strict";var r=n("a5eb"),o=n("471b"),a=n("7de7"),i=!a((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:i},{from:o})},"485a":function(e,t,n){"use strict";var r=n("c65b"),o=n("1626"),a=n("861d"),i=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!a(s=r(n,e)))return s;if(o(n=e.valueOf)&&!a(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!a(s=r(n,e)))return s;throw new i("Can't convert object to primitive value")}},"485c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"},n=e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,r=e%100-n,o=e>=100?100:null;return e+(t[n]||t[r]||t[o])},week:{dow:1,doy:7}});return n}))},4896:function(e,t,n){"use strict";var r,o=n("6f8d"),a=n("c230"),i=n("9e57"),s=n("6e9a"),c=n("edbd"),l=n("7a37"),u=n("b2ed"),d=">",p="<",f="prototype",h="script",m=u("IE_PROTO"),v=function(){},g=function(e){return p+h+d+e+p+"/"+h+d},_=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=l("iframe"),n="java"+h+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}y="undefined"!=typeof document?document.domain&&r?_(r):b():_(r);var e=i.length;while(e--)delete y[f][i[e]];return y()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[f]=o(e),n=new v,v[f]=null,n[m]=e):n=y(),void 0===t?n:a.f(n,t)}},"493c":function(e,t,n){e.exports=n("fcb0")},4947:function(e,t,n){"use strict";var r=n("fdbc");e.exports=r},"49ab":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},"49c6":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"}},"49d1":function(e,t,n){e.exports=n("ceb3")},"4a7b":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function i(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||a,o=t(e);r.isUndefined(o)&&t!==c||(n[e]=o)})),n}},"4af5":function(e,t,n){"use strict";var r=n("2d80"),o=n("44a4"),a=n("800f");r(t,"__esModule",{value:!0}),t.isValidCSSUnit=t.stringInputToObject=t.inputToRGB=void 0;const i=n("d756"),s=n("fc75"),c=n("1127");function l(e){let t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,s=!1,l=!1;return"string"===typeof e&&(e=v(e)),"object"===typeof e&&(g(e.r)&&g(e.g)&&g(e.b)?(t=(0,i.rgbToRgb)(e.r,e.g,e.b),s=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):g(e.h)&&g(e.s)&&g(e.v)?(r=(0,c.convertToPercentage)(e.s),o=(0,c.convertToPercentage)(e.v),t=(0,i.hsvToRgb)(e.h,r,o),s=!0,l="hsv"):g(e.h)&&g(e.s)&&g(e.l)?(r=(0,c.convertToPercentage)(e.s),a=(0,c.convertToPercentage)(e.l),t=(0,i.hslToRgb)(e.h,r,a),s=!0,l="hsl"):g(e.c)&&g(e.m)&&g(e.y)&&g(e.k)&&(t=(0,i.cmykToRgb)(e.c,e.m,e.y,e.k),s=!0,l="cmyk"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,c.boundAlpha)(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}t.inputToRGB=l;const u="[-\\+]?\\d+%?",d="[-\\+]?\\d*\\.\\d+%?",p="(?:"+d+")|(?:"+u+")",f="[\\s|\\(]+("+p+")[,|\\s]+("+p+")[,|\\s]+("+p+")\\s*\\)?",h="[\\s|\\(]+("+p+")[,|\\s]+("+p+")[,|\\s]+("+p+")[,|\\s]+("+p+")\\s*\\)?",m={CSS_UNIT:new RegExp(p),rgb:new RegExp("rgb"+f),rgba:new RegExp("rgba"+h),hsl:new RegExp("hsl"+f),hsla:new RegExp("hsla"+h),hsv:new RegExp("hsv"+f),hsva:new RegExp("hsva"+h),cmyk:new RegExp("cmyk"+h),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function v(e){if(e=o(e).call(e).toLowerCase(),0===e.length)return!1;let t=!1;if(s.names[e])e=s.names[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};let n=m.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=m.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=m.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=m.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=m.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=m.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=m.cmyk.exec(e),n?{c:n[1],m:n[2],y:n[3],k:n[4]}:(n=m.hex8.exec(e),n?{r:(0,i.parseIntFromHex)(n[1]),g:(0,i.parseIntFromHex)(n[2]),b:(0,i.parseIntFromHex)(n[3]),a:(0,i.convertHexToDecimal)(n[4]),format:t?"name":"hex8"}:(n=m.hex6.exec(e),n?{r:(0,i.parseIntFromHex)(n[1]),g:(0,i.parseIntFromHex)(n[2]),b:(0,i.parseIntFromHex)(n[3]),format:t?"name":"hex"}:(n=m.hex4.exec(e),n?{r:(0,i.parseIntFromHex)(n[1]+n[1]),g:(0,i.parseIntFromHex)(n[2]+n[2]),b:(0,i.parseIntFromHex)(n[3]+n[3]),a:(0,i.convertHexToDecimal)(n[4]+n[4]),format:t?"name":"hex8"}:(n=m.hex3.exec(e),!!n&&{r:(0,i.parseIntFromHex)(n[1]+n[1]),g:(0,i.parseIntFromHex)(n[2]+n[2]),b:(0,i.parseIntFromHex)(n[3]+n[3]),format:t?"name":"hex"}))))))))))}function g(e){return"number"===typeof e?!a(e):m.CSS_UNIT.test(e)}t.stringInputToObject=v,t.isValidCSSUnit=g},"4b11":function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"4b7c":function(e,t,n){"use strict";var r=n("76ce");e.exports=r},"4ba9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",r;case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",r;case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",r;case"dd":return r+=1===e?"dan":"dana",r;case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",r;case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",r}}var n=e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"4bea":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s}));var r=n("7f7b"),o=n("27b6"),a=n("5112"),i=n("7a23");const s=(e,t={})=>{const n=Object(i["ref"])(void 0),s=t.prop?n:Object(r["a"])("size"),c=t.global?n:Object(o["b"])(),l=t.form?{size:void 0}:Object(i["inject"])(a["a"],void 0),u=t.formItem?{size:void 0}:Object(i["inject"])(a["b"],void 0);return Object(i["computed"])(()=>s.value||Object(i["unref"])(e)||(null===u||void 0===u?void 0:u.size)||(null===l||void 0===l?void 0:l.size)||c.value||"")},c=e=>{const t=Object(r["a"])("disabled"),n=Object(i["inject"])(a["a"],void 0);return Object(i["computed"])(()=>{var r,o,a;return null!==(r=null!==(o=null!==(a=t.value)&&void 0!==a?a:Object(i["unref"])(e))&&void 0!==o?o:null===n||void 0===n?void 0:n.disabled)&&void 0!==r&&r})}},"4bf3":function(e,t,n){"use strict";var r=n("c1b2"),o=n("06fa"),a=n("ce18"),i=n("5779"),s=n("a016"),c=n("a421"),l=n("7043").f,u=a(l),d=a([].push),p=r&&o((function(){var e=Object.create(null);return e[2]=2,!u(e,2)})),f=function(e){return function(t){var n,o=c(t),a=s(o),l=p&&null===i(o),f=a.length,h=0,m=[];while(f>h)n=a[h++],r&&!(l?n in o:u(o,n))||d(m,e?[n,o[n]]:o[n]);return m}};e.exports={entries:f(!0),values:f(!1)}},"4c06":function(e,t,n){"use strict";var r=n("a5eb"),o=n("e460").left,a=n("9f61"),i=n("f772"),s=n("d68b"),c=!s&&i>79&&i<83,l=c||!a("reduce");r({target:"Array",proto:!0,forced:l},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},"4c19":function(e,t,n){"use strict";var r=n("437b"),o=n("26aa"),a=Array.prototype;e.exports=function(e){var t=e.concat;return e===a||r(a,e)&&t===a.concat?o:t}},"4c3d":function(e,t,n){"use strict";(function(t){var r=n("c532"),o=n("c8af"),a=n("387f"),i=n("cafa"),s={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function l(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}function u(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(n||JSON.stringify)(e)}var d={transitional:i,adapter:l(),transformRequest:[function(e,t){return o(t,"Accept"),o(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)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),u(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(i){if("SyntaxError"===s.name)throw a(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){d.headers[e]=r.merge(s)})),e.exports=d}).call(this,n("4362"))},"4c43":function(e,t,n){e.exports=n("03d2")},"4c52":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("3b4c"),o=n.n(r);const a=o()()},"4c91":function(e,t,n){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},"4c98":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=e.defineLocale("ar-ps",{months:"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل".split("_"),monthsShort:"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,(function(e){return n[e]})).split("").reverse().join("").replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}});return r}))},"4cb3":function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return p}));var r=n("3b4c"),o=n.n(r),a={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}},i=n("d095"),s=n("7a23");const c=e=>(t,n)=>l(t,n,Object(s["unref"])(e)),l=(e,t,n)=>Object(i["get"])(n,e,e).replace(/\{(\w+)\}/g,(e,n)=>{var r;return""+(null!==(r=null===t||void 0===t?void 0:t[n])&&void 0!==r?r:`{${n}}`)}),u=e=>({lang:Object(s["computed"])(()=>Object(s["unref"])(e).name),locale:Object(s["isRef"])(e)?e:Object(s["ref"])(e),t:c(e)}),d=o()("localeContextKey"),p=e=>{const t=e||Object(s["inject"])(d,Object(s["ref"])());return u(Object(s["computed"])(()=>t.value||a))}},"4d3a":function(e,t,n){e.exports=n("a2e8")},"4d64":function(e,t,n){"use strict";var r=n("fc6a"),o=n("23cb"),a=n("07fa"),i=function(e){return function(t,n,i){var s=r(t),c=a(s);if(0===c)return!e&&-1;var l,u=o(i,c);if(e&&n!==n){while(c>u)if(l=s[u++],l!==l)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"4d8d":function(e,t,n){"use strict";var r=n("a5eb"),o=n("9883"),a=n("f868"),i=n("8c12"),s=n("36b8"),c=o("URL");r({target:"URL",stat:!0,forced:!s},{parse:function(e){var t=a(arguments.length,1),n=i(e),r=t<2||void 0===arguments[1]?void 0:i(arguments[1]);try{return new c(n,r)}catch(o){return null}}})},"4e19":function(e,t,n){"use strict";var r=n("fb2d"),o=n("1301"),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(o(e)+" is not a function")}},"4e66":function(e,t,n){"use strict";var r=n("a5eb"),o=n("9883"),a=n("7042"),i=n("96ed"),s=n("baa7").CONSTRUCTOR,c=n("7ef9"),l=o("Promise"),u=a&&!s;r({target:"Promise",stat:!0,forced:a||s},{resolve:function(e){return c(u&&this===l?i:this,e)}})},"4ea1":function(e,t,n){"use strict";var r=n("ebb5"),o=n("bcbf"),a=n("07fa"),i=n("5926"),s=n("f495"),c=r.aTypedArray,l=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,d=RangeError,p=function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}(),f=p&&function(){try{new Int8Array(1)["with"](-.5,1)}catch(e){return!0}}();u("with",{with:function(e,t){var n=c(this),r=a(n),u=i(e),p=u<0?r+u:u,f=o(n)?s(t):+t;if(p>=r||p<0)throw new d("Incorrect index");for(var h=new(l(n))(r),m=0;m<r;m++)h[m]=m===p?f:n[m];return h}}["with"],!p||f)},"4f90":function(e,t,n){"use strict";var r=n("a5eb"),o=n("437b"),a=n("5779"),i=n("ec62"),s=n("dad0"),c=n("4896"),l=n("0273"),u=n("2c6c"),d=n("e12b"),p=n("56ba"),f=n("5b57"),h=n("d645"),m=n("0363"),v=m("toStringTag"),g=Error,_=[].push,b=function(e,t){var n,r=o(y,this);i?n=i(new g,r?a(this):y):(n=r?this:c(y),l(n,v,"Error")),void 0!==t&&l(n,"message",h(t)),p(n,b,n.stack,1),arguments.length>2&&d(n,arguments[2]);var s=[];return f(e,_,{that:s}),l(n,"errors",s),n};i?i(b,g):s(b,g,{name:!0});var y=b.prototype=c(g.prototype,{constructor:u(1,b),message:u(1,""),name:u(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:b})},"4fa7":function(e,t,n){"use strict";var r=n("2c0f");e.exports=/MSIE|Trident/.test(r)},"4fff":function(e,t,n){"use strict";var r=n("1875"),o=Object;e.exports=function(e){return o(r(e))}},5038:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}});return t}))},"505e":function(e,t,n){e.exports=n("17c1")},"50c4":function(e,t,n){"use strict";var r=n("5926"),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},"50dc":function(e,t,n){"use strict";var r=n("7328");e.exports=r},5107:function(e,t,n){"use strict";n("410b");var r=n("c18e");e.exports=r("Array","map")},5112:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r=n("3b4c"),o=n.n(r);const a=o()("formContextKey"),i=o()("formItemContextKey")},5120:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],r=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],o=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],a=["Do","Lu","Má","Cé","Dé","A","Sa"],i=e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:o,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return i}))},5141:function(e,t,n){"use strict";n.d(t,"a",(function(){return gs}));var r=n("7a23"),o=n("3b4c"),a=n.n(o),i=n("844d"),s=n.n(i);function c(e){return c="function"==typeof a.a&&"symbol"==typeof s.a?function(e){return typeof e}:function(e){return e&&"function"==typeof a.a&&e.constructor===a.a&&e!==a.a.prototype?"symbol":typeof e},c(e)}n("d9e2");var l=n("0dc8"),u=n.n(l),d=n("e946"),p=n.n(d),f=n("52da"),h=n.n(f),m=n("d254"),v=n.n(m);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t){if(e){var n;if("string"==typeof e)return g(e,t);var r=h()(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?v()(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}function b(e,t){var n="undefined"!=typeof a.a&&u()(e)||e["@@iterator"];if(!n){if(p()(e)||(n=_(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 i,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(c)throw i}}}}var y={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},O=function(e,t,n){var r,o=y[e];return r="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},M=O;function k(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var C={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},w={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},S={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},T={date:k({formats:C,defaultWidth:"full"}),time:k({formats:w,defaultWidth:"full"}),dateTime:k({formats:S,defaultWidth:"full"})},I=T,E={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},j=function(e,t,n,r){return E[e]},D=j;function L(e){return function(t,n){var r,o=null!==n&&void 0!==n&&n.context?String(n.context):"standalone";if("formatting"===o&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,i=null!==n&&void 0!==n&&n.width?String(n.width):a;r=e.formattingValues[i]||e.formattingValues[a]}else{var s=e.defaultWidth,c=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[c]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return r[l]}}var A={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},N={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},R={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},x={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},P={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},U={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},V=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},B={ordinalNumber:V,era:L({values:A,defaultWidth:"wide"}),quarter:L({values:N,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:L({values:R,defaultWidth:"wide"}),day:L({values:x,defaultWidth:"wide"}),dayPeriod:L({values:P,defaultWidth:"wide",formattingValues:U,defaultFormattingWidth:"wide"})},F=B;function G(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var i,s=a[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?Y(c,(function(e){return e.test(s)})):H(c,(function(e){return e.test(s)}));i=e.valueCallback?e.valueCallback(l):l,i=n.valueCallback?n.valueCallback(i):i;var u=t.slice(s.length);return{value:i,rest:u}}}function H(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Y(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function z(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],a=t.match(e.parsePattern);if(!a)return null;var i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;var s=t.slice(o.length);return{value:i,rest:s}}}var q=/^(\d+)(th|st|nd|rd)?/i,W=/\d+/i,K={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},$={any:[/^b/i,/^(a|c)/i]},J={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},X={any:[/1/i,/2/i,/3/i,/4/i]},Q={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Z={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ee={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},te={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ne={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},re={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},oe={ordinalNumber:z({matchPattern:q,parsePattern:W,valueCallback:function(e){return parseInt(e,10)}}),era:G({matchPatterns:K,defaultMatchWidth:"wide",parsePatterns:$,defaultParseWidth:"any"}),quarter:G({matchPatterns:J,defaultMatchWidth:"wide",parsePatterns:X,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:G({matchPatterns:Q,defaultMatchWidth:"wide",parsePatterns:Z,defaultParseWidth:"any"}),day:G({matchPatterns:ee,defaultMatchWidth:"wide",parsePatterns:te,defaultParseWidth:"any"}),dayPeriod:G({matchPatterns:ne,defaultMatchWidth:"any",parsePatterns:re,defaultParseWidth:"any"})},ae=oe,ie={code:"en-US",formatDistance:M,formatLong:I,formatRelative:D,localize:F,match:ae,options:{weekStartsOn:0,firstWeekContainsDate:1}},se=ie,ce=se;function le(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ue(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function de(e){ue(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===c(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function pe(e,t){ue(2,arguments);var n=de(e).getTime(),r=le(t);return new Date(n+r)}function fe(e,t){ue(2,arguments);var n=le(t);return pe(e,-n)}function he(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var me=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ve=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ge=function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return me(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",me(o,t)).replace("{{time}}",ve(a,t))},_e={p:ve,P:ge},be=_e;function ye(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Oe=["D","DD"],Me=["YY","YYYY"];function ke(e){return-1!==Oe.indexOf(e)}function Ce(e){return-1!==Me.indexOf(e)}function we(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}function Se(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Te=n("acf5"),Ie=n.n(Te),Ee=n("2d80"),je=n.n(Ee),De=n("8c96"),Le=n.n(De),Ae=n("78b2"),Ne=n.n(Ae);function Re(e,t){var n;return Re=Le.a?Ne()(n=Le.a).call(n):function(e,t){return e.__proto__=t,e},Re(e,t)}function xe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Ie()(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),je()(e,"prototype",{writable:!1}),t&&Re(e,t)}var Pe=n("c90a"),Ue=n.n(Pe),Ve=n("cca4"),Be=n.n(Ve);function Fe(e){var t;return Fe=Le.a?Ne()(t=Be.a).call(t):function(e){return e.__proto__||Be()(e)},Fe(e)}function Ge(){try{var e=!Boolean.prototype.valueOf.call(Ue()(Boolean,[],(function(){})))}catch(e){}return(Ge=function(){return!!e})()}function He(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Se(e)}function Ye(e){var t=Ge();return function(){var n,r=Fe(e);if(t){var o=Fe(this).constructor;n=Ue()(r,arguments,o)}else n=r.apply(this,arguments);return He(this,n)}}function ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var qe=n("e60a"),We=n.n(qe);function Ke(e,t){if("object"!=c(e)||!e)return e;var n=e[We.a];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function $e(e){var t=Ke(e,"string");return"symbol"==c(t)?t:t+""}function Je(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),je()(e,$e(r.key),r)}}function Xe(e,t,n){return t&&Je(e.prototype,t),n&&Je(e,n),je()(e,"prototype",{writable:!1}),e}function Qe(e,t,n){return(t=$e(t))in e?je()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ze=10,et=function(){function e(){ze(this,e),Qe(this,"priority",void 0),Qe(this,"subPriority",0)}return Xe(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),tt=function(e){xe(n,e);var t=Ye(n);function n(e,r,o,a,i){var s;return ze(this,n),s=t.call(this),s.value=e,s.validateValue=r,s.setValue=o,s.priority=a,i&&(s.subPriority=i),s}return Xe(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(et),nt=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",Ze),Qe(Se(e),"subPriority",-1),e}return Xe(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(et),rt=function(){function e(){ze(this,e),Qe(this,"incompatibleTokens",void 0),Qe(this,"priority",void 0),Qe(this,"subPriority",void 0)}return Xe(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new tt(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),ot=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",140),Qe(Se(e),"incompatibleTokens",["R","u","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(rt),at=(Math.pow(10,8),6e4),it=36e5,st=1e3,ct={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},lt={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ut(e,t){return e?{value:t(e.value),rest:e.rest}:e}function dt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function pt(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*it+a*at+i*st),rest:t.slice(n[0].length)}}function ft(e){return dt(ct.anyDigitsSigned,e)}function ht(e,t){switch(e){case 1:return dt(ct.singleDigit,t);case 2:return dt(ct.twoDigits,t);case 3:return dt(ct.threeDigits,t);case 4:return dt(ct.fourDigits,t);default:return dt(new RegExp("^\\d{1,"+e+"}"),t)}}function mt(e,t){switch(e){case 1:return dt(ct.singleDigitSigned,t);case 2:return dt(ct.twoDigitsSigned,t);case 3:return dt(ct.threeDigitsSigned,t);case 4:return dt(ct.fourDigitsSigned,t);default:return dt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function vt(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function gt(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var a=o+50,i=100*Math.floor(a/100),s=e>=a%100;n=e+i-(s?100:0)}return r?n:1-n}function _t(e){return e%400===0||e%4===0&&e%100!==0}var bt=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",130),Qe(Se(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return ut(ht(4,e),r);case"yo":return ut(n.ordinalNumber(e,{unit:"year"}),r);default:return ut(ht(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=gt(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(rt),yt={};function Ot(){return yt}function Mt(e,t){var n,r,o,a,i,s,c,l;ue(1,arguments);var u=Ot(),d=le(null!==(n=null!==(r=null!==(o=null!==(a=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==a?a:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=de(e),f=p.getUTCDay(),h=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function kt(e,t){var n,r,o,a,i,s,c,l;ue(1,arguments);var u=de(e),d=u.getUTCFullYear(),p=Ot(),f=le(null!==(n=null!==(r=null!==(o=null!==(a=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(c=p.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,f),h.setUTCHours(0,0,0,0);var m=Mt(h,t),v=new Date(0);v.setUTCFullYear(d,0,f),v.setUTCHours(0,0,0,0);var g=Mt(v,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=g.getTime()?d:d-1}var Ct=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",130),Qe(Se(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return ut(ht(4,e),r);case"Yo":return ut(n.ordinalNumber(e,{unit:"year"}),r);default:return ut(ht(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var o=kt(e,r);if(n.isTwoDigitYear){var a=gt(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Mt(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Mt(e,r)}}]),n}(rt);function wt(e){ue(1,arguments);var t=1,n=de(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}var St=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",130),Qe(Se(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t){return mt("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),wt(r)}}]),n}(rt),Tt=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",130),Qe(Se(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t){return mt("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(rt),It=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",120),Qe(Se(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return ht(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(rt),Et=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",120),Qe(Se(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return ht(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(rt),jt=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Qe(Se(e),"priority",110),e}return Xe(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return ut(dt(ct.month,e),r);case"MM":return ut(ht(2,e),r);case"Mo":return ut(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(rt),Dt=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",110),Qe(Se(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return ut(dt(ct.month,e),r);case"LL":return ut(ht(2,e),r);case"Lo":return ut(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(rt);function Lt(e,t){var n,r,o,a,i,s,c,l;ue(1,arguments);var u=Ot(),d=le(null!==(n=null!==(r=null!==(o=null!==(a=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1),p=kt(e,t),f=new Date(0);f.setUTCFullYear(p,0,d),f.setUTCHours(0,0,0,0);var h=Mt(f,t);return h}var At=6048e5;function Nt(e,t){ue(1,arguments);var n=de(e),r=Mt(n,t).getTime()-Lt(n,t).getTime();return Math.round(r/At)+1}function Rt(e,t,n){ue(2,arguments);var r=de(e),o=le(t),a=Nt(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}var xt=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",100),Qe(Se(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return dt(ct.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return Mt(Rt(e,n,r),r)}}]),n}(rt);function Pt(e){ue(1,arguments);var t=de(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=wt(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var i=wt(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Ut(e){ue(1,arguments);var t=Pt(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=wt(n);return r}var Vt=6048e5;function Bt(e){ue(1,arguments);var t=de(e),n=wt(t).getTime()-Ut(t).getTime();return Math.round(n/Vt)+1}function Ft(e,t){ue(2,arguments);var n=de(e),r=le(t),o=Bt(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}var Gt=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",100),Qe(Se(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return dt(ct.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return wt(Ft(e,n))}}]),n}(rt),Ht=[31,28,31,30,31,30,31,31,30,31,30,31],Yt=[31,29,31,30,31,30,31,31,30,31,30,31],zt=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",90),Qe(Se(e),"subPriority",1),Qe(Se(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return dt(ct.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){var n=e.getUTCFullYear(),r=_t(n),o=e.getUTCMonth();return r?t>=1&&t<=Yt[o]:t>=1&&t<=Ht[o]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(rt),qt=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",90),Qe(Se(e),"subpriority",1),Qe(Se(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return dt(ct.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){var n=e.getUTCFullYear(),r=_t(n);return r?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(rt);function Wt(e,t,n){var r,o,a,i,s,c,l,u;ue(2,arguments);var d=Ot(),p=le(null!==(r=null!==(o=null!==(a=null!==(i=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==i?i:null===n||void 0===n||null===(s=n.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==a?a:d.weekStartsOn)&&void 0!==o?o:null===(l=d.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=de(e),h=le(t),m=f.getUTCDay(),v=h%7,g=(v+7)%7,_=(g<p?7:0)+h-m;return f.setUTCDate(f.getUTCDate()+_),f}var Kt=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",90),Qe(Se(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return e=Wt(e,n,r),e.setUTCHours(0,0,0,0),e}}]),n}(rt),$t=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",90),Qe(Se(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return ut(ht(t.length,e),o);case"eo":return ut(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return e=Wt(e,n,r),e.setUTCHours(0,0,0,0),e}}]),n}(rt),Jt=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",90),Qe(Se(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return ut(ht(t.length,e),o);case"co":return ut(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return e=Wt(e,n,r),e.setUTCHours(0,0,0,0),e}}]),n}(rt);function Xt(e,t){ue(2,arguments);var n=le(t);n%7===0&&(n-=7);var r=1,o=de(e),a=o.getUTCDay(),i=n%7,s=(i+7)%7,c=(s<r?7:0)+n-a;return o.setUTCDate(o.getUTCDate()+c),o}var Qt=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",90),Qe(Se(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return ht(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return ut(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return ut(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return ut(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiii":default:return ut(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return e=Xt(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(rt),Zt=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",80),Qe(Se(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(vt(n),0,0,0),e}}]),n}(rt),en=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",80),Qe(Se(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(vt(n),0,0,0),e}}]),n}(rt),tn=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",80),Qe(Se(e),"incompatibleTokens",["a","b","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(vt(n),0,0,0),e}}]),n}(rt),nn=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",70),Qe(Se(e),"incompatibleTokens",["H","K","k","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return dt(ct.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(rt),rn=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",70),Qe(Se(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return dt(ct.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(rt),on=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",70),Qe(Se(e),"incompatibleTokens",["h","H","k","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return dt(ct.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(rt),an=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",70),Qe(Se(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return dt(ct.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(rt),sn=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",60),Qe(Se(e),"incompatibleTokens",["t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return dt(ct.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(rt),cn=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",50),Qe(Se(e),"incompatibleTokens",["t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return dt(ct.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return ht(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(rt),ln=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",30),Qe(Se(e),"incompatibleTokens",["t","T"]),e}return Xe(n,[{key:"parse",value:function(e,t){var n=function(e){return Math.floor(e*Math.pow(10,3-t.length))};return ut(ht(t.length,e),n)}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(rt),un=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",10),Qe(Se(e),"incompatibleTokens",["t","T","x"]),e}return Xe(n,[{key:"parse",value:function(e,t){switch(t){case"X":return pt(lt.basicOptionalMinutes,e);case"XX":return pt(lt.basic,e);case"XXXX":return pt(lt.basicOptionalSeconds,e);case"XXXXX":return pt(lt.extendedOptionalSeconds,e);case"XXX":default:return pt(lt.extended,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(rt),dn=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",10),Qe(Se(e),"incompatibleTokens",["t","T","X"]),e}return Xe(n,[{key:"parse",value:function(e,t){switch(t){case"x":return pt(lt.basicOptionalMinutes,e);case"xx":return pt(lt.basic,e);case"xxxx":return pt(lt.basicOptionalSeconds,e);case"xxxxx":return pt(lt.extendedOptionalSeconds,e);case"xxx":default:return pt(lt.extended,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(rt),pn=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",40),Qe(Se(e),"incompatibleTokens","*"),e}return Xe(n,[{key:"parse",value:function(e){return ft(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(rt),fn=function(e){xe(n,e);var t=Ye(n);function n(){var e;ze(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),Qe(Se(e),"priority",20),Qe(Se(e),"incompatibleTokens","*"),e}return Xe(n,[{key:"parse",value:function(e){return ft(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(rt),hn={G:new ot,y:new bt,Y:new Ct,R:new St,u:new Tt,Q:new It,q:new Et,M:new jt,L:new Dt,w:new xt,I:new Gt,d:new zt,D:new qt,E:new Kt,e:new $t,c:new Jt,i:new Qt,a:new Zt,b:new en,B:new tn,h:new nn,H:new rn,K:new on,k:new an,m:new sn,s:new cn,S:new ln,X:new un,x:new dn,t:new pn,T:new fn},mn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gn=/^'([^]*?)'?$/,_n=/''/g,bn=/\S/,yn=/[a-zA-Z]/;function On(e,t,n,r){var o,a,i,s,l,u,d,p,f,h,m,v,g,_,y,O,M,k;ue(3,arguments);var C=String(e),w=String(t),S=Ot(),T=null!==(o=null!==(a=null===r||void 0===r?void 0:r.locale)&&void 0!==a?a:S.locale)&&void 0!==o?o:ce;if(!T.match)throw new RangeError("locale must contain match property");var I=le(null!==(i=null!==(s=null!==(l=null!==(u=null===r||void 0===r?void 0:r.firstWeekContainsDate)&&void 0!==u?u:null===r||void 0===r||null===(d=r.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==l?l:S.firstWeekContainsDate)&&void 0!==s?s:null===(f=S.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(I>=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var E=le(null!==(m=null!==(v=null!==(g=null!==(_=null===r||void 0===r?void 0:r.weekStartsOn)&&void 0!==_?_:null===r||void 0===r||null===(y=r.locale)||void 0===y||null===(O=y.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==g?g:S.weekStartsOn)&&void 0!==v?v:null===(M=S.locale)||void 0===M||null===(k=M.options)||void 0===k?void 0:k.weekStartsOn)&&void 0!==m?m:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===w)return""===C?de(n):new Date(NaN);var j,D={firstWeekContainsDate:I,weekStartsOn:E,locale:T},L=[new nt],A=w.match(vn).map((function(e){var t=e[0];if(t in be){var n=be[t];return n(e,T.formatLong)}return e})).join("").match(mn),N=[],R=b(A);try{var x=function(){var t=j.value;null!==r&&void 0!==r&&r.useAdditionalWeekYearTokens||!Ce(t)||we(t,w,e),null!==r&&void 0!==r&&r.useAdditionalDayOfYearTokens||!ke(t)||we(t,w,e);var n=t[0],o=hn[n];if(o){var a=o.incompatibleTokens;if(Array.isArray(a)){var i=N.find((function(e){return a.includes(e.token)||e.token===n}));if(i)throw new RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&N.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));N.push({token:n,fullToken:t});var s=o.run(C,t,T.match,D);if(!s)return{v:new Date(NaN)};L.push(s.setter),C=s.rest}else{if(n.match(yn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=Mn(t)),0!==C.indexOf(t))return{v:new Date(NaN)};C=C.slice(t.length)}};for(R.s();!(j=R.n()).done;){var P=x();if("object"===c(P))return P.v}}catch(q){R.e(q)}finally{R.f()}if(C.length>0&&bn.test(C))return new Date(NaN);var U=L.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return L.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),V=de(n);if(isNaN(V.getTime()))return new Date(NaN);var B,F=fe(V,ye(V)),G={},H=b(U);try{for(H.s();!(B=H.n()).done;){var Y=B.value;if(!Y.validate(F,D))return new Date(NaN);var z=Y.set(F,G,D);Array.isArray(z)?(F=z[0],he(G,z[1])):F=z}}catch(q){H.e(q)}finally{H.f()}return F}function Mn(e){return e.match(gn)[1].replace(_n,"'")}function kn(e){return ue(1,arguments),e instanceof Date||"object"===c(e)&&"[object Date]"===Object.prototype.toString.call(e)}function Cn(e){if(ue(1,arguments),!kn(e)&&"number"!==typeof e)return!1;var t=de(e);return!isNaN(Number(t))}function wn(e){ue(1,arguments);var t=de(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function Sn(e,t){ue(2,arguments);var n=de(e),r=le(t),o=n.getFullYear(),a=n.getDate(),i=new Date(0);i.setFullYear(o,r,15),i.setHours(0,0,0,0);var s=wn(i);return n.setMonth(r,Math.min(a,s)),n}function Tn(e,t){if(ue(2,arguments),"object"!==c(t)||null===t)throw new RangeError("values parameter must be an object");var n=de(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=Sn(n,t.month)),null!=t.date&&n.setDate(le(t.date)),null!=t.hours&&n.setHours(le(t.hours)),null!=t.minutes&&n.setMinutes(le(t.minutes)),null!=t.seconds&&n.setSeconds(le(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(le(t.milliseconds)),n)}function In(e,t){ue(2,arguments);var n=de(e),r=le(t);return n.setHours(r),n}function En(e,t){ue(2,arguments);var n=de(e),r=le(t);return n.setMinutes(r),n}function jn(e,t){ue(2,arguments);var n=de(e),r=le(t);return n.setSeconds(r),n}function Dn(e,t){ue(2,arguments);var n=de(e),r=le(t);return n.setMilliseconds(r),n}function Ln(e,t){ue(2,arguments);var n=de(e),r=de(t);return n.getTime()<r.getTime()}function An(e,t){ue(2,arguments);var n=de(e),r=de(t);return n.getTime()===r.getTime()}function Nn(e,t){ue(2,arguments);var n=de(e),r=de(t);return n.getTime()>r.getTime()}function Rn(e){ue(1,arguments);var t=de(e),n=t.getHours();return n}function xn(e){ue(1,arguments);var t=de(e),n=t.getMinutes();return n}function Pn(e){ue(1,arguments);var t=de(e),n=t.getSeconds();return n}var Un=864e5;function Vn(e){ue(1,arguments);var t=de(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/Un)+1}function Bn(e,t){var n=e<0?"-":"",r=Math.abs(e).toString();while(r.length<t)r="0"+r;return n+r}var Fn={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return Bn("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Bn(n+1,2)},d:function(e,t){return Bn(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Bn(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Bn(e.getUTCHours(),t.length)},m:function(e,t){return Bn(e.getUTCMinutes(),t.length)},s:function(e,t){return Bn(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),o=Math.floor(r*Math.pow(10,n-3));return Bn(o,t.length)}},Gn=Fn,Hn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Yn={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Gn.y(e,t)},Y:function(e,t,n,r){var o=kt(e,r),a=o>0?o:1-o;if("YY"===t){var i=a%100;return Bn(i,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):Bn(a,t.length)},R:function(e,t){var n=Pt(e);return Bn(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return Bn(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Bn(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Bn(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return Gn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Bn(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=Nt(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):Bn(o,t.length)},I:function(e,t,n){var r=Bt(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Bn(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Gn.d(e,t)},D:function(e,t,n){var r=Vn(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Bn(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Bn(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Bn(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return Bn(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours(),o=r/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?Hn.noon:0===o?Hn.midnight:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?Hn.evening:o>=12?Hn.afternoon:o>=4?Hn.morning:Hn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Gn.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Gn.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Bn(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Bn(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Gn.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Gn.s(e,t)},S:function(e,t){return Gn.S(e,t)},X:function(e,t,n,r){var o=r._originalDate||e,a=o.getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return qn(a);case"XXXX":case"XX":return Wn(a);case"XXXXX":case"XXX":default:return Wn(a,":")}},x:function(e,t,n,r){var o=r._originalDate||e,a=o.getTimezoneOffset();switch(t){case"x":return qn(a);case"xxxx":case"xx":return Wn(a);case"xxxxx":case"xxx":default:return Wn(a,":")}},O:function(e,t,n,r){var o=r._originalDate||e,a=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+zn(a,":");case"OOOO":default:return"GMT"+Wn(a,":")}},z:function(e,t,n,r){var o=r._originalDate||e,a=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+zn(a,":");case"zzzz":default:return"GMT"+Wn(a,":")}},t:function(e,t,n,r){var o=r._originalDate||e,a=Math.floor(o.getTime()/1e3);return Bn(a,t.length)},T:function(e,t,n,r){var o=r._originalDate||e,a=o.getTime();return Bn(a,t.length)}};function zn(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;if(0===a)return n+String(o);var i=t||"";return n+String(o)+i+Bn(a,2)}function qn(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Bn(Math.abs(e)/60,2)}return Wn(e,t)}function Wn(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),a=Bn(Math.floor(o/60),2),i=Bn(o%60,2);return r+a+n+i}var Kn=Yn,$n=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Jn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xn=/^'([^]*?)'?$/,Qn=/''/g,Zn=/[a-zA-Z]/;function er(e,t,n){var r,o,a,i,s,c,l,u,d,p,f,h,m,v,g,_,b,y;ue(2,arguments);var O=String(t),M=Ot(),k=null!==(r=null!==(o=null===n||void 0===n?void 0:n.locale)&&void 0!==o?o:M.locale)&&void 0!==r?r:ce,C=le(null!==(a=null!==(i=null!==(s=null!==(c=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null===n||void 0===n||null===(l=n.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:M.firstWeekContainsDate)&&void 0!==i?i:null===(d=M.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==a?a:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var w=le(null!==(f=null!==(h=null!==(m=null!==(v=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==v?v:null===n||void 0===n||null===(g=n.locale)||void 0===g||null===(_=g.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==m?m:M.weekStartsOn)&&void 0!==h?h:null===(b=M.locale)||void 0===b||null===(y=b.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==f?f:0);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var S=de(e);if(!Cn(S))throw new RangeError("Invalid time value");var T=ye(S),I=fe(S,T),E={firstWeekContainsDate:C,weekStartsOn:w,locale:k,_originalDate:S},j=O.match(Jn).map((function(e){var t=e[0];if("p"===t||"P"===t){var n=be[t];return n(e,k.formatLong)}return e})).join("").match($n).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return tr(r);var a=Kn[o];if(a)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!Ce(r)||we(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!ke(r)||we(r,t,String(e)),a(I,r,k.localize,E);if(o.match(Zn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return j}function tr(e){var t=e.match(Xn);return t?t[1].replace(Qn,"'"):e}function nr(e){ue(1,arguments);var t=de(e),n=t.getMonth();return n}function rr(e){ue(1,arguments);var t=de(e),n=t.getDay();return n}function or(e){return ue(1,arguments),de(e).getFullYear()}function ar(e,t){var n;ue(1,arguments);var r=le(null!==(n=null===t||void 0===t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,a=ur(e);if(a.date){var i=dr(a.date,r);o=pr(i.restDateString,i.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s,c=o.getTime(),l=0;if(a.time&&(l=hr(a.time),isNaN(l)))return new Date(NaN);if(!a.timezone){var u=new Date(c+l),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return s=vr(a.timezone),isNaN(s)?new Date(NaN):new Date(c+l+s)}var ir={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},sr=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,cr=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,lr=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ur(e){var t,n={},r=e.split(ir.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],ir.timeZoneDelimiter.test(n.date)&&(n.date=e.split(ir.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=ir.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function dr(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function pr(e,t){if(null===t)return new Date(NaN);var n=e.match(sr);if(!n)return new Date(NaN);var r=!!n[4],o=fr(n[1]),a=fr(n[2])-1,i=fr(n[3]),s=fr(n[4]),c=fr(n[5])-1;if(r)return Mr(t,s,c)?gr(t,s,c):new Date(NaN);var l=new Date(0);return yr(t,a,i)&&Or(t,o)?(l.setUTCFullYear(t,a,Math.max(o,i)),l):new Date(NaN)}function fr(e){return e?parseInt(e):1}function hr(e){var t=e.match(cr);if(!t)return NaN;var n=mr(t[1]),r=mr(t[2]),o=mr(t[3]);return kr(n,r,o)?n*it+r*at+1e3*o:NaN}function mr(e){return e&&parseFloat(e.replace(",","."))||0}function vr(e){if("Z"===e)return 0;var t=e.match(lr);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return Cr(r,o)?n*(r*it+o*at):NaN}function gr(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}var _r=[31,null,31,30,31,30,31,31,30,31,30,31];function br(e){return e%400===0||e%4===0&&e%100!==0}function yr(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(_r[t]||(br(e)?29:28))}function Or(e,t){return t>=1&&t<=(br(e)?366:365)}function Mr(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function kr(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Cr(e,t){return t>=0&&t<=59}function wr(e,t){var n,r,o,a,i,s,c,l;ue(1,arguments);var u=Ot(),d=le(null!==(n=null!==(r=null!==(o=null!==(a=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==a?a:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=de(e),f=p.getDay(),h=(f<d?7:0)+f-d;return p.setDate(p.getDate()-h),p.setHours(0,0,0,0),p}function Sr(e,t){var n,r,o,a,i,s,c,l;ue(1,arguments);var u=Ot(),d=le(null!==(n=null!==(r=null!==(o=null!==(a=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==a?a:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=de(e),f=p.getDay(),h=6+(f<d?-7:0)-(f-d);return p.setDate(p.getDate()+h),p.setHours(23,59,59,999),p}function Tr(e,t){ue(2,arguments);var n=de(e),r=le(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Ir(e,t){ue(2,arguments);var n=de(e),r=le(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function Er(e,t){ue(2,arguments);var n=de(e),r=le(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),a=new Date(n.getTime());a.setMonth(n.getMonth()+r+1,0);var i=a.getDate();return o>=i?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}function jr(e,t){if(ue(2,arguments),!t||"object"!==c(t))return new Date(NaN);var n=t.years?le(t.years):0,r=t.months?le(t.months):0,o=t.weeks?le(t.weeks):0,a=t.days?le(t.days):0,i=t.hours?le(t.hours):0,s=t.minutes?le(t.minutes):0,l=t.seconds?le(t.seconds):0,u=de(e),d=r||n?Er(u,r+12*n):u,p=a||o?Ir(d,a+7*o):d,f=s+60*i,h=l+60*f,m=1e3*h,v=new Date(p.getTime()+m);return v}function Dr(e,t){var n;ue(1,arguments);var r=e||{},o=de(r.start),a=de(r.end),i=a.getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var s=[],c=o;c.setHours(0,0,0,0);var l=Number(null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");while(c.getTime()<=i)s.push(de(c)),c.setDate(c.getDate()+l),c.setHours(0,0,0,0);return s}function Lr(e){ue(1,arguments);var t=de(e);return t.setHours(0,0,0,0),t}var Ar=864e5;function Nr(e,t){ue(2,arguments);var n=Lr(e),r=Lr(t),o=n.getTime()-ye(n),a=r.getTime()-ye(r);return Math.round((o-a)/Ar)}function Rr(e,t){var n,r,o,a,i,s,c,l;ue(1,arguments);var u=de(e),d=u.getFullYear(),p=Ot(),f=le(null!==(n=null!==(r=null!==(o=null!==(a=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(c=p.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setFullYear(d+1,0,f),h.setHours(0,0,0,0);var m=wr(h,t),v=new Date(0);v.setFullYear(d,0,f),v.setHours(0,0,0,0);var g=wr(v,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=g.getTime()?d:d-1}function xr(e,t){var n,r,o,a,i,s,c,l;ue(1,arguments);var u=Ot(),d=le(null!==(n=null!==(r=null!==(o=null!==(a=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null===t||void 0===t||null===(i=t.locale)||void 0===i||null===(s=i.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1),p=Rr(e,t),f=new Date(0);f.setFullYear(p,0,d),f.setHours(0,0,0,0);var h=wr(f,t);return h}var Pr=6048e5;function Ur(e,t){ue(1,arguments);var n=de(e),r=wr(n,t).getTime()-xr(n,t).getTime();return Math.round(r/Pr)+1}function Vr(e){return ue(1,arguments),wr(e,{weekStartsOn:1})}function Br(e){ue(1,arguments);var t=de(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var o=Vr(r),a=new Date(0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);var i=Vr(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Fr(e){ue(1,arguments);var t=Br(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=Vr(n);return r}var Gr=6048e5;function Hr(e){ue(1,arguments);var t=de(e),n=Vr(t).getTime()-Fr(t).getTime();return Math.round(n/Gr)+1}function Yr(e,t){ue(2,arguments);var n=le(t);return Er(e,-n)}function zr(e,t){ue(2,arguments);var n=le(t);return Er(e,12*n)}function qr(e,t){ue(2,arguments);var n=le(t);return zr(e,-n)}function Wr(e,t){ue(2,arguments);var n=le(t);return Ir(e,-n)}function Kr(e,t){if(ue(2,arguments),!t||"object"!==c(t))return new Date(NaN);var n=t.years?le(t.years):0,r=t.months?le(t.months):0,o=t.weeks?le(t.weeks):0,a=t.days?le(t.days):0,i=t.hours?le(t.hours):0,s=t.minutes?le(t.minutes):0,l=t.seconds?le(t.seconds):0,u=Yr(e,r+12*n),d=Wr(u,a+7*o),p=s+60*i,f=l+60*p,h=1e3*f,m=new Date(d.getTime()-h);return m}function $r(){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Object(r["createElementVNode"])("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),Object(r["createElementVNode"])("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),Object(r["createElementVNode"])("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),Object(r["createElementVNode"])("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}function Jr(){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Object(r["createElementVNode"])("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),Object(r["createElementVNode"])("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function Xr(){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Object(r["createElementVNode"])("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function Qr(){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Object(r["createElementVNode"])("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}function Zr(){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Object(r["createElementVNode"])("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),Object(r["createElementVNode"])("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}function eo(){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Object(r["createElementVNode"])("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function to(){return Object(r["openBlock"])(),Object(r["createElementBlock"])("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[Object(r["createElementVNode"])("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}const no=(e,t,n,r,o)=>{const a=On(e,t.slice(0,e.length),new Date);return Cn(a)&&kn(a)?r||o?a:Tn(a,{hours:+n.hours,minutes:+(null==n?void 0:n.minutes),seconds:+(null==n?void 0:n.seconds),milliseconds:0}):null},ro=(e,t,n,r,o)=>{const a=Array.isArray(n)?n[0]:n;if("string"==typeof t)return no(e,t,a,r,o);if(Array.isArray(t)){let n=null;for(const i of t)if(n=no(e,i,a,r,o),n)break;return n}return"function"==typeof t?t(e):null},oo=e=>e?new Date(e):new Date,ao=(e,t,n)=>{if(t){const t=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),o=e.getHours().toString().padStart(2,"0"),a=e.getMinutes().toString().padStart(2,"0"),i=n?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${t}-${r}T${o}:${a}:${i}.000Z`}const r=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(r).toISOString()},io=e=>{let t=oo(JSON.parse(JSON.stringify(e)));return t=In(t,0),t=En(t,0),t=jn(t,0),t=Dn(t,0),t},so=(e,t,n,r)=>{let o=e?oo(e):oo();return(t||0===t)&&(o=In(o,+t)),(n||0===n)&&(o=En(o,+n)),(r||0===r)&&(o=jn(o,+r)),Dn(o,0)},co=(e,t)=>!(!e||!t)&&Ln(io(e),io(t)),lo=(e,t)=>!(!e||!t)&&An(io(e),io(t)),uo=(e,t)=>!(!e||!t)&&Nn(io(e),io(t)),po=(e,t,n)=>e&&e[0]&&e[1]?uo(n,e[0])&&co(n,e[1]):!!(e&&e[0]&&t)&&(uo(n,e[0])&&co(n,t)||co(n,e[0])&&uo(n,t)),fo=e=>{const t=Tn(new Date(e),{date:1});return io(t)},ho=(e,t,n)=>t&&(n||0===n)?Object.fromEntries(["hours","minutes","seconds"].map(r=>r===t?[r,n]:[r,isNaN(+e[r])?void 0:+e[r]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},mo=e=>({hours:Rn(e),minutes:xn(e),seconds:Pn(e)}),vo=Object(r["reactive"])({menuFocused:!1,shiftKeyInMenu:!1}),go=()=>{const e=e=>{vo.menuFocused=e},t=e=>{vo.shiftKeyInMenu!==e&&(vo.shiftKeyInMenu=e)};return{control:Object(r["computed"])(()=>({shiftKeyInMenu:vo.shiftKeyInMenu,menuFocused:vo.menuFocused})),setMenuFocused:e,setShiftKey:t}};function _o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bo={exports:{}};(function(e){function t(e){return e&&e.__esModule?e:{default:e}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(bo);var yo=bo.exports,Oo={exports:{}};(function(e,t){function n(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default})(Oo,Oo.exports);var Mo=Oo.exports;const ko=_o(Mo);var Co={exports:{}};(function(e,t){function n(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default})(Co,Co.exports);var wo=Co.exports;const So=_o(wo);function To(e,t){var n=Lo(t);return n.formatToParts?Eo(n,e):jo(n,e)}var Io={year:0,month:1,day:2,hour:3,minute:4,second:5};function Eo(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o<n.length;o++){var a=Io[n[o].type];a>=0&&(r[a]=parseInt(n[o].value,10))}return r}catch(i){if(i instanceof RangeError)return[NaN];throw i}}function jo(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var Do={};function Lo(e){if(!Do[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t;Do[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Do[e]}function Ao(e,t,n,r,o,a,i){var s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,o,a,i),s}var No=36e5,Ro=6e4,xo={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function Po(e,t,n){var r,o,a;if(!e||(r=xo.timezoneZ.exec(e),r))return 0;if(r=xo.timezoneHH.exec(e),r)return a=parseInt(r[1],10),Fo(a)?-a*No:NaN;if(r=xo.timezoneHHMM.exec(e),r){a=parseInt(r[1],10);var i=parseInt(r[2],10);return Fo(a,i)?(o=Math.abs(a)*No+i*Ro,a>0?-o:o):NaN}if(Ho(e)){t=new Date(t||Date.now());var s=n?t:Uo(t),c=Vo(s,e),l=n?c:Bo(t,c,e);return-l}return NaN}function Uo(e){return Ao(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Vo(e,t){var n=To(e,t),r=Ao(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),a=o%1e3;return o-=a>=0?a:1e3+a,r-o}function Bo(e,t,n){var r=e.getTime(),o=r-t,a=Vo(new Date(o),n);if(t===a)return t;o-=a-t;var i=Vo(new Date(o),n);return a===i?a:Math.max(a,i)}function Fo(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var Go={};function Ho(e){if(Go[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Go[e]=!0,!0}catch{return!1}}var Yo=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const zo=Yo;var qo=36e5,Wo=6e4,Ko=2,$o={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:zo};function Jo(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},r=null==n.additionalDigits?Ko:ko(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o=Xo(e),a=Qo(o.date,r),i=a.year,s=a.restDateString,c=Zo(s,i);if(isNaN(c))return new Date(NaN);if(c){var l,u=c.getTime(),d=0;if(o.time&&(d=ea(o.time),isNaN(d)))return new Date(NaN);if(o.timeZone||n.timeZone){if(l=Po(o.timeZone||n.timeZone,new Date(u+d)),isNaN(l))return new Date(NaN)}else l=So(new Date(u+d)),l=So(new Date(u+d+l));return new Date(u+d+l)}return new Date(NaN)}function Xo(e){var t,n={},r=$o.dateTimePattern.exec(e);if(r?(n.date=r[1],t=r[3]):(r=$o.datePattern.exec(e),r?(n.date=r[1],t=r[2]):(n.date=null,t=e)),t){var o=$o.timeZone.exec(t);o?(n.time=t.replace(o[1],""),n.timeZone=o[1].trim()):n.time=t}return n}function Qo(e,t){var n,r=$o.YYY[t],o=$o.YYYYY[t];if(n=$o.YYYY.exec(e)||o.exec(e),n){var a=n[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(n=$o.YY.exec(e)||r.exec(e),n){var i=n[1];return{year:100*parseInt(i,10),restDateString:e.slice(i.length)}}return{year:null}}function Zo(e,t){if(null===t)return null;var n,r,o,a;if(0===e.length)return r=new Date(0),r.setUTCFullYear(t),r;if(n=$o.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,aa(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=$o.DDD.exec(e),n){r=new Date(0);var i=parseInt(n[1],10);return ia(t,i)?(r.setUTCFullYear(t,0,i),r):new Date(NaN)}if(n=$o.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return aa(t,o,s)?(r.setUTCFullYear(t,o,s),r):new Date(NaN)}if(n=$o.Www.exec(e),n)return a=parseInt(n[1],10)-1,sa(t,a)?ta(t,a):new Date(NaN);if(n=$o.WwwD.exec(e),n){a=parseInt(n[1],10)-1;var c=parseInt(n[2],10)-1;return sa(t,a,c)?ta(t,a,c):new Date(NaN)}return null}function ea(e){var t,n,r;if(t=$o.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),ca(n)?n%24*qo:NaN;if(t=$o.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),ca(n,r)?n%24*qo+r*Wo:NaN;if(t=$o.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return ca(n,r,o)?n%24*qo+r*Wo+1e3*o:NaN}return null}function ta(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,a=7*t+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}var na=[31,28,31,30,31,30,31,31,30,31,30,31],ra=[31,29,31,30,31,30,31,31,30,31,30,31];function oa(e){return e%400===0||e%4===0&&e%100!==0}function aa(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=oa(e);if(r&&n>ra[t]||!r&&n>na[t])return!1}return!0}function ia(e,t){if(t<1)return!1;var n=oa(e);return!(n&&t>366||!n&&t>365)}function sa(e,t,n){return!(t<0||t>52||null!=n&&(n<0||n>6))}function ca(e,t,n){return!(null!=e&&(e<0||e>=25)||null!=t&&(t<0||t>=60)||null!=n&&(n<0||n>=60))}var la={exports:{}},ua={exports:{}};(function(e,t){function n(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default})(ua,ua.exports);var da=ua.exports;(function(e,t){var n=yo.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=n(da);function o(e){return(0,r.default)({},e)}e.exports=t.default})(la,la.exports);var pa=la.exports;const fa=_o(pa);function ha(e,t,n){var r=Jo(e,n),o=Po(t,r,!0),a=new Date(r.getTime()-o),i=new Date(0);return i.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),i.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),i}function ma(e,t,n){if("string"==typeof e&&!e.match(zo)){var r=fa(n);return r.timeZone=t,Jo(e,r)}var o=Jo(e,n),a=Ao(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()).getTime(),i=Po(t,new Date(a));return new Date(a+i)}const va=(e,t=3)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push([e[r],e[r+1],e[r+2]]);return n};function ga(e){return t=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0,2)}function _a(e){return t=>er(new Date(`2017-01-0${t}T00:00:00+00:00`),"EEEEEE",{locale:e})}const ba=(e,t,n)=>{const r=[1,2,3,4,5,6,7];let o;if(null!==e)try{o=r.map(_a(e))}catch{o=r.map(ga(t))}else o=r.map(ga(t));const a=o.slice(0,n),i=o.slice(n+1,o.length);return[o[n]].concat(...i).concat(...a)},ya=(e,t)=>{const n=[];for(let r=+e[0];r<=+e[1];r++)n.push({value:+r,text:""+r});return t?n.reverse():n},Oa=(e,t,n)=>{const r=[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>{const t=e<10?"0"+e:e;return new Date(`2017-${t}-01T00:00:00+00:00`)});if(null!==e)try{const t="long"===n?"MMMM":"MMM";return r.map((n,r)=>{const o=er(n,t,{locale:e});return{text:o.charAt(0).toUpperCase()+o.substring(1),value:r}})}catch{}const o=new Intl.DateTimeFormat(t,{month:n,timeZone:"UTC"});return r.map((e,t)=>{const n=o.format(e);return{text:n.charAt(0).toUpperCase()+n.substring(1),value:t}})},Ma=e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],ka=e=>{const t=Object(r["unref"])(e);return null!=t&&t.$el?null==t?void 0:t.$el:t},Ca=e=>Object.assign({type:"dot"},e),wa=e=>!!Array.isArray(e)&&(!!e[0]&&!!e[1]),Sa={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},Ta=e=>e,Ia=e=>0===e?e:!e||isNaN(+e)?null:+e,Ea=e=>0===e||!!e,ja=e=>null===e,Da=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},La=e=>Object.assign({menuAppear:"",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down"},e),Aa=e=>Object.assign({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:e=>"Increment "+e,decrementValue:e=>"Decrement "+e,openTpOverlay:e=>`Open ${e} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",day:()=>""},e),Na=e=>null===e?0:"boolean"==typeof e?e?2:0:+e>=2?+e:2,Ra=(e,t,n)=>e||("string"==typeof n?n:t),xa=e=>"boolean"==typeof e?!!e&&La({}):La(e),Pa=()=>({enterSubmit:!0,tabSubmit:!0,openMenu:!0,rangeSeparator:" - "}),Ua=e=>Object.assign({months:[],years:[],times:{hours:[],minutes:[],seconds:[]}},e),Va=e=>Object.assign({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0},e),Ba=e=>{const t=()=>{if(e.partialRange)return null;throw new Error(Sa.prop("partial-range"))},n=Object(r["computed"])(()=>({ariaLabels:Aa(e.ariaLabels),textInputOptions:Object.assign(Pa(),e.textInputOptions),multiCalendars:Na(e.multiCalendars),previewFormat:Ra(e.previewFormat,e.format,i()),filters:Ua(e.filters),transitions:xa(e.transitions),startTime:h(),actionRow:Va(e.actionRow)})),o=t=>{if(e.range)return t();throw new Error(Sa.prop("range"))},a=()=>{const t=e.enableSeconds?":ss":"";return e.is24?"HH:mm"+t:`hh:mm${t} aa`},i=()=>e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?a():e.weekPicker?"MM/dd/yyyy":e.yearPicker?"yyyy":e.enableTimePicker?"MM/dd/yyyy, "+a():"MM/dd/yyyy",s=(t,r)=>{if("function"==typeof e.format)return e.format(t);const o=r||i(),a=e.formatLocale?{locale:e.formatLocale}:void 0;return Array.isArray(t)?`${er(t[0],o,a)}${e.modelAuto&&!t[1]?"":n.value.textInputOptions.rangeSeparator||"-"}${t[1]?er(t[1],o,a):""}`:er(t,o,a)},c=t=>e.timezone?ha(t,e.timezone):t,l=t=>e.timezone?ma(t,e.timezone):t,u=Object(r["computed"])(()=>t=>{var n;return null==(n=e.hideNavigation)?void 0:n.includes(t)}),d=t=>{var n,r,o,a;return!(!Array.isArray(e.allowedDates)||null!=(n=e.allowedDates)&&n.length)||(null!=(r=e.arrMapValues)&&r.allowedDates?!b(t,e.arrMapValues.allowedDates):!(null==(o=e.allowedDates)||!o.length)&&!(null!=(a=e.allowedDates)&&a.some(e=>lo(c(oo(e)),c(t)))))},p=t=>{var r;const o=!!e.maxDate&&uo(c(t),c(oo(e.maxDate))),a=!!e.minDate&&co(c(t),c(oo(e.minDate))),i=b(t,null!=(r=e.arrMapValues)&&r.disabledDates?e.arrMapValues.disabledDates:e.disabledDates),s=n.value.filters.months.map(e=>+e).includes(nr(t)),l=!!e.disabledWeekDays.length&&e.disabledWeekDays.some(e=>+e===rr(t)),u=d(t),p=or(t),f=p<+e.yearRange[0]||p>+e.yearRange[1];return!(o||a||i||s||f||l||u)},f=t=>{const n={hours:Rn(oo()),minutes:xn(oo()),seconds:e.enableSeconds?Pn(oo()):0};return Object.assign(n,t)},h=()=>e.range?e.startTime&&Array.isArray(e.startTime)?[f(e.startTime[0]),f(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?f(e.startTime):null,m=e=>!p(e),v=e=>Array.isArray(e)?Cn(e[0])&&(!e[1]||Cn(e[1])):!!e&&Cn(e),g=e=>e instanceof Date?e:ar(e),_=t=>{const n=wr(c(t),{weekStartsOn:+e.weekStart}),r=Sr(c(t),{weekStartsOn:+e.weekStart});return[n,r]},b=(e,t)=>!e||(t instanceof Map?!!t.get(P(e)):Array.isArray(t)?t.some(t=>lo(c(oo(t)),c(e))):t(oo(JSON.parse(JSON.stringify(e))))),y=(e,t,n)=>{let r=e?oo(e):oo();return(t||0===t)&&(r=Sn(r,t)),n&&(r=Tr(r,n)),r},O=e=>Tn(oo(),mo(e)),M=e=>Tn(oo(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),k=(e,t,n,r)=>{if(!e)return!0;if(r){const r="max"===n?Ln(e,t):Nn(e,t),o={seconds:0,milliseconds:0};return r||An(Tn(e,o),Tn(t,o))}return"max"===n?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},C=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,w=e=>Array.isArray(e)?[e[0]?O(e[0]):null,e[1]?O(e[1]):null]:O(e),S=t=>{const n=e.maxTime?M(e.maxTime):oo(e.maxDate);return Array.isArray(t)?k(t[0],n,"max",!!e.maxDate)&&k(t[1],n,"max",!!e.maxDate):k(t,n,"max",!!e.maxDate)},T=(t,n)=>{const r=e.minTime?M(e.minTime):oo(e.minDate);return Array.isArray(t)?k(t[0],r,"min",!!e.minDate)&&k(t[1],r,"min",!!e.minDate)&&n:k(t,r,"min",!!e.minDate)&&n},I=t=>{let n=!0;if(!t||C())return!0;const r=e.minDate||e.maxDate?t:w(t);if((e.maxTime||e.maxDate)&&(n=S(Ta(r))),(e.minTime||e.minDate)&&(n=T(Ta(r),n)),e.disabledTimes){const r=Array.isArray(t)?[mo(t[0]),t[1]?mo(t[1]):void 0]:mo(t);n=!e.disabledTimes(r)}return n},E=(t,n)=>{const r=oo(JSON.parse(JSON.stringify(t))),o=[];for(let a=0;a<7;a++){const t=Ir(r,a),i=nr(t)!==n;o.push({text:e.hideOffsetDates&&i?"":t.getDate(),value:t,current:!i,classData:{}})}return o},j=(t,n)=>{switch(!0===e.sixWeeks?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[0==t,!0];case"fair":return[0==t||n>t,!0];case"append":return[!1,!1];default:return[!1,!1]}},D=(t,n)=>{const r=[],o=oo(c(new Date(n,t))),a=oo(c(new Date(n,t+1,0))),i=e.weekStart,s=wr(o,{weekStartsOn:i}),l=e=>{const n=E(e,t);if(r.push({days:n}),!r[r.length-1].days.some(e=>lo(io(e.value),io(a)))){const t=Ir(e,7);l(t)}};if(l(s),e.sixWeeks&&r.length<6){const e=6-r.length,t=(o.getDay()+7-i)%7,n=6-(a.getDay()+7-i)%7,[s,c]=j(t,n);for(let a=1;a<=e;a++)if(c?!!(a%2)==s:s){const e=r[0].days[0],t=E(Ir(e.value,-7),nr(o));r.unshift({days:t})}else{const e=r[r.length-1],t=e.days[e.days.length-1],n=E(Ir(t.value,1),nr(o));r.push({days:n})}}return r},L=(e,t,n)=>[Tn(oo(e),{date:1}),Tn(oo(),{month:t,year:n,date:1})],A=(t,n)=>co(...L(e.minDate,t,n))||lo(...L(e.minDate,t,n)),N=(t,n)=>uo(...L(e.maxDate,t,n))||lo(...L(e.maxDate,t,n)),R=(t,n,r)=>{let o=!1;return e.maxDate&&r&&N(t,n)&&(o=!0),e.minDate&&!r&&A(t,n)&&(o=!0),o},x=(t,n,r,o)=>{let a=!1;return o?e.minDate&&e.maxDate?a=R(t,n,r):(e.minDate&&A(t,n)||e.maxDate&&N(t,n))&&(a=!0):a=!0,a},P=e=>{const t=io(c(oo(e))).toISOString(),[n]=t.split("T");return n},U=e=>new Map(e.map(e=>[P(e),!0])),V=e=>Array.isArray(e)&&e.length>0;return{checkPartialRangeValue:t,checkRangeEnabled:o,getZonedDate:c,getZonedToUtc:l,formatDate:s,getDefaultPattern:i,validateDate:p,getDefaultStartTime:h,isDisabled:m,isValidDate:v,sanitizeDate:g,getWeekFromDate:_,matchDate:b,setDateMonthOrYear:y,isValidTime:I,getCalendarDays:D,validateMonthYearInRange:x,validateMaxDate:N,validateMinDate:A,assignDefaultTime:f,mapDatesArrToMap:t=>{V(e.allowedDates)&&(t.allowedDates=U(e.allowedDates)),V(e.highlight)&&(t.highlightedDates=U(e.highlight)),V(e.disabledDates)&&(t.disabledDates=U(e.disabledDates))},defaults:n,hideNavigationButtons:u}},Fa=Object(r["reactive"])({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),Ga=Object(r["ref"])(null),Ha=Object(r["ref"])(!1),Ya=Object(r["ref"])(!1),za=Object(r["ref"])(!1),qa=Object(r["ref"])(!1),Wa=Object(r["ref"])(0),Ka=Object(r["ref"])(0),$a=()=>{const e=Object(r["computed"])(()=>Ha.value?[...Fa.selectionGrid,Fa.actionRow].filter(e=>e.length):Ya.value?[...Fa.timePicker[0],...Fa.timePicker[1],qa.value?[]:[Ga.value],Fa.actionRow].filter(e=>e.length):za.value?[...Fa.monthPicker,Fa.actionRow]:[Fa.monthYear,...Fa.calendar,Fa.time,Fa.actionRow].filter(e=>e.length)),t=t=>{Wa.value=t?Wa.value+1:Wa.value-1;let n=null;e.value[Ka.value]&&(n=e.value[Ka.value][Wa.value]),n||(Wa.value=t?Wa.value-1:Wa.value+1)},n=t=>{0===Ka.value&&!t||Ka.value===e.value.length&&t||(Ka.value=t?Ka.value+1:Ka.value-1,e.value[Ka.value]?e.value[Ka.value]&&!e.value[Ka.value][Wa.value]&&0!==Wa.value&&(Wa.value=e.value[Ka.value].length-1):Ka.value=t?Ka.value-1:Ka.value+1)},o=t=>{let n=null;e.value[Ka.value]&&(n=e.value[Ka.value][Wa.value]),n?n.focus({preventScroll:!Ha.value}):Wa.value=t?Wa.value-1:Wa.value+1},a=()=>{t(!0),o(!0)},i=()=>{t(!1),o(!1)},s=()=>{n(!1),o(!0)},c=()=>{n(!0),o(!0)},l=(e,t)=>{Fa[t]=e},u=(e,t)=>{Fa[t]=e},d=()=>{Wa.value=0,Ka.value=0};return{buildMatrix:l,buildMultiLevelMatrix:u,setTimePickerBackRef:e=>{Ga.value=e},setSelectionGrid:e=>{Ha.value=e,d(),e||(Fa.selectionGrid=[])},setTimePicker:(e,t=!1)=>{Ya.value=e,qa.value=t,d(),e||(Fa.timePicker[0]=[],Fa.timePicker[1]=[])},setTimePickerElements:(e,t=0)=>{Fa.timePicker[t]=e},arrowRight:a,arrowLeft:i,arrowUp:s,arrowDown:c,clearArrowNav:()=>{Fa.monthYear=[],Fa.calendar=[],Fa.time=[],Fa.actionRow=[],Fa.selectionGrid=[],Fa.timePicker[0]=[],Fa.timePicker[1]=[],Ha.value=!1,Ya.value=!1,qa.value=!1,za.value=!1,d(),Ga.value=null},setMonthPicker:e=>{za.value=e,d()},refSets:Fa}},Ja=e=>Array.isArray(e),Xa=e=>Array.isArray(e),Qa=e=>Array.isArray(e)&&2===e.length,Za=(e,t,n,o,a)=>{const{getDefaultStartTime:i,isDisabled:s,sanitizeDate:c,getWeekFromDate:l,setDateMonthOrYear:u,validateMonthYearInRange:d,defaults:p}=Ba(e),f=Object(r["computed"])({get:()=>e.internalModelValue,set:n=>{!e.readonly&&!e.disabled&&t("update:internal-model-value",n)}}),h=Object(r["ref"])([]);Object(r["watch"])(f,(t,n)=>{e.range?C():An(t,n)||C()});const m=Object(r["toRef"])(e,"multiCalendars");Object(r["watch"])(m,()=>{oe(0)});const v=Object(r["ref"])([{month:nr(oo()),year:or(oo())}]);Object(r["watch"])(v,()=>{v.value.forEach((e,n)=>{t("update-month-year",{instance:n,month:e.month,year:e.year})})},{deep:!0});const g=Object(r["reactive"])({hours:e.range?[Rn(oo()),Rn(oo())]:Rn(oo()),minutes:e.range?[xn(oo()),xn(oo())]:xn(oo()),seconds:e.range?[0,0]:0}),_=Object(r["computed"])(()=>e=>v.value[e]?v.value[e].month:0),b=Object(r["computed"])(()=>e=>v.value[e]?v.value[e].year:0),y=Object(r["computed"])(()=>{var t;return!(null!=(t=e.flow)&&t.length&&!e.partialFlow)||a.value===e.flow.length}),O=(e,t,n)=>{var r,o;v.value[e]||(v.value[e]={month:0,year:0}),v.value[e].month=ja(t)?null==(r=v.value[e])?void 0:r.month:t,v.value[e].year=ja(n)?null==(o=v.value[e])?void 0:o.year:n},M=(e,t)=>{g[e]=t},k=()=>{e.startDate&&(O(0,nr(oo(e.startDate)),or(oo(e.startDate))),p.value.multiCalendars&&oe(0))};Object(r["onMounted"])(()=>{f.value||(k(),p.value.startTime&&N()),C(!0),e.focusStartDate&&e.startDate&&k()});const C=(t=!1)=>f.value?Array.isArray(f.value)?(h.value=f.value,E(t)):S(f.value,t):e.timePicker?j():e.monthPicker&&!e.range?D():e.yearPicker&&!e.range?L():p.value.multiCalendars&&t&&!e.startDate?w(oo(),t):void 0,w=(t,n=!1)=>{if((!p.value.multiCalendars||!e.multiStatic||n)&&O(0,nr(t),or(t)),p.value.multiCalendars)for(let e=1;e<p.value.multiCalendars;e++){const t=Tn(oo(),{month:_.value(e-1),year:b.value(e-1)}),n=jr(t,{months:1});v.value[e]={month:nr(n),year:or(n)}}},S=(e,t)=>{w(e),M("hours",Rn(e)),M("minutes",xn(e)),M("seconds",Pn(e)),p.value.multiCalendars&&t&&x()},T=(t,n)=>{t[1]&&e.showLastInRange?w(t[1],n):w(t[0],n);const r=(e,n)=>[e(t[0]),t[1]?e(t[1]):g[n][1]];M("hours",r(Rn,"hours")),M("minutes",r(xn,"minutes")),M("seconds",r(Pn,"seconds"))},I=(t,n)=>{if((e.range||e.weekPicker)&&!e.multiDates)return T(t,n);if(e.multiDates){const e=t[t.length-1];return S(e,n)}},E=t=>{const n=f.value;I(n,t),p.value.multiCalendars&&e.multiCalendarsSolo&&x()},j=()=>{if(N(),e.range){const e=g.hours,t=g.minutes;f.value=[so(oo(),e[0],t[0],A()),so(oo(),e[1],t[1],A(!1))]}else f.value=so(oo(),g.hours,g.minutes,A())},D=()=>{e.multiDates?f.value=[u(oo(),_.value(0),b.value(0))]:f.value=u(oo(),_.value(0),b.value(0))},L=()=>{f.value=oo()},A=(t=!0)=>e.enableSeconds?Array.isArray(g.seconds)?t?g.seconds[0]:g.seconds[1]:g.seconds:0,N=()=>{const t=i();if(t){const n=Array.isArray(t),r=n?[+t[0].hours,+t[1].hours]:+t.hours,o=n?[+t[0].minutes,+t[1].minutes]:+t.minutes,a=n?[+t[0].seconds,+t[1].seconds]:+t.seconds;M("hours",r),M("minutes",o),e.enableSeconds&&M("seconds",a)}},R=()=>Array.isArray(f.value)&&f.value.length?f.value[f.value.length-1]:null,x=()=>{if(Array.isArray(f.value)&&2===f.value.length){const t=oo(oo(f.value[1]?f.value[1]:Er(f.value[0],1))),[n,r]=[nr(f.value[0]),or(f.value[0])],[o,a]=[nr(f.value[1]),or(f.value[1])];(n!==o||n===o&&r!==a)&&e.multiCalendarsSolo&&O(1,nr(t),or(t))}else f.value&&!Array.isArray(f.value)&&O(0,nr(f.value),or(f.value))},P=e=>{const t=Er(e,1);return{month:nr(t),year:or(t)}},U=e=>{const t=nr(oo(e)),n=or(oo(e));if(O(0,t,n),p.value.multiCalendars>0)for(let r=1;r<p.value.multiCalendars;r++){const t=P(Tn(oo(e),{year:_.value(r-1),month:b.value(r-1)}));O(r,t.month,t.year)}},V=t=>{if(f.value&&Array.isArray(f.value))if(f.value.some(e=>lo(t,e))){const e=f.value.filter(e=>!lo(e,t));f.value=e.length?e:null}else(e.multiDatesLimit&&+e.multiDatesLimit>f.value.length||!e.multiDatesLimit)&&f.value.push(t);else f.value=[t]},B=(e,t)=>{const n=uo(e,t)?t:e,r=uo(t,e)?t:e;return Dr({start:n,end:r})},F=(t,n=0)=>{if(Array.isArray(f.value)&&f.value[n]){const r=Nr(t,f.value[n]),o=B(f.value[n],t),a=1===o.length?0:o.filter(e=>s(e)).length,i=Math.abs(r)-a;if(e.minRange&&e.maxRange)return i>=+e.minRange&&i<=+e.maxRange;if(e.minRange)return i>=+e.minRange;if(e.maxRange)return i<=+e.maxRange}return!0},G=n=>Array.isArray(f.value)&&2===f.value.length?e.fixedStart&&(uo(n,f.value[0])||lo(n,f.value[0]))?[f.value[0],n]:e.fixedEnd&&(co(n,f.value[1])||lo(n,f.value[1]))?[n,f.value[1]]:(t("invalid-fixed-range",n),f.value):[],H=()=>{e.autoApply&&y.value&&t("auto-apply",e.partialFlow)},Y=()=>{e.autoApply&&t("select-date")},z=e=>!Dr({start:e[0],end:e[1]}).some(e=>s(e)),q=e=>(f.value=l(oo(e.value)),H()),W=t=>{const r=so(oo(t.value),g.hours,g.minutes,A());e.multiDates?V(r):f.value=r,n(),H()},K=()=>{h.value=f.value?f.value.slice():[],2===h.value.length&&!e.fixedStart&&!e.fixedEnd&&(h.value=[])},$=(t,n)=>{const r=[oo(t.value),Ir(oo(t.value),+e.autoRange)];z(r)&&(n&&U(t.value),h.value=r)},J=t=>{X(t.value)||!F(t.value,e.fixedStart?0:1)||(h.value=G(oo(t.value)))},X=t=>!!e.noDisabledRange&&B(h.value[0],t).some(e=>s(e)),Q=(n,r)=>(K(),e.autoRange?$(n,r):e.fixedStart||e.fixedEnd?J(n):void(h.value[0]?F(oo(n.value))&&!X(n.value)&&(co(oo(n.value),oo(h.value[0]))?(h.value.unshift(oo(n.value)),t("range-end",h.value[0])):(h.value[1]=oo(n.value),t("range-end",h.value[1]))):(h.value[0]=oo(n.value),t("range-start",h.value[0])))),Z=e=>{h.value[e]=so(h.value[e],g.hours[e],g.minutes[e],A(1!==e))},ee=()=>{var e,n;h.value[0]&&h.value[1]&&+(null==(e=h.value)?void 0:e[0])>+(null==(n=h.value)?void 0:n[1])&&(h.value.reverse(),t("range-start",h.value[0]),t("range-end",h.value[1]))},te=()=>{h.value.length&&(h.value[0]&&!h.value[1]?Z(0):(Z(0),Z(1),n()),ee(),f.value=h.value.slice(),h.value[0]&&h.value[1]&&e.autoApply&&t("auto-apply"),h.value[0]&&!h.value[1]&&e.modelAuto&&e.autoApply&&t("auto-apply"))},ne=(t,n=!1)=>{if(!(s(t.value)||!t.current&&e.hideOffsetDates)){if(e.weekPicker)return q(t);if(!e.range)return W(t);Xa(g.hours)&&Xa(g.minutes)&&!e.multiDates&&(Q(t,n),te())}},re=t=>{const n=t[0];return"local"===e.weekNumbers?Ur(n.value,{weekStartsOn:+e.weekStart}):"iso"===e.weekNumbers?Hr(n.value):"function"==typeof e.weekNumbers?e.weekNumbers(n.value):""},oe=e=>{for(let t=e-1;t>=0;t--){const e=Yr(Tn(oo(),{month:_.value(t+1),year:b.value(t+1)}),1);O(t,nr(e),or(e))}for(let t=e+1;t<=p.value.multiCalendars-1;t++){const e=Er(Tn(oo(),{month:_.value(t-1),year:b.value(t-1)}),1);O(t,nr(e),or(e))}},ae=e=>u(oo(),_.value(e),b.value(e)),ie=e=>so(e,g.hours,g.minutes,A()),se=e=>{V(ae(e))},ce=(t,n)=>{const r=e.monthPicker?_.value(t)!==n.month||!n.fromNav:b.value(t)!==n.year||!n.fromNav;if(O(t,n.month,n.year),p.value.multiCalendars&&!e.multiCalendarsSolo&&oe(t),e.monthPicker||e.yearPicker)if(e.multiDates)r&&se(t);else if(e.range){if(r&&F(ae(t))){let e=f.value?f.value.slice():[];2===e.length&&null!==e[1]&&(e=[]),e.length?co(ae(t),e[0])?e.unshift(ae(t)):e[1]=ae(t):e=[ae(t)],f.value=e}}else(e.autoApplyMonth||r)&&(f.value=ae(t));o(e.multiCalendarsSolo?t:void 0)},le=async(o=!1)=>{if(e.autoApply&&(e.monthPicker||e.yearPicker)){await Object(r["nextTick"])();const n=!!e.monthPicker&&o;e.range?t("auto-apply",n||!f.value||1===f.value.length):t("auto-apply",n)}n()},ue=(t,n)=>{const r=Tn(oo(),{month:_.value(n),year:b.value(n)}),a=t<0?Er(r,1):Yr(r,1);d(nr(a),or(a),t<0,e.preventMinMaxNavigation)&&(O(n,nr(a),or(a)),p.value.multiCalendars&&!e.multiCalendarsSolo&&oe(n),o())},de=n=>{Ja(n)&&Ja(f.value)&&Xa(g.hours)&&Xa(g.minutes)?(n[0]&&f.value[0]&&(f.value[0]=so(n[0],g.hours[0],g.minutes[0],A())),n[1]&&f.value[1]&&(f.value[1]=so(n[1],g.hours[1],g.minutes[1],A(!1)))):e.multiDates&&Array.isArray(f.value)?f.value[f.value.length-1]=ie(n):!e.range&&!Qa(n)&&(f.value=ie(n)),t("time-update")},pe=(t,r=!0,o=!1)=>{const a=r?t:g.hours,i=r||o?g.minutes:t,s=o?t:g.seconds;if(e.range&&Qa(f.value)&&Xa(a)&&Xa(i)&&Xa(s)&&!e.disableTimeRangeValidation){const e=e=>so(f.value[e],a[e],i[e],s[e]),t=e=>Dn(f.value[e],0);if(lo(f.value[0],f.value[1])&&(Nn(e(0),t(1))||Ln(e(1),t(0))))return}if(M("hours",a),M("minutes",i),M("seconds",s),f.value)if(e.multiDates){const e=R();e&&de(e)}else de(f.value);else e.timePicker&&de(e.range?[oo(),oo()]:oo());n()},fe=(t,n)=>{e.monthChangeOnScroll&&ue("inverse"!==e.monthChangeOnScroll?-t.deltaY:t.deltaY,n)},he=(t,n,r=!1)=>{e.monthChangeOnArrows&&e.vertical===r&&me(t,n)},me=(e,t)=>{ue("right"===e?-1:1,t)};return{time:g,month:_,year:b,modelValue:f,calendars:v,monthYearSelect:le,isDisabled:s,updateTime:pe,getWeekNum:re,selectDate:ne,updateMonthYear:ce,handleScroll:fe,getMarker:t=>e.markers.find(e=>lo(c(t.value),c(e.date))),handleArrow:he,handleSwipe:me,selectCurrentDate:()=>{e.range?f.value&&Array.isArray(f.value)&&f.value[0]?f.value=co(oo(),f.value[0])?[oo(),f.value[0]]:[f.value[0],oo()]:f.value=[oo()]:f.value=oo(),Y()},presetDateRange:(t,n)=>{n||t.length&&t.length<=2&&e.range&&(f.value=t.map(e=>oo(e)),Y(),e.multiCalendars&&Object(r["nextTick"])().then(()=>C(!0)))}}},ei=(e,t,n)=>{const o=Object(r["ref"])(),{getZonedToUtc:a,getZonedDate:i,formatDate:s,getDefaultPattern:c,checkRangeEnabled:l,checkPartialRangeValue:u,isValidDate:d,setDateMonthOrYear:p,defaults:f}=Ba(t),h=Object(r["ref"])(""),m=Object(r["toRef"])(t,"format");Object(r["watch"])(o,()=>{e("internal-model-change",o.value)}),Object(r["watch"])(m,()=>{R()});const v=e=>{const n=e||oo();return t.modelType?P(n):{hours:Rn(n),minutes:xn(n),seconds:t.enableSeconds?Pn(n):0}},g=e=>t.modelType?P(e):{month:nr(e),year:or(e)},_=e=>Array.isArray(e)?l(()=>[Tr(oo(),e[0]),e[1]?Tr(oo(),e[1]):u()]):Tr(oo(),+e),b=(e,n)=>"string"!=typeof e&&"number"!=typeof e||!t.modelType?n:x(e),y=e=>Array.isArray(e)?[b(e[0],so(null,+e[0].hours,+e[0].minutes,e[0].seconds)),b(e[1],so(null,+e[1].hours,+e[1].minutes,e[1].seconds))]:b(e,so(null,e.hours,e.minutes,e.seconds)),O=e=>Array.isArray(e)?t.multiDates?e.map(e=>b(e,p(null,+e.month,+e.year))):l(()=>[b(e[0],p(null,+e[0].month,+e[0].year)),b(e[1],e[1]?p(null,+e[1].month,+e[1].year):u())]):b(e,p(null,+e.month,+e.year)),M=e=>{if(Array.isArray(e))return e.map(e=>x(e));throw new Error(Sa.dateArr("multi-dates"))},k=e=>{if(Array.isArray(e))return[oo(e[0]),oo(e[1])];throw new Error(Sa.dateArr("week-picker"))},C=e=>t.modelAuto?Array.isArray(e)?[x(e[0]),x(e[1])]:t.autoApply?[x(e)]:[x(e),null]:Array.isArray(e)?l(()=>[x(e[0]),e[1]?x(e[1]):u()]):x(e),w=()=>{Array.isArray(o.value)&&t.range&&1===o.value.length&&o.value.push(u())},S=()=>{const e=o.value;return[P(e[0]),e[1]?P(e[1]):u()]},T=()=>o.value[1]?S():P(Ta(o.value[0])),I=()=>(o.value||[]).map(e=>P(e)),E=()=>(w(),t.modelAuto?T():t.multiDates?I():Array.isArray(o.value)?l(()=>S()):P(Ta(o.value))),j=e=>e?t.timePicker?y(Ta(e)):t.monthPicker?O(Ta(e)):t.yearPicker?_(Ta(e)):t.multiDates?M(Ta(e)):t.weekPicker?k(Ta(e)):C(Ta(e)):null,D=e=>{const t=j(e);d(Ta(t))?(o.value=Ta(t),R()):(o.value=null,h.value="")},L=()=>{var e;const t=e=>{var t;return er(e,null==(t=f.value.textInputOptions)?void 0:t.format)};return`${t(o.value[0])} ${null==(e=f.value.textInputOptions)?void 0:e.rangeSeparator} ${o.value[1]?t(o.value[1]):""}`},A=()=>{var e;return n.value&&o.value?Array.isArray(o.value)?L():er(o.value,null==(e=f.value.textInputOptions)?void 0:e.format):s(o.value)},N=()=>{var e;return o.value?t.multiDates?o.value.map(e=>s(e)).join("; "):t.textInput&&"string"==typeof(null==(e=f.value.textInputOptions)?void 0:e.format)?A():s(o.value):""},R=()=>{!t.format||"string"==typeof t.format||t.textInput&&"string"==typeof t.textInputOptions.format?h.value=N():h.value=t.format(o.value)},x=e=>{if(t.utc){const n=new Date(e);return"preserve"===t.utc?new Date(n.getTime()+6e4*n.getTimezoneOffset()):n}return t.modelType?"date"===t.modelType||"timestamp"===t.modelType?i(new Date(e)):"format"!==t.modelType||"string"!=typeof t.format&&t.format?i(On(e,t.modelType,new Date)):On(e,c(),new Date):i(new Date(e))},P=e=>e?t.utc?ao(e,"preserve"===t.utc,t.enableSeconds):t.modelType?"timestamp"===t.modelType?+a(e):"format"!==t.modelType||"string"!=typeof t.format&&t.format?s(a(e),t.modelType):s(a(e)):a(e):"",U=t=>{e("update:model-value",t)},V=e=>Array.isArray(o.value)?t.multiDates?o.value.map(t=>e(t)):[e(o.value[0]),o.value[1]?e(o.value[1]):u()]:e(Ta(o.value)),B=e=>U(Ta(V(e)));return{inputValue:h,internalModelValue:o,checkBeforeEmit:()=>!!o.value&&(t.range?t.partialRange?o.value.length>=1:2===o.value.length:!!o.value),parseExternalModelValue:D,formatInputValue:R,emitModelValue:()=>(R(),t.monthPicker?B(g):t.timePicker?B(v):t.yearPicker?B(or):t.weekPicker?U(o.value):U(E()))}},ti=(e,t)=>{const{validateMonthYearInRange:n,validateMaxDate:o,validateMinDate:a,defaults:i}=Ba(e),s=(e,t)=>{let n=e;return i.value.filters.months.includes(nr(n))?(n=t?Er(e,1):Yr(e,1),s(n,t)):n},c=(e,t)=>{let n=e;return i.value.filters.years.includes(or(n))?(n=t?zr(e,1):qr(e,1),c(n,t)):n},l=t=>{const r=Tn(new Date,{month:e.month,year:e.year});let o=t?Er(r,1):Yr(r,1);e.disableYearSelect&&(o=Tr(o,e.year));let a=nr(o),l=or(o);i.value.filters.months.includes(a)&&(o=s(o,t),a=nr(o),l=or(o)),i.value.filters.years.includes(l)&&(o=c(o,t),l=or(o)),n(a,l,t,e.preventMinMaxNavigation)&&u(a,l)},u=(e,n)=>{t("update-month-year",{month:e,year:n})},d=Object(r["computed"])(()=>t=>{if(!e.preventMinMaxNavigation||t&&!e.maxDate||!t&&!e.minDate)return!1;const n=Tn(new Date,{month:e.month,year:e.year}),r=t?Er(n,1):Yr(n,1),i=[nr(r),or(r)];return t?!o(...i):!a(...i)});return{handleMonthYearChange:l,isDisabled:d,updateMonthYear:u}};var ni=(e=>(e.center="center",e.left="left",e.right="right",e))(ni||{});const ri=(e,t,n,o)=>{const a=Object(r["ref"])({top:"0",left:"0",transform:"none",opacity:"0"}),i=Object(r["ref"])(!1),s=Object(r["toRef"])(o,"teleportCenter"),c=Object(r["computed"])(()=>i.value?"-100%":"0"),l=()=>{u(),a.value.opacity="0"};Object(r["watch"])(s,()=>{b()}),Object(r["onMounted"])(()=>{u()});const u=()=>{const e=ka(t);if(e){const{top:t,left:n,width:r,height:o}=m(e);a.value.top=t+o/2+"px",h(n,r,50)}},d=e=>{if(o.teleport){const t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY}}return{top:0,left:0}},p=(e,t)=>{a.value.left=e+t+"px",a.value.transform=`translate(-100%, ${c.value})`},f=e=>{a.value.left=e+"px",a.value.transform=`translate(0, ${c.value})`},h=(e,t,n)=>{o.position===ni.left&&f(e),o.position===ni.right&&p(e,t),o.position===ni.center&&(a.value.left=e+t/2+"px",a.value.transform=n?`translate(-50%, -${n}%)`:`translate(-50%, ${c.value})`)},m=e=>{const{width:t,height:n}=e.getBoundingClientRect(),{top:r,left:a}=o.altPosition?o.altPosition(e):d(e);return{top:+r,left:+a,width:t,height:n}},v=()=>{const e=ka(t);if(e){const{top:t,left:n,width:r,height:o}=m(e),i=C();a.value.top=t+o/2+"px",h(n,r,"top"===i?100:0)}},g=()=>{a.value.left="50%",a.value.top="50%",a.value.transform="translate(-50%, -50%)",a.value.position="fixed",delete a.value.opacity},_=()=>{const e=ka(t),{top:n,left:r,transform:i}=o.altPosition(e);a.value={top:n+"px",left:r+"px",transform:i||""}},b=(e=!0)=>{if(!o.inline)return s.value?g():null!==o.altPosition?_():(e&&n("recalculate-position"),S())},y=({inputEl:e,menuEl:t,left:n,width:r})=>{window.screen.width>768&&h(n,r),k(e,t)},O=(e,t)=>{const{top:n,left:r,height:s,width:c}=m(e);a.value.top=s+n+ +o.offset+"px",i.value=!1,y({inputEl:e,menuEl:t,left:r,width:c})},M=(e,t)=>{const{top:n,left:r,width:s}=m(e);a.value.top=n-+o.offset+"px",i.value=!0,y({inputEl:e,menuEl:t,left:r,width:s})},k=(e,t)=>{if(o.autoPosition){const{left:n,width:r}=m(e),{left:o,right:a}=t.getBoundingClientRect();return o<=0?f(n):a>=document.documentElement.clientWidth?p(n,r):h(n,r)}},C=()=>{const n=ka(e),r=ka(t);if(n&&r){const{height:e}=n.getBoundingClientRect(),{top:t,height:o}=r.getBoundingClientRect(),a=window.innerHeight-t-o,i=t;return e<=a?"bottom":e>a&&e<=i?"top":a>=i?"bottom":"top"}return"bottom"},w=(e,t)=>"bottom"===C()?O(e,t):M(e,t),S=()=>{const n=ka(t),r=ka(e);if(n&&r)return o.autoPosition?w(n,r):O(n,r)},T=function(e){if(e){const t=e.scrollHeight>e.clientHeight,n=-1!==window.getComputedStyle(e).overflowY.indexOf("hidden");return t&&!n}return!0},I=function(e){return e&&e!==document.body&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?T(e)?e:I(e.parentNode):window};return{openOnTop:i,menuStyle:a,resetPosition:l,setMenuPosition:b,setInitialPosition:v,getScrollableParent:I}},oi=[{name:"clock-icon",use:["time","calendar"]},{name:"arrow-left",use:["month-year","calendar"]},{name:"arrow-right",use:["month-year","calendar"]},{name:"arrow-up",use:["time","calendar","month-year"]},{name:"arrow-down",use:["time","calendar","month-year"]},{name:"calendar-icon",use:["month-year","time","calendar"]},{name:"day",use:["calendar"]},{name:"month-overlay-value",use:["calendar","month-year"]},{name:"year-overlay-value",use:["calendar","month-year"]},{name:"year-overlay",use:["month-year"]},{name:"month-overlay",use:["month-year"]},{name:"month-overlay-header",use:["month-year"]},{name:"year-overlay-header",use:["month-year"]},{name:"hours-overlay-value",use:["calendar","time"]},{name:"minutes-overlay-value",use:["calendar","time"]},{name:"seconds-overlay-value",use:["calendar","time"]},{name:"hours",use:["calendar","time"]},{name:"minutes",use:["calendar","time"]},{name:"month",use:["calendar","month-year"]},{name:"year",use:["calendar","month-year"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar"]},{name:"marker-tooltip",use:["calendar"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time"]},{name:"am-pm-button",use:["calendar","time"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year"]},{name:"time-picker",use:["menu"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar"]}],ai=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],ii={all:()=>oi,monthYear:()=>oi.filter(e=>e.use.includes("month-year")),input:()=>ai,timePicker:()=>oi.filter(e=>e.use.includes("time")),action:()=>oi.filter(e=>e.use.includes("action")),calendar:()=>oi.filter(e=>e.use.includes("calendar")),menu:()=>oi.filter(e=>e.use.includes("menu"))},si=(e,t,n)=>{const r=[];return ii[t]().forEach(t=>{e[t.name]&&r.push(t.name)}),n&&n.length&&n.forEach(e=>{e.slot&&r.push(e.slot)}),r},ci=e=>({transitionName:Object(r["computed"])(()=>t=>e&&"boolean"!=typeof e?t?e.open:e.close:""),showTransition:!!e}),li={multiCalendars:{type:[Boolean,Number,String],default:null},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},closeOnScroll:{type:Boolean,default:!1},autoPosition:{type:Boolean,default:!0},closeOnAutoApply:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},multiCalendarsSolo:{type:Boolean,default:!1},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},showNowButton:{type:Boolean,default:!1},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},modeHeight:{type:[Number,String],default:255},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetRanges:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},keepActionRow:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},multiStatic:{type:Boolean,default:!0},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Array,Function],default:null},highlightWeekDays:{type:Array,default:null},highlightDisabledDays:{type:Boolean,default:!1},teleport:{type:[String,Boolean],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function],default:null},calendarClassName:{type:String,default:null},noSwipe:{type:Boolean,default:!1},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:Boolean,default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},inlineWithInput:{type:Boolean,default:!1},textInputOptions:{type:Object,default:()=>null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:Boolean,default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},onClickOutside:{type:Function,default:null},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},allowPreventDefault:{type:Boolean,default:!1},closeOnClearValue:{type:Boolean,default:!0},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:Function,default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},autoApplyMonth:{type:Boolean,default:!0}},ui={key:1,class:"dp__input_wrap"},di=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","onKeydown"],pi={key:2,class:"dp__clear_icon"},fi=Object(r["defineComponent"])({__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...li},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:t,emit:n}){const o=e,{getDefaultPattern:a,isValidDate:i,defaults:s,getDefaultStartTime:c,assignDefaultTime:l}=Ba(o),u=Object(r["ref"])(),d=Object(r["ref"])(null),p=Object(r["ref"])(!1),f=Object(r["ref"])(!1),h=Object(r["computed"])(()=>({dp__pointer:!o.disabled&&!o.readonly&&!o.textInput,dp__disabled:o.disabled,dp__input_readonly:!o.textInput,dp__input:!0,dp__input_icon_pad:!o.hideInputIcon,dp__input_valid:o.state,dp__input_invalid:!1===o.state,dp__input_focus:p.value||o.isMenuOpen,dp__input_reg:!o.textInput,[o.inputClassName]:!!o.inputClassName})),m=()=>{n("set-input-date",null),o.autoApply&&(n("set-empty-date"),u.value=null)},v=e=>{var t;const n=c();return ro(e,(null==(t=s.value.textInputOptions)?void 0:t.format)||a(),n||l({}),o.inputValue,f.value)},g=e=>{const{rangeSeparator:t}=s.value.textInputOptions,[n,r]=e.split(""+t);if(n){const e=v(n.trim()),t=r?v(r.trim()):null,o=e&&t?[e,t]:[e];u.value=e?o:null}},_=()=>{f.value=!0},b=e=>{if(o.range)g(e);else if(o.multiDates){const t=e.split(";");u.value=t.map(e=>v(e.trim())).filter(e=>e)}else u.value=v(e)},y=e=>{var t,r;const a="string"==typeof e?e:null==(t=e.target)?void 0:t.value;""!==a?(null!=(r=s.value.textInputOptions)&&r.openMenu&&!o.isMenuOpen&&n("open"),b(a),n("set-input-date",u.value)):m(),f.value=!1,n("update:input-value",a)},O=e=>{var t,r;o.textInput?(b(e.target.value),null!=(t=s.value.textInputOptions)&&t.enterSubmit&&i(u.value)&&""!==o.inputValue?(n("set-input-date",u.value,!0),u.value=null):null!=(r=s.value.textInputOptions)&&r.enterSubmit&&""===o.inputValue&&(u.value=null,n("clear"))):C(e)},M=e=>{var t,r,a;o.textInput&&null!=(t=s.value.textInputOptions)&&t.tabSubmit&&b(e.target.value),null!=(r=s.value.textInputOptions)&&r.tabSubmit&&i(u.value)&&""!==o.inputValue?(n("set-input-date",u.value,!0),u.value=null):null!=(a=s.value.textInputOptions)&&a.tabSubmit&&""===o.inputValue&&(u.value=null,n("clear"))},k=()=>{p.value=!0,n("focus")},C=e=>{var t;e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),o.textInput&&null!=(t=s.value.textInputOptions)&&t.openMenu&&!o.inlineWithInput?(n("toggle"),s.value.textInputOptions.enterSubmit&&n("select-date")):o.textInput||n("toggle")},w=()=>{n("real-blur"),p.value=!1,(!o.isMenuOpen||o.inline&&o.inlineWithInput)&&n("blur"),o.autoApply&&o.textInput&&u.value&&!o.isMenuOpen&&(n("set-input-date",u.value),n("select-date"),u.value=null)},S=()=>{n("clear")},T=e=>{if(!o.textInput){if("Tab"===e.code)return;e.preventDefault()}};return t({focusInput:()=>{var e;null==(e=d.value)||e.focus({preventScroll:!0})},setParsedDate:e=>{u.value=e}}),(t,o)=>{var a;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{onClick:C},[!t.$slots.trigger||t.$slots["dp-input"]||t.inline?Object(r["createCommentVNode"])("",!0):Object(r["renderSlot"])(t.$slots,"trigger",{key:0}),t.$slots.trigger||t.inline&&!t.inlineWithInput?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",ui,[!t.$slots["dp-input"]||t.$slots.trigger||t.inline?Object(r["createCommentVNode"])("",!0):Object(r["renderSlot"])(t.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:y,onEnter:O,onTab:M,onClear:S,onBlur:w,onKeypress:T,onPaste:_}),t.$slots["dp-input"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("input",{key:1,ref_key:"inputRef",ref:d,id:t.uid?"dp-input-"+t.uid:void 0,name:t.name,class:Object(r["normalizeClass"])(h.value),inputmode:t.textInput?"text":"none",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,required:t.required,value:e.inputValue,autocomplete:t.autocomplete,"aria-label":null==(a=Object(r["unref"])(s).ariaLabels)?void 0:a.input,onInput:y,onKeydown:[Object(r["withKeys"])(O,["enter"]),Object(r["withKeys"])(M,["tab"]),T],onBlur:w,onFocus:k,onKeypress:T,onPaste:_},null,42,di)),Object(r["createElementVNode"])("div",{onClick:o[2]||(o[2]=e=>n("toggle"))},[t.$slots["input-icon"]&&!t.hideInputIcon?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",{key:0,class:"dp__input_icon",onClick:o[0]||(o[0]=e=>n("toggle"))},[Object(r["renderSlot"])(t.$slots,"input-icon")])):Object(r["createCommentVNode"])("",!0),t.$slots["input-icon"]||t.hideInputIcon||t.$slots["dp-input"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])($r),{key:1,onClick:o[1]||(o[1]=e=>n("toggle")),class:"dp__input_icon dp__input_icons"}))]),t.$slots["clear-icon"]&&e.inputValue&&t.clearable&&!t.disabled&&!t.readonly?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",pi,[Object(r["renderSlot"])(t.$slots,"clear-icon",{clear:S})])):Object(r["createCommentVNode"])("",!0),!t.clearable||t.$slots["clear-icon"]||!e.inputValue||t.disabled||t.readonly?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(Jr),{key:3,class:"dp__clear_icon dp__input_icons",onClick:Object(r["withModifiers"])(S,["stop","prevent"])},null,8,["onClick"]))]))])}}}),hi=["title"],mi={class:"dp__action_buttons"},vi=["onKeydown","disabled"],gi=Object(r["defineComponent"])({__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},calendarWidth:{type:Number,default:0},...li},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:t}){const n=e,{formatDate:o,isValidTime:a,defaults:i}=Ba(n),{buildMatrix:s}=$a(),c=Object(r["ref"])(null),l=Object(r["ref"])(null);Object(r["onMounted"])(()=>{n.arrowNavigation&&s([ka(c),ka(l)],"actionRow")});const u=Object(r["computed"])(()=>!(n.range&&!n.partialRange&&n.internalModelValue)||2===n.internalModelValue.length),d=Object(r["computed"])(()=>!p.value||!f.value||!u.value),p=Object(r["computed"])(()=>!(n.enableTimePicker&&!n.ignoreTimeValidation)||a(n.internalModelValue)),f=Object(r["computed"])(()=>!n.monthPicker||(n.range&&Array.isArray(n.internalModelValue)?!n.internalModelValue.filter(e=>!y(e)).length:y(n.internalModelValue))),h=()=>{const e=i.value.previewFormat;return n.timePicker||n.monthPicker,e(Ta(n.internalModelValue))},m=()=>{const e=n.internalModelValue;return i.value.multiCalendars>0?`${v(e[0])} - ${v(e[1])}`:[v(e[0]),v(e[1])]},v=e=>o(e,i.value.previewFormat),g=Object(r["computed"])(()=>n.internalModelValue&&n.menuMount?"string"==typeof i.value.previewFormat?Array.isArray(n.internalModelValue)?2===n.internalModelValue.length&&n.internalModelValue[1]?m():n.multiDates?n.internalModelValue.map(e=>""+v(e)):n.modelAuto?""+v(n.internalModelValue[0]):v(n.internalModelValue[0])+" -":v(n.internalModelValue):h():""),_=()=>n.multiDates?"; ":" - ",b=Object(r["computed"])(()=>Array.isArray(g.value)?g.value.join(_()):g.value),y=e=>{if(!n.monthPicker)return!0;let t=!0;const r=oo(fo(e));if(n.minDate&&n.maxDate){const e=oo(fo(n.minDate)),t=oo(fo(n.maxDate));return uo(r,e)&&co(r,t)||lo(r,e)||lo(r,t)}if(n.minDate){const e=oo(fo(n.minDate));t=uo(r,e)||lo(r,e)}if(n.maxDate){const e=oo(fo(n.maxDate));t=co(r,e)||lo(r,e)}return t},O=()=>{p.value&&f.value&&u.value?t("select-date"):t("invalid-select")};return(t,n)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:"dp__action_row",style:Object(r["normalizeStyle"])(e.calendarWidth?{width:e.calendarWidth+"px"}:{})},[t.$slots["action-row"]?Object(r["renderSlot"])(t.$slots,"action-row",Object(r["normalizeProps"])(Object(r["mergeProps"])({key:0},{internalModelValue:e.internalModelValue,disabled:d.value,selectDate:()=>t.$emit("select-date"),closePicker:()=>t.$emit("close-picker")}))):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["unref"])(i).actionRow.showPreview?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,class:"dp__selection_preview",title:b.value},[t.$slots["action-preview"]?Object(r["renderSlot"])(t.$slots,"action-preview",{key:0,value:e.internalModelValue}):Object(r["createCommentVNode"])("",!0),t.$slots["action-preview"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(b.value),1)],64))],8,hi)):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("div",mi,[t.$slots["action-buttons"]?Object(r["renderSlot"])(t.$slots,"action-buttons",{key:0,value:e.internalModelValue}):Object(r["createCommentVNode"])("",!0),t.$slots["action-buttons"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[!t.inline&&Object(r["unref"])(i).actionRow.showCancel?(Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:0,type:"button",ref_key:"cancelButtonRef",ref:c,class:"dp__action_button dp__action_cancel",onClick:n[0]||(n[0]=e=>t.$emit("close-picker")),onKeydown:[n[1]||(n[1]=Object(r["withKeys"])(e=>t.$emit("close-picker"),["enter"])),n[2]||(n[2]=Object(r["withKeys"])(e=>t.$emit("close-picker"),["space"]))]},Object(r["toDisplayString"])(t.cancelText),545)):Object(r["createCommentVNode"])("",!0),t.showNowButton||Object(r["unref"])(i).actionRow.showNow?(Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:1,type:"button",ref_key:"cancelButtonRef",ref:c,class:"dp__action_button dp__action_cancel",onClick:n[3]||(n[3]=e=>t.$emit("select-now")),onKeydown:[n[4]||(n[4]=Object(r["withKeys"])(e=>t.$emit("select-now"),["enter"])),n[5]||(n[5]=Object(r["withKeys"])(e=>t.$emit("select-now"),["space"]))]},Object(r["toDisplayString"])(t.nowButtonLabel),545)):Object(r["createCommentVNode"])("",!0),Object(r["unref"])(i).actionRow.showSelect?(Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:2,type:"button",class:"dp__action_button dp__action_select",onKeydown:[Object(r["withKeys"])(O,["enter"]),Object(r["withKeys"])(O,["space"])],onClick:O,disabled:d.value,ref_key:"selectButtonRef",ref:l},Object(r["toDisplayString"])(t.selectText),41,vi)):Object(r["createCommentVNode"])("",!0)],64))])],64))],4))}}),_i=["aria-label"],bi={class:"dp__calendar_header",role:"row"},yi={key:0,class:"dp__calendar_header_item",role:"gridcell"},Oi=Object(r["createElementVNode"])("div",{class:"dp__calendar_header_separator"},null,-1),Mi=["aria-label"],ki={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},Ci={class:"dp__cell_inner"},wi=["aria-selected","aria-disabled","aria-label","onClick","onKeydown","onMouseenter","onMouseleave"],Si=Object(r["defineComponent"])({__name:"Calendar",props:{mappedDates:{type:Array,default:()=>[]},getWeekNum:{type:Function,default:()=>""},specificMode:{type:Boolean,default:!1},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...li},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:t,emit:n}){const o=e,{buildMultiLevelMatrix:a}=$a(),{setDateMonthOrYear:i,defaults:s}=Ba(o),c=Object(r["ref"])(null),l=Object(r["ref"])({bottom:"",left:"",transform:""}),u=Object(r["ref"])([]),d=Object(r["ref"])(null),p=Object(r["ref"])(!0),f=Object(r["ref"])(""),h=Object(r["ref"])({startX:0,endX:0,startY:0,endY:0}),m=Object(r["ref"])([]),v=Object(r["ref"])({left:"50%"}),g=Object(r["computed"])(()=>o.calendar?o.calendar(o.mappedDates):o.mappedDates),_=Object(r["computed"])(()=>o.dayNames?Array.isArray(o.dayNames)?o.dayNames:o.dayNames(o.locale,+o.weekStart):ba(o.formatLocale,o.locale,+o.weekStart));Object(r["onMounted"])(()=>{n("mount",{cmp:"calendar",refs:u}),o.noSwipe||d.value&&(d.value.addEventListener("touchstart",E,{passive:!1}),d.value.addEventListener("touchend",j,{passive:!1}),d.value.addEventListener("touchmove",D,{passive:!1})),o.monthChangeOnScroll&&d.value&&d.value.addEventListener("wheel",N,{passive:!1})});const b=e=>e?o.vertical?"vNext":"next":o.vertical?"vPrevious":"previous",y=(e,t)=>{if(o.transitions){const n=io(i(oo(),o.month,o.year));f.value=uo(io(i(oo(),e,t)),n)?s.value.transitions[b(!0)]:s.value.transitions[b(!1)],p.value=!1,Object(r["nextTick"])(()=>{p.value=!0})}},O=Object(r["computed"])(()=>({[o.calendarClassName]:!!o.calendarClassName})),M=Object(r["computed"])(()=>e=>{const t=Ca(e);return{dp__marker_dot:"dot"===t.type,dp__marker_line:"line"===t.type}}),k=Object(r["computed"])(()=>e=>lo(e,c.value)),C=Object(r["computed"])(()=>({dp__calendar:!0,dp__calendar_next:s.value.multiCalendars>0&&0!==o.instance})),w=Object(r["computed"])(()=>e=>!o.hideOffsetDates||e.current),S=Object(r["computed"])(()=>o.specificMode?{height:o.modeHeight+"px"}:void 0),T=async(e,t,o)=>{var a,i;if(n("set-hover-date",e),null!=(i=null==(a=e.marker)?void 0:a.tooltip)&&i.length){const a=ka(u.value[t][o]);if(a){const{width:t,height:o}=a.getBoundingClientRect();c.value=e.value;let i={left:t/2+"px"},s=-50;if(await Object(r["nextTick"])(),m.value[0]){const{left:e,width:n}=m.value[0].getBoundingClientRect();e<0&&(i={left:"0"},s=0,v.value.left=t/2+"px"),window.innerWidth<e+n&&(i={right:"0"},s=0,v.value.left=n-t/2+"px")}l.value={bottom:o+"px",...i,transform:`translateX(${s}%)`},n("tooltip-open",e.marker)}}},I=e=>{c.value&&(c.value=null,l.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),n("tooltip-close",e.marker))},E=e=>{h.value.startX=e.changedTouches[0].screenX,h.value.startY=e.changedTouches[0].screenY},j=e=>{h.value.endX=e.changedTouches[0].screenX,h.value.endY=e.changedTouches[0].screenY,L()},D=e=>{o.vertical&&!o.inline&&e.preventDefault()},L=()=>{const e=o.vertical?"Y":"X";Math.abs(h.value["start"+e]-h.value["end"+e])>10&&n("handle-swipe",h.value["start"+e]>h.value["end"+e]?"right":"left")},A=(e,t,n)=>{e&&(Array.isArray(u.value[t])?u.value[t][n]=e:u.value[t]=[e]),o.arrowNavigation&&a(u.value,"calendar")},N=e=>{o.monthChangeOnScroll&&(e.preventDefault(),n("handle-scroll",e))};return t({triggerTransition:y}),(t,n)=>{var o;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(C.value)},[Object(r["createElementVNode"])("div",{style:Object(r["normalizeStyle"])(S.value),ref_key:"calendarWrapRef",ref:d,role:"grid",class:Object(r["normalizeClass"])(O.value),"aria-label":null==(o=Object(r["unref"])(s).ariaLabels)?void 0:o.calendarWrap},[e.specificMode?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[Object(r["createElementVNode"])("div",bi,[t.weekNumbers?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",yi,Object(r["toDisplayString"])(t.weekNumName),1)):Object(r["createCommentVNode"])("",!0),(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(_.value,(e,n)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:"dp__calendar_header_item",role:"gridcell",key:n},[t.$slots["calendar-header"]?Object(r["renderSlot"])(t.$slots,"calendar-header",{key:0,day:e,index:n}):Object(r["createCommentVNode"])("",!0),t.$slots["calendar-header"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e),1)],64))]))),128))]),Oi,Object(r["createVNode"])(r["Transition"],{name:f.value,css:!!t.transitions},{default:Object(r["withCtx"])(()=>{var o;return[p.value?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,class:"dp__calendar",role:"grid","aria-label":null==(o=Object(r["unref"])(s).ariaLabels)?void 0:o.calendarDays},[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(g.value,(o,a)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:"dp__calendar_row",role:"row",key:a},[t.weekNumbers?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",ki,[Object(r["createElementVNode"])("div",Ci,Object(r["toDisplayString"])(e.getWeekNum(o.days)),1)])):Object(r["createCommentVNode"])("",!0),(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(o.days,(e,o)=>{var i,c,u;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{role:"gridcell",class:"dp__calendar_item",ref_for:!0,ref:e=>A(e,a,o),key:o+a,"aria-selected":e.classData.dp__active_date||e.classData.dp__range_start||e.classData.dp__range_start,"aria-disabled":e.classData.dp__cell_disabled,"aria-label":null==(c=null==(i=Object(r["unref"])(s).ariaLabels)?void 0:i.day)?void 0:c.call(i,e),tabindex:"0",onClick:Object(r["withModifiers"])(n=>t.$emit("select-date",e),["stop","prevent"]),onKeydown:[Object(r["withKeys"])(n=>t.$emit("select-date",e),["enter"]),Object(r["withKeys"])(n=>t.$emit("handle-space",e),["space"])],onMouseenter:t=>T(e,a,o),onMouseleave:t=>I(e)},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(["dp__cell_inner",e.classData])},[t.$slots.day&&w.value(e)?Object(r["renderSlot"])(t.$slots,"day",{key:0,day:+e.text,date:e.value}):Object(r["createCommentVNode"])("",!0),t.$slots.day?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.text),1)],64)),e.marker&&w.value(e)?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:2},[t.$slots.marker?Object(r["renderSlot"])(t.$slots,"marker",{key:0,marker:e.marker,day:+e.text,date:e.value}):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:1,class:Object(r["normalizeClass"])(M.value(e.marker)),style:Object(r["normalizeStyle"])(e.marker.color?{backgroundColor:e.marker.color}:{})},null,6))],64)):Object(r["createCommentVNode"])("",!0),k.value(e.value)?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:3,class:"dp__marker_tooltip",ref_for:!0,ref_key:"activeTooltip",ref:m,style:Object(r["normalizeStyle"])(l.value)},[null!=(u=e.marker)&&u.tooltip?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,class:"dp__tooltip_content",onClick:n[0]||(n[0]=Object(r["withModifiers"])(()=>{},["stop"]))},[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(e.marker.tooltip,(n,o)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:o,class:"dp__tooltip_text"},[t.$slots["marker-tooltip"]?Object(r["renderSlot"])(t.$slots,"marker-tooltip",{key:0,tooltip:n,day:e.value}):Object(r["createCommentVNode"])("",!0),t.$slots["marker-tooltip"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createElementVNode"])("div",{class:"dp__tooltip_mark",style:Object(r["normalizeStyle"])(n.color?{backgroundColor:n.color}:{})},null,4),Object(r["createElementVNode"])("div",null,Object(r["toDisplayString"])(n.text),1)],64))]))),128)),Object(r["createElementVNode"])("div",{class:"dp__arrow_bottom_tp",style:Object(r["normalizeStyle"])(v.value)},null,4)])):Object(r["createCommentVNode"])("",!0)],4)):Object(r["createCommentVNode"])("",!0)],2)],40,wi)}),128))]))),128))],8,Mi)):Object(r["createCommentVNode"])("",!0)]}),_:3},8,["name","css"])],64))],14,_i)],2)}}}),Ti=["aria-label","aria-disabled"],Ii=Object(r["defineComponent"])({__name:"ActionIcon",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const n=Object(r["ref"])(null);return Object(r["onMounted"])(()=>t("set-ref",n)),(e,t)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{type:"button",class:"dp__btn dp__month_year_col_nav",onClick:t[0]||(t[0]=t=>e.$emit("activate")),onKeydown:[t[1]||(t[1]=Object(r["withKeys"])(Object(r["withModifiers"])(t=>e.$emit("activate"),["prevent"]),["enter"])),t[2]||(t[2]=Object(r["withKeys"])(Object(r["withModifiers"])(t=>e.$emit("activate"),["prevent"]),["space"]))],tabindex:"0","aria-label":e.ariaLabel,"aria-disabled":e.disabled,ref_key:"elRef",ref:n},[Object(r["createElementVNode"])("span",{class:Object(r["normalizeClass"])(["dp__inner_nav",{dp__inner_nav_disabled:e.disabled}])},[Object(r["renderSlot"])(e.$slots,"default")],2)],40,Ti))}}),Ei=["onKeydown"],ji={class:"dp__selection_grid_header"},Di=["aria-selected","aria-disabled","onClick","onKeydown","onMouseover"],Li=["aria-label","onKeydown"],Ai=Object(r["defineComponent"])({__name:"SelectionGrid",props:{items:{type:Array,default:()=>[]},modelValue:{type:[String,Number],default:null},multiModelValue:{type:Array,default:()=>[]},disabledValues:{type:Array,default:()=>[]},minValue:{type:[Number,String],default:null},maxValue:{type:[Number,String],default:null},year:{type:Number,default:0},skipActive:{type:Boolean,default:!1},headerRefs:{type:Array,default:()=>[]},skipButtonRef:{type:Boolean,default:!1},monthPicker:{type:Boolean,default:!1},yearPicker:{type:Boolean,default:!1},escClose:{type:Boolean,default:!0},type:{type:String,default:null},arrowNavigation:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},ariaLabels:{type:Object,default:()=>({})},hideNavigation:{type:Array,default:()=>[]},internalModelValue:{type:[Date,Array],default:null},autoApplyMonth:{type:Boolean,default:!1}},emits:["update:model-value","selected","toggle","reset-flow"],setup(e,{expose:t,emit:n}){const o=e,{setSelectionGrid:a,buildMultiLevelMatrix:i,setMonthPicker:s}=$a(),{hideNavigationButtons:c}=Ba(o),l=Object(r["ref"])(!1),u=Object(r["ref"])(null),d=Object(r["ref"])(null),p=Object(r["ref"])([]),f=Object(r["ref"])(),h=Object(r["ref"])(null),m=Object(r["ref"])(0),v=Object(r["ref"])(null);Object(r["onBeforeUpdate"])(()=>{u.value=null}),Object(r["onMounted"])(()=>{var e;Object(r["nextTick"])().then(()=>S()),_(),g(!0),null==(e=u.value)||e.focus({preventScroll:!0})}),Object(r["onUnmounted"])(()=>g(!1));const g=e=>{var t;o.arrowNavigation&&(null!=(t=o.headerRefs)&&t.length?s(e):a(e))},_=()=>{const e=ka(d);e&&(o.textInput||e.focus({preventScroll:!0}),l.value=e.clientHeight<e.scrollHeight)},b=Object(r["computed"])(()=>({dp__overlay:!0})),y=Object(r["computed"])(()=>({dp__overlay_col:!0})),O=e=>o.monthPicker&&!o.autoApplyMonth?lo(o.internalModelValue,Tr(Sn(new Date,e.value),o.year)):!o.skipActive&&e.value===o.modelValue,M=Object(r["computed"])(()=>o.items.map(e=>e.filter(e=>e).map(e=>{var t,n,r;const a=o.disabledValues.some(t=>t===e.value)||w(e.value),i=null!=(t=o.multiModelValue)&&t.length?null==(n=o.multiModelValue)?void 0:n.some(t=>lo(t,Tr(o.monthPicker?Sn(new Date,e.value):new Date,o.monthPicker?o.year:e.value))):O(e);return{...e,className:{dp__overlay_cell_active:i,dp__overlay_cell:!i,dp__overlay_cell_disabled:a,dp__overlay_cell_active_disabled:a&&i,dp__overlay_cell_pad:!0,dp__cell_in_between:!(null==(r=o.multiModelValue)||!r.length||!o.skipActive)&&I(e.value)}}}))),k=Object(r["computed"])(()=>({dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:l.value,dp__button_bottom:o.autoApply})),C=Object(r["computed"])(()=>{var e,t;return{dp__overlay_container:!0,dp__container_flex:(null==(e=o.items)?void 0:e.length)<=6,dp__container_block:(null==(t=o.items)?void 0:t.length)>6}}),w=e=>{const t=o.maxValue||0===o.maxValue,n=o.minValue||0===o.minValue;return!(!t&&!n)&&(t&&n?+e>+o.maxValue||+e<+o.minValue:t?+e>+o.maxValue:!!n&&+e<+o.minValue)},S=()=>{const e=ka(u),t=ka(d),n=ka(h),r=ka(v),o=n?n.getBoundingClientRect().height:0;t&&(m.value=t.getBoundingClientRect().height-o),e&&r&&(r.scrollTop=e.offsetTop-r.offsetTop-(m.value/2-e.getBoundingClientRect().height)-o)},T=e=>{!o.disabledValues.some(t=>t===e)&&!w(e)&&(n("update:model-value",e),n("selected"))},I=e=>{const t=o.monthPicker?o.year:e;return po(o.multiModelValue,Tr(o.monthPicker?Sn(new Date,f.value||0):new Date,o.monthPicker?t:f.value||t),Tr(o.monthPicker?Sn(new Date,e):new Date,t))},E=()=>{n("toggle"),n("reset-flow")},j=()=>{o.escClose&&E()},D=(e,t,n,r)=>{e&&(t.value===+o.modelValue&&!o.disabledValues.includes(t.value)&&(u.value=e),o.arrowNavigation&&(Array.isArray(p.value[n])?p.value[n][r]=e:p.value[n]=[e],L()))},L=()=>{var e,t;const n=null!=(e=o.headerRefs)&&e.length?[o.headerRefs].concat(p.value):p.value.concat([o.skipButtonRef?[]:[h.value]]);i(Ta(n),null!=(t=o.headerRefs)&&t.length?"monthPicker":"selectionGrid")},A=e=>{o.arrowNavigation||e.stopImmediatePropagation()};return t({focusGrid:_}),(t,n)=>{var o;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{ref_key:"gridWrapRef",ref:d,class:Object(r["normalizeClass"])(b.value),role:"dialog",tabindex:"0",onKeydown:[Object(r["withKeys"])(j,["esc"]),n[0]||(n[0]=Object(r["withKeys"])(e=>A(e),["left"])),n[1]||(n[1]=Object(r["withKeys"])(e=>A(e),["up"])),n[2]||(n[2]=Object(r["withKeys"])(e=>A(e),["down"])),n[3]||(n[3]=Object(r["withKeys"])(e=>A(e),["right"]))]},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(C.value),ref_key:"containerRef",ref:v,role:"grid",style:Object(r["normalizeStyle"])({height:m.value+"px"})},[Object(r["createElementVNode"])("div",ji,[Object(r["renderSlot"])(t.$slots,"header")]),t.$slots.overlay?Object(r["renderSlot"])(t.$slots,"overlay",{key:0}):(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],{key:1},Object(r["renderList"])(M.value,(n,o)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(["dp__overlay_row",{dp__flex_row:M.value.length>=3}]),key:o,role:"row"},[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(n,(n,a)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{role:"gridcell",class:Object(r["normalizeClass"])(y.value),key:n.value,"aria-selected":n.value===e.modelValue&&!e.disabledValues.includes(n.value),"aria-disabled":n.className.dp__overlay_cell_disabled,ref_for:!0,ref:e=>D(e,n,o,a),tabindex:"0",onClick:e=>T(n.value),onKeydown:[Object(r["withKeys"])(e=>T(n.value),["enter"]),Object(r["withKeys"])(e=>T(n.value),["space"])],onMouseover:e=>f.value=n.value},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(n.className)},[t.$slots.item?Object(r["renderSlot"])(t.$slots,"item",{key:0,item:n}):Object(r["createCommentVNode"])("",!0),t.$slots.item?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(n.text),1)],64))],2)],42,Di))),128))],2))),128))],6),t.$slots["button-icon"]?Object(r["withDirectives"])((Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,role:"button","aria-label":null==(o=e.ariaLabels)?void 0:o.toggleOverlay,class:Object(r["normalizeClass"])(k.value),tabindex:"0",ref_key:"toggleButton",ref:h,onClick:E,onKeydown:[Object(r["withKeys"])(E,["enter"]),Object(r["withKeys"])(E,["tab"])]},[Object(r["renderSlot"])(t.$slots,"button-icon")],42,Li)),[[r["vShow"],!Object(r["unref"])(c)(e.type)]]):Object(r["createCommentVNode"])("",!0)],42,Ei)}}}),Ni=["aria-label"],Ri=Object(r["defineComponent"])({__name:"RegularPicker",props:{ariaLabel:{type:String,default:""},showSelectionGrid:{type:Boolean,default:!1},modelValue:{type:Number,default:null},items:{type:Array,default:()=>[]},disabledValues:{type:Array,default:()=>[]},minValue:{type:Number,default:null},maxValue:{type:Number,default:null},slotName:{type:String,default:""},overlaySlot:{type:String,default:""},headerRefs:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},type:{type:String,default:null},transitions:{type:[Object,Boolean],default:!1},arrowNavigation:{type:Boolean,default:!1},autoApply:{type:Boolean,default:!1},textInput:{type:Boolean,default:!1},ariaLabels:{type:Object,default:()=>({})},hideNavigation:{type:Array,default:()=>[]}},emits:["update:model-value","toggle","set-ref"],setup(e,{emit:t}){const n=e,{transitionName:o,showTransition:a}=ci(n.transitions),i=Object(r["ref"])(null);return Object(r["onMounted"])(()=>t("set-ref",i)),(t,n)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],null,[Object(r["createElementVNode"])("button",{type:"button",class:"dp__btn dp__month_year_select",onClick:n[0]||(n[0]=e=>t.$emit("toggle")),onKeydown:[n[1]||(n[1]=Object(r["withKeys"])(Object(r["withModifiers"])(e=>t.$emit("toggle"),["prevent"]),["enter"])),n[2]||(n[2]=Object(r["withKeys"])(Object(r["withModifiers"])(e=>t.$emit("toggle"),["prevent"]),["space"]))],"aria-label":e.ariaLabel,tabindex:"0",ref_key:"elRef",ref:i},[Object(r["renderSlot"])(t.$slots,"default")],40,Ni),Object(r["createVNode"])(r["Transition"],{name:Object(r["unref"])(o)(e.showSelectionGrid),css:Object(r["unref"])(a)},{default:Object(r["withCtx"])(()=>[e.showSelectionGrid?(Object(r["openBlock"])(),Object(r["createBlock"])(Ai,Object(r["mergeProps"])({key:0},{modelValue:e.modelValue,items:e.items,disabledValues:e.disabledValues,minValue:e.minValue,maxValue:e.maxValue,escClose:e.escClose,type:e.type,arrowNavigation:e.arrowNavigation,textInput:e.textInput,autoApply:e.autoApply,ariaLabels:e.ariaLabels,hideNavigation:e.hideNavigation},{"header-refs":[],"onUpdate:modelValue":n[3]||(n[3]=e=>t.$emit("update:model-value",e)),onToggle:n[4]||(n[4]=e=>t.$emit("toggle"))}),Object(r["createSlots"])({"button-icon":Object(r["withCtx"])(()=>[t.$slots["calendar-icon"]?Object(r["renderSlot"])(t.$slots,"calendar-icon",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots["calendar-icon"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])($r),{key:1}))]),_:2},[t.$slots[e.slotName]?{name:"item",fn:Object(r["withCtx"])(({item:n})=>[Object(r["renderSlot"])(t.$slots,e.slotName,{item:n})]),key:"0"}:void 0,t.$slots[e.overlaySlot]?{name:"overlay",fn:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,e.overlaySlot)]),key:"1"}:void 0,t.$slots[e.overlaySlot+"-header"]?{name:"header",fn:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,e.overlaySlot+"-header")]),key:"2"}:void 0]),1040)):Object(r["createCommentVNode"])("",!0)]),_:3},8,["name","css"])],64))}}),xi={class:"dp__month_year_row"},Pi={class:"dp__month_picker_header"},Ui=["aria-label"],Vi=["aria-label"],Bi=["aria-label"],Fi=Object(r["defineComponent"])({__name:"MonthYearPicker",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},internalModelValue:{type:[Date,Array],default:null},...li},emits:["update-month-year","month-year-select","mount","reset-flow","overlay-closed"],setup(e,{expose:t,emit:n}){const o=e,{defaults:a}=Ba(o),{transitionName:i,showTransition:s}=ci(a.value.transitions),{buildMatrix:c}=$a(),{handleMonthYearChange:l,isDisabled:u,updateMonthYear:d}=ti(o,n),p=Object(r["ref"])(!1),f=Object(r["ref"])(!1),h=Object(r["ref"])([null,null,null,null]),m=Object(r["ref"])(null),v=Object(r["ref"])(null),g=Object(r["ref"])(null);Object(r["onMounted"])(()=>{n("mount")});const _=e=>({get:()=>o[e],set:t=>{const r="month"===e?"year":"month";n("update-month-year",{[e]:t,[r]:o[r]}),n("month-year-select","year"===e),"month"===e?P(!0):U(!0)}}),b=Object(r["computed"])(_("month")),y=Object(r["computed"])(_("year")),O=e=>{const t=or(oo(e));return o.year===t},M=Object(r["computed"])(()=>o.monthPicker&&Array.isArray(o.disabledDates)?o.disabledDates.map(e=>oo(e)).filter(e=>O(e)).map(e=>nr(e)):[]),k=Object(r["computed"])(()=>e=>{const t="month"===e;return{showSelectionGrid:(t?p:f).value,items:(t?L:A).value,disabledValues:a.value.filters[t?"months":"years"].concat(M.value),minValue:(t?T:w).value,maxValue:(t?I:S).value,headerRefs:t&&o.monthPicker?[m.value,v.value,g.value]:[],escClose:o.escClose,transitions:a.value.transitions,ariaLabels:a.value.ariaLabels,textInput:o.textInput,autoApply:o.autoApply,arrowNavigation:o.arrowNavigation,hideNavigation:o.hideNavigation}}),C=Object(r["computed"])(()=>e=>({month:o.month,year:o.year,items:"month"===e?o.months:o.years,instance:o.instance,updateMonthYear:d,toggle:"month"===e?P:U})),w=Object(r["computed"])(()=>o.minDate?or(oo(o.minDate)):null),S=Object(r["computed"])(()=>o.maxDate?or(oo(o.maxDate)):null),T=Object(r["computed"])(()=>{if(o.minDate&&w.value){if(w.value>o.year)return 12;if(w.value===o.year)return nr(oo(o.minDate))}return null}),I=Object(r["computed"])(()=>o.maxDate&&S.value?S.value<o.year?-1:S.value===o.year?nr(oo(o.maxDate)):null:null),E=Object(r["computed"])(()=>(o.range||o.multiDates)&&o.internalModelValue&&(o.monthPicker||o.yearPicker)?o.internalModelValue:[]),j=e=>{const t=[],n=e=>e;for(let r=0;r<e.length;r+=3){const o=[e[r],e[r+1],e[r+2]];t.push(n(o))}return t},D=Object(r["computed"])(()=>{const e=o.months.find(e=>e.value===o.month);return e||{text:"",value:0}}),L=Object(r["computed"])(()=>j(o.months)),A=Object(r["computed"])(()=>j(o.years)),N=Object(r["computed"])(()=>!a.value.multiCalendars||(!!o.multiCalendarsSolo||0===o.instance)),R=Object(r["computed"])(()=>!a.value.multiCalendars||(!!o.multiCalendarsSolo||o.instance===a.value.multiCalendars-1)),x=(e,t)=>{e.value=void 0!==t?t:!e.value},P=(e=!1,t)=>{V(e),x(p,t),p.value||n("overlay-closed")},U=(e=!1,t)=>{V(e),x(f,t),f.value||n("overlay-closed")},V=e=>{e||n("reset-flow")},B=(e=!1)=>{u.value(e)||n("update-month-year",{year:e?o.year+1:o.year-1,month:o.month,fromNav:!0})},F=(e,t)=>{o.arrowNavigation&&(h.value[t]=ka(e),c(h.value,"monthYear"))};return t({toggleMonthPicker:P,toggleYearPicker:U,handleMonthYearChange:l}),(t,n)=>{var c,p,h,_,O;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",xi,[t.$slots["month-year"]?Object(r["renderSlot"])(t.$slots,"month-year",Object(r["normalizeProps"])(Object(r["mergeProps"])({key:0},{month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:Object(r["unref"])(d),handleMonthYearChange:Object(r["unref"])(l),instance:e.instance}))):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[t.monthPicker||t.yearPicker?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[N.value&&!t.vertical?(Object(r["openBlock"])(),Object(r["createBlock"])(Ii,{key:0,"aria-label":null==(c=Object(r["unref"])(a).ariaLabels)?void 0:c.prevMonth,disabled:Object(r["unref"])(u)(!1),onActivate:n[0]||(n[0]=e=>Object(r["unref"])(l)(!1)),onSetRef:n[1]||(n[1]=e=>F(e,0))},{default:Object(r["withCtx"])(()=>[t.$slots["arrow-left"]?Object(r["renderSlot"])(t.$slots,"arrow-left",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots["arrow-left"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(Xr),{key:1}))]),_:3},8,["aria-label","disabled"])):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(["dp__month_year_wrap",{dp__year_disable_select:o.disableYearSelect}])},[Object(r["createVNode"])(Ri,Object(r["mergeProps"])({type:"month","slot-name":"month-overlay-val","overlay-slot":"overlay-month","aria-label":null==(p=Object(r["unref"])(a).ariaLabels)?void 0:p.openMonthsOverlay,modelValue:b.value,"onUpdate:modelValue":n[2]||(n[2]=e=>b.value=e)},k.value("month"),{onToggle:P,onSetRef:n[3]||(n[3]=e=>F(e,1))}),Object(r["createSlots"])({default:Object(r["withCtx"])(()=>[t.$slots.month?Object(r["renderSlot"])(t.$slots,"month",Object(r["normalizeProps"])(Object(r["mergeProps"])({key:0},D.value))):Object(r["createCommentVNode"])("",!0),t.$slots.month?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(D.value.text),1)],64))]),_:2},[t.$slots["calendar-icon"]?{name:"calendar-icon",fn:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,"calendar-icon")]),key:"0"}:void 0,t.$slots["month-overlay-value"]?{name:"month-overlay-val",fn:Object(r["withCtx"])(({item:e})=>[Object(r["renderSlot"])(t.$slots,"month-overlay-value",{text:e.text,value:e.value})]),key:"1"}:void 0,t.$slots["month-overlay"]?{name:"overlay-month",fn:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,"month-overlay",Object(r["normalizeProps"])(Object(r["guardReactiveProps"])(C.value("month"))))]),key:"2"}:void 0,t.$slots["month-overlay-header"]?{name:"overlay-month-header",fn:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,"month-overlay-header",{toggle:P})]),key:"3"}:void 0]),1040,["aria-label","modelValue"]),o.disableYearSelect?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Ri,Object(r["mergeProps"])({key:0,type:"year","slot-name":"year-overlay-val","overlay-slot":"overlay-year","aria-label":null==(h=Object(r["unref"])(a).ariaLabels)?void 0:h.openYearsOverlay,modelValue:y.value,"onUpdate:modelValue":n[4]||(n[4]=e=>y.value=e)},k.value("year"),{onToggle:U,onSetRef:n[5]||(n[5]=e=>F(e,2))}),Object(r["createSlots"])({default:Object(r["withCtx"])(()=>[t.$slots.year?Object(r["renderSlot"])(t.$slots,"year",{key:0,year:e.year}):Object(r["createCommentVNode"])("",!0),t.$slots.year?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.year),1)],64))]),_:2},[t.$slots["calendar-icon"]?{name:"calendar-icon",fn:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,"calendar-icon")]),key:"0"}:void 0,t.$slots["year-overlay-value"]?{name:"year-overlay-val",fn:Object(r["withCtx"])(({item:e})=>[Object(r["renderSlot"])(t.$slots,"year-overlay-value",{text:e.text,value:e.value})]),key:"1"}:void 0,t.$slots["year-overlay"]?{name:"overlay-year",fn:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,"year-overlay",Object(r["normalizeProps"])(Object(r["guardReactiveProps"])(C.value("year"))))]),key:"2"}:void 0,t.$slots["year-overlay-header"]?{name:"overlay-year-header",fn:Object(r["withCtx"])(()=>[Object(r["renderSlot"])(t.$slots,"year-overlay-header",{toggle:U})]),key:"3"}:void 0]),1040,["aria-label","modelValue"]))],2),N.value&&t.vertical?(Object(r["openBlock"])(),Object(r["createBlock"])(Ii,{key:1,"aria-label":null==(_=Object(r["unref"])(a).ariaLabels)?void 0:_.prevMonth,disabled:Object(r["unref"])(u)(!1),onActivate:n[6]||(n[6]=e=>Object(r["unref"])(l)(!1))},{default:Object(r["withCtx"])(()=>[t.$slots["arrow-up"]?Object(r["renderSlot"])(t.$slots,"arrow-up",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots["arrow-up"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(eo),{key:1}))]),_:3},8,["aria-label","disabled"])):Object(r["createCommentVNode"])("",!0),R.value?(Object(r["openBlock"])(),Object(r["createBlock"])(Ii,{key:2,ref:"rightIcon",disabled:Object(r["unref"])(u)(!0),"aria-label":null==(O=Object(r["unref"])(a).ariaLabels)?void 0:O.nextMonth,onActivate:n[7]||(n[7]=e=>Object(r["unref"])(l)(!0)),onSetRef:n[8]||(n[8]=e=>F(e,3))},{default:Object(r["withCtx"])(()=>[t.$slots[t.vertical?"arrow-down":"arrow-right"]?Object(r["renderSlot"])(t.$slots,t.vertical?"arrow-down":"arrow-right",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots[t.vertical?"arrow-down":"arrow-right"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(t.vertical?Object(r["unref"])(to):Object(r["unref"])(Qr)),{key:1}))]),_:3},8,["disabled","aria-label"])):Object(r["createCommentVNode"])("",!0)],64)),t.monthPicker?(Object(r["openBlock"])(),Object(r["createBlock"])(Ai,Object(r["mergeProps"])({key:1},k.value("month"),{"skip-active":t.range,"internal-model-value":e.internalModelValue,year:e.year,"auto-apply-month":t.autoApplyMonth,"multi-model-value":E.value,"month-picker":"",modelValue:b.value,"onUpdate:modelValue":n[17]||(n[17]=e=>b.value=e),onToggle:P,onSelected:n[18]||(n[18]=e=>t.$emit("overlay-closed"))}),Object(r["createSlots"])({header:Object(r["withCtx"])(()=>{var o,c,l;return[Object(r["createElementVNode"])("div",Pi,[Object(r["createElementVNode"])("div",{class:"dp__month_year_col_nav",tabindex:"0",ref_key:"mpPrevIconRef",ref:m,onClick:n[9]||(n[9]=e=>B(!1)),onKeydown:n[10]||(n[10]=Object(r["withKeys"])(e=>B(!1),["enter"]))},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(["dp__inner_nav",{dp__inner_nav_disabled:Object(r["unref"])(u)(!1)}]),role:"button","aria-label":null==(o=Object(r["unref"])(a).ariaLabels)?void 0:o.prevMonth},[t.$slots["arrow-left"]?Object(r["renderSlot"])(t.$slots,"arrow-left",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots["arrow-left"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(Xr),{key:1}))],10,Ui)],544),Object(r["createElementVNode"])("div",{class:"dp__pointer",role:"button",ref_key:"mpYearButtonRef",ref:v,"aria-label":null==(c=Object(r["unref"])(a).ariaLabels)?void 0:c.openYearsOverlay,tabindex:"0",onClick:n[11]||(n[11]=()=>U(!1)),onKeydown:n[12]||(n[12]=Object(r["withKeys"])(()=>U(!1),["enter"]))},[t.$slots.year?Object(r["renderSlot"])(t.$slots,"year",{key:0,year:e.year}):Object(r["createCommentVNode"])("",!0),t.$slots.year?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.year),1)],64))],40,Vi),Object(r["createElementVNode"])("div",{class:"dp__month_year_col_nav",tabindex:"0",ref_key:"mpNextIconRef",ref:g,onClick:n[13]||(n[13]=e=>B(!0)),onKeydown:n[14]||(n[14]=Object(r["withKeys"])(e=>B(!0),["enter"]))},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(["dp__inner_nav",{dp__inner_nav_disabled:Object(r["unref"])(u)(!0)}]),role:"button","aria-label":null==(l=Object(r["unref"])(a).ariaLabels)?void 0:l.nextMonth},[t.$slots["arrow-right"]?Object(r["renderSlot"])(t.$slots,"arrow-right",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots["arrow-right"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(Qr),{key:1}))],10,Bi)],544)]),Object(r["createVNode"])(r["Transition"],{name:Object(r["unref"])(i)(f.value),css:Object(r["unref"])(s)},{default:Object(r["withCtx"])(()=>[f.value?(Object(r["openBlock"])(),Object(r["createBlock"])(Ai,Object(r["mergeProps"])({key:0},k.value("year"),{modelValue:y.value,"onUpdate:modelValue":n[15]||(n[15]=e=>y.value=e),onToggle:U,onSelected:n[16]||(n[16]=e=>t.$emit("overlay-closed"))}),Object(r["createSlots"])({"button-icon":Object(r["withCtx"])(()=>[t.$slots["calendar-icon"]?Object(r["renderSlot"])(t.$slots,"calendar-icon",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots["calendar-icon"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])($r),{key:1}))]),_:2},[t.$slots["year-overlay-value"]?{name:"item",fn:Object(r["withCtx"])(({item:e})=>[Object(r["renderSlot"])(t.$slots,"year-overlay-value",{text:e.text,value:e.value})]),key:"0"}:void 0]),1040,["modelValue"])):Object(r["createCommentVNode"])("",!0)]),_:3},8,["name","css"])]}),_:2},[t.$slots["month-overlay-value"]?{name:"item",fn:Object(r["withCtx"])(({item:e})=>[Object(r["renderSlot"])(t.$slots,"month-overlay-value",{text:e.text,value:e.value})]),key:"0"}:void 0]),1040,["skip-active","internal-model-value","year","auto-apply-month","multi-model-value","modelValue"])):Object(r["createCommentVNode"])("",!0),t.yearPicker?(Object(r["openBlock"])(),Object(r["createBlock"])(Ai,Object(r["mergeProps"])({key:2},k.value("year"),{modelValue:y.value,"onUpdate:modelValue":n[19]||(n[19]=e=>y.value=e),"multi-model-value":E.value,"skip-active":t.range,"skip-button-ref":"","year-picker":"",onToggle:U,onSelected:n[20]||(n[20]=e=>t.$emit("overlay-closed"))}),Object(r["createSlots"])({_:2},[t.$slots["year-overlay-value"]?{name:"item",fn:Object(r["withCtx"])(({item:e})=>[Object(r["renderSlot"])(t.$slots,"year-overlay-value",{text:e.text,value:e.value})]),key:"0"}:void 0]),1040,["modelValue","multi-model-value","skip-active"])):Object(r["createCommentVNode"])("",!0)],64))])}}}),Gi={key:0,class:"dp__time_input"},Hi=["aria-label","onKeydown","onClick"],Yi=Object(r["createElementVNode"])("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),zi=Object(r["createElementVNode"])("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),qi=["aria-label","onKeydown","onClick"],Wi=["aria-label","onKeydown","onClick"],Ki=Object(r["createElementVNode"])("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),$i=Object(r["createElementVNode"])("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),Ji={key:0},Xi=["aria-label","onKeydown"],Qi=Object(r["defineComponent"])({__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},...li},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const o=e,{setTimePickerElements:a,setTimePickerBackRef:i}=$a(),{defaults:s}=Ba(o),{transitionName:c,showTransition:l}=ci(s.value.transitions),u=Object(r["reactive"])({hours:!1,minutes:!1,seconds:!1}),d=Object(r["ref"])("AM"),p=Object(r["ref"])(null),f=Object(r["ref"])([]);Object(r["onMounted"])(()=>{n("mounted")});const h=e=>Tn(new Date,{hours:e.hours,minutes:e.minutes,seconds:o.enableSeconds?e.seconds:0,milliseconds:0}),m=Object(r["computed"])(()=>({hours:o.hours,minutes:o.minutes,seconds:o.seconds})),v=Object(r["computed"])(()=>e=>!w(+o[e]+ +o[e+"Increment"],e)),g=Object(r["computed"])(()=>e=>!w(+o[e]-+o[e+"Increment"],e)),_=(e,t)=>jr(Tn(oo(),e),t),b=(e,t)=>Kr(Tn(oo(),e),t),y=Object(r["computed"])(()=>({dp__time_col:!0,dp__time_col_block:!o.timePickerInline,dp__time_col_reg_block:!o.enableSeconds&&o.is24&&!o.timePickerInline,dp__time_col_reg_inline:!o.enableSeconds&&o.is24&&o.timePickerInline,dp__time_col_reg_with_button:!o.enableSeconds&&!o.is24,dp__time_col_sec:o.enableSeconds&&o.is24,dp__time_col_sec_with_button:o.enableSeconds&&!o.is24})),O=Object(r["computed"])(()=>{const e=[{type:"hours"},{type:"",separator:!0},{type:"minutes"}];return o.enableSeconds?e.concat([{type:"",separator:!0},{type:"seconds"}]):e}),M=Object(r["computed"])(()=>O.value.filter(e=>!e.separator)),k=Object(r["computed"])(()=>e=>{if("hours"===e){const e=D(+o.hours);return{text:e<10?"0"+e:""+e,value:e}}return{text:o[e]<10?"0"+o[e]:""+o[e],value:o[e]}}),C=e=>{const t=o.is24?24:12,n="hours"===e?t:60,r=+o[e+"GridIncrement"],a="hours"!==e||o.is24?0:r,i=[];for(let o=a;o<n;o+=r)i.push({value:o,text:o<10?"0"+o:""+o});return"hours"===e&&!o.is24&&i.push({value:0,text:"12"}),va(i)},w=(e,t)=>{const n=o.minTime?h(ho(o.minTime)):null,r=o.maxTime?h(ho(o.maxTime)):null,a=h(ho(m.value,t,e));return n&&r?(Ln(a,r)||An(a,r))&&(Nn(a,n)||An(a,n)):n?Nn(a,n)||An(a,n):!r||(Ln(a,r)||An(a,r))},S=Object(r["computed"])(()=>e=>C(e).flat().filter(e=>Ea(e.value)).map(e=>e.value).filter(t=>!w(t,e))),T=e=>o[`no${e[0].toUpperCase()+e.slice(1)}Overlay`],I=e=>{T(e)||(u[e]=!u[e],u[e]||n("overlay-closed"))},E=e=>"hours"===e?Rn:"minutes"===e?xn:Pn,j=(e,t=!0)=>{const r=t?_:b,a=t?+o[e+"Increment"]:-+o[e+"Increment"];w(+o[e]+a,e)&&n("update:"+e,E(e)(r({[e]:+o[e]},{[e]:+o[e+"Increment"]})))},D=e=>o.is24?e:(d.value=e>=12?"PM":"AM",Ma(e)),L=()=>{"PM"===d.value?(d.value="AM",n("update:hours",o.hours-12)):(d.value="PM",n("update:hours",o.hours+12)),n("am-pm-change",d.value)},A=e=>{u[e]=!0},N=(e,t,n)=>{if(e&&o.arrowNavigation){Array.isArray(f.value[t])?f.value[t][n]=e:f.value[t]=[e];const r=f.value.reduce((e,t)=>t.map((n,r)=>[...e[r]||[],t[r]]),[]);i(o.closeTimePickerBtn),p.value&&(r[1]=r[1].concat(p.value)),a(r,o.order)}},R=(e,t)=>"hours"!==e||o.is24?n("update:"+e,t):n("update:"+e,"PM"===d.value?t+12:t);return t({openChildCmp:A}),(e,t)=>{var n;return e.disabled?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Gi,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(O.value,(t,n)=>{var a,i,c;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:n,class:Object(r["normalizeClass"])(y.value)},[t.separator?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[Object(r["createTextVNode"])(" : ")],64)):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createElementVNode"])("button",{type:"button",class:Object(r["normalizeClass"])({dp__btn:!0,dp__inc_dec_button:!o.timePickerInline,dp__inc_dec_button_inline:o.timePickerInline,dp__tp_inline_btn_top:o.timePickerInline,dp__inc_dec_button_disabled:v.value(t.type)}),"aria-label":null==(a=Object(r["unref"])(s).ariaLabels)?void 0:a.incrementValue(t.type),tabindex:"0",onKeydown:[Object(r["withKeys"])(e=>j(t.type),["enter"]),Object(r["withKeys"])(e=>j(t.type),["space"])],onClick:e=>j(t.type),ref_for:!0,ref:e=>N(e,n,0)},[o.timePickerInline?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Yi,zi],64)):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[e.$slots["arrow-up"]?Object(r["renderSlot"])(e.$slots,"arrow-up",{key:0}):Object(r["createCommentVNode"])("",!0),e.$slots["arrow-up"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(eo),{key:1}))],64))],42,Hi),Object(r["createElementVNode"])("button",{type:"button","aria-label":null==(i=Object(r["unref"])(s).ariaLabels)?void 0:i.openTpOverlay(t.type),class:Object(r["normalizeClass"])(["dp__btn",T(t.type)?void 0:{dp__time_display:!0,dp__time_display_block:!o.timePickerInline,dp__time_display_inline:o.timePickerInline}]),tabindex:"0",onKeydown:[Object(r["withKeys"])(e=>I(t.type),["enter"]),Object(r["withKeys"])(e=>I(t.type),["space"])],onClick:e=>I(t.type),ref_for:!0,ref:e=>N(e,n,1)},[e.$slots[t.type]?Object(r["renderSlot"])(e.$slots,t.type,{key:0,text:k.value(t.type).text,value:k.value(t.type).value}):Object(r["createCommentVNode"])("",!0),e.$slots[t.type]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(k.value(t.type).text),1)],64))],42,qi),Object(r["createElementVNode"])("button",{type:"button",class:Object(r["normalizeClass"])({dp__btn:!0,dp__inc_dec_button:!o.timePickerInline,dp__inc_dec_button_inline:o.timePickerInline,dp__tp_inline_btn_bottom:o.timePickerInline,dp__inc_dec_button_disabled:g.value(t.type)}),"aria-label":null==(c=Object(r["unref"])(s).ariaLabels)?void 0:c.decrementValue(t.type),tabindex:"0",onKeydown:[Object(r["withKeys"])(e=>j(t.type,!1),["enter"]),Object(r["withKeys"])(e=>j(t.type,!1),["space"])],onClick:e=>j(t.type,!1),ref_for:!0,ref:e=>N(e,n,2)},[o.timePickerInline?(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Ki,$i],64)):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:0},[e.$slots["arrow-down"]?Object(r["renderSlot"])(e.$slots,"arrow-down",{key:0}):Object(r["createCommentVNode"])("",!0),e.$slots["arrow-down"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(to),{key:1}))],64))],42,Wi)],64))],2)}),128)),e.is24?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",Ji,[e.$slots["am-pm-button"]?Object(r["renderSlot"])(e.$slots,"am-pm-button",{key:0,toggle:L,value:d.value}):Object(r["createCommentVNode"])("",!0),e.$slots["am-pm-button"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:1,ref_key:"amPmButton",ref:p,type:"button",class:"dp__pm_am_button",role:"button","aria-label":null==(n=Object(r["unref"])(s).ariaLabels)?void 0:n.amPmButton,tabindex:"0",onClick:L,onKeydown:[Object(r["withKeys"])(Object(r["withModifiers"])(L,["prevent"]),["enter"]),Object(r["withKeys"])(Object(r["withModifiers"])(L,["prevent"]),["space"])]},Object(r["toDisplayString"])(d.value),41,Xi))])),(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(M.value,(n,o)=>(Object(r["openBlock"])(),Object(r["createBlock"])(r["Transition"],{key:o,name:Object(r["unref"])(c)(u[n.type]),css:Object(r["unref"])(l)},{default:Object(r["withCtx"])(()=>[u[n.type]?(Object(r["openBlock"])(),Object(r["createBlock"])(Ai,{key:0,items:C(n.type),"disabled-values":Object(r["unref"])(s).filters.times[n.type].concat(S.value(n.type)),"esc-close":e.escClose,"aria-labels":Object(r["unref"])(s).ariaLabels,"hide-navigation":e.hideNavigation,"onUpdate:modelValue":e=>R(n.type,e),onSelected:e=>I(n.type),onToggle:e=>I(n.type),onResetFlow:t[0]||(t[0]=t=>e.$emit("reset-flow")),type:n.type},Object(r["createSlots"])({"button-icon":Object(r["withCtx"])(()=>[e.$slots["clock-icon"]?Object(r["renderSlot"])(e.$slots,"clock-icon",{key:0}):Object(r["createCommentVNode"])("",!0),e.$slots["clock-icon"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(Zr),{key:1}))]),_:2},[e.$slots[n.type+"-overlay-value"]?{name:"item",fn:Object(r["withCtx"])(({item:t})=>[Object(r["renderSlot"])(e.$slots,n.type+"-overlay-value",{text:t.text,value:t.value})]),key:"0"}:void 0]),1032,["items","disabled-values","esc-close","aria-labels","hide-navigation","onUpdate:modelValue","onSelected","onToggle","type"])):Object(r["createCommentVNode"])("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),Zi=["aria-label"],es=["tabindex"],ts=["aria-label"],ns=Object(r["defineComponent"])({__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},internalModelValue:{type:[Date,Array],default:null},...li},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:t,emit:n}){const o=e,{buildMatrix:a,setTimePicker:i}=$a(),s=Object(r["useSlots"])(),{hideNavigationButtons:c,defaults:l}=Ba(o),{transitionName:u,showTransition:d}=ci(l.value.transitions),p=Object(r["ref"])(null),f=Object(r["ref"])(null),h=Object(r["ref"])([]),m=Object(r["ref"])(null);Object(r["onMounted"])(()=>{n("mount"),!o.timePicker&&o.arrowNavigation?a([ka(p.value)],"time"):i(!0,o.timePicker)});const v=Object(r["computed"])(()=>!o.range||!o.modelAuto||wa(o.internalModelValue)),g=Object(r["ref"])(!1),_=e=>({hours:Array.isArray(o.hours)?o.hours[e]:o.hours,minutes:Array.isArray(o.minutes)?o.minutes[e]:o.minutes,seconds:Array.isArray(o.seconds)?o.seconds[e]:o.seconds}),b=Object(r["computed"])(()=>{const e=[];if(o.range)for(let t=0;t<2;t++)e.push(_(t));else e.push(_(0));return e}),y=(e,t=!1,a="")=>{t||n("reset-flow"),g.value=e,n(e?"overlay-opened":"overlay-closed"),o.arrowNavigation&&i(e),Object(r["nextTick"])(()=>{""!==a&&h.value[0]&&h.value[0].openChildCmp(a)})},O=Object(r["computed"])(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:o.autoApply&&!o.keepActionRow})),M=si(s,"timePicker"),k=(e,t,n)=>o.range?0===t?[e,b.value[1][n]]:[b.value[0][n],e]:e,C=e=>{n("update:hours",e)},w=e=>{n("update:minutes",e)},S=e=>{n("update:seconds",e)},T=()=>{if(m.value){const e=Da(m.value);e&&e.focus({preventScroll:!0})}};return t({toggleTimePicker:y}),(t,n)=>{var o;return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",null,[t.timePicker||t.timePickerInline?Object(r["createCommentVNode"])("",!0):Object(r["withDirectives"])((Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:0,type:"button",class:Object(r["normalizeClass"])(O.value),"aria-label":null==(o=Object(r["unref"])(l).ariaLabels)?void 0:o.openTimePicker,tabindex:"0",ref_key:"openTimePickerBtn",ref:p,onKeydown:[n[0]||(n[0]=Object(r["withKeys"])(e=>y(!0),["enter"])),n[1]||(n[1]=Object(r["withKeys"])(e=>y(!0),["space"]))],onClick:n[2]||(n[2]=e=>y(!0))},[t.$slots["clock-icon"]?Object(r["renderSlot"])(t.$slots,"clock-icon",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots["clock-icon"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])(Zr),{key:1}))],42,Zi)),[[r["vShow"],!Object(r["unref"])(c)("time")]]),Object(r["createVNode"])(r["Transition"],{name:Object(r["unref"])(u)(g.value),css:Object(r["unref"])(d)&&!t.timePickerInline},{default:Object(r["withCtx"])(()=>{var o;return[g.value||t.timePicker||t.timePickerInline?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,class:Object(r["normalizeClass"])({dp__overlay:!t.timePickerInline}),ref_key:"overlayRef",ref:m,tabindex:t.timePickerInline?void 0:0},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(t.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[t.$slots["time-picker-overlay"]?Object(r["renderSlot"])(t.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:C,setMinutes:w,setSeconds:S}):Object(r["createCommentVNode"])("",!0),t.$slots["time-picker-overlay"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:1,class:Object(r["normalizeClass"])(t.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(b.value,(e,o)=>Object(r["withDirectives"])((Object(r["openBlock"])(),Object(r["createBlock"])(Qi,Object(r["mergeProps"])({key:o},{...t.$props,order:o,hours:e.hours,minutes:e.minutes,seconds:e.seconds,closeTimePickerBtn:f.value,disabled:0===o?t.fixedStart:t.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:h,"onUpdate:hours":e=>C(k(e,o,"hours")),"onUpdate:minutes":e=>w(k(e,o,"minutes")),"onUpdate:seconds":e=>S(k(e,o,"seconds")),onMounted:T,onOverlayClosed:T,onAmPmChange:n[3]||(n[3]=e=>t.$emit("am-pm-change",e))}),Object(r["createSlots"])({_:2},[Object(r["renderList"])(Object(r["unref"])(M),(e,n)=>({name:e,fn:Object(r["withCtx"])(n=>[Object(r["renderSlot"])(t.$slots,e,Object(r["normalizeProps"])(Object(r["guardReactiveProps"])(n)))])}))]),1040,["onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[r["vShow"],0===o||v.value]])),128))],2)),t.timePicker||t.timePickerInline?Object(r["createCommentVNode"])("",!0):Object(r["withDirectives"])((Object(r["openBlock"])(),Object(r["createElementBlock"])("button",{key:2,type:"button",ref_key:"closeTimePickerBtn",ref:f,class:Object(r["normalizeClass"])(O.value),"aria-label":null==(o=Object(r["unref"])(l).ariaLabels)?void 0:o.closeTimePicker,tabindex:"0",onKeydown:[n[4]||(n[4]=Object(r["withKeys"])(e=>y(!1),["enter"])),n[5]||(n[5]=Object(r["withKeys"])(e=>y(!1),["space"]))],onClick:n[6]||(n[6]=e=>y(!1))},[t.$slots["calendar-icon"]?Object(r["renderSlot"])(t.$slots,"calendar-icon",{key:0}):Object(r["createCommentVNode"])("",!0),t.$slots["calendar-icon"]?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["unref"])($r),{key:1}))],42,ts)),[[r["vShow"],!Object(r["unref"])(c)("time")]])],2)],10,es)):Object(r["createCommentVNode"])("",!0)]}),_:3},8,["name","css"])])}}}),rs=(e,t)=>{const{isDisabled:n,matchDate:o,getWeekFromDate:a,defaults:i}=Ba(t),s=Object(r["ref"])(null),c=Object(r["ref"])(oo()),l=e=>{!e.current&&t.hideOffsetDates||(s.value=e.value)},u=()=>{s.value=null},d=n=>!(Array.isArray(e.value)&&t.range&&e.value[0]&&s.value)||(n?uo(s.value,e.value[0]):co(s.value,e.value[0])),p=(t,n)=>{const r=()=>e.value?n?e.value[0]||null:e.value[1]:null,o=e.value&&Array.isArray(e.value)?r():null;return lo(oo(t.value),o)},f=t=>{const n=Array.isArray(e.value)?e.value[0]:null;return!t||!co(s.value||null,n)},h=(n,r=!0)=>(t.range||t.weekPicker)&&Array.isArray(e.value)&&2===e.value.length?!(t.hideOffsetDates&&!n.current)&&lo(oo(n.value),e.value[r?0:1]):!!t.range&&(p(n,r)&&f(r)||lo(n.value,Array.isArray(e.value)?e.value[0]:null)&&d(r)),m=(t,n,r)=>!(!Array.isArray(e.value)||!e.value[0]||1!==e.value.length)&&(!t&&(r?uo(e.value[0],n.value):co(e.value[0],n.value))),v=n=>!(!e.value||t.hideOffsetDates&&!n.current)&&(t.range?!(!t.modelAuto||!Array.isArray(e.value))&&lo(n.value,e.value[0]?e.value[0]:c.value):t.multiDates&&Array.isArray(e.value)?e.value.some(e=>lo(e,n.value)):lo(n.value,e.value?e.value:c.value)),g=e=>{if(t.autoRange||t.weekPicker){if(s.value){if(t.hideOffsetDates&&!e.current)return!1;const n=Ir(s.value,+t.autoRange),r=a(oo(s.value));return t.weekPicker?lo(r[1],oo(e.value)):lo(n,oo(e.value))}return!1}return!1},_=e=>{if(t.autoRange||t.weekPicker){if(s.value){const n=Ir(s.value,+t.autoRange);if(t.hideOffsetDates&&!e.current)return!1;const r=a(oo(s.value));return t.weekPicker?uo(e.value,r[0])&&co(e.value,r[1]):uo(e.value,s.value)&&co(e.value,n)}return!1}return!1},b=e=>{if(t.autoRange||t.weekPicker){if(s.value){if(t.hideOffsetDates&&!e.current)return!1;const n=a(oo(s.value));return t.weekPicker?lo(n[0],e.value):lo(s.value,e.value)}return!1}return!1},y=t=>po(e.value,s.value,t.value),O=()=>!(!t.modelAuto||!Array.isArray(t.internalModelValue))&&!!t.internalModelValue[0],M=()=>!t.modelAuto||wa(t.internalModelValue),k=r=>{if(Array.isArray(e.value)&&e.value.length||t.weekPicker)return!1;const o=!t.range||!h(r)&&!h(r,!1);return!n(r.value)&&!v(r)&&!(!r.current&&t.hideOffsetDates)&&o},C=e=>t.range?!!t.modelAuto&&(O()&&v(e)):v(e),w=e=>{var n;return!!t.highlight&&o(e.value,null!=(n=t.arrMapValues)&&n.highlightedDates?t.arrMapValues.highlightedDates:t.highlight)},S=e=>n(e.value)&&!1===t.highlightDisabledDays,T=e=>t.highlightWeekDays&&t.highlightWeekDays.includes(e.value.getDay()),I=e=>!(!t.range&&!t.weekPicker||i.value.multiCalendars>0&&!e.current||!M()||!e.current&&t.hideOffsetDates||v(e))&&y(e),E=e=>{const{isRangeStart:r,isRangeEnd:o}=L(e),a=!!t.range&&(r||o);return{dp__cell_offset:!e.current,dp__pointer:!t.disabled&&!(!e.current&&t.hideOffsetDates)&&!n(e.value),dp__cell_disabled:n(e.value),dp__cell_highlight:!S(e)&&(w(e)||T(e))&&!C(e)&&!a,dp__cell_highlight_active:!S(e)&&(w(e)||T(e))&&C(e),dp__today:!t.noToday&&lo(e.value,c.value)&&e.current}},j=e=>({dp__active_date:C(e),dp__date_hover:k(e)}),D=e=>({...A(e),...N(e),dp__range_between_week:I(e)&&t.weekPicker}),L=e=>{const t=i.value.multiCalendars>0?e.current&&h(e)&&M():h(e)&&M(),n=i.value.multiCalendars>0?e.current&&h(e,!1)&&M():h(e,!1)&&M();return{isRangeStart:t,isRangeEnd:n}},A=e=>{const{isRangeStart:n,isRangeEnd:r}=L(e);return{dp__range_start:n,dp__range_end:r,dp__range_between:I(e)&&!t.weekPicker,dp__date_hover_start:m(k(e),e,!0),dp__date_hover_end:m(k(e),e,!1)}},N=e=>({...A(e),dp__cell_auto_range:_(e),dp__cell_auto_range_start:b(e),dp__cell_auto_range_end:g(e)}),R=e=>t.range?t.autoRange?N(e):t.modelAuto?{...j(e),...A(e)}:A(e):t.weekPicker?D(e):j(e);return{setHoverDate:l,clearHoverDate:u,getDayClassData:e=>t.hideOffsetDates&&!e.current?{}:{...E(e),...R(e),[t.dayClass?t.dayClass(e.value):""]:!0,[t.calendarCellClassName]:!!t.calendarCellClassName}}},os=["id","onKeydown"],as={key:0,class:"dp__sidebar_left"},is={key:1,class:"dp__preset_ranges"},ss=["onClick"],cs={key:2,class:"dp__sidebar_right"},ls={key:3,class:"dp__action_extra"},us=Object(r["defineComponent"])({__name:"DatepickerMenu",props:{openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},arrMapValues:{type:Object,default:()=>({})},...li},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end"],setup(e,{expose:t,emit:n}){const o=e,a=Object(r["computed"])(()=>{const{openOnTop:e,internalModelValue:t,arrMapValues:n,...r}=o;return r}),{setMenuFocused:i,setShiftKey:s,control:c}=go(),{getCalendarDays:l,defaults:u}=Ba(o),d=Object(r["useSlots"])(),p=Object(r["ref"])(null),f=Object(r["reactive"])({timePicker:!(o.enableTimePicker&&!o.timePicker&&!o.monthPicker),monthYearInput:!!o.timePicker,calendar:!1}),h=Object(r["ref"])([]),m=Object(r["ref"])([]),v=Object(r["ref"])(null),g=Object(r["ref"])(null),_=Object(r["ref"])(0),b=Object(r["ref"])(!1),y=Object(r["ref"])(0);Object(r["onMounted"])(()=>{var e;b.value=!0,(null==(e=o.presetRanges)||!e.length)&&!d["left-sidebar"]&&!d["right-sidebar"]&&(ne(),window.addEventListener("resize",ne));const t=ka(g);if(t&&!o.textInput&&!o.inline&&(i(!0),S()),t){const e=e=>{o.allowPreventDefault&&e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()};t.addEventListener("pointerdown",e),t.addEventListener("mousedown",e)}}),Object(r["onUnmounted"])(()=>{window.removeEventListener("resize",ne)});const{arrowRight:O,arrowLeft:M,arrowDown:k,arrowUp:C}=$a(),w=e=>{e||0===e?m.value[e].triggerTransition(D.value(e),L.value(e)):m.value.forEach((e,t)=>e.triggerTransition(D.value(t),L.value(t)))},S=()=>{const e=ka(g);e&&e.focus({preventScroll:!0})},T=()=>{var e;null!=(e=o.flow)&&e.length&&-1!==y.value&&(y.value+=1,n("flow-step",y.value),_e())},I=()=>{y.value=-1},{calendars:E,modelValue:j,month:D,year:L,time:A,updateTime:N,updateMonthYear:R,selectDate:x,getWeekNum:P,monthYearSelect:U,handleScroll:V,handleArrow:B,handleSwipe:F,getMarker:G,selectCurrentDate:H,presetDateRange:Y}=Za(o,n,T,w,y),{setHoverDate:z,clearHoverDate:q,getDayClassData:W}=rs(j,o),K={modelValue:j,month:D,year:L,time:A,updateTime:N,updateMonthYear:R,selectDate:x,presetDateRange:Y,handleMonthYearChange:e=>{h.value[0]&&h.value[0].handleMonthYearChange(e)}};Object(r["watch"])(E,()=>{o.openOnTop&&setTimeout(()=>{n("recalculate-position")},0)},{deep:!0});const $=si(d,"calendar"),J=si(d,"action"),X=si(d,"timePicker"),Q=si(d,"monthYear"),Z=Object(r["computed"])(()=>o.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),ee=Object(r["computed"])(()=>ya(o.yearRange,o.reverseYears)),te=Object(r["computed"])(()=>Oa(o.formatLocale,o.locale,o.monthNameFormat)),ne=()=>{const e=ka(p);e&&(_.value=e.getBoundingClientRect().width)},re=Object(r["computed"])(()=>e=>l(D.value(e),L.value(e))),oe=Object(r["computed"])(()=>u.value.multiCalendars>0?[...Array(u.value.multiCalendars).keys()]:[0]),ae=Object(r["computed"])(()=>e=>1===e),ie=Object(r["computed"])(()=>o.monthPicker||o.timePicker||o.yearPicker),se=Object(r["computed"])(()=>({dp__menu_inner:!0,dp__flex_display:u.value.multiCalendars>0})),ce=Object(r["computed"])(()=>({dp__instance_calendar:u.value.multiCalendars>0})),le=Object(r["computed"])(()=>({dp__menu_disabled:o.disabled,dp__menu_readonly:o.readonly})),ue=Object(r["computed"])(()=>e=>pe(re,e)),de=Object(r["computed"])(()=>({dp__menu:!0,dp__menu_index:!o.inline,dp__relative:o.inline,[o.menuClassName]:!!o.menuClassName})),pe=(e,t)=>e.value(t).map(e=>({...e,days:e.days.map(e=>(e.marker=G(e),e.classData=W(e),e))})),fe=e=>{e.stopPropagation(),e.stopImmediatePropagation()},he=()=>{o.escClose&&n("close-picker")},me=(e,t=!1)=>{x(e,t),o.spaceConfirm&&n("select-date")},ve=e=>{var t;null!=(t=o.flow)&&t.length&&(f[e]=!0,Object.keys(f).filter(e=>!f[e]).length||_e())},ge=(e,t,n,r,...a)=>{if(o.flow[y.value]===e){const e=r?t.value[0]:t.value;e&&e[n](...a)}},_e=()=>{ge("month",h,"toggleMonthPicker",!0,!0),ge("year",h,"toggleYearPicker",!0,!0),ge("calendar",v,"toggleTimePicker",!1,!1,!0),ge("time",v,"toggleTimePicker",!1,!0,!0);const e=o.flow[y.value];("hours"===e||"minutes"===e||"seconds"===e)&&ge(e,v,"toggleTimePicker",!1,!0,!0,e)},be=e=>{if(o.arrowNavigation){if("up"===e)return C();if("down"===e)return k();if("left"===e)return M();if("right"===e)return O()}else"left"===e||"up"===e?B("left",0,"up"===e):B("right",0,"down"===e)},ye=e=>{s(e.shiftKey),!o.disableMonthYearSelect&&"Tab"===e.code&&e.target.classList.contains("dp__menu")&&c.value.shiftKeyInMenu&&(e.preventDefault(),e.stopImmediatePropagation(),n("close-picker"))},Oe=()=>{S(),n("time-picker-close")},Me=e=>{var t,n,r,o,a;null==(t=v.value)||t.toggleTimePicker(!1,!1),null==(r=null==(n=h.value)?void 0:n[e])||r.toggleMonthPicker(!1,!1),null==(a=null==(o=h.value)?void 0:o[e])||a.toggleYearPicker(!1,!1)};return t({updateMonthYear:R,switchView:(e,t=0)=>{var n,r,o,a,i;return"month"===e?null==(r=null==(n=h.value)?void 0:n[t])?void 0:r.toggleMonthPicker(!1,!0):"year"===e?null==(a=null==(o=h.value)?void 0:o[t])?void 0:a.toggleYearPicker(!1,!0):"time"===e?null==(i=v.value)?void 0:i.toggleTimePicker(!0,!1):Me(t)}}),(t,n)=>{var o;return Object(r["openBlock"])(),Object(r["createBlock"])(r["Transition"],{appear:"",name:null==(o=Object(r["unref"])(u).transitions)?void 0:o.menuAppear,css:!!t.transitions},{default:Object(r["withCtx"])(()=>{var o,i;return[Object(r["createElementVNode"])("div",{id:t.uid?"dp-menu-"+t.uid:void 0,tabindex:"0",ref_key:"dpMenuRef",ref:g,role:"dialog",class:Object(r["normalizeClass"])(de.value),onMouseleave:n[14]||(n[14]=(...e)=>Object(r["unref"])(q)&&Object(r["unref"])(q)(...e)),onClick:fe,onKeydown:[Object(r["withKeys"])(he,["esc"]),n[15]||(n[15]=Object(r["withKeys"])(Object(r["withModifiers"])(e=>be("left"),["prevent"]),["left"])),n[16]||(n[16]=Object(r["withKeys"])(Object(r["withModifiers"])(e=>be("up"),["prevent"]),["up"])),n[17]||(n[17]=Object(r["withKeys"])(Object(r["withModifiers"])(e=>be("down"),["prevent"]),["down"])),n[18]||(n[18]=Object(r["withKeys"])(Object(r["withModifiers"])(e=>be("right"),["prevent"]),["right"])),ye]},[(t.disabled||t.readonly)&&t.inline?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:0,class:Object(r["normalizeClass"])(le.value)},null,2)):Object(r["createCommentVNode"])("",!0),t.inline||t.teleportCenter?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:1,class:Object(r["normalizeClass"])(Z.value)},null,2)),Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])({dp__menu_content_wrapper:(null==(o=t.presetRanges)?void 0:o.length)||!!t.$slots["left-sidebar"]||!!t.$slots["right-sidebar"]})},[t.$slots["left-sidebar"]?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",as,[Object(r["renderSlot"])(t.$slots,"left-sidebar",Object(r["normalizeProps"])(Object(r["guardReactiveProps"])(K)))])):Object(r["createCommentVNode"])("",!0),null!=(i=t.presetRanges)&&i.length?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",is,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(t.presetRanges,(e,n)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:n,style:Object(r["normalizeStyle"])(e.style||{}),class:"dp__preset_range",onClick:t=>Object(r["unref"])(Y)(e.range,!!e.slot)},[e.slot?Object(r["renderSlot"])(t.$slots,e.slot,{key:0,presetDateRange:Object(r["unref"])(Y),label:e.label,range:e.range}):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[Object(r["createTextVNode"])(Object(r["toDisplayString"])(e.label),1)],64))],12,ss))),128))])):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("div",{class:"dp__instance_calendar",ref_key:"calendarWrapperRef",ref:p,role:"document"},[Object(r["createElementVNode"])("div",{class:Object(r["normalizeClass"])(se.value)},[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(oe.value,(o,i)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{key:o,class:Object(r["normalizeClass"])(ce.value)},[t.disableMonthYearSelect||t.timePicker?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(Fi,Object(r["mergeProps"])({key:0,ref_for:!0,ref:e=>{e&&(h.value[i]=e)},months:te.value,years:ee.value,month:Object(r["unref"])(D)(o),year:Object(r["unref"])(L)(o),instance:o,"internal-model-value":e.internalModelValue},a.value,{onMount:n[0]||(n[0]=e=>ve("monthYearInput")),onResetFlow:I,onUpdateMonthYear:e=>Object(r["unref"])(R)(o,e),onMonthYearSelect:Object(r["unref"])(U),onOverlayClosed:S}),Object(r["createSlots"])({_:2},[Object(r["renderList"])(Object(r["unref"])(Q),(e,n)=>({name:e,fn:Object(r["withCtx"])(n=>[Object(r["renderSlot"])(t.$slots,e,Object(r["normalizeProps"])(Object(r["guardReactiveProps"])(n)))])}))]),1040,["months","years","month","year","instance","internal-model-value","onUpdateMonthYear","onMonthYearSelect"])),Object(r["createVNode"])(Si,Object(r["mergeProps"])({ref_for:!0,ref:e=>{e&&(m.value[i]=e)},"specific-mode":ie.value,"get-week-num":Object(r["unref"])(P),instance:o,"mapped-dates":ue.value(o),month:Object(r["unref"])(D)(o),year:Object(r["unref"])(L)(o)},a.value,{onSelectDate:e=>Object(r["unref"])(x)(e,!ae.value(o)),onHandleSpace:e=>me(e,!ae.value(o)),onSetHoverDate:n[1]||(n[1]=e=>Object(r["unref"])(z)(e)),onHandleScroll:e=>Object(r["unref"])(V)(e,o),onHandleSwipe:e=>Object(r["unref"])(F)(e,o),onMount:n[2]||(n[2]=e=>ve("calendar")),onResetFlow:I,onTooltipOpen:n[3]||(n[3]=e=>t.$emit("tooltip-open",e)),onTooltipClose:n[4]||(n[4]=e=>t.$emit("tooltip-close",e))}),Object(r["createSlots"])({_:2},[Object(r["renderList"])(Object(r["unref"])($),(e,n)=>({name:e,fn:Object(r["withCtx"])(n=>[Object(r["renderSlot"])(t.$slots,e,Object(r["normalizeProps"])(Object(r["guardReactiveProps"])({...n})))])}))]),1040,["specific-mode","get-week-num","instance","mapped-dates","month","year","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])],2))),128))],2),Object(r["createElementVNode"])("div",null,[t.$slots["time-picker"]?Object(r["renderSlot"])(t.$slots,"time-picker",Object(r["normalizeProps"])(Object(r["mergeProps"])({key:0},{time:Object(r["unref"])(A),updateTime:Object(r["unref"])(N)}))):(Object(r["openBlock"])(),Object(r["createElementBlock"])(r["Fragment"],{key:1},[!t.enableTimePicker||t.monthPicker||t.weekPicker?Object(r["createCommentVNode"])("",!0):(Object(r["openBlock"])(),Object(r["createBlock"])(ns,Object(r["mergeProps"])({key:0,ref_key:"timePickerRef",ref:v,hours:Object(r["unref"])(A).hours,minutes:Object(r["unref"])(A).minutes,seconds:Object(r["unref"])(A).seconds,"internal-model-value":e.internalModelValue},a.value,{onMount:n[5]||(n[5]=e=>ve("timePicker")),"onUpdate:hours":n[6]||(n[6]=e=>Object(r["unref"])(N)(e)),"onUpdate:minutes":n[7]||(n[7]=e=>Object(r["unref"])(N)(e,!1)),"onUpdate:seconds":n[8]||(n[8]=e=>Object(r["unref"])(N)(e,!1,!0)),onResetFlow:I,onOverlayClosed:Oe,onOverlayOpened:n[9]||(n[9]=e=>t.$emit("time-picker-open",e)),onAmPmChange:n[10]||(n[10]=e=>t.$emit("am-pm-change",e))}),Object(r["createSlots"])({_:2},[Object(r["renderList"])(Object(r["unref"])(X),(e,n)=>({name:e,fn:Object(r["withCtx"])(n=>[Object(r["renderSlot"])(t.$slots,e,Object(r["normalizeProps"])(Object(r["guardReactiveProps"])(n)))])}))]),1040,["hours","minutes","seconds","internal-model-value"]))],64))])],512),t.$slots["right-sidebar"]?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",cs,[Object(r["renderSlot"])(t.$slots,"right-sidebar",Object(r["normalizeProps"])(Object(r["guardReactiveProps"])(K)))])):Object(r["createCommentVNode"])("",!0),t.$slots["action-extra"]?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",ls,[t.$slots["action-extra"]?Object(r["renderSlot"])(t.$slots,"action-extra",{key:0,selectCurrentDate:Object(r["unref"])(H)}):Object(r["createCommentVNode"])("",!0)])):Object(r["createCommentVNode"])("",!0)],2),!t.autoApply||t.keepActionRow?(Object(r["openBlock"])(),Object(r["createBlock"])(gi,Object(r["mergeProps"])({key:2,"menu-mount":b.value,"calendar-width":_.value,"internal-model-value":e.internalModelValue},a.value,{onClosePicker:n[11]||(n[11]=e=>t.$emit("close-picker")),onSelectDate:n[12]||(n[12]=e=>t.$emit("select-date")),onInvalidSelect:n[13]||(n[13]=e=>t.$emit("invalid-select")),onSelectNow:Object(r["unref"])(H)}),Object(r["createSlots"])({_:2},[Object(r["renderList"])(Object(r["unref"])(J),(e,n)=>({name:e,fn:Object(r["withCtx"])(n=>[Object(r["renderSlot"])(t.$slots,e,Object(r["normalizeProps"])(Object(r["guardReactiveProps"])({...n})))])}))]),1040,["menu-mount","calendar-width","internal-model-value","onSelectNow"])):Object(r["createCommentVNode"])("",!0)],42,os)]}),_:3},8,["name","css"])}}}),ds=typeof window<"u"?window:void 0,ps=()=>{},fs=e=>!!Object(r["getCurrentScope"])()&&(Object(r["onScopeDispose"])(e),!0),hs=(e,t,n,o)=>{if(!e)return ps;let a=ps;const i=Object(r["watch"])(()=>Object(r["unref"])(e),e=>{a(),e&&(e.addEventListener(t,n,o),a=()=>{e.removeEventListener(t,n,o),a=ps})},{immediate:!0,flush:"post"}),s=()=>{i(),a()};return fs(s),s},ms=(e,t,n,r={})=>{const{window:o=ds,event:a="pointerdown"}=r;return o?hs(o,a,r=>{const o=ka(e),a=ka(t);!o||!a||o===r.target||r.composedPath().includes(o)||r.composedPath().includes(a)||n(r)},{passive:!0}):void 0},vs=Object(r["defineComponent"])({__name:"VueDatePicker",props:{...li},emits:["update:model-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end"],setup(e,{expose:t,emit:n}){const o=e,a=Object(r["useSlots"])(),i=Object(r["ref"])(!1),s=Object(r["toRef"])(o,"modelValue"),c=Object(r["toRef"])(o,"timezone"),l=Object(r["ref"])(null),u=Object(r["ref"])(null),d=Object(r["ref"])(!1),p=Object(r["ref"])(null),f=Object(r["reactive"])({disabledDates:null,allowedDates:null,highlightedDates:null}),{setMenuFocused:h,setShiftKey:m}=go(),{clearArrowNav:v}=$a(),{validateDate:g,isValidTime:_,defaults:b,mapDatesArrToMap:y}=Ba(o);Object(r["onMounted"])(()=>{D(o.modelValue),o.inline||(I(p.value).addEventListener("scroll",U),window.addEventListener("resize",V)),o.inline&&(i.value=!0),y(f)}),Object(r["onUnmounted"])(()=>{if(!o.inline){const e=I(p.value);e&&e.removeEventListener("scroll",U),window.removeEventListener("resize",V)}});const O=si(a,"all",o.presetRanges),M=si(a,"input");Object(r["watch"])([s,c],()=>{D(s.value)},{deep:!0});const{openOnTop:k,menuStyle:C,resetPosition:w,setMenuPosition:S,setInitialPosition:T,getScrollableParent:I}=ri(l,u,n,o),{inputValue:E,internalModelValue:j,parseExternalModelValue:D,emitModelValue:L,formatInputValue:A,checkBeforeEmit:N}=ei(n,o,d),R=Object(r["computed"])(()=>({dp__main:!0,dp__theme_dark:o.dark,dp__theme_light:!o.dark,dp__flex_display:o.inline,dp__flex_display_with_input:o.inlineWithInput})),x=Object(r["computed"])(()=>o.dark?"dp__theme_dark":"dp__theme_light"),P=Object(r["computed"])(()=>o.teleport?{to:"boolean"==typeof o.teleport?"body":o.teleport,disabled:o.inline}:{class:"dp__outer_menu_wrap"}),U=()=>{i.value&&(o.closeOnScroll?K():S())},V=()=>{i.value&&S()},B=async()=>{var e,t,a;!o.disabled&&!o.readonly&&(w(),await Object(r["nextTick"])(),i.value=!0,await Object(r["nextTick"])(),T(),await Object(r["nextTick"])(),S(),delete C.value.opacity,!(null!=(e=b.value.transitions)&&e.menuAppear)&&o.transitions&&(null==(a=null==(t=l.value)?void 0:t.$el)||a.classList.add("dp__menu_transitioned")),i.value&&n("open"),i.value||W(),D(o.modelValue))},F=()=>{E.value="",W(),n("update:model-value",null),n("cleared"),o.closeOnClearValue&&K()},G=()=>{const e=j.value;return!(e&&(Array.isArray(e)||!g(e)))||!!Array.isArray(e)&&(!(2!==e.length||!g(e[0])||!g(e[1]))||g(e[0]))},H=()=>{N()&&G()?(L(),K()):n("invalid-select",j.value)},Y=e=>{z(),L(),o.closeOnAutoApply&&!e&&K()},z=()=>{u.value&&o.textInput&&u.value.setParsedDate(j.value)},q=(e=!1)=>{o.autoApply&&_(j.value)&&G()&&(o.range&&Array.isArray(j.value)?(o.partialRange||2===j.value.length)&&Y(e):Y(e))},W=()=>{o.textInput||(j.value=null)},K=()=>{o.inline||(i.value&&(i.value=!1,h(!1),m(!1),v(),n("closed"),T(),E.value&&D(s.value)),W())},$=(e,t)=>{e?(j.value=e,t&&(H(),n("text-submit"))):j.value=null},J=()=>{o.autoApply&&_(j.value)&&L(),z()},X=()=>i.value?K():B(),Q=e=>{j.value=e},Z=()=>{o.textInput&&(d.value=!0,A()),n("focus")},ee=()=>{o.textInput&&(d.value=!1,D(o.modelValue)),n("blur")},te=e=>{l.value&&l.value.updateMonthYear(0,{month:Ia(e.month),year:Ia(e.year)})},ne=e=>{D(e||o.modelValue)},re=(e,t)=>{var n;null==(n=l.value)||n.switchView(e,t)};return ms(l,u,o.onClickOutside?()=>o.onClickOutside(G):K),t({closeMenu:K,selectDate:H,clearValue:F,openMenu:B,onScroll:U,formatInputValue:A,updateInternalModelValue:Q,setMonthYear:te,parseModel:ne,switchView:re}),(e,t)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(R.value),ref_key:"pickerWrapperRef",ref:p},[Object(r["createVNode"])(fi,Object(r["mergeProps"])({ref_key:"inputRef",ref:u,"is-menu-open":i.value,"input-value":Object(r["unref"])(E),"onUpdate:inputValue":t[0]||(t[0]=e=>Object(r["isRef"])(E)?E.value=e:null)},e.$props,{onClear:F,onOpen:B,onSetInputDate:$,onSetEmptyDate:Object(r["unref"])(L),onSelectDate:H,onToggle:X,onClose:K,onFocus:Z,onBlur:ee,onRealBlur:t[1]||(t[1]=e=>d.value=!1)}),Object(r["createSlots"])({_:2},[Object(r["renderList"])(Object(r["unref"])(M),(t,n)=>({name:t,fn:Object(r["withCtx"])(n=>[Object(r["renderSlot"])(e.$slots,t,Object(r["normalizeProps"])(Object(r["guardReactiveProps"])(n)))])}))]),1040,["is-menu-open","input-value","onSetEmptyDate"]),i.value?(Object(r["openBlock"])(),Object(r["createBlock"])(Object(r["resolveDynamicComponent"])(e.teleport?r["Teleport"]:"div"),Object(r["normalizeProps"])(Object(r["mergeProps"])({key:0},P.value)),{default:Object(r["withCtx"])(()=>[i.value?(Object(r["openBlock"])(),Object(r["createBlock"])(us,Object(r["mergeProps"])({key:0,ref_key:"dpMenuRef",ref:l,class:x.value,style:e.inline?void 0:Object(r["unref"])(C),"open-on-top":Object(r["unref"])(k),"arr-map-values":f},e.$props,{"internal-model-value":Object(r["unref"])(j),"onUpdate:internalModelValue":t[2]||(t[2]=e=>Object(r["isRef"])(j)?j.value=e:null),onClosePicker:K,onSelectDate:H,onAutoApply:q,onTimeUpdate:J,onFlowStep:t[3]||(t[3]=t=>e.$emit("flow-step",t)),onUpdateMonthYear:t[4]||(t[4]=t=>e.$emit("update-month-year",t)),onInvalidSelect:t[5]||(t[5]=t=>e.$emit("invalid-select",Object(r["unref"])(j))),onInvalidFixedRange:t[6]||(t[6]=t=>e.$emit("invalid-fixed-range",t)),onRecalculatePosition:Object(r["unref"])(S),onTooltipOpen:t[7]||(t[7]=t=>e.$emit("tooltip-open",t)),onTooltipClose:t[8]||(t[8]=t=>e.$emit("tooltip-close",t)),onTimePickerOpen:t[9]||(t[9]=t=>e.$emit("time-picker-open",t)),onTimePickerClose:t[10]||(t[10]=t=>e.$emit("time-picker-close",t)),onAmPmChange:t[11]||(t[11]=t=>e.$emit("am-pm-change",t)),onRangeStart:t[12]||(t[12]=t=>e.$emit("range-start",t)),onRangeEnd:t[13]||(t[13]=t=>e.$emit("range-end",t))}),Object(r["createSlots"])({_:2},[Object(r["renderList"])(Object(r["unref"])(O),(t,n)=>({name:t,fn:Object(r["withCtx"])(n=>[Object(r["renderSlot"])(e.$slots,t,Object(r["normalizeProps"])(Object(r["guardReactiveProps"])({...n})))])}))]),1040,["class","style","open-on-top","arr-map-values","internal-model-value","onRecalculatePosition"])):Object(r["createCommentVNode"])("",!0)]),_:3},16)):Object(r["createCommentVNode"])("",!0)],2))}}),gs=(()=>{const e=vs;return e.install=t=>{t.component("Vue3DatePicker",e)},e})(),_s=Object.freeze(Object.defineProperty({__proto__:null,default:gs},Symbol.toStringTag,{value:"Module"}));Object.entries(_s).forEach(([e,t])=>{"default"!==e&&(gs[e]=t)})},5143:function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return y}));var r=n("3b4c"),o=n.n(r),a=n("c751"),i=n.n(a),s=n("c52e"),c=n.n(s),l=n("9a73"),u=n.n(l),d=n("7d20"),p=n("8afb"),f=n("0898"),h=n("d095"),m=n("7a23");const v=o()("emptyValuesContextKey"),g="use-empty-values",_=["",void 0,null],b=void 0,y=Object(f["b"])({emptyValues:Array,valueOnClear:{type:Object(f["c"])([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=Object(d["isFunction"])(e)?e():e,Object(d["isArray"])(e)?i()(e).call(e,e=>!e):!e)}}),O=(e,t)=>{const n=Object(m["getCurrentInstance"])()?Object(m["inject"])(v,Object(m["ref"])({})):Object(m["ref"])({}),r=Object(m["computed"])(()=>e.emptyValues||n.value.emptyValues||_),o=Object(m["computed"])(()=>Object(d["isFunction"])(e.valueOnClear)?e.valueOnClear():void 0!==e.valueOnClear?e.valueOnClear:Object(d["isFunction"])(n.value.valueOnClear)?n.value.valueOnClear():void 0!==n.value.valueOnClear?n.value.valueOnClear:void 0!==t?t:b),a=e=>{var t,n;let o=!0;return o=Object(d["isArray"])(e)?c()(t=r.value).call(t,t=>Object(h["isEqual"])(e,t)):u()(n=r.value).call(n,e),o};return a(o.value)||Object(p["a"])(g,"value-on-clear should be a value of empty-values"),{emptyValues:r,valueOnClear:o,isEmptyValue:a}}},5145:function(e,t,n){"use strict";n("9103");var r=n("78a2"),o=n("3eba"),a=n("2874"),i=n("7463");for(var s in r)a(o[s],s),i[s]=i.Array},5156:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n("1696");e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},"51b8":function(e,t,n){"use strict";var r=n("a5eb"),o=n("3eba");r({global:!0,forced:o.globalThis!==o},{globalThis:o})},5202:function(e,t,n){"use strict";n.d(t,"a",(function(){return Cn})),n.d(t,"b",(function(){return wn}));var r=n("1ad4"),o=n("7c31"),a="top",i="bottom",s="right",c="left",l="auto",u=[a,i,s,c],d="start",p="end",f="clippingParents",h="viewport",m="popper",v="reference",g=u.reduce((function(e,t){return e.concat([t+"-"+d,t+"-"+p])}),[]),_=[].concat(u,[l]).reduce((function(e,t){return e.concat([t,t+"-"+d,t+"-"+p])}),[]),b="beforeRead",y="read",O="afterRead",M="beforeMain",k="main",C="afterMain",w="beforeWrite",S="write",T="afterWrite",I=[b,y,O,M,k,C,w,S,T];function E(e){return e?(e.nodeName||"").toLowerCase():null}function j(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function D(e){var t=j(e).Element;return e instanceof t||e instanceof Element}function L(e){var t=j(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function A(e){if("undefined"==typeof ShadowRoot)return!1;var t=j(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function N(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!L(o)||!E(o)||(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))}function R(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),i=a.reduce((function(e,t){return e[t]="",e}),{});!L(r)||!E(r)||(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}}var x={name:"applyStyles",enabled:!0,phase:"write",fn:N,effect:R,requires:["computeStyles"]};function P(e){return e.split("-")[0]}var U=Math.max,V=Math.min,B=Math.round;function F(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function G(){return!/^((?!chrome|android).)*safari/i.test(F())}function H(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&L(e)&&(o=e.offsetWidth>0&&B(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&B(r.height)/e.offsetHeight||1);var i=D(e)?j(e):window,s=i.visualViewport,c=!G()&&n,l=(r.left+(c&&s?s.offsetLeft:0))/o,u=(r.top+(c&&s?s.offsetTop:0))/a,d=r.width/o,p=r.height/a;return{width:d,height:p,top:u,right:l+d,bottom:u+p,left:l,x:l,y:u}}function Y(e){var t=H(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function z(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&A(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function q(e){return j(e).getComputedStyle(e)}function W(e){return["table","td","th"].indexOf(E(e))>=0}function K(e){return((D(e)?e.ownerDocument:e.document)||window.document).documentElement}function $(e){return"html"===E(e)?e:e.assignedSlot||e.parentNode||(A(e)?e.host:null)||K(e)}function J(e){return L(e)&&"fixed"!==q(e).position?e.offsetParent:null}function X(e){var t=/firefox/i.test(F()),n=/Trident/i.test(F());if(n&&L(e)){var r=q(e);if("fixed"===r.position)return null}var o=$(e);for(A(o)&&(o=o.host);L(o)&&["html","body"].indexOf(E(o))<0;){var a=q(o);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return o;o=o.parentNode}return null}function Q(e){for(var t=j(e),n=J(e);n&&W(n)&&"static"===q(n).position;)n=J(n);return n&&("html"===E(n)||"body"===E(n)&&"static"===q(n).position)?t:n||X(e)||t}function Z(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ee(e,t,n){return U(e,V(t,n))}function te(e,t,n){var r=ee(e,t,n);return r>n?n:r}function ne(){return{top:0,right:0,bottom:0,left:0}}function re(e){return Object.assign({},ne(),e)}function oe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var ae=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,re("number"!=typeof e?e:oe(e,u))};function ie(e){var t,n=e.state,r=e.name,o=e.options,l=n.elements.arrow,u=n.modifiersData.popperOffsets,d=P(n.placement),p=Z(d),f=[c,s].indexOf(d)>=0,h=f?"height":"width";if(l&&u){var m=ae(o.padding,n),v=Y(l),g="y"===p?a:c,_="y"===p?i:s,b=n.rects.reference[h]+n.rects.reference[p]-u[p]-n.rects.popper[h],y=u[p]-n.rects.reference[p],O=Q(l),M=O?"y"===p?O.clientHeight||0:O.clientWidth||0:0,k=b/2-y/2,C=m[g],w=M-v[h]-m[_],S=M/2-v[h]/2+k,T=ee(C,S,w),I=p;n.modifiersData[r]=(t={},t[I]=T,t.centerOffset=T-S,t)}}function se(e){var t=e.state,n=e.options,r=n.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"==typeof o&&(o=t.elements.popper.querySelector(o),!o)||z(t.elements.popper,o)&&(t.elements.arrow=o))}var ce={name:"arrow",enabled:!0,phase:"main",fn:ie,effect:se,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function le(e){return e.split("-")[1]}var ue={top:"auto",right:"auto",bottom:"auto",left:"auto"};function de(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:B(n*o)/o||0,y:B(r*o)/o||0}}function pe(e){var t,n=e.popper,r=e.popperRect,o=e.placement,l=e.variation,u=e.offsets,d=e.position,f=e.gpuAcceleration,h=e.adaptive,m=e.roundOffsets,v=e.isFixed,g=u.x,_=void 0===g?0:g,b=u.y,y=void 0===b?0:b,O="function"==typeof m?m({x:_,y:y}):{x:_,y:y};_=O.x,y=O.y;var M=u.hasOwnProperty("x"),k=u.hasOwnProperty("y"),C=c,w=a,S=window;if(h){var T=Q(n),I="clientHeight",E="clientWidth";if(T===j(n)&&(T=K(n),"static"!==q(T).position&&"absolute"===d&&(I="scrollHeight",E="scrollWidth")),T=T,o===a||(o===c||o===s)&&l===p){w=i;var D=v&&T===S&&S.visualViewport?S.visualViewport.height:T[I];y-=D-r.height,y*=f?1:-1}if(o===c||(o===a||o===i)&&l===p){C=s;var L=v&&T===S&&S.visualViewport?S.visualViewport.width:T[E];_-=L-r.width,_*=f?1:-1}}var A,N=Object.assign({position:d},h&&ue),R=!0===m?de({x:_,y:y},j(n)):{x:_,y:y};return _=R.x,y=R.y,f?Object.assign({},N,(A={},A[w]=k?"0":"",A[C]=M?"0":"",A.transform=(S.devicePixelRatio||1)<=1?"translate("+_+"px, "+y+"px)":"translate3d("+_+"px, "+y+"px, 0)",A)):Object.assign({},N,(t={},t[w]=k?y+"px":"",t[C]=M?_+"px":"",t.transform="",t))}function fe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,c=void 0===s||s,l={placement:P(t.placement),variation:le(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,pe(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,pe(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var he={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fe,data:{}},me={passive:!0};function ve(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,c=j(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,me)})),s&&c.addEventListener("resize",n.update,me),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,me)})),s&&c.removeEventListener("resize",n.update,me)}}var ge={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ve,data:{}},_e={left:"right",right:"left",bottom:"top",top:"bottom"};function be(e){return e.replace(/left|right|bottom|top/g,(function(e){return _e[e]}))}var ye={start:"end",end:"start"};function Oe(e){return e.replace(/start|end/g,(function(e){return ye[e]}))}function Me(e){var t=j(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ke(e){return H(K(e)).left+Me(e).scrollLeft}function Ce(e,t){var n=j(e),r=K(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;var l=G();(l||!l&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s+ke(e),y:c}}function we(e){var t,n=K(e),r=Me(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=U(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=U(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+ke(e),c=-r.scrollTop;return"rtl"===q(o||n).direction&&(s+=U(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:c}}function Se(e){var t=q(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Te(e){return["html","body","#document"].indexOf(E(e))>=0?e.ownerDocument.body:L(e)&&Se(e)?e:Te($(e))}function Ie(e,t){var n;void 0===t&&(t=[]);var r=Te(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=j(r),i=o?[a].concat(a.visualViewport||[],Se(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Ie($(i)))}function Ee(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function je(e,t){var n=H(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function De(e,t,n){return t===h?Ee(Ce(e,n)):D(t)?je(t,n):Ee(we(K(e)))}function Le(e){var t=Ie($(e)),n=["absolute","fixed"].indexOf(q(e).position)>=0,r=n&&L(e)?Q(e):e;return D(r)?t.filter((function(e){return D(e)&&z(e,r)&&"body"!==E(e)})):[]}function Ae(e,t,n,r){var o="clippingParents"===t?Le(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce((function(t,n){var o=De(e,n,r);return t.top=U(o.top,t.top),t.right=V(o.right,t.right),t.bottom=V(o.bottom,t.bottom),t.left=U(o.left,t.left),t}),De(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ne(e){var t,n=e.reference,r=e.element,o=e.placement,l=o?P(o):null,u=o?le(o):null,f=n.x+n.width/2-r.width/2,h=n.y+n.height/2-r.height/2;switch(l){case a:t={x:f,y:n.y-r.height};break;case i:t={x:f,y:n.y+n.height};break;case s:t={x:n.x+n.width,y:h};break;case c:t={x:n.x-r.width,y:h};break;default:t={x:n.x,y:n.y}}var m=l?Z(l):null;if(null!=m){var v="y"===m?"height":"width";switch(u){case d:t[m]=t[m]-(n[v]/2-r[v]/2);break;case p:t[m]=t[m]+(n[v]/2-r[v]/2);break}}return t}function Re(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,c=n.strategy,l=void 0===c?e.strategy:c,d=n.boundary,p=void 0===d?f:d,g=n.rootBoundary,_=void 0===g?h:g,b=n.elementContext,y=void 0===b?m:b,O=n.altBoundary,M=void 0!==O&&O,k=n.padding,C=void 0===k?0:k,w=re("number"!=typeof C?C:oe(C,u)),S=y===m?v:m,T=e.rects.popper,I=e.elements[M?S:y],E=Ae(D(I)?I:I.contextElement||K(e.elements.popper),p,_,l),j=H(e.elements.reference),L=Ne({reference:j,element:T,placement:o}),A=Ee(Object.assign({},T,L)),N=y===m?A:j,R={top:E.top-N.top+w.top,bottom:N.bottom-E.bottom+w.bottom,left:E.left-N.left+w.left,right:N.right-E.right+w.right},x=e.modifiersData.offset;if(y===m&&x){var P=x[o];Object.keys(R).forEach((function(e){var t=[s,i].indexOf(e)>=0?1:-1,n=[a,i].indexOf(e)>=0?"y":"x";R[e]+=P[n]*t}))}return R}function xe(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?_:c,d=le(r),p=d?s?g:g.filter((function(e){return le(e)===d})):u,f=p.filter((function(e){return l.indexOf(e)>=0}));0===f.length&&(f=p);var h=f.reduce((function(t,n){return t[n]=Re(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[P(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}function Pe(e){if(P(e)===l)return[];var t=be(e);return[Oe(e),t,Oe(t)]}function Ue(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,u=void 0===o||o,p=n.altAxis,f=void 0===p||p,h=n.fallbackPlacements,m=n.padding,v=n.boundary,g=n.rootBoundary,_=n.altBoundary,b=n.flipVariations,y=void 0===b||b,O=n.allowedAutoPlacements,M=t.options.placement,k=P(M),C=k===M,w=h||(C||!y?[be(M)]:Pe(M)),S=[M].concat(w).reduce((function(e,n){return e.concat(P(n)===l?xe(t,{placement:n,boundary:v,rootBoundary:g,padding:m,flipVariations:y,allowedAutoPlacements:O}):n)}),[]),T=t.rects.reference,I=t.rects.popper,E=new Map,j=!0,D=S[0],L=0;L<S.length;L++){var A=S[L],N=P(A),R=le(A)===d,x=[a,i].indexOf(N)>=0,U=x?"width":"height",V=Re(t,{placement:A,boundary:v,rootBoundary:g,altBoundary:_,padding:m}),B=x?R?s:c:R?i:a;T[U]>I[U]&&(B=be(B));var F=be(B),G=[];if(u&&G.push(V[N]<=0),f&&G.push(V[B]<=0,V[F]<=0),G.every((function(e){return e}))){D=A,j=!1;break}E.set(A,G)}if(j)for(var H=y?3:1,Y=function(e){var t=S.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return D=t,"break"},z=H;z>0;z--){var q=Y(z);if("break"===q)break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}var Ve={name:"flip",enabled:!0,phase:"main",fn:Ue,requiresIfExists:["offset"],data:{_skip:!1}};function Be(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Fe(e){return[a,s,i,c].some((function(t){return e[t]>=0}))}function Ge(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Re(t,{elementContext:"reference"}),s=Re(t,{altBoundary:!0}),c=Be(i,r),l=Be(s,o,a),u=Fe(c),d=Fe(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var He={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ge};function Ye(e,t,n){var r=P(e),o=[c,a].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=i[0],u=i[1];return l=l||0,u=(u||0)*o,[c,s].indexOf(r)>=0?{x:u,y:l}:{x:l,y:u}}function ze(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=_.reduce((function(e,n){return e[n]=Ye(n,t.rects,a),e}),{}),s=i[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=i}var qe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ze};function We(e){var t=e.state,n=e.name;t.modifiersData[n]=Ne({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var Ke={name:"popperOffsets",enabled:!0,phase:"read",fn:We,data:{}};function $e(e){return"x"===e?"y":"x"}function Je(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,l=void 0===o||o,u=n.altAxis,p=void 0!==u&&u,f=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.padding,g=n.tether,_=void 0===g||g,b=n.tetherOffset,y=void 0===b?0:b,O=Re(t,{boundary:f,rootBoundary:h,padding:v,altBoundary:m}),M=P(t.placement),k=le(t.placement),C=!k,w=Z(M),S=$e(w),T=t.modifiersData.popperOffsets,I=t.rects.reference,E=t.rects.popper,j="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,D="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(T){if(l){var N,R="y"===w?a:c,x="y"===w?i:s,B="y"===w?"height":"width",F=T[w],G=F+O[R],H=F-O[x],z=_?-E[B]/2:0,q=k===d?I[B]:E[B],W=k===d?-E[B]:-I[B],K=t.elements.arrow,$=_&&K?Y(K):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ne(),X=J[R],re=J[x],oe=ee(0,I[B],$[B]),ae=C?I[B]/2-z-oe-X-D.mainAxis:q-oe-X-D.mainAxis,ie=C?-I[B]/2+z+oe+re+D.mainAxis:W+oe+re+D.mainAxis,se=t.elements.arrow&&Q(t.elements.arrow),ce=se?"y"===w?se.clientTop||0:se.clientLeft||0:0,ue=null!=(N=null==L?void 0:L[w])?N:0,de=F+ae-ue-ce,pe=F+ie-ue,fe=ee(_?V(G,de):G,F,_?U(H,pe):H);T[w]=fe,A[w]=fe-F}if(p){var he,me="x"===w?a:c,ve="x"===w?i:s,ge=T[S],_e="y"===S?"height":"width",be=ge+O[me],ye=ge-O[ve],Oe=-1!==[a,c].indexOf(M),Me=null!=(he=null==L?void 0:L[S])?he:0,ke=Oe?be:ge-I[_e]-E[_e]-Me+D.altAxis,Ce=Oe?ge+I[_e]+E[_e]-Me-D.altAxis:ye,we=_&&Oe?te(ke,ge,Ce):ee(_?ke:be,ge,_?Ce:ye);T[S]=we,A[S]=we-ge}t.modifiersData[r]=A}}var Xe={name:"preventOverflow",enabled:!0,phase:"main",fn:Je,requiresIfExists:["offset"]};function Qe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ze(e){return e!==j(e)&&L(e)?Qe(e):Me(e)}function et(e){var t=e.getBoundingClientRect(),n=B(t.width)/e.offsetWidth||1,r=B(t.height)/e.offsetHeight||1;return 1!==n||1!==r}function tt(e,t,n){void 0===n&&(n=!1);var r=L(t),o=L(t)&&et(t),a=K(t),i=H(e,o,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==E(t)||Se(a))&&(s=Ze(t)),L(t)?(c=H(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=ke(a))),{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function nt(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name);var a=[].concat(e.requires||[],e.requiresIfExists||[]);a.forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function rt(e){var t=nt(e);return I.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function ot(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function at(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var it={placement:"bottom",modifiers:[],strategy:"absolute"};function st(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ct(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?it:o;return function(e,t,n){void 0===n&&(n=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},it,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},i=[],s=!1,c={state:o,setOptions:function(n){var i="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},a,o.options,i),o.scrollParents={reference:D(e)?Ie(e):e.contextElement?Ie(e.contextElement):[],popper:Ie(t)};var s=rt(at([].concat(r,o.options.modifiers)));return o.orderedModifiers=s.filter((function(e){return e.enabled})),l(),c.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(st(t,n)){o.rects={reference:tt(t,Q(n),"fixed"===o.options.strategy),popper:Y(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var a=o.orderedModifiers[r],i=a.fn,l=a.options,u=void 0===l?{}:l,d=a.name;"function"==typeof i&&(o=i({state:o,options:u,name:d,instance:c})||o)}else o.reset=!1,r=-1}}},update:ot((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),destroy:function(){u(),s=!0}};if(!st(e,t))return c;function l(){o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var s=a({state:o,name:t,instance:c,options:r}),l=function(){};i.push(s||l)}}))}function u(){i.forEach((function(e){return e()})),i=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}ct();
/**!
* tippy.js v6.3.7
* (c) 2017-2021 atomiks
* MIT License
*/var lt=[ge,Ke,he,x],ut=(ct({defaultModifiers:lt}),[ge,Ke,he,x,qe,Ve,Xe,ce,He]),dt=ct({defaultModifiers:ut}),pt="tippy-box",ft="tippy-content",ht="tippy-backdrop",mt="tippy-arrow",vt="tippy-svg-arrow",gt={passive:!0,capture:!0},_t=function(){return document.body};function bt(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function yt(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Ot(e,t){return"function"===typeof e?e.apply(void 0,t):e}function Mt(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function kt(e){return e.split(/\s+/).filter(Boolean)}function Ct(e){return[].concat(e)}function wt(e,t){-1===e.indexOf(t)&&e.push(t)}function St(e){return e.filter((function(t,n){return e.indexOf(t)===n}))}function Tt(e){return e.split("-")[0]}function It(e){return[].slice.call(e)}function Et(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function jt(){return document.createElement("div")}function Dt(e){return["Element","Fragment"].some((function(t){return yt(e,t)}))}function Lt(e){return yt(e,"NodeList")}function At(e){return yt(e,"MouseEvent")}function Nt(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Rt(e){return Dt(e)?[e]:Lt(e)?It(e):Array.isArray(e)?e:It(document.querySelectorAll(e))}function xt(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Pt(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Ut(e){var t,n=Ct(e),r=n[0];return null!=r&&null!=(t=r.ownerDocument)&&t.body?r.ownerDocument:document}function Vt(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,a=e.props,i=a.interactiveBorder,s=Tt(o.placement),c=o.modifiersData.offset;if(!c)return!0;var l="bottom"===s?c.top.y:0,u="top"===s?c.bottom.y:0,d="right"===s?c.left.x:0,p="left"===s?c.right.x:0,f=t.top-r+l>i,h=r-t.bottom-u>i,m=t.left-n+d>i,v=n-t.right-p>i;return f||h||m||v}))}function Bt(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function Ft(e,t){var n=t;while(n){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var Gt={isTouch:!1},Ht=0;function Yt(){Gt.isTouch||(Gt.isTouch=!0,window.performance&&document.addEventListener("mousemove",zt))}function zt(){var e=performance.now();e-Ht<20&&(Gt.isTouch=!1,document.removeEventListener("mousemove",zt)),Ht=e}function qt(){var e=document.activeElement;if(Nt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Wt(){document.addEventListener("touchstart",Yt,gt),window.addEventListener("blur",qt)}var Kt="undefined"!==typeof window&&"undefined"!==typeof document,$t=!!Kt&&!!window.msCrypto;var Jt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Xt={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Qt=Object.assign({appendTo:_t,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Jt,Xt),Zt=Object.keys(Qt),en=function(e){var t=Object.keys(e);t.forEach((function(t){Qt[t]=e[t]}))};function tn(e){var t=e.plugins||[],n=t.reduce((function(t,n){var r,o=n.name,a=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=Qt[o])?r:a);return t}),{});return Object.assign({},e,n)}function nn(e,t){var n=t?Object.keys(tn(Object.assign({},Qt,{plugins:t}))):Zt,r=n.reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(o){t[n]=r}return t}),{});return r}function rn(e,t){var n=Object.assign({},t,{content:Ot(t.content,[e])},t.ignoreAttributes?{}:nn(e,t.plugins));return n.aria=Object.assign({},Qt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var on=function(){return"innerHTML"};function an(e,t){e[on()]=t}function sn(e){var t=jt();return!0===e?t.className=mt:(t.className=vt,Dt(e)?t.appendChild(e):an(t,e)),t}function cn(e,t){Dt(t.content)?(an(e,""),e.appendChild(t.content)):"function"!==typeof t.content&&(t.allowHTML?an(e,t.content):e.textContent=t.content)}function ln(e){var t=e.firstElementChild,n=It(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(ft)})),arrow:n.find((function(e){return e.classList.contains(mt)||e.classList.contains(vt)})),backdrop:n.find((function(e){return e.classList.contains(ht)}))}}function un(e){var t=jt(),n=jt();n.className=pt,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=jt();function o(n,r){var o=ln(t),a=o.box,i=o.content,s=o.arrow;r.theme?a.setAttribute("data-theme",r.theme):a.removeAttribute("data-theme"),"string"===typeof r.animation?a.setAttribute("data-animation",r.animation):a.removeAttribute("data-animation"),r.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"===typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?a.setAttribute("role",r.role):a.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||cn(i,e.props),r.arrow?s?n.arrow!==r.arrow&&(a.removeChild(s),a.appendChild(sn(r.arrow))):a.appendChild(sn(r.arrow)):s&&a.removeChild(s)}return r.className=ft,r.setAttribute("data-state","hidden"),cn(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}un.$$tippy=!0;var dn=1,pn=[],fn=[];function hn(e,t){var n,r,o,a,i,s,c,l=rn(e,Object.assign({},Qt,tn(Et(t)))),u=!1,d=!1,p=!1,f=!1,h=[],m=Mt(J,l.interactiveDebounce),v=dn++,g=null,_=St(l.plugins),b={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},y={id:v,reference:e,popper:jt(),popperInstance:g,props:l,state:b,plugins:_,clearDelayTimeouts:ce,setProps:le,setContent:ue,show:de,hide:pe,hideWithInteractivity:fe,enable:ie,disable:se,unmount:he,destroy:me};if(!l.render)return y;var O=l.render(y),M=O.popper,k=O.onUpdate;M.setAttribute("data-tippy-root",""),M.id="tippy-"+y.id,y.popper=M,e._tippy=y,M._tippy=y;var C=_.map((function(e){return e.fn(y)})),w=e.hasAttribute("aria-expanded");return W(),x(),A(),N("onCreate",[y]),l.showOnCreate&&oe(),M.addEventListener("mouseenter",(function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()})),M.addEventListener("mouseleave",(function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&j().addEventListener("mousemove",m)})),y;function S(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function T(){return"hold"===S()[0]}function I(){var e;return!(null==(e=y.props.render)||!e.$$tippy)}function E(){return c||e}function j(){var e=E().parentNode;return e?Ut(e):document}function D(){return ln(M)}function L(e){return y.state.isMounted&&!y.state.isVisible||Gt.isTouch||a&&"focus"===a.type?0:bt(y.props.delay,e?0:1,Qt.delay)}function A(e){void 0===e&&(e=!1),M.style.pointerEvents=y.props.interactive&&!e?"":"none",M.style.zIndex=""+y.props.zIndex}function N(e,t,n){var r;(void 0===n&&(n=!0),C.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=y.props)[e].apply(r,t)}function R(){var t=y.props.aria;if(t.content){var n="aria-"+t.content,r=M.id,o=Ct(y.props.triggerTarget||e);o.forEach((function(e){var t=e.getAttribute(n);if(y.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function x(){if(!w&&y.props.aria.expanded){var t=Ct(y.props.triggerTarget||e);t.forEach((function(e){y.props.interactive?e.setAttribute("aria-expanded",y.state.isVisible&&e===E()?"true":"false"):e.removeAttribute("aria-expanded")}))}}function P(){j().removeEventListener("mousemove",m),pn=pn.filter((function(e){return e!==m}))}function U(t){if(!Gt.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!y.props.interactive||!Ft(M,n)){if(Ct(y.props.triggerTarget||e).some((function(e){return Ft(e,n)}))){if(Gt.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else N("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),d=!0,setTimeout((function(){d=!1})),y.state.isMounted||G())}}}function V(){p=!0}function B(){p=!1}function F(){var e=j();e.addEventListener("mousedown",U,!0),e.addEventListener("touchend",U,gt),e.addEventListener("touchstart",B,gt),e.addEventListener("touchmove",V,gt)}function G(){var e=j();e.removeEventListener("mousedown",U,!0),e.removeEventListener("touchend",U,gt),e.removeEventListener("touchstart",B,gt),e.removeEventListener("touchmove",V,gt)}function H(e,t){z(e,(function(){!y.state.isVisible&&M.parentNode&&M.parentNode.contains(M)&&t()}))}function Y(e,t){z(e,t)}function z(e,t){var n=D().box;function r(e){e.target===n&&(Bt(n,"remove",r),t())}if(0===e)return t();Bt(n,"remove",i),Bt(n,"add",r),i=r}function q(t,n,r){void 0===r&&(r=!1);var o=Ct(y.props.triggerTarget||e);o.forEach((function(e){e.addEventListener(t,n,r),h.push({node:e,eventType:t,handler:n,options:r})}))}function W(){T()&&(q("touchstart",$,{passive:!0}),q("touchend",X,{passive:!0})),kt(y.props.trigger).forEach((function(e){if("manual"!==e)switch(q(e,$),e){case"mouseenter":q("mouseleave",X);break;case"focus":q($t?"focusout":"blur",Q);break;case"focusin":q("focusout",Q);break}}))}function K(){h.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),h=[]}function $(e){var t,n=!1;if(y.state.isEnabled&&!Z(e)&&!d){var r="focus"===(null==(t=a)?void 0:t.type);a=e,c=e.currentTarget,x(),!y.state.isVisible&&At(e)&&pn.forEach((function(t){return t(e)})),"click"===e.type&&(y.props.trigger.indexOf("mouseenter")<0||u)&&!1!==y.props.hideOnClick&&y.state.isVisible?n=!0:oe(e),"click"===e.type&&(u=!n),n&&!r&&ae(e)}}function J(e){var t=e.target,n=E().contains(t)||M.contains(t);if("mousemove"!==e.type||!n){var r=re().concat(M).map((function(e){var t,n=e._tippy,r=null==(t=n.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:l}:null})).filter(Boolean);Vt(r,e)&&(P(),ae(e))}}function X(e){var t=Z(e)||y.props.trigger.indexOf("click")>=0&&u;t||(y.props.interactive?y.hideWithInteractivity(e):ae(e))}function Q(e){y.props.trigger.indexOf("focusin")<0&&e.target!==E()||y.props.interactive&&e.relatedTarget&&M.contains(e.relatedTarget)||ae(e)}function Z(e){return!!Gt.isTouch&&T()!==e.type.indexOf("touch")>=0}function ee(){te();var t=y.props,n=t.popperOptions,r=t.placement,o=t.offset,a=t.getReferenceClientRect,i=t.moveTransition,c=I()?ln(M).arrow:null,l=a?{getBoundingClientRect:a,contextElement:a.contextElement||E()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(I()){var n=D(),r=n.box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)})),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!i}},u];I()&&c&&d.push({name:"arrow",options:{element:c,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),y.popperInstance=dt(l,M,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:d}))}function te(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function ne(){var e,t=y.props.appendTo,n=E();e=y.props.interactive&&t===_t||"parent"===t?n.parentNode:Ot(t,[n]),e.contains(M)||e.appendChild(M),y.state.isMounted=!0,ee()}function re(){return It(M.querySelectorAll("[data-tippy-root]"))}function oe(e){y.clearDelayTimeouts(),e&&N("onTrigger",[y,e]),F();var t=L(!0),r=S(),o=r[0],a=r[1];Gt.isTouch&&"hold"===o&&a&&(t=a),t?n=setTimeout((function(){y.show()}),t):y.show()}function ae(e){if(y.clearDelayTimeouts(),N("onUntrigger",[y,e]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&u)){var t=L(!1);t?r=setTimeout((function(){y.state.isVisible&&y.hide()}),t):o=requestAnimationFrame((function(){y.hide()}))}}else G()}function ie(){y.state.isEnabled=!0}function se(){y.hide(),y.state.isEnabled=!1}function ce(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)}function le(t){if(!y.state.isDestroyed){N("onBeforeUpdate",[y,t]),K();var n=y.props,r=rn(e,Object.assign({},n,Et(t),{ignoreAttributes:!0}));y.props=r,W(),n.interactiveDebounce!==r.interactiveDebounce&&(P(),m=Mt(J,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?Ct(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded"),x(),A(),k&&k(n,r),y.popperInstance&&(ee(),re().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),N("onAfterUpdate",[y,t])}}function ue(e){y.setProps({content:e})}function de(){var e=y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=Gt.isTouch&&!y.props.touch,o=bt(y.props.duration,0,Qt.duration);if(!(e||t||n||r)&&!E().hasAttribute("disabled")&&(N("onShow",[y],!1),!1!==y.props.onShow(y))){if(y.state.isVisible=!0,I()&&(M.style.visibility="visible"),A(),F(),y.state.isMounted||(M.style.transition="none"),I()){var a=D(),i=a.box,c=a.content;xt([i,c],0)}s=function(){var e;if(y.state.isVisible&&!f){if(f=!0,M.offsetHeight,M.style.transition=y.props.moveTransition,I()&&y.props.animation){var t=D(),n=t.box,r=t.content;xt([n,r],o),Pt([n,r],"visible")}R(),x(),wt(fn,y),null==(e=y.popperInstance)||e.forceUpdate(),N("onMount",[y]),y.props.animation&&I()&&Y(o,(function(){y.state.isShown=!0,N("onShown",[y])}))}},ne()}}function pe(){var e=!y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=bt(y.props.duration,1,Qt.duration);if(!(e||t||n)&&(N("onHide",[y],!1),!1!==y.props.onHide(y))){if(y.state.isVisible=!1,y.state.isShown=!1,f=!1,u=!1,I()&&(M.style.visibility="hidden"),P(),G(),A(!0),I()){var o=D(),a=o.box,i=o.content;y.props.animation&&(xt([a,i],r),Pt([a,i],"hidden"))}R(),x(),y.props.animation?I()&&H(r,y.unmount):y.unmount()}}function fe(e){j().addEventListener("mousemove",m),wt(pn,m),m(e)}function he(){y.state.isVisible&&y.hide(),y.state.isMounted&&(te(),re().forEach((function(e){e._tippy.unmount()})),M.parentNode&&M.parentNode.removeChild(M),fn=fn.filter((function(e){return e!==y})),y.state.isMounted=!1,N("onHidden",[y]))}function me(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),K(),delete e._tippy,y.state.isDestroyed=!0,N("onDestroy",[y]))}}function mn(e,t){void 0===t&&(t={});var n=Qt.plugins.concat(t.plugins||[]);Wt();var r=Object.assign({},t,{plugins:n}),o=Rt(e),a=o.reduce((function(e,t){var n=t&&hn(t,r);return n&&e.push(n),e}),[]);return Dt(e)?a[0]:a}mn.defaultProps=Qt,mn.setDefaultProps=en,mn.currentInput=Gt;Object.assign({},x,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});mn.setDefaultProps({render:un});var vn=mn;class gn{constructor({editor:e,element:t,view:n,tippyOptions:o={},updateDelay:a=250,shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:e,state:t,from:n,to:o})=>{const{doc:a,selection:i}=t,{empty:s}=i,c=!a.textBetween(n,o).length&&Object(r["j"])(t.selection),l=this.element.contains(document.activeElement),u=e.hasFocus()||l;return!(!u||s||c||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{var t;this.preventHide?this.preventHide=!1:(null===e||void 0===e?void 0:e.relatedTarget)&&(null===(t=this.element.parentNode)||void 0===t?void 0:t.contains(e.relatedTarget))||(null===e||void 0===e?void 0:e.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=e=>{this.blurHandler({event:e})},this.handleDebouncedUpdate=(e,t)=>{const n=!(null===t||void 0===t?void 0:t.selection.eq(e.state.selection)),r=!(null===t||void 0===t?void 0:t.doc.eq(e.state.doc));(n||r)&&(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(e,n,r,t)},this.updateDelay))},this.updateHandler=(e,t,n,o)=>{var a,i,s;const{state:c,composing:l}=e,{selection:u}=c,d=!t&&!n;if(l||d)return;this.createTooltip();const{ranges:p}=u,f=Math.min(...p.map(e=>e.$from.pos)),h=Math.max(...p.map(e=>e.$to.pos)),m=null===(a=this.shouldShow)||void 0===a?void 0:a.call(this,{editor:this.editor,element:this.element,view:e,state:c,oldState:o,from:f,to:h});m?(null===(i=this.tippy)||void 0===i||i.setProps({getReferenceClientRect:(null===(s=this.tippyOptions)||void 0===s?void 0:s.getReferenceClientRect)||(()=>{if(Object(r["i"])(c.selection)){let t=e.nodeDOM(f);if(t){const e=t.dataset.nodeViewWrapper?t:t.querySelector("[data-node-view-wrapper]");if(e&&(t=e.firstChild),t)return t.getBoundingClientRect()}}return Object(r["m"])(e,f,h)})}),this.show()):this.hide()},this.editor=e,this.element=t,this.view=n,this.updateDelay=a,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.element.tabIndex=0,!this.tippy&&t&&(this.tippy=vn(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:n}=e,r=n.selection.from!==n.selection.to;if(this.updateDelay>0&&r)return void this.handleDebouncedUpdate(e,t);const o=!(null===t||void 0===t?void 0:t.selection.eq(e.state.selection)),a=!(null===t||void 0===t?void 0:t.doc.eq(e.state.doc));this.updateHandler(e,o,a,t)}show(){var e;null===(e=this.tippy)||void 0===e||e.show()}hide(){var e;null===(e=this.tippy)||void 0===e||e.hide()}destroy(){var e,t;(null===(e=this.tippy)||void 0===e?void 0:e.popper.firstChild)&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(t=this.tippy)||void 0===t||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const _n=e=>new o["d"]({key:"string"===typeof e.pluginKey?new o["e"](e.pluginKey):e.pluginKey,view:t=>new gn({view:t,...e})});r["b"].create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[_n({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});var bn=n("7a23");class yn{getTextContent(e){return Object(r["f"])(e,{textSerializers:Object(r["g"])(this.editor.schema)})}constructor({editor:e,element:t,view:n,tippyOptions:r={},shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:e,state:t})=>{const{selection:n}=t,{$anchor:r,empty:o}=n,a=1===r.depth,i=r.parent.isTextblock&&!r.parent.type.spec.code&&!r.parent.textContent&&0===r.parent.childCount&&!this.getTextContent(r.parent);return!!(e.hasFocus()&&o&&a&&i&&this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{var t;this.preventHide?this.preventHide=!1:(null===e||void 0===e?void 0:e.relatedTarget)&&(null===(t=this.element.parentNode)||void 0===t?void 0:t.contains(e.relatedTarget))||(null===e||void 0===e?void 0:e.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=e=>{this.blurHandler({event:e})},this.editor=e,this.element=t,this.view=n,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.element.tabIndex=0,!this.tippy&&t&&(this.tippy=vn(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var n,o,a;const{state:i}=e,{doc:s,selection:c}=i,{from:l,to:u}=c,d=t&&t.doc.eq(s)&&t.selection.eq(c);if(d)return;this.createTooltip();const p=null===(n=this.shouldShow)||void 0===n?void 0:n.call(this,{editor:this.editor,view:e,state:i,oldState:t});p?(null===(o=this.tippy)||void 0===o||o.setProps({getReferenceClientRect:(null===(a=this.tippyOptions)||void 0===a?void 0:a.getReferenceClientRect)||(()=>Object(r["m"])(e,l,u))}),this.show()):this.hide()}show(){var e;null===(e=this.tippy)||void 0===e||e.show()}hide(){var e;null===(e=this.tippy)||void 0===e||e.hide()}destroy(){var e,t;(null===(e=this.tippy)||void 0===e?void 0:e.popper.firstChild)&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(t=this.tippy)||void 0===t||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const On=e=>new o["d"]({key:"string"===typeof e.pluginKey?new o["e"](e.pluginKey):e.pluginKey,view:t=>new yn({view:t,...e})});r["b"].create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[On({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),Object(bn["defineComponent"])({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(e,{slots:t}){const n=Object(bn["ref"])(null);return Object(bn["onMounted"])(()=>{const{updateDelay:t,editor:r,pluginKey:o,shouldShow:a,tippyOptions:i}=e;r.registerPlugin(_n({updateDelay:t,editor:r,element:n.value,pluginKey:o,shouldShow:a,tippyOptions:i}))}),Object(bn["onBeforeUnmount"])(()=>{const{pluginKey:t,editor:n}=e;n.unregisterPlugin(t)}),()=>{var e;return Object(bn["h"])("div",{ref:n},null===(e=t.default)||void 0===e?void 0:e.call(t))}}});function Mn(e){return Object(bn["customRef"])((t,n)=>({get(){return t(),e},set(t){e=t,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class kn extends r["a"]{constructor(e={}){return super(e),this.contentComponent=null,this.appContext=null,this.reactiveState=Mn(this.view.state),this.reactiveExtensionStorage=Mn(this.extensionStorage),this.on("beforeTransaction",({nextState:e})=>{this.reactiveState.value=e,this.reactiveExtensionStorage.value=this.extensionStorage}),Object(bn["markRaw"])(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){const n=super.registerPlugin(e,t);return this.reactiveState&&(this.reactiveState.value=n),n}unregisterPlugin(e){const t=super.unregisterPlugin(e);return this.reactiveState&&t&&(this.reactiveState.value=t),t}}const Cn=Object(bn["defineComponent"])({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(e){const t=Object(bn["ref"])(),n=Object(bn["getCurrentInstance"])();return Object(bn["watchEffect"])(()=>{const r=e.editor;r&&r.options.element&&t.value&&Object(bn["nextTick"])(()=>{if(!t.value||!r.options.element.firstChild)return;const e=Object(bn["unref"])(t.value);t.value.append(...r.options.element.childNodes),r.contentComponent=n.ctx._,n&&(r.appContext={...n.appContext,provides:n.provides}),r.setOptions({element:e}),r.createNodeViews()})}),Object(bn["onBeforeUnmount"])(()=>{const t=e.editor;t&&(t.contentComponent=null,t.appContext=null)}),{rootEl:t}},render(){return Object(bn["h"])("div",{ref:e=>{this.rootEl=e}})}}),wn=(Object(bn["defineComponent"])({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(e,{slots:t}){const n=Object(bn["ref"])(null);return Object(bn["onMounted"])(()=>{const{pluginKey:t,editor:r,tippyOptions:o,shouldShow:a}=e;r.registerPlugin(On({pluginKey:t,editor:r,element:n.value,tippyOptions:o,shouldShow:a}))}),Object(bn["onBeforeUnmount"])(()=>{const{pluginKey:t,editor:n}=e;n.unregisterPlugin(t)}),()=>{var e;return Object(bn["h"])("div",{ref:n},null===(e=t.default)||void 0===e?void 0:e.call(t))}}}),Object(bn["defineComponent"])({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return Object(bn["h"])(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),Object(bn["defineComponent"])({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var e,t;return Object(bn["h"])(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))}}),(e={})=>{const t=Object(bn["shallowRef"])();return Object(bn["onMounted"])(()=>{t.value=new kn(e)}),Object(bn["onBeforeUnmount"])(()=>{var e,n,r;const o=null===(e=t.value)||void 0===e?void 0:e.options.element,a=null===o||void 0===o?void 0:o.cloneNode(!0);null===(n=null===o||void 0===o?void 0:o.parentNode)||void 0===n||n.replaceChild(a,o),null===(r=t.value)||void 0===r||r.destroy()}),t});Boolean;r["d"]},"522d":function(e,t,n){"use strict";var r=n("3eba"),o=n("2874");o(r.JSON,"JSON",!0)},5270:function(e,t,n){"use strict";var r=n("c532"),o=n("c401"),a=n("2e67"),i=n("4c3d"),s=n("7a77");function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){c(e),e.headers=e.headers||{},e.data=o.call(e,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||i.adapter;return t(e).then((function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5294:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],r=e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}});return r}))},"52bd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}});return t}))},"52d7":function(e,t,n){"use strict";var r=n("437b"),o=n("b43a"),a=Array.prototype;e.exports=function(e){var t=e.fill;return e===a||r(a,e)&&t===a.fill?o:t}},"52da":function(e,t,n){e.exports=n("4035")},5377:function(e,t,n){"use strict";var r=n("83ab"),o=n("edd0"),a=n("0f33"),i=n("ad6d");r&&!a.correct&&(o(RegExp.prototype,"flags",{configurable:!0,get:i}),a.correct=!0)},5402:function(e,t,n){"use strict";var r=n("0d25"),o=n("2714"),a=n("ccf1"),i=n("f213"),s=n("33f3"),c=s||i||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e["delete"](t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=c()),e.set(t,n)}};return t}},5415:function(e,t,n){"use strict";var r=n("7106");e.exports=function(e,t,n){var o,a,i=n?e:e.iterator,s=e.next;while(!(o=r(s,i)).done)if(a=t(o.value),void 0!==a)return a}},5495:function(e,t,n){"use strict";var r=Math.ceil,o=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?o:r)(t)}},"54bb":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("0c24"),o=n("0e69"),a=n("304f"),i=n("d92a"),s=n("7a23"),c=Object(s["defineComponent"])({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:i["a"],setup(e){const t=e,n=Object(a["d"])("icon"),r=Object(s["computed"])(()=>{const{size:e,color:n}=t,r=Object(o["b"])(e);return r||n?{fontSize:r,"--color":n}:{}});return(e,t)=>(Object(s["openBlock"])(),Object(s["createElementBlock"])("i",Object(s["mergeProps"])({class:Object(s["unref"])(n).b(),style:r.value},e.$attrs),[Object(s["renderSlot"])(e.$slots,"default")],16))}}),l=c;const u=Object(r["a"])(l)},5502:function(e,t,n){"use strict";n.d(t,"a",(function(){return Q})),n.d(t,"c",(function(){return i}));var r=n("7a23"),o=n("3f4e"),a="store";function i(e){return void 0===e&&(e=null),Object(r["inject"])(null!==e?e:a)}function s(e,t){return e.filter(t)[0]}function c(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=s(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=c(e[n],t)})),r}function l(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function u(e){return null!==e&&"object"===typeof e}function d(e){return e&&"function"===typeof e.then}function p(e,t){if(!e)throw new Error("[vuex] "+t)}function f(e,t){return function(){return e(t)}}function h(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function m(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;g(e,n,[],e._modules.root,!0),v(e,n,t)}function v(e,t,n){var o=e._state,a=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,s={},c={},u=Object(r["effectScope"])(!0);u.run((function(){l(i,(function(t,n){s[n]=f(t,e),c[n]=Object(r["computed"])((function(){return s[n]()})),Object.defineProperty(e.getters,n,{get:function(){return c[n].value},enumerable:!0})}))})),e._state=Object(r["reactive"])({data:t}),e._scope=u,e.strict&&k(e),o&&n&&e._withCommit((function(){o.data=null})),a&&a.stop()}function g(e,t,n,r,o){var a=!n.length,i=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[i]&&console.error("[vuex] duplicate namespace "+i+" for the namespaced module "+n.join("/")),e._modulesNamespaceMap[i]=r),!a&&!o){var s=C(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){c in s&&console.warn('[vuex] state field "'+c+'" was overridden by a module with the same name at "'+n.join(".")+'"'),s[c]=r.state}))}var l=r.context=_(e,i,n);r.forEachMutation((function(t,n){var r=i+n;y(e,r,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:i+n,o=t.handler||t;O(e,r,o,l)})),r.forEachGetter((function(t,n){var r=i+n;M(e,r,t,l)})),r.forEachChild((function(r,a){g(e,t,n.concat(a),r,o)}))}function _(e,t,n){var r=""===t,o={dispatch:r?e.dispatch:function(n,r,o){var a=w(n,r,o),i=a.payload,s=a.options,c=a.type;if(s&&s.root||(c=t+c,e._actions[c]))return e.dispatch(c,i);console.error("[vuex] unknown local action type: "+a.type+", global type: "+c)},commit:r?e.commit:function(n,r,o){var a=w(n,r,o),i=a.payload,s=a.options,c=a.type;s&&s.root||(c=t+c,e._mutations[c])?e.commit(c,i,s):console.error("[vuex] unknown local mutation type: "+a.type+", global type: "+c)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return b(e,t)}},state:{get:function(){return C(e.state,n)}}}),o}function b(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,r)===t){var a=o.slice(r);Object.defineProperty(n,a,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function y(e,t,n,r){var o=e._mutations[t]||(e._mutations[t]=[]);o.push((function(t){n.call(e,r.state,t)}))}function O(e,t,n,r){var o=e._actions[t]||(e._actions[t]=[]);o.push((function(t){var o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return d(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}function M(e,t,n,r){e._wrappedGetters[t]?console.error("[vuex] duplicate getter key: "+t):e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}function k(e){Object(r["watch"])((function(){return e._state.data}),(function(){p(e._committing,"do not mutate vuex store state outside mutation handlers.")}),{deep:!0,flush:"sync"})}function C(e,t){return t.reduce((function(e,t){return e[t]}),e)}function w(e,t,n){return u(e)&&e.type&&(n=t,t=e,e=e.type),p("string"===typeof e,"expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:n}}var S="vuex bindings",T="vuex:mutations",I="vuex:actions",E="vuex",j=0;function D(e,t){Object(o["a"])({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[S]},(function(n){n.addTimelineLayer({id:T,label:"Vuex Mutations",color:L}),n.addTimelineLayer({id:I,label:"Vuex Actions",color:L}),n.addInspector({id:E,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===E)if(n.filter){var r=[];U(r,t._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[P(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===E){var r=n.nodeId;b(t,r),n.state=V(F(t._modules,r),"root"===r?t.getters:t._makeLocalGettersCache,r)}})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===E){var r=n.nodeId,o=n.path;"root"!==r&&(o=r.split("/").filter(Boolean).concat(o)),t._withCommit((function(){n.set(t._state.data,o,n.state.value)}))}})),t.subscribe((function(e,t){var r={};e.payload&&(r.payload=e.payload),r.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(E),n.sendInspectorState(E),n.addTimelineEvent({layerId:T,event:{time:Date.now(),title:e.type,data:r}})})),t.subscribeAction({before:function(e,t){var r={};e.payload&&(r.payload=e.payload),e._id=j++,e._time=Date.now(),r.state=t,n.addTimelineEvent({layerId:I,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:r}})},after:function(e,t){var r={},o=Date.now()-e._time;r.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},e.payload&&(r.payload=e.payload),r.state=t,n.addTimelineEvent({layerId:I,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:r}})}})}))}var L=8702998,A=6710886,N=16777215,R={label:"namespaced",textColor:N,backgroundColor:A};function x(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function P(e,t){return{id:t||"root",label:x(t),tags:e.namespaced?[R]:[],children:Object.keys(e._children).map((function(n){return P(e._children[n],t+n+"/")}))}}function U(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[R]:[]}),Object.keys(t._children).forEach((function(o){U(e,t._children[o],n,r+o+"/")}))}function V(e,t,n){t="root"===n?t:t[n];var r=Object.keys(t),o={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(r.length){var a=B(t);o.getters=Object.keys(a).map((function(e){return{key:e.endsWith("/")?x(e):e,editable:!1,value:G((function(){return a[e]}))}}))}return o}function B(e){var t={};return Object.keys(e).forEach((function(n){var r=n.split("/");if(r.length>1){var o=t,a=r.pop();r.forEach((function(e){o[e]||(o[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),o=o[e]._custom.value})),o[a]=G((function(){return e[n]}))}else t[n]=G((function(){return e[n]}))})),t}function F(e,t){var n=t.split("/").filter((function(e){return e}));return n.reduce((function(e,r,o){var a=e[r];if(!a)throw new Error('Missing module "'+r+'" for path "'+t+'".');return o===n.length-1?a:a._children}),"root"===t?e:e.root._children)}function G(e){try{return e()}catch(t){return t}}var H=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)||{}},Y={namespaced:{configurable:!0}};Y.namespaced.get=function(){return!!this._rawModule.namespaced},H.prototype.addChild=function(e,t){this._children[e]=t},H.prototype.removeChild=function(e){delete this._children[e]},H.prototype.getChild=function(e){return this._children[e]},H.prototype.hasChild=function(e){return e in this._children},H.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)},H.prototype.forEachChild=function(e){l(this._children,e)},H.prototype.forEachGetter=function(e){this._rawModule.getters&&l(this._rawModule.getters,e)},H.prototype.forEachAction=function(e){this._rawModule.actions&&l(this._rawModule.actions,e)},H.prototype.forEachMutation=function(e){this._rawModule.mutations&&l(this._rawModule.mutations,e)},Object.defineProperties(H.prototype,Y);var z=function(e){this.register([],e,!1)};function q(e,t,n){if(J(e,n),t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");q(e.concat(r),t.getChild(r),n.modules[r])}}z.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},z.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},z.prototype.update=function(e){q([],this.root,e)},z.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0),J(e,t);var o=new H(t,n);if(0===e.length)this.root=o;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],o)}t.modules&&l(t.modules,(function(t,o){r.register(e.concat(o),t,n)}))},z.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r?r.runtime&&t.removeChild(n):console.warn("[vuex] trying to unregister module '"+n+"', which is not registered")},z.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var W={assert:function(e){return"function"===typeof e},expected:"function"},K={assert:function(e){return"function"===typeof e||"object"===typeof e&&"function"===typeof e.handler},expected:'function or object with "handler" function'},$={getters:W,mutations:W,actions:K};function J(e,t){Object.keys($).forEach((function(n){if(t[n]){var r=$[n];l(t[n],(function(t,o){p(r.assert(t),X(e,n,o,t,r.expected))}))}}))}function X(e,t,n,r,o){var a=t+" should be "+o+' but "'+t+"."+n+'"';return e.length>0&&(a+=' in module "'+e.join(".")+'"'),a+=" is "+JSON.stringify(r)+".",a}function Q(e){return new Z(e)}var Z=function e(t){var n=this;void 0===t&&(t={}),p("undefined"!==typeof Promise,"vuex requires a Promise polyfill in this browser."),p(this instanceof e,"store must be called with the new operator.");var r=t.plugins;void 0===r&&(r=[]);var o=t.strict;void 0===o&&(o=!1);var a=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new z(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=a;var i=this,s=this,c=s.dispatch,l=s.commit;this.dispatch=function(e,t){return c.call(i,e,t)},this.commit=function(e,t,n){return l.call(i,e,t,n)},this.strict=o;var u=this._modules.root.state;g(this,u,[],this._modules.root),v(this,u),r.forEach((function(e){return e(n)}))},ee={state:{configurable:!0}};Z.prototype.install=function(e,t){e.provide(t||a,this),e.config.globalProperties.$store=this;var n=void 0===this._devtools||this._devtools;n&&D(e,this)},ee.state.get=function(){return this._state.data},ee.state.set=function(e){p(!1,"use store.replaceState() to explicit replace store state.")},Z.prototype.commit=function(e,t,n){var r=this,o=w(e,t,n),a=o.type,i=o.payload,s=o.options,c={type:a,payload:i},l=this._mutations[a];l?(this._withCommit((function(){l.forEach((function(e){e(i)}))})),this._subscribers.slice().forEach((function(e){return e(c,r.state)})),s&&s.silent&&console.warn("[vuex] mutation type: "+a+". Silent option has been removed. Use the filter functionality in the vue-devtools")):console.error("[vuex] unknown mutation type: "+a)},Z.prototype.dispatch=function(e,t){var n=this,r=w(e,t),o=r.type,a=r.payload,i={type:o,payload:a},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(i,n.state)}))}catch(l){console.warn("[vuex] error in before action subscribers: "),console.error(l)}var c=s.length>1?Promise.all(s.map((function(e){return e(a)}))):s[0](a);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(i,n.state)}))}catch(l){console.warn("[vuex] error in after action subscribers: "),console.error(l)}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(i,n.state,e)}))}catch(l){console.warn("[vuex] error in error action subscribers: "),console.error(l)}t(e)}))}))}console.error("[vuex] unknown action type: "+o)},Z.prototype.subscribe=function(e,t){return h(e,this._subscribers,t)},Z.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return h(n,this._actionSubscribers,t)},Z.prototype.watch=function(e,t,n){var o=this;return p("function"===typeof e,"store.watch only accepts a function."),Object(r["watch"])((function(){return e(o.state,o.getters)}),t,Object.assign({},n))},Z.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},Z.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),p(Array.isArray(e),"module path must be a string or an Array."),p(e.length>0,"cannot register the root module by using registerModule."),this._modules.register(e,t),g(this,this.state,e,this._modules.get(e),n.preserveState),v(this,this.state)},Z.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),p(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit((function(){var n=C(t.state,e.slice(0,-1));delete n[e[e.length-1]]})),m(this)},Z.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),p(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Z.prototype.hotUpdate=function(e){this._modules.update(e),m(this,!0)},Z.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(Z.prototype,ee);var te=ce((function(e,t){var n={};return se(t)||console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),ie(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=le(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof o?o.call(this,t,n):t[o]},n[r].vuex=!0})),n})),ne=ce((function(e,t){var n={};return se(t)||console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),ie(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var a=le(this.$store,"mapMutations",e);if(!a)return;r=a.context.commit}return"function"===typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})),re=ce((function(e,t){var n={};return se(t)||console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),ie(t).forEach((function(t){var r=t.key,o=t.val;o=e+o,n[r]=function(){if(!e||le(this.$store,"mapGetters",e)){if(o in this.$store.getters)return this.$store.getters[o];console.error("[vuex] unknown getter: "+o)}},n[r].vuex=!0})),n})),oe=ce((function(e,t){var n={};return se(t)||console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),ie(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var a=le(this.$store,"mapActions",e);if(!a)return;r=a.context.dispatch}return"function"===typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})),ae=function(e){return{mapState:te.bind(null,e),mapGetters:re.bind(null,e),mapMutations:ne.bind(null,e),mapActions:oe.bind(null,e)}};function ie(e){return se(e)?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 se(e){return Array.isArray(e)||u(e)}function ce(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function le(e,t,n){var r=e._modulesNamespaceMap[n];return r||console.error("[vuex] module namespace not found in "+t+"(): "+n),r}function ue(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var o=e.mutationTransformer;void 0===o&&(o=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var i=e.actionTransformer;void 0===i&&(i=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var l=e.logActions;void 0===l&&(l=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var d=c(e.state);"undefined"!==typeof u&&(s&&e.subscribe((function(e,a){var i=c(a);if(n(e,d,i)){var s=fe(),l=o(e),p="mutation "+e.type+s;de(u,p,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",r(d)),u.log("%c mutation","color: #03A9F4; font-weight: bold",l),u.log("%c next state","color: #4CAF50; font-weight: bold",r(i)),pe(u)}d=i})),l&&e.subscribeAction((function(e,n){if(a(e,n)){var r=fe(),o=i(e),s="action "+e.type+r;de(u,s,t),u.log("%c action","color: #03A9F4; font-weight: bold",o),pe(u)}})))}}function de(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(o){e.log(t)}}function pe(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function fe(){var e=new Date;return" @ "+me(e.getHours(),2)+":"+me(e.getMinutes(),2)+":"+me(e.getSeconds(),2)+"."+me(e.getMilliseconds(),3)}function he(e,t){return new Array(t+1).join(e)}function me(e,t){return he("0",t-e.toString().length)+e}var ve={version:"4.1.0",Store:Z,storeKey:a,createStore:Q,useStore:i,mapState:te,mapMutations:ne,mapGetters:re,mapActions:oe,createNamespacedHelpers:ae,createLogger:ue};t["b"]=ve},"55c9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});return a}))},"55d0":function(e,t,n){"use strict";var r=n("a5eb"),o=n("f44f");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},5692:function(e,t,n){"use strict";var r=n("c6cd");e.exports=function(e,t){return r[e]||(r[e]=t||{})}},"56ba":function(e,t,n){"use strict";var r=n("0273"),o=n("f7c8"),a=n("f3a3"),i=Error.captureStackTrace;e.exports=function(e,t,n,s){a&&(i?i(e,t):r(e,"stack",o(n,s)))}},"56c4":function(e,t,n){"use strict";n("a8b3");var r=n("c18e");e.exports=r("Array","forEach")},"56c5":function(e,t,n){"use strict";var r=n("a5eb"),o=n("ec62");r({target:"Object",stat:!0},{setPrototypeOf:o})},"56ef":function(e,t,n){"use strict";var r=n("d066"),o=n("e330"),a=n("241c"),i=n("7418"),s=n("825a"),c=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=i.f;return n?c(t,n(e)):t}},"576c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},5779:function(e,t,n){"use strict";var r=n("0e6f"),o=n("fb2d"),a=n("4fff"),i=n("b2ed"),s=n("f5fb"),c=i("IE_PROTO"),l=Object,u=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=a(e);if(r(t,c))return t[c];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof l?u:null}},"577e":function(e,t,n){"use strict";var r=n("f5df"),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},5781:function(e,t,n){(function(t){!function(t,n){e.exports=n()}(0,(function(){function e(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 n(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function r(){r=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(I){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),i=new C(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return S()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=O(i,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var d={};function p(){}function f(){}function h(){}var m={};c(m,a,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(w([])));g&&g!==t&&n.call(g,a)&&(m=g);var _=h.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){function r(o,a,i,s){var c=u(e[o],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){l.value=e,i(l)}),(function(e){return r("throw",e,i,s)}))}s(c.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function M(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function w(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return f.prototype=h,c(_,"constructor",h),c(h,"constructor",f),f.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},b(y.prototype),c(y.prototype,i,(function(){return this})),e.AsyncIterator=y,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new y(l(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(_),c(_,s,"Generator"),c(_,a,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=w,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},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),d},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),k(n),d}},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 o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:w(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}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 a(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 l(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(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&&f(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function h(){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 m(e,t,n){return m=h()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&f(o,n.prototype),o},m.apply(null,arguments)}function v(e){var t="function"==typeof Map?new Map:void 0;return v=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return m(e,arguments,p(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)},v(e)}function g(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){var t=h();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function b(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=b(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},y.apply(this,arguments)}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||k(e,t)||function(){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 M(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){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 k(e,t){if(e){if("string"==typeof e)return C(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)?C(e,t):void 0}}function C(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 w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=k(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,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function S(e,t,n,r,o){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{},I=function(e){return e&&e.Math==Math&&e},E=I("object"==typeof globalThis&&globalThis)||I("object"==typeof window&&window)||I("object"==typeof self&&self)||I("object"==typeof T&&T)||function(){return this}()||Function("return this")(),j={},D=function(e){try{return!!e()}catch(n){return!0}},L=!D((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),A=!D((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),N=A,R=Function.prototype.call,x=N?R.bind(R):function(){return R.apply(R,arguments)},P={},U={}.propertyIsEnumerable,V=Object.getOwnPropertyDescriptor,B=V&&!U.call({1:2},1);P.f=B?function(e){var t=V(this,e);return!!t&&t.enumerable}:U;var F,G,H=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Y=A,z=Function.prototype,q=z.call,W=Y&&z.bind.bind(q,q),K=function(e){return Y?W(e):function(){return q.apply(e,arguments)}},$=K,J=$({}.toString),X=$("".slice),Q=function(e){return X(J(e),8,-1)},Z=Q,ee=K,te=function(e){if("Function"===Z(e))return ee(e)},ne=D,re=Q,oe=Object,ae=te("".split),ie=ne((function(){return!oe("z").propertyIsEnumerable(0)}))?function(e){return"String"==re(e)?ae(e,""):oe(e)}:oe,se=function(e){return null==e},ce=se,le=TypeError,ue=function(e){if(ce(e))throw le("Can't call method on "+e);return e},de=ie,pe=ue,fe=function(e){return de(pe(e))},he="object"==typeof document&&document.all,me={all:he,IS_HTMLDDA:void 0===he&&void 0!==he},ve=me.all,ge=me.IS_HTMLDDA?function(e){return"function"==typeof e||e===ve}:function(e){return"function"==typeof e},_e=ge,be=me.all,ye=me.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:_e(e)||e===be}:function(e){return"object"==typeof e?null!==e:_e(e)},Oe=E,Me=ge,ke=function(e){return Me(e)?e:void 0},Ce=function(e,t){return arguments.length<2?ke(Oe[e]):Oe[e]&&Oe[e][t]},we=te({}.isPrototypeOf),Se=Ce("navigator","userAgent")||"",Te=E,Ie=Se,Ee=Te.process,je=Te.Deno,De=Ee&&Ee.versions||je&&je.version,Le=De&&De.v8;Le&&(G=(F=Le.split("."))[0]>0&&F[0]<4?1:+(F[0]+F[1])),!G&&Ie&&(!(F=Ie.match(/Edge\/(\d+)/))||F[1]>=74)&&(F=Ie.match(/Chrome\/(\d+)/))&&(G=+F[1]);var Ae=G,Ne=Ae,Re=D,xe=!!Object.getOwnPropertySymbols&&!Re((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ne&&Ne<41})),Pe=xe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ue=Ce,Ve=ge,Be=we,Fe=Object,Ge=Pe?function(e){return"symbol"==typeof e}:function(e){var t=Ue("Symbol");return Ve(t)&&Be(t.prototype,Fe(e))},He=String,Ye=function(e){try{return He(e)}catch(n){return"Object"}},ze=ge,qe=Ye,We=TypeError,Ke=function(e){if(ze(e))return e;throw We(qe(e)+" is not a function")},$e=Ke,Je=se,Xe=function(e,t){var n=e[t];return Je(n)?void 0:$e(n)},Qe=x,Ze=ge,et=ye,tt=TypeError,nt={exports:{}},rt=E,ot=Object.defineProperty,at=function(e,t){try{ot(rt,e,{value:t,configurable:!0,writable:!0})}catch(r){rt[e]=t}return t},it=at,st="__core-js_shared__",ct=E[st]||it(st,{}),lt=ct;(nt.exports=function(e,t){return lt[e]||(lt[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var ut=ue,dt=Object,pt=function(e){return dt(ut(e))},ft=pt,ht=te({}.hasOwnProperty),mt=Object.hasOwn||function(e,t){return ht(ft(e),t)},vt=te,gt=0,_t=Math.random(),bt=vt(1..toString),yt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+bt(++gt+_t,36)},Ot=E,Mt=nt.exports,kt=mt,Ct=yt,wt=xe,St=Pe,Tt=Mt("wks"),It=Ot.Symbol,Et=It&&It.for,jt=St?It:It&&It.withoutSetter||Ct,Dt=function(e){if(!kt(Tt,e)||!wt&&"string"!=typeof Tt[e]){var t="Symbol."+e;wt&&kt(It,e)?Tt[e]=It[e]:Tt[e]=St&&Et?Et(t):jt(t)}return Tt[e]},Lt=x,At=ye,Nt=Ge,Rt=Xe,xt=function(e,t){var n,r;if("string"===t&&Ze(n=e.toString)&&!et(r=Qe(n,e)))return r;if(Ze(n=e.valueOf)&&!et(r=Qe(n,e)))return r;if("string"!==t&&Ze(n=e.toString)&&!et(r=Qe(n,e)))return r;throw tt("Can't convert object to primitive value")},Pt=TypeError,Ut=Dt("toPrimitive"),Vt=function(e,t){if(!At(e)||Nt(e))return e;var n,r=Rt(e,Ut);if(r){if(void 0===t&&(t="default"),n=Lt(r,e,t),!At(n)||Nt(n))return n;throw Pt("Can't convert object to primitive value")}return void 0===t&&(t="number"),xt(e,t)},Bt=Vt,Ft=Ge,Gt=function(e){var t=Bt(e,"string");return Ft(t)?t:t+""},Ht=ye,Yt=E.document,zt=Ht(Yt)&&Ht(Yt.createElement),qt=function(e){return zt?Yt.createElement(e):{}},Wt=qt,Kt=!L&&!D((function(){return 7!=Object.defineProperty(Wt("div"),"a",{get:function(){return 7}}).a})),$t=L,Jt=x,Xt=P,Qt=H,Zt=fe,en=Gt,tn=mt,nn=Kt,rn=Object.getOwnPropertyDescriptor;j.f=$t?rn:function(e,t){if(e=Zt(e),t=en(t),nn)try{return rn(e,t)}catch(r){}if(tn(e,t))return Qt(!Jt(Xt.f,e,t),e[t])};var on={},an=L&&D((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),sn=ye,cn=String,ln=TypeError,un=function(e){if(sn(e))return e;throw ln(cn(e)+" is not an object")},dn=L,pn=Kt,fn=an,hn=un,mn=Gt,vn=TypeError,gn=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,bn="enumerable",yn="configurable",On="writable";on.f=dn?fn?function(e,t,n){if(hn(e),t=mn(t),hn(n),"function"==typeof e&&"prototype"===t&&"value"in n&&On in n&&!n.writable){var r=_n(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:yn in n?n.configurable:r.configurable,enumerable:bn in n?n.enumerable:r.enumerable,writable:!1})}return gn(e,t,n)}:gn:function(e,t,n){if(hn(e),t=mn(t),hn(n),pn)try{return gn(e,t,n)}catch(o){}if("get"in n||"set"in n)throw vn("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Mn=on,kn=H,Cn=L?function(e,t,n){return Mn.f(e,t,kn(1,n))}:function(e,t,n){return e[t]=n,e},wn={exports:{}},Sn=L,Tn=mt,In=Function.prototype,En=Sn&&Object.getOwnPropertyDescriptor,jn=Tn(In,"name"),Dn={EXISTS:jn,PROPER:jn&&"something"===function(){}.name,CONFIGURABLE:jn&&(!Sn||Sn&&En(In,"name").configurable)},Ln=ge,An=ct,Nn=te(Function.toString);Ln(An.inspectSource)||(An.inspectSource=function(e){return Nn(e)});var Rn,xn,Pn,Un=An.inspectSource,Vn=ge,Bn=E.WeakMap,Fn=Vn(Bn)&&/native code/.test(String(Bn)),Gn=nt.exports,Hn=yt,Yn=Gn("keys"),zn=function(e){return Yn[e]||(Yn[e]=Hn(e))},qn={},Wn=Fn,Kn=E,$n=ye,Jn=Cn,Xn=mt,Qn=ct,Zn=zn,er=qn,tr="Object already initialized",nr=Kn.TypeError,rr=Kn.WeakMap;if(Wn||Qn.state){var or=Qn.state||(Qn.state=new rr);or.get=or.get,or.has=or.has,or.set=or.set,Rn=function(e,t){if(or.has(e))throw nr(tr);return t.facade=e,or.set(e,t),t},xn=function(e){return or.get(e)||{}},Pn=function(e){return or.has(e)}}else{var ar=Zn("state");er[ar]=!0,Rn=function(e,t){if(Xn(e,ar))throw nr(tr);return t.facade=e,Jn(e,ar,t),t},xn=function(e){return Xn(e,ar)?e[ar]:{}},Pn=function(e){return Xn(e,ar)}}var ir={set:Rn,get:xn,has:Pn,enforce:function(e){return Pn(e)?xn(e):Rn(e,{})},getterFor:function(e){return function(t){var n;if(!$n(t)||(n=xn(t)).type!==e)throw nr("Incompatible receiver, "+e+" required");return n}}},sr=D,cr=ge,lr=mt,ur=L,dr=Dn.CONFIGURABLE,pr=Un,fr=ir.enforce,hr=ir.get,mr=Object.defineProperty,vr=ur&&!sr((function(){return 8!==mr((function(){}),"length",{value:8}).length})),gr=String(String).split("String"),_r=wn.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!lr(e,"name")||dr&&e.name!==t)&&(ur?mr(e,"name",{value:t,configurable:!0}):e.name=t),vr&&n&&lr(n,"arity")&&e.length!==n.arity&&mr(e,"length",{value:n.arity});try{n&&lr(n,"constructor")&&n.constructor?ur&&mr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(a){}var r=fr(e);return lr(r,"source")||(r.source=gr.join("string"==typeof t?t:"")),e};Function.prototype.toString=_r((function(){return cr(this)&&hr(this).source||pr(this)}),"toString");var br=ge,yr=on,Or=wn.exports,Mr=at,kr=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(br(n)&&Or(n,a,r),r.global)o?e[t]=n:Mr(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(s){}o?e[t]=n:yr.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Cr={},wr=Math.ceil,Sr=Math.floor,Tr=Math.trunc||function(e){var t=+e;return(t>0?Sr:wr)(t)},Ir=function(e){var t=+e;return t!=t||0===t?0:Tr(t)},Er=Ir,jr=Math.max,Dr=Math.min,Lr=function(e,t){var n=Er(e);return n<0?jr(n+t,0):Dr(n,t)},Ar=Ir,Nr=Math.min,Rr=function(e){return e>0?Nr(Ar(e),9007199254740991):0},xr=Rr,Pr=function(e){return xr(e.length)},Ur=fe,Vr=Lr,Br=Pr,Fr=function(e){return function(t,n,r){var o,a=Ur(t),i=Br(a),s=Vr(r,i);if(e&&n!=n){for(;i>s;)if((o=a[s++])!=o)return!0}else for(;i>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},Gr={includes:Fr(!0),indexOf:Fr(!1)},Hr=mt,Yr=fe,zr=Gr.indexOf,qr=qn,Wr=te([].push),Kr=function(e,t){var n,r=Yr(e),o=0,a=[];for(n in r)!Hr(qr,n)&&Hr(r,n)&&Wr(a,n);for(;t.length>o;)Hr(r,n=t[o++])&&(~zr(a,n)||Wr(a,n));return a},$r=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jr=Kr,Xr=$r.concat("length","prototype");Cr.f=Object.getOwnPropertyNames||function(e){return Jr(e,Xr)};var Qr={};Qr.f=Object.getOwnPropertySymbols;var Zr=Ce,eo=Cr,to=Qr,no=un,ro=te([].concat),oo=Zr("Reflect","ownKeys")||function(e){var t=eo.f(no(e)),n=to.f;return n?ro(t,n(e)):t},ao=mt,io=oo,so=j,co=on,lo=D,uo=ge,po=/#|\.prototype\./,fo=function(e,t){var n=mo[ho(e)];return n==go||n!=vo&&(uo(t)?lo(t):!!t)},ho=fo.normalize=function(e){return String(e).replace(po,".").toLowerCase()},mo=fo.data={},vo=fo.NATIVE="N",go=fo.POLYFILL="P",_o=fo,bo=E,yo=j.f,Oo=Cn,Mo=kr,ko=at,Co=function(e,t,n){for(var r=io(t),o=co.f,a=so.f,i=0;i<r.length;i++){var s=r[i];ao(e,s)||n&&ao(n,s)||o(e,s,a(t,s))}},wo=_o,So=function(e,t){var n,r,o,a,i,s=e.target,c=e.global,l=e.stat;if(n=c?bo:l?bo[s]||ko(s,{}):(bo[s]||{}).prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=yo(n,r))&&i.value:n[r],!wo(c?r:s+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;Co(a,o)}(e.sham||o&&o.sham)&&Oo(a,"sham",!0),Mo(n,r,a,e)}},To=So,Io=D,Eo=fe,jo=j.f,Do=L,Lo=Io((function(){jo(1)}));function Ao(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}To({target:"Object",stat:!0,forced:!Do||Lo,sham:!Do},{getOwnPropertyDescriptor:function(e,t){return jo(Eo(e),t)}}),function(e,t){e.exports=function(){function e(t,n,r){function o(i,s){if(!n[i]){if(!t[i]){if(!s&&Ao)return Ao(i);if(a)return a(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[i]={exports:{}};t[i][0].call(l.exports,(function(e){return o(t[i][1][e]||e)}),l,l.exports,e,t,n,r)}return n[i].exports}for(var a=Ao,i=0;i<r.length;i++)o(r[i]);return o}return e}()({1:[function(e,t,n){var r=(0,e("./adapter_factory.js").adapterFactory)({window:"undefined"==typeof window?void 0:window});t.exports=r},{"./adapter_factory.js":2}],2:[function(e,t,n){function r(e){return r="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},r(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.adapterFactory=p;var o=d(e("./utils")),a=d(e("./chrome/chrome_shim")),i=d(e("./firefox/firefox_shim")),s=d(e("./safari/safari_shim")),c=d(e("./common_shim")),l=d(e("sdp"));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,n&&n.set(e,o),o}function p(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).window,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimSafari:!0},n=o.log,r=o.detectBrowser(e),u={browserDetails:r,commonShim:c,extractVersion:o.extractVersion,disableLog:o.disableLog,disableWarnings:o.disableWarnings,sdp:l};switch(r.browser){case"chrome":if(!a||!a.shimPeerConnection||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),u;if(null===r.version)return n("Chrome shim can not determine version, not shimming."),u;n("adapter.js shimming chrome."),u.browserShim=a,c.shimAddIceCandidateNullOrEmpty(e,r),c.shimParameterlessSetLocalDescription(e,r),a.shimGetUserMedia(e,r),a.shimMediaStream(e,r),a.shimPeerConnection(e,r),a.shimOnTrack(e,r),a.shimAddTrackRemoveTrack(e,r),a.shimGetSendersWithDtmf(e,r),a.shimGetStats(e,r),a.shimSenderReceiverGetStats(e,r),a.fixNegotiationNeeded(e,r),c.shimRTCIceCandidate(e,r),c.shimRTCIceCandidateRelayProtocol(e,r),c.shimConnectionState(e,r),c.shimMaxMessageSize(e,r),c.shimSendThrowTypeError(e,r),c.removeExtmapAllowMixed(e,r);break;case"firefox":if(!i||!i.shimPeerConnection||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),u;n("adapter.js shimming firefox."),u.browserShim=i,c.shimAddIceCandidateNullOrEmpty(e,r),c.shimParameterlessSetLocalDescription(e,r),i.shimGetUserMedia(e,r),i.shimPeerConnection(e,r),i.shimOnTrack(e,r),i.shimRemoveStream(e,r),i.shimSenderGetStats(e,r),i.shimReceiverGetStats(e,r),i.shimRTCDataChannel(e,r),i.shimAddTransceiver(e,r),i.shimGetParameters(e,r),i.shimCreateOffer(e,r),i.shimCreateAnswer(e,r),c.shimRTCIceCandidate(e,r),c.shimConnectionState(e,r),c.shimMaxMessageSize(e,r),c.shimSendThrowTypeError(e,r);break;case"safari":if(!s||!t.shimSafari)return n("Safari shim is not included in this adapter release."),u;n("adapter.js shimming safari."),u.browserShim=s,c.shimAddIceCandidateNullOrEmpty(e,r),c.shimParameterlessSetLocalDescription(e,r),s.shimRTCIceServerUrls(e,r),s.shimCreateOfferLegacy(e,r),s.shimCallbacksAPI(e,r),s.shimLocalStreamsAPI(e,r),s.shimRemoteStreamsAPI(e,r),s.shimTrackEventTransceiver(e,r),s.shimGetUserMedia(e,r),s.shimAudioContext(e,r),c.shimRTCIceCandidate(e,r),c.shimRTCIceCandidateRelayProtocol(e,r),c.shimMaxMessageSize(e,r),c.shimSendThrowTypeError(e,r),c.removeExtmapAllowMixed(e,r);break;default:n("Unsupported browser!")}return u}},{"./chrome/chrome_shim":3,"./common_shim":6,"./firefox/firefox_shim":7,"./safari/safari_shim":10,"./utils":11,sdp:12}],3:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fixNegotiationNeeded=y,n.shimAddTrackRemoveTrack=_,n.shimAddTrackRemoveTrackWithNative=g,Object.defineProperty(n,"shimGetDisplayMedia",{enumerable:!0,get:function(){return a.shimGetDisplayMedia}}),n.shimGetSendersWithDtmf=h,n.shimGetStats=m,Object.defineProperty(n,"shimGetUserMedia",{enumerable:!0,get:function(){return o.shimGetUserMedia}}),n.shimMediaStream=p,n.shimOnTrack=f,n.shimPeerConnection=b,n.shimSenderReceiverGetStats=v;var r=s(e("../utils.js")),o=e("./getusermedia"),a=e("./getdisplaymedia");function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function c(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=u(e,"string");return"symbol"===d(t)?t:String(t)}function u(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function d(e){return d="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},d(e)}function p(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function f(e){if("object"===d(e)&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var n=this;return this._ontrackpoly||(this._ontrackpoly=function(t){t.stream.addEventListener("addtrack",(function(r){var o;o=e.RTCPeerConnection.prototype.getReceivers?n.getReceivers().find((function(e){return e.track&&e.track.id===r.track.id})):{track:r.track};var a=new Event("track");a.track=r.track,a.receiver=o,a.transceiver={receiver:o},a.streams=[t.stream],n.dispatchEvent(a)})),t.stream.getTracks().forEach((function(r){var o;o=e.RTCPeerConnection.prototype.getReceivers?n.getReceivers().find((function(e){return e.track&&e.track.id===r.id})):{track:r};var a=new Event("track");a.track=r,a.receiver=o,a.transceiver={receiver:o},a.streams=[t.stream],n.dispatchEvent(a)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else r.wrapPeerConnectionEvent(e,"track",(function(e){return e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e}))}function h(e){if("object"===d(e)&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){var t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};var n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){var o=n.apply(this,arguments);return o||(o=t(this,e),this._senders.push(o)),o};var r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);var t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}var o=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var n=this;this._senders=this._senders||[],o.apply(this,[e]),e.getTracks().forEach((function(e){n._senders.push(t(n,e))}))};var a=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;this._senders=this._senders||[],a.apply(this,[e]),e.getTracks().forEach((function(e){var n=t._senders.find((function(t){return t.track===e}));n&&t._senders.splice(t._senders.indexOf(n),1)}))}}else if("object"===d(e)&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){var i=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){var e=this,t=i.apply(this,[]);return t.forEach((function(t){return t._pc=e})),t},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function m(e){if(e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var e=this,n=Array.prototype.slice.call(arguments),r=n[0],o=n[1],a=n[2];if(arguments.length>0&&"function"==typeof r)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!=typeof r))return t.apply(this,[]);var i=function(e){var t={};return e.result().forEach((function(e){var n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((function(t){n[t]=e.stat(t)})),t[n.id]=n})),t},s=function(e){return new Map(Object.keys(e).map((function(t){return[t,e[t]]})))};if(arguments.length>=2){var c=function(e){o(s(i(e)))};return t.apply(this,[c,r])}return new Promise((function(n,r){t.apply(e,[function(e){n(s(i(e)))},r])})).then(o,a)}}}function v(e){if("object"===d(e)&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver){if(!("getStats"in e.RTCRtpSender.prototype)){var t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){var e=this,n=t.apply(this,[]);return n.forEach((function(t){return t._pc=e})),n});var n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){var e=this;return this._pc.getStats().then((function(t){return r.filterStats(t,e.track,!0)}))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){var o=e.RTCPeerConnection.prototype.getReceivers;o&&(e.RTCPeerConnection.prototype.getReceivers=function(){var e=this,t=o.apply(this,[]);return t.forEach((function(t){return t._pc=e})),t}),r.wrapPeerConnectionEvent(e,"track",(function(e){return e.receiver._pc=e.srcElement,e})),e.RTCRtpReceiver.prototype.getStats=function(){var e=this;return this._pc.getStats().then((function(t){return r.filterStats(t,e.track,!1)}))}}if("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype){var a=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){var t,n,r,o=arguments[0];return this.getSenders().forEach((function(e){e.track===o&&(t?r=!0:t=e)})),this.getReceivers().forEach((function(e){return e.track===o&&(n?r=!0:n=e),e.track===o})),r||t&&n?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():n?n.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return a.apply(this,arguments)}}}}function g(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((function(t){return e._shimmedLocalStreams[t][0]}))};var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};var r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(r)&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};var n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var t=this;this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((function(e){if(t.getSenders().find((function(t){return t.track===e})))throw new DOMException("Track already exists.","InvalidAccessError")}));var r=this.getSenders();n.apply(this,arguments);var o=this.getSenders().filter((function(e){return-1===r.indexOf(e)}));this._shimmedLocalStreams[e.id]=[e].concat(o)};var r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};var o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){var t=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((function(n){var r=t._shimmedLocalStreams[n].indexOf(e);-1!==r&&t._shimmedLocalStreams[n].splice(r,1),1===t._shimmedLocalStreams[n].length&&delete t._shimmedLocalStreams[n]})),o.apply(this,arguments)}}function _(e,t){if(e.RTCPeerConnection){if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return g(e);var n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this,t=n.apply(this);return this._reverseStreams=this._reverseStreams||{},t.map((function(t){return e._reverseStreams[t.id]}))};var r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){var n=this;if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((function(e){if(n.getSenders().find((function(t){return t.track===e})))throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){var o=new e.MediaStream(t.getTracks());this._streams[t.id]=o,this._reverseStreams[o.id]=t,t=o}r.apply(this,[t])};var o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},o.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){var r=this;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");var o=[].slice.call(arguments,1);if(1!==o.length||!o[0].getTracks().find((function(e){return e===t})))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find((function(e){return e.track===t})))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};var a=this._streams[n.id];if(a)a.addTrack(t),Promise.resolve().then((function(){r.dispatchEvent(new Event("negotiationneeded"))}));else{var i=new e.MediaStream([t]);this._streams[n.id]=i,this._reverseStreams[i.id]=n,this.addStream(i)}return this.getSenders().find((function(e){return e.track===t}))},["createOffer","createAnswer"].forEach((function(t){var n=e.RTCPeerConnection.prototype[t],r=c({},t,(function(){var e=this,t=arguments;return arguments.length&&"function"==typeof arguments[0]?n.apply(this,[function(n){var r=s(e,n);t[0].apply(null,[r])},function(e){t[1]&&t[1].apply(null,e)},arguments[2]]):n.apply(this,arguments).then((function(t){return s(e,t)}))}));e.RTCPeerConnection.prototype[t]=r[t]}));var a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=l(this,arguments[0]),a.apply(this,arguments)):a.apply(this,arguments)};var i=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get:function(){var e=i.get.apply(this);return""===e.type?e:s(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){var t,n=this;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(e._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{},Object.keys(this._streams).forEach((function(r){n._streams[r].getTracks().find((function(t){return e.track===t}))&&(t=n._streams[r])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function s(e,t){var n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((function(t){var r=e._reverseStreams[t],o=e._streams[r.id];n=n.replace(new RegExp(o.id,"g"),r.id)})),new RTCSessionDescription({type:t.type,sdp:n})}function l(e,t){var n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((function(t){var r=e._reverseStreams[t],o=e._streams[r.id];n=n.replace(new RegExp(r.id,"g"),o.id)})),new RTCSessionDescription({type:t.type,sdp:n})}}function b(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){var n=e.RTCPeerConnection.prototype[t],r=c({},t,(function(){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}));e.RTCPeerConnection.prototype[t]=r[t]}))}function y(e,t){r.wrapPeerConnectionEvent(e,"negotiationneeded",(function(e){var n=e.target;if(!(t.version<72||n.getConfiguration&&"plan-b"===n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e}))}},{"../utils.js":11,"./getdisplaymedia":4,"./getusermedia":5}],4:[function(e,t,n){function r(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"==typeof t?e.navigator.mediaDevices.getDisplayMedia=function(n){return t(n).then((function(t){var r=n.video&&n.video.width,o=n.video&&n.video.height,a=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:a||3}},r&&(n.video.mandatory.maxWidth=r),o&&(n.video.mandatory.maxHeight=o),e.navigator.mediaDevices.getUserMedia(n)}))}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}Object.defineProperty(n,"__esModule",{value:!0}),n.shimGetDisplayMedia=r},{}],5:[function(e,t,n){function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var c=i?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(o,s,c):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}function a(e){return a="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},a(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.shimGetUserMedia=s;var i=o(e("../utils.js")).log;function s(e,t){var n=e&&e.navigator;if(n.mediaDevices){var r=function(e){if("object"!==a(e)||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach((function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var r="object"===a(e[n])?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);var o=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];var i={};"number"==typeof r.ideal?(i[o("min",n)]=r.ideal,t.optional.push(i),(i={})[o("max",n)]=r.ideal,t.optional.push(i)):(i[o("",n)]=r.ideal,t.optional.push(i))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[o("",n)]=r.exact):["min","max"].forEach((function(e){void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[o(e,n)]=r[e])}))}})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},o=function(e,o){if(t.version>=61)return o(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"===a(e.audio)){var s=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};s((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),s(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=r(e.audio)}if(e&&"object"===a(e.video)){var c=e.video.facingMode;c=c&&("object"===a(c)?c:{ideal:c});var l,u=t.version<66;if(c&&("user"===c.exact||"environment"===c.exact||"user"===c.ideal||"environment"===c.ideal)&&(!n.mediaDevices.getSupportedConstraints||!n.mediaDevices.getSupportedConstraints().facingMode||u)&&(delete e.video.facingMode,"environment"===c.exact||"environment"===c.ideal?l=["back","rear"]:"user"!==c.exact&&"user"!==c.ideal||(l=["front"]),l))return n.mediaDevices.enumerateDevices().then((function(t){var n=(t=t.filter((function(e){return"videoinput"===e.kind}))).find((function(e){return l.some((function(t){return e.label.toLowerCase().includes(t)}))}));return!n&&t.length&&l.includes("back")&&(n=t[t.length-1]),n&&(e.video.deviceId=c.exact?{exact:n.deviceId}:{ideal:n.deviceId}),e.video=r(e.video),i("chrome: "+JSON.stringify(e)),o(e)}));e.video=r(e.video)}return i("chrome: "+JSON.stringify(e)),o(e)},s=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}},c=function(e,t,r){o(e,(function(e){n.webkitGetUserMedia(e,t,(function(e){r&&r(s(e))}))}))};if(n.getUserMedia=c.bind(n),n.mediaDevices.getUserMedia){var l=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(e){return o(e,(function(e){return l(e).then((function(t){if(e.audio&&!t.getAudioTracks().length||e.video&&!t.getVideoTracks().length)throw t.getTracks().forEach((function(e){e.stop()})),new DOMException("","NotFoundError");return t}),(function(e){return Promise.reject(s(e))}))}))}}}}},{"../utils.js":11}],6:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.removeExtmapAllowMixed=h,n.shimAddIceCandidateNullOrEmpty=m,n.shimConnectionState=f,n.shimMaxMessageSize=d,n.shimParameterlessSetLocalDescription=v,n.shimRTCIceCandidate=l,n.shimRTCIceCandidateRelayProtocol=u,n.shimSendThrowTypeError=p;var r=s(e("sdp")),o=i(e("./utils"));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function i(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return 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},c(e)}function l(e){if(!(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)){var t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"===c(e)&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substring(2)),e.candidate&&e.candidate.length){var n=new t(e),o=r.default.parseCandidate(e.candidate);for(var a in o)a in n||Object.defineProperty(n,a,{value:o[a]});return n.toJSON=function(){return{candidate:n.candidate,sdpMid:n.sdpMid,sdpMLineIndex:n.sdpMLineIndex,usernameFragment:n.usernameFragment}},n}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,o.wrapPeerConnectionEvent(e,"icecandidate",(function(t){return t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t}))}}function u(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||o.wrapPeerConnectionEvent(e,"icecandidate",(function(e){if(e.candidate){var t=r.default.parseCandidate(e.candidate.candidate);"relay"===t.type&&(e.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[t.priority>>24])}return e}))}function d(e,t){if(e.RTCPeerConnection){"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get:function(){return void 0===this._sctp?null:this._sctp}});var n=function(e){if(!e||!e.sdp)return!1;var t=r.default.splitSections(e.sdp);return t.shift(),t.some((function(e){var t=r.default.parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")}))},o=function(e){var t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;var n=parseInt(t[1],10);return n!=n?-1:n},a=function(e){var n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n},i=function(e,n){var o=65536;"firefox"===t.browser&&57===t.version&&(o=65535);var a=r.default.matchPrefix(e.sdp,"a=max-message-size:");return a.length>0?o=parseInt(a[0].substring(19),10):"firefox"===t.browser&&-1!==n&&(o=2147483637),o},s=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76&&"plan-b"===this.getConfiguration().sdpSemantics&&Object.defineProperty(this,"sctp",{get:function(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0}),n(arguments[0])){var e,r=o(arguments[0]),c=a(r),l=i(arguments[0],r);e=0===c&&0===l?Number.POSITIVE_INFINITY:0===c||0===l?Math.max(c,l):Math.min(c,l);var u={};Object.defineProperty(u,"maxMessageSize",{get:function(){return e}}),this._sctp=u}return s.apply(this,arguments)}}}function p(e){if(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype){var t=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){var e=t.apply(this,arguments);return n(e,this),e},o.wrapPeerConnectionEvent(e,"datachannel",(function(e){return n(e.channel,e.target),e}))}function n(e,t){var n=e.send;e.send=function(){var r=arguments[0],o=r.length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&o>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}}function f(e){if(e.RTCPeerConnection&&!("connectionState"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get:function(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get:function(){return this._onconnectionstatechange||null},set:function(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach((function(e){var n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=function(e){var t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;var n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}}))}}function h(e,t){if(e.RTCPeerConnection&&!("chrome"===t.browser&&t.version>=71||"safari"===t.browser&&t.version>=605)){var n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){var r=t.sdp.split("\n").filter((function(e){return"a=extmap-allow-mixed"!==e.trim()})).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:r}):t.sdp=r}return n.apply(this,arguments)}}}function m(e,t){if(e.RTCPeerConnection&&e.RTCPeerConnection.prototype){var n=e.RTCPeerConnection.prototype.addIceCandidate;n&&0!==n.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}}function v(e,t){if(e.RTCPeerConnection&&e.RTCPeerConnection.prototype){var n=e.RTCPeerConnection.prototype.setLocalDescription;n&&0!==n.length&&(e.RTCPeerConnection.prototype.setLocalDescription=function(){var e=this,t=arguments[0]||{};if("object"!==c(t)||t.type&&t.sdp)return n.apply(this,arguments);if(!(t={type:t.type,sdp:t.sdp}).type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":t.type="offer";break;default:t.type="answer"}return t.sdp||"offer"!==t.type&&"answer"!==t.type?n.apply(this,[t]):("offer"===t.type?this.createOffer:this.createAnswer).apply(this).then((function(t){return n.apply(e,[t])}))})}}},{"./utils":11,sdp:12}],7:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.shimAddTransceiver=C,n.shimCreateAnswer=T,n.shimCreateOffer=S,Object.defineProperty(n,"shimGetDisplayMedia",{enumerable:!0,get:function(){return a.shimGetDisplayMedia}}),n.shimGetParameters=w,Object.defineProperty(n,"shimGetUserMedia",{enumerable:!0,get:function(){return o.shimGetUserMedia}}),n.shimOnTrack=_,n.shimPeerConnection=b,n.shimRTCDataChannel=k,n.shimReceiverGetStats=O,n.shimRemoveStream=M,n.shimSenderGetStats=y;var r=s(e("../utils")),o=e("./getusermedia"),a=e("./getdisplaymedia");function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==g(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function c(e){return p(e)||d(e)||u(e)||l()}function l(){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 u(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}function d(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function p(e){if(Array.isArray(e))return f(e)}function f(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 h(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=v(e,"string");return"symbol"===g(t)?t:String(t)}function v(e,t){if("object"!==g(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function g(e){return g="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},g(e)}function _(e){"object"===g(e)&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})}function b(e,t){if("object"===g(e)&&(e.RTCPeerConnection||e.mozRTCPeerConnection)){!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){var n=e.RTCPeerConnection.prototype[t],r=h({},t,(function(){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}));e.RTCPeerConnection.prototype[t]=r[t]}));var n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var e=Array.prototype.slice.call(arguments),o=e[0],a=e[1],i=e[2];return r.apply(this,[o||null]).then((function(e){if(t.version<53&&!a)try{e.forEach((function(e){e.type=n[e.type]||e.type}))}catch(r){if("TypeError"!==r.name)throw r;e.forEach((function(t,r){e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))}))}return e})).then(a,i)}}}function y(e){if("object"===g(e)&&e.RTCPeerConnection&&e.RTCRtpSender&&(!e.RTCRtpSender||!("getStats"in e.RTCRtpSender.prototype))){var t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){var e=this,n=t.apply(this,[]);return n.forEach((function(t){return t._pc=e})),n});var n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}}function O(e){if("object"===g(e)&&e.RTCPeerConnection&&e.RTCRtpSender&&(!e.RTCRtpSender||!("getStats"in e.RTCRtpReceiver.prototype))){var t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){var e=this,n=t.apply(this,[]);return n.forEach((function(t){return t._pc=e})),n}),r.wrapPeerConnectionEvent(e,"track",(function(e){return e.receiver._pc=e.srcElement,e})),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}}function M(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;r.deprecated("removeStream","removeTrack"),this.getSenders().forEach((function(n){n.track&&e.getTracks().includes(n.track)&&t.removeTrack(n)}))})}function k(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function C(e){if("object"===g(e)&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];var e=arguments[1]&&arguments[1].sendEncodings;void 0===e&&(e=[]);var n=(e=c(e)).length>0;n&&e.forEach((function(e){if("rid"in e&&!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")}));var r=t.apply(this,arguments);if(n){var o=r.sender,a=o.getParameters();(!("encodings"in a)||1===a.encodings.length&&0===Object.keys(a.encodings[0]).length)&&(a.encodings=e,o.sendEncodings=e,this.setParametersPromises.push(o.setParameters(a).then((function(){delete o.sendEncodings})).catch((function(){delete o.sendEncodings}))))}return r})}}function w(e){if("object"===g(e)&&e.RTCRtpSender){var t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){var e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}}function S(e){if("object"===g(e)&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){var e=arguments,n=this;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((function(){return t.apply(n,e)})).finally((function(){n.setParametersPromises=[]})):t.apply(this,arguments)}}}function T(e){if("object"===g(e)&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){var e=arguments,n=this;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((function(){return t.apply(n,e)})).finally((function(){n.setParametersPromises=[]})):t.apply(this,arguments)}}}},{"../utils":11,"./getdisplaymedia":8,"./getusermedia":9}],8:[function(e,t,n){function r(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){var r=new DOMException("getDisplayMedia without video constraints is undefined");return r.name="NotFoundError",r.code=8,Promise.reject(r)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}Object.defineProperty(n,"__esModule",{value:!0}),n.shimGetDisplayMedia=r},{}],9:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.shimGetUserMedia=s;var r=a(e("../utils"));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var c=a?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(r,s,c):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function i(e){return i="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},i(e)}function s(e,t){var n=e&&e.navigator,o=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,o){r.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,o)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){var a=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},s=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(e){return"object"===i(e)&&"object"===i(e.audio)&&(e=JSON.parse(JSON.stringify(e)),a(e.audio,"autoGainControl","mozAutoGainControl"),a(e.audio,"noiseSuppression","mozNoiseSuppression")),s(e)},o&&o.prototype.getSettings){var c=o.prototype.getSettings;o.prototype.getSettings=function(){var e=c.apply(this,arguments);return a(e,"mozAutoGainControl","autoGainControl"),a(e,"mozNoiseSuppression","noiseSuppression"),e}}if(o&&o.prototype.applyConstraints){var l=o.prototype.applyConstraints;o.prototype.applyConstraints=function(e){return"audio"===this.kind&&"object"===i(e)&&(e=JSON.parse(JSON.stringify(e)),a(e,"autoGainControl","mozAutoGainControl"),a(e,"noiseSuppression","mozNoiseSuppression")),l.apply(this,[e])}}}}},{"../utils":11}],10:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.shimAudioContext=m,n.shimCallbacksAPI=l,n.shimConstraints=d,n.shimCreateOfferLegacy=h,n.shimGetUserMedia=u,n.shimLocalStreamsAPI=s,n.shimRTCIceServerUrls=p,n.shimRemoteStreamsAPI=c,n.shimTrackEventTransceiver=f;var r=a(e("../utils"));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var c=a?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(r,s,c):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function i(e){return i="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},i(e)}function s(e){if("object"===i(e)&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){var n=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((function(r){return t.call(n,r,e)})),e.getVideoTracks().forEach((function(r){return t.call(n,r,e)}))},e.RTCPeerConnection.prototype.addTrack=function(e){for(var n=this,r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return o&&o.forEach((function(e){n._localStreams?n._localStreams.includes(e)||n._localStreams.push(e):n._localStreams=[e]})),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;this._localStreams||(this._localStreams=[]);var n=this._localStreams.indexOf(e);if(-1!==n){this._localStreams.splice(n,1);var r=e.getTracks();this.getSenders().forEach((function(e){r.includes(e.track)&&t.removeTrack(e)}))}})}}function c(e){if("object"===i(e)&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get:function(){return this._onaddstream},set:function(e){var t=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=function(e){e.streams.forEach((function(e){if(t._remoteStreams||(t._remoteStreams=[]),!t._remoteStreams.includes(e)){t._remoteStreams.push(e);var n=new Event("addstream");n.stream=e,t.dispatchEvent(n)}}))})}});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach((function(t){if(e._remoteStreams||(e._remoteStreams=[]),!(e._remoteStreams.indexOf(t)>=0)){e._remoteStreams.push(t);var n=new Event("addstream");n.stream=t,e.dispatchEvent(n)}}))}),t.apply(e,arguments)}}}function l(e){if("object"===i(e)&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,o=t.setLocalDescription,a=t.setRemoteDescription,s=t.addIceCandidate;t.createOffer=function(e,t){var r=arguments.length>=2?arguments[2]:arguments[0],o=n.apply(this,[r]);return t?(o.then(e,t),Promise.resolve()):o},t.createAnswer=function(e,t){var n=arguments.length>=2?arguments[2]:arguments[0],o=r.apply(this,[n]);return t?(o.then(e,t),Promise.resolve()):o};var c=function(e,t,n){var r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=c,c=function(e,t,n){var r=a.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=c,c=function(e,t,n){var r=s.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=c}}function u(e){var t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){var n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=function(e){return r(d(e))}}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))}function d(e){return e&&void 0!==e.video?Object.assign({},e,{video:r.compactObject(e.video)}):e}function p(e){if(e.RTCPeerConnection){var t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){for(var o=[],a=0;a<e.iceServers.length;a++){var i=e.iceServers[a];void 0===i.urls&&i.url?(r.deprecated("RTCIceServer.url","RTCIceServer.urls"),(i=JSON.parse(JSON.stringify(i))).urls=i.url,delete i.url,o.push(i)):o.push(e.iceServers[a])}e.iceServers=o}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:function(){return t.generateCertificate}})}}function f(e){"object"===i(e)&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})}function h(e){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);var n=this.getTransceivers().find((function(e){return"audio"===e.receiver.track.kind}));!1===e.offerToReceiveAudio&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveAudio||n||this.addTransceiver("audio",{direction:"recvonly"}),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);var r=this.getTransceivers().find((function(e){return"video"===e.receiver.track.kind}));!1===e.offerToReceiveVideo&&r?"sendrecv"===r.direction?r.setDirection?r.setDirection("sendonly"):r.direction="sendonly":"recvonly"===r.direction&&(r.setDirection?r.setDirection("inactive"):r.direction="inactive"):!0!==e.offerToReceiveVideo||r||this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function m(e){"object"!==i(e)||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}},{"../utils":11}],11:[function(e,t,n){function r(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=a(e,"string");return"symbol"===i(t)?t:String(t)}function a(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function i(e){return i="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},i(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.compactObject=g,n.deprecated=h,n.detectBrowser=m,n.disableLog=d,n.disableWarnings=p,n.extractVersion=l,n.filterStats=b,n.log=f,n.walkStats=_,n.wrapPeerConnectionEvent=u;var s=!0,c=!0;function l(e,t,n){var r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function u(e,t,n){if(e.RTCPeerConnection){var r=e.RTCPeerConnection.prototype,o=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return o.apply(this,arguments);var a=function(e){var t=n(e);t&&(r.handleEvent?r.handleEvent(t):r(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(r,a),o.apply(this,[e,a])};var a=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return a.apply(this,arguments);if(!this._eventMap[t].has(n))return a.apply(this,arguments);var r=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,a.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get:function(){return this["_on"+t]},set:function(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}}function d(e){return"boolean"!=typeof e?new Error("Argument type: "+i(e)+". Please use a boolean."):(s=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function p(e){return"boolean"!=typeof e?new Error("Argument type: "+i(e)+". Please use a boolean."):(c=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function f(){if("object"===("undefined"==typeof window?"undefined":i(window))){if(s)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function h(e,t){c&&console.warn(e+" is deprecated, please use "+t+" instead.")}function m(e){var t={browser:null,version:null};if(void 0===e||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;var n=e.navigator;if(n.mozGetUserMedia)t.browser="firefox",t.version=l(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=l(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=l(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}function v(e){return"[object Object]"===Object.prototype.toString.call(e)}function g(e){return v(e)?Object.keys(e).reduce((function(t,n){var o=v(e[n]),a=o?g(e[n]):e[n],i=o&&!Object.keys(a).length;return void 0===a||i?t:Object.assign(t,r({},n,a))}),{}):e}function _(e,t,n){t&&!n.has(t.id)&&(n.set(t.id,t),Object.keys(t).forEach((function(r){r.endsWith("Id")?_(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach((function(t){_(e,e.get(t),n)}))})))}function b(e,t,n){var r=n?"outbound-rtp":"inbound-rtp",o=new Map;if(null===t)return o;var a=[];return e.forEach((function(e){"track"===e.type&&e.trackIdentifier===t.id&&a.push(e)})),a.forEach((function(t){e.forEach((function(n){n.type===r&&n.trackId===t.id&&_(e,n,o)}))})),o}},{}],12:[function(e,t,n){var r="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={generateIdentifier:function(){return Math.random().toString(36).substring(2,12)}};o.localCName=o.generateIdentifier(),o.splitLines=function(e){return e.trim().split("\n").map((function(e){return e.trim()}))},o.splitSections=function(e){return e.split("\nm=").map((function(e,t){return(t>0?"m="+e:e).trim()+"\r\n"}))},o.getDescription=function(e){var t=o.splitSections(e);return t&&t[0]},o.getMediaSections=function(e){var t=o.splitSections(e);return t.shift(),t},o.matchPrefix=function(e,t){return o.splitLines(e).filter((function(e){return 0===e.indexOf(t)}))},o.parseCandidate=function(e){for(var t=void 0,n={foundation:(t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]},r=8;r<t.length;r+=2)switch(t[r]){case"raddr":n.relatedAddress=t[r+1];break;case"rport":n.relatedPort=parseInt(t[r+1],10);break;case"tcptype":n.tcpType=t[r+1];break;case"ufrag":n.ufrag=t[r+1],n.usernameFragment=t[r+1];break;default:void 0===n[t[r]]&&(n[t[r]]=t[r+1])}return n},o.writeCandidate=function(e){var t=[];t.push(e.foundation);var n=e.component;"rtp"===n?t.push(1):"rtcp"===n?t.push(2):t.push(n),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);var r=e.type;return t.push("typ"),t.push(r),"host"!==r&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},o.parseIceOptions=function(e){return e.substring(14).split(" ")},o.parseRtpMap=function(e){var t=e.substring(9).split(" "),n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n},o.writeRtpMap=function(e){var t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);var n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\r\n"},o.parseExtmap=function(e){var t=e.substring(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.slice(2).join(" ")}},o.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+"\r\n"},o.parseFmtp=function(e){for(var t={},n=void 0,r=e.substring(e.indexOf(" ")+1).split(";"),o=0;o<r.length;o++)t[(n=r[o].trim().split("="))[0].trim()]=n[1];return t},o.writeFmtp=function(e){var t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){var r=[];Object.keys(e.parameters).forEach((function(t){void 0!==e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)})),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},o.parseRtcpFb=function(e){var t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},o.writeRtcpFb=function(e){var t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach((function(e){t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"})),t},o.parseSsrcMedia=function(e){var t=e.indexOf(" "),n={ssrc:parseInt(e.substring(7,t),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substring(t+1,r),n.value=e.substring(r+1)):n.attribute=e.substring(t+1),n},o.parseSsrcGroup=function(e){var t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map((function(e){return parseInt(e,10)}))}},o.getMid=function(e){var t=o.matchPrefix(e,"a=mid:")[0];if(t)return t.substring(6)},o.parseFingerprint=function(e){var t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},o.getDtlsParameters=function(e,t){return{role:"auto",fingerprints:o.matchPrefix(e+t,"a=fingerprint:").map(o.parseFingerprint)}},o.writeDtlsParameters=function(e,t){var n="a=setup:"+t+"\r\n";return e.fingerprints.forEach((function(e){n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),n},o.parseCryptoLine=function(e){var t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},o.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"===r(e.keyParams)?o.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},o.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;var t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},o.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},o.getCryptoParameters=function(e,t){return o.matchPrefix(e+t,"a=crypto:").map(o.parseCryptoLine)},o.getIceParameters=function(e,t){var n=o.matchPrefix(e+t,"a=ice-ufrag:")[0],r=o.matchPrefix(e+t,"a=ice-pwd:")[0];return n&&r?{usernameFragment:n.substring(12),password:r.substring(10)}:null},o.writeIceParameters=function(e){var t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},o.parseRtpParameters=function(e){var t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=o.splitLines(e)[0].split(" ");t.profile=n[2];for(var r=3;r<n.length;r++){var a=n[r],i=o.matchPrefix(e,"a=rtpmap:"+a+" ")[0];if(i){var s=o.parseRtpMap(i),c=o.matchPrefix(e,"a=fmtp:"+a+" ");switch(s.parameters=c.length?o.parseFmtp(c[0]):{},s.rtcpFeedback=o.matchPrefix(e,"a=rtcp-fb:"+a+" ").map(o.parseRtcpFb),t.codecs.push(s),s.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(s.name.toUpperCase())}}}o.matchPrefix(e,"a=extmap:").forEach((function(e){t.headerExtensions.push(o.parseExtmap(e))}));var l=o.matchPrefix(e,"a=rtcp-fb:* ").map(o.parseRtcpFb);return t.codecs.forEach((function(e){l.forEach((function(t){e.rtcpFeedback.find((function(e){return e.type===t.type&&e.parameter===t.parameter}))||e.rtcpFeedback.push(t)}))})),t},o.writeRtpDescription=function(e,t){var n="";n+="m="+e+" ",n+=t.codecs.length>0?"9":"0",n+=" "+(t.profile||"UDP/TLS/RTP/SAVPF")+" ",n+=t.codecs.map((function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType})).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach((function(e){n+=o.writeRtpMap(e),n+=o.writeFmtp(e),n+=o.writeRtcpFb(e)}));var r=0;return t.codecs.forEach((function(e){e.maxptime>r&&(r=e.maxptime)})),r>0&&(n+="a=maxptime:"+r+"\r\n"),t.headerExtensions&&t.headerExtensions.forEach((function(e){n+=o.writeExtmap(e)})),n},o.parseRtpEncodingParameters=function(e){var t=[],n=o.parseRtpParameters(e),r=-1!==n.fecMechanisms.indexOf("RED"),a=-1!==n.fecMechanisms.indexOf("ULPFEC"),i=o.matchPrefix(e,"a=ssrc:").map((function(e){return o.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute})),s=i.length>0&&i[0].ssrc,c=void 0,l=o.matchPrefix(e,"a=ssrc-group:FID").map((function(e){return e.substring(17).split(" ").map((function(e){return parseInt(e,10)}))}));l.length>0&&l[0].length>1&&l[0][0]===s&&(c=l[0][1]),n.codecs.forEach((function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var n={ssrc:s,codecPayloadType:parseInt(e.parameters.apt,10)};s&&c&&(n.rtx={ssrc:c}),t.push(n),r&&((n=JSON.parse(JSON.stringify(n))).fec={ssrc:s,mechanism:a?"red+ulpfec":"red"},t.push(n))}})),0===t.length&&s&&t.push({ssrc:s});var u=o.matchPrefix(e,"b=");return u.length&&(u=0===u[0].indexOf("b=TIAS:")?parseInt(u[0].substring(7),10):0===u[0].indexOf("b=AS:")?1e3*parseInt(u[0].substring(5),10)*.95-16e3:void 0,t.forEach((function(e){e.maxBitrate=u}))),t},o.parseRtcpParameters=function(e){var t={},n=o.matchPrefix(e,"a=ssrc:").map((function(e){return o.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute}))[0];n&&(t.cname=n.value,t.ssrc=n.ssrc);var r=o.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=r.length>0,t.compound=0===r.length;var a=o.matchPrefix(e,"a=rtcp-mux");return t.mux=a.length>0,t},o.writeRtcpParameters=function(e){var t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},o.parseMsid=function(e){var t=void 0,n=o.matchPrefix(e,"a=msid:");if(1===n.length)return{stream:(t=n[0].substring(7).split(" "))[0],track:t[1]};var r=o.matchPrefix(e,"a=ssrc:").map((function(e){return o.parseSsrcMedia(e)})).filter((function(e){return"msid"===e.attribute}));return r.length>0?{stream:(t=r[0].value.split(" "))[0],track:t[1]}:void 0},o.parseSctpDescription=function(e){var t=o.parseMLine(e),n=o.matchPrefix(e,"a=max-message-size:"),r=void 0;n.length>0&&(r=parseInt(n[0].substring(19),10)),isNaN(r)&&(r=65536);var a=o.matchPrefix(e,"a=sctp-port:");if(a.length>0)return{port:parseInt(a[0].substring(12),10),protocol:t.fmt,maxMessageSize:r};var i=o.matchPrefix(e,"a=sctpmap:");if(i.length>0){var s=i[0].substring(10).split(" ");return{port:parseInt(s[0],10),protocol:s[1],maxMessageSize:r}}},o.writeSctpDescription=function(e,t){var n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},o.generateSessionId=function(){return Math.random().toString().substr(2,22)},o.writeSessionBoilerplate=function(e,t,n){var r=void 0!==t?t:2;return"v=0\r\no="+(n||"thisisadapterortc")+" "+(e||o.generateSessionId())+" "+r+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},o.getDirection=function(e,t){for(var n=o.splitLines(e),r=0;r<n.length;r++)switch(n[r]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[r].substring(2)}return t?o.getDirection(t):"sendrecv"},o.getKind=function(e){return o.splitLines(e)[0].split(" ")[0].substring(2)},o.isRejected=function(e){return"0"===e.split(" ",2)[1]},o.parseMLine=function(e){var t=o.splitLines(e)[0].substring(2).split(" ");return{kind:t[0],port:parseInt(t[1],10),protocol:t[2],fmt:t.slice(3).join(" ")}},o.parseOLine=function(e){var t=o.matchPrefix(e,"o=")[0].substring(2).split(" ");return{username:t[0],sessionId:t[1],sessionVersion:parseInt(t[2],10),netType:t[3],addressType:t[4],address:t[5]}},o.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;for(var t=o.splitLines(e),n=0;n<t.length;n++)if(t[n].length<2||"="!==t[n].charAt(1))return!1;return!0},"object"===(void 0===t?"undefined":r(t))&&(t.exports=o)},{}]},{},[1])(1)}({exports:{}});var No="4.15.22",Ro={},xo=Kr,Po=$r,Uo=Object.keys||function(e){return xo(e,Po)},Vo=L,Bo=an,Fo=on,Go=un,Ho=fe,Yo=Uo;Ro.f=Vo&&!Bo?Object.defineProperties:function(e,t){Go(e);for(var n,r=Ho(t),o=Yo(t),a=o.length,i=0;a>i;)Fo.f(e,n=o[i++],r[n]);return e};var zo,qo=Ce("document","documentElement"),Wo=un,Ko=Ro,$o=$r,Jo=qn,Xo=qo,Qo=qt,Zo=zn("IE_PROTO"),ea=function(){},ta=function(e){return"<script>"+e+"<\/script>"},na=function(e){e.write(ta("")),e.close();var t=e.parentWindow.Object;return e=null,t},ra=function(){try{zo=new ActiveXObject("htmlfile")}catch(o){}var e,t;ra="undefined"!=typeof document?document.domain&&zo?na(zo):((t=Qo("iframe")).style.display="none",Xo.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ta("document.F=Object")),e.close(),e.F):na(zo);for(var n=$o.length;n--;)delete ra.prototype[$o[n]];return ra()};Jo[Zo]=!0;var oa=Object.create||function(e,t){var n;return null!==e?(ea.prototype=Wo(e),n=new ea,ea.prototype=null,n[Zo]=e):n=ra(),void 0===t?n:Ko.f(n,t)},aa=Dt,ia=oa,sa=on.f,ca=aa("unscopables"),la=Array.prototype;null==la[ca]&&sa(la,ca,{configurable:!0,value:ia(null)});var ua,da,pa,fa=function(e){la[ca][e]=!0},ha={},ma=!D((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),va=mt,ga=ge,_a=pt,ba=ma,ya=zn("IE_PROTO"),Oa=Object,Ma=Oa.prototype,ka=ba?Oa.getPrototypeOf:function(e){var t=_a(e);if(va(t,ya))return t[ya];var n=t.constructor;return ga(n)&&t instanceof n?n.prototype:t instanceof Oa?Ma:null},Ca=D,wa=ge,Sa=ye,Ta=ka,Ia=kr,Ea=Dt("iterator"),ja=!1;[].keys&&("next"in(pa=[].keys())?(da=Ta(Ta(pa)))!==Object.prototype&&(ua=da):ja=!0);var Da=!Sa(ua)||Ca((function(){var e={};return ua[Ea].call(e)!==e}));Da&&(ua={}),wa(ua[Ea])||Ia(ua,Ea,(function(){return this}));var La={IteratorPrototype:ua,BUGGY_SAFARI_ITERATORS:ja},Aa=on.f,Na=mt,Ra=Dt("toStringTag"),xa=function(e,t,n){e&&!n&&(e=e.prototype),e&&!Na(e,Ra)&&Aa(e,Ra,{configurable:!0,value:t})},Pa=La.IteratorPrototype,Ua=oa,Va=H,Ba=xa,Fa=ha,Ga=function(){return this},Ha=function(e,t,n,r){var o=t+" Iterator";return e.prototype=Ua(Pa,{next:Va(+!r,n)}),Ba(e,o,!1),Fa[o]=Ga,e},Ya=ge,za=String,qa=TypeError,Wa=te,Ka=un,$a=function(e){if("object"==typeof e||Ya(e))return e;throw qa("Can't set "+za(e)+" as a prototype")},Ja=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Wa(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(o){}return function(n,r){return Ka(n),$a(r),t?e(n,r):n.__proto__=r,n}}():void 0),Xa=So,Qa=x,Za=ge,ei=Ha,ti=ka,ni=Ja,ri=xa,oi=Cn,ai=kr,ii=ha,si=Dn.PROPER,ci=Dn.CONFIGURABLE,li=La.IteratorPrototype,ui=La.BUGGY_SAFARI_ITERATORS,di=Dt("iterator"),pi="keys",fi="values",hi="entries",mi=function(){return this},vi=function(e,t,n,r,o,a,i){ei(n,t,r);var s,c,l,u=function(e){if(e===o&&m)return m;if(!ui&&e in f)return f[e];switch(e){case pi:case fi:case hi:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",p=!1,f=e.prototype,h=f[di]||f["@@iterator"]||o&&f[o],m=!ui&&h||u(o),v="Array"==t&&f.entries||h;if(v&&(s=ti(v.call(new e)))!==Object.prototype&&s.next&&(ti(s)!==li&&(ni?ni(s,li):Za(s[di])||ai(s,di,mi)),ri(s,d,!0)),si&&o==fi&&h&&h.name!==fi&&(ci?oi(f,"name",fi):(p=!0,m=function(){return Qa(h,this)})),o)if(c={values:u(fi),keys:a?m:u(pi),entries:u(hi)},i)for(l in c)(ui||p||!(l in f))&&ai(f,l,c[l]);else Xa({target:t,proto:!0,forced:ui||p},c);return f[di]!==m&&ai(f,di,m,{name:o}),ii[t]=m,c},gi=function(e,t){return{value:e,done:t}},_i=fe,bi=fa,yi=ha,Oi=ir,Mi=on.f,ki=vi,Ci=gi,wi=L,Si="Array Iterator",Ti=Oi.set,Ii=Oi.getterFor(Si),Ei=ki(Array,"Array",(function(e,t){Ti(this,{type:Si,target:_i(e),index:0,kind:t})}),(function(){var e=Ii(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,Ci(void 0,!0)):Ci("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values"),ji=yi.Arguments=yi.Array;if(bi("keys"),bi("values"),bi("entries"),wi&&"values"!==ji.name)try{Mi(ji,"name",{value:"values"})}catch(aK){}var Di={};Di[Dt("toStringTag")]="z";var Li="[object z]"===String(Di),Ai=Li,Ni=ge,Ri=Q,xi=Dt("toStringTag"),Pi=Object,Ui="Arguments"==Ri(function(){return arguments}()),Vi=Ai?Ri:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(aK){}}(t=Pi(e),xi))?n:Ui?Ri(t):"Object"==(r=Ri(t))&&Ni(t.callee)?"Arguments":r},Bi=Vi,Fi=Li?{}.toString:function(){return"[object "+Bi(this)+"]"};Li||kr(Object.prototype,"toString",Fi,{unsafe:!0});var Gi={exports:{}},Hi={},Yi=Gt,zi=on,qi=H,Wi=function(e,t,n){var r=Yi(t);r in e?zi.f(e,r,qi(0,n)):e[r]=n},Ki=Lr,$i=Pr,Ji=Wi,Xi=Array,Qi=Math.max,Zi=function(e,t,n){for(var r=$i(e),o=Ki(t,r),a=Ki(void 0===n?r:n,r),i=Xi(Qi(a-o,0)),s=0;o<a;o++,s++)Ji(i,s,e[o]);return i.length=s,i},es=Q,ts=fe,ns=Cr.f,rs=Zi,os="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Hi.f=function(e){return os&&"Window"==es(e)?function(e){try{return ns(e)}catch(aK){return rs(os)}}(e):ns(ts(e))};var as=D((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),is=D,ss=ye,cs=Q,ls=as,us=Object.isExtensible,ds=is((function(){us(1)}))||ls?function(e){return!!ss(e)&&(!ls||"ArrayBuffer"!=cs(e))&&(!us||us(e))}:us,ps=!D((function(){return Object.isExtensible(Object.preventExtensions({}))})),fs=So,hs=te,ms=qn,vs=ye,gs=mt,_s=on.f,bs=Cr,ys=Hi,Os=ds,Ms=ps,ks=!1,Cs=yt("meta"),ws=0,Ss=function(e){_s(e,Cs,{value:{objectID:"O"+ws++,weakData:{}}})},Ts=Gi.exports={enable:function(){Ts.enable=function(){},ks=!0;var e=bs.f,t=hs([].splice),n={};n[Cs]=1,e(n).length&&(bs.f=function(n){for(var r=e(n),o=0,a=r.length;o<a;o++)if(r[o]===Cs){t(r,o,1);break}return r},fs({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ys.f}))},fastKey:function(e,t){if(!vs(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!gs(e,Cs)){if(!Os(e))return"F";if(!t)return"E";Ss(e)}return e[Cs].objectID},getWeakData:function(e,t){if(!gs(e,Cs)){if(!Os(e))return!0;if(!t)return!1;Ss(e)}return e[Cs].weakData},onFreeze:function(e){return Ms&&ks&&Os(e)&&!gs(e,Cs)&&Ss(e),e}};ms[Cs]=!0;var Is=Ke,Es=A,js=te(te.bind),Ds=function(e,t){return Is(e),void 0===t?e:Es?js(e,t):function(){return e.apply(t,arguments)}},Ls=ha,As=Dt("iterator"),Ns=Array.prototype,Rs=function(e){return void 0!==e&&(Ls.Array===e||Ns[As]===e)},xs=Vi,Ps=Xe,Us=se,Vs=ha,Bs=Dt("iterator"),Fs=function(e){if(!Us(e))return Ps(e,Bs)||Ps(e,"@@iterator")||Vs[xs(e)]},Gs=x,Hs=Ke,Ys=un,zs=Ye,qs=Fs,Ws=TypeError,Ks=function(e,t){var n=arguments.length<2?qs(e):t;if(Hs(n))return Ys(Gs(n,e));throw Ws(zs(e)+" is not iterable")},$s=x,Js=un,Xs=Xe,Qs=function(e,t,n){var r,o;Js(e);try{if(!(r=Xs(e,"return"))){if("throw"===t)throw n;return n}r=$s(r,e)}catch(aK){o=!0,r=aK}if("throw"===t)throw n;if(o)throw r;return Js(r),n},Zs=Ds,ec=x,tc=un,nc=Ye,rc=Rs,oc=Pr,ac=we,ic=Ks,sc=Fs,cc=Qs,lc=TypeError,uc=function(e,t){this.stopped=e,this.result=t},dc=uc.prototype,pc=function(e,t,n){var r,o,a,i,s,c,l,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),f=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),m=Zs(t,u),v=function(e){return r&&cc(r,"normal",e),new uc(!0,e)},g=function(e){return d?(tc(e),h?m(e[0],e[1],v):m(e[0],e[1])):h?m(e,v):m(e)};if(p)r=e.iterator;else if(f)r=e;else{if(!(o=sc(e)))throw lc(nc(e)+" is not iterable");if(rc(o)){for(a=0,i=oc(e);i>a;a++)if((s=g(e[a]))&&ac(dc,s))return s;return new uc(!1)}r=ic(e,o)}for(c=p?e.next:r.next;!(l=ec(c,r)).done;){try{s=g(l.value)}catch(aK){cc(r,"throw",aK)}if("object"==typeof s&&s&&ac(dc,s))return s}return new uc(!1)},fc=we,hc=TypeError,mc=function(e,t){if(fc(t,e))return e;throw hc("Incorrect invocation")},vc=Dt("iterator"),gc=!1;try{var _c=0,bc={next:function(){return{done:!!_c++}},return:function(){gc=!0}};bc[vc]=function(){return this},Array.from(bc,(function(){throw 2}))}catch(aK){}var yc=function(e,t){if(!t&&!gc)return!1;var n=!1;try{var r={};r[vc]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(aK){}return n},Oc=ge,Mc=ye,kc=Ja,Cc=function(e,t,n){var r,o;return kc&&Oc(r=t.constructor)&&r!==n&&Mc(o=r.prototype)&&o!==n.prototype&&kc(e,o),e},wc=So,Sc=E,Tc=te,Ic=_o,Ec=kr,jc=Gi.exports,Dc=pc,Lc=mc,Ac=ge,Nc=se,Rc=ye,xc=D,Pc=yc,Uc=xa,Vc=Cc,Bc=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=r?"set":"add",i=Sc[e],s=i&&i.prototype,c=i,l={},u=function(e){var t=Tc(s[e]);Ec(s,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Rc(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Rc(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Rc(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Ic(e,!Ac(i)||!(o||s.forEach&&!xc((function(){(new i).entries().next()})))))c=n.getConstructor(t,e,r,a),jc.enable();else if(Ic(e,!0)){var d=new c,p=d[a](o?{}:-0,1)!=d,f=xc((function(){d.has(1)})),h=Pc((function(e){new i(e)})),m=!o&&xc((function(){for(var e=new i,t=5;t--;)e[a](t,t);return!e.has(-0)}));h||((c=t((function(e,t){Lc(e,s);var n=Vc(new i,e,c);return Nc(t)||Dc(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(f||m)&&(u("delete"),u("has"),r&&u("get")),(m||p)&&u(a),o&&s.clear&&delete s.clear}return l[e]=c,wc({global:!0,constructor:!0,forced:c!=i},l),Uc(c,e),o||n.setStrong(c,e,r),c},Fc=kr,Gc=function(e,t,n){for(var r in t)Fc(e,r,t[r],n);return e},Hc=Ce,Yc=on,zc=L,qc=Dt("species"),Wc=function(e){var t=Hc(e),n=Yc.f;zc&&t&&!t[qc]&&n(t,qc,{configurable:!0,get:function(){return this}})},Kc=on.f,$c=oa,Jc=Gc,Xc=Ds,Qc=mc,Zc=se,el=pc,tl=vi,nl=gi,rl=Wc,ol=L,al=Gi.exports.fastKey,il=ir.set,sl=ir.getterFor,cl={getConstructor:function(e,t,n,r){var o=e((function(e,o){Qc(e,a),il(e,{type:t,index:$c(null),first:void 0,last:void 0,size:0}),ol||(e.size=0),Zc(o)||el(o,e[r],{that:e,AS_ENTRIES:n})})),a=o.prototype,i=sl(t),s=function(e,t,n){var r,o,a=i(e),s=c(e,t);return s?s.value=n:(a.last=s={index:o=al(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=s),r&&(r.next=s),ol?a.size++:e.size++,"F"!==o&&(a.index[o]=s)),e},c=function(e,t){var n,r=i(e),o=al(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Jc(a,{clear:function(){for(var e=i(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,ol?e.size=0:this.size=0},delete:function(e){var t=this,n=i(t),r=c(t,e);if(r){var o=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),n.first==r&&(n.first=o),n.last==r&&(n.last=a),ol?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=i(this),r=Xc(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!c(this,e)}}),Jc(a,n?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),ol&&Kc(a,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=sl(t),a=sl(r);tl(e,t,(function(e,t){il(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?nl("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,nl(void 0,!0))}),n?"entries":"values",!n,!0),rl(t)}};Bc("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),cl);var ll=Vi,ul=String,dl=function(e){if("Symbol"===ll(e))throw TypeError("Cannot convert a Symbol value to a string");return ul(e)},pl=te,fl=Ir,hl=dl,ml=ue,vl=pl("".charAt),gl=pl("".charCodeAt),_l=pl("".slice),bl=function(e){return function(t,n){var r,o,a=hl(ml(t)),i=fl(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=gl(a,i))<55296||r>56319||i+1===s||(o=gl(a,i+1))<56320||o>57343?e?vl(a,i):r:e?_l(a,i,i+2):o-56320+(r-55296<<10)+65536}},yl={codeAt:bl(!1),charAt:bl(!0)},Ol=yl.charAt,Ml=dl,kl=ir,Cl=vi,wl=gi,Sl="String Iterator",Tl=kl.set,Il=kl.getterFor(Sl);Cl(String,"String",(function(e){Tl(this,{type:Sl,string:Ml(e),index:0})}),(function(){var e,t=Il(this),n=t.string,r=t.index;return r>=n.length?wl(void 0,!0):(e=Ol(n,r),t.index+=e.length,wl(e,!1))}));var El={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},jl=qt("span").classList,Dl=jl&&jl.constructor&&jl.constructor.prototype,Ll=Dl===Object.prototype?void 0:Dl,Al=E,Nl=El,Rl=Ll,xl=Ei,Pl=Cn,Ul=Dt,Vl=Ul("iterator"),Bl=Ul("toStringTag"),Fl=xl.values,Gl=function(e,t){if(e){if(e[Vl]!==Fl)try{Pl(e,Vl,Fl)}catch(aK){e[Vl]=Fl}if(e[Bl]||Pl(e,Bl,t),Nl[t])for(var n in xl)if(e[n]!==xl[n])try{Pl(e,n,xl[n])}catch(aK){e[n]=xl[n]}}};for(var Hl in Nl)Gl(Al[Hl]&&Al[Hl].prototype,Hl);Gl(Rl,"DOMTokenList");var Yl=A,zl=Function.prototype,ql=zl.apply,Wl=zl.call,Kl="object"==typeof Reflect&&Reflect.apply||(Yl?Wl.bind(ql):function(){return Wl.apply(ql,arguments)}),$l=te([].slice),Jl=TypeError,Xl=function(e,t){if(e<t)throw Jl("Not enough arguments");return e},Ql=E,Zl=Kl,eu=ge,tu=$l,nu=Xl,ru=/MSIE .\./.test(Se),ou=Ql.Function,au=function(e){return ru?function(t,n){var r=nu(arguments.length,1)>2,o=eu(t)?t:ou(t),a=r?tu(arguments,2):void 0;return e(r?function(){Zl(o,this,a)}:o,n)}:e},iu={setTimeout:au(Ql.setTimeout),setInterval:au(Ql.setInterval)},su=iu.setInterval;So({global:!0,bind:!0,forced:E.setInterval!==su},{setInterval:su});var cu=iu.setTimeout;So({global:!0,bind:!0,forced:E.setTimeout!==cu},{setTimeout:cu}),Bc("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),cl);var lu=Q,uu=Array.isArray||function(e){return"Array"==lu(e)},du=te,pu=D,fu=ge,hu=Vi,mu=Un,vu=function(){},gu=[],_u=Ce("Reflect","construct"),bu=/^\s*(?:class|function)\b/,yu=du(bu.exec),Ou=!bu.exec(vu),Mu=function(e){if(!fu(e))return!1;try{return _u(vu,gu,e),!0}catch(aK){return!1}},ku=function(e){if(!fu(e))return!1;switch(hu(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ou||!!yu(bu,mu(e))}catch(aK){return!0}};ku.sham=!0;var Cu=!_u||pu((function(){var e;return Mu(Mu.call)||!Mu(Object)||!Mu((function(){e=!0}))||e}))?ku:Mu,wu=uu,Su=Cu,Tu=ye,Iu=Dt("species"),Eu=Array,ju=function(e){var t;return wu(e)&&(t=e.constructor,(Su(t)&&(t===Eu||wu(t.prototype))||Tu(t)&&null===(t=t[Iu]))&&(t=void 0)),void 0===t?Eu:t},Du=function(e,t){return new(ju(e))(0===t?0:t)},Lu=Ds,Au=ie,Nu=pt,Ru=Pr,xu=Du,Pu=te([].push),Uu=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,a=6==e,i=7==e,s=5==e||a;return function(c,l,u,d){for(var p,f,h=Nu(c),m=Au(h),v=Lu(l,u),g=Ru(m),_=0,b=d||xu,y=t?b(c,g):n||i?b(c,0):void 0;g>_;_++)if((s||_ in m)&&(f=v(p=m[_],_,h),e))if(t)y[_]=f;else if(f)switch(e){case 3:return!0;case 5:return p;case 6:return _;case 2:Pu(y,p)}else switch(e){case 4:return!1;case 7:Pu(y,p)}return a?-1:r||o?o:y}},Vu={forEach:Uu(0),map:Uu(1),filter:Uu(2),some:Uu(3),every:Uu(4),find:Uu(5),findIndex:Uu(6),filterReject:Uu(7)},Bu=D,Fu=Ae,Gu=Dt("species"),Hu=function(e){return Fu>=51||!Bu((function(){var t=[];return(t.constructor={})[Gu]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Yu=Vu.map;So({target:"Array",proto:!0,forced:!Hu("map")},{map:function(e){return Yu(this,e,arguments.length>1?arguments[1]:void 0)}});var zu=L,qu=uu,Wu=TypeError,Ku=Object.getOwnPropertyDescriptor,$u=zu&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(aK){return aK instanceof TypeError}}(),Ju=TypeError,Xu=function(e){if(e>9007199254740991)throw Ju("Maximum allowed index exceeded");return e},Qu=Ye,Zu=TypeError,ed=function(e,t){if(!delete e[t])throw Zu("Cannot delete property "+Qu(t)+" of "+Qu(e))},td=So,nd=pt,rd=Lr,od=Ir,ad=Pr,id=$u?function(e,t){if(qu(e)&&!Ku(e,"length").writable)throw Wu("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},sd=Xu,cd=Du,ld=Wi,ud=ed,dd=Hu("splice"),pd=Math.max,fd=Math.min;td({target:"Array",proto:!0,forced:!dd},{splice:function(e,t){var n,r,o,a,i,s,c=nd(this),l=ad(c),u=rd(e,l),d=arguments.length;for(0===d?n=r=0:1===d?(n=0,r=l-u):(n=d-2,r=fd(pd(od(t),0),l-u)),sd(l+n-r),o=cd(c,r),a=0;a<r;a++)(i=u+a)in c&&ld(o,a,c[i]);if(o.length=r,n<r){for(a=u;a<l-r;a++)s=a+n,(i=a+r)in c?c[s]=c[i]:ud(c,s);for(a=l;a>l-r+n;a--)ud(c,a-1)}else if(n>r)for(a=l-r;a>u;a--)s=a+n-1,(i=a+r-1)in c?c[s]=c[i]:ud(c,s);for(a=0;a<n;a++)c[a+u]=arguments[a+2];return id(c,l-r+n),o}});var hd=D,md=function(e,t){var n=[][e];return!!n&&hd((function(){n.call(null,t||function(){return 1},1)}))},vd=Vu.forEach,gd=md("forEach")?[].forEach:function(e){return vd(this,e,arguments.length>1?arguments[1]:void 0)};So({target:"Array",proto:!0,forced:[].forEach!=gd},{forEach:gd});var _d=E,bd=El,yd=Ll,Od=gd,Md=Cn,kd=function(e){if(e&&e.forEach!==Od)try{Md(e,"forEach",Od)}catch(aK){e.forEach=Od}};for(var Cd in bd)bd[Cd]&&kd(_d[Cd]&&_d[Cd].prototype);kd(yd);var wd=So,Sd=D,Td=uu,Id=ye,Ed=pt,jd=Pr,Dd=Xu,Ld=Wi,Ad=Du,Nd=Hu,Rd=Ae,xd=Dt("isConcatSpreadable"),Pd=Rd>=51||!Sd((function(){var e=[];return e[xd]=!1,e.concat()[0]!==e})),Ud=Nd("concat"),Vd=function(e){if(!Id(e))return!1;var t=e[xd];return void 0!==t?!!t:Td(e)};wd({target:"Array",proto:!0,arity:1,forced:!Pd||!Ud},{concat:function(e){var t,n,r,o,a,i=Ed(this),s=Ad(i,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(Vd(a=-1===t?i:arguments[t]))for(o=jd(a),Dd(c+o),n=0;n<o;n++,c++)n in a&&Ld(s,c,a[n]);else Dd(c+1),Ld(s,c++,a);return s.length=c,s}});var Bd=So,Fd=ie,Gd=fe,Hd=md,Yd=te([].join),zd=Fd!=Object,qd=Hd("join",",");Bd({target:"Array",proto:!0,forced:zd||!qd},{join:function(e){return Yd(Gd(this),void 0===e?",":e)}});var Wd=Vu.filter;So({target:"Array",proto:!0,forced:!Hu("filter")},{filter:function(e){return Wd(this,e,arguments.length>1?arguments[1]:void 0)}});var Kd=te,$d=kr,Jd=Date.prototype,Xd="Invalid Date",Qd="toString",Zd=Kd(Jd.toString),ep=Kd(Jd.getTime);String(new Date(NaN))!=Xd&&$d(Jd,Qd,(function(){var e=ep(this);return e==e?Zd(this):Xd}));var tp=Ir,np=dl,rp=ue,op=RangeError,ap=function(e){var t=np(rp(this)),n="",r=tp(e);if(r<0||1/0==r)throw op("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},ip=te,sp=Rr,cp=dl,lp=ue,up=ip(ap),dp=ip("".slice),pp=Math.ceil,fp=function(e){return function(t,n,r){var o,a,i=cp(lp(t)),s=sp(n),c=i.length,l=void 0===r?" ":cp(r);return s<=c||""==l?i:((a=up(l,pp((o=s-c)/l.length))).length>o&&(a=dp(a,0,o)),e?i+a:a+i)}},hp={start:fp(!1),end:fp(!0)},mp=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(Se),vp=hp.start;So({target:"String",proto:!0,forced:mp},{padStart:function(e){return vp(this,e,arguments.length>1?arguments[1]:void 0)}});var gp=un,_p=function(){var e=gp(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},bp=D,yp=E.RegExp,Op=bp((function(){var e=yp("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Mp=Op||bp((function(){return!yp("a","y").sticky})),kp={BROKEN_CARET:Op||bp((function(){var e=yp("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Mp,UNSUPPORTED_Y:Op},Cp=D,wp=E.RegExp,Sp=Cp((function(){var e=wp(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Tp=D,Ip=E.RegExp,Ep=Tp((function(){var e=Ip("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),jp=x,Dp=te,Lp=dl,Ap=_p,Np=kp,Rp=nt.exports,xp=oa,Pp=ir.get,Up=Sp,Vp=Ep,Bp=Rp("native-string-replace",String.prototype.replace),Fp=RegExp.prototype.exec,Gp=Fp,Hp=Dp("".charAt),Yp=Dp("".indexOf),zp=Dp("".replace),qp=Dp("".slice),Wp=function(){var e=/a/,t=/b*/g;return jp(Fp,e,"a"),jp(Fp,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Kp=Np.BROKEN_CARET,$p=void 0!==/()??/.exec("")[1];(Wp||$p||Kp||Up||Vp)&&(Gp=function(e){var t,n,r,o,a,i,s,c=this,l=Pp(c),u=Lp(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=jp(Gp,d,u),c.lastIndex=d.lastIndex,t;var p=l.groups,f=Kp&&c.sticky,h=jp(Ap,c),m=c.source,v=0,g=u;if(f&&(h=zp(h,"y",""),-1===Yp(h,"g")&&(h+="g"),g=qp(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Hp(u,c.lastIndex-1))&&(m="(?: "+m+")",g=" "+g,v++),n=new RegExp("^(?:"+m+")",h)),$p&&(n=new RegExp("^"+m+"$(?!\\s)",h)),Wp&&(r=c.lastIndex),o=jp(Fp,f?n:c,g),f?o?(o.input=qp(o.input,v),o[0]=qp(o[0],v),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Wp&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),$p&&o&&o.length>1&&jp(Bp,o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&p)for(o.groups=i=xp(null),a=0;a<p.length;a++)i[(s=p[a])[0]]=o[s[1]];return o});var Jp=Gp;So({target:"RegExp",proto:!0,forced:/./.exec!==Jp},{exec:Jp});var Xp=te,Qp=kr,Zp=Jp,ef=D,tf=Dt,nf=Cn,rf=tf("species"),of=RegExp.prototype,af=function(e,t,n,r){var o=tf(e),a=!ef((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),i=a&&!ef((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[rf]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!a||!i||n){var s=Xp(/./[o]),c=t(o,""[e],(function(e,t,n,r,o){var i=Xp(e),c=t.exec;return c===Zp||c===of.exec?a&&!o?{done:!0,value:s(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}));Qp(String.prototype,e,c[0]),Qp(of,o,c[1])}r&&nf(of[o],"sham",!0)},sf=yl.charAt,cf=function(e,t,n){return t+(n?sf(e,t).length:1)},lf=te,uf=pt,df=Math.floor,pf=lf("".charAt),ff=lf("".replace),hf=lf("".slice),mf=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,vf=/\$([$&'`]|\d{1,2})/g,gf=x,_f=un,bf=ge,yf=Q,Of=Jp,Mf=TypeError,kf=function(e,t){var n=e.exec;if(bf(n)){var r=gf(n,e,t);return null!==r&&_f(r),r}if("RegExp"===yf(e))return gf(Of,e,t);throw Mf("RegExp#exec called on incompatible receiver")},Cf=Kl,wf=x,Sf=te,Tf=af,If=D,Ef=un,jf=ge,Df=se,Lf=Ir,Af=Rr,Nf=dl,Rf=ue,xf=cf,Pf=Xe,Uf=function(e,t,n,r,o,a){var i=n+e.length,s=r.length,c=vf;return void 0!==o&&(o=uf(o),c=mf),ff(a,c,(function(a,c){var l;switch(pf(c,0)){case"$":return"$";case"&":return e;case"`":return hf(t,0,n);case"'":return hf(t,i);case"<":l=o[hf(c,1,-1)];break;default:var u=+c;if(0===u)return a;if(u>s){var d=df(u/10);return 0===d?a:d<=s?void 0===r[d-1]?pf(c,1):r[d-1]+pf(c,1):a}l=r[u-1]}return void 0===l?"":l}))},Vf=kf,Bf=Dt("replace"),Ff=Math.max,Gf=Math.min,Hf=Sf([].concat),Yf=Sf([].push),zf=Sf("".indexOf),qf=Sf("".slice),Wf="$0"==="a".replace(/./,"$0"),Kf=!!/./[Bf]&&""===/./[Bf]("a","$0"),$f=!If((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));Tf("replace",(function(e,t,n){var r=Kf?"$":"$0";return[function(e,n){var r=Rf(this),o=Df(e)?void 0:Pf(e,Bf);return o?wf(o,e,r,n):wf(t,Nf(r),e,n)},function(e,o){var a=Ef(this),i=Nf(e);if("string"==typeof o&&-1===zf(o,r)&&-1===zf(o,"$<")){var s=n(t,a,i,o);if(s.done)return s.value}var c=jf(o);c||(o=Nf(o));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Vf(a,i);if(null===p)break;if(Yf(d,p),!l)break;""===Nf(p[0])&&(a.lastIndex=xf(i,Af(a.lastIndex),u))}for(var f,h="",m=0,v=0;v<d.length;v++){for(var g=Nf((p=d[v])[0]),_=Ff(Gf(Lf(p.index),i.length),0),b=[],y=1;y<p.length;y++)Yf(b,void 0===(f=p[y])?f:String(f));var O=p.groups;if(c){var M=Hf([g],b,_,i);void 0!==O&&Yf(M,O);var k=Nf(Cf(o,void 0,M))}else k=Uf(g,i,_,b,O,o);_>=m&&(h+=qf(i,m,_)+k,m=_+g.length)}return h+qf(i,m)}]}),!$f||!Wf||Kf);var Jf=x,Xf=mt,Qf=we,Zf=_p,eh=RegExp.prototype,th=function(e){var t=e.flags;return void 0!==t||"flags"in eh||Xf(e,"flags")||!Qf(eh,e)?t:Jf(Zf,e)},nh=Dn.PROPER,rh=kr,oh=un,ah=dl,ih=D,sh=th,ch="toString",lh=RegExp.prototype.toString,uh=ih((function(){return"/a/b"!=lh.call({source:"a",flags:"b"})})),dh=nh&&lh.name!=ch;(uh||dh)&&rh(RegExp.prototype,ch,(function(){var e=oh(this);return"/"+ah(e.source)+"/"+ah(sh(e))}),{unsafe:!0});var ph=D,fh=Dt("iterator"),hh=!ph((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[fh]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),mh=Zi,vh=Math.floor,gh=function(e,t){var n=e.length,r=vh(n/2);return n<8?_h(e,t):bh(e,gh(mh(e,0,r),t),gh(mh(e,r),t),t)},_h=function(e,t){for(var n,r,o=e.length,a=1;a<o;){for(r=a,n=e[a];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==a++&&(e[r]=n)}return e},bh=function(e,t,n,r){for(var o=t.length,a=n.length,i=0,s=0;i<o||s<a;)e[i+s]=i<o&&s<a?r(t[i],n[s])<=0?t[i++]:n[s++]:i<o?t[i++]:n[s++];return e},yh=gh,Oh=So,Mh=E,kh=x,Ch=te,wh=L,Sh=hh,Th=kr,Ih=Gc,Eh=xa,jh=Ha,Dh=ir,Lh=mc,Ah=ge,Nh=mt,Rh=Ds,xh=Vi,Ph=un,Uh=ye,Vh=dl,Bh=oa,Fh=H,Gh=Ks,Hh=Fs,Yh=Xl,zh=yh,qh=Dt("iterator"),Wh="URLSearchParams",Kh="URLSearchParamsIterator",$h=Dh.set,Jh=Dh.getterFor(Wh),Xh=Dh.getterFor(Kh),Qh=Object.getOwnPropertyDescriptor,Zh=function(e){if(!wh)return Mh[e];var t=Qh(Mh,e);return t&&t.value},em=Zh("fetch"),tm=Zh("Request"),nm=Zh("Headers"),rm=tm&&tm.prototype,om=nm&&nm.prototype,am=Mh.RegExp,im=Mh.TypeError,sm=Mh.decodeURIComponent,cm=Mh.encodeURIComponent,lm=Ch("".charAt),um=Ch([].join),dm=Ch([].push),pm=Ch("".replace),fm=Ch([].shift),hm=Ch([].splice),mm=Ch("".split),vm=Ch("".slice),gm=/\+/g,_m=Array(4),bm=function(e){return _m[e-1]||(_m[e-1]=am("((?:%[\\da-f]{2}){"+e+"})","gi"))},ym=function(e){try{return sm(e)}catch(aK){return e}},Om=function(e){var t=pm(e,gm," "),n=4;try{return sm(t)}catch(aK){for(;n;)t=pm(t,bm(n--),ym);return t}},Mm=/[!'()~]|%20/g,km={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Cm=function(e){return km[e]},wm=function(e){return pm(cm(e),Mm,Cm)},Sm=jh((function(e,t){$h(this,{type:Kh,iterator:Gh(Jh(e).entries),kind:t})}),"Iterator",(function(){var e=Xh(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),!0),Tm=function(e){this.entries=[],this.url=null,void 0!==e&&(Uh(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===lm(e,0)?vm(e,1):e:Vh(e)))};Tm.prototype={type:Wh,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,a,i,s,c=Hh(e);if(c)for(n=(t=Gh(e,c)).next;!(r=kh(n,t)).done;){if(a=(o=Gh(Ph(r.value))).next,(i=kh(a,o)).done||(s=kh(a,o)).done||!kh(a,o).done)throw im("Expected sequence with length 2");dm(this.entries,{key:Vh(i.value),value:Vh(s.value)})}else for(var l in e)Nh(e,l)&&dm(this.entries,{key:l,value:Vh(e[l])})},parseQuery:function(e){if(e)for(var t,n,r=mm(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(n=mm(t,"="),dm(this.entries,{key:Om(fm(n)),value:Om(um(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],dm(n,wm(e.key)+"="+wm(e.value));return um(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Im=function(){Lh(this,Em);var e=arguments.length>0?arguments[0]:void 0;$h(this,new Tm(e))},Em=Im.prototype;if(Ih(Em,{append:function(e,t){Yh(arguments.length,2);var n=Jh(this);dm(n.entries,{key:Vh(e),value:Vh(t)}),n.updateURL()},delete:function(e){Yh(arguments.length,1);for(var t=Jh(this),n=t.entries,r=Vh(e),o=0;o<n.length;)n[o].key===r?hm(n,o,1):o++;t.updateURL()},get:function(e){Yh(arguments.length,1);for(var t=Jh(this).entries,n=Vh(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){Yh(arguments.length,1);for(var t=Jh(this).entries,n=Vh(e),r=[],o=0;o<t.length;o++)t[o].key===n&&dm(r,t[o].value);return r},has:function(e){Yh(arguments.length,1);for(var t=Jh(this).entries,n=Vh(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){Yh(arguments.length,1);for(var n,r=Jh(this),o=r.entries,a=!1,i=Vh(e),s=Vh(t),c=0;c<o.length;c++)(n=o[c]).key===i&&(a?hm(o,c--,1):(a=!0,n.value=s));a||dm(o,{key:i,value:s}),r.updateURL()},sort:function(){var e=Jh(this);zh(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=Jh(this).entries,r=Rh(e,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new Sm(this,"keys")},values:function(){return new Sm(this,"values")},entries:function(){return new Sm(this,"entries")}},{enumerable:!0}),Th(Em,qh,Em.entries,{name:"entries"}),Th(Em,"toString",(function(){return Jh(this).serialize()}),{enumerable:!0}),Eh(Im,Wh),Oh({global:!0,constructor:!0,forced:!Sh},{URLSearchParams:Im}),!Sh&&Ah(nm)){var jm=Ch(om.has),Dm=Ch(om.set),Lm=function(e){if(Uh(e)){var t,n=e.body;if(xh(n)===Wh)return t=e.headers?new nm(e.headers):new nm,jm(t,"content-type")||Dm(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Bh(e,{body:Fh(0,Vh(n)),headers:Fh(0,t)})}return e};if(Ah(em)&&Oh({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return em(e,arguments.length>1?Lm(arguments[1]):{})}}),Ah(tm)){var Am=function(e){return Lh(this,rm),new tm(e,arguments.length>1?Lm(arguments[1]):{})};rm.constructor=Am,Am.prototype=rm,Oh({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Am})}}var Nm={URLSearchParams:Im,getState:Jh},Rm=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},xm=x,Pm=un,Um=se,Vm=ue,Bm=Rm,Fm=dl,Gm=Xe,Hm=kf;af("search",(function(e,t,n){return[function(t){var n=Vm(this),r=Um(t)?void 0:Gm(t,e);return r?xm(r,t,n):new RegExp(t)[e](Fm(n))},function(e){var r=Pm(this),o=Fm(e),a=n(t,r,o);if(a.done)return a.value;var i=r.lastIndex;Bm(i,0)||(r.lastIndex=0);var s=Hm(r,o);return Bm(r.lastIndex,i)||(r.lastIndex=i),null===s?-1:s.index}]})),(new Date).getTime();var Ym=0,zm=function(){return(new Date).getTime()+Ym},qm=function(){var e=new Date;return e.setTime(zm()),e.toLocaleString()},Wm=x,Km=un,$m=se,Jm=Rr,Xm=dl,Qm=ue,Zm=Xe,ev=cf,tv=kf;af("match",(function(e,t,n){return[function(t){var n=Qm(this),r=$m(t)?void 0:Zm(t,e);return r?Wm(r,t,n):new RegExp(t)[e](Xm(n))},function(e){var r=Km(this),o=Xm(e),a=n(t,r,o);if(a.done)return a.value;if(!r.global)return tv(r,o);var i=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;null!==(s=tv(r,o));){var u=Xm(s[0]);c[l]=u,""===u&&(r.lastIndex=ev(o,Jm(r.lastIndex),i)),l++}return 0===l?null:c}]}));var nv=ye,rv=Q,ov=Dt("match"),av=function(e){var t;return nv(e)&&(void 0!==(t=e[ov])?!!t:"RegExp"==rv(e))},iv=on.f,sv=L,cv=E,lv=te,uv=_o,dv=Cc,pv=Cn,fv=Cr.f,hv=we,mv=av,vv=dl,gv=th,_v=kp,bv=function(e,t,n){n in e||iv(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},yv=kr,Ov=D,Mv=mt,kv=ir.enforce,Cv=Wc,wv=Sp,Sv=Ep,Tv=Dt("match"),Iv=cv.RegExp,Ev=Iv.prototype,jv=cv.SyntaxError,Dv=lv(Ev.exec),Lv=lv("".charAt),Av=lv("".replace),Nv=lv("".indexOf),Rv=lv("".slice),xv=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Pv=/a/g,Uv=/a/g,Vv=new Iv(Pv)!==Pv,Bv=_v.MISSED_STICKY,Fv=_v.UNSUPPORTED_Y,Gv=sv&&(!Vv||Bv||wv||Sv||Ov((function(){return Uv[Tv]=!1,Iv(Pv)!=Pv||Iv(Uv)==Uv||"/a/i"!=Iv(Pv,"i")})));if(uv("RegExp",Gv)){for(var Hv=function(e,t){var n,r,o,a,i,s,c=hv(Ev,this),l=mv(e),u=void 0===t,d=[],p=e;if(!c&&l&&u&&e.constructor===Hv)return e;if((l||hv(Ev,e))&&(e=e.source,u&&(t=gv(p))),e=void 0===e?"":vv(e),t=void 0===t?"":vv(t),p=e,wv&&"dotAll"in Pv&&(r=!!t&&Nv(t,"s")>-1)&&(t=Av(t,/s/g,"")),n=t,Bv&&"sticky"in Pv&&(o=!!t&&Nv(t,"y")>-1)&&Fv&&(t=Av(t,/y/g,"")),Sv&&(a=function(e){for(var t,n=e.length,r=0,o="",a=[],i={},s=!1,c=!1,l=0,u="";r<=n;r++){if("\\"===(t=Lv(e,r)))t+=Lv(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:Dv(xv,Rv(e,r+1))&&(r+=2,c=!0),o+=t,l++;continue;case">"===t&&c:if(""===u||Mv(i,u))throw new jv("Invalid capture group name");i[u]=!0,a[a.length]=[u,l],c=!1,u="";continue}c?u+=t:o+=t}return[o,a]}(e),e=a[0],d=a[1]),i=dv(Iv(e,t),c?this:Ev,Hv),(r||o||d.length)&&(s=kv(i),r&&(s.dotAll=!0,s.raw=Hv(function(e){for(var t,n=e.length,r=0,o="",a=!1;r<=n;r++)"\\"!==(t=Lv(e,r))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),o+=t):o+="[\\s\\S]":o+=t+Lv(e,++r);return o}(e),n)),o&&(s.sticky=!0),d.length&&(s.groups=d)),e!==p)try{pv(i,"source",""===p?"(?:)":p)}catch(aK){}return i},Yv=fv(Iv),zv=0;Yv.length>zv;)bv(Hv,Iv,Yv[zv++]);Ev.constructor=Hv,Hv.prototype=Ev,yv(cv,"RegExp",Hv,{constructor:!0})}Cv("RegExp");var qv=te(1..valueOf),Wv="\t\n\v\f\r    \u2028\u2029\ufeff",Kv=ue,$v=dl,Jv=te("".replace),Xv="[\t\n\v\f\r    \u2028\u2029\ufeff]",Qv=RegExp("^"+Xv+Xv+"*"),Zv=RegExp(Xv+Xv+"*$"),eg=function(e){return function(t){var n=$v(Kv(t));return 1&e&&(n=Jv(n,Qv,"")),2&e&&(n=Jv(n,Zv,"")),n}},tg={start:eg(1),end:eg(2),trim:eg(3)},ng=L,rg=E,og=te,ag=_o,ig=kr,sg=mt,cg=Cc,lg=we,ug=Ge,dg=Vt,pg=D,fg=Cr.f,hg=j.f,mg=on.f,vg=qv,gg=tg.trim,_g="Number",bg=rg.Number,yg=bg.prototype,Og=rg.TypeError,Mg=og("".slice),kg=og("".charCodeAt),Cg=function(e){var t=dg(e,"number");return"bigint"==typeof t?t:wg(t)},wg=function(e){var t,n,r,o,a,i,s,c,l=dg(e,"number");if(ug(l))throw Og("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=gg(l),43===(t=kg(l,0))||45===t){if(88===(n=kg(l,2))||120===n)return NaN}else if(48===t){switch(kg(l,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(i=(a=Mg(l,2)).length,s=0;s<i;s++)if((c=kg(a,s))<48||c>o)return NaN;return parseInt(a,r)}return+l};if(ag(_g,!bg(" 0o1")||!bg("0b1")||bg("+0x1"))){for(var Sg,Tg=function(e){var t=arguments.length<1?0:bg(Cg(e)),n=this;return lg(yg,n)&&pg((function(){vg(n)}))?cg(Object(t),n,Tg):t},Ig=ng?fg(bg):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Eg=0;Ig.length>Eg;Eg++)sg(bg,Sg=Ig[Eg])&&!sg(Tg,Sg)&&mg(Tg,Sg,hg(bg,Sg));Tg.prototype=yg,yg.constructor=Tg,ig(rg,_g,Tg,{constructor:!0})}var jg=Gr.includes,Dg=fa;So({target:"Array",proto:!0,forced:D((function(){return!Array(1).includes()}))},{includes:function(e){return jg(this,e,arguments.length>1?arguments[1]:void 0)}}),Dg("includes");var Lg=av,Ag=TypeError,Ng=function(e){if(Lg(e))throw Ag("The method doesn't accept regular expressions");return e},Rg=Dt("match"),xg=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Rg]=!1,"/./"[e](t)}catch(o){}}return!1},Pg=So,Ug=Ng,Vg=ue,Bg=dl,Fg=xg,Gg=te("".indexOf);Pg({target:"String",proto:!0,forced:!Fg("includes")},{includes:function(e){return!!~Gg(Bg(Vg(this)),Bg(Ug(e)),arguments.length>1?arguments[1]:void 0)}});var Hg=So,Yg=Gr.indexOf,zg=md,qg=te([].indexOf),Wg=!!qg&&1/qg([1],1,-0)<0,Kg=zg("indexOf");Hg({target:"Array",proto:!0,forced:Wg||!Kg},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Wg?qg(this,e,t)||0:Yg(this,e,t)}});var $g=pt,Jg=ka,Xg=ma;So({target:"Object",stat:!0,forced:D((function(){Jg(1)})),sham:!Xg},{getPrototypeOf:function(e){return Jg($g(e))}});var Qg=Kl,Zg=Ke,e_=un;So({target:"Reflect",stat:!0,forced:!D((function(){Reflect.apply((function(){}))}))},{apply:function(e,t,n){return Qg(Zg(e),t,e_(n))}});var t_=L,n_=Dn.EXISTS,r_=te,o_=on.f,a_=Function.prototype,i_=r_(a_.toString),s_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c_=r_(s_.exec);t_&&!n_&&o_(a_,"name",{configurable:!0,get:function(){try{return c_(s_,i_(this))[1]}catch(aK){return""}}});var l_=So,u_=Date,d_=te(u_.prototype.getTime);l_({target:"Date",stat:!0},{now:function(){return d_(new u_)}});var p_,f_,h_,m_,v_="process"==Q(E.process),g_=Cu,__=Ye,b_=TypeError,y_=function(e){if(g_(e))return e;throw b_(__(e)+" is not a constructor")},O_=un,M_=y_,k_=se,C_=Dt("species"),w_=function(e,t){var n,r=O_(e).constructor;return void 0===r||k_(n=O_(r)[C_])?t:M_(n)},S_=/(?:ipad|iphone|ipod).*applewebkit/i.test(Se),T_=E,I_=Kl,E_=Ds,j_=ge,D_=mt,L_=D,A_=qo,N_=$l,R_=qt,x_=Xl,P_=S_,U_=v_,V_=T_.setImmediate,B_=T_.clearImmediate,F_=T_.process,G_=T_.Dispatch,H_=T_.Function,Y_=T_.MessageChannel,z_=T_.String,q_=0,W_={},K_="onreadystatechange";try{p_=T_.location}catch(aK){}var $_=function(e){if(D_(W_,e)){var t=W_[e];delete W_[e],t()}},J_=function(e){return function(){$_(e)}},X_=function(e){$_(e.data)},Q_=function(e){T_.postMessage(z_(e),p_.protocol+"//"+p_.host)};V_&&B_||(V_=function(e){x_(arguments.length,1);var t=j_(e)?e:H_(e),n=N_(arguments,1);return W_[++q_]=function(){I_(t,void 0,n)},f_(q_),q_},B_=function(e){delete W_[e]},U_?f_=function(e){F_.nextTick(J_(e))}:G_&&G_.now?f_=function(e){G_.now(J_(e))}:Y_&&!P_?(m_=(h_=new Y_).port2,h_.port1.onmessage=X_,f_=E_(m_.postMessage,m_)):T_.addEventListener&&j_(T_.postMessage)&&!T_.importScripts&&p_&&"file:"!==p_.protocol&&!L_(Q_)?(f_=Q_,T_.addEventListener("message",X_,!1)):f_=K_ in R_("script")?function(e){A_.appendChild(R_("script")).onreadystatechange=function(){A_.removeChild(this),$_(e)}}:function(e){setTimeout(J_(e),0)});var Z_,eb,tb,nb,rb,ob,ab,ib,sb={set:V_,clear:B_},cb=E,lb=/ipad|iphone|ipod/i.test(Se)&&void 0!==cb.Pebble,ub=/web0s(?!.*chrome)/i.test(Se),db=E,pb=Ds,fb=j.f,hb=sb.set,mb=S_,vb=lb,gb=ub,_b=v_,bb=db.MutationObserver||db.WebKitMutationObserver,yb=db.document,Ob=db.process,Mb=db.Promise,kb=fb(db,"queueMicrotask"),Cb=kb&&kb.value;Cb||(Z_=function(){var e,t;for(_b&&(e=Ob.domain)&&e.exit();eb;){t=eb.fn,eb=eb.next;try{t()}catch(aK){throw eb?nb():tb=void 0,aK}}tb=void 0,e&&e.enter()},mb||_b||gb||!bb||!yb?!vb&&Mb&&Mb.resolve?((ab=Mb.resolve(void 0)).constructor=Mb,ib=pb(ab.then,ab),nb=function(){ib(Z_)}):_b?nb=function(){Ob.nextTick(Z_)}:(hb=pb(hb,db),nb=function(){hb(Z_)}):(rb=!0,ob=yb.createTextNode(""),new bb(Z_).observe(ob,{characterData:!0}),nb=function(){ob.data=rb=!rb}));var wb=Cb||function(e){var t={fn:e,next:void 0};tb&&(tb.next=t),eb||(eb=t,nb()),tb=t},Sb=E,Tb=function(e){try{return{error:!1,value:e()}}catch(aK){return{error:!0,value:aK}}},Ib=function(){this.head=null,this.tail=null};Ib.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var Eb=Ib,jb=E.Promise,Db="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Lb=!Db&&!v_&&"object"==typeof window&&"object"==typeof document,Ab=E,Nb=jb,Rb=ge,xb=_o,Pb=Un,Ub=Dt,Vb=Lb,Bb=Db,Fb=Ae;Nb&&Nb.prototype;var Gb=Ub("species"),Hb=!1,Yb=Rb(Ab.PromiseRejectionEvent),zb=xb("Promise",(function(){var e=Pb(Nb),t=e!==String(Nb);if(!t&&66===Fb)return!0;if(!Fb||Fb<51||!/native code/.test(e)){var n=new Nb((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[Gb]=r,!(Hb=n.then((function(){}))instanceof r))return!0}return!t&&(Vb||Bb)&&!Yb})),qb={CONSTRUCTOR:zb,REJECTION_EVENT:Yb,SUBCLASSING:Hb},Wb={},Kb=Ke,$b=TypeError,Jb=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw $b("Bad Promise constructor");t=e,n=r})),this.resolve=Kb(t),this.reject=Kb(n)};Wb.f=function(e){return new Jb(e)};var Xb,Qb,Zb,ey=So,ty=v_,ny=E,ry=x,oy=kr,ay=Ja,iy=xa,sy=Wc,cy=Ke,ly=ge,uy=ye,dy=mc,py=w_,fy=sb.set,hy=wb,my=function(e,t){var n=Sb.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))},vy=Tb,gy=Eb,_y=ir,by=jb,yy=Wb,Oy="Promise",My=qb.CONSTRUCTOR,ky=qb.REJECTION_EVENT,Cy=qb.SUBCLASSING,wy=_y.getterFor(Oy),Sy=_y.set,Ty=by&&by.prototype,Iy=by,Ey=Ty,jy=ny.TypeError,Dy=ny.document,Ly=ny.process,Ay=yy.f,Ny=Ay,Ry=!!(Dy&&Dy.createEvent&&ny.dispatchEvent),xy="unhandledrejection",Py=function(e){var t;return!(!uy(e)||!ly(t=e.then))&&t},Uy=function(e,t){var n,r,o,a=t.value,i=1==t.state,s=i?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(i||(2===t.rejection&&Hy(t),t.rejection=1),!0===s?n=a:(u&&u.enter(),n=s(a),u&&(u.exit(),o=!0)),n===e.promise?l(jy("Promise-chain cycle")):(r=Py(n))?ry(r,n,c,l):c(n)):l(a)}catch(aK){u&&!o&&u.exit(),l(aK)}},Vy=function(e,t){e.notified||(e.notified=!0,hy((function(){for(var n,r=e.reactions;n=r.get();)Uy(n,e);e.notified=!1,t&&!e.rejection&&Fy(e)})))},By=function(e,t,n){var r,o;Ry?((r=Dy.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),ny.dispatchEvent(r)):r={promise:t,reason:n},!ky&&(o=ny["on"+e])?o(r):e===xy&&my("Unhandled promise rejection",n)},Fy=function(e){ry(fy,ny,(function(){var t,n=e.facade,r=e.value;if(Gy(e)&&(t=vy((function(){ty?Ly.emit("unhandledRejection",r,n):By(xy,n,r)})),e.rejection=ty||Gy(e)?2:1,t.error))throw t.value}))},Gy=function(e){return 1!==e.rejection&&!e.parent},Hy=function(e){ry(fy,ny,(function(){var t=e.facade;ty?Ly.emit("rejectionHandled",t):By("rejectionhandled",t,e.value)}))},Yy=function(e,t,n){return function(r){e(t,r,n)}},zy=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Vy(e,!0))},qy=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw jy("Promise can't be resolved itself");var r=Py(t);r?hy((function(){var n={done:!1};try{ry(r,t,Yy(qy,n,e),Yy(zy,n,e))}catch(aK){zy(n,aK,e)}})):(e.value=t,e.state=1,Vy(e,!1))}catch(aK){zy({done:!1},aK,e)}}};if(My&&(Ey=(Iy=function(e){dy(this,Ey),cy(e),ry(Xb,this);var t=wy(this);try{e(Yy(qy,t),Yy(zy,t))}catch(aK){zy(t,aK)}}).prototype,(Xb=function(e){Sy(this,{type:Oy,done:!1,notified:!1,parent:!1,reactions:new gy,rejection:!1,state:0,value:void 0})}).prototype=oy(Ey,"then",(function(e,t){var n=wy(this),r=Ay(py(this,Iy));return n.parent=!0,r.ok=!ly(e)||e,r.fail=ly(t)&&t,r.domain=ty?Ly.domain:void 0,0==n.state?n.reactions.add(r):hy((function(){Uy(r,n)})),r.promise})),Qb=function(){var e=new Xb,t=wy(e);this.promise=e,this.resolve=Yy(qy,t),this.reject=Yy(zy,t)},yy.f=Ay=function(e){return e===Iy||void 0===e?new Qb(e):Ny(e)},ly(by)&&Ty!==Object.prototype)){Zb=Ty.then,Cy||oy(Ty,"then",(function(e,t){var n=this;return new Iy((function(e,t){ry(Zb,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete Ty.constructor}catch(aK){}ay&&ay(Ty,Ey)}ey({global:!0,constructor:!0,wrap:!0,forced:My},{Promise:Iy}),iy(Iy,Oy,!1),sy(Oy);var Wy=jb,Ky=qb.CONSTRUCTOR||!yc((function(e){Wy.all(e).then(void 0,(function(){}))})),$y=x,Jy=Ke,Xy=Wb,Qy=Tb,Zy=pc;So({target:"Promise",stat:!0,forced:Ky},{all:function(e){var t=this,n=Xy.f(t),r=n.resolve,o=n.reject,a=Qy((function(){var n=Jy(t.resolve),a=[],i=0,s=1;Zy(e,(function(e){var c=i++,l=!1;s++,$y(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),o)})),--s||r(a)}));return a.error&&o(a.value),n.promise}});var eO=So,tO=qb.CONSTRUCTOR,nO=jb,rO=Ce,oO=ge,aO=kr,iO=nO&&nO.prototype;if(eO({target:"Promise",proto:!0,forced:tO,real:!0},{catch:function(e){return this.then(void 0,e)}}),oO(nO)){var sO=rO("Promise").prototype.catch;iO.catch!==sO&&aO(iO,"catch",sO,{unsafe:!0})}var cO=x,lO=Ke,uO=Wb,dO=Tb,pO=pc;So({target:"Promise",stat:!0,forced:Ky},{race:function(e){var t=this,n=uO.f(t),r=n.reject,o=dO((function(){var o=lO(t.resolve);pO(e,(function(e){cO(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var fO=x,hO=Wb;So({target:"Promise",stat:!0,forced:qb.CONSTRUCTOR},{reject:function(e){var t=hO.f(this);return fO(t.reject,void 0,e),t.promise}});var mO=un,vO=ye,gO=Wb,_O=function(e,t){if(mO(e),vO(t)&&t.constructor===e)return t;var n=gO.f(e);return(0,n.resolve)(t),n.promise},bO=So,yO=qb.CONSTRUCTOR,OO=_O;Ce("Promise"),bO({target:"Promise",stat:!0,forced:yO},{resolve:function(e){return OO(this,e)}});var MO=pt,kO=Uo;So({target:"Object",stat:!0,forced:D((function(){kO(1)}))},{keys:function(e){return kO(MO(e))}});var CO="canvas",wO="audio",SO="video",TO="screen",IO="small",EO="big",jO="auxiliary",DO="aux",LO="smallVideo",AO="user",NO="environment",RO="mute",xO="unmute",PO="ended",UO="playing",VO="pause",BO="error",FO="loadeddata",GO="audioinput",HO="videoinput",YO="detail",zO="text",qO="main",WO="backup",KO="banned",$O="kick",JO="user_time_out",XO="room_disband",QO="sei-message",ZO="PLAYING",eM="PAUSED",tM="STOPPED",nM="inactive",rM="sendonly",oM="recvonly",aM="add",iM="remove",sM="replace",cM="track",lM="wss://trtc.rtc.qq.com",uM="wss://webrtc.qq.com",dM="qcloud",pM="trtc",fM="webrtc",hM="",mM="jssdk_log",vM="jssdk_event",gM="jssdk_new_endreport",_M=function(e){return hM=e},bM=1,yM=2,OM="live",MM=20,kM=21,CM="anchor",wM="audience",SM="5Y2wZK8nANNAoVw6dSAHVjNxrD1ObBM2kBPV",TM="224d130c-7b5c-415b-aaa2-79c2eb5a6df2",IM=2,EM=qO,jM=jO,DM="unknown",LM="DISCONNECTED",AM="CONNECTING",NM="RECONNECTING",RM="CONNECTED",xM="new",PM="connecting",UM="failed",VM="closed",BM="disconnected",FM="connected",GM="completed",HM=30,YM="join",zM="delta-join",qM="rejoin",WM="leave",KM="delta-leave",$M="publish",JM="delta-publish",XM="unpublish",QM="subscribe",ZM="unsubscribe",ek="uplink-connection",tk="uplink-reconnection",nk="downlink-connection",rk="downlink-reconnection",ok="setLocalDescription",ak="setRemoteDescription",ik="iceConnectionState",sk="stream-initialize",ck="websocketConnectionState",lk="websocketReconnectionState",uk="update-stream",dk="recover-subscription",pk="start-mix-transcode",fk="stop-mix-transcode",hk="player-error",mk="schedule",vk="unsubscribe",gk="subscribe_change",_k="unified-plan",bk="plan-b",yk={MANUAL:"manual",PRESET_LAYOUT:"preset-layout"},Ok={REMOTE:"$PLACE_HOLDER_REMOTE$"},Mk={IT_AUDIO_VIDEO:0,IT_PICTURE:2,IT_CANVAS:3,IT_PURE_AUDIO:4,IT_PURE_VIDEO:5},kk="string",Ck="number",wk="boolean",Sk="array",Tk="object",Ik={ADD:aM,REMOVE:iM},Ek={unknown:0,wifi:1,"4g":2,"3g":3,"2g":4,wired:5},jk=-1,Dk=0,Lk=1,Ak=EO,Nk=IO,Rk=6048e5,xk="schedule.cloud-rtc.com",Pk="schedule.rtc.qcloud.com",Uk="schedule.rtc.tencentcloud.com",Vk="schedule-ecdn.rtc.tencentcloud.com",Bk="",Fk=function(e){return Bk=e},Gk="TRTC",Hk="Client",Yk="LocalStream",zk="RemoteStream",qk="Stream",Wk="web.sdk.qcloud.com",Kk="web.sdk.tencent.cn",$k="web.sdk.cloud.tencent.cn",Jk="https://console.cloud.tencent.com/trtc",Xk="https://".concat(Wk,"/trtc/webrtc/doc"),Qk="".concat(Xk,"/zh-cn/"),Zk="trtc_error_assistance",eC="default",tC="communications",nC={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,NONE:5},rC=1,oC=2,aC=1,iC=2,sC=Object.keys(nC),cC=["normal leave","timeout leave","kick","role change"],lC=2e3,uC="ric",dC="raf",pC="interval",fC="timeout",hC="Resolution reset to 1080p, need to upgrade ability here https://cloud.tencent.com/document/product/647/85386",mC={"TRTC.checkSystemRequirements":40001,"TRTC.isScreenShareSupported":40002,"TRTC.isSmallStreamSupported":40003,"TRTC.createClient.rtc":40004,"TRTC.createClient.live":40005,"TRTC.createClient.intRoomId":40006,"TRTC.createClient.stringRoomId":40007,"TRTC.createClient.autoSubscribe":40008,"TRTC.createClient.manualSubscribe":40009,"TRTC.enableUploadLog":40010,"TRTC.disableUploadLog":40011,"Client.publish":40012,"Client.publish.isAuxiliary":40013,"Client.switchRole":40014,"Client.startPublishCDNStream":40015,"Client.stopPublishCDNStream":40016,"Client.startMixTranscode":40017,"Client.stopMixTranscode":40018,"Client.enableAudioVolumeEvaluation":40019,"Client.enableSmallStream":40020,"Client.disableSmallStream":40021,"Client.setSmallStreamProfile":40022,"Client.setRemoteVideoStreamType":40023,"Client.sendSEIMessage":40024,"Client.setProxyServer":40025,"Client.setTurnServer":40026,"LocalStream.setAudioProfile.standard":40027,"LocalStream.setAudioProfile.high":40028,"LocalStream.setAudioProfile.standard-stereo":40029,"LocalStream.setAudioProfile.high-stereo":40030,"LocalStream.setVideoProfile.120p":40031,"LocalStream.setVideoProfile.120p_2":40032,"LocalStream.setVideoProfile.180p":40033,"LocalStream.setVideoProfile.180p_2":40034,"LocalStream.setVideoProfile.240p":40035,"LocalStream.setVideoProfile.240p_2":40036,"LocalStream.setVideoProfile.360p":40037,"LocalStream.setVideoProfile.360p_2":40038,"LocalStream.setVideoProfile.480p":40039,"LocalStream.setVideoProfile.480p_2":40040,"LocalStream.setVideoProfile.720p":40041,"LocalStream.setVideoProfile.1080p":40042,"LocalStream.setVideoProfile.1440p":40043,"LocalStream.setVideoProfile.4K":40044,"LocalStream.setScreenProfile.480p":40045,"LocalStream.setScreenProfile.480p_2":40046,"LocalStream.setScreenProfile.720p":40047,"LocalStream.setScreenProfile.720p_2":40048,"LocalStream.setScreenProfile.1080p":40049,"LocalStream.setScreenProfile.1080p_2":40050,"LocalStream.setVideoContentHint.motion":40051,"LocalStream.setVideoContentHint.detail":40052,"LocalStream.setVideoContentHint.text":40053,"LocalStream.setAudioCaptureVolume":40054,"LocalStream.getVideoFrame":40055,"RemoteStream.setAudioOutput":40056,"RemoteStream.getVideoFrame":40057,AI_DENOISER:1700,SPATIAL_AUDIO:1701,"2K_4K":1704},vC=["width","height","frameRate","facingMode","sampleRate","sampleSize","channelCount","deviceId"],gC=ue,_C=dl,bC=/"/g,yC=te("".replace),OC=function(e,t,n,r){var o=_C(gC(e)),a="<"+t;return""!==n&&(a+=" "+n+'="'+yC(_C(r),bC,"&quot;")+'"'),a+">"+o+"</"+t+">"},MC=D,kC=function(e){return MC((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))},CC=OC;So({target:"String",proto:!0,forced:kC("link")},{link:function(e){return CC(this,"a","href",e)}}),So({target:"Array",stat:!0},{isArray:uu});var wC="AVOID_REPEATED_CALL",SC="INVALID_PARAMETER_REQUIRED",TC="INVALID_PARAMETER_TYPE",IC="INVALID_PARAMETER_EMPTY",EC="INVALID_PARAMETER_INSTANCE",jC="INVALID_PARAMETER_RANGE",DC="API_CALL_TIMEOUT",LC="SIGNAL_CHANNEL_RECONNECTION_FAILED",AC="SIGNAL_CHANNEL_SETUP_FAILED",NC="ERROR_MESSAGE",RC="EXCHANGE_SDP_TIMEOUT",xC="DOWNLINK_RECONNECTION_FAILED",PC="EXCHANGE_SDP_FAILED",UC="UPLINK_RECONNECTION_FAILED",VC="INVALID_PURE_AUDIO",BC="INVALID_STREAMID",FC="INVALID_USER_DEFINE_RECORDID",GC="INVALID_USER_DEFINE_PUSH_ARGS",HC="INVALID_PROXY",YC="INVALID_JOIN",zC="INVALID_ROOMID_STRING",qC="INVALID_ROOMID_INTEGER",WC="JOIN_ROOM_TIMEOUT",KC="JOIN_ROOM_FAILED",$C="REJOIN_ROOM_FAILED",JC="INVALID_DESTROY",XC="INVALID_PUBLISH",QC="INVALID_UNPUBLISH",ZC="INVALID_AUDIENCE",ew="INVALID_INITIALIZE",tw="INVALID_DUPLICATE_PUBLISHING",nw="INVALID_REMOTE_STREAM",rw="SUBSCRIBE_FAILED",ow="INVALID_ROLE",aw="INVALID_OPERATION_SWITCH_ROLE",iw="SWITCH_ROLE_TIMEOUT",sw="SWITCH_ROLE_FAILED",cw="CLIENT_BANNED",lw="INVALID_OPERATION_START_PUBLISH_CDN",uw="INVALID_OPERATION_STOP_PUBLISH_CDN",dw="INVALID_STREAM_ID",pw="START_PUBLISH_CDN_FAILED",fw="STOP_PUBLISH_CDN_FAILED",hw="START_MIX_TRANSCODE",mw="STOP_MIX_TRANSCODE",vw="INVALID_AUDIO_VOLUME",gw="ENABLE_SMALL_STREAM_PUBLISHED",_w="DISABLE_SMALL_STREAM_PUBLISHED",bw="NOT_SUPPORTED_SMALL_STREAM",yw="INVALID_SMALL_STREAM_PROFILE",Ow="INVALID_PARAMETER_REMOTE_STREAM",Mw="INVALID_SWITCH_DEVICE",kw="INVALID_SWITCH_DEVICE_PUBLISHING",Cw="INVALID_REPLACE_TRACK",ww="INVALID_INITIALIZE_LOCAL_STREAM",Sw="INVALID_ADD_TRACK_REPETITIVE",Tw="INVALID_ADD_TRACK_REMOVING",Iw="INVALID_ADD_TRACK_PUBLISHING",Ew="INVALID_STREAM_INITIALIZED",jw="INVALID_ADD_TRACK_NUMBER",Dw="INVALID_REMOVE_AUDIO_TRACK",Lw="INVALID_REMOVE_AUDIO_ADDING",Aw="INVALID_REMOVE_AUDIO_ON",Nw="INVALID_REMOVE_TRACK_PUBLISHING",Rw="INVALID_REMOVE_TRACK_NOT_PUBLISHING",xw="INVALID_REMOVE_TRACK_NUMBER",Pw="INVALID_REPLACE_TRACK_NO_TRACK",Uw="REPEAT_JOIN",Vw="CLIENT_DESTROYED",Bw="START_MIX_TRANSCODE_FAILED",Fw="STOP_MIX_TRANSCODE_FAILED",Gw="MIX_TRANSCODE_NOT_STARTED",Hw="CANNOT_LESS_THAN_ZERO",Yw="MIX_PARAMS_VIDEO_FRAMERATE",zw="MIX_PARAMS_VIDEO_GOP",qw="MIX_PARAMS_AUDIO_BITRATE",Ww="MIX_PARAMS_USER_Z_ORDER",Kw="MIX_PARAMS_NOT_SELF",$w="MIX_PARAMS_USER_STREAM",Jw="INVALID_ELEMENT_ID",Xw="INVALID_ELEMENT_ID_TYPE",Qw="PLAY_FAILED",Zw="INVALID_CREATE_STREAM_SOURCE",eS="INVALID_CREATE_STREAM_SCREEN",tS="INVALID_CREATE_STREAM_AUDIO",nS="INVALID_CREATE_STREAM_SCREEN_AUDIO",rS="NOT_SUPPORTED_HTTP",oS="NOT_SUPPORTED_WEBRTC",aS="NOT_SUPPORTED_PROFILE",iS="NOT_SUPPORTED_H264ENCODE",sS="NOT_SUPPORTED_H264DECODE",cS="NOT_SUPPORTED_TRACK",lS="NOT_SUPPORTED_SWITCH_DEVICE",uS="NOT_SUPPORTED_CAPTURE",dS="NOT_SUPPORTED_AUX",pS="MICROPHONE_NOT_FOUND",fS="CAMERA_NOT_FOUND",hS="SIGNAL_RESPONSE_FAILED",mS="CATCH_HANDLER_ERROR",vS="API_NOT_EXIST",gS="CONNECTION_CLOSED",_S="SUBSCRIBE_ALL_FALSE",bS="SEI_NOT_SUPPORT",yS="SEI_DISABLED",OS="SEI_EMPTY",MS="SEI_OVERSIZE",kS="SEI_BEFORE_PUBLISH",CS="SEI_NOT_VIDEO",wS="CALL_FREQUENCY_LIMIT",SS="CONNECTION_ABORTED",TS="API_CALL_ABORTED",IS="DUPLICATE_AUX",ES={AVOID_REPEATED_CALL:function(e){return"previous ".concat(e.name,"() is ongoing, please avoid repeated calls.")},INVALID_PARAMETER_REQUIRED:function(e){var t=e.key,n=e.rule,r=e.fnName,o=e.value;return"'".concat(t||n.name,"' is a required param when calling ").concat(r,"(), received: ").concat(o,".")},INVALID_PARAMETER_TYPE:function(e){var t=e.key,n=e.rule,r=e.fnName,o=e.value,a="".concat(t||n.name),i="";return i=Array.isArray(n.type)?n.type.join("|"):n.type,"'".concat(a,"' must be type of ").concat(i," when calling ").concat(r,"(), received type: ").concat(vI(o),".")},INVALID_PARAMETER_EMPTY:function(e){var t=e.key,n=e.rule,r=e.fnName,o=e.value;return"'".concat(t||n.name,"' cannot be '").concat(o,"' when calling ").concat(r,"().")},INVALID_PARAMETER_INSTANCE:function(e){var t=e.key,n=e.rule,r=e.fnName,o=e.value,a="".concat(t||n.name),i="".concat(n.instanceOf.name||n.instanceOf);return"'".concat(a,"' must be instanceof ").concat(i," when calling ").concat(r,"(), received type: ").concat(vI(o),".")},INVALID_PARAMETER_RANGE:function(e){var t=e.key,n=e.rule,r=e.fnName,o=e.value;return"'".concat(t||n.name,"' must be one of ").concat(n.values.join("|")," when calling ").concat(r,"(), received: ").concat(o,".")},API_CALL_TIMEOUT:function(e){return"".concat(e.commandDesc||e.command," timeout observed.")},SIGNAL_CHANNEL_RECONNECTION_FAILED:"signal channel reconnection failed, please check your network.",SIGNAL_CHANNEL_SETUP_FAILED:function(e){return"SignalChannel setup failure: (errorCode: ".concat(e.errorCode,", errorMsg: ").concat(e.errorMsg," }).")},ERROR_MESSAGE:function(e){var t="".concat(e.type," failed");return e.message&&(t="".concat(t,": ").concat(e.message,".")),t},EXCHANGE_SDP_TIMEOUT:"exchange sdp timeout.",DOWNLINK_RECONNECTION_FAILED:"downlink reconnection failed, please check your network and re-join room.",EXCHANGE_SDP_FAILED:function(e){return"exchange sdp failed ".concat(e.errMsg,".")},UPDATE_OFFER_TIMEOUT:"update offer timeout observed.",UPLINK_RECONNECTION_FAILED:"uplink reconnection failed, please check your network and publish again.",INVALID_RECORDID:"recordId must be an integer number.",INVALID_PURE_AUDIO:"pureAudioPushMode must be 1 or 2.",INVALID_STREAMID:"streamId must be a sting literal within 64 bytes, and not be empty.",INVALID_USER_DEFINE_RECORDID:"userDefineRecordId must be a sting literal contains (a-zA-Z),(0-9), underline and hyphen, within 64 bytes, and not be empty.",INVALID_USER_DEFINE_PUSH_ARGS:"userDefinePushArgs must be a sting literal within 256 bytes, and not be empty.",INVALID_PROXY:'proxy server url must start with "wss://".',INVALID_JOIN:"duplicate join() called.",INVALID_ROOMID_STRING:function(e){return"'".concat(e,"' must be validate string when useStringRoomId is true.")},INVALID_ROOMID_INTEGER:function(e){return"'".concat(e,"' must be an integer between [1, 4294967294] when useStringRoomId is false.")},INVALID_SIGNAL_CHANNEL:"SignalChannel is not ready yet.",JOIN_ROOM_TIMEOUT:"join room timeout.",JOIN_ROOM_FAILED:function(e){var t=e.error,n=e.code;return"Failed to join room - ".concat(t," code: ").concat(n)},REJOIN_ROOM_FAILED:function(e){return"reJoin room: ".concat(e.roomId," failed, please check your network.")},INVALID_DESTROY:"please call leave() before destroy().",INVALID_PUBLISH:"please call join() before publish().",INVALID_UNPUBLISH:"stream has not been published yet.",INVALID_AUDIENCE:"no permission to publish() under live/".concat(wM,', please call switchRole("').concat(CM,'") firstly before publish().'),INVALID_INITIALIZE:"cannot publish stream because stream is not initialized, is switching device, or has been closed.",INVALID_DUPLICATE_PUBLISHING:function(e){return"duplicate ".concat(e," stream publishing, please unpublish your prev ").concat(e," stream and then re-publish.")},INVALID_SUBSCRIBE_UNDEFINED:"stream is undefined or null.",INVALID_SUBSCRIBE_LOCAL:"stream cannot be LocalStream.",INVALID_REMOTE_STREAM:"remoteStream does not exist because it has been unpublished by remote peer.",SUBSCRIBE_FAILED:function(e){var t=e.message,n=e.stream;return"failed to subscribe ".concat(n.getUserId()," ").concat(n.getType()," stream, reason: ").concat(t,".")},INVALID_ROLE:"switchRole can only be called in live mode.",INVALID_PARAMETER_SWITCH_ROLE:"role could only be set to a value as ".concat(CM," or ").concat(wM,"."),INVALID_OPERATION_SWITCH_ROLE:"please call join() before switchRole().",SWITCH_ROLE_TIMEOUT:"switchRole timeout.",SWITCH_ROLE_FAILED:function(e){return"switchRole failed, errCode: ".concat(e.code," errMsg: ").concat(e.message,".")},CLIENT_BANNED:function(e){return"client was banned because of "+e.message+"."},INVALID_OPERATION_START_PUBLISH_CDN:"please call startPublishCDNStream() before client join the room or after client join the room and successfully publish the local stream.",INVALID_OPERATION_STOP_PUBLISH_CDN:"please call startPublishCDNStream() before stopPublishCDNStream().",START_PUBLISH_CDN_FAILED:function(e){return"startPublishCDNStream failed, errMsg: ".concat(e.message,".")},STOP_PUBLISH_CDN_FAILED:function(e){return"stopPublishCDNStream failed, errMsg: ".concat(e.message,".")},INVALID_STREAM_ID:function(e){return"'".concat(e,"' can only consist of uppercase and lowercase english letters (a-zA-Z), numbers (0-9), hyphens and underscores.")},START_MIX_TRANSCODE:"please call startMixTranscode() after join().",STOP_MIX_TRANSCODE:"please call stopMixTranscode() after startMixTranscode().",INVALID_AUDIO_VOLUME:"interval must be a number.",ENABLE_SMALL_STREAM_PUBLISHED:"Cannot enable small stream after localStream published.",DISABLE_SMALL_STREAM_PUBLISHED:"Cannot disable small stream after localStream published.",NOT_SUPPORTED_SMALL_STREAM:"your browser does not support opening small stream.",INVALID_SMALL_STREAM_PROFILE:"small stream profile is invalid.",INVALID_PARAMETER_REMOTE_STREAM:"remoteStream is invalid.",INVALID_OPERATION_CHANGE_SMALL:"cannot switch to the small stream without subscribing to the video of remoteStream.",REMOTE_NOT_PUBLISH_SMALL_STREAM:"remote peer does not publish small stream.",INVALID_SWITCH_DEVICE:"cannot switch device on current stream.",INVALID_SWITCH_DEVICE_PUBLISHING:"cannot switch device when publishing localStream.",INVALID_REPLACE_TRACK:"cannot replace track when publishing localStream.",INVALID_INITIALIZE_LOCAL_STREAM:"local stream has not initialized yet.",INVALID_ADD_TRACK_REPETITIVE:"previous addTrack is ongoing, please avoid repetitive execution.",INVALID_ADD_TRACK_REMOVING:"cannot add track when a track is removing.",INVALID_ADD_TRACK_PUBLISHING:"cannot add track when publishing localStream.",INVALID_STREAM_INITIALIZED:"your local stream haven't been initialized yet.",INVALID_ADD_TRACK_NUMBER:"a Stream has at most one audio track and one video track.",INVALID_REMOVE_AUDIO_TRACK:"remove audio track is not supported on your browser.",INVALID_REMOVE_AUDIO_ADDING:"cannot remove track when a track is adding.",INVALID_REMOVE_AUDIO_ON:"previous removeTrack is ongoing, please avoid repetitive execution.",INVALID_REMOVE_TRACK_PUBLISHING:"cannot remove track when publishing localStream.",INVALID_REMOVE_TRACK_NOT_PUBLISHING:"the track to be removed is not being publishing.",INVALID_REMOVE_TRACK_NUMBER:"remove the only video track is not supported, please use replaceTrack or muteVideo.",INVALID_REPLACE_TRACK_NO_TRACK:function(e){return"cannot replace ".concat(e.kind," track because stream has not ").concat(e.kind," track")},START_MIX_TRANSCODE_FAILED:function(e){return"startMixTranscode failed, errMsg: ".concat(e.message,".")},STOP_MIX_TRANSCODE_FAILED:function(e){return"stopMixTranscode failed, errMsg: ".concat(e.message,".")},MIX_TRANSCODE_NOT_STARTED:"mixTranscode has not been started.",CANNOT_LESS_THAN_ZERO:function(e){var t=e.key,n=e.rule,r=e.fnName;return e.value,"'".concat(t||n.name,"' cannot be less than 0 when calling ").concat(r,"().")},MIX_PARAMS_VIDEO_FRAMERATE:"'config.videoFramerate' should be an integer between 0 and 30, excluding 0.",MIX_PARAMS_VIDEO_GOP:"'config.videoGOP' should be an integer between 1 and 8.",MIX_PARAMS_AUDIO_BITRATE:"'config.audioBitrate' should be an integer between 32 and 192.",MIX_PARAMS_USER_Z_ORDER:function(e){return"'".concat(e,"' is required and must be between 1 and 15.")},MIX_PARAMS_NOT_SELF:"'config.mixUsers' must contain self.",MIX_PARAMS_USER_STREAM:"'config.videoWidth' and 'config.videoHeight' of output stream should be contain all mix stream.",INVALID_PLAY:"duplicate play() call observed, please stop() firstly.",INVALID_ELEMENT_ID:function(e){var t=e.key,n=e.fnName;return"'".concat(t,"' is not found in the document object when calling ").concat(n,"().")},INVALID_ELEMENT_ID_TYPE:function(e){var t=e.key,n=e.fnName,r=e.type;return"the element corresponding to '".concat(t,"' must be instanceof HTMLDivElement when calling ").concat(n,"(), received: ").concat(r,".")},PLAY_FAILED:function(e){return"".concat(e.media," play failedbrowser exception: ").concat(e.error.toString())},INVALID_USERID:"userId cannot be all spaces.",INVALID_CREATE_STREAM_SOURCE:"LocalStream must be created by createStream() with either audio/video or audioSource/videoSource, but can not be mixed with audio/video and audioSource/videoSource.",INVALID_CREATE_STREAM_SCREEN:"screen/video cannot be both true.",INVALID_CREATE_STREAM_AUDIO:"audio/screenAudio cannot be both true.",INVALID_CREATE_STREAM_SCREEN_AUDIO:"when screen is true, screenAudio can be configured.",NOT_SUPPORTED_HTTP:"http protocol does not support the ability to capture and publish streams, please use the https protocol.",NOT_SUPPORTED_WEBRTC:"your browser or environment does not support full WebRTC capabilities.",NOT_SUPPORTED_PROFILE:"your browser does not support setVideoProfile.",NOT_SUPPORTED_MEDIA:"your browser or environment does not support navigator.mediaDevices.",NOT_SUPPORTED_H264ENCODE:"your device does not support H.264 encoding.",NOT_SUPPORTED_H264DECODE:"your device does not support H.264 decoding.",NOT_SUPPORTED_TRACK:function(e){return"".concat(e,"Track is not supported on your browser.")},NOT_SUPPORTED_SWITCH_DEVICE:"switchDevice is not supported on your browser.",NOT_SUPPORTED_CAPTURE:"Your browser or environment does not support screen sharing, please check whether the browser version.",MICROPHONE_NOT_FOUND:"no microphone detected, please check your microphone and the configuration on TRTC.createStream.",CAMERA_NOT_FOUND:"no camera detected, please check your camera and the configuration on TRTC.createStream.",SIGNAL_RESPONSE_FAILED:function(e){return"".concat(e.signalResponse," failed, response code is ").concat(e.code," , errMsg: ").concat(e.message,".")},CATCH_HANDLER_ERROR:function(e){var t=e.name,n=e.event;return"an error was caught on ".concat(t,".on('").concat(n,"', handler), please check your code on 'handler'.")},API_NOT_EXIST:function(e){var t=e.name;return"experimental api ".concat(t," does not exist.")},REPEAT_JOIN:function(e){return"[".concat(e,"] is calling client.join api or has already joined room, please avoid repeated join.")},CONNECTION_CLOSED:"remoteStream has been unsubscribed or unpublished by remote user.",SUBSCRIBE_ALL_FALSE:"cannot subscribe when both audio & video are false, use client.unsubscribe() instead",CLIENT_DESTROYED:function(e){var t=e.funName;return"failed to call ".concat(t,"() because client was destroyed.")},SEI_NOT_SUPPORT:function(e){return"not support to sendSEIMessage".concat(!1===e?" without using h264 codec":"")},SEI_DISABLED:"SEI is disabled, to enable SEI: TRTC.createClient({ enableSEI: true })",SEI_EMPTY:"buffer cannot be empty",SEI_OVERSIZE:function(e){return"buffer size(".concat(e,") is over 1000 Bytes")},SEI_BEFORE_PUBLISH:"please call sendSEIMessage() after publish() success",SEI_NOT_VIDEO:"cannot send sei when localStream has not video.",CALL_FREQUENCY_LIMIT:function(e){var t=e.isSize,n=e.name,r=e.timesInSecond,o=e.maxSizeInSecond;return"api ".concat(n," call ").concat(t?"size":"times"," is over ").concat(t?o+" bytes":r," in a second.")},CONNECTION_ABORTED:function(e){return"connection aborted due to: "+e},API_CALL_ABORTED:function(e){return e.message.includes("REMOTE_STREAM_NOT_EXIST")?"Subscribe ".concat(e.stream.getUserId()," ").concat(e.stream.getType()," stream aborted, reason: remote user ").concat(e.stream.getUserId()," unpublished stream."):"API aborted, reason: ".concat(e.message)},DUPLICATE_AUX:"only one auxiliary stream can be published in a room.",NOT_SUPPORTED_AUX:"publish auxiliary stream is not supported on your browser."},jS=E,DS=D,LS=dl,AS=tg.trim,NS=te("".charAt),RS=jS.parseFloat,xS=jS.Symbol,PS=xS&&xS.iterator,US=1/RS("\t\n\v\f\r    \u2028\u2029\ufeff-0")!=-1/0||PS&&!DS((function(){RS(Object(PS))}))?function(e){var t=AS(LS(e)),n=RS(t);return 0===n&&"-"==NS(t,0)?-0:n}:RS;So({global:!0,forced:parseFloat!=US},{parseFloat:US});var VS=window.navigator&&window.navigator.userAgent||"",BS=/AppleWebKit\/([\d.]+)/i.exec(VS);BS&&parseFloat(BS.pop());var FS=/iPad/i.test(VS),GS=navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/Macintosh/.test(VS),HS=/iPhone/i.test(VS)&&!FS,YS=/iPod/i.test(VS),zS=HS||FS||YS||GS,qS=/Android/i.test(VS);qS&&function(){var e=VS.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);t&&n&&parseFloat(e[1]+"."+e[2])}(),qS&&/webkit/i.test(VS);var WS=/Firefox/i.test(VS),KS=WS&&function(){var e=VS.match(/Firefox\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),$S=/Edge\//i.test(VS),JS=$S&&function(){var e=VS.match(/Edge\/(\d+)/i);if(e&&e[1])return e[1]}(),XS=/Edg\//i.test(VS),QS=XS&&function(){var e=VS.match(/Edg\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),ZS=/SogouMobileBrowser\//i.test(VS),eT=ZS&&function(){var e=VS.match(/SogouMobileBrowser\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),tT=/MetaSr\s/i.test(VS),nT=tT&&function(){var e=VS.match(/MetaSr(\s\d+(\.\d+)+)/);return e&&e[1]?parseFloat(e[1]):null}(),rT=/TBS\/\d+/i.test(VS),oT=rT&&function(){var e=VS.match(/TBS\/(\d+)/i);if(e&&e[1])return e[1]}(),aT=/XWEB\/\d+/i.test(VS),iT=aT&&function(){var e=VS.match(/XWEB\/(\d+)/i);if(e&&e[1])return e[1]}();/MSIE\s8\.0/.test(VS),/MSIE\/\d+/i.test(VS)&&function(){var e=/MSIE\s(\d+)\.\d/.exec(VS),t=e&&parseFloat(e[1]);!t&&/Trident\/7.0/i.test(VS)&&/rv:11.0/.test(VS)&&(t=11)}();var sT=/(micromessenger|webbrowser)/i.test(VS),cT=sT&&function(){var e=VS.match(/MicroMessenger\/(\d+)/i);if(e&&e[1])return e[1]}(),lT=!rT&&/MQQBrowser\/\d+/i.test(VS)&&/COVC\/\d+/i.test(VS),uT=!rT&&/MQQBrowser\/\d+/i.test(VS)&&!/COVC\/\d+/i.test(VS),dT=(uT||lT)&&function(){var e=VS.match(/ MQQBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),pT=!rT&&/ QQBrowser\/\d+/i.test(VS),fT=pT&&function(){var e=VS.match(/ QQBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),hT=!rT&&/QQBrowserLite\/\d+/i.test(VS),mT=hT&&function(){var e=VS.match(/QQBrowserLite\/([\d.]+)/);return e&&e[1]?e[1]:null}(),vT=!rT&&/MQBHD\/\d+/i.test(VS),gT=vT&&function(){var e=VS.match(/MQBHD\/([\d.]+)/);return e&&e[1]?e[1]:null}(),_T=/Windows/i.test(VS),bT=!zS&&/MAC OS X/i.test(VS),yT=!qS&&/Linux/i.test(VS);/MicroMessenger/i.test(VS);var OT=/UCBrowser/i.test(VS);/Electron/i.test(VS);var MT,kT,CT=/MiuiBrowser/i.test(VS),wT=CT&&function(){var e=VS.match(/MiuiBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),ST=/HuaweiBrowser/i.test(VS),TT=/Huawei/i.test(VS),IT=ST&&function(){var e=VS.match(/HuaweiBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),ET=/SamsungBrowser/i.test(VS),jT=ET&&function(){var e=VS.match(/SamsungBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),DT=/HeyTapBrowser/i.test(VS),LT=DT&&function(){var e=VS.match(/HeyTapBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),AT=/VivoBrowser/i.test(VS),NT=AT&&function(){var e=VS.match(/VivoBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),RT=function(){var e=VS.match(/Chrome\/(\d+)/);return e&&e[1]?Number(e[1]):null},xT=/Chrome/i.test(VS),PT=!$S&&!tT&&!ZS&&!rT&&!aT&&!XS&&!pT&&!CT&&!ST&&!ET&&!DT&&!AT&&/Chrome/i.test(VS),UT=PT&&RT(),VT=PT&&function(){var e=VS.match(/Chrome\/([\d.]+)/);return e&&e[1]?e[1]:null}(),BT=!xT&&!uT&&!lT&&!hT&&!vT&&/Safari/i.test(VS),FT=function(){if(BT){var e=VS.match(/Version\/([\d.]+)/);if(e&&e[1])return e[1]}return""}(),GT=/Android.*(wv|.0.0.0)/.test(VS),HT=function(){if(GS)return FT;if(zS){var e=VS.match(/OS (\d+)_(\d+)/i);if(e&&e[1]){var t=e[1];return e[2]&&(t+=".".concat(e[2])),t}}return""}(),YT=Number(HT.split(".")[0]),zT="15.1"===FT,qT="15.1"===HT,WT=14===(MT=Number(HT.split(".")[0]))||13===MT,KT="file:"===location.protocol||"localhost"===location.hostname||"127.0.0.1"===location.hostname,$T=function(){if(lI(kT))try{kT=window.localStorage}catch(aK){RE.warn(aK),kT=!1}return kT},JT=new Map([[WS,["Firefox",KS]],[XS,["Edg",QS]],[PT,["Chrome",VT]],[BT,["Safari",FT]],[rT,["TBS",oT]],[aT,["XWEB",iT]],[sT&&HS,["WeChat",cT]],[pT,["QQ(Win)",fT]],[uT,["QQ(Mobile)",dT]],[lT,["QQ(Mobile X5)",dT]],[hT,["QQ(Mac)",mT]],[vT,["QQ(iPad)",gT]],[CT,["MI",wT]],[ST,["HW",IT]],[ET,["Samsung",jT]],[DT,["OPPO",LT]],[AT,["VIVO",NT]],[$S,["EDGE",JS]],[ZS,["SogouMobile",eT]],[tT,["Sogou",nT]]]);function XT(){var e="unknown",t="unknown";return JT.get(!0)&&(e=JT.get(!0)[0],t=JT.get(!0)[1]),{name:e,version:t}}var QT=function(e,t){return t?Xk+"/"+e+"/"+t:Xk+"/"+e+"/index.html"},ZT=function(){if(!$T())return!1;var e=localStorage.getItem(Zk);e&&!function(e){var t=e.saveTime&&(new Date).getTime()-e.saveTime>=Rk,n=!e.saveVersion||e.saveVersion!==No;return t||n}(JSON.parse(e))||(RE.info("init debug info"),function(){var e=new XMLHttpRequest;if(e.open("GET","https://web.sdk.qcloud.com/trtc/webrtc/download/error-message/0.0.3/script.js",!1),e.send(null),4===e.readyState&&200===e.status){var t=document.createElement("script");t.type="text/javascript",t.text=e.responseText,document.body.appendChild(t),localStorage.setItem(Zk,JSON.stringify({message:e.responseText,saveTime:(new Date).getTime(),saveVersion:No})),document.body.removeChild(t)}}())};function eI(e){var t=e.key,n=e.data,r=e.link,o=e.addDocLink,a=void 0===o||o,i="",s="",c="";cI(ES[t])?i=ES[t](n):uI(ES[t])&&(i=ES[t]);var l=function(){if(window.TRTC_ERROR_INFO&&window.TRTC_ERROR_LINK)return{TRTC_ERROR_INFO:window.TRTC_ERROR_INFO,TRTC_ERROR_LINK:window.TRTC_ERROR_LINK};var e=localStorage.getItem(Zk);if(e){e=JSON.parse(e);var t=document.createElement("script");t.type="text/javascript",t.text=e.message,document.body.appendChild(t);var n=window.TRTC_ERROR_INFO,r=window.TRTC_ERROR_LINK;return document.body.removeChild(t),{TRTC_ERROR_INFO:n,TRTC_ERROR_LINK:r}}return{}}(),u=l.TRTC_ERROR_INFO,d=l.TRTC_ERROR_LINK;r?c="".concat(r.className,".html#").concat(r.fnName):d&&d[t]&&(cI(d[t])?c=d[t](n):uI(d[t])&&(c=d[t]));var p=i;return MI()&&(u&&u[t]&&(cI(u[t])?s=u[t](n):uI(u[t])&&(s=u[t])),s&&(p=a?s+"\n请查看文档: "+QT("zh-cn",c)+"\n\n":s+"\n\n",p+=i)),a&&(p+=" \nRefer to: "+QT("en",c)+"\n"),p}var tI=function(){return function(e){var t=window.location.search.match(new RegExp("(\\?|&)"+e+"=([^&]*)(&|$)"));return t?decodeURIComponent(t[2]):""}("trtc_env")},nI=function(e){return(e=Number(e))>0&&e<14e8},rI=function(e,t){var n;n=hM?hM.includes("http")?hM:"https://"+hM:nI(e)?"https://apisgp.my-imcloud.com":"https://yun.tim.qq.com";var r=Math.floor(Math.random()*Math.pow(2,31));return"".concat(n,"/v5/AVQualityReportSvc/C2S?random=").concat(r,"&sdkappid=").concat(e,"&cmdtype=").concat(t)};function oI(){var e=navigator.userAgent,t=navigator.connection,n=e.match(/NetType\/\w+/)?e.match(/NetType\/\w+/)[0]:"";"3gnet"===(n=n.toLowerCase().replace("nettype/",""))&&(n="3g");var r=t&&t.type&&t.type.toLowerCase(),o=t&&t.effectiveType&&t.effectiveType.toLowerCase();"slow-2"===o&&(o="2g");var a=n||"unknown";if(r)switch(r){case"cellular":case"wimax":a=o||"unknown";break;case"wifi":a="wifi";break;case"ethernet":a="wired";break;case"none":case"other":case"unknown":a="unknown"}return a}var aI=function(e){if(!e||"object"!==o(e)||"[object Object]"!=Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Function.prototype.toString.call(n)===Function.prototype.toString.call(Object)};function iI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<=1?n:iI(e-1,n,t+n)}function sI(e){var t=Math.round(e/2)+1;return t>6?13e3:1e3*iI(t)}var cI=function(e){return"function"==typeof e},lI=function(e){return void 0===e},uI=function(e){return"string"==typeof e},dI=function(e){return"number"==typeof e},pI=function(e){return"boolean"==typeof e},fI=function(e){return"object"===vI(e)},hI=function(e){return"array"===vI(e)},mI=function(e){return vI(e)==="MediaStreamTrack".toLowerCase()};function vI(e){return Reflect.apply(Object.prototype.toString,e,[]).replace(/^\[object\s(\w+)\]$/,"$1").toLowerCase()}function gI(e){var t={};return t.urls="turn:".concat(e.url),lI(e.username)||lI(e.credential)||(t.username=e.username,t.credential=e.credential,t.credentialType="password",lI(e.credentialType)||(t.credentialType=e.credentialType)),t}function _I(){return performance&&performance.now?Math.floor(performance.now()):Date.now()}function bI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"big";if(!uI(e))return 0;var n=e.split(".");return"big"===t?(Number(n[0])<<24|Number(n[1])<<16|Number(n[2])<<8|Number(n[3]))>>>0:(Number(n[3])<<24|Number(n[2])<<16|Number(n[1])<<8|Number(n[0]))>>>0}var yI,OI,MI=function(){var e=navigator.language||navigator.userLanguage;return"zh"===e.substr(0,2)},kI=(yI=!1,OI=document.visibilityState,function(){document.visibilityState!==OI&&RE.info("visibility change: ".concat(document.visibilityState)),yI||(document.addEventListener("visibilitychange",(function(){RE.info("visibility change: "+document.visibilityState),OI=document.visibilityState})),yI=!0)});window.AudioContext=window.AudioContext||window.webkitAudioContext||window.mozAudioContext;var CI=function(){return new window.AudioContext},wI=function(){var e;return function(){return e||(e=new window.AudioContext,e.onstatechange=function(){RE.info("gain context state: ".concat(e.state)),"suspended"===e.state?(e.resume(),document.addEventListener("click",e.resume)):"interrupted"===e.state?e.resume():document.removeEventListener("click",e.resume)},e)}}(),SI=!!window.AudioWorkletNode,TI=function(e,t){var n=e.emit;return e.emit=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];try{n.apply(e,o)}catch(aK){var i=eI({key:mS,data:{name:t,event:o[0]},addDocLink:!1});RE.warn(i+"\n\n"+aK.stack)}},e},II=function(e){return+e<10?"0".concat(e):e},EI=function(e){var t=e.match(/^\d+\.\d+\.\d+/)[0];if(!t)return e;var n=t.split("."),r=II(n[1])+II(n[2]);return n[1]-15>0&&(n[1]="15"),n[2]-15>0&&(n[2]="15"),n.join(".")+"."+r};function jI(e,t){try{if(hI(e))return"[".concat(e.map((function(e){return jI(e,t)})).join(","),"]");if(!aI(e)||!hI(t))return JSON.stringify(e);var n={},r=new Set(t);return Object.keys(e).forEach((function(t){r.has(t)&&(n[t]=e[t])})),JSON.stringify(n)}catch(aK){return"{}"}}function DI(e){var t=e.url,n=e.body,r=e.method,o=e.timeout,a=new XMLHttpRequest;return new Promise((function(e,i){a.onload=function(t){if(a.status>=200&&a.status<300&&a.responseText.length>0)try{var n=JSON.parse(a.response);e({data:n})}catch(aK){e({data:a.response})}else a.status>0&&i({code:a.status,message:"request failed, readyState:".concat(a.readyState," status:").concat(a.status," loaded size:").concat(t.loaded)})};var s=function(e){i({code:a.readyState,message:"request ".concat(e.type,", readyState:").concat(a.readyState," status:").concat(a.status," loaded size:").concat(e.loaded)})};a.onerror=s,a.onabort=s,a.ontimeout=s,a.timeout=o||5e3,a.open(r||"POST",t,!0),a.send(n)}))}var LI={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,a||e,i),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,a=r.length,i=new Array(a);o<a;o++)i[o]=r[o].fn;return i},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,a,i){var s=n?n+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,a),!0;case 6:return u.fn.call(u.context,t,r,o,a,i),!0}for(l=1,c=new Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var p,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!c)for(p=1,c=new Array(d-1);p<d;p++)c[p-1]=arguments[p];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||i(this,a);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&l.push(s[c]);l.length?this._events[a]=1===l.length?l[0]:l:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(LI);var AI=LI.exports,NI=new AI,RI=1,xI=2,PI=3,UI=4,VI=5,BI=20,FI=21,GI=22,HI=23,YI=24,zI=27,qI=28,WI=29,KI=30,$I=31,JI=32,XI=33,QI=40,ZI=41,eE=52,tE=100,nE=101,rE=102,oE=103,aE=110,iE=111,sE=112,cE=113,lE=114,uE=115,dE=116,pE=120,fE=121,hE=122,mE=123,vE=130,gE=131,_E=132,bE=133,yE=134,OE=135,ME=136,kE=137,CE=200,wE=201,SE=300,TE=301,IE=302,EE=303;function jE(e){var t=e.retryFunction,n=e.settings,o=e.onError,a=e.onRetrying,s=e.onRetryFailed,c=e.onRetrySuccess,l=e.context;return function(){for(var e=this,u=arguments.length,d=new Array(u),p=0;p<u;p++)d[p]=arguments[p];var f=n.retries||5,h=0,m=-1,v=0,g=function(){var u=i(r().mark((function i(u,p){var _,b,y,O;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return _=l||e,r.prev=1,r.next=4,t.apply(_,d);case 4:b=r.sent,0!==h&&cI(c)&&c.call(_,h),h=0,u(b),r.next=15;break;case 10:r.prev=10,r.t0=r.catch(1),y=function(){clearTimeout(m),h=0,v=2,p(r.t0)},O=function(){2!==v&&h<f?(h++,v=1,cI(a)&&a.call(_,h,y),m=setTimeout((function(){m=-1,g(u,p)}),lI(n.timeout)?1e3:n.timeout)):(y(),cI(s)&&s.call(_,r.t0))},cI(o)?o.call(_,r.t0,O,p,d,h):O();case 15:case"end":return r.stop()}}),i,null,[[1,10]])})));return function(e,t){return u.apply(this,arguments)}}();return new Promise(g)}}var DE=l((function e(t){s(this,e),this.log=t.log,this.level=t.level,this.userId=t.userId,this.sdkAppId=t.sdkAppId,this.forAllJoinedClients=t.forAllJoinedClients,this.uploaded=!1})),LE=function(){function e(t){s(this,e),this.id_=t.id,this.userId_=t.userId,this.sdkAppId_=t.sdkAppId,this.type_=t.type,this.isLocal_=!pI(t.isLocal)||t.isLocal}return l(e,[{key:"setUserId",value:function(e){this.userId_=e}},{key:"setSdkAppId",value:function(e){this.sdkAppId_=e}},{key:"log",value:function(e,t){RE.log({log:"[".concat(this.isLocal_?"↑":"↓").concat(this.id_,"] ").concat(this.type_?this.type_+" ":"").concat(t),level:e,forAllJoinedClients:lI(this.userId_),userId:this.userId_,sdkAppId:this.sdkAppId_})}},{key:"info",value:function(e){this.log(nC.INFO,e)}},{key:"debug",value:function(e){this.log(nC.DEBUG,e)}},{key:"warn",value:function(e){this.log(nC.WARN,e)}},{key:"error",value:function(e){this.log(nC.ERROR,e)}}]),e}(),AE=!(zS||qS),NE=function(){function e(){var t=this;s(this,e),this.clients_=new Set,this.queue_=[],this.timeoutId_=-1,this.logLevel_=nC.DEBUG,this.logLevelToUpload_=nC.INFO,this.enableUploadLog_=!0,this.isAbleToUpload_=!1,this.checkURLParam(),NI.on(KI,(function(e){var n=e.client;-1===t.timeoutId_&&t.startUpload(),t.clients_.add(n)})),NI.on(XI,(function(e){var n=e.client;return t.clients_.delete(n)})),NI.on($I,(function(e){e&&aI(e.config)&&sC[e.config.logLevelToUpload]&&(t.logLevelToUpload_=e.config.logLevelToUpload)})),NI.on(UI,this.setIsAbleToUpload,this),NI.on(VI,this.setIsAbleToUpload,this)}var t,n;return l(e,[{key:"getIsAbleToUpload",value:function(){return this.isAbleToUpload_}},{key:"setIsAbleToUpload",value:function(){this.isAbleToUpload_=!0,NI.off(UI,this.setIsAbleToUpload,this),NI.off(VI,this.setIsAbleToUpload,this)}},{key:"startUpload",value:(n=i(r().mark((function e(){var t=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.upload();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:this.timeoutId_=setTimeout((function(){return t.startUpload()}),2e3);case 8:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(){return n.apply(this,arguments)})},{key:"getLogsToUpload",value:function(){var e=this,t={map:new Map,splicedQueue:[]};if(this.queue_[0].forAllJoinedClients&&0===this.clients_.size)return t;for(var n=0,r=function(){if(50===n)return"break";var r=e.queue_[n];if(r.forAllJoinedClients){var o=new Set;e.clients_.forEach((function(e){if(e.getIsJoined()){var n=e.getUserId(),a=e.getSDKAppId();o.has("".concat(n,"-").concat(a))||(o.add("".concat(n,"-").concat(a)),t.map.has(n)?t.map.get(n).logs.push(r):t.map.set(n,{userId:n,sdkAppId:a,logs:[r]}))}}))}else t.map.has(r.userId)?t.map.get(r.userId).logs.push(r):t.map.set(r.userId,{userId:r.userId,sdkAppId:r.sdkAppId,logs:[r]})};n<this.queue_.length;n++)if("break"===r())break;return t.map.size>0&&(t.splicedQueue=this.queue_.splice(0,n)),t}},{key:"upload",value:(t=i(r().mark((function e(){var t,n,o,a,i,s,c,l,u,d;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this.queue_.length&&this.isAbleToUpload_){e.next=2;break}return e.abrupt("return");case 2:if(t=this.getLogsToUpload(),n=t.map,o=t.splicedQueue,0!==n.size){e.next=5;break}return e.abrupt("return");case 5:e.prev=5,a=M(n.values()),i=0;case 8:if(!(i<a.length)){e.next=16;break}return s=a[i],c=s.userId,l=s.sdkAppId,u=s.logs,e.next=12,this.uploadLogWithRetry(JSON.stringify({timestamp:qm(),sdkAppId:String(l),userId:c,version:No,log:u.map((function(e){return e.log})).join("\n")}),l);case 12:u.forEach((function(e){return e.uploaded=!0}));case 13:i++,e.next=8;break;case 16:e.next=20;break;case 18:e.prev=18,e.t0=e.catch(5);case 20:d=o.filter((function(e){return!e.uploaded})),d.length>0&&(this.queue_=d.concat(this.queue_));case 22:case"end":return e.stop()}}),e,this,[[5,18]])}))),function(){return t.apply(this,arguments)})},{key:"uploadLogWithRetry",value:function(e,t){return jE({retryFunction:function(){return DI({url:rI(t,mM),body:e,timeout:5e3})},settings:{retries:3,timeout:1e3},onError:function(e,t){t()}})()}},{key:"getPrefix",value:function(e){var t=new Date;return t.setTime(zm()),String.prototype.padStart?"[".concat(t.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1"),":").concat(t.getMilliseconds().toString().padStart(3,"0"),"] <").concat(sC[e],">"):"[".concat(t.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1"),":").concat(t.getMilliseconds(),"] <").concat(sC[e],">")}},{key:"getLogLevel",value:function(){return this.logLevel_}},{key:"setLogLevel",value:function(e){lI(sC[e])||(this.logLevel_!==e&&this.info("setLogLevel ".concat(e)),this.logLevel_=e)}},{key:"enableUploadLog",value:function(){this.enableUploadLog_=!0}},{key:"disableUploadLog",value:function(){this.enableUploadLog_=!1}},{key:"log",value:function(e){var t=e.log,n=e.level,r=e.forAllJoinedClients,o=void 0===r||r,a=e.userId,i=e.sdkAppId;if(t="".concat(this.getPrefix(n)," ").concat(t),this.enableUploadLog_&&n>=this.logLevelToUpload_&&this.queue_.push(new DE({log:t,level:n,userId:a,sdkAppId:i,forAllJoinedClients:o})),!(n<this.logLevel_)){var s=sC[n]?sC[n].toLowerCase():"info";AE?console[s]("%cTRTC%c%s","padding: 1px 4px;border-radius: 3px;color: #fff;background: #1E88E5;","display: inline",t):console[s](t)}}},{key:"debug",value:function(e){this.log({log:e,level:nC.DEBUG})}},{key:"info",value:function(e){this.log({log:e,level:nC.INFO})}},{key:"warn",value:function(e){this.log({log:e,level:nC.WARN})}},{key:"error",value:function(e){this.log({log:e,level:nC.ERROR})}},{key:"createLogger",value:function(e){return new LE(e)}},{key:"checkURLParam",value:function(){var e=new URLSearchParams(location.search).get("logLevelToUpload");sC[e]&&(this.logLevelToUpload_=e)}}]),e}(),RE=new NE,xE=!0,PE=ye,UE=Math.floor,VE=Number.isInteger||function(e){return!PE(e)&&isFinite(e)&&UE(e)===e};So({target:"Number",stat:!0},{isInteger:VE});var BE,FE=So,GE=te,HE=j.f,YE=Rr,zE=dl,qE=Ng,WE=ue,KE=xg,$E=GE("".startsWith),JE=GE("".slice),XE=Math.min,QE=KE("startsWith");FE({target:"String",proto:!0,forced:!(!QE&&(BE=HE(String.prototype,"startsWith"),BE&&!BE.writable))&&!QE},{startsWith:function(e){var t=zE(WE(this));qE(e);var n=YE(XE(arguments.length>1?arguments[1]:void 0,t.length)),r=zE(e);return $E?$E(t,r,n):JE(t,n,n+r.length)===r}});var ZE=L,ej=te,tj=x,nj=D,rj=Uo,oj=Qr,aj=P,ij=pt,sj=ie,cj=Object.assign,lj=Object.defineProperty,uj=ej([].concat),dj=!cj||nj((function(){if(ZE&&1!==cj({b:1},cj(lj({},"a",{enumerable:!0,get:function(){lj(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=cj({},e)[n]||rj(cj({},t)).join("")!=r}))?function(e,t){for(var n=ij(e),r=arguments.length,o=1,a=oj.f,i=aj.f;r>o;)for(var s,c=sj(arguments[o++]),l=a?uj(rj(c),a(c)):rj(c),u=l.length,d=0;u>d;)s=l[d++],ZE&&!tj(i,c,s)||(n[s]=c[s]);return n}:cj,pj=dj;So({target:"Object",stat:!0,arity:2,forced:Object.assign!==pj},{assign:pj});var fj=te,hj=Ke,mj=ye,vj=mt,gj=$l,_j=A,bj=Function,yj=fj([].concat),Oj=fj([].join),Mj={},kj=function(e,t,n){if(!vj(Mj,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";Mj[t]=bj("C,a","return new C("+Oj(r,",")+")")}return Mj[t](e,n)},Cj=_j?bj.bind:function(e){var t=hj(this),n=t.prototype,r=gj(arguments,1),o=function(){var n=yj(r,gj(arguments));return this instanceof o?kj(t,n.length,n):t.apply(e,n)};return mj(n)&&(o.prototype=n),o},wj=Cj;So({target:"Function",proto:!0,forced:Function.bind!==wj},{bind:wj});var Sj=So,Tj=Vu.findIndex,Ij=fa,Ej="findIndex",jj=!0;Ej in[]&&Array(1).findIndex((function(){jj=!1})),Sj({target:"Array",proto:!0,forced:jj},{findIndex:function(e){return Tj(this,e,arguments.length>1?arguments[1]:void 0)}}),Ij(Ej);var Dj=L,Lj=te,Aj=Uo,Nj=fe,Rj=Lj(P.f),xj=Lj([].push),Pj=function(e){return function(t){for(var n,r=Nj(t),o=Aj(r),a=o.length,i=0,s=[];a>i;)n=o[i++],Dj&&!Rj(r,n)||xj(s,e?[n,r[n]]:r[n]);return s}},Uj={entries:Pj(!0),values:Pj(!1)}.values;So({target:"Object",stat:!0},{values:function(e){return Uj(e)}});var Vj=1,Bj=5,Fj=2,Gj=3,Hj=4,Yj="DISCONNECTED",zj="CONNECTING",qj="RECONNECTING",Wj="CONNECTED",Kj={CLIENT_BANNED:9,CHANNEL_SETUP_RESULT:19,CHANNEL_RECONNECT_RESULT:514,JOIN_ROOM_RESULT:20,PEER_JOIN:4134,PEER_LEAVE:4135,STREAM_ADDED:16,STREAM_REMOVED:18,UPLINK_NETWORK_STATS:22,UPDATE_REMOTE_MUTE_STAT:23,PUBLISH_RESULT:4098,PUBLISH_STATE_CHANGE_RESULT:4112,UNPUBLISH_RESULT:4100,SUBSCRIBE_RESULT:4102,UNSUBSCRIBE_RESULT:4104,SUBSCRIBE_CHANGE_RESULT:4106,MUTE_RESULT:4108,UPDATE_OFFER_RESULT:4128,START_PUBLISH_TENCENT_CDN_RES:1286,STOP_PUBLISH_TENCENT_CDN_RES:1288,START_PUBLISH_GIVEN_CDN_RES:777,STOP_PUBLISH_GIVEN_CDN_RES:779,START_MIX_TRANSCODE_RES:781,STOP_MIX_TRANSCODE_RES:783,USER_LIST_RES:4137,SWITCH_ROLE_RES:4110,UPDATE_CONSTRAINT_CONFIG_RES:772,CONNECT_OTHER_ROOM_RES:8209,DISCONNECT_OTHER_ROOM_RES:8211,UPDATE_OTHER_ROOM_FORWARD_MODE_RES:8213},$j=[Kj.UPDATE_REMOTE_MUTE_STAT,Kj.UPLINK_NETWORK_STATS,Kj.USER_LIST_RES,Kj.MUTE_RESULT],Jj={CLIENT_BANNED:"client-banned",CHANNEL_SETUP_RESULT:"channel-setup-result",CHANNEL_RECONNECT_RESULT:"channel-reconnect-result",JOIN_ROOM_RESULT:"join-room-result",PEER_JOIN:"peer-join",PEER_LEAVE:"peer-leave",STREAM_ADDED:"stream-added",STREAM_REMOVED:"stream-removed",UPLINK_NETWORK_STATS:"uplink-network-stats",UPDATE_REMOTE_MUTE_STAT:"update-remote-mute-stat",PUBLISH_RESULT:"publish-result",PUBLISH_STATE_CHANGE_RESULT:"publish-state-change-result",UNPUBLISH_RESULT:"unpublish-result",SUBSCRIBE_RESULT:"subscribe-result",SUBSCRIBE_CHANGE_RESULT:"subscribe-change-result",UNSUBSCRIBE_RESULT:"unsubscribe-result",UPDATE_OFFER_RESULT:"update-offer-result",START_PUBLISH_TENCENT_CDN_RES:"start-publish-tencent-cdn-res",STOP_PUBLISH_TENCENT_CDN_RES:"stop-publish-tencent-cdn-res",START_PUBLISH_GIVEN_CDN_RES:"start-publish-given-cdn-res",STOP_PUBLISH_GIVEN_CDN_RES:"stop-publish-given-cdn-res",START_MIX_TRANSCODE_RES:"start-mix-transcode-res",STOP_MIX_TRANSCODE_RES:"stop-mix-transcode-res",USER_LIST_RES:"user-list-res",SWITCH_ROLE_RES:"switch_role_res",MUTE_RESULT:"mute-result",UPDATE_CONSTRAINT_CONFIG_RES:"update-contraint-config-res",CONNECT_OTHER_ROOM_RES:"connect_other_room_res",UPDATE_OTHER_ROOM_FORWARD_MODE_RES:"update_other_room_forward_mode_res",DISCONNECT_OTHER_ROOM_RES:"disconnect_other_room_res"},Xj="publish_change",Qj="publish_state_change",Zj="join",eD="leave",tD="quality_report",nD="mute_uplink",rD="publish",oD="unpublish",aD="subscribe",iD="unsubscribe",sD="subscribe_change",cD="start_publishing",lD="stop_publishing",uD="start_push_user_cdn",dD="stop_push_user_cdn",pD="start_mcu_mix",fD="stop_mcu_mix",hD="get_user_list",mD="change_role",vD="update_constraint_config",gD="connect_other_room",_D="update_other_room_forward_mode",bD="disconnect_other_room",yD={INVALID_PARAMETER:4096,INVALID_OPERATION:4097,NOT_SUPPORTED:4098,DEVICE_NOT_FOUND:4099,INITIALIZE_FAILED:4100,SIGNAL_CHANNEL_SETUP_FAILED:16385,SIGNAL_CHANNEL_ERROR:16386,ICE_TRANSPORT_ERROR:16387,JOIN_ROOM_FAILED:16388,CREATE_OFFER_FAILED:16389,SIGNAL_CHANNEL_RECONNECTION_FAILED:16390,UPLINK_RECONNECTION_FAILED:16391,DOWNLINK_RECONNECTION_FAILED:16392,REMOTE_STREAM_NOT_EXIST:16400,CLIENT_BANNED:16448,SERVER_TIMEOUT:16449,SUBSCRIPTION_TIMEOUT:16450,PLAY_NOT_ALLOWED:16451,DEVICE_AUTO_RECOVER_FAILED:16452,START_PUBLISH_CDN_FAILED:16453,STOP_PUBLISH_CDN_FAILED:16454,START_MIX_TRANSCODE_FAILED:16455,STOP_MIX_TRANSCODE_FAILED:16456,NOT_SUPPORTED_H264:16457,SWITCH_ROLE_FAILED:16458,API_CALL_TIMEOUT:16459,SCHEDULE_FAILED:16460,API_CALL_ABORTED:16461,UNKNOWN:65535},OD=function(e){d(n,e);var t=_(n);function n(e){var r,o=e.name,a=void 0===o?"RtcError":o,i=e.message,c=e.code,l=void 0===c?yD.UNKNOWN:c,u=e.extraCode,d=void 0===u?0:u,p=e.constraint;s(this,n);var f="<".concat(function(e){for(var t in yD)if(yD[t]===e)return t;return"UNKNOWN"}(l)," 0x").concat(l.toString(16),">");return(r=t.call(this,i+"".concat(p?" constraint: ".concat(p):"")+"".concat(null!=i&&i.includes(f)?"":" "+f))).code_=l,r.extraCode_=d,r.name=a,r.message_=i,p&&(r.constraint=p),r}return l(n,[{key:"getCode",value:function(){return this.code_}},{key:"getExtraCode",value:function(){return this.extraCode_}}]),n}(v(Error)),MD=32768,kD=32769,CD=32770,wD=32771,SD=32772,TD=32773,ID=32774,ED=32775,jD=32777,DD=32778,LD=32779,AD=32780,ND=32781,RD=32782,xD=32783,PD=32784,UD=32785,VD=32786,BD=32787,FD=32788,GD=32789,HD=32790,YD=32791,zD=32792,qD=32793,WD=32794,KD=32795,$D=32796,JD=32797,XD=32798,QD=32799,ZD=32800,eL=32801,tL=32802,nL=32803,rL=32804,oL=new Map,aL=function(e,t){var n=oL.get(e);n||(oL.set(e,[]),n=oL.get(e)),n.push(t)},iL=function(e){var t=oL.get(e),n=[];return t?(oL.delete(e),n=t.map((function(e){return{uint32_event_id:e.eventId,uint64_date:e.timestamp,str_userid:e.remoteUserId,str_event_json:e.eventDesc}}))):n=[],n},sL=Object.prototype.hasOwnProperty;function cL(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(aI(e))switch(Object.prototype.toString.call(e)){case"[object File]":case"[object Map]":case"[object Set]":return 0===e.size;case"[object Object]":for(var t in e)if(sL.call(e,t))return!1;return!0}return!1}var lL=function(){function e(){s(this,e);var t=XT(),n=t.name,r=t.version;this.roomIdMap_=new Map,this.configs_={sdkAppId:"",userId:"",version:No,env:dM,browserVersion:n+r,ua:navigator.userAgent}}return l(e,[{key:"setConfig",value:function(e){var t=e.sdkAppId,n=e.env,r=e.userId,o=e.roomId;t!==this.configs_.sdkAppId&&(this.configs_.sdkAppId=String(t)),this.configs_.env=n,this.configs_.userId=r,this.roomIdMap_.set(r,String(o))}},{key:"logEvent",value:function(e){if(!KT){var t=n(n(n({},e),this.configs_),{},{userId:e.userId||this.configs_.userId});lI(t.code)&&(t.code="failed"===t.result?yD.UNKNOWN:0),this.sendRequest(rI(this.configs_.sdkAppId,vM),t)}}},{key:"logSuccessEvent",value:function(e){KT||(this.logEvent(n(n({},e),{},{result:"success",roomId:this.roomIdMap_.get(e.userId)})),this.configs_.env===dM&&this.uploadEventToKibana(n(n({},e),{},{result:"success"})))}},{key:"logFailedEvent",value:function(e){if(!KT){var t=e.eventType,r=e.code,o=e.error,a=e.userId,i={roomId:this.roomIdMap_.get(a),userId:a,eventType:t,result:"failed",code:r||(o instanceof OD?o.getExtraCode()||o.getCode():yD.UNKNOWN)};this.logEvent(i),this.configs_.env===dM&&this.uploadEventToKibana(n(n({},i),{},{error:o}))}}},{key:"uploadEventToKibana",value:function(e){var t="stat-".concat(e.eventType,"-").concat(e.result);"delta-join"!==e.eventType&&"delta-leave"!==e.eventType&&"delta-publish"!==e.eventType||(t="".concat(e.eventType,":").concat(e.delta)),this.uploadEvent({log:t,userId:e.userId}),"failed"===e.result&&(t="stat-".concat(e.eventType,"-").concat(e.result,"-").concat(e.code),this.uploadEvent({log:t,userId:e.userId,error:e.error}))}},{key:"uploadEvent",value:function(e){var t=e.log,n=e.userId,r=e.error,o={timestamp:qm(),sdkAppId:this.configs_.sdkAppId,userId:n||this.configs_.userId,version:this.configs_.version,log:t};r&&(o.errorInfo=r.message),this.sendRequest(rI(this.configs_.sdkAppId,mM),o)}},{key:"sendRequest",value:function(e,t){var n=this;RE.getIsAbleToUpload()?DI({url:e,body:JSON.stringify(t)}).catch((function(){})):setTimeout((function(){n.sendRequest(e,t)}),1e3)}}]),e}(),uL=new lL,dL=pt,pL=Vt;So({target:"Date",proto:!0,arity:1,forced:D((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=dL(this),n=pL(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}});var fL=x;So({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return fL(URL.prototype.toString,this)}});var hL=So,mL=te,vL=Ir,gL=qv,_L=ap,bL=D,yL=RangeError,OL=String,ML=Math.floor,kL=mL(_L),CL=mL("".slice),wL=mL(1..toFixed),SL=function(e,t,n){return 0===t?n:t%2==1?SL(e,t-1,n*e):SL(e*e,t/2,n)},TL=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=ML(o/1e7)},IL=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=ML(r/t),r=r%t*1e7},EL=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=OL(e[t]);n=""===n?r:n+kL("0",7-r.length)+r}return n};hL({target:"Number",proto:!0,forced:bL((function(){return"0.000"!==wL(8e-5,3)||"1"!==wL(.9,0)||"1.25"!==wL(1.255,2)||"1000000000000000128"!==wL(0xde0b6b3a7640080,0)}))||!bL((function(){wL({})}))},{toFixed:function(e){var t,n,r,o,a=gL(this),i=vL(e),s=[0,0,0,0,0,0],c="",l="0";if(i<0||i>20)throw yL("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return OL(a);if(a<0&&(c="-",a=-a),a>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(a*SL(2,69,1))-69)<0?a*SL(2,-t,1):a/SL(2,t,1),n*=4503599627370496,(t=52-t)>0){for(TL(s,0,n),r=i;r>=7;)TL(s,1e7,0),r-=7;for(TL(s,SL(10,r,1),0),r=t-1;r>=23;)IL(s,1<<23),r-=23;IL(s,1<<r),TL(s,1,1),IL(s,2),l=EL(s)}else TL(s,0,n),TL(s,1<<-t,0),l=EL(s)+kL("0",i);return i>0?c+((o=l.length)<=i?"0."+kL("0",i-o)+l:CL(l,0,o-i)+"."+CL(l,o-i)):c+l}});var jL=null,DL=!0;function LL(e){pI(e)&&e!==DL&&(DL=e,RE.info("setIsNeedToSchedule "+e))}function AL(e,t){try{if(PerformanceObserver){var n=_I(),r=PL(e,qO),o=PL(e,WO),a=new PerformanceObserver((function(e){e.getEntries().forEach((function(e){if(e.startTime>=n&&(e.name===r||e.name===o)){var i=e.name===r?qO:WO;if(e.code&&200!==e.code)return void RE.warn("".concat(i," schedule with code ").concat(e.code,", ").concat(JSON.stringify(e.toJSON())));var s=e.responseEnd-e.startTime,c=[e.domainLookupStart-e.startTime,e.domainLookupEnd-e.domainLookupStart,e.requestStart-e.secureConnectionStart,e.secureConnectionStart-e.connectStart,e.responseStart-e.requestStart,e.responseEnd-e.responseStart].map((function(e){return e.toFixed(1)}));a.disconnect(),uL.uploadEvent({log:"stat-schedule-net:".concat(s.toFixed(1),"(").concat(c.join("->"),") ").concat(i),userId:t})}}))}));a.observe({type:"resource",buffered:!0})}}catch(aK){}}function NL(e){return RL.apply(this,arguments)}function RL(){return RL=i(r().mark((function e(t){var n,o,a,i,s,c,l,u,d,p,f,h,m;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.userId,o=t.sdkAppId,a=t.useStringRoomId,i=t.roomId,s=t.userSig,DL||!jL){e.next=3;break}return e.abrupt("return",{isCached:!0,result:jL});case 3:return c={delta:0,count:[1,1],msg:[]},e.prev=4,(l=new FormData).append("userId",String(n)),l.append("sdkAppId",String(o)),l.append("isStrGroupId",a),l.append("groupId",String(i)),l.append("sdkVersion",No),l.append("userSig",String(s)),Bk&&l.append("oversea",!0),AL(o,n),u=_I(),e.next=17,BL(l,c,o);case 17:return(d=e.sent).config&&(d.config.loggerDomain&&_M(d.config.loggerDomain),pI(d.config.scheduleCache)&&LL(!d.config.scheduleCache)),c.delta=_I()-u,xL({stat:c,userId:n}),jL=d,e.abrupt("return",{isCached:!1,result:d});case 25:throw e.prev=25,e.t0=e.catch(4),p=hI(e.t0)?e.t0[0]:e.t0,f=dI(p.code)?p.code:0,h="schedule failed".concat(p.message?": ".concat(p.message):""),m=new OD({code:yD.SCHEDULE_FAILED,extraCode:f,message:eI({key:KC,data:{error:h,code:f}})}),RE.error(m),xL({stat:c,userId:n,roomId:i,error:m}),m;case 34:case"end":return e.stop()}}),e,null,[[4,25]])}))),RL.apply(this,arguments)}function xL(e){var t=e.stat,n=e.userId,r=e.error;r?uL.logFailedEvent({eventType:mk,error:r,userId:n}):uL.logSuccessEvent({eventType:mk,delta:t.delta,userId:n}),uL.uploadEvent({log:"stat-schedule:"+JSON.stringify(t),userId:n})}function PL(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qO;return t=Bk||(nI(e)?n===qO?Uk:Vk:n===qO?xk:Pk),"https://".concat(t,"/api/v1/config")}function UL(e,t,n){return new Promise((function(r,o){DI({url:e,body:t,timeout:n.timeout}).then((function(e){0===e.data.code?r(e.data.data):o({code:e.data.code,message:e.data.msg})})).catch(o)}))}NI.on(VI,(function(){return LL(!0)})),NI.on(ZI,(function(){return LL(!0)})),NI.on(eE,(function(){return LL(!0)})),NI.on(QI,(function(){return LL(!0)})),NI.on(CE,(function(e){e.state===NM&&LL(!0)}));var VL=function(e,t){return jE({retryFunction:UL,settings:{retries:3,timeout:0},onError:t,onRetrying:e})};function BL(e,t,n){return new Promise((function(r,o){var a,i=null;(a=[VL((function(e){return t.count[0]=e+1}),(function(e,n){t.msg[0]=e.message,i||n()}))(PL(n,qO),e,{get timeout(){return 1e3*iI(2+t.count[0])}}),VL((function(e){return t.count[1]=e+1}),(function(e,n){t.msg[1]=e.message,i||n()}))(PL(n,WO),e,{get timeout(){return 1e3*iI(2+t.count[1])}})],new Promise((function(e,t){var n=[];a.forEach((function(r){r.then(e).catch((function(e){n.push(e),n.length===a.length&&t(n)}))}))}))).then((function(e){r(i=e)})).catch(o)}))}var FL=function(){function e(t){s(this,e),this.client_=t.client,this.sdkAppId_=t.sdkAppId,this.userId_=t.userId,this.userSig_=t.userSig,this.url_=t.url,this.backupUrl_=t.backupUrl;var n="?sdkAppId=".concat(encodeURIComponent(this.sdkAppId_),"&userId=").concat(encodeURIComponent(this.userId_),"&userSig=").concat(encodeURIComponent(this.userSig_),"&roomId=").concat(encodeURIComponent(t.roomId)),r=this.client_.getSystemResult();if(r&&r.detail){var o=r.detail,a=o.isH264EncodeSupported,i=o.isVp8EncodeSupported,c=o.isH264DecodeSupported,l=o.isVp8DecodeSupported;n+="&enc264=".concat(Number(a),"&dec264=").concat(Number(c),"&encVp8=").concat(Number(i),"&decVp8=").concat(Number(l))}t.signalDomainWhenUnifiedProxy&&(n+="&signalDomain=".concat(encodeURIComponent(t.signalDomainWhenUnifiedProxy))),this.urlParams=n,this.isConnected_=!1,this.isConnecting_=!1,this.socketInUse_=null,this.socket_=null,this.backupSocket_=null,this.backupTimer_=-1,this.signalInfo_={},this.currentState_=Yj,this.reconnectionCount_=0,this.reconnectionTimer_=-1,this.lastMessageTime_=-1,this.seq_=0,this.log_=RE.createLogger({id:"ws|"+this.userId_,userId:this.userId_,sdkAppId:this.sdkAppId_}),this.emitter_=new AI}var t,n;return l(e,[{key:"urlWithParam_",get:function(){return"".concat(this.url_).concat(this.urlParams)}},{key:"backupUrlWithParam_",get:function(){return"".concat(this.backupUrl_).concat(this.urlParams)}},{key:"isOnline",get:function(){return this.currentState_===Wj&&Date.now()-this.lastMessageTime_<12e3}},{key:"connect",value:function(){var e=this;return new Promise((function(t,n){e.log_.info("connect to url: ".concat(e.urlWithParam_)),e.emitConnectionStateChanged(zj),e.socket_=new WebSocket(e.urlWithParam_),e.bindSocket(e.socket_),e.backupTimer_=setTimeout((function(){e.isConnected_||(e.log_.info("trying to connect to backupUrl"),e.tryConnectBackup())}),5e3);var r=setTimeout((function(){e.close(),n(new OD({code:yD.JOIN_ROOM_FAILED,message:"join room timeout"}))}),1e4);e.once(Gj,(function(){clearTimeout(r),t()})),e.once(Hj,(function(e){clearTimeout(r),n(e)}))}))}},{key:"tryConnectBackup",value:function(){this.backupSocket_||(this.unbindAndCloseSocket(qO),this.log_.debug("try to connect to url: ".concat(this.backupUrlWithParam_)),this.backupSocket_=new WebSocket(this.backupUrlWithParam_),this.bindSocket(this.backupSocket_))}},{key:"bindSocket",value:function(e){e.onopen=this.onopen.bind(this),e.onclose=this.onclose.bind(this),e.onerror=this.onerror.bind(this),e.onmessage=this.onmessage.bind(this)}},{key:"unbindSocket",value:function(e){e.onopen=function(){},e.onclose=function(){},e.onerror=function(){},e.onmessage=function(){}}},{key:"unbindAndCloseSocket",value:function(e){if(e===qO){if(this.socket_){this.unbindSocket(this.socket_);try{this.socket_.close(1e3)}catch(aK){}this.socket_=null}}else if(this.backupSocket_){this.unbindSocket(this.backupSocket_);try{this.backupSocket_.close(1e3)}catch(aK){}this.backupSocket_=null}}},{key:"clearBackupTimer",value:function(){-1!==this.backupTimer_&&(clearTimeout(this.backupTimer_),this.backupTimer_=-1)}},{key:"clearReconnectionTimer",value:function(){-1!==this.reconnectionTimer_&&(clearTimeout(this.reconnectionTimer_),this.reconnectionTimer_=-1)}},{key:"onopen",value:function(e){if(!this.isConnected_){this.isConnected_=!0,this.isConnecting_=!1,this.isReconnecting_&&cL(this.signalInfo_)&&this.stopReconnection(),this.clearBackupTimer(),e.target===this.socket_?(this.unbindAndCloseSocket(WO),this.socketInUse_=this.socket_):(this.unbindAndCloseSocket(qO),this.socketInUse_=this.backupSocket_);var t=e.target.url;this.log_.info("websocket[".concat(t,"] is connected")),this.currentState_===zj?this.addSignalEvent(YD,"signal channel is connected"):this.currentState_===qj&&this.addSignalEvent(KD,"signal channel reconnect success"),this.emitConnectionStateChanged(Wj),this.emitter_.emit(Gj)}}},{key:"onclose",value:function(e){var t=e.target.url,n=e.target===this.socketInUse_;if(this.log_.info("websocket[".concat(t," InUse: ").concat(n,"] is closed with code: ").concat(e.code)),n&&(this.isConnected_=!1,this.emitConnectionStateChanged(Yj),this.addSignalEvent(HD,"signal channel is disconnected"),!e.wasClean||1e3!==e.code)){this.log_.warn("onclose code:".concat(e.code," reason:").concat(e.reason)),this.log_.warn("close current websocket and schedule a reconnect timeout"),this.socketInUse_.onclose=function(){},this.socketInUse_.close(4011);var r=this.socketInUse_===this.socket_;this.socket_=this.backupSocket_=this.socketInUse_=null,this.reconnect(r?WO:qO)}}},{key:"onerror",value:function(e){var t=e.target.url;if(this.log_.error("websocket[".concat(t,"] error observed")),this.isConnected_){if(e.target===this.socketInUse_){this.isConnected_=!1,this.unbindAndCloseSocket(qO),this.unbindAndCloseSocket(WO);var n=this.socketInUse_===this.socket_;this.socketInUse_=null,this.reconnect(n?WO:qO)}}else this.isReconnecting_||uL.logFailedEvent({userId:this.client_.getUserId(),eventType:ck,code:yD.UNKNOWN}),e.target==this.socket_?(this.unbindAndCloseSocket(qO),this.reconnect(WO)):(this.unbindAndCloseSocket(WO),this.reconnect(qO));this.isConnecting_=!1,this.isConnected_=!1}},{key:"onmessage",value:function(e){if(this.isConnected_){this.lastMessageTime_=Date.now();var t=JSON.parse(e.data),n=t.cmd,r=t.data,o=Object.values(Kj),a=Object.keys(Kj)[o.indexOf(n)],i=Jj[a];switch($j.includes(n)||(this.log_.debug("received msg: ".concat(e.data)),this.log_.info("Received event: [ ".concat(i||"unknown cmd: "+n," ]"))),n){case Kj.CHANNEL_SETUP_RESULT:if(0===t.code)this.signalInfo_.clientIp=r.clientIp,this.signalInfo_.signalIp=r.signalInnerIp,this.signalInfo_.tinyId=t.tinyId,r.svrTime&&function(e){Ym=e-(new Date).getTime();var t=new Date;t.setTime(e),RE.info("baseTime from server: "+t+" offset: "+Ym)}(r.svrTime),this.log_.info("ChannelSetup Success"),uL.logSuccessEvent({userId:this.userId_,eventType:ck}),this.emitter_.emit(Vj,{signalInfo:this.signalInfo_});else{var s=new OD({code:yD.SIGNAL_CHANNEL_SETUP_FAILED,extraCode:t.code,message:eI({key:AC,data:{errorCode:t.code,errorMsg:t.message}})});this.log_.error("".concat(t.code,", ").concat(t.message)),this.close(),uL.logFailedEvent({userId:this.userId_,eventType:ck,error:s}),this.emitter_.emit(Bj,s)}break;case Kj.JOIN_ROOM_RESULT:0===t.code&&(this.signalInfo_.relayIp=r.relayOuterIp,this.signalInfo_.relayInnerIp=r.relayInnerIp,this.signalInfo_.relayPort=r.relayPort,this.log_.info("signalIp:".concat(this.signalInfo_.signalIp," clientIp:").concat(this.signalInfo_.clientIp," relayIp: ").concat(this.signalInfo_.relayIp))),this.emitter_.emit(i,{data:t});break;case Kj.CHANNEL_RECONNECT_RESULT:0===t.code?(this.log_.warn("reconnect success"),this.stopReconnection(),uL.logSuccessEvent({userId:this.userId_,eventType:lk}),this.client_.syncUserList(),this.client_.checkConnectionsToReconnect()):(this.log_.warn("reconnect failed, ".concat(t.code," ").concat(t.message)),this.client_.reJoin());break;default:this.emitter_.emit(i,{data:t})}}}},{key:"addSignalEvent",value:function(e,t){aL(this.userId_,{eventId:e,eventDesc:t,timestamp:zm(),userId:this.userId_,tinyId:this.signalInfo_.tinyId})}},{key:"reconnect",value:(n=i(r().mark((function e(){var t,n,o,a,i=this,s=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=s.length>0&&void 0!==s[0]?s[0]:qO,!this.isConnecting_&&-1===this.reconnectionTimer_){e.next=4;break}return this.log_.info("signal channel is reconnecting, ignoring current reconnection"),e.abrupt("return");case 4:if(NI.emit(QI,this.client_),!(this.reconnectionCount_>=HM)){e.next=12;break}return this.log_.warn("SDK has tried reconnect signal channel for ".concat(HM," times, but all failed. please check your network")),n=new OD({code:yD.SIGNAL_CHANNEL_RECONNECTION_FAILED,message:eI({key:LC})}),uL.logFailedEvent({userId:this.client_.getUserId(),eventType:lk,error:n}),this.addSignalEvent($D,"signal channel reconnect fail"),this.emitter_.emit(Hj,n),e.abrupt("return");case 12:if(this.isConnecting_=!0,this.reconnectionCount_++,this.currentState_!==qj&&(this.emitConnectionStateChanged(qj),this.addSignalEvent(WD,"signal channel is reconnecting")),this.log_.warn("reconnecting to ".concat(t," signal channel [").concat(this.reconnectionCount_,"/").concat(HM,"]")),!(this.reconnectionCount_>=3&&this.reconnectionCount_%3==0)){e.next=20;break}return this.log_.warn("re-schedule to get new ws url"),e.next=20,this.reGetSignalChannelUrl();case 20:o=this.getReconnectionUrl(t),t===qO?(this.socket_=new WebSocket(o),this.bindSocket(this.socket_)):(this.backupSocket_=new WebSocket(o),this.bindSocket(this.backupSocket_)),a=sI(this.reconnectionCount_),this.reconnectionTimer_=setTimeout((function(){i.log_.warn("reconnect ".concat(t," signal channel timeout(").concat(a/1e3,"s), close and try again")),i.isConnecting_=!1,i.clearReconnectionTimer(),i.unbindAndCloseSocket(t),i.reconnect(t===qO?WO:qO)}),a);case 24:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"reGetSignalChannelUrl",value:(t=i(r().mark((function e(){var t,n,o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.client_.getWSProxy()&&!this.client_.getUnifiedProxy()){e.next=3;break}return e.abrupt("return");case 3:return LL(!0),e.next=6,this.client_.schedule(this.client_.getRoomId());case 6:t=this.client_.getSignalChannelUrl(),n=t.mainUrl,o=t.backupUrl,this.url_=n,this.backupUrl_=o,(a=new URLSearchParams(this.urlParams)).has("signalDomain")&&(a.set("signalDomain",n),this.urlParams=a.toString()),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(0);case 15:case"end":return e.stop()}}),e,this,[[0,13]])}))),function(){return t.apply(this,arguments)})},{key:"isConnected",value:function(){return this.isConnected_}},{key:"isReconnecting_",get:function(){return-1!==this.reconnectionTimer_}},{key:"getReconnectionUrl",value:function(e){var t=e===qO?this.urlWithParam_:this.backupUrlWithParam_;if(!cL(this.signalInfo_)&&-1===t.indexOf("&rc=1")){var n=this.client_.getRoomId(),r=this.client_.getUseStringRoomId();t+="&rc=1&relayInnerIp=".concat(this.signalInfo_.relayInnerIp,"&relayOuterIp=").concat(this.signalInfo_.relayIp,"&relayPort=").concat(this.signalInfo_.relayPort,"&roomId=").concat(n,"&useStringRoomId=").concat(r)}return t}},{key:"send",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isConnected_){var n={cmd:e,data:t,userId:this.userId_,tinyId:this.signalInfo_.tinyId,seq:++this.seq_};return this.socketInUse_.send(JSON.stringify(n)),n.seq}}},{key:"sendWaitForResponse",value:function(e){var t=this,n=e.command,r=e.data,o=e.timeout,a=void 0===o?5e3:o,i=e.responseCommand,s=e.commandDesc,c=e.enableLog,l=void 0===c||c;return new Promise((function(e,o){var c=setTimeout((function(){t.off(i,u);var e=new OD({code:yD.API_CALL_TIMEOUT,message:eI({key:DC,data:{commandDesc:s,command:n}})});l&&t.log_.warn(e),o(e)}),a),u=function n(r){r.data.seq===d&&(clearTimeout(c),t.off(i,n),e(r))};t.on(i,u);var d=t.send(n,r)}))}},{key:"sendWaitForResponseWithRetry",value:function(){var e=this,t=arguments.length<=0?void 0:arguments[0],n=t.commandDesc,r=t.command,o=t.retries,a=void 0===o?0:o,i=t.retryTimeout,s=void 0===i?0:i;return jE({retryFunction:this.sendWaitForResponse,onRetrying:function(t){e.log_.warn("".concat(n||r," timeout observed, retrying [").concat(t,"/").concat(a,"]"))},settings:{retries:a,timeout:s},context:this}).apply(void 0,arguments)}},{key:"getCurrentState",value:function(){return this.currentState_}},{key:"getSignalInfo",value:function(){return this.signalInfo_}},{key:"stopReconnection",value:function(){this.isReconnecting_&&(this.reconnectionCount_=0,this.clearReconnectionTimer())}},{key:"close",value:function(){this.log_.info("close SignalChannel"),this.clearBackupTimer(),this.stopReconnection(),this.signalInfo_={},this.isConnecting_=!1,this.isConnected_=!1,this.socketInUse_=null,this.unbindAndCloseSocket(qO),this.unbindAndCloseSocket(WO),this.emitConnectionStateChanged(Yj)}},{key:"on",value:function(e,t,n){this.emitter_.on(e,t,n)}},{key:"removeListener",value:function(e,t,n){this.emitter_.removeListener(e,t,n)}},{key:"once",value:function(e,t,n){this.emitter_.once(e,t,n)}},{key:"off",value:function(e,t,n){this.emitter_.off(e,t,n)}},{key:"emitConnectionStateChanged",value:function(e){e!==this.currentState_&&(this.emitter_.emit(Fj,{prevState:this.currentState_,state:e}),this.currentState_=e)}}]),e}(),GL=So,HL=Vu.find,YL=fa,zL="find",qL=!0;zL in[]&&Array(1).find((function(){qL=!1})),GL({target:"Array",proto:!0,forced:qL},{find:function(e){return HL(this,e,arguments.length>1?arguments[1]:void 0)}}),YL(zL);var WL={},KL={},$L={exports:{}},JL=$L.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+(null!=e["network-cost"]?" network-cost %d":"%v")}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",t+=null!=e.rateNumerator?" rate=%s":"",t+(null!=e.rateDenominator?"/%s":"")}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(JL).forEach((function(e){JL[e].forEach((function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))})),function(e){var t=function(e){return String(Number(e))===e?Number(e):e},n=function(e,n,r){var o=e.name&&e.names;e.push&&!n[e.push]?n[e.push]=[]:o&&!n[e.name]&&(n[e.name]={});var a=e.push?{}:o?n[e.name]:n;!function(e,n,r,o){if(o&&!r)n[o]=t(e[1]);else for(var a=0;a<r.length;a+=1)null!=e[a+1]&&(n[r[a]]=t(e[a+1]))}(r.match(e.reg),a,e.names,e.name),e.push&&n[e.push].push(a)},r=$L.exports,o=RegExp.prototype.test.bind(/^([a-z])=(.*)/);e.parse=function(e){var t={},a=[],i=t;return e.split(/(\r\n|\r|\n)/).filter(o).forEach((function(e){var t=e[0],o=e.slice(2);"m"===t&&(a.push({rtp:[],fmtp:[]}),i=a[a.length-1]);for(var s=0;s<(r[t]||[]).length;s+=1){var c=r[t][s];if(c.reg.test(o))return n(c,i,o)}})),t.media=a,t};var a=function(e,n){var r=n.split(/=(.+)/,2);return 2===r.length?e[r[0]]=t(r[1]):1===r.length&&n.length>1&&(e[r[0]]=void 0),e};e.parseParams=function(e){return e.split(/;\s?/).reduce(a,{})},e.parseFmtpConfig=e.parseParams,e.parsePayloads=function(e){return e.toString().split(" ").map(Number)},e.parseRemoteCandidates=function(e){for(var n=[],r=e.split(" ").map(t),o=0;o<r.length;o+=3)n.push({component:r[o],ip:r[o+1],port:r[o+2]});return n},e.parseImageAttributes=function(e){return e.split(" ").map((function(e){return e.substring(1,e.length-1).split(",").reduce(a,{})}))},e.parseSimulcastStreamList=function(e){return e.split(";").map((function(e){return e.split(",").map((function(e){var n,r=!1;return"~"!==e[0]?n=t(e):(n=t(e.substring(1,e.length)),r=!0),{scid:n,paused:r}}))}))}}(KL);var XL=$L.exports,QL=/%[sdv%]/g,ZL=function(e){var t=1,n=arguments,r=n.length;return e.replace(QL,(function(e){if(t>=r)return e;var o=n[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(o);case"%d":return Number(o);case"%v":return""}}))},eA=function(e,t,n){var r=[e+"="+(t.format instanceof Function?t.format(t.push?n:n[t.name]):t.format)];if(t.names)for(var o=0;o<t.names.length;o+=1){var a=t.names[o];t.name?r.push(n[t.name][a]):r.push(n[t.names[o]])}else r.push(n[t.name]);return ZL.apply(null,r)},tA=["v","o","s","i","u","e","p","c","b","t","r","z","a"],nA=["i","c","b","a"],rA=KL,oA=function(e,t){t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),e.media.forEach((function(e){null==e.payloads&&(e.payloads="")}));var n=t.outerOrder||tA,r=t.innerOrder||nA,o=[];return n.forEach((function(t){XL[t].forEach((function(n){n.name in e&&null!=e[n.name]?o.push(eA(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){o.push(eA(t,n,e))}))}))})),e.media.forEach((function(e){o.push(eA("m",XL.m[0],e)),r.forEach((function(t){XL[t].forEach((function(n){n.name in e&&null!=e[n.name]?o.push(eA(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){o.push(eA(t,n,e))}))}))}))})),o.join("\r\n")+"\r\n"};WL.write=oA,WL.parse=rA.parse,WL.parseParams=rA.parseParams,WL.parseFmtpConfig=rA.parseFmtpConfig,WL.parsePayloads=rA.parsePayloads,WL.parseRemoteCandidates=rA.parseRemoteCandidates,WL.parseImageAttributes=rA.parseImageAttributes,WL.parseSimulcastStreamList=rA.parseSimulcastStreamList;var aA,iA,sA,cA,lA=function(e){return WL.parse(e)},uA=function(e){return WL.write(e)},dA=function(e){var t=lA(e);return t.media.forEach((function(e){e.type===wO&&e.fmtp.forEach((function(e){e.config+=";sprop-stereo=1;stereo=1"}))})),uA(t)},pA=(null===(aA=window)||void 0===aA?void 0:aA.requestIdleCallback)||function(e){var t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1e3)},fA=(null===(iA=window)||void 0===iA?void 0:iA.cancelIdleCallback)||function(e){clearTimeout(e)},hA=(null===(sA=window)||void 0===sA?void 0:sA.cancelAnimationFrame)||(null===(cA=window)||void 0===cA?void 0:cA.mozCancelAnimationFrame),mA=function(){function e(){s(this,e)}return l(e,null,[{key:"generateTaskID",value:function(){return this.currentTaskID++}},{key:"run",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fC,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;r=n(n({},e===pC?{delay:2e3,count:0,backgroundTask:!0}:e===uC?{delay:1e4,count:0}:e===dC?{fps:60,delay:16.6,count:0,backgroundTask:!0}:{delay:2e3,count:0,backgroundTask:!0}),r),fI(t)&&(r=n(n({},r),t)),cI(e)&&(t=e,e=fC);var o=n({taskID:this.generateTaskID(),loopCount:0,intervalID:null,timeoutID:null,rafID:null,ricID:null,taskName:e,callback:t},r);return this.taskMap.set(o.taskID,o),this[e](o),o.taskID}},{key:"interval",value:function(e){var t=this;return e.intervalID=setInterval((function(){e.callback(),e.loopCount+=1,t.isBreakLoop(e)}),e.delay)}},{key:"timeout",value:function(e){var t=this;return e.timeoutID=setTimeout((function n(){if(e.callback(),e.loopCount+=1,!t.isBreakLoop(e))return e.timeoutID=setTimeout(n,e.delay)}),e.delay)}},{key:"ric",value:function(e){var t,n=this,r=_I();return e.ricID=pA((function o(){if((t=_I()-r)>=e.delay&&(r=_I()-Math.floor(t%e.delay),e.callback(),e.loopCount+=1),!n.isBreakLoop(e))return e.ricID=pA(o,{timeout:e.delay})}),{timeout:e.delay})}},{key:"raf",value:function(e){var t=this;e.delay=(1e3/e.fps).toFixed(2);var n,r=_I(),o=function o(){if(document.hidden&&e.backgroundTask){if(n=_I()-r,r=_I(),e.callback(),e.loopCount+=1,t.isBreakLoop(e))return;return e.timeoutID=setTimeout(o,e.delay-Math.floor(n%e.delay))}if((n=_I()-r)>=e.delay&&(r=_I()-Math.floor(n%e.delay),e.callback(),e.loopCount+=1),!t.isBreakLoop(e))return e.rafID=requestAnimationFrame(o)};if(e.rafID=requestAnimationFrame(o),e.backgroundTask){var a=function(){if(document.hidden){var t=_I()-r;t>=e.delay?o():e.timeoutID=setTimeout(o,e.delay-t)}};document.addEventListener("visibilitychange",a),e.onVisibilitychange=a,document.hidden&&a()}return e.taskID}},{key:"hasTask",value:function(e){return this.taskMap.has(e)}},{key:"clearTask",value:function(e){if(!this.taskMap.has(e))return!0;var t=this.taskMap.get(e),n=t.intervalID,r=t.timeoutID,o=t.rafID,a=t.ricID,i=t.onVisibilitychange;return n&&clearInterval(n),r&&clearTimeout(r),o&&hA(o),a&&fA(a),i&&document.removeEventListener("visibilitychange",i),this.taskMap.delete(e),!0}},{key:"isBreakLoop",value:function(e){return!this.taskMap.has(e.taskID)||0!==e.count&&e.loopCount>=e.count&&(this.clearTask(e.taskID),!0)}}]),e}();u(mA,"taskMap",new Map),u(mA,"currentTaskID",1);var vA=function(){function e(){s(this,e),this.prefix_="TRTC",this.queue_=new Map,this.checkStorage()}return l(e,[{key:"getRealKey",value:function(e){return"".concat(this.prefix_,"_").concat(e)}},{key:"checkStorage",value:function(){var e=this;if($T()){var t=Object.keys(localStorage).filter((function(t){if(t.startsWith(e.prefix_)){var n=JSON.parse(localStorage.getItem(t));if(n&&n.expiresIn<Date.now())return!0}return!1}));t.forEach((function(e){return localStorage.removeItem(e)}))}}},{key:"doFlush",value:function(){if($T())try{var e,t=w(this.queue_);try{for(t.s();!(e=t.n()).done;){var n=O(e.value,2),r=n[0],o=n[1];localStorage.setItem(r,JSON.stringify(o))}}catch(i){t.e(i)}finally{t.f()}}catch(aK){RE.warn(aK)}}},{key:"getItem",value:function(e){if(!$T())return null;try{var t=JSON.parse(localStorage.getItem(this.getRealKey(e)));return t&&t.expiresIn>=Date.now()?t.value:null}catch(aK){RE.warn(aK)}}},{key:"setItem",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if($T())try{var r={expiresIn:Date.now()+Rk,value:t};n?localStorage.setItem(this.getRealKey(e),JSON.stringify(r)):(this.queue_.set(this.getRealKey(e),r),mA.hasTask(this.intervalId_)||(this.intervalId_=mA.run(uC,this.doFlush.bind(this),{count:1})))}catch(aK){RE.warn(aK)}}},{key:"deleteItem",value:function(e){if(!$T())return!1;try{return e=this.getRealKey(e),this.queue_.delete(e),localStorage.removeItem(e),!0}catch(aK){return RE.warn(aK),!1}}},{key:"clear",value:function(){if($T())try{localStorage.clear()}catch(aK){RE.warn(aK)}}}]),e}(),gA=new vA,_A={result:!1,detail:{isBrowserSupported:!1,isWebRTCSupported:!1,isMediaDevicesSupported:!1,isH264EncodeSupported:!1,isVp8EncodeSupported:!1,isH264DecodeSupported:!1,isVp8DecodeSupported:!1}},bA="checkResult",yA=function(){return!OT&&!$S&&!(XS&&QS<80)&&!(WS&&KS<56)},OA=function(){return["RTCPeerConnection","webkitRTCPeerConnection","RTCIceGatherer"].filter((function(e){return e in window})).length>0},MA=function(){if(!navigator.mediaDevices)return!1;var e=["getUserMedia","enumerateDevices"];return e.filter((function(e){return e in navigator.mediaDevices})).length===e.length},kA=function(){var e=i(r().mark((function e(){var t,n,o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_A.detail.isH264EncodeSupported||!_A.detail.isVp8EncodeSupported){e.next=2;break}return e.abrupt("return",{isH264EncodeSupported:_A.detail.isH264EncodeSupported,isVp8EncodeSupported:_A.detail.isVp8EncodeSupported});case 2:return t="",n=!1,o=!1,e.prev=5,a=new RTCPeerConnection,(i=document.createElement(CO)).getContext("2d"),s=i.captureStream(0),a.addTrack(s.getVideoTracks()[0],s),e.next=13,a.createOffer();case 13:return-1!==(t=e.sent).sdp.toLowerCase().indexOf("h264")&&(n=!0),-1!==t.sdp.toLowerCase().indexOf("vp8")&&(o=!0),a.close(),_A.detail.isH264EncodeSupported=n,_A.detail.isVp8EncodeSupported=o,e.abrupt("return",{isH264EncodeSupported:_A.detail.isH264EncodeSupported,isVp8EncodeSupported:_A.detail.isVp8EncodeSupported});case 22:return e.prev=22,e.t0=e.catch(5),e.abrupt("return",{isH264EncodeSupported:!1,isVp8EncodeSupported:!1});case 25:case"end":return e.stop()}}),e,null,[[5,22]])})));return function(){return e.apply(this,arguments)}}();function CA(){return wA.apply(this,arguments)}function wA(){return wA=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=i(r().mark((function e(t){var n,o,a,s,c,l,u,d,p,f,h,m,v,g;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={encode:!1,decode:!1},o=null,e.prev=2,a=document.createElement("canvas"),s=a.getContext("2d"),a.width=640,a.height=480,c=setInterval((function(){s.fillText("test",Math.floor(640*Math.random()),Math.floor(480*Math.random()))}),33),l=-1,u=-1,o=function(){clearInterval(l),clearInterval(c),clearTimeout(u),p.close(),f.close(),d.getTracks().forEach((function(e){return e.stop()}))},u=setTimeout((function(){o(),t(n)}),3e3),d=a.captureStream(),p=new RTCPeerConnection({}),f=new RTCPeerConnection({offerToReceiveAudio:!0,offerToReceiveVideo:!0}),p.addEventListener("icecandidate",(function(e){return f.addIceCandidate(e.candidate)})),f.addEventListener("icecandidate",(function(e){return p.addIceCandidate(e.candidate)})),p.addTrack(d.getVideoTracks()[0],d),e.next=20,p.createOffer();case 20:return h=e.sent,e.next=23,p.setLocalDescription(h);case 23:return e.next=25,f.setRemoteDescription(h);case 25:return e.next=27,f.createAnswer();case 27:return m=e.sent,v=lA(m.sdp),g=v.media[0].rtp.findIndex((function(e){return"H264"===e.codec})),v.media[0].rtp=[v.media[0].rtp[g]],v.media[0].fmtp=v.media[0].fmtp.filter((function(e){return e.payload===v.media[0].rtp[0].payload})),v.media[0].rtcpFb=v.media[0].rtcpFb.filter((function(e){return e.payload===v.media[0].rtp[0].payload})),m.sdp=uA(v),e.next=36,f.setLocalDescription(m);case 36:return e.next=38,p.setRemoteDescription(m);case 38:l=setInterval(i(r().mark((function e(){var a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.encode&&n.decode&&(o(),t(n)),e.next=3,p.getStats();case 3:return a=e.sent,e.next=6,f.getStats();case 6:i=e.sent,n.encode||a.forEach((function(e){"outbound-rtp"===e.type&&e.mediaType===SO&&e.framesEncoded>0&&(n.encode=!0)})),n.decode||i.forEach((function(e){"inbound-rtp"===e.type&&e.mediaType===SO&&e.framesDecoded>0&&(n.decode=!0)}));case 9:case"end":return e.stop()}}),e)}))),500),e.next=46;break;case 41:e.prev=41,e.t0=e.catch(2),o(),RE.warn(e.t0),t(n);case 46:case"end":return e.stop()}}),e,null,[[2,41]])})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),wA.apply(this,arguments)}var SA=function(){var e=i(r().mark((function e(){var t,n,o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_A.detail.isH264DecodeSupported||!_A.detail.isVp8DecodeSupported){e.next=2;break}return e.abrupt("return",{isH264DecodeSupported:_A.detail.isH264DecodeSupported,isVp8DecodeSupported:_A.detail.isVp8DecodeSupported});case 2:return t="",n=!1,o=!1,e.prev=5,a=new RTCPeerConnection,e.next=9,a.createOffer({offerToReceiveAudio:1,offerToReceiveVideo:1});case 9:return-1!==(t=e.sent).sdp.toLowerCase().indexOf("h264")&&(n=!0),-1!==t.sdp.toLowerCase().indexOf("vp8")&&(o=!0),a.close(),e.abrupt("return",{isH264DecodeSupported:n,isVp8DecodeSupported:o});case 16:return e.prev=16,e.t0=e.catch(5),e.abrupt("return",{isH264DecodeSupported:!1,isVp8DecodeSupported:!1});case 19:case"end":return e.stop()}}),e,null,[[5,16]])})));return function(){return e.apply(this,arguments)}}(),TA=function(){var e=i(r().mark((function e(){var t,n,o,a,i,s,c,l,u,d,p,f,h;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(EA()){e.next=2;break}return e.abrupt("return",_A);case 2:return t=yA(),n=OA(),o=MA(),e.next=7,kA();case 7:return a=e.sent,i=a.isH264EncodeSupported,s=a.isVp8EncodeSupported,e.next=12,SA();case 12:if(c=e.sent,l=c.isH264DecodeSupported,u=c.isVp8DecodeSupported,i&&s){e.next=21;break}return e.next=18,kA();case 18:d=e.sent,i=d.isH264EncodeSupported,s=d.isVp8EncodeSupported;case 21:if(!(i&&l&&(DT||AT||GT)&&!rT&&RT()<79)){e.next=29;break}return e.next=24,CA();case 24:p=e.sent,f=p.encode,h=p.decode,i=f,l=h;case 29:return _A.result=t&&n&&o&&(i||s)&&(l||u),_A.detail.isBrowserSupported=t,_A.detail.isWebRTCSupported=n,_A.detail.isMediaDevicesSupported=o,_A.detail.isH264EncodeSupported=i,_A.detail.isVp8EncodeSupported=s,_A.detail.isH264DecodeSupported=l,_A.detail.isVp8DecodeSupported=u,jA(),gA.setItem(bA,{ua:navigator.userAgent,checkResult:_A},!0),e.abrupt("return",_A);case 40:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),IA=function(e,t){var n=null;return function(){if(n)return n;for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(n=e.apply(t||this,o)).then((function(e){return n=null,e})).catch((function(e){throw n=null,e})),n}}(TA);function EA(){return Object.keys(_A.detail).findIndex((function(e){return!_A.detail[e]}))>=0}function jA(){EA()&&(RE.warn(eI({key:oS})),RE.info("".concat(navigator.userAgent," ").concat(JSON.stringify(_A.detail))))}function DA(){return!(!navigator.mediaDevices||!navigator.mediaDevices.getDisplayMedia)}function LA(){return"RTCPeerConnection"in window&&"getReceivers"in window.RTCPeerConnection.prototype}function AA(){return"RTCPeerConnection"in window&&"getSenders"in window.RTCPeerConnection.prototype}function NA(){return"RTCPeerConnection"in window&&"getTransceivers"in window.RTCPeerConnection.prototype}function RA(){return"RTCPeerConnection"in window&&"addTransceiver"in window.RTCPeerConnection.prototype}function xA(){return"RTCRtpSender"in window&&"replaceTrack"in window.RTCRtpSender.prototype}function PA(){return"RTCRtpSender"in window&&"setParameters"in window.RTCRtpSender.prototype&&AA()}function UA(){return!!lI(navigator.mediaDevices)&&(RE.error(ES.NOT_SUPPORTED_MEDIA),!0)}function VA(){return"http:"===location.protocol&&!KT&&(RE.warn(eI({key:rS})),!0)}var BA="RTCRtpSender"in window&&"createEncodedStreams"in window.RTCRtpSender.prototype&&RT()>=86;function FA(e){return!("candidate-pair"!==e.type||!e.nominated||"in-progress"!==e.state&&"succeeded"!==e.state)&&!(pI(e.selected)&&!e.selected)}var GA=new Map([[qS,"Android"],[zS,"iOS"],[_T,"Windows"],[bT,"MacOS"],[yT,"Linux"]]);function HA(){var e="unknown";return GA.get(!0)&&(e=GA.get(!0)),e}function YA(){var e="";return screen.width&&(e+=(screen.width?screen.width*window.devicePixelRatio:"")+" * "+(screen.height?screen.height*window.devicePixelRatio:"")),e}function zA(){var e=!1;return(navigator.getUserMedia||navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)&&(e=!0),e}function qA(){for(var e={isSupported:!1},t=["AudioContext","webkitAudioContext","mozAudioContext","msAudioContext"],n=0;n<t.length;n++)if(t[n]in window){e.isSupported=!0;break}return e.isSupported}function WA(){return!(sT&&RT()<86)&&!(zS&&dI(HT)&&HT<15)&&!(UT&&UT<63)&&!(!yA()||!("captureStream"in HTMLCanvasElement.prototype))}var KA=window.MediaStreamTrack&&"getSettings"in MediaStreamTrack.prototype,$A=window.MediaStreamTrack&&"getCapabilities"in MediaStreamTrack.prototype,JA=function(){var e,t,n;return(null===(e=window)||void 0===e?void 0:e.OffscreenCanvas)&&(null===(t=window)||void 0===t?void 0:t.MediaStreamTrackProcessor)&&(null===(n=window)||void 0===n?void 0:n.MediaStreamTrackGenerator)};!function(){VA();var e=gA.getItem(bA);e&&e.ua===navigator.userAgent&&(_A=e.checkResult),IA()}();var XA={STREAM_ADDED:"stream-added",STREAM_REMOVED:"stream-removed",STREAM_UPDATED:"stream-updated",STREAM_PUBLISHED:"stream-published",STREAM_SUBSCRIBED:"stream-subscribed",STREAM_UNSUBSCRIBED:"stream-unsubscribed",STATE_CHANGED:"state-changed",ERROR:"error",CONNECTION_STATE_CHANGED:"connection-state-changed",SEI_MESSAGE:QO},QA={STREAM_ADDED:"stream-added",STREAM_REMOVED:"stream-removed",STREAM_UPDATED:"stream-updated",STREAM_SUBSCRIBED:"stream-subscribed",CONNECTION_STATE_CHANGED:"connection-state-changed",PEER_JOIN:"peer-join",PEER_LEAVE:"peer-leave",MUTE_AUDIO:"mute-audio",MUTE_VIDEO:"mute-video",UNMUTE_AUDIO:"unmute-audio",UNMUTE_VIDEO:"unmute-video",CLIENT_BANNED:"client-banned",NETWORK_QUALITY:"network-quality",AUDIO_VOLUME:"audio-volume",SEI_MESSAGE:QO,ERROR:"error"},ZA="player-state-changed",eN="screen-sharing-stopped",tN="connection-state-changed",nN="device-auto-recovered",rN="error",oN="player-state-changed",aN="error",iN=OC;So({target:"String",proto:!0,forced:kC("small")},{small:function(){return iN(this,"small","","")}});var sN=function(){function e(t){s(this,e);var n=t.getUserId();this.log_=RE.createLogger({id:n,userId:n,sdkAppId:t.getSDKAppId()}),this.prevReportTime_=0,this.prevReport_={},this.prevEncoderImplementation_="",this.prevQualityLimitationReason_="",this.prevDecoderImplementationMap_=new Map}var t,n,o,a;return l(e,[{key:"statInterval",get:function(){return 0===this.prevReportTime_?2:(Date.now()-this.prevReportTime_)/1e3}},{key:"getSenderStats",value:(a=i(r().mark((function e(t){var n,o,a,i,s=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={audio:{bytesSent:0,packetsSent:0,audioLevel:0,totalAudioEnergy:0},video:{bytesSent:0,packetsSent:0,framesEncoded:0,frameWidth:0,frameHeight:0,framesSent:0,fpsCapture:0},small:{bytesSent:0,packetsSent:0,framesEncoded:0,frameWidth:0,frameHeight:0,framesSent:0,fpsCapture:0},auxiliary:{bytesSent:0,packetsSent:0,framesEncoded:0,frameWidth:0,frameHeight:0,framesSent:0,fpsCapture:0},rtt:0},o=t.getPeerConnection(),a=t.getSSRC(),!o){e.next=15;break}return e.prev=4,e.next=7,o.getStats();case 7:e.sent.forEach((function(e){var r;if("outbound-rtp"===e.type)if((e.mediaType||e.kind)===SO){if(!WS&&0===e.bytesSent)return;e.ssrc!==a.video||lI(e.encoderImplementation)||s.prevEncoderImplementation_===e.encoderImplementation||(s.log_.info("encoderImplementation change to ".concat(e.encoderImplementation)),s.prevEncoderImplementation_=e.encoderImplementation),e.ssrc!==a.video||lI(e.qualityLimitationReason)||s.prevQualityLimitationReason_===e.qualityLimitationReason||(s.log_.info("qualityLimitationReason change to ".concat(e.qualityLimitationReason)),s.prevQualityLimitationReason_=e.qualityLimitationReason);var o=SO;e.ssrc===a.small?o=IO:e.ssrc===a.auxiliary&&(o=jO),n[o].bytesSent=e.bytesSent,n[o].packetsSent=e.packetsSent,n[o].framesEncoded=e.framesEncoded}else n.audio.bytesSent=e.bytesSent,n.audio.packetsSent=e.packetsSent;else"candidate-pair"===e.type?FA(e)&&dI(e.currentRoundTripTime)&&(n.rtt=Math.floor(1e3*e.currentRoundTripTime)):"media-source"===e.type&&(e.kind===wO?(n.audio.audioLevel=e.audioLevel||0,n.audio.totalAudioEnergy=e.totalAudioEnergy||0):e.kind===SO&&(e.trackIdentifier===t.getVideoTrackId(SO)?n.video.fpsCapture=e.framesPerSecond:e.trackIdentifier===t.getVideoTrackId(jO)?n.auxiliary.fpsCapture=e.framesPerSecond:n.small.fpsCapture=e.framesPerSecond));lI(e.audioLevel)||(n.audio.audioLevel=e.audioLevel||0,n.audio.totalAudioEnergy=e.totalAudioEnergy||0),lI(e.frameWidth)||(e.trackIdentifier===t.getVideoTrackId(SO)||e.ssrc===a.video?r=SO:e.trackIdentifier===t.getVideoTrackId(jO)||e.ssrc===a.auxiliary?r=jO:e.trackIdentifier!==t.getVideoTrackId(IO)&&e.ssrc!==a.small||(r=IO),r&&(n[r].frameWidth=e.frameWidth,n[r].frameHeight=e.frameHeight,n[r].framesSent=e.framesSent))})),0===n.audio.audioLevel&&(n.audio.audioLevel=(null===(i=t.getLocalStream())||void 0===i?void 0:i.getInternalAudioLevel())||0),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),this.log_.warn("failed to getStats on sender connection "+e.t0);case 15:return e.abrupt("return",n);case 16:case"end":return e.stop()}}),e,this,[[4,12]])}))),function(e){return a.apply(this,arguments)})},{key:"getReceiverStats",value:(o=i(r().mark((function e(t){var n,o,a,i,s,c=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={tinyId:t.getTinyId(),userId:t.getUserId(),rtt:0,hasAudio:!1,hasVideo:!1,hasAuxiliary:!1,audio:{bytesReceived:0,packetsReceived:0,packetsLost:0,jitter:0,audioLevel:0,totalAudioEnergy:0},video:{bytesReceived:0,packetsReceived:0,packetsLost:0,framesReceived:0,framesDecoded:0,frameWidth:0,frameHeight:0},auxiliary:{bytesReceived:0,packetsReceived:0,packetsLost:0,framesReceived:0,framesDecoded:0,frameWidth:0,frameHeight:0}},!(o=t.getPeerConnection())){e.next=16;break}return e.prev=3,a=t.getSSRC(),i=t.getTrackState(),e.next=8,o.getStats();case 8:e.sent.forEach((function(e){if("inbound-rtp"===e.type)if((e.mediaType||e.kind)===wO){if(e.ssrc!==a.audio||!i.audio)return;n.audio.packetsReceived=e.packetsReceived,n.audio.bytesReceived=e.bytesReceived,n.audio.packetsLost=e.packetsLost,n.audio.jitter=e.jitter,n.hasAudio=!0}else{if(WS&&0===e.bytesReceived)return;e.ssrc===a.video&&i.video&&(n.video.packetsReceived=e.packetsReceived,n.video.bytesReceived=e.bytesReceived,n.video.packetsLost=e.packetsLost,n.video.framesReceived=e.framesReceived,n.video.framesDecoded=e.framesDecoded,n.video.fpsDecoded=e.framesPerSecond,n.hasVideo=!0,!e.decoderImplementation||c.prevDecoderImplementationMap_.has(n.userId)&&c.prevDecoderImplementationMap_.get(n.userId)===e.decoderImplementation||(c.log_.info("".concat(n.userId," decoderImplementation change to ").concat(e.decoderImplementation)),c.prevDecoderImplementationMap_.set(n.userId,e.decoderImplementation))),e.ssrc===a.auxiliary&&i.auxiliary&&(n.auxiliary.packetsReceived=e.packetsReceived,n.auxiliary.bytesReceived=e.bytesReceived,n.auxiliary.packetsLost=e.packetsLost,n.auxiliary.framesReceived=e.framesReceived,n.auxiliary.framesDecoded=e.framesDecoded,n.auxiliary.fpsDecoded=e.framesPerSecond,n.hasAuxiliary=!0)}else"candidate-pair"===e.type&&FA(e)&&dI(e.currentRoundTripTime)&&(n.rtt=Math.floor(1e3*e.currentRoundTripTime));lI(e.frameWidth)||(e.trackIdentifier!==t.getMainStreamVideoTrackId()&&e.ssrc!==a.video||(n.video.frameWidth=e.frameWidth,n.video.frameHeight=e.frameHeight),e.trackIdentifier!==t.getAuxStreamVideoTrackId()&&e.ssrc!==a.auxiliary||(n.auxiliary.frameWidth=e.frameWidth,n.auxiliary.frameHeight=e.frameHeight)),lI(e.audioLevel)||(n.audio.audioLevel=e.audioLevel||0,n.audio.totalAudioEnergy=e.totalAudioEnergy||0)})),0===n.audio.audioLevel&&(n.audio.audioLevel=(null===(s=t.getMainStream())||void 0===s?void 0:s.getInternalAudioLevel())||0),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),this.log_.warn("failed to getStats on receiver connection "+e.t0);case 16:return e.abrupt("return",n);case 17:case"end":return e.stop()}}),e,this,[[3,13]])}))),function(e){return o.apply(this,arguments)})},{key:"getStats",value:(n=i(r().mark((function e(t,n){var o,a,i,s,c,l,u;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o={},!t){e.next=5;break}return e.next=4,this.getSenderStats(t);case 4:o=e.sent;case 5:a=[],i=w(n),e.prev=7,i.s();case 9:if((s=i.n()).done){e.next=17;break}return(c=O(s.value,2))[0],l=c[1],e.next=13,this.getReceiverStats(l);case 13:u=e.sent,a.push(u);case 15:e.next=9;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(7),i.e(e.t0);case 22:return e.prev=22,i.f(),e.finish(22);case 25:return e.abrupt("return",{senderStats:o,receiverStats:a});case 26:case"end":return e.stop()}}),e,this,[[7,19,22,25]])}))),function(e,t){return n.apply(this,arguments)})},{key:"getDifferenceValue",value:function(e,t){if(cL(e))return t;var n=t-e;return n<0?0:n}},{key:"prepareReport",value:function(e){var t=this,n=e.stats,r=e.report,o=e.freezeMap;if(!cL(n.senderStats)){var a;a={uint32_audio_level:1e8*n.senderStats.audio.audioLevel,uint32_audio_energy:1e6*n.senderStats.audio.totalAudioEnergy,uint32_audio_codec_bitrate:n.senderStats.audio.bytesSent,audioLevel:n.senderStats.audio.audioLevel};var i=[],s={uint32_video_stream_type:2,uint32_video_codec_fps:n.senderStats.video.framesSent,uint32_video_capture_fps:n.senderStats.video.fpsCapture,uint32_video_width:n.senderStats.video.frameWidth,uint32_video_height:n.senderStats.video.frameHeight,uint32_video_codec_bitrate:n.senderStats.video.bytesSent,uint32_video_enc_fps:n.senderStats.video.framesEncoded};if(i.push(s),n.senderStats.small.bytesSent){var c={uint32_video_stream_type:3,uint32_video_codec_fps:n.senderStats.small.framesSent||0,uint32_video_capture_fps:n.senderStats.small.fpsCapture||0,uint32_video_width:n.senderStats.small.frameWidth||0,uint32_video_height:n.senderStats.small.frameHeight||0,uint32_video_codec_bitrate:n.senderStats.small.bytesSent,uint32_video_enc_fps:n.senderStats.small.framesEncoded||0};i.push(c)}if(n.senderStats.auxiliary.bytesSent){var l={uint32_video_stream_type:7,uint32_video_codec_fps:n.senderStats.auxiliary.framesSent||0,uint32_video_capture_fps:n.senderStats.auxiliary.fpsCapture||0,uint32_video_width:n.senderStats.auxiliary.frameWidth||0,uint32_video_height:n.senderStats.auxiliary.frameHeight||0,uint32_video_codec_bitrate:n.senderStats.auxiliary.bytesSent,uint32_video_enc_fps:n.senderStats.auxiliary.framesEncoded||0};i.push(l)}var u={uint32_bitrate:0,uint32_rtt:n.senderStats.rtt};r.msg_up_stream_info={msg_audio_status:a,msg_video_status:i,msg_network_status:u}}var d=this.statInterval;r.msg_down_stream_info=[],n.receiverStats.forEach((function(e){var t={};if(t.msg_user_info={str_identifier:e.userId,uint64_tinyid:e.tinyId},t.msg_network_status={uint32_rtt:e.rtt},t.msg_video_status={},e.hasAudio){var n={uint32_audio_codec_bitrate:e.audio.bytesReceived,uint32_audio_total_bitrate:e.audio.bytesReceived,uint32_audio_level:1e8*e.audio.audioLevel,uint32_audio_energy:1e6*e.audio.totalAudioEnergy,uint32_audio_receive:e.audio.packetsReceived,uint32_audio_origin_lost:e.audio.packetsLost,audioLevel:e.audio.audioLevel};t.msg_audio_status=n}if(t.msg_video_status=[],e.hasVideo){var a=o.get(e.userId+"_"+EM),i=a?a.duration:0,s={uint32_video_stream_type:2,uint32_video_receive_fps:e.video.framesReceived,uint32_video_width:e.video.frameWidth,uint32_video_height:e.video.frameHeight,uint32_video_codec_bitrate:e.video.bytesReceived,uint32_video_receive:e.video.packetsReceived,uint32_video_origin_lost:e.video.packetsLost,uint32_video_block_time:i,uint32_video_dec_fps:e.video.framesDecoded};t.msg_video_status.push(s)}if(e.hasAuxiliary){var c=o.get(e.userId+"_"+jM),l=c?c.duration:0,u={uint32_video_stream_type:7,uint32_video_receive_fps:e.auxiliary.framesReceived,uint32_video_width:e.auxiliary.frameWidth,uint32_video_height:e.auxiliary.frameHeight,uint32_video_codec_bitrate:e.auxiliary.bytesReceived,uint32_video_receive:e.auxiliary.packetsReceived+e.auxiliary.packetsLost,uint32_video_origin_lost:e.auxiliary.packetsLost,uint32_video_block_time:l,uint32_video_dec_fps:e.auxiliary.framesDecoded};t.msg_video_status.push(u)}r.msg_down_stream_info.push(t)}));var p=this.prevReport_;if(this.prevReport_=JSON.parse(JSON.stringify(r)),r.msg_up_stream_info.msg_audio_status&&p.msg_up_stream_info.msg_audio_status){var f=p.msg_up_stream_info.msg_audio_status,h=r.msg_up_stream_info.msg_audio_status,m=this.getDifferenceValue(f.uint32_audio_codec_bitrate,h.uint32_audio_codec_bitrate);h.uint32_audio_codec_bitrate=Math.round(8*m/d),r.msg_up_stream_info.msg_network_status.uint32_bitrate+=h.uint32_audio_codec_bitrate}var v=p.msg_up_stream_info.msg_video_status;r.msg_up_stream_info.msg_video_status.forEach((function(e){var n=v.find((function(t){return t.uint32_video_stream_type===e.uint32_video_stream_type}));if(!n||0===n.uint32_video_codec_bitrate)return e.uint32_video_codec_bitrate=0,e.uint32_video_enc_fps=0,void(e.uint32_video_codec_fps=0);var o=n.uint32_video_codec_bitrate,a=n.uint32_video_enc_fps,i=n.uint32_video_codec_fps,s=t.getDifferenceValue(o,e.uint32_video_codec_bitrate);e.uint32_video_codec_bitrate=Math.round(8*s/d),r.msg_up_stream_info.msg_network_status.uint32_bitrate+=e.uint32_video_codec_bitrate,e.uint32_video_enc_fps=Math.round(t.getDifferenceValue(a,e.uint32_video_enc_fps)/d),e.uint32_video_codec_fps=Math.round(t.getDifferenceValue(i,e.uint32_video_codec_fps)/d)}));var g=r.msg_down_stream_info,_=p.msg_down_stream_info;return g.forEach((function(e){var n=_.find((function(t){return t.msg_user_info.uint64_tinyid===e.msg_user_info.uint64_tinyid}));if(n){if(e.msg_audio_status&&n.msg_audio_status){var r=e.msg_audio_status,o=n.msg_audio_status;r.uint32_audio_origin_lost=t.getDifferenceValue(o.uint32_audio_origin_lost,r.uint32_audio_origin_lost),r.uint32_audio_receive=t.getDifferenceValue(o.uint32_audio_receive,r.uint32_audio_receive),r.uint32_audio_receive+=r.uint32_audio_origin_lost;var a=t.getDifferenceValue(o.uint32_audio_codec_bitrate,r.uint32_audio_codec_bitrate);r.uint32_audio_codec_bitrate=Math.round(8*a/d),r.uint32_audio_total_bitrate=Math.round(8*a/d)}if(e.msg_video_status&&n.msg_video_status){var i=e.msg_video_status,s=n.msg_video_status;i.forEach((function(e){var n=s.find((function(t){return t.uint32_video_stream_type===e.uint32_video_stream_type}));if(!n)return e.uint32_video_receive=0,e.uint32_video_origin_lost=0,e.uint32_video_codec_bitrate=0,e.uint32_video_receive_fps=0,void(e.uint32_video_dec_fps=0);var r=n.uint32_video_receive,o=n.uint32_video_origin_lost,a=n.uint32_video_codec_bitrate,i=n.uint32_video_receive_fps,c=n.uint32_video_dec_fps;e.uint32_video_origin_lost=t.getDifferenceValue(o,e.uint32_video_origin_lost),e.uint32_video_receive=t.getDifferenceValue(r,e.uint32_video_receive)+e.uint32_video_origin_lost;var l=t.getDifferenceValue(a,e.uint32_video_codec_bitrate);e.uint32_video_codec_bitrate=Math.round(8*l/d);var u=t.getDifferenceValue(i,e.uint32_video_receive_fps);e.uint32_video_receive_fps=Math.round(u/d),e.uint32_video_dec_fps=Math.round(t.getDifferenceValue(c,e.uint32_video_dec_fps)/d)}))}}})),r}},{key:"getStatsReport",value:(t=i(r().mark((function e(t){var n,o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.uplinkConnection,o=t.downlinkConnections,a=t.freezeMap,i={msg_up_stream_info:{msg_audio_status:{uint32_audio_format:0,uint32_audio_sample_rate:0,uint32_audio_codec_bitrate:0,uint32_audio_receive:0,uint32_audio_origin_lost:0,uint32_audio_level:0,uint32_audio_energy:0,audioLevel:0},msg_video_status:[{uint32_video_stream_type:0,uint32_video_codec_fps:0,uint32_video_capture_fps:0,uint32_video_width:0,uint32_video_height:0,uint32_video_codec_bitrate:0,uint32_video_receive:0,uint32_video_origin_lost:0,uint32_video_final_lost:0,uint32_video_enc_fps:0}],msg_network_status:{uint32_bitrate:0,uint32_rtt:0,uint32_lost:0}},msg_down_stream_info:[{msg_user_info:{str_identifier:"",uint64_tinyid:""},msg_audio_status:{uint32_audio_format:0,uint32_audio_sample_rate:0,uint32_audio_codec_bitrate:0,uint32_audio_total_bitrate:0,uint32_audio_level:0,uint32_audio_energy:0,uint32_audio_receive:0,uint32_audio_origin_lost:0,uint32_audio_final_lost:0,audioLevel:0},msg_video_status:[{uint32_video_stream_type:0,uint32_video_receive_fps:0,uint32_video_width:0,uint32_video_height:0,uint32_video_codec_bitrate:0,uint32_video_receive:0,uint32_video_origin_lost:0,uint32_video_block_time:0,uint32_video_dec_fps:0}],msg_network_status:{uint32_bitrate:0,uint32_rtt:0,uint32_lost:0,uint32_jitter:0}}]},e.next=4,this.getStats(n,o);case 4:return s=e.sent,"{}"===JSON.stringify(this.prevReport_)&&(this.prevReport_=JSON.parse(JSON.stringify(i))),this.prepareReport({stats:s,report:i,freezeMap:a,uplinkConnection:n,downlinkConnections:o}),this.prevReportTime_=Date.now(),e.abrupt("return",i);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"reset",value:function(){this.prevReportTime_=0,this.prevReport_={},this.prevEncoderImplementation_="",this.prevQualityLimitationReason_="",this.prevDecoderImplementationMap_=new Map}}]),e}(),cN=function(){function e(t){var n=t.signalChannel,r=t.connections,o=t.client;s(this,e),this.client_=o,this.signalChannel_=n,this.connections_=r,this.client_=o,this.log_=RE.createLogger({id:"q|"+this.client_.getUserId(),userId:this.client_.getUserId(),sdkAppId:this.client_.getSDKAppId()}),this.uplinkConnection_=null,this.uplinkNetworkQuality_=0,this.uplinkRTT_=0,this.uplinkLoss_=0,this.downlinkNetworkQuality_=0,this.downlinkRTT_=0,this.downlinkLoss_=0,this.downlinkPrevStatMap_=new Map,this.downlinkLossAndRTTMap_=new Map,this.interval_=-1,this.emitter_=new AI,this.initialize()}var t,n;return l(e,[{key:"uplinkNetworkQuality",get:function(){return this.uplinkNetworkQuality_},set:function(e){e!==this.uplinkNetworkQuality_&&this.log_.info("uplink network quality change ".concat(this.uplinkNetworkQuality," -> ").concat(e,", rtt: ").concat(this.uplinkRTT_,", loss: ").concat(this.uplinkLoss_)),this.uplinkNetworkQuality_=e}},{key:"downlinkNetworkQuality",get:function(){return this.downlinkNetworkQuality_},set:function(e){if(e!==this.downlinkNetworkQuality_){var t=this.getAverageLossAndRTT(M(this.downlinkLossAndRTTMap_.values())),n=t.rtt,r=t.loss;this.log_.info("downlink network quality change ".concat(this.downlinkNetworkQuality," -> ").concat(e,", rtt: ").concat(n,", loss: ").concat(r))}this.downlinkNetworkQuality_=e}},{key:"initialize",value:function(){var e=this;this.signalChannel_.on(Jj.UPLINK_NETWORK_STATS,(function(t){e.handleUplinkNetworkQuality(t)})),this.signalChannel_.on(Fj,this.handleSignalConnectionStateChange.bind(this)),this.start()}},{key:"handleUplinkNetworkQuality",value:function(e){if(!this.uplinkConnection_)return this.uplinkNetworkQuality=0,this.uplinkLoss_=0,void(this.uplinkRTT_=0);var t=this.uplinkConnection_.getPeerConnection();if(t&&this.isPeerConnectionDisconnected(t))return this.uplinkNetworkQuality=6,this.uplinkLoss_=0,void(this.uplinkRTT_=0);if(0===e.data.code){var n=e.data.data,r=n.expectAudPkg+n.expectVidPkg,o=n.recvAudPkg+n.recvVidPkg,a=r-o,i=n.delay;if(i&&this.updateDelay(i),0===r&&0===o)return;this.uplinkLoss_=a<=0?0:Math.round(a/r*100),this.uplinkRTT_=n.rtt,this.uplinkNetworkQuality=this.getNetworkQuality(this.uplinkLoss_,this.uplinkRTT_)}}},{key:"handleDownlinkNetworkQuality",value:(n=i(r().mark((function e(){var t,n,o,a,i,s,c,l,u,d,p,f,h,m,v,g=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.connections_&&0!==this.connections_.size){e.next=3;break}return this.downlinkNetworkQuality=0,e.abrupt("return");case 3:if(t=M(this.connections_.values()),n=t.filter((function(e){return e.getPeerConnection()&&e.getPeerConnection().connectionState===FM})),t.filter((function(e){return e.getPeerConnection()&&g.isPeerConnectionDisconnected(e.getPeerConnection())})).length!==t.length){e.next=9;break}return this.downlinkNetworkQuality=6,e.abrupt("return");case 9:o=0;case 10:if(!(o<n.length)){e.next=31;break}return a=n[o].getPeerConnection(),e.next=14,this.getStat(a);case 14:if(i=e.sent,s=i.rtt,c=i.totalPacketsLost,l=i.totalPacketsReceived,this.downlinkPrevStatMap_.has(a)){e.next=21;break}return this.downlinkPrevStatMap_.set(a,{totalPacketsLost:c,totalPacketsReceived:l}),e.abrupt("continue",28);case 21:u=0,d=this.downlinkPrevStatMap_.get(a),p=c-d.totalPacketsLost,f=l-d.totalPacketsReceived,u=p<=0||f<0?0:Math.round(p/(p+f)*100),this.downlinkPrevStatMap_.set(a,{totalPacketsLost:c,totalPacketsReceived:l}),this.downlinkLossAndRTTMap_.set(a,{rtt:s,loss:u,userId:n[o].getUserId()});case 28:o++,e.next=10;break;case 31:if(M(this.downlinkPrevStatMap_.keys()).forEach((function(e){g.isPeerConnectionDisconnected(e)&&(g.downlinkPrevStatMap_.delete(e),g.downlinkLossAndRTTMap_.delete(e))})),0!==this.downlinkLossAndRTTMap_.size){e.next=34;break}return e.abrupt("return");case 34:h=this.getAverageLossAndRTT(M(this.downlinkLossAndRTTMap_.values())),m=h.rtt,v=h.loss,this.downlinkRTT_=m,this.downlinkLoss_=v,this.downlinkNetworkQuality=this.getNetworkQuality(v,m);case 38:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"getStat",value:(t=i(r().mark((function e(t){var n,o,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={rtt:0,totalPacketsLost:0,totalPacketsReceived:0},t&&LA()){e.next=3;break}return e.abrupt("return",n);case 3:o=t.getReceivers(),e.prev=4,a=0;case 6:if(!(a<o.length)){e.next=15;break}return i=o[a],e.next=10,i.getStats();case 10:e.sent.forEach((function(e){"candidate-pair"===e.type&&dI(e.currentRoundTripTime)&&(n.rtt=Math.round(1e3*e.currentRoundTripTime)),"inbound-rtp"!==e.type||e.mediaType!==wO&&e.mediaType!==SO||(n.totalPacketsLost+=e.packetsLost,n.totalPacketsReceived+=e.packetsReceived)}));case 12:a++,e.next=6;break;case 15:return e.abrupt("return",n);case 18:return e.prev=18,e.t0=e.catch(4),e.abrupt("return",n);case 21:case"end":return e.stop()}}),e,null,[[4,18]])}))),function(e){return t.apply(this,arguments)})},{key:"getAverageLossAndRTT",value:function(e){var t={rtt:0,loss:0};return Array.isArray(e)&&e.length>0&&(e.forEach((function(e){t.rtt+=e.rtt,t.loss+=e.loss})),Object.keys(t).forEach((function(n){t[n]=Math.round(t[n]/e.length)}))),t}},{key:"getNetworkQuality",value:function(e,t){return e>50||t>500?5:e>30||t>350?4:e>20||t>200?3:e>10||t>100?2:e>=0||t>=0?1:0}},{key:"handleSignalConnectionStateChange",value:function(e){e.state===Yj?(this.uplinkRTT_=0,this.uplinkLoss_=0,this.uplinkNetworkQuality=6):e.state===Wj&&6===this.uplinkNetworkQuality&&(this.uplinkNetworkQuality=5)}},{key:"handleUplinkConnectionStateChange",value:function(e){var t=e.state;t===LM?(this.uplinkLoss_=0,this.uplinkRTT_=0,this.uplinkNetworkQuality=6):t===RM&&6===this.uplinkNetworkQuality&&(this.uplinkNetworkQuality=5)}},{key:"isPeerConnectionDisconnected",value:function(e){return!(!e||e.connectionState!==BM&&e.connectionState!==UM&&e.connectionState!==VM)}},{key:"setUplinkConnection",value:function(e){this.uplinkConnection_=e,this.uplinkConnection_?this.uplinkConnection_.on(XA.CONNECTION_STATE_CHANGED,this.handleUplinkConnectionStateChange.bind(this)):(this.uplinkNetworkQuality=0,this.uplinkRTT_=0,this.uplinkLoss_=0)}},{key:"start",value:function(){var e=this;-1===this.interval_?(this.log_.info("start network quality calculating"),this.interval_=mA.run(uC,(function(){e.handleDownlinkNetworkQuality(),NI.emit(SE,{client:e.client_,uplinkNetworkQuality:e.uplinkNetworkQuality,downlinkNetworkQuality:e.downlinkNetworkQuality,uplinkRTT:e.uplinkRTT_,uplinkLoss:e.uplinkLoss_,downlinkRTT:e.downlinkRTT_,downlinkLoss:e.downlinkLoss_,downlinkLossAndRTTMap:e.downlinkLossAndRTTMap_}),e.emitter_.emit(QA.NETWORK_QUALITY,{uplinkNetworkQuality:e.uplinkNetworkQuality,downlinkNetworkQuality:e.downlinkNetworkQuality,uplinkRTT:e.uplinkRTT_,uplinkLoss:e.uplinkLoss_,downlinkRTT:e.downlinkRTT_,downlinkLoss:e.downlinkLoss_})}),{delay:2e3})):this.log_.info("network quality calculating is already started")}},{key:"stop",value:function(){this.log_.info("stop network quality calculating"),-1!==this.interval_&&(mA.clearTask(this.interval_),this.interval_=-1),this.downlinkLossAndRTTMap_.clear(),this.downlinkPrevStatMap_.clear()}},{key:"on",value:function(e,t){this.emitter_.on(e,t)}},{key:"updateDelay",value:function(e){var t=this;e.forEach((function(e){var n=e.srcTinyId,r=e.videoDelay,o=e.audioDelay,a=t.connections_.get(n);a&&a.setDelay({videoDelay:r,audioDelay:o})}))}}]),e}(),lN=function(){function e(t){s(this,e),this.log_=RE.createLogger({id:t.client.getUserId(),userId:t.client.getUserId(),sdkAppId:t.client.getSDKAppId()}),this.localStream_=null,this.prevDevices_=[],this.initialize()}var t,n;return l(e,[{key:"initialize",value:function(){navigator.mediaDevices&&navigator.mediaDevices.addEventListener&&(this.onDeviceChange=this.onDeviceChange.bind(this),navigator.mediaDevices.addEventListener("devicechange",this.onDeviceChange))}},{key:"destroy",value:function(){navigator.mediaDevices&&navigator.mediaDevices.removeEventListener&&navigator.mediaDevices.removeEventListener("devicechange",this.onDeviceChange)}},{key:"onDeviceChange",value:(n=i(r().mark((function e(){var t,n,o,a=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.localStream_&&this.localStream_.getMediaStream()&&!this.localStream_.getScreen()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,hN();case 4:t=e.sent,n=t.filter((function(e){return a.prevDevices_.findIndex((function(t){var n=t.deviceId;return e.deviceId===n}))<0})),o=this.prevDevices_.filter((function(e){return t.findIndex((function(t){var n=t.deviceId;return e.deviceId===n}))<0})),n.length>0&&this.handleDeviceAdded(this.prevDevices_,n),o.length>0&&this.handleDeviceRemoved(t,o),this.prevDevices_=t;case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"setLocalStream",value:(t=i(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}return e.next=3,hN();case 3:this.prevDevices_=e.sent;case 4:this.localStream_=t;case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"handleDeviceAdded",value:function(e,t){var n,r;if(this.localStream_){this.log_.warn("devicesAdded: ".concat(JSON.stringify(t))),this.localStream_.updateDeviceIdInUse();var o=t.filter((function(e){return e.kind===HO})),a=t.filter((function(e){return e.kind===GO})),i=e.filter((function(e){return e.kind===HO})),s=e.filter((function(e){return e.kind===GO})),c=o.length>0&&0===i.length&&"live"!==(null===(n=this.localStream_.getVideoTrack())||void 0===n?void 0:n.readyState),l=a.length>0&&0===s.length&&"live"!==(null===(r=this.localStream_.getAudioTrack())||void 0===r?void 0:r.readyState);if(l&&c)return this.log_.info("new microphone and camera detected, but there was no device before."),void this.localStream_.recoverCapture({audio:!0,video:!0,cameraId:o[0].deviceId,microphoneId:a[0].deviceId});c&&(this.log_.info("new camera detected, but there was no camera before."),this.localStream_.recoverCapture({audio:!1,video:!0,cameraId:o[0].deviceId})),l&&(this.log_.info("new microphone detected, but there was no microphone before."),this.localStream_.recoverCapture({audio:!0,video:!1,microphoneId:a[0].deviceId}))}}},{key:"handleDeviceRemoved",value:function(e,t){if(this.localStream_){this.log_.warn("devicesRemoved: ".concat(JSON.stringify(t))),this.localStream_.updateDeviceIdInUse();var n=!1,r=!1,o=this.localStream_.getCameraId(),a=this.localStream_.getMicrophoneId();if(a===eC){var i=this.localStream_.getMicrophoneGroupId(),s=e.filter((function(e){return e.deviceId===eC&&e.kind===GO}))[0];s&&s.groupId!==i&&(r=!0)}if(t.forEach((function(e){var t=e.deviceId;o.length>0&&t===o?n=!0:a.length>0&&t===a&&(r=!0)})),n&&r)return this.log_.warn("current camera and microphone in use is lost, cameraId: ".concat(o,", microphoneId: ").concat(a)),void((this.localStream_.getAudio()||this.localStream_.getVideo())&&this.localStream_.recoverCapture({video:!0,audio:!0}));n&&(this.log_.warn("current camera in use is lost, deviceId: ".concat(o)),this.localStream_.getVideo()&&this.localStream_.recoverCapture({video:!0,audio:!1})),r&&(this.log_.warn("current microphone in use is lost, deviceId: ".concat(a)),this.localStream_.getAudio()&&this.localStream_.recoverCapture({video:!1,audio:!0}))}}}]),e}();function uN(){return uN=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!VA()&&!UA()){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,pN();case 4:return t=e.sent,e.abrupt("return",t.filter((function(e){return e.kind===HO})).map((function(e,t){var n=e.label;e.label||(n="camera_"+t);var r={label:n,deviceId:e.deviceId,kind:e.kind};return e.groupId&&(r.groupId=e.groupId),e.getCapabilities&&(r.getCapabilities=function(){return e.getCapabilities()}),r})));case 6:case"end":return e.stop()}}),e)}))),uN.apply(this,arguments)}var dN=new Set;function pN(){return fN.apply(this,arguments)}function fN(){return(fN=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!VA()&&!UA()){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,navigator.mediaDevices.enumerateDevices();case 4:return(t=e.sent).forEach((function(e){dN.add("".concat(e.deviceId,"_").concat(e.kind))})),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function hN(){return mN.apply(this,arguments)}function mN(){return mN=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pN();case 2:return t=e.sent,e.abrupt("return",t.filter((function(e){return e.kind!==GO||e.deviceId!=tC})).map((function(e,t){var n=e.label;e.label||(n=e.kind+"_"+t);var r={label:n,deviceId:e.deviceId,kind:e.kind};return e.groupId&&(r.groupId=e.groupId),e.getCapabilities&&(r.getCapabilities=function(){return e.getCapabilities()}),r})));case 4:case"end":return e.stop()}}),e)}))),mN.apply(this,arguments)}function vN(){return gN.apply(this,arguments)}function gN(){return gN=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pN();case 2:return t=e.sent,e.abrupt("return",t.filter((function(e){return e.kind===GO&&e.deviceId!==tC})).map((function(e,t){var n=e.label;e.label||(n="microphone_"+t);var r={label:n,deviceId:e.deviceId,kind:e.kind};return e.groupId&&(r.groupId=e.groupId),e.getCapabilities&&(r.getCapabilities=function(){return e.getCapabilities()}),r})));case 4:case"end":return e.stop()}}),e)}))),gN.apply(this,arguments)}function _N(){return bN.apply(this,arguments)}function bN(){return bN=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pN();case 2:return t=e.sent,e.abrupt("return",t.filter((function(e){return"audiooutput"===e.kind})).map((function(e,t){var n=e.label;e.label||(n="speaker_"+t);var r={label:n,deviceId:e.deviceId,kind:e.kind};return e.groupId&&(r.groupId=e.groupId),r})));case 4:case"end":return e.stop()}}),e)}))),bN.apply(this,arguments)}function yN(e){var t;if(e instanceof CanvasCaptureMediaStreamTrack)return!1;if(!(e instanceof window.MediaStreamTrack))return!1;var n=e.label.toLocaleLowerCase();if(n.includes("camera")||n.includes("webcam"))return!0;var r="".concat(null===(t=e.getSettings())||void 0===t?void 0:t.deviceId,"_").concat(HO);return!!dN.has(r)}function ON(e,t){return MN.apply(this,arguments)}function MN(){return(MN=i(r().mark((function e(t,n){var o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vN();case 2:if(o=e.sent,(null==(a=o.find((function(e){return e.deviceId===eC})))?void 0:a.groupId)!==t||a.label!==n){e.next=6;break}return e.abrupt("return",!0);case 6:return e.abrupt("return",!1);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var kN,CN=wn.exports,wN=on,SN=un,TN=Qs,IN=Ds,EN=x,jN=pt,DN=function(e,t,n,r){try{return r?t(SN(n)[0],n[1]):t(n)}catch(aK){TN(e,"throw",aK)}},LN=Rs,AN=Cu,NN=Pr,RN=Wi,xN=Ks,PN=Fs,UN=Array,VN=function(e){var t=jN(e),n=AN(this),r=arguments.length,o=r>1?arguments[1]:void 0,a=void 0!==o;a&&(o=IN(o,r>2?arguments[2]:void 0));var i,s,c,l,u,d,p=PN(t),f=0;if(!p||this===UN&&LN(p))for(i=NN(t),s=n?new this(i):UN(i);i>f;f++)d=a?o(t[f],f):t[f],RN(s,f,d);else for(u=(l=xN(t,p)).next,s=n?new this:[];!(c=EN(u,l)).done;f++)d=a?DN(l,o,[c.value,f],!0):c.value,RN(s,f,d);return s.length=f,s},BN=te,FN=2147483647,GN=/[^\0-\u007E]/,HN=/[.\u3002\uFF0E\uFF61]/g,YN="Overflow: input needs wider integers to process",zN=RangeError,qN=BN(HN.exec),WN=Math.floor,KN=String.fromCharCode,$N=BN("".charCodeAt),JN=BN([].join),XN=BN([].push),QN=BN("".replace),ZN=BN("".split),eR=BN("".toLowerCase),tR=function(e){return e+22+75*(e<26)},nR=function(e,t,n){var r=0;for(e=n?WN(e/700):e>>1,e+=WN(e/t);e>455;)e=WN(e/35),r+=36;return WN(r+36*e/(e+38))},rR=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=$N(e,n++);if(o>=55296&&o<=56319&&n<r){var a=$N(e,n++);56320==(64512&a)?XN(t,((1023&o)<<10)+(1023&a)+65536):(XN(t,o),n--)}else XN(t,o)}return t}(e);var n,r,o=e.length,a=128,i=0,s=72;for(n=0;n<e.length;n++)(r=e[n])<128&&XN(t,KN(r));var c=t.length,l=c;for(c&&XN(t,"-");l<o;){var u=FN;for(n=0;n<e.length;n++)(r=e[n])>=a&&r<u&&(u=r);var d=l+1;if(u-a>WN((FN-i)/d))throw zN(YN);for(i+=(u-a)*d,a=u,n=0;n<e.length;n++){if((r=e[n])<a&&++i>FN)throw zN(YN);if(r==a){for(var p=i,f=36;;){var h=f<=s?1:f>=s+26?26:f-s;if(p<h)break;var m=p-h,v=36-h;XN(t,KN(tR(h+m%v))),p=WN(m/v),f+=36}XN(t,KN(tR(p))),s=nR(i,d,l==c),i=0,l++}}i++,a++}return JN(t,"")},oR=So,aR=L,iR=hh,sR=E,cR=Ds,lR=te,uR=kr,dR=function(e,t,n){return n.get&&CN(n.get,t,{getter:!0}),n.set&&CN(n.set,t,{setter:!0}),wN.f(e,t,n)},pR=mc,fR=mt,hR=dj,mR=VN,vR=Zi,gR=yl.codeAt,_R=function(e){var t,n,r=[],o=ZN(QN(eR(e),HN,"."),".");for(t=0;t<o.length;t++)n=o[t],XN(r,qN(GN,n)?"xn--"+rR(n):n);return JN(r,".")},bR=dl,yR=xa,OR=Xl,MR=Nm,kR=ir,CR=kR.set,wR=kR.getterFor("URL"),SR=MR.URLSearchParams,TR=MR.getState,IR=sR.URL,ER=sR.TypeError,jR=sR.parseInt,DR=Math.floor,LR=Math.pow,AR=lR("".charAt),NR=lR(/./.exec),RR=lR([].join),xR=lR(1..toString),PR=lR([].pop),UR=lR([].push),VR=lR("".replace),BR=lR([].shift),FR=lR("".split),GR=lR("".slice),HR=lR("".toLowerCase),YR=lR([].unshift),zR="Invalid scheme",qR="Invalid host",WR="Invalid port",KR=/[a-z]/i,$R=/[\d+-.a-z]/i,JR=/\d/,XR=/^0x/i,QR=/^[0-7]+$/,ZR=/^\d+$/,ex=/^[\da-f]+$/i,tx=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nx=/[\0\t\n\r #/:<>?@[\\\]^|]/,rx=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,ox=/[\t\n\r]/g,ax=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)YR(t,e%256),e=DR(e/256);return RR(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,a=0;a<8;a++)0!==e[a]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=a),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=xR(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ix={},sx=hR({},ix,{" ":1,'"':1,"<":1,">":1,"`":1}),cx=hR({},sx,{"#":1,"?":1,"{":1,"}":1}),lx=hR({},cx,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ux=function(e,t){var n=gR(e,0);return n>32&&n<127&&!fR(t,e)?e:encodeURIComponent(e)},dx={ftp:21,file:null,http:80,https:443,ws:80,wss:443},px=function(e,t){var n;return 2==e.length&&NR(KR,AR(e,0))&&(":"==(n=AR(e,1))||!t&&"|"==n)},fx=function(e){var t;return e.length>1&&px(GR(e,0,2))&&(2==e.length||"/"===(t=AR(e,2))||"\\"===t||"?"===t||"#"===t)},hx=function(e){return"."===e||"%2e"===HR(e)},mx={},vx={},gx={},_x={},bx={},yx={},Ox={},Mx={},kx={},Cx={},wx={},Sx={},Tx={},Ix={},Ex={},jx={},Dx={},Lx={},Ax={},Nx={},Rx={},xx=function(e,t,n){var r,o,a,i=bR(e);if(t){if(o=this.parse(i))throw ER(o);this.searchParams=null}else{if(void 0!==n&&(r=new xx(n,!0)),o=this.parse(i,null,r))throw ER(o);(a=TR(new SR)).bindURL(this),this.searchParams=a}};xx.prototype={type:"URL",parse:function(e,t,n){var r,o,a,i,s,c=this,l=t||mx,u=0,d="",p=!1,f=!1,h=!1;for(e=bR(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=VR(e,rx,"")),e=VR(e,ox,""),r=mR(e);u<=r.length;){switch(o=r[u],l){case mx:if(!o||!NR(KR,o)){if(t)return zR;l=gx;continue}d+=HR(o),l=vx;break;case vx:if(o&&(NR($R,o)||"+"==o||"-"==o||"."==o))d+=HR(o);else{if(":"!=o){if(t)return zR;d="",l=gx,u=0;continue}if(t&&(c.isSpecial()!=fR(dx,d)||"file"==d&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=d,t)return void(c.isSpecial()&&dx[c.scheme]==c.port&&(c.port=null));d="","file"==c.scheme?l=Ix:c.isSpecial()&&n&&n.scheme==c.scheme?l=_x:c.isSpecial()?l=Mx:"/"==r[u+1]?(l=bx,u++):(c.cannotBeABaseURL=!0,UR(c.path,""),l=Ax)}break;case gx:if(!n||n.cannotBeABaseURL&&"#"!=o)return zR;if(n.cannotBeABaseURL&&"#"==o){c.scheme=n.scheme,c.path=vR(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=Rx;break}l="file"==n.scheme?Ix:yx;continue;case _x:if("/"!=o||"/"!=r[u+1]){l=yx;continue}l=kx,u++;break;case bx:if("/"==o){l=Cx;break}l=Lx;continue;case yx:if(c.scheme=n.scheme,o==kN)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=vR(n.path),c.query=n.query;else if("/"==o||"\\"==o&&c.isSpecial())l=Ox;else if("?"==o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=vR(n.path),c.query="",l=Nx;else{if("#"!=o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=vR(n.path),c.path.length--,l=Lx;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=vR(n.path),c.query=n.query,c.fragment="",l=Rx}break;case Ox:if(!c.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=Lx;continue}l=Cx}else l=kx;break;case Mx:if(l=kx,"/"!=o||"/"!=AR(d,u+1))continue;u++;break;case kx:if("/"!=o&&"\\"!=o){l=Cx;continue}break;case Cx:if("@"==o){p&&(d="%40"+d),p=!0,a=mR(d);for(var m=0;m<a.length;m++){var v=a[m];if(":"!=v||h){var g=ux(v,lx);h?c.password+=g:c.username+=g}else h=!0}d=""}else if(o==kN||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(p&&""==d)return"Invalid authority";u-=mR(d).length+1,d="",l=wx}else d+=o;break;case wx:case Sx:if(t&&"file"==c.scheme){l=jx;continue}if(":"!=o||f){if(o==kN||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(c.isSpecial()&&""==d)return qR;if(t&&""==d&&(c.includesCredentials()||null!==c.port))return;if(i=c.parseHost(d))return i;if(d="",l=Dx,t)return;continue}"["==o?f=!0:"]"==o&&(f=!1),d+=o}else{if(""==d)return qR;if(i=c.parseHost(d))return i;if(d="",l=Tx,t==Sx)return}break;case Tx:if(!NR(JR,o)){if(o==kN||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()||t){if(""!=d){var _=jR(d,10);if(_>65535)return WR;c.port=c.isSpecial()&&_===dx[c.scheme]?null:_,d=""}if(t)return;l=Dx;continue}return WR}d+=o;break;case Ix:if(c.scheme="file","/"==o||"\\"==o)l=Ex;else{if(!n||"file"!=n.scheme){l=Lx;continue}if(o==kN)c.host=n.host,c.path=vR(n.path),c.query=n.query;else if("?"==o)c.host=n.host,c.path=vR(n.path),c.query="",l=Nx;else{if("#"!=o){fx(RR(vR(r,u),""))||(c.host=n.host,c.path=vR(n.path),c.shortenPath()),l=Lx;continue}c.host=n.host,c.path=vR(n.path),c.query=n.query,c.fragment="",l=Rx}}break;case Ex:if("/"==o||"\\"==o){l=jx;break}n&&"file"==n.scheme&&!fx(RR(vR(r,u),""))&&(px(n.path[0],!0)?UR(c.path,n.path[0]):c.host=n.host),l=Lx;continue;case jx:if(o==kN||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&px(d))l=Lx;else if(""==d){if(c.host="",t)return;l=Dx}else{if(i=c.parseHost(d))return i;if("localhost"==c.host&&(c.host=""),t)return;d="",l=Dx}continue}d+=o;break;case Dx:if(c.isSpecial()){if(l=Lx,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=kN&&(l=Lx,"/"!=o))continue}else c.fragment="",l=Rx;else c.query="",l=Nx;break;case Lx:if(o==kN||"/"==o||"\\"==o&&c.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(s=HR(s=d))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"==o||"\\"==o&&c.isSpecial()||UR(c.path,"")):hx(d)?"/"==o||"\\"==o&&c.isSpecial()||UR(c.path,""):("file"==c.scheme&&!c.path.length&&px(d)&&(c.host&&(c.host=""),d=AR(d,0)+":"),UR(c.path,d)),d="","file"==c.scheme&&(o==kN||"?"==o||"#"==o))for(;c.path.length>1&&""===c.path[0];)BR(c.path);"?"==o?(c.query="",l=Nx):"#"==o&&(c.fragment="",l=Rx)}else d+=ux(o,cx);break;case Ax:"?"==o?(c.query="",l=Nx):"#"==o?(c.fragment="",l=Rx):o!=kN&&(c.path[0]+=ux(o,ix));break;case Nx:t||"#"!=o?o!=kN&&("'"==o&&c.isSpecial()?c.query+="%27":c.query+="#"==o?"%23":ux(o,ix)):(c.fragment="",l=Rx);break;case Rx:o!=kN&&(c.fragment+=ux(o,sx))}u++}},parseHost:function(e){var t,n,r;if("["==AR(e,0)){if("]"!=AR(e,e.length-1))return qR;if(t=function(e){var t,n,r,o,a,i,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,d=0,p=function(){return AR(e,d)};if(":"==p()){if(":"!=AR(e,1))return;d+=2,u=++l}for(;p();){if(8==l)return;if(":"!=p()){for(t=n=0;n<4&&NR(ex,p());)t=16*t+jR(p(),16),d++,n++;if("."==p()){if(0==n)return;if(d-=n,l>6)return;for(r=0;p();){if(o=null,r>0){if(!("."==p()&&r<4))return;d++}if(!NR(JR,p()))return;for(;NR(JR,p());){if(a=jR(p(),10),null===o)o=a;else{if(0==o)return;o=10*o+a}if(o>255)return;d++}c[l]=256*c[l]+o,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==p()){if(d++,!p())return}else if(p())return;c[l++]=t}else{if(null!==u)return;d++,u=++l}}if(null!==u)for(i=l-u,l=7;0!=l&&i>0;)s=c[l],c[l--]=c[u+i-1],c[u+--i]=s;else if(8!=l)return;return c}(GR(e,1,-1)),!t)return qR;this.host=t}else if(this.isSpecial()){if(e=_R(e),NR(tx,e))return qR;if(t=function(e){var t,n,r,o,a,i,s,c=FR(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=c[r]))return e;if(a=10,o.length>1&&"0"==AR(o,0)&&(a=NR(XR,o)?16:8,o=GR(o,8==a?1:2)),""===o)i=0;else{if(!NR(10==a?ZR:8==a?QR:ex,o))return e;i=jR(o,a)}UR(n,i)}for(r=0;r<t;r++)if(i=n[r],r==t-1){if(i>=LR(256,5-t))return null}else if(i>255)return null;for(s=PR(n),r=0;r<n.length;r++)s+=n[r]*LR(256,3-r);return s}(e),null===t)return qR;this.host=t}else{if(NR(nx,e))return qR;for(t="",n=mR(e),r=0;r<n.length;r++)t+=ux(n[r],ix);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return fR(dx,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&px(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,o=e.host,a=e.port,i=e.path,s=e.query,c=e.fragment,l=t+":";return null!==o?(l+="//",e.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=ax(o),null!==a&&(l+=":"+a)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?i[0]:i.length?"/"+RR(i,"/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},setHref:function(e){var t=this.parse(e);if(t)throw ER(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Px(e.path[0]).origin}catch(aK){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ax(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(bR(e)+":",mx)},getUsername:function(){return this.username},setUsername:function(e){var t=mR(bR(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=ux(t[n],lx)}},getPassword:function(){return this.password},setPassword:function(e){var t=mR(bR(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=ux(t[n],lx)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ax(e):ax(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,wx)},getHostname:function(){var e=this.host;return null===e?"":ax(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Sx)},getPort:function(){var e=this.port;return null===e?"":bR(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=bR(e))?this.port=null:this.parse(e,Tx))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+RR(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Dx))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=bR(e))?this.query=null:("?"==AR(e,0)&&(e=GR(e,1)),this.query="",this.parse(e,Nx)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=bR(e))?("#"==AR(e,0)&&(e=GR(e,1)),this.fragment="",this.parse(e,Rx)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Px=function(e){var t=pR(this,Ux),n=OR(arguments.length,1)>1?arguments[1]:void 0,r=CR(t,new xx(e,!1,n));aR||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Ux=Px.prototype,Vx=function(e,t){return{get:function(){return wR(this)[e]()},set:t&&function(e){return wR(this)[t](e)},configurable:!0,enumerable:!0}};if(aR&&(dR(Ux,"href",Vx("serialize","setHref")),dR(Ux,"origin",Vx("getOrigin")),dR(Ux,"protocol",Vx("getProtocol","setProtocol")),dR(Ux,"username",Vx("getUsername","setUsername")),dR(Ux,"password",Vx("getPassword","setPassword")),dR(Ux,"host",Vx("getHost","setHost")),dR(Ux,"hostname",Vx("getHostname","setHostname")),dR(Ux,"port",Vx("getPort","setPort")),dR(Ux,"pathname",Vx("getPathname","setPathname")),dR(Ux,"search",Vx("getSearch","setSearch")),dR(Ux,"searchParams",Vx("getSearchParams")),dR(Ux,"hash",Vx("getHash","setHash"))),uR(Ux,"toJSON",(function(){return wR(this).serialize()}),{enumerable:!0}),uR(Ux,"toString",(function(){return wR(this).serialize()}),{enumerable:!0}),IR){var Bx=IR.createObjectURL,Fx=IR.revokeObjectURL;Bx&&uR(Px,"createObjectURL",cR(Bx,IR)),Fx&&uR(Px,"revokeObjectURL",cR(Fx,IR))}yR(Px,"URL"),oR({global:!0,constructor:!0,forced:!iR,sham:!aR},{URL:Px});var Gx,Hx,Yx=new Blob(["class VolumeMeter extends AudioWorkletProcessor{constructor(){super();this.volume=0;this.intervalTime=200;this.tick=this.intervalTime;this.isStop=false;this.port.onmessage=event=>{const{data}=event;switch(data.name){case'setIntervalTime':this.intervalTime=data.intervalTime;break;case'stop':this.isStop=true;break}}}process(inputs){const input=inputs[0];if(this.isStop){return false}if(input.length>0){const firstChannel=input[0];let sum=0;let rms;for(let i=0;i<firstChannel.length;++i){sum+=firstChannel[i]*firstChannel[i]}rms=Math.sqrt(sum/firstChannel.length);this.volume=Math.max(rms,this.volume*0.95);this.tick-=firstChannel.length;if(this.tick<0){this.tick+=(this.intervalTime/1000)*sampleRate;this.port.postMessage({volume:this.volume})}}return true}}registerProcessor('volume-meter',VolumeMeter);"],{type:"application/javascript"}),zx=!1,qx=function(){function e(t){s(this,e),this.context_=t.context,this.addModuleToContext()}var t;return l(e,[{key:"addModuleToContext",value:(t=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.context_.audioWorklet.addModule(URL.createObjectURL(Yx));case 3:RE.info("worklet addModule success"),NI.emit(IE),zx=!0,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),RE.info("worklet addModule catch error. ".concat(e.t0.message)),NI.emit(EE);case 12:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return t.apply(this,arguments)})},{key:"initWorkletSuccess",get:function(){return zx}}]),e}(),Wx=0,Kx=function(){function e(t){s(this,e);var n=t.track,r=t.log,o=t.stream;this.volume_=0,this.log_=r,this.track_=n,this.stream_=o,Wx+=1,Gx||(Gx=CI()),this.audioCtx_=Gx,this.destination_=this.audioCtx_.destination;var a=new MediaStream;a.addTrack(this.track_),this.streamSource_=this.audioCtx_.createMediaStreamSource(a),this.audioWorkletNode_=null,this.scriptProcessorNode_=null,this.interval_=200,NI.on(TE,this.resume,this),NI.on(JI,this.handleAudioLevelInterval,this),SI?(NI.on(IE,this.initAudioWorklet,this),NI.on(EE,this.initScriptProcessor,this),this.preload()):this.initScriptProcessor()}return l(e,[{key:"preload",value:function(){Hx?Hx.initWorkletSuccess&&this.initAudioWorklet():Hx=new qx({context:Gx})}},{key:"initAudioWorklet",value:function(){var e=this;if(!this.audioWorkletNode_)try{this.audioWorkletNode_=new AudioWorkletNode(this.audioCtx_,"volume-meter"),this.audioWorkletNode_.port.onmessage=function(t){e.volume_=t.data.volume||0},this.streamSource_.connect(this.audioWorkletNode_).connect(this.destination_),this.handleAudioLevelInterval({interval:this.interval_})}catch(aK){this.log_.warn("load volume meter failed, load again. error: "+aK),this.initScriptProcessor()}}},{key:"initScriptProcessor",value:function(){var e=this;if(!this.scriptProcessorNode_)try{this.scriptProcessorNode_=this.audioCtx_.createScriptProcessor(2048,1,1),this.scriptProcessorNode_.onaudioprocess=function(t){for(var n=t.inputBuffer.getChannelData(0),r=0,o=0;o<n.length;++o)r+=n[o]*n[o];e.volume_=Math.sqrt(r/n.length)||0},this.streamSource_.connect(this.scriptProcessorNode_),this.scriptProcessorNode_.connect(this.destination_)}catch(aK){this.log_.error("volumeMeter init script processor error: "+aK),Wx-=1}}},{key:"destroy",value:function(){var e;this.streamSource_&&this.streamSource_.disconnect(),this.scriptProcessorNode_&&(this.scriptProcessorNode_.onaudioprocess=null,this.scriptProcessorNode_.disconnect()),this.audioWorkletNode_&&(this.audioWorkletNode_.port.postMessage({name:"stop"}),this.audioWorkletNode_.port.onmessage=null,this.audioWorkletNode_.disconnect()),this.audioWorkletNode_=null,this.scriptProcessorNode_=null,this.audioCtx_=null,NI.off(TE,this.resume,this),NI.off(JI,this.handleAudioLevelInterval,this),NI.off(IE,this.initAudioWorklet,this),NI.off(EE,this.initScriptProcessor,this),Wx>0&&(Wx-=1),0===Wx&&(null===(e=Gx)||void 0===e||e.close(),Gx=null,Hx=null)}},{key:"resume",value:function(){var e;null===(e=Gx)||void 0===e||e.resume()}},{key:"getInternalAudioLevel",value:function(){return this.volume_}},{key:"getCalculatedVolume",value:function(){return this.volume_.toFixed(2)}},{key:"handleAudioLevelInterval",value:function(e){var t,n=e.interval;this.interval_=n,null===(t=this.audioWorkletNode_)||void 0===t||t.port.postMessage({name:"setIntervalTime",intervalTime:n})}}]),e}(),$x=function(){function e(t){s(this,e),this.stream_=t.stream,this.userId_=t.stream.getUserId(),this.log_=this.stream_.getLogger(),this.track_=t.track,t.gainedTrack&&(this.gainedTrack_=t.gainedTrack),this.div_=t.div,this.muted_=t.muted,this.outputDeviceId_=t.outputDeviceId,this.volume_=t.volume,this.pausedRetryCount_=5,this.emitter_=new AI,this.initializeElement(),this.state_="NONE",this.volumeMeter_=new Kx({stream:this.stream_,track:this.gainedTrack_||this.track_,log:this.log_})}var t,n,o,a;return l(e,[{key:"isPlaying",get:function(){return this.state_===ZO}},{key:"initializeElement",value:function(){if(this.isAudioElementInit()){var e=new MediaStream;e.addTrack(this.gainedTrack_||this.track_);var t=document.createElement(wO);t.srcObject=e,t.muted=this.muted_,t.setAttribute("id","audio_".concat(this.stream_.getId())),t.setAttribute("autoplay","autoplay"),t.setAttribute("playsinline","playsinline"),this.div_.appendChild(t),this.element_=t}this.handleEvents()}},{key:"setMuted",value:function(e){this.element_&&(this.element_.muted=e,this.muted_=e)}},{key:"play",value:(a=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.outputDeviceId_||!this.element_){e.next=3;break}return e.next=3,this.element_.setSinkId(this.outputDeviceId_);case 3:if(this.setVolume(this.volume_),e.prev=4,!this.element_){e.next=8;break}return e.next=8,this.element_.play();case 8:e.next=16;break;case 10:if(e.prev=10,e.t0=e.catch(4),t=eI({key:Qw,data:{media:"Audio",error:e.t0}}),this.log_.warn(t),!t.includes("NotAllowedError")){e.next=16;break}throw new OD({code:yD.PLAY_NOT_ALLOWED,message:t});case 16:case"end":return e.stop()}}),e,this,[[4,10]])}))),function(){return a.apply(this,arguments)})},{key:"handleEvents",value:function(){this.handleElementEvent=this.handleElementEvent.bind(this),this.handleTrackEvent=this.handleTrackEvent.bind(this),this.element_&&(this.element_.addEventListener(UO,this.handleElementEvent),this.element_.addEventListener(PO,this.handleElementEvent),this.element_.addEventListener(VO,this.handleElementEvent),this.element_.addEventListener(BO,this.handleElementEvent)),this.track_.addEventListener(PO,this.handleTrackEvent),this.track_.addEventListener(RO,this.handleTrackEvent),this.track_.addEventListener(xO,this.handleTrackEvent),this.track_.readyState===PO&&this.handleTrackEvent({type:PO}),this.track_.muted&&this.handleTrackEvent({type:RO})}},{key:"handleElementEvent",value:(o=i(r().mark((function e(t){var n,o,a,i,s,c,l,u=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.type,e.t0=n,e.next=e.t0===UO?4:e.t0===PO?9:e.t0===VO?12:e.t0===BO?21:33;break;case 4:return this.log_.info("audio player is playing"),this.state_=ZO,NI.emit(oE,{stream:this.stream_}),this.emitter_.emit(oN,{state:this.state_,reason:UO}),e.abrupt("break",33);case 9:return this.log_.info("audio player is ended"),this.state_!==tM&&(this.state_=tM,this.emitter_.emit(oN,{state:this.state_,reason:PO})),e.abrupt("break",33);case 12:return this.log_.info("audio player is paused"),this.state_=eM,this.emitter_.emit(oN,{state:this.state_,reason:VO}),(o=this.div_&&document.getElementById(this.div_.id))||this.log_.warn("audio player has been remove, element ID: ".concat(this.div_.id)),a=RT(),this.pausedRetryCount_>0&&(dI(a)&&a<=70||!o)&&(this.resume(),this.pausedRetryCount_--),zS&&(this.interval_=mA.run((function(){u.element_&&u.state_===eM&&u.resume()}),{delay:3e3})),e.abrupt("break",33);case 21:if(!this.element_||!this.element_.error){e.next=32;break}return i="".concat(HA(),"/").concat(XT().name,"/").concat(XT().version),e.next=25,oK.getSpeakers();case 25:s=e.sent,c=s[0].label,(l=s.find((function(e){return e.deviceId===u.outputDeviceId_})))&&(c=l.label),this.log_.error("audio player error observed. code: ".concat(this.element_.error.code," message: ").concat(this.element_.error.message," deviceInfo: ").concat(i," speaker: ").concat(c)),uL.uploadEvent({log:"stat-".concat(this.stream_.getType(),"-audio-").concat(hk,"-").concat(this.element_.error.code,"-").concat(i,"-").concat(c),userId:this.userId_,error:this.element_.error}),this.emitter_.emit(aN,this.element_.error);case 32:return e.abrupt("break",33);case 33:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"handleTrackEvent",value:function(e){var t=e.type;switch(t){case PO:this.log_.info("audio track is ended"),this.state_!==tM&&(this.state_=tM,this.emitter_.emit(oN,{state:this.state_,reason:PO})),NI.emit(kE,{stream:this.stream_,type:t});break;case RO:this.log_.info("audio track is unable to provide media output"),this.stream_.isRemote()||kI(),this.state_!==eM&&(this.state_=eM,this.emitter_.emit(oN,{state:this.state_,reason:RO})),NI.emit(ME,{stream:this.stream_,type:t});break;case xO:this.log_.info("audio track is able to provide media output"),this.state_===eM&&(this.state_=ZO,this.emitter_.emit(oN,{state:this.state_,reason:xO}))}}},{key:"unbindEvents",value:function(){this.element_&&(this.element_.removeEventListener(UO,this.handleElementEvent),this.element_.removeEventListener(PO,this.handleElementEvent),this.element_.removeEventListener(VO,this.handleElementEvent),this.element_.removeEventListener(BO,this.handleElementEvent)),this.track_&&(this.track_.removeEventListener(PO,this.handleTrackEvent),this.track_.removeEventListener(RO,this.handleTrackEvent),this.track_.removeEventListener(xO,this.handleTrackEvent))}},{key:"setSinkId",value:(n=i(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.outputDeviceId_===t){e.next=5;break}if(!this.element_){e.next=4;break}return e.next=4,this.element_.setSinkId(t);case 4:this.outputDeviceId_=t;case 5:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"setVolume",value:function(e){this.element_&&(this.log_.info("audioElement setVolume to : ".concat(e)),this.element_.volume=e)}},{key:"getAudioLevel",value:function(){return this.volumeMeter_.getCalculatedVolume()}},{key:"getInternalAudioLevel",value:function(){return this.volumeMeter_.getInternalAudioLevel()}},{key:"stop",value:function(){this.unbindEvents(),this.element_&&(this.div_.removeChild(this.element_),this.element_.srcObject=null,this.element_=null),this.volumeMeter_&&(this.volumeMeter_.destroy(),this.volumeMeter_=null),this.interval_>0&&mA.clearTask(this.interval_)}},{key:"resume",value:(t=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.volumeMeter_&&this.volumeMeter_.resume(),!this.element_){e.next=5;break}return e.next=5,this.element_.play();case 5:e.next=13;break;case 7:if(e.prev=7,e.t0=e.catch(0),t=eI({key:Qw,data:{media:"Audio",error:e.t0}}),this.log_.warn(t),!t.includes("NotAllowedError")){e.next=13;break}throw new OD({code:yD.PLAY_NOT_ALLOWED,message:t});case 13:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return t.apply(this,arguments)})},{key:"on",value:function(e,t){this.emitter_.on(e,t)}},{key:"isAudioElementInit",value:function(){return!("15.2"===HT||"15.3"===HT||"15.4"===HT)||"local"!==this.stream_.getType()||!this.muted_||(this.log_.info("audioElement is muted."),!1)}},{key:"getTrack",value:function(){return this.track_}}]),e}(),Jx=Dn.PROPER,Xx=D,Qx=Wv,Zx=tg.trim;So({target:"String",proto:!0,forced:function(e){return Xx((function(){return!!Qx[e]()||"​…᠎"!=="​…᠎"[e]()||Jx&&Qx[e].name!==e}))}("trim")},{trim:function(){return Zx(this)}});var eP="trtc_autoplay",tP="".concat(eP,"_mask"),nP="".concat(eP,"_wrapper"),rP="".concat(eP,"_header"),oP="".concat(eP,"_content"),aP="".concat(eP,"_action_wrapper"),iP="".concat(eP,"_question"),sP="".concat(eP,"_collapse"),cP="".concat(eP,"_action_confirm"),lP="".concat(eP,"_detail"),uP="#2473E8",dP="dialog",pP="".concat(dP,"-show"),fP="".concat(dP,"-1"),hP="".concat(dP,"-2"),mP=!1,vP=function(){return!!document.querySelector(".".concat(nP))},gP="".concat(Xk,"/").concat(MI()?"zh-cn":"en","/tutorial-21-advanced-auto-play-policy.html"),_P="<br><a href='".concat(gP,"' target='_blank'>").concat(MI()?"其他方案?":"Any other solution?","</a>"),bP="".concat(MI()?"浏览器自动播放策略:在用户与页面产生交互(点击、触摸)之前,浏览器禁止播放有声媒体。该弹窗用于帮助用户恢复音视频播放。".concat(_P):"Autoplay Policy: Before user interacts with the web page (clicking, touching), page will not be allowed to play media with sound. This Dialog is used to help users resume playback. ".concat(_P)),yP=function(){function e(){if(s(this,e),this.dialogNode_=null,this.bodyPosition_="",this.content="音视频播放被浏览器拦截,请点击“恢复播放”。",MI()||(this.content='Media playback failed. Click the "Resume" to resume playback.'),!mP){var t=document.createElement("style");t.innerHTML=".".concat(tP,"{position:fixed;top:0;left:0;right:0;bottom:0;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,0.5);z-index:1500;}.").concat(tP," div:not(.").concat(aP,"){display:block !important;}.").concat(nP,"{padding:14px;background:#fff;border-radius:3px;box-shadow:0px 3px 15px #434343;border:1px solid #d1cfcf;max-width:500px;}.").concat(nP," a{color:").concat(uP,";}.").concat(rP,"{overflow:hidden;text-overflow:ellipsis;font-size:16px;font-weight:600;}.").concat(oP,"{margin:8px 0;}.").concat(aP,"{width:100%;display:flex !important;align-items:center;justify-content:right;float:right;}.").concat(sP,"{margin-right:auto;cursor:pointer}.").concat(iP,"{height:100%;line-height:16px;cursor:pointer;}.").concat(cP,"{margin-left:8px;color:#fff;background:").concat(uP,";padding:4px 12px;outline:none;border:1px solid;border-radius:3px;font-weight:bold;}.").concat(cP,":hover{opacity:0.9;}.").concat(sP,",.").concat(cP,",.").concat(oP,",.").concat(iP,"{font-size:14px;}@media screen and (max-width:750px){.").concat(nP,"{width:80vw;}}"),document.head.appendChild(t),mP=!0}this.showDetail_=!1,this.isCollapseClicked_=!1,this.isQuestionClicked_=!1,this.addDiaLog()}return l(e,[{key:"createDiaLog",value:function(){var e=document.createElement("template");e.innerHTML='<div class="'.concat(tP,"\"><div class='").concat(nP,"'><div class='").concat(rP,"'>").concat(location.host,"</div><div class='").concat(oP,"'>").concat(this.content,"</div><div class='").concat(lP,'\' style="visibility:hidden;width:100%;height:0;font-size:12px;color:gray;">').concat(bP,"</div><div class='").concat(aP,"'></div></div></div>").trim();var t=document.createElement("button");t.className=cP,t.innerText=MI()?"恢复播放":"Resume",t.onclick=this.onConfirm.bind(this);var n=document.createElement("div");n.className=iP,n.innerHTML='<?xml version="1.0" encoding="UTF-8"?>\n <svg class="icon" width="18" height="18" p-id="2030" t="1639646523624" version="1.1" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">\n <path d="m464 784.35c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z" p-id="2031"/>\n <path d="m512 960c-247.04 0-448-200.96-448-448s200.96-448 448-448 448 200.96 448 448-200.96 448-448 448zm0-831.71c-211.58 0-383.71 172.13-383.71 383.71 0 211.55 172.13 383.71 383.71 383.71 211.55 0 383.71-172.16 383.71-383.71 0-211.58-172.16-383.71-383.71-383.71z" p-id="2032"/>\n <path d="m512 673.7c-17.665 0-32.001-14.336-32.001-31.999v-54.112c0-52.353 40-92.352 75.328-127.65 25.887-25.92 52.672-52.672 52.672-74.017 0-53.343-43.072-96.735-95.999-96.735-53.823 0-95.999 41.536-95.999 94.559 0 17.665-14.336 31.999-32.001 31.999s-32.001-14.336-32.001-31.999c0-87.424 71.775-158.56 160-158.56s160 72.095 160 160.74c0 47.904-36.32 84.192-71.424 119.3-27.84 27.776-56.576 56.512-56.576 82.336v54.112c0 17.665-14.336 32.032-32.001 32.032z" p-id="2033"/>\n </svg>\n ',n.onclick=this.onQuestionClick.bind(this);var r=document.createElement("div");r.className=sP,r.innerText="".concat(MI()?"详情 >":"Detail >"),r.onclick=this.onCollapseClick.bind(this);var o=e.content.firstChild,a=o.querySelector(".".concat(aP));return a.appendChild(r),a.appendChild(n),a.appendChild(t),o}},{key:"addDiaLog",value:function(){vP()||(this.dialogNode_=this.createDiaLog(),document.body.appendChild(this.dialogNode_),this.dialogNode_.onclick=this.onConfirm.bind(this),this.dialogNode_.querySelector(".".concat(nP)).onclick=function(e){return e.stopPropagation()},this.bodyPosition_=document.body.style.position,document.body.style.position="fixed",RE.info("show autoplay dialog"),uL.uploadEvent({log:pP}))}},{key:"deleteDiaLog",value:function(){this.dialogNode_&&(document.body.removeChild(this.dialogNode_),document.body.style.position=this.bodyPosition_,this.dialogNode_=null)}},{key:"onConfirm",value:function(){RE.warn("confirm clicked, try resume stream"),NI.emit(TE),this.deleteDiaLog()}},{key:"onCollapseClick",value:function(){var e=this.dialogNode_.querySelector(".".concat(lP));e.style.visibility="".concat(this.showDetail_?"hidden":"visible"),e.style.height="".concat(this.showDetail_?0:"fit-content"),this.showDetail_=!this.showDetail_,this.isCollapseClicked_||uL.uploadEvent({log:fP}),this.isCollapseClicked_=!0}},{key:"onQuestionClick",value:function(){window.open(gP,"_blank"),this.isQuestionClicked_||uL.uploadEvent({log:hP}),this.isQuestionClicked_=!0}}]),e}(),OP=function(){function e(t){s(this,e),this.stream_=t.stream,this.userId_=t.stream.getUserId(),this.log_=this.stream_.getLogger(),this.track_=t.track,this.div_=t.div,this.muted_=t.muted,this.objectFit_=t.objectFit,this.mirror_=t.mirror,this.emitter_=new AI,this.initializeElement(),this.state_="NONE",this.pausedRetryCount_=5}var t;return l(e,[{key:"isPlaying",get:function(){return this.state_===ZO}},{key:"initializeElement",value:function(){var e=new MediaStream;e.addTrack(this.track_);var t=document.createElement(SO);t.srcObject=e,t.muted=!0;var n="width: 100%; height: 100%; object-fit: ".concat(this.objectFit_,";");this.mirror_&&(n+="transform: scaleX(-1);"),t.setAttribute("id","video_".concat(this.stream_.getId())),t.setAttribute("style",n),t.setAttribute("autoplay","autoplay"),t.setAttribute("playsinline","playsinline"),this.element_=t,17===YT&&this.initCanvasElement(n),this.div_&&this.div_.appendChild(this.canvas_||t),this.handleEvents()}},{key:"initCanvasElement",value:function(e){var t=this;if(this.track_&&!this.stream_.isRemote()){var n=document.createElement("canvas"),r=function(){var e,r=null===(e=t.track_)||void 0===e?void 0:e.getSettings();r&&r.width&&r.height&&(n.width=r.width,n.height=r.height)};r(),n.setAttribute("style",e);var o=n.getContext("2d");this.canvasTimerId_=mA.run("raf",(function(){t.element_&&o&&(r(),o.drawImage(t.element_,0,0,n.width,n.height))}),{backgroundTask:!1}),this.log_.warn("use canvas for playback"),this.canvas_=n}}},{key:"setRect",value:function(e){var t=e.width,n=e.height;this.element_&&(this.element_.style.width=t+"px",this.element_.style.height=n+"px")}},{key:"setMirror",value:function(e){this.element_&&(this.element_.style.transform=e?"scaleX(-1)":"",this.mirror_=e)}},{key:"setObjectFit",value:function(e){this.element_&&(this.element_.style.objectFit="".concat(e),this.objectFit_=e)}},{key:"play",value:(t=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.element_.play();case 3:e.next=11;break;case 5:if(e.prev=5,e.t0=e.catch(0),t=eI({key:Qw,data:{media:"Video",error:e.t0}}),this.log_.warn(t),!t.includes("NotAllowedError")){e.next=11;break}throw new OD({code:yD.PLAY_NOT_ALLOWED,message:t});case 11:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(){return t.apply(this,arguments)})},{key:"handleEvents",value:function(){this.handleElementEvent=this.handleElementEvent.bind(this),this.handleTrackEvent=this.handleTrackEvent.bind(this),this.element_.addEventListener(UO,this.handleElementEvent),this.element_.addEventListener(PO,this.handleElementEvent),this.element_.addEventListener(VO,this.handleElementEvent),this.element_.addEventListener(BO,this.handleElementEvent),this.element_.addEventListener(FO,this.handleElementEvent),this.track_.addEventListener(PO,this.handleTrackEvent),this.track_.addEventListener(RO,this.handleTrackEvent),this.track_.addEventListener(xO,this.handleTrackEvent),this.track_.readyState===PO&&this.handleTrackEvent({type:PO}),this.track_.muted&&this.handleTrackEvent({type:RO})}},{key:"handleElementEvent",value:function(e){var t=this;switch(e.type){case UO:this.log_.info("video player is playing"),this.state_=ZO,NI.emit(rE,{stream:this.stream_}),this.emitter_.emit(oN,{state:this.state_,reason:UO}),this.interval_&&(mA.clearTask(this.interval_),this.interval_=null);break;case PO:this.log_.info("video player is ended"),this.state_!==tM&&(this.state_=tM,this.emitter_.emit(oN,{state:this.state_,reason:PO}));break;case VO:this.log_.info("video player is paused"),this.div_&&!document.getElementById(this.div_.id)&&this.log_.warn("video player has been remove, element ID: ".concat(this.div_.id)),this.state_=eM,this.emitter_.emit(oN,{state:this.state_,reason:VO}),this.pausedRetryCount_>0&&!vP()&&(this.log_.info("video player auto resume when video paused"),this.resume(),this.pausedRetryCount_--),zS&&(this.interval_=mA.run((function(){t.element_&&t.state_===eM&&t.resume()}),{delay:3e3}));break;case BO:if(this.element_&&this.element_.error){var n="".concat(HA(),"/").concat(XT().name,"/").concat(XT().version);this.log_.error("video player error observed. code: ".concat(this.element_.error.code," message: ").concat(this.element_.error.message," deviceInfo: ").concat(n)),uL.uploadEvent({log:"stat-".concat(this.stream_.getType(),"-video-").concat(hk,"-").concat(this.element_.error.code,"-").concat(n),userId:this.userId_,error:this.element_.error})}break;case FO:NI.emit(bE,{stream:this.stream_})}}},{key:"handleTrackEvent",value:function(e){var t=e.type;switch(t){case PO:this.log_.info("video track is ended"),NI.emit(OE,{stream:this.stream_,type:t}),this.state_!==tM&&(this.state_=tM,this.emitter_.emit(oN,{state:this.state_,reason:PO}));break;case RO:this.log_.info("video track is unable to provide media output"),this.stream_.isRemote()||kI(),NI.emit(vE,{stream:this.stream_,type:t}),this.state_!==eM&&(this.state_=eM,this.emitter_.emit(oN,{state:this.state_,reason:RO}));break;case xO:this.log_.info("video track is able to provide media output"),NI.emit(gE,{stream:this.stream_}),this.state_===eM&&(this.state_=ZO,this.emitter_.emit(oN,{state:this.state_,reason:xO}))}}},{key:"unbindEvents",value:function(){this.element_&&(this.element_.removeEventListener(UO,this.handleElementEvent),this.element_.removeEventListener(PO,this.handleElementEvent),this.element_.removeEventListener(VO,this.handleElementEvent),this.element_.removeEventListener(BO,this.handleElementEvent),this.element_.removeEventListener(FO,this.handleElementEvent)),this.track_&&(this.track_.removeEventListener(PO,this.handleTrackEvent),this.track_.removeEventListener(RO,this.handleTrackEvent),this.track_.removeEventListener(xO,this.handleTrackEvent))}},{key:"stop",value:function(){this.unbindEvents(),this.element_&&(this.element_.remove(),this.element_.srcObject=null,this.element_=null),this.interval_&&mA.clearTask(this.interval_),this.canvasTimerId_&&mA.clearTask(this.canvasTimerId_),this.canvas_&&(this.canvas_.remove(),this.canvas_=null)}},{key:"resume",value:function(){return this.play()}},{key:"getVideoFrame",value:function(){var e=document.createElement("canvas");return e.width=this.element_.videoWidth,e.height=this.element_.videoHeight,e.getContext("2d").drawImage(this.element_,0,0),e.toDataURL("image/png")}},{key:"on",value:function(e,t){this.emitter_.on(e,t)}},{key:"getElement",value:function(){return this.element_?this.element_:null}},{key:"getTrack",value:function(){return this.track_}}]),e}(),MP="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,kP=Ir,CP=Rr,wP=RangeError,SP=function(e){if(void 0===e)return 0;var t=kP(e),n=CP(t);if(t!==n)throw wP("Wrong length or index");return n},TP=Array,IP=Math.abs,EP=Math.pow,jP=Math.floor,DP=Math.log,LP=Math.LN2,AP={pack:function(e,t,n){var r,o,a,i=TP(n),s=8*n-t-1,c=(1<<s)-1,l=c>>1,u=23===t?EP(2,-24)-EP(2,-77):0,d=e<0||0===e&&1/e<0?1:0,p=0;for((e=IP(e))!=e||1/0===e?(o=e!=e?1:0,r=c):(r=jP(DP(e)/LP),e*(a=EP(2,-r))<1&&(r--,a*=2),(e+=r+l>=1?u/a:u*EP(2,1-l))*a>=2&&(r++,a/=2),r+l>=c?(o=0,r=c):r+l>=1?(o=(e*a-1)*EP(2,t),r+=l):(o=e*EP(2,l-1)*EP(2,t),r=0));t>=8;)i[p++]=255&o,o/=256,t-=8;for(r=r<<t|o,s+=t;s>0;)i[p++]=255&r,r/=256,s-=8;return i[--p]|=128*d,i},unpack:function(e,t){var n,r=e.length,o=8*r-t-1,a=(1<<o)-1,i=a>>1,s=o-7,c=r-1,l=e[c--],u=127&l;for(l>>=7;s>0;)u=256*u+e[c--],s-=8;for(n=u&(1<<-s)-1,u>>=-s,s+=t;s>0;)n=256*n+e[c--],s-=8;if(0===u)u=1-i;else{if(u===a)return n?NaN:l?-1/0:1/0;n+=EP(2,t),u-=i}return(l?-1:1)*n*EP(2,u-t)}},NP=pt,RP=Lr,xP=Pr,PP=function(e){for(var t=NP(this),n=xP(t),r=arguments.length,o=RP(r>1?arguments[1]:void 0,n),a=r>2?arguments[2]:void 0,i=void 0===a?n:RP(a,n);i>o;)t[o++]=e;return t},UP=E,VP=te,BP=L,FP=MP,GP=Dn,HP=Cn,YP=Gc,zP=D,qP=mc,WP=Ir,KP=Rr,$P=SP,JP=AP,XP=ka,QP=Ja,ZP=Cr.f,eU=on.f,tU=PP,nU=Zi,rU=xa,oU=GP.PROPER,aU=GP.CONFIGURABLE,iU=ir.get,sU=ir.set,cU="ArrayBuffer",lU="DataView",uU="Wrong index",dU=UP.ArrayBuffer,pU=dU,fU=pU&&pU.prototype,hU=UP.DataView,mU=hU&&hU.prototype,vU=Object.prototype,gU=UP.Array,_U=UP.RangeError,bU=VP(tU),yU=VP([].reverse),OU=JP.pack,MU=JP.unpack,kU=function(e){return[255&e]},CU=function(e){return[255&e,e>>8&255]},wU=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},SU=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},TU=function(e){return OU(e,23,4)},IU=function(e){return OU(e,52,8)},EU=function(e,t){eU(e.prototype,t,{get:function(){return iU(this)[t]}})},jU=function(e,t,n,r){var o=$P(n),a=iU(e);if(o+t>a.byteLength)throw _U(uU);var i=iU(a.buffer).bytes,s=o+a.byteOffset,c=nU(i,s,s+t);return r?c:yU(c)},DU=function(e,t,n,r,o,a){var i=$P(n),s=iU(e);if(i+t>s.byteLength)throw _U(uU);for(var c=iU(s.buffer).bytes,l=i+s.byteOffset,u=r(+o),d=0;d<t;d++)c[l+d]=u[a?d:t-d-1]};if(FP){var LU=oU&&dU.name!==cU;if(zP((function(){dU(1)}))&&zP((function(){new dU(-1)}))&&!zP((function(){return new dU,new dU(1.5),new dU(NaN),1!=dU.length||LU&&!aU})))LU&&aU&&HP(dU,"name",cU);else{(pU=function(e){return qP(this,fU),new dU($P(e))}).prototype=fU;for(var AU,NU=ZP(dU),RU=0;NU.length>RU;)(AU=NU[RU++])in pU||HP(pU,AU,dU[AU]);fU.constructor=pU}QP&&XP(mU)!==vU&&QP(mU,vU);var xU=new hU(new pU(2)),PU=VP(mU.setInt8);xU.setInt8(0,2147483648),xU.setInt8(1,2147483649),!xU.getInt8(0)&&xU.getInt8(1)||YP(mU,{setInt8:function(e,t){PU(this,e,t<<24>>24)},setUint8:function(e,t){PU(this,e,t<<24>>24)}},{unsafe:!0})}else fU=(pU=function(e){qP(this,fU);var t=$P(e);sU(this,{bytes:bU(gU(t),0),byteLength:t}),BP||(this.byteLength=t)}).prototype,hU=function(e,t,n){qP(this,mU),qP(e,fU);var r=iU(e).byteLength,o=WP(t);if(o<0||o>r)throw _U("Wrong offset");if(o+(n=void 0===n?r-o:KP(n))>r)throw _U("Wrong length");sU(this,{buffer:e,byteLength:n,byteOffset:o}),BP||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},mU=hU.prototype,BP&&(EU(pU,"byteLength"),EU(hU,"buffer"),EU(hU,"byteLength"),EU(hU,"byteOffset")),YP(mU,{getInt8:function(e){return jU(this,1,e)[0]<<24>>24},getUint8:function(e){return jU(this,1,e)[0]},getInt16:function(e){var t=jU(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=jU(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return SU(jU(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return SU(jU(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return MU(jU(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return MU(jU(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){DU(this,1,e,kU,t)},setUint8:function(e,t){DU(this,1,e,kU,t)},setInt16:function(e,t){DU(this,2,e,CU,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){DU(this,2,e,CU,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){DU(this,4,e,wU,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){DU(this,4,e,wU,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){DU(this,4,e,TU,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){DU(this,8,e,IU,t,arguments.length>2?arguments[2]:void 0)}});rU(pU,cU),rU(hU,lU);var UU={ArrayBuffer:pU,DataView:hU},VU=So,BU=te,FU=D,GU=un,HU=Lr,YU=Rr,zU=w_,qU=UU.ArrayBuffer,WU=UU.DataView,KU=WU.prototype,$U=BU(qU.prototype.slice),JU=BU(KU.getUint8),XU=BU(KU.setUint8);VU({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:FU((function(){return!new qU(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if($U&&void 0===t)return $U(GU(this),e);for(var n=GU(this).byteLength,r=HU(e,n),o=HU(void 0===t?n:t,n),a=new(zU(this,qU))(YU(o-r)),i=new WU(this),s=new WU(a),c=0;r<o;)XU(s,c++,JU(i,r++));return a}}),So({global:!0,constructor:!0,forced:!MP},{DataView:UU.DataView});var QU=So,ZU=uu,eV=te([].reverse),tV=[1,2];QU({target:"Array",proto:!0,forced:String(tV)===String(tV.reverse())},{reverse:function(){return ZU(this)&&(this.length=this.length),eV(this)}});var nV=Ke,rV=pt,oV=ie,aV=Pr,iV=TypeError,sV=function(e){return function(t,n,r,o){nV(n);var a=rV(t),i=oV(a),s=aV(a),c=e?s-1:0,l=e?-1:1;if(r<2)for(;;){if(c in i){o=i[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw iV("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in i&&(o=n(o,i[c],c,a));return o}},cV={left:sV(!1),right:sV(!0)},lV=cV.left,uV=Ae,dV=v_;So({target:"Array",proto:!0,forced:!md("reduce")||!dV&&uV>79&&uV<83},{reduce:function(e){var t=arguments.length;return lV(this,e,t,t>1?arguments[1]:void 0)}});var pV=Wc,fV="ArrayBuffer",hV=UU.ArrayBuffer;So({global:!0,constructor:!0,forced:E.ArrayBuffer!==hV},{ArrayBuffer:hV}),pV(fV);var mV=So,vV=uu,gV=Cu,_V=ye,bV=Lr,yV=Pr,OV=fe,MV=Wi,kV=Dt,CV=$l,wV=Hu("slice"),SV=kV("species"),TV=Array,IV=Math.max;mV({target:"Array",proto:!0,forced:!wV},{slice:function(e,t){var n,r,o,a=OV(this),i=yV(a),s=bV(e,i),c=bV(void 0===t?i:t,i);if(vV(a)&&(n=a.constructor,(gV(n)&&(n===TV||vV(n.prototype))||_V(n)&&null===(n=n[SV]))&&(n=void 0),n===TV||void 0===n))return CV(a,s,c);for(r=new(void 0===n?TV:n)(IV(c-s,0)),o=0;s<c;s++,o++)s in a&&MV(r,o,a[s]);return r.length=o,r}});var EV=E,jV=D,DV=te,LV=dl,AV=tg.trim,NV=Wv,RV=EV.parseInt,xV=EV.Symbol,PV=xV&&xV.iterator,UV=/^[+-]?0x/i,VV=DV(UV.exec),BV=8!==RV(NV+"08")||22!==RV(NV+"0x16")||PV&&!jV((function(){RV(Object(PV))}))?function(e,t){var n=AV(LV(e));return RV(n,t>>>0||(VV(UV,n)?16:10))}:RV;So({global:!0,forced:parseInt!=BV},{parseInt:BV});var FV,GV,HV,YV={exports:{}},zV=MP,qV=L,WV=E,KV=ge,$V=ye,JV=mt,XV=Vi,QV=Ye,ZV=Cn,eB=kr,tB=on.f,nB=we,rB=ka,oB=Ja,aB=Dt,iB=yt,sB=ir.enforce,cB=ir.get,lB=WV.Int8Array,uB=lB&&lB.prototype,dB=WV.Uint8ClampedArray,pB=dB&&dB.prototype,fB=lB&&rB(lB),hB=uB&&rB(uB),mB=Object.prototype,vB=WV.TypeError,gB=aB("toStringTag"),_B=iB("TYPED_ARRAY_TAG"),bB="TypedArrayConstructor",yB=zV&&!!oB&&"Opera"!==XV(WV.opera),OB=!1,MB={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},kB={BigInt64Array:8,BigUint64Array:8},CB=function(e){var t=rB(e);if($V(t)){var n=cB(t);return n&&JV(n,bB)?n.TypedArrayConstructor:CB(t)}},wB=function(e){if(!$V(e))return!1;var t=XV(e);return JV(MB,t)||JV(kB,t)};for(FV in MB)(HV=(GV=WV[FV])&&GV.prototype)?sB(HV).TypedArrayConstructor=GV:yB=!1;for(FV in kB)(HV=(GV=WV[FV])&&GV.prototype)&&(sB(HV).TypedArrayConstructor=GV);if((!yB||!KV(fB)||fB===Function.prototype)&&(fB=function(){throw vB("Incorrect invocation")},yB))for(FV in MB)WV[FV]&&oB(WV[FV],fB);if((!yB||!hB||hB===mB)&&(hB=fB.prototype,yB))for(FV in MB)WV[FV]&&oB(WV[FV].prototype,hB);if(yB&&rB(pB)!==hB&&oB(pB,hB),qV&&!JV(hB,gB))for(FV in OB=!0,tB(hB,gB,{get:function(){return $V(this)?this[_B]:void 0}}),MB)WV[FV]&&ZV(WV[FV],_B,FV);var SB={NATIVE_ARRAY_BUFFER_VIEWS:yB,TYPED_ARRAY_TAG:OB&&_B,aTypedArray:function(e){if(wB(e))return e;throw vB("Target is not a typed array")},aTypedArrayConstructor:function(e){if(KV(e)&&(!oB||nB(fB,e)))return e;throw vB(QV(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(qV){if(n)for(var o in MB){var a=WV[o];if(a&&JV(a.prototype,e))try{delete a.prototype[e]}catch(aK){try{a.prototype[e]=t}catch(s){}}}hB[e]&&!n||eB(hB,e,n?t:yB&&uB[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(qV){if(oB){if(n)for(r in MB)if((o=WV[r])&&JV(o,e))try{delete o[e]}catch(aK){}if(fB[e]&&!n)return;try{return eB(fB,e,n?t:yB&&fB[e]||t)}catch(aK){}}for(r in MB)!(o=WV[r])||o[e]&&!n||eB(o,e,t)}},getTypedArrayConstructor:CB,isView:function(e){if(!$V(e))return!1;var t=XV(e);return"DataView"===t||JV(MB,t)||JV(kB,t)},isTypedArray:wB,TypedArray:fB,TypedArrayPrototype:hB},TB=E,IB=D,EB=yc,jB=SB.NATIVE_ARRAY_BUFFER_VIEWS,DB=TB.ArrayBuffer,LB=TB.Int8Array,AB=!jB||!IB((function(){LB(1)}))||!IB((function(){new LB(-1)}))||!EB((function(e){new LB,new LB(null),new LB(1.5),new LB(e)}),!0)||IB((function(){return 1!==new LB(new DB(2),1,void 0).length})),NB=Ir,RB=RangeError,xB=function(e){var t=NB(e);if(t<0)throw RB("The argument can't be less than 0");return t},PB=RangeError,UB=function(e,t){var n=xB(e);if(n%t)throw PB("Wrong offset");return n},VB=Vi,BB=te("".slice),FB=Vt,GB=TypeError,HB=function(e){var t=FB(e,"number");if("number"==typeof t)throw GB("Can't convert number to bigint");return BigInt(t)},YB=Ds,zB=x,qB=y_,WB=pt,KB=Pr,$B=Ks,JB=Fs,XB=Rs,QB=function(e){return"Big"===BB(VB(e),0,3)},ZB=SB.aTypedArrayConstructor,eF=HB,tF=So,nF=E,rF=x,oF=L,aF=AB,iF=SB,sF=UU,cF=mc,lF=H,uF=Cn,dF=VE,pF=Rr,fF=SP,hF=UB,mF=Gt,vF=mt,gF=Vi,_F=ye,bF=Ge,yF=oa,OF=we,MF=Ja,kF=Cr.f,CF=function(e){var t,n,r,o,a,i,s,c,l=qB(this),u=WB(e),d=arguments.length,p=d>1?arguments[1]:void 0,f=void 0!==p,h=JB(u);if(h&&!XB(h))for(c=(s=$B(u,h)).next,u=[];!(i=zB(c,s)).done;)u.push(i.value);for(f&&d>2&&(p=YB(p,arguments[2])),n=KB(u),r=new(ZB(l))(n),o=QB(r),t=0;n>t;t++)a=f?p(u[t],t):u[t],r[t]=o?eF(a):+a;return r},wF=Vu.forEach,SF=Wc,TF=on,IF=j,EF=Cc,jF=ir.get,DF=ir.set,LF=ir.enforce,AF=TF.f,NF=IF.f,RF=Math.round,xF=nF.RangeError,PF=sF.ArrayBuffer,UF=PF.prototype,VF=sF.DataView,BF=iF.NATIVE_ARRAY_BUFFER_VIEWS,FF=iF.TYPED_ARRAY_TAG,GF=iF.TypedArray,HF=iF.TypedArrayPrototype,YF=iF.aTypedArrayConstructor,zF=iF.isTypedArray,qF="BYTES_PER_ELEMENT",WF="Wrong length",KF=function(e,t){YF(e);for(var n=0,r=t.length,o=new e(r);r>n;)o[n]=t[n++];return o},$F=function(e,t){AF(e,t,{get:function(){return jF(this)[t]}})},JF=function(e){var t;return OF(UF,e)||"ArrayBuffer"==(t=gF(e))||"SharedArrayBuffer"==t},XF=function(e,t){return zF(e)&&!bF(t)&&t in e&&dF(+t)&&t>=0},QF=function(e,t){return t=mF(t),XF(e,t)?lF(2,e[t]):NF(e,t)},ZF=function(e,t,n){return t=mF(t),!(XF(e,t)&&_F(n)&&vF(n,"value"))||vF(n,"get")||vF(n,"set")||n.configurable||vF(n,"writable")&&!n.writable||vF(n,"enumerable")&&!n.enumerable?AF(e,t,n):(e[t]=n.value,e)};oF?(BF||(IF.f=QF,TF.f=ZF,$F(HF,"buffer"),$F(HF,"byteOffset"),$F(HF,"byteLength"),$F(HF,"length")),tF({target:"Object",stat:!0,forced:!BF},{getOwnPropertyDescriptor:QF,defineProperty:ZF}),YV.exports=function(e,t,n){var r=e.match(/\d+$/)[0]/8,o=e+(n?"Clamped":"")+"Array",a="get"+e,i="set"+e,s=nF[o],c=s,l=c&&c.prototype,u={},d=function(e,t){AF(e,t,{get:function(){return function(e,t){var n=jF(e);return n.view[a](t*r+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,o){var a=jF(e);n&&(o=(o=RF(o))<0?0:o>255?255:255&o),a.view[i](t*r+a.byteOffset,o,!0)}(this,t,e)},enumerable:!0})};BF?aF&&(c=t((function(e,t,n,o){return cF(e,l),EF(_F(t)?JF(t)?void 0!==o?new s(t,hF(n,r),o):void 0!==n?new s(t,hF(n,r)):new s(t):zF(t)?KF(c,t):rF(CF,c,t):new s(fF(t)),e,c)})),MF&&MF(c,GF),wF(kF(s),(function(e){e in c||uF(c,e,s[e])})),c.prototype=l):(c=t((function(e,t,n,o){cF(e,l);var a,i,s,u=0,p=0;if(_F(t)){if(!JF(t))return zF(t)?KF(c,t):rF(CF,c,t);a=t,p=hF(n,r);var f=t.byteLength;if(void 0===o){if(f%r)throw xF(WF);if((i=f-p)<0)throw xF(WF)}else if((i=pF(o)*r)+p>f)throw xF(WF);s=i/r}else s=fF(t),a=new PF(i=s*r);for(DF(e,{buffer:a,byteOffset:p,byteLength:i,length:s,view:new VF(a)});u<s;)d(e,u++)})),MF&&MF(c,GF),l=c.prototype=yF(HF)),l.constructor!==c&&uF(l,"constructor",c),LF(l).TypedArrayConstructor=c,FF&&uF(l,FF,o);var p=c!=s;u[o]=c,tF({global:!0,constructor:!0,forced:p,sham:!BF},u),qF in c||uF(c,qF,r),qF in l||uF(l,qF,r),SF(o)}):YV.exports=function(){},(0,YV.exports)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}));var eG=pt,tG=Lr,nG=Pr,rG=ed,oG=Math.min,aG=[].copyWithin||function(e,t){var n=eG(this),r=nG(n),o=tG(e,r),a=tG(t,r),i=arguments.length>2?arguments[2]:void 0,s=oG((void 0===i?r:tG(i,r))-a,r-o),c=1;for(a<o&&o<a+s&&(c=-1,a+=s-1,o+=s-1);s-- >0;)a in n?n[o]=n[a]:rG(n,o),o+=c,a+=c;return n},iG=SB,sG=te(aG),cG=iG.aTypedArray;(0,iG.exportTypedArrayMethod)("copyWithin",(function(e,t){return sG(cG(this),e,t,arguments.length>2?arguments[2]:void 0)}));var lG=Vu.every,uG=SB.aTypedArray;(0,SB.exportTypedArrayMethod)("every",(function(e){return lG(uG(this),e,arguments.length>1?arguments[1]:void 0)}));var dG=PP,pG=HB,fG=Vi,hG=x,mG=D,vG=SB.aTypedArray,gG=SB.exportTypedArrayMethod,_G=te("".slice);gG("fill",(function(e){var t=arguments.length;vG(this);var n="Big"===_G(fG(this),0,3)?pG(e):+e;return hG(dG,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),mG((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})));var bG=Pr,yG=w_,OG=SB.aTypedArrayConstructor,MG=SB.getTypedArrayConstructor,kG=function(e){return OG(yG(e,MG(e)))},CG=function(e,t){for(var n=0,r=bG(t),o=new e(r);r>n;)o[n]=t[n++];return o},wG=kG,SG=Vu.filter,TG=function(e,t){return CG(wG(e),t)},IG=SB.aTypedArray;(0,SB.exportTypedArrayMethod)("filter",(function(e){var t=SG(IG(this),e,arguments.length>1?arguments[1]:void 0);return TG(this,t)}));var EG=Vu.find,jG=SB.aTypedArray;(0,SB.exportTypedArrayMethod)("find",(function(e){return EG(jG(this),e,arguments.length>1?arguments[1]:void 0)}));var DG=Vu.findIndex,LG=SB.aTypedArray;(0,SB.exportTypedArrayMethod)("findIndex",(function(e){return DG(LG(this),e,arguments.length>1?arguments[1]:void 0)}));var AG=Vu.forEach,NG=SB.aTypedArray;(0,SB.exportTypedArrayMethod)("forEach",(function(e){AG(NG(this),e,arguments.length>1?arguments[1]:void 0)}));var RG=Gr.includes,xG=SB.aTypedArray;(0,SB.exportTypedArrayMethod)("includes",(function(e){return RG(xG(this),e,arguments.length>1?arguments[1]:void 0)}));var PG=Gr.indexOf,UG=SB.aTypedArray;(0,SB.exportTypedArrayMethod)("indexOf",(function(e){return PG(UG(this),e,arguments.length>1?arguments[1]:void 0)}));var VG=E,BG=D,FG=te,GG=SB,HG=Ei,YG=Dt("iterator"),zG=VG.Uint8Array,qG=FG(HG.values),WG=FG(HG.keys),KG=FG(HG.entries),$G=GG.aTypedArray,JG=GG.exportTypedArrayMethod,XG=zG&&zG.prototype,QG=!BG((function(){XG[YG].call([1])})),ZG=!!XG&&XG.values&&XG[YG]===XG.values&&"values"===XG.values.name,eH=function(){return qG($G(this))};JG("entries",(function(){return KG($G(this))}),QG),JG("keys",(function(){return WG($G(this))}),QG),JG("values",eH,QG||!ZG,{name:"values"}),JG(YG,eH,QG||!ZG,{name:"values"});var tH=SB.aTypedArray,nH=SB.exportTypedArrayMethod,rH=te([].join);nH("join",(function(e){return rH(tH(this),e)}));var oH=Kl,aH=fe,iH=Ir,sH=Pr,cH=md,lH=Math.min,uH=[].lastIndexOf,dH=!!uH&&1/[1].lastIndexOf(1,-0)<0,pH=cH("lastIndexOf"),fH=dH||!pH?function(e){if(dH)return oH(uH,this,arguments)||0;var t=aH(this),n=sH(t),r=n-1;for(arguments.length>1&&(r=lH(r,iH(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:uH,hH=Kl,mH=fH,vH=SB.aTypedArray;(0,SB.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return hH(mH,vH(this),t>1?[e,arguments[1]]:[e])}));var gH=Vu.map,_H=kG,bH=SB.aTypedArray;(0,SB.exportTypedArrayMethod)("map",(function(e){return gH(bH(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(_H(e))(t)}))}));var yH=cV.left,OH=SB.aTypedArray;(0,SB.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return yH(OH(this),e,t,t>1?arguments[1]:void 0)}));var MH=cV.right,kH=SB.aTypedArray;(0,SB.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return MH(kH(this),e,t,t>1?arguments[1]:void 0)}));var CH=SB.aTypedArray,wH=SB.exportTypedArrayMethod,SH=Math.floor;wH("reverse",(function(){for(var e,t=this,n=CH(t).length,r=SH(n/2),o=0;o<r;)e=t[o],t[o++]=t[--n],t[n]=e;return t}));var TH=E,IH=x,EH=SB,jH=Pr,DH=UB,LH=pt,AH=D,NH=TH.RangeError,RH=TH.Int8Array,xH=RH&&RH.prototype,PH=xH&&xH.set,UH=EH.aTypedArray,VH=EH.exportTypedArrayMethod,BH=!AH((function(){var e=new Uint8ClampedArray(2);return IH(PH,e,{length:1,0:3},1),3!==e[1]})),FH=BH&&EH.NATIVE_ARRAY_BUFFER_VIEWS&&AH((function(){var e=new RH(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));VH("set",(function(e){UH(this);var t=DH(arguments.length>1?arguments[1]:void 0,1),n=LH(e);if(BH)return IH(PH,this,n,t);var r=this.length,o=jH(n),a=0;if(o+t>r)throw NH("Wrong length");for(;a<o;)this[t+a]=n[a++]}),!BH||FH);var GH=kG,HH=$l,YH=SB.aTypedArray;(0,SB.exportTypedArrayMethod)("slice",(function(e,t){for(var n=HH(YH(this),e,t),r=GH(this),o=0,a=n.length,i=new r(a);a>o;)i[o]=n[o++];return i}),D((function(){new Int8Array(1).slice()})));var zH=Vu.some,qH=SB.aTypedArray;(0,SB.exportTypedArrayMethod)("some",(function(e){return zH(qH(this),e,arguments.length>1?arguments[1]:void 0)}));var WH=Se.match(/firefox\/(\d+)/i),KH=!!WH&&+WH[1],$H=/MSIE|Trident/.test(Se),JH=Se.match(/AppleWebKit\/(\d+)\./),XH=!!JH&&+JH[1],QH=te,ZH=D,eY=Ke,tY=yh,nY=KH,rY=$H,oY=Ae,aY=XH,iY=SB.aTypedArray,sY=SB.exportTypedArrayMethod,cY=E.Uint16Array,lY=cY&&QH(cY.prototype.sort),uY=!(!lY||ZH((function(){lY(new cY(2),null)}))&&ZH((function(){lY(new cY(2),{})}))),dY=!!lY&&!ZH((function(){if(oY)return oY<74;if(nY)return nY<67;if(rY)return!0;if(aY)return aY<602;var e,t,n=new cY(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(lY(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));sY("sort",(function(e){return void 0!==e&&eY(e),dY?lY(this,e):tY(iY(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!dY||uY);var pY=Rr,fY=Lr,hY=kG,mY=SB.aTypedArray;(0,SB.exportTypedArrayMethod)("subarray",(function(e,t){var n=mY(this),r=n.length,o=fY(e,r);return new(hY(n))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,pY((void 0===t?r:fY(t,r))-o))}));var vY=Kl,gY=SB,_Y=D,bY=$l,yY=E.Int8Array,OY=gY.aTypedArray,MY=gY.exportTypedArrayMethod,kY=[].toLocaleString,CY=!!yY&&_Y((function(){kY.call(new yY(1))}));MY("toLocaleString",(function(){return vY(kY,CY?bY(OY(this)):OY(this),bY(arguments))}),_Y((function(){return[1,2].toLocaleString()!=new yY([1,2]).toLocaleString()}))||!_Y((function(){yY.prototype.toLocaleString.call([1,2])})));var wY=SB.exportTypedArrayMethod,SY=D,TY=te,IY=E.Uint8Array,EY=IY&&IY.prototype||{},jY=[].toString,DY=TY([].join);SY((function(){jY.call({})}))&&(jY=function(){return DY(this)});var LY=EY.toString!=jY;wY("toString",jY,LY);var AY=function(){function e(t,n,r){s(this,e),this.isUplink_=r,this.connection_=t,this.log_=n,this.seiMessageList_=[],this.smallVideoSeiMessageList_=[],this.seiPayloadType_=243,this.runningAbortMap_=new Map,this.abortMap_=new Map,this.onSEIMessage=null}return l(e,[{key:"isRunning",get:function(){return!!this.runningAbortMap_.size>0}},{key:"start",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.seiMessageList_,r=e.createEncodedStreams(),o=r.readable,a=r.writable,i=new TransformStream({transform:this.isUplink_?function(e,r){return t.encodeVideoFrame(e,r,n)}:function(n,r){var o,a;return t.decodeVideoFrame(n,r,e===(null===(o=t.connection_)||void 0===o||null===(a=o.getPeerConnection())||void 0===a?void 0:a.getReceivers()[iC]))}}),s=new AbortController;o.pipeThrough(i).pipeTo(a,{signal:s.signal}).catch((function(){})),this.runningAbortMap_.set(e,s)}},{key:"restart",value:function(e,t){this.stop(),this.start(e,t)}},{key:"stop",value:function(e){var t;null===(t=this.runningAbortMap_.get(e))||void 0===t||t.abort(),this.runningAbortMap_.delete(e)}},{key:"destroy",value:function(){this.stop(),this.runningAbortMap_.forEach((function(e){return e.abort()})),this.runningAbortMap_.clear(),this.abortMap_.forEach((function(e){return e.abort()})),this.abortMap_.clear(),this.log_=null,this.onSEIMessage=null,this.connection_=null}},{key:"handleEncodedStreams",value:function(){var e=this;try{var t=this.connection_.getPeerConnection();this.clearUnusedSenderOrReceiver(t),this.isUplink_?t.getSenders().forEach((function(t,n){if(!e.runningAbortMap_.has(t)&&!e.abortMap_.has(t))if(n===rC||n===oC){var r=n===oC?e.smallVideoSeiMessageList_:e.seiMessageList_;e.isRunning?e.restart(t,r):e.start(t,r)}else e.pipeSenderOrReceiver(t)})):t.getReceivers().forEach((function(t,n){var r;e.runningAbortMap_.has(t)||e.abortMap_.has(t)||(n!==aC&&n!==iC||(null===(r=t.track)||void 0===r?void 0:r.kind)!==SO?e.pipeSenderOrReceiver(t):e.isRunning?e.restart(t):e.start(t))}))}catch(aK){this.log_.warn(aK)}}},{key:"pipeSenderOrReceiver",value:function(e){var t=e.createEncodedStreams(),n=t.readable,r=t.writable,o=new AbortController;this.abortMap_.set(e,o),n.pipeTo(r,{signal:o.signal}).catch((function(){}))}},{key:"clearUnusedSenderOrReceiver",value:function(e){var t=this;this.abortMap_.forEach((function(n,r){(t.isUplink_?e.getSenders():e.getReceivers()).find((function(e){return e===r}))||(n.abort(),t.abortMap_.delete(r))}))}},{key:"push",value:function(e,t){t&&t.seiPayloadType&&(this.seiPayloadType_=t.seiPayloadType),this.seiMessageList_.push(e),this.smallVideoSeiMessageList_.push(e)}},{key:"hasSEI",value:function(e){var t=new DataView(e);return 1===t.getInt32(0)&&6===t.getInt8(4)}},{key:"isEmptyFrame",value:function(e){return"empty"===e.type||0===e.data.byteLength}},{key:"getNaluCount",value:function(e){for(var t=0,n=0,r=new DataView(e),o=0;o<e.byteLength;o++)switch(r.getUint8(o)){case 0:t++;break;case 1:2!==t&&3!==t||n++,t=0;break;default:t=0}return n}},{key:"encodeVideoFrame",value:function(e,t,n){try{if(this.connection_.isH264&&n.length>0&&!this.isEmptyFrame(e)){var r=9-this.getNaluCount(e.data);if(r<=0)return;for(var o=n.splice(0,r).reverse().map(this.encodeSEINalu.bind(this)),a=o.reduce((function(e,t){return e+t.dataView.byteLength}),0),i=new ArrayBuffer(a+e.data.byteLength),s=new DataView(i),c=new DataView(e.data),l=0,u=0;u<o.length;u++)for(var d=0;d<o[u].dataView.byteLength;d++)s.setInt8(l++,o[u].dataView.getInt8(d));for(var p=0;p<e.data.byteLength;p++)s.setInt8(l++,c.getInt8(p));e.data=i,this.log_.debug("".concat(o.length," sei sent"))}}catch(aK){this.log_.warn(aK)}t.enqueue(e)}},{key:"decodeVideoFrame",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{if(this.connection_.isH264&&!this.isEmptyFrame(e)&&this.hasSEI(e.data)){for(var o=[],a=new DataView(e.data),i=0,s=-1,c=-1,l=0;l<e.data.byteLength;l++){var u=a.getUint8(l);if(0===u)i++;else if(1===u){if(2===i||3===i){var d=l-i;-1===s?s=d:-1===c&&(c=d,o.push(new NY(new DataView(a.buffer.slice(s,c)))),s=d,c=-1);var p=6===a.getUint8(l+1);if(!p){e.data=new DataView(a.buffer.slice(d)).buffer;break}}i=0}else i=0}this.log_.debug("".concat(o.length," sei received")),cI(this.onSEIMessage)&&o.reverse().forEach((function(e){n.onSEIMessage({seiPayloadType:e.seiPayloadType,data:e.seiPayload.buffer,isFromAuxiliary:r})}))}}catch(aK){this.log_.warn(aK)}t.enqueue(e)}},{key:"encodeSEINalu",value:function(e){var t=e.byteLength,n=parseInt(t/255),r=t%255,o=[];o.push(0,0,0,1,6,this.seiPayloadType_);for(var a=0;a<n;a++)o.push(255);o.push(r);var i=new DataView(e);return o.push.apply(o,M(new Uint8Array(i.buffer))),o.push(128),new NY(new DataView(new Uint8Array(o).buffer),!0)}}]),e}(),NY=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s(this,e),this.dataView=t,this.isSEI&&(n?this.addPreventionByte():this.removePreventionByte())}return l(e,[{key:"addPreventionByte",value:function(){for(var e=this.seiPayloadStartIndex,t=this.dataView.byteLength-2,n=[],r=0,o=e;o<=t;o++){var a=this.dataView.getInt8(o);switch(a){case 0:case 1:case 2:case 3:2===r&&(n.push(3),r=0),0==a?r++:r=0,n.push(a);break;default:r=0,n.push(a)}}n.push(this.dataView.getInt8(this.dataView.byteLength-1));var i=new DataView(new Uint8Array([].concat(M(new Uint8Array(this.dataView.buffer).slice(0,e)),n)).buffer);this.dataView=i}},{key:"removePreventionByte",value:function(){for(var e=this.seiPayloadStartIndex,t=this.dataView.byteLength-1,n=[],r=0,o=e;o<=t;o++)switch(this.dataView.getInt8(o)){case 0:r++,n.push(this.dataView.getInt8(o));break;case 3:2!==r&&n.push(this.dataView.getInt8(o)),r=0;break;default:n.push(this.dataView.getInt8(o)),r=0}var a=new DataView(new Uint8Array([].concat(M(new Uint8Array(this.dataView.buffer).slice(0,e)),n)).buffer);this.dataView=a}},{key:"isSEI",get:function(){return 6===this.dataView.getUint8(4)}},{key:"seiPayloadStartIndex",get:function(){for(var e=6,t=6;t<this.dataView.buffer.byteLength&&(e++,255===this.dataView.getUint8(t));t++);return e}},{key:"seiPayloadType",get:function(){return this.isSEI?this.dataView.getUint8(5):null}},{key:"seiPayload",get:function(){if(!this.isSEI)return null;for(var e=0,t=6,n=6;n<this.dataView.buffer.byteLength;n++){var r=this.dataView.getUint8(n);if(t++,255!==r){e+=r;break}e+=255}for(var o=new ArrayBuffer(e),a=new DataView(o),i=0;i<o.byteLength;i++,t++)a.setInt8(i,this.dataView.getInt8(t));return a}}]),e}(),RY=function(){function e(t){s(this,e),this.userId_=t.userId,this.tinyId_=t.tinyId,this.client_=t.client,this.sdpSemantics_=t.client.getSdpSemantics(),this.isUplink_=t.isUplink,this.log_=RE.createLogger({id:"n|"+this.userId_,userId:this.client_.getUserId(),sdkAppId:this.client_.getSDKAppId(),isLocal:this.isUplink_}),this.signalChannel_=t.signalChannel,this.peerConnection_=null,this.isErrorObserved_=!1,this.emitter_=new AI,this.currentState_=LM,this.waitForPeerConnectionConnectedPromise_=null,this.isReconnecting_=!1,this.reconnectionCount_=0,this.reconnectionTimer_=-1,this.isFirstConnection_=!0,this.delay_={audioDelay:0,videoDelay:0},this.enableSEI_=t.enableSEI,this.enableSEI_&&BA&&(this.sei_=new AY(this,this.log_,this.isUplink_))}var t;return l(e,[{key:"initialize",value:function(){var e={encodedInsertableStreams:this.enableSEI_&&BA,iceServers:this.client_.getIceServers(),iceTransportPolicy:this.client_.getIceTransportPolicy(),sdpSemantics:this.sdpSemantics_,bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",tcpCandidatePolicy:"disable",IceTransportsType:"nohost"};this.peerConnection_=new RTCPeerConnection(e),this.peerConnection_.onconnectionstatechange=this.onConnectionStateChange.bind(this)}},{key:"close",value:function(){this.log_.info("closing connection"),this.closePeerConnection(),this.sei_&&(this.sei_.destroy(),this.sei_=null)}},{key:"closePeerConnection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.peerConnection_&&(this.peerConnection_.onconnectionstatechange=function(){},this.peerConnection_.close(),this.peerConnection_=null,e&&this.emitConnectionStateChangedEvent(LM))}},{key:"getDTLSTransportState",value:function(){if(!this.peerConnection_)return DM;var e=null;if(this.isUplink_){if(!AA()||0===this.peerConnection_.getSenders().length)return DM;e=this.peerConnection_.getSenders()[0].transport}else{if(!LA()||0===this.peerConnection_.getReceivers().length)return DM;e=this.peerConnection_.getReceivers()[0].transport}return e?e.state:DM}},{key:"onConnectionStateChange",value:function(e){var t=this.peerConnection_.iceConnectionState,n=this.getDTLSTransportState();if(this.log_.info("onConnectionStateChange() connectionState: "+e.target.connectionState),this.log_.info("ICE Transport state: ".concat(t,", DTLS Transport state: ").concat(n)),e.target.connectionState===PM&&this.emitConnectionStateChangedEvent(AM),e.target.connectionState===UM||e.target.connectionState===VM){var r="".concat(this.isUplink_?"uplink":"downlink"," ICE/DTLS Transport connection ").concat(e.target.connectionState,". ICE Transport state: ").concat(t,", DTLS Transport state: ").concat(n),o=new OD({message:r,code:yD.ICE_TRANSPORT_ERROR});uL.logFailedEvent({userId:this.client_.getUserId(),eventType:ik,error:o}),this.emitConnectionStateChangedEvent(LM),this.isErrorObserved_||this.emitter_.emit(XA.ERROR,o)}e.target.connectionState!==FM&&e.target.connectionState!==GM||(this.logSelectedCandidate(),uL.logSuccessEvent({userId:this.client_.getUserId(),eventType:ik}),this.emitConnectionStateChangedEvent(RM))}},{key:"emitConnectionStateChangedEvent",value:function(e){e!==this.currentState_&&(this.currentState_===NM&&e===AM||(NI.emit(CE,{client:this.client_,connection:this,prevState:this.currentState_,state:e}),this.emitter_.emit(XA.CONNECTION_STATE_CHANGED,{prevState:this.currentState_,state:e}),this.currentState_=e))}},{key:"hitTest",value:function(e){return(0===e||"0"===e)&&this.isUplink_||e===this.tinyId_}},{key:"addEventInternal",value:function(e,t){var n=this.client_.getUserId(),r={eventId:e,eventDesc:t,timestamp:zm(),userId:n,tinyId:this.client_.getTinyId()};this.isUplink_||(r.remoteUserId=this.userId_,r.remoteTinyId=this.tinyId_),aL(n,r)}},{key:"getPeerConnection",value:function(){return this.peerConnection_}},{key:"getClient",value:function(){return this.client_}},{key:"getUserId",value:function(){return this.userId_}},{key:"getTinyId",value:function(){return this.tinyId_}},{key:"logSelectedCandidate",value:(t=i(r().mark((function e(){var t,n,o,a,i,s,c;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.peerConnection_){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.peerConnection_.getStats();case 4:t=e.sent,n=w(t),e.prev=6,n.s();case 8:if((o=n.n()).done){e.next=18;break}if((a=O(o.value,2))[0],!FA(i=a[1])){e.next=16;break}return s=t.get(i.localCandidateId),c=t.get(i.remoteCandidateId),s&&this.log_.info("local candidate: ".concat(s.candidateType," ").concat(s.protocol,":").concat(s.ip||s.address,":").concat(s.port," ").concat(s.networkType||""," ").concat("relay"===s.candidateType?"relayProtocol:"+s.relayProtocol:"")),c&&this.log_.info("remote candidate: ".concat(c.candidateType," ").concat(c.protocol,":").concat(c.ip||c.address,":").concat(c.port)),e.abrupt("break",18);case 16:e.next=8;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(6),n.e(e.t0);case 23:return e.prev=23,n.f(),e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[6,20,23,26]])}))),function(){return t.apply(this,arguments)})},{key:"getCurrentState",value:function(){return this.currentState_}},{key:"waitForPeerConnectionConnected",value:function(){var e=this;return this.waitForPeerConnectionConnectedPromise_||(this.waitForPeerConnectionConnectedPromise_=new Promise((function(t,n){if(e.currentState_===RM)return t();var r=-1,o=function(e){e.state===RM&&(clearTimeout(r),i(),t())},a=function(t){t.client===e.client_&&(clearTimeout(r),i(),n(new OD({code:yD.API_CALL_ABORTED,message:eI({key:SS,data:"leave room"})})))},i=function(){NI.off(GI,a,e),e.emitter_.off(XA.CONNECTION_STATE_CHANGED,o,e)};r=setTimeout((function(){i();var e=new OD({code:yD.API_CALL_TIMEOUT,message:"connection timeout"});n(e)}),1e4),NI.on(GI,a,e),e.emitter_.on(XA.CONNECTION_STATE_CHANGED,o,e)})),this.waitForPeerConnectionConnectedPromise_=this.waitForPeerConnectionConnectedPromise_.then((function(t){return e.waitForPeerConnectionConnectedPromise_=null,t})).catch((function(t){throw e.waitForPeerConnectionConnectedPromise_=null,t}))),this.waitForPeerConnectionConnectedPromise_}},{key:"getReconnectionCount",value:function(){return this.reconnectionCount_}},{key:"startReconnection",value:function(){this.isReconnecting_=!0,this.emitConnectionStateChangedEvent(NM),this.reconnect(),this.addEventInternal(this.isUplink_?JD:ZD,"".concat(this.isUplink_?"uplink":"downlink","-connection is reconnecting"))}},{key:"stopReconnection",value:function(){this.log_.info("stop reconnection"),this.isReconnecting_=!1,this.reconnectionCount_=0,this.clearReconnectionTimer(),this.signalChannel_.off(Gj,this.reconnect,this)}},{key:"on",value:function(e,t,n){this.emitter_.on(e,t,n)}},{key:"off",value:function(e,t,n){this.emitter_.off(e,t,n)}},{key:"setDelay",value:function(e){var t=e.audioDelay,n=e.videoDelay;this.delay_={audioDelay:t,videoDelay:n}}},{key:"getDelay",value:function(){return this.delay_}},{key:"isH264",get:function(){var e,t;if(null!==(e=this.peerConnection_)&&void 0!==e&&null!==(t=e.remoteDescription)&&void 0!==t&&t.sdp)return!!this.peerConnection_.remoteDescription.sdp.includes("H264");var n=this.client_.getSystemResult().detail,r=n.isH264EncodeSupported,o=n.isH264DecodeSupported;return this.isUplink_?r:o}}]),e}(),xY=function(){function e(){s(this,e),this.set_=new Set,NI.on(RI,this.add,this),NI.on(UI,this.add,this),NI.on(VI,this.delete,this),NI.on(GI,this.delete,this)}return l(e,[{key:"add",value:function(e){var t=e.client,n=e.roomId,r=this.getKey(t.getUserId(),n||t.getRoomId(),t.getSDKAppId(),t.getUseStringRoomId());this.set_.add(r)}},{key:"delete",value:function(e){var t=e.client,n=this.getKey(t.getUserId(),t.getRoomId(),t.getSDKAppId(),t.getUseStringRoomId());this.set_.delete(n)}},{key:"getKey",value:function(e,t,n,r){return"".concat(n,"_").concat(t,"_").concat(e,"_").concat(r)}},{key:"isJoined",value:function(e){var t=e.userId,n=e.roomId,r=e.sdkAppId,o=e.client;return this.set_.has(this.getKey(t,n,r,o.getUseStringRoomId()))}}]),e}(),PY=new xY;function UY(e,t,n,r){if(this.useStringRoomId_){if(!uI(e)||!/^[A-Za-z\d\s!#$%&()+\-:;<=.>?@[\]^_{}|~,]{1,64}$/.test(e))throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:zC,data:t,link:{className:r,fnName:n}})})}else if(!(dI(e)&&/^[1-9]\d*$/.test(String(e))&&e<4294967295))throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:qC,data:t,link:{className:r,fnName:n}})})}function VY(e,t,n,r){if(!/^[A-Za-z\d_-]*$/.test(e))throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:dw,data:t,link:{className:r,fnName:n}})})}var BY={createClient:{name:"clientConfig",required:!0,type:Tk,properties:{sdkAppId:{required:!0,type:Ck,allowEmpty:!1},userId:{required:!0,type:kk,allowEmpty:!1},userSig:{required:!0,type:kk,allowEmpty:!1},mode:{required:!0,type:kk,values:["rtc",OM]},useStringRoomId:{type:wk},autoSubscribe:{type:wk},enableAutoPlayDialog:{type:wk},streamId:{type:kk},userDefineRecordId:{type:kk},pureAudioPushMode:{type:Ck,values:[1,2]},enableSEI:{type:wk}}},createStream:{name:"streamConfig",required:!0,type:Tk,properties:{userId:{type:kk},audio:{type:wk},video:{type:wk},screen:{type:wk},screenAudio:{type:wk},microphoneId:{type:kk},cameraId:{type:kk},facingMode:{type:[kk,Tk]},audioSource:{instanceOf:window.MediaStreamTrack},videoSource:{instanceOf:window.MediaStreamTrack}},validate:function(e){if(!lI(e.screen)&&e.screen&&lI(e.audio)&&(e.audio=!1),!(lI(e.audio)&&lI(e.video)||lI(e.audioSource)&&lI(e.videoSource)))throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:Zw})});if(!lI(e.screen)&&!0===e.screen&&!0===e.video)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:eS})});if(e.audio&&e.screenAudio)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:tS})});if(!0!==e.screen&&!0===e.screenAudio)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:nS})});if(!lI(e.screen)&&!0===e.screen&&!this.isScreenShareSupported())throw new OD({code:yD.INVALID_OPERATION,message:eI({key:uS})})}}},FY={join:{name:"options",required:!0,type:Tk,properties:{roomId:{required:!0,type:[Ck,kk],allowEmpty:!1,validate:UY},role:{type:[kk],values:[CM,wM]},privateMapKey:{type:[kk]}},validate:function(e){if(this.isJoined_)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:YC})});if(this.checkDestroy(),PY.isJoined({userId:this.userId_,roomId:e.roomId,sdkAppId:this.sdkAppId_,client:this}))throw new OD({code:yD.INVALID_OPERATION,message:eI({key:Uw,data:this.userId_})})}},publish:[{name:"stream",required:!0,instanceOf:Yk,validate:function(e){if(!this.isJoined_)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:XC})});if(this.mode_===OM&&this.role_===wM)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:ZC})});if(!e.getIsReadyToPublish())throw new OD({code:yD.INVALID_OPERATION,message:eI({key:ew})});if(this.notPublishWithoutH264Supported_)throw new OD({code:yD.NOT_SUPPORTED_H264,message:eI({key:iS})})}},{name:"options",type:Tk,defaultValue:{isAuxiliary:!1},properties:{isAuxiliary:{type:wk,defaultValue:!1,validate:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e&&!RA())throw new OD({code:yD.NOT_SUPPORTED,message:eI({key:dS})});if(this.uplinkConnection_&&(e&&this.uplinkConnection_.isAuxStreamPublished||!e&&this.uplinkConnection_.isMainStreamPublished))throw new OD({code:yD.INVALID_OPERATION,message:eI({key:tw,data:e?jO:"local"})});var t=this.localScreenStream_||M(this.connections_.values()).findIndex((function(e){return e.getTrackState().auxiliary}))>=0;if(!this.enableMultiAuxStream_&&e&&t)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:IS})})}}}}],unpublish:{name:"stream",required:!0,instanceOf:Yk,validate:function(e){if(e!==this.localStream_&&e!==this.localAuxStream_){if(this.localStream_||this.localAuxStream_)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:QC})});this.log_.warn("Client currently has no published stream, please call publish() first.")}}},subscribe:[{name:"stream",required:!0,instanceOf:zk,validate:function(e){if(!e.getConnection())throw new OD({code:yD.INVALID_OPERATION,message:eI({key:nw})});if(this.notSubscribeWithoutH264Supported_)throw new OD({code:yD.NOT_SUPPORTED_H264,message:eI({key:sS})})}},{name:"options",type:Tk,properties:{audio:{type:wk},video:{type:wk},smallVideo:{type:wk}},validate:function(e){var t=e.audio,n=e.video,r=e.smallVideo;if(!1===t&&!1===n&&(lI(r)||!1===r))throw new OD({code:yD.INVALID_OPERATION,message:eI({key:_S})})}}],unsubscribe:{name:"stream",required:!0,instanceOf:zk,validate:function(e){if(!e.getConnection())throw new OD({code:yD.INVALID_OPERATION,message:eI({key:nw})})}},switchRole:{name:"role",required:!0,values:[CM,wM],validate:function(){if(this.mode_!==OM)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:ow})});if(!this.isJoined_)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:aw})})}},startPublishCDNStream:{name:"options",required:!1,properties:{streamId:{type:kk,validate:VY},streamType:{type:kk,values:["main","auxiliary"]},appId:{type:Ck,allowEmpty:!1},bizId:{type:Ck,allowEmpty:!1},url:{type:kk,allowEmpty:!1}},validate:function(){if(this.isDestroyed_)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:Vw,data:{funName:"startPublishCDNStream"}})})}},startMixTranscode:{name:"config",required:!0,type:Tk,properties:{mode:{type:kk,values:["preset-layout","manual"]},streamId:{type:kk,validate:VY},videoWidth:{type:Ck,notLessThanZero:!0},videoHeight:{type:Ck,notLessThanZero:!0},videoBitrate:{type:Ck,notLessThanZero:!0,allowEmpty:!1},videoFramerate:{type:Ck,validate:function(e,t,n,r){if(e<=0||e>30)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:Yw,link:{className:r,fnName:n}})})}},videoGOP:{type:Ck,validate:function(e,t,n,r){if(e<1||e>8)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:zw,link:{className:r,fnName:n}})})}},audioSampleRate:{type:Ck,notLessThanZero:!0},audioBitrate:{type:Ck,validate:function(e,t,n,r){if(e<32||e>192)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:qw,link:{className:r,fnName:n}})})}},audioChannels:{type:Ck,values:[1,2]},backgroundColor:{type:Ck},backgroundImage:{type:kk},mixUsers:{required:!0,type:Sk,arrayItem:{require:!0,type:Tk,properties:{userId:{required:!0,type:kk},roomId:{type:[kk,Ck],validate:UY},pureAudio:{type:wk},width:{type:Ck,notLessThanZero:!0},height:{type:Ck,notLessThanZero:!0},locationX:{type:Ck,notLessThanZero:!0},locationY:{type:Ck,notLessThanZero:!0},zOrder:{type:Ck},streamType:{type:kk,values:["main","auxiliary"]},renderMode:{type:Ck,values:[0,1,2,4]}}}}},validate:function(e,t,n,r,o){var a=0,i=0,s=e.mixUsers,c=[];if(s.forEach((function(e,t){if(c.push(e.userId),!e.pureAudio){if(!e.zOrder||e.zOrder<1||e.zOrder>15)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:Ww,data:"config.mixUsers[".concat(t,"].zOrder"),link:{className:r,fnName:n}})});e.width+e.locationX>a&&(a=e.width+e.locationX),e.height+e.locationY>i&&(i=e.height+e.locationY)}})),c.indexOf(this.getUserId())<0)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:Kw,link:{className:r,fnName:n}})});if(e.videoWidth<a||e.videoHeight<i)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:$w,link:{className:r,fnName:n}})})}},sendSEIMessage:[{name:"buffer",required:!0,instanceOf:ArrayBuffer,validate:function(e){if(!BA)throw new OD({code:yD.NOT_SUPPORTED,message:eI({key:bS})});if(!this.enableSEI_)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:yS})});if(e.byteLength>1e3)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:MS,data:e.byteLength})});if(0===e.byteLength)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:OS})});if(!this.uplinkConnection_||!this.localStream_)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:kS})});if(!this.localStream_.hasVideo())throw new OD({code:yD.INVALID_OPERATION,message:eI({key:CS})});var t=this.uplinkConnection_.isH264;if(!t)throw new OD({code:yD.NOT_SUPPORTED,message:eI({key:bS,data:t})})}},{name:"options",type:Tk,properties:{seiPayloadType:{type:Ck,values:[5,243]}}}]},GY={switchDevice:[{name:"type",required:!0,type:kk,values:[wO,SO]},{name:"deviceId",required:!0,type:kk,validate:function(){if(this.screen_&&!this.audio_||this.audioSource_||this.videoSource_)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:Mw})});if(this.publishState_===Dk)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:kw})});if(!xA())throw new OD({code:yD.NOT_SUPPORTED,message:eI({key:lS})})}}],setAudioCaptureVolume:{name:"volume",type:Ck}},HY={play:[{name:"elementId",required:!0,type:[kk,"HTMLDivElement"],validate:function(e,t,n){if(uI(e)){var r=document.getElementById(e);if(!r)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:Jw,data:{key:t,fnName:n}})});if(!(r instanceof HTMLDivElement))throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:Xw,data:{key:t,fnName:n,type:vI(r)}})})}}},{name:"options",type:Tk,properties:{objectFit:{type:kk,values:["contain","cover","fill"]},muted:{type:wk},mirror:{type:wk}}}],addTrack:{name:cM,instanceOf:window.MediaStreamTrack,validate:function(e){if(this.isAddingTrack_)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:Sw})});if(this.isRemovingTrack_)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:Tw})});if(this.publishState_===Dk)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:Iw})});var t=this.getMediaStream();if(!t)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:Ew})});if(e.kind===wO&&t.getAudioTracks().length>0||e.kind===SO&&t.getVideoTracks().length>0)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:jw})});if(!NA()&&!AA())throw new OD({code:yD.NOT_SUPPORTED,message:eI({key:cS,data:aM})})}},removeTrack:{name:cM,instanceOf:window.MediaStreamTrack,validate:function(e){if(this.isAddingTrack_)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:Lw})});if(this.isRemovingTrack_)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:Aw})});if(this.publishState_===Dk)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:Nw})});var t=this.getMediaStream();if(!t)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:Ew})});if(-1===t.getTracks().indexOf(e))throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:Rw})});if(!NA()){if(1===t.getTracks().length)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:xw})});if(e.kind===wO)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:Dw})});if(!AA())throw new OD({code:yD.NOT_SUPPORTED,message:eI({key:cS,data:iM})})}}},replaceTrack:{name:cM,instanceOf:window.MediaStreamTrack,validate:function(e){var t=this.getMediaStream();if(!t)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:ww})});if(this.publishState_===Dk)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:Cw})});if(e.kind===wO&&t.getAudioTracks().length<=0||e.kind===SO&&t.getVideoTracks().length<=0)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:Pw,data:e})});if(!xA())throw new OD({code:yD.NOT_SUPPORTED,message:eI({key:cS,data:sM})})}}},YY={TRTC:BY,CLIENT:FY,LOCAL_STREAM:GY,STREAM:HY};function zY(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,r){var o=r.value;return r.value=function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return WY.call(this,t,r,n,this.name_),o.apply(this,r)},r}}function qY(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,o){var a=o.value;return o.value=i(r().mark((function e(){var o,i,s,c=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(o=c.length,i=new Array(o),s=0;s<o;s++)i[s]=c[s];return WY.call(this,t,i,n,this.name_),e.abrupt("return",a.apply(this,i));case 3:case"end":return e.stop()}}),e,this)}))),o}}function WY(e,t,n,r){try{for(var o=0;o<e.length;o++)KY.call(this,{rule:e[o],value:t[o],key:e[o].name,fnName:n,className:r})}catch(aK){throw RE.error(aK),aK}}function KY(e){var t=this,n=e.rule,r=e.value,o=e.key,a=e.fnName,i=e.className;if(lI(r)){if(n.required)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:SC,data:{key:o,rule:n,fnName:a,value:r},link:{className:i,fnName:a}})});if(lI(n.defaultValue))return;r=n.defaultValue}if(Array.isArray(n.type)){if(!n.type.map((function(e){return e.toLowerCase()})).includes(vI(r)))throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:TC,data:{key:o,rule:n,fnName:a,value:r},link:{className:i,fnName:a}})})}else if(!lI(n.type)&&vI(r)!==n.type)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:TC,data:{key:o,rule:n,fnName:a,value:r},link:{className:i,fnName:a}})});if(!1===n.allowEmpty){var s=dI(r)&&(0===r||Number.isNaN(r)),c=uI(r)&&""===r.trim();if(s||c)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:IC,data:{key:o,rule:n,fnName:a,value:r},link:{className:i,fnName:a}})})}if(n.notLessThanZero&&dI(r)&&r<0)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:Hw,data:{key:o,rule:n,fnName:a,value:r},link:{className:i,fnName:a}})});if(uI(n.instanceOf)){if(!r||r.name_!==n.instanceOf)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:EC,data:{key:o,rule:n,fnName:a,value:r},link:{className:i,fnName:a}})})}else if(cI(n.instanceOf)&&!(r instanceof n.instanceOf))throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:EC,data:{key:o,rule:n,fnName:a,value:r},link:{className:i,fnName:a}})});if(n.values&&!n.values.includes(r))throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:jC,data:{key:o,rule:n,fnName:a,value:r},link:{className:i,fnName:a}})});var l=n.properties;aI(l)&&fI(r)&&Object.keys(l).forEach((function(e){KY.call(t,{rule:l[e],value:r&&r[e],key:"".concat(o,".").concat(e),fnName:a,className:i})}));var u=n.arrayItem;aI(u)&&hI(r)&&r.forEach((function(e,n){KY.call(t,{rule:u,value:e,key:"".concat(o,"[").concat(n,"]"),fnName:a,className:i})})),cI(n.validate)&&n.validate.call(this,r,o,a,i,this)}So({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var $Y=So,JY=D,XY=Hi.f;$Y({target:"Object",stat:!0,forced:JY((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:XY});var QY,ZY,ez=VN;function tz(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{retries:5,timeout:2e3};return function(t,n,r){var o=jE({retryFunction:r.value,settings:e,onError:e.onError,onRetrying:e.onRetrying,onRetryFailed:e.onRetryFailed});return r.value=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(this,t)},r}}So({target:"Array",stat:!0,forced:!yc((function(e){Array.from(e)}))},{from:ez});var nz,rz,oz,az,iz=5e3,sz={msg_user_info:0,uint32_video_avg_fps:0,uint32_video_width:0,uint32_video_height:0,uint32_video_avg_bitrate:0,uint32_video_block_time:0,uint32_video_play_time:0,uint32_audio_block_time:0,uint32_audio_play_time:0,uint32_audio_play_db:0,uint32_avg_down_loss:0,uint32_stream_type:0,uint32_video_render_first:0,uint32_video_block_count:0,uint32_audio_block_count:0,uint32_audio_bitrate:0,uint32_video_black_screen_subjective:0,uint32_audio_recv_bitrate:0,uint32_video_external_block_time:0},cz=l((function e(t){s(this,e),this.str_identifier=String(t.userId),this.uint64_tinyid=Number(t.tinyId),this.uint32_role=t.role})),lz=(QY=tz({timeout:500,retries:3}),ZY=function(){function e(t){var n=this;s(this,e),this.frameWorkType_=t.frameWorkType||30,this.component_=t.component||0,this.client_=t.client,this.keyPrefix_="key_point",this.storageKey_="".concat(this.keyPrefix_,"_").concat(this.client_.getUserId()),this.log_=RE.createLogger({id:"kpm|"+this.client_.getUserId(),userId:this.client_.getUserId(),sdkAppId:this.client_.getSDKAppId()}),Object.getOwnPropertyNames(this.__proto__).forEach((function(e){e.startsWith("handle")&&cI(n[e])&&(n[e]=function(e){var t=e.fn,n=e.context;return i(r().mark((function e(){var o,a,i,s=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(e.prev=0,o=s.length,a=new Array(o),i=0;i<o;i++)a[i]=s[i];return e.next=4,t.apply(n||this,a);case 4:return e.abrupt("return",e.sent);case 7:e.prev=7,e.t0=e.catch(0),RE.error("".concat(t.name,"() error observed ")+e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})))}({fn:n[e],context:n}))})),this.initData(),this.installEvents(),this.intervalId_=mA.run(uC,this.setStorage.bind(this),{delay:2e4})}var t,o,a;return l(e,[{key:"initData",value:function(){var e;this.firstPublishedUserList_=[],this.networkQuality_={totalUplinkRTT:0,totalUplinkLoss:0,count:0,totalDownlinkRTTAndLossMap:new Map},this.basicInfo={string_sdk_version:No,uint32_os_type:15,string_device_name:"",string_http_user_agent:navigator.userAgent,string_os_version:"",string_domain:location.host,uint32_avg_rtt:0,uint32_avg_up_loss:0,uint32_scene:"live"===(null===(e=this.client_)||void 0===e?void 0:e.getMode())?1:0,uint32_joining_duration:0,uint32_networkType:Ek[oI()],uint32_framework:this.frameWorkType_,uint32_component:this.component_},this.pathJoinRoom_={uint64_start_time:0,uint64_init_audio_start_time:0,uint64_init_audio_end_time:0,uint64_init_camera_start_time:0,uint64_init_camera_end_time:0,uint64_send_request_acc_ip_cmd_start_time:0,uint64_send_request_acc_ip_cmd_end_time:0,uint64_send_request_enter_room_cmd_start_time:0,uint64_send_request_enter_room_cmd_end_time:0,uint64_send_first_video_frame_time:0,uint64_recv_userlist_time:0,uint64_end_time:0,int32_init_audio_ret:0,int32_init_camera_ret:0,int32_send_request_acc_ip_cmd_ret:0,int32_send_request_enter_room_cmd_ret:0,int32_end_ret:0},this.pathLeaveRoom_={uint64_start_time:0,uint64_send_request_exit_room_cmd_start_time:0,uint64_send_request_exit_room_cmd_end_time:0,uint64_end_time:0,int32_send_request_exit_room_cmd_ret:0,int32_end_ret:0},this.pathMainVideoMap_=new Map,this.pathMainAudioMap_=new Map,this.pathAuxiliaryMap_=new Map,this.localStreamStats_={totalVideoBitrate:0,totalVideoFPS:0,totalVideoHeight:0,totalVideoWidth:0,totalAudioLevel:0,videoCount:0,audioLevelCount:0,publishStartTime:0,statsToReport:{uint32_audio_capture_db:0,uint32_video_big_capture_fps:0,uint32_video_big_bitrate:0,uint32_video_big_resolution:0}},this.remoteStreamStatsMap_=new Map}},{key:"installEvents",value:function(){NI.on(RI,this.handleJoinStart,this),NI.on(qI,this.handleWSStart,this),NI.on(WI,this.handleWSEnd,this),NI.on(xI,this.handleJoinSendCMD,this),NI.on(PI,this.handleJoinReceivedCMDResponce,this),NI.on(UI,this.handleJoinSuccess,this),NI.on(VI,this.handleJoinFailed,this),NI.on(YI,this.handleReceivedPublishUserList,this),NI.on(CE,this.handleConnectionStateChanged,this),NI.on(BI,this.handleLeaveStart,this),NI.on(GI,this.handleLeaveSuccess,this),NI.on(FI,this.handleLeaveSendCMD,this),NI.on(wE,this.handleSendSubscribeCMD,this),NI.on(rE,this.handleVideoPlaying,this),NI.on(oE,this.handleAudioPlaying,this),NI.on(SE,this.handleNetworkQuality,this),NI.on(HI,this.handleHeartbeatStats,this),NI.on(iE,this.handleRemoteStreamAdded,this),NI.on(sE,this.handleRemoteStreamSubscribeStart,this),NI.on(cE,this.handleRemoteStreamSubscribed,this),NI.on(dE,this.handleRemoteStreamRemoved,this),NI.on(bE,this.handleVideoLoadedData,this),NI.on(_E,this.handlePlayStream,this),NI.on(zI,this.handlePublishStart,this),NI.on(fE,this.handleLocalStreamInitStart,this),NI.on(hE,this.handleLocalStreamInitEnd,this),NI.on(mE,this.handleLocalStreamInitFailed,this)}},{key:"uninstallEvents",value:function(){NI.off(RI,this.handleJoinStart,this),NI.off(qI,this.handleWSStart,this),NI.off(WI,this.handleWSEnd,this),NI.off(xI,this.handleJoinSendCMD,this),NI.off(PI,this.handleJoinReceivedCMDResponce,this),NI.off(YI,this.handleReceivedPublishUserList,this),NI.off(CE,this.handleConnectionStateChanged,this),NI.off(BI,this.handleLeaveStart,this),NI.off(GI,this.handleLeaveSuccess,this),NI.off(UI,this.handleJoinSuccess,this),NI.off(VI,this.handleJoinFailed,this),NI.off(FI,this.handleLeaveSendCMD,this),NI.off(wE,this.handleSendSubscribeCMD,this),NI.off(rE,this.handleVideoPlaying,this),NI.off(oE,this.handleAudioPlaying,this),NI.off(SE,this.handleNetworkQuality,this),NI.off(HI,this.handleHeartbeatStats,this),NI.off(iE,this.handleRemoteStreamAdded,this),NI.off(sE,this.handleRemoteStreamSubscribeStart,this),NI.off(cE,this.handleRemoteStreamSubscribed,this),NI.off(dE,this.handleRemoteStreamRemoved,this),NI.off(bE,this.handleVideoLoadedData,this),NI.off(_E,this.handlePlayStream,this),NI.off(zI,this.handlePublishStart,this),NI.off(fE,this.handleLocalStreamInitStart,this),NI.off(hE,this.handleLocalStreamInitEnd,this),NI.off(mE,this.handleLocalStreamInitFailed,this)}},{key:"destroy",value:function(){this.uninstallEvents(),mA.clearTask(this.intervalId_),this.client_=null}},{key:"handleJoinStart",value:function(e){this.hitTest(e.client)&&0===this.pathJoinRoom_.uint64_start_time&&(this.pathJoinRoom_.uint64_start_time=Date.now(),this.checkStorage())}},{key:"handleWSStart",value:function(e){var t=e.client;this.hitTest(t)&&0===this.pathJoinRoom_.uint64_send_request_acc_ip_cmd_start_time&&(this.pathJoinRoom_.uint64_send_request_acc_ip_cmd_start_time=Date.now())}},{key:"handleWSEnd",value:function(e){var t=e.client,n=e.error;this.hitTest(t)&&0===this.pathJoinRoom_.uint64_send_request_acc_ip_cmd_end_time&&(this.pathJoinRoom_.uint64_send_request_acc_ip_cmd_end_time=Date.now(),n&&(this.pathJoinRoom_.int32_send_request_acc_ip_cmd_ret=n instanceof OD?Number(n.getExtraCode()||n.getCode()):yD.UNKNOWN,this.pathJoinRoom_.int32_end_ret=2))}},{key:"handleJoinSendCMD",value:function(e){this.hitTest(e.client)&&0===this.pathJoinRoom_.uint64_send_request_enter_room_cmd_start_time&&(this.pathJoinRoom_.uint64_send_request_enter_room_cmd_start_time=Date.now())}},{key:"handleJoinReceivedCMDResponce",value:function(e){this.hitTest(e.client)&&0===this.pathJoinRoom_.uint64_send_request_enter_room_cmd_end_time&&(this.pathJoinRoom_.uint64_send_request_enter_room_cmd_end_time=Date.now(),this.pathJoinRoom_.int32_send_request_enter_room_cmd_ret=e.code,0!==e.code&&(this.pathJoinRoom_.int32_end_ret=3))}},{key:"handleJoinSuccess",value:function(e){this.hitTest(e.client)&&0===this.pathJoinRoom_.uint64_end_time&&(this.pathJoinRoom_.uint64_end_time=Date.now(),this.pathJoinRoom_.int32_end_ret=0)}},{key:"handleJoinFailed",value:function(e){var t=e.client;this.hitTest(t)&&(this.pathJoinRoom_.uint64_end_time=Date.now(),0===this.pathJoinRoom_.int32_end_ret&&(this.pathJoinRoom_.int32_end_ret=3),this.prepareReport(),this.report())}},{key:"handleReceivedPublishUserList",value:function(e){this.hitTest(e.client)&&0===this.pathJoinRoom_.uint64_recv_userlist_time&&(this.pathJoinRoom_.uint64_recv_userlist_time=Date.now(),this.firstPublishedUserList_=e.data.data&&e.data.data.userList||[])}},{key:"handleConnectionStateChanged",value:function(e){var t=e.client,n=e.state,r=e.connection;if(this.hitTest(t)&&n===RM){this.client_.getUplinkConnection()===r&&0===this.pathJoinRoom_.uint64_send_first_video_frame_time&&this.localStreamStats_.publishStartTime>this.pathJoinRoom_.uint64_end_time&&this.localStreamStats_.publishStartTime-this.pathJoinRoom_.uint64_end_time<=100&&(this.pathJoinRoom_.uint64_send_first_video_frame_time=Date.now());var o=this.pathMainVideoMap_.get("".concat(r.getUserId(),"_").concat(EM));o&&0===o.statsToReport.uint64_pc_connected_time&&(o.statsToReport.uint64_pc_connected_time=Date.now())}}},{key:"handleLeaveStart",value:function(e){this.hitTest(e.client)&&(this.pathLeaveRoom_.uint64_start_time=Date.now())}},{key:"handleLeaveSuccess",value:function(e){this.hitTest(e.client)&&0===this.pathLeaveRoom_.uint64_end_time&&(this.pathLeaveRoom_.uint64_end_time=Date.now(),0!==this.pathJoinRoom_.uint64_end_time?this.basicInfo.uint32_joining_duration=this.pathLeaveRoom_.uint64_end_time-this.pathJoinRoom_.uint64_end_time:this.log_.warn("pathJoinRoom endTime is 0"),this.report())}},{key:"handleLeaveSendCMD",value:function(e){this.hitTest(e.client)&&(this.pathLeaveRoom_.uint64_send_request_exit_room_cmd_start_time=Date.now(),this.pathLeaveRoom_.uint64_send_request_exit_room_cmd_end_time=Date.now())}},{key:"handleRemoteStreamAdded",value:function(e){var t=e.client,r=e.stream;if(this.hitTest(t)){var o=r.getUserId(),a=r.getType(),i="".concat(o,"_").concat(a),s=this.remoteStreamStatsMap_.get(i);if(s)s.stream=r;else{var c={userId:o,totalVideoFPS:0,totalVideoBitrate:0,totalAudioLevel:0,totalAudioBitrate:0,totalLoss:0,audioCount:0,audioLevelCount:0,videoCount:0,networkQualityCount:0,streamAddedTime:Date.now(),subscribeStartTime:0,subscribedTime:0,playStreamTime:0,statsToReport:n({},sz),stream:r};c.statsToReport.msg_user_info=new cz({userId:o,tinyId:r.getTinyId(),role:MM}),c.statsToReport.uint32_stream_type=a===EM?2:7,this.remoteStreamStatsMap_.set(i,c)}}}},{key:"handleRemoteStreamSubscribeStart",value:function(e){var t=e.client,n=e.stream;if(this.hitTest(t)){var r=n.getUserId(),o=n.getType(),a="".concat(r,"_").concat(o),i=this.remoteStreamStatsMap_.get(a);i&&0===i.subscribeStartTime&&(i.subscribeStartTime=Date.now())}}},{key:"handleSendSubscribeCMD",value:function(e){if(this.hitTest(e.client)){var t=new cz(e),n=Date.now(),r="".concat(e.userId,"_").concat(EM);e.trackState.video&&e.subscribeState.video&&!this.pathMainVideoMap_.has(r)&&this.pathMainVideoMap_.set(r,{statsToReport:{msg_user_info:t,uint64_start_enter_time:this.pathJoinRoom_.uint64_start_time,uint64_render_first_frame_time:0,uint64_combine_first_frame_time:0,uint64_pc_connected_time:0},userId:e.userId,sendSubscribeCMDTime:n}),e.trackState.audio&&e.subscribeState.audio&&!this.pathMainAudioMap_.has(r)&&this.pathMainAudioMap_.set(r,{statsToReport:{msg_user_info:t,uint64_start_enter_time:this.pathJoinRoom_.uint64_start_time,uint64_play_first_frame_time:0},userId:e.userId,sendSubscribeCMDTime:n});var o="".concat(e.userId,"_").concat(jM);e.trackState.auxiliary&&e.subscribeState.auxiliary&&!this.pathAuxiliaryMap_.has(o)&&this.pathAuxiliaryMap_.set(o,{sendSubscribeCMDTime:n})}}},{key:"handleRemoteStreamSubscribed",value:function(e){var t=e.client,n=e.stream;if(this.hitTest(t)){var r=n.getUserId(),o=n.getType(),a="".concat(r,"_").concat(o),i=this.remoteStreamStatsMap_.get(a);i&&0===i.subscribedTime&&(i.subscribedTime=Date.now(),i.stream=n)}}},{key:"handleRemoteStreamRemoved",value:function(e){var t=e.client,n=e.stream;if(this.hitTest(t)){var r=n.getUserId(),o=n.getType(),a=this.remoteStreamStatsMap_.get("".concat(r,"_").concat(o));a&&(a.stream=null)}}},{key:"handlePlayStream",value:function(e){var t=e.stream;if(t.isRemote()&&t.getConnection()&&this.hitTest(t.getConnection().getClient())){var n=t.getConnection().getUserId(),r="".concat(n,"_").concat(t.getType());if(this.remoteStreamStatsMap_.has(r)){var o=this.remoteStreamStatsMap_.get(r);0===o.playStreamTime&&(o.playStreamTime=Date.now())}}}},{key:"handleVideoLoadedData",value:function(e){var t=e.stream;if(t.isRemote()&&t.getConnection()&&this.hitTest(t.getConnection().getClient())){var n=t.getConnection().getUserId(),r="".concat(n,"_").concat(t.getType());if(this.pathMainVideoMap_.has(r)){var o=this.pathMainVideoMap_.get(r);0===o.statsToReport.uint64_combine_first_frame_time&&(o.statsToReport.uint64_combine_first_frame_time=Date.now())}}}},{key:"handleVideoPlaying",value:function(e){var t=e.stream;if(t.isRemote()&&t.getConnection()&&this.hitTest(t.getConnection().getClient())){var n=t.getConnection().getUserId(),r="".concat(n,"_").concat(t.getType()),o=Date.now();if(this.pathMainVideoMap_.has(r)){var a=this.pathMainVideoMap_.get(r);if(0===a.statsToReport.uint64_render_first_frame_time&&(a.statsToReport.uint64_render_first_frame_time=o),this.remoteStreamStatsMap_.has(r)){var i=this.remoteStreamStatsMap_.get(r),s=i.statsToReport,c=i.playStreamTime,l=i.subscribedTime;0===s.uint32_video_render_first&&c-l<=100&&(s.uint32_video_render_first=o-a.sendSubscribeCMDTime)}}if(t.getType()===jM&&this.pathAuxiliaryMap_.has(r)&&this.remoteStreamStatsMap_.has(r)){var u=this.remoteStreamStatsMap_.get(r),d=u.statsToReport,p=u.playStreamTime,f=u.subscribedTime;0===d.uint32_video_render_first&&p-f<=100&&(d.uint32_video_render_first=o-this.pathAuxiliaryMap_.get(r).sendSubscribeCMDTime)}}}},{key:"handleAudioPlaying",value:function(e){if(e.stream.isRemote()&&e.stream.getConnection()&&this.hitTest(e.stream.getConnection().getClient())){var t=e.stream.getConnection().getUserId(),n="".concat(t,"_").concat(e.stream.getType());if(this.pathMainAudioMap_.has(n)){var r=this.pathMainAudioMap_.get(n);0===r.statsToReport.uint64_play_first_frame_time&&(r.statsToReport.uint64_play_first_frame_time=Date.now())}}}},{key:"handleNetworkQuality",value:function(e){var t=this;this.hitTest(e.client)&&(this.networkQuality_.totalUplinkLoss+=e.uplinkLoss,this.networkQuality_.totalUplinkRTT+=e.uplinkRTT,this.networkQuality_.count++,e.downlinkLossAndRTTMap.forEach((function(e){var n=e.rtt,r=e.loss,o=e.userId,a=t.networkQuality_.totalDownlinkRTTAndLossMap.get(o);a?(a.totalRTT+=n,a.totalLoss+=r,a.count++):t.networkQuality_.totalDownlinkRTTAndLossMap.set(o,{totalRTT:n,totalLoss:r,count:1})})))}},{key:"handleHeartbeatStats",value:function(e){var t=this;if(this.hitTest(e.client)){var n=e.stats,r=n.msg_up_stream_info,o=n.msg_down_stream_info;if(r.msg_video_status[0]){var a=r.msg_video_status[0],i=a.uint32_video_codec_bitrate,s=a.uint32_video_enc_fps,c=a.uint32_video_width,l=a.uint32_video_height;this.localStreamStats_.totalVideoBitrate+=i,this.localStreamStats_.totalVideoFPS+=s,this.localStreamStats_.totalVideoWidth+=c,this.localStreamStats_.totalVideoHeight+=l,this.localStreamStats_.videoCount++}if(r.msg_audio_status){var u=r.msg_audio_status.audioLevel;Math.floor(100*u)>0&&(this.localStreamStats_.totalAudioLevel+=u,this.localStreamStats_.audioLevelCount++)}o.forEach((function(e){var n=e.msg_user_info,r=e.msg_audio_status,o=e.msg_video_status,a=n.str_identifier;if(o.forEach((function(e){var n=2===e.uint32_video_stream_type,r=7===e.uint32_video_stream_type,o="".concat(a,"_").concat(n?EM:jM);if(t.remoteStreamStatsMap_.has(o)){var i,s,c=t.remoteStreamStatsMap_.get(o);(n&&null!==(i=c.stream)&&void 0!==i&&i.isMainVideoSubscribed||r&&null!==(s=c.stream)&&void 0!==s&&s.isAuxVideoSubscribed)&&(c.totalVideoFPS+=e.uint32_video_receive_fps,c.totalVideoBitrate+=e.uint32_video_codec_bitrate,c.videoCount++,0===c.statsToReport.uint32_video_width&&(c.statsToReport.uint32_video_width=e.uint32_video_width),0===c.statsToReport.uint32_video_height&&(c.statsToReport.uint32_video_height=e.uint32_video_height))}})),r){var i="".concat(a,"_").concat(EM);if(t.remoteStreamStatsMap_.has(i)){var s,c=t.remoteStreamStatsMap_.get(i);null!==(s=c.stream)&&void 0!==s&&s.isMainAudioSubscribed&&(c.totalAudioBitrate+=r.uint32_audio_codec_bitrate,c.audioCount++,Math.floor(100*r.audioLevel)>0&&(c.totalAudioLevel+=r.audioLevel,c.audioLevelCount++))}}}))}}},{key:"handlePublishStart",value:function(e){var t=e.client;this.hitTest(t)&&0===this.localStreamStats_.publishStartTime&&(this.localStreamStats_.publishStartTime=Date.now())}},{key:"handleLocalStreamInitStart",value:function(e){var t=e.audio,n=e.video;t&&0===this.pathJoinRoom_.uint64_init_audio_start_time&&(this.pathJoinRoom_.uint64_init_audio_start_time=Date.now()),n&&0===this.pathJoinRoom_.uint64_init_camera_start_time&&(this.pathJoinRoom_.uint64_init_camera_start_time=Date.now())}},{key:"handleLocalStreamInitEnd",value:function(e){var t=e.audio,n=e.video;t&&0===this.pathJoinRoom_.uint64_init_audio_end_time&&(this.pathJoinRoom_.uint64_init_audio_end_time=Date.now()),n&&0===this.pathJoinRoom_.uint64_init_camera_end_time&&(this.pathJoinRoom_.uint64_init_camera_end_time=Date.now())}},{key:"handleLocalStreamInitFailed",value:function(e){var t=e.audio,n=e.video,r=e.error,o=r instanceof OD?r.getExtraCode()||r.getCode():{NotFoundError:1,NotAllowedError:2,NotReadableError:3,OverConstrainedError:4,AbortError:5}[r.name]||yD.UNKNOWN;t&&0===this.pathJoinRoom_.uint64_init_audio_end_time&&(this.pathJoinRoom_.int32_init_audio_ret=o,this.pathJoinRoom_.uint64_init_audio_end_time=Date.now()),n&&0===this.pathJoinRoom_.uint64_init_camera_end_time&&(this.pathJoinRoom_.int32_init_camera_ret=o,this.pathJoinRoom_.uint64_init_camera_end_time=Date.now())}},{key:"hasVideoFlag",value:function(e){return this.firstPublishedUserList_.findIndex((function(t){return t.userId===e&&1&t.flag}))>=0}},{key:"hasAudioFlag",value:function(e){return this.firstPublishedUserList_.findIndex((function(t){return t.userId===e&&8&t.flag}))>=0}},{key:"hasAuxFlag",value:function(e){return this.firstPublishedUserList_.findIndex((function(t){return t.userId===e&&4&t.flag}))>=0}},{key:"hitTest",value:function(e){return e===this.client_}},{key:"checkStorage",value:(a=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t=gA.getItem(this.storageKey_))){e.next=6;break}return e.next=5,this.upload(t);case 5:gA.deleteItem(this.storageKey_);case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),this.log_.warn(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return a.apply(this,arguments)})},{key:"setStorage",value:function(){this.prepareReport();var e=this.getReportData();0!==e.msg_path_enter_room.uint64_start_time&&gA.setItem(this.storageKey_,e)}},{key:"prepareReport",value:function(){var e=this;if(this.networkQuality_.count>0&&(this.basicInfo.uint32_avg_rtt=Math.floor(this.networkQuality_.totalUplinkRTT/this.networkQuality_.count),this.basicInfo.uint32_avg_up_loss=Math.floor(this.networkQuality_.totalUplinkLoss/this.networkQuality_.count)),this.localStreamStats_.videoCount>0){this.localStreamStats_.statsToReport.uint32_video_big_capture_fps=Math.floor(this.localStreamStats_.totalVideoFPS/this.localStreamStats_.videoCount),this.localStreamStats_.statsToReport.uint32_video_big_bitrate=Math.floor(this.localStreamStats_.totalVideoBitrate/this.localStreamStats_.videoCount);var t=Math.floor(this.localStreamStats_.totalVideoWidth/this.localStreamStats_.videoCount),n=Math.floor(this.localStreamStats_.totalVideoHeight/this.localStreamStats_.videoCount);this.localStreamStats_.statsToReport.uint32_video_big_resolution=t<<16|n}this.localStreamStats_.audioLevelCount>0&&(this.localStreamStats_.statsToReport.uint32_audio_capture_db=Math.floor(this.localStreamStats_.totalAudioLevel/this.localStreamStats_.audioLevelCount*100)),this.remoteStreamStatsMap_.forEach((function(t,n){var r=t.userId;if(e.networkQuality_.totalDownlinkRTTAndLossMap.has(r)){var o=e.networkQuality_.totalDownlinkRTTAndLossMap.get(r),a=o.totalLoss,i=o.count;t.statsToReport.uint32_avg_down_loss=Math.floor(a/i)}t.videoCount>0&&(t.statsToReport.uint32_video_avg_fps=Math.floor(t.totalVideoFPS/t.videoCount),t.statsToReport.uint32_video_avg_bitrate=Math.floor(t.totalVideoBitrate/t.videoCount)),t.audioCount>0&&(t.statsToReport.uint32_audio_recv_bitrate=t.statsToReport.uint32_audio_bitrate=Math.floor(t.totalAudioBitrate/t.audioCount)),t.audioLevelCount>0&&(t.statsToReport.uint32_audio_play_db=Math.floor(t.totalAudioLevel/t.audioLevelCount*100));var s=e.client_.getCallDurationCalculator();s&&(t.statsToReport.uint32_audio_play_time=s.getDuration(n,wO),t.statsToReport.uint32_video_play_time=s.getDuration(n,SO)),t.statsToReport.uint32_video_render_first=Math.min(t.statsToReport.uint32_video_render_first,iz);var c=e.client_.getBadCaseDetector();if(c){var l=c.getDataFreezeDuration(n),u=l.dataFreeze,d=l.count,p=c.getRenderFreezeDuration(n).renderFreeze;t.statsToReport.uint32_video_block_count=d,t.statsToReport.uint32_video_block_time=Math.min(u,t.statsToReport.uint32_video_play_time),t.statsToReport.uint32_video_external_block_time=Math.min(p,t.statsToReport.uint32_video_play_time),c.isBlackStream(n)&&0===t.statsToReport.uint32_video_avg_fps?t.statsToReport.uint32_video_black_screen_subjective=1:t.statsToReport.uint32_video_black_screen_subjective=0}(0===t.subscribeStartTime||t.subscribeStartTime-t.streamAddedTime>100||0===t.playStreamTime)&&(e.pathMainAudioMap_.delete(n),e.pathMainVideoMap_.delete(n),t.statsToReport.uint32_video_render_first=0)})),this.pathMainAudioMap_.forEach((function(t,n){e.hasAudioFlag(t.userId)?t.statsToReport.uint64_play_first_frame_time-t.statsToReport.uint64_start_enter_time>iz&&(t.statsToReport.uint64_play_first_frame_time=t.statsToReport.uint64_start_enter_time+iz):e.pathMainAudioMap_.delete(n)})),this.pathMainVideoMap_.forEach((function(t,n){e.hasVideoFlag(t.userId)?t.statsToReport.uint64_render_first_frame_time-t.statsToReport.uint64_start_enter_time>iz&&(t.statsToReport.uint64_render_first_frame_time=t.statsToReport.uint64_start_enter_time+iz):e.pathMainVideoMap_.delete(n)})),this.pathJoinRoom_.uint64_end_time-this.pathJoinRoom_.uint64_start_time>iz&&(this.pathJoinRoom_.uint64_end_time=this.pathJoinRoom_.uint64_start_time+iz)}},{key:"getReportData",value:function(){var e=this.client_.getSignalInfo();return{uint32_sdk_app_id:Number(this.client_.getSDKAppId()),msg_user_info:new cz({userId:this.client_.getUserId(),tinyId:this.client_.getTinyId(),role:this.client_.getRole()===CM?MM:kM}),msg_basic_info:this.basicInfo,uint32_acc_ip:bI(e.relayIp),uint32_client_ip:bI(e.clientIp,"small"),uint32_acc_port:0,uint64_timestamp:Date.now(),uint32_seq:Math.floor(Math.random()*Math.pow(2,31)),msg_path_enter_room:this.pathJoinRoom_,msg_path_exit_room:this.pathLeaveRoom_,msg_path_recv_video:M(this.pathMainVideoMap_.values()).map((function(e){return e.statsToReport})),msg_quality_statistics:M(this.remoteStreamStatsMap_.values()).map((function(e){return e.statsToReport})),str_room_name:String(this.client_.getRoomId()),msg_path_recv_audio:M(this.pathMainAudioMap_.values()).map((function(e){return e.statsToReport})),uint32_info_client_ip:bI(e.clientIp,"small"),error_code:[],msg_local_statistics:this.localStreamStats_.statsToReport,msg_function_state:uz.getStateArray()}}},{key:"report",value:(o=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=this.getReportData(),e.next=4,this.upload(t);case 4:gA.deleteItem(this.storageKey_),uz.clearStateArray(),this.initData(),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),this.log_.warn(e.t0);case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(){return o.apply(this,arguments)})},{key:"upload",value:(t=i(r().mark((function e(t){var n,o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(KT||0===t.msg_path_enter_room.uint64_start_time||[Wk,Kk,$k].findIndex((function(e){return e===location.host}))>=0)){e.next=2;break}return e.abrupt("return");case 2:return n=Number(this.client_.getSDKAppId()),o=rI(n,gM),e.next=6,DI({url:o,body:JSON.stringify(t)});case 6:if("ok"===(a=e.sent).data){e.next=9;break}throw"key point upload failed: ".concat(a.data);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),S(ZY.prototype,"upload",[QY],Object.getOwnPropertyDescriptor(ZY.prototype,"upload"),ZY.prototype),ZY),uz=function(){function e(){s(this,e)}return l(e,null,[{key:"handleFunctionState",value:function(e){var t,n,r,o,a=e.className,i=e.fnName,s=e.params;if(!(KT||[Wk,Kk,$k].findIndex((function(e){return e===location.host}))>=0)){var c,l=[];if(a)switch(i){case"createClient":null!==(t=s[0])&&void 0!==t&&t.mode&&l.push("".concat(a,".").concat(i,".").concat(s[0].mode)),null!==(n=s[0])&&void 0!==n&&n.useStringRoomId?l.push("".concat(a,".").concat(i,".stringRoomId")):l.push("".concat(a,".").concat(i,".intRoomId")),null!==(r=s[0])&&void 0!==r&&r.autoSubscribe?l.push("".concat(a,".").concat(i,".autoSubscribe")):l.push("".concat(a,".").concat(i,".manualSubscribe"));break;case"publish":null!==(o=s[1])&&void 0!==o&&o.isAuxiliary?l.push("".concat(a,".").concat(i,".isAuxiliary")):l.push("".concat(a,".").concat(i));break;case"setAudioProfile":case"setVideoProfile":case"setScreenProfile":case"setVideoContentHint":uI(s[0])&&l.push("".concat(a,".").concat(i,".").concat(s[0]));break;default:l.push("".concat(a,".").concat(i))}else l.push(i);for(var u=0;u<l.length;u++){if(!(c=mC[l[u]]))return;this.stateMap.has(c)?this.stateMap.get(c).int32_call_times+=1:this.stateMap.set(c,{int32_id:c,int32_call_times:1})}}}},{key:"getStateArray",value:function(){return Array.from(this.stateMap.values())}},{key:"clearStateArray",value:function(){this.stateMap.clear()}}]),e}();function dz(e){return function(t,n,r){var o=r.value;return r.value=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];try{e||(e=this.name_),uz.handleFunctionState({className:e,fnName:n,params:r}),e=void 0}catch(aK){this.log_.info(aK)}return o.apply(this,r)},r}}u(uz,"stateMap",new Map);var pz=(nz=qY.apply(void 0,M(YY.STREAM.play)),rz=dz(),oz=dz(),az=function(){function e(t){s(this,e),this.name_=qk,this.userId_=t.userId,this.isRemote_=t.isRemote,this.type_=t.type,this.log_=RE.createLogger({id:"s".concat(t.seq?t.seq:"","|").concat(this.userId_),userId:lI(t.client)?void 0:t.client.getUserId(),sdkAppId:lI(t.client)?void 0:t.client.getSDKAppId(),isLocal:!this.isRemote_,type:this.isRemote_?this.type_:""}),this.client_=null,lI(t.client)||(this.client_=t.client),this.mediaStream_=null,this.div_=null,this.isPlaying_=!1,this.connection_=null,this.audioPlayer_=null,this.videoPlayer_=null,this.muted_=!1,this.objectFit_="cover",this.mirror_=!1,this.id_="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)})),this.audioOutputDeviceId_=0,this.audioVolume_=1,this.emitter_=TI(new AI,this.name_),this.connectionState_=LM,this.installEvents(),lI(t.mirror)||this.log_.warn('TRTC.createStream "mirror" option was deprecated since v4.12.1please use localStream.play to set up preview mirror. refer to '.concat(Xk,"/en/LocalStream.html#play. TRTC.createStream 接口的 mirror 选项从 v4.12.1 开始被废弃,请使用 localStream.play 设置本地流预览镜像,参考文档:").concat(Xk,"/zh-cn/LocalStream.html#play。")),this.audioPlayerRetryCount_=3}var t,o,a,c,u;return l(e,[{key:"installEvents",value:function(){NI.on(TE,this.restartPlayback,this)}},{key:"uninstallEvents",value:function(){NI.off(TE,this.restartPlayback,this)}},{key:"getType",value:function(){return this.type_}},{key:"getLogger",value:function(){return this.log_}},{key:"isSubscribed",get:function(){return this.type_===EM&&this.connection_.isMainStreamSubscribed||this.type_===jM&&this.connection_.isAuxStreamSubscribed}},{key:"isMainVideoSubscribed",get:function(){var e=this.getSubscribedState();return this.type_===EM&&e&&e.video}},{key:"isMainAudioSubscribed",get:function(){var e=this.getSubscribedState();return this.type_===EM&&e&&e.audio}},{key:"isAuxVideoSubscribed",get:function(){var e=this.getSubscribedState();return this.type_===jM&&e&&e.auxiliary}},{key:"isSmallVideoSubscribed",get:function(){var e=this.getSubscribedState();return this.type_===EM&&e&&e.smallVideo}},{key:"emitConnectionStateChanged",value:function(e){e.state!==this.connectionState_&&(e.state!==LM&&this.isRemote_&&!this.isSubscribed||(this.emitter_.emit(tN,e),this.connectionState_=e.state))}},{key:"setConnection",value:function(e){this.connection_!==e&&(e instanceof RY?(null!==this.connection_&&this.connection_.off(XA.CONNECTION_STATE_CHANGED,this.emitConnectionStateChanged,this),e.on(XA.CONNECTION_STATE_CHANGED,this.emitConnectionStateChanged,this)):null===e&&this.connection_.off(XA.CONNECTION_STATE_CHANGED,this.emitConnectionStateChanged,this),this.connection_=e)}},{key:"getConnection",value:function(){return this.connection_}},{key:"play",value:(u=i(r().mark((function e(t,n){var o,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.log_.info("stream ".concat(this.isPlaying_?"update":"start to"," play with elementId: ").concat(t," and options: ").concat(JSON.stringify(n),".")),!this.isPlaying_){e.next=9;break}return n&&!lI(n.muted)&&(this.muted_=n.muted),n&&!lI(n.objectFit)&&(this.objectFit_=n.objectFit),this.isScreenShare()?this.mirror_=!1:n&&!lI(n.mirror)&&(this.mirror_=n.mirror),this.audioPlayer_&&this.audioPlayer_.setMuted(this.muted_),this.videoPlayer_&&(this.videoPlayer_.setObjectFit(this.objectFit_),this.videoPlayer_.setMirror(this.mirror_)),this.elementId_!==t&&(o=t,uI(t)&&(o=document.getElementById(t)),o.appendChild(this.div_),this.elementId_=t),e.abrupt("return");case 9:return this.isPlaying_=!0,(a=document.createElement("div")).setAttribute("id","player_".concat(this.id_)),a.setAttribute("style","width: 100%; height: 100%; position: relative; background-color: black; overflow: hidden;"),i=t,uI(t)&&(i=document.getElementById(t)),i.appendChild(a),this.elementId_=t,this.div_=a,this.isRemote_||(this.muted_=!0),n&&!lI(n.muted)&&(this.muted_=n.muted),this.isScreenShare()&&(this.objectFit_="contain"),n&&!lI(n.objectFit)&&(this.objectFit_=n.objectFit),this.isScreenShare()?this.mirror_=!1:(this.isRemote_||(this.mirror_=!0),n&&!lI(n.mirror)&&(this.mirror_=n.mirror)),NI.emit(_E,{stream:this}),e.next=26,Promise.all([this.playAudio(),this.playVideo()]);case 26:NI.emit(tE,{stream:this});case 27:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"playAudio",value:(c=i(r().mark((function e(){var t,o,a=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.hasAudio()&&(!this.isRemote_||this.isMainAudioSubscribed)){e.next=2;break}return e.abrupt("return");case 2:if(t=this.getAudioTrack(),this.audioPlayer_||!t){e.next=18;break}return this.log_.info("create AudioPlayer and play"),this.audioPlayer_=new $x({stream:this,track:t,gainedTrack:null===(o=this.gain_)||void 0===o?void 0:o.audioTrack,div:this.div_,muted:this.muted_,outputDeviceId:this.audioOutputDeviceId_,volume:this.audioVolume_}),this.audioPlayer_.on(oN,(function(e){var t={type:wO,state:e.state,reason:e.reason};NI.emit(nE,n({stream:a},t)),a.emitter_.emit(ZA,t)})),this.audioPlayer_.on(aN,(function(e){a.audioPlayerRetryCount_>0&&(a.audioPlayerRetryCount_--,a.restartAudio())})),e.prev=8,e.next=11,this.audioPlayer_.play();case 11:e.next=18;break;case 13:throw e.prev=13,e.t0=e.catch(8),this.client_&&this.client_.getEnableAutoPlayDialog()&&new yP,this.emitter_.emit(rN,e.t0),e.t0;case 18:case"end":return e.stop()}}),e,this,[[8,13]])}))),function(){return c.apply(this,arguments)})},{key:"playVideo",value:(a=i(r().mark((function e(){var t,o=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.hasVideo()&&(!this.isRemote_||this.isMainVideoSubscribed||this.isAuxVideoSubscribed||this.isSmallVideoSubscribed)){e.next=2;break}return e.abrupt("return");case 2:if(t=this.getVideoTrack(),this.videoPlayer_||!t){e.next=18;break}return NI.emit(yE,{stream:this}),this.log_.info("create VideoPlayer and play"),this.videoPlayer_=new OP({stream:this,track:t,div:this.div_,muted:this.muted_,objectFit:this.objectFit_,mirror:this.mirror_}),this.videoPlayer_.on(oN,(function(e){var t={type:SO,state:e.state,reason:e.reason};NI.emit(nE,n({stream:o},t)),o.emitter_.emit(ZA,t)})),e.prev=8,e.next=11,this.videoPlayer_.play();case 11:e.next=18;break;case 13:throw e.prev=13,e.t0=e.catch(8),this.client_&&this.client_.getEnableAutoPlayDialog()&&new yP,this.emitter_.emit(rN,e.t0),e.t0;case 18:case"end":return e.stop()}}),e,this,[[8,13]])}))),function(){return a.apply(this,arguments)})},{key:"stopAudio",value:function(){this.audioPlayer_&&(this.log_.info("stop AudioPlayer"),this.audioPlayer_.stop(),this.audioPlayer_=null)}},{key:"stopVideo",value:function(){this.videoPlayer_&&(this.log_.info("stop VideoPlayer"),this.videoPlayer_.stop(),this.videoPlayer_=null)}},{key:"restartPlayback",value:function(){this.audioPlayer_&&!this.audioPlayer_.isPlaying&&this.restartAudio(),this.videoPlayer_&&!this.videoPlayer_.isPlaying&&this.restartVideo()}},{key:"restartAudio",value:function(){this.isPlaying_&&(this.stopAudio(),this.playAudio().catch((function(e){})))}},{key:"restartVideo",value:function(){this.isPlaying_&&(this.stopVideo(),this.playVideo().catch((function(e){})))}},{key:"stop",value:function(){this.isPlaying_&&(this.isPlaying_=!1,this.stopAudio(),this.stopVideo(),this.div_.parentNode.removeChild(this.div_))}},{key:"resume",value:(o=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isPlaying_){e.next=2;break}return e.abrupt("return");case 2:if(this.log_.info("resume"),!this.audioPlayer_){e.next=6;break}return e.next=6,this.audioPlayer_.resume();case 6:if(!this.videoPlayer_){e.next=9;break}return e.next=9,this.videoPlayer_.resume();case 9:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"close",value:function(){this.log_.info("close stream"),this.isPlaying_&&this.stop(),this.isRemote_||(this.mediaStream_&&(this.mediaStream_.preventEvent=1,this.mediaStream_.getTracks().forEach((function(e){e.stop()})),this.mediaStream_=null),this.uninstallEvents())}},{key:"muteAudio",value:function(){return this.addRemoteEvent(!0,wO),this.doEnableTrack(wO,!1)}},{key:"muteVideo",value:function(){return this.addRemoteEvent(!0,SO),this.doEnableTrack(SO,!1)}},{key:"unmuteAudio",value:function(){return this.addRemoteEvent(!1,wO),this.doEnableTrack(wO,!0)}},{key:"unmuteVideo",value:function(){return this.addRemoteEvent(!1,SO),this.doEnableTrack(SO,!0)}},{key:"addRemoteEvent",value:function(e,t){if(this.isRemote_&&this.client_){var n=this.client_.getUserId(),r="".concat(e?RO:xO," remote ").concat(t);aL(n,{eventId:t===wO?e?UD:BD:e?PD:VD,eventDesc:r,timestamp:(new Date).getTime(),userId:n,tinyId:this.client_.getTinyId(),remoteUserId:this.userId_,remoteTinyId:this.connection_.getTinyId()})}}},{key:"doEnableTrack",value:function(e,t){var n=!1;return e===wO?this.mediaStream_.getAudioTracks().forEach((function(e){n=!0,e.enabled=t})):this.mediaStream_.getVideoTracks().forEach((function(e){n=!0,e.enabled=t})),n}},{key:"getId",value:function(){return this.id_}},{key:"getUserId",value:function(){return this.userId_}},{key:"getTinyId",value:function(){return this.connection_?this.connection_.getTinyId():""}},{key:"isPlaying",value:function(){return this.isPlaying_}},{key:"setAudioOutput",value:(t=i(r().mark((function e(t){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.log_.info("setAudioOutput ".concat(t)),this.audioOutputDeviceId_=t,!this.audioPlayer_){e.next=5;break}return e.next=5,this.audioPlayer_.setSinkId(t);case 5:return e.next=7,_N();case 7:n=e.sent,this.log_.info("speakers: ".concat(JSON.stringify(n)));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"setAudioVolume",value:function(e){this.audioVolume_=e,this.log_.info("setAudioVolume to ".concat(e)),this.audioPlayer_&&this.audioPlayer_.setVolume(e)}},{key:"getAudioLevel",value:function(){var e=0;return this.audioPlayer_&&(e=this.audioPlayer_.getAudioLevel()),e}},{key:"getInternalAudioLevel",value:function(){var e=0;return this.audioPlayer_&&(e=this.audioPlayer_.getInternalAudioLevel()),e}},{key:"hasAudio",value:function(){if(this.isRemote_){if(!this.connection_)return!1;var e=this.connection_.getTrackState();return this.type_===EM&&e.audio}return!!this.getAudioTrack()}},{key:"hasVideo",value:function(){if(this.isRemote_){if(!this.connection_)return!1;var e=this.connection_.getTrackState();return this.type_===jM?e.auxiliary:e.video}return!!this.getVideoTrack()}},{key:"getSubscribedState",value:function(){return this.isRemote_&&this.connection_?this.connection_.getSubscribeState():null}},{key:"getAudioTrack",value:function(){var e=null;if(this.mediaStream_){var t=this.mediaStream_.getAudioTracks();t.length>0&&(e=t[0])}return e}},{key:"getVideoTrack",value:function(){var e=null;if(this.mediaStream_){var t=this.mediaStream_.getVideoTracks();t.length>0&&(e=t[0])}return e}},{key:"getVideoFrame",value:function(){return this.videoPlayer_?this.videoPlayer_.getVideoFrame():null}},{key:"getMediaStream",value:function(){return this.mediaStream_}},{key:"setMediaStream",value:function(e){e!==this.mediaStream_&&(this.mediaStream_&&this.mediaStream_.getTracks().forEach((function(e){return e.stop()})),this.mediaStream_=e)}},{key:"updateVideoPlayingState",value:function(e){if(this.isPlaying_)if(e){if(this.log_.info("playing state updated, play video"),this.videoPlayer_&&this.videoPlayer_.getTrack()!==this.getVideoTrack())return this.log_.warn("audio track changed, restart playback"),this.restartVideo();this.playVideo().catch((function(e){}))}else this.log_.info("playing state updated, stop video"),this.stopVideo()}},{key:"updateAudioPlayingState",value:function(e){if(this.isPlaying_)if(e){if(this.log_.info("playing state updated, play audio"),this.audioPlayer_&&this.audioPlayer_.getTrack()!==this.getAudioTrack())return this.log_.warn("audio track changed, restart playback"),this.restartAudio();this.playAudio().catch((function(e){}))}else this.log_.info("playing state updated, stop audio"),this.stopAudio()}},{key:"on",value:function(e,t,n){this.emitter_.on(e,t,n)}},{key:"off",value:function(e,t,n){"*"===e?this.emitter_.removeAllListeners():this.emitter_.off(e,t,n)}},{key:"isRemote",value:function(){return this.isRemote_}},{key:"isScreenShare",value:function(){return!this.isRemote_&&this.screen_||this.isRemote_&&this.getType()===jO}},{key:"getDiv",value:function(){return this.div_}},{key:"getObjectFit",value:function(){return this.objectFit_}},{key:"getMuted",value:function(){return this.muted_}},{key:"getClient",value:function(){return this.client_}}]),e}(),S(az.prototype,"play",[nz],Object.getOwnPropertyDescriptor(az.prototype,"play"),az.prototype),S(az.prototype,"setAudioOutput",[rz],Object.getOwnPropertyDescriptor(az.prototype,"setAudioOutput"),az.prototype),S(az.prototype,"getVideoFrame",[oz],Object.getOwnPropertyDescriptor(az.prototype,"getVideoFrame"),az.prototype),az),fz=function(e){d(r,e);var t=_(r);function r(e){var o;s(this,r);var a={isRemote:!0,type:e.type},i=n(n({},e),a);return(o=t.call(this,i)).name_=zk,o.isStreamAddedEventEmitted_=!1,o.isAbleToCallSubscription_=!0,o}return l(r,[{key:"installEvents",value:function(){y(p(r.prototype),"installEvents",this).call(this),NI.on(cE,this.handleStreamSubscribed,this),NI.on(lE,this.handleStreamUnsubscribed,this)}},{key:"uninstallEvents",value:function(){y(p(r.prototype),"uninstallEvents",this).call(this),NI.off(cE,this.handleStreamSubscribed,this),NI.off(lE,this.handleStreamUnsubscribed,this)}},{key:"handleStreamSubscribed",value:function(e){e.client===this.client_&&e.stream===this&&this.connection_.getCurrentState()===RM&&this.emitConnectionStateChanged({prevState:LM,state:RM})}},{key:"handleStreamUnsubscribed",value:function(e){e.client===this.client_&&e.stream===this&&this.emitConnectionStateChanged({prevState:RM,state:LM})}},{key:"getType",value:function(){return y(p(r.prototype),"getType",this).call(this)}},{key:"getIsAbleToCallSubscription",value:function(){return this.isAbleToCallSubscription_}},{key:"setIsAbleToCallSubscription",value:function(e){this.isAbleToCallSubscription_=e}},{key:"setIsStreamAddedEventEmitted",value:function(e){this.isStreamAddedEventEmitted_=e}},{key:"getIsStreamAddedEventEmitted",value:function(){return this.isStreamAddedEventEmitted_}},{key:"getAudioTrack",value:function(){return this.connection_&&this.connection_.getTrackState().audio?y(p(r.prototype),"getAudioTrack",this).call(this):null}},{key:"getVideoTrack",value:function(){if(!this.connection_)return null;var e=this.connection_.getTrackState();return this.type_===EM&&!e.video||this.type_===jM&&!e.auxiliary?null:y(p(r.prototype),"getVideoTrack",this).call(this)}},{key:"close",value:function(){y(p(r.prototype),"close",this).call(this)}}]),r}(pz),hz=function(){function e(t){s(this,e),this.client_=t.client,this.subscribedStreams_=new Map,this.unsubscribedStreams_=new Map,this.subscriptedOptions_=new Map,this.autoRecoveryFlags_=new Map}var t,n,o;return l(e,[{key:"isEnabled",get:function(){return"webrtc"!==this.client_.getEnv()}},{key:"recover",value:(o=i(r().mark((function e(t){var n,o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.getUserId(),o=t.getType(),this.hasAutoRecoveryFlag(n,o)){e.next=5;break}return e.abrupt("return");case 5:if(a=this.getUnsubscribedStream(n,o)?"unsubscribe":"subscribe",e.prev=6,RE.warn("recover() try to recover subscription [".concat(a,"][").concat(n,"][").concat(o,"]")),"subscribe"!==a){e.next=13;break}return e.next=11,this.recoverSubscription(n,t);case 11:e.next=15;break;case 13:return e.next=15,this.recoverUnsubscription(n,t);case 15:uL.logSuccessEvent({userId:this.client_.getUserId(),eventType:dk}),RE.warn("recover() recover successfully [".concat(a,"][").concat(n,"][").concat(o,"]")),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(6),RE.error("recover() recover failed [".concat(a,"][").concat(n,"][").concat(o,"]"),e.t0),uL.logFailedEvent({userId:this.client_.getUserId(),eventType:dk,error:e.t0});case 23:this.deleteAutoRecoveryFlag(n,o);case 24:case"end":return e.stop()}}),e,this,[[6,19]])}))),function(e){return o.apply(this,arguments)})},{key:"recoverSubscription",value:(n=i(r().mark((function e(t,n){var o,a,i,s,c;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.getOptions(t,n.getType()),a=this.getSubscribedStream(t,n.getType()),o&&a){e.next=4;break}return e.abrupt("return");case 4:i=this.getStreamMuteState(a),s=i.isAudioMuted,c=i.isVideoMuted,this.mergeStream(a,n),this.recoverPlayingState(a),s&&a.doEnableTrack(wO,!1),c&&a.doEnableTrack(SO,!1);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"recoverUnsubscription",value:(t=i(r().mark((function e(t,n){var o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.getUnsubscribedStream(t,n.getType())){e.next=3;break}return e.abrupt("return");case 3:this.mergeStream(o,n);case 4:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"getStreamMuteState",value:function(e){var t={isAudioMuted:!1,isVideoMuted:!1},n=e.getMediaStream();return n&&(t.isAudioMuted=n.getAudioTracks().map((function(e){return e.enabled})).includes(!1),t.isVideoMuted=n.getVideoTracks().map((function(e){return e.enabled})).includes(!1)),t}},{key:"recoverPlayingState",value:function(e){var t=e.isPlaying(),n=e.getDiv();if(t&&n){var r=n.parentNode;e.stop(),e.play(r,{objectFit:e.getObjectFit(),muted:e.getMuted()})}}},{key:"mergeStream",value:function(e,t){var n=t.getConnection(),r=t.getMediaStream();e.setConnection(n),n.setRemoteStream(r.id,e),e.setMediaStream(r),e.updateAudioPlayingState(t.hasAudio()),e.updateVideoPlayingState(t.hasVideo())}},{key:"addSubscriptionRecord",value:function(e,t,n){var r=t.getType();if(this.subscribedStreams_.has(e))this.subscribedStreams_.get(e).set(r,t);else{var o=new Map;o.set(t.getType(),t),this.subscribedStreams_.set(e,o)}if(this.subscriptedOptions_.has(e))this.subscriptedOptions_.get(e).set(r,n);else{var a=new Map;a.set(t.getType(),n),this.subscriptedOptions_.set(e,a)}this.deleteUnsubscriptionRecord(e,r)}},{key:"addUnsubscriptionRecord",value:function(e,t){if(this.unsubscribedStreams_.has(e))this.unsubscribedStreams_.get(e).set(t.getType(),t);else{var n=new Map;n.set(t.getType(),t),this.unsubscribedStreams_.set(e,n)}this.deleteSubscriptionRecord(e,t.getType())}},{key:"getSubscribedStream",value:function(e,t){return this.subscribedStreams_.has(e)&&this.subscribedStreams_.get(e).has(t)?this.subscribedStreams_.get(e).get(t):null}},{key:"getOptions",value:function(e,t){return this.subscriptedOptions_.has(e)&&this.subscriptedOptions_.get(e).has(t)?this.subscriptedOptions_.get(e).get(t):null}},{key:"getUnsubscribedStream",value:function(e,t){return this.unsubscribedStreams_.has(e)&&this.unsubscribedStreams_.get(e).has(t)?this.unsubscribedStreams_.get(e).get(t):null}},{key:"deleteSubscriptionRecord",value:function(e,t){this.subscribedStreams_.has(e)&&this.subscribedStreams_.get(e).delete(t),this.subscriptedOptions_.has(e)&&this.subscriptedOptions_.get(e).delete(t)}},{key:"deleteUnsubscriptionRecord",value:function(e,t){this.unsubscribedStreams_.has(e)&&this.unsubscribedStreams_.get(e).delete(t)}},{key:"markAllStream",value:function(){for(var e=0,t=M(this.subscribedStreams_.entries());e<t.length;e++)for(var n=O(t[e],2),r=n[0],o=0,a=M(n[1].entries());o<a.length;o++){var i=O(a[o],1)[0];this.setAutoRecoveryFlag(r,i)}for(var s=0,c=M(this.unsubscribedStreams_.entries());s<c.length;s++)for(var l=O(c[s],2),u=l[0],d=0,p=M(l[1].entries());d<p.length;d++){var f=O(p[d],1)[0];this.setAutoRecoveryFlag(u,f)}}},{key:"setAutoRecoveryFlag",value:function(e,t){if(RE.info("setAutoRecoveryFlag() mark [".concat(e,"][").concat(t,"]")),this.autoRecoveryFlags_.has(e))this.autoRecoveryFlags_.get(e).set(t);else{var n=new Map;n.set(t),this.autoRecoveryFlags_.set(e,n)}}},{key:"hasAutoRecoveryFlag",value:function(e,t){return!!this.isEnabled&&this.autoRecoveryFlags_.has(e)&&this.autoRecoveryFlags_.get(e).has(t)}},{key:"deleteAutoRecoveryFlag",value:function(e,t){this.autoRecoveryFlags_.has(e)&&this.autoRecoveryFlags_.get(e).delete(t)}},{key:"delete",value:function(e){this.unsubscribedStreams_.delete(e),this.subscribedStreams_.delete(e),this.subscriptedOptions_.delete(e),this.autoRecoveryFlags_.delete(e)}}]),e}(),mz=function(){function e(t){s(this,e),this.player_=t,this.canvas_=document.createElement(CO),this.canvasCtx_=this.canvas_.getContext("2d")}return l(e,[{key:"setCanvasRect",value:function(e,t){this.canvas_.width=e,this.canvas_.height=t}},{key:"drawVideoToCanvas",value:function(){var e=this.player_.getElement(),t=e.videoHeight,n=e.videoWidth,r=n*this.canvas_.height/(t*this.canvas_.width);if(r>1.05||r<.95){var o=n*t/(this.canvas_.width*this.canvas_.height);this.setCanvasRect(n/Math.sqrt(o),t/Math.sqrt(o))}this.canvasCtx_.drawImage(e,0,0,this.canvas_.width,this.canvas_.height)}},{key:"generateVideoTrackFromCanvasCapture",value:function(e){return this.canvas_.captureStream(e).getVideoTracks()[0]}},{key:"generateStreamFromTrack",value:function(e){var t=new MediaStream;return t.addTrack(e),t}},{key:"destroy",value:function(){this.player_.stop(),this.canvas_.width=0,this.canvas_.height=0,this.canvas_=null,this.canvasCtx_=null}},{key:"canvas",get:function(){return this.canvas_}},{key:"canvasCtx",get:function(){return this.canvasCtx_}},{key:"canDrawVideoToCanvas",get:function(){if(this.player_){var e=this.player_.getElement();if(e)return e.readyState===e.HAVE_ENOUGH_DATA}return!1}}]),e}(),vz=new Blob(['let t,e,a,i;onmessage=function(n){const{action:h,data:s}=n.data;switch(h){case"render":a=s.canvas,t=a.width,e=a.height,i=a.getContext("2d"),function(t,e){const n=new TransformStream({async transform(t,e){const n=t.displayWidth,h=t.displayHeight,s=n*a.height/(h*a.width);if(s>1.05||s<.95){const t=n*h/(a.width*a.height);a.width=n/Math.sqrt(t),a.height=h/Math.sqrt(t)}i.drawImage(t,0,0,a.width,a.height);const o=new VideoFrame(a,{timestamp:t.timestamp});t.close(),e.enqueue(o)}});t.pipeThrough(n).pipeTo(e)}(s.readable,s.writable)}}'],{type:"application/javascript"}),gz=function(){function e(t){s(this,e);var n=t.videoTrack;this.width=void 0,this.height=void 0,this.canvas=document.createElement("canvas"),this.offscreen=null,this.smallGenerator=new MediaStreamTrackGenerator({kind:"video"}),this.smallWritable=this.smallGenerator.writable,this.bigProcessor=new MediaStreamTrackProcessor({track:n}),this.bigReadable=this.bigProcessor.readable,this.initWorker()}return l(e,[{key:"initWorker",value:function(){try{this.worker=new Worker(URL.createObjectURL(vz)),RE.info("init worker processor success")}catch(e){RE.warn("init worker processor failed. ".concat(e.error))}}},{key:"setCanvasRect",value:function(e,t){this.width=e,this.height=t,this.canvas.width=e,this.canvas.height=t,this.offscreen=this.canvas.transferControlToOffscreen(),this.worker.postMessage({action:"render",data:{canvas:this.offscreen,readable:this.bigReadable,writable:this.smallWritable}},[this.offscreen,this.bigReadable,this.smallWritable])}},{key:"generatorVideoTrack",value:function(){var e=new MediaStream([this.smallGenerator]);return null==e?void 0:e.getTracks()[0]}},{key:"destroy",value:function(){this.worker.terminate()}}]),e}(),_z=function(){function e(t){s(this,e),this.localStream_=t,this.player_=null,this.processor_=null,this.initOffscreenSuccess_=!1}var t;return l(e,[{key:"initialize",value:(t=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(JA()&&(null===(t=navigator)||void 0===t?void 0:t.hardwareConcurrency)>=6)){e.next=13;break}return e.prev=1,e.next=4,this.initOffscreen();case 4:this.initOffscreenSuccess_=!0,RE.info("Initialize VideoGenerator successfully!"),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),this.initCanvas();case 11:e.next=14;break;case 13:this.initCanvas();case 14:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(){return t.apply(this,arguments)})},{key:"generateSmallVideoTrack",value:function(e){var t,n=e.height,r=e.width,o=e.frameRate,a=this.getSmallVideoProfile(r,n);return this.initOffscreenSuccess_?(this.processor_.setCanvasRect(a.width,a.height),t=this.processor_.generatorVideoTrack()):(this.processor_.setCanvasRect(a.width,a.height),this.player_.setRect({width:a.width,height:a.height}),t=this.processor_.generateVideoTrackFromCanvasCapture(o),this.interval_=mA.run(dC,this.render.bind(this),{fps:o})),t}},{key:"render",value:function(){this.processor_.canDrawVideoToCanvas&&this.processor_.drawVideoToCanvas()}},{key:"destroy",value:function(){mA.clearTask(this.interval_),this.processor_&&this.processor_.destroy()}},{key:"initOffscreen",value:function(){this.processor_=new gz({videoTrack:this.localStream_.getVideoTrack()})}},{key:"initCanvas",value:function(){this.player_=new OP({stream:this.localStream_,track:this.localStream_.getVideoTrack(),muted:!0,objectFit:"cover",mirror:!1}),this.player_.play().then((function(){RE.info("VideoGenerator: play local video success")})).catch((function(){RE.error("VideoGenerator: Failed to play local video")})),this.processor_=new mz(this.player_)}},{key:"getSmallVideoProfile",value:function(e,t){var r,o=this.localStream_.getVideoTrack(),a=n({},this.localStream_.getVideoProfile());if(KA){var i=o.getSettings();i&&i.width&&i.height&&(a.width=i.width,a.height=i.height)}var s=a.width*a.height,c=e*t;return RE.info("big stream resolution: ".concat(a.width,"*").concat(a.height," small stream resolution: ").concat(e,"*").concat(t," ")),r=s>c?s/c:s/19200,{width:parseInt(a.width/Math.sqrt(r)),height:parseInt(a.height/Math.sqrt(r))}}}]),e}(),bz=new Map,yz=function(){var e=i(r().mark((function e(t){var n,o,a,i,s,c,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!UA()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Mz(t);case 4:if(n=e.sent,RE.info("getUserMedia with constraints: "+JSON.stringify(n)),!n.audio){e.next=11;break}return e.next=9,oK.getMicrophones();case 9:o=e.sent,RE.info("microphones: ".concat(jI(o,["deviceId","label"])));case 11:if(!n.video){e.next=16;break}return e.next=14,oK.getCameras();case 14:a=e.sent,RE.info("cameras: ".concat(jI(a,["deviceId","label"])));case 16:return e.prev=16,e.next=19,navigator.mediaDevices.getUserMedia(n);case 19:return e.abrupt("return",e.sent);case 22:if(e.prev=22,e.t0=e.catch(16),"NotFoundError"!==e.t0.name){e.next=29;break}if(!a||0!==a.length){e.next=27;break}throw new OD({code:yD.DEVICE_NOT_FOUND,message:eI({key:fS})});case 27:if(!o||0!==o.length){e.next=29;break}throw new OD({code:yD.DEVICE_NOT_FOUND,message:eI({key:pS})});case 29:throw n.audio&&(null===(i=o)||void 0===i?void 0:i.length)>0&&(c=o.find((function(e){return e.deviceId===t.microphoneId})))&&c.getCapabilities&&RE.warn(jI(c.getCapabilities(),vC)),n.video&&(null===(s=a)||void 0===s?void 0:s.length)>0&&(l=a.find((function(e){return e.deviceId===t.cameraId})))&&l.getCapabilities&&RE.warn(jI(l.getCapabilities(),vC)),new OD({code:yD.INITIALIZE_FAILED,name:e.t0.name,message:e.t0.message,constraint:e.t0.constraint});case 32:case"end":return e.stop()}}),e,null,[[16,22]])})));return function(t){return e.apply(this,arguments)}}(),Oz=jE({retryFunction:yz,settings:{retries:3,timeout:500},onError:function(e,t,n,r,o){var a=o+1;RE.warn("getUserMedia error: ".concat(e)),"NotReadableError"===e.name||"OverconstrainedError"===e.name?(1===a&&r[0].video?(r[0].maxResoution=!1,r[0].frameRate=r[0].frameRate>10?10:5):2===a?r[0].useDeviceIdOnly=!0:3!==a||r[0].useExact&&!r[0].retryWhenExactFailed||(r[0].useTrueAsConstraint=!0),e.message.includes("deviceId")&&r[0].retryWhenExactFailed&&(r[0].useExact=!1),t()):n(e)},onRetrying:function(e){RE.warn("getUserMedia retrying [".concat(e,"/3]"))},onRetryFailed:function(){uL.uploadEvent({log:"stat-getUserMedia-retry-failed"})},onRetrySuccess:function(e){uL.uploadEvent({log:"stat-getUserMedia-retry-success-"+e})}});function Mz(e){return{audio:kz(e),video:Cz(e)}}function kz(e){if(!e.audio)return!1;if(e.useTrueAsConstraint)return!0;var t={};return!cL(e.microphoneId)&&(t.deviceId=e.useExact?{exact:e.microphoneId}:e.microphoneId,e.useDeviceIdOnly)?t:(t.echoCancellation=!0,t.noiseSuppression=!0,t.autoGainControl=!0,t.sampleRate=e.sampleRate,dI(e.channelCount)&&e.channelCount>1&&(t.channelCount=e.channelCount),pI(e.echoCancellation)&&!e.echoCancellation&&(t.echoCancellation=!1),pI(e.noiseSuppression)&&!e.noiseSuppression&&(t.noiseSuppression=!1),pI(e.autoGainControl)&&!e.autoGainControl&&(t.autoGainControl=!1),!!cL(t)||t)}function Cz(e){if(!e.video)return!1;if(e.useTrueAsConstraint)return!0;var t=e.maxResoution,n=void 0===t||t,r={};return e.facingMode?r.facingMode=e.facingMode:e.cameraId&&(r.deviceId=e.useExact?{exact:e.cameraId}:e.cameraId),e.useDeviceIdOnly&&!cL(r)?r:(e.width&&(r.width={ideal:e.width},n&&!WS&&(r.width.max=e.width)),e.height&&(r.height={ideal:e.height},n&&!WS&&(r.height.max=e.height)),WS&&bT&&e.width&&e.height&&e.width*e.height<101376&&(r.width=e.width,r.height=e.height),e.frameRate&&(r.frameRate=e.frameRate),!!cL(r)||r)}var wz=function(){var e=i(r().mark((function e(t){var n,o,a,i,s,c,l,u,d;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!UA()){e.next=2;break}return e.abrupt("return");case 2:if(n=null,!(PT&&UT<74||BT)){e.next=27;break}return o=Tz(t),RE.info("getDisplayMedia with constraints: "+JSON.stringify(o)),e.next=8,navigator.mediaDevices.getDisplayMedia(o);case 8:if(a=e.sent,!t.screenAudio){e.next=14;break}return RE.warn("Your browser not support capture system audio"),e.abrupt("return",a);case 14:if(!t.audio){e.next=24;break}return i=Sz(t),RE.info("getUserMedia with constraints: "+JSON.stringify(i)),e.next=19,navigator.mediaDevices.getUserMedia(i);case 19:return n=e.sent,a.addTrack(n.getAudioTracks()[0]),e.abrupt("return",a);case 24:return e.abrupt("return",a);case 25:e.next=53;break;case 27:if(!t.screenAudio){e.next=37;break}return t.audioConstraints={echoCancellation:t.echoCancellation,autoGainControl:t.autoGainControl,noiseSuppression:t.noiseSuppression,sampleRate:44100},s=Tz(t),RE.info("getDisplayMedia with constraints: "+JSON.stringify(s)),e.next=33,navigator.mediaDevices.getDisplayMedia(s);case 33:return c=e.sent,e.abrupt("return",c);case 37:return l=Tz(t),RE.info("getDisplayMedia with constraints: "+JSON.stringify(l)),e.next=41,navigator.mediaDevices.getDisplayMedia(l);case 41:if(u=e.sent,!t.audio){e.next=52;break}return d=Sz(t),RE.info("getUserMedia with constraints: "+JSON.stringify(d)),e.next=47,navigator.mediaDevices.getUserMedia(d);case 47:return n=e.sent,u.addTrack(n.getAudioTracks()[0]),e.abrupt("return",u);case 52:return e.abrupt("return",u);case 53:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function Sz(e){var t={echoCancellation:e.echoCancellation,autoGainControl:e.autoGainControl,noiseSuppression:e.noiseSuppression,sampleRate:e.sampleRate,channelCount:e.channelCount};return lI(e.microphoneId)||(t.deviceId=e.microphoneId),{audio:t,video:!1}}function Tz(e){var t={systemAudio:"include",selfBrowserSurface:"include",surfaceSwitching:"include"},n={width:BT?{max:e.width}:{ideal:e.width,max:e.width},height:BT?{max:e.height}:{ideal:e.height,max:e.height},frameRate:e.frameRate,displaySurface:"monitor"};return t.video=n,lI(e.audioConstraints)||(t.audio=e.audioConstraints),t}var Iz,Ez,jz,Dz,Lz,Az,Nz,Rz,xz,Pz,Uz,Vz,Bz,Fz,Gz=new Map([["120p",{width:160,height:120,frameRate:15,bitrate:200}],["120p_2",{width:160,height:120,frameRate:15,bitrate:100}],["180p",{width:320,height:180,frameRate:15,bitrate:350}],["180p_2",{width:320,height:180,frameRate:15,bitrate:150}],["240p",{width:320,height:240,frameRate:15,bitrate:400}],["240p_2",{width:320,height:240,frameRate:15,bitrate:200}],["360p",{width:640,height:360,frameRate:15,bitrate:800}],["360p_2",{width:640,height:360,frameRate:15,bitrate:400}],["480p",{width:640,height:480,frameRate:15,bitrate:900}],["480p_2",{width:640,height:480,frameRate:15,bitrate:500}],["720p",{width:1280,height:720,frameRate:15,bitrate:1500}],["1080p",{width:1920,height:1080,frameRate:15,bitrate:2e3}],["1440p",{width:2560,height:1440,frameRate:30,bitrate:4860}],["4K",{width:3840,height:2160,frameRate:30,bitrate:9e3}]]),Hz=new Map([["480p",{width:640,height:480,frameRate:5,bitrate:900}],["480p_2",{width:640,height:480,frameRate:30,bitrate:1e3}],["720p",{width:1280,height:720,frameRate:5,bitrate:1200}],["720p_2",{width:1280,height:720,frameRate:30,bitrate:3e3}],["1080p",{width:1920,height:1080,frameRate:5,bitrate:1600}],["1080p_2",{width:1920,height:1080,frameRate:30,bitrate:4e3}]]),Yz=new Map([["standard",{sampleRate:48e3,channelCount:1,bitrate:40}],["standard-stereo",{sampleRate:48e3,channelCount:2,bitrate:64}],["high",{sampleRate:48e3,channelCount:1,bitrate:128}],["high-stereo",{sampleRate:48e3,channelCount:2,bitrate:192}]]),zz=new Map,qz=(Iz=dz(Yk),Ez=dz(Yk),jz=dz(Yk),Dz=dz(Yk),Lz=qY.apply(void 0,M(YY.LOCAL_STREAM.switchDevice)),Az=qY(YY.STREAM.addTrack),Nz=qY(YY.STREAM.removeTrack),Rz=qY(YY.STREAM.replaceTrack),xz=tz({retries:10,timeout:3e3,onRetryFailed:function(e){uL.logFailedEvent({userId:this.client_?this.client_.getUserId():this.userId_,eventType:uk,error:e}),this.emitter_.emit(rN,new OD({code:yD.DEVICE_AUTO_RECOVER_FAILED,message:e.message}))}}),Pz=zY(YY.LOCAL_STREAM.setAudioCaptureVolume),Uz=dz(Yk),Vz=function(e){d(w,e);var t,a,c,u,f,h,m,v,g,b,O,M,k,C=_(w);function w(e){var t;s(this,w);var r=n(n({},e),{isRemote:!1,type:"local"});return(t=C.call(this,r)).name_=Yk,t.client_=null,t.video_=e.video,t.audio_=e.audio,t.cameraId_=e.cameraId,t.cameraGroupId_="",t.facingMode_=e.facingMode,t.microphoneId_=e.microphoneId,t.microphoneGroupId_="",t.microphoneLabel_="",t.videoSource_=e.videoSource,t.audioSource_=e.audioSource,t.screen_=e.screen,t.screenAudio_=e.screenAudio,t.audioProfile_={echoCancellation:!0,autoGainControl:!0,noiseSuppression:!0,sampleRate:48e3,channelCount:1,bitrate:40},t.screenAudio_&&(t.audioProfile_.echoCancellation=!0,t.audioProfile_.autoGainControl=!1,t.audioProfile_.noiseSuppression=!1),pI(e.echoCancellation)&&(t.audioProfile_.echoCancellation=e.echoCancellation),pI(e.autoGainControl)&&(t.audioProfile_.autoGainControl=e.autoGainControl),pI(e.noiseSuppression)&&(t.audioProfile_.noiseSuppression=e.noiseSuppression),t.videoProfile_=Gz.get("480p_2"),t.screenProfile_=Hz.get("1080p"),t.videoSetting_=null,t.muteState_={video:!1,audio:!1,auxVideo:!1},t.beautyStatus_=!1,t.prevAudioRecoverTime_=0,t.prevVideoRecoverTime_=0,t.isAudioRecovering_=!1,t.isVideoRecovering_=!1,t.initState(),t.canvas_=null,t.canvasInterval_=null,t.canvasTrack_=null,t.gain_={audioTrack:null,source:null,gainNode:null},t.captureVolume_=100,t.enableAutoRecoverCapture_=!!lI(e.enableAutoRecoverCapture)||e.enableAutoRecoverCapture,t.enableAutoRecoverOther_=!pI(e.enableAutoRecoverOther)||e.enableAutoRecoverOther,t.log_.info("stream created: ".concat(t.id_," autoRecover: ").concat(t.enableAutoRecoverCapture_)),t.isAIDenoiser=!1,t}return l(w,[{key:"scaleResolutionDownBy",get:function(){var e=this.getVideoTrack();if(!e||!KA||this.isScreenShare())return 1;var t,n,r,o=e.getSettings();return o.width===this.videoProfile_.width&&o.height===this.videoProfile_.height?1:null!==(t=window.screen)&&void 0!==t&&null!==(n=t.orientation)&&void 0!==n&&null!==(r=n.type)&&void 0!==r&&r.includes("portrait")&&this.videoProfile_.width>this.videoProfile_.height&&o.height>o.width?Math.max(o.width/this.videoProfile_.height,o.height/this.videoProfile_.width,1):Math.max(o.width/this.videoProfile_.width,o.height/this.videoProfile_.height,1)}},{key:"initState",value:function(){this.isAddingTrack_=!1,this.isRemovingTrack_=!1,this.setIsReadyToPublish(!1),this.setPublishState(jk)}},{key:"installEvents",value:function(){y(p(w.prototype),"installEvents",this).call(this),NI.on(OE,this.onVideoTrackStopped,this),NI.on(vE,this.onVideoTrackStopped,this),NI.on(kE,this.onAudioTrackStopped,this),NI.on(ME,this.onAudioTrackStopped,this)}},{key:"uninstallEvents",value:function(){y(p(w.prototype),"uninstallEvents",this).call(this),NI.off(OE,this.onVideoTrackStopped,this),NI.off(vE,this.onVideoTrackStopped,this),NI.off(kE,this.onAudioTrackStopped,this),NI.off(ME,this.onAudioTrackStopped,this)}},{key:"initialize",value:function(){var e=this;return new Promise((function(t,n){if(VA())n(new OD({code:yD.INVALID_OPERATION,message:eI({key:rS})}));else{if(lI(e.audio_)){var r=new MediaStream;return lI(e.audioSource_)||(r.addTrack(e.audioSource_),e.updateAudioPlayingState(!0)),lI(e.videoSource_)||(r.addTrack(e.videoSource_),e.updateVideoPlayingState(!0)),e.setMediaStream(r),uL.logSuccessEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:sk,kind:"custom"}),e.setIsReadyToPublish(!0),t()}e.screen_?(e.log_.info("initialize stream audio: "+e.audio_+" screenAudio: "+e.screenAudio_+" screen: "+e.screen_),wz({audio:e.audio_,screenAudio:e.screenAudio_,microphoneId:e.microphoneId_,width:e.screenProfile_.width,height:e.screenProfile_.height,frameRate:e.screenProfile_.frameRate,sampleRate:e.audioProfile_.sampleRate,channelCount:e.audioProfile_.channelCount,autoGainControl:e.audioProfile_.autoGainControl,noiseSuppression:e.audioProfile_.noiseSuppression,echoCancellation:e.audioProfile_.echoCancellation}).then((function(n){e.setMediaStream(n),e.updateAudioPlayingState(e.audio_||e.screenAudio_),e.updateVideoPlayingState(!0);var r=e.getVideoTrack();return r.applyConstraints&&r.applyConstraints({frameRate:{min:e.screenProfile_.frameRate,ideal:e.screenProfile_.frameRate},width:e.screenProfile_.width,height:e.screenProfile_.height}).catch((function(t){e.warn("screen applyConstraints failed: ".concat(t))})),e.listenForScreenSharingStopped(r),e.setVideoContentHint(YO),e.updateDeviceIdInUse(),e.setIsReadyToPublish(!0),e.log_.info(JSON.stringify(r.getSettings())),uL.logSuccessEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:sk,kind:"getDisplayMedia"}),t()})).catch((function(t){uL.logFailedEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:sk,kind:"getDisplayMedia",error:t}),e.log_.error("getDisplayMedia error observed "+t),n(t instanceof OD?t:new OD({code:yD.INITIALIZE_FAILED,name:t.name,message:t.message}))}))):(NI.emit(fE,{stream:e,audio:e.audio_,video:e.video_}),e.log_.info("initialize stream audio: "+e.audio_+" video: "+e.video_),Oz({audio:e.audio_,video:e.video_,facingMode:e.facingMode_,cameraId:e.cameraId_,microphoneId:e.microphoneId_,width:e.videoProfile_.width,height:e.videoProfile_.height,frameRate:e.videoProfile_.frameRate,sampleRate:e.audioProfile_.sampleRate,channelCount:e.audioProfile_.channelCount,autoGainControl:e.audioProfile_.autoGainControl,noiseSuppression:e.audioProfile_.noiseSuppression,echoCancellation:e.audioProfile_.echoCancellation,useExact:!0,retryWhenExactFailed:!0}).then((function(n){return NI.emit(hE,{stream:e,audio:e.audio_,video:e.video_}),e.setMediaStream(n),n.getTracks().forEach((function(t){if(KA){var n=t.getSettings();e.log_.debug("".concat(t.kind," settings: ").concat(JSON.stringify(n))),t.kind===SO&&(e.videoSetting_=n)}$A&&e.log_.info("".concat(t.kind," capabilities: ").concat(jI(t.getCapabilities(),vC)))})),e.updateAudioPlayingState(e.audio_),e.updateVideoPlayingState(e.video_),e.updateDeviceIdInUse(),e.log_.info("gotStream hasAudio: "+e.hasAudio()+" hasVideo: "+e.hasVideo()),e.setIsReadyToPublish(!0),uL.logSuccessEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:sk,kind:"getUserMedia"}),t()})).catch((function(t){NI.emit(mE,{stream:e,audio:e.audio_,video:e.video_,error:t}),uL.logFailedEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:sk,kind:"getUserMedia",error:t}),e.log_.error("getUserMedia error observed "+t),n(t)})))}}))}},{key:"listenForScreenSharingStopped",value:function(e){var t=this;e.addEventListener("ended",(function(e){t.log_.info("screen sharing was stopped because the video track is ended"),t.emitter_.emit(eN)}))}},{key:"muteAudio",value:function(){var e=y(p(w.prototype),"muteAudio",this).call(this);return e&&(this.log_.info("localStream mute audio"),this.sendMutedFlag(wO,!0)),e}},{key:"muteVideo",value:function(){var e=y(p(w.prototype),"muteVideo",this).call(this);return e&&(this.log_.info("localStream mute video"),this.sendMutedFlag(SO,!0)),e}},{key:"unmuteAudio",value:function(){var e=y(p(w.prototype),"unmuteAudio",this).call(this);return e&&(this.log_.info("localStream unmute audio"),this.sendMutedFlag(wO,!1)),e}},{key:"unmuteVideo",value:function(){var e=y(p(w.prototype),"unmuteVideo",this).call(this);return e&&(this.log_.info("localStream unmute video"),this.sendMutedFlag(SO,!1)),e}},{key:"sendMutedFlag",value:function(e,t){this.setMuteState(e,t);var n=this.getConnection();if(n){n.sendMutedFlag(this.muteState_,this);var r=n.getUserId(),o=n.getTinyId(),a="".concat(t?RO:xO," local ").concat(e," track");aL(r,{eventId:e===wO?t?SD:ID:t?TD:ED,eventDesc:a,timestamp:zm(),userId:r,tinyId:o})}}},{key:"setMuteState",value:function(e,t){this.muteState_[e]=t,this.log_.info("set ".concat(e," muted state: [").concat(t?"mute":"unmute","]"))}},{key:"setAudioProfile",value:(k=i(r().mark((function e(t){var a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("object"===o(t)?a=t:void 0===(a=Yz.get(t))&&(a=Yz.get("standard")),this.log_.info("setAudioProfile: "+JSON.stringify(a)),!(i=this.getAudioTrack())){e.next=6;break}return e.next=6,i.applyConstraints(a);case 6:if(s=this.audioProfile_.bitrate!==a.bitrate,this.audioProfile_=n(n({},this.audioProfile_),a),!s||!this.connection_){e.next=12;break}return e.next=11,this.connection_.setBandwidth({bandwidth:this.audioProfile_.bitrate,type:wO});case 11:this.connection_.sendMediaSettings(this);case 12:case"end":return e.stop()}}),e,this)}))),function(e){return k.apply(this,arguments)})},{key:"setVideoProfile",value:(M=i(r().mark((function e(t){var o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.connection_||PA()){e.next=2;break}throw new OD({code:yD.NOT_SUPPORTED,message:eI({key:aS})});case 2:if(aI(t)?a=n(n({},this.videoProfile_),t):uI(t)&&(a=Gz.get(t),lI(a)&&(a=Gz.get("480p_2"))),null!==(o=this.client_)&&void 0!==o&&o.get2k4kFlag()&&(1!==this.client_.get2k4kFlag()&&!this.screen_&&a.height*a.width>=3686400?(a.width=1920,a.height=1080,this.log_.warn(hC)):uz.handleFunctionState({fnName:"2K_4K"})),a&&a.width*a.height>921600&&WT&&(a.width=1280,a.height=720,this.log_.warn("reset to 1280 * 720 on iOS 13~14")),this.log_.info("setVideoProfile "+JSON.stringify(a)),!(i=this.getVideoTrack())){e.next=10;break}return e.next=10,i.applyConstraints(a);case 10:if(s=this.videoProfile_.bitrate!==a.bitrate,this.videoProfile_=a,!s||!this.connection_){e.next=16;break}return e.next=15,this.connection_.setBandwidth({bandwidth:a.bitrate,type:SO,videoType:EO});case 15:this.connection_.sendMediaSettings(this);case 16:case"end":return e.stop()}}),e,this)}))),function(e){return M.apply(this,arguments)})},{key:"getVideoBitrate",value:function(){return this.screen_?this.screenProfile_.bitrate:this.videoProfile_.bitrate}},{key:"getAudioBitrate",value:function(){return this.audioProfile_.bitrate}},{key:"setScreenProfile",value:function(e){var t=e;uI(e)&&(t=Hz.get(e)||Hz.get("1080p")),this.log_.info("setScreenProfile "+JSON.stringify(e)),this.screenProfile_=t}},{key:"getVideoProfile",value:function(){return this.screen_?this.screenProfile_:this.videoProfile_}},{key:"getAudioProfile",value:function(){return this.audioProfile_}},{key:"setVideoContentHint",value:function(e){var t=this.getVideoTrack();t&&"contentHint"in t&&(this.log_.info("set video track contentHint to: "+e),t.contentHint=e,t.contentHint!==e&&this.log_.warn("Invalid video track contentHint: "+e))}},{key:"switchDevice",value:(O=i(r().mark((function e(t,n){var o,a,i,s,c,l,u,d,p,f,h,m,v,g,_,b,y,O;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mediaStream_&&this.cameraId_!==n&&this.facingMode_!==n){e.next=2;break}return e.abrupt("return");case 2:if(a=t===SO,!(o=t===wO)||n!==this.microphoneId_){e.next=11;break}if(n===eC){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,ON(this.microphoneGroupId_,this.microphoneLabel_);case 9:if(!e.sent){e.next=11;break}return e.abrupt("return");case 11:return this.setIsReadyToPublish(!1),this.log_.info("switchDevice "+t+" to: "+n),o&&(i=this.getAudioTrack(),s=this.getMicrophoneTrackMixed(),i&&i.stop(),s&&s.stop()),a&&((c=this.getVideoTrack())&&c.stop(),TT&&(l=this.getAudioTrack())&&(this.log_.info("stop audio track first in huawei env"),l.stop())),e.prev=15,e.next=18,Oz({audio:o||TT,video:a,facingMode:n===AO||n===NO?n:void 0,cameraId:a?n:this.cameraId_,microphoneId:o?n:this.microphoneId_,width:this.videoProfile_.width,height:this.videoProfile_.height,frameRate:this.videoProfile_.frameRate,sampleRate:this.audioProfile_.sampleRate,channelCount:this.audioProfile_.channelCount,autoGainControl:this.audioProfile_.autoGainControl,noiseSuppression:this.audioProfile_.noiseSuppression,echoCancellation:this.audioProfile_.echoCancellation,useExact:!0,retryWhenExactFailed:!1});case 18:if(u=e.sent,d=null,!o){e.next=34;break}if(!(p=u.getAudioTracks()[0])||!this.isAudioTrackMixed()){e.next=31;break}return f=this.getAudioTrack(),h=oK.AudioMixerPlugin.getAudioTrackMap(),e.next=27,oK.AudioMixerPlugin.mix({targetTrack:p,sourceList:h.get(f.id).sourceList,trackList:h.get(f.id).trackList});case 27:m=e.sent,d=m,e.next=32;break;case 31:d=p;case 32:e.next=43;break;case 34:if(!(d=u.getVideoTracks()[0])||!this.isVideoTrackBeautified()){e.next=39;break}return e.next=38,this.generateBeautyTrack(d);case 38:d=e.sent;case 39:if(!(v=u.getAudioTracks()[0])||!TT){e.next=43;break}return e.next=43,this.replaceTrack(v);case 43:return e.next=45,this.replaceTrack(d);case 45:(g=this.getConnection())&&(_=g.getUserId(),b=g.getTinyId(),y=AD,O="switch camera",o&&(y=ND,O="switch microphone"),aL(_,{eventId:y,eventDesc:O,timestamp:zm(),userId:_,tinyId:b})),this.log_.info("switch ".concat(o?"microphone":"camera"," success ")),o&&(this.audio_=!0),a&&(this.video_=!0,this.facingMode_=n===NO||n===AO?n:""),this.updateDeviceIdInUse(),this.setIsReadyToPublish(!0),e.next=59;break;case 54:throw e.prev=54,e.t0=e.catch(15),this.log_.error(e.t0),o?this.recoverCapture({audio:!0,video:!1,microphoneId:this.microphoneId_}):this.recoverCapture({audio:!1,video:!0,cameraId:this.cameraId_,facingMode:this.facingMode_}),e.t0;case 59:case"end":return e.stop()}}),e,this,[[15,54]])}))),function(e,t){return O.apply(this,arguments)})},{key:"addTrack",value:(b=i(r().mark((function e(t){var n,o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t.kind===SO&&KA&&(n=t.getSettings(),!this.videoSetting_||n.width===this.videoSetting_.width&&n.height===this.videoSetting_.height||this.log_.warn("video resolution of the track (".concat(n.width," x ").concat(n.height,") shall be kept the same as the previous: ").concat(this.videoSetting_.width," x ").concat(this.videoSetting_.height,". It may cause abnormal Cloud Recording."))),this.isAddingTrack_=!0,this.keepMuteState(t),this.mediaStream_.addTrack(t),!(o=this.getConnection())){e.next=11;break}return a=null,t.kind===SO&&(qT||zT)&&mI(t)&&(a=this.getCanvasTrack()),e.next=11,o.addTrack(a||t,this);case 11:t.kind===wO?(this.audio_=!0,this.updateAudioPlayingState(!0),100!==this.captureVolume_&&this.setAudioCaptureVolume(this.captureVolume_)):(this.video_=!0,this.updateVideoPlayingState(!0)),this.isAddingTrack_=!1,e.next=20;break;case 15:throw e.prev=15,e.t0=e.catch(0),this.mediaStream_.removeTrack(t),this.isAddingTrack_=!1,e.t0;case 20:case"end":return e.stop()}}),e,this,[[0,15]])}))),function(e){return b.apply(this,arguments)})},{key:"removeTrack",value:(g=i(r().mark((function e(t){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.isRemovingTrack_=!0,!(n=this.getConnection())){e.next=17;break}if(t.kind!==SO||!qT&&!zT||!this.canvasTrack_){e.next=10;break}return e.next=7,n.removeTrack(this.canvasTrack_,this);case 7:this.clearCanvas(),e.next=17;break;case 10:if(t.kind!==wO||!this.gain_.audioTrack){e.next=15;break}return e.next=13,n.removeTrack(this.gain_.audioTrack,this);case 13:e.next=17;break;case 15:return e.next=17,n.removeTrack(t,this);case 17:this.mediaStream_.removeTrack(t),t.kind===wO?(this.audio_=!1,this.updateAudioPlayingState(!1),this.stopGainNode()):(this.video_=!1,this.updateVideoPlayingState(!1)),this.isRemovingTrack_=!1,e.next=26;break;case 22:throw e.prev=22,e.t0=e.catch(0),this.isRemovingTrack_=!1,e.t0;case 26:case"end":return e.stop()}}),e,this,[[0,22]])}))),function(e){return g.apply(this,arguments)})},{key:"replaceTrack",value:(v=i(r().mark((function e(t){var n,o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.kind===SO&&KA&&(n=t.getSettings(),!this.videoSetting_||n.width===this.videoSetting_.width&&n.height===this.videoSetting_.height||this.log_.warn("video resolution of the track (".concat(n.width," x ").concat(n.height,") shall be kept the same as the previous: ").concat(this.videoSetting_.width," x ").concat(this.videoSetting_.height,". It may cause abnormal Cloud Recording."))),this.keepMuteState(t),o=this.mediaStream_,t.kind!==wO){e.next=12;break}if(o.removeTrack(o.getAudioTracks()[0]),o.addTrack(t),y(p(w.prototype),"restartAudio",this).call(this),!this.gain_.gainNode){e.next=10;break}return this.reconnectGainNode(t),e.abrupt("return");case 10:e.next=15;break;case 12:o.removeTrack(o.getVideoTracks()[0]),o.addTrack(t),y(p(w.prototype),"restartVideo",this).call(this);case 15:if(!(a=this.getConnection())){e.next=21;break}if(t.kind!==SO||!qT&&!zT||!this.canvasTrack_){e.next=19;break}return e.abrupt("return");case 19:return e.next=21,a.replaceTrack(t,this);case 21:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"recoverCapture",value:(m=i(r().mark((function e(t){var n,o,a,i,s,c,l,u,d,p,f,h,m,v,g,_,b;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(!this.mediaStream_||!this.enableAutoRecoverCapture_||t.audio&&!t.video&&this.isAudioRecovering_||t.video&&!t.audio&&this.isVideoRecovering_)){e.next=2;break}return e.abrupt("return");case 2:return t.audio&&(this.isAudioRecovering_=!0),t.video&&(this.isVideoRecovering_=!0),this.log_.warn("recoverCapture() trying "+JSON.stringify(t)),n=this.audio_&&t.audio,o=this.video_&&t.video,e.prev=7,e.next=10,oK.getCameras();case 10:return a=e.sent,e.next=13,oK.getMicrophones();case 13:if(i=e.sent,o&&0===a.length&&(o=!1,this.log_.warn("recoverCapture() video flag is true, but no camera detected, set video to false")),n&&0===i.length&&(n=!1,this.log_.warn("recoverCapture() audio flag is true, but no microphone detected, set audio to false")),n||o){e.next=21;break}return t.audio&&(this.isAudioRecovering_=!1),t.video&&(this.isVideoRecovering_=!1),this.log_.warn("recoverCapture() both audio and video are false, aborted"),e.abrupt("return");case 21:return s=t&&a.findIndex((function(e){return e.deviceId===t.cameraId}))>=0,c=t&&i.findIndex((function(e){return e.deviceId===t.microphoneId}))>=0,n&&(null===(l=this.getAudioTrack())||void 0===l||l.stop()),o&&(null===(u=this.getVideoTrack())||void 0===u||u.stop()),e.next=27,Oz({audio:n,video:o,cameraId:s?t.cameraId:void 0,microphoneId:c?t.microphoneId:void 0,facingMode:this.facingMode_,width:this.videoProfile_.width,height:this.videoProfile_.height,frameRate:this.videoProfile_.frameRate,sampleRate:this.audioProfile_.sampleRate,channelCount:this.audioProfile_.channelCount,autoGainControl:this.audioProfile_.autoGainControl,noiseSuppression:this.audioProfile_.noiseSuppression,echoCancellation:this.audioProfile_.echoCancellation});case 27:d=e.sent,p=d.getTracks(),f=0;case 30:if(!(f<p.length)){e.next=59;break}if((h=p[f]).kind!==wO||!this.isAudioTrackMixed()){e.next=45;break}if(m=this.getAudioTrack(),v=oK.AudioMixerPlugin.getAudioTrackMap(),(g=v.get(m.id)).hasMicrophone){e.next=39;break}return h.stop(),e.abrupt("continue",56);case 39:return e.next=41,oK.AudioMixerPlugin.mix({targetTrack:h,sourceList:g.sourceList,trackList:g.trackList});case 41:return _=e.sent,e.next=44,this.replaceTrack(_);case 44:return e.abrupt("continue",56);case 45:if(h.kind!==SO||!this.isVideoTrackBeautified()){e.next=52;break}return e.next=48,this.generateBeautyTrack(h);case 48:return b=e.sent,e.next=51,this.replaceTrack(b);case 51:return e.abrupt("continue",56);case 52:return e.next=54,this.replaceTrack(h);case 54:if("ended"!==h.readyState){e.next=56;break}throw new Error("new track is failed, muted ".concat(h.muted," readyState ").concat(h.readyState));case 56:f++,e.next=30;break;case 59:this.updateDeviceIdInUse(),uL.logSuccessEvent({userId:this.client_?this.client_.getUserId():this.userId_,eventType:uk}),t.audio&&(this.isAudioRecovering_=!1),t.video&&(this.isVideoRecovering_=!1),this.log_.warn("recoverCapture() successfully"),this.emitter_.emit(nN,{isCamera:t.video,isMicrophone:t.audio,cameraId:this.cameraId_,microphoneId:this.microphoneId_}),e.next=73;break;case 67:throw e.prev=67,e.t0=e.catch(7),t.audio&&(this.isAudioRecovering_=!1),t.video&&(this.isVideoRecovering_=!1),this.log_.warn("recoverCapture() failed, "+e.t0),e.t0;case 73:case"end":return e.stop()}}),e,this,[[7,67]])}))),function(e){return m.apply(this,arguments)})},{key:"updateDeviceIdInUse",value:function(){var e=this;if(!this.mediaStream_)return this.cameraId_="",this.cameraGroupId_="",this.microphoneId_="",void(this.microphoneGroupId_="");KA&&this.mediaStream_.getTracks().forEach((function(t){if(t.kind===wO&&e.isAudioTrackMixed()){var n=e.getMicrophoneTrackMixed();if(n){var r=n.getSettings(),o=r.deviceId,a=r.groupId;o&&(e.microphoneId_=o,e.microphoneGroupId_=a,e.microphoneLabel_=n.label)}}else if(t.kind===SO&&e.isVideoTrackBeautified()){var i=e.getBeautyOriginTrack();if(i){var s=i.getSettings(),c=s.deviceId,l=s.groupId,u=s.facingMode;c&&(e.cameraId_=c,e.cameraGroupId_=l),u&&(e.facingMode_=u)}}else{var d=t.getSettings(),p=d.deviceId,f=d.groupId,h=d.facingMode;p&&(t.kind===wO?(e.microphoneId_=p,e.microphoneGroupId_=f,e.microphoneLabel_=t.label):t.kind!==SO||e.screen_||(e.cameraId_=p,e.cameraGroupId_=f,h&&(e.facingMode_=h)))}}));var t=this.mediaStream_.getAudioTracks(),n=this.mediaStream_.getVideoTracks();t&&0===t.length&&(this.microphoneId_="",this.microphoneGroupId_=""),n&&0===n.length&&(this.cameraId_="",this.cameraGroupId_="")}},{key:"isAudioTrackMixed",value:function(){if(oK.AudioMixerPlugin){var e=oK.AudioMixerPlugin.getAudioTrackMap(),t=this.getAudioTrack();if(e&&t&&e.has(t.id))return!0}return!1}},{key:"getMicrophoneTrackMixed",value:function(){if(oK.AudioMixerPlugin){var e=oK.AudioMixerPlugin.getAudioTrackMap(),t=this.getAudioTrack();if(e&&t&&e.has(t.id)){var n=e.get(t.id);return n.hasMicrophone?n.microphoneTrack:null}}return null}},{key:"isVideoTrackBeautified",value:function(){if(oK.beautyTrackMap){var e=oK.beautyTrackMap,t=this.getVideoTrack();if(t&&e.has(t.id))return!0}return!1}},{key:"getBeautyOriginTrack",value:function(){if(oK.beautyTrackMap){var e=oK.beautyTrackMap,t=this.getVideoTrack();if(t&&e.has(t.id)){var n=e.get(t.id);if(n.originTrack)return n.originTrack}}return null}},{key:"generateBeautyTrack",value:(h=i(r().mark((function e(t){var n,o,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null,o=this.getVideoTrack(),a=oK.beautyTrackMap.get(o.id),i=a.param,a.type){e.next=8;break}n=a.pluginInstance.generateBeautyTrack(t),e.next=22;break;case 8:e.t0=a.type,e.next="beauty"===e.t0?11:"virtual"===e.t0?13:"mixed"===e.t0?17:21;break;case 11:return n=a.pluginInstance.generateBeautyTrack(t),e.abrupt("break",22);case 13:return e.next=15,a.pluginInstance.generateVirtualTrack({videoTrack:t,type:i.type,img:i.img});case 15:case 19:return n=e.sent,e.abrupt("break",22);case 17:return e.next=19,a.pluginInstance.generateMixedTrack({videoTrack:t,type:i.type,img:i.img});case 21:return e.abrupt("break",22);case 22:return a.pluginInstance.deleteSource(o.id),this.log_.info("regenerate beauty track, track id = ".concat(t.id)),e.abrupt("return",n);case 25:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"getScreen",value:function(){return this.screen_}},{key:"hasScreenTrack",value:function(){if(this.screen_)return!0;var e=this.getVideoTrack();return!!e&&(e.contentHint===YO||e.contentHint===zO)}},{key:"getVideo",value:function(){return this.video_}},{key:"getAudio",value:function(){return this.audio_}},{key:"getCameraId",value:function(){return this.cameraId_}},{key:"getMicrophoneId",value:function(){return this.microphoneId_}},{key:"getMicrophoneGroupId",value:function(){return this.microphoneGroupId_}},{key:"getIsReadyToPublish",value:function(){return this.isReadyToPublish_}},{key:"setIsReadyToPublish",value:function(e){this.isReadyToPublish_=e}},{key:"setPublishState",value:function(e){this.publishState_=e}},{key:"setBeautyStatus",value:function(e){this.beautyStatus_=!!e}},{key:"getBeautyStatus",value:function(){return this.beautyStatus_}},{key:"syncMuteState",value:function(){var e=this.getAudioTrack(),t=this.getVideoTrack();if(e){var n=!e.enabled;this.setMuteState(wO,n)}if(t){var r=!t.enabled;this.setMuteState(SO,r)}this.connection_&&this.connection_.sendMutedFlag(this.muteState_,this)}},{key:"keepMuteState",value:function(e){e instanceof window.MediaStreamTrack&&this.muteState_[e.kind]&&(e.enabled=!1,this.log_.warn("prev ".concat(e.kind," track is muted, keep mute state")))}},{key:"onVideoTrackStopped",value:(f=i(r().mark((function e(t){var n,o,a=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.stream,o=t.type,n===this&&this.video_&&this.cameraId_&&yN(this.getVideoTrack())&&!this.isVideoRecovering_&&(o!==RO||!bT||!BT)){e.next=3;break}return e.abrupt("return");case 3:if(!(Date.now()-this.prevVideoRecoverTime_<lC)){e.next=6;break}return setTimeout((function(){return a.onVideoTrackStopped({stream:n,type:o})}),lC),e.abrupt("return");case 6:o===RO?setTimeout((function(){var e=a.getVideoTrack();null!=e&&e.muted&&"visible"===document.visibilityState&&a.recoverVideoCapture(o)}),5e3):this.recoverVideoCapture(o);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"onAudioTrackStopped",value:(u=i(r().mark((function e(t){var n,o,a=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.stream,o=t.type,!(n!==this||!this.audio_||!this.microphoneId_||this.isAudioRecovering_||o===RO&&bT&&BT)){e.next=3;break}return e.abrupt("return");case 3:if(!(Date.now()-this.prevAudioRecoverTime_<lC)){e.next=6;break}return setTimeout((function(){return a.onAudioTrackStopped({stream:n,type:o})}),lC),e.abrupt("return");case 6:o===RO?setTimeout((function(){var e=a.getAudioTrack();null!=e&&e.muted&&"visible"===document.visibilityState&&a.recoverAudioCapture(o)}),5e3):this.recoverAudioCapture(o);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"recoverAudioCapture",value:(c=i(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.prevAudioRecoverTime_=Date.now(),uL.uploadEvent({log:"stat-local-audio-".concat(t),userId:this.userId_}),e.t0=this,e.next=5,this.getRecoverCaptureDeviceId(!1);case 5:e.t1=e.sent,e.t2={audio:!0,video:!1,microphoneId:e.t1},e.t0.recoverCapture.call(e.t0,e.t2);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"recoverVideoCapture",value:(a=i(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.prevVideoRecoverTime_=Date.now(),uL.uploadEvent({log:"stat-local-video-".concat(t),userId:this.userId_}),e.t0=this,e.next=5,this.getRecoverCaptureDeviceId(!0);case 5:e.t1=e.sent,e.t2={audio:!1,video:!0,cameraId:e.t1},e.t0.recoverCapture.call(e.t0,e.t2);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"getRecoverCaptureDeviceId",value:(t=i(r().mark((function e(){var t,n,o,a,i=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!(i.length>0&&void 0!==i[0])||i[0],!(n=t?this.cameraId_:this.microphoneId_)||!this.enableAutoRecoverOther_){e.next=17;break}if(zz.has(n)?zz.set(n,zz.get(n)+1):zz.set(n,1),!((o=zz.get(n))>=3)){e.next=17;break}if(!t){e.next=12;break}return e.next=9,oK.getCameras();case 9:e.t0=e.sent.find((function(e){return!zz.has(e.deviceId)})),e.next=15;break;case 12:return e.next=14,oK.getMicrophones();case 14:e.t0=e.sent.find((function(e){return!zz.has(e.deviceId)}));case 15:(a=e.t0)&&(this.log_.warn("".concat(t?"camera":"mic"," ").concat(n," capture fail ").concat(o," times, change new ").concat(a.deviceId)),n=a.deviceId);case 17:return e.abrupt("return",n);case 18:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"setAudioVolume",value:function(e){y(p(w.prototype),"setAudioVolume",this).call(this,e)}},{key:"clearCanvas",value:function(){this.canvasInterval_&&(mA.clearTask(this.canvasInterval_),this.canvasInterval_=null,this.canvas_=null,this.canvasTrack_=null)}},{key:"getCanvasTrack",value:function(){var e=this;if(this.canvasTrack_)return this.canvasTrack_;this.log_.info("gen canvas track");var t=this.getVideoTrack().getSettings(),n=t.width,r=t.height,o=t.frameRate;this.canvas_=document.createElement("canvas");var a=this.canvas_.getContext("2d");this.canvas_.width=n,this.canvas_.height=r,this.canvasInterval_=mA.run(dC,(function(){if(e.hasVideo()){var t=e.getVideoTrack().getSettings();t.width===e.canvas_.width&&t.height===e.canvas_.height||(e.canvas_.width=t.width,e.canvas_.height=t.height)}e.videoPlayer_&&e.videoPlayer_.element_&&a.drawImage(e.videoPlayer_.element_,0,0,e.canvas_.width,e.canvas_.height)}),{fps:Math.max(15,o)});var i=this.canvas_.captureStream();return this.canvasTrack_=i.getVideoTracks()[0],this.canvasTrack_}},{key:"setClient",value:function(e,t){e&&(this.log_.setUserId(e.getUserId()),this.log_.setSdkAppId(e.getSDKAppId()),t||this.syncMuteState()),this.client_=e}},{key:"setAudioCaptureVolume",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;if(!this.hasAudio()||t<0||!xA())return!1;if(this.captureVolume_===t)return!0;this.captureVolume_=t,this.log_.info("setCaptureVolume "+t),t/=100;var n=wI();if(this.gain_.gainNode)this.gain_.gainNode.gain.value=t;else{var r,o=new MediaStream;o.addTrack(this.getAudioTrack());var a=n.createMediaStreamDestination(),i=n.createMediaStreamSource(o),s=n.createGain();s.gain.value=t,i.connect(s),s.connect(a);var c=a.stream.getAudioTracks()[0],l=function(t){return e.log_.info("gained audio track ".concat(t))};c.onmute=function(){return l("muted")},c.onunmute=function(){return l("unmuted")},c.onended=function(){return l("ended")},this.gain_={source:i,audioTrack:c,gainNode:s},null===(r=this.connection_)||void 0===r||r.replaceTrack(c),y(p(w.prototype),"restartAudio",this).call(this)}return!0}},{key:"getGainedTrack",value:function(){return this.gain_.audioTrack}},{key:"reconnectGainNode",value:function(e){this.log_.warn("reconnect gain node");var t=new MediaStream;t.addTrack(e);var n=wI().createMediaStreamSource(t);n.connect(this.gain_.gainNode),this.gain_.source.disconnect(),this.gain_.source=n}},{key:"stopGainNode",value:function(){var e=this.gain_,t=e.audioTrack,n=e.source,r=e.gainNode;r&&(n.disconnect(),r.disconnect(),t.onmute=null,t.onunmute=null,t.onended=null,t.stop(),this.gain_={source:null,gainNode:null,audioTrack:null}),this.captureVolume_=100}},{key:"close",value:function(){this.setIsReadyToPublish(!1),this.stopGainNode(),y(p(w.prototype),"close",this).call(this)}},{key:"setIsAIDenoiser",value:function(e){this.isAIDenoiser=e}}]),w}(pz),S(Vz.prototype,"setAudioProfile",[Iz],Object.getOwnPropertyDescriptor(Vz.prototype,"setAudioProfile"),Vz.prototype),S(Vz.prototype,"setVideoProfile",[Ez],Object.getOwnPropertyDescriptor(Vz.prototype,"setVideoProfile"),Vz.prototype),S(Vz.prototype,"setScreenProfile",[jz],Object.getOwnPropertyDescriptor(Vz.prototype,"setScreenProfile"),Vz.prototype),S(Vz.prototype,"setVideoContentHint",[Dz],Object.getOwnPropertyDescriptor(Vz.prototype,"setVideoContentHint"),Vz.prototype),S(Vz.prototype,"switchDevice",[Lz],Object.getOwnPropertyDescriptor(Vz.prototype,"switchDevice"),Vz.prototype),S(Vz.prototype,"addTrack",[Az],Object.getOwnPropertyDescriptor(Vz.prototype,"addTrack"),Vz.prototype),S(Vz.prototype,"removeTrack",[Nz],Object.getOwnPropertyDescriptor(Vz.prototype,"removeTrack"),Vz.prototype),S(Vz.prototype,"replaceTrack",[Rz],Object.getOwnPropertyDescriptor(Vz.prototype,"replaceTrack"),Vz.prototype),S(Vz.prototype,"recoverCapture",[xz],Object.getOwnPropertyDescriptor(Vz.prototype,"recoverCapture"),Vz.prototype),S(Vz.prototype,"setAudioCaptureVolume",[Pz,Uz],Object.getOwnPropertyDescriptor(Vz.prototype,"setAudioCaptureVolume"),Vz.prototype),Vz),Wz={voiceActivityDetection:!1},Kz=(Bz=tz({retries:1,timeout:0,onRetrying:function(e){this.log_.warn("connection timeout, retrying [".concat(e,"]"))},onError:function(e,t,n){e.message.includes("timeout")?(this.reset(),this.initialize(),t()):n(e)}}),Fz=function(e){d(D,e);var t,o,a,c,u,f,h,m,v,g,b,O,M,k,C,w,S,T,I,E,j=_(D);function D(e){var t;return s(this,D),(t=j.call(this,e)).localStream_=null,t.exchangeSDPTimeout_=-1,t.localAuxStream_=null,t.publishingStream_=null,t.isPublishingAuxStream_=!1,t.smallGenerator_=null,t.isSDPExchanging_=!1,t.ssrc_={audio:0,video:0,small:0,auxiliary:0},t.mediaSettings_={videoCodec:"",videoWidth:0,videoHeight:0,videoBps:0,videoFps:0,audioCodec:"opus",audioFs:0,audioChannel:0,audioBps:0,smallVideoWidth:0,smallVideoHeight:0,smallVideoFps:0,smallVideoBps:0,auxVideoWidth:0,auxVideoHeight:0,auxVideoFps:0,auxVideoBps:0},t.mixedAudioTrack_=null,t}return l(D,[{key:"isMainStreamPublished",get:function(){return!!this.localStream_}},{key:"isAuxStreamPublished",get:function(){return!!this.localAuxStream_}},{key:"publishState",get:function(){var e=this,t={audio:!1,bigVideo:!1,smallVideo:!1,auxVideo:!1};if(this.peerConnection_){var n,r,o,a,i=this.peerConnection_.getSenders();i&&(NA()?(t.audio=!(null===(n=i[0])||void 0===n||!n.track),t.bigVideo=!(null===(r=i[1])||void 0===r||!r.track),t.smallVideo=!(null===(o=i[2])||void 0===o||!o.track),t.auxVideo=!(null===(a=i[3])||void 0===a||!a.track)):i.forEach((function(n){n.track&&(n.track.kind===wO?t.audio=!0:(t.bigVideo=!0,e.smallGenerator_&&(t.smallVideo=!0)))})))}return t}},{key:"initialize",value:function(){y(p(D.prototype),"initialize",this).call(this),this.installEvents()}},{key:"reset",value:function(){this.isReconnecting_&&this.stopReconnection(),this.closePeerConnection(),this.uninstallEvents(),this.clearExchangeSDPTimeout(),this.localStream_&&this.localStream_.clearCanvas()}},{key:"close",value:function(){y(p(D.prototype),"close",this).call(this),this.reset(),this.emitConnectionStateChangedEvent(LM),this.smallGenerator_&&(this.smallGenerator_.destroy(),this.smallGenerator_=null)}},{key:"installEvents",value:function(){this.emitter_.on(XA.ERROR,this.handleError,this),this.emitter_.on(XA.CONNECTION_STATE_CHANGED,this.handleConnectionStateChange,this)}},{key:"uninstallEvents",value:function(){this.emitter_.off(XA.ERROR,this.handleError,this),this.emitter_.off(XA.CONNECTION_STATE_CHANGED,this.handleConnectionStateChange,this)}},{key:"publish",value:(E=i(r().mark((function e(t,n){var o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.publishingStream_=t,this.isPublishingAuxStream_=n,a=t.getVideoTrack(),i=null,!a||n||!this.client_.getIsEnableSmallStream()){e.next=9;break}return this.smallGenerator_=new _z(t),e.next=8,this.smallGenerator_.initialize();case 8:i=this.smallGenerator_.generateSmallVideoTrack(this.client_.smallStreamConfig_);case 9:if(s=t.getVideoProfile(),!this.client_.get2k4kFlag()){e.next=18;break}if(1===this.client_.get2k4kFlag()||t.getScreen()||!(s.height*s.width>=3686400)){e.next=18;break}return s.width=1920,s.height=1080,this.log_.warn(hC),e.next=18,t.setVideoProfile(s);case 18:if(!(qS&&115===RT()&&s.width*s.height<=230400)){e.next=22;break}return this.log_.warn("fallback video to 480p"),e.next=22,t.setVideoProfile("480p_2");case 22:if(this.updateMediaSettings(t,n),!RA()){e.next=33;break}if(!zS||11!==YT){e.next=29;break}return e.next=27,this.publishByAddTrack(t,i);case 27:e.next=31;break;case 29:return e.next=31,this.publishByTransceiver(t,i,n);case 31:e.next=35;break;case 33:return e.next=35,this.publishByAddTrack(t,i);case 35:return this.publishingStream_=null,this.isPublishingAuxStream_=!1,n?this.localAuxStream_=t:this.localStream_=t,null===(o=this.sei_)||void 0===o||o.handleEncodedStreams(),e.abrupt("return",t);case 40:case"end":return e.stop()}}),e,this)}))),function(e,t){return E.apply(this,arguments)})},{key:"publishByTransceiver",value:(I=i(r().mark((function e(t,n,o){var a,i,s,c,l,u,d;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.log_.info("publish by transceiver"),a=t.getMediaStream(),i=t.getAudioTrack(),s=t.getVideoTrack(),c=null,(qT||zT)&&mI(s)&&(c=t.getCanvasTrack()),0!==(l=this.peerConnection_.getTransceivers()).length){e.next=16;break}return this.peerConnection_.addTransceiver(i||wO,{direction:rM,streams:[a]}),this.peerConnection_.addTransceiver(o?SO:c||s||SO,{direction:rM,streams:[a]}),this.peerConnection_.addTransceiver(n||SO,{direction:rM,streams:[a]}),this.peerConnection_.addTransceiver(o?c||s:SO,{direction:rM,streams:[a]}),e.next=14,this.connect();case 14:e.next=46;break;case 16:if(u=[],!i){e.next=29;break}if(!l[0].sender.track){e.next=24;break}return this.mixAudioTrack(l[0].sender.track,i),e.next=22,l[0].sender.replaceTrack(this.mixedAudioTrack_);case 22:e.next=27;break;case 24:return e.next=26,l[0].sender.replaceTrack(i);case 26:u.push(0);case 27:return e.next=29,this.setBandwidth({bandwidth:t.getAudioBitrate(),type:wO});case 29:if(!s){e.next=42;break}return d=o?3:1,e.next=33,l[d].sender.replaceTrack(c||s);case 33:return e.next=35,this.setBandwidth({bandwidth:t.getVideoBitrate(),type:SO,videoType:o?jO:EO,scaleResolutionDownBy:t.scaleResolutionDownBy});case 35:if(u.push(d),!n){e.next=42;break}return e.next=39,l[2].sender.replaceTrack(n);case 39:return e.next=41,this.setBandwidth({bandwidth:this.client_.smallStreamConfig.bitrate,type:SO,videoType:IO});case 41:u.push(2);case 42:return e.next=44,this.setTransceiverDirection(rM,u);case 44:return e.next=46,this.doPublishChange();case 46:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return I.apply(this,arguments)})},{key:"publishByAddTrack",value:(T=i(r().mark((function e(t,n){var o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.log_.info("publish by addtrack"),o=t.getMediaStream(),a=t.getAudioTrack(),i=t.getVideoTrack(),a&&this.peerConnection_.addTrack(a,o),i&&(this.peerConnection_.addTrack(i,o),n&&((s=new MediaStream).addTrack(n),this.peerConnection_.addTrack(n,s))),e.next=8,this.connect();case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return T.apply(this,arguments)})},{key:"unpublish",value:(S=i(r().mark((function e(t){var o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(NA()){e.next=2;break}return e.abrupt("return",this.doUnpublish());case 2:if(o=t.getAudioTrack(),a=t===this.localAuxStream_,i=[],!this.peerConnection_){e.next=33;break}if(s=this.peerConnection_.getSenders(),!o){e.next=18;break}if(!this.mixedAudioTrack_){e.next=15;break}return this.log_.info("has mixed audioTrack, use another audioTrack"),e.next=12,s[0].replaceTrack(a?this.localStream_.getAudioTrack():this.localAuxStream_.getAudioTrack());case 12:this.destroyMixedAudioTrack(),e.next=18;break;case 15:return e.next=17,s[0].replaceTrack(null);case 17:i.push(0);case 18:if(!a){e.next=26;break}return e.next=21,s[3].replaceTrack(null);case 21:this.localAuxStream_=null,this.mediaSettings_=n(n({},this.mediaSettings_),{},{auxVideoBps:0,auxVideoFps:0,auxVideoWidth:0,auxVideoHeight:0}),i.push(3),e.next=33;break;case 26:return e.next=28,s[1].replaceTrack(null);case 28:return e.next=30,s[2].replaceTrack(null);case 30:this.localStream_=null,this.mediaSettings_=n(n({},this.mediaSettings_),{},{videoWidth:0,videoHeight:0,videoBps:0,videoFps:0,audioFs:0,audioChannel:0,audioBps:0,smallVideoWidth:0,smallVideoHeight:0,smallVideoFps:0,smallVideoBps:0}),i.push(1,2);case 33:if(!this.localStream_&&!this.localAuxStream_){e.next=40;break}return e.next=36,this.setTransceiverDirection(nM,i);case 36:return e.next=38,this.doPublishChange();case 38:e.next=42;break;case 40:return e.next=42,this.doUnpublish();case 42:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"doPublishChange",value:(w=i(r().mark((function e(){var t,n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={state:this.publishState,constraintConfig:this.mediaSettings_},e.next=3,this.signalChannel_.sendWaitForResponse({command:Qj,data:t,responseCommand:Jj.PUBLISH_STATE_CHANGE_RESULT});case 3:n=e.sent,this.checkPublishResultCode(n.data.code,n.data.message);case 5:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})},{key:"doUnpublish",value:function(){var e=this;return this.signalChannel_.sendWaitForResponse({command:oD,commandDesc:"unpublish",responseCommand:Jj.UNPUBLISH_RESULT}).then((function(){e.close()})).catch((function(){e.close()}))}},{key:"updateMediaSettings",value:function(e,t){var n=this;this.localAuxStream_&&e===this.localAuxStream_&&(t=!0);var r=this.client_.getSystemResult().detail,o=r.isH264EncodeSupported,a=r.isVp8EncodeSupported;if(o?this.mediaSettings_.videoCodec="H264":a&&(this.mediaSettings_.videoCodec="VP8"),KA){var i=e.getMediaStream();null==i||i.getTracks().forEach((function(r){var o=r.getSettings();if(r.kind===wO){var a=1;o.channelCount&&(a=o.channelCount),n.mediaSettings_.audioChannel=a,n.mediaSettings_.audioBps=1e3*e.getAudioBitrate(),n.mediaSettings_.audioFs=o.sampleRate}else if(r.kind===SO){if(t)return n.mediaSettings_.auxVideoWidth=o.width,n.mediaSettings_.auxVideoHeight=o.height,n.mediaSettings_.auxVideoFps=o.frameRate,void(n.mediaSettings_.auxVideoBps=1e3*e.getVideoBitrate());n.client_.getIsEnableSmallStream()&&(n.mediaSettings_.smallVideoWidth=n.client_.smallStreamConfig.width,n.mediaSettings_.smallVideoHeight=n.client_.smallStreamConfig.height,n.mediaSettings_.smallVideoFps=n.client_.smallStreamConfig.frameRate,n.mediaSettings_.smallVideoBps=1e3*n.client_.smallStreamConfig.bitrate),n.mediaSettings_.videoWidth=o.width,n.mediaSettings_.videoHeight=o.height,n.mediaSettings_.videoFps=o.frameRate,n.mediaSettings_.videoBps=1e3*e.getVideoBitrate()}}))}else this.updateMediaSettingsFromProfile(e);this.log_.info("updateMediaSettings: "+JSON.stringify(this.mediaSettings_))}},{key:"updateMediaSettingsFromProfile",value:function(e){if(e){if(e.hasAudio()){var t=e.getAudioProfile();this.mediaSettings_.audioChannel=t.channelCount,this.mediaSettings_.audioBps=1e3*t.bitrate,this.mediaSettings_.audioFs=t.sampleRate}if(e.hasVideo()){var n=e.getVideoProfile();this.mediaSettings_.videoWidth=n.width,this.mediaSettings_.videoHeight=n.height,this.mediaSettings_.videoFps=n.frameRate,this.mediaSettings_.videoBps=1e3*n.bitrate}}}},{key:"sendMediaSettings",value:function(e){var t=this;this.updateMediaSettings(e),this.signalChannel_.sendWaitForResponse({command:vD,data:this.mediaSettings_,responseCommand:Jj.UPDATE_CONSTRAINT_CONFIG_RES}).then((function(e){0!==e.data.code&&t.log_.warn(e.data.message)})).catch(this.log_.warn)}},{key:"addTrack",value:(C=i(r().mark((function e(t,n){var o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.peerConnection_){e.next=2;break}return e.abrupt("return");case 2:if(a=n===this.localAuxStream_,this.log_.info("is adding ".concat(t.kind," track to current published local ").concat(a?jO:qO," stream")),null===(o=this.sei_)||void 0===o||o.handleEncodedStreams(),!NA()){e.next=10;break}return e.next=8,this.addTrackByTransceiver(t,n);case 8:e.next=12;break;case 10:return e.next=12,this.addTrackBySender(t);case 12:aL(this.userId_,{eventId:t.kind===wO?kD:MD,eventDesc:"add ".concat(t.kind," track to current published stream"),timestamp:zm(),userId:this.userId_,tinyId:this.tinyId_});case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return C.apply(this,arguments)})},{key:"addTrackByTransceiver",value:(k=i(r().mark((function e(t,n){var o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n===this.localAuxStream_,a=this.peerConnection_.getTransceivers(),t.kind!==wO){e.next=13;break}if(!a[0].sender.track){e.next=9;break}return this.mixAudioTrack(a[0].sender.track,t),e.next=7,a[0].sender.replaceTrack(this.mixedAudioTrack_);case 7:e.next=11;break;case 9:return e.next=11,a[0].sender.replaceTrack(t);case 11:e.next=26;break;case 13:return i=o?3:1,e.next=16,a[i].sender.replaceTrack(t);case 16:if(1!==i||!this.client_.getIsEnableSmallStream()){e.next=23;break}return this.smallGenerator_=new _z(this.localStream_),e.next=20,this.smallGenerator_.initialize();case 20:return s=this.smallGenerator_.generateSmallVideoTrack(this.client_.smallStreamConfig_),e.next=23,a[2].sender.replaceTrack(s);case 23:if(a[i].direction!==nM){e.next=26;break}return e.next=26,this.setTransceiverDirection(rM,[i]);case 26:return this.updateMediaSettings(n,o),e.next=29,this.doPublishChange();case 29:case"end":return e.stop()}}),e,this)}))),function(e,t){return k.apply(this,arguments)})},{key:"addTrackBySender",value:(M=i(r().mark((function e(t){var n,o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(NA()&&this.peerConnection_.getTransceivers().findIndex((function(e){return"stopped"===e.direction}))>=0)){e.next=4;break}return this.log_.warn("transceiver is stopping, negotiate sdp first"),e.next=4,this.updateOffer(Ik.REMOVE,t);case 4:if(!(n=this.peerConnection_.getSenders().find((function(e){return e.track&&e.track.kind===t.kind})))){e.next=11;break}return this.log_.warn("sender already exists, remove sender first"),o=n.track,this.removeSender(n),e.next=11,this.updateOffer(Ik.REMOVE,o);case 11:if(a=this.localStream_.getMediaStream(),this.peerConnection_.addTrack(t,a),t.kind!==SO||!this.client_.getIsEnableSmallStream()){e.next=21;break}return this.smallGenerator_=new _z(this.localStream_),e.next=17,this.smallGenerator_.initialize();case 17:i=this.smallGenerator_.generateSmallVideoTrack(this.client_.smallStreamConfig_),(s=new MediaStream).addTrack(i),this.peerConnection_.addTrack(i,s);case 21:return e.next=23,this.updateOffer(Ik.ADD,t);case 23:case"end":return e.stop()}}),e,this)}))),function(e){return M.apply(this,arguments)})},{key:"isNeedToResetOfferOrder",value:function(){if(this.sdpSemantics_===bk||!this.peerConnection_||!this.peerConnection_.localDescription)return!1;for(var e=this.peerConnection_.localDescription.sdp,t=lA(e),n=0;n<t.media.length;n++)if(0===t.media[n].mid&&t.media[n].type===SO)return!0;return!1}},{key:"removeSender",value:function(e){var t=null;NA()&&(t=this.peerConnection_.getTransceivers().find((function(t){return t.sender&&t.sender.track===e.track}))),this.peerConnection_.removeTrack(e),t&&cI(t.stop)&&(this.log_.info("stop transceiver"),t.stop())}},{key:"removeTrack",value:(O=i(r().mark((function e(t,n){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.peerConnection_){e.next=2;break}return e.abrupt("return");case 2:if(this.log_.info("is removing ".concat(t.kind," track from current published local ").concat(n===this.localAuxStream_?jO:qO," stream")),!NA()){e.next=8;break}return e.next=6,this.removeTrackByTransceiver(t,n);case 6:e.next=10;break;case 8:return e.next=10,this.removeTrackBySender(t);case 10:aL(this.userId_,{eventId:t.kind===wO?wD:CD,eventDesc:"remove ".concat(t.kind," track from current published stream"),timestamp:zm(),userId:this.userId_,tinyId:this.tinyId_});case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return O.apply(this,arguments)})},{key:"removeTrackByTransceiver",value:(b=i(r().mark((function e(t,n){var o,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n===this.localAuxStream_,a=this.peerConnection_.getTransceivers(),t.kind!==wO){e.next=13;break}if(!this.mixedAudioTrack_){e.next=9;break}return e.next=6,a[0].sender.replaceTrack(o?this.localStream_.getAudioTrack():this.localAuxStream_.getAudioTrack());case 6:this.destroyMixedAudioTrack(),e.next=11;break;case 9:return e.next=11,a[0].sender.replaceTrack(null);case 11:e.next=23;break;case 13:return i=o?3:1,e.next=16,a[i].sender.replaceTrack(null);case 16:if(1!==i||!this.smallGenerator_){e.next=21;break}return this.smallGenerator_.destroy(),this.smallGenerator_=null,e.next=21,a[2].sender.replaceTrack(null);case 21:return e.next=23,this.setTransceiverDirection(nM,[i]);case 23:return this.updateMediaSettings(n,o),e.next=26,this.doPublishChange();case 26:case"end":return e.stop()}}),e,this)}))),function(e,t){return b.apply(this,arguments)})},{key:"setTransceiverDirection",value:(g=i(r().mark((function e(t,n){var o,a,i,s,c,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(WS){e.next=2;break}return e.abrupt("return");case 2:if(o=!1,a=!1,this.log_.info("setting transceiver ".concat(n.join(",")," direction to ").concat(t)),i=this.peerConnection_.getTransceivers(),n.forEach((function(e){i[e].direction!==t&&(i[e].direction=t,o=!0)})),!o){e.next=14;break}return this.log_.info("updating offer"),e.next=11,this.peerConnection_.createOffer();case 11:return s=e.sent,e.next=14,this.peerConnection_.setLocalDescription(s);case 14:if(c=-1,l=this.peerConnection_.remoteDescription.sdp.split("\r\n").map((function(e){if(e.match(new RegExp("a=(".concat(nM,"|").concat(oM,"|").concat(rM,")")))&&c++,n.includes(c)){if(t===nM&&e.includes("a=".concat(oM)))return a=!0,"a=".concat(t);if(t===rM&&e.includes("a=".concat(nM)))return a=!0,"a=".concat(oM)}return e})).join("\r\n"),!a){e.next=20;break}return this.log_.info("updating answer"),e.next=20,this.peerConnection_.setRemoteDescription({type:"answer",sdp:l});case 20:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"removeTrackBySender",value:(v=i(r().mark((function e(t){var n,o,a=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.kind!==SO||!this.isNeedToResetOfferOrder()){e.next=7;break}return this.reset(),this.initialize(),null===(n=this.localStream_.getMediaStream())||void 0===n||n.removeTrack(t),e.next=6,this.publish(this.localStream_);case 6:return e.abrupt("return");case 7:return(o=this.peerConnection_.getSenders().find((function(e){return e.track===t})))&&(this.removeSender(o),t.kind===SO&&this.smallGenerator_&&(this.smallGenerator_.destroy(),this.smallGenerator_=null,this.peerConnection_.getSenders().forEach((function(e){e.track&&e.track.kind===SO&&a.removeSender(e)})))),e.next=11,this.updateOffer(Ik.REMOVE,t);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"replaceTrack",value:(m=i(r().mark((function e(t,n){var o,a,i,s,c,l,u;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((a=null===(o=this.peerConnection_)||void 0===o?void 0:o.getSenders())&&0!==a.length){e.next=3;break}throw new OD({code:yD.INVALID_OPERATION,message:eI({key:Cw})});case 3:if(i=n===this.localAuxStream_,this.log_.info("is replacing ".concat(t.kind," track to current published local ").concat(i?jO:qO," stream")),t.kind!==wO||!a[0]){e.next=16;break}if(!(this.mixedAudioTrack_&&null!==(s=this.localStream_)&&void 0!==s&&s.hasAudio()&&null!==(c=this.localAuxStream_)&&void 0!==c&&c.hasAudio())){e.next=14;break}return this.destroyMixedAudioTrack(),l=i?this.localStream_.getAudioTrack():this.localAuxStream_.getAudioTrack(),this.mixAudioTrack(t,l),e.next=12,a[0].replaceTrack(this.mixedAudioTrack_);case 12:e.next=16;break;case 14:return e.next=16,a[0].replaceTrack(t);case 16:if(t.kind!==SO){e.next=32;break}if(n!==this.localStream_||!a[1]){e.next=29;break}return e.next=20,a[1].replaceTrack(t);case 20:if(!this.smallGenerator_||!a[2]){e.next=29;break}return this.log_.info("replacing smallVideo"),this.smallGenerator_.destroy(),this.smallGenerator_=new _z(this.localStream_),e.next=26,this.smallGenerator_.initialize();case 26:return u=this.smallGenerator_.generateSmallVideoTrack(this.client_.smallStreamConfig_),e.next=29,a[2].replaceTrack(u);case 29:if(n!==this.localAuxStream_||!a[3]){e.next=32;break}return e.next=32,a[3].replaceTrack(t);case 32:aL(this.userId_,{eventId:t.kind===wO?xD:RD,eventDesc:"replace ".concat(t.kind," track from current published stream"),timestamp:zm(),userId:this.userId_,tinyId:this.tinyId_});case 33:case"end":return e.stop()}}),e,this)}))),function(e,t){return m.apply(this,arguments)})},{key:"updateOffer",value:(h=i(r().mark((function e(t,n){var o,a,i,s,c,l,u;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.peerConnection_.createOffer(Wz);case 3:return o=e.sent,WS&&(o.sdp=this.setSDPDirection(o.sdp,"sendrecv")),e.next=7,this.peerConnection_.setLocalDescription(o);case 7:return a=this.updateMediaSettings(this.localStream_||this.localAuxStream_),i={action:t,trackId:n.id,kind:n.kind===SO?"bigVideo":n.kind,type:"offer",sdp:this.peerConnection_.localDescription.sdp,constraintConfig:a,state:this.publishState},this.log_.info("createOffer success, sending updated offer to remote server"),this.log_.debug("updatedOffer: "+i.sdp),e.next=13,this.signalChannel_.sendWaitForResponse({command:Xj,data:i,responseCommand:Jj.UPDATE_OFFER_RESULT,timeout:1e4,commandDesc:"update offer"});case 13:return s=e.sent,c=s.data,l=c.code,u=c.message,0!==l&&this.checkPublishResultCode(l,u),e.next=18,this.acceptAnswer(s.data.data);case 18:this.updateSSRC(o.sdp),uL.logSuccessEvent({userId:this.client_.getUserId(),eventType:ok,kind:"offer"}),e.next=27;break;case 22:throw e.prev=22,e.t0=e.catch(0),this.log_.error(e.t0),uL.logFailedEvent({userId:this.client_.getUserId(),eventType:ok,kind:"offer",error:e.t0}),e.t0;case 27:case"end":return e.stop()}}),e,this,[[0,22]])}))),function(e,t){return h.apply(this,arguments)})},{key:"setBandwidth",value:(f=i(r().mark((function e(t){var n,o,a,i,s,c,l,u,d,p;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.bandwidth,o=t.type,a=t.videoType,i=void 0===a?"":a,s=t.sdp,c=t.scaleResolutionDownBy,l=void 0===c?1:c,PA()||!s){e.next=3;break}return e.abrupt("return",o===SO?this.updateVideoBandwidthRestriction(s,n,i):this.updateAudioBandwidthRestriction(s,n));case 3:if(u=null,RA()?(d=0,o===SO&&(d=i===IO?2:i===jO?3:1),u=this.peerConnection_.getSenders()[d]):u=this.peerConnection_.getSenders().find((function(e){return e.track&&e.track.kind===o})),!u){e.next=23;break}return(p=u.getParameters()).encodings&&0!==p.encodings.length||(p.encodings=[{}]),"unlimited"===n?delete p.encodings[0].maxBitrate:p.encodings[0].maxBitrate=1e3*n,delete p.encodings[0].scaleResolutionDownBy,l>1&&(this.log_.warn("".concat(i," scaleResolutionDownBy ").concat(l)),p.encodings[0].scaleResolutionDownBy=l),e.prev=11,e.next=14,u.setParameters(p);case 14:return this.log_.info(i+o+" bandwidth was set to "+n+" kbps"),e.abrupt("return",s);case 18:if(e.prev=18,e.t0=e.catch(11),this.log_.info("failed to set bandwidth by setting maxBitrate: "+e.t0),!s){e.next=23;break}return e.abrupt("return",o===SO?this.updateVideoBandwidthRestriction(s,n,i):this.updateAudioBandwidthRestriction(s,n));case 23:return e.abrupt("return",s);case 24:case"end":return e.stop()}}),e,this,[[11,18]])}))),function(e){return f.apply(this,arguments)})},{key:"updateVideoBandwidthRestriction",value:function(e,t,n){var r="AS";WS&&(r="TIAS",t*=1e3);var o=0,a=-1;return n===IO?o=1:n===jO&&(o=2),e=e.replace(/m=video (.*)\r\nc=IN (.*)\r\n/g,(function(e){return++a===o?"".concat(e,"b=").concat(r,":").concat(t,"\r\n"):e})),e}},{key:"updateAudioBandwidthRestriction",value:function(e,t){var n="AS";return WS&&(n="TIAS",t*=1e3),e.replace(/m=audio (.*)\r\nc=IN (.*)\r\n/,"m=audio $1\r\nc=IN $2\r\nb="+n+":"+t+"\r\n")}},{key:"removeBandwidthRestriction",value:function(e){return e.replace(/b=AS:.*\r\n/,"").replace(/b=TIAS:.*\r\n/,"")}},{key:"removeVideoOrientation",value:function(e){return e.replace(/urn:3gpp:video-orientation/,"")}},{key:"connect",value:(u=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.exchangeSDP();case 3:return e.next=5,this.waitForPeerConnectionConnected();case 5:e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(0),this.closePeerConnection(!0),e.t0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return u.apply(this,arguments)})},{key:"exchangeSDP",value:(c=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isSDPExchanging_=!0,e.next=4,this.createOffer();case 4:return this.log_.info("createOffer success, sending offer to remote server"),e.next=7,this.doExchangeSDP();case 7:this.isSDPExchanging_=!1,e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(0),this.isSDPExchanging_=!1,e.t0;case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return c.apply(this,arguments)})},{key:"createOffer",value:(a=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.peerConnection_.createOffer(Wz);case 3:return t=e.sent,e.next=6,this.peerConnection_.setLocalDescription(t);case 6:this.updateSSRC(t.sdp),uL.logSuccessEvent({userId:this.client_.getUserId(),eventType:ok,kind:"offer"}),e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(0),uL.logFailedEvent({userId:this.client_.getUserId(),eventType:ok,kind:"offer",error:e.t0}),e.t0;case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return a.apply(this,arguments)})},{key:"doExchangeSDP",value:function(){var e=this;return new Promise((function(t,n){e.exchangeSDPTimeout_=setTimeout((function(){e.signalChannel_.off(Jj.PUBLISH_RESULT,o),e.clearExchangeSDPTimeout();var t=new OD({code:yD.API_CALL_TIMEOUT,message:eI({key:RC})});n(t)}),1e4);var o=function(){var o=i(r().mark((function o(a){var i,s,c;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,e.clearExchangeSDPTimeout(),i=a.data,s=i.code,c=i.message,0!==s){r.next=9;break}return r.next=6,e.acceptAnswer(a.data.data);case 6:t(),r.next=10;break;case 9:e.checkPublishResultCode(s,c);case 10:r.next=15;break;case 12:r.prev=12,r.t0=r.catch(0),n(r.t0);case 15:case"end":return r.stop()}}),o,null,[[0,12]])})));return function(e){return o.apply(this,arguments)}}(),a={type:e.peerConnection_.localDescription.type,sdp:e.removeVideoOrientation(e.peerConnection_.localDescription.sdp),screen:(e.publishingStream_||e.localStream_).hasScreenTrack(),state:e.publishState,constraintConfig:e.mediaSettings_};e.signalChannel_.once(Jj.PUBLISH_RESULT,o),e.log_.debug("sending sdp offer: "+a.sdp),e.signalChannel_.send(rD,a)}))}},{key:"setSDPDirection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all",r=lA(e);return r.media.forEach((function(e){"all"!==n&&e.type!==n||(e.direction=t)})),uA(r)}},{key:"acceptAnswer",value:(o=i(r().mark((function e(t){var n,o,a,i,s,c,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=this.removeVideoOrientation(t.sdp),!(o=this.publishingStream_||this.localStream_)){e.next=15;break}if(a=o.getVideoBitrate(),i=o.getAudioBitrate(),!a){e.next=11;break}return s=this.isPublishingAuxStream_?jO:EO,e.next=10,this.setBandwidth({sdp:n,videoType:s,type:SO,bandwidth:a,scaleResolutionDownBy:o.scaleResolutionDownBy});case 10:n=e.sent;case 11:if(!i){e.next=15;break}return e.next=14,this.setBandwidth({bandwidth:i,type:wO,sdp:n});case 14:n=e.sent;case 15:if(!this.client_.getIsEnableSmallStream()){e.next=20;break}return c=this.client_.smallStreamConfig,e.next=19,this.setBandwidth({bandwidth:c.bitrate,type:SO,videoType:IO,sdp:n});case 19:n=e.sent;case 20:return l={type:t.type,sdp:n},e.next=23,this.peerConnection_.setRemoteDescription(l);case 23:this.log_.debug("accepted answer: "+n),uL.logSuccessEvent({userId:this.client_.getUserId(),eventType:ak,kind:"answer"}),e.next=32;break;case 27:throw e.prev=27,e.t0=e.catch(0),uL.logFailedEvent({userId:this.client_.getUserId(),eventType:ak,kind:"answer",error:e.t0}),this.log_.error("failed to accept remote answer "+e.t0),e.t0;case 32:case"end":return e.stop()}}),e,this,[[0,27]])}))),function(e){return o.apply(this,arguments)})},{key:"sendMutedFlag",value:function(e,t){if(t!==this.localAuxStream_){var n={audio:e.audio,bigVideo:e.video,auxVideo:e.auxVideo};this.log_.info("send muted state: ".concat(JSON.stringify(n))),this.signalChannel_.send(nD,n)}}},{key:"getIsReconnecting",value:function(){return this.isReconnecting_}},{key:"reconnect",value:(t=i(r().mark((function e(){var t,n,o=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(-1===this.reconnectionTimer_){e.next=3;break}return this.log_.warn("reconnect() uplink is reconnecting, ignore current reconnection"),e.abrupt("return");case 3:if(!(this.reconnectionCount_>=30)){e.next=12;break}return this.log_.warn("SDK has tried reconnect uplink for ".concat(30," times, but all failed, please check your network")),this.stopReconnection(),t=new OD({code:yD.UPLINK_RECONNECTION_FAILED,message:eI({key:UC})}),uL.logFailedEvent({userId:this.client_.getUserId(),eventType:tk,error:t}),this.addEventInternal(QD,"uplink-connection reconnect fail"),this.emitConnectionStateChangedEvent(LM),this.emitter_.emit(XA.ERROR,t),e.abrupt("return");case 12:if(this.signalChannel_.getCurrentState()===Wj){e.next=16;break}return this.log_.warn("reconnect() signal channel is not connected, suspend reconnection until signal is connected"),this.signalChannel_.once(Gj,this.reconnect,this),e.abrupt("return");case 16:if(this.reconnectionCount_++,e.prev=17,this.log_.warn("reconnect() try to reconnect uplink [".concat(this.reconnectionCount_,"/").concat(30,"]")),n=sI(this.reconnectionCount_),this.reconnectionTimer_=setTimeout((function(){o.log_.warn("reconnect() uplink reconnect timeout(".concat(n/1e3,"s), try again")),o.clearReconnectionTimer(),o.reconnect()}),n),!(this.isSDPExchanging_||this.peerConnection_&&this.peerConnection_.connectionState===PM)){e.next=23;break}return e.abrupt("return");case 23:return e.next=25,this.signalChannel_.sendWaitForResponse({command:oD,responseCommand:Jj.UNPUBLISH_RESULT,enableLog:!1});case 25:if(this.reset(),this.initialize(),!this.localStream_){e.next=30;break}return e.next=30,this.publish(this.localStream_);case 30:if(!this.localAuxStream_){e.next=33;break}return e.next=33,this.publish(this.localAuxStream_,!0);case 33:uL.logSuccessEvent({userId:this.client_.getUserId(),eventType:tk}),this.log_.warn("reconnect() uplink reconnect successfully"),this.addEventInternal(XD,"uplink-connection reconnect success"),this.stopReconnection(),this.localStream_.syncMuteState(),e.next=42;break;case 40:e.prev=40,e.t0=e.catch(17);case 42:case"end":return e.stop()}}),e,this,[[17,40]])}))),function(){return t.apply(this,arguments)})},{key:"clearExchangeSDPTimeout",value:function(){-1!==this.exchangeSDPTimeout_&&(clearTimeout(this.exchangeSDPTimeout_),this.exchangeSDPTimeout_=-1)}},{key:"clearReconnectionTimer",value:function(){-1!==this.reconnectionTimer_&&(clearTimeout(this.reconnectionTimer_),this.reconnectionTimer_=-1)}},{key:"handleError",value:function(e){e.getCode()===yD.ICE_TRANSPORT_ERROR&&(this.isFirstConnection_&&(this.isFirstConnection_=!1,uL.logFailedEvent({userId:this.client_.getUserId(),eventType:ek,error:e})),this.isReconnecting_||this.startReconnection())}},{key:"handleConnectionStateChange",value:function(e){e.state===RM&&this.isFirstConnection_&&(this.isFirstConnection_=!1,uL.logSuccessEvent({userId:this.client_.getUserId(),eventType:ek}),this.addEventInternal(zD,"uplink-connection is connected"))}},{key:"updateSSRC",value:function(e){var t=this;try{lA(e).media.forEach((function(e,n){if(e.type===wO){var r=e.ssrcs[0];r&&(t.ssrc_.audio=r.id)}else{if(t.sdpSemantics_===bk)return void e.ssrcGroups.forEach((function(e,n){var r=Number(e.ssrcs.split(" ")[0]);0===n?t.ssrc_.video=r:1===n&&(t.ssrc_.small=r)}));var o=e.ssrcs[0];if(!o)return;switch(n){case 1:t.ssrc_.video=o.id;break;case 2:t.ssrc_.small=o.id;break;case 3:t.ssrc_.auxiliary=o.id}}}))}catch(aK){}}},{key:"getVideoTrackId",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:SO;if(this.peerConnection_){var t=this.peerConnection_.getSenders();if(e===SO&&t[1]&&t[1].track)return t[1].track.id;if(e===IO&&t[2]&&t[2].track)return t[2].track.id;if(e===jO&&t[3]&&t[3].track)return t[3].track.id}if(this.localStream_&&e===SO){var n=this.localStream_.getVideoTrack();if(n)return n.id}if(this.localAuxStream_&&e===jO){var r=this.localAuxStream_.getVideoTrack();if(r)return r.id}return""}},{key:"getSSRC",value:function(){return this.ssrc_}},{key:"checkPublishResultCode",value:function(e,t){if(0!==e)throw 1028===e?(this.log_.error(ES.NOT_SUPPORTED_H264ENCODE),new OD({code:yD.NOT_SUPPORTED_H264,message:eI({key:iS})})):new OD({code:yD.UNKNOWN,message:eI({key:hS,data:{signalResponse:Jj.PUBLISH_RESULT,code:e,message:t}})})}},{key:"getLocalStream",value:function(){return this.localStream_}},{key:"sendSEI",value:function(e,t){this.sei_.push(e,t)}},{key:"mixAudioTrack",value:function(e,t){this.log_.info("mix audio track"),this.mixedAudioTrack_=function(e){var t=CI(),n=t.createMediaStreamDestination(),r=[];e.forEach((function(e){var o=new MediaStream;o.addTrack(e);var a=t.createMediaStreamSource(o);a.connect(n),r.push(a)}));var o=n.stream.getAudioTracks()[0];return bz.set(o,{destination:n,track:o,mediaStreamSourceList:r}),o}([e,t])}},{key:"destroyMixedAudioTrack",value:function(){this.mixedAudioTrack_&&(this.log_.info("destroy audio track"),function(e){if(bz.has(e)){var t=bz.get(e),n=t.destination,r=t.track,o=t.mediaStreamSourceList;r.stop(),n.disconnect(),o.forEach((function(e){e.disconnect()})),bz.delete(e)}}(this.mixedAudioTrack_),this.mixedAudioTrack_=null)}}]),D}(RY),S(Fz.prototype,"publish",[Bz],Object.getOwnPropertyDescriptor(Fz.prototype,"publish"),Fz.prototype),Fz),$z=te,Jz=Gc,Xz=Gi.exports.getWeakData,Qz=mc,Zz=un,eq=se,tq=ye,nq=pc,rq=mt,oq=ir.set,aq=ir.getterFor,iq=Vu.find,sq=Vu.findIndex,cq=$z([].splice),lq=0,uq=function(e){return e.frozen||(e.frozen=new dq)},dq=function(){this.entries=[]},pq=function(e,t){return iq(e.entries,(function(e){return e[0]===t}))};dq.prototype={get:function(e){var t=pq(this,e);if(t)return t[1]},has:function(e){return!!pq(this,e)},set:function(e,t){var n=pq(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=sq(this.entries,(function(t){return t[0]===e}));return~t&&cq(this.entries,t,1),!!~t}};var fq,hq={getConstructor:function(e,t,n,r){var o=e((function(e,o){Qz(e,a),oq(e,{type:t,id:lq++,frozen:void 0}),eq(o)||nq(o,e[r],{that:e,AS_ENTRIES:n})})),a=o.prototype,i=aq(t),s=function(e,t,n){var r=i(e),o=Xz(Zz(t),!0);return!0===o?uq(r).set(t,n):o[r.id]=n,e};return Jz(a,{delete:function(e){var t=i(this);if(!tq(e))return!1;var n=Xz(e);return!0===n?uq(t).delete(e):n&&rq(n,t.id)&&delete n[t.id]},has:function(e){var t=i(this);if(!tq(e))return!1;var n=Xz(e);return!0===n?uq(t).has(e):n&&rq(n,t.id)}}),Jz(a,n?{get:function(e){var t=i(this);if(tq(e)){var n=Xz(e);return!0===n?uq(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),o}},mq=E,vq=te,gq=Gc,_q=Gi.exports,bq=Bc,yq=hq,Oq=ye,Mq=ds,kq=ir.enforce,Cq=Fn,wq=!mq.ActiveXObject&&"ActiveXObject"in mq,Sq=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Tq=bq("WeakMap",Sq,yq);if(Cq&&wq){fq=yq.getConstructor(Sq,"WeakMap",!0),_q.enable();var Iq=Tq.prototype,Eq=vq(Iq.delete),jq=vq(Iq.has),Dq=vq(Iq.get),Lq=vq(Iq.set);gq(Iq,{delete:function(e){if(Oq(e)&&!Mq(e)){var t=kq(this);return t.frozen||(t.frozen=new fq),Eq(this,e)||t.frozen.delete(e)}return Eq(this,e)},has:function(e){if(Oq(e)&&!Mq(e)){var t=kq(this);return t.frozen||(t.frozen=new fq),jq(this,e)||t.frozen.has(e)}return jq(this,e)},get:function(e){if(Oq(e)&&!Mq(e)){var t=kq(this);return t.frozen||(t.frozen=new fq),jq(this,e)?Dq(this,e):t.frozen.get(e)}return Dq(this,e)},set:function(e,t){if(Oq(e)&&!Mq(e)){var n=kq(this);n.frozen||(n.frozen=new fq),jq(this,e)?Lq(this,e,t):n.frozen.set(e,t)}else Lq(this,e,t);return this}})}var Aq=So,Nq=jb,Rq=D,xq=Ce,Pq=ge,Uq=w_,Vq=_O,Bq=kr,Fq=Nq&&Nq.prototype;if(Aq({target:"Promise",proto:!0,real:!0,forced:!!Nq&&Rq((function(){Fq.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Uq(this,xq("Promise")),n=Pq(e);return this.then(n?function(n){return Vq(t,e()).then((function(){return n}))}:e,n?function(n){return Vq(t,e()).then((function(){throw n}))}:e)}}),Pq(Nq)){var Gq=xq("Promise").prototype.finally;Fq.finally!==Gq&&Bq(Fq,"finally",Gq,{unsafe:!0})}var Hq,Yq,zq,qq,Wq,Kq=new WeakMap;function $q(){return function(e,t,r){var o=r.value,a=function e(t){var r=t.fn,o=t.args,a=t.context,i=t.resolve,s=t.reject;r.apply(a,o).then(i,s).finally((function(){var t=Kq.get(a);t&&(t.shift(),t[0]&&e(n({},t[0])))}))};return r.value=function(){for(var e=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return new Promise((function(n,i){if(Kq.has(e)){var s=Kq.get(e),c=s.length;s.push({fn:o,args:r,context:e,resolve:n,reject:i,name:t}),0===c&&a({fn:o,args:r,context:e,resolve:n,reject:i})}else Kq.set(e,[{fn:o,args:r,context:e,resolve:n,reject:i,name:t}]),a({fn:o,args:r,context:e,resolve:n,reject:i})}))},r}}var Jq=(Hq=$q(),Yq=tz({retries:1,timeout:0,onRetrying:function(e){this.log_.warn("connection timeout, retrying [".concat(e,"]"))},onError:function(e,t,n){e.message.includes("timeout")?t():n(e)}}),zq=$q(),qq=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return function(t,n,r){var o=r.value;return r.value=function(){for(var t=this,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return new Promise((function(r,i){var s=setTimeout((function(){return i(new Error("".concat(n," timeout")))}),e);o.apply(t,a).then(r,i).finally((function(){clearTimeout(s)}))}))},r}}(),Wq=function(e){d(g,e);var t,a,c,u,f,h,m,v=_(g);function g(e){var t;return s(this,g),(t=v.call(this,e)).remoteStreams_=new Map,t.autoSubscribe=e.autoSubscribe,t.trackState_={audio:e.trackState.audio,video:e.trackState.video,auxiliary:e.trackState.auxiliary,smallVideo:e.trackState.smallVideo},t.ssrc_={audio:0,video:0,auxiliary:0},t.subscribeState_={audio:e.autoSubscribe,video:e.autoSubscribe,auxiliary:e.autoSubscribe,smallVideo:!1},t.isSDPExchanging_=!1,t.installEvents(),t}return l(g,[{key:"getMixUserList",value:function(){return this.mixUserList_?this.mixUserList_.map((function(e){var t=e.userId,n=e.flag;return{userId:t,hasAudio:!!(8&n),hasVideo:!!(1&n),hasAuxiliary:!!(4&n)}})):void 0}},{key:"setMixUserList",value:function(e){(!this.mixUserList_||hI(this.mixUserList_)&&!function(e,t){if(t.length===e.length){var n,r=w(t);try{var i=function(){var t=n.value,r=e.find((function(e){return e.userId===t.userId}));if(!r||r.flag!==t.flag)return{v:!1}};for(r.s();!(n=r.n()).done;){var s=i();if("object"===o(s))return s.v}}catch(a){r.e(a)}finally{r.f()}return!0}return!1}(this.mixUserList_,e))&&(this.mixUserList_=e,this.emitter_.emit(XA.STREAM_UPDATED,{stream:this.getMainStream()}))}},{key:"isMainStreamSubscribed",get:function(){return(this.subscribeState_.audio||this.subscribeState_.video||this.subscribeState_.smallVideo)&&(this.trackState_.audio||this.trackState_.video||this.trackState_.smallVideo)}},{key:"isAuxStreamSubscribed",get:function(){return this.subscribeState_.auxiliary&&this.trackState_.auxiliary}},{key:"isSmallStreamSubscribed",get:function(){return this.subscribeState_.smallVideo&&this.trackState_.smallVideo}},{key:"isBigStreamSubscribed",get:function(){return this.subscribeState_.video&&this.trackState_.video}},{key:"isStreamUnpublished",value:function(e){return e.getType()===qO?!this.trackState_.audio&&!this.trackState_.video:!this.trackState_.auxiliary}},{key:"initialize",value:function(){y(p(g.prototype),"initialize",this).call(this),this.peerConnection_.ontrack=this.onTrack.bind(this)}},{key:"close",value:function(){var e,t,n,r=this;y(p(g.prototype),"close",this).call(this),this.trackState_.audio=!1,this.trackState_.video=!1,this.trackState_.smallVideo=!1,this.trackState_.auxiliary=!1,this.emitConnectionStateChangedEvent(LM),e=this,t=function(e){e.fn;var t=e.args,n=e.resolve,o=e.reject,a=e.name;if("subscribe"===a){if(!r.client_.getIsJoined())return o(new OD({code:yD.API_CALL_ABORTED,message:eI({key:TS,data:{message:"leave room",stream:t[0]}})}));if(r.isStreamUnpublished(t[0]))return o(new OD({code:yD.API_CALL_ABORTED,message:eI({key:TS,data:{message:"remote user ".concat(r.userId_," unpublished stream"),stream:t[0]}})}))}else if("unsubscribe"===a)return n();n()},null===(n=Kq.get(e))||void 0===n||n.forEach(t),Kq.delete(e),this.remoteStreams_.forEach((function(e){var t=e;t.setConnection(null),t.uninstallEvents(),t.getIsStreamAddedEventEmitted()&&r.emitter_.emit(XA.STREAM_REMOVED,{stream:t})})),this.remoteStreams_.clear(),this.uninstallEvents()}},{key:"installEvents",value:function(){var e=this;NI.on(aE,this.onRemoteStreamUpdate,this),this.emitter_.on(XA.ERROR,(function(t){t.getCode()===yD.ICE_TRANSPORT_ERROR&&(e.isFirstConnection_&&(e.isFirstConnection_=!1,uL.logFailedEvent({userId:e.client_.getUserId(),eventType:nk,error:t})),e.isReconnecting_||e.startReconnection())})),this.emitter_.on(XA.CONNECTION_STATE_CHANGED,(function(t){t.state===RM&&e.isFirstConnection_&&(e.isFirstConnection_=!1,uL.logSuccessEvent({userId:e.client_.getUserId(),eventType:nk}),e.addEventInternal(qD,"downlink-connection is connected"))}))}},{key:"uninstallEvents",value:function(){NI.removeListener(aE,this.onRemoteStreamUpdate,this)}},{key:"onRemoteStreamUpdate",value:function(e){if(this.hitTest(e.tinyId)&&e.client===this.client_){this.updateTrackState(e.action,e.kind);var t=e.kind===jO?TM:SM,n=this.remoteStreams_.get(t);if(!n)return;e.action===Ik.ADD?this.handleRemoteAddTrack(e.kind,n):this.handleRemoteRemoveTrack(e.kind,n)}}},{key:"handleRemoteAddTrack",value:function(e,t){this.log_.info("remote add ".concat(e," track")),e===wO?t.updateAudioPlayingState(this.subscribeState_.audio):t.updateVideoPlayingState(e===jO?this.subscribeState_.auxiliary:this.subscribeState_.video||this.subscribeState_.smallVideo),t.getIsStreamAddedEventEmitted()?this.emitter_.emit(XA.STREAM_UPDATED,{stream:t}):(this.emitter_.emit(XA.STREAM_ADDED,{stream:t}),this.currentState_===RM&&t.emitConnectionStateChanged({prevState:LM,state:RM}))}},{key:"handleRemoteRemoveTrack",value:function(e,t){t.getIsStreamAddedEventEmitted()&&(this.log_.info("remote remove ".concat(e," track")),e===jO||!this.trackState_.audio&&!this.trackState_.video?(this.log_.info("remote stream ".concat(t.getType()," removed")),this.currentState_===RM&&t.emitConnectionStateChanged({prevState:RM,state:LM}),this.emitter_.emit(XA.STREAM_REMOVED,{stream:t})):(e===wO?t.updateAudioPlayingState(!1):(e!==LO||this.isSmallStreamSubscribed)&&t.updateVideoPlayingState(!1),this.emitter_.emit(XA.STREAM_UPDATED,{stream:t})))}},{key:"updateTrackState",value:function(e,t){var n=e===Ik.ADD;switch(t){case wO:this.trackState_.audio=n;break;case SO:this.trackState_.video=n;break;case jO:this.trackState_.auxiliary=n;break;case LO:this.trackState_.smallVideo=n}this.log_.info("trackState updated: ".concat(JSON.stringify(this.trackState_)))}},{key:"onTrack",value:function(e){var t=e.streams[0],n=e.track;if(this.log_.info("ontrack() kind: ".concat(n.kind," id: ").concat(n.id," streamId: ").concat(t.id)),this.sdpSemantics_===_k){var r=function(e){var t=WL.parse(e),n={audio:[],video:[]};return t.media.forEach((function(e){if(e.ssrcs){var t=e.ssrcs[0].id>>16&255;if(e.type===wO)n.audio.push(SM);else if(e.type==SO){var r=t===IM?SM:TM;n.video.push(r)}}})),n}(this.peerConnection_.remoteDescription.sdp);if(n.kind===wO){if(0===r.audio.length||t.id!==SM)return void this.log_.debug("skip this invalid audio track")}else if(-1===r.video.indexOf(t.id))return void this.log_.debug("skip this invalid video track: ".concat(n.id," msid: ").concat(t.id))}uL.logEvent({eventType:"ontrack",kind:n.kind});var o=!1,a=this.remoteStreams_.get(t.id),i=t.id===SM?EM:jM;if(lI(a)&&((a=new fz({type:i,userId:this.userId_,client:this.client_})).setConnection(this),this.remoteStreams_.set(t.id,a),o=!0),a.setMediaStream(t),n.kind===wO?a.updateAudioPlayingState(this.subscribeState_.audio):i===EM?a.updateVideoPlayingState(this.subscribeState_.video||this.subscribeState_.smallVideo):a.updateVideoPlayingState(this.subscribeState_.auxiliary),(i!==jM||this.trackState_.auxiliary)&&(i!==EM||this.trackState_.audio||this.trackState_.video)){var s=this.client_.getSubscriptionManager();s&&s.hasAutoRecoveryFlag(this.userId_,i)||(o?this.emitter_.emit(XA.STREAM_ADDED,{stream:a}):this.emitter_.emit(XA.STREAM_UPDATED,{stream:a}))}}},{key:"addRRTRLine",value:function(e){var t=e.split("\r\n"),n=new Map;t.forEach((function(e,r){/^a=rtcp-fb:/.test(e)&&t[r+1]&&!/^a=rtcp-fb:/.test(t[r+1])&&e.match(/^a=rtcp-fb:\d+/)&&n.set(r+1,e.match(/^a=rtcp-fb:\d+/)[0]+" rrtr")}));for(var r=M(n),o=0;o<r.length;o++){var a=O(r[o],2),i=a[0],s=a[1];t.splice(i+o,0,s)}return t.join("\r\n")}},{key:"addSPSDescription",value:function(e){var t=lA(e);return t.media.forEach((function(e){e.type===SO&&e.fmtp.forEach((function(e){e.config+=";sps-pps-idr-in-keyframe=1"}))})),uA(t)}},{key:"removeSDESDescription",value:function(e){var t=["urn:ietf:params:rtp-hdrext:sdes:mid","urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id","urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id"],n=lA(e);return n.media.forEach((function(e){e.ext=e.ext.filter((function(e){return!t.includes(e.uri)}))})),uA(n)}},{key:"isSubscriptionStateNotChanged",value:function(e,t){return e.getType()===EM?(null==t?void 0:t.audio)===this.subscribeState_.audio&&(null==t?void 0:t.video)===this.subscribeState_.video&&this.isSubscribeSmall(t):e.getType()===jM?!lI(t.video)&&this.subscribeState_.auxiliary===t.video:void 0}},{key:"isSubscribeSmall",value:function(e){return lI(e.smallVideo)&&!this.subscribeState_.smallVideo}},{key:"subscribe",value:(m=i(r().mark((function e(t,n){var o,a,i,s,c,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=n.emitEvent,s=void 0===i||i,c=t.getType(),(null===(o=this.peerConnection_)||void 0===o?void 0:o.connectionState)!==xM&&(null===(a=this.peerConnection_)||void 0===a?void 0:a.connectionState)!==PM){e.next=6;break}return e.next=6,this.waitForPeerConnectionConnected();case 6:if(!this.isSubscriptionStateNotChanged(t,n)){e.next=13;break}if(this.peerConnection_){e.next=11;break}return this.initialize(),e.next=11,this.connect();case 11:return s&&lI(n.smallVideo)&&this.emitter_.emit(XA.STREAM_SUBSCRIBED,{stream:t,result:!0}),e.abrupt("return",t);case 13:if(c===qO?(lI(n.audio)||(this.subscribeState_.audio=n.audio),lI(n.video)||(this.subscribeState_.video=n.video),this.subscribeState_.smallVideo=(null==n?void 0:n.smallVideo)||!1,this.addEventInternal(this.subscribeState_.audio?jD:LD,this.subscribeState_.audio?"subscribe audio":"unsubscribe audio"),this.addEventInternal(this.subscribeState_.video?jD:LD,this.subscribeState_.video?"subscribe video":"unsubscribe video"),this.addEventInternal(this.subscribeState_.smallVideo?nL:rL,this.subscribeState_.smallVideo?"subscribe smallVideo":"unsubscribe smallVideo")):lI(n.video)||(this.subscribeState_.auxiliary=n.video),this.log_.info("subscribe ".concat(c," stream with options ").concat(JSON.stringify(n)," current state: ").concat(JSON.stringify(this.subscribeState_))),!this.peerConnection_&&!this.isSDPExchanging_){e.next=23;break}return l=gk,this.isMainStreamSubscribed||this.isAuxStreamSubscribed||(l=vk),e.next=20,this.sendSubscription(l);case 20:c===qO?(t.updateAudioPlayingState(this.subscribeState_.audio),t.updateVideoPlayingState(this.subscribeState_.video||this.subscribeState_.smallVideo)):t.updateVideoPlayingState(this.subscribeState_.auxiliary),e.next=26;break;case 23:return this.initialize(),e.next=26,this.connect();case 26:return s&&this.emitter_.emit(XA.STREAM_SUBSCRIBED,{stream:t,result:!0}),e.abrupt("return",t);case 30:if(e.prev=30,e.t0=e.catch(0),!this.client_.getIsJoined()||!this.isStreamUnpublished(t)){e.next=35;break}throw this.log_.warn("".concat(e.t0.message," ").concat(JSON.stringify(this.trackState_))),new OD({code:yD.REMOTE_STREAM_NOT_EXIST,message:"remote user ".concat(this.userId_," unpublished stream")});case 35:throw e.t0;case 36:case"end":return e.stop()}}),e,this,[[0,30]])}))),function(e,t){return m.apply(this,arguments)})},{key:"checkTrackEnded",value:function(){try{var e=this.peerConnection_.getReceivers().map((function(e){return e.track})).find((function(e){return"ended"===e.readyState}));e&&this.currentState_===RM&&!this.isReconnecting_&&(this.log_.warn("".concat(e.kind," track ended, start reconnect")),this.startReconnection())}catch(aK){}}},{key:"unsubscribe",value:(h=i(r().mark((function e(t){var n,o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.getType())!==qO){e.next=10;break}if(this.isMainStreamSubscribed){e.next=5;break}return this.log_.info("main stream already unsubscribed"),e.abrupt("return",t);case 5:this.subscribeState_.audio=!1,this.subscribeState_.video=!1,this.subscribeState_.smallVideo=!1,e.next=14;break;case 10:if(this.isAuxStreamSubscribed){e.next=13;break}return this.log_.info("auxiliary stream already unsubscribed"),e.abrupt("return",t);case 13:this.subscribeState_.auxiliary=!1;case 14:return o=vk,(n===EM&&this.isAuxStreamSubscribed||n===jM&&this.isMainStreamSubscribed)&&(o=gk),this.log_.info("unsubscribe ".concat(n," stream with ").concat(JSON.stringify(this.subscribeState_))),e.next=19,this.sendSubscription(o);case 19:return t.updateVideoPlayingState(!1),t.updateAudioPlayingState(!1),o===vk&&((a=t.getMediaStream())&&a.getTracks().forEach((function(e){return a.removeTrack(e)})),this.closePeerConnection(),this.emitConnectionStateChangedEvent(LM)),this.addEventInternal(LD,"unsubscribe audio"),this.addEventInternal(DD,"unsubscribe video"),e.abrupt("return",t);case 25:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"sendSubscription",value:function(e){var t=this,n={srcTinyId:this.tinyId_,srcUserId:this.userId_},r=iD,o=Jj.UNSUBSCRIBE_RESULT;return e===gk&&(n={audio:this.subscribeState_.audio,bigVideo:this.subscribeState_.video,auxVideo:this.subscribeState_.auxiliary,smallVideo:this.subscribeState_.smallVideo,srcTinyId:this.tinyId_},r=sD,o=Jj.SUBSCRIBE_CHANGE_RESULT),this.signalChannel_.sendWaitForResponse({command:r,data:n,responseCommand:o,timeout:1e4}).then((function(n){var r=n.data;if(0!==r.code){var o=new OD({code:r.code,message:eI({key:NC,data:{type:e,message:r.message}})});throw t.log_.error(o),o}}))}},{key:"connect",value:(f=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.exchangeSDP();case 3:return e.next=5,this.waitForPeerConnectionConnected();case 5:e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(0),this.closePeerConnection(!0),e.t0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return f.apply(this,arguments)})},{key:"exchangeSDP",value:(u=i(r().mark((function e(){var t,n,o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isSDPExchanging_=!0,e.next=4,this.createOffer();case 4:return this.log_.info("createOffer success, sending offer to remote server"),t=this.peerConnection_.localDescription,n=t.type,o=t.sdp,a={type:n,sdp:o,srcUserId:this.userId_,srcTinyId:this.tinyId_,audio:this.subscribeState_.audio,bigVideo:this.subscribeState_.video,auxVideo:this.subscribeState_.auxiliary,smallVideo:this.subscribeState_.smallVideo},NI.emit(wE,{client:this.client_,connection:this,userId:this.userId_,tinyId:this.tinyId_,role:MM,subscribeState:this.subscribeState_,trackState:this.trackState_}),e.next=10,this.signalChannel_.sendWaitForResponse({command:aD,commandDesc:"exchange sdp",data:a,responseCommand:Jj.SUBSCRIBE_RESULT,timeout:1e4});case 10:if(i=e.sent,this.peerConnection_){e.next=15;break}throw s=new OD({code:yD.INVALID_OPERATION,message:eI({key:gS})}),this.log_.warn(s),s;case 15:return e.next=17,this.onSubscribeResult(i);case 17:this.isSDPExchanging_=!1,e.next=24;break;case 20:throw e.prev=20,e.t0=e.catch(0),this.isSDPExchanging_=!1,e.t0;case 24:case"end":return e.stop()}}),e,this,[[0,20]])}))),function(){return u.apply(this,arguments)})},{key:"createOffer",value:(c=i(r().mark((function e(){var t,n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={voiceActivityDetection:!1},RA()&&this.sdpSemantics_===_k?(this.peerConnection_.addTransceiver(wO,{direction:"recvonly"}),this.peerConnection_.addTransceiver(SO,{direction:"recvonly"}),this.peerConnection_.addTransceiver(SO,{direction:"recvonly"})):(t.offerToReceiveAudio=!0,t.offerToReceiveVideo=!0),e.next=4,this.peerConnection_.createOffer(t);case 4:return n=e.sent,e.next=7,SA();case 7:return e.sent.isH264DecodeSupported||(this.log_.warn("remove h264 desc from sdp"),n.sdp=(r=n.sdp,o=void 0,(o=lA(r)).media.forEach((function(e){if(e.type===SO){var t=new Set;e.rtp.forEach((function(e){var n=e.payload;return"H264"===e.codec&&t.add(n)})),e.fmtp.forEach((function(e){var n=e.payload,r=e.config.match(/apt=(\d+)/);r&&r[1]&&t.has(Number(r[1]))&&t.add(n)}));var n=function(e){var n=e.payload;return!t.has(n)};e.rtp=e.rtp.filter(n),e.rtcpFb=e.rtcpFb.filter(n),e.fmtp=e.fmtp.filter(n),e.payloads=e.payloads.split(" ").filter((function(e){return!t.has(Number(e))})).join(" ")}})),uA(o))),n.sdp=this.addRRTRLine(n.sdp),n.sdp=this.addSPSDescription(n.sdp),n.sdp=dA(n.sdp),this.sdpSemantics_===_k&&(n.sdp=this.removeSDESDescription(n.sdp)),e.next=16,this.peerConnection_.setLocalDescription(n);case 16:case"end":return e.stop()}var r,o}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"onSubscribeResult",value:(a=i(r().mark((function e(t){var o,a,i,s,c,l,u,d=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t&&t.data||{},a=o.code,i=o.message,s=void 0===i?"":i,c=t&&t.data&&t.data.data||{},l=c.type,u=c.sdp,77393!==a){e.next=5;break}throw this.log_.error(ES.NOT_SUPPORTED_H264DECODE),new OD({code:yD.NOT_SUPPORTED_H264,message:eI({key:sS})});case 5:if(e.prev=5,0===a){e.next=8;break}throw new OD({code:a,message:eI({key:PC,data:{errMsg:s}})});case 8:return this.log_.debug("accept remote answer: "+u),e.next=11,this.peerConnection_.setRemoteDescription({type:l,sdp:u});case 11:this.sei_&&(this.sei_.handleEncodedStreams(),this.sei_.onSEIMessage=function(e){d.emitter_.emit(XA.SEI_MESSAGE,n(n({},e),{},{userId:d.userId_}))}),this.updateSSRC(u),e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(5),this.log_.error(e.t0),e.t0;case 19:case"end":return e.stop()}}),e,this,[[5,15]])}))),function(e){return a.apply(this,arguments)})},{key:"updateSSRC",value:function(e){var t=this;try{lA(e).media.forEach((function(e){if(e.type===wO){var n=e.ssrcs.find((function(e){return e.value.includes(SM)}));n&&(t.ssrc_.audio=n.id)}else{var r=e.ssrcs.find((function(e){return e.value.includes(SM)})),o=e.ssrcs.find((function(e){return e.value.includes(TM)}));r&&(t.ssrc_.video=r.id),o&&(t.ssrc_.auxiliary=o.id)}}))}catch(aK){}}},{key:"setRemoteStream",value:function(e,t){this.remoteStreams_.set(e,t)}},{key:"getSubscribeState",value:function(){return this.subscribeState_}},{key:"getTrackState",value:function(){return this.trackState_}},{key:"getSSRC",value:function(){return this.ssrc_}},{key:"getMainStream",value:function(){return this.remoteStreams_.get(SM)}},{key:"getAuxStream",value:function(){return this.remoteStreams_.get(TM)}},{key:"getMainStreamVideoTrackId",value:function(){var e=this.getMainStream();if(e){var t=e.getVideoTrack();if(t)return t.id}return""}},{key:"getAuxStreamVideoTrackId",value:function(){var e=this.getAuxStream();if(e){var t=e.getVideoTrack();if(t)return t.id}return""}},{key:"reconnect",value:(t=i(r().mark((function e(){var t,n,o=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(-1===this.reconnectionTimer_){e.next=3;break}return this.log_.warn("reconnect() downlink is reconnecting, ignore current reconnection"),e.abrupt("return");case 3:if(!(this.reconnectionCount_>=30)){e.next=12;break}return this.log_.warn("SDK has tried reconnect downlink [".concat(this.userId_,"] for ").concat(30," times, but all failed, please check your network")),this.stopReconnection(),t=new OD({code:yD.DOWNLINK_RECONNECTION_FAILED,message:eI({key:xC})}),uL.logFailedEvent({userId:this.client_.getUserId(),eventType:rk,error:t}),this.addEventInternal(tL,"downlink-connection reconnect fail"),this.emitConnectionStateChangedEvent(LM),this.emitter_.emit(XA.ERROR,t),e.abrupt("return");case 12:if(this.signalChannel_.getCurrentState()===Wj){e.next=16;break}return this.log_.warn("reconnect() signal channel is not connected, suspend reconnection until signal is connected"),this.signalChannel_.once(Gj,this.reconnect,this),e.abrupt("return");case 16:if(this.reconnectionCount_++,this.log_.warn("reconnect() try to reconnect downlink [".concat(this.reconnectionCount_,"/").concat(30,"]")),n=sI(this.reconnectionCount_),this.reconnectionTimer_=setTimeout((function(){o.log_.warn("reconnect() downlink [".concat(o.userId_,"] reconnect timeout(").concat(n/1e3,"s), try again")),o.clearReconnectionTimer(),o.reconnect()}),n),!(this.isSDPExchanging_||this.peerConnection_&&this.peerConnection_.connectionState===PM)){e.next=22;break}return e.abrupt("return");case 22:return e.prev=22,this.closePeerConnection(),this.initialize(),e.next=27,this.connect();case 27:this.stopReconnection(),this.log_.warn("reconnect() downlink reconnect successfully"),uL.logSuccessEvent({userId:this.client_.getUserId(),eventType:rk}),this.addEventInternal(eL,"downlink-connection reconnect success"),this.recoverSubscription(),e.next=36;break;case 34:e.prev=34,e.t0=e.catch(22);case 36:case"end":return e.stop()}}),e,this,[[22,34]])}))),function(){return t.apply(this,arguments)})},{key:"recoverSubscription",value:function(){var e=this,t=this.client_.getSubscriptionManager();t&&M(this.remoteStreams_.values()).forEach((function(n){t.hasAutoRecoveryFlag(e.userId_,n.getType())&&t.recover(n)}))}},{key:"getIsReconnecting",value:function(){return this.isReconnecting_}},{key:"getSubscribedMainStream",value:function(){var e=null;return this.isMainStreamSubscribed&&(e=this.remoteStreams_.get(SM)),e}},{key:"clearReconnectionTimer",value:function(){-1!==this.reconnectionTimer_&&(clearTimeout(this.reconnectionTimer_),this.reconnectionTimer_=-1)}},{key:"startReconnection",value:function(){var e=this.client_.getSubscriptionManager();if(e){var t,n=w(this.remoteStreams_.values());try{for(n.s();!(t=n.n()).done;){var r=t.value,o=r.getType();(o===EM&&(this.trackState_.audio||this.trackState_.video)||o===jM&&this.trackState_.auxiliary)&&e.setAutoRecoveryFlag(this.userId_,r.getType())}}catch(i){n.e(i)}finally{n.f()}}y(p(g.prototype),"startReconnection",this).call(this)}},{key:"getCurrentState",value:function(){return this.currentState_}},{key:"hasMainStream",value:function(){return this.trackState_.video||this.trackState_.audio||this.trackState_.smallVideo}},{key:"hasAuxStream",value:function(){return this.trackState_.auxiliary}}]),g}(RY),S(Wq.prototype,"subscribe",[Hq,Yq],Object.getOwnPropertyDescriptor(Wq.prototype,"subscribe"),Wq.prototype),S(Wq.prototype,"unsubscribe",[zq],Object.getOwnPropertyDescriptor(Wq.prototype,"unsubscribe"),Wq.prototype),S(Wq.prototype,"exchangeSDP",[qq],Object.getOwnPropertyDescriptor(Wq.prototype,"exchangeSDP"),Wq.prototype),Wq),Xq=function(){function e(){s(this,e),this.startTime=0,this.endTime=0,this.start()}return l(e,[{key:"start",value:function(){0===this.startTime&&(this.startTime=_I())}},{key:"stop",value:function(){0===this.endTime&&(this.endTime=_I())}},{key:"getDuration",value:function(){return 0===this.endTime?_I()-this.startTime:this.endTime-this.startTime}}]),e}(),Qq=function(){function e(t){s(this,e),this.client_=t.client,this.intervalId_=-1,this.statsCalculator_=t.stats,this.prevStats_=null,this.renderFreezeMap_=new Map,this.remoteStreamMap_=new Map,this.dataFreezeMap_=new Map,this.monitorFreezeData_=new Map}var t,n,o;return l(e,[{key:"installEvents",value:function(){NI.on(yE,this.handlePlayVideoStart,this),NI.on(vE,this.onVideoTrackMuted,this),NI.on(gE,this.onVideoTrackUnmuted,this),NI.on(dE,this.handleStreamStopped,this),NI.on(lE,this.handleStreamStopped,this),NI.on(rE,this.handleVideoPlaying,this)}},{key:"uninstallEvents",value:function(){NI.off(yE,this.handlePlayVideoStart,this),NI.off(vE,this.onVideoTrackMuted,this),NI.off(gE,this.onVideoTrackUnmuted,this),NI.off(dE,this.handleStreamStopped,this),NI.off(lE,this.handleStreamStopped,this),NI.off(rE,this.handleVideoPlaying,this)}},{key:"start",value:function(){var e=this;-1===this.intervalId_&&(this.installEvents(),this.intervalId_=mA.run(i(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.detectFPS();case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:case"end":return t.stop()}}),t,null,[[0,5]])}))),{delay:1e3}))}},{key:"stop",value:function(){-1!==this.intervalId_&&(this.uninstallEvents(),mA.clearTask(this.intervalId_),this.intervalId_=-1,this.renderFreezeMap_.clear(),this.dataFreezeMap_.clear(),this.remoteStreamMap_.clear())}},{key:"onVideoTrackMuted",value:function(e){var t=e.stream;if(t.getClient()===this.client_&&t.isRemote()){var n=t.userId_,r=t.type_,o="".concat(n,"_").concat(r),a=this.dataFreezeMap_.get(o),i=new Xq;a?a.durationItemList.push(i):this.dataFreezeMap_.set(o,{userId:n,type:r,durationItemList:[i],isFreezing:function(){var e=this.durationItemList[this.durationItemList.length-1];return e&&0===e.endTime}})}}},{key:"onVideoTrackUnmuted",value:function(e){var t=e.stream;if(t.getClient()===this.client_&&t.isRemote()){var n=t.userId_,r=t.type_,o="".concat(n,"_").concat(r);this.stopDataFreeze({key:o,userId:n,type:r})}}},{key:"handleStreamStopped",value:function(e){var t=e.client,n=e.stream;if(t===this.client_){var r=n.getUserId(),o=n.getType(),a="".concat(r,"_").concat(o);this.stopDataFreeze({key:a,userId:r,type:o})}}},{key:"stopDataFreeze",value:function(e){var t=e.key,n=e.userId,r=e.type,o=this.dataFreezeMap_.get(t);if(o&&o.isFreezing()){var a=o.durationItemList[o.durationItemList.length-1];a.stop();var i=a.getDuration();i>500?(uL.logEvent({eventType:"videoFrozenCount",delta:i}),this.monitorFreezeData_.set(t,{userId:n,type:r,duration:i})):o.durationItemList.pop()}}},{key:"getTotalDuration",value:function(e){return e.reduce((function(e,t){var n=t.getDuration();return e+Math.min(n,5e3)}),0)}},{key:"getStats",value:(o=i(r().mark((function e(){var t,n,o,a,i,s,c,l,u,d,p;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.client_.getConnections(),n={},o=w(t),e.prev=3,o.s();case 5:if((a=o.n()).done){e.next=20;break}if(i=O(a.value,2),s=i[0],(c=i[1]).getPeerConnection()){e.next=9;break}return e.abrupt("continue",18);case 9:return l=c.getSubscribeState(),u=c.getTrackState(),e.next=13,this.statsCalculator_.getReceiverStats(c);case 13:d=e.sent,(p={userId:d.userId,tinyId:s,hasVideo:u.video&&l.video,hasAuxiliary:u.auxiliary&&l.auxiliary,video:{framesDecoded:0},auxiliary:{framesDecoded:0}}).hasVideo&&(p.video.framesDecoded=d.video.framesDecoded),p.hasAuxiliary&&(p.auxiliary.framesDecoded=d.auxiliary.framesDecoded),n[d.userId]=p;case 18:e.next=5;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(3),o.e(e.t0);case 25:return e.prev=25,o.f(),e.finish(25);case 28:return e.abrupt("return",n);case 29:case"end":return e.stop()}}),e,this,[[3,22,25,28]])}))),function(){return o.apply(this,arguments)})},{key:"detectFPS",value:(n=i(r().mark((function e(){var t,n,o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getStats();case 2:if(t=e.sent,this.prevStats_){e.next=6;break}return this.prevStats_=t,e.abrupt("return");case 6:e.t0=r().keys(t);case 7:if((e.t1=e.t0()).done){e.next=17;break}if(n=e.t1.value,this.prevStats_[n]){e.next=11;break}return e.abrupt("continue",7);case 11:o=t[n].tinyId,a=this.client_.getMutedStates(),t[n].hasVideo&&this.prevStats_[n].hasVideo&&a.has(o)&&!a.get(o).videoMuted&&(i=t[n].video.framesDecoded-this.prevStats_[n].video.framesDecoded,this.handleRenderFreeze({userId:n,type:EM,fps:i})),t[n].hasAuxiliary&&this.prevStats_[n].hasAuxiliary&&(s=t[n].auxiliary.framesDecoded-this.prevStats_[n].auxiliary.framesDecoded,this.handleRenderFreeze({userId:n,type:jM,fps:s})),e.next=7;break;case 17:this.prevStats_=t;case 18:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handleRenderFreeze",value:(t=i(r().mark((function e(t){var n,o,a,i,s,c,l,u;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.userId,o=t.fps,a=t.type,i="".concat(n,"_").concat(a),s=this.renderFreezeMap_.get(i),o<=2?(c=_I(),s&&!s.isFreeze&&(s.freezeTimeline.push({startTime:c,endTime:void 0}),s.isFreeze=!0),s||this.renderFreezeMap_.set(i,{userId:n,type:a,isFreeze:!0,freezeTimeline:[{startTime:c,endTime:void 0}],renderFreezeTotal:0})):s&&s.isFreeze&&(s.isFreeze=!1,(l=s.freezeTimeline.pop()).endTime=_I(),u=l.endTime-l.startTime,s.freezeTimeline.push(l),s.renderFreezeTotal+=Math.min(5e3,u));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"handlePlayVideoStart",value:function(e){var t=e.stream;if(t.getClient()===this.client_&&t.isRemote()&&t.hasVideo()){var n="".concat(t.getUserId(),"_").concat(t.getType());this.remoteStreamMap_.has(n)||this.remoteStreamMap_.set(n,{isPlayingFired:!1})}}},{key:"handleVideoPlaying",value:function(e){var t=e.stream;if(t.isRemote()&&t.getClient()===this.client_){var n="".concat(t.getUserId(),"_").concat(t.getType());this.remoteStreamMap_.has(n)&&(this.remoteStreamMap_.get(n).isPlayingFired=!0)}}},{key:"getDataFreezeDuration",value:function(e){var t={dataFreeze:0,count:0},n=this.dataFreezeMap_.get(e);if(n){if(n.isFreezing()){var r=n.durationItemList[n.durationItemList.length-1];r.stop(),r.getDuration()<500&&n.durationItemList.pop()}t.dataFreeze=this.getTotalDuration(n.durationItemList),t.count=n.durationItemList.length}return t}},{key:"getRenderFreezeDuration",value:function(e){var t=this.renderFreezeMap_.get(e),n=0,r=0;if(t)if(t.isFreeze){var o=_I()-t.freezeTimeline[t.freezeTimeline.length-1].startTime;n=t.renderFreezeTotal+Math.min(o,5e3),r=t.freezeTimeline.length}else n=t.renderFreezeTotal;return{renderFreeze:n,count:r}}},{key:"getMonitorFreeze",value:function(){return this.monitorFreezeData_}},{key:"isBlackStream",value:function(e){return!!this.remoteStreamMap_.has(e)&&!this.remoteStreamMap_.get(e).isPlayingFired}},{key:"resetMonitor",value:function(){this.monitorFreezeData_.clear()}}]),e}(),Zq=l((function e(t){s(this,e),this.userId=t.userId,this.tinyId=t.tinyId,this.role=t.role===MM?CM:wM})),eW={exports:{}};!function(e){!function(t){function n(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function r(e,t,r,o,a,i){return n((s=n(n(t,e),n(o,i)))<<(c=a)|s>>>32-c,r);var s,c}function o(e,t,n,o,a,i,s){return r(t&n|~t&o,e,t,a,i,s)}function a(e,t,n,o,a,i,s){return r(t&o|n&~o,e,t,a,i,s)}function i(e,t,n,o,a,i,s){return r(t^n^o,e,t,a,i,s)}function s(e,t,n,o,a,i,s){return r(n^(t|~o),e,t,a,i,s)}function c(e,t){var r,c,l,u,d;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var p=1732584193,f=-271733879,h=-1732584194,m=271733878;for(r=0;r<e.length;r+=16)c=p,l=f,u=h,d=m,p=o(p,f,h,m,e[r],7,-680876936),m=o(m,p,f,h,e[r+1],12,-389564586),h=o(h,m,p,f,e[r+2],17,606105819),f=o(f,h,m,p,e[r+3],22,-1044525330),p=o(p,f,h,m,e[r+4],7,-176418897),m=o(m,p,f,h,e[r+5],12,1200080426),h=o(h,m,p,f,e[r+6],17,-1473231341),f=o(f,h,m,p,e[r+7],22,-45705983),p=o(p,f,h,m,e[r+8],7,1770035416),m=o(m,p,f,h,e[r+9],12,-1958414417),h=o(h,m,p,f,e[r+10],17,-42063),f=o(f,h,m,p,e[r+11],22,-1990404162),p=o(p,f,h,m,e[r+12],7,1804603682),m=o(m,p,f,h,e[r+13],12,-40341101),h=o(h,m,p,f,e[r+14],17,-1502002290),p=a(p,f=o(f,h,m,p,e[r+15],22,1236535329),h,m,e[r+1],5,-165796510),m=a(m,p,f,h,e[r+6],9,-1069501632),h=a(h,m,p,f,e[r+11],14,643717713),f=a(f,h,m,p,e[r],20,-373897302),p=a(p,f,h,m,e[r+5],5,-701558691),m=a(m,p,f,h,e[r+10],9,38016083),h=a(h,m,p,f,e[r+15],14,-660478335),f=a(f,h,m,p,e[r+4],20,-405537848),p=a(p,f,h,m,e[r+9],5,568446438),m=a(m,p,f,h,e[r+14],9,-1019803690),h=a(h,m,p,f,e[r+3],14,-187363961),f=a(f,h,m,p,e[r+8],20,1163531501),p=a(p,f,h,m,e[r+13],5,-1444681467),m=a(m,p,f,h,e[r+2],9,-51403784),h=a(h,m,p,f,e[r+7],14,1735328473),p=i(p,f=a(f,h,m,p,e[r+12],20,-1926607734),h,m,e[r+5],4,-378558),m=i(m,p,f,h,e[r+8],11,-2022574463),h=i(h,m,p,f,e[r+11],16,1839030562),f=i(f,h,m,p,e[r+14],23,-35309556),p=i(p,f,h,m,e[r+1],4,-1530992060),m=i(m,p,f,h,e[r+4],11,1272893353),h=i(h,m,p,f,e[r+7],16,-155497632),f=i(f,h,m,p,e[r+10],23,-1094730640),p=i(p,f,h,m,e[r+13],4,681279174),m=i(m,p,f,h,e[r],11,-358537222),h=i(h,m,p,f,e[r+3],16,-722521979),f=i(f,h,m,p,e[r+6],23,76029189),p=i(p,f,h,m,e[r+9],4,-640364487),m=i(m,p,f,h,e[r+12],11,-421815835),h=i(h,m,p,f,e[r+15],16,530742520),p=s(p,f=i(f,h,m,p,e[r+2],23,-995338651),h,m,e[r],6,-198630844),m=s(m,p,f,h,e[r+7],10,1126891415),h=s(h,m,p,f,e[r+14],15,-1416354905),f=s(f,h,m,p,e[r+5],21,-57434055),p=s(p,f,h,m,e[r+12],6,1700485571),m=s(m,p,f,h,e[r+3],10,-1894986606),h=s(h,m,p,f,e[r+10],15,-1051523),f=s(f,h,m,p,e[r+1],21,-2054922799),p=s(p,f,h,m,e[r+8],6,1873313359),m=s(m,p,f,h,e[r+15],10,-30611744),h=s(h,m,p,f,e[r+6],15,-1560198380),f=s(f,h,m,p,e[r+13],21,1309151649),p=s(p,f,h,m,e[r+4],6,-145523070),m=s(m,p,f,h,e[r+11],10,-1120210379),h=s(h,m,p,f,e[r+2],15,718787259),f=s(f,h,m,p,e[r+9],21,-343485551),p=n(p,c),f=n(f,l),h=n(h,u),m=n(m,d);return[p,f,h,m]}function l(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function u(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function d(e){var t,n,r="0123456789abcdef",o="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),o+=r.charAt(t>>>4&15)+r.charAt(15&t);return o}function p(e){return unescape(encodeURIComponent(e))}function f(e){return function(e){return l(c(u(e),8*e.length))}(p(e))}function h(e,t){return function(e,t){var n,r,o=u(e),a=[],i=[];for(a[15]=i[15]=void 0,o.length>16&&(o=c(o,8*e.length)),n=0;n<16;n+=1)a[n]=909522486^o[n],i[n]=1549556828^o[n];return r=c(a.concat(u(t)),512+8*t.length),l(c(i.concat(r),640))}(p(e),p(t))}function m(e,t,n){return t?n?h(t,e):d(h(t,e)):n?f(e):d(f(e))}e.exports?e.exports=m:t.md5=m}(T)}(eW);var tW,nW,rW,oW=eW.exports,aW=function(){function e(t){s(this,e),this.client_=t.client,this.signalChannel_=t.signalChannel,this.log_=RE.createLogger({id:"mix|"+this.client_.getUserId(),userId:t.client.getUserId(),sdkAppId:t.client.getSDKAppId()}),this.isMixing_=!1,this.config_=null,this.data_=null,this.remoteStreamMap_=new Map,this.installEvents()}var t,n,o,a;return l(e,[{key:"isPresetLayoutMode",get:function(){return this.config_&&this.config_.mode===yk.PRESET_LAYOUT}},{key:"installEvents",value:function(){NI.on(cE,this.onStreamSubscribed,this),NI.on(lE,this.onStreamUnsubscribed,this),this.client_.on("stream-removed",this.onStreamRemoved,this)}},{key:"uninstallEvents",value:function(){NI.off(cE,this.onStreamSubscribed,this),NI.off(lE,this.onStreamUnsubscribed,this),this.client_.off("stream-removed",this.onStreamRemoved,this)}},{key:"reset",value:function(){this.uninstallEvents(),this.isMixing_=!1,this.config_=null}},{key:"onStreamSubscribed",value:function(e){var t=e.client,n=e.stream;t===this.client_&&(this.remoteStreamMap_.set(n.getId(),{remoteStream:n,isUsed:!1}),this.isMixing_&&this.hasAvailablePlaceHolder()&&this.startMixTranscode(this.config_))}},{key:"onStreamUnsubscribed",value:function(e){var t=e.client,n=e.stream;t===this.client_&&this.onStreamRemoved({stream:n})}},{key:"onStreamRemoved",value:function(e){var t=e.stream;if(this.remoteStreamMap_.has(t.getId())){var n=this.remoteStreamMap_.get(t.getId()).isUsed;this.remoteStreamMap_.delete(t.getId()),this.isMixing_&&this.isPresetLayoutMode&&n&&this.startMixTranscode(this.config_)}}},{key:"startMixTranscode",value:(a=i(r().mark((function e(t){var n,o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.resetIsUsedFlag(),this.config_=t,n=this.getInputParam(t,this.remoteStreamMap_),o=this.getOutputParam(t),a=this.getOutputSessionId({config:t,roomId:this.client_.getRoomId(),userId:this.client_.getUserId()}),!this.isMixing_||!this.data_||a===this.data_.outputSessionId){e.next=10;break}return this.log_.info("startMixTranscode() streamId changed, stop mixing before start"),e.next=10,this.doStopMixTranscode();case 10:return e.next=12,this.doStartMixTranscode({outputSessionId:a,inputParam:n,outputParam:o});case 12:e.next=18;break;case 14:throw e.prev=14,e.t0=e.catch(0),this.resetIsUsedFlag(),e.t0;case 18:case"end":return e.stop()}}),e,this,[[0,14]])}))),function(e){return a.apply(this,arguments)})},{key:"doStartMixTranscode",value:(o=i(r().mark((function e(t){var n,o,a,i,s,c,l,u;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.outputSessionId,o=t.inputParam,a=t.outputParam,i={roomId:String(this.client_.getRoomId()),mcuRequestTime:Date.now(),outputSessionId:n,inputParam:o,outputParam:a},this.data_=i,this.log_.info("startMixTranscode: ".concat(JSON.stringify(i))),this.isMixing_=!0,e.prev=5,e.next=8,this.signalChannel_.sendWaitForResponse({command:pD,data:i,timeout:5e3,responseCommand:Jj.START_MIX_TRANSCODE_RES,commandDesc:"startMixTranscode"});case 8:if(s=e.sent,c=s.data,l=c.code,u=c.message,0===l){e.next=15;break}throw-102083===l&&(u="Please enable relayed-push in ".concat(Jk," and try later, refer to ").concat(Qk,"tutorial-26-advanced-publish-cdn-stream.html")),this.log_.error("startMixTranscode failed, errCode: ".concat(l," errMsg: ").concat(u)),this.isMixing_=!1,new OD({code:yD.START_MIX_TRANSCODE_FAILED,message:eI({key:Bw,data:{message:u},link:{className:"Client",fnName:"startMixTranscode"}})});case 15:e.next=21;break;case 17:throw e.prev=17,e.t0=e.catch(5),this.isMixing_=!1,e.t0;case 21:case"end":return e.stop()}}),e,this,[[5,17]])}))),function(e){return o.apply(this,arguments)})},{key:"reStartMixTranscode",value:function(){this.isMixing_&&this.startMixTranscode(this.config_)}},{key:"stopMixTranscode",value:(n=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isMixing_){e.next=2;break}throw new OD({code:yD.INVALID_OPERATION,message:eI({key:Gw})});case 2:return e.next=4,this.doStopMixTranscode();case 4:this.resetIsUsedFlag();case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"doStopMixTranscode",value:(t=i(r().mark((function e(){var t,n,o,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={mcuRequestTime:Date.now(),outputSessionId:this.data_.outputSessionId,streamType:this.data_.outputParam.streamType},this.log_.info("stopMixTranscode: ".concat(JSON.stringify(t))),e.next=4,this.signalChannel_.sendWaitForResponse({command:fD,data:t,timeout:5e3,responseCommand:Jj.STOP_MIX_TRANSCODE_RES,commandDesc:"stopMixTranscode"});case 4:if(n=e.sent,o=n.data,a=o.code,i=o.message,0!==a){e.next=10;break}this.isMixing_=!1,e.next=12;break;case 10:throw this.log_.error("stopMixTranscode failed, errCode: ".concat(a," errMsg: ").concat(i)),new OD({code:yD.STOP_MIX_TRANSCODE_FAILED,message:eI({key:Fw,data:{message:i},link:{className:"Client",fnName:"stopMixTranscode"}})});case 12:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getOutputSessionId",value:function(e){var t=e.config,n=e.userId,r=e.roomId;return uI(t.streamId)&&t.streamId.length>0?t.streamId:oW("".concat(r,"_").concat(n,"_main"))}},{key:"getInputParam",value:function(e,t){var n=this,r=e.mixUsers.map((function(e){return{userId:e.userId,roomId:String(e.roomId||n.client_.getRoomId()),width:e.width||0,height:e.height||0,locationX:e.locationX||0,locationY:e.locationY||0,zOrder:e.zOrder,streamType:lI(e.streamType)||e.streamType!==jM?0:1,inputType:e.pureAudio?Mk.IT_PURE_AUDIO:Mk.IT_AUDIO_VIDEO,renderMode:e.renderMode||0}}));return e.mode===yk.PRESET_LAYOUT&&(r.forEach((function(e){if(e.userId===Ok.REMOTE){var n=M(t.values()).find((function(e){return!e.isUsed}));n&&(e.userId=n.remoteStream.getUserId(),e.streamType=n.remoteStream.getType()===jM?1:0,n.isUsed=!0)}})),r=r.filter((function(e){return e.userId!==Ok.REMOTE}))),r}},{key:"getOutputParam",value:function(e){var t=e.streamId||"";return{streamId:t,streamType:t.length>0?1:0,width:lI(e.videoWidth)?640:e.videoWidth,height:lI(e.videoHeight)?480:e.videoHeight,videoBps:e.videoBitrate||0,fps:e.videoFramerate||15,gop:e.videoGOP||2,audioSampleRate:e.audioSampleRate||48e3,audioBps:e.audioBitrate||64,audioChannels:e.audioChannels||1,backgroundColor:e.backgroundColor||0,backgroundImg:e.backgroundImage||"",extraInfo:"",videoCodec:2,audioCodec:0}}},{key:"hasAvailablePlaceHolder",value:function(){return!!this.isPresetLayoutMode&&this.data_.inputParam.length!==this.config_.mixUsers.length}},{key:"resetIsUsedFlag",value:function(){this.remoteStreamMap_.forEach((function(e){return e.isUsed=!1}))}}]),e}(),iW=function(){function e(t){s(this,e),this.client_=t.client,this.signalChannel_=t.signalChannel,this.publishTencentMainStreamObj_={params_:null,streamId_:void 0,isPublishing_:!1},this.publishTencentAuxStreamObj_={params_:null,streamId_:void 0,isPublishing_:!1},this.publishGivenCDNData_=null,this.isPublishingGivenCDN_=!1}var t,n,o,a,c,u;return l(e,[{key:"setSignalChannel",value:function(e){this.signalChannel_=e.signalChannel}},{key:"getIsPublishingTencentCDN",value:function(){return this.publishTencentMainStreamObj_.isPublishing_||this.publishTencentAuxStreamObj_.isPublishing_}},{key:"getIsPublishingGivenCDN",value:function(){return this.isPublishingGivenCDN_}},{key:"generatePublishCDNStreamId",value:function(e,t){if(!e){var n="".concat(this.client_.getRoomId(),"_").concat(this.client_.getUserId(),"_").concat(t);return/^[A-Za-z\d_-]*$/.test(n)||(n=oW(n)),"".concat(this.client_.getSDKAppId(),"_").concat(n)}return e}},{key:"generatePublishCDNSessionId",value:function(e){return oW("".concat(this.client_.getRoomId(),"_").concat(this.client_.getUserId(),"_").concat(e))}},{key:"startPublishTencentCDN",value:(u=i(r().mark((function e(t){var n,o,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.streamType===DO?(this.publishTencentAuxStreamObj_.params_=t,this.publishTencentAuxStreamObj_.isPublishing_=!0):(this.publishTencentMainStreamObj_.params_=t,this.publishTencentMainStreamObj_.isPublishing_=!0),this.client_.isJoined_){e.next=3;break}return e.abrupt("return");case 3:return n=this.generatePublishCDNStreamId(t.streamId,t.streamType),o=this.generatePublishCDNSessionId(t.streamType),a=t.streamType===DO?1:0,i={requestTime:Date.now(),sessionId:o,streamId:n,streamType:a},e.next=9,this.doStartPublishTencentCDN(i,t.streamType);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"doStartPublishTencentCDN",value:(c=i(r().mark((function e(t,n){var o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,RE.info("startPublishTencentCDN: "+JSON.stringify(t)),e.next=4,this.signalChannel_.sendWaitForResponseWithRetry({command:cD,data:t,timeout:2e3,responseCommand:Jj.START_PUBLISH_TENCENT_CDN_RES,commandDesc:"startPublishCDNStream",retries:2});case 4:if(o=e.sent,a=o.data,i=a.code,s=a.message,0!==i){e.next=10;break}n===DO?this.publishTencentAuxStreamObj_.streamId_=t.streamId:this.publishTencentMainStreamObj_.streamId_=t.streamId,e.next=14;break;case 10:throw n===DO?this.publishTencentAuxStreamObj_.isPublishing_=!1:this.publishTencentMainStreamObj_.isPublishing_=!1,-102083===i&&(s="Please enable relayed-push in ".concat(Jk," and try later, refer to ").concat(Qk,"tutorial-26-advanced-publish-cdn-stream.html")),RE.error("startPublishTencentCDN failed, errCode: ".concat(i,", errMsg: ").concat(s)),new OD({code:yD.START_PUBLISH_CDN_FAILED,message:eI({key:pw,data:{message:s},link:{className:"Client",fnName:"startPublishCDNStream"}})});case 14:e.next=20;break;case 16:throw e.prev=16,e.t0=e.catch(0),n===DO?this.publishTencentAuxStreamObj_.isPublishing_=!1:this.publishTencentMainStreamObj_.isPublishing_=!1,e.t0;case 20:case"end":return e.stop()}}),e,this,[[0,16]])}))),function(e,t){return c.apply(this,arguments)})},{key:"resetPublishTencentParam",value:function(e){e===qO&&(this.publishTencentMainStreamObj_={params_:null,streamId_:void 0,isPublishing_:!1}),e===DO&&(this.publishTencentAuxStreamObj_={params_:null,streamId_:void 0,isPublishing_:!1})}},{key:"stopPublishTencentCDN",value:(a=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.client_.isJoined_){e.next=4;break}return this.resetPublishTencentParam(qO),this.resetPublishTencentParam(DO),e.abrupt("return");case 4:if(!this.publishTencentMainStreamObj_.isPublishing_){e.next=7;break}return e.next=7,this.doStopPublishTencentCDN(qO);case 7:if(!this.publishTencentAuxStreamObj_.isPublishing_){e.next=10;break}return e.next=10,this.doStopPublishTencentCDN(DO);case 10:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"doStopPublishTencentCDN",value:(o=i(r().mark((function e(t){var n,o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={requestTime:Date.now(),sessionId:oW("".concat(this.client_.getRoomId(),"_").concat(this.client_.getUserId(),"_").concat(t))},RE.info("stopPublishTencentCDN: "+JSON.stringify(n)),e.next=4,this.signalChannel_.sendWaitForResponse({command:lD,data:n,timeout:5e3,responseCommand:Jj.STOP_PUBLISH_TENCENT_CDN_RES,commandDesc:"stopPublishCDNStream"});case 4:if(o=e.sent,a=o.data,i=a.code,s=a.message,0!==i){e.next=10;break}this.resetPublishTencentParam(t),e.next=17;break;case 10:if(-102069!==i){e.next=15;break}RE.warn("stopPublishTencentCDN failed, can not stopPublishTencentCDN in auto relayed-push mode"),this.resetPublishTencentParam(t),e.next=17;break;case 15:throw RE.error("stopPublishTencentCDN failed, errCode: ".concat(i," errMsg: ").concat(s)),new OD({code:yD.STOP_PUBLISH_CDN_FAILED,message:eI({key:fw,data:{message:s},link:{className:"Client",fnName:"stopPublishCDNStream"}})});case 17:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"startPublishGivenCDN",value:(n=i(r().mark((function e(t){var n,o,a,i,s,c;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.streamType===qO?this.publishTencentMainStreamObj_.streamId_:this.publishTencentAuxStreamObj_.streamId_,o={pushRequestTime:Date.now(),pushAppId:t.appId,pushBizId:t.bizId,pushCdnUrl:t.url,pushStreamType:t.streamType,pushStreamId:n},RE.info("startPublishGivenCDN: "+JSON.stringify(o)),this.publishGivenCDNData_=o,this.isPublishingGivenCDN_=!0,this.client_.isJoined_){e.next=7;break}return e.abrupt("return");case 7:return e.prev=7,e.next=10,this.signalChannel_.sendWaitForResponse({command:uD,data:o,timeout:5e3,responseCommand:Jj.START_PUBLISH_GIVEN_CDN_RES,commandDesc:"startPublishCDNStream"});case 10:if(a=e.sent,i=a.data,s=i.code,c=i.message,0===s){e.next=17;break}throw RE.error("startPublishGivenCDN failed, errCode: ".concat(s,", errMsg: ").concat(c)),this.publishGivenCDNData_=null,this.isPublishingGivenCDN_=!1,new OD({code:yD.START_PUBLISH_CDN_FAILED,message:eI({key:pw,data:{message:c},link:{className:"Client",fnName:"startPublishCDNStream"}})});case 17:e.next=24;break;case 19:throw e.prev=19,e.t0=e.catch(7),this.publishGivenCDNData_=null,this.isPublishingGivenCDN_=!1,e.t0;case 24:case"end":return e.stop()}}),e,this,[[7,19]])}))),function(e){return n.apply(this,arguments)})},{key:"stopPublishGivenCDN",value:(t=i(r().mark((function e(){var t,n,o,a,i,s,c,l,u,d;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.client_.isJoined_){e.next=4;break}return this.publishGivenCDNData_=null,this.isPublishingGivenCDN_=!1,e.abrupt("return");case 4:return t=this.publishGivenCDNData_,n=t.pushAppId,o=t.pushBizId,a=t.pushCdnUrl,i=t.pushStreamType,s={pushRequestTime:Date.now(),pushAppId:n,pushBizId:o,pushCdnUrl:a,pushStreamType:i},RE.info("stopPublishGivenCDN: "+JSON.stringify(s)),e.next=9,this.signalChannel_.sendWaitForResponse({command:dD,data:s,timeout:5e3,responseCommand:Jj.STOP_PUBLISH_GIVEN_CDN_RES,commandDesc:"stopPublishCDNStream"});case 9:if(c=e.sent,l=c.data,u=l.code,d=l.message,0!==u){e.next=16;break}this.publishGivenCDNData_=null,this.isPublishingGivenCDN_=!1,e.next=18;break;case 16:throw RE.error("stopPublishGivenCDN failed, errCode: ".concat(u," errMsg: ").concat(d)),new OD({code:yD.STOP_PUBLISH_CDN_FAILED,message:eI({key:fw,data:{message:d},link:{className:"Client",fnName:"stopPublishCDNStream"}})});case 18:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"handleCDNConfigForJoinData",value:function(e){var t,n=e;if(this.publishTencentMainStreamObj_.isPublishing_||this.publishTencentAuxStreamObj_.isPublishing_){var r={};uI(n)&&(r=JSON.parse(n)),r.Str_uc_params||(r.Str_uc_params={}),this.publishTencentMainStreamObj_.isPublishing_&&(this.publishTencentMainStreamObj_.streamId_?r.Str_uc_params.userdefine_streamid_main=this.publishTencentMainStreamObj_.streamId_:this.publishTencentMainStreamObj_.params_&&(r.Str_uc_params.userdefine_streamid_main=this.generatePublishCDNStreamId(this.publishTencentMainStreamObj_.params_.streamId,qO))),this.publishTencentAuxStreamObj_.isPublishing_&&(this.publishTencentAuxStreamObj_.streamId_?r.Str_uc_params.userdefine_streamid_aux=this.publishTencentAuxStreamObj_.streamId_:this.publishTencentAuxStreamObj_.params_&&(r.Str_uc_params.userdefine_streamid_aux=this.generatePublishCDNStreamId(this.publishTencentAuxStreamObj_.params_.streamId,DO))),n=JSON.stringify(r)}if(this.isPublishingGivenCDN_){var o=this.publishGivenCDNData_,a=o.pushAppId,i=o.pushBizId,s=o.pushCdnUrl,c=o.pushStreamType,l=o.pushStreamId;t={pushRequestTime:Date.now(),pushAppId:a,pushBizId:i,pushCdnUrl:s,pushStreamType:c,pushStreamId:l}}return{bussinessInfo:n,pushUserCdnInfo:t}}},{key:"reset",value:function(){this.resetPublishTencentParam(qO),this.resetPublishTencentParam(DO),this.publishGivenCDNData_=null,this.isPublishingGivenCDN_=!1}}]),e}(),sW=function(){function e(t){s(this,e),this.client_=t.client,this.durationMap_=new Map,this.installEvents()}return l(e,[{key:"installEvents",value:function(){NI.on(cE,this.handleSubscribed,this),NI.on(aE,this.handleStreamTrackUpdated,this),NI.on(lE,this.handleStreamStopped,this),NI.on(dE,this.handleStreamStopped,this)}},{key:"uninstallEvents",value:function(){NI.off(cE,this.handleSubscribed,this),NI.off(aE,this.handleStreamTrackUpdated,this),NI.off(lE,this.handleStreamStopped,this),NI.off(dE,this.handleStreamStopped,this)}},{key:"handleSubscribed",value:function(e){var t=e.client,n=e.stream;if(t===this.client_){var r=n.getUserId(),o=n.getType(),a="".concat(r,"_").concat(o);if(n.hasAudio())if(n.isMainAudioSubscribed){var i=new Xq,s=this.durationMap_.get(a);s?this.isRecording(s.audio)||s.audio.push(i):this.durationMap_.set(a,{userId:r,type:o,audio:[i],video:[]})}else this.stopDurationItem(a,wO);if(n.hasVideo())if(o===EM&&n.isMainVideoSubscribed||o===jM&&n.isAuxVideoSubscribed){var c=new Xq,l=this.durationMap_.get(a);l?this.isRecording(l.video)||l.video.push(c):this.durationMap_.set(a,{userId:r,type:o,audio:[],video:[c]})}else this.stopDurationItem(a,SO)}}},{key:"handleStreamStopped",value:function(e){var t=e.client,n=e.stream;if(this.clientHitTest(t)){var r=n.getUserId(),o=n.getType(),a="".concat(r,"_").concat(o);this.stopDurationItem(a,wO),this.stopDurationItem(a,SO)}}},{key:"handleStreamTrackUpdated",value:function(e){var t=e.client,n=e.userId,r=e.tinyId,o=e.kind,a=e.action;if(this.clientHitTest(t)&&this.client_.getConnections().has(r)){var i=o===jO?o:EM,s="".concat(n,"_").concat(i);if(a===Ik.ADD){var c=this.client_.getConnections().get(r).getSubscribeState();if(o===wO&&!c.audio||o===SO&&!c.video||o===jO&&!c.auxiliary)return;var l=new Xq,u=this.durationMap_.get(s);u?(o!==wO||this.isRecording(u.audio)||u.audio.push(l),o===wO||this.isRecording(u.video)||u.video.push(l)):this.durationMap_.set(s,{userId:n,type:i,audio:o===wO?[l]:[],video:o===wO?[]:[l]})}else this.stopDurationItem(s,o===wO?wO:SO)}}},{key:"isRecording",value:function(e){return e.findIndex((function(e){return 0===e.endTime}))>=0}},{key:"stopDurationItem",value:function(e,t){if(this.durationMap_.has(e)){var n=this.durationMap_.get(e)[t].find((function(e){return 0===e.endTime}));n&&n.stop()}}},{key:"clientHitTest",value:function(e){return this.client_===e}},{key:"getDuration",value:function(e,t){return this.durationMap_.has(e)?this.durationMap_.get(e)[t].reduce((function(e,t){return e+t.getDuration()}),0):0}},{key:"getDurationMap",value:function(){return this.durationMap_}},{key:"reset",value:function(){this.durationMap_.clear()}},{key:"destroy",value:function(){this.client_=null,this.uninstallEvents()}}]),e}();function cW(){return function(e,t,n){var o=n.value,a=new Set;return n.value=i(r().mark((function e(){var n,i,s,c,l=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.has(this)){e.next=2;break}throw new OD({code:yD.INVALID_OPERATION,message:eI({key:wC,data:{name:t}})});case 2:for(e.prev=2,a.add(this),n=l.length,i=new Array(n),s=0;s<n;s++)i[s]=l[s];return e.next=7,o.apply(this,i);case 7:return c=e.sent,a.delete(this),e.abrupt("return",c);case 12:throw e.prev=12,e.t0=e.catch(2),a.delete(this),e.t0;case 16:case"end":return e.stop()}}),e,this,[[2,12]])}))),n}}var lW,uW,dW,pW,fW,hW,mW,vW,gW,_W,bW,yW,OW,MW,kW,CW,wW,SW,TW,IW,EW,jW,DW,LW,AW,NW,RW,xW,PW,UW,VW,BW,FW,GW,HW,YW,zW,qW,WW,KW,$W,JW,XW,QW=(tW=qY({name:"options",type:Tk,required:!0,properties:{roomId:{type:kk,required:!0},userId:{type:kk,required:!1}}}),nW=qY({name:"options",type:Tk,required:!0,properties:{updateList:{type:Sk,required:!0,arrayItem:{require:!0,type:Tk,properties:{roomId:{required:!0,type:kk},userId:{required:!1,type:kk},muteAudio:{type:wk},muteVideo:{type:wk},muteAuxiliary:{type:wk}}},validate:function(e){if(e.find((function(e){return e.userId}))&&e.find((function(e){return!e.userId})))throw new OD({code:yD.INVALID_PARAMETER,message:"you can not update both userId and all"})}}}}),rW=function(){function e(){s(this,e),this.crossRoomSeq=0}var t,n,o;return l(e,[{key:"call",value:function(e,t){return cI(this[e])?this[e](t):Promise.reject(new OD({code:yD.INVALID_PARAMETER,message:eI({key:vS,data:{name:e}})}))}},{key:"updatePrivateMapKey",value:function(e){var t=e.privateMapKey;return e.client.setProperty("privateMapKey",t),Promise.resolve()}},{key:"connectOtherRoom",value:(o=i(r().mark((function e(t){var n,o,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.client,o=t.roomId,a=t.userId,n.signalChannel_){e.next=3;break}return e.abrupt("return",Promise.reject(new OD({code:yD.INVALID_OPERATION,message:"you did not joined room"})));case 3:return e.next=5,n.signalChannel_.sendWaitForResponseWithRetry({command:gD,responseCommand:Jj.CONNECT_OTHER_ROOM_RES,data:{roomId:o,userId:a,localRoomId:a?void 0:n.getRoomId()},retries:3});case 5:if(0===(i=e.sent).data.code){e.next=8;break}throw new OD({code:i.data.code,message:i.data.message});case 8:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"updateOtherRoomForwardMode",value:(n=i(r().mark((function e(t){var n,o,a,i,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.client,a=t.updateList,o.signalChannel_){e.next=3;break}return e.abrupt("return",Promise.reject(new OD({code:yD.INVALID_OPERATION,message:"you did not joined room"})));case 3:return i=a.find((function(e){return e.userId}))?0:1,e.next=6,o.signalChannel_.sendWaitForResponseWithRetry({command:_D,responseCommand:Jj.UPDATE_OTHER_ROOM_FORWARD_MODE_RES,data:{seq:++this.crossRoomSeq,operationType:i,updateList:a.map((function(e){return{roomId:e.roomId,userId:e.userId,muteAudio:e.muteAudio,muteVideo:e.muteVideo,muteSubStream:e.muteAuxiliary}}))},retries:3});case 6:if(!(s=e.sent).data.data.expectSeq){e.next=10;break}return this.crossRoomSeq=s.data.data.expectSeq,e.abrupt("return",this.updateOtherRoomForwardMode({client:o,updateList:a}));case 10:if(0===s.data.code){e.next=14;break}throw new OD({code:s.data.code,message:s.data.message});case 14:if(!((null===(n=s.data.errorList)||void 0===n?void 0:n.length)>0)){e.next=16;break}throw new OD({code:yD.UNKNOWN,message:s.data.errorList[0].message});case 16:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"disconnectOtherRoom",value:(t=i(r().mark((function e(t){var n,o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.client,o=t.roomId,n.signalChannel_){e.next=3;break}return e.abrupt("return",Promise.resolve());case 3:return e.next=5,n.signalChannel_.sendWaitForResponseWithRetry({command:bD,responseCommand:Jj.DISCONNECT_OTHER_ROOM_RES,data:{roomId:o,localRoomId:o?n.getRoomId():void 0},retries:3});case 5:if(0===(a=e.sent).data.code){e.next=8;break}throw new OD({code:a.data.code,message:a.data.message});case 8:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}(),S(rW.prototype,"connectOtherRoom",[tW],Object.getOwnPropertyDescriptor(rW.prototype,"connectOtherRoom"),rW.prototype),S(rW.prototype,"updateOtherRoomForwardMode",[nW],Object.getOwnPropertyDescriptor(rW.prototype,"updateOtherRoomForwardMode"),rW.prototype),rW),ZW=new QW,eK=(lW=cW(),uW=qY(YY.CLIENT.join),dW=tz({retries:1,timeout:0,onError:function(e,t,n){this.isUsingCachedSchedule_?(this.log_.warn("is using cached schedule, retry join"),LL(!0),this.reset(),t()):(NI.emit(VI,{client:this,error:e}),uL.logFailedEvent({userId:this.userId_,eventType:YM,error:e}),this.reset(),this.log_.error(e),n(e))}}),pW=cW(),fW=tz({retries:3}),hW=cW(),mW=qY.apply(void 0,M(YY.CLIENT.publish)),vW=dz(Hk),gW=cW(),_W=qY(YY.CLIENT.unpublish),bW=qY.apply(void 0,M(YY.CLIENT.subscribe)),yW=qY(YY.CLIENT.unsubscribe),OW=cW(),MW=qY(YY.CLIENT.switchRole),kW=dz(Hk),CW=qY(YY.CLIENT.startPublishCDNStream),wW=dz(Hk),SW=dz(Hk),TW=qY(YY.CLIENT.startMixTranscode),IW=dz(Hk),EW=dz(Hk),jW=dz(Hk),DW=dz(Hk),LW=dz(Hk),AW=dz(Hk),NW=dz(Hk),RW=zY.apply(void 0,M(YY.CLIENT.sendSEIMessage)),xW=dz(Hk),FW={timesInSecond:30,maxSizeInSecond:8e3,getSize:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[0].byteLength}},GW=FW.timesInSecond,HW=FW.maxSizeInSecond,YW=FW.getSize,PW=function(e,t,n){var r=n.value,o=new Map;return NI.on(XI,(function(e){var t=e.client;return o.delete(t)})),n.value=function(){var e=o.get(this);e||(e={callCountInSecond:0,timestamp:0,totalSizeInSecond:0},o.set(this,e)),0===e.timestamp?e.timestamp=Date.now():Date.now()-e.timestamp>1e3&&(e.timestamp=Date.now(),e.callCountInSecond=0,e.totalSizeInSecond=0);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];if(YW&&(e.totalSizeInSecond+=YW.apply(void 0,a)),0!==e.timestamp&&Date.now()-e.timestamp<1e3&&(e.callCountInSecond>=GW||e.totalSizeInSecond>HW))throw new OD({code:yD.INVALID_OPERATION,message:eI({key:wS,data:{isTimes:e.callCountInSecond>=GW,isSize:e.totalSizeInSecond>HW,name:t,timesInSecond:GW,maxSizeInSecond:HW}})});return e.callCountInSecond++,r.apply(this,a)},n},UW=dz(Hk),VW=dz(Hk),BW=function(){function e(t){var n,r;s(this,e),this.name_=Hk,this.mode_=t.mode,this.sdpSemantics_=bk,lI(t.sdpSemantics)?function(){var e;if(lI(window.RTCRtpTransceiver))return!1;if(!("currentDirection"in RTCRtpTransceiver.prototype))return!1;var t=null,n=!1;try{(t=new RTCPeerConnection({sdpSemantics:_k})).addTransceiver(wO),n=!0}catch(aK){}return null===(e=t)||void 0===e||e.close(),n}()&&(this.sdpSemantics_=_k):this.sdpSemantics_=t.sdpSemantics,this.sdkAppId_=t.sdkAppId,this.userId_=t.userId,this.log_=RE.createLogger({id:"c".concat(t.seq,"|").concat(this.userId_),userId:this.userId_,sdkAppId:this.sdkAppId_}),this.userSig_=t.userSig,this.roomId_=0,this.useStringRoomId_=t.useStringRoomId||!1,this.pureAudioPushMode_=null,this.version_=t.version,this.log_.info("using sdpSemantics: "+this.sdpSemantics_),this.signalChannel_=null,this.role_=CM,this.privateMapKey_="",this.tinyId_=0,this.env_="",this.proxy_=null,this.unifiedProxy_=null,this.connections_=new Map,this.mutedStates_=new Map,this.userMap_=new Map,this.syncUserListInterval_=-1,this.localStream_=null,this.localAuxStream_=null,this.uplinkConnection_=null,this.emitter_=TI(new AI,this.name_),this.isJoined_=!1,this.heartbeat_=-1,this.lastHeartBeatTime_=-1,this.stats_=new sN(this),this.joinTimeout_=-1,this.changeBigSmallRecords_=new Map,this.networkQuality_=null,this.badCaseDetector_=null,this.networkType_=oI(),this.autoSubscribe_=!!lI(t.autoSubscribe)||t.autoSubscribe,this.joinedTimestamp_=0,this.joinOptions_={},this.basis_=(r={browser:XT().name+"/"+XT().version,os:HA(),displayResolution:YA(),isScreenShareSupported:DA(),isWebRTCSupported:OA(),isGetUserMediaSupported:zA(),isWebAudioSupported:qA(),isWebSocketsSupported:"WebSocket"in window&&2===window.WebSocket.CLOSING,isWebCodecSupported:(n={AudioDecoder:!1,AudioEncoder:!1,VideoDecoder:!1,VideoEncoder:!1,ImageDecoder:!1},lI(window.AudioDecoder)||(n.AudioDecoder=!0),lI(window.AudioEncoder)||(n.AudioEncoder=!0),lI(window.VideoDecoder)||(n.VideoDecoder=!0),lI(window.VideoEncoder)||(n.VideoEncoder=!0),lI(window.ImageDecoder)||(n.ImageDecoder=!0),n),isMediaSessionSupported:"mediaSession"in navigator&&!lI(navigator.mediaSession.setActionHandler),isWebTransportSupported:!lI(window.WebTransport)},navigator.userAgent.includes("miniProgram")&&(r.browser="mini/".concat(r.browser)),r),this.initBussinessInfo_(t),this.publishedCDN_=!1,this.publishCDNData_=null,this.mixedMCU_=!1,this.mixTranscodeData_=null,this.checkSystemResult_=null,this.enableAudioVolumeEvaluation_=!1,this.audioVolumeIntervalId_=null,this.mixTranscodeManager_=null,this.publishCDNManager_=new iW({client:this}),this.keyPointManager_=new lz({client:this,frameWorkType:t.frameWorkType,component:t.component}),this.isPublishing_=!1,this.isEnableSmallStream_=!1,this.smallStreamConfig_={bitrate:100,frameRate:15,height:120,width:160},this.turnServers_=[],this.iceTransportPolicy_=t.iceTransportPolicy,this.schedule_={domains:null,iceServers:null,iceTransportPolicy:null,trtcCapability:null},this.isUsingCachedSchedule_=!1,this.enableAutoPlayDialog_=!!lI(t.enableAutoPlayDialog)||t.enableAutoPlayDialog,this.enableMultiAuxStream_=!lI(t.enableMultiAuxStream)&&t.enableMultiAuxStream,this.signalInfo_={},this.enableSEI_=!lI(t.enableSEI)&&t.enableSEI,this.isDestroyed_=!1}var t,o,a,c,u,d,p,f,h,m,v,g,_,b,y,k,C,S,T,I,E,j,D,L,A,N,R;return l(e,[{key:"initBussinessInfo_",value:function(e){this.bussinessInfo_=e.bussinessInfo;var t={};if(uI(e.bussinessInfo)&&(t=JSON.parse(e.bussinessInfo)),!lI(e.pureAudioPushMode)){if(!Number.isInteger(Number(e.pureAudioPushMode)))throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:VC})});this.pureAudioPushMode_=e.pureAudioPushMode,t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.pure_audio_push_mod=this.pureAudioPushMode_}if(!lI(e.streamId)){if(!(uI(e.streamId)&&String(e.streamId)&&String(e.streamId).length<=64))throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:BC})});t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.userdefine_streamid_main=e.streamId}if(!lI(e.userDefineRecordId)){if(null===e.userDefineRecordId.match(/^[A-Za-z0-9_-]{1,64}$/gi))throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:FC})});t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.userdefine_record_id=e.userDefineRecordId}if(!lI(e.userDefinePushArgs)){if(!(uI(e.userDefinePushArgs)&&String(e.userDefinePushArgs)&&String(e.userDefinePushArgs).length<=256))throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:GC})});t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.userdefine_push_args=e.userDefinePushArgs}e.enableServerAudioMix&&(t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.enable_server_audio_mix=1,t.Str_uc_params.uc_biz_type=1e3),cL(t)||(this.bussinessInfo_=JSON.stringify(t))}},{key:"schedule",value:(R=i(r().mark((function e(t){var o,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,NL({userId:this.userId_,sdkAppId:this.sdkAppId_,roomId:t,useStringRoomId:this.useStringRoomId_,version:this.version_,userSig:this.userSig_});case 2:o=e.sent,a=o.result,i=o.isCached,this.isUsingCachedSchedule_=i,a&&(this.log_.info("schedule with cache:".concat(i," : ").concat(JSON.stringify(a))),a.trtcCapability=null==a?void 0:a.trtcAutoConf,this.schedule_=n(n({},this.schedule_),a),NI.emit($I,this.schedule_));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return R.apply(this,arguments)})},{key:"getSignalChannelUrl",value:function(){var e={mainUrl:"",backupUrl:""},t=tI();return t?e.mainUrl=e.backupUrl="wss://".concat(t,".rtc.qq.com"):this.proxy_?e.mainUrl=e.backupUrl=this.proxy_:this.unifiedProxy_?e.mainUrl=e.backupUrl="wss://".concat(this.unifiedProxy_):Array.isArray(this.schedule_.domains)&&this.schedule_.domains.length>0&&(e.mainUrl=e.backupUrl="wss://".concat(this.schedule_.domains[0]),this.schedule_.domains[1]&&(e.backupUrl="wss://".concat(this.schedule_.domains[1]))),e}},{key:"getUserId",value:function(){return this.userId_}},{key:"getUserSig",value:function(){return this.userSig_}},{key:"getRole",value:function(){return this.role_}},{key:"getSignalInfo",value:function(){return this.signalInfo_}},{key:"getRoomId",value:function(){return this.roomId_}},{key:"getSDKAppId",value:function(){return this.sdkAppId_}},{key:"getTinyId",value:function(){return this.tinyId_}},{key:"getIceTransportPolicy",value:function(){return this.iceTransportPolicy_||this.schedule_.iceTransportPolicy||"all"}},{key:"initialize",value:function(e){var t=this;this.log_.info("setup signal channel");var n=this.getSignalChannelUrl(),r=n.mainUrl,o=n.backupUrl;return this.signalChannel_=new FL({sdkAppId:this.sdkAppId_,userId:this.userId_,userSig:this.userSig_,roomId:e.roomId,url:r,backupUrl:o,signalDomainWhenUnifiedProxy:this.unifiedProxy_?this.schedule_.domains[0]:void 0,client:this}),this.networkQuality_||(this.networkQuality_=new cN({connections:this.connections_,signalChannel:this.signalChannel_,userId:this.userId_,client:this}),this.networkQuality_.on(QA.NETWORK_QUALITY,(function(e){t.emitter_.emit(QA.NETWORK_QUALITY,e)}))),this.deviceDetector_||(this.deviceDetector_=new lN({client:this})),this.subscriptionManager_||(this.subscriptionManager_=new hz({client:this})),this.badCaseDetector_||(this.badCaseDetector_=new Qq({client:this,stats:this.stats_})),this.callDurationCalculator_||(this.callDurationCalculator_=new sW({client:this})),this.mixTranscodeManager_||(this.mixTranscodeManager_=new aW({client:this,signalChannel:this.signalChannel_})),this.publishCDNManager_&&this.publishCDNManager_.setSignalChannel({signalChannel:this.signalChannel_}),this.signalChannel_.on(Fj,(function(e){t.log_.info("SignalChannel state changed from ".concat(e.prevState," to ").concat(e.state)),t.emitter_.emit(QA.CONNECTION_STATE_CHANGED,e)})),this.signalChannel_.on(Hj,(function(e){t.reset(),t.emitter_.emit(QA.ERROR,e)})),this.signalChannel_.once(Vj,(function(e){t.tinyId_=e.signalInfo.tinyId,NI.emit(WI,{client:t})})),this.signalChannel_.on(Jj.PEER_JOIN,this.onPeerJoin,this),this.signalChannel_.on(Jj.PEER_LEAVE,this.onPeerLeave,this),this.signalChannel_.on(Jj.UPDATE_REMOTE_MUTE_STAT,(function(e){Date.now()-t.lastHeartBeatTime_>=1e4&&t.doHeartbeat(),NI.emit(YI,{client:t,data:e.data}),t.onPublishedUserList(e.data),t.onUpdateRemoteMuteStat(e.data)})),this.signalChannel_.on(Jj.CLIENT_BANNED,(function(e){var n,r=e.data.data.reason;if(uL.uploadEvent({log:"stat-banned:".concat(r),userId:t.userId_}),r===KO)n="you got banned by the admin";else if(r===$O)n="duplicated userId joining the room";else if(r===XO)n="the room has been disbanded by the admin",r=r.replace("_","-");else if(r===JO)return t.log_.warn("".concat(r," last heart beat time: ").concat(t.lastHeartBeatTime_," interval: ").concat(Date.now()-t.lastHeartBeatTime_,", visibility: ").concat(document.visibilityState)),void t.reJoin();t.log_["kick"===r?"error":"info"]("user was banned because of [".concat(r,"]")),t.reset(),t.emitter_.emit(QA.CLIENT_BANNED,{reason:r,message:eI({key:cw,data:{message:n,reason:r}})||r})})),NI.emit(qI,{client:this}),this.signalChannel_.connect()}},{key:"preJoin",value:(N=i(r().mark((function e(t){var n,o,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.joinOptions_=t,e.next=3,IA();case 3:if(this.checkSystemResult_=e.sent,this.checkDestroy(),(n=tI())||(n=dM,this.proxy_&&(this.proxy_.startsWith(lM)?n=pM:this.proxy_.startsWith(uM)&&(n=fM))),this.env_=n,uL.setConfig({env:n,sdkAppId:this.sdkAppId_,userId:this.userId_,roomId:t.roomId}),this.uploadTrtcStats(),o=this.checkSystemResult_.detail,a=o.isH264EncodeSupported,i=o.isVp8EncodeSupported,OA()&&(a||i)){e.next=13;break}throw new OD({code:yD.NOT_SUPPORTED,message:eI({key:oS})});case 13:case"end":return e.stop()}}),e,this)}))),function(e){return N.apply(this,arguments)})},{key:"join",value:(A=i(r().mark((function e(t){var n,o=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.roomId_=t.roomId,lI(t.role)||(this.role_=t.role),lI(t.privateMapKey)||(this.privateMapKey_=t.privateMapKey),n=_I(),NI.emit(RI,{client:this}),aL(this.userId_,{eventId:FD,eventDesc:"joining room",timestamp:zm(),userId:this.userId_,tinyId:this.tinyId_}),e.next=8,this.preJoin(t);case 8:return e.abrupt("return",new Promise(function(){var e=i(r().mark((function e(a,i){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o.joinReject_=i,e.prev=1,o.proxy_||o.schedule_.domains){e.next=5;break}return e.next=5,o.schedule(t.roomId);case 5:return o.checkDestroy(),e.next=8,o.initialize(t);case 8:return e.next=10,o.doJoin(t);case 10:o.signalInfo_=o.signalChannel_.getSignalInfo(),NI.emit(UI,{client:o}),o.joinedTimestamp_=_I(),uL.logSuccessEvent({userId:o.userId_,eventType:zM,delta:o.joinedTimestamp_-n}),uL.logSuccessEvent({userId:o.userId_,eventType:YM}),uL.uploadEvent({log:"stat-autoplay-dialog:".concat(o.enableAutoPlayDialog_),userId:o.userId_}),uL.uploadEvent({log:"stat-conv-".concat(KT,"-").concat(location.hostname),userId:o.userId_}),a(),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(1),i(e.t0);case 23:o.joinReject_=null;case 24:case"end":return e.stop()}}),e,null,[[1,20]])})));return function(t,n){return e.apply(this,arguments)}}()));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"checkDestroy",value:function(){if(this.isDestroyed_)throw new OD({code:yD.INVALID_OPERATION,message:eI({key:Vw,data:{funName:"join"}})})}},{key:"uploadTrtcStats",value:(L=i(r().mark((function e(){var t,n,o,a,i,s,c,l,u,d,p,f,h;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,oK.getMicrophones();case 3:o=e.sent,t=o&&o.length,e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:return e.prev=9,e.next=12,oK.getCameras();case 12:a=e.sent,n=a&&a.length,e.next=18;break;case 16:e.prev=16,e.t1=e.catch(9);case 18:i={microphone:t,camera:n},s=this.checkSystemResult_.detail,c=s.isH264EncodeSupported,l=s.isVp8EncodeSupported,u=s.isH264DecodeSupported,d=s.isVp8DecodeSupported,p={webRTC:this.basis_.isWebRTCSupported,getUserMedia:this.basis_.isGetUserMediaSupported,webSocket:this.basis_.isWebSocketsSupported,screenShare:this.basis_.isScreenShareSupported,webAudio:this.basis_.isWebAudioSupported,h264Encode:c,h264Decode:u,vp8Encode:l,vp8Decode:d},f={browser:this.basis_.browser,os:this.basis_.os,trtc:p,devices:i},h={isWebCodecSupported:this.basis_.isWebCodecSupported,isMediaSessionSupported:this.basis_.isMediaSessionSupported,isWebTransportSupported:this.basis_.isWebTransportSupported},uL.uploadEvent({log:"trtcstats-"+JSON.stringify(f),userId:this.userId_}),this.log_.info("TrtcStats-"+JSON.stringify(f)),uL.uploadEvent({log:"trtcadvancedstats-"+JSON.stringify(h),userId:this.userId_});case 26:case"end":return e.stop()}}),e,this,[[0,7],[9,16]])}))),function(){return L.apply(this,arguments)})},{key:"doJoin",value:function(e){var t=this;return new Promise((function(e,n){t.log_.info("Join() => joining room: ".concat(t.roomId_," useStringRoomId: ").concat(t.useStringRoomId_," mode: ").concat(t.mode_," role: ").concat(t.role_));var r={roomId:String(t.roomId_),useStringRoomId:t.useStringRoomId_,privateMapKey:t.privateMapKey_,trtcRole:t.role_===CM?MM:kM,trtcScene:t.mode_===OM?yM:bM,sdpSemantics:t.sdpSemantics_,version:EI(t.version_),ua:navigator&&navigator.userAgent||"",autoSubscribe:t.autoSubscribe_,terminalType:qS?4:HS?2:FS?3:bT?12:_T?5:yT?13:1,netType:Ek[oI()],bussinessInfo:t.bussinessInfo_,receiveMix:!0};if(t.publishCDNManager_){var o=t.publishCDNManager_.handleCDNConfigForJoinData(t.bussinessInfo_),a=o.bussinessInfo,i=o.pushUserCdnInfo;Object.assign(r,{bussinessInfo:a,pushUserCdnInfo:i})}t.log_.debug("join room signal data: ".concat(JSON.stringify(r))),t.joinTimeout_=setTimeout((function(){n(new OD({code:yD.JOIN_ROOM_FAILED,message:eI({key:WC})}))}),5e3),NI.emit(xI,{client:t}),t.signalChannel_.once(Bj,(function(e){t.clearJoinTimeout(),NI.emit(WI,{client:t,error:e}),n(e)})),t.signalChannel_.send(Zj,r),t.signalChannel_.once(Jj.JOIN_ROOM_RESULT,(function(r){t.clearJoinTimeout();var o=r.data,a=o.code,i=o.message,s=o.data;t.onPublishedUserList({data:{userList:s.publishers}}),NI.emit(PI,{client:t,code:a}),0===a?(t.isJoined_=!0,t.log_.info("Join room success, start heartbeat"),t.startHeartbeat(),t.badCaseDetector_&&t.badCaseDetector_.start(),t.syncUserList(),t.startSyncUserListInterval(),e()):(t.log_.error("Join room failed result: "+a+" error: "+i),n(new OD({code:yD.JOIN_ROOM_FAILED,extraCode:a,message:eI({key:KC,data:{error:i,code:a}})})))}))}))}},{key:"reJoin",value:(D=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isJoined_){e.next=3;break}return this.log_.warn("reJoin abort"),e.abrupt("return");case 3:return this.isJoined_=!1,e.prev=4,this.log_.warn("reJoin pending: ".concat(this.joinOptions_.roomId)),this.subscriptionManager_&&this.subscriptionManager_.markAllStream(),this.signalChannel_.close(),e.next=10,this.signalChannel_.connect();case 10:return e.next=12,this.doJoin(n(n({},this.joinOptions_),{},{role:this.role_,privateMapKey:this.privateMapKey_}));case 12:this.log_.warn("reJoin success"),uL.logSuccessEvent({userId:this.userId_,eventType:qM}),this.checkConnectionsToReconnect(),this.uplinkConnection_&&!this.uplinkConnection_.getIsReconnecting()&&this.uplinkConnection_.startReconnection(),this.mixTranscodeManager_&&this.mixTranscodeManager_.reStartMixTranscode(),e.next=25;break;case 19:e.prev=19,e.t0=e.catch(4),this.log_.warn("reJoin fail "+e.t0),this.reset(),uL.logFailedEvent({userId:this.userId_,eventType:qM,error:e.t0}),this.emitter_.emit(QA.ERROR,new OD({code:yD.JOIN_ROOM_FAILED,message:eI({key:$C,data:{roomId:this.joinOptions_.roomId}})}));case 25:case"end":return e.stop()}}),e,this,[[4,19]])}))),function(){return D.apply(this,arguments)})},{key:"leave",value:(j=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return NI.emit(BI,{client:this}),aL(this.userId_,{eventId:GD,eventDesc:"leaving room",timestamp:zm(),userId:this.userId_,tinyId:this.tinyId_}),e.prev=2,e.next=5,this.doHeartbeat();case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(2);case 9:this.doLeave(),NI.emit(GI,{client:this}),uL.logSuccessEvent({userId:this.userId_,eventType:WM}),t=Math.floor((_I()-this.joinedTimestamp_)/1e3),uL.logSuccessEvent({userId:this.userId_,eventType:KM,delta:t});case 14:case"end":return e.stop()}}),e,this,[[2,7]])}))),function(){return j.apply(this,arguments)})},{key:"doLeave",value:function(){this.isJoined_&&(NI.emit(FI,{client:this}),this.log_.info("leave() => leaving room"),this.signalChannel_.send(eD),this.reset())}},{key:"clearNetworkQuality",value:function(){this.networkQuality_&&(this.networkQuality_.stop(),this.networkQuality_=null)}},{key:"closeConnections",value:function(){var e=this;this.connections_.forEach((function(t){e.closeDownLink(t.getTinyId())}))}},{key:"clearJoinTimeout",value:function(){clearTimeout(this.joinTimeout_),this.joinTimeout_=-1}},{key:"destroy",value:function(){var e,t,n;if(this.isJoined_)throw this.log_.warn(ES.INVALID_DESTROY),new OD({code:yD.INVALID_OPERATION,message:eI({key:JC})});this.isDestroyed_||(this.log_.info("destroy client"),this.joinReject_&&(this.joinReject_(new OD({code:yD.INVALID_OPERATION,message:eI({key:Vw,data:{funName:"join"}})})),this.clearJoinTimeout(),this.reset()),this.off("*"),null===(e=this.callDurationCalculator_)||void 0===e||e.destroy(),null===(t=this.keyPointManager_)||void 0===t||t.destroy(),null===(n=this.deviceDetector_)||void 0===n||n.destroy(),this.callDurationCalculator_=null,this.keyPointManager_=null,this.deviceDetector_=null,this.badCaseDetector_=null,this.publishCDNManager_=null,this.isDestroyed_=!0,NI.emit(XI,{client:this}))}},{key:"reset",value:function(){this.isJoined_=!1,this.schedule_={domains:null,iceServers:null,iceTransportPolicy:null,trtcCapability:null},this.keyPointManager_&&this.keyPointManager_.prepareReport(),this.mixTranscodeManager_&&(this.mixTranscodeManager_.reset(),this.mixTranscodeManager_=null),this.publishCDNManager_&&this.publishCDNManager_.reset(),this.userMap_.clear(),this.stopSyncUserListInterval(),this.stopHeartbeat(),this.closeConnections(),this.mutedStates_.clear(),this.clearNetworkQuality(),this.badCaseDetector_&&this.callDurationCalculator_&&this.uploadAllCallStats(),this.closeUplink(),this.signalChannel_&&(this.log_.info("destroying SignalChannel"),this.signalChannel_.close(),this.signalChannel_=null),this.stats_.reset()}},{key:"startSyncUserListInterval",value:function(){-1===this.syncUserListInterval_&&(this.syncUserListInterval_=mA.run(uC,this.syncUserList.bind(this)))}},{key:"stopSyncUserListInterval",value:function(){mA.clearTask(this.syncUserListInterval_),this.syncUserListInterval_=-1}},{key:"syncUserList",value:(E=i(r().mark((function e(){var t,n=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getUserList();case 3:t=e.sent,0!==this.userMap_.size&&this.userMap_.forEach((function(e){t.findIndex((function(t){return t.userId===e.userId}))<0&&(n.log_.info("peer leave detected: ".concat(e.userId)),n.cleanUser({userId:e.userId,tinyId:e.tinyId}))})),t.forEach((function(e){var t=e.userId;n.userMap_.has(t)||t===n.userId_||(n.userMap_.set(t,e),n.emitter_.emit(QA.PEER_JOIN,{userId:t}))})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),this.log_.warn("sync user list failed: "+e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return E.apply(this,arguments)})},{key:"getUserList",value:function(){return this.signalChannel_?this.signalChannel_.sendWaitForResponse({command:hD,responseCommand:Jj.USER_LIST_RES,enableLog:!1,timeout:2e3}).then((function(e){var t=e.data,n=t.code,r=t.message;if(0===n)return(t.data&&t.data.userList||[]).map((function(e){var t=e.userId,n=e.srcTinyId,r=e.role;return new Zq({userId:t,tinyId:n,role:r})}));throw eI({key:hS,data:{signalResponse:Jj.USER_LIST_RES,code:n,message:r}})})):[]}},{key:"publish",value:(I=i(r().mark((function e(t){var n,o,a,i,s,c,l,u,d=this,p=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p.length>1&&void 0!==p[1]?p[1]:{isAuxiliary:!1},t.setPublishState(Dk),this.isPublishing_=!0,o=_I(),NI.emit(zI,{client:this,stream:t}),a=n.isAuxiliary,i=a?jO:qO,s=t.getScreen(),this.log_.info("publish() => publishing ".concat(s?TO+" ":"").concat(i," stream ").concat(t.getId())),c=this.uplinkConnection_,e.prev=10,c||((c=new Kz({userId:this.userId_,tinyId:this.tinyId_,client:this,isUplink:!0,signalChannel:this.signalChannel_,enableSEI:this.enableSEI_})).initialize(),c.on(XA.ERROR,(function(e){var t=e.getCode();t!==yD.ICE_TRANSPORT_ERROR&&(t===yD.UPLINK_RECONNECTION_FAILED&&d.closeUplink(),d.emitter_.emit(QA.ERROR,e))}))),t.setConnection(c),e.next=15,c.publish(t,a);case 15:this.log_.info("local ".concat(s?TO+" ":"").concat(i," stream is published")),this.isPublishing_=!1,a?this.localAuxStream_=t:(this.localStream_=t,this.deviceDetector_&&this.deviceDetector_.setLocalStream(this.localStream_),this.localStream_.getBeautyStatus()&&this.log_.info("beauty stream is published successfully")),t.setPublishState(Lk),t.setClient(this,a),this.uplinkConnection_=c,l=_I(),u=l-o,uL.logSuccessEvent({userId:this.userId_,eventType:$M}),uL.logSuccessEvent({userId:this.userId_,eventType:JM,delta:u}),t.hasAudio()&&aL(this.userId_,{eventId:kD,eventDesc:"publish audio track",timestamp:zm(),userId:this.userId_,tinyId:this.tinyId_}),t.hasVideo()&&aL(this.userId_,{eventId:MD,eventDesc:"publish video track",timestamp:zm(),userId:this.userId_,tinyId:this.tinyId_}),this.networkQuality_&&this.networkQuality_.setUplinkConnection(this.uplinkConnection_),NI.emit(pE,{localStream:t,isAuxiliary:a,client:this}),this.notPublishWithoutH264Supported_=!1,t.isAIDenoiser&&uz.handleFunctionState({fnName:"AI_DENOISER"}),e.next=42;break;case 33:throw e.prev=33,e.t0=e.catch(10),e.t0 instanceof OD&&e.t0.getCode()===yD.NOT_SUPPORTED_H264&&(this.notPublishWithoutH264Supported_=!0),t.setPublishState(jk),c.close(),this.log_.error("failed to publish stream "+e.t0),this.isPublishing_=!1,uL.logFailedEvent({userId:this.userId_,eventType:$M,error:e.t0}),e.t0;case 42:case"end":return e.stop()}}),e,this,[[10,33]])}))),function(e){return I.apply(this,arguments)})},{key:"unpublish",value:(T=i(r().mark((function e(t){var n,o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.uplinkConnection_){e.next=2;break}return e.abrupt("return");case 2:return n=t===this.localAuxStream_,o=t.getScreen(),this.log_.info("unpublish() => unpublishing local ".concat(o?TO+" ":"").concat(n?jO:qO," stream")),e.prev=5,e.next=8,this.uplinkConnection_.unpublish(t);case 8:uL.logSuccessEvent({userId:this.userId_,eventType:XM}),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(5),this.log_.warn("unpublish error ".concat(e.t0)),uL.logFailedEvent({userId:this.userId_,eventType:XM,error:e.t0});case 15:t.setClient(null),t.setConnection(null),n?this.localAuxStream_=null:(this.localStream_=null,t.hasAudio()&&aL(this.userId_,{eventId:wD,eventDesc:"unpublish audio track",timestamp:zm(),userId:this.userId_,tinyId:this.tinyId_}),t.hasVideo()&&aL(this.userId_,{eventId:CD,eventDesc:"unpublish video track",timestamp:zm(),userId:this.userId_,tinyId:this.tinyId_})),this.localStream_||this.localAuxStream_||this.closeUplink();case 19:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e){return T.apply(this,arguments)})},{key:"closeUplink",value:function(){this.uplinkConnection_&&(this.uplinkConnection_.close(),this.uplinkConnection_=null,this.networkQuality_&&this.networkQuality_.setUplinkConnection(null),this.localStream_&&(this.localStream_.setClient(null),this.localStream_.setConnection(null),this.localStream_=null),this.localAuxStream_&&(this.localAuxStream_.setClient(null),this.localAuxStream_.setConnection(null),this.localAuxStream_=null),this.deviceDetector_&&this.deviceDetector_.setLocalStream(null))}},{key:"closeDownLink",value:function(e){var t=this.connections_.get(e);t&&(t.getIsReconnecting()&&t.stopReconnection(),this.subscriptionManager_&&this.subscriptionManager_.delete(t.getUserId()),t.close(),this.connections_.delete(e),this.mutedStates_.delete(e))}},{key:"subscribe",value:(S=i(r().mark((function e(t,n){var o,a,i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.log_.info("subscribe() => subscribe to [".concat(t.getUserId(),"] ").concat(t.getType()," stream with options: ").concat(JSON.stringify(n))),lI(n)&&(n={audio:!0,video:!0}),lI(n.audio)&&(n.audio=!0),lI(n.smallVideo)?lI(n.video)&&(n.video=!0):n.smallVideo?lI(n.video)?(n.video=!1,n.smallVideo=!0):n.video&&(n.video=!0,delete n.smallVideo,this.log_.warn("options.video and options.smallVideo can't be both true")):lI(n.video)&&(n.video=!0,delete n.smallVideo),n.video&&this.changeBigSmallRecords_.delete(t.getUserId()),o=t.getConnection(),n.smallVideo&&(o.getTrackState().smallVideo||(this.setRemoteVideoStreamType(t,"small"),n.video=!0,delete n.smallVideo)),e.prev=7,NI.emit(sE,{client:this,stream:t}),e.next=11,o.subscribe(t,n);case 11:this.subscriptionManager_&&this.subscriptionManager_.addSubscriptionRecord(t.getUserId(),t,n),this.notSubscribeWithoutH264Supported_=!1,uL.logSuccessEvent({userId:this.userId_,eventType:QM}),o.checkTrackEnded(),e.next=25;break;case 17:throw e.prev=17,e.t0=e.catch(7),(a=e.t0 instanceof OD?e.t0.getCode():yD.UNKNOWN)===yD.NOT_SUPPORTED_H264&&(this.notSubscribeWithoutH264Supported_=!0),(i=new OD(a===yD.REMOTE_STREAM_NOT_EXIST?{code:yD.API_CALL_ABORTED,message:eI({key:TS,data:{message:e.t0.message,stream:t}})}:{code:a,message:eI({key:rw,data:{message:e.t0.message,stream:t}})})).getCode()===yD.API_CALL_ABORTED?this.log_.warn(i):this.log_.error(i),uL.logFailedEvent({userId:this.userId_,eventType:QM,error:i}),i;case 25:case"end":return e.stop()}}),e,this,[[7,17]])}))),function(e,t){return S.apply(this,arguments)})},{key:"unsubscribe",value:(C=i(r().mark((function e(t){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.log_.info("unsubscribe() => unsubscribe to [".concat(t.getUserId(),"] ").concat(t.getType()," stream")),e.prev=1,n=t.getConnection(),e.next=5,n.unsubscribe(t);case 5:this.subscriptionManager_&&this.subscriptionManager_.addUnsubscriptionRecord(t.getUserId(),t),NI.emit(lE,{client:this,stream:t}),uL.logSuccessEvent({userId:this.userId_,eventType:ZM}),e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(1),uL.logFailedEvent({userId:this.userId_,eventType:ZM,error:e.t0}),e.t0;case 14:case"end":return e.stop()}}),e,this,[[1,10]])}))),function(e){return C.apply(this,arguments)})},{key:"switchRole",value:(k=i(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.role_!==t){e.next=2;break}return e.abrupt("return");case 2:return t===wM&&this.uplinkConnection_&&this.closeUplink(),this.log_.info("switchRole() => switch role to: "+t),e.next=6,this.doSwitchRole(t);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return k.apply(this,arguments)})},{key:"doSwitchRole",value:function(e){var t,n,r=this,o={command:mD,data:{role:e===CM?MM:kM,privateMapKey:this.privateMapKey_},responseCommand:Jj.SWITCH_ROLE_RES,retries:(null===(t=this.schedule_.config)||void 0===t||null===(n=t.retries)||void 0===n?void 0:n.switchRole)||1};return this.log_.info("switchRole signal data: "+JSON.stringify(o.data)),this.signalChannel_.sendWaitForResponseWithRetry(o).then((function(t){var n=t.data,o=n.code,a=n.message;if(0!==o)throw new OD({code:yD.SWITCH_ROLE_FAILED,message:eI({key:sw,data:{errMsg:a,errCode:o}})});r.role_=e})).catch((function(e){throw e instanceof OD&&e.getCode()===yD.API_CALL_TIMEOUT&&(e=new OD({code:yD.SWITCH_ROLE_FAILED,message:eI({key:iw})})),r.log_.error(e),e}))}},{key:"on",value:function(e,t,n){this.emitter_.on(e,t,n)}},{key:"off",value:function(e,t,n){"*"===e?this.emitter_.removeAllListeners():this.emitter_.off(e,t,n)}},{key:"getRemoteMutedState",value:function(){var e=this,t=[];return this.mutedStates_.forEach((function(r,o,a){var i=e.connections_.get(o);i&&t.push(n({userId:i.getUserId()},r))})),t}},{key:"getTransportStats",value:(y=i(r().mark((function e(){var t,n,o,a,i,s,c;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t={rtt:0,downlinksRTT:{}},!this.uplinkConnection_){e.next=6;break}return e.next=4,this.stats_.getSenderStats(this.uplinkConnection_);case 4:n=e.sent,t.rtt=n.rtt;case 6:o=w(this.connections_),e.prev=7,o.s();case 9:if((a=o.n()).done){e.next=17;break}return(i=O(a.value,2))[0],s=i[1],e.next=13,this.stats_.getReceiverStats(s);case 13:c=e.sent,t.downlinksRTT[c.userId]=c.rtt;case 15:e.next=9;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(7),o.e(e.t0);case 22:return e.prev=22,o.f(),e.finish(22);case 25:return e.abrupt("return",t);case 26:case"end":return e.stop()}}),e,this,[[7,19,22,25]])}))),function(){return y.apply(this,arguments)})},{key:"getLocalAudioStats",value:(b=i(r().mark((function e(){var t,n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t={})[this.userId_]={bytesSent:0,packetsSent:0},!this.uplinkConnection_){e.next=7;break}return e.next=5,this.stats_.getSenderStats(this.uplinkConnection_);case 5:n=e.sent,t[this.userId_]={bytesSent:n.audio.bytesSent,packetsSent:n.audio.packetsSent};case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"getLocalVideoStats",value:(_=i(r().mark((function e(){var t,n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t={})[this.userId_]={bytesSent:0,packetsSent:0,framesEncoded:0,framesSent:0,frameWidth:0,frameHeight:0},!this.uplinkConnection_){e.next=7;break}return e.next=5,this.stats_.getSenderStats(this.uplinkConnection_);case 5:n=e.sent,t[this.userId_]={bytesSent:n.video.bytesSent,packetsSent:n.video.packetsSent,framesEncoded:n.video.framesEncoded,framesSent:n.video.framesSent,frameWidth:n.video.frameWidth,frameHeight:n.video.frameHeight};case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e,this)}))),function(){return _.apply(this,arguments)})},{key:"getRemoteAudioStats",value:(g=i(r().mark((function e(){var t,n,o,a,i,s,c,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={},n=w(this.connections_),e.prev=2,n.s();case 4:if((o=n.n()).done){e.next=13;break}return(a=O(o.value,2))[0],i=a[1],s=i.getDelay(),c=s.audioDelay,e.next=9,this.stats_.getReceiverStats(i);case 9:(l=e.sent).hasAudio&&(t[l.userId]={bytesReceived:l.audio.bytesReceived,packetsReceived:l.audio.packetsReceived,packetsLost:l.audio.packetsLost,end2EndDelay:c});case 11:e.next=4;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(2),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:return e.abrupt("return",t);case 22:case"end":return e.stop()}}),e,this,[[2,15,18,21]])}))),function(){return g.apply(this,arguments)})},{key:"getRemoteVideoStats",value:(v=i(r().mark((function e(){var t,n,o,a,i,s,c,l,u,d=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=d.length>0&&void 0!==d[0]?d[0]:EM,n={},o=w(this.connections_),e.prev=3,o.s();case 5:if((a=o.n()).done){e.next=15;break}return(i=O(a.value,2))[0],s=i[1],e.next=9,this.stats_.getReceiverStats(s);case 9:c=e.sent,l=s.getDelay(),u=l.videoDelay,t===EM&&c.hasVideo&&(n[c.userId]={bytesReceived:c.video.bytesReceived,packetsReceived:c.video.packetsReceived,packetsLost:c.video.packetsLost,framesDecoded:c.video.framesDecoded,frameWidth:c.video.frameWidth,frameHeight:c.video.frameHeight,end2EndDelay:u}),t===jM&&c.hasAuxiliary&&(n[c.userId]={bytesReceived:c.auxiliary.bytesReceived,packetsReceived:c.auxiliary.packetsReceived,packetsLost:c.auxiliary.packetsLost,framesDecoded:c.auxiliary.framesDecoded,frameWidth:c.auxiliary.frameWidth,frameHeight:c.auxiliary.frameHeight,end2EndDelay:u});case 13:e.next=5;break;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(3),o.e(e.t0);case 20:return e.prev=20,o.f(),e.finish(20);case 23:return e.abrupt("return",n);case 24:case"end":return e.stop()}}),e,this,[[3,17,20,23]])}))),function(){return v.apply(this,arguments)})},{key:"getSdpSemantics",value:function(){return this.sdpSemantics_}},{key:"getIceServers",value:function(){return 0===this.turnServers_.length&&this.schedule_.iceServers?this.schedule_.iceServers:this.turnServers_}},{key:"getConnections",value:function(){return this.connections_}},{key:"getMutedStates",value:function(){return this.mutedStates_}},{key:"startHeartbeat",value:function(){-1===this.heartbeat_&&(this.log_.info("startHeartbeat..."),this.heartbeat_=mA.run(uC,this.doHeartbeat.bind(this),{delay:2e3}))}},{key:"stopHeartbeat",value:function(){-1!==this.heartbeat_&&(this.log_.info("stopHeartbeat"),mA.clearTask(this.heartbeat_),this.heartbeat_=-1,this.lastHeartBeatTime_=-1)}},{key:"doHeartbeat",value:(m=i(r().mark((function e(){var t,o,a,i,s,c;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=this.badCaseDetector_.getMonitorFreeze(),e.next=3,this.stats_.getStatsReport({uplinkConnection:this.uplinkConnection_,downlinkConnections:this.connections_,freezeMap:o});case 3:if(a=e.sent,NI.emit(HI,{client:this,stats:a}),null===(t=this.badCaseDetector_)||void 0===t||t.resetMonitor(),this.signalChannel_){e.next=8;break}return e.abrupt("return");case 8:i=this.signalChannel_.isConnected()?iL(this.userId_):[],s=n(n({str_sdk_version:this.version_,uint64_datetime:(new Date).getTime(),msg_user_info:{str_identifier:this.userId_,uint64_tinyid:this.tinyId_},msg_device_info:{uint32_terminal_type:15,str_device_name:navigator.platform,str_os_version:"",uint32_net_type:Ek[this.networkType_]}},a),{},{msg_event_msg:i}),this.signalChannel_.send(tD,s),c=Date.now(),this.lastHeartBeatTime_>0&&c-this.lastHeartBeatTime_>1e4&&this.log_.warn("heartbeat took ".concat(c-this.lastHeartBeatTime_)),this.lastHeartBeatTime_=c,!this.isRelayChanged_&&this.isRelayMaybeFailed()&&(this.reJoin(),this.isRelayChanged_=!0);case 15:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{key:"onRemoteStreamAdded",value:function(e){var t=e.content,n=t.userId,r=t.tinyId,o=t.audio,a=t.bigVideo,i=t.auxVideo,s=t.smallVideo;if(null!==n){this.userMap_.has(n)||(this.userMap_.set(n,new Zq({userId:n,tinyId:r,role:CM})),this.emitter_.emit(QA.PEER_JOIN,{userId:n}));var c=this.connections_.get(r);if(c){if(c.getIsReconnecting())return;this.log_.warn("duplicated stream-added observed, rebuild the connection"),c.close(),this.connections_.delete(r)}var l={audio:o,video:a,auxiliary:i,smallVideo:s};this.log_.info("remote peer [".concat(n,"] published stream. trackState: ").concat(JSON.stringify(l))),this.createDownlinkConnection({userId:n,tinyId:r,trackState:l})}else this.log_.warn("received null userId on stream added")}},{key:"createDownlinkConnection",value:function(e){var t=this,n=e.userId,r=e.tinyId,o=e.trackState,a=new Jq({userId:n,tinyId:r,client:this,isUplink:!1,signalChannel:this.signalChannel_,autoSubscribe:this.autoSubscribe_,trackState:o,enableSEI:this.enableSEI_});this.connections_.set(r,a),this.installDownlinkEvents(a,n,r),this.autoSubscribe_?(a.initialize(),a.connect().catch((function(){!a.getMainStream()&&a.hasMainStream()&&t.initRemoteStream({type:EM,userId:n,downlinkConnection:a}),!a.getAuxStream()&&a.hasAuxStream()&&t.initRemoteStream({type:jM,userId:n,downlinkConnection:a})}))):(a.hasMainStream()&&this.initRemoteStream({type:EM,userId:n,downlinkConnection:a}),a.hasAuxStream()&&this.initRemoteStream({type:jM,userId:n,downlinkConnection:a}))}},{key:"initRemoteStream",value:function(e){var t=e.type,n=e.userId,r=e.downlinkConnection,o=new fz({type:t,userId:n,client:this});o.setConnection(r),r.setRemoteStream(t===EM?SM:TM,o),o.setIsStreamAddedEventEmitted(!0),NI.emit(iE,{client:this,stream:o}),this.emitter_.emit(QA.STREAM_ADDED,{stream:o})}},{key:"installDownlinkEvents",value:function(e,t,n){var r=this;e.on(XA.SEI_MESSAGE,(function(e){r.emitter_.emit(QA.SEI_MESSAGE,e)})),e.on(XA.STREAM_ADDED,(function(e){e.stream.setIsStreamAddedEventEmitted(!0),NI.emit(iE,{client:r,stream:e.stream}),r.emitter_.emit(QA.STREAM_ADDED,{stream:e.stream})})),e.on(XA.STREAM_REMOVED,(function(e){r.changeBigSmallRecords_.delete(e.stream.getUserId()),e.stream.stop(),e.stream.setIsStreamAddedEventEmitted(!1),r.subscriptionManager_&&r.subscriptionManager_.deleteAutoRecoveryFlag(e.stream.getUserId(),e.stream.getType()),NI.emit(dE,{client:r,stream:e.stream}),r.emitter_.emit(QA.STREAM_REMOVED,{stream:e.stream})})),e.on(XA.STREAM_UPDATED,(function(t){NI.emit(uE,{client:r,stream:t.stream});var n=e.getMixUserList();n&&(t.mixUserList=n),r.emitter_.emit(QA.STREAM_UPDATED,t)})),e.on(XA.STREAM_SUBSCRIBED,(function(e){NI.emit(cE,{client:r,stream:e.stream}),r.emitter_.emit(QA.STREAM_SUBSCRIBED,{stream:e.stream})})),e.on(XA.ERROR,(function(e){var t=e.getCode();t!==yD.ICE_TRANSPORT_ERROR&&(t===yD.DOWNLINK_RECONNECTION_FAILED&&r.closeDownLink(n),r.emitter_.emit(QA.ERROR,e))}))}},{key:"onPeerJoin",value:function(e){var t=e.data.data,n=t.srcTinyId,r=t.userId,o=t.role;this.userMap_.has(r)||(this.userMap_.set(r,new Zq({userId:r,tinyId:n,role:o})),this.emitter_.emit(QA.PEER_JOIN,{userId:r}))}},{key:"onPeerLeave",value:function(e){var t=e.data.data,n=t.srcTinyId,r=t.userId,o=t.reason,a=void 0===o?0:o;this.log_.info("peer leave [".concat(r,"]: ").concat(cC[a])),this.cleanUser({userId:r,tinyId:n})}},{key:"cleanUser",value:function(e){var t=e.userId,n=e.tinyId;this.userMap_.delete(t),this.closeDownLink(n),this.emitter_.emit(QA.PEER_LEAVE,{userId:t})}},{key:"onPublishedUserList",value:function(e){var t=this;try{var n=M(e.data.userList);e.data.mixRobotList&&n.push.apply(n,M(e.data.mixRobotList)),e.data.fakeMixUser&&n.push(e.data.fakeMixUser);var r=n.map((function(e){return e.userId}));this.connections_.forEach((function(e){var n=e.getUserId(),o=e.getTinyId();r.findIndex((function(e){return e===n}))<0&&(t.log_.info("peer unpublished detected [".concat(n,"]")),t.closeDownLink(o))})),n.forEach((function(e){var n=e.userId,r=e.srcTinyId,o=e.flag,a=e.mixUserList;if(n!==t.userId_){var i=!!(1&o),s=!!(8&o),c=!!(4&o),l=!!(2&o),u=t.connections_.get(r);if((l||i)&&t.checkSubscribeBigSmallVideo(u,l),u){var d=u.getTrackState(),p=d.audio,f=d.video,h=d.auxiliary,m=d.smallVideo;hI(a)&&u.setMixUserList(a),!f&&i&&NI.emit(aE,{client:t,tinyId:r,userId:n,action:Ik.ADD,kind:SO}),!p&&s&&NI.emit(aE,{client:t,tinyId:r,userId:n,action:Ik.ADD,kind:wO}),!h&&c&&NI.emit(aE,{client:t,tinyId:r,userId:n,action:Ik.ADD,kind:jO}),!m&&l&&NI.emit(aE,{client:t,tinyId:r,userId:n,action:Ik.ADD,kind:LO}),f&&!i&&NI.emit(aE,{client:t,tinyId:r,userId:n,action:Ik.REMOVE,kind:SO}),p&&!s&&NI.emit(aE,{client:t,tinyId:r,userId:n,action:Ik.REMOVE,kind:wO}),h&&!c&&NI.emit(aE,{client:t,tinyId:r,userId:n,action:Ik.REMOVE,kind:jO}),m&&!l&&NI.emit(aE,{client:t,tinyId:r,userId:n,action:Ik.REMOVE,kind:LO})}else t.log_.info("peer published detected [".concat(n,"]")),t.onRemoteStreamAdded({content:{audio:s,bigVideo:i,auxVideo:c,smallVideo:l,userId:n,tinyId:r}})}}))}catch(aK){}}},{key:"onUpdateRemoteMuteStat",value:function(e){var t=this,n=e.data;(n&&n.userList||[]).forEach((function(e){var n=e.srcTinyId,r=e.userId;if(0!==n&&n!==t.tinyId_){var o=t.connections_.get(n);if(o){var a=o.getMainStream();if(a&&a.getIsStreamAddedEventEmitted()){var i=!!(1&e.flag),s=!!(8&e.flag),c=!!(2&e.flag),l=!!(64&e.flag),u=!!(16&e.flag),d=t.mutedStates_.get(n);if(void 0===d)return t.mutedStates_.set(n,{hasAudio:s,hasVideo:i,hasSmall:c,audioMuted:l,videoMuted:u}),i?u?t.emitter_.emit(QA.MUTE_VIDEO,{userId:r}):t.emitter_.emit(QA.UNMUTE_VIDEO,{userId:r}):t.emitter_.emit(QA.MUTE_VIDEO,{userId:r}),void(s?l?t.emitter_.emit(QA.MUTE_AUDIO,{userId:r}):t.emitter_.emit(QA.UNMUTE_AUDIO,{userId:r}):t.emitter_.emit(QA.MUTE_AUDIO,{userId:r}));var p=!d.audioMuted&&d.hasAudio,f=!l&&s,h=!d.videoMuted&&d.hasVideo,m=!u&&i;t.mutedStates_.set(n,{hasAudio:s,hasVideo:i,hasSmall:c,audioMuted:l,videoMuted:u}),p!==f&&(f?t.emitter_.emit(QA.UNMUTE_AUDIO,{userId:r}):t.emitter_.emit(QA.MUTE_AUDIO,{userId:r})),h!==m&&(m?t.emitter_.emit(QA.UNMUTE_VIDEO,{userId:r}):t.emitter_.emit(QA.MUTE_VIDEO,{userId:r}))}}else t.mutedStates_.delete(n)}}))}},{key:"getEnv",value:function(){return this.env_}},{key:"getSubscriptionManager",value:function(){return this.subscriptionManager_}},{key:"startPublishCDNStream",value:(h=i(r().mark((function e(){var t,n=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:{},this.log_.info("startPublishCDNStream with params: ".concat(JSON.stringify(t),"; isJoined: ").concat(this.isJoined_,"; hasMainStream: ").concat(!!this.localStream_,"; hasAuxStream: ").concat(!!this.localAuxStream_,";")),t.streamType=t.streamType||qO,t.streamType===jO&&(t.streamType=DO),t.streamId=t.streamId||"",!this.isJoined_){e.next=10;break}if(t.streamType!==qO||this.localStream_){e.next=8;break}throw new OD({code:yD.INVALID_OPERATION,message:eI({key:lw})});case 8:if(t.streamType!==DO||this.localAuxStream_){e.next=10;break}throw new OD({code:yD.INVALID_OPERATION,message:eI({key:lw})});case 10:return e.next=12,this.publishCDNManager_.startPublishTencentCDN(t);case 12:if(!(t.appId&&t.bizId&&t.url)){e.next=15;break}return e.next=15,this.publishCDNManager_.startPublishGivenCDN(t);case 15:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"stopPublishCDNStream",value:(f=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.publishCDNManager_.getIsPublishingTencentCDN()){e.next=2;break}throw new OD({code:yD.INVALID_OPERATION,message:eI({key:uw})});case 2:return this.log_.info("stopPublishCDNStream"),e.next=5,this.publishCDNManager_.stopPublishTencentCDN();case 5:if(!this.publishCDNManager_.getIsPublishingGivenCDN()){e.next=8;break}return e.next=8,this.publishCDNManager_.stopPublishGivenCDN();case 8:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"startMixTranscode",value:(p=i(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isJoined_&&this.mixTranscodeManager_){e.next=2;break}throw new OD({code:yD.INVALID_OPERATION,message:eI({key:hw})});case 2:return lI(t.mode)&&(t.mode=yk.MANUAL),e.prev=3,this.log_.info("startMixTranscode with config ".concat(JSON.stringify(t))),uL.uploadEvent({log:"mix-transcode-mode:".concat(t.mode),userId:this.userId_}),e.next=8,this.mixTranscodeManager_.startMixTranscode(t);case 8:uL.logSuccessEvent({userId:this.userId_,eventType:pk}),e.next=15;break;case 11:throw e.prev=11,e.t0=e.catch(3),uL.logFailedEvent({userId:this.userId_,eventType:pk,error:e.t0}),e.t0;case 15:case"end":return e.stop()}}),e,this,[[3,11]])}))),function(e){return p.apply(this,arguments)})},{key:"stopMixTranscode",value:(d=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isJoined_&&this.mixTranscodeManager_){e.next=2;break}throw new OD({code:yD.INVALID_OPERATION,message:eI({key:mw})});case 2:return e.prev=2,e.next=5,this.mixTranscodeManager_.stopMixTranscode();case 5:uL.logSuccessEvent({userId:this.userId_,eventType:fk}),e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(2),uL.logFailedEvent({userId:this.userId_,eventType:fk,error:e.t0}),e.t0;case 12:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(){return d.apply(this,arguments)})},{key:"getSystemResult",value:function(){return this.checkSystemResult_}},{key:"enableAudioVolumeEvaluation",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e3,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!dI(t))throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:vw})});if(this.log_.info("enableAudioVolumeEvaluation with interval: "+t),t<=0)return this.enableAudioVolumeEvaluation_=!1,mA.clearTask(this.audioVolumeIntervalId_),void(this.audioVolumeIntervalId_=null);t=Math.floor(Math.max(t,16)),NI.emit(JI,{interval:t}),this.audioVolumeIntervalId_&&(mA.clearTask(this.audioVolumeIntervalId_),this.audioVolumeIntervalId_=null),this.enableAudioVolumeEvaluation_=!0,this.audioVolumeIntervalId_=mA.run(dC,(function(){var t=[];if(e.localStream_){var n=Math.floor(100*e.localStream_.getAudioLevel());t.push({userId:e.userId_,audioVolume:n,stream:e.localStream_})}e.connections_.forEach((function(e){var n=e.getSubscribedMainStream();if(n){var r=Math.floor(100*n.getAudioLevel());t.push({userId:e.getUserId(),audioVolume:r,stream:n})}})),e.emitter_.emit(QA.AUDIO_VOLUME,{result:t})}),{fps:1e3/t,backgroundTask:n})}},{key:"callExperimentalAPI",value:function(e,t){return this.log_.info("callExperimentalAPI(".concat(e,", ").concat(JSON.stringify(t),")")),ZW.call(e,n({client:this},t))}},{key:"setProperty",value:function(e,t){var n="".concat(e,"_");lI(this[n])||(this[n]=t)}},{key:"uploadAllCallStats",value:function(){var e=this;this.callDurationCalculator_.getDurationMap().forEach((function(t,n){var r={userId:t.userId,type:t.type,duration:e.callDurationCalculator_.getDuration(n,SO),dataFreeze:e.badCaseDetector_.getDataFreezeDuration(n).dataFreeze,renderFreeze:e.badCaseDetector_.getRenderFreezeDuration(n).renderFreeze};uL.uploadEvent({log:"callStats-"+JSON.stringify(r),userId:e.userId_})})),this.badCaseDetector_.stop(),this.callDurationCalculator_.reset()}},{key:"enableSmallStream",value:(u=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isPublished()&&!this.isPublishing_){e.next=2;break}throw new OD({code:yD.INVALID_OPERATION,message:eI({key:gw})});case 2:if(!WA()){e.next=7;break}this.setIsEnableSmallStream(!0),this.log_.info("SmallStream successfully enabled"),e.next=8;break;case 7:throw new OD({code:yD.INVALID_OPERATION,message:eI({key:bw})});case 8:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"disableSmallStream",value:(c=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isPublished()&&!this.isPublishing_){e.next=2;break}throw new OD({code:yD.INVALID_OPERATION,message:eI({key:_w})});case 2:this.setIsEnableSmallStream(!1),this.log_.info("SmallStream successfully disabled");case 4:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"setSmallStreamProfile",value:function(e){var t=this;e&&e.framerate&&(e.frameRate=e.framerate),e.width*e.height>307200&&(e.width=320,e.height=240,this.log_.info("Small stream resolution is beyond limitation, which is invalid. Reset to 320 * 240")),Object.keys(this.smallStreamConfig_).forEach((function(n){e[n]&&(t.smallStreamConfig_[n]=e[n])}));var n=this.smallStreamConfig_,r=n.width,o=n.height,a=n.bitrate,i=n.frameRate;if(this.log_.info("setSmallStreamProfile: bitrate=".concat(a,", frameRate=").concat(i,", height=").concat(o,", width=").concat(r)),r<0||o<0||a<0||i<0)throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:yw})})}},{key:"setRemoteVideoStreamType",value:(a=i(r().mark((function e(t,n){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t instanceof fz){e.next=2;break}throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:Ow})});case 2:if(t.getConnection()){e.next=4;break}throw new OD({code:yD.INVALID_OPERATION,message:eI({key:nw})});case 4:if(t.getType()!==jM){e.next=6;break}return e.abrupt("return");case 6:e.t0=n,e.next=e.t0===Ak||e.t0===Nk?9:12;break;case 9:return e.next=11,this.changeVideoType(t,n);case 11:case 12:return e.abrupt("break",13);case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"changeVideoType",value:(o=i(r().mark((function e(t,n){var o,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=t.getUserId(),a={stream:t,options:{video:n===Ak,smallVideo:n===Nk},isSubscribing:!1,reSubscribeCount:10},this.changeBigSmallRecords_.set(o,a),this.log_.info("set [".concat(o,"] ").concat(t.getType()," stream video prefer type: ").concat(n));case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"checkSubscribeBigSmallVideo",value:(t=i(r().mark((function e(t,n){var o,a,i,s,c,l,u,d,p,f,h;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t&&t.isBigStreamSubscribed||null!=t&&t.isSmallStreamSubscribed){e.next=2;break}return e.abrupt("return");case 2:if(o=t.getUserId(),this.changeBigSmallRecords_.has(o)){e.next=5;break}return e.abrupt("return");case 5:if(a=this.changeBigSmallRecords_.get(o),i=t.getSubscribeState(),s=i.video,c=i.smallVideo,l=a.stream,u=a.options,d=a.isSubscribing,p=a.reSubscribeCount,!(u.video&&s||u.smallVideo&&c&&n)){e.next=10;break}return e.abrupt("return");case 10:if(f={video:u.video,smallVideo:u.smallVideo},!(n&&t.isBigStreamSubscribed||t.isSmallStreamSubscribed)){e.next=31;break}if(e.prev=12,!(u&&l&&!d&&p>=1)){e.next=24;break}return a.isSubscribing=!0,a.reSubscribeCount=p-1,h=l.getConnection(),!n&&h.isSmallStreamSubscribed&&(f={video:!0,smallVideo:!1}),f.emitEvent=!1,e.next=21,null==h?void 0:h.subscribe(l,f);case 21:this.log_.info("change [".concat(o,"] to ").concat(f.smallVideo?"small":"big"," video successfully. count ").concat(10-a.reSubscribeCount,".")),a.isSubscribing=!1,a.reSubscribeCount=10;case 24:e.next=31;break;case 26:e.prev=26,e.t0=e.catch(12),this.log_.info("change [".concat(o,"] to ").concat(f.smallVideo?"small":"big"," video failed. count ").concat(10-a.reSubscribeCount,".")),a.isSubscribing=!1,0===p&&this.changeBigSmallRecords_.delete(o);case 31:case"end":return e.stop()}}),e,this,[[12,26]])}))),function(e,n){return t.apply(this,arguments)})},{key:"setIsEnableSmallStream",value:function(e){this.isEnableSmallStream_=e}},{key:"getIsEnableSmallStream",value:function(){return this.isEnableSmallStream_}},{key:"smallStreamConfig",get:function(){return this.smallStreamConfig_}},{key:"isPublished",value:function(){return!!this.localStream_}},{key:"getUplinkConnection",value:function(){return this.uplinkConnection_}},{key:"getLocalStream",value:function(){return this.localStream_}},{key:"getMode",value:function(){return this.mode_}},{key:"getBadCaseDetector",value:function(){return this.badCaseDetector_}},{key:"getCallDurationCalculator",value:function(){return this.callDurationCalculator_}},{key:"getIsJoined",value:function(){return this.isJoined_}},{key:"getAllConnections",value:function(){var e=M(this.connections_.values());return this.uplinkConnection_&&e.push(this.uplinkConnection_),e}},{key:"isRelayMaybeFailed",value:function(){if(!this.signalChannel_.isOnline)return!1;var e=this.getAllConnections();if(0===e.length)return!1;for(var t=0;t<e.length;t++)if(e[t].getReconnectionCount()<6)return!1;return!0}},{key:"getUseStringRoomId",value:function(){return this.useStringRoomId_}},{key:"checkConnectionsToReconnect",value:function(){var e=this;this.getAllConnections().forEach((function(t){if(!t.getIsReconnecting()){var n=t.getPeerConnection();n&&n.connectionState===VM&&(e.log_.warn("[".concat(t.getUserId(),"] pc is closed but not reconnect")),t.startReconnection())}}))}},{key:"getEnableAutoPlayDialog",value:function(){return this.enableAutoPlayDialog_}},{key:"sendSEIMessage",value:function(e,t){this.uplinkConnection_.sendSEI(e,t)}},{key:"setProxyServer",value:function(e){if(this.log_.info("set proxy server: ".concat(JSON.stringify(e))),uI(e)){if(!e.startsWith("wss://"))throw new OD({code:yD.INVALID_PARAMETER,message:eI({key:HC})});this.proxy_=e}else if(aI(e)){var t=e.websocketProxy,n=e.loggerProxy,r=e.scheduleProxy,o=e.unifiedProxy;t&&(this.proxy_=t),n&&_M(n),r&&Fk(r),o&&(this.unifiedProxy_=o,_M("https://".concat(o)),Fk(o))}}},{key:"setTurnServer",value:function(e){this.log_.info("set turn server: "+JSON.stringify(e));var t=[];Array.isArray(e)?e.forEach((function(e){return t.push(gI(e))})):aI(e)&&t.push(gI(e)),this.turnServers_=t}},{key:"get2k4kFlag",value:function(){var e,t;return(null===(e=this.schedule_)||void 0===e||null===(t=e.trtcCapability)||void 0===t?void 0:t["2k4k"])||2}},{key:"getWSProxy",value:function(){return this.proxy_}},{key:"getUnifiedProxy",value:function(){return this.unifiedProxy_}}]),e}(),S(BW.prototype,"join",[lW,uW,dW],Object.getOwnPropertyDescriptor(BW.prototype,"join"),BW.prototype),S(BW.prototype,"leave",[pW],Object.getOwnPropertyDescriptor(BW.prototype,"leave"),BW.prototype),S(BW.prototype,"getUserList",[fW],Object.getOwnPropertyDescriptor(BW.prototype,"getUserList"),BW.prototype),S(BW.prototype,"publish",[hW,mW,vW],Object.getOwnPropertyDescriptor(BW.prototype,"publish"),BW.prototype),S(BW.prototype,"unpublish",[gW,_W],Object.getOwnPropertyDescriptor(BW.prototype,"unpublish"),BW.prototype),S(BW.prototype,"subscribe",[bW],Object.getOwnPropertyDescriptor(BW.prototype,"subscribe"),BW.prototype),S(BW.prototype,"unsubscribe",[yW],Object.getOwnPropertyDescriptor(BW.prototype,"unsubscribe"),BW.prototype),S(BW.prototype,"switchRole",[OW,MW,kW],Object.getOwnPropertyDescriptor(BW.prototype,"switchRole"),BW.prototype),S(BW.prototype,"startPublishCDNStream",[CW,wW],Object.getOwnPropertyDescriptor(BW.prototype,"startPublishCDNStream"),BW.prototype),S(BW.prototype,"stopPublishCDNStream",[SW],Object.getOwnPropertyDescriptor(BW.prototype,"stopPublishCDNStream"),BW.prototype),S(BW.prototype,"startMixTranscode",[TW,IW],Object.getOwnPropertyDescriptor(BW.prototype,"startMixTranscode"),BW.prototype),S(BW.prototype,"stopMixTranscode",[EW],Object.getOwnPropertyDescriptor(BW.prototype,"stopMixTranscode"),BW.prototype),S(BW.prototype,"enableAudioVolumeEvaluation",[jW],Object.getOwnPropertyDescriptor(BW.prototype,"enableAudioVolumeEvaluation"),BW.prototype),S(BW.prototype,"enableSmallStream",[DW],Object.getOwnPropertyDescriptor(BW.prototype,"enableSmallStream"),BW.prototype),S(BW.prototype,"disableSmallStream",[LW],Object.getOwnPropertyDescriptor(BW.prototype,"disableSmallStream"),BW.prototype),S(BW.prototype,"setSmallStreamProfile",[AW],Object.getOwnPropertyDescriptor(BW.prototype,"setSmallStreamProfile"),BW.prototype),S(BW.prototype,"setRemoteVideoStreamType",[NW],Object.getOwnPropertyDescriptor(BW.prototype,"setRemoteVideoStreamType"),BW.prototype),S(BW.prototype,"sendSEIMessage",[RW,xW,PW],Object.getOwnPropertyDescriptor(BW.prototype,"sendSEIMessage"),BW.prototype),S(BW.prototype,"setProxyServer",[UW],Object.getOwnPropertyDescriptor(BW.prototype,"setProxyServer"),BW.prototype),S(BW.prototype,"setTurnServer",[VW],Object.getOwnPropertyDescriptor(BW.prototype,"setTurnServer"),BW.prototype),BW),tK=0,nK=0,rK=(zW=dz(Gk),qW=dz(Gk),WW=dz(Gk),KW=zY(YY.TRTC.createClient),$W=dz(Gk),JW=zY(YY.TRTC.createStream),XW=function(){function e(){s(this,e),this.name_=Gk,this.VERSION=No,this.Logger={loggerManager:RE,LogLevel:nC,setLogLevel:function(e){RE.setLogLevel(e),e<=1&&ZT()},enableUploadLog:function(){uz.handleFunctionState({fnName:"TRTC.enableUploadLog"}),RE.enableUploadLog()},disableUploadLog:function(){RE.warn("disableUploadLog"),uz.handleFunctionState({fnName:"TRTC.disableUploadLog"}),RE.disableUploadLog()}}}var t;return l(e,[{key:"checkSystemRequirements",value:(t=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,IA();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"isScreenShareSupported",value:function(){return DA()}},{key:"isSmallStreamSupported",value:function(){return WA()}},{key:"getDevices",value:function(){return hN()}},{key:"getCameras",value:function(){return function(){return uN.apply(this,arguments)}()}},{key:"getMicrophones",value:function(){return vN()}},{key:"getSpeakers",value:function(){return _N()}},{key:"createClient",value:function(e){!function(){if(xE&&(xE=!1,RE.getLogLevel()!=oK.Logger.LogLevel.NONE&&(console.info("******************************************************************************"),console.info("* TRTC Web SDK"),console.info("* API Document: "+"".concat(Qk,"index.html")),console.info("* Changelog: https://cloud.tencent.com/document/product/647/38958"),console.info("* Report issues: https://github.com/LiteAVSDK/TRTC_Web/issues"),console.info("******************************************************************************")),RE.info("TRTC Web SDK Version: 4.15.22"),RE.info("UserAgent: "+navigator.userAgent),RE.info("URL of current page: "+location.href),navigator.userAgentData&&cI(navigator.userAgentData.getHighEntropyValues)))try{navigator.userAgentData.getHighEntropyValues(["architecture","bitness","model","platformVersion","fullVersionList"]).then((function(e){var t="UAData: ".concat(e.platform,"/").concat(e.platformVersion);e.architecture&&e.bitness&&(t+=" ".concat(e.architecture,"/").concat(e.bitness)),e.mobile&&(t+=" mobile"),e.model&&(t+=" model: ".concat(e.model)),e.fullVersionList&&(t+=" ".concat(e.fullVersionList.filter((function(e){return"Not/A)Brand"!==e.brand})).map((function(e){return"".concat(e.brand,"/").concat(e.version)})).join(","))),RE.info(t)})).catch((function(){}))}catch(aK){}}();var t={version:this.VERSION},r=new eK(n(n(n({},t),e),{},{seq:++tK}));return NI.emit(KI,{client:r}),r}},{key:"createStream",value:function(e){return new qz(n(n({},e),{},{seq:++nK}))}}]),e}(),S(XW.prototype,"checkSystemRequirements",[zW],Object.getOwnPropertyDescriptor(XW.prototype,"checkSystemRequirements"),XW.prototype),S(XW.prototype,"isScreenShareSupported",[qW],Object.getOwnPropertyDescriptor(XW.prototype,"isScreenShareSupported"),XW.prototype),S(XW.prototype,"isSmallStreamSupported",[WW],Object.getOwnPropertyDescriptor(XW.prototype,"isSmallStreamSupported"),XW.prototype),S(XW.prototype,"createClient",[KW,$W],Object.getOwnPropertyDescriptor(XW.prototype,"createClient"),XW.prototype),S(XW.prototype,"createStream",[JW],Object.getOwnPropertyDescriptor(XW.prototype,"createStream"),XW.prototype),XW),oK=new rK;return oK}))}).call(this,n("c8ba"))},"57f3":function(e,t,n){"use strict";var r=n("a5eb"),o=n("3cef"),a=n("1471"),i=!a("isDisjointFrom",(function(e){return!e}));r({target:"Set",proto:!0,real:!0,forced:i},{isDisjointFrom:o})},5926:function(e,t,n){"use strict";var r=n("b42e");e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},"594a":function(e,t,n){"use strict";var r=n("a5eb"),o=n("dee0").findIndex,a=n("c44e"),i="findIndex",s=!0;i in[]&&Array(1)[i]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(i)},"595e":function(e,t,n){(function(t){!function(t,r){e.exports=r(n("5781"))}(0,(function(e){function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(e);function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(){i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(I){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),i=new C(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return S()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=O(i,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var d={};function p(){}function f(){}function h(){}var m={};c(m,o,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(w([])));g&&g!==t&&n.call(g,o)&&(m=g);var _=h.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){function r(o,a,i,s){var c=u(e[o],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){l.value=e,i(l)}),(function(e){return r("throw",e,i,s)}))}s(c.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function M(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function w(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:S}}function S(){return{value:void 0,done:!0}}return f.prototype=h,c(_,"constructor",h),c(h,"constructor",f),f.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},b(y.prototype),c(y.prototype,a,(function(){return this})),e.AsyncIterator=y,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new y(l(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(_),c(_,s,"Generator"),c(_,o,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=w,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},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),d},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),k(n),d}},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 o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:w(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function s(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){s(a,r,o,i,c,"next",e)}function c(e){s(a,r,o,i,c,"throw",e)}i(void 0)}))}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{},h=function(e){try{return!!e()}catch(n){return!0}},m=!h((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),v=m,g=Function.prototype,_=g.call,b=v&&g.bind.bind(_,_),y=function(e){return v?b(e):function(){return _.apply(e,arguments)}},O=y,M=O({}.toString),k=O("".slice),C=function(e){return k(M(e),8,-1)},w=C,S=y,T=function(e){if("Function"===w(e))return S(e)},I=h,E=C,j=Object,D=T("".split),L=I((function(){return!j("z").propertyIsEnumerable(0)}))?function(e){return"String"==E(e)?D(e,""):j(e)}:j,A=function(e){return null==e},N=A,R=TypeError,x=function(e){if(N(e))throw R("Can't call method on "+e);return e},P=L,U=x,V=function(e){return P(U(e))},B=function(e){return e&&e.Math==Math&&e},F=B("object"==typeof globalThis&&globalThis)||B("object"==typeof window&&window)||B("object"==typeof self&&self)||B("object"==typeof f&&f)||function(){return this}()||Function("return this")(),G={exports:{}},H=F,Y=Object.defineProperty,z=function(e,t){try{Y(H,e,{value:t,configurable:!0,writable:!0})}catch(r){H[e]=t}return t},q=z,W="__core-js_shared__",K=F[W]||q(W,{}),$=K;(G.exports=function(e,t){return $[e]||($[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var J,X,Q=x,Z=Object,ee=function(e){return Z(Q(e))},te=ee,ne=T({}.hasOwnProperty),re=Object.hasOwn||function(e,t){return ne(te(e),t)},oe=T,ae=0,ie=Math.random(),se=oe(1..toString),ce=function(e){return"Symbol("+(void 0===e?"":e)+")_"+se(++ae+ie,36)},le="object"==typeof document&&document.all,ue={all:le,IS_HTMLDDA:void 0===le&&void 0!==le},de=ue.all,pe=ue.IS_HTMLDDA?function(e){return"function"==typeof e||e===de}:function(e){return"function"==typeof e},fe=F,he=pe,me=function(e){return he(e)?e:void 0},ve=function(e,t){return arguments.length<2?me(fe[e]):fe[e]&&fe[e][t]},ge=ve("navigator","userAgent")||"",_e=F,be=ge,ye=_e.process,Oe=_e.Deno,Me=ye&&ye.versions||Oe&&Oe.version,ke=Me&&Me.v8;ke&&(X=(J=ke.split("."))[0]>0&&J[0]<4?1:+(J[0]+J[1])),!X&&be&&(!(J=be.match(/Edge\/(\d+)/))||J[1]>=74)&&(J=be.match(/Chrome\/(\d+)/))&&(X=+J[1]);var Ce=X,we=Ce,Se=h,Te=!!Object.getOwnPropertySymbols&&!Se((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&we&&we<41})),Ie=Te&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ee=F,je=G.exports,De=re,Le=ce,Ae=Te,Ne=Ie,Re=je("wks"),xe=Ee.Symbol,Pe=xe&&xe.for,Ue=Ne?xe:xe&&xe.withoutSetter||Le,Ve=function(e){if(!De(Re,e)||!Ae&&"string"!=typeof Re[e]){var t="Symbol."+e;Ae&&De(xe,e)?Re[e]=xe[e]:Re[e]=Ne&&Pe?Pe(t):Ue(t)}return Re[e]},Be=pe,Fe=ue.all,Ge=ue.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Be(e)||e===Fe}:function(e){return"object"==typeof e?null!==e:Be(e)},He=Ge,Ye=String,ze=TypeError,qe=function(e){if(He(e))return e;throw ze(Ye(e)+" is not an object")},We={},Ke=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),$e=Ke&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Je={},Xe=Ge,Qe=F.document,Ze=Xe(Qe)&&Xe(Qe.createElement),et=function(e){return Ze?Qe.createElement(e):{}},tt=et,nt=!Ke&&!h((function(){return 7!=Object.defineProperty(tt("div"),"a",{get:function(){return 7}}).a})),rt=m,ot=Function.prototype.call,at=rt?ot.bind(ot):function(){return ot.apply(ot,arguments)},it=T({}.isPrototypeOf),st=ve,ct=pe,lt=it,ut=Object,dt=Ie?function(e){return"symbol"==typeof e}:function(e){var t=st("Symbol");return ct(t)&&lt(t.prototype,ut(e))},pt=String,ft=function(e){try{return pt(e)}catch(n){return"Object"}},ht=pe,mt=ft,vt=TypeError,gt=function(e){if(ht(e))return e;throw vt(mt(e)+" is not a function")},_t=gt,bt=A,yt=function(e,t){var n=e[t];return bt(n)?void 0:_t(n)},Ot=at,Mt=pe,kt=Ge,Ct=TypeError,wt=at,St=Ge,Tt=dt,It=yt,Et=function(e,t){var n,r;if("string"===t&&Mt(n=e.toString)&&!kt(r=Ot(n,e)))return r;if(Mt(n=e.valueOf)&&!kt(r=Ot(n,e)))return r;if("string"!==t&&Mt(n=e.toString)&&!kt(r=Ot(n,e)))return r;throw Ct("Can't convert object to primitive value")},jt=TypeError,Dt=Ve("toPrimitive"),Lt=function(e,t){if(!St(e)||Tt(e))return e;var n,r=It(e,Dt);if(r){if(void 0===t&&(t="default"),n=wt(r,e,t),!St(n)||Tt(n))return n;throw jt("Can't convert object to primitive value")}return void 0===t&&(t="number"),Et(e,t)},At=Lt,Nt=dt,Rt=function(e){var t=At(e,"string");return Nt(t)?t:t+""},xt=Ke,Pt=nt,Ut=$e,Vt=qe,Bt=Rt,Ft=TypeError,Gt=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Yt="enumerable",zt="configurable",qt="writable";Je.f=xt?Ut?function(e,t,n){if(Vt(e),t=Bt(t),Vt(n),"function"==typeof e&&"prototype"===t&&"value"in n&&qt in n&&!n.writable){var r=Ht(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:zt in n?n.configurable:r.configurable,enumerable:Yt in n?n.enumerable:r.enumerable,writable:!1})}return Gt(e,t,n)}:Gt:function(e,t,n){if(Vt(e),t=Bt(t),Vt(n),Pt)try{return Gt(e,t,n)}catch(o){}if("get"in n||"set"in n)throw Ft("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Wt=Math.ceil,Kt=Math.floor,$t=Math.trunc||function(e){var t=+e;return(t>0?Kt:Wt)(t)},Jt=function(e){var t=+e;return t!=t||0===t?0:$t(t)},Xt=Jt,Qt=Math.max,Zt=Math.min,en=function(e,t){var n=Xt(e);return n<0?Qt(n+t,0):Zt(n,t)},tn=Jt,nn=Math.min,rn=function(e){return e>0?nn(tn(e),9007199254740991):0},on=rn,an=function(e){return on(e.length)},sn=V,cn=en,ln=an,un=function(e){return function(t,n,r){var o,a=sn(t),i=ln(a),s=cn(r,i);if(e&&n!=n){for(;i>s;)if((o=a[s++])!=o)return!0}else for(;i>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},dn={includes:un(!0),indexOf:un(!1)},pn={},fn=re,hn=V,mn=dn.indexOf,vn=pn,gn=T([].push),_n=function(e,t){var n,r=hn(e),o=0,a=[];for(n in r)!fn(vn,n)&&fn(r,n)&&gn(a,n);for(;t.length>o;)fn(r,n=t[o++])&&(~mn(a,n)||gn(a,n));return a},bn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yn=_n,On=bn,Mn=Object.keys||function(e){return yn(e,On)},kn=Ke,Cn=$e,wn=Je,Sn=qe,Tn=V,In=Mn;We.f=kn&&!Cn?Object.defineProperties:function(e,t){Sn(e);for(var n,r=Tn(t),o=In(t),a=o.length,i=0;a>i;)wn.f(e,n=o[i++],r[n]);return e};var En,jn=ve("document","documentElement"),Dn=G.exports,Ln=ce,An=Dn("keys"),Nn=function(e){return An[e]||(An[e]=Ln(e))},Rn=qe,xn=We,Pn=bn,Un=pn,Vn=jn,Bn=et,Fn=Nn("IE_PROTO"),Gn=function(){},Hn=function(e){return"<script>"+e+"<\/script>"},Yn=function(e){e.write(Hn("")),e.close();var t=e.parentWindow.Object;return e=null,t},zn=function(){try{En=new ActiveXObject("htmlfile")}catch(o){}var e,t;zn="undefined"!=typeof document?document.domain&&En?Yn(En):((t=Bn("iframe")).style.display="none",Vn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Hn("document.F=Object")),e.close(),e.F):Yn(En);for(var n=Pn.length;n--;)delete zn.prototype[Pn[n]];return zn()};Un[Fn]=!0;var qn=Object.create||function(e,t){var n;return null!==e?(Gn.prototype=Rn(e),n=new Gn,Gn.prototype=null,n[Fn]=e):n=zn(),void 0===t?n:xn.f(n,t)},Wn=Ve,Kn=qn,$n=Je.f,Jn=Wn("unscopables"),Xn=Array.prototype;null==Xn[Jn]&&$n(Xn,Jn,{configurable:!0,value:Kn(null)});var Qn,Zn,er,tr={},nr=pe,rr=F.WeakMap,or=nr(rr)&&/native code/.test(String(rr)),ar=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ir=Je,sr=ar,cr=Ke?function(e,t,n){return ir.f(e,t,sr(1,n))}:function(e,t,n){return e[t]=n,e},lr=or,ur=F,dr=Ge,pr=cr,fr=re,hr=K,mr=Nn,vr=pn,gr="Object already initialized",_r=ur.TypeError,br=ur.WeakMap;if(lr||hr.state){var yr=hr.state||(hr.state=new br);yr.get=yr.get,yr.has=yr.has,yr.set=yr.set,Qn=function(e,t){if(yr.has(e))throw _r(gr);return t.facade=e,yr.set(e,t),t},Zn=function(e){return yr.get(e)||{}},er=function(e){return yr.has(e)}}else{var Or=mr("state");vr[Or]=!0,Qn=function(e,t){if(fr(e,Or))throw _r(gr);return t.facade=e,pr(e,Or,t),t},Zn=function(e){return fr(e,Or)?e[Or]:{}},er=function(e){return fr(e,Or)}}var Mr={set:Qn,get:Zn,has:er,enforce:function(e){return er(e)?Zn(e):Qn(e,{})},getterFor:function(e){return function(t){var n;if(!dr(t)||(n=Zn(t)).type!==e)throw _r("Incompatible receiver, "+e+" required");return n}}},kr={},Cr={},wr={}.propertyIsEnumerable,Sr=Object.getOwnPropertyDescriptor,Tr=Sr&&!wr.call({1:2},1);Cr.f=Tr?function(e){var t=Sr(this,e);return!!t&&t.enumerable}:wr;var Ir=Ke,Er=at,jr=Cr,Dr=ar,Lr=V,Ar=Rt,Nr=re,Rr=nt,xr=Object.getOwnPropertyDescriptor;kr.f=Ir?xr:function(e,t){if(e=Lr(e),t=Ar(t),Rr)try{return xr(e,t)}catch(r){}if(Nr(e,t))return Dr(!Er(jr.f,e,t),e[t])};var Pr={exports:{}},Ur=Ke,Vr=re,Br=Function.prototype,Fr=Ur&&Object.getOwnPropertyDescriptor,Gr=Vr(Br,"name"),Hr={EXISTS:Gr,PROPER:Gr&&"something"===function(){}.name,CONFIGURABLE:Gr&&(!Ur||Ur&&Fr(Br,"name").configurable)},Yr=pe,zr=K,qr=T(Function.toString);Yr(zr.inspectSource)||(zr.inspectSource=function(e){return qr(e)});var Wr=zr.inspectSource,Kr=h,$r=pe,Jr=re,Xr=Ke,Qr=Hr.CONFIGURABLE,Zr=Wr,eo=Mr.enforce,to=Mr.get,no=Object.defineProperty,ro=Xr&&!Kr((function(){return 8!==no((function(){}),"length",{value:8}).length})),oo=String(String).split("String"),ao=Pr.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Jr(e,"name")||Qr&&e.name!==t)&&(Xr?no(e,"name",{value:t,configurable:!0}):e.name=t),ro&&n&&Jr(n,"arity")&&e.length!==n.arity&&no(e,"length",{value:n.arity});try{n&&Jr(n,"constructor")&&n.constructor?Xr&&no(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(a){}var r=eo(e);return Jr(r,"source")||(r.source=oo.join("string"==typeof t?t:"")),e};Function.prototype.toString=ao((function(){return $r(this)&&to(this).source||Zr(this)}),"toString");var io=pe,so=Je,co=Pr.exports,lo=z,uo=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(io(n)&&co(n,a,r),r.global)o?e[t]=n:lo(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(s){}o?e[t]=n:so.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},po={},fo=_n,ho=bn.concat("length","prototype");po.f=Object.getOwnPropertyNames||function(e){return fo(e,ho)};var mo={};mo.f=Object.getOwnPropertySymbols;var vo,go,_o,bo=ve,yo=po,Oo=mo,Mo=qe,ko=T([].concat),Co=bo("Reflect","ownKeys")||function(e){var t=yo.f(Mo(e)),n=Oo.f;return n?ko(t,n(e)):t},wo=re,So=Co,To=kr,Io=Je,Eo=h,jo=pe,Do=/#|\.prototype\./,Lo=function(e,t){var n=No[Ao(e)];return n==xo||n!=Ro&&(jo(t)?Eo(t):!!t)},Ao=Lo.normalize=function(e){return String(e).replace(Do,".").toLowerCase()},No=Lo.data={},Ro=Lo.NATIVE="N",xo=Lo.POLYFILL="P",Po=Lo,Uo=F,Vo=kr.f,Bo=cr,Fo=uo,Go=z,Ho=function(e,t,n){for(var r=So(t),o=Io.f,a=To.f,i=0;i<r.length;i++){var s=r[i];wo(e,s)||n&&wo(n,s)||o(e,s,a(t,s))}},Yo=Po,zo=function(e,t){var n,r,o,a,i,s=e.target,c=e.global,l=e.stat;if(n=c?Uo:l?Uo[s]||Go(s,{}):(Uo[s]||{}).prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=Vo(n,r))&&i.value:n[r],!Yo(c?r:s+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;Ho(a,o)}(e.sham||o&&o.sham)&&Bo(a,"sham",!0),Fo(n,r,a,e)}},qo=!h((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Wo=re,Ko=pe,$o=ee,Jo=qo,Xo=Nn("IE_PROTO"),Qo=Object,Zo=Qo.prototype,ea=Jo?Qo.getPrototypeOf:function(e){var t=$o(e);if(Wo(t,Xo))return t[Xo];var n=t.constructor;return Ko(n)&&t instanceof n?n.prototype:t instanceof Qo?Zo:null},ta=h,na=pe,ra=Ge,oa=ea,aa=uo,ia=Ve("iterator"),sa=!1;[].keys&&("next"in(_o=[].keys())?(go=oa(oa(_o)))!==Object.prototype&&(vo=go):sa=!0);var ca=!ra(vo)||ta((function(){var e={};return vo[ia].call(e)!==e}));ca&&(vo={}),na(vo[ia])||aa(vo,ia,(function(){return this}));var la={IteratorPrototype:vo,BUGGY_SAFARI_ITERATORS:sa},ua=Je.f,da=re,pa=Ve("toStringTag"),fa=function(e,t,n){e&&!n&&(e=e.prototype),e&&!da(e,pa)&&ua(e,pa,{configurable:!0,value:t})},ha=la.IteratorPrototype,ma=qn,va=ar,ga=fa,_a=tr,ba=function(){return this},ya=pe,Oa=String,Ma=TypeError,ka=T,Ca=qe,wa=function(e){if("object"==typeof e||ya(e))return e;throw Ma("Can't set "+Oa(e)+" as a prototype")},Sa=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=ka(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(o){}return function(n,r){return Ca(n),wa(r),t?e(n,r):n.__proto__=r,n}}():void 0),Ta=zo,Ia=at,Ea=pe,ja=function(e,t,n,r){var o=t+" Iterator";return e.prototype=ma(ha,{next:va(+!r,n)}),ga(e,o,!1),_a[o]=ba,e},Da=ea,La=Sa,Aa=fa,Na=cr,Ra=uo,xa=tr,Pa=Hr.PROPER,Ua=Hr.CONFIGURABLE,Va=la.IteratorPrototype,Ba=la.BUGGY_SAFARI_ITERATORS,Fa=Ve("iterator"),Ga="keys",Ha="values",Ya="entries",za=function(){return this},qa=function(e,t,n,r,o,a,i){ja(n,t,r);var s,c,l,u=function(e){if(e===o&&m)return m;if(!Ba&&e in f)return f[e];switch(e){case Ga:case Ha:case Ya:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",p=!1,f=e.prototype,h=f[Fa]||f["@@iterator"]||o&&f[o],m=!Ba&&h||u(o),v="Array"==t&&f.entries||h;if(v&&(s=Da(v.call(new e)))!==Object.prototype&&s.next&&(Da(s)!==Va&&(La?La(s,Va):Ea(s[Fa])||Ra(s,Fa,za)),Aa(s,d,!0)),Pa&&o==Ha&&h&&h.name!==Ha&&(Ua?Na(f,"name",Ha):(p=!0,m=function(){return Ia(h,this)})),o)if(c={values:u(Ha),keys:a?m:u(Ga),entries:u(Ya)},i)for(l in c)(Ba||p||!(l in f))&&Ra(f,l,c[l]);else Ta({target:t,proto:!0,forced:Ba||p},c);return f[Fa]!==m&&Ra(f,Fa,m,{name:o}),xa[t]=m,c},Wa=function(e,t){return{value:e,done:t}},Ka=V,$a=function(e){Xn[Jn][e]=!0},Ja=tr,Xa=Mr,Qa=Je.f,Za=qa,ei=Wa,ti=Ke,ni="Array Iterator",ri=Xa.set,oi=Xa.getterFor(ni),ai=Za(Array,"Array",(function(e,t){ri(this,{type:ni,target:Ka(e),index:0,kind:t})}),(function(){var e=oi(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,ei(void 0,!0)):ei("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values"),ii=Ja.Arguments=Ja.Array;if($a("keys"),$a("values"),$a("entries"),ti&&"values"!==ii.name)try{Qa(ii,"name",{value:"values"})}catch(YO){}var si={exports:{}},ci={},li=Rt,ui=Je,di=ar,pi=function(e,t,n){var r=li(t);r in e?ui.f(e,r,di(0,n)):e[r]=n},fi=en,hi=an,mi=pi,vi=Array,gi=Math.max,_i=function(e,t,n){for(var r=hi(e),o=fi(t,r),a=fi(void 0===n?r:n,r),i=vi(gi(a-o,0)),s=0;o<a;o++,s++)mi(i,s,e[o]);return i.length=s,i},bi=C,yi=V,Oi=po.f,Mi=_i,ki="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];ci.f=function(e){return ki&&"Window"==bi(e)?function(e){try{return Oi(e)}catch(YO){return Mi(ki)}}(e):Oi(yi(e))};var Ci=h((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),wi=h,Si=Ge,Ti=C,Ii=Ci,Ei=Object.isExtensible,ji=wi((function(){Ei(1)}))||Ii?function(e){return!!Si(e)&&(!Ii||"ArrayBuffer"!=Ti(e))&&(!Ei||Ei(e))}:Ei,Di=!h((function(){return Object.isExtensible(Object.preventExtensions({}))})),Li=zo,Ai=T,Ni=pn,Ri=Ge,xi=re,Pi=Je.f,Ui=po,Vi=ci,Bi=ji,Fi=Di,Gi=!1,Hi=ce("meta"),Yi=0,zi=function(e){Pi(e,Hi,{value:{objectID:"O"+Yi++,weakData:{}}})},qi=si.exports={enable:function(){qi.enable=function(){},Gi=!0;var e=Ui.f,t=Ai([].splice),n={};n[Hi]=1,e(n).length&&(Ui.f=function(n){for(var r=e(n),o=0,a=r.length;o<a;o++)if(r[o]===Hi){t(r,o,1);break}return r},Li({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Vi.f}))},fastKey:function(e,t){if(!Ri(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!xi(e,Hi)){if(!Bi(e))return"F";if(!t)return"E";zi(e)}return e[Hi].objectID},getWeakData:function(e,t){if(!xi(e,Hi)){if(!Bi(e))return!0;if(!t)return!1;zi(e)}return e[Hi].weakData},onFreeze:function(e){return Fi&&Gi&&Bi(e)&&!xi(e,Hi)&&zi(e),e}};Ni[Hi]=!0;var Wi=gt,Ki=m,$i=T(T.bind),Ji=function(e,t){return Wi(e),void 0===t?e:Ki?$i(e,t):function(){return e.apply(t,arguments)}},Xi=tr,Qi=Ve("iterator"),Zi=Array.prototype,es=function(e){return void 0!==e&&(Xi.Array===e||Zi[Qi]===e)},ts={};ts[Ve("toStringTag")]="z";var ns="[object z]"===String(ts),rs=ns,os=pe,as=C,is=Ve("toStringTag"),ss=Object,cs="Arguments"==as(function(){return arguments}()),ls=rs?as:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(YO){}}(t=ss(e),is))?n:cs?as(t):"Object"==(r=as(t))&&os(t.callee)?"Arguments":r},us=ls,ds=yt,ps=A,fs=tr,hs=Ve("iterator"),ms=function(e){if(!ps(e))return ds(e,hs)||ds(e,"@@iterator")||fs[us(e)]},vs=at,gs=gt,_s=qe,bs=ft,ys=ms,Os=TypeError,Ms=function(e,t){var n=arguments.length<2?ys(e):t;if(gs(n))return _s(vs(n,e));throw Os(bs(e)+" is not iterable")},ks=at,Cs=qe,ws=yt,Ss=Ji,Ts=at,Is=qe,Es=ft,js=es,Ds=an,Ls=it,As=Ms,Ns=ms,Rs=function(e,t,n){var r,o;Cs(e);try{if(!(r=ws(e,"return"))){if("throw"===t)throw n;return n}r=ks(r,e)}catch(YO){o=!0,r=YO}if("throw"===t)throw n;if(o)throw r;return Cs(r),n},xs=TypeError,Ps=function(e,t){this.stopped=e,this.result=t},Us=Ps.prototype,Vs=function(e,t,n){var r,o,a,i,s,c,l,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),f=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),m=Ss(t,u),v=function(e){return r&&Rs(r,"normal",e),new Ps(!0,e)},g=function(e){return d?(Is(e),h?m(e[0],e[1],v):m(e[0],e[1])):h?m(e,v):m(e)};if(p)r=e.iterator;else if(f)r=e;else{if(!(o=Ns(e)))throw xs(Es(e)+" is not iterable");if(js(o)){for(a=0,i=Ds(e);i>a;a++)if((s=g(e[a]))&&Ls(Us,s))return s;return new Ps(!1)}r=As(e,o)}for(c=p?e.next:r.next;!(l=Ts(c,r)).done;){try{s=g(l.value)}catch(YO){Rs(r,"throw",YO)}if("object"==typeof s&&s&&Ls(Us,s))return s}return new Ps(!1)},Bs=it,Fs=TypeError,Gs=function(e,t){if(Bs(t,e))return e;throw Fs("Incorrect invocation")},Hs=Ve("iterator"),Ys=!1;try{var zs=0,qs={next:function(){return{done:!!zs++}},return:function(){Ys=!0}};qs[Hs]=function(){return this},Array.from(qs,(function(){throw 2}))}catch(YO){}var Ws=function(e,t){if(!t&&!Ys)return!1;var n=!1;try{var r={};r[Hs]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(YO){}return n},Ks=pe,$s=Ge,Js=Sa,Xs=function(e,t,n){var r,o;return Js&&Ks(r=t.constructor)&&r!==n&&$s(o=r.prototype)&&o!==n.prototype&&Js(e,o),e},Qs=zo,Zs=F,ec=T,tc=Po,nc=uo,rc=si.exports,oc=Vs,ac=Gs,ic=pe,sc=A,cc=Ge,lc=h,uc=Ws,dc=fa,pc=Xs,fc=uo,hc=function(e,t,n){for(var r in t)fc(e,r,t[r],n);return e},mc=ve,vc=Je,gc=Ke,_c=Ve("species"),bc=function(e){var t=mc(e),n=vc.f;gc&&t&&!t[_c]&&n(t,_c,{configurable:!0,get:function(){return this}})},yc=Je.f,Oc=qn,Mc=hc,kc=Ji,Cc=Gs,wc=A,Sc=Vs,Tc=qa,Ic=Wa,Ec=bc,jc=Ke,Dc=si.exports.fastKey,Lc=Mr.set,Ac=Mr.getterFor,Nc={getConstructor:function(e,t,n,r){var o=e((function(e,o){Cc(e,a),Lc(e,{type:t,index:Oc(null),first:void 0,last:void 0,size:0}),jc||(e.size=0),wc(o)||Sc(o,e[r],{that:e,AS_ENTRIES:n})})),a=o.prototype,i=Ac(t),s=function(e,t,n){var r,o,a=i(e),s=c(e,t);return s?s.value=n:(a.last=s={index:o=Dc(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=s),r&&(r.next=s),jc?a.size++:e.size++,"F"!==o&&(a.index[o]=s)),e},c=function(e,t){var n,r=i(e),o=Dc(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Mc(a,{clear:function(){for(var e=i(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,jc?e.size=0:this.size=0},delete:function(e){var t=this,n=i(t),r=c(t,e);if(r){var o=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),n.first==r&&(n.first=o),n.last==r&&(n.last=a),jc?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=i(this),r=kc(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!c(this,e)}}),Mc(a,n?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),jc&&yc(a,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=Ac(t),a=Ac(r);Tc(e,t,(function(e,t){Lc(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?Ic("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,Ic(void 0,!0))}),n?"entries":"values",!n,!0),Ec(t)}},Rc=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=r?"set":"add",i=Zs[e],s=i&&i.prototype,c=i,l={},u=function(e){var t=ec(s[e]);nc(s,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!cc(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!cc(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!cc(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(tc(e,!ic(i)||!(o||s.forEach&&!lc((function(){(new i).entries().next()})))))c=n.getConstructor(t,e,r,a),rc.enable();else if(tc(e,!0)){var d=new c,p=d[a](o?{}:-0,1)!=d,f=lc((function(){d.has(1)})),h=uc((function(e){new i(e)})),m=!o&&lc((function(){for(var e=new i,t=5;t--;)e[a](t,t);return!e.has(-0)}));h||((c=t((function(e,t){ac(e,s);var n=pc(new i,e,c);return sc(t)||oc(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(f||m)&&(u("delete"),u("has"),r&&u("get")),(m||p)&&u(a),o&&s.clear&&delete s.clear}return l[e]=c,Qs({global:!0,constructor:!0,forced:c!=i},l),dc(c,e),o||n.setStrong(c,e,r),c};Rc("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Nc);var xc=ls,Pc=ns?{}.toString:function(){return"[object "+xc(this)+"]"};ns||uo(Object.prototype,"toString",Pc,{unsafe:!0});var Uc=ls,Vc=String,Bc=function(e){if("Symbol"===Uc(e))throw TypeError("Cannot convert a Symbol value to a string");return Vc(e)},Fc=T,Gc=Jt,Hc=Bc,Yc=x,zc=Fc("".charAt),qc=Fc("".charCodeAt),Wc=Fc("".slice),Kc=function(e){return function(t,n){var r,o,a=Hc(Yc(t)),i=Gc(n),s=a.length;return i<0||i>=s?e?"":void 0:(r=qc(a,i))<55296||r>56319||i+1===s||(o=qc(a,i+1))<56320||o>57343?e?zc(a,i):r:e?Wc(a,i,i+2):o-56320+(r-55296<<10)+65536}},$c={codeAt:Kc(!1),charAt:Kc(!0)}.charAt,Jc=Bc,Xc=Mr,Qc=qa,Zc=Wa,el="String Iterator",tl=Xc.set,nl=Xc.getterFor(el);Qc(String,"String",(function(e){tl(this,{type:el,string:Jc(e),index:0})}),(function(){var e,t=nl(this),n=t.string,r=t.index;return r>=n.length?Zc(void 0,!0):(e=$c(n,r),t.index+=e.length,Zc(e,!1))}));var rl=et("span").classList,ol=rl&&rl.constructor&&rl.constructor.prototype,al=ol===Object.prototype?void 0:ol,il=F,sl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},cl=al,ll=ai,ul=cr,dl=Ve,pl=dl("iterator"),fl=dl("toStringTag"),hl=ll.values,ml=function(e,t){if(e){if(e[pl]!==hl)try{ul(e,pl,hl)}catch(YO){e[pl]=hl}if(e[fl]||ul(e,fl,t),sl[t])for(var n in ll)if(e[n]!==ll[n])try{ul(e,n,ll[n])}catch(YO){e[n]=ll[n]}}};for(var vl in sl)ml(il[vl]&&il[vl].prototype,vl);ml(cl,"DOMTokenList");var gl=C,_l=Array.isArray||function(e){return"Array"==gl(e)},bl=T,yl=h,Ol=pe,Ml=ls,kl=Wr,Cl=function(){},wl=[],Sl=ve("Reflect","construct"),Tl=/^\s*(?:class|function)\b/,Il=bl(Tl.exec),El=!Tl.exec(Cl),jl=function(e){if(!Ol(e))return!1;try{return Sl(Cl,wl,e),!0}catch(YO){return!1}},Dl=function(e){if(!Ol(e))return!1;switch(Ml(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return El||!!Il(Tl,kl(e))}catch(YO){return!0}};Dl.sham=!0;var Ll=!Sl||yl((function(){var e;return jl(jl.call)||!jl(Object)||!jl((function(){e=!0}))||e}))?Dl:jl,Al=h,Nl=Ce,Rl=Ve("species"),xl=function(e){return Nl>=51||!Al((function(){var t=[];return(t.constructor={})[Rl]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Pl=T([].slice),Ul=zo,Vl=_l,Bl=Ll,Fl=Ge,Gl=en,Hl=an,Yl=V,zl=pi,ql=Ve,Wl=Pl,Kl=xl("slice"),$l=ql("species"),Jl=Array,Xl=Math.max;Ul({target:"Array",proto:!0,forced:!Kl},{slice:function(e,t){var n,r,o,a=Yl(this),i=Hl(a),s=Gl(e,i),c=Gl(void 0===t?i:t,i);if(Vl(a)&&(n=a.constructor,(Bl(n)&&(n===Jl||Vl(n.prototype))||Fl(n)&&null===(n=n[$l]))&&(n=void 0),n===Jl||void 0===n))return Wl(a,s,c);for(r=new(void 0===n?Jl:n)(Xl(c-s,0)),o=0;s<c;s++,o++)s in a&&zl(r,o,a[s]);return r.length=o,r}});var Ql=zo,Zl=Date,eu=T(Zl.prototype.getTime);Ql({target:"Date",stat:!0},{now:function(){return eu(new Zl)}});var tu=T,nu=uo,ru=Date.prototype,ou="Invalid Date",au="toString",iu=tu(ru.toString),su=tu(ru.getTime);String(new Date(NaN))!=ou&&nu(ru,au,(function(){var e=su(this);return e==e?iu(this):ou}));var cu=TypeError,lu=_l,uu=Ll,du=Ge,pu=Ve("species"),fu=Array,hu=function(e){var t;return lu(e)&&(t=e.constructor,(uu(t)&&(t===fu||lu(t.prototype))||du(t)&&null===(t=t[pu]))&&(t=void 0)),void 0===t?fu:t},mu=function(e,t){return new(hu(e))(0===t?0:t)},vu=zo,gu=h,_u=_l,bu=Ge,yu=ee,Ou=an,Mu=function(e){if(e>9007199254740991)throw cu("Maximum allowed index exceeded");return e},ku=pi,Cu=mu,wu=xl,Su=Ce,Tu=Ve("isConcatSpreadable"),Iu=Su>=51||!gu((function(){var e=[];return e[Tu]=!1,e.concat()[0]!==e})),Eu=wu("concat"),ju=function(e){if(!bu(e))return!1;var t=e[Tu];return void 0!==t?!!t:_u(e)};vu({target:"Array",proto:!0,arity:1,forced:!Iu||!Eu},{concat:function(e){var t,n,r,o,a,i=yu(this),s=Cu(i,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(ju(a=-1===t?i:arguments[t]))for(o=Ou(a),Mu(c+o),n=0;n<o;n++,c++)n in a&&ku(s,c,a[n]);else Mu(c+1),ku(s,c++,a);return s.length=c,s}});var Du=T(1..valueOf),Lu=x,Au=Bc,Nu=T("".replace),Ru="[\t\n\v\f\r    \u2028\u2029\ufeff]",xu=RegExp("^"+Ru+Ru+"*"),Pu=RegExp(Ru+Ru+"*$"),Uu=function(e){return function(t){var n=Au(Lu(t));return 1&e&&(n=Nu(n,xu,"")),2&e&&(n=Nu(n,Pu,"")),n}},Vu={start:Uu(1),end:Uu(2),trim:Uu(3)},Bu=Ke,Fu=F,Gu=T,Hu=Po,Yu=uo,zu=re,qu=Xs,Wu=it,Ku=dt,$u=Lt,Ju=h,Xu=po.f,Qu=kr.f,Zu=Je.f,ed=Du,td=Vu.trim,nd="Number",rd=Fu.Number,od=rd.prototype,ad=Fu.TypeError,id=Gu("".slice),sd=Gu("".charCodeAt),cd=function(e){var t=$u(e,"number");return"bigint"==typeof t?t:ld(t)},ld=function(e){var t,n,r,o,a,i,s,c,l=$u(e,"number");if(Ku(l))throw ad("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=td(l),43===(t=sd(l,0))||45===t){if(88===(n=sd(l,2))||120===n)return NaN}else if(48===t){switch(sd(l,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(i=(a=id(l,2)).length,s=0;s<i;s++)if((c=sd(a,s))<48||c>o)return NaN;return parseInt(a,r)}return+l};if(Hu(nd,!rd(" 0o1")||!rd("0b1")||rd("+0x1"))){for(var ud,dd=function(e){var t=arguments.length<1?0:rd(cd(e)),n=this;return Wu(od,n)&&Ju((function(){ed(n)}))?qu(Object(t),n,dd):t},pd=Bu?Xu(rd):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),fd=0;pd.length>fd;fd++)zu(rd,ud=pd[fd])&&!zu(dd,ud)&&Zu(dd,ud,Qu(rd,ud));dd.prototype=od,od.constructor=dd,Yu(Fu,nd,dd,{constructor:!0})}var hd,md,vd,gd,_d="process"==C(F.process),bd=Ll,yd=ft,Od=TypeError,Md=function(e){if(bd(e))return e;throw Od(yd(e)+" is not a constructor")},kd=qe,Cd=Md,wd=A,Sd=Ve("species"),Td=function(e,t){var n,r=kd(e).constructor;return void 0===r||wd(n=kd(r)[Sd])?t:Cd(n)},Id=m,Ed=Function.prototype,jd=Ed.apply,Dd=Ed.call,Ld="object"==typeof Reflect&&Reflect.apply||(Id?Dd.bind(jd):function(){return Dd.apply(jd,arguments)}),Ad=TypeError,Nd=/(?:ipad|iphone|ipod).*applewebkit/i.test(ge),Rd=F,xd=Ld,Pd=Ji,Ud=pe,Vd=re,Bd=h,Fd=jn,Gd=Pl,Hd=et,Yd=function(e,t){if(e<t)throw Ad("Not enough arguments");return e},zd=Nd,qd=_d,Wd=Rd.setImmediate,Kd=Rd.clearImmediate,$d=Rd.process,Jd=Rd.Dispatch,Xd=Rd.Function,Qd=Rd.MessageChannel,Zd=Rd.String,ep=0,tp={},np="onreadystatechange";try{hd=Rd.location}catch(YO){}var rp=function(e){if(Vd(tp,e)){var t=tp[e];delete tp[e],t()}},op=function(e){return function(){rp(e)}},ap=function(e){rp(e.data)},ip=function(e){Rd.postMessage(Zd(e),hd.protocol+"//"+hd.host)};Wd&&Kd||(Wd=function(e){Yd(arguments.length,1);var t=Ud(e)?e:Xd(e),n=Gd(arguments,1);return tp[++ep]=function(){xd(t,void 0,n)},md(ep),ep},Kd=function(e){delete tp[e]},qd?md=function(e){$d.nextTick(op(e))}:Jd&&Jd.now?md=function(e){Jd.now(op(e))}:Qd&&!zd?(gd=(vd=new Qd).port2,vd.port1.onmessage=ap,md=Pd(gd.postMessage,gd)):Rd.addEventListener&&Ud(Rd.postMessage)&&!Rd.importScripts&&hd&&"file:"!==hd.protocol&&!Bd(ip)?(md=ip,Rd.addEventListener("message",ap,!1)):md=np in Hd("script")?function(e){Fd.appendChild(Hd("script")).onreadystatechange=function(){Fd.removeChild(this),rp(e)}}:function(e){setTimeout(op(e),0)});var sp,cp,lp,up,dp,pp,fp,hp,mp={set:Wd,clear:Kd},vp=F,gp=/ipad|iphone|ipod/i.test(ge)&&void 0!==vp.Pebble,_p=/web0s(?!.*chrome)/i.test(ge),bp=F,yp=Ji,Op=kr.f,Mp=mp.set,kp=Nd,Cp=gp,wp=_p,Sp=_d,Tp=bp.MutationObserver||bp.WebKitMutationObserver,Ip=bp.document,Ep=bp.process,jp=bp.Promise,Dp=Op(bp,"queueMicrotask"),Lp=Dp&&Dp.value;Lp||(sp=function(){var e,t;for(Sp&&(e=Ep.domain)&&e.exit();cp;){t=cp.fn,cp=cp.next;try{t()}catch(YO){throw cp?up():lp=void 0,YO}}lp=void 0,e&&e.enter()},kp||Sp||wp||!Tp||!Ip?!Cp&&jp&&jp.resolve?((fp=jp.resolve(void 0)).constructor=jp,hp=yp(fp.then,fp),up=function(){hp(sp)}):Sp?up=function(){Ep.nextTick(sp)}:(Mp=yp(Mp,bp),up=function(){Mp(sp)}):(dp=!0,pp=Ip.createTextNode(""),new Tp(sp).observe(pp,{characterData:!0}),up=function(){pp.data=dp=!dp}));var Ap=Lp||function(e){var t={fn:e,next:void 0};lp&&(lp.next=t),cp||(cp=t,up()),lp=t},Np=F,Rp=function(e){try{return{error:!1,value:e()}}catch(YO){return{error:!0,value:YO}}},xp=function(){this.head=null,this.tail=null};xp.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var Pp=xp,Up=F.Promise,Vp="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Bp=!Vp&&!_d&&"object"==typeof window&&"object"==typeof document,Fp=F,Gp=Up,Hp=pe,Yp=Po,zp=Wr,qp=Ve,Wp=Bp,Kp=Vp,$p=Ce;Gp&&Gp.prototype;var Jp=qp("species"),Xp=!1,Qp=Hp(Fp.PromiseRejectionEvent),Zp=Yp("Promise",(function(){var e=zp(Gp),t=e!==String(Gp);if(!t&&66===$p)return!0;if(!$p||$p<51||!/native code/.test(e)){var n=new Gp((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[Jp]=r,!(Xp=n.then((function(){}))instanceof r))return!0}return!t&&(Wp||Kp)&&!Qp})),ef={CONSTRUCTOR:Zp,REJECTION_EVENT:Qp,SUBCLASSING:Xp},tf={},nf=gt,rf=TypeError,of=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw rf("Bad Promise constructor");t=e,n=r})),this.resolve=nf(t),this.reject=nf(n)};tf.f=function(e){return new of(e)};var af,sf,cf,lf=zo,uf=_d,df=F,pf=at,ff=uo,hf=Sa,mf=fa,vf=bc,gf=gt,_f=pe,bf=Ge,yf=Gs,Of=Td,Mf=mp.set,kf=Ap,Cf=function(e,t){var n=Np.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))},wf=Rp,Sf=Pp,Tf=Mr,If=Up,Ef=tf,jf="Promise",Df=ef.CONSTRUCTOR,Lf=ef.REJECTION_EVENT,Af=ef.SUBCLASSING,Nf=Tf.getterFor(jf),Rf=Tf.set,xf=If&&If.prototype,Pf=If,Uf=xf,Vf=df.TypeError,Bf=df.document,Ff=df.process,Gf=Ef.f,Hf=Gf,Yf=!!(Bf&&Bf.createEvent&&df.dispatchEvent),zf="unhandledrejection",qf=function(e){var t;return!(!bf(e)||!_f(t=e.then))&&t},Wf=function(e,t){var n,r,o,a=t.value,i=1==t.state,s=i?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(i||(2===t.rejection&&Qf(t),t.rejection=1),!0===s?n=a:(u&&u.enter(),n=s(a),u&&(u.exit(),o=!0)),n===e.promise?l(Vf("Promise-chain cycle")):(r=qf(n))?pf(r,n,c,l):c(n)):l(a)}catch(YO){u&&!o&&u.exit(),l(YO)}},Kf=function(e,t){e.notified||(e.notified=!0,kf((function(){for(var n,r=e.reactions;n=r.get();)Wf(n,e);e.notified=!1,t&&!e.rejection&&Jf(e)})))},$f=function(e,t,n){var r,o;Yf?((r=Bf.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),df.dispatchEvent(r)):r={promise:t,reason:n},!Lf&&(o=df["on"+e])?o(r):e===zf&&Cf("Unhandled promise rejection",n)},Jf=function(e){pf(Mf,df,(function(){var t,n=e.facade,r=e.value;if(Xf(e)&&(t=wf((function(){uf?Ff.emit("unhandledRejection",r,n):$f(zf,n,r)})),e.rejection=uf||Xf(e)?2:1,t.error))throw t.value}))},Xf=function(e){return 1!==e.rejection&&!e.parent},Qf=function(e){pf(Mf,df,(function(){var t=e.facade;uf?Ff.emit("rejectionHandled",t):$f("rejectionhandled",t,e.value)}))},Zf=function(e,t,n){return function(r){e(t,r,n)}},eh=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Kf(e,!0))},th=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Vf("Promise can't be resolved itself");var r=qf(t);r?kf((function(){var n={done:!1};try{pf(r,t,Zf(th,n,e),Zf(eh,n,e))}catch(YO){eh(n,YO,e)}})):(e.value=t,e.state=1,Kf(e,!1))}catch(YO){eh({done:!1},YO,e)}}};if(Df&&(Uf=(Pf=function(e){yf(this,Uf),gf(e),pf(af,this);var t=Nf(this);try{e(Zf(th,t),Zf(eh,t))}catch(YO){eh(t,YO)}}).prototype,(af=function(e){Rf(this,{type:jf,done:!1,notified:!1,parent:!1,reactions:new Sf,rejection:!1,state:0,value:void 0})}).prototype=ff(Uf,"then",(function(e,t){var n=Nf(this),r=Gf(Of(this,Pf));return n.parent=!0,r.ok=!_f(e)||e,r.fail=_f(t)&&t,r.domain=uf?Ff.domain:void 0,0==n.state?n.reactions.add(r):kf((function(){Wf(r,n)})),r.promise})),sf=function(){var e=new af,t=Nf(e);this.promise=e,this.resolve=Zf(th,t),this.reject=Zf(eh,t)},Ef.f=Gf=function(e){return e===Pf||void 0===e?new sf(e):Hf(e)},_f(If)&&xf!==Object.prototype)){cf=xf.then,Af||ff(xf,"then",(function(e,t){var n=this;return new Pf((function(e,t){pf(cf,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete xf.constructor}catch(YO){}hf&&hf(xf,Uf)}lf({global:!0,constructor:!0,wrap:!0,forced:Df},{Promise:Pf}),mf(Pf,jf,!1),vf(jf);var nh=Up,rh=ef.CONSTRUCTOR||!Ws((function(e){nh.all(e).then(void 0,(function(){}))})),oh=at,ah=gt,ih=tf,sh=Rp,ch=Vs;zo({target:"Promise",stat:!0,forced:rh},{all:function(e){var t=this,n=ih.f(t),r=n.resolve,o=n.reject,a=sh((function(){var n=ah(t.resolve),a=[],i=0,s=1;ch(e,(function(e){var c=i++,l=!1;s++,oh(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),o)})),--s||r(a)}));return a.error&&o(a.value),n.promise}});var lh=zo,uh=ef.CONSTRUCTOR,dh=Up,ph=ve,fh=pe,hh=uo,mh=dh&&dh.prototype;if(lh({target:"Promise",proto:!0,forced:uh,real:!0},{catch:function(e){return this.then(void 0,e)}}),fh(dh)){var vh=ph("Promise").prototype.catch;mh.catch!==vh&&hh(mh,"catch",vh,{unsafe:!0})}var gh=at,_h=gt,bh=tf,yh=Rp,Oh=Vs;zo({target:"Promise",stat:!0,forced:rh},{race:function(e){var t=this,n=bh.f(t),r=n.reject,o=yh((function(){var o=_h(t.resolve);Oh(e,(function(e){gh(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Mh=at,kh=tf;zo({target:"Promise",stat:!0,forced:ef.CONSTRUCTOR},{reject:function(e){var t=kh.f(this);return Mh(t.reject,void 0,e),t.promise}});var Ch=qe,wh=Ge,Sh=tf,Th=zo,Ih=ef.CONSTRUCTOR,Eh=function(e,t){if(Ch(e),wh(t)&&t.constructor===e)return t;var n=Sh.f(e);return(0,n.resolve)(t),n.promise};ve("Promise"),Th({target:"Promise",stat:!0,forced:Ih},{resolve:function(e){return Eh(this,e)}}),window.AudioContext=window.AudioContext||window.webkitAudioContext||window.mozAudioContext;var jh,Dh=function(){if(jh)return jh;jh=new window.AudioContext({sampleRate:48e3});var e=function e(){"suspended"===jh.state?(jh.resume(),document.removeEventListener("click",e)):"interrupted"===jh.state?jh.resume():document.removeEventListener("click",e)};return document.addEventListener("click",e),jh.onstatechange=function(){e()},jh},Lh="input",Ah="output",Nh="schedule.cloud-rtc.com",Rh="schedule.rtc.tencentcloud.com";function xh(e){return Ph(e)?Rh:Nh}var Ph=function(e){return(e=Number(e))>0&&e<14e8};function Uh(e){return Vh.apply(this,arguments)}function Vh(){return(Vh=c(i().mark((function e(t){var n,r,o,a,s,c,l,u,d,p,f,h,m,v,g;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.sdkAppId,r=t.userId,o=t.userSig,a=t.timestamp,s=xh(n),c="https://".concat(s,"/api/v1/audioAiAuth?sdkAppId=").concat(n,"&userId=").concat(r,"&userSig=").concat(o,"&timestamp=").concat(a),e.next=5,fetch(c);case 5:return l=e.sent,e.next=8,l.json();case 8:if(u=e.sent,d=u.data,p=d.errCode,f=d.errMsg,h=d.sign,"1"!==(m=d.status)){e.next=16;break}return e.abrupt("return",{auth:!0,sign:h,status:m,message:f});case 16:v="Init RTCAIDenoiser failed.",g="",e.t0=p,e.next=1===e.t0?21:2===e.t0?23:3===e.t0?25:4===e.t0?27:5===e.t0?29:6===e.t0?31:33;break;case 21:return g="Please check your params.",e.abrupt("break",33);case 23:return g="You need to buy packages. Refer to: https://cloud.tencent.com/document/product/647/44247",e.abrupt("break",33);case 25:return g="Server is invalid. Please contact our engineer. ",e.abrupt("break",33);case 27:return g="Your packages is not active. Refer to: https://cloud.tencent.com/document/product/647/44247",e.abrupt("break",33);case 29:return g="Your packages is expired. Refer to: https://cloud.tencent.com/document/product/647/44247",e.abrupt("break",33);case 31:return g="Your version is not supported.",e.abrupt("break",33);case 33:return e.abrupt("return",{auth:!1,status:m,message:f?"".concat(v," Reason: ").concat(f,". ").concat(g):"".concat(v,", ").concat(g)});case 34:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Bh={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,a||e,i),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,a=r.length,i=new Array(a);o<a;o++)i[o]=r[o].fn;return i},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,a,i){var s=n?n+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,a),!0;case 6:return u.fn.call(u.context,t,r,o,a,i),!0}for(l=1,c=new Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var p,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!c)for(p=1,c=new Array(d-1);p<d;p++)c[p-1]=arguments[p];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||i(this,a);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&l.push(s[c]);l.length?this._events[a]=1===l.length?l[0]:l:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(Bh);var Fh=Bh.exports,Gh="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Hh=Jt,Yh=rn,zh=RangeError,qh=function(e){if(void 0===e)return 0;var t=Hh(e),n=Yh(t);if(t!==n)throw zh("Wrong length or index");return n},Wh=Array,Kh=Math.abs,$h=Math.pow,Jh=Math.floor,Xh=Math.log,Qh=Math.LN2,Zh=ee,em=en,tm=an,nm=function(e){for(var t=Zh(this),n=tm(t),r=arguments.length,o=em(r>1?arguments[1]:void 0,n),a=r>2?arguments[2]:void 0,i=void 0===a?n:em(a,n);i>o;)t[o++]=e;return t},rm=F,om=T,am=Ke,im=Gh,sm=Hr,cm=cr,lm=hc,um=h,dm=Gs,pm=Jt,fm=rn,hm=qh,mm={pack:function(e,t,n){var r,o,a,i=Wh(n),s=8*n-t-1,c=(1<<s)-1,l=c>>1,u=23===t?$h(2,-24)-$h(2,-77):0,d=e<0||0===e&&1/e<0?1:0,p=0;for((e=Kh(e))!=e||1/0===e?(o=e!=e?1:0,r=c):(r=Jh(Xh(e)/Qh),e*(a=$h(2,-r))<1&&(r--,a*=2),(e+=r+l>=1?u/a:u*$h(2,1-l))*a>=2&&(r++,a/=2),r+l>=c?(o=0,r=c):r+l>=1?(o=(e*a-1)*$h(2,t),r+=l):(o=e*$h(2,l-1)*$h(2,t),r=0));t>=8;)i[p++]=255&o,o/=256,t-=8;for(r=r<<t|o,s+=t;s>0;)i[p++]=255&r,r/=256,s-=8;return i[--p]|=128*d,i},unpack:function(e,t){var n,r=e.length,o=8*r-t-1,a=(1<<o)-1,i=a>>1,s=o-7,c=r-1,l=e[c--],u=127&l;for(l>>=7;s>0;)u=256*u+e[c--],s-=8;for(n=u&(1<<-s)-1,u>>=-s,s+=t;s>0;)n=256*n+e[c--],s-=8;if(0===u)u=1-i;else{if(u===a)return n?NaN:l?-1/0:1/0;n+=$h(2,t),u-=i}return(l?-1:1)*n*$h(2,u-t)}},vm=ea,gm=Sa,_m=po.f,bm=Je.f,ym=nm,Om=_i,Mm=fa,km=sm.PROPER,Cm=sm.CONFIGURABLE,wm=Mr.get,Sm=Mr.set,Tm="ArrayBuffer",Im="DataView",Em="Wrong index",jm=rm.ArrayBuffer,Dm=jm,Lm=Dm&&Dm.prototype,Am=rm.DataView,Nm=Am&&Am.prototype,Rm=Object.prototype,xm=rm.Array,Pm=rm.RangeError,Um=om(ym),Vm=om([].reverse),Bm=mm.pack,Fm=mm.unpack,Gm=function(e){return[255&e]},Hm=function(e){return[255&e,e>>8&255]},Ym=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},zm=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},qm=function(e){return Bm(e,23,4)},Wm=function(e){return Bm(e,52,8)},Km=function(e,t){bm(e.prototype,t,{get:function(){return wm(this)[t]}})},$m=function(e,t,n,r){var o=hm(n),a=wm(e);if(o+t>a.byteLength)throw Pm(Em);var i=wm(a.buffer).bytes,s=o+a.byteOffset,c=Om(i,s,s+t);return r?c:Vm(c)},Jm=function(e,t,n,r,o,a){var i=hm(n),s=wm(e);if(i+t>s.byteLength)throw Pm(Em);for(var c=wm(s.buffer).bytes,l=i+s.byteOffset,u=r(+o),d=0;d<t;d++)c[l+d]=u[a?d:t-d-1]};if(im){var Xm=km&&jm.name!==Tm;if(um((function(){jm(1)}))&&um((function(){new jm(-1)}))&&!um((function(){return new jm,new jm(1.5),new jm(NaN),1!=jm.length||Xm&&!Cm})))Xm&&Cm&&cm(jm,"name",Tm);else{(Dm=function(e){return dm(this,Lm),new jm(hm(e))}).prototype=Lm;for(var Qm,Zm=_m(jm),ev=0;Zm.length>ev;)(Qm=Zm[ev++])in Dm||cm(Dm,Qm,jm[Qm]);Lm.constructor=Dm}gm&&vm(Nm)!==Rm&&gm(Nm,Rm);var tv=new Am(new Dm(2)),nv=om(Nm.setInt8);tv.setInt8(0,2147483648),tv.setInt8(1,2147483649),!tv.getInt8(0)&&tv.getInt8(1)||lm(Nm,{setInt8:function(e,t){nv(this,e,t<<24>>24)},setUint8:function(e,t){nv(this,e,t<<24>>24)}},{unsafe:!0})}else Lm=(Dm=function(e){dm(this,Lm);var t=hm(e);Sm(this,{bytes:Um(xm(t),0),byteLength:t}),am||(this.byteLength=t)}).prototype,Nm=(Am=function(e,t,n){dm(this,Nm),dm(e,Lm);var r=wm(e).byteLength,o=pm(t);if(o<0||o>r)throw Pm("Wrong offset");if(o+(n=void 0===n?r-o:fm(n))>r)throw Pm("Wrong length");Sm(this,{buffer:e,byteLength:n,byteOffset:o}),am||(this.buffer=e,this.byteLength=n,this.byteOffset=o)}).prototype,am&&(Km(Dm,"byteLength"),Km(Am,"buffer"),Km(Am,"byteLength"),Km(Am,"byteOffset")),lm(Nm,{getInt8:function(e){return $m(this,1,e)[0]<<24>>24},getUint8:function(e){return $m(this,1,e)[0]},getInt16:function(e){var t=$m(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=$m(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return zm($m(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return zm($m(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return Fm($m(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return Fm($m(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Jm(this,1,e,Gm,t)},setUint8:function(e,t){Jm(this,1,e,Gm,t)},setInt16:function(e,t){Jm(this,2,e,Hm,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Jm(this,2,e,Hm,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Jm(this,4,e,Ym,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Jm(this,4,e,Ym,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Jm(this,4,e,qm,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Jm(this,8,e,Wm,t,arguments.length>2?arguments[2]:void 0)}});Mm(Dm,Tm),Mm(Am,Im);var rv={ArrayBuffer:Dm,DataView:Am},ov=zo,av=T,iv=h,sv=qe,cv=en,lv=rn,uv=Td,dv=rv.ArrayBuffer,pv=rv.DataView,fv=pv.prototype,hv=av(dv.prototype.slice),mv=av(fv.getUint8),vv=av(fv.setUint8);ov({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:iv((function(){return!new dv(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(hv&&void 0===t)return hv(sv(this),e);for(var n=sv(this).byteLength,r=cv(e,n),o=cv(void 0===t?n:t,n),a=new(uv(this,dv))(lv(o-r)),i=new pv(this),s=new pv(a),c=0;r<o;)vv(s,c++,mv(i,r++));return a}});var gv,_v,bv,yv={exports:{}},Ov=Gh,Mv=Ke,kv=F,Cv=pe,wv=Ge,Sv=re,Tv=ls,Iv=ft,Ev=cr,jv=uo,Dv=Je.f,Lv=it,Av=ea,Nv=Sa,Rv=Ve,xv=ce,Pv=Mr.enforce,Uv=Mr.get,Vv=kv.Int8Array,Bv=Vv&&Vv.prototype,Fv=kv.Uint8ClampedArray,Gv=Fv&&Fv.prototype,Hv=Vv&&Av(Vv),Yv=Bv&&Av(Bv),zv=Object.prototype,qv=kv.TypeError,Wv=Rv("toStringTag"),Kv=xv("TYPED_ARRAY_TAG"),$v="TypedArrayConstructor",Jv=Ov&&!!Nv&&"Opera"!==Tv(kv.opera),Xv=!1,Qv={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Zv={BigInt64Array:8,BigUint64Array:8},eg=function(e){var t=Av(e);if(wv(t)){var n=Uv(t);return n&&Sv(n,$v)?n.TypedArrayConstructor:eg(t)}},tg=function(e){if(!wv(e))return!1;var t=Tv(e);return Sv(Qv,t)||Sv(Zv,t)};for(gv in Qv)(bv=(_v=kv[gv])&&_v.prototype)?Pv(bv).TypedArrayConstructor=_v:Jv=!1;for(gv in Zv)(bv=(_v=kv[gv])&&_v.prototype)&&(Pv(bv).TypedArrayConstructor=_v);if((!Jv||!Cv(Hv)||Hv===Function.prototype)&&(Hv=function(){throw qv("Incorrect invocation")},Jv))for(gv in Qv)kv[gv]&&Nv(kv[gv],Hv);if((!Jv||!Yv||Yv===zv)&&(Yv=Hv.prototype,Jv))for(gv in Qv)kv[gv]&&Nv(kv[gv].prototype,Yv);if(Jv&&Av(Gv)!==Yv&&Nv(Gv,Yv),Mv&&!Sv(Yv,Wv))for(gv in Xv=!0,Dv(Yv,Wv,{get:function(){return wv(this)?this[Kv]:void 0}}),Qv)kv[gv]&&Ev(kv[gv],Kv,gv);var ng={NATIVE_ARRAY_BUFFER_VIEWS:Jv,TYPED_ARRAY_TAG:Xv&&Kv,aTypedArray:function(e){if(tg(e))return e;throw qv("Target is not a typed array")},aTypedArrayConstructor:function(e){if(Cv(e)&&(!Nv||Lv(Hv,e)))return e;throw qv(Iv(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(Mv){if(n)for(var o in Qv){var a=kv[o];if(a&&Sv(a.prototype,e))try{delete a.prototype[e]}catch(YO){try{a.prototype[e]=t}catch(s){}}}Yv[e]&&!n||jv(Yv,e,n?t:Jv&&Bv[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(Mv){if(Nv){if(n)for(r in Qv)if((o=kv[r])&&Sv(o,e))try{delete o[e]}catch(YO){}if(Hv[e]&&!n)return;try{return jv(Hv,e,n?t:Jv&&Hv[e]||t)}catch(YO){}}for(r in Qv)!(o=kv[r])||o[e]&&!n||jv(o,e,t)}},getTypedArrayConstructor:eg,isView:function(e){if(!wv(e))return!1;var t=Tv(e);return"DataView"===t||Sv(Qv,t)||Sv(Zv,t)},isTypedArray:tg,TypedArray:Hv,TypedArrayPrototype:Yv},rg=F,og=h,ag=Ws,ig=ng.NATIVE_ARRAY_BUFFER_VIEWS,sg=rg.ArrayBuffer,cg=rg.Int8Array,lg=!ig||!og((function(){cg(1)}))||!og((function(){new cg(-1)}))||!ag((function(e){new cg,new cg(null),new cg(1.5),new cg(e)}),!0)||og((function(){return 1!==new cg(new sg(2),1,void 0).length})),ug=Ge,dg=Math.floor,pg=Number.isInteger||function(e){return!ug(e)&&isFinite(e)&&dg(e)===e},fg=Jt,hg=RangeError,mg=function(e){var t=fg(e);if(t<0)throw hg("The argument can't be less than 0");return t},vg=RangeError,gg=function(e,t){var n=mg(e);if(n%t)throw vg("Wrong offset");return n},_g=ls,bg=T("".slice),yg=Lt,Og=TypeError,Mg=function(e){var t=yg(e,"number");if("number"==typeof t)throw Og("Can't convert number to bigint");return BigInt(t)},kg=Ji,Cg=at,wg=Md,Sg=ee,Tg=an,Ig=Ms,Eg=ms,jg=es,Dg=function(e){return"Big"===bg(_g(e),0,3)},Lg=ng.aTypedArrayConstructor,Ag=Mg,Ng=Ji,Rg=L,xg=ee,Pg=an,Ug=mu,Vg=T([].push),Bg=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,a=6==e,i=7==e,s=5==e||a;return function(c,l,u,d){for(var p,f,h=xg(c),m=Rg(h),v=Ng(l,u),g=Pg(m),_=0,b=d||Ug,y=t?b(c,g):n||i?b(c,0):void 0;g>_;_++)if((s||_ in m)&&(f=v(p=m[_],_,h),e))if(t)y[_]=f;else if(f)switch(e){case 3:return!0;case 5:return p;case 6:return _;case 2:Vg(y,p)}else switch(e){case 4:return!1;case 7:Vg(y,p)}return a?-1:r||o?o:y}},Fg={forEach:Bg(0),map:Bg(1),filter:Bg(2),some:Bg(3),every:Bg(4),find:Bg(5),findIndex:Bg(6),filterReject:Bg(7)},Gg=zo,Hg=F,Yg=at,zg=Ke,qg=lg,Wg=ng,Kg=rv,$g=Gs,Jg=ar,Xg=cr,Qg=pg,Zg=rn,e_=qh,t_=gg,n_=Rt,r_=re,o_=ls,a_=Ge,i_=dt,s_=qn,c_=it,l_=Sa,u_=po.f,d_=function(e){var t,n,r,o,a,i,s,c,l=wg(this),u=Sg(e),d=arguments.length,p=d>1?arguments[1]:void 0,f=void 0!==p,h=Eg(u);if(h&&!jg(h))for(c=(s=Ig(u,h)).next,u=[];!(i=Cg(c,s)).done;)u.push(i.value);for(f&&d>2&&(p=kg(p,arguments[2])),n=Tg(u),r=new(Lg(l))(n),o=Dg(r),t=0;n>t;t++)a=f?p(u[t],t):u[t],r[t]=o?Ag(a):+a;return r},p_=Fg.forEach,f_=bc,h_=Je,m_=kr,v_=Xs,g_=Mr.get,__=Mr.set,b_=Mr.enforce,y_=h_.f,O_=m_.f,M_=Math.round,k_=Hg.RangeError,C_=Kg.ArrayBuffer,w_=C_.prototype,S_=Kg.DataView,T_=Wg.NATIVE_ARRAY_BUFFER_VIEWS,I_=Wg.TYPED_ARRAY_TAG,E_=Wg.TypedArray,j_=Wg.TypedArrayPrototype,D_=Wg.aTypedArrayConstructor,L_=Wg.isTypedArray,A_="BYTES_PER_ELEMENT",N_="Wrong length",R_=function(e,t){D_(e);for(var n=0,r=t.length,o=new e(r);r>n;)o[n]=t[n++];return o},x_=function(e,t){y_(e,t,{get:function(){return g_(this)[t]}})},P_=function(e){var t;return c_(w_,e)||"ArrayBuffer"==(t=o_(e))||"SharedArrayBuffer"==t},U_=function(e,t){return L_(e)&&!i_(t)&&t in e&&Qg(+t)&&t>=0},V_=function(e,t){return t=n_(t),U_(e,t)?Jg(2,e[t]):O_(e,t)},B_=function(e,t,n){return t=n_(t),!(U_(e,t)&&a_(n)&&r_(n,"value"))||r_(n,"get")||r_(n,"set")||n.configurable||r_(n,"writable")&&!n.writable||r_(n,"enumerable")&&!n.enumerable?y_(e,t,n):(e[t]=n.value,e)};zg?(T_||(m_.f=V_,h_.f=B_,x_(j_,"buffer"),x_(j_,"byteOffset"),x_(j_,"byteLength"),x_(j_,"length")),Gg({target:"Object",stat:!0,forced:!T_},{getOwnPropertyDescriptor:V_,defineProperty:B_}),yv.exports=function(e,t,n){var r=e.match(/\d+$/)[0]/8,o=e+(n?"Clamped":"")+"Array",a="get"+e,i="set"+e,s=Hg[o],c=s,l=c&&c.prototype,u={},d=function(e,t){y_(e,t,{get:function(){return function(e,t){var n=g_(e);return n.view[a](t*r+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,o){var a=g_(e);n&&(o=(o=M_(o))<0?0:o>255?255:255&o),a.view[i](t*r+a.byteOffset,o,!0)}(this,t,e)},enumerable:!0})};T_?qg&&(c=t((function(e,t,n,o){return $g(e,l),v_(a_(t)?P_(t)?void 0!==o?new s(t,t_(n,r),o):void 0!==n?new s(t,t_(n,r)):new s(t):L_(t)?R_(c,t):Yg(d_,c,t):new s(e_(t)),e,c)})),l_&&l_(c,E_),p_(u_(s),(function(e){e in c||Xg(c,e,s[e])})),c.prototype=l):(c=t((function(e,t,n,o){$g(e,l);var a,i,s,u=0,p=0;if(a_(t)){if(!P_(t))return L_(t)?R_(c,t):Yg(d_,c,t);a=t,p=t_(n,r);var f=t.byteLength;if(void 0===o){if(f%r)throw k_(N_);if((i=f-p)<0)throw k_(N_)}else if((i=Zg(o)*r)+p>f)throw k_(N_);s=i/r}else s=e_(t),a=new C_(i=s*r);for(__(e,{buffer:a,byteOffset:p,byteLength:i,length:s,view:new S_(a)});u<s;)d(e,u++)})),l_&&l_(c,E_),l=c.prototype=s_(j_)),l.constructor!==c&&Xg(l,"constructor",c),b_(l).TypedArrayConstructor=c,I_&&Xg(l,I_,o);var p=c!=s;u[o]=c,Gg({global:!0,constructor:!0,forced:p,sham:!T_},u),A_ in c||Xg(c,A_,r),A_ in l||Xg(l,A_,r),f_(o)}):yv.exports=function(){},(0,yv.exports)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}));var F_=ft,G_=TypeError,H_=ee,Y_=en,z_=an,q_=function(e,t){if(!delete e[t])throw G_("Cannot delete property "+F_(t)+" of "+F_(e))},W_=Math.min,K_=[].copyWithin||function(e,t){var n=H_(this),r=z_(n),o=Y_(e,r),a=Y_(t,r),i=arguments.length>2?arguments[2]:void 0,s=W_((void 0===i?r:Y_(i,r))-a,r-o),c=1;for(a<o&&o<a+s&&(c=-1,a+=s-1,o+=s-1);s-- >0;)a in n?n[o]=n[a]:q_(n,o),o+=c,a+=c;return n},$_=ng,J_=T(K_),X_=$_.aTypedArray;(0,$_.exportTypedArrayMethod)("copyWithin",(function(e,t){return J_(X_(this),e,t,arguments.length>2?arguments[2]:void 0)}));var Q_=Fg.every,Z_=ng.aTypedArray;(0,ng.exportTypedArrayMethod)("every",(function(e){return Q_(Z_(this),e,arguments.length>1?arguments[1]:void 0)}));var eb=nm,tb=Mg,nb=ls,rb=at,ob=h,ab=ng.aTypedArray,ib=ng.exportTypedArrayMethod,sb=T("".slice);ib("fill",(function(e){var t=arguments.length;ab(this);var n="Big"===sb(nb(this),0,3)?tb(e):+e;return rb(eb,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),ob((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})));var cb=an,lb=Td,ub=ng.aTypedArrayConstructor,db=ng.getTypedArrayConstructor,pb=function(e){return ub(lb(e,db(e)))},fb=function(e,t){for(var n=0,r=cb(t),o=new e(r);r>n;)o[n]=t[n++];return o},hb=pb,mb=Fg.filter,vb=function(e,t){return fb(hb(e),t)},gb=ng.aTypedArray;(0,ng.exportTypedArrayMethod)("filter",(function(e){var t=mb(gb(this),e,arguments.length>1?arguments[1]:void 0);return vb(this,t)}));var _b=Fg.find,bb=ng.aTypedArray;(0,ng.exportTypedArrayMethod)("find",(function(e){return _b(bb(this),e,arguments.length>1?arguments[1]:void 0)}));var yb=Fg.findIndex,Ob=ng.aTypedArray;(0,ng.exportTypedArrayMethod)("findIndex",(function(e){return yb(Ob(this),e,arguments.length>1?arguments[1]:void 0)}));var Mb=Fg.forEach,kb=ng.aTypedArray;(0,ng.exportTypedArrayMethod)("forEach",(function(e){Mb(kb(this),e,arguments.length>1?arguments[1]:void 0)}));var Cb=dn.includes,wb=ng.aTypedArray;(0,ng.exportTypedArrayMethod)("includes",(function(e){return Cb(wb(this),e,arguments.length>1?arguments[1]:void 0)}));var Sb=dn.indexOf,Tb=ng.aTypedArray;(0,ng.exportTypedArrayMethod)("indexOf",(function(e){return Sb(Tb(this),e,arguments.length>1?arguments[1]:void 0)}));var Ib=F,Eb=h,jb=T,Db=ng,Lb=ai,Ab=Ve("iterator"),Nb=Ib.Uint8Array,Rb=jb(Lb.values),xb=jb(Lb.keys),Pb=jb(Lb.entries),Ub=Db.aTypedArray,Vb=Db.exportTypedArrayMethod,Bb=Nb&&Nb.prototype,Fb=!Eb((function(){Bb[Ab].call([1])})),Gb=!!Bb&&Bb.values&&Bb[Ab]===Bb.values&&"values"===Bb.values.name,Hb=function(){return Rb(Ub(this))};Vb("entries",(function(){return Pb(Ub(this))}),Fb),Vb("keys",(function(){return xb(Ub(this))}),Fb),Vb("values",Hb,Fb||!Gb,{name:"values"}),Vb(Ab,Hb,Fb||!Gb,{name:"values"});var Yb=ng.aTypedArray,zb=ng.exportTypedArrayMethod,qb=T([].join);zb("join",(function(e){return qb(Yb(this),e)}));var Wb=h,Kb=Ld,$b=V,Jb=Jt,Xb=an,Qb=function(e,t){var n=[][e];return!!n&&Wb((function(){n.call(null,t||function(){return 1},1)}))},Zb=Math.min,ey=[].lastIndexOf,ty=!!ey&&1/[1].lastIndexOf(1,-0)<0,ny=Qb("lastIndexOf"),ry=ty||!ny?function(e){if(ty)return Kb(ey,this,arguments)||0;var t=$b(this),n=Xb(t),r=n-1;for(arguments.length>1&&(r=Zb(r,Jb(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:ey,oy=Ld,ay=ry,iy=ng.aTypedArray;(0,ng.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return oy(ay,iy(this),t>1?[e,arguments[1]]:[e])}));var sy=Fg.map,cy=pb,ly=ng.aTypedArray;(0,ng.exportTypedArrayMethod)("map",(function(e){return sy(ly(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(cy(e))(t)}))}));var uy=gt,dy=ee,py=L,fy=an,hy=TypeError,my=function(e){return function(t,n,r,o){uy(n);var a=dy(t),i=py(a),s=fy(a),c=e?s-1:0,l=e?-1:1;if(r<2)for(;;){if(c in i){o=i[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw hy("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in i&&(o=n(o,i[c],c,a));return o}},vy={left:my(!1),right:my(!0)},gy=vy.left,_y=ng.aTypedArray;(0,ng.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return gy(_y(this),e,t,t>1?arguments[1]:void 0)}));var by=vy.right,yy=ng.aTypedArray;(0,ng.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return by(yy(this),e,t,t>1?arguments[1]:void 0)}));var Oy=ng.aTypedArray,My=ng.exportTypedArrayMethod,ky=Math.floor;My("reverse",(function(){for(var e,t=this,n=Oy(t).length,r=ky(n/2),o=0;o<r;)e=t[o],t[o++]=t[--n],t[n]=e;return t}));var Cy=F,wy=at,Sy=ng,Ty=an,Iy=gg,Ey=ee,jy=h,Dy=Cy.RangeError,Ly=Cy.Int8Array,Ay=Ly&&Ly.prototype,Ny=Ay&&Ay.set,Ry=Sy.aTypedArray,xy=Sy.exportTypedArrayMethod,Py=!jy((function(){var e=new Uint8ClampedArray(2);return wy(Ny,e,{length:1,0:3},1),3!==e[1]})),Uy=Py&&Sy.NATIVE_ARRAY_BUFFER_VIEWS&&jy((function(){var e=new Ly(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));xy("set",(function(e){Ry(this);var t=Iy(arguments.length>1?arguments[1]:void 0,1),n=Ey(e);if(Py)return wy(Ny,this,n,t);var r=this.length,o=Ty(n),a=0;if(o+t>r)throw Dy("Wrong length");for(;a<o;)this[t+a]=n[a++]}),!Py||Uy);var Vy=pb,By=Pl,Fy=ng.aTypedArray;(0,ng.exportTypedArrayMethod)("slice",(function(e,t){for(var n=By(Fy(this),e,t),r=Vy(this),o=0,a=n.length,i=new r(a);a>o;)i[o]=n[o++];return i}),h((function(){new Int8Array(1).slice()})));var Gy=Fg.some,Hy=ng.aTypedArray;(0,ng.exportTypedArrayMethod)("some",(function(e){return Gy(Hy(this),e,arguments.length>1?arguments[1]:void 0)}));var Yy=_i,zy=Math.floor,qy=function(e,t){var n=e.length,r=zy(n/2);return n<8?Wy(e,t):Ky(e,qy(Yy(e,0,r),t),qy(Yy(e,r),t),t)},Wy=function(e,t){for(var n,r,o=e.length,a=1;a<o;){for(r=a,n=e[a];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==a++&&(e[r]=n)}return e},Ky=function(e,t,n,r){for(var o=t.length,a=n.length,i=0,s=0;i<o||s<a;)e[i+s]=i<o&&s<a?r(t[i],n[s])<=0?t[i++]:n[s++]:i<o?t[i++]:n[s++];return e},$y=qy,Jy=ge.match(/firefox\/(\d+)/i),Xy=!!Jy&&+Jy[1],Qy=/MSIE|Trident/.test(ge),Zy=ge.match(/AppleWebKit\/(\d+)\./),eO=!!Zy&&+Zy[1],tO=T,nO=h,rO=gt,oO=$y,aO=Xy,iO=Qy,sO=Ce,cO=eO,lO=ng.aTypedArray,uO=ng.exportTypedArrayMethod,dO=F.Uint16Array,pO=dO&&tO(dO.prototype.sort),fO=!(!pO||nO((function(){pO(new dO(2),null)}))&&nO((function(){pO(new dO(2),{})}))),hO=!!pO&&!nO((function(){if(sO)return sO<74;if(aO)return aO<67;if(iO)return!0;if(cO)return cO<602;var e,t,n=new dO(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(pO(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));uO("sort",(function(e){return void 0!==e&&rO(e),hO?pO(this,e):oO(lO(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!hO||fO);var mO=rn,vO=en,gO=pb,_O=ng.aTypedArray;(0,ng.exportTypedArrayMethod)("subarray",(function(e,t){var n=_O(this),r=n.length,o=vO(e,r);return new(gO(n))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,mO((void 0===t?r:vO(t,r))-o))}));var bO=Ld,yO=ng,OO=h,MO=Pl,kO=F.Int8Array,CO=yO.aTypedArray,wO=yO.exportTypedArrayMethod,SO=[].toLocaleString,TO=!!kO&&OO((function(){SO.call(new kO(1))}));wO("toLocaleString",(function(){return bO(SO,TO?MO(CO(this)):CO(this),MO(arguments))}),OO((function(){return[1,2].toLocaleString()!=new kO([1,2]).toLocaleString()}))||!OO((function(){kO.prototype.toLocaleString.call([1,2])})));var IO=ng.exportTypedArrayMethod,EO=h,jO=T,DO=F.Uint8Array,LO=DO&&DO.prototype||{},AO=[].toString,NO=jO([].join);EO((function(){AO.call({})}))&&(AO=function(){return NO(this)});var RO=LO.toString!=AO;IO("toString",AO,RO),zo({global:!0,constructor:!0,forced:!Gh},{DataView:rv.DataView});var xO=bc,PO="ArrayBuffer",UO=rv.ArrayBuffer;function VO(e,t){t=t||{};var n=e.numberOfChannels,r=e.sampleRate,o=t.float32?3:1,a=3===o?32:16;return function(e,t,n,r,o){var a=o/8,i=r*a,s=new ArrayBuffer(44+e.length*a),c=new DataView(s);return BO(c,0,"RIFF"),c.setUint32(4,36+e.length*a,!0),BO(c,8,"WAVE"),BO(c,12,"fmt "),c.setUint32(16,16,!0),c.setUint16(20,t,!0),c.setUint16(22,r,!0),c.setUint32(24,n,!0),c.setUint32(28,n*i,!0),c.setUint16(32,i,!0),c.setUint16(34,o,!0),BO(c,36,"data"),c.setUint32(40,e.length*a,!0),1===t?function(e,t,n){for(var r=0;r<n.length;r++,t+=2){var o=Math.max(-1,Math.min(1,n[r]));e.setInt16(t,o<0?32768*o:32767*o,!0)}}(c,44,e):function(e,t,n){for(var r=0;r<n.length;r++,t+=4)e.setFloat32(t,n[r],!0)}(c,44,e),s}(2===n?function(e,t){for(var n=e.length+t.length,r=new Float32Array(n),o=0,a=0;o<n;)r[o++]=e[a],r[o++]=t[a],a++;return r}(e.getChannelData(0),e.getChannelData(1)):e.getChannelData(0),o,r,n,a)}function BO(e,t,n){for(var r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))}zo({global:!0,constructor:!0,forced:F.ArrayBuffer!==UO},{ArrayBuffer:UO}),xO(PO);var FO=function(){function e(t){l(this,e),this.audioContext_=t,this.inputPCM_=new Float32Array,this.outputPCM_=new Float32Array}return d(e,[{key:"onDump",value:function(e,t){if(t===Lh){var n=this.inputPCM_.length,r=new Float32Array(n+e[0].length);r.set(this.inputPCM_),r.set(e[0],n),this.inputPCM_=r}if(t===Ah){var o=this.outputPCM_.length,a=new Float32Array(o+e[0].length);a.set(this.outputPCM_),a.set(e[0],o),this.outputPCM_=a}}},{key:"getBlob",value:function(e){var t=e===Lh?this.inputPCM_:this.outputPCM_,n=this.audioContext_.createBuffer(2,t.length,48e3);n.copyToChannel(t,0,0),n.copyToChannel(t,1,0);var r=VO(n);return n=null,new window.Blob([new DataView(r)],{type:"audio/wav"})}},{key:"reset",value:function(){this.inputPCM_=new Float32Array,this.outputPCM_=new Float32Array}},{key:"destroy",value:function(){this.inputPCM_=null,this.outputPCM_=null}}]),e}(),GO=function(){function e(t){var n=this,r=t.sdkAppId,o=t.userId,a=t.audioContext,i=t.sign,s=t.status,c=t.worklet,u=t.timestamp,d=t.logger;l(this,e),this.audioContext_=a,this.destination_=this.audioContext_.createMediaStreamDestination(),this.gainNode_=this.audioContext_.createGain(),this.gainNode_.gain.value=1.1,this.log_=d,this.workletNode_=c,this.workletNode_.connect(this.gainNode_).connect(this.destination_),this.workletNode_.port.postMessage({type:"init",data:{sdkAppId:String(r),userId:o,timestamp:u,sign:i,status:s}}),this.workletNode_.port.onmessage=function(e){var t=e.data,r=t.type,o=t.data;if("ondump"===r&&n.isDumping_){var a=o.inputPCM,i=o.outputPCM;n.dump_.onDump(a,Lh),n.dump_.onDump(i,Ah)}"dumped"===r&&n.dumped()},this.trackConstraint_={},this.localStream_=null,this.audioTrack_=null,this.source_=null,this.denoiserTrack_=null,this.enableDenoise_=!0,this.emitter_=new Fh,this.dump_=new FO(this.audioContext_)}var t,n,o,a;return d(e,[{key:"dumped",value:function(){this.isDumping_=!1;var e=this.dump_.getBlob(Lh),t=this.dump_.getBlob(Ah);this.emitter_.emit("ondumpend",{blob:e,name:Lh}),this.emitter_.emit("ondumpend",{blob:t,name:Ah}),this.dump_.reset()}},{key:"process",value:(a=c(i().mark((function e(t){var n,r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.localStream_=t,this.log_.info("RTCAIDenoiser: denoiser process stream ID: ".concat(t.getId(),".")),this.audioTrack_=null==t?void 0:t.getAudioTrack(),this.audioTrack_){e.next=5;break}throw new Error("RTCAIDenoiser: cannot process localStream without audioTrack.");case 5:return e.next=7,this.audioTrack_.getSettings();case 7:return n=e.sent,this.destination_.channelCount=(null==n?void 0:n.channelCount)||1,(r=new MediaStream).addTrack(this.audioTrack_),this.source_=this.audioContext_.createMediaStreamSource(r),e.next=14,this.source_.connect(this.workletNode_);case 14:return this.trackConstraint_=this.audioTrack_.getConstraints(),this.trackConstraint_.noiseSuppression=!1,e.next=18,this.audioTrack_.applyConstraints(this.trackConstraint_);case 18:return o=this.destination_.stream,this.denoiserTrack_=o.getAudioTracks()[0],e.next=22,this.localStream_.replaceTrack(this.denoiserTrack_);case 22:this.localStream_&&this.localStream_.setIsAIDenoiser&&this.localStream_.setIsAIDenoiser(!0);case 23:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"updateTrack",value:(o=c(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new MediaStream,e.next=3,n.addTrack(t);case 3:r=this.audioContext_.createMediaStreamSource(n),this.source_.disconnect(),r.connect(this.workletNode_),this.audioTrack_.stop(),this.audioTrack_=t,this.source_=r,this.log_.info("RTCAIDenoiser: ".concat(this.localStream_.getUserId()," updateTrack success."));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"disable",value:(n=c(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.enableDenoise_=!1,null===(t=this.workletNode_)||void 0===t||t.port.postMessage({type:"disable"}),this.trackConstraint_.noiseSuppression=!0,e.next=5,this.audioTrack_.applyConstraints(this.trackConstraint_);case 5:return this.log_.info("RTCAIDenoiser: disable ai denoiser."),e.abrupt("return",this.enableDenoise_);case 7:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"enable",value:(t=c(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.enableDenoise_=!0,null===(t=this.workletNode_)||void 0===t||t.port.postMessage({type:"enable"}),this.trackConstraint_.noiseSuppression=!1,e.next=5,this.audioTrack_.applyConstraints(this.trackConstraint_);case 5:return this.log_.info("RTCAIDenoiser: enable ai denoiser."),e.abrupt("return",this.enableDenoise_);case 7:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"startDump",value:function(){return this.isDumping_?(this.log_.info("RTCAIDenoiser: data is currently being dumped."),!1):(this.workletNode_.port.postMessage({type:"startDump"}),this.dump_?this.dump_.reset():this.dump_=new FO(this.audioContext_),this.isDumping_=!0,this.log_.info("RTCAIDenoiser: start dump data."),!0)}},{key:"stopDump",value:function(){this.isDumping_&&(this.workletNode_.port.postMessage({type:"stopDump"}),this.isDumping_=!1,this.log_.info("RTCAIDenoiser: stop dump data."))}},{key:"getAudioTrack",value:function(){return this.audioTrack_}},{key:"getDenoiserTrack",value:function(){return this.denoiserTrack_}},{key:"enabled",get:function(){return this.enableDenoise_}},{key:"destroy",value:function(){var e,t,n,r,o,a,i;this.log_.info("RTCAIDenoiser: ".concat(this.localStream_.getUserId()," destroy processor.")),null===(e=this.localStream_)||void 0===e||e.stop(),null===(t=this.audioTrack_)||void 0===t||t.stop(),null===(n=this.workletNode_)||void 0===n||n.port.postMessage({type:"destroy"}),this.workletNode_.port.onmessage=null,null===(r=this.source_)||void 0===r||r.disconnect(),null===(o=this.destination_)||void 0===o||o.disconnect(),null===(a=this.workletNode_)||void 0===a||a.disconnect(),null===(i=this.dump_)||void 0===i||i.destroy(),this.emitter_.removeAllListeners()}},{key:"on",value:function(e,t,n){this.emitter_.on(e,t,n)}},{key:"off",value:function(e,t,n){"*"===e?this.emitter_.removeAllListeners():this.emitter_.off(e,t,n)}},{key:"resetDenoiser",value:function(e){if(r.default){var t=r.default.DenoiserMap;null!=t&&t.has(e.getUserId())&&t.delete(e.getUserId())}}}]),e}();r.default&&(r.default.addDenoiserProcessor=function(e){var t=e.processor,n=e.userId;if(r.default.DenoiserMap)r.default.DenoiserMap.set(n,t);else{var o=new Map;o.set(n,t),r.default.DenoiserMap=o}});var HO=function(){function e(t){var n=t.assetsPath;l(this,e),this.audioContext_=Dh(),this.assetsPath_=n,this.isLoaded_=!1}var t,n,o;return d(e,[{key:"createProcessor",value:(o=c(i().mark((function e(t){var n,o,s,c,l,u,d,p,f;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.default?r.default.Logger.loggerManager.createLogger({id:t.userId,userId:t.userId,sdkAppId:t.sdkAppId}):{info:console.log},o=String(Date.now()).slice(0,-3),e.next=4,Uh(a(a({},t),{},{timestamp:o}));case 4:if(s=e.sent,c=s.auth,l=s.sign,u=s.status,d=s.message,c){e.next=12;break}throw n.info("RTCAIDenoiser: ".concat(t.userId," auth result: ").concat(c,". Message: ").concat(d)),new Error(d);case 12:return e.next=14,this.load();case 14:return e.next=16,this.initWorklet();case 16:return p=e.sent,f=new GO(a(a({},t),{},{audioContext:this.audioContext_,timestamp:o,sign:l,status:u,worklet:p,logger:n})),n.info("RTCAIDenoiser: ".concat(t.userId," create denoiser processor success.")),r.default&&r.default.addDenoiserProcessor({processor:f,userId:t.userId}),e.abrupt("return",f);case 21:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"load",value:(n=c(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isLoaded_){e.next=10;break}return e.prev=1,e.next=4,this.audioContext_.audioWorklet.addModule("".concat(this.assetsPath_,"/denoiser-wasm.js"));case 4:this.isLoaded_=!0,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),console.error("Init assets from ".concat(this.assetsPath_," failed! Reason: ").concat(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return n.apply(this,arguments)})},{key:"initWorklet",value:(t=c(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",new AudioWorkletNode(this.audioContext_,"trtc-denoiser-processor",{numberOfInputs:1,numberOfOutputs:1}));case 4:return e.prev=4,e.t0=e.catch(0),e.next=8,this.load();case 8:return e.abrupt("return",new AudioWorkletNode(this.audioContext_,"trtc-denoiser-processor",{numberOfInputs:1,numberOfOutputs:1}));case 9:case"end":return e.stop()}}),e,this,[[0,4]])}))),function(){return t.apply(this,arguments)})},{key:"destroy",value:function(){var e;null===(e=this.audioContext_)||void 0===e||e.close()}},{key:"isSupported",value:function(){return"AudioWorklet"in window&&"WebAssembly"in window}}]),e}();return HO}))}).call(this,n("c8ba"))},"598a":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"],r=e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}});return r}))},"59eb":function(e,t,n){"use strict";e.exports=Math.pow},"59ed":function(e,t,n){"use strict";var r=n("1626"),o=n("0d51"),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(o(e)+" is not a function")}},"5a0c":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",a="minute",i="hour",s="day",c="week",l="month",u="quarter",d="year",p="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,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,v={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("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},_={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,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()),o=t.clone().add(r,l),a=n-o<0,i=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-o)/(a?o-i:i-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:p,h:i,m:a,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",y={};y[b]=v;var O="$isDayjsObject",M=function(e){return e instanceof S||!(!e||!e[O])},k=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var a=t.toLowerCase();y[a]&&(o=a),n&&(y[a]=n,o=a);var i=t.split("-");if(!o&&i.length>1)return e(i[0])}else{var s=t.name;y[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},C=function(e,t){if(M(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},w=_;w.l=k,w.i=M,w.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function v(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[O]=!0}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(w.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(h);if(r){var o=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},g.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()},g.$utils=function(){return w},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return C(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<C(e)},g.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!w.u(t)||t,u=w.p(e),f=function(e,t){var o=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},h=function(e,t){return w.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,v=this.$M,g=this.$D,_="set"+(this.$u?"UTC":"");switch(u){case d:return r?f(1,0):f(31,11);case l:return r?f(1,v):f(0,v+1);case c:var b=this.$locale().weekStart||0,y=(m<b?m+7:m)-b;return f(r?g-y:g+(6-y),v);case s:case p:return h(_+"Hours",0);case i:return h(_+"Minutes",1);case a:return h(_+"Seconds",2);case o:return h(_+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,c=w.p(e),u="set"+(this.$u?"UTC":""),f=(n={},n[s]=u+"Date",n[p]=u+"Date",n[l]=u+"Month",n[d]=u+"FullYear",n[i]=u+"Hours",n[a]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],h=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var m=this.clone().set(p,1);m.$d[f](h),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[w.p(e)]()},g.add=function(r,u){var p,f=this;r=Number(r);var h=w.p(u),m=function(e){var t=C(f);return w.w(t.date(t.date()+Math.round(e*r)),f)};if(h===l)return this.set(l,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===s)return m(1);if(h===c)return m(7);var v=(p={},p[a]=t,p[i]=n,p[o]=e,p)[h]||1,g=this.$d.getTime()+r*v;return w.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=w.z(this),a=this.$H,i=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,o,a){return e&&(e[n]||e(t,r))||o[n].slice(0,a)},p=function(e){return w.s(a%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return w.s(t.$y,4,"0");case"M":return s+1;case"MM":return w.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,l,3);case"MMMM":return d(l,s);case"D":return t.$D;case"DD":return w.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(a);case"HH":return w.s(a,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(a,i,!0);case"A":return h(a,i,!1);case"m":return String(i);case"mm":return w.s(i,2,"0");case"s":return String(t.$s);case"ss":return w.s(t.$s,2,"0");case"SSS":return w.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,p,f){var h,m=this,v=w.p(p),g=C(r),_=(g.utcOffset()-this.utcOffset())*t,b=this-g,y=function(){return w.m(m,g)};switch(v){case d:h=y()/12;break;case l:h=y();break;case u:h=y()/3;break;case c:h=(b-_)/6048e5;break;case s:h=(b-_)/864e5;break;case i:h=b/n;break;case a:h=b/t;break;case o:h=b/e;break;default:h=b}return f?h:w.a(h)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return y[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=k(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return w.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),T=S.prototype;return C.prototype=T,[["$ms",r],["$s",o],["$m",a],["$H",i],["$W",s],["$M",l],["$y",d],["$D",p]].forEach((function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,S,C),e.$i=!0),C},C.locale=k,C.isDayjs=M,C.unix=function(e){return C(1e3*e)},C.en=y[b],C.Ls=y,C.p={},C}))},"5a89":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("9a73"),o=n.n(r),a=(n("6806"),n("d5eb"));const i=e=>{var t;return o()(t=["",...a["a"]]).call(t,e)}},"5a8b":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i}));var r=n("2b0b"),o=n.n(r),a=n("0931");const i=e=>a["isClient"]?window.requestAnimationFrame(e):o()(e,16),s=e=>a["isClient"]?window.cancelAnimationFrame(e):clearTimeout(e)},"5ab9":function(e,t,n){"use strict";n("e519");var r=n("764b");e.exports=r.Array.isArray},"5af5":function(e,t,n){"use strict";var r=n("0363"),o=n("4180").f,a=r("metadata"),i=Function.prototype;void 0===i[a]&&o(i,a,{value:null})},"5afb":function(e,t,n){"use strict";var r,o,a,i,s=n("3eba"),c=n("a0b9"),l=n("6414"),u=n("fb2d"),d=n("0e6f"),p=n("06fa"),f=n("edbd"),h=n("eb54"),m=n("7a37"),v=n("f868"),g=n("0315"),_=n("d68b"),b=s.setImmediate,y=s.clearImmediate,O=s.process,M=s.Dispatch,k=s.Function,C=s.MessageChannel,w=s.String,S=0,T={},I="onreadystatechange";p((function(){r=s.location}));var E=function(e){if(d(T,e)){var t=T[e];delete T[e],t()}},j=function(e){return function(){E(e)}},D=function(e){E(e.data)},L=function(e){s.postMessage(w(e),r.protocol+"//"+r.host)};b&&y||(b=function(e){v(arguments.length,1);var t=u(e)?e:k(e),n=h(arguments,1);return T[++S]=function(){c(t,void 0,n)},o(S),S},y=function(e){delete T[e]},_?o=function(e){O.nextTick(j(e))}:M&&M.now?o=function(e){M.now(j(e))}:C&&!g?(a=new C,i=a.port2,a.port1.onmessage=D,o=l(i.postMessage,i)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!p(L)?(o=L,s.addEventListener("message",D,!1)):o=I in m("script")?function(e){f.appendChild(m("script"))[I]=function(){f.removeChild(this),E(e)}}:function(e){setTimeout(j(e),0)}),e.exports={set:b,clear:y}},"5aff":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"},n=e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10,o=e%100-r,a=e>=100?100:null;return e+(t[r]||t[o]||t[a])}},week:{dow:1,doy:7}});return n}))},"5b14":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var o=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return o+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return o+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return o+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return o+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return o+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return o+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}var o=e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return o}))},"5b1a":function(e,t,n){e.exports=n("0d26")},"5b57":function(e,t,n){"use strict";var r=n("6414"),o=n("7106"),a=n("6f8d"),i=n("1301"),s=n("2616"),c=n("c74f"),l=n("437b"),u=n("d9f3"),d=n("0b7b"),p=n("8a3b"),f=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,n){var v,g,_,b,y,O,M,k=n&&n.that,C=!(!n||!n.AS_ENTRIES),w=!(!n||!n.IS_RECORD),S=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),I=r(t,k),E=function(e){var t=v;return v=void 0,t&&p(t,"normal"),new h(!0,e)},j=function(e){return C?(a(e),T?I(e[0],e[1],E):I(e[0],e[1])):T?I(e,E):I(e)};if(w)v=e.iterator;else if(S)v=e;else{if(g=d(e),!g)throw new f(i(e)+" is not iterable");if(s(g)){for(_=0,b=c(e);b>_;_++)if(y=j(e[_]),y&&l(m,y))return y;return new h(!1)}v=u(e,g)}O=w?e.next:v.next;while(!(M=o(O,v)).done){var D=M.value;try{y=j(D)}catch(L){if(!v)throw L;p(v,"throw",L)}if("object"==typeof y&&y&&l(m,y))return y}return new h(!1)}},"5c3a":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{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"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return t}))},"5c4c":function(e,t,n){"use strict";var r=n("a0cd");e.exports=r},"5c68":function(e,t,n){"use strict";var r=n("e392");e.exports=r},"5c6c":function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5cbb":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}});return t}))},"5cce":function(e,t){e.exports={version:"0.26.1"}},"5ce5":function(e,t,n){"use strict";var r=n("a5eb"),o=n("9883"),a=n("06fa"),i=n("f868"),s=n("8c12"),c=n("36b8"),l=o("URL"),u=c&&a((function(){l.canParse()})),d=a((function(){return 1!==l.canParse.length}));r({target:"URL",stat:!0,forced:!u||d},{canParse:function(e){var t=i(arguments.length,1),n=s(e),r=t<2||void 0===arguments[1]?void 0:s(arguments[1]);try{return!!new l(n,r)}catch(o){return!1}}})},"5d30":function(e,t,n){"use strict";var r=n("6220"),o=n("c74f"),a=n("3e23"),i=n("6414"),s=n("6c15"),c=function(e,t,n,l,u,d,p,f){var h,m,v=u,g=0,_=!!p&&i(p,f);while(g<l)g in n&&(h=_?_(n[g],g,t):n[g],d>0&&r(h)?(m=o(h),v=c(e,t,h,m,v,d-1)-1):(a(v+1),s(e,v,h)),v++),g++;return v};e.exports=c},"5d55":function(e,t,n){"use strict";n("5145");var r=n("8f95"),o=n("0e6f"),a=n("437b"),i=n("30ef"),s=Array.prototype,c={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.keys;return e===s||a(s,e)&&t===s.keys||o(c,r(e))?i:t}},"5dd2":function(e,t,n){"use strict";var r=n("a5eb"),o=n("1317");r({target:"Object",stat:!0,forced:Object.isExtensible!==o},{isExtensible:o})},"5dd9":function(e,t,n){"use strict";var r=n("a5eb");r({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},"5e0b":function(e,t,n){"use strict";n("9103"),n("6f89");var r=n("c18e");e.exports=r("Array","values")},"5e0f":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var i=e.name?e:e.$locale(),s=o(i[t]),c=o(i[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=i.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},i=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):a(e,"months")},monthsShort:function(t){return t?t.format("MMM"):a(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):a(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):a(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):a(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=i();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(i(),"months")},n.monthsShort=function(){return a(i(),"monthsShort","months",3)},n.weekdays=function(e){return a(i(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return a(i(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return a(i(),"weekdaysMin","weekdays",2,e)}}}))},"5e76":function(e,t,n){"use strict";var r="top",o="bottom",a="right",i="left",s="auto",c=[r,o,a,i],l="start",u="end",d="clippingParents",p="viewport",f="popper",h="reference",m=c.reduce((function(e,t){return e.concat([t+"-"+l,t+"-"+u])}),[]),v=[].concat(c,[s]).reduce((function(e,t){return e.concat([t,t+"-"+l,t+"-"+u])}),[]),g="beforeRead",_="read",b="afterRead",y="beforeMain",O="main",M="afterMain",k="beforeWrite",C="write",w="afterWrite",S=[g,_,b,y,O,M,k,C,w];function T(e){return e?(e.nodeName||"").toLowerCase():null}function I(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function E(e){var t=I(e).Element;return e instanceof t||e instanceof Element}function j(e){var t=I(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function D(e){if("undefined"==typeof ShadowRoot)return!1;var t=I(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function L(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!j(o)||!T(o)||(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))}function A(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),i=a.reduce((function(e,t){return e[t]="",e}),{});!j(r)||!T(r)||(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}}var N={name:"applyStyles",enabled:!0,phase:"write",fn:L,effect:A,requires:["computeStyles"]};function R(e){return e.split("-")[0]}var x=Math.max,P=Math.min,U=Math.round;function V(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function B(){return!/^((?!chrome|android).)*safari/i.test(V())}function F(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&j(e)&&(o=e.offsetWidth>0&&U(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&U(r.height)/e.offsetHeight||1);var i=E(e)?I(e):window,s=i.visualViewport,c=!B()&&n,l=(r.left+(c&&s?s.offsetLeft:0))/o,u=(r.top+(c&&s?s.offsetTop:0))/a,d=r.width/o,p=r.height/a;return{width:d,height:p,top:u,right:l+d,bottom:u+p,left:l,x:l,y:u}}function G(e){var t=F(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function H(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&D(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Y(e){return I(e).getComputedStyle(e)}function z(e){return["table","td","th"].indexOf(T(e))>=0}function q(e){return((E(e)?e.ownerDocument:e.document)||window.document).documentElement}function W(e){return"html"===T(e)?e:e.assignedSlot||e.parentNode||(D(e)?e.host:null)||q(e)}function K(e){return j(e)&&"fixed"!==Y(e).position?e.offsetParent:null}function $(e){var t=/firefox/i.test(V()),n=/Trident/i.test(V());if(n&&j(e)){var r=Y(e);if("fixed"===r.position)return null}var o=W(e);for(D(o)&&(o=o.host);j(o)&&["html","body"].indexOf(T(o))<0;){var a=Y(o);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return o;o=o.parentNode}return null}function J(e){for(var t=I(e),n=K(e);n&&z(n)&&"static"===Y(n).position;)n=K(n);return n&&("html"===T(n)||"body"===T(n)&&"static"===Y(n).position)?t:n||$(e)||t}function X(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Q(e,t,n){return x(e,P(t,n))}function Z(e,t,n){var r=Q(e,t,n);return r>n?n:r}function ee(){return{top:0,right:0,bottom:0,left:0}}function te(e){return Object.assign({},ee(),e)}function ne(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var re=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,te("number"!=typeof e?e:ne(e,c))};function oe(e){var t,n=e.state,s=e.name,c=e.options,l=n.elements.arrow,u=n.modifiersData.popperOffsets,d=R(n.placement),p=X(d),f=[i,a].indexOf(d)>=0,h=f?"height":"width";if(l&&u){var m=re(c.padding,n),v=G(l),g="y"===p?r:i,_="y"===p?o:a,b=n.rects.reference[h]+n.rects.reference[p]-u[p]-n.rects.popper[h],y=u[p]-n.rects.reference[p],O=J(l),M=O?"y"===p?O.clientHeight||0:O.clientWidth||0:0,k=b/2-y/2,C=m[g],w=M-v[h]-m[_],S=M/2-v[h]/2+k,T=Q(C,S,w),I=p;n.modifiersData[s]=(t={},t[I]=T,t.centerOffset=T-S,t)}}function ae(e){var t=e.state,n=e.options,r=n.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"==typeof o&&(o=t.elements.popper.querySelector(o),!o)||H(t.elements.popper,o)&&(t.elements.arrow=o))}var ie={name:"arrow",enabled:!0,phase:"main",fn:oe,effect:ae,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function se(e){return e.split("-")[1]}var ce={top:"auto",right:"auto",bottom:"auto",left:"auto"};function le(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:U(n*o)/o||0,y:U(r*o)/o||0}}function ue(e){var t,n=e.popper,s=e.popperRect,c=e.placement,l=e.variation,d=e.offsets,p=e.position,f=e.gpuAcceleration,h=e.adaptive,m=e.roundOffsets,v=e.isFixed,g=d.x,_=void 0===g?0:g,b=d.y,y=void 0===b?0:b,O="function"==typeof m?m({x:_,y:y}):{x:_,y:y};_=O.x,y=O.y;var M=d.hasOwnProperty("x"),k=d.hasOwnProperty("y"),C=i,w=r,S=window;if(h){var T=J(n),E="clientHeight",j="clientWidth";if(T===I(n)&&(T=q(n),"static"!==Y(T).position&&"absolute"===p&&(E="scrollHeight",j="scrollWidth")),T=T,c===r||(c===i||c===a)&&l===u){w=o;var D=v&&T===S&&S.visualViewport?S.visualViewport.height:T[E];y-=D-s.height,y*=f?1:-1}if(c===i||(c===r||c===o)&&l===u){C=a;var L=v&&T===S&&S.visualViewport?S.visualViewport.width:T[j];_-=L-s.width,_*=f?1:-1}}var A,N=Object.assign({position:p},h&&ce),R=!0===m?le({x:_,y:y},I(n)):{x:_,y:y};return _=R.x,y=R.y,f?Object.assign({},N,(A={},A[w]=k?"0":"",A[C]=M?"0":"",A.transform=(S.devicePixelRatio||1)<=1?"translate("+_+"px, "+y+"px)":"translate3d("+_+"px, "+y+"px, 0)",A)):Object.assign({},N,(t={},t[w]=k?y+"px":"",t[C]=M?_+"px":"",t.transform="",t))}function de(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,c=void 0===s||s,l={placement:R(t.placement),variation:se(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ue(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ue(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var pe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:de,data:{}},fe={passive:!0};function he(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,c=I(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,fe)})),s&&c.addEventListener("resize",n.update,fe),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,fe)})),s&&c.removeEventListener("resize",n.update,fe)}}var me={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:he,data:{}},ve={left:"right",right:"left",bottom:"top",top:"bottom"};function ge(e){return e.replace(/left|right|bottom|top/g,(function(e){return ve[e]}))}var _e={start:"end",end:"start"};function be(e){return e.replace(/start|end/g,(function(e){return _e[e]}))}function ye(e){var t=I(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Oe(e){return F(q(e)).left+ye(e).scrollLeft}function Me(e,t){var n=I(e),r=q(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;var l=B();(l||!l&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s+Oe(e),y:c}}function ke(e){var t,n=q(e),r=ye(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=x(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=x(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Oe(e),c=-r.scrollTop;return"rtl"===Y(o||n).direction&&(s+=x(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:c}}function Ce(e){var t=Y(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function we(e){return["html","body","#document"].indexOf(T(e))>=0?e.ownerDocument.body:j(e)&&Ce(e)?e:we(W(e))}function Se(e,t){var n;void 0===t&&(t=[]);var r=we(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=I(r),i=o?[a].concat(a.visualViewport||[],Ce(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Se(W(i)))}function Te(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ie(e,t){var n=F(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ee(e,t,n){return t===p?Te(Me(e,n)):E(t)?Ie(t,n):Te(ke(q(e)))}function je(e){var t=Se(W(e)),n=["absolute","fixed"].indexOf(Y(e).position)>=0,r=n&&j(e)?J(e):e;return E(r)?t.filter((function(e){return E(e)&&H(e,r)&&"body"!==T(e)})):[]}function De(e,t,n,r){var o="clippingParents"===t?je(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce((function(t,n){var o=Ee(e,n,r);return t.top=x(o.top,t.top),t.right=P(o.right,t.right),t.bottom=P(o.bottom,t.bottom),t.left=x(o.left,t.left),t}),Ee(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Le(e){var t,n=e.reference,s=e.element,c=e.placement,d=c?R(c):null,p=c?se(c):null,f=n.x+n.width/2-s.width/2,h=n.y+n.height/2-s.height/2;switch(d){case r:t={x:f,y:n.y-s.height};break;case o:t={x:f,y:n.y+n.height};break;case a:t={x:n.x+n.width,y:h};break;case i:t={x:n.x-s.width,y:h};break;default:t={x:n.x,y:n.y}}var m=d?X(d):null;if(null!=m){var v="y"===m?"height":"width";switch(p){case l:t[m]=t[m]-(n[v]/2-s[v]/2);break;case u:t[m]=t[m]+(n[v]/2-s[v]/2);break}}return t}function Ae(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,l=n.strategy,u=void 0===l?e.strategy:l,m=n.boundary,v=void 0===m?d:m,g=n.rootBoundary,_=void 0===g?p:g,b=n.elementContext,y=void 0===b?f:b,O=n.altBoundary,M=void 0!==O&&O,k=n.padding,C=void 0===k?0:k,w=te("number"!=typeof C?C:ne(C,c)),S=y===f?h:f,T=e.rects.popper,I=e.elements[M?S:y],j=De(E(I)?I:I.contextElement||q(e.elements.popper),v,_,u),D=F(e.elements.reference),L=Le({reference:D,element:T,placement:s}),A=Te(Object.assign({},T,L)),N=y===f?A:D,R={top:j.top-N.top+w.top,bottom:N.bottom-j.bottom+w.bottom,left:j.left-N.left+w.left,right:N.right-j.right+w.right},x=e.modifiersData.offset;if(y===f&&x){var P=x[s];Object.keys(R).forEach((function(e){var t=[a,o].indexOf(e)>=0?1:-1,n=[r,o].indexOf(e)>=0?"y":"x";R[e]+=P[n]*t}))}return R}function Ne(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?v:l,d=se(r),p=d?s?m:m.filter((function(e){return se(e)===d})):c,f=p.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=p);var h=f.reduce((function(t,n){return t[n]=Ae(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[R(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}function Re(e){if(R(e)===s)return[];var t=ge(e);return[be(e),t,be(t)]}function xe(e){var t=e.state,n=e.options,c=e.name;if(!t.modifiersData[c]._skip){for(var u=n.mainAxis,d=void 0===u||u,p=n.altAxis,f=void 0===p||p,h=n.fallbackPlacements,m=n.padding,v=n.boundary,g=n.rootBoundary,_=n.altBoundary,b=n.flipVariations,y=void 0===b||b,O=n.allowedAutoPlacements,M=t.options.placement,k=R(M),C=k===M,w=h||(C||!y?[ge(M)]:Re(M)),S=[M].concat(w).reduce((function(e,n){return e.concat(R(n)===s?Ne(t,{placement:n,boundary:v,rootBoundary:g,padding:m,flipVariations:y,allowedAutoPlacements:O}):n)}),[]),T=t.rects.reference,I=t.rects.popper,E=new Map,j=!0,D=S[0],L=0;L<S.length;L++){var A=S[L],N=R(A),x=se(A)===l,P=[r,o].indexOf(N)>=0,U=P?"width":"height",V=Ae(t,{placement:A,boundary:v,rootBoundary:g,altBoundary:_,padding:m}),B=P?x?a:i:x?o:r;T[U]>I[U]&&(B=ge(B));var F=ge(B),G=[];if(d&&G.push(V[N]<=0),f&&G.push(V[B]<=0,V[F]<=0),G.every((function(e){return e}))){D=A,j=!1;break}E.set(A,G)}if(j)for(var H=y?3:1,Y=function(e){var t=S.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return D=t,"break"},z=H;z>0;z--){var q=Y(z);if("break"===q)break}t.placement!==D&&(t.modifiersData[c]._skip=!0,t.placement=D,t.reset=!0)}}var Pe={name:"flip",enabled:!0,phase:"main",fn:xe,requiresIfExists:["offset"],data:{_skip:!1}};function Ue(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ve(e){return[r,a,o,i].some((function(t){return e[t]>=0}))}function Be(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Ae(t,{elementContext:"reference"}),s=Ae(t,{altBoundary:!0}),c=Ue(i,r),l=Ue(s,o,a),u=Ve(c),d=Ve(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var Fe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Be};function Ge(e,t,n){var o=R(e),s=[i,r].indexOf(o)>=0?-1:1,c="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=c[0],u=c[1];return l=l||0,u=(u||0)*s,[i,a].indexOf(o)>=0?{x:u,y:l}:{x:l,y:u}}function He(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=v.reduce((function(e,n){return e[n]=Ge(n,t.rects,a),e}),{}),s=i[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=i}var Ye={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:He};function ze(e){var t=e.state,n=e.name;t.modifiersData[n]=Le({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var qe={name:"popperOffsets",enabled:!0,phase:"read",fn:ze,data:{}};function We(e){return"x"===e?"y":"x"}function Ke(e){var t=e.state,n=e.options,s=e.name,c=n.mainAxis,u=void 0===c||c,d=n.altAxis,p=void 0!==d&&d,f=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.padding,g=n.tether,_=void 0===g||g,b=n.tetherOffset,y=void 0===b?0:b,O=Ae(t,{boundary:f,rootBoundary:h,padding:v,altBoundary:m}),M=R(t.placement),k=se(t.placement),C=!k,w=X(M),S=We(w),T=t.modifiersData.popperOffsets,I=t.rects.reference,E=t.rects.popper,j="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,D="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(T){if(u){var N,U="y"===w?r:i,V="y"===w?o:a,B="y"===w?"height":"width",F=T[w],H=F+O[U],Y=F-O[V],z=_?-E[B]/2:0,q=k===l?I[B]:E[B],W=k===l?-E[B]:-I[B],K=t.elements.arrow,$=_&&K?G(K):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ee(),ne=te[U],re=te[V],oe=Q(0,I[B],$[B]),ae=C?I[B]/2-z-oe-ne-D.mainAxis:q-oe-ne-D.mainAxis,ie=C?-I[B]/2+z+oe+re+D.mainAxis:W+oe+re+D.mainAxis,ce=t.elements.arrow&&J(t.elements.arrow),le=ce?"y"===w?ce.clientTop||0:ce.clientLeft||0:0,ue=null!=(N=null==L?void 0:L[w])?N:0,de=F+ae-ue-le,pe=F+ie-ue,fe=Q(_?P(H,de):H,F,_?x(Y,pe):Y);T[w]=fe,A[w]=fe-F}if(p){var he,me="x"===w?r:i,ve="x"===w?o:a,ge=T[S],_e="y"===S?"height":"width",be=ge+O[me],ye=ge-O[ve],Oe=-1!==[r,i].indexOf(M),Me=null!=(he=null==L?void 0:L[S])?he:0,ke=Oe?be:ge-I[_e]-E[_e]-Me+D.altAxis,Ce=Oe?ge+I[_e]+E[_e]-Me-D.altAxis:ye,we=_&&Oe?Z(ke,ge,Ce):Q(_?ke:be,ge,_?Ce:ye);T[S]=we,A[S]=we-ge}t.modifiersData[s]=A}}var $e={name:"preventOverflow",enabled:!0,phase:"main",fn:Ke,requiresIfExists:["offset"]};function Je(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Xe(e){return e!==I(e)&&j(e)?Je(e):ye(e)}function Qe(e){var t=e.getBoundingClientRect(),n=U(t.width)/e.offsetWidth||1,r=U(t.height)/e.offsetHeight||1;return 1!==n||1!==r}function Ze(e,t,n){void 0===n&&(n=!1);var r=j(t),o=j(t)&&Qe(t),a=q(t),i=F(e,o,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==T(t)||Ce(a))&&(s=Xe(t)),j(t)?(c=F(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Oe(a))),{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function et(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name);var a=[].concat(e.requires||[],e.requiresIfExists||[]);a.forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function tt(e){var t=et(e);return S.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function nt(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function rt(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var ot={placement:"bottom",modifiers:[],strategy:"absolute"};function at(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function it(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?ot:o;return function(e,t,n){void 0===n&&(n=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},ot,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},i=[],s=!1,c={state:o,setOptions:function(n){var i="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},a,o.options,i),o.scrollParents={reference:E(e)?Se(e):e.contextElement?Se(e.contextElement):[],popper:Se(t)};var s=tt(rt([].concat(r,o.options.modifiers)));return o.orderedModifiers=s.filter((function(e){return e.enabled})),l(),c.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(at(t,n)){o.rects={reference:Ze(t,J(n),"fixed"===o.options.strategy),popper:G(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var a=o.orderedModifiers[r],i=a.fn,l=a.options,u=void 0===l?{}:l,d=a.name;"function"==typeof i&&(o=i({state:o,options:u,name:d,instance:c})||o)}else o.reset=!1,r=-1}}},update:nt((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),destroy:function(){u(),s=!0}};if(!at(e,t))return c;function l(){o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var s=a({state:o,name:t,instance:c,options:r}),l=function(){};i.push(s||l)}}))}function u(){i.forEach((function(e){return e()})),i=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var st=it(),ct=[me,qe,pe,N],lt=it({defaultModifiers:ct}),ut=[me,qe,pe,N,Ye,Pe,$e,ie,Fe],dt=it({defaultModifiers:ut});t.afterMain=M,t.afterRead=b,t.afterWrite=w,t.applyStyles=N,t.arrow=ie,t.auto=s,t.basePlacements=c,t.beforeMain=y,t.beforeRead=g,t.beforeWrite=k,t.bottom=o,t.clippingParents=d,t.computeStyles=pe,t.createPopper=dt,t.createPopperBase=st,t.createPopperLite=lt,t.detectOverflow=Ae,t.end=u,t.eventListeners=me,t.flip=Pe,t.hide=Fe,t.left=i,t.main=O,t.modifierPhases=S,t.offset=Ye,t.placements=v,t.popper=f,t.popperGenerator=it,t.popperOffsets=qe,t.preventOverflow=$e,t.read=_,t.reference=h,t.right=a,t.start=l,t.top=r,t.variationPlacements=m,t.viewport=p,t.write=C},"5e77":function(e,t,n){"use strict";var r=n("83ab"),o=n("1a2d"),a=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,s=o(a,"name"),c=s&&"something"===function(){}.name,l=s&&(!r||r&&i(a,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},"5ecc":function(e,t,n){"use strict";var r=n("a5eb"),o=n("9691");r({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:o})},"5f02":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},"5f66":function(e,t,n){"use strict";var r=n("b439");n("2611"),n("f2de"),n("ab47"),n("74fd"),n("5ecc"),n("3696"),n("0f8e"),n("fc1d"),n("266f"),n("9802"),e.exports=r},"5f72":function(e,t,n){"use strict";var r=n("a5eb"),o=n("ce18"),a=n("4e19"),i=n("1875"),s=n("5b57"),c=n("f775"),l=n("7042"),u=n("06fa"),d=c.Map,p=c.has,f=c.get,h=c.set,m=o([].push),v=l||u((function(){return 1!==d.groupBy("ab",(function(e){return e})).get("a").length}));r({target:"Map",stat:!0,forced:l||v},{groupBy:function(e,t){i(e),a(t);var n=new d,r=0;return s(e,(function(e){var o=t(e,r++);p(n,o)?m(f(n,o),e):h(n,o,[e])})),n}})},"5f7d":function(e,t,n){"use strict";var r=n("437b"),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new o("Incorrect invocation")}},"5f9e":function(e,t,n){"use strict";var r=n("437b"),o=n("4202"),a=Array.prototype;e.exports=function(e){var t=e.filter;return e===a||r(a,e)&&t===a.filter?o:t}},"5fbd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?":e":1===t||2===t?":a":":e";return e+n},week:{dow:1,doy:4}});return t}))},"600a":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("1ad4"),o=n("7c31"),a=n("eb547");const i=r["b"].create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new o["d"]({key:new o["e"]("placeholder"),props:{decorations:({doc:e,selection:t})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=t,i=[];if(!n)return null;const s=this.editor.isEmpty;return e.descendants((e,t)=>{const n=o>=t&&o<=t+e.nodeSize,c=!e.isLeaf&&Object(r["h"])(e);if((n||!this.options.showOnlyCurrent)&&c){const r=[this.options.emptyNodeClass];s&&r.push(this.options.emptyEditorClass);const o=a["a"].node(t,t+e.nodeSize,{class:r.join(" "),"data-placeholder":"function"===typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:e,pos:t,hasAnchor:n}):this.options.placeholder});i.push(o)}return this.options.includeChildren}),a["b"].create(e,i)}}})]}})},"606e":function(e,t,n){"use strict";var r=n("5f9e");e.exports=r},6117:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}});return t}))},6118:function(e,t,n){"use strict";var r=n("2552");e.exports=r},6140:function(e,t,n){"use strict";var r=n("a5eb"),o=n("1967");r({target:"Number",stat:!0,forced:Number.parseInt!==o},{parseInt:o})},"61fe":function(e,t,n){"use strict";var r=n("a5eb"),o=n("13cf"),a=n("44ba").f,i=n("6725"),s=n("8c12"),c=n("9e51"),l=n("1875"),u=n("8c58"),d=n("7042"),p=o("".slice),f=Math.min,h=u("endsWith"),m=!d&&!h&&!!function(){var e=a(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!m&&!h},{endsWith:function(e){var t=s(l(this));c(e);var n=s(e),r=arguments.length>1?arguments[1]:void 0,o=t.length,a=void 0===r?o:f(i(r),o);return p(t,a-n.length,a)===n}})},6220:function(e,t,n){"use strict";var r=n("fc48");e.exports=Array.isArray||function(e){return"Array"===r(e)}},"629c":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));n("14d9");var r=n("4573"),o=n.n(r),a=n("e4f0"),i=n.n(a),s=n("49c6"),c=n("0931"),l=n("6a7a"),u=n("7a23");let d=[];const p=e=>{Object(l["b"])(e)===s["a"].esc&&o()(d).call(d,t=>t(e))},f=e=>{Object(u["onMounted"])(()=>{0===d.length&&document.addEventListener("keydown",p),c["isClient"]&&d.push(e)}),Object(u["onBeforeUnmount"])(()=>{d=i()(d).call(d,t=>t!==e),0===d.length&&c["isClient"]&&document.removeEventListener("keydown",p)})}},"62a4":function(e,t,n){"use strict";n("845a");var r=n("c18e");e.exports=r("Array","sort")},"62d0":function(e,t,n){"use strict";var r=n("8c68");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"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}},6326:function(e,t,n){"use strict";n("f8b4");var r=n("764b");e.exports=r.Reflect.construct},6374:function(e,t,n){"use strict";var r=n("cfe9"),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6386:function(e,t,n){"use strict";var r=n("a421"),o=n("4508"),a=n("c74f"),i=function(e){return function(t,n,i){var s=r(t),c=a(s);if(0===c)return!e&&-1;var l,u=o(i,c);if(e&&n!==n){while(c>u)if(l=s[u++],l!==l)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"638c":function(e,t,n){"use strict";var r=n("ce18"),o=n("06fa"),a=n("fc48"),i=Object,s=r("".split);e.exports=o((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"===a(e)?s(e,""):i(e)}:i},6403:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t}))},6414:function(e,t,n){"use strict";var r=n("13cf"),o=n("4e19"),a=n("a180"),i=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:a?i(e,t):function(){return e.apply(t,arguments)}}},"64db":function(e,t){},6591:function(e,t,n){"use strict";e.exports=Math.floor},6594:function(e,t,n){"use strict";var r=n("a5eb"),o=n("ce18"),a=n("6e9a"),i=n("dfdb"),s=n("0e6f"),c=n("4180").f,l=n("0cf0"),u=n("8e11"),d=n("1317"),p=n("3e80"),f=n("42e6"),h=!1,m=p("meta"),v=0,g=function(e){c(e,m,{value:{objectID:"O"+v++,weakData:{}}})},_=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!d(e))return"F";if(!t)return"E";g(e)}return e[m].objectID},b=function(e,t){if(!s(e,m)){if(!d(e))return!0;if(!t)return!1;g(e)}return e[m].weakData},y=function(e){return f&&h&&d(e)&&!s(e,m)&&g(e),e},O=function(){M.enable=function(){},h=!0;var e=l.f,t=o([].splice),n={};n[m]=1,e(n).length&&(l.f=function(n){for(var r=e(n),o=0,a=r.length;o<a;o++)if(r[o]===m){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},M=e.exports={enable:O,fastKey:_,getWeakData:b,onFreeze:y};a[m]=!0},"65b8":function(e,t,n){e.exports=n("27ac")},"65db":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});return t}))},6605:function(e,t,n){"use strict";n.d(t,"a",(function(){return _n})),n.d(t,"b",(function(){return Rt}));n("d9e2"),n("14d9");var r=n("65b8"),o=n.n(r),a=n("9a73"),i=n.n(a),s=n("52da"),c=n.n(s),l=n("4573"),u=n.n(l),d=n("3393"),p=n.n(d),f=n("78b2"),h=n.n(f),m=n("2d80"),v=n.n(m),g=n("e6da"),_=n.n(g),b=n("a4fc"),y=n.n(b),O=n("045d"),M=n.n(O),k=n("c651"),C=n.n(k),w=n("505e"),S=n.n(w),T=n("e4f0"),I=n.n(T),E=n("fa81"),j=n.n(E),D=n("fc56"),L=n.n(D),A=n("14b1"),N=n.n(A),R=n("a3e3"),x=n.n(R),P=n("298b"),U=n.n(P),V=n("05f2"),B=n.n(V),F=n("4c43"),G=n.n(F),H=n("3818"),Y=n.n(H),z=n("c52e"),q=n.n(z),W=n("5b1a"),K=n.n(W),$=n("8fa2"),J=n.n($),X=n("df10"),Q=n.n(X),Z=n("49d1"),ee=n.n(Z),te=n("e76e"),ne=n.n(te),re=n("e946"),oe=n.n(re),ae=(n("d254"),n("c751")),ie=n.n(ae),se=n("3b4c"),ce=n.n(se),le=n("7a23");n("3f4e");
/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/
const ue="undefined"!==typeof document;function de(e){return"object"===typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function pe(e){return e.__esModule||"Module"===e[ee.a]||e.default&&de(e.default)}const fe=ne.a;function he(e,t){const n={};for(const r in t){const o=t[r];n[r]=ve(o)?N()(o).call(o,e):e(o)}return n}const me=()=>{},ve=oe.a;function ge(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const _e=/#/g,be=/&/g,ye=/\//g,Oe=/=/g,Me=/\?/g,ke=/\+/g,Ce=/%5B/g,we=/%5D/g,Se=/%5E/g,Te=/%60/g,Ie=/%7B/g,Ee=/%7C/g,je=/%7D/g,De=/%20/g;function Le(e){return null==e?"":encodeURI(""+e).replace(Ee,"|").replace(Ce,"[").replace(we,"]")}function Ae(e){return Le(e).replace(Ie,"{").replace(je,"}").replace(Se,"^")}function Ne(e){return Le(e).replace(ke,"%2B").replace(De,"+").replace(_e,"%23").replace(be,"%26").replace(Te,"`").replace(Ie,"{").replace(je,"}").replace(Se,"^")}function Re(e){return Ne(e).replace(Oe,"%3D")}function xe(e){return Le(e).replace(_e,"%23").replace(Me,"%3F")}function Pe(e){return xe(e).replace(ye,"%2F")}function Ue(e){if(null==e)return null;try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Ve=/\/$/,Be=e=>e.replace(Ve,"");function Fe(e,t,n="/"){let r,a={},i="",s="";const l=o()(t).call(t,"#");let u=o()(t).call(t,"?");return u=l>=0&&u>l?-1:u,u>=0&&(r=c()(t).call(t,0,u),i=c()(t).call(t,u,l>0?l:t.length),a=e(c()(i).call(i,1))),l>=0&&(r=r||c()(t).call(t,0,l),s=c()(t).call(t,l,t.length)),r=$e(null!=r?r:t,n),{fullPath:r+i+s,path:r,query:a,hash:Ue(s)}}function Ge(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function He(e,t){var n;return t&&y()(n=e.toLowerCase()).call(n,t.toLowerCase())?c()(e).call(e,t.length)||"/":e}function Ye(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&ze(t.matched[r],n.matched[o])&&qe(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ze(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function qe(e,t){if(j()(e).length!==j()(t).length)return!1;for(var n in e)if(!We(e[n],t[n]))return!1;return!0}function We(e,t){return ve(e)?Ke(e,t):ve(t)?Ke(t,e):(null===e||void 0===e?void 0:e.valueOf())===(null===t||void 0===t?void 0:t.valueOf())}function Ke(e,t){return ve(t)?e.length===t.length&&ie()(e).call(e,(e,n)=>e===t[n]):1===e.length&&e[0]===t}function $e(e,t){if(y()(e).call(e,"/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];".."!==o&&"."!==o||r.push("");let a,i,s=n.length-1;for(a=0;a<r.length;a++)if(i=r[a],"."!==i){if(".."!==i)break;s>1&&s--}return c()(n).call(n,0,s).join("/")+"/"+c()(r).call(r,a).join("/")}const Je={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Xe=function(e){return e["pop"]="pop",e["push"]="push",e}({}),Qe=function(e){return e["back"]="back",e["forward"]="forward",e["unknown"]="",e}({});function Ze(e){if(!e)if(ue){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),Be(e)}const et=/^[^#]+#/;function tt(e,t){return e.replace(et,"#")+t}function nt(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const rt=()=>({left:window.scrollX,top:window.scrollY});function ot(e){let t;if("el"in e){const n=e.el,r="string"===typeof n&&y()(n).call(n,"#");const o="string"===typeof n?r?document.getElementById(c()(n).call(n,1)):document.querySelector(n):n;if(!o)return;t=nt(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function at(e,t){return(history.state?history.state.position-t:-1)+e}const it=new S.a;function st(e,t){it.set(e,t)}function ct(e){const t=it.get(e);return it.delete(e),t}function lt(e){return"string"===typeof e||e&&"object"===typeof e}function ut(e){return"string"===typeof e||"symbol"===typeof e}let dt=function(e){return e[e["MATCHER_NOT_FOUND"]=1]="MATCHER_NOT_FOUND",e[e["NAVIGATION_GUARD_REDIRECT"]=2]="NAVIGATION_GUARD_REDIRECT",e[e["NAVIGATION_ABORTED"]=4]="NAVIGATION_ABORTED",e[e["NAVIGATION_CANCELLED"]=8]="NAVIGATION_CANCELLED",e[e["NAVIGATION_DUPLICATED"]=16]="NAVIGATION_DUPLICATED",e}({});const pt=ce()("");dt.MATCHER_NOT_FOUND,dt.NAVIGATION_GUARD_REDIRECT,dt.NAVIGATION_ABORTED,dt.NAVIGATION_CANCELLED,dt.NAVIGATION_DUPLICATED;function ft(e,t){return fe(new Error,{type:e,[pt]:!0},t)}function ht(e,t){return e instanceof Error&&pt in e&&(null==t||!!(e.type&t))}const mt=["params","query","hash"];function vt(e){if("string"===typeof e)return e;if(null!=e.path)return e.path;const t={};for(const n of mt)n in e&&(t[n]=e[n]);return K()(t,null,2)}function gt(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?c()(e).call(e,1):e).split("&");for(let r=0;r<n.length;++r){const e=n[r].replace(ke," "),a=o()(e).call(e,"="),i=Ue(a<0?e:c()(e).call(e,0,a)),s=a<0?null:Ue(c()(e).call(e,a+1));if(i in t){let e=t[i];ve(e)||(e=t[i]=[e]),e.push(s)}else t[i]=s}return t}function _t(e){let t="";for(let r in e){var n;const o=e[r];r=Re(r),null!=o?u()(n=ve(o)?N()(o).call(o,e=>e&&Ne(e)):[o&&Ne(o)]).call(n,e=>{void 0!==e&&(t+=(t.length?"&":"")+r,null!=e&&(t+="="+e))}):void 0!==o&&(t+=(t.length?"&":"")+r)}return t}function bt(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=ve(r)?N()(r).call(r,e=>null==e?null:""+e):null==r?r:""+r)}return t}const yt=ce()(""),Ot=ce()(""),Mt=ce()(""),kt=ce()(""),Ct=ce()("");function wt(){let e=[];function t(t){return e.push(t),()=>{const n=o()(e).call(e,t);n>-1&&p()(e).call(e,n,1)}}function n(){e=[]}return{add:t,list:()=>c()(e).call(e),reset:n}}function St(e,t,n,r,o,a=(e=>e())){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Y.a((s,c)=>{const l=e=>{!1===e?c(ft(dt.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):lt(e)?c(ft(dt.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(i&&r.enterCallbacks[o]===i&&"function"===typeof e&&i.push(e),s())},u=a(()=>e.call(r&&r.instances[o],t,n,l));let d=Y.a.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Tt(e,t,n,r,o=(e=>e())){const a=[];for(const i of e){0;for(const e in i.components){let s=i.components[e];if("beforeRouteEnter"===t||i.instances[e])if(de(s)){const c=(s.__vccOpts||s)[t];c&&a.push(St(c,n,r,i,e,o))}else{let c=s();0,a.push(()=>c.then(a=>{if(!a)throw new Error(`Couldn't resolve component "${e}" at "${i.path}"`);const s=pe(a)?a.default:a;i.mods[e]=a,i.components[e]=s;const c=(s.__vccOpts||s)[t];return c&&St(c,n,r,i,e,o)()}))}}}return a}function It(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let c=0;c<a;c++){var i;const a=t.matched[c];a&&(L()(i=e.matched).call(i,e=>ze(e,a))?r.push(a):n.push(a));const l=e.matched[c];var s;if(l)L()(s=t.matched).call(s,e=>ze(e,l))||o.push(l)}return[n,r,o]}
/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/
let Et=()=>location.protocol+"//"+location.host;function jt(e,t){const{pathname:n,search:r,hash:a}=t,s=o()(e).call(e,"#");if(s>-1){let t=i()(a).call(a,c()(e).call(e,s))?c()(e).call(e,s).length:1,n=c()(a).call(a,t);return"/"!==n[0]&&(n="/"+n),He(n,"")}return He(n,e)+r+a}function Dt(e,t,n,r){let a=[],i=[],s=null;const c=({state:o})=>{const i=jt(e,location),c=n.value,l=t.value;let d=0;if(o){if(n.value=i,t.value=o,s&&s===c)return void(s=null);d=l?o.position-l.position:0}else r(i);u()(a).call(a,e=>{e(n.value,c,{delta:d,type:Xe.pop,direction:d?d>0?Qe.forward:Qe.back:Qe.unknown})})};function l(){s=n.value}function d(e){a.push(e);const t=()=>{const t=o()(a).call(a,e);t>-1&&p()(a).call(a,t,1)};return i.push(t),t}function f(){if("hidden"===document.visibilityState){const{history:e}=window;if(!e.state)return;e.replaceState(fe({},e.state,{scroll:rt()}),"")}}function h(){for(const e of i)e();i=[],window.removeEventListener("popstate",c),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",c),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:l,listen:d,destroy:h}}function Lt(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?rt():null}}function At(e){const{history:t,location:n}=window,r={value:jt(e,n)},a={value:t.state};function i(r,i,s){const l=o()(e).call(e,"#"),u=l>-1?(n.host&&document.querySelector("base")?e:c()(e).call(e,l))+r:Et()+e+r;try{t[s?"replaceState":"pushState"](i,"",u),a.value=i}catch(d){console.error(d),n[s?"replace":"assign"](u)}}function s(e,n){i(e,fe({},t.state,Lt(a.value.back,e,a.value.forward,!0),n,{position:a.value.position}),!0),r.value=e}function l(e,n){const o=fe({},a.value,t.state,{forward:e,scroll:rt()});i(o.current,o,!0),i(e,fe({},Lt(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return a.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:a,push:l,replace:s}}function Nt(e){e=Ze(e);const t=At(e),n=Dt(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}const o=fe({location:"",base:e,go:r,createHref:h()(tt).call(tt,null,e)},t,n);return v()(o,"location",{enumerable:!0,get:()=>t.location.value}),v()(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Rt(e){return e=location.host?e||location.pathname+location.search:"",i()(e).call(e,"#")||(e+="#"),Nt(e)}let xt=function(e){return e[e["Static"]=0]="Static",e[e["Param"]=1]="Param",e[e["Group"]=2]="Group",e}({});var Pt=function(e){return e[e["Static"]=0]="Static",e[e["Param"]=1]="Param",e[e["ParamRegExp"]=2]="ParamRegExp",e[e["ParamRegExpEnd"]=3]="ParamRegExpEnd",e[e["EscapeNext"]=4]="EscapeNext",e}(Pt||{});const Ut={type:xt.Static,value:""},Vt=/[a-zA-Z0-9_]/;function Bt(e){if(!e)return[[]];if("/"===e)return[[Ut]];if(!y()(e).call(e,"/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${u}": ${e}`)}let n=Pt.Static,r=n;const o=[];let a;function i(){a&&o.push(a),a=[]}let s,l=0,u="",d="";function p(){u&&(n===Pt.Static?a.push({type:xt.Static,value:u}):n===Pt.Param||n===Pt.ParamRegExp||n===Pt.ParamRegExpEnd?(a.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:xt.Param,value:u,regexp:d,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),u="")}function f(){u+=s}while(l<e.length)if(s=e[l++],"\\"!==s||n===Pt.ParamRegExp)switch(n){case Pt.Static:"/"===s?(u&&p(),i()):":"===s?(p(),n=Pt.Param):f();break;case Pt.EscapeNext:f(),n=r;break;case Pt.Param:"("===s?n=Pt.ParamRegExp:Vt.test(s)?f():(p(),n=Pt.Static,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case Pt.ParamRegExp:")"===s?"\\"==d[d.length-1]?d=c()(d).call(d,0,-1)+s:n=Pt.ParamRegExpEnd:d+=s;break;case Pt.ParamRegExpEnd:p(),n=Pt.Static,"*"!==s&&"?"!==s&&"+"!==s&&l--,d="";break;default:t("Unknown state");break}else r=n,n=Pt.EscapeNext;return n===Pt.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),p(),i(),o}const Ft="[^/]+?",Gt={sensitive:!1,strict:!1,start:!0,end:!0};var Ht=function(e){return e[e["_multiplier"]=10]="_multiplier",e[e["Root"]=90]="Root",e[e["Segment"]=40]="Segment",e[e["SubSegment"]=30]="SubSegment",e[e["Static"]=40]="Static",e[e["Dynamic"]=20]="Dynamic",e[e["BonusCustomRegExp"]=10]="BonusCustomRegExp",e[e["BonusWildcard"]=-50]="BonusWildcard",e[e["BonusRepeatable"]=-20]="BonusRepeatable",e[e["BonusOptional"]=-8]="BonusOptional",e[e["BonusStrict"]=.7000000000000001]="BonusStrict",e[e["BonusCaseSensitive"]=.25]="BonusCaseSensitive",e}(Ht||{});const Yt=/[.+*?^${}()[\]/\\]/g;function zt(e,t){const n=fe({},Gt,t),r=[];let o=n.start?"^":"";const a=[];for(const c of e){const e=c.length?[]:[Ht.Root];n.strict&&!c.length&&(o+="/");for(let t=0;t<c.length;t++){const r=c[t];let i=Ht.Segment+(n.sensitive?Ht.BonusCaseSensitive:0);if(r.type===xt.Static)t||(o+="/"),o+=r.value.replace(Yt,"\\$&"),i+=Ht.Static;else if(r.type===xt.Param){const{value:e,repeatable:n,optional:s,regexp:l}=r;a.push({name:e,repeatable:n,optional:s});const u=l||Ft;u!==Ft&&(i+=Ht.BonusCustomRegExp);let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;t||(d=s&&c.length<2?`(?:/${d})`:"/"+d),s&&(d+="?"),o+=d,i+=Ht.Dynamic,s&&(i+=Ht.BonusOptional),n&&(i+=Ht.BonusRepeatable),".*"===u&&(i+=Ht.BonusWildcard)}e.push(i)}r.push(e)}if(n.strict&&n.end){const e=r.length-1;r[e][r[e].length-1]+=Ht.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!_()(o).call(o,"/")&&(o+="(?:/|$)");const i=new RegExp(o,n.sensitive?"":"i");function s(e){const t=e.match(i),n={};if(!t)return null;for(let r=1;r<t.length;r++){const e=t[r]||"",o=a[r-1];n[o.name]=e&&o.repeatable?e.split("/"):e}return n}function l(t){let n="",r=!1;for(const o of e){r&&_()(n).call(n,"/")||(n+="/"),r=!1;for(const e of o)if(e.type===xt.Static)n+=e.value;else if(e.type===xt.Param){const{value:a,repeatable:i,optional:s}=e,l=a in t?t[a]:"";if(ve(l)&&!i)throw new Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);const u=ve(l)?l.join("/"):l;if(!u){if(!s)throw new Error(`Missing required param "${a}"`);o.length<2&&(_()(n).call(n,"/")?n=c()(n).call(n,0,-1):r=!0)}n+=u}}return n||"/"}return{re:i,score:r,keys:a,parse:s,stringify:l}}function qt(e,t){let n=0;while(n<e.length&&n<t.length){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&e[0]===Ht.Static+Ht.Segment?-1:1:e.length>t.length?1===t.length&&t[0]===Ht.Static+Ht.Segment?1:-1:0}function Wt(e,t){let n=0;const r=e.score,o=t.score;while(n<r.length&&n<o.length){const e=qt(r[n],o[n]);if(e)return e;n++}if(1===Math.abs(o.length-r.length)){if(Kt(r))return 1;if(Kt(o))return-1}return o.length-r.length}function Kt(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const $t={strict:!1,end:!0,sensitive:!1};function Jt(e,t,n){const r=zt(Bt(e.path),n);const o=fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf===!t.record.aliasOf&&t.children.push(o),o}function Xt(e,t){const n=[],r=new S.a;function a(e){return r.get(e)}function i(e,n,r){const o=!r,a=Zt(e);a.aliasOf=r&&r.record;const c=ge(t,e),u=[a];if("alias"in e){const t="string"===typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(Zt(fe({},a,{components:r?r.record.components:a.components,path:e,aliasOf:r?r.record:a})))}let d,p;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&r+u)}if(d=Jt(t,n,c),r?r.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),o&&e.name&&!tn(d)&&s(e.name)),an(d)&&l(d),a.children){const e=a.children;for(let t=0;t<e.length;t++)i(e[t],d,r&&r.children[t])}r=r||d}return p?()=>{s(p)}:me}function s(e){if(ut(e)){const i=r.get(e);var t,a;if(i)r.delete(e),p()(n).call(n,o()(n).call(n,i),1),u()(t=i.children).call(t,s),u()(a=i.alias).call(a,s)}else{const t=o()(n).call(n,e);var i,c;if(t>-1)p()(n).call(n,t,1),e.record.name&&r.delete(e.record.name),u()(i=e.children).call(i,s),u()(c=e.alias).call(c,s)}}function c(){return n}function l(e){const t=rn(e,n);p()(n).call(n,t,0,e),e.record.name&&!tn(e)&&r.set(e.record.name,e)}function d(e,t){let o,a,i,s={};if("name"in e&&e.name){var c,l,u,d,p;if(o=r.get(e.name),!o)throw ft(dt.MATCHER_NOT_FOUND,{location:e});i=o.record.name,s=fe(Qt(t.params,N()(c=x()(l=I()(u=C()(o)).call(u,e=>!e.optional)).call(l,o.parent?I()(d=C()(o.parent)).call(d,e=>e.optional):[])).call(c,e=>e.name)),e.params&&Qt(e.params,N()(p=C()(o)).call(p,e=>e.name))),a=o.stringify(s)}else if(null!=e.path)a=e.path,o=L()(n).call(n,e=>e.re.test(a)),o&&(s=o.parse(a),i=o.record.name);else{if(o=t.name?r.get(t.name):L()(n).call(n,e=>e.re.test(t.path)),!o)throw ft(dt.MATCHER_NOT_FOUND,{location:e,currentLocation:t});i=o.record.name,s=fe({},t.params,e.params),a=o.stringify(s)}const f=[];let h=o;while(h)f.unshift(h.record),h=h.parent;return{name:i,path:a,params:s,matched:f,meta:nn(f)}}function f(){n.length=0,r.clear()}return t=ge($t,t),u()(e).call(e,e=>i(e)),{addRoute:i,resolve:d,removeRoute:s,clearRoutes:f,getRoutes:c,getRecordMatcher:a}}function Qt(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Zt(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:en(e),children:e.children||[],instances:{},leaveGuards:new M.a,updateGuards:new M.a,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return v()(t,"mods",{value:{}}),t}function en(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"===typeof n?n[r]:n;return t}function tn(e){while(e){if(e.record.aliasOf)return!0;e=e.parent}return!1}function nn(e){return U()(e).call(e,(e,t)=>fe(e,t.meta),{})}function rn(e,t){let n=0,r=t.length;while(n!==r){const o=n+r>>1;Wt(e,t[o])<0?r=o:n=o+1}const o=on(e);return o&&(r=B()(t).call(t,o,r-1)),r}function on(e){let t=e;while(t=t.parent)if(an(t)&&0===Wt(e,t))return t}function an({record:e}){return!!(e.name||e.components&&j()(e.components).length||e.redirect)}function sn(e){const t=Object(le["inject"])(Mt),n=Object(le["inject"])(kt);const r=Object(le["computed"])(()=>{const n=Object(le["unref"])(e.to);return t.resolve(n)}),o=Object(le["computed"])(()=>{const{matched:e}=r.value,{length:t}=e,o=e[t-1],a=n.matched;if(!o||!a.length)return-1;const i=G()(a).call(a,h()(ze).call(ze,null,o));if(i>-1)return i;const s=fn(e[t-2]);return t>1&&fn(o)===s&&a[a.length-1].path!==s?G()(a).call(a,h()(ze).call(ze,null,e[t-2])):i}),a=Object(le["computed"])(()=>o.value>-1&&pn(n.params,r.value.params)),i=Object(le["computed"])(()=>o.value>-1&&o.value===n.matched.length-1&&qe(n.params,r.value.params));function s(n={}){if(dn(n)){const n=t[Object(le["unref"])(e.replace)?"replace":"push"](Object(le["unref"])(e.to)).catch(me);return e.viewTransition&&"undefined"!==typeof document&&"startViewTransition"in document&&document.startViewTransition(()=>n),n}return Y.a.resolve()}return{route:r,href:Object(le["computed"])(()=>r.value.href),isActive:a,isExactActive:i,navigate:s}}function cn(e){return 1===e.length?e[0]:e}const ln=Object(le["defineComponent"])({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:sn,setup(e,{slots:t}){const n=Object(le["reactive"])(sn(e)),{options:r}=Object(le["inject"])(Mt),o=Object(le["computed"])(()=>({[hn(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[hn(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&cn(t.default(n));return e.custom?r:Object(le["h"])("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),un=ln;function dn(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){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function pn(e,t){for(const n in t){const r=t[n],o=e[n];if("string"===typeof r){if(r!==o)return!1}else if(!ve(o)||o.length!==r.length||q()(r).call(r,(e,t)=>e.valueOf()!==o[t].valueOf()))return!1}return!0}function fn(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const hn=(e,t,n)=>null!=e?e:null!=t?t:n,mn=Object(le["defineComponent"])({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Object(le["inject"])(Ct),o=Object(le["computed"])(()=>e.route||r.value),a=Object(le["inject"])(Ot,0),i=Object(le["computed"])(()=>{let e=Object(le["unref"])(a);const{matched:t}=o.value;let n;while((n=t[e])&&!n.components)e++;return e}),s=Object(le["computed"])(()=>o.value.matched[i.value]);Object(le["provide"])(Ot,Object(le["computed"])(()=>i.value+1)),Object(le["provide"])(yt,s),Object(le["provide"])(Ct,o);const c=Object(le["ref"])();return Object(le["watch"])(()=>[c.value,s.value,e.name],([e,t,n],[r,o,a])=>{var i;t&&(t.instances[n]=e,o&&o!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&ze(t,o)&&r||u()(i=t.enterCallbacks[n]||[]).call(i,t=>t(e))},{flush:"post"}),()=>{const r=o.value,a=e.name,i=s.value,l=i&&i.components[a];if(!l)return vn(n.default,{Component:l,route:r});const u=i.props[a],d=u?!0===u?r.params:"function"===typeof u?u(r):u:null,p=e=>{e.component.isUnmounted&&(i.instances[a]=null)},f=Object(le["h"])(l,fe({},d,t,{onVnodeUnmounted:p,ref:c}));return vn(n.default,{Component:f,route:r})||f}}});function vn(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const gn=mn;function _n(e){const t=Xt(e.routes,e),n=e.parseQuery||gt,r=e.stringifyQuery||_t,o=e.history;const a=wt(),s=wt(),c=wt(),l=Object(le["shallowRef"])(Je);let d=Je;ue&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=h()(he).call(he,null,e=>""+e),f=h()(he).call(he,null,Pe),m=h()(he).call(he,null,Ue);function g(e,n){let r,o;return ut(e)?(r=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,r)}function _(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function b(){var e;return N()(e=t.getRoutes()).call(e,e=>e.record)}function y(e){return!!t.getRecordMatcher(e)}function O(e,a){if(a=fe({},a||l.value),"string"===typeof e){const r=Fe(n,e,a.path),i=t.resolve({path:r.path},a),s=o.createHref(r.fullPath);return fe(r,i,{params:m(i.params),hash:Ue(r.hash),redirectedFrom:void 0,href:s})}let i;if(null!=e.path)i=fe({},e,{path:Fe(n,e.path,a.path).path});else{const t=fe({},e.params);for(const e in t)null==t[e]&&delete t[e];i=fe({},e,{params:f(t)}),a.params=f(a.params)}const s=t.resolve(i,a),c=e.hash||"";s.params=p(m(s.params));const u=Ge(r,fe({},e,{hash:Ae(c),path:s.path})),d=o.createHref(u);return fe({fullPath:u,hash:c,query:r===_t?bt(e.query):e.query||{}},s,{redirectedFrom:void 0,href:d})}function k(e){return"string"===typeof e?Fe(n,e,l.value.path):fe({},e)}function C(e,t){if(d!==e)return ft(dt.NAVIGATION_CANCELLED,{from:t,to:e})}function w(e){return I(e)}function S(e){return w(fe(k(e),{replace:!0}))}function T(e,t){const n=e.matched[e.matched.length-1];if(n&&n.redirect){const{redirect:r}=n;let o="function"===typeof r?r(e,t):r;return"string"===typeof o&&(o=i()(o).call(o,"?")||i()(o).call(o,"#")?o=k(o):{path:o},o.params={}),fe({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function I(e,t){const n=d=O(e),o=l.value,a=e.state,i=e.force,s=!0===e.replace,c=T(n,o);if(c)return I(fe(k(c),{state:"object"===typeof c?fe({},a,c.state):a,force:i,replace:s}),t||n);const u=n;let p;return u.redirectedFrom=t,!i&&Ye(r,o,n)&&(p=ft(dt.NAVIGATION_DUPLICATED,{to:u,from:o}),z(o,o,!0,!1)),(p?Y.a.resolve(p):D(u,o)).catch(e=>ht(e)?ht(e,dt.NAVIGATION_GUARD_REDIRECT)?e:H(e):F(e,u,o)).then(e=>{if(e){if(ht(e,dt.NAVIGATION_GUARD_REDIRECT))return I(fe({replace:s},k(e.to),{state:"object"===typeof e.to?fe({},a,e.to.state):a,force:i}),t||u)}else e=A(u,o,!0,s,a);return L(u,o,e),e})}function E(e,t){const n=C(e,t);return n?Y.a.reject(n):Y.a.resolve()}function j(e){const t=J()(K).call(K).next().value;return t&&"function"===typeof t.runWithContext?t.runWithContext(e):e()}function D(e,t){let n;const[r,o,i]=It(e,t);n=Tt(Q()(r).call(r),"beforeRouteLeave",e,t);for(const a of r){var c;u()(c=a.leaveGuards).call(c,r=>{n.push(St(r,e,t))})}const l=h()(E).call(E,null,e,t);return n.push(l),X(n).then(()=>{n=[];for(const r of a.list())n.push(St(r,e,t));return n.push(l),X(n)}).then(()=>{n=Tt(o,"beforeRouteUpdate",e,t);for(const a of o){var r;u()(r=a.updateGuards).call(r,r=>{n.push(St(r,e,t))})}return n.push(l),X(n)}).then(()=>{n=[];for(const r of i)if(r.beforeEnter)if(ve(r.beforeEnter))for(const o of r.beforeEnter)n.push(St(o,e,t));else n.push(St(r.beforeEnter,e,t));return n.push(l),X(n)}).then(()=>{var r;return u()(r=e.matched).call(r,e=>e.enterCallbacks={}),n=Tt(i,"beforeRouteEnter",e,t,j),n.push(l),X(n)}).then(()=>{n=[];for(const r of s.list())n.push(St(r,e,t));return n.push(l),X(n)}).catch(e=>ht(e,dt.NAVIGATION_CANCELLED)?e:Y.a.reject(e))}function L(e,t,n){var r;u()(r=c.list()).call(r,r=>j(()=>r(e,t,n)))}function A(e,t,n,r,a){const i=C(e,t);if(i)return i;const s=t===Je,c=ue?history.state:{};n&&(r||s?o.replace(e.fullPath,fe({scroll:s&&c&&c.scroll},a)):o.push(e.fullPath,a)),l.value=e,z(e,t,n,s),H()}let R;function x(){R||(R=o.listen((e,t,n)=>{if(!$.listening)return;const r=O(e),a=T(r,$.currentRoute.value);if(a)return void I(fe(a,{replace:!0,force:!0}),r).catch(me);d=r;const i=l.value;ue&&st(at(i.fullPath,n.delta),rt()),D(r,i).catch(e=>ht(e,dt.NAVIGATION_ABORTED|dt.NAVIGATION_CANCELLED)?e:ht(e,dt.NAVIGATION_GUARD_REDIRECT)?(I(fe(k(e.to),{force:!0}),r).then(e=>{ht(e,dt.NAVIGATION_ABORTED|dt.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Xe.pop&&o.go(-1,!1)}).catch(me),Y.a.reject()):(n.delta&&o.go(-n.delta,!1),F(e,r,i))).then(e=>{e=e||A(r,i,!1),e&&(n.delta&&!ht(e,dt.NAVIGATION_CANCELLED)?o.go(-n.delta,!1):n.type===Xe.pop&&ht(e,dt.NAVIGATION_ABORTED|dt.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),L(r,i,e)}).catch(me)}))}let P,V=wt(),B=wt();function F(e,t,n){H(e);const r=B.list();return r.length?u()(r).call(r,r=>r(e,t,n)):console.error(e),Y.a.reject(e)}function G(){return P&&l.value!==Je?Y.a.resolve():new Y.a((e,t)=>{V.add([e,t])})}function H(e){var t;P||(P=!e,x(),u()(t=V.list()).call(t,([t,n])=>e?n(e):t()),V.reset());return e}function z(t,n,r,o){const{scrollBehavior:a}=e;if(!ue||!a)return Y.a.resolve();const i=!r&&ct(at(t.fullPath,0))||(o||!r)&&history.state&&history.state.scroll||null;return Object(le["nextTick"])().then(()=>a(t,n,i)).then(e=>e&&ot(e)).catch(e=>F(e,t,n))}const q=e=>o.go(e);let W;const K=new M.a,$={currentRoute:l,listening:!0,addRoute:g,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:b,resolve:O,options:e,push:w,replace:S,go:q,back:()=>q(-1),forward:()=>q(1),beforeEach:a.add,beforeResolve:s.add,afterEach:c.add,onError:B.add,isReady:G,install(e){e.component("RouterLink",un),e.component("RouterView",gn),e.config.globalProperties.$router=$,v()(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Object(le["unref"])(l)}),ue&&!W&&l.value===Je&&(W=!0,w(o.location).catch(e=>{0}));const t={};for(const r in Je)v()(t,r,{get:()=>l.value[r],enumerable:!0});e.provide(Mt,$),e.provide(kt,Object(le["shallowReactive"])(t)),e.provide(Ct,l);const n=e.unmount;K.add(e),e.unmount=function(){K.delete(e),K.size<1&&(d=Je,R&&R(),R=null,l.value=Je,W=!1,P=!1),n()}}};function X(e){return U()(e).call(e,(e,t)=>e.then(()=>j(t)),Y.a.resolve())}return $}},6663:function(e,t,n){"use strict";var r=n("06fa");e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},"666a":function(e,t,n){"use strict";n("b6fe");var r=n("0c9f");e.exports=r},6725:function(e,t,n){"use strict";var r=n("c7d2"),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},6783:function(e,t,n){"use strict";var r=n("bae4"),o=n("1301"),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(o(e)+" is not a constructor")}},6784:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"],r=e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}});return r}))},"67d9":function(e,t,n){"use strict";e.exports=URIError},"67ee":function(e,t,n){"use strict";e.exports=SyntaxError},6806:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));const r=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],o=["sun","mon","tue","wed","thu","fri","sat"]},"680e":function(e,t,n){"use strict";var r=n("4fff"),o=n("4508"),a=n("c74f");e.exports=function(e){var t=r(this),n=a(t),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),c=i>2?arguments[2]:void 0,l=void 0===c?n:o(c,n);while(l>s)t[s++]=e;return t}},6813:function(e,t,n){"use strict";n("ef6d"),n("e3db"),n("0c57"),n("c799"),n("4500"),n("4e66")},6850:function(e,t,n){"use strict";var r=n("a5eb"),o=n("6386").includes,a=n("06fa"),i=n("c44e"),s=a((function(){return!Array(1).includes()})),c=a((function(){return[,1].includes(void 0,1)}));r({target:"Array",proto:!0,forced:s||c},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},6887:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var r={mm:"munutenn",MM:"miz",dd:"devezh"};return e+" "+o(r[n],e)}function n(e){switch(r(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function r(e){return e>9?r(e%10):e}function o(e,t){return 2===t?a(e):e}function a(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var i=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],s=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,c=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,l=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,u=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],d=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],p=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i],f=e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:p,fullWeekdaysParse:u,shortWeekdaysParse:d,minWeekdaysParse:p,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:c,monthsShortStrictRegex:l,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){var t=1===e?"añ":"vet";return e+t},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}});return f}))},"688b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},"688e":function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",o=Object.prototype.toString,a=Math.max,i="[object Function]",s=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n},c=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},l=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var t=this;if("function"!==typeof t||o.apply(t)!==i)throw new TypeError(r+t);for(var n,u=c(arguments,1),d=function(){if(this instanceof n){var r=t.apply(this,s(u,arguments));return Object(r)===r?r:this}return t.apply(e,s(u,arguments))},p=a(0,t.length-u.length),f=[],h=0;h<p;h++)f[h]="$"+h;if(n=Function("binder","return function ("+l(f,",")+"){ return binder.apply(this,arguments); }")(d),t.prototype){var m=function(){};m.prototype=t.prototype,n.prototype=new m,m.prototype=null}return n}},"68ec":function(e,t,n){"use strict";n("56c5");var r=n("764b");e.exports=r.Object.setPrototypeOf},6909:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}});return t}))},6964:function(e,t,n){"use strict";var r=n("cb2d");e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},"69f2":function(e,t,n){"use strict";n("61fe");var r=n("c18e");e.exports=r("String","endsWith")},"69f3":function(e,t,n){"use strict";var r,o,a,i=n("cdce"),s=n("cfe9"),c=n("861d"),l=n("9112"),u=n("1a2d"),d=n("c6cd"),p=n("f7723"),f=n("d012"),h="Object already initialized",m=s.TypeError,v=s.WeakMap,g=function(e){return a(e)?o(e):r(e,{})},_=function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}};if(i||d.state){var b=d.state||(d.state=new v);b.get=b.get,b.has=b.has,b.set=b.set,r=function(e,t){if(b.has(e))throw new m(h);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},a=function(e){return b.has(e)}}else{var y=p("state");f[y]=!0,r=function(e,t){if(u(e,y))throw new m(h);return t.facade=e,l(e,y,t),t},o=function(e){return u(e,y)?e[y]:{}},a=function(e){return u(e,y)}}e.exports={set:r,get:o,has:a,enforce:g,getterFor:_}},"6a02":function(e,t,n){"use strict";n("5145");var r=n("8f95"),o=n("0e6f"),a=n("437b"),i=n("4b7c"),s=Array.prototype,c={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.entries;return e===s||a(s,e)&&t===s.entries||o(c,r(e))?i:t}},"6a7a":function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return u}));var r=n("9a73"),o=n.n(r),a=n("493c"),i=n.n(a),s=n("49c6"),c=n("6ab4");const l=(e,t,{checkForDefaultPrevented:n=!0}={})=>{const r=r=>{const o=null===e||void 0===e?void 0:e(r);if(!1===n||!o)return null===t||void 0===t?void 0:t(r)};return r},u=e=>t=>"mouse"===t.pointerType?e(t):void 0,d=e=>{if(e.code&&"Unidentified"!==e.code)return e.code;const t=p(e);if(t){var n;if(o()(n=i()(s["a"])).call(n,t))return t;switch(t){case" ":return s["a"].space;default:return""}}return""},p=e=>{let t=e.key&&"Unidentified"!==e.key?e.key:"";if(!t&&"keyup"===e.type&&Object(c["a"])()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t}},"6ab4":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}));var r=n("0931");const o=()=>r["isClient"]&&/firefox/i.test(window.navigator.userAgent),a=()=>r["isClient"]&&/android/i.test(window.navigator.userAgent)},"6b0d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},"6b37":function(e,t,n){"use strict";var r=n("f5df"),o=TypeError;e.exports=function(e){if("Uint8Array"===r(e))return e;throw new o("Argument is not an Uint8Array")}},"6b3f":function(e,t,n){"use strict";e.exports="undefined"!==typeof Reflect&&Reflect&&Reflect.apply},"6b51":function(e,t,n){"use strict";n("e2c3"),n("2303"),n("e788"),n("b4aa");var r=n("764b");e.exports=r.URLSearchParams},"6c15":function(e,t,n){"use strict";var r=n("c1b2"),o=n("4180"),a=n("2c6c");e.exports=function(e,t,n){r?o.f(e,t,a(0,n)):e[t]=n}},"6c1b":function(e,t,n){"use strict";var r=n("0e6f");e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},"6c3d":function(e,t,n){"use strict";e.exports=Object.getOwnPropertyDescriptor},"6c5d":function(e,t,n){"use strict";var r=n("4c19");e.exports=r},"6ce3":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"6ce5":function(e,t,n){"use strict";var r=n("07fa"),o=n("ebb5"),a=o.aTypedArray,i=o.exportTypedArrayMethod,s=o.getTypedArrayConstructor;i("toReversed",(function(){for(var e=a(this),t=r(e),n=new(s(e))(t),o=0;o<t;o++)n[o]=e[t-o-1];return n}))},"6d79":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},n=e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}});return n}))},"6d83":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return t}))},"6dee":function(e,t,n){"use strict";
/*!
* core-base v9.14.4
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/var r=n("f4eb"),o=n("b090");function a(e){return o.isObject(e)&&0===m(e)&&(o.hasOwn(e,"b")||o.hasOwn(e,"body"))}const i=["b","body"];function s(e){return M(e,i)}const c=["c","cases"];function l(e){return M(e,c,[])}const u=["s","static"];function d(e){return M(e,u)}const p=["i","items"];function f(e){return M(e,p,[])}const h=["t","type"];function m(e){return M(e,h)}const v=["v","value"];function g(e,t){const n=M(e,v);if(null!=n)return n;throw C(t)}const _=["m","modifier"];function b(e){return M(e,_)}const y=["k","key"];function O(e){const t=M(e,y);if(t)return t;throw C(6)}function M(e,t,n){for(let r=0;r<t.length;r++){const n=t[r];if(o.hasOwn(e,n)&&null!=e[n])return e[n]}return n}const k=[...i,...c,...u,...p,...y,..._,...v,...h];function C(e){return new Error("unhandled node type: "+e)}const w=[];w[0]={["w"]:[0],["i"]:[3,0],["["]:[4],["o"]:[7]},w[1]={["w"]:[1],["."]:[2],["["]:[4],["o"]:[7]},w[2]={["w"]:[2],["i"]:[3,0],["0"]:[3,0]},w[3]={["i"]:[3,0],["0"]:[3,0],["w"]:[1,1],["."]:[2,1],["["]:[4,1],["o"]:[7,1]},w[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],["o"]:8,["l"]:[4,0]},w[5]={["'"]:[4,0],["o"]:8,["l"]:[5,0]},w[6]={['"']:[4,0],["o"]:8,["l"]:[6,0]};const S=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function T(e){return S.test(e)}function I(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function E(e){if(void 0===e||null===e)return"o";const t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function j(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(T(t)?I(t):"*"+t)}function D(e){const t=[];let n,r,o,a,i,s,c,l=-1,u=0,d=0;const p=[];function f(){const t=e[l+1];if(5===u&&"'"===t||6===u&&'"'===t)return l++,o="\\"+t,p[0](),!0}p[0]=()=>{void 0===r?r=o:r+=o},p[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},p[2]=()=>{p[0](),d++},p[3]=()=>{if(d>0)d--,u=4,p[0]();else{if(d=0,void 0===r)return!1;if(r=j(r),!1===r)return!1;p[1]()}};while(null!==u)if(l++,n=e[l],"\\"!==n||!f()){if(a=E(n),c=w[u],i=c[a]||c["l"]||8,8===i)return;if(u=i[0],void 0!==i[1]&&(s=p[i[1]],s&&(o=n,!1===s())))return;if(7===u)return t}}const L=new Map;function A(e,t){return o.isObject(e)?e[t]:null}function N(e,t){if(!o.isObject(e))return null;let n=L.get(t);if(n||(n=D(t),n&&L.set(t,n)),!n)return null;const r=n.length;let i=e,s=0;while(s<r){const e=n[s];if(k.includes(e)&&a(i))return null;const t=i[e];if(void 0===t)return null;if(o.isFunction(i))return null;i=t,s++}return i}const R=e=>e,x=e=>"",P="text",U=e=>0===e.length?"":o.join(e),V=o.toDisplayString;function B(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function F(e){const t=o.isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o.isNumber(e.named.count)||o.isNumber(e.named.n))?o.isNumber(e.named.count)?e.named.count:o.isNumber(e.named.n)?e.named.n:t:t}function G(e,t){t.count||(t.count=e),t.n||(t.n=e)}function H(e={}){const t=e.locale,n=F(e),r=o.isObject(e.pluralRules)&&o.isString(t)&&o.isFunction(e.pluralRules[t])?e.pluralRules[t]:B,a=o.isObject(e.pluralRules)&&o.isString(t)&&o.isFunction(e.pluralRules[t])?B:void 0,i=e=>e[r(n,e.length,a)],s=e.list||[],c=e=>s[e],l=e.named||o.create();o.isNumber(e.pluralIndex)&&G(n,l);const u=e=>l[e];function d(t){const n=o.isFunction(e.messages)?e.messages(t):!!o.isObject(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):x)}const p=t=>e.modifiers?e.modifiers[t]:R,f=o.isPlainObject(e.processor)&&o.isFunction(e.processor.normalize)?e.processor.normalize:U,h=o.isPlainObject(e.processor)&&o.isFunction(e.processor.interpolate)?e.processor.interpolate:V,m=o.isPlainObject(e.processor)&&o.isString(e.processor.type)?e.processor.type:P,v=(e,...t)=>{const[n,r]=t;let a="text",i="";1===t.length?o.isObject(n)?(i=n.modifier||i,a=n.type||a):o.isString(n)&&(i=n||i):2===t.length&&(o.isString(n)&&(i=n||i),o.isString(r)&&(a=r||a));const s=d(e)(g),c="vnode"===a&&o.isArray(s)&&i?s[0]:s;return i?p(i)(c,a):c},g={["list"]:c,["named"]:u,["plural"]:i,["linked"]:v,["message"]:d,["type"]:m,["interpolate"]:h,["normalize"]:f,["values"]:o.assign(o.create(),s,l)};return g}let Y=null;function z(e){Y=e}function q(){return Y}function W(e,t,n){Y&&Y.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const K=$("function:translate");function $(e){return t=>Y&&Y.emit(e,t)}const J=r.CompileWarnCodes.__EXTEND_POINT__,X=o.incrementer(J),Q={NOT_FOUND_KEY:J,FALLBACK_TO_TRANSLATE:X(),CANNOT_FORMAT_NUMBER:X(),FALLBACK_TO_NUMBER_FORMAT:X(),CANNOT_FORMAT_DATE:X(),FALLBACK_TO_DATE_FORMAT:X(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:X(),__EXTEND_POINT__:X()},Z={[Q.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Q.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Q.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Q.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Q.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Q.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Q.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function ee(e,...t){return o.format(Z[e],...t)}const te=r.CompileErrorCodes.__EXTEND_POINT__,ne=o.incrementer(te),re={INVALID_ARGUMENT:te,INVALID_DATE_ARGUMENT:ne(),INVALID_ISO_DATE_ARGUMENT:ne(),NOT_SUPPORT_NON_STRING_MESSAGE:ne(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:ne(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:ne(),NOT_SUPPORT_LOCALE_TYPE:ne(),__EXTEND_POINT__:ne()};function oe(e){return r.createCompileError(e,null,void 0)}function ae(e,t){return null!=t.locale?se(t.locale):se(e.locale)}let ie;function se(e){if(o.isString(e))return e;if(o.isFunction(e)){if(e.resolvedOnce&&null!=ie)return ie;if("Function"===e.constructor.name){const t=e();if(o.isPromise(t))throw oe(re.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ie=t}throw oe(re.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw oe(re.NOT_SUPPORT_LOCALE_TYPE)}function ce(e,t,n){return[...new Set([n,...o.isArray(t)?t:o.isObject(t)?Object.keys(t):o.isString(t)?[t]:[n]])]}function le(e,t,n){const r=o.isString(n)?n:me,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(r);if(!i){i=[];let e=[n];while(o.isArray(e))e=ue(i,e,t);const s=o.isArray(t)||!o.isPlainObject(t)?t:t["default"]?t["default"]:null;e=o.isString(s)?[s]:s,o.isArray(e)&&ue(i,e,!1),a.__localeChainCache.set(r,i)}return i}function ue(e,t,n){let r=!0;for(let a=0;a<t.length&&o.isBoolean(r);a++){const i=t[a];o.isString(i)&&(r=de(e,t[a],n))}return r}function de(e,t,n){let r;const o=t.split("-");do{const t=o.join("-");r=pe(e,t,n),o.splice(-1,1)}while(o.length&&!0===r);return r}function pe(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(o.isArray(n)||o.isPlainObject(n))&&n[a]&&(r=n[a])}return r}re.INVALID_ARGUMENT,re.INVALID_DATE_ARGUMENT,re.INVALID_ISO_DATE_ARGUMENT,re.NOT_SUPPORT_NON_STRING_MESSAGE,re.NOT_SUPPORT_LOCALE_PROMISE_VALUE,re.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,re.NOT_SUPPORT_LOCALE_TYPE;const fe="9.14.4",he=-1,me="en-US",ve="",ge=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function _e(){return{upper:(e,t)=>"text"===t&&o.isString(e)?e.toUpperCase():"vnode"===t&&o.isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&o.isString(e)?e.toLowerCase():"vnode"===t&&o.isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&o.isString(e)?ge(e):"vnode"===t&&o.isObject(e)&&"__v_isVNode"in e?ge(e.children):e}}let be,ye,Oe;function Me(e){be=e}function ke(e){ye=e}function Ce(e){Oe=e}let we=null;const Se=e=>{we=e},Te=()=>we;let Ie=null;const Ee=e=>{Ie=e},je=()=>Ie;let De=0;function Le(e={}){const t=o.isFunction(e.onWarn)?e.onWarn:o.warn,n=o.isString(e.version)?e.version:fe,r=o.isString(e.locale)||o.isFunction(e.locale)?e.locale:me,a=o.isFunction(r)?me:r,i=o.isArray(e.fallbackLocale)||o.isPlainObject(e.fallbackLocale)||o.isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,s=o.isPlainObject(e.messages)?e.messages:Ae(a),c=o.isPlainObject(e.datetimeFormats)?e.datetimeFormats:Ae(a),l=o.isPlainObject(e.numberFormats)?e.numberFormats:Ae(a),u=o.assign(o.create(),e.modifiers,_e()),d=e.pluralRules||o.create(),p=o.isFunction(e.missing)?e.missing:null,f=!o.isBoolean(e.missingWarn)&&!o.isRegExp(e.missingWarn)||e.missingWarn,h=!o.isBoolean(e.fallbackWarn)&&!o.isRegExp(e.fallbackWarn)||e.fallbackWarn,m=!!e.fallbackFormat,v=!!e.unresolving,g=o.isFunction(e.postTranslation)?e.postTranslation:null,_=o.isPlainObject(e.processor)?e.processor:null,b=!o.isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,O=o.isFunction(e.messageCompiler)?e.messageCompiler:be,M=o.isFunction(e.messageResolver)?e.messageResolver:ye||A,k=o.isFunction(e.localeFallbacker)?e.localeFallbacker:Oe||ce,C=o.isObject(e.fallbackContext)?e.fallbackContext:void 0,w=e,S=o.isObject(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,T=o.isObject(w.__numberFormatters)?w.__numberFormatters:new Map,I=o.isObject(w.__meta)?w.__meta:{};De++;const E={version:n,cid:De,locale:r,fallbackLocale:i,messages:s,modifiers:u,pluralRules:d,missing:p,missingWarn:f,fallbackWarn:h,fallbackFormat:m,unresolving:v,postTranslation:g,processor:_,warnHtmlMessage:b,escapeParameter:y,messageCompiler:O,messageResolver:M,localeFallbacker:k,fallbackContext:C,onWarn:t,__meta:I};return E.datetimeFormats=c,E.numberFormats=l,E.__datetimeFormatters=S,E.__numberFormatters=T,E}const Ae=e=>({[e]:o.create()});function Ne(e,t){return e instanceof RegExp?e.test(t):e}function Re(e,t){return e instanceof RegExp?e.test(t):e}function xe(e,t,n,r,a){const{missing:i,onWarn:s}=e;if(null!==i){const r=i(e,n,t,a);return o.isString(r)?r:t}return t}function Pe(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Ue(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function Ve(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r<t.length;r++)if(Ue(e,t[r]))return!0;return!1}function Be(e){const t=t=>Fe(t,e);return t}function Fe(e,t){const n=s(t);if(null==n)throw C(0);const r=m(n);if(1===r){const t=n,r=l(t);return e.plural(r.reduce((t,n)=>[...t,Ge(e,n)],[]))}return Ge(e,n)}function Ge(e,t){const n=d(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=f(t).reduce((t,n)=>[...t,He(e,n)],[]);return e.normalize(n)}}function He(e,t){const n=m(t);switch(n){case 3:return g(t,n);case 9:return g(t,n);case 4:{const r=t;if(o.hasOwn(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(o.hasOwn(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw C(n)}case 5:{const r=t;if(o.hasOwn(r,"i")&&o.isNumber(r.i))return e.interpolate(e.list(r.i));if(o.hasOwn(r,"index")&&o.isNumber(r.index))return e.interpolate(e.list(r.index));throw C(n)}case 6:{const n=t,r=b(n),o=O(n);return e.linked(He(e,o),r?He(e,r):void 0,e.type)}case 7:return g(t,n);case 8:return g(t,n);default:throw new Error("unhandled node on format message part: "+n)}}const Ye=e=>e;let ze=o.create();function qe(){ze=o.create()}function We(e,t={}){let n=!1;const o=t.onError||r.defaultOnError;return t.onError=e=>{n=!0,o(e)},{...r.baseCompile(e,t),detectError:n}}const Ke=(e,t)=>{if(!o.isString(e))throw oe(re.NOT_SUPPORT_NON_STRING_MESSAGE);{!o.isBoolean(t.warnHtmlMessage)||t.warnHtmlMessage;const n=t.onCacheKey||Ye,r=n(e),a=ze[r];if(a)return a;const{code:i,detectError:s}=We(e,t),c=new Function("return "+i)();return s?c:ze[r]=c}};function $e(e,t){if(o.isString(e)){!o.isBoolean(t.warnHtmlMessage)||t.warnHtmlMessage;const n=t.onCacheKey||Ye,r=n(e),a=ze[r];if(a)return a;const{ast:i,detectError:s}=We(e,{...t,location:!1,jit:!0}),c=Be(i);return s?c:ze[r]=c}{const t=e.cacheKey;if(t){const n=ze[t];return n||(ze[t]=Be(e))}return Be(e)}}const Je=()=>"",Xe=e=>o.isFunction(e);function Qe(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:s,fallbackLocale:c,messages:l}=e,[u,d]=rt(...t),p=o.isBoolean(d.missingWarn)?d.missingWarn:e.missingWarn,f=o.isBoolean(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,h=o.isBoolean(d.escapeParameter)?d.escapeParameter:e.escapeParameter,m=!!d.resolvedMessage,v=o.isString(d.default)||o.isBoolean(d.default)?o.isBoolean(d.default)?s?u:()=>u:d.default:n?s?u:()=>u:"",g=n||""!==v,_=ae(e,d);h&&Ze(d);let[b,y,O]=m?[u,_,l[_]||o.create()]:et(e,u,_,c,f,p),M=b,k=u;if(m||o.isString(M)||a(M)||Xe(M)||g&&(M=v,k=M),!m&&(!(o.isString(M)||a(M)||Xe(M))||!o.isString(y)))return i?he:u;let C=!1;const w=()=>{C=!0},S=Xe(M)?M:tt(e,u,y,M,k,w);if(C)return M;const T=at(e,y,O,d),I=H(T),E=nt(e,S,I),j=r?r(E,u):E;return j}function Ze(e){o.isArray(e.list)?e.list=e.list.map(e=>o.isString(e)?o.escapeHtml(e):e):o.isObject(e.named)&&Object.keys(e.named).forEach(t=>{o.isString(e.named[t])&&(e.named[t]=o.escapeHtml(e.named[t]))})}function et(e,t,n,r,i,s){const{messages:c,onWarn:l,messageResolver:u,localeFallbacker:d}=e,p=d(e,r,n);let f,h=o.create(),m=null;const v="translate";for(let g=0;g<p.length;g++){if(f=p[g],h=c[f]||o.create(),null===(m=u(h,t))&&(m=h[t]),o.isString(m)||a(m)||Xe(m))break;if(!Ve(f,p)){const n=xe(e,t,f,s,v);n!==t&&(m=n)}}return[m,f,h]}function tt(e,t,n,r,o,a){const{messageCompiler:i,warnHtmlMessage:s}=e;if(Xe(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==i){const e=()=>r;return e.locale=n,e.key=t,e}const c=i(r,ot(e,n,o,r,s,a));return c.locale=n,c.key=t,c.source=r,c}function nt(e,t,n){const r=t(n);return r}function rt(...e){const[t,n,r]=e,i=o.create();if(!o.isString(t)&&!o.isNumber(t)&&!Xe(t)&&!a(t))throw oe(re.INVALID_ARGUMENT);const s=o.isNumber(t)?String(t):(Xe(t),t);return o.isNumber(n)?i.plural=n:o.isString(n)?i.default=n:o.isPlainObject(n)&&!o.isEmptyObject(n)?i.named=n:o.isArray(n)&&(i.list=n),o.isNumber(r)?i.plural=r:o.isString(r)?i.default=r:o.isPlainObject(r)&&o.assign(i,r),[s,i]}function ot(e,t,n,r,a,i){return{locale:t,key:n,warnHtmlMessage:a,onError:e=>{throw i&&i(e),e},onCacheKey:e=>o.generateFormatCacheKey(t,n,e)}}function at(e,t,n,r){const{modifiers:i,pluralRules:s,messageResolver:c,fallbackLocale:l,fallbackWarn:u,missingWarn:d,fallbackContext:p}=e,f=r=>{let i=c(n,r);if(null==i&&p){const[,,e]=et(p,r,t,l,u,d);i=c(e,r)}if(o.isString(i)||a(i)){let n=!1;const o=()=>{n=!0},a=tt(e,r,t,i,r,o);return n?Je:a}return Xe(i)?i:Je},h={locale:t,modifiers:i,pluralRules:s,messages:f};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),o.isNumber(r.plural)&&(h.pluralIndex=r.plural),h}function it(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:s}=e,{__datetimeFormatters:c}=e,[l,u,d,p]=ct(...t),f=o.isBoolean(d.missingWarn)?d.missingWarn:e.missingWarn;o.isBoolean(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,m=ae(e,d),v=s(e,a,m);if(!o.isString(l)||""===l)return new Intl.DateTimeFormat(m,p).format(u);let g,_={},b=null;const y="datetime format";for(let k=0;k<v.length;k++){if(g=v[k],_=n[g]||{},b=_[l],o.isPlainObject(b))break;xe(e,l,g,f,y)}if(!o.isPlainObject(b)||!o.isString(g))return r?he:l;let O=`${g}__${l}`;o.isEmptyObject(p)||(O=`${O}__${JSON.stringify(p)}`);let M=c.get(O);return M||(M=new Intl.DateTimeFormat(g,o.assign({},b,p)),c.set(O,M)),h?M.formatToParts(u):M.format(u)}const st=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ct(...e){const[t,n,r,a]=e,i=o.create();let s,c=o.create();if(o.isString(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw oe(re.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch(l){throw oe(re.INVALID_ISO_DATE_ARGUMENT)}}else if(o.isDate(t)){if(isNaN(t.getTime()))throw oe(re.INVALID_DATE_ARGUMENT);s=t}else{if(!o.isNumber(t))throw oe(re.INVALID_ARGUMENT);s=t}return o.isString(n)?i.key=n:o.isPlainObject(n)&&Object.keys(n).forEach(e=>{st.includes(e)?c[e]=n[e]:i[e]=n[e]}),o.isString(r)?i.locale=r:o.isPlainObject(r)&&(c=r),o.isPlainObject(a)&&(c=a),[i.key||"",s,i,c]}function lt(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function ut(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:s}=e,{__numberFormatters:c}=e,[l,u,d,p]=pt(...t),f=o.isBoolean(d.missingWarn)?d.missingWarn:e.missingWarn;o.isBoolean(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const h=!!d.part,m=ae(e,d),v=s(e,a,m);if(!o.isString(l)||""===l)return new Intl.NumberFormat(m,p).format(u);let g,_={},b=null;const y="number format";for(let k=0;k<v.length;k++){if(g=v[k],_=n[g]||{},b=_[l],o.isPlainObject(b))break;xe(e,l,g,f,y)}if(!o.isPlainObject(b)||!o.isString(g))return r?he:l;let O=`${g}__${l}`;o.isEmptyObject(p)||(O=`${O}__${JSON.stringify(p)}`);let M=c.get(O);return M||(M=new Intl.NumberFormat(g,o.assign({},b,p)),c.set(O,M)),h?M.formatToParts(u):M.format(u)}const dt=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function pt(...e){const[t,n,r,a]=e,i=o.create();let s=o.create();if(!o.isNumber(t))throw oe(re.INVALID_ARGUMENT);const c=t;return o.isString(n)?i.key=n:o.isPlainObject(n)&&Object.keys(n).forEach(e=>{dt.includes(e)?s[e]=n[e]:i[e]=n[e]}),o.isString(r)?i.locale=r:o.isPlainObject(r)&&(s=r),o.isPlainObject(a)&&(s=a),[i.key||"",c,i,s]}function ft(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}t.CompileErrorCodes=r.CompileErrorCodes,t.createCompileError=r.createCompileError,t.AST_NODE_PROPS_KEYS=k,t.CoreErrorCodes=re,t.CoreWarnCodes=Q,t.DATETIME_FORMAT_OPTIONS_KEYS=st,t.DEFAULT_LOCALE=me,t.DEFAULT_MESSAGE_DATA_TYPE=P,t.MISSING_RESOLVE_VALUE=ve,t.NOT_REOSLVED=he,t.NUMBER_FORMAT_OPTIONS_KEYS=dt,t.VERSION=fe,t.clearCompileCache=qe,t.clearDateTimeFormat=lt,t.clearNumberFormat=ft,t.compile=$e,t.compileToFunction=Ke,t.createCoreContext=Le,t.createCoreError=oe,t.createMessageContext=H,t.datetime=it,t.fallbackWithLocaleChain=le,t.fallbackWithSimple=ce,t.getAdditionalMeta=Te,t.getDevToolsHook=q,t.getFallbackContext=je,t.getLocale=ae,t.getWarnMessage=ee,t.handleMissing=xe,t.initI18nDevTools=W,t.isAlmostSameLocale=Ue,t.isImplicitFallback=Ve,t.isMessageAST=a,t.isMessageFunction=Xe,t.isTranslateFallbackWarn=Ne,t.isTranslateMissingWarn=Re,t.number=ut,t.parse=D,t.parseDateTimeArgs=ct,t.parseNumberArgs=pt,t.parseTranslateArgs=rt,t.registerLocaleFallbacker=Ce,t.registerMessageCompiler=Me,t.registerMessageResolver=ke,t.resolveLocale=se,t.resolveValue=N,t.resolveWithKeyValue=A,t.setAdditionalMeta=Se,t.setDevToolsHook=z,t.setFallbackContext=Ee,t.translate=Qe,t.translateDevTools=K,t.updateFallbackLocale=Pe},"6df1":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7a23");function o({afterComposition:e,emit:t}){const n=Object(r["ref"])(!1),o=e=>{null===t||void 0===t||t("compositionstart",e),n.value=!0},a=e=>{null===t||void 0===t||t("compositionupdate",e),n.value=!0},i=o=>{null===t||void 0===t||t("compositionend",o),n.value&&(n.value=!1,Object(r["nextTick"])(()=>e(o)))},s=e=>{"compositionend"===e.type?i(e):a(e)};return{isComposing:n,handleComposition:s,handleCompositionStart:o,handleCompositionUpdate:a,handleCompositionEnd:i}}},"6e98":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},"6e9a":function(e,t,n){"use strict";e.exports={}},"6ebd":function(e,t,n){"use strict";n("c5a8");var r=n("764b");e.exports=r.setTimeout},"6efd":function(e,t,n){"use strict";var r=n("a5eb"),o=n("0ed2"),a=n("1471"),i=!a("isSubsetOf",(function(e){return e}));r({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:o})},"6f12":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},"6f19":function(e,t,n){"use strict";var r=n("9112"),o=n("0d26b"),a=n("b980"),i=Error.captureStackTrace;e.exports=function(e,t,n,s){a&&(i?i(e,t):r(e,"stack",o(n,s)))}},"6f27":function(e,t,n){"use strict";function r(e){this.content=e}n.d(t,"a",(function(){return se})),n.d(t,"b",(function(){return Oe})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return ne})),n.d(t,"f",(function(){return L})),n.d(t,"g",(function(){return j})),n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return re})),n.d(t,"j",(function(){return f})),r.prototype={constructor:r,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var o=n&&n!=e?this.remove(n):this,a=o.find(e),i=o.content.slice();return-1==a?i.push(n||e,t):(i[a+1]=t,n&&(i[a]=n)),new r(i)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new r(n)},addToStart:function(e,t){return new r([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new r(n)},addBefore:function(e,t,n){var o=this.remove(t),a=o.content.slice(),i=o.find(e);return a.splice(-1==i?a.length:i,0,t,n),new r(a)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=r.from(e),e.size?new r(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=r.from(e),e.size?new r(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=r.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach((function(t,n){e[t]=n})),e},get size(){return this.content.length>>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};var o=r;function a(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let o=e.child(r),i=t.child(r);if(o!=i){if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let e=0;o.text[e]==i.text[e];e++)n++;return n}if(o.content.size||i.content.size){let e=a(o.content,i.content,n+1);if(null!=e)return e}n+=o.nodeSize}else n+=o.nodeSize}}function i(e,t,n,r){for(let o=e.childCount,a=t.childCount;;){if(0==o||0==a)return o==a?null:{a:n,b:r};let s=e.child(--o),c=t.child(--a),l=s.nodeSize;if(s!=c){if(!s.sameMarkup(c))return{a:n,b:r};if(s.isText&&s.text!=c.text){let e=0,t=Math.min(s.text.length,c.text.length);while(e<t&&s.text[s.text.length-e-1]==c.text[c.text.length-e-1])e++,n--,r--;return{a:n,b:r}}if(s.content.size||c.content.size){let e=i(s.content,c.content,n-1,r-1);if(e)return e}n-=l,r-=l}else n-=l,r-=l}}class s{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,t,n,r=0,o){for(let a=0,i=0;i<t;a++){let s=this.content[a],c=i+s.nodeSize;if(c>e&&!1!==n(s,r+i,o||null,a)&&s.content.size){let o=i+1;s.nodesBetween(Math.max(0,e-o),Math.min(s.content.size,t-o),n,r+o)}i=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let o="",a=!0;return this.nodesBetween(e,t,(i,s)=>{let c=i.isText?i.text.slice(Math.max(e,s)-s,t-s):i.isLeaf?r?"function"===typeof r?r(i):r:i.type.spec.leafText?i.type.spec.leafText(i):"":"";i.isBlock&&(i.isLeaf&&c||i.isTextblock)&&n&&(a?a=!1:o+=n),o+=c},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new s(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let o=0,a=0;a<t;o++){let i=this.content[o],s=a+i.nodeSize;s>e&&((a<e||s>t)&&(i=i.isText?i.cut(Math.max(0,e-a),Math.min(i.text.length,t-a)):i.cut(Math.max(0,e-a-1),Math.min(i.content.size,t-a-1))),n.push(i),r+=i.nodeSize),a=s}return new s(n,r)}cutByIndex(e,t){return e==t?s.empty:0==e&&t==this.content.length?this:new s(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new s(r,o)}addToStart(e){return new s([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new s(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return a(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return i(this,e,t,n)}findIndex(e){if(0==e)return l(0,e);if(e==this.size)return l(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),o=n+r.nodeSize;if(o>=e)return o==e?l(t+1,o):l(t,n);n=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return s.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new s(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return s.empty;let t,n=0;for(let r=0;r<e.length;r++){let o=e[r];n+=o.nodeSize,r&&o.isText&&e[r-1].sameMarkup(o)?(t||(t=e.slice(0,r)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new s(t||e,n)}static from(e){if(!e)return s.empty;if(e instanceof s)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new s([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}s.empty=new s([],0);const c={index:0,offset:0};function l(e,t){return c.index=e,c.offset=t,c}function u(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!u(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!u(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class d{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&u(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw new RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return d.none;if(e instanceof d)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}d.none=[];class p extends Error{}class f{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=m(this.content,e+this.openStart,t);return n&&new f(n,this.openStart,this.openEnd)}removeBetween(e,t){return new f(h(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return f.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new f(s.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let o=e.firstChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.firstChild)n++;for(let o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)r++;return new f(e,n,r)}}function h(e,t,n){let{index:r,offset:o}=e.findIndex(t),a=e.maybeChild(r),{index:i,offset:s}=e.findIndex(n);if(o==t||a.isText){if(s!=n&&!e.child(i).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=i)throw new RangeError("Removing non-flat range");return e.replaceChild(r,a.copy(h(a.content,t-o-1,n-o-1)))}function m(e,t,n,r){let{index:o,offset:a}=e.findIndex(t),i=e.maybeChild(o);if(a==t||i.isText)return r&&!r.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=m(i.content,t-a-1,n,i);return s&&e.replaceChild(o,i.copy(s))}function v(e,t,n){if(n.openStart>e.depth)throw new p("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new p("Inconsistent open depths");return g(e,t,n,0)}function g(e,t,n,r){let o=e.index(r),a=e.node(r);if(o==t.index(r)&&r<e.depth-n.openStart){let i=g(e,t,n,r+1);return a.copy(a.content.replaceChild(o,i))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){let{start:o,end:i}=w(n,e);return M(a,k(e,o,i,t,r))}{let r=e.parent,o=r.content;return M(r,o.cut(0,e.parentOffset).append(n.content).append(o.cut(t.parentOffset)))}}return M(a,C(e,t,r))}function _(e,t){if(!t.type.compatibleContent(e.type))throw new p("Cannot join "+t.type.name+" onto "+e.type.name)}function b(e,t,n){let r=e.node(n);return _(r,t.node(n)),r}function y(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function O(e,t,n,r){let o=(t||e).node(n),a=0,i=t?t.index(n):o.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(y(e.nodeAfter,r),a++));for(let s=a;s<i;s++)y(o.child(s),r);t&&t.depth==n&&t.textOffset&&y(t.nodeBefore,r)}function M(e,t){return e.type.checkContent(t),e.copy(t)}function k(e,t,n,r,o){let a=e.depth>o&&b(e,t,o+1),i=r.depth>o&&b(n,r,o+1),c=[];return O(null,e,o,c),a&&i&&t.index(o)==n.index(o)?(_(a,i),y(M(a,k(e,t,n,r,o+1)),c)):(a&&y(M(a,C(e,t,o+1)),c),O(t,n,o,c),i&&y(M(i,C(n,r,o+1)),c)),O(r,null,o,c),new s(c)}function C(e,t,n){let r=[];if(O(null,e,n,r),e.depth>n){let o=b(e,t,n+1);y(M(o,C(e,t,n+1)),r)}return O(t,null,n,r),new s(r)}function w(e,t){let n=t.depth-e.openStart,r=t.node(n),o=r.copy(e.content);for(let a=n-1;a>=0;a--)o=t.node(a).copy(s.from(o));return{start:o.resolveNoCache(e.openStart+n),end:o.resolveNoCache(o.content.size-e.openEnd-n)}}f.empty=new f(s.empty,0,0);class S{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return e=this.resolveDepth(e),0==e?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let o=0;o<e;o++)r+=n.child(o).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return d.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let o=n.marks;for(var a=0;a<o.length;a++)!1!==o[a].type.spec.inclusive||r&&o[a].isInSet(r.marks)||(o=o[a--].removeFromSet(o));return o}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new j(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let n=[],r=0,o=t;for(let a=e;;){let{index:e,offset:t}=a.content.findIndex(o),i=o-t;if(n.push(a,e,r+t),!i)break;if(a=a.child(e),a.isText)break;o=i-1,r+=t+1}return new S(t,n,o)}static resolveCached(e,t){let n=E.get(e);if(n)for(let o=0;o<n.elts.length;o++){let e=n.elts[o];if(e.pos==t)return e}else E.set(e,n=new T);let r=n.elts[n.i]=S.resolve(e,t);return n.i=(n.i+1)%I,r}}class T{constructor(){this.elts=[],this.i=0}}const I=12,E=new WeakMap;class j{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const D=Object.create(null);class L{constructor(e,t,n,r=d.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||s.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&u(this.attrs,t||e.defaultAttrs||D)&&d.sameSet(this.marks,n||d.none)}copy(e=null){return e==this.content?this:new L(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new L(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return f.empty;let r=this.resolve(e),o=this.resolve(t),a=n?0:r.sharedDepth(t),i=r.start(a),s=r.node(a),c=s.content.cut(r.pos-i,o.pos-i);return new f(c,r.depth-a,o.depth-a)}replace(e,t,n){return v(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return S.resolveCached(this,e)}resolveNoCache(e){return S.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),N(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=s.empty,r=0,o=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,o),i=a&&a.matchFragment(this.content,t);if(!i||!i.validEnd)return!1;for(let s=r;s<o;s++)if(!this.type.allowsMarks(n.child(s).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let o=this.contentMatchAt(e).matchType(n),a=o&&o.matchFragment(this.content,t);return!!a&&a.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=d.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!d.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let n=void 0;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=s.fromJSON(e,t.content),o=e.nodeType(t.type).create(t.attrs,r,n);return o.type.checkAttrs(o.attrs),o}}L.prototype.text=void 0;class A extends L{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):N(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new A(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new A(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function N(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class R{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new x(e,t);if(null==n.next)return R.empty;let r=P(n);n.next&&n.err("Unexpected trailing text");let o=W(Y(r));return K(o,n),o}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let o=t;r&&o<n;o++)r=r.matchType(e.child(o).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function o(a,i){let c=a.matchFragment(e,n);if(c&&(!t||c.validEnd))return s.from(i.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!t.isText&&!t.hasRequiredAttrs()&&-1==r.indexOf(n)){r.push(n);let e=o(n,i.concat(t));if(e)return e}}return null}return o(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];while(n.length){let r=n.shift(),o=r.match;if(o.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<o.next.length;e++){let{type:a,next:i}=o.next[e];a.isLeaf||a.hasRequiredAttrs()||a.name in t||r.type&&!i.validEnd||(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let o=0;o<t.next.length;o++)r+=(o?", ":"")+t.next[o].type.name+"->"+e.indexOf(t.next[o].next);return r}).join("\n")}}R.empty=new R(!0);class x{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function P(e){let t=[];do{t.push(U(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function U(e){let t=[];do{t.push(V(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function V(e){let t=H(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=F(e,t)}return t}function B(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function F(e,t){let n=B(e),r=n;return e.eat(",")&&(r="}"!=e.next?B(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function G(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let o=[];for(let a in n){let e=n[a];e.isInGroup(t)&&o.push(e)}return 0==o.length&&e.err("No node type or group '"+t+"' found"),o}function H(e){if(e.eat("(")){let t=P(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){let t=G(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}e.err("Unexpected token '"+e.next+"'")}function Y(e){let t=[[]];return o(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let o={term:r,to:n};return t[e].push(o),o}function o(e,t){e.forEach(e=>e.to=t)}function a(e,t){if("choice"==e.type)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if("seq"!=e.type){if("star"==e.type){let i=n();return r(t,i),o(a(e.expr,i),i),[r(i)]}if("plus"==e.type){let i=n();return o(a(e.expr,t),i),o(a(e.expr,i),i),[r(i)]}if("opt"==e.type)return[r(t)].concat(a(e.expr,t));if("range"==e.type){let i=t;for(let t=0;t<e.min;t++){let t=n();o(a(e.expr,i),t),i=t}if(-1==e.max)o(a(e.expr,i),i);else for(let t=e.min;t<e.max;t++){let t=n();r(i,t),o(a(e.expr,i),t),i=t}return[r(i)]}if("name"==e.type)return[r(t,void 0,e.value)];throw new Error("Unknown expr type")}for(let r=0;;r++){let i=a(e.exprs[r],t);if(r==e.exprs.length-1)return i;o(i,t=n())}}}function z(e,t){return t-e}function q(e,t){let n=[];return r(t),n.sort(z);function r(t){let o=e[t];if(1==o.length&&!o[0].term)return r(o[0].to);n.push(t);for(let e=0;e<o.length;e++){let{term:t,to:a}=o[e];t||-1!=n.indexOf(a)||r(a)}}}function W(e){let t=Object.create(null);return n(q(e,0));function n(r){let o=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<o.length;e++)o[e][0]==t&&(r=o[e][1]);q(e,n).forEach(e=>{r||o.push([t,r=[]]),-1==r.indexOf(e)&&r.push(e)})})});let a=t[r.join(",")]=new R(r.indexOf(e.length-1)>-1);for(let e=0;e<o.length;e++){let r=o[e][1].sort(z);a.next.push({type:o[e][0],next:t[r.join(",")]||n(r)})}return a}}function K(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],o=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:i}=e.next[t];a.push(n.name),!o||n.isText||n.hasRequiredAttrs()||(o=!1),-1==r.indexOf(i)&&r.push(i)}o&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function $(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function J(e,t){let n=Object.create(null);for(let r in e){let o=t&&t[r];if(void 0===o){let t=e[r];if(!t.hasDefault)throw new RangeError("No value supplied for attribute "+r);o=t.default}n[r]=o}return n}function X(e,t,n,r){for(let o in t)if(!(o in e))throw new RangeError(`Unsupported attribute ${o} for ${n} of type ${o}`);for(let o in e){let n=e[o];n.validate&&n.validate(t[o])}}function Q(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new te(e,r,t[r]);return n}class Z{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=Q(e,n.attrs),this.defaultAttrs=$(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==R.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:J(this.attrs,e)}create(e=null,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new L(this,this.computeAttrs(e),s.from(t),d.setFrom(n))}createChecked(e=null,t,n){return t=s.from(t),this.checkContent(t),new L(this,this.computeAttrs(e),t,d.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=s.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),o=r&&r.fillBefore(s.empty,!0);return o?new L(this,e,t.append(o),d.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){X(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:d.none:e}static compile(e,t){let n=Object.create(null);e.forEach((e,r)=>n[e]=new Z(e,t,r));let r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let o in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}function ee(e,t,n){let r=n.split("|");return n=>{let o=null===n?"null":typeof n;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${o}`)}}class te{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?ee(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class ne{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=Q(e,r.attrs),this.excluded=null;let o=$(this.attrs);this.instance=o?new d(this,o):null}create(e=null){return!e&&this.instance?this.instance:new d(this,J(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,o)=>n[e]=new ne(e,r++,t,o)),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){X(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class re{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=o.from(e.nodes),t.marks=o.from(e.marks||{}),this.nodes=Z.compile(this.spec.nodes,this),this.marks=ne.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let e=this.nodes[r],t=e.spec.content||"",o=e.spec.marks;if(e.contentMatch=n[t]||(n[t]=R.parse(t,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!e.isInline||!e.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=e}e.markSet="_"==o?null:o?oe(this,o.split(" ")):""!=o&&e.inlineContent?null:[]}for(let r in this.marks){let e=this.marks[r],t=e.spec.excludes;e.excluded=null==t?[e]:""==t?[]:oe(this,t.split(" "))}this.nodeFromJSON=e=>L.fromJSON(this,e),this.markFromJSON=e=>d.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof Z))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new A(n,n.defaultAttrs,e,d.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function oe(e,t){let n=[];for(let r=0;r<t.length;r++){let o=t[r],a=e.marks[o],i=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];("_"==o||r.spec.group&&r.spec.group.split(" ").indexOf(o)>-1)&&n.push(i=r)}if(!i)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}function ae(e){return null!=e.tag}function ie(e){return null!=e.style}class se{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(ae(e))this.tags.push(e);else if(ie(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new ve(this,t,!1);return n.addAll(e,d.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new ve(this,t,!0);return n.addAll(e,d.none,t.from,t.to),f.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(_e(e,n.tag)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){let r=this.styles[o],a=r.style;if(!(0!=a.indexOf(e)||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(61!=a.charCodeAt(e.length)||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r],o=null==e.priority?50:e.priority;if(o<n)break}t.splice(r,0,e)}for(let r in e.marks){let t=e.marks[r].spec.parseDOM;t&&t.forEach(e=>{n(e=be(e)),e.mark||e.ignore||e.clearMark||(e.mark=r)})}for(let r in e.nodes){let t=e.nodes[r].spec.parseDOM;t&&t.forEach(e=>{n(e=be(e)),e.node||e.ignore||e.mark||(e.node=r)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new se(e,se.schemaRules(e)))}}const ce={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},le={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ue={ol:!0,ul:!0},de=1,pe=2,fe=4;function he(e,t,n){return null!=t?(t?de:0)|("full"===t?pe:0):e&&"pre"==e.whitespace?de|pe:n&~fe}class me{constructor(e,t,n,r,o,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=d.none,this.match=o||(a&fe?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(s.from(e));if(!t){let t,n=this.type.contentMatch;return(t=n.findWrapping(e.type))?(this.match=n,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&de)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let n=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-e[0].length))}}let t=s.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(s.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!ce.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class ve{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r,o=t.topNode,a=he(null,t.preserveWhitespace,0)|(n?fe:0);r=o?new me(o.type,o.attrs,d.none,!0,t.topMatch||o.type.contentMatch,a):new me(n?null:e.schema.topNodeType,null,d.none,!0,null,a),this.nodes=[r],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,o=r.options&pe?"full":this.localPreserveWS||(r.options&de)>0,{schema:a}=this.parser;if("full"===o||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(o)if("full"===o)n=n.replace(/\r\n?/g,"\n");else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(a.text(e[n]),t,!/\S/.test(e[n]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],o=e.previousSibling;(!t||o&&"BR"==o.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}n&&this.insertNode(a.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,o=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a,i=e.nodeName.toLowerCase();ue.hasOwnProperty(i)&&this.parser.normalizeLists&&ge(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,n));e:if(s?s.ignore:le.hasOwnProperty(i))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(ce.hasOwnProperty(i))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),n=!0,o.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let a=s&&s.skip?t:this.readStyles(e,t);a&&this.addAll(e,a),n&&this.sync(o),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,!1===s.consuming?a:void 0)}this.localPreserveWS=r}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let e=this.parser.matchedStyles[r],o=n.getPropertyValue(e);if(o)for(let n=void 0;;){let r=this.parser.matchStyle(e,o,this,n);if(!r)break;if(r.ignore)return null;if(t=r.clearMark?t.filter(e=>!r.clearMark(e)):t.concat(this.parser.schema.marks[r.mark].create(r.attrs)),!1!==r.consuming)break;n=r}}return t}addElementByRule(e,t,n,r){let o,a;if(t.node)if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,"BR"==e.nodeName)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(o=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let i=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;"string"==typeof t.contentElement?r=e.querySelector(t.contentElement):"function"==typeof t.contentElement?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}o&&this.sync(i)&&this.open--}addAll(e,t,n,r){let o=n||0;for(let a=n?e.childNodes[n]:e.firstChild,i=null==r?null:e.childNodes[r];a!=i;a=a.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(a,t);this.findAtPoint(e,o)}findPlace(e,t,n){let r,o;for(let a=this.open,i=0;a>=0;a--){let t=this.nodes[a],s=t.findWrapping(e);if(s&&(!r||r.length>s.length+i)&&(r=s,o=t,!s.length))break;if(t.solid){if(n)break;i+=2}}if(!r)return null;this.sync(o);for(let a=0;a<r.length;a++)t=this.enterInner(r[a],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let n=d.none;for(let o of r.concat(e.marks))(t.type?t.type.allowsMarkType(o.type):ye(o.type,e.type))&&(n=o.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let o=this.findPlace(e.create(t),n,!1);return o&&(o=this.enterInner(e,t,n,!0,r)),o}enterInner(e,t,n,r=!1,o){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let i=he(e,o,a.options);a.options&fe&&0==a.content.length&&(i|=fe);let s=d.none;return n=n.filter(t=>!(a.type?a.type.allowsMarkType(t.type):ye(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new me(e,t,s,r,null,i)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!(!this.isOpen&&!this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=de)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)if(null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)){let e=t.compareDocumentPosition(this.find[r].node);e&(n?2:4)&&(this.find[r].pos=this.currentPos)}}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),o=-(n?n.depth+1:0)+(r?0:1),a=(e,i)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;for(;i>=o;i--)if(a(e-1,i))return!0;return!1}{let e=i>0||0==i&&r?this.nodes[i].type:n&&i>=o?n.node(i-o).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;i--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}}function ge(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&ue.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}function _e(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function be(e){let t={};for(let n in e)t[n]=e[n];return t}function ye(e,t){let n=t.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(e))continue;let a=[],i=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:o}=e.edge(n);if(r==t)return!0;if(a.indexOf(o)<0&&i(o))return!0}};if(i(o.contentMatch))return!0}}class Oe{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=ke(t).createDocumentFragment());let r=n,o=[];return e.forEach(e=>{if(o.length||e.marks.length){let n=0,a=0;while(n<o.length&&a<e.marks.length){let t=e.marks[a];if(this.marks[t.type.name]){if(!t.eq(o[n][0])||!1===t.type.spec.spanning)break;n++,a++}else a++}while(n<o.length)r=o.pop()[1];while(a<e.marks.length){let n=e.marks[a++],i=this.serializeMark(n,e.isInline,t);i&&(o.push([n,r]),r.appendChild(i.dom),r=i.contentDOM||i.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=Te(ke(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let o=this.serializeMark(e.marks[r],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&Te(ke(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return Te(e,t,n,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Oe(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Me(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return Me(e.marks)}}function Me(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function ke(e){return e.document||window.document}const Ce=new WeakMap;function we(e){let t=Ce.get(e);return void 0===t&&Ce.set(e,t=Se(e)),t}function Se(e){let t=null;function n(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])t||(t=[]),t.push(e);else for(let t=0;t<e.length;t++)n(e[t]);else for(let t in e)n(e[t])}return n(e),t}function Te(e,t,n,r){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let o,a=t[0];if("string"!=typeof a)throw new RangeError("Invalid array passed to renderSpec");if(r&&(o=we(r))&&o.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let i,s=a.indexOf(" ");s>0&&(n=a.slice(0,s),a=a.slice(s+1));let c=n?e.createElementNS(n,a):e.createElement(a),l=t[1],u=1;if(l&&"object"==typeof l&&null==l.nodeType&&!Array.isArray(l)){u=2;for(let e in l)if(null!=l[e]){let t=e.indexOf(" ");t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):"style"==e&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let d=u;d<t.length;d++){let o=t[d];if(0===o){if(d<t.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}{let{dom:t,contentDOM:a}=Te(e,o,n,r);if(c.appendChild(t),a){if(i)throw new RangeError("Multiple content holes");i=a}}}return{dom:c,contentDOM:i}}},"6f50":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},"6f89":function(e,t){},"6f8d":function(e,t,n){"use strict";var r=n("dfdb"),o=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(o(e)+" is not an object")}},"6ffb":function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return S})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return I})),n.d(t,"e",(function(){return D})),n.d(t,"f",(function(){return i})),n.d(t,"g",(function(){return s})),n.d(t,"h",(function(){return u}));var r=n("6f27"),o=n("b923");const a=Object.create(null);class i{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new s(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=r["j"].empty){let n=t.content.lastChild,o=null;for(let r=0;r<t.openEnd;r++)o=n,n=n.lastChild;let a=e.steps.length,i=this.ranges;for(let s=0;s<i.length;s++){let{$from:c,$to:l}=i[s],u=e.mapping.slice(a);e.replaceRange(u.map(c.pos),u.map(l.pos),s?r["j"].empty:t),0==s&&g(e,a,(n?n.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:a,$to:i}=r[o],s=e.mapping.slice(n),c=s.map(a.pos),l=s.map(i.pos);o?e.deleteRange(c,l):(e.replaceRangeWith(c,l,t),g(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new u(e):v(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let o=e.depth-1;o>=0;o--){let r=t<0?v(e.node(0),e.node(o),e.before(o+1),e.index(o),t,n):v(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,t,n);if(r)return r}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new h(e.node(0))}static atStart(e){return v(e,e,0,0,1)||new h(e)}static atEnd(e){return v(e,e,e.content.size,e.childCount,-1)||new h(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=a[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in a)throw new RangeError("Duplicate use of selection JSON ID "+e);return a[e]=t,t.prototype.jsonID=e,t}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}i.prototype.visible=!0;class s{constructor(e,t){this.$from=e,this.$to=t}}let c=!1;function l(e){c||e.parent.inlineContent||(c=!0,console["warn"]("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class u extends i{constructor(e,t=e){l(e),l(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return i.near(n);let r=e.resolve(t.map(this.anchor));return new u(r.parent.inlineContent?r:n,n)}replace(e,t=r["j"].empty){if(super.replace(e,t),t==r["j"].empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof u&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new d(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new u(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if(n&&!r||(n=r>=0?1:-1),!t.parent.inlineContent){let e=i.findFrom(t,n,!0)||i.findFrom(t,-n,!0);if(!e)return i.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r?e=t:(e=(i.findFrom(e,-n,!0)||i.findFrom(e,n,!0)).$anchor,e.pos<t.pos!=r<0&&(e=t))),new u(e,t)}}i.jsonID("text",u);class d{constructor(e,t){this.anchor=e,this.head=t}map(e){return new d(e.map(this.anchor),e.map(this.head))}resolve(e){return u.between(e.resolve(this.anchor),e.resolve(this.head))}}class p extends i{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),o=e.resolve(r);return n?i.near(o):new p(o)}content(){return new r["j"](r["c"].from(this.node),0,0)}eq(e){return e instanceof p&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new f(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new p(e.resolve(t.anchor))}static create(e,t){return new p(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}p.prototype.visible=!1,i.jsonID("node",p);class f{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new d(n,n):new f(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&p.isSelectable(n)?new p(t):i.near(t)}}class h extends i{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=r["j"].empty){if(t==r["j"].empty){e.delete(0,e.doc.content.size);let t=i.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new h(e)}map(e){return new h(e)}eq(e){return e instanceof h}getBookmark(){return m}}i.jsonID("all",h);const m={map(){return this},resolve(e){return new h(e)}};function v(e,t,n,r,o,a=!1){if(t.inlineContent)return u.create(e,n);for(let i=r-(o>0?0:1);o>0?i<t.childCount:i>=0;i+=o){let r=t.child(i);if(r.isAtom){if(!a&&p.isSelectable(r))return p.create(e,n-(o<0?r.nodeSize:0))}else{let t=v(e,r,n+o,o<0?r.childCount:0,o,a);if(t)return t}n+=r.nodeSize*o}return null}function g(e,t,n){let r=e.steps.length-1;if(r<t)return;let a=e.steps[r];if(!(a instanceof o["b"]||a instanceof o["a"]))return;let s,c=e.mapping.maps[r];c.forEach((e,t,n,r)=>{null==s&&(s=r)}),e.setSelection(i.near(e.doc.resolve(s),n))}const _=1,b=2,y=4;class O extends o["c"]{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|_)&~b,this.storedMarks=null,this}get selectionSet(){return(this.updated&_)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=b,this}ensureMarks(e){return r["d"].sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&b)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~b,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r["d"].none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),!e)return this.deleteRange(t,n);let o=this.storedMarks;if(!o){let e=this.doc.resolve(t);o=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,o)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(i.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=y,this}get scrolledIntoView(){return(this.updated&y)>0}}function M(e,t){return t&&e?e.bind(t):e}class k{constructor(e,t,n){this.name=e,this.init=M(t.init,n),this.apply=M(t.apply,n)}}const C=[new k("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new k("selection",{init(e,t){return e.selection||i.atStart(t.doc)},apply(e){return e.selection}}),new k("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new k("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class w{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=C.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new k(e.key,e.spec.state,e))})}}class S{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let o=!1;for(let a=0;a<this.config.plugins.length;a++){let i=this.config.plugins[a];if(i.spec.appendTransaction){let s=r?r[a].n:0,c=r?r[a].state:this,l=s<t.length&&i.spec.appendTransaction.call(i,s?t.slice(s):t,c,n);if(l&&n.filterTransaction(l,a)){if(l.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<a?{state:n,n:t.length}:{state:this,n:0})}t.push(l),n=n.applyInner(l),o=!0}r&&(r[a]={state:n,n:t.length})}}if(!o)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new S(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let o=n[r];t[o.name]=o.apply(e,this[o.name],this,t)}return t}get tr(){return new O(this)}static create(e){let t=new w(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new S(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new w(this.schema,e.plugins),n=t.fields,r=new S(t);for(let o=0;o<n.length;o++){let t=n[o].name;r[t]=this.hasOwnProperty(t)?this[t]:n[o].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],o=r.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new w(e.schema,e.plugins),a=new S(o);return o.fields.forEach(o=>{if("doc"==o.name)a.doc=r["f"].fromJSON(e.schema,t.doc);else if("selection"==o.name)a.selection=i.fromJSON(a.doc,t.selection);else if("storedMarks"==o.name)t.storedMarks&&(a.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let r in n){let i=n[r],s=i.spec.state;if(i.key==o.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,r))return void(a[o.name]=s.fromJSON.call(i,e,t[r],a))}a[o.name]=o.init(e,a)}}),a}}function T(e,t,n){for(let r in e){let o=e[r];o instanceof Function?o=o.bind(t):"handleDOMEvents"==r&&(o=T(o,t,{})),n[r]=o}return n}class I{constructor(e){this.spec=e,this.props={},e.props&&T(e.props,this,this.props),this.key=e.key?e.key.key:j("plugin")}getState(e){return e[this.key]}}const E=Object.create(null);function j(e){return e in E?e+"$"+ ++E[e]:(E[e]=0,e+"$")}class D{constructor(e="key"){this.key=j(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},7042:function(e,t,n){"use strict";e.exports=!0},7043:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);t.f=a?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},7106:function(e,t,n){"use strict";var r=n("a180"),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},7116:function(e,t,n){"use strict";var r=n("a5eb"),o=n("4fff"),a=n("4508"),i=n("c7d2"),s=n("c74f"),c=n("ffb3"),l=n("3e23"),u=n("4344"),d=n("6c15"),p=n("741b"),f=n("9c96"),h=f("splice"),m=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!h},{splice:function(e,t){var n,r,f,h,g,_,b=o(this),y=s(b),O=a(e,y),M=arguments.length;for(0===M?n=r=0:1===M?(n=0,r=y-O):(n=M-2,r=v(m(i(t),0),y-O)),l(y+n-r),f=u(b,r),h=0;h<r;h++)g=O+h,g in b&&d(f,h,b[g]);if(c(f,r),n<r){for(h=O;h<y-r;h++)g=h+r,_=h+n,g in b?b[_]=b[g]:p(b,_);for(h=y;h>y-r+n;h--)p(b,h-1)}else if(n>r)for(h=y-r;h>O;h--)g=h+r-1,_=h+n-1,g in b?b[_]=b[g]:p(b,_);for(h=0;h<n;h++)b[h+O]=arguments[h+2];return c(b,y-r+n),f}})},7118:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),r=e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return r}))},"711e":function(e,t,n){"use strict";var r=n("a5eb"),o=n("680e"),a=n("c44e");r({target:"Array",proto:!0},{fill:o}),a("fill")},"712a":function(e,t,n){(function(e,r){r(t,n("b8ca"))})(0,(function(e,t){"use strict";const n=Math.min,r=Math.max,o=Math.round,a=Math.floor,i=e=>({x:e,y:e});function s(){return"undefined"!==typeof window}function c(e){return d(e)?(e.nodeName||"").toLowerCase():"#document"}function l(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function u(e){var t;return null==(t=(d(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function d(e){return!!s()&&(e instanceof Node||e instanceof l(e).Node)}function p(e){return!!s()&&(e instanceof Element||e instanceof l(e).Element)}function f(e){return!!s()&&(e instanceof HTMLElement||e instanceof l(e).HTMLElement)}function h(e){return!(!s()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof l(e).ShadowRoot)}function m(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=S(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function v(e){return/^(table|td|th)$/.test(c(e))}function g(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}const _=/transform|translate|scale|rotate|perspective|filter/,b=/paint|layout|strict|content/,y=e=>!!e&&"none"!==e;let O;function M(e){const t=p(e)?S(e):e;return y(t.transform)||y(t.translate)||y(t.scale)||y(t.rotate)||y(t.perspective)||!C()&&(y(t.backdropFilter)||y(t.filter))||_.test(t.willChange||"")||b.test(t.contain||"")}function k(e){let t=I(e);while(f(t)&&!w(t)){if(M(t))return t;if(g(t))return null;t=I(t)}return null}function C(){return null==O&&(O="undefined"!==typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),O}function w(e){return/^(html|body|#document)$/.test(c(e))}function S(e){return l(e).getComputedStyle(e)}function T(e){return p(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function I(e){if("html"===c(e))return e;const t=e.assignedSlot||e.parentNode||h(e)&&e.host||u(e);return h(t)?t.host:t}function E(e){const t=I(e);return w(t)?e.ownerDocument?e.ownerDocument.body:e.body:f(t)&&m(t)?t:E(t)}function j(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=E(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=l(o);if(a){const e=D(i);return t.concat(i,i.visualViewport||[],m(o)?o:[],e&&n?j(e):[])}return t.concat(o,j(o,[],n))}function D(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function L(e){const t=S(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=f(e),i=a?e.offsetWidth:n,s=a?e.offsetHeight:r,c=o(n)!==i||o(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function A(e){return p(e)?e:e.contextElement}function N(e){const t=A(e);if(!f(t))return i(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:s}=L(t);let c=(s?o(n.width):n.width)/r,l=(s?o(n.height):n.height)/a;return c&&Number.isFinite(c)||(c=1),l&&Number.isFinite(l)||(l=1),{x:c,y:l}}const R=i(0);function x(e){const t=l(e);return C()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:R}function P(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==l(e))&&t}function U(e,n,r,o){void 0===n&&(n=!1),void 0===r&&(r=!1);const a=e.getBoundingClientRect(),s=A(e);let c=i(1);n&&(o?p(o)&&(c=N(o)):c=N(e));const u=P(s,r,o)?x(s):i(0);let d=(a.left+u.x)/c.x,f=(a.top+u.y)/c.y,h=a.width/c.x,m=a.height/c.y;if(s){const e=l(s),t=o&&p(o)?l(o):o;let n=e,r=D(n);while(r&&o&&t!==n){const e=N(r),t=r.getBoundingClientRect(),o=S(r),a=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;d*=e.x,f*=e.y,h*=e.x,m*=e.y,d+=a,f+=i,n=l(r),r=D(n)}}return t.rectToClientRect({width:h,height:m,x:d,y:f})}function V(e,t){const n=T(e).scrollLeft;return t?t.left+n:U(u(e)).left+n}function B(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-V(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function F(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,s=u(r),l=!!t&&g(t.floating);if(r===s||l&&a)return n;let d={scrollLeft:0,scrollTop:0},p=i(1);const h=i(0),v=f(r);if((v||!v&&!a)&&(("body"!==c(r)||m(s))&&(d=T(r)),v)){const e=U(r);p=N(r),h.x=e.x+r.clientLeft,h.y=e.y+r.clientTop}const _=!s||v||a?i(0):B(s,d);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-d.scrollLeft*p.x+h.x+_.x,y:n.y*p.y-d.scrollTop*p.y+h.y+_.y}}function G(e){return Array.from(e.getClientRects())}function H(e){const t=u(e),n=T(e),o=e.ownerDocument.body,a=r(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=r(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+V(e);const c=-n.scrollTop;return"rtl"===S(o).direction&&(s+=r(t.clientWidth,o.clientWidth)-a),{width:a,height:i,x:s,y:c}}const Y=25;function z(e,t){const n=l(e),r=u(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const e=C();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}const d=V(r);if(d<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=Y&&(a-=i)}else d<=Y&&(a+=d);return{width:a,height:i,x:s,y:c}}function q(e,t){const n=U(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=f(e)?N(e):i(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,l=o*a.x,u=r*a.y;return{width:s,height:c,x:l,y:u}}function W(e,n,r){let o;if("viewport"===n)o=z(e,r);else if("document"===n)o=H(u(e));else if(p(n))o=q(n,r);else{const t=x(e);o={x:n.x-t.x,y:n.y-t.y,width:n.width,height:n.height}}return t.rectToClientRect(o)}function K(e,t){const n=I(e);return!(n===t||!p(n)||w(n))&&("fixed"===S(n).position||K(n,t))}function $(e,t){const n=t.get(e);if(n)return n;let r=j(e,[],!1).filter(e=>p(e)&&"body"!==c(e)),o=null;const a="fixed"===S(e).position;let i=a?I(e):e;while(p(i)&&!w(i)){const t=S(i),n=M(i);n||"fixed"!==t.position||(o=null);const s=a?!n&&!o:!n&&"static"===t.position&&!!o&&("absolute"===o.position||"fixed"===o.position)||m(i)&&!n&&K(e,i);s?r=r.filter(e=>e!==i):o=t,i=I(i)}return t.set(e,r),r}function J(e){let{element:t,boundary:o,rootBoundary:a,strategy:i}=e;const s="clippingAncestors"===o?g(t)?[]:$(t,this._c):[].concat(o),c=[...s,a],l=W(t,c[0],i);let u=l.top,d=l.right,p=l.bottom,f=l.left;for(let h=1;h<c.length;h++){const e=W(t,c[h],i);u=r(e.top,u),d=n(e.right,d),p=n(e.bottom,p),f=r(e.left,f)}return{width:d-f,height:p-u,x:f,y:u}}function X(e){const{width:t,height:n}=L(e);return{width:t,height:n}}function Q(e,t,n){const r=f(t),o=u(t),a="fixed"===n,s=U(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const d=i(0);function p(){d.x=V(o)}if(r||!r&&!a)if(("body"!==c(t)||m(o))&&(l=T(t)),r){const e=U(t,!0,a,t);d.x=e.x+t.clientLeft,d.y=e.y+t.clientTop}else o&&p();a&&!r&&o&&p();const h=!o||r||a?i(0):B(o,l),v=s.left+l.scrollLeft-d.x-h.x,g=s.top+l.scrollTop-d.y-h.y;return{x:v,y:g,width:s.width,height:s.height}}function Z(e){return"static"===S(e).position}function ee(e,t){if(!f(e)||"fixed"===S(e).position)return null;if(t)return t(e);let n=e.offsetParent;return u(e)===n&&(n=n.ownerDocument.body),n}function te(e,t){const n=l(e);if(g(e))return n;if(!f(e)){let t=I(e);while(t&&!w(t)){if(p(t)&&!Z(t))return t;t=I(t)}return n}let r=ee(e,t);while(r&&v(r)&&Z(r))r=ee(r,t);return r&&w(r)&&Z(r)&&!M(r)?n:r||k(e)||n}const ne=async function(e){const t=this.getOffsetParent||te,n=this.getDimensions,r=await n(e.floating);return{reference:Q(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function re(e){return"rtl"===S(e).direction}const oe={convertOffsetParentRelativeRectToViewportRelativeRect:F,getDocumentElement:u,getClippingRect:J,getOffsetParent:te,getElementRects:ne,getClientRects:G,getDimensions:X,getScale:N,isElement:p,isRTL:re};function ae(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ie(e,t){let o,i=null;const s=u(e);function c(){var e;clearTimeout(o),null==(e=i)||e.disconnect(),i=null}function l(u,d){void 0===u&&(u=!1),void 0===d&&(d=1),c();const p=e.getBoundingClientRect(),{left:f,top:h,width:m,height:v}=p;if(u||t(),!m||!v)return;const g=a(h),_=a(s.clientWidth-(f+m)),b=a(s.clientHeight-(h+v)),y=a(f),O=-g+"px "+-_+"px "+-b+"px "+-y+"px",M={rootMargin:O,threshold:r(0,n(1,d))||1};let k=!0;function C(t){const n=t[0].intersectionRatio;if(n!==d){if(!k)return l();n?l(!1,n):o=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==n||ae(p,e.getBoundingClientRect())||l(),k=!1}try{i=new IntersectionObserver(C,{...M,root:s.ownerDocument})}catch(w){i=new IntersectionObserver(C,M)}i.observe(e)}return l(!0),c}function se(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"===typeof ResizeObserver,layoutShift:s="function"===typeof IntersectionObserver,animationFrame:c=!1}=r,l=A(e),u=o||a?[...l?j(l):[],...t?j(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=l&&s?ie(l,n):null;let p,f=-1,h=null;i&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&h&&t&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),l&&!c&&h.observe(l),t&&h.observe(t));let m=c?U(e):null;function v(){const t=U(e);m&&!ae(m,t)&&n(),m=t,p=requestAnimationFrame(v)}return c&&v(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const ce=t.detectOverflow,le=t.offset,ue=t.autoPlacement,de=t.shift,pe=t.flip,fe=t.size,he=t.hide,me=t.arrow,ve=t.inline,ge=t.limitShift,_e=(e,n,r)=>{const o=new Map,a={platform:oe,...r},i={...a.platform,_c:o};return t.computePosition(e,n,{...a,platform:i})};e.arrow=me,e.autoPlacement=ue,e.autoUpdate=se,e.computePosition=_e,e.detectOverflow=ce,e.flip=pe,e.getOverflowAncestors=j,e.hide=he,e.inline=ve,e.limitShift=ge,e.offset=le,e.platform=oe,e.shift=de,e.size=fe}))},7156:function(e,t,n){"use strict";var r=n("1626"),o=n("861d"),a=n("d2bb");e.exports=function(e,t,n){var i,s;return a&&r(i=t.constructor)&&i!==n&&o(s=i.prototype)&&s!==n.prototype&&a(e,s),e}},"715d":function(e,t){},7168:function(e,t,n){"use strict";var r=n("7106"),o=n("dfdb"),a=n("c978"),i=n("f8b6"),s=n("a3f5"),c=n("0363"),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!o(e)||a(e))return e;var n,c=i(e,u);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!o(n)||a(n))return n;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},"716a":function(e,t,n){"use strict";n("8e5c"),n("9103"),n("6f89"),n("6813"),n("84d2"),n("75df"),n("952c"),n("3a95"),n("362a"),n("3e47");var r=n("764b");e.exports=r.Promise},"718c":function(e,t,n){"use strict";n("9103"),n("db9b");var r=n("a5eb"),o=n("3eba"),a=n("fb30"),i=n("9883"),s=n("7106"),c=n("ce18"),l=n("c1b2"),u=n("36b8"),d=n("fdbe"),p=n("2296"),f=n("bc4a"),h=n("2874"),m=n("99da"),v=n("2f5a"),g=n("5f7d"),_=n("fb2d"),b=n("0e6f"),y=n("6414"),O=n("8f95"),M=n("6f8d"),k=n("dfdb"),C=n("8c12"),w=n("4896"),S=n("2c6c"),T=n("d9f3"),I=n("0b7b"),E=n("ddb5"),j=n("f868"),D=n("0363"),L=n("ade5"),A=D("iterator"),N="URLSearchParams",R=N+"Iterator",x=v.set,P=v.getterFor(N),U=v.getterFor(R),V=a("fetch"),B=a("Request"),F=a("Headers"),G=B&&B.prototype,H=F&&F.prototype,Y=o.TypeError,z=o.encodeURIComponent,q=String.fromCharCode,W=i("String","fromCodePoint"),K=parseInt,$=c("".charAt),J=c([].join),X=c([].push),Q=c("".replace),Z=c([].shift),ee=c([].splice),te=c("".split),ne=c("".slice),re=c(/./.exec),oe=/\+/g,ae="",ie=/^[0-9a-f]+$/i,se=function(e,t){var n=ne(e,t,t+2);return re(ie,n)?K(n,16):NaN},ce=function(e){for(var t=0,n=128;n>0&&0!==(e&n);n>>=1)t++;return t},le=function(e){var t=null,n=e.length;switch(n){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3];break}return null===t||t>1114111||t>=55296&&t<=57343||t<(n>3?65536:n>2?2048:n>1?128:0)?null:t},ue=function(e){e=Q(e,oe," ");var t=e.length,n="",r=0;while(r<t){var o=$(e,r);if("%"===o){if("%"===$(e,r+1)||r+3>t){n+="%",r++;continue}var a=se(e,r+1);if(a!==a){n+=o,r++;continue}r+=2;var i=ce(a);if(0===i)o=q(a);else{if(1===i||i>4){n+=ae,r++;continue}var s=[a],c=1;while(c<i){if(r++,r+3>t||"%"!==$(e,r))break;var l=se(e,r+1);if(l!==l||l>191||l<128)break;if(1===c){if(224===a&&l<160)break;if(237===a&&l>159)break;if(240===a&&l<144)break;if(244===a&&l>143)break}X(s,l),r+=2,c++}if(s.length!==i){n+=ae;continue}var u=le(s);if(null===u){for(var d=0;d<i;d++)n+=ae;r++;continue}o=W(u)}}n+=o,r++}return n},de=/[!'()~]|%20/g,pe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},fe=function(e){return pe[e]},he=function(e){return Q(z(e),de,fe)},me=m((function(e,t){x(this,{type:R,target:P(e).entries,index:0,kind:t})}),N,(function(){var e=U(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,E(void 0,!0);var r=t[n];switch(e.kind){case"keys":return E(r.key,!1);case"values":return E(r.value,!1)}return E([r.key,r.value],!1)}),!0),ve=function(e){this.entries=[],this.url=null,void 0!==e&&(k(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===$(e,0)?ne(e,1):e:C(e)))};ve.prototype={type:N,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,a,i,c,l=this.entries,u=I(e);if(u){t=T(e,u),n=t.next;while(!(r=s(n,t)).done){if(o=T(M(r.value)),a=o.next,(i=s(a,o)).done||(c=s(a,o)).done||!s(a,o).done)throw new Y("Expected sequence with length 2");X(l,{key:C(i.value),value:C(c.value)})}}else for(var d in e)b(e,d)&&X(l,{key:d,value:C(e[d])})},parseQuery:function(e){if(e){var t,n,r=this.entries,o=te(e,"&"),a=0;while(a<o.length)t=o[a++],t.length&&(n=te(t,"="),X(r,{key:ue(Z(n)),value:ue(J(n,"="))}))}},serialize:function(){var e,t=this.entries,n=[],r=0;while(r<t.length)e=t[r++],X(n,he(e.key)+"="+he(e.value));return J(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ge=function(){g(this,_e);var e=arguments.length>0?arguments[0]:void 0,t=x(this,new ve(e));l||(this.size=t.entries.length)},_e=ge.prototype;if(f(_e,{append:function(e,t){var n=P(this);j(arguments.length,2),X(n.entries,{key:C(e),value:C(t)}),l||this.size++,n.updateURL()},delete:function(e){var t=P(this),n=j(arguments.length,1),r=t.entries,o=C(e),a=n<2?void 0:arguments[1],i=void 0===a?a:C(a),s=0;while(s<r.length){var c=r[s];c.key!==o||void 0!==i&&c.value!==i?s++:ee(r,s,1)}l||(this.size=r.length),t.updateURL()},get:function(e){var t=P(this).entries;j(arguments.length,1);for(var n=C(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=P(this).entries;j(arguments.length,1);for(var n=C(e),r=[],o=0;o<t.length;o++)t[o].key===n&&X(r,t[o].value);return r},has:function(e){var t=P(this).entries,n=j(arguments.length,1),r=C(e),o=n<2?void 0:arguments[1],a=void 0===o?o:C(o),i=0;while(i<t.length){var s=t[i++];if(s.key===r&&(void 0===a||s.value===a))return!0}return!1},set:function(e,t){var n=P(this);j(arguments.length,2);for(var r,o=n.entries,a=!1,i=C(e),s=C(t),c=0;c<o.length;c++)r=o[c],r.key===i&&(a?ee(o,c--,1):(a=!0,r.value=s));a||X(o,{key:i,value:s}),l||(this.size=o.length),n.updateURL()},sort:function(){var e=P(this);L(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,n=P(this).entries,r=y(e,arguments.length>1?arguments[1]:void 0),o=0;while(o<n.length)t=n[o++],r(t.value,t.key,this)},keys:function(){return new me(this,"keys")},values:function(){return new me(this,"values")},entries:function(){return new me(this,"entries")}},{enumerable:!0}),d(_e,A,_e.entries,{name:"entries"}),d(_e,"toString",(function(){return P(this).serialize()}),{enumerable:!0}),l&&p(_e,"size",{get:function(){return P(this).entries.length},configurable:!0,enumerable:!0}),h(ge,N),r({global:!0,constructor:!0,forced:!u},{URLSearchParams:ge}),!u&&_(F)){var be=c(H.has),ye=c(H.set),Oe=function(e){if(k(e)){var t,n=e.body;if(O(n)===N)return t=e.headers?new F(e.headers):new F,be(t,"content-type")||ye(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),w(e,{body:S(0,C(n)),headers:S(0,t)})}return e};if(_(V)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return V(e,arguments.length>1?Oe(arguments[1]):{})}}),_(B)){var Me=function(e){return g(this,G),new B(e,arguments.length>1?Oe(arguments[1]):{})};G.constructor=Me,Me.prototype=G,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Me})}}e.exports={URLSearchParams:ge,getState:P}},7190:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("2b0b"),o=n.n(r),a=n("8afb"),i=n("0e69"),s=n("c79f"),c=n("304f"),l=n("7a23");const u=(e,t={})=>{Object(l["isRef"])(e)||Object(a["b"])("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Object(c["d"])("popup"),r=Object(l["computed"])(()=>n.bm("parent","hidden"));let u=0,d=!1,p="0",f=!1;const h=()=>{f||(f=!0,o()(()=>{"undefined"!==typeof document&&d&&document&&(document.body.style.width=p,Object(i["e"])(document.body,r.value))},200))};Object(l["watch"])(e,e=>{if(!e)return void h();f=!1,d=!Object(i["d"])(document.body,r.value),d&&(p=document.body.style.width,Object(i["a"])(document.body,r.value)),u=Object(s["b"])(n.namespace.value);const t=document.documentElement.clientHeight<document.body.scrollHeight,o=Object(i["c"])(document.body,"overflowY");u>0&&(t||"scroll"===o)&&d&&(document.body.style.width=`calc(100% - ${u}px)`)}),Object(l["onScopeDispose"])(()=>h())}},7192:function(e,t,n){"use strict";var r=n("cfe9"),o=n("e330"),a=n("f69d"),i=n("8a96"),s=n("1a2d"),c=n("b917"),l=n("da63"),u=n("2005"),d=c.c2i,p=c.c2iUrl,f=r.SyntaxError,h=r.TypeError,m=o("".charAt),v=function(e,t){for(var n=e.length;t<n;t++){var r=m(e,t);if(" "!==r&&"\t"!==r&&"\n"!==r&&"\f"!==r&&"\r"!==r)break}return t},g=function(e,t,n){var r=e.length;r<4&&(e+=2===r?"AA":"A");var o=(t[m(e,0)]<<18)+(t[m(e,1)]<<12)+(t[m(e,2)]<<6)+t[m(e,3)],a=[o>>16&255,o>>8&255,255&o];if(2===r){if(n&&0!==a[1])throw new f("Extra bits");return[a[0]]}if(3===r){if(n&&0!==a[2])throw new f("Extra bits");return[a[0],a[1]]}return a},_=function(e,t,n){for(var r=t.length,o=0;o<r;o++)e[n+o]=t[o];return n+r};e.exports=function(e,t,n,r){i(e),a(t);var o="base64"===l(t)?d:p,c=t?t.lastChunkHandling:void 0;if(void 0===c&&(c="loose"),"loose"!==c&&"strict"!==c&&"stop-before-partial"!==c)throw new h("Incorrect `lastChunkHandling` option");n&&u(n.buffer);var b=e.length,y=n||[],O=0,M=0,k="",C=0;if(r)while(1){if(C=v(e,C),C===b){if(k.length>0){if("stop-before-partial"===c)break;if("loose"!==c)throw new f("Missing padding");if(1===k.length)throw new f("Malformed padding: exactly one additional character");O=_(y,g(k,o,!1),O)}M=b;break}var w=m(e,C);if(++C,"="===w){if(k.length<2)throw new f("Padding is too early");if(C=v(e,C),2===k.length){if(C===b){if("stop-before-partial"===c)break;throw new f("Malformed padding: only one =")}"="===m(e,C)&&(++C,C=v(e,C))}if(C<b)throw new f("Unexpected character after padding");O=_(y,g(k,o,"strict"===c),O),M=b;break}if(!s(o,w))throw new f("Unexpected character");var S=r-O;if(1===S&&2===k.length||2===S&&3===k.length)break;if(k+=w,4===k.length&&(O=_(y,g(k,o,!1),O),k="",M=C,O===r))break}return{bytes:y,read:M,written:O}}},"71c3":function(e,t,n){"use strict";var r=n("4e19"),o=n("6f8d"),a=n("7106"),i=n("c7d2"),s=n("4c91"),c="Invalid size",l=RangeError,u=TypeError,d=Math.max,p=function(e,t){this.set=e,this.size=d(t,0),this.has=r(e.has),this.keys=r(e.keys)};p.prototype={getIterator:function(){return s(o(a(this.keys,this.set)))},includes:function(e){return a(this.has,this.set,e)}},e.exports=function(e){o(e);var t=+e.size;if(t!==t)throw new u(c);var n=i(t);if(n<0)throw new l(c);return new p(e,n)}},"71c9":function(e,t,n){"use strict";var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch(o){r=!1}e.exports=r},"71d7":function(e,t,n){e.exports=n("a4fb")},"71dc":function(e,t,n){"use strict";var r=n("b15d"),o=n("3a40").add,a=n("c84f"),i=n("71c3"),s=n("5415");e.exports=function(e){var t=r(this),n=i(e).getIterator(),c=a(t);return s(n,(function(e){o(c,e)})),c}},7201:function(e,t,n){"use strict";n("18fa")},7234:function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e}},7282:function(e,t,n){"use strict";var r=n("e330"),o=n("59ed");e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(a){}}},"72a5":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return u}));var r=n("3b4c"),o=n.n(r);const a="focus-trap.focus-after-trapped",i="focus-trap.focus-after-released",s="focus-trap.focusout-prevented",c={cancelable:!0,bubbles:!1},l={cancelable:!0,bubbles:!1},u="focusAfterTrapped",d="focusAfterReleased",p=o()("elFocusTrap")},"72d7":function(e,t,n){"use strict";var r=n("8961a");e.exports=r},7325:function(e,t,n){"use strict";var r=n("a5eb"),o=n("f775"),a=n("7042"),i=o.get,s=o.has,c=o.set;r({target:"Map",proto:!0,real:!0,forced:a},{getOrInsert:function(e,t){return s(this,e)?i(this,e):(c(this,e,t),t)}})},7328:function(e,t,n){"use strict";n("6140");var r=n("764b");e.exports=r.Number.parseInt},7333:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}});return t}))},"740b":function(e,t,n){"use strict";var r=n("2d80"),o=n("8b9c"),a=n("a4fc");n("14d9"),r(t,"__esModule",{value:!0}),t.TinyColor=void 0;const i=n("d756"),s=n("fc75"),c=n("4af5"),l=n("1127");class u{constructor(e="",t={}){var n;if(e instanceof u)return e;"number"===typeof e&&(e=(0,i.numberInputToObject)(e)),this.originalInput=e;const r=(0,c.inputToRGB)(e);this.originalInput=e,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(n=t.format)&&void 0!==n?n:r.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3}getLuminance(){const e=this.toRgb();let t,n,r;const o=e.r/255,a=e.g/255,i=e.b/255;return t=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),n=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),r=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),.2126*t+.7152*n+.0722*r}getAlpha(){return this.a}setAlpha(e){return this.a=(0,l.boundAlpha)(e),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:e}=this.toHsl();return 0===e}toHsv(){const e=(0,i.rgbToHsv)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}}toHsvString(){const e=(0,i.rgbToHsv)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?`hsv(${t}, ${n}%, ${r}%)`:`hsva(${t}, ${n}%, ${r}%, ${this.roundA})`}toHsl(){const e=(0,i.rgbToHsl)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}}toHslString(){const e=(0,i.rgbToHsl)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?`hsl(${t}, ${n}%, ${r}%)`:`hsla(${t}, ${n}%, ${r}%, ${this.roundA})`}toHex(e=!1){return(0,i.rgbToHex)(this.r,this.g,this.b,e)}toHexString(e=!1){return"#"+this.toHex(e)}toHex8(e=!1){return(0,i.rgbaToHex)(this.r,this.g,this.b,this.a,e)}toHex8String(e=!1){return"#"+this.toHex8(e)}toHexShortString(e=!1){return 1===this.a?this.toHexString(e):this.toHex8String(e)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?`rgb(${e}, ${t}, ${n})`:`rgba(${e}, ${t}, ${n}, ${this.roundA})`}toPercentageRgb(){const e=e=>Math.round(100*(0,l.bound01)(e,255))+"%";return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}}toPercentageRgbString(){const e=e=>Math.round(100*(0,l.bound01)(e,255));return 1===this.a?`rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)`:`rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`}toCmyk(){return{...(0,i.rgbToCmyk)(this.r,this.g,this.b)}}toCmykString(){const{c:e,m:t,y:n,k:r}=(0,i.rgbToCmyk)(this.r,this.g,this.b);return`cmyk(${e}, ${t}, ${n}, ${r})`}toName(){if(0===this.a)return"transparent";if(this.a<1)return!1;const e="#"+(0,i.rgbToHex)(this.r,this.g,this.b,!1);for(const[t,n]of o(s.names))if(e===n)return t;return!1}toString(e){const t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;let n=!1;const r=this.a<1&&this.a>=0,o=!t&&r&&(a(e).call(e,"hex")||"name"===e);return o?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),"cmyk"===e&&(n=this.toCmykString()),n||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new u(this.toString())}lighten(e=10){const t=this.toHsl();return t.l+=e/100,t.l=(0,l.clamp01)(t.l),new u(t)}brighten(e=10){const t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(-e/100*255))),t.g=Math.max(0,Math.min(255,t.g-Math.round(-e/100*255))),t.b=Math.max(0,Math.min(255,t.b-Math.round(-e/100*255))),new u(t)}darken(e=10){const t=this.toHsl();return t.l-=e/100,t.l=(0,l.clamp01)(t.l),new u(t)}tint(e=10){return this.mix("white",e)}shade(e=10){return this.mix("black",e)}desaturate(e=10){const t=this.toHsl();return t.s-=e/100,t.s=(0,l.clamp01)(t.s),new u(t)}saturate(e=10){const t=this.toHsl();return t.s+=e/100,t.s=(0,l.clamp01)(t.s),new u(t)}greyscale(){return this.desaturate(100)}spin(e){const t=this.toHsl(),n=(t.h+e)%360;return t.h=n<0?360+n:n,new u(t)}mix(e,t=50){const n=this.toRgb(),r=new u(e).toRgb(),o=t/100,a={r:(r.r-n.r)*o+n.r,g:(r.g-n.g)*o+n.g,b:(r.b-n.b)*o+n.b,a:(r.a-n.a)*o+n.a};return new u(a)}analogous(e=6,t=30){const n=this.toHsl(),r=360/t,o=[this];for(n.h=(n.h-(r*e>>1)+720)%360;--e;)n.h=(n.h+r)%360,o.push(new u(n));return o}complement(){const e=this.toHsl();return e.h=(e.h+180)%360,new u(e)}monochromatic(e=6){const t=this.toHsv(),{h:n}=t,{s:r}=t;let{v:o}=t;const a=[],i=1/e;while(e--)a.push(new u({h:n,s:r,v:o})),o=(o+i)%1;return a}splitcomplement(){const e=this.toHsl(),{h:t}=e;return[this,new u({h:(t+72)%360,s:e.s,l:e.l}),new u({h:(t+216)%360,s:e.s,l:e.l})]}onBackground(e){const t=this.toRgb(),n=new u(e).toRgb(),r=t.a+n.a*(1-t.a);return new u({r:(t.r*t.a+n.r*n.a*(1-t.a))/r,g:(t.g*t.a+n.g*n.a*(1-t.a))/r,b:(t.b*t.a+n.b*n.a*(1-t.a))/r,a:r})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(e){const t=this.toHsl(),{h:n}=t,r=[this],o=360/e;for(let a=1;a<e;a++)r.push(new u({h:(n+a*o)%360,s:t.s,l:t.l}));return r}equals(e){const t=new u(e);return"cmyk"===this.format||"cmyk"===t.format?this.toCmykString()===t.toCmykString():this.toRgbString()===t.toRgbString()}}t.TinyColor=u},7418:function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},"741b":function(e,t,n){"use strict";var r=n("1301"),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+r(t)+" of "+r(e))}},7437:function(e,t,n){},7463:function(e,t,n){"use strict";e.exports={}},"74dc":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});return t}))},"74fd":function(e,t,n){"use strict";var r=n("f94a");r("observable")},7511:function(e,t,n){"use strict";var r=n("a5eb"),o=n("06fa"),a=n("cf8c"),i=n("1471"),s=!i("intersection",(function(e){return 2===e.size&&e.has(1)&&e.has(2)}))||o((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));r({target:"Set",proto:!0,real:!0,forced:s},{intersection:a})},7558:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var o={s:["çend sanîye","çend sanîyeyan"],ss:[e+" sanîye",e+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[e+" deqîqe",e+" deqîqeyan"],h:["saetek","saetekê"],hh:[e+" saet",e+" saetan"],d:["rojek","rojekê"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyekê"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehekê"],MM:[e+" meh",e+" mehan"],y:["salek","salekê"],yy:[e+" sal",e+" salan"]};return t?o[n][0]:o[n][1]}function n(e){e=""+e;var t=e.substring(e.length-1),n=e.length>1?e.substring(e.length-2):"";return 12==n||13==n||"2"!=t&&"3"!=t&&"50"!=n&&"70"!=t&&"80"!=t?"ê":"yê"}var r=e.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(e,t,n){return e<12?n?"bn":"BN":n?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(e,t){var r=t.toLowerCase();return r.includes("w")||r.includes("m")?e+".":e+n(e)},week:{dow:1,doy:4}});return r}))},"75bd":function(e,t,n){"use strict";var r=n("cfe9"),o=n("4b11"),a=n("b620"),i=r.DataView;e.exports=function(e){if(!o||0!==a(e))return!1;try{return new i(e),!1}catch(t){return!0}}},"75df":function(e,t,n){"use strict";var r=n("a5eb"),o=n("7106"),a=n("4e19"),i=n("9883"),s=n("ad27"),c=n("9b8d"),l=n("5b57"),u=n("f135"),d="No one promise resolved";r({target:"Promise",stat:!0,forced:u},{any:function(e){var t=this,n=i("AggregateError"),r=s.f(t),u=r.resolve,p=r.reject,f=c((function(){var r=a(t.resolve),i=[],s=0,c=1,f=!1;l(e,(function(e){var a=s++,l=!1;c++,o(r,t,e).then((function(e){l||f||(f=!0,u(e))}),(function(e){l||f||(l=!0,i[a]=e,--c||p(new n(i,d)))}))})),--c||p(new n(i,d))}));return f.error&&p(f.value),r.promise}})},"764b":function(e,t,n){"use strict";e.exports={}},"766b":function(e,t,n){"use strict";var r=n("4896"),o=n("2296"),a=n("bc4a"),i=n("6414"),s=n("5f7d"),c=n("0b1d"),l=n("5b57"),u=n("b7a8"),d=n("ddb5"),p=n("d383"),f=n("c1b2"),h=n("6594").fastKey,m=n("2f5a"),v=m.set,g=m.getterFor;e.exports={getConstructor:function(e,t,n,u){var d=e((function(e,o){s(e,p),v(e,{type:t,index:r(null),first:null,last:null,size:0}),f||(e.size=0),c(o)||l(o,e[u],{that:e,AS_ENTRIES:n})})),p=d.prototype,m=g(t),_=function(e,t,n){var r,o,a=m(e),i=b(e,t);return i?i.value=n:(a.last=i={index:o=h(t,!0),key:t,value:n,previous:r=a.last,next:null,removed:!1},a.first||(a.first=i),r&&(r.next=i),f?a.size++:e.size++,"F"!==o&&(a.index[o]=i)),e},b=function(e,t){var n,r=m(e),o=h(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key===t)return n};return a(p,{clear:function(){var e=this,t=m(e),n=t.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=null),n=n.next;t.first=t.last=null,t.index=r(null),f?t.size=0:e.size=0},delete:function(e){var t=this,n=m(t),r=b(t,e);if(r){var o=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),n.first===r&&(n.first=o),n.last===r&&(n.last=a),f?n.size--:t.size--}return!!r},forEach:function(e){var t,n=m(this),r=i(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!b(this,e)}}),a(p,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return _(this,0===e?0:e,t)}}:{add:function(e){return _(this,e=0===e?0:e,e)}}),f&&o(p,"size",{configurable:!0,get:function(){return m(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",o=g(t),a=g(r);u(e,t,(function(e,t){v(this,{type:r,target:e,state:o(e),kind:t,last:null})}),(function(){var e=a(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,d(void 0,!0))}),n?"entries":"values",!n,!0),p(t)}}},7685:function(e,t,n){"use strict";var r=n("7042"),o=n("3eba"),a=n("13a1"),i="__core-js_shared__",s=e.exports=o[i]||a(i,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 20132025 Denis Pushkarev (zloirock.ru), 20252026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"76ce":function(e,t,n){"use strict";n("9103"),n("6f89");var r=n("c18e");e.exports=r("Array","entries")},"77b2":function(e,t,n){"use strict";var r=n("c1b2"),o=n("06fa"),a=n("7a37");e.exports=!r&&!o((function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},7839:function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"78a2":function(e,t,n){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"78b2":function(e,t,n){e.exports=n("b5b3")},"793c":function(e,t,n){"use strict";n("af81");var r=n("764b");e.exports=r.parseInt},"7a23":function(e,t,n){"use strict";n.r(t),n.d(t,"EffectScope",(function(){return i})),n.d(t,"ReactiveEffect",(function(){return d})),n.d(t,"TrackOpTypes",(function(){return nt})),n.d(t,"TriggerOpTypes",(function(){return rt})),n.d(t,"customRef",(function(){return Ke})),n.d(t,"effect",(function(){return C})),n.d(t,"effectScope",(function(){return s})),n.d(t,"getCurrentScope",(function(){return c})),n.d(t,"getCurrentWatcher",(function(){return st})),n.d(t,"isProxy",(function(){return Le})),n.d(t,"isReactive",(function(){return Ee})),n.d(t,"isReadonly",(function(){return je})),n.d(t,"isRef",(function(){return Pe})),n.d(t,"isShallow",(function(){return De})),n.d(t,"markRaw",(function(){return Ne})),n.d(t,"onScopeDispose",(function(){return l})),n.d(t,"onWatcherCleanup",(function(){return ct})),n.d(t,"proxyRefs",(function(){return qe})),n.d(t,"reactive",(function(){return Ce})),n.d(t,"readonly",(function(){return Se})),n.d(t,"ref",(function(){return Ue})),n.d(t,"shallowReactive",(function(){return we})),n.d(t,"shallowReadonly",(function(){return Te})),n.d(t,"shallowRef",(function(){return Ve})),n.d(t,"stop",(function(){return w})),n.d(t,"toRaw",(function(){return Ae})),n.d(t,"toRef",(function(){return Qe})),n.d(t,"toRefs",(function(){return $e})),n.d(t,"toValue",(function(){return Ye})),n.d(t,"triggerRef",(function(){return Ge})),n.d(t,"unref",(function(){return He})),n.d(t,"camelize",(function(){return r["e"]})),n.d(t,"capitalize",(function(){return r["f"]})),n.d(t,"normalizeClass",(function(){return r["R"]})),n.d(t,"normalizeProps",(function(){return r["T"]})),n.d(t,"normalizeStyle",(function(){return r["U"]})),n.d(t,"toDisplayString",(function(){return r["X"]})),n.d(t,"toHandlerKey",(function(){return r["Y"]})),n.d(t,"BaseTransition",(function(){return Vn})),n.d(t,"BaseTransitionPropsValidators",(function(){return Rn})),n.d(t,"Comment",(function(){return ti})),n.d(t,"DeprecationTypes",(function(){return _s})),n.d(t,"ErrorCodes",(function(){return Mt})),n.d(t,"ErrorTypeStrings",(function(){return ds})),n.d(t,"Fragment",(function(){return Za})),n.d(t,"KeepAlive",(function(){return Er})),n.d(t,"Static",(function(){return ni})),n.d(t,"Suspense",(function(){return Ga})),n.d(t,"Teleport",(function(){return In})),n.d(t,"Text",(function(){return ei})),n.d(t,"assertNumber",(function(){return Ot})),n.d(t,"callWithAsyncErrorHandling",(function(){return wt})),n.d(t,"callWithErrorHandling",(function(){return Ct})),n.d(t,"cloneVNode",(function(){return Mi})),n.d(t,"compatUtils",(function(){return gs})),n.d(t,"computed",(function(){return os})),n.d(t,"createBlock",(function(){return pi})),n.d(t,"createCommentVNode",(function(){return wi})),n.d(t,"createElementBlock",(function(){return di})),n.d(t,"createElementVNode",(function(){return _i})),n.d(t,"createHydrationRenderer",(function(){return Ea})),n.d(t,"createPropsRestProxy",(function(){return To})),n.d(t,"createRenderer",(function(){return Ia})),n.d(t,"createSlots",(function(){return oo})),n.d(t,"createStaticVNode",(function(){return Ci})),n.d(t,"createTextVNode",(function(){return ki})),n.d(t,"createVNode",(function(){return bi})),n.d(t,"defineAsyncComponent",(function(){return wr})),n.d(t,"defineComponent",(function(){return qn})),n.d(t,"defineEmits",(function(){return mo})),n.d(t,"defineExpose",(function(){return vo})),n.d(t,"defineModel",(function(){return bo})),n.d(t,"defineOptions",(function(){return go})),n.d(t,"defineProps",(function(){return ho})),n.d(t,"defineSlots",(function(){return _o})),n.d(t,"devtools",(function(){return ps})),n.d(t,"getCurrentInstance",(function(){return Ri})),n.d(t,"getTransitionRawChildren",(function(){return zn})),n.d(t,"guardReactiveProps",(function(){return Oi})),n.d(t,"h",(function(){return as})),n.d(t,"handleError",(function(){return St})),n.d(t,"hasInjectionContext",(function(){return sn})),n.d(t,"hydrateOnIdle",(function(){return _r})),n.d(t,"hydrateOnInteraction",(function(){return Mr})),n.d(t,"hydrateOnMediaQuery",(function(){return Or})),n.d(t,"hydrateOnVisible",(function(){return yr})),n.d(t,"initCustomFormatter",(function(){return is})),n.d(t,"inject",(function(){return an})),n.d(t,"isMemoSame",(function(){return cs})),n.d(t,"isRuntimeOnly",(function(){return Ki})),n.d(t,"isVNode",(function(){return fi})),n.d(t,"mergeDefaults",(function(){return wo})),n.d(t,"mergeModels",(function(){return So})),n.d(t,"mergeProps",(function(){return Ei})),n.d(t,"nextTick",(function(){return Rt})),n.d(t,"onActivated",(function(){return Dr})),n.d(t,"onBeforeMount",(function(){return Vr})),n.d(t,"onBeforeUnmount",(function(){return Hr})),n.d(t,"onBeforeUpdate",(function(){return Fr})),n.d(t,"onDeactivated",(function(){return Lr})),n.d(t,"onErrorCaptured",(function(){return Kr})),n.d(t,"onMounted",(function(){return Br})),n.d(t,"onRenderTracked",(function(){return Wr})),n.d(t,"onRenderTriggered",(function(){return qr})),n.d(t,"onServerPrefetch",(function(){return zr})),n.d(t,"onUnmounted",(function(){return Yr})),n.d(t,"onUpdated",(function(){return Gr})),n.d(t,"openBlock",(function(){return ai})),n.d(t,"popScopeId",(function(){return Zt})),n.d(t,"provide",(function(){return on})),n.d(t,"pushScopeId",(function(){return Qt})),n.d(t,"queuePostFlushCb",(function(){return Vt})),n.d(t,"registerRuntimeCompiler",(function(){return Wi})),n.d(t,"renderList",(function(){return ro})),n.d(t,"renderSlot",(function(){return ao})),n.d(t,"resolveComponent",(function(){return Xr})),n.d(t,"resolveDirective",(function(){return eo})),n.d(t,"resolveDynamicComponent",(function(){return Zr})),n.d(t,"resolveFilter",(function(){return vs})),n.d(t,"resolveTransitionHooks",(function(){return Fn})),n.d(t,"setBlockTracking",(function(){return li})),n.d(t,"setDevtoolsHook",(function(){return fs})),n.d(t,"setTransitionHooks",(function(){return Yn})),n.d(t,"ssrContextKey",(function(){return cn})),n.d(t,"ssrUtils",(function(){return ms})),n.d(t,"toHandlers",(function(){return so})),n.d(t,"transformVNodeArgs",(function(){return mi})),n.d(t,"useAttrs",(function(){return Mo})),n.d(t,"useId",(function(){return Wn})),n.d(t,"useModel",(function(){return Ko})),n.d(t,"useSSRContext",(function(){return ln})),n.d(t,"useSlots",(function(){return Oo})),n.d(t,"useTemplateRef",(function(){return $n})),n.d(t,"useTransitionState",(function(){return An})),n.d(t,"version",(function(){return ls})),n.d(t,"warn",(function(){return us})),n.d(t,"watch",(function(){return fn})),n.d(t,"watchEffect",(function(){return un})),n.d(t,"watchPostEffect",(function(){return dn})),n.d(t,"watchSyncEffect",(function(){return pn})),n.d(t,"withAsyncContext",(function(){return Io})),n.d(t,"withCtx",(function(){return tn})),n.d(t,"withDefaults",(function(){return yo})),n.d(t,"withDirectives",(function(){return nn})),n.d(t,"withMemo",(function(){return ss})),n.d(t,"withScopeId",(function(){return en})),n.d(t,"Transition",(function(){return As})),n.d(t,"TransitionGroup",(function(){return Hc})),n.d(t,"VueElement",(function(){return Ac})),n.d(t,"createApp",(function(){return Cl})),n.d(t,"createSSRApp",(function(){return wl})),n.d(t,"defineCustomElement",(function(){return jc})),n.d(t,"defineSSRCustomElement",(function(){return Dc})),n.d(t,"hydrate",(function(){return kl})),n.d(t,"initDirectivesForSSR",(function(){return El})),n.d(t,"nodeOps",(function(){return Ss})),n.d(t,"patchProp",(function(){return Sc})),n.d(t,"render",(function(){return Ml})),n.d(t,"useCssModule",(function(){return xc})),n.d(t,"useCssVars",(function(){return tc})),n.d(t,"useHost",(function(){return Nc})),n.d(t,"useShadowRoot",(function(){return Rc})),n.d(t,"vModelCheckbox",(function(){return tl})),n.d(t,"vModelDynamic",(function(){return cl})),n.d(t,"vModelRadio",(function(){return rl})),n.d(t,"vModelSelect",(function(){return ol})),n.d(t,"vModelText",(function(){return el})),n.d(t,"vShow",(function(){return Xs})),n.d(t,"withKeys",(function(){return vl})),n.d(t,"withModifiers",(function(){return hl})),n.d(t,"compile",(function(){return jl}));var r=n("9ff4");
/**
* @vue/reactivity v3.5.32
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let o,a;class i{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=o,!e&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=o;try{return o=this,e()}finally{o=t}}else 0}on(){1===++this._on&&(this.prevScope=o,o=this)}off(){this._on>0&&0===--this._on&&(o=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function s(e){return new i(e)}function c(){return o}function l(e,t=!1){o&&o.cleanups.push(e)}const u=new WeakSet;class d{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,o&&o.active&&o.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,u.has(this)&&(u.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||m(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,j(this),_(this);const e=a,t=S;a=this,S=!0;try{return this.fn()}finally{0,b(this),a=e,S=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)M(e);this.deps=this.depsTail=void 0,j(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?u.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){y(this)&&this.run()}get dirty(){return y(this)}}let p,f,h=0;function m(e,t=!1){if(e.flags|=8,t)return e.next=f,void(f=e);e.next=p,p=e}function v(){h++}function g(){if(--h>0)return;if(f){let e=f;f=void 0;while(e){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;while(p){let n=p;p=void 0;while(n){const r=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=r}}if(e)throw e}function _(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function b(e){let t,n=e.depsTail,r=n;while(r){const e=r.prevDep;-1===r.version?(r===n&&(n=e),M(r),k(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function y(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(O(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function O(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===D)return;if(e.globalVersion=D,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!y(e)))return;e.flags|=2;const t=e.dep,n=a,o=S;a=e,S=!0;try{_(e);const i=e.fn(e._value);(0===t.version||Object(r["k"])(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{a=n,S=o,b(e),e.flags&=-3}}function M(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)M(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function k(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function C(e,t){e.effect instanceof d&&(e=e.effect.fn);const n=new d(e);t&&Object(r["h"])(n,t);try{n.run()}catch(a){throw n.stop(),a}const o=n.run.bind(n);return o.effect=n,o}function w(e){e.effect.stop()}let S=!0;const T=[];function I(){T.push(S),S=!1}function E(){const e=T.pop();S=void 0===e||e}function j(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=a;a=void 0;try{t()}finally{a=e}}}let D=0;class L{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class A{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!a||!S||a===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==a)t=this.activeLink=new L(a,this),a.deps?(t.prevDep=a.depsTail,a.depsTail.nextDep=t,a.depsTail=t):a.deps=a.depsTail=t,N(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=a.depsTail,t.nextDep=void 0,a.depsTail.nextDep=t,a.depsTail=t,a.deps===t&&(a.deps=e)}return t}trigger(e){this.version++,D++,this.notify(e)}notify(e){v();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{g()}}}function N(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)N(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const R=new WeakMap,x=Symbol(""),P=Symbol(""),U=Symbol("");function V(e,t,n){if(S&&a){let t=R.get(e);t||R.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new A),r.map=t,r.key=n),r.track()}}function B(e,t,n,o,a,i){const s=R.get(e);if(!s)return void D++;const c=e=>{e&&e.trigger()};if(v(),"clear"===t)s.forEach(c);else{const a=Object(r["p"])(e),i=a&&Object(r["v"])(n);if(a&&"length"===n){const e=Number(o);s.forEach((t,n)=>{("length"===n||n===U||!Object(r["M"])(n)&&n>=e)&&c(t)})}else switch((void 0!==n||s.has(void 0))&&c(s.get(n)),i&&c(s.get(U)),t){case"add":a?i&&c(s.get("length")):(c(s.get(x)),Object(r["y"])(e)&&c(s.get(P)));break;case"delete":a||(c(s.get(x)),Object(r["y"])(e)&&c(s.get(P)));break;case"set":Object(r["y"])(e)&&c(s.get(x));break}}g()}function F(e,t){const n=R.get(e);return n&&n.get(t)}function G(e){const t=Ae(e);return t===e?t:(V(t,"iterate",U),De(e)?t:t.map(Re))}function H(e){return V(e=Ae(e),"iterate",U),e}function Y(e,t){return je(e)?Ee(e)?xe(Re(t)):xe(t):Re(t)}const z={__proto__:null,[Symbol.iterator](){return q(this,Symbol.iterator,e=>Y(this,e))},concat(...e){return G(this).concat(...e.map(e=>Object(r["p"])(e)?G(e):e))},entries(){return q(this,"entries",e=>(e[1]=Y(this,e[1]),e))},every(e,t){return K(this,"every",e,t,void 0,arguments)},filter(e,t){return K(this,"filter",e,t,e=>e.map(e=>Y(this,e)),arguments)},find(e,t){return K(this,"find",e,t,e=>Y(this,e),arguments)},findIndex(e,t){return K(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return K(this,"findLast",e,t,e=>Y(this,e),arguments)},findLastIndex(e,t){return K(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return K(this,"forEach",e,t,void 0,arguments)},includes(...e){return J(this,"includes",e)},indexOf(...e){return J(this,"indexOf",e)},join(e){return G(this).join(e)},lastIndexOf(...e){return J(this,"lastIndexOf",e)},map(e,t){return K(this,"map",e,t,void 0,arguments)},pop(){return X(this,"pop")},push(...e){return X(this,"push",e)},reduce(e,...t){return $(this,"reduce",e,t)},reduceRight(e,...t){return $(this,"reduceRight",e,t)},shift(){return X(this,"shift")},some(e,t){return K(this,"some",e,t,void 0,arguments)},splice(...e){return X(this,"splice",e)},toReversed(){return G(this).toReversed()},toSorted(e){return G(this).toSorted(e)},toSpliced(...e){return G(this).toSpliced(...e)},unshift(...e){return X(this,"unshift",e)},values(){return q(this,"values",e=>Y(this,e))}};function q(e,t,n){const r=H(e),o=r[t]();return r===e||De(e)||(o._next=o.next,o.next=()=>{const e=o._next();return e.done||(e.value=n(e.value)),e}),o}const W=Array.prototype;function K(e,t,n,r,o,a){const i=H(e),s=i!==e&&!De(e),c=i[t];if(c!==W[t]){const t=c.apply(e,a);return s?Re(t):t}let l=n;i!==e&&(s?l=function(t,r){return n.call(this,Y(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));const u=c.call(i,l,r);return s&&o?o(u):u}function $(e,t,n,r){const o=H(e),a=o!==e&&!De(e);let i=n,s=!1;o!==e&&(a?(s=0===r.length,i=function(t,r,o){return s&&(s=!1,t=Y(e,t)),n.call(this,t,Y(e,r),o,e)}):n.length>3&&(i=function(t,r,o){return n.call(this,t,r,o,e)}));const c=o[t](i,...r);return s?Y(e,c):c}function J(e,t,n){const r=Ae(e);V(r,"iterate",U);const o=r[t](...n);return-1!==o&&!1!==o||!Le(n[0])?o:(n[0]=Ae(n[0]),r[t](...n))}function X(e,t,n=[]){I(),v();const r=Ae(e)[t].apply(e,n);return g(),E(),r}const Q=Object(r["Q"])("__proto__,__v_isRef,__isVue"),Z=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(r["M"]));function ee(e){Object(r["M"])(e)||(e=String(e));const t=Ae(this);return V(t,"has",e),t.hasOwnProperty(e)}class te{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e["__v_skip"];const o=this._isReadonly,a=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return a;if("__v_raw"===t)return n===(o?a?Oe:ye:a?be:_e).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=Object(r["p"])(e);if(!o){let e;if(i&&(e=z[t]))return e;if("hasOwnProperty"===t)return ee}const s=Reflect.get(e,t,Pe(e)?e:n);if(Object(r["M"])(t)?Z.has(t):Q(t))return s;if(o||V(e,"get",t),a)return s;if(Pe(s)){const e=i&&Object(r["v"])(t)?s:s.value;return o&&Object(r["B"])(e)?Se(e):e}return Object(r["B"])(s)?o?Se(s):Ce(s):s}}class ne extends te{constructor(e=!1){super(!1,e)}set(e,t,n,o){let a=e[t];const i=Object(r["p"])(e)&&Object(r["v"])(t);if(!this._isShallow){const e=je(a);if(De(n)||je(n)||(a=Ae(a),n=Ae(n)),!i&&Pe(a)&&!Pe(n))return e||(a.value=n),!0}const s=i?Number(t)<e.length:Object(r["l"])(e,t),c=Reflect.set(e,t,n,Pe(e)?e:o);return e===Ae(o)&&(s?Object(r["k"])(n,a)&&B(e,"set",t,n,a):B(e,"add",t,n)),c}deleteProperty(e,t){const n=Object(r["l"])(e,t),o=e[t],a=Reflect.deleteProperty(e,t);return a&&n&&B(e,"delete",t,void 0,o),a}has(e,t){const n=Reflect.has(e,t);return Object(r["M"])(t)&&Z.has(t)||V(e,"has",t),n}ownKeys(e){return V(e,"iterate",Object(r["p"])(e)?"length":x),Reflect.ownKeys(e)}}class re extends te{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const oe=new ne,ae=new re,ie=new ne(!0),se=new re(!0),ce=e=>e,le=e=>Reflect.getPrototypeOf(e);function ue(e,t,n){return function(...o){const a=this["__v_raw"],i=Ae(a),s=Object(r["y"])(i),c="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,u=a[e](...o),d=n?ce:t?xe:Re;return!t&&V(i,"iterate",l?P:x),Object(r["h"])(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function de(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function pe(e,t){const n={get(n){const o=this["__v_raw"],a=Ae(o),i=Ae(n);e||(Object(r["k"])(n,i)&&V(a,"get",n),V(a,"get",i));const{has:s}=le(a),c=t?ce:e?xe:Re;return s.call(a,n)?c(o.get(n)):s.call(a,i)?c(o.get(i)):void(o!==a&&o.get(n))},get size(){const t=this["__v_raw"];return!e&&V(Ae(t),"iterate",x),t.size},has(t){const n=this["__v_raw"],o=Ae(n),a=Ae(t);return e||(Object(r["k"])(t,a)&&V(o,"has",t),V(o,"has",a)),t===a?n.has(t):n.has(t)||n.has(a)},forEach(n,r){const o=this,a=o["__v_raw"],i=Ae(a),s=t?ce:e?xe:Re;return!e&&V(i,"iterate",x),a.forEach((e,t)=>n.call(r,s(e),s(t),o))}};Object(r["h"])(n,e?{add:de("add"),set:de("set"),delete:de("delete"),clear:de("clear")}:{add(e){const n=Ae(this),o=le(n),a=Ae(e),i=t||De(e)||je(e)?e:a,s=o.has.call(n,i)||Object(r["k"])(e,i)&&o.has.call(n,e)||Object(r["k"])(a,i)&&o.has.call(n,a);return s||(n.add(i),B(n,"add",i,i)),this},set(e,n){t||De(n)||je(n)||(n=Ae(n));const o=Ae(this),{has:a,get:i}=le(o);let s=a.call(o,e);s||(e=Ae(e),s=a.call(o,e));const c=i.call(o,e);return o.set(e,n),s?Object(r["k"])(n,c)&&B(o,"set",e,n,c):B(o,"add",e,n),this},delete(e){const t=Ae(this),{has:n,get:r}=le(t);let o=n.call(t,e);o||(e=Ae(e),o=n.call(t,e));const a=r?r.call(t,e):void 0,i=t.delete(e);return o&&B(t,"delete",e,void 0,a),i},clear(){const e=Ae(this),t=0!==e.size,n=void 0,r=e.clear();return t&&B(e,"clear",void 0,void 0,n),r}});const o=["keys","values","entries",Symbol.iterator];return o.forEach(r=>{n[r]=ue(r,e,t)}),n}function fe(e,t){const n=pe(e,t);return(t,o,a)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(Object(r["l"])(n,o)&&o in t?n:t,o,a)}const he={get:fe(!1,!1)},me={get:fe(!1,!0)},ve={get:fe(!0,!1)},ge={get:fe(!0,!0)};const _e=new WeakMap,be=new WeakMap,ye=new WeakMap,Oe=new WeakMap;function Me(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ke(e){return e["__v_skip"]||!Object.isExtensible(e)?0:Me(Object(r["ab"])(e))}function Ce(e){return je(e)?e:Ie(e,!1,oe,he,_e)}function we(e){return Ie(e,!1,ie,me,be)}function Se(e){return Ie(e,!0,ae,ve,ye)}function Te(e){return Ie(e,!0,se,ge,Oe)}function Ie(e,t,n,o,a){if(!Object(r["B"])(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const i=ke(e);if(0===i)return e;const s=a.get(e);if(s)return s;const c=new Proxy(e,2===i?o:n);return a.set(e,c),c}function Ee(e){return je(e)?Ee(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function je(e){return!(!e||!e["__v_isReadonly"])}function De(e){return!(!e||!e["__v_isShallow"])}function Le(e){return!!e&&!!e["__v_raw"]}function Ae(e){const t=e&&e["__v_raw"];return t?Ae(t):e}function Ne(e){return!Object(r["l"])(e,"__v_skip")&&Object.isExtensible(e)&&Object(r["g"])(e,"__v_skip",!0),e}const Re=e=>Object(r["B"])(e)?Ce(e):e,xe=e=>Object(r["B"])(e)?Se(e):e;function Pe(e){return!!e&&!0===e["__v_isRef"]}function Ue(e){return Be(e,!1)}function Ve(e){return Be(e,!0)}function Be(e,t){return Pe(e)?e:new Fe(e,t)}class Fe{constructor(e,t){this.dep=new A,this["__v_isRef"]=!0,this["__v_isShallow"]=!1,this._rawValue=t?e:Ae(e),this._value=t?e:Re(e),this["__v_isShallow"]=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this["__v_isShallow"]||De(e)||je(e);e=n?e:Ae(e),Object(r["k"])(e,t)&&(this._rawValue=e,this._value=n?e:Re(e),this.dep.trigger())}}function Ge(e){e.dep&&e.dep.trigger()}function He(e){return Pe(e)?e.value:e}function Ye(e){return Object(r["s"])(e)?e():He(e)}const ze={get:(e,t,n)=>"__v_raw"===t?e:He(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Pe(o)&&!Pe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function qe(e){return Ee(e)?e:new Proxy(e,ze)}class We{constructor(e){this["__v_isRef"]=!0,this._value=void 0;const t=this.dep=new A,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Ke(e){return new We(e)}function $e(e){const t=Object(r["p"])(e)?new Array(e.length):{};for(const n in e)t[n]=Ze(e,n);return t}class Je{constructor(e,t,n){this._object=e,this._defaultValue=n,this["__v_isRef"]=!0,this._value=void 0,this._key=Object(r["M"])(t)?t:String(t),this._raw=Ae(e);let o=!0,a=e;if(!Object(r["p"])(e)||Object(r["M"])(this._key)||!Object(r["v"])(this._key))do{o=!Le(a)||De(a)}while(o&&(a=a["__v_raw"]));this._shallow=o}get value(){let e=this._object[this._key];return this._shallow&&(e=He(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&Pe(this._raw[this._key])){const t=this._object[this._key];if(Pe(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return F(this._raw,this._key)}}class Xe{constructor(e){this._getter=e,this["__v_isRef"]=!0,this["__v_isReadonly"]=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Qe(e,t,n){return Pe(e)?e:Object(r["s"])(e)?new Xe(e):Object(r["B"])(e)&&arguments.length>1?Ze(e,t,n):Ue(e)}function Ze(e,t,n){return new Je(e,t,n)}class et{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new A(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=D-1,this.next=void 0,this.effect=this,this["__v_isReadonly"]=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||a===this))return m(this,!0),!0}get value(){const e=this.dep.track();return O(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function tt(e,t,n=!1){let o,a;Object(r["s"])(e)?o=e:(o=e.get,a=e.set);const i=new et(o,a,n);return i}const nt={GET:"get",HAS:"has",ITERATE:"iterate"},rt={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},ot={},at=new WeakMap;let it=void 0;function st(){return it}function ct(e,t=!1,n=it){if(n){let t=at.get(n);t||at.set(n,t=[]),t.push(e)}else 0}function lt(e,t,n=r["b"]){const{immediate:o,deep:a,once:i,scheduler:s,augmentJob:l,call:u}=n,p=e=>a?e:De(e)||!1===a||0===a?ut(e,1):ut(e);let f,h,m,v,g=!1,_=!1;if(Pe(e)?(h=()=>e.value,g=De(e)):Ee(e)?(h=()=>p(e),g=!0):Object(r["p"])(e)?(_=!0,g=e.some(e=>Ee(e)||De(e)),h=()=>e.map(e=>Pe(e)?e.value:Ee(e)?p(e):Object(r["s"])(e)?u?u(e,2):e():void 0)):h=Object(r["s"])(e)?t?u?()=>u(e,2):e:()=>{if(m){I();try{m()}finally{E()}}const t=it;it=f;try{return u?u(e,3,[v]):e(v)}finally{it=t}}:r["d"],t&&a){const e=h,t=!0===a?1/0:a;h=()=>ut(e(),t)}const b=c(),y=()=>{f.stop(),b&&b.active&&Object(r["V"])(b.effects,f)};if(i&&t){const e=t;t=(...t)=>{e(...t),y()}}let O=_?new Array(e.length).fill(ot):ot;const M=e=>{if(1&f.flags&&(f.dirty||e))if(t){const e=f.run();if(a||g||(_?e.some((e,t)=>Object(r["k"])(e,O[t])):Object(r["k"])(e,O))){m&&m();const n=it;it=f;try{const r=[e,O===ot?void 0:_&&O[0]===ot?[]:O,v];O=e,u?u(t,3,r):t(...r)}finally{it=n}}}else f.run()};return l&&l(M),f=new d(h),f.scheduler=s?()=>s(M,!1):M,v=e=>ct(e,!1,f),m=f.onStop=()=>{const e=at.get(f);if(e){if(u)u(e,4);else for(const t of e)t();at.delete(f)}},t?o?M(!0):O=f.run():s?s(M.bind(null,!0),!0):f.run(),y.pause=f.pause.bind(f),y.resume=f.resume.bind(f),y.stop=y,y}function ut(e,t=1/0,n){if(t<=0||!Object(r["B"])(e)||e["__v_skip"])return e;if(n=n||new Map,(n.get(e)||0)>=t)return e;if(n.set(e,t),t--,Pe(e))ut(e.value,t,n);else if(Object(r["p"])(e))for(let r=0;r<e.length;r++)ut(e[r],t,n);else if(Object(r["J"])(e)||Object(r["y"])(e))e.forEach(e=>{ut(e,t,n)});else if(Object(r["D"])(e)){for(const r in e)ut(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&ut(e[r],t,n)}return e}
/**
* @vue/runtime-core v3.5.32
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const dt=[];function pt(e){dt.push(e)}function ft(){dt.pop()}let ht=!1;function mt(e,...t){if(ht)return;ht=!0,I();const n=dt.length?dt[dt.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=vt();if(r)Ct(r,n,11,[e+t.map(e=>{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)}).join(""),n&&n.proxy,o.map(({vnode:e})=>`at <${ns(n,e.type)}>`).join("\n"),o]);else{const n=["[Vue warn]: "+e,...t];o.length&&n.push("\n",...gt(o)),console.warn(...n)}E(),ht=!1}function vt(){let e=dt[dt.length-1];if(!e)return[];const t=[];while(e){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function gt(e){const t=[];return e.forEach((e,n)=>{t.push(...0===n?[]:["\n"],..._t(e))}),t}function _t({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=" at <"+ns(e.component,e.type,r),a=">"+n;return e.props?[o,...bt(e.props),a]:[o+a]}function bt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...yt(n,e[n]))}),n.length>3&&t.push(" ..."),t}function yt(e,t,n){return Object(r["L"])(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"===typeof t||"boolean"===typeof t||null==t?n?t:[`${e}=${t}`]:Pe(t)?(t=yt(e,Ae(t.value),!0),n?t:[e+"=Ref<",t,">"]):Object(r["s"])(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ae(t),n?t:[e+"=",t])}function Ot(e,t){}const Mt={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},kt={["sp"]:"serverPrefetch hook",["bc"]:"beforeCreate hook",["c"]:"created hook",["bm"]:"beforeMount hook",["m"]:"mounted hook",["bu"]:"beforeUpdate hook",["u"]:"updated",["bum"]:"beforeUnmount hook",["um"]:"unmounted hook",["a"]:"activated hook",["da"]:"deactivated hook",["ec"]:"errorCaptured hook",["rtc"]:"renderTracked hook",["rtg"]:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush",[15]:"component update",[16]:"app unmount cleanup function"};function Ct(e,t,n,r){try{return r?e(...r):e()}catch(o){St(o,t,n)}}function wt(e,t,n,o){if(Object(r["s"])(e)){const a=Ct(e,t,n,o);return a&&Object(r["E"])(a)&&a.catch(e=>{St(e,t,n)}),a}if(Object(r["p"])(e)){const r=[];for(let a=0;a<e.length;a++)r.push(wt(e[a],t,n,o));return r}}function St(e,t,n,o=!0){const a=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||r["b"];if(t){let r=t.parent;const o=t.proxy,a="https://vuejs.org/error-reference/#runtime-"+n;while(r){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,a))return;r=r.parent}if(i)return I(),Ct(i,null,10,[e,o,a]),void E()}Tt(e,n,a,o,s)}function Tt(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const It=[];let Et=-1;const jt=[];let Dt=null,Lt=0;const At=Promise.resolve();let Nt=null;function Rt(e){const t=Nt||At;return e?t.then(this?e.bind(this):e):t}function xt(e){let t=Et+1,n=It.length;while(t<n){const r=t+n>>>1,o=It[r],a=Gt(o);a<e||a===e&&2&o.flags?t=r+1:n=r}return t}function Pt(e){if(!(1&e.flags)){const t=Gt(e),n=It[It.length-1];!n||!(2&e.flags)&&t>=Gt(n)?It.push(e):It.splice(xt(t),0,e),e.flags|=1,Ut()}}function Ut(){Nt||(Nt=At.then(Ht))}function Vt(e){Object(r["p"])(e)?jt.push(...e):Dt&&-1===e.id?Dt.splice(Lt+1,0,e):1&e.flags||(jt.push(e),e.flags|=1),Ut()}function Bt(e,t,n=Et+1){for(0;n<It.length;n++){const t=It[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;0,It.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function Ft(e){if(jt.length){const e=[...new Set(jt)].sort((e,t)=>Gt(e)-Gt(t));if(jt.length=0,Dt)return void Dt.push(...e);for(Dt=e,Lt=0;Lt<Dt.length;Lt++){const e=Dt[Lt];0,4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Dt=null,Lt=0}}const Gt=e=>null==e.id?2&e.flags?-1:1/0:e.id;function Ht(e){r["d"];try{for(Et=0;Et<It.length;Et++){const e=It[Et];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Ct(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Et<It.length;Et++){const e=It[Et];e&&(e.flags&=-2)}Et=-1,It.length=0,Ft(e),Nt=null,(It.length||jt.length)&&Ht(e)}}let Yt=!1;let zt,qt=[],Wt=!1;function Kt(e,t){var n,r;if(zt=e,zt)zt.enabled=!0,qt.forEach(({event:e,args:t})=>zt.emit(e,...t)),qt=[];else if("undefined"!==typeof window&&window.HTMLElement&&!(null==(r=null==(n=window.navigator)?void 0:n.userAgent)?void 0:r.includes("jsdom"))){const e=t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[];e.push(e=>{Kt(e,t)}),setTimeout(()=>{zt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Wt=!0,qt=[])},3e3)}else Wt=!0,qt=[]}let $t=null,Jt=null;function Xt(e){const t=$t;return $t=e,Jt=e&&e.type.__scopeId||null,t}function Qt(e){Jt=e}function Zt(){Jt=null}const en=e=>tn;function tn(e,t=$t,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&li(-1);const o=Xt(t);let a;try{a=e(...n)}finally{Xt(o),r._d&&li(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function nn(e,t){if(null===$t)return e;const n=Qi($t),o=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[e,i,s,c=r["b"]]=t[a];e&&(Object(r["s"])(e)&&(e={mounted:e,updated:e}),e.deep&&ut(i),o.push({dir:e,instance:n,value:i,oldValue:void 0,arg:s,modifiers:c}))}return e}function rn(e,t,n,r){const o=e.dirs,a=t&&t.dirs;for(let i=0;i<o.length;i++){const s=o[i];a&&(s.oldValue=a[i].value);let c=s.dir[r];c&&(I(),wt(c,n,8,[e.el,s,e,t]),E())}}function on(e,t){if(Ni){let n=Ni.provides;const r=Ni.parent&&Ni.parent.provides;r===n&&(n=Ni.provides=Object.create(r)),n[e]=t}}function an(e,t,n=!1){const o=Ri();if(o||Wo){let a=Wo?Wo._context.provides:o?null==o.parent||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return n&&Object(r["s"])(t)?t.call(o&&o.proxy):t}else 0}function sn(){return!(!Ri()&&!Wo)}const cn=Symbol.for("v-scx"),ln=()=>{{const e=an(cn);return e}};function un(e,t){return hn(e,null,t)}function dn(e,t){return hn(e,null,{flush:"post"})}function pn(e,t){return hn(e,null,{flush:"sync"})}function fn(e,t,n){return hn(e,t,n)}function hn(e,t,n=r["b"]){const{immediate:o,deep:a,flush:i,once:s}=n;const c=Object(r["h"])({},n);const l=t&&o||!t&&"post"!==i;let u;if(Hi)if("sync"===i){const e=ln();u=e.__watcherHandles||(e.__watcherHandles=[])}else if(!l){const e=()=>{};return e.stop=r["d"],e.resume=r["d"],e.pause=r["d"],e}const d=Ni;c.call=(e,t,n)=>wt(e,d,t,n);let p=!1;"post"===i?c.scheduler=e=>{Ta(e,d&&d.suspense)}:"sync"!==i&&(p=!0,c.scheduler=(e,t)=>{t?e():Pt(e)}),c.augmentJob=e=>{t&&(e.flags|=4),p&&(e.flags|=2,d&&(e.id=d.uid,e.i=d))};const f=lt(e,t,c);return Hi&&(u?u.push(f):l&&f()),f}function mn(e,t,n){const o=this.proxy,a=Object(r["L"])(e)?e.includes(".")?vn(o,e):()=>o[e]:e.bind(o,o);let i;Object(r["s"])(t)?i=t:(i=t.handler,n=t);const s=Ui(this),c=hn(a,i.bind(o),n);return s(),c}function vn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const gn=new WeakMap,_n=Symbol("_vte"),bn=e=>e.__isTeleport,yn=e=>e&&(e.disabled||""===e.disabled),On=e=>e&&(e.defer||""===e.defer),Mn=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,kn=e=>"function"===typeof MathMLElement&&e instanceof MathMLElement,Cn=(e,t)=>{const n=e&&e.to;if(Object(r["L"])(n)){if(t){const e=t(n);return e}return null}return n},wn={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,a,i,s,c,l){const{mc:u,pc:d,pbc:p,o:{insert:f,querySelector:h,createText:m,createComment:v}}=l,g=yn(t.props);let{dynamicChildren:_}=t;const b=(e,t,n)=>{16&e.shapeFlag&&u(e.children,t,n,o,a,i,s,c)},y=(e=t)=>{const n=yn(e.props),r=e.target=Cn(e.props,h),a=jn(r,e,m,f);r&&("svg"!==i&&Mn(r)?i="svg":"mathml"!==i&&kn(r)&&(i="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),En(e,!1)))},O=e=>{const t=()=>{gn.get(e)===t&&(gn.delete(e),yn(e.props)&&(b(e,n,e.anchor),En(e,!0)),y(e))};gn.set(e,t),Ta(t,a)};if(null==e){const e=t.el=m(""),o=t.anchor=m("");if(f(e,n,r),f(o,n,r),On(t.props)||a&&a.pendingBranch)return void O(t);g&&(b(t,n,o),En(t,!0)),y()}else{t.el=e.el;const r=t.anchor=e.anchor,u=gn.get(e);if(u)return u.flags|=8,gn.delete(e),void O(t);t.targetStart=e.targetStart;const f=t.target=e.target,m=t.targetAnchor=e.targetAnchor,v=yn(e.props),b=v?n:f,y=v?r:m;if("svg"===i||Mn(f)?i="svg":("mathml"===i||kn(f))&&(i="mathml"),_?(p(e.dynamicChildren,_,b,o,a,i,s),Na(e,t,!0)):c||d(e,t,b,y,o,a,i,s,!1),g)v?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Sn(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Cn(t.props,h);e&&Sn(t,e,null,l,0)}else v&&Sn(t,f,m,l,1);En(t,g)}},remove(e,t,n,{um:r,o:{remove:o}},a){const{shapeFlag:i,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:p}=e;let f=a||!yn(p);const h=gn.get(e);if(h&&(h.flags|=8,gn.delete(e),f=!1),d&&(o(l),o(u)),a&&o(c),16&i)for(let m=0;m<s.length;m++){const e=s[m];r(e,t,n,f,!!e.dynamicChildren)}},move:Sn,hydrate:Tn};function Sn(e,t,n,{o:{insert:r},m:o},a=2){0===a&&r(e.targetAnchor,t,n);const{el:i,anchor:s,shapeFlag:c,children:l,props:u}=e,d=2===a;if(d&&r(i,t,n),(!d||yn(u))&&16&c)for(let p=0;p<l.length;p++)o(l[p],t,n,2);d&&r(s,t,n)}function Tn(e,t,n,r,o,a,{o:{nextSibling:i,parentNode:s,querySelector:c,insert:l,createText:u}},d){function p(e,n){let r=n;while(r){if(r&&8===r.nodeType)if("teleport start anchor"===r.data)t.targetStart=r;else if("teleport anchor"===r.data){t.targetAnchor=r,e._lpa=t.targetAnchor&&i(t.targetAnchor);break}r=i(r)}}function f(e,t){t.anchor=d(i(e),t,s(e),n,r,o,a)}const h=t.target=Cn(t.props,c),m=yn(t.props);if(h){const c=h._lpa||h.firstChild;16&t.shapeFlag&&(m?(f(e,t),p(h,c),t.targetAnchor||jn(h,t,u,l,s(e)===h?e:null)):(t.anchor=i(e),p(h,c),t.targetAnchor||jn(h,t,u,l),d(c&&i(c),t,h,n,r,o,a))),En(t,m)}else m&&16&t.shapeFlag&&(f(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const In=wn;function En(e,t){const n=e.ctx;if(n&&n.ut){let r,o;t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);while(r&&r!==o)1===r.nodeType&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function jn(e,t,n,r,o=null){const a=t.targetStart=n(""),i=t.targetAnchor=n("");return a[_n]=i,e&&(r(a,e,o),r(i,e,o)),i}const Dn=Symbol("_leaveCb"),Ln=Symbol("_enterCb");function An(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Br(()=>{e.isMounted=!0}),Hr(()=>{e.isUnmounting=!0}),e}const Nn=[Function,Array],Rn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Nn,onEnter:Nn,onAfterEnter:Nn,onEnterCancelled:Nn,onBeforeLeave:Nn,onLeave:Nn,onAfterLeave:Nn,onLeaveCancelled:Nn,onBeforeAppear:Nn,onAppear:Nn,onAfterAppear:Nn,onAppearCancelled:Nn},xn=e=>{const t=e.subTree;return t.component?xn(t.component):t},Pn={name:"BaseTransition",props:Rn,setup(e,{slots:t}){const n=Ri(),r=An();return()=>{const o=t.default&&zn(t.default(),!0);if(!o||!o.length)return;const a=Un(o),i=Ae(e),{mode:s}=i;if(r.isLeaving)return Gn(a);const c=Hn(a);if(!c)return Gn(a);let l=Fn(c,i,r,n,e=>l=e);c.type!==ti&&Yn(c,l);let u=n.subTree&&Hn(n.subTree);if(u&&u.type!==ti&&!hi(u,c)&&xn(n).type!==ti){let e=Fn(u,i,r,n);if(Yn(u,e),"out-in"===s&&c.type!==ti)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,u=void 0},Gn(a);"in-out"===s&&c.type!==ti?e.delayLeave=(e,t,n)=>{const o=Bn(r,u);o[String(u.key)]=u,e[Dn]=()=>{t(),e[Dn]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return a}}};function Un(e){let t=e[0];if(e.length>1){let n=!1;for(const r of e)if(r.type!==ti){0,t=r,n=!0;break}}return t}const Vn=Pn;function Bn(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Fn(e,t,n,o,a){const{appear:i,mode:s,persisted:c=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:f,onLeave:h,onAfterLeave:m,onLeaveCancelled:v,onBeforeAppear:g,onAppear:_,onAfterAppear:b,onAppearCancelled:y}=t,O=String(e.key),M=Bn(n,e),k=(e,t)=>{e&&wt(e,o,9,t)},C=(e,t)=>{const n=t[1];k(e,t),Object(r["p"])(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},w={mode:s,persisted:c,beforeEnter(t){let r=l;if(!n.isMounted){if(!i)return;r=g||l}t[Dn]&&t[Dn](!0);const o=M[O];o&&hi(e,o)&&o.el[Dn]&&o.el[Dn](),k(r,[t])},enter(t){if(!Yt&&M[O]===e)return;let r=u,o=d,a=p;if(!n.isMounted){if(!i)return;r=_||u,o=b||d,a=y||p}let s=!1;t[Ln]=e=>{s||(s=!0,k(e?a:o,[t]),w.delayedLeave&&w.delayedLeave(),t[Ln]=void 0)};const c=t[Ln].bind(null,!1);r?C(r,[t,c]):c()},leave(t,r){const o=String(e.key);if(t[Ln]&&t[Ln](!0),n.isUnmounting)return r();k(f,[t]);let a=!1;t[Dn]=n=>{a||(a=!0,r(),k(n?v:m,[t]),t[Dn]=void 0,M[o]===e&&delete M[o])};const i=t[Dn].bind(null,!1);M[o]=e,h?C(h,[t,i]):i()},clone(e){const r=Fn(e,t,n,o,a);return a&&a(r),r}};return w}function Gn(e){if(Tr(e))return e=Mi(e),e.children=null,e}function Hn(e){if(!Tr(e))return bn(e.type)&&e.children?Un(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&Object(r["s"])(n.default))return n.default()}}function Yn(e,t){6&e.shapeFlag&&e.component?(e.transition=t,Yn(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function zn(e,t=!1,n){let r=[],o=0;for(let a=0;a<e.length;a++){let i=e[a];const s=null==n?i.key:String(n)+String(null!=i.key?i.key:a);i.type===Za?(128&i.patchFlag&&o++,r=r.concat(zn(i.children,t,s))):(t||i.type!==ti)&&r.push(null!=s?Mi(i,{key:s}):i)}if(o>1)for(let a=0;a<r.length;a++)r[a].patchFlag=-2;return r}function qn(e,t){return Object(r["s"])(e)?(()=>Object(r["h"])({name:e.name},t,{setup:e}))():e}function Wn(){const e=Ri();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Kn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $n(e){const t=Ri(),n=Ve(null);if(t){const o=t.refs===r["b"]?t.refs={}:t.refs;Object.defineProperty(o,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}else 0;const o=n;return o}function Jn(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const Xn=new WeakMap;function Qn(e,t,n,o,a=!1){if(Object(r["p"])(e))return void e.forEach((e,i)=>Qn(e,t&&(Object(r["p"])(t)?t[i]:t),n,o,a));if(Cr(o)&&!a)return void(512&o.shapeFlag&&o.type.__asyncResolved&&o.component.subTree.component&&Qn(e,t,n,o.component.subTree));const i=4&o.shapeFlag?Qi(o.component):o.el,s=a?null:i,{i:c,r:l}=e;const u=t&&t.r,d=c.refs===r["b"]?c.refs={}:c.refs,p=c.setupState,f=Ae(p),h=p===r["b"]?r["c"]:e=>!Jn(d,e)&&Object(r["l"])(f,e),m=(e,t)=>!t||!Jn(d,t);if(null!=u&&u!==l)if(Zn(t),Object(r["L"])(u))d[u]=null,h(u)&&(p[u]=null);else if(Pe(u)){const e=t;m(u,e.k)&&(u.value=null),e.k&&(d[e.k]=null)}if(Object(r["s"])(l))Ct(l,c,12,[s,d]);else{const t=Object(r["L"])(l),o=Pe(l);if(t||o){const c=()=>{if(e.f){const n=t?h(l)?p[l]:d[l]:m(l)||!e.k?l.value:d[e.k];if(a)Object(r["p"])(n)&&Object(r["V"])(n,i);else if(Object(r["p"])(n))n.includes(i)||n.push(i);else if(t)d[l]=[i],h(l)&&(p[l]=d[l]);else{const t=[i];m(l,e.k)&&(l.value=t),e.k&&(d[e.k]=t)}}else t?(d[l]=s,h(l)&&(p[l]=s)):o&&(m(l,e.k)&&(l.value=s),e.k&&(d[e.k]=s))};if(s){const t=()=>{c(),Xn.delete(e)};t.id=-1,Xn.set(e,t),Ta(t,n)}else Zn(e),c()}else 0}}function Zn(e){const t=Xn.get(e);t&&(t.flags|=8,Xn.delete(e))}let er=!1;const tr=()=>{er||(console.error("Hydration completed but contains mismatches."),er=!0)},nr=e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName,rr=e=>e.namespaceURI.includes("MathML"),or=e=>{if(1===e.nodeType)return nr(e)?"svg":rr(e)?"mathml":void 0},ar=e=>8===e.nodeType;function ir(e){const{mt:t,p:n,o:{patchProp:o,createText:a,nextSibling:i,parentNode:s,remove:c,insert:l,createComment:u}}=e,d=(e,t)=>{if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&mt("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),Ft(),void(t._vnode=e);p(t.firstChild,e,null,null,null),Ft(),t._vnode=e},p=(n,r,o,c,u,d=!1)=>{d=d||!!r.dynamicChildren;const y=ar(n)&&"["===n.data,O=()=>v(n,r,o,c,u,y),{type:M,ref:k,shapeFlag:C,patchFlag:w}=r;let S=n.nodeType;r.el=n,-2===w&&(d=!1,r.dynamicChildren=null);let T=null;switch(M){case ei:3!==S?""===r.children?(l(r.el=a(""),s(n),n),T=n):T=O():(n.data!==r.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&mt("Hydration text mismatch in",n.parentNode,`\n - rendered on server: ${JSON.stringify(n.data)}\n - expected on client: ${JSON.stringify(r.children)}`),tr(),n.data=r.children),T=i(n));break;case ti:b(n)?(T=i(n),_(r.el=n.content.firstChild,n,o)):T=8!==S||y?O():i(n);break;case ni:if(y&&(n=i(n),S=n.nodeType),1===S||3===S){T=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=1===T.nodeType?T.outerHTML:T.data),t===r.staticCount-1&&(r.anchor=T),T=i(T);return y?i(T):T}O();break;case Za:T=y?m(n,r,o,c,u,d):O();break;default:if(1&C)T=1===S&&r.type.toLowerCase()===n.tagName.toLowerCase()||b(n)?f(n,r,o,c,u,d):O();else if(6&C){r.slotScopeIds=u;const e=s(n);if(T=y?g(n):ar(n)&&"teleport start"===n.data?g(n,n.data,"teleport end"):i(n),t(r,e,null,o,c,or(e),d),Cr(r)&&!r.type.__asyncResolved){let t;y?(t=bi(Za),t.anchor=T?T.previousSibling:e.lastChild):t=3===n.nodeType?ki(""):bi("div"),t.el=n,r.component.subTree=t}}else 64&C?T=8!==S?O():r.type.hydrate(n,r,o,c,u,d,e,h):128&C?T=r.type.hydrate(n,r,o,c,or(s(n)),u,d,e,p):__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&mt("Invalid HostVNode type:",M,`(${typeof M})`)}return null!=k&&Qn(k,null,c,r),T},f=(e,t,n,a,i,s)=>{s=s||!!t.dynamicChildren;const{type:l,props:u,patchFlag:d,shapeFlag:p,dirs:f,transition:m}=t,v="input"===l||"option"===l;if(v||-1!==d){f&&rn(t,null,n,"created");let l,g=!1;if(b(e)){g=Aa(null,m)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;if(g){const e=r.getAttribute("class");e&&(r.$cls=e),m.beforeEnter(r)}_(r,e,n),t.el=e=r}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let r=h(e.firstChild,t,e,n,a,i,s),o=!1;while(r){mr(e,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!o&&(mt("Hydration children mismatch on",e,"\nServer rendered element contains more child nodes than client vdom."),o=!0),tr());const t=r;r=r.nextSibling,c(t)}}else if(8&p){let n=t.children;"\n"!==n[0]||"PRE"!==e.tagName&&"TEXTAREA"!==e.tagName||(n=n.slice(1));const{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,"\n")&&(mr(e,0)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&mt("Hydration text content mismatch on",e,`\n - rendered on server: ${r}\n - expected on client: ${n}`),tr()),e.textContent=t.children)}if(u)if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||v||!s||48&d){const a=e.tagName.includes("-");for(const i in u)!__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||f&&f.some(e=>e.dir.created)||!sr(e,i,u[i],t,n)||tr(),(v&&(i.endsWith("value")||"indeterminate"===i)||Object(r["C"])(i)&&!Object(r["H"])(i)||"."===i[0]||a&&!Object(r["H"])(i))&&o(e,i,null,u[i],void 0,n)}else if(u.onClick)o(e,"onClick",null,u.onClick,void 0,n);else if(4&d&&Ee(u.style))for(const e in u.style)u.style[e];(l=u&&u.onVnodeBeforeMount)&&ji(l,n,t),f&&rn(t,null,n,"beforeMount"),((l=u&&u.onVnodeMounted)||f||g)&&Ja(()=>{l&&ji(l,n,t),g&&m.enter(e),f&&rn(t,null,n,"mounted")},a)}return e.nextSibling},h=(e,t,r,o,s,c,u)=>{u=u||!!t.dynamicChildren;const d=t.children,f=d.length;let h=!1;for(let m=0;m<f;m++){const t=u?d[m]:d[m]=Si(d[m]),v=t.type===ei;e?(v&&!u&&m+1<f&&Si(d[m+1]).type===ei&&(l(a(e.data.slice(t.children.length)),r,i(e)),e.data=t.children),e=p(e,t,o,s,c,u)):v&&!t.children?l(t.el=a(""),r):(mr(r,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!h&&(mt("Hydration children mismatch on",r,"\nServer rendered element contains fewer child nodes than client vdom."),h=!0),tr()),n(null,t,r,null,o,s,or(r),c))}return e},m=(e,t,n,r,o,a)=>{const{slotScopeIds:c}=t;c&&(o=o?o.concat(c):c);const d=s(e),p=h(i(e),t,d,n,r,o,a);return p&&ar(p)&&"]"===p.data?i(t.anchor=p):(tr(),l(t.anchor=u("]"),d,p),p)},v=(e,t,r,o,a,l)=>{if(mr(e.parentElement,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&mt("Hydration node mismatch:\n- rendered on server:",e,3===e.nodeType?"(text)":ar(e)&&"["===e.data?"(start of fragment)":"","\n- expected on client:",t.type),tr()),t.el=null,l){const t=g(e);while(1){const n=i(e);if(!n||n===t)break;c(n)}}const u=i(e),d=s(e);return c(e),n(null,t,d,u,r,o,or(d),a),r&&(r.vnode.el=t.el,sa(r,t.el)),u},g=(e,t="[",n="]")=>{let r=0;while(e)if(e=i(e),e&&ar(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return i(e);r--}return e},_=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let o=n;while(o)o.vnode.el===t&&(o.vnode.el=o.subTree.el=e),o=o.parent},b=e=>1===e.nodeType&&"TEMPLATE"===e.tagName;return[d,p]}function sr(e,t,n,o,a){let i,s,c,l;if("class"===t)e.$cls?(c=e.$cls,delete e.$cls):c=e.getAttribute("class"),l=Object(r["R"])(n),lr(cr(c||""),cr(l))||(i=2,s="class");else if("style"===t){c=e.getAttribute("style")||"",l=Object(r["L"])(n)?n:Object(r["W"])(Object(r["U"])(n));const t=ur(c),u=ur(l);if(o.dirs)for(const{dir:e,value:n}of o.dirs)"show"!==e.name||n||u.set("display","none");a&&pr(a,o,u),dr(t,u)||(i=3,s="style")}else(e instanceof SVGElement&&Object(r["x"])(t)||e instanceof HTMLElement&&(Object(r["q"])(t)||Object(r["w"])(t)))&&(Object(r["q"])(t)?(c=e.hasAttribute(t),l=Object(r["n"])(n)):null==n?(c=e.hasAttribute(t),l=!1):(c=e.hasAttribute(t)?e.getAttribute(t):"value"===t&&"TEXTAREA"===e.tagName&&e.value,l=!!Object(r["G"])(n)&&String(n)),c!==l&&(i=4,s=t));if(null!=i&&!mr(e,i)){const t=e=>!1===e?"(not rendered)":`${s}="${e}"`,n=`Hydration ${hr[i]} mismatch on`,r=`\n - rendered on server: ${t(c)}\n - expected on client: ${t(l)}\n Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.\n You should fix the source of the mismatch.`;return mt(n,e,r),!0}return!1}function cr(e){return new Set(e.trim().split(/\s+/))}function lr(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function ur(e){const t=new Map;for(const n of e.split(";")){let[e,r]=n.split(":");e=e.trim(),r=r&&r.trim(),e&&r&&t.set(e,r)}return t}function dr(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e)if(r!==t.get(n))return!1;return!0}function pr(e,t,n){const o=e.subTree;if(e.getCssVars&&(t===o||o&&o.type===Za&&o.children.includes(t))){const t=e.getCssVars();for(const e in t){const o=Object(r["S"])(t[e]);n.set("--"+Object(r["i"])(e,!1),o)}}t===o&&e.parent&&pr(e.parent,e.vnode,n)}const fr="data-allow-mismatch",hr={[0]:"text",[1]:"children",[2]:"class",[3]:"style",[4]:"attribute"};function mr(e,t){if(0===t||1===t)while(e&&!e.hasAttribute(fr))e=e.parentElement;const n=e&&e.getAttribute(fr);if(null==n)return!1;if(""===n)return!0;{const e=n.split(",");return!(0!==t||!e.includes("children"))||e.includes(hr[t])}}const vr=Object(r["j"])().requestIdleCallback||(e=>setTimeout(e,1)),gr=Object(r["j"])().cancelIdleCallback||(e=>clearTimeout(e)),_r=(e=1e4)=>t=>{const n=vr(t,{timeout:e});return()=>gr(n)};function br(e){const{top:t,left:n,bottom:r,right:o}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:i}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<i||o>0&&o<i)}const yr=e=>(t,n)=>{const r=new IntersectionObserver(e=>{for(const n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element)return br(e)?(t(),r.disconnect(),!1):void r.observe(e)}),()=>r.disconnect()},Or=e=>t=>{if(e){const n=matchMedia(e);if(!n.matches)return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t);t()}},Mr=(e=[])=>(t,n)=>{Object(r["L"])(e)&&(e=[e]);let o=!1;const a=e=>{o||(o=!0,i(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},i=()=>{n(t=>{for(const n of e)t.removeEventListener(n,a)})};return n(t=>{for(const n of e)t.addEventListener(n,a,{once:!0})}),i};function kr(e,t){if(ar(e)&&"["===e.data){let n=1,r=e.nextSibling;while(r){if(1===r.nodeType){const e=t(r);if(!1===e)break}else if(ar(r))if("]"===r.data){if(0===--n)break}else"["===r.data&&n++;r=r.nextSibling}}else t(e)}const Cr=e=>!!e.type.__asyncLoader;function wr(e){Object(r["s"])(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:a=200,hydrate:i,timeout:s,suspensible:c=!0,onError:l}=e;let u,d=null,p=0;const f=()=>(p++,d=null,h()),h=()=>{let e;return d||(e=d=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,n)=>{const r=()=>t(f()),o=()=>n(e);l(e,r,o,p+1)});throw e}).then(t=>e!==d&&d?d:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),u=t,t)))};return qn({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(e,t,n){let r=!1;(t.bu||(t.bu=[])).push(()=>r=!0);const o=()=>{r||n()},a=i?()=>{const n=i(o,t=>kr(e,t));n&&(t.bum||(t.bum=[])).push(n)}:o;u?a():h().then(()=>!t.isUnmounted&&a())},get __asyncResolved(){return u},setup(){const e=Ni;if(Kn(e),u)return()=>Sr(u,e);const t=t=>{d=null,St(t,e,13,!o)};if(c&&e.suspense||Hi)return h().then(t=>()=>Sr(t,e)).catch(e=>(t(e),()=>o?bi(o,{error:e}):null));const r=Ue(!1),i=Ue(),l=Ue(!!a);return a&&setTimeout(()=>{l.value=!1},a),null!=s&&setTimeout(()=>{if(!r.value&&!i.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),i.value=e}},s),h().then(()=>{r.value=!0,e.parent&&Tr(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),i.value=e}),()=>r.value&&u?Sr(u,e):i.value&&o?bi(o,{error:i.value}):n&&!l.value?Sr(n,e):void 0}})}function Sr(e,t){const{ref:n,props:r,children:o,ce:a}=t.vnode,i=bi(e,r,o);return i.ref=n,i.ce=a,delete t.vnode.ce,i}const Tr=e=>e.type.__isKeepAlive,Ir={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ri(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const a=new Map,i=new Set;let s=null;const c=n.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:p}}}=o,f=p("div");function h(e){Rr(e),d(e,n,c,!0)}function m(e){a.forEach((t,n)=>{const r=ts(Cr(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&v(n)})}function v(e){const t=a.get(e);!t||s&&hi(t,s)?s&&Rr(s):h(t),a.delete(e),i.delete(e)}o.activate=(e,t,n,o,a)=>{const i=e.component;u(e,t,n,0,c),l(i.vnode,e,t,n,i,c,o,e.slotScopeIds,a),Ta(()=>{i.isDeactivated=!1,i.a&&Object(r["o"])(i.a);const t=e.props&&e.props.onVnodeMounted;t&&ji(t,i.parent,e)},c)},o.deactivate=e=>{const t=e.component;Pa(t.m),Pa(t.a),u(e,f,null,1,c),Ta(()=>{t.da&&Object(r["o"])(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ji(n,t.parent,e),t.isDeactivated=!0},c)},fn(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>jr(e,t)),t&&m(e=>!jr(t,e))},{flush:"post",deep:!0});let g=null;const _=()=>{null!=g&&(Va(n.subTree.type)?Ta(()=>{a.set(g,xr(n.subTree))},n.subTree.suspense):a.set(g,xr(n.subTree)))};return Br(_),Gr(_),Hr(()=>{a.forEach(e=>{const{subTree:t,suspense:r}=n,o=xr(t);if(e.type!==o.type||e.key!==o.key)h(e);else{Rr(o);const e=o.component.da;e&&Ta(e,r)}})}),()=>{if(g=null,!t.default)return s=null;const n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!fi(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return s=null,r;let o=xr(r);if(o.type===ti)return s=null,o;const c=o.type,l=ts(Cr(o)?o.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!l||!jr(u,l))||d&&l&&jr(d,l))return o.shapeFlag&=-257,s=o,r;const f=null==o.key?c:o.key,h=a.get(f);return o.el&&(o=Mi(o),128&r.shapeFlag&&(r.ssContent=o)),g=f,h?(o.el=h.el,o.component=h.component,o.transition&&Yn(o,o.transition),o.shapeFlag|=512,i.delete(f),i.add(f)):(i.add(f),p&&i.size>parseInt(p,10)&&v(i.values().next().value)),o.shapeFlag|=256,s=o,Va(r.type)?r:o}}},Er=Ir;function jr(e,t){return Object(r["p"])(e)?e.some(e=>jr(e,t)):Object(r["L"])(e)?e.split(",").includes(t):!!Object(r["F"])(e)&&(e.lastIndex=0,e.test(t))}function Dr(e,t){Ar(e,"a",t)}function Lr(e,t){Ar(e,"da",t)}function Ar(e,t,n=Ni){const r=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(Pr(t,r,n),n){let e=n.parent;while(e&&e.parent)Tr(e.parent.vnode)&&Nr(r,t,n,e),e=e.parent}}function Nr(e,t,n,o){const a=Pr(t,e,o,!0);Yr(()=>{Object(r["V"])(o[t],a)},n)}function Rr(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function xr(e){return 128&e.shapeFlag?e.ssContent:e}function Pr(e,t,n=Ni,r=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...r)=>{I();const o=Ui(n),a=wt(t,n,e,r);return o(),E(),a});return r?o.unshift(a):o.push(a),a}}const Ur=e=>(t,n=Ni)=>{Hi&&"sp"!==e||Pr(e,(...e)=>t(...e),n)},Vr=Ur("bm"),Br=Ur("m"),Fr=Ur("bu"),Gr=Ur("u"),Hr=Ur("bum"),Yr=Ur("um"),zr=Ur("sp"),qr=Ur("rtg"),Wr=Ur("rtc");function Kr(e,t=Ni){Pr("ec",e,t)}const $r="components",Jr="directives";function Xr(e,t){return to($r,e,!0,t)||e}const Qr=Symbol.for("v-ndc");function Zr(e){return Object(r["L"])(e)?to($r,e,!1)||e:e||Qr}function eo(e){return to(Jr,e)}function to(e,t,n=!0,o=!1){const a=$t||Ni;if(a){const n=a.type;if(e===$r){const e=ts(n,!1);if(e&&(e===t||e===Object(r["e"])(t)||e===Object(r["f"])(Object(r["e"])(t))))return n}const i=no(a[e]||n[e],t)||no(a.appContext[e],t);return!i&&o?n:i}}function no(e,t){return e&&(e[t]||e[Object(r["e"])(t)]||e[Object(r["f"])(Object(r["e"])(t))])}function ro(e,t,n,o){let a;const i=n&&n[o],s=Object(r["p"])(e);if(s||Object(r["L"])(e)){const n=s&&Ee(e);let r=!1,o=!1;n&&(r=!De(e),o=je(e),e=H(e)),a=new Array(e.length);for(let s=0,c=e.length;s<c;s++)a[s]=t(r?o?xe(Re(e[s])):Re(e[s]):e[s],s,void 0,i&&i[s])}else if("number"===typeof e){a=new Array(e);for(let n=0;n<e;n++)a[n]=t(n+1,n,void 0,i&&i[n])}else if(Object(r["B"])(e))if(e[Symbol.iterator])a=Array.from(e,(e,n)=>t(e,n,void 0,i&&i[n]));else{const n=Object.keys(e);a=new Array(n.length);for(let r=0,o=n.length;r<o;r++){const o=n[r];a[r]=t(e[o],o,r,i&&i[r])}}else a=[];return n&&(n[o]=a),a}function oo(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(Object(r["p"])(o))for(let t=0;t<o.length;t++)e[o[t].name]=o[t].fn;else o&&(e[o.name]=o.key?(...e)=>{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function ao(e,t,n={},o,a){if($t.ce||$t.parent&&Cr($t.parent)&&$t.parent.ce){const e=Object.keys(n).length>0;return"default"!==t&&(n.name=t),ai(),pi(Za,null,[bi("slot",n,o&&o())],e?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),ai();const s=i&&io(i(n)),c=n.key||s&&s.key,l=pi(Za,{key:(c&&!Object(r["M"])(c)?c:"_"+t)+(!s&&o?"_fb":"")},s||(o?o():[]),s&&1===e._?64:-2);return!a&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function io(e){return e.some(e=>!fi(e)||e.type!==ti&&!(e.type===Za&&!io(e.children)))?e:null}function so(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?"on:"+o:Object(r["Y"])(o)]=e[o];return n}const co=e=>e?Bi(e)?Qi(e):co(e.parent):null,lo=Object(r["h"])(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>co(e.parent),$root:e=>co(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>No(e),$forceUpdate:e=>e.f||(e.f=()=>{Pt(e.update)}),$nextTick:e=>e.n||(e.n=Rt.bind(e.proxy)),$watch:e=>mn.bind(e)}),uo=(e,t)=>e!==r["b"]&&!e.__isScriptSetup&&Object(r["l"])(e,t),po={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:o,data:a,props:i,accessCache:s,type:c,appContext:l}=e;if("$"!==t[0]){const e=s[t];if(void 0!==e)switch(e){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return i[t]}else{if(uo(o,t))return s[t]=1,o[t];if(a!==r["b"]&&Object(r["l"])(a,t))return s[t]=2,a[t];if(Object(r["l"])(i,t))return s[t]=3,i[t];if(n!==r["b"]&&Object(r["l"])(n,t))return s[t]=4,n[t];Eo&&(s[t]=0)}}const u=lo[t];let d,p;return u?("$attrs"===t&&V(e.attrs,"get",""),u(e)):(d=c.__cssModules)&&(d=d[t])?d:n!==r["b"]&&Object(r["l"])(n,t)?(s[t]=4,n[t]):(p=l.config.globalProperties,Object(r["l"])(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:o,setupState:a,ctx:i}=e;return uo(a,t)?(a[t]=n,!0):o!==r["b"]&&Object(r["l"])(o,t)?(o[t]=n,!0):!Object(r["l"])(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:a,props:i,type:s}},c){let l;return!!(n[c]||e!==r["b"]&&"$"!==c[0]&&Object(r["l"])(e,c)||uo(t,c)||Object(r["l"])(i,c)||Object(r["l"])(o,c)||Object(r["l"])(lo,c)||Object(r["l"])(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:Object(r["l"])(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const fo=Object(r["h"])({},po,{get(e,t){if(t!==Symbol.unscopables)return po.get(e,t,e)},has(e,t){const n="_"!==t[0]&&!Object(r["t"])(t);return n}});function ho(){return null}function mo(){return null}function vo(e){0}function go(e){0}function _o(){return null}function bo(){0}function yo(e,t){return null}function Oo(){return ko("useSlots").slots}function Mo(){return ko("useAttrs").attrs}function ko(e){const t=Ri();return t.setupContext||(t.setupContext=Xi(t))}function Co(e){return Object(r["p"])(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function wo(e,t){const n=Co(e);for(const o in t){if(o.startsWith("__skip"))continue;let e=n[o];e?Object(r["p"])(e)||Object(r["s"])(e)?e=n[o]={type:e,default:t[o]}:e.default=t[o]:null===e&&(e=n[o]={default:t[o]}),e&&t["__skip_"+o]&&(e.skipFactory=!0)}return n}function So(e,t){return e&&t?Object(r["p"])(e)&&Object(r["p"])(t)?e.concat(t):Object(r["h"])({},Co(e),Co(t)):e||t}function To(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Io(e){const t=Ri(),n=Hi;let o=e();Vi(),n&&Pi(!1);const a=()=>{Ui(t),n&&Pi(!0)},i=()=>{Ri()!==t&&t.scope.off(),Vi(),n&&Pi(!1)};return Object(r["E"])(o)&&(o=o.catch(e=>{throw a(),Promise.resolve().then(()=>Promise.resolve().then(i)),e})),[o,()=>{a(),Promise.resolve().then(i)}]}let Eo=!0;function jo(e){const t=No(e),n=e.proxy,o=e.ctx;Eo=!1,t.beforeCreate&&Lo(t.beforeCreate,e,"bc");const{data:a,computed:i,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:p,mounted:f,beforeUpdate:h,updated:m,activated:v,deactivated:g,beforeDestroy:_,beforeUnmount:b,destroyed:y,unmounted:O,render:M,renderTracked:k,renderTriggered:C,errorCaptured:w,serverPrefetch:S,expose:T,inheritAttrs:I,components:E,directives:j,filters:D}=t,L=null;if(u&&Do(u,o,L),s)for(const N in s){const e=s[N];Object(r["s"])(e)&&(o[N]=e.bind(n))}if(a){0;const t=a.call(n,n);0,Object(r["B"])(t)&&(e.data=Ce(t))}if(Eo=!0,i)for(const N in i){const e=i[N],t=Object(r["s"])(e)?e.bind(n,n):Object(r["s"])(e.get)?e.get.bind(n,n):r["d"];0;const a=!Object(r["s"])(e)&&Object(r["s"])(e.set)?e.set.bind(n):r["d"],s=os({get:t,set:a});Object.defineProperty(o,N,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(c)for(const r in c)Ao(c[r],o,n,r);if(l){const e=Object(r["s"])(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{on(t,e[t])})}function A(e,t){Object(r["p"])(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(d&&Lo(d,e,"c"),A(Vr,p),A(Br,f),A(Fr,h),A(Gr,m),A(Dr,v),A(Lr,g),A(Kr,w),A(Wr,k),A(qr,C),A(Hr,b),A(Yr,O),A(zr,S),Object(r["p"])(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});M&&e.render===r["d"]&&(e.render=M),null!=I&&(e.inheritAttrs=I),E&&(e.components=E),j&&(e.directives=j),S&&Kn(e)}function Do(e,t,n=r["d"]){Object(r["p"])(e)&&(e=Vo(e));for(const o in e){const n=e[o];let a;a=Object(r["B"])(n)?"default"in n?an(n.from||o,n.default,!0):an(n.from||o):an(n),Pe(a)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e}):t[o]=a}}function Lo(e,t,n){wt(Object(r["p"])(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ao(e,t,n,o){let a=o.includes(".")?vn(n,o):()=>n[o];if(Object(r["L"])(e)){const n=t[e];Object(r["s"])(n)&&fn(a,n)}else if(Object(r["s"])(e))fn(a,e.bind(n));else if(Object(r["B"])(e))if(Object(r["p"])(e))e.forEach(e=>Ao(e,t,n,o));else{const o=Object(r["s"])(e.handler)?e.handler.bind(n):t[e.handler];Object(r["s"])(o)&&fn(a,o,e)}else 0}function No(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,c=i.get(t);let l;return c?l=c:a.length||n||o?(l={},a.length&&a.forEach(e=>Ro(l,e,s,!0)),Ro(l,t,s)):l=t,Object(r["B"])(t)&&i.set(t,l),l}function Ro(e,t,n,r=!1){const{mixins:o,extends:a}=t;a&&Ro(e,a,n,!0),o&&o.forEach(t=>Ro(e,t,n,!0));for(const i in t)if(r&&"expose"===i);else{const r=xo[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const xo={data:Po,props:Go,emits:Go,methods:Fo,computed:Fo,beforeCreate:Bo,created:Bo,beforeMount:Bo,mounted:Bo,beforeUpdate:Bo,updated:Bo,beforeDestroy:Bo,beforeUnmount:Bo,destroyed:Bo,unmounted:Bo,activated:Bo,deactivated:Bo,errorCaptured:Bo,serverPrefetch:Bo,components:Fo,directives:Fo,watch:Ho,provide:Po,inject:Uo};function Po(e,t){return t?e?function(){return Object(r["h"])(Object(r["s"])(e)?e.call(this,this):e,Object(r["s"])(t)?t.call(this,this):t)}:t:e}function Uo(e,t){return Fo(Vo(e),Vo(t))}function Vo(e){if(Object(r["p"])(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Bo(e,t){return e?[...new Set([].concat(e,t))]:t}function Fo(e,t){return e?Object(r["h"])(Object.create(null),e,t):t}function Go(e,t){return e?Object(r["p"])(e)&&Object(r["p"])(t)?[...new Set([...e,...t])]:Object(r["h"])(Object.create(null),Co(e),Co(null!=t?t:{})):t}function Ho(e,t){if(!e)return t;if(!t)return e;const n=Object(r["h"])(Object.create(null),e);for(const r in t)n[r]=Bo(e[r],t[r]);return n}function Yo(){return{app:null,config:{isNativeTag:r["c"],performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let zo=0;function qo(e,t){return function(n,o=null){Object(r["s"])(n)||(n=Object(r["h"])({},n)),null==o||Object(r["B"])(o)||(o=null);const a=Yo(),i=new WeakSet,s=[];let c=!1;const l=a.app={_uid:zo++,_component:n,_props:o,_container:null,_context:a,_instance:null,version:ls,get config(){return a.config},set config(e){0},use(e,...t){return i.has(e)||(e&&Object(r["s"])(e.install)?(i.add(e),e.install(l,...t)):Object(r["s"])(e)&&(i.add(e),e(l,...t))),l},mixin(e){return a.mixins.includes(e)||a.mixins.push(e),l},component(e,t){return t?(a.components[e]=t,l):a.components[e]},directive(e,t){return t?(a.directives[e]=t,l):a.directives[e]},mount(r,i,s){if(!c){0;const u=l._ceVNode||bi(n,o);return u.appContext=a,!0===s?s="svg":!1===s&&(s=void 0),i&&t?t(u,r):e(u,r,s),c=!0,l._container=r,r.__vue_app__=l,Qi(u.component)}},onUnmount(e){s.push(e)},unmount(){c&&(wt(s,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return a.provides[e]=t,l},runWithContext(e){const t=Wo;Wo=l;try{return e()}finally{Wo=t}}};return l}}let Wo=null;function Ko(e,t,n=r["b"]){const o=Ri();const a=Object(r["e"])(t);const i=Object(r["m"])(t),s=$o(e,a),c=Ke((s,c)=>{let l,u,d=r["b"];return pn(()=>{const t=e[a];Object(r["k"])(l,t)&&(l=t,c())}),{get(){return s(),n.get?n.get(l):l},set(e){const s=n.set?n.set(e):e;if(!Object(r["k"])(s,l)&&(d===r["b"]||!Object(r["k"])(e,d)))return;const p=o.vnode.props;p&&(t in p||a in p||i in p)&&("onUpdate:"+t in p||"onUpdate:"+a in p||"onUpdate:"+i in p)||(l=e,c()),o.emit("update:"+t,s),Object(r["k"])(e,s)&&Object(r["k"])(e,d)&&!Object(r["k"])(s,u)&&c(),d=e,u=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||r["b"]:c,done:!1}:{done:!0}}}},c}const $o=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[t+"Modifiers"]||e[Object(r["e"])(t)+"Modifiers"]||e[Object(r["m"])(t)+"Modifiers"];function Jo(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||r["b"];let a=n;const i=t.startsWith("update:"),s=i&&$o(o,t.slice(7));let c;s&&(s.trim&&(a=n.map(e=>Object(r["L"])(e)?e.trim():e)),s.number&&(a=n.map(r["P"])));let l=o[c=Object(r["Y"])(t)]||o[c=Object(r["Y"])(Object(r["e"])(t))];!l&&i&&(l=o[c=Object(r["Y"])(Object(r["m"])(t))]),l&&wt(l,e,6,a);const u=o[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,wt(u,e,6,a)}}const Xo=new WeakMap;function Qo(e,t,n=!1){const o=n?Xo:t.emitsCache,a=o.get(e);if(void 0!==a)return a;const i=e.emits;let s={},c=!1;if(!Object(r["s"])(e)){const o=e=>{const n=Qo(e,t,!0);n&&(c=!0,Object(r["h"])(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||c?(Object(r["p"])(i)?i.forEach(e=>s[e]=null):Object(r["h"])(s,i),Object(r["B"])(e)&&o.set(e,s),s):(Object(r["B"])(e)&&o.set(e,null),null)}function Zo(e,t){return!(!e||!Object(r["C"])(t))&&(t=t.slice(2).replace(/Once$/,""),Object(r["l"])(e,t[0].toLowerCase()+t.slice(1))||Object(r["l"])(e,Object(r["m"])(t))||Object(r["l"])(e,t))}function ea(e){const{type:t,vnode:n,proxy:o,withProxy:a,propsOptions:[i],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:p,data:f,setupState:h,ctx:m,inheritAttrs:v}=e,g=Xt(e);let _,b;try{if(4&n.shapeFlag){const e=a||o,t=e;_=Si(u.call(t,e,d,p,h,f,m)),b=c}else{const e=t;0,_=Si(e.length>1?e(p,{attrs:c,slots:s,emit:l}):e(p,null)),b=t.props?c:na(c)}}catch(O){ri.length=0,St(O,e,1),_=bi(ti)}let y=_;if(b&&!1!==v){const e=Object.keys(b),{shapeFlag:t}=y;e.length&&7&t&&(i&&e.some(r["A"])&&(b=ra(b,i)),y=Mi(y,b,!1,!0))}return n.dirs&&(y=Mi(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&Yn(y,n.transition),_=y,Xt(g),_}function ta(e,t=!0){let n;for(let r=0;r<e.length;r++){const t=e[r];if(!fi(t))return;if(t.type!==ti||"v-if"===t.children){if(n)return;n=t}}return n}const na=e=>{let t;for(const n in e)("class"===n||"style"===n||Object(r["C"])(n))&&((t||(t={}))[n]=e[n]);return t},ra=(e,t)=>{const n={};for(const o in e)Object(r["A"])(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function oa(e,t,n){const{props:r,children:o,component:a}=e,{props:i,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!o&&!s||s&&s.$stable)||r!==i&&(r?!i||aa(r,i,l):!!i);if(1024&c)return!0;if(16&c)return r?aa(r,i,l):!!i;if(8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(ia(i,r,n)&&!Zo(l,n))return!0}}return!1}function aa(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const a=r[o];if(ia(t,e,a)&&!Zo(n,a))return!0}return!1}function ia(e,t,n){const o=e[n],a=t[n];return"style"===n&&Object(r["B"])(o)&&Object(r["B"])(a)?!Object(r["N"])(o,a):o!==a}function sa({vnode:e,parent:t,suspense:n},r){while(t){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n!==e)break;(e=t.vnode).el=r,t=t.parent}n&&n.activeBranch===e&&(n.vnode.el=r)}const ca={},la=()=>Object.create(ca),ua=e=>Object.getPrototypeOf(e)===ca;function da(e,t,n,r=!1){const o={},a=la();e.propsDefaults=Object.create(null),fa(e,t,o,a);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=r?o:we(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function pa(e,t,n,o){const{props:a,attrs:i,vnode:{patchFlag:s}}=e,c=Ae(a),[l]=e.propsOptions;let u=!1;if(!(o||s>0)||16&s){let o;fa(e,t,a,i)&&(u=!0);for(const i in c)t&&(Object(r["l"])(t,i)||(o=Object(r["m"])(i))!==i&&Object(r["l"])(t,o))||(l?!n||void 0===n[i]&&void 0===n[o]||(a[i]=ha(l,c,i,void 0,e,!0)):delete a[i]);if(i!==c)for(const e in i)t&&Object(r["l"])(t,e)||(delete i[e],u=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let s=n[o];if(Zo(e.emitsOptions,s))continue;const d=t[s];if(l)if(Object(r["l"])(i,s))d!==i[s]&&(i[s]=d,u=!0);else{const t=Object(r["e"])(s);a[t]=ha(l,c,t,d,e,!1)}else d!==i[s]&&(i[s]=d,u=!0)}}u&&B(e.attrs,"set","")}function fa(e,t,n,o){const[a,i]=e.propsOptions;let s,c=!1;if(t)for(let l in t){if(Object(r["H"])(l))continue;const u=t[l];let d;a&&Object(r["l"])(a,d=Object(r["e"])(l))?i&&i.includes(d)?(s||(s={}))[d]=u:n[d]=u:Zo(e.emitsOptions,l)||l in o&&u===o[l]||(o[l]=u,c=!0)}if(i){const t=Ae(n),o=s||r["b"];for(let s=0;s<i.length;s++){const c=i[s];n[c]=ha(a,t,c,o[c],e,!Object(r["l"])(o,c))}}return c}function ha(e,t,n,o,a,i){const s=e[n];if(null!=s){const e=Object(r["l"])(s,"default");if(e&&void 0===o){const e=s.default;if(s.type!==Function&&!s.skipFactory&&Object(r["s"])(e)){const{propsDefaults:r}=a;if(n in r)o=r[n];else{const i=Ui(a);o=r[n]=e.call(null,t),i()}}else o=e;a.ce&&a.ce._setProp(n,o)}s[0]&&(i&&!e?o=!1:!s[1]||""!==o&&o!==Object(r["m"])(n)||(o=!0))}return o}const ma=new WeakMap;function va(e,t,n=!1){const o=n?ma:t.propsCache,a=o.get(e);if(a)return a;const i=e.props,s={},c=[];let l=!1;if(!Object(r["s"])(e)){const o=e=>{l=!0;const[n,o]=va(e,t,!0);Object(r["h"])(s,n),o&&c.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!i&&!l)return Object(r["B"])(e)&&o.set(e,r["a"]),r["a"];if(Object(r["p"])(i))for(let d=0;d<i.length;d++){0;const e=Object(r["e"])(i[d]);ga(e)&&(s[e]=r["b"])}else if(i){0;for(const e in i){const t=Object(r["e"])(e);if(ga(t)){const n=i[e],o=s[t]=Object(r["p"])(n)||Object(r["s"])(n)?{type:n}:Object(r["h"])({},n),a=o.type;let l=!1,u=!0;if(Object(r["p"])(a))for(let e=0;e<a.length;++e){const t=a[e],n=Object(r["s"])(t)&&t.name;if("Boolean"===n){l=!0;break}"String"===n&&(u=!1)}else l=Object(r["s"])(a)&&"Boolean"===a.name;o[0]=l,o[1]=u,(l||Object(r["l"])(o,"default"))&&c.push(t)}}}const u=[s,c];return Object(r["B"])(e)&&o.set(e,u),u}function ga(e){return"$"!==e[0]&&!Object(r["H"])(e)}const _a=e=>"_"===e||"_ctx"===e||"$stable"===e,ba=e=>Object(r["p"])(e)?e.map(Si):[Si(e)],ya=(e,t,n)=>{if(t._n)return t;const r=tn((...e)=>ba(t(...e)),n);return r._c=!1,r},Oa=(e,t,n)=>{const o=e._ctx;for(const a in e){if(_a(a))continue;const n=e[a];if(Object(r["s"])(n))t[a]=ya(a,n,o);else if(null!=n){0;const e=ba(n);t[a]=()=>e}}},Ma=(e,t)=>{const n=ba(t);e.slots.default=()=>n},ka=(e,t,n)=>{for(const r in t)!n&&_a(r)||(e[r]=t[r])},Ca=(e,t,n)=>{const o=e.slots=la();if(32&e.vnode.shapeFlag){const e=t._;e?(ka(o,t,n),n&&Object(r["g"])(o,"_",e,!0)):Oa(t,o)}else t&&Ma(e,t)},wa=(e,t,n)=>{const{vnode:o,slots:a}=e;let i=!0,s=r["b"];if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:ka(a,t,n):(i=!t.$stable,Oa(t,a)),s=t}else t&&(Ma(e,t),s={default:1});if(i)for(const r in a)_a(r)||null!=s[r]||delete a[r]};function Sa(){"boolean"!==typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(Object(r["j"])().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Ta=Ja;function Ia(e){return ja(e)}function Ea(e){return ja(e,ir)}function ja(e,t){Sa();const n=Object(r["j"])();n.__VUE__=!0;const{insert:o,remove:a,patchProp:i,createElement:s,createText:c,createComment:l,setText:u,setElementText:p,parentNode:f,nextSibling:h,setScopeId:m=r["d"],insertStaticContent:v}=e,g=(e,t,n,r=null,o=null,a=null,i,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!hi(e,t)&&(r=W(e),G(e,o,a,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:d}=t;switch(l){case ei:_(e,t,n,r);break;case ti:b(e,t,n,r);break;case ni:null==e&&y(t,n,r,i);break;case Za:L(e,t,n,r,o,a,i,s,c);break;default:1&d?k(e,t,n,r,o,a,i,s,c):6&d?A(e,t,n,r,o,a,i,s,c):(64&d||128&d)&&l.process(e,t,n,r,o,a,i,s,c,J)}null!=u&&o?Qn(u,e&&e.ref,a,t||e,!t):null==u&&e&&null!=e.ref&&Qn(e.ref,null,a,e,!0)},_=(e,t,n,r)=>{if(null==e)o(t.el=c(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},b=(e,t,n,r)=>{null==e?o(t.el=l(t.children||""),n,r):t.el=e.el},y=(e,t,n,r)=>{[e.el,e.anchor]=v(e.children,t,n,r,e.el,e.anchor)},O=({el:e,anchor:t},n,r)=>{let a;while(e&&e!==t)a=h(e),o(e,n,r),e=a;o(t,n,r)},M=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=h(e),a(e),e=n;a(t)},k=(e,t,n,r,o,a,i,s,c)=>{if("svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e)C(t,n,r,o,a,i,s,c);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),T(e,t,o,a,i,s,c)}finally{n&&n._endPatch()}}},C=(e,t,n,a,c,l,u,d)=>{let f,h;const{props:m,shapeFlag:v,transition:g,dirs:_}=e;if(f=e.el=s(e.type,l,m&&m.is,m),8&v?p(f,e.children):16&v&&S(e.children,f,null,a,c,Da(e,l),u,d),_&&rn(e,null,a,"created"),w(f,e,e.scopeId,u,a),m){for(const e in m)"value"===e||Object(r["H"])(e)||i(f,e,null,m[e],l,a);"value"in m&&i(f,"value",null,m.value,l),(h=m.onVnodeBeforeMount)&&ji(h,a,e)}_&&rn(e,null,a,"beforeMount");const b=Aa(c,g);if(b&&g.beforeEnter(f),o(f,t,n),(h=m&&m.onVnodeMounted)||b||_){Ta(()=>{try{h&&ji(h,a,e),b&&g.enter(f),_&&rn(e,null,a,"mounted")}finally{0}},c)}},w=(e,t,n,r,o)=>{if(n&&m(e,n),r)for(let a=0;a<r.length;a++)m(e,r[a]);if(o){let n=o.subTree;if(t===n||Va(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=o.vnode;w(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},S=(e,t,n,r,o,a,i,s,c=0)=>{for(let l=c;l<e.length;l++){const c=e[l]=s?Ti(e[l]):Si(e[l]);g(null,c,t,n,r,o,a,i,s)}},T=(e,t,n,o,a,s,c)=>{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=16&e.patchFlag;const h=e.props||r["b"],m=t.props||r["b"];let v;if(n&&La(n,!1),(v=m.onVnodeBeforeUpdate)&&ji(v,n,t,e),f&&rn(t,e,n,"beforeUpdate"),n&&La(n,!0),(h.innerHTML&&null==m.innerHTML||h.textContent&&null==m.textContent)&&p(l,""),d?j(e.dynamicChildren,d,l,n,o,Da(t,a),s):c||U(e,t,l,null,n,o,Da(t,a),s,!1),u>0){if(16&u)D(l,h,m,n,a);else if(2&u&&h.class!==m.class&&i(l,"class",null,m.class,a),4&u&&i(l,"style",h.style,m.style,a),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const r=e[t],o=h[r],s=m[r];s===o&&"value"!==r||i(l,r,o,s,a,n)}}1&u&&e.children!==t.children&&p(l,t.children)}else c||null!=d||D(l,h,m,n,a);((v=m.onVnodeUpdated)||f)&&Ta(()=>{v&&ji(v,n,t,e),f&&rn(t,e,n,"updated")},o)},j=(e,t,n,r,o,a,i)=>{for(let s=0;s<t.length;s++){const c=e[s],l=t[s],u=c.el&&(c.type===Za||!hi(c,l)||198&c.shapeFlag)?f(c.el):n;g(c,l,u,null,r,o,a,i,!0)}},D=(e,t,n,o,a)=>{if(t!==n){if(t!==r["b"])for(const s in t)Object(r["H"])(s)||s in n||i(e,s,t[s],null,a,o);for(const s in n){if(Object(r["H"])(s))continue;const c=n[s],l=t[s];c!==l&&"value"!==s&&i(e,s,l,c,a,o)}"value"in n&&i(e,"value",t.value,n.value,a)}},L=(e,t,n,r,a,i,s,l,u)=>{const d=t.el=e?e.el:c(""),p=t.anchor=e?e.anchor:c("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(o(d,n,r),o(p,n,r),S(t.children||[],n,p,a,i,s,l,u)):f>0&&64&f&&h&&e.dynamicChildren&&e.dynamicChildren.length===h.length?(j(e.dynamicChildren,h,n,a,i,s,l),(null!=t.key||a&&t===a.subTree)&&Na(e,t,!0)):U(e,t,n,p,a,i,s,l,u)},A=(e,t,n,r,o,a,i,s,c)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,i,c):N(t,n,r,o,a,i,c):R(e,t,c)},N=(e,t,n,r,o,a,i)=>{const s=e.component=Ai(e,r,o);if(Tr(e)&&(s.ctx.renderer=J),Yi(s,!1,i),s.asyncDep){if(o&&o.registerDep(s,x,i),!e.el){const r=s.subTree=bi(ti);b(null,r,t,n),e.placeholder=r.el}}else x(s,e,t,n,o,a,i)},R=(e,t,n)=>{const r=t.component=e.component;if(oa(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void P(r,t,n);r.next=t,r.update()}else t.el=e.el,r.vnode=t},x=(e,t,n,o,a,i,s)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:c,vnode:l}=e;{const n=xa(e);if(n)return t&&(t.el=l.el,P(e,t,s)),void n.asyncDep.then(()=>{Ta(()=>{e.isUnmounted||u()},a)})}let d,p=t;0,La(e,!1),t?(t.el=l.el,P(e,t,s)):t=l,n&&Object(r["o"])(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&ji(d,c,t,l),La(e,!0);const h=ea(e);0;const m=e.subTree;e.subTree=h,g(m,h,f(m.el),W(m),e,a,i),t.el=h.el,null===p&&sa(e,h.el),o&&Ta(o,a),(d=t.props&&t.props.onVnodeUpdated)&&Ta(()=>ji(d,c,t,l),a)}else{let s;const{el:c,props:l}=t,{bm:u,m:d,parent:p,root:f,type:h}=e,m=Cr(t);if(La(e,!1),u&&Object(r["o"])(u),!m&&(s=l&&l.onVnodeBeforeMount)&&ji(s,p,t),La(e,!0),c&&Q){const t=()=>{e.subTree=ea(e),Q(c,e.subTree,e,a,null)};m&&h.__asyncHydrate?h.__asyncHydrate(c,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(h,e.parent?e.parent.type:void 0);const r=e.subTree=ea(e);0,g(null,r,n,o,e,a,i),t.el=r.el}if(d&&Ta(d,a),!m&&(s=l&&l.onVnodeMounted)){const e=t;Ta(()=>ji(s,p,e),a)}(256&t.shapeFlag||p&&Cr(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&Ta(e.a,a),e.isMounted=!0,t=n=o=null}};e.scope.on();const l=e.effect=new d(c);e.scope.off();const u=e.update=l.run.bind(l),p=e.job=l.runIfDirty.bind(l);p.i=e,p.id=e.uid,l.scheduler=()=>Pt(p),La(e,!0),u()},P=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,pa(e,t.props,r,n),wa(e,t.children,n),I(),Bt(e),E()},U=(e,t,n,r,o,a,i,s,c=!1)=>{const l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void B(l,d,n,r,o,a,i,s,c);if(256&f)return void V(l,d,n,r,o,a,i,s,c)}8&h?(16&u&&q(l,o,a),d!==l&&p(n,d)):16&u?16&h?B(l,d,n,r,o,a,i,s,c):q(l,o,a,!0):(8&u&&p(n,""),16&h&&S(d,n,r,o,a,i,s,c))},V=(e,t,n,o,a,i,s,c,l)=>{e=e||r["a"],t=t||r["a"];const u=e.length,d=t.length,p=Math.min(u,d);let f;for(f=0;f<p;f++){const r=t[f]=l?Ti(t[f]):Si(t[f]);g(e[f],r,n,null,a,i,s,c,l)}u>d?q(e,a,i,!0,!1,p):S(t,n,o,a,i,s,c,l,p)},B=(e,t,n,o,a,i,s,c,l)=>{let u=0;const d=t.length;let p=e.length-1,f=d-1;while(u<=p&&u<=f){const r=e[u],o=t[u]=l?Ti(t[u]):Si(t[u]);if(!hi(r,o))break;g(r,o,n,null,a,i,s,c,l),u++}while(u<=p&&u<=f){const r=e[p],o=t[f]=l?Ti(t[f]):Si(t[f]);if(!hi(r,o))break;g(r,o,n,null,a,i,s,c,l),p--,f--}if(u>p){if(u<=f){const e=f+1,r=e<d?t[e].el:o;while(u<=f)g(null,t[u]=l?Ti(t[u]):Si(t[u]),n,r,a,i,s,c,l),u++}}else if(u>f)while(u<=p)G(e[u],a,i,!0),u++;else{const h=u,m=u,v=new Map;for(u=m;u<=f;u++){const e=t[u]=l?Ti(t[u]):Si(t[u]);null!=e.key&&v.set(e.key,u)}let _,b=0;const y=f-m+1;let O=!1,M=0;const k=new Array(y);for(u=0;u<y;u++)k[u]=0;for(u=h;u<=p;u++){const r=e[u];if(b>=y){G(r,a,i,!0);continue}let o;if(null!=r.key)o=v.get(r.key);else for(_=m;_<=f;_++)if(0===k[_-m]&&hi(r,t[_])){o=_;break}void 0===o?G(r,a,i,!0):(k[o-m]=u+1,o>=M?M=o:O=!0,g(r,t[o],n,null,a,i,s,c,l),b++)}const C=O?Ra(k):r["a"];for(_=C.length-1,u=y-1;u>=0;u--){const e=m+u,r=t[e],p=t[e+1],f=e+1<d?p.el||Ua(p):o;0===k[u]?g(null,r,n,f,a,i,s,c,l):O&&(_<0||u!==C[_]?F(r,n,f,2):_--)}}},F=(e,t,n,r,i=null)=>{const{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(6&d)return void F(e.component.subTree,t,n,r);if(128&d)return void e.suspense.move(t,n,r);if(64&d)return void c.move(e,t,n,J);if(c===Za){o(s,t,n);for(let e=0;e<u.length;e++)F(u[e],t,n,r);return void o(e.anchor,t,n)}if(c===ni)return void O(e,t,n);const p=2!==r&&1&d&&l;if(p)if(0===r)l.beforeEnter(s),o(s,t,n),Ta(()=>l.enter(s),i);else{const{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?a(s):o(s,t,n)},d=()=>{s._isLeaving&&s[Dn](!0),r(s,()=>{u(),c&&c()})};i?i(s,u,d):d()}else o(s,t,n)},G=(e,t,n,r=!1,o=!1)=>{const{type:a,props:i,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:f,memo:h}=e;if(-2===d&&(o=!1),null!=s&&(I(),Qn(s,null,n,e,!0),E()),null!=f&&(t.renderCache[f]=void 0),256&u)return void t.ctx.deactivate(e);const m=1&u&&p,v=!Cr(e);let g;if(v&&(g=i&&i.onVnodeBeforeUnmount)&&ji(g,t,e),6&u)z(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);m&&rn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,J,r):l&&!l.hasOnce&&(a!==Za||d>0&&64&d)?q(l,t,n,!1,!0):(a===Za&&384&d||!o&&16&u)&&q(c,t,n),r&&H(e)}const _=null!=h&&null==f;(v&&(g=i&&i.onVnodeUnmounted)||m||_)&&Ta(()=>{g&&ji(g,t,e),m&&rn(e,null,t,"unmounted"),_&&(e.el=null)},n)},H=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Za)return void Y(n,r);if(t===ni)return void M(e);const i=()=>{a(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,a=()=>t(n,i);r?r(e.el,i,a):a()}else i()},Y=(e,t)=>{let n;while(e!==t)n=h(e),a(e),e=n;a(t)},z=(e,t,n)=>{const{bum:o,scope:a,job:i,subTree:s,um:c,m:l,a:u}=e;Pa(l),Pa(u),o&&Object(r["o"])(o),a.stop(),i&&(i.flags|=8,G(s,e,t,n)),c&&Ta(c,t),Ta(()=>{e.isUnmounted=!0},t)},q=(e,t,n,r=!1,o=!1,a=0)=>{for(let i=a;i<e.length;i++)G(e[i],t,n,r,o)},W=e=>{if(6&e.shapeFlag)return W(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=h(e.anchor||e.el),n=t&&t[_n];return n?h(n):t};let K=!1;const $=(e,t,n)=>{let r;null==e?t._vnode&&(G(t._vnode,null,null,!0),r=t._vnode.component):g(t._vnode||null,e,t,null,null,null,n),t._vnode=e,K||(K=!0,Bt(r),Ft(),K=!1)},J={p:g,um:G,m:F,r:H,mt:N,mc:S,pc:U,pbc:j,n:W,o:e};let X,Q;return t&&([X,Q]=t(J)),{render:$,hydrate:X,createApp:qo($,X)}}function Da({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function La({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Aa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Na(e,t,n=!1){const o=e.children,a=t.children;if(Object(r["p"])(o)&&Object(r["p"])(a))for(let r=0;r<o.length;r++){const e=o[r];let t=a[r];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=a[r]=Ti(a[r]),t.el=e.el),n||-2===t.patchFlag||Na(e,t)),t.type===ei&&(-1===t.patchFlag&&(t=a[r]=Ti(t)),t.el=e.el),t.type!==ti||t.el||(t.el=e.el)}}function Ra(e){const t=e.slice(),n=[0];let r,o,a,i,s;const c=e.length;for(r=0;r<c;r++){const c=e[r];if(0!==c){if(o=n[n.length-1],e[o]<c){t[r]=o,n.push(r);continue}a=0,i=n.length-1;while(a<i)s=a+i>>1,e[n[s]]<c?a=s+1:i=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}a=n.length,i=n[a-1];while(a-- >0)n[a]=i,i=t[i];return n}function xa(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:xa(t)}function Pa(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ua(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ua(t.subTree):null}const Va=e=>e.__isSuspense;let Ba=0;const Fa={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,a,i,s,c,l){if(null==e)Ya(t,n,r,o,a,i,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);za(e,t,n,r,o,i,s,c,l)}},hydrate:Wa,normalize:Ka},Ga=Fa;function Ha(e,t){const n=e.props&&e.props[t];Object(r["s"])(n)&&n()}function Ya(e,t,n,r,o,a,i,s,c){const{p:l,o:{createElement:u}}=c,d=u("div"),p=e.suspense=qa(e,o,r,t,d,n,a,i,s,c);l(null,p.pendingBranch=e.ssContent,d,null,r,p,a,i),p.deps>0?(Ha(e,"onPending"),Ha(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,a,i),Xa(p,e.ssFallback)):p.resolve(!1,!0)}function za(e,t,n,r,o,a,i,s,{p:c,um:l,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:v,isHydrating:g}=d;if(m)d.pendingBranch=p,hi(m,p)?(c(m,p,d.hiddenContainer,null,o,d,a,i,s),d.deps<=0?d.resolve():v&&(g||(c(h,f,n,r,o,null,a,i,s),Xa(d,f)))):(d.pendingId=Ba++,g?(d.isHydrating=!1,d.activeBranch=m):l(m,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),v?(c(null,p,d.hiddenContainer,null,o,d,a,i,s),d.deps<=0?d.resolve():(c(h,f,n,r,o,null,a,i,s),Xa(d,f))):h&&hi(h,p)?(c(h,p,n,r,o,d,a,i,s),d.resolve(!0)):(c(null,p,d.hiddenContainer,null,o,d,a,i,s),d.deps<=0&&d.resolve()));else if(h&&hi(h,p))c(h,p,n,r,o,d,a,i,s),Xa(d,p);else if(Ha(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=Ba++,c(null,p,d.hiddenContainer,null,o,d,a,i,s),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(f)},e):0===e&&d.fallback(f)}}function qa(e,t,n,o,a,i,s,c,l,u,d=!1){const{p:p,m:f,um:h,n:m,o:{parentNode:v,remove:g}}=u;let _;const b=Qa(e);b&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const y=e.props?Object(r["Z"])(e.props.timeout):void 0;const O=i,M={vnode:e,parent:t,parentComponent:n,namespace:s,container:o,hiddenContainer:a,deps:0,pendingId:Ba++,timeout:"number"===typeof y?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:a,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=M;let p=!1;M.isHydrating?M.isHydrating=!1:e||(p=o&&a.transition&&"out-in"===a.transition.mode,p&&(o.transition.afterLeave=()=>{s===M.pendingId&&(f(a,u,i===O?m(o):i,0),Vt(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),o&&!M.isFallbackMountPending&&(v(o.el)===u&&(i=m(o)),h(o,l,M,!0),!p&&d&&r.ssFallback&&Ta(()=>r.ssFallback.el=null,M)),p||f(a,u,i,0)),M.isFallbackMountPending=!1,Xa(M,a),M.pendingBranch=null,M.isInFallback=!1;let g=M.parent,y=!1;while(g){if(g.pendingBranch){g.effects.push(...c),y=!0;break}g=g.parent}y||p||Vt(c),M.effects=[],b&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Ha(r,"onResolve")},fallback(e){if(!M.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,namespace:a}=M;Ha(t,"onFallback");const i=m(n),s=()=>{M.isFallbackMountPending=!1,M.isInFallback&&(p(null,e,o,i,r,null,a,c,l),Xa(M,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(M.isFallbackMountPending=!0,n.transition.afterLeave=s),M.isInFallback=!0,h(n,r,null,!0),u||s()},move(e,t,n){M.activeBranch&&f(M.activeBranch,e,t,n),M.container=e},next(){return M.activeBranch&&m(M.activeBranch)},registerDep(e,t,n){const r=!!M.pendingBranch;r&&M.deps++;const o=e.vnode.el;e.asyncDep.catch(t=>{St(t,e,0)}).then(a=>{if(e.isUnmounted||M.isUnmounted||M.pendingId!==e.suspenseId)return;Vi(),e.asyncResolved=!0;const{vnode:i}=e;qi(e,a,!1),o&&(i.el=o);const c=!o&&e.subTree.el;t(e,i,v(o||e.subTree.el),o?null:m(e.subTree),M,s,n),c&&(i.placeholder=null,g(c)),sa(e,i.el),r&&0===--M.deps&&M.resolve()})},unmount(e,t){M.isUnmounted=!0,M.activeBranch&&h(M.activeBranch,n,e,t),M.pendingBranch&&h(M.pendingBranch,n,e,t)}};return M}function Wa(e,t,n,r,o,a,i,s,c){const l=t.suspense=qa(t,r,n,e.parentNode,document.createElement("div"),null,o,a,i,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,i);return 0===l.deps&&l.resolve(!1,!0),u}function Ka(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=$a(r?n.default:n),e.ssFallback=r?$a(n.fallback):bi(ti)}function $a(e){let t;if(Object(r["s"])(e)){const n=ci&&e._c;n&&(e._d=!1,ai()),e=e(),n&&(e._d=!0,t=oi,ii())}if(Object(r["p"])(e)){const t=ta(e);0,e=t}return e=Si(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Ja(e,t){t&&t.pendingBranch?Object(r["p"])(e)?t.effects.push(...e):t.effects.push(e):Vt(e)}function Xa(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;while(!o&&t.component)t=t.component.subTree,o=t.el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,sa(r,o))}function Qa(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}const Za=Symbol.for("v-fgt"),ei=Symbol.for("v-txt"),ti=Symbol.for("v-cmt"),ni=Symbol.for("v-stc"),ri=[];let oi=null;function ai(e=!1){ri.push(oi=e?null:[])}function ii(){ri.pop(),oi=ri[ri.length-1]||null}let si,ci=1;function li(e,t=!1){ci+=e,e<0&&oi&&t&&(oi.hasOnce=!0)}function ui(e){return e.dynamicChildren=ci>0?oi||r["a"]:null,ii(),ci>0&&oi&&oi.push(e),e}function di(e,t,n,r,o,a){return ui(_i(e,t,n,r,o,a,!0))}function pi(e,t,n,r,o){return ui(bi(e,t,n,r,o,!0))}function fi(e){return!!e&&!0===e.__v_isVNode}function hi(e,t){return e.type===t.type&&e.key===t.key}function mi(e){si=e}const vi=({key:e})=>null!=e?e:null,gi=({ref:e,ref_key:t,ref_for:n})=>("number"===typeof e&&(e=""+e),null!=e?Object(r["L"])(e)||Pe(e)||Object(r["s"])(e)?{i:$t,r:e,k:t,f:!!n}:e:null);function _i(e,t=null,n=null,o=0,a=null,i=(e===Za?0:1),s=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&vi(t),ref:t&&gi(t),scopeId:Jt,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:$t};return c?(Ii(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=Object(r["L"])(n)?8:16),ci>0&&!s&&oi&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&oi.push(l),l}const bi=yi;function yi(e,t=null,n=null,o=0,a=null,i=!1){if(e&&e!==Qr||(e=ti),fi(e)){const r=Mi(e,t,!0);return n&&Ii(r,n),ci>0&&!i&&oi&&(6&r.shapeFlag?oi[oi.indexOf(e)]=r:oi.push(r)),r.patchFlag=-2,r}if(rs(e)&&(e=e.__vccOpts),t){t=Oi(t);let{class:e,style:n}=t;e&&!Object(r["L"])(e)&&(t.class=Object(r["R"])(e)),Object(r["B"])(n)&&(Le(n)&&!Object(r["p"])(n)&&(n=Object(r["h"])({},n)),t.style=Object(r["U"])(n))}const s=Object(r["L"])(e)?1:Va(e)?128:bn(e)?64:Object(r["B"])(e)?4:Object(r["s"])(e)?2:0;return _i(e,t,n,o,a,s,i,!0)}function Oi(e){return e?Le(e)||ua(e)?Object(r["h"])({},e):e:null}function Mi(e,t,n=!1,o=!1){const{props:a,ref:i,patchFlag:s,children:c,transition:l}=e,u=t?Ei(a||{},t):a,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&vi(u),ref:t&&t.ref?n&&i?Object(r["p"])(i)?i.concat(gi(t)):[i,gi(t)]:gi(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Za?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Mi(e.ssContent),ssFallback:e.ssFallback&&Mi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&Yn(d,l.clone(d)),d}function ki(e=" ",t=0){return bi(ei,null,e,t)}function Ci(e,t){const n=bi(ni,null,e);return n.staticCount=t,n}function wi(e="",t=!1){return t?(ai(),pi(ti,null,e)):bi(ti,null,e)}function Si(e){return null==e||"boolean"===typeof e?bi(ti):Object(r["p"])(e)?bi(Za,null,e.slice()):fi(e)?Ti(e):bi(ei,null,String(e))}function Ti(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Mi(e)}function Ii(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(Object(r["p"])(t))n=16;else if("object"===typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Ii(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||ua(t)?3===r&&$t&&(1===$t.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=$t}}else Object(r["s"])(t)?(t={default:t,_ctx:$t},n=32):(t=String(t),64&o?(n=16,t=[ki(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ei(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=Object(r["R"])([t.class,o.class]));else if("style"===e)t.style=Object(r["U"])([t.style,o.style]);else if(Object(r["C"])(e)){const n=t[e],a=o[e];!a||n===a||Object(r["p"])(n)&&n.includes(a)?null!=a||null!=n||Object(r["A"])(e)||(t[e]=a):t[e]=n?[].concat(n,a):a}else""!==e&&(t[e]=o[e])}return t}function ji(e,t,n,r=null){wt(e,t,7,[n,r])}const Di=Yo();let Li=0;function Ai(e,t,n){const o=e.type,a=(t?t.appContext:e.appContext)||Di,s={uid:Li++,vnode:e,type:o,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new i(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:va(o,a),emitsOptions:Qo(o,a),emit:null,emitted:null,propsDefaults:r["b"],inheritAttrs:o.inheritAttrs,ctx:r["b"],data:r["b"],props:r["b"],attrs:r["b"],slots:r["b"],refs:r["b"],setupState:r["b"],setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=Jo.bind(null,s),e.ce&&e.ce(s),s}let Ni=null;const Ri=()=>Ni||$t;let xi,Pi;{const e=Object(r["j"])(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};xi=t("__VUE_INSTANCE_SETTERS__",e=>Ni=e),Pi=t("__VUE_SSR_SETTERS__",e=>Hi=e)}const Ui=e=>{const t=Ni;return xi(e),e.scope.on(),()=>{e.scope.off(),xi(t)}},Vi=()=>{Ni&&Ni.scope.off(),xi(null)};function Bi(e){return 4&e.vnode.shapeFlag}let Fi,Gi,Hi=!1;function Yi(e,t=!1,n=!1){t&&Pi(t);const{props:r,children:o}=e.vnode,a=Bi(e);da(e,r,a,t),Ca(e,o,n||t);const i=a?zi(e,t):void 0;return t&&Pi(!1),i}function zi(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,po);const{setup:o}=n;if(o){I();const n=e.setupContext=o.length>1?Xi(e):null,a=Ui(e),i=Ct(o,e,0,[e.props,n]),s=Object(r["E"])(i);if(E(),a(),!s&&!e.sp||Cr(e)||Kn(e),s){if(i.then(Vi,Vi),t)return i.then(n=>{qi(e,n,t)}).catch(t=>{St(t,e,0)});e.asyncDep=i}else qi(e,i,t)}else $i(e,t)}function qi(e,t,n){Object(r["s"])(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(r["B"])(t)&&(e.setupState=qe(t)),$i(e,n)}function Wi(e){Fi=e,Gi=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,fo))}}const Ki=()=>!Fi;function $i(e,t,n){const o=e.type;if(!e.render){if(!t&&Fi&&!o.render){const t=o.template||No(e).template;if(t){0;const{isCustomElement:n,compilerOptions:a}=e.appContext.config,{delimiters:i,compilerOptions:s}=o,c=Object(r["h"])(Object(r["h"])({isCustomElement:n,delimiters:i},a),s);o.render=Fi(t,c)}}e.render=o.render||r["d"],Gi&&Gi(e)}{const t=Ui(e);I();try{jo(e)}finally{E(),t()}}}const Ji={get(e,t){return V(e,"get",""),e[t]}};function Xi(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Ji),slots:e.slots,emit:e.emit,expose:t}}function Qi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(qe(Ne(e.exposed)),{get(t,n){return n in t?t[n]:n in lo?lo[n](e):void 0},has(e,t){return t in e||t in lo}})):e.proxy}const Zi=/(?:^|[-_])\w/g,es=e=>e.replace(Zi,e=>e.toUpperCase()).replace(/[-_]/g,"");function ts(e,t=!0){return Object(r["s"])(e)?e.displayName||e.name:e.name||t&&e.__name}function ns(e,t,n=!1){let r=ts(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components)||e.parent&&n(e.parent.type.components)||n(e.appContext.components)}return r?es(r):n?"App":"Anonymous"}function rs(e){return Object(r["s"])(e)&&"__vccOpts"in e}const os=(e,t)=>{const n=tt(e,t,Hi);return n};function as(e,t,n){try{li(-1);const o=arguments.length;return 2===o?Object(r["B"])(t)&&!Object(r["p"])(t)?fi(t)?bi(e,null,[t]):bi(e,t):bi(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&fi(n)&&(n=[n]),bi(e,t,n))}finally{li(1)}}function is(){return void 0}function ss(e,t,n,r){const o=n[r];if(o&&cs(o,e))return o;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function cs(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let o=0;o<n.length;o++)if(Object(r["k"])(n[o],t[o]))return!1;return ci>0&&oi&&oi.push(e),!0}const ls="3.5.32",us=r["d"],ds=kt,ps=zt,fs=Kt,hs={createComponentInstance:Ai,setupComponent:Yi,renderComponentRoot:ea,setCurrentRenderingInstance:Xt,isVNode:fi,normalizeVNode:Si,getComponentPublicInstance:Qi,ensureValidVNode:io,pushWarningContext:pt,popWarningContext:ft},ms=hs,vs=null,gs=null,_s=null;
/**
* @vue/runtime-dom v3.5.32
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
let bs=void 0;const ys="undefined"!==typeof window&&window.trustedTypes;if(ys)try{bs=ys.createPolicy("vue",{createHTML:e=>e})}catch(Dl){}const Os=bs?e=>bs.createHTML(e):e=>e,Ms="http://www.w3.org/2000/svg",ks="http://www.w3.org/1998/Math/MathML",Cs="undefined"!==typeof document?document:null,ws=Cs&&Cs.createElement("template"),Ss={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o="svg"===t?Cs.createElementNS(Ms,e):"mathml"===t?Cs.createElementNS(ks,e):n?Cs.createElement(e,{is:n}):Cs.createElement(e);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>Cs.createTextNode(e),createComment:e=>Cs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Cs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,a){const i=n?n.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling)){while(1)if(t.insertBefore(o.cloneNode(!0),n),o===a||!(o=o.nextSibling))break}else{ws.innerHTML=Os("svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e);const o=ws.content;if("svg"===r||"mathml"===r){const e=o.firstChild;while(e.firstChild)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ts="transition",Is="animation",Es=Symbol("_vtc"),js={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ds=Object(r["h"])({},Rn,js),Ls=e=>(e.displayName="Transition",e.props=Ds,e),As=Ls((e,{slots:t})=>as(Vn,xs(e),t)),Ns=(e,t=[])=>{Object(r["p"])(e)?e.forEach(e=>e(...t)):e&&e(...t)},Rs=e=>!!e&&(Object(r["p"])(e)?e.some(e=>e.length>1):e.length>1);function xs(e){const t={};for(const r in e)r in js||(t[r]=e[r]);if(!1===e.css)return t;const{name:n="v",type:o,duration:a,enterFromClass:i=n+"-enter-from",enterActiveClass:s=n+"-enter-active",enterToClass:c=n+"-enter-to",appearFromClass:l=i,appearActiveClass:u=s,appearToClass:d=c,leaveFromClass:p=n+"-leave-from",leaveActiveClass:f=n+"-leave-active",leaveToClass:h=n+"-leave-to"}=e,m=Ps(a),v=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:b,onEnterCancelled:y,onLeave:O,onLeaveCancelled:M,onBeforeAppear:k=_,onAppear:C=b,onAppearCancelled:w=y}=t,S=(e,t,n,r)=>{e._enterCancelled=r,Bs(e,t?d:c),Bs(e,t?u:s),n&&n()},T=(e,t)=>{e._isLeaving=!1,Bs(e,p),Bs(e,h),Bs(e,f),t&&t()},I=e=>(t,n)=>{const r=e?C:b,a=()=>S(t,e,n);Ns(r,[t,a]),Fs(()=>{Bs(t,e?l:i),Vs(t,e?d:c),Rs(r)||Hs(t,o,v,a)})};return Object(r["h"])(t,{onBeforeEnter(e){Ns(_,[e]),Vs(e,i),Vs(e,s)},onBeforeAppear(e){Ns(k,[e]),Vs(e,l),Vs(e,u)},onEnter:I(!1),onAppear:I(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);Vs(e,p),e._enterCancelled?(Vs(e,f),Ws(e)):(Ws(e),Vs(e,f)),Fs(()=>{e._isLeaving&&(Bs(e,p),Vs(e,h),Rs(O)||Hs(e,o,g,n))}),Ns(O,[e,n])},onEnterCancelled(e){S(e,!1,void 0,!0),Ns(y,[e])},onAppearCancelled(e){S(e,!0,void 0,!0),Ns(w,[e])},onLeaveCancelled(e){T(e),Ns(M,[e])}})}function Ps(e){if(null==e)return null;if(Object(r["B"])(e))return[Us(e.enter),Us(e.leave)];{const t=Us(e);return[t,t]}}function Us(e){const t=Object(r["Z"])(e);return t}function Vs(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Es]||(e[Es]=new Set)).add(t)}function Bs(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const n=e[Es];n&&(n.delete(t),n.size||(e[Es]=void 0))}function Fs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Gs=0;function Hs(e,t,n,r){const o=e._endId=++Gs,a=()=>{o===e._endId&&r()};if(null!=n)return setTimeout(a,n);const{type:i,timeout:s,propCount:c}=Ys(e,t);if(!i)return r();const l=i+"end";let u=0;const d=()=>{e.removeEventListener(l,p),a()},p=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,p)}function Ys(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r(Ts+"Delay"),a=r(Ts+"Duration"),i=zs(o,a),s=r(Is+"Delay"),c=r(Is+"Duration"),l=zs(s,c);let u=null,d=0,p=0;t===Ts?i>0&&(u=Ts,d=i,p=a.length):t===Is?l>0&&(u=Is,d=l,p=c.length):(d=Math.max(i,l),u=d>0?i>l?Ts:Is:null,p=u?u===Ts?a.length:c.length:0);const f=u===Ts&&/\b(?:transform|all)(?:,|$)/.test(r(Ts+"Property").toString());return{type:u,timeout:d,propCount:p,hasTransform:f}}function zs(e,t){while(e.length<t.length)e=e.concat(e);return Math.max(...t.map((t,n)=>qs(t)+qs(e[n])))}function qs(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function Ws(e){const t=e?e.ownerDocument:document;return t.body.offsetHeight}function Ks(e,t,n){const r=e[Es];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const $s=Symbol("_vod"),Js=Symbol("_vsh"),Xs={name:"show",beforeMount(e,{value:t},{transition:n}){e[$s]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Qs(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!==!n&&(r?t?(r.beforeEnter(e),Qs(e,!0),r.enter(e)):r.leave(e,()=>{Qs(e,!1)}):Qs(e,t))},beforeUnmount(e,{value:t}){Qs(e,t)}};function Qs(e,t){e.style.display=t?e[$s]:"none",e[Js]=!t}function Zs(){Xs.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const ec=Symbol("");function tc(e){const t=Ri();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>rc(e,n))};const o=()=>{const r=e(t.proxy);t.ce?rc(t.ce,r):nc(t.subTree,r),n(r)};Fr(()=>{Vt(o)}),Br(()=>{fn(o,r["d"],{flush:"post"});const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),Yr(()=>e.disconnect())})}function nc(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{nc(n.activeBranch,t)})}while(e.component)e=e.component.subTree;if(1&e.shapeFlag&&e.el)rc(e.el,t);else if(e.type===Za)e.children.forEach(e=>nc(e,t));else if(e.type===ni){let{el:n,anchor:r}=e;while(n){if(rc(n,t),n===r)break;n=n.nextSibling}}}function rc(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t){const a=Object(r["S"])(t[e]);n.setProperty("--"+e,a),o+=`--${e}: ${a};`}n[ec]=o}}const oc=/(?:^|;)\s*display\s*:/;function ac(e,t,n){const o=e.style,a=Object(r["L"])(n);let i=!1;if(n&&!a){if(t)if(Object(r["L"])(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&sc(o,t,"")}else for(const e in t)null==n[e]&&sc(o,e,"");for(const e in n)"display"===e&&(i=!0),sc(o,e,n[e])}else if(a){if(t!==n){const e=o[ec];e&&(n+=";"+e),o.cssText=n,i=oc.test(n)}}else t&&e.removeAttribute("style");$s in e&&(e[$s]=i?o.display:"",e[Js]&&(o.display="none"))}const ic=/\s*!important$/;function sc(e,t,n){if(Object(r["p"])(n))n.forEach(n=>sc(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=uc(e,t);ic.test(n)?e.setProperty(Object(r["m"])(o),n.replace(ic,""),"important"):e[o]=n}}const cc=["Webkit","Moz","ms"],lc={};function uc(e,t){const n=lc[t];if(n)return n;let o=Object(r["e"])(t);if("filter"!==o&&o in e)return lc[t]=o;o=Object(r["f"])(o);for(let r=0;r<cc.length;r++){const n=cc[r]+o;if(n in e)return lc[t]=n}return t}const dc="http://www.w3.org/1999/xlink";function pc(e,t,n,o,a,i=Object(r["K"])(t)){o&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(dc,t.slice(6,t.length)):e.setAttributeNS(dc,t,n):null==n||i&&!Object(r["n"])(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Object(r["M"])(n)?String(n):n)}function fc(e,t,n,o,a){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Os(n):n));const i=e.tagName;if("value"===t&&"PROGRESS"!==i&&!i.includes("-")){const r="OPTION"===i?e.getAttribute("value")||"":e.value,o=null==n?"checkbox"===e.type?"on":"":String(n);return r===o&&"_value"in e||(e.value=o),null==n&&e.removeAttribute(t),void(e._value=n)}let s=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=Object(r["n"])(n):null==n&&"string"===o?(n="",s=!0):"number"===o&&(n=0,s=!0)}try{e[t]=n}catch(Dl){0}s&&e.removeAttribute(a||t)}function hc(e,t,n,r){e.addEventListener(t,n,r)}function mc(e,t,n,r){e.removeEventListener(t,n,r)}const vc=Symbol("_vei");function gc(e,t,n,r,o=null){const a=e[vc]||(e[vc]={}),i=a[t];if(r&&i)i.value=r;else{const[n,s]=bc(t);if(r){const i=a[t]=kc(r,o);hc(e,n,i,s)}else i&&(mc(e,n,i,s),a[t]=void 0)}}const _c=/(?:Once|Passive|Capture)$/;function bc(e){let t;if(_c.test(e)){let n;t={};while(n=e.match(_c))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):Object(r["m"])(e.slice(2));return[n,t]}let yc=0;const Oc=Promise.resolve(),Mc=()=>yc||(Oc.then(()=>yc=0),yc=Date.now());function kc(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();wt(Cc(e,n.value),t,5,[e])};return n.value=e,n.attached=Mc(),n}function Cc(e,t){if(Object(r["p"])(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}const wc=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Sc=(e,t,n,o,a,i)=>{const s="svg"===a;"class"===t?Ks(e,o,s):"style"===t?ac(e,n,o):Object(r["C"])(t)?Object(r["A"])(t)||gc(e,t,n,o,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):Tc(e,t,o,s))?(fc(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||pc(e,t,o,s,i,"value"!==t)):e._isVueCE&&(Ic(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Object(r["L"])(o)))?fc(e,Object(r["e"])(t),o,i,t):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),pc(e,t,o,s))};function Tc(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&wc(t)&&Object(r["s"])(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!wc(t)||!Object(r["L"])(n))&&t in e}function Ic(e,t){const n=e._def.props;if(!n)return!1;const o=Object(r["e"])(t);return Array.isArray(n)?n.some(e=>Object(r["e"])(e)===o):Object.keys(n).some(e=>Object(r["e"])(e)===o)}const Ec={};function jc(e,t,n){let o=qn(e,t);Object(r["D"])(o)&&(o=Object(r["h"])({},o,t));class a extends Ac{constructor(e){super(o,e,n)}}return a.def=o,a}const Dc=(e,t)=>jc(e,t,wl),Lc="undefined"!==typeof HTMLElement?HTMLElement:class{};class Ac extends Lc{constructor(e,t={},n=Cl){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Cl?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(Object(r["h"])({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let e=this;while(e=e&&(e.assignedSlot||e.parentNode||e.host))if(e instanceof Ac){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Rt(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:o}=e;let a;if(n&&!Object(r["p"])(n))for(const i in n){const e=n[i];(e===Number||e&&e.type===Number)&&(i in this._props&&(this._props[i]=Object(r["Z"])(this._props[i])),(a||(a=Object.create(null)))[Object(r["e"])(i)]=!0)}this._numberProps=a,this._resolveProps(e),this.shadowRoot&&this._applyStyles(o),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const n in t)Object(r["l"])(this,n)||Object.defineProperty(this,n,{get:()=>He(t[n])})}_resolveProps(e){const{props:t}=e,n=Object(r["p"])(t)?t:Object.keys(t||{});for(const r of Object.keys(this))"_"!==r[0]&&n.includes(r)&&this._setProp(r,this[r]);for(const o of n.map(r["e"]))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(e){this._setProp(o,e,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):Ec;const o=Object(r["e"])(e);t&&this._numberProps&&this._numberProps[o]&&(n=Object(r["Z"])(n)),this._setProp(o,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Ec?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),o&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute(Object(r["m"])(e),""):"string"===typeof t||"number"===typeof t?this.setAttribute(Object(r["m"])(e),t+""):t||this.removeAttribute(Object(r["m"])(e)),n&&n.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),Ml(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=bi(this._def,Object(r["h"])(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,Object(r["D"])(t[0])?Object(r["h"])({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),Object(r["m"])(e)!==e&&t(Object(r["m"])(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const r=this._nonce,o=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(o);let i=null;for(let s=e.length-1;s>=0;s--){const c=document.createElement("style");r&&c.setAttribute("nonce",r),c.textContent=e[s],o.insertBefore(c,i||a),i=c,0===s&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;const t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const e=this._slots={};let t;while(t=this.firstChild){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const r=e[n],o=r.getAttribute("name")||"default",a=this._slots[o],i=r.parentNode;if(a)for(const e of a){if(t&&1===e.nodeType){const n=t+"-s",r=document.createTreeWalker(e,1);let o;e.setAttribute(n,"");while(o=r.nextNode())o.setAttribute(n,"")}i.insertBefore(e,r)}else while(r.firstChild)i.insertBefore(r.firstChild,r);i.removeChild(r)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const t=new Set;for(const n of e){const e=n.querySelectorAll("slot");for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return!1!==this._def.shadowRoot}_removeChildStyle(e){0}}function Nc(e){const t=Ri(),n=t&&t.ce;return n||null}function Rc(){const e=Nc();return e&&e.shadowRoot}function xc(e="$style"){{const t=Ri();if(!t)return r["b"];const n=t.type.__cssModules;if(!n)return r["b"];const o=n[e];return o||r["b"]}}const Pc=new WeakMap,Uc=new WeakMap,Vc=Symbol("_moveCb"),Bc=Symbol("_enterCb"),Fc=e=>(delete e.props.mode,e),Gc=Fc({name:"TransitionGroup",props:Object(r["h"])({},Ds,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ri(),r=An();let o,a;return Gr(()=>{if(!o.length)return;const t=e.moveClass||(e.name||"v")+"-move";if(!Kc(o[0].el,n.vnode.el,t))return void(o=[]);o.forEach(Yc),o.forEach(zc);const r=o.filter(qc);Ws(n.vnode.el),r.forEach(e=>{const n=e.el,r=n.style;Vs(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n[Vc]=e=>{e&&e.target!==n||e&&!e.propertyName.endsWith("transform")||(n.removeEventListener("transitionend",o),n[Vc]=null,Bs(n,t))};n.addEventListener("transitionend",o)}),o=[]}),()=>{const i=Ae(e),s=xs(i);let c=i.tag||Za;if(o=[],a)for(let e=0;e<a.length;e++){const t=a[e];t.el&&t.el instanceof Element&&(o.push(t),Yn(t,Fn(t,s,r,n)),Pc.set(t,Wc(t.el)))}a=t.default?zn(t.default()):[];for(let e=0;e<a.length;e++){const t=a[e];null!=t.key&&Yn(t,Fn(t,s,r,n))}return bi(c,null,a)}}}),Hc=Gc;function Yc(e){const t=e.el;t[Vc]&&t[Vc](),t[Bc]&&t[Bc]()}function zc(e){Uc.set(e,Wc(e.el))}function qc(e){const t=Pc.get(e),n=Uc.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const t=e.el,n=t.style,a=t.getBoundingClientRect();let i=1,s=1;return t.offsetWidth&&(i=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),Number.isFinite(i)&&0!==i||(i=1),Number.isFinite(s)&&0!==s||(s=1),Math.abs(i-1)<.01&&(i=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/i}px,${o/s}px)`,n.transitionDuration="0s",e}}function Wc(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Kc(e,t,n){const r=e.cloneNode(),o=e[Es];o&&o.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display="none";const a=1===t.nodeType?t:t.parentNode;a.appendChild(r);const{hasTransform:i}=Ys(r);return a.removeChild(r),i}const $c=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Object(r["p"])(t)?e=>Object(r["o"])(t,e):t};function Jc(e){e.target.composing=!0}function Xc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Qc=Symbol("_assign");function Zc(e,t,n){return t&&(e=e.trim()),n&&(e=Object(r["P"])(e)),e}const el={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Qc]=$c(o);const a=r||o.props&&"number"===o.props.type;hc(e,t?"change":"input",t=>{t.target.composing||e[Qc](Zc(e.value,n,a))}),(n||a)&&hc(e,"change",()=>{e.value=Zc(e.value,n,a)}),t||(hc(e,"compositionstart",Jc),hc(e,"compositionend",Xc),hc(e,"change",Xc))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:a,number:i}},s){if(e[Qc]=$c(s),e.composing)return;const c=!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:Object(r["P"])(e.value),l=null==t?"":t;if(c===l)return;const u=e.getRootNode();if((u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(a&&e.value.trim()===l)return}e.value=l}},tl={deep:!0,created(e,t,n){e[Qc]=$c(n),hc(e,"change",()=>{const t=e._modelValue,n=il(e),o=e.checked,a=e[Qc];if(Object(r["p"])(t)){const e=Object(r["O"])(t,n),i=-1!==e;if(o&&!i)a(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),a(n)}}else if(Object(r["J"])(t)){const e=new Set(t);o?e.add(n):e.delete(n),a(e)}else a(sl(e,o))})},mounted:nl,beforeUpdate(e,t,n){e[Qc]=$c(n),nl(e,t,n)}};function nl(e,{value:t,oldValue:n},o){let a;if(e._modelValue=t,Object(r["p"])(t))a=Object(r["O"])(t,o.props.value)>-1;else if(Object(r["J"])(t))a=t.has(o.props.value);else{if(t===n)return;a=Object(r["N"])(t,sl(e,!0))}e.checked!==a&&(e.checked=a)}const rl={created(e,{value:t},n){e.checked=Object(r["N"])(t,n.props.value),e[Qc]=$c(n),hc(e,"change",()=>{e[Qc](il(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e[Qc]=$c(o),t!==n&&(e.checked=Object(r["N"])(t,o.props.value))}},ol={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const a=Object(r["J"])(t);hc(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?Object(r["P"])(il(e)):il(e));e[Qc](e.multiple?a?new Set(t):t:t[0]),e._assigning=!0,Rt(()=>{e._assigning=!1})}),e[Qc]=$c(o)},mounted(e,{value:t}){al(e,t)},beforeUpdate(e,t,n){e[Qc]=$c(n)},updated(e,{value:t}){e._assigning||al(e,t)}};function al(e,t){const n=e.multiple,o=Object(r["p"])(t);if(!n||o||Object(r["J"])(t)){for(let a=0,i=e.options.length;a<i;a++){const i=e.options[a],s=il(i);if(n)if(o){const e=typeof s;i.selected="string"===e||"number"===e?t.some(e=>String(e)===String(s)):Object(r["O"])(t,s)>-1}else i.selected=t.has(s);else if(Object(r["N"])(il(i),t))return void(e.selectedIndex!==a&&(e.selectedIndex=a))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function il(e){return"_value"in e?e._value:e.value}function sl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const cl={created(e,t,n){ul(e,t,n,null,"created")},mounted(e,t,n){ul(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ul(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ul(e,t,n,r,"updated")}};function ll(e,t){switch(e){case"SELECT":return ol;case"TEXTAREA":return el;default:switch(t){case"checkbox":return tl;case"radio":return rl;default:return el}}}function ul(e,t,n,r,o){const a=ll(e.tagName,n.props&&n.props.type),i=a[o];i&&i(e,t,n,r)}function dl(){el.getSSRProps=({value:e})=>({value:e}),rl.getSSRProps=({value:e},t)=>{if(t.props&&Object(r["N"])(t.props.value,e))return{checked:!0}},tl.getSSRProps=({value:e},t)=>{if(Object(r["p"])(e)){if(t.props&&Object(r["O"])(e,t.props.value)>-1)return{checked:!0}}else if(Object(r["J"])(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},cl.getSSRProps=(e,t)=>{if("string"!==typeof t.type)return;const n=ll(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0}}const pl=["ctrl","shift","alt","meta"],fl={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>pl.some(n=>e[n+"Key"]&&!t.includes(n))},hl=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=fl[t[e]];if(r&&r(n,t))return}return e(n,...r)})},ml={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},vl=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=Object(r["m"])(n.key);return t.some(e=>e===o||ml[e]===o)?e(n):void 0})},gl=Object(r["h"])({patchProp:Sc},Ss);let _l,bl=!1;function yl(){return _l||(_l=Ia(gl))}function Ol(){return _l=bl?_l:Ea(gl),bl=!0,_l}const Ml=(...e)=>{yl().render(...e)},kl=(...e)=>{Ol().hydrate(...e)},Cl=(...e)=>{const t=yl().createApp(...e);const{mount:n}=t;return t.mount=e=>{const o=Tl(e);if(!o)return;const a=t._component;Object(r["s"])(a)||a.render||a.template||(a.template=o.innerHTML),1===o.nodeType&&(o.textContent="");const i=n(o,!1,Sl(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},wl=(...e)=>{const t=Ol().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=Tl(e);if(t)return n(t,!0,Sl(t))},t};function Sl(e){return e instanceof SVGElement?"svg":"function"===typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Tl(e){if(Object(r["L"])(e)){const t=document.querySelector(e);return t}return e}let Il=!1;const El=()=>{Il||(Il=!0,dl(),Zs())};
/**
* vue v3.5.32
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const jl=()=>{0}},"7a37":function(e,t,n){"use strict";var r=n("3eba"),o=n("dfdb"),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},"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,o,a,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.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(){}}}()},"7b0b":function(e,t,n){"use strict";var r=n("1d80"),o=Object;e.exports=function(e){return o(r(e))}},"7be6":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function o(e,t,n,o){var a=e+" ";switch(n){case"s":return t||o?"pár sekúnd":"pár sekundami";case"ss":return t||o?a+(r(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?a+(r(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?a+(r(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?a+(r(e)?"dni":"dní"):a+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?a+(r(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?a+(r(e)?"roky":"rokov"):a+"rokmi"}}var a=e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},"7c31":function(e,t,n){"use strict";var r=n("6ffb");n.d(t,"a",(function(){return r["a"]})),n.d(t,"b",(function(){return r["b"]})),n.d(t,"c",(function(){return r["c"]})),n.d(t,"d",(function(){return r["d"]})),n.d(t,"e",(function(){return r["e"]})),n.d(t,"f",(function(){return r["f"]})),n.d(t,"g",(function(){return r["h"]}))},"7c42":function(e,t,n){"use strict";e.exports=function(e,t){return 1===t?function(t,n){return t[e](n)}:function(t,n,r){return t[e](n,r)}}},"7c73":function(e,t,n){"use strict";var r,o=n("825a"),a=n("37e8"),i=n("7839"),s=n("d012"),c=n("1be4"),l=n("cc12"),u=n("f7723"),d=">",p="<",f="prototype",h="script",m=u("IE_PROTO"),v=function(){},g=function(e){return p+h+d+e+p+"/"+h+d},_=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=l("iframe"),n="java"+h+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}y="undefined"!=typeof document?document.domain&&r?_(r):b():_(r);var e=i.length;while(e--)delete y[f][i[e]];return y()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[f]=o(e),n=new v,v[f]=null,n[m]=e):n=y(),void 0===t?n:a.f(n,t)}},"7c74":function(e,t,n){"use strict";var r=n("b337");e.exports=r},"7c78":function(e,t,n){e.exports=n("b83c")},"7ca7":function(e,t,n){"use strict";var r=n("d52b");e.exports=r},"7cf3":function(e,t,n){"use strict";n.d(t,"a",(function(){return Y}));n("14d9");var r=n("9a73"),o=n.n(r),a=n("2b0b"),i=n.n(a),s=n("49c6"),c=n("6a7a"),l=n("7d20"),u=n("629c"),d=n("72a5"),p=n("df10"),f=n.n(p),h=n("65b8"),m=n.n(h),v=n("3393"),g=n.n(v),_=n("9885"),b=n("7a23");const y=Object(b["ref"])(),O=Object(b["ref"])(0),M=Object(b["ref"])(0);let k=0;const C=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});while(n.nextNode())t.push(n.currentNode);return t},w=(e,t)=>{for(const n of e)if(!S(n,t))return n},S=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;while(e){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},T=e=>{const t=C(e);return[w(t,e),w(f()(t).call(t),e)]},I=e=>e instanceof HTMLInputElement&&"select"in e,E=(e,t)=>{if(e){const n=document.activeElement;Object(_["a"])(e,{preventScroll:!0}),M.value=window.performance.now(),e!==n&&I(e)&&t&&e.select()}};function j(e,t){const n=[...e],r=m()(e).call(e,t);return-1!==r&&g()(n).call(n,r,1),n}const D=()=>{let e=[];const t=t=>{const n=e[0];n&&t!==n&&n.pause(),e=j(e,t),e.unshift(t)},n=t=>{var n,r;e=j(e,t),null===(n=e[0])||void 0===n||null===(r=n.resume)||void 0===r||r.call(n)};return{push:t,remove:n}},L=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(E(r,t),document.activeElement!==n)return},A=D(),N=()=>O.value>M.value,R=()=>{y.value="pointer",O.value=window.performance.now()},x=()=>{y.value="keyboard",O.value=window.performance.now()},P=()=>(Object(b["onMounted"])(()=>{0===k&&(document.addEventListener("mousedown",R),document.addEventListener("touchstart",R),document.addEventListener("keydown",x)),k++}),Object(b["onBeforeUnmount"])(()=>{k--,k<=0&&(document.removeEventListener("mousedown",R),document.removeEventListener("touchstart",R),document.removeEventListener("keydown",x))}),{focusReason:y,lastUserFocusTimestamp:O,lastAutomatedFocusTimestamp:M}),U=e=>new CustomEvent(d["a"],{...d["b"],detail:e});var V=n("d095"),B=Object(b["defineComponent"])({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[d["h"],d["g"],"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=Object(b["ref"])();let r,a;const{focusReason:p}=P();Object(u["a"])(n=>{e.trapped&&!f.paused&&t("release-requested",n)});const f={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},h=n=>{if(!e.loop&&!e.trapped)return;if(f.paused)return;const{altKey:r,ctrlKey:a,metaKey:i,currentTarget:l,shiftKey:u}=n,{loop:d}=e,h=Object(c["b"])(n)===s["a"].tab&&!r&&!a&&!i,m=document.activeElement;if(h&&m){var v;const e=l,[r,a]=T(e);if(r&&a)if(u||m!==a){if(u&&o()(v=[r,e]).call(v,m)){const e=U({focusReason:p.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&E(a,!0))}}else{const e=U({focusReason:p.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&E(r,!0))}else if(m===e){const e=U({focusReason:p.value});t("focusout-prevented",e),e.defaultPrevented||n.preventDefault()}}};Object(b["provide"])(d["f"],{focusTrapRef:n,onKeydown:h}),Object(b["watch"])(()=>e.focusTrapEl,e=>{e&&(n.value=e)},{immediate:!0}),Object(b["watch"])([n],([e],[t])=>{e&&(e.addEventListener("keydown",h),e.addEventListener("focusin",g),e.addEventListener("focusout",_)),t&&(t.removeEventListener("keydown",h),t.removeEventListener("focusin",g),t.removeEventListener("focusout",_))});const m=e=>{t(d["h"],e)},v=e=>t(d["g"],e),g=o=>{const i=Object(b["unref"])(n);if(!i)return;const s=o.target,c=o.relatedTarget,l=s&&i.contains(s);e.trapped||c&&i.contains(c)||(r=c),l&&t("focusin",o),f.paused||e.trapped&&(l?a=s:E(a,!0))},_=r=>{const o=Object(b["unref"])(n);if(!f.paused&&o)if(e.trapped){const n=r.relatedTarget;Object(V["isNil"])(n)||o.contains(n)||i()(()=>{if(!f.paused&&e.trapped){const e=U({focusReason:p.value});t("focusout-prevented",e),e.defaultPrevented||E(a,!0)}},0)}else{const e=r.target;e&&o.contains(e)||t("focusout",r)}};async function y(){await Object(b["nextTick"])();const t=Object(b["unref"])(n);if(t){A.push(f);const n=t.contains(document.activeElement)?r:document.activeElement;if(r=n,!t.contains(n)){const r=new Event(d["d"],d["e"]);t.addEventListener(d["d"],m),t.dispatchEvent(r),r.defaultPrevented||Object(b["nextTick"])(()=>{let r=e.focusStartEl;Object(l["isString"])(r)||(E(r),document.activeElement!==r&&(r="first")),"first"===r&&L(C(t),!0),document.activeElement!==n&&"container"!==r||E(t)})}}}function O(){const e=Object(b["unref"])(n);if(e){e.removeEventListener(d["d"],m);const t=new CustomEvent(d["c"],{...d["e"],detail:{focusReason:p.value}});e.addEventListener(d["c"],v),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=p.value&&N()&&!e.contains(document.activeElement)||E(null!==r&&void 0!==r?r:document.body),e.removeEventListener(d["c"],v),A.remove(f),r=null,a=null}}return Object(b["onMounted"])(()=>{e.trapped&&y(),Object(b["watch"])(()=>e.trapped,e=>{e?y():O()})}),Object(b["onBeforeUnmount"])(()=>{e.trapped&&O(),n.value&&(n.value.removeEventListener("keydown",h),n.value.removeEventListener("focusin",g),n.value.removeEventListener("focusout",_),n.value=void 0),r=null,a=null}),{onKeydown:h}}}),F=n("bd01");function G(e,t,n,r,o,a){return Object(b["renderSlot"])(e.$slots,"default",{handleKeydown:e.onKeydown})}var H=Object(F["a"])(B,[["render",G]]),Y=H},"7d20":function(e,t,n){"use strict";e.exports=n("eafd")},"7de7":function(e,t,n){"use strict";var r=n("0363"),o=r("iterator"),a=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){a=!0}};s[o]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}e.exports=function(e,t){try{if(!t&&!a)return!1}catch(c){return!1}var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(c){}return n}},"7ef9":function(e,t,n){"use strict";var r=n("6f8d"),o=n("dfdb"),a=n("ad27");e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=a.f(e),i=n.resolve;return i(t),n.promise}},"7f33":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}});return t}))},"7f7b":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7a23");const o=e=>{const t=Object(r["getCurrentInstance"])();return Object(r["computed"])(()=>{var n;return null===t||void 0===t||null===(n=t.proxy)||void 0===n||null===(n=n.$props)||void 0===n?void 0:n[e]})}},"800f":function(e,t,n){e.exports=n("079c")},8012:function(e,t,n){"use strict";var r=n("36c5");e.exports=r},"805e":function(e,t,n){"use strict";n("0c1f");var r=n("c18e");e.exports=r("String","padEnd")},8155:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return o+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund",o;case"m":return t?"ena minuta":"eno minuto";case"mm":return o+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami",o;case"h":return t?"ena ura":"eno uro";case"hh":return o+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami",o;case"d":return t||r?"en dan":"enim dnem";case"dd":return o+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi",o;case"M":return t||r?"en mesec":"enim mesecem";case"MM":return o+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci",o;case"y":return t||r?"eno leto":"enim letom";case"yy":return o+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti",o}}var n=e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},8160:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p}));var r=n("b181"),o=n("7d20"),a=n("0898"),i=n("31e7"),s=n("f5f6"),c=n("27b6"),l=n("8b1e"),u=n("9ad7"),d=n("7a23");const p=Object(a["b"])({id:{type:String,default:void 0},size:c["c"],disabled:{type:Boolean,default:void 0},modelValue:{type:Object(a["c"])([String,Number,Object]),default:""},modelModifiers:{type:Object(a["c"])(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:Object(a["c"])(String),default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Object(a["c"])([Boolean,Object]),default:!1},autocomplete:{type:Object(a["c"])(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:i["e"],default:u["CircleClose"]},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:i["e"]},prefixIcon:{type:i["e"]},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Object(a["c"])([Object,Array,String]),default:()=>Object(s["a"])({})},autofocus:Boolean,rows:{type:Number,default:2},...Object(l["a"])(["ariaLabel"]),inputmode:{type:Object(a["c"])(String),default:void 0},name:String}),f={[r["c"]]:e=>Object(o["isString"])(e),input:e=>Object(o["isString"])(e),change:(e,t)=>Object(o["isString"])(e)&&(t instanceof Event||void 0===t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:e=>void 0===e||e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent};Object(d["markRaw"])(u["CircleClose"])},8176:function(e,t){},"81e9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,t,n,r){var a="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":a=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":a=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":a=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":a=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":a=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":a=r?"vuoden":"vuotta";break}return a=o(e,r)+" "+a,a}function o(e,r){return e<10?r?n[e]:t[e]:e}var a=e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}))},"81f0":function(e,t,n){"use strict";e.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},8230:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}});return r}))},"825a":function(e,t,n){"use strict";var r=n("861d"),o=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(o(e)+" is not an object")}},"82ec":function(e,t,n){e.exports=n("13b6")},8301:function(e,t,n){"use strict";var r=n("d673");e.exports=r},"833a":function(e,t,n){"use strict";var r=n("f2e1"),o=n("17bc"),a=n("c3e0");e.exports=r?function(e){return r(e)}:o?function(e){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new TypeError("getProto: not an object");return o(e)}:a?function(e){return a(e)}:null},8376:function(e,t,n){"use strict";var r=n("a5eb"),o=n("8c68"),a=n("06fa"),i=n("a205"),s=n("4fff"),c=!o||a((function(){i.f(1)}));r({target:"Object",stat:!0,forced:c},{getOwnPropertySymbols:function(e){var t=i.f;return t?t(s(e)):[]}})},8383:function(e,t,n){"use strict";var r=n("793c");e.exports=r},"83ab":function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var r=n("d9255"),o=n("e683");e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},"83ec":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return v}));var r=n("fa81"),o=n.n(r),a=n("800f"),i=n.n(a),s=n("7d20"),c=n("d095");const l=e=>void 0===e,u=e=>"boolean"===typeof e,d=e=>"number"===typeof e,p=e=>!e&&0!==e||Object(s["isArray"])(e)&&0===e.length||Object(s["isObject"])(e)&&!o()(e).length,f=e=>"undefined"!==typeof Element&&e instanceof Element,h=e=>Object(c["isNil"])(e),m=e=>!!Object(s["isString"])(e)&&!i()(Number(e)),v=e=>e===window},"83ee":function(e,t,n){"use strict";var r=n("b302").PROPER,o=n("06fa"),a=n("81f0"),i="​…᠎";e.exports=function(e){return o((function(){return!!a[e]()||i[e]()!==i||r&&a[e].name!==e}))}},8407:function(e,t,n){"use strict";var r=n("23e7"),o=n("cfe9"),a=n("7192"),i=n("6b37"),s=o.Uint8Array,c=!s||!s.prototype.setFromBase64||!function(){var e=new s([255,255,255,255,255]);try{return void e.setFromBase64("",null)}catch(t){}try{return void e.setFromBase64("a")}catch(t){}try{e.setFromBase64("MjYyZg===")}catch(t){return 50===e[0]&&54===e[1]&&50===e[2]&&255===e[3]&&255===e[4]}}();s&&r({target:"Uint8Array",proto:!0,forced:c},{setFromBase64:function(e){i(this);var t=a(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})},8418:function(e,t,n){"use strict";var r=n("83ab"),o=n("9bf2"),a=n("5c6c");e.exports=function(e,t,n){r?o.f(e,t,a(0,n)):e[t]=n}},"844d":function(e,t,n){e.exports=n("1e52")},"845a":function(e,t,n){"use strict";var r=n("a5eb"),o=n("ce18"),a=n("4e19"),i=n("4fff"),s=n("c74f"),c=n("741b"),l=n("8c12"),u=n("06fa"),d=n("ade5"),p=n("9f61"),f=n("fb79"),h=n("4fa7"),m=n("f772"),v=n("92e7"),g=[],_=o(g.sort),b=o(g.push),y=u((function(){g.sort(void 0)})),O=u((function(){g.sort(null)})),M=p("sort"),k=!u((function(){if(m)return m<70;if(!(f&&f>3)){if(h)return!0;if(v)return v<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)g.push({k:t+r,v:n})}for(g.sort((function(e,t){return t.v-e.v})),r=0;r<g.length;r++)t=g[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}})),C=y||!O||!M||!k,w=function(e){return function(t,n){if(void 0===n)return-1;if(void 0===t)return 1;if(void 0!==e)return+e(t,n)||0;var r=l(t),o=l(n);return r===o?0:r>o?1:-1}};r({target:"Array",proto:!0,forced:C},{sort:function(e){void 0!==e&&a(e);var t=i(this);if(k)return void 0===e?_(t):_(t,e);var n,r,o=[],l=s(t);for(r=0;r<l;r++)r in t&&b(o,t[r]);d(o,w(e)),n=s(o),r=0;while(r<n)t[r]=o[r++];while(r<l)c(t,r++);return t}})},"848b":function(e,t,n){"use strict";var r=n("5cce").version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};function i(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var r=Object.keys(e),o=r.length;while(o-- >0){var a=r[o],i=t[a];if(i){var s=e[a],c=void 0===s||i(s,a,e);if(!0!==c)throw new TypeError("option "+a+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+a)}}o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,i){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},e.exports={assertOptions:i,validators:o}},"84a1":function(e,t,n){"use strict";var r=n("a5eb"),o=n("d655"),a=n("1471"),i=!a("isSupersetOf",(function(e){return!e}));r({target:"Set",proto:!0,real:!0,forced:i},{isSupersetOf:o})},"84aa":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}});return t}))},"84d2":function(e,t,n){"use strict";var r=n("a5eb"),o=n("7106"),a=n("4e19"),i=n("ad27"),s=n("9b8d"),c=n("5b57"),l=n("f135");r({target:"Promise",stat:!0,forced:l},{allSettled:function(e){var t=this,n=i.f(t),r=n.resolve,l=n.reject,u=s((function(){var n=a(t.resolve),i=[],s=0,l=1;c(e,(function(e){var a=s++,c=!1;l++,o(n,t,e).then((function(e){c||(c=!0,i[a]={status:"fulfilled",value:e},--l||r(i))}),(function(e){c||(c=!0,i[a]={status:"rejected",reason:e},--l||r(i))}))})),--l||r(i)}));return u.error&&l(u.value),n.promise}})},8550:function(e,t,n){"use strict";var r=n("a0b9"),o=n("a421"),a=n("c7d2"),i=n("c74f"),s=n("9f61"),c=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),p=u||!d;e.exports=p?function(e){if(u)return r(l,this,arguments)||0;var t=o(this),n=i(t);if(0===n)return-1;var s=n-1;for(arguments.length>1&&(s=c(s,a(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:l},8558:function(e,t,n){"use strict";var r=n("cfe9"),o=n("b5db"),a=n("c6b6"),i=function(e){return o.slice(0,e.length)===e};e.exports=function(){return i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===a(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}()},8599:function(e,t,n){e.exports=n("8301")},"85ed":function(e,t,n){"use strict";var r=n("0cae"),o=n("766b");r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"860d":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("52da"),o=n.n(r),a=n("e6da"),i=n.n(a),s=n("a4fc"),c=n.n(s),l=n("65b8"),u=n.n(l);function d(e){let t;function n(){if(void 0==e.value)return;const{selectionStart:n,selectionEnd:r,value:a}=e.value;null!=n&&null!=r&&(t={selectionStart:n,selectionEnd:r,value:a,beforeTxt:o()(a).call(a,0,Math.max(0,n)),afterTxt:o()(a).call(a,Math.max(0,r))})}function r(){if(void 0==e.value||void 0==t)return;const{value:n}=e.value,{beforeTxt:r,afterTxt:o,selectionStart:a}=t;if(void 0==r||void 0==o||void 0==a)return;let s=n.length;if(i()(n).call(n,o))s=n.length-o.length;else if(c()(n).call(n,r))s=r.length;else{const e=r[a-1],t=u()(n).call(n,e,a-1);-1!==t&&(s=t+1)}e.value.setSelectionRange(s,s)}return[n,r]}},"861d":function(e,t,n){"use strict";var r=n("1626");e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},8689:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:""},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","":"0"},r=e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}});return r}))},"86d6":function(e,t,n){"use strict";var r=n("4221");e.exports=r},8770:function(e,t,n){e.exports=n("b6f1")},8840:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},8861:function(e,t,n){"use strict";var r=n("a5eb"),o=n("3eba"),a=n("d175"),i=a(o.setTimeout,!0);r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},8925:function(e,t,n){"use strict";var r=n("e330"),o=n("1626"),a=n("c6cd"),i=r(Function.toString);o(a.inspectSource)||(a.inspectSource=function(e){return i(e)}),e.exports=a.inspectSource},"8961a":function(e,t,n){"use strict";var r=n("437b"),o=n("69f2"),a=String.prototype;e.exports=function(e){var t=e.endsWith;return"string"==typeof e||e===a||r(a,e)&&t===a.endsWith?o:t}},"897b":function(e,t,n){e.exports=n("9162")},"898b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});return a}))},"89d4":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7d20");const o=e=>{if(!e)return{onClick:r["NOOP"],onMousedown:r["NOOP"],onMouseup:r["NOOP"]};let t=!1,n=!1;const o=r=>{t&&n&&e(r),t=n=!1},a=e=>{t=e.target===e.currentTarget},i=e=>{n=e.target===e.currentTarget};return{onClick:o,onMousedown:a,onMouseup:i}}},"8a3b":function(e,t,n){"use strict";var r=n("7106"),o=n("6f8d"),a=n("f8b6");e.exports=function(e,t,n){var i,s;o(e);try{if(i=a(e,"return"),!i){if("throw"===t)throw n;return n}i=r(i,e)}catch(c){s=!0,i=c}if("throw"===t)throw n;if(s)throw i;return o(i),n}},"8a96":function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){if("string"==typeof e)return e;throw new r("Argument is not a string")}},"8aa9":function(e,t,n){"use strict";for(var r=n("d659"),o=n("9883"),a=n("ce18"),i=n("c978"),s=n("0363"),c=o("Symbol"),l=c.isWellKnownSymbol,u=o("Object","getOwnPropertyNames"),d=a(c.prototype.valueOf),p=r("wks"),f=0,h=u(c),m=h.length;f<m;f++)try{var v=h[f];i(c[v])&&s(v)}catch(g){}e.exports=function(e){if(l&&l(e))return!0;try{for(var t=d(e),n=0,r=u(p),o=r.length;n<o;n++)if(p[r[n]]==t)return!0}catch(g){}return!1}},"8afb":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n("d9e2");var r=n("7d20"),o=class extends Error{constructor(e){super(e),this.name="ElementPlusError"}};function a(e,t){throw new o(`[${e}] ${t}`)}function i(e,t){{const n=Object(r["isString"])(e)?new o(`[${e}] ${t}`):e;console.warn(n)}}},"8afd":function(e,t,n){"use strict";n.r(t),n.d(t,"set",(function(){return c})),n.d(t,"del",(function(){return l})),n.d(t,"Vue2",(function(){return i})),n.d(t,"isVue2",(function(){return o})),n.d(t,"isVue3",(function(){return a})),n.d(t,"install",(function(){return s}));var r=n("7a23");n.d(t,"Vue",(function(){return r})),n.d(t,"EffectScope",(function(){return r["EffectScope"]})),n.d(t,"ReactiveEffect",(function(){return r["ReactiveEffect"]})),n.d(t,"TrackOpTypes",(function(){return r["TrackOpTypes"]})),n.d(t,"TriggerOpTypes",(function(){return r["TriggerOpTypes"]})),n.d(t,"customRef",(function(){return r["customRef"]})),n.d(t,"effect",(function(){return r["effect"]})),n.d(t,"effectScope",(function(){return r["effectScope"]})),n.d(t,"getCurrentScope",(function(){return r["getCurrentScope"]})),n.d(t,"getCurrentWatcher",(function(){return r["getCurrentWatcher"]})),n.d(t,"isProxy",(function(){return r["isProxy"]})),n.d(t,"isReactive",(function(){return r["isReactive"]})),n.d(t,"isReadonly",(function(){return r["isReadonly"]})),n.d(t,"isRef",(function(){return r["isRef"]})),n.d(t,"isShallow",(function(){return r["isShallow"]})),n.d(t,"markRaw",(function(){return r["markRaw"]})),n.d(t,"onScopeDispose",(function(){return r["onScopeDispose"]})),n.d(t,"onWatcherCleanup",(function(){return r["onWatcherCleanup"]})),n.d(t,"proxyRefs",(function(){return r["proxyRefs"]})),n.d(t,"reactive",(function(){return r["reactive"]})),n.d(t,"readonly",(function(){return r["readonly"]})),n.d(t,"ref",(function(){return r["ref"]})),n.d(t,"shallowReactive",(function(){return r["shallowReactive"]})),n.d(t,"shallowReadonly",(function(){return r["shallowReadonly"]})),n.d(t,"shallowRef",(function(){return r["shallowRef"]})),n.d(t,"stop",(function(){return r["stop"]})),n.d(t,"toRaw",(function(){return r["toRaw"]})),n.d(t,"toRef",(function(){return r["toRef"]})),n.d(t,"toRefs",(function(){return r["toRefs"]})),n.d(t,"toValue",(function(){return r["toValue"]})),n.d(t,"triggerRef",(function(){return r["triggerRef"]})),n.d(t,"unref",(function(){return r["unref"]})),n.d(t,"camelize",(function(){return r["camelize"]})),n.d(t,"capitalize",(function(){return r["capitalize"]})),n.d(t,"normalizeClass",(function(){return r["normalizeClass"]})),n.d(t,"normalizeProps",(function(){return r["normalizeProps"]})),n.d(t,"normalizeStyle",(function(){return r["normalizeStyle"]})),n.d(t,"toDisplayString",(function(){return r["toDisplayString"]})),n.d(t,"toHandlerKey",(function(){return r["toHandlerKey"]})),n.d(t,"BaseTransition",(function(){return r["BaseTransition"]})),n.d(t,"BaseTransitionPropsValidators",(function(){return r["BaseTransitionPropsValidators"]})),n.d(t,"Comment",(function(){return r["Comment"]})),n.d(t,"DeprecationTypes",(function(){return r["DeprecationTypes"]})),n.d(t,"ErrorCodes",(function(){return r["ErrorCodes"]})),n.d(t,"ErrorTypeStrings",(function(){return r["ErrorTypeStrings"]})),n.d(t,"Fragment",(function(){return r["Fragment"]})),n.d(t,"KeepAlive",(function(){return r["KeepAlive"]})),n.d(t,"Static",(function(){return r["Static"]})),n.d(t,"Suspense",(function(){return r["Suspense"]})),n.d(t,"Teleport",(function(){return r["Teleport"]})),n.d(t,"Text",(function(){return r["Text"]})),n.d(t,"assertNumber",(function(){return r["assertNumber"]})),n.d(t,"callWithAsyncErrorHandling",(function(){return r["callWithAsyncErrorHandling"]})),n.d(t,"callWithErrorHandling",(function(){return r["callWithErrorHandling"]})),n.d(t,"cloneVNode",(function(){return r["cloneVNode"]})),n.d(t,"compatUtils",(function(){return r["compatUtils"]})),n.d(t,"computed",(function(){return r["computed"]})),n.d(t,"createBlock",(function(){return r["createBlock"]})),n.d(t,"createCommentVNode",(function(){return r["createCommentVNode"]})),n.d(t,"createElementBlock",(function(){return r["createElementBlock"]})),n.d(t,"createElementVNode",(function(){return r["createElementVNode"]})),n.d(t,"createHydrationRenderer",(function(){return r["createHydrationRenderer"]})),n.d(t,"createPropsRestProxy",(function(){return r["createPropsRestProxy"]})),n.d(t,"createRenderer",(function(){return r["createRenderer"]})),n.d(t,"createSlots",(function(){return r["createSlots"]})),n.d(t,"createStaticVNode",(function(){return r["createStaticVNode"]})),n.d(t,"createTextVNode",(function(){return r["createTextVNode"]})),n.d(t,"createVNode",(function(){return r["createVNode"]})),n.d(t,"defineAsyncComponent",(function(){return r["defineAsyncComponent"]})),n.d(t,"defineComponent",(function(){return r["defineComponent"]})),n.d(t,"defineEmits",(function(){return r["defineEmits"]})),n.d(t,"defineExpose",(function(){return r["defineExpose"]})),n.d(t,"defineModel",(function(){return r["defineModel"]})),n.d(t,"defineOptions",(function(){return r["defineOptions"]})),n.d(t,"defineProps",(function(){return r["defineProps"]})),n.d(t,"defineSlots",(function(){return r["defineSlots"]})),n.d(t,"devtools",(function(){return r["devtools"]})),n.d(t,"getCurrentInstance",(function(){return r["getCurrentInstance"]})),n.d(t,"getTransitionRawChildren",(function(){return r["getTransitionRawChildren"]})),n.d(t,"guardReactiveProps",(function(){return r["guardReactiveProps"]})),n.d(t,"h",(function(){return r["h"]})),n.d(t,"handleError",(function(){return r["handleError"]})),n.d(t,"hasInjectionContext",(function(){return r["hasInjectionContext"]})),n.d(t,"hydrateOnIdle",(function(){return r["hydrateOnIdle"]})),n.d(t,"hydrateOnInteraction",(function(){return r["hydrateOnInteraction"]})),n.d(t,"hydrateOnMediaQuery",(function(){return r["hydrateOnMediaQuery"]})),n.d(t,"hydrateOnVisible",(function(){return r["hydrateOnVisible"]})),n.d(t,"initCustomFormatter",(function(){return r["initCustomFormatter"]})),n.d(t,"inject",(function(){return r["inject"]})),n.d(t,"isMemoSame",(function(){return r["isMemoSame"]})),n.d(t,"isRuntimeOnly",(function(){return r["isRuntimeOnly"]})),n.d(t,"isVNode",(function(){return r["isVNode"]})),n.d(t,"mergeDefaults",(function(){return r["mergeDefaults"]})),n.d(t,"mergeModels",(function(){return r["mergeModels"]})),n.d(t,"mergeProps",(function(){return r["mergeProps"]})),n.d(t,"nextTick",(function(){return r["nextTick"]})),n.d(t,"onActivated",(function(){return r["onActivated"]})),n.d(t,"onBeforeMount",(function(){return r["onBeforeMount"]})),n.d(t,"onBeforeUnmount",(function(){return r["onBeforeUnmount"]})),n.d(t,"onBeforeUpdate",(function(){return r["onBeforeUpdate"]})),n.d(t,"onDeactivated",(function(){return r["onDeactivated"]})),n.d(t,"onErrorCaptured",(function(){return r["onErrorCaptured"]})),n.d(t,"onMounted",(function(){return r["onMounted"]})),n.d(t,"onRenderTracked",(function(){return r["onRenderTracked"]})),n.d(t,"onRenderTriggered",(function(){return r["onRenderTriggered"]})),n.d(t,"onServerPrefetch",(function(){return r["onServerPrefetch"]})),n.d(t,"onUnmounted",(function(){return r["onUnmounted"]})),n.d(t,"onUpdated",(function(){return r["onUpdated"]})),n.d(t,"openBlock",(function(){return r["openBlock"]})),n.d(t,"popScopeId",(function(){return r["popScopeId"]})),n.d(t,"provide",(function(){return r["provide"]})),n.d(t,"pushScopeId",(function(){return r["pushScopeId"]})),n.d(t,"queuePostFlushCb",(function(){return r["queuePostFlushCb"]})),n.d(t,"registerRuntimeCompiler",(function(){return r["registerRuntimeCompiler"]})),n.d(t,"renderList",(function(){return r["renderList"]})),n.d(t,"renderSlot",(function(){return r["renderSlot"]})),n.d(t,"resolveComponent",(function(){return r["resolveComponent"]})),n.d(t,"resolveDirective",(function(){return r["resolveDirective"]})),n.d(t,"resolveDynamicComponent",(function(){return r["resolveDynamicComponent"]})),n.d(t,"resolveFilter",(function(){return r["resolveFilter"]})),n.d(t,"resolveTransitionHooks",(function(){return r["resolveTransitionHooks"]})),n.d(t,"setBlockTracking",(function(){return r["setBlockTracking"]})),n.d(t,"setDevtoolsHook",(function(){return r["setDevtoolsHook"]})),n.d(t,"setTransitionHooks",(function(){return r["setTransitionHooks"]})),n.d(t,"ssrContextKey",(function(){return r["ssrContextKey"]})),n.d(t,"ssrUtils",(function(){return r["ssrUtils"]})),n.d(t,"toHandlers",(function(){return r["toHandlers"]})),n.d(t,"transformVNodeArgs",(function(){return r["transformVNodeArgs"]})),n.d(t,"useAttrs",(function(){return r["useAttrs"]})),n.d(t,"useId",(function(){return r["useId"]})),n.d(t,"useModel",(function(){return r["useModel"]})),n.d(t,"useSSRContext",(function(){return r["useSSRContext"]})),n.d(t,"useSlots",(function(){return r["useSlots"]})),n.d(t,"useTemplateRef",(function(){return r["useTemplateRef"]})),n.d(t,"useTransitionState",(function(){return r["useTransitionState"]})),n.d(t,"version",(function(){return r["version"]})),n.d(t,"warn",(function(){return r["warn"]})),n.d(t,"watch",(function(){return r["watch"]})),n.d(t,"watchEffect",(function(){return r["watchEffect"]})),n.d(t,"watchPostEffect",(function(){return r["watchPostEffect"]})),n.d(t,"watchSyncEffect",(function(){return r["watchSyncEffect"]})),n.d(t,"withAsyncContext",(function(){return r["withAsyncContext"]})),n.d(t,"withCtx",(function(){return r["withCtx"]})),n.d(t,"withDefaults",(function(){return r["withDefaults"]})),n.d(t,"withDirectives",(function(){return r["withDirectives"]})),n.d(t,"withMemo",(function(){return r["withMemo"]})),n.d(t,"withScopeId",(function(){return r["withScopeId"]})),n.d(t,"Transition",(function(){return r["Transition"]})),n.d(t,"TransitionGroup",(function(){return r["TransitionGroup"]})),n.d(t,"VueElement",(function(){return r["VueElement"]})),n.d(t,"createApp",(function(){return r["createApp"]})),n.d(t,"createSSRApp",(function(){return r["createSSRApp"]})),n.d(t,"defineCustomElement",(function(){return r["defineCustomElement"]})),n.d(t,"defineSSRCustomElement",(function(){return r["defineSSRCustomElement"]})),n.d(t,"hydrate",(function(){return r["hydrate"]})),n.d(t,"initDirectivesForSSR",(function(){return r["initDirectivesForSSR"]})),n.d(t,"nodeOps",(function(){return r["nodeOps"]})),n.d(t,"patchProp",(function(){return r["patchProp"]})),n.d(t,"render",(function(){return r["render"]})),n.d(t,"useCssModule",(function(){return r["useCssModule"]})),n.d(t,"useCssVars",(function(){return r["useCssVars"]})),n.d(t,"useHost",(function(){return r["useHost"]})),n.d(t,"useShadowRoot",(function(){return r["useShadowRoot"]})),n.d(t,"vModelCheckbox",(function(){return r["vModelCheckbox"]})),n.d(t,"vModelDynamic",(function(){return r["vModelDynamic"]})),n.d(t,"vModelRadio",(function(){return r["vModelRadio"]})),n.d(t,"vModelSelect",(function(){return r["vModelSelect"]})),n.d(t,"vModelText",(function(){return r["vModelText"]})),n.d(t,"vShow",(function(){return r["vShow"]})),n.d(t,"withKeys",(function(){return r["withKeys"]})),n.d(t,"withModifiers",(function(){return r["withModifiers"]})),n.d(t,"compile",(function(){return r["compile"]}));var o=!1,a=!0,i=void 0;function s(){}function c(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function l(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}},"8b1e":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("0898"),o=n("d095");const a=Object(r["b"])({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),i=e=>Object(o["pick"])(a,e)},"8b7b":function(e,t,n){"use strict";n("0f7c3"),n("11f2"),n("9c8b"),n("0054"),n("8376")},"8b9c":function(e,t,n){e.exports=n("3272")},"8b9e":function(e,t,n){"use strict";n("5dd9"),e.exports=9007199254740991},"8bd5":function(e,t,n){"use strict";var r=n("23e7"),o=n("a258").findLast,a=n("44d2");r({target:"Array",proto:!0},{findLast:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("findLast")},"8c12":function(e,t,n){"use strict";var r=n("8f95"),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},"8c3c":function(e,t,n){"use strict";var r=n("a5eb"),o=n("7106"),a=n("dfdb"),i=n("6f8d"),s=n("6c1b"),c=n("44ba"),l=n("5779"),u=n("2c75"),d=function(e,t,n){if(i(e)===n)return e[t];var r=c.f(e,t);if(r)return s(r)?r.value:void 0===r.get?void 0:o(r.get,n);var u=l(e);return a(u)?d(u,t,n):void 0};r({target:"Reflect",stat:!0},{get:function(e,t){return d(i(e),u(t),arguments.length<3?e:arguments[2])}})},"8c43":function(e,t,n){"use strict";e.exports=Number.isNaN||function(e){return e!==e}},"8c58":function(e,t,n){"use strict";var r=n("0363"),o=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(r){}}return!1}},"8c5a":function(e,t,n){"use strict";n("85ed")},"8c68":function(e,t,n){"use strict";var r=n("f772"),o=n("06fa"),a=n("3eba"),i=a.String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"8c96":function(e,t,n){e.exports=n("e1ba")},"8ca0":function(e,t,n){"use strict";var r=n("8c43");e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},"8cf4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n("35b0"),o=n("5112"),a=n("7a23");const i=()=>({form:Object(a["inject"])(o["a"],void 0),formItem:Object(a["inject"])(o["b"],void 0)}),s=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=Object(a["ref"])(!1)),o||(o=Object(a["ref"])(!1));const i=Object(a["getCurrentInstance"])(),s=()=>{let e=null===i||void 0===i?void 0:i.parent;while(e){if("ElFormItem"===e.type.name)return!1;if("ElLabelWrap"===e.type.name)return!0;e=e.parent}return!1},c=Object(a["ref"])();let l=void 0;const u=Object(a["computed"])(()=>{var n;return!!(!e.label&&!e.ariaLabel&&t&&t.inputIds&&(null===(n=t.inputIds)||void 0===n?void 0:n.length)<=1)});return Object(a["onMounted"])(()=>{l=Object(a["watch"])([Object(a["toRef"])(e,"id"),n],([e,n])=>{const a=null!==e&&void 0!==e?e:n?void 0:Object(r["a"])().value;if(a!==c.value){var i;if(null!==t&&void 0!==t&&t.removeInputId&&!s())c.value&&t.removeInputId(c.value),null!==(i=o)&&void 0!==i&&i.value||n||!a||t.addInputId(a);c.value=a}},{immediate:!0})}),Object(a["onUnmounted"])(()=>{l&&l(),null!==t&&void 0!==t&&t.removeInputId&&c.value&&t.removeInputId(c.value)}),{isLabeledByFormItem:u,inputId:c}}},"8cfd":function(e,t,n){e.exports=n("2b99")},"8cfdf":function(e,t,n){"use strict";var r=n("437b"),o=n("3327"),a=Function.prototype;e.exports=function(e){var t=e.bind;return e===a||r(a,e)&&t===a.bind?o:t}},"8d05":function(e,t,n){"use strict";var r=n("f94a"),o=n("bc31");r("toPrimitive"),o()},"8d47":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}var n=e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"===typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,n){var r=this._calendarEl[e],o=n&&n.hours();return t(r)&&(r=r.apply(n)),r.replace("{}",o%12===1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}});return n}))},"8d57":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function o(e){return e%10<5&&e%10>1&&~~(e/10)%10!==1}function a(e,t,n){var r=e+" ";switch(n){case"ss":return r+(o(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(o(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(o(e)?"godziny":"godzin");case"ww":return r+(o(e)?"tygodnie":"tygodni");case"MM":return r+(o(e)?"miesiące":"miesięcy");case"yy":return r+(o(e)?"lata":"lat")}}var i=e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:a,m:a,mm:a,h:a,hh:a,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:a,M:"miesiąc",MM:a,y:"rok",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},"8d82":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}}}))},"8df4":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"},r=e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});return r}))},"8df4b":function(e,t,n){"use strict";var r=n("7a77");function o(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;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e,t=new o((function(t){e=t}));return{token:t,cancel:e}},e.exports=o},"8e06":function(e,t,n){"use strict";var r=n("1b0d");e.exports=r},"8e11":function(e,t,n){"use strict";var r=n("fc48"),o=n("a421"),a=n("0cf0").f,i=n("eb54"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(e){try{return a(e)}catch(t){return i(s)}};e.exports.f=function(e){return s&&"Window"===r(e)?c(e):a(o(e))}},"8e5c":function(e,t,n){"use strict";n("4f90")},"8e73":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,i){var s=r(t),c=o[e][r(t)];return 2===s&&(c=c[n?0:1]),c.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],s=e.defineLocale("ar",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return s}))},"8eeb":function(e,t,n){"use strict";var r=n("bc0f");e.exports=r},"8f19":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(a)}}}))},"8f95":function(e,t,n){"use strict";var r=n("d63b"),o=n("fb2d"),a=n("fc48"),i=n("0363"),s=i("toStringTag"),c=Object,l="Arguments"===a(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=c(e),s))?n:l?a(t):"Object"===(r=a(t))&&o(t.callee)?"Arguments":r}},"8fa2":function(e,t,n){e.exports=n("ca15")},9043:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"১",2:"২",3:"৩",4:"",5:"৫",6:"৬",7:"",8:"৮",9:"৯",0:""},n={"১":"1","২":"2","৩":"3","":"4","৫":"5","৬":"6","":"7","৮":"8","৯":"9","":"0"},r=e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});return r}))},"904d":function(e,t,n){"use strict";var r=n("b82f");e.exports=r},"907a":function(e,t,n){"use strict";var r=n("ebb5"),o=n("07fa"),a=n("5926"),i=r.aTypedArray,s=r.exportTypedArrayMethod;s("at",(function(e){var t=i(this),n=o(t),r=a(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}))},9080:function(e,t,n){"use strict";var r=n("f94a");r("isConcatSpreadable")},9097:function(e,t,n){"use strict";n("464e");var r=n("764b");e.exports=r.Date.now},"90b3":function(e,t,n){"use strict";var r=n("52d7");e.exports=r},"90e3":function(e,t,n){"use strict";var r=n("e330"),o=0,a=Math.random(),i=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++o+a,36)}},"90ea":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},9103:function(e,t,n){"use strict";var r=n("a421"),o=n("c44e"),a=n("7463"),i=n("2f5a"),s=n("4180").f,c=n("b7a8"),l=n("ddb5"),u=n("7042"),d=n("c1b2"),p="Array Iterator",f=i.set,h=i.getterFor(p);e.exports=c(Array,"Array",(function(e,t){f(this,{type:p,target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(n,!1);case"values":return l(t[n],!1)}return l([n,t[n]],!1)}),"values");var m=a.Arguments=a.Array;if(o("keys"),o("values"),o("entries"),!u&&d&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(v){}},"910d":function(e,t,n){"use strict";var r=n("23e7"),o=n("c65b"),a=n("59ed"),i=n("825a"),s=n("46c4"),c=n("c5cc"),l=n("9bdd"),u=n("c430"),d=n("2a62"),p=n("2baa"),f=n("f99f"),h=!u&&!p("filter",(function(){})),m=!u&&!h&&f("filter",TypeError),v=u||h||m,g=c((function(){var e,t,n,r=this.iterator,a=this.predicate,s=this.next;while(1){if(e=i(o(s,r)),t=this.done=!!e.done,t)return;if(n=e.value,l(r,a,[n,this.counter++],!0))return n}}));r({target:"Iterator",proto:!0,real:!0,forced:v},{filter:function(e){i(this);try{a(e)}catch(t){d(this,"throw",t)}return m?o(m,this,e):new g(s(this),{predicate:e})}})},9112:function(e,t,n){"use strict";var r=n("83ab"),o=n("9bf2"),a=n("5c6c");e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},9162:function(e,t,n){"use strict";var r=n("a11e");e.exports=r},9215:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return h}));n("14d9");var r=n("4573"),o=n.n(r),a=n("fa81"),i=n.n(a),s=n("7d20"),c=n("8afb"),l=n("7a23");const u="utils/vue/vnode";let d=function(e){return e[e["TEXT"]=1]="TEXT",e[e["CLASS"]=2]="CLASS",e[e["STYLE"]=4]="STYLE",e[e["PROPS"]=8]="PROPS",e[e["FULL_PROPS"]=16]="FULL_PROPS",e[e["HYDRATE_EVENTS"]=32]="HYDRATE_EVENTS",e[e["STABLE_FRAGMENT"]=64]="STABLE_FRAGMENT",e[e["KEYED_FRAGMENT"]=128]="KEYED_FRAGMENT",e[e["UNKEYED_FRAGMENT"]=256]="UNKEYED_FRAGMENT",e[e["NEED_PATCH"]=512]="NEED_PATCH",e[e["DYNAMIC_SLOTS"]=1024]="DYNAMIC_SLOTS",e[e["HOISTED"]=-1]="HOISTED",e[e["BAIL"]=-2]="BAIL",e}({});function p(e){return Object(l["isVNode"])(e)&&e.type===l["Fragment"]}function f(e){return Object(l["isVNode"])(e)&&e.type===l["Comment"]}function h(e){return Object(l["isVNode"])(e)&&!p(e)&&!f(e)}const m=e=>{var t,n;if(!Object(l["isVNode"])(e))return Object(c["a"])(u,"[getNormalizedProps] must be a VNode"),{};const r=e.props||{},a=(Object(l["isVNode"])(e.type)?e.type.props:void 0)||{},d={};return o()(t=i()(a)).call(t,e=>{Object(s["hasOwn"])(a[e],"default")&&(d[e]=a[e].default)}),o()(n=i()(r)).call(n,e=>{d[Object(s["camelize"])(e)]=r[e]}),d},v=e=>{const t=Object(s["isArray"])(e)?e:[e],n=[];return o()(t).call(t,e=>{var t;Object(s["isArray"])(e)?n.push(...v(e)):Object(l["isVNode"])(e)&&null!==(t=e.component)&&void 0!==t&&t.subTree?n.push(e,...v(e.component.subTree)):Object(l["isVNode"])(e)&&Object(s["isArray"])(e.children)?n.push(...v(e.children)):Object(l["isVNode"])(e)&&2===e.shapeFlag?n.push(...v(e.type())):n.push(e)}),n}},"926d":function(e,t,n){"use strict";e.exports=Function.prototype.call},"92cd":function(e,t,n){"use strict";n("1d3a");var r=n("c18e");e.exports=r("Array","slice")},"92e7":function(e,t,n){"use strict";var r=n("2c0f"),o=r.match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},"932a":function(e,t,n){"use strict";var r=n("a5eb"),o=n("6f8d"),a=n("44ba").f,i=n("2c75");r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){o(e);var n=i(t),r=a(e,n);return!(r&&!r.configurable)&&delete e[n]}})},9361:function(e,t,n){"use strict";var r=n("d17d");e.exports=r},"93b2":function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var r=n("e76e"),o=n.n(r),a=n("edd9"),i=n("e47e"),s=n("7a23");const c={placement:"top"},l=Object(s["defineComponent"])({name:"ElConfigProvider",props:i["a"],setup(e,{slots:t}){const n=Object(a["a"])(e);return Object(s["watch"])(()=>e.message,e=>{var t,r;o()(c,null!==(t=null===n||void 0===n||null===(r=n.value)||void 0===r?void 0:r.message)&&void 0!==t?t:{},null!==e&&void 0!==e?e:{})},{immediate:!0,deep:!0}),()=>Object(s["renderSlot"])(t,"default",{config:null===n||void 0===n?void 0:n.value})}})},9412:function(e,t,n){"use strict";n("6850");var r=n("c18e");e.exports=r("Array","includes")},9474:function(e,t,n){e.exports=n("8383")},"94ca":function(e,t,n){"use strict";var r=n("d039"),o=n("1626"),a=/#|\.prototype\./,i=function(e,t){var n=c[s(e)];return n===u||n!==l&&(o(t)?r(t):!!t)},s=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},c=i.data={},l=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},"952c":function(e,t,n){"use strict";var r=n("a5eb"),o=n("3eba"),a=n("a0b9"),i=n("eb54"),s=n("ad27"),c=n("4e19"),l=n("9b8d"),u=o.Promise,d=!1,p=!u||!u["try"]||l((function(){u["try"]((function(e){d=8===e}),8)})).error||!d;r({target:"Promise",stat:!0,forced:p},{try:function(e){var t=arguments.length>1?i(arguments,1):[],n=s.f(this),r=l((function(){return a(c(e),void 0,t)}));return(r.error?n.reject:n.resolve)(r.value),n.promise}})},"957c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var o={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===r?n?"минута":"минуту":e+" "+t(o[r],+e)}var r=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],o=e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}});return o}))},"958b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}var n=e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}});return n}))},9609:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"},n=e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}});return n}))},9671:function(e,t,n){"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,a=n("0f7c");e.exports=a.call(r,o)},9686:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"১",2:"২",3:"৩",4:"",5:"৫",6:"৬",7:"",8:"৮",9:"৯",0:""},n={"১":"1","২":"2","৩":"3","":"4","৫":"5","৬":"6","":"7","৮":"8","৯":"9","":"0"},r=e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}});return r}))},9691:function(e,t,n){"use strict";var r=n("9883"),o=n("ce18"),a=r("Symbol"),i=a.keyFor,s=o(a.prototype.valueOf);e.exports=a.isRegisteredSymbol||function(e){try{return void 0!==i(s(e))}catch(t){return!1}}},"96a8":function(e,t,n){"use strict";var r=n("9097");e.exports=r},"96be":function(e,t,n){"use strict";var r=n("a5eb"),o=n("ce18"),a=n("6220"),i=o([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),i(this)}})},"96c0":function(e,t,n){"use strict";var r=n("a5eb"),o=n("5495");r({target:"Math",stat:!0},{trunc:o})},"96ed":function(e,t,n){"use strict";var r=n("3eba");e.exports=r.Promise},"972c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var r={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"},o=" ";return(e%100>=20||e>=100&&e%100===0)&&(o=" de "),e+o+r[n]}var n=e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}});return n}))},9785:function(e,t,n){"use strict";var r=n("f6d8");e.exports=r},9797:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t=e,n="",r=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return t>20?n=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(n=r[t]),e+n},week:{dow:1,doy:4}});return t}))},"97e3":function(e,t,n){"use strict";var r=n("2c0f");e.exports=/web0s(?!.*chrome)/i.test(r)},9802:function(e,t,n){"use strict";var r=n("f94a");r("replaceAll")},"980e":function(e,t,n){"use strict";var r=n("f94a");r("search")},9834:function(e,t,n){"use strict";n.r(t),n.d(t,"assert",(function(){return Ze})),n.d(t,"autoResetRef",(function(){return At})),n.d(t,"bypassFilter",(function(){return dt})),n.d(t,"camelize",(function(){return bt})),n.d(t,"clamp",(function(){return ot})),n.d(t,"computedEager",(function(){return Ie})),n.d(t,"computedWithControl",(function(){return Ee})),n.d(t,"containsProp",(function(){return Ct})),n.d(t,"controlledComputed",(function(){return Ee})),n.d(t,"controlledRef",(function(){return Bt})),n.d(t,"createEventHook",(function(){return De})),n.d(t,"createFilterWrapper",(function(){return ut})),n.d(t,"createGlobalState",(function(){return Le})),n.d(t,"createInjectionState",(function(){return xe})),n.d(t,"createReactiveFn",(function(){return Ye})),n.d(t,"createSharedComposable",(function(){return Pe})),n.d(t,"createSingletonPromise",(function(){return Mt})),n.d(t,"debounceFilter",(function(){return pt})),n.d(t,"debouncedRef",(function(){return Rt})),n.d(t,"debouncedWatch",(function(){return Rn})),n.d(t,"eagerComputed",(function(){return Ie})),n.d(t,"extendRef",(function(){return Ue})),n.d(t,"formatDate",(function(){return Mn})),n.d(t,"get",(function(){return Ve})),n.d(t,"getLifeCycleTarget",(function(){return Et})),n.d(t,"hasOwn",(function(){return st})),n.d(t,"hyphenate",(function(){return gt})),n.d(t,"identity",(function(){return Ot})),n.d(t,"ignorableWatch",(function(){return Pn})),n.d(t,"increaseWithUnit",(function(){return wt})),n.d(t,"injectLocal",(function(){return Ne})),n.d(t,"invoke",(function(){return kt})),n.d(t,"isClient",(function(){return $e})),n.d(t,"isDef",(function(){return Xe})),n.d(t,"isDefined",(function(){return Be})),n.d(t,"isIOS",(function(){return ct})),n.d(t,"isObject",(function(){return tt})),n.d(t,"isWorker",(function(){return Je})),n.d(t,"makeDestructurable",(function(){return Fe})),n.d(t,"noop",(function(){return at})),n.d(t,"normalizeDate",(function(){return kn})),n.d(t,"notNullish",(function(){return Qe})),n.d(t,"now",(function(){return nt})),n.d(t,"objectEntries",(function(){return It})),n.d(t,"objectOmit",(function(){return Tt})),n.d(t,"objectPick",(function(){return St})),n.d(t,"pausableFilter",(function(){return ht})),n.d(t,"pausableWatch",(function(){return Ht})),n.d(t,"promiseTimeout",(function(){return yt})),n.d(t,"provideLocal",(function(){return Re})),n.d(t,"rand",(function(){return it})),n.d(t,"reactify",(function(){return Ye})),n.d(t,"reactifyObject",(function(){return ze})),n.d(t,"reactiveComputed",(function(){return We})),n.d(t,"reactiveOmit",(function(){return Ke})),n.d(t,"reactivePick",(function(){return Lt})),n.d(t,"refAutoReset",(function(){return At})),n.d(t,"refDebounced",(function(){return Rt})),n.d(t,"refDefault",(function(){return xt})),n.d(t,"refThrottled",(function(){return Ut})),n.d(t,"refWithControl",(function(){return Vt})),n.d(t,"resolveRef",(function(){return Dt})),n.d(t,"resolveUnref",(function(){return He})),n.d(t,"set",(function(){return Ft})),n.d(t,"syncRef",(function(){return Yt})),n.d(t,"syncRefs",(function(){return zt})),n.d(t,"throttleFilter",(function(){return ft})),n.d(t,"throttledRef",(function(){return Ut})),n.d(t,"throttledWatch",(function(){return Bn})),n.d(t,"timestamp",(function(){return rt})),n.d(t,"toReactive",(function(){return qe})),n.d(t,"toRef",(function(){return jt})),n.d(t,"toRefs",(function(){return qt})),n.d(t,"toValue",(function(){return Ge})),n.d(t,"tryOnBeforeMount",(function(){return Wt})),n.d(t,"tryOnBeforeUnmount",(function(){return Kt})),n.d(t,"tryOnMounted",(function(){return $t})),n.d(t,"tryOnScopeDispose",(function(){return je})),n.d(t,"tryOnUnmounted",(function(){return Jt})),n.d(t,"until",(function(){return Qt})),n.d(t,"useArrayDifference",(function(){return en})),n.d(t,"useArrayEvery",(function(){return tn})),n.d(t,"useArrayFilter",(function(){return nn})),n.d(t,"useArrayFind",(function(){return rn})),n.d(t,"useArrayFindIndex",(function(){return on})),n.d(t,"useArrayFindLast",(function(){return sn})),n.d(t,"useArrayIncludes",(function(){return ln})),n.d(t,"useArrayJoin",(function(){return un})),n.d(t,"useArrayMap",(function(){return dn})),n.d(t,"useArrayReduce",(function(){return pn})),n.d(t,"useArraySome",(function(){return fn})),n.d(t,"useArrayUnique",(function(){return vn})),n.d(t,"useCounter",(function(){return gn})),n.d(t,"useDateFormat",(function(){return Cn})),n.d(t,"useDebounce",(function(){return Rt})),n.d(t,"useDebounceFn",(function(){return Nt})),n.d(t,"useInterval",(function(){return Sn})),n.d(t,"useIntervalFn",(function(){return wn})),n.d(t,"useLastChanged",(function(){return Tn})),n.d(t,"useThrottle",(function(){return Ut})),n.d(t,"useThrottleFn",(function(){return Pt})),n.d(t,"useTimeout",(function(){return En})),n.d(t,"useTimeoutFn",(function(){return In})),n.d(t,"useToNumber",(function(){return jn})),n.d(t,"useToString",(function(){return Dn})),n.d(t,"useToggle",(function(){return Ln})),n.d(t,"watchArray",(function(){return An})),n.d(t,"watchAtMost",(function(){return Nn})),n.d(t,"watchDebounced",(function(){return Rn})),n.d(t,"watchDeep",(function(){return xn})),n.d(t,"watchIgnorable",(function(){return Pn})),n.d(t,"watchImmediate",(function(){return Un})),n.d(t,"watchOnce",(function(){return Vn})),n.d(t,"watchPausable",(function(){return Ht})),n.d(t,"watchThrottled",(function(){return Bn})),n.d(t,"watchTriggerable",(function(){return Fn})),n.d(t,"watchWithFilter",(function(){return Gt})),n.d(t,"whenever",(function(){return Yn}));n("d9e2"),n("8bd5"),n("14d9");var r=n("39de"),o=n.n(r),a=n("045d"),i=n.n(a),s=n("3818"),c=n.n(s),l=n("14b1"),u=n.n(l),d=n("d254"),p=n.n(d),f=n("b4d1"),h=n.n(f),m=n("acf5"),v=n.n(m),g=n("3b4c"),_=n.n(g),b=n("8b9c"),y=n.n(b),O=n("2d80"),M=n.n(O),k=n("844d"),C=n.n(k),w=n("e76e"),S=n.n(w),T=n("e946"),I=n.n(T),E=n("fa81"),j=n.n(E),D=n("ec69"),L=n.n(D),A=n("c76c"),N=n.n(A),R=n("78b2"),x=n.n(R),P=n("256d"),U=n.n(P),V=n("8cfd"),B=n.n(V),F=n("8770"),G=n.n(F),H=n("71d7"),Y=n.n(H),z=n("e4f0"),q=n.n(z),W=n("9a73"),K=n.n(W),$=n("2e10"),J=n.n($),X=n("3002"),Q=n.n(X),Z=n("2b0b"),ee=n.n(Z),te=n("c52e"),ne=n.n(te),re=n("52da"),oe=n.n(re),ae=n("afd8"),ie=n.n(ae),se=n("800f"),ce=n.n(se),le=n("298b"),ue=n.n(le),de=n("4573"),pe=n.n(de),fe=n("8c96"),he=n.n(fe),me=n("cca4"),ve=n.n(me),ge=n("4c43"),_e=n.n(ge),be=n("c751"),ye=n.n(be),Oe=n("fc56"),Me=n.n(Oe),ke=n("cf34"),Ce=n.n(ke),we=n("21e7"),Se=n.n(we),Te=n("7a23");function Ie(e,t){var n;const r=Object(Te["shallowRef"])();return Object(Te["watchEffect"])(()=>{r.value=e()},{...t,flush:null!=(n=null==t?void 0:t.flush)?n:"sync"}),Object(Te["readonly"])(r)}function Ee(e,t){let n,r,a=void 0;const i=Object(Te["ref"])(!0),s=()=>{i.value=!0,r()};Object(Te["watch"])(e,s,{flush:"sync"});const c="function"===typeof t?t:t.get,l="function"===typeof t?void 0:t.set,u=Object(Te["customRef"])((e,t)=>(n=e,r=t,{get(){return i.value&&(a=c(a),i.value=!1),n(),a},set(e){null==l||l(e)}}));return o()(u)&&(u.trigger=s),u}function je(e){return!!Object(Te["getCurrentScope"])()&&(Object(Te["onScopeDispose"])(e),!0)}function De(){const e=new i.a,t=t=>{e.delete(t)},n=n=>{e.add(n);const r=()=>t(n);return je(r),{off:r}},r=(...t)=>{var n;return c.a.all(u()(n=p()(e)).call(n,e=>e(...t)))};return{on:n,off:t,trigger:r}}function Le(e){let t,n=!1;const r=Object(Te["effectScope"])(!0);return(...o)=>(n||(t=r.run(()=>e(...o)),n=!0),t)}const Ae=new h.a,Ne=(...e)=>{var t;const n=e[0],r=null==(t=Object(Te["getCurrentInstance"])())?void 0:t.proxy;if(null==r)throw new Error("injectLocal must be called in setup");return Ae.has(r)&&n in Ae.get(r)?Ae.get(r)[n]:Object(Te["inject"])(...e)},Re=(e,t)=>{var n;const r=null==(n=Object(Te["getCurrentInstance"])())?void 0:n.proxy;if(null==r)throw new Error("provideLocal must be called in setup");Ae.has(r)||Ae.set(r,v()(null));const o=Ae.get(r);o[e]=t,Object(Te["provide"])(e,t)};function xe(e,t){const n=(null==t?void 0:t.injectionKey)||_()(e.name||"InjectionState"),r=null==t?void 0:t.defaultValue,o=(...t)=>{const r=e(...t);return Re(n,r),r},a=()=>Ne(n,r);return[o,a]}function Pe(e){let t,n,r=0;const o=()=>{r-=1,n&&r<=0&&(n.stop(),t=void 0,n=void 0)};return(...a)=>(r+=1,n||(n=Object(Te["effectScope"])(!0),t=n.run(()=>e(...a))),je(o),t)}function Ue(e,t,{enumerable:n=!1,unwrap:r=!0}={}){for(const[o,a]of y()(t))"value"!==o&&(Object(Te["isRef"])(a)&&r?M()(e,o,{get(){return a.value},set(e){a.value=e},enumerable:n}):M()(e,o,{value:a,enumerable:n}));return e}function Ve(e,t){return null==t?Object(Te["unref"])(e):Object(Te["unref"])(e)[t]}function Be(e){return null!=Object(Te["unref"])(e)}function Fe(e,t){if("undefined"!==typeof _.a){const n={...e};return M()(n,C.a,{enumerable:!1,value(){let e=0;return{next:()=>({value:t[e++],done:e>t.length})}}}),n}return S()([...t],e)}function Ge(e){return"function"===typeof e?e():Object(Te["unref"])(e)}const He=Ge;function Ye(e,t){const n=!1===(null==t?void 0:t.computedGetter)?Te["unref"]:Ge;return function(...t){return Object(Te["computed"])(()=>e.apply(this,u()(t).call(t,e=>n(e))))}}function ze(e,t={}){let n,r=[];if(I()(t))r=t;else{n=t;const{includeOwnProperties:o=!0}=t;r.push(...j()(e)),o&&r.push(...L()(e))}return N()(u()(r).call(r,t=>{const r=e[t];return[t,"function"===typeof r?Ye(x()(r).call(r,e),n):r]}))}function qe(e){if(!Object(Te["isRef"])(e))return Object(Te["reactive"])(e);const t=new Proxy({},{get(t,n,r){return Object(Te["unref"])(U()(e.value,n,r))},set(t,n,r){return Object(Te["isRef"])(e.value[n])&&!Object(Te["isRef"])(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return B()(e.value,n)},has(t,n){return G()(e.value,n)},ownKeys(){return j()(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Object(Te["reactive"])(t)}function We(e){return qe(Object(Te["computed"])(e))}function Ke(e,...t){const n=Y()(t).call(t),r=n[0];return We(()=>{var t,o;return"function"===typeof r?N()(q()(t=y()(Object(Te["toRefs"])(e))).call(t,([e,t])=>!r(Ge(t),e))):N()(q()(o=y()(Object(Te["toRefs"])(e))).call(o,e=>!K()(n).call(n,e[0])))})}const $e="undefined"!==typeof window&&"undefined"!==typeof document,Je="undefined"!==typeof WorkerGlobalScope&&J.a instanceof WorkerGlobalScope,Xe=e=>"undefined"!==typeof e,Qe=e=>null!=e,Ze=(e,...t)=>{e||console.warn(...t)},et=Object.prototype.toString,tt=e=>"[object Object]"===et.call(e),nt=()=>Q()(),rt=()=>+Q()(),ot=(e,t,n)=>Math.min(n,Math.max(t,e)),at=()=>{},it=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e),st=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ct=lt();function lt(){var e,t;return $e&&(null==(e=null==window?void 0:window.navigator)?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||(null==(t=null==window?void 0:window.navigator)?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(null==window?void 0:window.navigator.userAgent))}function ut(e,t){function n(...n){return new c.a((r,o)=>{c.a.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(o)})}return n}const dt=e=>e();function pt(e,t={}){let n,r,o=at;const a=e=>{clearTimeout(e),o(),o=at},i=i=>{const s=Ge(e),l=Ge(t.maxWait);return n&&a(n),s<=0||void 0!==l&&l<=0?(r&&(a(r),r=null),c.a.resolve(i())):new c.a((e,c)=>{o=t.rejectOnCancel?c:e,l&&!r&&(r=ee()(()=>{n&&a(n),r=null,e(i())},l)),n=ee()(()=>{r&&a(r),r=null,e(i())},s)})};return i}function ft(...e){let t,n,r,o,a,i,s=0,l=!0,u=at;Object(Te["isRef"])(e[0])||"object"!==typeof e[0]?[r,o=!0,a=!0,i=!1]=e:({delay:r,trailing:o=!0,leading:a=!0,rejectOnCancel:i=!1}=e[0]);const d=()=>{t&&(clearTimeout(t),t=void 0,u(),u=at)},p=e=>{const p=Ge(r),f=Q()()-s,h=()=>n=e();return d(),p<=0?(s=Q()(),h()):(f>p&&(a||!l)?(s=Q()(),h()):o&&(n=new c.a((e,n)=>{u=i?n:e,t=ee()(()=>{s=Q()(),l=!0,e(h()),d()},Math.max(0,p-f))})),a||t||(t=ee()(()=>l=!0,p)),l=!1,n)};return p}function ht(e=dt){const t=Object(Te["ref"])(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...n)=>{t.value&&e(...n)};return{isActive:Object(Te["readonly"])(t),pause:n,resume:r,eventFilter:o}}function mt(e){const t=v()(null);return n=>{const r=t[n];return r||(t[n]=e(n))}}const vt=/\B([A-Z])/g,gt=mt(e=>e.replace(vt,"-$1").toLowerCase()),_t=/-(\w)/g,bt=mt(e=>e.replace(_t,(e,t)=>t?t.toUpperCase():""));function yt(e,t=!1,n="Timeout"){return new c.a((r,o)=>{t?ee()(()=>o(n),e):ee()(r,e)})}function Ot(e){return e}function Mt(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const e=t;t=void 0,e&&await e},n}function kt(e){return e()}function Ct(e,...t){return ne()(t).call(t,t=>t in e)}function wt(e,t){var n;if("number"===typeof e)return e+t;const r=(null==(n=e.match(/^-?\d+\.?\d*/))?void 0:n[0])||"",o=oe()(e).call(e,r.length),a=ie()(r)+t;return ce()(a)?e:a+o}function St(e,t,n=!1){return ue()(t).call(t,(t,r)=>(r in e&&(n&&void 0===e[r]||(t[r]=e[r])),t),{})}function Tt(e,t,n=!1){var r;return N()(q()(r=y()(e)).call(r,([e,r])=>(!n||void 0!==r)&&!K()(t).call(t,e)))}function It(e){return y()(e)}function Et(e){return e||Object(Te["getCurrentInstance"])()}function jt(...e){if(1!==e.length)return Object(Te["toRef"])(...e);const t=e[0];return"function"===typeof t?Object(Te["readonly"])(Object(Te["customRef"])(()=>({get:t,set:at}))):Object(Te["ref"])(t)}const Dt=jt;function Lt(e,...t){const n=Y()(t).call(t),r=n[0];return We(()=>{var t;return"function"===typeof r?N()(q()(t=y()(Object(Te["toRefs"])(e))).call(t,([e,t])=>r(Ge(t),e))):N()(u()(n).call(n,t=>[t,jt(e,t)]))})}function At(e,t=1e4){return Object(Te["customRef"])((n,r)=>{let o,a=Ge(e);const i=()=>ee()(()=>{a=Ge(e),r()},Ge(t));return je(()=>{clearTimeout(o)}),{get(){return n(),a},set(e){a=e,r(),clearTimeout(o),o=i()}}})}function Nt(e,t=200,n={}){return ut(pt(t,n),e)}function Rt(e,t=200,n={}){const r=Object(Te["ref"])(e.value),o=Nt(()=>{r.value=e.value},t,n);return Object(Te["watch"])(e,()=>o()),r}function xt(e,t){return Object(Te["computed"])({get(){var n;return null!=(n=e.value)?n:t},set(t){e.value=t}})}function Pt(e,t=200,n=!1,r=!0,o=!1){return ut(ft(t,n,r,o),e)}function Ut(e,t=200,n=!0,r=!0){if(t<=0)return e;const o=Object(Te["ref"])(e.value),a=Pt(()=>{o.value=e.value},t,n,r);return Object(Te["watch"])(e,()=>a()),o}function Vt(e,t={}){let n,r,o=e;const a=Object(Te["customRef"])((e,t)=>(n=e,r=t,{get(){return i()},set(e){s(e)}}));function i(e=!0){return e&&n(),o}function s(e,n=!0){var a,i;if(e===o)return;const s=o;!1!==(null==(a=t.onBeforeChange)?void 0:a.call(t,e,s))&&(o=e,null==(i=t.onChanged)||i.call(t,e,s),n&&r())}const c=()=>i(!1),l=e=>s(e,!1),u=()=>i(!1),d=e=>s(e,!1);return Ue(a,{get:i,set:s,untrackedGet:c,silentSet:l,peek:u,lay:d},{enumerable:!0})}const Bt=Vt;function Ft(...e){if(2===e.length){const[t,n]=e;t.value=n}if(3===e.length){const[t,n,r]=e;t[n]=r}}function Gt(e,t,n={}){const{eventFilter:r=dt,...o}=n;return Object(Te["watch"])(e,ut(r,t),o)}function Ht(e,t,n={}){const{eventFilter:r,...o}=n,{eventFilter:a,pause:i,resume:s,isActive:c}=ht(r),l=Gt(e,t,{...o,eventFilter:a});return{stop:l,pause:i,resume:s,isActive:c}}function Yt(e,t,...[n]){const{flush:r="sync",deep:o=!1,immediate:a=!0,direction:i="both",transform:s={}}=n||{},c=[],l="ltr"in s&&s.ltr||(e=>e),u="rtl"in s&&s.rtl||(e=>e);"both"!==i&&"ltr"!==i||c.push(Ht(e,e=>{pe()(c).call(c,e=>e.pause()),t.value=l(e),pe()(c).call(c,e=>e.resume())},{flush:r,deep:o,immediate:a})),"both"!==i&&"rtl"!==i||c.push(Ht(t,t=>{pe()(c).call(c,e=>e.pause()),e.value=u(t),pe()(c).call(c,e=>e.resume())},{flush:r,deep:o,immediate:a}));const d=()=>{pe()(c).call(c,e=>e.stop())};return d}function zt(e,t,n={}){const{flush:r="sync",deep:o=!1,immediate:a=!0}=n;return I()(t)||(t=[t]),Object(Te["watch"])(e,e=>pe()(t).call(t,t=>t.value=e),{flush:r,deep:o,immediate:a})}function qt(e,t={}){if(!Object(Te["isRef"])(e))return Object(Te["toRefs"])(e);const n=I()(e.value)?p()({length:e.value.length}):{};for(const r in e.value)n[r]=Object(Te["customRef"])(()=>({get(){return e.value[r]},set(n){var o;const a=null==(o=Ge(t.replaceRef))||o;if(a)if(I()(e.value)){const t=[...e.value];t[r]=n,e.value=t}else{const t={...e.value,[r]:n};he()(t,ve()(e.value)),e.value=t}else e.value[r]=n}}));return n}function Wt(e,t=!0,n){const r=Et(n);r?Object(Te["onBeforeMount"])(e,n):t?e():Object(Te["nextTick"])(e)}function Kt(e,t){const n=Et(t);n&&Object(Te["onBeforeUnmount"])(e,t)}function $t(e,t=!0,n){const r=Et();r?Object(Te["onMounted"])(e,n):t?e():Object(Te["nextTick"])(e)}function Jt(e,t){const n=Et(t);n&&Object(Te["onUnmounted"])(e,t)}function Xt(e,t=!1){function n(n,{flush:r="sync",deep:o=!1,timeout:a,throwOnTimeout:i}={}){let s=null;const l=new c.a(a=>{s=Object(Te["watch"])(e,e=>{n(e)!==t&&(s?s():Object(Te["nextTick"])(()=>null==s?void 0:s()),a(e))},{flush:r,deep:o,immediate:!0})}),u=[l];return null!=a&&u.push(yt(a,i).then(()=>Ge(e)).finally(()=>null==s?void 0:s())),c.a.race(u)}function r(r,o){if(!Object(Te["isRef"])(r))return n(e=>e===r,o);const{flush:a="sync",deep:i=!1,timeout:s,throwOnTimeout:l}=null!=o?o:{};let u=null;const d=new c.a(n=>{u=Object(Te["watch"])([e,r],([e,r])=>{t!==(e===r)&&(u?u():Object(Te["nextTick"])(()=>null==u?void 0:u()),n(e))},{flush:a,deep:i,immediate:!0})}),p=[d];return null!=s&&p.push(yt(s,l).then(()=>Ge(e)).finally(()=>(null==u||u(),Ge(e)))),c.a.race(p)}function o(e){return n(e=>Boolean(e),e)}function a(e){return r(null,e)}function i(e){return r(void 0,e)}function s(e){return n(ce.a,e)}function l(e,t){return n(t=>{const n=p()(t);return K()(n).call(n,e)||K()(n).call(n,Ge(e))},t)}function u(e){return d(1,e)}function d(e=1,t){let r=-1;return n(()=>(r+=1,r>=e),t)}if(I()(Ge(e))){const r={toMatch:n,toContains:l,changed:u,changedTimes:d,get not(){return Xt(e,!t)}};return r}{const c={toMatch:n,toBe:r,toBeTruthy:o,toBeNull:a,toBeNaN:s,toBeUndefined:i,changed:u,changedTimes:d,get not(){return Xt(e,!t)}};return c}}function Qt(e){return Xt(e)}function Zt(e,t){return e===t}function en(...e){var t;const n=e[0],r=e[1];let o=null!=(t=e[2])?t:Zt;if("string"===typeof o){const e=o;o=(t,n)=>t[e]===n[e]}return Object(Te["computed"])(()=>{var e;return q()(e=Ge(n)).call(e,e=>{var t;return-1===_e()(t=Ge(r)).call(t,t=>o(e,t))})})}function tn(e,t){return Object(Te["computed"])(()=>{var n;return ye()(n=Ge(e)).call(n,(e,n,r)=>t(Ge(e),n,r))})}function nn(e,t){return Object(Te["computed"])(()=>{var n,r;return q()(n=u()(r=Ge(e)).call(r,e=>Ge(e))).call(n,t)})}function rn(e,t){return Object(Te["computed"])(()=>{var n;return Ge(Me()(n=Ge(e)).call(n,(e,n,r)=>t(Ge(e),n,r)))})}function on(e,t){return Object(Te["computed"])(()=>{var n;return _e()(n=Ge(e)).call(n,(e,n,r)=>t(Ge(e),n,r))})}function an(e,t){let n=e.length;while(n-- >0)if(t(e[n],n,e))return e[n]}function sn(e,t){return Object(Te["computed"])(()=>Ge(Array.prototype.findLast?Ge(e).findLast((e,n,r)=>t(Ge(e),n,r)):an(Ge(e),(e,n,r)=>t(Ge(e),n,r))))}function cn(e){return tt(e)&&Ct(e,"formIndex","comparator")}function ln(...e){var t;const n=e[0],r=e[1];let o=e[2],a=0;if(cn(o)&&(a=null!=(t=o.fromIndex)?t:0,o=o.comparator),"string"===typeof o){const e=o;o=(t,n)=>t[e]===Ge(n)}return o=null!=o?o:(e,t)=>e===Ge(t),Object(Te["computed"])(()=>{var e,t;return ne()(e=oe()(t=Ge(n)).call(t,a)).call(e,(e,t,n)=>o(Ge(e),Ge(r),t,Ge(n)))})}function un(e,t){return Object(Te["computed"])(()=>{var n;return u()(n=Ge(e)).call(n,e=>Ge(e)).join(Ge(t))})}function dn(e,t){return Object(Te["computed"])(()=>{var n,r;return u()(n=u()(r=Ge(e)).call(r,e=>Ge(e))).call(n,t)})}function pn(e,t,...n){const r=(e,n,r)=>t(Ge(e),Ge(n),r);return Object(Te["computed"])(()=>{const t=Ge(e);return n.length?ue()(t).call(t,r,"function"===typeof n[0]?Ge(n[0]()):Ge(n[0])):ue()(t).call(t,r)})}function fn(e,t){return Object(Te["computed"])(()=>{var n;return ne()(n=Ge(e)).call(n,(e,n,r)=>t(Ge(e),n,r))})}function hn(e){return p()(new i.a(e))}function mn(e,t){return ue()(e).call(e,(n,r)=>(ne()(n).call(n,n=>t(r,n,e))||n.push(r),n),[])}function vn(e,t){return Object(Te["computed"])(()=>{var n;const r=u()(n=Ge(e)).call(n,e=>Ge(e));return t?mn(r,t):hn(r)})}function gn(e=0,t={}){let n=Object(Te["unref"])(e);const r=Object(Te["ref"])(e),{max:o=Number.POSITIVE_INFINITY,min:a=Number.NEGATIVE_INFINITY}=t,i=(e=1)=>r.value=Math.max(Math.min(o,r.value+e),a),s=(e=1)=>r.value=Math.min(Math.max(a,r.value-e),o),c=()=>r.value,l=e=>r.value=Math.max(a,Math.min(o,e)),u=(e=n)=>(n=e,l(e));return{count:r,inc:i,dec:s,get:c,set:l,reset:u}}const _n=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,bn=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function yn(e,t,n,r){var o;let a=e<12?"AM":"PM";return r&&(a=ue()(o=a.split("")).call(o,(e,t)=>e+(t+"."),"")),n?a.toLowerCase():a}function On(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function Mn(e,t,n={}){var r;const o=e.getFullYear(),a=e.getMonth(),i=e.getDate(),s=e.getHours(),c=e.getMinutes(),l=e.getSeconds(),u=e.getMilliseconds(),d=e.getDay(),p=null!=(r=n.customMeridiem)?r:yn,f={Yo:()=>On(o),YY:()=>{var e;return oe()(e=String(o)).call(e,-2)},YYYY:()=>o,M:()=>a+1,Mo:()=>On(a+1),MM:()=>{var e;return Ce()(e=""+(a+1)).call(e,2,"0")},MMM:()=>e.toLocaleDateString(Ge(n.locales),{month:"short"}),MMMM:()=>e.toLocaleDateString(Ge(n.locales),{month:"long"}),D:()=>String(i),Do:()=>On(i),DD:()=>{var e;return Ce()(e=""+i).call(e,2,"0")},H:()=>String(s),Ho:()=>On(s),HH:()=>{var e;return Ce()(e=""+s).call(e,2,"0")},h:()=>{var e;return Ce()(e=""+(s%12||12)).call(e,1,"0")},ho:()=>On(s%12||12),hh:()=>{var e;return Ce()(e=""+(s%12||12)).call(e,2,"0")},m:()=>String(c),mo:()=>On(c),mm:()=>{var e;return Ce()(e=""+c).call(e,2,"0")},s:()=>String(l),so:()=>On(l),ss:()=>{var e;return Ce()(e=""+l).call(e,2,"0")},SSS:()=>{var e;return Ce()(e=""+u).call(e,3,"0")},d:()=>d,dd:()=>e.toLocaleDateString(Ge(n.locales),{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(Ge(n.locales),{weekday:"short"}),dddd:()=>e.toLocaleDateString(Ge(n.locales),{weekday:"long"}),A:()=>p(s,c),AA:()=>p(s,c,!1,!0),a:()=>p(s,c,!0),aa:()=>p(s,c,!0,!0)};return t.replace(bn,(e,t)=>{var n,r;return null!=(r=null!=t?t:null==(n=f[e])?void 0:n.call(f))?r:e})}function kn(e){if(null===e)return new Date(Number.NaN);if(void 0===e)return new Date;if(e instanceof Date)return new Date(e);if("string"===typeof e&&!/Z$/i.test(e)){const t=e.match(_n);if(t){const e=t[2]-1||0,n=(t[7]||"0").substring(0,3);return new Date(t[1],e,t[3]||1,t[4]||0,t[5]||0,t[6]||0,n)}}return new Date(e)}function Cn(e,t="HH:mm:ss",n={}){return Object(Te["computed"])(()=>Mn(kn(Ge(e)),Ge(t),n))}function wn(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let a=null;const i=Object(Te["ref"])(!1);function s(){a&&(clearInterval(a),a=null)}function c(){i.value=!1,s()}function l(){const n=Ge(t);n<=0||(i.value=!0,o&&e(),s(),i.value&&(a=Se()(e,n)))}if(r&&$e&&l(),Object(Te["isRef"])(t)||"function"===typeof t){const e=Object(Te["watch"])(t,()=>{i.value&&$e&&l()});je(e)}return je(c),{isActive:i,pause:c,resume:l}}function Sn(e=1e3,t={}){const{controls:n=!1,immediate:r=!0,callback:o}=t,a=Object(Te["ref"])(0),i=()=>a.value+=1,s=()=>{a.value=0},c=wn(o?()=>{i(),o(a.value)}:i,e,{immediate:r});return n?{counter:a,reset:s,...c}:a}function Tn(e,t={}){var n;const r=Object(Te["ref"])(null!=(n=t.initialValue)?n:null);return Object(Te["watch"])(e,()=>r.value=rt(),t),r}function In(e,t,n={}){const{immediate:r=!0}=n,o=Object(Te["ref"])(!1);let a=null;function i(){a&&(clearTimeout(a),a=null)}function s(){o.value=!1,i()}function c(...n){i(),o.value=!0,a=ee()(()=>{o.value=!1,a=null,e(...n)},Ge(t))}return r&&(o.value=!0,$e&&c()),je(s),{isPending:Object(Te["readonly"])(o),start:c,stop:s}}function En(e=1e3,t={}){const{controls:n=!1,callback:r}=t,o=In(null!=r?r:at,e,t),a=Object(Te["computed"])(()=>!o.isPending.value);return n?{ready:a,...o}:a}function jn(e,t={}){const{method:n="parseFloat",radix:r,nanToZero:o}=t;return Object(Te["computed"])(()=>{let t=Ge(e);return"string"===typeof t&&(t=Number[n](t,r)),o&&ce()(t)&&(t=0),t})}function Dn(e){return Object(Te["computed"])(()=>""+Ge(e))}function Ln(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,o=Object(Te["isRef"])(e),a=Object(Te["ref"])(e);function i(e){if(arguments.length)return a.value=e,a.value;{const e=Ge(n);return a.value=a.value===e?Ge(r):e,a.value}}return o?i:[a,i]}function An(e,t,n){let r=(null==n?void 0:n.immediate)?[]:[...e instanceof Function?e():I()(e)?e:Ge(e)];return Object(Te["watch"])(e,(e,n,o)=>{const a=p()({length:r.length}),i=[];for(const t of e){let e=!1;for(let n=0;n<r.length;n++)if(!a[n]&&t===r[n]){a[n]=!0,e=!0;break}e||i.push(t)}const s=q()(r).call(r,(e,t)=>!a[t]);t(e,r,i,s,o),r=[...e]},n)}function Nn(e,t,n){const{count:r,...o}=n,a=Object(Te["ref"])(0),i=Gt(e,(...e)=>{a.value+=1,a.value>=Ge(r)&&Object(Te["nextTick"])(()=>i()),t(...e)},o);return{count:a,stop:i}}function Rn(e,t,n={}){const{debounce:r=0,maxWait:o,...a}=n;return Gt(e,t,{...a,eventFilter:pt(r,{maxWait:o})})}function xn(e,t,n){return Object(Te["watch"])(e,t,{...n,deep:!0})}function Pn(e,t,n={}){const{eventFilter:r=dt,...o}=n,a=ut(r,t);let i,s,c;if("sync"===o.flush){const t=Object(Te["ref"])(!1);s=()=>{},i=e=>{t.value=!0,e(),t.value=!1},c=Object(Te["watch"])(e,(...e)=>{t.value||a(...e)},o)}else{const t=[],n=Object(Te["ref"])(0),r=Object(Te["ref"])(0);s=()=>{n.value=r.value},t.push(Object(Te["watch"])(e,()=>{r.value++},{...o,flush:"sync"})),i=e=>{const t=r.value;e(),n.value+=r.value-t},t.push(Object(Te["watch"])(e,(...e)=>{const t=n.value>0&&n.value===r.value;n.value=0,r.value=0,t||a(...e)},o)),c=()=>{pe()(t).call(t,e=>e())}}return{stop:c,ignoreUpdates:i,ignorePrevAsyncUpdates:s}}function Un(e,t,n){return Object(Te["watch"])(e,t,{...n,immediate:!0})}function Vn(e,t,n){const r=Object(Te["watch"])(e,(...e)=>(Object(Te["nextTick"])(()=>r()),t(...e)),n);return r}function Bn(e,t,n={}){const{throttle:r=0,trailing:o=!0,leading:a=!0,...i}=n;return Gt(e,t,{...i,eventFilter:ft(r,o,a)})}function Fn(e,t,n={}){let r;function o(){if(!r)return;const e=r;r=void 0,e()}function a(e){r=e}const i=(e,n)=>(o(),t(e,n,a)),s=Pn(e,i,n),{ignoreUpdates:c}=s,l=()=>{let t;return c(()=>{t=i(Gn(e),Hn(e))}),t};return{...s,trigger:l}}function Gn(e){return Object(Te["isReactive"])(e)?e:I()(e)?u()(e).call(e,e=>Ge(e)):Ge(e)}function Hn(e){return I()(e)?u()(e).call(e,()=>{}):void 0}function Yn(e,t,n){const r=Object(Te["watch"])(e,(e,o,a)=>{e&&((null==n?void 0:n.once)&&Object(Te["nextTick"])(()=>r()),t(e,o,a))},{...n,once:!1});return r}},"986a":function(e,t,n){"use strict";var r=n("ebb5"),o=n("a258").findLast,a=r.aTypedArray,i=r.exportTypedArrayMethod;i("findLast",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},9883:function(e,t,n){"use strict";var r=n("764b"),o=n("3eba"),a=n("fb2d"),i=function(e){return a(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},9885:function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return _})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return g}));var r=n("e4f0"),o=n.n(r),a=n("d254"),i=n.n(a),s=n("9a73"),c=n.n(s),l=n("65b8"),u=n.n(l);const d='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',p=e=>"undefined"!==typeof ShadowRoot&&e instanceof ShadowRoot,f=e=>"undefined"!==typeof Element&&e instanceof Element,h=e=>"fixed"!==getComputedStyle(e).position&&null!==e.offsetParent,m=e=>{var t;return o()(t=i()(e.querySelectorAll(d))).call(t,e=>v(e)&&h(e))},v=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},g=function(e,t,...n){let r;r=c()(t).call(t,"mouse")||c()(t).call(t,"click")?"MouseEvents":c()(t).call(t,"key")?"KeyboardEvent":"HTMLEvents";const o=document.createEvent(r);return o.initEvent(t,...n),e.dispatchEvent(o),e},_=e=>!e.getAttribute("aria-owns"),b=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const o=r.querySelectorAll(n);return o[u()(Array.prototype).call(o,e)+t]||null},y=(e,t)=>{if(!e||!e.focus)return;let n=!1;!f(e)||v(e)||e.getAttribute("tabindex")||(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),f(e)&&n&&e.removeAttribute("tabindex")},O=e=>{e&&(y(e),!_(e)&&e.click())}},9906:function(e,t,n){"use strict";n("9bcd");var r=n("764b");e.exports=r.Reflect.apply},"997e":function(e,t,n){"use strict";n("db16")},"99a4":function(e,t,n){"use strict";var r=n("dee0").forEach,o=n("9f61"),a=o("forEach");e.exports=a?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"99da":function(e,t,n){"use strict";var r=n("bb83").IteratorPrototype,o=n("4896"),a=n("2c6c"),i=n("2874"),s=n("7463"),c=function(){return this};e.exports=function(e,t,n,l){var u=t+" Iterator";return e.prototype=o(r,{next:a(+!l,n)}),i(e,u,!1,!0),s[u]=c,e}},"99fa":function(e,t,n){"use strict";var r=n("5415");e.exports=function(e,t,n){return n?r(e.keys(),t,!0):e.forEach(t)}},"9a00":function(e,t,n){"use strict";var r=n("1301"),o=TypeError;e.exports=function(e){if("object"==typeof e&&"has"in e&&"get"in e&&"set"in e&&"delete"in e)return e;throw new o(r(e)+" is not a weakmap")}},"9a13":function(e,t,n){"use strict";e.exports=n("6118")},"9a6b":function(e,t,n){"use strict";var r=n("a5eb"),o=n("ff96").trim,a=n("83ee");r({target:"String",proto:!0,forced:a("trim")},{trim:function(){return o(this)}})},"9a73":function(e,t,n){e.exports=n("8e06")},"9ab4":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}},"9ac4":function(e,t,n){"use strict";var r=n("f94a");r("species")},"9ad7":function(e,t,n){"use strict";
/*! Element Plus Icons Vue v2.3.2 */var r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},c=(e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let c of a(t))!i.call(e,c)&&c!==n&&r(e,c,{get:()=>t[c],enumerable:!(s=o(t,c))||s.enumerable});return e},l=e=>c(r({},"__esModule",{value:!0}),e),u={};s(u,{AddLocation:()=>h,Aim:()=>_,AlarmClock:()=>M,Apple:()=>S,ArrowDown:()=>N,ArrowDownBold:()=>j,ArrowLeft:()=>G,ArrowLeftBold:()=>U,ArrowRight:()=>J,ArrowRightBold:()=>q,ArrowUp:()=>oe,ArrowUpBold:()=>ee,Avatar:()=>ce,Back:()=>pe,Baseball:()=>ve,Basketball:()=>ye,Bell:()=>Ie,BellFilled:()=>Ce,Bicycle:()=>Le,Bottom:()=>Ye,BottomLeft:()=>xe,BottomRight:()=>Be,Bowl:()=>Ke,Box:()=>Qe,Briefcase:()=>nt,Brush:()=>ut,BrushFilled:()=>it,Burger:()=>ht,Calendar:()=>_t,Camera:()=>St,CameraFilled:()=>Mt,CaretBottom:()=>jt,CaretLeft:()=>Nt,CaretRight:()=>Ut,CaretTop:()=>Gt,Cellphone:()=>qt,ChatDotRound:()=>Jt,ChatDotSquare:()=>en,ChatLineRound:()=>on,ChatLineSquare:()=>ln,ChatRound:()=>fn,ChatSquare:()=>gn,Check:()=>On,Checked:()=>wn,Cherry:()=>En,Chicken:()=>An,ChromeFilled:()=>Pn,CircleCheck:()=>zn,CircleCheckFilled:()=>Fn,CircleClose:()=>Zn,CircleCloseFilled:()=>$n,CirclePlus:()=>sr,CirclePlusFilled:()=>rr,Clock:()=>dr,Close:()=>br,CloseBold:()=>mr,Cloudy:()=>kr,Coffee:()=>Dr,CoffeeCup:()=>Tr,Coin:()=>Rr,ColdDrink:()=>Vr,Collection:()=>Wr,CollectionTag:()=>Hr,Comment:()=>Xr,Compass:()=>to,Connection:()=>ao,Coordinate:()=>lo,CopyDocument:()=>ho,Cpu:()=>_o,CreditCard:()=>Mo,Crop:()=>So,DArrowLeft:()=>jo,DArrowRight:()=>No,DCaret:()=>Uo,DataAnalysis:()=>Go,DataBoard:()=>qo,DataLine:()=>Jo,Delete:()=>ca,DeleteFilled:()=>ea,DeleteLocation:()=>oa,Dessert:()=>pa,Discount:()=>va,Dish:()=>Ca,DishDot:()=>ya,Document:()=>Ka,DocumentAdd:()=>Ia,DocumentChecked:()=>La,DocumentCopy:()=>xa,DocumentDelete:()=>Ba,DocumentRemove:()=>Ya,Download:()=>Qa,Drizzling:()=>ni,Edit:()=>ui,EditPen:()=>ii,Eleme:()=>_i,ElemeFilled:()=>hi,ElementPlus:()=>Mi,Expand:()=>Si,Failed:()=>ji,Female:()=>Ni,Files:()=>Ui,Film:()=>Gi,Filter:()=>qi,Finished:()=>Ji,FirstAidKit:()=>es,Flag:()=>os,Fold:()=>cs,Folder:()=>Ls,FolderAdd:()=>ps,FolderChecked:()=>vs,FolderDelete:()=>ys,FolderOpened:()=>Cs,FolderRemove:()=>Is,Food:()=>xs,Football:()=>Bs,ForkSpoon:()=>Ys,Fries:()=>Ks,FullScreen:()=>Qs,Goblet:()=>hc,GobletFull:()=>nc,GobletSquare:()=>uc,GobletSquareFull:()=>ic,GoldMedal:()=>_c,Goods:()=>Sc,GoodsFilled:()=>Mc,Grape:()=>jc,Grid:()=>Nc,Guide:()=>Uc,Handbag:()=>Gc,Headset:()=>qc,Help:()=>el,HelpFilled:()=>Jc,Hide:()=>ol,Histogram:()=>cl,HomeFilled:()=>pl,HotWater:()=>vl,House:()=>yl,IceCream:()=>Ll,IceCreamRound:()=>Cl,IceCreamSquare:()=>Il,IceDrink:()=>xl,IceTea:()=>Bl,InfoFilled:()=>Yl,Iphone:()=>Kl,Key:()=>Ql,KnifeFork:()=>nu,Lightning:()=>iu,Link:()=>uu,List:()=>hu,Loading:()=>_u,Location:()=>ju,LocationFilled:()=>Mu,LocationInformation:()=>Su,Lock:()=>Nu,Lollipop:()=>Uu,MagicStick:()=>Gu,Magnet:()=>qu,Male:()=>Ju,Management:()=>ed,MapLocation:()=>od,Medal:()=>cd,Memo:()=>pd,Menu:()=>vd,Message:()=>Cd,MessageBox:()=>yd,Mic:()=>Id,Microphone:()=>Ld,MilkTea:()=>xd,Minus:()=>Bd,Money:()=>Yd,Monitor:()=>Kd,Moon:()=>np,MoonNight:()=>Qd,More:()=>up,MoreFilled:()=>ip,MostlyCloudy:()=>hp,Mouse:()=>_p,Mug:()=>Mp,Mute:()=>jp,MuteNotification:()=>Sp,NoSmoking:()=>Np,Notebook:()=>Up,Notification:()=>Gp,Odometer:()=>qp,OfficeBuilding:()=>Jp,Open:()=>ef,Operation:()=>of,Opportunity:()=>lf,Orange:()=>ff,Paperclip:()=>gf,PartlyCloudy:()=>Of,Pear:()=>wf,Phone:()=>Af,PhoneFilled:()=>Ef,Picture:()=>zf,PictureFilled:()=>Pf,PictureRounded:()=>Ff,PieChart:()=>$f,Place:()=>Zf,Platform:()=>rh,Plus:()=>sh,Pointer:()=>dh,Position:()=>mh,Postcard:()=>bh,Pouring:()=>kh,Present:()=>Th,PriceTag:()=>Dh,Printer:()=>Rh,Promotion:()=>Vh,QuartzWatch:()=>Hh,QuestionFilled:()=>Wh,Rank:()=>Xh,Reading:()=>am,ReadingLamp:()=>tm,Refresh:()=>gm,RefreshLeft:()=>lm,RefreshRight:()=>fm,Refrigerator:()=>Om,Remove:()=>Em,RemoveFilled:()=>wm,Right:()=>Am,ScaleToOriginal:()=>Pm,School:()=>Fm,Scissor:()=>zm,Search:()=>$m,Select:()=>Zm,Sell:()=>rv,SemiSelect:()=>sv,Service:()=>dv,SetUp:()=>mv,Setting:()=>bv,Share:()=>kv,Ship:()=>Tv,Shop:()=>Dv,ShoppingBag:()=>Rv,ShoppingCart:()=>Hv,ShoppingCartFull:()=>Vv,ShoppingTrolley:()=>Wv,Smoking:()=>Xv,Soccer:()=>tg,SoldOut:()=>ag,Sort:()=>gg,SortDown:()=>lg,SortUp:()=>fg,Stamp:()=>Og,Star:()=>Eg,StarFilled:()=>wg,Stopwatch:()=>Ag,SuccessFilled:()=>Pg,Sugar:()=>Fg,Suitcase:()=>$g,SuitcaseLine:()=>zg,Sunny:()=>Zg,Sunrise:()=>r_,Sunset:()=>s_,Switch:()=>b_,SwitchButton:()=>d_,SwitchFilled:()=>m_,TakeawayBox:()=>k_,Ticket:()=>T_,Tickets:()=>D_,Timer:()=>R_,ToiletPaper:()=>V_,Tools:()=>H_,Top:()=>tb,TopLeft:()=>W_,TopRight:()=>X_,TrendCharts:()=>ab,Trophy:()=>fb,TrophyBase:()=>lb,TurnOff:()=>gb,Umbrella:()=>Ob,Unlock:()=>wb,Upload:()=>Ab,UploadFilled:()=>Eb,User:()=>Fb,UserFilled:()=>Pb,Van:()=>zb,VideoCamera:()=>Zb,VideoCameraFilled:()=>$b,VideoPause:()=>ry,VideoPlay:()=>sy,View:()=>dy,Wallet:()=>by,WalletFilled:()=>my,WarnTriangleFilled:()=>ky,Warning:()=>Dy,WarningFilled:()=>Ty,Watch:()=>Ry,Watermelon:()=>Vy,WindPower:()=>Hy,ZoomIn:()=>Wy,ZoomOut:()=>Xy}),e.exports=l(u);var d=n("7a23"),p=n("7a23"),f=(0,d.defineComponent)({name:"AddLocation",__name:"add-location",setup(e){return(e,t)=>((0,p.openBlock)(),(0,p.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,p.createElementVNode)("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),(0,p.createElementVNode)("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),(0,p.createElementVNode)("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),h=f,m=n("7a23"),v=n("7a23"),g=(0,m.defineComponent)({name:"Aim",__name:"aim",setup(e){return(e,t)=>((0,v.openBlock)(),(0,v.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,v.createElementVNode)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),(0,v.createElementVNode)("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),_=g,b=n("7a23"),y=n("7a23"),O=(0,b.defineComponent)({name:"AlarmClock",__name:"alarm-clock",setup(e){return(e,t)=>((0,y.openBlock)(),(0,y.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,y.createElementVNode)("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),(0,y.createElementVNode)("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),M=O,k=n("7a23"),C=n("7a23"),w=(0,k.defineComponent)({name:"Apple",__name:"apple",setup(e){return(e,t)=>((0,C.openBlock)(),(0,C.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,C.createElementVNode)("path",{fill:"currentColor",d:"M599.872 203.776a189.4 189.4 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a427 427 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664m-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688s81.28 34.688 136.96 33.536c56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152"})]))}}),S=w,T=n("7a23"),I=n("7a23"),E=(0,T.defineComponent)({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(e,t)=>((0,I.openBlock)(),(0,I.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,I.createElementVNode)("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"})]))}}),j=E,D=n("7a23"),L=n("7a23"),A=(0,D.defineComponent)({name:"ArrowDown",__name:"arrow-down",setup(e){return(e,t)=>((0,L.openBlock)(),(0,L.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,L.createElementVNode)("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),N=A,R=n("7a23"),x=n("7a23"),P=(0,R.defineComponent)({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(e,t)=>((0,x.openBlock)(),(0,x.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,x.createElementVNode)("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"})]))}}),U=P,V=n("7a23"),B=n("7a23"),F=(0,V.defineComponent)({name:"ArrowLeft",__name:"arrow-left",setup(e){return(e,t)=>((0,B.openBlock)(),(0,B.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,B.createElementVNode)("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),G=F,H=n("7a23"),Y=n("7a23"),z=(0,H.defineComponent)({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(e,t)=>((0,Y.openBlock)(),(0,Y.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Y.createElementVNode)("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"})]))}}),q=z,W=n("7a23"),K=n("7a23"),$=(0,W.defineComponent)({name:"ArrowRight",__name:"arrow-right",setup(e){return(e,t)=>((0,K.openBlock)(),(0,K.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,K.createElementVNode)("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),J=$,X=n("7a23"),Q=n("7a23"),Z=(0,X.defineComponent)({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(e,t)=>((0,Q.openBlock)(),(0,Q.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Q.createElementVNode)("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"})]))}}),ee=Z,te=n("7a23"),ne=n("7a23"),re=(0,te.defineComponent)({name:"ArrowUp",__name:"arrow-up",setup(e){return(e,t)=>((0,ne.openBlock)(),(0,ne.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ne.createElementVNode)("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),oe=re,ae=n("7a23"),ie=n("7a23"),se=(0,ae.defineComponent)({name:"Avatar",__name:"avatar",setup(e){return(e,t)=>((0,ie.openBlock)(),(0,ie.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ie.createElementVNode)("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.87 415.87 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),ce=se,le=n("7a23"),ue=n("7a23"),de=(0,le.defineComponent)({name:"Back",__name:"back",setup(e){return(e,t)=>((0,ue.openBlock)(),(0,ue.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ue.createElementVNode)("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),(0,ue.createElementVNode)("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),pe=de,fe=n("7a23"),he=n("7a23"),me=(0,fe.defineComponent)({name:"Baseball",__name:"baseball",setup(e){return(e,t)=>((0,he.openBlock)(),(0,he.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,he.createElementVNode)("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6m45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),(0,he.createElementVNode)("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896M108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1737 1737 0 0 1-11.392-65.728"})]))}}),ve=me,ge=n("7a23"),_e=n("7a23"),be=(0,ge.defineComponent)({name:"Basketball",__name:"basketball",setup(e){return(e,t)=>((0,_e.openBlock)(),(0,_e.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,_e.createElementVNode)("path",{fill:"currentColor",d:"M778.752 788.224a382.46 382.46 0 0 0 116.032-245.632 256.51 256.51 0 0 0-241.728-13.952 762.9 762.9 0 0 1 125.696 259.584m-55.04 44.224a699.65 699.65 0 0 0-125.056-269.632 256.13 256.13 0 0 0-56.064 331.968 382.7 382.7 0 0 0 181.12-62.336m-254.08 61.248A320.13 320.13 0 0 1 557.76 513.6a716 716 0 0 0-48.192-48.128 320.13 320.13 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.13 256.13 0 0 0 331.072-56.448 699.65 699.65 0 0 0-268.8-124.352 382.66 382.66 0 0 0-62.272 180.8m106.56-235.84a762.9 762.9 0 0 1 258.688 125.056 256.51 256.51 0 0 0-13.44-241.088A382.46 382.46 0 0 0 235.84 245.248m318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a780 780 0 0 1 66.176 66.112 320.83 320.83 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),ye=be,Oe=n("7a23"),Me=n("7a23"),ke=(0,Oe.defineComponent)({name:"BellFilled",__name:"bell-filled",setup(e){return(e,t)=>((0,Me.openBlock)(),(0,Me.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Me.createElementVNode)("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.13 320.13 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),Ce=ke,we=n("7a23"),Se=n("7a23"),Te=(0,we.defineComponent)({name:"Bell",__name:"bell",setup(e){return(e,t)=>((0,Se.openBlock)(),(0,Se.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Se.createElementVNode)("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),(0,Se.createElementVNode)("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),(0,Se.createElementVNode)("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),Ie=Te,Ee=n("7a23"),je=n("7a23"),De=(0,Ee.defineComponent)({name:"Bicycle",__name:"bicycle",setup(e){return(e,t)=>((0,je.openBlock)(),(0,je.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,je.createElementVNode)("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),(0,je.createElementVNode)("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),(0,je.createElementVNode)("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),(0,je.createElementVNode)("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),(0,je.createElementVNode)("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),Le=De,Ae=n("7a23"),Ne=n("7a23"),Re=(0,Ae.defineComponent)({name:"BottomLeft",__name:"bottom-left",setup(e){return(e,t)=>((0,Ne.openBlock)(),(0,Ne.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ne.createElementVNode)("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),(0,Ne.createElementVNode)("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312z"})]))}}),xe=Re,Pe=n("7a23"),Ue=n("7a23"),Ve=(0,Pe.defineComponent)({name:"BottomRight",__name:"bottom-right",setup(e){return(e,t)=>((0,Ue.openBlock)(),(0,Ue.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ue.createElementVNode)("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),(0,Ue.createElementVNode)("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),Be=Ve,Fe=n("7a23"),Ge=n("7a23"),He=(0,Fe.defineComponent)({name:"Bottom",__name:"bottom",setup(e){return(e,t)=>((0,Ge.openBlock)(),(0,Ge.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ge.createElementVNode)("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),Ye=He,ze=n("7a23"),qe=n("7a23"),We=(0,ze.defineComponent)({name:"Bowl",__name:"bowl",setup(e){return(e,t)=>((0,qe.openBlock)(),(0,qe.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,qe.createElementVNode)("path",{fill:"currentColor",d:"M714.432 704a351.74 351.74 0 0 0 148.16-256H161.408a351.74 351.74 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),Ke=We,$e=n("7a23"),Je=n("7a23"),Xe=(0,$e.defineComponent)({name:"Box",__name:"box",setup(e){return(e,t)=>((0,Je.openBlock)(),(0,Je.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Je.createElementVNode)("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64"}),(0,Je.createElementVNode)("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),(0,Je.createElementVNode)("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),Qe=Xe,Ze=n("7a23"),et=n("7a23"),tt=(0,Ze.defineComponent)({name:"Briefcase",__name:"briefcase",setup(e){return(e,t)=>((0,et.openBlock)(),(0,et.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,et.createElementVNode)("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),nt=tt,rt=n("7a23"),ot=n("7a23"),at=(0,rt.defineComponent)({name:"BrushFilled",__name:"brush-filled",setup(e){return(e,t)=>((0,ot.openBlock)(),(0,ot.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ot.createElementVNode)("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),it=at,st=n("7a23"),ct=n("7a23"),lt=(0,st.defineComponent)({name:"Brush",__name:"brush",setup(e){return(e,t)=>((0,ct.openBlock)(),(0,ct.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ct.createElementVNode)("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a664 664 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168"})]))}}),ut=lt,dt=n("7a23"),pt=n("7a23"),ft=(0,dt.defineComponent)({name:"Burger",__name:"burger",setup(e){return(e,t)=>((0,pt.openBlock)(),(0,pt.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,pt.createElementVNode)("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),ht=ft,mt=n("7a23"),vt=n("7a23"),gt=(0,mt.defineComponent)({name:"Calendar",__name:"calendar",setup(e){return(e,t)=>((0,vt.openBlock)(),(0,vt.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,vt.createElementVNode)("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),_t=gt,bt=n("7a23"),yt=n("7a23"),Ot=(0,bt.defineComponent)({name:"CameraFilled",__name:"camera-filled",setup(e){return(e,t)=>((0,yt.openBlock)(),(0,yt.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,yt.createElementVNode)("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),Mt=Ot,kt=n("7a23"),Ct=n("7a23"),wt=(0,kt.defineComponent)({name:"Camera",__name:"camera",setup(e){return(e,t)=>((0,Ct.openBlock)(),(0,Ct.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ct.createElementVNode)("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),St=wt,Tt=n("7a23"),It=n("7a23"),Et=(0,Tt.defineComponent)({name:"CaretBottom",__name:"caret-bottom",setup(e){return(e,t)=>((0,It.openBlock)(),(0,It.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,It.createElementVNode)("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),jt=Et,Dt=n("7a23"),Lt=n("7a23"),At=(0,Dt.defineComponent)({name:"CaretLeft",__name:"caret-left",setup(e){return(e,t)=>((0,Lt.openBlock)(),(0,Lt.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Lt.createElementVNode)("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),Nt=At,Rt=n("7a23"),xt=n("7a23"),Pt=(0,Rt.defineComponent)({name:"CaretRight",__name:"caret-right",setup(e){return(e,t)=>((0,xt.openBlock)(),(0,xt.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,xt.createElementVNode)("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),Ut=Pt,Vt=n("7a23"),Bt=n("7a23"),Ft=(0,Vt.defineComponent)({name:"CaretTop",__name:"caret-top",setup(e){return(e,t)=>((0,Bt.openBlock)(),(0,Bt.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Bt.createElementVNode)("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),Gt=Ft,Ht=n("7a23"),Yt=n("7a23"),zt=(0,Ht.defineComponent)({name:"Cellphone",__name:"cellphone",setup(e){return(e,t)=>((0,Yt.openBlock)(),(0,Yt.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Yt.createElementVNode)("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),qt=zt,Wt=n("7a23"),Kt=n("7a23"),$t=(0,Wt.defineComponent)({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(e,t)=>((0,Kt.openBlock)(),(0,Kt.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Kt.createElementVNode)("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),(0,Kt.createElementVNode)("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),Jt=$t,Xt=n("7a23"),Qt=n("7a23"),Zt=(0,Xt.defineComponent)({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(e,t)=>((0,Qt.openBlock)(),(0,Qt.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Qt.createElementVNode)("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),(0,Qt.createElementVNode)("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),en=Zt,tn=n("7a23"),nn=n("7a23"),rn=(0,tn.defineComponent)({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(e,t)=>((0,nn.openBlock)(),(0,nn.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,nn.createElementVNode)("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),(0,nn.createElementVNode)("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),on=rn,an=n("7a23"),sn=n("7a23"),cn=(0,an.defineComponent)({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(e,t)=>((0,sn.openBlock)(),(0,sn.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,sn.createElementVNode)("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),(0,sn.createElementVNode)("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),ln=cn,un=n("7a23"),dn=n("7a23"),pn=(0,un.defineComponent)({name:"ChatRound",__name:"chat-round",setup(e){return(e,t)=>((0,dn.openBlock)(),(0,dn.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,dn.createElementVNode)("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),fn=pn,hn=n("7a23"),mn=n("7a23"),vn=(0,hn.defineComponent)({name:"ChatSquare",__name:"chat-square",setup(e){return(e,t)=>((0,mn.openBlock)(),(0,mn.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,mn.createElementVNode)("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),gn=vn,_n=n("7a23"),bn=n("7a23"),yn=(0,_n.defineComponent)({name:"Check",__name:"check",setup(e){return(e,t)=>((0,bn.openBlock)(),(0,bn.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,bn.createElementVNode)("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),On=yn,Mn=n("7a23"),kn=n("7a23"),Cn=(0,Mn.defineComponent)({name:"Checked",__name:"checked",setup(e){return(e,t)=>((0,kn.openBlock)(),(0,kn.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,kn.createElementVNode)("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),wn=Cn,Sn=n("7a23"),Tn=n("7a23"),In=(0,Sn.defineComponent)({name:"Cherry",__name:"cherry",setup(e){return(e,t)=>((0,Tn.openBlock)(),(0,Tn.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Tn.createElementVNode)("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6M288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),En=In,jn=n("7a23"),Dn=n("7a23"),Ln=(0,jn.defineComponent)({name:"Chicken",__name:"chicken",setup(e){return(e,t)=>((0,Dn.openBlock)(),(0,Dn.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Dn.createElementVNode)("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.7 106.7 0 0 1-26.176-19.072 106.7 106.7 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112m57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52z"})]))}}),An=Ln,Nn=n("7a23"),Rn=n("7a23"),xn=(0,Nn.defineComponent)({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(e,t)=>((0,Rn.openBlock)(),(0,Rn.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[(0,Rn.createElementVNode)("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.37 212.37 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67"}),(0,Rn.createElementVNode)("path",{fill:"currentColor",d:"M576.79 401.63a127.9 127.9 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128 128 0 0 0-2.16 127.44l1.24 2.13a127.9 127.9 0 0 0 46.36 46.61 127.9 127.9 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.98 127.98 0 0 0 .29-127.46 127.96 127.96 0 0 0-46.36-46.91"}),(0,Rn.createElementVNode)("path",{fill:"currentColor",d:"M394.45 333.96A213.34 213.34 0 0 1 512 298.67h369.58A426.5 426.5 0 0 0 512 85.34a425.6 425.6 0 0 0-171.74 35.98 425.6 425.6 0 0 0-142.62 102.22l118.14 204.63a213.4 213.4 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.3 213.3 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.3 213.3 0 0 1-122.77-21.91"})]))}}),Pn=xn,Un=n("7a23"),Vn=n("7a23"),Bn=(0,Un.defineComponent)({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(e,t)=>((0,Vn.openBlock)(),(0,Vn.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Vn.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Fn=Bn,Gn=n("7a23"),Hn=n("7a23"),Yn=(0,Gn.defineComponent)({name:"CircleCheck",__name:"circle-check",setup(e){return(e,t)=>((0,Hn.openBlock)(),(0,Hn.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Hn.createElementVNode)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),(0,Hn.createElementVNode)("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),zn=Yn,qn=n("7a23"),Wn=n("7a23"),Kn=(0,qn.defineComponent)({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(e,t)=>((0,Wn.openBlock)(),(0,Wn.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Wn.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),$n=Kn,Jn=n("7a23"),Xn=n("7a23"),Qn=(0,Jn.defineComponent)({name:"CircleClose",__name:"circle-close",setup(e){return(e,t)=>((0,Xn.openBlock)(),(0,Xn.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Xn.createElementVNode)("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),(0,Xn.createElementVNode)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Zn=Qn,er=n("7a23"),tr=n("7a23"),nr=(0,er.defineComponent)({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(e,t)=>((0,tr.openBlock)(),(0,tr.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,tr.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0z"})]))}}),rr=nr,or=n("7a23"),ar=n("7a23"),ir=(0,or.defineComponent)({name:"CirclePlus",__name:"circle-plus",setup(e){return(e,t)=>((0,ar.openBlock)(),(0,ar.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ar.createElementVNode)("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),(0,ar.createElementVNode)("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),(0,ar.createElementVNode)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),sr=ir,cr=n("7a23"),lr=n("7a23"),ur=(0,cr.defineComponent)({name:"Clock",__name:"clock",setup(e){return(e,t)=>((0,lr.openBlock)(),(0,lr.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,lr.createElementVNode)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),(0,lr.createElementVNode)("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),(0,lr.createElementVNode)("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),dr=ur,pr=n("7a23"),fr=n("7a23"),hr=(0,pr.defineComponent)({name:"CloseBold",__name:"close-bold",setup(e){return(e,t)=>((0,fr.openBlock)(),(0,fr.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,fr.createElementVNode)("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496"})]))}}),mr=hr,vr=n("7a23"),gr=n("7a23"),_r=(0,vr.defineComponent)({name:"Close",__name:"close",setup(e){return(e,t)=>((0,gr.openBlock)(),(0,gr.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,gr.createElementVNode)("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),br=_r,yr=n("7a23"),Or=n("7a23"),Mr=(0,yr.defineComponent)({name:"Cloudy",__name:"cloudy",setup(e){return(e,t)=>((0,Or.openBlock)(),(0,Or.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Or.createElementVNode)("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),kr=Mr,Cr=n("7a23"),wr=n("7a23"),Sr=(0,Cr.defineComponent)({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(e,t)=>((0,wr.openBlock)(),(0,wr.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,wr.createElementVNode)("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.13 256.13 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),Tr=Sr,Ir=n("7a23"),Er=n("7a23"),jr=(0,Ir.defineComponent)({name:"Coffee",__name:"coffee",setup(e){return(e,t)=>((0,Er.openBlock)(),(0,Er.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Er.createElementVNode)("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64zm68.736 64 36.544 512H708.16l36.544-512z"})]))}}),Dr=jr,Lr=n("7a23"),Ar=n("7a23"),Nr=(0,Lr.defineComponent)({name:"Coin",__name:"coin",setup(e){return(e,t)=>((0,Ar.openBlock)(),(0,Ar.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ar.createElementVNode)("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264"}),(0,Ar.createElementVNode)("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264"}),(0,Ar.createElementVNode)("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),Rr=Nr,xr=n("7a23"),Pr=n("7a23"),Ur=(0,xr.defineComponent)({name:"ColdDrink",__name:"cold-drink",setup(e){return(e,t)=>((0,Pr.openBlock)(),(0,Pr.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Pr.createElementVNode)("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.06 192.06 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),Vr=Ur,Br=n("7a23"),Fr=n("7a23"),Gr=(0,Br.defineComponent)({name:"CollectionTag",__name:"collection-tag",setup(e){return(e,t)=>((0,Fr.openBlock)(),(0,Fr.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Fr.createElementVNode)("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),Hr=Gr,Yr=n("7a23"),zr=n("7a23"),qr=(0,Yr.defineComponent)({name:"Collection",__name:"collection",setup(e){return(e,t)=>((0,zr.openBlock)(),(0,zr.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,zr.createElementVNode)("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),(0,zr.createElementVNode)("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),Wr=qr,Kr=n("7a23"),$r=n("7a23"),Jr=(0,Kr.defineComponent)({name:"Comment",__name:"comment",setup(e){return(e,t)=>((0,$r.openBlock)(),(0,$r.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,$r.createElementVNode)("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),Xr=Jr,Qr=n("7a23"),Zr=n("7a23"),eo=(0,Qr.defineComponent)({name:"Compass",__name:"compass",setup(e){return(e,t)=>((0,Zr.openBlock)(),(0,Zr.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Zr.createElementVNode)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),(0,Zr.createElementVNode)("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),to=eo,no=n("7a23"),ro=n("7a23"),oo=(0,no.defineComponent)({name:"Connection",__name:"connection",setup(e){return(e,t)=>((0,ro.openBlock)(),(0,ro.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ro.createElementVNode)("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),(0,ro.createElementVNode)("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),ao=oo,io=n("7a23"),so=n("7a23"),co=(0,io.defineComponent)({name:"Coordinate",__name:"coordinate",setup(e){return(e,t)=>((0,so.openBlock)(),(0,so.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,so.createElementVNode)("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),(0,so.createElementVNode)("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),lo=co,uo=n("7a23"),po=n("7a23"),fo=(0,uo.defineComponent)({name:"CopyDocument",__name:"copy-document",setup(e){return(e,t)=>((0,po.openBlock)(),(0,po.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,po.createElementVNode)("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),(0,po.createElementVNode)("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),ho=fo,mo=n("7a23"),vo=n("7a23"),go=(0,mo.defineComponent)({name:"Cpu",__name:"cpu",setup(e){return(e,t)=>((0,vo.openBlock)(),(0,vo.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,vo.createElementVNode)("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),(0,vo.createElementVNode)("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),_o=go,bo=n("7a23"),yo=n("7a23"),Oo=(0,bo.defineComponent)({name:"CreditCard",__name:"credit-card",setup(e){return(e,t)=>((0,yo.openBlock)(),(0,yo.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,yo.createElementVNode)("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.35 52.35 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.35 52.35 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.35 52.35 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.35 52.35 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448S852.928 864 795.968 864H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.3 116.3 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448s41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384s17.088 41.6 17.088 98.56z"}),(0,yo.createElementVNode)("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),Mo=Oo,ko=n("7a23"),Co=n("7a23"),wo=(0,ko.defineComponent)({name:"Crop",__name:"crop",setup(e){return(e,t)=>((0,Co.openBlock)(),(0,Co.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Co.createElementVNode)("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),(0,Co.createElementVNode)("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),So=wo,To=n("7a23"),Io=n("7a23"),Eo=(0,To.defineComponent)({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(e,t)=>((0,Io.openBlock)(),(0,Io.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Io.createElementVNode)("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),jo=Eo,Do=n("7a23"),Lo=n("7a23"),Ao=(0,Do.defineComponent)({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(e,t)=>((0,Lo.openBlock)(),(0,Lo.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Lo.createElementVNode)("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),No=Ao,Ro=n("7a23"),xo=n("7a23"),Po=(0,Ro.defineComponent)({name:"DCaret",__name:"d-caret",setup(e){return(e,t)=>((0,xo.openBlock)(),(0,xo.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,xo.createElementVNode)("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),Uo=Po,Vo=n("7a23"),Bo=n("7a23"),Fo=(0,Vo.defineComponent)({name:"DataAnalysis",__name:"data-analysis",setup(e){return(e,t)=>((0,Bo.openBlock)(),(0,Bo.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Bo.createElementVNode)("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),Go=Fo,Ho=n("7a23"),Yo=n("7a23"),zo=(0,Ho.defineComponent)({name:"DataBoard",__name:"data-board",setup(e){return(e,t)=>((0,Yo.openBlock)(),(0,Yo.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Yo.createElementVNode)("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),(0,Yo.createElementVNode)("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),(0,Yo.createElementVNode)("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),qo=zo,Wo=n("7a23"),Ko=n("7a23"),$o=(0,Wo.defineComponent)({name:"DataLine",__name:"data-line",setup(e){return(e,t)=>((0,Ko.openBlock)(),(0,Ko.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ko.createElementVNode)("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),Jo=$o,Xo=n("7a23"),Qo=n("7a23"),Zo=(0,Xo.defineComponent)({name:"DeleteFilled",__name:"delete-filled",setup(e){return(e,t)=>((0,Qo.openBlock)(),(0,Qo.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Qo.createElementVNode)("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),ea=Zo,ta=n("7a23"),na=n("7a23"),ra=(0,ta.defineComponent)({name:"DeleteLocation",__name:"delete-location",setup(e){return(e,t)=>((0,na.openBlock)(),(0,na.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,na.createElementVNode)("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),(0,na.createElementVNode)("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),(0,na.createElementVNode)("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),oa=ra,aa=n("7a23"),ia=n("7a23"),sa=(0,aa.defineComponent)({name:"Delete",__name:"delete",setup(e){return(e,t)=>((0,ia.openBlock)(),(0,ia.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ia.createElementVNode)("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),ca=sa,la=n("7a23"),ua=n("7a23"),da=(0,la.defineComponent)({name:"Dessert",__name:"dessert",setup(e){return(e,t)=>((0,ua.openBlock)(),(0,ua.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ua.createElementVNode)("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.81 143.81 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.81 143.81 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),pa=da,fa=n("7a23"),ha=n("7a23"),ma=(0,fa.defineComponent)({name:"Discount",__name:"discount",setup(e){return(e,t)=>((0,ha.openBlock)(),(0,ha.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ha.createElementVNode)("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),(0,ha.createElementVNode)("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),va=ma,ga=n("7a23"),_a=n("7a23"),ba=(0,ga.defineComponent)({name:"DishDot",__name:"dish-dot",setup(e){return(e,t)=>((0,_a.openBlock)(),(0,_a.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,_a.createElementVNode)("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.19 448.19 0 0 1 955.392 768H68.544A448.19 448.19 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),ya=ba,Oa=n("7a23"),Ma=n("7a23"),ka=(0,Oa.defineComponent)({name:"Dish",__name:"dish",setup(e){return(e,t)=>((0,Ma.openBlock)(),(0,Ma.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ma.createElementVNode)("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),Ca=ka,wa=n("7a23"),Sa=n("7a23"),Ta=(0,wa.defineComponent)({name:"DocumentAdd",__name:"document-add",setup(e){return(e,t)=>((0,Sa.openBlock)(),(0,Sa.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Sa.createElementVNode)("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),Ia=Ta,Ea=n("7a23"),ja=n("7a23"),Da=(0,Ea.defineComponent)({name:"DocumentChecked",__name:"document-checked",setup(e){return(e,t)=>((0,ja.openBlock)(),(0,ja.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ja.createElementVNode)("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),La=Da,Aa=n("7a23"),Na=n("7a23"),Ra=(0,Aa.defineComponent)({name:"DocumentCopy",__name:"document-copy",setup(e){return(e,t)=>((0,Na.openBlock)(),(0,Na.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Na.createElementVNode)("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),xa=Ra,Pa=n("7a23"),Ua=n("7a23"),Va=(0,Pa.defineComponent)({name:"DocumentDelete",__name:"document-delete",setup(e){return(e,t)=>((0,Ua.openBlock)(),(0,Ua.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ua.createElementVNode)("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248z"})]))}}),Ba=Va,Fa=n("7a23"),Ga=n("7a23"),Ha=(0,Fa.defineComponent)({name:"DocumentRemove",__name:"document-remove",setup(e){return(e,t)=>((0,Ga.openBlock)(),(0,Ga.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ga.createElementVNode)("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),Ya=Ha,za=n("7a23"),qa=n("7a23"),Wa=(0,za.defineComponent)({name:"Document",__name:"document",setup(e){return(e,t)=>((0,qa.openBlock)(),(0,qa.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,qa.createElementVNode)("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Ka=Wa,$a=n("7a23"),Ja=n("7a23"),Xa=(0,$a.defineComponent)({name:"Download",__name:"download",setup(e){return(e,t)=>((0,Ja.openBlock)(),(0,Ja.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ja.createElementVNode)("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),Qa=Xa,Za=n("7a23"),ei=n("7a23"),ti=(0,Za.defineComponent)({name:"Drizzling",__name:"drizzling",setup(e){return(e,t)=>((0,ei.openBlock)(),(0,ei.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ei.createElementVNode)("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),ni=ti,ri=n("7a23"),oi=n("7a23"),ai=(0,ri.defineComponent)({name:"EditPen",__name:"edit-pen",setup(e){return(e,t)=>((0,oi.openBlock)(),(0,oi.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,oi.createElementVNode)("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"})]))}}),ii=ai,si=n("7a23"),ci=n("7a23"),li=(0,si.defineComponent)({name:"Edit",__name:"edit",setup(e){return(e,t)=>((0,ci.openBlock)(),(0,ci.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ci.createElementVNode)("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),(0,ci.createElementVNode)("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),ui=li,di=n("7a23"),pi=n("7a23"),fi=(0,di.defineComponent)({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(e,t)=>((0,pi.openBlock)(),(0,pi.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,pi.createElementVNode)("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.69 330.69 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.55 47.55 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.3 234.3 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.55 47.55 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),hi=fi,mi=n("7a23"),vi=n("7a23"),gi=(0,mi.defineComponent)({name:"Eleme",__name:"eleme",setup(e){return(e,t)=>((0,vi.openBlock)(),(0,vi.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,vi.createElementVNode)("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24m526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.23 63.23 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8z"})]))}}),_i=gi,bi=n("7a23"),yi=n("7a23"),Oi=(0,bi.defineComponent)({name:"ElementPlus",__name:"element-plus",setup(e){return(e,t)=>((0,yi.openBlock)(),(0,yi.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,yi.createElementVNode)("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6q19.2-7.65 38.4 0s279 161.3 309.8 179.2c17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64z"})]))}}),Mi=Oi,ki=n("7a23"),Ci=n("7a23"),wi=(0,ki.defineComponent)({name:"Expand",__name:"expand",setup(e){return(e,t)=>((0,Ci.openBlock)(),(0,Ci.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ci.createElementVNode)("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),Si=wi,Ti=n("7a23"),Ii=n("7a23"),Ei=(0,Ti.defineComponent)({name:"Failed",__name:"failed",setup(e){return(e,t)=>((0,Ii.openBlock)(),(0,Ii.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ii.createElementVNode)("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),ji=Ei,Di=n("7a23"),Li=n("7a23"),Ai=(0,Di.defineComponent)({name:"Female",__name:"female",setup(e){return(e,t)=>((0,Li.openBlock)(),(0,Li.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Li.createElementVNode)("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),(0,Li.createElementVNode)("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),(0,Li.createElementVNode)("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),Ni=Ai,Ri=n("7a23"),xi=n("7a23"),Pi=(0,Ri.defineComponent)({name:"Files",__name:"files",setup(e){return(e,t)=>((0,xi.openBlock)(),(0,xi.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,xi.createElementVNode)("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),Ui=Pi,Vi=n("7a23"),Bi=n("7a23"),Fi=(0,Vi.defineComponent)({name:"Film",__name:"film",setup(e){return(e,t)=>((0,Bi.openBlock)(),(0,Bi.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Bi.createElementVNode)("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),(0,Bi.createElementVNode)("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),Gi=Fi,Hi=n("7a23"),Yi=n("7a23"),zi=(0,Hi.defineComponent)({name:"Filter",__name:"filter",setup(e){return(e,t)=>((0,Yi.openBlock)(),(0,Yi.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Yi.createElementVNode)("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),qi=zi,Wi=n("7a23"),Ki=n("7a23"),$i=(0,Wi.defineComponent)({name:"Finished",__name:"finished",setup(e){return(e,t)=>((0,Ki.openBlock)(),(0,Ki.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ki.createElementVNode)("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),Ji=$i,Xi=n("7a23"),Qi=n("7a23"),Zi=(0,Xi.defineComponent)({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(e,t)=>((0,Qi.openBlock)(),(0,Qi.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Qi.createElementVNode)("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),(0,Qi.createElementVNode)("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),es=Zi,ts=n("7a23"),ns=n("7a23"),rs=(0,ts.defineComponent)({name:"Flag",__name:"flag",setup(e){return(e,t)=>((0,ns.openBlock)(),(0,ns.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ns.createElementVNode)("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),os=rs,as=n("7a23"),is=n("7a23"),ss=(0,as.defineComponent)({name:"Fold",__name:"fold",setup(e){return(e,t)=>((0,is.openBlock)(),(0,is.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,is.createElementVNode)("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),cs=ss,ls=n("7a23"),us=n("7a23"),ds=(0,ls.defineComponent)({name:"FolderAdd",__name:"folder-add",setup(e){return(e,t)=>((0,us.openBlock)(),(0,us.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,us.createElementVNode)("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),ps=ds,fs=n("7a23"),hs=n("7a23"),ms=(0,fs.defineComponent)({name:"FolderChecked",__name:"folder-checked",setup(e){return(e,t)=>((0,hs.openBlock)(),(0,hs.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,hs.createElementVNode)("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),vs=ms,gs=n("7a23"),_s=n("7a23"),bs=(0,gs.defineComponent)({name:"FolderDelete",__name:"folder-delete",setup(e){return(e,t)=>((0,_s.openBlock)(),(0,_s.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,_s.createElementVNode)("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),ys=bs,Os=n("7a23"),Ms=n("7a23"),ks=(0,Os.defineComponent)({name:"FolderOpened",__name:"folder-opened",setup(e){return(e,t)=>((0,Ms.openBlock)(),(0,Ms.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ms.createElementVNode)("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),Cs=ks,ws=n("7a23"),Ss=n("7a23"),Ts=(0,ws.defineComponent)({name:"FolderRemove",__name:"folder-remove",setup(e){return(e,t)=>((0,Ss.openBlock)(),(0,Ss.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ss.createElementVNode)("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),Is=Ts,Es=n("7a23"),js=n("7a23"),Ds=(0,Es.defineComponent)({name:"Folder",__name:"folder",setup(e){return(e,t)=>((0,js.openBlock)(),(0,js.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,js.createElementVNode)("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),Ls=Ds,As=n("7a23"),Ns=n("7a23"),Rs=(0,As.defineComponent)({name:"Food",__name:"food",setup(e){return(e,t)=>((0,Ns.openBlock)(),(0,Ns.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ns.createElementVNode)("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),xs=Rs,Ps=n("7a23"),Us=n("7a23"),Vs=(0,Ps.defineComponent)({name:"Football",__name:"football",setup(e){return(e,t)=>((0,Us.openBlock)(),(0,Us.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Us.createElementVNode)("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),(0,Us.createElementVNode)("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a386 386 0 0 1-80.448-91.648m653.696-5.312a385.9 385.9 0 0 1-83.776 96.96l-32.512-56.384a322.9 322.9 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184M465.984 445.248l11.136-63.104a323.6 323.6 0 0 0 69.76 0l11.136 63.104a388 388 0 0 1-92.032 0m-62.72-12.8A381.8 381.8 0 0 1 320 396.544l32-55.424a320 320 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.8 381.8 0 0 1-83.328 35.84l-11.2-63.552A320 320 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.9 385.9 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072m657.536.128a1443 1443 0 0 1-49.024 43.072 321.4 321.4 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408M465.92 578.752a388 388 0 0 1 92.032 0l-11.136 63.104a323.6 323.6 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a320 320 0 0 0-62.464 27.712L320 627.392a381.8 381.8 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.3 318.3 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),Bs=Vs,Fs=n("7a23"),Gs=n("7a23"),Hs=(0,Fs.defineComponent)({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(e,t)=>((0,Gs.openBlock)(),(0,Gs.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Gs.createElementVNode)("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56M672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),Ys=Hs,zs=n("7a23"),qs=n("7a23"),Ws=(0,zs.defineComponent)({name:"Fries",__name:"fries",setup(e){return(e,t)=>((0,qs.openBlock)(),(0,qs.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,qs.createElementVNode)("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.74 95.74 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128 128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132 132 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),Ks=Ws,$s=n("7a23"),Js=n("7a23"),Xs=(0,$s.defineComponent)({name:"FullScreen",__name:"full-screen",setup(e){return(e,t)=>((0,Js.openBlock)(),(0,Js.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Js.createElementVNode)("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),Qs=Xs,Zs=n("7a23"),ec=n("7a23"),tc=(0,Zs.defineComponent)({name:"GobletFull",__name:"goblet-full",setup(e){return(e,t)=>((0,ec.openBlock)(),(0,ec.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ec.createElementVNode)("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),nc=tc,rc=n("7a23"),oc=n("7a23"),ac=(0,rc.defineComponent)({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(e,t)=>((0,oc.openBlock)(),(0,oc.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,oc.createElementVNode)("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952 952 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),ic=ac,sc=n("7a23"),cc=n("7a23"),lc=(0,sc.defineComponent)({name:"GobletSquare",__name:"goblet-square",setup(e){return(e,t)=>((0,cc.openBlock)(),(0,cc.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,cc.createElementVNode)("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),uc=lc,dc=n("7a23"),pc=n("7a23"),fc=(0,dc.defineComponent)({name:"Goblet",__name:"goblet",setup(e){return(e,t)=>((0,pc.openBlock)(),(0,pc.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,pc.createElementVNode)("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),hc=fc,mc=n("7a23"),vc=n("7a23"),gc=(0,mc.defineComponent)({name:"GoldMedal",__name:"gold-medal",setup(e){return(e,t)=>((0,vc.openBlock)(),(0,vc.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[(0,vc.createElementVNode)("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16M640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a360 360 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98"}),(0,vc.createElementVNode)("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),_c=gc,bc=n("7a23"),yc=n("7a23"),Oc=(0,bc.defineComponent)({name:"GoodsFilled",__name:"goods-filled",setup(e){return(e,t)=>((0,yc.openBlock)(),(0,yc.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,yc.createElementVNode)("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),Mc=Oc,kc=n("7a23"),Cc=n("7a23"),wc=(0,kc.defineComponent)({name:"Goods",__name:"goods",setup(e){return(e,t)=>((0,Cc.openBlock)(),(0,Cc.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Cc.createElementVNode)("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),Sc=wc,Tc=n("7a23"),Ic=n("7a23"),Ec=(0,Tc.defineComponent)({name:"Grape",__name:"grape",setup(e){return(e,t)=>((0,Ic.openBlock)(),(0,Ic.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ic.createElementVNode)("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),jc=Ec,Dc=n("7a23"),Lc=n("7a23"),Ac=(0,Dc.defineComponent)({name:"Grid",__name:"grid",setup(e){return(e,t)=>((0,Lc.openBlock)(),(0,Lc.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Lc.createElementVNode)("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),Nc=Ac,Rc=n("7a23"),xc=n("7a23"),Pc=(0,Rc.defineComponent)({name:"Guide",__name:"guide",setup(e){return(e,t)=>((0,xc.openBlock)(),(0,xc.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,xc.createElementVNode)("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),(0,xc.createElementVNode)("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),Uc=Pc,Vc=n("7a23"),Bc=n("7a23"),Fc=(0,Vc.defineComponent)({name:"Handbag",__name:"handbag",setup(e){return(e,t)=>((0,Bc.openBlock)(),(0,Bc.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[(0,Bc.createElementVNode)("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),Gc=Fc,Hc=n("7a23"),Yc=n("7a23"),zc=(0,Hc.defineComponent)({name:"Headset",__name:"headset",setup(e){return(e,t)=>((0,Yc.openBlock)(),(0,Yc.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Yc.createElementVNode)("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),qc=zc,Wc=n("7a23"),Kc=n("7a23"),$c=(0,Wc.defineComponent)({name:"HelpFilled",__name:"help-filled",setup(e){return(e,t)=>((0,Kc.openBlock)(),(0,Kc.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Kc.createElementVNode)("path",{fill:"currentColor",d:"M926.784 480H701.312A192.51 192.51 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.51 192.51 0 0 0 701.312 544zM97.28 544h225.472A192.51 192.51 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.51 192.51 0 0 0 322.688 480H97.216z"})]))}}),Jc=$c,Xc=n("7a23"),Qc=n("7a23"),Zc=(0,Xc.defineComponent)({name:"Help",__name:"help",setup(e){return(e,t)=>((0,Qc.openBlock)(),(0,Qc.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Qc.createElementVNode)("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.9 254.9 0 0 1 512 768a254.9 254.9 0 0 1-156.992-53.76l-90.944 91.008A382.46 382.46 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.46 382.46 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512s-20.096 113.6-53.76 156.992zm-45.312-541.184A382.46 382.46 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.9 254.9 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76zm-541.184 45.312A382.46 382.46 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.9 254.9 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.6 194.6 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.23 191.23 0 0 0-67.968-146.56A191.3 191.3 0 0 0 512 320a191.23 191.23 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.23 191.23 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),el=Zc,tl=n("7a23"),nl=n("7a23"),rl=(0,tl.defineComponent)({name:"Hide",__name:"hide",setup(e){return(e,t)=>((0,nl.openBlock)(),(0,nl.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,nl.createElementVNode)("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),(0,nl.createElementVNode)("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),ol=rl,al=n("7a23"),il=n("7a23"),sl=(0,al.defineComponent)({name:"Histogram",__name:"histogram",setup(e){return(e,t)=>((0,il.openBlock)(),(0,il.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,il.createElementVNode)("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),cl=sl,ll=n("7a23"),ul=n("7a23"),dl=(0,ll.defineComponent)({name:"HomeFilled",__name:"home-filled",setup(e){return(e,t)=>((0,ul.openBlock)(),(0,ul.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ul.createElementVNode)("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),pl=dl,fl=n("7a23"),hl=n("7a23"),ml=(0,fl.defineComponent)({name:"HotWater",__name:"hot-water",setup(e){return(e,t)=>((0,hl.openBlock)(),(0,hl.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,hl.createElementVNode)("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134M512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133M375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267"})]))}}),vl=ml,gl=n("7a23"),_l=n("7a23"),bl=(0,gl.defineComponent)({name:"House",__name:"house",setup(e){return(e,t)=>((0,_l.openBlock)(),(0,_l.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,_l.createElementVNode)("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),yl=bl,Ol=n("7a23"),Ml=n("7a23"),kl=(0,Ol.defineComponent)({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(e,t)=>((0,Ml.openBlock)(),(0,Ml.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ml.createElementVNode)("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0"})]))}}),Cl=kl,wl=n("7a23"),Sl=n("7a23"),Tl=(0,wl.defineComponent)({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(e,t)=>((0,Sl.openBlock)(),(0,Sl.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Sl.createElementVNode)("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),Il=Tl,El=n("7a23"),jl=n("7a23"),Dl=(0,El.defineComponent)({name:"IceCream",__name:"ice-cream",setup(e){return(e,t)=>((0,jl.openBlock)(),(0,jl.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,jl.createElementVNode)("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.13 208.13 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0m351.36 0h286.272a144 144 0 0 0-286.272 0m-294.848 64 271.808 396.608L778.24 512zM511.68 352.64a207.87 207.87 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),Ll=Dl,Al=n("7a23"),Nl=n("7a23"),Rl=(0,Al.defineComponent)({name:"IceDrink",__name:"ice-drink",setup(e){return(e,t)=>((0,Nl.openBlock)(),(0,Nl.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Nl.createElementVNode)("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.13 256.13 0 0 0 512 192.64m-64 8.064A256.45 256.45 0 0 0 264.256 384H448zm64-72.064A320.13 320.13 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.38 320.38 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),xl=Rl,Pl=n("7a23"),Ul=n("7a23"),Vl=(0,Pl.defineComponent)({name:"IceTea",__name:"ice-tea",setup(e){return(e,t)=>((0,Ul.openBlock)(),(0,Ul.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ul.createElementVNode)("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),Bl=Vl,Fl=n("7a23"),Gl=n("7a23"),Hl=(0,Fl.defineComponent)({name:"InfoFilled",__name:"info-filled",setup(e){return(e,t)=>((0,Gl.openBlock)(),(0,Gl.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Gl.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Yl=Hl,zl=n("7a23"),ql=n("7a23"),Wl=(0,zl.defineComponent)({name:"Iphone",__name:"iphone",setup(e){return(e,t)=>((0,ql.openBlock)(),(0,ql.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ql.createElementVNode)("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),Kl=Wl,$l=n("7a23"),Jl=n("7a23"),Xl=(0,$l.defineComponent)({name:"Key",__name:"key",setup(e){return(e,t)=>((0,Jl.openBlock)(),(0,Jl.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Jl.createElementVNode)("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),Ql=Xl,Zl=n("7a23"),eu=n("7a23"),tu=(0,Zl.defineComponent)({name:"KnifeFork",__name:"knife-fork",setup(e){return(e,t)=>((0,eu.openBlock)(),(0,eu.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,eu.createElementVNode)("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256s32 177.152 32 288z"})]))}}),nu=tu,ru=n("7a23"),ou=n("7a23"),au=(0,ru.defineComponent)({name:"Lightning",__name:"lightning",setup(e){return(e,t)=>((0,ou.openBlock)(),(0,ou.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ou.createElementVNode)("path",{fill:"currentColor",d:"M288 671.36v64.128A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),(0,ou.createElementVNode)("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),iu=au,su=n("7a23"),cu=n("7a23"),lu=(0,su.defineComponent)({name:"Link",__name:"link",setup(e){return(e,t)=>((0,cu.openBlock)(),(0,cu.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,cu.createElementVNode)("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),uu=lu,du=n("7a23"),pu=n("7a23"),fu=(0,du.defineComponent)({name:"List",__name:"list",setup(e){return(e,t)=>((0,pu.openBlock)(),(0,pu.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,pu.createElementVNode)("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),hu=fu,mu=n("7a23"),vu=n("7a23"),gu=(0,mu.defineComponent)({name:"Loading",__name:"loading",setup(e){return(e,t)=>((0,vu.openBlock)(),(0,vu.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,vu.createElementVNode)("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),_u=gu,bu=n("7a23"),yu=n("7a23"),Ou=(0,bu.defineComponent)({name:"LocationFilled",__name:"location-filled",setup(e){return(e,t)=>((0,yu.openBlock)(),(0,yu.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,yu.createElementVNode)("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),Mu=Ou,ku=n("7a23"),Cu=n("7a23"),wu=(0,ku.defineComponent)({name:"LocationInformation",__name:"location-information",setup(e){return(e,t)=>((0,Cu.openBlock)(),(0,Cu.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Cu.createElementVNode)("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),(0,Cu.createElementVNode)("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),(0,Cu.createElementVNode)("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),Su=wu,Tu=n("7a23"),Iu=n("7a23"),Eu=(0,Tu.defineComponent)({name:"Location",__name:"location",setup(e){return(e,t)=>((0,Iu.openBlock)(),(0,Iu.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Iu.createElementVNode)("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),(0,Iu.createElementVNode)("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),ju=Eu,Du=n("7a23"),Lu=n("7a23"),Au=(0,Du.defineComponent)({name:"Lock",__name:"lock",setup(e){return(e,t)=>((0,Lu.openBlock)(),(0,Lu.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Lu.createElementVNode)("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),(0,Lu.createElementVNode)("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),Nu=Au,Ru=n("7a23"),xu=n("7a23"),Pu=(0,Ru.defineComponent)({name:"Lollipop",__name:"lollipop",setup(e){return(e,t)=>((0,xu.openBlock)(),(0,xu.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,xu.createElementVNode)("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744m-54.464-36.032a322 322 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),Uu=Pu,Vu=n("7a23"),Bu=n("7a23"),Fu=(0,Vu.defineComponent)({name:"MagicStick",__name:"magic-stick",setup(e){return(e,t)=>((0,Bu.openBlock)(),(0,Bu.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Bu.createElementVNode)("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),Gu=Fu,Hu=n("7a23"),Yu=n("7a23"),zu=(0,Hu.defineComponent)({name:"Magnet",__name:"magnet",setup(e){return(e,t)=>((0,Yu.openBlock)(),(0,Yu.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Yu.createElementVNode)("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),qu=zu,Wu=n("7a23"),Ku=n("7a23"),$u=(0,Wu.defineComponent)({name:"Male",__name:"male",setup(e){return(e,t)=>((0,Ku.openBlock)(),(0,Ku.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ku.createElementVNode)("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),(0,Ku.createElementVNode)("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),(0,Ku.createElementVNode)("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),Ju=$u,Xu=n("7a23"),Qu=n("7a23"),Zu=(0,Xu.defineComponent)({name:"Management",__name:"management",setup(e){return(e,t)=>((0,Qu.openBlock)(),(0,Qu.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Qu.createElementVNode)("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),ed=Zu,td=n("7a23"),nd=n("7a23"),rd=(0,td.defineComponent)({name:"MapLocation",__name:"map-location",setup(e){return(e,t)=>((0,nd.openBlock)(),(0,nd.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,nd.createElementVNode)("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),(0,nd.createElementVNode)("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),od=rd,ad=n("7a23"),id=n("7a23"),sd=(0,ad.defineComponent)({name:"Medal",__name:"medal",setup(e){return(e,t)=>((0,id.openBlock)(),(0,id.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,id.createElementVNode)("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),(0,id.createElementVNode)("path",{fill:"currentColor",d:"M576 128H448v200a286.7 286.7 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96s-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),cd=sd,ld=n("7a23"),ud=n("7a23"),dd=(0,ld.defineComponent)({name:"Memo",__name:"memo",setup(e){return(e,t)=>((0,ud.openBlock)(),(0,ud.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[(0,ud.createElementVNode)("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),(0,ud.createElementVNode)("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),(0,ud.createElementVNode)("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),pd=dd,fd=n("7a23"),hd=n("7a23"),md=(0,fd.defineComponent)({name:"Menu",__name:"menu",setup(e){return(e,t)=>((0,hd.openBlock)(),(0,hd.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,hd.createElementVNode)("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),vd=md,gd=n("7a23"),_d=n("7a23"),bd=(0,gd.defineComponent)({name:"MessageBox",__name:"message-box",setup(e){return(e,t)=>((0,_d.openBlock)(),(0,_d.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,_d.createElementVNode)("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128"})]))}}),yd=bd,Od=n("7a23"),Md=n("7a23"),kd=(0,Od.defineComponent)({name:"Message",__name:"message",setup(e){return(e,t)=>((0,Md.openBlock)(),(0,Md.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Md.createElementVNode)("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),(0,Md.createElementVNode)("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224z"})]))}}),Cd=kd,wd=n("7a23"),Sd=n("7a23"),Td=(0,wd.defineComponent)({name:"Mic",__name:"mic",setup(e){return(e,t)=>((0,Sd.openBlock)(),(0,Sd.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Sd.createElementVNode)("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),Id=Td,Ed=n("7a23"),jd=n("7a23"),Dd=(0,Ed.defineComponent)({name:"Microphone",__name:"microphone",setup(e){return(e,t)=>((0,jd.openBlock)(),(0,jd.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,jd.createElementVNode)("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),Ld=Dd,Ad=n("7a23"),Nd=n("7a23"),Rd=(0,Ad.defineComponent)({name:"MilkTea",__name:"milk-tea",setup(e){return(e,t)=>((0,Nd.openBlock)(),(0,Nd.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Nd.createElementVNode)("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),xd=Rd,Pd=n("7a23"),Ud=n("7a23"),Vd=(0,Pd.defineComponent)({name:"Minus",__name:"minus",setup(e){return(e,t)=>((0,Ud.openBlock)(),(0,Ud.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ud.createElementVNode)("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),Bd=Vd,Fd=n("7a23"),Gd=n("7a23"),Hd=(0,Fd.defineComponent)({name:"Money",__name:"money",setup(e){return(e,t)=>((0,Gd.openBlock)(),(0,Gd.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Gd.createElementVNode)("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),(0,Gd.createElementVNode)("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.06 29.06 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),(0,Gd.createElementVNode)("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),Yd=Hd,zd=n("7a23"),qd=n("7a23"),Wd=(0,zd.defineComponent)({name:"Monitor",__name:"monitor",setup(e){return(e,t)=>((0,qd.openBlock)(),(0,qd.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,qd.createElementVNode)("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),Kd=Wd,$d=n("7a23"),Jd=n("7a23"),Xd=(0,$d.defineComponent)({name:"MoonNight",__name:"moon-night",setup(e){return(e,t)=>((0,Jd.openBlock)(),(0,Jd.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Jd.createElementVNode)("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.3 448.3 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),(0,Jd.createElementVNode)("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),Qd=Xd,Zd=n("7a23"),ep=n("7a23"),tp=(0,Zd.defineComponent)({name:"Moon",__name:"moon",setup(e){return(e,t)=>((0,ep.openBlock)(),(0,ep.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ep.createElementVNode)("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 391 391 0 0 0-17.408 16.384m181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),np=tp,rp=n("7a23"),op=n("7a23"),ap=(0,rp.defineComponent)({name:"MoreFilled",__name:"more-filled",setup(e){return(e,t)=>((0,op.openBlock)(),(0,op.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,op.createElementVNode)("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),ip=ap,sp=n("7a23"),cp=n("7a23"),lp=(0,sp.defineComponent)({name:"More",__name:"more",setup(e){return(e,t)=>((0,cp.openBlock)(),(0,cp.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,cp.createElementVNode)("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),up=lp,dp=n("7a23"),pp=n("7a23"),fp=(0,dp.defineComponent)({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(e,t)=>((0,pp.openBlock)(),(0,pp.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,pp.createElementVNode)("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.81 207.81 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.81 271.81 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),hp=fp,mp=n("7a23"),vp=n("7a23"),gp=(0,mp.defineComponent)({name:"Mouse",__name:"mouse",setup(e){return(e,t)=>((0,vp.openBlock)(),(0,vp.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,vp.createElementVNode)("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112q-30.144 16.128-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76q16.128 30.144 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112q30.144-16.128 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.46 110.46 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.46 174.46 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.46 174.46 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.46 174.46 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),(0,vp.createElementVNode)("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),_p=gp,bp=n("7a23"),yp=n("7a23"),Op=(0,bp.defineComponent)({name:"Mug",__name:"mug",setup(e){return(e,t)=>((0,yp.openBlock)(),(0,yp.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,yp.createElementVNode)("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),Mp=Op,kp=n("7a23"),Cp=n("7a23"),wp=(0,kp.defineComponent)({name:"MuteNotification",__name:"mute-notification",setup(e){return(e,t)=>((0,Cp.openBlock)(),(0,Cp.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Cp.createElementVNode)("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.13 320.13 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.55 319.55 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),(0,Cp.createElementVNode)("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),Sp=wp,Tp=n("7a23"),Ip=n("7a23"),Ep=(0,Tp.defineComponent)({name:"Mute",__name:"mute",setup(e){return(e,t)=>((0,Ip.openBlock)(),(0,Ip.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ip.createElementVNode)("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.23 191.23 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A223 223 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.98 286.98 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),(0,Ip.createElementVNode)("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),jp=Ep,Dp=n("7a23"),Lp=n("7a23"),Ap=(0,Dp.defineComponent)({name:"NoSmoking",__name:"no-smoking",setup(e){return(e,t)=>((0,Lp.openBlock)(),(0,Lp.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Lp.createElementVNode)("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),Np=Ap,Rp=n("7a23"),xp=n("7a23"),Pp=(0,Rp.defineComponent)({name:"Notebook",__name:"notebook",setup(e){return(e,t)=>((0,xp.openBlock)(),(0,xp.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,xp.createElementVNode)("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),(0,xp.createElementVNode)("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),Up=Pp,Vp=n("7a23"),Bp=n("7a23"),Fp=(0,Vp.defineComponent)({name:"Notification",__name:"notification",setup(e){return(e,t)=>((0,Bp.openBlock)(),(0,Bp.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Bp.createElementVNode)("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),(0,Bp.createElementVNode)("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),Gp=Fp,Hp=n("7a23"),Yp=n("7a23"),zp=(0,Hp.defineComponent)({name:"Odometer",__name:"odometer",setup(e){return(e,t)=>((0,Yp.openBlock)(),(0,Yp.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Yp.createElementVNode)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),(0,Yp.createElementVNode)("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),(0,Yp.createElementVNode)("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),qp=zp,Wp=n("7a23"),Kp=n("7a23"),$p=(0,Wp.defineComponent)({name:"OfficeBuilding",__name:"office-building",setup(e){return(e,t)=>((0,Kp.openBlock)(),(0,Kp.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Kp.createElementVNode)("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),(0,Kp.createElementVNode)("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),(0,Kp.createElementVNode)("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),Jp=$p,Xp=n("7a23"),Qp=n("7a23"),Zp=(0,Xp.defineComponent)({name:"Open",__name:"open",setup(e){return(e,t)=>((0,Qp.openBlock)(),(0,Qp.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Qp.createElementVNode)("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),(0,Qp.createElementVNode)("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),ef=Zp,tf=n("7a23"),nf=n("7a23"),rf=(0,tf.defineComponent)({name:"Operation",__name:"operation",setup(e){return(e,t)=>((0,nf.openBlock)(),(0,nf.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,nf.createElementVNode)("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),of=rf,af=n("7a23"),sf=n("7a23"),cf=(0,af.defineComponent)({name:"Opportunity",__name:"opportunity",setup(e){return(e,t)=>((0,sf.openBlock)(),(0,sf.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,sf.createElementVNode)("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.66 350.66 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.55 351.55 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),lf=cf,uf=n("7a23"),df=n("7a23"),pf=(0,uf.defineComponent)({name:"Orange",__name:"orange",setup(e){return(e,t)=>((0,df.openBlock)(),(0,df.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,df.createElementVNode)("path",{fill:"currentColor",d:"M544 894.72a382.34 382.34 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.34 382.34 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024zM894.656 480a382.34 382.34 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024zm-134.72-261.248A382.34 382.34 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.34 382.34 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.34 382.34 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.34 382.34 0 0 0 89.408 215.936l182.976-182.912A127.2 127.2 0 0 1 388.032 544zm134.72 261.248A382.34 382.34 0 0 0 480 894.656V635.968a127.2 127.2 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),ff=pf,hf=n("7a23"),mf=n("7a23"),vf=(0,hf.defineComponent)({name:"Paperclip",__name:"paperclip",setup(e){return(e,t)=>((0,mf.openBlock)(),(0,mf.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,mf.createElementVNode)("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744z"})]))}}),gf=vf,_f=n("7a23"),bf=n("7a23"),yf=(0,_f.defineComponent)({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(e,t)=>((0,bf.openBlock)(),(0,bf.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,bf.createElementVNode)("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),(0,bf.createElementVNode)("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6004 6004 0 0 0-49.28 41.408"})]))}}),Of=yf,Mf=n("7a23"),kf=n("7a23"),Cf=(0,Mf.defineComponent)({name:"Pear",__name:"pear",setup(e){return(e,t)=>((0,kf.openBlock)(),(0,kf.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,kf.createElementVNode)("path",{fill:"currentColor",d:"M542.336 258.816a443 443 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.69 162.69 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.69 162.69 0 0 0-130.112-133.12m-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a317 317 0 0 0-9.792 15.104 226.69 226.69 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),wf=Cf,Sf=n("7a23"),Tf=n("7a23"),If=(0,Sf.defineComponent)({name:"PhoneFilled",__name:"phone-filled",setup(e){return(e,t)=>((0,Tf.openBlock)(),(0,Tf.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Tf.createElementVNode)("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048"})]))}}),Ef=If,jf=n("7a23"),Df=n("7a23"),Lf=(0,jf.defineComponent)({name:"Phone",__name:"phone",setup(e){return(e,t)=>((0,Df.openBlock)(),(0,Df.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Df.createElementVNode)("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),Af=Lf,Nf=n("7a23"),Rf=n("7a23"),xf=(0,Nf.defineComponent)({name:"PictureFilled",__name:"picture-filled",setup(e){return(e,t)=>((0,Rf.openBlock)(),(0,Rf.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Rf.createElementVNode)("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),Pf=xf,Uf=n("7a23"),Vf=n("7a23"),Bf=(0,Uf.defineComponent)({name:"PictureRounded",__name:"picture-rounded",setup(e){return(e,t)=>((0,Vf.openBlock)(),(0,Vf.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Vf.createElementVNode)("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"}),(0,Vf.createElementVNode)("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64-64-64 64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),Ff=Bf,Gf=n("7a23"),Hf=n("7a23"),Yf=(0,Gf.defineComponent)({name:"Picture",__name:"picture",setup(e){return(e,t)=>((0,Hf.openBlock)(),(0,Hf.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Hf.createElementVNode)("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),(0,Hf.createElementVNode)("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),zf=Yf,qf=n("7a23"),Wf=n("7a23"),Kf=(0,qf.defineComponent)({name:"PieChart",__name:"pie-chart",setup(e){return(e,t)=>((0,Wf.openBlock)(),(0,Wf.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Wf.createElementVNode)("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.13 384.13 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.13 448.13 0 0 1 448 68.48"}),(0,Wf.createElementVNode)("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28M512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),$f=Kf,Jf=n("7a23"),Xf=n("7a23"),Qf=(0,Jf.defineComponent)({name:"Place",__name:"place",setup(e){return(e,t)=>((0,Xf.openBlock)(),(0,Xf.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Xf.createElementVNode)("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),(0,Xf.createElementVNode)("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),(0,Xf.createElementVNode)("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),Zf=Qf,eh=n("7a23"),th=n("7a23"),nh=(0,eh.defineComponent)({name:"Platform",__name:"platform",setup(e){return(e,t)=>((0,th.openBlock)(),(0,th.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,th.createElementVNode)("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),rh=nh,oh=n("7a23"),ah=n("7a23"),ih=(0,oh.defineComponent)({name:"Plus",__name:"plus",setup(e){return(e,t)=>((0,ah.openBlock)(),(0,ah.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ah.createElementVNode)("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),sh=ih,ch=n("7a23"),lh=n("7a23"),uh=(0,ch.defineComponent)({name:"Pointer",__name:"pointer",setup(e){return(e,t)=>((0,lh.openBlock)(),(0,lh.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,lh.createElementVNode)("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.27 94.27 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.27 158.27 0 0 1 185.984 8.32z"})]))}}),dh=uh,ph=n("7a23"),fh=n("7a23"),hh=(0,ph.defineComponent)({name:"Position",__name:"position",setup(e){return(e,t)=>((0,fh.openBlock)(),(0,fh.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,fh.createElementVNode)("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992z"})]))}}),mh=hh,vh=n("7a23"),gh=n("7a23"),_h=(0,vh.defineComponent)({name:"Postcard",__name:"postcard",setup(e){return(e,t)=>((0,gh.openBlock)(),(0,gh.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,gh.createElementVNode)("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),(0,gh.createElementVNode)("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),bh=_h,yh=n("7a23"),Oh=n("7a23"),Mh=(0,yh.defineComponent)({name:"Pouring",__name:"pouring",setup(e){return(e,t)=>((0,Oh.openBlock)(),(0,Oh.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Oh.createElementVNode)("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),kh=Mh,Ch=n("7a23"),wh=n("7a23"),Sh=(0,Ch.defineComponent)({name:"Present",__name:"present",setup(e){return(e,t)=>((0,wh.openBlock)(),(0,wh.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,wh.createElementVNode)("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),(0,wh.createElementVNode)("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),(0,wh.createElementVNode)("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),(0,wh.createElementVNode)("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),Th=Sh,Ih=n("7a23"),Eh=n("7a23"),jh=(0,Ih.defineComponent)({name:"PriceTag",__name:"price-tag",setup(e){return(e,t)=>((0,Eh.openBlock)(),(0,Eh.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Eh.createElementVNode)("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),(0,Eh.createElementVNode)("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),Dh=jh,Lh=n("7a23"),Ah=n("7a23"),Nh=(0,Lh.defineComponent)({name:"Printer",__name:"printer",setup(e){return(e,t)=>((0,Ah.openBlock)(),(0,Ah.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ah.createElementVNode)("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.3 23.3 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.3 23.3 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),Rh=Nh,xh=n("7a23"),Ph=n("7a23"),Uh=(0,xh.defineComponent)({name:"Promotion",__name:"promotion",setup(e){return(e,t)=>((0,Ph.openBlock)(),(0,Ph.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ph.createElementVNode)("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),Vh=Uh,Bh=n("7a23"),Fh=n("7a23"),Gh=(0,Bh.defineComponent)({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(e,t)=>((0,Fh.openBlock)(),(0,Fh.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[(0,Fh.createElementVNode)("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51q-13.005.48-22.5 10.02c-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01s-3.66-16.16-10.02-22.5c-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01q5.025 17.985 22.5 22.5m242.94 0q17.505-4.545 22.02-22.02c3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5q-9.54 9.51-10.02 22.5c-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),(0,Fh.createElementVNode)("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),(0,Fh.createElementVNode)("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),Hh=Gh,Yh=n("7a23"),zh=n("7a23"),qh=(0,Yh.defineComponent)({name:"QuestionFilled",__name:"question-filled",setup(e){return(e,t)=>((0,zh.openBlock)(),(0,zh.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,zh.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),Wh=qh,Kh=n("7a23"),$h=n("7a23"),Jh=(0,Kh.defineComponent)({name:"Rank",__name:"rank",setup(e){return(e,t)=>((0,$h.openBlock)(),(0,$h.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,$h.createElementVNode)("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544z"})]))}}),Xh=Jh,Qh=n("7a23"),Zh=n("7a23"),em=(0,Qh.defineComponent)({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(e,t)=>((0,Zh.openBlock)(),(0,Zh.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Zh.createElementVNode)("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),(0,Zh.createElementVNode)("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),tm=em,nm=n("7a23"),rm=n("7a23"),om=(0,nm.defineComponent)({name:"Reading",__name:"reading",setup(e){return(e,t)=>((0,rm.openBlock)(),(0,rm.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,rm.createElementVNode)("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36"}),(0,rm.createElementVNode)("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),am=om,im=n("7a23"),sm=n("7a23"),cm=(0,im.defineComponent)({name:"RefreshLeft",__name:"refresh-left",setup(e){return(e,t)=>((0,sm.openBlock)(),(0,sm.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,sm.createElementVNode)("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),lm=cm,um=n("7a23"),dm=n("7a23"),pm=(0,um.defineComponent)({name:"RefreshRight",__name:"refresh-right",setup(e){return(e,t)=>((0,dm.openBlock)(),(0,dm.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,dm.createElementVNode)("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),fm=pm,hm=n("7a23"),mm=n("7a23"),vm=(0,hm.defineComponent)({name:"Refresh",__name:"refresh",setup(e){return(e,t)=>((0,mm.openBlock)(),(0,mm.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,mm.createElementVNode)("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),gm=vm,_m=n("7a23"),bm=n("7a23"),ym=(0,_m.defineComponent)({name:"Refrigerator",__name:"refrigerator",setup(e){return(e,t)=>((0,bm.openBlock)(),(0,bm.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,bm.createElementVNode)("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),Om=ym,Mm=n("7a23"),km=n("7a23"),Cm=(0,Mm.defineComponent)({name:"RemoveFilled",__name:"remove-filled",setup(e){return(e,t)=>((0,km.openBlock)(),(0,km.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,km.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),wm=Cm,Sm=n("7a23"),Tm=n("7a23"),Im=(0,Sm.defineComponent)({name:"Remove",__name:"remove",setup(e){return(e,t)=>((0,Tm.openBlock)(),(0,Tm.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Tm.createElementVNode)("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),(0,Tm.createElementVNode)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Em=Im,jm=n("7a23"),Dm=n("7a23"),Lm=(0,jm.defineComponent)({name:"Right",__name:"right",setup(e){return(e,t)=>((0,Dm.openBlock)(),(0,Dm.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Dm.createElementVNode)("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),Am=Lm,Nm=n("7a23"),Rm=n("7a23"),xm=(0,Nm.defineComponent)({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(e,t)=>((0,Rm.openBlock)(),(0,Rm.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Rm.createElementVNode)("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),Pm=xm,Um=n("7a23"),Vm=n("7a23"),Bm=(0,Um.defineComponent)({name:"School",__name:"school",setup(e){return(e,t)=>((0,Vm.openBlock)(),(0,Vm.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Vm.createElementVNode)("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),(0,Vm.createElementVNode)("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),(0,Vm.createElementVNode)("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),Fm=Bm,Gm=n("7a23"),Hm=n("7a23"),Ym=(0,Gm.defineComponent)({name:"Scissor",__name:"scissor",setup(e){return(e,t)=>((0,Hm.openBlock)(),(0,Hm.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Hm.createElementVNode)("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),zm=Ym,qm=n("7a23"),Wm=n("7a23"),Km=(0,qm.defineComponent)({name:"Search",__name:"search",setup(e){return(e,t)=>((0,Wm.openBlock)(),(0,Wm.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Wm.createElementVNode)("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),$m=Km,Jm=n("7a23"),Xm=n("7a23"),Qm=(0,Jm.defineComponent)({name:"Select",__name:"select",setup(e){return(e,t)=>((0,Xm.openBlock)(),(0,Xm.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Xm.createElementVNode)("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496"})]))}}),Zm=Qm,ev=n("7a23"),tv=n("7a23"),nv=(0,ev.defineComponent)({name:"Sell",__name:"sell",setup(e){return(e,t)=>((0,tv.openBlock)(),(0,tv.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,tv.createElementVNode)("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248"})]))}}),rv=nv,ov=n("7a23"),av=n("7a23"),iv=(0,ov.defineComponent)({name:"SemiSelect",__name:"semi-select",setup(e){return(e,t)=>((0,av.openBlock)(),(0,av.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,av.createElementVNode)("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),sv=iv,cv=n("7a23"),lv=n("7a23"),uv=(0,cv.defineComponent)({name:"Service",__name:"service",setup(e){return(e,t)=>((0,lv.openBlock)(),(0,lv.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,lv.createElementVNode)("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.06 192.06 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193 193 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),dv=uv,pv=n("7a23"),fv=n("7a23"),hv=(0,pv.defineComponent)({name:"SetUp",__name:"set-up",setup(e){return(e,t)=>((0,fv.openBlock)(),(0,fv.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,fv.createElementVNode)("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),(0,fv.createElementVNode)("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),(0,fv.createElementVNode)("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),(0,fv.createElementVNode)("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),mv=hv,vv=n("7a23"),gv=n("7a23"),_v=(0,vv.defineComponent)({name:"Setting",__name:"setting",setup(e){return(e,t)=>((0,gv.openBlock)(),(0,gv.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,gv.createElementVNode)("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),bv=_v,yv=n("7a23"),Ov=n("7a23"),Mv=(0,yv.defineComponent)({name:"Share",__name:"share",setup(e){return(e,t)=>((0,Ov.openBlock)(),(0,Ov.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ov.createElementVNode)("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.8 127.8 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),kv=Mv,Cv=n("7a23"),wv=n("7a23"),Sv=(0,Cv.defineComponent)({name:"Ship",__name:"ship",setup(e){return(e,t)=>((0,wv.openBlock)(),(0,wv.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,wv.createElementVNode)("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2z"})]))}}),Tv=Sv,Iv=n("7a23"),Ev=n("7a23"),jv=(0,Iv.defineComponent)({name:"Shop",__name:"shop",setup(e){return(e,t)=>((0,Ev.openBlock)(),(0,Ev.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ev.createElementVNode)("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),Dv=jv,Lv=n("7a23"),Av=n("7a23"),Nv=(0,Lv.defineComponent)({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(e,t)=>((0,Av.openBlock)(),(0,Av.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Av.createElementVNode)("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),(0,Av.createElementVNode)("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),Rv=Nv,xv=n("7a23"),Pv=n("7a23"),Uv=(0,xv.defineComponent)({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(e,t)=>((0,Pv.openBlock)(),(0,Pv.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Pv.createElementVNode)("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"}),(0,Pv.createElementVNode)("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648z"})]))}}),Vv=Uv,Bv=n("7a23"),Fv=n("7a23"),Gv=(0,Bv.defineComponent)({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(e,t)=>((0,Fv.openBlock)(),(0,Fv.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Fv.createElementVNode)("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"})]))}}),Hv=Gv,Yv=n("7a23"),zv=n("7a23"),qv=(0,Yv.defineComponent)({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(e,t)=>((0,zv.openBlock)(),(0,zv.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[(0,zv.createElementVNode)("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),Wv=qv,Kv=n("7a23"),$v=n("7a23"),Jv=(0,Kv.defineComponent)({name:"Smoking",__name:"smoking",setup(e){return(e,t)=>((0,$v.openBlock)(),(0,$v.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,$v.createElementVNode)("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),(0,$v.createElementVNode)("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),Xv=Jv,Qv=n("7a23"),Zv=n("7a23"),eg=(0,Qv.defineComponent)({name:"Soccer",__name:"soccer",setup(e){return(e,t)=>((0,Zv.openBlock)(),(0,Zv.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Zv.createElementVNode)("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.06 573.06 0 0 0 224.832-137.216 573.1 573.1 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.7 567.7 0 0 0 170.432 532.48zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944s-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248z"})]))}}),tg=eg,ng=n("7a23"),rg=n("7a23"),og=(0,ng.defineComponent)({name:"SoldOut",__name:"sold-out",setup(e){return(e,t)=>((0,rg.openBlock)(),(0,rg.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,rg.createElementVNode)("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),ag=og,ig=n("7a23"),sg=n("7a23"),cg=(0,ig.defineComponent)({name:"SortDown",__name:"sort-down",setup(e){return(e,t)=>((0,sg.openBlock)(),(0,sg.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,sg.createElementVNode)("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),lg=cg,ug=n("7a23"),dg=n("7a23"),pg=(0,ug.defineComponent)({name:"SortUp",__name:"sort-up",setup(e){return(e,t)=>((0,dg.openBlock)(),(0,dg.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,dg.createElementVNode)("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),fg=pg,hg=n("7a23"),mg=n("7a23"),vg=(0,hg.defineComponent)({name:"Sort",__name:"sort",setup(e){return(e,t)=>((0,mg.openBlock)(),(0,mg.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,mg.createElementVNode)("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0z"})]))}}),gg=vg,_g=n("7a23"),bg=n("7a23"),yg=(0,_g.defineComponent)({name:"Stamp",__name:"stamp",setup(e){return(e,t)=>((0,bg.openBlock)(),(0,bg.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,bg.createElementVNode)("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),Og=yg,Mg=n("7a23"),kg=n("7a23"),Cg=(0,Mg.defineComponent)({name:"StarFilled",__name:"star-filled",setup(e){return(e,t)=>((0,kg.openBlock)(),(0,kg.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,kg.createElementVNode)("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),wg=Cg,Sg=n("7a23"),Tg=n("7a23"),Ig=(0,Sg.defineComponent)({name:"Star",__name:"star",setup(e){return(e,t)=>((0,Tg.openBlock)(),(0,Tg.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Tg.createElementVNode)("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),Eg=Ig,jg=n("7a23"),Dg=n("7a23"),Lg=(0,jg.defineComponent)({name:"Stopwatch",__name:"stopwatch",setup(e){return(e,t)=>((0,Dg.openBlock)(),(0,Dg.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Dg.createElementVNode)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),(0,Dg.createElementVNode)("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),Ag=Lg,Ng=n("7a23"),Rg=n("7a23"),xg=(0,Ng.defineComponent)({name:"SuccessFilled",__name:"success-filled",setup(e){return(e,t)=>((0,Rg.openBlock)(),(0,Rg.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Rg.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Pg=xg,Ug=n("7a23"),Vg=n("7a23"),Bg=(0,Ug.defineComponent)({name:"Sugar",__name:"sugar",setup(e){return(e,t)=>((0,Vg.openBlock)(),(0,Vg.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Vg.createElementVNode)("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16zm-548.8 198.72h447.168v2.24l60.8-60.8a63.8 63.8 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64 64 0 0 0-10.24 13.248zm0 64q4.128 7.104 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),Fg=Bg,Gg=n("7a23"),Hg=n("7a23"),Yg=(0,Gg.defineComponent)({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(e,t)=>((0,Hg.openBlock)(),(0,Hg.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[(0,Hg.createElementVNode)("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5S64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),zg=Yg,qg=n("7a23"),Wg=n("7a23"),Kg=(0,qg.defineComponent)({name:"Suitcase",__name:"suitcase",setup(e){return(e,t)=>((0,Wg.openBlock)(),(0,Wg.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Wg.createElementVNode)("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),(0,Wg.createElementVNode)("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),$g=Kg,Jg=n("7a23"),Xg=n("7a23"),Qg=(0,Jg.defineComponent)({name:"Sunny",__name:"sunny",setup(e){return(e,t)=>((0,Xg.openBlock)(),(0,Xg.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Xg.createElementVNode)("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0m543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),Zg=Qg,e_=n("7a23"),t_=n("7a23"),n_=(0,e_.defineComponent)({name:"Sunrise",__name:"sunrise",setup(e){return(e,t)=>((0,t_.openBlock)(),(0,t_.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,t_.createElementVNode)("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0m-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),r_=n_,o_=n("7a23"),a_=n("7a23"),i_=(0,o_.defineComponent)({name:"Sunset",__name:"sunset",setup(e){return(e,t)=>((0,a_.openBlock)(),(0,a_.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,a_.createElementVNode)("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),s_=i_,c_=n("7a23"),l_=n("7a23"),u_=(0,c_.defineComponent)({name:"SwitchButton",__name:"switch-button",setup(e){return(e,t)=>((0,l_.openBlock)(),(0,l_.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,l_.createElementVNode)("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128"}),(0,l_.createElementVNode)("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),d_=u_,p_=n("7a23"),f_=n("7a23"),h_=(0,p_.defineComponent)({name:"SwitchFilled",__name:"switch-filled",setup(e){return(e,t)=>((0,f_.openBlock)(),(0,f_.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[(0,f_.createElementVNode)("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36"}),(0,f_.createElementVNode)("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.66 196.66 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.7 196.7 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42m-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.7 131.7 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.66 196.66 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.7 196.7 0 0 0 139.08-57.61A196.66 196.66 0 0 0 896 699.31V325.29a196.7 196.7 0 0 0-57.61-139.08m-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82"})]))}}),m_=h_,v_=n("7a23"),g_=n("7a23"),__=(0,v_.defineComponent)({name:"Switch",__name:"switch",setup(e){return(e,t)=>((0,g_.openBlock)(),(0,g_.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,g_.createElementVNode)("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344M64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),b_=__,y_=n("7a23"),O_=n("7a23"),M_=(0,y_.defineComponent)({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(e,t)=>((0,O_.openBlock)(),(0,O_.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,O_.createElementVNode)("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),k_=M_,C_=n("7a23"),w_=n("7a23"),S_=(0,C_.defineComponent)({name:"Ticket",__name:"ticket",setup(e){return(e,t)=>((0,w_.openBlock)(),(0,w_.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,w_.createElementVNode)("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),T_=S_,I_=n("7a23"),E_=n("7a23"),j_=(0,I_.defineComponent)({name:"Tickets",__name:"tickets",setup(e){return(e,t)=>((0,E_.openBlock)(),(0,E_.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,E_.createElementVNode)("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),D_=j_,L_=n("7a23"),A_=n("7a23"),N_=(0,L_.defineComponent)({name:"Timer",__name:"timer",setup(e){return(e,t)=>((0,A_.openBlock)(),(0,A_.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,A_.createElementVNode)("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),(0,A_.createElementVNode)("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),(0,A_.createElementVNode)("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),R_=N_,x_=n("7a23"),P_=n("7a23"),U_=(0,x_.defineComponent)({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(e,t)=>((0,P_.openBlock)(),(0,P_.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,P_.createElementVNode)("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),(0,P_.createElementVNode)("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),V_=U_,B_=n("7a23"),F_=n("7a23"),G_=(0,B_.defineComponent)({name:"Tools",__name:"tools",setup(e){return(e,t)=>((0,F_.openBlock)(),(0,F_.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,F_.createElementVNode)("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),H_=G_,Y_=n("7a23"),z_=n("7a23"),q_=(0,Y_.defineComponent)({name:"TopLeft",__name:"top-left",setup(e){return(e,t)=>((0,z_.openBlock)(),(0,z_.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,z_.createElementVNode)("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),(0,z_.createElementVNode)("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312z"})]))}}),W_=q_,K_=n("7a23"),$_=n("7a23"),J_=(0,K_.defineComponent)({name:"TopRight",__name:"top-right",setup(e){return(e,t)=>((0,$_.openBlock)(),(0,$_.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,$_.createElementVNode)("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),(0,$_.createElementVNode)("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312z"})]))}}),X_=J_,Q_=n("7a23"),Z_=n("7a23"),eb=(0,Q_.defineComponent)({name:"Top",__name:"top",setup(e){return(e,t)=>((0,Z_.openBlock)(),(0,Z_.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Z_.createElementVNode)("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),tb=eb,nb=n("7a23"),rb=n("7a23"),ob=(0,nb.defineComponent)({name:"TrendCharts",__name:"trend-charts",setup(e){return(e,t)=>((0,rb.openBlock)(),(0,rb.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,rb.createElementVNode)("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),ab=ob,ib=n("7a23"),sb=n("7a23"),cb=(0,ib.defineComponent)({name:"TrophyBase",__name:"trophy-base",setup(e){return(e,t)=>((0,sb.openBlock)(),(0,sb.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[(0,sb.createElementVNode)("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4S745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6S256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6S96 217.6 96 224c3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6S352 790.4 352 800s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4M256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6S320 438.4 320 384V128h384v256q0 81.6-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2M768 896H256c-9.6 0-16 3.2-22.4 9.6S224 918.4 224 928s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6"})]))}}),lb=cb,ub=n("7a23"),db=n("7a23"),pb=(0,ub.defineComponent)({name:"Trophy",__name:"trophy",setup(e){return(e,t)=>((0,db.openBlock)(),(0,db.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,db.createElementVNode)("path",{fill:"currentColor",d:"M480 896V702.08A256.26 256.26 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.26 256.26 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),fb=pb,hb=n("7a23"),mb=n("7a23"),vb=(0,hb.defineComponent)({name:"TurnOff",__name:"turn-off",setup(e){return(e,t)=>((0,mb.openBlock)(),(0,mb.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,mb.createElementVNode)("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),(0,mb.createElementVNode)("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),gb=vb,_b=n("7a23"),bb=n("7a23"),yb=(0,_b.defineComponent)({name:"Umbrella",__name:"umbrella",setup(e){return(e,t)=>((0,bb.openBlock)(),(0,bb.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,bb.createElementVNode)("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),Ob=yb,Mb=n("7a23"),kb=n("7a23"),Cb=(0,Mb.defineComponent)({name:"Unlock",__name:"unlock",setup(e){return(e,t)=>((0,kb.openBlock)(),(0,kb.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,kb.createElementVNode)("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),(0,kb.createElementVNode)("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),wb=Cb,Sb=n("7a23"),Tb=n("7a23"),Ib=(0,Sb.defineComponent)({name:"UploadFilled",__name:"upload-filled",setup(e){return(e,t)=>((0,Tb.openBlock)(),(0,Tb.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Tb.createElementVNode)("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),Eb=Ib,jb=n("7a23"),Db=n("7a23"),Lb=(0,jb.defineComponent)({name:"Upload",__name:"upload",setup(e){return(e,t)=>((0,Db.openBlock)(),(0,Db.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Db.createElementVNode)("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),Ab=Lb,Nb=n("7a23"),Rb=n("7a23"),xb=(0,Nb.defineComponent)({name:"UserFilled",__name:"user-filled",setup(e){return(e,t)=>((0,Rb.openBlock)(),(0,Rb.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Rb.createElementVNode)("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),Pb=xb,Ub=n("7a23"),Vb=n("7a23"),Bb=(0,Ub.defineComponent)({name:"User",__name:"user",setup(e){return(e,t)=>((0,Vb.openBlock)(),(0,Vb.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Vb.createElementVNode)("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),Fb=Bb,Gb=n("7a23"),Hb=n("7a23"),Yb=(0,Gb.defineComponent)({name:"Van",__name:"van",setup(e){return(e,t)=>((0,Hb.openBlock)(),(0,Hb.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Hb.createElementVNode)("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),zb=Yb,qb=n("7a23"),Wb=n("7a23"),Kb=(0,qb.defineComponent)({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(e,t)=>((0,Wb.openBlock)(),(0,Wb.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Wb.createElementVNode)("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),$b=Kb,Jb=n("7a23"),Xb=n("7a23"),Qb=(0,Jb.defineComponent)({name:"VideoCamera",__name:"video-camera",setup(e){return(e,t)=>((0,Xb.openBlock)(),(0,Xb.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Xb.createElementVNode)("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),Zb=Qb,ey=n("7a23"),ty=n("7a23"),ny=(0,ey.defineComponent)({name:"VideoPause",__name:"video-pause",setup(e){return(e,t)=>((0,ty.openBlock)(),(0,ty.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ty.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),ry=ny,oy=n("7a23"),ay=n("7a23"),iy=(0,oy.defineComponent)({name:"VideoPlay",__name:"video-play",setup(e){return(e,t)=>((0,ay.openBlock)(),(0,ay.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ay.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),sy=iy,cy=n("7a23"),ly=n("7a23"),uy=(0,cy.defineComponent)({name:"View",__name:"view",setup(e){return(e,t)=>((0,ly.openBlock)(),(0,ly.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,ly.createElementVNode)("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),dy=uy,py=n("7a23"),fy=n("7a23"),hy=(0,py.defineComponent)({name:"WalletFilled",__name:"wallet-filled",setup(e){return(e,t)=>((0,fy.openBlock)(),(0,fy.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,fy.createElementVNode)("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),my=hy,vy=n("7a23"),gy=n("7a23"),_y=(0,vy.defineComponent)({name:"Wallet",__name:"wallet",setup(e){return(e,t)=>((0,gy.openBlock)(),(0,gy.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,gy.createElementVNode)("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),(0,gy.createElementVNode)("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),(0,gy.createElementVNode)("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),by=_y,yy=n("7a23"),Oy=n("7a23"),My=(0,yy.defineComponent)({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(e,t)=>((0,Oy.openBlock)(),(0,Oy.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[(0,Oy.createElementVNode)("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49s12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),ky=My,Cy=n("7a23"),wy=n("7a23"),Sy=(0,Cy.defineComponent)({name:"WarningFilled",__name:"warning-filled",setup(e){return(e,t)=>((0,wy.openBlock)(),(0,wy.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,wy.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Ty=Sy,Iy=n("7a23"),Ey=n("7a23"),jy=(0,Iy.defineComponent)({name:"Warning",__name:"warning",setup(e){return(e,t)=>((0,Ey.openBlock)(),(0,Ey.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ey.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),Dy=jy,Ly=n("7a23"),Ay=n("7a23"),Ny=(0,Ly.defineComponent)({name:"Watch",__name:"watch",setup(e){return(e,t)=>((0,Ay.openBlock)(),(0,Ay.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Ay.createElementVNode)("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),(0,Ay.createElementVNode)("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),(0,Ay.createElementVNode)("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),Ry=Ny,xy=n("7a23"),Py=n("7a23"),Uy=(0,xy.defineComponent)({name:"Watermelon",__name:"watermelon",setup(e){return(e,t)=>((0,Py.openBlock)(),(0,Py.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Py.createElementVNode)("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632z"})]))}}),Vy=Uy,By=n("7a23"),Fy=n("7a23"),Gy=(0,By.defineComponent)({name:"WindPower",__name:"wind-power",setup(e){return(e,t)=>((0,Fy.openBlock)(),(0,Fy.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,Fy.createElementVNode)("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),Hy=Gy,Yy=n("7a23"),zy=n("7a23"),qy=(0,Yy.defineComponent)({name:"ZoomIn",__name:"zoom-in",setup(e){return(e,t)=>((0,zy.openBlock)(),(0,zy.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,zy.createElementVNode)("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),Wy=qy,Ky=n("7a23"),$y=n("7a23"),Jy=(0,Ky.defineComponent)({name:"ZoomOut",__name:"zoom-out",setup(e){return(e,t)=>((0,$y.openBlock)(),(0,$y.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,$y.createElementVNode)("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),Xy=Jy},"9adc":function(e,t,n){"use strict";var r=n("8558");e.exports="NODE"===r},"9b8d":function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},"9bb8":function(e,t,n){"use strict";var r=n("a5eb"),o=n("06fa"),a=n("a421"),i=n("44ba").f,s=n("c1b2"),c=!s||o((function(){i(1)}));r({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return i(a(e),t)}})},"9bcd":function(e,t,n){"use strict";var r=n("a5eb"),o=n("a0b9"),a=n("4e19"),i=n("6f8d"),s=n("06fa"),c=!s((function(){Reflect.apply((function(){}))}));r({target:"Reflect",stat:!0,forced:c},{apply:function(e,t,n){return o(a(e),t,i(n))}})},"9bdd":function(e,t,n){"use strict";var r=n("825a"),o=n("2a62");e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(i){o(e,"throw",i)}}},"9bf2":function(e,t,n){"use strict";var r=n("83ab"),o=n("0cfb"),a=n("aed9"),i=n("825a"),s=n("a04b"),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",f="writable";t.f=r?a?function(e,t,n){if(i(e),t=s(t),i(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=u(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:d in n?n[d]:r[d],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(i(e),t=s(t),i(n),o)try{return l(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9c6f":function(e,t,n){"use strict";var r=n("c44e");r("flat")},"9c8b":function(e,t,n){"use strict";var r=n("a5eb"),o=n("0e6f"),a=n("c978"),i=n("1301"),s=n("d659"),c=n("e0b4"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!a(e))throw new TypeError(i(e)+" is not a symbol");if(o(l,e))return l[e]}})},"9c96":function(e,t,n){"use strict";var r=n("06fa"),o=n("0363"),a=n("f772"),i=o("species");e.exports=function(e){return a>=51||!r((function(){var t=[],n=t.constructor={};return n[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"9c9e":function(e,t,n){"use strict";var r=n("9883"),o=n("7c42");e.exports={WeakMap:r("WeakMap"),set:o("set",2),get:o("get",1),has:o("has",1),remove:o("delete",1)}},"9ca6":function(e,t,n){"use strict";n.d(t,"a",(function(){return ee})),n.d(t,"b",(function(){return te}));var r=n("25de"),o=n("f4e0"),a=n("7a23");n("3f4e");
/*!
* vue-i18n v9.14.4
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
const i="9.14.4";function s(){"boolean"!==typeof __VUE_I18N_FULL_INSTALL__&&(Object(r["getGlobalThis"])().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!==typeof __VUE_I18N_LEGACY_API__&&(Object(r["getGlobalThis"])().__VUE_I18N_LEGACY_API__=!0),"boolean"!==typeof __INTLIFY_JIT_COMPILATION__&&(Object(r["getGlobalThis"])().__INTLIFY_JIT_COMPILATION__=!1),"boolean"!==typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(Object(r["getGlobalThis"])().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),"boolean"!==typeof __INTLIFY_PROD_DEVTOOLS__&&(Object(r["getGlobalThis"])().__INTLIFY_PROD_DEVTOOLS__=!1)}const c=o["CoreWarnCodes"].__EXTEND_POINT__,l=Object(r["incrementer"])(c),u={FALLBACK_TO_ROOT:c,NOT_SUPPORTED_PRESERVE:l(),NOT_SUPPORTED_FORMATTER:l(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:l(),NOT_SUPPORTED_GET_CHOICE_INDEX:l(),COMPONENT_NAME_LEGACY_COMPATIBLE:l(),NOT_FOUND_PARENT_SCOPE:l(),IGNORE_OBJ_FLATTEN:l(),NOTICE_DROP_ALLOW_COMPOSITION:l(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:l()};u.FALLBACK_TO_ROOT,u.NOT_SUPPORTED_PRESERVE,u.NOT_SUPPORTED_FORMATTER,u.NOT_SUPPORTED_PRESERVE_DIRECTIVE,u.NOT_SUPPORTED_GET_CHOICE_INDEX,u.COMPONENT_NAME_LEGACY_COMPATIBLE,u.NOT_FOUND_PARENT_SCOPE,u.IGNORE_OBJ_FLATTEN,u.NOTICE_DROP_ALLOW_COMPOSITION,u.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG;const d=o["CoreErrorCodes"].__EXTEND_POINT__,p=Object(r["incrementer"])(d),f={UNEXPECTED_RETURN_TYPE:d,INVALID_ARGUMENT:p(),MUST_BE_CALL_SETUP_TOP:p(),NOT_INSTALLED:p(),NOT_AVAILABLE_IN_LEGACY_MODE:p(),REQUIRED_VALUE:p(),INVALID_VALUE:p(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:p(),NOT_INSTALLED_WITH_PROVIDE:p(),UNEXPECTED_ERROR:p(),NOT_COMPATIBLE_LEGACY_VUE_I18N:p(),BRIDGE_SUPPORT_VUE_2_ONLY:p(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:p(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:p(),__EXTEND_POINT__:p()};function h(e,...t){return Object(o["createCompileError"])(e,null,void 0)}f.UNEXPECTED_RETURN_TYPE,f.INVALID_ARGUMENT,f.MUST_BE_CALL_SETUP_TOP,f.NOT_INSTALLED,f.UNEXPECTED_ERROR,f.NOT_AVAILABLE_IN_LEGACY_MODE,f.REQUIRED_VALUE,f.INVALID_VALUE,f.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,f.NOT_INSTALLED_WITH_PROVIDE,f.NOT_COMPATIBLE_LEGACY_VUE_I18N,f.BRIDGE_SUPPORT_VUE_2_ONLY,f.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION,f.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;const m=Object(r["makeSymbol"])("__translateVNode"),v=Object(r["makeSymbol"])("__datetimeParts"),g=Object(r["makeSymbol"])("__numberParts"),_=Object(r["makeSymbol"])("__setPluralRules");Object(r["makeSymbol"])("__intlifyMeta");const b=Object(r["makeSymbol"])("__injectWithOption"),y=Object(r["makeSymbol"])("__dispose");function O(e){if(!Object(r["isObject"])(e))return e;if(Object(o["isMessageAST"])(e))return e;for(const t in e)if(Object(r["hasOwn"])(e,t))if(t.includes(".")){const n=t.split("."),a=n.length-1;let i=e,s=!1;for(let e=0;e<a;e++){if("__proto__"===n[e])throw new Error("unsafe key: "+n[e]);if(n[e]in i||(i[n[e]]=Object(r["create"])()),!Object(r["isObject"])(i[n[e]])){s=!0;break}i=i[n[e]]}if(s||(Object(o["isMessageAST"])(i)?o["AST_NODE_PROPS_KEYS"].includes(n[a])||delete e[t]:(i[n[a]]=e[t],delete e[t])),!Object(o["isMessageAST"])(i)){const e=i[n[a]];Object(r["isObject"])(e)&&O(e)}}else Object(r["isObject"])(e[t])&&O(e[t]);return e}function M(e,t){const{messages:n,__i18n:o,messageResolver:a,flatJson:i}=t,s=Object(r["isPlainObject"])(n)?n:Object(r["isArray"])(o)?Object(r["create"])():{[e]:Object(r["create"])()};if(Object(r["isArray"])(o)&&o.forEach(e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||Object(r["create"])(),Object(r["deepCopy"])(n,s[t])):Object(r["deepCopy"])(n,s)}else Object(r["isString"])(e)&&Object(r["deepCopy"])(JSON.parse(e),s)}),null==a&&i)for(const c in s)Object(r["hasOwn"])(s,c)&&O(s[c]);return s}function k(e){return e.type}function C(e,t,n){let o=Object(r["isObject"])(t.messages)?t.messages:Object(r["create"])();"__i18nGlobal"in n&&(o=M(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const a=Object.keys(o);if(a.length&&a.forEach(t=>{e.mergeLocaleMessage(t,o[t])}),Object(r["isObject"])(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(Object(r["isObject"])(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function w(e){return Object(a["createVNode"])(a["Text"],null,e,0)}const S="__INTLIFY_META__",T=()=>[],I=()=>!1;let E=0;function j(e){return(t,n,r,o)=>e(n,r,Object(a["getCurrentInstance"])()||void 0,o)}const D=()=>{const e=Object(a["getCurrentInstance"])();let t=null;return e&&(t=k(e)[S])?{[S]:t}:null};function L(e={},t){const{__root:n,__injectWithOption:s}=e,c=void 0===n,l=e.flatJson,u=r["inBrowser"]?a["ref"]:a["shallowRef"],d=!!e.translateExistCompatible;let p=!Object(r["isBoolean"])(e.inheritLocale)||e.inheritLocale;const y=u(n&&p?n.locale.value:Object(r["isString"])(e.locale)?e.locale:o["DEFAULT_LOCALE"]),k=u(n&&p?n.fallbackLocale.value:Object(r["isString"])(e.fallbackLocale)||Object(r["isArray"])(e.fallbackLocale)||Object(r["isPlainObject"])(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:y.value),C=u(M(y.value,e)),S=u(Object(r["isPlainObject"])(e.datetimeFormats)?e.datetimeFormats:{[y.value]:{}}),L=u(Object(r["isPlainObject"])(e.numberFormats)?e.numberFormats:{[y.value]:{}});let A=n?n.missingWarn:!Object(r["isBoolean"])(e.missingWarn)&&!Object(r["isRegExp"])(e.missingWarn)||e.missingWarn,N=n?n.fallbackWarn:!Object(r["isBoolean"])(e.fallbackWarn)&&!Object(r["isRegExp"])(e.fallbackWarn)||e.fallbackWarn,R=n?n.fallbackRoot:!Object(r["isBoolean"])(e.fallbackRoot)||e.fallbackRoot,x=!!e.fallbackFormat,P=Object(r["isFunction"])(e.missing)?e.missing:null,U=Object(r["isFunction"])(e.missing)?j(e.missing):null,V=Object(r["isFunction"])(e.postTranslation)?e.postTranslation:null,B=n?n.warnHtmlMessage:!Object(r["isBoolean"])(e.warnHtmlMessage)||e.warnHtmlMessage,F=!!e.escapeParameter;const G=n?n.modifiers:Object(r["isPlainObject"])(e.modifiers)?e.modifiers:{};let H,Y=e.pluralRules||n&&n.pluralRules;const z=()=>{c&&Object(o["setFallbackContext"])(null);const t={version:i,locale:y.value,fallbackLocale:k.value,messages:C.value,modifiers:G,pluralRules:Y,missing:null===U?void 0:U,missingWarn:A,fallbackWarn:N,fallbackFormat:x,unresolving:!0,postTranslation:null===V?void 0:V,warnHtmlMessage:B,escapeParameter:F,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=S.value,t.numberFormats=L.value,t.__datetimeFormatters=Object(r["isPlainObject"])(H)?H.__datetimeFormatters:void 0,t.__numberFormatters=Object(r["isPlainObject"])(H)?H.__numberFormatters:void 0;const n=Object(o["createCoreContext"])(t);return c&&Object(o["setFallbackContext"])(n),n};function q(){return[y.value,k.value,C.value,S.value,L.value]}H=z(),Object(o["updateFallbackLocale"])(H,y.value,k.value);const W=Object(a["computed"])({get:()=>y.value,set:e=>{y.value=e,H.locale=y.value}}),K=Object(a["computed"])({get:()=>k.value,set:e=>{k.value=e,H.fallbackLocale=k.value,Object(o["updateFallbackLocale"])(H,y.value,e)}}),$=Object(a["computed"])(()=>C.value),J=Object(a["computed"])(()=>S.value),X=Object(a["computed"])(()=>L.value);function Q(){return Object(r["isFunction"])(V)?V:null}function Z(e){V=e,H.postTranslation=e}function ee(){return P}function te(e){null!==e&&(U=j(e)),P=e,H.missing=U}const ne=(e,t,a,i,s,l)=>{let u;q();try{__INTLIFY_PROD_DEVTOOLS__&&Object(o["setAdditionalMeta"])(D()),c||(H.fallbackContext=n?Object(o["getFallbackContext"])():void 0),u=e(H)}finally{__INTLIFY_PROD_DEVTOOLS__&&Object(o["setAdditionalMeta"])(null),c||(H.fallbackContext=void 0)}if("translate exists"!==a&&Object(r["isNumber"])(u)&&u===o["NOT_REOSLVED"]||"translate exists"===a&&!u){const[e,r]=t();return n&&R?i(n):s(e)}if(l(u))return u;throw h(f.UNEXPECTED_RETURN_TYPE)};function re(...e){return ne(t=>Reflect.apply(o["translate"],null,[t,...e]),()=>Object(o["parseTranslateArgs"])(...e),"translate",t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>Object(r["isString"])(e))}function oe(...e){const[t,n,o]=e;if(o&&!Object(r["isObject"])(o))throw h(f.INVALID_ARGUMENT);return re(t,n,Object(r["assign"])({resolvedMessage:!0},o||{}))}function ae(...e){return ne(t=>Reflect.apply(o["datetime"],null,[t,...e]),()=>Object(o["parseDateTimeArgs"])(...e),"datetime format",t=>Reflect.apply(t.d,t,[...e]),()=>o["MISSING_RESOLVE_VALUE"],e=>Object(r["isString"])(e))}function ie(...e){return ne(t=>Reflect.apply(o["number"],null,[t,...e]),()=>Object(o["parseNumberArgs"])(...e),"number format",t=>Reflect.apply(t.n,t,[...e]),()=>o["MISSING_RESOLVE_VALUE"],e=>Object(r["isString"])(e))}function se(e){return e.map(e=>Object(r["isString"])(e)||Object(r["isNumber"])(e)||Object(r["isBoolean"])(e)?w(String(e)):e)}const ce=e=>e,le={normalize:se,interpolate:ce,type:"vnode"};function ue(...e){return ne(t=>{let n;const r=t;try{r.processor=le,n=Reflect.apply(o["translate"],null,[r,...e])}finally{r.processor=null}return n},()=>Object(o["parseTranslateArgs"])(...e),"translate",t=>t[m](...e),e=>[w(e)],e=>Object(r["isArray"])(e))}function de(...e){return ne(t=>Reflect.apply(o["number"],null,[t,...e]),()=>Object(o["parseNumberArgs"])(...e),"number format",t=>t[g](...e),T,e=>Object(r["isString"])(e)||Object(r["isArray"])(e))}function pe(...e){return ne(t=>Reflect.apply(o["datetime"],null,[t,...e]),()=>Object(o["parseDateTimeArgs"])(...e),"datetime format",t=>t[v](...e),T,e=>Object(r["isString"])(e)||Object(r["isArray"])(e))}function fe(e){Y=e,H.pluralRules=Y}function he(e,t){return ne(()=>{if(!e)return!1;const n=Object(r["isString"])(t)?t:y.value,a=ge(n),i=H.messageResolver(a,e);return d?null!=i:Object(o["isMessageAST"])(i)||Object(o["isMessageFunction"])(i)||Object(r["isString"])(i)},()=>[e],"translate exists",n=>Reflect.apply(n.te,n,[e,t]),I,e=>Object(r["isBoolean"])(e))}function me(e){let t=null;const n=Object(o["fallbackWithLocaleChain"])(H,k.value,y.value);for(let r=0;r<n.length;r++){const o=C.value[n[r]]||{},a=H.messageResolver(o,e);if(null!=a){t=a;break}}return t}function ve(e){const t=me(e);return null!=t?t:n&&n.tm(e)||{}}function ge(e){return C.value[e]||{}}function _e(e,t){if(l){const n={[e]:t};for(const e in n)Object(r["hasOwn"])(n,e)&&O(n[e]);t=n[e]}C.value[e]=t,H.messages=C.value}function be(e,t){C.value[e]=C.value[e]||{};const n={[e]:t};if(l)for(const o in n)Object(r["hasOwn"])(n,o)&&O(n[o]);t=n[e],Object(r["deepCopy"])(t,C.value[e]),H.messages=C.value}function ye(e){return S.value[e]||{}}function Oe(e,t){S.value[e]=t,H.datetimeFormats=S.value,Object(o["clearDateTimeFormat"])(H,e,t)}function Me(e,t){S.value[e]=Object(r["assign"])(S.value[e]||{},t),H.datetimeFormats=S.value,Object(o["clearDateTimeFormat"])(H,e,t)}function ke(e){return L.value[e]||{}}function Ce(e,t){L.value[e]=t,H.numberFormats=L.value,Object(o["clearNumberFormat"])(H,e,t)}function we(e,t){L.value[e]=Object(r["assign"])(L.value[e]||{},t),H.numberFormats=L.value,Object(o["clearNumberFormat"])(H,e,t)}E++,n&&r["inBrowser"]&&(Object(a["watch"])(n.locale,e=>{p&&(y.value=e,H.locale=e,Object(o["updateFallbackLocale"])(H,y.value,k.value))}),Object(a["watch"])(n.fallbackLocale,e=>{p&&(k.value=e,H.fallbackLocale=e,Object(o["updateFallbackLocale"])(H,y.value,k.value))}));const Se={id:E,locale:W,fallbackLocale:K,get inheritLocale(){return p},set inheritLocale(e){p=e,e&&n&&(y.value=n.locale.value,k.value=n.fallbackLocale.value,Object(o["updateFallbackLocale"])(H,y.value,k.value))},get availableLocales(){return Object.keys(C.value).sort()},messages:$,get modifiers(){return G},get pluralRules(){return Y||{}},get isGlobal(){return c},get missingWarn(){return A},set missingWarn(e){A=e,H.missingWarn=A},get fallbackWarn(){return N},set fallbackWarn(e){N=e,H.fallbackWarn=N},get fallbackRoot(){return R},set fallbackRoot(e){R=e},get fallbackFormat(){return x},set fallbackFormat(e){x=e,H.fallbackFormat=x},get warnHtmlMessage(){return B},set warnHtmlMessage(e){B=e,H.warnHtmlMessage=e},get escapeParameter(){return F},set escapeParameter(e){F=e,H.escapeParameter=e},t:re,getLocaleMessage:ge,setLocaleMessage:_e,mergeLocaleMessage:be,getPostTranslationHandler:Q,setPostTranslationHandler:Z,getMissingHandler:ee,setMissingHandler:te,[_]:fe};return Se.datetimeFormats=J,Se.numberFormats=X,Se.rt=oe,Se.te=he,Se.tm=ve,Se.d=ae,Se.n=ie,Se.getDateTimeFormat=ye,Se.setDateTimeFormat=Oe,Se.mergeDateTimeFormat=Me,Se.getNumberFormat=ke,Se.setNumberFormat=Ce,Se.mergeNumberFormat=we,Se[b]=s,Se[m]=ue,Se[v]=pe,Se[g]=de,Se}function A(e){const t=Object(r["isString"])(e.locale)?e.locale:o["DEFAULT_LOCALE"],n=Object(r["isString"])(e.fallbackLocale)||Object(r["isArray"])(e.fallbackLocale)||Object(r["isPlainObject"])(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,a=Object(r["isFunction"])(e.missing)?e.missing:void 0,i=!Object(r["isBoolean"])(e.silentTranslationWarn)&&!Object(r["isRegExp"])(e.silentTranslationWarn)||!e.silentTranslationWarn,s=!Object(r["isBoolean"])(e.silentFallbackWarn)&&!Object(r["isRegExp"])(e.silentFallbackWarn)||!e.silentFallbackWarn,c=!Object(r["isBoolean"])(e.fallbackRoot)||e.fallbackRoot,l=!!e.formatFallbackMessages,u=Object(r["isPlainObject"])(e.modifiers)?e.modifiers:{},d=e.pluralizationRules,p=Object(r["isFunction"])(e.postTranslation)?e.postTranslation:void 0,f=!Object(r["isString"])(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,h=!!e.escapeParameterHtml,m=!Object(r["isBoolean"])(e.sync)||e.sync;let v=e.messages;if(Object(r["isPlainObject"])(e.sharedMessages)){const t=e.sharedMessages,n=Object.keys(t);v=n.reduce((e,n)=>{const o=e[n]||(e[n]={});return Object(r["assign"])(o,t[n]),e},v||{})}const{__i18n:g,__root:_,__injectWithOption:b}=e,y=e.datetimeFormats,O=e.numberFormats,M=e.flatJson,k=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:v,flatJson:M,datetimeFormats:y,numberFormats:O,missing:a,missingWarn:i,fallbackWarn:s,fallbackRoot:c,fallbackFormat:l,modifiers:u,pluralRules:d,postTranslation:p,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:m,translateExistCompatible:k,__i18n:g,__root:_,__injectWithOption:b}}function N(e={},t){{const t=L(A(e)),{__extender:n}=e,o={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return Object(r["isBoolean"])(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=Object(r["isBoolean"])(e)?!e:e},get silentFallbackWarn(){return Object(r["isBoolean"])(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=Object(r["isBoolean"])(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,o,a]=e,i={};let s=null,c=null;if(!Object(r["isString"])(n))throw h(f.INVALID_ARGUMENT);const l=n;return Object(r["isString"])(o)?i.locale=o:Object(r["isArray"])(o)?s=o:Object(r["isPlainObject"])(o)&&(c=o),Object(r["isArray"])(a)?s=a:Object(r["isPlainObject"])(a)&&(c=a),Reflect.apply(t.t,t,[l,s||c||{},i])},rt(...e){return Reflect.apply(t.rt,t,[...e])},tc(...e){const[n,o,a]=e,i={plural:1};let s=null,c=null;if(!Object(r["isString"])(n))throw h(f.INVALID_ARGUMENT);const l=n;return Object(r["isString"])(o)?i.locale=o:Object(r["isNumber"])(o)?i.plural=o:Object(r["isArray"])(o)?s=o:Object(r["isPlainObject"])(o)&&(c=o),Object(r["isString"])(a)?i.locale=a:Object(r["isArray"])(a)?s=a:Object(r["isPlainObject"])(a)&&(c=a),Reflect.apply(t.t,t,[l,s||c||{},i])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex(e,t){return-1}};return o.__extender=n,o}}const R={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function x({slots:e},t){if(1===t.length&&"default"===t[0]){const t=e.default?e.default():[];return t.reduce((e,t)=>[...e,...t.type===a["Fragment"]?t.children:[t]],[])}return t.reduce((t,n)=>{const r=e[n];return r&&(t[n]=r()),t},Object(r["create"])())}function P(e){return a["Fragment"]}const U=Object(a["defineComponent"])({name:"i18n-t",props:Object(r["assign"])({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Object(r["isNumber"])(e)||!isNaN(e)}},R),setup(e,t){const{slots:n,attrs:o}=t,i=e.i18n||te({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(e=>"_"!==e),c=Object(r["create"])();e.locale&&(c.locale=e.locale),void 0!==e.plural&&(c.plural=Object(r["isString"])(e.plural)?+e.plural:e.plural);const l=x(t,s),u=i[m](e.keypath,l,c),d=Object(r["assign"])(Object(r["create"])(),o),p=Object(r["isString"])(e.tag)||Object(r["isObject"])(e.tag)?e.tag:P();return Object(a["h"])(p,d,u)}}}),V=U;function B(e){return Object(r["isArray"])(e)&&!Object(r["isString"])(e[0])}function F(e,t,n,o){const{slots:i,attrs:s}=t;return()=>{const t={part:!0};let c=Object(r["create"])();e.locale&&(t.locale=e.locale),Object(r["isString"])(e.format)?t.key=e.format:Object(r["isObject"])(e.format)&&(Object(r["isString"])(e.format.key)&&(t.key=e.format.key),c=Object.keys(e.format).reduce((t,o)=>n.includes(o)?Object(r["assign"])(Object(r["create"])(),t,{[o]:e.format[o]}):t,Object(r["create"])()));const l=o(e.value,t,c);let u=[t.key];Object(r["isArray"])(l)?u=l.map((e,t)=>{const n=i[e.type],r=n?n({[e.type]:e.value,index:t,parts:l}):[e.value];return B(r)&&(r[0].key=`${e.type}-${t}`),r}):Object(r["isString"])(l)&&(u=[l]);const d=Object(r["assign"])(Object(r["create"])(),s),p=Object(r["isString"])(e.tag)||Object(r["isObject"])(e.tag)?e.tag:P();return Object(a["h"])(p,d,u)}}const G=Object(a["defineComponent"])({name:"i18n-n",props:Object(r["assign"])({value:{type:Number,required:!0},format:{type:[String,Object]}},R),setup(e,t){const n=e.i18n||te({useScope:e.scope,__useComponent:!0});return F(e,t,o["NUMBER_FORMAT_OPTIONS_KEYS"],(...e)=>n[g](...e))}}),H=G,Y=Object(a["defineComponent"])({name:"i18n-d",props:Object(r["assign"])({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},R),setup(e,t){const n=e.i18n||te({useScope:e.scope,__useComponent:!0});return F(e,t,o["DATETIME_FORMAT_OPTIONS_KEYS"],(...e)=>n[v](...e))}}),z=Y;function q(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}function W(e){const t=t=>{const{instance:n,modifiers:r,value:o}=t;if(!n||!n.$)throw h(f.UNEXPECTED_ERROR);const a=q(e,n.$);const i=K(o);return[Reflect.apply(a.t,a,[...$(i)]),a]},n=(n,o)=>{const[i,s]=t(o);r["inBrowser"]&&e.global===s&&(n.__i18nWatcher=Object(a["watch"])(s.locale,()=>{o.instance&&o.instance.$forceUpdate()})),n.__composer=s,n.textContent=i},o=e=>{r["inBrowser"]&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},i=(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=K(t);e.textContent=Reflect.apply(n.t,n,[...$(r)])}},s=e=>{const[n]=t(e);return{textContent:n}};return{created:n,unmounted:o,beforeUpdate:i,getSSRProps:s}}function K(e){if(Object(r["isString"])(e))return{path:e};if(Object(r["isPlainObject"])(e)){if(!("path"in e))throw h(f.REQUIRED_VALUE,"path");return e}throw h(f.INVALID_VALUE)}function $(e){const{path:t,locale:n,args:o,choice:a,plural:i}=e,s={},c=o||{};return Object(r["isString"])(n)&&(s.locale=n),Object(r["isNumber"])(a)&&(s.plural=a),Object(r["isNumber"])(i)&&(s.plural=i),[t,c,s]}function J(e,t,...n){const o=Object(r["isPlainObject"])(n[0])?n[0]:{},a=!!o.useI18nComponentName,i=!Object(r["isBoolean"])(o.globalInstall)||o.globalInstall;i&&([a?"i18n":V.name,"I18nT"].forEach(t=>e.component(t,V)),[H.name,"I18nN"].forEach(t=>e.component(t,H)),[z.name,"I18nD"].forEach(t=>e.component(t,z))),e.directive("t",W(t))}function X(e,t,n){return{beforeCreate(){const r=Object(a["getCurrentInstance"])();if(!r)throw h(f.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const r=o.i18n;if(o.__i18n&&(r.__i18n=o.__i18n),r.__root=t,this===this.$root)this.$i18n=Q(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=N(r);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Q(e,o);else{this.$i18n=N({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&C(t,o,o),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){0},unmounted(){const e=Object(a["getCurrentInstance"])();if(!e)throw h(f.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}function Q(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[_](t.pluralizationRules||e.pluralizationRules);const n=M(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(t=>e.mergeLocaleMessage(t,n[t])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}const Z=Object(r["makeSymbol"])("global-vue-i18n");function ee(e={},t){const n=__VUE_I18N_LEGACY_API__&&Object(r["isBoolean"])(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,o=!Object(r["isBoolean"])(e.globalInjection)||e.globalInjection,a=!__VUE_I18N_LEGACY_API__||!n||!!e.allowComposition,i=new Map,[s,c]=ne(e,n),l=Object(r["makeSymbol"])("");function u(e){return i.get(e)||null}function d(e,t){i.set(e,t)}function p(e){i.delete(e)}{const e={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(t,...a){if(t.__VUE_I18N_SYMBOL__=l,t.provide(t.__VUE_I18N_SYMBOL__,e),Object(r["isPlainObject"])(a[0])){const t=a[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}let i=null;!n&&o&&(i=pe(t,e.global)),__VUE_I18N_FULL_INSTALL__&&J(t,e,...a),__VUE_I18N_LEGACY_API__&&n&&t.mixin(X(c,c.__composer,e));const s=t.unmount;t.unmount=()=>{i&&i(),e.dispose(),s()}},get global(){return c},dispose(){s.stop()},__instances:i,__getInstance:u,__setInstance:d,__deleteInstance:p};return e}}function te(e={}){const t=Object(a["getCurrentInstance"])();if(null==t)throw h(f.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw h(f.NOT_INSTALLED);const n=re(t),o=ae(n),i=k(t),s=oe(e,i);if(__VUE_I18N_LEGACY_API__&&"legacy"===n.mode&&!e.__useComponent){if(!n.allowComposition)throw h(f.NOT_AVAILABLE_IN_LEGACY_MODE);return le(t,s,o,e)}if("global"===s)return C(o,e,i),o;if("parent"===s){let r=ie(n,t,e.__useComponent);return null==r&&(r=o),r}const c=n;let l=c.__getInstance(t);if(null==l){const n=Object(r["assign"])({},e);"__i18n"in i&&(n.__i18n=i.__i18n),o&&(n.__root=o),l=L(n),c.__composerExtend&&(l[y]=c.__composerExtend(l)),ce(c,t,l),c.__setInstance(t,l)}return l}function ne(e,t,n){const r=Object(a["effectScope"])();{const n=__VUE_I18N_LEGACY_API__&&t?r.run(()=>N(e)):r.run(()=>L(e));if(null==n)throw h(f.UNEXPECTED_ERROR);return[r,n]}}function re(e){{const t=Object(a["inject"])(e.isCE?Z:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw h(e.isCE?f.NOT_INSTALLED_WITH_PROVIDE:f.UNEXPECTED_ERROR);return t}}function oe(e,t){return Object(r["isEmptyObject"])(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function ae(e){return"composition"===e.mode?e.global:e.global.__composer}function ie(e,t,n=!1){let r=null;const o=t.root;let a=se(t,n);while(null!=a){const t=e;if("composition"===e.mode)r=t.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(a);null!=e&&(r=e.__composer,n&&r&&!r[b]&&(r=null))}if(null!=r)break;if(o===a)break;a=a.parent}return r}function se(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}function ce(e,t,n){Object(a["onMounted"])(()=>{0},t),Object(a["onUnmounted"])(()=>{const r=n;e.__deleteInstance(t);const o=r[y];o&&(o(),delete r[y])},t)}function le(e,t,n,i={}){const s="local"===t,c=Object(a["shallowRef"])(null);if(s&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw h(f.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const l=Object(r["isBoolean"])(i.inheritLocale)?i.inheritLocale:!Object(r["isString"])(i.locale),u=Object(a["ref"])(!s||l?n.locale.value:Object(r["isString"])(i.locale)?i.locale:o["DEFAULT_LOCALE"]),d=Object(a["ref"])(!s||l?n.fallbackLocale.value:Object(r["isString"])(i.fallbackLocale)||Object(r["isArray"])(i.fallbackLocale)||Object(r["isPlainObject"])(i.fallbackLocale)||!1===i.fallbackLocale?i.fallbackLocale:u.value),p=Object(a["ref"])(M(u.value,i)),m=Object(a["ref"])(Object(r["isPlainObject"])(i.datetimeFormats)?i.datetimeFormats:{[u.value]:{}}),v=Object(a["ref"])(Object(r["isPlainObject"])(i.numberFormats)?i.numberFormats:{[u.value]:{}}),g=s?n.missingWarn:!Object(r["isBoolean"])(i.missingWarn)&&!Object(r["isRegExp"])(i.missingWarn)||i.missingWarn,_=s?n.fallbackWarn:!Object(r["isBoolean"])(i.fallbackWarn)&&!Object(r["isRegExp"])(i.fallbackWarn)||i.fallbackWarn,b=s?n.fallbackRoot:!Object(r["isBoolean"])(i.fallbackRoot)||i.fallbackRoot,y=!!i.fallbackFormat,O=Object(r["isFunction"])(i.missing)?i.missing:null,k=Object(r["isFunction"])(i.postTranslation)?i.postTranslation:null,C=s?n.warnHtmlMessage:!Object(r["isBoolean"])(i.warnHtmlMessage)||i.warnHtmlMessage,w=!!i.escapeParameter,S=s?n.modifiers:Object(r["isPlainObject"])(i.modifiers)?i.modifiers:{},T=i.pluralRules||s&&n.pluralRules;function I(){return[u.value,d.value,p.value,m.value,v.value]}const E=Object(a["computed"])({get:()=>c.value?c.value.locale.value:u.value,set:e=>{c.value&&(c.value.locale.value=e),u.value=e}}),j=Object(a["computed"])({get:()=>c.value?c.value.fallbackLocale.value:d.value,set:e=>{c.value&&(c.value.fallbackLocale.value=e),d.value=e}}),D=Object(a["computed"])(()=>c.value?c.value.messages.value:p.value),L=Object(a["computed"])(()=>m.value),A=Object(a["computed"])(()=>v.value);function N(){return c.value?c.value.getPostTranslationHandler():k}function R(e){c.value&&c.value.setPostTranslationHandler(e)}function x(){return c.value?c.value.getMissingHandler():O}function P(e){c.value&&c.value.setMissingHandler(e)}function U(e){return I(),e()}function V(...e){return c.value?U(()=>Reflect.apply(c.value.t,null,[...e])):U(()=>"")}function B(...e){return c.value?Reflect.apply(c.value.rt,null,[...e]):""}function F(...e){return c.value?U(()=>Reflect.apply(c.value.d,null,[...e])):U(()=>"")}function G(...e){return c.value?U(()=>Reflect.apply(c.value.n,null,[...e])):U(()=>"")}function H(e){return c.value?c.value.tm(e):{}}function Y(e,t){return!!c.value&&c.value.te(e,t)}function z(e){return c.value?c.value.getLocaleMessage(e):{}}function q(e,t){c.value&&(c.value.setLocaleMessage(e,t),p.value[e]=t)}function W(e,t){c.value&&c.value.mergeLocaleMessage(e,t)}function K(e){return c.value?c.value.getDateTimeFormat(e):{}}function $(e,t){c.value&&(c.value.setDateTimeFormat(e,t),m.value[e]=t)}function J(e,t){c.value&&c.value.mergeDateTimeFormat(e,t)}function X(e){return c.value?c.value.getNumberFormat(e):{}}function Q(e,t){c.value&&(c.value.setNumberFormat(e,t),v.value[e]=t)}function Z(e,t){c.value&&c.value.mergeNumberFormat(e,t)}const ee={get id(){return c.value?c.value.id:-1},locale:E,fallbackLocale:j,messages:D,datetimeFormats:L,numberFormats:A,get inheritLocale(){return c.value?c.value.inheritLocale:l},set inheritLocale(e){c.value&&(c.value.inheritLocale=e)},get availableLocales(){return c.value?c.value.availableLocales:Object.keys(p.value)},get modifiers(){return c.value?c.value.modifiers:S},get pluralRules(){return c.value?c.value.pluralRules:T},get isGlobal(){return!!c.value&&c.value.isGlobal},get missingWarn(){return c.value?c.value.missingWarn:g},set missingWarn(e){c.value&&(c.value.missingWarn=e)},get fallbackWarn(){return c.value?c.value.fallbackWarn:_},set fallbackWarn(e){c.value&&(c.value.missingWarn=e)},get fallbackRoot(){return c.value?c.value.fallbackRoot:b},set fallbackRoot(e){c.value&&(c.value.fallbackRoot=e)},get fallbackFormat(){return c.value?c.value.fallbackFormat:y},set fallbackFormat(e){c.value&&(c.value.fallbackFormat=e)},get warnHtmlMessage(){return c.value?c.value.warnHtmlMessage:C},set warnHtmlMessage(e){c.value&&(c.value.warnHtmlMessage=e)},get escapeParameter(){return c.value?c.value.escapeParameter:w},set escapeParameter(e){c.value&&(c.value.escapeParameter=e)},t:V,getPostTranslationHandler:N,setPostTranslationHandler:R,getMissingHandler:x,setMissingHandler:P,rt:B,d:F,n:G,tm:H,te:Y,getLocaleMessage:z,setLocaleMessage:q,mergeLocaleMessage:W,getDateTimeFormat:K,setDateTimeFormat:$,mergeDateTimeFormat:J,getNumberFormat:X,setNumberFormat:Q,mergeNumberFormat:Z};function te(e){e.locale.value=u.value,e.fallbackLocale.value=d.value,Object.keys(p.value).forEach(t=>{e.mergeLocaleMessage(t,p.value[t])}),Object.keys(m.value).forEach(t=>{e.mergeDateTimeFormat(t,m.value[t])}),Object.keys(v.value).forEach(t=>{e.mergeNumberFormat(t,v.value[t])}),e.escapeParameter=w,e.fallbackFormat=y,e.fallbackRoot=b,e.fallbackWarn=_,e.missingWarn=g,e.warnHtmlMessage=C}return Object(a["onBeforeMount"])(()=>{if(null==e.proxy||null==e.proxy.$i18n)throw h(f.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const n=c.value=e.proxy.$i18n.__composer;"global"===t?(u.value=n.locale.value,d.value=n.fallbackLocale.value,p.value=n.messages.value,m.value=n.datetimeFormats.value,v.value=n.numberFormats.value):s&&te(n)}),ee}const ue=["locale","fallbackLocale","availableLocales"],de=["t","rt","d","n","tm","te"];function pe(e,t){const n=Object.create(null);ue.forEach(e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw h(f.UNEXPECTED_ERROR);const o=Object(a["isRef"])(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,o)}),e.config.globalProperties.$i18n=n,de.forEach(n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw h(f.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,"$"+n,r)});const r=()=>{delete e.config.globalProperties.$i18n,de.forEach(t=>{delete e.config.globalProperties["$"+t]})};return r}if(s(),__INTLIFY_JIT_COMPILATION__?Object(o["registerMessageCompiler"])(o["compile"]):Object(o["registerMessageCompiler"])(o["compileToFunction"]),Object(o["registerMessageResolver"])(o["resolveValue"]),Object(o["registerLocaleFallbacker"])(o["fallbackWithLocaleChain"]),__INTLIFY_PROD_DEVTOOLS__){const e=Object(r["getGlobalThis"])();e.__INTLIFY__=!0,Object(o["setDevToolsHook"])(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}},"9dce":function(e,t,n){"use strict";n("96c0");var r=n("764b");e.exports=r.Math.trunc},"9e51":function(e,t,n){"use strict";var r=n("f96e"),o=TypeError;e.exports=function(e){if(r(e))throw new o("The method doesn't accept regular expressions");return e}},"9e57":function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"9e6a":function(e,t,n){"use strict";var r=n("d233"),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t,n){if(e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},l="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",d=function(e,t){var n={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;d=d.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var p=t.parameterLimit===1/0?void 0:t.parameterLimit,f=d.split(t.delimiter,t.throwOnLimitExceeded?p+1:p);if(t.throwOnLimitExceeded&&f.length>p)throw new RangeError("Parameter limit exceeded. Only "+p+" parameter"+(1===p?"":"s")+" allowed.");var h,m=-1,v=t.charset;if(t.charsetSentinel)for(h=0;h<f.length;++h)0===f[h].indexOf("utf8=")&&(f[h]===u?v="utf-8":f[h]===l&&(v="iso-8859-1"),m=h,h=f.length);for(h=0;h<f.length;++h)if(h!==m){var g,_,b=f[h],y=b.indexOf("]="),O=-1===y?b.indexOf("="):y+1;if(-1===O?(g=t.decoder(b,i.decoder,v,"key"),_=t.strictNullHandling?null:""):(g=t.decoder(b.slice(0,O),i.decoder,v,"key"),null!==g&&(_=r.maybeMap(c(b.slice(O+1),t,a(n[g])?n[g].length:0),(function(e){return t.decoder(e,i.decoder,v,"value")})))),_&&t.interpretNumericEntities&&"iso-8859-1"===v&&(_=s(String(_))),b.indexOf("[]=")>-1&&(_=a(_)?[_]:_),t.comma&&a(_)&&_.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");_=r.combine([],_,t.arrayLimit,t.plainObjects)}if(null!==g){var M=o.call(n,g);M&&("combine"===t.duplicates||b.indexOf("[]=")>-1)?n[g]=r.combine(n[g],_,t.arrayLimit,t.plainObjects):M&&"last"!==t.duplicates||(n[g]=_)}}return n},p=function(e,t,n,o){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var i=e.slice(0,-1).join("");a=Array.isArray(t)&&t[i]?t[i].length:0}for(var s=o?t:c(t,n,a),l=e.length-1;l>=0;--l){var u,d=e[l];if("[]"===d&&n.parseArrays)u=r.isOverflow(s)?s:n.allowEmptyArrays&&(""===s||n.strictNullHandling&&null===s)?[]:r.combine([],s,n.arrayLimit,n.plainObjects);else{u=n.plainObjects?{__proto__:null}:{};var p="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,f=n.decodeDotInKeys?p.replace(/%2E/g,"."):p,h=parseInt(f,10),m=!isNaN(h)&&d!==f&&String(h)===f&&h>=0&&n.parseArrays;if(n.parseArrays||""!==f)if(m&&h<n.arrayLimit)u=[],u[h]=s;else{if(m&&n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");m?(u[h]=s,r.markOverflow(u,h)):"__proto__"!==f&&(u[f]=s)}else u={0:s}}s=u}return s},f=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&o.call(Object.prototype,n)&&!t.allowPrototypes)return;return[n]}var r=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,i=r.exec(n),s=i?n.slice(0,i.index):n,c=[];if(s){if(!t.plainObjects&&o.call(Object.prototype,s)&&!t.allowPrototypes)return;c[c.length]=s}var l=0;while(null!==(i=a.exec(n))&&l<t.depth){l+=1;var u=i[1].slice(1,-1);if(!t.plainObjects&&o.call(Object.prototype,u)&&!t.allowPrototypes)return;c[c.length]=i[1]}if(i){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");c[c.length]="["+n.slice(i.index)+"]"}return c},h=function(e,t,n,r){if(e){var o=f(e,n);if(o)return p(o,t,n,r)}},m=function(e){if(!e)return i;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.decodeDotInKeys&&"boolean"!==typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&"undefined"!==typeof 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");if("undefined"!==typeof e.throwOnLimitExceeded&&"boolean"!==typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t="undefined"===typeof e.charset?i.charset:e.charset,n="undefined"===typeof e.duplicates?i.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");var o="undefined"===typeof e.allowDots?!0===e.decodeDotInKeys||i.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:i.comma,decodeDotInKeys:"boolean"===typeof e.decodeDotInKeys?e.decodeDotInKeys:i.decodeDotInKeys,decoder:"function"===typeof e.decoder?e.decoder:i.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:i.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:i.plainObjects,strictDepth:"boolean"===typeof e.strictDepth?!!e.strictDepth:i.strictDepth,strictMerge:"boolean"===typeof e.strictMerge?!!e.strictMerge:i.strictMerge,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling,throwOnLimitExceeded:"boolean"===typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var n=m(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?{__proto__:null}:{};for(var o="string"===typeof e?d(e,n):e,a=n.plainObjects?{__proto__:null}:{},i=Object.keys(o),s=0;s<i.length;++s){var c=i[s],l=h(c,o[c],n,"string"===typeof e);a=r.merge(a,l,n)}return!0===n.allowSparse?a:r.compact(a)}},"9ead":function(e,t,n){"use strict";var r=n("e160");e.exports=r},"9f26":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,r=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,o=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],a=e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourdhui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return a}))},"9f61":function(e,t,n){"use strict";var r=n("06fa");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},"9ff4":function(e,t,n){"use strict";(function(e){
/**
* @vue/shared v3.5.32
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
function r(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return A})),n.d(t,"f",(function(){return x})),n.d(t,"g",(function(){return B})),n.d(t,"h",(function(){return u})),n.d(t,"i",(function(){return me})),n.d(t,"j",(function(){return Y})),n.d(t,"k",(function(){return U})),n.d(t,"l",(function(){return f})),n.d(t,"m",(function(){return R})),n.d(t,"n",(function(){return ue})),n.d(t,"o",(function(){return V})),n.d(t,"p",(function(){return h})),n.d(t,"q",(function(){return le})),n.d(t,"r",(function(){return j})),n.d(t,"s",(function(){return b})),n.d(t,"t",(function(){return q})),n.d(t,"u",(function(){return oe})),n.d(t,"v",(function(){return I})),n.d(t,"w",(function(){return de})),n.d(t,"x",(function(){return pe})),n.d(t,"y",(function(){return m})),n.d(t,"z",(function(){return ie})),n.d(t,"A",(function(){return l})),n.d(t,"B",(function(){return M})),n.d(t,"C",(function(){return c})),n.d(t,"D",(function(){return T})),n.d(t,"E",(function(){return k})),n.d(t,"F",(function(){return _})),n.d(t,"G",(function(){return fe})),n.d(t,"H",(function(){return E})),n.d(t,"I",(function(){return ae})),n.d(t,"J",(function(){return v})),n.d(t,"K",(function(){return ce})),n.d(t,"L",(function(){return y})),n.d(t,"M",(function(){return O})),n.d(t,"N",(function(){return ge})),n.d(t,"O",(function(){return _e})),n.d(t,"P",(function(){return F})),n.d(t,"Q",(function(){return r})),n.d(t,"R",(function(){return Z})),n.d(t,"S",(function(){return ke})),n.d(t,"T",(function(){return ee})),n.d(t,"U",(function(){return W})),n.d(t,"V",(function(){return d})),n.d(t,"W",(function(){return Q})),n.d(t,"X",(function(){return ye})),n.d(t,"Y",(function(){return P})),n.d(t,"Z",(function(){return G})),n.d(t,"ab",(function(){return S}));const o={},a=[],i=()=>{},s=()=>!1,c=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),u=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,f=(e,t)=>p.call(e,t),h=Array.isArray,m=e=>"[object Map]"===w(e),v=e=>"[object Set]"===w(e),g=e=>"[object Date]"===w(e),_=e=>"[object RegExp]"===w(e),b=e=>"function"===typeof e,y=e=>"string"===typeof e,O=e=>"symbol"===typeof e,M=e=>null!==e&&"object"===typeof e,k=e=>(M(e)||b(e))&&b(e.then)&&b(e.catch),C=Object.prototype.toString,w=e=>C.call(e),S=e=>w(e).slice(8,-1),T=e=>"[object Object]"===w(e),I=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,E=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),j=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),D=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},L=/-\w/g,A=D(e=>e.replace(L,e=>e.slice(1).toUpperCase())),N=/\B([A-Z])/g,R=D(e=>e.replace(N,"-$1").toLowerCase()),x=D(e=>e.charAt(0).toUpperCase()+e.slice(1)),P=D(e=>{const t=e?"on"+x(e):"";return t}),U=(e,t)=>!Object.is(e,t),V=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},B=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},F=e=>{const t=parseFloat(e);return isNaN(t)?e:t},G=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let H;const Y=()=>H||(H="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{});const z="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",q=r(z);function W(e){if(h(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=y(r)?X(r):W(r);if(o)for(const e in o)t[e]=o[e]}return t}if(y(e)||M(e))return e}const K=/;(?![^(]*\))/g,$=/:([^]+)/,J=/\/\*[^]*?\*\//g;function X(e){const t={};return e.replace(J,"").split(K).forEach(e=>{if(e){const n=e.split($);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Q(e){if(!e)return"";if(y(e))return e;let t="";for(const n in e){const r=e[n];if(y(r)||"number"===typeof r){const e=n.startsWith("--")?n:R(n);t+=`${e}:${r};`}}return t}function Z(e){let t="";if(y(e))t=e;else if(h(e))for(let n=0;n<e.length;n++){const r=Z(e[n]);r&&(t+=r+" ")}else if(M(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ee(e){if(!e)return null;let{class:t,style:n}=e;return t&&!y(t)&&(e.class=Z(t)),n&&(e.style=W(n)),e}const te="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",ne="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",re="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",oe=r(te),ae=r(ne),ie=r(re),se="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ce=r(se),le=r(se+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function ue(e){return!!e||""===e}const de=r("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),pe=r("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function fe(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t}const he=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function me(e,t){return e.replace(he,e=>t?'"'===e?'\\\\\\"':"\\\\"+e:"\\"+e)}function ve(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ge(e[r],t[r]);return n}function ge(e,t){if(e===t)return!0;let n=g(e),r=g(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=O(e),r=O(t),n||r)return e===t;if(n=h(e),r=h(t),n||r)return!(!n||!r)&&ve(e,t);if(n=M(e),r=M(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,a=Object.keys(t).length;if(o!==a)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!ge(e[n],t[n]))return!1}}return String(e)===String(t)}function _e(e,t){return e.findIndex(e=>ge(e,t))}const be=e=>!(!e||!0!==e["__v_isRef"]),ye=e=>y(e)?e:null==e?"":h(e)||M(e)&&(e.toString===C||!b(e.toString))?be(e)?ye(e.value):JSON.stringify(e,Oe,2):String(e),Oe=(e,t)=>be(t)?Oe(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Me(t,r)+" =>"]=n,e),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Me(e))}:O(t)?Me(t):!M(t)||h(t)||T(t)?t:String(t),Me=(e,t="")=>{var n;return O(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};function ke(e){return null==e?"initial":"string"===typeof e?""===e?" ":e:("number"===typeof e&&Number.isFinite(e),String(e))}}).call(this,n("c8ba"))},a016:function(e,t,n){"use strict";var r=n("b323"),o=n("9e57");e.exports=Object.keys||function(e){return r(e,o)}},a019:function(e,t,n){"use strict";var r=n("b311"),o=n.n(r);t["a"]=e=>{const t=void 0===(null===e||void 0===e?void 0:e.appendToBody)||e.appendToBody;return{toClipboard(e,n){return new Promise((r,a)=>{const i=document.createElement("button"),s=new o.a(i,{text:()=>e,action:()=>"copy",container:void 0!==n?n:document.body});s.on("success",e=>{s.destroy(),r(e)}),s.on("error",e=>{s.destroy(),a(e)}),t&&document.body.appendChild(i),i.click(),t&&document.body.removeChild(i)})}}}},a033:function(e,t,n){"use strict";var r=n("df2b");e.exports=r},a04b:function(e,t,n){"use strict";var r=n("c04e"),o=n("d9b5");e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},a0b9:function(e,t,n){"use strict";var r=n("a180"),o=Function.prototype,a=o.apply,i=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?i.bind(a):function(){return i.apply(a,arguments)})},a0bf:function(e,t,n){"use strict";var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function o(e,t){return e===t||!(!r(e)||!r(t))}function a(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!o(e[n],t[n]))return!1;return!0}function i(e,t){void 0===t&&(t=a);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}e.exports=i},a0bf7:function(e,t,n){"use strict";var r=n("2d80");r(t,"__esModule",{value:!0}),t.mostReadable=t.isReadable=t.readability=void 0;const o=n("740b");function a(e,t){const n=new o.TinyColor(e),r=new o.TinyColor(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)}function i(e,t,n={level:"AA",size:"small"}){var r,o;const i=a(e,t);switch((null!==(r=n.level)&&void 0!==r?r:"AA")+(null!==(o=n.size)&&void 0!==o?o:"small")){case"AAsmall":case"AAAlarge":return i>=4.5;case"AAlarge":return i>=3;case"AAAsmall":return i>=7;default:return!1}}function s(e,t,n={includeFallbackColors:!1,level:"AA",size:"small"}){let r=null,c=0;const{includeFallbackColors:l,level:u,size:d}=n;for(const i of t){const t=a(e,i);t>c&&(c=t,r=new o.TinyColor(i))}return i(e,r,{level:u,size:d})||!l?r:(n.includeFallbackColors=!1,s(e,["#fff","#000"],n))}t.readability=a,t.isReadable=i,t.mostReadable=s},a0cd:function(e,t,n){"use strict";n("0aa1");var r=n("764b");e.exports=r.Object.keys},a0e5:function(e,t,n){"use strict";var r=n("06fa"),o=n("fb2d"),a=/#|\.prototype\./,i=function(e,t){var n=c[s(e)];return n===u||n!==l&&(o(t)?r(t):!!t)},s=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},c=i.data={},l=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},a0e6:function(e,t,n){"use strict";var r,o,a,i,s,c=n("3eba"),l=n("fb30"),u=n("6414"),d=n("5afb").set,p=n("e889"),f=n("0315"),h=n("ef8f"),m=n("97e3"),v=n("d68b"),g=c.MutationObserver||c.WebKitMutationObserver,_=c.document,b=c.process,y=c.Promise,O=l("queueMicrotask");if(!O){var M=new p,k=function(){var e,t;v&&(e=b.domain)&&e.exit();while(t=M.get())try{t()}catch(n){throw M.head&&r(),n}e&&e.enter()};f||v||m||!g||!_?!h&&y&&y.resolve?(i=y.resolve(void 0),i.constructor=y,s=u(i.then,i),r=function(){s(k)}):v?r=function(){b.nextTick(k)}:(d=u(d,c),r=function(){d(k)}):(o=!0,a=_.createTextNode(""),new g(k).observe(a,{characterData:!0}),r=function(){a.data=o=!o}),O=function(e){M.head||r(),M.add(e)}}e.exports=O},a11e:function(e,t,n){"use strict";var r=n("437b"),o=n("805e"),a=String.prototype;e.exports=function(e){var t=e.padEnd;return"string"==typeof e||e===a||r(a,e)&&t===a.padEnd?o:t}},a180:function(e,t,n){"use strict";var r=n("06fa");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},a1da:function(e,t,n){"use strict";var r=n("f985");e.exports=r},a205:function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},a258:function(e,t,n){"use strict";var r=n("0366"),o=n("44ad"),a=n("7b0b"),i=n("07fa"),s=function(e){var t=1===e;return function(n,s,c){var l,u,d=a(n),p=o(d),f=i(p),h=r(s,c);while(f-- >0)if(l=p[f],u=h(l,f,d),u)switch(e){case 0:return l;case 1:return f}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},a27e:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("9885"),o=n("7d20"),a=n("0931"),i=n("7a23");function s(e,{disabled:t,beforeFocus:n,afterFocus:s,beforeBlur:c,afterBlur:l}={}){const{emit:u}=Object(i["getCurrentInstance"])(),d=Object(i["shallowRef"])(),p=Object(i["ref"])(!1),f=e=>{const r=!!Object(o["isFunction"])(n)&&n(e);Object(i["unref"])(t)||p.value||r||(p.value=!0,u("focus",e),null===s||void 0===s||s())},h=e=>{var n;const r=!!Object(o["isFunction"])(c)&&c(e);Object(i["unref"])(t)||e.relatedTarget&&null!==(n=d.value)&&void 0!==n&&n.contains(e.relatedTarget)||r||(p.value=!1,u("blur",e),null===l||void 0===l||l())},m=n=>{var o,a;Object(i["unref"])(t)||Object(r["d"])(n.target)||null!==(o=d.value)&&void 0!==o&&o.contains(document.activeElement)&&d.value!==document.activeElement||null===(a=e.value)||void 0===a||a.focus()};return Object(i["watch"])([d,()=>Object(i["unref"])(t)],([e,t])=>{e&&(t?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1"))}),Object(a["useEventListener"])(d,"focus",f,!0),Object(a["useEventListener"])(d,"blur",h,!0),Object(a["useEventListener"])(d,"click",m,!0),{isFocused:p,wrapperRef:d,handleFocus:f,handleBlur:h}}},a284:function(e,t,n){"use strict";e.exports=Object},a2ac:function(e,t,n){"use strict";var r=n("a5eb"),o=n("dee0").every,a=n("9f61"),i=a("every");r({target:"Array",proto:!0,forced:!i},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},a2ce:function(e,t,n){"use strict";var r=n("b0fb");e.exports=r},a2e8:function(e,t,n){"use strict";var r=n("9dce");e.exports=r},a356:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(r,o,a,i){var s=t(r),c=n[e][t(r)];return 2===s&&(c=c[o?0:1]),c.replace(/%d/i,r)}},o=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],a=e.defineLocale("ar-dz",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}});return a}))},a37a:function(e,t,n){e.exports=n("a033")},a38c:function(e,t,n){"use strict";n("3e476");var r=n("764b"),o=r.Object,a=e.exports=function(e,t,n){return o.defineProperty(e,t,n)};o.defineProperty.sham&&(a.sham=!0)},a3e3:function(e,t,n){e.exports=n("6c5d")},a3f5:function(e,t,n){"use strict";var r=n("7106"),o=n("fb2d"),a=n("dfdb"),i=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!a(s=r(n,e)))return s;if(o(n=e.valueOf)&&!a(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!a(s=r(n,e)))return s;throw new i("Can't convert object to primitive value")}},a409:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n("14d9");var r=n("9885"),o=n("49c6"),a=n("6a7a"),i=n("7a23");const s="_trap-focus-children",c=[],l=e=>{if(0===c.length)return;const t=Object(a["b"])(e),n=c[c.length-1][s];if(n.length>0&&t===o["a"].tab){if(1===n.length)return e.preventDefault(),void(document.activeElement!==n[0]&&n[0].focus());const t=e.shiftKey,r=e.target===n[0],o=e.target===n[n.length-1];r&&t&&(e.preventDefault(),n[n.length-1].focus()),o&&!t&&(e.preventDefault(),n[0].focus())}},u={beforeMount(e){e[s]=Object(r["g"])(e),c.push(e),c.length<=1&&document.addEventListener("keydown",l)},updated(e){Object(i["nextTick"])(()=>{e[s]=Object(r["g"])(e)})},unmounted(){c.shift(),0===c.length&&document.removeEventListener("keydown",l)}}},a421:function(e,t,n){"use strict";var r=n("638c"),o=n("1875");e.exports=function(e){return r(o(e))}},a493:function(e,t,n){"use strict";n("715d"),n("8d05");var r=n("beea");e.exports=r.f("toPrimitive")},a4fb:function(e,t,n){"use strict";var r=n("c9d2");e.exports=r},a4fc:function(e,t,n){e.exports=n("0a43")},a551:function(e,t,n){"use strict";var r=n("a5eb"),o=n("06fa"),a=n("8e11").f,i=o((function(){return!Object.getOwnPropertyNames(1)}));r({target:"Object",stat:!0,forced:i},{getOwnPropertyNames:a})},a55b:function(e,t,n){"use strict";n("127f");var r=n("c18e");e.exports=r("String","padStart")},a5eb:function(e,t,n){"use strict";var r=n("3eba"),o=n("a0b9"),a=n("13cf"),i=n("fb2d"),s=n("44ba").f,c=n("a0e5"),l=n("764b"),u=n("6414"),d=n("0273"),p=n("0e6f");n("7685");var f=function(e){var t=function(n,r,a){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,a)}return o(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,o,h,m,v,g,_,b,y,O=e.target,M=e.global,k=e.stat,C=e.proto,w=M?r:k?r[O]:r[O]&&r[O].prototype,S=M?l:l[O]||d(l,O,{})[O],T=S.prototype;for(m in t)n=c(M?m:O+(k?".":"#")+m,e.forced),o=!n&&w&&p(w,m),g=S[m],o&&(e.dontCallGetSet?(y=s(w,m),_=y&&y.value):_=w[m]),v=o&&_?_:t[m],(n||C||typeof g!=typeof v)&&(b=e.bind&&o?u(v,r):e.wrap&&o?f(v):C&&i(v)?a(v):v,(e.sham||v&&v.sham||g&&g.sham)&&d(b,"sham",!0),d(S,m,b),C&&(h=O+"Prototype",p(l,h)||d(l,h,{}),d(l[h],m,v),e.real&&T&&(n||!T[m])&&d(T,m,v)))}},a645:function(e,t,n){"use strict";e.exports=Error},a7ea:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}));var r=n("7d20");r["hyphenate"];const o=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),a=e=>Object(r["capitalize"])(e)},a7fa:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});return t}))},a8b3:function(e,t,n){"use strict";var r=n("a5eb"),o=n("99a4");r({target:"Array",proto:!0,forced:[].forEach!==o},{forEach:o})},a902:function(e,t,n){"use strict";n("0feb"),n("0054");var r=n("764b"),o=n("a0b9");r.JSON||(r.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return o(r.JSON.stringify,null,arguments)}},a94a:function(e,t,n){"use strict";var r=n("310f");e.exports=r},a952:function(e,t,n){e.exports=n("6a02")},aa1b:function(e,t,n){"use strict";var r=n("f94a");r("unscopables")},aa9b:function(e,t,n){"use strict";var r=n("5ab9");e.exports=r},aaf2:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var o={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return r?o[n][0]:o[n][1]}var n=e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}});return n}))},ab2b:function(e,t,n){"use strict";e.exports=Math.min},ab36:function(e,t,n){"use strict";var r=n("dfdb");e.exports=function(e){return r(e)||null===e}},ab367:function(e,t,n){"use strict";var r=n("861d"),o=n("9112");e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},ab47:function(e,t,n){"use strict";var r=n("f94a");r("customMatcher")},abc1:function(e,t,n){"use strict";var r=RangeError;e.exports=function(e){if(e===e)return e;throw new r("NaN is not allowed")}},abf2:function(e,t,n){"use strict";var r=n("1c29");n("5145"),e.exports=r},abf5:function(e,t,n){"use strict";n("3dcb");var r=n("764b");e.exports=r.Reflect.has},ac0c:function(e,t,n){"use strict";n("de6a");var r=n("764b");e.exports=r.Object.getPrototypeOf},ac44:function(e,t,n){"use strict";var r=n("06fa");e.exports=!r((function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e}))},acf5:function(e,t,n){e.exports=n("4402")},ad27:function(e,t,n){"use strict";var r=n("4e19"),o=TypeError,a=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new o("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new a(e)}},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},ada2:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var o={ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===r?n?"хвилина":"хвилину":"h"===r?n?"година":"годину":e+" "+t(o[r],+e)}function r(e,t){var n,r={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?r["nominative"].slice(1,7).concat(r["nominative"].slice(0,1)):e?(n=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative",r[n][e.day()]):r["nominative"]}function o(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var a=e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:r,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:o("[Сьогодні "),nextDay:o("[Завтра "),lastDay:o("[Вчора "),nextWeek:o("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return o("[Минулої] dddd [").call(this);case 1:case 2:case 4:return o("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});return a}))},ade5:function(e,t,n){"use strict";var r=n("eb54"),o=Math.floor,a=function(e,t){var n=e.length;if(n<8){var i,s,c=1;while(c<n){s=c,i=e[c];while(s&&t(e[s-1],i)>0)e[s]=e[--s];s!==c++&&(e[s]=i)}}else{var l=o(n/2),u=a(r(e,0,l),t),d=a(r(e,l),t),p=u.length,f=d.length,h=0,m=0;while(h<p||m<f)e[h+m]=h<p&&m<f?t(u[h],d[m])<=0?u[h++]:d[m++]:h<p?u[h++]:d[m++]}return e};e.exports=a},ae93:function(e,t,n){"use strict";var r,o,a,i=n("d039"),s=n("1626"),c=n("861d"),l=n("7c73"),u=n("e163"),d=n("cb2d"),p=n("b622"),f=n("c430"),h=p("iterator"),m=!1;[].keys&&(a=[].keys(),"next"in a?(o=u(u(a)),o!==Object.prototype&&(r=o)):m=!0);var v=!c(r)||i((function(){var e={};return r[h].call(e)!==e}));v?r={}:f&&(r=l(r)),s(r[h])||d(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},aeaa:function(e,t,n){"use strict";var r=n("2d80");r(t,"__esModule",{value:!0}),t.legacyRandom=t.fromRatio=void 0;const o=n("740b"),a=n("1127");function i(e,t){const n={r:(0,a.convertToPercentage)(e.r),g:(0,a.convertToPercentage)(e.g),b:(0,a.convertToPercentage)(e.b)};return void 0!==e.a&&(n.a=Number(e.a)),new o.TinyColor(n,t)}function s(){return new o.TinyColor({r:Math.random(),g:Math.random(),b:Math.random()})}t.fromRatio=i,t.legacyRandom=s},aeb0:function(e,t,n){"use strict";var r=n("9bf2").f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},aed9:function(e,t,n){"use strict";var r=n("83ab"),o=n("d039");e.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},af5f:function(e,t,n){"use strict";n("db04");var r=n("c18e");e.exports=r("String","startsWith")},af70:function(e,t,n){e.exports=n("a1da")},af81:function(e,t,n){"use strict";var r=n("a5eb"),o=n("1967");r({global:!0,forced:parseInt!==o},{parseInt:o})},afd8:function(e,t,n){e.exports=n("3f10")},b090:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"assign",(function(){return m})),n.d(t,"create",(function(){return g})),n.d(t,"createEmitter",(function(){return F})),n.d(t,"deepCopy",(function(){return H})),n.d(t,"escapeHtml",(function(){return y})),n.d(t,"format",(function(){return s})),n.d(t,"friendlyJSONstringify",(function(){return u})),n.d(t,"generateCodeFrame",(function(){return x})),n.d(t,"generateFormatCacheKey",(function(){return l})),n.d(t,"getGlobalThis",(function(){return b})),n.d(t,"hasOwn",(function(){return M})),n.d(t,"inBrowser",(function(){return r})),n.d(t,"incrementer",(function(){return P})),n.d(t,"isArray",(function(){return k})),n.d(t,"isBoolean",(function(){return S})),n.d(t,"isDate",(function(){return p})),n.d(t,"isEmptyObject",(function(){return h})),n.d(t,"isFunction",(function(){return C})),n.d(t,"isNumber",(function(){return d})),n.d(t,"isObject",(function(){return I})),n.d(t,"isPlainObject",(function(){return L})),n.d(t,"isPromise",(function(){return E})),n.d(t,"isRegExp",(function(){return f})),n.d(t,"isString",(function(){return w})),n.d(t,"isSymbol",(function(){return T})),n.d(t,"join",(function(){return N})),n.d(t,"makeSymbol",(function(){return c})),n.d(t,"mark",(function(){return o})),n.d(t,"measure",(function(){return a})),n.d(t,"objectToString",(function(){return j})),n.d(t,"toDisplayString",(function(){return A})),n.d(t,"toTypeString",(function(){return D})),n.d(t,"warn",(function(){return U})),n.d(t,"warnOnce",(function(){return B}));
/*!
* shared v9.14.4
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
const r="undefined"!==typeof window;let o,a;const i=/\{([0-9a-zA-Z]+)\}/g;function s(e,...t){return 1===t.length&&I(t[0])&&(t=t[0]),t&&t.hasOwnProperty||(t={}),e.replace(i,(e,n)=>t.hasOwnProperty(n)?t[n]:"")}const c=(e,t=!1)=>t?Symbol.for(e):Symbol(e),l=(e,t,n)=>u({l:e,k:t,s:n}),u=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),d=e=>"number"===typeof e&&isFinite(e),p=e=>"[object Date]"===D(e),f=e=>"[object RegExp]"===D(e),h=e=>L(e)&&0===Object.keys(e).length,m=Object.assign,v=Object.create,g=(e=null)=>v(e);let _;const b=()=>_||(_="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:g());function y(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const O=Object.prototype.hasOwnProperty;function M(e,t){return O.call(e,t)}const k=Array.isArray,C=e=>"function"===typeof e,w=e=>"string"===typeof e,S=e=>"boolean"===typeof e,T=e=>"symbol"===typeof e,I=e=>null!==e&&"object"===typeof e,E=e=>I(e)&&C(e.then)&&C(e.catch),j=Object.prototype.toString,D=e=>j.call(e),L=e=>{if(!I(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object},A=e=>null==e?"":k(e)||L(e)&&e.toString===j?JSON.stringify(e,null,2):String(e);function N(e,t=""){return e.reduce((e,n,r)=>0===r?e+n:e+t+n,"")}const R=2;function x(e,t=0,n=e.length){const r=e.split(/\r?\n/);let o=0;const a=[];for(let i=0;i<r.length;i++)if(o+=r[i].length+1,o>=t){for(let e=i-R;e<=i+R||n>o;e++){if(e<0||e>=r.length)continue;const s=e+1;a.push(`${s}${" ".repeat(3-String(s).length)}| ${r[e]}`);const c=r[e].length;if(e===i){const e=t-(o-c)+1,r=Math.max(1,n>o?c-e:n-t);a.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(e>i){if(n>o){const e=Math.max(Math.min(n-o,c),1);a.push(" | "+"^".repeat(e))}o+=c+1}}break}return a.join("\n")}function P(e){let t=e;return()=>++t}function U(e,t){"undefined"!==typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const V={};function B(e){V[e]||(V[e]=!0,U(e))}function F(){const e=new Map,t={events:e,on(t,n){const r=e.get(t),o=r&&r.push(n);o||e.set(t,[n])},off(t,n){const r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map(e=>e(n)),(e.get("*")||[]).slice().map(e=>e(t,n))}};return t}const G=e=>!I(e)||k(e);function H(e,t){if(G(e)||G(t))throw new Error("Invalid value");const n=[{src:e,des:t}];while(n.length){const{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{"__proto__"!==r&&(I(e[r])&&!I(t[r])&&(t[r]=Array.isArray(e[r])?[]:g()),G(t[r])||G(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}}.call(this,n("c8ba"))},b0bc:function(e,t,n){e.exports=n("90b3")},b0ea:function(e,t,n){"use strict";var r=n("6f8d"),o=n("6783"),a=n("0b1d"),i=n("0363"),s=i("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||a(n=r(i)[s])?t:o(n)}},b0fb:function(e,t,n){"use strict";n("5dd2");var r=n("764b");e.exports=r.Object.isExtensible},b108:function(e,t,n){"use strict";var r=n("a5eb"),o=n("5b57"),a=n("6c15");r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,(function(e,n){a(t,e,n)}),{AS_ENTRIES:!0}),t}})},b15d:function(e,t,n){"use strict";var r=n("1301"),o=TypeError;e.exports=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new o(r(e)+" is not a set")}},b17a:function(e,t,n){"use strict";var r=n("6f27");n.d(t,"a",(function(){return r["a"]})),n.d(t,"b",(function(){return r["b"]})),n.d(t,"c",(function(){return r["c"]})),n.d(t,"d",(function(){return r["f"]})),n.d(t,"e",(function(){return r["i"]})),n.d(t,"f",(function(){return r["j"]}))},b181:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r}));const r="update:modelValue",o="change",a="input"},b1a6:function(e,t,n){"use strict";e.exports=n("1096")},b1bc:function(e,t,n){"use strict";var r=n("ce18"),o=n("6725"),a=n("8c12"),i=n("2cf1"),s=n("1875"),c=r(i),l=r("".slice),u=Math.ceil,d=function(e){return function(t,n,r){var i=a(s(t)),d=o(n),p=i.length;if(d<=p)return i;var f,h,m=void 0===r?" ":a(r);return""===m?i:(f=d-p,h=c(m,u(f/m.length)),h.length>f&&(h=l(h,0,f)),e?i+h:h+i)}};e.exports={start:d(!1),end:d(!0)}},b288:function(e,t,n){"use strict";var r=n("f94a");r("asyncDispose")},b29d:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}});return t}))},b2ed:function(e,t,n){"use strict";var r=n("d659"),o=n("3e80"),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},b302:function(e,t,n){"use strict";var r=n("c1b2"),o=n("0e6f"),a=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,s=o(a,"name"),c=s&&"something"===function(){}.name,l=s&&(!r||r&&i(a,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},b309:function(e,t,n){"use strict";var r=n("0cae"),o=n("766b");r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},b311:function(e,t,n){
/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/
(function(t,n){e.exports=n()})(0,(function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return L}});var r=n(279),o=n.n(r),a=n(370),i=n.n(a),s=n(817),c=n.n(s);function l(e){try{return document.execCommand(e)}catch(t){return!1}}var u=function(e){var t=c()(e);return l("cut"),t},d=u;function p(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}var f=function(e,t){var n=p(e);t.container.appendChild(n);var r=c()(n);return l("copy"),n.remove(),r},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"===typeof e?n=f(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===e||void 0===e?void 0:e.type)?n=f(e.value,t):(n=c()(e),l("copy")),n},m=h;function v(e){return v="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},v(e)}var g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,o=e.target,a=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==v(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return a?m(a,{container:r}):o?"cut"===n?d(o):m(o,{container:r}):void 0},_=g;function b(e){return b="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},b(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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),Object.defineProperty(e,r.key,r)}}function M(e,t,n){return t&&O(e.prototype,t),n&&O(e,n),e}function k(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}}),t&&C(e,t)}function C(e,t){return C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},C(e,t)}function w(e){var t=I();return function(){var n,r=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==b(t)&&"function"!==typeof t?T(e):t}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function j(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var D=function(e){k(n,e);var t=w(n);function n(e,r){var o;return y(this,n),o=t.call(this),o.resolveOptions(r),o.listenClick(e),o}return M(n,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof e.action?e.action:this.defaultAction,this.target="function"===typeof e.target?e.target:this.defaultTarget,this.text="function"===typeof e.text?e.text:this.defaultText,this.container="object"===b(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=i()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=_({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return j("action",e)}},{key:"defaultTarget",value:function(e){var t=j("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return j("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return m(e,t)}},{key:"cut",value:function(e){return d(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"===typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),n}(o()),L=D},828:function(e){var t=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function r(e,n){while(e&&e.nodeType!==t){if("function"===typeof e.matches&&e.matches(n))return e;e=e.parentNode}}e.exports=r},438:function(e,t,n){var r=n(828);function o(e,t,n,r,o){var a=i.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}function a(e,t,n,r,a){return"function"===typeof e.addEventListener?o.apply(null,arguments):"function"===typeof n?o.bind(null,document).apply(null,arguments):("string"===typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,r,a)})))}function i(e,t,n,o){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=a},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"===typeof e||e instanceof String},t.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},370:function(e,t,n){var r=n(879),o=n(438);function a(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return i(e,t,n);if(r.nodeList(e))return s(e,t,n);if(r.string(e))return c(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function s(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}function c(e,t,n){return o(document.body,e,t,n)}e.exports=a},817:function(e){function t(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(e),r.removeAllRanges(),r.addRange(o),t=r.toString()}return t}e.exports=t},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;for(r;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var a=0,i=r.length;a<i;a++)r[a].fn!==t&&r[a].fn._!==t&&o.push(r[a]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),n(686)}().default}))},b313:function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:a.RFC1738,RFC3986:a.RFC3986}},b323:function(e,t,n){"use strict";var r=n("ce18"),o=n("0e6f"),a=n("a421"),i=n("6386").indexOf,s=n("6e9a"),c=r([].push);e.exports=function(e,t){var n,r=a(e),l=0,u=[];for(n in r)!o(s,n)&&o(r,n)&&c(u,n);while(t.length>l)o(r,n=t[l++])&&(~i(u,n)||c(u,n));return u}},b337:function(e,t,n){"use strict";var r=n("437b"),o=n("44b3"),a=Array.prototype;e.exports=function(e){var t=e.reduce;return e===a||r(a,e)&&t===a.reduce?o:t}},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)}}}))},b3bc:function(e,t,n){!function(t,r){e.exports=r(n("e23e"))}(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"g",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"a",(function(){return b})),n.d(t,"h",(function(){return y}));const r="undefined"!=typeof window,o=("undefined"!=typeof wx&&wx.getSystemInfoSync,r&&window.navigator&&window.navigator.userAgent||""),a=/AppleWebKit\/([\d.]+)/i.exec(o),i=(a&&parseFloat(a.pop()),/iPad/i.test(o)),s=(/iPhone/i.test(o),/iPod/i.test(o),function(){const e=o.match(/OS (\d+)_/i);e&&e[1]&&e[1]}(),/Android/i.test(o)),c=(function(){const e=o.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;const t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);t&&n&&parseFloat(e[1]+"."+e[2])}(),s&&/webkit/i.test(o),/Firefox/i.test(o),/Edge/i.test(o)),l=(!c&&/Chrome/i.test(o),function(){const e=o.match(/Chrome\/(\d+)/);e&&e[1]&&parseFloat(e[1])}(),/MSIE/.test(o),/MSIE\s8\.0/.test(o),function(){const e=/MSIE\s(\d+)\.\d/.exec(o);let t=e&&parseFloat(e[1]);!t&&/Trident\/7.0/i.test(o)&&/rv:11.0/.test(o)&&(t=11)}(),/Safari/i.test(o),/TBS\/\d+/i.test(o));(function(){const e=o.match(/TBS\/(\d+)/i);e&&e[1]&&e[1]})(),!l&&/MQQBrowser\/\d+/i.test(o),!l&&/ QQBrowser\/\d+/i.test(o),/(micromessenger|webbrowser)/i.test(o),/Windows/i.test(o),/MAC OS X/i.test(o),/MicroMessenger/i.test(o),n(2),n(1);const u=function(e){return"map"===g(e)},d=function(e){return"set"===g(e)},p=function(e){return"file"===g(e)},f=function(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;let n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n},h=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"array"===g(e)},m=function(e){return h(e)||function(e){return null!==e&&"object"==typeof e}(e)},v=function(e){return e instanceof Error},g=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()};let _=0;Date.now||(Date.now=function(){return(new Date).getTime()});const b={now:function(){0===_&&(_=Date.now()-1);const e=Date.now()-_;return e>4294967295?(_+=4294967295,Date.now()-_):e},utc:function(){return Math.round(Date.now()/1e3)}},y=function(e){return JSON.stringify(e,["message","code"])}},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n(0);let a=0;const i=new Map;function s(){const e=new Date;return"TSignaling "+e.toLocaleTimeString("en-US",{hour12:!1})+"."+function(e){let t;switch(e.toString().length){case 1:t="00"+e;break;case 2:t="0"+e;break;default:t=e}return t}(e.getMilliseconds())+":"}const c={_data:[],_length:0,_visible:!1,arguments2String(e){let t;if(1===e.length)t=s()+e[0];else{t=s();for(let n=0,r=e.length;n<r;n++)Object(o.b)(e[n])?Object(o.d)(e[n])?t+=Object(o.h)(e[n]):t+=JSON.stringify(e[n]):t+=e[n],t+=" "}return t},debug:function(){if(a<=-1){const e=this.arguments2String(arguments);c.record(e,"debug"),r.a.debug(e)}},log:function(){if(a<=0){const e=this.arguments2String(arguments);c.record(e,"log"),r.a.log(e)}},info:function(){if(a<=1){const e=this.arguments2String(arguments);c.record(e,"info"),r.a.info(e)}},warn:function(){if(a<=2){const e=this.arguments2String(arguments);c.record(e,"warn"),r.a.warn(e)}},error:function(){if(a<=3){const e=this.arguments2String(arguments);c.record(e,"error"),r.a.error(e)}},time:function(e){i.set(e,o.a.now())},timeEnd:function(e){if(i.has(e)){const t=o.a.now()-i.get(e);return i.delete(e),t}return r.a.warn(`未找到对应label: ${e}, 请在调用 logger.timeEnd 前,调用 logger.time`),0},setLevel:function(e){e<4&&r.a.log(s()+"set level from "+a+" to "+e),a=e},record:function(e,t){1100===c._length&&(c._data.splice(0,100),c._length=1e3),c._length++,c._data.push(`${e} [${t}] \n`)},getLog:function(){return c._data}};t.default=c},function(e,t,n){"use strict";n.r(t),t.default={MSG_PRIORITY_HIGH:"High",MSG_PRIORITY_NORMAL:"Normal",MSG_PRIORITY_LOW:"Low",MSG_PRIORITY_LOWEST:"Lowest",KICKED_OUT_MULT_ACCOUNT:"multipleAccount",KICKED_OUT_MULT_DEVICE:"multipleDevice",KICKED_OUT_USERSIG_EXPIRED:"userSigExpired",NET_STATE_CONNECTED:"connected",NET_STATE_CONNECTING:"connecting",NET_STATE_DISCONNECTED:"disconnected",ENTER_ROOM_SUCCESS:"JoinedSuccess",ALREADY_IN_ROOM:"AlreadyInGroup"}},function(e,t,n){"use strict";(function(e){let n,r;n="undefined"!=typeof console?console:void 0!==e&&e.console?e.console:"undefined"!=typeof window&&window.console?window.console:{};const o=function(){},a=["assert","clear","count","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"];let i=a.length;for(;i--;)r=a[i],console[r]||(n[r]=o);t.a=n}).call(this,n(9))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={NEW_INVITATION_RECEIVED:"ts_new_invitation_received",INVITEE_ACCEPTED:"ts_invitee_accepted",INVITEE_REJECTED:"ts_invitee_rejected",INVITATION_CANCELLED:"ts_invitation_cancelled",INVITATION_TIMEOUT:"ts_invitation_timeout",SDK_READY:"ts_im_ready",SDK_NOT_READY:"ts_im_not_ready",TEXT_MESSAGE_RECEIVED:"ts_text_message_received",CUSTOM_MESSAGE_RECEIVED:"ts_custom_message_received",REMOTE_USER_JOIN:"ts_remote_user_join",REMOTE_USER_LEAVE:"ts_remote_user_leave",KICKED_OUT:"ts_kicked_out",NET_STATE_CHANGE:"ts_net_state_change",MESSAGE_SENT_BY_ME:"ts_message_sent_by_me"}},function(e,t,n){"use strict";var r,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCode=t.BusinessID=t.ActionType=void 0,function(e){e[e.INVITE=1]="INVITE",e[e.CANCEL_INVITE=2]="CANCEL_INVITE",e[e.ACCEPT_INVITE=3]="ACCEPT_INVITE",e[e.REJECT_INVITE=4]="REJECT_INVITE",e[e.INVITE_TIMEOUT=5]="INVITE_TIMEOUT"}(r||(r={})),t.ActionType=r,function(e){e[e.SIGNAL=1]="SIGNAL"}(o||(o={})),t.BusinessID=o,function(e){e[e.ERR_INVALID_PARAMETERS=6017]="ERR_INVALID_PARAMETERS",e[e.ERR_SDK_SIGNALING_INVALID_INVITE_ID=8010]="ERR_SDK_SIGNALING_INVALID_INVITE_ID",e[e.ERR_SDK_SIGNALING_NO_PERMISSION=8011]="ERR_SDK_SIGNALING_NO_PERMISSION"}(a||(a={})),t.ErrorCode=a},function(t,n){t.exports=e},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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r};Object.defineProperty(t,"__esModule",{value:!0});var s=n(5),c=n(8),l=n(4),u=n(2),d=n(1),p=n(10),f=n(11),h=n(12),m=n(13),v=n(6),g=n(15).version,_=n(16),b=function(){function e(e){if(this._outerEmitter=null,this._safetyCallbackFactory=null,this._tim=null,this._imSDKAppID=0,this._userID=null,this._groupID="",this._isHandling=!1,this._inviteInfoMap=new Map,this._isRejectNotifyAll=!1,this.offlineSupport=!0,d.default.info("TSignaling version:"+g),p.default(e.SDKAppID))return d.default.error("TSignaling 请传入 SDKAppID !!!"),null;p.default(e.offlineSupport)||"boolean"!=typeof e.offlineSupport?this.offlineSupport=!0:this.offlineSupport=e.offlineSupport,this._outerEmitter=new c.default,this._outerEmitter._emit=this._outerEmitter.emit,this._outerEmitter.emit=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0],r=[n,{name:e[0],data:e[1]}];this._outerEmitter._emit.apply(this._outerEmitter,i(r))}.bind(this),this._safetyCallbackFactory=new h.default,e.tim?this._tim=e.tim:this._tim=v.create({SDKAppID:e.SDKAppID,scene:"TSignaling"}),e.isRejectNotifyAll&&(this._isRejectNotifyAll=!0),this.messageClient=new _.default({tim:this._tim}),this._imSDKAppID=e.SDKAppID,this._tim.on(v.EVENT.SDK_READY,this._onIMReady.bind(this)),this._tim.on(v.EVENT.SDK_NOT_READY,this._onIMNotReady.bind(this)),this._tim.on(v.EVENT.KICKED_OUT,this._onKickedOut.bind(this)),this._tim.on(v.EVENT.NET_STATE_CHANGE,this._onNetStateChange.bind(this)),this._tim.on(v.EVENT.MESSAGE_RECEIVED,this._onMessageReceived.bind(this))}return e.prototype.setLogLevel=function(e){d.default.setLevel(e),this._tim.setLogLevel(e)},e.prototype.login=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){return d.default.log("TSignaling.login",e),this._userID=e.userID,[2,this._tim.login(e)]}))}))},e.prototype.logout=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return d.default.log("TSignaling.logout"),this._userID="",this._inviteInfoMap.clear(),[2,this._tim.logout()]}))}))},e.prototype.on=function(e,t,n){d.default.log("TSignaling.on eventName:"+e),this._outerEmitter.on(e,this._safetyCallbackFactory.defense(e,t,n),n)},e.prototype.off=function(e,t){d.default.log("TSignaling.off eventName:"+e);var n=this._safetyCallbackFactory.find(e,t);null!==n&&(this._outerEmitter.off(e,n),this._safetyCallbackFactory.delete(e,t))},e.prototype.joinGroup=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){return d.default.log("TSignaling.joinGroup groupID:"+e),this._groupID=e,[2,this._tim.joinGroup({groupID:e})]}))}))},e.prototype.quitGroup=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){return d.default.log("TSignaling.quitGroup groupID:"+e),[2,this._tim.quitGroup(e)]}))}))},e.prototype.sendTextMessage=function(e){return o(this,void 0,void 0,(function(){var t;return a(this,(function(n){return t=this._tim.createTextMessage({to:e.to,conversationType:!0===e.groupFlag?v.TYPES.CONV_GROUP:v.TYPES.CONV_C2C,priority:e.priority||v.TYPES.MSG_PRIORITY_NORMAL,payload:{text:e.text}}),[2,this._tim.sendMessage(t)]}))}))},e.prototype.sendCustomMessage=function(e){return o(this,void 0,void 0,(function(){var t;return a(this,(function(n){return t=this._tim.createCustomMessage({to:e.to,conversationType:!0===e.groupFlag?v.TYPES.CONV_GROUP:v.TYPES.CONV_C2C,priority:e.priority||v.TYPES.MSG_PRIORITY_NORMAL,payload:{data:e.data||"",description:e.description||"",extension:e.extension||""}}),[2,this._tim.sendMessage(t)]}))}))},e.prototype.invite=function(e){return o(this,void 0,void 0,(function(){var t,n,o,i,c,l,u,h,v,g;return a(this,(function(a){switch(a.label){case 0:if(t=m.generate(),d.default.log("TSignaling.invite",e,"inviteID="+t),p.default(e)||p.default(e.userID))return[2,Promise.reject(new f.default({code:s.ErrorCode.ERR_INVALID_PARAMETERS,message:"userID is invalid"}))];n=e.userID,o=e.data,i=e.timeout,c=e.offlinePushInfo,l=e.onlineUserOnly,u=void 0!==l&&l,h={businessID:s.BusinessID.SIGNAL,inviteID:t,inviter:this._userID,actionType:s.ActionType.INVITE,inviteeList:[n],data:o,timeout:p.default(i)?0:i,groupID:"",onlineUserOnly:u},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._sendCustomMessage(n,h,c)];case 2:return 0===(v=a.sent()).code?(d.default.log("TSignaling.invite ok"),this._inviteInfoMap.set(t,r(r({},h),{message:v.data.message})),this._startTimer(h,!0),[2,{inviteID:t,code:v.code,data:v.data}]):[2,v];case 3:return g=a.sent(),[2,Promise.reject(new f.default(g))];case 4:return[2]}}))}))},e.prototype.inviteSync=function(e,t,n){var r=m.generate();d.default.log("TSignaling.inviteSync",e,"inviteID="+r),(p.default(e)||p.default(e.userID))&&n&&n(s.ErrorCode.ERR_INVALID_PARAMETERS,"userID is missing");var o=e.userID,a=e.data,i=e.timeout,c=e.offlinePushInfo,l=e.onlineUserOnly,u=void 0!==l&&l,f={businessID:s.BusinessID.SIGNAL,inviteID:r,inviter:this._userID,actionType:s.ActionType.INVITE,inviteeList:[o],data:a,timeout:p.default(i)?0:i,groupID:"",onlineUserOnly:u};return this._sendCustomMessageSync(o,f,(function(){d.default.log("TSignaling.inviteSync ok"),t&&t()}),(function(e,t){n&&n(e,t)}),c),r},e.prototype.inviteInGroup=function(e){return o(this,void 0,void 0,(function(){var t,n,o,i,c,l,u,h,v,g,_;return a(this,(function(a){switch(a.label){case 0:if(t=m.generate(),d.default.log("TSignaling.inviteInGroup",e,"inviteID="+t),p.default(e)||p.default(e.groupID))return[2,Promise.reject(new f.default({code:s.ErrorCode.ERR_INVALID_PARAMETERS,message:"groupID is invalid"}))];n=e.groupID,o=e.inviteeList,i=e.data,c=e.timeout,l=e.offlinePushInfo,u=e.onlineUserOnly,h=void 0!==u&&u,v={businessID:s.BusinessID.SIGNAL,inviteID:t,inviter:this._userID,actionType:s.ActionType.INVITE,inviteeList:o,data:i,timeout:p.default(c)?0:c,groupID:n,onlineUserOnly:h},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._sendCustomMessage(n,v,l)];case 2:return 0===(g=a.sent()).code?(d.default.log("TSignaling.inviteInGroup ok"),this._inviteInfoMap.set(t,r(r({},v),{message:g.data.message})),this._startTimer(v,!0),[2,{inviteID:t,code:g.code,data:g.data}]):[2,g];case 3:return _=a.sent(),[2,Promise.reject(new f.default(_))];case 4:return[2]}}))}))},e.prototype.inviteInGroupSync=function(e,t,n){var r=m.generate();d.default.log("TSignaling.inviteInGroupSync",e,"inviteID="+r),(p.default(e)||p.default(e.groupID))&&n&&n(s.ErrorCode.ERR_INVALID_PARAMETERS,"groupID is missing");var o=e.groupID,a=e.inviteeList,i=e.data,c=e.timeout,l=e.offlinePushInfo,u=e.onlineUserOnly,f=void 0!==u&&u,h={businessID:s.BusinessID.SIGNAL,inviteID:r,inviter:this._userID,actionType:s.ActionType.INVITE,inviteeList:a,data:i,timeout:p.default(c)?0:c,groupID:o,onlineUserOnly:f};return this._sendCustomMessageSync(o,h,(function(){d.default.log("TSignaling.inviteInGroupSync ok"),t&&t()}),(function(e,t){n&&n(e,t)}),l),r},e.prototype.cancel=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o,i,c,l,u,h,m;return a(this,(function(a){switch(a.label){case 0:if(d.default.log("TSignaling.cancel",e),p.default(e)||p.default(e.inviteID)||!this._inviteInfoMap.has(e.inviteID)||this._isHandling)return[2,Promise.reject(new f.default({code:s.ErrorCode.ERR_SDK_SIGNALING_INVALID_INVITE_ID,message:"inviteID is invalid or invitation has been processed"}))];if(this._isHandling=!0,t=e.inviteID,n=e.data,r=this._inviteInfoMap.get(t),o=r.inviter,i=r.groupID,c=r.inviteeList,o!==this._userID)return[3,4];l={businessID:s.BusinessID.SIGNAL,inviteID:t,inviter:o,actionType:s.ActionType.CANCEL_INVITE,inviteeList:c,data:n,timeout:0,groupID:i},u=i||c[0],a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._sendCustomMessage(u,l)];case 2:return h=a.sent(),this._isHandling=!1,h&&0===h.code?(d.default.log("TSignaling.cancel ok"),this._deleteInviteInfoByID(t),[2,{inviteID:t,code:h.code,data:h.data}]):[2,h];case 3:return m=a.sent(),[2,Promise.reject(new f.default(m))];case 4:return d.default.error("TSignaling.cancel unmatched inviter="+o+" and userID="+this._userID),this._isHandling=!1,[2,Promise.reject(new f.default({code:s.ErrorCode.ERR_SDK_SIGNALING_NO_PERMISSION,message:"信令请求无权限,比如取消非自己发起的邀请,接受或则拒绝非发给自己的邀请"}))]}}))}))},e.prototype.accept=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o,i,c,l,u,h;return a(this,(function(a){switch(a.label){case 0:if(d.default.log("TSignaling.accept",e),p.default(e)||p.default(e.inviteID)||!this._inviteInfoMap.has(e.inviteID)||this._isHandling)return[2,Promise.reject(new f.default({code:s.ErrorCode.ERR_SDK_SIGNALING_INVALID_INVITE_ID,message:"inviteID is invalid or invitation has been processed"}))];if(this._isHandling=!0,t=e.inviteID,n=e.data,r=this._inviteInfoMap.get(t),o=r.inviter,i=r.groupID,!r.inviteeList.includes(this._userID))return[3,4];c={businessID:s.BusinessID.SIGNAL,inviteID:t,inviter:o,actionType:s.ActionType.ACCEPT_INVITE,inviteeList:[this._userID],data:n,timeout:0,groupID:i},l=i||o,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._sendCustomMessage(l,c)];case 2:return u=a.sent(),this._isHandling=!1,u&&0===u.code?(d.default.log("TSignaling.accept ok"),this._updateLocalInviteInfo(c),[2,{inviteID:t,code:u.code,data:u.data}]):[2,u];case 3:return h=a.sent(),[2,Promise.reject(new f.default(h))];case 4:return d.default.error("TSignaling.accept inviteeList do not include userID="+this._userID+". inviteID="+t+" groupID="+i),this._isHandling=!1,[2,Promise.reject(new f.default({code:s.ErrorCode.ERR_SDK_SIGNALING_INVALID_INVITE_ID,message:"inviteID is invalid or invitation has been processed"}))]}}))}))},e.prototype.reject=function(e){return o(this,void 0,void 0,(function(){var t,n,r,o,i,c,l,u,h;return a(this,(function(a){switch(a.label){case 0:if(d.default.log("TSignaling.reject",e),p.default(e)||p.default(e.inviteID)||!this._inviteInfoMap.has(e.inviteID)||this._isHandling)return[2,Promise.reject(new f.default({code:s.ErrorCode.ERR_SDK_SIGNALING_INVALID_INVITE_ID,message:"inviteID is invalid or invitation has been processed"}))];if(this._isHandling=!0,t=e.inviteID,n=e.data,r=this._inviteInfoMap.get(t),o=r.inviter,i=r.groupID,!r.inviteeList.includes(this._userID))return[3,4];c={businessID:s.BusinessID.SIGNAL,inviteID:t,inviter:o,actionType:s.ActionType.REJECT_INVITE,inviteeList:[this._userID],data:n,timeout:0,groupID:i},l=i||o,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._sendCustomMessage(l,c)];case 2:return u=a.sent(),this._isHandling=!1,u&&0===u.code?(d.default.log("TSignaling.reject ok"),this._updateLocalInviteInfo(c),[2,{inviteID:t,code:u.code,data:u.data}]):[2,u];case 3:return h=a.sent(),[2,Promise.reject(new f.default(h))];case 4:return d.default.error("TSignaling.reject inviteeList do not include userID="+this._userID+". inviteID="+t+" groupID="+i),this._isHandling=!1,[2,Promise.reject(new f.default({code:s.ErrorCode.ERR_SDK_SIGNALING_INVALID_INVITE_ID,message:"inviteID is invalid or invitation has been processed"}))]}}))}))},e.prototype._onIMReady=function(e){return o(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return d.default.log("TSignaling._onIMReady"),this._outerEmitter.emit(l.default.SDK_READY),!0!==this.offlineSupport?[3,2]:[4,this.messageClient.getHistoricalSignaling()];case 1:e=t.sent(),!p.default(e)&&this._onMessageReceived({data:e}),t.label=2;case 2:return[2]}}))}))},e.prototype._onIMNotReady=function(e){d.default.log("TSignaling.onSdkNotReady"),this._outerEmitter.emit(l.default.SDK_NOT_READY)},e.prototype._onKickedOut=function(e){d.default.log("TSignaling._onKickedOut"),this._outerEmitter.emit(l.default.KICKED_OUT,e.data)},e.prototype._onNetStateChange=function(e){d.default.log("TSignaling._onNetStateChange"),this._outerEmitter.emit(l.default.NET_STATE_CHANGE,e.data)},e.prototype._onMessageReceived=function(e){var t=this;d.default.log("TSignaling._onMessageReceived inviteID="+JSON.stringify(e));var n=e.data,r=n.filter((function(e){return e.type===v.TYPES.MSG_TEXT}));d.default.log("TSignaling._onMessageReceived textMessages"+JSON.stringify(r)),p.default(r)||this._outerEmitter.emit(l.default.TEXT_MESSAGE_RECEIVED,r);var o=n.filter((function(e){return e.type===v.TYPES.MSG_GRP_TIP&&e.payload.operationType===v.TYPES.GRP_TIP_MBR_JOIN}));p.default(o)||this._outerEmitter.emit(l.default.REMOTE_USER_JOIN,o);var a=n.filter((function(e){return e.type===v.TYPES.MSG_GRP_TIP&&e.payload.operationType===v.TYPES.GRP_TIP_MBR_QUIT}));p.default(a)||this._outerEmitter.emit(l.default.REMOTE_USER_LEAVE,a);var i=n.filter((function(e){return e.type===v.TYPES.MSG_CUSTOM})),c=[];i.forEach((function(e){var n,r=e.payload.data,o=!0;try{n=JSON.parse(r)}catch(e){o=!1}if(o){var a=n.businessID,i=n.actionType;if(1===a)switch(i){case s.ActionType.INVITE:t._onNewInvitationReceived(n,e);break;case s.ActionType.REJECT_INVITE:t._onInviteeRejected(n);break;case s.ActionType.ACCEPT_INVITE:t._onInviteeAccepted(n);break;case s.ActionType.CANCEL_INVITE:t._onInvitationCancelled(n);break;case s.ActionType.INVITE_TIMEOUT:t._onInvitationTimeout(n)}else{if("av_call"===a)return!0;d.default.warn("TSignaling._onMessageReceived unknown businessID="+a),c.push(e)}}else c.push(e)})),p.default(c)||this._outerEmitter.emit(l.default.CUSTOM_MESSAGE_RECEIVED,c)},e.prototype._hasLocalInviteInfo=function(e,t){var n=e.inviteID,r=e.groupID;if(d.default.log("TSignaling._hasLocalInviteInfo inviteID="+n+" groupID="+r),!this._inviteInfoMap.has(n))return!1;var o=this._inviteInfoMap.get(n).inviteeList;return!r||(t?o.length>0:o.length>0&&o.includes(this._userID))},e.prototype._startTimer=function(e,t){var n=this;void 0===t&&(t=!0);var r=e.timeout;if(d.default.log("TSignaling._startTimer timeout="+r+" isInvitator="+t+" timeoutStatus="+(0===r)),0!==r)var o=t?r+5:r,a=1,i=setInterval((function(){var r=n._hasLocalInviteInfo(e,t);d.default.log("TSignaling.setInterval hasInviteInfo="+r),a<o&&r?++a:(r&&n._sendTimeoutNotice(e,t),clearInterval(i))}),1e3)},e.prototype._sendTimeoutNotice=function(e,t){return o(this,void 0,void 0,(function(){var n,r,o,i,c,u,p,f;return a(this,(function(a){switch(a.label){case 0:return n=e.inviteID,r=e.groupID,o=e.inviteeList,i=e.inviter,c=e.data,u=t?r||o[0]:r||i,d.default.log("TSignaling._sendTimeoutNotice inviteID="+n+" to="+u+" isInvitator="+t),p={businessID:s.BusinessID.SIGNAL,inviteID:n,inviter:i,actionType:s.ActionType.INVITE_TIMEOUT,inviteeList:t?o:[this._userID],data:c,timeout:0,groupID:r},[4,this._sendCustomMessage(u,p)];case 1:return(f=a.sent())&&0===f.code&&(this._outerEmitter.emit(l.default.INVITATION_TIMEOUT,{inviter:i,inviteID:n,groupID:r,inviteeList:p.inviteeList,isSelfTimeout:!0}),t?this._deleteInviteInfoByID(n):this._updateLocalInviteInfo(p)),[2,f]}}))}))},e.prototype._onNewInvitationReceived=function(t,n){var o=t.inviteID,a=t.inviter,i=t.inviteeList,s=t.groupID,c=i.includes(this._userID);d.default.log("TSignaling._onNewInvitationReceived",t,"myselfIncluded="+c),(s&&c||!s)&&(this._inviteInfoMap.has(o)||this._inviteInfoMap.set(o,r(r({},t),{message:n})),this._outerEmitter.emit(e.EVENT.NEW_INVITATION_RECEIVED,{inviteID:o,inviter:a,groupID:s,inviteeList:i,data:t.data||""}),this._startTimer(t,!1))},e.prototype._onInviteeRejected=function(e){var t=e.inviteID,n=e.inviter,r=e.groupID,o=this._inviteInfoMap.has(t);d.default.log("TSignaling._onInviteeRejected inviteID="+t+" hasInviteID="+o+" inviter="+n+" groupID="+r+" _isRejectNotifyAll="+this._isRejectNotifyAll),(r&&o||!r||this._isRejectNotifyAll)&&(this._updateLocalInviteInfo(e),this._outerEmitter.emit(l.default.INVITEE_REJECTED,{inviteID:t,inviter:n,groupID:r,invitee:e.inviteeList[0],data:e.data||""}))},e.prototype._onInviteeAccepted=function(e){var t=e.inviteID,n=e.inviter,r=e.groupID,o=this._inviteInfoMap.has(t);d.default.log("TSignaling._onInviteeAccepted inviteID="+t+" hasInviteID="+o+" inviter="+n+" groupID="+r),(r&&o||!r)&&(this._updateLocalInviteInfo(e),this._outerEmitter.emit(l.default.INVITEE_ACCEPTED,{inviteID:t,inviter:n,groupID:r,invitee:e.inviteeList[0],data:e.data||""}))},e.prototype._onInvitationCancelled=function(e){var t=e.inviteID,n=e.inviter,r=e.groupID,o=this._inviteInfoMap.has(t);d.default.log("TSignaling._onInvitationCancelled inviteID="+t+" hasInviteID="+o+" inviter="+n+" groupID="+r),(r&&o||!r)&&(this._deleteInviteInfoByID(t),this._outerEmitter.emit(l.default.INVITATION_CANCELLED,{inviteID:t,inviter:n,groupID:r,data:e.data||""}))},e.prototype._onInvitationTimeout=function(e){var t=e.inviteID,n=e.inviter,r=e.groupID,o=e.data,a=this._inviteInfoMap.has(t);d.default.log("TSignaling._onInvitationTimeout inviteID="+t+" hasInviteID="+a+" inviter="+n+" groupID="+r),d.default.log("TSignaling._onInvitationTimeout data="+e.data);var i=JSON.parse(o),s=r&&(0===i.call_end||p.default(i.room_id));p.default(i.room_id)&&i.call_end>0||s||(r&&a||!r)&&(this._updateLocalInviteInfo(e),this._outerEmitter.emit(l.default.INVITATION_TIMEOUT,{inviteID:t,inviter:n,groupID:r,inviteeList:e.inviteeList,isSelfTimeout:!1}))},e.prototype._updateLocalInviteInfo=function(e){var t=e.inviteID,n=e.inviter,r=e.inviteeList,o=e.groupID;if(d.default.log("TSignaling._updateLocalInviteInfo inviteID="+t+" inviter="+n+" groupID="+o),o){if(this._inviteInfoMap.has(t)){var a=r[0],i=this._inviteInfoMap.get(t).inviteeList;i.includes(a)&&(i.splice(i.indexOf(a),1),d.default.log("TSignaling._updateLocalInviteInfo remove "+a+" from localInviteeList. "+i.length+" invitees left")),0===i.length&&this._deleteInviteInfoByID(t)}}else this._deleteInviteInfoByID(t)},e.prototype._deleteInviteInfoByID=function(e){this._inviteInfoMap.has(e)&&(d.default.log("TSignaling._deleteInviteInfoByID remove "+e+" from inviteInfoMap."),this._inviteInfoMap.delete(e))},e.prototype._genMessageControlInfo=function(e){void 0===e&&(e={});var t=e.data,n=void 0===t?"":t,r=e.onlineUserOnly,o=e.inviteID,a=void 0===o?"":o,i=e.actionType,c={_onlineOnlyFlag:!1};a&&this._inviteInfoMap.get(a)&&(c=this._inviteInfoMap.get(a).message);var l={onlineUserOnly:c._onlineOnlyFlag||r||!1,messageControlInfo:{excludedFromContentModeration:!0,excludedFromUnreadCount:!1,excludedFromLastMessage:!1}};if(i===s.ActionType.INVITE_TIMEOUT){var u=!!n.match(/excludeTimeoutSignalingFromHistoryMessage/);return l.messageControlInfo.excludedFromUnreadCount=u,l.messageControlInfo.excludedFromLastMessage=u,l}var d=!!n.match(/excludeFromHistoryMessage/),p=!!n.match(/excludeOriginalSignalingFromHistoryMessage/);return l.messageControlInfo.excludedFromUnreadCount=d||p,l.messageControlInfo.excludedFromLastMessage=d||p,l},e.prototype._sendCustomMessage=function(e,t,n){var i,c,u,p;return o(this,void 0,void 0,(function(){var o,h,m,g,_,b,y,O;return a(this,(function(a){switch(a.label){case 0:o=t.groupID,h=this._tim.createCustomMessage({to:e,conversationType:o?v.TYPES.CONV_GROUP:v.TYPES.CONV_C2C,priority:v.TYPES.MSG_PRIORITY_HIGH,payload:{data:JSON.stringify(t)}}),m=this._genMessageControlInfo(t),a.label=1;case 1:return a.trys.push([1,5,,6]),t.actionType!==s.ActionType.INVITE?[3,3]:(_={title:(g=n||{}).title||"",description:g.description||"您有一个通话请求",androidOPPOChannelID:g.androidOPPOChannelID||"",extension:this._handleOfflineInfo(t,g.extension||"")},d.default.log("TSignaling.offlinePushInfo "+JSON.stringify(_)),[4,this._tim.sendMessage(h,r({offlinePushInfo:{title:_.title,description:_.description,androidOPPOChannelID:_.androidOPPOChannelID,extension:_.extension}},m))]);case 2:return b=a.sent(),(null===(i=null==b?void 0:b.data)||void 0===i?void 0:i.message)&&this._outerEmitter.emit(l.default.MESSAGE_SENT_BY_ME,null===(c=null==b?void 0:b.data)||void 0===c?void 0:c.message),[2,b];case 3:return[4,this._tim.sendMessage(h,m)];case 4:return y=a.sent(),(null===(u=null==y?void 0:y.data)||void 0===u?void 0:u.message)&&this._outerEmitter.emit(l.default.MESSAGE_SENT_BY_ME,null===(p=null==y?void 0:y.data)||void 0===p?void 0:p.message),[2,y];case 5:return O=a.sent(),[2,Promise.reject(new f.default(O))];case 6:return[2]}}))}))},e.prototype._sendCustomMessageSync=function(e,t,n,i,s){return o(this,void 0,void 0,(function(){var o,c;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this._sendCustomMessage(e,t,s)];case 1:return 0===(o=a.sent()).code?(this._inviteInfoMap.set(t.inviteID,r(r({},t),{message:o.data.message})),this._startTimer(t,!0),n()):i(o.code,o.message||""),[3,3];case 2:return c=a.sent(),i(c.code,c.message||""),[3,3];case 3:return[2]}}))}))},e.prototype._handleOfflineInfo=function(e,t){var n=JSON.parse(e.data),r={action:e.actionType,call_type:n.call_type,room_id:n.room_id,call_id:e.inviteID,timeout:n.timeout,version:4,invited_list:e.inviteeList};e.groupID&&(r.group_id=e.groupID);var o={entity:{action:2,chatType:e.groupID?2:1,content:JSON.stringify(r),sendTime:parseInt(Date.now()/1e3+""),sender:e.inviter,version:1},userData:t||""},a=JSON.stringify(o);return d.default.log("TSignaling._handleOfflineInfo "+a),a},e.EVENT=l.default,e.TYPES=u.default,e}();t.default=b},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));const r=Function.prototype.apply,o=new WeakMap;function a(e){return o.has(e)||o.set(e,{}),o.get(e)}class i{constructor(e=null,t=console){const n=a(this);return n._events=new Set,n._callbacks={},n._console=t,n._maxListeners=null===e?null:parseInt(e,10),this}_addCallback(e,t,n,r){return this._getCallbacks(e).push({callback:t,context:n,weight:r}),this._getCallbacks(e).sort((e,t)=>e.weight>t.weight),this}_getCallbacks(e){return a(this)._callbacks[e]}_getCallbackIndex(e,t){return this._has(e)?this._getCallbacks(e).findIndex(e=>e.callback===t):null}_achieveMaxListener(e){return null!==a(this)._maxListeners&&a(this)._maxListeners<=this.listenersNumber(e)}_callbackIsExists(e,t,n){const r=this._getCallbackIndex(e,t),o=-1!==r?this._getCallbacks(e)[r]:void 0;return-1!==r&&o&&o.context===n}_has(e){return a(this)._events.has(e)}on(e,t,n=null,r=1){const o=a(this);if("function"!=typeof t)throw new TypeError(t+" is not a function");return this._has(e)?(this._achieveMaxListener(e)&&o._console.warn(`Max listeners (${o._maxListeners}) for event "${e}" is reached!`),this._callbackIsExists(...arguments)&&o._console.warn(`Event "${e}" already has the callback ${t}.`)):(o._events.add(e),o._callbacks[e]=[]),this._addCallback(...arguments),this}once(e,t,n=null,o=1){const a=(...o)=>(this.off(e,a),r.call(t,n,o));return this.on(e,a,n,o)}off(e,t=null){const n=a(this);let r;return this._has(e)&&(null===t?(n._events.delete(e),n._callbacks[e]=null):(r=this._getCallbackIndex(e,t),-1!==r&&(n._callbacks[e].splice(r,1),this.off(...arguments)))),this}emit(e,...t){return this._has(e)&&this._getCallbacks(e).forEach(e=>r.call(e.callback,e.context,t)),this}clear(){const e=a(this);return e._events.clear(),e._callbacks={},this}listenersNumber(e){return this._has(e)?this._getCallbacks(e).length:null}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);var r=n(0);const o=Object.prototype.hasOwnProperty;t.default=function(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(Object(r.f)(e)){for(const t in e)if(o.call(e,t))return!1;return!0}return!!(Object(r.e)(e)||Object(r.g)(e)||Object(r.c)(e))&&0===e.size}},function(e,t,n){"use strict";n.r(t);class r extends Error{constructor(e){super(),this.code=e.code,this.message=e.message,this.data=e.data||{}}}t.default=r},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(4),a=n.n(o);t.default=class{constructor(){this._funcMap=new Map}defense(e,t,n){if("string"!=typeof e)return null;if(0===e.length)return null;if("function"!=typeof t)return null;if(this._funcMap.has(e)&&this._funcMap.get(e).has(t))return this._funcMap.get(e).get(t);this._funcMap.has(e)||this._funcMap.set(e,new Map);let r=null;return this._funcMap.get(e).has(t)?r=this._funcMap.get(e).get(t):(r=this._pack(e,t,n),this._funcMap.get(e).set(t,r)),r}defenseOnce(e,t,n){return"function"!=typeof t?null:this._pack(e,t,n)}find(e,t){return"string"!=typeof e||0===e.length||"function"!=typeof t?null:this._funcMap.has(e)?this._funcMap.get(e).has(t)?this._funcMap.get(e).get(t):(r.default.log(`SafetyCallback.find: 找不到 func —— ${e}/${""!==t.name?t.name:"[anonymous]"}`),null):(r.default.log(`SafetyCallback.find: 找不到 eventName-${e} 对应的 func`),null)}delete(e,t){return"function"==typeof t&&!!this._funcMap.has(e)&&!!this._funcMap.get(e).has(t)&&(this._funcMap.get(e).delete(t),0===this._funcMap.get(e).size&&this._funcMap.delete(e),!0)}_pack(e,t,n){return function(){try{t.apply(n,Array.from(arguments))}catch(t){const o=Object.values(a.a).indexOf(e),i=Object.keys(a.a)[o];r.default.error(`接入侧事件 EVENT.${i} 对应的回调函数逻辑存在问题,请检查!`,t)}}}}},function(e,t,n){
/**
* UUID.js - RFC-compliant UUID Generator for JavaScript
*
* @file
* @author LiosK
* @version v4.2.12
* @license Apache License 2.0: Copyright (c) 2010-2022 LiosK
*/
var r;r=function(t){"use strict";function r(){var e=o._getRandomInt;this.timestamp=0,this.tick=0,this.sequence=e(14),this.node=1099511627776*(1|e(8))+e(40)}function o(){}return o.generate=function(){var e=o._getRandomInt,t=o._hexAligner;return t(e(32),8)+"-"+t(e(16),4)+"-"+t(16384|e(12),4)+"-"+t(32768|e(14),4)+"-"+t(e(48),12)},o._getRandomInt=function(e){if(e<0||e>53)return NaN;var t=0|1073741824*Math.random();return e>30?t+1073741824*(0|Math.random()*(1<<e-30)):t>>>30-e},o._hexAligner=function(e,t){for(var n=e.toString(16),r=t-n.length,o="0";r>0;r>>>=1,o+=o)1&r&&(n=o+n);return n},o.overwrittenUUID=t,function(){var e=o._getRandomInt;o.useMathRandom=function(){o._getRandomInt=e};var t=null,r=e;"undefined"!=typeof window&&(t=window.crypto||window.msCrypto)?t.getRandomValues&&"undefined"!=typeof Uint32Array&&(r=function(e){if(e<0||e>53)return NaN;var n=new Uint32Array(e>32?2:1);return n=t.getRandomValues(n)||n,e>32?n[0]+4294967296*(n[1]>>>64-e):n[0]>>>32-e}):(t=n(14))&&t.randomBytes&&(r=function(e){if(e<0||e>53)return NaN;var n=t.randomBytes(e>32?8:4),r=n.readUInt32BE(0);return e>32?r+4294967296*(n.readUInt32BE(4)>>>64-e):r>>>32-e}),o._getRandomInt=r}(),o.FIELD_NAMES=["timeLow","timeMid","timeHiAndVersion","clockSeqHiAndReserved","clockSeqLow","node"],o.FIELD_SIZES=[32,16,16,8,8,48],o.genV4=function(){var e=o._getRandomInt;return(new o)._init(e(32),e(16),16384|e(12),128|e(6),e(8),e(48))},o.parse=function(e){var t;if(t=/^\s*(urn:uuid:|\{)?([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{2})([0-9a-f]{2})-([0-9a-f]{12})(\})?\s*$/i.exec(e)){var n=t[1]||"",r=t[8]||"";if(n+r===""||"{"===n&&"}"===r||"urn:uuid:"===n.toLowerCase()&&""===r)return(new o)._init(parseInt(t[2],16),parseInt(t[3],16),parseInt(t[4],16),parseInt(t[5],16),parseInt(t[6],16),parseInt(t[7],16))}return null},o.prototype._init=function(){var e=o.FIELD_NAMES,t=o.FIELD_SIZES,n=o._binAligner,r=o._hexAligner;this.intFields=new Array(6),this.bitFields=new Array(6),this.hexFields=new Array(6);for(var a=0;a<6;a++){var i=parseInt(arguments[a]||0);this.intFields[a]=this.intFields[e[a]]=i,this.bitFields[a]=this.bitFields[e[a]]=n(i,t[a]),this.hexFields[a]=this.hexFields[e[a]]=r(i,t[a]>>>2)}return this.version=this.intFields.timeHiAndVersion>>>12&15,this.bitString=this.bitFields.join(""),this.hexNoDelim=this.hexFields.join(""),this.hexString=this.hexFields[0]+"-"+this.hexFields[1]+"-"+this.hexFields[2]+"-"+this.hexFields[3]+this.hexFields[4]+"-"+this.hexFields[5],this.urn="urn:uuid:"+this.hexString,this},o._binAligner=function(e,t){for(var n=e.toString(2),r=t-n.length,o="0";r>0;r>>>=1,o+=o)1&r&&(n=o+n);return n},o.prototype.toString=function(){return this.hexString},o.prototype.equals=function(e){if(!(e instanceof o))return!1;for(var t=0;t<6;t++)if(this.intFields[t]!==e.intFields[t])return!1;return!0},o.NIL=(new o)._init(0,0,0,0,0,0),o.genV1=function(){null==o._state&&o.resetState();var e=(new Date).getTime(),t=o._state;e!=t.timestamp?(e<t.timestamp&&t.sequence++,t.timestamp=e,t.tick=o._getRandomInt(12)):t.tick<9992?t.tick+=1+o._getRandomInt(3):t.sequence++;var n=o._getTimeFieldValues(t.timestamp),r=n.low+t.tick,a=4095&n.hi|4096;t.sequence&=16383;var i=t.sequence>>>8|128,s=255&t.sequence;return(new o)._init(r,n.mid,a,i,s,t.node)},o.resetState=function(){o._state=new r},o._tsRatio=1/4,o._state=null,o._getTimeFieldValues=function(e){var t=e-Date.UTC(1582,9,15),n=t/4294967296*1e4&268435455;return{low:1e4*(268435455&t)%4294967296,mid:65535&n,hi:n>>>16,timestamp:t}},"object"==typeof e.exports&&(e.exports=o),o}(r)},function(e,t){},function(e){e.exports=JSON.parse('{"name":"tsignaling","version":"1.0.8","description":"腾讯云 Web 信令 SDK","main":"./src/index.ts","scripts":{"lint":"./node_modules/.bin/eslint ./src","fix":"./node_modules/.bin/eslint --fix ./src","ts2js":"tsc src/index.ts --outDir build/ts2js","doc":"npm run ts2js && npm run doc:clean && npm run doc:build","doc:build":"./node_modules/.bin/jsdoc -c build/jsdoc/jsdoc.json && node ./build/jsdoc/fix-doc.js","doc:clean":"node ./build/jsdoc/clean-doc.js","build:wx":"cross-env NODE_ENV=wx webpack --config webpack.prod.config.js","build:web":"node node_modules/cross-env/src/bin/cross-env.js NODE_ENV=web node_modules/webpack/bin/webpack.js --config webpack.prod.config.js","build:package":"node build/package-bundle.js","prerelease":"npm run changelog && npm run build:web && npm run build:wx && npm run build:package && node ./build/copy.js","start:wx":"cross-env NODE_ENV=wx webpack-dev-server --config webpack.config.js","start:web":"node node_modules/cross-env/src/bin/cross-env.js NODE_ENV=web node_modules/webpack-dev-server/bin/webpack-dev-server.js --config webpack.dev.config.js","build_withcopy":"npm run build:web && cp dist/npm/tsignaling-js.js ../TIM-demo-web/node_modules/tsignaling/tsignaling-js.js","build_withcopy:mp":"npm run build:wx && cp dist/npm/tsignaling-wx.js ../TIM-demo-mini/static/component/TRTCCalling/utils/tsignaling-wx.js","changelog":"cp CHANGELOG.md build/jsdoc/tutorials/CHANGELOG.md"},"husky":{"hooks":{"pre-commit":"npm run lint"}},"lint-staged":{"*.{.ts,.tsx}":["eslint","git add"]},"keywords":["腾讯云","即时通信","信令"],"author":"","license":"ISC","devDependencies":{"conventional-changelog-cli":"^2.1.1","cross-env":"^7.0.2","fs-extra":"^9.0.1","html-webpack-plugin":"^4.3.0","ts-loader":"^7.0.5","typescript":"^3.9.9","webpack":"^4.43.0","@types/node":"18.11.9","webpack-cli":"^3.3.11","webpack-dev-server":"^3.11.0"},"dependencies":{"@typescript-eslint/eslint-plugin":"^4.22.1","@typescript-eslint/parser":"^4.22.1","EventEmitter":"^1.0.0","docdash-blue":"1.1.9","eslint":"^5.16.0","eslint-config-google":"^0.13.0","eslint-plugin-classes":"^0.1.1","jsdoc":"^3.6.4","jsdoc-plugin-typescript":"^2.0.5","pretty":"^2.0.0","replace":"^1.2.0","uuidjs":"^4.2.5"}}')},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(5),c=n(6),l=function(){function e(){Object.defineProperty(this,"currentTime",{get:function(){return(new Date).getTime()}})}return e.prototype.doFilter=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(e){return[2]}))}))},e}(),u=function(){function e(){this.filterList=[],this.result=[]}return e.prototype.register=function(e){this.filterList.push(e)},e.prototype.run=function(e){return void 0===e&&(e=[]),a(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:this.result=e,t=0,r.label=1;case 1:return t<this.filterList.length?(n=this,[4,this.filterList[t].doFilter(this.result)]):[3,4];case 2:n.result=r.sent(),r.label=3;case 3:return t++,[3,1];case 4:return[2,this.result]}}))}))},e}(),d=function(e){function t(t){var n=e.call(this)||this;return n.tim=null,n.expiredTime=3e4,n.maxCircleLength=20,n.tim=t.tim,n}return o(t,e),t.prototype.doFilter=function(e){return a(this,void 0,void 0,(function(){var e,t,n,r,o,a,s,c;return i(this,(function(i){switch(i.label){case 0:return e=[],[4,this.tim.getConversationList()];case 1:if(t=i.sent(),n=t.code,r=t.data,o=r.conversationList.length,a=o<=20?o:this.maxCircleLength,0===n)for(s=0;s<a;s++)(c=r.conversationList[s]).unreadCount>0&&c.lastMessage.lastTime&&1e3*c.lastMessage.lastTime>this.currentTime-this.expiredTime&&e.push(c);return[2,e]}}))}))},t}(l),p=function(e){function t(t){var n=e.call(this)||this;return n.tim=null,n.expiredTime=3e4,n.tim=t.tim,n}return o(t,e),t.prototype.doFilter=function(e){return a(this,void 0,void 0,(function(){var t,n,r,o,a,s,l,u,d=this;return i(this,(function(i){switch(i.label){case 0:t=[],n=0,i.label=1;case 1:return n<e.length?(r=e[n],o=r.conversationID,a=r.unreadCount,[4,this.tim.getMessageList({conversationID:o,count:a<=15?a:15})]):[3,4];case 2:s=i.sent(),l=s.code,u=s.data,0===l&&t.push(u.messageList.filter((function(e){return e.type===c.TYPES.MSG_CUSTOM&&e.time&&1e3*e.time>d.currentTime-d.expiredTime}))),i.label=3;case 3:return n++,[3,1];case 4:return[2,t.flat().sort((function(e,t){return e.time-t.time}))]}}))}))},t}(l),f=function(e){function t(){return e.call(this)||this}return o(t,e),t.prototype.doFilter=function(e){return a(this,void 0,void 0,(function(){return i(this,(function(t){return[2,e.filter((function(e){var t=!1;try{t=JSON.parse(e.payload.data).businessID===s.BusinessID.SIGNAL}catch(e){}return t}))]}))}))},t}(l),h=function(e){function t(){return e.call(this)||this}return o(t,e),t.prototype.doFilter=function(e){return a(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){return Array.isArray(e)?0===e.length?[2,[]]:(t=new Map,e.forEach((function(e,n){var r=JSON.parse(e.payload.data),o=r.inviteID,a=r.actionType;!t.has(o)||t.get(o).actionType!==s.ActionType.INVITE||a!==s.ActionType.CANCEL_INVITE&&a!==s.ActionType.ACCEPT_INVITE&&a!==s.ActionType.REJECT_INVITE&&a!==s.ActionType.INVITE_TIMEOUT?t.set(o,{index:n,actionType:a}):t.delete(o)})),n=[],t.forEach((function(e){e.actionType===s.ActionType.INVITE&&n.push(e.index)})),0===n.length?[2,[]]:(r=[],n.sort((function(e,t){return e-t})).forEach((function(t){r.push(e[t])})),[2,r])):[2,[]]}))}))},t}(l),m=function(){function e(e){this.tim=null;var t=e.tim;this.tim=t}return e.prototype.getHistoricalSignaling=function(){return a(this,void 0,void 0,(function(){var e;return i(this,(function(t){return(e=new u).register(new d({tim:this.tim})),e.register(new p({tim:this.tim})),e.register(new f),e.register(new h),[2,e.run()]}))}))},e}();t.default=m}]).default}))},b3eb:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}var n=e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},b426:function(e,t,n){"use strict";var r=n("a5eb");r({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},b42e:function(e,t,n){"use strict";var r=Math.ceil,o=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?o:r)(t)}},b439:function(e,t,n){"use strict";var r=n("abf2");n("5af5"),n("0c82"),n("7201"),n("bffc"),e.exports=r},b43a:function(e,t,n){"use strict";n("711e");var r=n("c18e");e.exports=r("Array","fill")},b469:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}var n=e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},b480:function(e,t,n){"use strict";var r=n("a5eb"),o=n("1e1e");r({target:"Number",stat:!0},{isFinite:o})},b4aa:function(e,t){},b4d1:function(e,t,n){e.exports=n("083a")},b50d:function(e,t,n){"use strict";var r=n("c532"),o=n("467f"),a=n("7aac"),i=n("30b5"),s=n("83b9"),c=n("c345"),l=n("3934"),u=n("2d83"),d=n("cafa"),p=n("7a77");e.exports=function(e){return new Promise((function(t,n){var f,h=e.data,m=e.headers,v=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}r.isFormData(h)&&delete m["Content-Type"];var _=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+y)}var O=s(e.baseURL,e.url);function M(){if(_){var r="getAllResponseHeaders"in _?c(_.getAllResponseHeaders()):null,a=v&&"text"!==v&&"json"!==v?_.response:_.responseText,i={data:a,status:_.status,statusText:_.statusText,headers:r,config:e,request:_};o((function(e){t(e),g()}),(function(e){n(e),g()}),i),_=null}}if(_.open(e.method.toUpperCase(),i(O,e.params,e.paramsSerializer),!0),_.timeout=e.timeout,"onloadend"in _?_.onloadend=M:_.onreadystatechange=function(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(M)},_.onabort=function(){_&&(n(u("Request aborted",e,"ECONNABORTED",_)),_=null)},_.onerror=function(){n(u("Network Error",e,null,_)),_=null},_.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",_)),_=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||l(O))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;k&&(m[e.xsrfHeaderName]=k)}"setRequestHeader"in _&&r.forEach(m,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete m[t]:_.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(_.withCredentials=!!e.withCredentials),v&&"json"!==v&&(_.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&_.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&_.upload&&_.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){_&&(n(!e||e&&e.type?new p("canceled"):e),_.abort(),_=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),h||(h=null),_.send(h)}))}},b539:function(e,t,n){"use strict";var r=n("e635");e.exports=r},b53d:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}});return t}))},b540:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}});return t}))},b557:function(e,t,n){"use strict";var r=n("3eba"),o=n("2c0f"),a=n("fc48"),i=function(e){return o.slice(0,e.length)===e};e.exports=function(){return i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===a(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}()},b5b3:function(e,t,n){"use strict";var r=n("8cfdf");e.exports=r},b5b7:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,a=e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"});return a}))},b5db:function(e,t,n){"use strict";var r=n("cfe9"),o=r.navigator,a=o&&o.userAgent;e.exports=a?String(a):""},b5f1:function(e,t,n){"use strict";e.exports=n("5f66")},b620:function(e,t,n){"use strict";var r=n("cfe9"),o=n("7282"),a=n("c6b6"),i=r.ArrayBuffer,s=r.TypeError;e.exports=i&&o(i.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==a(e))throw new s("ArrayBuffer expected");return e.byteLength}},b622:function(e,t,n){"use strict";var r=n("cfe9"),o=n("5692"),a=n("1a2d"),i=n("90e3"),s=n("04f8"),c=n("fdbf"),l=r.Symbol,u=o("wks"),d=c?l["for"]||l:l&&l.withoutSetter||i;e.exports=function(e){return a(u,e)||(u[e]=s&&a(l,e)?l[e]:d("Symbol."+e)),u[e]}},b64e:function(e,t,n){"use strict";var r=n("2a62");e.exports=function(e,t,n){for(var o=e.length-1;o>=0;o--)if(void 0!==e[o])try{n=r(e[o].iterator,t,n)}catch(a){t="throw",n=a}if("throw"===t)throw n;return n}},b6ce:function(e,t,n){e.exports=n("4947")},b6f1:function(e,t,n){"use strict";var r=n("abf5");e.exports=r},b6fe:function(e,t){},b7a8:function(e,t,n){"use strict";var r=n("a5eb"),o=n("7106"),a=n("7042"),i=n("b302"),s=n("fb2d"),c=n("99da"),l=n("5779"),u=n("ec62"),d=n("2874"),p=n("0273"),f=n("fdbe"),h=n("0363"),m=n("7463"),v=n("bb83"),g=i.PROPER,_=i.CONFIGURABLE,b=v.IteratorPrototype,y=v.BUGGY_SAFARI_ITERATORS,O=h("iterator"),M="keys",k="values",C="entries",w=function(){return this};e.exports=function(e,t,n,i,h,v,S){c(n,t,i);var T,I,E,j=function(e){if(e===h&&R)return R;if(!y&&e&&e in A)return A[e];switch(e){case M:return function(){return new n(this,e)};case k:return function(){return new n(this,e)};case C:return function(){return new n(this,e)}}return function(){return new n(this)}},D=t+" Iterator",L=!1,A=e.prototype,N=A[O]||A["@@iterator"]||h&&A[h],R=!y&&N||j(h),x="Array"===t&&A.entries||N;if(x&&(T=l(x.call(new e)),T!==Object.prototype&&T.next&&(a||l(T)===b||(u?u(T,b):s(T[O])||f(T,O,w)),d(T,D,!0,!0),a&&(m[D]=w))),g&&h===k&&N&&N.name!==k&&(!a&&_?p(A,"name",k):(L=!0,R=function(){return o(N,this)})),h)if(I={values:j(k),keys:v?R:j(M),entries:j(C)},S)for(E in I)(y||L||!(E in A))&&f(A,E,I[E]);else r({target:t,proto:!0,forced:y||L},I);return a&&!S||A[O]===R||f(A,O,R,{name:h}),m[t]=R,I}},b7e9:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},b82f:function(e,t,n){"use strict";n("55d0");var r=n("764b");e.exports=r.Object.assign},b83a:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("3b4c"),o=n.n(r);const a=o()("buttonGroupContextKey")},b83c:function(e,t,n){"use strict";var r=n("b887");e.exports=r},b848:function(e,t,n){"use strict";var r=n("23e7"),o=n("cfe9"),a=n("e330"),i=n("6b37"),s=n("2005"),c=a(1.1.toString),l=a([].join),u=Array,d=o.Uint8Array,p=!d||!d.prototype.toHex||!function(){try{var e=new d([255,255,255,255,255,255,255,255]);return"ffffffffffffffff"===e.toHex()}catch(t){return!1}}();d&&r({target:"Uint8Array",proto:!0,forced:p},{toHex:function(){i(this),s(this.buffer);for(var e=u(this.length),t=0,n=this.length;t<n;t++){var r=c(this[t],16);e[t]=1===r.length?"0"+r:r}return l(e,"")}})},b84c:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},b887:function(e,t,n){"use strict";n("9bb8");var r=n("764b"),o=r.Object,a=e.exports=function(e,t){return o.getOwnPropertyDescriptor(e,t)};o.getOwnPropertyDescriptor.sham&&(a.sham=!0)},b8ca:function(e,t,n){"use strict";n.r(t),n.d(t,"rectToClientRect",(function(){return E})),n.d(t,"arrow",(function(){return N})),n.d(t,"autoPlacement",(function(){return x})),n.d(t,"computePosition",(function(){return A})),n.d(t,"detectOverflow",(function(){return D})),n.d(t,"flip",(function(){return P})),n.d(t,"hide",(function(){return B})),n.d(t,"inline",(function(){return H})),n.d(t,"limitShift",(function(){return K})),n.d(t,"offset",(function(){return q})),n.d(t,"shift",(function(){return W})),n.d(t,"size",(function(){return $}));const r=["top","right","bottom","left"],o=["start","end"],a=r.reduce((e,t)=>e.concat(t,t+"-"+o[0],t+"-"+o[1]),[]),i=Math.min,s=Math.max,c=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"});function l(e,t,n){return s(e,i(t,n))}function u(e,t){return"function"===typeof e?e(t):e}function d(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function f(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function m(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function v(e){return f(m(e))}function g(e,t,n){void 0===n&&(n=!1);const r=p(e),o=v(e),a=h(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=S(i)),[i,S(i)]}function _(e){const t=S(e);return[b(e),t,b(t)]}function b(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const y=["left","right"],O=["right","left"],M=["top","bottom"],k=["bottom","top"];function C(e,t,n){switch(e){case"top":case"bottom":return n?t?O:y:t?y:O;case"left":case"right":return t?M:k;default:return[]}}function w(e,t,n,r){const o=p(e);let a=C(d(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(b)))),a}function S(e){const t=d(e);return c[t]+e.slice(t.length)}function T(e){return{top:0,right:0,bottom:0,left:0,...e}}function I(e){return"number"!==typeof e?T(e):{top:e,right:e,bottom:e,left:e}}function E(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function j(e,t,n){let{reference:r,floating:o}=e;const a=m(t),i=v(t),s=h(i),c=d(t),l="y"===a,u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[s]/2-o[s]/2;let _;switch(c){case"top":_={x:u,y:r.y-o.height};break;case"bottom":_={x:u,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:f};break;case"left":_={x:r.x-o.width,y:f};break;default:_={x:r.x,y:r.y}}switch(p(t)){case"start":_[i]-=g*(n&&l?-1:1);break;case"end":_[i]+=g*(n&&l?-1:1);break}return _}async function D(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:h=0}=u(t,e),m=I(h),v="floating"===p?"reference":"floating",g=s[f?v:p],_=E(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:d,strategy:c})),b="floating"===p?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),O=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},M=E(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:c}):b);return{top:(_.top-M.top+m.top)/O.y,bottom:(M.bottom-_.bottom+m.bottom)/O.y,left:(_.left-M.left+m.left)/O.x,right:(M.right-_.right+m.right)/O.x}}const L=50,A=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=i.detectOverflow?i:{...i,detectOverflow:D},c=await(null==i.isRTL?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=j(l,r,c),p=r,f=0;const h={};for(let m=0;m<a.length;m++){const n=a[m];if(!n)continue;const{name:v,fn:g}=n,{x:_,y:b,data:y,reset:O}=await g({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=_?_:u,d=null!=b?b:d,h[v]={...h[v],...y},O&&f<L&&(f++,"object"===typeof O&&(O.placement&&(p=O.placement),O.rects&&(l=!0===O.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):O.rects),({x:u,y:d}=j(l,p,c))),m=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:h}},N=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:d}=t,{element:f,padding:m=0}=u(e,t)||{};if(null==f)return{};const g=I(m),_={x:n,y:r},b=v(o),y=h(b),O=await s.getDimensions(f),M="y"===b,k=M?"top":"left",C=M?"bottom":"right",w=M?"clientHeight":"clientWidth",S=a.reference[y]+a.reference[b]-_[b]-a.floating[y],T=_[b]-a.reference[b],E=await(null==s.getOffsetParent?void 0:s.getOffsetParent(f));let j=E?E[w]:0;j&&await(null==s.isElement?void 0:s.isElement(E))||(j=c.floating[w]||a.floating[y]);const D=S/2-T/2,L=j/2-O[y]/2-1,A=i(g[k],L),N=i(g[C],L),R=A,x=j-O[y]-N,P=j/2-O[y]/2+D,U=l(R,P,x),V=!d.arrow&&null!=p(o)&&P!==U&&a.reference[y]/2-(P<R?A:N)-O[y]/2<0,B=V?P<R?P-R:P-x:0;return{[b]:_[b]+B,data:{[b]:U,centerOffset:P-U-B,...V&&{alignmentOffset:B}},reset:V}}});function R(e,t,n){const r=e?[...n.filter(t=>p(t)===e),...n.filter(t=>p(t)!==e)]:n.filter(e=>d(e)===e);return r.filter(n=>!e||(p(n)===e||!!t&&b(n)!==n))}const x=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:i,middlewareData:s,placement:c,platform:l,elements:f}=t,{crossAxis:h=!1,alignment:m,allowedPlacements:v=a,autoAlignment:_=!0,...b}=u(e,t),y=void 0!==m||v===a?R(m||null,_,v):v,O=await l.detectOverflow(t,b),M=(null==(n=s.autoPlacement)?void 0:n.index)||0,k=y[M];if(null==k)return{};const C=g(k,i,await(null==l.isRTL?void 0:l.isRTL(f.floating)));if(c!==k)return{reset:{placement:y[0]}};const w=[O[d(k)],O[C[0]],O[C[1]]],S=[...(null==(r=s.autoPlacement)?void 0:r.overflows)||[],{placement:k,overflows:w}],T=y[M+1];if(T)return{data:{index:M+1,overflows:S},reset:{placement:T}};const I=S.map(e=>{const t=p(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),E=I.filter(e=>e[2].slice(0,p(e[0])?2:3).every(e=>e<=0)),j=(null==(o=E[0])?void 0:o[0])||I[0][0];return j!==c?{data:{index:M+1,overflows:S},reset:{placement:j}}:{}}}},P=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...O}=u(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const M=d(o),k=m(s),C=d(s)===s,T=await(null==c.isRTL?void 0:c.isRTL(l.floating)),I=h||(C||!y?[S(s)]:_(s)),E="none"!==b;!h&&E&&I.push(...w(s,y,b,T));const j=[s,...I],D=await c.detectOverflow(t,O),L=[];let A=(null==(r=a.flip)?void 0:r.overflows)||[];if(p&&L.push(D[M]),f){const e=g(o,i,T);L.push(D[e[0]],D[e[1]])}if(A=[...A,{placement:o,overflows:L}],!L.every(e=>e<=0)){var N,R;const e=((null==(N=a.flip)?void 0:N.index)||0)+1,t=j[e];if(t){const n="alignment"===f&&k!==m(t);if(!n||A.every(e=>m(e.placement)!==k||e.overflows[0]>0))return{data:{index:e,overflows:A},reset:{placement:t}}}let n=null==(R=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:R.placement;if(!n)switch(v){case"bestFit":{var x;const e=null==(x=A.filter(e=>{if(E){const t=m(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:x[0];e&&(n=e);break}case"initialPlacement":n=s;break}if(o!==n)return{reset:{placement:n}}}return{}}}};function U(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function V(e){return r.some(t=>e[t]>=0)}const B=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...a}=u(e,t);switch(o){case"referenceHidden":{const e=await r.detectOverflow(t,{...a,elementContext:"reference"}),o=U(e,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:V(o)}}}case"escaped":{const e=await r.detectOverflow(t,{...a,altBoundary:!0}),o=U(e,n.floating);return{data:{escapedOffsets:o,escaped:V(o)}}}default:return{}}}}};function F(e){const t=i(...e.map(e=>e.left)),n=i(...e.map(e=>e.top)),r=s(...e.map(e=>e.right)),o=s(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:o-n}}function G(e){const t=e.slice().sort((e,t)=>e.y-t.y),n=[];let r=null;for(let o=0;o<t.length;o++){const e=t[o];!r||e.y-r.y>r.height/2?n.push([e]):n[n.length-1].push(e),r=e}return n.map(e=>E(F(e)))}const H=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:a,strategy:c}=t,{padding:l=2,x:p,y:f}=u(e,t),h=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]),v=G(h),g=E(F(h)),_=I(l);function b(){if(2===v.length&&v[0].left>v[1].right&&null!=p&&null!=f)return v.find(e=>p>e.left-_.left&&p<e.right+_.right&&f>e.top-_.top&&f<e.bottom+_.bottom)||g;if(v.length>=2){if("y"===m(n)){const e=v[0],t=v[v.length-1],r="top"===d(n),o=e.top,a=t.bottom,i=r?e.left:t.left,s=r?e.right:t.right,c=s-i,l=a-o;return{top:o,bottom:a,left:i,right:s,width:c,height:l,x:i,y:o}}const e="left"===d(n),t=s(...v.map(e=>e.right)),r=i(...v.map(e=>e.left)),o=v.filter(n=>e?n.left===r:n.right===t),a=o[0].top,c=o[o.length-1].bottom,l=r,u=t,p=u-l,f=c-a;return{top:a,bottom:c,left:l,right:u,width:p,height:f,x:l,y:a}}return g}const y=await a.getElementRects({reference:{getBoundingClientRect:b},floating:r.floating,strategy:c});return o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}},Y=new Set(["left","top"]);async function z(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=d(n),s=p(n),c="y"===m(n),l=Y.has(i)?-1:1,f=a&&c?-1:1,h=u(t,e);let{mainAxis:v,crossAxis:g,alignmentAxis:_}="number"===typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"===typeof _&&(g="end"===s?-1*_:_),c?{x:g*f,y:v*l}:{x:v*l,y:g*f}}const q=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await z(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},W=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...p}=u(e,t),h={x:n,y:r},v=await a.detectOverflow(t,p),g=m(d(o)),_=f(g);let b=h[_],y=h[g];if(i){const e="y"===_?"top":"left",t="y"===_?"bottom":"right",n=b+v[e],r=b-v[t];b=l(n,b,r)}if(s){const e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=y+v[e],r=y-v[t];y=l(n,y,r)}const O=c.fn({...t,[_]:b,[g]:y});return{...O,data:{x:O.x-n,y:O.y-r,enabled:{[_]:i,[g]:s}}}}}},K=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=u(e,t),p={x:n,y:r},h=m(o),v=f(h);let g=p[v],_=p[h];const b=u(s,t),y="number"===typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const e="y"===v?"height":"width",t=a.reference[v]-a.floating[e]+y.mainAxis,n=a.reference[v]+a.reference[e]-y.mainAxis;g<t?g=t:g>n&&(g=n)}if(l){var O,M;const e="y"===v?"width":"height",t=Y.has(d(o)),n=a.reference[h]-a.floating[e]+(t&&(null==(O=i.offset)?void 0:O[h])||0)+(t?0:y.crossAxis),r=a.reference[h]+a.reference[e]+(t?0:(null==(M=i.offset)?void 0:M[h])||0)-(t?y.crossAxis:0);_<n?_=n:_>r&&(_=r)}return{[v]:g,[h]:_}}}},$=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:c,elements:l}=t,{apply:f=(()=>{}),...h}=u(e,t),v=await c.detectOverflow(t,h),g=d(o),_=p(o),b="y"===m(o),{width:y,height:O}=a.floating;let M,k;"top"===g||"bottom"===g?(M=g,k=_===(await(null==c.isRTL?void 0:c.isRTL(l.floating))?"start":"end")?"left":"right"):(k=g,M="end"===_?"top":"bottom");const C=O-v.top-v.bottom,w=y-v.left-v.right,S=i(O-v[M],C),T=i(y-v[k],w),I=!t.middlewareData.shift;let E=S,j=T;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(j=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=C),I&&!_){const e=s(v.left,0),t=s(v.right,0),n=s(v.top,0),r=s(v.bottom,0);b?j=y-2*(0!==e||0!==t?e+t:s(v.left,v.right)):E=O-2*(0!==n||0!==r?n+r:s(v.top,v.bottom))}await f({...t,availableWidth:j,availableHeight:E});const D=await c.getDimensions(l.floating);return y!==D.width||O!==D.height?{reset:{rects:!0}}:{}}}}},b915:function(e,t,n){"use strict";e.exports=n("9ead")},b917:function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=r+"+/",a=r+"-_",i=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};e.exports={i2c:o,c2i:i(o),i2cUrl:a,c2iUrl:i(a)}},b923:function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return C})),n.d(t,"c",(function(){return ve})),n.d(t,"d",(function(){return z})),n.d(t,"e",(function(){return H})),n.d(t,"f",(function(){return X})),n.d(t,"g",(function(){return A})),n.d(t,"h",(function(){return K})),n.d(t,"i",(function(){return D})),n.d(t,"j",(function(){return Q}));var r=n("6f27");const o=65535,a=Math.pow(2,16);function i(e,t){return e+t*a}function s(e){return e&o}function c(e){return(e-(e&o))/a}const l=1,u=2,d=4,p=8;class f{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&p)>0}get deletedBefore(){return(this.delInfo&(l|d))>0}get deletedAfter(){return(this.delInfo&(u|d))>0}get deletedAcross(){return(this.delInfo&d)>0}}class h{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&h.empty)return h.empty}recover(e){let t=0,n=s(e);if(!this.inverted)for(let r=0;r<n;r++)t+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+t+c(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,o=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let c=this.ranges[s]-(this.inverted?r:0);if(c>e)break;let h=this.ranges[s+o],m=this.ranges[s+a],v=c+h;if(e<=v){let o=h?e==c?-1:e==v?1:t:t,a=c+r+(o<0?0:m);if(n)return a;let g=e==(t<0?c:v)?null:i(s/3,e-c),_=e==c?u:e==v?l:d;return(t<0?e!=c:e!=v)&&(_|=p),new f(a,_,g)}r+=m-h}return n?e+r:new f(e+r,0,null)}touches(e,t){let n=0,r=s(t),o=this.inverted?2:1,a=this.inverted?1:2;for(let i=0;i<this.ranges.length;i+=3){let t=this.ranges[i]-(this.inverted?n:0);if(t>e)break;let s=this.ranges[i+o],c=t+s;if(e<=c&&i==3*r)return!0;n+=this.ranges[i+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let a=this.ranges[r],i=a-(this.inverted?o:0),s=a+(this.inverted?0:o),c=this.ranges[r+t],l=this.ranges[r+n];e(i,i+c,s,s+l),o+=l-c}}invert(){return new h(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?h.empty:new h(e<0?[0,-e,0]:[0,0,e])}}h.empty=new h([]);class m{constructor(e,t,n=0,r=(e?e.length:0)){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new m(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror)for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new m;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let o=this.from;o<this.to;o++){let n=this._maps[o],a=n.mapResult(e,t);if(null!=a.recover){let t=this.getMirror(o);if(null!=t&&t>o&&t<this.to){o=t,e=this._maps[t].recover(a.recover);continue}}r|=a.delInfo,e=a.pos}return n?e:new f(e,r,null)}}const v=Object.create(null);class g{getMap(){return h.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=v[t.stepType];if(!n)throw new RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in v)throw new RangeError("Duplicate use of step JSON ID "+e);return v[e]=t,t.prototype.jsonID=e,t}}class _{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new _(e,null)}static fail(e){return new _(null,e)}static fromReplace(e,t,n,o){try{return _.ok(e.replace(t,n,o))}catch(a){if(a instanceof r["h"])return _.fail(a.message);throw a}}}function b(e,t,n){let o=[];for(let r=0;r<e.childCount;r++){let a=e.child(r);a.content.size&&(a=a.copy(b(a.content,t,a))),a.isInline&&(a=t(a,n,r)),o.push(a)}return r["c"].fromArray(o)}class y extends g{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),o=n.node(n.sharedDepth(this.to)),a=new r["j"](b(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,o),t.openStart,t.openEnd);return _.fromReplace(e,this.from,this.to,a)}invert(){return new O(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new y(t.pos,n.pos,this.mark)}merge(e){return e instanceof y&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new y(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new y(t.from,t.to,e.markFromJSON(t.mark))}}g.jsonID("addMark",y);class O extends g{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new r["j"](b(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return _.fromReplace(e,this.from,this.to,n)}invert(){return new y(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new O(t.pos,n.pos,this.mark)}merge(e){return e instanceof O&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new O(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new O(t.from,t.to,e.markFromJSON(t.mark))}}g.jsonID("removeMark",O);class M extends g{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return _.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return _.fromReplace(e,this.pos,this.pos+1,new r["j"](r["c"].from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new M(this.pos,t.marks[n]);return new M(this.pos,this.mark)}}return new k(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new M(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new M(t.pos,e.markFromJSON(t.mark))}}g.jsonID("addNodeMark",M);class k extends g{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return _.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return _.fromReplace(e,this.pos,this.pos+1,new r["j"](r["c"].from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new M(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new k(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new k(t.pos,e.markFromJSON(t.mark))}}g.jsonID("removeNodeMark",k);class C extends g{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&S(e,this.from,this.to)?_.fail("Structure replace would overwrite content"):_.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new h([this.from,this.to-this.from,this.slice.size])}invert(e){return new C(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),n=this.from==this.to&&C.MAP_BIAS<0?t:e.mapResult(this.from,1);return n.deletedAcross&&t.deletedAcross?null:new C(n.pos,Math.max(n.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof C)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?r["j"].empty:new r["j"](e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new C(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?r["j"].empty:new r["j"](this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new C(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new C(t.from,t.to,r["j"].fromJSON(e,t.slice),!!t.structure)}}C.MAP_BIAS=1,g.jsonID("replace",C);class w extends g{constructor(e,t,n,r,o,a,i=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=o,this.insert=a,this.structure=i}apply(e){if(this.structure&&(S(e,this.from,this.gapFrom)||S(e,this.gapTo,this.to)))return _.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return _.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?_.fromReplace(e,this.from,this.to,n):_.fail("Content does not fit in gap")}getMap(){return new h([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new w(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||o>n.pos?null:new w(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new w(t.from,t.to,t.gapFrom,t.gapTo,r["j"].fromJSON(e,t.slice),t.insert,!!t.structure)}}function S(e,t,n){let r=e.resolve(t),o=n-t,a=r.depth;while(o>0&&a>0&&r.indexAfter(a)==r.node(a).childCount)a--,o--;if(o>0){let e=r.node(a).maybeChild(r.indexAfter(a));while(o>0){if(!e||e.isLeaf)return!0;e=e.firstChild,o--}}return!1}function T(e,t,n,r){let o,a,i=[],s=[];e.doc.nodesBetween(t,n,(e,c,l)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&l.type.allowsMarkType(r.type)){let l=Math.max(c,t),d=Math.min(c+e.nodeSize,n),p=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(p)||(o&&o.to==l&&o.mark.eq(u[e])?o.to=d:i.push(o=new O(l,d,u[e])));a&&a.to==l?a.to=d:s.push(a=new y(l,d,r))}}),i.forEach(t=>e.step(t)),s.forEach(t=>e.step(t))}function I(e,t,n,o){let a=[],i=0;e.doc.nodesBetween(t,n,(e,s)=>{if(!e.isInline)return;i++;let c=null;if(o instanceof r["e"]){let t,n=e.marks;while(t=o.isInSet(n))(c||(c=[])).push(t),n=t.removeFromSet(n)}else o?o.isInSet(e.marks)&&(c=[o]):c=e.marks;if(c&&c.length){let r=Math.min(s+e.nodeSize,n);for(let e=0;e<c.length;e++){let n,o=c[e];for(let e=0;e<a.length;e++){let t=a[e];t.step==i-1&&o.eq(a[e].style)&&(n=t)}n?(n.to=r,n.step=i):a.push({style:o,from:Math.max(s,t),to:r,step:i})}}}),a.forEach(t=>e.step(new O(t.from,t.to,t.style)))}function E(e,t,n,o=n.contentMatch,a=!0){let i=e.doc.nodeAt(t),s=[],c=t+1;for(let l=0;l<i.childCount;l++){let t=i.child(l),u=c+t.nodeSize,d=o.matchType(t.type);if(d){o=d;for(let r=0;r<t.marks.length;r++)n.allowsMarkType(t.marks[r].type)||e.step(new O(c,u,t.marks[r]));if(a&&t.isText&&"pre"!=n.whitespace){let e,o,a=/\r?\n|\r/g;while(e=a.exec(t.text))o||(o=new r["j"](r["c"].from(n.schema.text(" ",n.allowedMarks(t.marks))),0,0)),s.push(new C(c+e.index,c+e.index+e[0].length,o))}}else s.push(new C(c,u,r["j"].empty));c=u}if(!o.validEnd){let t=o.fillBefore(r["c"].empty,!0);e.replace(c,c,new r["j"](t,0,0))}for(let r=s.length-1;r>=0;r--)e.step(s[r])}function j(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function D(e){let t=e.parent,n=t.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,o=0,a=0;;--r){let t=e.$from.node(r),i=e.$from.index(r)+o,s=e.$to.indexAfter(r)-a;if(r<e.depth&&t.canReplace(i,s,n))return r;if(0==r||t.type.spec.isolating||!j(t,i,s))break;i&&(o=1),s<t.childCount&&(a=1)}return null}function L(e,t,n){let{$from:o,$to:a,depth:i}=t,s=o.before(i+1),c=a.after(i+1),l=s,u=c,d=r["c"].empty,p=0;for(let m=i,v=!1;m>n;m--)v||o.index(m)>0?(v=!0,d=r["c"].from(o.node(m).copy(d)),p++):l--;let f=r["c"].empty,h=0;for(let m=i,v=!1;m>n;m--)v||a.after(m+1)<a.end(m)?(v=!0,f=r["c"].from(a.node(m).copy(f)),h++):u++;e.step(new w(l,u,s,c,new r["j"](d.append(f),p,h),d.size-p,!0))}function A(e,t,n=null,r=e){let o=R(e,t),a=o&&x(r,t);return a?o.map(N).concat({type:t,attrs:n}).concat(a.map(N)):null}function N(e){return{type:e,attrs:null}}function R(e,t){let{parent:n,startIndex:r,endIndex:o}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let i=a.length?a[0]:t;return n.canReplaceWith(r,o,i)?a:null}function x(e,t){let{parent:n,startIndex:r,endIndex:o}=e,a=n.child(r),i=t.contentMatch.findWrapping(a.type);if(!i)return null;let s=i.length?i[i.length-1]:t,c=s.contentMatch;for(let l=r;c&&l<o;l++)c=c.matchType(n.child(l).type);return c&&c.validEnd?i:null}function P(e,t,n){let o=r["c"].empty;for(let s=n.length-1;s>=0;s--){if(o.size){let e=n[s].type.contentMatch.matchFragment(o);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=r["c"].from(n[s].type.create(n[s].attrs,o))}let a=t.start,i=t.end;e.step(new w(a,i,a,i,new r["j"](o,0,0),n.length,!0))}function U(e,t,n,o,a){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let s="function"==typeof a?a(t):a;if(t.isTextblock&&!t.hasMarkup(o,s)&&F(e.doc,e.mapping.slice(i).map(n),o)){let a=null;if(o.schema.linebreakReplacement){let e="pre"==o.whitespace,t=!!o.contentMatch.matchType(o.schema.linebreakReplacement);e&&!t?a=!1:!e&&t&&(a=!0)}!1===a&&B(e,t,n,i),E(e,e.mapping.slice(i).map(n,1),o,void 0,null===a);let c=e.mapping.slice(i),l=c.map(n,1),u=c.map(n+t.nodeSize,1);return e.step(new w(l,u,l+1,u-1,new r["j"](r["c"].from(o.create(s,null,t.marks)),0,0),1,!0)),!0===a&&V(e,t,n,i),!1}})}function V(e,t,n,r){t.forEach((o,a)=>{if(o.isText){let i,s=/\r?\n|\r/g;while(i=s.exec(o.text)){let o=e.mapping.slice(r).map(n+1+a+i.index);e.replaceWith(o,o+1,t.type.schema.linebreakReplacement.create())}}})}function B(e,t,n,r){t.forEach((o,a)=>{if(o.type==o.type.schema.linebreakReplacement){let o=e.mapping.slice(r).map(n+1+a);e.replaceWith(o,o+1,t.type.schema.text("\n"))}})}function F(e,t,n){let r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function G(e,t,n,o,a){let i=e.doc.nodeAt(t);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(o,null,a||i.marks);if(i.isLeaf)return e.replaceWith(t,t+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new w(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new r["j"](r["c"].from(s),0,0),1,!0))}function H(e,t,n=1,r){let o=e.resolve(t),a=o.depth-n,i=r&&r[r.length-1]||o.parent;if(a<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!i.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let l=o.depth-1,u=n-2;l>a;l--,u--){let e=o.node(l),t=o.index(l);if(e.type.spec.isolating)return!1;let n=e.content.cutByIndex(t,e.childCount),a=r&&r[u+1];a&&(n=n.replaceChild(0,a.type.create(a.attrs)));let i=r&&r[u]||e;if(!e.canReplace(t+1,e.childCount)||!i.type.validContent(n))return!1}let s=o.indexAfter(a),c=r&&r[0];return o.node(a).canReplaceWith(s,s,c?c.type:o.node(a+1).type)}function Y(e,t,n=1,o){let a=e.doc.resolve(t),i=r["c"].empty,s=r["c"].empty;for(let c=a.depth,l=a.depth-n,u=n-1;c>l;c--,u--){i=r["c"].from(a.node(c).copy(i));let e=o&&o[u];s=r["c"].from(e?e.type.create(e.attrs,s):a.node(c).copy(s))}e.step(new C(t,t,new r["j"](i.append(s),n,n),!0))}function z(e,t){let n=e.resolve(t),r=n.index();return W(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function q(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let o=0;o<t.childCount;o++){let a=t.child(o),i=a.type==r?e.type.schema.nodes.text:a.type;if(n=n.matchType(i),!n)return!1;if(!e.type.allowsMarks(a.marks))return!1}return n.validEnd}function W(e,t){return!(!e||!t||e.isLeaf||!q(e,t))}function K(e,t,n=-1){let r=e.resolve(t);for(let o=r.depth;;o--){let e,a,i=r.index(o);if(o==r.depth?(e=r.nodeBefore,a=r.nodeAfter):n>0?(e=r.node(o+1),i++,a=r.node(o).maybeChild(i)):(e=r.node(o).maybeChild(i-1),a=r.node(o+1)),e&&!e.isTextblock&&W(e,a)&&r.node(o).canReplace(i,i+1))return t;if(0==o)break;t=n<0?r.before(o):r.after(o)}}function $(e,t,n){let o=null,{linebreakReplacement:a}=e.doc.type.schema,i=e.doc.resolve(t-n),s=i.node().type;if(a&&s.inlineContent){let e="pre"==s.whitespace,t=!!s.contentMatch.matchType(a);e&&!t?o=!1:!e&&t&&(o=!0)}let c=e.steps.length;if(!1===o){let r=e.doc.resolve(t+n);B(e,r.node(),r.before(),c)}s.inlineContent&&E(e,t+n-1,s,i.node().contentMatchAt(i.index()),null==o);let l=e.mapping.slice(c),u=l.map(t-n);if(e.step(new C(u,l.map(t+n,-1),r["j"].empty,!0)),!0===o){let t=e.doc.resolve(u);V(e,t.node(),t.before(),e.steps.length)}return e}function J(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let o=r.depth-1;o>=0;o--){let e=r.index(o);if(r.node(o).canReplaceWith(e,e,n))return r.before(o+1);if(e>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let e=r.indexAfter(o);if(r.node(o).canReplaceWith(e,e,n))return r.after(o+1);if(e<r.node(o).childCount)return null}return null}function X(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let o=n.content;for(let a=0;a<n.openStart;a++)o=o.firstChild.content;for(let a=1;a<=(0==n.openStart&&n.size?2:1);a++)for(let e=r.depth;e>=0;e--){let t=e==r.depth?0:r.pos<=(r.start(e+1)+r.end(e+1))/2?-1:1,n=r.index(e)+(t>0?1:0),i=r.node(e),s=!1;if(1==a)s=i.canReplace(n,n,o);else{let e=i.contentMatchAt(n).findWrapping(o.firstChild.type);s=e&&i.canReplaceWith(n,n,e[0])}if(s)return 0==t?r.pos:t<0?r.before(e+1):r.after(e+1)}return null}function Q(e,t,n=t,o=r["j"].empty){if(t==n&&!o.size)return null;let a=e.resolve(t),i=e.resolve(n);return Z(a,i,o)?new C(t,n,o):new ee(a,i,o).fit()}function Z(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}g.jsonID("replaceAround",w);class ee{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=r["c"].empty;for(let r=0;r<=e.depth;r++){let t=e.node(r);this.frontier.push({type:t.type,match:t.contentMatchAt(e.indexAfter(r))})}for(let o=e.depth;o>0;o--)this.placed=r["c"].from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){while(this.unplaced.size){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,o=this.close(e<0?this.$to:n.doc.resolve(e));if(!o)return null;let a=this.placed,i=n.depth,s=o.depth;while(i&&s&&1==a.childCount)a=a.firstChild.content,i--,s--;let c=new r["j"](a,i,s);return e>-1?new w(n.pos,e,this.$to.pos,this.$to.end(),c,t):c.size||n.pos!=this.$to.pos?new C(n.pos,o.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let o=t.firstChild;if(t.childCount>1&&(r=0),o.type.spec.isolating&&r<=n){e=n;break}t=o.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e,o=null;n?(o=re(this.unplaced.content,n-1).firstChild,e=o.content):e=this.unplaced.content;let a=e.firstChild;for(let i=this.depth;i>=0;i--){let e,{type:s,match:c}=this.frontier[i],l=null;if(1==t&&(a?c.matchType(a.type)||(l=c.fillBefore(r["c"].from(a),!1)):o&&s.compatibleContent(o.type)))return{sliceDepth:n,frontierDepth:i,parent:o,inject:l};if(2==t&&a&&(e=c.findWrapping(a.type)))return{sliceDepth:n,frontierDepth:i,parent:o,wrap:e};if(o&&c.matchType(o.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,o=re(e,t);return!(!o.childCount||o.firstChild.isLeaf)&&(this.unplaced=new r["j"](e,t+1,Math.max(n,o.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,o=re(e,t);if(o.childCount<=1&&t>0){let a=e.size-t<=t+o.size;this.unplaced=new r["j"](te(e,t-1,1),t-1,a?t-1:n)}else this.unplaced=new r["j"](te(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:o,wrap:a}){while(this.depth>t)this.closeFrontierNode();if(a)for(let r=0;r<a.length;r++)this.openFrontierNode(a[r]);let i=this.unplaced,s=n?n.content:i.content,c=i.openStart-e,l=0,u=[],{match:d,type:p}=this.frontier[t];if(o){for(let e=0;e<o.childCount;e++)u.push(o.child(e));d=d.matchFragment(o)}let f=s.size+e-(i.content.size-i.openEnd);while(l<s.childCount){let e=s.child(l),t=d.matchType(e.type);if(!t)break;l++,(l>1||0==c||e.content.size)&&(d=t,u.push(oe(e.mark(p.allowedMarks(e.marks)),1==l?c:0,l==s.childCount?f:-1)))}let h=l==s.childCount;h||(f=-1),this.placed=ne(this.placed,t,r["c"].from(u)),this.frontier[t].match=d,h&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let r=0,m=s;r<f;r++){let e=m.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),m=e.content}this.unplaced=h?0==e?r["j"].empty:new r["j"](te(i.content,e-1,1),e-1,f<0?i.openEnd:e-1):new r["j"](te(i.content,e,l),i.openStart,i.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,t=this.frontier[this.depth];if(!t.type.isTextblock||!ae(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);while(n>1&&r==this.$to.end(--n))++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=ae(e,t,r,n,o);if(a){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],o=ae(e,n,r,t,!0);if(!o||o.childCount)continue e}return{depth:t,fit:a,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;while(this.depth>t.depth)this.closeFrontierNode();t.fit.childCount&&(this.placed=ne(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=ne(this.placed,this.depth,r["c"].from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop(),t=e.match.fillBefore(r["c"].empty,!0);t.childCount&&(this.placed=ne(this.placed,this.frontier.length,t))}}function te(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(te(e.firstChild.content,t-1,n)))}function ne(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(ne(e.lastChild.content,t-1,n)))}function re(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function oe(e,t,n){if(t<=0)return e;let o=e.content;return t>1&&(o=o.replaceChild(0,oe(o.firstChild,t-1,1==o.childCount?n-1:0))),t>0&&(o=e.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(e.type.contentMatch.matchFragment(o).fillBefore(r["c"].empty,!0)))),e.copy(o)}function ae(e,t,n,r,o){let a=e.node(t),i=o?e.indexAfter(t):e.index(t);if(i==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,i);return s&&!ie(n,a.content,i)?s:null}function ie(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function se(e){return e.spec.defining||e.spec.definingForContent}function ce(e,t,n,o){if(!o.size)return e.deleteRange(t,n);let a=e.doc.resolve(t),i=e.doc.resolve(n);if(Z(a,i,o))return e.step(new C(t,n,o));let s=pe(a,i);0==s[s.length-1]&&s.pop();let c=-(a.depth+1);s.unshift(c);for(let r=a.depth,f=a.pos-1;r>0;r--,f--){let e=a.node(r).type.spec;if(e.defining||e.definingAsContext||e.isolating)break;s.indexOf(r)>-1?c=r:a.before(r)==f&&s.splice(1,0,-r)}let l=s.indexOf(c),u=[],d=o.openStart;for(let r=o.content,f=0;;f++){let e=r.firstChild;if(u.push(e),f==o.openStart)break;r=e.content}for(let r=d-1;r>=0;r--){let e=u[r],t=se(e.type);if(t&&!e.sameMarkup(a.node(Math.abs(c)-1)))d=r;else if(t||!e.type.isTextblock)break}for(let f=o.openStart;f>=0;f--){let t=(f+d+1)%(o.openStart+1),c=u[t];if(c)for(let u=0;u<s.length;u++){let d=s[(u+l)%s.length],p=!0;d<0&&(p=!1,d=-d);let f=a.node(d-1),h=a.index(d-1);if(f.canReplaceWith(h,h,c.type,c.marks))return e.replace(a.before(d),p?i.after(d):n,new r["j"](le(o.content,0,o.openStart,t),t,o.openEnd))}}let p=e.steps.length;for(let r=s.length-1;r>=0;r--){if(e.replace(t,n,o),e.steps.length>p)break;let c=s[r];c<0||(t=a.before(c),n=i.after(c))}}function le(e,t,n,o,a){if(t<n){let r=e.firstChild;e=e.replaceChild(0,r.copy(le(r.content,t+1,n,o,r)))}if(t>o){let t=a.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(r["c"].empty,!0))}return e}function ue(e,t,n,o){if(!o.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let r=J(e.doc,t,o.type);null!=r&&(t=n=r)}e.replaceRange(t,n,new r["j"](r["c"].from(o),0,0))}function de(e,t,n){let r=e.doc.resolve(t),o=e.doc.resolve(n);if(r.parent.isTextblock&&o.parent.isTextblock&&r.start()!=o.start()&&0==r.parentOffset&&0==o.parentOffset){let a=r.sharedDepth(n),i=!1;for(let e=r.depth;e>a;e--)r.node(e).type.spec.isolating&&(i=!0);for(let e=o.depth;e>a;e--)o.node(e).type.spec.isolating&&(i=!0);if(!i){for(let e=r.depth;e>0&&t==r.start(e);e--)t=r.before(e);for(let e=o.depth;e>0&&n==o.start(e);e--)n=o.before(e);r=e.doc.resolve(t),o=e.doc.resolve(n)}}let a=pe(r,o);for(let i=0;i<a.length;i++){let t=a[i],n=i==a.length-1;if(n&&0==t||r.node(t).type.contentMatch.validEnd)return e.delete(r.start(t),o.end(t));if(t>0&&(n||r.node(t-1).canReplace(r.index(t-1),o.indexAfter(t-1))))return e.delete(r.before(t),o.after(t))}for(let i=1;i<=r.depth&&i<=o.depth;i++)if(t-r.start(i)==r.depth-i&&n>r.end(i)&&o.end(i)-n!=o.depth-i&&r.start(i-1)==o.start(i-1)&&r.node(i-1).canReplace(r.index(i-1),o.index(i-1)))return e.delete(r.before(i),n);e.delete(t,n)}function pe(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let o=r;o>=0;o--){let r=e.start(o);if(r<e.pos-(e.depth-o)||t.end(o)>t.pos+(t.depth-o)||e.node(o).type.spec.isolating||t.node(o).type.spec.isolating)break;(r==t.start(o)||o==e.depth&&o==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&o&&t.start(o-1)==r-1)&&n.push(o)}return n}class fe extends g{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return _.fail("No node at attribute step's position");let n=Object.create(null);for(let r in t.attrs)n[r]=t.attrs[r];n[this.attr]=this.value;let o=t.type.create(n,null,t.marks);return _.fromReplace(e,this.pos,this.pos+1,new r["j"](r["c"].from(o),0,t.isLeaf?0:1))}getMap(){return h.empty}invert(e){return new fe(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new fe(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new fe(t.pos,t.attr,t.value)}}g.jsonID("attr",fe);class he extends g{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return _.ok(n)}getMap(){return h.empty}invert(e){return new he(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new he(t.attr,t.value)}}g.jsonID("docAttr",he);let me=class extends Error{};me=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},me.prototype=Object.create(Error.prototype),me.prototype.constructor=me,me.prototype.name="TransformError";class ve{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new m}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new me(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((n,r,o,a)=>{e=Math.min(e,o),t=Math.max(t,a)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=r["j"].empty){let o=Q(this.doc,e,t,n);return o&&this.step(o),this}replaceWith(e,t,n){return this.replace(e,t,new r["j"](r["c"].from(n),0,0))}delete(e,t){return this.replace(e,t,r["j"].empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return ce(this,e,t,n),this}replaceRangeWith(e,t,n){return ue(this,e,t,n),this}deleteRange(e,t){return de(this,e,t),this}lift(e,t){return L(this,e,t),this}join(e,t=1){return $(this,e,t),this}wrap(e,t){return P(this,e,t),this}setBlockType(e,t=e,n,r=null){return U(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return G(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new fe(e,t,n)),this}setDocAttribute(e,t){return this.step(new he(e,t)),this}addNodeMark(e,t){return this.step(new M(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(t instanceof r["d"])t.isInSet(n.marks)&&this.step(new k(e,t));else{let r,o=n.marks,a=[];while(r=t.isInSet(o))a.push(new k(e,r)),o=r.removeFromSet(o);for(let e=a.length-1;e>=0;e--)this.step(a[e])}return this}split(e,t=1,n){return Y(this,e,t,n),this}addMark(e,t,n){return T(this,e,t,n),this}removeMark(e,t,n){return I(this,e,t,n),this}clearIncompatible(e,t,n){return E(this,e,t,n),this}}},b97c:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10===1&&t%100!==11?e[2]:e[3]:t%10===1&&t%100!==11?e[0]:e[1]}function r(e,r,o){return e+" "+n(t[o],e,r)}function o(e,r,o){return n(t[o],e,r)}function a(e,t){return t?"dažas sekundes":"dažām sekundēm"}var i=e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:a,ss:r,m:o,mm:r,h:o,hh:r,d:o,dd:r,M:o,MM:r,y:o,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},b980:function(e,t,n){"use strict";var r=n("d039"),o=n("5c6c");e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},baa7:function(e,t,n){"use strict";var r=n("3eba"),o=n("96ed"),a=n("fb2d"),i=n("a0e5"),s=n("e899"),c=n("0363"),l=n("b557"),u=n("7042"),d=n("f772"),p=o&&o.prototype,f=c("species"),h=!1,m=a(r.PromiseRejectionEvent),v=i("Promise",(function(){var e=s(o),t=e!==String(o);if(!t&&66===d)return!0;if(u&&(!p["catch"]||!p["finally"]))return!0;if(!d||d<51||!/native code/.test(e)){var n=new o((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))},a=n.constructor={};if(a[f]=r,h=n.then((function(){}))instanceof r,!h)return!0}return!t&&("BROWSER"===l||"DENO"===l)&&!m}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:m,SUBCLASSING:h}},bae4:function(e,t,n){"use strict";var r=n("ce18"),o=n("06fa"),a=n("fb2d"),i=n("8f95"),s=n("9883"),c=n("e899"),l=function(){},u=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=r(d.exec),f=!d.test(l),h=function(e){if(!a(e))return!1;try{return u(l,[],e),!0}catch(t){return!1}},m=function(e){if(!a(e))return!1;switch(i(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!p(d,c(e))}catch(t){return!0}};m.sham=!0,e.exports=!u||o((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?m:h},bb71:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}var n=e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},bb83:function(e,t,n){"use strict";var r,o,a,i=n("06fa"),s=n("fb2d"),c=n("dfdb"),l=n("4896"),u=n("5779"),d=n("fdbe"),p=n("0363"),f=n("7042"),h=p("iterator"),m=!1;[].keys&&(a=[].keys(),"next"in a?(o=u(u(a)),o!==Object.prototype&&(r=o)):m=!0);var v=!c(r)||i((function(){var e={};return r[h].call(e)!==e}));v?r={}:f&&(r=l(r)),s(r[h])||d(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},bbe3:function(e,t,n){"use strict";var r=n("a5eb"),o=n("13cf"),a=n("6386").indexOf,i=n("9f61"),s=o([].indexOf),c=!!s&&1/s([1],1,-0)<0,l=c||!i("indexOf");r({target:"Array",proto:!0,forced:l},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?s(this,e,t)||0:a(this,e,t)}})},bc0d:function(e,t,n){"use strict";var r=n("56c4");e.exports=r},bc0f:function(e,t,n){"use strict";var r=n("437b"),o=n("fbaa"),a=String.prototype;e.exports=function(e){var t=e.trim;return"string"==typeof e||e===a||r(a,e)&&t===a.trim?o:t}},bc31:function(e,t,n){"use strict";var r=n("7106"),o=n("9883"),a=n("0363"),i=n("fdbe");e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=a("toPrimitive");t&&!t[s]&&i(t,s,(function(e){return r(n,this)}),{arity:1})}},bc3a:function(e,t,n){e.exports=n("cee4")},bc4a:function(e,t,n){"use strict";var r=n("fdbe");e.exports=function(e,t,n){for(var o in t)n&&n.unsafe&&e[o]?e[o]=t[o]:r(e,o,t[o],n);return e}},bc59:function(e,t,n){"use strict";n("3e47"),n("484e");var r=n("764b");e.exports=r.Array.from},bcb4:function(e,t,n){"use strict";n("9103"),n("2a0a"),n("5f72"),n("7325"),n("e1f1"),n("6f89"),n("3e47");var r=n("764b");e.exports=r.Map},bcbf:function(e,t,n){"use strict";var r=n("f5df");e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},bcfb:function(e,t,n){"use strict";n("96be");var r=n("c18e");e.exports=r("Array","reverse")},bd01:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},bd7d:function(e,t,n){"use strict";var r=n("2d80");r(t,"__esModule",{value:!0}),t.toMsFilter=void 0;const o=n("d756"),a=n("740b");function i(e,t){const n=new a.TinyColor(e),r="#"+(0,o.rgbaToArgbHex)(n.r,n.g,n.b,n.a);let i=r;const s=n.gradientType?"GradientType = 1, ":"";if(t){const e=new a.TinyColor(t);i="#"+(0,o.rgbaToArgbHex)(e.r,e.g,e.b,e.a)}return`progid:DXImageTransform.Microsoft.gradient(${s}startColorstr=${r},endColorstr=${i})`}t.toMsFilter=i},bdf4:function(e,t,n){"use strict";var r=n("a5eb"),o=n("dee0").find,a=n("c44e"),i="find",s=!0;i in[]&&Array(1)[i]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(i)},be44:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("0e69"),o=n("7a23");const a=(e,t,n,a)=>{const i={offsetX:0,offsetY:0},s=Object(o["ref"])(!1),c=(t,n)=>{if(e.value){const{offsetX:o,offsetY:s}=i,c=e.value.getBoundingClientRect(),l=c.left,u=c.top,d=c.width,p=c.height,f=document.documentElement.clientWidth,h=document.documentElement.clientHeight,m=-l+o,v=-u+s,g=f-l-d+o,_=h-u-(p<h?p:0)+s;null!==a&&void 0!==a&&a.value||(t=Math.min(Math.max(t,m),g),n=Math.min(Math.max(n,v),_)),i.offsetX=t,i.offsetY=n,e.value.style.transform=`translate(${Object(r["b"])(t)}, ${Object(r["b"])(n)})`}},l=e=>{const t=e.clientX,n=e.clientY,{offsetX:r,offsetY:o}=i,a=e=>{s.value||(s.value=!0),c(r+e.clientX-t,o+e.clientY-n)},l=()=>{s.value=!1,document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",l)};document.addEventListener("mousemove",a),document.addEventListener("mouseup",l)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",l),window.addEventListener("resize",f))},d=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",l),window.removeEventListener("resize",f))},p=()=>{i.offsetX=0,i.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:e,offsetY:t}=i;c(e,t)};return Object(o["onMounted"])(()=>{Object(o["watchEffect"])(()=>{n.value?u():d()})}),Object(o["onBeforeUnmount"])(()=>{d()}),{isDragging:s,resetPosition:p,updatePosition:f}}},be70:function(e,t,n){"use strict";n("51b8")},beea:function(e,t,n){"use strict";var r=n("0363");t.f=r},bfce:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c}));var r=n("fa81"),o=n.n(r),a=n("8b9c"),i=n.n(a),s=n("d095");const c=e=>o()(e),l=e=>i()(e),u=(e,t,n)=>({get value(){return Object(s["get"])(e,t,n)},set value(n){Object(s["set"])(e,t,n)}})},bffc:function(e,t,n){"use strict";var r=n("f94a");r("metadata")},c04e:function(e,t,n){"use strict";var r=n("c65b"),o=n("861d"),a=n("d9b5"),i=n("dc4a"),s=n("485a"),c=n("b622"),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!o(e)||a(e))return e;var n,c=i(e,u);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!o(n)||a(n))return n;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},c109:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}});return t}))},c18e:function(e,t,n){"use strict";var r=n("3eba"),o=n("764b");e.exports=function(e,t){var n=o[e+"Prototype"],a=n&&n[t];if(a)return a;var i=r[e],s=i&&i.prototype;return s&&s[t]}},c192:function(e,t,n){e.exports=n("50dc")},c199:function(e,t,n){"use strict";n("9103"),n("b108");var r=n("764b");e.exports=r.Object.fromEntries},c1b2:function(e,t,n){"use strict";var r=n("06fa");e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},c1dc:function(e,t,n){"use strict";(function(e){
/*!
* shared v9.14.4
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
const n="undefined"!==typeof window;let r,o;const a=/\{([0-9a-zA-Z]+)\}/g;function i(e,...t){return 1===t.length&&T(t[0])&&(t=t[0]),t&&t.hasOwnProperty||(t={}),e.replace(a,(e,n)=>t.hasOwnProperty(n)?t[n]:"")}const s=(e,t=!1)=>t?Symbol.for(e):Symbol(e),c=(e,t,n)=>l({l:e,k:t,s:n}),l=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),u=e=>"number"===typeof e&&isFinite(e),d=e=>"[object Date]"===j(e),p=e=>"[object RegExp]"===j(e),f=e=>D(e)&&0===Object.keys(e).length,h=Object.assign,m=Object.create,v=(e=null)=>m(e);let g;const _=()=>g||(g="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:v());function b(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const y=Object.prototype.hasOwnProperty;function O(e,t){return y.call(e,t)}const M=Array.isArray,k=e=>"function"===typeof e,C=e=>"string"===typeof e,w=e=>"boolean"===typeof e,S=e=>"symbol"===typeof e,T=e=>null!==e&&"object"===typeof e,I=e=>T(e)&&k(e.then)&&k(e.catch),E=Object.prototype.toString,j=e=>E.call(e),D=e=>{if(!T(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object},L=e=>null==e?"":M(e)||D(e)&&e.toString===E?JSON.stringify(e,null,2):String(e);function A(e,t=""){return e.reduce((e,n,r)=>0===r?e+n:e+t+n,"")}const N=2;function R(e,t=0,n=e.length){const r=e.split(/\r?\n/);let o=0;const a=[];for(let i=0;i<r.length;i++)if(o+=r[i].length+1,o>=t){for(let e=i-N;e<=i+N||n>o;e++){if(e<0||e>=r.length)continue;const s=e+1;a.push(`${s}${" ".repeat(3-String(s).length)}| ${r[e]}`);const c=r[e].length;if(e===i){const e=t-(o-c)+1,r=Math.max(1,n>o?c-e:n-t);a.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(e>i){if(n>o){const e=Math.max(Math.min(n-o,c),1);a.push(" | "+"^".repeat(e))}o+=c+1}}break}return a.join("\n")}function x(e){let t=e;return()=>++t}function P(e,t){"undefined"!==typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const U={};function V(e){U[e]||(U[e]=!0,P(e))}function B(){const e=new Map,t={events:e,on(t,n){const r=e.get(t),o=r&&r.push(n);o||e.set(t,[n])},off(t,n){const r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map(e=>e(n)),(e.get("*")||[]).slice().map(e=>e(t,n))}};return t}const F=e=>!T(e)||M(e);function G(e,t){if(F(e)||F(t))throw new Error("Invalid value");const n=[{src:e,des:t}];while(n.length){const{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{"__proto__"!==r&&(T(e[r])&&!T(t[r])&&(t[r]=Array.isArray(e[r])?[]:v()),F(t[r])||F(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}t.assign=h,t.create=v,t.createEmitter=B,t.deepCopy=G,t.escapeHtml=b,t.format=i,t.friendlyJSONstringify=l,t.generateCodeFrame=R,t.generateFormatCacheKey=c,t.getGlobalThis=_,t.hasOwn=O,t.inBrowser=n,t.incrementer=x,t.isArray=M,t.isBoolean=w,t.isDate=d,t.isEmptyObject=f,t.isFunction=k,t.isNumber=u,t.isObject=T,t.isPlainObject=D,t.isPromise=I,t.isRegExp=p,t.isString=C,t.isSymbol=S,t.join=A,t.makeSymbol=s,t.mark=r,t.measure=o,t.objectToString=E,t.toDisplayString=L,t.toTypeString=j,t.warn=P,t.warnOnce=V}).call(this,n("c8ba"))},c1df:function(e,t,n){(function(e){var t;//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function(t,n){e.exports=n()})(0,(function(){"use strict";var r,o;function a(){return r.apply(null,arguments)}function i(e){r=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function c(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function d(e){return void 0===e}function p(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function m(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function v(e,t,n,r){return Jn(e,t,n,r,!0).utc()}function g(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function _(e){return null==e._pf&&(e._pf=g()),e._pf}function b(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());return r&&(t=_(e),n=o.call(t.parsedDateParts,(function(e){return null!=e})),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?r:(e._isValid=r,e._isValid)}function y(e){var t=v(NaN);return null!=e?m(_(t),e):_(t).userInvalidated=!0,t}o=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var O=a.momentProperties=[],M=!1;function k(e,t){var n,r,o,a=O.length;if(d(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),d(t._i)||(e._i=t._i),d(t._f)||(e._f=t._f),d(t._l)||(e._l=t._l),d(t._strict)||(e._strict=t._strict),d(t._tzm)||(e._tzm=t._tzm),d(t._isUTC)||(e._isUTC=t._isUTC),d(t._offset)||(e._offset=t._offset),d(t._pf)||(e._pf=_(t)),d(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)r=O[n],o=t[r],d(o)||(e[r]=o);return e}function C(e){k(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===M&&(M=!0,a.updateOffset(this),M=!1)}function w(e){return e instanceof C||null!=e&&null!=e._isAMomentObject}function S(e){!1===a.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return m((function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){var r,o,i,s=[],c=arguments.length;for(o=0;o<c;o++){if(r="","object"===typeof arguments[o]){for(i in r+="\n["+o+"] ",arguments[0])l(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[o];s.push(r)}S(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var I,E={};function j(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),E[e]||(S(t),E[e]=!0)}function D(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function L(e){var t,n;for(n in e)l(e,n)&&(t=e[n],D(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(e,t){var n,r=m({},e);for(n in t)l(t,n)&&(c(e[n])&&c(t[n])?(r[n]={},m(r[n],e[n]),m(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&c(e[n])&&(r[n]=m({},r[n]));return r}function N(e){null!=e&&this.set(e)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,I=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function x(e,t,n){var r=this._calendar[e]||this._calendar["sameElse"];return D(r)?r.call(t,n):r}function P(e,t,n){var r=""+Math.abs(e),o=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,V=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},F={};function G(e,t,n,r){var o=r;"string"===typeof r&&(o=function(){return this[r]()}),e&&(F[e]=o),t&&(F[t[0]]=function(){return P(o.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Y(e){var t,n,r=e.match(U);for(t=0,n=r.length;t<n;t++)F[r[t]]?r[t]=F[r[t]]:r[t]=H(r[t]);return function(t){var o,a="";for(o=0;o<n;o++)a+=D(r[o])?r[o].call(t,e):r[o];return a}}function z(e,t){return e.isValid()?(t=q(t,e.localeData()),B[t]=B[t]||Y(t),B[t](e)):e.localeData().invalidDate()}function q(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}V.lastIndex=0;while(n>=0&&V.test(e))e=e.replace(V,r),V.lastIndex=0,n-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function K(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(U).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var $="Invalid date";function J(){return this._invalidDate}var X="%d",Q=/\d{1,2}/;function Z(e){return this._ordinal.replace("%d",e)}var ee={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function te(e,t,n,r){var o=this._relativeTime[n];return D(o)?o(e,t,n,r):o.replace(/%d/i,e)}function ne(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)}var re={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function oe(e){return"string"===typeof e?re[e]||re[e.toLowerCase()]:void 0}function ae(e){var t,n,r={};for(n in e)l(e,n)&&(t=oe(n),t&&(r[t]=e[n]));return r}var ie={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function se(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}var ce,le=/\d/,ue=/\d\d/,de=/\d{3}/,pe=/\d{4}/,fe=/[+-]?\d{6}/,he=/\d\d?/,me=/\d\d\d\d?/,ve=/\d\d\d\d\d\d?/,ge=/\d{1,3}/,_e=/\d{1,4}/,be=/[+-]?\d{1,6}/,ye=/\d+/,Oe=/[+-]?\d+/,Me=/Z|[+-]\d\d:?\d\d/gi,ke=/Z|[+-]\d\d(?::?\d\d)?/gi,Ce=/[+-]?\d+(\.\d{1,3})?/,we=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Se=/^[1-9]\d?/,Te=/^([1-9]\d|\d)/;function Ie(e,t,n){ce[e]=D(t)?t:function(e,r){return e&&n?n:t}}function Ee(e,t){return l(ce,e)?ce[e](t._strict,t._locale):new RegExp(je(e))}function je(e){return De(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o})))}function De(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ae(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Le(t)),n}ce={};var Ne={};function Re(e,t){var n,r,o=t;for("string"===typeof e&&(e=[e]),p(t)&&(o=function(e,n){n[t]=Ae(e)}),r=e.length,n=0;n<r;n++)Ne[e[n]]=o}function xe(e,t){Re(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function Pe(e,t,n){null!=t&&l(Ne,e)&&Ne[e](t,n._a,n,e)}function Ue(e){return e%4===0&&e%100!==0||e%400===0}var Ve=0,Be=1,Fe=2,Ge=3,He=4,Ye=5,ze=6,qe=7,We=8;function Ke(e){return Ue(e)?366:365}G("Y",0,0,(function(){var e=this.year();return e<=9999?P(e,4):"+"+e})),G(0,["YY",2],0,(function(){return this.year()%100})),G(0,["YYYY",4],0,"year"),G(0,["YYYYY",5],0,"year"),G(0,["YYYYYY",6,!0],0,"year"),Ie("Y",Oe),Ie("YY",he,ue),Ie("YYYY",_e,pe),Ie("YYYYY",be,fe),Ie("YYYYYY",be,fe),Re(["YYYYY","YYYYYY"],Ve),Re("YYYY",(function(e,t){t[Ve]=2===e.length?a.parseTwoDigitYear(e):Ae(e)})),Re("YY",(function(e,t){t[Ve]=a.parseTwoDigitYear(e)})),Re("Y",(function(e,t){t[Ve]=parseInt(e,10)})),a.parseTwoDigitYear=function(e){return Ae(e)+(Ae(e)>68?1900:2e3)};var $e,Je=Qe("FullYear",!0);function Xe(){return Ue(this.year())}function Qe(e,t){return function(n){return null!=n?(et(this,e,n),a.updateOffset(this,t),this):Ze(this,e)}}function Ze(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function et(e,t,n){var r,o,a,i,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,i=e.month(),s=e.date(),s=29!==s||1!==i||Ue(a)?s:28,o?r.setUTCFullYear(a,i,s):r.setFullYear(a,i,s)}}function tt(e){return e=oe(e),D(this[e])?this[e]():this}function nt(e,t){if("object"===typeof e){e=ae(e);var n,r=se(e),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(e=oe(e),D(this[e]))return this[e](t);return this}function rt(e,t){return(e%t+t)%t}function ot(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=rt(t,12);return e+=(t-n)/12,1===n?Ue(e)?29:28:31-n%7%2}$e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},G("M",["MM",2],"Mo",(function(){return this.month()+1})),G("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),G("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),Ie("M",he,Se),Ie("MM",he,ue),Ie("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ie("MMMM",(function(e,t){return t.monthsRegex(e)})),Re(["M","MM"],(function(e,t){t[Be]=Ae(e)-1})),Re(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[Be]=o:_(n).invalidMonth=e}));var at="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),it="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),st=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ct=we,lt=we;function ut(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||st).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months["standalone"]}function dt(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[st.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"]}function pt(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=v([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?(o=$e.call(this._shortMonthsParse,i),-1!==o?o:null):(o=$e.call(this._longMonthsParse,i),-1!==o?o:null):"MMM"===t?(o=$e.call(this._shortMonthsParse,i),-1!==o?o:(o=$e.call(this._longMonthsParse,i),-1!==o?o:null)):(o=$e.call(this._longMonthsParse,i),-1!==o?o:(o=$e.call(this._shortMonthsParse,i),-1!==o?o:null))}function ft(e,t,n){var r,o,a;if(this._monthsParseExact)return pt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=v([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ht(e,t){if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=Ae(t);else if(t=e.localeData().monthsParse(t),!p(t))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,ot(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function mt(e){return null!=e?(ht(this,e),a.updateOffset(this,!0),this):Ze(this,"Month")}function vt(){return ot(this.year(),this.month())}function gt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||bt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ct),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function _t(e){return this._monthsParseExact?(l(this,"_monthsRegex")||bt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=lt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function bt(){function e(e,t){return t.length-e.length}var t,n,r,o,a=[],i=[],s=[];for(t=0;t<12;t++)n=v([2e3,t]),r=De(this.monthsShort(n,"")),o=De(this.months(n,"")),a.push(r),i.push(o),s.push(o),s.push(r);a.sort(e),i.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function yt(e,t,n,r,o,a,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,a,i),s}function Ot(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Mt(e,t,n){var r=7+t-n,o=(7+Ot(e,0,r).getUTCDay()-t)%7;return-o+r-1}function kt(e,t,n,r,o){var a,i,s=(7+n-r)%7,c=Mt(e,r,o),l=1+7*(t-1)+s+c;return l<=0?(a=e-1,i=Ke(a)+l):l>Ke(e)?(a=e+1,i=l-Ke(e)):(a=e,i=l),{year:a,dayOfYear:i}}function Ct(e,t,n){var r,o,a=Mt(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?(o=e.year()-1,r=i+wt(o,t,n)):i>wt(e.year(),t,n)?(r=i-wt(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function wt(e,t,n){var r=Mt(e,t,n),o=Mt(e+1,t,n);return(Ke(e)-r+o)/7}function St(e){return Ct(e,this._week.dow,this._week.doy).week}G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),Ie("w",he,Se),Ie("ww",he,ue),Ie("W",he,Se),Ie("WW",he,ue),xe(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=Ae(e)}));var Tt={dow:0,doy:6};function It(){return this._week.dow}function Et(){return this._week.doy}function jt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Dt(e){var t=Ct(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Lt(e,t){return"string"!==typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"===typeof e?e:null):parseInt(e,10)}function At(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Nt(e,t){return e.slice(t,7).concat(e.slice(0,t))}G("d",0,"do","day"),G("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),G("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),G("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),Ie("d",he),Ie("e",he),Ie("E",he),Ie("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ie("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ie("dddd",(function(e,t){return t.weekdaysRegex(e)})),xe(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:_(n).invalidWeekday=e})),xe(["d","e","E"],(function(e,t,n,r){t[r]=Ae(e)}));var Rt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ut=we,Vt=we,Bt=we;function Ft(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Nt(n,this._week.dow):e?n[e.day()]:n}function Gt(e){return!0===e?Nt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return!0===e?Nt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Yt(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=v([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?(o=$e.call(this._weekdaysParse,i),-1!==o?o:null):"ddd"===t?(o=$e.call(this._shortWeekdaysParse,i),-1!==o?o:null):(o=$e.call(this._minWeekdaysParse,i),-1!==o?o:null):"dddd"===t?(o=$e.call(this._weekdaysParse,i),-1!==o?o:(o=$e.call(this._shortWeekdaysParse,i),-1!==o?o:(o=$e.call(this._minWeekdaysParse,i),-1!==o?o:null))):"ddd"===t?(o=$e.call(this._shortWeekdaysParse,i),-1!==o?o:(o=$e.call(this._weekdaysParse,i),-1!==o?o:(o=$e.call(this._minWeekdaysParse,i),-1!==o?o:null))):(o=$e.call(this._minWeekdaysParse,i),-1!==o?o:(o=$e.call(this._weekdaysParse,i),-1!==o?o:(o=$e.call(this._shortWeekdaysParse,i),-1!==o?o:null)))}function zt(e,t,n){var r,o,a;if(this._weekdaysParseExact)return Yt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=v([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function qt(e){if(!this.isValid())return null!=e?this:NaN;var t=Ze(this,"Day");return null!=e?(e=Lt(e,this.localeData()),this.add(e-t,"d")):t}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Kt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=At(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function $t(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Jt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Vt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Bt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qt(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],s=[],c=[],l=[];for(t=0;t<7;t++)n=v([2e3,1]).day(t),r=De(this.weekdaysMin(n,"")),o=De(this.weekdaysShort(n,"")),a=De(this.weekdays(n,"")),i.push(r),s.push(o),c.push(a),l.push(r),l.push(o),l.push(a);i.sort(e),s.sort(e),c.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Zt(){return this.hours()%12||12}function en(){return this.hours()||24}function tn(e,t){G(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function nn(e,t){return t._meridiemParse}function rn(e){return"p"===(e+"").toLowerCase().charAt(0)}G("H",["HH",2],0,"hour"),G("h",["hh",2],0,Zt),G("k",["kk",2],0,en),G("hmm",0,0,(function(){return""+Zt.apply(this)+P(this.minutes(),2)})),G("hmmss",0,0,(function(){return""+Zt.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),G("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),G("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),tn("a",!0),tn("A",!1),Ie("a",nn),Ie("A",nn),Ie("H",he,Te),Ie("h",he,Se),Ie("k",he,Se),Ie("HH",he,ue),Ie("hh",he,ue),Ie("kk",he,ue),Ie("hmm",me),Ie("hmmss",ve),Ie("Hmm",me),Ie("Hmmss",ve),Re(["H","HH"],Ge),Re(["k","kk"],(function(e,t,n){var r=Ae(e);t[Ge]=24===r?0:r})),Re(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Re(["h","hh"],(function(e,t,n){t[Ge]=Ae(e),_(n).bigHour=!0})),Re("hmm",(function(e,t,n){var r=e.length-2;t[Ge]=Ae(e.substr(0,r)),t[He]=Ae(e.substr(r)),_(n).bigHour=!0})),Re("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Ge]=Ae(e.substr(0,r)),t[He]=Ae(e.substr(r,2)),t[Ye]=Ae(e.substr(o)),_(n).bigHour=!0})),Re("Hmm",(function(e,t,n){var r=e.length-2;t[Ge]=Ae(e.substr(0,r)),t[He]=Ae(e.substr(r))})),Re("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Ge]=Ae(e.substr(0,r)),t[He]=Ae(e.substr(r,2)),t[Ye]=Ae(e.substr(o))}));var on=/[ap]\.?m?\.?/i,an=Qe("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var cn,ln={calendar:R,longDateFormat:W,invalidDate:$,ordinal:X,dayOfMonthOrdinalParse:Q,relativeTime:ee,months:at,monthsShort:it,week:Tt,weekdays:Rt,weekdaysMin:Pt,weekdaysShort:xt,meridiemParse:on},un={},dn={};function pn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function fn(e){return e?e.toLowerCase().replace("_","-"):e}function hn(e){var t,n,r,o,a=0;while(a<e.length){o=fn(e[a]).split("-"),t=o.length,n=fn(e[a+1]),n=n?n.split("-"):null;while(t>0){if(r=vn(o.slice(0,t).join("-")),r)return r;if(n&&n.length>=t&&pn(o,n)>=t-1)break;t--}a++}return cn}function mn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function vn(r){var o=null;if(void 0===un[r]&&"undefined"!==typeof e&&e&&e.exports&&mn(r))try{o=cn._abbr,t,n("4678")("./"+r),gn(o)}catch(a){un[r]=null}return un[r]}function gn(e,t){var n;return e&&(n=d(t)?yn(e):_n(e,t),n?cn=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),cn._abbr}function _n(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=un[e])j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])r=un[t.parentLocale]._config;else{if(n=vn(t.parentLocale),null==n)return dn[t.parentLocale]||(dn[t.parentLocale]=[]),dn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return un[e]=new N(A(r,t)),dn[e]&&dn[e].forEach((function(e){_n(e.name,e.config)})),gn(e),un[e]}return delete un[e],null}function bn(e,t){if(null!=t){var n,r,o=ln;null!=un[e]&&null!=un[e].parentLocale?un[e].set(A(un[e]._config,t)):(r=vn(e),null!=r&&(o=r._config),t=A(o,t),null==r&&(t.abbr=e),n=new N(t),n.parentLocale=un[e],un[e]=n),gn(e)}else null!=un[e]&&(null!=un[e].parentLocale?(un[e]=un[e].parentLocale,e===gn()&&gn(e)):null!=un[e]&&delete un[e]);return un[e]}function yn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return cn;if(!s(e)){if(t=vn(e),t)return t;e=[e]}return hn(e)}function On(){return I(un)}function Mn(e){var t,n=e._a;return n&&-2===_(e).overflow&&(t=n[Be]<0||n[Be]>11?Be:n[Fe]<1||n[Fe]>ot(n[Ve],n[Be])?Fe:n[Ge]<0||n[Ge]>24||24===n[Ge]&&(0!==n[He]||0!==n[Ye]||0!==n[ze])?Ge:n[He]<0||n[He]>59?He:n[Ye]<0||n[Ye]>59?Ye:n[ze]<0||n[ze]>999?ze:-1,_(e)._overflowDayOfYear&&(t<Ve||t>Fe)&&(t=Fe),_(e)._overflowWeeks&&-1===t&&(t=qe),_(e)._overflowWeekday&&-1===t&&(t=We),_(e).overflow=t),e}var kn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Tn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],In=/^\/?Date\((-?\d+)/i,En=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,jn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dn(e){var t,n,r,o,a,i,s=e._i,c=kn.exec(s)||Cn.exec(s),l=Sn.length,u=Tn.length;if(c){for(_(e).iso=!0,t=0,n=l;t<n;t++)if(Sn[t][1].exec(c[1])){o=Sn[t][0],r=!1!==Sn[t][2];break}if(null==o)return void(e._isValid=!1);if(c[3]){for(t=0,n=u;t<n;t++)if(Tn[t][1].exec(c[3])){a=(c[2]||" ")+Tn[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(c[4]){if(!wn.exec(c[4]))return void(e._isValid=!1);i="Z"}e._f=o+(a||"")+(i||""),Hn(e)}else e._isValid=!1}function Ln(e,t,n,r,o,a){var i=[An(e),it.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return a&&i.push(parseInt(a,10)),i}function An(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Nn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Rn(e,t,n){if(e){var r=xt.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(r!==o)return _(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function xn(e,t,n){if(e)return jn[e];if(t)return 0;var r=parseInt(n,10),o=r%100,a=(r-o)/100;return 60*a+o}function Pn(e){var t,n=En.exec(Nn(e._i));if(n){if(t=Ln(n[4],n[3],n[2],n[5],n[6],n[7]),!Rn(n[1],t,e))return;e._a=t,e._tzm=xn(n[8],n[9],n[10]),e._d=Ot.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0}else e._isValid=!1}function Un(e){var t=In.exec(e._i);null===t?(Dn(e),!1===e._isValid&&(delete e._isValid,Pn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Vn(e,t,n){return null!=e?e:null!=t?t:n}function Bn(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Fn(e){var t,n,r,o,a,i=[];if(!e._d){for(r=Bn(e),e._w&&null==e._a[Fe]&&null==e._a[Be]&&Gn(e),null!=e._dayOfYear&&(a=Vn(e._a[Ve],r[Ve]),(e._dayOfYear>Ke(a)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),n=Ot(a,0,e._dayOfYear),e._a[Be]=n.getUTCMonth(),e._a[Fe]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ge]&&0===e._a[He]&&0===e._a[Ye]&&0===e._a[ze]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?Ot:yt).apply(null,i),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==o&&(_(e).weekdayMismatch=!0)}}function Gn(e){var t,n,r,o,a,i,s,c,l;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(a=1,i=4,n=Vn(t.GG,e._a[Ve],Ct(Xn(),1,4).year),r=Vn(t.W,1),o=Vn(t.E,1),(o<1||o>7)&&(c=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,l=Ct(Xn(),a,i),n=Vn(t.gg,e._a[Ve],l.year),r=Vn(t.w,l.week),null!=t.d?(o=t.d,(o<0||o>6)&&(c=!0)):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(c=!0)):o=a),r<1||r>wt(n,a,i)?_(e)._overflowWeeks=!0:null!=c?_(e)._overflowWeekday=!0:(s=kt(n,r,o,a,i),e._a[Ve]=s.year,e._dayOfYear=s.dayOfYear)}function Hn(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],_(e).empty=!0;var t,n,r,o,i,s,c,l=""+e._i,u=l.length,d=0;for(r=q(e._f,e._locale).match(U)||[],c=r.length,t=0;t<c;t++)o=r[t],n=(l.match(Ee(o,e))||[])[0],n&&(i=l.substr(0,l.indexOf(n)),i.length>0&&_(e).unusedInput.push(i),l=l.slice(l.indexOf(n)+n.length),d+=n.length),F[o]?(n?_(e).empty=!1:_(e).unusedTokens.push(o),Pe(o,n,e)):e._strict&&!n&&_(e).unusedTokens.push(o);_(e).charsLeftOver=u-d,l.length>0&&_(e).unusedInput.push(l),e._a[Ge]<=12&&!0===_(e).bigHour&&e._a[Ge]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[Ge]=Yn(e._locale,e._a[Ge],e._meridiem),s=_(e).era,null!==s&&(e._a[Ve]=e._locale.erasConvertYear(s,e._a[Ve])),Fn(e),Mn(e)}else Pn(e);else Dn(e)}function Yn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function zn(e){var t,n,r,o,a,i,s=!1,c=e._f.length;if(0===c)return _(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<c;o++)a=0,i=!1,t=k({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Hn(t),b(t)&&(i=!0),a+=_(t).charsLeftOver,a+=10*_(t).unusedTokens.length,_(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||i)&&(r=a,n=t,i&&(s=!0));m(e,n||t)}function qn(e){if(!e._d){var t=ae(e._i),n=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Fn(e)}}function Wn(e){var t=new C(Mn(Kn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Kn(e){var t=e._i,n=e._f;return e._locale=e._locale||yn(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new C(Mn(t)):(f(t)?e._d=t:s(n)?zn(e):n?Hn(e):$n(e),b(e)||(e._d=null),e))}function $n(e){var t=e._i;d(t)?e._d=new Date(a.now()):f(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Un(e):s(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Fn(e)):c(t)?qn(e):p(t)?e._d=new Date(t):a.createFromInputFallback(e)}function Jn(e,t,n,r,o){var a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(c(e)&&u(e)||s(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=o,a._l=n,a._i=e,a._f=t,a._strict=r,Wn(a)}function Xn(e,t,n,r){return Jn(e,t,n,r,!1)}a.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),a.ISO_8601=function(){},a.RFC_2822=function(){};var Qn=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Xn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Zn=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Xn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function er(e,t){var n,r;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Xn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function tr(){var e=[].slice.call(arguments,0);return er("isBefore",e)}function nr(){var e=[].slice.call(arguments,0);return er("isAfter",e)}var rr=function(){return Date.now?Date.now():+new Date},or=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ar(e){var t,n,r=!1,o=or.length;for(t in e)if(l(e,t)&&(-1===$e.call(or,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[or[n]]){if(r)return!1;parseFloat(e[or[n]])!==Ae(e[or[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function sr(){return jr(NaN)}function cr(e){var t=ae(e),n=t.year||0,r=t.quarter||0,o=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,c=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=ar(t),this._milliseconds=+u+1e3*l+6e4*c+1e3*s*60*60,this._days=+i+7*a,this._months=+o+3*r+12*n,this._data={},this._locale=yn(),this._bubble()}function lr(e){return e instanceof cr}function ur(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function dr(e,t,n){var r,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&Ae(e[r])!==Ae(t[r]))&&i++;return i+a}function pr(e,t){G(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+P(~~(e/60),2)+t+P(~~e%60,2)}))}pr("Z",":"),pr("ZZ",""),Ie("Z",ke),Ie("ZZ",ke),Re(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=hr(ke,e)}));var fr=/([\+\-]|\d\d)/gi;function hr(e,t){var n,r,o,a=(t||"").match(e);return null===a?null:(n=a[a.length-1]||[],r=(n+"").match(fr)||["-",0,0],o=60*r[1]+Ae(r[2]),0===o?0:"+"===r[0]?o:-o)}function mr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||f(e)?e.valueOf():Xn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),a.updateOffset(n,!1),n):Xn(e).local()}function vr(e){return-Math.round(e._d.getTimezoneOffset())}function gr(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(e=hr(ke,e),null===e)return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=vr(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Rr(this,jr(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:vr(this)}function _r(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function br(e){return this.utcOffset(0,e)}function yr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(vr(this),"m")),this}function Or(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=hr(Me,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Mr(e){return!!this.isValid()&&(e=e?Xn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function kr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Cr(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e,t={};return k(t,this),t=Kn(t),t._a?(e=t._isUTC?v(t._a):Xn(t._a),this._isDSTShifted=this.isValid()&&dr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wr(){return!!this.isValid()&&!this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC}function Tr(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}a.updateOffset=function(){};var Ir=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Er=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jr(e,t){var n,r,o,a=e,i=null;return lr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:p(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(i=Ir.exec(e))?(n="-"===i[1]?-1:1,a={y:0,d:Ae(i[Fe])*n,h:Ae(i[Ge])*n,m:Ae(i[He])*n,s:Ae(i[Ye])*n,ms:Ae(ur(1e3*i[ze]))*n}):(i=Er.exec(e))?(n="-"===i[1]?-1:1,a={y:Dr(i[2],n),M:Dr(i[3],n),w:Dr(i[4],n),d:Dr(i[5],n),h:Dr(i[6],n),m:Dr(i[7],n),s:Dr(i[8],n)}):null==a?a={}:"object"===typeof a&&("from"in a||"to"in a)&&(o=Ar(Xn(a.from),Xn(a.to)),a={},a.ms=o.milliseconds,a.M=o.months),r=new cr(a),lr(e)&&l(e,"_locale")&&(r._locale=e._locale),lr(e)&&l(e,"_isValid")&&(r._isValid=e._isValid),r}function Dr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Lr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ar(e,t){var n;return e.isValid()&&t.isValid()?(t=mr(t,e),e.isBefore(t)?n=Lr(e,t):(n=Lr(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Nr(e,t){return function(n,r){var o,a;return null===r||isNaN(+r)||(j(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),o=jr(n,r),Rr(this,o,e),this}}function Rr(e,t,n,r){var o=t._milliseconds,i=ur(t._days),s=ur(t._months);e.isValid()&&(r=null==r||r,s&&ht(e,Ze(e,"Month")+s*n),i&&et(e,"Date",Ze(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&a.updateOffset(e,i||s))}jr.fn=cr.prototype,jr.invalid=sr;var xr=Nr(1,"add"),Pr=Nr(-1,"subtract");function Ur(e){return"string"===typeof e||e instanceof String}function Vr(e){return w(e)||f(e)||Ur(e)||p(e)||Fr(e)||Br(e)||null===e||void 0===e}function Br(e){var t,n,r=c(e)&&!u(e),o=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i=a.length;for(t=0;t<i;t+=1)n=a[t],o=o||l(e,n);return r&&o}function Fr(e){var t=s(e),n=!1;return t&&(n=0===e.filter((function(t){return!p(t)&&Ur(e)})).length),t&&n}function Gr(e){var t,n,r=c(e)&&!u(e),o=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],o=o||l(e,n);return r&&o}function Hr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Yr(e,t){1===arguments.length&&(arguments[0]?Vr(arguments[0])?(e=arguments[0],t=void 0):Gr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Xn(),r=mr(n,this).startOf("day"),o=a.calendarFormat(this,r)||"sameElse",i=t&&(D(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,Xn(n)))}function zr(){return new C(this)}function qr(e,t){var n=w(e)?e:Xn(e);return!(!this.isValid()||!n.isValid())&&(t=oe(t)||"millisecond","millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Wr(e,t){var n=w(e)?e:Xn(e);return!(!this.isValid()||!n.isValid())&&(t=oe(t)||"millisecond","millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Kr(e,t,n,r){var o=w(e)?e:Xn(e),a=w(t)?t:Xn(t);return!!(this.isValid()&&o.isValid()&&a.isValid())&&(r=r||"()",("("===r[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n)))}function $r(e,t){var n,r=w(e)?e:Xn(e);return!(!this.isValid()||!r.isValid())&&(t=oe(t)||"millisecond","millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Jr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Xr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qr(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(r=mr(e,this),!r.isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=oe(t),t){case"year":a=Zr(this,r)/12;break;case"month":a=Zr(this,r);break;case"quarter":a=Zr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:Le(a)}function Zr(e,t){if(e.date()<t.date())return-Zr(t,e);var n,r,o=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(o,"months");return t-a<0?(n=e.clone().add(o-1,"months"),r=(t-a)/(a-n)):(n=e.clone().add(o+1,"months"),r=(t-a)/(n-a)),-(o+r)||0}function eo(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function to(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function no(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,o="moment",a="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function ro(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)}function oo(e,t){return this.isValid()&&(w(e)&&e.isValid()||Xn(e).isValid())?jr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ao(e){return this.from(Xn(),e)}function io(e,t){return this.isValid()&&(w(e)&&e.isValid()||Xn(e).isValid())?jr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function so(e){return this.to(Xn(),e)}function co(e){var t;return void 0===e?this._locale._abbr:(t=yn(e),null!=t&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lo=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function uo(){return this._locale}var po=1e3,fo=60*po,ho=60*fo,mo=3506328*ho;function vo(e,t){return(e%t+t)%t}function go(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-mo:new Date(e,t,n).valueOf()}function _o(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-mo:Date.UTC(e,t,n)}function bo(e){var t,n;if(e=oe(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?_o:go,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=vo(t+(this._isUTC?0:this.utcOffset()*fo),ho);break;case"minute":t=this._d.valueOf(),t-=vo(t,fo);break;case"second":t=this._d.valueOf(),t-=vo(t,po);break}return this._d.setTime(t),a.updateOffset(this,!0),this}function yo(e){var t,n;if(e=oe(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?_o:go,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ho-vo(t+(this._isUTC?0:this.utcOffset()*fo),ho)-1;break;case"minute":t=this._d.valueOf(),t+=fo-vo(t,fo)-1;break;case"second":t=this._d.valueOf(),t+=po-vo(t,po)-1;break}return this._d.setTime(t),a.updateOffset(this,!0),this}function Oo(){return this._d.valueOf()-6e4*(this._offset||0)}function Mo(){return Math.floor(this.valueOf()/1e3)}function ko(){return new Date(this.valueOf())}function Co(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wo(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function So(){return this.isValid()?this.toISOString():null}function To(){return b(this)}function Io(){return m({},_(this))}function Eo(){return _(this).overflow}function jo(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Do(e,t){var n,r,o,i=this._eras||yn("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":o=a(i[n].since).startOf("day"),i[n].since=o.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=a(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf();break}}return i}function Lo(e,t,n){var r,o,a,i,s,c=this.eras();for(e=e.toUpperCase(),r=0,o=c.length;r<o;++r)if(a=c[r].name.toUpperCase(),i=c[r].abbr.toUpperCase(),s=c[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return c[r];break;case"NNNN":if(a===e)return c[r];break;case"NNNNN":if(s===e)return c[r];break}else if([a,i,s].indexOf(e)>=0)return c[r]}function Ao(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n}function No(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Ro(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function xo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Po(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-a(o[e].since).year())*n+o[e].offset;return this.year()}function Uo(e){return l(this,"_erasNameRegex")||zo.call(this),e?this._erasNameRegex:this._erasRegex}function Vo(e){return l(this,"_erasAbbrRegex")||zo.call(this),e?this._erasAbbrRegex:this._erasRegex}function Bo(e){return l(this,"_erasNarrowRegex")||zo.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fo(e,t){return t.erasAbbrRegex(e)}function Go(e,t){return t.erasNameRegex(e)}function Ho(e,t){return t.erasNarrowRegex(e)}function Yo(e,t){return t._eraYearOrdinalRegex||ye}function zo(){var e,t,n,r,o,a=[],i=[],s=[],c=[],l=this.eras();for(e=0,t=l.length;e<t;++e)n=De(l[e].name),r=De(l[e].abbr),o=De(l[e].narrow),i.push(n),a.push(r),s.push(o),c.push(n),c.push(r),c.push(o);this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function qo(e,t){G(0,[e,e.length],0,t)}function Wo(e){return Zo.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ko(e){return Zo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function $o(){return wt(this.year(),1,4)}function Jo(){return wt(this.isoWeekYear(),1,4)}function Xo(){var e=this.localeData()._week;return wt(this.year(),e.dow,e.doy)}function Qo(){var e=this.localeData()._week;return wt(this.weekYear(),e.dow,e.doy)}function Zo(e,t,n,r,o){var a;return null==e?Ct(this,r,o).year:(a=wt(e,r,o),t>a&&(t=a),ea.call(this,e,t,n,r,o))}function ea(e,t,n,r,o){var a=kt(e,t,n,r,o),i=Ot(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function ta(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}G("N",0,0,"eraAbbr"),G("NN",0,0,"eraAbbr"),G("NNN",0,0,"eraAbbr"),G("NNNN",0,0,"eraName"),G("NNNNN",0,0,"eraNarrow"),G("y",["y",1],"yo","eraYear"),G("y",["yy",2],0,"eraYear"),G("y",["yyy",3],0,"eraYear"),G("y",["yyyy",4],0,"eraYear"),Ie("N",Fo),Ie("NN",Fo),Ie("NNN",Fo),Ie("NNNN",Go),Ie("NNNNN",Ho),Re(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?_(n).era=o:_(n).invalidEra=e})),Ie("y",ye),Ie("yy",ye),Ie("yyy",ye),Ie("yyyy",ye),Ie("yo",Yo),Re(["y","yy","yyy","yyyy"],Ve),Re(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ve]=n._locale.eraYearOrdinalParse(e,o):t[Ve]=parseInt(e,10)})),G(0,["gg",2],0,(function(){return this.weekYear()%100})),G(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),qo("gggg","weekYear"),qo("ggggg","weekYear"),qo("GGGG","isoWeekYear"),qo("GGGGG","isoWeekYear"),Ie("G",Oe),Ie("g",Oe),Ie("GG",he,ue),Ie("gg",he,ue),Ie("GGGG",_e,pe),Ie("gggg",_e,pe),Ie("GGGGG",be,fe),Ie("ggggg",be,fe),xe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=Ae(e)})),xe(["gg","GG"],(function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)})),G("Q",0,"Qo","quarter"),Ie("Q",le),Re("Q",(function(e,t){t[Be]=3*(Ae(e)-1)})),G("D",["DD",2],"Do","date"),Ie("D",he,Se),Ie("DD",he,ue),Ie("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Re(["D","DD"],Fe),Re("Do",(function(e,t){t[Fe]=Ae(e.match(he)[0])}));var na=Qe("Date",!0);function ra(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}G("DDD",["DDDD",3],"DDDo","dayOfYear"),Ie("DDD",ge),Ie("DDDD",de),Re(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=Ae(e)})),G("m",["mm",2],0,"minute"),Ie("m",he,Te),Ie("mm",he,ue),Re(["m","mm"],He);var oa=Qe("Minutes",!1);G("s",["ss",2],0,"second"),Ie("s",he,Te),Ie("ss",he,ue),Re(["s","ss"],Ye);var aa,ia,sa=Qe("Seconds",!1);for(G("S",0,0,(function(){return~~(this.millisecond()/100)})),G(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),G(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),G(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),G(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),G(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),G(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Ie("S",ge,le),Ie("SS",ge,ue),Ie("SSS",ge,de),aa="SSSS";aa.length<=9;aa+="S")Ie(aa,ye);function ca(e,t){t[ze]=Ae(1e3*("0."+e))}for(aa="S";aa.length<=9;aa+="S")Re(aa,ca);function la(){return this._isUTC?"UTC":""}function ua(){return this._isUTC?"Coordinated Universal Time":""}ia=Qe("Milliseconds",!1),G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var da=C.prototype;function pa(e){return Xn(1e3*e)}function fa(){return Xn.apply(null,arguments).parseZone()}function ha(e){return e}da.add=xr,da.calendar=Yr,da.clone=zr,da.diff=Qr,da.endOf=yo,da.format=ro,da.from=oo,da.fromNow=ao,da.to=io,da.toNow=so,da.get=tt,da.invalidAt=Eo,da.isAfter=qr,da.isBefore=Wr,da.isBetween=Kr,da.isSame=$r,da.isSameOrAfter=Jr,da.isSameOrBefore=Xr,da.isValid=To,da.lang=lo,da.locale=co,da.localeData=uo,da.max=Zn,da.min=Qn,da.parsingFlags=Io,da.set=nt,da.startOf=bo,da.subtract=Pr,da.toArray=Co,da.toObject=wo,da.toDate=ko,da.toISOString=to,da.inspect=no,"undefined"!==typeof Symbol&&null!=Symbol.for&&(da[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),da.toJSON=So,da.toString=eo,da.unix=Mo,da.valueOf=Oo,da.creationData=jo,da.eraName=No,da.eraNarrow=Ro,da.eraAbbr=xo,da.eraYear=Po,da.year=Je,da.isLeapYear=Xe,da.weekYear=Wo,da.isoWeekYear=Ko,da.quarter=da.quarters=ta,da.month=mt,da.daysInMonth=vt,da.week=da.weeks=jt,da.isoWeek=da.isoWeeks=Dt,da.weeksInYear=Xo,da.weeksInWeekYear=Qo,da.isoWeeksInYear=$o,da.isoWeeksInISOWeekYear=Jo,da.date=na,da.day=da.days=qt,da.weekday=Wt,da.isoWeekday=Kt,da.dayOfYear=ra,da.hour=da.hours=an,da.minute=da.minutes=oa,da.second=da.seconds=sa,da.millisecond=da.milliseconds=ia,da.utcOffset=gr,da.utc=br,da.local=yr,da.parseZone=Or,da.hasAlignedHourOffset=Mr,da.isDST=kr,da.isLocal=wr,da.isUtcOffset=Sr,da.isUtc=Tr,da.isUTC=Tr,da.zoneAbbr=la,da.zoneName=ua,da.dates=T("dates accessor is deprecated. Use date instead.",na),da.months=T("months accessor is deprecated. Use month instead",mt),da.years=T("years accessor is deprecated. Use year instead",Je),da.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",_r),da.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Cr);var ma=N.prototype;function va(e,t,n,r){var o=yn(),a=v().set(r,t);return o[n](a,e)}function ga(e,t,n){if(p(e)&&(t=e,e=void 0),e=e||"",null!=t)return va(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=va(e,r,n,"month");return o}function _a(e,t,n,r){"boolean"===typeof e?(p(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,p(t)&&(n=t,t=void 0),t=t||"");var o,a=yn(),i=e?a._week.dow:0,s=[];if(null!=n)return va(t,(n+i)%7,r,"day");for(o=0;o<7;o++)s[o]=va(t,(o+i)%7,r,"day");return s}function ba(e,t){return ga(e,t,"months")}function ya(e,t){return ga(e,t,"monthsShort")}function Oa(e,t,n){return _a(e,t,n,"weekdays")}function Ma(e,t,n){return _a(e,t,n,"weekdaysShort")}function ka(e,t,n){return _a(e,t,n,"weekdaysMin")}ma.calendar=x,ma.longDateFormat=K,ma.invalidDate=J,ma.ordinal=Z,ma.preparse=ha,ma.postformat=ha,ma.relativeTime=te,ma.pastFuture=ne,ma.set=L,ma.eras=Do,ma.erasParse=Lo,ma.erasConvertYear=Ao,ma.erasAbbrRegex=Vo,ma.erasNameRegex=Uo,ma.erasNarrowRegex=Bo,ma.months=ut,ma.monthsShort=dt,ma.monthsParse=ft,ma.monthsRegex=_t,ma.monthsShortRegex=gt,ma.week=St,ma.firstDayOfYear=Et,ma.firstDayOfWeek=It,ma.weekdays=Ft,ma.weekdaysMin=Ht,ma.weekdaysShort=Gt,ma.weekdaysParse=zt,ma.weekdaysRegex=$t,ma.weekdaysShortRegex=Jt,ma.weekdaysMinRegex=Xt,ma.isPM=rn,ma.meridiem=sn,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===Ae(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),a.lang=T("moment.lang is deprecated. Use moment.locale instead.",gn),a.langData=T("moment.langData is deprecated. Use moment.localeData instead.",yn);var Ca=Math.abs;function wa(){var e=this._data;return this._milliseconds=Ca(this._milliseconds),this._days=Ca(this._days),this._months=Ca(this._months),e.milliseconds=Ca(e.milliseconds),e.seconds=Ca(e.seconds),e.minutes=Ca(e.minutes),e.hours=Ca(e.hours),e.months=Ca(e.months),e.years=Ca(e.years),this}function Sa(e,t,n,r){var o=jr(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Ta(e,t){return Sa(this,e,t,1)}function Ia(e,t){return Sa(this,e,t,-1)}function Ea(e){return e<0?Math.floor(e):Math.ceil(e)}function ja(){var e,t,n,r,o,a=this._milliseconds,i=this._days,s=this._months,c=this._data;return a>=0&&i>=0&&s>=0||a<=0&&i<=0&&s<=0||(a+=864e5*Ea(La(s)+i),i=0,s=0),c.milliseconds=a%1e3,e=Le(a/1e3),c.seconds=e%60,t=Le(e/60),c.minutes=t%60,n=Le(t/60),c.hours=n%24,i+=Le(n/24),o=Le(Da(i)),s+=o,i-=Ea(La(o)),r=Le(s/12),s%=12,c.days=i,c.months=s,c.years=r,this}function Da(e){return 4800*e/146097}function La(e){return 146097*e/4800}function Aa(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=oe(e),"month"===e||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Da(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(La(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Na(e){return function(){return this.as(e)}}var Ra=Na("ms"),xa=Na("s"),Pa=Na("m"),Ua=Na("h"),Va=Na("d"),Ba=Na("w"),Fa=Na("M"),Ga=Na("Q"),Ha=Na("y"),Ya=Ra;function za(){return jr(this)}function qa(e){return e=oe(e),this.isValid()?this[e+"s"]():NaN}function Wa(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ka=Wa("milliseconds"),$a=Wa("seconds"),Ja=Wa("minutes"),Xa=Wa("hours"),Qa=Wa("days"),Za=Wa("months"),ei=Wa("years");function ti(){return Le(this.days()/7)}var ni=Math.round,ri={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function oi(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function ai(e,t,n,r){var o=jr(e).abs(),a=ni(o.as("s")),i=ni(o.as("m")),s=ni(o.as("h")),c=ni(o.as("d")),l=ni(o.as("M")),u=ni(o.as("w")),d=ni(o.as("y")),p=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||c<=1&&["d"]||c<n.d&&["dd",c];return null!=n.w&&(p=p||u<=1&&["w"]||u<n.w&&["ww",u]),p=p||l<=1&&["M"]||l<n.M&&["MM",l]||d<=1&&["y"]||["yy",d],p[2]=t,p[3]=+e>0,p[4]=r,oi.apply(null,p)}function ii(e){return void 0===e?ni:"function"===typeof e&&(ni=e,!0)}function si(e,t){return void 0!==ri[e]&&(void 0===t?ri[e]:(ri[e]=t,"s"===e&&(ri.ss=t-1),!0))}function ci(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,a=ri;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(o=e),"object"===typeof t&&(a=Object.assign({},ri,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),n=this.localeData(),r=ai(this,!o,a,n),o&&(r=n.pastFuture(+this,r)),n.postformat(r)}var li=Math.abs;function ui(e){return(e>0)-(e<0)||+e}function di(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,a,i,s,c=li(this._milliseconds)/1e3,l=li(this._days),u=li(this._months),d=this.asSeconds();return d?(e=Le(c/60),t=Le(e/60),c%=60,e%=60,n=Le(u/12),u%=12,r=c?c.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",a=ui(this._months)!==ui(d)?"-":"",i=ui(this._days)!==ui(d)?"-":"",s=ui(this._milliseconds)!==ui(d)?"-":"",o+"P"+(n?a+n+"Y":"")+(u?a+u+"M":"")+(l?i+l+"D":"")+(t||e||c?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(c?s+r+"S":"")):"P0D"}var pi=cr.prototype;return pi.isValid=ir,pi.abs=wa,pi.add=Ta,pi.subtract=Ia,pi.as=Aa,pi.asMilliseconds=Ra,pi.asSeconds=xa,pi.asMinutes=Pa,pi.asHours=Ua,pi.asDays=Va,pi.asWeeks=Ba,pi.asMonths=Fa,pi.asQuarters=Ga,pi.asYears=Ha,pi.valueOf=Ya,pi._bubble=ja,pi.clone=za,pi.get=qa,pi.milliseconds=Ka,pi.seconds=$a,pi.minutes=Ja,pi.hours=Xa,pi.days=Qa,pi.weeks=ti,pi.months=Za,pi.years=ei,pi.humanize=ci,pi.toISOString=di,pi.toString=di,pi.toJSON=di,pi.locale=co,pi.localeData=uo,pi.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",di),pi.lang=lo,G("X",0,0,"unix"),G("x",0,0,"valueOf"),Ie("x",Oe),Ie("X",Ce),Re("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Re("x",(function(e,t,n){n._d=new Date(Ae(e))})),
//! moment.js
a.version="2.30.1",i(Xn),a.fn=da,a.min=tr,a.max=nr,a.now=rr,a.utc=v,a.unix=pa,a.months=ba,a.isDate=f,a.locale=gn,a.invalid=y,a.duration=jr,a.isMoment=w,a.weekdays=Oa,a.parseZone=fa,a.localeData=yn,a.isDuration=lr,a.monthsShort=ya,a.weekdaysMin=ka,a.defineLocale=_n,a.updateLocale=bn,a.locales=On,a.weekdaysShort=Ma,a.normalizeUnits=oe,a.relativeTimeRounding=ii,a.relativeTimeThreshold=si,a.calendarFormat=Hr,a.prototype=da,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}))}).call(this,n("62e4")(e))},c230:function(e,t,n){"use strict";var r=n("c1b2"),o=n("3940"),a=n("4180"),i=n("6f8d"),s=n("a421"),c=n("a016");t.f=r&&!o?Object.defineProperties:function(e,t){i(e);var n,r=s(t),o=c(t),l=o.length,u=0;while(l>u)a.f(e,n=o[u++],r[n]);return e}},c2f0:function(e,t,n){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(n){}}},c345:function(e,t,n){"use strict";var r=n("c532"),o=["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,a,i={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(i[t]&&o.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},c349:function(e,t,n){"use strict";n.d(t,"a",(function(){return J}));var r=n("0c24"),o=n("fa81"),a=n.n(o),i=n("2b0b"),s=n.n(i),c=n("44a4"),l=n.n(c),u=n("b181"),d=n("0931"),p=n("7d20"),f=n("8afb"),h=n("31e7"),m=n("c9ac"),v=n("304f"),g=n("860d"),_=n("a27e"),b=n("6df1"),y=n("54bb"),O=n("4bea"),M=n("8cf4"),k=n("8160"),C=n("afd8"),w=n.n(C),S=n("800f"),T=n.n(S),I=n("14b1"),E=n.n(I),j=n("4573"),D=n.n(j),L=n("8b9c"),A=n.n(L),N=n("6ab4"),R=n("83ec");let x=void 0;const P={height:"0",visibility:"hidden",overflow:Object(N["b"])()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},U=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],V=e=>{const t=w()(e);return T()(t)?e:t};function B(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=w()(t.getPropertyValue("padding-bottom"))+w()(t.getPropertyValue("padding-top")),o=w()(t.getPropertyValue("border-bottom-width"))+w()(t.getPropertyValue("border-top-width"));return{contextStyle:E()(U).call(U,e=>[e,t.getPropertyValue(e)]),paddingSize:r,borderSize:o,boxSizing:n}}function F(e,t=1,n){var r,o;if(!x){x=document.createElement("textarea");let t=document.body;!Object(N["b"])()&&e.parentNode&&(t=e.parentNode),t.appendChild(x)}const{paddingSize:a,borderSize:i,boxSizing:s,contextStyle:c}=B(e);D()(c).call(c,([e,t])=>{var n;return null===(n=x)||void 0===n?void 0:n.style.setProperty(e,t)}),D()(r=A()(P)).call(r,([e,t])=>{var n;return null===(n=x)||void 0===n?void 0:n.style.setProperty(e,t,"important")}),x.value=e.value||e.placeholder||"";let l=x.scrollHeight;const u={};"border-box"===s?l+=i:"content-box"===s&&(l-=a),x.value="";const d=x.scrollHeight-a;if(Object(R["d"])(t)){let e=d*t;"border-box"===s&&(e=e+a+i),l=Math.max(e,l),u.minHeight=e+"px"}if(Object(R["d"])(n)){let e=d*n;"border-box"===s&&(e=e+a+i),l=Math.min(e,l)}return u.height=l+"px",null===(o=x.parentNode)||void 0===o||o.removeChild(x),x=void 0,u}var G=n("d095"),H=n("9ad7"),Y=n("7a23");const z=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],q=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","inputmode"],W="ElInput";var K=Object(Y["defineComponent"])({name:W,inheritAttrs:!1,__name:"input",props:k["b"],emits:k["a"],setup(e,{expose:t,emit:n}){const r=e,o=n,i=Object(Y["useAttrs"])(),c=Object(m["a"])(),k=Object(Y["useSlots"])(),C=Object(Y["computed"])(()=>["textarea"===r.type?L.b():D.b(),D.m(E.value),D.is("disabled",j.value),D.is("exceed",le.value),{[D.b("group")]:k.prepend||k.append,[D.m("prefix")]:k.prefix||r.prefixIcon,[D.m("suffix")]:k.suffix||r.suffixIcon||r.clearable||r.showPassword,[D.bm("suffix","password-clear")]:ae.value&&ie.value,[D.b("hidden")]:"hidden"===r.type},i.class]),w=Object(Y["computed"])(()=>[D.e("wrapper"),D.is("focus",$.value)]),{form:S,formItem:T}=Object(M["a"])(),{inputId:I}=Object(M["b"])(r,{formItemContext:T}),E=Object(O["b"])(),j=Object(O["a"])(),D=Object(v["d"])("input"),L=Object(v["d"])("textarea"),A=Object(Y["shallowRef"])(),N=Object(Y["shallowRef"])(),R=Object(Y["ref"])(!1),x=Object(Y["ref"])(!1),P=Object(Y["ref"])(),U=Object(Y["shallowRef"])(r.inputStyle),B=Object(Y["computed"])(()=>A.value||N.value),{wrapperRef:K,isFocused:$,handleFocus:J,handleBlur:X}=Object(_["a"])(B,{disabled:j,afterBlur(){var e;r.validateEvent&&(null===T||void 0===T||null===(e=T.validate)||void 0===e||e.call(T,"blur").catch(e=>Object(f["a"])(e)))}}),Q=Object(Y["computed"])(()=>{var e;return null!==(e=null===S||void 0===S?void 0:S.statusIcon)&&void 0!==e&&e}),Z=Object(Y["computed"])(()=>(null===T||void 0===T?void 0:T.validateState)||""),ee=Object(Y["computed"])(()=>Z.value&&h["d"][Z.value]),te=Object(Y["computed"])(()=>x.value?H["View"]:H["Hide"]),ne=Object(Y["computed"])(()=>[i.style]),re=Object(Y["computed"])(()=>[r.inputStyle,U.value,{resize:r.resize}]),oe=Object(Y["computed"])(()=>Object(G["isNil"])(r.modelValue)?"":String(r.modelValue)),ae=Object(Y["computed"])(()=>r.clearable&&!j.value&&!r.readonly&&!!oe.value&&($.value||R.value)),ie=Object(Y["computed"])(()=>r.showPassword&&!j.value&&!!oe.value),se=Object(Y["computed"])(()=>r.showWordLimit&&!!r.maxlength&&("text"===r.type||"textarea"===r.type)&&!j.value&&!r.readonly&&!r.showPassword),ce=Object(Y["computed"])(()=>oe.value.length),le=Object(Y["computed"])(()=>!!se.value&&ce.value>Number(r.maxlength)),ue=Object(Y["computed"])(()=>!!k.suffix||!!r.suffixIcon||ae.value||r.showPassword||se.value||!!Z.value&&Q.value),de=Object(Y["computed"])(()=>!!a()(r.modelModifiers).length),[pe,fe]=Object(g["a"])(A);Object(d["useResizeObserver"])(N,e=>{if(ve(),!se.value||"both"!==r.resize&&"horizontal"!==r.resize)return;const{width:t}=e[0].contentRect;P.value={right:`calc(100% - ${t+22-10}px)`}});const he=()=>{const{type:e,autosize:t}=r;if(d["isClient"]&&"textarea"===e&&N.value)if(t){const e=Object(p["isObject"])(t)?t.minRows:void 0,n=Object(p["isObject"])(t)?t.maxRows:void 0,r=F(N.value,e,n);U.value={overflowY:"hidden",...r},Object(Y["nextTick"])(()=>{N.value.offsetHeight,U.value=r})}else U.value={minHeight:F(N.value).minHeight}},me=e=>{let t=!1;return()=>{var n;!t&&r.autosize&&null!==(null===(n=N.value)||void 0===n?void 0:n.offsetParent)&&(s()(e),t=!0)}},ve=me(he),ge=()=>{const e=B.value,t=r.formatter?r.formatter(oe.value):oe.value;e&&e.value!==t&&"file"!==r.type&&(e.value=t)},_e=e=>{const{trim:t,number:n}=r.modelModifiers;return t&&(e=l()(e).call(e)),n&&(e=""+V(e)),r.formatter&&r.parser&&(e=r.parser(e)),e},be=async e=>{if(Oe.value)return;const{lazy:t}=r.modelModifiers;let{value:n}=e.target;t?o(u["b"],n):(n=_e(n),String(n)!==oe.value?(pe(),o(u["c"],n),o(u["b"],n),await Object(Y["nextTick"])(),(r.formatter&&r.parser||!de.value)&&ge(),fe()):r.formatter&&ge())},ye=async e=>{let{value:t}=e.target;t=_e(t),r.modelModifiers.lazy&&o(u["c"],t),o(u["a"],t,e),await Object(Y["nextTick"])(),ge()},{isComposing:Oe,handleCompositionStart:Me,handleCompositionUpdate:ke,handleCompositionEnd:Ce}=Object(b["a"])({emit:o,afterComposition:be}),we=()=>{x.value=!x.value},Se=()=>{var e;return null===(e=B.value)||void 0===e?void 0:e.focus()},Te=()=>{var e;return null===(e=B.value)||void 0===e?void 0:e.blur()},Ie=e=>{R.value=!1,o("mouseleave",e)},Ee=e=>{R.value=!0,o("mouseenter",e)},je=e=>{o("keydown",e)},De=()=>{var e;null===(e=B.value)||void 0===e||e.select()},Le=e=>{o(u["c"],""),o(u["a"],""),o("clear",e),o(u["b"],"")};return Object(Y["watch"])(()=>r.modelValue,()=>{var e;Object(Y["nextTick"])(()=>he()),r.validateEvent&&(null===T||void 0===T||null===(e=T.validate)||void 0===e||e.call(T,"change").catch(e=>Object(f["a"])(e)))}),Object(Y["watch"])(oe,e=>{if(!B.value)return;const{trim:t,number:n}=r.modelModifiers,o=B.value.value,a=!n&&"number"!==r.type||/^0\d/.test(o)?o:""+V(o);a!==e&&(document.activeElement===B.value&&"range"!==B.value.type&&t&&l()(a).call(a)===e||ge())}),Object(Y["watch"])(()=>r.type,async()=>{await Object(Y["nextTick"])(),ge(),he()}),Object(Y["onMounted"])(()=>{!r.formatter&&r.parser&&Object(f["a"])(W,"If you set the parser, you also need to set the formatter."),ge(),Object(Y["nextTick"])(he)}),t({input:A,textarea:N,ref:B,textareaStyle:re,autosize:Object(Y["toRef"])(r,"autosize"),isComposing:Oe,focus:Se,blur:Te,select:De,clear:Le,resizeTextarea:he}),(t,n)=>(Object(Y["openBlock"])(),Object(Y["createElementBlock"])("div",{class:Object(Y["normalizeClass"])([C.value,{[Object(Y["unref"])(D).bm("group","append")]:t.$slots.append,[Object(Y["unref"])(D).bm("group","prepend")]:t.$slots.prepend}]),style:Object(Y["normalizeStyle"])(ne.value),onMouseenter:Ee,onMouseleave:Ie},[Object(Y["createCommentVNode"])(" input "),"textarea"!==e.type?(Object(Y["openBlock"])(),Object(Y["createElementBlock"])(Y["Fragment"],{key:0},[Object(Y["createCommentVNode"])(" prepend slot "),t.$slots.prepend?(Object(Y["openBlock"])(),Object(Y["createElementBlock"])("div",{key:0,class:Object(Y["normalizeClass"])(Object(Y["unref"])(D).be("group","prepend"))},[Object(Y["renderSlot"])(t.$slots,"prepend")],2)):Object(Y["createCommentVNode"])("v-if",!0),Object(Y["createElementVNode"])("div",{ref_key:"wrapperRef",ref:K,class:Object(Y["normalizeClass"])(w.value)},[Object(Y["createCommentVNode"])(" prefix slot "),t.$slots.prefix||e.prefixIcon?(Object(Y["openBlock"])(),Object(Y["createElementBlock"])("span",{key:0,class:Object(Y["normalizeClass"])(Object(Y["unref"])(D).e("prefix"))},[Object(Y["createElementVNode"])("span",{class:Object(Y["normalizeClass"])(Object(Y["unref"])(D).e("prefix-inner"))},[Object(Y["renderSlot"])(t.$slots,"prefix"),e.prefixIcon?(Object(Y["openBlock"])(),Object(Y["createBlock"])(Object(Y["unref"])(y["a"]),{key:0,class:Object(Y["normalizeClass"])(Object(Y["unref"])(D).e("icon"))},{default:Object(Y["withCtx"])(()=>[(Object(Y["openBlock"])(),Object(Y["createBlock"])(Object(Y["resolveDynamicComponent"])(e.prefixIcon)))]),_:1},8,["class"])):Object(Y["createCommentVNode"])("v-if",!0)],2)],2)):Object(Y["createCommentVNode"])("v-if",!0),Object(Y["createElementVNode"])("input",Object(Y["mergeProps"])({id:Object(Y["unref"])(I),ref_key:"input",ref:A,class:Object(Y["unref"])(D).e("inner")},Object(Y["unref"])(c),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?x.value?"text":"password":e.type,disabled:Object(Y["unref"])(j),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:n[0]||(n[0]=(...e)=>Object(Y["unref"])(Me)&&Object(Y["unref"])(Me)(...e)),onCompositionupdate:n[1]||(n[1]=(...e)=>Object(Y["unref"])(ke)&&Object(Y["unref"])(ke)(...e)),onCompositionend:n[2]||(n[2]=(...e)=>Object(Y["unref"])(Ce)&&Object(Y["unref"])(Ce)(...e)),onInput:be,onChange:ye,onKeydown:je}),null,16,z),Object(Y["createCommentVNode"])(" suffix slot "),ue.value?(Object(Y["openBlock"])(),Object(Y["createElementBlock"])("span",{key:1,class:Object(Y["normalizeClass"])(Object(Y["unref"])(D).e("suffix"))},[Object(Y["createElementVNode"])("span",{class:Object(Y["normalizeClass"])(Object(Y["unref"])(D).e("suffix-inner"))},[ae.value&&ie.value&&se.value?Object(Y["createCommentVNode"])("v-if",!0):(Object(Y["openBlock"])(),Object(Y["createElementBlock"])(Y["Fragment"],{key:0},[Object(Y["renderSlot"])(t.$slots,"suffix"),e.suffixIcon?(Object(Y["openBlock"])(),Object(Y["createBlock"])(Object(Y["unref"])(y["a"]),{key:0,class:Object(Y["normalizeClass"])(Object(Y["unref"])(D).e("icon"))},{default:Object(Y["withCtx"])(()=>[(Object(Y["openBlock"])(),Object(Y["createBlock"])(Object(Y["resolveDynamicComponent"])(e.suffixIcon)))]),_:1},8,["class"])):Object(Y["createCommentVNode"])("v-if",!0)],64)),ae.value?(Object(Y["openBlock"])(),Object(Y["createBlock"])(Object(Y["unref"])(y["a"]),{key:1,class:Object(Y["normalizeClass"])([Object(Y["unref"])(D).e("icon"),Object(Y["unref"])(D).e("clear")]),onMousedown:Object(Y["withModifiers"])(Object(Y["unref"])(p["NOOP"]),["prevent"]),onClick:Le},{default:Object(Y["withCtx"])(()=>[(Object(Y["openBlock"])(),Object(Y["createBlock"])(Object(Y["resolveDynamicComponent"])(e.clearIcon)))]),_:1},8,["class","onMousedown"])):Object(Y["createCommentVNode"])("v-if",!0),ie.value?(Object(Y["openBlock"])(),Object(Y["createBlock"])(Object(Y["unref"])(y["a"]),{key:2,class:Object(Y["normalizeClass"])([Object(Y["unref"])(D).e("icon"),Object(Y["unref"])(D).e("password")]),onClick:we,onMousedown:Object(Y["withModifiers"])(Object(Y["unref"])(p["NOOP"]),["prevent"]),onMouseup:Object(Y["withModifiers"])(Object(Y["unref"])(p["NOOP"]),["prevent"])},{default:Object(Y["withCtx"])(()=>[Object(Y["renderSlot"])(t.$slots,"password-icon",{visible:x.value},()=>[(Object(Y["openBlock"])(),Object(Y["createBlock"])(Object(Y["resolveDynamicComponent"])(te.value)))])]),_:3},8,["class","onMousedown","onMouseup"])):Object(Y["createCommentVNode"])("v-if",!0),se.value?(Object(Y["openBlock"])(),Object(Y["createElementBlock"])("span",{key:3,class:Object(Y["normalizeClass"])([Object(Y["unref"])(D).e("count"),Object(Y["unref"])(D).is("outside","outside"===e.wordLimitPosition)])},[Object(Y["createElementVNode"])("span",{class:Object(Y["normalizeClass"])(Object(Y["unref"])(D).e("count-inner"))},Object(Y["toDisplayString"])(ce.value)+" / "+Object(Y["toDisplayString"])(e.maxlength),3)],2)):Object(Y["createCommentVNode"])("v-if",!0),Z.value&&ee.value&&Q.value?(Object(Y["openBlock"])(),Object(Y["createBlock"])(Object(Y["unref"])(y["a"]),{key:4,class:Object(Y["normalizeClass"])([Object(Y["unref"])(D).e("icon"),Object(Y["unref"])(D).e("validateIcon"),Object(Y["unref"])(D).is("loading","validating"===Z.value)])},{default:Object(Y["withCtx"])(()=>[(Object(Y["openBlock"])(),Object(Y["createBlock"])(Object(Y["resolveDynamicComponent"])(ee.value)))]),_:1},8,["class"])):Object(Y["createCommentVNode"])("v-if",!0)],2)],2)):Object(Y["createCommentVNode"])("v-if",!0)],2),Object(Y["createCommentVNode"])(" append slot "),t.$slots.append?(Object(Y["openBlock"])(),Object(Y["createElementBlock"])("div",{key:1,class:Object(Y["normalizeClass"])(Object(Y["unref"])(D).be("group","append"))},[Object(Y["renderSlot"])(t.$slots,"append")],2)):Object(Y["createCommentVNode"])("v-if",!0)],64)):(Object(Y["openBlock"])(),Object(Y["createElementBlock"])(Y["Fragment"],{key:1},[Object(Y["createCommentVNode"])(" textarea "),Object(Y["createElementVNode"])("textarea",Object(Y["mergeProps"])({id:Object(Y["unref"])(I),ref_key:"textarea",ref:N,class:[Object(Y["unref"])(L).e("inner"),Object(Y["unref"])(D).is("focus",Object(Y["unref"])($)),Object(Y["unref"])(L).is("clearable",e.clearable)]},Object(Y["unref"])(c),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:Object(Y["unref"])(j),readonly:e.readonly,autocomplete:e.autocomplete,style:re.value,"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:n[3]||(n[3]=(...e)=>Object(Y["unref"])(Me)&&Object(Y["unref"])(Me)(...e)),onCompositionupdate:n[4]||(n[4]=(...e)=>Object(Y["unref"])(ke)&&Object(Y["unref"])(ke)(...e)),onCompositionend:n[5]||(n[5]=(...e)=>Object(Y["unref"])(Ce)&&Object(Y["unref"])(Ce)(...e)),onInput:be,onFocus:n[6]||(n[6]=(...e)=>Object(Y["unref"])(J)&&Object(Y["unref"])(J)(...e)),onBlur:n[7]||(n[7]=(...e)=>Object(Y["unref"])(X)&&Object(Y["unref"])(X)(...e)),onChange:ye,onKeydown:je}),null,16,q),ae.value?(Object(Y["openBlock"])(),Object(Y["createBlock"])(Object(Y["unref"])(y["a"]),{key:0,class:Object(Y["normalizeClass"])([Object(Y["unref"])(L).e("icon"),Object(Y["unref"])(L).e("clear")]),onMousedown:Object(Y["withModifiers"])(Object(Y["unref"])(p["NOOP"]),["prevent"]),onClick:Le},{default:Object(Y["withCtx"])(()=>[(Object(Y["openBlock"])(),Object(Y["createBlock"])(Object(Y["resolveDynamicComponent"])(e.clearIcon)))]),_:1},8,["class","onMousedown"])):Object(Y["createCommentVNode"])("v-if",!0),se.value?(Object(Y["openBlock"])(),Object(Y["createElementBlock"])("span",{key:1,style:Object(Y["normalizeStyle"])(P.value),class:Object(Y["normalizeClass"])([Object(Y["unref"])(D).e("count"),Object(Y["unref"])(D).is("outside","outside"===e.wordLimitPosition)])},Object(Y["toDisplayString"])(ce.value)+" / "+Object(Y["toDisplayString"])(e.maxlength),7)):Object(Y["createCommentVNode"])("v-if",!0)],64))],38))}}),$=K;const J=Object(r["a"])($)},c3ae:function(e,t,n){"use strict";e.exports=Math.round},c3e0:function(e,t,n){"use strict";var r,o=n("f9ae"),a=n("2aa9");try{r=[].__proto__===Array.prototype}catch(l){if(!l||"object"!==typeof l||!("code"in l)||"ERR_PROTO_ACCESS"!==l.code)throw l}var i=!!r&&a&&a(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=i&&"function"===typeof i.get?o([i.get]):"function"===typeof c&&function(e){return c(null==e?e:s(e))}},c401:function(e,t,n){"use strict";var r=n("c532"),o=n("4c3d");e.exports=function(e,t,n){var a=this||o;return r.forEach(n,(function(n){e=n.call(a,e,t)})),e}},c430:function(e,t,n){"use strict";e.exports=!1},c44a:function(e,t,n){"use strict";n("9103"),n("6f89"),n("997e"),n("3ed8"),n("d6ab");var r=n("764b");e.exports=r.WeakMap},c44e:function(e,t,n){"use strict";e.exports=function(){}},c52e:function(e,t,n){e.exports=n("f8cb")},c532:function(e,t,n){"use strict";var r=n("1d2b"),o=Object.prototype.toString;function a(e){return Array.isArray(e)}function i(e){return"undefined"===typeof e}function s(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function c(e){return"[object ArrayBuffer]"===o.call(e)}function l(e){return"[object FormData]"===o.call(e)}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer),t}function d(e){return"string"===typeof e}function p(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function h(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function m(e){return"[object Date]"===o.call(e)}function v(e){return"[object File]"===o.call(e)}function g(e){return"[object Blob]"===o.call(e)}function _(e){return"[object Function]"===o.call(e)}function b(e){return f(e)&&_(e.pipe)}function y(e){return"[object URLSearchParams]"===o.call(e)}function O(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function M(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function k(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function C(){var e={};function t(t,n){h(e[n])&&h(t)?e[n]=C(e[n],t):h(t)?e[n]=C({},t):a(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)k(arguments[n],t);return e}function w(e,t,n){return k(t,(function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t})),e}function S(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:a,isArrayBuffer:c,isBuffer:s,isFormData:l,isArrayBufferView:u,isString:d,isNumber:p,isObject:f,isPlainObject:h,isUndefined:i,isDate:m,isFile:v,isBlob:g,isFunction:_,isStream:b,isURLSearchParams:y,isStandardBrowserEnv:M,forEach:k,merge:C,extend:w,trim:O,stripBOM:S}},c5a8:function(e,t,n){"use strict";n("033d"),n("8861")},c5c4:function(e,t,n){"use strict";n("386d");var r=n("c18e");e.exports=r("Array","lastIndexOf")},c5cc:function(e,t,n){"use strict";var r=n("c65b"),o=n("7c73"),a=n("9112"),i=n("6964"),s=n("b622"),c=n("69f3"),l=n("dc4a"),u=n("ae93").IteratorPrototype,d=n("4754"),p=n("2a62"),f=n("b64e"),h=s("toStringTag"),m="IteratorHelper",v="WrapForValidIterator",g="normal",_="throw",b=c.set,y=function(e){var t=c.getterFor(e?v:m);return i(o(u),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:d(r,n.done)}catch(o){throw n.done=!0,o}},return:function(){var n=t(this),o=n.iterator,a=n.done;if(n.done=!0,e){var i=l(o,"return");return i?r(i,o):d(void 0,!0)}if(a)return d(void 0,!0);if(n.inner)try{p(n.inner.iterator,g)}catch(s){return p(o,_,s)}if(n.openIters)try{f(n.openIters,g)}catch(s){if(o)return p(o,_,s);throw s}return o&&p(o,g),d(void 0,!0)}})},O=y(!0),M=y(!1);a(M,h,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,o){o?(o.iterator=r.iterator,o.next=r.next):o=r,o.type=t?v:m,o.returnHandlerResult=!!n,o.nextHandler=e,o.counter=0,o.done=!1,b(this,o)};return r.prototype=t?O:M,r}},c651:function(e,t,n){e.exports=n("5d55")},c65b:function(e,t,n){"use strict";var r=n("40d5"),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},c6b6:function(e,t,n){"use strict";var r=n("e330"),o=r({}.toString),a=r("".slice);e.exports=function(e){return a(o(e),8,-1)}},c6cd:function(e,t,n){"use strict";var r=n("c430"),o=n("cfe9"),a=n("6374"),i="__core-js_shared__",s=e.exports=o[i]||a(i,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 20132025 Denis Pushkarev (zloirock.ru), 20252026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},c6f1:function(e,t,n){"use strict";var r=n("a5eb"),o=n("71dc"),a=n("ea55"),i=n("1471"),s=!i("union")||!a("union");r({target:"Set",proto:!0,real:!0,forced:s},{union:o})},c73d:function(e,t,n){"use strict";var r=n("23e7"),o=n("cfe9"),a=n("edd0"),i=n("83ab"),s=TypeError,c=Object.defineProperty,l=o.self!==o;try{if(i){var u=Object.getOwnPropertyDescriptor(o,"self");!l&&u&&u.get&&u.enumerable||a(o,"self",{get:function(){return o},set:function(e){if(this!==o)throw new s("Illegal invocation");c(o,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:l},{self:o})}catch(d){}},c741:function(e,t,n){"use strict";var r=n("acf5"),o=n("7c78"),a=n("2d80"),i=this&&this.__createBinding||(r?function(e,t,n,r){void 0===r&&(r=n);var i=o(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),a(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};a(t,"__esModule",{value:!0}),s(n("740b"),t),s(n("fc75"),t),s(n("a0bf7"),t),s(n("bd7d"),t),s(n("aeaa"),t),s(n("4af5"),t),s(n("f512"),t),s(n("daed"),t),s(n("d756"),t)},c74f:function(e,t,n){"use strict";var r=n("6725");e.exports=function(e){return r(e.length)}},c751:function(e,t,n){e.exports=n("a94a")},c76c:function(e,t,n){e.exports=n("1fb7")},c799:function(e,t,n){"use strict";var r=n("a5eb"),o=n("7106"),a=n("4e19"),i=n("ad27"),s=n("9b8d"),c=n("5b57"),l=n("f135");r({target:"Promise",stat:!0,forced:l},{race:function(e){var t=this,n=i.f(t),r=n.reject,l=s((function(){var i=a(t.resolve);c(e,(function(e){o(i,t,e).then(n.resolve,r)}))}));return l.error&&r(l.value),n.promise}})},c79f:function(e,t,n){"use strict";n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return C})),n.d(t,"e",(function(){return w})),n.d(t,"f",(function(){return M}));n("14d9");var r=n("c52e"),o=n.n(r),a=n("9a73"),i=n.n(a),s=n("298b"),c=n.n(s),l=n("3002"),u=n.n(l),d=n("9885"),p=n("0931");function f(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}var h=n("83ec"),m=n("7d20"),v=n("5a8b"),g=n("0e69");const _=(e,t)=>{var n;if(!p["isClient"])return!1;const r={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],a=Object(g["c"])(e,r);return o()(n=["scroll","auto","overlay"]).call(n,e=>i()(a).call(a,e))},b=(e,t)=>{if(!p["isClient"])return;let n=e;while(n){var r;if(i()(r=[window,document,document.documentElement]).call(r,n))return window;if(_(n,t))return n;n=Object(d["f"])(n)?n.host:n.parentNode}return n};let y;const O=e=>{var t;if(!p["isClient"])return 0;if(void 0!==y)return y;const n=document.createElement("div");n.className=e+"-scrollbar__wrap",n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const a=o.offsetWidth;return null===(t=n.parentNode)||void 0===t||t.removeChild(n),y=r-a,y};function M(e,t){if(!p["isClient"])return;if(!t)return void(e.scrollTop=0);const n=[];let r=t.offsetParent;while(null!==r&&e!==r&&e.contains(r))n.push(r),r=r.offsetParent;const o=t.offsetTop+c()(n).call(n,(e,t)=>e+t.offsetTop,0),a=o+t.offsetHeight,i=e.scrollTop,s=i+e.clientHeight;o<i?e.scrollTop=o:a>s&&(e.scrollTop=a-e.clientHeight)}function k(e,t,n,r,o){const a=u()();let i;const s=()=>{const c=u()()-a,l=f(c>r?r:c,t,n,r);Object(h["h"])(e)?e.scrollTo(window.pageXOffset,l):e.scrollTop=l,c<r?i=Object(v["b"])(s):Object(m["isFunction"])(o)&&o()};return s(),()=>{i&&Object(v["a"])(i)}}const C=(e,t)=>Object(h["h"])(t)?e.ownerDocument.documentElement:t,w=e=>Object(h["h"])(e)?window.scrollY:e.scrollTop},c7aa:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10===0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}});return t}))},c7d2:function(e,t,n){"use strict";var r=n("5495");e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},c812:function(e,t,n){"use strict";var r=n("a5eb"),o=n("4bf3").entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},c81f:function(e,t,n){"use strict";var r=n("a5eb"),o=n("ce18"),a=n("9e51"),i=n("1875"),s=n("8c12"),c=n("8c58"),l=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~l(s(i(this)),s(a(e)),arguments.length>1?arguments[1]:void 0)}})},c84f:function(e,t,n){"use strict";var r=n("3a40"),o=n("99fa"),a=r.Set,i=r.add;e.exports=function(e){var t=new a;return o(e,(function(e){i(t,e)})),t}},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},c8e8:function(e,t,n){"use strict";var r=n("ce18"),o=n("bc4a"),a=n("6594").getWeakData,i=n("5f7d"),s=n("6f8d"),c=n("0b1d"),l=n("dfdb"),u=n("5b57"),d=n("dee0"),p=n("0e6f"),f=n("2f5a"),h=f.set,m=f.getterFor,v=d.find,g=d.findIndex,_=r([].splice),b=0,y=function(e){return e.frozen||(e.frozen=new O)},O=function(){this.entries=[]},M=function(e,t){return v(e.entries,(function(e){return e[0]===t}))};O.prototype={get:function(e){var t=M(this,e);if(t)return t[1]},has:function(e){return!!M(this,e)},set:function(e,t){var n=M(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&_(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var d=e((function(e,o){i(e,f),h(e,{type:t,id:b++,frozen:null}),c(o)||u(o,e[r],{that:e,AS_ENTRIES:n})})),f=d.prototype,v=m(t),g=function(e,t,n){var r=v(e),o=a(s(t),!0);return!0===o?y(r).set(t,n):o[r.id]=n,e};return o(f,{delete:function(e){var t=v(this);if(!l(e))return!1;var n=a(e);return!0===n?y(t)["delete"](e):n&&p(n,t.id)&&delete n[t.id]},has:function(e){var t=v(this);if(!l(e))return!1;var n=a(e);return!0===n?y(t).has(e):n&&p(n,t.id)}}),o(f,n?{get:function(e){var t=v(this);if(l(e)){var n=a(e);if(!0===n)return y(t).get(e);if(n)return n[t.id]}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),d}}},c8f3:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},c90a:function(e,t,n){e.exports=n("f257")},c978:function(e,t,n){"use strict";var r=n("9883"),o=n("fb2d"),a=n("437b"),i=n("62d0"),s=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&a(t.prototype,s(e))}},c9a1:function(e,t,n){"use strict";n.d(t,"a",(function(){return W}));var r=n("505e"),o=n.n(r),a=n("3818"),i=n.n(a),s=n("4573"),c=n.n(s),l=n("e76e"),u=n.n(l),d=n("0931"),p=n("7d20"),f=n("83ec"),h=n("8afb"),m=n("bd01"),v=n("31e7"),g=n("5a89"),_=n("be44"),b=n("7190"),y=n("89d4"),O=n("35b0"),M=n("54bb"),k=n("7cf3"),C=n("c349"),w=n("edd9"),S=n("cf2e"),T=n("a409"),I=n("d5f6"),E=n("9ad7"),j=n("7a23"),D=Object(j["defineComponent"])({name:"ElMessageBox",directives:{TrapFocus:T["a"]},components:{ElButton:S["a"],ElFocusTrap:k["a"],ElInput:C["a"],ElOverlay:I["a"],ElIcon:M["a"],...v["b"]},inheritAttrs:!1,props:{buttonSize:{type:String,validator:g["a"]},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:o,size:a}=Object(w["b"])("message-box",Object(j["computed"])(()=>e.buttonSize)),{t:i}=n,{nextZIndex:s}=r,c=Object(j["ref"])(!1),l=Object(j["reactive"])({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Object(j["markRaw"])(E["Loading"]),cancelButtonLoadingIcon:Object(j["markRaw"])(E["Loading"]),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),u=Object(j["computed"])(()=>{const e=l.type;return{[o.bm("icon",e)]:e&&v["c"][e]}}),d=Object(O["a"])(),f=Object(O["a"])(),h=Object(j["computed"])(()=>{const e=l.type;return l.icon||e&&v["c"][e]||""}),m=Object(j["computed"])(()=>!!l.message),g=Object(j["ref"])(),M=Object(j["ref"])(),k=Object(j["ref"])(),C=Object(j["ref"])(),S=Object(j["ref"])(),T=Object(j["computed"])(()=>l.confirmButtonClass);Object(j["watch"])(()=>l.inputValue,async t=>{await Object(j["nextTick"])(),"prompt"===e.boxType&&t&&x()},{immediate:!0}),Object(j["watch"])(()=>c.value,t=>{var n,r;t&&("prompt"!==e.boxType&&(l.autofocus?k.value=null!==(n=null===(r=S.value)||void 0===r?void 0:r.$el)&&void 0!==n?n:g.value:k.value=g.value),l.zIndex=s());"prompt"===e.boxType&&(t?Object(j["nextTick"])().then(()=>{var e;C.value&&C.value.$el&&(l.autofocus?k.value=null!==(e=P())&&void 0!==e?e:g.value:k.value=g.value)}):(l.editorErrorMessage="",l.validateError=!1))});const{isDragging:I}=Object(_["a"])(g,M,Object(j["computed"])(()=>e.draggable),Object(j["computed"])(()=>e.overflow));function D(){c.value&&(c.value=!1,Object(j["nextTick"])(()=>{l.action&&t("action",l.action)}))}Object(j["onMounted"])(async()=>{await Object(j["nextTick"])(),e.closeOnHashChange&&window.addEventListener("hashchange",D)}),Object(j["onBeforeUnmount"])(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",D)});const L=()=>{e.closeOnClickModal&&R(l.distinguishCancelAndClose?"close":"cancel")},A=Object(y["a"])(L),N=e=>{var t;if("textarea"!==l.inputType&&(null===(t=C.value)||void 0===t||!t.isComposing))return e.preventDefault(),R("confirm")},R=t=>{var n;("prompt"!==e.boxType||"confirm"!==t||x())&&(l.action=t,l.beforeClose?null===(n=l.beforeClose)||void 0===n||n.call(l,t,l,D):D())},x=()=>{if("prompt"===e.boxType){const e=l.inputPattern;if(e&&!e.test(l.inputValue||""))return l.editorErrorMessage=l.inputErrorMessage||i("el.messagebox.error"),l.validateError=!0,!1;const t=l.inputValidator;if(Object(p["isFunction"])(t)){const e=t(l.inputValue);if(!1===e)return l.editorErrorMessage=l.inputErrorMessage||i("el.messagebox.error"),l.validateError=!0,!1;if(Object(p["isString"])(e))return l.editorErrorMessage=e,l.validateError=!0,!1}}return l.editorErrorMessage="",l.validateError=!1,!0},P=()=>{var e,t;const n=null===(e=C.value)||void 0===e?void 0:e.$refs;return null!==(t=null===n||void 0===n?void 0:n.input)&&void 0!==t?t:null===n||void 0===n?void 0:n.textarea},U=()=>{R("close")},V=()=>{e.closeOnPressEscape&&U()};return e.lockScroll&&Object(b["a"])(c,{ns:o}),{...Object(j["toRefs"])(l),ns:o,overlayEvent:A,visible:c,hasMessage:m,typeClass:u,contentId:d,inputId:f,btnSize:a,iconComponent:h,confirmButtonClasses:T,rootRef:g,focusStartRef:k,headerRef:M,inputRef:C,isDragging:I,confirmRef:S,doClose:D,handleClose:U,onCloseRequested:V,handleWrapperClick:L,handleInputEnter:N,handleAction:R,t:i}}});const L=["aria-label","aria-describedby"],A=["aria-label"],N=["id"];function R(e,t,n,r,o,a){const i=Object(j["resolveComponent"])("el-icon"),s=Object(j["resolveComponent"])("el-input"),c=Object(j["resolveComponent"])("el-button"),l=Object(j["resolveComponent"])("el-focus-trap"),u=Object(j["resolveComponent"])("el-overlay");return Object(j["openBlock"])(),Object(j["createBlock"])(j["Transition"],{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=t=>e.$emit("vanish")),persisted:""},{default:Object(j["withCtx"])(()=>[Object(j["withDirectives"])(Object(j["createVNode"])(u,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:Object(j["withCtx"])(()=>[Object(j["createElementVNode"])("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:Object(j["normalizeClass"])(e.ns.namespace.value+"-overlay-message-box"),onClick:t[8]||(t[8]=(...t)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...t)),onMousedown:t[9]||(t[9]=(...t)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...t)),onMouseup:t[10]||(t[10]=(...t)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...t))},[Object(j["createVNode"])(l,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Object(j["withCtx"])(()=>[Object(j["createElementVNode"])("div",{ref:"rootRef",class:Object(j["normalizeClass"])([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:Object(j["normalizeStyle"])(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Object(j["withModifiers"])(()=>{},["stop"]))},[null!==e.title&&void 0!==e.title?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:0,ref:"headerRef",class:Object(j["normalizeClass"])([e.ns.e("header"),{"show-close":e.showClose}])},[Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(e.ns.e("title"))},[e.iconComponent&&e.center?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:0,class:Object(j["normalizeClass"])([e.ns.e("status"),e.typeClass])},{default:Object(j["withCtx"])(()=>[(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.iconComponent)))]),_:1},8,["class"])):Object(j["createCommentVNode"])("v-if",!0),Object(j["createElementVNode"])("span",null,Object(j["toDisplayString"])(e.title),1)],2),e.showClose?(Object(j["openBlock"])(),Object(j["createElementBlock"])("button",{key:0,type:"button",class:Object(j["normalizeClass"])(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Object(j["withKeys"])(Object(j["withModifiers"])(t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[Object(j["createVNode"])(i,{class:Object(j["normalizeClass"])(e.ns.e("close"))},{default:Object(j["withCtx"])(()=>[(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.closeIcon||"close")))]),_:1},8,["class"])],42,A)):Object(j["createCommentVNode"])("v-if",!0)],2)):Object(j["createCommentVNode"])("v-if",!0),Object(j["createElementVNode"])("div",{id:e.contentId,class:Object(j["normalizeClass"])(e.ns.e("content"))},[Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:0,class:Object(j["normalizeClass"])([e.ns.e("status"),e.typeClass])},{default:Object(j["withCtx"])(()=>[(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.iconComponent)))]),_:1},8,["class"])):Object(j["createCommentVNode"])("v-if",!0),e.hasMessage?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:1,class:Object(j["normalizeClass"])(e.ns.e("message"))},[Object(j["renderSlot"])(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:Object(j["toDisplayString"])(e.message)},null,8,["for","textContent"]))])],2)):Object(j["createCommentVNode"])("v-if",!0)],2),Object(j["withDirectives"])(Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(e.ns.e("input"))},[Object(j["createVNode"])(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=t=>e.inputValue=t),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:Object(j["normalizeClass"])({invalid:e.validateError}),onKeydown:Object(j["withKeys"])(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(e.ns.e("errormsg")),style:Object(j["normalizeStyle"])({visibility:e.editorErrorMessage?"visible":"hidden"})},Object(j["toDisplayString"])(e.editorErrorMessage),7)],2),[[j["vShow"],e.showInput]])],10,N),Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(e.ns.e("btns"))},[e.showCancelButton?(Object(j["openBlock"])(),Object(j["createBlock"])(c,{key:0,type:"text"===e.cancelButtonType?"":e.cancelButtonType,text:"text"===e.cancelButtonType,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:Object(j["normalizeClass"])([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=t=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Object(j["withKeys"])(Object(j["withModifiers"])(t=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:Object(j["withCtx"])(()=>[Object(j["createTextVNode"])(Object(j["toDisplayString"])(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):Object(j["createCommentVNode"])("v-if",!0),Object(j["withDirectives"])(Object(j["createVNode"])(c,{ref:"confirmRef",type:"text"===e.confirmButtonType?"":e.confirmButtonType,text:"text"===e.confirmButtonType,loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:Object(j["normalizeClass"])([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=t=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Object(j["withKeys"])(Object(j["withModifiers"])(t=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:Object(j["withCtx"])(()=>[Object(j["createTextVNode"])(Object(j["toDisplayString"])(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[j["vShow"],e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,L)]),_:3},8,["z-index","overlay-class","mask"]),[[j["vShow"],e.visible]])]),_:3})}var x=Object(m["a"])(D,[["render",R]]);const P=new o.a,U=e=>{let t=document.body;return e.appendTo&&(Object(p["isString"])(e.appendTo)&&(t=document.querySelector(e.appendTo)),Object(f["b"])(e.appendTo)&&(t=e.appendTo),Object(f["b"])(t)||(Object(h["a"])("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},V=(e,t,n=null)=>{const r=Object(j["createVNode"])(x,e,Object(p["isFunction"])(e.message)||Object(j["isVNode"])(e.message)?{default:Object(p["isFunction"])(e.message)?e.message:()=>e.message}:null);return r.appContext=n,Object(j["render"])(r,t),U(e).appendChild(t.firstElementChild),r.component},B=()=>document.createElement("div"),F=(e,t)=>{const n=B();e.onVanish=()=>{Object(j["render"])(null,n),P.delete(o)},e.onAction=t=>{const n=P.get(o);let a;a=e.showInput?{value:o.inputValue,action:t}:t,e.callback?e.callback(a,r.proxy):"cancel"===t||"close"===t?e.distinguishCancelAndClose&&"cancel"!==t?n.reject("close"):n.reject("cancel"):n.resolve(a)};const r=V(e,n,t),o=r.proxy;for(const a in e)Object(p["hasOwn"])(e,a)&&!Object(p["hasOwn"])(o.$props,a)&&("closeIcon"===a&&Object(p["isObject"])(e[a])?o[a]=Object(j["markRaw"])(e[a]):o[a]=e[a]);return o.visible=!0,o};function G(e,t=null){if(!d["isClient"])return i.a.reject();let n;return Object(p["isString"])(e)||Object(j["isVNode"])(e)?e={message:e}:n=e.callback,new i.a((r,o)=>{const a=F(e,null!==t&&void 0!==t?t:G._context);P.set(a,{options:e,callback:n,resolve:r,reject:o})})}const H=["alert","confirm","prompt"],Y={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};function z(e){return(t,n,r,o)=>{let a="";return Object(p["isObject"])(n)?(r=n,a=""):a=Object(f["g"])(n)?"":n,G(u()({title:a,message:t,type:"",...Y[e]},r,{boxType:e}),o)}}c()(H).call(H,e=>{G[e]=z(e)}),G.close=()=>{c()(P).call(P,(e,t)=>{t.doClose()}),P.clear()},G._context=null;const q=G;q.install=e=>{q._context=e._context,e.config.globalProperties.$msgbox=q,e.config.globalProperties.$messageBox=q,e.config.globalProperties.$alert=q.alert,e.config.globalProperties.$confirm=q.confirm,e.config.globalProperties.$prompt=q.prompt};const W=q},c9ac:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n("a3e3"),o=n.n(r),a=n("e4f0"),i=n.n(a),s=n("8b9c"),c=n.n(s),l=n("9a73"),u=n.n(l),d=n("8afb"),p=n("d095"),f=n("7a23");const h=["class","style"],m=/^on[A-Z]/,v=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=Object(f["computed"])(()=>{var e;return o()(e=(null===n||void 0===n?void 0:n.value)||[]).call(e,h)}),a=Object(f["getCurrentInstance"])();return a?Object(f["computed"])(()=>{var e,n;return Object(p["fromPairs"])(i()(e=c()(null===(n=a.proxy)||void 0===n?void 0:n.$attrs)).call(e,([e])=>{var n;return!u()(n=r.value).call(n,e)&&!(t&&m.test(e))}))}):(Object(d["a"])("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),Object(f["computed"])(()=>({})))}},c9d2:function(e,t,n){"use strict";var r=n("437b"),o=n("1db3"),a=Array.prototype;e.exports=function(e){var t=e.flat;return e===a||r(a,e)&&t===a.flat?o:t}},ca15:function(e,t,n){"use strict";n("5145");var r=n("8f95"),o=n("0e6f"),a=n("437b"),i=n("1e54"),s=Array.prototype,c={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.values;return e===s||a(s,e)&&t===s.values||o(c,r(e))?i:t}},ca84:function(e,t,n){"use strict";var r=n("e330"),o=n("1a2d"),a=n("fc6a"),i=n("4d64").indexOf,s=n("d012"),c=r([].push);e.exports=function(e,t){var n,r=a(e),l=0,u=[];for(n in r)!o(s,n)&&o(r,n)&&c(u,n);while(t.length>l)o(r,n=t[l++])&&(~i(u,n)||c(u,n));return u}},cafa:function(e,t,n){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},cb2d:function(e,t,n){"use strict";var r=n("1626"),o=n("9bf2"),a=n("13d2"),i=n("6374");e.exports=function(e,t,n,s){s||(s={});var c=s.enumerable,l=void 0!==s.name?s.name:t;if(r(n)&&a(n,l,s),s.global)c?e[t]=n:i(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(u){}c?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},cbd0:function(e,t,n){"use strict";var r=n("ce18"),o=n("c7d2"),a=n("8c12"),i=n("1875"),s=r("".charAt),c=r("".charCodeAt),l=r("".slice),u=function(e){return function(t,n){var r,u,d=a(i(t)),p=o(n),f=d.length;return p<0||p>=f?e?"":void 0:(r=c(d,p),r<55296||r>56319||p+1===f||(u=c(d,p+1))<56320||u>57343?e?s(d,p):r:e?l(d,p,p+2):u-56320+(r-55296<<10)+65536)}};e.exports={codeAt:u(!1),charAt:u(!0)}},cc12:function(e,t,n){"use strict";var r=n("cfe9"),o=n("861d"),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},cca4:function(e,t,n){e.exports=n("2d9a")},cce9:function(e,t,n){"use strict";var r=n("3eba"),o=n("fb2d"),a=r.WeakMap;e.exports=o(a)&&/native code/.test(String(a))},ccf1:function(e,t,n){"use strict";var r=n("2714"),o=n("0d25"),a=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r},i=function(e,t){if(e){var n=a(e,t);return n&&n.value}},s=function(e,t,n){var r=a(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},c=function(e,t){return!!e&&!!a(e,t)},l=function(e,t){if(e)return a(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=l(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return i(e,t)},has:function(t){return c(e,t)},set:function(t,n){e||(e={next:void 0}),s(e,t,n)}};return t}},cd24:function(e,t,n){"use strict";var r=n("2c0f");e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},cdb4:function(e,t,n){"use strict";var r=n("d65d");e.exports=r},cdce:function(e,t,n){"use strict";var r=n("cfe9"),o=n("1626"),a=r.WeakMap;e.exports=o(a)&&/native code/.test(String(a))},ce18:function(e,t,n){"use strict";var r=n("a180"),o=Function.prototype,a=o.call,i=r&&o.bind.bind(a,a);e.exports=r?i:function(e){return function(){return a.apply(e,arguments)}}},ceb3:function(e,t,n){"use strict";var r=n("22a1");e.exports=r},cee4:function(e,t,n){"use strict";var r=n("c532"),o=n("1d2b"),a=n("0a06"),i=n("4a7b"),s=n("4c3d");function c(e){var t=new a(e),n=o(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n.create=function(t){return c(i(e,t))},n}var l=c(s);l.Axios=a,l.Cancel=n("7a77"),l.CancelToken=n("8df4b"),l.isCancel=n("2e67"),l.VERSION=n("5cce").version,l.all=function(e){return Promise.all(e)},l.spread=n("0df6"),l.isAxiosError=n("5f02"),e.exports=l,e.exports.default=l},cf1e:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10===1?t[0]:t[1]:t[2]},translate:function(e,n,r,o){var a,i=t.words[r];return 1===r.length?"y"===r&&n?"jedna godina":o||n?i[0]:i[1]:(a=t.correctGrammaticalCase(e,i),"yy"===r&&n&&"godinu"===a?e+" godina":e+" "+a)}},n=e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},cf2e:function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return S}));var r=n("0c24"),o=n("304f"),a=n("54bb"),i=n("446f"),s=n("44a4"),c=n.n(s),l=n("344d"),u=n("4bea"),d=n("8cf4"),p=n("edd9"),f=n("b83a"),h=n("7a23");const m=(e,t)=>{Object(l["a"])({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},Object(h["computed"])(()=>"text"===e.type));const n=Object(h["inject"])(f["a"],void 0),r=Object(p["c"])("button"),{form:o}=Object(d["a"])(),a=Object(u["b"])(Object(h["computed"])(()=>null===n||void 0===n?void 0:n.size)),i=Object(u["a"])(),s=Object(h["ref"])(),m=Object(h["useSlots"])(),v=Object(h["computed"])(()=>{var t;return e.type||(null===n||void 0===n?void 0:n.type)||(null===(t=r.value)||void 0===t?void 0:t.type)||""}),g=Object(h["computed"])(()=>{var t,n,o;return null!==(t=null!==(n=e.autoInsertSpace)&&void 0!==n?n:null===(o=r.value)||void 0===o?void 0:o.autoInsertSpace)&&void 0!==t&&t}),_=Object(h["computed"])(()=>{var t,n,o;return null!==(t=null!==(n=e.plain)&&void 0!==n?n:null===(o=r.value)||void 0===o?void 0:o.plain)&&void 0!==t&&t}),b=Object(h["computed"])(()=>{var t,n,o;return null!==(t=null!==(n=e.round)&&void 0!==n?n:null===(o=r.value)||void 0===o?void 0:o.round)&&void 0!==t&&t}),y=Object(h["computed"])(()=>{var t,n,o;return null!==(t=null!==(n=e.text)&&void 0!==n?n:null===(o=r.value)||void 0===o?void 0:o.text)&&void 0!==t&&t}),O=Object(h["computed"])(()=>{var t,n,o;return null!==(t=null!==(n=e.dashed)&&void 0!==n?n:null===(o=r.value)||void 0===o?void 0:o.dashed)&&void 0!==t&&t}),M=Object(h["computed"])(()=>"button"===e.tag?{ariaDisabled:i.value||e.loading,disabled:i.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),k=Object(h["computed"])(()=>{var e;const t=null===(e=m.default)||void 0===e?void 0:e.call(m);if(g.value&&1===(null===t||void 0===t?void 0:t.length)){const e=t[0];if((null===e||void 0===e?void 0:e.type)===h["Text"]){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(c()(t).call(t))}}return!1}),C=n=>{i.value||e.loading?n.stopPropagation():("reset"===e.nativeType&&(null===o||void 0===o||o.resetFields()),t("click",n))};return{_disabled:i,_size:a,_type:v,_ref:s,_props:M,_plain:_,_round:b,_text:y,_dashed:O,shouldAddSpace:k,handleClick:C}};var v=n("c741");function g(e,t=20){return e.mix("#141414",t).toString()}function _(e){const t=Object(u["a"])(),n=Object(o["d"])("button");return Object(h["computed"])(()=>{let r={},o=e.color;if(o){const a=o.match(/var\((.*?)\)/);a&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));const i=new v["TinyColor"](o),s=e.dark?i.tint(20).toString():g(i,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?g(i,90):i.tint(90).toString(),"text-color":o,"border-color":e.dark?g(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?g(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?g(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?g(i,80):i.tint(80).toString());else{const a=e.dark?g(i,30):i.tint(30).toString(),c=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":a,"hover-text-color":c,"hover-border-color":a,"active-bg-color":s,"active-border-color":s}),t.value){const t=e.dark?g(i,50):i.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=t,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=t}}}return r})}var b=Object(h["defineComponent"])({name:"ElButton",__name:"button",props:i["b"],emits:i["a"],setup(e,{expose:t,emit:n}){const r=e,i=n,s=_(r),c=Object(o["d"])("button"),{_ref:l,_size:u,_type:d,_disabled:p,_props:f,_plain:v,_round:g,_text:b,_dashed:y,shouldAddSpace:O,handleClick:M}=m(r,i),k=Object(h["computed"])(()=>[c.b(),c.m(d.value),c.m(u.value),c.is("disabled",p.value),c.is("loading",r.loading),c.is("plain",v.value),c.is("round",g.value),c.is("circle",r.circle),c.is("text",b.value),c.is("dashed",y.value),c.is("link",r.link),c.is("has-bg",r.bg)]);return t({ref:l,size:u,type:d,disabled:p,shouldAddSpace:O}),(t,n)=>(Object(h["openBlock"])(),Object(h["createBlock"])(Object(h["resolveDynamicComponent"])(e.tag),Object(h["mergeProps"])({ref_key:"_ref",ref:l},Object(h["unref"])(f),{class:k.value,style:Object(h["unref"])(s),onClick:Object(h["unref"])(M)}),{default:Object(h["withCtx"])(()=>[e.loading?(Object(h["openBlock"])(),Object(h["createElementBlock"])(h["Fragment"],{key:0},[t.$slots.loading?Object(h["renderSlot"])(t.$slots,"loading",{key:0}):(Object(h["openBlock"])(),Object(h["createBlock"])(Object(h["unref"])(a["a"]),{key:1,class:Object(h["normalizeClass"])(Object(h["unref"])(c).is("loading"))},{default:Object(h["withCtx"])(()=>[(Object(h["openBlock"])(),Object(h["createBlock"])(Object(h["resolveDynamicComponent"])(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||t.$slots.icon?(Object(h["openBlock"])(),Object(h["createBlock"])(Object(h["unref"])(a["a"]),{key:1},{default:Object(h["withCtx"])(()=>[e.icon?(Object(h["openBlock"])(),Object(h["createBlock"])(Object(h["resolveDynamicComponent"])(e.icon),{key:0})):Object(h["renderSlot"])(t.$slots,"icon",{key:1})]),_:3})):Object(h["createCommentVNode"])("v-if",!0),t.$slots.default?(Object(h["openBlock"])(),Object(h["createElementBlock"])("span",{key:2,class:Object(h["normalizeClass"])({[Object(h["unref"])(c).em("text","expand")]:Object(h["unref"])(O)})},[Object(h["renderSlot"])(t.$slots,"default")],2)):Object(h["createCommentVNode"])("v-if",!0)]),_:3},16,["class","style","onClick"]))}}),y=b,O=n("0898");const M={size:i["b"].size,type:i["b"].type,direction:{type:Object(O["c"])(String),values:["horizontal","vertical"],default:"horizontal"}};var k=Object(h["defineComponent"])({name:"ElButtonGroup",__name:"button-group",props:M,setup(e){const t=e;Object(h["provide"])(f["a"],Object(h["reactive"])({size:Object(h["toRef"])(t,"size"),type:Object(h["toRef"])(t,"type")}));const n=Object(o["d"])("button");return(e,r)=>(Object(h["openBlock"])(),Object(h["createElementBlock"])("div",{class:Object(h["normalizeClass"])([Object(h["unref"])(n).b("group"),Object(h["unref"])(n).bm("group",t.direction)])},[Object(h["renderSlot"])(e.$slots,"default")],2))}}),C=k;const w=Object(r["a"])(y,{ButtonGroup:C}),S=Object(r["d"])(C)},cf34:function(e,t,n){e.exports=n("1cb0")},cf51:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});function n(e,t,n,r){var o={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?o[n][0]:o[n][1]}return t}))},cf75:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="pagh_wa_cha_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq",t}function r(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret",t}function o(e,t,n,r){var o=a(e);switch(n){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}function a(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),o=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),r>0&&(a+=(""!==a?" ":"")+t[r]+"maH"),o>0&&(a+=(""!==a?" ":"")+t[o]),""===a?"pagh":a}var i=e.defineLocale("tlh",{months:"tera jar wa_tera jar cha_tera jar wej_tera jar loS_tera jar vagh_tera jar jav_tera jar Soch_tera jar chorgh_tera jar Hut_tera jar wamaH_tera jar wamaH wa_tera jar wamaH cha".split("_"),monthsShort:"jar wa_jar cha_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wamaH_jar wamaH wa_jar wamaH cha".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[waleS] LT",nextWeek:"LLL",lastDay:"[waHu] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:r,s:"puS lup",ss:o,m:"wa tup",mm:o,h:"wa rep",hh:o,d:"wa jaj",dd:o,M:"wa jar",MM:o,y:"wa DIS",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},cf8c:function(e,t,n){"use strict";var r=n("b15d"),o=n("3a40"),a=n("30d3"),i=n("71c3"),s=n("99fa"),c=n("5415"),l=o.Set,u=o.add,d=o.has;e.exports=function(e){var t=r(this),n=i(e),o=new l;return a(t)>n.size?c(n.getIterator(),(function(e){d(t,e)&&u(o,e)})):s(t,(function(e){n.includes(e)&&u(o,e)})),o}},cfd7:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n("1ad4"),o=n("b17a"),a=n("7c31"),i=n("eb547");function s(e){var t;const{char:n,allowSpaces:o,allowToIncludeChar:a,allowedPrefixes:i,startOfLine:s,$position:c}=e,l=o&&!a,u=Object(r["e"])(n),d=new RegExp(`\\s${u}$`),p=s?"^":"",f=a?"":u,h=l?new RegExp(`${p}${u}.*?(?=\\s${f}|$)`,"gm"):new RegExp(`${p}(?:^)?${u}[^\\s${f}]*`,"gm"),m=(null===(t=c.nodeBefore)||void 0===t?void 0:t.isText)&&c.nodeBefore.text;if(!m)return null;const v=c.pos-m.length,g=Array.from(m.matchAll(h)).pop();if(!g||void 0===g.input||void 0===g.index)return null;const _=g.input.slice(Math.max(0,g.index-1),g.index),b=new RegExp(`^[${null===i||void 0===i?void 0:i.join("")}\0]?$`).test(_);if(null!==i&&!b)return null;const y=v+g.index;let O=y+g[0].length;return l&&d.test(m.slice(O-1,O+1))&&(g[0]+=" ",O+=1),y<c.pos&&O>=c.pos?{range:{from:y,to:O},query:g[0].slice(n.length),text:g[0]}:null}const c=new a["e"]("suggestion");function l({pluginKey:e=c,editor:t,char:n="@",allowSpaces:r=!1,allowToIncludeChar:o=!1,allowedPrefixes:l=[" "],startOfLine:u=!1,decorationTag:d="span",decorationClass:p="suggestion",decorationContent:f="",decorationEmptyClass:h="is-empty",command:m=(()=>null),items:v=(()=>[]),render:g=(()=>({})),allow:_=(()=>!0),findSuggestionMatch:b=s}){let y;const O=null===g||void 0===g?void 0:g(),M=new a["d"]({key:e,view(){return{update:async(e,n)=>{var r,o,a,i,s,c,l;const u=null===(r=this.key)||void 0===r?void 0:r.getState(n),d=null===(o=this.key)||void 0===o?void 0:o.getState(e.state),p=u.active&&d.active&&u.range.from!==d.range.from,f=!u.active&&d.active,h=u.active&&!d.active,g=!f&&!h&&u.query!==d.query,_=f||p&&g,b=g||p,M=h||p&&g;if(!_&&!b&&!M)return;const k=M&&!_?u:d,C=e.dom.querySelector(`[data-decoration-id="${k.decorationId}"]`);y={editor:t,range:k.range,query:k.query,text:k.text,items:[],command:e=>m({editor:t,range:k.range,props:e}),decorationNode:C,clientRect:C?()=>{var n;const{decorationId:r}=null===(n=this.key)||void 0===n?void 0:n.getState(t.state),o=e.dom.querySelector(`[data-decoration-id="${r}"]`);return(null===o||void 0===o?void 0:o.getBoundingClientRect())||null}:null},_&&(null===(a=null===O||void 0===O?void 0:O.onBeforeStart)||void 0===a||a.call(O,y)),b&&(null===(i=null===O||void 0===O?void 0:O.onBeforeUpdate)||void 0===i||i.call(O,y)),(b||_)&&(y.items=await v({editor:t,query:k.query})),M&&(null===(s=null===O||void 0===O?void 0:O.onExit)||void 0===s||s.call(O,y)),b&&(null===(c=null===O||void 0===O?void 0:O.onUpdate)||void 0===c||c.call(O,y)),_&&(null===(l=null===O||void 0===O?void 0:O.onStart)||void 0===l||l.call(O,y))},destroy:()=>{var e;y&&(null===(e=null===O||void 0===O?void 0:O.onExit)||void 0===e||e.call(O,y))}}},state:{init(){const e={active:!1,range:{from:0,to:0},query:null,text:null,composing:!1};return e},apply(e,a,i,s){const{isEditable:c}=t,{composing:d}=t.view,{selection:p}=e,{empty:f,from:h}=p,m={...a};if(m.composing=d,c&&(f||t.view.composing)){!(h<a.range.from||h>a.range.to)||d||a.composing||(m.active=!1);const e=b({char:n,allowSpaces:r,allowToIncludeChar:o,allowedPrefixes:l,startOfLine:u,$position:p.$from}),i="id_"+Math.floor(4294967295*Math.random());e&&_({editor:t,state:s,range:e.range,isActive:a.active})?(m.active=!0,m.decorationId=a.decorationId?a.decorationId:i,m.range=e.range,m.query=e.query,m.text=e.text):m.active=!1}else m.active=!1;return m.active||(m.decorationId=null,m.range={from:0,to:0},m.query=null,m.text=null),m}},props:{handleKeyDown(e,t){var n;const{active:r,range:o}=M.getState(e.state);return r&&(null===(n=null===O||void 0===O?void 0:O.onKeyDown)||void 0===n?void 0:n.call(O,{view:e,event:t,range:o}))||!1},decorations(e){const{active:t,range:n,decorationId:r,query:o}=M.getState(e);if(!t)return null;const a=!(null===o||void 0===o?void 0:o.length),s=[p];return a&&s.push(h),i["b"].create(e.doc,[i["a"].inline(n.from,n.to,{nodeName:d,class:s.join(" "),"data-decoration-id":r,"data-decoration-content":f})])}}});return M}function u({editor:e,overrideSuggestionOptions:t,extensionName:n,char:r="@"}){const o=new a["e"];return{editor:e,char:r,pluginKey:o,command:({editor:e,range:t,props:o})=>{var a,i,s;const c=e.view.state.selection.$to.nodeAfter,l=null===(a=null===c||void 0===c?void 0:c.text)||void 0===a?void 0:a.startsWith(" ");l&&(t.to+=1),e.chain().focus().insertContentAt(t,[{type:n,attrs:{...o,mentionSuggestionChar:r}},{type:"text",text:" "}]).run(),null===(s=null===(i=e.view.dom.ownerDocument.defaultView)||void 0===i?void 0:i.getSelection())||void 0===s||s.collapseToEnd()},allow:({state:e,range:t})=>{const r=e.doc.resolve(t.from),o=e.schema.nodes[n],a=!!r.parent.type.contentMatch.matchType(o);return a},...t}}function d(e){return(e.options.suggestions.length?e.options.suggestions:[e.options.suggestion]).map(t=>u({editor:e.editor,overrideSuggestionOptions:t,extensionName:e.name,char:t.char}))}function p(e,t){const n=d(e),r=n.find(e=>e.char===t);return r||(n.length?n[0]:null)}const f=r["c"].create({name:"mention",priority:101,addOptions(){return{HTMLAttributes:{},renderText({node:e,suggestion:t}){var n,r;return`${null!==(n=null===t||void 0===t?void 0:t.char)&&void 0!==n?n:"@"}${null!==(r=e.attrs.label)&&void 0!==r?r:e.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:e,node:t,suggestion:n}){var o,a;return["span",Object(r["k"])(this.HTMLAttributes,e.HTMLAttributes),`${null!==(o=null===n||void 0===n?void 0:n.char)&&void 0!==o?o:"@"}${null!==(a=t.attrs.label)&&void 0!==a?a:t.attrs.id}`]},suggestions:[],suggestion:{}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}},mentionSuggestionChar:{default:"@",parseHTML:e=>e.getAttribute("data-mention-suggestion-char"),renderHTML:e=>({"data-mention-suggestion-char":e.mentionSuggestionChar})}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:e,HTMLAttributes:t}){const n=p(this,e.attrs.mentionSuggestionChar);if(void 0!==this.options.renderLabel)return console.warn("renderLabel is deprecated use renderText and renderHTML instead"),["span",Object(r["k"])({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e,suggestion:n})];const o={...this.options};o.HTMLAttributes=Object(r["k"])({"data-type":this.name},this.options.HTMLAttributes,t);const a=this.options.renderHTML({options:o,node:e,suggestion:n});return"string"===typeof a?["span",Object(r["k"])({"data-type":this.name},this.options.HTMLAttributes,t),a]:a},renderText({node:e}){const t={options:this.options,node:e,suggestion:p(this,e.attrs.mentionSuggestionChar)};return void 0!==this.options.renderLabel?(console.warn("renderLabel is deprecated use renderText and renderHTML instead"),this.options.renderLabel(t)):this.options.renderText(t)},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:e,state:t})=>{let n=!1;const{selection:r}=t,{empty:a,anchor:i}=r;if(!a)return!1;t.doc.nodesBetween(i-1,i,(t,r)=>{if(t.type.name===this.name)return n=!0,e.insertText(this.options.deleteTriggerWithBackspace?"":this.options.suggestion.char||"",r,r+t.nodeSize),!1});let s=new o["d"],c=0;return t.doc.nodesBetween(i-1,i,(e,t)=>{if(e.type.name===this.name)return n=!0,s=e,c=t,!1}),n&&e.insertText(this.options.deleteTriggerWithBackspace?"":s.attrs.mentionSuggestionChar,c,c+s.nodeSize),n})}},addProseMirrorPlugins(){return d(this).map(l)}})},cfe9:function(e,t,n){"use strict";(function(t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},d012:function(e,t,n){"use strict";e.exports={}},d039:function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){"use strict";var r=n("cfe9"),o=n("1626"),a=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},d095:function(e,t,n){e.exports=n("2ef0")},d175:function(e,t,n){"use strict";var r=n("3eba"),o=n("a0b9"),a=n("fb2d"),i=n("b557"),s=n("2c0f"),c=n("eb54"),l=n("f868"),u=r.Function,d=/MSIE .\./.test(s)||"BUN"===i&&function(){var e=r.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}();e.exports=function(e,t){var n=t?2:1;return d?function(r,i){var s=l(arguments.length,1)>n,d=a(r)?r:u(r),p=s?c(arguments,n):[],f=s?function(){o(d,this,p)}:d;return t?e(f,i):e(f)}:e}},d17d:function(e,t,n){"use strict";var r=n("437b"),o=n("c5c4"),a=Array.prototype;e.exports=function(e){var t=e.lastIndexOf;return e===a||r(a,e)&&t===a.lastIndexOf?o:t}},d1ac:function(e,t){},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);t.f=a?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},d233:function(e,t,n){"use strict";var r=n("b313"),o=n("5402"),a=Object.prototype.hasOwnProperty,i=Array.isArray,s=o(),c=function(e,t){return s.set(e,t),e},l=function(e){return s.has(e)},u=function(e){return s.get(e)},d=function(e,t){s.set(e,t)},p=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),f=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[r.length]=n[o]);t.obj[t.prop]=r}}},h=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},m=function e(t,n,r){if(!n)return t;if("object"!==typeof n&&"function"!==typeof n){if(i(t)){var o=t.length;if(r&&"number"===typeof r.arrayLimit&&o>r.arrayLimit)return c(h(t.concat(n),r),o);t[o]=n}else{if(!t||"object"!==typeof t)return[t,n];if(l(t)){var s=u(t)+1;t[s]=n,d(t,s)}else{if(r&&r.strictMerge)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!a.call(Object.prototype,n))&&(t[n]=!0)}}return t}if(!t||"object"!==typeof t){if(l(n)){for(var p=Object.keys(n),f=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},m=0;m<p.length;m++){var v=parseInt(p[m],10);f[v+1]=n[p[m]]}return c(f,u(n)+1)}var g=[t].concat(n);return r&&"number"===typeof r.arrayLimit&&g.length>r.arrayLimit?c(h(g,r),g.length-1):g}var _=t;return i(t)&&!i(n)&&(_=h(t,r)),i(t)&&i(n)?(n.forEach((function(n,o){if(a.call(t,o)){var i=t[o];i&&"object"===typeof i&&n&&"object"===typeof n?t[o]=e(i,n,r):t[t.length]=n}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var i=n[o];if(a.call(t,o)?t[o]=e(t[o],i,r):t[o]=i,l(n)&&!l(t)&&c(t,u(n)),l(t)){var s=parseInt(o,10);String(s)===o&&s>=0&&s>u(t)&&d(t,s)}return t}),_)},v=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},g=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(o){return r}},_=1024,b=function(e,t,n,o,a){if(0===e.length)return e;var i=e;if("symbol"===typeof e?i=Symbol.prototype.toString.call(e):"string"!==typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var s="",c=0;c<i.length;c+=_){for(var l=i.length>=_?i.slice(c,c+_):i,u=[],d=0;d<l.length;++d){var f=l.charCodeAt(d);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||a===r.RFC1738&&(40===f||41===f)?u[u.length]=l.charAt(d):f<128?u[u.length]=p[f]:f<2048?u[u.length]=p[192|f>>6]+p[128|63&f]:f<55296||f>=57344?u[u.length]=p[224|f>>12]+p[128|f>>6&63]+p[128|63&f]:(d+=1,f=65536+((1023&f)<<10|1023&l.charCodeAt(d)),u[u.length]=p[240|f>>18]+p[128|f>>12&63]+p[128|f>>6&63]+p[128|63&f])}s+=u.join("")}return s},y=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],i=Object.keys(a),s=0;s<i.length;++s){var c=i[s],l=a[c];"object"===typeof l&&null!==l&&-1===n.indexOf(l)&&(t[t.length]={obj:a,prop:c},n[n.length]=l)}return f(t),e},O=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},M=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},k=function(e,t,n,r){if(l(e)){var o=u(e)+1;return e[o]=t,d(e,o),e}var a=[].concat(e,t);return a.length>n?c(h(a,{plainObjects:r}),a.length-1):a},C=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)};e.exports={arrayToObject:h,assign:v,combine:k,compact:y,decode:g,encode:b,isBuffer:M,isOverflow:l,isRegExp:O,markOverflow:c,maybeMap:C,merge:m}},d24a:function(e,t,n){"use strict";var r=n("e330"),o=n("1a2d"),a=SyntaxError,i=parseInt,s=String.fromCharCode,c=r("".charAt),l=r("".slice),u=r(/./.exec),d={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},p=/^[\da-f]{4}$/i,f=/^[\u0000-\u001F]$/;e.exports=function(e,t){var n=!0,r="";while(t<e.length){var h=c(e,t);if("\\"===h){var m=l(e,t,t+2);if(o(d,m))r+=d[m],t+=2;else{if("\\u"!==m)throw new a('Unknown escape sequence: "'+m+'"');t+=2;var v=l(e,t,t+4);if(!u(p,v))throw new a("Bad Unicode escape at: "+t);r+=s(i(v,16)),t+=4}}else{if('"'===h){n=!1,t++;break}if(u(f,h))throw new a("Bad control character in string literal at: "+t);r+=h,t++}}if(n)throw new a("Unterminated string at: "+t);return{value:r,end:t}}},d254:function(e,t,n){e.exports=n("27d1")},d26a:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"},r=e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});return r}))},d2bb:function(e,t,n){"use strict";var r=n("7282"),o=n("861d"),a=n("1d80"),i=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(s){}return function(n,r){return a(n),i(r),o(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},d2d4:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"});return t}))},d383:function(e,t,n){"use strict";var r=n("9883"),o=n("2296"),a=n("0363"),i=n("c1b2"),s=a("species");e.exports=function(e){var t=r(e);i&&t&&!t[s]&&o(t,s,{configurable:!0,get:function(){return this}})}},d52b:function(e,t,n){"use strict";var r=n("da73");n("5145"),e.exports=r},d5eb:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=["","default","small","large"]},d5f6:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("2a44");const o=r["a"]},d63b:function(e,t,n){"use strict";var r=n("0363"),o=r("toStringTag"),a={};a[o]="z",e.exports="[object z]"===String(a)},d645:function(e,t,n){"use strict";var r=n("8c12");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},d655:function(e,t,n){"use strict";var r=n("b15d"),o=n("3a40").has,a=n("30d3"),i=n("71c3"),s=n("5415"),c=n("8a3b");e.exports=function(e){var t=r(this),n=i(e);if(a(t)<n.size)return!1;var l=n.getIterator();return!1!==s(l,(function(e){if(!o(t,e))return c(l.iterator,"normal",!1)}))}},d659:function(e,t,n){"use strict";var r=n("7685");e.exports=function(e,t){return r[e]||(r[e]=t||{})}},d65d:function(e,t,n){"use strict";n("6b51"),n("0293"),n("5ce5"),n("4d8d"),n("fb5e");var r=n("764b");e.exports=r.URL},d673:function(e,t,n){"use strict";n("b480");var r=n("764b");e.exports=r.Number.isFinite},d68b:function(e,t,n){"use strict";var r=n("b557");e.exports="NODE"===r},d69a:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},d6ab:function(e,t,n){"use strict";var r=n("a5eb"),o=n("4e19"),a=n("9a00"),i=n("4487"),s=n("9c9e"),c=n("7042"),l=s.get,u=s.has,d=s.set,p=c||!function(){try{WeakMap.prototype.getOrInsertComputed&&(new WeakMap).getOrInsertComputed(1,(function(){throw 1}))}catch(e){return e instanceof TypeError}}();r({target:"WeakMap",proto:!0,real:!0,forced:p},{getOrInsertComputed:function(e,t){if(c||a(this),i(e),o(t),u(this,e))return l(this,e);var n=t(e);return d(this,e,n),n}})},d6b6:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}});return t}))},d6d3:function(e,t,n){"use strict";var r=n("437b"),o=n("0c33"),a=Array.prototype;e.exports=function(e){var t=e.some;return e===a||r(a,e)&&t===a.some?o:t}},d716:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}});return t}))},d756:function(e,t,n){"use strict";var r=n("2d80"),o=n("a4fc"),a=n("0f79"),i=n("9474");r(t,"__esModule",{value:!0}),t.numberInputToObject=t.parseIntFromHex=t.convertHexToDecimal=t.convertDecimalToHex=t.rgbToCmyk=t.cmykToRgb=t.rgbaToArgbHex=t.rgbaToHex=t.rgbToHex=t.hsvToRgb=t.rgbToHsv=t.hslToRgb=t.rgbToHsl=t.rgbToRgb=void 0;const s=n("1127");function c(e,t,n){return{r:255*(0,s.bound01)(e,255),g:255*(0,s.bound01)(t,255),b:255*(0,s.bound01)(n,255)}}function l(e,t,n){e=(0,s.bound01)(e,255),t=(0,s.bound01)(t,255),n=(0,s.bound01)(n,255);const r=Math.max(e,t,n),o=Math.min(e,t,n);let a=0,i=0;const c=(r+o)/2;if(r===o)i=0,a=0;else{const s=r-o;switch(i=c>.5?s/(2-r-o):s/(r+o),r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break;default:break}a/=6}return{h:a,s:i,l:c}}function u(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function d(e,t,n){let r,o,a;if(e=(0,s.bound01)(e,360),t=(0,s.bound01)(t,100),n=(0,s.bound01)(n,100),0===t)o=n,a=n,r=n;else{const i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=u(s,i,e+1/3),o=u(s,i,e),a=u(s,i,e-1/3)}return{r:255*r,g:255*o,b:255*a}}function p(e,t,n){e=(0,s.bound01)(e,255),t=(0,s.bound01)(t,255),n=(0,s.bound01)(n,255);const r=Math.max(e,t,n),o=Math.min(e,t,n);let a=0;const i=r,c=r-o,l=0===r?0:c/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break;default:break}a/=6}return{h:a,s:l,v:i}}function f(e,t,n){e=6*(0,s.bound01)(e,360),t=(0,s.bound01)(t,100),n=(0,s.bound01)(n,100);const r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),c=n*(1-(1-o)*t),l=r%6,u=[n,i,a,a,c,n][l],d=[c,n,n,i,a,a][l],p=[a,a,c,n,n,i][l];return{r:255*u,g:255*d,b:255*p}}function h(e,t,n,r){var a,i,c;const l=[(0,s.pad2)(Math.round(e).toString(16)),(0,s.pad2)(Math.round(t).toString(16)),(0,s.pad2)(Math.round(n).toString(16))];return r&&o(a=l[0]).call(a,l[0].charAt(1))&&o(i=l[1]).call(i,l[1].charAt(1))&&o(c=l[2]).call(c,l[2].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function m(e,t,n,r,a){var i,c,l,u;const d=[(0,s.pad2)(Math.round(e).toString(16)),(0,s.pad2)(Math.round(t).toString(16)),(0,s.pad2)(Math.round(n).toString(16)),(0,s.pad2)(b(r))];return a&&o(i=d[0]).call(i,d[0].charAt(1))&&o(c=d[1]).call(c,d[1].charAt(1))&&o(l=d[2]).call(l,d[2].charAt(1))&&o(u=d[3]).call(u,d[3].charAt(1))?d[0].charAt(0)+d[1].charAt(0)+d[2].charAt(0)+d[3].charAt(0):d.join("")}function v(e,t,n,r){const o=[(0,s.pad2)(b(r)),(0,s.pad2)(Math.round(e).toString(16)),(0,s.pad2)(Math.round(t).toString(16)),(0,s.pad2)(Math.round(n).toString(16))];return o.join("")}function g(e,t,n,r){const o=e/100,a=t/100,i=n/100,s=r/100,c=255*(1-o)*(1-s),l=255*(1-a)*(1-s),u=255*(1-i)*(1-s);return{r:c,g:l,b:u}}function _(e,t,n){let r=1-e/255,o=1-t/255,a=1-n/255,i=Math.min(r,o,a);return 1===i?(r=0,o=0,a=0):(r=(r-i)/(1-i)*100,o=(o-i)/(1-i)*100,a=(a-i)/(1-i)*100),i*=100,{c:Math.round(r),m:Math.round(o),y:Math.round(a),k:Math.round(i)}}function b(e){return Math.round(255*a(e)).toString(16)}function y(e){return O(e)/255}function O(e){return i(e,16)}function M(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}t.rgbToRgb=c,t.rgbToHsl=l,t.hslToRgb=d,t.rgbToHsv=p,t.hsvToRgb=f,t.rgbToHex=h,t.rgbaToHex=m,t.rgbaToArgbHex=v,t.cmykToRgb=g,t.rgbToCmyk=_,t.convertDecimalToHex=b,t.convertHexToDecimal=y,t.parseIntFromHex=O,t.numberInputToObject=M},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)}}}))},d789:function(e,t,n){"use strict";var r=n("437b"),o=n("a55b"),a=String.prototype;e.exports=function(e){var t=e.padStart;return"string"==typeof e||e===a||r(a,e)&&t===a.padStart?o:t}},d877:function(e,t,n){"use strict";n("594a");var r=n("c18e");e.exports=r("Array","findIndex")},d925:function(e,t,n){"use strict";var r=n("a5eb"),o=n("c1b2"),a=n("4896");r({target:"Object",stat:!0,sham:!o},{create:a})},d9255:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},d92a:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("0898");const o=Object(r["b"])({size:{type:Object(r["c"])([Number,String])},color:{type:String}})},d9b5:function(e,t,n){"use strict";var r=n("d066"),o=n("1626"),a=n("3a9b"),i=n("fdbf"),s=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&a(t.prototype,s(e))}},d9e2:function(e,t,n){"use strict";var r=n("23e7"),o=n("cfe9"),a=n("2ba4"),i=n("e5cb"),s="WebAssembly",c=o[s],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var n={};n[e]=i(e,t,l),r({global:!0,constructor:!0,arity:1,forced:l},n)},d=function(e,t){if(c&&c[e]){var n={};n[e]=i(s+"."+e,t,l),r({target:s,stat:!0,constructor:!0,arity:1,forced:l},n)}};u("Error",(function(e){return function(t){return a(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return a(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return a(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return a(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return a(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return a(e,this,arguments)}})),u("URIError",(function(e){return function(t){return a(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return a(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return a(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return a(e,this,arguments)}}))},d9f3:function(e,t,n){"use strict";var r=n("7106"),o=n("4e19"),a=n("6f8d"),i=n("1301"),s=n("0b7b"),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return a(r(n,e));throw new c(i(e)+" is not iterable")}},d9f8:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourdhui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}});return t}))},da43:function(e,t,n){"use strict";n("c81f");var r=n("c18e");e.exports=r("String","includes")},da63:function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){var t=e&&e.alphabet;if(void 0===t||"base64"===t||"base64url"===t)return t||"base64";throw new r("Incorrect `alphabet` option")}},da73:function(e,t,n){"use strict";n("9103"),n("3e47");var r=n("0b7b");e.exports=r},da80:function(e,t,n){"use strict";var r=n("a5eb"),o=n("4bf3").values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},dad0:function(e,t,n){"use strict";var r=n("0e6f"),o=n("14df"),a=n("44ba"),i=n("4180");e.exports=function(e,t,n){for(var s=o(t),c=i.f,l=a.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||c(e,d,l(t,d))}}},daed:function(e,t,n){"use strict";var r=n("2d80");r(t,"__esModule",{value:!0})},db04:function(e,t,n){"use strict";var r=n("a5eb"),o=n("13cf"),a=n("44ba").f,i=n("6725"),s=n("8c12"),c=n("9e51"),l=n("1875"),u=n("8c58"),d=n("7042"),p=o("".slice),f=Math.min,h=u("startsWith"),m=!d&&!h&&!!function(){var e=a(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!m&&!h},{startsWith:function(e){var t=s(l(this));c(e);var n=s(e),r=i(f(arguments.length>1?arguments[1]:void 0,t.length));return p(t,r,r+n.length)===n}})},db16:function(e,t,n){"use strict";var r,o=n("42e6"),a=n("3eba"),i=n("ce18"),s=n("bc4a"),c=n("6594"),l=n("0cae"),u=n("c8e8"),d=n("dfdb"),p=n("2f5a").enforce,f=n("06fa"),h=n("cce9"),m=Object,v=Array.isArray,g=m.isExtensible,_=m.isFrozen,b=m.isSealed,y=m.freeze,O=m.seal,M=!a.ActiveXObject&&"ActiveXObject"in a,k=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},C=l("WeakMap",k,u),w=C.prototype,S=i(w.set),T=function(){return o&&f((function(){var e=y([]);return S(new C,e,1),!_(e)}))};if(h)if(M){r=u.getConstructor(k,"WeakMap",!0),c.enable();var I=i(w["delete"]),E=i(w.has),j=i(w.get);s(w,{delete:function(e){if(d(e)&&!g(e)){var t=p(this);return t.frozen||(t.frozen=new r),I(this,e)||t.frozen["delete"](e)}return I(this,e)},has:function(e){if(d(e)&&!g(e)){var t=p(this);return t.frozen||(t.frozen=new r),E(this,e)||t.frozen.has(e)}return E(this,e)},get:function(e){if(d(e)&&!g(e)){var t=p(this);return t.frozen||(t.frozen=new r),E(this,e)?j(this,e):t.frozen.get(e)}return j(this,e)},set:function(e,t){if(d(e)&&!g(e)){var n=p(this);n.frozen||(n.frozen=new r),E(this,e)?S(this,e,t):n.frozen.set(e,t)}else S(this,e,t);return this}})}else T()&&s(w,{set:function(e,t){var n;return v(e)&&(_(e)?n=y:b(e)&&(n=O)),S(this,e,t),n&&n(e),this}})},db29:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,a=e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return a}))},db9b:function(e,t,n){"use strict";var r=n("a5eb"),o=n("ce18"),a=n("4508"),i=RangeError,s=String.fromCharCode,c=String.fromCodePoint,l=o([].join),u=!!c&&1!==c.length;r({target:"String",stat:!0,arity:1,forced:u},{fromCodePoint:function(e){var t,n=[],r=arguments.length,o=0;while(r>o){if(t=+arguments[o],a(t,1114111)!==t)throw new i(t+" is not a valid code point");n[o++]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return l(n,"")}})},db9ba:function(e,t,n){"use strict";var r=n("23e7"),o=n("c65b"),a=n("825a"),i=n("46c4"),s=n("abc1"),c=n("f8cd"),l=n("2a62"),u=n("c5cc"),d=n("2baa"),p=n("f99f"),f=n("c430"),h=!f&&!d("drop",0),m=!f&&!h&&p("drop",RangeError),v=f||h||m,g=u((function(){var e,t,n=this.iterator,r=this.next;while(this.remaining)if(this.remaining--,e=a(o(r,n)),t=this.done=!!e.done,t)return;if(e=a(o(r,n)),t=this.done=!!e.done,!t)return e.value}));r({target:"Iterator",proto:!0,real:!0,forced:v},{drop:function(e){var t;a(this);try{t=c(s(+e))}catch(n){l(this,"throw",n)}return m?o(m,this,t):new g(i(this),{remaining:t})}})},dbe5:function(e,t,n){"use strict";var r=n("cfe9"),o=n("d039"),a=n("1212"),i=n("8558"),s=r.structuredClone;e.exports=!!s&&!o((function(){if("DENO"===i&&a>92||"NODE"===i&&a>94||"BROWSER"===i&&a>97)return!1;var e=new ArrayBuffer(8),t=s(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},dc15:function(e,t,n){"use strict";var r=n("a5eb"),o=n("42e6"),a=n("06fa"),i=n("dfdb"),s=n("6594").onFreeze,c=Object.freeze,l=a((function(){c(1)}));r({target:"Object",stat:!0,forced:l,sham:!o},{freeze:function(e){return c&&i(e)?c(s(e)):e}})},dc4a:function(e,t,n){"use strict";var r=n("59ed"),o=n("7234");e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},dc4d:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],o=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],a=e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:r,longMonthsParse:r,shortMonthsParse:o,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}});return a}))},dc95:function(e,t){},dc99:function(e,t,n){"use strict";e.exports=RangeError},dce2:function(e,t,n){"use strict";n("0913");var r=n("764b");e.exports=r.Reflect.ownKeys},ddb5:function(e,t,n){"use strict";e.exports=function(e,t){return{value:e,done:t}}},de21:function(e,t,n){(function(t){!function(t,n){e.exports=n()}(0,(function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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 r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||i(e,t)||function(){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 a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){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 i(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(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 c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(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,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}var l=function(){for(var e=" \t\r\n~!@#$%^&*()_+-=【】、{}|;':\",。、《》?αβγδεζηθικλμνξοπρστυφχψωΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ。,、;:?!…—·ˉ¨‘’“”々~‖∶"'`|〃〔〕〈〉《》「」『』.〖〗【】()[]{}ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩①②③④⑤⑥⑦⑧⑨⑩⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇≈≡≠=≤≥<>≮≯∷±+-×÷/∫∮∝∞∧∨∑∏∪∩∈∵∴⊥∥∠⌒⊙≌∽√§№☆★○●◎◇◆□℃‰€■△▲※→←↑↓〓¤°#&@\︿_ ̄―♂♀┌┍┎┐┑┒┓─┄┈├┝┞┟┠┡┢┣│┆┊┬┭┮┯┰┱┲┳┼┽┾┿╀╁╂╃└┕┖┗┘┙┚┛━┅┉┤┥┦┧┨┩┪┫┃┇┋┴┵┶┷┸┹┺┻╋╊╉╈╇╆╅╄",t=new Map,n=0,r=e.length;n<r;n++)t.set(e.charCodeAt(0),!0);return t}(),u=function(){function t(n){e(this,t);var r,o=n.input,i=n.isArray,s=n.isMap;this._trieTree={},i(o)?r=o:s(o)&&(r=a(o.keys()),this._map=o);for(var c=0,l=r.length;c<l;c++)if(r[c]){for(var u=this._trieTree,d=r[c],p=0,f=d.length;p<f;p++)u[d[p]]||(u[d[p]]={}),u=u[d[p]];u.isEnd=!0}}return r(t,[{key:"filter",value:function(e){var t=e.text,n=e.replacingEnabled;if(0===Object.keys(this._trieTree).length)return{isMatched:!1,modifiedText:t};for(var r=this._trieTree,o=t,a=!1,i=t.length,s=0;s<i;s++)if(!0!==l.get(t.charCodeAt(s))){for(var c=0,u="",d=!1,p=s;p<i;p++){if(!r[t[p]]){r=this._trieTree;break}if(u+=t[p],r[t[p]].isEnd){d=!0,c=p-s,r=this._trieTree;break}r=r[t[p]]}if(c>1&&(s+=c),d){if(a=!0,!n)break;var f=this._map.get(u)||"*";o=o.replace(new RegExp(u,"g"),f)}}return{isMatched:a,modifiedText:o}}},{key:"reset",value:function(){this._trieTree={},this._map=null}}]),t}(),d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{},p={},f=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){var n,r,o,a,i,s;e.exports=(s=s||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==d&&d.crypto&&(n=d.crypto),!n)try{n=p}catch(g){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},i=a.lib={},s=i.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=i.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<o;a++){var i=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=i<<24-(r+a)%4*8}else for(a=0;a<o;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new c.init(t,e)}}),l=a.enc={},u=l.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},f=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},h=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},m=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,a=r.sigBytes,i=this.blockSize,s=a/(4*i),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*i,u=e.min(4*l,a);if(l){for(var d=0;d<l;d+=i)this._doProcessBlock(o,d);n=o.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),v=(i.Hasher=m.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new v.HMAC.init(e,n).finalize(t)}}}),a.algo={});return a}(Math),i=(a=s).lib.WordArray,a.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],a=0;a<n;a+=3)for(var i=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<n;s++)o.push(r.charAt(i>>>6*(3-s)&63));var c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o<n.length;o++)r[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,n){for(var r=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,c=n[e.charCodeAt(a)]>>>6-a%4*2,l=s|c;r[o>>>2]|=l<<24-o%4*8,o++}return i.create(r,o)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(e){var t=s,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,i=[];!function(){for(var t=0;t<64;t++)i[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var a=this._hash.words,s=e[t+0],c=e[t+1],f=e[t+2],h=e[t+3],m=e[t+4],v=e[t+5],g=e[t+6],_=e[t+7],b=e[t+8],y=e[t+9],O=e[t+10],M=e[t+11],k=e[t+12],C=e[t+13],w=e[t+14],S=e[t+15],T=a[0],I=a[1],E=a[2],j=a[3];T=l(T,I,E,j,s,7,i[0]),j=l(j,T,I,E,c,12,i[1]),E=l(E,j,T,I,f,17,i[2]),I=l(I,E,j,T,h,22,i[3]),T=l(T,I,E,j,m,7,i[4]),j=l(j,T,I,E,v,12,i[5]),E=l(E,j,T,I,g,17,i[6]),I=l(I,E,j,T,_,22,i[7]),T=l(T,I,E,j,b,7,i[8]),j=l(j,T,I,E,y,12,i[9]),E=l(E,j,T,I,O,17,i[10]),I=l(I,E,j,T,M,22,i[11]),T=l(T,I,E,j,k,7,i[12]),j=l(j,T,I,E,C,12,i[13]),E=l(E,j,T,I,w,17,i[14]),T=u(T,I=l(I,E,j,T,S,22,i[15]),E,j,c,5,i[16]),j=u(j,T,I,E,g,9,i[17]),E=u(E,j,T,I,M,14,i[18]),I=u(I,E,j,T,s,20,i[19]),T=u(T,I,E,j,v,5,i[20]),j=u(j,T,I,E,O,9,i[21]),E=u(E,j,T,I,S,14,i[22]),I=u(I,E,j,T,m,20,i[23]),T=u(T,I,E,j,y,5,i[24]),j=u(j,T,I,E,w,9,i[25]),E=u(E,j,T,I,h,14,i[26]),I=u(I,E,j,T,b,20,i[27]),T=u(T,I,E,j,C,5,i[28]),j=u(j,T,I,E,f,9,i[29]),E=u(E,j,T,I,_,14,i[30]),T=d(T,I=u(I,E,j,T,k,20,i[31]),E,j,v,4,i[32]),j=d(j,T,I,E,b,11,i[33]),E=d(E,j,T,I,M,16,i[34]),I=d(I,E,j,T,w,23,i[35]),T=d(T,I,E,j,c,4,i[36]),j=d(j,T,I,E,m,11,i[37]),E=d(E,j,T,I,_,16,i[38]),I=d(I,E,j,T,O,23,i[39]),T=d(T,I,E,j,C,4,i[40]),j=d(j,T,I,E,s,11,i[41]),E=d(E,j,T,I,h,16,i[42]),I=d(I,E,j,T,g,23,i[43]),T=d(T,I,E,j,y,4,i[44]),j=d(j,T,I,E,k,11,i[45]),E=d(E,j,T,I,S,16,i[46]),T=p(T,I=d(I,E,j,T,f,23,i[47]),E,j,s,6,i[48]),j=p(j,T,I,E,_,10,i[49]),E=p(E,j,T,I,w,15,i[50]),I=p(I,E,j,T,v,21,i[51]),T=p(T,I,E,j,k,6,i[52]),j=p(j,T,I,E,h,10,i[53]),E=p(E,j,T,I,O,15,i[54]),I=p(I,E,j,T,c,21,i[55]),T=p(T,I,E,j,b,6,i[56]),j=p(j,T,I,E,S,10,i[57]),E=p(E,j,T,I,g,15,i[58]),I=p(I,E,j,T,C,21,i[59]),T=p(T,I,E,j,m,6,i[60]),j=p(j,T,I,E,M,10,i[61]),E=p(E,j,T,I,f,15,i[62]),I=p(I,E,j,T,y,21,i[63]),a[0]=a[0]+T|0,a[1]=a[1]+I|0,a[2]=a[2]+E|0,a[3]=a[3]+j|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var a=e.floor(r/4294967296),i=r;n[15+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,o,a,i){var s=e+(t&n|~t&r)+o+i;return(s<<a|s>>>32-a)+t}function u(e,t,n,r,o,a,i){var s=e+(t&r|n&~r)+o+i;return(s<<a|s>>>32-a)+t}function d(e,t,n,r,o,a,i){var s=e+(t^n^r)+o+i;return(s<<a|s>>>32-a)+t}function p(e,t,n,r,o,a,i){var s=e+(n^(t|~r))+o+i;return(s<<a|s>>>32-a)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),function(){var e=s,t=e.lib,n=t.WordArray,r=t.Hasher,o=e.algo,a=[],i=o.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],c=n[4],l=0;l<80;l++){if(l<16)a[l]=0|e[t+l];else{var u=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=u<<1|u>>>31}var d=(r<<5|r>>>27)+c+a[l];d+=l<20?1518500249+(o&i|~o&s):l<40?1859775393+(o^i^s):l<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,c=s,s=i,i=o<<30|o>>>2,o=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=r._createHelper(i),e.HmacSHA1=r._createHmacHelper(i)}(),function(e){var t=s,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,i=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(i[o]=n(e.pow(r,.5))),c[o]=n(e.pow(r,1/3)),o++),r++}();var l=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new r.init(i.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],u=n[5],d=n[6],p=n[7],f=0;f<64;f++){if(f<16)l[f]=0|e[t+f];else{var h=l[f-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,v=l[f-2],g=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;l[f]=m+l[f-7]+g+l[f-16]}var _=r&o^r&a^o&a,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),y=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+c[f]+l[f];p=d,d=u,u=s,s=i+y|0,i=a,a=o,o=r,r=y+(b+_)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+i|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),function(){var e=s,t=e.lib.WordArray,n=e.enc;function r(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var a=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var n=e.length,r=[],o=0;o<n;o++)r[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return t.create(r,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],a=0;a<n;a+=2){var i=r(t[a>>>2]>>>16-a%4*8&65535);o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var n=e.length,o=[],a=0;a<n;a++)o[a>>>1]|=r(e.charCodeAt(a)<<16-a%2*16);return t.create(o,2*n)}}}(),function(){if("function"==typeof ArrayBuffer){var e=s.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,r=[],o=0;o<n;o++)r[o>>>2]|=e[o]<<24-o%4*8;t.call(this,r,n)}else t.apply(this,arguments)}).prototype=e}}(),
/** @preserve
(c) 2012 by Cdric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
function(e){var t=s,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,i=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=r.create([0,1518500249,1859775393,2400959708,2840853838]),p=r.create([1352829926,1548603684,1836072691,2053994217,0]),f=a.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var a,s,f,y,O,M,k,C,w,S,T,I=this._hash.words,E=d.words,j=p.words,D=i.words,L=c.words,A=l.words,N=u.words;for(M=a=I[0],k=s=I[1],C=f=I[2],w=y=I[3],S=O=I[4],n=0;n<80;n+=1)T=a+e[t+D[n]]|0,T+=n<16?h(s,f,y)+E[0]:n<32?m(s,f,y)+E[1]:n<48?v(s,f,y)+E[2]:n<64?g(s,f,y)+E[3]:_(s,f,y)+E[4],T=(T=b(T|=0,A[n]))+O|0,a=O,O=y,y=b(f,10),f=s,s=T,T=M+e[t+L[n]]|0,T+=n<16?_(k,C,w)+j[0]:n<32?g(k,C,w)+j[1]:n<48?v(k,C,w)+j[2]:n<64?m(k,C,w)+j[3]:h(k,C,w)+j[4],T=(T=b(T|=0,N[n]))+S|0,M=S,S=w,w=b(C,10),C=k,k=T;T=I[1]+f+w|0,I[1]=I[2]+y+S|0,I[2]=I[3]+O+M|0,I[3]=I[4]+a+k|0,I[4]=I[0]+s+C|0,I[0]=T},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,a=o.words,i=0;i<5;i++){var s=a[i];a[i]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function v(e,t,n){return(e|~t)^n}function g(e,t,n){return e&n|t&~n}function _(e,t,n){return e^(t|~n)}function b(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(f),t.HmacRIPEMD160=o._createHmacHelper(f)}(),function(){var e=s,t=e.lib.Base,n=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,o=4*r;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),i=this._iKey=t.clone(),s=a.words,c=i.words,l=0;l<r;l++)s[l]^=1549556828,c[l]^=909522486;a.sigBytes=i.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}(),function(){var e=s,t=e.lib,n=t.Base,r=t.WordArray,o=e.algo,a=o.SHA1,i=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,o=i.create(n.hasher,e),a=r.create(),s=r.create([1]),c=a.words,l=s.words,u=n.keySize,d=n.iterations;c.length<u;){var p=o.update(t).finalize(s);o.reset();for(var f=p.words,h=f.length,m=p,v=1;v<d;v++){m=o.finalize(m),o.reset();for(var g=m.words,_=0;_<h;_++)f[_]^=g[_]}a.concat(p),l[0]++}return a.sigBytes=4*u,a}});e.PBKDF2=function(e,t,n){return c.create(n).compute(e,t)}}(),function(){var e=s,t=e.lib,n=t.Base,r=t.WordArray,o=e.algo,a=o.MD5,i=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,o=this.cfg,a=o.hasher.create(),i=r.create(),s=i.words,c=o.keySize,l=o.iterations;s.length<c;){n&&a.update(n),n=a.update(e).finalize(t),a.reset();for(var u=1;u<l;u++)n=a.finalize(n),a.reset();i.concat(n)}return i.sigBytes=4*c,i}});e.EvpKDF=function(e,t,n){return i.create(n).compute(e,t)}}(),function(){var e=s,t=e.lib.WordArray,n=e.algo,r=n.SHA256,o=n.SHA224=r.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=r._createHelper(o),e.HmacSHA224=r._createHmacHelper(o)}(),function(e){var t=s,n=t.lib,r=n.Base,o=n.WordArray,a=t.x64={};a.Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var a=e[r];n.push(a.high),n.push(a.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,o=0;o<n;o++)t[o]=t[o].clone();return e}})}(),function(e){var t=s,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.x64.Word,i=t.algo,c=[],l=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var s=0,d=0,p=0;p<7;p++){if(1&o){var f=(1<<p)-1;f<32?d^=1<<f:s^=1<<f-32}128&o?o=o<<1^113:o<<=1}u[i]=a.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=a.create()}();var p=i.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var a=e[t+2*o],i=e[t+2*o+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),(I=n[o]).high^=i,I.low^=a}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var f=0,h=0,m=0;m<5;m++)f^=(I=n[p+5*m]).high,h^=I.low;var v=d[p];v.high=f,v.low=h}for(p=0;p<5;p++){var g=d[(p+4)%5],_=d[(p+1)%5],b=_.high,y=_.low;for(f=g.high^(b<<1|y>>>31),h=g.low^(y<<1|b>>>31),m=0;m<5;m++)(I=n[p+5*m]).high^=f,I.low^=h}for(var O=1;O<25;O++){var M=(I=n[O]).high,k=I.low,C=c[O];C<32?(f=M<<C|k>>>32-C,h=k<<C|M>>>32-C):(f=k<<C-32|M>>>64-C,h=M<<C-32|k>>>64-C);var w=d[l[O]];w.high=f,w.low=h}var S=d[0],T=n[0];for(S.high=T.high,S.low=T.low,p=0;p<5;p++)for(m=0;m<5;m++){var I=n[O=p+5*m],E=d[O],j=d[(p+1)%5+5*m],D=d[(p+2)%5+5*m];I.high=E.high^~j.high&D.high,I.low=E.low^~j.low&D.low}I=n[0];var L=u[s];I.high^=L.high,I.low^=L.low}},_doFinalize:function(){var t=this._data,n=t.words,o=(this._nDataBytes,8*t.sigBytes),a=32*this.blockSize;n[o>>>5]|=1<<24-o%32,n[(e.ceil((o+1)/a)*a>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var i=this._state,s=this.cfg.outputLength/8,c=s/8,l=[],u=0;u<c;u++){var d=i[u],p=d.high,f=d.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),l.push(f),l.push(p)}return new r.init(l,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=o._createHelper(p),t.HmacSHA3=o._createHmacHelper(p)}(Math),function(){var e=s,t=e.lib.Hasher,n=e.x64,r=n.Word,o=n.WordArray,a=e.algo;function i(){return r.create.apply(r,arguments)}var c=[i(1116352408,3609767458),i(1899447441,602891725),i(3049323471,3964484399),i(3921009573,2173295548),i(961987163,4081628472),i(1508970993,3053834265),i(2453635748,2937671579),i(2870763221,3664609560),i(3624381080,2734883394),i(310598401,1164996542),i(607225278,1323610764),i(1426881987,3590304994),i(1925078388,4068182383),i(2162078206,991336113),i(2614888103,633803317),i(3248222580,3479774868),i(3835390401,2666613458),i(4022224774,944711139),i(264347078,2341262773),i(604807628,2007800933),i(770255983,1495990901),i(1249150122,1856431235),i(1555081692,3175218132),i(1996064986,2198950837),i(2554220882,3999719339),i(2821834349,766784016),i(2952996808,2566594879),i(3210313671,3203337956),i(3336571891,1034457026),i(3584528711,2466948901),i(113926993,3758326383),i(338241895,168717936),i(666307205,1188179964),i(773529912,1546045734),i(1294757372,1522805485),i(1396182291,2643833823),i(1695183700,2343527390),i(1986661051,1014477480),i(2177026350,1206759142),i(2456956037,344077627),i(2730485921,1290863460),i(2820302411,3158454273),i(3259730800,3505952657),i(3345764771,106217008),i(3516065817,3606008344),i(3600352804,1432725776),i(4094571909,1467031594),i(275423344,851169720),i(430227734,3100823752),i(506948616,1363258195),i(659060556,3750685593),i(883997877,3785050280),i(958139571,3318307427),i(1322822218,3812723403),i(1537002063,2003034995),i(1747873779,3602036899),i(1955562222,1575990012),i(2024104815,1125592928),i(2227730452,2716904306),i(2361852424,442776044),i(2428436474,593698344),i(2756734187,3733110249),i(3204031479,2999351573),i(3329325298,3815920427),i(3391569614,3928383900),i(3515267271,566280711),i(3940187606,3454069534),i(4118630271,4000239992),i(116418474,1914138554),i(174292421,2731055270),i(289380356,3203993006),i(460393269,320620315),i(685471733,587496836),i(852142971,1086792851),i(1017036298,365543100),i(1126000580,2618297676),i(1288033470,3409855158),i(1501505948,4234509866),i(1607167915,987167468),i(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=i()}();var u=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],u=n[5],d=n[6],p=n[7],f=r.high,h=r.low,m=o.high,v=o.low,g=a.high,_=a.low,b=i.high,y=i.low,O=s.high,M=s.low,k=u.high,C=u.low,w=d.high,S=d.low,T=p.high,I=p.low,E=f,j=h,D=m,L=v,A=g,N=_,R=b,x=y,P=O,U=M,V=k,B=C,F=w,G=S,H=T,Y=I,z=0;z<80;z++){var q,W,K=l[z];if(z<16)W=K.high=0|e[t+2*z],q=K.low=0|e[t+2*z+1];else{var $=l[z-15],J=$.high,X=$.low,Q=(J>>>1|X<<31)^(J>>>8|X<<24)^J>>>7,Z=(X>>>1|J<<31)^(X>>>8|J<<24)^(X>>>7|J<<25),ee=l[z-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ae=l[z-7],ie=ae.high,se=ae.low,ce=l[z-16],le=ce.high,ue=ce.low;W=(W=(W=Q+ie+((q=Z+se)>>>0<Z>>>0?1:0))+re+((q+=oe)>>>0<oe>>>0?1:0))+le+((q+=ue)>>>0<ue>>>0?1:0),K.high=W,K.low=q}var de,pe=P&V^~P&F,fe=U&B^~U&G,he=E&D^E&A^D&A,me=j&L^j&N^L&N,ve=(E>>>28|j<<4)^(E<<30|j>>>2)^(E<<25|j>>>7),ge=(j>>>28|E<<4)^(j<<30|E>>>2)^(j<<25|E>>>7),_e=(P>>>14|U<<18)^(P>>>18|U<<14)^(P<<23|U>>>9),be=(U>>>14|P<<18)^(U>>>18|P<<14)^(U<<23|P>>>9),ye=c[z],Oe=ye.high,Me=ye.low,ke=H+_e+((de=Y+be)>>>0<Y>>>0?1:0),Ce=ge+me;H=F,Y=G,F=V,G=B,V=P,B=U,P=R+(ke=(ke=(ke=ke+pe+((de+=fe)>>>0<fe>>>0?1:0))+Oe+((de+=Me)>>>0<Me>>>0?1:0))+W+((de+=q)>>>0<q>>>0?1:0))+((U=x+de|0)>>>0<x>>>0?1:0)|0,R=A,x=N,A=D,N=L,D=E,L=j,E=ke+(ve+he+(Ce>>>0<ge>>>0?1:0))+((j=de+Ce|0)>>>0<de>>>0?1:0)|0}h=r.low=h+j,r.high=f+E+(h>>>0<j>>>0?1:0),v=o.low=v+L,o.high=m+D+(v>>>0<L>>>0?1:0),_=a.low=_+N,a.high=g+A+(_>>>0<N>>>0?1:0),y=i.low=y+x,i.high=b+R+(y>>>0<x>>>0?1:0),M=s.low=M+U,s.high=O+P+(M>>>0<U>>>0?1:0),C=u.low=C+B,u.high=k+V+(C>>>0<B>>>0?1:0),S=d.low=S+G,d.high=w+F+(S>>>0<G>>>0?1:0),I=p.low=I+Y,p.high=T+H+(I>>>0<Y>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),function(){var e=s,t=e.x64,n=t.Word,r=t.WordArray,o=e.algo,a=o.SHA512,i=o.SHA384=a.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=a._createHelper(i),e.HmacSHA384=a._createHmacHelper(i)}(),s.lib.Cipher||function(e){var t=s,n=t.lib,r=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,i=t.enc,c=(i.Utf8,i.Base64),l=t.algo.EvpKDF,u=n.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:g}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()}),d=(n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),p=n.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=d.CBC=function(){var e=p.extend();function t(e,t,n){var r,o=this._iv;o?(r=o,this._iv=void 0):r=this._prevBlock;for(var a=0;a<n;a++)e[t+a]^=r[a]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize;t.call(this,e,n,o),r.encryptBlock(e,n),this._prevBlock=e.slice(n,n+o)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,a=e.slice(n,n+o);r.decryptBlock(e,n),t.call(this,e,n,o),this._prevBlock=a}}),e}(),h=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,a=r<<24|r<<16|r<<8|r,i=[],s=0;s<r;s+=4)i.push(a);var c=o.create(i,r);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},m=(n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:h}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),v=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},g=n.SerializableCipher=r.extend({cfg:r.extend({format:v}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),a=o.finalize(t),i=o.cfg;return m.create({ciphertext:a,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=o.random(8));var a=l.create({keySize:t+n}).compute(e,r),i=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,m.create({key:a,iv:i,salt:r})}},b=n.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:_}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=o.iv;var a=g.encrypt.call(this,e,t,o.key,r);return a.mixIn(o),a},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=o.iv,g.decrypt.call(this,e,t,o.key,r)}})}(),s.mode.CFB=function(){var e=s.lib.BlockCipherMode.extend();function t(e,t,n,r){var o,a=this._iv;a?(o=a.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var i=0;i<n;i++)e[t+i]^=o[i]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize;t.call(this,e,n,o,r),this._prevBlock=e.slice(n,n+o)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,a=e.slice(n,n+o);t.call(this,e,n,o,r),this._prevBlock=a}}),e}(),s.mode.ECB=((o=s.lib.BlockCipherMode.extend()).Encryptor=o.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),o.Decryptor=o.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),o),s.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,a=n+o-1;e.clamp(),e.words[a>>>2]|=o<<24-a%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},s.pad.Iso10126={pad:function(e,t){var n=4*t,r=n-e.sigBytes%n;e.concat(s.lib.WordArray.random(r-1)).concat(s.lib.WordArray.create([r<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},s.pad.Iso97971={pad:function(e,t){e.concat(s.lib.WordArray.create([2147483648],1)),s.pad.ZeroPadding.pad(e,t)},unpad:function(e){s.pad.ZeroPadding.unpad(e),e.sigBytes--}},s.mode.OFB=(n=s.lib.BlockCipherMode.extend(),r=n.Encryptor=n.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._keystream;o&&(a=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var i=0;i<r;i++)e[t+i]^=a[i]}}),n.Decryptor=r,n),s.pad.NoPadding={pad:function(){},unpad:function(){}},function(e){var t=s,n=t.lib.CipherParams,r=t.enc.Hex;t.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var t=r.parse(e);return n.create({ciphertext:t})}}}(),function(){var e=s,t=e.lib.BlockCipher,n=e.algo,r=[],o=[],a=[],i=[],c=[],l=[],u=[],d=[],p=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,s=0;for(t=0;t<256;t++){var h=s^s<<1^s<<2^s<<3^s<<4;h=h>>>8^255&h^99,r[n]=h,o[h]=n;var m=e[n],v=e[m],g=e[v],_=257*e[h]^16843008*h;a[n]=_<<24|_>>>8,i[n]=_<<16|_>>>16,c[n]=_<<8|_>>>24,l[n]=_,_=16843009*g^65537*v^257*m^16843008*n,u[h]=_<<24|_>>>8,d[h]=_<<16|_>>>16,p[h]=_<<8|_>>>24,f[h]=_,n?(n=m^e[e[e[g^m]]],s^=e[e[s]]):n=s=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,o=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],i=0;i<o;i++)i<n?a[i]=t[i]:(l=a[i-1],i%n?n>6&&i%n==4&&(l=r[l>>>24]<<24|r[l>>>16&255]<<16|r[l>>>8&255]<<8|r[255&l]):(l=r[(l=l<<8|l>>>24)>>>24]<<24|r[l>>>16&255]<<16|r[l>>>8&255]<<8|r[255&l],l^=h[i/n|0]<<24),a[i]=a[i-n]^l);for(var s=this._invKeySchedule=[],c=0;c<o;c++){if(i=o-c,c%4)var l=a[i];else l=a[i-4];s[c]=c<4||i<=4?l:u[r[l>>>24]]^d[r[l>>>16&255]]^p[r[l>>>8&255]]^f[r[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,i,c,l,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,p,f,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,a,i,s){for(var c=this._nRounds,l=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],p=e[t+3]^n[3],f=4,h=1;h<c;h++){var m=r[l>>>24]^o[u>>>16&255]^a[d>>>8&255]^i[255&p]^n[f++],v=r[u>>>24]^o[d>>>16&255]^a[p>>>8&255]^i[255&l]^n[f++],g=r[d>>>24]^o[p>>>16&255]^a[l>>>8&255]^i[255&u]^n[f++],_=r[p>>>24]^o[l>>>16&255]^a[u>>>8&255]^i[255&d]^n[f++];l=m,u=v,d=g,p=_}m=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&p])^n[f++],v=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[p>>>8&255]<<8|s[255&l])^n[f++],g=(s[d>>>24]<<24|s[p>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^n[f++],_=(s[p>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[f++],e[t]=m,e[t+1]=v,e[t+2]=g,e[t+3]=_},keySize:8});e.AES=t._createHelper(m)}(),function(){var e=s,t=e.lib,n=t.WordArray,r=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],i=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],s=0;s<16;s++){var l=o[s]=[],u=c[s];for(n=0;n<24;n++)l[n/6|0]|=t[(i[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(i[n+24]-1+u)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),p.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],a=this._lBlock,i=this._rBlock,s=0,c=0;c<8;c++)s|=l[c][((i^o[c])&u[c])>>>0];this._lBlock=i,this._rBlock=a^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,p.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function f(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=r._createHelper(d);var h=o.TripleDES=r.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(r)),this._des3=d.createEncryptor(n.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=r._createHelper(h)}(),function(){var e=s,t=e.lib.StreamCipher,n=e.algo,r=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var a=0;o<256;o++){var i=o%n,s=t[i>>>2]>>>24-i%4*8&255;a=(a+r[o]+s)%256;var c=r[o];r[o]=r[a],r[a]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var a=e[t];e[t]=e[n],e[n]=a,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}e.RC4=t._createHelper(r);var a=n.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),
/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/
s.mode.CTRGladman=function(){var e=s.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}var n=e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,a=this._iv,i=this._counter;a&&(i=this._counter=a.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(i);var s=i.slice(0);r.encryptBlock(s,0);for(var c=0;c<o;c++)e[n+c]^=s[c]}});return e.Decryptor=n,e}(),function(){var e=s,t=e.lib.StreamCipher,n=e.algo,r=[],o=[],a=[],i=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var a=t.words,i=a[0],s=a[1],l=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,p=u<<16|65535&l;for(o[0]^=l,o[1]^=d,o[2]^=u,o[3]^=p,o[4]^=l,o[5]^=d,o[6]^=u,o[7]^=p,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var o=0;o<4;o++)r[o]=16711935&(r[o]<<8|r[o]>>>24)|4278255360&(r[o]<<24|r[o]>>>8),e[t+o]^=r[o]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(i)}(),s.mode.CTR=function(){var e=s.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0);var i=a.slice(0);n.encryptBlock(i,0),a[r-1]=a[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=i[s]}});return e.Decryptor=t,e}(),function(){var e=s,t=e.lib.StreamCipher,n=e.algo,r=[],o=[],a=[],i=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var a=t.words,i=a[0],s=a[1],l=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,p=u<<16|65535&l;for(r[0]^=l,r[1]^=d,r[2]^=u,r[3]^=p,r[4]^=l,r[5]^=d,r[6]^=u,r[7]^=p,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var o=0;o<4;o++)r[o]=16711935&(r[o]<<8|r[o]>>>24)|4278255360&(r[o]<<24|r[o]>>>8),e[t+o]^=r[o]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(i)}(),s.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},s)}));return function(){function t(n){e(this,t);var r=n.logger,o=n.isArray,a=n.isMap,i=n.isDevMode;this._isArray=o,this._isMap=a,this._isDevMode=i,r.log("TIMProfanityFilterPlugin.VERSION:".concat("0.9.0")),this._interceptProfanityList=[],this._interceptFilter=null,this._interceptRegExpList=[],this._replacingProfanityMap=new Map,this._replacingFilter=null,this._replacingRegExpMap=new Map,this._key="",this._iv="",this._decryptOptions=void 0}return r(t,[{key:"onToken",value:function(e){this._key=f.enc.Utf8.parse(e.slice(0,32)),this._iv=this._key,this._decryptOptions={iv:this._iv,mode:f.mode.CBC,padding:f.pad.Pkcs7}}},{key:"onLexiconSliced",value:function(e){if(this._isArray(e)&&0!==e.length){var t,n,r,o=c(e);try{for(o.s();!(r=o.n()).done;){var a=r.value,i=a.filterType,s=a.profanityType,l=a.profanity,u=a.replacement;t=this._getDecryptedString(l),n=this._getDecryptedString(u),1===i?1===s?this._interceptProfanityList.push(t):2===s&&this._interceptRegExpList.push(t):2===i&&(1===s?this._replacingProfanityMap.set(t,n):2===s&&this._replacingRegExpMap.set(t,n))}}catch(p){o.e(p)}finally{o.f()}}}},{key:"_getDecryptedString",value:function(e){var t=f.AES.decrypt(e,this._key,this._decryptOptions);return f.enc.Utf8.stringify(t).toLowerCase()}},{key:"onLexiconCompleted",value:function(e){this.onLexiconSliced(e),this._interceptFilter=new u({input:this._interceptProfanityList,isArray:this._isArray,isMap:this._isMap}),this._replacingFilter=new u({input:this._replacingProfanityMap,isArray:this._isArray,isMap:this._isMap}),!0===this._isDevMode&&(console.log("TIMProfanityFilterPlugin _interceptProfanityList ->",this._interceptProfanityList),console.log("TIMProfanityFilterPlugin _interceptRegExpList ->",this._interceptRegExpList),console.log("TIMProfanityFilterPlugin _replacingProfanityMap ->",this._replacingProfanityMap),console.log("TIMProfanityFilterPlugin _replacingRegExpMap ->",this._replacingRegExpMap))}},{key:"filter",value:function(e){var t={type:0,modifiedText:e};if(!0===this._interceptFilter.filter({text:e,replacingEnabled:!1}).isMatched)return t.type=1,t;for(var n=!1,r=0,a=this._interceptRegExpList.length;r<a;r++)if(new RegExp(this._interceptRegExpList[r],"g").test(e)){n=!0;break}if(n)return t.type=1,t;var i=this._replacingFilter.filter({text:e,replacingEnabled:!0});!0===i.isMatched&&(t.type=2,t.modifiedText=i.modifiedText);var s,l=t.modifiedText,u=null,d=c(this._replacingRegExpMap);try{for(d.s();!(s=d.n()).done;){var p=o(s.value,2),f=p[0],h=p[1];u=new RegExp(f,"g"),l=l.replace(u,h)}}catch(m){d.e(m)}finally{d.f()}return l!==e&&(t.type=2,t.modifiedText=l),t}},{key:"reset",value:function(){this._isArray=null,this._isMap=null,this._interceptProfanityList.length=0,this._interceptRegExpList.length=0,this._replacingProfanityMap.clear(),this._replacingRegExpMap.clear(),this._key="",this._iv="",this._decryptOptions={},this._interceptFilter&&this._interceptFilter.reset(),this._replacingFilter&&this._replacingFilter.reset()}}]),t}()}))}).call(this,n("c8ba"))},de6a:function(e,t,n){"use strict";var r=n("a5eb"),o=n("06fa"),a=n("4fff"),i=n("5779"),s=n("f5fb"),c=o((function(){i(1)}));r({target:"Object",stat:!0,forced:c,sham:!s},{getPrototypeOf:function(e){return i(a(e))}})},dee0:function(e,t,n){"use strict";var r=n("6414"),o=n("638c"),a=n("4fff"),i=n("c74f"),s=n("4344"),c=n("6c15"),l=function(e){var t=1===e,n=2===e,l=3===e,u=4===e,d=6===e,p=7===e,f=5===e||d;return function(h,m,v){for(var g,_,b=a(h),y=o(b),O=i(y),M=r(m,v),k=0,C=0,w=t?s(h,O):n||p?s(h,0):void 0;O>k;k++)if((f||k in y)&&(g=y[k],_=M(g,k,b),e))if(t)c(w,k,_);else if(_)switch(e){case 3:return!0;case 5:return g;case 6:return k;case 2:c(w,C++,g)}else switch(e){case 4:return!1;case 7:c(w,C++,g)}return d?-1:l||u?u:w}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},df10:function(e,t,n){e.exports=n("8012")},df2b:function(e,t,n){"use strict";n("e23e4"),e.exports=-9007199254740991},df75:function(e,t,n){"use strict";var r=n("ca84"),o=n("7839");e.exports=Object.keys||function(e){return r(e,o)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(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,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}function o(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,a=arguments.length-1;a>=-1&&!r;a--){var i=a>=0?arguments[a]:e.cwd();if("string"!==typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(t=i+"/"+t,r="/"===i.charAt(0))}return t=n(o(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===a(e,-1);return e=n(o(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&i&&(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(o(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 o=r(e.split("/")),a=r(n.split("/")),i=Math.min(o.length,a.length),s=i,c=0;c<i;c++)if(o[c]!==a[c]){s=c;break}var l=[];for(c=s;c<o.length;c++)l.push("..");return l=l.concat(a.slice(s)),l.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,o=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),47===t){if(!o){r=a;break}}else o=!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,o=!0,a=0,i=e.length-1;i>=0;--i){var s=e.charCodeAt(i);if(47!==s)-1===r&&(o=!1,r=i+1),46===s?-1===t?t=i:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){n=i+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var a="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"))},dfb9:function(e,t,n){"use strict";var r=n("07fa");e.exports=function(e,t,n){var o=0,a=arguments.length>2?n:r(t),i=new e(a);while(a>o)i[o]=t[o++];return i}},dfdb:function(e,t,n){"use strict";var r=n("fb2d");e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},e050:function(e,t,n){"use strict";e.exports=Math.max},e0b4:function(e,t,n){"use strict";var r=n("8c68");e.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},e0c5:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:""},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","":"0"},r=e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}});return r}))},e12b:function(e,t,n){"use strict";var r=n("dfdb"),o=n("0273");e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},e160:function(e,t,n){"use strict";var r=n("1909");e.exports=r},e163:function(e,t,n){"use strict";var r=n("1a2d"),o=n("1626"),a=n("7b0b"),i=n("f7723"),s=n("e177"),c=i("IE_PROTO"),l=Object,u=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=a(e);if(r(t,c))return t[c];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof l?u:null}},e16f:function(e,t,n){"use strict";e.exports=Function.prototype.apply},e177:function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e1ba:function(e,t,n){"use strict";var r=n("68ec");e.exports=r},e1d3:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},e1f1:function(e,t,n){"use strict";var r=n("a5eb"),o=n("4e19"),a=n("f775"),i=n("7042"),s=a.get,c=a.has,l=a.set;r({target:"Map",proto:!0,real:!0,forced:i},{getOrInsertComputed:function(e,t){var n=c(this,e);if(o(t),n)return s(this,e);0===e&&1/e===-1/0&&(e=0);var r=t(e);return l(this,e,r),r}})},e219:function(e,t,n){"use strict";var r=n("a5eb"),o=n("ee07");r({global:!0,forced:parseFloat!==o},{parseFloat:o})},e23e:function(e,t,n){"use strict";(function(t){!function(t,n){e.exports=n()}(0,(function(){function e(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 n(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function r(e){return(r="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})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(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&&u(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){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 p(e,t,n){return(p=d()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&u(o,n.prototype),o}).apply(null,arguments)}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)})(e)}function h(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function g(e){var t=d();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function _(e,t){return y(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||M(e,t)||C()}function b(e){return function(e){if(Array.isArray(e))return k(e)}(e)||O(e)||M(e)||function(){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 y(e){if(Array.isArray(e))return e}function O(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function M(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}function k(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 C(){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 w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=M(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,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}var S={SDK_READY:"sdkStateReady",SDK_NOT_READY:"sdkStateNotReady",SDK_DESTROY:"sdkDestroy",MESSAGE_RECEIVED:"onMessageReceived",MESSAGE_MODIFIED:"onMessageModified",MESSAGE_REVOKED:"onMessageRevoked",MESSAGE_READ_BY_PEER:"onMessageReadByPeer",MESSAGE_READ_RECEIPT_RECEIVED:"onMessageReadReceiptReceived",MESSAGE_EXTENSIONS_UPDATED:"onMessageExtensionsUpdated",MESSAGE_EXTENSIONS_DELETED:"onMessageExtensionsDeleted",CONVERSATION_LIST_UPDATED:"onConversationListUpdated",TOTAL_UNREAD_MESSAGE_COUNT_UPDATED:"onTotalUnreadMessageCountUpdated",CONVERSATION_GROUP_LIST_UPDATED:"onConversationGroupListUpdated",CONVERSATION_IN_GROUP_UPDATED:"onConversationInGroupUpdated",GROUP_LIST_UPDATED:"onGroupListUpdated",GROUP_SYSTEM_NOTICE_RECEIVED:"receiveGroupSystemNotice",GROUP_ATTRIBUTES_UPDATED:"groupAttributesUpdated",GROUP_COUNTER_UPDATED:"onGroupCounterUpdated",TOPIC_CREATED:"onTopicCreated",TOPIC_DELETED:"onTopicDeleted",TOPIC_UPDATED:"onTopicUpdated",PROFILE_UPDATED:"onProfileUpdated",USER_STATUS_UPDATED:"onUserStatusUpdated",BLACKLIST_UPDATED:"blacklistUpdated",FRIEND_LIST_UPDATED:"onFriendListUpdated",FRIEND_GROUP_LIST_UPDATED:"onFriendGroupListUpdated",FRIEND_APPLICATION_LIST_UPDATED:"onFriendApplicationListUpdated",KICKED_OUT:"kickedOut",ERROR:"error",NET_STATE_CHANGE:"netStateChange",SDK_RELOAD:"sdkReload"},T={MSG_TEXT:"TIMTextElem",MSG_IMAGE:"TIMImageElem",MSG_SOUND:"TIMSoundElem",MSG_AUDIO:"TIMSoundElem",MSG_FILE:"TIMFileElem",MSG_FACE:"TIMFaceElem",MSG_VIDEO:"TIMVideoFileElem",MSG_GEO:"TIMLocationElem",MSG_LOCATION:"TIMLocationElem",MSG_GRP_TIP:"TIMGroupTipElem",MSG_GRP_SYS_NOTICE:"TIMGroupSystemNoticeElem",MSG_CUSTOM:"TIMCustomElem",MSG_MERGER:"TIMRelayElem",MSG_PRIORITY_HIGH:"High",MSG_PRIORITY_NORMAL:"Normal",MSG_PRIORITY_LOW:"Low",MSG_PRIORITY_LOWEST:"Lowest",CONV_C2C:"C2C",CONV_GROUP:"GROUP",CONV_TOPIC:"TOPIC",CONV_SYSTEM:"@TIM#SYSTEM",CONV_AT_ME:1,CONV_AT_ALL:2,CONV_AT_ALL_AT_ME:3,CONV_MARK_TYPE_STAR:1,CONV_MARK_TYPE_UNREAD:2,CONV_MARK_TYPE_FOLD:4,CONV_MARK_TYPE_HIDE:8,GRP_PRIVATE:"Private",GRP_WORK:"Private",GRP_PUBLIC:"Public",GRP_CHATROOM:"ChatRoom",GRP_MEETING:"ChatRoom",GRP_AVCHATROOM:"AVChatRoom",GRP_COMMUNITY:"Community",GRP_MBR_ROLE_OWNER:"Owner",GRP_MBR_ROLE_ADMIN:"Admin",GRP_MBR_ROLE_MEMBER:"Member",GRP_MBR_ROLE_CUSTOM:"Custom",GRP_TIP_MBR_JOIN:1,GRP_TIP_MBR_QUIT:2,GRP_TIP_MBR_KICKED_OUT:3,GRP_TIP_MBR_SET_ADMIN:4,GRP_TIP_MBR_CANCELED_ADMIN:5,GRP_TIP_GRP_PROFILE_UPDATED:6,GRP_TIP_MBR_PROFILE_UPDATED:7,GRP_TIP_BAN_AVCHATROOM_MEMBER:10,GRP_TIP_UNBAN_AVCHATROOM_MEMBER:11,MSG_REMIND_ACPT_AND_NOTE:"AcceptAndNotify",MSG_REMIND_ACPT_NOT_NOTE:"AcceptNotNotify",MSG_REMIND_DISCARD:"Discard",GENDER_UNKNOWN:"Gender_Type_Unknown",GENDER_FEMALE:"Gender_Type_Female",GENDER_MALE:"Gender_Type_Male",KICKED_OUT_MULT_ACCOUNT:"multipleAccount",KICKED_OUT_MULT_DEVICE:"multipleDevice",KICKED_OUT_USERSIG_EXPIRED:"userSigExpired",KICKED_OUT_REST_API:"REST_API_Kick",ALLOW_TYPE_ALLOW_ANY:"AllowType_Type_AllowAny",ALLOW_TYPE_NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_TYPE_DENY_ANY:"AllowType_Type_DenyAny",FORBID_TYPE_NONE:"AdminForbid_Type_None",FORBID_TYPE_SEND_OUT:"AdminForbid_Type_SendOut",JOIN_OPTIONS_FREE_ACCESS:"FreeAccess",JOIN_OPTIONS_NEED_PERMISSION:"NeedPermission",JOIN_OPTIONS_DISABLE_APPLY:"DisableApply",JOIN_STATUS_SUCCESS:"JoinedSuccess",JOIN_STATUS_ALREADY_IN_GROUP:"AlreadyInGroup",JOIN_STATUS_WAIT_APPROVAL:"WaitAdminApproval",INVITE_OPTIONS_DISABLE_INVITE:"DisableInvite",INVITE_OPTIONS_NEED_PERMISSION:"NeedPermission",INVITE_OPTIONS_FREE_ACCESS:"FreeAccess",GRP_PROFILE_OWNER_ID:"ownerID",GRP_PROFILE_CREATE_TIME:"createTime",GRP_PROFILE_LAST_INFO_TIME:"lastInfoTime",GRP_PROFILE_MEMBER_NUM:"memberNum",GRP_PROFILE_MAX_MEMBER_NUM:"maxMemberNum",GRP_PROFILE_JOIN_OPTION:"joinOption",GRP_PROFILE_INVITE_OPTION:"inviteOption",GRP_PROFILE_INTRODUCTION:"introduction",GRP_PROFILE_NOTIFICATION:"notification",GRP_PROFILE_MUTE_ALL_MBRS:"muteAllMembers",SNS_ADD_TYPE_SINGLE:"Add_Type_Single",SNS_ADD_TYPE_BOTH:"Add_Type_Both",SNS_DELETE_TYPE_SINGLE:"Delete_Type_Single",SNS_DELETE_TYPE_BOTH:"Delete_Type_Both",SNS_APPLICATION_TYPE_BOTH:"Pendency_Type_Both",SNS_APPLICATION_SENT_TO_ME:"Pendency_Type_ComeIn",SNS_APPLICATION_SENT_BY_ME:"Pendency_Type_SendOut",SNS_APPLICATION_AGREE:"Response_Action_Agree",SNS_APPLICATION_AGREE_AND_ADD:"Response_Action_AgreeAndAdd",SNS_CHECK_TYPE_BOTH:"CheckResult_Type_Both",SNS_CHECK_TYPE_SINGLE:"CheckResult_Type_Single",SNS_TYPE_NO_RELATION:"CheckResult_Type_NoRelation",SNS_TYPE_A_WITH_B:"CheckResult_Type_AWithB",SNS_TYPE_B_WITH_A:"CheckResult_Type_BWithA",SNS_TYPE_BOTH_WAY:"CheckResult_Type_BothWay",NET_STATE_CONNECTED:"connected",NET_STATE_CONNECTING:"connecting",NET_STATE_DISCONNECTED:"disconnected",MSG_AT_ALL:"__kImSDK_MesssageAtALL__",READ_ALL_C2C_MSG:"readAllC2CMessage",READ_ALL_GROUP_MSG:"readAllGroupMessage",READ_ALL_MSG:"readAllMessage",USER_STATUS_UNKNOWN:0,USER_STATUS_ONLINE:1,USER_STATUS_OFFLINE:2,USER_STATUS_UNLOGINED:3},I=function(){function e(){o(this,e),this.cache=[],this.options=null}return i(e,[{key:"use",value:function(e){if("function"!=typeof e)throw"middleware must be a function";return this.cache.push(e),this}},{key:"next",value:function(e){if(this.middlewares&&this.middlewares.length>0)return this.middlewares.shift().call(this,this.options,this.next.bind(this))}},{key:"run",value:function(e){return this.middlewares=this.cache.map((function(e){return e})),this.options=e,this.next()}}]),e}(),E=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(this,e),this.high=t,this.low=n}return i(e,[{key:"equal",value:function(e){return null!==e&&this.low===e.low&&this.high===e.high}},{key:"toString",value:function(){var e=Number(this.high).toString(16),t=Number(this.low).toString(16);if(t.length<8)for(var n=8-t.length;n;)t="0"+t,n--;return e+t}}]),e}(),j={TEST:{CHINA:{DEFAULT:"wss://wss-dev.tim.qq.com"},OVERSEA:{DEFAULT:"wss://wss-dev.tim.qq.com"},SINGAPORE:{DEFAULT:"wss://wsssgp-dev.im.qcloud.com"},KOREA:{DEFAULT:"wss://wsskr-dev.im.qcloud.com"},GERMANY:{DEFAULT:"wss://wssger-dev.im.qcloud.com"},IND:{DEFAULT:"wss://wssind-dev.im.qcloud.com"},JPN:{DEFAULT:"wss://wssjpn-dev.im.qcloud.com"},USA:{DEFAULT:"wss://wssusa-dev.im.qcloud.com"}},PRODUCTION:{CHINA:{DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.tim.qq.com",STAT:"https://events.im.qcloud.com",ANYCAST:"wss://162.14.13.203"},OVERSEA:{DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.my-imcloud.com",STAT:"https://api.my-imcloud.com"},SINGAPORE:{DEFAULT:"wss://wsssgp.im.qcloud.com",BACKUP:"wss://wsssgp.my-imcloud.com",STAT:"https://apisgp.my-imcloud.com"},KOREA:{DEFAULT:"wss://wsskr.im.qcloud.com",BACKUP:"wss://wsskr.my-imcloud.com",STAT:"https://apikr.my-imcloud.com"},GERMANY:{DEFAULT:"wss://wssger.im.qcloud.com",BACKUP:"wss://wssger.my-imcloud.com",STAT:"https://apiger.my-imcloud.com"},IND:{DEFAULT:"wss://wssind.my-imcloud.com",BACKUP:"wss://wssind.im.qcloud.com",STAT:"https://apiind.my-imcloud.com"},JPN:{DEFAULT:"wss://wssjpn.im.qcloud.com",BACKUP:"wss://wssjpn.my-imcloud.com",STAT:"https://apijpn.my-imcloud.com"},USA:{DEFAULT:"wss://wssusa.im.qcloud.com",BACKUP:"wss://wssusa.my-imcloud.com",STAT:"https://apiusa.my-imcloud.com"}}},D={ANDROID:2,IOS:3,MAC:4,WEB:7,WX_MP:8,QQ_MP:9,TT_MP:10,BAIDU_MP:11,ALI_MP:12,IPAD:13,UNI_NATIVE_APP:15},L="1.7.3",A=537048168,N="CHINA",R="OVERSEA",x="SINGAPORE",P="KOREA",U="GERMANY",V="IND",B="JPN",F="USA",G={HOST:{CURRENT:{DEFAULT:"wss://wss.im.qcloud.com",STAT:"https://events.im.qcloud.com"},setCurrent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N;this.CURRENT=j.PRODUCTION[e]}},NAME:{OPEN_IM:"openim",OPEN_IM_MSG_EXT:"openim_msg_ext_http_svc",GROUP:"group_open_http_svc",GROUP_AVCHATROOM:"group_open_avchatroom_http_svc",GROUP_COMMUNITY:"million_group_open_http_svc",GROUP_ATTR:"group_open_attr_http_svc",FRIEND:"sns",PROFILE:"profile",RECENT_CONTACT:"recentcontact",PIC:"openpic",BIG_GROUP_NO_AUTH:"group_open_http_noauth_svc",BIG_GROUP_LONG_POLLING:"group_open_long_polling_http_svc",BIG_GROUP_LONG_POLLING_NO_AUTH:"group_open_long_polling_http_noauth_svc",IM_OPEN_STAT:"imopenstat",WEB_IM:"webim",IM_COS_SIGN:"im_cos_sign_svr",CUSTOM_UPLOAD:"im_cos_msg",HEARTBEAT:"heartbeat",IM_OPEN_PUSH:"im_open_push",IM_OPEN_STATUS:"im_open_status",IM_LONG_MESSAGE:"im_long_msg",IM_CONFIG_MANAGER:"im_sdk_config_mgr",STAT_SERVICE:"StatSvc",OVERLOAD_PUSH:"OverLoadPush",IM_MSG_AUDIT_MGR:"im_msg_audit_mgr",TUIROOM_SVR:"tui_room_svr",IM_OPEN_TRANSLATE:"im_open_translate"},CMD:{LOGIN:"wslogin",LOGOUT_LONG_POLL:"longpollinglogout",LOGOUT:"wslogout",HELLO:"wshello",STAT_BACKGROUND:"ws_stat_background",STAT_FOREGROUND:"ws_stat_foreground",SET_TOKEN:"ws_stat_settoken",PORTRAIT_GET:"portrait_get_all",PORTRAIT_SET:"portrait_set",GET_LONG_POLL_ID:"getlongpollingid",LONG_POLL:"longpolling",AVCHATROOM_LONG_POLL:"get_msg",ADD_FRIEND:"friend_add",UPDATE_FRIEND:"friend_update",GET_FRIEND_LIST:"friend_get",GET_FRIEND_PROFILE:"friend_get_specified",DELETE_FRIEND:"friend_delete",CHECK_FRIEND:"friend_check",GET_FRIEND_GROUP_LIST:"group_get",RESPOND_FRIEND_APPLICATION:"friend_response",GET_FRIEND_APPLICATION_LIST:"pendency_get",DELETE_FRIEND_APPLICATION:"pendency_delete",REPORT_FRIEND_APPLICATION:"pendency_report",GET_GROUP_APPLICATION:"get_pendency",CREATE_FRIEND_GROUP:"group_add",DELETE_FRIEND_GROUP:"group_delete",UPDATE_FRIEND_GROUP:"group_update",GET_BLACKLIST:"black_list_get",ADD_BLACKLIST:"black_list_add",DELETE_BLACKLIST:"black_list_delete",CREATE_GROUP:"create_group",GET_JOINED_GROUPS:"get_joined_group_list",SET_GROUP_ATTRIBUTES:"set_group_attr",MODIFY_GROUP_ATTRIBUTES:"modify_group_attr",DELETE_GROUP_ATTRIBUTES:"delete_group_attr",CLEAR_GROUP_ATTRIBUTES:"clear_group_attr",GET_GROUP_ATTRIBUTES:"get_group_attr",SEND_MESSAGE:"sendmsg",REVOKE_C2C_MESSAGE:"msgwithdraw",DELETE_C2C_MESSAGE:"delete_c2c_msg_ramble",MODIFY_C2C_MESSAGE:"modify_c2c_msg",MODIFY_C2C_MESSAGE_EXTENSIONS:"set_key_values",GET_C2C_MESSAGE_EXTENSIONS:"get_key_values",SEND_GROUP_MESSAGE:"send_group_msg",REVOKE_GROUP_MESSAGE:"group_msg_recall",DELETE_GROUP_MESSAGE:"delete_group_ramble_msg_by_seq",MODIFY_GROUP_MESSAGE:"modify_group_msg",MODIFY_GROUP_MESSAGE_EXTENSIONS:"group_set_key_values",GET_GROUP_MESSAGE_EXTENSIONS:"group_get_key_values",GET_GROUP_INFO:"get_group_self_member_info",GET_GROUP_MEMBER_INFO:"get_specified_group_member_info",GET_GROUP_MEMBER_LIST:"get_group_member_info",GET_AVCHATROOM_MEMBER_LIST:"get_members",MARK_AVCHATROOM_MEMBER_INFO:"modify_user_info",QUIT_GROUP:"quit_group",CHANGE_GROUP_OWNER:"change_group_owner",DESTROY_GROUP:"destroy_group",ADD_GROUP_MEMBER:"add_group_member",DELETE_GROUP_MEMBER:"delete_group_member",BAN_AVCHATROOM_MEMBER:"ban_group_member",SEARCH_GROUP_BY_ID:"get_group_public_info",APPLY_JOIN_GROUP:"apply_join_group",HANDLE_APPLY_JOIN_GROUP:"handle_apply_join_group",HANDLE_INVITE_JOIN_GROUP:"handle_invite_join_permission_group",HANDLE_GROUP_INVITATION:"handle_invite_join_group",MODIFY_GROUP_INFO:"modify_group_base_info",MODIFY_GROUP_MEMBER_INFO:"modify_group_member_info",DELETE_GROUP_SYSTEM_MESSAGE:"deletemsg",DELETE_GROUP_AT_TIPS:"deletemsg",GET_GROUP_NOTIFY:"get_group_notify",GET_CONVERSATION_LIST:"get",PAGING_GET_CONVERSATION_LIST:"page_get",DELETE_CONVERSATION:"batch_delete",CLEAR_HISTORY_MESSAGE:"clear_msg",PIN_CONVERSATION:"top",SET_CONVERSATION_CUSTOM_DATA:"mark_contact",MARK_CONVERSATION:"mark_contact",CREATE_CONVERSATION_GROUP:"create_contact_group",DELETE_CONVERSATION_GROUP:"del_contact_group",UPDATE_CONVERSATION_GROUP:"update_contact_group",GET_CONVERSATION_GROUP_LIST:"get_contact_group",GET_MESSAGES:"getmsg",GET_C2C_ROAM_MESSAGES:"getroammsg",SET_C2C_PEER_MUTE_NOTIFICATIONS:"set_c2c_peer_mute_notifications",GET_C2C_PEER_MUTE_NOTIFICATIONS:"get_c2c_peer_mute_notifications",GET_GROUP_ROAM_MESSAGES:"group_msg_get",GET_READ_RECEIPT:"get_group_msg_receipt",GET_READ_RECEIPT_DETAIL:"get_group_msg_receipt_detail",SEND_READ_RECEIPT:"group_msg_receipt",SEND_C2C_READ_RECEIPT:"c2c_msg_read_receipt",SET_C2C_MESSAGE_READ:"msgreaded",GET_PEER_READ_TIME:"get_peer_read_time",SET_GROUP_MESSAGE_READ:"msg_read_report",FILE_READ_AND_WRITE_AUTHKEY:"authkey",FILE_UPLOAD:"pic_up",COS_SIGN:"cos",COS_PRE_SIG:"pre_sig",VIDEO_COVER:"video_cover",TIM_WEB_REPORT_V2:"tim_web_report_v2",BIG_DATA_HALLWAY_AUTH_KEY:"authkey",GET_ONLINE_MEMBER_NUM:"get_online_member_num",ALIVE:"alive",MESSAGE_PUSH:"msg_push",MULTI_MESSAGE_PUSH:"multi_msg_push_ws",MESSAGE_PUSH_ACK:"ws_msg_push_ack",STATUS_FORCE_OFFLINE:"stat_forceoffline",DOWNLOAD_MERGER_MESSAGE:"get_relay_json_msg",UPLOAD_MERGER_MESSAGE:"save_relay_json_msg",FETCH_CLOUD_CONTROL_CONFIG:"fetch_config",PUSHED_CLOUD_CONTROL_CONFIG:"push_configv2",FETCH_COMMERCIAL_CONFIG:"fetch_imsdk_purchase_bitsv2",PUSHED_COMMERCIAL_CONFIG:"push_imsdk_purchase_bitsv2",KICK_OTHER:"KickOther",OVERLOAD_NOTIFY:"notify2",SET_ALL_MESSAGE_READ:"read_all_unread_msg",CREATE_TOPIC:"create_topic",DELETE_TOPIC:"destroy_topic",UPDATE_TOPIC_PROFILE:"modify_topic",GET_TOPIC_LIST:"get_topic",SET_SELF_STATUS:"ws_set_custom_status",GET_USER_STATUS:"ws_get_user_status",SUBSCRIBE_USER_STATUS:"ws_status_subscribe",UNSUBSCRIBE_USER_STATUS:"ws_status_unsubscribe",GET_RPOFANITY_LIST:"get_local_words",TRANSLATE_TEXT:"ws_batch_trans_text",UPDATE_GROUP_COUNTER:"update_group_counter",GET_GROUP_COUNTER:"get_group_counter"},CHANNEL:{SOCKET:1,XHR:2,AUTO:0},NAME_VERSION:{openim:"v4",group_open_http_svc:"v4",sns:"v4",profile:"v4",recentcontact:"v4",openpic:"v4",group_open_http_noauth_svc:"v4",group_open_long_polling_http_svc:"v4",group_open_long_polling_http_noauth_svc:"v4",imopenstat:"v4",im_cos_sign_svr:"v4",im_cos_msg:"v4",webim:"v4",im_open_push:"v4",im_open_status:"v4"}},H={SEARCH_MSG:new E(0,Math.pow(2,0)).toString(),SEARCH_GRP_SNS:new E(0,Math.pow(2,1)).toString(),AVCHATROOM_HISTORY_MSG:new E(0,Math.pow(2,2)).toString(),GRP_COMMUNITY:new E(0,Math.pow(2,3)).toString(),MSG_TO_SPECIFIED_GRP_MBR:new E(0,Math.pow(2,4)).toString(),AVCHATROOM_MBR_LIST:new E(0,Math.pow(2,6)).toString(),USER_STATUS:new E(0,Math.pow(2,7)).toString(),CONV_MARK:new E(0,Math.pow(2,9)).toString(),CONV_GROUP:new E(0,Math.pow(2,10)).toString(),AVCHATROOM_BAN_MBR:new E(0,Math.pow(2,11)).toString(),MSG_EXT:new E(0,Math.pow(2,13)).toString(),GRP_COUNTER:new E(0,Math.pow(2,15)).toString()},Y="c2c_text_message",z="c2c_custom_message",q="group_text_message",W="group_custom_message",K="user_profile",$="group_profile",J="group_member_profile";G.HOST.setCurrent(N);var X="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),Q="undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),Z="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),ee="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),te="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),ne="undefined"!=typeof jd&&"function"==typeof jd.getSystemInfoSync,re="undefined"!=typeof uni&&"undefined"==typeof window&&"function"==typeof uni.requireNativePlugin,oe="undefined"!=typeof uni,ae=X||Q||Z||ee||te||re||ne,ie=("undefined"!=typeof uni||"undefined"!=typeof window)&&!ae,se=Q?qq:Z?tt:ee?swan:te?my:X?wx:re?uni:ne?jd:{},ce=ie&&window&&window.navigator&&window.navigator.userAgent||"",le=/(micromessenger|webbrowser)/i.test(ce),ue=/AppleWebKit\/([\d.]+)/i.exec(ce);ue&&parseFloat(ue.pop());var de,pe,fe=(de="WEB",le?de="WEB":Q?de="QQ_MP":Z?de="TT_MP":ee?de="BAIDU_MP":te?de="ALI_MP":X?de="WX_MP":re&&(de="UNI_NATIVE_APP"),D[de]),he=/iPad/i.test(ce),me=/iPhone/i.test(ce)&&!he,ve=/iPod/i.test(ce),ge=me||he||ve,_e=(pe=ce.match(/OS (\d+)_/i))&&pe[1]?pe[1]:null,be=/Android/i.test(ce),ye=function(){var e=ce.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}();!function(){var e=ce.match(/Chrome\/(\d+)/);e&&e[1]&&parseFloat(e[1])}();var Oe=/MSIE/.test(ce)||ce.indexOf("Trident")>-1&&ce.indexOf("rv:11.0")>-1,Me=function(){var e=/MSIE\s(\d+)\.\d/.exec(ce),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(ce)&&/rv:11.0/.test(ce)&&(t=11),t}();!function(){var e=ce.match(/TBS\/(\d+)/i);e&&e[1]&&e[1]}();var ke,Ce,we=/Windows/i.test(ce),Se=/MAC OS X/i.test(ce),Te=ie&&"undefined"!=typeof Worker&&!Oe,Ie=be||ge,Ee=ie&&void 0!==window.tencent_cloud_im_csig_flutter_for_web_25F_cy;ke="undefined"!=typeof console?console:"undefined"!=typeof t&&t.console?t.console:"undefined"!=typeof window&&window.console?window.console:{};for(var je=function(){},De=["assert","clear","count","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],Le=De.length;Le--;)Ce=De[Le],console[Ce]||(ke[Ce]=je);var Ae=ke,Ne=0,Re=function(){return(new Date).getTime()+Ne},xe=function(){Ne=0},Pe=function(){return Math.floor(Re()/1e3)},Ue=0;function Ve(){return Yt()?"%c TIM %c":"TIM"}function Be(){var e,t=((e=new Date).setTime(Re()),e);return t.toLocaleTimeString("en-US",{hour12:!1})+"."+function(e){var t;switch(e.toString().length){case 1:t="00"+e;break;case 2:t="0"+e;break;default:t=e}return t}(t.getMilliseconds())}var Fe={arguments2String:function(e){var t="";if(1===e.length)t=e[0];else for(var n=0,r=e.length;n<r;n++)st(e[n])?lt(e[n])?t+=ft(e[n]):t+=JSON.stringify(e[n]):t+=e[n],t+=" ";return t},_exec:function(e,t){Yt()?Ae[e](Ve(),"background:#0abf5b; padding:1px; border-radius:3px; color: #fff","background:transparent",Be(),t):Ae[e]("".concat(Ve()," ").concat(Be()," ").concat(t))},d:function(){if(Ue<=-1){var e=this.arguments2String(arguments);this._exec("debug",e)}},l:function(){if(Ue<=0){var e=this.arguments2String(arguments);this._exec("log",e)}},log:function(){if(Ue<=0){var e=this.arguments2String(arguments);this._exec("log",e)}},i:function(){if(Ue<=1){var e=this.arguments2String(arguments);this._exec("info",e)}},w:function(){if(Ue<=2){var e=this.arguments2String(arguments);this._exec("warn",e)}},e:function(){if(Ue<=3){var e=this.arguments2String(arguments);this._exec("error",e)}},setLevel:function(e){e<4&&this._exec("log","set level from "+Ue+" to "+e),Ue=e},getLevel:function(){return Ue}},Ge={JPG:1,JPEG:1,GIF:2,PNG:3,BMP:4,UNKNOWN:255},He={NICK:"Tag_Profile_IM_Nick",GENDER:"Tag_Profile_IM_Gender",BIRTHDAY:"Tag_Profile_IM_BirthDay",LOCATION:"Tag_Profile_IM_Location",SELFSIGNATURE:"Tag_Profile_IM_SelfSignature",ALLOWTYPE:"Tag_Profile_IM_AllowType",LANGUAGE:"Tag_Profile_IM_Language",AVATAR:"Tag_Profile_IM_Image",MESSAGESETTINGS:"Tag_Profile_IM_MsgSettings",ADMINFORBIDTYPE:"Tag_Profile_IM_AdminForbidType",LEVEL:"Tag_Profile_IM_Level",ROLE:"Tag_Profile_IM_Role"},Ye={UNKNOWN:"Gender_Type_Unknown",FEMALE:"Gender_Type_Female",MALE:"Gender_Type_Male"},ze={NONE:"AdminForbid_Type_None",SEND_OUT:"AdminForbid_Type_SendOut"},qe={NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_ANY:"AllowType_Type_AllowAny",DENY_ANY:"AllowType_Type_DenyAny"},We="JoinedSuccess",Ke="WaitAdminApproval",$e="@TGS#_",Je="@TOPIC#_",Xe=["url"],Qe=function(e){return"map"===ut(e)},Ze=function(e){return"file"===ut(e)},et=function(e){return null!==e&&("number"==typeof e&&!isNaN(e-0)||"object"===r(e)&&e.constructor===Number)},nt=function(e){return"string"==typeof e},rt=function(e){return null!==e&&"object"===r(e)},ot=function(e){if("object"!==r(e)||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n},at=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"array"===ut(e)},it=function(e){return void 0===e},st=function(e){return at(e)||rt(e)},ct=function(e){return"function"==typeof e},lt=function(e){return e instanceof Error},ut=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()},dt=function(e){if("string"!=typeof e)return!1;var t=e[0];return!/[^a-zA-Z0-9]/.test(t)};Date.now||(Date.now=function(){return(new Date).getTime()});var pt=function e(t,n,r,o){if(!st(t)||!st(n))return 0;for(var a,i=0,s=Object.keys(n),c=0,l=s.length;c<l;c++)if(a=s[c],!(it(n[a])||r&&r.includes(a)))if(st(t[a])&&st(n[a]))i+=e(t[a],n[a],r,o);else{if(o&&o.includes(n[a]))continue;t[a]!==n[a]&&(t[a]=n[a],i+=1)}return i},ft=function(e){return JSON.stringify(e,["message","code"])},ht=function(e){if(0===e.length)return 0;for(var t=0,n=0,r="undefined"!=typeof document&&void 0!==document.characterSet?document.characterSet:"UTF-8";void 0!==e[t];)n+=e[t++].charCodeAt[t]<=255?1:!1===r?3:2;return n},mt=function(e){var t=e||99999999;return Math.round(Math.random()*t)},vt="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",gt=vt.length,_t=function(e,t){for(var n in e)if(e[n]===t)return!0;return!1},bt={},yt=function(e){return-1===e.indexOf("http://")||-1===e.indexOf("https://")?"https://"+e:e.replace(/https|http/,"https")},Ot=function e(t){if(0===Object.getOwnPropertyNames(t).length)return Object.create(null);var n=Array.isArray(t)?[]:Object.create(null),o="";for(var a in t)null!==t[a]?void 0!==t[a]?(o=r(t[a]),["string","number","function","boolean"].indexOf(o)>=0?n[a]=t[a]:n[a]=e(t[a])):n[a]=void 0:n[a]=null;return n};function Mt(e,t){if(!at(e)||!at(t))return!1;var n=!1;return t.forEach((function(t){var r=t.key,o=t.value,a=e.find((function(e){return e.key===r}));a?a.value!==o&&(a.value=o,n=!0):(e.push({key:r,value:o}),n=!0)})),n}var kt=function(e){return e===T.GRP_AVCHATROOM},Ct=function(e){var t=e.type,n=e.groupID;return t===T.GRP_COMMUNITY||"".concat(n).startsWith($e)&&!"".concat(n).includes(Je)},wt=function(e){return"".concat(e).startsWith($e)&&"".concat(e).includes(Je)},St=function(e){return nt(e)&&e.slice(0,3)===T.CONV_C2C},Tt=function(e){return nt(e)&&e.slice(0,5)===T.CONV_GROUP},It=function(e){return nt(e)&&e===T.CONV_SYSTEM};function Et(e,t){var n={};return Object.keys(e).forEach((function(r){n[r]=t(e[r],r)})),n}function jt(e){return ae?new Promise((function(t,n){se.getImageInfo({src:e,success:function(e){t({width:e.width,height:e.height})},fail:function(){t({width:0,height:0})}})})):Oe&&9===Me?Promise.resolve({width:0,height:0}):new Promise((function(t,n){var r=new Image;r.onload=function(){t({width:this.width,height:this.height}),r=null},r.onerror=function(){t({width:0,height:0}),r=null},r.src=e}))}function Dt(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return"".concat(e()+e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e())}function Lt(){var e="unknown";if(Se&&(e="mac"),we&&(e="windows"),ge&&(e="ios"),be&&(e="android"),ae)try{var t=se.getSystemInfoSync().platform;void 0!==t&&(e=t)}catch(r){}return e}function At(e,t){e=e.split("."),t=t.split(".");for(var n=Math.max(e.length,t.length);e.length<n;)e.push("0");for(;t.length<n;)t.push("0");for(var r=0;r<n;r++){var o=parseInt(e[r]),a=parseInt(t[r]);if(o>a)return 1;if(o<a)return-1}return 0}function Nt(e){var t=e.originUrl,n=void 0===t?void 0:t,r=e.originWidth,o=e.originHeight,a=e.min,i=void 0===a?198:a,s=parseInt(r),c=parseInt(o),l={url:void 0,width:0,height:0};if((s<=c?s:c)<=i)l.url=n,l.width=s,l.height=c;else{c<=s?(l.width=Math.ceil(s*i/c),l.height=i):(l.width=i,l.height=Math.ceil(c*i/s));var u=n&&n.indexOf("?")>-1?"".concat(n,"&"):"".concat(n,"?");l.url="".concat(u,198===i?"imageView2/3/w/198/h/198":"imageView2/3/w/720/h/720")}return it(n)?(l.url,h(l,Xe)):l}function Rt(e){var t=e[2];e[2]=e[1],e[1]=t;for(var n=0;n<e.length;n++)e[n].setType(n)}function xt(e){var t=e.servcmd;return t.slice(t.indexOf(".")+1)}function Pt(e,t){return Math.round(Number(e)*Math.pow(10,t))/Math.pow(10,t)}function Ut(e,t){return e.includes(t)}function Vt(e,t){return e.includes(t)}function Bt(e){return e.split(Je)[0]}var Ft=function(e,t,n){if(it(t))return"";switch(e){case T.MSG_TEXT:return t.text;case T.MSG_IMAGE:return n?"[Image]":"[图片]";case T.MSG_LOCATION:return n?"[Location]":"[位置]";case T.MSG_AUDIO:return n?"[Voice]":"[语音]";case T.MSG_VIDEO:return n?"[Video]":"[视频]";case T.MSG_FILE:return n?"[File]":"[文件]";case T.MSG_CUSTOM:return n?"[Custom Messages]":"[自定义消息]";case T.MSG_GRP_TIP:return n?"[Group Notification]":"[群提示消息]";case T.MSG_GRP_SYS_NOTICE:return n?"[Group System Message]":"[群系统通知]";case T.MSG_FACE:return n?"[Animated Sticker]":"[动画表情]";case T.MSG_MERGER:return n?"[Chat Record]":"[聊天记录]";default:return""}};function Gt(e){return e===T.MSG_TEXT||e===T.MSG_CUSTOM||e===T.MSG_LOCATION||e===T.MSG_FACE}function Ht(e){var t=[];if(!nt(e))return t;var n=e.length;if(0===n)return t;for(var r=n-1;r>=0;r--)"1"===e[r]&&t.push(Math.pow(2,n-r-1));return t}function Yt(){return!Oe&&!ae}function zt(e){return"the length of userIDList cannot exceed ".concat(e)}function qt(e,t){if(e){var n=e;return t&&(e.startsWith("http://")?n=e.replace(/^http:\/\/[^/]+/,t):e.startsWith("https://")&&(n=e.replace(/^https:\/\/[^/]+/,t))),n}}var Wt=Object.prototype.hasOwnProperty;function Kt(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(ot(e)){for(var t in e)if(Wt.call(e,t))return!1;return!0}return!(!Qe(e)&&(n=e,"set"!==ut(n))&&!Ze(e))&&0===e.size;var n}function $t(e,t,n){if(void 0===t)return!0;var r=!0;if(ot(t))Object.keys(t).forEach((function(o){var a=1===e.length?e[0][o]:void 0;r=!!Jt(a,t[o],n,o)&&r}));else if(at(t))for(var o=0;o<t.length;o++)r=!!Jt(e[o],t[o],n,t[o].name)&&r;if(r)return r;throw new Error("Params validate failed.")}function Jt(e,t,n,r){if(void 0===t)return!0;var o=!0;if(t.required&&Kt(e)&&(Fe.e("[".concat(n,'] Missing required params: "').concat(r,'".')),o=!1),!Kt(e)){var a=ut(e),i=t.type.toLowerCase();a!==i&&("asyncfunction"===a&&"function"===i||(Fe.e("[".concat(n,'] Invalid params: type check failed for "').concat(r,'".Expected ').concat(t.type,".")),o=!1))}return t.validator&&!t.validator(e)&&(Fe.e("[".concat(n,"] Invalid params: custom validator check failed for params.")),o=!1),o}var Xt,Qt={UNSEND:"unSend",SUCCESS:"success",FAIL:"fail"},Zt={NOT_START:"notStart",PENDING:"pending",RESOLVED:"resolved",REJECTED:"rejected"},en=function(e){if(!e)return!1;if(St(e)||Tt(e)||It(e))return!0;var t=Tn("InvalidConversationID",e);return t&&Fe.w(t),!1},tn=function(e){""!==e.desc&&""!==Tn("API_REFER")&&Fe.w("[".concat(e.api,"] | ").concat(e.param," | ").concat(e.desc,", ").concat(Tn("API_REFER")).concat(e.api))},nn=function(){return Tn("StringRequiredLog")},rn=function(e){return Tn("NonEmptyStringRequiredLog",e)},on=function(){return Tn("NumberRequiredLog")},an=function(){return Tn("UndefinedNotAllowedLog")},sn=function(){return Tn("FileRequiredLog")},cn=function(){return Tn("FunctionRequiredLog")},ln=function(){return Tn("ArrayRequiredLog")},un=function(){return Tn("NonEmptyArrayLog")},dn=function(){return Tn("CallbackMissingLog")},pn=function(){return Tn("PositiveIntegerRequiredLog")},fn=function(e,t){return Tn("StringNotLongerThanLog",e,t)},hn=function(e,t){return Tn("NumberLessThanLog",e,t)},mn=function(e){return Tn("KeyValueStringRequiredLog",e)},vn=function(){return Tn("PlainObjectRequiredLog")},gn=function(){return Tn("NonEmptyContentRequiredLog")},_n=function(){return Tn("FileNotSelectedLog")},bn=function(){return Tn("MessageInstanceRequiredLog")},yn=function(){return Tn("NonAnonymousFunctionLog")},On=function(){return Tn("MessageExtensionNotAvailableLog")},Mn={type:"String",required:!0},kn={type:"Array",required:!0},Cn={type:"Object",required:!0},wn={type:"Boolean",required:!0},Sn={type:"number",required:!0},Tn=null,In={hookGetAPITips:function(e){Tn=e},login:{userID:Mn,userSig:Mn},addToBlacklist:{userIDList:kn},removeFromBlacklist:{userIDList:kn},on:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(tn({api:"on",param:"eventName",desc:rn("eventName")}),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(tn({api:"on",param:"handler",desc:cn()}),!1):(""===e.name&&tn({api:"on",param:"handler",desc:yn()}),!0)}}],once:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(tn({api:"once",param:"eventName",desc:rn("eventName")}),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(tn({api:"once",param:"handler",desc:cn()}),!1):(""===e.name&&tn({api:"once",param:"handler",desc:yn()}),!0)}}],off:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(tn({api:"off",param:"eventName",desc:rn("eventName")}),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(tn({api:"off",param:"handler",desc:cn()}),!1):(""===e.name&&tn({api:"off",param:"handler",desc:yn()}),!0)}}],sendMessage:[n({name:"message"},Cn)],setMessageExtensions:[n(n({name:"message"},Cn),{},{validator:function(e){return e.status===Qt.SUCCESS&&!0===e.isSupportExtension||(tn({api:"setMessageExtensions",param:"message",desc:On()}),!1)}}),n({name:"extensions"},kn)],getMessageExtensions:[n(n({name:"message"},Cn),{},{validator:function(e){return e.status===Qt.SUCCESS&&!0===e.isSupportExtension||(tn({api:"getMessageExtensions",param:"message",desc:On()}),!1)}})],deleteMessageExtensions:[n(n({name:"message"},Cn),{},{validator:function(e){return e.status===Qt.SUCCESS&&!0===e.isSupportExtension||(tn({api:"deleteMessageExtensions",param:"message",desc:On()}),!1)}})],getMessageList:{conversationID:n(n({},Mn),{},{validator:function(e){return en(e)}}),nextReqMessageID:{type:"String"},count:{type:"Number",validator:function(e){return!(!it(e)&&!/^[1-9][0-9]*$/.test(e))||(tn({api:"getMessageList",param:"count",desc:pn()}),!1)}}},getMessageListHopping:{conversationID:n(n({},Mn),{},{validator:function(e){return en(e)}}),sequence:{type:"Number"},time:{type:"Number"},direction:{type:"Number",validator:function(e){return!(!it(e)&&0!==e&&1!==e)||(tn({api:"getMessageListHopping",param:"direction",desc:Tn("0Or1RequiredLog")}),!1)}},count:{type:"Number",validator:function(e){return!(!it(e)&&!/^[1-9][0-9]*$/.test(e))||(tn({api:"getMessageListHopping",param:"count",desc:pn}),!1)}}},setMessageRead:{conversationID:n(n({},Mn),{},{validator:function(e){return en(e)}})},setAllMessageRead:{scope:{type:"String",required:!1,validator:function(e){return!e||-1!==[T.READ_ALL_C2C_MSG,T.READ_ALL_GROUP_MSG,T.READ_ALL_MSG].indexOf(e)||(tn({api:"setAllMessageRead",param:"scope",desc:"TIM.TYPES.READ_ALL_C2C_MSG or TIM.TYPES.READ_ALL_GROUP_MSG or TIM.TYPES.READ_ALL_MSG required"}),!1)}}},getConversationProfile:[n(n({name:"conversationID"},Mn),{},{validator:function(e){return en(e)}})],clearHistoryMessage:[n(n({name:"conversationID"},Mn),{},{validator:function(e){return en(e)}})],pinConversation:{conversationID:n(n({},Mn),{},{validator:function(e){return en(e)}}),isPinned:n({},wn)},setConversationCustomData:{conversationIDList:n({},kn),customData:{type:"String",validator:function(e){return nt(e)?!(e.length>256)||(tn({api:"setConversationCustomData",param:"customData",desc:fn("customData",256)}),!1):(tn({api:"setConversationCustomData",param:"customData",desc:nn()}),!1)}}},markConversation:{conversationIDList:n({},kn),markType:{type:"number",validator:function(e){return et(e)?e<=0?(tn({api:"markConversation",param:"markType",desc:(t="markType",n=0,Tn("NumberGreaterThanLog",t,n))}),!1):!(e>=Math.pow(2,64))||(tn({api:"markConversation",param:"markType",desc:hn("markType","Math.pow(2,64)")}),!1):(tn({api:"markConversation",param:"markType",desc:on()}),!1);var t,n}},enableMark:n({},wn)},createConversationGroup:{conversationIDList:n({},kn),groupName:n(n({},Mn),{},{validator:function(e){return!!e&&(!(e.length>32)||(tn({api:"createConversationGroup",param:"groupName",desc:fn("groupName",32)}),!1))}})},deleteConversationGroup:[n({name:"groupName"},Mn)],renameConversationGroup:{oldName:n({},Mn),newName:n(n({},Mn),{},{validator:function(e){return!!e&&(!(e.length>32)||(tn({api:"renameConversationGroup",param:"newName",desc:fn("newName",32)}),!1))}})},addConversationsToGroup:{conversationIDList:n({},kn),groupName:n({},Mn)},deleteConversationsFromGroup:{conversationIDList:n({},kn),groupName:n({},Mn)},getGroupList:{groupProfileFilter:{type:"Array"}},getGroupProfile:{groupID:Mn,groupCustomFieldFilter:{type:"Array"},memberCustomFieldFilter:{type:"Array"}},getGroupProfileAdvance:{groupIDList:kn},createGroup:{name:Mn},joinGroup:{groupID:Mn,type:{type:"String"},applyMessage:{type:"String"}},quitGroup:[n({name:"groupID"},Mn)],handleApplication:{message:Cn,handleAction:Mn,handleMessage:{type:"String"}},changeGroupOwner:{groupID:Mn,newOwnerID:Mn},updateGroupProfile:{groupID:Mn,muteAllMembers:{type:"Boolean"}},dismissGroup:[n({name:"groupID"},Mn)],searchGroupByID:[n({name:"groupID"},Mn)],initGroupAttributes:{groupID:Mn,groupAttributes:n(n({},Cn),{},{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!nt(e[n]))return tn({api:"initGroupAttributes",param:"groupAttributes",desc:mn("value")}),t=!1})),t}})},setGroupAttributes:{groupID:Mn,groupAttributes:n(n({},Cn),{},{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!nt(e[n]))return tn({api:"setGroupAttributes",param:"groupAttributes",desc:mn("value")}),t=!1})),t}})},deleteGroupAttributes:{groupID:Mn,keyList:{type:"Array",validator:function(e){if(it(e)||!at(e))return tn({api:"deleteGroupAttributes",param:"keyList",desc:ln()}),!1;if(!Kt(e)){var t=!0;return e.forEach((function(e){if(!nt(e))return tn({api:"deleteGroupAttributes",param:"keyList",desc:Tn("StringArrayRequiredLog")}),t=!1})),t}return!0}}},getGroupAttributes:{groupID:Mn,keyList:{type:"Array",validator:function(e){if(it(e)||!at(e))return tn({api:"getGroupAttributes",param:"keyList",desc:ln()}),!1;if(!Kt(e)){var t=!0;return e.forEach((function(e){if(!nt(e))return tn({api:"getGroupAttributes",param:"keyList",desc:mn("key")}),t=!1})),t}return!0}}},setGroupCounters:{groupID:Mn,counters:Cn},increaseGroupCounter:{groupID:Mn,key:Mn,value:Sn},decreaseGroupCounter:{groupID:Mn,key:Mn,value:Sn},getGroupCounters:{groupID:Mn},getGroupMemberList:{groupID:Mn,count:{type:"Number"}},getGroupMemberProfile:{groupID:Mn,userIDList:kn,memberCustomFieldFilter:{type:"Array"}},addGroupMember:{groupID:Mn,userIDList:kn},setGroupMemberRole:{groupID:Mn,userID:Mn,role:Mn},setGroupMemberMuteTime:{groupID:Mn,userID:Mn,muteTime:{type:"Number",validator:function(e){return e>=0}}},setGroupMemberNameCard:{groupID:Mn,userID:{type:"String"},nameCard:{type:"String",validator:function(e){return nt(e)?(e.length,!0):(tn({api:"setGroupMemberNameCard",param:"nameCard",desc:nn()}),!1)}}},setGroupMemberCustomField:{groupID:Mn,userID:{type:"String"},memberCustomField:kn},deleteGroupMember:{groupID:Mn},markGroupMemberList:{groupID:Mn,markType:{type:"number",validator:function(e){return et(e)?!(e<1e3)||(tn({api:"markGroupMemberList",param:"markType",desc:(t="markType",n=1e3,Tn("NumberGreaterOrEqualLog",t,n))}),!1):(tn({api:"markGroupMemberList",param:"markType",desc:on()}),!1);var t,n}},userIDList:n({},kn),enableMark:n({},wn)},createTextMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){return ot(e)?nt(e.text)?0!==e.text.length||(tn({api:"createTextMessage",param:"payload.text",desc:gn()}),!1):(tn({api:"createTextMessage",param:"payload.text",desc:nn()}),!1):(tn({api:"createTextMessage",param:"payload",desc:vn()}),!1)}})},createTextAtMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){return ot(e)?nt(e.text)?0===e.text.length?(tn({api:"createTextAtMessage",param:"payload.text",desc:gn()}),!1):!(e.atUserList&&!at(e.atUserList))||(tn({api:"createTextAtMessage",param:"payload.atUserList",desc:ln()}),!1):(tn({api:"createTextAtMessage",param:"payload.text",desc:nn()}),!1):(tn({api:"createTextAtMessage",param:"payload",desc:vn()}),!1)}})},createCustomMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){return ot(e)?e.data&&!nt(e.data)?(tn({api:"createCustomMessage",param:"payload.data",desc:nn()}),!1):e.description&&!nt(e.description)?(tn({api:"createCustomMessage",param:"payload.description",desc:nn()}),!1):!(e.extension&&!nt(e.extension))||(tn({api:"createCustomMessage",param:"payload.extension",desc:nn()}),!1):(tn({api:"createCustomMessage",param:"payload",desc:vn()}),!1)}})},createImageMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){if(!ot(e))return tn({api:"createImageMessage",param:"payload",desc:vn()}),!1;if(it(e.file))return tn({api:"createImageMessage",param:"payload.file",desc:an()}),!1;if(ie){if(!(e.file instanceof HTMLInputElement||Ze(e.file)))return ot(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(tn({api:"createImageMessage",param:"payload.file",desc:_n()}),!1):(tn({api:"createImageMessage",param:"payload.file",desc:sn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return tn({api:"createImageMessage",param:"payload.file",desc:_n()}),!1}return!0},onProgress:{type:"Function",required:!1,validator:function(e){return it(e)&&tn({api:"createImageMessage",param:"onProgress",desc:dn()}),!0}}})},createAudioMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){return!!ot(e)||(tn({api:"createAudioMessage",param:"payload",desc:vn()}),!1)}}),onProgress:{type:"Function",required:!1,validator:function(e){return it(e)&&tn({api:"createAudioMessage",param:"onProgress",desc:dn()}),!0}}},createVideoMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){if(!ot(e))return tn({api:"createVideoMessage",param:"payload",desc:vn()}),!1;if(it(e.file))return tn({api:"createVideoMessage",param:"payload.file",desc:an()}),!1;if(ie){if(!(e.file instanceof HTMLInputElement||Ze(e.file)))return ot(e.file)&&"undefined"!=typeof uni?!!Ze(e.file.tempFile)||(tn({api:"createVideoMessage",param:"payload.file",desc:_n()}),!1):(tn({api:"createVideoMessage",param:"payload.file",desc:sn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return tn({api:"createVideoMessage",param:"payload.file",desc:_n()}),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e){return it(e)&&tn({api:"createVideoMessage",param:"onProgress",desc:dn()}),!0}}},createFaceMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){return ot(e)?et(e.index)?!!nt(e.data)||(tn({api:"createFaceMessage",param:"payload.data",desc:nn()}),!1):(tn({api:"createFaceMessage",param:"payload.index",desc:on()}),!1):(tn({api:"createFaceMessage",param:"payload",desc:vn()}),!1)}})},createFileMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){if(!ot(e))return tn({api:"createFileMessage",param:"payload",desc:vn()}),!1;if(it(e.file))return tn({api:"createFileMessage",param:"payload.file",desc:an()}),!1;if(ie){if(!(e.file instanceof HTMLInputElement||Ze(e.file)))return ot(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(tn({api:"createFileMessage",param:"payload.file",desc:_n()}),!1):(tn({api:"createFileMessage",param:"payload.file",desc:sn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return tn({api:"createFileMessage",param:"payload.file",desc:_n()}),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e){return it(e)&&tn({api:"createFileMessage",param:"onProgress",desc:dn()}),!0}}},createLocationMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){return ot(e)?nt(e.description)?et(e.longitude)?!!et(e.latitude)||(tn({api:"createLocationMessage",param:"payload.latitude",desc:on()}),!1):(tn({api:"createLocationMessage",param:"payload.longitude",desc:on()}),!1):(tn({api:"createLocationMessage",param:"payload.description",desc:nn()}),!1):(tn({api:"createLocationMessage",param:"payload",desc:vn()}),!1)}})},createMergerMessage:{to:Mn,conversationType:Mn,payload:n(n({},Cn),{},{validator:function(e){if(Kt(e.messageList))return tn({api:"createMergerMessage",param:"payload.messageList",desc:un()}),!1;if(Kt(e.compatibleText))return tn({api:"createMergerMessage",param:"payload.compatibleText",desc:rn("compatibleText")}),!1;var t=!1;return e.messageList.forEach((function(e){e.status===Qt.FAIL&&(t=!0)})),!t||(tn({api:"createMergerMessage",param:"payload.messageList",desc:Tn("MergeFailedMessageLog")}),!1)}})},revokeMessage:[n(n({name:"message"},Cn),{},{validator:function(e){return Kt(e)?(tn({api:"revokeMessage",param:"message",desc:bn()}),!1):e.conversationType===T.CONV_SYSTEM?(tn({api:"revokeMessage",param:"message",desc:Tn("MessageCanBeRevokedDesc")}),!1):!0!==e.isRevoked||(tn({api:"revokeMessage",param:"message",desc:Tn("MessageRevokedLog")}),!1)}})],deleteMessage:[n(n({name:"messageList"},kn),{},{validator:function(e){return!Kt(e)||(tn({api:"deleteMessage",param:"messageList",desc:un()}),!1)}})],translateText:{sourceTextList:kn,sourceLanguage:Mn,targetLanguage:Mn},modifyMessage:[n(n({name:"message"},Cn),{},{validator:function(e){return Kt(e)?(tn({api:"modifyMessage",param:"message",desc:bn()}),!1):e.conversationType===T.CONV_SYSTEM?(tn({api:"modifyMessage",param:"message",desc:Tn("MessageCanBeModifiedLog")}),!1):!0!==e._onlineOnlyFlag||(tn({api:"modifyMessage",param:"message",desc:Tn("OnlineMessageNotSupportLog")}),!1)}})],getUserProfile:{userIDList:{type:"Array",validator:function(e){return at(e)?(0===e.length&&tn({api:"getUserProfile",param:"userIDList",desc:un()}),!0):(tn({api:"getUserProfile",param:"userIDList",desc:ln()}),!1)}}},updateMyProfile:{profileCustomField:{type:"Array",validator:function(e){return!!it(e)||!!at(e)||(tn({api:"updateMyProfile",param:"profileCustomField",desc:ln()}),!1)}}},setSelfStatus:{customStatus:{type:"String",validator:function(e){return!!nt(e)||(tn({api:"setSelfStatus",param:"customStatus",desc:nn()}),!1)}}},getUserStatus:{userIDList:{type:"Array",validator:function(e){return at(e)?0!==e.length||(tn({api:"getUserStatus",param:"userIDList",desc:un()}),!1):(tn({api:"getUserStatus",param:"userIDList",desc:ln()}),!1)}}},subscribeUserStatus:{userIDList:{type:"Array",validator:function(e){return at(e)?0!==e.length||(tn({api:"subscribeUserStatus",param:"userIDList",desc:un()}),!1):(tn({api:"subscribeUserStatus",param:"userIDList",desc:ln()}),!1)}}},unsubscribeUserStatus:{userIDList:{type:"Array",validator:function(e){return!e||!!at(e)||(tn({api:"subscribeUserStatus",param:"userIDList",desc:ln()}),!1)}}},addFriend:{to:Mn,source:{type:"String",required:!0,validator:function(e){return!!e&&(e.startsWith("AddSource_Type_")?!(e.replace("AddSource_Type_","").length>8)||(tn({api:"addFriend",param:"source",desc:fn("keyword",8)}),!1):(tn({api:"addFriend",param:"source",desc:Tn("SourcePrefixLog")}),!1))}},remark:{type:"String",required:!1,validator:function(e){return!(nt(e)&&e.length>96)||(tn({api:"addFriend",param:"remark",desc:fn("remark",96)}),!1)}}},deleteFriend:{userIDList:kn},checkFriend:{userIDList:kn},getFriendProfile:{userIDList:kn},updateFriend:{userID:Mn,remark:{type:"String",required:!1,validator:function(e){return!(nt(e)&&e.length>96)||(tn({api:"updateFriend",param:"remark",desc:fn("remark",96)}),!1)}},friendCustomField:{type:"Array",required:!1,validator:function(e){if(e){if(!at(e))return tn({api:"updateFriend",param:"friendCustomField",desc:ln()}),!1;var t=!0;return e.forEach((function(e){return nt(e.key)&&-1!==e.key.indexOf("Tag_SNS_Custom")?nt(e.value)?e.key.replace("Tag_SNS_Custom_","").length>8?(tn({api:"updateFriend",param:"friendCustomField",desc:fn("keyword",8)}),t=!1):void 0:(tn({api:"updateFriend",param:"friendCustomField",desc:mn("value")}),t=!1):(tn({api:"updateFriend",param:"friendCustomField",desc:Tn("FriendCustomFieldPrefixLog")}),t=!1)})),t}return!0}}},acceptFriendApplication:{userID:Mn},refuseFriendApplication:{userID:Mn},deleteFriendApplication:{userID:Mn},createFriendGroup:{name:Mn},deleteFriendGroup:{name:Mn},addToFriendGroup:{name:Mn,userIDList:kn},removeFromFriendGroup:{name:Mn,userIDList:kn},renameFriendGroup:{oldName:Mn,newName:Mn},sendMessageReadReceipt:[{name:"messageList",type:"Array",validator:function(e){return at(e)?0!==e.length||(tn({api:"sendMessageReadReceipt",param:"messageList",desc:un()}),!1):(tn({api:"sendMessageReadReceipt",param:"messageList",desc:ln()}),!1)}}],getMessageReadReceiptList:[{name:"messageList",type:"Array",validator:function(e){return at(e)?0!==e.length||(tn({api:"getMessageReadReceiptList",param:"messageList",desc:un()}),!1):(tn({api:"getMessageReadReceiptList",param:"messageList",desc:ln()}),!1)}}],createTopicInCommunity:{groupID:Mn,topicName:Mn},deleteTopicFromCommunity:{groupID:Mn,topicIDList:{type:"Array",validator:function(e){return!e||!!at(e)||(tn({api:"deleteTopicFromCommunity",param:"topicIDList",desc:ln()}),!1)}}},updateTopicProfile:{groupID:Mn,topicID:Mn},getTopicList:{groupID:Mn,topicIDList:{type:"Array",validator:function(e){return!e||!!at(e)||(tn({api:"getTopicList",param:"topicIDList",desc:ln()}),!1)}}}},En={login:1,logout:1,on:1,once:1,off:1,setLogLevel:1,registerPlugin:1,destroy:1,createTextMessage:1,createTextAtMessage:1,createImageMessage:1,createAudioMessage:1,createVideoMessage:1,createCustomMessage:1,createFaceMessage:1,createFileMessage:1,createLocationMessage:1,createMergerMessage:1,downloadMergerMessage:1,createForwardMessage:1,sendMessage:1,resendMessage:1,revokeMessage:1,deleteMessage:1,translateText:1,modifyMessage:1,sendMessageReadReceipt:1,getGroupMessageReadMemberList:1,getMessageReadReceiptList:1,setMessageExtensions:1,getMessageExtensions:1,deleteMessageExtensions:1,getMessageList:1,findMessage:1,getMessageListHopping:1,setMessageRead:1,setAllMessageRead:1,getConversationList:1,getConversationProfile:1,deleteConversation:1,pinConversation:1,getTotalUnreadMessageCount:1,setConversationCustomData:1,markConversation:1,createConversationGroup:1,getConversationGroupList:1,deleteConversationGroup:1,renameConversationGroup:1,addConversationsToGroup:1,deleteConversationsFromGroup:1,clearHistoryMessage:1,getGroupList:1,getGroupProfile:1,createGroup:1,joinGroup:1,updateGroupProfile:1,quitGroup:1,dismissGroup:1,changeGroupOwner:1,searchGroupByID:1,setMessageRemindType:1,getGroupApplicationList:1,handleGroupApplication:1,initGroupAttributes:1,setGroupAttributes:1,deleteGroupAttributes:1,getGroupAttributes:1,setGroupCounters:1,increaseGroupCounter:1,decreaseGroupCounter:1,getGroupCounters:1,getJoinedCommunityList:1,createTopicInCommunity:1,deleteTopicFromCommunity:1,updateTopicProfile:1,getTopicList:1,getGroupMemberProfile:1,getGroupMemberList:1,addGroupMember:1,deleteGroupMember:1,setGroupMemberNameCard:1,setGroupMemberMuteTime:1,setGroupMemberRole:1,setGroupMemberCustomField:1,getGroupOnlineMemberCount:1,markGroupMemberList:1,getMyProfile:1,getUserProfile:1,updateMyProfile:1,setSelfStatus:1,getUserStatus:1,subscribeUserStatus:1,unsubscribeUserStatus:1,getBlacklist:1,addToBlacklist:1,removeFromBlacklist:1,getFriendList:1,addFriend:1,deleteFriend:1,checkFriend:1,updateFriend:1,getFriendProfile:1,getFriendApplicationList:1,refuseFriendApplication:1,deleteFriendApplication:1,acceptFriendApplication:1,setFriendApplicationRead:1,getFriendGroupList:1,createFriendGroup:1,renameFriendGroup:1,deleteFriendGroup:1,addToFriendGroup:1,removeFromFriendGroup:1,callExperimentalAPI:1},jn=1,Dn=2,Ln=3,An=4,Nn=6,Rn=7,xn=8,Pn=9,Un=10,Vn=11,Bn=12,Fn=13,Gn=14,Hn=15,Yn=16,zn=17,qn=18,Wn=19,Kn=20,$n=21,Jn=22,Xn=23,Qn=24,Zn=25,er=26,tr=27,nr=28,rr=29,or=30,ar=31,ir=32,sr=function(){function e(t){o(this,e),this._m=t,this._n=""}return i(e,[{key:"isLoggedIn",value:function(){return this._m.getModule(Bn).isLoggedIn()}},{key:"isOversea",value:function(){return this._m.getModule(Bn).isOversea()}},{key:"isPrivateNetWork",value:function(){return this._m.getModule(Bn).isPrivateNetWork()}},{key:"getFileDownloadProxy",value:function(){return this._m.getModule(Bn).getFileDownloadProxy()}},{key:"getMyUserID",value:function(){return this._m.getModule(Bn).getUserID()}},{key:"getMyTinyID",value:function(){return this._m.getModule(Bn).getTinyID()}},{key:"getSDKAppID",value:function(){return this._m.getModule(Bn).getSDKAppID()}},{key:"isIntl",value:function(){return this._m.getModule(Bn).isIntl()}},{key:"isDevMode",value:function(){return this._m.getModule(Bn).isDevMode()}},{key:"getModule",value:function(e){return this._m.getModule(e)}},{key:"getPlatform",value:function(){return fe}},{key:"getNetworkType",value:function(){return this._m.getModule(Hn).getNetworkType()}},{key:"probeNetwork",value:function(e){return this._m.getModule(Hn).probe(e)}},{key:"getCloudConfig",value:function(e){return this._m.getModule(Xn).getCloudConfig(e)}},{key:"emitOuterEvent",value:function(e,t){this._m.getOuterEmitterInstance().emit(e,t)}},{key:"emitInnerEvent",value:function(e,t){this._m.getInnerEmitterInstance().emit(e,t)}},{key:"getInnerEmitterInstance",value:function(){return this._m.getInnerEmitterInstance()}},{key:"generateTjgID",value:function(e){return this._m.getModule(Bn).getTinyID()+"-"+e.random}},{key:"filterModifiedMessage",value:function(e){if(!Kt(e)){var t=e.filter((function(e){return!0===e.isModified}));t.length>0&&this.emitOuterEvent(S.MESSAGE_MODIFIED,t)}}},{key:"filterUnmodifiedMessage",value:function(e){return Kt(e)?[]:e.filter((function(e){return!1===e.isModified}))}},{key:"request",value:function(e){return this._m.getModule(Kn).request(e)}},{key:"canIUse",value:function(e){return this._m.getModule(tr).canIUse(e)}},{key:"getErrorMessage",value:function(e,t,n){return this._m.getErrorMessage(e,t,n)}},{key:"outputWarning",value:function(e,t,n){var r=this.getErrorMessage(e,t,n);r&&Fe.w(r)}}]),e}(),cr="wslogin",lr="wslogout",ur="wshello",dr="KickOther",pr="getmsg",fr="authkey",hr="sendmsg",mr="send_group_msg",vr="portrait_get_all",gr="portrait_set",_r="black_list_get",br="black_list_add",yr="black_list_delete",Or="msgwithdraw",Mr="msgreaded",kr="set_c2c_peer_mute_notifications",Cr="get_c2c_peer_mute_notifications",wr="getroammsg",Sr="get_peer_read_time",Tr="delete_c2c_msg_ramble",Ir="modify_c2c_msg",Er="set_key_values",jr="get_key_values",Dr="page_get",Lr="get",Ar="batch_delete",Nr="clear_msg",Rr="top",xr="deletemsg",Pr="set_conv_custom_data",Ur="mark_contact",Vr="create_contact_group",Br="del_contact_group",Fr="update_contact_group",Gr="add_conv_to_group",Hr="del_conv_from_group",Yr="get_contact_group",zr="get_joined_group_list",qr="get_group_self_member_info",Wr="create_group",Kr="destroy_group",$r="modify_group_base_info",Jr="apply_join_group",Xr="apply_join_group_noauth",Qr="quit_group",Zr="get_group_public_info",eo="change_group_owner",to="handle_apply_join_group",no="handle_invite_join_permission_group",ro="handle_invite_join_group",oo="group_msg_recall",ao="msg_read_report",io="read_all_unread_msg",so="group_msg_get",co="get_group_msg_receipt",lo="group_msg_receipt",uo="c2c_msg_read_receipt",po="get_group_msg_receipt_detail",fo="get_pendency",ho="deletemsg",mo="get_msg",vo="get_msg_noauth",go="get_online_member_num",_o="delete_group_ramble_msg_by_seq",bo="modify_group_msg",yo="set_group_attr",Oo="modify_group_attr",Mo="delete_group_attr",ko="clear_group_attr",Co="get_group_attr",wo="group_set_key_values",So="group_get_key_values",To="get_group_notify",Io="update_group_counter",Eo="get_group_counter",jo="get_group_member_info",Do="get_members",Lo="get_specified_group_member_info",Ao="add_group_member",No="delete_group_member",Ro="ban_group_member",xo="modify_group_member_info",Po="modify_user_info",Uo="cos",Vo="pre_sig",Bo="video_cover",Fo="tim_web_report_v2",Go="alive",Ho="msg_push",Yo="multi_msg_push_ws",zo="ws_msg_push_ack",qo="stat_forceoffline",Wo="save_relay_json_msg",Ko="get_relay_json_msg",$o="fetch_config",Jo="push_configv2",Xo="fetch_imsdk_purchase_bitsv2",Qo="push_imsdk_purchase_bitsv2",Zo="notify2",ea="create_topic",ta="destroy_topic",na="modify_topic",ra="get_topic",oa="ws_set_custom_status",aa="ws_get_user_status",ia="ws_status_subscribe",sa="ws_status_unsubscribe",ca="ws_stat_background",la="ws_stat_foreground",ua="ws_stat_settoken",da="get_local_words",pa="ws_batch_trans_text",fa={NO_SDKAPPID:2e3,NO_ACCOUNT_TYPE:2001,NO_IDENTIFIER:2002,NO_USERSIG:2003,NO_TINYID:2022,NO_A2KEY:2023,USER_NOT_LOGGED_IN:2024,REPEAT_LOGIN:2025,COS_UNDETECTED:2040,COS_GET_SIG_FAIL:2041,MESSAGE_SEND_FAIL:2100,MESSAGE_SEND_FAIL_NOT_IN_AVCHATROOM:2101,MESSAGE_SEND_NEED_MESSAGE_INSTANCE:2105,MESSAGE_SEND_INVALID_CONVERSATION_TYPE:2106,MESSAGE_FILE_IS_EMPTY:2108,MESSAGE_ONPROGRESS_FUNCTION_ERROR:2109,MESSAGE_REVOKE_FAIL:2110,MESSAGE_DELETE_FAIL:2111,MESSAGE_UNREAD_ALL_FAIL:2112,READ_RECEIPT_MESSAGE_LIST_EMPTY:2114,MESSAGE_SEND_GROUP_WITH_TOPIC_FAIL:2115,CANNOT_DELETE_GROUP_SYSTEM_NOTICE:2116,TRANSLATE_TEXT_FAIL:2117,MESSAGE_IMAGE_SELECT_FILE_FIRST:2251,MESSAGE_IMAGE_TYPES_LIMIT:2252,MESSAGE_IMAGE_SIZE_LIMIT:2253,MESSAGE_AUDIO_UPLOAD_FAIL:2300,MESSAGE_AUDIO_SIZE_LIMIT:2301,MESSAGE_VIDEO_UPLOAD_FAIL:2350,MESSAGE_VIDEO_SIZE_LIMIT:2351,MESSAGE_VIDEO_TYPES_LIMIT:2352,MESSAGE_FILE_UPLOAD_FAIL:2400,MESSAGE_FILE_SELECT_FILE_FIRST:2401,MESSAGE_FILE_SIZE_LIMIT:2402,MESSAGE_FILE_URL_IS_EMPTY:2403,MESSAGE_MERGER_TYPE_INVALID:2450,MESSAGE_MERGER_KEY_INVALID:2451,MESSAGE_MERGER_DOWNLOAD_FAIL:2452,MESSAGE_FORWARD_TYPE_INVALID:2453,MESSAGE_MODIFY_CONFLICT:2480,MESSAGE_MODIFY_DISABLED_IN_AVCHATROOM:2481,CONVERSATION_NOT_FOUND:2500,USER_OR_GROUP_NOT_FOUND:2501,CONVERSATION_UN_RECORDED_TYPE:2502,INVALID_CONVERSATION_ID:2503,ILLEGAL_GROUP_TYPE:2600,CANNOT_JOIN_WORK:2601,ILLEGAL_GROUP_ID:2602,CANNOT_FIND_GROUP:2603,CANNOT_CHANGE_OWNER_IN_AVCHATROOM:2620,CANNOT_CHANGE_OWNER_TO_SELF:2621,CANNOT_DISMISS_WORK:2622,MEMBER_NOT_IN_GROUP:2623,JOIN_GROUP_FAIL:2660,CANNOT_ADD_MEMBER_IN_AVCHATROOM:2661,CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN:2662,NOT_OWNER:2681,CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM:2682,INVALID_MEMBER_ROLE:2683,CANNOT_SET_SELF_MEMBER_ROLE:2684,CANNOT_MUTE_SELF:2685,BAN_DURATION_INVALID:2686,NOT_MY_FRIEND:2700,ALREADY_MY_FRIEND:2701,FRIEND_GROUP_EXISTED:2710,FRIEND_GROUP_NOT_EXIST:2711,FRIEND_APPLICATION_NOT_EXIST:2716,UPDATE_PROFILE_INVALID_PARAM:2721,UPDATE_PROFILE_NO_KEY:2722,CANNOT_ADD_SELF_TO_BLACKLIST:2742,NETWORK_ERROR:2800,NETWORK_TIMEOUT:2801,NO_NETWORK:2805,UNCAUGHT_ERROR:2903,INVALID_OPERATION:2905,OVER_FREQUENCY_LIMIT:2996,CANNOT_FIND_PROTOCOL:2997,CANNOT_FIND_MODULE:2998,SDK_IS_NOT_READY:2999,LOGGING_IN:3e3,LOGIN_FAILED:3001,KICKED_OUT_MULT_DEVICE:3002,KICKED_OUT_MULT_ACCOUNT:3003,KICKED_OUT_USERSIG_EXPIRED:3004,LOGGED_OUT:3005,KICKED_OUT_REST_API:3006,ILLEGAL_TOPIC_ID:3021,CANNOT_USE_COMMERCIAL_ABILITY:3122,PROFANITY_FOUND:3123,MESSAGE_A2KEY_EXPIRED:20002,ACCOUNT_A2KEY_EXPIRED:70001,HELLO_ANSWER_KICKED_OUT:1002,OPEN_SERVICE_OVERLOAD_ERROR:60022},ha="networkRTT",ma="messageE2EDelay",va="sendMessageC2C",ga="sendMessageGroup",_a="sendMessageGroupAV",ba="sendMessageRichMedia",ya="cosUpload",Oa="messageReceivedGroup",Ma="messageReceivedGroupAVPush",ka="messageReceivedGroupAVPull",Ca=(s(Xt={},ha,2),s(Xt,ma,3),s(Xt,va,4),s(Xt,ga,5),s(Xt,_a,6),s(Xt,ba,7),s(Xt,Oa,8),s(Xt,Ma,9),s(Xt,ka,10),s(Xt,ya,11),Xt),wa={info:4,warning:5,error:6},Sa={wifi:1,"2g":2,"3g":3,"4g":4,"5g":5,unknown:6,none:7,online:8},Ta={login:4},Ia=function(){function e(t){o(this,e),this._n="SSOLogData",this.eventType=Ta[t]||0,this.timestamp=0,this.networkType=8,this.code=0,this.message="",this.moreMessage="",this.extension=t,this.costTime=0,this.duplicate=!1,this.level=4,this.uiPlatform=void 0,this._sentFlag=!1,this._startts=Re()}return i(e,[{key:"updateTimeStamp",value:function(){this.timestamp=Re()}},{key:"start",value:function(e){return this._startts=e,this}},{key:"end",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._sentFlag){var n=Re();0===this.costTime&&(this.costTime=n-this._startts),this.setMoreMessage("startts:".concat(this._startts," endts:").concat(n)),t?(this._sentFlag=!0,this._eventStatModule&&this._eventStatModule.pushIn(this)):setTimeout((function(){e._sentFlag=!0,e._eventStatModule&&e._eventStatModule.pushIn(e)}),0)}}},{key:"setError",value:function(e,t,n){if(!(e instanceof Error))return Fe.w("".concat(this._n,".setError value not instanceof Error, please check!")),this;if(this._sentFlag)return this;if(this.setNetworkType(n),t)e.code&&this.setCode(e.code),e.message&&this.setMoreMessage(e.message);else{var r=fa.NO_NETWORK;this.setCode(r)}return this.setLevel("error"),this}},{key:"setCode",value:function(e){return it(e)||this._sentFlag||("ECONNABORTED"===e&&(this.code=103),et(e)?this.code=e:Fe.w("".concat(this._n,".setCode value not a number, please check!"),e,r(e))),this}},{key:"setMessage",value:function(e){return it(e)||this._sentFlag||(et(e)&&(this.message=e.toString()),nt(e)&&(this.message=e)),this}},{key:"setCostTime",value:function(e){return this.costTime=e,this}},{key:"setLevel",value:function(e){return it(e)||this._sentFlag||(this.level=wa[e]),this}},{key:"setMoreMessage",value:function(e){return Kt(this.moreMessage)?this.moreMessage="".concat(e):this.moreMessage+=" ".concat(e),this}},{key:"setNetworkType",value:function(e){if(it(e))Fe.w("".concat(this._n,".setNetworkType value is undefined, please check!"));else{var t=Sa[e.toLowerCase()];it(t)||(this.networkType=t)}return this}},{key:"getStartTs",value:function(){return this._startts}},{key:"setUIPlatform",value:function(e){this.uiPlatform=e}}],[{key:"bindEventStatModule",value:function(t){e.prototype._eventStatModule=t}}]),e}(),Ea=function(){function e(t){o(this,e),this.type=T.MSG_TEXT,this.content={text:t.text||""}}return i(e,[{key:"setText",value:function(e){this.content.text=e}},{key:"sendable",value:function(){return 0!==this.content.text.length}}]),e}(),ja=function(){function e(t,n){o(this,e),this._imageMemoryURL="",this._fileDownloadProxy=n,ae?this.createImageDataASURLInWXMiniApp(t.file):this.createImageDataASURLInWeb(t.file),this._initImageInfoModel(),this.type=T.MSG_IMAGE,this._percent=0,this.content={imageFormat:t.imageFormat||Ge.UNKNOWN,uuid:t.uuid,imageInfoArray:[]},this.initImageInfoArray(t.imageInfoArray),this._autoFixUrl()}return i(e,[{key:"_initImageInfoModel",value:function(){var e=this;this._ImageInfoModel=function(t){this.instanceID=mt(9999999),this.sizeType=t.type||0,this.type=0,this.size=t.size||0,this.width=t.width||0,this.height=t.height||0,this.imageUrl=t.url||"",this.url=qt(t.url||e._imageMemoryURL,e._fileDownloadProxy)},this._ImageInfoModel.prototype={setSizeType:function(e){this.sizeType=e},setType:function(e){this.type=e},setImageUrl:function(e){e&&(this.imageUrl=e)},getImageUrl:function(){return this.imageUrl}}}},{key:"initImageInfoArray",value:function(e){for(var t=0,n=null,r=null;t<=2;)r=it(e)||it(e[t])?{type:0,size:0,width:0,height:0,url:""}:e[t],(n=new this._ImageInfoModel(r)).setSizeType(t+1),n.setType(t),this.addImageInfo(n),t++;this.updateAccessSideImageInfoArray()}},{key:"updateImageInfoArray",value:function(e){for(var t,n=this.content.imageInfoArray.length,r=0;r<n;r++)t=this.content.imageInfoArray[r],e[r].size&&(t.size=e[r].size),e[r].url&&t.setImageUrl(e[r].url),e[r].width&&(t.width=e[r].width),e[r].height&&(t.height=e[r].height)}},{key:"_autoFixUrl",value:function(){for(var e=this.content.imageInfoArray.length,t="",n="",r=["http","https"],o=null,a=0;a<e;a++)this.content.imageInfoArray[a].url&&""!==(o=this.content.imageInfoArray[a]).imageUrl&&(n=o.imageUrl.slice(0,o.imageUrl.indexOf("://")+1),t=o.imageUrl.slice(o.imageUrl.indexOf("://")+1),r.indexOf(n)<0&&(n="https:"),this.content.imageInfoArray[a].setImageUrl([n,t].join("")))}},{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateImageFormat",value:function(e){this.content.imageFormat=Ge[e.toUpperCase()]||Ge.UNKNOWN}},{key:"createImageDataASURLInWeb",value:function(e){void 0!==e&&e.files.length>0&&(this._imageMemoryURL=window.URL.createObjectURL(e.files[0]))}},{key:"createImageDataASURLInWXMiniApp",value:function(e){e&&e.url&&(this._imageMemoryURL=e.url)}},{key:"replaceImageInfo",value:function(e,t){this.content.imageInfoArray[t]instanceof this._ImageInfoModel||(this.content.imageInfoArray[t]=e)}},{key:"addImageInfo",value:function(e){this.content.imageInfoArray.length>=3||this.content.imageInfoArray.push(e)}},{key:"updateAccessSideImageInfoArray",value:function(){var e=this.content.imageInfoArray,t=e[0],n=t.width,r=void 0===n?0:n,o=t.height,a=void 0===o?0:o;0!==r&&0!==a&&(Rt(e),Object.assign(e[2],Nt({originWidth:r,originHeight:a,min:720})))}},{key:"sendable",value:function(){return 0!==this.content.imageInfoArray.length&&""!==this.content.imageInfoArray[0].imageUrl&&0!==this.content.imageInfoArray[0].size}}]),e}(),Da=function(){function e(t){o(this,e),this.type=T.MSG_FACE,this.content=t||null}return i(e,[{key:"sendable",value:function(){return null!==this.content}}]),e}(),La=function(){function e(t,n){o(this,e),this.type=T.MSG_AUDIO,this._percent=0,this.content={downloadFlag:2,second:t.second,size:t.size,url:qt(t.url,n),remoteAudioUrl:t.url||"",uuid:t.uuid}}return i(e,[{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateAudioUrl",value:function(e){this.content.remoteAudioUrl=e}},{key:"sendable",value:function(){return""!==this.content.remoteAudioUrl}}]),e}(),Aa={from:!0,groupID:!0,groupName:!0,to:!0},Na=function(){function e(t){o(this,e),this.type=T.MSG_GRP_TIP,this.content={},this._initContent(t)}return i(e,[{key:"_initContent",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"remarkInfo":break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[n]);break;case"operatorInfo":break;case"memberInfoList":case"msgMemberInfo":t._updateMemberList(e[n]);break;case"memberExtraInfo":case"onlineMemberInfo":break;case"memberNum":t.content[n]=e[n],t.content.memberCount=e[n];break;case"newGroupProfile":t.content.newGroupProfile={},t._initNewGroupProfile(e[n]);break;default:t.content[n]=e[n]}})),this.content.userIDList||(this.content.userIDList=[this.content.operatorID])}},{key:"_initGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];Aa[r]&&(this.content.groupProfile[r]=e[r])}}},{key:"_updateMemberList",value:function(e){Kt(this.content.memberList)?this.content.memberList=e:this.content.memberList.forEach((function(t){e.forEach((function(e){t.userID===e.userID&&Object.assign(t,e)}))}))}},{key:"_initNewGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];this.content.newGroupProfile[r]="muteAllMembers"!==r?e[r]:1===e[r]}}}]),e}(),Ra={from:!0,groupID:!0,groupName:!0,to:!0},xa=function(){function e(t){o(this,e),this.type=T.MSG_GRP_SYS_NOTICE,this.content={},this._initContent(t)}return i(e,[{key:"_initContent",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"memberInfoList":break;case"remarkInfo":t.content.handleMessage=e[n];break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[n]);break;default:t.content[n]=e[n]}}))}},{key:"_initGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];Ra[r]&&("groupName"===r?this.content.groupProfile.name=e[r]:this.content.groupProfile[r]=e[r])}}}]),e}(),Pa=function(){function e(t,n){o(this,e),this.type=T.MSG_FILE,this._percent=0;var r=this._getFileInfo(t);this.content={downloadFlag:2,fileUrl:qt(t.url,n)||"",uuid:t.uuid,fileName:r.name||"",fileSize:r.size||0}}return i(e,[{key:"_getFileInfo",value:function(e){if(!it(e.fileName)&&!it(e.fileSize))return{size:e.fileSize,name:e.fileName};var t=e.file.files[0];if(re){if(t.path&&-1!==t.path.indexOf(".")){var n=t.path.slice(t.path.lastIndexOf(".")+1).toLowerCase();t.type=n,t.name||(t.name="".concat(mt(999999),".").concat(n))}t.name||(t.type="",t.name=t.path.slice(t.path.lastIndexOf("/")+1).toLowerCase()),t.suffix&&(t.type=t.suffix),t.url||(t.url=t.path)}return{size:t.size,name:t.name}}},{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateFileUrl",value:function(e){this.content.fileUrl=e}},{key:"sendable",value:function(){return""!==this.content.fileUrl&&""!==this.content.fileName&&0!==this.content.fileSize}}]),e}(),Ua=function(){function e(t){o(this,e),this.type=T.MSG_CUSTOM,this.content={data:t.data||"",description:t.description||"",extension:t.extension||""}}return i(e,[{key:"setData",value:function(e){return this.content.data=e,this}},{key:"setDescription",value:function(e){return this.content.description=e,this}},{key:"setExtension",value:function(e){return this.content.extension=e,this}},{key:"sendable",value:function(){return 0!==this.content.data.length||0!==this.content.description.length||0!==this.content.extension.length}}]),e}(),Va=function(){function e(t,n){o(this,e),this.type=T.MSG_VIDEO,this._percent=0,this.content={remoteVideoUrl:t.remoteVideoUrl||t.videoUrl||"",videoFormat:t.videoFormat,videoSecond:parseInt(t.videoSecond,10),videoSize:t.videoSize,videoUrl:qt(t.videoUrl,n),videoDownloadFlag:2,videoUUID:t.videoUUID,thumbUUID:t.thumbUUID,thumbFormat:t.thumbFormat,thumbWidth:t.thumbWidth,snapshotWidth:t.thumbWidth,thumbHeight:t.thumbHeight,snapshotHeight:t.thumbHeight,thumbSize:t.thumbSize,snapshotSize:t.thumbSize,thumbDownloadFlag:2,thumbUrl:qt(t.thumbUrl,n),snapshotUrl:qt(t.thumbUrl,n)}}return i(e,[{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateVideoUrl",value:function(e){e&&(this.content.remoteVideoUrl=e)}},{key:"updateSnapshotInfo",value:function(e){var t=e.snapshotUrl,n=e.snapshotWidth,r=e.snapshotHeight;Kt(t)||(this.content.thumbUrl=this.content.snapshotUrl=t),Kt(n)||(this.content.thumbWidth=this.content.snapshotWidth=Number(n)),Kt(r)||(this.content.thumbHeight=this.content.snapshotHeight=Number(r))}},{key:"sendable",value:function(){return""!==this.content.remoteVideoUrl}}]),e}(),Ba=function(){function e(t){o(this,e),this.type=T.MSG_LOCATION;var n=t.description,r=t.longitude,a=t.latitude;this.content={description:n,longitude:r,latitude:a}}return i(e,[{key:"sendable",value:function(){return!0}}]),e}(),Fa=function(){function e(t,n){if(o(this,e),this.from=t.from,this.messageSender=t.from,this.time=t.time,this.messageSequence=t.sequence,this.clientSequence=t.clientSequence||t.sequence,this.messageRandom=t.random,this.cloudCustomData=t.cloudCustomData||"",this.clientTime=t.clientTime||void 0,t.ID)this.ID=t.ID||"",this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[{type:t.type,payload:t.payload}],t.conversationType.startsWith(T.CONV_C2C)?this.receiverUserID=t.to:t.conversationType.startsWith(T.CONV_GROUP)&&(this.receiverGroupID=t.to),this.messageReceiver=t.to;else{this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[];var r=t.elements[0].type,a=t.elements[0].content;this._patchRichMediaPayload(r,a),this._updateRichMediaDownloadUrl(r,a,n),r===T.MSG_MERGER?this.messageBody.push({type:r,payload:new Ga(a).content}):this.messageBody.push({type:r,payload:a}),t.groupID&&(this.receiverGroupID=t.groupID,this.messageReceiver=t.groupID),t.to&&(this.receiverUserID=t.to,this.messageReceiver=t.to),this.ID="".concat(t.tinyID,"-").concat(t.clientTime,"-").concat(t.random)}}return i(e,[{key:"_patchRichMediaPayload",value:function(e,t){e===T.MSG_IMAGE?t.imageInfoArray.forEach((function(e){!e.imageUrl&&e.url&&(e.imageUrl=e.url,e.sizeType=e.type,1===e.type?e.type=0:3===e.type&&(e.type=1))})):e===T.MSG_VIDEO?!t.remoteVideoUrl&&t.videoUrl&&(t.remoteVideoUrl=t.videoUrl):e===T.MSG_AUDIO?!t.remoteAudioUrl&&t.url&&(t.remoteAudioUrl=t.url):e===T.MSG_FILE&&!t.fileUrl&&t.url&&(t.fileUrl=t.url,t.url=void 0)}},{key:"_updateRichMediaDownloadUrl",value:function(e,t,n){n&&(e===T.MSG_IMAGE?t.imageInfoArray.forEach((function(e){e.url=qt(e.url,n)})):e===T.MSG_VIDEO?(t.videoUrl=qt(t.videoUrl,n),t.snapshotUrl=qt(t.thumbUrl,n),t.snapshotHeight=t.thumbHeight,t.snapshotWidth=t.thumbWidth):e===T.MSG_AUDIO?t.url=qt(t.url,n):e===T.MSG_FILE&&(t.fileUrl=qt(t.fileUrl,n)))}}]),e}(),Ga=function(){function e(t,n){if(o(this,e),this.type=T.MSG_MERGER,this.content={downloadKey:"",pbDownloadKey:"",messageList:[],title:"",abstractList:[],compatibleText:"",version:0,layersOverLimit:!1},t.downloadKey){var r=t.downloadKey,a=t.pbDownloadKey,i=t.title,s=t.abstractList,c=t.compatibleText,l=t.version;this.content.downloadKey=r,this.content.pbDownloadKey=a,this.content.title=i,this.content.abstractList=s,this.content.compatibleText=c,this.content.version=l||0}else if(Kt(t.messageList))1===t.layersOverLimit&&(this.content.layersOverLimit=!0);else{var u=t.messageList,d=t.title,p=t.abstractList,f=t.compatibleText,h=t.version,m=[];u.forEach((function(e){if(!Kt(e)){var t=new Fa(e,n);m.push(t)}})),this.content.messageList=m,this.content.title=d,this.content.abstractList=p,this.content.compatibleText=f,this.content.version=h||0}}return i(e,[{key:"sendable",value:function(){return!Kt(this.content.messageList)||!Kt(this.content.downloadKey)}}]),e}(),Ha={1:T.MSG_PRIORITY_HIGH,2:T.MSG_PRIORITY_NORMAL,3:T.MSG_PRIORITY_LOW,4:T.MSG_PRIORITY_LOWEST},Ya=function(){function e(t){o(this,e),this.ID="",this.conversationID=t.conversationID||null,this.conversationType=t.conversationType||T.CONV_C2C,this.conversationSubType=t.conversationSubType,this.time=t.time||Math.ceil(Date.now()/1e3),this.sequence=t.sequence||0,this.clientSequence=t.clientSequence||t.sequence||0,this.random=t.random||0===t.random?t.random:mt(),this.priority=this._computePriority(t.priority),this.nick=t.nick||"",this.avatar=t.avatar||"",this.isPeerRead=!1,this.nameCard="",this._elements=[],this.isPlaceMessage=t.isPlaceMessage||0,this.isRevoked=2===t.isPlaceMessage||8===t.msgFlagBits,this.from=t.from||null,this.to=t.to||null,this.flow="",this.isSystemMessage=t.isSystemMessage||!1,this.protocol=t.protocol||"JSON",this.isResend=!1,this.isRead=!1,this.status=t.status||Qt.SUCCESS,this._onlineOnlyFlag=!1,this._groupAtInfoList=[],this._relayFlag=!1,this.atUserList=[],this.cloudCustomData=t.cloudCustomData||"",this.isDeleted=!1,this.isModified=!1,this._isExcludedFromUnreadCount=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromUnreadCount),this._isExcludedFromLastMessage=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromLastMessage),this.clientTime=t.clientTime||Pe()||0,this.senderTinyID=t.senderTinyID||t.tinyID||"",this.readReceiptInfo=t.readReceiptInfo||{readCount:void 0,unreadCount:void 0,isPeerRead:void 0},this.needReadReceipt=!0===t.needReadReceipt||1===t.needReadReceipt,this.version=t.messageVersion||0,this.isBroadcastMessage=t.isBroadcastMessage||!1,this._receiverList=t.receiverList||void 0,this.isSupportExtension=!0===t.isSupportExtension||1===t.isSupportExtension,this.revoker=t.revokerInfo&&t.revokerInfo.revoker||null,this.reInitialize(t.currentUser),this.extractGroupInfo(t.groupProfile||null),this.handleGroupAtInfo(t),this.initC2CReadReceiptInfo(t.readReceiptSentByPeer)}return i(e,[{key:"elements",get:function(){return this._elements}},{key:"getElements",value:function(){return this._elements}},{key:"extractGroupInfo",value:function(e){if(null!==e){nt(e.nick)&&(this.nick=e.nick),nt(e.avatar)&&(this.avatar=e.avatar);var t=e.messageFromAccountExtraInformation;ot(t)&&nt(t.nameCard)&&(this.nameCard=t.nameCard)}}},{key:"handleGroupAtInfo",value:function(e){var t=this;e.payload&&e.payload.atUserList&&e.payload.atUserList.forEach((function(e){e!==T.MSG_AT_ALL?(t._groupAtInfoList.push({groupAtAllFlag:0,groupAtUserID:e}),t.atUserList.push(e)):(t._groupAtInfoList.push({groupAtAllFlag:1}),t.atUserList.push(T.MSG_AT_ALL))})),at(e.groupAtInfo)&&e.groupAtInfo.forEach((function(e){0===e.groupAtAllFlag?t.atUserList.push(e.groupAtUserID):1===e.groupAtAllFlag&&t.atUserList.push(T.MSG_AT_ALL)}))}},{key:"getGroupAtInfoList",value:function(){return this._groupAtInfoList}},{key:"_initProxy",value:function(){this._elements[0]&&(this.payload=this._elements[0].content,this.type=this._elements[0].type)}},{key:"reInitialize",value:function(e){e&&(this.status=this.from?Qt.SUCCESS:Qt.UNSEND,!this.from&&(this.from=e)),this._initFlow(e),this._initSequence(e),this._concatConversationID(e),this.generateMessageID()}},{key:"isSendable",value:function(){return 0!==this._elements.length&&"function"==typeof this._elements[0].sendable&&this._elements[0].sendable()}},{key:"_initTo",value:function(e){this.conversationType===T.CONV_GROUP&&(this.to=e.groupID)}},{key:"_initSequence",value:function(e){0===this.clientSequence&&e&&(this.clientSequence=function(e){if(!e)return!1;if(void 0===bt[e]){var t=new Date,n="3".concat(t.getHours()).slice(-2),r="0".concat(t.getMinutes()).slice(-2),o="0".concat(t.getSeconds()).slice(-2);bt[e]=parseInt([n,r,o,"0001"].join("")),n=null,r=null,o=null,Fe.l("autoIncrementIndex start index:".concat(bt[e]))}return bt[e]++}(e)),0===this.sequence&&this.conversationType===T.CONV_C2C&&(this.sequence=this.clientSequence)}},{key:"generateMessageID",value:function(){this.from===T.CONV_SYSTEM&&(this.senderTinyID="144115198244471703"),this.ID="".concat(this.senderTinyID,"-").concat(this.clientTime,"-").concat(this.random)}},{key:"_initFlow",value:function(e){""!==e&&(e===this.from?(this.flow="out",this.isRead=!0):this.flow="in")}},{key:"_concatConversationID",value:function(e){var t=this.to,n="",r=this.conversationType;r!==T.CONV_SYSTEM?(n=r===T.CONV_C2C?e===this.from?t:this.from:this.to,this.conversationID=n?"".concat(r).concat(n):null):this.conversationID=T.CONV_SYSTEM}},{key:"isElement",value:function(e){return e instanceof Ea||e instanceof ja||e instanceof Da||e instanceof La||e instanceof Pa||e instanceof Va||e instanceof Na||e instanceof xa||e instanceof Ua||e instanceof Ba||e instanceof Ga}},{key:"setElement",value:function(e,t){var n=this;if(this.isElement(e))return this._elements=[e],void this._initProxy();var r=function(e){if(e.type&&e.content)switch(e.type){case T.MSG_TEXT:n.setTextElement(e.content);break;case T.MSG_IMAGE:n.setImageElement(e.content,t);break;case T.MSG_AUDIO:n.setAudioElement(e.content,t);break;case T.MSG_FILE:n.setFileElement(e.content,t);break;case T.MSG_VIDEO:n.setVideoElement(e.content,t);break;case T.MSG_CUSTOM:n.setCustomElement(e.content);break;case T.MSG_LOCATION:n.setLocationElement(e.content);break;case T.MSG_GRP_TIP:n.setGroupTipElement(e.content);break;case T.MSG_GRP_SYS_NOTICE:n.setGroupSystemNoticeElement(e.content);break;case T.MSG_FACE:n.setFaceElement(e.content);break;case T.MSG_MERGER:n.setMergerElement(e.content,t)}};if(at(e))for(var o=0;o<e.length;o++)r(e[o]);else r(e);this._initProxy()}},{key:"clearElement",value:function(){this._elements.length=0}},{key:"setTextElement",value:function(e){var t="string"==typeof e?e:e.text,n=new Ea({text:t});this._elements.push(n)}},{key:"setImageElement",value:function(e,t){var n=new ja(e,t);this._elements.push(n)}},{key:"setAudioElement",value:function(e,t){var n=new La(e,t);this._elements.push(n)}},{key:"setFileElement",value:function(e,t){var n=new Pa(e,t);this._elements.push(n)}},{key:"setVideoElement",value:function(e,t){var n=new Va(e,t);this._elements.push(n)}},{key:"setLocationElement",value:function(e){var t=new Ba(e);this._elements.push(t)}},{key:"setCustomElement",value:function(e){var t=new Ua(e);this._elements.push(t)}},{key:"setGroupTipElement",value:function(e){var t={},n=e.operationType;if(Kt(e.memberInfoList)?e.operatorInfo&&(t=e.operatorInfo):n!==T.GRP_TIP_MBR_JOIN&&n!==T.GRP_TIP_MBR_KICKED_OUT&&n!==T.GRP_TIP_MBR_SET_ADMIN&&n!==T.GRP_TIP_MBR_CANCELED_ADMIN||(t=e.memberInfoList[0]),!Kt(e.memberExtraInfo)){var r=e.memberExtraInfo.reason;e.msgMemberInfo.forEach((function(e){e.reason=r}))}var o=t,a=o.nick,i=o.avatar;nt(a)&&(this.nick=a),nt(i)&&(this.avatar=i);var s=new Na(e);this._elements.push(s)}},{key:"setGroupSystemNoticeElement",value:function(e){var t=new xa(e);this._elements.push(t)}},{key:"setFaceElement",value:function(e){var t=new Da(e);this._elements.push(t)}},{key:"setMergerElement",value:function(e,t){var n=new Ga(e,t);this._elements.push(n)}},{key:"setIsRead",value:function(e){this.isRead=e}},{key:"setRelayFlag",value:function(e){this._relayFlag=e}},{key:"getRelayFlag",value:function(){return this._relayFlag}},{key:"_computePriority",value:function(e){if(it(e))return T.MSG_PRIORITY_NORMAL;if(nt(e)&&-1!==Object.values(Ha).indexOf(e))return e;if(et(e)){var t=""+e;if(-1!==Object.keys(Ha).indexOf(t))return Ha[t]}return T.MSG_PRIORITY_NORMAL}},{key:"setNickAndAvatar",value:function(e){var t=e.nick,n=e.avatar;nt(t)&&(this.nick=t),nt(n)&&(this.avatar=n)}},{key:"setNameCard",value:function(e){nt(e)&&(this.nameCard=e)}},{key:"initC2CReadReceiptInfo",value:function(e){this.conversationType===T.CONV_C2C&&!0===this.needReadReceipt&&(this.readReceiptInfo.isPeerRead=1===e)}}]),e}(),za=function(e){return{code:0,data:e||{}}},qa=function(e){c(n,e);var t=g(n);function n(e){var r;o(this,n),r=t.call(this);var a=e.code,i=e.message,s=e.data;return r.code=a,r.message=i||r._getErrorMessage(r.code),r.data=s||{},r}return i(n)}(f(Error)),Wa=null,Ka=function(e){Wa=e},$a=function(e){return Promise.resolve(za(e))},Ja=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof qa)return t&&null!==Wa&&Wa.emit(S.ERROR,e),Promise.reject(e);if(e instanceof Error){var n=new qa({code:fa.UNCAUGHT_ERROR});return t&&null!==Wa&&Wa.emit(S.ERROR,n),Promise.reject(n)}if(!it(e)&&!it(e.code)){var r=new qa(e);return t&&null!==Wa&&Wa.emit(S.ERROR,r),Promise.reject(r)}},Xa=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="C2CModule",n._messageFromUnreadDBMap=new Map,n._signalingFromUnreadDBList=[],n}return i(r,[{key:"onNewC2CMessage",value:function(e){var t=e.dataList,n=e.isInstantMessage,r=e.C2CRemainingUnreadList,o=e.C2CPairUnreadList;Fe.d("".concat(this._n,".onNewC2CMessage count:").concat(t.length," isInstantMessage:").concat(n));var a=this._newC2CMessageStoredAndSummary({dataList:t,C2CRemainingUnreadList:r,C2CPairUnreadList:o,isInstantMessage:n}),i=a.conversationOptionsList,s=a.messageList,c=a.isUnreadC2CMessage;this.filterModifiedMessage(s),i.length>0&&this.getModule(Vn).onNewMessage({conversationOptionsList:i,isInstantMessage:n,isUnreadC2CMessage:c});var l=this.filterUnmodifiedMessage(s);n&&l.length>0&&this.emitOuterEvent(S.MESSAGE_RECEIVED,l),s.length=0}},{key:"_newC2CMessageStoredAndSummary",value:function(e){for(var t=e.dataList,n=e.C2CRemainingUnreadList,r=e.C2CPairUnreadList,o=e.isInstantMessage,a=null,i=[],s=[],c={},l=this.getModule(Yn),u=this.getModule(er),d=!1,p=this.getModule(Vn),f=this.getFileDownloadProxy(),h=0,m=t.length;h<m;h++)if(this._isSignaling(t[h]))this._signalingFromUnreadDBList.push(t[h].eventArray[0].c2CNotifyMsgArray[0]);else{var v=t[h];v.currentUser=this.getMyUserID(),v.conversationType=T.CONV_C2C,v.isSystemMessage=!!v.isSystemMessage,(it(v.nick)||it(v.avatar))&&(d=!0,Fe.d("".concat(this._n,"._newC2CMessageStoredAndSummary nick or avatar missing!"))),a=new Ya(v),v.elements=l.parseElements(v.elements,v.from),a.setElement(v.elements,f),a.setNickAndAvatar({nick:v.nick,avatar:v.avatar});var g=a.conversationID;if(o){if(1===this._messageFromUnreadDBMap.get(a.ID))continue;var _=!1;if(a.from!==this.getMyUserID()){var b=p.getLatestMessageSentByPeer(g);if(b){var y=b.nick,O=b.avatar;d?a.setNickAndAvatar({nick:y,avatar:O}):y===a.nick&&O===a.avatar||(_=!0)}}else{var M=p.getLatestMessageSentByMe(g);if(M){var k=M.nick,C=M.avatar;k===a.nick&&C===a.avatar||p.modifyMessageSentByMe({conversationID:g,latestNick:a.nick,latestAvatar:a.avatar})}}var w=1===t[h].isModified;if(p.isMessageSentByCurrentInstance(a)?a.isModified=w:w=!1,0===v.msgLifeTime)a._onlineOnlyFlag=!0,p.isMessageSentByCurrentInstance(a)||s.push(a);else{if(!p.pushIntoMessageList(s,a,w))continue;_&&(p.modifyMessageSentByPeer({conversationID:g,latestNick:a.nick,latestAvatar:a.avatar}),p.updateUserProfileSpecifiedKey({conversationID:g,nick:a.nick,avatar:a.avatar}))}o&&a.clientTime>0&&u.addMessageDelay(a.clientTime)}else this._messageFromUnreadDBMap.set(a.ID,1);if(0!==v.msgLifeTime){if(!1===a._onlineOnlyFlag){var S=p.getLastMessageTime(g);if(et(S)&&a.time<S)continue;if(it(c[g])){var I=0;"in"===a.flow&&(a._isExcludedFromUnreadCount||(I=1)),c[g]=i.push({conversationID:g,unreadCount:I,type:a.conversationType,subType:a.conversationSubType,lastMessage:a._isExcludedFromLastMessage?"":a})-1}else{var E=c[g];i[E].type=a.conversationType,i[E].subType=a.conversationSubType,i[E].lastMessage=a._isExcludedFromLastMessage?"":a,"in"===a.flow&&(a._isExcludedFromUnreadCount||i[E].unreadCount++)}}}else a._onlineOnlyFlag=!0}this._handleSignalingFromUnreadDB();var j=!1;if(at(r))for(var D=function(e,t){if(r[e].unreadCount>0){j=!0;var n=i.find((function(t){return t.conversationID==="C2C".concat(r[e].from)}));n?n.unreadCount=r[e].unreadCount:i.push({conversationID:"C2C".concat(r[e].from),unreadCount:r[e].unreadCount,type:T.CONV_C2C})}},L=0,A=r.length;L<A;L++)D(L);if(at(n))for(var N=function(e,t){i.find((function(t){return t.conversationID==="C2C".concat(n[e].from)}))||i.push({conversationID:"C2C".concat(n[e].from),type:T.CONV_C2C,lastMsgTime:n[e].lastMsgTime})},R=0,x=n.length;R<x;R++)N(R);return{conversationOptionsList:i,messageList:s,isUnreadC2CMessage:j}}},{key:"_isSignaling",value:function(e){var t=e.eventArray;return!(!at(t)||10!==t[0].event)}},{key:"_handleSignalingFromUnreadDB",value:function(){var e=this._signalingFromUnreadDBList.length;if(Fe.l("".concat(this._n,"._handleSignalingFromUnreadDB signalingCount:").concat(e)),0!==e){var t=[];this._signalingFromUnreadDBList.forEach((function(e){e.hasOwnProperty("c2cMessageRevokedNotify")&&t.push(e)})),this.onC2CMessageRevoked({dataList:t}),this._signalingFromUnreadDBList.length=0,t.length=0}}},{key:"onC2CMessageRevoked",value:function(e){var t=this,n=this.getModule(Vn),r=[],o=null,a=!0;e.dataList.forEach((function(e){if(e.c2cMessageRevokedNotify){var i=e.c2cMessageRevokedNotify.revokedInfos;it(i)||i.forEach((function(e){var i=t.getMyUserID()===e.from?"".concat(T.CONV_C2C).concat(e.to):"".concat(T.CONV_C2C).concat(e.from);o=n.revoke(i,e.sequence,e.random);var s=e.revokerInfo&&e.revokerInfo.revoker;if(o)o.revoker||(o.revoker=s,r.push(o));else{var c={conversationID:i,sequence:e.sequence,time:e.time,revoker:s};n.isLastMessageRevoked(c)&&(r.push(c),a=!1)}}))}})),0!==r.length&&(n.onMessageRevoked(r),!0===a&&(Fe.l("".concat(this._n,".onC2CMessageRevoked count:").concat(r.length)),this.emitOuterEvent(S.MESSAGE_REVOKED,r)))}},{key:"onC2CMessageReadReceipt",value:function(e){var t=this;e.dataList.forEach((function(e){if(!Kt(e.c2cMessageReadReceipt)){var n=e.c2cMessageReadReceipt.to;e.c2cMessageReadReceipt.uinPairReadArray.forEach((function(e){var r=e.peerReadTime;Fe.d("".concat(t._n,"._onC2CMessageReadReceipt to:").concat(n," peerReadTime:").concat(r));var o="".concat(T.CONV_C2C).concat(n),a=t.getModule(Vn);a.recordPeerReadTime(o,r),a.updateMessageIsPeerReadProperty(o,r)}))}}))}},{key:"onC2CMessageReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){if(!Kt(e.c2cMessageReadNotice)){var n=t.getModule(Vn);e.c2cMessageReadNotice.uinPairReadArray.forEach((function(e){var r=e.from,o=e.peerReadTime;Fe.d("".concat(t._n,".onC2CMessageReadNotice from:").concat(r," lastReadTime:").concat(o));var a="".concat(T.CONV_C2C).concat(r);n.updateIsReadAfterReadReport({conversationID:a,lastMessageTime:o}),n.updateUnreadCount(a)}))}}))}},{key:"onC2CMessageModified",value:function(e){Fe.d("".concat(this._n,".onC2CMessageModified options:"),JSON.stringify(e));var t=this.getModule(Vn);e.dataList.forEach((function(e){t.onMessageModified(n(n({},e),{},{conversationType:T.CONV_C2C}))}))}},{key:"onReadReceiptList",value:function(e){Fe.d("".concat(this._n,".onReadReceiptList options:"),JSON.stringify(e));var t=e.dataList,n=t.userID,r=t.readReceiptList;this.getModule(Vn).updateReadReceiptInfo({userID:n,readReceiptList:r})}},{key:"sendMessage",value:function(e,t){var n=this._createC2CMessagePack(e,t);return this.request(n)}},{key:"_createC2CMessagePack",value:function(e,t){var n=null;t&&(t.offlinePushInfo&&(n=t.offlinePushInfo),!0===t.onlineUserOnly&&(n?n.disablePush=!0:n={disablePush:!0}));var r="";nt(e.cloudCustomData)&&e.cloudCustomData.length>0&&(r=e.cloudCustomData);var o=[];if(ot(t)&&ot(t.messageControlInfo)){var a=t.messageControlInfo,i=a.excludedFromUnreadCount,s=a.excludedFromLastMessage,c=a.excludedFromContentModeration;!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===c&&o.push("NoMsgCheck")}var l=this.isOnlineMessage(e,t)?0:void 0;return{protocolName:hr,tjgID:this.generateTjgID(e),requestData:{fromAccount:this.getMyUserID(),toAccount:e.to,msgBody:e.getElements(),cloudCustomData:r,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:l,nick:e.nick,avatar:e.avatar,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||"",desc:n.description||"",ext:n.extension||"",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0,isVoipPush:this._isVoipPush(n)},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||""}}:void 0,messageControlInfo:0!==l?o:void 0,clientTime:e.clientTime,needReadReceipt:!0===e.needReadReceipt?1:0,isSupportExtension:!0===e.isSupportExtension?1:0}}}},{key:"_isVoipPush",value:function(e){var t=void 0;return it(e.disableVoipPush)||(t=!1===e.disableVoipPush?1:0),t}},{key:"isOnlineMessage",value:function(e,t){return!(!t||!0!==t.onlineUserOnly)}},{key:"revokeMessage",value:function(e){return this.request({protocolName:Or,requestData:{msgInfo:{fromAccount:e.from,toAccount:e.to,msgSeq:e.sequence,msgRandom:e.random,msgTimeStamp:e.time}}})}},{key:"deleteMessage",value:function(e){var t=e.to,n=e.keyList;return Fe.l("".concat(this._n,".deleteMessage toAccount:").concat(t," count:").concat(n.length)),this.request({protocolName:Tr,requestData:{fromAccount:this.getMyUserID(),to:t,keyList:n}})}},{key:"modifyRemoteMessage",value:function(e){var t=e.from,n=e.to,r=e.version,o=void 0===r?0:r,a=e.sequence,i=e.random,s=e.time,c=e.payload,l=e.type,u=e.cloudCustomData,d=void 0;return Gt(l)&&(d=[]).push({type:l,content:c}),this.request({protocolName:Ir,requestData:{from:t,to:n,version:o,sequence:a,random:i,time:s,elements:d,cloudCustomData:u}})}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,r=e.lastMessageTime,o="".concat(this._n,".setMessageRead");Fe.l("".concat(o," conversationID:").concat(n," lastMessageTime:").concat(r)),et(r)||this.outputWarning("DoNotModifyLastTime");var a=new Ia("setC2CMessageRead");return a.setMessage("conversationID:".concat(n," lastMessageTime:").concat(r)),this.request({protocolName:Mr,requestData:{C2CMsgReaded:{cookie:"",C2CMsgReadedItem:[{toAccount:n.replace("C2C",""),lastMessageTime:r,receipt:1}]}}}).then((function(){a.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(o," ok"));var e=t.getModule(Vn);return e.updateIsReadAfterReadReport({conversationID:n,lastMessageTime:r}),e.updateUnreadCount(n),za()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Fe.l("".concat(o," failed. error:"),e),Ja(e)}))}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._n,".getRoamingMessage"),r=e.peerAccount,o=e.conversationID,a=e.count,i=e.lastMessageTime,s=e.messageKey,c="peerAccount:".concat(r," count:").concat(a||15," lastMessageTime:").concat(i||0," messageKey:").concat(s);Fe.l("".concat(n," ").concat(c));var l=new Ia("getC2CRoamingMessages");return this.request({protocolName:wr,requestData:{peerAccount:r,count:a||15,lastMessageTime:i||0,messageKey:s}}).then((function(e){var r=e.data,a=r.complete,i=r.messageList,s=r.messageKey,u=r.lastMessageTime;it(i)?Fe.l("".concat(n," ok. complete:").concat(a," but messageList is undefined!")):Fe.l("".concat(n," ok. complete:").concat(a," count:").concat(i.length)),l.setNetworkType(t.getNetworkType()).setMessage("".concat(c," complete:").concat(a," length:").concat(i.length)).end();var d=t.getModule(Vn);1===a&&d.setCompleted(o);var p=d.onRoamingMessage(i,o);d.modifyMessageList(o),d.updateIsRead(o),d.updateRoamingMessageKeyAndTime(o,s,u);var f=d.getPeerReadTime(o);if(Fe.l("".concat(n," update isPeerRead property. conversationID:").concat(o," peerReadTime:").concat(f)),f)d.updateMessageIsPeerReadProperty(o,f);else{var h=o.replace(T.CONV_C2C,"");t.getRemotePeerReadTime([h]).then((function(){d.updateMessageIsPeerReadProperty(o,d.getPeerReadTime(o))}))}var m="";if(p.length>0)m=p[0].ID;else{var v=d.getLocalOldestMessage(o);v&&(m=v.ID)}return Fe.l("".concat(n," nextReqID:").concat(m," stored message count:").concat(p.length)),{nextReqID:m,storedMessageList:p}})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setMessage(c).setError(e,r,o).end()})),Fe.w("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"getRoamingMessagesHopping",value:function(e){var t=this,n="".concat(this._n,".getRoamingMessagesHopping"),r=e.peerAccount,o=e.time,a=void 0===o?0:o,i=e.count,s=e.direction,c="".concat(T.CONV_C2C).concat(r),l="peerAccount:".concat(r," count:").concat(i," time:").concat(a," direction:").concat(s);Fe.l("".concat(n," ").concat(l));var u=new Ia("getC2CRoamingMessagesHopping");return this.request({protocolName:wr,requestData:{peerAccount:r,count:i+1,lastMessageTime:a,direction:s}}).then((function(e){var r=e.data,o=r.complete,a=r.messageList,i=void 0===a?[]:a,d=r.lastMessageTime;Fe.l("".concat(n," ok. complete:").concat(o," count:").concat(i.length)),u.setNetworkType(t.getNetworkType()).setMessage("".concat(l," complete:").concat(o," length:").concat(i.length)).end(),1!==o&&(1===s?i.pop():i.shift());var p=t.getModule(Vn).onRoamingMessage(i,c,!1);t._modifyMessageList(c,p);var f=t._computeResult({complete:o,lastMessageTime:d,resultList:p});return za(f)})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setMessage(l).setError(e,r,o).end()})),Fe.w("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_computeResult",value:function(e){var t=e.complete,n=void 0===t?0:t,r=e.lastMessageTime,o=e.resultList,a={messageList:b(void 0===o?[]:o),isCompleted:!1,nextMessageTime:""};return 1===n?(a.isCompleted=!0,a):(a.nextMessageTime=r,a)}},{key:"_modifyMessageList",value:function(e,t){var n=this.getModule(Vn).getLocalConversation(e);if(n)for(var r=n.userProfile.nick,o=n.userProfile.avatar,a=this.getModule(An).getNickAndAvatarByUserID(this.getMyUserID()),i=a.nick,s=a.avatar,c=t.length-1;c>=0;c--){var l=t[c];"in"===l.flow&&(l.nick!==r&&l.setNickAndAvatar({nick:r}),l.avatar!==o&&l.setNickAndAvatar({avatar:o})),"out"===l.flow&&(l.nick!==i&&l.setNickAndAvatar({nick:i}),l.avatar!==s&&l.setNickAndAvatar({avatar:s}))}}},{key:"getRemotePeerReadTime",value:function(e){var t=this,n="".concat(this._n,".getRemotePeerReadTime");if(Kt(e))return Fe.w("".concat(n," userIDList is empty!")),Promise.resolve();var r=new Ia("getPeerReadTime");return Fe.l("".concat(n," userIDList:").concat(e)),this.request({protocolName:Sr,requestData:{userIDList:e}}).then((function(o){var a=o.data.peerReadTimeList;Fe.l("".concat(n," ok. peerReadTimeList:").concat(a));for(var i="",s=t.getModule(Vn),c=0;c<e.length;c++)i+="".concat(e[c],"-").concat(a[c]," "),a[c]>0&&s.recordPeerReadTime("C2C".concat(e[c]),a[c]);r.setNetworkType(t.getNetworkType()).setMessage(i).end()})).catch((function(e){t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.w("".concat(n," failed. error:"),e)}))}},{key:"sendReadReceipt",value:function(e){var t=this,n=e[0].conversationID.replace(T.CONV_C2C,""),r=new Ia("sendC2CReadReceipt");r.setMessage("peerAccount:".concat(n));var o=this.getMyUserID(),a=e.filter((function(e){return e.from!==o&&!0===e.needReadReceipt})).map((function(e){return{fromAccount:e.from,toAccount:e.to,sequence:e.sequence,random:e.random,time:e.time,clientTime:e.clientTime}}));if(0===a.length)return Ja({code:fa.READ_RECEIPT_MESSAGE_LIST_EMPTY});var i="".concat(this._n,".sendReadReceipt");return Fe.l("".concat(i,". peerAccount:").concat(n," messageInfoList length:").concat(a.length)),this.request({protocolName:uo,requestData:{peerAccount:n,messageInfoList:a}}).then((function(e){return r.end(),Fe.l("".concat(i," ok")),za()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.w("".concat(i," failed. error:"),e),Ja(e)}))}},{key:"getReadReceiptList",value:function(e){var t="".concat(this._n,".getReadReceiptList"),n=this.getMyUserID(),r=e.filter((function(e){return e.from===n&&!0===e.needReadReceipt}));return Fe.l("".concat(t," userID:").concat(n," messageList length:").concat(r.length)),$a({messageList:r})}},{key:"getMessageExtensions",value:function(e,t){return Fe.l("".concat(this._n,".getMessageExtensions startSequence:").concat(t)),this.request({protocolName:jr,requestData:{from:e.from,to:e.to,messageKey:this._getMessageKey(e),startSequence:t}})}},{key:"modifyMessageExtensions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Fe.l("".concat(this._n,".modifyMessageExtensions operateType:").concat(n)),this.request({protocolName:Er,requestData:{from:e.from,to:e.to,messageKey:this._getMessageKey(e),extensionList:t,operateType:n}})}},{key:"_getMessageKey",value:function(e){var t=e.clientSequence,n=e.random,r=e.time;return"".concat(t,"_").concat(n,"_").concat(r)}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._messageFromUnreadDBMap.clear(),this._signalingFromUnreadDBList.length=0}}]),r}(sr),Qa=function(){function e(){o(this,e),this.list=new Map,this._n="MessageListHandler",this._latestMessageSentByPeerMap=new Map,this._latestMessageSentByMeMap=new Map}return i(e,[{key:"getLocalOldestMessageByConversationID",value:function(e){if(!e)return null;if(!this.list.has(e))return null;var t=this.list.get(e).values();return t?t.next().value:null}},{key:"pushIn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.conversationID,r=!0;this.list.has(n)||this.list.set(n,new Map);var o=this._getUniqueIDOfMessage(e),a=this.list.get(n).has(o);if(a){var i=this.list.get(n).get(o);if(!t||!0===i.isModified)return!1}return this.list.get(n).set(o,e),this._setLatestMessageSentByPeer(n,e),this._setLatestMessageSentByMe(n,e),r}},{key:"unshift",value:function(e,t){var n;if(at(e)?e.length>0&&(n=e[0].conversationID,this._unshiftMultipleMessages(e,t)):(n=e.conversationID,this._unshiftSingleMessage(e,t)),n&&n.startsWith(T.CONV_C2C)){var r=Array.from(this.list.get(n).values()),o=r.length;if(0===o)return;for(var a=o-1;a>=0;a--)if("out"===r[a].flow){this._setLatestMessageSentByMe(n,r[a]);break}for(var i=o-1;i>=0;i--)if("in"===r[i].flow){this._setLatestMessageSentByPeer(n,r[i]);break}}}},{key:"_unshiftSingleMessage",value:function(e,t){var n=e.conversationID,r=this._getUniqueIDOfMessage(e);if(!this.list.has(n))return this.list.set(n,new Map),this.list.get(n).set(r,e),void t.push(e);var o=this.list.get(n),a=Array.from(o);o.has(r)||(a.unshift([r,e]),this.list.set(n,new Map(a)),t.push(e))}},{key:"_unshiftMultipleMessages",value:function(e,t){for(var n=e.length,r=[],o=e[0].conversationID,a=this.list.get(o),i=this.list.has(o)?Array.from(a):[],s=0;s<n;s++){var c=this._getUniqueIDOfMessage(e[s]);a&&a.has(c)||(r.push([c,e[s]]),t.push(e[s]))}this.list.set(o,new Map(r.concat(i)))}},{key:"remove",value:function(e){var t=e.conversationID,n=this._getUniqueIDOfMessage(e);this.list.has(t)&&this.list.get(t).delete(n)}},{key:"revoke",value:function(e,t,n){if(Fe.d("revoke message",e,t,n),this.list.has(e)){var r,o=w(this.list.get(e));try{for(o.s();!(r=o.n()).done;){var a=_(r.value,2)[1];if(a.sequence===t&&(it(n)||a.random===n))return a.isRevoked||(a.isRevoked=!0),a}}catch(s){o.e(s)}finally{o.f()}}return null}},{key:"removeByConversationID",value:function(e){this.list.has(e)&&(this.list.delete(e),this._latestMessageSentByPeerMap.delete(e),this._latestMessageSentByMeMap.delete(e))}},{key:"findMessage",value:function(e){var t,n=null,r=w(this.list);try{for(r.s();!(t=r.n()).done;)for(var o=b(_(t.value,2)[1].values()),a=o.length,i=0;i<a;i++)if(o[i].ID===e){n=o[i];break}}catch(c){r.e(c)}finally{r.f()}return n}},{key:"updateMessageIsPeerReadProperty",value:function(e,t){var n=[];if(this.list.has(e)){var r,o=w(this.list.get(e));try{for(o.s();!(r=o.n()).done;){var a=_(r.value,2)[1];a.time<=t&&!a.isPeerRead&&"out"===a.flow&&(a.isPeerRead=!0,n.push(a))}}catch(s){o.e(s)}finally{o.f()}Fe.l("".concat(this._n,".updateMessageIsPeerReadProperty conversationID:").concat(e," peerReadTime:").concat(t," count:").concat(n.length))}return n}},{key:"updateMessageIsModifiedProperty",value:function(e){var t=e.conversationID;if(this.list.has(t)){var n=this._getUniqueIDOfMessage(e),r=this.list.get(t).get(n);r&&(r.isModified=!0)}}},{key:"hasLocalMessageList",value:function(e){return this.list.has(e)}},{key:"getLocalMessageList",value:function(e){return this.hasLocalMessageList(e)?b(this.list.get(e).values()):[]}},{key:"hasLocalMessage",value:function(e,t){for(var n=!1,r=this.getLocalMessageList(e),o=r.length,a=0;a<o;a++)r[a].ID===t&&(n=!0);return n}},{key:"getLocalMessage",value:function(e,t){for(var n=null,r=this.getLocalMessageList(e),o=r.length,a=0;a<o;a++)if(r[a].ID===t){n=r[a];break}return n}},{key:"getLocalLastMessage",value:function(e){var t=this.getLocalMessageList(e);return t[t.length-1]}},{key:"getLocalOldestMessage",value:function(e){return this.getLocalMessageList(e)[0]}},{key:"_setLatestMessageSentByPeer",value:function(e,t){e.startsWith(T.CONV_C2C)&&"in"===t.flow&&this._latestMessageSentByPeerMap.set(e,t)}},{key:"_setLatestMessageSentByMe",value:function(e,t){e.startsWith(T.CONV_C2C)&&"out"===t.flow&&this._latestMessageSentByMeMap.set(e,t)}},{key:"getLatestMessageSentByPeer",value:function(e){return this._latestMessageSentByPeerMap.get(e)}},{key:"getLatestMessageSentByMe",value:function(e){return this._latestMessageSentByMeMap.get(e)}},{key:"modifyMessageSentByPeer",value:function(e){var t=e.conversationID,n=e.latestNick,r=e.latestAvatar,o=this.list.get(t);if(!Kt(o)){var a=Array.from(o.values()),i=a.length;if(0!==i){for(var s=null,c=0,l=!1,u=i-1;u>=0;u--)"in"===a[u].flow&&((s=a[u]).nick!==n&&(s.setNickAndAvatar({nick:n}),l=!0),s.avatar!==r&&(s.setNickAndAvatar({avatar:r}),l=!0),l&&(c+=1));Fe.l("".concat(this._n,".modifyMessageSentByPeer conversationID:").concat(t," count:").concat(c))}}}},{key:"modifyMessageSentByMe",value:function(e){var t=e.conversationID,n=e.latestNick,r=e.latestAvatar,o=this.list.get(t);if(!Kt(o)){var a=Array.from(o.values()),i=a.length;if(0!==i){for(var s=null,c=0,l=!1,u=i-1;u>=0;u--)"out"===a[u].flow&&((s=a[u]).nick!==n&&(s.setNickAndAvatar({nick:n}),l=!0),s.avatar!==r&&(s.setNickAndAvatar({avatar:r}),l=!0),l&&(c+=1));Fe.l("".concat(this._n,".modifyMessageSentByMe conversationID:").concat(t," count:").concat(c))}}}},{key:"getTopicConversationIDList",value:function(e){return b(this.list.keys()).filter((function(t){return t.startsWith("".concat(T.CONV_GROUP).concat(e))}))}},{key:"traversal",value:function(){if(0!==this.list.size&&-1===Fe.getLevel()){console.group("conversationID-messageCount");var e,t=w(this.list);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2),r=n[0],o=n[1];console.log("".concat(r,"-").concat(o.size))}}catch(i){t.e(i)}finally{t.f()}console.groupEnd()}}},{key:"onMessageModified",value:function(e,t){if(!this.list.has(e))return{isUpdated:!1,message:null};var n=this._getUniqueIDOfMessage(t),r=this.list.get(e).has(n);if(Fe.d("".concat(this._n,".onMessageModified conversationID:").concat(e," uniqueID:").concat(n," has:").concat(r)),r){var o=this.list.get(e).get(n),a=t.messageVersion,i=t.elements,s=t.cloudCustomData;return o.version<a?(o.version=a,o._elements=JSON.parse(JSON.stringify(i)),o.payload=JSON.parse(JSON.stringify(i[0].content)),o.type=i[0].type,o.cloudCustomData=s,o.isModified=!0,{isUpdated:!0,message:o}):{isUpdated:!1,message:o}}return{isUpdated:!1,message:null}}},{key:"_getUniqueIDOfMessage",value:function(e){var t=e.from,n=e.to,r=e.random,o=e.sequence,a=e.time;return"".concat(t,"-").concat(n,"-").concat(r,"-").concat(o,"-").concat(a)}},{key:"reset",value:function(){this.list.clear(),this._latestMessageSentByPeerMap.clear(),this._latestMessageSentByMeMap.clear()}}]),e}(),Za="_a2KeyAndTinyIDUpdated",ei="_cloudConfigUpdated",ti="_profileUpdated";function ni(e){this.mixin(e)}ni.mixin=function(e){var t=e.prototype||e;t._isReady=!1,t.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this._isReady?void(t?e.call(this):setTimeout(e,1)):(this._readyQueue=this._readyQueue||[],void this._readyQueue.push(e))},t.triggerReady=function(){var e=this;this._isReady=!0,setTimeout((function(){var t=e._readyQueue;e._readyQueue=[],t&&t.length>0&&t.forEach((function(e){e.call(this)}),e)}),1)},t.resetReady=function(){this._isReady=!1,this._readyQueue=[]},t.isReady=function(){return this._isReady}};var ri=["jpg","jpeg","gif","png","bmp","image","webp"],oi=["mp4","quicktime","mov"],ai=1,ii=2,si=3,ci=255,li=function(){function e(t){var n=this;o(this,e),Kt(t)||(this.userID=t.userID||"",this.nick=t.nick||"",this.gender=t.gender||"",this.birthday=t.birthday||0,this.location=t.location||"",this.selfSignature=t.selfSignature||"",this.allowType=t.allowType||T.ALLOW_TYPE_ALLOW_ANY,this.language=t.language||0,this.avatar=t.avatar||"",this.messageSettings=t.messageSettings||0,this.adminForbidType=t.adminForbidType||T.FORBID_TYPE_NONE,this.level=t.level||0,this.role=t.role||0,this.lastUpdatedTime=0,this.profileCustomField=[],Kt(t.profileCustomField)||t.profileCustomField.forEach((function(e){n.profileCustomField.push({key:e.key,value:e.value})})))}return i(e,[{key:"validate",value:function(e){var t=!0,n="";if(Kt(e))return{valid:!1,tips:"empty options"};if(e.profileCustomField)for(var r=e.profileCustomField.length,o=null,a=0;a<r;a++){if(o=e.profileCustomField[a],!nt(o.key)||-1===o.key.indexOf("Tag_Profile_Custom"))return{valid:!1,tips:"The prefix of keys of the custom profile key-value pairs (which is profileCustomField) must be Tag_Profile_Custom"};if(!nt(o.value))return{valid:!1,tips:"The type of values of the custom profile key-value pairs (which is profileCustomField) must be String"}}for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if("profileCustomField"===i)continue;if(Kt(e[i])&&!nt(e[i])&&!et(e[i])){n="key:"+i+", invalid value:"+e[i],t=!1;continue}switch(i){case"nick":nt(e[i])||(n="nick must be a string",t=!1),ht(e[i])>500&&(n="nick name limited: must less than or equal to ".concat(500," bytes, current size: ").concat(ht(e[i])," bytes"),t=!1);break;case"gender":_t(Ye,e.gender)||(n="key:gender, invalid value:"+e.gender,t=!1);break;case"birthday":et(e.birthday)||(n="birthday must be a number",t=!1);break;case"location":nt(e.location)||(n="location must be a string",t=!1);break;case"selfSignature":nt(e.selfSignature)||(n="selfSignature must be a string",t=!1);break;case"allowType":_t(qe,e.allowType)||(n="key:allowType, invalid value:"+e.allowType,t=!1);break;case"language":et(e.language)||(n="language must be a number",t=!1);break;case"avatar":nt(e.avatar)||(n="avatar must be a string",t=!1);break;case"messageSettings":0!==e.messageSettings&&1!==e.messageSettings&&(n="messageSettings must be 0 or 1",t=!1);break;case"adminForbidType":_t(ze,e.adminForbidType)||(n="key:adminForbidType, invalid value:"+e.adminForbidType,t=!1);break;case"level":et(e.level)||(n="level must be a number",t=!1);break;case"role":et(e.role)||(n="role must be a number",t=!1);break;default:n="unknown key:"+i+" "+e[i],t=!1}}return{valid:t,tips:n}}}]),e}(),ui=i((function e(t){o(this,e),this.value=t,this.next=null})),di=function(){function e(t){o(this,e),this.MAX_LENGTH=t,this.pTail=null,this.pNodeToDel=null,this.map=new Map}return i(e,[{key:"set",value:function(e){var t=new ui(e);if(this.map.size<this.MAX_LENGTH)null===this.pTail?(this.pTail=t,this.pNodeToDel=t):(this.pTail.next=t,this.pTail=t),this.map.set(e,1);else{var n=this.pNodeToDel;this.pNodeToDel=this.pNodeToDel.next,this.map.delete(n.value),n.next=null,n=null,this.pTail.next=t,this.pTail=t,this.map.set(e,1)}}},{key:"has",value:function(e){return this.map.has(e)}},{key:"delete",value:function(e){this.has(e)&&this.map.delete(e)}},{key:"tail",value:function(){return this.pTail}},{key:"size",value:function(){return this.map.size}},{key:"data",value:function(){return Array.from(this.map.keys())}},{key:"reset",value:function(){for(var e;null!==this.pNodeToDel;)e=this.pNodeToDel,this.pNodeToDel=this.pNodeToDel.next,e.next=null,e=null;this.pTail=null,this.map.clear()}}]),e}(),pi=["groupID","name","avatar","type","introduction","notification","ownerID","selfInfo","createTime","infoSequence","lastInfoTime","lastMessage","nextMessageSeq","memberNum","maxMemberNum","memberList","joinOption","groupCustomField","muteAllMembers","isSupportTopic","inviteOption","_lastRevokedTime"],fi=function(){function e(t){o(this,e),this.groupID="",this.name="",this.avatar="",this.type="",this.introduction="",this.notification="",this.ownerID="",this.createTime="",this.infoSequence="",this.lastInfoTime="",this.selfInfo={messageRemindType:"",joinTime:"",nameCard:"",role:"",userID:"",memberCustomField:void 0,readedSequence:0,excludedUnreadSequenceList:void 0},this.lastMessage={lastTime:"",lastSequence:"",fromAccount:"",messageForShow:""},this.nextMessageSeq="",this.memberNum="",this.memberCount="",this.maxMemberNum="",this.maxMemberCount="",this.joinOption="",this.inviteOption="",this.groupCustomField=[],this.muteAllMembers=!1,this.isSupportTopic=!1,this._lastRevokedTime=0,this._initGroup(t)}return i(e,[{key:"memberNum",get:function(){return this.memberCount},set:function(e){}},{key:"maxMemberNum",get:function(){return this.maxMemberCount},set:function(e){}},{key:"_initGroup",value:function(e){for(var t in e)pi.indexOf(t)<0||("selfInfo"!==t?("memberNum"===t&&(this.memberCount=e[t]),"maxMemberNum"===t&&(this.maxMemberCount=e[t]),"isSupportTopic"!==t?this[t]=e[t]:this.isSupportTopic=1===e[t]):this.updateSelfInfo(e[t]))}},{key:"updateGroup",value:function(e){var t=this;e.appid=void 0,e.grossTopicNextMsgSeq=void 0,e.selfInfo&&(e.selfInfo.grossTopicReadSeq=void 0);var n=JSON.parse(JSON.stringify(e));n.lastMsgTime&&(this.lastMessage.lastTime=n.lastMsgTime),it(n.muteAllMembers)||("On"===n.muteAllMembers?n.muteAllMembers=!0:n.muteAllMembers=!1),n.groupCustomField&&Mt(this.groupCustomField,n.groupCustomField),it(n.memberNum)||(this.memberCount=n.memberNum),it(n.maxMemberNum)||(this.maxMemberCount=n.maxMemberNum),it(n.isSupportTopic)||(this.isSupportTopic=et(n.isSupportTopic)?1===n.isSupportTopic:n.isSupportTopic),pt(this,n,["members","errorCode","lastMsgTime","groupCustomField","memberNum","maxMemberNum","isSupportTopic"]),at(n.members)&&n.members.length>0&&n.members.forEach((function(e){e.userID===t.selfInfo.userID&&pt(t.selfInfo,e,["sequence"])}))}},{key:"updateSelfInfo",value:function(e){var t={nameCard:e.nameCard,joinTime:e.joinTime,role:e.role,messageRemindType:e.messageRemindType,readedSequence:e.readedSequence,excludedUnreadSequenceList:e.excludedUnreadSequenceList};pt(this.selfInfo,n({},t),[],["",null,void 0,0,NaN])}},{key:"setSelfNameCard",value:function(e){this.selfInfo.nameCard=e}}]),e}(),hi=function(e,t){return it(e)?{lastTime:0,lastSequence:0,fromAccount:0,messageForShow:"",payload:null,type:"",isRevoked:!1,cloudCustomData:"",onlineOnlyFlag:!1,nick:"",nameCard:"",version:0,isPeerRead:!1,revoker:null}:e instanceof Ya?{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||"",messageForShow:Ft(e.type,e.payload,t),payload:e.payload||null,type:e.type||null,isRevoked:e.isRevoked||!1,cloudCustomData:e.cloudCustomData||"",onlineOnlyFlag:e._onlineOnlyFlag||!1,nick:e.nick||"",nameCard:e.nameCard||"",version:e.version||0,isPeerRead:e.isPeerRead||!1,revoker:e.revoker||null}:n(n({},e),{},{messageForShow:Ft(e.type,e.payload,t)})},mi=function(){function e(t,n){o(this,e),this.conversationID=t.conversationID||"",this.unreadCount=t.unreadCount||0,this.type=t.type||"",this.lastMessage=hi(t.lastMessage,n),t.lastMsgTime&&(this.lastMessage.lastTime=t.lastMsgTime),this._isInfoCompleted=!1,this.peerReadTime=t.peerReadTime||0,this.groupAtInfoList=[],this.remark="",this.isPinned=t.isPinned||!1,this.messageRemindType="",this.markList=t.markList||[],this.customData=t.customData||"",this.conversationGroupList=t.conversationGroupList||[],this._initProfile(t)}return i(e,[{key:"toAccount",get:function(){return this.conversationID.startsWith(T.CONV_C2C)?this.conversationID.replace(T.CONV_C2C,""):this.conversationID.startsWith(T.CONV_GROUP)?this.conversationID.replace(T.CONV_GROUP,""):""}},{key:"subType",get:function(){return this.groupProfile?this.groupProfile.type:""}},{key:"_initProfile",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"userProfile":t.userProfile=e.userProfile;break;case"groupProfile":t.groupProfile=e.groupProfile}})),it(this.userProfile)&&this.type===T.CONV_C2C?this.userProfile=new li({userID:e.conversationID.replace("C2C","")}):it(this.groupProfile)&&this.type===T.CONV_GROUP&&(this.groupProfile=new fi({groupID:e.conversationID.replace("GROUP","")}))}},{key:"updateUnreadCount",value:function(e){var t=e.nextUnreadCount,n=e.isFromGetConversations,r=e.isUnreadC2CMessage;it(t)||(kt(this.subType)?this.unreadCount=0:n&&this.type===T.CONV_GROUP||n&&this.type===T.CONV_TOPIC||r&&this.type===T.CONV_C2C?this.unreadCount=t:this.unreadCount=this.unreadCount+t)}},{key:"updateLastMessage",value:function(e){this.lastMessage=hi(e)}},{key:"updateGroupAtInfoList",value:function(e){if(!this._isNeedMergeGroupAtInfo(e)){var t,n=(y(t=e.groupAtType)||O(t)||M(t)||C()).slice(0);-1!==n.indexOf(T.CONV_AT_ME)&&-1!==n.indexOf(T.CONV_AT_ALL)&&(n=[T.CONV_AT_ALL_AT_ME]);var r={from:e.from,groupID:e.groupID,topicID:e.topicID,messageSequence:e.sequence,atTypeArray:n,__random:e.__random,__sequence:e.__sequence};this.groupAtInfoList.push(r)}}},{key:"_isNeedMergeGroupAtInfo",value:function(e){var t=e.groupID,n=e.sequence;if(!Ct({groupID:t}))return!1;var r=!1;return this.groupAtInfoList.forEach((function(t){t.messageSequence===n&&(t.atTypeArray.indexOf(T.CONV_AT_ME)>-1&&e.groupAtType.indexOf(T.CONV_AT_ALL)>-1&&(t.atTypeArray=[T.CONV_AT_ALL_AT_ME]),t.atTypeArray.indexOf(T.CONV_AT_ALL)>-1&&e.groupAtType.indexOf(T.CONV_AT_ME)>-1&&(t.atTypeArray=[T.CONV_AT_ALL_AT_ME],t.__random=e.__random,t.__sequence=e.__sequence),r=!0)})),r}},{key:"clearGroupAtInfoList",value:function(){this.groupAtInfoList.length=0}},{key:"reduceUnreadCount",value:function(){return this.unreadCount>=1&&(this.unreadCount-=1,!0)}},{key:"isLastMessageRevoked",value:function(e){var t=e.sequence,n=e.time;return this.type===T.CONV_C2C&&t===this.lastMessage.lastSequence&&n===this.lastMessage.lastTime||this.type===T.CONV_GROUP&&t===this.lastMessage.lastSequence}},{key:"setLastMessageRevoked",value:function(e){this.lastMessage.isRevoked=e}},{key:"setLastMessageRevoker",value:function(e){this.lastMessage.revoker=e}}]),e}(),vi=function(){function e(t){o(this,e),this._conversationModule=t,this._n="MessageRemindHandler",this._updateSequence=0}return i(e,[{key:"getC2CMessageRemindType",value:function(){var e=this,t="".concat(this._n,".getC2CMessageRemindType");return this._conversationModule.request({protocolName:Cr,updateSequence:this._updateSequence}).then((function(n){Fe.l("".concat(t," ok"));var r=n.data,o=r.updateSequence,a=r.muteFlagList;e._updateSequence=o,e._patchC2CMessageRemindType(a)})).catch((function(e){Fe.e("".concat(t," failed. error:"),e)}))}},{key:"_patchC2CMessageRemindType",value:function(e){var t=this,n=0,r="";at(e)&&e.length>0&&e.forEach((function(e){var o=e.userID,a=e.muteFlag;0===a?r=T.MSG_REMIND_ACPT_AND_NOTE:1===a?r=T.MSG_REMIND_DISCARD:2===a&&(r=T.MSG_REMIND_ACPT_NOT_NOTE),!0===t._conversationModule.patchMessageRemindType({ID:o,isC2CConversation:!0,messageRemindType:r})&&(n+=1)})),Fe.l("".concat(this._n,"._patchC2CMessageRemindType count:").concat(n))}},{key:"set",value:function(e){return e.groupID?this._setGroupMessageRemindType(e):at(e.userIDList)?this._setC2CMessageRemindType(e):void 0}},{key:"_setGroupMessageRemindType",value:function(e){var t=this,n="".concat(this._n,"._setGroupMessageRemindType"),r=e.groupID,o=e.messageRemindType,a="groupID:".concat(r," messageRemindType:").concat(o),i=new Ia("setMessageRemindType");return i.setMessage(a),this._getModule(Pn).modifyGroupMemberInfo({groupID:r,messageRemindType:o,userID:this._conversationModule.getMyUserID()}).then((function(){i.setNetworkType(t._conversationModule.getNetworkType()).end(),Fe.l("".concat(n," ok. ").concat(a));var r=t.onGroupMessageRemindTypeUpdated(e);return t._conversationModule.emitTotalUnreadMessageCountUpdate(),za(r)})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"onGroupMessageRemindTypeUpdated",value:function(e){var t=e.groupID,n=e.messageRemindType,r=this._getModule(Rn).getLocalGroupProfile(t);if(r&&(r.selfInfo.messageRemindType=n),wt(t)){var o=t,a=Bt(o),i=this._getModule(Un).getLocalTopic(a,o);return i&&(i.updateSelfInfo({messageRemindType:n}),this._conversationModule.emitOuterEvent(S.TOPIC_UPDATED,{groupID:a,topic:i})),{topic:i}}return this._conversationModule.patchMessageRemindType({ID:t,isC2CConversation:!1,messageRemindType:n})&&this._emitConversationUpdate(),{group:r}}},{key:"_setC2CMessageRemindType",value:function(e){var t=this,n="".concat(this._n,"._setC2CMessageRemindType"),r=e.userIDList,o=e.messageRemindType,a=r.slice(0,30),i=0;o===T.MSG_REMIND_DISCARD?i=1:o===T.MSG_REMIND_ACPT_NOT_NOTE&&(i=2);var s="userIDList:".concat(a," messageRemindType:").concat(o),c=new Ia("setMessageRemindType");return c.setMessage(s),this._conversationModule.request({protocolName:kr,requestData:{userIDList:a,muteFlag:i}}).then((function(e){c.setNetworkType(t._conversationModule.getNetworkType()).end();var r=e.data,i=r.updateSequence,s=r.errorList;t._updateSequence=i;var l=[],u=[];at(s)&&s.forEach((function(e){l.push(e.userID),u.push({userID:e.userID,code:e.errorCode})}));var d=a.filter((function(e){return-1===l.indexOf(e)}));Fe.l("".concat(n," ok. successUserIDList:").concat(d," failureUserIDList:").concat(JSON.stringify(u)));var p=0;return d.forEach((function(e){t._conversationModule.patchMessageRemindType({ID:e,isC2CConversation:!0,messageRemindType:o})&&(p+=1)})),p>=1&&t._emitConversationUpdate(),a.length=l.length=0,t._conversationModule.emitTotalUnreadMessageCountUpdate(),$a({successUserIDList:d.map((function(e){return{userID:e}})),failureUserIDList:u})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_getModule",value:function(e){return this._conversationModule.getModule(e)}},{key:"_emitConversationUpdate",value:function(){this._conversationModule.emitConversationUpdate(!0,!1)}},{key:"setUpdateSequence",value:function(e){this._updateSequence=e}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._updateSequence=0}}]),e}(),gi=function(){function e(t){o(this,e),this._conversationModule=t,this._n="ConvGroupHandler",this._convGroupMap=new Map,this._startIndex=0,this._pagingStatus=Zt.NOT_START}return i(e,[{key:"setConvCustomData",value:function(e){var t=this,n="".concat(this._n,".").concat("setConvCustomData"),r=e.conversationIDList,o=e.customData;Fe.l("".concat(n," options:"),e);var a=new Ia("setConvCustomData");a.setMessage(JSON.stringify(e));var i={fromAccount:this._getMyUserID(),itemList:[]},s=[],c=[];return r.forEach((function(e){if(!t._hasLocalConversation(e))return t._onConversationNotFound(c,e),!0;if(!St(e)&&!Tt(e))return t._onConversationIDInvalid(c,e),!0;var n={operationType:2,contactItem:void 0,customMark:o};St(e)?n.contactItem={type:1,toAccount:e.replace(T.CONV_C2C,"")}:Tt(e)&&(n.contactItem={type:2,groupID:e.replace(T.CONV_GROUP,"")}),i.itemList.push(n)})),c.length===r.length?$a({successConversationIDList:s,failureConversationIDList:c}):this._conversationModule.request({protocolName:Pr,requestData:i}).then((function(e){a.setNetworkType(t._conversationModule.getNetworkType()).end(),Fe.l("".concat(n," ok"));var r=e.data.resultItem;if(at(r)){var i,l,u=!1;r.forEach((function(e){i=t._concatConversationID(e.contactItem),0===e.resultCode?(s.push(i),(l=t._getLocalConversation(i))&&l.customData!==o&&(l.customData=o,u=!0)):c.push({conversationID:i,code:e.resultCode,message:e.resultInfo})})),!0===u&&t._emitConversationUpdate()}return za({successConversationIDList:s,failureConversationIDList:c})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"markConversation",value:function(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_MARK))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("markConversation"),r=e.conversationIDList,o=e.markType,a=e.enableMark;Fe.l("".concat(n," options:"),e);var i=new Ia("markConversation");i.setMessage(JSON.stringify(e));var s=void 0,c=void 0,l=this._getFlagBit(o);!0===a?c=[l]:s=[l];var u={fromAccount:this._getMyUserID(),itemList:[]},d=[],p=[];return r.forEach((function(e){if(!t._hasLocalConversation(e))return t._onConversationNotFound(p,e),!0;if(!St(e)&&!Tt(e))return t._onConversationIDInvalid(p,e),!0;var n={operationType:1,contactItem:void 0,clearMark:s,setMark:c};St(e)?n.contactItem={type:1,toAccount:e.replace(T.CONV_C2C,"")}:Tt(e)&&(n.contactItem={type:2,groupID:e.replace(T.CONV_GROUP,"")}),u.itemList.push(n)})),p.length===r.length?$a({successConversationIDList:d,failureConversationIDList:p}):this._conversationModule.request({protocolName:Ur,requestData:u}).then((function(e){i.setNetworkType(t._conversationModule.getNetworkType()).end(),Fe.l("".concat(n," ok"));var r=e.data.resultItem;if(at(r)){var s,c,l=!1;r.forEach((function(e){if(s=t._concatConversationID(e.contactItem),0===e.resultCode){if(d.push(s),c=t._getLocalConversation(s)){var n=c.markList.indexOf(o);!0===a?-1===n&&(c.markList.push(o),l=!0):-1!==n&&(c.markList.splice(n,1),l=!0)}}else p.push({conversationID:s,code:e.resultCode,message:e.resultInfo})})),!0===l&&t._emitConversationUpdate()}return za({successConversationIDList:d,failureConversationIDList:p})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"getLocalConvGroupList",value:function(){var e=this;return Fe.l("".concat(this._n,".getLocalConvGroupList pagingStatus:").concat(this._pagingStatus)),this._pagingStatus===Zt.REJECTED?this.getRemoteConvGroupList().then((function(){return za(b(e._convGroupMap.values()))})):$a(b(this._convGroupMap.values()))}},{key:"getRemoteConvGroupList",value:function(){var e=this,t="".concat(this._n,".getRemoteConvGroupList");return this._pagingStatus=Zt.PENDING,this._conversationModule.request({protocolName:Yr,requestData:{fromAccount:this._getMyUserID(),startIndex:this._startIndex,startTime:Pe()}}).then((function(n){var r,o,a=n.data,i=a.completeFlag,s=a.contactItem,c=a.nextStartIndex,l=void 0===c?0:c,u=a.groupItem;if(e._startIndex=l,Fe.l("".concat(t," completeFlag:").concat(i," nextStartIndex:").concat(l)),at(u)&&u.forEach((function(t){var n=t.convGroupID,r=t.groupName;e._convGroupMap.set(n,r)})),at(s)&&s.forEach((function(t){var n=t.standardMark,a=t.customData,i=t.convGroupIDList;if(r=e._concatConversationID(t),(o=e._getLocalConversation(r))&&(o.markList=Ht(n),o.customData=a||"",at(i))){var s=[];i.forEach((function(t){e._convGroupMap.has(t)&&s.push(e._convGroupMap.get(t))})),o.conversationGroupList=[].concat(s),s.length=0}})),0===i)return e.getRemoteConvGroupList();1===i&&(e._pagingStatus=Zt.RESOLVED,e._emitConversationUpdate(),e._emitConvGroupListUpdate())})).catch((function(n){e._pagingStatus=Zt.REJECTED,Fe.w("".concat(t," failed. error:"),n)}))}},{key:"createConvGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_GROUP))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("createConvGroup");Fe.l("".concat(n," options:"),e);var r=new Ia("createConvGroup");r.setMessage(JSON.stringify(e));var o=e.groupName,a=e.conversationIDList,i={fromAccount:this._getMyUserID(),itemList:[{groupName:o,contactItem:[]}]},s=[],c=[];return a.forEach((function(e){return t._hasLocalConversation(e)?St(e)||Tt(e)?void(St(e)?i.itemList[0].contactItem.push({type:1,toAccount:e.replace(T.CONV_C2C,"")}):Tt(e)&&i.itemList[0].contactItem.push({type:2,groupID:e.replace(T.CONV_GROUP,"")})):(t._onConversationIDInvalid(c,e),!0):(t._onConversationNotFound(c,e),!0)})),c.length===a.length?$a({successConversationIDList:s,failureConversationIDList:c}):this._conversationModule.request({protocolName:Vr,requestData:i}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Fe.l("".concat(n," ok"));var a=e.data.groupResultItem[0],i=a.groupItem,l=a.resultItem;if(ot(i)&&(t._convGroupMap.set(i.convGroupID,i.groupName),t._emitConvGroupListUpdate()),at(l)){var u,d,p=!1;l.forEach((function(e){u=t._concatConversationID(e.contactItem),0===e.resultCode?(s.push(u),(d=t._getLocalConversation(u))&&-1===d.conversationGroupList.indexOf(o)&&(d.conversationGroupList.push(o),p=!0)):c.push({conversationID:u,code:e.resultCode,message:e.resultInfo})})),!0===p&&(t._emitConversationUpdate(),t._emitConvGroupListUpdate())}return za({successConversationIDList:s,failureConversationIDList:c})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"deleteConvGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_GROUP))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("deleteConvGroup");Fe.l("".concat(n," groupName:").concat(e));var r=new Ia("deleteConvGroup");return r.setMessage(e),this._conversationModule.request({protocolName:Br,requestData:{fromAccount:this._getMyUserID(),groupName:[e]}}).then((function(o){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Fe.l("".concat(n," ok"));var a=o.data.groupItem;if(at(a)){var i=!1;a.forEach((function(e){t._convGroupMap.has(e.convGroupID)&&(t._convGroupMap.delete(e.convGroupID),i=!0)})),!0===i&&t._emitConvGroupListUpdate()}t._eraseFromConversationGroupList([e])})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"renameConvGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_GROUP))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("renameConvGroup");Fe.l("".concat(n," options:"),e);var r=new Ia("renameConvGroup");r.setMessage(JSON.stringify(e));var o=e.oldName,a=e.newName;return this._conversationModule.request({protocolName:Fr,requestData:{fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:1,oldName:o,newName:a}}}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Fe.l("".concat(n," ok"));var i=e.data.updateGroupResult.convGroupID;t._convGroupMap.set(i,a),t._emitConvGroupListUpdate();var s,c,l=t._conversationModule.getLocalConversationList(),u=!1;l.forEach((function(e){s=e.conversationGroupList,-1!==(c=s.indexOf(o))&&(s.splice(c,1,a),u=!0)})),!0===u&&t._emitConversationUpdate()})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"addConvsToGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_GROUP))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("addConvsToGroup");Fe.l("".concat(n," options:"),e);var r=new Ia("addConvsToGroup");r.setMessage(JSON.stringify(e));var o=e.conversationIDList,a=e.groupName,i={fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:2,groupName:a,updateItem:[]}},s=[],c=[];return o.forEach((function(e){return t._hasLocalConversation(e)?St(e)||Tt(e)?void(St(e)?i.updateGroup.updateItem.push({operationType:1,contactItem:{type:1,toAccount:e.replace(T.CONV_C2C,"")}}):Tt(e)&&i.updateGroup.updateItem.push({operationType:1,contactItem:{type:2,groupID:e.replace(T.CONV_GROUP,"")}})):(t._onConversationIDInvalid(c,e),!0):(t._onConversationNotFound(c,e),!0)})),c.length===o.length?$a({successConversationIDList:s,failureConversationIDList:c}):this._conversationModule.request({protocolName:Gr,requestData:i}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Fe.l("".concat(n," ok"));var o=e.data.updateGroupResult.contactResultItem;if(at(o)){var i,l,u=!1;o.forEach((function(e){i=t._concatConversationID(e.contactItem),0===e.resultCode?(l=t._getLocalConversation(i))&&-1===l.conversationGroupList.indexOf(a)&&(l.conversationGroupList.push(a),s.push(i),u=!0):c.push({conversationID:i,code:e.resultCode,message:e.resultInfo})})),!0===u&&(t._emitConversationUpdate(),t._emitConvInGroupUpdate(a))}return za({successConversationIDList:s,failureConversationIDList:c})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"deleteConvsFromGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_GROUP))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("deleteConvsFromGroup");Fe.l("".concat(n," options:"),e);var r=new Ia("deleteConvsFromGroup");r.setMessage(JSON.stringify(e));var o=e.conversationIDList,a=e.groupName,i={fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:2,groupName:a,updateItem:[]}},s=[],c=[];return o.forEach((function(e){return t._hasLocalConversation(e)?St(e)||Tt(e)?void(St(e)?i.updateGroup.updateItem.push({operationType:2,contactItem:{type:1,toAccount:e.replace(T.CONV_C2C,"")}}):Tt(e)&&i.updateGroup.updateItem.push({operationType:2,contactItem:{type:2,groupID:e.replace(T.CONV_GROUP,"")}})):(t._onConversationIDInvalid(c,e),!0):(t._onConversationNotFound(c,e),!0)})),c.length===o.length?$a({successConversationIDList:s,failureConversationIDList:c}):this._conversationModule.request({protocolName:Hr,requestData:i}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Fe.l("".concat(n," ok"));var o=e.data.updateGroupResult.contactResultItem;if(at(o)){var i,l,u=!1;o.forEach((function(e){if(i=t._concatConversationID(e.contactItem),0===e.resultCode){if(l=t._getLocalConversation(i)){var n=l.conversationGroupList.indexOf(a);-1!==n&&(l.conversationGroupList.splice(n,1),s.push(i),u=!0)}}else c.push({conversationID:i,code:e.resultCode,message:e.resultInfo})})),!0===u&&(t._emitConversationUpdate(),t._emitConvInGroupUpdate(a))}return za({successConversationIDList:s,failureConversationIDList:c})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"onConvMarkUpdated",value:function(e){var t=this;if(!Kt(e)){var n,r;Fe.d("".concat(this._n,".onConvMarkUpdated markItemList:"),e);var o=!1;e.forEach((function(e){var a=e.recentContactItem,i=e.optType,s=e.standardMark,c=e.customMark;if(n=t._concatConversationID(a),r=t._getLocalConversation(n))if(1===i){var l=Ht(s);!0!==function(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}(r.markList,l)&&(r.markList=l,o=!0)}else 2===i&&r.customData!==c&&void 0!==c&&(r.customData=c,o=!0)})),!0===o&&this._emitConversationUpdate()}}},{key:"onConvGroupCreated",value:function(e){var t=this;Fe.d("".concat(this._n,".onConvGroupCreated resultList:"),e);var n=!1,r=!1;at(e)&&(e.forEach((function(e){var o=e.msgGroupItem,a=o.groupID,i=o.groupName;t._convGroupMap.get(a)!==i&&(t._convGroupMap.set(a,i),r=!0);var s,c,l=e.msgRecentContactItem;at(l)&&l.forEach((function(e){s=t._concatConversationID(e),(c=t._getLocalConversation(s))&&-1===c.conversationGroupList.indexOf(i)&&(c.conversationGroupList.push(i),n=!0)}))})),!0===n&&this._emitConversationUpdate(),!0===r&&this._emitConvGroupListUpdate())}},{key:"onConvGroupDeleted",value:function(e){var t=this;Fe.d("".concat(this._n,".onConvGroupDeleted groupItemList:"),e);var n=[];if(at(e)){var r=!1;e.forEach((function(e){var o=e.groupID,a=e.groupName;t._convGroupMap.has(o)&&(t._convGroupMap.delete(o),r=!0,n.push(a))})),!0===r&&this._emitConvGroupListUpdate()}this._eraseFromConversationGroupList(n)}},{key:"_eraseFromConversationGroupList",value:function(e){Kt(e)||(this._conversationModule.getLocalConversationList().forEach((function(t){t.conversationGroupList=t.conversationGroupList.filter((function(t){return!e.includes(t)}))})),this._emitConversationUpdate())}},{key:"onConvGroupNameUpdated",value:function(e){Fe.d("".concat(this._n,".onConvGroupNameUpdated options:"),e);var t=e.groupID,n=e.groupName,r=e.oldGroupName;if(this._convGroupMap.get(t)!==n){this._convGroupMap.set(t,n),this._emitConvGroupListUpdate();var o,a,i=this._conversationModule.getLocalConversationList(),s=!1;i.forEach((function(e){o=e.conversationGroupList,-1!==(a=o.indexOf(r))&&(o.splice(a,1,n),s=!0)})),!0===s&&this._emitConversationUpdate()}}},{key:"onConvInGroupUpdated",value:function(e){var t=this;Fe.d("".concat(this._n,".onConvInGroupUpdated options:"),e);var n=e.oldGroupName,r=e.recentContactUpdateGroupItem;if(at(r)){var o,a,i,s=!1;r.forEach((function(e){var r=e.contactOptType,c=e.recentContactItem;o=t._concatConversationID(c),(a=t._getLocalConversation(o))&&(i=a.conversationGroupList.indexOf(n),1===r?-1===i&&(a.conversationGroupList.push(n),s=!0):2===r&&-1!==i&&(a.conversationGroupList.splice(i,1),s=!0))})),!0===s&&(this._emitConversationUpdate(),this._emitConvInGroupUpdate(n))}}},{key:"onConvAddedToOrDeletedFromGroup",value:function(e){var t=this;Fe.d("".concat(this._n,".onConvAddedToOrDeletedFromGroup options:"),e);var n=e.msgRecentContactItem,r=e.msgRecentContactUpdateContactItem,o=this._concatConversationID(n),a=this._getLocalConversation(o);if(a&&at(r)){var i,s=!1;r.forEach((function(e){var n=e.groupOptType,r=e.recentContactGroupItem.groupName;i=a.conversationGroupList.indexOf(r),1===n?-1===i&&(a.conversationGroupList.push(r),s=!0):2===n&&-1!==i&&(a.conversationGroupList.splice(i,1),s=!0),!0===s&&t._emitConvInGroupUpdate(r)})),!0===s&&this._emitConversationUpdate()}}},{key:"onConvGroupListSynced",value:function(e){var t=this;at(e)&&0!==e.length&&(Fe.l("".concat(this._n,".onConvGroupListSynced groupItemList:"),e),e.forEach((function(e){t._convGroupMap.set(e.convGroupID,e.groupName)})))}},{key:"getConvGroupListByID",value:function(e){var t=this;if(!Kt(e)){var n=[];return e.forEach((function(e){t._convGroupMap.has(e)&&n.push(t._convGroupMap.get(e))})),n}}},{key:"_onConversationNotFound",value:function(e,t){e.push({conversationID:t,code:fa.CONVERSATION_NOT_FOUND,message:this._conversationModule.getErrorMessage(fa.CONVERSATION_NOT_FOUND)})}},{key:"_onConversationIDInvalid",value:function(e,t){e.push({conversationID:t,code:fa.INVALID_CONVERSATION_ID,message:this._conversationModule.getErrorMessage(fa.INVALID_CONVERSATION_ID)})}},{key:"_getFlagBit",value:function(e){for(var t=e.toString(2),n=t.length,r=n-1;r>=0;r--)if("1"===t[r])return n-r-1}},{key:"_concatConversationID",value:function(e){var t,n=e.type,r=e.to,o=e.groupID,a=e.userID;return 1===n?it(a)?it(r)||(t="".concat(T.CONV_C2C).concat(r)):t="".concat(T.CONV_C2C).concat(a):2===n&&(t="".concat(T.CONV_GROUP).concat(o)),t}},{key:"_getMyUserID",value:function(){return this._conversationModule.getMyUserID()}},{key:"_insertConversationGroup",value:function(e,t){var n=this._getLocalConversation(e);if(n){var r=n.conversationGroupList;-1===r.indexOf(t)&&r.push(t)}}},{key:"_getLocalConversation",value:function(e){return this._conversationModule.getLocalConversation(e)}},{key:"_hasLocalConversation",value:function(e){return this._conversationModule.hasLocalConversation(e)}},{key:"_emitConversationUpdate",value:function(){this._conversationModule.emitConversationUpdate(!0,!1)}},{key:"_emitConvGroupListUpdate",value:function(){this._conversationModule.emitOuterEvent(S.CONVERSATION_GROUP_LIST_UPDATED,b(this._convGroupMap.values()))}},{key:"_emitConvInGroupUpdate",value:function(e){var t={groupName:e,conversationList:[]},n=this._conversationModule.getLocalConversationList();t.conversationList=n.filter((function(t){return t.conversationGroupList.includes(e)})),this._conversationModule.emitOuterEvent(S.CONVERSATION_IN_GROUP_UPDATED,t)}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._convGroupMap.clear(),this._startIndex=0,this._pagingStatus=Zt.NOT_START}}]),e}(),_i=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="ConversationModule",ni.mixin(m(n)),n._messageListHandler=new Qa,n._messageRemindHandler=new vi(m(n)),n._convGroupHandler=new gi(m(n)),n.singlyLinkedList=new di(100),n._pagingStatus=Zt.NOT_START,n._pagingTimeStamp=0,n._pagingStartIndex=0,n._pagingPinnedTimeStamp=0,n._pagingPinnedStartIndex=0,n._pagingConvIDMap=new Map,n._convIDFromUnreadDBMap=new Map,n._conversationMap=new Map,n._tmpGroupList=[],n._tmpGroupAtTipsList=[],n._peerReadTimeMap=new Map,n._completedMap=new Map,n._roamingMessageKeyAndTimeMap=new Map,n._roamingMessageSequenceMap=new Map,n._remoteGroupReadSequenceMap=new Map,n._convTotalUnreadCount=0,n._initListeners(),n}return i(r,[{key:"_initListeners",value:function(){var e=this.getInnerEmitterInstance();e.on(Za,this._initLocalConversationList,this),e.on(ti,this._onProfileUpdated,this)}},{key:"onCheckTimer",value:function(e){e%60==0&&this._messageListHandler.traversal()}},{key:"_initLocalConversationList",value:function(){var e=this,t=new Ia("_initLocalConversationList");Fe.l("".concat(this._n,".").concat("_initLocalConversationList"));var n="",r=this._getStorageConversationList(),o=this.isIntl();if(r){for(var a=r.length,i=0;i<a;i++){var s=r[i];if(s){if(s.conversationID==="".concat(T.CONV_C2C,"@TLS#ERROR")||s.conversationID==="".concat(T.CONV_C2C,"@TLS#NOT_FOUND"))continue;if(s.groupProfile){var c=s.groupProfile.type;if(kt(c))continue}}this._conversationMap.set(r[i].conversationID,new mi(r[i],o))}this.emitConversationUpdate(!0,!1),n="count:".concat(a)}else n="count:0";t.setNetworkType(this.getNetworkType()).setMessage(n).end(),this.getModule(Nn)||this.triggerReady(),this.ready((function(){e._tmpGroupList.length>0&&(e.updateConversationGroupProfile(e._tmpGroupList),e._tmpGroupList.length=0)})),this.syncConversationList()}},{key:"onMessageSent",value:function(e){this._onSendOrReceiveMessage({conversationOptionsList:e.conversationOptionsList,isInstantMessage:!0})}},{key:"onNewMessage",value:function(e){this._onSendOrReceiveMessage(e)}},{key:"_onSendOrReceiveMessage",value:function(e){var t=this,n=e.conversationOptionsList,r=e.isInstantMessage,o=void 0===r||r,a=e.isUnreadC2CMessage,i=void 0!==a&&a,s=e.updateUnreadCount,c=void 0===s||s;this._isReady?0!==n.length&&(this._getC2CPeerReadTime(n),this._updateLocalConversationList({conversationOptionsList:n,isInstantMessage:o,isUnreadC2CMessage:i,isFromGetConversations:!1,updateUnreadCount:c}),o||(this._convIDFromUnreadDBMap=new Map([].concat(b(this._convIDFromUnreadDBMap),b(n.map((function(e){return[e.conversationID,1]}))))),this._diffAndDeleteConversation()),this._setStorageConversationList(),n.filter((function(e){return e.type===T.CONV_TOPIC})).length>0||this.emitConversationUpdate()):this.ready((function(){t._onSendOrReceiveMessage(e)}))}},{key:"updateConversationGroupProfile",value:function(e){var t=this;if(!at(e)||0!==e.length)if(0!==this._conversationMap.size){var n=!1;e.forEach((function(e){var r="GROUP".concat(e.groupID);if(t._conversationMap.has(r)){n=!0;var o=t._conversationMap.get(r);o.groupProfile=JSON.parse(JSON.stringify(e)),o.lastMessage.lastSequence<e.nextMessageSeq&&(o.lastMessage.lastSequence=e.nextMessageSeq-1),o.subType||(o.subType=e.type)}})),n&&this.emitConversationUpdate(!0,!1)}else this._tmpGroupList=e}},{key:"_updateConversationUserProfile",value:function(e){var t=this;e.data.forEach((function(e){var n="C2C".concat(e.userID);t._conversationMap.has(n)&&(t._conversationMap.get(n).userProfile=e)})),this.emitConversationUpdate(!0,!1)}},{key:"onMessageRevoked",value:function(e){var t=this;if(0!==e.length){var n=null,r=!1,o=[];e.forEach((function(e){(n=t._conversationMap.get(e.conversationID))&&(n.type===T.CONV_TOPIC?o.push(e):(n.reduceUnreadCount()&&(r=!0),n.isLastMessageRevoked({sequence:e.sequence,time:e.time})&&(n.setLastMessageRevoked(!0),n.setLastMessageRevoker(e.revoker),r=!0)))})),this.getModule(Un).onMessageRevoked(o),r&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate())}}},{key:"isLastMessageRevoked",value:function(e){var t=!1,n=e.conversationID,r=e.sequence,o=e.time,a=this._conversationMap.get(n);return a&&(t=a.type===T.CONV_TOPIC?this.getModule(Un).isLastMessageRevoked({topicID:n.replace(T.CONV_GROUP,""),sequence:r}):a.isLastMessageRevoked({sequence:r,time:o})),Fe.l("".concat(this._n,".isLastMessageRevoked options:").concat(JSON.stringify(e)," ret:").concat(t)),t}},{key:"onMessageDeleted",value:function(e){var t=this;if(0!==e.length){var n=null;e.forEach((function(e){(n=t._messageListHandler.getLocalMessage(e.conversationID,e.ID))&&(n.isDeleted=!0),e!==n&&(e.isDeleted=!0)}));for(var r=e[0].conversationID,o=this._messageListHandler.getLocalMessageList(r),a={},i=o.length-1;i>=0;i--)if(!o[i].isDeleted){a=o[i];break}var s=this._conversationMap.get(r);if(s){var c=!1;s.lastMessage.lastSequence===a.sequence&&s.lastMessage.lastTime===a.time||(Kt(a)&&(a=void 0),s.updateLastMessage(a),s.type!==T.CONV_TOPIC&&(c=!0),Fe.l("".concat(this._n,".onMessageDeleted. update conversationID:").concat(r," with lastMessage:"),s.lastMessage)),r.startsWith(T.CONV_C2C)&&this.updateUnreadCount(r),c&&this.emitConversationUpdate(!0,!1)}}}},{key:"onMessageModified",value:function(e){var t=e.conversationType,n=e.from,r=e.to,o=e.time,a=e.sequence,i=e.elements,s=e.cloudCustomData,c=e.messageVersion,l=this.getMyUserID(),u="".concat(t).concat(r);r===l&&t===T.CONV_C2C&&(u="".concat(t).concat(n));var d=this._messageListHandler.onMessageModified(u,e),p=d.isUpdated,f=d.message;!0===p&&this.emitOuterEvent(S.MESSAGE_MODIFIED,[f]);var h=this._isTopicConversation(u);if(Fe.l("".concat(this._n,".onMessageModified isUpdated:").concat(p," isTopicMessage:").concat(h," from:").concat(n," to:").concat(r)),h)this.getModule(Un).onMessageModified(e);else{var m=this._conversationMap.get(u);if(m){var v=m.lastMessage;Fe.d("".concat(this._n.onMessageModified," lastMessage:"),JSON.stringify(v),"options:",JSON.stringify(e)),v&&v.lastTime===o&&v.lastSequence===a&&v.version!==c&&(v.type=i[0].type,v.payload=i[0].content,v.messageForShow=Ft(v.type,v.payload,this.isIntl()),v.cloudCustomData=s,v.version=c,this.emitConversationUpdate(!0,!1))}}return f}},{key:"onNewGroupAtTips",value:function(e){var t=this,r=e.dataList,o=null;r.forEach((function(e){e.groupAtTips?o=e.groupAtTips:e.elements?o=n(n({},e.elements),{},{sync:!0}):e.groupAtType&&(o=n(n({},e),{},{sync:!0})),o.__random=e.random,o.__sequence=e.clientSequence,t._tmpGroupAtTipsList.push(o)})),Fe.d("".concat(this._n,".onNewGroupAtTips isReady:").concat(this._isReady),this._tmpGroupAtTipsList),this._isReady&&this._handleGroupAtTipsList()}},{key:"_handleGroupAtTipsList",value:function(){var e=this;if(0!==this._tmpGroupAtTipsList.length){var t=!1;this._tmpGroupAtTipsList.forEach((function(n){var r=n.groupID,o=n.from,a=n.topicID,i=void 0===a?void 0:a,s=n.sync,c=void 0!==s&&s;if(o!==e.getMyUserID())if(it(i)){var l=e._conversationMap.get("".concat(T.CONV_GROUP).concat(r));l&&(l.updateGroupAtInfoList(n),t=!0)}else{var u=e._conversationMap.get("".concat(T.CONV_GROUP).concat(i));if(u){u.updateGroupAtInfoList(n);var d=e.getModule(Un),p=u.groupAtInfoList;d.onConversationProxy({topicID:i,groupAtInfoList:p})}Kt(u)&&c&&(e.updateTopicConversation([{conversationID:"".concat(T.CONV_GROUP).concat(i),type:T.CONV_TOPIC}]),e._conversationMap.get("".concat(T.CONV_GROUP).concat(i)).updateGroupAtInfoList(n))}})),t&&this.emitConversationUpdate(!0,!1),this._tmpGroupAtTipsList.length=0}}},{key:"_getC2CPeerReadTime",value:function(e){var t=this,n=[];if(e.forEach((function(e){t._conversationMap.has(e.conversationID)||e.type!==T.CONV_C2C||n.push(e.conversationID.replace(T.CONV_C2C,""))})),n.length>0){Fe.d("".concat(this._n,"._getC2CPeerReadTime userIDList:").concat(n));var r=this.getModule(Nn);r&&r.getRemotePeerReadTime(n)}}},{key:"_getStorageConversationList",value:function(){return this.getModule(Fn).getItem("conversationMap")}},{key:"_setStorageConversationList",value:function(){var e=this.getLocalConversationList().filter((function(e){return e.type===T.CONV_C2C||e.type===T.CONV_GROUP&&e.lastMessage.type!==T.MSG_GRP_TIP})).slice(0,20).map((function(e){return{conversationID:e.conversationID,type:e.type,subType:e.subType,lastMessage:e.lastMessage,groupProfile:e.groupProfile,userProfile:e.userProfile}}));this.getModule(Fn).setItem("conversationMap",e)}},{key:"emitConversationUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalConversationList();if(t){var r=this.getModule(Rn);r&&r.updateGroupLastMessage(n)}e&&this.emitOuterEvent(S.CONVERSATION_LIST_UPDATED)}},{key:"getLocalConversationList",value:function(){return b(this._conversationMap.values()).filter((function(e){return e.type!==T.CONV_TOPIC}))}},{key:"getLocalConversation",value:function(e){return this._conversationMap.get(e)}},{key:"hasLocalConversation",value:function(e){return this._conversationMap.has(e)}},{key:"getLocalOldestMessage",value:function(e){return this._messageListHandler.getLocalOldestMessage(e)}},{key:"syncConversationList",value:function(){var e=this,t=new Ia("syncConversationList");return this._pagingStatus===Zt.NOT_START&&this._conversationMap.clear(),this._pagingGetConversationList().then((function(n){return e._pagingStatus=Zt.RESOLVED,e._diffAndDeleteConversation(),e.emitConversationUpdate(!0,!1),e._setStorageConversationList(),e._handleC2CPeerReadTime(),e._patchConversationProperties(),t.setMessage(e._conversationMap.size).setNetworkType(e.getNetworkType()).end(),n})).catch((function(n){return e._pagingStatus=Zt.REJECTED,t.setMessage(e._pagingTimeStamp),e.probeNetwork().then((function(e){var r=_(e,2),o=r[0],a=r[1];t.setError(n,o,a).end()})),Ja(n)}))}},{key:"_diffAndDeleteConversation",value:function(){var e=this;if(this._isSyncCompleted()){var t=[];this._conversationMap.forEach((function(n,r){!e._pagingConvIDMap.has(r)&&e._convIDFromUnreadDBMap.has(r)&&(e._conversationMap.delete(r),t.push(r))})),Fe.l("".concat(this._n,"._diffAndDeleteConversation list:").concat(t))}}},{key:"_patchConversationProperties",value:function(){var e=this,t=Date.now(),n=this.checkAndPatchRemark(),r=this._messageRemindHandler.getC2CMessageRemindType(),o=this.getModule(Rn).getGroupList();Promise.all([n,r,o]).then((function(){var n=Date.now()-t;Fe.l("".concat(e._n,"._patchConversationProperties ok. cost ").concat(n," ms")),e.emitConversationUpdate(!0,!1),e.emitTotalUnreadMessageCountUpdate()}))}},{key:"_pagingGetConversationList",value:function(){var e=this,t="".concat(this._n,"._pagingGetConversationList");return Fe.l("".concat(t," timeStamp:").concat(this._pagingTimeStamp," startIndex:").concat(this._pagingStartIndex)+" pinnedTimeStamp:".concat(this._pagingPinnedTimeStamp," pinnedStartIndex:").concat(this._pagingPinnedStartIndex)),this._pagingStatus=Zt.PENDING,this.request({protocolName:Dr,requestData:{fromAccount:this.getMyUserID(),timeStamp:this._pagingTimeStamp,startIndex:this._pagingStartIndex,pinnedTimeStamp:this._pagingPinnedTimeStamp,pinnedStartIndex:this._pagingPinnedStartIndex,orderType:1}}).then((function(n){var r=n.data,o=r.completeFlag,a=r.conversations,i=void 0===a?[]:a,s=r.timeStamp,c=r.startIndex,l=r.pinnedTimeStamp,u=r.pinnedStartIndex,d=r.groupItem;if(Fe.l("".concat(t," ok. completeFlag:").concat(o," count:").concat(i.length," isReady:").concat(e._isReady)),e._convGroupHandler.onConvGroupListSynced(d),i.length>0){var p=e._getConversationOptions(i);e._pagingConvIDMap=new Map([].concat(b(e._pagingConvIDMap),b(p.map((function(e){return[e.conversationID,1]}))))),e._updateLocalConversationList({conversationOptionsList:p,isFromGetConversations:!0}),e.isLoggedIn()&&e.emitConversationUpdate()}if(!e._isReady){if(!e.isLoggedIn())return $a();e.triggerReady()}return e._pagingTimeStamp=s,e._pagingStartIndex=c,e._pagingPinnedTimeStamp=l,e._pagingPinnedStartIndex=u,1!==o?e._pagingGetConversationList():(e._handleGroupAtTipsList(),e._convGroupHandler.getRemoteConvGroupList(),$a())})).catch((function(n){throw e.isLoggedIn()&&(e._isReady||(Fe.w("".concat(t," failed. error:"),n),e.triggerReady())),n}))}},{key:"_updateLocalConversationList",value:function(e){var t,n=e.isFromGetConversations,r=e.isInstantMessage,o=Date.now();t=this._getTmpConversationListMapping(e),this._conversationMap=new Map(this._sortConversationList([].concat(b(t.toBeUpdatedConversationList),b(this._conversationMap)))),n||(this._updateUserOrGroupProfile(t.newConversationList),r&&this.emitTotalUnreadMessageCountUpdate()),Fe.d("".concat(this._n,"._updateLocalConversationList cost ").concat(Date.now()-o," ms"))}},{key:"_getTmpConversationListMapping",value:function(e){for(var t=e.conversationOptionsList,n=e.isFromGetConversations,r=e.isInstantMessage,o=e.isUnreadC2CMessage,a=void 0!==o&&o,i=e.updateUnreadCount,s=[],c=[],l=this.getModule(Rn),u=this.getModule(xn),d=this.isIntl(),p=0,f=t.length;p<f;p++){var h=new mi(t[p],d),m=h.conversationID;if(m!=="".concat(T.CONV_C2C,"@TLS#ERROR")&&m!=="".concat(T.CONV_C2C,"@TLS#NOT_FOUND"))if(this._conversationMap.has(m)){var v=this._conversationMap.get(m),g=["unreadCount","allowType","adminForbidType","payload","isPinned"];!1===r&&g.push("lastMessage");var _=t[p].lastMessage,b=!it(_);b||t[p].type===T.CONV_TOPIC||this._onLastMessageNotExist(t[p]),it(r)&&b&&null===v.lastMessage.payload&&(v.lastMessage.payload=_.payload),Kt(v.lastMessage.revoker)||(v.lastMessage.revoker=null),pt(v,h,g,[null,void 0,"",0,NaN]),!0===i&&v.updateUnreadCount({nextUnreadCount:h.unreadCount,isFromGetConversations:n,isUnreadC2CMessage:a}),r&&b&&(_.payload&&(v.lastMessage.payload=_.payload),v.type===T.CONV_GROUP&&(v.lastMessage.nameCard=_.nameCard,v.lastMessage.nick=_.nick)),b&&v.lastMessage.cloudCustomData!==_.cloudCustomData&&(v.lastMessage.cloudCustomData=_.cloudCustomData||""),this._conversationMap.delete(m),s.push([m,v])}else{if(h.type===T.CONV_GROUP&&l){var y=h.groupProfile.groupID,O=l.getLocalGroupProfile(y);O&&(h.groupProfile=O,!0===i&&h.updateUnreadCount({nextUnreadCount:0}))}else if(h.type===T.CONV_C2C){var M=m.replace(T.CONV_C2C,"");u&&u.isMyFriend(M)&&(h.remark=u.getFriendRemark(M))}c.push(h),s.push([m,h])}}var k=this.getModule(Un);return s.forEach((function(e){if(e[1].type===T.CONV_TOPIC){var t=e[1],n=t.conversationID,r=t.unreadCount,o=t.groupAtInfoList;k.onConversationProxy({topicID:n.replace(T.CONV_GROUP,""),unreadCount:r,groupAtInfoList:Kt(o)?void 0:o})}})),{toBeUpdatedConversationList:s,newConversationList:c}}},{key:"_onLastMessageNotExist",value:function(e){new Ia("lastMessageNotExist").setMessage("".concat(JSON.stringify(e))).setNetworkType(this.getNetworkType()).end()}},{key:"_sortConversationList",value:function(e){var t=[],n=[],r=[],o=[];return e.forEach((function(e){!0===e[1].isPinned?Kt(e[1].lastMessage.lastTime)?n.push(e):t.push(e):Kt(e[1].lastMessage.lastTime)?o.push(e):r.push(e)})),t.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})).concat(n).concat(r.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime}))).concat(o)}},{key:"_sortConversationListAndEmitEvent",value:function(){this._conversationMap=new Map(this._sortConversationList(b(this._conversationMap))),this.emitConversationUpdate(!0,!1)}},{key:"_updateUserOrGroupProfile",value:function(e){var t=this;if(0!==e.length){var n=[],r=[],o=this.getModule(An),a=this.getModule(Rn);e.forEach((function(e){if(e.type===T.CONV_C2C)n.push(e.toAccount);else if(e.type===T.CONV_GROUP){var t=e.toAccount;a.hasLocalGroup(t)?e.groupProfile=a.getLocalGroupProfile(t):r.push(t)}})),Fe.l("".concat(this._n,"._updateUserOrGroupProfile c2cUserIDList:").concat(n," groupIDList:").concat(r)),n.length>0&&o.getUserProfile({userIDList:n}).then((function(e){var n=e.data;at(n)?n.forEach((function(e){t._doUpdateUserProfile("C2C".concat(e.userID),e)})):t._doUpdateUserProfile("C2C".concat(n.userID),n)})),r.length>0&&a.getGroupProfileAdvance({groupIDList:r,responseFilter:{groupBaseInfoFilter:["Type","Name","FaceUrl"]}}).then((function(e){e.data.successGroupList.forEach((function(e){var n="GROUP".concat(e.groupID);if(t._conversationMap.has(n)){var r=t._conversationMap.get(n);pt(r.groupProfile,e,[],[null,void 0,"",0,NaN]),!r.subType&&e.type&&(r.subType=e.type)}}))}))}}},{key:"_doUpdateUserProfile",value:function(e,t){this.hasLocalConversation(e)&&(this.getLocalConversation(e).userProfile=t)}},{key:"_getConversationOptions",value:function(e){var t=this,r=[],o=e.filter((function(e){var t=e.type,n=e.userID;return 1===t&&"@TLS#NOT_FOUND"!==n&&"@TLS#ERROR"!==n||2===t})),a=this.getMyUserID(),i=o.map((function(e){if(it(e.lastMsg)&&(e.lastMsg={elements:[]}),1===e.type){var o={userID:e.userID,nick:e.peerNick,avatar:e.peerAvatar};return r.push(o),{conversationID:"C2C".concat(e.userID),type:"C2C",lastMessage:{lastTime:e.time,lastSequence:e.sequence,fromAccount:e.lastC2CMsgFromAccount,messageForShow:e.messageShow,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:null,payload:e.lastMsg.elements[0]?t._amendLayersOverLimitProperty(e.lastMsg.elements[0].content):null,cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:8===e.lastMessageFlag,onlineOnlyFlag:!1,nick:"",nameCard:"",version:0,isPeerRead:e.lastC2CMsgFromAccount===a&&e.time<=e.c2cPeerReadTime,revoker:e.lastMsg.revokerInfo?e.lastMsg.revokerInfo.revoker:null},userProfile:new li(o),peerReadTime:e.c2cPeerReadTime,isPinned:1===e.isPinned,messageRemindType:"",customData:e.customMark||"",markList:Ht(e.standardMark),conversationGroupList:t._convGroupHandler.getConvGroupListByID(e.contactGroupId)}}return{conversationID:"GROUP".concat(e.groupID),type:"GROUP",lastMessage:n(n({lastTime:e.time,lastSequence:e.sequence,fromAccount:e.msgGroupFromAccount,messageForShow:e.messageShow},t._patchTypeAndPayload(e)),{},{cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:2===e.lastMessageFlag,onlineOnlyFlag:!1,nick:e.senderNick||"",nameCard:e.senderNameCard||"",revoker:e.lastMsg.revokerInfo?e.lastMsg.revokerInfo.revoker:null}),groupProfile:new fi({groupID:e.groupID,name:e.groupNick,avatar:e.groupImage}),unreadCount:e.unreadCount,peerReadTime:0,isPinned:1===e.isPinned,messageRemindType:"",version:0,customData:e.customMark||"",markList:Ht(e.standardMark),conversationGroupList:t._convGroupHandler.getConvGroupListByID(e.contactGroupId)}}));return r.length>0&&this.getModule(An).onConversationsProfileUpdated(r),i}},{key:"_patchTypeAndPayload",value:function(e){var t=e.lastMsg,r=t.event,o=void 0===r?void 0:r,a=t.elements,i=void 0===a?[]:a,s=t.groupTips,c=void 0===s?{}:s;if(!it(o)&&!Kt(c)){var l=new Ya(c);l.setElement({type:T.MSG_GRP_TIP,content:n(n({},c.elements),{},{groupProfile:c.groupProfile})});var u=JSON.parse(JSON.stringify(l.payload));return l=null,{type:T.MSG_GRP_TIP,payload:u}}return{type:i[0]?i[0].type:null,payload:i[0]?this._amendLayersOverLimitProperty(i[0].content):null}}},{key:"_amendLayersOverLimitProperty",value:function(e){var t=e.layersOverLimit;return 0===t?e.layersOverLimit=!1:1===t&&(e.layersOverLimit=!0),e}},{key:"getLocalMessageList",value:function(e){return this._messageListHandler.getLocalMessageList(e)}},{key:"deleteLocalMessage",value:function(e){e instanceof Ya&&this._messageListHandler.remove(e)}},{key:"onConversationDeleted",value:function(e){if(at(e)){var t=e.map((function(e){var t=e.type,n=e.userID,r=e.groupID;return 1===t?"".concat(T.CONV_C2C).concat(n):2===t?"".concat(T.CONV_GROUP).concat(r):void 0}));Fe.l("".concat(this._n,".onConversationDeleted conversationIDList:").concat(t)),this.deleteLocalConversationList(t)}}},{key:"onConversationPinned",value:function(e){var t=this;if(at(e)){var n=!1;e.forEach((function(e){var r,o=e.type,a=e.userID,i=e.groupID;1===o?r=t.getLocalConversation("".concat(T.CONV_C2C).concat(a)):2===o&&(r=t.getLocalConversation("".concat(T.CONV_GROUP).concat(i))),r&&(Fe.l("".concat(t._n,".onConversationPinned conversationID:").concat(r.conversationID," isPinned:").concat(r.isPinned)),r.isPinned||(r.isPinned=!0,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:"onConversationUnpinned",value:function(e){var t=this;if(at(e)){var n=!1;e.forEach((function(e){var r,o=e.type,a=e.userID,i=e.groupID;1===o?r=t.getLocalConversation("".concat(T.CONV_C2C).concat(a)):2===o&&(r=t.getLocalConversation("".concat(T.CONV_GROUP).concat(i))),r&&(Fe.l("".concat(t._n,".onConversationUnpinned conversationID:").concat(r.conversationID," isPinned:").concat(r.isPinned)),r.isPinned&&(r.isPinned=!1,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:"getMessageList",value:function(e){var t=this,n=e.conversationID,r=e.nextReqMessageID,o=e.count,a="".concat(this._n,".getMessageList"),i=this.getLocalConversation(n),s="";if(i&&i.groupProfile&&(s=i.groupProfile.type),kt(s))return Fe.l("".concat(a," not available in avchatroom. conversationID:").concat(n)),$a({messageList:[],nextReqMessageID:"",isCompleted:!0});(it(o)||o>15)&&(o=15),!r&&this._isNotInCommunity(n)&&(this._messageListHandler.removeByConversationID(n),this._completedMap.delete(n),this._roamingMessageSequenceMap.delete(n));var c=this._computeRemainingCount({conversationID:n,nextReqMessageID:r}),l=this._completedMap.has(n);if(Fe.l("".concat(a," conversationID:").concat(n," nextReqMessageID:").concat(r)+" remainingCount:".concat(c," count:").concat(o," isCompleted:").concat(l)),this._needGetHistory({conversationID:n,remainingCount:c,count:o}))return this.getHistoryMessages({conversationID:n,nextReqMessageID:r,count:20}).then((function(e){var r=e.nextReqID,o=e.storedMessageList,i=t._completedMap.has(n),s=o;c>0&&(s=t._messageListHandler.getLocalMessageList(n).slice(0,o.length+c));var l={nextReqMessageID:i?"":r,messageList:s,isCompleted:i};return Fe.l("".concat(a," ret.nextReqMessageID:").concat(l.nextReqMessageID," ret.isCompleted:").concat(l.isCompleted," ret.length:").concat(s.length)),za(l)}));this.modifyMessageList(n);var u=this._getMessageListFromMemory({conversationID:n,nextReqMessageID:r,count:o});return $a(u)}},{key:"_getMessageListFromMemory",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,r=e.count,o="".concat(this._n,"._getMessageListFromMemory"),a=this._messageListHandler.getLocalMessageList(t),i=a.length,s=0,c={isCompleted:!1,nextReqMessageID:"",messageList:[]};return n?(s=a.findIndex((function(e){return e.ID===n})))>r?(c.messageList=a.slice(s-r,s),c.nextReqMessageID=a[s-r].ID):(c.messageList=a.slice(0,s),c.isCompleted=!0):i>r?(s=i-r,c.messageList=a.slice(s,i),c.nextReqMessageID=a[s].ID):(c.messageList=a.slice(0,i),c.isCompleted=!0),Fe.l("".concat(o," conversationID:").concat(t)+" ret.nextReqMessageID:".concat(c.nextReqMessageID," ret.isCompleted:").concat(c.isCompleted," ret.length:").concat(c.messageList.length)),c}},{key:"getMessageListHopping",value:function(e){var t=e.conversationID,n=e.sequence,r=e.time,o=e.count,a=e.direction,i=void 0===a?0:a;if((it(o)||o>15)&&(o=15),t.startsWith(T.CONV_C2C)){var s=this.getModule(Nn),c=t.replace(T.CONV_C2C,"");return s.getRoamingMessagesHopping({peerAccount:c,time:r,count:o,direction:i})}if(t.startsWith(T.CONV_GROUP)){var l=this.getModule(Rn),u=t.replace(T.CONV_GROUP,"");return l.getRoamingMessagesHopping({groupID:u,sequence:n,count:o,direction:i})}}},{key:"_computeRemainingCount",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,r=this._messageListHandler.getLocalMessageList(t),o=r.length;if(!n)return o;var a=0;return St(t)?a=r.findIndex((function(e){return e.ID===n})):Tt(t)&&(a=-1!==n.indexOf("-")?r.findIndex((function(e){return e.ID===n})):r.findIndex((function(e){return e.sequence===n}))),-1===a&&(a=0),a}},{key:"_getMessageListSize",value:function(e){return this._messageListHandler.getLocalMessageList(e).length}},{key:"_needGetHistory",value:function(e){var t=e.conversationID,n=e.remainingCount,r=e.count,o=this.getLocalConversation(t),a="";return o&&o.groupProfile&&(a=o.groupProfile.type),!It(t)&&!kt(a)&&!(Tt(t)&&this._isPagingGetGroupListCompleted()&&this._getLocalGroupCount()<=4e3&&!this._hasLocalGroup(t)&&!this._isTopicConversation(t))&&n<=r&&!this._completedMap.has(t)}},{key:"_isTopicConversation",value:function(e){var t=e.replace(T.CONV_GROUP,"");return wt(t)}},{key:"getHistoryMessages",value:function(e){var t=e.conversationID,n=e.count;if(t===T.CONV_SYSTEM)return $a();var r=15;n>20&&(r=20);var o=null;if(St(t)){var a=this._roamingMessageKeyAndTimeMap.has(t);return(o=this.getModule(Nn))?o.getRoamingMessage({conversationID:t,peerAccount:t.replace(T.CONV_C2C,""),count:r,lastMessageTime:a?this._roamingMessageKeyAndTimeMap.get(t).lastMessageTime:0,messageKey:a?this._roamingMessageKeyAndTimeMap.get(t).messageKey:""}):Ja({code:fa.CANNOT_FIND_MODULE})}if(Tt(t)){if(!(o=this.getModule(Rn)))return Ja({code:fa.CANNOT_FIND_MODULE});var i=null;this._conversationMap.has(t)&&(i=this._conversationMap.get(t).lastMessage);var s=0;i&&(s=i.lastSequence);var c=this._roamingMessageSequenceMap.get(t);return o.getRoamingMessage({conversationID:t,groupID:t.replace(T.CONV_GROUP,""),count:r,sequence:c||s})}return $a()}},{key:"patchConversationLastMessage",value:function(e){var t=this.getLocalConversation(e);if(t){var n=t.lastMessage,r=n.messageForShow,o=n.payload;if(Kt(r)||Kt(o)){var a=this._messageListHandler.getLocalMessageList(e);if(0===a.length)return;var i=a[a.length-1];Fe.l("".concat(this._n,".patchConversationLastMessage conversationID:").concat(e," payload:"),i.payload),t.updateLastMessage(i)}}}},{key:"onRoamingMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=t.startsWith(T.CONV_C2C)?T.CONV_C2C:T.CONV_GROUP,a=null,i=[],s=[],c=0,l=e.length,u=null,d=o===T.CONV_GROUP,p=this.getModule(Yn),f=this.getFileDownloadProxy(),h=function(){c=d?e.length-1:0,l=d?0:e.length},m=function(){d?--c:++c},v=function(){return d?c>=l:c<l};for(h();v();m())if(d&&1===e[c].sequence&&r&&this.setCompleted(t),1!==e[c].isPlaceMessage)if((a=new Ya(e[c])).to=e[c].to,o!==T.CONV_GROUP||it(e[c].topicID)||(a.to=e[c].topicID),a.isSystemMessage=!!e[c].isSystemMessage,a.conversationType=o,4===e[c].event?u={type:T.MSG_GRP_TIP,content:n(n({},e[c].elements),{},{groupProfile:e[c].groupProfile})}:(e[c].elements=p.parseElements(e[c].elements,e[c].from),u=e[c].elements),d||a.setNickAndAvatar({nick:e[c].nick,avatar:e[c].avatar}),Kt(u)){var g=new Ia("emptyMessageBody");g.setMessage("from:".concat(a.from," to:").concat(a.to," sequence:").concat(a.sequence," event:").concat(e[c].event)),g.setNetworkType(this.getNetworkType()).setLevel("warning").end()}else a.setElement(u,f),a.reInitialize(this.getMyUserID()),i.push(a);return h=m=v=null,r?(this._messageListHandler.unshift(i,s),i=null,s):(s=null,i)}},{key:"findMessage",value:function(e){return this._messageListHandler.findMessage(e)}},{key:"_isNotInCommunity",value:function(e){var t=!1;if(e.startsWith(T.CONV_GROUP)&&this._isTopicConversation(e)){var n=Bt(e.replace(T.CONV_GROUP,""));this.getModule(Rn).hasLocalGroup(n)||(t=!0)}return t}},{key:"deleteTopicRoamingMessageInfo",value:function(e){var t=this;Ct({groupID:e})&&this._messageListHandler.getTopicConversationIDList(e).forEach((function(e){t._messageListHandler.removeByConversationID(e),t._completedMap.delete(e),t._roamingMessageSequenceMap.delete(e)}))}},{key:"deleteGroupRomaingMessageInfo",value:function(e){var t="".concat(T.CONV_GROUP).concat(e);this._messageListHandler.removeByConversationID(t),this._completedMap.delete(t),this._roamingMessageSequenceMap.delete(t)}},{key:"setMessageRead",value:function(e){var t=e.conversationID,n=this.getLocalConversation(t);if(Fe.l("".concat(this._n,".setMessageRead conversationID:").concat(t," unreadCount:").concat(n?n.unreadCount:0)),!n)return $a();if(n.type!==T.CONV_GROUP&&n.type!==T.CONV_TOPIC||Kt(n.groupAtInfoList)||this.deleteGroupAtTips(t),0===n.unreadCount)return $a();if(n.type===T.CONV_GROUP&&!this._hasLocalGroup(t))return 0!==n.unreadCount&&(n.unreadCount=0,this.emitConversationUpdate(!0,!1)),$a();var r=this._messageListHandler.getLocalLastMessage(t),o=n.lastMessage.lastTime;r&&o<r.time&&(o=r.time);var a=n.lastMessage.lastSequence;if(r&&a<r.sequence&&(a=r.sequence),n.type===T.CONV_TOPIC&&it(r)){var i=this.getModule(Un),s=t.replace(T.CONV_GROUP,""),c=Bt(s),l=i.getLocalTopic(c,s);l&&(a=l.nextMessageSeq-1)}var u=null;switch(n.type){case T.CONV_C2C:return(u=this.getModule(Nn))?u.setMessageRead({conversationID:t,lastMessageTime:o}):Ja({code:fa.CANNOT_FIND_MODULE});case T.CONV_GROUP:case T.CONV_TOPIC:return(u=this.getModule(Rn))?u.setMessageRead({conversationID:t,lastMessageSeq:a}):Ja({code:fa.CANNOT_FIND_MODULE});case T.CONV_SYSTEM:return n.unreadCount=0,this.emitConversationUpdate(!0,!1),$a();default:return $a()}}},{key:"setAllMessageRead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n="setAllMessageRead",r="".concat(this._n,".").concat(n);t.scope||(t.scope=T.READ_ALL_MSG),Fe.l("".concat(r," options:"),t);var o=this._createSetAllMessageReadPack(t);if(0===o.readAllC2CMessage&&0===o.groupMessageReadInfoList.length)return $a();var a=new Ia(n);return this.request({protocolName:io,requestData:o}).then((function(n){var r=n.data,o=e._handleAllMessageRead(r);return a.setMessage("scope:".concat(t.scope," failureGroups:").concat(JSON.stringify(o))).setNetworkType(e.getNetworkType()).end(),$a()})).catch((function(t){return e.probeNetwork().then((function(e){var n=_(e,2),r=n[0],o=n[1];a.setError(t,r,o).end()})),Fe.w("".concat(r," failed. error:"),t),Ja({code:t&&t.code?t.code:fa.MESSAGE_UNREAD_ALL_FAIL,message:t&&t.message?t.message:void 0})}))}},{key:"setConversationCustomData",value:function(e){return this._convGroupHandler.setConvCustomData(e)}},{key:"markConversation",value:function(e){return this._convGroupHandler.markConversation(e)}},{key:"getConversationGroupList",value:function(){return this._convGroupHandler.getLocalConvGroupList()}},{key:"createConversationGroup",value:function(e){return this._convGroupHandler.createConvGroup(e)}},{key:"deleteConversationGroup",value:function(e){return this._convGroupHandler.deleteConvGroup(e)}},{key:"renameConversationGroup",value:function(e){return this._convGroupHandler.renameConvGroup(e)}},{key:"addConversationsToGroup",value:function(e){return this._convGroupHandler.addConvsToGroup(e)}},{key:"deleteConversationsFromGroup",value:function(e){return this._convGroupHandler.deleteConvsFromGroup(e)}},{key:"onConversationMarkUpdated",value:function(e){this._convGroupHandler.onConvMarkUpdated(e)}},{key:"onConversationGroupCreated",value:function(e){this._convGroupHandler.onConvGroupCreated(e)}},{key:"onConversationGroupDeleted",value:function(e){this._convGroupHandler.onConvGroupDeleted(e)}},{key:"onConversationGroupNameUpdated",value:function(e){this._convGroupHandler.onConvGroupNameUpdated(e)}},{key:"onConversationInGroupUpdated",value:function(e){this._convGroupHandler.onConvInGroupUpdated(e)}},{key:"onConversationAddedToOrDeletedFromGroup",value:function(e){this._convGroupHandler.onConvAddedToOrDeletedFromGroup(e)}},{key:"_getConversationLastMessageSequence",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastSequence;return t&&n<t.sequence&&(n=t.sequence),n}},{key:"_getConversationLastMessageTime",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastTime;return t&&n<t.time&&(n=t.time),n}},{key:"_createSetAllMessageReadPack",value:function(e){var t,n={readAllC2CMessage:0,groupMessageReadInfoList:[]},r=e.scope,o=w(this._conversationMap);try{for(o.s();!(t=o.n()).done;){var a=_(t.value,2)[1];if(a.unreadCount>0)if(a.type===T.CONV_C2C&&0===n.readAllC2CMessage){if(r===T.READ_ALL_MSG)n.readAllC2CMessage=1;else if(r===T.READ_ALL_C2C_MSG){n.readAllC2CMessage=1;break}}else if(a.type===T.CONV_GROUP&&(r===T.READ_ALL_GROUP_MSG||r===T.READ_ALL_MSG)){var i=this._getConversationLastMessageSequence(a);n.groupMessageReadInfoList.push({groupID:a.groupProfile.groupID,messageSequence:i})}}}catch(c){o.e(c)}finally{o.f()}return n}},{key:"onPushedAllMessageRead",value:function(e){this._handleAllMessageRead(e)}},{key:"_handleAllMessageRead",value:function(e){var t=e.groupMessageReadInfoList,n=e.readAllC2CMessage,r=this._parseGroupReadInfo(t);return this._updateAllConversationUnreadCount({readAllC2CMessage:n})>=1&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate()),r}},{key:"_parseGroupReadInfo",value:function(e){var t=[];if(e&&e.length)for(var n=0,r=e.length;n<r;n++){var o=e[n],a=o.groupID,i=o.sequence,s=o.retCode,c=o.lastMessageSeq;it(s)?this._remoteGroupReadSequenceMap.set(a,c):(this._remoteGroupReadSequenceMap.set(a,i),0!==s&&t.push("".concat(a,"-").concat(i,"-").concat(s)))}return t}},{key:"_updateAllConversationUnreadCount",value:function(e){var t,n=e.readAllC2CMessage,r=0,o=w(this._conversationMap);try{for(o.s();!(t=o.n()).done;){var a=_(t.value,2),i=a[0],s=a[1];if(s.unreadCount>=1){if(1===n&&s.type===T.CONV_C2C){var c=this._getConversationLastMessageTime(s);this.updateIsReadAfterReadReport({conversationID:i,lastMessageTime:c})}else if(s.type===T.CONV_GROUP){var l=i.replace(T.CONV_GROUP,"");if(this._remoteGroupReadSequenceMap.has(l)){var u=this._remoteGroupReadSequenceMap.get(l),d=this._getConversationLastMessageSequence(s);this.updateIsReadAfterReadReport({conversationID:i,remoteReadSequence:u}),d>=u&&this._remoteGroupReadSequenceMap.delete(l)}}this.updateUnreadCount(i,!1)&&(r+=1)}}}catch(f){o.e(f)}finally{o.f()}return r}},{key:"isRemoteRead",value:function(e){var t=e.conversationID,n=e.sequence,r=t.replace(T.CONV_GROUP,""),o=!1;if(this._remoteGroupReadSequenceMap.has(r)){var a=this._remoteGroupReadSequenceMap.get(r);n<=a&&(o=!0,Fe.l("".concat(this._n,".isRemoteRead conversationID:").concat(t," messageSequence:").concat(n," remoteReadSequence:").concat(a))),n>=a+10&&this._remoteGroupReadSequenceMap.delete(r)}return o}},{key:"updateIsReadAfterReadReport",value:function(e){var t=e.conversationID,n=e.lastMessageSeq,r=e.lastMessageTime,o=this._messageListHandler.getLocalMessageList(t);if(0!==o.length)for(var a,i=o.length-1;i>=0;i--)if(a=o[i],!(r&&a.time>r||n&&a.sequence>n)){if("in"===a.flow&&a.isRead)break;a.setIsRead(!0)}}},{key:"updateUnreadCount",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!1,r=this.getLocalConversation(e),o=this._messageListHandler.getLocalMessageList(e);if(r){var a=r.unreadCount,i=o.filter((function(e){return!e.isRead&&!e._onlineOnlyFlag&&!e.isDeleted})).length;if(a!==i&&(r.unreadCount=i,n=!0,Fe.l("".concat(this._n,".updateUnreadCount from ").concat(a," to ").concat(i,", conversationID:").concat(e)),!0===t&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate())),n&&r.type===T.CONV_TOPIC){var s=r.unreadCount,c=this.getModule(Un),l=e.replace(T.CONV_GROUP,"");c.onConversationProxy({topicID:l,unreadCount:s})}return n}}},{key:"clearGroupAtInfoList",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalConversation(e);if(n&&n.groupAtInfoList.length>0){if(n.clearGroupAtInfoList(),Fe.l("".concat(this._n,".clearGroupAtInfoList conversationID:").concat(e)),n.type===T.CONV_TOPIC){var r=n.groupAtInfoList,o=this.getModule(Un),a=e.replace(T.CONV_GROUP,"");o.onConversationProxy({topicID:a,groupAtInfoList:r})}!0===t&&this.emitConversationUpdate(!0,!1)}}},{key:"updateReadReceiptInfo",value:function(e){var t=this,n=e.userID,r=void 0===n?void 0:n,o=e.groupID,a=void 0===o?void 0:o,i=e.readReceiptList;if(!Kt(i)){var s=[];if(it(r)){if(!it(a)){var c="".concat(T.CONV_GROUP).concat(a);i.forEach((function(e){var n=e.tinyID,r=e.clientTime,o=e.random,i=e.readCount,l=e.unreadCount,u="".concat(n,"-").concat(r,"-").concat(o),d=t._messageListHandler.getLocalMessage(c,u),p={groupID:a,messageID:u,readCount:0,unreadCount:0};d&&(et(i)&&(d.readReceiptInfo.readCount=i,p.readCount=i),et(l)&&(d.readReceiptInfo.unreadCount=l,p.unreadCount=l),s.push(p))}))}}else{var l="".concat(T.CONV_C2C).concat(r);i.forEach((function(e){var n=e.tinyID,o=e.clientTime,a=e.random,i="".concat(n,"-").concat(o,"-").concat(a),c=t._messageListHandler.getLocalMessage(l,i);if(c){c.readReceiptInfo.isPeerRead=!0;var u={userID:r,messageID:i,isPeerRead:!0};s.push(u)}}))}s.length>0&&this.emitOuterEvent(S.MESSAGE_READ_RECEIPT_RECEIVED,s)}}},{key:"recomputeGroupUnreadCount",value:function(e){var t=e.conversationID,n=e.count,r=this.getLocalConversation(t);if(r){var o=r.unreadCount,a=o-n;a<0&&(a=0),r.unreadCount=a,Fe.l("".concat(this._n,".recomputeGroupUnreadCount from ").concat(o," to ").concat(a,", conversationID:").concat(t))}}},{key:"updateIsRead",value:function(e){var t=this.getLocalConversation(e),n=this.getLocalMessageList(e);if(t&&0!==n.length&&!It(t.type)){for(var r=[],o=0,a=n.length;o<a;o++)"in"!==n[o].flow?"out"!==n[o].flow||n[o].isRead||n[o].setIsRead(!0):r.push(n[o]);var i=0;if(t.type===T.CONV_C2C){var s=r.slice(-t.unreadCount).filter((function(e){return e.isRevoked})).length;i=r.length-t.unreadCount-s}else i=r.length-t.unreadCount;for(var c=0;c<i&&!r[c].isRead;c++)r[c].setIsRead(!0)}}},{key:"deleteGroupAtTips",value:function(e){var t=this,n="".concat(this._n,".deleteGroupAtTips");Fe.l("".concat(n));var r=this._conversationMap.get(e);if(!r)return Promise.resolve();var o=r.groupAtInfoList;if(0===o.length)return Promise.resolve();var a=void 0;e.startsWith(T.CONV_GROUP)&&(a=e.replace(T.CONV_GROUP,""));var i=b(o);if((Ct({groupID:a})||wt(a))&&0===(i=o.filter((function(e){return!e.atTypeArray.includes(T.CONV_AT_ALL)}))).length)return this.clearGroupAtInfoList(e,!1),Promise.resolve();var s=this.getMyUserID();return this.request({protocolName:xr,requestData:{messageListToDelete:i.map((function(e){return{from:e.from,to:s,messageSeq:e.__sequence,messageRandom:e.__random,groupID:it(e.topicID)?e.groupID:e.topicID}}))}}).then((function(){return Fe.l("".concat(n," ok. count:").concat(o.length)),t.clearGroupAtInfoList(e,!1),Promise.resolve()})).catch((function(e){return Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"appendToMessageList",value:function(e){this._messageListHandler.pushIn(e)}},{key:"setMessageRandom",value:function(e){this.singlyLinkedList.set(e.random)}},{key:"deleteMessageRandom",value:function(e){this.singlyLinkedList.delete(e.random)}},{key:"pushIntoMessageList",value:function(e,t,n){return!(!this._messageListHandler.pushIn(t,n)||this._isMessageFromCurrentInstance(t)&&!n)&&(e.push(t),!0)}},{key:"_isMessageFromCurrentInstance",value:function(e){return this.singlyLinkedList.has(e.random)}},{key:"revoke",value:function(e,t,n){return this._messageListHandler.revoke(e,t,n)}},{key:"getPeerReadTime",value:function(e){return this._peerReadTimeMap.get(e)}},{key:"recordPeerReadTime",value:function(e,t){this._peerReadTimeMap.has(e)?this._peerReadTimeMap.get(e)<t&&this._peerReadTimeMap.set(e,t):this._peerReadTimeMap.set(e,t)}},{key:"updateMessageIsPeerReadProperty",value:function(e,t){if(e.startsWith(T.CONV_C2C)&&t>0){var n=this._messageListHandler.updateMessageIsPeerReadProperty(e,t);if(n.length>0&&this.emitOuterEvent(S.MESSAGE_READ_BY_PEER,n),this._conversationMap.has(e)){var r=this._conversationMap.get(e).lastMessage;Kt(r)||r.fromAccount===this.getMyUserID()&&r.lastTime<=t&&!r.isPeerRead&&(r.isPeerRead=!0,this.emitConversationUpdate(!0,!1))}}}},{key:"updateMessageIsModifiedProperty",value:function(e){this._messageListHandler.updateMessageIsModifiedProperty(e)}},{key:"setCompleted",value:function(e){Fe.l("".concat(this._n,".setCompleted. conversationID:").concat(e)),this._completedMap.set(e,!0)}},{key:"updateRoamingMessageKeyAndTime",value:function(e,t,n){this._roamingMessageKeyAndTimeMap.set(e,{messageKey:t,lastMessageTime:n})}},{key:"updateRoamingMessageSequence",value:function(e,t){this._roamingMessageSequenceMap.set(e,t)}},{key:"getConversationList",value:function(e){var t=this,n="getConversationList",r="".concat(this._n,".").concat(n),o="pagingStatus:".concat(this._pagingStatus,", local conversation count:").concat(this._conversationMap.size,", options:").concat(e);if(Fe.l("".concat(r,". ").concat(o)),this._pagingStatus===Zt.REJECTED){var a=new Ia(n);return a.setMessage(o),this.syncConversationList().then((function(){a.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return za({conversationList:n,isSyncCompleted:t._isSyncCompleted()})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}if(0===this._conversationMap.size){var i=new Ia(n);return i.setMessage(o),this.syncConversationList().then((function(){i.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return za({conversationList:n,isSyncCompleted:t._isSyncCompleted()})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}var s=this._getConversationList(e);return Fe.l("".concat(r,". returned conversation count:").concat(s.length)),$a({conversationList:s,isSyncCompleted:this._isSyncCompleted()})}},{key:"_getConversationList",value:function(e){if(it(e))return this.getLocalConversationList();if(at(e))return 0===e.length?[]:this.getLocalConversationList().filter((function(t){return e.includes(t.conversationID)}));if(ot(e)){var t=e.type,n=e.markType,r=e.groupName;return this.getLocalConversationList().filter((function(e){return(t!==T.CONV_C2C&&t!==T.CONV_GROUP||e.type===t)&&(!nt(r)||e.conversationGroupList.includes(r))&&(!et(n)||e.markList.includes(n))}))}return[]}},{key:"_handleC2CPeerReadTime",value:function(){var e,t=w(this._conversationMap);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2),r=n[0],o=n[1];o.type===T.CONV_C2C&&(Fe.d("".concat(this._n,"._handleC2CPeerReadTime conversationID:").concat(r," peerReadTime:").concat(o.peerReadTime)),this.recordPeerReadTime(r,o.peerReadTime))}}catch(i){t.e(i)}finally{t.f()}}},{key:"_isPagingGetGroupListCompleted",value:function(){return this.getModule(Rn).isPagingGetCompleted()}},{key:"_getLocalGroupCount",value:function(){return this.getModule(Rn).getLocalGroupList().length}},{key:"_hasLocalGroup",value:function(e){return this.getModule(Rn).hasLocalGroup(e.replace(T.CONV_GROUP,""))}},{key:"getConversationProfile",value:function(e){var t,n=this;if((t=this._conversationMap.has(e)?this._conversationMap.get(e):new mi({conversationID:e,type:e.slice(0,3)===T.CONV_C2C?T.CONV_C2C:T.CONV_GROUP},this.isIntl()))._isInfoCompleted||t.type===T.CONV_SYSTEM)return $a({conversation:t});if(Tt(e)&&!this._hasLocalGroup(e))return $a({conversation:t});var r="".concat(this._n,".").concat("getConversationProfile"),o=new Ia("getConversationProfile");return Fe.l("".concat(r,". conversationID:").concat(e," remark:").concat(t.remark," lastMessage:"),t.lastMessage),this._updateUserOrGroupProfileCompletely(t).then((function(a){o.setNetworkType(n.getNetworkType()).setMessage("conversationID:".concat(e," unreadCount:").concat(a.data.conversation.unreadCount)).end();var i=n.getModule(xn);if(i&&t.type===T.CONV_C2C){var s=e.replace(T.CONV_C2C,"");if(i.isMyFriend(s)){var c=i.getFriendRemark(s);t.remark!==c&&(t.remark=c,Fe.l("".concat(r,". conversationID:").concat(e," patch remark:").concat(t.remark)))}}return Fe.l("".concat(r," ok. conversationID:").concat(e)),a})).catch((function(t){return n.probeNetwork().then((function(n){var r=_(n,2),a=r[0],i=r[1];o.setError(t,a,i).setMessage("conversationID:".concat(e)).end()})),Fe.e("".concat(r," failed. error:"),t),Ja(t)}))}},{key:"_updateUserOrGroupProfileCompletely",value:function(e){var t=this;return e.type===T.CONV_C2C?this.getModule(An).getUserProfile({userIDList:[e.toAccount]}).then((function(n){var r=n.data;return 0===r.length?Ja(new qa({code:fa.USER_OR_GROUP_NOT_FOUND})):(e.userProfile=r[0],e._isInfoCompleted=!0,t._unshiftConversation(e),$a({conversation:e}))})):this.getModule(Rn).getGroupProfile({groupID:e.toAccount}).then((function(n){return e.groupProfile=n.data.group,e._isInfoCompleted=!0,t._unshiftConversation(e),$a({conversation:e})}))}},{key:"_unshiftConversation",value:function(e){e instanceof mi&&!this._conversationMap.has(e.conversationID)&&(this._conversationMap=new Map([[e.conversationID,e]].concat(b(this._conversationMap))),this._setStorageConversationList(),this.emitConversationUpdate(!0,!1))}},{key:"_onProfileUpdated",value:function(e){var t=this;e.data.forEach((function(e){var n=e.userID;if(n===t.getMyUserID())t._onMyProfileModified({latestNick:e.nick,latestAvatar:e.avatar});else{var r=t._conversationMap.get("".concat(T.CONV_C2C).concat(n));r&&(r.userProfile=e)}}))}},{key:"_isSyncCompleted",value:function(){return this._pagingStatus===Zt.RESOLVED}},{key:"_errorLog",value:function(e,t,n,r){var o=new Error("Params validate failed."),a="".concat(this.getErrorMessage("API_REFER")).concat(e);throw Fe.w("[".concat(e,"] | ").concat(t," | ").concat(this.getErrorMessage(n,r),", ").concat(a)),Fe.e("[".concat(e,"] Invalid ").concat(t,": type check failed for ").concat(t,".")),o}},{key:"_isValidConversationID",value:function(e){return St(e)||Tt(e)||It(e)}},{key:"deleteConversation",value:function(e){var t=this,n="deleteConversation";return nt(e)||rt(e)||this._errorLog(n,"options","StringOrObjectRequiredLog"),nt(e)?(this._isValidConversationID(e)||this._errorLog(n,"options","InvalidConversationID",e),Fe.l("".concat(this._n,".").concat(n," conversationID:").concat(e)),this.deleteConversationList({conversationIDList:[e],flag:1})):(at(e.conversationIDList)||this._errorLog(n,"conversationIDList","ArrayRequiredLog"),0===e.conversationIDList.length&&this._errorLog(n,"conversationIDList","NonEmptyArrayLog"),e.conversationIDList.forEach((function(e){t._isValidConversationID(e)||t._errorLog(n,"conversationIDList","InvalidConversationID",e)})),"clearHistoryMessage"in e&&"boolean"!=typeof e.clearHistoryMessage&&this._errorLog(n,"clearHistoryMessage","BooleanRequiredLog"),e.conversationIDList.length>100&&(e.conversationIDList=e.conversationIDList.slice(0,100)),this.deleteConversationList(e))}},{key:"deleteConversationList",value:function(e){var t=this,n=e.conversationIDList,r=void 0===n?[]:n,o=e.clearHistoryMessage,a=void 0===o||o,i=e.flag,s=void 0===i?0:i,c="".concat(this._n,".").concat("deleteConversationList");Fe.l("".concat(c," conversationIDList.length:").concat(r.length," clearHistoryMessage:").concat(a));var l=new Ia("deleteConversationList");return l.setMessage("conversationIDList:".concat(r)),Promise.all([this.rmLocalOnlyConversationList(r),this.rmLocalAndRemoteConversationList(r,a)]).then((function(e){l.setNetworkType(t.getNetworkType()).end();var n=[].concat(b(e[0]),b(e[1]));return 0===n.length?Ja(new qa({code:fa.CONVERSATION_NOT_FOUND})):(Fe.l("".concat(c," ok")),$a(1===s?{conversationID:n[0]}:{conversationIDList:n}))})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),Fe.e("".concat(c," failed. error:"),e),Ja(e)}))}},{key:"rmLocalOnlyConversationList",value:function(e){var t=this;return e.filter((function(e){if(!t._conversationMap.has(e))return!1;var n=t.getLocalConversation(e).type;return n!==T.CONV_GROUP||t._hasLocalGroup(e)?n===T.CONV_SYSTEM&&(t.getModule(Rn).deleteGroupSystemNotice({messageList:t._messageListHandler.getLocalMessageList(e)}),t.deleteLocalConversation(e),!0):(t.deleteLocalConversation(e),!0)}))}},{key:"rmLocalAndRemoteConversationList",value:function(e,t){var n=this,r={fromAccount:this.getMyUserID(),conversationList:[],clearHistoryMessage:t?1:0};return e.forEach((function(e){if(n._conversationMap.has(e)){var t=n.getLocalConversation(e).type;t===T.CONV_C2C?r.conversationList.push({toAccount:e.replace(t,""),type:1}):t===T.CONV_GROUP&&n._hasLocalGroup(e)&&r.conversationList.push({toGroupID:e.replace(t,""),type:2})}})),0===r.conversationList.length?[]:this.request({protocolName:Ar,requestData:r}).then((function(e){var t=[];return e.data.resultList.length>0&&e.data.resultList.map((function(e){if(0===e.code){var n="".concat(1===e.type?T.CONV_C2C:T.CONV_GROUP).concat(e.to);t.push(n)}})),n.deleteLocalConversationList(t),t}))}},{key:"clearHistoryMessage",value:function(e){var t=this,n={fromAccount:this.getMyUserID(),toAccount:void 0,type:void 0,toGroupID:void 0};if(!this._conversationMap.has(e))return Ja({code:fa.CONVERSATION_NOT_FOUND});var r=this._conversationMap.get(e).type;if(r===T.CONV_C2C)n.type=1,n.toAccount=e.replace(T.CONV_C2C,"");else{if(r!==T.CONV_GROUP)return r===T.CONV_SYSTEM?(this.getModule(Rn).deleteGroupSystemNotice({messageList:this._messageListHandler.getLocalMessageList(e)}),$a({conversationID:e})):Ja({code:fa.CONVERSATION_UN_RECORDED_TYPE});n.type=2,n.toGroupID=e.replace(T.CONV_GROUP,"")}var o="".concat(this._n,".").concat("clearHistoryMessage"),a=new Ia("clearHistoryMessage");return a.setMessage("conversationID:".concat(e)),Fe.l("".concat(o,". conversationID:").concat(e)),this.setMessageRead({conversationID:e}).then((function(){return t.request({protocolName:Nr,requestData:n})})).then((function(){a.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(o," ok")),t._messageListHandler.removeByConversationID(e),t.setCompleted(e);var n=t.getLocalConversation(e);return n&&(n.updateLastMessage(),t._sortConversationListAndEmitEvent()),$a({conversationID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Fe.e("".concat(o," failed. error:"),e),Ja(e)}))}},{key:"pinConversation",value:function(e){var t=this,n=e.conversationID,r=e.isPinned;if(!this._conversationMap.has(n))return Ja({code:fa.CONVERSATION_NOT_FOUND});var o=this.getLocalConversation(n);if(o.isPinned===r)return $a({conversationID:n});var a="".concat(this._n,".").concat("pinConversation"),i=new Ia("pinConversation");i.setMessage("conversationID:".concat(n," isPinned:").concat(r)),Fe.l("".concat(a,". conversationID:").concat(n," isPinned:").concat(r));var s=null;return St(n)?s={type:1,toAccount:n.replace(T.CONV_C2C,"")}:Tt(n)&&(s={type:2,groupID:n.replace(T.CONV_GROUP,"")}),this.request({protocolName:Rr,requestData:{fromAccount:this.getMyUserID(),operationType:!0===r?1:2,itemList:[s]}}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(a," ok")),o.isPinned!==r&&(o.isPinned=r,t._sortConversationListAndEmitEvent()),za({conversationID:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(a," failed. error:"),e),Ja(e)}))}},{key:"setMessageRemindType",value:function(e){return this._messageRemindHandler.set(e)}},{key:"patchMessageRemindType",value:function(e){var t=e.ID,n=e.isC2CConversation,r=e.messageRemindType,o=!1,a=this.getLocalConversation(n?"".concat(T.CONV_C2C).concat(t):"".concat(T.CONV_GROUP).concat(t));return a&&a.messageRemindType!==r&&(a.messageRemindType=r,o=!0),Fe.d("".concat(this._n,".patchMessageRemindType options:"),e,"ret:".concat(o)),o}},{key:"onC2CMessageRemindTypeSynced",value:function(e){var t=this,n="".concat(this._n,".onC2CMessageRemindTypeSynced");Fe.d(n,e),e.dataList.forEach((function(e){if(!Kt(e.muteNotificationsSync)){var r,o=e.muteNotificationsSync,a=o.to,i=o.updateSequence,s=o.muteFlag;t._messageRemindHandler.setUpdateSequence(i),0===s?r=T.MSG_REMIND_ACPT_AND_NOTE:1===s?r=T.MSG_REMIND_DISCARD:2===s&&(r=T.MSG_REMIND_ACPT_NOT_NOTE);var c=0;t.patchMessageRemindType({ID:a,isC2CConversation:!0,messageRemindType:r})&&(c+=1),Fe.l("".concat(n," updateCount:").concat(c)),c>=1&&t.emitConversationUpdate(!0,!1)}}))}},{key:"onGroupMessageRemindTypeSynced",value:function(e){Fe.d("".concat(this._n,".onGroupMessageRemindTypeSynced options:"),e),this._messageRemindHandler.onGroupMessageRemindTypeUpdated(e)}},{key:"deleteLocalConversation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this._conversationMap.has(e);if(Fe.d("".concat(this._n,".deleteLocalConversation conversationID:").concat(e," has:").concat(n)),n&&(this._conversationMap.delete(e),this._roamingMessageKeyAndTimeMap.has(e)&&this._roamingMessageKeyAndTimeMap.delete(e),this._roamingMessageSequenceMap.has(e)&&this._roamingMessageSequenceMap.delete(e),this._setStorageConversationList(),this._messageListHandler.removeByConversationID(e),this._completedMap.delete(e),t)){var r=!this._isTopicConversation(e);this.emitConversationUpdate(r,!1)}}},{key:"deleteLocalConversationList",value:function(e){var t=this,n=0,r=!1;e.forEach((function(e){t._conversationMap.has(e)&&(n+=t._conversationMap.get(e).unreadCount||0,t.deleteLocalConversation(e,!1),r=!0)})),Fe.l("".concat(this._n,".deleteLocalConversationList conversationIDList.length:").concat(e.length," isConvIDExisted:").concat(r)),r&&(this.emitConversationUpdate(!0,!1),n>0&&this.emitTotalUnreadMessageCountUpdate())}},{key:"isMessageSentByCurrentInstance",value:function(e){return!(!this._messageListHandler.hasLocalMessage(e.conversationID,e.ID)&&!this.singlyLinkedList.has(e.random))}},{key:"modifyMessageList",value:function(e){if(e.startsWith(T.CONV_C2C)&&this._conversationMap.has(e)){var t=this._conversationMap.get(e),n=Date.now();this._messageListHandler.modifyMessageSentByPeer({conversationID:e,latestNick:t.userProfile.nick,latestAvatar:t.userProfile.avatar});var r=this.getModule(An).getNickAndAvatarByUserID(this.getMyUserID());this._messageListHandler.modifyMessageSentByMe({conversationID:e,latestNick:r.nick,latestAvatar:r.avatar}),Fe.l("".concat(this._n,".modifyMessageList conversationID:").concat(e," cost ").concat(Date.now()-n," ms"))}}},{key:"updateUserProfileSpecifiedKey",value:function(e){Fe.l("".concat(this._n,".updateUserProfileSpecifiedKey options:"),e);var t=e.conversationID,n=e.nick,r=e.avatar;if(this._conversationMap.has(t)){var o=this._conversationMap.get(t).userProfile;nt(n)&&o.nick!==n&&(o.nick=n),nt(r)&&o.avatar!==r&&(o.avatar=r),this.emitConversationUpdate(!0,!1)}}},{key:"_onMyProfileModified",value:function(e){var t=this,r=this.getLocalConversationList(),o=Date.now();r.forEach((function(r){t.modifyMessageSentByMe(n({conversationID:r.conversationID},e))})),Fe.l("".concat(this._n,"._onMyProfileModified. modify all messages sent by me, cost ").concat(Date.now()-o," ms"))}},{key:"modifyMessageSentByMe",value:function(e){this._messageListHandler.modifyMessageSentByMe(e)}},{key:"getLatestMessageSentByMe",value:function(e){return this._messageListHandler.getLatestMessageSentByMe(e)}},{key:"modifyMessageSentByPeer",value:function(e){this._messageListHandler.modifyMessageSentByPeer(e)}},{key:"getLatestMessageSentByPeer",value:function(e){return this._messageListHandler.getLatestMessageSentByPeer(e)}},{key:"pushIntoNoticeResult",value:function(e,t){return!(!this._messageListHandler.pushIn(t)||this.singlyLinkedList.has(t.random))&&(e.push(t),!0)}},{key:"getLocalLastMessage",value:function(e){return this._messageListHandler.getLocalLastMessage(e)}},{key:"checkAndPatchRemark",value:function(){var e=Promise.resolve();if(0===this._conversationMap.size)return e;var t=this.getModule(xn);if(!t)return e;var n=b(this._conversationMap.values()).filter((function(e){return e.type===T.CONV_C2C}));if(0===n.length)return e;var r=0;return n.forEach((function(e){var n=e.conversationID.replace(T.CONV_C2C,"");if(t.isMyFriend(n)){var o=t.getFriendRemark(n);e.remark!==o&&(e.remark=o,r+=1)}})),Fe.l("".concat(this._n,".checkAndPatchRemark. c2c conversation count:").concat(n.length,", patched count:").concat(r)),e}},{key:"updateTopicConversation",value:function(e){this._updateLocalConversationList({conversationOptionsList:e,isFromGetConversations:!0})}},{key:"sendReadReceipt",value:function(e){var t=e[0],n=null;return t.conversationType===T.CONV_C2C?n=this._m.getModule(Nn):t.conversationType===T.CONV_GROUP&&(n=this._m.getModule(Rn)),n?n.sendReadReceipt(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"getReadReceiptList",value:function(e){var t=e[0],n=null;return t.conversationType===T.CONV_C2C?n=this._m.getModule(Nn):t.conversationType===T.CONV_GROUP&&(n=this._m.getModule(Rn)),n?n.getReadReceiptList(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"getLastMessageTime",value:function(e){var t=this.getLocalConversation(e);return t?t.lastMessage.lastTime:0}},{key:"getTotalUnreadMessageCount",value:function(){var e=this.getLocalConversationList(),t=0;return e.forEach((function(e){e.type!==T.CONV_SYSTEM&&(""!==e.messageRemindType&&e.messageRemindType!==T.MSG_REMIND_ACPT_AND_NOTE||(t+=e.unreadCount))})),t}},{key:"emitTotalUnreadMessageCountUpdate",value:function(){var e=this.getTotalUnreadMessageCount();this._convTotalUnreadCount!==e&&(Fe.l("".concat(this._n,".emitTotalUnreadMessageCountUpdate from ").concat(this._convTotalUnreadCount," to ").concat(e)),this._convTotalUnreadCount=e,this.emitOuterEvent(S.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED))}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._pagingStatus=Zt.NOT_START,this._messageListHandler.reset(),this._messageRemindHandler.reset(),this._roamingMessageKeyAndTimeMap.clear(),this._roamingMessageSequenceMap.clear(),this.singlyLinkedList.reset(),this._peerReadTimeMap.clear(),this._completedMap.clear(),this._conversationMap.clear(),this._pagingTimeStamp=0,this._pagingStartIndex=0,this._pagingPinnedTimeStamp=0,this._pagingPinnedStartIndex=0,this._remoteGroupReadSequenceMap.clear(),this._convTotalUnreadCount=0,this.resetReady()}}]),r}(sr),bi=function(){function e(t){o(this,e),this._groupModule=t,this._n="GroupTipsHandler",this._cachedGroupTipsMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,this._getTopicPendingMap=new Map}return i(e,[{key:"onCheckTimer",value:function(e){e%1==0&&this._cachedGroupTipsMap.size>0&&this._checkCachedGroupTips()}},{key:"_checkCachedGroupTips",value:function(){var e=this;this._cachedGroupTipsMap.forEach((function(t,n){var r=e._checkCountMap.get(n),o=e._groupModule.hasLocalGroup(n);Fe.l("".concat(e._n,"._checkCachedGroupTips groupID:").concat(n," hasLocalGroup:").concat(o," checkCount:").concat(r)),o?(e._notifyCachedGroupTips(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):r>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupTips(n),e._checkCountMap.delete(n)):(r++,e._checkCountMap.set(n,r))}))}},{key:"onNewGroupTips",value:function(e){Fe.d("".concat(this._n,".onReceiveGroupTips count:").concat(e.dataList.length));var t=this.newGroupTipsStoredAndSummary(e),n=t.eventDataList,r=t.result,o=t.AVChatRoomMessageList;o.length>0&&this._groupModule.onAVChatRoomMessage(o),n.length>0&&(this._groupModule.updateNextMessageSeq(n),this._groupModule.getModule(Vn).onNewMessage({conversationOptionsList:n,isInstantMessage:!0})),r.length>0&&(this._groupModule.emitOuterEvent(S.MESSAGE_RECEIVED,r),this.handleMessageList(r))}},{key:"newGroupTipsStoredAndSummary",value:function(e){for(var t=this,r=e.event,o=e.dataList,a=null,i=[],s=[],c={},l=[],u=function(e,u){var d=Ot(o[e]);if(6===r){if(t._groupModule.isGroupAttributesUpdatedNotice(d))return"continue";if(t._groupModule.isGroupCountersNotice(d))return"continue"}var p=d.groupProfile,f=p.groupID,h=p.communityType,m=void 0===h?0:h,v=p.topicID,g=void 0===v?void 0:v,_=p.invisible,b=void 0,y=t._groupModule.isMessageFromTopic(m,g);if(y){b=T.CONV_TOPIC,d.to=g;var O=t._groupModule.getModule(Un);O.hasLocalTopic(f,g)||t._getTopicPendingMap.has(g)||(t._getTopicPendingMap.set(g,1),O.getTopicList({groupID:f,topicIDList:[g]}).finally((function(){t._getTopicPendingMap.delete(g)})))}var M=t._groupModule.hasLocalGroup(f);if(!M&&t._groupModule.isUnjoinedAVChatRoom(f))return"continue";if(!M&&!y)return t._cacheGroupTipsAndProbe({groupID:f,event:r,item:d}),"continue";if(t._groupModule.isMessageFromOrToAVChatroom(f))return d.event=r,l.push(d),"continue";if(d.currentUser=t._groupModule.getMyUserID(),d.conversationType=T.CONV_GROUP,(a=new Ya(d)).setElement({type:T.MSG_GRP_TIP,content:n(n({},d.elements),{},{groupProfile:d.groupProfile})}),a.isSystemMessage=!1,1===_)return t._qualityStat(a),"continue";var k=t._groupModule.getModule(Vn),C=a,w=C.conversationID,S=C.sequence;if(6===r)a._onlineOnlyFlag=!0,s.push(a);else if(!k.pushIntoNoticeResult(s,a))return"continue";if(t._groupModule.isMessageFromCommunityOfTopic(m,g))return"continue";if(6===r&&k.getLocalConversation(w))return"continue";6!==r&&t._qualityStat(a);var I=k.isRemoteRead({conversationID:w,sequence:S});if(it(c[w])){var E=0;"in"===a.flow&&(a._isExcludedFromUnreadCount||a._onlineOnlyFlag||I||(E=1)),c[w]=i.push({conversationID:w,unreadCount:E,type:it(b)?a.conversationType:b,subType:a.conversationSubType,lastMessage:a._isExcludedFromLastMessage?"":a})-1}else{var j=c[w];i[j].type=a.conversationType,i[j].subType=a.conversationSubType,i[j].lastMessage=a._isExcludedFromLastMessage?"":a,"in"===a.flow&&(a._isExcludedFromUnreadCount||a._onlineOnlyFlag||I||i[j].unreadCount++)}},d=0,p=o.length;d<p;d++)u(d);return{eventDataList:i,result:s,AVChatRoomMessageList:l}}},{key:"_qualityStat",value:function(e){this._groupModule.getModule(er).addMessageSequence({key:Oa,message:e})}},{key:"handleMessageList",value:function(e){var t=this;e.forEach((function(e){switch(e.payload.operationType){case 1:t._onNewMemberComeIn(e);break;case 2:t._onMemberQuit(e);break;case 3:t._onMemberKickedOut(e);break;case 4:t._onMemberSetAdmin(e);break;case 5:t._onMemberCancelledAdmin(e);break;case 6:t._onGroupProfileModified(e);break;case 7:t._onMemberInfoModified(e);break;case 8:t._onTopicProfileUpdated(e);break;default:Fe.w("".concat(t._n,".handleMessageList unknown operationType:").concat(e.payload.operationType))}}))}},{key:"_onNewMemberComeIn",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(r);o&&et(n)&&o.memberCount!==n&&(o.memberCount=n,this._updateConversationGroupProfile(o))}},{key:"_onMemberQuit",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(r);o&&et(n)&&o.memberCount!==n&&(o.memberCount=n,this._updateConversationGroupProfile(o)),this._groupModule.getModule(Pn).deleteLocalGroupMembers(r,e.payload.userIDList)}},{key:"_onMemberKickedOut",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(r);o&&et(n)&&o.memberCount!==n&&(o.memberCount=n,this._updateConversationGroupProfile(o)),this._groupModule.getModule(Pn).deleteLocalGroupMembers(r,e.payload.userIDList)}},{key:"_updateConversationGroupProfile",value:function(e){this._groupModule.getModule(Vn).updateConversationGroupProfile([e])}},{key:"_onMemberSetAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,r=this._groupModule.getModule(Pn);n.forEach((function(e){var n=r.getLocalGroupMemberInfo(t,e);n&&n.updateRole(T.GRP_MBR_ROLE_ADMIN)}))}},{key:"_onMemberCancelledAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,r=this._groupModule.getModule(Pn);n.forEach((function(e){var n=r.getLocalGroupMemberInfo(t,e);n&&n.updateRole(T.GRP_MBR_ROLE_MEMBER)}))}},{key:"_onGroupProfileModified",value:function(e){var t=this,n=e.payload,r=n.newGroupProfile,o=n.groupProfile.groupID,a=this._groupModule.getLocalGroupProfile(o);Object.keys(r).forEach((function(e){switch(e){case"ownerID":t._ownerChanged(a,r);break;case"groupName":a.name=r[e];break;default:a[e]=r[e]}}));var i=!a.isSupportTopic;this._groupModule.emitGroupListUpdate(!0,i)}},{key:"_ownerChanged",value:function(e,t){var n=e.groupID,r=this._groupModule.getLocalGroupProfile(n),o=this._groupModule.getMyUserID();if(o===t.ownerID){r.updateGroup({selfInfo:{role:T.GRP_MBR_ROLE_OWNER}});var a=this._groupModule.getModule(Pn),i=a.getLocalGroupMemberInfo(n,o),s=this._groupModule.getLocalGroupProfile(n).ownerID,c=a.getLocalGroupMemberInfo(n,s);i&&i.updateRole(T.GRP_MBR_ROLE_OWNER),c&&c.updateRole(T.GRP_MBR_ROLE_MEMBER)}}},{key:"_onMemberInfoModified",value:function(e){var t=e.to,n=e.payload,r=n.groupProfile,o=n.memberList,a=r.groupID;wt(t)&&this._updateTopicMuteTime(e);var i=this._groupModule.getModule(Pn);o.forEach((function(e){var t=i.getLocalGroupMemberInfo(a,e.userID);t&&et(e.muteTime)&&t.updateMuteUntil(e.muteTime)}))}},{key:"_updateTopicMuteTime",value:function(e){var t=e.to,n=e.payload,r=n.groupProfile,o=n.memberList,a=void 0===o?[]:o,i=this._groupModule.getModule(Un),s=r.groupID,c=i.getLocalTopic(s,t);if(c){for(var l=!1,u=0;u<a.length;u++){var d=a[u];if(d.userID===this._groupModule.getMyUserID()&&d.muteTime>=0){c.updateSelfInfo({muteTime:d.muteTime}),l=!0;break}}l&&this._groupModule.emitOuterEvent(S.TOPIC_UPDATED,{groupID:s,topic:c})}}},{key:"_onTopicProfileUpdated",value:function(e){var t=e.payload,r=t.groupProfile.groupID,o=t.newTopicInfo;this._groupModule.getModule(Un).onTopicProfileUpdated(n({groupID:r,topicID:e.to},o))}},{key:"_cacheGroupTips",value:function(e,t){this._cachedGroupTipsMap.has(e)||this._cachedGroupTipsMap.set(e,[]),this._cachedGroupTipsMap.get(e).push(t)}},{key:"_deleteCachedGroupTips",value:function(e){this._cachedGroupTipsMap.has(e)&&this._cachedGroupTipsMap.delete(e)}},{key:"_notifyCachedGroupTips",value:function(e){var t=this,n=this._cachedGroupTipsMap.get(e)||[];n.forEach((function(e){t.onNewGroupTips(e)})),this._deleteCachedGroupTips(e),Fe.l("".concat(this._n,"._notifyCachedGroupTips groupID:").concat(e," count:").concat(n.length))}},{key:"_cacheGroupTipsAndProbe",value:function(e){var t=this,n=e.groupID,r=e.event,o=e.item;this._cacheGroupTips(n,{event:r,dataList:[o]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===T.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupTips(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupTips(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),Fe.l("".concat(this._n,"._cacheGroupTipsAndProbe groupID:").concat(n))}},{key:"reset",value:function(){this._cachedGroupTipsMap.clear(),this._checkCountMap.clear(),this._getTopicPendingMap.clear()}}]),e}(),yi=function(){function e(t){o(this,e),this._groupModule=t,this._n="CommonGroupHandler",this.tempConversationList=null,this._cachedGroupMessageMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,this._getTopicPendingMap=new Map,this._isPagingGetCompleted=!1,t.getInnerEmitterInstance().once(Za,this._initGroupList,this)}return i(e,[{key:"onCheckTimer",value:function(e){e%1==0&&this._cachedGroupMessageMap.size>0&&this._checkCachedGroupMessage()}},{key:"_checkCachedGroupMessage",value:function(){var e=this;this._cachedGroupMessageMap.forEach((function(t,n){var r=e._checkCountMap.get(n),o=e._groupModule.hasLocalGroup(n);Fe.l("".concat(e._n,"._checkCachedGroupMessage groupID:").concat(n," hasLocalGroup:").concat(o," checkCount:").concat(r)),o?(e._notifyCachedGroupMessage(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):r>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupMessage(n),e._checkCountMap.delete(n)):(r++,e._checkCountMap.set(n,r))}))}},{key:"_initGroupList",value:function(){var e=this;Fe.l("".concat(this._n,"._initGroupList"));var t=new Ia("getGroupListInStorage"),n=this._groupModule.getStorageGroupList();if(at(n)&&n.length>0){n.forEach((function(t){e._groupModule.initGroupMap(t)})),this._groupModule.emitGroupListUpdate(!0,!1);var r=this._groupModule.getLocalGroupList().length;t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:".concat(r)).end()}else t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:0").end();Fe.l("".concat(this._n,"._initGroupList ok"))}},{key:"handleUpdateGroupLastMessage",value:function(e){var t="".concat(this._n,".handleUpdateGroupLastMessage");if(Fe.l("".concat(t," conversation count:").concat(e.length,", local group count:").concat(this._groupModule.getLocalGroupList().length)),0!==this._groupModule.getGroupMap().size){for(var r,o,a,i=!1,s=0,c=e.length;s<c;s++)(r=e[s]).type===T.CONV_GROUP&&(o=r.conversationID.split(/^GROUP/)[1],(a=this._groupModule.getLocalGroupProfile(o))&&(a.lastMessage=n({},r.lastMessage),i=!0));i&&(this._groupModule.sortLocalGroupList(),this._groupModule.emitGroupListUpdate(!0,!1))}else this.tempConversationList=e}},{key:"onNewGroupMessage",value:function(e){Fe.d("".concat(this._n,".onNewGroupMessage count:").concat(e.dataList.length));var t=this._newGroupMessageStoredAndSummary(e),n=t.conversationOptionsList,r=t.messageList,o=t.AVChatRoomMessageList;o.length>0&&this._groupModule.onAVChatRoomMessage(o),this._groupModule.filterModifiedMessage(r),n.length>0&&(this._groupModule.updateNextMessageSeq(n),this._groupModule.getModule(Vn).onNewMessage({conversationOptionsList:n,isInstantMessage:e.isInstantMessage||!0,updateUnreadCount:e.updateUnreadCount||!0}));var a=this._groupModule.filterUnmodifiedMessage(r);a.length>0&&this._groupModule.emitOuterEvent(S.MESSAGE_RECEIVED,a),r.length=0}},{key:"_newGroupMessageStoredAndSummary",value:function(e){var t=this,n=e.dataList,r=e.event,o=e.isInstantMessage,a=null,i=[],s=[],c=[],l={},u=this._groupModule.getModule(Yn),d=this._groupModule.getFileDownloadProxy(),p=n.length;p>1&&n.sort((function(e,t){return e.sequence-t.sequence}));for(var f=function(e){var p=Ot(n[e]),f=p.groupProfile,h=f.groupID,m=f.communityType,v=void 0===m?0:m,g=f.topicID,_=void 0===g?void 0:g,b=f.invisible,y=void 0,O=t._groupModule.isMessageFromTopic(v,_);if(O){y=T.CONV_TOPIC,p.to=_;var M=t._groupModule.getModule(Un);M.hasLocalTopic(h,_)||t._getTopicPendingMap.has(_)||(t._getTopicPendingMap.set(_,1),M.getTopicList({groupID:h,topicIDList:[_]}).finally((function(){t._getTopicPendingMap.delete(_)})))}var k=t._groupModule.hasLocalGroup(h);if(!k&&t._groupModule.isUnjoinedAVChatRoom(h))return"continue";if(!k&&!O)return t._cacheGroupMessageAndProbe({groupID:h,event:r,item:p}),"continue";if(t._groupModule.isMessageFromOrToAVChatroom(h))return p.event=r,c.push(p),"continue";if(p.currentUser=t._groupModule.getMyUserID(),p.conversationType=T.CONV_GROUP,p.isSystemMessage=!!p.isSystemMessage,a=new Ya(p),p.elements=u.parseElements(p.elements,p.from),a.setElement(p.elements,d),1===b)return t._qualityStat(o,a),"continue";var C=1===n[e].isModified,w=t._groupModule.getModule(Vn);if(w.isMessageSentByCurrentInstance(a)?a.isModified=C:C=!1,1===p.onlineOnlyFlag)a._onlineOnlyFlag=!0,w.isMessageSentByCurrentInstance(a)||s.push(a);else{if(t._groupModule.isMessageFromCommunityOfTopic(v,_))return s.push(a),"continue";if(!w.pushIntoMessageList(s,a,C))return"continue";t._qualityStat(o,a);var S=a,I=S.conversationID,E=S.sequence,j=w.isRemoteRead({conversationID:I,sequence:E});if(it(l[I])){var D=0;"in"===a.flow&&(a._isExcludedFromUnreadCount||j||(D=1)),l[I]=i.push({conversationID:I,unreadCount:D,type:it(y)?a.conversationType:y,subType:a.conversationSubType,lastMessage:a._isExcludedFromLastMessage?"":a})-1}else{var L=l[I];i[L].type=it(y)?a.conversationType:y,i[L].subType=a.conversationSubType,i[L].lastMessage=a._isExcludedFromLastMessage?"":a,"in"===a.flow&&(a._isExcludedFromUnreadCount||j||i[L].unreadCount++)}}},h=0;h<p;h++)f(h);return{conversationOptionsList:i,messageList:s,AVChatRoomMessageList:c}}},{key:"_qualityStat",value:function(e,t){var n=this._groupModule.getModule(er);n.addMessageSequence({key:Oa,message:t}),e&&t.clientTime>0&&n.addMessageDelay(t.clientTime)}},{key:"onGroupMessageRevoked",value:function(e){var t=this._groupModule.getModule(Vn),n=[],r=null,o=!0;e.dataList.forEach((function(e){var a=e.elements.revokedInfos;it(a)||a.forEach((function(e){var a=Kt(e.topicID)?"GROUP".concat(e.groupID):"GROUP".concat(e.topicID);r=t.revoke(a,e.sequence,e.random);var i=e.revokerInfo&&e.revokerInfo.revoker;if(r)r.revoker=i,n.push(r);else{var s={conversationID:a,to:e.topicID||"",sequence:e.sequence,time:e.time,revoker:i};t.isLastMessageRevoked(s)&&(n.push(s),o=!1)}}))})),0!==n.length&&(t.onMessageRevoked(n),!0===o&&(Fe.l("".concat(this._n,".onGroupMessageRevoked count:").concat(n.length)),this._groupModule.emitOuterEvent(S.MESSAGE_REVOKED,n)))}},{key:"_groupListTreeShaking",value:function(e){for(var t=new Map(b(this._groupModule.getGroupMap())),n=0,r=e.length;n<r;n++)t.delete(e[n].groupID);this._groupModule.hasJoinedAVChatRoom()&&this._groupModule.getJoinedAVChatRoom().forEach((function(e){t.delete(e)})),this._groupModule.getGroupMap().forEach((function(e,n){e.isSupportTopic&&t.delete(n)}));for(var o=b(t.keys()),a=0,i=o.length;a<i;a++)this._groupModule.deleteGroup(o[a])}},{key:"getGroupList",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupList"),r=new Ia("getGroupList");Fe.l("".concat(n));var o={introduction:"Introduction",notification:"Notification",createTime:"CreateTime",ownerID:"Owner_Account",lastInfoTime:"LastInfoTime",memberNum:"MemberNum",maxMemberNum:"MaxMemberNum",joinOption:"ApplyJoinOption",inviteOption:"InviteJoinOption",muteAllMembers:"ShutUpAllMember"},a=["Type","Name","FaceUrl","NextMsgSeq","LastMsgTime","AtInfoList","LastRecallTime"],i=[];e&&e.groupProfileFilter&&e.groupProfileFilter.forEach((function(e){o[e]&&a.push(o[e])}));var s=(e||{}).isGroupWithTopicOnly,c=void 0!==s&&s;return this._pagingGetGroupList({limit:50,offset:0,groupBaseInfoFilter:a,groupList:i,isGroupWithTopicOnly:c}).then((function(){Fe.l("".concat(n," ok. count:").concat(i.length," isGroupWithTopicOnly:").concat(c)),c||t._groupListTreeShaking(i),t._groupModule.updateGroupMap(i);var e=t._groupModule.getLocalGroupList().length;r.setNetworkType(t._groupModule.getNetworkType()).setMessage("remote count:".concat(i.length,", after tree shaking, local count:").concat(e,", isGroupWithTopicOnly:").concat(c)).end(),t.tempConversationList&&(t.handleUpdateGroupLastMessage(t.tempConversationList),t.tempConversationList=null),t._groupModule.patchGroupMessageRemindType(),t._groupModule.recomputeUnreadCount(),t._groupModule.emitGroupListUpdate(!0,!c);var o=t._groupModule.getLocalGroupList();if(c){var a=o.filter((function(e){return!0===e.isSupportTopic}));return za({groupList:a})}return t._isPagingGetCompleted=!0,za({groupList:o})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"isPagingGetCompleted",value:function(){return this._isPagingGetCompleted}},{key:"_pagingGetGroupList",value:function(e){var t=this,n="".concat(this._n,".").concat("_pagingGetGroupList"),r=e.isCommunityRelay,o=void 0!==r&&r,a=e.isGroupWithTopicOnly,i=void 0!==a&&a,s=e.limit,c=e.offset,l=e.groupBaseInfoFilter,u=e.groupList;if(i)return this._pagingGetGroupListWithTopic({limit:s,offset:c,groupBaseInfoFilter:l,groupList:u});var d=new Ia("_pagingGetGroupList");return this._groupModule.request({protocolName:zr,requestData:{type:o?T.GRP_COMMUNITY:void 0,memberAccount:this._groupModule.getMyUserID(),limit:s,offset:c,responseFilter:{groupBaseInfoFilter:l,selfInfoFilter:["Role","JoinTime","MsgFlag","MsgSeq"]}}}).then((function(e){var r=e.data,a=r.groups,i=void 0===a?[]:a,p=r.totalCount;u.push.apply(u,b(i)),t._handleGroupAtInfoWithoutTopic(o,i);var f=c+s,h=!(p>f),m="offset:".concat(c," totalCount:").concat(p," isCompleted:").concat(h," ")+"currentCount:".concat(u.length," isCommunityRelay:").concat(o);return d.setNetworkType(t._groupModule.getNetworkType()).setMessage("".concat(m)).end(),o||h?!o&&h?(Fe.l("".concat(n," start to get community list")),c=0,t._pagingGetGroupList({limit:s,offset:c,groupBaseInfoFilter:l,groupList:u,isCommunityRelay:!0})):o&&!h?(c=f,t._pagingGetGroupList({limit:s,offset:c,groupBaseInfoFilter:l,groupList:u,isCommunityRelay:!0})):(Fe.l("".concat(n," ok. totalCount:").concat(u.length)),za({groupList:u})):(c=f,t._pagingGetGroupList({limit:s,offset:c,groupBaseInfoFilter:l,groupList:u}))})).catch((function(e){return 11e3!==e.code&&t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];d.setMessage("isCommunityRelay:".concat(o)).setError(e,r,a).end()})),o?(11e3===e.code&&(d=null,Fe.l("".concat(n," ok. community unavailable"))),$a({groupList:u})):Ja(e)}))}},{key:"_pagingGetGroupListWithTopic",value:function(e){var t=this,n="".concat(this._n,"._pagingGetGroupListWithTopic"),r=e.limit,o=e.offset,a=e.groupBaseInfoFilter,i=e.groupList,s=new Ia("pagingGetGroupListWithTopic");return this._groupModule.request({protocolName:zr,requestData:{type:T.GRP_COMMUNITY,memberAccount:this._groupModule.getMyUserID(),limit:r,offset:o,responseFilter:{groupBaseInfoFilter:a,selfInfoFilter:["Role","JoinTime","MsgFlag","MsgSeq"]},isSupportTopic:1}}).then((function(e){var c=e.data,l=c.groups,u=void 0===l?[]:l,d=c.totalCount;i.push.apply(i,b(u));var p=o+r,f=!(d>p),h="offset:".concat(o," totalCount:").concat(d," isCompleted:").concat(f," ")+"currentCount:".concat(i.length);return s.setNetworkType(t._groupModule.getNetworkType()).setMessage("".concat(h)).end(),f?(Fe.l("".concat(n," ok. totalCount:").concat(i.length)),za({groupList:i})):(o=p,t._pagingGetGroupListWithTopic({limit:r,offset:o,groupBaseInfoFilter:a,groupList:i}))})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Ja(e)}))}},{key:"_cacheGroupMessage",value:function(e,t){this._cachedGroupMessageMap.has(e)||this._cachedGroupMessageMap.set(e,[]),this._cachedGroupMessageMap.get(e).push(t)}},{key:"_deleteCachedGroupMessage",value:function(e){this._cachedGroupMessageMap.has(e)&&this._cachedGroupMessageMap.delete(e)}},{key:"_notifyCachedGroupMessage",value:function(e){var t=this,n=this._cachedGroupMessageMap.get(e)||[];n.forEach((function(e){t.onNewGroupMessage(e)})),this._deleteCachedGroupMessage(e),Fe.l("".concat(this._n,"._notifyCachedGroupMessage groupID:").concat(e," count:").concat(n.length))}},{key:"_cacheGroupMessageAndProbe",value:function(e){var t=this,n=e.groupID,r=e.event,o=e.item;this._cacheGroupMessage(n,{event:r,dataList:[o]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===T.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupMessage(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupMessage(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),Fe.l("".concat(this._n,"._cacheGroupMessageAndProbe groupID:").concat(n))}},{key:"_handleGroupAtInfoWithoutTopic",value:function(e,t){var r=this;e&&0!==t.length&&t.forEach((function(e){var t=e.groupID,o=e.groupAtInfoList,a=[];it(o)||(o.forEach((function(e){a.push(n(n({},e),{},{groupID:t}))})),r._groupModule.getModule(Vn).onNewGroupAtTips({dataList:a}))}))}},{key:"reset",value:function(){this._cachedGroupMessageMap.clear(),this._checkCountMap.clear(),this._getTopicPendingMap.clear(),this._isPagingGetCompleted=!1,this._groupModule.getInnerEmitterInstance().once(Za,this._initGroupList,this)}}]),e}(),Oi=1,Mi=2,ki=3,Ci=4,wi=5,Si=function(){function e(t){o(this,e),this._groupModule=t,this._n="GroupAttributesHandler",this._groupAttributesMap=new Map,this._groupAttributesCopy={},this.CACHE_EXPIRE_TIME=3e4,this._groupModule.getInnerEmitterInstance().on(ei,this._onCloudConfigUpdated,this)}return i(e,[{key:"_onCloudConfigUpdated",value:function(){var e=this._groupModule.getCloudConfig("grp_attr_cache_time");it(e)||(this.CACHE_EXPIRE_TIME=Number(e))}},{key:"updateLocalMainSequenceOnReconnected",value:function(){this._groupAttributesMap.forEach((function(e){e.localMainSequence=0}))}},{key:"isGroupAttributesUpdatedNotice",value:function(e){var t=e.to,n=e.elements.newGroupProfile,r=!it(n)&&!Kt(n.groupAttributeOption);return r&&this._onGroupAttributesUpdated({groupID:t,groupAttributeOption:n.groupAttributeOption}),r}},{key:"_onGroupAttributesUpdated",value:function(e){var t=this,n=e.groupID,r=e.groupAttributeOption,o=r.mainSequence,a=r.isWithChangedAttributeInfo,i=r.groupAttributeList,s=void 0===i?[]:i,c=r.operationType;if(Fe.l("".concat(this._n,".onGroupAttributesUpdated. ")+"groupID:".concat(n," isWithChangedAttributeInfo:").concat(a," operationType:").concat(c)),!it(c)){this._groupAttributesCopy=this._getCachedAttributes({groupID:n});var l=this._getLocalGroupAttributes(n).localMainSequence;if(1===a&&o-l==1)return this._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:o,groupAttributeList:s,operationType:c}),void this._emitGroupAttributesUpdated(n);if(this._hasLocalGroupAttributes(n)){var u=this._getLocalGroupAttributes(n).avChatRoomKey;this._getGroupAttributes({groupID:n,avChatRoomKey:u}).then((function(){t._emitGroupAttributesUpdated(n)}))}}}},{key:"initGroupAttributesCache",value:function(e){var t=e.groupID,n=e.avChatRoomKey,r=void 0===n?void 0:n;this._groupAttributesMap.set(t,{lastUpdateTime:0,localMainSequence:0,remoteMainSequence:0,attributes:new Map,avChatRoomKey:r}),Fe.l("".concat(this._n,".initGroupAttributesCache groupID:").concat(t," avChatRoomKey:").concat(r))}},{key:"initGroupAttributes",value:function(e){var t=this,n=e.groupID,r=e.groupAttributes,o=this._getLocalGroupAttributes(n),a=o.remoteMainSequence,i=o.avChatRoomKey,s=new Ia("initGroupAttributes");return s.setMessage("groupID:".concat(n," avChatRoomKey:").concat(i," mainSequence:").concat(a)),this._groupModule.request({protocolName:yo,requestData:{groupID:n,avChatRoomKey:i,mainSequence:a,groupAttributeList:this._transformGroupAttributes(r)}}).then((function(e){var o=e.data,a=o.mainSequence,i=b(o.groupAttributeList);return i.forEach((function(e){e.value=r[e.key]})),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:a,groupAttributeList:i,operationType:Oi}),s.setNetworkType(t._groupModule.getNetworkType()).end(),Fe.l("".concat(t._n,".").concat("initGroupAttributes"," ok. groupID:").concat(n)),za({groupAttributes:r})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Ja(e)}))}},{key:"setGroupAttributes",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupAttributes"),r=e.groupID,o=e.groupAttributes,a=this._getLocalGroupAttributes(r),i=a.remoteMainSequence,s=a.avChatRoomKey,c=a.attributes,l=this._transformGroupAttributes(o);l.forEach((function(e){var t=e.key;e.sequence=0,c.has(t)&&(e.sequence=c.get(t).sequence)}));var u=new Ia("setGroupAttributes");return u.setMessage("groupID:".concat(r," groupAttributes:").concat(JSON.stringify(o))),Fe.l("".concat(n,". groupID:").concat(r," mainSequence:").concat(i)),this._groupModule.request({protocolName:Oo,requestData:{groupID:r,avChatRoomKey:s,mainSequence:i,groupAttributeList:l}}).then((function(e){var a=e.data,i=a.mainSequence,s=b(a.groupAttributeList);return s.forEach((function(e){e.value=o[e.key]})),t._refreshCachedGroupAttributes({groupID:r,remoteMainSequence:i,groupAttributeList:s,operationType:Mi}),u.setNetworkType(t._groupModule.getNetworkType()).end(),Fe.l("".concat(n," ok.")),za({groupAttributes:o})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setError(e,r,o).end()})),Ja(e)}))}},{key:"deleteGroupAttributes",value:function(e){var t=this,n=e.groupID,r=e.keyList,o=void 0===r?[]:r,a=this._getLocalGroupAttributes(n),i=a.remoteMainSequence,s=a.avChatRoomKey,c=a.attributes,l=b(c.keys()),u=ko,d=ki,p={groupID:n,avChatRoomKey:s,mainSequence:i},f=[];o.length>0&&(l=[],u=Mo,d=Ci,o.forEach((function(e){var t=0;c.has(e)&&(t=c.get(e).sequence,l.push(e)),f.push({key:e,sequence:t})})),p.groupAttributeList=f);var h=new Ia("deleteGroupAttributes");return h.setMessage("groupID:".concat(n," mainSequence:").concat(i," keyList:").concat(o," protocolName:").concat(u)),this._groupModule.request({protocolName:u,requestData:p}).then((function(e){var r=e.data.mainSequence;return t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:r,groupAttributeList:f,operationType:d}),h.setNetworkType(t._groupModule.getNetworkType()).end(),Fe.l("".concat(t._n,".").concat("deleteGroupAttributes"," ok. groupID:").concat(n)),za({keyList:l})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];h.setError(e,r,o).end()})),Ja(e)}))}},{key:"getGroupAttributes",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupAttributes"),r=e.groupID,o=this._getLocalGroupAttributes(r),a=o.avChatRoomKey,i=o.lastUpdateTime,s=o.localMainSequence,c=o.remoteMainSequence,l=new Ia("getGroupAttributes");if(l.setMessage("groupID:".concat(r," localMainSequence:").concat(s," remoteMainSequence:").concat(c," keyList:").concat(e.keyList)),Date.now()-i>=this.CACHE_EXPIRE_TIME||s<c)return this._getGroupAttributes({groupID:r,avChatRoomKey:a}).then((function(o){l.setMoreMessage("get attributes from remote. count:".concat(o.length)).setNetworkType(t._groupModule.getNetworkType()).end(),Fe.l("".concat(n," from remote. groupID:").concat(r));var a=t._getCachedAttributes(e);return za({groupAttributes:a})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),Ja(e)}));l.setMoreMessage("get attributes from cache").setNetworkType(this._groupModule.getNetworkType()).end(),Fe.l("".concat(n," from cache. groupID:").concat(r));var u=this._getCachedAttributes(e);return $a({groupAttributes:u})}},{key:"_getGroupAttributes",value:function(e){var t=this,r=0;return it(e.avChatRoomKey)||(r=1),this._groupModule.request({protocolName:Co,requestData:n(n({},e),{},{groupType:r})}).then((function(n){var r=n.data,o=r.mainSequence,a=r.groupAttributeList,i=b(a);return it(o)||t._refreshCachedGroupAttributes({groupID:e.groupID,remoteMainSequence:o,groupAttributeList:i,operationType:wi}),Fe.l("".concat(t._n,"._getGroupAttributes ok. groupID:").concat(e.groupID)),a})).catch((function(e){return Ja(e)}))}},{key:"_refreshCachedGroupAttributes",value:function(e){var t=e.groupID,n=e.remoteMainSequence,r=e.groupAttributeList,o=e.operationType;if(this._hasLocalGroupAttributes(t)){var a=this._getLocalGroupAttributes(t),i=a.localMainSequence;if(o===wi||n-i==1)a.remoteMainSequence=n,a.localMainSequence=n,a.lastUpdateTime=Date.now(),this._updateCachedAttributes({groupAttributes:a,groupAttributeList:r,operationType:o});else{if(i===n)return;a.remoteMainSequence=n}this._groupAttributesMap.set(t,a);var s="operationType:".concat(o," localMainSequence:").concat(i," remoteMainSequence:").concat(n);Fe.l("".concat(this._n,"._refreshCachedGroupAttributes. ").concat(s))}}},{key:"_getCachedAttributes",value:function(e){var t=e.groupID,n=e.keyList,r=void 0===n?[]:n,o={};if(this._hasLocalGroupAttributes(t)){var a=this._getLocalGroupAttributes(t).attributes;if(r.length>0)r.forEach((function(e){a.has(e)&&(o[e]=a.get(e).value)}));else{var i,s=w(a.keys());try{for(s.s();!(i=s.n()).done;){var c=i.value;o[c]=a.get(c).value}}catch(u){s.e(u)}finally{s.f()}}}return o}},{key:"_updateCachedAttributes",value:function(e){var t=e.groupAttributes,n=e.groupAttributeList,r=e.operationType;r!==ki?r!==Ci?(r===Oi&&t.attributes.clear(),n.forEach((function(e){var n=e.key,r=e.value,o=e.sequence;t.attributes.set(n,{value:r,sequence:o})}))):n.forEach((function(e){t.attributes.delete(e.key)})):t.attributes.clear()}},{key:"_hasLocalGroupAttributes",value:function(e){return this._groupAttributesMap.has(e)}},{key:"_getLocalGroupAttributes",value:function(e){return this._hasLocalGroupAttributes(e)||this.initGroupAttributesCache({groupID:e}),this._groupAttributesMap.get(e)}},{key:"_transformGroupAttributes",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:"_emitGroupAttributesUpdated",value:function(e){var t=this._getCachedAttributes({groupID:e}),n=this._computeAttrChangedInfo(t),r=n.updatedKeyList,o=n.deletedKeyList;this._groupModule.emitOuterEvent(S.GROUP_ATTRIBUTES_UPDATED,{groupID:e,groupAttributes:t,updatedKeyList:r,deletedKeyList:o})}},{key:"_computeAttrChangedInfo",value:function(e){var t=this,n=[],r=[];return Object.keys(e).forEach((function(r){e[r]!==t._groupAttributesCopy[r]&&n.push(r)})),Object.keys(this._groupAttributesCopy).forEach((function(t){it(e[t])&&r.push(t)})),this._groupAttributesCopy={},Fe.l("".concat(this._n,"._computeAttrChangedInfo update count:").concat(n.length,", delete count:").concat(r.length)),{updatedKeyList:n,deletedKeyList:r}}},{key:"deleteLocalGroupAttributes",value:function(e){this._hasLocalGroupAttributes(e)&&this._groupAttributesMap.delete(e)}},{key:"reset",value:function(){this._groupAttributesMap.clear(),this._groupAttributesCopy={},this.CACHE_EXPIRE_TIME=3e4}}]),e}(),Ti="Set",Ii="Increase",Ei="Decrease",ji=function(){function e(t){o(this,e),this._groupModule=t,this._n="GroupCountersHandler",this._groupCountersMap=new Map,this.EXPIRE_TIME=3e4,this._groupModule.getInnerEmitterInstance().on(ei,this._onCloudConfigUpdated,this)}return i(e,[{key:"_onCloudConfigUpdated",value:function(){var e=this._groupModule.getCloudConfig("grp_counter_expire_time");it(e)||(this.EXPIRE_TIME=Number(e))}},{key:"isGroupCountersNotice",value:function(e){var t=e.to,n=e.elements.groupCounterInfo,r=!1;return Kt(n)||(this._onGroupCountersUpdated({groupID:t,groupCounterInfo:n}),r=!0),r}},{key:"_onGroupCountersUpdated",value:function(e){var t=this,n=e.groupID;e.groupCounterInfo.forEach((function(e){var r=e.type,o=e.groupCounterSeq,a=e.counterList,i=void 0===a?[]:a;0!==r&&2!==r||(t._updateLocalGroupCounters({groupID:n,groupCounterSeq:o,counterList:i}),i.forEach((function(e){t._groupModule.emitOuterEvent(S.GROUP_COUNTER_UPDATED,{groupID:n,key:e.key,value:e.value})}))),1===r&&t._deleteLocalGroupCounters({groupID:n,groupCounterSeq:o,counterList:i})})),Fe.l("".concat(this._n,"._onGroupCountersUpdated groupID:").concat(n))}},{key:"initGroupCountersCache",value:function(e){var t=e.groupID,n=e.avChatRoomKey;this._groupCountersMap.set(t,{lastUpdateTime:0,groupCounterSeq:0,counters:new Map,avChatRoomKey:n}),Fe.l("".concat(this._n,".initGroupCountersCache groupID:").concat(t," avChatRoomKey:").concat(n))}},{key:"setGroupCounters",value:function(e){var t=this;if(!this._groupModule.canIUse(H.GRP_COUNTER))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".setGroupCounters"),r=e.groupID,o=e.counters,a=this._convertObjectToList(o),i=this._getLocalGroupCounters(r).avChatRoomKey,s="groupID:".concat(r," count:").concat(a.length),c=new Ia("setGroupCounters");return c.setMessage("".concat(s)),Fe.l("".concat(n,". ").concat(s)),this._updateGroupCounters({groupID:r,counterList:a,avChatRoomKey:i,mode:Ti}).then((function(e){return c.end(),Fe.l("".concat(n," ok.")),za({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"increaseGroupCounter",value:function(e){var t=this;if(!this._groupModule.canIUse(H.GRP_COUNTER))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".increaseGroupCounters"),r=e.groupID,o=e.key,a=e.value,i=this._getLocalGroupCounters(r).avChatRoomKey,s="groupID:".concat(r," key:").concat(o," value:").concat(a),c=new Ia("increaseGroupCounter");c.setMessage("".concat(s)),Fe.l("".concat(n,". ").concat(s));var l=[{key:o,value:a}];return this._updateGroupCounters({groupID:r,counterList:l,avChatRoomKey:i,mode:Ii}).then((function(e){return c.end(),Fe.l("".concat(n," ok.")),za({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"decreaseGroupCounter",value:function(e){var t=this;if(!this._groupModule.canIUse(H.GRP_COUNTER))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".decreaseGroupCounter"),r=e.groupID,o=e.key,a=e.value,i=this._getLocalGroupCounters(r).avChatRoomKey,s="groupID:".concat(r," key:").concat(o," value:").concat(a),c=new Ia("decreaseGroupCounter");c.setMessage("".concat(s)),Fe.l("".concat(n,". ").concat(s));var l=[{key:o,value:a}];return this._updateGroupCounters({groupID:r,counterList:l,avChatRoomKey:i,mode:Ei}).then((function(e){return c.end(),Fe.l("".concat(n," ok.")),za({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"getGroupCounters",value:function(e){var t=this;if(!this._groupModule.canIUse(H.GRP_COUNTER))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".getGroupCounters"),r=e.groupID,o=e.keyList,a=void 0===o?[]:o,i=this._getLocalGroupCounters(r),s=i.avChatRoomKey,c=i.lastUpdateTime,l=new Ia("getGroupCounters");if(l.setMessage("groupID:".concat(r)),Date.now()-c>=this.EXPIRE_TIME)return this._getRemoteGroupCounters({groupID:r,avChatRoomKey:s}).then((function(e){l.setMoreMessage("from remote. count:".concat(e.length)).end(),Fe.l("".concat(n," from remote. groupID:").concat(r));var o=t._getLocalCounters(r,a);return za({counters:o})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),Ja(e)}));l.setMoreMessage("from cache").end(),Fe.l("".concat(n," from cache. groupID:").concat(r));var u=this._getLocalCounters(r,a);return $a({counters:u})}},{key:"_getRemoteGroupCounters",value:function(e){var t=this;return this._groupModule.request({protocolName:Eo,requestData:n({},e)}).then((function(n){var r=n.data,o=r.counterList,a=void 0===o?[]:o,i=r.groupCounterSeq;return t._updateLocalGroupCounters({groupID:e.groupID,counterList:a,groupCounterSeq:i}),Fe.l("".concat(t._n,"._getRemoteGroupCounters ok. groupID:").concat(e.groupID)),a})).catch((function(e){return Ja(e)}))}},{key:"_convertObjectToList",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:"_updateGroupCounters",value:function(e){var t="".concat(this._n,"._updateGroupCounters"),r=e.groupID,o=e.avChatRoomKey,a=e.mode;return Fe.l("".concat(t,". groupID:").concat(r," avChatRoomKey:").concat(o," mode:").concat(a)),this._groupModule.request({protocolName:Io,requestData:n({},e)}).then((function(e){Fe.l("".concat(t," ok."));var n=e.data.counterList,r={};return(void 0===n?[]:n).forEach((function(e){var t=e.key,n=e.value;r[t]=n})),r})).catch((function(e){return Ja(e)}))}},{key:"_hasLocalGroupCounters",value:function(e){return this._groupCountersMap.has(e)}},{key:"_getLocalGroupCounters",value:function(e){return this._hasLocalGroupCounters(e)||this.initGroupCountersCache({groupID:e}),this._groupCountersMap.get(e)}},{key:"_updateLocalGroupCounters",value:function(e){var t=e.groupID,n=e.counterList,r=void 0===n?[]:n,o=e.groupCounterSeq;if(this._hasLocalGroupCounters(t)){var a=this._getLocalGroupCounters(t),i=a.counters,s=a.avChatRoomKey,c=a.groupCounterSeq;if(o>0&&o<c)return;r.forEach((function(e){var t=e.key,n=e.value;i.set(t,n)})),this._groupCountersMap.set(t,{lastUpdateTime:Date.now(),groupCounterSeq:o,counters:i,avChatRoomKey:s})}}},{key:"_deleteLocalGroupCounters",value:function(e){var t=e.groupID,n=e.counterList,r=void 0===n?[]:n,o=e.groupCounterSeq;if(this._hasLocalGroupCounters(t)){var a=this._getLocalGroupCounters(t),i=a.counters,s=a.avChatRoomKey;r.forEach((function(e){i.delete(e.key)})),this._groupCountersMap.set(t,{lastUpdateTime:Date.now(),groupCounterSeq:o,counters:i,avChatRoomKey:s})}}},{key:"_getLocalCounters",value:function(e,t){var n={};if(!this._hasLocalGroupCounters(e))return n;var r=this._getLocalGroupCounters(e).counters;if(t.length>0)t.forEach((function(e){r.has(e)&&(n[e]=r.get(e))}));else{var o,a=w(r.keys());try{for(a.s();!(o=a.n()).done;){var i=o.value;n[i]=r.get(i)}}catch(c){a.e(c)}finally{a.f()}}return n}},{key:"reset",value:function(){this._groupCountersMap.clear(),this.EXPIRE_TIME=3e4}}]),e}(),Di=function(){function e(t){o(this,e);var n=t.manager,r=t.groupID,a=t.onInit,i=t.onSuccess,s=t.onFail;this._n="Polling",this._manager=n,this._groupModule=n._groupModule,this._onInit=a,this._onSuccess=i,this._onFail=s,this._groupID=r,this._timeoutID=-1,this._isRunning=!1,this._protocolName=mo}return i(e,[{key:"start",value:function(){var e=this._groupModule.isLoggedIn();e||(this._protocolName=vo),Fe.l("".concat(this._n,".start pollingInterval:").concat(this._manager.getPollingInterval()," isLoggedIn:").concat(e)),this._isRunning=!0,this._request()}},{key:"isRunning",value:function(){return this._isRunning}},{key:"_request",value:function(){var e=this,t=this._onInit(this._groupID);this._groupModule.request({protocolName:this._protocolName,requestData:t}).then((function(t){e._onSuccess(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.getPollingInterval()))})).catch((function(t){e._onFail(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.MAX_POLLING_INTERVAL))}))}},{key:"stop",value:function(){Fe.l("".concat(this._n,".stop")),this._timeoutID>0&&(clearTimeout(this._timeoutID),this._timeoutID=-1),this._isRunning=!1}}]),e}(),Li={3:!0,4:!0,5:!0,6:!0,17:!0},Ai=function(){function e(t){o(this,e),this._groupModule=t,this._n="AVChatRoomHandler",this._joinedGroupMap=new Map,this._pollingRequestInfoMap=new Map,this._pollingInstanceMap=new Map,this.sequencesLinkedList=new di(200),this.messageIDLinkedList=new di(100),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._onlineMemberCountMap=new Map,this.DEFAULT_EXPIRE_TIME=60,this.DEFAULT_POLLING_INTERVAL=300,this.MAX_POLLING_INTERVAL=2e3,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0,this._startBroadcastSeq=1,this._broadcastMessageIDMap=new Map,this.DEFAULT_POLLING_SIMPLIFIED_MSG=0}return i(e,[{key:"hasJoinedAVChatRoom",value:function(){return this._joinedGroupMap.size>0}},{key:"checkJoinedAVChatRoomByID",value:function(e){return this._joinedGroupMap.has(e)}},{key:"getJoinedAVChatRoom",value:function(){return this._joinedGroupMap.size>0?b(this._joinedGroupMap.keys()):null}},{key:"_updateRequestData",value:function(e){var t=this._pollingRequestInfoMap.get(e);return e===b(this._pollingInstanceMap.keys())[0]?n(n({},t),{},{startBroadcastSeq:this._startBroadcastSeq,simplifiedMessage:this.DEFAULT_POLLING_SIMPLIFIED_MSG}):n(n({},t),{},{simplifiedMessage:this.DEFAULT_POLLING_SIMPLIFIED_MSG})}},{key:"_handleSuccess",value:function(e,t){var n=t.data,r=n.key,o=n.nextSeq,a=n.rspMsgList,i=n.errorCode,s=n.nextBroadcastSeq,c=n.broadcastMessageList;if(0!==i){var l=this._pollingRequestInfoMap.get(e),u=new Ia("longPollingAVError"),d=l?"".concat(l.key,"-").concat(l.startSeq):"requestInfo is undefined";u.setMessage("".concat(e,"-").concat(d,"-").concat(t.errorInfo)).setCode(t.errorCode).setNetworkType(this._groupModule.getNetworkType()).end(!0)}else{if(!this.checkJoinedAVChatRoomByID(e))return;nt(r)&&et(o)&&this._pollingRequestInfoMap.set(e,{key:r,startSeq:o}),et(s)&&s>this._startBroadcastSeq&&(this._startBroadcastSeq=s),at(a)&&a.length>0?(a.forEach((function(e){e.to=e.groupID})),this.onMessage(a)):(this._pollingNoMessageCount+=1,this._pollingNoMessageCount===this.DEFAULT_POLLING_NO_MESSAGE_COUNT&&(this._pollingInterval=this.DEFAULT_POLLING_INTERVAL+this.DEFAULT_POLLING_INTERVAL_PLUS)),this._onBroadcastMessage(c)}}},{key:"_handleFailure",value:function(e,t){}},{key:"onMessage",value:function(e){if(at(e)&&0!==e.length){0!==this._pollingNoMessageCount&&(this._pollingNoMessageCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL);var t=null,n=[],r=this._getModule(Vn),o=this._getModule(er),a=e.length;a>1&&e.sort((function(e,t){return e.sequence-t.sequence}));for(var i=this._getModule(Bn),s=0;s<a;s++){var c=this.restoreMessageFromSimplified(e[s]);if(Li[c.event]){if(6===c.event){if(this._groupModule.isGroupAttributesUpdatedNotice(c))continue;if(this._groupModule.isGroupCountersNotice(c))continue}this.receivedMessageCount+=1,t=this.packMessage(c,c.event);var l=1===c.isModified,u=1===c.isHistoryMessage;if((i.isUnlimitedAVChatRoom()||!this.sequencesLinkedList.has(t.sequence))&&!this.messageIDLinkedList.has(t.ID)){var d=t.conversationID;if(this.receivedMessageCount%50==0?this._getModule(Jn).detectFirstRound(d,this.sequencesLinkedList.data()):this.receivedMessageCount%80==0&&this._getModule(Jn).detectSecondRound(d,this.sequencesLinkedList.data()),null!==this.sequencesLinkedList.tail()){var p=this.sequencesLinkedList.tail().value,f=t.sequence-p;f>1&&f<=20?this._getModule(Jn).onMessageMaybeLost(d,p+1,f-1):f<-1&&f>=-20&&this._getModule(Jn).onMessageMaybeLost(d,t.sequence+1,Math.abs(f)-1)}this.sequencesLinkedList.set(t.sequence),this.messageIDLinkedList.set(t.ID);var h=!1;if(this._isMessageSentByCurrentInstance(t)?l&&(h=!0,t.isModified=l,r.updateMessageIsModifiedProperty(t)):h=!0,h){if(t.conversationType===T.CONV_SYSTEM&&5===t.payload.operationType&&this._onGroupDismissed(t.payload.groupProfile.groupID),!u&&t.conversationType!==T.CONV_SYSTEM){var m=t.conversationID.replace(T.CONV_GROUP,"");this._pollingInstanceMap.has(m)?this._groupModule.isLoggedIn()&&o.addMessageSequence({key:ka,message:t}):(t.type!==T.MSG_GRP_TIP&&t.clientTime>0&&o.addMessageDelay(t.clientTime),o.addMessageSequence({key:Ma,message:t}))}n.push(t)}}}else Fe.w("".concat(this._n,".onMessage unknown event:").concat(c.event))}if(0!==n.length){this._groupModule.filterModifiedMessage(n);var v=this.packConversationOption(n);v.length>0&&this._getModule(Vn).onNewMessage({conversationOptionsList:v,isInstantMessage:!0}),Fe.d("".concat(this._n,".onMessage count:").concat(n.length)),this._checkMessageStacked(n);var g=this._groupModule.filterUnmodifiedMessage(n);g.length>0&&this._groupModule.emitOuterEvent(S.MESSAGE_RECEIVED,g),n.length=0}}}},{key:"isBroadcastOrNormal",value:function(e){return 3===e||17===e}},{key:"isGroupTip",value:function(e){return 4===e||6===e}},{key:"isGroupSystemNotice",value:function(e){return 5===e}},{key:"restoreGroupTipElements",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.groupJoinType||(e.groupJoinType=1);var t=e.operatorInfo,n=void 0===t?{}:t,r=e.operatorID,o=e.userIDList,a=void 0===o?[]:o,i=n.userID,s=void 0===i?r:i,c=n.avatar,l=void 0===c?"":c,u=n.nick,d=void 0===u?"":u;e.operatorInfo={userID:s,avatar:l,nick:d};var p=a.map((function(e){return{userID:e}}));return e.memberInfoList=e.memberInfoList||p,e}},{key:"restoreMessageFromSimplified",value:function(e){var t=e.event;if(this.isBroadcastOrNormal(t)&&(e.cloudCustomData=e.cloudCustomData||"",e.elements=e.elements.map((function(e){if(e.type===T.MSG_CUSTOM){var t=e.content,r=void 0===t?{}:t;e.content=n({data:"",description:"",extension:""},r)}return e}))),(this.isGroupTip(t)||this.isGroupSystemNotice(t))&&(e.from=e.from||"@TIM#SYSTEM"),this.isGroupTip(t)){e.elements=this.restoreGroupTipElements(e.elements);var r=e.elements,o=void 0===r?{}:r,a=o.operationType,i=o.operatorInfo;if(1===a){var c=[{userID:(void 0===i?{}:i).userID}];o.memberInfoList=o.memberInfoList||c}}if(this.isGroupSystemNotice(t)){var l=e.elements,u=l.memberInfoList,d=l.operatorInfo;u||(u=void 0===d?{}:d),e.elements.memberInfoList=n({userID:e.elements.operatorID,avatar:"",nick:""},u),e.elements=n({authentication:"",remarkInfo:"",messageKey:1e3*e.time},e.elements);var p=Object.keys(e.elements).filter((function(e){return"operatorInfo"!==e})).reduce((function(t,r){return n(n({},t),{},s({},r,e.elements[r]))}),{});e.elements=p}return e}},{key:"_onGroupDismissed",value:function(e){Fe.l("".concat(this._n,"._onGroupDismissed groupID:").concat(e)),this._groupModule.deleteLocalGroupAndConversation(e),this.reset(e)}},{key:"_checkMessageStacked",value:function(e){var t="MessageStacked",n=e.length;n>=100&&(this._groupModule.outputWarning(t),this._reportMessageStackedCount<5&&(new Ia(t).setNetworkType(this._groupModule.getNetworkType()).setMessage("count:".concat(n," groupID:").concat(b(this._joinedGroupMap.keys()))).setLevel("warning").end(),this._reportMessageStackedCount+=1))}},{key:"_isMessageSentByCurrentInstance",value:function(e){return!!this._getModule(Vn).isMessageSentByCurrentInstance(e)}},{key:"packMessage",value:function(e,t){e.currentUser=this._groupModule.getMyUserID(),e.conversationType=5===t?T.CONV_SYSTEM:T.CONV_GROUP,e.isSystemMessage=!!e.isSystemMessage;var n=new Ya(e),r=this.packElements(e,t);return n.setElement(r,this._groupModule.getFileDownloadProxy()),n}},{key:"packElements",value:function(e,t){return 4===t||6===t?(this._updateMemberCountByGroupTips(e),{type:T.MSG_GRP_TIP,content:n(n({},e.elements),{},{groupProfile:e.groupProfile})}):5===t?{type:T.MSG_GRP_SYS_NOTICE,content:n(n({},e.elements),{},{groupProfile:n(n({},e.groupProfile),{},{groupID:e.groupID})})}:this._getModule(Yn).parseElements(e.elements,e.from)}},{key:"packConversationOption",value:function(e){for(var t=new Map,n=0;n<e.length;n++){var r=e[n],o=r.conversationID;if(t.has(o)){var a=t.get(o);a.lastMessage=r,"in"===r.flow&&a.unreadCount++}else t.set(o,{conversationID:r.conversationID,unreadCount:"out"===r.flow?0:1,type:r.conversationType,subType:r.conversationSubType,lastMessage:r})}return b(t.values())}},{key:"_updateMemberCountByGroupTips",value:function(e){var t=e.groupProfile.groupID,n=e.elements.onlineMemberInfo,r=void 0===n?void 0:n;if(!Kt(r)){var o=r.onlineMemberNum,a=void 0===o?0:o,i=r.expireTime,s=void 0===i?this.DEFAULT_EXPIRE_TIME:i,c=this._onlineMemberCountMap.get(t)||{},l=Date.now();Kt(c)?Object.assign(c,{lastReqTime:0,lastSyncTime:0,latestUpdateTime:l,memberCount:a,expireTime:s}):(c.latestUpdateTime=l,c.memberCount=a),Fe.d("".concat(this._n,"._updateMemberCountByGroupTips info:"),c),this._onlineMemberCountMap.set(t,c)}}},{key:"_onBroadcastMessage",value:function(e){if(!Kt(e)){for(var t=[],n=e.length,r=null,o=0;o<n;o++){var a=this.restoreMessageFromSimplified(e[o]);Li[a.event]?((r=this.packMessage(a,a.event)).isBroadcastMessage=!0,this._broadcastMessageIDMap.has(r.ID)||(t.push(r),this._broadcastMessageIDMap.set(r.ID,1))):Fe.w("".concat(this._n,"._onBroadcastMessage unknown event:").concat(a.event))}t.length>0&&this._groupModule.emitOuterEvent(S.MESSAGE_RECEIVED,t)}}},{key:"start",value:function(e){if(this._pollingInstanceMap.has(e)){var t=this._pollingInstanceMap.get(e);t.isRunning()||t.start()}else{var n=new Di({manager:this,groupID:e,onInit:this._updateRequestData.bind(this),onSuccess:this._handleSuccess.bind(this),onFail:this._handleFailure.bind(this)});n.start(),this._pollingInstanceMap.set(e,n),Fe.l("".concat(this._n,".start groupID:").concat(e))}}},{key:"handleJoinResult",value:function(e){var t=this;return this._preCheck().then((function(){var n=e.longPollingKey,r=e.group,o=r.groupID;return t._joinedGroupMap.set(o,r),t._groupModule.updateGroupMap([r]),t._groupModule.deleteUnjoinedAVChatRoom(o),t._groupModule.emitGroupListUpdate(!0,!1),it(n)?$a({status:We,group:r}):Promise.resolve()}))}},{key:"startRunLoop",value:function(e){var t=this;return this.handleJoinResult(e).then((function(){var n=e.longPollingKey,r=e.group,o=e.startSeq,a=void 0===o?0:o,i=r.groupID;return t._pollingRequestInfoMap.set(i,{key:n,startSeq:a}),t.start(i),t._groupModule.isLoggedIn()?$a({status:We,group:r}):$a({status:We})}))}},{key:"_preCheck",value:function(){if(this._getModule(Bn).isUnlimitedAVChatRoom())return Promise.resolve();if(!this.hasJoinedAVChatRoom())return Promise.resolve();var e=_(this._joinedGroupMap.entries().next().value,2),t=e[0],n=e[1];if(this._groupModule.isLoggedIn()){if(n.selfInfo.role!==T.GRP_MBR_ROLE_OWNER&&n.ownerID!==this._groupModule.getMyUserID())return this._groupModule.quitGroup(t);this._groupModule.deleteLocalGroupAndConversation(t)}else this._groupModule.deleteLocalGroupAndConversation(t);return this.reset(t),Promise.resolve()}},{key:"joinWithoutAuth",value:function(e){var t=this,n=e.groupID,r="".concat(this._n,".").concat("joinWithoutAuth"),o=new Ia("joinWithoutAuth");return this._groupModule.request({protocolName:Xr,requestData:e}).then((function(e){var a=e.data.longPollingKey;if(t._groupModule.probeNetwork().then((function(e){var t=_(e,2);t[0];var r=t[1];o.setNetworkType(r).setMessage("groupID:".concat(n," longPollingKey:").concat(a)).end(!0)})),it(a))return Ja({code:fa.CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN});Fe.l("".concat(r," ok. groupID:").concat(n)),t._getModule(Vn).setCompleted("".concat(T.CONV_GROUP).concat(n));var i=new fi({groupID:n});return t.startRunLoop({group:i,longPollingKey:a}),za({status:We})})).catch((function(e){return Fe.e("".concat(r," failed. groupID:").concat(n," error:"),e),t._groupModule.probeNetwork().then((function(t){var r=_(t,2),a=r[0],i=r[1];o.setError(e,a,i).setMessage("groupID:".concat(n)).end(!0)})),Ja(e)})).finally((function(){t._groupModule.getModule(Gn).reportAtOnce()}))}},{key:"getGroupOnlineMemberCount",value:function(e){var t=this._onlineMemberCountMap.get(e)||{},n=Date.now();return Kt(t)||n-t.lastSyncTime>1e3*t.expireTime&&n-t.latestUpdateTime>1e4&&n-t.lastReqTime>3e3?(t.lastReqTime=n,this._onlineMemberCountMap.set(e,t),this._getGroupOnlineMemberCount(e).then((function(e){return za({memberCount:e.memberCount})})).catch((function(e){return Ja(e)}))):$a({memberCount:t.memberCount})}},{key:"_getGroupOnlineMemberCount",value:function(e){var t=this,n="".concat(this._n,".").concat("_getGroupOnlineMemberCount");return this._groupModule.request({protocolName:go,requestData:{groupID:e}}).then((function(r){var o=t._onlineMemberCountMap.get(e)||{},a=r.data,i=a.onlineMemberNum,s=void 0===i?0:i,c=a.expireTime,l=void 0===c?t.DEFAULT_EXPIRE_TIME:c;Fe.l("".concat(n," ok. groupID:").concat(e," memberCount:").concat(s," expireTime:").concat(l));var u=Date.now();return Kt(o)&&(o.lastReqTime=u),t._onlineMemberCountMap.set(e,Object.assign(o,{lastSyncTime:u,latestUpdateTime:u,memberCount:s,expireTime:l})),{memberCount:s}})).catch((function(r){return Fe.w("".concat(n," failed. error:"),r),new Ia("_getGroupOnlineMemberCount").setCode(r.code).setMessage("groupID:".concat(e," error:").concat(JSON.stringify(r))).setNetworkType(t._groupModule.getNetworkType()).end(),Promise.reject(r)}))}},{key:"_getModule",value:function(e){return this._groupModule.getModule(e)}},{key:"setPollingInterval",value:function(e){it(e)||(et(e)?this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=e:this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=parseInt(e,10))}},{key:"setPollingIntervalPlus",value:function(e){it(e)||(et(e)?this.DEFAULT_POLLING_INTERVAL_PLUS=e:this.DEFAULT_POLLING_INTERVAL_PLUS=parseInt(e,10))}},{key:"setPollingNoMessageCount",value:function(e){it(e)||(et(e)?this.DEFAULT_POLLING_NO_MESSAGE_COUNT=e:this.DEFAULT_POLLING_NO_MESSAGE_COUNT=parseInt(e,10))}},{key:"setPollingSimplifiedMessage",value:function(e){it(e)||"0"!==e&&"1"!==e||(this.DEFAULT_POLLING_SIMPLIFIED_MSG=parseInt(e,10))}},{key:"getPollingInterval",value:function(){return this._pollingInterval}},{key:"onAVChatRoomMemberBanned",value:function(e){var t=e.payload.groupProfile.groupID;Fe.l("".concat(this._n,".onAVChatRoomMemberBanned groupID:").concat(t)),this._groupModule.deleteLocalGroupAndConversation(t),this.reset(t)}},{key:"restartPolling",value:function(){Fe.l("".concat(this._n,".restartPolling count:").concat(this._pollingInstanceMap.size));var e,t=w(this._pollingInstanceMap.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.stop(),n.start()}}catch(o){t.e(o)}finally{t.f()}}},{key:"reset",value:function(e){if(e){Fe.l("".concat(this._n,".reset groupID:").concat(e));var t=this._pollingInstanceMap.get(e);t&&t.stop(),this._pollingInstanceMap.delete(e),this._joinedGroupMap.delete(e),this._pollingRequestInfoMap.delete(e),this._onlineMemberCountMap.delete(e)}else{Fe.l("".concat(this._n,".reset all"));var n,r=w(this._pollingInstanceMap.values());try{for(r.s();!(n=r.n()).done;)n.value.stop()}catch(a){r.e(a)}finally{r.f()}this._pollingInstanceMap.clear(),this._joinedGroupMap.clear(),this._pollingRequestInfoMap.clear(),this._onlineMemberCountMap.clear(),this._broadcastMessageIDMap.clear()}this.sequencesLinkedList.reset(),this.messageIDLinkedList.reset(),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=300,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0}}]),e}(),Ni=1,Ri=15,xi=function(){function e(t){o(this,e),this._groupModule=t,this._n="GroupSystemNoticeHandler",this.pendencyMap=new Map}return i(e,[{key:"onNewGroupSystemNotice",value:function(e){var t=e.dataList,n=e.isSyncingEnded,r=e.isInstantMessage;Fe.d("".concat(this._n,".onReceiveSystemNotice count:").concat(t.length));var o=this.newSystemNoticeStoredAndSummary({notifiesList:t,isInstantMessage:r}),a=o.eventDataList,i=o.result;a.length>0&&(this._groupModule.getModule(Vn).onNewMessage({conversationOptionsList:a,isInstantMessage:r}),this._onReceivedGroupSystemNotice({result:i,isInstantMessage:r})),r?i.length>0&&this._groupModule.emitOuterEvent(S.MESSAGE_RECEIVED,i):!0===n&&this._clearGroupSystemNotice()}},{key:"newSystemNoticeStoredAndSummary",value:function(e){var t=e.notifiesList,r=e.isInstantMessage,o=null,a=t.length,i=0,s=[],c={conversationID:T.CONV_SYSTEM,unreadCount:0,type:T.CONV_SYSTEM,subType:null,lastMessage:null};for(i=0;i<a;i++){var l=t[i],u=l.groupProfile,d=u.communityType,p=void 0===d?0:d,f=u.topicID,h=void 0===f?void 0:f,m=l.elements,v=m.topicIDList,g=void 0===v?void 0:v,_=m.operationType;if(!(2!==p||Kt(h)&&Kt(g))){if([17,18,20].includes(_)){this._handleTopicSystemNotice(l);continue}Kt(h)||(l.to=h)}l.elements.operationType!==Ri&&(l.currentUser=this._groupModule.getMyUserID(),l.conversationType=T.CONV_SYSTEM,l.conversationID=T.CONV_SYSTEM,(o=new Ya(l)).setElement({type:T.MSG_GRP_SYS_NOTICE,content:n(n({},l.elements),{},{groupProfile:n({},l.groupProfile)})}),o.isSystemMessage=!0,(1===o.sequence&&1===o.random||2===o.sequence&&2===o.random)&&(o.sequence=mt(),o.random=mt(),o.generateMessageID(),Fe.l("".concat(this._n,".newSystemNoticeStoredAndSummary sequence and random maybe duplicated, regenerate. ID:").concat(o.ID))),this._groupModule.getModule(Vn).pushIntoNoticeResult(s,o)&&(r?c.unreadCount++:o.setIsRead(!0),c.subType=o.conversationSubType))}return c.lastMessage=s[s.length-1],{eventDataList:s.length>0?[c]:[],result:s}}},{key:"_clearGroupSystemNotice",value:function(){var e=this;this._getPendencyList().then((function(t){t.forEach((function(t){e.pendencyMap.set("".concat(t.from,"_").concat(t.groupID,"_").concat(t.to),t)}));var n=e._groupModule.getModule(Vn).getLocalMessageList(T.CONV_SYSTEM),r=[];n.forEach((function(t){var n=t.payload,o=n.operatorID,a=n.operationType,i=n.groupProfile;if(a===Ni){var s="".concat(o,"_").concat(i.groupID,"_").concat(i.to),c=e.pendencyMap.get(s);c&&et(c.handled)&&0!==c.handled&&r.push(t)}})),e.deleteGroupSystemNotice({messageList:r})}))}},{key:"deleteGroupSystemNotice",value:function(e){var t=this,n="".concat(this._n,".deleteGroupSystemNotice");return at(e.messageList)&&0!==e.messageList.length?(Fe.l("".concat(n," ")+e.messageList.map((function(e){return e.ID}))),this._groupModule.request({protocolName:ho,requestData:{messageListToDelete:e.messageList.map((function(e){return{from:T.CONV_SYSTEM,messageSeq:e.clientSequence,messageRandom:e.random}}))}}).then((function(){Fe.l("".concat(n," ok"));var r=t._groupModule.getModule(Vn);return e.messageList.forEach((function(e){r.deleteLocalMessage(e)})),za()})).catch((function(e){return Fe.e("".concat(n," error:"),e),Ja(e)}))):$a()}},{key:"_getPendencyList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.type,r=void 0===n?void 0:n,o=t.startTime,a=void 0===o?0:o,i=t.limit,s=void 0===i?20:i;return this._groupModule.request({protocolName:fo,requestData:{type:r,startTime:a,limit:s,handleAccount:this._groupModule.getMyUserID()}}).then((function(t){var n=t.data.pendencyList;return 0!==t.data.nextStartTime?e._getPendencyList({startTime:t.data.nextStartTime}).then((function(e){return[].concat(b(n),b(e))})):n}))}},{key:"getGroupApplicationList",value:function(){var e=this;return this._getPendencyList().then((function(t){return e._getPendencyList({type:T.GRP_COMMUNITY}).then((function(n){return t.push.apply(t,b(n)),e._handlePendencyResult(t)})).catch((function(n){return e._handlePendencyResult(t)}))}))}},{key:"_handlePendencyResult",value:function(e){var t=this,n=[];return e.forEach((function(e){t.pendencyMap.set("".concat(e.from,"_").concat(e.groupID,"_").concat(e.to),e),0===e.handled&&n.push({applicant:e.from,applicantNick:e.fromUserNickName,groupName:e.groupName,groupID:e.groupID,authentication:e.authentication,messageKey:e.time,applicationType:e.applicationType,userID:e.userID})})),$a({applicationList:n})}},{key:"_onReceivedGroupSystemNotice",value:function(e){var t=this,n=e.result;e.isInstantMessage&&n.forEach((function(e){switch(e.payload.operationType){case 1:break;case 2:t._onApplyGroupRequestAgreed(e);break;case 3:break;case 4:t._onMemberKicked(e);break;case 5:t._onGroupDismissed(e);break;case 6:break;case 7:t._onInviteGroup(e);break;case 8:t._onQuitGroup(e);break;case 9:t._onSetManager(e);break;case 10:t._onDeleteManager(e);break;case 11:case 12:case 15:break;case 20:t._onMessageRemindTypeSynced(e);break;case 21:t._groupModule.onAVChatRoomMemberBanned(e)}}))}},{key:"_onApplyGroupRequestAgreed",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;if(n){t._groupModule.updateGroupMap([n]);var r=!n.isSupportTopic;t._groupModule.emitGroupListUpdate(!0,r)}}))}},{key:"_onMemberKicked",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:"_onGroupDismissed",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t);var n=this._groupModule._AVChatRoomHandler;n&&n.checkJoinedAVChatRoomByID(t)&&n.reset(t)}},{key:"_onInviteGroup",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;n&&(t._groupModule.updateGroupMap([n]),t._groupModule.emitGroupListUpdate())}))}},{key:"_onQuitGroup",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:"_onSetManager",value:function(e){var t=e.payload.groupProfile,n=t.to,r=t.groupID,o=this._groupModule.getModule(Pn).getLocalGroupMemberInfo(r,n);o&&o.updateRole(T.GRP_MBR_ROLE_ADMIN)}},{key:"_onDeleteManager",value:function(e){var t=e.payload.groupProfile,n=t.to,r=t.groupID,o=this._groupModule.getModule(Pn).getLocalGroupMemberInfo(r,n);o&&o.updateRole(T.GRP_MBR_ROLE_MEMBER)}},{key:"_onMessageRemindTypeSynced",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.messageRemindType;this._groupModule.getModule(Vn).onGroupMessageRemindTypeSynced({groupID:t,messageRemindType:n})}},{key:"_handleTopicSystemNotice",value:function(e){var t=e.groupProfile,n=t.groupID,r=t.topicID,o=e.elements,a=o.operationType,i=o.topicIDList,s=o.messageRemindType,c=this._groupModule.getModule(Un);17===a?c.onTopicCreated({groupID:n,topicID:r}):18===a?c.onTopicDeleted({groupID:n,topicIDList:i}):20===a&&c.onTopicMessageRemindTypeUpdated({groupID:n,topicID:r,messageRemindType:s})}},{key:"reset",value:function(){this.pendencyMap.clear()}}]),e}(),Pi=["relayFlag"],Ui=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="GroupModule",n._commonGroupHandler=null,n._AVChatRoomHandler=null,n._groupSystemNoticeHandler=null,n._commonGroupHandler=new yi(m(n)),n._groupAttributesHandler=new Si(m(n)),n._groupCountersHandler=new ji(m(n)),n._AVChatRoomHandler=new Ai(m(n)),n._groupTipsHandler=new bi(m(n)),n._groupSystemNoticeHandler=new xi(m(n)),n.groupMap=new Map,n._unjoinedAVChatRoomList=new Map,n._receiptDetailCompleteMap=new Map,n.getInnerEmitterInstance().on(ei,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("polling_interval"),t=this.getCloudConfig("polling_interval_plus"),n=this.getCloudConfig("polling_no_msg_count"),r=this.getCloudConfig("polling_simplified_msg");this._AVChatRoomHandler&&(Fe.l("".concat(this._n,"._onCloudConfigUpdated pollingInterval:").concat(e)+" pollingIntervalPlus:".concat(t," pollingNoMessageCount:").concat(n)+" pollingSimplifiedMessage:".concat(r)),this._AVChatRoomHandler.setPollingInterval(e),this._AVChatRoomHandler.setPollingIntervalPlus(t),this._AVChatRoomHandler.setPollingNoMessageCount(n),this._AVChatRoomHandler.setPollingSimplifiedMessage(r))}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&(this._commonGroupHandler.onCheckTimer(e),this._groupTipsHandler.onCheckTimer(e))}},{key:"guardForAVChatRoom",value:function(e){var t=this;if(e.conversationType===T.CONV_GROUP){var n=wt(e.to)?Bt(e.to):e.to;return this.hasLocalGroup(n)?$a():this.getGroupProfile({groupID:n}).then((function(r){var o=r.data.group.type;if(Fe.l("".concat(t._n,".guardForAVChatRoom. groupID:").concat(n," type:").concat(o)),o===T.GRP_AVCHATROOM){var a=fa.MESSAGE_SEND_FAIL_NOT_IN_AVCHATROOM;return Ja(new qa({code:a,message:t.getErrorMessage(a,e.from,n),data:{message:e}}))}return $a()}))}return $a()}},{key:"checkJoinedAVChatRoomByID",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:"onNewGroupMessage",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onNewGroupMessage(e)}},{key:"updateNextMessageSeq",value:function(e){var t=this;if(at(e)){var n=this.getModule(Un);e.forEach((function(e){var r=e.conversationID.replace(T.CONV_GROUP,"");wt(r)&&n.updateLastMessage(r,e.lastMessage),t.groupMap.has(r)&&(t.groupMap.get(r).nextMessageSeq=e.lastMessage.sequence+1)}))}}},{key:"onNewGroupTips",value:function(e){this._groupTipsHandler&&this._groupTipsHandler.onNewGroupTips(e)}},{key:"onGroupMessageRevoked",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onGroupMessageRevoked(e)}},{key:"onNewGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.onNewGroupSystemNotice(e)}},{key:"onGroupMessageReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){var n=e.elements.groupMessageReadNotice;if(!it(n)){var r=t.getModule(Vn);n.forEach((function(e){var n=e.groupID,o=e.topicID,a=void 0===o?void 0:o,i=e.lastMessageSeq;Fe.d("".concat(t._n,".onGroupMessageReadNotice groupID:").concat(n," lastMessageSeq:").concat(i));var s="".concat(T.CONV_GROUP).concat(n),c=!0;Kt(a)||(s="".concat(T.CONV_GROUP).concat(a),c=!1),r.updateIsReadAfterReadReport({conversationID:s,lastMessageSeq:i}),r.updateUnreadCount(s,c),r.clearGroupAtInfoList(s,c)}))}}))}},{key:"onReadReceiptList",value:function(e){var t=this;Fe.d("".concat(this._n,".onReadReceiptList options:"),JSON.stringify(e)),e.dataList.forEach((function(e){var n=e.groupProfile,r=e.elements,o=n.groupID,a=t.getModule(Vn),i=r.readReceiptList;a.updateReadReceiptInfo({groupID:o,readReceiptList:i})}))}},{key:"onGroupMessageModified",value:function(e){Fe.d("".concat(this._n,".onGroupMessageModified options:"),JSON.stringify(e));var t=this.getModule(Vn);e.dataList.forEach((function(e){t.onMessageModified(n(n({},e),{},{conversationType:T.CONV_GROUP,to:e.topicID?e.topicID:e.groupID}))}))}},{key:"deleteGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.deleteGroupSystemNotice(e)}},{key:"initGroupMap",value:function(e){this.groupMap.set(e.groupID,new fi(e))}},{key:"deleteGroup",value:function(e){this.groupMap.delete(e)}},{key:"updateGroupMap",value:function(e){var t,n=this,r=this.getModule(Vn);e.forEach((function(e){t=e.groupID,n.groupMap.has(t)?n.groupMap.get(t).updateGroup(e):(n.groupMap.set(t,new fi(e)),r.deleteGroupRomaingMessageInfo(t))}));var o,a=this.getMyUserID(),i=w(this.groupMap);try{for(i.s();!(o=i.n()).done;){var s=_(o.value,2)[1];s.selfInfo.userID=a,"Owner"===s.selfInfo.role&&(s.ownerID=a)}}catch(l){i.e(l)}finally{i.f()}this._setStorageGroupList()}},{key:"getStorageGroupList",value:function(){return this.getModule(Fn).getItem("groupMap")}},{key:"_setStorageGroupList",value:function(){var e=this.getLocalGroupList().filter((function(e){var t=e.type;return!kt(t)})).filter((function(e){return!e.isSupportTopic})).slice(0,20).map((function(e){return{groupID:e.groupID,name:e.name,avatar:e.avatar,type:e.type}}));this.getModule(Fn).setItem("groupMap",e)}},{key:"getGroupMap",value:function(){return this.groupMap}},{key:"getLocalGroupList",value:function(){return b(this.groupMap.values())}},{key:"getLocalGroupProfile",value:function(e){return this.groupMap.get(e)}},{key:"sortLocalGroupList",value:function(){var e=b(this.groupMap).filter((function(e){var t=_(e,2);return t[0],!Kt(t[1].lastMessage)}));e.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})),this.groupMap=new Map(b(e))}},{key:"updateGroupLastMessage",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.handleUpdateGroupLastMessage(e)}},{key:"emitGroupListUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalGroupList();if(e&&this.emitOuterEvent(S.GROUP_LIST_UPDATED),t){var r=JSON.parse(JSON.stringify(n)),o=this.getModule(Vn);o.updateConversationGroupProfile(r)}}},{key:"patchGroupMessageRemindType",value:function(){var e=this.getLocalGroupList(),t=this.getModule(Vn),n=0;e.forEach((function(e){!0===t.patchMessageRemindType({ID:e.groupID,isC2CConversation:!1,messageRemindType:e.selfInfo.messageRemindType})&&(n+=1)})),Fe.l("".concat(this._n,".patchGroupMessageRemindType count:").concat(n))}},{key:"recomputeUnreadCount",value:function(){var e=this.getLocalGroupList(),t=this.getModule(Vn);e.forEach((function(e){var n=e.groupID,r=e.selfInfo,o=r.excludedUnreadSequenceList,a=r.readedSequence;if(at(o)){var i=0;o.forEach((function(t){t>=a&&t<=e.nextMessageSeq-1&&(i+=1)})),i>=1&&t.recomputeGroupUnreadCount({conversationID:"".concat(T.CONV_GROUP).concat(n),count:i})}}))}},{key:"getMyNameCardByGroupID",value:function(e){var t=this.getLocalGroupProfile(e);return t?t.selfInfo.nameCard:""}},{key:"isPagingGetCompleted",value:function(){return!!this._commonGroupHandler&&this._commonGroupHandler.isPagingGetCompleted()}},{key:"getGroupList",value:function(e){return this._commonGroupHandler?this._commonGroupHandler.getGroupList(e):$a()}},{key:"getGroupProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupProfile"),r=new Ia("getGroupProfile"),o=e.groupID,a=e.groupCustomFieldFilter;Fe.l("".concat(n," groupID:").concat(o));var i={groupIDList:[o],responseFilter:{groupBaseInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember","InviteJoinOption"],groupCustomFieldFilter:a,memberInfoFilter:["Role","JoinTime","MsgSeq","MsgFlag","NameCard"]}};return this.getGroupProfileAdvance(i).then((function(e){var a,i=e.data,s=i.successGroupList,c=i.failureGroupList;return Fe.l("".concat(n," ok")),c.length>0?Ja(c[0]):(kt(s[0].type)&&!t.hasLocalGroup(o)?a=new fi(s[0]):(t.updateGroupMap(s),a=t.getLocalGroupProfile(o)),a.isSupportTopic||t.getModule(Vn).updateConversationGroupProfile([a]),r.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(o," type:").concat(a.type," muteAllMembers:").concat(a.muteAllMembers," ownerID:").concat(a.ownerID)).end(),za({group:a}))})).catch((function(o){return t.probeNetwork().then((function(t){var n=_(t,2),a=n[0],i=n[1];r.setError(o,a,i).setMessage("groupID:".concat(e.groupID)).end()})),Fe.e("".concat(n," failed. error:"),o),Ja(o)}))}},{key:"getGroupProfileAdvance",value:function(e){var t="".concat(this._n,".getGroupProfileAdvance"),r=e.groupIDList;at(r)&&r.length>50&&(this.outputWarning("GetGroupProfileLimit"),r.length=50);var o=[],a=[];r.forEach((function(e){Ct({groupID:e})?a.push(e):o.push(e)}));var i=[];if(o.length>0){var s=this._getGroupProfileAdvance(n(n({},e),{},{groupIDList:o}));i.push(s)}if(a.length>0){var c=this._getGroupProfileAdvance(n(n({},e),{},{groupIDList:a,relayFlag:o.length>0}));i.push(c)}return Promise.all(i).then((function(e){var t=[],n=[];return e.forEach((function(e){t.push.apply(t,b(e.successGroupList)),n.push.apply(n,b(e.failureGroupList))})),za({successGroupList:t,failureGroupList:n})})).catch((function(e){return Fe.e("".concat(t," failed. error:"),e),Ja(e)}))}},{key:"_getGroupProfileAdvance",value:function(e){var t=this,n=e.relayFlag,r=void 0!==n&&n,o=h(e,Pi);return this.request({protocolName:qr,requestData:o}).then((function(e){Fe.l("".concat(t._n,"._getGroupProfileAdvance ok."));var n=e.data.groups;return{successGroupList:n.filter((function(e){return it(e.errorCode)||0===e.errorCode})),failureGroupList:n.filter((function(e){return e.errorCode&&0!==e.errorCode})).map((function(e){return new qa({code:e.errorCode,message:e.errorInfo,data:{groupID:e.groupID}})}))}})).catch((function(t){return r&&Ct({groupID:e.groupIDList[0]})?{successGroupList:[],failureGroupList:[]}:Ja(t)}))}},{key:"createGroup",value:function(e){var t=this,r="".concat(this._n,".").concat("createGroup"),o=e.type,a=e.groupID;if(e.name&&!1===this._filterProfanity("name",e))return Ja({code:fa.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return Ja({code:fa.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return Ja({code:fa.PROFANITY_FOUND});if(!["Public","Private","ChatRoom","AVChatRoom","Community"].includes(o))return Ja({code:fa.ILLEGAL_GROUP_TYPE});if(!Ct({type:o})){if(!Kt(a)&&Ct({groupID:a}))return Ja({code:fa.ILLEGAL_GROUP_ID});e.isSupportTopic=void 0}if(kt(o)&&!it(e.memberList)&&e.memberList.length>0&&(e.memberList=void 0),this._canIUseJoinOption(o)||it(e.joinOption)||(e.joinOption=void 0),Ct({type:o})){if(!Kt(a)&&!Ct({groupID:a}))return Ja({code:fa.ILLEGAL_GROUP_ID});e.isSupportTopic=!0===e.isSupportTopic?1:0}var i=new Ia("createGroup");Fe.l("".concat(r," options:"),e);var s=null,c=[];return this.request({protocolName:Wr,requestData:n(n({},e),{},{ownerID:this.getMyUserID(),webPushFlag:1})}).then((function(o){var a=o.data,l=a.groupID,u=a.overLimitUserIDList,d=void 0===u?[]:u;if(s=l,c=d,i.setNetworkType(t.getNetworkType()).setMessage("groupType:".concat(e.type," groupID:").concat(l," overLimitUserIDList=").concat(d)).end(),Fe.l("".concat(r," ok groupID:").concat(l," overLimitUserIDList:"),d),e.type===T.GRP_AVCHATROOM)return t.getGroupProfile({groupID:l});if(e.type===T.GRP_COMMUNITY&&1===e.isSupportTopic)return t.getGroupProfile({groupID:l});Kt(e.memberList)||Kt(d)||(e.memberList=e.memberList.filter((function(e){return-1===d.indexOf(e.userID)}))),t.updateGroupMap([n(n({},e),{},{groupID:l})]);var p=t.getModule(Dn),f=p.createCustomMessage({to:l,conversationType:T.CONV_GROUP,payload:{data:"group_create",extension:t.isIntl()?"".concat(t.getMyUserID()," created a group"):"".concat(t.getMyUserID(),"创建群组")}});return p.sendMessageInstance(f),t.emitGroupListUpdate(),t.getGroupProfile({groupID:l})})).then((function(e){var t=e.data.group,n=t.selfInfo,r=n.nameCard,o=n.joinTime;return t.updateSelfInfo({nameCard:r,joinTime:o,messageRemindType:T.MSG_REMIND_ACPT_AND_NOTE,role:T.GRP_MBR_ROLE_OWNER}),za({group:t,overLimitUserIDList:c})})).catch((function(o){if(i.setMessage("groupType:".concat(e.type)),t.probeNetwork().then((function(e){var t=_(e,2),n=t[0],r=t[1];i.setError(o,n,r).end()})),10010===o.code||10007===o.code){t.updateGroupMap([n(n({},e),{},{groupID:s})]);var a=t.getLocalGroupProfile(s);return Fe.l("".concat(r," success, but failed to get group profile.")),za({group:a,overLimitUserIDList:c})}return Fe.e("".concat(r," failed. error:"),o),Ja(o)}))}},{key:"dismissGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("dismissGroup");if(this.hasLocalGroup(e)&&this.getLocalGroupProfile(e).type===T.GRP_WORK)return Ja(new qa({code:fa.CANNOT_DISMISS_WORK}));var r=new Ia("dismissGroup");return r.setMessage("groupID:".concat(e)),Fe.l("".concat(n," groupID:").concat(e)),this.request({protocolName:Kr,requestData:{groupID:e}}).then((function(){return r.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok")),t.deleteLocalGroupAndConversation(e),t.checkJoinedAVChatRoomByID(e)&&t._AVChatRoomHandler.reset(e),t._groupAttributesHandler.deleteLocalGroupAttributes(e),za({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"updateGroupProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("updateGroupProfile");if(this.hasLocalGroup(e.groupID)){var r=this.getLocalGroupProfile(e.groupID).type;this._canIUseJoinOption(r)||it(e.joinOption)||(Fe.w("".concat(n," joinOption is unavailable for Work/Meeting/AVChatRoom")),e.joinOption=void 0)}if(it(e.muteAllMembers)||(e.muteAllMembers?e.muteAllMembers="On":e.muteAllMembers="Off"),e.name&&!1===this._filterProfanity("name",e))return Ja({code:fa.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return Ja({code:fa.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return Ja({code:fa.PROFANITY_FOUND});var o=new Ia("updateGroupProfile");return o.setMessage(JSON.stringify(e)),Fe.l("".concat(n," groupID:").concat(e.groupID)),this.request({protocolName:$r,requestData:e}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok")),t.hasLocalGroup(e.groupID)&&(t.groupMap.get(e.groupID).updateGroup(e),t._setStorageGroupList()),za({group:t.groupMap.get(e.groupID)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Fe.l("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_filterProfanity",value:function(e,t){var n=this.getModule(rr);if(!n)return!0;var r=n.filterText(t[e],$),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"joinGroup",value:function(e){var t=this,n=e.groupID,r=e.type,o="".concat(this._n,".joinGroup");if(r===T.GRP_WORK)return Ja({code:fa.CANNOT_JOIN_WORK});if(this.deleteUnjoinedAVChatRoom(n),this.hasLocalGroup(n)){if(!this.isLoggedIn())return $a({status:T.JOIN_STATUS_ALREADY_IN_GROUP});var a=new Ia("applyJoinGroup");return this.getGroupProfile({groupID:n}).then((function(){return a.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," joinedStatus:").concat(T.JOIN_STATUS_ALREADY_IN_GROUP)).end(),$a({status:T.JOIN_STATUS_ALREADY_IN_GROUP})})).catch((function(r){return a.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," unjoined")).end(),Fe.w("".concat(o," ").concat(n," was unjoined, now join!")),t.groupMap.delete(n),t.applyJoinGroup(e)}))}return Fe.l("".concat(o," groupID:").concat(n)),this.isLoggedIn()?this.applyJoinGroup(e):this._AVChatRoomHandler.joinWithoutAuth(e)}},{key:"applyJoinGroup",value:function(e){var t=this,r="".concat(this._n,".").concat("applyJoinGroup"),o=e.groupID;if(!Kt(e.applyMessage)&&!1===this._filterProfanity("applyMessage",e))return Ja({code:fa.PROFANITY_FOUND});var a=new Ia("applyJoinGroup"),i=n({},e),s=this.canIUse(H.AVCHATROOM_HISTORY_MSG);return s&&(i.historyMessageFlag=1),this.getModule(Vn).deleteTopicRoamingMessageInfo(o),this.request({protocolName:Jr,requestData:i}).then((function(e){var n=e.data,i=n.joinedStatus,c=n.longPollingKey,l=n.startSeq,u=n.avChatRoomFlag,d=n.avChatRoomKey,p=n.messageList,f="groupID:".concat(o," joinedStatus:").concat(i," longPollingKey:").concat(c," startSeq:").concat(l)+" avChatRoomFlag:".concat(u," canGetAVChatRoomHistoryMessage:").concat(s,",")+" history message count:".concat(Kt(p)?0:p.length);switch(a.setNetworkType(t.getNetworkType()).setMessage("".concat(f)).end(),Fe.l("".concat(r," ok. ").concat(f)),i){case Ke:return za({status:Ke});case We:return t.getGroupProfile({groupID:o}).then((function(e){var n=e.data.group;return t._handleJoinResult({group:n,avChatRoomFlag:u,longPollingKey:c,startSeq:l,avChatRoomKey:d,messageList:p})})).catch((function(){var e=new fi({groupID:o});return t._handleJoinResult({group:e,avChatRoomFlag:u,longPollingKey:c,startSeq:l,avChatRoomKey:d,messageList:p})}));default:var h=new qa({code:fa.JOIN_GROUP_FAIL});return Fe.e("".concat(r," failed. error:"),h),Ja(h)}})).catch((function(e){return a.setMessage("groupID:".concat(o)),t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}},{key:"_handleJoinResult",value:function(e){var t,n=this,r=e.group,o=e.avChatRoomFlag,a=e.longPollingKey,i=e.startSeq,s=e.avChatRoomKey,c=e.messageList,l=r.groupID;return 1===o?(this.getModule(Vn).setCompleted("".concat(T.CONV_GROUP).concat(l)),this._groupAttributesHandler.initGroupAttributesCache({groupID:l,avChatRoomKey:s}),this._groupCountersHandler.initGroupCountersCache({groupID:l,avChatRoomKey:s}),(t=it(a)?this._AVChatRoomHandler.handleJoinResult({group:r}):this._AVChatRoomHandler.startRunLoop({group:r,longPollingKey:a,startSeq:i})).then((function(){n._onAVChatRoomHistoryMessage(c)})),t):(this.emitGroupListUpdate(!0,!1),za({status:We,group:r}))}},{key:"quitGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("quitGroup");Fe.l("".concat(n," groupID:").concat(e));var r=this.checkJoinedAVChatRoomByID(e);if(!r&&!this.hasLocalGroup(e))return Ja({code:fa.MEMBER_NOT_IN_GROUP});if(r&&!this.isLoggedIn())return Fe.l("".concat(n," anonymously ok. groupID:").concat(e)),this.deleteLocalGroupAndConversation(e),this._AVChatRoomHandler.reset(e),$a({groupID:e});var o=new Ia("quitGroup");return o.setMessage("groupID:".concat(e)),this.request({protocolName:Qr,requestData:{groupID:e}}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok")),t.deleteLocalGroupAndConversation(e),r&&t._AVChatRoomHandler.reset(e),t._groupAttributesHandler.deleteLocalGroupAttributes(e),za({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"searchGroupByID",value:function(e){var t=this,n="".concat(this._n,".").concat("searchGroupByID"),r={groupIDList:[e]},o=new Ia("searchGroupByID");return o.setMessage("groupID:".concat(e)),Fe.l("".concat(n," groupID:").concat(e)),this.request({protocolName:Zr,requestData:r}).then((function(e){var r=e.data.groupProfile;if(0!==r[0].errorCode)throw new qa({code:r[0].errorCode,message:r[0].errorInfo});return o.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok")),za({group:new fi(r[0])})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Fe.w("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"changeGroupOwner",value:function(e){var t=this,n="".concat(this._n,".").concat("changeGroupOwner");if(this.hasLocalGroup(e.groupID)&&this.getLocalGroupProfile(e.groupID).type===T.GRP_AVCHATROOM)return Ja({code:fa.CANNOT_CHANGE_OWNER_IN_AVCHATROOM});if(e.newOwnerID===this.getMyUserID())return Ja({code:fa.CANNOT_CHANGE_OWNER_TO_SELF});var r=new Ia("changeGroupOwner");return r.setMessage("groupID:".concat(e.groupID," newOwnerID:").concat(e.newOwnerID)),Fe.l("".concat(n," groupID:").concat(e.groupID)),this.request({protocolName:eo,requestData:e}).then((function(){r.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok"));var o=e.groupID,a=e.newOwnerID;t.groupMap.get(o).ownerID=a;var i=t.getModule(Pn).getLocalGroupMemberList(o);if(i instanceof Map){var s=i.get(t.getMyUserID());it(s)||(s.updateRole("Member"),t.groupMap.get(o).selfInfo.role="Member");var c=i.get(a);it(c)||c.updateRole("Owner")}return t.emitGroupListUpdate(!0,!1),za({group:t.groupMap.get(o)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"getGroupApplicationList",value:function(){return this._groupSystemNoticeHandler.getGroupApplicationList()}},{key:"handleGroupApplication",value:function(e){var t,n,r,o,a,i=this,s="".concat(this._n,".").concat("handleGroupApplication"),c=e.handleAction,l=e.handleMessage,u=e.message,d=e.application;u?(t=u.payload.operatorID,n=u.payload.groupProfile.groupID,r=u.payload.authentication,o=u.payload.messageKey):d&&(t=d.applicant,n=d.groupID,r=d.authentication,o=d.messageKey);var p=to;d&&2===d.applicationType&&(p=no,a=d.userID);var f=new Ia("handleGroupApplication");return f.setMessage("groupID:".concat(n)),Fe.l("".concat(s," groupID:").concat(n)),this.request({protocolName:p,requestData:{handleAction:c,handleMessage:l,applicant:t,invitee:a,groupID:n,authentication:r,messageKey:o}}).then((function(){return f.setNetworkType(i.getNetworkType()).end(),Fe.l("".concat(s," ok")),u&&i._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),za({group:i.getLocalGroupProfile(n)})})).catch((function(e){return i.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];f.setError(e,r,o).end()})),Fe.e("".concat(s," failed. error"),e),Ja(e)}))}},{key:"handleGroupInvitation",value:function(e){var t=this,r="".concat(this._n,".").concat("handleGroupInvitation"),o=e.message.payload,a=o.groupProfile.groupID,i=o.authentication,s=o.messageKey,c=o.operatorID,l=e.handleAction,u=new Ia("handleGroupInvitation");return u.setMessage("groupID:".concat(a," inviter:").concat(c," handleAction:").concat(l)),Fe.l("".concat(r," groupID:").concat(a," inviter:").concat(c," handleAction:").concat(l)),this.request({protocolName:ro,requestData:n(n({},e),{},{inviter:c,groupID:a,authentication:i,messageKey:s})}).then((function(){return u.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(r," ok")),t._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),za({group:t.getLocalGroupProfile(a)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setError(e,r,o).end()})),Fe.e("".concat(r," failed. error"),e),Ja(e)}))}},{key:"getGroupOnlineMemberCount",value:function(e){return this._AVChatRoomHandler?this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)?this._AVChatRoomHandler.getGroupOnlineMemberCount(e):$a({memberCount:0}):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"hasLocalGroup",value:function(e){return this.groupMap.has(e)}},{key:"deleteLocalGroupAndConversation",value:function(e){var t=this.checkJoinedAVChatRoomByID(e);if(Fe.l("".concat(this._n,".deleteLocalGroupAndConversation isJoinedAVChatRoom:").concat(t)),t&&this.getModule(Vn).deleteLocalConversation("".concat(T.CONV_GROUP).concat(e)),Ct({groupID:e})){var n=this.getLocalGroupProfile(e);n&&!0===n.isSupportTopic&&this.getModule(Un).deleteTopicListInCommunity(e)}this._deleteLocalGroup(e),this.emitGroupListUpdate(!0,!1)}},{key:"_deleteLocalGroup",value:function(e){this.groupMap.delete(e),this.getModule(Pn).deleteGroupMemberList(e),this._setStorageGroupList()}},{key:"sendMessage",value:function(e,t){if(at(e._receiverList)&&e._receiverList.length>0&&!this.canIUse(H.MSG_TO_SPECIFIED_GRP_MBR))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n=this.createGroupMessagePack(e,t);return this.request(n)}},{key:"createGroupMessagePack",value:function(e,t){var n=null;t&&t.offlinePushInfo&&(n=t.offlinePushInfo);var r="";nt(e.cloudCustomData)&&e.cloudCustomData.length>0&&(r=e.cloudCustomData);var o=[];if(ot(t)&&ot(t.messageControlInfo)){var a=t.messageControlInfo,i=a.excludedFromUnreadCount,s=a.excludedFromLastMessage,c=a.excludedFromContentModeration;!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===c&&o.push("NoMsgCheck")}var l=void 0;at(e._receiverList)&&e._receiverList.length>0&&(l=e._receiverList,e._receiverList.length>50&&(l=e._receiverList.slice(0,50),this.outputWarning("ReceiverListLimit")));var u=this.isOnlineMessage(e,t)?1:0,d=e.getGroupAtInfoList(),p={fromAccount:this.getMyUserID(),groupID:e.to,msgBody:e.getElements(),cloudCustomData:r,random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:e.type!==T.MSG_TEXT||Kt(d)?void 0:d,onlineOnlyFlag:u,clientTime:e.clientTime,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||"",desc:n.description||"",ext:n.extension||"",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0,isVoipPush:this._isVoipPush(n)},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||""}}:void 0,messageControlInfo:0===u?o:void 0,needReadReceipt:!0!==e.needReadReceipt||this.isMessageFromOrToAVChatroom(e.to)?0:1,receiverList:l,isSupportExtension:!0===e.isSupportExtension?1:0};return wt(e.to)&&(p.groupID=Bt(e.to),p.topicID=e.to),{protocolName:mr,tjgID:this.generateTjgID(e),requestData:p}}},{key:"_isVoipPush",value:function(e){var t=void 0;return it(e.disableVoipPush)||(t=!1===e.disableVoipPush?1:0),t}},{key:"revokeMessage",value:function(e){var t={groupID:e.to,msgSeqList:[{msgSeq:e.sequence}]};return wt(e.to)&&(t.groupID=Bt(e.to),t.topicID=e.to),this.request({protocolName:oo,requestData:t})}},{key:"deleteMessage",value:function(e){var t=e.to,n=e.keyList;Fe.l("".concat(this._n,".deleteMessage groupID:").concat(t," count:").concat(n.length));var r={groupID:t,deleter:this.getMyUserID(),keyList:n};return wt(t)&&(r.groupID=Bt(t),r.topicID=t),this.request({protocolName:_o,requestData:r})}},{key:"modifyRemoteMessage",value:function(e){var t=e.to,n=e.sequence,r=e.payload,o=e.type,a=e.version,i=void 0===a?0:a,s=e.cloudCustomData,c=t,l=void 0;wt(t)&&(c=Bt(t),l=t);var u=void 0;return Gt(o)&&(u=[]).push({type:o,content:r}),this.request({protocolName:bo,requestData:{groupID:c,topicID:l,sequence:n,version:i,elements:u,cloudCustomData:s}})}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._n,".getRoamingMessage"),r=e.conversationID,o=e.groupID,a=e.sequence,i=new Ia("getGroupRoamingMessages"),s=0,c=void 0;return wt(o)&&(o=Bt(c=o)),this._computeLastSequence({groupID:o,topicID:c,sequence:a}).then((function(e){return s=e,Fe.l("".concat(n," groupID:").concat(o," startSequence:").concat(s)),t.request({protocolName:so,requestData:{groupID:o,count:21,sequence:s,topicID:c}})})).then((function(e){var a=e.data,l=a.messageList,u=a.complete,d=a.invisibleSequenceList,p=void 0===d?[]:d;it(l)?Fe.l("".concat(n," ok. complete:").concat(u," but messageList is undefined!")):Fe.l("".concat(n," ok. complete:").concat(u," count:").concat(l.length));var f=t._getMinSequence(p,l)-1;i.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(o," topicID:").concat(c," startSequence:").concat(s," complete:").concat(u," nextSequence:").concat(f)).end();var h=t.getModule(Vn),m=[];return Kt(l)||(h.updateRoamingMessageSequence(r,f),m=h.onRoamingMessage(l,r),h.updateIsRead(r),h.patchConversationLastMessage(r)),(2===u||f<=1)&&(h.setCompleted(r),f=""),Fe.l("".concat(n," nextReqID:").concat(f,", stored message count:").concat(m.length,", invisible sequence count:").concat(p.length)),{nextReqID:f+"",storedMessageList:m}})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];i.setError(e,r,a).setMessage("groupID:".concat(o," topicID:").concat(c," startSequence:").concat(s)).end()})),Fe.w("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_getGroupIDOfMessage",value:function(e){return e.conversationID.replace(T.CONV_GROUP,"")}},{key:"_getMinSequence",value:function(e,t){var n=0;Kt(t)||(n=t[t.length-1].sequence);var r=0;return Kt(e)||(r=e[e.length-1]),Fe.l("".concat(this._n,"._getMinSequence minVisibleSequence:").concat(n," minInvisibleSequence:").concat(r)),r>0&&r<n?r:n}},{key:"getReadReceiptList",value:function(e){var t=this,n="".concat(this._n,".").concat("getReadReceiptList"),r=this._getGroupIDOfMessage(e[0]),o=this.getMyUserID(),a=e.filter((function(e){return e.from===o&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));if(Fe.l("".concat(n," groupID:").concat(r," sequenceList:").concat(JSON.stringify(a))),0===a.length)return $a({messageList:e});var i=new Ia("getReadReceiptList");return i.setMessage("groupID:".concat(r)),this.request({protocolName:co,requestData:{groupID:r,sequenceList:a}}).then((function(t){i.end(),Fe.l("".concat(n," ok"));var r=t.data.readReceiptList;return at(r)&&r.forEach((function(t){e.forEach((function(e){0===t.code&&t.sequence===e.sequence&&(e.readReceiptInfo.readCount=t.readCount,e.readReceiptInfo.unreadCount=t.unreadCount)}))})),za({messageList:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.w("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"sendReadReceipt",value:function(e){var t=this,n="".concat(this._n,".").concat("sendReadReceipt"),r=this._getGroupIDOfMessage(e[0]),o=new Ia("sendReadReceipt");o.setMessage("groupID:".concat(r));var a=this.getMyUserID(),i=e.filter((function(e){return e.from!==a&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));return 0===i.length?Ja({code:fa.READ_RECEIPT_MESSAGE_LIST_EMPTY}):(Fe.l("".concat(n,". sequenceList:").concat(JSON.stringify(i))),this.request({protocolName:lo,requestData:{groupID:r,sequenceList:i}}).then((function(e){return o.end(),Fe.l("".concat(n," ok")),za()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Fe.w("".concat(n," failed. error:"),e),Ja(e)})))}},{key:"getReadReceiptDetail",value:function(e){var t=this,n=e.message,r=e.filter,o=e.cursor,a=e.count,i=this._getGroupIDOfMessage(n),s=n.ID,c=n.sequence,l="".concat(this._n,".").concat("getReadReceiptDetail"),u=this._receiptDetailCompleteMap.get(s)||!1,d=0!==r&&1!==r?0:r,p=nt(o)?o:"",f=!et(a)||a<=0||a>=100?100:a,h="groupID:".concat(i," sequence:").concat(c," cursor:").concat(p," filter:").concat(d," completeFlag:").concat(u);Fe.l("".concat(l," ").concat(h));var m={cursor:"",isCompleted:!1,messageID:s,unreadUserIDList:[],readUserIDList:[]},v=new Ia("getReadReceiptDetail");return v.setMessage(h),this.request({protocolName:po,requestData:{groupID:i,sequence:c,flag:d,cursor:p,count:f}}).then((function(e){v.end();var n=e.data,r=n.cursor,o=n.isCompleted,a=n.unreadUserIDList,i=n.readUserIDList;return m.cursor=r,1===o&&(m.isCompleted=!0,t._receiptDetailCompleteMap.set(s,!0)),0===d?m.readUserIDList=i.map((function(e){return e.userID})):1===d&&(m.unreadUserIDList=a.map((function(e){return e.userID}))),Fe.l("".concat(l," ok")),za(m)})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];v.setError(e,r,o).end()})),Fe.w("".concat(l," failed. error:"),e),Ja(e)}))}},{key:"getRoamingMessagesHopping",value:function(e){var t=this,n="".concat(this._n,".getRoamingMessagesHopping"),r=new Ia("getGroupRoamingMessagesHopping"),o=e.groupID,a=e.count,i=e.sequence,s=e.direction,c=i;1===s&&(c=i+a-1);var l=void 0;wt(o)&&(o=Bt(l=o));var u="".concat(l?"topicID:".concat(l):"groupID:".concat(o)," sequence:").concat(i," direction:").concat(s);return Fe.l("".concat(n," ").concat(u)),this.request({protocolName:so,requestData:{groupID:o,topicID:l,count:a,sequence:c}}).then((function(o){var a=o.data,c=a.messageList,l=a.complete,d="complete:".concat(l," count:").concat(c?c.length:0);if(Fe.l("".concat(n," ok. ").concat(d)),r.setNetworkType(t.getNetworkType()).setMessage("".concat(u," ").concat(d)).end(),2===l||Kt(c)){var p=t._computeResult();return za(p)}var f="".concat(T.CONV_GROUP).concat(e.groupID),h=t.getModule(Vn).onRoamingMessage(c,f,!1),m=t._computeResult({direction:s,sequence:i,remoteMessageList:c,processedMessageList:h});return za(m)})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),s=n[0],c=n[1];r.setError(e,s,c).setMessage("groupID:".concat(o," sequence:").concat(i," count:").concat(a)).end()})),Fe.w("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_computeResult",value:function(e){var t={messageList:[],isCompleted:!1,nextMessageSeq:""};if(it(e))return t.isCompleted=!0,t;var n=e.direction,r=e.sequence,o=e.remoteMessageList,a=void 0===o?[]:o,i=e.processedMessageList,s=void 0===i?[]:i,c=a.length;return 1===n?(t.nextMessageSeq=a[0].sequence+1,s.forEach((function(e){e.sequence>=r&&t.messageList.push(e)})),0===t.messageList.length&&a[0].sequence<r&&(t.isCompleted=!0,t.nextMessageSeq=""),t):(t.nextMessageSeq=a[c-1].sequence-1,t.messageList=b(s),0===t.nextMessageSeq&&(t.isCompleted=!0,t.nextMessageSeq=""),t)}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,r=e.lastMessageSeq,o="".concat(this._n,".setMessageRead");Fe.l("".concat(o," conversationID:").concat(n," lastMessageSeq:").concat(r)),et(r)||this.outputWarning("DoNotModifyLastSeq");var a=new Ia("setGroupMessageRead");a.setMessage("".concat(n,"-").concat(r));var i=n.replace(T.CONV_GROUP,""),s=void 0;return wt(i)&&(i=Bt(s=i)),this.request({protocolName:ao,requestData:{groupID:i,topicID:s,messageReadSeq:r}}).then((function(){a.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(o," ok."));var e=t.getModule(Vn);e.updateIsReadAfterReadReport({conversationID:n,lastMessageSeq:r});var c=!0;if(!it(s)){c=!1;var l=t.getModule(Un).getLocalTopic(i,s);l&&l.updateSelfInfo({readedSequence:r})}return e.updateUnreadCount(n,c),za()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Fe.l("".concat(o," failed. error:"),e),Ja(e)}))}},{key:"_computeLastSequence",value:function(e){var t=e.groupID,n=e.topicID,r=void 0===n?void 0:n,o=e.sequence;return o>0?Promise.resolve(o):it(r)||this.hasLocalGroup(t)?it(r)?this.getGroupLastSequence(t):this.getTopicLastSequence({groupID:t,topicID:r}):Promise.resolve(0)}},{key:"getGroupLastSequence",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupLastSequence"),r=new Ia("getGroupLastSequence"),o=0,a="";if(this.hasLocalGroup(e)){var i=this.getLocalGroupProfile(e),s=i.lastMessage;if(s.lastSequence>0&&!1===s.onlineOnlyFlag)return o=s.lastSequence,a="got lastSequence:".concat(o," from local group profile[lastMessage.lastSequence]. groupID:").concat(e),Fe.l("".concat(n," ").concat(a)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(a)).end(),Promise.resolve(o);if(i.nextMessageSeq>1)return o=i.nextMessageSeq-1,a="got lastSequence:".concat(o," from local group profile[nextMessageSeq]. groupID:").concat(e),Fe.l("".concat(n," ").concat(a)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(a)).end(),Promise.resolve(o)}var c="GROUP".concat(e),l=this.getModule(Vn).getLocalConversation(c);if(l&&l.lastMessage.lastSequence&&!1===l.lastMessage.onlineOnlyFlag)return o=l.lastMessage.lastSequence,a="got lastSequence:".concat(o," from local conversation profile[lastMessage.lastSequence]. groupID:").concat(e),Fe.l("".concat(n," ").concat(a)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(a)).end(),Promise.resolve(o);var u={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["NextMsgSeq"]}};return this.getGroupProfileAdvance(u).then((function(i){var s=i.data.successGroupList;return Kt(s)?Fe.l("".concat(n," successGroupList is empty. groupID:").concat(e)):(o=s[0].nextMessageSeq-1,a="got lastSequence:".concat(o," from getGroupProfileAdvance. groupID:").concat(e),Fe.l("".concat(n," ").concat(a))),r.setNetworkType(t.getNetworkType()).setMessage("".concat(a)).end(),o})).catch((function(o){return t.probeNetwork().then((function(t){var n=_(t,2),a=n[0],i=n[1];r.setError(o,a,i).setMessage("get lastSequence failed from getGroupProfileAdvance. groupID:".concat(e)).end()})),Fe.w("".concat(n," failed. error:"),o),Ja(o)}))}},{key:"getTopicLastSequence",value:function(e){var t=this,n=e.groupID,r=e.topicID,o="".concat(this._n,".").concat("getTopicLastSequence"),a=new Ia("getTopicLastSequence"),i=0,s="",c=this.getModule(Un);return c.hasLocalTopic(n,r)?(i=c.getLocalTopic(n,r).nextMessageSeq-1,s="get lastSequence:".concat(i," from local topic info[nextMessageSeq]. topicID:").concat(r),Fe.l("".concat(o," ").concat(s)),a.setNetworkType(this.getNetworkType()).setMessage("".concat(s)).end(),Promise.resolve(i)):c.getTopicList({groupID:n,topicIDList:[r]}).then((function(e){var n=e.data.successTopicList;return Kt(n)?Fe.l("".concat(o," successTopicList is empty. topicID:").concat(r)):(i=n[0].nextMessageSeq-1,s="get lastSequence:".concat(i," from getTopicList. topicID:").concat(r),Fe.l("".concat(o," ").concat(s))),a.setNetworkType(t.getNetworkType()).setMessage("".concat(s)).end(),i})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],i=n[1];a.setError(e,o,i).setMessage("get lastSequence failed from getTopicList. topicID:".concat(r)).end()})),Fe.w("".concat(o," failed. error:"),e),Ja(e)}))}},{key:"isMessageFromOrToAVChatroom",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:"hasJoinedAVChatRoom",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.hasJoinedAVChatRoom():0}},{key:"getJoinedAVChatRoom",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.getJoinedAVChatRoom():[]}},{key:"isOnlineMessage",value:function(e,t){return!(!this._canIUseOnlineOnlyFlag(e)||!t||!0!==t.onlineUserOnly)}},{key:"_canIUseOnlineOnlyFlag",value:function(e){var t=this.getJoinedAVChatRoom();return!t||!t.includes(e.to)||e.conversationType!==T.CONV_GROUP}},{key:"_onAVChatRoomHistoryMessage",value:function(e){if(!Kt(e)){Fe.l("".concat(this._n,"._onAVChatRoomHistoryMessage count:").concat(e.length));var t=[];e.forEach((function(e){t.push(n(n({},e),{},{isHistoryMessage:1}))})),this.onAVChatRoomMessage(t)}}},{key:"onAVChatRoomMessage",value:function(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onMessage(e)}},{key:"onAVChatRoomMemberBanned",value:function(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onAVChatRoomMemberBanned(e)}},{key:"getGroupSimplifiedInfo",value:function(e){var t=this,n=new Ia("getGroupSimplifiedInfo"),r={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["Type","Name"]}};return this.getGroupProfileAdvance(r).then((function(r){var o=r.data.successGroupList;return n.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(e," type:").concat(o[0].type)).end(),o[0]})).catch((function(r){t.probeNetwork().then((function(t){var o=_(t,2),a=o[0],i=o[1];n.setError(r,a,i).setMessage("groupID:".concat(e)).end()}))}))}},{key:"setUnjoinedAVChatRoom",value:function(e){this._unjoinedAVChatRoomList.set(e,1)}},{key:"deleteUnjoinedAVChatRoom",value:function(e){this._unjoinedAVChatRoomList.has(e)&&this._unjoinedAVChatRoomList.delete(e)}},{key:"isUnjoinedAVChatRoom",value:function(e){return this._unjoinedAVChatRoomList.has(e)}},{key:"isGroupAttributesUpdatedNotice",value:function(e){return this._groupAttributesHandler.isGroupAttributesUpdatedNotice(e)}},{key:"updateLocalMainSequenceOnReconnected",value:function(){this._groupAttributesHandler.updateLocalMainSequenceOnReconnected()}},{key:"initGroupAttributes",value:function(e){return this._groupAttributesHandler.initGroupAttributes(e)}},{key:"setGroupAttributes",value:function(e){return this._groupAttributesHandler.setGroupAttributes(e)}},{key:"deleteGroupAttributes",value:function(e){return this._groupAttributesHandler.deleteGroupAttributes(e)}},{key:"getGroupAttributes",value:function(e){return this._groupAttributesHandler.getGroupAttributes(e)}},{key:"isMessageFromTopic",value:function(e,t){return 2===e&&!Kt(t)}},{key:"isMessageFromCommunityOfTopic",value:function(e,t){return 2===e&&Kt(t)}},{key:"getMessageExtensions",value:function(e,t){return Fe.l("".concat(this._n,".getMessageExtensions startSequence:").concat(t)),this.request({protocolName:So,requestData:{groupID:e.to,messageSequence:e.sequence,startSequence:t}})}},{key:"modifyMessageExtensions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Fe.l("".concat(this._n,".modifyMessageExtensions operateType:").concat(n)),this.request({protocolName:wo,requestData:{groupID:e.to,messageSequence:e.sequence,extensionList:t,operateType:n}})}},{key:"getGroupNotify",value:function(e){var t=this;if(this.hasLocalGroup(e)){var r=this.getLocalGroupProfile(e),o=r.type,a=r.isSupportTopic;if(!kt(o)&&!a){var i="".concat(this._n,".getGroupNotify"),s=this._getGroupLastRevokedTime(e),c=1e3*Re();Fe.l("".concat(i," groupID:").concat(e," type:").concat(o," beginTime:").concat(s," endTime:").concat(c)),this.request({protocolName:To,requestData:{type:Ct({type:o,groupID:e})?T.GRP_COMMUNITY:void 0,groupID:e,beginTime:s,endTime:c}}).then((function(r){var o=r.data,a=o.nextRevokedTime,s=o.notifyList;Fe.l("".concat(i," ok. groupID:").concat(e," nextRevokedTime:").concat(a));var c={dataList:[{elements:{revokedInfos:[]}}]};at(s)&&s.forEach((function(t){c.dataList[0].elements.revokedInfos.push({groupID:e,sequence:t.sequence,random:t.random,revokerInfo:n({},t.revokerInfo)})})),t.onGroupMessageRevoked(c),0!==a?(t._setGroupLastRevokedTime(e,a),t.getGroupNotify(e)):t._setGroupLastRevokedTime(e,1e3*Re())})).catch((function(e){Fe.e("".concat(i," failed. error:"),e)}))}}}},{key:"_getGroupLastRevokedTime",value:function(e){return this.hasLocalGroup(e)?this.getLocalGroupProfile(e)._lastRevokedTime:0}},{key:"_setGroupLastRevokedTime",value:function(e,t){this.hasLocalGroup(e)&&(this.getLocalGroupProfile(e)._lastRevokedTime=t)}},{key:"isGroupCountersNotice",value:function(e){return this._groupCountersHandler.isGroupCountersNotice(e)}},{key:"setGroupCounters",value:function(e){return this._groupCountersHandler.setGroupCounters(e)}},{key:"increaseGroupCounter",value:function(e){return this._groupCountersHandler.increaseGroupCounter(e)}},{key:"decreaseGroupCounter",value:function(e){return this._groupCountersHandler.decreaseGroupCounter(e)}},{key:"getGroupCounters",value:function(e){return this._groupCountersHandler.getGroupCounters(e)}},{key:"restartPolling",value:function(){this._AVChatRoomHandler&&this._AVChatRoomHandler.restartPolling()}},{key:"_canIUseJoinOption",value:function(e){return function(e){return e===T.GRP_PUBLIC}(e)||Ct({type:e})}},{key:"reset",value:function(){this.groupMap.clear(),this._unjoinedAVChatRoomList.clear(),this._receiptDetailCompleteMap.clear(),this._commonGroupHandler.reset(),this._groupSystemNoticeHandler.reset(),this._groupTipsHandler.reset(),this._groupAttributesHandler.reset(),this._groupCountersHandler.reset(),this._AVChatRoomHandler&&this._AVChatRoomHandler.reset()}}]),r}(sr),Vi=function(){function e(t){o(this,e),this.userID="",this.avatar="",this.nick="",this.role="",this.joinTime="",this.lastSendMsgTime="",this.nameCard="",this.muteUntil=0,this.memberCustomField=[],this._initMember(t)}return i(e,[{key:"_initMember",value:function(e){this.updateMember(e)}},{key:"updateMember",value:function(e){var t=[null,void 0,"",0,NaN];e.memberCustomField&&Mt(this.memberCustomField,e.memberCustomField),pt(this,e,["memberCustomField","marks"],t)}},{key:"updateRole",value:function(e){["Owner","Admin","Member"].indexOf(e)<0||(this.role=e)}},{key:"updateMuteUntil",value:function(e){it(e)||(this.muteUntil=Math.floor((Date.now()+1e3*e)/1e3))}},{key:"updateNameCard",value:function(e){it(e)||(this.nameCard=e)}},{key:"updateMemberCustomField",value:function(e){e&&Mt(this.memberCustomField,e)}}]),e}(),Bi=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="GroupMemberModule",n.groupMemberListMap=new Map,n.getInnerEmitterInstance().on(ti,n._onProfileUpdated,m(n)),n}return i(r,[{key:"_onProfileUpdated",value:function(e){for(var t=this,n=e.data,r=function(e){var r=n[e];t.groupMemberListMap.forEach((function(e){e.has(r.userID)&&e.get(r.userID).updateMember({nick:r.nick,avatar:r.avatar})}))},o=0;o<n.length;o++)r(o)}},{key:"deleteGroupMemberList",value:function(e){this.groupMemberListMap.delete(e)}},{key:"getGroupMemberList",value:function(e){var t=this,n=e.groupID,r=e.offset,o=void 0===r?0:r,a=e.count,i=void 0===a?15:a,s=e.filter,c=void 0===s?void 0:s,l="".concat(this._n,".").concat("getGroupMemberList"),u=this.getModule(Rn),d=u.hasLocalGroup(n);if(Fe.l("".concat(l," groupID:").concat(n," offset:").concat(o," count:").concat(i," hasLocalGroup:").concat(d)),!d)return $a({memberList:[],offset:0});if(u.getLocalGroupProfile(n).type===T.GRP_AVCHATROOM){if(this.canIUse(H.AVCHATROOM_MBR_LIST))return this._getAVChatRoomMemberList({groupID:n,offset:o,filter:c});this.outputWarning("LiveOnlineMember")}var p=new Ia("getGroupMemberList"),f=0,h={groupID:n,limit:i>100?100:i};Ct({groupID:n})?h.next="".concat(o):(h.offset=o,f=o+i);var m=[];return this.request({protocolName:jo,requestData:h}).then((function(e){var r=e.data,o=r.members,a=r.memberNum,i=r.next,s=void 0===i?void 0:i;if(it(s)||(f=Kt(s)?0:s),!at(o)||0===o.length)return f=0,Promise.resolve([]);var c=t.getModule(Rn);return c.hasLocalGroup(n)&&(c.getLocalGroupProfile(n).memberNum=a),m=t._updateLocalGroupMemberMap(n,o),t.getModule(An).getUserProfile({userIDList:o.map((function(e){return e.userID})),tagList:[He.NICK,He.AVATAR]})})).then((function(e){var r=e.data;if(!at(r)||0===r.length)return $a({memberList:[],offset:f});var a=r.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));return t._updateLocalGroupMemberMap(n,a),m.length<i&&(f=0),p.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," offset:").concat(o," count:").concat(i)).end(),Fe.l("".concat(l," ok.")),za({memberList:m,offset:f})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];p.setError(e,r,o).end()})),Fe.e("".concat(l," failed. error:"),e),Ja(e)}))}},{key:"_getAVChatRoomMemberList",value:function(e){var t=this,n=e.groupID,r=e.offset,o=e.filter,a="".concat(this._n,".").concat("_getAVChatRoomMemberList"),i=new Ia("_getAVChatRoomMemberList");return i.setMessage("groupID:".concat(n," offset:").concat(r," filter:").concat(o)),this.request({protocolName:Do,requestData:{groupID:n,offset:r,filter:o}}).then((function(e){var r=e.data,o=r.memberList,s=void 0===o?[]:o,c=r.offset,l=void 0===c?0:c;i.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(a," ok. member count:").concat(s.length,", next request timestamp:").concat(l));var u=t._updateLocalGroupMemberMap(n,s);return za({memberList:u,offset:l})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(a," failed. error:"),e),Ja(e)}))}},{key:"getGroupMemberProfile",value:function(e){var t=this,r="".concat(this._n,".").concat("getGroupMemberProfile"),o=new Ia("getGroupMemberProfile");o.setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)),Fe.l("".concat(r," groupID:").concat(e.groupID," userIDList:").concat(e.userIDList.join(","))),e.userIDList.length>50&&(e.userIDList=e.userIDList.slice(0,50));var a=e.groupID,i=e.userIDList;return this._getGroupMemberProfileAdvance(n(n({},e),{},{userIDList:i})).then((function(e){var n=e.data.members;return at(n)&&0!==n.length?(t._updateLocalGroupMemberMap(a,n),t.getModule(An).getUserProfile({userIDList:n.map((function(e){return e.userID})),tagList:[He.NICK,He.AVATAR]})):$a([])})).then((function(e){var n=e.data.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));t._updateLocalGroupMemberMap(a,n);var r=i.filter((function(e){return t.hasLocalGroupMember(a,e)})).map((function(e){return t.getLocalGroupMemberInfo(a,e)}));return o.setNetworkType(t.getNetworkType()).end(),za({memberList:r})}))}},{key:"addGroupMember",value:function(e){var t=this,n="".concat(this._n,".").concat("addGroupMember"),r=e.groupID,o=this.getModule(Rn).getLocalGroupProfile(r),a=o.type,i=new Ia("addGroupMember");if(i.setMessage("groupID:".concat(r," groupType:").concat(a)),kt(a)){var s=new qa({code:fa.CANNOT_ADD_MEMBER_IN_AVCHATROOM});return i.setError(s,!0,this.getNetworkType()).end(),Ja(s)}return e.userIDList=e.userIDList.map((function(e){return{userID:e}})),Fe.l("".concat(n," groupID:").concat(r)),this.request({protocolName:Ao,requestData:e}).then((function(r){var a=r.data.members;Fe.l("".concat(n," ok"));var s=a.filter((function(e){return 1===e.result})).map((function(e){return e.userID})),c=a.filter((function(e){return 0===e.result})).map((function(e){return e.userID})),l=a.filter((function(e){return 2===e.result})).map((function(e){return e.userID})),u=a.filter((function(e){return 4===e.result})).map((function(e){return e.userID})),d="groupID:".concat(e.groupID,", ")+"successUserIDList:".concat(s,", ")+"failureUserIDList:".concat(c,", ")+"existedUserIDList:".concat(l,", ")+"overLimitUserIDList:".concat(u);return i.setNetworkType(t.getNetworkType()).setMoreMessage(d).end(),0===s.length?za({successUserIDList:s,failureUserIDList:c,existedUserIDList:l,overLimitUserIDList:u}):(o.memberCount+=s.length,t._updateConversationGroupProfile(o),za({successUserIDList:s,failureUserIDList:c,existedUserIDList:l,overLimitUserIDList:u,group:o}))})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"deleteGroupMember",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteGroupMember"),r=e.groupID,o=e.userIDList,a=this.getModule(Rn).getLocalGroupProfile(r);if(it(a))return Ja({code:fa.CANNOT_FIND_GROUP});if(kt(a.type))return this.canIUse(H.AVCHATROOM_BAN_MBR)?this._banAVChatRoomMember(e):Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var i=new Ia("deleteGroupMember"),s="groupID:".concat(r," ").concat(o.length>5?"userIDList.length:".concat(o.length):"userIDList:".concat(o));return i.setMessage(s),Fe.l("".concat(n," groupID:").concat(r," userIDList:"),o),this.request({protocolName:No,requestData:e}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok")),a.memberCount-=1,t._updateConversationGroupProfile(a),t.deleteLocalGroupMembers(r,o),za({group:a,userIDList:o})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_updateConversationGroupProfile",value:function(e){this.getModule(Vn).updateConversationGroupProfile([e])}},{key:"_banAVChatRoomMember",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteGroupMember"),r=e.groupID,o=e.userIDList,a="groupID:".concat(r," ").concat(o.length>5?"userIDList.length:".concat(o.length):"userIDList:".concat(o)),i=new Ia("deleteGroupMember");i.setMessage(a),Fe.l("".concat(n," groupID:").concat(r," userIDList:"),o);var s=this.getModule(Rn).getLocalGroupProfile(r);return it(e.duration)||0===e.duration?Ja({code:fa.BAN_DURATION_INVALID}):this.request({protocolName:Ro,requestData:e}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok")),t.deleteLocalGroupMembers(r,o),za({group:s,userIDList:o})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"setGroupMemberMuteTime",value:function(e){var t=this,n=e.groupID,r=e.userID,o=e.muteTime,a="".concat(this._n,".").concat("setGroupMemberMuteTime");if(r===this.getMyUserID())return Ja(new qa({code:fa.CANNOT_MUTE_SELF}));Fe.l("".concat(a," groupID:").concat(n," userID:").concat(r));var i=new Ia("setGroupMemberMuteTime");return i.setMessage("groupID:".concat(n," userID:").concat(r," muteTime:").concat(o)),this.modifyGroupMemberInfo({groupID:n,userID:r,muteTime:o}).then((function(e){i.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(a," ok"));var r=t.getModule(Rn);return za({group:r.getLocalGroupProfile(n),member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(a," failed. error:"),e),Ja(e)}))}},{key:"setGroupMemberRole",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupMemberRole"),r=e.groupID,o=e.userID,a=e.role,i=this.getModule(Rn).getLocalGroupProfile(r);if(i.selfInfo.role!==T.GRP_MBR_ROLE_OWNER)return Ja({code:fa.NOT_OWNER});if([T.GRP_WORK,T.GRP_AVCHATROOM].includes(i.type))return Ja({code:fa.CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM});var s=[T.GRP_MBR_ROLE_ADMIN,T.GRP_MBR_ROLE_MEMBER];if(Ct({groupID:r})&&s.push(T.GRP_MBR_ROLE_CUSTOM),s.indexOf(a)<0)return Ja({code:fa.INVALID_MEMBER_ROLE});if(o===this.getMyUserID())return Ja({code:fa.CANNOT_SET_SELF_MEMBER_ROLE});var c=new Ia("setGroupMemberRole");return c.setMessage("groupID:".concat(r," userID:").concat(o," role:").concat(a)),Fe.l("".concat(n," groupID:").concat(r," userID:").concat(o)),this.modifyGroupMemberInfo({groupID:r,userID:o,role:a}).then((function(e){return c.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok")),za({group:i,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_filterProfanity",value:function(e,t){var n=this.getModule(rr);if(!n)return!0;var r=n.filterText(t[e],J),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"setGroupMemberNameCard",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupMemberNameCard");if(e.nameCard&&!1===this._filterProfanity("nameCard",e))return Ja({code:fa.PROFANITY_FOUND});var r=e.groupID,o=e.userID,a=void 0===o?this.getMyUserID():o,i=e.nameCard;Fe.l("".concat(n," groupID:").concat(r," userID:").concat(a));var s=new Ia("setGroupMemberNameCard");return s.setMessage("groupID:".concat(r," userID:").concat(a," nameCard:").concat(i)),this.modifyGroupMemberInfo({groupID:r,userID:a,nameCard:i}).then((function(e){Fe.l("".concat(n," ok")),s.setNetworkType(t.getNetworkType()).end();var o=t.getModule(Rn).getLocalGroupProfile(r);return a===t.getMyUserID()&&o&&o.setSelfNameCard(i),za({group:o,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"setGroupMemberCustomField",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupMemberCustomField"),r=e.groupID,o=e.userID,a=void 0===o?this.getMyUserID():o,i=e.memberCustomField;Fe.l("".concat(n," groupID:").concat(r," userID:").concat(a));var s=new Ia("setGroupMemberCustomField");return s.setMessage("groupID:".concat(r," userID:").concat(a," memberCustomField:").concat(JSON.stringify(i))),this.modifyGroupMemberInfo({groupID:r,userID:a,memberCustomField:i}).then((function(e){s.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(n," ok"));var o=t.getModule(Rn).getLocalGroupProfile(r);return za({group:o,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"modifyGroupMemberInfo",value:function(e){var t=this,r=e.groupID,o=e.userID,a=void 0;return wt(r)&&(r=Bt(a=r)),this.request({protocolName:xo,requestData:n(n({},e),{},{groupID:r,topicID:a})}).then((function(){if(t.hasLocalGroupMember(r,o)){var n=t.getLocalGroupMemberInfo(r,o);return it(e.muteTime)||n.updateMuteUntil(e.muteTime),it(e.role)||n.updateRole(e.role),it(e.nameCard)||n.updateNameCard(e.nameCard),it(e.memberCustomField)||n.updateMemberCustomField(e.memberCustomField),n}return t.getGroupMemberProfile({groupID:r,userIDList:[o]}).then((function(e){return _(e.data.memberList,1)[0]}))}))}},{key:"markGroupMemberList",value:function(e){var t=this,n="".concat(this._n,".").concat("markGroupMemberList"),r=e.groupID,o=e.markType,a=e.enableMark,i=e.userIDList,s=void 0===i?[]:i,c="groupID:".concat(r," markType:").concat(o," enableMark:").concat(a," userIDList count: ").concat(s.length);Fe.l("".concat(n," ").concat(c));var l=2,u=[];!0===a&&(l=1);var d=b(s);s.length>500&&(d=s.slice(0,500),Fe.w("".concat(n," ").concat(zt(500)))),d.forEach((function(e){u.push({userID:e,markType:[o]})})),d=null;var p=new Ia("markGroupMemberList");return p.setMessage("".concat(c)),this.request({protocolName:Po,requestData:{groupID:r,operationType:l,memberList:u}}).then((function(e){var r=e.data.memberList,o=void 0===r?[]:r,a=[],i=[];o.length===s.length?a.push.apply(a,b(s)):(o.forEach((function(e){a.push(e.userID)})),s.forEach((function(e){a.includes(e)||i.push(e)})));var c="success count:".concat(a.length," fail count:").concat(i.length);return p.setNetworkType(t.getNetworkType()).setMessage(c).end(),Fe.l("".concat(n," ok. ").concat(c)),za({successUserIDList:a,failureUserIDList:i})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];p.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_getGroupMemberProfileAdvance",value:function(e){return this.request({protocolName:Lo,requestData:n(n({},e),{},{memberInfoFilter:e.memberInfoFilter?e.memberInfoFilter:["Role","JoinTime","NameCard","ShutUpUntil"]})})}},{key:"_updateLocalGroupMemberMap",value:function(e,t){var n=this;return at(t)&&0!==t.length?t.map((function(t){return n.hasLocalGroupMember(e,t.userID)?n.getLocalGroupMemberInfo(e,t.userID).updateMember(t):n.setLocalGroupMember(e,new Vi(t)),n.getLocalGroupMemberInfo(e,t.userID)})):[]}},{key:"deleteLocalGroupMembers",value:function(e,t){var n=this.groupMemberListMap.get(e);n&&t.forEach((function(e){n.delete(e)}))}},{key:"getLocalGroupMemberInfo",value:function(e,t){return this.groupMemberListMap.has(e)?this.groupMemberListMap.get(e).get(t):null}},{key:"setLocalGroupMember",value:function(e,t){if(this.groupMemberListMap.has(e))this.groupMemberListMap.get(e).set(t.userID,t);else{var n=(new Map).set(t.userID,t);this.groupMemberListMap.set(e,n)}}},{key:"getLocalGroupMemberList",value:function(e){return this.groupMemberListMap.get(e)}},{key:"hasLocalGroupMember",value:function(e,t){return this.groupMemberListMap.has(e)&&this.groupMemberListMap.get(e).has(t)}},{key:"hasLocalGroupMemberMap",value:function(e){return this.groupMemberListMap.has(e)}},{key:"reset",value:function(){this.groupMemberListMap.clear()}}]),r}(sr),Fi=["topicID","topicName","avatar","introduction","notification","unreadCount","muteAllMembers","customData","groupAtInfoList","nextMessageSeq","selfInfo"],Gi=function(e,t){return Kt(e)?{lastTime:0,lastSequence:0,fromAccount:"",payload:null,type:"",messageForShow:"",nick:"",version:0,cloudCustomData:"",isRevoked:!1,revoker:null}:{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||"",payload:e.payload||null,type:e.type||"",messageForShow:Ft(e.type,e.payload,t),nick:e.nick||"",version:e.version||0,cloudCustomData:e.cloudCustomData||"",isRevoked:e.isRevoked||!1,revoker:e.revoker||null}},Hi=function(){function e(t,n){o(this,e),this.topicID="",this.topicName="",this.avatar="",this.introduction="",this.notification="",this.unreadCount=0,this.muteAllMembers=!1,this.customData="",this.groupAtInfoList=[],this.nextMessageSeq=0,this.lastMessage=Gi(t.lastMessage,n),this.selfInfo={muteTime:0,readedSequence:0,messageRemindType:"",excludedUnreadSequenceList:void 0},this._initTopic(t)}return i(e,[{key:"_initTopic",value:function(e){for(var t in e)Fi.indexOf(t)<0||("selfInfo"===t?this.updateSelfInfo(e[t]):this[t]="muteAllMembers"===t?1===e[t]:e[t])}},{key:"updateUnreadCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.unreadCount=e}},{key:"updateNextMessageSeq",value:function(e){this.nextMessageSeq=e}},{key:"updateLastMessage",value:function(e){this.lastMessage=Gi(e)}},{key:"updateGroupAtInfoList",value:function(e){this.groupAtInfoList=JSON.parse(JSON.stringify(e))}},{key:"updateTopic",value:function(e){it(e.selfInfo)||this.updateSelfInfo(e.selfInfo),it(e.muteAllMembers)||(this.muteAllMembers=1===e.muteAllMembers),pt(this,e,["groupID","lastMessageTime","selfInfo","muteAllMembers","lastMsg"])}},{key:"updateSelfInfo",value:function(e){return 0!==pt(this.selfInfo,e,[],[""])}},{key:"reduceUnreadCount",value:function(){return this.unreadCount>=1&&(this.unreadCount-=1,!0)}},{key:"isLastMessageRevoked",value:function(e){return e.sequence===this.lastMessage.lastSequence}},{key:"setLastMessageRevoked",value:function(e){this.lastMessage.isRevoked=e}},{key:"setLastMessageRevoker",value:function(e){this.lastMessage.revoker=e}}]),e}(),Yi=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="TopicModule",n._topicMap=new Map,n._getTopicTimeMap=new Map,n.TOPIC_CACHE_TIME=300,n.TOPIC_LAST_ACTIVE_TIME=3600,n.getInnerEmitterInstance().on(ei,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("topic_cache_time"),t=this.getCloudConfig("topic_last_active_time");it(e)||(this.TOPIC_CACHE_TIME=Number(e)),it(t)||(this.TOPIC_LAST_ACTIVE_TIME=Number(t))}},{key:"onTopicCreated",value:function(e){var t=e.groupID;this.resetGetTopicTime(t),this.emitOuterEvent(S.TOPIC_CREATED,e)}},{key:"onTopicDeleted",value:function(e){var t=this,n=e.groupID,r=e.topicIDList;(void 0===r?[]:r).forEach((function(e){t._deleteLocalTopic(n,e)})),this.emitOuterEvent(S.TOPIC_DELETED,e)}},{key:"onTopicMessageRemindTypeUpdated",value:function(e){var t=e.groupID,n=e.topicID,r=e.messageRemindType,o=this.getLocalTopic(t,n);if(o){var a=o.updateSelfInfo({messageRemindType:r});a&&this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:t,topic:o}),Fe.d("".concat(this._n,".onTopicMessageRemindTypeUpdated topicID:").concat(n)+" messageRemindType:".concat(r," isTopicUpdated:").concat(a))}}},{key:"onTopicProfileUpdated",value:function(e){var t=e.groupID,n=e.topicID,r=this.getLocalTopic(t,n);r&&(r.updateTopic(e),this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:t,topic:r}))}},{key:"onConversationProxy",value:function(e){var t=e.topicID,n=e.unreadCount,r=e.groupAtInfoList,o=Bt(t),a=this.getLocalTopic(o,t),i=!1;a&&(it(n)||a.unreadCount===n||(a.updateUnreadCount(n),i=!0),it(r)||(a.updateGroupAtInfoList(r),i=!0)),i&&this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:o,topic:a})}},{key:"onMessageSent",value:function(e){var t=e.groupID,n=e.topicID,r=e.lastMessage,o=this.getLocalTopic(t,n);o&&(o.nextMessageSeq+=1,o.updateLastMessage(r),this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:t,topic:o}))}},{key:"onMessageModified",value:function(e){var t=e.to,n=e.time,r=e.sequence,o=e.elements,a=e.cloudCustomData,i=e.messageVersion,s=Bt(t),c=this.getLocalTopic(s,t);if(c){var l=c.lastMessage;Fe.d("".concat(this._n,".onMessageModified topicID:").concat(t," lastMessage:"),JSON.stringify(l),"options:",JSON.stringify(e)),l&&(null===l.payload||l.lastTime===n&&l.lastSequence===r&&l.version!==i)&&(l.type=o[0].type,l.payload=o[0].content,l.messageForShow=Ft(l.type,l.payload,this.isIntl()),l.cloudCustomData=a,l.version=i,l.lastSequence=r,l.lastTime=n,this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:s,topic:c}))}}},{key:"onMessageRevoked",value:function(e){var t=this;if(0!==e.length){var n=null,r=null,o=!1;e.forEach((function(e){var a=e.to;r=Bt(a),(n=t.getLocalTopic(r,a))&&(n.reduceUnreadCount()&&(o=!0),n.isLastMessageRevoked(e)&&(n.setLastMessageRevoked(!0),n.setLastMessageRevoker(e.revoker),o=!0))})),o&&this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:r,topic:n})}}},{key:"isLastMessageRevoked",value:function(e){var t=e.topicID,n=e.sequence,r=Bt(t),o=this.getLocalTopic(r,t),a=!1;return o&&(a=o.isLastMessageRevoked({sequence:n})),a}},{key:"getJoinedCommunityList",value:function(){return this.getModule(Rn).getGroupList({isGroupWithTopicOnly:!0}).then((function(e){var t=e.data.groupList;return za({groupList:void 0===t?[]:t})})).catch((function(e){return Ja(e)}))}},{key:"createTopicInCommunity",value:function(e){var t=this,r="".concat(this._n,".").concat("createTopicInCommunity"),o=e.topicID;if(!it(o)&&!wt(o))return Ja({code:fa.ILLEGAL_TOPIC_ID});if(e.topicName&&!1===this._filterProfanity("topicName",e))return Ja({code:fa.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return Ja({code:fa.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return Ja({code:fa.PROFANITY_FOUND});var a=new Ia("createTopicInCommunity");return this.request({protocolName:ea,requestData:n({},e)}).then((function(o){var i=o.data.topicID;return a.setMessage("topicID:".concat(i)).setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(r," ok")),t._updateTopicMap([n(n({},e),{},{topicID:i})]),za({topicID:i})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}},{key:"deleteTopicFromCommunity",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteTopicFromCommunity"),r=e.groupID,o=e.topicIDList,a=void 0===o?[]:o,i=new Ia("deleteTopicFromCommunity");return i.setMessage("groupID:".concat(r," topicIDList:").concat(a)),this.request({protocolName:ta,requestData:{groupID:r,topicIDList:a}}).then((function(e){var n=e.data.resultList,o=[],a=[];(void 0===n?[]:n).forEach((function(e){var t=e.topicID,n=e.errorCode,r=e.errorInfo;0===n?o.push({topicID:t}):a.push({topicID:t,code:n,message:r})}));var s="success count:".concat(o.length,", fail count:").concat(a.length);return i.setMoreMessage("".concat(s)).setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(s)),o.forEach((function(e){t._deleteLocalTopic(r,e.topicID)})),za({successTopicList:o,failureTopicList:a})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"updateTopicProfile",value:function(e){var t=this,r="".concat(this._n,".").concat("updateTopicProfile");if(Fe.l("".concat(r," options:"),e),e.topicName&&!1===this._filterProfanity("topicName",e))return Ja({code:fa.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return Ja({code:fa.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return Ja({code:fa.PROFANITY_FOUND});var o=new Ia("updateTopicProfile");return o.setMessage("groupID:".concat(e.groupID," topicID:").concat(e.topicID)),it(e.muteAllMembers)||(e.muteAllMembers=!0===e.muteAllMembers?"On":"Off"),this.request({protocolName:na,requestData:n({},e)}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Fe.l("".concat(r," ok")),t._updateTopicMap([e]),za({topic:t.getLocalTopic(e.groupID,e.topicID)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}},{key:"getTopicList",value:function(e){var t=this,r="".concat(this._n,".").concat("getTopicList"),o=e.groupID,a=e.topicIDList,i=void 0===a?[]:a,s=0===i.length,c=new Ia("getTopicList");if(c.setMessage("groupID:".concat(o)),this._getTopicTimeMap.has(o)){var l=this._getTopicTimeMap.get(o),u=l.isGetAll,d=l.time;if((u||!u&&!s)&&Date.now()-d<1e3*this.TOPIC_CACHE_TIME){var p=this._getLocalTopicList(o,i);if(s||p.length===i.length)return c.setNetworkType(this.getNetworkType()).setMoreMessage("from cache, topic count:".concat(p.length)).end(),Fe.l("".concat(r," groupID:").concat(o," from cache, topic count:").concat(p.length)),$a({successTopicList:p,failureTopicList:[]})}}return this.request({protocolName:ra,requestData:{groupID:o,topicIDList:i}}).then((function(e){var a=e.data.topicInfoList,i=[],l=[],u=[];(void 0===a?[]:a).forEach((function(e){var t=e.topic,r=e.selfInfo,o=e.errorCode,a=e.errorInfo,s=t.topicID;0===o?(i.push(n(n({},t),{},{selfInfo:r})),l.push(s)):u.push({topicID:s,code:o,message:a})})),t._updateTopicMap(i),t._handleTopicAtInfo(i);var d="success count:".concat(l.length,", fail count:").concat(u.length);c.setNetworkType(t.getNetworkType()).setMoreMessage("".concat(d)).end(),Fe.l("".concat(r," groupID:").concat(o," from remote, ").concat(d));var p=[];return Kt(l)||(t._getTopicTimeMap.set(o,{time:Date.now(),isGetAll:s}),p=t._getLocalTopicList(o,l)),za({successTopicList:p,failureTopicList:u})})).catch((function(e){return t.probeNetwork(e).then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}},{key:"hasLocalTopic",value:function(e,t){return!!this._topicMap.has(e)&&this._topicMap.get(e).has(t)}},{key:"getLocalTopic",value:function(e,t){var n=null;return this._topicMap.has(e)&&(n=this._topicMap.get(e).get(t)),n}},{key:"_getLocalTopicList",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this._topicMap.get(e),r=[];return n&&(r=b(n.values())),0===t.length?r:r.filter((function(e){return t.includes(e.topicID)}))}},{key:"_deleteLocalTopic",value:function(e,t){this._topicMap.has(e)&&(this._topicMap.get(e).delete(t),Fe.l("".concat(this._n,"._deleteLocalTopic groupID:").concat(e," topicID:").concat(t)))}},{key:"_updateTopicMap",value:function(e){var t=this,n=[];e.forEach((function(e){var r=e.groupID,o=e.topicID,a=null;t._topicMap.has(r)||t._topicMap.set(r,new Map),t._topicMap.get(r).has(o)?(a=t._topicMap.get(r).get(o)).updateTopic(e):(t._getTopicLastMessage(e),a=new Hi(e,t.isIntl()),t._topicMap.get(r).set(o,a));var i=t._computeUnreadCount(a);a.updateUnreadCount(i),n.push({conversationID:"".concat(T.CONV_GROUP).concat(o),type:T.CONV_TOPIC,unreadCount:i})})),n.length>0&&this.getModule(Vn).updateTopicConversation(n)}},{key:"resetGetTopicTime",value:function(e){var t=this;it(e)?b(this._getTopicTimeMap.keys()).forEach((function(e){t._getTopicTimeMap.set(e,0)})):this._getTopicTimeMap.set(e,0)}},{key:"getTopicListOnReconnected",value:function(){var e=this,t=b(this._topicMap.keys()),n=[];t.forEach((function(t){var r=[];e._getLocalTopicList(t).forEach((function(t){var n=t.lastMessage.lastTime,o=void 0===n?0:n;Date.now()-1e3*o<1e3*e.TOPIC_LAST_ACTIVE_TIME&&r.push(t.topicID)})),r.length>0&&n.push({groupID:t,topicIDList:r})})),Fe.l("".concat(this._n,".getTopicListOnReconnected. active community count:").concat(n.length)),this._relayGetTopicList(n)}},{key:"_relayGetTopicList",value:function(e){var t=this;if(0!==e.length){var n=e.shift(),r=n.topicIDList.length>5?"topicIDList.length:".concat(n.topicIDList.length):"topicIDList:".concat(n.topicIDList),o=new Ia("relayGetTopicList");o.setMessage(r),Fe.l("".concat(this._n,"._relayGetTopicList. ").concat(r)),this.getTopicList(n).then((function(){o.setNetworkType(t.getNetworkType()).end(),t._relayGetTopicList(e)})).catch((function(n){t.probeNetwork().then((function(e){var t=_(e,2),r=t[0],a=t[1];o.setError(n,r,a).end()})),t._relayGetTopicList(e)}))}}},{key:"_handleTopicAtInfo",value:function(e){var t=this;0!==e.length&&e.forEach((function(e){var r=e.groupID,o=e.topicID,a=e.groupAtInfoList,i=[];it(a)||(a.forEach((function(e){i.push(n(n({},e),{},{groupID:r,topicID:o}))})),t.getModule(Vn).onNewGroupAtTips({dataList:i}))}))}},{key:"_getTopicLastMessage",value:function(e){if(!it(e.lastMsg)){var t={time:e.lastMsg.time,sequence:e.lastMsg.sequence,from:e.lastMsg.from,payload:e.lastMsg.elements[0]?e.lastMsg.elements[0].content:null,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:"",nick:e.lastMsg.nick,version:e.lastMsg.messageVersion,cloudCustomData:e.lastMsg.cloudCustomData,isRevoked:2===e.lastMsg.isPlaceMessage,revoker:Kt(e.lastMsg.revokerInfo)?null:e.lastMsg.revokerInfo.revoker};e.lastMessage=t}}},{key:"deleteTopicListInCommunity",value:function(e){var t=this,n=this._getLocalTopicList(e),r=this.getModule(Vn);n.forEach((function(n){var o=n.topicID;t._deleteLocalTopic(e,o),t._getTopicTimeMap.delete(e),r.deleteLocalConversation("".concat(T.CONV_GROUP).concat(o))}))}},{key:"_computeUnreadCount",value:function(e){var t=e.selfInfo,n=t.excludedUnreadSequenceList,r=t.readedSequence,o=e.nextMessageSeq-e.selfInfo.readedSequence-1;if(at(n)){var a=0;n.forEach((function(t){t>=r&&t<=e.nextMessageSeq-1&&(a+=1)})),a>=1&&(o-=a)}return o<0?0:o}},{key:"_filterProfanity",value:function(e,t){var n=this.getModule(rr);if(!n)return!0;var r=n.filterText(t[e],$),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"updateLastMessage",value:function(e,t){var n=Bt(e),r=this.getLocalTopic(n,e);if(r){var o=t.sequence+1;r.updateNextMessageSeq(o),r.updateLastMessage(t),this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:n,topic:r})}}},{key:"getMessageExtensions",value:function(e,t){Fe.l("".concat(this._n,".getMessageExtensions startSequence:").concat(t));var n=Bt(e.to);return this.request({protocolName:So,requestData:{groupID:n,topicID:e.to,messageSequence:e.sequence,startSequence:t}})}},{key:"modifyMessageExtensions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;Fe.l("".concat(this._n,".modifyMessageExtensions operateType:").concat(n));var r=Bt(e.to);return this.request({protocolName:wo,requestData:{groupID:r,topicID:e.to,messageSequence:e.sequence,extensionList:t,operateType:n}})}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._topicMap.clear(),this._getTopicTimeMap.clear(),this.TOPIC_CACHE_TIME=300,this.TOPIC_LAST_ACTIVE_TIME=3600}}]),r}(sr),zi=function(){function e(t){o(this,e),this._userModule=t,this._n="ProfileHandler",this.TAG="profile",this.accountProfileMap=new Map,this.expirationTime=864e5}return i(e,[{key:"setExpirationTime",value:function(e){this.expirationTime=e}},{key:"getUserProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("getUserProfile"),r=e.userIDList;e.fromAccount=this._userModule.getMyAccount(),r.length>100&&(Fe.w("".concat(n," ").concat(zt(100))),r.length=100);for(var o,a=[],i=[],s=0,c=r.length;s<c;s++)o=r[s],this._userModule.isMyFriend(o)&&this._contains(o)?i.push(this._getProfileFromMap(o)):a.push(o);if(0===a.length)return $a(i);e.toAccount=a;var l=e.bFromGetMyProfile||!1,u=[];e.toAccount.forEach((function(e){u.push({toAccount:e,standardSequence:0,customSequence:0})})),e.userItem=u;var d=new Ia("getUserProfile");return d.setMessage(r.length>5?"userIDList.length:".concat(r.length):"userIDList:".concat(r)),this._userModule.request({protocolName:vr,requestData:e}).then((function(e){d.setNetworkType(t._userModule.getNetworkType()).end(),Fe.i("".concat(n," ok"));var r=t._handleResponse(e).concat(i);return za(l?r[0]:r)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];d.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"getMyProfile",value:function(){var e=this._userModule.getMyAccount(),t="".concat(this._n,".getMyProfile");if(Fe.l("".concat(t," myAccount:").concat(e)),this._fill(),this._contains(e)){var n=this._getProfileFromMap(e);return Fe.d("".concat(t," from cache, myProfile:").concat(JSON.stringify(n))),$a(n)}return this.getUserProfile({fromAccount:e,userIDList:[e],bFromGetMyProfile:!0})}},{key:"_handleResponse",value:function(e){var t=e.data.userProfileItem;if(!at(t))return[];for(var n=[],r=Date.now(),o=0,a=t.length;o<a;o++){var i=t[o],s=i.to,c=i.profileItem;if("@TLS#NOT_FOUND"!==s&&""!==s){var l=this._update(s,this._getLatestProfileFromResponse(s,c)).latestProfile;n.push(l)}}return Fe.l("".concat(this._n,"._handleResponse cost ").concat(Date.now()-r," ms")),n}},{key:"_getLatestProfileFromResponse",value:function(e,t){var n={userID:e,profileCustomField:[]};if(!Kt(t))for(var r=0,o=t.length;r<o;r++)if(t[r].tag.indexOf("Tag_Profile_Custom")>-1)n.profileCustomField.push({key:t[r].tag,value:t[r].value});else switch(t[r].tag){case He.NICK:n.nick=t[r].value;break;case He.GENDER:n.gender=t[r].value;break;case He.BIRTHDAY:n.birthday=t[r].value;break;case He.LOCATION:n.location=t[r].value;break;case He.SELFSIGNATURE:n.selfSignature=t[r].value;break;case He.ALLOWTYPE:n.allowType=t[r].value;break;case He.LANGUAGE:n.language=t[r].value;break;case He.AVATAR:n.avatar=t[r].value;break;case He.MESSAGESETTINGS:n.messageSettings=t[r].value;break;case He.ADMINFORBIDTYPE:n.adminForbidType=t[r].value;break;case He.LEVEL:n.level=t[r].value;break;case He.ROLE:n.role=t[r].value;break;default:Fe.w("".concat(this._n,"._getLatestProfileFromResponse unknown tag:"),t[r].tag,t[r].value)}return n}},{key:"updateMyProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("updateMyProfile");if(e.nick&&!1===this._userModule.filterProfanity("nick",e))return Ja({code:fa.PROFANITY_FOUND});if(e.selfSignature&&!1===this._userModule.filterProfanity("selfSignature",e))return Ja({code:fa.PROFANITY_FOUND});var r=new Ia("updateMyProfile");r.setMessage(JSON.stringify(e));var o=(new li).validate(e);if(!o.valid)return r.setCode(fa.UPDATE_PROFILE_INVALID_PARAM).setMoreMessage("info:".concat(o.tips)).setNetworkType(this._userModule.getNetworkType()).end(),Fe.e("".concat(n," info:").concat(o.tips)),Ja({code:fa.UPDATE_PROFILE_INVALID_PARAM});var a=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&("profileCustomField"===i?e.profileCustomField.forEach((function(e){a.push({tag:e.key,value:e.value})})):a.push({tag:He[i.toUpperCase()],value:e[i]}));if(0===a.length){var s=new qa({code:fa.UPDATE_PROFILE_NO_KEY});return r.setError(s,!0,this._userModule.getNetworkType()).end(),Fe.e("".concat(n," failed. error:"),s),Ja(s)}var c=this._userModule.getMyAccount();return this._userModule.request({protocolName:gr,requestData:{fromAccount:c,profileItem:a}}).then((function(o){r.setNetworkType(t._userModule.getNetworkType()).end(),Fe.i("".concat(n," ok"));var a=t._update(c,e),i=a.isProfileUpdated,s=a.latestProfile;return!0===i&&t._userModule.emitOuterEvent(S.PROFILE_UPDATED,[s]),$a(s)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"onProfileModified",value:function(e){var t=e.dataList;if(!Kt(t)){var n,r=t.length;Fe.d("".concat(this._n,".onProfileModified count:").concat(r," dataList:"),e.dataList);for(var o=[],a=0;a<r;a++){n=t[a].userID;var i=this._update(n,this._getLatestProfileFromResponse(n,t[a].profileList)),s=i.isProfileUpdated,c=i.latestProfile;!0===s&&o.push(c)}o.length>0&&(this._userModule.emitInnerEvent(ti,o),this._userModule.emitOuterEvent(S.PROFILE_UPDATED,o))}}},{key:"_fill",value:function(){if(0===this.accountProfileMap.size){for(var e=this._getCachedProfiles(),t=Date.now(),n=0,r=e.length;n<r;n++)t-e[n].lastUpdatedTime<this.expirationTime&&this.accountProfileMap.set(e[n].userID,e[n]);Fe.l("".concat(this._n,"._fill from cache, size:").concat(this.accountProfileMap.size))}}},{key:"_update",value:function(e,t){var n,r=!1,o=Date.now();return this._contains(e)?(n=this._getProfileFromMap(e),t.profileCustomField&&!0===Mt(n.profileCustomField,t.profileCustomField)&&(n.lastUpdatedTime=o,r=!0),pt(n,t,["profileCustomField"])>0&&(n.lastUpdatedTime=o,r=!0)):(n=new li(t),(this._userModule.isMyFriend(e)||e===this._userModule.getMyAccount())&&(n.lastUpdatedTime=o,r=!0,this.accountProfileMap.set(e,n))),this._flush(e===this._userModule.getMyAccount()),Fe.l("".concat(this._n,"._update account:").concat(e," isProfileUpdated:").concat(r)),{isProfileUpdated:r,latestProfile:n}}},{key:"_flush",value:function(e){var t=b(this.accountProfileMap.values()),n=this._userModule.getStorageModule();Fe.d("".concat(this._n,"._flush length:").concat(t.length," flushAtOnce:").concat(e)),n.setItem(this.TAG,t,e)}},{key:"_contains",value:function(e){return this.accountProfileMap.has(e)}},{key:"_getProfileFromMap",value:function(e){return this.accountProfileMap.get(e)}},{key:"_getCachedProfiles",value:function(){var e=this._userModule.getStorageModule().getItem(this.TAG);return Kt(e)?[]:e}},{key:"onConversationsProfileUpdated",value:function(e){for(var t,n,r,o=[],a=0,i=e.length;a<i;a++)n=(t=e[a]).userID,this._userModule.isMyFriend(n)||(this._contains(n)?(r=this._getProfileFromMap(n),pt(r,t)>0&&o.push(n)):o.push(t.userID));0!==o.length&&(Fe.i("".concat(this._n,".onConversationsProfileUpdated toAccountList:").concat(o)),this.getUserProfile({userIDList:o}))}},{key:"getNickAndAvatarByUserID",value:function(e){if(this._contains(e)){var t=this._getProfileFromMap(e);return{nick:t.nick,avatar:t.avatar}}return{nick:"",avatar:""}}},{key:"reset",value:function(){this._flush(!0),this.accountProfileMap.clear()}}]),e}(),qi=i((function e(t){o(this,e),Kt||(this.userID=t.userID||"",this.timeStamp=t.timeStamp||0)})),Wi=function(){function e(t){o(this,e),this._userModule=t,this._n="BlacklistHandler",this._blacklistMap=new Map,this.startIndex=0,this.maxLimited=100,this.currentSequence=0}return i(e,[{key:"getLocalBlacklist",value:function(){return b(this._blacklistMap.keys())}},{key:"getBlacklist",value:function(){var e=this,t="".concat(this._n,".getBlacklist"),n={fromAccount:this._userModule.getMyAccount(),maxLimited:this.maxLimited,startIndex:0,lastSequence:this.currentSequence},r=new Ia("getBlacklist");return this._userModule.request({protocolName:_r,requestData:n}).then((function(n){var o=n.data,a=o.blackListItem,i=o.currentSequence,s=Kt(a)?0:a.length;r.setNetworkType(e._userModule.getNetworkType()).setMessage("count:".concat(s)).end(),Fe.i("".concat(t," ok")),e.currentSequence=i,e._handleResponse(a,!0),e._userModule.emitOuterEvent(S.BLACKLIST_UPDATED,b(e._blacklistMap.keys()))})).catch((function(n){return e._userModule.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];r.setError(n,o,a).end()})),Fe.e("".concat(t," failed. error:"),n),Ja(n)}))}},{key:"addBlacklist",value:function(e){var t=this,n=new Ia("addToBlacklist"),r="".concat(this._n,".addBlacklist"),o=this._userModule.getMyAccount();if(1===e.userIDList.length&&e.userIDList[0]===o){var a=fa.CANNOT_ADD_SELF_TO_BLACKLIST,i=this._userModule.getErrorMessage(a);n.setCode(a).setMessage(i).setNetworkType(this._userModule.getNetworkType()).end();var s=new qa({code:a});return Fe.e("".concat(r," failed. error:"),s),Ja(s)}return e.userIDList.includes(o)&&(e.userIDList=e.userIDList.filter((function(e){return e!==o}))),e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:br,requestData:e}).then((function(o){return n.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),Fe.i("".concat(r," ok")),t._handleResponse(o.resultItem,!0),za(b(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var r=_(t,2),o=r[0],a=r[1];n.setError(e,o,a).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}},{key:"_handleResponse",value:function(e,t){if(!Kt(e))for(var n,r,o,a=0,i=e.length;a<i;a++)r=e[a].to,o=e[a].resultCode,(it(o)||0===o)&&(t?((n=this._blacklistMap.has(r)?this._blacklistMap.get(r):new qi).userID=r,!Kt(e[a].addBlackTimeStamp)&&(n.timeStamp=e[a].addBlackTimeStamp),this._blacklistMap.set(r,n)):this._blacklistMap.has(r)&&(n=this._blacklistMap.get(r),this._blacklistMap.delete(r)));Fe.l("".concat(this._n,"._handleResponse total:").concat(this._blacklistMap.size," bAdd:").concat(t))}},{key:"deleteBlacklist",value:function(e){var t=this,n="".concat(this._n,".deleteBlacklist"),r=new Ia("removeFromBlacklist");return e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:yr,requestData:e}).then((function(o){return r.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),Fe.i("".concat(n," ok")),t._handleResponse(o.data.resultItem,!1),za(b(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"onAccountDeleted",value:function(e){for(var t,n=[],r=0,o=e.length;r<o;r++)t=e[r],this._blacklistMap.has(t)&&(this._blacklistMap.delete(t),n.push(t));n.length>0&&(Fe.l("".concat(this._n,".onAccountDeleted count:").concat(n.length," userIDList:"),n),this._userModule.emitOuterEvent(S.BLACKLIST_UPDATED,b(this._blacklistMap.keys())))}},{key:"onAccountAdded",value:function(e){for(var t,n=[],r=0,o=e.length;r<o;r++)t=e[r],this._blacklistMap.has(t)||(this._blacklistMap.set(t,new qi({userID:t})),n.push(t));n.length>0&&(Fe.l("".concat(this._n,".onAccountAdded count:").concat(n.length," userIDList:"),n),this._userModule.emitOuterEvent(S.BLACKLIST_UPDATED,b(this._blacklistMap.keys())))}},{key:"reset",value:function(){this._blacklistMap.clear(),this.startIndex=0,this.maxLimited=100,this.currentSequence=0}}]),e}(),Ki=function(e){var t=String(e).replace(/[=]+$/,""),n="";if(t.length%4==1)return"";for(var r,o,a=0,i=0;o=t.charAt(i++);~o&&(r=a%4?64*r+o:o,a++%4)?n+=String.fromCharCode(255&r>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);try{return decodeURIComponent(escape(n))}catch(c){return""}},$i=function(){function e(t){o(this,e),this._userModule=t,this._n="UserStatusHandler",this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100,this._userModule.getInnerEmitterInstance().on(ei,this._onCloudConfigUpdated,this)}return i(e,[{key:"_onCloudConfigUpdated",value:function(){var e=this._userModule.getCloudConfig("status_query_count"),t=this._userModule.getCloudConfig("status_sub_count"),n=this._userModule.getCloudConfig("status_unsub_count");Fe.l("".concat(this._n,"._onCloudConfigUpdated statusQueryCount:").concat(e," statusSubscribeCount:").concat(t)+" statusUnsubscribeCount:".concat(n)),it(e)||(this.MAX_QUERY_USER_COUNT=parseInt(e,10)),it(e)||(this.MAX_SUBSCRIBE_USER_COUNT=parseInt(t,10)),it(e)||(this.MAX_UNSUBSCRIBE_USER_COUNT=parseInt(n,10))}},{key:"onUserStatusUpdated",value:function(e){var t=e.dataList,n=this._userModule.getMyUserID(),r=this._userModule.getModule(Bn),o=t.map((function(e){var t=e.to,o=e.statusType,a=e.customStatus,i=Ki(a);return t===n&&r.setCustomStatus(i),{userID:t,statusType:o,customStatus:i}}));this._userModule.emitOuterEvent(S.USER_STATUS_UPDATED,o)}},{key:"setSelfStatus",value:function(e){var t=this,n="".concat(this._n,".setSelfStatus");if(!1===this._userModule.filterProfanity("customStatus",e))return Ja({code:fa.PROFANITY_FOUND});var r=new Ia("setSelfStatus"),o=e.customStatus;return this._userModule.request({protocolName:oa,requestData:{customStatus:o}}).then((function(e){return r.setNetworkType(t._userModule.getNetworkType()).setMessage("customStatus:".concat(o)).end(),Fe.l("".concat(n," ok. customStatus:").concat(o)),t._userModule.getModule(Bn).setCustomStatus(o),za({userID:t._userModule.getMyUserID(),statusType:1,customStatus:o})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"getUserStatus",value:function(e){var t=this,n="".concat(this._n,".getUserStatus"),r=e.userIDList,o=void 0===r?[]:r,a=this._userModule.getMyUserID(),i=b(o),s=void 0,c=i.indexOf(a);if(c>-1){i.splice(c,1);var l=this._userModule.getModule(Bn).getCustomStatus();s={userID:a,statusType:1,customStatus:l}}if(0===i.length)return $a({successUserList:[s],failureUserList:[]});if(!this._userModule.canIUse(H.USER_STATUS))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});i.length>this.MAX_QUERY_USER_COUNT&&(Fe.w("".concat(n," ").concat(zt(this.MAX_QUERY_USER_COUNT))),i=o.slice(0,this.MAX_QUERY_USER_COUNT));var u=new Ia("getUserStatus");return this._userModule.request({protocolName:aa,requestData:{userIDList:i}}).then((function(e){var r=e.data,a=r.successUserList,i=void 0===a?[]:a,c=r.failureUserList,l=void 0===c?[]:c,d=i.map((function(e){var t=e.userID,n=e.statusType,r=e.customStatus;return{userID:t,statusType:n,customStatus:Ki(r)}})),p=l.map((function(e){var t=e.userID,n=e.invalidUserID,r=e.errorCode,o=e.errorInfo;return{userID:Kt(n)?t:n,code:r,message:o}}));it(s)||d.unshift(s);var f="userID count:".concat(o.length,", success count:").concat(d.length,", fail count:").concat(p.length);return u.setNetworkType(t._userModule.getNetworkType()).setMessage("".concat(f)).end(),Fe.l("".concat(n," ok. ").concat(f,".")),za({successUserList:d,failureUserList:p})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];u.setMessage("userID count:".concat(o.length)).setError(e,r,a).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"subscribeUserStatus",value:function(e){var t=this;if(!this._userModule.canIUse(H.USER_STATUS))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".subscribeUserStatus"),r=e.userIDList,o=void 0===r?[]:r,a=b(o);a.length>this.MAX_SUBSCRIBE_USER_COUNT&&(Fe.w("".concat(n," ").concat(zt(this.MAX_SUBSCRIBE_USER_COUNT))),a=o.slice(0,this.MAX_SUBSCRIBE_USER_COUNT));var i=new Ia("subscribeUserStatus"),s="userID count:".concat(o.length);return Fe.l("".concat(n," ").concat(s)),this._userModule.request({protocolName:ia,requestData:{userIDList:a}}).then((function(e){var r=e.data.failureUserList,o=(void 0===r?[]:r).map((function(e){var t=e.userID,n=e.invalidUserID,r=e.errorCode,o=e.errorInfo;return{userID:Kt(n)?t:n,code:r,message:o}}));return i.setNetworkType(t._userModule.getNetworkType()).setMessage("".concat(s," fail count:").concat(o.length)).end(),Fe.l("".concat(n," ok. fail count:").concat(o.length,".")),za({failureUserList:o})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setMessage("".concat(s)).setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"unsubscribeUserStatus",value:function(e){var t=this;if(!this._userModule.canIUse(H.USER_STATUS))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".unsubscribeUserStatus"),r=(e||{}).userIDList,o=void 0===r?[]:r,a=b(o);o.length>this.MAX_UNSUBSCRIBE_USER_COUNT&&(Fe.w("".concat(n," ").concat(zt(this.MAX_UNSUBSCRIBE_USER_COUNT))),a=o.slice(0,this.MAX_UNSUBSCRIBE_USER_COUNT));var i=new Ia("unsubscribeUserStatus"),s="userID count:".concat(o.length);Fe.l("".concat(n," ").concat(s));var c={userIDList:a};return 0===a.length&&(c.userIDList=void 0,c.unsubscribeAll=1),this._userModule.request({protocolName:sa,requestData:c}).then((function(e){var r=e.data.failureUserList,o=(void 0===r?[]:r).map((function(e){var t=e.userID,n=e.invalidUserID,r=e.errorCode,o=e.errorInfo;return{userID:Kt(n)?t:n,code:r,message:o}}));return i.setNetworkType(t._userModule.getNetworkType()).setMessage("".concat(s," fail count:").concat(o.length)).end(),Fe.l("".concat(n," ok. fail count:").concat(o.length,".")),za({failureUserList:o})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setMessage("".concat(s)).setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"reset",value:function(){this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100}}]),e}(),Ji=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="UserModule",r._profileHandler=new zi(m(r)),r._blacklistHandler=new Wi(m(r)),r._userStatusHandler=new $i(m(r)),r.getInnerEmitterInstance().on(Za,r.onContextUpdated,m(r)),r}return i(n,[{key:"onContextUpdated",value:function(e){this._profileHandler.getMyProfile(),this._blacklistHandler.getBlacklist()}},{key:"onProfileModified",value:function(e){this._profileHandler.onProfileModified(e)}},{key:"onRelationChainModified",value:function(e){var t=e.dataList;if(!Kt(t)){var n=[];t.forEach((function(e){e.blackListDelAccount&&n.push.apply(n,b(e.blackListDelAccount))})),n.length>0&&this._blacklistHandler.onAccountDeleted(n);var r=[];t.forEach((function(e){e.blackListAddAccount&&r.push.apply(r,b(e.blackListAddAccount))})),r.length>0&&this._blacklistHandler.onAccountAdded(r)}}},{key:"onConversationsProfileUpdated",value:function(e){this._profileHandler.onConversationsProfileUpdated(e)}},{key:"getMyAccount",value:function(){return this.getMyUserID()}},{key:"getMyProfile",value:function(){return this._profileHandler.getMyProfile()}},{key:"getStorageModule",value:function(){return this.getModule(Fn)}},{key:"filterProfanity",value:function(e,t){var n=this.getModule(rr);if(!n)return!0;var r=n.filterText(t[e],K),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"isMyFriend",value:function(e){var t=this.getModule(xn);return!!t&&t.isMyFriend(e)}},{key:"getUserProfile",value:function(e){return this._profileHandler.getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._profileHandler.updateMyProfile(e)}},{key:"getNickAndAvatarByUserID",value:function(e){return this._profileHandler.getNickAndAvatarByUserID(e)}},{key:"getLocalBlacklist",value:function(){var e=this._blacklistHandler.getLocalBlacklist();return $a(e)}},{key:"addBlacklist",value:function(e){return this._blacklistHandler.addBlacklist(e)}},{key:"deleteBlacklist",value:function(e){return this._blacklistHandler.deleteBlacklist(e)}},{key:"onUserStatusUpdated",value:function(e){this._userStatusHandler.onUserStatusUpdated(e)}},{key:"setSelfStatus",value:function(e){return this._userStatusHandler.setSelfStatus(e)}},{key:"getUserStatus",value:function(e){return this._userStatusHandler.getUserStatus(e)}},{key:"subscribeUserStatus",value:function(e){return this._userStatusHandler.subscribeUserStatus(e)}},{key:"unsubscribeUserStatus",value:function(e){return this._userStatusHandler.unsubscribeUserStatus(e)}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._profileHandler.reset(),this._blacklistHandler.reset(),this._userStatusHandler.reset()}}]),n}(sr),Xi=function(){function e(t,n){o(this,e),this._m=t,this._isLoggedIn=!1,this._SDKAppID=n.SDKAppID,this._userID=n.userID||"",this._userSig=n.userSig||"",this._version="2.27.1",this._a2Key="",this._tinyID="",this._customStatus="",this._contentType="json",this._unlimitedAVChatRoom=n.unlimitedAVChatRoom,this._scene=n.scene||"",this._oversea=n.oversea,this._instanceID=n.instanceID,this._statusInstanceID=0,this._isDevMode=n.devMode,this._proxyServer=n.proxyServer,this._fileUploadProxy=n.fileUploadProxy,this._fileDownloadProxy=n.fileDownloadProxy}return i(e,[{key:"isLoggedIn",value:function(){return this._isLoggedIn}},{key:"isOversea",value:function(){return this._oversea}},{key:"isPrivateNetWork",value:function(){return this._proxyServer}},{key:"isDevMode",value:function(){return this._isDevMode}},{key:"isSingaporeSite",value:function(){return this._SDKAppID>=2e7&&this._SDKAppID<3e7||this._SDKAppID>=172e7&&this._SDKAppID<173e7}},{key:"isKoreaSite",value:function(){return this._SDKAppID>=3e7&&this._SDKAppID<4e7||this._SDKAppID>=173e7&&this._SDKAppID<174e7}},{key:"isGermanySite",value:function(){return this._SDKAppID>=4e7&&this._SDKAppID<5e7||this._SDKAppID>=174e7&&this._SDKAppID<175e7}},{key:"isIndiaSite",value:function(){return this._SDKAppID>=5e7&&this._SDKAppID<6e7||this._SDKAppID>=175e7&&this._SDKAppID<176e7}},{key:"isJapanSite",value:function(){return this._SDKAppID>=6e7&&this._SDKAppID<7e7||this._SDKAppID>=176e7&&this._SDKAppID<177e7}},{key:"isUSASite",value:function(){return this._SDKAppID>=7e7&&this._SDKAppID<8e7||this._SDKAppID>=177e7&&this._SDKAppID<178e7}},{key:"isIntl",value:function(){return 0===(e=this._SDKAppID)||e>=2e7&&e<8e7||e>=172e7&&e<178e7;var e}},{key:"isUnlimitedAVChatRoom",value:function(){return this._unlimitedAVChatRoom}},{key:"setUserID",value:function(e){this._userID=e}},{key:"getUserID",value:function(){return this._userID}},{key:"setUserSig",value:function(e){this._userSig=e}},{key:"getUserSig",value:function(){return this._userSig}},{key:"getSDKAppID",value:function(){return this._SDKAppID}},{key:"setTinyID",value:function(e){this._tinyID=e,this._isLoggedIn=!0}},{key:"getTinyID",value:function(){return this._tinyID}},{key:"setCustomStatus",value:function(e){this._customStatus=e}},{key:"getCustomStatus",value:function(){return this._customStatus}},{key:"getScene",value:function(){return Ee?window.tencent_cloud_im_csig_flutter_for_web_25F_cy:this._isTUIKit()?"tuikit":this._scene}},{key:"getInstanceID",value:function(){return this._instanceID}},{key:"getStatusInstanceID",value:function(){return this._statusInstanceID}},{key:"setStatusInstanceID",value:function(e){this._statusInstanceID=e}},{key:"getVersion",value:function(){return this._version}},{key:"getA2Key",value:function(){return this._a2Key}},{key:"setA2Key",value:function(e){this._a2Key=e}},{key:"getContentType",value:function(){return this._contentType}},{key:"getProxyServer",value:function(){return this._proxyServer}},{key:"getFileUploadProxy",value:function(){return this._fileUploadProxy}},{key:"getFileDownloadProxy",value:function(){return this._fileDownloadProxy}},{key:"_isTUIKit",value:function(){var e=!1,t=!1,n=!1,r=!1,o=[];ae&&(o=Object.keys(se)),ie&&(o=oe?Object.keys(uni):Object.keys(window));for(var a=0,i=o.length;a<i;a++)if(o[a].toLowerCase().includes("uikit")){e=!0;break}if(o=null,ae&&!ct(se.createGamePortal)&&ct(getApp)&&!it(getApp())){var s=getApp().globalData;ot(s)&&!0===s.isTUIKit&&(t=!0)}!0===this._m.getModule(Fn).getStorageSync("TIM_".concat(this._SDKAppID,"_isTUIKit"))&&(n=!0);var c=null;if(X&&!Z&&"undefined"==typeof uni&&__wxConfig&&(c=__wxConfig.pages),Q&&"undefined"==typeof uni&&__qqConfig&&(c=__qqConfig.pages),at(c)&&c.length>0){for(var l=0,u=c.length;l<u;l++)if(c[l].toLowerCase().includes("tui")){r=!0;break}c=null}return e||t||n||r}},{key:"reset",value:function(){this._isLoggedIn=!1,this._userSig="",this._a2Key="",this._tinyID="",this._customStatus="",this._statusInstanceID=0}}]),e}(),Qi=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="SignModule",r._helloInterval=120,r._lastLoginTs=0,r._lastWsHelloTs=0,r._isWebUniapp=0,ni.mixin(m(r)),r}return i(n,[{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&e%this._helloInterval==0&&this._hello()}},{key:"login",value:function(e){var t="";if(this.isLoggedIn()){var n=this.getMyUserID();return(t=this.getErrorMessage("RepeatLogin",n))&&Fe.w(t),$a({actionStatus:"OK",errorCode:0,errorInfo:t,repeatLogin:!0})}if(Date.now()-this._lastLoginTs<=15e3)return this.outputWarning("LoggingIn",e.userID),Ja({code:fa.REPEAT_LOGIN});Fe.l("".concat(this._n,".login userID:").concat(e.userID));var r=this._checkLoginInfo(e);if(0!==r.code)return Ja(r);var o=this.getModule(Bn),a=e.userID,i=e.userSig;return o.setUserID(a),o.setUserSig(i),this.getModule(Kn).updateProtocolConfig(),this._login()}},{key:"_login",value:function(){var e=this,t=this.getModule(Bn),n=t.getScene(),r=0,o=new Ia("login");o.setMessage("".concat(n)).setMoreMessage("identifier:".concat(this.getMyUserID())),oe?"tuikit"===n?o.setUIPlatform(4):o.setUIPlatform(3):ae?"tuikit"===n?o.setUIPlatform(12):o.setUIPlatform(11):ie&&(Ee?"flutter_web_uikit"===n?o.setUIPlatform(21):o.setUIPlatform(20):this._isReactUIKit()?Ie?o.setUIPlatform(25):o.setUIPlatform(24):Ie?"tuikit"===n?o.setUIPlatform(17):o.setUIPlatform(16):"tuikit"===n?o.setUIPlatform(14):o.setUIPlatform(13));var a=this.getModule(nr);if(a.canIUseOfflinePush()){this._isWebUniapp=a.getUniAppPlatform();var i=this._getStatusInstanceID();t.setStatusInstanceID(i),this.getModule(Kn).updateProtocolConfig(),r=a.getDeviceBrand()}var s="".concat(this._n,"._login");return this._lastLoginTs=Date.now(),this.request({protocolName:cr,requestData:{deviceBrand:r,isWebUniapp:this._isWebUniapp}}).then((function(r){e._lastLoginTs=0;var a=Date.now(),i=null,c=r.data,l=c.a2Key,u=c.tinyID,d=c.helloInterval,p=c.instanceID,f=c.timeStamp,h=c.customStatus,m=void 0===h?"":h;Fe.l("".concat(s," ok. scene:").concat(n," helloInterval:").concat(d," instanceID:").concat(p," timeStamp:").concat(f));var v=1e3*f,g=a-o.getStartTs(),_=v+parseInt(g/2)-a,b=o.getStartTs()+_;if(o.start(b),function(e,t){Ne=t;var n=new Date;n.setTime(e),Fe.i("baseTime from server:".concat(n," offset:").concat(Ne))}(v,_),!u)throw i=new qa({code:fa.NO_TINYID}),o.setError(i,!0,e.getNetworkType()).end(),i;if(!l)throw i=new qa({code:fa.NO_A2KEY}),o.setError(i,!0,e.getNetworkType()).end(),i;var y=Ki(m);o.setNetworkType(e.getNetworkType()).setMoreMessage("helloInterval:".concat(d," instanceID:").concat(p," offset:").concat(_," customStatus:").concat(y)).end(),t.setA2Key(l),t.setTinyID(u),t.setStatusInstanceID(p),t.setCustomStatus(y),e.getModule(Kn).updateProtocolConfig(),e.emitInnerEvent(Za),e._helloInterval=d,e.triggerReady();var O=e.getModule(nr);return O.canIUseOfflinePush()&&(uni.setStorageSync("timUniAppInstanceID",p),O.init()),e._fetchCloudControlConfig(),e.getModule(rr).init(),r})).catch((function(t){return e.probeNetwork().then((function(e){var n=_(e,2),r=n[0],a=n[1];o.setError(t,r,a).end(!0)})),e._m.setNotReadyReason(fa.LOGIN_FAILED),Fe.e("".concat(s," failed. error:"),t),e._lastLoginTs=0,e._m.onLoginFailed(),Ja(t)}))}},{key:"logout",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!this.isLoggedIn())return Ja({code:fa.USER_NOT_LOGGED_IN});var n=new Ia("logout");n.setNetworkType(this.getNetworkType()).setMessage("identifier:".concat(this.getMyUserID())).end(!0);var r="".concat(this._n,".logout");return Fe.i("".concat(r," type:").concat(t)),0===t&&this._m.setNotReadyReason(fa.LOGGED_OUT),this.request({protocolName:lr,requestData:{type:t}}).then((function(){return e.resetReady(),$a({})})).catch((function(t){return Fe.e("".concat(r," error:"),t),e.resetReady(),$a({})}))}},{key:"_fetchCloudControlConfig",value:function(){this.getModule(Xn).fetchConfig()}},{key:"_getStatusInstanceID",value:function(){return uni.getStorageSync("timUniAppInstanceID")}},{key:"_hello",value:function(){var e=this;this._lastWsHelloTs=Date.now(),this.request({protocolName:ur,requestData:{isWebUniapp:this._isWebUniapp}}).catch((function(t){Fe.w("".concat(e._n,"._hello error:"),t)}))}},{key:"getLastWsHelloTs",value:function(){return this._lastWsHelloTs}},{key:"_checkLoginInfo",value:function(e){var t=0;return Kt(this.getModule(Bn).getSDKAppID())?t=fa.NO_SDKAPPID:Kt(e.userID)?t=fa.NO_IDENTIFIER:Kt(e.userSig)&&(t=fa.NO_USERSIG),{code:t}}},{key:"_isReactUIKit",value:function(){return ie&&void 0!==window.tencent_cloud_im_csig_react_uikit_23F_xa}},{key:"onMultipleAccountKickedOut",value:function(e){var t=this;new Ia("kickedOut").setNetworkType(this.getNetworkType()).setMessage("type:".concat(T.KICKED_OUT_MULT_ACCOUNT," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Fe.w("".concat(this._n,".onMultipleAccountKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOuterEvent(S.KICKED_OUT,{type:T.KICKED_OUT_MULT_ACCOUNT}),t._m.setNotReadyReason(fa.KICKED_OUT_MULT_ACCOUNT),t._m.reset()}))}},{key:"onMultipleDeviceKickedOut",value:function(e){var t=this;new Ia("kickedOut").setNetworkType(this.getNetworkType()).setMessage("type:".concat(T.KICKED_OUT_MULT_DEVICE," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Fe.w("".concat(this._n,".onMultipleDeviceKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOuterEvent(S.KICKED_OUT,{type:T.KICKED_OUT_MULT_DEVICE}),t._m.setNotReadyReason(fa.KICKED_OUT_MULT_DEVICE),t._m.reset()}))}},{key:"onUserSigExpired",value:function(){new Ia("kickedOut").setNetworkType(this.getNetworkType()).setMessage(T.KICKED_OUT_USERSIG_EXPIRED).end(!0),Fe.w("".concat(this._n,".onUserSigExpired: userSig expired")),0!==this.getModule(Bn).getStatusInstanceID()&&(this.emitOuterEvent(S.KICKED_OUT,{type:T.KICKED_OUT_USERSIG_EXPIRED}),this._m.setNotReadyReason(fa.KICKED_OUT_USERSIG_EXPIRED),this._m.reset())}},{key:"onRestApiKickedOut",value:function(e){new Ia("kickedOut").setNetworkType(this.getNetworkType()).setMessage("type:".concat(T.KICKED_OUT_REST_API," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Fe.w("".concat(this._n,".onRestApiKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),0!==this.getModule(Bn).getStatusInstanceID()&&(this.emitOuterEvent(S.KICKED_OUT,{type:T.KICKED_OUT_REST_API}),this._m.setNotReadyReason(fa.KICKED_OUT_REST_API),this._m.reset(),this.getModule($n).onRestApiKickedOut())}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this.resetReady(),this._helloInterval=120,this._lastLoginTs=0,this._lastWsHelloTs=0,this._isWebUniapp=0}}]),n}(sr);function Zi(){return null}var es=function(){function e(t){o(this,e),this._m=t,this._n="StorageModule",this._storageQueue=new Map,this._errorTolerantHandle()}return i(e,[{key:"_errorTolerantHandle",value:function(){ae||!it(window)&&this._canIUseCookies()||(this.getItem=Zi,this.setItem=Zi,this.removeItem=Zi,this.clear=Zi)}},{key:"onCheckTimer",value:function(e){if(e%20==0){if(0===this._storageQueue.size)return;this._doFlush()}}},{key:"_doFlush",value:function(){try{var e,t=w(this._storageQueue);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2),r=n[0],o=n[1];this._setStorageSync(this._getKey(r),o)}}catch(i){t.e(i)}finally{t.f()}this._storageQueue.clear()}catch(s){Fe.w("".concat(this._n,"._doFlush error:"),s)}}},{key:"_getPrefix",value:function(){var e=this._m.getModule(Bn);return"TIM_".concat(e.getSDKAppID(),"_").concat(e.getUserID(),"_")}},{key:"_getKey",value:function(e){return"".concat(this._getPrefix()).concat(e)}},{key:"getItem",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;return this.getStorageSync(n)}catch(o){return Fe.w("".concat(this._n,".getItem error:"),o),{}}}},{key:"setItem",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(n){var o=r?this._getKey(e):e;this._setStorageSync(o,t)}else this._storageQueue.set(e,t)}},{key:"clear",value:function(){try{ae?se.clearStorageSync():this._canIUseCookies()&&localStorage.clear()}catch(e){Fe.w("".concat(this._n,".clear error:"),e)}}},{key:"removeItem",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;this._removeStorageSync(n)}catch(o){Fe.w("".concat(this._n,".removeItem error:"),o)}}},{key:"getSize",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"b";try{var r={size:0,limitSize:5242880,unit:n};if(Object.defineProperty(r,"leftSize",{enumerable:!0,get:function(){return r.limitSize-r.size}}),ae&&(r.limitSize=1024*se.getStorageInfoSync().limitSize),e)r.size=JSON.stringify(this.getItem(e)).length+this._getKey(e).length;else if(ae){var o=se.getStorageInfoSync(),a=o.keys;a.forEach((function(e){r.size+=JSON.stringify(t.getStorageSync(e)).length+t._getKey(e).length}))}else if(this._canIUseCookies())for(var i in localStorage)localStorage.hasOwnProperty(i)&&(r.size+=localStorage.getItem(i).length+i.length);return this._convertUnit(r)}catch(c){Fe.w("".concat(this._n," error:"),c)}}},{key:"_convertUnit",value:function(e){var t={},n=e.unit;for(var r in t.unit=n,e)"number"==typeof e[r]&&("kb"===n.toLowerCase()?t[r]=Math.round(e[r]/1024):"mb"===n.toLowerCase()?t[r]=Math.round(e[r]/1024/1024):t[r]=e[r]);return t}},{key:"_setStorageSync",value:function(e,t){ae?te?my.setStorageSync({key:e,data:t}):se.setStorageSync(e,t):this._canIUseCookies()&&localStorage.setItem(e,JSON.stringify(t))}},{key:"getStorageSync",value:function(e){return ae?te?my.getStorageSync({key:e}).data:se.getStorageSync(e):this._canIUseCookies()?JSON.parse(localStorage.getItem(e)):{}}},{key:"_removeStorageSync",value:function(e){ae?te?my.removeStorageSync({key:e}):se.removeStorageSync(e):this._canIUseCookies()&&localStorage.removeItem(e)}},{key:"_canIUseCookies",value:function(){return navigator&&navigator.cookieEnabled&&localStorage}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._doFlush()}}]),e}(),ts=function(){function e(t){o(this,e),this._n="SSOLogBody",this._report=[]}return i(e,[{key:"pushIn",value:function(e){Fe.d("".concat(this._n,".pushIn"),this._report.length,e),this._report.push(e)}},{key:"backfill",value:function(e){var t;at(e)&&0!==e.length&&(Fe.d("".concat(this._n,".backfill"),this._report.length,e.length),(t=this._report).unshift.apply(t,b(e)))}},{key:"getLogsNumInMemory",value:function(){return this._report.length}},{key:"isEmpty",value:function(){return 0===this._report.length}},{key:"_reset",value:function(){this._report.length=0,this._report=[]}},{key:"getLogsInMemory",value:function(){var e=this._report.slice();return this._reset(),e}}]),e}(),ns=function(e){var t=e.getModule(Bn);return{SDKType:10,SDKAppID:t.getSDKAppID(),SDKVersion:t.getVersion(),tinyID:Number(t.getTinyID()),userID:t.getUserID(),platform:e.getPlatform(),instanceID:t.getInstanceID(),traceID:Re()}},rs=function(e){c(r,e);var t=g(r);function r(e){var n;o(this,r),(n=t.call(this,e))._n="EventStatModule",n.TAG="im-ssolog-event",n._reportBody=new ts,n.MIN_THRESHOLD=20,n.MAX_THRESHOLD=100,n.WAITING_TIME=6e4,n.REPORT_LEVEL=[4,5,6],n.REPORT_SDKAPPID_BLACKLIST=[],n.REPORT_TINYID_WHITELIST=[],n._lastReportTime=Date.now();var a=n.getInnerEmitterInstance();return a.on(Za,n._onLoginSuccess,m(n)),a.on(ei,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"reportAtOnce",value:function(){Fe.d("".concat(this._n,".reportAtOnce")),this._report()}},{key:"_onLoginSuccess",value:function(){var e=this,t=this.getModule(Fn),n=t.getItem(this.TAG,!1);!Kt(n)&&ct(n.forEach)&&(Fe.l("".concat(this._n,"._onLoginSuccess get ssolog in storage, count:").concat(n.length)),n.forEach((function(t){e._reportBody.pushIn(t)})),t.removeItem(this.TAG,!1))}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("evt_rpt_threshold"),t=this.getCloudConfig("evt_rpt_waiting"),n=this.getCloudConfig("evt_rpt_level"),r=this.getCloudConfig("evt_rpt_sdkappid_bl"),o=this.getCloudConfig("evt_rpt_tinyid_wl");it(e)||(this.MIN_THRESHOLD=Number(e)),it(t)||(this.WAITING_TIME=Number(t)),it(n)||(this.REPORT_LEVEL=n.split(",").map((function(e){return Number(e)}))),it(r)||(this.REPORT_SDKAPPID_BLACKLIST=r.split(",").map((function(e){return Number(e)}))),it(o)||(this.REPORT_TINYID_WHITELIST=o.split(","))}},{key:"pushIn",value:function(e){e instanceof Ia&&(e.updateTimeStamp(),this._reportBody.pushIn(e),this._reportBody.getLogsNumInMemory()>=this.MIN_THRESHOLD&&this._report())}},{key:"onCheckTimer",value:function(){Date.now()<this._lastReportTime+this.WAITING_TIME||this._reportBody.isEmpty()||this._report()}},{key:"_filterLogs",value:function(e){var t=this,n=this.getModule(Bn),r=n.getSDKAppID(),o=n.getTinyID();return Ut(this.REPORT_SDKAPPID_BLACKLIST,r)&&!Vt(this.REPORT_TINYID_WHITELIST,o)?[]:e.filter((function(e){return t.REPORT_LEVEL.includes(e.level)}))}},{key:"_report",value:function(){var e=this;if(!this._reportBody.isEmpty()){var t=this._reportBody.getLogsInMemory(),r=this._filterLogs(t);if(0!==r.length){var o={header:ns(this),event:r};this.request({protocolName:Fo,requestData:n({},o)}).then((function(){e._lastReportTime=Date.now()})).catch((function(n){Fe.w("".concat(e._n,".report failed. networkType:").concat(e.getNetworkType()," error:"),n),e._reportBody.backfill(t),e._reportBody.getLogsNumInMemory()>e.MAX_THRESHOLD&&e._flushAtOnce()}))}else this._lastReportTime=Date.now()}}},{key:"_flushAtOnce",value:function(){var e=this.getModule(Fn),t=e.getItem(this.TAG,!1),n=this._reportBody.getLogsInMemory(),r="".concat(this._n,"._flushAtOnce");if(Kt(t))Fe.l("".concat(r," count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var o=n.concat(t);o.length>this.MAX_THRESHOLD&&(o=o.slice(0,this.MAX_THRESHOLD)),Fe.l("".concat(r," count:").concat(o.length)),e.setItem(this.TAG,o,!0,!1)}}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._lastReportTime=0,this._report(),this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[]}}]),r}(sr),os="none",as="online",is=[fa.OVER_FREQUENCY_LIMIT,fa.OPEN_SERVICE_OVERLOAD_ERROR],ss=function(){function e(t){o(this,e),this._m=t,this._networkType="",this._n="NetMonitorModule",this.MAX_WAIT_TIME=3e3,this._mpNetworkStatusCallback=null,this._webOnlineCallback=null,this._webOfflineCallback=null}return i(e,[{key:"start",value:function(){var e=this;ae?(se.getNetworkType({success:function(t){e._networkType=t.networkType||t.subtype||"",t.networkType===os?Fe.w("".concat(e._n,".start no network, please check!")):Fe.i("".concat(e._n,".start networkType:").concat(t.networkType))}}),this._mpNetworkStatusCallback=this._onNetworkStatusChange.bind(this),se.onNetworkStatusChange(this._mpNetworkStatusCallback)):(this._networkType=as,this._webOnlineCallback=this._onWebOnline.bind(this),this._webOfflineCallback=this._onWebOffline.bind(this),window&&(window.addEventListener("online",this._webOnlineCallback),window.addEventListener("offline",this._webOfflineCallback)))}},{key:"_onWebOnline",value:function(){this._onNetworkStatusChange({isConnected:!0,networkType:as})}},{key:"_onWebOffline",value:function(){this._onNetworkStatusChange({isConnected:!1,networkType:os})}},{key:"_onNetworkStatusChange",value:function(e){var t=e.isConnected,n=e.networkType,r="".concat(this._n,"._onNetworkStatusChange"),o=!1;t?(Fe.i("".concat(r," previous:").concat(this._networkType," current:").concat(n)),this._networkType!==n&&(o=!0,this._m.getModule($n).reConnect(!0))):this._networkType!==n&&(o=!0,Fe.w("".concat(r," no network, please check!")),this._m.getModule($n).offline()),o&&(new Ia("networkChange").setMessage("isConnected:".concat(t," previousNetworkType:").concat(this._networkType," networkType:").concat(n)).end(),this._networkType=n)}},{key:"probe",value:function(e){var t=this;if(!it(e)&&is.includes(e.code))return Promise.resolve([!0,this._networkType]);var n="".concat(this._n,".probe");return new Promise((function(e,r){ae?se.getNetworkType({success:function(r){t._networkType=r.networkType,r.networkType===os?(Fe.w("".concat(n," no network, please check!")),e([!1,r.networkType])):(Fe.i("".concat(n," networkType:").concat(r.networkType)),e([!0,r.networkType]))}}):t._networkType===os?e([!1,os]):e([!0,as])}))}},{key:"getNetworkType",value:function(){return this._networkType}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),ae?null!==this._mpNetworkStatusCallback&&(se.offNetworkStatusChange&&(re||Z?se.offNetworkStatusChange(this._mpNetworkStatusCallback):se.offNetworkStatusChange()),this._mpNetworkStatusCallback=null):window&&(null!==this._webOnlineCallback&&(window.removeEventListener("online",this._webOnlineCallback),this._webOnlineCallback=null),null!==this._onWebOffline&&(window.removeEventListener("offline",this._webOfflineCallback),this._webOfflineCallback=null))}}]),e}(),cs=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,a||e,i),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,a=r.length,i=new Array(a);o<a;o++)i[o]=r[o].fn;return i},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,a,i){var s=n?n+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,a),!0;case 6:return u.fn.call(u.context,t,r,o,a,i),!0}for(l=1,c=new Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var p,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!c)for(p=1,c=new Array(d-1);p<d;p++)c[p-1]=arguments[p];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||i(this,a);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&l.push(s[c]);l.length?this._events[a]=1===l.length?l[0]:l:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})),ls=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="BigDataChannelModule",r.FILETYPE={SOUND:2106,FILE:2107,VIDEO:2113},r._bdh_download_server="grouptalk.c2c.qq.com",r._BDHBizID=10001,r._authKey="",r._expireTime=0,r.getInnerEmitterInstance().on(Za,r._getAuthKey,m(r)),r}return i(n,[{key:"_getAuthKey",value:function(){var e=this;this.isIntl()||this.request({protocolName:fr}).then((function(t){t.data.authKey&&(e._authKey=t.data.authKey,e._expireTime=parseInt(t.data.expireTime))}))}},{key:"_isFromOlderVersion",value:function(e){return!(!e.content||2===e.content.downloadFlag)}},{key:"parseElements",value:function(e,t){if(!at(e)||!t)return[];for(var n=[],r=null,o=0;o<e.length;o++)r=e[o],this._needParse(r)?n.push(this._parseElement(r,t)):n.push(e[o]);return n}},{key:"_needParse",value:function(e){return!e.cloudCustomData&&!(!this._isFromOlderVersion(e)||e.type!==T.MSG_AUDIO&&e.type!==T.MSG_FILE&&e.type!==T.MSG_VIDEO)}},{key:"_parseElement",value:function(e,t){switch(e.type){case T.MSG_AUDIO:return this._parseAudioElement(e,t);case T.MSG_FILE:return this._parseFileElement(e,t);case T.MSG_VIDEO:return this._parseVideoElement(e,t)}}},{key:"_parseAudioElement",value:function(e,t){return e.content.url=this._genAudioUrl(e.content.uuid,t),e}},{key:"_parseFileElement",value:function(e,t){return e.content.url=this._genFileUrl(e.content.uuid,t,e.content.fileName),e}},{key:"_parseVideoElement",value:function(e,t){return e.content.url=this._genVideoUrl(e.content.uuid,t),e}},{key:"_genAudioUrl",value:function(e,t){if(""===this._authKey)return"";var n=this.getModule(Bn).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(n,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.SOUND,"&openid=").concat(t,"&ver=0")}},{key:"_genFileUrl",value:function(e,t,n){if(""===this._authKey)return"";n||(n="".concat(Math.floor(1e5*Math.random()),"-").concat(Date.now()));var r=this.getModule(Bn).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(r,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.FILE,"&openid=").concat(t,"&ver=0&filename=").concat(encodeURIComponent(n))}},{key:"_genVideoUrl",value:function(e,t){if(""===this._authKey)return"";var n=this.getModule(Bn).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(n,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.VIDEO,"&openid=").concat(t,"&ver=0")}},{key:"reset",value:function(){this._authKey="",this.expireTime=0}}]),n}(sr),us=["requestSnapshotUrl"],ds=function(e){c(r,e);var t=g(r);function r(e){var n;o(this,r),(n=t.call(this,e))._n="UploadModule",n.TIMUploadPlugin=null,n.timUploadPlugin=null,n.COSSDK=null,n._cosUploadMethod=null,n.expiredTimeLimit=600,n.appid=0,n.bucketName="",n.ciUrl="",n.directory="",n.downloadUrl="",n.uploadUrl="",n.region="ap-shanghai",n.cos=null,n.cosOptions={secretId:"",secretKey:"",sessionToken:"",expiredTime:0},n.uploadFileType="",n.duration=900,n.tryCount=0,n.UPLOAD_SIZE_LIMIT={AUDIO:20971520,FILE:104857600,IMAGE:20971520,VIDEO:104857600};var a=n.getInnerEmitterInstance();return a.on(Za,n._init,m(n)),a.on(ei,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_init",value:function(){var e=this.getModule(qn);if(this.TIMUploadPlugin=e.getPlugin("tim-upload-plugin"),this.TIMUploadPlugin)this._initUploaderMethod();else{var t=ae?"cos-wx-sdk":"cos-js-sdk";this.COSSDK=e.getPlugin(t),this.COSSDK?(this._getAuthorizationKey(),this.outputWarning("CosReplacement",t)):this.outputWarning("PluginUndetected")}}},{key:"_onCloudConfigUpdated",value:function(){var e="".concat(this._n,"._onCloudConfigUpdated"),t=this.getCloudConfig("upload_size_limit");if(Fe.l("".concat(e," uploadSizeLimit:").concat(t)),!it(t))try{var n=JSON.parse(t);this.UPLOAD_SIZE_LIMIT={AUDIO:n.a?1048576*parseInt(n.a):this.UPLOAD_SIZE_LIMIT.AUDIO,FILE:n.f?1048576*parseInt(n.f):this.UPLOAD_SIZE_LIMIT.FILE,IMAGE:n.i?1048576*parseInt(n.i):this.UPLOAD_SIZE_LIMIT.IMAGE,VIDEO:n.v?1048576*parseInt(n.v):this.UPLOAD_SIZE_LIMIT.VIDEO}}catch(o){Fe.e("".concat(e," JSON parse error. uploadSizeLimit:"),t)}}},{key:"_getAuthorizationKey",value:function(){var e=this,t="".concat(this._n,".").concat("_getAuthorizationKey"),n=new Ia("_getAuthorizationKey"),r=Math.ceil(Date.now()/1e3);this.request({protocolName:Uo,requestData:{duration:this.expiredTimeLimit}}).then((function(o){var a=o.data;Fe.l("".concat(t," ok. data:"),a);var i=a.expiredTime-r;n.setMessage("requestId:".concat(a.requestId," requestTime:").concat(r," expiredTime:").concat(a.expiredTime," diff:").concat(i,"s")).setNetworkType(e.getNetworkType()).end(),!ae&&a.region&&(e.region=a.region),e.appid=a.appid,e.bucketName=a.bucketName,e.ciUrl=a.ciUrl,e.directory=a.directory,e.downloadUrl=a.downloadUrl,e.uploadUrl=a.uploadUrl,e.cosOptions={secretId:a.secretId,secretKey:a.secretKey,sessionToken:a.sessionToken,expiredTime:a.expiredTime},Fe.l("".concat(t," ok. region:").concat(e.region," bucketName:").concat(e.bucketName)),e._initUploaderMethod()})).catch((function(r){e.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Fe.w("".concat(t," failed. error:"),r)}))}},{key:"_getCosPreSigUrl",value:function(e){var t=this,n="".concat(this._n,".").concat("_getCosPreSigUrl"),r=Math.ceil(Date.now()/1e3),o=new Ia("_getCosPreSigUrl");return this.request({protocolName:Vo,requestData:{fileType:e.fileType,fileName:e.fileName,uploadMethod:e.uploadMethod,duration:e.duration}}).then((function(e){t.tryCount=0;var a=e.data||{},i=a.expiredTime-r;return Fe.l("".concat(n," ok. data:"),a),o.setMessage("requestId:".concat(a.requestId," expiredTime:").concat(a.expiredTime," diff:").concat(i,"s")).setNetworkType(t.getNetworkType()).end(),a})).catch((function(r){return-1===r.code&&(r.code=fa.COS_GET_SIG_FAIL),t.probeNetwork().then((function(e){var t=_(e,2),n=t[0],a=t[1];o.setError(r,n,a).end()})),Fe.w("".concat(n," failed. error:"),r),t.tryCount<1?(t.tryCount++,t._getCosPreSigUrl(e)):(t.tryCount=0,Ja({code:fa.COS_GET_SIG_FAIL}))}))}},{key:"_initUploaderMethod",value:function(){var e=this;if(this.TIMUploadPlugin)return this.timUploadPlugin=new this.TIMUploadPlugin,void(this._cosUploadMethod=function(t,n){e.timUploadPlugin.uploadFile(t,n)});this.appid&&(this.cos=ae?new this.COSSDK({ForcePathStyle:!0,getAuthorization:this._getAuthorization.bind(this)}):new this.COSSDK({getAuthorization:this._getAuthorization.bind(this)}),this._cosUploadMethod=ae?function(t,n){e.cos.postObject(t,n)}:function(t,n){e.cos.uploadFiles(t,n)})}},{key:"onCheckTimer",value:function(e){this.COSSDK&&(this.TIMUploadPlugin||this.isLoggedIn()&&e%60==0&&Math.ceil(Date.now()/1e3)>=this.cosOptions.expiredTime-120&&this._getAuthorizationKey())}},{key:"_getAuthorization",value:function(e,t){t({TmpSecretId:this.cosOptions.secretId,TmpSecretKey:this.cosOptions.secretKey,XCosSecurityToken:this.cosOptions.sessionToken,ExpiredTime:this.cosOptions.expiredTime})}},{key:"upload",value:function(e){if(!0===e.getRelayFlag())return Promise.resolve();var t=this.getModule(er);switch(e.type){case T.MSG_IMAGE:return t.addTotalCount(ya),this._uploadImage(e);case T.MSG_FILE:return t.addTotalCount(ya),this._uploadFile(e);case T.MSG_AUDIO:return t.addTotalCount(ya),this._uploadAudio(e);case T.MSG_VIDEO:return t.addTotalCount(ya),this._uploadVideo(e);default:return Promise.resolve()}}},{key:"_uploadImage",value:function(e){var t=this,r=this.getModule(Dn),o=e.getElements()[0],a=r.getMessageOption(e.clientSequence);return this.doUploadImage({file:a.payload.file,to:a.to,onProgress:function(e){if(o.updatePercent(e),ct(a.onProgress))try{a.onProgress(e)}catch(n){return Ja({code:fa.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(r){var a,i,s=r.location,c=r.fileType,l=r.fileSize,u=r.width,d=r.height,p=r.smallImageUrl,f=r.smallImageWidth,h=r.smallImageHeight,m=r.largeImageUrl,v=r.largeImageWidth,g=r.largeImageHeight,_=t.isPrivateNetWork()?s:yt(s);return o.updateImageFormat(c),p&&m?(a={url:p,width:f,height:h},i={url:m,width:v,height:g}):(a=Nt({originUrl:_,originWidth:u,originHeight:d,min:198}),i=Nt({originUrl:_,originWidth:u,originHeight:d,min:720})),o.updateImageInfoArray([{size:l,url:_,width:u,height:d},n({},i),n({},a)]),e}))}},{key:"_uploadFile",value:function(e){var t=this,n=this.getModule(Dn),r=e.getElements()[0],o=n.getMessageOption(e.clientSequence);return this.doUploadFile({file:o.payload.file,to:o.to,onProgress:function(e){if(r.updatePercent(e),ct(o.onProgress))try{o.onProgress(e)}catch(t){return Ja({code:fa.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var o=n.location,a=t.isPrivateNetWork()?o:yt(o);return r.updateFileUrl(a),e}))}},{key:"_uploadAudio",value:function(e){var t=this,n=this.getModule(Dn),r=e.getElements()[0],o=n.getMessageOption(e.clientSequence);return this.doUploadAudio({file:o.payload.file,to:o.to,onProgress:function(e){if(r.updatePercent(e),ct(o.onProgress))try{o.onProgress(e)}catch(t){return Ja({code:fa.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var o=n.location,a=t.isPrivateNetWork()?o:yt(o);return r.updateAudioUrl(a),e}))}},{key:"_uploadVideo",value:function(e){var t=this,n=this.getModule(Dn),r=e.getElements()[0],o=n.getMessageOption(e.clientSequence);return this.doUploadVideo({file:o.payload.file,to:o.to,onProgress:function(e){if(r.updatePercent(e),ct(o.onProgress))try{o.onProgress(e)}catch(t){return Ja({code:fa.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var o=n.location,a=n.snapshotInfo,i=t.isPrivateNetWork()?o:yt(o);return r.updateVideoUrl(i),Kt(a)||r.updateSnapshotInfo(a),e}))}},{key:"_checkSizeError",value:function(e){return Ja({code:fa["MESSAGE_".concat(e,"_SIZE_LIMIT")],message:this.getErrorMessage("UploadSizeLimit",e.toLowerCase(),"".concat(this.UPLOAD_SIZE_LIMIT[e]/1048576," MB"))})}},{key:"doUploadImage",value:function(e){var t=this;if(!e.file)return Ja({code:fa.MESSAGE_IMAGE_SELECT_FILE_FIRST});var n=this._checkImageType(e.file);if(!0!==n)return n;var r=this._checkImageSize(e.file);if(!0!==r)return r;var o=null;return this._setUploadFileType(ai),this.uploadByCOS(e).then((function(e){return o=e,t.isPrivateNetWork()?jt(e.location):jt("https://".concat(e.location))})).then((function(e){return o.width=e.width,o.height=e.height,Promise.resolve(o)}))}},{key:"_checkImageType",value:function(e){var t="";return t=ae?e.url.slice(e.url.lastIndexOf(".")+1):e.files[0].name.slice(e.files[0].name.lastIndexOf(".")+1),ri.indexOf(t.toLowerCase())>=0||Ja({code:fa.MESSAGE_IMAGE_TYPES_LIMIT})}},{key:"_checkImageSize",value:function(e){var t=0;return 0===(t=ae?e.size:e.files[0].size)?Ja({code:fa.MESSAGE_FILE_IS_EMPTY}):t<this.UPLOAD_SIZE_LIMIT.IMAGE||this._checkSizeError("IMAGE")}},{key:"doUploadFile",value:function(e){return e.file?e.file.files[0].size>this.UPLOAD_SIZE_LIMIT.FILE?this._checkSizeError("FILE"):0===e.file.files[0].size?Ja({code:fa.MESSAGE_FILE_IS_EMPTY}):(this._setUploadFileType(ci),this.uploadByCOS(e)):Ja({code:fa.MESSAGE_FILE_SELECT_FILE_FIRST})}},{key:"doUploadVideo",value:function(e){return e.file.videoFile.size>this.UPLOAD_SIZE_LIMIT.VIDEO?this._checkSizeError("VIDEO"):0===e.file.videoFile.size?Ja({code:fa.MESSAGE_FILE_IS_EMPTY}):-1===oi.indexOf(e.file.videoFile.type)?Ja({code:fa.MESSAGE_VIDEO_TYPES_LIMIT}):(this._setUploadFileType(ii),ae?this.handleVideoUpload({file:e.file.videoFile,onProgress:e.onProgress}):ie?this.handleVideoUpload(e):void 0)}},{key:"handleVideoUpload",value:function(e){var t=this;return new Promise((function(n,r){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){r(new qa({code:fa.MESSAGE_VIDEO_UPLOAD_FAIL}))}))}))}))}},{key:"doUploadAudio",value:function(e){return e.file?e.file.size>this.UPLOAD_SIZE_LIMIT.AUDIO?this._checkSizeError("AUDIO"):0===e.file.size?Ja({code:fa.MESSAGE_FILE_IS_EMPTY}):(this._setUploadFileType(si),this.uploadByCOS(e)):Ja({code:fa.MESSAGE_AUDIO_UPLOAD_FAIL})}},{key:"uploadByCOS",value:function(e){var t=this;if(!ct(this._cosUploadMethod))return this.outputWarning("PluginUndetected"),Ja({code:fa.COS_UNDETECTED});if(this.timUploadPlugin)return this._uploadWithPreSigUrl(e);var n=new Ia("upload"),r="".concat(this._n,".uploadByCOS"),o=Date.now(),a=this._getFile(e);return new Promise((function(i,s){var c=ae?t._createCosOptionsWXMiniApp(e):t._createCosOptionsWeb(e),l=t;t._cosUploadMethod(c,(function(e,c){var u=Object.create(null);if(c){if(e||at(c.files)&&c.files[0].error){var d=new qa({code:fa.MESSAGE_FILE_UPLOAD_FAIL});return n.setError(d,!0,t.getNetworkType()).end(),Fe.l("".concat(r," failed. error:"),c.files[0].error),403===c.files[0].error.statusCode&&(Fe.w("".concat(r," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),void s(d)}u.fileName=a.name,u.fileSize=a.size,u.fileType=a.type.slice(a.type.indexOf("/")+1).toLowerCase(),u.location=ae?c.Location:c.files[0].data.Location;var p=Date.now()-o,f=l._formatFileSize(a.size),h=l._formatSpeed(1e3*a.size/p),m="size:".concat(f," time:").concat(p,"ms speed:").concat(h);Fe.l("".concat(r," success. name:").concat(a.name," ").concat(m)),i(u);var v=t.getModule(er);return v.addCost(ya,p),v.addFileSize(ya,a.size),void n.setNetworkType(t.getNetworkType()).setMessage(m).end()}var g=new qa({code:fa.MESSAGE_FILE_UPLOAD_FAIL});n.setError(g,!0,l.getNetworkType()).end(),Fe.w("".concat(r," failed. error:"),e),403===e.statusCode&&(Fe.w("".concat(r," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),s(g)}))}))}},{key:"_uploadWithPreSigUrl",value:function(e){var t=this,n="".concat(this._n,"._uploadWithPreSigUrl"),r=this._getFile(e);return this._createCosOptionsPreSigUrl(e).then((function(e){return new Promise((function(o,a){var i=new Ia("upload"),s=e.requestSnapshotUrl,c=void 0===s?void 0:s,l=h(e,us),u=Date.now();t._cosUploadMethod(l,(function(e,s){if(e||403===s.statusCode)return i.setError(new qa(e),!0,t.getNetworkType()).end(),Fe.l("".concat(n," failed, error:"),e),void a(new qa({code:fa.MESSAGE_FILE_UPLOAD_FAIL}));var d=Object.create(null),p=s.data.location||"";t.isPrivateNetWork()||0!==p.indexOf("https://")&&0!==p.indexOf("http://")||(p=p.split("//")[1]),d.fileName=r.name,d.fileSize=r.size,d.fileType=r.type.slice(r.type.indexOf("/")+1).toLowerCase(),d.location=p;var f=Date.now()-u,h=t._formatFileSize(r.size),m=t._formatSpeed(1e3*r.size/f),v="size:".concat(h,",time:").concat(f,"ms,speed:").concat(m," res:").concat(JSON.stringify(s.data));Fe.l("".concat(n," success name:").concat(r.name,",").concat(v)),i.setNetworkType(t.getNetworkType()).setMessage(v).end();var g=t.getModule(er);g.addCost(ya,f),g.addFileSize(ya,r.size);var _=[];if(l.thumbUrl&&l.largeUrl&&(_=[t._getSmallImageInfoByUrl(l.thumbUrl,d),t._getLargeImageInfoByUrl(l.largeUrl,d)]),c&&_.push(t._getSnapshotInfoByUrl(c,d)),_.length>0)return Promise.all(_).then((function(){o(d)}));o(d)}))}))}))}},{key:"_getRawOrUploadProxyUrl",value:function(e){var t=this.getModule(Bn).getFileUploadProxy(),n=e;return t&&(n=e.replace(/^https:\/\/[^/]+/,t)),n}},{key:"_getFile",value:function(e){var t;return at(e.file.files)||(t=e.file.files,"filelist"===ut(t))?e.file.files[0]:e.file}},{key:"_formatFileSize",value:function(e){return e<1024?e+"B":e<1048576?Math.floor(e/1024)+"KB":Math.floor(e/1048576)+"MB"}},{key:"_formatSpeed",value:function(e){return e<=1048576?Pt(e/1024,1)+"KB/s":Pt(e/1048576,1)+"MB/s"}},{key:"_createCosOptionsWeb",value:function(e){var t=this._getFile(e),n=t.name,r=n.slice(n.lastIndexOf(".")),o=this._genFileName("".concat(mt(999999)).concat(r));return{files:[{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(o),Body:t}],SliceSize:1048576,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Fe.w("onProgress callback error:",n)}},onFileFinish:function(e,t,n){}}}},{key:"_createCosOptionsWXMiniApp",value:function(e){var t=this._getFile(e),n=this._genFileName(t.name),r=t.url;return{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(n),FilePath:r,onProgress:function(t){if(Fe.l(JSON.stringify(t)),"function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Fe.w("onProgress callback error:",n)}}}}},{key:"_createCosOptionsPreSigUrl",value:function(e){var t=this,n="",r="",o=0,a=this._getFile(e);if(ae)n=this._genFileName(a.name),r=a.url,o=1;else{var i=a.name,s=i.slice(i.lastIndexOf("."));n=this._genFileName("".concat(mt(999999)).concat(s)),r=a,o=0}return this._getCosPreSigUrl({fileType:this.uploadFileType,fileName:n,uploadMethod:o,duration:this.duration}).then((function(o){var a=o.uploadUrl,i=o.downloadUrl,s=o.requestSnapshotUrl,c=void 0===s?void 0:s,l=o.thumbUrl,u=o.largeUrl;return{url:t._getRawOrUploadProxyUrl(a),fileType:t.uploadFileType,fileName:n,resources:r,downloadUrl:i,requestSnapshotUrl:c,thumbUrl:l,largeUrl:u,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Fe.w("onProgress callback error:",n),Fe.e(n)}}}}))}},{key:"_genFileName",value:function(e){return"".concat(Dt(),"-").concat(e)}},{key:"_setUploadFileType",value:function(e){this.uploadFileType=e}},{key:"_getSnapshotInfoByUrl",value:function(e,t){var n=this,r=new Ia("getSnapshotInfo");return this.request({protocolName:Bo,requestData:{platform:this.getPlatform(),coverName:this._genFileName(mt(99999)),requestSnapshotUrl:e}}).then((function(e){var n=(e.data||{}).snapshotUrl;return r.setMessage("snapshotUrl:".concat(n)).end(),Kt(n)?{}:jt(n).then((function(e){t.snapshotInfo={snapshotUrl:n,snapshotWidth:e.width,snapshotHeight:e.height}}))})).catch((function(e){return Fe.w("".concat(n._n,"._getSnapshotInfoByUrl failed. error:"),e),r.setCode(e.errorCode).setMessage(e.errorInfo).end(),{}}))}},{key:"_getSmallImageInfoByUrl",value:function(e,t){return jt(e).then((function(n){t.smallImageUrl=e,t.smallImageWidth=n.width,t.smallImageHeight=n.height}))}},{key:"_getLargeImageInfoByUrl",value:function(e,t){return jt(e).then((function(n){t.largeImageUrl=e,t.largeImageWidth=n.width,t.largeImageHeight=n.height}))}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset"))}}]),r}(sr),ps=["downloadKey","pbDownloadKey","messageList"],fs=function(){function e(t){o(this,e),this._n="MergerMessageHandler",this._messageModule=t}return i(e,[{key:"uploadMergerMessage",value:function(e,t){var n=this,r="".concat(this._n,".").concat("uploadMergerMessage");Fe.d("".concat(r," message:"),e,"messageBytes:".concat(t));var o=e.payload.messageList,a=o.length,i=new Ia("uploadMergerMessage");return this._messageModule.request({protocolName:Wo,requestData:{messageList:o}}).then((function(e){Fe.d("".concat(r," ok. response:"),e.data);var o=e.data,s=o.pbDownloadKey,c=o.downloadKey,l={pbDownloadKey:s,downloadKey:c,messageNumber:a};return i.setNetworkType(n._messageModule.getNetworkType()).setMessage("".concat(a,"-").concat(t,"-").concat(c)).end(),l})).catch((function(e){throw Fe.w("".concat(r," failed. error:"),e),n._messageModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),e}))}},{key:"downloadMergerMessage",value:function(e){var t=this,r="".concat(this._n,".").concat("downloadMergerMessage");Fe.d("".concat(r," message:"),e);var o=e.payload.downloadKey,a=this._messageModule.getFileDownloadProxy(),i=new Ia("downloadMergerMessage");return i.setMessage("downloadKey:".concat(o)),this._messageModule.request({protocolName:Ko,requestData:{downloadKey:o}}).then((function(o){if(Fe.d("".concat(r," ok. response:"),o.data),ct(e.clearElement)){var s=e.payload;s.downloadKey,s.pbDownloadKey,s.messageList;var c=h(s,ps);e.clearElement(),e.setElement({type:e.type,content:n({messageList:o.data.messageList},c)},a)}else{var l=[];o.data.messageList.forEach((function(e){if(!Kt(e)){var t=new Fa(e,a);l.push(t)}})),e.payload.messageList=l,e.payload.downloadKey="",e.payload.pbDownloadKey=""}return i.setNetworkType(t._messageModule.getNetworkType()).end(),e})).catch((function(e){throw Fe.w("".concat(r," failed. key:").concat(o," error:"),e),t._messageModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),e}))}},{key:"createMergerMessagePack",value:function(e,t,n){return e.conversationType===T.CONV_C2C?this._createC2CMergerMessagePack(e,t,n):this._createGroupMergerMessagePack(e,t,n)}},{key:"_createC2CMergerMessagePack",value:function(e,t,n){var r=null;t&&(t.offlinePushInfo&&(r=t.offlinePushInfo),!0===t.onlineUserOnly&&(r?r.disablePush=!0:r={disablePush:!0}));var o=[];if(ot(t)&&ot(t.messageControlInfo)){var a=t.messageControlInfo,i=a.excludedFromUnreadCount,s=a.excludedFromLastMessage,c=a.excludedFromContentModeration;!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===c&&o.push("NoMsgCheck")}var l="";nt(e.cloudCustomData)&&e.cloudCustomData.length>0&&(l=e.cloudCustomData);var u=n.pbDownloadKey,d=n.downloadKey,p=n.messageNumber,f=e.payload,h=f.title,m=f.abstractList,v=f.compatibleText,g=this._messageModule.getModule(Nn),_=g&&g.isOnlineMessage(e,t)?0:void 0;return{protocolName:hr,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),toAccount:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:u,downloadKey:d,title:h,abstractList:m,compatibleText:v,messageNumber:p}}],cloudCustomData:l,clientTime:e.clientTime,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:_,offlinePushInfo:r?{pushFlag:!0===r.disablePush?1:0,title:r.title||"",desc:r.description||"",ext:r.extension||"",apnsInfo:{badgeMode:!0===r.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:r.androidOPPOChannelID||""}}:void 0,messageControlInfo:0!==_?o:void 0,isSupportExtension:!0===e.isSupportExtension?1:0}}}},{key:"_createGroupMergerMessagePack",value:function(e,t,n){var r=null;t&&t.offlinePushInfo&&(r=t.offlinePushInfo);var o=[];if(ot(t)&&ot(t.messageControlInfo)){var a=t.messageControlInfo,i=a.excludedFromUnreadCount,s=a.excludedFromLastMessage,c=a.excludedFromContentModeration;!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===c&&o.push("NoMsgCheck")}var l="";nt(e.cloudCustomData)&&e.cloudCustomData.length>0&&(l=e.cloudCustomData);var u=n.pbDownloadKey,d=n.downloadKey,p=n.messageNumber,f=e.payload,h=f.title,m=f.abstractList,v=f.compatibleText,g=this._messageModule.getModule(Rn),_=g&&g.isOnlineMessage(e,t)?1:0;return{protocolName:mr,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),groupID:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:u,downloadKey:d,title:h,abstractList:m,compatibleText:v,messageNumber:p}}],random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:void 0,cloudCustomData:l,onlineOnlyFlag:_,offlinePushInfo:r?{pushFlag:!0===r.disablePush?1:0,title:r.title||"",desc:r.description||"",ext:r.extension||"",apnsInfo:{badgeMode:!0===r.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:r.androidOPPOChannelID||""}}:void 0,clientTime:e.clientTime,needReadReceipt:!0!==e.needReadReceipt||g.isMessageFromOrToAVChatroom(e.to)?0:1,messageControlInfo:0===_?o:void 0,isSupportExtension:!0===e.isSupportExtension?1:0}}}}]),e}(),hs={ERR_SVR_COMM_SENSITIVE_TEXT:80001,ERR_SVR_COMM_BODY_SIZE_LIMIT:80002,OPEN_SERVICE_OVERLOAD_ERROR:60022,ERR_SVR_MSG_PKG_PARSE_FAILED:20001,ERR_SVR_MSG_INTERNAL_AUTH_FAILED:20002,ERR_SVR_MSG_INVALID_ID:20003,ERR_SVR_MSG_PUSH_DENY:20006,ERR_SVR_MSG_IN_PEER_BLACKLIST:20007,ERR_SVR_MSG_BOTH_NOT_FRIEND:20009,ERR_SVR_MSG_NOT_PEER_FRIEND:20010,ERR_SVR_MSG_NOT_SELF_FRIEND:20011,ERR_SVR_MSG_SHUTUP_DENY:20012,ERR_SVR_GROUP_INVALID_PARAMETERS:10004,ERR_SVR_GROUP_PERMISSION_DENY:10007,ERR_SVR_GROUP_NOT_FOUND:10010,ERR_SVR_GROUP_INVALID_GROUPID:10015,ERR_SVR_GROUP_REJECT_FROM_THIRDPARTY:10016,ERR_SVR_GROUP_SHUTUP_DENY:10017,MESSAGE_SEND_FAIL:2100,OVER_FREQUENCY_LIMIT:2996},ms=[fa.MESSAGE_ONPROGRESS_FUNCTION_ERROR,fa.MESSAGE_IMAGE_SELECT_FILE_FIRST,fa.MESSAGE_IMAGE_TYPES_LIMIT,fa.MESSAGE_FILE_IS_EMPTY,fa.MESSAGE_IMAGE_SIZE_LIMIT,fa.MESSAGE_FILE_SELECT_FILE_FIRST,fa.MESSAGE_FILE_SIZE_LIMIT,fa.MESSAGE_VIDEO_SIZE_LIMIT,fa.MESSAGE_VIDEO_TYPES_LIMIT,fa.MESSAGE_AUDIO_UPLOAD_FAIL,fa.MESSAGE_AUDIO_SIZE_LIMIT,fa.COS_UNDETECTED];function vs(e){var t=!1;return Object.values(hs).includes(e)&&(t=!0),(e>=120001&&e<=13e4||e>=10100&&e<=10200)&&(t=!0),t}var gs=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="MessageModule",n._messageOptionsMap=new Map,n._mergerMessageHandler=new fs(m(n)),n}return i(r,[{key:"createTextMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new Ya(e),r="string"==typeof e.payload?e.payload:e.payload.text,o=new Ea({text:r}),a=this._getNickAndAvatarByUserID(t);return n.setElement(o),n.setNickAndAvatar(a),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createImageMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new Ya(e);if(ae){var r=e.payload.file;if(Ze(r))return void this.outputWarning("FileUnsupportedInMP","createImageMessage");var o=r.tempFiles[0].path||r.tempFiles[0].tempFilePath,a={url:o,name:o.slice(o.lastIndexOf("/")+1),size:r.tempFiles&&r.tempFiles[0].size||1,type:o.slice(o.lastIndexOf(".")+1).toLowerCase()};e.payload.file=a}else if(ie)if(Ze(e.payload.file)){var i=e.payload.file;e.payload.file={files:[i]}}else if(ot(e.payload.file)&&"undefined"!=typeof uni){var s=e.payload.file.tempFiles[0];e.payload.file={files:[s]}}var c=new ja({imageFormat:Ge.UNKNOWN,uuid:this._generateUUID(e.payload.file),file:e.payload.file}),l=this._getNickAndAvatarByUserID(t);return n.setElement(c),n.setNickAndAvatar(l),n.setNameCard(this._getNameCardByGroupID(n)),this._messageOptionsMap.set(n.clientSequence,e),n}},{key:"createAudioMessage",value:function(e){var t=e.payload.file;if(ae){var n={url:t.tempFilePath,name:t.tempFilePath.slice(t.tempFilePath.lastIndexOf("/")+1),size:t.fileSize,second:parseInt(t.duration)/1e3,type:t.tempFilePath.slice(t.tempFilePath.lastIndexOf(".")+1).toLowerCase()};e.payload.file=n}var r=this.getMyUserID();e.currentUser=r,e.senderTinyID=this.getMyTinyID();var o=new Ya(e),a=new La({second:Math.floor(t.duration/1e3),size:t.fileSize||t.size,url:t.tempFilePath,uuid:this._generateUUID(e.payload.file)}),i=this._getNickAndAvatarByUserID(r);return o.setElement(a),o.setNickAndAvatar(i),o.setNameCard(this._getNameCardByGroupID(o)),this._messageOptionsMap.set(o.clientSequence,e),o}},{key:"createVideoMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID(),e.payload.file.thumbUrl="",e.payload.file.thumbSize=0;var n={};if(ae){if(te)return void this.outputWarning("VideoUnsupportedInAlipay");if(Ze(e.payload.file))return void this.outputWarning("FileUnsupportedInMP","createVideoMessage");var r=e.payload.file;at(r.tempFiles)&&(r=r.tempFiles[0]),n.url=r.tempFilePath,n.name=r.tempFilePath.slice(r.tempFilePath.lastIndexOf("/")+1),n.size=r.size||1,n.second=r.duration||0,n.type=r.tempFilePath.slice(r.tempFilePath.lastIndexOf(".")+1).toLowerCase()}else if(ie){if(Ze(e.payload.file)){var o=e.payload.file;e.payload.file.files=[o]}else if(ot(e.payload.file)&&"undefined"!=typeof uni){var a=e.payload.file.tempFile;e.payload.file.files=[a]}var i=e.payload.file;n.url=window.URL.createObjectURL(i.files[0]),n.name=i.files[0].name,n.size=i.files[0].size||1,n.second=i.files[0].duration||0,n.type=i.files[0].type.split("/")[1]}e.payload.file.videoFile=n;var s=new Ya(e),c=new Va({videoFormat:n.type,videoSecond:Pt(n.second,0),videoSize:n.size,remoteVideoUrl:"",videoUrl:n.url,videoUUID:this._generateUUID(e.payload.file.videoFile),thumbUUID:this._generateUUID(e.payload.file.videoFile),thumbWidth:e.payload.file.width||200,thumbHeight:e.payload.file.height||200,thumbUrl:e.payload.file.thumbUrl,thumbSize:e.payload.file.thumbSize,thumbFormat:e.payload.file.thumbUrl.slice(e.payload.file.thumbUrl.lastIndexOf(".")+1).toLowerCase()}),l=this._getNickAndAvatarByUserID(t);return s.setElement(c),s.setNickAndAvatar(l),s.setNameCard(this._getNameCardByGroupID(s)),this._messageOptionsMap.set(s.clientSequence,e),s}},{key:"createCustomMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new Ya(e),r=new Ua({data:e.payload.data,description:e.payload.description,extension:e.payload.extension}),o=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createFaceMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new Ya(e),r=new Da(e.payload),o=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createMergerMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=this._getNickAndAvatarByUserID(t),r=new Ya(e),o=new Ga(e.payload);return r.setElement(o),r.setNickAndAvatar(n),r.setNameCard(this._getNameCardByGroupID(r)),r.setRelayFlag(!0),r}},{key:"createForwardMessage",value:function(e){var t=e.to,n=e.conversationType,r=e.priority,o=e.payload,a=e.needReadReceipt,i=e.receiverList,s=this.getMyUserID(),c=this._getNickAndAvatarByUserID(s);if(o.type===T.MSG_GRP_TIP)return Ja({code:fa.MESSAGE_FORWARD_TYPE_INVALID});var l={to:t,conversationType:n,conversationID:"".concat(n).concat(t),priority:r,isPlaceMessage:0,status:Qt.UNSEND,currentUser:s,senderTinyID:this.getMyTinyID(),cloudCustomData:e.cloudCustomData||o.cloudCustomData||"",needReadReceipt:a,receiverList:i,isSupportExtension:e.isSupportExtension||!1},u=new Ya(l);return u.setElement(o.getElements()[0]),u.setNickAndAvatar(c),u.setNameCard(this._getNameCardByGroupID(o)),u.setRelayFlag(!0),u}},{key:"downloadMergerMessage",value:function(e){return this._mergerMessageHandler.downloadMergerMessage(e)}},{key:"createFileMessage",value:function(e){if(ae){if(!X&&!Q&&!re)return;var t=se.getSystemInfoSync().SDKVersion;if(X&&At(t,"2.5.0")<0)return void this.outputWarning("WXChooseMessageFile");if(Q&&At(t,"1.18.0")<0)return void this.outputWarning("QQChooseMessageFile")}if(ie||re){if(Ze(e.payload.file)){var r=e.payload.file;e.payload.file={files:[r]}}else if(ot(e.payload.file)&&"undefined"!=typeof uni){var o=e.payload.file,a=o.tempFiles,i=o.files,s=null;at(a)?s=a[0]:at(i)&&(s=i[0]),e.payload.file={files:[s]}}}else if(X||Q){var c=e.payload.file.tempFiles,l=n(n({},c[0]),{},{url:c[0].path});e.payload.file={files:[l]}}var u=this.getMyUserID();e.currentUser=u,e.senderTinyID=this.getMyTinyID();var d=new Ya(e),p=new Pa({uuid:this._generateUUID(e.payload.file),file:e.payload.file}),f=this._getNickAndAvatarByUserID(u);return d.setElement(p),d.setNickAndAvatar(f),d.setNameCard(this._getNameCardByGroupID(d)),this._messageOptionsMap.set(d.clientSequence,e),d}},{key:"createLocationMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new Ya(e),r=new Ba(e.payload),o=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"_onCannotFindModule",value:function(){return Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"sendMessageInstance",value:function(e,t){var n=this;if(!1===this.getModule(rr).filterMessage(e,t))return this._onSendMessageFailed(e,new qa({code:fa.PROFANITY_FOUND}));var r,o=null;switch(e.conversationType){case T.CONV_C2C:if(!(o=this.getModule(Nn)))return this._onCannotFindModule();break;case T.CONV_GROUP:if(!(o=this.getModule(Rn)))return this._onCannotFindModule();if(Ct({groupID:e.to})){var a=o.getLocalGroupProfile(e.to);if(a&&a.isSupportTopic)return Ja({code:fa.MESSAGE_SEND_GROUP_WITH_TOPIC_FAIL})}break;default:return Ja({code:fa.MESSAGE_SEND_INVALID_CONVERSATION_TYPE})}var i=this.getModule(zn),s=this.getModule(Rn);return i.upload(e).then((function(){return n._getSendMessageSpecifiedKey(e)===ba&&n.getModule(er).addSuccessCount(ya),s.guardForAVChatRoom(e).then((function(){if(!e.isSendable())return Ja({code:fa.MESSAGE_FILE_URL_IS_EMPTY});n._addSendMessageTotalCount(e),r=Date.now();var a=function(e){var t="utf-8";ie&&document&&(t=document.charset.toLowerCase());var n,r,o=0;if(r=e.length,"utf-8"===t||"utf8"===t)for(var a=0;a<r;a++)(n=e.codePointAt(a))<=127?o+=1:n<=2047?o+=2:n<=65535?o+=3:(o+=4,a++);else if("utf-16"===t||"utf16"===t)for(var i=0;i<r;i++)(n=e.codePointAt(i))<=65535?o+=2:(o+=4,i++);else o=e.replace(/[^\x00-\xff]/g,"aa").length;return o}(JSON.stringify(e));return e.type===T.MSG_MERGER&&a>11264?n._mergerMessageHandler.uploadMergerMessage(e,a).then((function(r){var o=n._mergerMessageHandler.createMergerMessagePack(e,t,r);return n.request(o)})):(n.getModule(Vn).setMessageRandom(e),e.conversationType===T.CONV_C2C||e.conversationType===T.CONV_GROUP?o.sendMessage(e,t):void 0)})).then((function(a){var i=a.data,s=i.time,c=i.sequence,l=i.readReceiptCode;et(l)&&0!==l&&(new Ia("sendMessageWithReceipt").setMessage("from:".concat(e.from," to:").concat(e.to," sequence:").concat(c," readReceiptCode:").concat(l)).end(),Fe.w("".concat(n._n,".sendMessageInstance readReceiptCode:").concat(l," message:").concat(n.getErrorMessage(l)))),n._addSendMessageSuccessCount(e,r),n._messageOptionsMap.delete(e.clientSequence);var u=n.getModule(Vn);e.status=Qt.SUCCESS,e.time=s;var d=!1;if(e.conversationType===T.CONV_GROUP)e.sequence=c;else if(e.conversationType===T.CONV_C2C){var p=u.getLatestMessageSentByMe(e.conversationID);if(p){var f=p.nick,h=p.avatar;f===e.nick&&h===e.avatar||(d=!0)}}if(d&&u.modifyMessageSentByMe({conversationID:e.conversationID,latestNick:e.nick,latestAvatar:e.avatar}),o.isOnlineMessage(e,t))e._onlineOnlyFlag=!0;else{u.appendToMessageList(e);var m=e;ot(t)&&ot(t.messageControlInfo)&&(!0===t.messageControlInfo.excludedFromLastMessage&&(e._isExcludedFromLastMessage=!0,m=""),!0===t.messageControlInfo.excludedFromUnreadCount&&(e._isExcludedFromUnreadCount=!0));var v=e.conversationType;wt(e.to)&&(v=T.CONV_TOPIC,n.getModule(Un).onMessageSent({groupID:Bt(e.to),topicID:e.to,lastMessage:m})),u.onMessageSent({conversationOptionsList:[{conversationID:e.conversationID,unreadCount:0,type:v,subType:e.conversationSubType,lastMessage:m}]})}return e.getRelayFlag()||"TIMImageElem"!==e.type||Rt(e.payload.imageInfoArray),za({message:e})}))})).catch((function(t){return n._onSendMessageFailed(e,t)}))}},{key:"_onSendMessageFailed",value:function(e,t){e.status=Qt.FAIL,this.getModule(Vn).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new Ia("sendMessage");return n.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to)),this.probeNetwork().then((function(e){var r=_(e,2),o=r[0],a=r[1];n.setError(t,o,a).end()})),Fe.e("".concat(this._n,"._onSendMessageFailed error:"),t),Ja(new qa({code:t&&t.code?t.code:fa.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:void 0,data:{message:e}}))}},{key:"_getSendMessageSpecifiedKey",value:function(e){if([T.MSG_IMAGE,T.MSG_AUDIO,T.MSG_VIDEO,T.MSG_FILE].includes(e.type))return ba;if(e.conversationType===T.CONV_C2C)return va;if(e.conversationType===T.CONV_GROUP){var t=this.getModule(Rn).getLocalGroupProfile(e.to);if(!t)return;var n=t.type;return kt(n)?_a:ga}}},{key:"_addSendMessageTotalCount",value:function(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule(er).addTotalCount(t)}},{key:"_addSendMessageSuccessCount",value:function(e,t){var n=Math.abs(Date.now()-t),r=this._getSendMessageSpecifiedKey(e);if(r){var o=this.getModule(er);o.addSuccessCount(r),o.addCost(r,n)}}},{key:"_addSendMessageFailCountOnUser",value:function(e,t){var n,r,o=t.code,a=void 0===o?-1:o,i=this.getModule(er),s=this._getSendMessageSpecifiedKey(e);s===ba&&(n=a,r=!1,ms.includes(n)&&(r=!0),r)?i.addFailedCountOfUserSide(ya):vs(a)&&s&&i.addFailedCountOfUserSide(s)}},{key:"resendMessage",value:function(e){return e.isResend=!0,e.status=Qt.UNSEND,this.sendMessageInstance(e)}},{key:"revokeMessage",value:function(e){var t=this,n=null;if(e.conversationType===T.CONV_C2C?n=this.getModule(Nn):e.conversationType===T.CONV_GROUP&&(n=this.getModule(Rn)),!n)return this._onCannotFindModule();var r=new Ia("revokeMessage");r.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to));var o="".concat(this._n,".").concat("revokeMessage");return n.revokeMessage(e).then((function(n){var a=n.data.recallRetList;if(!Kt(a)&&0!==a[0].retCode){var i=new qa({code:a[0].retCode,data:{message:e}});return r.setCode(i.code).setMoreMessage(i.message).end(),Ja(i)}return Fe.i("".concat(o," ok. ID:").concat(e.ID)),e.isRevoked=!0,r.end(),t.getModule(Vn).onMessageRevoked([e]),za({message:e})})).catch((function(n){t.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];r.setError(n,o,a).end()}));var a=new qa({code:n&&n.code?n.code:fa.MESSAGE_REVOKE_FAIL,message:n&&n.message?n.message:void 0,data:{message:e}});return Fe.w("".concat(o," failed. error:"),n),Ja(a)}))}},{key:"deleteMessage",value:function(e){var t=this,n=null,r=e[0],o=r.conversationID,a="",i=[],s=[];if(r.conversationType===T.CONV_C2C)n=this.getModule(Nn),a=o.replace(T.CONV_C2C,""),e.forEach((function(e){e&&e.status===Qt.SUCCESS&&e.conversationID===o&&(e._onlineOnlyFlag||i.push("".concat(e.sequence,"_").concat(e.random,"_").concat(e.time)),s.push(e))}));else if(r.conversationType===T.CONV_GROUP)n=this.getModule(Rn),a=o.replace(T.CONV_GROUP,""),e.forEach((function(e){e&&e.status===Qt.SUCCESS&&e.conversationID===o&&(e._onlineOnlyFlag||i.push("".concat(e.sequence)),s.push(e))}));else if(r.conversationType===T.CONV_SYSTEM)return Ja({code:fa.CANNOT_DELETE_GROUP_SYSTEM_NOTICE});if(!n)return this._onCannotFindModule();if(0===i.length)return this._onMessageDeleted(s);i.length>30&&(i=i.slice(0,30),s=s.slice(0,30));var c=new Ia("deleteMessage");c.setMessage("to:".concat(a," count:").concat(i.length));var l="".concat(this._n,".").concat("deleteMessage");return n.deleteMessage({to:a,keyList:i}).then((function(e){return c.end(),Fe.i("".concat(l," ok")),t._onMessageDeleted(s)})).catch((function(e){t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Fe.w("".concat(l," failed. error:"),e);var n=new qa({code:e&&e.code?e.code:fa.MESSAGE_DELETE_FAIL,message:e&&e.message?e.message:void 0});return Ja(n)}))}},{key:"_onMessageDeleted",value:function(e){return this.getModule(Vn).onMessageDeleted(e),$a({messageList:e})}},{key:"translateText",value:function(e){var t="".concat(this._n,".").concat("translateText"),r=e.sourceTextList,o=e.sourceLanguage,a=e.targetLanguage,i=new Ia("translateText");return i.setMessage("sourceLanguage:".concat(o," targetLanguage:").concat(a)),this.request({protocolName:pa,requestData:{sourceTextList:r,source:o||"auto",target:a,from:this.getMyTinyID(),SDKAppID:this.getSDKAppID()}}).then((function(e){var r=e.data,o=r.error,a=r.requestID,s=r.translatedTextList;if(0===o.code)return i.end(),Fe.i("".concat(t," ok. requestID:").concat(a)),za({translatedTextList:s});throw n(n({},o),{},{requestID:a})})).catch((function(e){return i.setCode(e.code).setMoreMessage(e.requestID).end(),Fe.w("".concat(t," failed. error:"),e),Ja({code:fa.TRANSLATE_TEXT_FAIL})}))}},{key:"modifyRemoteMessage",value:function(e){var t=this,n=null,r=e.conversationType,o=e.to;if(this.getModule(Rn).isMessageFromOrToAVChatroom(o))return Ja({code:fa.MESSAGE_MODIFY_DISABLED_IN_AVCHATROOM,data:{message:e}});if(!1===this.getModule(rr).filterMessage(e))return Ja({code:fa.PROFANITY_FOUND,data:{message:e}});r===T.CONV_C2C?n=this.getModule(Nn):r===T.CONV_GROUP&&(n=this.getModule(Rn));var a=new Ia("modifyMessage");a.setMessage("to:".concat(o));var i="".concat(this._n,".modifyRemoteMessage");return n.modifyRemoteMessage(e).then((function(n){a.end(),Fe.i("".concat(i," ok"));var r=t._onModifyRemoteMessageResp(e,n.data);return za({message:r})})).catch((function(n){if(a.setCode(n.code).setMoreMessage(n.message).end(),Fe.w("".concat(i," failed. error:"),n),20027===n.code){var r=t._onModifyRemoteMessageResp(e,n.data);return Ja({code:fa.MESSAGE_MODIFY_CONFLICT,data:{message:r}})}return Ja({code:n.code,message:n.message,data:{message:e}})}))}},{key:"_onModifyRemoteMessageResp",value:function(e,t){Fe.d("".concat(this._n,"._onModifyRemoteMessageResp options:"),t);var n=e.conversationType,r=e.from,o=e.to,a=e.random,i=e.sequence,s=e.time,c=t.elements,l=t.messageVersion,u=t.cloudCustomData,d=void 0===u?"":u;return this.getModule(Vn).onMessageModified({conversationType:n,from:r,to:o,time:s,random:a,sequence:i,elements:c,cloudCustomData:d,messageVersion:l})}},{key:"_generateUUID",value:function(e){var t=this.getModule(Bn),n="".concat(t.getSDKAppID(),"-").concat(t.getUserID(),"-").concat(function(){for(var e="",t=32;t>0;--t)e+=vt[Math.floor(Math.random()*gt)];return e}()),r=e.name||e.value||e.url||e.tempFilePath,o=r&&r.slice(r.lastIndexOf(".")+1);return o&&(n="".concat(n,".").concat(o)),n}},{key:"getMessageOption",value:function(e){return this._messageOptionsMap.get(e)}},{key:"_getNickAndAvatarByUserID",value:function(e){return this.getModule(An).getNickAndAvatarByUserID(e)}},{key:"_getNameCardByGroupID",value:function(e){if(e.conversationType===T.CONV_GROUP){var t=this.getModule(Rn);if(t)return t.getMyNameCardByGroupID(e.to)}return""}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._messageOptionsMap.clear()}}]),r}(sr),_s=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="MessageExtensionModule",r.messageExtensionMap=new Map,r.globalSeqMap=new Map,r.getMessageExtensionsMap=new Map,r}return i(n,[{key:"onMessageExtensionNotify",value:function(e){var t=this,n=e.dataList,r=n.messageInfo,o=n.operateType,a=n.operateResultList,i=n.tinyID,s=n.globalSequence,c=r.clientTime,l=r.random,u="".concat(i,"-").concat(c,"-").concat(l),d=[],p=[];Fe.l("".concat(this._n,".onMessageExtensionNotify messageID:").concat(u," operateType:").concat(o," globalSequence:").concat(s)),this._updateGlobalSequence(u,s);var f=!1,h=!1;a.forEach((function(e){var n=e.extensions,r=void 0===n?[]:n,a=e.clearSequence;1===o?(f=!0,r.forEach((function(e){d.push({key:e.key,value:e.value})})),t._updateLocalExtension(u,r)):2===o?(h=!0,r.forEach((function(e){p.push(e.key)})),t._updateLocalExtension(u,r)):3===o&&(h=!0,t._hasLocalExtension(u)&&t._getLocalExtension(u).forEach((function(e,t){e.seq<=a&&!Kt(e.value)&&p.push(t)})),t._clearLocalExtension(u,a))})),f&&this.emitOuterEvent(S.MESSAGE_EXTENSIONS_UPDATED,{messageID:u,extensions:d}),h&&this.emitOuterEvent(S.MESSAGE_EXTENSIONS_DELETED,{messageID:u,keyList:p})}},{key:"setMessageExtensions",value:function(e,t){var n=this;if(!this.canIUse(H.MSG_EXT))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var r="".concat(this._n,".").concat("setMessageExtensions"),o=e.ID,a=e.conversationID,i=e.sequence,s=e.time,c=b(t);t.length>20&&(c=t.slice(0,20),Fe.w("".concat(r,". the length of extensions cannot exceed 20.")));var l="conversationID:".concat(a," messageID:").concat(o," sequence:").concat(i," time:").concat(s," count:").concat(c.length),u=new Ia("setMessageExtensions");return u.setMessage(l),Fe.l("".concat(r," ").concat(l)),this._modifyMessageExtensions(e,c).then((function(e){var t=e.resultList,n=e.successCount,o=e.failureCount,a="success count:".concat(n," fail count:").concat(o);return u.setMoreMessage(a).end(),Fe.l("".concat(r," ok. ").concat(a)),za({extensions:t})})).catch((function(e){return n.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setError(e,r,o).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}},{key:"getMessageExtensions",value:function(e){var t=this;if(!this.canIUse(H.MSG_EXT))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("getMessageExtensions"),r=e.ID,o=e.conversationID,a=e.sequence,i=e.time,s="conversationID:".concat(o," messageID:").concat(r," sequence:").concat(a," time:").concat(i),c=new Ia("getMessageExtensions");c.setMessage(s),Fe.l("".concat(n," ").concat(s));var l=void 0;return this.getMessageExtensionsMap.has(r)&&(l=this._getGlobalSequence(r)),this._getMessageExtensions(e,l).then((function(e){return c.end(),Fe.l("".concat(n," ok. total count:").concat(e.length)),it(l)&&e.length>0&&t.getMessageExtensionsMap.set(r,1),za({extensions:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"deleteMessageExtensions",value:function(e,t){var n=this;if(!this.canIUse(H.MSG_EXT))return Ja({code:fa.CANNOT_USE_COMMERCIAL_ABILITY});var r="".concat(this._n,".").concat("deleteMessageExtensions"),o=[],a=3;Kt(t)||(a=2,t.forEach((function(e){o.push({key:e,value:"",seq:0})})));var i=e.ID,s=e.conversationID,c=e.sequence,l=e.time,u="conversationID:".concat(s," messageID:").concat(i," sequence:").concat(c," time:").concat(l," operateType:").concat(a),d=new Ia("deleteMessageExtensions");return d.setMessage(u),Fe.l("".concat(r," ").concat(u)),this._modifyMessageExtensions(e,o,a).then((function(e){var t=e.resultList,n=e.successCount,o=e.failureCount,i="";return 2===a&&(i="success count:".concat(n," fail count:").concat(o)),d.setMoreMessage("".concat(i)).end(),Fe.l("".concat(r," ok. ").concat(i)),za({extensions:t})})).catch((function(e){return n.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];d.setError(e,r,o).end()})),Fe.e("".concat(r," failed. error:"),e),Ja(e)}))}},{key:"_modifyMessageExtensions",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=wt(e.to)?T.CONV_TOPIC:e.conversationType,a=void 0;3!==r&&(a=this._getRequestExtensions(e,t));var i=null;switch(o){case T.CONV_C2C:i=this.getModule(Nn);break;case T.CONV_GROUP:i=this.getModule(Rn);break;case T.CONV_TOPIC:i=this.getModule(Un);break;default:return Ja({code:fa.CANNOT_FIND_MODULE})}return i.modifyMessageExtensions(e,a,r).then((function(t){var r=t.data,o=r.extensions,a=r.seq,i=[],s=0,c=0,l=[];return(o=Kt(o)?[]:o).forEach((function(e){var t=e.errorCode,n=e.extension,r=n.key,o=n.value,a=n.seq;i.push({code:t,key:r,value:o}),0===t?s++:c++,l.push({key:r,value:o,seq:a})})),n._updateGlobalSequence(e.ID,a),l.length>0&&(n._updateLocalExtension(e.ID,l),l=null),{resultList:i,successCount:s,failureCount:c}})).catch((function(e){return Ja(e)}))}},{key:"_getRequestExtensions",value:function(e,t){var n=[];if(this._hasLocalExtension(e.ID)){var r=this._getLocalExtension(e.ID);return t.forEach((function(e){var t=e.key,o=e.value,a=0;r.has(t)&&(a=r.get(t).seq),n.push({key:t,value:o,seq:a})})),n}return t.forEach((function(e){var t=e.key,r=e.value;n.push({key:t,value:r,seq:0})})),n}},{key:"_getMessageExtensions",value:function(e,t){var n=this,r="".concat(this._n,"._getMessageExtensions"),o=e.ID,a=e.to,i=null;switch(wt(a)?T.CONV_TOPIC:e.conversationType){case T.CONV_C2C:i=this.getModule(Nn);break;case T.CONV_GROUP:i=this.getModule(Rn);break;case T.CONV_TOPIC:i=this.getModule(Un);break;default:return Ja({code:fa.CANNOT_FIND_MODULE})}return i.getMessageExtensions(e,t).then((function(t){var a=t.data,i=a.extensions,s=a.completeFlag,c=a.globalSequence,l=a.clearSequence;if(i=Kt(i)?[]:i,Fe.l("".concat(r," ok. completeFlag:").concat(s," globalSequence:").concat(c," clearSequence:").concat(l," count:").concat(i.length)),n._updateLocalExtension(o,i),n._clearLocalExtension(o,l),n._updateGlobalSequence(o,c),1!==s){var u=i.slice(-1)[0].seq+1;return n._getMessageExtensions(e,u)}return n._getLocalExtensions(o)})).catch((function(e){return Ja(e)}))}},{key:"_hasLocalExtension",value:function(e){return this.messageExtensionMap.has(e)}},{key:"_getLocalExtension",value:function(e){return this.messageExtensionMap.get(e)}},{key:"_updateLocalExtension",value:function(e,t){this._hasLocalExtension(e)||this.messageExtensionMap.set(e,new Map);var n=this._getLocalExtension(e);t.forEach((function(e){var t=e.key,r=e.value,o=void 0===r?"":r,a=e.seq;n.set(t,{value:o,seq:a})}))}},{key:"_clearLocalExtension",value:function(e,t){if(!(t<=0)&&this._hasLocalExtension(e)){var n=this._getLocalExtension(e);n.forEach((function(e,r){e.seq<=t&&n.delete(r)}))}}},{key:"_getLocalExtensions",value:function(e){var t=[];return this._hasLocalExtension(e)&&this._getLocalExtension(e).forEach((function(e,n){var r=e.value;Kt(r)||t.push({key:n,value:r})})),t}},{key:"_getGlobalSequence",value:function(e){return this.globalSeqMap.get(e)}},{key:"_updateGlobalSequence",value:function(e,t){this.globalSeqMap.set(e,t)}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this.messageExtensionMap.clear(),this.globalSeqMap.clear(),this.getMessageExtensionsMap.clear()}}]),n}(sr),bs=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="ComboMessageModule",r}return i(n,[{key:"sendMessage",value:function(e){var t=this,n=this._constructMessageInstance(e);if(null===n)return Ja({code:fa.MESSAGE_SEND_FAIL});this._addSendMessageTotalCount(n);var r=Date.now();return this.getModule(Vn).setMessageRandom(n),this._sendComboMessage(n,e).then((function(e){var o=e.data,a=o.time,i=o.sequence,s=o.readReceiptCode;et(s)&&0!==s&&(new Ia("sendMessageWithReceipt").setMessage("from:".concat(n.from," to:").concat(n.to," sequence:").concat(i," readReceiptCode:").concat(s)).end(),Fe.w("".concat(t._n,".sendMessage readReceiptCode:").concat(s," message:").concat(t.getErrorMessage(s)))),t._addSendMessageSuccessCount(n,r);var c=t.getModule(Vn);n.status=Qt.SUCCESS,n.time=a,n.conversationType===T.CONV_GROUP&&(n.sequence=i),c.appendToMessageList(n);var l=n;return!0===n._isExcludedFromLastMessage&&(l=""),c.onMessageSent({conversationOptionsList:[{conversationID:n.conversationID,unreadCount:0,type:n.conversationType,subType:n.conversationSubType,lastMessage:l}]}),za({message:n})})).catch((function(e){return t._onSendMessageFailed(n,e)}))}},{key:"_sendComboMessage",value:function(e,t){var n=this._m.getModule(Kn),r="";return e.conversationType===T.CONV_C2C&&(r="".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SEND_MESSAGE)),e.conversationType===T.CONV_GROUP&&(r="".concat(G.NAME.GROUP,".").concat(G.CMD.SEND_GROUP_MESSAGE)),n.sendComboMessage({servcmd:r,data:t})}},{key:"_constructMessageInstance",value:function(e){var t="".concat(this._n,"._constructMessageInstance"),n=null;try{var r=this.getMyUserID(),o={};if(o.senderTinyID=this.getMyTinyID(),o.currentUser=r,o.from=e.From_Account||r,e.GroupId?(o.conversationID="".concat(T.CONV_GROUP).concat(e.GroupId),o.conversationType=T.CONV_GROUP,o.to=e.GroupId):e.To_Account&&(o.conversationID="".concat(T.CONV_C2C).concat(e.To_Account),o.conversationType=T.CONV_C2C,o.to=e.To_Account),o.time=e.MsgTimeStamp||0,o.random=e.Random||e.MsgRandom||0,o.priority=e.MsgPriority,nt(e.CloudCustomData)&&e.CloudCustomData.length>0&&(o.cloudCustomData=e.CloudCustomData),at(e.SendMsgControl)&&(o.messageControlInfo={},e.SendMsgControl.includes("NoUnread")&&(o.messageControlInfo.excludedFromUnreadCount=1),e.SendMsgControl.includes("NoLastMsg")&&(o.messageControlInfo.excludedFromLastMessage=1)),o.conversationType===T.CONV_GROUP&&at(e.To_Account)&&e.To_Account.length>0){var a=e.To_Account;e.To_Account.length>50&&(a=e.To_Account.slice(0,50),Fe.w("".concat(t," To_Account must be less than or equal to 50."))),o.receiverList=b(a),e.To_Account=b(a)}1!==e.IsNeedReadReceipt&&1!==e.NeedReadReceipt||(o.needReadReceipt=!0),1===e.SupportMessageExtension&&(o.isSupportExtension=!0),(n=new Ya(o)).status=Qt.UNSEND,e.MsgClientTime=n.clientTime,n.conversationType===T.CONV_C2C&&(e.MsgSeq=n.sequence);for(var i,s=e.MsgBody.length,c=0;c<s;c++)"TIMTextElem"===(i=e.MsgBody[c]).MsgType?n.setTextElement(i.MsgContent.Text):"TIMCustomElem"===i.MsgType?n.setCustomElement({data:i.MsgContent.Data||"",description:i.MsgContent.Desc||"",extension:i.MsgContent.Ext||""}):"TIMFaceElem"===i.MsgType&&n.setFaceElement({index:i.MsgContent.Index,data:i.MsgContent.Data});var l=n.getElements();n.payload=l[0].content,n.type=l[0].type}catch(d){n=null,Fe.e("".concat(t," failed. error:"),d)}return n}},{key:"_onSendMessageFailed",value:function(e,t){e.status=Qt.FAIL,this.getModule(Vn).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new Ia("sendMessage");return n.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to)),this.probeNetwork().then((function(e){var r=_(e,2),o=r[0],a=r[1];n.setError(t,o,a).end()})),Fe.e("".concat(this._n,"._onSendMessageFailed error:"),t),Ja(new qa({code:t&&t.code?t.code:fa.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:void 0,data:{message:e}}))}},{key:"_getSendMessageSpecifiedKey",value:function(e){if(e.conversationType===T.CONV_C2C)return va;if(e.conversationType===T.CONV_GROUP){var t=this.getModule(Rn).getLocalGroupProfile(e.to);if(!t)return;var n=t.type;return kt(n)?_a:ga}}},{key:"_addSendMessageTotalCount",value:function(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule(er).addTotalCount(t)}},{key:"_addSendMessageSuccessCount",value:function(e,t){var n=Math.abs(Date.now()-t),r=this._getSendMessageSpecifiedKey(e);if(r){var o=this.getModule(er);o.addSuccessCount(r),o.addCost(r,n)}}},{key:"_addSendMessageFailCountOnUser",value:function(e,t){var n=t.code,r=void 0===n?-1:n,o=this.getModule(er),a=this._getSendMessageSpecifiedKey(e);vs(r)&&a&&o.addFailedCountOfUserSide(a)}}]),n}(sr),ys=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="PluginModule",r.plugins={},r}return i(n,[{key:"registerPlugin",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.plugins[n]=e[n]})),new Ia("registerPlugin").setMessage("".concat(Object.keys(e))).end()}},{key:"getPlugin",value:function(e){return this.plugins[e]}},{key:"reset",value:function(){}}]),n}(sr),Os=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="SyncUnreadMessageModule",n._cookie="",n._onlineSyncFlag=!1,n.getInnerEmitterInstance().on(Za,n._onLoginSuccess,m(n)),n}return i(r,[{key:"_onLoginSuccess",value:function(e){this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"_startSync",value:function(e){var t=this,r=e.cookie,o=e.syncFlag,a=e.isOnlineSync,i="".concat(this._n,"._startSync");Fe.l("".concat(i," cookie:").concat(r," syncFlag:").concat(o," isOnlineSync:").concat(a)),this.request({protocolName:pr,requestData:{cookie:r,syncFlag:o,isOnlineSync:a}}).then((function(e){var r=e.data,o=r.cookie,a=r.syncFlag;t._cookie=o,Kt(o)||(0===a||1===a?(t._dispatchUnreadMessage(n(n({},e.data),{},{isSyncingEnded:!1})),t._startSync({cookie:o,syncFlag:a,isOnlineSync:0})):2===a&&t._dispatchUnreadMessage(n(n({},e.data),{},{isSyncingEnded:!0})))})).catch((function(e){Fe.e("".concat(i," failed. error:"),e)}))}},{key:"_dispatchUnreadMessage",value:function(e){e.eventArray&&this.getModule(Kn).onMessage({head:{},body:{eventArray:e.eventArray,isInstantMessage:this._onlineSyncFlag,isSyncingEnded:e.isSyncingEnded}}),this.getModule(Nn).onNewC2CMessage({dataList:e.messageList,isInstantMessage:!!e.isSyncingEnded&&this._onlineSyncFlag,C2CRemainingUnreadList:e.C2CRemainingUnreadList,C2CPairUnreadList:e.C2CPairUnreadList})}},{key:"startOnlineSync",value:function(){Fe.l("".concat(this._n,".startOnlineSync")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:1})}},{key:"startSyncOnReconnected",value:function(){Fe.l("".concat(this._n,".startSyncOnReconnected.")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._onlineSyncFlag=!1,this._cookie=""}}]),r}(sr),Ms={request:{toAccount:"To_Account",fromAccount:"From_Account",to:"To_Account",from:"From_Account",groupID:"GroupId",groupAtUserID:"GroupAt_Account",extension:"Ext",data:"Data",description:"Desc",elements:"MsgBody",sizeType:"Type",downloadFlag:"Download_Flag",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",videoUrl:"",imageUrl:"URL",fileUrl:"Url",uuid:"UUID",priority:"MsgPriority",receiverUserID:"To_Account",receiverGroupID:"GroupId",messageSender:"SenderId",messageReceiver:"ReceiverId",nick:"From_AccountNick",avatar:"From_AccountHeadurl",messageNumber:"MsgNum",pbDownloadKey:"PbMsgKey",downloadKey:"JsonMsgKey",applicationType:"PendencyType",userIDList:"To_Account",groupNameList:"GroupName",userID:"To_Account",groupAttributeList:"GroupAttr",mainSequence:"AttrMainSeq",avChatRoomKey:"BytesKey",attributeControl:"AttrControl",sequence:"seq",messageControlInfo:"SendMsgControl",updateSequence:"UpdateSeq",clientTime:"MsgClientTime",sequenceList:"MsgSeqList",topicID:"TopicId",customData:"CustomString",isSupportTopic:"SupportTopic",isWebUniapp:"is_web_uniapp",isSupportExtension:"SupportMessageExtension",messageSequence:"MsgSeq",messageKey:"MsgKey",startSequence:"startSeq",simplifiedMessage:"DownsizeFlag"},response:{MsgPriority:"priority",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID",Download_Flag:"downloadFlag",GroupId:"groupID",Member_Account:"userID",MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",MsgSeq:"sequence",MsgRandom:"random",MsgTime:"time",MsgTimeStamp:"time",MsgContent:"content",MsgBody:"elements",From_AccountNick:"nick",From_AccountHeadurl:"avatar",GroupWithdrawInfoArray:"revokedInfos",GroupReadInfoArray:"groupMessageReadNotice",LastReadMsgSeq:"lastMessageSeq",WithdrawC2cMsgNotify:"c2cMessageRevokedNotify",C2cWithdrawInfoArray:"revokedInfos",C2cReadedReceipt:"c2cMessageReadReceipt",ReadC2cMsgNotify:"c2cMessageReadNotice",LastReadTime:"peerReadTime",MsgRand:"random",MsgType:"type",MsgShow:"messageShow",NextMsgSeq:"nextMessageSeq",FaceUrl:"avatar",ProfileDataMod:"profileModify",Profile_Account:"userID",ValueBytes:"value",ValueNum:"value",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgFrom_AccountExtraInfo:"messageFromAccountExtraInformation",Operator_Account:"operatorID",OpType:"operationType",ReportType:"operationType",UserId:"userID",User_Account:"userID",List_Account:"userIDList",MsgOperatorMemberExtraInfo:"operatorInfo",MsgMemberExtraInfo:"memberInfoList",ImageUrl:"avatar",NickName:"nick",MsgGroupNewInfo:"newGroupProfile",MsgAppDefinedData:"groupCustomField",Owner_Account:"ownerID",GroupFaceUrl:"avatar",GroupIntroduction:"introduction",GroupNotification:"notification",GroupApplyJoinOption:"joinOption",MsgKey:"messageKey",GroupInfo:"groupProfile",ShutupTime:"muteTime",Desc:"description",Ext:"extension",GroupAt_Account:"groupAtUserID",MsgNum:"messageNumber",PbMsgKey:"pbDownloadKey",JsonMsgKey:"downloadKey",MsgModifiedFlag:"isModified",PendencyItem:"applicationItem",PendencyType:"applicationType",AddTime:"time",AddSource:"source",AddWording:"wording",ProfileImImage:"avatar",PendencyAdd:"friendApplicationAdded",FrienPencydDel_Account:"friendApplicationDeletedUserIDList",Peer_Account:"userID",GroupAttr:"groupAttributeList",GroupAttrAry:"groupAttributeList",AttrMainSeq:"mainSequence",seq:"sequence",GroupAttrOption:"groupAttributeOption",BytesChangedKeys:"changedKeyList",GroupAttrInfo:"groupAttributeList",GroupAttrSeq:"mainSequence",PushChangedAttrValFlag:"isWithChangedAttributeInfo",SubKeySeq:"sequence",Val:"value",MsgGroupFromCardName:"senderNameCard",MsgGroupFromNickName:"senderNick",C2cNick:"peerNick",C2cImage:"peerAvatar",SendMsgControl:"messageControlInfo",NoLastMsg:"excludedFromLastMessage",NoUnread:"excludedFromUnreadCount",UpdateSeq:"updateSequence",MuteNotifications:"muteFlag",MsgClientTime:"clientTime",TinyId:"tinyID",GroupMsgReceiptList:"readReceiptList",ReadNum:"readCount",UnreadNum:"unreadCount",TopicId:"topicID",MillionGroupFlag:"communityType",SupportTopic:"isSupportTopic",MsgTopicNewInfo:"newTopicInfo",ShutupAll:"muteAllMembers",CustomString:"customData",TopicFaceUrl:"avatar",TopicIntroduction:"introduction",TopicNotification:"notification",TopicIdArray:"topicIDList",MsgVersion:"messageVersion",C2cMsgModNotifys:"c2cMessageModified",GroupMsgModNotifys:"groupMessageModified",ApplyJoinOption:"joinOption",MsgFlag:"messageRemindType",AtInfoList:"groupAtInfoList",AtFlagList:"groupAtType",AtMsgSeq:"sequence",BanDuration:"duration",BanDescription:"reason",NotVisible:"invisible",BytesTag:"tag",BytesValue:"value",RptBytesValue:"value",LatestSeq:"globalSequence",ClearSeq:"clearSequence",SupportMessageExtension:"isSupportExtension",ExtensionList:"extensions",GroupCounter:"counterList",Revoker_Account:"revoker",MsgExtensionNotify:"messageExtensionNotify",ExtensionC2cMsgInfo:"messageInfo",ExtensionGroupMsgInfo:"messageInfo",MsgOptType:"operateType",SetKVInfo:"operateResultList",DeleteKVInfo:"operateResultList",ClearKVInfo:"operateResultList",MsgKeyValue:"extensions",ClearMsgSeq:"clearSequence",MsgLastSeq:"globalSequence",InviteJoinOption:"inviteOption",MemberList_Account:"inviteeList",MsgMemberExtraInfoList:"inviteeInfoList",E:"event",GInf:"groupProfile",MCT:"clientTime",MR:"random",MP:"priority",MTS:"time",GId:"groupID",MS:"sequence",CCD:"cloudCustomData",F_Account:"from",F_Hd:"avatar",F_NN:"nick",GN:"groupName",GT:"groupType",IsSys:"isSystemMessage",OpInf:"operatorInfo",Img:"avatar",NN:"nick",OnlineInf:"onlineMemberInfo",ET:"expireTime",Num:"onlineMemberNum",Opt:"operationType",O_Account:"operatorID",RT:"operationType",UDF:"userDefinedField",L_Account:"userIDList"},ignoreKeyWord:["C2C","ID","USP"]};function ks(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");var n;return t=Object.assign({pascalCase:!1},t),0===(e=Array.isArray(e)?e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join("-"):e.trim()).length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=Cs(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})).replace(/\d+(\w|$)/g,(function(e){return e.toUpperCase()})),n=e,t.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n)}var Cs=function(e){for(var t=!1,n=!1,r=!1,o=0;o<e.length;o++){var a=e[o];t&&/[a-zA-Z]/.test(a)&&a.toUpperCase()===a?(e=e.slice(0,o)+"-"+e.slice(o),t=!1,r=n,n=!0,o++):n&&r&&/[a-zA-Z]/.test(a)&&a.toLowerCase()===a?(e=e.slice(0,o-1)+"-"+e.slice(o-1),r=n,n=!1,t=!0):(t=a.toLowerCase()===a&&a.toUpperCase()!==a,r=n,n=a.toUpperCase()===a&&a.toLowerCase()!==a)}return e};function ws(e,t){var n=0;return function e(t,r){if(++n>100)return n--,t;if(at(t)){var o=t.map((function(t){return rt(t)?e(t,r):t}));return n--,o}if(rt(t)){var a=(i=t,s=function(e,t){if(!dt(t))return!1;if((o=t)!==ks(o))for(var n=0;n<Ms.ignoreKeyWord.length&&!t.includes(Ms.ignoreKeyWord[n]);n++);var o;return it(r[t])?function(e){return"OPPOChannelID"===e?e:e[0].toUpperCase()+ks(e).slice(1)}(t):r[t]},c=Object.create(null),Object.keys(i).forEach((function(e){var t=s(i[e],e);t&&(c[t]=i[e])})),c);return a=Et(a,(function(t,n){return at(t)||rt(t)?e(t,r):t})),n--,a}var i,s,c}(e,t)}function Ss(e,t){if(at(e))return e.map((function(e){return rt(e)?Ss(e,t):e}));if(rt(e)){var n=(r=e,o=function(e,n){return it(t[n])?ks(n):t[n]},a={},Object.keys(r).forEach((function(e){a[o(r[e],e)]=r[e]})),a);return Et(n,(function(e){return at(e)||rt(e)?Ss(e,t):e}))}var r,o,a}var Ts=String.fromCharCode,Is=function(e){var t=0|e.charCodeAt(0);if(55296<=t)if(t<56320){var n=0|e.charCodeAt(1);if(56320<=n&&n<=57343){if((t=(t<<10)+n-56613888|0)>65535)return Ts(240|t>>>18,128|t>>>12&63,128|t>>>6&63,128|63&t)}else t=65533}else t<=57343&&(t=65533);return t<=2047?Ts(192|t>>>6,128|63&t):Ts(224|t>>>12,128|t>>>6&63,128|63&t)},Es=function(e){for(var t=void 0===e?"":(""+e).replace(/[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,Is),n=0|t.length,r=new Uint8Array(n),o=0;o<n;o=o+1|0)r[o]=0|t.charCodeAt(o);return r},js=function(e){for(var t=new Uint8Array(e),n="",r=0,o=t.length;r<o;){var a=t[r],i=0,s=0;if(a<=127?(i=0,s=255&a):a<=223?(i=1,s=31&a):a<=239?(i=2,s=15&a):a<=244&&(i=3,s=7&a),o-r-i>0)for(var c=0;c<i;)s=s<<6|63&(a=t[r+c+1]),c+=1;else s=65533,i=o-r;n+=String.fromCodePoint(s),r+=i+1}return n},Ds=function(){function e(t){o(this,e),this._handler=t;var n=t.getURL();if(this._socket=null,this._workerSocket=null,this._id=mt(),this._handler.getIsWorkerEnabled()){var r=URL.createObjectURL(new Blob([';let _socket = null;onmessage = function(event) { if (event.data.cmd === "start") { const url = event.data.url; _socket = new WebSocket(url); _socket.binaryType = "arraybuffer"; _socket.onopen = function() { postMessage({ callback: "onOpen" }); }; _socket.onclose = function(e) { postMessage({ callback: "onOpen", e: { code: e.code, reason: e.reason } }); }; _socket.onmessage = function(e) { postMessage({ callback: "onMessage", data: e.data }); }; _socket.onerror = function(e) { postMessage({ callback: "onError", e: { isTrusted: "true" } }); }; } else if (event.data.cmd === "sendMessage") { if (_socket !== null) { _socket.send(event.data.data); } } else if (event.data.cmd === "stop") { if (_socket !== null) { _socket.close(event.data.code); _socket = null; } }};'],{type:"application/javascript; charset=utf-8"}));this._workerSocket=new Worker(r);var a=this;this._workerSocket.onmessage=function(e){var t=e.data,n=t.callback,r=t.e;"onOpen"===n?a._onOpen():"onClose"===n?a._onClose(r):"onError"===n?a._onError(r):"onMessage"===n&&a._onMessage(e.data)},this._workerSocket.postMessage({cmd:"start",id:this._id,url:n})}else ae?te?(se.connectSocket({url:n,header:{"content-type":"application/json"}}),se.onSocketClose(this._onClose.bind(this)),se.onSocketOpen(this._onOpen.bind(this)),se.onSocketMessage(this._onMessage.bind(this)),se.onSocketError(this._onError.bind(this))):(this._socket=se.connectSocket({url:n,header:{"content-type":"application/json"},complete:function(){}}),this._socket.onClose(this._onClose.bind(this)),this._socket.onOpen(this._onOpen.bind(this)),this._socket.onMessage(this._onMessage.bind(this)),this._socket.onError(this._onError.bind(this))):ie&&(this._socket=new WebSocket(n),this._socket.binaryType="arraybuffer",this._socket.onopen=this._onOpen.bind(this),this._socket.onmessage=this._onMessage.bind(this),this._socket.onclose=this._onClose.bind(this),this._socket.onerror=this._onError.bind(this));this._canIUseBinaryFrame=t.canIUseBinaryFrame()}return i(e,[{key:"getID",value:function(){return this._id}},{key:"_onOpen",value:function(){this._handler.onOpen({id:this._id})}},{key:"_onClose",value:function(e){this._handler.onClose({id:this._id,e:e})}},{key:"_onMessage",value:function(e){this._handler.onMessage({data:this._canIUseBinaryFrame?js(e.data):e.data})}},{key:"_onError",value:function(e){this._handler.onError({id:this._id,e:e})}},{key:"setIsWorkerEnabled",value:function(e){this._isWorkerEnabled=!0}},{key:"close",value:function(e){if(this._workerSocket&&(this._workerSocket.postMessage({cmd:"stop",code:e}),this._workerSocket.terminate(),this._workerSocket=null),te)return se.offSocketClose(),se.offSocketMessage(),se.offSocketOpen(),se.offSocketError(),void se.closeSocket();this._socket&&(ae?(this._socket.onClose((function(){})),this._socket.onOpen((function(){})),this._socket.onMessage((function(){})),this._socket.onError((function(){}))):ie&&(this._socket.onopen=null,this._socket.onmessage=null,this._socket.onclose=null,this._socket.onerror=null),ee?this._socket.close({code:e}):this._socket.close(e),this._socket=null)}},{key:"send",value:function(e){if(this._workerSocket)this._workerSocket.postMessage({cmd:"sendMessage",data:this._canIUseBinaryFrame?Es(e.data).buffer:e.data});else{if(te)return void se.sendSocketMessage({data:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}});this._socket&&(ae?this._socket.send({data:this._canIUseBinaryFrame?Es(e.data).buffer:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}}):ie&&this._socket.send(this._canIUseBinaryFrame?Es(e.data).buffer:e.data))}}}]),e}(),Ls=4e3,As=4001,Ns=["keyMap"],Rs=["keyMap"],xs="connected",Ps="connecting",Us="disconnected",Vs=function(){function e(t){o(this,e),this._channelModule=t,this._n="SocketHandler",this._promiseMap=new Map,this._readyState=Us,this._simpleRequestMap=new Map,this.MAX_SIZE=100,this._startSequence=mt(),this._startTs=0,this._reConnectFlag=!1,this._nextPingTs=0,this._reConnectCount=0,this.MAX_RECONNECT_COUNT=3,this._socketID=-1,this._random=0,this._socket=null,this._url="",this._onOpenTs=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0,this._setWebsocketHost(),this._initConnection()}return i(e,[{key:"_setWebsocketHost",value:function(){var e=this._channelModule.getModule(Bn),t=N;this._channelModule.isOversea()&&(t=R),e.isSingaporeSite()?t=x:e.isKoreaSite()?t=P:e.isGermanySite()?t=U:e.isIndiaSite()?t=V:e.isJapanSite()?t=B:e.isUSASite()&&(t=F),G.HOST.setCurrent(t)}},{key:"_initConnection",value:function(){it(G.HOST.CURRENT.BACKUP)||""===this._url?this._url=G.HOST.CURRENT.DEFAULT:this._url===G.HOST.CURRENT.DEFAULT?this._url=G.HOST.CURRENT.BACKUP:this._url===G.HOST.CURRENT.BACKUP?this._url=this._canIUseAnyCast()?G.HOST.CURRENT.ANYCAST:G.HOST.CURRENT.DEFAULT:this._url===G.HOST.CURRENT.ANYCAST&&(G.HOST.CURRENT.ANYCAST="",this._url=G.HOST.CURRENT.DEFAULT);var e=this._channelModule.getModule(Bn).getProxyServer();Kt(e)||(this._url=e),this._connect(),this._nextPingTs=0}},{key:"_canIUseAnyCast",value:function(){return ie&&G.HOST.CURRENT.ANYCAST}},{key:"onCheckTimer",value:function(e){e%1==0&&this._checkPromiseMap()}},{key:"_checkPromiseMap",value:function(){var e=this;0!==this._promiseMap.size&&this._promiseMap.forEach((function(t,n){var r=t.reject,o=t.timestamp,a=15e3;-1!==n.indexOf(cr)&&(a=9e4),Date.now()-o>=a&&(Fe.l("".concat(e._n,"._checkPromiseMap request timeout, delete requestID:").concat(n)),e._promiseMap.delete(n),r(new qa({code:fa.NETWORK_TIMEOUT})),e._channelModule.onRequestTimeout(n))}))}},{key:"onOpen",value:function(e){if(""!==this._readyState){this._onOpenTs=Date.now();var t=e.id;this._socketID=t;var n=Date.now()-this._startTs;Fe.l("".concat(this._n,"._onOpen cost ").concat(n," ms. socketID:").concat(t)),new Ia("wsOnOpen").setMessage(n).setCostTime(n).setMoreMessage("socketID:".concat(t)).end(),e.id===this._socketID&&(this._readyState=xs,this._reConnectCount=0,this._resend(),!0===this._reConnectFlag&&(this._channelModule.onReconnected(),this._reConnectFlag=!1),this._channelModule.onOpen())}}},{key:"onClose",value:function(e){var t=new Ia("wsOnClose"),n=e.id,r=e.e,o="sourceSocketID:".concat(n," currentSocketID:").concat(this._socketID," code:").concat(r.code," reason:").concat(r.reason),a=0;0!==this._onOpenTs&&(a=Date.now()-this._onOpenTs),t.setMessage(a).setCostTime(a).setMoreMessage(o).setCode(r.code).end(),Fe.l("".concat(this._n,"._onClose ").concat(o," onlineTime:").concat(a)),n===this._socketID&&(this._readyState=Us,a<1e3?this._channelModule.onReconnectFailed():this._channelModule.onClose())}},{key:"onError",value:function(e){var t=e.id,n=e.e,r="sourceSocketID:".concat(t," currentSocketID:").concat(this._socketID);new Ia("wsOnError").setMessage(n.errMsg||ft(n)).setMoreMessage(r).setLevel("error").end(),Fe.w("".concat(this._n,"._onError"),n,r),t===this._socketID&&(this._readyState="",this._channelModule.onError())}},{key:"onMessage",value:function(e){var t;try{t=JSON.parse(e.data)}catch(u){new Ia("jsonParseError").setMessage(e.data).end()}if(t&&t.head){var n=this._getRequestIDFromHead(t.head),r=t.body;if(!n.startsWith(G.NAME.TUIROOM_SVR)){var o=xt(t.head);r=Ss(t.body,this._getResponseKeyMap(o))}if(Fe.d("".concat(this._n,".onMessage ret:").concat(JSON.stringify(r)," requestID:").concat(n," has:").concat(this._promiseMap.has(n))),this._setNextPingTs(),this._promiseMap.has(n)){var a=this._promiseMap.get(n),i=a.resolve,s=a.reject,c=a.timestamp;return this._promiseMap.delete(n),this._calcRTT(c),void(r.errorCode&&0!==r.errorCode?(this._channelModule.onErrorCodeNotZero(r),s(new qa({code:r.errorCode,message:r.errorInfo||"",data:n.includes(Ir)||n.includes(bo)?{elements:r.elements,messageVersion:r.messageVersion,cloudCustomData:r.cloudCustomData}:void 0}))):i(za(r)))}this._channelModule.onMessage({head:t.head,body:r})}}},{key:"_calcRTT",value:function(e){var t=Date.now()-e;this._channelModule.getModule(er).addRTT(t)}},{key:"_connect",value:function(){this._startTs=Date.now(),this._onOpenTs=0,this._socket=new Ds(this),this._socketID=this._socket.getID(),this._readyState=Ps,Fe.l("".concat(this._n,"._connect isWorkerEnabled:").concat(this.getIsWorkerEnabled()," socketID:").concat(this._socketID," url:").concat(this.getURL())),new Ia("wsConnect").setMessage("socketID:".concat(this._socketID," url:").concat(this.getURL())).end()}},{key:"getURL",value:function(){this._channelModule.isDevMode()&&(this._canIUseBinaryFrame=!1);var e=Lt();(te||X&&"windows"===e||re)&&(this._canIUseBinaryFrame=!1);var t=-1;"ios"===e?t=_e||-1:"android"===e&&(t=ye||-1);var n=this._channelModule.getModule(Bn),r=this._channelModule.getPlatform(),o=n.getSDKAppID(),a=n.getInstanceID(),i="sdkappid=".concat(o,"&instanceid=").concat(a,"&random=").concat(this._getRandom(),"&platform=").concat(r,"&host=").concat(e,"&version=").concat(t);return this._canIUseBinaryFrame?"".concat(this._url,"/binfo?").concat(i):"".concat(this._url,"/info?").concat(i)}},{key:"_closeConnection",value:function(e){Fe.l("".concat(this._n,"._closeConnection socketID:").concat(this._socketID)),this._socket&&(this._socket.close(e),this._socketID=-1,this._socket=null,this._readyState=Us)}},{key:"_resend",value:function(){var e=this;if(Fe.l("".concat(this._n,"._resend reConnectFlag:").concat(this._reConnectFlag),"promiseMap.size:".concat(this._promiseMap.size," simpleRequestMap.size:").concat(this._simpleRequestMap.size)),this._promiseMap.size>0&&this._promiseMap.forEach((function(t,n){var r=t.uplinkData,o=t.resolve,a=t.reject;e._promiseMap.set(n,{resolve:o,reject:a,timestamp:Date.now(),uplinkData:r}),e._execute(n,r)})),this._simpleRequestMap.size>0){var t,n=w(this._simpleRequestMap);try{for(n.s();!(t=n.n()).done;){var r=_(t.value,2),o=r[0],a=r[1];this._execute(o,a)}}catch(s){n.e(s)}finally{n.f()}this._simpleRequestMap.clear()}}},{key:"send",value:function(e){var t=this;e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var n=h(e,Ns),r=this._getRequestIDFromHead(e.head),o=JSON.stringify(n);return new Promise((function(e,a){t._promiseMap.set(r,{resolve:e,reject:a,timestamp:Date.now(),uplinkData:o}),Fe.d("".concat(t._n,".send uplinkData:").concat(JSON.stringify(n)," requestID:").concat(r," readyState:").concat(t._readyState)),t._readyState!==xs?t._reConnect():(t._execute(r,o),t._channelModule.getModule(er).addRequestCount())}))}},{key:"simplySend",value:function(e){e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var t=h(e,Rs),n=this._getRequestIDFromHead(e.head),r=JSON.stringify(t);this._readyState!==xs?(this._simpleRequestMap.size<this.MAX_SIZE?this._simpleRequestMap.set(n,r):Fe.l("".concat(this._n,".simplySend. simpleRequestMap is full, drop request!")),this._reConnect()):this._execute(n,r)}},{key:"_execute",value:function(e,t){this._socket.send({data:t,fail:ae?this._onSendFail.bind(this):void 0,requestID:e})}},{key:"_onSendFail",value:function(e){Fe.l("".concat(this._n,"._onSendFail requestID:").concat(e))}},{key:"_getSequence",value:function(){var e;if(this._startSequence<2415919103)return e=this._startSequence,this._startSequence+=1,2415919103===this._startSequence&&(this._startSequence=mt()),e}},{key:"_getRequestIDFromHead",value:function(e){return e.servcmd+e.seq}},{key:"_getResponseKeyMap",value:function(e){var t=this._channelModule.getKeyMap(e);return n(n({},Ms.response),t.response)}},{key:"_reConnect",value:function(){this._readyState!==xs&&this._readyState!==Ps&&this.forcedReconnect()}},{key:"forcedReconnect",value:function(){var e=this,t="".concat(this._n,".forcedReconnect");Fe.l("".concat(t," count:").concat(this._reConnectCount," readyState:").concat(this._readyState)),this._reConnectFlag=!0,this._resetRandom(),this._reConnectCount<this.MAX_RECONNECT_COUNT?(this._reConnectCount+=1,this._closeConnection(As),this._initConnection()):(this._reConnectCount=0,this._channelModule.probeNetwork().then((function(n){var r=_(n,2),o=r[0];r[1],o?(Fe.w("".concat(t," disconnected from wsserver but network is ok, continue...")),e._closeConnection(As),e._initConnection()):e._channelModule.onReconnectFailed()})))}},{key:"getReconnectFlag",value:function(){return this._reConnectFlag}},{key:"_setNextPingTs",value:function(){this._nextPingTs=Date.now()+1e4}},{key:"getNextPingTs",value:function(){return this._nextPingTs}},{key:"isConnected",value:function(){return this._readyState===xs}},{key:"canIUseBinaryFrame",value:function(){return this._canIUseBinaryFrame}},{key:"setIsWorkerEnabled",value:function(e){Fe.l("".concat(this._n,".setIsWorkerEnabled flag:").concat(e)),this._isWorkerEnabled=e}},{key:"getIsWorkerEnabled",value:function(){return this._isWorkerEnabled&&Te}},{key:"_getRandom",value:function(){return 0===this._random&&(this._random=Math.random()),this._random}},{key:"_resetRandom",value:function(){this._random=0}},{key:"close",value:function(){Fe.l("".concat(this._n,".close")),this._closeConnection(Ls),this._promiseMap.clear(),this._startSequence=mt(),this._readyState=Us,this._simpleRequestMap.clear(),this._reConnectFlag=!1,this._reConnectCount=0,this._onOpenTs=0,this._url="",this._random=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0}}]),e}(),Bs=function(e){c(n,e);var t=g(n);function n(e){var r;if(o(this,n),(r=t.call(this,e))._n="ChannelModule",r._socketHandler=new Vs(m(r)),r._probing=!1,r._isAppShowing=!0,r._previousState=T.NET_STATE_CONNECTED,ae&&"function"==typeof se.onAppShow&&"function"==typeof se.onAppHide){var a=r._onAppHide.bind(m(r)),i=r._onAppShow.bind(m(r));"function"==typeof se.offAppHide&&se.offAppHide(a),"function"==typeof se.offAppShow&&se.offAppShow(i),se.onAppHide(a),se.onAppShow(i)}return r._timerForNotLoggedIn=-1,r._timerForNotLoggedIn=setInterval(r.onCheckTimer.bind(m(r)),1e3),r._fatalErrorFlag=!1,r}return i(n,[{key:"onCheckTimer",value:function(e){this._socketHandler&&(this.isLoggedIn()?(this._timerForNotLoggedIn>0&&(clearInterval(this._timerForNotLoggedIn),this._timerForNotLoggedIn=-1),this._socketHandler.onCheckTimer(e)):this._socketHandler.onCheckTimer(1),this._checkNextPing())}},{key:"onErrorCodeNotZero",value:function(e){this.getModule(Kn).onErrorCodeNotZero(e)}},{key:"onMessage",value:function(e){this.getModule(Kn).onMessage(e)}},{key:"send",value:function(e){return this._socketHandler?this._previousState!==T.NET_STATE_CONNECTED&&e.head.servcmd.includes(Fo)?(this.reConnect(),this._sendLogViaHTTP(e)):this._socketHandler.send(e):Promise.reject()}},{key:"_sendLogViaHTTP",value:function(e){var t=G.HOST.CURRENT.STAT;return new Promise((function(n,r){var o="".concat(t,"/v4/imopenstat/tim_web_report_v2?sdkappid=").concat(e.head.sdkappid,"&reqtime=").concat(Date.now()),a=JSON.stringify(e.body),i="application/x-www-form-urlencoded;charset=UTF-8";if(ae)se.request({url:o,data:a,method:"POST",timeout:3e3,header:{"content-type":i},success:function(){n()},fail:function(){r(new qa({code:fa.NETWORK_ERROR}))}});else{var s=new XMLHttpRequest,c=setTimeout((function(){s.abort(),r(new qa({code:fa.NETWORK_TIMEOUT}))}),3e3);s.onreadystatechange=function(){4===s.readyState&&(clearTimeout(c),200===s.status||304===s.status?n():r(new qa({code:fa.NETWORK_ERROR})))},s.open("POST",o,!0),s.setRequestHeader("Content-type",i),s.send(a)}}))}},{key:"simplySend",value:function(e){return this._socketHandler?this._socketHandler.simplySend(e):Promise.reject()}},{key:"onOpen",value:function(){this._ping()}},{key:"onClose",value:function(){this._socketHandler&&this._socketHandler.getReconnectFlag()&&this._emitNetStateChangeEvent(T.NET_STATE_DISCONNECTED),this.reConnect()}},{key:"onError",value:function(){ae&&!re&&this.outputWarning("DomainNameInMP"),this._emitNetStateChangeEvent(T.NET_STATE_DISCONNECTED)}},{key:"getKeyMap",value:function(e){return this.getModule(Kn).getKeyMap(e)}},{key:"_onAppHide",value:function(){this._isAppShowing=!1}},{key:"_onAppShow",value:function(){this._isAppShowing=!0}},{key:"onRequestTimeout",value:function(e){}},{key:"onReconnected",value:function(){Fe.l("".concat(this._n,".onReconnected")),this._m.restartTimer(),this.getModule(Kn).onReconnected(),this._emitNetStateChangeEvent(T.NET_STATE_CONNECTED)}},{key:"onReconnectFailed",value:function(){Fe.l("".concat(this._n,".onReconnectFailed")),this._emitNetStateChangeEvent(T.NET_STATE_DISCONNECTED)}},{key:"setIsWorkerEnabled",value:function(e){this._socketHandler&&this._socketHandler.setIsWorkerEnabled(!1)}},{key:"offline",value:function(){this._emitNetStateChangeEvent(T.NET_STATE_DISCONNECTED)}},{key:"reConnect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!1;this._socketHandler&&(t=this._socketHandler.getReconnectFlag());var n="forcedFlag:".concat(e," fatalErrorFlag:").concat(this._fatalErrorFlag," previousState:").concat(this._previousState," reconnectFlag:").concat(t);if(Fe.l("".concat(this._n,".reConnect ").concat(n)),!this._fatalErrorFlag&&this._socketHandler){if(!0===e)this._socketHandler.forcedReconnect();else{if(this._previousState===T.NET_STATE_CONNECTING&&t)return;this._socketHandler.forcedReconnect()}this._emitNetStateChangeEvent(T.NET_STATE_CONNECTING)}}},{key:"_emitNetStateChangeEvent",value:function(e){this._previousState!==e&&(Fe.l("".concat(this._n,"._emitNetStateChangeEvent from ").concat(this._previousState," to ").concat(e)),this._previousState=e,this.emitOuterEvent(S.NET_STATE_CHANGE,{state:e}))}},{key:"_ping",value:function(){var e=this;if(!0!==this._probing){this._probing=!0;var t=this.getModule(Kn).getProtocolData({protocolName:Go});this.send(t).then((function(){e._probing=!1})).catch((function(t){if(Fe.w("".concat(e._n,"._ping failed. error:"),t),e._probing=!1,t&&60002===t.code)return new Ia("error").setMessage("code:".concat(t.code," message:").concat(t.message)).setNetworkType(e.getModule(Hn).getNetworkType()).end(),e._fatalErrorFlag=!0,void e._emitNetStateChangeEvent(T.NET_STATE_DISCONNECTED);e.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];Fe.l("".concat(e._n,"._ping failed. probe network, isAppShowing:").concat(e._isAppShowing," online:").concat(r," networkType:").concat(o)),r?e.reConnect():e._emitNetStateChangeEvent(T.NET_STATE_DISCONNECTED)}))}))}}},{key:"_checkNextPing",value:function(){this._socketHandler&&this._socketHandler.isConnected()&&Date.now()>=this._socketHandler.getNextPingTs()&&this._ping()}},{key:"dealloc",value:function(){this._socketHandler&&(this._socketHandler.close(),this._socketHandler=null),this._timerForNotLoggedIn>-1&&clearInterval(this._timerForNotLoggedIn)}},{key:"onRestApiKickedOut",value:function(){this._socketHandler&&(this._socketHandler.close(),this.reConnect(!0))}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._previousState=T.NET_STATE_CONNECTED,this._probing=!1,this._fatalErrorFlag=!1,this._timerForNotLoggedIn=setInterval(this.onCheckTimer.bind(this),1e3)}}]),n}(sr),Fs=["a2","tinyid"],Gs=["a2","tinyid"],Hs=function(){function e(t){o(this,e),this._n="ProtocolHandler",this._sessionModule=t,this._configMap=new Map,this._fillConfigMap()}return i(e,[{key:"_fillConfigMap",value:function(){this._configMap.clear();var e=this._sessionModule.genCommonHead(),t=this._sessionModule.genCosSpecifiedHead(),r=this._sessionModule.genSSOReportHead(),o=this._sessionModule.isIntl();this._configMap.set(cr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.LOGIN)}),body:{state:"Online",isWebUniapp:0,deviceBrand:0},keyMap:{request:{deviceBrand:"InstType"},response:{InstId:"instanceID",HelloInterval:"helloInterval"}}}}(e)),this._configMap.set(lr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.LOGOUT)}),body:{type:0},keyMap:{request:{type:"wslogout_type"}}}}(e)),this._configMap.set(ur,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.HELLO)}),body:{isWebUniapp:0},keyMap:{response:{NewInstInfo:"newInstanceInfo"}}}}(e)),this._configMap.set(dr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.STAT_SERVICE,".").concat(G.CMD.KICK_OTHER)}),body:{}}}(e)),this._configMap.set(Uo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_COS_SIGN,".").concat(G.CMD.COS_SIGN)}),body:{cmd:"open_im_cos_svc",subCmd:"get_cos_token",duration:300,version:2},keyMap:{request:{userSig:"usersig",subCmd:"sub_cmd",cmd:"cmd",duration:"duration",version:"version"},response:{expired_time:"expiredTime",bucket_name:"bucketName",session_token:"sessionToken",tmp_secret_id:"secretId",tmp_secret_key:"secretKey"}}}}(t)),this._configMap.set(Vo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.CUSTOM_UPLOAD,".").concat(G.CMD.COS_PRE_SIG)}),body:{fileType:void 0,fileName:void 0,uploadMethod:0,duration:900},keyMap:{request:{userSig:"usersig",fileType:"file_type",fileName:"file_name",uploadMethod:"upload_method"},response:{expired_time:"expiredTime",request_id:"requestId",head_url:"headUrl",upload_url:"uploadUrl",download_url:"downloadUrl",ci_url:"ciUrl",snapshot_url:"requestSnapshotUrl"}}}}(t)),this._configMap.set(Bo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.CUSTOM_UPLOAD,".").concat(G.CMD.VIDEO_COVER)}),body:{version:1,platform:void 0,coverName:void 0,requestSnapshotUrl:void 0},keyMap:{request:{version:"version",platform:"platform",coverName:"cover_name",requestSnapshotUrl:"snapshot_url"},response:{error_code:"errorCode",error_msg:"errorInfo",download_url:"snapshotUrl"}}}}(t)),this._configMap.set(Xo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_CONFIG_MANAGER,".").concat(G.CMD.FETCH_COMMERCIAL_CONFIG)}),body:{SDKAppID:0},keyMap:{request:{SDKAppID:"uint32_sdkappid"},response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}}}(e)),this._configMap.set(Qo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_CONFIG_MANAGER,".").concat(G.CMD.PUSHED_COMMERCIAL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}}}(e)),this._configMap.set($o,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_CONFIG_MANAGER,".").concat(G.CMD.FETCH_CLOUD_CONTROL_CONFIG)}),body:{SDKAppID:0,version:0},keyMap:{request:{SDKAppID:"uint32_sdkappid",version:"uint64_version"},response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}}}(e)),this._configMap.set(Jo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_CONFIG_MANAGER,".").concat(G.CMD.PUSHED_CLOUD_CONTROL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}}}(e)),this._configMap.set(Zo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OVERLOAD_PUSH,".").concat(G.CMD.OVERLOAD_NOTIFY)}),body:{},keyMap:{response:{OverLoadServCmd:"overloadCommand",DelaySecs:"waitingTime"}}}}(e)),this._configMap.set(pr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.GET_MESSAGES)}),body:{cookie:"",syncFlag:0,needAbstract:1,isOnlineSync:0,needSignaling:1},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",from:"From_Account",to:"To_Account",time:"MsgTimeStamp",sequence:"MsgSeq",random:"MsgRandom",elements:"MsgBody"},response:{MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",ClientSeq:"clientSequence",MsgSeq:"sequence",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgRandom:"random",MsgTimeStamp:"time",MsgContent:"content",ToGroupId:"to",MsgKey:"messageKey",GroupTips:"groupTips",MsgBody:"elements",MsgType:"type",C2CRemainingUnreadCount:"C2CRemainingUnreadList",C2CPairUnreadCount:"C2CPairUnreadList"}}}}(e)),o||(this._configMap.set(fr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.BIG_DATA_HALLWAY_AUTH_KEY)}),body:{}}}(e)),this._configMap.set(da,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_MSG_AUDIT_MGR,".").concat(G.CMD.GET_RPOFANITY_LIST)}),body:{version:0,deviceID:"",startIndex:void 0},keyMap:{request:{version:"uint64_version",deviceID:"str_device_id",startIndex:"uint64_start_index"},response:{msg_cmd_error_code:"errorInfo",str_err_msg:"errorMessage",uint32_code:"errorCode",msg_scene_ctl_config:"filterConfig",uint64_c2c_custom_msg_flag:"c2c_custom_message",uint64_c2c_text_msg_flag:"c2c_text_message",uint64_group_custom_msg_flag:"group_custom_message",uint64_group_text_msg_flag:"group_text_message",uint64_group_info_flag:"group_profile",uint64_group_member_info_flag:"group_member_profile",uint64_relation_chain_flag:"sns",uint64_user_info_flag:"user_profile",rpt_msg_dirty_word:"lexicon",str_dirty_word:"profanity",str_replaced_content:"replacement",uint64_filter_type:"filterType",uint64_id:"id",uint64_word_type:"profanityType",uint64_complete_flag:"completeFlag",uint64_next_start_index:"nextStartIndex",uint64_version:"version",uint64_expired_time:"expiredTime"}}}}(e))),this._configMap.set(hr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SEND_MESSAGE)}),body:{fromAccount:"",toAccount:"",msgSeq:0,msgRandom:0,msgBody:[],cloudCustomData:void 0,nick:"",avatar:"",msgLifeTime:void 0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{badgeMode:0,isVoipPush:void 0},androidInfo:{OPPOChannelID:""}},messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0,isSupportExtension:0},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",count:"MaxCnt",lastMessageTime:"LastMsgTime",messageKey:"MsgKey",peerAccount:"Peer_Account",data:"Data",description:"Desc",extension:"Ext",type:"MsgType",content:"MsgContent",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",nick:"From_AccountNick",avatar:"From_AccountHeadurl",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody",needReadReceipt:"IsNeedReadReceipt"}}}}(e)),this._configMap.set(mr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SEND_GROUP_MESSAGE)}),body:{fromAccount:"",groupID:"",random:0,clientSequence:0,priority:"",msgBody:[],cloudCustomData:void 0,onlineOnlyFlag:0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{badgeMode:0,isVoipPush:void 0},androidInfo:{OPPOChannelID:""}},groupAtInfo:[],messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0,topicID:void 0,receiverList:void 0,isSupportExtension:0},keyMap:{request:{to:"GroupId",extension:"Ext",data:"Data",description:"Desc",random:"Random",sequence:"ReqMsgSeq",count:"ReqMsgNumber",type:"MsgType",priority:"MsgPriority",content:"MsgContent",elements:"MsgBody",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",clientSequence:"ClientSeq",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody",needReadReceipt:"NeedReadReceipt",receiverList:"To_Account"},response:{MsgTime:"time",MsgSeq:"sequence"}}}}(e)),this._configMap.set(Or,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.REVOKE_C2C_MESSAGE)}),body:{msgInfo:{fromAccount:"",toAccount:"",msgTimeStamp:0,msgSeq:0,msgRandom:0}},keyMap:{request:{msgInfo:"MsgInfo",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom"}}}}(e)),this._configMap.set(oo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.REVOKE_GROUP_MESSAGE)}),body:{groupID:"",msgSeqList:void 0,topicID:""},keyMap:{request:{msgSeqList:"MsgSeqList",msgSeq:"MsgSeq"}}}}(e)),this._configMap.set(wr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.GET_C2C_ROAM_MESSAGES)}),body:{peerAccount:"",count:15,lastMessageTime:0,messageKey:"",withRecalledMessage:1,direction:0},keyMap:{request:{messageKey:"MsgKey",peerAccount:"Peer_Account",count:"MaxCnt",lastMessageTime:"LastMsgTime",withRecalledMessage:"WithRecalledMsg",direction:"GetDirection"},response:{LastMsgTime:"lastMessageTime",IsNeedReadReceipt:"needReadReceipt",IsPeerRead:"readReceiptSentByPeer"}}}}(e)),this._configMap.set(Ir,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.MODIFY_C2C_MESSAGE)}),body:{from:"",to:"",sequence:0,random:0,time:0,version:0,elements:void 0,cloudCustomData:void 0},keyMap:{request:{sequence:"MsgSeq",random:"MsgRandom",time:"MsgTime",version:"MsgVersion",type:"MsgType",content:"MsgContent"}}}}(e)),this._configMap.set(so,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_ROAM_MESSAGES)}),body:{withRecalledMsg:1,groupID:"",count:15,sequence:"",topicID:void 0},keyMap:{request:{sequence:"ReqMsgSeq",count:"ReqMsgNumber",withRecalledMessage:"WithRecalledMsg"},response:{Random:"random",MsgTime:"time",MsgSeq:"sequence",ReqMsgSeq:"sequence",RspMsgList:"messageList",IsPlaceMsg:"isPlaceMessage",IsSystemMsg:"isSystemMessage",ToGroupId:"to",EnumFrom_AccountType:"fromAccountType",EnumTo_AccountType:"toAccountType",GroupCode:"groupCode",MsgPriority:"priority",MsgBody:"elements",MsgType:"type",MsgContent:"content",IsFinished:"complete",Download_Flag:"downloadFlag",ClientSeq:"clientSequence",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID",ToTopicId:"topicID",InvisibleMsgSeq:"invisibleSequenceList"}}}}(e)),this._configMap.set(Mr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SET_C2C_MESSAGE_READ)}),body:{C2CMsgReaded:void 0},keyMap:{request:{lastMessageTime:"LastedMsgTime"}}}}(e)),this._configMap.set(kr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{userIDList:void 0,muteFlag:0},keyMap:{request:{userIDList:"Peer_Account",muteFlag:"Mute_Notifications"}}}}(e)),this._configMap.set(Cr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.GET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{updateSequence:0},keyMap:{response:{MuteNotificationsList:"muteFlagList"}}}}(e)),this._configMap.set(ao,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SET_GROUP_MESSAGE_READ)}),body:{groupID:void 0,messageReadSeq:void 0,topicID:void 0},keyMap:{request:{messageReadSeq:"MsgReadedSeq"}}}}(e)),this._configMap.set(io,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SET_ALL_MESSAGE_READ)}),body:{readAllC2CMessage:0,groupMessageReadInfoList:[]},keyMap:{request:{readAllC2CMessage:"C2CReadAllMsg",groupMessageReadInfoList:"GroupReadInfo",messageSequence:"MsgSeq"},response:{C2CReadAllMsg:"readAllC2CMessage",GroupReadInfoArray:"groupMessageReadInfoList"}}}}(e)),this._configMap.set(Tr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.DELETE_C2C_MESSAGE)}),body:{fromAccount:"",to:"",keyList:void 0},keyMap:{request:{keyList:"MsgKeyList"}}}}(e)),this._configMap.set(_o,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.DELETE_GROUP_MESSAGE)}),body:{groupID:"",deleter:"",keyList:void 0,topicID:void 0},keyMap:{request:{deleter:"Deleter_Account",keyList:"Seqs"}}}}(e)),this._configMap.set(pa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_TRANSLATE,".").concat(G.CMD.TRANSLATE_TEXT)}),body:{sourceTextList:void 0,SDKAppID:0,from:0,source:"",target:""},keyMap:{request:{sourceTextList:"SourceText",SDKAppID:"SdkAppId",from:"FromAccount"},response:{TargetText:"translatedTextList",RequestId:"requestID",CmdErrorCode:"error",ErrorCode:"code",ErrorInfo:"message"}}}}(e)),this._configMap.set(bo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.MODIFY_GROUP_MESSAGE)}),body:{groupID:"",topicID:void 0,sequence:0,version:0,elements:void 0,cloudCustomData:void 0},keyMap:{request:{sequence:"MsgSeq",version:"MsgVersion",type:"MsgType",content:"MsgContent"}}}}(e)),this._configMap.set(co,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_READ_RECEIPT)}),body:{groupID:"",sequenceList:void 0},keyMap:{request:{sequence:"MsgSeq"}}}}(e)),this._configMap.set(uo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SEND_C2C_READ_RECEIPT)}),body:{peerAccount:"",messageInfoList:void 0},keyMap:{request:{peerAccount:"Peer_Account",messageInfoList:"C2CMsgInfo",fromAccount:"From_Account",toAccount:"To_Account",sequence:"MsgSeq",random:"MsgRandom",time:"MsgTime",clientTime:"MsgClientTime"}}}}(e)),this._configMap.set(lo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SEND_READ_RECEIPT)}),body:{groupID:"",sequenceList:void 0},keyMap:{request:{sequenceList:"MsgSeqList",sequence:"MsgSeq"}}}}(e)),this._configMap.set(po,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_READ_RECEIPT_DETAIL)}),body:{groupID:"",sequence:void 0,flag:0,cursor:0,count:0},keyMap:{request:{sequence:"MsgSeq",count:"Num"},response:{ReadList:"readUserIDList",Read_Account:"userID",UnreadList:"unreadUserIDList",Unread_Account:"userID",IsFinish:"isCompleted"}}}}(e)),this._configMap.set(Er,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM_MSG_EXT,".").concat(G.CMD.MODIFY_C2C_MESSAGE_EXTENSIONS)}),body:{from:void 0,to:void 0,messageKey:void 0,operateType:void 0,extensionList:void 0}}}(e)),this._configMap.set(jr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM_MSG_EXT,".").concat(G.CMD.GET_C2C_MESSAGE_EXTENSIONS)}),body:{from:void 0,to:void 0,messageKey:void 0,startSequence:void 0}}}(e)),this._configMap.set(wo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM_MSG_EXT,".").concat(G.CMD.MODIFY_GROUP_MESSAGE_EXTENSIONS)}),body:{groupID:void 0,topicID:void 0,messageSequence:void 0,operateType:void 0,extensionList:void 0}}}(e)),this._configMap.set(So,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM_MSG_EXT,".").concat(G.CMD.GET_GROUP_MESSAGE_EXTENSIONS)}),body:{groupID:void 0,topicID:void 0,messageSequence:void 0,startSequence:void 0}}}(e)),this._configMap.set(Sr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.GET_PEER_READ_TIME)}),body:{userIDList:void 0},keyMap:{request:{userIDList:"To_Account"},response:{ReadTime:"peerReadTimeList"}}}}(e)),this._configMap.set(Lr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,count:0},keyMap:{request:{},response:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime"}}}}(e)),this._configMap.set(Dr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.PAGING_GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,timeStamp:void 0,startIndex:void 0,pinnedTimeStamp:void 0,pinnedStartIndex:void 0,orderType:void 0,messageAssistFlag:4,assistFlag:15},keyMap:{request:{messageAssistFlag:"MsgAssistFlags",assistFlag:"AssistFlags",pinnedTimeStamp:"TopTimeStamp",pinnedStartIndex:"TopStartIndex"},response:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime",LastMsgFlags:"lastMessageFlag",TopFlags:"isPinned",TopTimeStamp:"pinnedTimeStamp",TopStartIndex:"pinnedStartIndex",GroupId:"convGroupID"}}}}(e)),this._configMap.set(Ar,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.DELETE_CONVERSATION)}),body:{fromAccount:"",conversationList:void 0,clearHistoryMessage:void 0},keyMap:{request:{toGroupID:"ToGroupid",clearHistoryMessage:"ClearRamble",conversationList:"ContactItem"},response:{ResultItem:"resultList",ToGroupid:"toGroupID",ResultCode:"code",ResultInfo:"info"}}}}(e)),this._configMap.set(Nr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.CLEAR_HISTORY_MESSAGE)}),body:{fromAccount:"",toAccount:void 0,type:1,toGroupID:void 0},keyMap:{request:{toGroupID:"ToGroupid"}}}}(e)),this._configMap.set(Rr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.PIN_CONVERSATION)}),body:{fromAccount:"",operationType:1,itemList:void 0},keyMap:{request:{itemList:"RecentContactItem"}}}}(e)),this._configMap.set(xr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.DELETE_GROUP_AT_TIPS)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}}(e)),this._configMap.set(Pr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.MARK_CONVERSATION)}),body:{fromAccount:"",itemList:void 0},keyMap:{request:{itemList:"MarkItem",operationType:"OptType",groupID:"ToGroupId"},response:{ToGroupId:"groupID",OptType:"operationType"}}}}(e)),this._configMap.set(Ur,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.MARK_CONVERSATION)}),body:{fromAccount:"",itemList:void 0},keyMap:{request:{itemList:"MarkItem",operationType:"OptType",groupID:"ToGroupId"},response:{ToGroupId:"groupID",OptType:"operationType"}}}}(e)),this._configMap.set(Vr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.CREATE_CONVERSATION_GROUP)}),body:{fromAccount:"",itemList:void 0},keyMap:{request:{itemList:"GroupContactItem",groupID:"ToGroupId"},response:{GroupId:"convGroupID",ToGroupId:"groupID",OptType:"operationType"}}}}(e)),this._configMap.set(Br,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.DELETE_CONVERSATION_GROUP)}),body:{fromAccount:"",groupName:void 0},keyMap:{request:{},response:{GroupId:"convGroupID"}}}}(e)),this._configMap.set(Fr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:"",updateType:void 0,updateGroup:void 0},keyMap:{request:{oldName:"OldGroupName",newName:"NewGroupName",groupID:"ToGroupId",operationType:"ContactOptType",groupName:"OldGroupName",updateItem:"ContactUpdateItem"},response:{ContactOptType:"operationType",ToGroupId:"groupID",GroupId:"convGroupID"}}}}(e)),this._configMap.set(Gr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:"",updateType:void 0,updateGroup:{groupName:void 0,updateGroupType:void 0,updateItem:void 0}},keyMap:{request:{},response:{}}}}(e)),this._configMap.set(Hr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:"",updateType:void 0,updateGroup:void 0},keyMap:{request:{},response:{}}}}(e)),this._configMap.set(Yr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.GET_CONVERSATION_GROUP_LIST)}),body:{fromAccount:"",startTime:void 0,startIndex:void 0},keyMap:{request:{},response:{GroupId:"convGroupID",ToGroupId:"groupID",OptType:"operationType",CustomMark:"customData",ContactGroupId:"convGroupIDList"}}}}(e)),this._configMap.set(vr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.PROFILE,".").concat(G.CMD.PORTRAIT_GET)}),body:{fromAccount:"",userItem:[]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}}(e)),this._configMap.set(gr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.PROFILE,".").concat(G.CMD.PORTRAIT_SET)}),body:{fromAccount:"",profileItem:[{tag:He.NICK,value:""},{tag:He.GENDER,value:""},{tag:He.ALLOWTYPE,value:""},{tag:He.AVATAR,value:""}]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}}(e)),this._configMap.set(_r,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.GET_BLACKLIST)}),body:{fromAccount:"",startIndex:0,maxLimited:30,lastSequence:0},keyMap:{response:{CurruentSequence:"currentSequence"}}}}(e)),this._configMap.set(br,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.ADD_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}}}(e)),this._configMap.set(yr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.DELETE_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}}}(e)),this._configMap.set(oa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.SET_SELF_STATUS)}),body:{customStatus:""},keyMap:{}}}(e)),this._configMap.set(aa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.GET_USER_STATUS)}),body:{userIDList:void 0},keyMap:{response:{UserStatusList:"successUserList",ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID",Status:"statusType"}}}}(e)),this._configMap.set(ia,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.SUBSCRIBE_USER_STATUS)}),body:{userIDList:void 0},keyMap:{response:{ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID"}}}}(e)),this._configMap.set(sa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.UNSUBSCRIBE_USER_STATUS)}),body:{userIDList:void 0,unsubscribeAll:void 0},keyMap:{response:{ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID"}}}}(e)),this._configMap.set(zr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_JOINED_GROUPS)}),body:{memberAccount:"",limit:void 0,offset:void 0,groupType:void 0,responseFilter:{groupBaseInfoFilter:void 0,selfInfoFilter:void 0},isSupportTopic:0},keyMap:{request:{memberAccount:"Member_Account"},response:{GroupIdList:"groups",NoUnreadSeqList:"excludedUnreadSequenceList",MsgSeq:"readedSequence",LastRecallTime:"_lastRevokedTime"}}}}(e)),this._configMap.set(qr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_INFO)}),body:{groupIDList:void 0,responseFilter:{groupBaseInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember"],groupCustomFieldFilter:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0}},keyMap:{request:{groupIDList:"GroupIdList",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData",groupCustomFieldFilter:"AppDefinedDataFilter_Group",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{GroupIdList:"groups",AppDefinedData:"groupCustomField",AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_Group:"groupCustomFieldFilter",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",InfoSeq:"infoSequence",MemberList:"members",GroupInfo:"groups",ShutUpUntil:"muteUntil",ShutUpAllMember:"muteAllMembers"}}}}(e)),this._configMap.set(Wr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.CREATE_GROUP)}),body:{type:void 0,name:void 0,groupID:void 0,ownerID:void 0,introduction:void 0,notification:void 0,maxMemberNum:void 0,joinOption:void 0,memberList:void 0,groupCustomField:void 0,memberCustomField:void 0,webPushFlag:1,avatar:"",isSupportTopic:void 0,inviteOption:void 0},keyMap:{request:{ownerID:"Owner_Account",userID:"Member_Account",avatar:"FaceUrl",maxMemberNum:"MaxMemberCount",joinOption:"ApplyJoinOption",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData",inviteOption:"InviteJoinOption"},response:{HugeGroupFlag:"avChatRoomFlag",OverJoinedGroupLimit_Account:"overLimitUserIDList"}}}}(e)),this._configMap.set(Kr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.DESTROY_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set($r,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.MODIFY_GROUP_INFO)}),body:{groupID:void 0,name:void 0,introduction:void 0,notification:void 0,avatar:void 0,joinOption:void 0,groupCustomField:void 0,muteAllMembers:void 0,inviteOption:void 0},keyMap:{request:{groupCustomField:"AppDefinedData",muteAllMembers:"ShutUpAllMember",joinOption:"ApplyJoinOption",avatar:"FaceUrl",inviteOption:"InviteJoinOption"},response:{AppDefinedData:"groupCustomField",ShutUpAllMember:"muteAllMembers"}}}}(e)),this._configMap.set(Jr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1,historyMessageFlag:void 0},keyMap:{request:{applyMessage:"ApplyMsg",historyMessageFlag:"HugeGroupHistoryMsgFlag"},response:{HugeGroupFlag:"avChatRoomFlag",AVChatRoomKey:"avChatRoomKey",RspMsgList:"messageList",ToGroupId:"to"}}}}(e)),this._configMap.set(Xr,function(e){return e.a2,e.tinyid,{head:n(n({},h(e,Fs)),{},{servcmd:"".concat(G.NAME.BIG_GROUP_NO_AUTH,".").concat(G.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1},keyMap:{request:{applyMessage:"ApplyMsg"},response:{HugeGroupFlag:"avChatRoomFlag"}}}}(e)),this._configMap.set(Qr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.QUIT_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(Zr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SEARCH_GROUP_BY_ID)}),body:{groupIDList:void 0,responseFilter:{groupBasePublicInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","CreateTime","Owner_Account","LastInfoTime","LastMsgTime","NextMsgSeq","MemberNum","MaxMemberNum","ApplyJoinOption","InviteJoinOption"]}},keyMap:{response:{}}}}(e)),this._configMap.set(eo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.CHANGE_GROUP_OWNER)}),body:{groupID:void 0,newOwnerID:void 0},keyMap:{request:{newOwnerID:"NewOwner_Account"}}}}(e)),this._configMap.set(to,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.HANDLE_APPLY_JOIN_GROUP)}),body:{groupID:void 0,applicant:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{applicant:"Applicant_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}}}(e)),this._configMap.set(no,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.HANDLE_INVITE_JOIN_GROUP)}),body:{groupID:void 0,applicant:void 0,invitee:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,userDefinedField:void 0},keyMap:{request:{applicant:"Applicant_Account",invitee:"Invited_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg"}}}}(e)),this._configMap.set(ro,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.HANDLE_GROUP_INVITATION)}),body:{groupID:void 0,inviter:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{inviter:"Inviter_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}}}(e)),this._configMap.set(fo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_APPLICATION)}),body:{startTime:void 0,limit:void 0,handleAccount:void 0},keyMap:{request:{handleAccount:"Handle_Account"},response:{To_Account:"userID"}}}}(e)),this._configMap.set(ho,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.DELETE_GROUP_SYSTEM_MESSAGE)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}}(e)),this._configMap.set(mo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.BIG_GROUP_LONG_POLLING,".").concat(G.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,startBroadcastSeq:void 0,holdTime:90,key:void 0,simplifiedMessage:void 0},keyMap:{request:{USP:"USP"},response:{ToGroupId:"groupID",RspBroadcastMsgList:"broadcastMessageList",IsSystemMsg:"isSystemMessage"}}}}(e)),this._configMap.set(vo,function(e){return e.a2,e.tinyid,{head:n(n({},h(e,Gs)),{},{servcmd:"".concat(G.NAME.BIG_GROUP_LONG_POLLING_NO_AUTH,".").concat(G.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,holdTime:90,key:void 0,simplifiedMessage:void 0},keyMap:{request:{USP:"USP"},response:{ToGroupId:"groupID",RspBroadcastMsgList:"broadcastMessageList",IsSystemMsg:"isSystemMessage"}}}}(e)),this._configMap.set(go,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_ONLINE_MEMBER_NUM)}),body:{groupID:void 0}}}(e)),this._configMap.set(yo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key",value:"value"}}}}(e)),this._configMap.set(Oo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.MODIFY_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key",value:"value"}}}}(e)),this._configMap.set(Mo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.DELETE_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key"}}}}(e)),this._configMap.set(ko,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.CLEAR_GROUP_ATTRIBUTES)}),body:{groupID:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]}}}(e)),this._configMap.set(Co,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_ATTR,".").concat(G.CMD.GET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,avChatRoomKey:void 0,groupType:1},keyMap:{request:{avChatRoomKey:"Key",groupType:"GroupType"}}}}(e)),this._configMap.set(To,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_NOTIFY)}),body:{notifyType:1,groupID:"",beginTime:0,endTime:0,limit:20},keyMap:{request:{},response:{NextMsgTime:"nextRevokedTime",NotifyMsgList:"notifyList"}}}}(e)),this._configMap.set(Io,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.UPDATE_GROUP_COUNTER)}),body:{groupID:void 0,counterList:void 0,avChatRoomKey:void 0,mode:void 0},keyMap:{request:{counterList:"GroupCounter"}}}}(e)),this._configMap.set(Eo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_COUNTER)}),body:{groupID:void 0,keyList:[],avChatRoomKey:void 0},keyMap:{request:{keyList:"GroupCounterKeys"}}}}(e)),this._configMap.set(ea,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_COMMUNITY,".").concat(G.CMD.CREATE_TOPIC)}),body:{groupID:void 0,topicName:void 0,avatar:void 0,customData:void 0,topicID:void 0,notification:void 0,introduction:void 0},keyMap:{request:{avatar:"FaceUrl"}}}}(e)),this._configMap.set(ta,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_COMMUNITY,".").concat(G.CMD.DELETE_TOPIC)}),body:{groupID:void 0,topicIDList:void 0},keyMap:{request:{topicIDList:"TopicIdList"},response:{DestroyResultItem:"resultList"}}}}(e)),this._configMap.set(na,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_COMMUNITY,".").concat(G.CMD.UPDATE_TOPIC_PROFILE)}),body:{groupID:void 0,topicID:void 0,avatar:void 0,customData:void 0,notification:void 0,introduction:void 0,muteAllMembers:void 0,topicName:void 0},keyMap:{request:{avatar:"FaceUrl",muteAllMembers:"ShutUpAllMember"}}}}(e)),this._configMap.set(ra,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_COMMUNITY,".").concat(G.CMD.GET_TOPIC_LIST)}),body:{groupID:void 0,topicIDList:void 0,MemberInfoFilter:["NoUnreadSeqList"]},keyMap:{request:{topicIDList:"TopicIdList"},response:{TopicAndSelfInfo:"topicInfoList",TopicInfo:"topic",GroupID:"groupID",ShutUpTime:"muteTime",ShutUpAllFlag:"muteAllMembers",LastMsgTime:"lastMessageTime",MsgSeq:"readedSequence",LastMsgSeq:"sequence",NoUnreadSeqList:"excludedUnreadSequenceList"}}}}(e)),this._configMap.set(jo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_MEMBER_LIST)}),body:{groupID:void 0,limit:0,offset:void 0,next:void 0,memberRoleFilter:void 0,memberInfoFilter:["Role","NameCard","ShutUpUntil","JoinTime"],memberCustomFieldFilter:void 0},keyMap:{request:{memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",MemberList:"members",ShutUpUntil:"muteUntil"}}}}(e)),this._configMap.set(Do,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_AVCHATROOM,".").concat(G.CMD.GET_AVCHATROOM_MEMBER_LIST)}),body:{groupID:void 0,offset:void 0,filter:void 0},keyMap:{request:{offset:"Timestamp",filter:"Mark"},response:{NextTimestamp:"offset"}}}}(e)),this._configMap.set(Lo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_MEMBER_INFO)}),body:{groupID:void 0,userIDList:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0},keyMap:{request:{userIDList:"Member_List_Account",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{MemberList:"members",ShutUpUntil:"muteUntil",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",AppMemberDefinedData:"memberCustomField"}}}}(e)),this._configMap.set(Ao,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.ADD_GROUP_MEMBER)}),body:{groupID:void 0,silence:void 0,userIDList:void 0},keyMap:{request:{userID:"Member_Account",userIDList:"MemberList"},response:{MemberList:"members"}}}}(e)),this._configMap.set(No,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.DELETE_GROUP_MEMBER)}),body:{groupID:void 0,userIDList:void 0,reason:void 0},keyMap:{request:{userIDList:"MemberToDel_Account"}}}}(e)),this._configMap.set(Ro,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.BAN_AVCHATROOM_MEMBER)}),body:{groupID:void 0,userIDList:void 0,duration:void 0,reason:""},keyMap:{request:{userIDList:"Members_Account",duration:"Duration",reason:"Description"}}}}(e)),this._configMap.set(xo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.MODIFY_GROUP_MEMBER_INFO)}),body:{groupID:void 0,topicID:void 0,userID:void 0,messageRemindType:void 0,nameCard:void 0,role:void 0,memberCustomField:void 0,muteTime:void 0},keyMap:{request:{userID:"Member_Account",memberCustomField:"AppMemberDefinedData",muteTime:"ShutUpTime",messageRemindType:"MsgFlag"}}}}(e)),this._configMap.set(Po,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_AVCHATROOM,".").concat(G.CMD.MARK_AVCHATROOM_MEMBER_INFO)}),body:{groupID:void 0,operationType:1,memberList:[]},keyMap:{request:{operationType:"CommandType",memberList:"MemberList",markType:"Marks",userID:"Member_Account"},response:{CommandType:"operationType",Marks:"markType",Member_Account:"userID"}}}}(e)),this._configMap.set(Fo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STAT,".").concat(G.CMD.TIM_WEB_REPORT_V2)}),body:{header:{},event:[],quality:[]},keyMap:{request:{SDKType:"sdk_type",SDKVersion:"sdk_version",deviceType:"device_type",platform:"platform",instanceID:"instance_id",traceID:"trace_id",SDKAppID:"sdk_app_id",userID:"user_id",tinyID:"tiny_id",extension:"extension",timestamp:"timestamp",networkType:"network_type",eventType:"event_type",code:"error_code",message:"error_message",moreMessage:"more_message",duplicate:"duplicate",costTime:"cost_time",level:"level",qualityType:"quality_type",reportIndex:"report_index",wholePeriod:"whole_period",totalCount:"total_count",rttCount:"success_count_business",successRateOfRequest:"percent_business",countLessThan1Second:"success_count_business",percentOfCountLessThan1Second:"percent_business",countLessThan3Second:"success_count_platform",percentOfCountLessThan3Second:"percent_platform",successCountOfBusiness:"success_count_business",successRateOfBusiness:"percent_business",successCountOfPlatform:"success_count_platform",successRateOfPlatform:"percent_platform",successCountOfMessageReceived:"success_count_business",successRateOfMessageReceived:"percent_business",avgRTT:"average_value",avgDelay:"average_value",avgValue:"average_value",uiPlatform:"ui_platform"}}}}(r)),this._configMap.set(Go,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.HEARTBEAT,".").concat(G.CMD.ALIVE)}),body:{}}}(e)),this._configMap.set(Ho,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_PUSH,".").concat(G.CMD.MESSAGE_PUSH)}),body:{},keyMap:{response:{C2cMsgArray:"C2CMessageArray",GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",C2cNotifyMsgArray:"C2CNotifyMessageArray",C2cMsgInfo:"C2CReadReceiptArray",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyAdd_Account:"userID",ProfileImNick:"nick",PendencyType:"applicationType",C2CReadAllMsg:"readAllC2CMessage",IsNeedReadReceipt:"needReadReceipt",Status:"statusType"}}}}(e)),this._configMap.set(Yo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_PUSH,".").concat(G.CMD.MULTI_MESSAGE_PUSH)}),body:{},keyMap:{response:{GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyType:"applicationType"}}}}(e)),this._configMap.set(zo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.MESSAGE_PUSH_ACK)}),body:{sessionData:void 0},keyMap:{request:{sessionData:"SessionData"}}}}(e)),this._configMap.set(qo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.STATUS_FORCE_OFFLINE)}),body:{},keyMap:{response:{C2cNotifyMsgArray:"C2CNotifyMessageArray",NoticeSeq:"noticeSequence",KickoutMsgNotify:"kickoutMsgNotify",NewInstInfo:"newInstanceInfo"}}}}(e)),this._configMap.set(Ko,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_LONG_MESSAGE,".").concat(G.CMD.DOWNLOAD_MERGER_MESSAGE)}),body:{downloadKey:""},keyMap:{response:{Data:"data",Desc:"description",Ext:"extension",Download_Flag:"downloadFlag",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID"}}}}(e)),this._configMap.set(Wo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_LONG_MESSAGE,".").concat(G.CMD.UPLOAD_MERGER_MESSAGE)}),body:{messageList:[]},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",type:"MsgType",content:"MsgContent",data:"Data",description:"Desc",extension:"Ext",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody"}}}}(e)),this._configMap.set(ua,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.SET_TOKEN)}),body:{tokenID:"",pushMsg:0,sdkAppID:0,businessID:"",deviceBrand:"",deviceToken:"",isTpns:0,isWebUniapp:0},keyMap:{request:{tokenID:"TokenID",pushMsg:"PushMsg",sdkAppID:"EnterVersion",businessID:"BusiID",deviceBrand:"InstType",deviceToken:"VarToken",isTpns:"IsTpns"}}}}(e)),this._configMap.set(la,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.STAT_FOREGROUND)}),body:{isWebUniapp:0}}}(e)),this._configMap.set(ca,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.STAT_BACKGROUND)}),body:{C2CUnread:0,GroupUnread:0,isWebUniapp:0},keyMap:{request:{c2cUnreadCount:"C2cUnread",groupUnreadCount:"GrpUnread"}}}}(e))}},{key:"has",value:function(e){return this._configMap.has(e)}},{key:"get",value:function(e){return this._configMap.get(e)}},{key:"update",value:function(){this._fillConfigMap()}},{key:"getKeyMap",value:function(e){return this.has(e)?this.get(e).keyMap||{}:(Fe.w("".concat(this._n,".getKeyMap unknown protocolName:").concat(e)),{})}},{key:"getProtocolData",value:function(e){var t=e.protocolName,n=e.requestData,r=this.get(t),o=null;if(n){var a=this._simpleDeepCopy(r),i=this._updateService(n,a),s=i.body,c=Object.create(null);for(var l in s)if(Object.prototype.hasOwnProperty.call(s,l)){if(c[l]=s[l],void 0===n[l])continue;c[l]=n[l]}i.body=c,o=this._getUplinkData(i)}else o=this._getUplinkData(r);return o}},{key:"_getUplinkData",value:function(e){var t=this._requestDataCleaner(e),n=xt(t.head),r=ws(t.body,this._getRequestKeyMap(n));return t.body=r,t}},{key:"_updateService",value:function(e,t){var n=xt(t.head);if(this._isFromGroupRequest(t)){var r=e.type,o=e.groupID,a=void 0===o?void 0:o,i=e.groupIDList,s=void 0===i?[]:i;it(a)&&(a=s[0]||""),Ct({type:r,groupID:a})&&(t.head.servcmd="".concat(G.NAME.GROUP_COMMUNITY,".").concat(n))}return t}},{key:"_isFromGroupRequest",value:function(e){return e.head.servcmd.includes(G.NAME.GROUP)||e.head.servcmd.includes(G.NAME.GROUP_ATTR)}},{key:"_getRequestKeyMap",value:function(e){var t=this.getKeyMap(e);return n(n({},Ms.request),t.request)}},{key:"_requestDataCleaner",value:function(e){var t=Array.isArray(e)?[]:Object.create(null);for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&dt(n)&&null!==e[n]&&void 0!==e[n]&&("object"!==r(e[n])?t[n]=e[n]:t[n]=this._requestDataCleaner.bind(this)(e[n]));return t}},{key:"_simpleDeepCopy",value:function(e){for(var t,n=Object.keys(e),r={},o=0,a=n.length;o<a;o++)t=n[o],at(e[t])?r[t]=Array.from(e[t]):rt(e[t])?r[t]=this._simpleDeepCopy(e[t]):r[t]=e[t];return r}}]),e}(),Ys=[zo],zs=function(){function e(t){o(this,e),this._sessionModule=t,this._n="DownlinkHandler",this._eventHandlerMap=new Map,this._eventHandlerMap.set("C2CMessageArray",this._c2cMessageArrayHandler.bind(this)),this._eventHandlerMap.set("groupMessageArray",this._groupMessageArrayHandler.bind(this)),this._eventHandlerMap.set("groupTips",this._groupTipsHandler.bind(this)),this._eventHandlerMap.set("C2CNotifyMessageArray",this._C2CNotifyMessageArrayHandler.bind(this)),this._eventHandlerMap.set("C2CReadReceiptArray",this._C2CReadReceiptArrayHandler.bind(this)),this._eventHandlerMap.set("profileModify",this._profileHandler.bind(this)),this._eventHandlerMap.set("friendListMod",this._relationChainHandler.bind(this)),this._eventHandlerMap.set("recentContactMod",this._recentContactHandler.bind(this)),this._eventHandlerMap.set("readAllC2CMessage",this._allMessageReadHandler.bind(this)),this._eventHandlerMap.set("c2cMessageModified",this._c2cMessageModifiedHandler.bind(this)),this._eventHandlerMap.set("groupMessageModified",this._groupMessageModifiedHandler.bind(this)),this._eventHandlerMap.set("userStatusList",this._userStatusListHandler.bind(this)),this._eventHandlerMap.set("messageExtensionNotify",this._messageExtensionNotifyHandler.bind(this)),this._keys=b(this._eventHandlerMap.keys())}return i(e,[{key:"_c2cMessageArrayHandler",value:function(e){var t=this._sessionModule.getModule(Nn);t&&(e.dataList.forEach((function(e){if(1===e.isSyncMessage){var t=e.from;e.from=e.to,e.to=t}})),1===e.needSync&&this._sessionModule.getModule(Wn).startOnlineSync(),t.onNewC2CMessage({dataList:e.dataList,isInstantMessage:!0}))}},{key:"_c2cMessageModifiedHandler",value:function(e){var t=this._sessionModule.getModule(Nn);t&&t.onC2CMessageModified(e)}},{key:"_groupMessageArrayHandler",value:function(e){var t=this._sessionModule.getModule(Rn);t&&t.onNewGroupMessage({event:e.event,dataList:e.dataList,isInstantMessage:!0})}},{key:"_groupMessageModifiedHandler",value:function(e){var t=this._sessionModule.getModule(Rn);t&&t.onGroupMessageModified(e)}},{key:"_groupTipsHandler",value:function(e){var t=this._sessionModule.getModule(Rn);if(t){var n=e.event,r=e.dataList,o=e.isInstantMessage,a=void 0===o||o,i=e.isSyncingEnded;switch(n){case 4:case 6:t.onNewGroupTips({event:n,dataList:r});break;case 5:for(var s=0;s<r.length;s++)if(at(r[s].elements.revokedInfos))t.onGroupMessageRevoked({dataList:r});else if(at(r[s].elements.groupMessageReadNotice))t.onGroupMessageReadNotice({dataList:r});else{if(!at(r[s].elements.readReceiptList)){t.onNewGroupSystemNotice({dataList:r,isInstantMessage:a,isSyncingEnded:i});break}t.onReadReceiptList({dataList:r})}break;case 12:this._sessionModule.getModule(Vn).onNewGroupAtTips({dataList:r});break;default:Fe.l("".concat(this._n,"._groupTipsHandler unknown event:").concat(n," dataList:"),r)}}}},{key:"_C2CNotifyMessageArrayHandler",value:function(e){var t=this,n=e.dataList;if(at(n)){var r=this._sessionModule.getModule(Nn);n.forEach((function(e){if(ot(e))if(e.hasOwnProperty("kickoutMsgNotify")){var o=e.kickoutMsgNotify,a=o.kickType,i=o.newInstanceInfo,s=void 0===i?{}:i;1===a?t._sessionModule.onMultipleAccountKickedOut(s):2===a?t._sessionModule.onMultipleDeviceKickedOut(s):3===a&&t._sessionModule.onRestApiKickedOut(s)}else e.hasOwnProperty("c2cMessageRevokedNotify")?r&&r.onC2CMessageRevoked({dataList:n}):e.hasOwnProperty("c2cMessageReadReceipt")?r&&r.onC2CMessageReadReceipt({dataList:n}):e.hasOwnProperty("c2cMessageReadNotice")?r&&r.onC2CMessageReadNotice({dataList:n}):e.hasOwnProperty("muteNotificationsSync")&&t._sessionModule.getModule(Vn).onC2CMessageRemindTypeSynced({dataList:n})}))}}},{key:"_C2CReadReceiptArrayHandler",value:function(e){this._sessionModule.getModule(Nn).onReadReceiptList(e)}},{key:"_profileHandler",value:function(e){this._sessionModule.getModule(An).onProfileModified({dataList:e.dataList});var t=this._sessionModule.getModule(xn);t&&t.onFriendProfileModified({dataList:e.dataList})}},{key:"_relationChainHandler",value:function(e){this._sessionModule.getModule(An).onRelationChainModified({dataList:e.dataList});var t=this._sessionModule.getModule(xn);t&&t.onRelationChainModified({dataList:e.dataList})}},{key:"_recentContactHandler",value:function(e){var t=e.dataList;if(at(t)){var n=this._sessionModule.getModule(Vn);n&&t.forEach((function(e){var t=e.pushType;if(1===t){var r=e.recentContactDeleteItem;n.onConversationDeleted(r.recentContactList)}else if(2===t){var o=e.recentContactTopItem;n.onConversationPinned(o.recentContactList)}else if(3===t){var a=e.recentContactTopItem;n.onConversationUnpinned(a.recentContactList)}else if(4===t){var i=e.recentContactMarkContact;n.onConversationMarkUpdated(i.recentContactMarkContactItem)}else if(5===t){var s=e.recentContactCreateContactGroup;n.onConversationGroupCreated(s.msgContactGroupContactItem)}else if(6===t){var c=e.recentContactDelContactGroup;n.onConversationGroupDeleted(c.msgGroupItem)}else if(7===t){var l=e.recentContactUpdateContactGroup,u=l.updateType,d=l.msgUpdateGroup,p=l.msgUpdateContact;if(1===u){var f=d.updateGroupType;1===f?n.onConversationGroupNameUpdated(d):2===f&&n.onConversationInGroupUpdated(d)}else 2===u&&n.onConversationAddedToOrDeletedFromGroup(p)}}))}}},{key:"_allMessageReadHandler",value:function(e){var t=e.dataList,n=this._sessionModule.getModule(Vn);n&&n.onPushedAllMessageRead(t)}},{key:"_userStatusListHandler",value:function(e){this._sessionModule.getModule(An).onUserStatusUpdated(e)}},{key:"_messageExtensionNotifyHandler",value:function(e){this._sessionModule.getModule(Ln).onMessageExtensionNotify(e)}},{key:"onMessage",value:function(e){var t=this,n=e.body;if(this._filterMessageFromIMOpenPush(e)){var r=n.eventArray,o=n.isInstantMessage,a=n.isSyncingEnded,i=n.needSync;if(at(r))for(var s=null,c=null,l=0,u=0,d=r.length;u<d;u++){l=(s=r[u]).event;var p=Object.keys(s).find((function(e){return-1!==t._keys.indexOf(e)}));p?(c=14===l?{readAllC2CMessage:s[p],groupMessageReadInfoList:s.groupMessageReadNotice||[]}:16===l?{userID:s.userID,readReceiptList:s[p]}:s[p],this._eventHandlerMap.get(p)({event:l,dataList:c,isInstantMessage:o,isSyncingEnded:a,needSync:i})):Fe.l("".concat(this._n,".onMessage unknown eventItem:").concat(s))}}}},{key:"_filterMessageFromIMOpenPush",value:function(e){var t=e.head,n=e.body,r=t.servcmd,o=!1;if(it(r)||(o=r.includes(G.NAME.IM_CONFIG_MANAGER)||r.includes(G.NAME.OVERLOAD_PUSH)||r.includes(G.NAME.STAT_SERVICE)),!o)return!0;if(r.includes(G.CMD.PUSHED_CLOUD_CONTROL_CONFIG))this._sessionModule.getModule(Xn).onPushedCloudControlConfig(n);else if(r.includes(G.CMD.PUSHED_COMMERCIAL_CONFIG))this._sessionModule.getModule(tr).onPushedConfig(n);else if(r.includes(G.CMD.OVERLOAD_NOTIFY))this._sessionModule.onPushedServerOverload(n);else if(r.includes(G.CMD.KICK_OTHER)){var a=Date.now();this._sessionModule.reLoginOnKickOther();var i=new Ia("kickOther"),s=this._sessionModule.getModule(jn).getLastWsHelloTs(),c=a-s;i.setMessage("last wshello time:".concat(s," diff:").concat(c,"ms")).setNetworkType(this._sessionModule.getNetworkType()).end()}return!1}}]),e}(),qs=[{cmd:G.CMD.GET_GROUP_INFO,interval:1,count:20},{cmd:G.CMD.GET_AVCHATROOM_MEMBER_LIST,interval:3,count:1},{cmd:G.CMD.GET_GROUP_APPLICATION,interval:1,count:15},{cmd:G.CMD.GET_TOPIC_LIST,interval:1,count:10},{cmd:G.CMD.SET_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:G.CMD.MODIFY_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:G.CMD.DELETE_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:G.CMD.CLEAR_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:G.CMD.GET_GROUP_ATTRIBUTES,interval:5,count:20},{cmd:G.CMD.UPDATE_GROUP_COUNTER,interval:5,count:20},{cmd:G.CMD.GET_GROUP_COUNTER,interval:5,count:20},{cmd:G.CMD.SET_ALL_MESSAGE_READ,interval:1,count:1},{cmd:G.CMD.GET_USER_STATUS,interval:5,count:20},{cmd:G.CMD.SUBSCRIBE_USER_STATUS,interval:5,count:20},{cmd:G.CMD.UNSUBSCRIBE_USER_STATUS,interval:5,count:20}],Ws=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="SessionModule",n._platform=n.getPlatform(),n._protocolHandler=new Hs(m(n)),n._messageDispatcher=new zs(m(n)),n._commandFrequencyLimitMap=new Map,n._commandRequestInfoMap=new Map,n._serverOverloadInfoMap=new Map,n._init(),n.getInnerEmitterInstance().on(ei,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_init",value:function(){this._updateCommandFrequencyLimitMap(qs)}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("cmd_frequency_limit");it(e)||(e=JSON.parse(e),this._updateCommandFrequencyLimitMap(e))}},{key:"_updateCommandFrequencyLimitMap",value:function(e){var t=this;e.forEach((function(e){t._commandFrequencyLimitMap.set(e.cmd,{interval:e.interval,count:e.count})}))}},{key:"updateProtocolConfig",value:function(){this._protocolHandler.update()}},{key:"request",value:function(e){Fe.d("".concat(this._n,".request options:"),e);var t=e.protocolName,n=e.tjgID;if(!this._protocolHandler.has(t))return Fe.w("".concat(this._n,".request unknown protocol:").concat(t)),Ja({code:fa.CANNOT_FIND_PROTOCOL});var r=this.getProtocolData(e),o=r.head.servcmd;if(this._isFrequencyOverLimit(o))return Ja({code:fa.OVER_FREQUENCY_LIMIT});if(this._isServerOverload(o))return Ja({code:fa.OPEN_SERVICE_OVERLOAD_ERROR});Kt(n)||(r.head.tjgID=n);var a=this.getModule($n);return Ys.includes(t)?a.simplySend(r):a.send(r)}},{key:"getKeyMap",value:function(e){return this._protocolHandler.getKeyMap(e)}},{key:"genCommonHead",value:function(){var e=this.getModule(Bn);return{ver:"v4",platform:this._platform,websdkappid:A,websdkversion:L,a2:e.getA2Key()||void 0,tinyid:e.getTinyID()||void 0,status_instid:e.getStatusInstanceID(),sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getA2Key()?void 0:e.getUserID(),usersig:e.getA2Key()?void 0:e.getUserSig(),sdkability:192371,tjgID:""}}},{key:"genCosSpecifiedHead",value:function(){var e=this.getModule(Bn);return{ver:"v4",platform:this._platform,websdkappid:A,websdkversion:L,sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getUserID(),usersig:e.getUserSig(),status_instid:e.getStatusInstanceID(),sdkability:192371}}},{key:"genSSOReportHead",value:function(){var e=this.getModule(Bn);return{ver:"v4",platform:this._platform,websdkappid:A,websdkversion:L,sdkappid:e.getSDKAppID(),contenttype:"",reqtime:0,identifier:"",usersig:"",status_instid:e.getStatusInstanceID(),sdkability:192371}}},{key:"getProtocolData",value:function(e){return this._protocolHandler.getProtocolData(e)}},{key:"trans",value:function(e){var t=e.servcmd,r=e.data,o={head:n(n({},this.genCommonHead()),{},{servcmd:t}),body:r};return this.getModule($n).send(o)}},{key:"sendComboMessage",value:function(e){var t=e.servcmd,r=e.data,o={head:n(n({},this.genCommonHead()),{},{servcmd:t}),body:r};return this.getModule($n).send(o)}},{key:"onErrorCodeNotZero",value:function(e){var t=e.errorCode;if(t===fa.HELLO_ANSWER_KICKED_OUT){var n=e.kickType,r=e.newInstanceInfo,o=void 0===r?{}:r;1===n?this.onMultipleAccountKickedOut(o):2===n?this.onMultipleDeviceKickedOut(o):3===n&&this.onRestApiKickedOut(o)}t!==fa.MESSAGE_A2KEY_EXPIRED&&t!==fa.ACCOUNT_A2KEY_EXPIRED||(this._onUserSigExpired(),this.getModule($n).reConnect())}},{key:"onMessage",value:function(e){var t=e.body,n=t.needAck,r=void 0===n?0:n,o=t.sessionData;1===r&&this._sendACK(o),this._messageDispatcher.onMessage(e)}},{key:"onReconnected",value:function(){this._reLoginOnReconnected()}},{key:"reLoginOnKickOther",value:function(){Fe.l("".concat(this._n,".reLoginOnKickOther")),this._reLogin()}},{key:"_reLoginOnReconnected",value:function(){Fe.l("".concat(this._n,"._reLoginOnReconnected")),this._reLogin()}},{key:"_reLogin",value:function(){var e=this;if(this.isLoggedIn()){var t=0,n=this.getModule(nr);n.canIUseOfflinePush()&&(t=n.getUniAppPlatform()),this.request({protocolName:cr,requestData:{isWebUniapp:t}}).then((function(t){var n=t.data.instanceID;e.getModule(Bn).setStatusInstanceID(n),Fe.l("".concat(e._n,"._reLogin ok.")),e.getModule(Vn).syncConversationList().then((function(){Fe.l("".concat(e._n,"._reLogin, sync conversation list ok.")),e.getModule(Zn).start()})),e.getModule(Rn).updateLocalMainSequenceOnReconnected();var r=e.getModule(Un);r.resetGetTopicTime(),r.getTopicListOnReconnected()}))}}},{key:"onMultipleAccountKickedOut",value:function(e){this.getModule(jn).onMultipleAccountKickedOut(e)}},{key:"onMultipleDeviceKickedOut",value:function(e){this.getModule(jn).onMultipleDeviceKickedOut(e)}},{key:"_onUserSigExpired",value:function(){this.getModule(jn).onUserSigExpired()}},{key:"onRestApiKickedOut",value:function(e){this.getModule(jn).onRestApiKickedOut(e)}},{key:"_sendACK",value:function(e){this.request({protocolName:zo,requestData:{sessionData:e}})}},{key:"_isFrequencyOverLimit",value:function(e){var t=e.split(".")[1];if(!this._commandFrequencyLimitMap.has(t))return!1;if(!this._commandRequestInfoMap.has(t))return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;var n=this._commandFrequencyLimitMap.get(t),r=n.count,o=n.interval,a=this._commandRequestInfoMap.get(t),i=a.startTime,s=a.requestCount;if(Date.now()-i>1e3*o)return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;s+=1,this._commandRequestInfoMap.set(t,{startTime:i,requestCount:s});var c=!1;return s>r&&(c=!0),c}},{key:"_isServerOverload",value:function(e){if(!this._serverOverloadInfoMap.has(e))return!1;var t=this._serverOverloadInfoMap.get(e),n=t.overloadTime,r=t.waitingTime,o=!1;return Date.now()-n<=1e3*r?o=!0:(this._serverOverloadInfoMap.delete(e),o=!1),o}},{key:"onPushedServerOverload",value:function(e){var t=e.overloadCommand,n=e.waitingTime;this._serverOverloadInfoMap.set(t,{overloadTime:Date.now(),waitingTime:n}),Fe.w("".concat(this._n,".onPushedServerOverload waitingTime:").concat(n,"s"))}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._updateCommandFrequencyLimitMap(qs),this._commandRequestInfoMap.clear(),this._serverOverloadInfoMap.clear()}}]),r}(sr),Ks=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="MessageLossDetectionModule",r._maybeLostSequencesMap=new Map,r._firstRoundRet=[],r}return i(n,[{key:"onMessageMaybeLost",value:function(e,t,n){this._maybeLostSequencesMap.has(e)||this._maybeLostSequencesMap.set(e,[]);for(var r=this._maybeLostSequencesMap.get(e),o=0;o<n;o++)-1===r.indexOf(t+o)&&r.push(t+o)}},{key:"detectFirstRound",value:function(e,t){var n=this._maybeLostSequencesMap.get(e);if(!Kt(n)&&!Kt(t)){var r=n.filter((function(e){return-1===t.indexOf(e)}));0===r.length?Fe.i("".concat(this._n,".detectFirstRound no message loss. conversationID:").concat(e)):this._firstRoundRet=this._firstRoundRet.concat(r),n.length=0}}},{key:"detectSecondRound",value:function(e,t){if(!Kt(this._firstRoundRet)&&!Kt(t)){var n=this._firstRoundRet.filter((function(e){return-1===t.indexOf(e)}));this._firstRoundRet.length=0;var r,o=n.length;0!==o&&(o<=5?r=e+"-"+n.join("-"):(n.sort((function(e,t){return e-t})),r=e+" start:"+n[0]+" end:"+n[o-1]+" count:"+o),new Ia("messageLoss").setMessage(r).setNetworkType(this.getNetworkType()).setLevel("warning").end(),Fe.i("".concat(this._n,".detectSecondRound message loss detected. conversationID:").concat(e," lostSequences:").concat(n)))}}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._maybeLostSequencesMap.clear(),this._firstRoundRet.length=0}}]),n}(sr),$s=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="CloudControlModule",r._cloudConfig=new Map,r._expiredTime=0,r._version=0,r._isFetching=!1,r}return i(n,[{key:"getCloudConfig",value:function(e){return it(e)?this._cloudConfig:this._cloudConfig.has(e)?this._cloudConfig.get(e):void 0}},{key:"_canFetchConfig",value:function(){return this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime}},{key:"fetchConfig",value:function(){var e=this,t=this._canFetchConfig();if(Fe.l("".concat(this._n,".fetchConfig canFetchConfig:").concat(t)),t){var n=new Ia("fetchCloudControlConfig"),r=this.getModule(Bn).getSDKAppID();this._isFetching=!0,this.request({protocolName:$o,requestData:{SDKAppID:r,version:this._version}}).then((function(t){e._isFetching=!1,n.setMessage("version:".concat(e._version," newVersion:").concat(t.data.version," config:").concat(t.data.cloudControlConfig)).setNetworkType(e.getNetworkType()).end(),Fe.l("".concat(e._n,".fetchConfig ok")),e._parseCloudControlConfig(t.data)})).catch((function(t){e._isFetching=!1,e.probeNetwork().then((function(e){var r=_(e,2),o=r[0],a=r[1];n.setError(t,o,a).end()})),Fe.l("".concat(e._n,".fetchConfig failed. error:"),t),e._setExpiredTimeOnResponseError(12e4)}))}}},{key:"onPushedCloudControlConfig",value:function(e){Fe.l("".concat(this._n,".onPushedCloudControlConfig")),new Ia("pushedCloudControlConfig").setNetworkType(this.getNetworkType()).setMessage("newVersion:".concat(e.version," config:").concat(e.cloudControlConfig)).end(),this._parseCloudControlConfig(e)}},{key:"onCheckTimer",value:function(e){this._canFetchConfig()&&this.fetchConfig()}},{key:"_parseCloudControlConfig",value:function(e){var t=this,n="".concat(this._n,"._parseCloudControlConfig"),r=e.errorCode,o=e.errorMessage,a=e.cloudControlConfig,i=e.version,s=e.expiredTime;if(0===r){if(this._version!==i){var c=null;try{c=JSON.parse(a)}catch(u){this.isPrivateNetWork()||Fe.e("".concat(n," JSON parse error. cloudControlConfig:"),a)}c&&(this._cloudConfig.clear(),Object.keys(c).forEach((function(e){t._cloudConfig.set(e,c[e])})),this._version=i,this.emitInnerEvent(ei))}this._expiredTime=Date.now()+1e3*s}else it(r)?(Fe.l("".concat(n," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(Fe.e("".concat(n," errorCode:").concat(r," errorMessage:").concat(o)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._cloudConfig.clear(),this._expiredTime=0,this._version=0,this._isFetching=!1}}]),n}(sr),Js=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="RecoverMessageModule",r.PULL_LIMIT_COUNT=15,r}return i(n,[{key:"start",value:function(){this._recoverGroupChat(),this._recoverC2CChat()}},{key:"_recoverGroupChat",value:function(){var e,t,n=this,r=this._getLocalConversationList().filter((function(e){return e.type===T.CONV_GROUP&&e.groupProfile.type!==T.GRP_AVCHATROOM})),o=this.getModule(Vn),a=0,i=0,s=0;r.forEach((function(r){var c=r.conversationID,l=r.lastMessage;t=c.replace(T.CONV_GROUP,""),e=o.getLocalLastMessage(c),l&&0!==l.lastSequence&&e?(i=l.lastSequence,a=e.sequence,s=i-a,a>0&&s>=1&&s<300?n._recoverGroupMessage({groupID:t,localLastMessageSequence:a,remoteLastMessageSequence:i}):n._getGroupNotify(t)):n._getGroupNotify(t)}))}},{key:"_recoverC2CChat",value:function(){var e,t=this,n=this._getLocalConversationList().filter((function(e){return e.type===T.CONV_C2C})),r=this.getModule(Vn),o=0,a=0,i=0,s=[Promise.resolve()];n.forEach((function(n){var c=n.conversationID,l=n.lastMessage;e=r.getLocalLastMessage(c),l&&0!==l.lastTime&&e&&(a=l.lastTime,o=e.time,i=a-o,o>0&&i>=1&&i<=600&&s.push(t._recoverC2CMessage({conversationID:c,localLastMessageTime:o,remoteLastMessageTime:a})))})),Promise.all(s).then((function(){Fe.l("".concat(t._n,"._recoverC2CChat all promise fulfilled, start to sync unread messages")),t.getModule(Wn).startSyncOnReconnected()}))}},{key:"_getLocalConversationList",value:function(){return this.getModule(Vn).getLocalConversationList()}},{key:"_recoverGroupMessage",value:function(e){var t=this,n="".concat(this._n,"._recoverGroupMessage");Fe.l("".concat(n," options:"),e);var r=e.groupID,o=e.localLastMessageSequence,a=e.remoteLastMessageSequence;this._getGroupRomaingMessage({groupID:r,sequence:o}).then((function(e){var o=e.data,i=o.complete,s=o.messageList;if(!it(s)){var c=s[0].sequence;Fe.l("".concat(n," pkgLastMessageSequence:").concat(c," complete:").concat(i)),c<a&&2!==i&&t._recoverGroupMessage({groupID:r,localLastMessageSequence:c,remoteLastMessageSequence:a}),new Ia("recoverMessage").setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(r," complete:").concat(i," messageList length:").concat(s.length)).end(),t.getModule(Rn).onNewGroupMessage({dataList:s,isInstantMessage:!1,updateUnreadCount:!1}),t._getGroupNotify(r)}}))}},{key:"_getGroupNotify",value:function(e){this.getModule(Rn).getGroupNotify(e)}},{key:"_getGroupRomaingMessage",value:function(e){var t=e.groupID,n=e.sequence;return this.request({protocolName:so,requestData:{groupID:t,count:this.PULL_LIMIT_COUNT,sequence:n+this.PULL_LIMIT_COUNT-1}})}},{key:"_recoverC2CMessage",value:function(e){var t=this,n="".concat(this._n,"._recoverC2CMessage");Fe.l("".concat(this._n,"._recoverC2CMessage options:"),e);var r=e.conversationID,o=e.localLastMessageTime,a=e.remoteLastMessageTime;return this._getC2CRoamingMessage({conversationID:r,time:o}).then((function(e){var o=e.data,i=o.complete,s=o.messageList;if(!it(s)){var c=s.length;new Ia("recoverMessage").setNetworkType(t.getNetworkType()).setMessage("".concat(r," complete:").concat(i," messageList length:").concat(c)).end(),t.getModule(Nn).onNewC2CMessage({dataList:s,isInstantMessage:!0});var l=s[c-1].time;if(Fe.l("".concat(n," pkgLastMessageTime:").concat(l," complete:").concat(i)),l<a&&1!==i)return t._recoverC2CMessage({conversationID:r,localLastMessageTime:l,remoteLastMessageTime:a})}}))}},{key:"_getC2CRoamingMessage",value:function(e){var t=e.conversationID,n=e.time;return this.request({protocolName:wr,requestData:{peerAccount:t.replace(T.CONV_C2C,""),count:this.PULL_LIMIT_COUNT+1,lastMessageTime:n,direction:1}})}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset"))}}]),n}(sr),Xs=function(){function e(){o(this,e),this._n="AvgE2EDelay",this._e2eDelayArray=[]}return i(e,[{key:"addMessageDelay",value:function(e){var t=Pe()-e;t>=0&&this._e2eDelayArray.push(t)}},{key:"_calcAvg",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),Pt(n/t,1)}},{key:"_calcCountWithLimit",value:function(e){var t=e.e2eDelayArray,n=e.min,r=e.max;return t.filter((function(e){return n<=e&&e<r})).length}},{key:"_calcPercent",value:function(e,t){var n=Pt(e/t*100,2);return n>100&&(n=100),n}},{key:"_checkE2EDelayException",value:function(e,t){var n=e.filter((function(e){return e>t}));if(n.length>0){var r=n.length,o=Math.min.apply(Math,b(n)),a=Math.max.apply(Math,b(n)),i=this._calcAvg(n,r),s=Pt(r/e.length*100,2);s>50&&new Ia("messageE2EDelayException").setMessage("count:".concat(r," min:").concat(o," max:").concat(a," avg:").concat(i," percent:").concat(s)).setLevel("warning").end()}}},{key:"getStatResult",value:function(){var e=this._e2eDelayArray.length;if(0===e)return null;var t=b(this._e2eDelayArray),n=this._calcCountWithLimit({e2eDelayArray:t,min:0,max:1}),r=this._calcCountWithLimit({e2eDelayArray:t,min:1,max:3}),o=this._calcPercent(n,e),a=this._calcPercent(r,e),i=this._calcAvg(t,e);return this._checkE2EDelayException(t,3),t.length=0,this.reset(),{totalCount:e,countLessThan1Second:n,percentOfCountLessThan1Second:o,countLessThan3Second:r,percentOfCountLessThan3Second:a,avgDelay:i}}},{key:"reset",value:function(){this._e2eDelayArray.length=0}}]),e}(),Qs=function(){function e(){o(this,e),this._n="AvgRTT",this._requestCount=0,this._rttArray=[]}return i(e,[{key:"addRequestCount",value:function(){this._requestCount+=1}},{key:"addRTT",value:function(e){this._rttArray.push(e)}},{key:"_calcTotalCount",value:function(){return this._requestCount}},{key:"_calcRTTCount",value:function(e){return e.length}},{key:"_calcSuccessRateOfRequest",value:function(e,t){if(0===t)return 0;var n=Pt(e/t*100,2);return n>100&&(n=100),n}},{key:"_calcAvg",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),parseInt(n/t)}},{key:"_calcMax",value:function(){return Math.max.apply(Math,b(this._rttArray))}},{key:"_calcMin",value:function(){return Math.min.apply(Math,b(this._rttArray))}},{key:"getStatResult",value:function(){var e=this._calcTotalCount(),t=b(this._rttArray);if(0===e)return null;var n=this._calcRTTCount(t),r=this._calcSuccessRateOfRequest(n,e),o=this._calcAvg(t,n);return Fe.l("".concat(this._n,".getStatResult max:").concat(this._calcMax()," min:").concat(this._calcMin()," avg:").concat(o)),this.reset(),{totalCount:e,rttCount:n,successRateOfRequest:r,avgRTT:o}}},{key:"reset",value:function(){this._requestCount=0,this._rttArray.length=0}}]),e}(),Zs=function(){function e(){o(this,e),this._map=new Map}return i(e,[{key:"initMap",value:function(e){var t=this;e.forEach((function(e){t._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}))}},{key:"addTotalCount",value:function(e){return!(it(e)||!this._map.has(e))&&(this._map.get(e).totalCount+=1,!0)}},{key:"addSuccessCount",value:function(e){return!(it(e)||!this._map.has(e))&&(this._map.get(e).successCount+=1,!0)}},{key:"addFailedCountOfUserSide",value:function(e){return!(it(e)||!this._map.has(e))&&(this._map.get(e).failedCountOfUserSide+=1,!0)}},{key:"addCost",value:function(e,t){return!(it(e)||!this._map.has(e))&&(this._map.get(e).costArray.push(t),!0)}},{key:"addFileSize",value:function(e,t){return!(it(e)||!this._map.has(e))&&(this._map.get(e).fileSizeArray.push(t),!0)}},{key:"_calcSuccessRateOfBusiness",value:function(e){if(it(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=Pt(t.successCount/t.totalCount*100,2);return n>100&&(n=100),n}},{key:"_calcSuccessRateOfPlatform",value:function(e){if(it(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=this._calcSuccessCountOfPlatform(e)/t.totalCount*100;return(n=Pt(n,2))>100&&(n=100),n}},{key:"_calcTotalCount",value:function(e){return it(e)||!this._map.has(e)?-1:this._map.get(e).totalCount}},{key:"_calcSuccessCountOfBusiness",value:function(e){return it(e)||!this._map.has(e)?-1:this._map.get(e).successCount}},{key:"_calcSuccessCountOfPlatform",value:function(e){if(it(e)||!this._map.has(e))return-1;var t=this._map.get(e);return t.successCount+t.failedCountOfUserSide}},{key:"_calcAvg",value:function(e){return it(e)||!this._map.has(e)?-1:e===ya?this._calcAvgSpeed(e):this._calcAvgCost(e)}},{key:"_calcAvgCost",value:function(e){var t=this._map.get(e).costArray.length;if(0===t)return 0;var n=0;return this._map.get(e).costArray.forEach((function(e){n+=e})),parseInt(n/t)}},{key:"_calcAvgSpeed",value:function(e){var t=0,n=0;return this._map.get(e).costArray.forEach((function(e){t+=e})),this._map.get(e).fileSizeArray.forEach((function(e){n+=e})),parseInt(1e3*n/t)}},{key:"getStatResult",value:function(e){var t=this._calcTotalCount(e);if(0===t)return null;var n=this._calcSuccessCountOfBusiness(e),r=this._calcSuccessRateOfBusiness(e),o=this._calcSuccessCountOfPlatform(e),a=this._calcSuccessRateOfPlatform(e),i=this._calcAvg(e);return this.reset(e),{totalCount:t,successCountOfBusiness:n,successRateOfBusiness:r,successCountOfPlatform:o,successRateOfPlatform:a,avgValue:i}}},{key:"reset",value:function(e){it(e)?this._map.clear():this._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}}]),e}(),ec=function(){function e(){o(this,e),this._lastMap=new Map,this._currentMap=new Map}return i(e,[{key:"initMap",value:function(e){var t=this;e.forEach((function(e){t._lastMap.set(e,new Map),t._currentMap.set(e,new Map)}))}},{key:"addMessageSequence",value:function(e){var t=e.key,n=e.message;if(it(t)||!this._lastMap.has(t)||!this._currentMap.has(t))return!1;var r=n.conversationID,o=n.sequence,a=r.replace(T.CONV_GROUP,"");if(0===this._lastMap.get(t).size)this._addCurrentMap(e);else if(this._lastMap.get(t).has(a)){var i=this._lastMap.get(t).get(a),s=i.length-1;o>i[0]&&o<i[s]?(i.push(o),i.sort(),this._lastMap.get(t).set(a,i)):this._addCurrentMap(e)}else this._addCurrentMap(e);return!0}},{key:"_addCurrentMap",value:function(e){var t=e.key,n=e.message,r=n.conversationID,o=n.sequence,a=r.replace(T.CONV_GROUP,"");this._currentMap.get(t).has(a)||this._currentMap.get(t).set(a,[]),this._currentMap.get(t).get(a).push(o)}},{key:"_copyData",value:function(e){if(!it(e)){this._lastMap.set(e,new Map);var t,n=this._lastMap.get(e),r=w(this._currentMap.get(e));try{for(r.s();!(t=r.n()).done;){var o=_(t.value,2),a=o[0],i=o[1];n.set(a,i)}}catch(c){r.e(c)}finally{r.f()}n=null,this._currentMap.set(e,new Map)}}},{key:"getStatResult",value:function(e){if(it(this._currentMap.get(e))||it(this._lastMap.get(e)))return null;if(0===this._lastMap.get(e).size)return this._copyData(e),null;var t=0,n=0;if(this._lastMap.get(e).forEach((function(e,r){var o=b(e.values()),a=o.length,i=o[a-1]-o[0]+1;t+=i,n+=a})),0===t)return null;var r=Pt(n/t*100,2);return r>100&&(r=100),this._copyData(e),{totalCount:t,successCountOfMessageReceived:n,successRateOfMessageReceived:r}}},{key:"reset",value:function(){this._currentMap.clear(),this._lastMap.clear()}}]),e}(),tc=function(e){c(r,e);var t=g(r);function r(e){var n;o(this,r),(n=t.call(this,e))._n="QualityStatModule",n.TAG="im-ssolog-quality-stat",n.reportIndex=0,n.wholePeriod=!1,n._qualityItems=[ha,ma,va,ga,_a,ba,ya,Oa,Ma,ka],n._messageSentItems=[va,ga,_a,ba,ya],n._messageReceivedItems=[Oa,Ma,ka],n.REPORT_INTERVAL=120,n.REPORT_SDKAPPID_BLACKLIST=[],n.REPORT_TINYID_WHITELIST=[],n._statInfoArr=[],n._avgRTT=new Qs,n._avgE2EDelay=new Xs,n._rateMessageSent=new Zs,n._rateMessageReceived=new ec;var a=n.getInnerEmitterInstance();return a.on(Za,n._onLoginSuccess,m(n)),a.on(ei,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_onLoginSuccess",value:function(){var e=this;this._rateMessageSent.initMap(this._messageSentItems),this._rateMessageReceived.initMap(this._messageReceivedItems);var t=this.getModule(Fn),n=t.getItem(this.TAG,!1);!Kt(n)&&ct(n.forEach)&&(Fe.l("".concat(this._n,"._onLoginSuccess get quality stat logs from local storage, count:").concat(n.length)),n.forEach((function(t){e._statInfoArr.push(t)})),t.removeItem(this.TAG,!1))}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("q_rpt_interval"),t=this.getCloudConfig("q_rpt_sdkappid_bl"),n=this.getCloudConfig("q_rpt_tinyid_wl");it(e)||(this.REPORT_INTERVAL=Number(e)),it(t)||(this.REPORT_SDKAPPID_BLACKLIST=t.split(",").map((function(e){return Number(e)}))),it(n)||(this.REPORT_TINYID_WHITELIST=n.split(","))}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&e%this.REPORT_INTERVAL==0&&(this.wholePeriod=!0,this._report())}},{key:"addRequestCount",value:function(){this._avgRTT.addRequestCount()}},{key:"addRTT",value:function(e){this._avgRTT.addRTT(e)}},{key:"addMessageDelay",value:function(e){this._avgE2EDelay.addMessageDelay(e)}},{key:"addTotalCount",value:function(e){this._rateMessageSent.addTotalCount(e)||Fe.w("".concat(this._n,".addTotalCount invalid key:"),e)}},{key:"addSuccessCount",value:function(e){this._rateMessageSent.addSuccessCount(e)||Fe.w("".concat(this._n,".addSuccessCount invalid key:"),e)}},{key:"addFailedCountOfUserSide",value:function(e){this._rateMessageSent.addFailedCountOfUserSide(e)||Fe.w("".concat(this._n,".addFailedCountOfUserSide invalid key:"),e)}},{key:"addCost",value:function(e,t){this._rateMessageSent.addCost(e,t)||Fe.w("".concat(this._n,".addCost invalid key or cost:"),e,t)}},{key:"addFileSize",value:function(e,t){this._rateMessageSent.addFileSize(e,t)||Fe.w("".concat(this._n,".addFileSize invalid key or size:"),e,t)}},{key:"addMessageSequence",value:function(e){this._rateMessageReceived.addMessageSequence(e)||Fe.w("".concat(this._n,".addMessageSequence invalid key:"),e.key)}},{key:"_getQualityItem",value:function(e){var t={},r=Sa[this.getNetworkType()];it(r)&&(r=8);var o={qualityType:Ca[e],timestamp:Re(),networkType:r,extension:""};switch(e){case ha:t=this._avgRTT.getStatResult();break;case ma:t=this._avgE2EDelay.getStatResult();break;case va:case ga:case _a:case ba:case ya:t=this._rateMessageSent.getStatResult(e);break;case Oa:case Ma:case ka:t=this._rateMessageReceived.getStatResult(e)}return null===t?null:n(n({},o),t)}},{key:"_report",value:function(e){var t=this,n=[],r=null;it(e)?this._qualityItems.forEach((function(e){null!==(r=t._getQualityItem(e))&&(r.reportIndex=t.reportIndex,r.wholePeriod=t.wholePeriod,n.push(r))})):null!==(r=this._getQualityItem(e))&&(r.reportIndex=this.reportIndex,r.wholePeriod=this.wholePeriod,n.push(r)),Fe.d("".concat(this._n,"._report"),n),this._statInfoArr.length>0&&(n=n.concat(this._statInfoArr),this._statInfoArr=[]);var o=this.getModule(Bn),a=o.getSDKAppID(),i=o.getTinyID();Ut(this.REPORT_SDKAPPID_BLACKLIST,a)&&!Vt(this.REPORT_TINYID_WHITELIST,i)&&(n=[]),n.length>0&&this._doReport(n)}},{key:"_doReport",value:function(e){var t=this,r={header:ns(this),quality:e};this.request({protocolName:Fo,requestData:n({},r)}).then((function(){t.reportIndex++,t.wholePeriod=!1})).catch((function(n){Fe.w("".concat(t._n,"._doReport, online:").concat(t.getNetworkType()," error:"),n),t._statInfoArr=t._statInfoArr.concat(e),t._flushAtOnce()}))}},{key:"_flushAtOnce",value:function(){var e=this.getModule(Fn),t=e.getItem(this.TAG,!1),n=this._statInfoArr,r="".concat(this._n,"._flushAtOnce");if(Kt(t))Fe.l("".concat(r," count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var o=n.concat(t);o.length>10&&(o=o.slice(0,10)),Fe.l("".concat(r," count:").concat(o.length)),e.setItem(this.TAG,o,!0,!1)}this._statInfoArr=[]}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._report(),this.reportIndex=0,this.wholePeriod=!1,this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[],this._avgRTT.reset(),this._avgE2EDelay.reset(),this._rateMessageSent.reset(),this._rateMessageReceived.reset()}}]),r}(sr),nc=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="WorkerTimerModule",r._isWorkerEnabled=!0,r._workerTimer=null,r._timerID=-1,r._init(),r.getInnerEmitterInstance().on(ei,r._onCloudConfigUpdated,m(r)),r}return i(n,[{key:"isWorkerEnabled",value:function(){return this._isWorkerEnabled&&Te}},{key:"startWorkerTimer",value:function(){Fe.l("".concat(this._n,".startWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("start")}},{key:"stopWorkerTimer",value:function(){Fe.l("".concat(this._n,".stopWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("stop")}},{key:"_init",value:function(){if(Te){var e=URL.createObjectURL(new Blob(['let interval = -1;onmessage = function(event) { if (event.data === "start") { if (interval > 0) { clearInterval(interval); } interval = setInterval(() => { postMessage(""); }, 1000); postMessage(interval); } else if (event.data === "stop") { clearInterval(interval); interval = -1; }};'],{type:"application/javascript; charset=utf-8"}));this._workerTimer=new Worker(e);var t=this;this._workerTimer.onmessage=function(e){e.data?(t._timerID=e.data,Fe.l("".concat(t._n,"._init seed:").concat(t._timerID))):t._m.onCheckTimer()}}}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("enable_worker");Fe.l("".concat(this._n,"._onCloudConfigUpdated enableWorker:").concat(e)),it(e)||"1"===e?!this._isWorkerEnabled&&Te&&(this._isWorkerEnabled=!0,this.startWorkerTimer(),this._m.onWorkerTimerEnabled()):this._isWorkerEnabled&&Te&&(this._isWorkerEnabled=!1,this.stopWorkerTimer(),this._m.onWorkerTimerDisabled())}},{key:"terminate",value:function(){Fe.l("".concat(this._n,".terminate")),this._workerTimer&&(this._workerTimer.terminate(),this._workerTimer=null,this._timerID=-1)}},{key:"getTimerID",value:function(){return this._timerID}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset"))}}]),n}(sr),rc=function(){function e(){o(this,e),this._n="PurchasedFeatureHandler",this._purchasedFeatureMap=new Map}return i(e,[{key:"isValidPurchaseBits",value:function(e){return e&&"string"==typeof e&&e.length>=1&&e.length<=64&&/[01]{1,64}/.test(e)}},{key:"parsePurchaseBits",value:function(e){var t="".concat(this._n,".parsePurchaseBits");if(this.isValidPurchaseBits(e)){this._purchasedFeatureMap.clear();for(var n=null,r=e.length-1,o=0;r>=0;r--,o++)n=o<32?new E(0,Math.pow(2,o)).toString():new E(Math.pow(2,o-32),0).toString(),"1"===e[r]?this._purchasedFeatureMap.set(n,!0):this._purchasedFeatureMap.set(n,!1)}else Fe.w("".concat(t," invalid purchase bits:").concat(e))}},{key:"hasPurchasedFeature",value:function(e){return!!this._purchasedFeatureMap.get(e)}},{key:"isFeatureEnabled",value:function(e){for(var t=parseInt(e).toString(2),n=void 0,r=!0,o=t.length-1,a=0;o>=0;o--,a++)if("1"===t.charAt(o)&&(n=a<32?new E(0,Math.pow(2,a)).toString():new E(Math.pow(2,a-32),0).toString(),!this._purchasedFeatureMap.get(n))){r=!1;break}return Fe.l("".concat(this._n,".isFeatureEnabled decimalNumber:").concat(e," binaryString:").concat(t," ret:").concat(r)),$a({enabled:r})}},{key:"clear",value:function(){this._purchasedFeatureMap.clear()}}]),e}(),oc=function(){function e(t){o(this,e),this._m=t,this._n="CommercialConfigModule",this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler=new rc}return i(e,[{key:"_canFetch",value:function(){return this._getModule(Bn).isLoggedIn()?!this._isFetching&&Date.now()>=this._expiredTime:(this._expiredTime=Date.now()+2e3,!1)}},{key:"onCheckTimer",value:function(e){this._canFetch()&&this.fetchConfig()}},{key:"fetchConfig",value:function(){var e=this,t=this._canFetch(),n="".concat(this._n,".fetchConfig");if(Fe.l("".concat(n," canFetch:").concat(t)),t){var r=this._getModule(Hn),o=new Ia("fetchCommercialConfig");o.setNetworkType(r.getNetworkType());var a=this._getModule(Bn).getSDKAppID(),i=this._getModule(Kn);this._isFetching=!0,i.request({protocolName:Xo,requestData:{SDKAppID:a}}).then((function(t){o.setMessage("purchaseBits:".concat(t.data.purchaseBits)).end(),Fe.l("".concat(n," ok.")),e._parseConfig(t.data),e._isFetching=!1})).catch((function(t){r.probe().then((function(e){var n=_(e,2),r=n[0],a=n[1];o.setError(t,r,a).end()})),e._isFetching=!1}))}}},{key:"onPushedConfig",value:function(e){var t="".concat(this._n,".onPushedConfig");Fe.l("".concat(t)),new Ia("pushedCommercialConfig").setNetworkType(this._getModule(Hn).getNetworkType()).setMessage("purchaseBits:".concat(e.purchaseBits)).end(),this._parseConfig(e)}},{key:"_parseConfig",value:function(e){var t="".concat(this._n,"._parseConfig"),n=e.errorCode,r=e.errorMessage,o=e.purchaseBits,a=e.expiredTime;0===n?(this._purchasedFeatureHandler.parsePurchaseBits(o),this._expiredTime=Date.now()+1e3*a):it(n)?(Fe.l("".concat(t," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(Fe.e("".concat(t," errorCode:").concat(n," errorMessage:").concat(r)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"canIUse",value:function(e){return this._purchasedFeatureHandler.hasPurchasedFeature(e)}},{key:"isFeatureEnabled",value:function(e){return this._purchasedFeatureHandler.isFeatureEnabled(e)}},{key:"_getModule",value:function(e){return this._m.getModule(e)}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler.clear()}}]),e}(),ac=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._m=e,r._n="OfflinePushModule",r._offlinePushPlugin=void 0,r._androidPushConfig={huaweiPushBussinessId:"",xiaomiPushBussinessId:"",xiaomiPushAppId:"",xiaomiPushAppKey:"",meizuPushBussinessId:"",meizuPushAppId:"",meizuPushAppKey:"",vivoPushBussinessId:"",fcmPushBussinessId:"",oppoPushBussinessId:"",oppoPushAppKey:"",oppoPushAppSecret:"",honorPushBussinessId:""},r._deviceToken="",r._businessID=0,r._iosBusinessID=0,r._c2cUnreadCount=0,r._groupUnreadCount=0,r._isWebUniapp=0,r}return i(n,[{key:"registerPlugin",value:function(e){if(re){this._offlinePushPlugin=e["tim-offline-push-plugin"];var t=e.offlinePushConfig||{},n=t.huaweiBusinessID,r=t.xiaomiBusinessID,o=t.xiaomiAppID,a=t.xiaomiAppKey,i=t.meizuBusinessID,s=t.meizuAppID,c=t.meizuAppKey,l=t.vivoBusinessID,u=t.oppoBusinessID,d=t.oppoAppKey,p=t.oppoAppSecret,f=t.honorBusinessID,h=t.iosBusinessID;this._androidPushConfig.huaweiPushBussinessId=n,this._androidPushConfig.xiaomiPushBussinessId=r,this._androidPushConfig.xiaomiPushAppId=o,this._androidPushConfig.xiaomiPushAppKey=a,this._androidPushConfig.meizuPushBussinessId=i,this._androidPushConfig.meizuPushAppId=s,this._androidPushConfig.meizuPushAppKey=c,this._androidPushConfig.vivoPushBussinessId=l,this._androidPushConfig.oppoPushBussinessId=u,this._androidPushConfig.oppoPushAppKey=d,this._androidPushConfig.oppoPushAppSecret=p,this._androidPushConfig.honorPushBussinessId=f,new Ia("registerPlugin").setMessage("tim-offline-push-plugin").setMoreMessage("isExist:".concat(!it(this._offlinePushPlugin))).end(!0),Fe.l("".concat(this._n,".").concat("registerPlugin"," ok. offlinePushConfig:").concat(JSON.stringify(e.offlinePushConfig))),this._iosBusinessID=h,this._setAppShowListener()}else this.outputWarning("OfflinePushInUniapp")}},{key:"init",value:function(){this._isWebUniapp=this.getUniAppPlatform(),this._getDeviceToken()}},{key:"_getDeviceToken",value:function(){var e=this,t="".concat(this._n,".").concat("_getDeviceToken");if(ct(this._offlinePushPlugin.getDeviceToken)){var n="androidPushConfig:".concat(JSON.stringify(this._androidPushConfig),", iosBusinessID:").concat(this._iosBusinessID);Fe.l("".concat(t," start. ").concat(n)),new Ia("_getDeviceToken").setMessage("".concat(n)).end(!0),this._offlinePushPlugin.getDeviceToken(this._androidPushConfig,(function(r){var o=new Ia("getDeviceTokenRes"),a=r.code,i=r.msg;if(0===a){var s=r.data,c=s.deviceToken,l=s.deviceBrand,u=s.deviceType,d=s.bussinessId;e._deviceToken=c,e._businessID=d||e._iosBusinessID,n="deviceToken:".concat(c,", deviceBrand:").concat(l||u,", businessID:").concat(e._businessID),Fe.l("".concat(t," ok. ").concat(n)),o.setMessage(n).end(!0),e._setToken()}else o.setMessage("code:".concat(a,", msg:").concat(i)).end(!0),Fe.e("".concat(t," failed. error:"),r)}))}else Fe.e("".concat(t," getDeviceToken is not a function"))}},{key:"canIUseOfflinePush",value:function(){return re&&!it(this._offlinePushPlugin)}},{key:"_setAppShowListener",value:function(){var e=this,t="".concat(this._n,".").concat("_setAppShowListener");it(this._offlinePushPlugin)?Fe.e("".concat(t," offlinePushPlugin is undefined")):ct(this._offlinePushPlugin.setAppShowListener)?(new Ia("_setAppShowListener").end(!0),Fe.l("".concat(t," start")),this._offlinePushPlugin.setAppShowListener((function(n){var r=(n||{}).appShow;new Ia("setAppShowListenerRes").setMessage("appShow:".concat(r)).end(!0),Fe.l("".concat(t," ok. appShow:").concat(r)),e._m.isReady()&&(0===r?(e._getConvUnreadCount(),e._onBackground()):1===r&&e._onForeground())}))):Fe.e("".concat(t," setAppShowListener is not a function"))}},{key:"getDeviceBrand",value:function(){if(!it(this._offlinePushPlugin)&&ct(this._offlinePushPlugin.getDeviceType)){var e=(this._offlinePushPlugin.getDeviceType()||{}).deviceType;return Fe.l("".concat(this._n,".getDeviceBrand ok. deviceType:").concat(e)),e}}},{key:"_setToken",value:function(){var e,t=this,n="".concat(this._n,"._setToken"),r=this.getModule(Bn),o=1,a="",i="";Kt(this._deviceToken)&&(o=0);var s=this.getUniAppPlatform(),c=this.getDeviceBrand();s===D.IOS||s===D.IPAD||s===D.MAC?i=this._deviceToken:s===D.ANDROID&&(a=this._deviceToken);var l=new Ia("offlinePushSetToken");return e="deviceToken:".concat(i||a,", businessID:").concat(this._businessID,", ")+"deviceBrand:".concat(c,", isWebUniapp:").concat(this._isWebUniapp,", pushMsg:").concat(o,", platform:").concat(s),l.setMessage("".concat(e)),Fe.l("".concat(n," ").concat(e)),this.request({protocolName:ua,requestData:{tokenID:a,pushMsg:o,sdkAppID:r.getSDKAppID(),businessID:parseInt(this._businessID),deviceBrand:c,deviceToken:i,isWebUniapp:this._isWebUniapp}}).then((function(e){return l.end(),Fe.l("".concat(n," ok")),e})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),Fe.e("".concat(n," failed. error:"),e),Ja(e)}))}},{key:"_getConvUnreadCount",value:function(){var e=this;this._c2cUnreadCount=0,this._groupUnreadCount=0,this.getModule(Vn).getLocalConversationList().forEach((function(t){t.type===T.CONV_C2C&&(e._c2cUnreadCount+=t.unreadCount),t.type===T.CONV_GROUP&&(e._groupUnreadCount+=t.unreadCount)}))}},{key:"_onBackground",value:function(){var e=this,t="".concat(this._n,".").concat("_onBackground"),n=new Ia("_onBackground");this.request({protocolName:ca,requestData:{c2cUnreadCount:this._c2cUnreadCount,groupUnreadCount:this._groupUnreadCount,isWebUniapp:this._isWebUniapp}}).then((function(r){return n.setMessage("c2cUnreadCount: ".concat(e._c2cUnreadCount,", groupUnreadCount: ").concat(e._groupUnreadCount)).end(),Fe.l("".concat(t," ok")),r})).catch((function(r){e.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Fe.e("".concat(t," failed. error:"),r)}))}},{key:"_onForeground",value:function(){var e=this,t="".concat(this._n,".").concat("_onForeground"),n=new Ia("_onForeground");this.request({protocolName:la,requestData:{isWebUniapp:this._isWebUniapp}}).then((function(e){return n.end(),Fe.l("".concat(t," ok")),e})).catch((function(r){e.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Fe.e("".concat(t," failed. error:"),r)}))}},{key:"getUniAppPlatform",value:function(){var e=uni.getSystemInfoSync().platform,t=this.getDeviceBrand();return"ios"===e?D.IOS:"android"===e?D.ANDROID:1002===t?D.IPAD:1001===t?D.MAC:void 0}},{key:"reset",value:function(){this._deviceToken="",this._businessID=0,this._c2cUnreadCount=0,this._groupUnreadCount=0,this._isWebUniapp=0,Fe.l("".concat(this._n,".reset"))}}]),n}(sr),ic=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="ProfanityFilterModule",r._plugin=null,r._filterConfigMap=new Map,r._startIndex=0,r._version=0,r._canIUseLexicon=!1,r._isFetching=!1,r._expiredTime=0,r}return i(n,[{key:"init",value:function(){var e=this.getModule(qn).getPlugin("tim-profanity-filter-plugin");e?(this._plugin=new e({logger:Fe,isArray:at,isMap:Qe,isDevMode:this.isDevMode()}),this._getLexicon()):this.outputWarning("ProfanityPluginNotFound")}},{key:"onCheckTimer",value:function(){this._plugin&&this._canIUseLexicon&&this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime&&this._getLexicon()}},{key:"filterMessage",value:function(e,t){var n=!0;if(!this._plugin||!this._canIUseLexicon)return n;if(t&&t.messageControlInfo&&!0===t.messageControlInfo.excludedFromContentModeration)return n;var r=e.type,o=e.conversationType;if(r!==T.MSG_TEXT&&r!==T.MSG_CUSTOM)return n;var a,i="".concat(this._n,".filterMessage");if(Fe.l("".concat(i)),r===T.MSG_TEXT){if(o===T.CONV_C2C?a=Y:o===T.CONV_GROUP&&(a=q),!this._isConfigOn(a))return n;var s=this._plugin.filter(e.payload.text),c=s.type,l=s.modifiedText;1===c?n=!1:2===c&&(e.payload.text=l)}else if(r===T.MSG_CUSTOM){if(o===T.CONV_C2C?a=z:o===T.CONV_GROUP&&(a=W),!this._isConfigOn(a))return n;var u=this._plugin.filter(e.payload.data),d=this._plugin.filter(e.payload.description),p=this._plugin.filter(e.payload.extension);1===u.type||1===d.type||1===p.type?n=!1:(2===u.type&&(e.payload.data=u.modifiedText),2===d.type&&(e.payload.description=d.modifiedText),2===p.type&&(e.payload.extension=p.modifiedText))}return Fe.l("".concat(i," done. isAllowedToSend:").concat(n)),n}},{key:"filterText",value:function(e,t){var n="".concat(this._n,".filterText"),r={isAllowedToSend:!0,modifiedText:e};if(!this._plugin||!this._canIUseLexicon)return r;if(!this._isConfigOn(t))return r;Fe.l("".concat(n));var o=this._plugin.filter(e),a=o.type,i=o.modifiedText;return 1===a?r.isAllowedToSend=!1:2===a&&(r.modifiedText=i),Fe.l("".concat(n," done. ret:"),r),r}},{key:"_getLexicon",value:function(){var e=this,t=new Ia("profanityFilter"),n="".concat(this._n,"._getLexicon");this._isFetching=!0,this.request({protocolName:da,requestData:{startIndex:this._startIndex,version:this._version}}).then((function(r){var o=r.data,a=o.errorInfo,i=o.filterConfig,s=o.lexicon,c=o.strToken,l=o.completeFlag,u=o.nextStartIndex,d=o.version,p=o.expiredTime,f=a.errorCode,h=a.errorMessage;return 0!==f?(e._isFetching=!1,Fe.w("".concat(n," failed. error:"),a),void t.setCode(f).setMessage(h).end()):(e._onFilterConfig(i),e._getToken(c),1===l?(Fe.l("".concat(n," done. version:").concat(d," expiredTime:").concat(p)),e._version=d,e._canIUseLexicon=!0,e._isFetching=!1,e._expiredTime=Date.now()+1e3*p,void e._plugin.onLexiconCompleted(s)):(e._startIndex=u,e._plugin.onLexiconSliced(s),void e._getLexicon()))})).catch((function(r){e.probeNetwork().then((function(e){var n=_(e,2),o=n[0],a=n[1];t.setError(r,o,a).end()})),e._isFetching=!1,Fe.l("".concat(n," failed. error:"),r)}))}},{key:"_onFilterConfig",value:function(e){var t=this;Kt(e)||(this._filterConfigMap.clear(),Object.keys(e).forEach((function(n){t._filterConfigMap.set(n,e[n])})),Fe.l("".concat(this._n,"._onFilterConfig. keys:").concat(Array.from(this._filterConfigMap.keys())," values:").concat(Array.from(this._filterConfigMap.values()))))}},{key:"_isConfigOn",value:function(e){return 1===this._filterConfigMap.get(e)}},{key:"_getToken",value:function(e){if(nt(e)){var t=e.length,n="";if(t%2==0)for(var r=0;r<=t-1;r+=2)n+=e[r+1],n+=e[r];else{for(var o=0;o<t-1;o+=2)n+=e[o+1],n+=e[o];n+=e[t-1]}this._plugin.onToken(n)}}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),this._plugin&&(this._plugin.reset(),this._plugin=null),this._filterConfigMap.clear(),this._startIndex=0,this._version=0,this._canIUseLexicon=!1,this._isFetching=!1,this._expiredTime=0}}]),n}(sr),sc=function(){function e(t){o(this,e),this._m=t,this._n="TransCmdModule"}return i(e,[{key:"sendTRTCCustomData",value:function(e){return this._trans(n({serv:G.NAME.TUIROOM_SVR},e))}},{key:"_trans",value:function(e){Fe.d("".concat(this._n,"._trans. options:").concat(JSON.stringify(e)));var t=e.serv,n=e.data;return this._m.getModule(Kn).trans({servcmd:"".concat(t,".*"),data:nt(n)?JSON.parse(n):n})}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset"))}}]),e}(),cc=function(){function e(t){o(this,e),this._m=t,this._n="ErrorMessageModule",this.TIM_ERROR_ASSISTANCE="tim_error_assistance",this.STORAGE_EXPIRES_TIME=6048e5,this._map=new Map,this._init()}return i(e,[{key:"_init",value:function(){var e=this._getStorageModule().getItem(this.TIM_ERROR_ASSISTANCE,!1);if(e){var t=JSON.parse(e);this._needToUpdate(t)?this._fetch():this._fillMap(t.message)}else this._fetch()}},{key:"_needToUpdate",value:function(e){var t=e.localSavedTime,n=e.localSavedVersion,r=t&&(new Date).getTime()-t>=this.STORAGE_EXPIRES_TIME,o=!n||"2.27.1"!==n;return Fe.l("".concat(this._n,"._needToUpdate isTimeout:").concat(r," isDifferentVersion:").concat(o)),r||o}},{key:"_fetch",value:function(){if(!this._m.getModule(Bn).isPrivateNetWork()){var e="https://web.sdk.qcloud.com/im/download/error-message/0.0.1/tim-error-message.txt",t="application/x-www-form-urlencoded;charset=UTF-8",n="".concat(this._n,"._fetch ok in"),r=this;if(ae)se.request({url:e,method:"GET",timeout:3e3,header:{"content-type":t},dataType:"text",success:function(e){r._fillAndSave(e.data),Fe.l("".concat(n," mini program"))},fail:function(){}});else{var o=new XMLHttpRequest,a=setTimeout((function(){o.abort()}),3e3);o.onreadystatechange=function(){4===o.readyState&&(clearTimeout(a),200!==o.status&&304!==o.status||(Fe.l("".concat(n," browser")),r._fillAndSave(o.responseText)))},o.open("GET",e,!0),o.setRequestHeader("Content-type",t),o.send()}}}},{key:"_fillAndSave",value:function(e){this._fillMap(e),this._getStorageModule().setItem(this.TIM_ERROR_ASSISTANCE,JSON.stringify({message:e,localSavedTime:(new Date).getTime(),localSavedVersion:"2.27.1"}),!0,!1)}},{key:"_getStorageModule",value:function(){return this._m.getModule(Fn)}},{key:"_fillMap",value:function(e){this._map.clear();for(var t,n,r,o=e.split(";\n"),a=o.length,i=new RegExp(/'/g),s=0;s<a;s++)if(t=o[s].indexOf(":"),n=o[s].slice(0,t),r=o[s].slice(t+1,o[s].length),!n.startsWith("//")){if(it(r))continue;this._map.set(n,r.replace(i,""))}}},{key:"get",value:function(e){var t=e.isIntl,n=e.key,r=e.replacement1,o=e.replacement2,a="".concat(n,t?"_en":"_cn");!this._map.has(a)&&this._map.has(n)&&(a=n);var i="";return this._map.has(a)?(i=this._map.get(a),it(r)||(i=i.replace("$replacement1",r)),it(o)||(i=i.replace("$replacement2",o)),i):i}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset"))}}]),e}(),lc=function(){function e(t){o(this,e);var n=new Ia("sdkConstruct");this._n="ModuleManager",this._isReady=!1,this._reason=fa.USER_NOT_LOGGED_IN,this._startLoginTs=0,this._moduleMap=new Map,this._innerEmitter=null,this._outerEmitter=null,this._checkCount=0,this._checkTimer=-1,this._moduleMap.set(Bn,new Xi(this,t)),this._moduleMap.set(tr,new oc(this)),this._moduleMap.set(Xn,new $s(this)),this._moduleMap.set(Qn,new nc(this)),this._moduleMap.set(er,new tc(this)),this._moduleMap.set($n,new Bs(this)),this._moduleMap.set(Kn,new Ws(this)),this._moduleMap.set(jn,new Qi(this)),this._moduleMap.set(Dn,new gs(this)),this._moduleMap.set(Ln,new _s(this)),this._moduleMap.set(ar,new bs(this)),this._moduleMap.set(An,new Ji(this)),this._moduleMap.set(Nn,new Xa(this)),this._moduleMap.set(Vn,new _i(this)),this._moduleMap.set(Rn,new Ui(this)),this._moduleMap.set(Pn,new Bi(this)),this._moduleMap.set(Un,new Yi(this)),this._moduleMap.set(Fn,new es(this)),this._moduleMap.set(ir,new cc(this)),this._moduleMap.set(Gn,new rs(this)),this._moduleMap.set(Hn,new ss(this)),this._moduleMap.set(Yn,new ls(this)),this._moduleMap.set(zn,new ds(this)),this._moduleMap.set(qn,new ys(this)),this._moduleMap.set(Wn,new Os(this)),this._moduleMap.set(Jn,new Ks(this)),this._moduleMap.set(Zn,new Js(this)),this._moduleMap.set(nr,new ac(this)),this._moduleMap.set(rr,new ic(this)),this._moduleMap.set(or,new sc(this)),this._eventThrottleMap=new Map;var r=t.instanceID,a=t.oversea,i=t.SDKAppID,s="instanceID:".concat(r," SDKAppID:").concat(i," host:").concat(Lt()," oversea:").concat(a," inBrowser:").concat(ie," inMiniApp:").concat(ae)+" workerAvailable:".concat(Te," UserAgent:").concat(ce);Ia.bindEventStatModule(this._moduleMap.get(Gn)),n.setMessage("".concat(s," ").concat(function(){var e="";if(ae)try{var t=se.getSystemInfoSync(),n=t.model,r=t.version,o=t.system,a=t.platform,i=t.SDKVersion;e="model:".concat(n," version:").concat(r," system:").concat(o," platform:").concat(a," SDKVersion:").concat(i)}catch(s){e=""}return e}())).end(),Fe.i("SDK ".concat(s)),qa.prototype._getErrorMessage=this.getErrorMessage.bind(this),this._readyList=void 0,this._ssoLogForReady=null,this._initReadyList()}return i(e,[{key:"_startTimer",value:function(){var e=this._moduleMap.get(Qn),t=e.isWorkerEnabled();Fe.l("".concat(this._n,".startTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.startWorkerTimer():this._startMainThreadTimer()}},{key:"_startMainThreadTimer",value:function(){this._checkTimer<0&&(this._checkTimer=setInterval(this.onCheckTimer.bind(this),1e3)),Fe.l("".concat(this._n,"._startMainThreadTimer seed:").concat(this._checkTimer))}},{key:"stopTimer",value:function(){var e=this._moduleMap.get(Qn),t=e.isWorkerEnabled();Fe.l("".concat(this._n,".stopTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.stopWorkerTimer():this._stopMainThreadTimer()}},{key:"_stopMainThreadTimer",value:function(){Fe.l("".concat(this._n,"._stopMainThreadTimer")),this._checkTimer>0&&(clearInterval(this._checkTimer),this._checkTimer=-1,this._checkCount=0)}},{key:"_stopMainThreadSocket",value:function(){Fe.l("".concat(this._n,"._stopMainThreadSocket"));var e=this._moduleMap.get($n);e.setIsWorkerEnabled(!0),e.reConnect()}},{key:"_startMainThreadSocket",value:function(){Fe.l("".concat(this._n,"._startMainThreadSocket"));var e=this._moduleMap.get($n);e.setIsWorkerEnabled(!1),e.reConnect()}},{key:"onWorkerTimerEnabled",value:function(){Fe.l("".concat(this._n,".onWorkerTimerEnabled, disable main thread timer and socket")),this._stopMainThreadTimer(),this._stopMainThreadSocket()}},{key:"onWorkerTimerDisabled",value:function(){Fe.l("".concat(this._n,".onWorkerTimerDisabled, enable main thread timer and socket")),this._startMainThreadTimer(),this._startMainThreadSocket()}},{key:"onCheckTimer",value:function(){this._checkCount+=1;var e,t=w(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2)[1];n.onCheckTimer&&n.onCheckTimer(this._checkCount)}}catch(o){t.e(o)}finally{t.f()}}},{key:"_initReadyList",value:function(){var e=this;this._readyList=[this._moduleMap.get(jn),this._moduleMap.get(Vn)],this._readyList.forEach((function(t){t.ready((function(){return e._onModuleReady()}))}))}},{key:"_onModuleReady",value:function(){var e=!0;if(this._readyList.forEach((function(t){t.isReady()||(e=!1)})),e&&!this._isReady){this._isReady=!0,this._outerEmitter.emit(S.SDK_READY);var t=Date.now()-this._startLoginTs;Fe.w("SDK is ready. cost ".concat(t," ms")),this._startLoginTs=Date.now();var n=this._moduleMap.get(Hn).getNetworkType(),r=this._ssoLogForReady.getStartTs()+Ne;this._ssoLogForReady.setNetworkType(n).setMessage(t).start(r).end()}}},{key:"login",value:function(){0===this._startLoginTs&&(xe(),this._startLoginTs=Date.now(),this._startTimer(),this._moduleMap.get(Hn).start(),this._ssoLogForReady=new Ia("sdkReady"),this._reason=fa.LOGGING_IN)}},{key:"onLoginFailed",value:function(){this._startLoginTs=0}},{key:"getOuterEmitterInstance",value:function(){return null===this._outerEmitter&&(this._outerEmitter=new cs,Ka(this._outerEmitter),this._outerEmitter._emit=this._outerEmitter.emit,this._outerEmitter.emit=function(e,t){var n=this;if(e===S.CONVERSATION_LIST_UPDATED||e===S.FRIEND_LIST_UPDATED||e===S.GROUP_LIST_UPDATED||e===S.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED)if(this._eventThrottleMap.has(e)){var r=Date.now(),o=this._eventThrottleMap.get(e);r-o.last<=1e3?(o.timeoutID&&clearTimeout(o.timeoutID),o.timeoutID=setTimeout((function(){o.last=Date.now(),n._outerEmitter._emit.apply(n._outerEmitter,[e,{name:e,data:n._getEventData(e)}])}),1e3)):(o.last=r,this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]))}else this._eventThrottleMap.set(e,{last:Date.now(),timeoutID:-1}),this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]);else this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:arguments[1]}])}.bind(this)),this._outerEmitter}},{key:"_getEventData",value:function(e){return e===S.CONVERSATION_LIST_UPDATED?this._moduleMap.get(Vn).getLocalConversationList():e===S.FRIEND_LIST_UPDATED?this._moduleMap.get(xn).getLocalFriendList(!1):e===S.GROUP_LIST_UPDATED?this._moduleMap.get(Rn).getLocalGroupList():e===S.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED?this._moduleMap.get(Vn).getTotalUnreadMessageCount():void 0}},{key:"getInnerEmitterInstance",value:function(){return null===this._innerEmitter&&(this._innerEmitter=new cs,this._innerEmitter._emit=this._innerEmitter.emit,this._innerEmitter.emit=function(e,t){var n;n=ot(arguments[1])&&arguments[1].data?[e,{name:arguments[0],data:arguments[1].data}]:[e,{name:arguments[0],data:arguments[1]}],this._innerEmitter._emit.apply(this._innerEmitter,n)}.bind(this)),this._innerEmitter}},{key:"hasModule",value:function(e){return this._moduleMap.has(e)}},{key:"getModule",value:function(e){return this._moduleMap.get(e)}},{key:"isReady",value:function(){return this._isReady}},{key:"isIntl",value:function(){return this.getModule(Bn).isIntl()}},{key:"getNotReadyReason",value:function(){return this._reason}},{key:"setNotReadyReason",value:function(e){this._reason=e}},{key:"getErrorMessage",value:function(e,t,n){return this._moduleMap.get(ir).get({key:e,replacement1:t,replacement2:n,isIntl:this.isIntl()})}},{key:"outputWarning",value:function(e,t,n){var r=this.getErrorMessage(e,t,n);r&&Fe.w(r)}},{key:"onError",value:function(e){var t="code:".concat(e.code," message:").concat(e.message);Fe.w("Oops! ".concat(t)),new Ia("error").setMessage(t).setNetworkType(this.getModule(Hn).getNetworkType()).setLevel("error").end(),this.getOuterEmitterInstance().emit(S.ERROR,e)}},{key:"restartTimer",value:function(){Fe.l("".concat(this._n,".restartTimer")),this.stopTimer(),this._startTimer(),this.getModule(Rn).restartPolling()}},{key:"getTimerID",value:function(){var e=this._moduleMap.get(Qn);return e.isWorkerEnabled()?e.getTimerID():this._checkTimer}},{key:"reset",value:function(){Fe.l("".concat(this._n,".reset")),xe();var e,t=w(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2)[1];n.reset&&n.reset()}}catch(s){t.e(s)}finally{t.f()}this._startLoginTs=0,this._initReadyList(),this._isReady=!1,this.stopTimer(),this._outerEmitter.emit(S.SDK_NOT_READY);var r,o=w(this._eventThrottleMap);try{for(o.s();!(r=o.n()).done;){var a=_(r.value,2)[1];a.timeoutID&&clearTimeout(a.timeoutID)}}catch(s){o.e(s)}finally{o.f()}this._eventThrottleMap.clear()}}]),e}(),uc=function(){function e(t){o(this,e),this._funcMap=new Map,this._m=t}return i(e,[{key:"defense",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if("string"!=typeof e)return null;if(0===e.length)return null;if("function"!=typeof t)return null;if(this._funcMap.has(e)&&this._funcMap.get(e).has(t))return this._funcMap.get(e).get(t);this._funcMap.has(e)||this._funcMap.set(e,new Map);var r=null;return this._funcMap.get(e).has(t)?r=this._funcMap.get(e).get(t):(r=this._pack(e,t,n),this._funcMap.get(e).set(t,r)),r}},{key:"defenseOnce",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return"function"!=typeof t?null:this._pack(e,t,n)}},{key:"find",value:function(e,t){return"string"!=typeof e||0===e.length||"function"!=typeof t?null:this._funcMap.has(e)&&this._funcMap.get(e).has(t)?this._funcMap.get(e).get(t):(this._m.outputWarning("ListenerFnNotFound",e),null)}},{key:"delete",value:function(e,t){return"function"==typeof t&&!!this._funcMap.has(e)&&!!this._funcMap.get(e).has(t)&&(this._funcMap.get(e).delete(t),0===this._funcMap.get(e).size&&this._funcMap.delete(e),!0)}},{key:"_pack",value:function(e,t,n){var r=this;return function(){try{t.apply(n,Array.from(arguments))}catch(l){var o=Object.values(S).indexOf(e),a="CallbackError";if(-1!==o){var i=Object.keys(S)[o];r._m.outputWarning(a,i,l)}var s=new Ia(a);s.setMessage("eventName:".concat(e)).setMoreMessage(l.message).end()}}}}]),e}(),dc=function(){function e(t){o(this,e);var n={SDKAppID:t.SDKAppID,unlimitedAVChatRoom:t.unlimitedAVChatRoom||!1,scene:t.scene||"",oversea:t.oversea||!1,instanceID:Dt(),devMode:t.devMode||!1,proxyServer:t.proxyServer||void 0,fileUploadProxy:t.fileUploadProxy||void 0,fileDownloadProxy:t.fileDownloadProxy||t.fileUploadProxy||void 0};this._m=new lc(n),this._safetyCallbackFactory=new uc(this._m)}return i(e,[{key:"onError",value:function(e){this._m.onError(e)}},{key:"login",value:function(e){return this._m.login(),this._getModule(jn).login(e)}},{key:"logout",value:function(){var e=this;return this._getModule(jn).logout().then((function(t){return e._m.reset(),t}))}},{key:"isReady",value:function(){return this._m.isReady()}},{key:"isIntl",value:function(){return this._m.isIntl()}},{key:"getNotReadyReason",value:function(){return this._m.getNotReadyReason()}},{key:"getErrorMessage",value:function(e,t,n){return this._m.getErrorMessage(e,t,n)}},{key:"_getModule",value:function(e){return this._m.getModule(e)}},{key:"destroy",value:function(){var e=this;return this.logout().finally((function(){e._m.stopTimer(),e._getModule(Qn).terminate(),e._getModule($n).dealloc();var t=e._m.getOuterEmitterInstance(),n=e._getModule(Bn);t.emit(S.SDK_DESTROY,{SDKAppID:n.getSDKAppID()})}))}},{key:"on",value:function(e,t,n){Fe.d("on","eventName:".concat(e)),this._m.getOuterEmitterInstance().on(e,this._safetyCallbackFactory.defense(e,t,n),n)}},{key:"once",value:function(e,t,n){Fe.d("once","eventName:".concat(e)),this._m.getOuterEmitterInstance().once(e,this._safetyCallbackFactory.defenseOnce(e,t,n),n||this)}},{key:"off",value:function(e,t,n,r){Fe.d("off","eventName:".concat(e));var o=this._safetyCallbackFactory.find(e,t);null!==o&&(this._m.getOuterEmitterInstance().off(e,o,n,r),this._safetyCallbackFactory.delete(e,t))}},{key:"registerPlugin",value:function(e){it(e["tim-offline-push-plugin"])?this._getModule(qn).registerPlugin(e):this._getModule(nr).registerPlugin(e)}},{key:"setLogLevel",value:function(e){if(e<=0){var t=this.getErrorMessage("TIM_ASCII_ART");t&&console.log(t);var n=this.getErrorMessage("API_REFER");n&&(Yt()?console.log("%c ".concat("IM SDK API ->"," %c"),"background:#ff9d00; padding:1px; border-radius:3px; color: #fff","background:transparent",n):console.log("IM SDK API ->",n));var r=this.getErrorMessage("DOCS_GUIDE");r&&console.log(r)}Fe.setLevel(e)}},{key:"createTextMessage",value:function(e){return this._getModule(Dn).createTextMessage(e)}},{key:"createTextAtMessage",value:function(e){return this._getModule(Dn).createTextMessage(e)}},{key:"createImageMessage",value:function(e){return this._getModule(Dn).createImageMessage(e)}},{key:"createAudioMessage",value:function(e){return this._getModule(Dn).createAudioMessage(e)}},{key:"createVideoMessage",value:function(e){return this._getModule(Dn).createVideoMessage(e)}},{key:"createCustomMessage",value:function(e){return this._getModule(Dn).createCustomMessage(e)}},{key:"createFaceMessage",value:function(e){return this._getModule(Dn).createFaceMessage(e)}},{key:"createFileMessage",value:function(e){return this._getModule(Dn).createFileMessage(e)}},{key:"createLocationMessage",value:function(e){return this._getModule(Dn).createLocationMessage(e)}},{key:"createMergerMessage",value:function(e){return this._getModule(Dn).createMergerMessage(e)}},{key:"downloadMergerMessage",value:function(e){return e.type!==T.MSG_MERGER?Ja({code:fa.MESSAGE_MERGER_TYPE_INVALID}):Kt(e.payload.downloadKey)?Ja({code:fa.MESSAGE_MERGER_KEY_INVALID}):this._getModule(Dn).downloadMergerMessage(e).catch((function(e){return Ja({code:fa.MESSAGE_MERGER_DOWNLOAD_FAIL})}))}},{key:"createForwardMessage",value:function(e){return this._getModule(Dn).createForwardMessage(e)}},{key:"sendMessage",value:function(e,t){return e instanceof Ya?this._getModule(Dn).sendMessageInstance(e,t):Ja({code:fa.MESSAGE_SEND_NEED_MESSAGE_INSTANCE})}},{key:"callExperimentalAPI",value:function(e,t){return"sendComboMessage"===e?this._getModule(ar).sendMessage(t):"handleGroupInvitation"===e?this._getModule(Rn).handleGroupInvitation(t):"isCommercialAbilityEnabled"===e?this._getModule(tr).isFeatureEnabled(t):"isIntl"===e?this.isIntl():"sendTRTCCustomData"===e?this._getModule(or).sendTRTCCustomData(t):"getTimerID"===e?this._m.getTimerID():Ja({code:fa.INVALID_OPERATION})}},{key:"revokeMessage",value:function(e){return this._getModule(Dn).revokeMessage(e)}},{key:"resendMessage",value:function(e){return this._getModule(Dn).resendMessage(e)}},{key:"deleteMessage",value:function(e){return this._getModule(Dn).deleteMessage(e)}},{key:"translateText",value:function(e){return this._getModule(Dn).translateText(e)}},{key:"setMessageExtensions",value:function(e,t){return this._getModule(Ln).setMessageExtensions(e,t)}},{key:"getMessageExtensions",value:function(e){return this._getModule(Ln).getMessageExtensions(e)}},{key:"deleteMessageExtensions",value:function(e,t){return this._getModule(Ln).deleteMessageExtensions(e,t)}},{key:"modifyMessage",value:function(e){return this._getModule(Dn).modifyRemoteMessage(e)}},{key:"getMessageList",value:function(e){return this._getModule(Vn).getMessageList(e)}},{key:"getMessageListHopping",value:function(e){return this._getModule(Vn).getMessageListHopping(e)}},{key:"sendMessageReadReceipt",value:function(e){return this._getModule(Vn).sendReadReceipt(e)}},{key:"getMessageReadReceiptList",value:function(e){return this._getModule(Vn).getReadReceiptList(e)}},{key:"getGroupMessageReadMemberList",value:function(e){return this._getModule(Rn).getReadReceiptDetail(e)}},{key:"findMessage",value:function(e){return this._getModule(Vn).findMessage(e)}},{key:"setMessageRead",value:function(e){return this._getModule(Vn).setMessageRead(e)}},{key:"getConversationList",value:function(e){return this._getModule(Vn).getConversationList(e)}},{key:"getConversationProfile",value:function(e){return this._getModule(Vn).getConversationProfile(e)}},{key:"deleteConversation",value:function(e){return this._getModule(Vn).deleteConversation(e)}},{key:"clearHistoryMessage",value:function(e){return this._getModule(Vn).clearHistoryMessage(e)}},{key:"pinConversation",value:function(e){return this._getModule(Vn).pinConversation(e)}},{key:"setAllMessageRead",value:function(e){return this._getModule(Vn).setAllMessageRead(e)}},{key:"setMessageRemindType",value:function(e){return this._getModule(Vn).setMessageRemindType(e)}},{key:"getTotalUnreadMessageCount",value:function(){return this._getModule(Vn).getTotalUnreadMessageCount()}},{key:"setConversationCustomData",value:function(e){return this._getModule(Vn).setConversationCustomData(e)}},{key:"markConversation",value:function(e){return this._getModule(Vn).markConversation(e)}},{key:"getConversationGroupList",value:function(){return this._getModule(Vn).getConversationGroupList()}},{key:"createConversationGroup",value:function(e){return this._getModule(Vn).createConversationGroup(e)}},{key:"deleteConversationGroup",value:function(e){return this._getModule(Vn).deleteConversationGroup(e)}},{key:"renameConversationGroup",value:function(e){return this._getModule(Vn).renameConversationGroup(e)}},{key:"addConversationsToGroup",value:function(e){return this._getModule(Vn).addConversationsToGroup(e)}},{key:"deleteConversationsFromGroup",value:function(e){return this._getModule(Vn).deleteConversationsFromGroup(e)}},{key:"getMyProfile",value:function(){return this._getModule(An).getMyProfile()}},{key:"getUserProfile",value:function(e){return this._getModule(An).getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._getModule(An).updateMyProfile(e)}},{key:"getBlacklist",value:function(){return this._getModule(An).getLocalBlacklist()}},{key:"addToBlacklist",value:function(e){return this._getModule(An).addBlacklist(e)}},{key:"removeFromBlacklist",value:function(e){return this._getModule(An).deleteBlacklist(e)}},{key:"setSelfStatus",value:function(e){return this._getModule(An).setSelfStatus(e)}},{key:"getUserStatus",value:function(e){return this._getModule(An).getUserStatus(e)}},{key:"subscribeUserStatus",value:function(e){return this._getModule(An).subscribeUserStatus(e)}},{key:"unsubscribeUserStatus",value:function(e){return this._getModule(An).unsubscribeUserStatus(e)}},{key:"getFriendList",value:function(){var e=this._getModule(xn);return e?e.getLocalFriendList():Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"addFriend",value:function(e){var t=this._getModule(xn);return t?t.addFriend(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"deleteFriend",value:function(e){var t=this._getModule(xn);return t?t.deleteFriend(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"checkFriend",value:function(e){var t=this._getModule(xn);return t?t.checkFriend(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"getFriendProfile",value:function(e){var t=this._getModule(xn);return t?t.getFriendProfile(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"updateFriend",value:function(e){var t=this._getModule(xn);return t?t.updateFriend(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"getFriendApplicationList",value:function(){var e=this._getModule(xn);return e?e.getLocalFriendApplicationList():Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"acceptFriendApplication",value:function(e){var t=this._getModule(xn);return t?t.acceptFriendApplication(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"refuseFriendApplication",value:function(e){var t=this._getModule(xn);return t?t.refuseFriendApplication(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"deleteFriendApplication",value:function(e){var t=this._getModule(xn);return t?t.deleteFriendApplication(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"setFriendApplicationRead",value:function(){var e=this._getModule(xn);return e?e.setFriendApplicationRead():Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"getFriendGroupList",value:function(){var e=this._getModule(xn);return e?e.getLocalFriendGroupList():Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"createFriendGroup",value:function(e){var t=this._getModule(xn);return t?t.createFriendGroup(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"deleteFriendGroup",value:function(e){var t=this._getModule(xn);return t?t.deleteFriendGroup(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"addToFriendGroup",value:function(e){var t=this._getModule(xn);return t?t.addToFriendGroup(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"removeFromFriendGroup",value:function(e){var t=this._getModule(xn);return t?t.removeFromFriendGroup(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"renameFriendGroup",value:function(e){var t=this._getModule(xn);return t?t.renameFriendGroup(e):Ja({code:fa.CANNOT_FIND_MODULE})}},{key:"getGroupList",value:function(e){return this._getModule(Rn).getGroupList(e)}},{key:"getGroupProfile",value:function(e){return this._getModule(Rn).getGroupProfile(e)}},{key:"createGroup",value:function(e){return this._getModule(Rn).createGroup(e)}},{key:"dismissGroup",value:function(e){return this._getModule(Rn).dismissGroup(e)}},{key:"updateGroupProfile",value:function(e){return this._getModule(Rn).updateGroupProfile(e)}},{key:"joinGroup",value:function(e){return this._getModule(Rn).joinGroup(e)}},{key:"quitGroup",value:function(e){return this._getModule(Rn).quitGroup(e)}},{key:"searchGroupByID",value:function(e){return this._getModule(Rn).searchGroupByID(e)}},{key:"getGroupOnlineMemberCount",value:function(e){return this._getModule(Rn).getGroupOnlineMemberCount(e)}},{key:"changeGroupOwner",value:function(e){return this._getModule(Rn).changeGroupOwner(e)}},{key:"getGroupApplicationList",value:function(){return this._getModule(Rn).getGroupApplicationList()}},{key:"handleGroupApplication",value:function(e){return this._getModule(Rn).handleGroupApplication(e)}},{key:"initGroupAttributes",value:function(e){return this._getModule(Rn).initGroupAttributes(e)}},{key:"setGroupAttributes",value:function(e){return this._getModule(Rn).setGroupAttributes(e)}},{key:"deleteGroupAttributes",value:function(e){return this._getModule(Rn).deleteGroupAttributes(e)}},{key:"getGroupAttributes",value:function(e){return this._getModule(Rn).getGroupAttributes(e)}},{key:"setGroupCounters",value:function(e){return this._getModule(Rn).setGroupCounters(e)}},{key:"increaseGroupCounter",value:function(e){return this._getModule(Rn).increaseGroupCounter(e)}},{key:"decreaseGroupCounter",value:function(e){return this._getModule(Rn).decreaseGroupCounter(e)}},{key:"getGroupCounters",value:function(e){return this._getModule(Rn).getGroupCounters(e)}},{key:"getGroupMemberList",value:function(e){return this._getModule(Pn).getGroupMemberList(e)}},{key:"getGroupMemberProfile",value:function(e){return this._getModule(Pn).getGroupMemberProfile(e)}},{key:"addGroupMember",value:function(e){return this._getModule(Pn).addGroupMember(e)}},{key:"deleteGroupMember",value:function(e){return this._getModule(Pn).deleteGroupMember(e)}},{key:"setGroupMemberMuteTime",value:function(e){return this._getModule(Pn).setGroupMemberMuteTime(e)}},{key:"setGroupMemberRole",value:function(e){return this._getModule(Pn).setGroupMemberRole(e)}},{key:"setGroupMemberNameCard",value:function(e){return this._getModule(Pn).setGroupMemberNameCard(e)}},{key:"setGroupMemberCustomField",value:function(e){return this._getModule(Pn).setGroupMemberCustomField(e)}},{key:"markGroupMemberList",value:function(e){return this._getModule(Pn).markGroupMemberList(e)}},{key:"getJoinedCommunityList",value:function(){return this._getModule(Un).getJoinedCommunityList()}},{key:"createTopicInCommunity",value:function(e){return this._getModule(Un).createTopicInCommunity(e)}},{key:"deleteTopicFromCommunity",value:function(e){return this._getModule(Un).deleteTopicFromCommunity(e)}},{key:"updateTopicProfile",value:function(e){return this._getModule(Un).updateTopicProfile(e)}},{key:"getTopicList",value:function(e){return this._getModule(Un).getTopicList(e)}}]),e}(),pc={login:1,logout:1,destroy:1,on:1,off:1,ready:1,setLogLevel:1,joinGroup:1,quitGroup:1,registerPlugin:1,getGroupOnlineMemberCount:1};function fc(e,t){if(e.isReady()||1===pc[t])return!0;var n=e.getNotReadyReason(),r={code:n,message:"".concat(e.getErrorMessage(n)," | ").concat(t," | ").concat(e.getErrorMessage(fa.SDK_IS_NOT_READY))};return e.onError(r),r}var hc={},mc={create:function(e){var t=0,r=e.SDKAppID;if(et(r))t=r;else if(t=parseInt(r),isNaN(r))return Fe.e("".concat("TIM.create"," failed. Failed to parse the SDKAppID, please check the arguments")),null;if(t&&hc[t])return hc[t];Fe.l("".concat("TIM.create"));var o=new dc(n(n({},e),{},{SDKAppID:t}));o.on(S.SDK_DESTROY,(function(e){hc[e.data.SDKAppID]=null,delete hc[e.data.SDKAppID]}));var a=function(e){var t=Object.create(null);return Object.keys(En).forEach((function(n){if(e[n]){var r=new I;t[n]=function(){var t=Array.from(arguments);return r.use((function(t,r){var o=fc(e,n);return!0===o?r():Ja(o)})).use((function(e,t){if(!0===$t(e,In[n],n))return t()})).use((function(t,r){return e[n].apply(e,t)})),r.run(t)}}})),t}(o);return hc[t]=a,In.hookGetAPITips(o.getErrorMessage.bind(o)),Fe.l("".concat("TIM.create"," ok")),a}};return mc.TYPES=T,mc.EVENT=S,mc.VERSION="2.27.1",Fe.l("TIM.VERSION:".concat(mc.VERSION)),mc}))}).call(this,n("c8ba"))},e23e4:function(e,t,n){"use strict";var r=n("a5eb");r({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},e2c3:function(e,t,n){"use strict";n("718c")},e330:function(e,t,n){"use strict";var r=n("40d5"),o=Function.prototype,a=o.call,i=r&&o.bind.bind(a,a);e.exports=r?i:function(e){return function(){return a.apply(e,arguments)}}},e332:function(e,t,n){"use strict";var r=n("437b"),o=n("92cd"),a=Array.prototype;e.exports=function(e){var t=e.slice;return e===a||r(a,e)&&t===a.slice?o:t}},e342:function(e,t,n){"use strict";var r=n("a5eb"),o=Math.hypot,a=Math.abs,i=Math.sqrt,s=!!o&&o(1/0,NaN)!==1/0;r({target:"Math",stat:!0,arity:2,forced:s},{hypot:function(e,t){var n,r,o=0,s=0,c=arguments.length,l=0;while(s<c)n=a(arguments[s++]),l<n?(r=l/n,o=o*r*r+1,l=n):n>0?(r=n/l,o+=r*r):o+=n;return l===1/0?1/0:l*i(o)}})},e363:function(e,t,n){"use strict";var r=n("f94a");r("asyncIterator")},e391:function(e,t,n){"use strict";var r=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},e392:function(e,t,n){"use strict";var r=n("437b"),o=n("5107"),a=Array.prototype;e.exports=function(e){var t=e.map;return e===a||r(a,e)&&t===a.map?o:t}},e3db:function(e,t,n){"use strict";var r=n("a5eb"),o=n("7106"),a=n("4e19"),i=n("ad27"),s=n("9b8d"),c=n("5b57"),l=n("f135");r({target:"Promise",stat:!0,forced:l},{all:function(e){var t=this,n=i.f(t),r=n.resolve,l=n.reject,u=s((function(){var n=a(t.resolve),i=[],s=0,u=1;c(e,(function(e){var a=s++,c=!1;u++,o(n,t,e).then((function(e){c||(c=!0,i[a]=e,--u||r(i))}),l)})),--u||r(i)}));return u.error&&l(u.value),n.promise}})},e460:function(e,t,n){"use strict";var r=n("4e19"),o=n("4fff"),a=n("638c"),i=n("c74f"),s=TypeError,c="Reduce of empty array with no initial value",l=function(e){return function(t,n,l,u){var d=o(t),p=a(d),f=i(d);if(r(n),0===f&&l<2)throw new s(c);var h=e?f-1:0,m=e?-1:1;if(l<2)while(1){if(h in p){u=p[h],h+=m;break}if(h+=m,e?h<0:f<=h)throw new s(c)}for(;e?h>=0:f>h;h+=m)h in p&&(u=n(u,p[h],h,d));return u}};e.exports={left:l(!1),right:l(!0)}},e466:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return s}));var r=n("0931"),o=n("0898"),a=n("31e7"),i=n("f5f6");const s=["primary","success","info","warning","error"],c=["top","top-left","top-right","bottom","bottom-left","bottom-right"],l="top",u=Object(i["a"])({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:r["isClient"]?document.body:void 0}),d=Object(o["b"])({customClass:{type:String,default:u.customClass},dangerouslyUseHTMLString:{type:Boolean,default:u.dangerouslyUseHTMLString},duration:{type:Number,default:u.duration},icon:{type:a["e"],default:u.icon},id:{type:String,default:u.id},message:{type:Object(o["c"])([String,Object,Function]),default:u.message},onClose:{type:Object(o["c"])(Function),default:u.onClose},showClose:{type:Boolean,default:u.showClose},type:{type:String,values:s,default:u.type},plain:{type:Boolean,default:u.plain},offset:{type:Number,default:u.offset},placement:{type:String,values:c,default:u.placement},zIndex:{type:Number,default:u.zIndex},grouping:{type:Boolean,default:u.grouping},repeatNum:{type:Number,default:u.repeatNum}}),p={destroy:()=>!0}},e477:function(e,t,n){"use strict";var r=n("3ce8");e.exports=r},e47e:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("0898"),o=n("27b6"),a=n("5143");const i=Object(r["b"])({a11y:{type:Boolean,default:!0},locale:{type:Object(r["c"])(Object)},size:o["c"],button:{type:Object(r["c"])(Object)},card:{type:Object(r["c"])(Object)},dialog:{type:Object(r["c"])(Object)},link:{type:Object(r["c"])(Object)},experimentalFeatures:{type:Object(r["c"])(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Object(r["c"])(Object)},zIndex:Number,namespace:{type:String,default:"el"},table:{type:Object(r["c"])(Object)},...a["c"]})},e4f0:function(e,t,n){e.exports=n("606e")},e519:function(e,t,n){"use strict";var r=n("a5eb"),o=n("6220");r({target:"Array",stat:!0},{isArray:o})},e59b:function(e,t,n){"use strict";n("da80");var r=n("764b");e.exports=r.Object.values},e5cb:function(e,t,n){"use strict";var r=n("d066"),o=n("1a2d"),a=n("9112"),i=n("3a9b"),s=n("d2bb"),c=n("e893"),l=n("aeb0"),u=n("7156"),d=n("e391"),p=n("ab367"),f=n("6f19"),h=n("83ab"),m=n("c430");e.exports=function(e,t,n,v){var g="stackTraceLimit",_=v?2:1,b=e.split("."),y=b[b.length-1],O=r.apply(null,b);if(O){var M=O.prototype;if(!m&&o(M,"cause")&&delete M.cause,!n)return O;var k=r("Error"),C=t((function(e,t){var n=d(v?t:e,void 0),r=v?new O(e):new O;return void 0!==n&&a(r,"message",n),f(r,C,r.stack,2),this&&i(M,this)&&u(r,this,C),arguments.length>_&&p(r,arguments[_]),r}));if(C.prototype=M,"Error"!==y?s?s(C,k):c(C,k,{name:!0}):h&&g in O&&(l(C,O,g),l(C,O,"prepareStackTrace")),c(C,O),!m)try{M.name!==y&&a(M,"name",y),M.constructor=C}catch(w){}return C}}},e60a:function(e,t,n){e.exports=n("1909")},e635:function(e,t,n){"use strict";var r=n("437b"),o=n("f474"),a=Array.prototype;e.exports=function(e){var t=e.splice;return e===a||r(a,e)&&t===a.splice?o:t}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e699:function(e,t,n){"use strict";var r=n("f94a");r("match")},e6da:function(e,t,n){e.exports=n("72d7")},e76e:function(e,t,n){e.exports=n("904d")},e788:function(e,t){},e7cc:function(e,t,n){"use strict";var r=n("f94a");r("matchAll")},e7f1:function(e,t,n){"use strict";var r=n("ce18"),o=2147483647,a=36,i=1,s=26,c=38,l=700,u=72,d=128,p="-",f=/[^\0-\u007E]/,h=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",v=a-i,g=RangeError,_=r(h.exec),b=Math.floor,y=String.fromCharCode,O=r("".charCodeAt),M=r([].join),k=r([].push),C=r("".replace),w=r("".split),S=r("".toLowerCase),T=function(e){var t=[],n=0,r=e.length;while(n<r){var o=O(e,n++);if(o>=55296&&o<=56319&&n<r){var a=O(e,n++);56320===(64512&a)?k(t,((1023&o)<<10)+(1023&a)+65536):(k(t,o),n--)}else k(t,o)}return t},I=function(e){return e+22+75*(e<26)},E=function(e,t,n){var r=0;e=n?b(e/l):e>>1,e+=b(e/t);while(e>v*s>>1)e=b(e/v),r+=a;return b(r+(v+1)*e/(e+c))},j=function(e){var t=[];e=T(e);var n,r,c=e.length,l=d,f=0,h=u;for(n=0;n<e.length;n++)r=e[n],r<128&&k(t,y(r));var v=t.length,_=v;v&&k(t,p);while(_<c){var O=o;for(n=0;n<e.length;n++)r=e[n],r>=l&&r<O&&(O=r);var C=_+1;if(O-l>b((o-f)/C))throw new g(m);for(f+=(O-l)*C,l=O,n=0;n<e.length;n++){if(r=e[n],r<l&&++f>o)throw new g(m);if(r===l){var w=f,S=a;while(1){var j=S<=h?i:S>=h+s?s:S-h;if(w<j)break;var D=w-j,L=a-j;k(t,y(I(j+D%L))),w=b(D/L),S+=a}k(t,y(I(w))),h=E(f,C,_===v),f=0,_++}}f++,l++}return M(t,"")};e.exports=function(e){var t,n,r=[],o=w(C(S(e),h,"."),".");for(t=0;t<o.length;t++)n=o[t],k(r,_(f,n)?"xn--"+j(n):n);return M(r,".")}},e81d:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"},r=e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}});return r}))},e889:function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return null===t&&(this.tail=null),e.item}}},e.exports=r},e893:function(e,t,n){"use strict";var r=n("1a2d"),o=n("56ef"),a=n("06cf"),i=n("9bf2");e.exports=function(e,t,n){for(var s=o(t),c=i.f,l=a.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||c(e,d,l(t,d))}}},e899:function(e,t,n){"use strict";var r=n("ce18"),o=n("fb2d"),a=n("7685"),i=r(Function.toString);o(a.inspectSource)||(a.inspectSource=function(e){return i(e)}),e.exports=a.inspectSource},e8b5:function(e,t,n){"use strict";var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"===r(e)}},e8f8:function(e,t,n){"use strict";var r=n("ce18"),o=n("06fa"),a=n("b1bc").start,i=RangeError,s=isFinite,c=Math.abs,l=Date.prototype,u=l.toISOString,d=r(l.getTime),p=r(l.getUTCDate),f=r(l.getUTCFullYear),h=r(l.getUTCHours),m=r(l.getUTCMilliseconds),v=r(l.getUTCMinutes),g=r(l.getUTCMonth),_=r(l.getUTCSeconds);e.exports=o((function(){return"0385-07-25T07:06:39.999Z"!==u.call(new Date(-50000000000001))}))||!o((function(){u.call(new Date(NaN))}))?function(){if(!s(d(this)))throw new i("Invalid time value");var e=this,t=f(e),n=m(e),r=t<0?"-":t>9999?"+":"";return r+a(c(t),r?6:4,0)+"-"+a(g(e)+1,2,0)+"-"+a(p(e),2,0)+"T"+a(h(e),2,0)+":"+a(v(e),2,0)+":"+a(_(e),2,0)+"."+a(n,3,0)+"Z"}:u},e904:function(e,t,n){"use strict";var r=n("a5eb");r({target:"Number",stat:!0},{isNaN:function(e){return e!==e}})},e946:function(e,t,n){e.exports=n("aa9b")},e9d9:function(e,t,n){"use strict";var r=n("ce18"),o=n("4e19"),a=n("dfdb"),i=n("0e6f"),s=n("eb54"),c=n("a180"),l=Function,u=r([].concat),d=r([].join),p={},f=function(e,t,n){if(!i(p,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";p[t]=l("C,a","return new C("+d(r,",")+")")}return p[t](e,n)};e.exports=c?l.bind:function(e){var t=o(this),n=t.prototype,r=s(arguments,1),i=function(){var n=u(r,s(arguments));return this instanceof i?f(t,n.length,n):t.apply(e,n)};return a(n)&&(i.prototype=n),i}},e9f5:function(e,t,n){"use strict";var r=n("23e7"),o=n("cfe9"),a=n("19aa"),i=n("825a"),s=n("1626"),c=n("e163"),l=n("edd0"),u=n("8418"),d=n("d039"),p=n("1a2d"),f=n("b622"),h=n("ae93").IteratorPrototype,m=n("83ab"),v=n("c430"),g="constructor",_="Iterator",b=f("toStringTag"),y=TypeError,O=o[_],M=v||!s(O)||O.prototype!==h||!d((function(){O({})})),k=function(){if(a(this,h),c(this)===h)throw new y("Abstract class Iterator not directly constructable")},C=function(e,t){m?l(h,e,{configurable:!0,get:function(){return t},set:function(t){if(i(this),this===h)throw new y("You can't redefine this property");p(this,e)?this[e]=t:u(this,e,t)}}):h[e]=t};p(h,b)||C(b,_),!M&&p(h,g)&&h[g]!==Object||C(g,k),k.prototype=h,r({global:!0,constructor:!0,forced:M},{Iterator:k})},ea1b:function(e,t,n){"use strict";(function(t){!function(t,n){e.exports=n()}(0,(function(){function e(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 n(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function r(e){return(r="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})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(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&&u(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){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 p(e,t,n){return(p=d()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&u(o,n.prototype),o}).apply(null,arguments)}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)})(e)}function h(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function g(e){var t=d();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function _(e,t){return y(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||M(e,t)||C()}function b(e){return function(e){if(Array.isArray(e))return k(e)}(e)||O(e)||M(e)||function(){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 y(e){if(Array.isArray(e))return e}function O(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function M(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}function k(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 C(){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 w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=M(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,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}var S={SDK_READY:"sdkStateReady",SDK_NOT_READY:"sdkStateNotReady",SDK_DESTROY:"sdkDestroy",MESSAGE_RECEIVED:"onMessageReceived",MESSAGE_MODIFIED:"onMessageModified",MESSAGE_REVOKED:"onMessageRevoked",MESSAGE_READ_BY_PEER:"onMessageReadByPeer",MESSAGE_READ_RECEIPT_RECEIVED:"onMessageReadReceiptReceived",MESSAGE_EXTENSIONS_UPDATED:"onMessageExtensionsUpdated",MESSAGE_EXTENSIONS_DELETED:"onMessageExtensionsDeleted",CONVERSATION_LIST_UPDATED:"onConversationListUpdated",TOTAL_UNREAD_MESSAGE_COUNT_UPDATED:"onTotalUnreadMessageCountUpdated",CONVERSATION_GROUP_LIST_UPDATED:"onConversationGroupListUpdated",CONVERSATION_IN_GROUP_UPDATED:"onConversationInGroupUpdated",GROUP_LIST_UPDATED:"onGroupListUpdated",GROUP_SYSTEM_NOTICE_RECEIVED:"receiveGroupSystemNotice",GROUP_ATTRIBUTES_UPDATED:"groupAttributesUpdated",GROUP_COUNTER_UPDATED:"onGroupCounterUpdated",TOPIC_CREATED:"onTopicCreated",TOPIC_DELETED:"onTopicDeleted",TOPIC_UPDATED:"onTopicUpdated",PROFILE_UPDATED:"onProfileUpdated",USER_STATUS_UPDATED:"onUserStatusUpdated",BLACKLIST_UPDATED:"blacklistUpdated",FRIEND_LIST_UPDATED:"onFriendListUpdated",FRIEND_GROUP_LIST_UPDATED:"onFriendGroupListUpdated",FRIEND_APPLICATION_LIST_UPDATED:"onFriendApplicationListUpdated",KICKED_OUT:"kickedOut",ERROR:"error",NET_STATE_CHANGE:"netStateChange",SDK_RELOAD:"sdkReload"},T={MSG_TEXT:"TIMTextElem",MSG_IMAGE:"TIMImageElem",MSG_SOUND:"TIMSoundElem",MSG_AUDIO:"TIMSoundElem",MSG_FILE:"TIMFileElem",MSG_FACE:"TIMFaceElem",MSG_VIDEO:"TIMVideoFileElem",MSG_GEO:"TIMLocationElem",MSG_LOCATION:"TIMLocationElem",MSG_GRP_TIP:"TIMGroupTipElem",MSG_GRP_SYS_NOTICE:"TIMGroupSystemNoticeElem",MSG_CUSTOM:"TIMCustomElem",MSG_MERGER:"TIMRelayElem",MSG_PRIORITY_HIGH:"High",MSG_PRIORITY_NORMAL:"Normal",MSG_PRIORITY_LOW:"Low",MSG_PRIORITY_LOWEST:"Lowest",CONV_C2C:"C2C",CONV_GROUP:"GROUP",CONV_TOPIC:"TOPIC",CONV_SYSTEM:"@TIM#SYSTEM",CONV_AT_ME:1,CONV_AT_ALL:2,CONV_AT_ALL_AT_ME:3,CONV_MARK_TYPE_STAR:1,CONV_MARK_TYPE_UNREAD:2,CONV_MARK_TYPE_FOLD:4,CONV_MARK_TYPE_HIDE:8,GRP_PRIVATE:"Private",GRP_WORK:"Private",GRP_PUBLIC:"Public",GRP_CHATROOM:"ChatRoom",GRP_MEETING:"ChatRoom",GRP_AVCHATROOM:"AVChatRoom",GRP_COMMUNITY:"Community",GRP_MBR_ROLE_OWNER:"Owner",GRP_MBR_ROLE_ADMIN:"Admin",GRP_MBR_ROLE_MEMBER:"Member",GRP_MBR_ROLE_CUSTOM:"Custom",GRP_TIP_MBR_JOIN:1,GRP_TIP_MBR_QUIT:2,GRP_TIP_MBR_KICKED_OUT:3,GRP_TIP_MBR_SET_ADMIN:4,GRP_TIP_MBR_CANCELED_ADMIN:5,GRP_TIP_GRP_PROFILE_UPDATED:6,GRP_TIP_MBR_PROFILE_UPDATED:7,GRP_TIP_BAN_AVCHATROOM_MEMBER:10,GRP_TIP_UNBAN_AVCHATROOM_MEMBER:11,MSG_REMIND_ACPT_AND_NOTE:"AcceptAndNotify",MSG_REMIND_ACPT_NOT_NOTE:"AcceptNotNotify",MSG_REMIND_DISCARD:"Discard",GENDER_UNKNOWN:"Gender_Type_Unknown",GENDER_FEMALE:"Gender_Type_Female",GENDER_MALE:"Gender_Type_Male",KICKED_OUT_MULT_ACCOUNT:"multipleAccount",KICKED_OUT_MULT_DEVICE:"multipleDevice",KICKED_OUT_USERSIG_EXPIRED:"userSigExpired",KICKED_OUT_REST_API:"REST_API_Kick",ALLOW_TYPE_ALLOW_ANY:"AllowType_Type_AllowAny",ALLOW_TYPE_NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_TYPE_DENY_ANY:"AllowType_Type_DenyAny",FORBID_TYPE_NONE:"AdminForbid_Type_None",FORBID_TYPE_SEND_OUT:"AdminForbid_Type_SendOut",JOIN_OPTIONS_FREE_ACCESS:"FreeAccess",JOIN_OPTIONS_NEED_PERMISSION:"NeedPermission",JOIN_OPTIONS_DISABLE_APPLY:"DisableApply",JOIN_STATUS_SUCCESS:"JoinedSuccess",JOIN_STATUS_ALREADY_IN_GROUP:"AlreadyInGroup",JOIN_STATUS_WAIT_APPROVAL:"WaitAdminApproval",INVITE_OPTIONS_DISABLE_INVITE:"DisableInvite",INVITE_OPTIONS_NEED_PERMISSION:"NeedPermission",INVITE_OPTIONS_FREE_ACCESS:"FreeAccess",GRP_PROFILE_OWNER_ID:"ownerID",GRP_PROFILE_CREATE_TIME:"createTime",GRP_PROFILE_LAST_INFO_TIME:"lastInfoTime",GRP_PROFILE_MEMBER_NUM:"memberNum",GRP_PROFILE_MAX_MEMBER_NUM:"maxMemberNum",GRP_PROFILE_JOIN_OPTION:"joinOption",GRP_PROFILE_INVITE_OPTION:"inviteOption",GRP_PROFILE_INTRODUCTION:"introduction",GRP_PROFILE_NOTIFICATION:"notification",GRP_PROFILE_MUTE_ALL_MBRS:"muteAllMembers",SNS_ADD_TYPE_SINGLE:"Add_Type_Single",SNS_ADD_TYPE_BOTH:"Add_Type_Both",SNS_DELETE_TYPE_SINGLE:"Delete_Type_Single",SNS_DELETE_TYPE_BOTH:"Delete_Type_Both",SNS_APPLICATION_TYPE_BOTH:"Pendency_Type_Both",SNS_APPLICATION_SENT_TO_ME:"Pendency_Type_ComeIn",SNS_APPLICATION_SENT_BY_ME:"Pendency_Type_SendOut",SNS_APPLICATION_AGREE:"Response_Action_Agree",SNS_APPLICATION_AGREE_AND_ADD:"Response_Action_AgreeAndAdd",SNS_CHECK_TYPE_BOTH:"CheckResult_Type_Both",SNS_CHECK_TYPE_SINGLE:"CheckResult_Type_Single",SNS_TYPE_NO_RELATION:"CheckResult_Type_NoRelation",SNS_TYPE_A_WITH_B:"CheckResult_Type_AWithB",SNS_TYPE_B_WITH_A:"CheckResult_Type_BWithA",SNS_TYPE_BOTH_WAY:"CheckResult_Type_BothWay",NET_STATE_CONNECTED:"connected",NET_STATE_CONNECTING:"connecting",NET_STATE_DISCONNECTED:"disconnected",MSG_AT_ALL:"__kImSDK_MesssageAtALL__",READ_ALL_C2C_MSG:"readAllC2CMessage",READ_ALL_GROUP_MSG:"readAllGroupMessage",READ_ALL_MSG:"readAllMessage",USER_STATUS_UNKNOWN:0,USER_STATUS_ONLINE:1,USER_STATUS_OFFLINE:2,USER_STATUS_UNLOGINED:3},I=function(){function e(){o(this,e),this.cache=[],this.options=null}return i(e,[{key:"use",value:function(e){if("function"!=typeof e)throw"middleware must be a function";return this.cache.push(e),this}},{key:"next",value:function(e){if(this.middlewares&&this.middlewares.length>0)return this.middlewares.shift().call(this,this.options,this.next.bind(this))}},{key:"run",value:function(e){return this.middlewares=this.cache.map((function(e){return e})),this.options=e,this.next()}}]),e}(),E=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(this,e),this.high=t,this.low=n}return i(e,[{key:"equal",value:function(e){return null!==e&&this.low===e.low&&this.high===e.high}},{key:"toString",value:function(){var e=Number(this.high).toString(16),t=Number(this.low).toString(16);if(t.length<8)for(var n=8-t.length;n;)t="0"+t,n--;return e+t}}]),e}(),j={TEST:{CHINA:{DEFAULT:"wss://wss-dev.tim.qq.com"},OVERSEA:{DEFAULT:"wss://wss-dev.tim.qq.com"},SINGAPORE:{DEFAULT:"wss://wsssgp-dev.im.qcloud.com"},KOREA:{DEFAULT:"wss://wsskr-dev.im.qcloud.com"},GERMANY:{DEFAULT:"wss://wssger-dev.im.qcloud.com"},IND:{DEFAULT:"wss://wssind-dev.im.qcloud.com"},JPN:{DEFAULT:"wss://wssjpn-dev.im.qcloud.com"},USA:{DEFAULT:"wss://wssusa-dev.im.qcloud.com"}},PRODUCTION:{CHINA:{DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.tim.qq.com",STAT:"https://events.im.qcloud.com",ANYCAST:"wss://162.14.13.203"},OVERSEA:{DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.my-imcloud.com",STAT:"https://api.my-imcloud.com"},SINGAPORE:{DEFAULT:"wss://wsssgp.im.qcloud.com",BACKUP:"wss://wsssgp.my-imcloud.com",STAT:"https://apisgp.my-imcloud.com"},KOREA:{DEFAULT:"wss://wsskr.im.qcloud.com",BACKUP:"wss://wsskr.my-imcloud.com",STAT:"https://apikr.my-imcloud.com"},GERMANY:{DEFAULT:"wss://wssger.im.qcloud.com",BACKUP:"wss://wssger.my-imcloud.com",STAT:"https://apiger.my-imcloud.com"},IND:{DEFAULT:"wss://wssind.my-imcloud.com",BACKUP:"wss://wssind.im.qcloud.com",STAT:"https://apiind.my-imcloud.com"},JPN:{DEFAULT:"wss://wssjpn.im.qcloud.com",BACKUP:"wss://wssjpn.my-imcloud.com",STAT:"https://apijpn.my-imcloud.com"},USA:{DEFAULT:"wss://wssusa.im.qcloud.com",BACKUP:"wss://wssusa.my-imcloud.com",STAT:"https://apiusa.my-imcloud.com"}}},D={ANDROID:2,IOS:3,MAC:4,WEB:7,WX_MP:8,QQ_MP:9,TT_MP:10,BAIDU_MP:11,ALI_MP:12,IPAD:13,UNI_NATIVE_APP:15},L="1.7.3",A=537048168,N="CHINA",R="OVERSEA",x="SINGAPORE",P="KOREA",U="GERMANY",V="IND",B="JPN",F="USA",G={HOST:{CURRENT:{DEFAULT:"wss://wss.im.qcloud.com",STAT:"https://events.im.qcloud.com"},setCurrent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N;this.CURRENT=j.PRODUCTION[e]}},NAME:{OPEN_IM:"openim",OPEN_IM_MSG_EXT:"openim_msg_ext_http_svc",GROUP:"group_open_http_svc",GROUP_AVCHATROOM:"group_open_avchatroom_http_svc",GROUP_COMMUNITY:"million_group_open_http_svc",GROUP_ATTR:"group_open_attr_http_svc",FRIEND:"sns",PROFILE:"profile",RECENT_CONTACT:"recentcontact",PIC:"openpic",BIG_GROUP_NO_AUTH:"group_open_http_noauth_svc",BIG_GROUP_LONG_POLLING:"group_open_long_polling_http_svc",BIG_GROUP_LONG_POLLING_NO_AUTH:"group_open_long_polling_http_noauth_svc",IM_OPEN_STAT:"imopenstat",WEB_IM:"webim",IM_COS_SIGN:"im_cos_sign_svr",CUSTOM_UPLOAD:"im_cos_msg",HEARTBEAT:"heartbeat",IM_OPEN_PUSH:"im_open_push",IM_OPEN_STATUS:"im_open_status",IM_LONG_MESSAGE:"im_long_msg",IM_CONFIG_MANAGER:"im_sdk_config_mgr",STAT_SERVICE:"StatSvc",OVERLOAD_PUSH:"OverLoadPush",IM_MSG_AUDIT_MGR:"im_msg_audit_mgr",TUIROOM_SVR:"tui_room_svr",IM_OPEN_TRANSLATE:"im_open_translate"},CMD:{LOGIN:"wslogin",LOGOUT_LONG_POLL:"longpollinglogout",LOGOUT:"wslogout",HELLO:"wshello",STAT_BACKGROUND:"ws_stat_background",STAT_FOREGROUND:"ws_stat_foreground",SET_TOKEN:"ws_stat_settoken",PORTRAIT_GET:"portrait_get_all",PORTRAIT_SET:"portrait_set",GET_LONG_POLL_ID:"getlongpollingid",LONG_POLL:"longpolling",AVCHATROOM_LONG_POLL:"get_msg",ADD_FRIEND:"friend_add",UPDATE_FRIEND:"friend_update",GET_FRIEND_LIST:"friend_get",GET_FRIEND_PROFILE:"friend_get_specified",DELETE_FRIEND:"friend_delete",CHECK_FRIEND:"friend_check",GET_FRIEND_GROUP_LIST:"group_get",RESPOND_FRIEND_APPLICATION:"friend_response",GET_FRIEND_APPLICATION_LIST:"pendency_get",DELETE_FRIEND_APPLICATION:"pendency_delete",REPORT_FRIEND_APPLICATION:"pendency_report",GET_GROUP_APPLICATION:"get_pendency",CREATE_FRIEND_GROUP:"group_add",DELETE_FRIEND_GROUP:"group_delete",UPDATE_FRIEND_GROUP:"group_update",GET_BLACKLIST:"black_list_get",ADD_BLACKLIST:"black_list_add",DELETE_BLACKLIST:"black_list_delete",CREATE_GROUP:"create_group",GET_JOINED_GROUPS:"get_joined_group_list",SET_GROUP_ATTRIBUTES:"set_group_attr",MODIFY_GROUP_ATTRIBUTES:"modify_group_attr",DELETE_GROUP_ATTRIBUTES:"delete_group_attr",CLEAR_GROUP_ATTRIBUTES:"clear_group_attr",GET_GROUP_ATTRIBUTES:"get_group_attr",SEND_MESSAGE:"sendmsg",REVOKE_C2C_MESSAGE:"msgwithdraw",DELETE_C2C_MESSAGE:"delete_c2c_msg_ramble",MODIFY_C2C_MESSAGE:"modify_c2c_msg",MODIFY_C2C_MESSAGE_EXTENSIONS:"set_key_values",GET_C2C_MESSAGE_EXTENSIONS:"get_key_values",SEND_GROUP_MESSAGE:"send_group_msg",REVOKE_GROUP_MESSAGE:"group_msg_recall",DELETE_GROUP_MESSAGE:"delete_group_ramble_msg_by_seq",MODIFY_GROUP_MESSAGE:"modify_group_msg",MODIFY_GROUP_MESSAGE_EXTENSIONS:"group_set_key_values",GET_GROUP_MESSAGE_EXTENSIONS:"group_get_key_values",GET_GROUP_INFO:"get_group_self_member_info",GET_GROUP_MEMBER_INFO:"get_specified_group_member_info",GET_GROUP_MEMBER_LIST:"get_group_member_info",GET_AVCHATROOM_MEMBER_LIST:"get_members",MARK_AVCHATROOM_MEMBER_INFO:"modify_user_info",QUIT_GROUP:"quit_group",CHANGE_GROUP_OWNER:"change_group_owner",DESTROY_GROUP:"destroy_group",ADD_GROUP_MEMBER:"add_group_member",DELETE_GROUP_MEMBER:"delete_group_member",BAN_AVCHATROOM_MEMBER:"ban_group_member",SEARCH_GROUP_BY_ID:"get_group_public_info",APPLY_JOIN_GROUP:"apply_join_group",HANDLE_APPLY_JOIN_GROUP:"handle_apply_join_group",HANDLE_INVITE_JOIN_GROUP:"handle_invite_join_permission_group",HANDLE_GROUP_INVITATION:"handle_invite_join_group",MODIFY_GROUP_INFO:"modify_group_base_info",MODIFY_GROUP_MEMBER_INFO:"modify_group_member_info",DELETE_GROUP_SYSTEM_MESSAGE:"deletemsg",DELETE_GROUP_AT_TIPS:"deletemsg",GET_GROUP_NOTIFY:"get_group_notify",GET_CONVERSATION_LIST:"get",PAGING_GET_CONVERSATION_LIST:"page_get",DELETE_CONVERSATION:"batch_delete",CLEAR_HISTORY_MESSAGE:"clear_msg",PIN_CONVERSATION:"top",SET_CONVERSATION_CUSTOM_DATA:"mark_contact",MARK_CONVERSATION:"mark_contact",CREATE_CONVERSATION_GROUP:"create_contact_group",DELETE_CONVERSATION_GROUP:"del_contact_group",UPDATE_CONVERSATION_GROUP:"update_contact_group",GET_CONVERSATION_GROUP_LIST:"get_contact_group",GET_MESSAGES:"getmsg",GET_C2C_ROAM_MESSAGES:"getroammsg",SET_C2C_PEER_MUTE_NOTIFICATIONS:"set_c2c_peer_mute_notifications",GET_C2C_PEER_MUTE_NOTIFICATIONS:"get_c2c_peer_mute_notifications",GET_GROUP_ROAM_MESSAGES:"group_msg_get",GET_READ_RECEIPT:"get_group_msg_receipt",GET_READ_RECEIPT_DETAIL:"get_group_msg_receipt_detail",SEND_READ_RECEIPT:"group_msg_receipt",SEND_C2C_READ_RECEIPT:"c2c_msg_read_receipt",SET_C2C_MESSAGE_READ:"msgreaded",GET_PEER_READ_TIME:"get_peer_read_time",SET_GROUP_MESSAGE_READ:"msg_read_report",FILE_READ_AND_WRITE_AUTHKEY:"authkey",FILE_UPLOAD:"pic_up",COS_SIGN:"cos",COS_PRE_SIG:"pre_sig",VIDEO_COVER:"video_cover",TIM_WEB_REPORT_V2:"tim_web_report_v2",BIG_DATA_HALLWAY_AUTH_KEY:"authkey",GET_ONLINE_MEMBER_NUM:"get_online_member_num",ALIVE:"alive",MESSAGE_PUSH:"msg_push",MULTI_MESSAGE_PUSH:"multi_msg_push_ws",MESSAGE_PUSH_ACK:"ws_msg_push_ack",STATUS_FORCE_OFFLINE:"stat_forceoffline",DOWNLOAD_MERGER_MESSAGE:"get_relay_json_msg",UPLOAD_MERGER_MESSAGE:"save_relay_json_msg",FETCH_CLOUD_CONTROL_CONFIG:"fetch_config",PUSHED_CLOUD_CONTROL_CONFIG:"push_configv2",FETCH_COMMERCIAL_CONFIG:"fetch_imsdk_purchase_bitsv2",PUSHED_COMMERCIAL_CONFIG:"push_imsdk_purchase_bitsv2",KICK_OTHER:"KickOther",OVERLOAD_NOTIFY:"notify2",SET_ALL_MESSAGE_READ:"read_all_unread_msg",CREATE_TOPIC:"create_topic",DELETE_TOPIC:"destroy_topic",UPDATE_TOPIC_PROFILE:"modify_topic",GET_TOPIC_LIST:"get_topic",SET_SELF_STATUS:"ws_set_custom_status",GET_USER_STATUS:"ws_get_user_status",SUBSCRIBE_USER_STATUS:"ws_status_subscribe",UNSUBSCRIBE_USER_STATUS:"ws_status_unsubscribe",GET_RPOFANITY_LIST:"get_local_words",TRANSLATE_TEXT:"ws_batch_trans_text",UPDATE_GROUP_COUNTER:"update_group_counter",GET_GROUP_COUNTER:"get_group_counter"},CHANNEL:{SOCKET:1,XHR:2,AUTO:0},NAME_VERSION:{openim:"v4",group_open_http_svc:"v4",sns:"v4",profile:"v4",recentcontact:"v4",openpic:"v4",group_open_http_noauth_svc:"v4",group_open_long_polling_http_svc:"v4",group_open_long_polling_http_noauth_svc:"v4",imopenstat:"v4",im_cos_sign_svr:"v4",im_cos_msg:"v4",webim:"v4",im_open_push:"v4",im_open_status:"v4"}},H={SEARCH_MSG:new E(0,Math.pow(2,0)).toString(),SEARCH_GRP_SNS:new E(0,Math.pow(2,1)).toString(),AVCHATROOM_HISTORY_MSG:new E(0,Math.pow(2,2)).toString(),GRP_COMMUNITY:new E(0,Math.pow(2,3)).toString(),MSG_TO_SPECIFIED_GRP_MBR:new E(0,Math.pow(2,4)).toString(),AVCHATROOM_MBR_LIST:new E(0,Math.pow(2,6)).toString(),USER_STATUS:new E(0,Math.pow(2,7)).toString(),CONV_MARK:new E(0,Math.pow(2,9)).toString(),CONV_GROUP:new E(0,Math.pow(2,10)).toString(),AVCHATROOM_BAN_MBR:new E(0,Math.pow(2,11)).toString(),MSG_EXT:new E(0,Math.pow(2,13)).toString(),GRP_COUNTER:new E(0,Math.pow(2,15)).toString()},Y="c2c_text_message",z="c2c_custom_message",q="group_text_message",W="group_custom_message",K="user_profile",$="sns",J="group_profile",X="group_member_profile";G.HOST.setCurrent(N);var Q="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),Z="undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),ee="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),te="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),ne="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),re="undefined"!=typeof jd&&"function"==typeof jd.getSystemInfoSync,oe="undefined"!=typeof uni&&"undefined"==typeof window&&"function"==typeof uni.requireNativePlugin,ae="undefined"!=typeof uni,ie=Q||Z||ee||te||ne||oe||re,se=("undefined"!=typeof uni||"undefined"!=typeof window)&&!ie,ce=Z?qq:ee?tt:te?swan:ne?my:Q?wx:oe?uni:re?jd:{},le=se&&window&&window.navigator&&window.navigator.userAgent||"",ue=/(micromessenger|webbrowser)/i.test(le),de=/AppleWebKit\/([\d.]+)/i.exec(le);de&&parseFloat(de.pop());var pe,fe,he=(pe="WEB",ue?pe="WEB":Z?pe="QQ_MP":ee?pe="TT_MP":te?pe="BAIDU_MP":ne?pe="ALI_MP":Q?pe="WX_MP":oe&&(pe="UNI_NATIVE_APP"),D[pe]),me=/iPad/i.test(le),ve=/iPhone/i.test(le)&&!me,ge=/iPod/i.test(le),_e=ve||me||ge,be=(fe=le.match(/OS (\d+)_/i))&&fe[1]?fe[1]:null,ye=/Android/i.test(le),Oe=function(){var e=le.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}();!function(){var e=le.match(/Chrome\/(\d+)/);e&&e[1]&&parseFloat(e[1])}();var Me=/MSIE/.test(le)||le.indexOf("Trident")>-1&&le.indexOf("rv:11.0")>-1,ke=function(){var e=/MSIE\s(\d+)\.\d/.exec(le),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(le)&&/rv:11.0/.test(le)&&(t=11),t}();!function(){var e=le.match(/TBS\/(\d+)/i);e&&e[1]&&e[1]}();var Ce,we,Se=/Windows/i.test(le),Te=/MAC OS X/i.test(le),Ie=se&&"undefined"!=typeof Worker&&!Me,Ee=ye||_e,je=se&&void 0!==window.tencent_cloud_im_csig_flutter_for_web_25F_cy;Ce="undefined"!=typeof console?console:"undefined"!=typeof t&&t.console?t.console:"undefined"!=typeof window&&window.console?window.console:{};for(var De=function(){},Le=["assert","clear","count","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],Ae=Le.length;Ae--;)we=Le[Ae],console[we]||(Ce[we]=De);var Ne=Ce,Re=0,xe=function(){return(new Date).getTime()+Re},Pe=function(){Re=0},Ue=function(){return Math.floor(xe()/1e3)},Ve=0;function Be(){return Jt()?"%c TIM %c":"TIM"}function Fe(){var e,t=((e=new Date).setTime(xe()),e);return t.toLocaleTimeString("en-US",{hour12:!1})+"."+function(e){var t;switch(e.toString().length){case 1:t="00"+e;break;case 2:t="0"+e;break;default:t=e}return t}(t.getMilliseconds())}var Ge={arguments2String:function(e){var t="";if(1===e.length)t=e[0];else for(var n=0,r=e.length;n<r;n++)ft(e[n])?mt(e[n])?t+=bt(e[n]):t+=JSON.stringify(e[n]):t+=e[n],t+=" ";return t},_exec:function(e,t){Jt()?Ne[e](Be(),"background:#0abf5b; padding:1px; border-radius:3px; color: #fff","background:transparent",Fe(),t):Ne[e]("".concat(Be()," ").concat(Fe()," ").concat(t))},d:function(){if(Ve<=-1){var e=this.arguments2String(arguments);this._exec("debug",e)}},l:function(){if(Ve<=0){var e=this.arguments2String(arguments);this._exec("log",e)}},log:function(){if(Ve<=0){var e=this.arguments2String(arguments);this._exec("log",e)}},i:function(){if(Ve<=1){var e=this.arguments2String(arguments);this._exec("info",e)}},w:function(){if(Ve<=2){var e=this.arguments2String(arguments);this._exec("warn",e)}},e:function(){if(Ve<=3){var e=this.arguments2String(arguments);this._exec("error",e)}},setLevel:function(e){e<4&&this._exec("log","set level from "+Ve+" to "+e),Ve=e},getLevel:function(){return Ve}},He={JPG:1,JPEG:1,GIF:2,PNG:3,BMP:4,UNKNOWN:255},Ye={NICK:"Tag_Profile_IM_Nick",GENDER:"Tag_Profile_IM_Gender",BIRTHDAY:"Tag_Profile_IM_BirthDay",LOCATION:"Tag_Profile_IM_Location",SELFSIGNATURE:"Tag_Profile_IM_SelfSignature",ALLOWTYPE:"Tag_Profile_IM_AllowType",LANGUAGE:"Tag_Profile_IM_Language",AVATAR:"Tag_Profile_IM_Image",MESSAGESETTINGS:"Tag_Profile_IM_MsgSettings",ADMINFORBIDTYPE:"Tag_Profile_IM_AdminForbidType",LEVEL:"Tag_Profile_IM_Level",ROLE:"Tag_Profile_IM_Role"},ze="Tag_SNS_IM_Group",qe="Tag_SNS_IM_Remark",We="Tag_SNS_IM_AddSource",Ke="Tag_SNS_IM_AddWording",$e="Tag_SNS_IM_AddTime",Je={UNKNOWN:"Gender_Type_Unknown",FEMALE:"Gender_Type_Female",MALE:"Gender_Type_Male"},Xe={NONE:"AdminForbid_Type_None",SEND_OUT:"AdminForbid_Type_SendOut"},Qe={NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_ANY:"AllowType_Type_AllowAny",DENY_ANY:"AllowType_Type_DenyAny"},Ze="JoinedSuccess",et="WaitAdminApproval",nt="@TGS#_",rt="@TOPIC#_",ot=["url"],at=function(e){return"map"===vt(e)},it=function(e){return"file"===vt(e)},st=function(e){return null!==e&&("number"==typeof e&&!isNaN(e-0)||"object"===r(e)&&e.constructor===Number)},ct=function(e){return"string"==typeof e},lt=function(e){return null!==e&&"object"===r(e)},ut=function(e){if("object"!==r(e)||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n},dt=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"array"===vt(e)},pt=function(e){return void 0===e},ft=function(e){return dt(e)||lt(e)},ht=function(e){return"function"==typeof e},mt=function(e){return e instanceof Error},vt=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()},gt=function(e){if("string"!=typeof e)return!1;var t=e[0];return!/[^a-zA-Z0-9]/.test(t)};Date.now||(Date.now=function(){return(new Date).getTime()});var _t=function e(t,n,r,o){if(!ft(t)||!ft(n))return 0;for(var a,i=0,s=Object.keys(n),c=0,l=s.length;c<l;c++)if(a=s[c],!(pt(n[a])||r&&r.includes(a)))if(ft(t[a])&&ft(n[a]))i+=e(t[a],n[a],r,o);else{if(o&&o.includes(n[a]))continue;t[a]!==n[a]&&(t[a]=n[a],i+=1)}return i},bt=function(e){return JSON.stringify(e,["message","code"])},yt=function(e){if(0===e.length)return 0;for(var t=0,n=0,r="undefined"!=typeof document&&void 0!==document.characterSet?document.characterSet:"UTF-8";void 0!==e[t];)n+=e[t++].charCodeAt[t]<=255?1:!1===r?3:2;return n},Ot=function(e){var t=e||99999999;return Math.round(Math.random()*t)},Mt="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",kt=Mt.length,Ct=function(e,t){for(var n in e)if(e[n]===t)return!0;return!1},wt={},St=function(e){return-1===e.indexOf("http://")||-1===e.indexOf("https://")?"https://"+e:e.replace(/https|http/,"https")},Tt=function e(t){if(0===Object.getOwnPropertyNames(t).length)return Object.create(null);var n=Array.isArray(t)?[]:Object.create(null),o="";for(var a in t)null!==t[a]?void 0!==t[a]?(o=r(t[a]),["string","number","function","boolean"].indexOf(o)>=0?n[a]=t[a]:n[a]=e(t[a])):n[a]=void 0:n[a]=null;return n};function It(e,t){if(!dt(e)||!dt(t))return!1;var n=!1;return t.forEach((function(t){var r=t.key,o=t.value,a=e.find((function(e){return e.key===r}));a?a.value!==o&&(a.value=o,n=!0):(e.push({key:r,value:o}),n=!0)})),n}var Et=function(e){return e===T.GRP_AVCHATROOM},jt=function(e){var t=e.type,n=e.groupID;return t===T.GRP_COMMUNITY||"".concat(n).startsWith(nt)&&!"".concat(n).includes(rt)},Dt=function(e){return"".concat(e).startsWith(nt)&&"".concat(e).includes(rt)},Lt=function(e){return ct(e)&&e.slice(0,3)===T.CONV_C2C},At=function(e){return ct(e)&&e.slice(0,5)===T.CONV_GROUP},Nt=function(e){return ct(e)&&e===T.CONV_SYSTEM};function Rt(e,t){var n={};return Object.keys(e).forEach((function(r){n[r]=t(e[r],r)})),n}function xt(e){return ie?new Promise((function(t,n){ce.getImageInfo({src:e,success:function(e){t({width:e.width,height:e.height})},fail:function(){t({width:0,height:0})}})})):Me&&9===ke?Promise.resolve({width:0,height:0}):new Promise((function(t,n){var r=new Image;r.onload=function(){t({width:this.width,height:this.height}),r=null},r.onerror=function(){t({width:0,height:0}),r=null},r.src=e}))}function Pt(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return"".concat(e()+e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e())}function Ut(){var e="unknown";if(Te&&(e="mac"),Se&&(e="windows"),_e&&(e="ios"),ye&&(e="android"),ie)try{var t=ce.getSystemInfoSync().platform;void 0!==t&&(e=t)}catch(r){}return e}function Vt(e,t){e=e.split("."),t=t.split(".");for(var n=Math.max(e.length,t.length);e.length<n;)e.push("0");for(;t.length<n;)t.push("0");for(var r=0;r<n;r++){var o=parseInt(e[r]),a=parseInt(t[r]);if(o>a)return 1;if(o<a)return-1}return 0}function Bt(e){var t=e.originUrl,n=void 0===t?void 0:t,r=e.originWidth,o=e.originHeight,a=e.min,i=void 0===a?198:a,s=parseInt(r),c=parseInt(o),l={url:void 0,width:0,height:0};if((s<=c?s:c)<=i)l.url=n,l.width=s,l.height=c;else{c<=s?(l.width=Math.ceil(s*i/c),l.height=i):(l.width=i,l.height=Math.ceil(c*i/s));var u=n&&n.indexOf("?")>-1?"".concat(n,"&"):"".concat(n,"?");l.url="".concat(u,198===i?"imageView2/3/w/198/h/198":"imageView2/3/w/720/h/720")}return pt(n)?(l.url,h(l,ot)):l}function Ft(e){var t=e[2];e[2]=e[1],e[1]=t;for(var n=0;n<e.length;n++)e[n].setType(n)}function Gt(e){var t=e.servcmd;return t.slice(t.indexOf(".")+1)}function Ht(e,t){return Math.round(Number(e)*Math.pow(10,t))/Math.pow(10,t)}function Yt(e,t){return e.includes(t)}function zt(e,t){return e.includes(t)}function qt(e){return e.split(rt)[0]}var Wt=function(e,t,n){if(pt(t))return"";switch(e){case T.MSG_TEXT:return t.text;case T.MSG_IMAGE:return n?"[Image]":"[图片]";case T.MSG_LOCATION:return n?"[Location]":"[位置]";case T.MSG_AUDIO:return n?"[Voice]":"[语音]";case T.MSG_VIDEO:return n?"[Video]":"[视频]";case T.MSG_FILE:return n?"[File]":"[文件]";case T.MSG_CUSTOM:return n?"[Custom Messages]":"[自定义消息]";case T.MSG_GRP_TIP:return n?"[Group Notification]":"[群提示消息]";case T.MSG_GRP_SYS_NOTICE:return n?"[Group System Message]":"[群系统通知]";case T.MSG_FACE:return n?"[Animated Sticker]":"[动画表情]";case T.MSG_MERGER:return n?"[Chat Record]":"[聊天记录]";default:return""}};function Kt(e){return e===T.MSG_TEXT||e===T.MSG_CUSTOM||e===T.MSG_LOCATION||e===T.MSG_FACE}function $t(e){var t=[];if(!ct(e))return t;var n=e.length;if(0===n)return t;for(var r=n-1;r>=0;r--)"1"===e[r]&&t.push(Math.pow(2,n-r-1));return t}function Jt(){return!Me&&!ie}function Xt(e){return"the length of userIDList cannot exceed ".concat(e)}function Qt(e,t){if(e){var n=e;return t&&(e.startsWith("http://")?n=e.replace(/^http:\/\/[^/]+/,t):e.startsWith("https://")&&(n=e.replace(/^https:\/\/[^/]+/,t))),n}}var Zt=Object.prototype.hasOwnProperty;function en(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(ut(e)){for(var t in e)if(Zt.call(e,t))return!1;return!0}return!(!at(e)&&(n=e,"set"!==vt(n))&&!it(e))&&0===e.size;var n}function tn(e,t,n){if(void 0===t)return!0;var r=!0;if(ut(t))Object.keys(t).forEach((function(o){var a=1===e.length?e[0][o]:void 0;r=!!nn(a,t[o],n,o)&&r}));else if(dt(t))for(var o=0;o<t.length;o++)r=!!nn(e[o],t[o],n,t[o].name)&&r;if(r)return r;throw new Error("Params validate failed.")}function nn(e,t,n,r){if(void 0===t)return!0;var o=!0;if(t.required&&en(e)&&(Ge.e("[".concat(n,'] Missing required params: "').concat(r,'".')),o=!1),!en(e)){var a=vt(e),i=t.type.toLowerCase();a!==i&&("asyncfunction"===a&&"function"===i||(Ge.e("[".concat(n,'] Invalid params: type check failed for "').concat(r,'".Expected ').concat(t.type,".")),o=!1))}return t.validator&&!t.validator(e)&&(Ge.e("[".concat(n,"] Invalid params: custom validator check failed for params.")),o=!1),o}var rn,on={UNSEND:"unSend",SUCCESS:"success",FAIL:"fail"},an={NOT_START:"notStart",PENDING:"pending",RESOLVED:"resolved",REJECTED:"rejected"},sn=function(e){if(!e)return!1;if(Lt(e)||At(e)||Nt(e))return!0;var t=An("InvalidConversationID",e);return t&&Ge.w(t),!1},cn=function(e){""!==e.desc&&""!==An("API_REFER")&&Ge.w("[".concat(e.api,"] | ").concat(e.param," | ").concat(e.desc,", ").concat(An("API_REFER")).concat(e.api))},ln=function(){return An("StringRequiredLog")},un=function(e){return An("NonEmptyStringRequiredLog",e)},dn=function(){return An("NumberRequiredLog")},pn=function(){return An("UndefinedNotAllowedLog")},fn=function(){return An("FileRequiredLog")},hn=function(){return An("FunctionRequiredLog")},mn=function(){return An("ArrayRequiredLog")},vn=function(){return An("NonEmptyArrayLog")},gn=function(){return An("CallbackMissingLog")},_n=function(){return An("PositiveIntegerRequiredLog")},bn=function(e,t){return An("StringNotLongerThanLog",e,t)},yn=function(e,t){return An("NumberLessThanLog",e,t)},On=function(e){return An("KeyValueStringRequiredLog",e)},Mn=function(){return An("PlainObjectRequiredLog")},kn=function(){return An("NonEmptyContentRequiredLog")},Cn=function(){return An("FileNotSelectedLog")},wn=function(){return An("MessageInstanceRequiredLog")},Sn=function(){return An("NonAnonymousFunctionLog")},Tn=function(){return An("MessageExtensionNotAvailableLog")},In={type:"String",required:!0},En={type:"Array",required:!0},jn={type:"Object",required:!0},Dn={type:"Boolean",required:!0},Ln={type:"number",required:!0},An=null,Nn={hookGetAPITips:function(e){An=e},login:{userID:In,userSig:In},addToBlacklist:{userIDList:En},removeFromBlacklist:{userIDList:En},on:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(cn({api:"on",param:"eventName",desc:un("eventName")}),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(cn({api:"on",param:"handler",desc:hn()}),!1):(""===e.name&&cn({api:"on",param:"handler",desc:Sn()}),!0)}}],once:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(cn({api:"once",param:"eventName",desc:un("eventName")}),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(cn({api:"once",param:"handler",desc:hn()}),!1):(""===e.name&&cn({api:"once",param:"handler",desc:Sn()}),!0)}}],off:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(cn({api:"off",param:"eventName",desc:un("eventName")}),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(cn({api:"off",param:"handler",desc:hn()}),!1):(""===e.name&&cn({api:"off",param:"handler",desc:Sn()}),!0)}}],sendMessage:[n({name:"message"},jn)],setMessageExtensions:[n(n({name:"message"},jn),{},{validator:function(e){return e.status===on.SUCCESS&&!0===e.isSupportExtension||(cn({api:"setMessageExtensions",param:"message",desc:Tn()}),!1)}}),n({name:"extensions"},En)],getMessageExtensions:[n(n({name:"message"},jn),{},{validator:function(e){return e.status===on.SUCCESS&&!0===e.isSupportExtension||(cn({api:"getMessageExtensions",param:"message",desc:Tn()}),!1)}})],deleteMessageExtensions:[n(n({name:"message"},jn),{},{validator:function(e){return e.status===on.SUCCESS&&!0===e.isSupportExtension||(cn({api:"deleteMessageExtensions",param:"message",desc:Tn()}),!1)}})],getMessageList:{conversationID:n(n({},In),{},{validator:function(e){return sn(e)}}),nextReqMessageID:{type:"String"},count:{type:"Number",validator:function(e){return!(!pt(e)&&!/^[1-9][0-9]*$/.test(e))||(cn({api:"getMessageList",param:"count",desc:_n()}),!1)}}},getMessageListHopping:{conversationID:n(n({},In),{},{validator:function(e){return sn(e)}}),sequence:{type:"Number"},time:{type:"Number"},direction:{type:"Number",validator:function(e){return!(!pt(e)&&0!==e&&1!==e)||(cn({api:"getMessageListHopping",param:"direction",desc:An("0Or1RequiredLog")}),!1)}},count:{type:"Number",validator:function(e){return!(!pt(e)&&!/^[1-9][0-9]*$/.test(e))||(cn({api:"getMessageListHopping",param:"count",desc:_n}),!1)}}},setMessageRead:{conversationID:n(n({},In),{},{validator:function(e){return sn(e)}})},setAllMessageRead:{scope:{type:"String",required:!1,validator:function(e){return!e||-1!==[T.READ_ALL_C2C_MSG,T.READ_ALL_GROUP_MSG,T.READ_ALL_MSG].indexOf(e)||(cn({api:"setAllMessageRead",param:"scope",desc:"TIM.TYPES.READ_ALL_C2C_MSG or TIM.TYPES.READ_ALL_GROUP_MSG or TIM.TYPES.READ_ALL_MSG required"}),!1)}}},getConversationProfile:[n(n({name:"conversationID"},In),{},{validator:function(e){return sn(e)}})],clearHistoryMessage:[n(n({name:"conversationID"},In),{},{validator:function(e){return sn(e)}})],pinConversation:{conversationID:n(n({},In),{},{validator:function(e){return sn(e)}}),isPinned:n({},Dn)},setConversationCustomData:{conversationIDList:n({},En),customData:{type:"String",validator:function(e){return ct(e)?!(e.length>256)||(cn({api:"setConversationCustomData",param:"customData",desc:bn("customData",256)}),!1):(cn({api:"setConversationCustomData",param:"customData",desc:ln()}),!1)}}},markConversation:{conversationIDList:n({},En),markType:{type:"number",validator:function(e){return st(e)?e<=0?(cn({api:"markConversation",param:"markType",desc:(t="markType",n=0,An("NumberGreaterThanLog",t,n))}),!1):!(e>=Math.pow(2,64))||(cn({api:"markConversation",param:"markType",desc:yn("markType","Math.pow(2,64)")}),!1):(cn({api:"markConversation",param:"markType",desc:dn()}),!1);var t,n}},enableMark:n({},Dn)},createConversationGroup:{conversationIDList:n({},En),groupName:n(n({},In),{},{validator:function(e){return!!e&&(!(e.length>32)||(cn({api:"createConversationGroup",param:"groupName",desc:bn("groupName",32)}),!1))}})},deleteConversationGroup:[n({name:"groupName"},In)],renameConversationGroup:{oldName:n({},In),newName:n(n({},In),{},{validator:function(e){return!!e&&(!(e.length>32)||(cn({api:"renameConversationGroup",param:"newName",desc:bn("newName",32)}),!1))}})},addConversationsToGroup:{conversationIDList:n({},En),groupName:n({},In)},deleteConversationsFromGroup:{conversationIDList:n({},En),groupName:n({},In)},getGroupList:{groupProfileFilter:{type:"Array"}},getGroupProfile:{groupID:In,groupCustomFieldFilter:{type:"Array"},memberCustomFieldFilter:{type:"Array"}},getGroupProfileAdvance:{groupIDList:En},createGroup:{name:In},joinGroup:{groupID:In,type:{type:"String"},applyMessage:{type:"String"}},quitGroup:[n({name:"groupID"},In)],handleApplication:{message:jn,handleAction:In,handleMessage:{type:"String"}},changeGroupOwner:{groupID:In,newOwnerID:In},updateGroupProfile:{groupID:In,muteAllMembers:{type:"Boolean"}},dismissGroup:[n({name:"groupID"},In)],searchGroupByID:[n({name:"groupID"},In)],initGroupAttributes:{groupID:In,groupAttributes:n(n({},jn),{},{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!ct(e[n]))return cn({api:"initGroupAttributes",param:"groupAttributes",desc:On("value")}),t=!1})),t}})},setGroupAttributes:{groupID:In,groupAttributes:n(n({},jn),{},{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!ct(e[n]))return cn({api:"setGroupAttributes",param:"groupAttributes",desc:On("value")}),t=!1})),t}})},deleteGroupAttributes:{groupID:In,keyList:{type:"Array",validator:function(e){if(pt(e)||!dt(e))return cn({api:"deleteGroupAttributes",param:"keyList",desc:mn()}),!1;if(!en(e)){var t=!0;return e.forEach((function(e){if(!ct(e))return cn({api:"deleteGroupAttributes",param:"keyList",desc:An("StringArrayRequiredLog")}),t=!1})),t}return!0}}},getGroupAttributes:{groupID:In,keyList:{type:"Array",validator:function(e){if(pt(e)||!dt(e))return cn({api:"getGroupAttributes",param:"keyList",desc:mn()}),!1;if(!en(e)){var t=!0;return e.forEach((function(e){if(!ct(e))return cn({api:"getGroupAttributes",param:"keyList",desc:On("key")}),t=!1})),t}return!0}}},setGroupCounters:{groupID:In,counters:jn},increaseGroupCounter:{groupID:In,key:In,value:Ln},decreaseGroupCounter:{groupID:In,key:In,value:Ln},getGroupCounters:{groupID:In},getGroupMemberList:{groupID:In,count:{type:"Number"}},getGroupMemberProfile:{groupID:In,userIDList:En,memberCustomFieldFilter:{type:"Array"}},addGroupMember:{groupID:In,userIDList:En},setGroupMemberRole:{groupID:In,userID:In,role:In},setGroupMemberMuteTime:{groupID:In,userID:In,muteTime:{type:"Number",validator:function(e){return e>=0}}},setGroupMemberNameCard:{groupID:In,userID:{type:"String"},nameCard:{type:"String",validator:function(e){return ct(e)?(e.length,!0):(cn({api:"setGroupMemberNameCard",param:"nameCard",desc:ln()}),!1)}}},setGroupMemberCustomField:{groupID:In,userID:{type:"String"},memberCustomField:En},deleteGroupMember:{groupID:In},markGroupMemberList:{groupID:In,markType:{type:"number",validator:function(e){return st(e)?!(e<1e3)||(cn({api:"markGroupMemberList",param:"markType",desc:(t="markType",n=1e3,An("NumberGreaterOrEqualLog",t,n))}),!1):(cn({api:"markGroupMemberList",param:"markType",desc:dn()}),!1);var t,n}},userIDList:n({},En),enableMark:n({},Dn)},createTextMessage:{to:In,conversationType:In,payload:n(n({},jn),{},{validator:function(e){return ut(e)?ct(e.text)?0!==e.text.length||(cn({api:"createTextMessage",param:"payload.text",desc:kn()}),!1):(cn({api:"createTextMessage",param:"payload.text",desc:ln()}),!1):(cn({api:"createTextMessage",param:"payload",desc:Mn()}),!1)}})},createTextAtMessage:{to:In,conversationType:In,payload:n(n({},jn),{},{validator:function(e){return ut(e)?ct(e.text)?0===e.text.length?(cn({api:"createTextAtMessage",param:"payload.text",desc:kn()}),!1):!(e.atUserList&&!dt(e.atUserList))||(cn({api:"createTextAtMessage",param:"payload.atUserList",desc:mn()}),!1):(cn({api:"createTextAtMessage",param:"payload.text",desc:ln()}),!1):(cn({api:"createTextAtMessage",param:"payload",desc:Mn()}),!1)}})},createCustomMessage:{to:In,conversationType:In,payload:n(n({},jn),{},{validator:function(e){return ut(e)?e.data&&!ct(e.data)?(cn({api:"createCustomMessage",param:"payload.data",desc:ln()}),!1):e.description&&!ct(e.description)?(cn({api:"createCustomMessage",param:"payload.description",desc:ln()}),!1):!(e.extension&&!ct(e.extension))||(cn({api:"createCustomMessage",param:"payload.extension",desc:ln()}),!1):(cn({api:"createCustomMessage",param:"payload",desc:Mn()}),!1)}})},createImageMessage:{to:In,conversationType:In,payload:n(n({},jn),{},{validator:function(e){if(!ut(e))return cn({api:"createImageMessage",param:"payload",desc:Mn()}),!1;if(pt(e.file))return cn({api:"createImageMessage",param:"payload.file",desc:pn()}),!1;if(se){if(!(e.file instanceof HTMLInputElement||it(e.file)))return ut(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(cn({api:"createImageMessage",param:"payload.file",desc:Cn()}),!1):(cn({api:"createImageMessage",param:"payload.file",desc:fn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return cn({api:"createImageMessage",param:"payload.file",desc:Cn()}),!1}return!0},onProgress:{type:"Function",required:!1,validator:function(e){return pt(e)&&cn({api:"createImageMessage",param:"onProgress",desc:gn()}),!0}}})},createAudioMessage:{to:In,conversationType:In,payload:n(n({},jn),{},{validator:function(e){return!!ut(e)||(cn({api:"createAudioMessage",param:"payload",desc:Mn()}),!1)}}),onProgress:{type:"Function",required:!1,validator:function(e){return pt(e)&&cn({api:"createAudioMessage",param:"onProgress",desc:gn()}),!0}}},createVideoMessage:{to:In,conversationType:In,payload:n(n({},jn),{},{validator:function(e){if(!ut(e))return cn({api:"createVideoMessage",param:"payload",desc:Mn()}),!1;if(pt(e.file))return cn({api:"createVideoMessage",param:"payload.file",desc:pn()}),!1;if(se){if(!(e.file instanceof HTMLInputElement||it(e.file)))return ut(e.file)&&"undefined"!=typeof uni?!!it(e.file.tempFile)||(cn({api:"createVideoMessage",param:"payload.file",desc:Cn()}),!1):(cn({api:"createVideoMessage",param:"payload.file",desc:fn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return cn({api:"createVideoMessage",param:"payload.file",desc:Cn()}),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e){return pt(e)&&cn({api:"createVideoMessage",param:"onProgress",desc:gn()}),!0}}},createFaceMessage:{to:In,conversationType:In,payload:n(n({},jn),{},{validator:function(e){return ut(e)?st(e.index)?!!ct(e.data)||(cn({api:"createFaceMessage",param:"payload.data",desc:ln()}),!1):(cn({api:"createFaceMessage",param:"payload.index",desc:dn()}),!1):(cn({api:"createFaceMessage",param:"payload",desc:Mn()}),!1)}})},createFileMessage:{to:In,conversationType:In,payload:n(n({},jn),{},{validator:function(e){if(!ut(e))return cn({api:"createFileMessage",param:"payload",desc:Mn()}),!1;if(pt(e.file))return cn({api:"createFileMessage",param:"payload.file",desc:pn()}),!1;if(se){if(!(e.file instanceof HTMLInputElement||it(e.file)))return ut(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(cn({api:"createFileMessage",param:"payload.file",desc:Cn()}),!1):(cn({api:"createFileMessage",param:"payload.file",desc:fn()}),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return cn({api:"createFileMessage",param:"payload.file",desc:Cn()}),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e){return pt(e)&&cn({api:"createFileMessage",param:"onProgress",desc:gn()}),!0}}},createLocationMessage:{to:In,conversationType:In,payload:n(n({},jn),{},{validator:function(e){return ut(e)?ct(e.description)?st(e.longitude)?!!st(e.latitude)||(cn({api:"createLocationMessage",param:"payload.latitude",desc:dn()}),!1):(cn({api:"createLocationMessage",param:"payload.longitude",desc:dn()}),!1):(cn({api:"createLocationMessage",param:"payload.description",desc:ln()}),!1):(cn({api:"createLocationMessage",param:"payload",desc:Mn()}),!1)}})},createMergerMessage:{to:In,conversationType:In,payload:n(n({},jn),{},{validator:function(e){if(en(e.messageList))return cn({api:"createMergerMessage",param:"payload.messageList",desc:vn()}),!1;if(en(e.compatibleText))return cn({api:"createMergerMessage",param:"payload.compatibleText",desc:un("compatibleText")}),!1;var t=!1;return e.messageList.forEach((function(e){e.status===on.FAIL&&(t=!0)})),!t||(cn({api:"createMergerMessage",param:"payload.messageList",desc:An("MergeFailedMessageLog")}),!1)}})},revokeMessage:[n(n({name:"message"},jn),{},{validator:function(e){return en(e)?(cn({api:"revokeMessage",param:"message",desc:wn()}),!1):e.conversationType===T.CONV_SYSTEM?(cn({api:"revokeMessage",param:"message",desc:An("MessageCanBeRevokedDesc")}),!1):!0!==e.isRevoked||(cn({api:"revokeMessage",param:"message",desc:An("MessageRevokedLog")}),!1)}})],deleteMessage:[n(n({name:"messageList"},En),{},{validator:function(e){return!en(e)||(cn({api:"deleteMessage",param:"messageList",desc:vn()}),!1)}})],translateText:{sourceTextList:En,sourceLanguage:In,targetLanguage:In},modifyMessage:[n(n({name:"message"},jn),{},{validator:function(e){return en(e)?(cn({api:"modifyMessage",param:"message",desc:wn()}),!1):e.conversationType===T.CONV_SYSTEM?(cn({api:"modifyMessage",param:"message",desc:An("MessageCanBeModifiedLog")}),!1):!0!==e._onlineOnlyFlag||(cn({api:"modifyMessage",param:"message",desc:An("OnlineMessageNotSupportLog")}),!1)}})],getUserProfile:{userIDList:{type:"Array",validator:function(e){return dt(e)?(0===e.length&&cn({api:"getUserProfile",param:"userIDList",desc:vn()}),!0):(cn({api:"getUserProfile",param:"userIDList",desc:mn()}),!1)}}},updateMyProfile:{profileCustomField:{type:"Array",validator:function(e){return!!pt(e)||!!dt(e)||(cn({api:"updateMyProfile",param:"profileCustomField",desc:mn()}),!1)}}},setSelfStatus:{customStatus:{type:"String",validator:function(e){return!!ct(e)||(cn({api:"setSelfStatus",param:"customStatus",desc:ln()}),!1)}}},getUserStatus:{userIDList:{type:"Array",validator:function(e){return dt(e)?0!==e.length||(cn({api:"getUserStatus",param:"userIDList",desc:vn()}),!1):(cn({api:"getUserStatus",param:"userIDList",desc:mn()}),!1)}}},subscribeUserStatus:{userIDList:{type:"Array",validator:function(e){return dt(e)?0!==e.length||(cn({api:"subscribeUserStatus",param:"userIDList",desc:vn()}),!1):(cn({api:"subscribeUserStatus",param:"userIDList",desc:mn()}),!1)}}},unsubscribeUserStatus:{userIDList:{type:"Array",validator:function(e){return!e||!!dt(e)||(cn({api:"subscribeUserStatus",param:"userIDList",desc:mn()}),!1)}}},addFriend:{to:In,source:{type:"String",required:!0,validator:function(e){return!!e&&(e.startsWith("AddSource_Type_")?!(e.replace("AddSource_Type_","").length>8)||(cn({api:"addFriend",param:"source",desc:bn("keyword",8)}),!1):(cn({api:"addFriend",param:"source",desc:An("SourcePrefixLog")}),!1))}},remark:{type:"String",required:!1,validator:function(e){return!(ct(e)&&e.length>96)||(cn({api:"addFriend",param:"remark",desc:bn("remark",96)}),!1)}}},deleteFriend:{userIDList:En},checkFriend:{userIDList:En},getFriendProfile:{userIDList:En},updateFriend:{userID:In,remark:{type:"String",required:!1,validator:function(e){return!(ct(e)&&e.length>96)||(cn({api:"updateFriend",param:"remark",desc:bn("remark",96)}),!1)}},friendCustomField:{type:"Array",required:!1,validator:function(e){if(e){if(!dt(e))return cn({api:"updateFriend",param:"friendCustomField",desc:mn()}),!1;var t=!0;return e.forEach((function(e){return ct(e.key)&&-1!==e.key.indexOf("Tag_SNS_Custom")?ct(e.value)?e.key.replace("Tag_SNS_Custom_","").length>8?(cn({api:"updateFriend",param:"friendCustomField",desc:bn("keyword",8)}),t=!1):void 0:(cn({api:"updateFriend",param:"friendCustomField",desc:On("value")}),t=!1):(cn({api:"updateFriend",param:"friendCustomField",desc:An("FriendCustomFieldPrefixLog")}),t=!1)})),t}return!0}}},acceptFriendApplication:{userID:In},refuseFriendApplication:{userID:In},deleteFriendApplication:{userID:In},createFriendGroup:{name:In},deleteFriendGroup:{name:In},addToFriendGroup:{name:In,userIDList:En},removeFromFriendGroup:{name:In,userIDList:En},renameFriendGroup:{oldName:In,newName:In},sendMessageReadReceipt:[{name:"messageList",type:"Array",validator:function(e){return dt(e)?0!==e.length||(cn({api:"sendMessageReadReceipt",param:"messageList",desc:vn()}),!1):(cn({api:"sendMessageReadReceipt",param:"messageList",desc:mn()}),!1)}}],getMessageReadReceiptList:[{name:"messageList",type:"Array",validator:function(e){return dt(e)?0!==e.length||(cn({api:"getMessageReadReceiptList",param:"messageList",desc:vn()}),!1):(cn({api:"getMessageReadReceiptList",param:"messageList",desc:mn()}),!1)}}],createTopicInCommunity:{groupID:In,topicName:In},deleteTopicFromCommunity:{groupID:In,topicIDList:{type:"Array",validator:function(e){return!e||!!dt(e)||(cn({api:"deleteTopicFromCommunity",param:"topicIDList",desc:mn()}),!1)}}},updateTopicProfile:{groupID:In,topicID:In},getTopicList:{groupID:In,topicIDList:{type:"Array",validator:function(e){return!e||!!dt(e)||(cn({api:"getTopicList",param:"topicIDList",desc:mn()}),!1)}}}},Rn={login:1,logout:1,on:1,once:1,off:1,setLogLevel:1,registerPlugin:1,destroy:1,createTextMessage:1,createTextAtMessage:1,createImageMessage:1,createAudioMessage:1,createVideoMessage:1,createCustomMessage:1,createFaceMessage:1,createFileMessage:1,createLocationMessage:1,createMergerMessage:1,downloadMergerMessage:1,createForwardMessage:1,sendMessage:1,resendMessage:1,revokeMessage:1,deleteMessage:1,translateText:1,modifyMessage:1,sendMessageReadReceipt:1,getGroupMessageReadMemberList:1,getMessageReadReceiptList:1,setMessageExtensions:1,getMessageExtensions:1,deleteMessageExtensions:1,getMessageList:1,findMessage:1,getMessageListHopping:1,setMessageRead:1,setAllMessageRead:1,getConversationList:1,getConversationProfile:1,deleteConversation:1,pinConversation:1,getTotalUnreadMessageCount:1,setConversationCustomData:1,markConversation:1,createConversationGroup:1,getConversationGroupList:1,deleteConversationGroup:1,renameConversationGroup:1,addConversationsToGroup:1,deleteConversationsFromGroup:1,clearHistoryMessage:1,getGroupList:1,getGroupProfile:1,createGroup:1,joinGroup:1,updateGroupProfile:1,quitGroup:1,dismissGroup:1,changeGroupOwner:1,searchGroupByID:1,setMessageRemindType:1,getGroupApplicationList:1,handleGroupApplication:1,initGroupAttributes:1,setGroupAttributes:1,deleteGroupAttributes:1,getGroupAttributes:1,setGroupCounters:1,increaseGroupCounter:1,decreaseGroupCounter:1,getGroupCounters:1,getJoinedCommunityList:1,createTopicInCommunity:1,deleteTopicFromCommunity:1,updateTopicProfile:1,getTopicList:1,getGroupMemberProfile:1,getGroupMemberList:1,addGroupMember:1,deleteGroupMember:1,setGroupMemberNameCard:1,setGroupMemberMuteTime:1,setGroupMemberRole:1,setGroupMemberCustomField:1,getGroupOnlineMemberCount:1,markGroupMemberList:1,getMyProfile:1,getUserProfile:1,updateMyProfile:1,setSelfStatus:1,getUserStatus:1,subscribeUserStatus:1,unsubscribeUserStatus:1,getBlacklist:1,addToBlacklist:1,removeFromBlacklist:1,getFriendList:1,addFriend:1,deleteFriend:1,checkFriend:1,updateFriend:1,getFriendProfile:1,getFriendApplicationList:1,refuseFriendApplication:1,deleteFriendApplication:1,acceptFriendApplication:1,setFriendApplicationRead:1,getFriendGroupList:1,createFriendGroup:1,renameFriendGroup:1,deleteFriendGroup:1,addToFriendGroup:1,removeFromFriendGroup:1,callExperimentalAPI:1},xn=1,Pn=2,Un=3,Vn=4,Bn=6,Fn=7,Gn=8,Hn=9,Yn=10,zn=11,qn=12,Wn=13,Kn=14,$n=15,Jn=16,Xn=17,Qn=18,Zn=19,er=20,tr=21,nr=22,rr=23,or=24,ar=25,ir=26,sr=27,cr=28,lr=29,ur=30,dr=31,pr=32,fr=function(){function e(t){o(this,e),this._m=t,this._n=""}return i(e,[{key:"isLoggedIn",value:function(){return this._m.getModule(qn).isLoggedIn()}},{key:"isOversea",value:function(){return this._m.getModule(qn).isOversea()}},{key:"isPrivateNetWork",value:function(){return this._m.getModule(qn).isPrivateNetWork()}},{key:"getFileDownloadProxy",value:function(){return this._m.getModule(qn).getFileDownloadProxy()}},{key:"getMyUserID",value:function(){return this._m.getModule(qn).getUserID()}},{key:"getMyTinyID",value:function(){return this._m.getModule(qn).getTinyID()}},{key:"getSDKAppID",value:function(){return this._m.getModule(qn).getSDKAppID()}},{key:"isIntl",value:function(){return this._m.getModule(qn).isIntl()}},{key:"isDevMode",value:function(){return this._m.getModule(qn).isDevMode()}},{key:"getModule",value:function(e){return this._m.getModule(e)}},{key:"getPlatform",value:function(){return he}},{key:"getNetworkType",value:function(){return this._m.getModule($n).getNetworkType()}},{key:"probeNetwork",value:function(e){return this._m.getModule($n).probe(e)}},{key:"getCloudConfig",value:function(e){return this._m.getModule(rr).getCloudConfig(e)}},{key:"emitOuterEvent",value:function(e,t){this._m.getOuterEmitterInstance().emit(e,t)}},{key:"emitInnerEvent",value:function(e,t){this._m.getInnerEmitterInstance().emit(e,t)}},{key:"getInnerEmitterInstance",value:function(){return this._m.getInnerEmitterInstance()}},{key:"generateTjgID",value:function(e){return this._m.getModule(qn).getTinyID()+"-"+e.random}},{key:"filterModifiedMessage",value:function(e){if(!en(e)){var t=e.filter((function(e){return!0===e.isModified}));t.length>0&&this.emitOuterEvent(S.MESSAGE_MODIFIED,t)}}},{key:"filterUnmodifiedMessage",value:function(e){return en(e)?[]:e.filter((function(e){return!1===e.isModified}))}},{key:"request",value:function(e){return this._m.getModule(er).request(e)}},{key:"canIUse",value:function(e){return this._m.getModule(sr).canIUse(e)}},{key:"getErrorMessage",value:function(e,t,n){return this._m.getErrorMessage(e,t,n)}},{key:"outputWarning",value:function(e,t,n){var r=this.getErrorMessage(e,t,n);r&&Ge.w(r)}}]),e}(),hr="wslogin",mr="wslogout",vr="wshello",gr="KickOther",_r="getmsg",br="authkey",yr="sendmsg",Or="send_group_msg",Mr="portrait_get_all",kr="portrait_set",Cr="black_list_get",wr="black_list_add",Sr="black_list_delete",Tr="friend_get",Ir="friend_get_specified",Er="friend_check",jr="friend_delete",Dr="friend_add",Lr="friend_update",Ar="friend_response",Nr="pendency_get",Rr="pendency_delete",xr="pendency_report",Pr="group_get",Ur="group_add",Vr="group_delete",Br="group_update",Fr="msgwithdraw",Gr="msgreaded",Hr="set_c2c_peer_mute_notifications",Yr="get_c2c_peer_mute_notifications",zr="getroammsg",qr="get_peer_read_time",Wr="delete_c2c_msg_ramble",Kr="modify_c2c_msg",$r="set_key_values",Jr="get_key_values",Xr="page_get",Qr="get",Zr="batch_delete",eo="clear_msg",to="top",no="deletemsg",ro="set_conv_custom_data",oo="mark_contact",ao="create_contact_group",io="del_contact_group",so="update_contact_group",co="add_conv_to_group",lo="del_conv_from_group",uo="get_contact_group",po="get_joined_group_list",fo="get_group_self_member_info",ho="create_group",mo="destroy_group",vo="modify_group_base_info",go="apply_join_group",_o="apply_join_group_noauth",bo="quit_group",yo="get_group_public_info",Oo="change_group_owner",Mo="handle_apply_join_group",ko="handle_invite_join_permission_group",Co="handle_invite_join_group",wo="group_msg_recall",So="msg_read_report",To="read_all_unread_msg",Io="group_msg_get",Eo="get_group_msg_receipt",jo="group_msg_receipt",Do="c2c_msg_read_receipt",Lo="get_group_msg_receipt_detail",Ao="get_pendency",No="deletemsg",Ro="get_msg",xo="get_msg_noauth",Po="get_online_member_num",Uo="delete_group_ramble_msg_by_seq",Vo="modify_group_msg",Bo="set_group_attr",Fo="modify_group_attr",Go="delete_group_attr",Ho="clear_group_attr",Yo="get_group_attr",zo="group_set_key_values",qo="group_get_key_values",Wo="get_group_notify",Ko="update_group_counter",$o="get_group_counter",Jo="get_group_member_info",Xo="get_members",Qo="get_specified_group_member_info",Zo="add_group_member",ea="delete_group_member",ta="ban_group_member",na="modify_group_member_info",ra="modify_user_info",oa="cos",aa="pre_sig",ia="video_cover",sa="tim_web_report_v2",ca="alive",la="msg_push",ua="multi_msg_push_ws",da="ws_msg_push_ack",pa="stat_forceoffline",fa="save_relay_json_msg",ha="get_relay_json_msg",ma="fetch_config",va="push_configv2",ga="fetch_imsdk_purchase_bitsv2",_a="push_imsdk_purchase_bitsv2",ba="notify2",ya="create_topic",Oa="destroy_topic",Ma="modify_topic",ka="get_topic",Ca="ws_set_custom_status",wa="ws_get_user_status",Sa="ws_status_subscribe",Ta="ws_status_unsubscribe",Ia="ws_stat_background",Ea="ws_stat_foreground",ja="ws_stat_settoken",Da="get_local_words",La="ws_batch_trans_text",Aa={NO_SDKAPPID:2e3,NO_ACCOUNT_TYPE:2001,NO_IDENTIFIER:2002,NO_USERSIG:2003,NO_TINYID:2022,NO_A2KEY:2023,USER_NOT_LOGGED_IN:2024,REPEAT_LOGIN:2025,COS_UNDETECTED:2040,COS_GET_SIG_FAIL:2041,MESSAGE_SEND_FAIL:2100,MESSAGE_SEND_FAIL_NOT_IN_AVCHATROOM:2101,MESSAGE_SEND_NEED_MESSAGE_INSTANCE:2105,MESSAGE_SEND_INVALID_CONVERSATION_TYPE:2106,MESSAGE_FILE_IS_EMPTY:2108,MESSAGE_ONPROGRESS_FUNCTION_ERROR:2109,MESSAGE_REVOKE_FAIL:2110,MESSAGE_DELETE_FAIL:2111,MESSAGE_UNREAD_ALL_FAIL:2112,READ_RECEIPT_MESSAGE_LIST_EMPTY:2114,MESSAGE_SEND_GROUP_WITH_TOPIC_FAIL:2115,CANNOT_DELETE_GROUP_SYSTEM_NOTICE:2116,TRANSLATE_TEXT_FAIL:2117,MESSAGE_IMAGE_SELECT_FILE_FIRST:2251,MESSAGE_IMAGE_TYPES_LIMIT:2252,MESSAGE_IMAGE_SIZE_LIMIT:2253,MESSAGE_AUDIO_UPLOAD_FAIL:2300,MESSAGE_AUDIO_SIZE_LIMIT:2301,MESSAGE_VIDEO_UPLOAD_FAIL:2350,MESSAGE_VIDEO_SIZE_LIMIT:2351,MESSAGE_VIDEO_TYPES_LIMIT:2352,MESSAGE_FILE_UPLOAD_FAIL:2400,MESSAGE_FILE_SELECT_FILE_FIRST:2401,MESSAGE_FILE_SIZE_LIMIT:2402,MESSAGE_FILE_URL_IS_EMPTY:2403,MESSAGE_MERGER_TYPE_INVALID:2450,MESSAGE_MERGER_KEY_INVALID:2451,MESSAGE_MERGER_DOWNLOAD_FAIL:2452,MESSAGE_FORWARD_TYPE_INVALID:2453,MESSAGE_MODIFY_CONFLICT:2480,MESSAGE_MODIFY_DISABLED_IN_AVCHATROOM:2481,CONVERSATION_NOT_FOUND:2500,USER_OR_GROUP_NOT_FOUND:2501,CONVERSATION_UN_RECORDED_TYPE:2502,INVALID_CONVERSATION_ID:2503,ILLEGAL_GROUP_TYPE:2600,CANNOT_JOIN_WORK:2601,ILLEGAL_GROUP_ID:2602,CANNOT_FIND_GROUP:2603,CANNOT_CHANGE_OWNER_IN_AVCHATROOM:2620,CANNOT_CHANGE_OWNER_TO_SELF:2621,CANNOT_DISMISS_WORK:2622,MEMBER_NOT_IN_GROUP:2623,JOIN_GROUP_FAIL:2660,CANNOT_ADD_MEMBER_IN_AVCHATROOM:2661,CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN:2662,NOT_OWNER:2681,CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM:2682,INVALID_MEMBER_ROLE:2683,CANNOT_SET_SELF_MEMBER_ROLE:2684,CANNOT_MUTE_SELF:2685,BAN_DURATION_INVALID:2686,NOT_MY_FRIEND:2700,ALREADY_MY_FRIEND:2701,FRIEND_GROUP_EXISTED:2710,FRIEND_GROUP_NOT_EXIST:2711,FRIEND_APPLICATION_NOT_EXIST:2716,UPDATE_PROFILE_INVALID_PARAM:2721,UPDATE_PROFILE_NO_KEY:2722,CANNOT_ADD_SELF_TO_BLACKLIST:2742,NETWORK_ERROR:2800,NETWORK_TIMEOUT:2801,NO_NETWORK:2805,UNCAUGHT_ERROR:2903,INVALID_OPERATION:2905,OVER_FREQUENCY_LIMIT:2996,CANNOT_FIND_PROTOCOL:2997,CANNOT_FIND_MODULE:2998,SDK_IS_NOT_READY:2999,LOGGING_IN:3e3,LOGIN_FAILED:3001,KICKED_OUT_MULT_DEVICE:3002,KICKED_OUT_MULT_ACCOUNT:3003,KICKED_OUT_USERSIG_EXPIRED:3004,LOGGED_OUT:3005,KICKED_OUT_REST_API:3006,ILLEGAL_TOPIC_ID:3021,CANNOT_USE_COMMERCIAL_ABILITY:3122,PROFANITY_FOUND:3123,MESSAGE_A2KEY_EXPIRED:20002,ACCOUNT_A2KEY_EXPIRED:70001,HELLO_ANSWER_KICKED_OUT:1002,OPEN_SERVICE_OVERLOAD_ERROR:60022},Na="networkRTT",Ra="messageE2EDelay",xa="sendMessageC2C",Pa="sendMessageGroup",Ua="sendMessageGroupAV",Va="sendMessageRichMedia",Ba="cosUpload",Fa="messageReceivedGroup",Ga="messageReceivedGroupAVPush",Ha="messageReceivedGroupAVPull",Ya=(s(rn={},Na,2),s(rn,Ra,3),s(rn,xa,4),s(rn,Pa,5),s(rn,Ua,6),s(rn,Va,7),s(rn,Fa,8),s(rn,Ga,9),s(rn,Ha,10),s(rn,Ba,11),rn),za={info:4,warning:5,error:6},qa={wifi:1,"2g":2,"3g":3,"4g":4,"5g":5,unknown:6,none:7,online:8},Wa={login:4},Ka=function(){function e(t){o(this,e),this._n="SSOLogData",this.eventType=Wa[t]||0,this.timestamp=0,this.networkType=8,this.code=0,this.message="",this.moreMessage="",this.extension=t,this.costTime=0,this.duplicate=!1,this.level=4,this.uiPlatform=void 0,this._sentFlag=!1,this._startts=xe()}return i(e,[{key:"updateTimeStamp",value:function(){this.timestamp=xe()}},{key:"start",value:function(e){return this._startts=e,this}},{key:"end",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._sentFlag){var n=xe();0===this.costTime&&(this.costTime=n-this._startts),this.setMoreMessage("startts:".concat(this._startts," endts:").concat(n)),t?(this._sentFlag=!0,this._eventStatModule&&this._eventStatModule.pushIn(this)):setTimeout((function(){e._sentFlag=!0,e._eventStatModule&&e._eventStatModule.pushIn(e)}),0)}}},{key:"setError",value:function(e,t,n){if(!(e instanceof Error))return Ge.w("".concat(this._n,".setError value not instanceof Error, please check!")),this;if(this._sentFlag)return this;if(this.setNetworkType(n),t)e.code&&this.setCode(e.code),e.message&&this.setMoreMessage(e.message);else{var r=Aa.NO_NETWORK;this.setCode(r)}return this.setLevel("error"),this}},{key:"setCode",value:function(e){return pt(e)||this._sentFlag||("ECONNABORTED"===e&&(this.code=103),st(e)?this.code=e:Ge.w("".concat(this._n,".setCode value not a number, please check!"),e,r(e))),this}},{key:"setMessage",value:function(e){return pt(e)||this._sentFlag||(st(e)&&(this.message=e.toString()),ct(e)&&(this.message=e)),this}},{key:"setCostTime",value:function(e){return this.costTime=e,this}},{key:"setLevel",value:function(e){return pt(e)||this._sentFlag||(this.level=za[e]),this}},{key:"setMoreMessage",value:function(e){return en(this.moreMessage)?this.moreMessage="".concat(e):this.moreMessage+=" ".concat(e),this}},{key:"setNetworkType",value:function(e){if(pt(e))Ge.w("".concat(this._n,".setNetworkType value is undefined, please check!"));else{var t=qa[e.toLowerCase()];pt(t)||(this.networkType=t)}return this}},{key:"getStartTs",value:function(){return this._startts}},{key:"setUIPlatform",value:function(e){this.uiPlatform=e}}],[{key:"bindEventStatModule",value:function(t){e.prototype._eventStatModule=t}}]),e}(),$a=function(){function e(t){o(this,e),this.type=T.MSG_TEXT,this.content={text:t.text||""}}return i(e,[{key:"setText",value:function(e){this.content.text=e}},{key:"sendable",value:function(){return 0!==this.content.text.length}}]),e}(),Ja=function(){function e(t,n){o(this,e),this._imageMemoryURL="",this._fileDownloadProxy=n,ie?this.createImageDataASURLInWXMiniApp(t.file):this.createImageDataASURLInWeb(t.file),this._initImageInfoModel(),this.type=T.MSG_IMAGE,this._percent=0,this.content={imageFormat:t.imageFormat||He.UNKNOWN,uuid:t.uuid,imageInfoArray:[]},this.initImageInfoArray(t.imageInfoArray),this._autoFixUrl()}return i(e,[{key:"_initImageInfoModel",value:function(){var e=this;this._ImageInfoModel=function(t){this.instanceID=Ot(9999999),this.sizeType=t.type||0,this.type=0,this.size=t.size||0,this.width=t.width||0,this.height=t.height||0,this.imageUrl=t.url||"",this.url=Qt(t.url||e._imageMemoryURL,e._fileDownloadProxy)},this._ImageInfoModel.prototype={setSizeType:function(e){this.sizeType=e},setType:function(e){this.type=e},setImageUrl:function(e){e&&(this.imageUrl=e)},getImageUrl:function(){return this.imageUrl}}}},{key:"initImageInfoArray",value:function(e){for(var t=0,n=null,r=null;t<=2;)r=pt(e)||pt(e[t])?{type:0,size:0,width:0,height:0,url:""}:e[t],(n=new this._ImageInfoModel(r)).setSizeType(t+1),n.setType(t),this.addImageInfo(n),t++;this.updateAccessSideImageInfoArray()}},{key:"updateImageInfoArray",value:function(e){for(var t,n=this.content.imageInfoArray.length,r=0;r<n;r++)t=this.content.imageInfoArray[r],e[r].size&&(t.size=e[r].size),e[r].url&&t.setImageUrl(e[r].url),e[r].width&&(t.width=e[r].width),e[r].height&&(t.height=e[r].height)}},{key:"_autoFixUrl",value:function(){for(var e=this.content.imageInfoArray.length,t="",n="",r=["http","https"],o=null,a=0;a<e;a++)this.content.imageInfoArray[a].url&&""!==(o=this.content.imageInfoArray[a]).imageUrl&&(n=o.imageUrl.slice(0,o.imageUrl.indexOf("://")+1),t=o.imageUrl.slice(o.imageUrl.indexOf("://")+1),r.indexOf(n)<0&&(n="https:"),this.content.imageInfoArray[a].setImageUrl([n,t].join("")))}},{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateImageFormat",value:function(e){this.content.imageFormat=He[e.toUpperCase()]||He.UNKNOWN}},{key:"createImageDataASURLInWeb",value:function(e){void 0!==e&&e.files.length>0&&(this._imageMemoryURL=window.URL.createObjectURL(e.files[0]))}},{key:"createImageDataASURLInWXMiniApp",value:function(e){e&&e.url&&(this._imageMemoryURL=e.url)}},{key:"replaceImageInfo",value:function(e,t){this.content.imageInfoArray[t]instanceof this._ImageInfoModel||(this.content.imageInfoArray[t]=e)}},{key:"addImageInfo",value:function(e){this.content.imageInfoArray.length>=3||this.content.imageInfoArray.push(e)}},{key:"updateAccessSideImageInfoArray",value:function(){var e=this.content.imageInfoArray,t=e[0],n=t.width,r=void 0===n?0:n,o=t.height,a=void 0===o?0:o;0!==r&&0!==a&&(Ft(e),Object.assign(e[2],Bt({originWidth:r,originHeight:a,min:720})))}},{key:"sendable",value:function(){return 0!==this.content.imageInfoArray.length&&""!==this.content.imageInfoArray[0].imageUrl&&0!==this.content.imageInfoArray[0].size}}]),e}(),Xa=function(){function e(t){o(this,e),this.type=T.MSG_FACE,this.content=t||null}return i(e,[{key:"sendable",value:function(){return null!==this.content}}]),e}(),Qa=function(){function e(t,n){o(this,e),this.type=T.MSG_AUDIO,this._percent=0,this.content={downloadFlag:2,second:t.second,size:t.size,url:Qt(t.url,n),remoteAudioUrl:t.url||"",uuid:t.uuid}}return i(e,[{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateAudioUrl",value:function(e){this.content.remoteAudioUrl=e}},{key:"sendable",value:function(){return""!==this.content.remoteAudioUrl}}]),e}(),Za={from:!0,groupID:!0,groupName:!0,to:!0},ei=function(){function e(t){o(this,e),this.type=T.MSG_GRP_TIP,this.content={},this._initContent(t)}return i(e,[{key:"_initContent",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"remarkInfo":break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[n]);break;case"operatorInfo":break;case"memberInfoList":case"msgMemberInfo":t._updateMemberList(e[n]);break;case"memberExtraInfo":case"onlineMemberInfo":break;case"memberNum":t.content[n]=e[n],t.content.memberCount=e[n];break;case"newGroupProfile":t.content.newGroupProfile={},t._initNewGroupProfile(e[n]);break;default:t.content[n]=e[n]}})),this.content.userIDList||(this.content.userIDList=[this.content.operatorID])}},{key:"_initGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];Za[r]&&(this.content.groupProfile[r]=e[r])}}},{key:"_updateMemberList",value:function(e){en(this.content.memberList)?this.content.memberList=e:this.content.memberList.forEach((function(t){e.forEach((function(e){t.userID===e.userID&&Object.assign(t,e)}))}))}},{key:"_initNewGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];this.content.newGroupProfile[r]="muteAllMembers"!==r?e[r]:1===e[r]}}}]),e}(),ti={from:!0,groupID:!0,groupName:!0,to:!0},ni=function(){function e(t){o(this,e),this.type=T.MSG_GRP_SYS_NOTICE,this.content={},this._initContent(t)}return i(e,[{key:"_initContent",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"memberInfoList":break;case"remarkInfo":t.content.handleMessage=e[n];break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[n]);break;default:t.content[n]=e[n]}}))}},{key:"_initGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];ti[r]&&("groupName"===r?this.content.groupProfile.name=e[r]:this.content.groupProfile[r]=e[r])}}}]),e}(),ri=function(){function e(t,n){o(this,e),this.type=T.MSG_FILE,this._percent=0;var r=this._getFileInfo(t);this.content={downloadFlag:2,fileUrl:Qt(t.url,n)||"",uuid:t.uuid,fileName:r.name||"",fileSize:r.size||0}}return i(e,[{key:"_getFileInfo",value:function(e){if(!pt(e.fileName)&&!pt(e.fileSize))return{size:e.fileSize,name:e.fileName};var t=e.file.files[0];if(oe){if(t.path&&-1!==t.path.indexOf(".")){var n=t.path.slice(t.path.lastIndexOf(".")+1).toLowerCase();t.type=n,t.name||(t.name="".concat(Ot(999999),".").concat(n))}t.name||(t.type="",t.name=t.path.slice(t.path.lastIndexOf("/")+1).toLowerCase()),t.suffix&&(t.type=t.suffix),t.url||(t.url=t.path)}return{size:t.size,name:t.name}}},{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateFileUrl",value:function(e){this.content.fileUrl=e}},{key:"sendable",value:function(){return""!==this.content.fileUrl&&""!==this.content.fileName&&0!==this.content.fileSize}}]),e}(),oi=function(){function e(t){o(this,e),this.type=T.MSG_CUSTOM,this.content={data:t.data||"",description:t.description||"",extension:t.extension||""}}return i(e,[{key:"setData",value:function(e){return this.content.data=e,this}},{key:"setDescription",value:function(e){return this.content.description=e,this}},{key:"setExtension",value:function(e){return this.content.extension=e,this}},{key:"sendable",value:function(){return 0!==this.content.data.length||0!==this.content.description.length||0!==this.content.extension.length}}]),e}(),ai=function(){function e(t,n){o(this,e),this.type=T.MSG_VIDEO,this._percent=0,this.content={remoteVideoUrl:t.remoteVideoUrl||t.videoUrl||"",videoFormat:t.videoFormat,videoSecond:parseInt(t.videoSecond,10),videoSize:t.videoSize,videoUrl:Qt(t.videoUrl,n),videoDownloadFlag:2,videoUUID:t.videoUUID,thumbUUID:t.thumbUUID,thumbFormat:t.thumbFormat,thumbWidth:t.thumbWidth,snapshotWidth:t.thumbWidth,thumbHeight:t.thumbHeight,snapshotHeight:t.thumbHeight,thumbSize:t.thumbSize,snapshotSize:t.thumbSize,thumbDownloadFlag:2,thumbUrl:Qt(t.thumbUrl,n),snapshotUrl:Qt(t.thumbUrl,n)}}return i(e,[{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateVideoUrl",value:function(e){e&&(this.content.remoteVideoUrl=e)}},{key:"updateSnapshotInfo",value:function(e){var t=e.snapshotUrl,n=e.snapshotWidth,r=e.snapshotHeight;en(t)||(this.content.thumbUrl=this.content.snapshotUrl=t),en(n)||(this.content.thumbWidth=this.content.snapshotWidth=Number(n)),en(r)||(this.content.thumbHeight=this.content.snapshotHeight=Number(r))}},{key:"sendable",value:function(){return""!==this.content.remoteVideoUrl}}]),e}(),ii=function(){function e(t){o(this,e),this.type=T.MSG_LOCATION;var n=t.description,r=t.longitude,a=t.latitude;this.content={description:n,longitude:r,latitude:a}}return i(e,[{key:"sendable",value:function(){return!0}}]),e}(),si=function(){function e(t,n){if(o(this,e),this.from=t.from,this.messageSender=t.from,this.time=t.time,this.messageSequence=t.sequence,this.clientSequence=t.clientSequence||t.sequence,this.messageRandom=t.random,this.cloudCustomData=t.cloudCustomData||"",this.clientTime=t.clientTime||void 0,t.ID)this.ID=t.ID||"",this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[{type:t.type,payload:t.payload}],t.conversationType.startsWith(T.CONV_C2C)?this.receiverUserID=t.to:t.conversationType.startsWith(T.CONV_GROUP)&&(this.receiverGroupID=t.to),this.messageReceiver=t.to;else{this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[];var r=t.elements[0].type,a=t.elements[0].content;this._patchRichMediaPayload(r,a),this._updateRichMediaDownloadUrl(r,a,n),r===T.MSG_MERGER?this.messageBody.push({type:r,payload:new ci(a).content}):this.messageBody.push({type:r,payload:a}),t.groupID&&(this.receiverGroupID=t.groupID,this.messageReceiver=t.groupID),t.to&&(this.receiverUserID=t.to,this.messageReceiver=t.to),this.ID="".concat(t.tinyID,"-").concat(t.clientTime,"-").concat(t.random)}}return i(e,[{key:"_patchRichMediaPayload",value:function(e,t){e===T.MSG_IMAGE?t.imageInfoArray.forEach((function(e){!e.imageUrl&&e.url&&(e.imageUrl=e.url,e.sizeType=e.type,1===e.type?e.type=0:3===e.type&&(e.type=1))})):e===T.MSG_VIDEO?!t.remoteVideoUrl&&t.videoUrl&&(t.remoteVideoUrl=t.videoUrl):e===T.MSG_AUDIO?!t.remoteAudioUrl&&t.url&&(t.remoteAudioUrl=t.url):e===T.MSG_FILE&&!t.fileUrl&&t.url&&(t.fileUrl=t.url,t.url=void 0)}},{key:"_updateRichMediaDownloadUrl",value:function(e,t,n){n&&(e===T.MSG_IMAGE?t.imageInfoArray.forEach((function(e){e.url=Qt(e.url,n)})):e===T.MSG_VIDEO?(t.videoUrl=Qt(t.videoUrl,n),t.snapshotUrl=Qt(t.thumbUrl,n),t.snapshotHeight=t.thumbHeight,t.snapshotWidth=t.thumbWidth):e===T.MSG_AUDIO?t.url=Qt(t.url,n):e===T.MSG_FILE&&(t.fileUrl=Qt(t.fileUrl,n)))}}]),e}(),ci=function(){function e(t,n){if(o(this,e),this.type=T.MSG_MERGER,this.content={downloadKey:"",pbDownloadKey:"",messageList:[],title:"",abstractList:[],compatibleText:"",version:0,layersOverLimit:!1},t.downloadKey){var r=t.downloadKey,a=t.pbDownloadKey,i=t.title,s=t.abstractList,c=t.compatibleText,l=t.version;this.content.downloadKey=r,this.content.pbDownloadKey=a,this.content.title=i,this.content.abstractList=s,this.content.compatibleText=c,this.content.version=l||0}else if(en(t.messageList))1===t.layersOverLimit&&(this.content.layersOverLimit=!0);else{var u=t.messageList,d=t.title,p=t.abstractList,f=t.compatibleText,h=t.version,m=[];u.forEach((function(e){if(!en(e)){var t=new si(e,n);m.push(t)}})),this.content.messageList=m,this.content.title=d,this.content.abstractList=p,this.content.compatibleText=f,this.content.version=h||0}}return i(e,[{key:"sendable",value:function(){return!en(this.content.messageList)||!en(this.content.downloadKey)}}]),e}(),li={1:T.MSG_PRIORITY_HIGH,2:T.MSG_PRIORITY_NORMAL,3:T.MSG_PRIORITY_LOW,4:T.MSG_PRIORITY_LOWEST},ui=function(){function e(t){o(this,e),this.ID="",this.conversationID=t.conversationID||null,this.conversationType=t.conversationType||T.CONV_C2C,this.conversationSubType=t.conversationSubType,this.time=t.time||Math.ceil(Date.now()/1e3),this.sequence=t.sequence||0,this.clientSequence=t.clientSequence||t.sequence||0,this.random=t.random||0===t.random?t.random:Ot(),this.priority=this._computePriority(t.priority),this.nick=t.nick||"",this.avatar=t.avatar||"",this.isPeerRead=!1,this.nameCard="",this._elements=[],this.isPlaceMessage=t.isPlaceMessage||0,this.isRevoked=2===t.isPlaceMessage||8===t.msgFlagBits,this.from=t.from||null,this.to=t.to||null,this.flow="",this.isSystemMessage=t.isSystemMessage||!1,this.protocol=t.protocol||"JSON",this.isResend=!1,this.isRead=!1,this.status=t.status||on.SUCCESS,this._onlineOnlyFlag=!1,this._groupAtInfoList=[],this._relayFlag=!1,this.atUserList=[],this.cloudCustomData=t.cloudCustomData||"",this.isDeleted=!1,this.isModified=!1,this._isExcludedFromUnreadCount=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromUnreadCount),this._isExcludedFromLastMessage=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromLastMessage),this.clientTime=t.clientTime||Ue()||0,this.senderTinyID=t.senderTinyID||t.tinyID||"",this.readReceiptInfo=t.readReceiptInfo||{readCount:void 0,unreadCount:void 0,isPeerRead:void 0},this.needReadReceipt=!0===t.needReadReceipt||1===t.needReadReceipt,this.version=t.messageVersion||0,this.isBroadcastMessage=t.isBroadcastMessage||!1,this._receiverList=t.receiverList||void 0,this.isSupportExtension=!0===t.isSupportExtension||1===t.isSupportExtension,this.revoker=t.revokerInfo&&t.revokerInfo.revoker||null,this.reInitialize(t.currentUser),this.extractGroupInfo(t.groupProfile||null),this.handleGroupAtInfo(t),this.initC2CReadReceiptInfo(t.readReceiptSentByPeer)}return i(e,[{key:"elements",get:function(){return this._elements}},{key:"getElements",value:function(){return this._elements}},{key:"extractGroupInfo",value:function(e){if(null!==e){ct(e.nick)&&(this.nick=e.nick),ct(e.avatar)&&(this.avatar=e.avatar);var t=e.messageFromAccountExtraInformation;ut(t)&&ct(t.nameCard)&&(this.nameCard=t.nameCard)}}},{key:"handleGroupAtInfo",value:function(e){var t=this;e.payload&&e.payload.atUserList&&e.payload.atUserList.forEach((function(e){e!==T.MSG_AT_ALL?(t._groupAtInfoList.push({groupAtAllFlag:0,groupAtUserID:e}),t.atUserList.push(e)):(t._groupAtInfoList.push({groupAtAllFlag:1}),t.atUserList.push(T.MSG_AT_ALL))})),dt(e.groupAtInfo)&&e.groupAtInfo.forEach((function(e){0===e.groupAtAllFlag?t.atUserList.push(e.groupAtUserID):1===e.groupAtAllFlag&&t.atUserList.push(T.MSG_AT_ALL)}))}},{key:"getGroupAtInfoList",value:function(){return this._groupAtInfoList}},{key:"_initProxy",value:function(){this._elements[0]&&(this.payload=this._elements[0].content,this.type=this._elements[0].type)}},{key:"reInitialize",value:function(e){e&&(this.status=this.from?on.SUCCESS:on.UNSEND,!this.from&&(this.from=e)),this._initFlow(e),this._initSequence(e),this._concatConversationID(e),this.generateMessageID()}},{key:"isSendable",value:function(){return 0!==this._elements.length&&"function"==typeof this._elements[0].sendable&&this._elements[0].sendable()}},{key:"_initTo",value:function(e){this.conversationType===T.CONV_GROUP&&(this.to=e.groupID)}},{key:"_initSequence",value:function(e){0===this.clientSequence&&e&&(this.clientSequence=function(e){if(!e)return!1;if(void 0===wt[e]){var t=new Date,n="3".concat(t.getHours()).slice(-2),r="0".concat(t.getMinutes()).slice(-2),o="0".concat(t.getSeconds()).slice(-2);wt[e]=parseInt([n,r,o,"0001"].join("")),n=null,r=null,o=null,Ge.l("autoIncrementIndex start index:".concat(wt[e]))}return wt[e]++}(e)),0===this.sequence&&this.conversationType===T.CONV_C2C&&(this.sequence=this.clientSequence)}},{key:"generateMessageID",value:function(){this.from===T.CONV_SYSTEM&&(this.senderTinyID="144115198244471703"),this.ID="".concat(this.senderTinyID,"-").concat(this.clientTime,"-").concat(this.random)}},{key:"_initFlow",value:function(e){""!==e&&(e===this.from?(this.flow="out",this.isRead=!0):this.flow="in")}},{key:"_concatConversationID",value:function(e){var t=this.to,n="",r=this.conversationType;r!==T.CONV_SYSTEM?(n=r===T.CONV_C2C?e===this.from?t:this.from:this.to,this.conversationID=n?"".concat(r).concat(n):null):this.conversationID=T.CONV_SYSTEM}},{key:"isElement",value:function(e){return e instanceof $a||e instanceof Ja||e instanceof Xa||e instanceof Qa||e instanceof ri||e instanceof ai||e instanceof ei||e instanceof ni||e instanceof oi||e instanceof ii||e instanceof ci}},{key:"setElement",value:function(e,t){var n=this;if(this.isElement(e))return this._elements=[e],void this._initProxy();var r=function(e){if(e.type&&e.content)switch(e.type){case T.MSG_TEXT:n.setTextElement(e.content);break;case T.MSG_IMAGE:n.setImageElement(e.content,t);break;case T.MSG_AUDIO:n.setAudioElement(e.content,t);break;case T.MSG_FILE:n.setFileElement(e.content,t);break;case T.MSG_VIDEO:n.setVideoElement(e.content,t);break;case T.MSG_CUSTOM:n.setCustomElement(e.content);break;case T.MSG_LOCATION:n.setLocationElement(e.content);break;case T.MSG_GRP_TIP:n.setGroupTipElement(e.content);break;case T.MSG_GRP_SYS_NOTICE:n.setGroupSystemNoticeElement(e.content);break;case T.MSG_FACE:n.setFaceElement(e.content);break;case T.MSG_MERGER:n.setMergerElement(e.content,t)}};if(dt(e))for(var o=0;o<e.length;o++)r(e[o]);else r(e);this._initProxy()}},{key:"clearElement",value:function(){this._elements.length=0}},{key:"setTextElement",value:function(e){var t="string"==typeof e?e:e.text,n=new $a({text:t});this._elements.push(n)}},{key:"setImageElement",value:function(e,t){var n=new Ja(e,t);this._elements.push(n)}},{key:"setAudioElement",value:function(e,t){var n=new Qa(e,t);this._elements.push(n)}},{key:"setFileElement",value:function(e,t){var n=new ri(e,t);this._elements.push(n)}},{key:"setVideoElement",value:function(e,t){var n=new ai(e,t);this._elements.push(n)}},{key:"setLocationElement",value:function(e){var t=new ii(e);this._elements.push(t)}},{key:"setCustomElement",value:function(e){var t=new oi(e);this._elements.push(t)}},{key:"setGroupTipElement",value:function(e){var t={},n=e.operationType;if(en(e.memberInfoList)?e.operatorInfo&&(t=e.operatorInfo):n!==T.GRP_TIP_MBR_JOIN&&n!==T.GRP_TIP_MBR_KICKED_OUT&&n!==T.GRP_TIP_MBR_SET_ADMIN&&n!==T.GRP_TIP_MBR_CANCELED_ADMIN||(t=e.memberInfoList[0]),!en(e.memberExtraInfo)){var r=e.memberExtraInfo.reason;e.msgMemberInfo.forEach((function(e){e.reason=r}))}var o=t,a=o.nick,i=o.avatar;ct(a)&&(this.nick=a),ct(i)&&(this.avatar=i);var s=new ei(e);this._elements.push(s)}},{key:"setGroupSystemNoticeElement",value:function(e){var t=new ni(e);this._elements.push(t)}},{key:"setFaceElement",value:function(e){var t=new Xa(e);this._elements.push(t)}},{key:"setMergerElement",value:function(e,t){var n=new ci(e,t);this._elements.push(n)}},{key:"setIsRead",value:function(e){this.isRead=e}},{key:"setRelayFlag",value:function(e){this._relayFlag=e}},{key:"getRelayFlag",value:function(){return this._relayFlag}},{key:"_computePriority",value:function(e){if(pt(e))return T.MSG_PRIORITY_NORMAL;if(ct(e)&&-1!==Object.values(li).indexOf(e))return e;if(st(e)){var t=""+e;if(-1!==Object.keys(li).indexOf(t))return li[t]}return T.MSG_PRIORITY_NORMAL}},{key:"setNickAndAvatar",value:function(e){var t=e.nick,n=e.avatar;ct(t)&&(this.nick=t),ct(n)&&(this.avatar=n)}},{key:"setNameCard",value:function(e){ct(e)&&(this.nameCard=e)}},{key:"initC2CReadReceiptInfo",value:function(e){this.conversationType===T.CONV_C2C&&!0===this.needReadReceipt&&(this.readReceiptInfo.isPeerRead=1===e)}}]),e}(),di=function(e){return{code:0,data:e||{}}},pi=function(e){c(n,e);var t=g(n);function n(e){var r;o(this,n),r=t.call(this);var a=e.code,i=e.message,s=e.data;return r.code=a,r.message=i||r._getErrorMessage(r.code),r.data=s||{},r}return i(n)}(f(Error)),fi=null,hi=function(e){fi=e},mi=function(e){return Promise.resolve(di(e))},vi=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof pi)return t&&null!==fi&&fi.emit(S.ERROR,e),Promise.reject(e);if(e instanceof Error){var n=new pi({code:Aa.UNCAUGHT_ERROR});return t&&null!==fi&&fi.emit(S.ERROR,n),Promise.reject(n)}if(!pt(e)&&!pt(e.code)){var r=new pi(e);return t&&null!==fi&&fi.emit(S.ERROR,r),Promise.reject(r)}},gi=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="C2CModule",n._messageFromUnreadDBMap=new Map,n._signalingFromUnreadDBList=[],n}return i(r,[{key:"onNewC2CMessage",value:function(e){var t=e.dataList,n=e.isInstantMessage,r=e.C2CRemainingUnreadList,o=e.C2CPairUnreadList;Ge.d("".concat(this._n,".onNewC2CMessage count:").concat(t.length," isInstantMessage:").concat(n));var a=this._newC2CMessageStoredAndSummary({dataList:t,C2CRemainingUnreadList:r,C2CPairUnreadList:o,isInstantMessage:n}),i=a.conversationOptionsList,s=a.messageList,c=a.isUnreadC2CMessage;this.filterModifiedMessage(s),i.length>0&&this.getModule(zn).onNewMessage({conversationOptionsList:i,isInstantMessage:n,isUnreadC2CMessage:c});var l=this.filterUnmodifiedMessage(s);n&&l.length>0&&this.emitOuterEvent(S.MESSAGE_RECEIVED,l),s.length=0}},{key:"_newC2CMessageStoredAndSummary",value:function(e){for(var t=e.dataList,n=e.C2CRemainingUnreadList,r=e.C2CPairUnreadList,o=e.isInstantMessage,a=null,i=[],s=[],c={},l=this.getModule(Jn),u=this.getModule(ir),d=!1,p=this.getModule(zn),f=this.getFileDownloadProxy(),h=0,m=t.length;h<m;h++)if(this._isSignaling(t[h]))this._signalingFromUnreadDBList.push(t[h].eventArray[0].c2CNotifyMsgArray[0]);else{var v=t[h];v.currentUser=this.getMyUserID(),v.conversationType=T.CONV_C2C,v.isSystemMessage=!!v.isSystemMessage,(pt(v.nick)||pt(v.avatar))&&(d=!0,Ge.d("".concat(this._n,"._newC2CMessageStoredAndSummary nick or avatar missing!"))),a=new ui(v),v.elements=l.parseElements(v.elements,v.from),a.setElement(v.elements,f),a.setNickAndAvatar({nick:v.nick,avatar:v.avatar});var g=a.conversationID;if(o){if(1===this._messageFromUnreadDBMap.get(a.ID))continue;var _=!1;if(a.from!==this.getMyUserID()){var b=p.getLatestMessageSentByPeer(g);if(b){var y=b.nick,O=b.avatar;d?a.setNickAndAvatar({nick:y,avatar:O}):y===a.nick&&O===a.avatar||(_=!0)}}else{var M=p.getLatestMessageSentByMe(g);if(M){var k=M.nick,C=M.avatar;k===a.nick&&C===a.avatar||p.modifyMessageSentByMe({conversationID:g,latestNick:a.nick,latestAvatar:a.avatar})}}var w=1===t[h].isModified;if(p.isMessageSentByCurrentInstance(a)?a.isModified=w:w=!1,0===v.msgLifeTime)a._onlineOnlyFlag=!0,p.isMessageSentByCurrentInstance(a)||s.push(a);else{if(!p.pushIntoMessageList(s,a,w))continue;_&&(p.modifyMessageSentByPeer({conversationID:g,latestNick:a.nick,latestAvatar:a.avatar}),p.updateUserProfileSpecifiedKey({conversationID:g,nick:a.nick,avatar:a.avatar}))}o&&a.clientTime>0&&u.addMessageDelay(a.clientTime)}else this._messageFromUnreadDBMap.set(a.ID,1);if(0!==v.msgLifeTime){if(!1===a._onlineOnlyFlag){var S=p.getLastMessageTime(g);if(st(S)&&a.time<S)continue;if(pt(c[g])){var I=0;"in"===a.flow&&(a._isExcludedFromUnreadCount||(I=1)),c[g]=i.push({conversationID:g,unreadCount:I,type:a.conversationType,subType:a.conversationSubType,lastMessage:a._isExcludedFromLastMessage?"":a})-1}else{var E=c[g];i[E].type=a.conversationType,i[E].subType=a.conversationSubType,i[E].lastMessage=a._isExcludedFromLastMessage?"":a,"in"===a.flow&&(a._isExcludedFromUnreadCount||i[E].unreadCount++)}}}else a._onlineOnlyFlag=!0}this._handleSignalingFromUnreadDB();var j=!1;if(dt(r))for(var D=function(e,t){if(r[e].unreadCount>0){j=!0;var n=i.find((function(t){return t.conversationID==="C2C".concat(r[e].from)}));n?n.unreadCount=r[e].unreadCount:i.push({conversationID:"C2C".concat(r[e].from),unreadCount:r[e].unreadCount,type:T.CONV_C2C})}},L=0,A=r.length;L<A;L++)D(L);if(dt(n))for(var N=function(e,t){i.find((function(t){return t.conversationID==="C2C".concat(n[e].from)}))||i.push({conversationID:"C2C".concat(n[e].from),type:T.CONV_C2C,lastMsgTime:n[e].lastMsgTime})},R=0,x=n.length;R<x;R++)N(R);return{conversationOptionsList:i,messageList:s,isUnreadC2CMessage:j}}},{key:"_isSignaling",value:function(e){var t=e.eventArray;return!(!dt(t)||10!==t[0].event)}},{key:"_handleSignalingFromUnreadDB",value:function(){var e=this._signalingFromUnreadDBList.length;if(Ge.l("".concat(this._n,"._handleSignalingFromUnreadDB signalingCount:").concat(e)),0!==e){var t=[];this._signalingFromUnreadDBList.forEach((function(e){e.hasOwnProperty("c2cMessageRevokedNotify")&&t.push(e)})),this.onC2CMessageRevoked({dataList:t}),this._signalingFromUnreadDBList.length=0,t.length=0}}},{key:"onC2CMessageRevoked",value:function(e){var t=this,n=this.getModule(zn),r=[],o=null,a=!0;e.dataList.forEach((function(e){if(e.c2cMessageRevokedNotify){var i=e.c2cMessageRevokedNotify.revokedInfos;pt(i)||i.forEach((function(e){var i=t.getMyUserID()===e.from?"".concat(T.CONV_C2C).concat(e.to):"".concat(T.CONV_C2C).concat(e.from);o=n.revoke(i,e.sequence,e.random);var s=e.revokerInfo&&e.revokerInfo.revoker;if(o)o.revoker||(o.revoker=s,r.push(o));else{var c={conversationID:i,sequence:e.sequence,time:e.time,revoker:s};n.isLastMessageRevoked(c)&&(r.push(c),a=!1)}}))}})),0!==r.length&&(n.onMessageRevoked(r),!0===a&&(Ge.l("".concat(this._n,".onC2CMessageRevoked count:").concat(r.length)),this.emitOuterEvent(S.MESSAGE_REVOKED,r)))}},{key:"onC2CMessageReadReceipt",value:function(e){var t=this;e.dataList.forEach((function(e){if(!en(e.c2cMessageReadReceipt)){var n=e.c2cMessageReadReceipt.to;e.c2cMessageReadReceipt.uinPairReadArray.forEach((function(e){var r=e.peerReadTime;Ge.d("".concat(t._n,"._onC2CMessageReadReceipt to:").concat(n," peerReadTime:").concat(r));var o="".concat(T.CONV_C2C).concat(n),a=t.getModule(zn);a.recordPeerReadTime(o,r),a.updateMessageIsPeerReadProperty(o,r)}))}}))}},{key:"onC2CMessageReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){if(!en(e.c2cMessageReadNotice)){var n=t.getModule(zn);e.c2cMessageReadNotice.uinPairReadArray.forEach((function(e){var r=e.from,o=e.peerReadTime;Ge.d("".concat(t._n,".onC2CMessageReadNotice from:").concat(r," lastReadTime:").concat(o));var a="".concat(T.CONV_C2C).concat(r);n.updateIsReadAfterReadReport({conversationID:a,lastMessageTime:o}),n.updateUnreadCount(a)}))}}))}},{key:"onC2CMessageModified",value:function(e){Ge.d("".concat(this._n,".onC2CMessageModified options:"),JSON.stringify(e));var t=this.getModule(zn);e.dataList.forEach((function(e){t.onMessageModified(n(n({},e),{},{conversationType:T.CONV_C2C}))}))}},{key:"onReadReceiptList",value:function(e){Ge.d("".concat(this._n,".onReadReceiptList options:"),JSON.stringify(e));var t=e.dataList,n=t.userID,r=t.readReceiptList;this.getModule(zn).updateReadReceiptInfo({userID:n,readReceiptList:r})}},{key:"sendMessage",value:function(e,t){var n=this._createC2CMessagePack(e,t);return this.request(n)}},{key:"_createC2CMessagePack",value:function(e,t){var n=null;t&&(t.offlinePushInfo&&(n=t.offlinePushInfo),!0===t.onlineUserOnly&&(n?n.disablePush=!0:n={disablePush:!0}));var r="";ct(e.cloudCustomData)&&e.cloudCustomData.length>0&&(r=e.cloudCustomData);var o=[];if(ut(t)&&ut(t.messageControlInfo)){var a=t.messageControlInfo,i=a.excludedFromUnreadCount,s=a.excludedFromLastMessage,c=a.excludedFromContentModeration;!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===c&&o.push("NoMsgCheck")}var l=this.isOnlineMessage(e,t)?0:void 0;return{protocolName:yr,tjgID:this.generateTjgID(e),requestData:{fromAccount:this.getMyUserID(),toAccount:e.to,msgBody:e.getElements(),cloudCustomData:r,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:l,nick:e.nick,avatar:e.avatar,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||"",desc:n.description||"",ext:n.extension||"",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0,isVoipPush:this._isVoipPush(n)},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||""}}:void 0,messageControlInfo:0!==l?o:void 0,clientTime:e.clientTime,needReadReceipt:!0===e.needReadReceipt?1:0,isSupportExtension:!0===e.isSupportExtension?1:0}}}},{key:"_isVoipPush",value:function(e){var t=void 0;return pt(e.disableVoipPush)||(t=!1===e.disableVoipPush?1:0),t}},{key:"isOnlineMessage",value:function(e,t){return!(!t||!0!==t.onlineUserOnly)}},{key:"revokeMessage",value:function(e){return this.request({protocolName:Fr,requestData:{msgInfo:{fromAccount:e.from,toAccount:e.to,msgSeq:e.sequence,msgRandom:e.random,msgTimeStamp:e.time}}})}},{key:"deleteMessage",value:function(e){var t=e.to,n=e.keyList;return Ge.l("".concat(this._n,".deleteMessage toAccount:").concat(t," count:").concat(n.length)),this.request({protocolName:Wr,requestData:{fromAccount:this.getMyUserID(),to:t,keyList:n}})}},{key:"modifyRemoteMessage",value:function(e){var t=e.from,n=e.to,r=e.version,o=void 0===r?0:r,a=e.sequence,i=e.random,s=e.time,c=e.payload,l=e.type,u=e.cloudCustomData,d=void 0;return Kt(l)&&(d=[]).push({type:l,content:c}),this.request({protocolName:Kr,requestData:{from:t,to:n,version:o,sequence:a,random:i,time:s,elements:d,cloudCustomData:u}})}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,r=e.lastMessageTime,o="".concat(this._n,".setMessageRead");Ge.l("".concat(o," conversationID:").concat(n," lastMessageTime:").concat(r)),st(r)||this.outputWarning("DoNotModifyLastTime");var a=new Ka("setC2CMessageRead");return a.setMessage("conversationID:".concat(n," lastMessageTime:").concat(r)),this.request({protocolName:Gr,requestData:{C2CMsgReaded:{cookie:"",C2CMsgReadedItem:[{toAccount:n.replace("C2C",""),lastMessageTime:r,receipt:1}]}}}).then((function(){a.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(o," ok"));var e=t.getModule(zn);return e.updateIsReadAfterReadReport({conversationID:n,lastMessageTime:r}),e.updateUnreadCount(n),di()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.l("".concat(o," failed. error:"),e),vi(e)}))}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._n,".getRoamingMessage"),r=e.peerAccount,o=e.conversationID,a=e.count,i=e.lastMessageTime,s=e.messageKey,c="peerAccount:".concat(r," count:").concat(a||15," lastMessageTime:").concat(i||0," messageKey:").concat(s);Ge.l("".concat(n," ").concat(c));var l=new Ka("getC2CRoamingMessages");return this.request({protocolName:zr,requestData:{peerAccount:r,count:a||15,lastMessageTime:i||0,messageKey:s}}).then((function(e){var r=e.data,a=r.complete,i=r.messageList,s=r.messageKey,u=r.lastMessageTime;pt(i)?Ge.l("".concat(n," ok. complete:").concat(a," but messageList is undefined!")):Ge.l("".concat(n," ok. complete:").concat(a," count:").concat(i.length)),l.setNetworkType(t.getNetworkType()).setMessage("".concat(c," complete:").concat(a," length:").concat(i.length)).end();var d=t.getModule(zn);1===a&&d.setCompleted(o);var p=d.onRoamingMessage(i,o);d.modifyMessageList(o),d.updateIsRead(o),d.updateRoamingMessageKeyAndTime(o,s,u);var f=d.getPeerReadTime(o);if(Ge.l("".concat(n," update isPeerRead property. conversationID:").concat(o," peerReadTime:").concat(f)),f)d.updateMessageIsPeerReadProperty(o,f);else{var h=o.replace(T.CONV_C2C,"");t.getRemotePeerReadTime([h]).then((function(){d.updateMessageIsPeerReadProperty(o,d.getPeerReadTime(o))}))}var m="";if(p.length>0)m=p[0].ID;else{var v=d.getLocalOldestMessage(o);v&&(m=v.ID)}return Ge.l("".concat(n," nextReqID:").concat(m," stored message count:").concat(p.length)),{nextReqID:m,storedMessageList:p}})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setMessage(c).setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"getRoamingMessagesHopping",value:function(e){var t=this,n="".concat(this._n,".getRoamingMessagesHopping"),r=e.peerAccount,o=e.time,a=void 0===o?0:o,i=e.count,s=e.direction,c="".concat(T.CONV_C2C).concat(r),l="peerAccount:".concat(r," count:").concat(i," time:").concat(a," direction:").concat(s);Ge.l("".concat(n," ").concat(l));var u=new Ka("getC2CRoamingMessagesHopping");return this.request({protocolName:zr,requestData:{peerAccount:r,count:i+1,lastMessageTime:a,direction:s}}).then((function(e){var r=e.data,o=r.complete,a=r.messageList,i=void 0===a?[]:a,d=r.lastMessageTime;Ge.l("".concat(n," ok. complete:").concat(o," count:").concat(i.length)),u.setNetworkType(t.getNetworkType()).setMessage("".concat(l," complete:").concat(o," length:").concat(i.length)).end(),1!==o&&(1===s?i.pop():i.shift());var p=t.getModule(zn).onRoamingMessage(i,c,!1);t._modifyMessageList(c,p);var f=t._computeResult({complete:o,lastMessageTime:d,resultList:p});return di(f)})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setMessage(l).setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_computeResult",value:function(e){var t=e.complete,n=void 0===t?0:t,r=e.lastMessageTime,o=e.resultList,a={messageList:b(void 0===o?[]:o),isCompleted:!1,nextMessageTime:""};return 1===n?(a.isCompleted=!0,a):(a.nextMessageTime=r,a)}},{key:"_modifyMessageList",value:function(e,t){var n=this.getModule(zn).getLocalConversation(e);if(n)for(var r=n.userProfile.nick,o=n.userProfile.avatar,a=this.getModule(Vn).getNickAndAvatarByUserID(this.getMyUserID()),i=a.nick,s=a.avatar,c=t.length-1;c>=0;c--){var l=t[c];"in"===l.flow&&(l.nick!==r&&l.setNickAndAvatar({nick:r}),l.avatar!==o&&l.setNickAndAvatar({avatar:o})),"out"===l.flow&&(l.nick!==i&&l.setNickAndAvatar({nick:i}),l.avatar!==s&&l.setNickAndAvatar({avatar:s}))}}},{key:"getRemotePeerReadTime",value:function(e){var t=this,n="".concat(this._n,".getRemotePeerReadTime");if(en(e))return Ge.w("".concat(n," userIDList is empty!")),Promise.resolve();var r=new Ka("getPeerReadTime");return Ge.l("".concat(n," userIDList:").concat(e)),this.request({protocolName:qr,requestData:{userIDList:e}}).then((function(o){var a=o.data.peerReadTimeList;Ge.l("".concat(n," ok. peerReadTimeList:").concat(a));for(var i="",s=t.getModule(zn),c=0;c<e.length;c++)i+="".concat(e[c],"-").concat(a[c]," "),a[c]>0&&s.recordPeerReadTime("C2C".concat(e[c]),a[c]);r.setNetworkType(t.getNetworkType()).setMessage(i).end()})).catch((function(e){t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.w("".concat(n," failed. error:"),e)}))}},{key:"sendReadReceipt",value:function(e){var t=this,n=e[0].conversationID.replace(T.CONV_C2C,""),r=new Ka("sendC2CReadReceipt");r.setMessage("peerAccount:".concat(n));var o=this.getMyUserID(),a=e.filter((function(e){return e.from!==o&&!0===e.needReadReceipt})).map((function(e){return{fromAccount:e.from,toAccount:e.to,sequence:e.sequence,random:e.random,time:e.time,clientTime:e.clientTime}}));if(0===a.length)return vi({code:Aa.READ_RECEIPT_MESSAGE_LIST_EMPTY});var i="".concat(this._n,".sendReadReceipt");return Ge.l("".concat(i,". peerAccount:").concat(n," messageInfoList length:").concat(a.length)),this.request({protocolName:Do,requestData:{peerAccount:n,messageInfoList:a}}).then((function(e){return r.end(),Ge.l("".concat(i," ok")),di()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.w("".concat(i," failed. error:"),e),vi(e)}))}},{key:"getReadReceiptList",value:function(e){var t="".concat(this._n,".getReadReceiptList"),n=this.getMyUserID(),r=e.filter((function(e){return e.from===n&&!0===e.needReadReceipt}));return Ge.l("".concat(t," userID:").concat(n," messageList length:").concat(r.length)),mi({messageList:r})}},{key:"getMessageExtensions",value:function(e,t){return Ge.l("".concat(this._n,".getMessageExtensions startSequence:").concat(t)),this.request({protocolName:Jr,requestData:{from:e.from,to:e.to,messageKey:this._getMessageKey(e),startSequence:t}})}},{key:"modifyMessageExtensions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Ge.l("".concat(this._n,".modifyMessageExtensions operateType:").concat(n)),this.request({protocolName:$r,requestData:{from:e.from,to:e.to,messageKey:this._getMessageKey(e),extensionList:t,operateType:n}})}},{key:"_getMessageKey",value:function(e){var t=e.clientSequence,n=e.random,r=e.time;return"".concat(t,"_").concat(n,"_").concat(r)}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._messageFromUnreadDBMap.clear(),this._signalingFromUnreadDBList.length=0}}]),r}(fr),_i=function(){function e(){o(this,e),this.list=new Map,this._n="MessageListHandler",this._latestMessageSentByPeerMap=new Map,this._latestMessageSentByMeMap=new Map}return i(e,[{key:"getLocalOldestMessageByConversationID",value:function(e){if(!e)return null;if(!this.list.has(e))return null;var t=this.list.get(e).values();return t?t.next().value:null}},{key:"pushIn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.conversationID,r=!0;this.list.has(n)||this.list.set(n,new Map);var o=this._getUniqueIDOfMessage(e),a=this.list.get(n).has(o);if(a){var i=this.list.get(n).get(o);if(!t||!0===i.isModified)return!1}return this.list.get(n).set(o,e),this._setLatestMessageSentByPeer(n,e),this._setLatestMessageSentByMe(n,e),r}},{key:"unshift",value:function(e,t){var n;if(dt(e)?e.length>0&&(n=e[0].conversationID,this._unshiftMultipleMessages(e,t)):(n=e.conversationID,this._unshiftSingleMessage(e,t)),n&&n.startsWith(T.CONV_C2C)){var r=Array.from(this.list.get(n).values()),o=r.length;if(0===o)return;for(var a=o-1;a>=0;a--)if("out"===r[a].flow){this._setLatestMessageSentByMe(n,r[a]);break}for(var i=o-1;i>=0;i--)if("in"===r[i].flow){this._setLatestMessageSentByPeer(n,r[i]);break}}}},{key:"_unshiftSingleMessage",value:function(e,t){var n=e.conversationID,r=this._getUniqueIDOfMessage(e);if(!this.list.has(n))return this.list.set(n,new Map),this.list.get(n).set(r,e),void t.push(e);var o=this.list.get(n),a=Array.from(o);o.has(r)||(a.unshift([r,e]),this.list.set(n,new Map(a)),t.push(e))}},{key:"_unshiftMultipleMessages",value:function(e,t){for(var n=e.length,r=[],o=e[0].conversationID,a=this.list.get(o),i=this.list.has(o)?Array.from(a):[],s=0;s<n;s++){var c=this._getUniqueIDOfMessage(e[s]);a&&a.has(c)||(r.push([c,e[s]]),t.push(e[s]))}this.list.set(o,new Map(r.concat(i)))}},{key:"remove",value:function(e){var t=e.conversationID,n=this._getUniqueIDOfMessage(e);this.list.has(t)&&this.list.get(t).delete(n)}},{key:"revoke",value:function(e,t,n){if(Ge.d("revoke message",e,t,n),this.list.has(e)){var r,o=w(this.list.get(e));try{for(o.s();!(r=o.n()).done;){var a=_(r.value,2)[1];if(a.sequence===t&&(pt(n)||a.random===n))return a.isRevoked||(a.isRevoked=!0),a}}catch(s){o.e(s)}finally{o.f()}}return null}},{key:"removeByConversationID",value:function(e){this.list.has(e)&&(this.list.delete(e),this._latestMessageSentByPeerMap.delete(e),this._latestMessageSentByMeMap.delete(e))}},{key:"findMessage",value:function(e){var t,n=null,r=w(this.list);try{for(r.s();!(t=r.n()).done;)for(var o=b(_(t.value,2)[1].values()),a=o.length,i=0;i<a;i++)if(o[i].ID===e){n=o[i];break}}catch(c){r.e(c)}finally{r.f()}return n}},{key:"updateMessageIsPeerReadProperty",value:function(e,t){var n=[];if(this.list.has(e)){var r,o=w(this.list.get(e));try{for(o.s();!(r=o.n()).done;){var a=_(r.value,2)[1];a.time<=t&&!a.isPeerRead&&"out"===a.flow&&(a.isPeerRead=!0,n.push(a))}}catch(s){o.e(s)}finally{o.f()}Ge.l("".concat(this._n,".updateMessageIsPeerReadProperty conversationID:").concat(e," peerReadTime:").concat(t," count:").concat(n.length))}return n}},{key:"updateMessageIsModifiedProperty",value:function(e){var t=e.conversationID;if(this.list.has(t)){var n=this._getUniqueIDOfMessage(e),r=this.list.get(t).get(n);r&&(r.isModified=!0)}}},{key:"hasLocalMessageList",value:function(e){return this.list.has(e)}},{key:"getLocalMessageList",value:function(e){return this.hasLocalMessageList(e)?b(this.list.get(e).values()):[]}},{key:"hasLocalMessage",value:function(e,t){for(var n=!1,r=this.getLocalMessageList(e),o=r.length,a=0;a<o;a++)r[a].ID===t&&(n=!0);return n}},{key:"getLocalMessage",value:function(e,t){for(var n=null,r=this.getLocalMessageList(e),o=r.length,a=0;a<o;a++)if(r[a].ID===t){n=r[a];break}return n}},{key:"getLocalLastMessage",value:function(e){var t=this.getLocalMessageList(e);return t[t.length-1]}},{key:"getLocalOldestMessage",value:function(e){return this.getLocalMessageList(e)[0]}},{key:"_setLatestMessageSentByPeer",value:function(e,t){e.startsWith(T.CONV_C2C)&&"in"===t.flow&&this._latestMessageSentByPeerMap.set(e,t)}},{key:"_setLatestMessageSentByMe",value:function(e,t){e.startsWith(T.CONV_C2C)&&"out"===t.flow&&this._latestMessageSentByMeMap.set(e,t)}},{key:"getLatestMessageSentByPeer",value:function(e){return this._latestMessageSentByPeerMap.get(e)}},{key:"getLatestMessageSentByMe",value:function(e){return this._latestMessageSentByMeMap.get(e)}},{key:"modifyMessageSentByPeer",value:function(e){var t=e.conversationID,n=e.latestNick,r=e.latestAvatar,o=this.list.get(t);if(!en(o)){var a=Array.from(o.values()),i=a.length;if(0!==i){for(var s=null,c=0,l=!1,u=i-1;u>=0;u--)"in"===a[u].flow&&((s=a[u]).nick!==n&&(s.setNickAndAvatar({nick:n}),l=!0),s.avatar!==r&&(s.setNickAndAvatar({avatar:r}),l=!0),l&&(c+=1));Ge.l("".concat(this._n,".modifyMessageSentByPeer conversationID:").concat(t," count:").concat(c))}}}},{key:"modifyMessageSentByMe",value:function(e){var t=e.conversationID,n=e.latestNick,r=e.latestAvatar,o=this.list.get(t);if(!en(o)){var a=Array.from(o.values()),i=a.length;if(0!==i){for(var s=null,c=0,l=!1,u=i-1;u>=0;u--)"out"===a[u].flow&&((s=a[u]).nick!==n&&(s.setNickAndAvatar({nick:n}),l=!0),s.avatar!==r&&(s.setNickAndAvatar({avatar:r}),l=!0),l&&(c+=1));Ge.l("".concat(this._n,".modifyMessageSentByMe conversationID:").concat(t," count:").concat(c))}}}},{key:"getTopicConversationIDList",value:function(e){return b(this.list.keys()).filter((function(t){return t.startsWith("".concat(T.CONV_GROUP).concat(e))}))}},{key:"traversal",value:function(){if(0!==this.list.size&&-1===Ge.getLevel()){console.group("conversationID-messageCount");var e,t=w(this.list);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2),r=n[0],o=n[1];console.log("".concat(r,"-").concat(o.size))}}catch(i){t.e(i)}finally{t.f()}console.groupEnd()}}},{key:"onMessageModified",value:function(e,t){if(!this.list.has(e))return{isUpdated:!1,message:null};var n=this._getUniqueIDOfMessage(t),r=this.list.get(e).has(n);if(Ge.d("".concat(this._n,".onMessageModified conversationID:").concat(e," uniqueID:").concat(n," has:").concat(r)),r){var o=this.list.get(e).get(n),a=t.messageVersion,i=t.elements,s=t.cloudCustomData;return o.version<a?(o.version=a,o._elements=JSON.parse(JSON.stringify(i)),o.payload=JSON.parse(JSON.stringify(i[0].content)),o.type=i[0].type,o.cloudCustomData=s,o.isModified=!0,{isUpdated:!0,message:o}):{isUpdated:!1,message:o}}return{isUpdated:!1,message:null}}},{key:"_getUniqueIDOfMessage",value:function(e){var t=e.from,n=e.to,r=e.random,o=e.sequence,a=e.time;return"".concat(t,"-").concat(n,"-").concat(r,"-").concat(o,"-").concat(a)}},{key:"reset",value:function(){this.list.clear(),this._latestMessageSentByPeerMap.clear(),this._latestMessageSentByMeMap.clear()}}]),e}(),bi="_a2KeyAndTinyIDUpdated",yi="_cloudConfigUpdated",Oi="_profileUpdated";function Mi(e){this.mixin(e)}Mi.mixin=function(e){var t=e.prototype||e;t._isReady=!1,t.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this._isReady?void(t?e.call(this):setTimeout(e,1)):(this._readyQueue=this._readyQueue||[],void this._readyQueue.push(e))},t.triggerReady=function(){var e=this;this._isReady=!0,setTimeout((function(){var t=e._readyQueue;e._readyQueue=[],t&&t.length>0&&t.forEach((function(e){e.call(this)}),e)}),1)},t.resetReady=function(){this._isReady=!1,this._readyQueue=[]},t.isReady=function(){return this._isReady}};var ki=["jpg","jpeg","gif","png","bmp","image","webp"],Ci=["mp4","quicktime","mov"],wi=1,Si=2,Ti=3,Ii=255,Ei=function(){function e(t){var n=this;o(this,e),en(t)||(this.userID=t.userID||"",this.nick=t.nick||"",this.gender=t.gender||"",this.birthday=t.birthday||0,this.location=t.location||"",this.selfSignature=t.selfSignature||"",this.allowType=t.allowType||T.ALLOW_TYPE_ALLOW_ANY,this.language=t.language||0,this.avatar=t.avatar||"",this.messageSettings=t.messageSettings||0,this.adminForbidType=t.adminForbidType||T.FORBID_TYPE_NONE,this.level=t.level||0,this.role=t.role||0,this.lastUpdatedTime=0,this.profileCustomField=[],en(t.profileCustomField)||t.profileCustomField.forEach((function(e){n.profileCustomField.push({key:e.key,value:e.value})})))}return i(e,[{key:"validate",value:function(e){var t=!0,n="";if(en(e))return{valid:!1,tips:"empty options"};if(e.profileCustomField)for(var r=e.profileCustomField.length,o=null,a=0;a<r;a++){if(o=e.profileCustomField[a],!ct(o.key)||-1===o.key.indexOf("Tag_Profile_Custom"))return{valid:!1,tips:"The prefix of keys of the custom profile key-value pairs (which is profileCustomField) must be Tag_Profile_Custom"};if(!ct(o.value))return{valid:!1,tips:"The type of values of the custom profile key-value pairs (which is profileCustomField) must be String"}}for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if("profileCustomField"===i)continue;if(en(e[i])&&!ct(e[i])&&!st(e[i])){n="key:"+i+", invalid value:"+e[i],t=!1;continue}switch(i){case"nick":ct(e[i])||(n="nick must be a string",t=!1),yt(e[i])>500&&(n="nick name limited: must less than or equal to ".concat(500," bytes, current size: ").concat(yt(e[i])," bytes"),t=!1);break;case"gender":Ct(Je,e.gender)||(n="key:gender, invalid value:"+e.gender,t=!1);break;case"birthday":st(e.birthday)||(n="birthday must be a number",t=!1);break;case"location":ct(e.location)||(n="location must be a string",t=!1);break;case"selfSignature":ct(e.selfSignature)||(n="selfSignature must be a string",t=!1);break;case"allowType":Ct(Qe,e.allowType)||(n="key:allowType, invalid value:"+e.allowType,t=!1);break;case"language":st(e.language)||(n="language must be a number",t=!1);break;case"avatar":ct(e.avatar)||(n="avatar must be a string",t=!1);break;case"messageSettings":0!==e.messageSettings&&1!==e.messageSettings&&(n="messageSettings must be 0 or 1",t=!1);break;case"adminForbidType":Ct(Xe,e.adminForbidType)||(n="key:adminForbidType, invalid value:"+e.adminForbidType,t=!1);break;case"level":st(e.level)||(n="level must be a number",t=!1);break;case"role":st(e.role)||(n="role must be a number",t=!1);break;default:n="unknown key:"+i+" "+e[i],t=!1}}return{valid:t,tips:n}}}]),e}(),ji=i((function e(t){o(this,e),this.value=t,this.next=null})),Di=function(){function e(t){o(this,e),this.MAX_LENGTH=t,this.pTail=null,this.pNodeToDel=null,this.map=new Map}return i(e,[{key:"set",value:function(e){var t=new ji(e);if(this.map.size<this.MAX_LENGTH)null===this.pTail?(this.pTail=t,this.pNodeToDel=t):(this.pTail.next=t,this.pTail=t),this.map.set(e,1);else{var n=this.pNodeToDel;this.pNodeToDel=this.pNodeToDel.next,this.map.delete(n.value),n.next=null,n=null,this.pTail.next=t,this.pTail=t,this.map.set(e,1)}}},{key:"has",value:function(e){return this.map.has(e)}},{key:"delete",value:function(e){this.has(e)&&this.map.delete(e)}},{key:"tail",value:function(){return this.pTail}},{key:"size",value:function(){return this.map.size}},{key:"data",value:function(){return Array.from(this.map.keys())}},{key:"reset",value:function(){for(var e;null!==this.pNodeToDel;)e=this.pNodeToDel,this.pNodeToDel=this.pNodeToDel.next,e.next=null,e=null;this.pTail=null,this.map.clear()}}]),e}(),Li=["groupID","name","avatar","type","introduction","notification","ownerID","selfInfo","createTime","infoSequence","lastInfoTime","lastMessage","nextMessageSeq","memberNum","maxMemberNum","memberList","joinOption","groupCustomField","muteAllMembers","isSupportTopic","inviteOption","_lastRevokedTime"],Ai=function(){function e(t){o(this,e),this.groupID="",this.name="",this.avatar="",this.type="",this.introduction="",this.notification="",this.ownerID="",this.createTime="",this.infoSequence="",this.lastInfoTime="",this.selfInfo={messageRemindType:"",joinTime:"",nameCard:"",role:"",userID:"",memberCustomField:void 0,readedSequence:0,excludedUnreadSequenceList:void 0},this.lastMessage={lastTime:"",lastSequence:"",fromAccount:"",messageForShow:""},this.nextMessageSeq="",this.memberNum="",this.memberCount="",this.maxMemberNum="",this.maxMemberCount="",this.joinOption="",this.inviteOption="",this.groupCustomField=[],this.muteAllMembers=!1,this.isSupportTopic=!1,this._lastRevokedTime=0,this._initGroup(t)}return i(e,[{key:"memberNum",get:function(){return this.memberCount},set:function(e){}},{key:"maxMemberNum",get:function(){return this.maxMemberCount},set:function(e){}},{key:"_initGroup",value:function(e){for(var t in e)Li.indexOf(t)<0||("selfInfo"!==t?("memberNum"===t&&(this.memberCount=e[t]),"maxMemberNum"===t&&(this.maxMemberCount=e[t]),"isSupportTopic"!==t?this[t]=e[t]:this.isSupportTopic=1===e[t]):this.updateSelfInfo(e[t]))}},{key:"updateGroup",value:function(e){var t=this;e.appid=void 0,e.grossTopicNextMsgSeq=void 0,e.selfInfo&&(e.selfInfo.grossTopicReadSeq=void 0);var n=JSON.parse(JSON.stringify(e));n.lastMsgTime&&(this.lastMessage.lastTime=n.lastMsgTime),pt(n.muteAllMembers)||("On"===n.muteAllMembers?n.muteAllMembers=!0:n.muteAllMembers=!1),n.groupCustomField&&It(this.groupCustomField,n.groupCustomField),pt(n.memberNum)||(this.memberCount=n.memberNum),pt(n.maxMemberNum)||(this.maxMemberCount=n.maxMemberNum),pt(n.isSupportTopic)||(this.isSupportTopic=st(n.isSupportTopic)?1===n.isSupportTopic:n.isSupportTopic),_t(this,n,["members","errorCode","lastMsgTime","groupCustomField","memberNum","maxMemberNum","isSupportTopic"]),dt(n.members)&&n.members.length>0&&n.members.forEach((function(e){e.userID===t.selfInfo.userID&&_t(t.selfInfo,e,["sequence"])}))}},{key:"updateSelfInfo",value:function(e){var t={nameCard:e.nameCard,joinTime:e.joinTime,role:e.role,messageRemindType:e.messageRemindType,readedSequence:e.readedSequence,excludedUnreadSequenceList:e.excludedUnreadSequenceList};_t(this.selfInfo,n({},t),[],["",null,void 0,0,NaN])}},{key:"setSelfNameCard",value:function(e){this.selfInfo.nameCard=e}}]),e}(),Ni=function(e,t){return pt(e)?{lastTime:0,lastSequence:0,fromAccount:0,messageForShow:"",payload:null,type:"",isRevoked:!1,cloudCustomData:"",onlineOnlyFlag:!1,nick:"",nameCard:"",version:0,isPeerRead:!1,revoker:null}:e instanceof ui?{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||"",messageForShow:Wt(e.type,e.payload,t),payload:e.payload||null,type:e.type||null,isRevoked:e.isRevoked||!1,cloudCustomData:e.cloudCustomData||"",onlineOnlyFlag:e._onlineOnlyFlag||!1,nick:e.nick||"",nameCard:e.nameCard||"",version:e.version||0,isPeerRead:e.isPeerRead||!1,revoker:e.revoker||null}:n(n({},e),{},{messageForShow:Wt(e.type,e.payload,t)})},Ri=function(){function e(t,n){o(this,e),this.conversationID=t.conversationID||"",this.unreadCount=t.unreadCount||0,this.type=t.type||"",this.lastMessage=Ni(t.lastMessage,n),t.lastMsgTime&&(this.lastMessage.lastTime=t.lastMsgTime),this._isInfoCompleted=!1,this.peerReadTime=t.peerReadTime||0,this.groupAtInfoList=[],this.remark="",this.isPinned=t.isPinned||!1,this.messageRemindType="",this.markList=t.markList||[],this.customData=t.customData||"",this.conversationGroupList=t.conversationGroupList||[],this._initProfile(t)}return i(e,[{key:"toAccount",get:function(){return this.conversationID.startsWith(T.CONV_C2C)?this.conversationID.replace(T.CONV_C2C,""):this.conversationID.startsWith(T.CONV_GROUP)?this.conversationID.replace(T.CONV_GROUP,""):""}},{key:"subType",get:function(){return this.groupProfile?this.groupProfile.type:""}},{key:"_initProfile",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"userProfile":t.userProfile=e.userProfile;break;case"groupProfile":t.groupProfile=e.groupProfile}})),pt(this.userProfile)&&this.type===T.CONV_C2C?this.userProfile=new Ei({userID:e.conversationID.replace("C2C","")}):pt(this.groupProfile)&&this.type===T.CONV_GROUP&&(this.groupProfile=new Ai({groupID:e.conversationID.replace("GROUP","")}))}},{key:"updateUnreadCount",value:function(e){var t=e.nextUnreadCount,n=e.isFromGetConversations,r=e.isUnreadC2CMessage;pt(t)||(Et(this.subType)?this.unreadCount=0:n&&this.type===T.CONV_GROUP||n&&this.type===T.CONV_TOPIC||r&&this.type===T.CONV_C2C?this.unreadCount=t:this.unreadCount=this.unreadCount+t)}},{key:"updateLastMessage",value:function(e){this.lastMessage=Ni(e)}},{key:"updateGroupAtInfoList",value:function(e){if(!this._isNeedMergeGroupAtInfo(e)){var t,n=(y(t=e.groupAtType)||O(t)||M(t)||C()).slice(0);-1!==n.indexOf(T.CONV_AT_ME)&&-1!==n.indexOf(T.CONV_AT_ALL)&&(n=[T.CONV_AT_ALL_AT_ME]);var r={from:e.from,groupID:e.groupID,topicID:e.topicID,messageSequence:e.sequence,atTypeArray:n,__random:e.__random,__sequence:e.__sequence};this.groupAtInfoList.push(r)}}},{key:"_isNeedMergeGroupAtInfo",value:function(e){var t=e.groupID,n=e.sequence;if(!jt({groupID:t}))return!1;var r=!1;return this.groupAtInfoList.forEach((function(t){t.messageSequence===n&&(t.atTypeArray.indexOf(T.CONV_AT_ME)>-1&&e.groupAtType.indexOf(T.CONV_AT_ALL)>-1&&(t.atTypeArray=[T.CONV_AT_ALL_AT_ME]),t.atTypeArray.indexOf(T.CONV_AT_ALL)>-1&&e.groupAtType.indexOf(T.CONV_AT_ME)>-1&&(t.atTypeArray=[T.CONV_AT_ALL_AT_ME],t.__random=e.__random,t.__sequence=e.__sequence),r=!0)})),r}},{key:"clearGroupAtInfoList",value:function(){this.groupAtInfoList.length=0}},{key:"reduceUnreadCount",value:function(){return this.unreadCount>=1&&(this.unreadCount-=1,!0)}},{key:"isLastMessageRevoked",value:function(e){var t=e.sequence,n=e.time;return this.type===T.CONV_C2C&&t===this.lastMessage.lastSequence&&n===this.lastMessage.lastTime||this.type===T.CONV_GROUP&&t===this.lastMessage.lastSequence}},{key:"setLastMessageRevoked",value:function(e){this.lastMessage.isRevoked=e}},{key:"setLastMessageRevoker",value:function(e){this.lastMessage.revoker=e}}]),e}(),xi=function(){function e(t){o(this,e),this._conversationModule=t,this._n="MessageRemindHandler",this._updateSequence=0}return i(e,[{key:"getC2CMessageRemindType",value:function(){var e=this,t="".concat(this._n,".getC2CMessageRemindType");return this._conversationModule.request({protocolName:Yr,updateSequence:this._updateSequence}).then((function(n){Ge.l("".concat(t," ok"));var r=n.data,o=r.updateSequence,a=r.muteFlagList;e._updateSequence=o,e._patchC2CMessageRemindType(a)})).catch((function(e){Ge.e("".concat(t," failed. error:"),e)}))}},{key:"_patchC2CMessageRemindType",value:function(e){var t=this,n=0,r="";dt(e)&&e.length>0&&e.forEach((function(e){var o=e.userID,a=e.muteFlag;0===a?r=T.MSG_REMIND_ACPT_AND_NOTE:1===a?r=T.MSG_REMIND_DISCARD:2===a&&(r=T.MSG_REMIND_ACPT_NOT_NOTE),!0===t._conversationModule.patchMessageRemindType({ID:o,isC2CConversation:!0,messageRemindType:r})&&(n+=1)})),Ge.l("".concat(this._n,"._patchC2CMessageRemindType count:").concat(n))}},{key:"set",value:function(e){return e.groupID?this._setGroupMessageRemindType(e):dt(e.userIDList)?this._setC2CMessageRemindType(e):void 0}},{key:"_setGroupMessageRemindType",value:function(e){var t=this,n="".concat(this._n,"._setGroupMessageRemindType"),r=e.groupID,o=e.messageRemindType,a="groupID:".concat(r," messageRemindType:").concat(o),i=new Ka("setMessageRemindType");return i.setMessage(a),this._getModule(Hn).modifyGroupMemberInfo({groupID:r,messageRemindType:o,userID:this._conversationModule.getMyUserID()}).then((function(){i.setNetworkType(t._conversationModule.getNetworkType()).end(),Ge.l("".concat(n," ok. ").concat(a));var r=t.onGroupMessageRemindTypeUpdated(e);return t._conversationModule.emitTotalUnreadMessageCountUpdate(),di(r)})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"onGroupMessageRemindTypeUpdated",value:function(e){var t=e.groupID,n=e.messageRemindType,r=this._getModule(Fn).getLocalGroupProfile(t);if(r&&(r.selfInfo.messageRemindType=n),Dt(t)){var o=t,a=qt(o),i=this._getModule(Yn).getLocalTopic(a,o);return i&&(i.updateSelfInfo({messageRemindType:n}),this._conversationModule.emitOuterEvent(S.TOPIC_UPDATED,{groupID:a,topic:i})),{topic:i}}return this._conversationModule.patchMessageRemindType({ID:t,isC2CConversation:!1,messageRemindType:n})&&this._emitConversationUpdate(),{group:r}}},{key:"_setC2CMessageRemindType",value:function(e){var t=this,n="".concat(this._n,"._setC2CMessageRemindType"),r=e.userIDList,o=e.messageRemindType,a=r.slice(0,30),i=0;o===T.MSG_REMIND_DISCARD?i=1:o===T.MSG_REMIND_ACPT_NOT_NOTE&&(i=2);var s="userIDList:".concat(a," messageRemindType:").concat(o),c=new Ka("setMessageRemindType");return c.setMessage(s),this._conversationModule.request({protocolName:Hr,requestData:{userIDList:a,muteFlag:i}}).then((function(e){c.setNetworkType(t._conversationModule.getNetworkType()).end();var r=e.data,i=r.updateSequence,s=r.errorList;t._updateSequence=i;var l=[],u=[];dt(s)&&s.forEach((function(e){l.push(e.userID),u.push({userID:e.userID,code:e.errorCode})}));var d=a.filter((function(e){return-1===l.indexOf(e)}));Ge.l("".concat(n," ok. successUserIDList:").concat(d," failureUserIDList:").concat(JSON.stringify(u)));var p=0;return d.forEach((function(e){t._conversationModule.patchMessageRemindType({ID:e,isC2CConversation:!0,messageRemindType:o})&&(p+=1)})),p>=1&&t._emitConversationUpdate(),a.length=l.length=0,t._conversationModule.emitTotalUnreadMessageCountUpdate(),mi({successUserIDList:d.map((function(e){return{userID:e}})),failureUserIDList:u})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_getModule",value:function(e){return this._conversationModule.getModule(e)}},{key:"_emitConversationUpdate",value:function(){this._conversationModule.emitConversationUpdate(!0,!1)}},{key:"setUpdateSequence",value:function(e){this._updateSequence=e}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._updateSequence=0}}]),e}(),Pi=function(){function e(t){o(this,e),this._conversationModule=t,this._n="ConvGroupHandler",this._convGroupMap=new Map,this._startIndex=0,this._pagingStatus=an.NOT_START}return i(e,[{key:"setConvCustomData",value:function(e){var t=this,n="".concat(this._n,".").concat("setConvCustomData"),r=e.conversationIDList,o=e.customData;Ge.l("".concat(n," options:"),e);var a=new Ka("setConvCustomData");a.setMessage(JSON.stringify(e));var i={fromAccount:this._getMyUserID(),itemList:[]},s=[],c=[];return r.forEach((function(e){if(!t._hasLocalConversation(e))return t._onConversationNotFound(c,e),!0;if(!Lt(e)&&!At(e))return t._onConversationIDInvalid(c,e),!0;var n={operationType:2,contactItem:void 0,customMark:o};Lt(e)?n.contactItem={type:1,toAccount:e.replace(T.CONV_C2C,"")}:At(e)&&(n.contactItem={type:2,groupID:e.replace(T.CONV_GROUP,"")}),i.itemList.push(n)})),c.length===r.length?mi({successConversationIDList:s,failureConversationIDList:c}):this._conversationModule.request({protocolName:ro,requestData:i}).then((function(e){a.setNetworkType(t._conversationModule.getNetworkType()).end(),Ge.l("".concat(n," ok"));var r=e.data.resultItem;if(dt(r)){var i,l,u=!1;r.forEach((function(e){i=t._concatConversationID(e.contactItem),0===e.resultCode?(s.push(i),(l=t._getLocalConversation(i))&&l.customData!==o&&(l.customData=o,u=!0)):c.push({conversationID:i,code:e.resultCode,message:e.resultInfo})})),!0===u&&t._emitConversationUpdate()}return di({successConversationIDList:s,failureConversationIDList:c})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"markConversation",value:function(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_MARK))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("markConversation"),r=e.conversationIDList,o=e.markType,a=e.enableMark;Ge.l("".concat(n," options:"),e);var i=new Ka("markConversation");i.setMessage(JSON.stringify(e));var s=void 0,c=void 0,l=this._getFlagBit(o);!0===a?c=[l]:s=[l];var u={fromAccount:this._getMyUserID(),itemList:[]},d=[],p=[];return r.forEach((function(e){if(!t._hasLocalConversation(e))return t._onConversationNotFound(p,e),!0;if(!Lt(e)&&!At(e))return t._onConversationIDInvalid(p,e),!0;var n={operationType:1,contactItem:void 0,clearMark:s,setMark:c};Lt(e)?n.contactItem={type:1,toAccount:e.replace(T.CONV_C2C,"")}:At(e)&&(n.contactItem={type:2,groupID:e.replace(T.CONV_GROUP,"")}),u.itemList.push(n)})),p.length===r.length?mi({successConversationIDList:d,failureConversationIDList:p}):this._conversationModule.request({protocolName:oo,requestData:u}).then((function(e){i.setNetworkType(t._conversationModule.getNetworkType()).end(),Ge.l("".concat(n," ok"));var r=e.data.resultItem;if(dt(r)){var s,c,l=!1;r.forEach((function(e){if(s=t._concatConversationID(e.contactItem),0===e.resultCode){if(d.push(s),c=t._getLocalConversation(s)){var n=c.markList.indexOf(o);!0===a?-1===n&&(c.markList.push(o),l=!0):-1!==n&&(c.markList.splice(n,1),l=!0)}}else p.push({conversationID:s,code:e.resultCode,message:e.resultInfo})})),!0===l&&t._emitConversationUpdate()}return di({successConversationIDList:d,failureConversationIDList:p})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"getLocalConvGroupList",value:function(){var e=this;return Ge.l("".concat(this._n,".getLocalConvGroupList pagingStatus:").concat(this._pagingStatus)),this._pagingStatus===an.REJECTED?this.getRemoteConvGroupList().then((function(){return di(b(e._convGroupMap.values()))})):mi(b(this._convGroupMap.values()))}},{key:"getRemoteConvGroupList",value:function(){var e=this,t="".concat(this._n,".getRemoteConvGroupList");return this._pagingStatus=an.PENDING,this._conversationModule.request({protocolName:uo,requestData:{fromAccount:this._getMyUserID(),startIndex:this._startIndex,startTime:Ue()}}).then((function(n){var r,o,a=n.data,i=a.completeFlag,s=a.contactItem,c=a.nextStartIndex,l=void 0===c?0:c,u=a.groupItem;if(e._startIndex=l,Ge.l("".concat(t," completeFlag:").concat(i," nextStartIndex:").concat(l)),dt(u)&&u.forEach((function(t){var n=t.convGroupID,r=t.groupName;e._convGroupMap.set(n,r)})),dt(s)&&s.forEach((function(t){var n=t.standardMark,a=t.customData,i=t.convGroupIDList;if(r=e._concatConversationID(t),(o=e._getLocalConversation(r))&&(o.markList=$t(n),o.customData=a||"",dt(i))){var s=[];i.forEach((function(t){e._convGroupMap.has(t)&&s.push(e._convGroupMap.get(t))})),o.conversationGroupList=[].concat(s),s.length=0}})),0===i)return e.getRemoteConvGroupList();1===i&&(e._pagingStatus=an.RESOLVED,e._emitConversationUpdate(),e._emitConvGroupListUpdate())})).catch((function(n){e._pagingStatus=an.REJECTED,Ge.w("".concat(t," failed. error:"),n)}))}},{key:"createConvGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_GROUP))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("createConvGroup");Ge.l("".concat(n," options:"),e);var r=new Ka("createConvGroup");r.setMessage(JSON.stringify(e));var o=e.groupName,a=e.conversationIDList,i={fromAccount:this._getMyUserID(),itemList:[{groupName:o,contactItem:[]}]},s=[],c=[];return a.forEach((function(e){return t._hasLocalConversation(e)?Lt(e)||At(e)?void(Lt(e)?i.itemList[0].contactItem.push({type:1,toAccount:e.replace(T.CONV_C2C,"")}):At(e)&&i.itemList[0].contactItem.push({type:2,groupID:e.replace(T.CONV_GROUP,"")})):(t._onConversationIDInvalid(c,e),!0):(t._onConversationNotFound(c,e),!0)})),c.length===a.length?mi({successConversationIDList:s,failureConversationIDList:c}):this._conversationModule.request({protocolName:ao,requestData:i}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Ge.l("".concat(n," ok"));var a=e.data.groupResultItem[0],i=a.groupItem,l=a.resultItem;if(ut(i)&&(t._convGroupMap.set(i.convGroupID,i.groupName),t._emitConvGroupListUpdate()),dt(l)){var u,d,p=!1;l.forEach((function(e){u=t._concatConversationID(e.contactItem),0===e.resultCode?(s.push(u),(d=t._getLocalConversation(u))&&-1===d.conversationGroupList.indexOf(o)&&(d.conversationGroupList.push(o),p=!0)):c.push({conversationID:u,code:e.resultCode,message:e.resultInfo})})),!0===p&&(t._emitConversationUpdate(),t._emitConvGroupListUpdate())}return di({successConversationIDList:s,failureConversationIDList:c})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"deleteConvGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_GROUP))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("deleteConvGroup");Ge.l("".concat(n," groupName:").concat(e));var r=new Ka("deleteConvGroup");return r.setMessage(e),this._conversationModule.request({protocolName:io,requestData:{fromAccount:this._getMyUserID(),groupName:[e]}}).then((function(o){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Ge.l("".concat(n," ok"));var a=o.data.groupItem;if(dt(a)){var i=!1;a.forEach((function(e){t._convGroupMap.has(e.convGroupID)&&(t._convGroupMap.delete(e.convGroupID),i=!0)})),!0===i&&t._emitConvGroupListUpdate()}t._eraseFromConversationGroupList([e])})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"renameConvGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_GROUP))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("renameConvGroup");Ge.l("".concat(n," options:"),e);var r=new Ka("renameConvGroup");r.setMessage(JSON.stringify(e));var o=e.oldName,a=e.newName;return this._conversationModule.request({protocolName:so,requestData:{fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:1,oldName:o,newName:a}}}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Ge.l("".concat(n," ok"));var i=e.data.updateGroupResult.convGroupID;t._convGroupMap.set(i,a),t._emitConvGroupListUpdate();var s,c,l=t._conversationModule.getLocalConversationList(),u=!1;l.forEach((function(e){s=e.conversationGroupList,-1!==(c=s.indexOf(o))&&(s.splice(c,1,a),u=!0)})),!0===u&&t._emitConversationUpdate()})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"addConvsToGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_GROUP))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("addConvsToGroup");Ge.l("".concat(n," options:"),e);var r=new Ka("addConvsToGroup");r.setMessage(JSON.stringify(e));var o=e.conversationIDList,a=e.groupName,i={fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:2,groupName:a,updateItem:[]}},s=[],c=[];return o.forEach((function(e){return t._hasLocalConversation(e)?Lt(e)||At(e)?void(Lt(e)?i.updateGroup.updateItem.push({operationType:1,contactItem:{type:1,toAccount:e.replace(T.CONV_C2C,"")}}):At(e)&&i.updateGroup.updateItem.push({operationType:1,contactItem:{type:2,groupID:e.replace(T.CONV_GROUP,"")}})):(t._onConversationIDInvalid(c,e),!0):(t._onConversationNotFound(c,e),!0)})),c.length===o.length?mi({successConversationIDList:s,failureConversationIDList:c}):this._conversationModule.request({protocolName:co,requestData:i}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Ge.l("".concat(n," ok"));var o=e.data.updateGroupResult.contactResultItem;if(dt(o)){var i,l,u=!1;o.forEach((function(e){i=t._concatConversationID(e.contactItem),0===e.resultCode?(l=t._getLocalConversation(i))&&-1===l.conversationGroupList.indexOf(a)&&(l.conversationGroupList.push(a),s.push(i),u=!0):c.push({conversationID:i,code:e.resultCode,message:e.resultInfo})})),!0===u&&(t._emitConversationUpdate(),t._emitConvInGroupUpdate(a))}return di({successConversationIDList:s,failureConversationIDList:c})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"deleteConvsFromGroup",value:function(e){var t=this;if(!this._conversationModule.canIUse(H.CONV_GROUP))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("deleteConvsFromGroup");Ge.l("".concat(n," options:"),e);var r=new Ka("deleteConvsFromGroup");r.setMessage(JSON.stringify(e));var o=e.conversationIDList,a=e.groupName,i={fromAccount:this._getMyUserID(),updateType:1,updateGroup:{updateGroupType:2,groupName:a,updateItem:[]}},s=[],c=[];return o.forEach((function(e){return t._hasLocalConversation(e)?Lt(e)||At(e)?void(Lt(e)?i.updateGroup.updateItem.push({operationType:2,contactItem:{type:1,toAccount:e.replace(T.CONV_C2C,"")}}):At(e)&&i.updateGroup.updateItem.push({operationType:2,contactItem:{type:2,groupID:e.replace(T.CONV_GROUP,"")}})):(t._onConversationIDInvalid(c,e),!0):(t._onConversationNotFound(c,e),!0)})),c.length===o.length?mi({successConversationIDList:s,failureConversationIDList:c}):this._conversationModule.request({protocolName:lo,requestData:i}).then((function(e){r.setNetworkType(t._conversationModule.getNetworkType()).end(),Ge.l("".concat(n," ok"));var o=e.data.updateGroupResult.contactResultItem;if(dt(o)){var i,l,u=!1;o.forEach((function(e){if(i=t._concatConversationID(e.contactItem),0===e.resultCode){if(l=t._getLocalConversation(i)){var n=l.conversationGroupList.indexOf(a);-1!==n&&(l.conversationGroupList.splice(n,1),s.push(i),u=!0)}}else c.push({conversationID:i,code:e.resultCode,message:e.resultInfo})})),!0===u&&(t._emitConversationUpdate(),t._emitConvInGroupUpdate(a))}return di({successConversationIDList:s,failureConversationIDList:c})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"onConvMarkUpdated",value:function(e){var t=this;if(!en(e)){var n,r;Ge.d("".concat(this._n,".onConvMarkUpdated markItemList:"),e);var o=!1;e.forEach((function(e){var a=e.recentContactItem,i=e.optType,s=e.standardMark,c=e.customMark;if(n=t._concatConversationID(a),r=t._getLocalConversation(n))if(1===i){var l=$t(s);!0!==function(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}(r.markList,l)&&(r.markList=l,o=!0)}else 2===i&&r.customData!==c&&void 0!==c&&(r.customData=c,o=!0)})),!0===o&&this._emitConversationUpdate()}}},{key:"onConvGroupCreated",value:function(e){var t=this;Ge.d("".concat(this._n,".onConvGroupCreated resultList:"),e);var n=!1,r=!1;dt(e)&&(e.forEach((function(e){var o=e.msgGroupItem,a=o.groupID,i=o.groupName;t._convGroupMap.get(a)!==i&&(t._convGroupMap.set(a,i),r=!0);var s,c,l=e.msgRecentContactItem;dt(l)&&l.forEach((function(e){s=t._concatConversationID(e),(c=t._getLocalConversation(s))&&-1===c.conversationGroupList.indexOf(i)&&(c.conversationGroupList.push(i),n=!0)}))})),!0===n&&this._emitConversationUpdate(),!0===r&&this._emitConvGroupListUpdate())}},{key:"onConvGroupDeleted",value:function(e){var t=this;Ge.d("".concat(this._n,".onConvGroupDeleted groupItemList:"),e);var n=[];if(dt(e)){var r=!1;e.forEach((function(e){var o=e.groupID,a=e.groupName;t._convGroupMap.has(o)&&(t._convGroupMap.delete(o),r=!0,n.push(a))})),!0===r&&this._emitConvGroupListUpdate()}this._eraseFromConversationGroupList(n)}},{key:"_eraseFromConversationGroupList",value:function(e){en(e)||(this._conversationModule.getLocalConversationList().forEach((function(t){t.conversationGroupList=t.conversationGroupList.filter((function(t){return!e.includes(t)}))})),this._emitConversationUpdate())}},{key:"onConvGroupNameUpdated",value:function(e){Ge.d("".concat(this._n,".onConvGroupNameUpdated options:"),e);var t=e.groupID,n=e.groupName,r=e.oldGroupName;if(this._convGroupMap.get(t)!==n){this._convGroupMap.set(t,n),this._emitConvGroupListUpdate();var o,a,i=this._conversationModule.getLocalConversationList(),s=!1;i.forEach((function(e){o=e.conversationGroupList,-1!==(a=o.indexOf(r))&&(o.splice(a,1,n),s=!0)})),!0===s&&this._emitConversationUpdate()}}},{key:"onConvInGroupUpdated",value:function(e){var t=this;Ge.d("".concat(this._n,".onConvInGroupUpdated options:"),e);var n=e.oldGroupName,r=e.recentContactUpdateGroupItem;if(dt(r)){var o,a,i,s=!1;r.forEach((function(e){var r=e.contactOptType,c=e.recentContactItem;o=t._concatConversationID(c),(a=t._getLocalConversation(o))&&(i=a.conversationGroupList.indexOf(n),1===r?-1===i&&(a.conversationGroupList.push(n),s=!0):2===r&&-1!==i&&(a.conversationGroupList.splice(i,1),s=!0))})),!0===s&&(this._emitConversationUpdate(),this._emitConvInGroupUpdate(n))}}},{key:"onConvAddedToOrDeletedFromGroup",value:function(e){var t=this;Ge.d("".concat(this._n,".onConvAddedToOrDeletedFromGroup options:"),e);var n=e.msgRecentContactItem,r=e.msgRecentContactUpdateContactItem,o=this._concatConversationID(n),a=this._getLocalConversation(o);if(a&&dt(r)){var i,s=!1;r.forEach((function(e){var n=e.groupOptType,r=e.recentContactGroupItem.groupName;i=a.conversationGroupList.indexOf(r),1===n?-1===i&&(a.conversationGroupList.push(r),s=!0):2===n&&-1!==i&&(a.conversationGroupList.splice(i,1),s=!0),!0===s&&t._emitConvInGroupUpdate(r)})),!0===s&&this._emitConversationUpdate()}}},{key:"onConvGroupListSynced",value:function(e){var t=this;dt(e)&&0!==e.length&&(Ge.l("".concat(this._n,".onConvGroupListSynced groupItemList:"),e),e.forEach((function(e){t._convGroupMap.set(e.convGroupID,e.groupName)})))}},{key:"getConvGroupListByID",value:function(e){var t=this;if(!en(e)){var n=[];return e.forEach((function(e){t._convGroupMap.has(e)&&n.push(t._convGroupMap.get(e))})),n}}},{key:"_onConversationNotFound",value:function(e,t){e.push({conversationID:t,code:Aa.CONVERSATION_NOT_FOUND,message:this._conversationModule.getErrorMessage(Aa.CONVERSATION_NOT_FOUND)})}},{key:"_onConversationIDInvalid",value:function(e,t){e.push({conversationID:t,code:Aa.INVALID_CONVERSATION_ID,message:this._conversationModule.getErrorMessage(Aa.INVALID_CONVERSATION_ID)})}},{key:"_getFlagBit",value:function(e){for(var t=e.toString(2),n=t.length,r=n-1;r>=0;r--)if("1"===t[r])return n-r-1}},{key:"_concatConversationID",value:function(e){var t,n=e.type,r=e.to,o=e.groupID,a=e.userID;return 1===n?pt(a)?pt(r)||(t="".concat(T.CONV_C2C).concat(r)):t="".concat(T.CONV_C2C).concat(a):2===n&&(t="".concat(T.CONV_GROUP).concat(o)),t}},{key:"_getMyUserID",value:function(){return this._conversationModule.getMyUserID()}},{key:"_insertConversationGroup",value:function(e,t){var n=this._getLocalConversation(e);if(n){var r=n.conversationGroupList;-1===r.indexOf(t)&&r.push(t)}}},{key:"_getLocalConversation",value:function(e){return this._conversationModule.getLocalConversation(e)}},{key:"_hasLocalConversation",value:function(e){return this._conversationModule.hasLocalConversation(e)}},{key:"_emitConversationUpdate",value:function(){this._conversationModule.emitConversationUpdate(!0,!1)}},{key:"_emitConvGroupListUpdate",value:function(){this._conversationModule.emitOuterEvent(S.CONVERSATION_GROUP_LIST_UPDATED,b(this._convGroupMap.values()))}},{key:"_emitConvInGroupUpdate",value:function(e){var t={groupName:e,conversationList:[]},n=this._conversationModule.getLocalConversationList();t.conversationList=n.filter((function(t){return t.conversationGroupList.includes(e)})),this._conversationModule.emitOuterEvent(S.CONVERSATION_IN_GROUP_UPDATED,t)}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._convGroupMap.clear(),this._startIndex=0,this._pagingStatus=an.NOT_START}}]),e}(),Ui=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="ConversationModule",Mi.mixin(m(n)),n._messageListHandler=new _i,n._messageRemindHandler=new xi(m(n)),n._convGroupHandler=new Pi(m(n)),n.singlyLinkedList=new Di(100),n._pagingStatus=an.NOT_START,n._pagingTimeStamp=0,n._pagingStartIndex=0,n._pagingPinnedTimeStamp=0,n._pagingPinnedStartIndex=0,n._pagingConvIDMap=new Map,n._convIDFromUnreadDBMap=new Map,n._conversationMap=new Map,n._tmpGroupList=[],n._tmpGroupAtTipsList=[],n._peerReadTimeMap=new Map,n._completedMap=new Map,n._roamingMessageKeyAndTimeMap=new Map,n._roamingMessageSequenceMap=new Map,n._remoteGroupReadSequenceMap=new Map,n._convTotalUnreadCount=0,n._initListeners(),n}return i(r,[{key:"_initListeners",value:function(){var e=this.getInnerEmitterInstance();e.on(bi,this._initLocalConversationList,this),e.on(Oi,this._onProfileUpdated,this)}},{key:"onCheckTimer",value:function(e){e%60==0&&this._messageListHandler.traversal()}},{key:"_initLocalConversationList",value:function(){var e=this,t=new Ka("_initLocalConversationList");Ge.l("".concat(this._n,".").concat("_initLocalConversationList"));var n="",r=this._getStorageConversationList(),o=this.isIntl();if(r){for(var a=r.length,i=0;i<a;i++){var s=r[i];if(s){if(s.conversationID==="".concat(T.CONV_C2C,"@TLS#ERROR")||s.conversationID==="".concat(T.CONV_C2C,"@TLS#NOT_FOUND"))continue;if(s.groupProfile){var c=s.groupProfile.type;if(Et(c))continue}}this._conversationMap.set(r[i].conversationID,new Ri(r[i],o))}this.emitConversationUpdate(!0,!1),n="count:".concat(a)}else n="count:0";t.setNetworkType(this.getNetworkType()).setMessage(n).end(),this.getModule(Bn)||this.triggerReady(),this.ready((function(){e._tmpGroupList.length>0&&(e.updateConversationGroupProfile(e._tmpGroupList),e._tmpGroupList.length=0)})),this.syncConversationList()}},{key:"onMessageSent",value:function(e){this._onSendOrReceiveMessage({conversationOptionsList:e.conversationOptionsList,isInstantMessage:!0})}},{key:"onNewMessage",value:function(e){this._onSendOrReceiveMessage(e)}},{key:"_onSendOrReceiveMessage",value:function(e){var t=this,n=e.conversationOptionsList,r=e.isInstantMessage,o=void 0===r||r,a=e.isUnreadC2CMessage,i=void 0!==a&&a,s=e.updateUnreadCount,c=void 0===s||s;this._isReady?0!==n.length&&(this._getC2CPeerReadTime(n),this._updateLocalConversationList({conversationOptionsList:n,isInstantMessage:o,isUnreadC2CMessage:i,isFromGetConversations:!1,updateUnreadCount:c}),o||(this._convIDFromUnreadDBMap=new Map([].concat(b(this._convIDFromUnreadDBMap),b(n.map((function(e){return[e.conversationID,1]}))))),this._diffAndDeleteConversation()),this._setStorageConversationList(),n.filter((function(e){return e.type===T.CONV_TOPIC})).length>0||this.emitConversationUpdate()):this.ready((function(){t._onSendOrReceiveMessage(e)}))}},{key:"updateConversationGroupProfile",value:function(e){var t=this;if(!dt(e)||0!==e.length)if(0!==this._conversationMap.size){var n=!1;e.forEach((function(e){var r="GROUP".concat(e.groupID);if(t._conversationMap.has(r)){n=!0;var o=t._conversationMap.get(r);o.groupProfile=JSON.parse(JSON.stringify(e)),o.lastMessage.lastSequence<e.nextMessageSeq&&(o.lastMessage.lastSequence=e.nextMessageSeq-1),o.subType||(o.subType=e.type)}})),n&&this.emitConversationUpdate(!0,!1)}else this._tmpGroupList=e}},{key:"_updateConversationUserProfile",value:function(e){var t=this;e.data.forEach((function(e){var n="C2C".concat(e.userID);t._conversationMap.has(n)&&(t._conversationMap.get(n).userProfile=e)})),this.emitConversationUpdate(!0,!1)}},{key:"onMessageRevoked",value:function(e){var t=this;if(0!==e.length){var n=null,r=!1,o=[];e.forEach((function(e){(n=t._conversationMap.get(e.conversationID))&&(n.type===T.CONV_TOPIC?o.push(e):(n.reduceUnreadCount()&&(r=!0),n.isLastMessageRevoked({sequence:e.sequence,time:e.time})&&(n.setLastMessageRevoked(!0),n.setLastMessageRevoker(e.revoker),r=!0)))})),this.getModule(Yn).onMessageRevoked(o),r&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate())}}},{key:"isLastMessageRevoked",value:function(e){var t=!1,n=e.conversationID,r=e.sequence,o=e.time,a=this._conversationMap.get(n);return a&&(t=a.type===T.CONV_TOPIC?this.getModule(Yn).isLastMessageRevoked({topicID:n.replace(T.CONV_GROUP,""),sequence:r}):a.isLastMessageRevoked({sequence:r,time:o})),Ge.l("".concat(this._n,".isLastMessageRevoked options:").concat(JSON.stringify(e)," ret:").concat(t)),t}},{key:"onMessageDeleted",value:function(e){var t=this;if(0!==e.length){var n=null;e.forEach((function(e){(n=t._messageListHandler.getLocalMessage(e.conversationID,e.ID))&&(n.isDeleted=!0),e!==n&&(e.isDeleted=!0)}));for(var r=e[0].conversationID,o=this._messageListHandler.getLocalMessageList(r),a={},i=o.length-1;i>=0;i--)if(!o[i].isDeleted){a=o[i];break}var s=this._conversationMap.get(r);if(s){var c=!1;s.lastMessage.lastSequence===a.sequence&&s.lastMessage.lastTime===a.time||(en(a)&&(a=void 0),s.updateLastMessage(a),s.type!==T.CONV_TOPIC&&(c=!0),Ge.l("".concat(this._n,".onMessageDeleted. update conversationID:").concat(r," with lastMessage:"),s.lastMessage)),r.startsWith(T.CONV_C2C)&&this.updateUnreadCount(r),c&&this.emitConversationUpdate(!0,!1)}}}},{key:"onMessageModified",value:function(e){var t=e.conversationType,n=e.from,r=e.to,o=e.time,a=e.sequence,i=e.elements,s=e.cloudCustomData,c=e.messageVersion,l=this.getMyUserID(),u="".concat(t).concat(r);r===l&&t===T.CONV_C2C&&(u="".concat(t).concat(n));var d=this._messageListHandler.onMessageModified(u,e),p=d.isUpdated,f=d.message;!0===p&&this.emitOuterEvent(S.MESSAGE_MODIFIED,[f]);var h=this._isTopicConversation(u);if(Ge.l("".concat(this._n,".onMessageModified isUpdated:").concat(p," isTopicMessage:").concat(h," from:").concat(n," to:").concat(r)),h)this.getModule(Yn).onMessageModified(e);else{var m=this._conversationMap.get(u);if(m){var v=m.lastMessage;Ge.d("".concat(this._n.onMessageModified," lastMessage:"),JSON.stringify(v),"options:",JSON.stringify(e)),v&&v.lastTime===o&&v.lastSequence===a&&v.version!==c&&(v.type=i[0].type,v.payload=i[0].content,v.messageForShow=Wt(v.type,v.payload,this.isIntl()),v.cloudCustomData=s,v.version=c,this.emitConversationUpdate(!0,!1))}}return f}},{key:"onNewGroupAtTips",value:function(e){var t=this,r=e.dataList,o=null;r.forEach((function(e){e.groupAtTips?o=e.groupAtTips:e.elements?o=n(n({},e.elements),{},{sync:!0}):e.groupAtType&&(o=n(n({},e),{},{sync:!0})),o.__random=e.random,o.__sequence=e.clientSequence,t._tmpGroupAtTipsList.push(o)})),Ge.d("".concat(this._n,".onNewGroupAtTips isReady:").concat(this._isReady),this._tmpGroupAtTipsList),this._isReady&&this._handleGroupAtTipsList()}},{key:"_handleGroupAtTipsList",value:function(){var e=this;if(0!==this._tmpGroupAtTipsList.length){var t=!1;this._tmpGroupAtTipsList.forEach((function(n){var r=n.groupID,o=n.from,a=n.topicID,i=void 0===a?void 0:a,s=n.sync,c=void 0!==s&&s;if(o!==e.getMyUserID())if(pt(i)){var l=e._conversationMap.get("".concat(T.CONV_GROUP).concat(r));l&&(l.updateGroupAtInfoList(n),t=!0)}else{var u=e._conversationMap.get("".concat(T.CONV_GROUP).concat(i));if(u){u.updateGroupAtInfoList(n);var d=e.getModule(Yn),p=u.groupAtInfoList;d.onConversationProxy({topicID:i,groupAtInfoList:p})}en(u)&&c&&(e.updateTopicConversation([{conversationID:"".concat(T.CONV_GROUP).concat(i),type:T.CONV_TOPIC}]),e._conversationMap.get("".concat(T.CONV_GROUP).concat(i)).updateGroupAtInfoList(n))}})),t&&this.emitConversationUpdate(!0,!1),this._tmpGroupAtTipsList.length=0}}},{key:"_getC2CPeerReadTime",value:function(e){var t=this,n=[];if(e.forEach((function(e){t._conversationMap.has(e.conversationID)||e.type!==T.CONV_C2C||n.push(e.conversationID.replace(T.CONV_C2C,""))})),n.length>0){Ge.d("".concat(this._n,"._getC2CPeerReadTime userIDList:").concat(n));var r=this.getModule(Bn);r&&r.getRemotePeerReadTime(n)}}},{key:"_getStorageConversationList",value:function(){return this.getModule(Wn).getItem("conversationMap")}},{key:"_setStorageConversationList",value:function(){var e=this.getLocalConversationList().filter((function(e){return e.type===T.CONV_C2C||e.type===T.CONV_GROUP&&e.lastMessage.type!==T.MSG_GRP_TIP})).slice(0,20).map((function(e){return{conversationID:e.conversationID,type:e.type,subType:e.subType,lastMessage:e.lastMessage,groupProfile:e.groupProfile,userProfile:e.userProfile}}));this.getModule(Wn).setItem("conversationMap",e)}},{key:"emitConversationUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalConversationList();if(t){var r=this.getModule(Fn);r&&r.updateGroupLastMessage(n)}e&&this.emitOuterEvent(S.CONVERSATION_LIST_UPDATED)}},{key:"getLocalConversationList",value:function(){return b(this._conversationMap.values()).filter((function(e){return e.type!==T.CONV_TOPIC}))}},{key:"getLocalConversation",value:function(e){return this._conversationMap.get(e)}},{key:"hasLocalConversation",value:function(e){return this._conversationMap.has(e)}},{key:"getLocalOldestMessage",value:function(e){return this._messageListHandler.getLocalOldestMessage(e)}},{key:"syncConversationList",value:function(){var e=this,t=new Ka("syncConversationList");return this._pagingStatus===an.NOT_START&&this._conversationMap.clear(),this._pagingGetConversationList().then((function(n){return e._pagingStatus=an.RESOLVED,e._diffAndDeleteConversation(),e.emitConversationUpdate(!0,!1),e._setStorageConversationList(),e._handleC2CPeerReadTime(),e._patchConversationProperties(),t.setMessage(e._conversationMap.size).setNetworkType(e.getNetworkType()).end(),n})).catch((function(n){return e._pagingStatus=an.REJECTED,t.setMessage(e._pagingTimeStamp),e.probeNetwork().then((function(e){var r=_(e,2),o=r[0],a=r[1];t.setError(n,o,a).end()})),vi(n)}))}},{key:"_diffAndDeleteConversation",value:function(){var e=this;if(this._isSyncCompleted()){var t=[];this._conversationMap.forEach((function(n,r){!e._pagingConvIDMap.has(r)&&e._convIDFromUnreadDBMap.has(r)&&(e._conversationMap.delete(r),t.push(r))})),Ge.l("".concat(this._n,"._diffAndDeleteConversation list:").concat(t))}}},{key:"_patchConversationProperties",value:function(){var e=this,t=Date.now(),n=this.checkAndPatchRemark(),r=this._messageRemindHandler.getC2CMessageRemindType(),o=this.getModule(Fn).getGroupList();Promise.all([n,r,o]).then((function(){var n=Date.now()-t;Ge.l("".concat(e._n,"._patchConversationProperties ok. cost ").concat(n," ms")),e.emitConversationUpdate(!0,!1),e.emitTotalUnreadMessageCountUpdate()}))}},{key:"_pagingGetConversationList",value:function(){var e=this,t="".concat(this._n,"._pagingGetConversationList");return Ge.l("".concat(t," timeStamp:").concat(this._pagingTimeStamp," startIndex:").concat(this._pagingStartIndex)+" pinnedTimeStamp:".concat(this._pagingPinnedTimeStamp," pinnedStartIndex:").concat(this._pagingPinnedStartIndex)),this._pagingStatus=an.PENDING,this.request({protocolName:Xr,requestData:{fromAccount:this.getMyUserID(),timeStamp:this._pagingTimeStamp,startIndex:this._pagingStartIndex,pinnedTimeStamp:this._pagingPinnedTimeStamp,pinnedStartIndex:this._pagingPinnedStartIndex,orderType:1}}).then((function(n){var r=n.data,o=r.completeFlag,a=r.conversations,i=void 0===a?[]:a,s=r.timeStamp,c=r.startIndex,l=r.pinnedTimeStamp,u=r.pinnedStartIndex,d=r.groupItem;if(Ge.l("".concat(t," ok. completeFlag:").concat(o," count:").concat(i.length," isReady:").concat(e._isReady)),e._convGroupHandler.onConvGroupListSynced(d),i.length>0){var p=e._getConversationOptions(i);e._pagingConvIDMap=new Map([].concat(b(e._pagingConvIDMap),b(p.map((function(e){return[e.conversationID,1]}))))),e._updateLocalConversationList({conversationOptionsList:p,isFromGetConversations:!0}),e.isLoggedIn()&&e.emitConversationUpdate()}if(!e._isReady){if(!e.isLoggedIn())return mi();e.triggerReady()}return e._pagingTimeStamp=s,e._pagingStartIndex=c,e._pagingPinnedTimeStamp=l,e._pagingPinnedStartIndex=u,1!==o?e._pagingGetConversationList():(e._handleGroupAtTipsList(),e._convGroupHandler.getRemoteConvGroupList(),mi())})).catch((function(n){throw e.isLoggedIn()&&(e._isReady||(Ge.w("".concat(t," failed. error:"),n),e.triggerReady())),n}))}},{key:"_updateLocalConversationList",value:function(e){var t,n=e.isFromGetConversations,r=e.isInstantMessage,o=Date.now();t=this._getTmpConversationListMapping(e),this._conversationMap=new Map(this._sortConversationList([].concat(b(t.toBeUpdatedConversationList),b(this._conversationMap)))),n||(this._updateUserOrGroupProfile(t.newConversationList),r&&this.emitTotalUnreadMessageCountUpdate()),Ge.d("".concat(this._n,"._updateLocalConversationList cost ").concat(Date.now()-o," ms"))}},{key:"_getTmpConversationListMapping",value:function(e){for(var t=e.conversationOptionsList,n=e.isFromGetConversations,r=e.isInstantMessage,o=e.isUnreadC2CMessage,a=void 0!==o&&o,i=e.updateUnreadCount,s=[],c=[],l=this.getModule(Fn),u=this.getModule(Gn),d=this.isIntl(),p=0,f=t.length;p<f;p++){var h=new Ri(t[p],d),m=h.conversationID;if(m!=="".concat(T.CONV_C2C,"@TLS#ERROR")&&m!=="".concat(T.CONV_C2C,"@TLS#NOT_FOUND"))if(this._conversationMap.has(m)){var v=this._conversationMap.get(m),g=["unreadCount","allowType","adminForbidType","payload","isPinned"];!1===r&&g.push("lastMessage");var _=t[p].lastMessage,b=!pt(_);b||t[p].type===T.CONV_TOPIC||this._onLastMessageNotExist(t[p]),pt(r)&&b&&null===v.lastMessage.payload&&(v.lastMessage.payload=_.payload),en(v.lastMessage.revoker)||(v.lastMessage.revoker=null),_t(v,h,g,[null,void 0,"",0,NaN]),!0===i&&v.updateUnreadCount({nextUnreadCount:h.unreadCount,isFromGetConversations:n,isUnreadC2CMessage:a}),r&&b&&(_.payload&&(v.lastMessage.payload=_.payload),v.type===T.CONV_GROUP&&(v.lastMessage.nameCard=_.nameCard,v.lastMessage.nick=_.nick)),b&&v.lastMessage.cloudCustomData!==_.cloudCustomData&&(v.lastMessage.cloudCustomData=_.cloudCustomData||""),this._conversationMap.delete(m),s.push([m,v])}else{if(h.type===T.CONV_GROUP&&l){var y=h.groupProfile.groupID,O=l.getLocalGroupProfile(y);O&&(h.groupProfile=O,!0===i&&h.updateUnreadCount({nextUnreadCount:0}))}else if(h.type===T.CONV_C2C){var M=m.replace(T.CONV_C2C,"");u&&u.isMyFriend(M)&&(h.remark=u.getFriendRemark(M))}c.push(h),s.push([m,h])}}var k=this.getModule(Yn);return s.forEach((function(e){if(e[1].type===T.CONV_TOPIC){var t=e[1],n=t.conversationID,r=t.unreadCount,o=t.groupAtInfoList;k.onConversationProxy({topicID:n.replace(T.CONV_GROUP,""),unreadCount:r,groupAtInfoList:en(o)?void 0:o})}})),{toBeUpdatedConversationList:s,newConversationList:c}}},{key:"_onLastMessageNotExist",value:function(e){new Ka("lastMessageNotExist").setMessage("".concat(JSON.stringify(e))).setNetworkType(this.getNetworkType()).end()}},{key:"_sortConversationList",value:function(e){var t=[],n=[],r=[],o=[];return e.forEach((function(e){!0===e[1].isPinned?en(e[1].lastMessage.lastTime)?n.push(e):t.push(e):en(e[1].lastMessage.lastTime)?o.push(e):r.push(e)})),t.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})).concat(n).concat(r.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime}))).concat(o)}},{key:"_sortConversationListAndEmitEvent",value:function(){this._conversationMap=new Map(this._sortConversationList(b(this._conversationMap))),this.emitConversationUpdate(!0,!1)}},{key:"_updateUserOrGroupProfile",value:function(e){var t=this;if(0!==e.length){var n=[],r=[],o=this.getModule(Vn),a=this.getModule(Fn);e.forEach((function(e){if(e.type===T.CONV_C2C)n.push(e.toAccount);else if(e.type===T.CONV_GROUP){var t=e.toAccount;a.hasLocalGroup(t)?e.groupProfile=a.getLocalGroupProfile(t):r.push(t)}})),Ge.l("".concat(this._n,"._updateUserOrGroupProfile c2cUserIDList:").concat(n," groupIDList:").concat(r)),n.length>0&&o.getUserProfile({userIDList:n}).then((function(e){var n=e.data;dt(n)?n.forEach((function(e){t._doUpdateUserProfile("C2C".concat(e.userID),e)})):t._doUpdateUserProfile("C2C".concat(n.userID),n)})),r.length>0&&a.getGroupProfileAdvance({groupIDList:r,responseFilter:{groupBaseInfoFilter:["Type","Name","FaceUrl"]}}).then((function(e){e.data.successGroupList.forEach((function(e){var n="GROUP".concat(e.groupID);if(t._conversationMap.has(n)){var r=t._conversationMap.get(n);_t(r.groupProfile,e,[],[null,void 0,"",0,NaN]),!r.subType&&e.type&&(r.subType=e.type)}}))}))}}},{key:"_doUpdateUserProfile",value:function(e,t){this.hasLocalConversation(e)&&(this.getLocalConversation(e).userProfile=t)}},{key:"_getConversationOptions",value:function(e){var t=this,r=[],o=e.filter((function(e){var t=e.type,n=e.userID;return 1===t&&"@TLS#NOT_FOUND"!==n&&"@TLS#ERROR"!==n||2===t})),a=this.getMyUserID(),i=o.map((function(e){if(pt(e.lastMsg)&&(e.lastMsg={elements:[]}),1===e.type){var o={userID:e.userID,nick:e.peerNick,avatar:e.peerAvatar};return r.push(o),{conversationID:"C2C".concat(e.userID),type:"C2C",lastMessage:{lastTime:e.time,lastSequence:e.sequence,fromAccount:e.lastC2CMsgFromAccount,messageForShow:e.messageShow,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:null,payload:e.lastMsg.elements[0]?t._amendLayersOverLimitProperty(e.lastMsg.elements[0].content):null,cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:8===e.lastMessageFlag,onlineOnlyFlag:!1,nick:"",nameCard:"",version:0,isPeerRead:e.lastC2CMsgFromAccount===a&&e.time<=e.c2cPeerReadTime,revoker:e.lastMsg.revokerInfo?e.lastMsg.revokerInfo.revoker:null},userProfile:new Ei(o),peerReadTime:e.c2cPeerReadTime,isPinned:1===e.isPinned,messageRemindType:"",customData:e.customMark||"",markList:$t(e.standardMark),conversationGroupList:t._convGroupHandler.getConvGroupListByID(e.contactGroupId)}}return{conversationID:"GROUP".concat(e.groupID),type:"GROUP",lastMessage:n(n({lastTime:e.time,lastSequence:e.sequence,fromAccount:e.msgGroupFromAccount,messageForShow:e.messageShow},t._patchTypeAndPayload(e)),{},{cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:2===e.lastMessageFlag,onlineOnlyFlag:!1,nick:e.senderNick||"",nameCard:e.senderNameCard||"",revoker:e.lastMsg.revokerInfo?e.lastMsg.revokerInfo.revoker:null}),groupProfile:new Ai({groupID:e.groupID,name:e.groupNick,avatar:e.groupImage}),unreadCount:e.unreadCount,peerReadTime:0,isPinned:1===e.isPinned,messageRemindType:"",version:0,customData:e.customMark||"",markList:$t(e.standardMark),conversationGroupList:t._convGroupHandler.getConvGroupListByID(e.contactGroupId)}}));return r.length>0&&this.getModule(Vn).onConversationsProfileUpdated(r),i}},{key:"_patchTypeAndPayload",value:function(e){var t=e.lastMsg,r=t.event,o=void 0===r?void 0:r,a=t.elements,i=void 0===a?[]:a,s=t.groupTips,c=void 0===s?{}:s;if(!pt(o)&&!en(c)){var l=new ui(c);l.setElement({type:T.MSG_GRP_TIP,content:n(n({},c.elements),{},{groupProfile:c.groupProfile})});var u=JSON.parse(JSON.stringify(l.payload));return l=null,{type:T.MSG_GRP_TIP,payload:u}}return{type:i[0]?i[0].type:null,payload:i[0]?this._amendLayersOverLimitProperty(i[0].content):null}}},{key:"_amendLayersOverLimitProperty",value:function(e){var t=e.layersOverLimit;return 0===t?e.layersOverLimit=!1:1===t&&(e.layersOverLimit=!0),e}},{key:"getLocalMessageList",value:function(e){return this._messageListHandler.getLocalMessageList(e)}},{key:"deleteLocalMessage",value:function(e){e instanceof ui&&this._messageListHandler.remove(e)}},{key:"onConversationDeleted",value:function(e){if(dt(e)){var t=e.map((function(e){var t=e.type,n=e.userID,r=e.groupID;return 1===t?"".concat(T.CONV_C2C).concat(n):2===t?"".concat(T.CONV_GROUP).concat(r):void 0}));Ge.l("".concat(this._n,".onConversationDeleted conversationIDList:").concat(t)),this.deleteLocalConversationList(t)}}},{key:"onConversationPinned",value:function(e){var t=this;if(dt(e)){var n=!1;e.forEach((function(e){var r,o=e.type,a=e.userID,i=e.groupID;1===o?r=t.getLocalConversation("".concat(T.CONV_C2C).concat(a)):2===o&&(r=t.getLocalConversation("".concat(T.CONV_GROUP).concat(i))),r&&(Ge.l("".concat(t._n,".onConversationPinned conversationID:").concat(r.conversationID," isPinned:").concat(r.isPinned)),r.isPinned||(r.isPinned=!0,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:"onConversationUnpinned",value:function(e){var t=this;if(dt(e)){var n=!1;e.forEach((function(e){var r,o=e.type,a=e.userID,i=e.groupID;1===o?r=t.getLocalConversation("".concat(T.CONV_C2C).concat(a)):2===o&&(r=t.getLocalConversation("".concat(T.CONV_GROUP).concat(i))),r&&(Ge.l("".concat(t._n,".onConversationUnpinned conversationID:").concat(r.conversationID," isPinned:").concat(r.isPinned)),r.isPinned&&(r.isPinned=!1,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:"getMessageList",value:function(e){var t=this,n=e.conversationID,r=e.nextReqMessageID,o=e.count,a="".concat(this._n,".getMessageList"),i=this.getLocalConversation(n),s="";if(i&&i.groupProfile&&(s=i.groupProfile.type),Et(s))return Ge.l("".concat(a," not available in avchatroom. conversationID:").concat(n)),mi({messageList:[],nextReqMessageID:"",isCompleted:!0});(pt(o)||o>15)&&(o=15),!r&&this._isNotInCommunity(n)&&(this._messageListHandler.removeByConversationID(n),this._completedMap.delete(n),this._roamingMessageSequenceMap.delete(n));var c=this._computeRemainingCount({conversationID:n,nextReqMessageID:r}),l=this._completedMap.has(n);if(Ge.l("".concat(a," conversationID:").concat(n," nextReqMessageID:").concat(r)+" remainingCount:".concat(c," count:").concat(o," isCompleted:").concat(l)),this._needGetHistory({conversationID:n,remainingCount:c,count:o}))return this.getHistoryMessages({conversationID:n,nextReqMessageID:r,count:20}).then((function(e){var r=e.nextReqID,o=e.storedMessageList,i=t._completedMap.has(n),s=o;c>0&&(s=t._messageListHandler.getLocalMessageList(n).slice(0,o.length+c));var l={nextReqMessageID:i?"":r,messageList:s,isCompleted:i};return Ge.l("".concat(a," ret.nextReqMessageID:").concat(l.nextReqMessageID," ret.isCompleted:").concat(l.isCompleted," ret.length:").concat(s.length)),di(l)}));this.modifyMessageList(n);var u=this._getMessageListFromMemory({conversationID:n,nextReqMessageID:r,count:o});return mi(u)}},{key:"_getMessageListFromMemory",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,r=e.count,o="".concat(this._n,"._getMessageListFromMemory"),a=this._messageListHandler.getLocalMessageList(t),i=a.length,s=0,c={isCompleted:!1,nextReqMessageID:"",messageList:[]};return n?(s=a.findIndex((function(e){return e.ID===n})))>r?(c.messageList=a.slice(s-r,s),c.nextReqMessageID=a[s-r].ID):(c.messageList=a.slice(0,s),c.isCompleted=!0):i>r?(s=i-r,c.messageList=a.slice(s,i),c.nextReqMessageID=a[s].ID):(c.messageList=a.slice(0,i),c.isCompleted=!0),Ge.l("".concat(o," conversationID:").concat(t)+" ret.nextReqMessageID:".concat(c.nextReqMessageID," ret.isCompleted:").concat(c.isCompleted," ret.length:").concat(c.messageList.length)),c}},{key:"getMessageListHopping",value:function(e){var t=e.conversationID,n=e.sequence,r=e.time,o=e.count,a=e.direction,i=void 0===a?0:a;if((pt(o)||o>15)&&(o=15),t.startsWith(T.CONV_C2C)){var s=this.getModule(Bn),c=t.replace(T.CONV_C2C,"");return s.getRoamingMessagesHopping({peerAccount:c,time:r,count:o,direction:i})}if(t.startsWith(T.CONV_GROUP)){var l=this.getModule(Fn),u=t.replace(T.CONV_GROUP,"");return l.getRoamingMessagesHopping({groupID:u,sequence:n,count:o,direction:i})}}},{key:"_computeRemainingCount",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,r=this._messageListHandler.getLocalMessageList(t),o=r.length;if(!n)return o;var a=0;return Lt(t)?a=r.findIndex((function(e){return e.ID===n})):At(t)&&(a=-1!==n.indexOf("-")?r.findIndex((function(e){return e.ID===n})):r.findIndex((function(e){return e.sequence===n}))),-1===a&&(a=0),a}},{key:"_getMessageListSize",value:function(e){return this._messageListHandler.getLocalMessageList(e).length}},{key:"_needGetHistory",value:function(e){var t=e.conversationID,n=e.remainingCount,r=e.count,o=this.getLocalConversation(t),a="";return o&&o.groupProfile&&(a=o.groupProfile.type),!Nt(t)&&!Et(a)&&!(At(t)&&this._isPagingGetGroupListCompleted()&&this._getLocalGroupCount()<=4e3&&!this._hasLocalGroup(t)&&!this._isTopicConversation(t))&&n<=r&&!this._completedMap.has(t)}},{key:"_isTopicConversation",value:function(e){var t=e.replace(T.CONV_GROUP,"");return Dt(t)}},{key:"getHistoryMessages",value:function(e){var t=e.conversationID,n=e.count;if(t===T.CONV_SYSTEM)return mi();var r=15;n>20&&(r=20);var o=null;if(Lt(t)){var a=this._roamingMessageKeyAndTimeMap.has(t);return(o=this.getModule(Bn))?o.getRoamingMessage({conversationID:t,peerAccount:t.replace(T.CONV_C2C,""),count:r,lastMessageTime:a?this._roamingMessageKeyAndTimeMap.get(t).lastMessageTime:0,messageKey:a?this._roamingMessageKeyAndTimeMap.get(t).messageKey:""}):vi({code:Aa.CANNOT_FIND_MODULE})}if(At(t)){if(!(o=this.getModule(Fn)))return vi({code:Aa.CANNOT_FIND_MODULE});var i=null;this._conversationMap.has(t)&&(i=this._conversationMap.get(t).lastMessage);var s=0;i&&(s=i.lastSequence);var c=this._roamingMessageSequenceMap.get(t);return o.getRoamingMessage({conversationID:t,groupID:t.replace(T.CONV_GROUP,""),count:r,sequence:c||s})}return mi()}},{key:"patchConversationLastMessage",value:function(e){var t=this.getLocalConversation(e);if(t){var n=t.lastMessage,r=n.messageForShow,o=n.payload;if(en(r)||en(o)){var a=this._messageListHandler.getLocalMessageList(e);if(0===a.length)return;var i=a[a.length-1];Ge.l("".concat(this._n,".patchConversationLastMessage conversationID:").concat(e," payload:"),i.payload),t.updateLastMessage(i)}}}},{key:"onRoamingMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=t.startsWith(T.CONV_C2C)?T.CONV_C2C:T.CONV_GROUP,a=null,i=[],s=[],c=0,l=e.length,u=null,d=o===T.CONV_GROUP,p=this.getModule(Jn),f=this.getFileDownloadProxy(),h=function(){c=d?e.length-1:0,l=d?0:e.length},m=function(){d?--c:++c},v=function(){return d?c>=l:c<l};for(h();v();m())if(d&&1===e[c].sequence&&r&&this.setCompleted(t),1!==e[c].isPlaceMessage)if((a=new ui(e[c])).to=e[c].to,o!==T.CONV_GROUP||pt(e[c].topicID)||(a.to=e[c].topicID),a.isSystemMessage=!!e[c].isSystemMessage,a.conversationType=o,4===e[c].event?u={type:T.MSG_GRP_TIP,content:n(n({},e[c].elements),{},{groupProfile:e[c].groupProfile})}:(e[c].elements=p.parseElements(e[c].elements,e[c].from),u=e[c].elements),d||a.setNickAndAvatar({nick:e[c].nick,avatar:e[c].avatar}),en(u)){var g=new Ka("emptyMessageBody");g.setMessage("from:".concat(a.from," to:").concat(a.to," sequence:").concat(a.sequence," event:").concat(e[c].event)),g.setNetworkType(this.getNetworkType()).setLevel("warning").end()}else a.setElement(u,f),a.reInitialize(this.getMyUserID()),i.push(a);return h=m=v=null,r?(this._messageListHandler.unshift(i,s),i=null,s):(s=null,i)}},{key:"findMessage",value:function(e){return this._messageListHandler.findMessage(e)}},{key:"_isNotInCommunity",value:function(e){var t=!1;if(e.startsWith(T.CONV_GROUP)&&this._isTopicConversation(e)){var n=qt(e.replace(T.CONV_GROUP,""));this.getModule(Fn).hasLocalGroup(n)||(t=!0)}return t}},{key:"deleteTopicRoamingMessageInfo",value:function(e){var t=this;jt({groupID:e})&&this._messageListHandler.getTopicConversationIDList(e).forEach((function(e){t._messageListHandler.removeByConversationID(e),t._completedMap.delete(e),t._roamingMessageSequenceMap.delete(e)}))}},{key:"deleteGroupRomaingMessageInfo",value:function(e){var t="".concat(T.CONV_GROUP).concat(e);this._messageListHandler.removeByConversationID(t),this._completedMap.delete(t),this._roamingMessageSequenceMap.delete(t)}},{key:"setMessageRead",value:function(e){var t=e.conversationID,n=this.getLocalConversation(t);if(Ge.l("".concat(this._n,".setMessageRead conversationID:").concat(t," unreadCount:").concat(n?n.unreadCount:0)),!n)return mi();if(n.type!==T.CONV_GROUP&&n.type!==T.CONV_TOPIC||en(n.groupAtInfoList)||this.deleteGroupAtTips(t),0===n.unreadCount)return mi();if(n.type===T.CONV_GROUP&&!this._hasLocalGroup(t))return 0!==n.unreadCount&&(n.unreadCount=0,this.emitConversationUpdate(!0,!1)),mi();var r=this._messageListHandler.getLocalLastMessage(t),o=n.lastMessage.lastTime;r&&o<r.time&&(o=r.time);var a=n.lastMessage.lastSequence;if(r&&a<r.sequence&&(a=r.sequence),n.type===T.CONV_TOPIC&&pt(r)){var i=this.getModule(Yn),s=t.replace(T.CONV_GROUP,""),c=qt(s),l=i.getLocalTopic(c,s);l&&(a=l.nextMessageSeq-1)}var u=null;switch(n.type){case T.CONV_C2C:return(u=this.getModule(Bn))?u.setMessageRead({conversationID:t,lastMessageTime:o}):vi({code:Aa.CANNOT_FIND_MODULE});case T.CONV_GROUP:case T.CONV_TOPIC:return(u=this.getModule(Fn))?u.setMessageRead({conversationID:t,lastMessageSeq:a}):vi({code:Aa.CANNOT_FIND_MODULE});case T.CONV_SYSTEM:return n.unreadCount=0,this.emitConversationUpdate(!0,!1),mi();default:return mi()}}},{key:"setAllMessageRead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n="setAllMessageRead",r="".concat(this._n,".").concat(n);t.scope||(t.scope=T.READ_ALL_MSG),Ge.l("".concat(r," options:"),t);var o=this._createSetAllMessageReadPack(t);if(0===o.readAllC2CMessage&&0===o.groupMessageReadInfoList.length)return mi();var a=new Ka(n);return this.request({protocolName:To,requestData:o}).then((function(n){var r=n.data,o=e._handleAllMessageRead(r);return a.setMessage("scope:".concat(t.scope," failureGroups:").concat(JSON.stringify(o))).setNetworkType(e.getNetworkType()).end(),mi()})).catch((function(t){return e.probeNetwork().then((function(e){var n=_(e,2),r=n[0],o=n[1];a.setError(t,r,o).end()})),Ge.w("".concat(r," failed. error:"),t),vi({code:t&&t.code?t.code:Aa.MESSAGE_UNREAD_ALL_FAIL,message:t&&t.message?t.message:void 0})}))}},{key:"setConversationCustomData",value:function(e){return this._convGroupHandler.setConvCustomData(e)}},{key:"markConversation",value:function(e){return this._convGroupHandler.markConversation(e)}},{key:"getConversationGroupList",value:function(){return this._convGroupHandler.getLocalConvGroupList()}},{key:"createConversationGroup",value:function(e){return this._convGroupHandler.createConvGroup(e)}},{key:"deleteConversationGroup",value:function(e){return this._convGroupHandler.deleteConvGroup(e)}},{key:"renameConversationGroup",value:function(e){return this._convGroupHandler.renameConvGroup(e)}},{key:"addConversationsToGroup",value:function(e){return this._convGroupHandler.addConvsToGroup(e)}},{key:"deleteConversationsFromGroup",value:function(e){return this._convGroupHandler.deleteConvsFromGroup(e)}},{key:"onConversationMarkUpdated",value:function(e){this._convGroupHandler.onConvMarkUpdated(e)}},{key:"onConversationGroupCreated",value:function(e){this._convGroupHandler.onConvGroupCreated(e)}},{key:"onConversationGroupDeleted",value:function(e){this._convGroupHandler.onConvGroupDeleted(e)}},{key:"onConversationGroupNameUpdated",value:function(e){this._convGroupHandler.onConvGroupNameUpdated(e)}},{key:"onConversationInGroupUpdated",value:function(e){this._convGroupHandler.onConvInGroupUpdated(e)}},{key:"onConversationAddedToOrDeletedFromGroup",value:function(e){this._convGroupHandler.onConvAddedToOrDeletedFromGroup(e)}},{key:"_getConversationLastMessageSequence",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastSequence;return t&&n<t.sequence&&(n=t.sequence),n}},{key:"_getConversationLastMessageTime",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastTime;return t&&n<t.time&&(n=t.time),n}},{key:"_createSetAllMessageReadPack",value:function(e){var t,n={readAllC2CMessage:0,groupMessageReadInfoList:[]},r=e.scope,o=w(this._conversationMap);try{for(o.s();!(t=o.n()).done;){var a=_(t.value,2)[1];if(a.unreadCount>0)if(a.type===T.CONV_C2C&&0===n.readAllC2CMessage){if(r===T.READ_ALL_MSG)n.readAllC2CMessage=1;else if(r===T.READ_ALL_C2C_MSG){n.readAllC2CMessage=1;break}}else if(a.type===T.CONV_GROUP&&(r===T.READ_ALL_GROUP_MSG||r===T.READ_ALL_MSG)){var i=this._getConversationLastMessageSequence(a);n.groupMessageReadInfoList.push({groupID:a.groupProfile.groupID,messageSequence:i})}}}catch(c){o.e(c)}finally{o.f()}return n}},{key:"onPushedAllMessageRead",value:function(e){this._handleAllMessageRead(e)}},{key:"_handleAllMessageRead",value:function(e){var t=e.groupMessageReadInfoList,n=e.readAllC2CMessage,r=this._parseGroupReadInfo(t);return this._updateAllConversationUnreadCount({readAllC2CMessage:n})>=1&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate()),r}},{key:"_parseGroupReadInfo",value:function(e){var t=[];if(e&&e.length)for(var n=0,r=e.length;n<r;n++){var o=e[n],a=o.groupID,i=o.sequence,s=o.retCode,c=o.lastMessageSeq;pt(s)?this._remoteGroupReadSequenceMap.set(a,c):(this._remoteGroupReadSequenceMap.set(a,i),0!==s&&t.push("".concat(a,"-").concat(i,"-").concat(s)))}return t}},{key:"_updateAllConversationUnreadCount",value:function(e){var t,n=e.readAllC2CMessage,r=0,o=w(this._conversationMap);try{for(o.s();!(t=o.n()).done;){var a=_(t.value,2),i=a[0],s=a[1];if(s.unreadCount>=1){if(1===n&&s.type===T.CONV_C2C){var c=this._getConversationLastMessageTime(s);this.updateIsReadAfterReadReport({conversationID:i,lastMessageTime:c})}else if(s.type===T.CONV_GROUP){var l=i.replace(T.CONV_GROUP,"");if(this._remoteGroupReadSequenceMap.has(l)){var u=this._remoteGroupReadSequenceMap.get(l),d=this._getConversationLastMessageSequence(s);this.updateIsReadAfterReadReport({conversationID:i,remoteReadSequence:u}),d>=u&&this._remoteGroupReadSequenceMap.delete(l)}}this.updateUnreadCount(i,!1)&&(r+=1)}}}catch(f){o.e(f)}finally{o.f()}return r}},{key:"isRemoteRead",value:function(e){var t=e.conversationID,n=e.sequence,r=t.replace(T.CONV_GROUP,""),o=!1;if(this._remoteGroupReadSequenceMap.has(r)){var a=this._remoteGroupReadSequenceMap.get(r);n<=a&&(o=!0,Ge.l("".concat(this._n,".isRemoteRead conversationID:").concat(t," messageSequence:").concat(n," remoteReadSequence:").concat(a))),n>=a+10&&this._remoteGroupReadSequenceMap.delete(r)}return o}},{key:"updateIsReadAfterReadReport",value:function(e){var t=e.conversationID,n=e.lastMessageSeq,r=e.lastMessageTime,o=this._messageListHandler.getLocalMessageList(t);if(0!==o.length)for(var a,i=o.length-1;i>=0;i--)if(a=o[i],!(r&&a.time>r||n&&a.sequence>n)){if("in"===a.flow&&a.isRead)break;a.setIsRead(!0)}}},{key:"updateUnreadCount",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!1,r=this.getLocalConversation(e),o=this._messageListHandler.getLocalMessageList(e);if(r){var a=r.unreadCount,i=o.filter((function(e){return!e.isRead&&!e._onlineOnlyFlag&&!e.isDeleted})).length;if(a!==i&&(r.unreadCount=i,n=!0,Ge.l("".concat(this._n,".updateUnreadCount from ").concat(a," to ").concat(i,", conversationID:").concat(e)),!0===t&&(this.emitConversationUpdate(!0,!1),this.emitTotalUnreadMessageCountUpdate())),n&&r.type===T.CONV_TOPIC){var s=r.unreadCount,c=this.getModule(Yn),l=e.replace(T.CONV_GROUP,"");c.onConversationProxy({topicID:l,unreadCount:s})}return n}}},{key:"clearGroupAtInfoList",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalConversation(e);if(n&&n.groupAtInfoList.length>0){if(n.clearGroupAtInfoList(),Ge.l("".concat(this._n,".clearGroupAtInfoList conversationID:").concat(e)),n.type===T.CONV_TOPIC){var r=n.groupAtInfoList,o=this.getModule(Yn),a=e.replace(T.CONV_GROUP,"");o.onConversationProxy({topicID:a,groupAtInfoList:r})}!0===t&&this.emitConversationUpdate(!0,!1)}}},{key:"updateReadReceiptInfo",value:function(e){var t=this,n=e.userID,r=void 0===n?void 0:n,o=e.groupID,a=void 0===o?void 0:o,i=e.readReceiptList;if(!en(i)){var s=[];if(pt(r)){if(!pt(a)){var c="".concat(T.CONV_GROUP).concat(a);i.forEach((function(e){var n=e.tinyID,r=e.clientTime,o=e.random,i=e.readCount,l=e.unreadCount,u="".concat(n,"-").concat(r,"-").concat(o),d=t._messageListHandler.getLocalMessage(c,u),p={groupID:a,messageID:u,readCount:0,unreadCount:0};d&&(st(i)&&(d.readReceiptInfo.readCount=i,p.readCount=i),st(l)&&(d.readReceiptInfo.unreadCount=l,p.unreadCount=l),s.push(p))}))}}else{var l="".concat(T.CONV_C2C).concat(r);i.forEach((function(e){var n=e.tinyID,o=e.clientTime,a=e.random,i="".concat(n,"-").concat(o,"-").concat(a),c=t._messageListHandler.getLocalMessage(l,i);if(c){c.readReceiptInfo.isPeerRead=!0;var u={userID:r,messageID:i,isPeerRead:!0};s.push(u)}}))}s.length>0&&this.emitOuterEvent(S.MESSAGE_READ_RECEIPT_RECEIVED,s)}}},{key:"recomputeGroupUnreadCount",value:function(e){var t=e.conversationID,n=e.count,r=this.getLocalConversation(t);if(r){var o=r.unreadCount,a=o-n;a<0&&(a=0),r.unreadCount=a,Ge.l("".concat(this._n,".recomputeGroupUnreadCount from ").concat(o," to ").concat(a,", conversationID:").concat(t))}}},{key:"updateIsRead",value:function(e){var t=this.getLocalConversation(e),n=this.getLocalMessageList(e);if(t&&0!==n.length&&!Nt(t.type)){for(var r=[],o=0,a=n.length;o<a;o++)"in"!==n[o].flow?"out"!==n[o].flow||n[o].isRead||n[o].setIsRead(!0):r.push(n[o]);var i=0;if(t.type===T.CONV_C2C){var s=r.slice(-t.unreadCount).filter((function(e){return e.isRevoked})).length;i=r.length-t.unreadCount-s}else i=r.length-t.unreadCount;for(var c=0;c<i&&!r[c].isRead;c++)r[c].setIsRead(!0)}}},{key:"deleteGroupAtTips",value:function(e){var t=this,n="".concat(this._n,".deleteGroupAtTips");Ge.l("".concat(n));var r=this._conversationMap.get(e);if(!r)return Promise.resolve();var o=r.groupAtInfoList;if(0===o.length)return Promise.resolve();var a=void 0;e.startsWith(T.CONV_GROUP)&&(a=e.replace(T.CONV_GROUP,""));var i=b(o);if((jt({groupID:a})||Dt(a))&&0===(i=o.filter((function(e){return!e.atTypeArray.includes(T.CONV_AT_ALL)}))).length)return this.clearGroupAtInfoList(e,!1),Promise.resolve();var s=this.getMyUserID();return this.request({protocolName:no,requestData:{messageListToDelete:i.map((function(e){return{from:e.from,to:s,messageSeq:e.__sequence,messageRandom:e.__random,groupID:pt(e.topicID)?e.groupID:e.topicID}}))}}).then((function(){return Ge.l("".concat(n," ok. count:").concat(o.length)),t.clearGroupAtInfoList(e,!1),Promise.resolve()})).catch((function(e){return Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"appendToMessageList",value:function(e){this._messageListHandler.pushIn(e)}},{key:"setMessageRandom",value:function(e){this.singlyLinkedList.set(e.random)}},{key:"deleteMessageRandom",value:function(e){this.singlyLinkedList.delete(e.random)}},{key:"pushIntoMessageList",value:function(e,t,n){return!(!this._messageListHandler.pushIn(t,n)||this._isMessageFromCurrentInstance(t)&&!n)&&(e.push(t),!0)}},{key:"_isMessageFromCurrentInstance",value:function(e){return this.singlyLinkedList.has(e.random)}},{key:"revoke",value:function(e,t,n){return this._messageListHandler.revoke(e,t,n)}},{key:"getPeerReadTime",value:function(e){return this._peerReadTimeMap.get(e)}},{key:"recordPeerReadTime",value:function(e,t){this._peerReadTimeMap.has(e)?this._peerReadTimeMap.get(e)<t&&this._peerReadTimeMap.set(e,t):this._peerReadTimeMap.set(e,t)}},{key:"updateMessageIsPeerReadProperty",value:function(e,t){if(e.startsWith(T.CONV_C2C)&&t>0){var n=this._messageListHandler.updateMessageIsPeerReadProperty(e,t);if(n.length>0&&this.emitOuterEvent(S.MESSAGE_READ_BY_PEER,n),this._conversationMap.has(e)){var r=this._conversationMap.get(e).lastMessage;en(r)||r.fromAccount===this.getMyUserID()&&r.lastTime<=t&&!r.isPeerRead&&(r.isPeerRead=!0,this.emitConversationUpdate(!0,!1))}}}},{key:"updateMessageIsModifiedProperty",value:function(e){this._messageListHandler.updateMessageIsModifiedProperty(e)}},{key:"setCompleted",value:function(e){Ge.l("".concat(this._n,".setCompleted. conversationID:").concat(e)),this._completedMap.set(e,!0)}},{key:"updateRoamingMessageKeyAndTime",value:function(e,t,n){this._roamingMessageKeyAndTimeMap.set(e,{messageKey:t,lastMessageTime:n})}},{key:"updateRoamingMessageSequence",value:function(e,t){this._roamingMessageSequenceMap.set(e,t)}},{key:"getConversationList",value:function(e){var t=this,n="getConversationList",r="".concat(this._n,".").concat(n),o="pagingStatus:".concat(this._pagingStatus,", local conversation count:").concat(this._conversationMap.size,", options:").concat(e);if(Ge.l("".concat(r,". ").concat(o)),this._pagingStatus===an.REJECTED){var a=new Ka(n);return a.setMessage(o),this.syncConversationList().then((function(){a.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return di({conversationList:n,isSyncCompleted:t._isSyncCompleted()})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}if(0===this._conversationMap.size){var i=new Ka(n);return i.setMessage(o),this.syncConversationList().then((function(){i.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return di({conversationList:n,isSyncCompleted:t._isSyncCompleted()})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}var s=this._getConversationList(e);return Ge.l("".concat(r,". returned conversation count:").concat(s.length)),mi({conversationList:s,isSyncCompleted:this._isSyncCompleted()})}},{key:"_getConversationList",value:function(e){if(pt(e))return this.getLocalConversationList();if(dt(e))return 0===e.length?[]:this.getLocalConversationList().filter((function(t){return e.includes(t.conversationID)}));if(ut(e)){var t=e.type,n=e.markType,r=e.groupName;return this.getLocalConversationList().filter((function(e){return(t!==T.CONV_C2C&&t!==T.CONV_GROUP||e.type===t)&&(!ct(r)||e.conversationGroupList.includes(r))&&(!st(n)||e.markList.includes(n))}))}return[]}},{key:"_handleC2CPeerReadTime",value:function(){var e,t=w(this._conversationMap);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2),r=n[0],o=n[1];o.type===T.CONV_C2C&&(Ge.d("".concat(this._n,"._handleC2CPeerReadTime conversationID:").concat(r," peerReadTime:").concat(o.peerReadTime)),this.recordPeerReadTime(r,o.peerReadTime))}}catch(i){t.e(i)}finally{t.f()}}},{key:"_isPagingGetGroupListCompleted",value:function(){return this.getModule(Fn).isPagingGetCompleted()}},{key:"_getLocalGroupCount",value:function(){return this.getModule(Fn).getLocalGroupList().length}},{key:"_hasLocalGroup",value:function(e){return this.getModule(Fn).hasLocalGroup(e.replace(T.CONV_GROUP,""))}},{key:"getConversationProfile",value:function(e){var t,n=this;if((t=this._conversationMap.has(e)?this._conversationMap.get(e):new Ri({conversationID:e,type:e.slice(0,3)===T.CONV_C2C?T.CONV_C2C:T.CONV_GROUP},this.isIntl()))._isInfoCompleted||t.type===T.CONV_SYSTEM)return mi({conversation:t});if(At(e)&&!this._hasLocalGroup(e))return mi({conversation:t});var r="".concat(this._n,".").concat("getConversationProfile"),o=new Ka("getConversationProfile");return Ge.l("".concat(r,". conversationID:").concat(e," remark:").concat(t.remark," lastMessage:"),t.lastMessage),this._updateUserOrGroupProfileCompletely(t).then((function(a){o.setNetworkType(n.getNetworkType()).setMessage("conversationID:".concat(e," unreadCount:").concat(a.data.conversation.unreadCount)).end();var i=n.getModule(Gn);if(i&&t.type===T.CONV_C2C){var s=e.replace(T.CONV_C2C,"");if(i.isMyFriend(s)){var c=i.getFriendRemark(s);t.remark!==c&&(t.remark=c,Ge.l("".concat(r,". conversationID:").concat(e," patch remark:").concat(t.remark)))}}return Ge.l("".concat(r," ok. conversationID:").concat(e)),a})).catch((function(t){return n.probeNetwork().then((function(n){var r=_(n,2),a=r[0],i=r[1];o.setError(t,a,i).setMessage("conversationID:".concat(e)).end()})),Ge.e("".concat(r," failed. error:"),t),vi(t)}))}},{key:"_updateUserOrGroupProfileCompletely",value:function(e){var t=this;return e.type===T.CONV_C2C?this.getModule(Vn).getUserProfile({userIDList:[e.toAccount]}).then((function(n){var r=n.data;return 0===r.length?vi(new pi({code:Aa.USER_OR_GROUP_NOT_FOUND})):(e.userProfile=r[0],e._isInfoCompleted=!0,t._unshiftConversation(e),mi({conversation:e}))})):this.getModule(Fn).getGroupProfile({groupID:e.toAccount}).then((function(n){return e.groupProfile=n.data.group,e._isInfoCompleted=!0,t._unshiftConversation(e),mi({conversation:e})}))}},{key:"_unshiftConversation",value:function(e){e instanceof Ri&&!this._conversationMap.has(e.conversationID)&&(this._conversationMap=new Map([[e.conversationID,e]].concat(b(this._conversationMap))),this._setStorageConversationList(),this.emitConversationUpdate(!0,!1))}},{key:"_onProfileUpdated",value:function(e){var t=this;e.data.forEach((function(e){var n=e.userID;if(n===t.getMyUserID())t._onMyProfileModified({latestNick:e.nick,latestAvatar:e.avatar});else{var r=t._conversationMap.get("".concat(T.CONV_C2C).concat(n));r&&(r.userProfile=e)}}))}},{key:"_isSyncCompleted",value:function(){return this._pagingStatus===an.RESOLVED}},{key:"_errorLog",value:function(e,t,n,r){var o=new Error("Params validate failed."),a="".concat(this.getErrorMessage("API_REFER")).concat(e);throw Ge.w("[".concat(e,"] | ").concat(t," | ").concat(this.getErrorMessage(n,r),", ").concat(a)),Ge.e("[".concat(e,"] Invalid ").concat(t,": type check failed for ").concat(t,".")),o}},{key:"_isValidConversationID",value:function(e){return Lt(e)||At(e)||Nt(e)}},{key:"deleteConversation",value:function(e){var t=this,n="deleteConversation";return ct(e)||lt(e)||this._errorLog(n,"options","StringOrObjectRequiredLog"),ct(e)?(this._isValidConversationID(e)||this._errorLog(n,"options","InvalidConversationID",e),Ge.l("".concat(this._n,".").concat(n," conversationID:").concat(e)),this.deleteConversationList({conversationIDList:[e],flag:1})):(dt(e.conversationIDList)||this._errorLog(n,"conversationIDList","ArrayRequiredLog"),0===e.conversationIDList.length&&this._errorLog(n,"conversationIDList","NonEmptyArrayLog"),e.conversationIDList.forEach((function(e){t._isValidConversationID(e)||t._errorLog(n,"conversationIDList","InvalidConversationID",e)})),"clearHistoryMessage"in e&&"boolean"!=typeof e.clearHistoryMessage&&this._errorLog(n,"clearHistoryMessage","BooleanRequiredLog"),e.conversationIDList.length>100&&(e.conversationIDList=e.conversationIDList.slice(0,100)),this.deleteConversationList(e))}},{key:"deleteConversationList",value:function(e){var t=this,n=e.conversationIDList,r=void 0===n?[]:n,o=e.clearHistoryMessage,a=void 0===o||o,i=e.flag,s=void 0===i?0:i,c="".concat(this._n,".").concat("deleteConversationList");Ge.l("".concat(c," conversationIDList.length:").concat(r.length," clearHistoryMessage:").concat(a));var l=new Ka("deleteConversationList");return l.setMessage("conversationIDList:".concat(r)),Promise.all([this.rmLocalOnlyConversationList(r),this.rmLocalAndRemoteConversationList(r,a)]).then((function(e){l.setNetworkType(t.getNetworkType()).end();var n=[].concat(b(e[0]),b(e[1]));return 0===n.length?vi(new pi({code:Aa.CONVERSATION_NOT_FOUND})):(Ge.l("".concat(c," ok")),mi(1===s?{conversationID:n[0]}:{conversationIDList:n}))})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),Ge.e("".concat(c," failed. error:"),e),vi(e)}))}},{key:"rmLocalOnlyConversationList",value:function(e){var t=this;return e.filter((function(e){if(!t._conversationMap.has(e))return!1;var n=t.getLocalConversation(e).type;return n!==T.CONV_GROUP||t._hasLocalGroup(e)?n===T.CONV_SYSTEM&&(t.getModule(Fn).deleteGroupSystemNotice({messageList:t._messageListHandler.getLocalMessageList(e)}),t.deleteLocalConversation(e),!0):(t.deleteLocalConversation(e),!0)}))}},{key:"rmLocalAndRemoteConversationList",value:function(e,t){var n=this,r={fromAccount:this.getMyUserID(),conversationList:[],clearHistoryMessage:t?1:0};return e.forEach((function(e){if(n._conversationMap.has(e)){var t=n.getLocalConversation(e).type;t===T.CONV_C2C?r.conversationList.push({toAccount:e.replace(t,""),type:1}):t===T.CONV_GROUP&&n._hasLocalGroup(e)&&r.conversationList.push({toGroupID:e.replace(t,""),type:2})}})),0===r.conversationList.length?[]:this.request({protocolName:Zr,requestData:r}).then((function(e){var t=[];return e.data.resultList.length>0&&e.data.resultList.map((function(e){if(0===e.code){var n="".concat(1===e.type?T.CONV_C2C:T.CONV_GROUP).concat(e.to);t.push(n)}})),n.deleteLocalConversationList(t),t}))}},{key:"clearHistoryMessage",value:function(e){var t=this,n={fromAccount:this.getMyUserID(),toAccount:void 0,type:void 0,toGroupID:void 0};if(!this._conversationMap.has(e))return vi({code:Aa.CONVERSATION_NOT_FOUND});var r=this._conversationMap.get(e).type;if(r===T.CONV_C2C)n.type=1,n.toAccount=e.replace(T.CONV_C2C,"");else{if(r!==T.CONV_GROUP)return r===T.CONV_SYSTEM?(this.getModule(Fn).deleteGroupSystemNotice({messageList:this._messageListHandler.getLocalMessageList(e)}),mi({conversationID:e})):vi({code:Aa.CONVERSATION_UN_RECORDED_TYPE});n.type=2,n.toGroupID=e.replace(T.CONV_GROUP,"")}var o="".concat(this._n,".").concat("clearHistoryMessage"),a=new Ka("clearHistoryMessage");return a.setMessage("conversationID:".concat(e)),Ge.l("".concat(o,". conversationID:").concat(e)),this.setMessageRead({conversationID:e}).then((function(){return t.request({protocolName:eo,requestData:n})})).then((function(){a.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(o," ok")),t._messageListHandler.removeByConversationID(e),t.setCompleted(e);var n=t.getLocalConversation(e);return n&&(n.updateLastMessage(),t._sortConversationListAndEmitEvent()),mi({conversationID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.e("".concat(o," failed. error:"),e),vi(e)}))}},{key:"pinConversation",value:function(e){var t=this,n=e.conversationID,r=e.isPinned;if(!this._conversationMap.has(n))return vi({code:Aa.CONVERSATION_NOT_FOUND});var o=this.getLocalConversation(n);if(o.isPinned===r)return mi({conversationID:n});var a="".concat(this._n,".").concat("pinConversation"),i=new Ka("pinConversation");i.setMessage("conversationID:".concat(n," isPinned:").concat(r)),Ge.l("".concat(a,". conversationID:").concat(n," isPinned:").concat(r));var s=null;return Lt(n)?s={type:1,toAccount:n.replace(T.CONV_C2C,"")}:At(n)&&(s={type:2,groupID:n.replace(T.CONV_GROUP,"")}),this.request({protocolName:to,requestData:{fromAccount:this.getMyUserID(),operationType:!0===r?1:2,itemList:[s]}}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(a," ok")),o.isPinned!==r&&(o.isPinned=r,t._sortConversationListAndEmitEvent()),di({conversationID:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(a," failed. error:"),e),vi(e)}))}},{key:"setMessageRemindType",value:function(e){return this._messageRemindHandler.set(e)}},{key:"patchMessageRemindType",value:function(e){var t=e.ID,n=e.isC2CConversation,r=e.messageRemindType,o=!1,a=this.getLocalConversation(n?"".concat(T.CONV_C2C).concat(t):"".concat(T.CONV_GROUP).concat(t));return a&&a.messageRemindType!==r&&(a.messageRemindType=r,o=!0),Ge.d("".concat(this._n,".patchMessageRemindType options:"),e,"ret:".concat(o)),o}},{key:"onC2CMessageRemindTypeSynced",value:function(e){var t=this,n="".concat(this._n,".onC2CMessageRemindTypeSynced");Ge.d(n,e),e.dataList.forEach((function(e){if(!en(e.muteNotificationsSync)){var r,o=e.muteNotificationsSync,a=o.to,i=o.updateSequence,s=o.muteFlag;t._messageRemindHandler.setUpdateSequence(i),0===s?r=T.MSG_REMIND_ACPT_AND_NOTE:1===s?r=T.MSG_REMIND_DISCARD:2===s&&(r=T.MSG_REMIND_ACPT_NOT_NOTE);var c=0;t.patchMessageRemindType({ID:a,isC2CConversation:!0,messageRemindType:r})&&(c+=1),Ge.l("".concat(n," updateCount:").concat(c)),c>=1&&t.emitConversationUpdate(!0,!1)}}))}},{key:"onGroupMessageRemindTypeSynced",value:function(e){Ge.d("".concat(this._n,".onGroupMessageRemindTypeSynced options:"),e),this._messageRemindHandler.onGroupMessageRemindTypeUpdated(e)}},{key:"deleteLocalConversation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this._conversationMap.has(e);if(Ge.d("".concat(this._n,".deleteLocalConversation conversationID:").concat(e," has:").concat(n)),n&&(this._conversationMap.delete(e),this._roamingMessageKeyAndTimeMap.has(e)&&this._roamingMessageKeyAndTimeMap.delete(e),this._roamingMessageSequenceMap.has(e)&&this._roamingMessageSequenceMap.delete(e),this._setStorageConversationList(),this._messageListHandler.removeByConversationID(e),this._completedMap.delete(e),t)){var r=!this._isTopicConversation(e);this.emitConversationUpdate(r,!1)}}},{key:"deleteLocalConversationList",value:function(e){var t=this,n=0,r=!1;e.forEach((function(e){t._conversationMap.has(e)&&(n+=t._conversationMap.get(e).unreadCount||0,t.deleteLocalConversation(e,!1),r=!0)})),Ge.l("".concat(this._n,".deleteLocalConversationList conversationIDList.length:").concat(e.length," isConvIDExisted:").concat(r)),r&&(this.emitConversationUpdate(!0,!1),n>0&&this.emitTotalUnreadMessageCountUpdate())}},{key:"isMessageSentByCurrentInstance",value:function(e){return!(!this._messageListHandler.hasLocalMessage(e.conversationID,e.ID)&&!this.singlyLinkedList.has(e.random))}},{key:"modifyMessageList",value:function(e){if(e.startsWith(T.CONV_C2C)&&this._conversationMap.has(e)){var t=this._conversationMap.get(e),n=Date.now();this._messageListHandler.modifyMessageSentByPeer({conversationID:e,latestNick:t.userProfile.nick,latestAvatar:t.userProfile.avatar});var r=this.getModule(Vn).getNickAndAvatarByUserID(this.getMyUserID());this._messageListHandler.modifyMessageSentByMe({conversationID:e,latestNick:r.nick,latestAvatar:r.avatar}),Ge.l("".concat(this._n,".modifyMessageList conversationID:").concat(e," cost ").concat(Date.now()-n," ms"))}}},{key:"updateUserProfileSpecifiedKey",value:function(e){Ge.l("".concat(this._n,".updateUserProfileSpecifiedKey options:"),e);var t=e.conversationID,n=e.nick,r=e.avatar;if(this._conversationMap.has(t)){var o=this._conversationMap.get(t).userProfile;ct(n)&&o.nick!==n&&(o.nick=n),ct(r)&&o.avatar!==r&&(o.avatar=r),this.emitConversationUpdate(!0,!1)}}},{key:"_onMyProfileModified",value:function(e){var t=this,r=this.getLocalConversationList(),o=Date.now();r.forEach((function(r){t.modifyMessageSentByMe(n({conversationID:r.conversationID},e))})),Ge.l("".concat(this._n,"._onMyProfileModified. modify all messages sent by me, cost ").concat(Date.now()-o," ms"))}},{key:"modifyMessageSentByMe",value:function(e){this._messageListHandler.modifyMessageSentByMe(e)}},{key:"getLatestMessageSentByMe",value:function(e){return this._messageListHandler.getLatestMessageSentByMe(e)}},{key:"modifyMessageSentByPeer",value:function(e){this._messageListHandler.modifyMessageSentByPeer(e)}},{key:"getLatestMessageSentByPeer",value:function(e){return this._messageListHandler.getLatestMessageSentByPeer(e)}},{key:"pushIntoNoticeResult",value:function(e,t){return!(!this._messageListHandler.pushIn(t)||this.singlyLinkedList.has(t.random))&&(e.push(t),!0)}},{key:"getLocalLastMessage",value:function(e){return this._messageListHandler.getLocalLastMessage(e)}},{key:"checkAndPatchRemark",value:function(){var e=Promise.resolve();if(0===this._conversationMap.size)return e;var t=this.getModule(Gn);if(!t)return e;var n=b(this._conversationMap.values()).filter((function(e){return e.type===T.CONV_C2C}));if(0===n.length)return e;var r=0;return n.forEach((function(e){var n=e.conversationID.replace(T.CONV_C2C,"");if(t.isMyFriend(n)){var o=t.getFriendRemark(n);e.remark!==o&&(e.remark=o,r+=1)}})),Ge.l("".concat(this._n,".checkAndPatchRemark. c2c conversation count:").concat(n.length,", patched count:").concat(r)),e}},{key:"updateTopicConversation",value:function(e){this._updateLocalConversationList({conversationOptionsList:e,isFromGetConversations:!0})}},{key:"sendReadReceipt",value:function(e){var t=e[0],n=null;return t.conversationType===T.CONV_C2C?n=this._m.getModule(Bn):t.conversationType===T.CONV_GROUP&&(n=this._m.getModule(Fn)),n?n.sendReadReceipt(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"getReadReceiptList",value:function(e){var t=e[0],n=null;return t.conversationType===T.CONV_C2C?n=this._m.getModule(Bn):t.conversationType===T.CONV_GROUP&&(n=this._m.getModule(Fn)),n?n.getReadReceiptList(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"getLastMessageTime",value:function(e){var t=this.getLocalConversation(e);return t?t.lastMessage.lastTime:0}},{key:"getTotalUnreadMessageCount",value:function(){var e=this.getLocalConversationList(),t=0;return e.forEach((function(e){e.type!==T.CONV_SYSTEM&&(""!==e.messageRemindType&&e.messageRemindType!==T.MSG_REMIND_ACPT_AND_NOTE||(t+=e.unreadCount))})),t}},{key:"emitTotalUnreadMessageCountUpdate",value:function(){var e=this.getTotalUnreadMessageCount();this._convTotalUnreadCount!==e&&(Ge.l("".concat(this._n,".emitTotalUnreadMessageCountUpdate from ").concat(this._convTotalUnreadCount," to ").concat(e)),this._convTotalUnreadCount=e,this.emitOuterEvent(S.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED))}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._pagingStatus=an.NOT_START,this._messageListHandler.reset(),this._messageRemindHandler.reset(),this._roamingMessageKeyAndTimeMap.clear(),this._roamingMessageSequenceMap.clear(),this.singlyLinkedList.reset(),this._peerReadTimeMap.clear(),this._completedMap.clear(),this._conversationMap.clear(),this._pagingTimeStamp=0,this._pagingStartIndex=0,this._pagingPinnedTimeStamp=0,this._pagingPinnedStartIndex=0,this._remoteGroupReadSequenceMap.clear(),this._convTotalUnreadCount=0,this.resetReady()}}]),r}(fr),Vi=function(){function e(t){o(this,e),this._groupModule=t,this._n="GroupTipsHandler",this._cachedGroupTipsMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,this._getTopicPendingMap=new Map}return i(e,[{key:"onCheckTimer",value:function(e){e%1==0&&this._cachedGroupTipsMap.size>0&&this._checkCachedGroupTips()}},{key:"_checkCachedGroupTips",value:function(){var e=this;this._cachedGroupTipsMap.forEach((function(t,n){var r=e._checkCountMap.get(n),o=e._groupModule.hasLocalGroup(n);Ge.l("".concat(e._n,"._checkCachedGroupTips groupID:").concat(n," hasLocalGroup:").concat(o," checkCount:").concat(r)),o?(e._notifyCachedGroupTips(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):r>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupTips(n),e._checkCountMap.delete(n)):(r++,e._checkCountMap.set(n,r))}))}},{key:"onNewGroupTips",value:function(e){Ge.d("".concat(this._n,".onReceiveGroupTips count:").concat(e.dataList.length));var t=this.newGroupTipsStoredAndSummary(e),n=t.eventDataList,r=t.result,o=t.AVChatRoomMessageList;o.length>0&&this._groupModule.onAVChatRoomMessage(o),n.length>0&&(this._groupModule.updateNextMessageSeq(n),this._groupModule.getModule(zn).onNewMessage({conversationOptionsList:n,isInstantMessage:!0})),r.length>0&&(this._groupModule.emitOuterEvent(S.MESSAGE_RECEIVED,r),this.handleMessageList(r))}},{key:"newGroupTipsStoredAndSummary",value:function(e){for(var t=this,r=e.event,o=e.dataList,a=null,i=[],s=[],c={},l=[],u=function(e,u){var d=Tt(o[e]);if(6===r){if(t._groupModule.isGroupAttributesUpdatedNotice(d))return"continue";if(t._groupModule.isGroupCountersNotice(d))return"continue"}var p=d.groupProfile,f=p.groupID,h=p.communityType,m=void 0===h?0:h,v=p.topicID,g=void 0===v?void 0:v,_=p.invisible,b=void 0,y=t._groupModule.isMessageFromTopic(m,g);if(y){b=T.CONV_TOPIC,d.to=g;var O=t._groupModule.getModule(Yn);O.hasLocalTopic(f,g)||t._getTopicPendingMap.has(g)||(t._getTopicPendingMap.set(g,1),O.getTopicList({groupID:f,topicIDList:[g]}).finally((function(){t._getTopicPendingMap.delete(g)})))}var M=t._groupModule.hasLocalGroup(f);if(!M&&t._groupModule.isUnjoinedAVChatRoom(f))return"continue";if(!M&&!y)return t._cacheGroupTipsAndProbe({groupID:f,event:r,item:d}),"continue";if(t._groupModule.isMessageFromOrToAVChatroom(f))return d.event=r,l.push(d),"continue";if(d.currentUser=t._groupModule.getMyUserID(),d.conversationType=T.CONV_GROUP,(a=new ui(d)).setElement({type:T.MSG_GRP_TIP,content:n(n({},d.elements),{},{groupProfile:d.groupProfile})}),a.isSystemMessage=!1,1===_)return t._qualityStat(a),"continue";var k=t._groupModule.getModule(zn),C=a,w=C.conversationID,S=C.sequence;if(6===r)a._onlineOnlyFlag=!0,s.push(a);else if(!k.pushIntoNoticeResult(s,a))return"continue";if(t._groupModule.isMessageFromCommunityOfTopic(m,g))return"continue";if(6===r&&k.getLocalConversation(w))return"continue";6!==r&&t._qualityStat(a);var I=k.isRemoteRead({conversationID:w,sequence:S});if(pt(c[w])){var E=0;"in"===a.flow&&(a._isExcludedFromUnreadCount||a._onlineOnlyFlag||I||(E=1)),c[w]=i.push({conversationID:w,unreadCount:E,type:pt(b)?a.conversationType:b,subType:a.conversationSubType,lastMessage:a._isExcludedFromLastMessage?"":a})-1}else{var j=c[w];i[j].type=a.conversationType,i[j].subType=a.conversationSubType,i[j].lastMessage=a._isExcludedFromLastMessage?"":a,"in"===a.flow&&(a._isExcludedFromUnreadCount||a._onlineOnlyFlag||I||i[j].unreadCount++)}},d=0,p=o.length;d<p;d++)u(d);return{eventDataList:i,result:s,AVChatRoomMessageList:l}}},{key:"_qualityStat",value:function(e){this._groupModule.getModule(ir).addMessageSequence({key:Fa,message:e})}},{key:"handleMessageList",value:function(e){var t=this;e.forEach((function(e){switch(e.payload.operationType){case 1:t._onNewMemberComeIn(e);break;case 2:t._onMemberQuit(e);break;case 3:t._onMemberKickedOut(e);break;case 4:t._onMemberSetAdmin(e);break;case 5:t._onMemberCancelledAdmin(e);break;case 6:t._onGroupProfileModified(e);break;case 7:t._onMemberInfoModified(e);break;case 8:t._onTopicProfileUpdated(e);break;default:Ge.w("".concat(t._n,".handleMessageList unknown operationType:").concat(e.payload.operationType))}}))}},{key:"_onNewMemberComeIn",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(r);o&&st(n)&&o.memberCount!==n&&(o.memberCount=n,this._updateConversationGroupProfile(o))}},{key:"_onMemberQuit",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(r);o&&st(n)&&o.memberCount!==n&&(o.memberCount=n,this._updateConversationGroupProfile(o)),this._groupModule.getModule(Hn).deleteLocalGroupMembers(r,e.payload.userIDList)}},{key:"_onMemberKickedOut",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(r);o&&st(n)&&o.memberCount!==n&&(o.memberCount=n,this._updateConversationGroupProfile(o)),this._groupModule.getModule(Hn).deleteLocalGroupMembers(r,e.payload.userIDList)}},{key:"_updateConversationGroupProfile",value:function(e){this._groupModule.getModule(zn).updateConversationGroupProfile([e])}},{key:"_onMemberSetAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,r=this._groupModule.getModule(Hn);n.forEach((function(e){var n=r.getLocalGroupMemberInfo(t,e);n&&n.updateRole(T.GRP_MBR_ROLE_ADMIN)}))}},{key:"_onMemberCancelledAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,r=this._groupModule.getModule(Hn);n.forEach((function(e){var n=r.getLocalGroupMemberInfo(t,e);n&&n.updateRole(T.GRP_MBR_ROLE_MEMBER)}))}},{key:"_onGroupProfileModified",value:function(e){var t=this,n=e.payload,r=n.newGroupProfile,o=n.groupProfile.groupID,a=this._groupModule.getLocalGroupProfile(o);Object.keys(r).forEach((function(e){switch(e){case"ownerID":t._ownerChanged(a,r);break;case"groupName":a.name=r[e];break;default:a[e]=r[e]}}));var i=!a.isSupportTopic;this._groupModule.emitGroupListUpdate(!0,i)}},{key:"_ownerChanged",value:function(e,t){var n=e.groupID,r=this._groupModule.getLocalGroupProfile(n),o=this._groupModule.getMyUserID();if(o===t.ownerID){r.updateGroup({selfInfo:{role:T.GRP_MBR_ROLE_OWNER}});var a=this._groupModule.getModule(Hn),i=a.getLocalGroupMemberInfo(n,o),s=this._groupModule.getLocalGroupProfile(n).ownerID,c=a.getLocalGroupMemberInfo(n,s);i&&i.updateRole(T.GRP_MBR_ROLE_OWNER),c&&c.updateRole(T.GRP_MBR_ROLE_MEMBER)}}},{key:"_onMemberInfoModified",value:function(e){var t=e.to,n=e.payload,r=n.groupProfile,o=n.memberList,a=r.groupID;Dt(t)&&this._updateTopicMuteTime(e);var i=this._groupModule.getModule(Hn);o.forEach((function(e){var t=i.getLocalGroupMemberInfo(a,e.userID);t&&st(e.muteTime)&&t.updateMuteUntil(e.muteTime)}))}},{key:"_updateTopicMuteTime",value:function(e){var t=e.to,n=e.payload,r=n.groupProfile,o=n.memberList,a=void 0===o?[]:o,i=this._groupModule.getModule(Yn),s=r.groupID,c=i.getLocalTopic(s,t);if(c){for(var l=!1,u=0;u<a.length;u++){var d=a[u];if(d.userID===this._groupModule.getMyUserID()&&d.muteTime>=0){c.updateSelfInfo({muteTime:d.muteTime}),l=!0;break}}l&&this._groupModule.emitOuterEvent(S.TOPIC_UPDATED,{groupID:s,topic:c})}}},{key:"_onTopicProfileUpdated",value:function(e){var t=e.payload,r=t.groupProfile.groupID,o=t.newTopicInfo;this._groupModule.getModule(Yn).onTopicProfileUpdated(n({groupID:r,topicID:e.to},o))}},{key:"_cacheGroupTips",value:function(e,t){this._cachedGroupTipsMap.has(e)||this._cachedGroupTipsMap.set(e,[]),this._cachedGroupTipsMap.get(e).push(t)}},{key:"_deleteCachedGroupTips",value:function(e){this._cachedGroupTipsMap.has(e)&&this._cachedGroupTipsMap.delete(e)}},{key:"_notifyCachedGroupTips",value:function(e){var t=this,n=this._cachedGroupTipsMap.get(e)||[];n.forEach((function(e){t.onNewGroupTips(e)})),this._deleteCachedGroupTips(e),Ge.l("".concat(this._n,"._notifyCachedGroupTips groupID:").concat(e," count:").concat(n.length))}},{key:"_cacheGroupTipsAndProbe",value:function(e){var t=this,n=e.groupID,r=e.event,o=e.item;this._cacheGroupTips(n,{event:r,dataList:[o]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===T.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupTips(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupTips(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),Ge.l("".concat(this._n,"._cacheGroupTipsAndProbe groupID:").concat(n))}},{key:"reset",value:function(){this._cachedGroupTipsMap.clear(),this._checkCountMap.clear(),this._getTopicPendingMap.clear()}}]),e}(),Bi=function(){function e(t){o(this,e),this._groupModule=t,this._n="CommonGroupHandler",this.tempConversationList=null,this._cachedGroupMessageMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,this._getTopicPendingMap=new Map,this._isPagingGetCompleted=!1,t.getInnerEmitterInstance().once(bi,this._initGroupList,this)}return i(e,[{key:"onCheckTimer",value:function(e){e%1==0&&this._cachedGroupMessageMap.size>0&&this._checkCachedGroupMessage()}},{key:"_checkCachedGroupMessage",value:function(){var e=this;this._cachedGroupMessageMap.forEach((function(t,n){var r=e._checkCountMap.get(n),o=e._groupModule.hasLocalGroup(n);Ge.l("".concat(e._n,"._checkCachedGroupMessage groupID:").concat(n," hasLocalGroup:").concat(o," checkCount:").concat(r)),o?(e._notifyCachedGroupMessage(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):r>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupMessage(n),e._checkCountMap.delete(n)):(r++,e._checkCountMap.set(n,r))}))}},{key:"_initGroupList",value:function(){var e=this;Ge.l("".concat(this._n,"._initGroupList"));var t=new Ka("getGroupListInStorage"),n=this._groupModule.getStorageGroupList();if(dt(n)&&n.length>0){n.forEach((function(t){e._groupModule.initGroupMap(t)})),this._groupModule.emitGroupListUpdate(!0,!1);var r=this._groupModule.getLocalGroupList().length;t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:".concat(r)).end()}else t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:0").end();Ge.l("".concat(this._n,"._initGroupList ok"))}},{key:"handleUpdateGroupLastMessage",value:function(e){var t="".concat(this._n,".handleUpdateGroupLastMessage");if(Ge.l("".concat(t," conversation count:").concat(e.length,", local group count:").concat(this._groupModule.getLocalGroupList().length)),0!==this._groupModule.getGroupMap().size){for(var r,o,a,i=!1,s=0,c=e.length;s<c;s++)(r=e[s]).type===T.CONV_GROUP&&(o=r.conversationID.split(/^GROUP/)[1],(a=this._groupModule.getLocalGroupProfile(o))&&(a.lastMessage=n({},r.lastMessage),i=!0));i&&(this._groupModule.sortLocalGroupList(),this._groupModule.emitGroupListUpdate(!0,!1))}else this.tempConversationList=e}},{key:"onNewGroupMessage",value:function(e){Ge.d("".concat(this._n,".onNewGroupMessage count:").concat(e.dataList.length));var t=this._newGroupMessageStoredAndSummary(e),n=t.conversationOptionsList,r=t.messageList,o=t.AVChatRoomMessageList;o.length>0&&this._groupModule.onAVChatRoomMessage(o),this._groupModule.filterModifiedMessage(r),n.length>0&&(this._groupModule.updateNextMessageSeq(n),this._groupModule.getModule(zn).onNewMessage({conversationOptionsList:n,isInstantMessage:e.isInstantMessage||!0,updateUnreadCount:e.updateUnreadCount||!0}));var a=this._groupModule.filterUnmodifiedMessage(r);a.length>0&&this._groupModule.emitOuterEvent(S.MESSAGE_RECEIVED,a),r.length=0}},{key:"_newGroupMessageStoredAndSummary",value:function(e){var t=this,n=e.dataList,r=e.event,o=e.isInstantMessage,a=null,i=[],s=[],c=[],l={},u=this._groupModule.getModule(Jn),d=this._groupModule.getFileDownloadProxy(),p=n.length;p>1&&n.sort((function(e,t){return e.sequence-t.sequence}));for(var f=function(e){var p=Tt(n[e]),f=p.groupProfile,h=f.groupID,m=f.communityType,v=void 0===m?0:m,g=f.topicID,_=void 0===g?void 0:g,b=f.invisible,y=void 0,O=t._groupModule.isMessageFromTopic(v,_);if(O){y=T.CONV_TOPIC,p.to=_;var M=t._groupModule.getModule(Yn);M.hasLocalTopic(h,_)||t._getTopicPendingMap.has(_)||(t._getTopicPendingMap.set(_,1),M.getTopicList({groupID:h,topicIDList:[_]}).finally((function(){t._getTopicPendingMap.delete(_)})))}var k=t._groupModule.hasLocalGroup(h);if(!k&&t._groupModule.isUnjoinedAVChatRoom(h))return"continue";if(!k&&!O)return t._cacheGroupMessageAndProbe({groupID:h,event:r,item:p}),"continue";if(t._groupModule.isMessageFromOrToAVChatroom(h))return p.event=r,c.push(p),"continue";if(p.currentUser=t._groupModule.getMyUserID(),p.conversationType=T.CONV_GROUP,p.isSystemMessage=!!p.isSystemMessage,a=new ui(p),p.elements=u.parseElements(p.elements,p.from),a.setElement(p.elements,d),1===b)return t._qualityStat(o,a),"continue";var C=1===n[e].isModified,w=t._groupModule.getModule(zn);if(w.isMessageSentByCurrentInstance(a)?a.isModified=C:C=!1,1===p.onlineOnlyFlag)a._onlineOnlyFlag=!0,w.isMessageSentByCurrentInstance(a)||s.push(a);else{if(t._groupModule.isMessageFromCommunityOfTopic(v,_))return s.push(a),"continue";if(!w.pushIntoMessageList(s,a,C))return"continue";t._qualityStat(o,a);var S=a,I=S.conversationID,E=S.sequence,j=w.isRemoteRead({conversationID:I,sequence:E});if(pt(l[I])){var D=0;"in"===a.flow&&(a._isExcludedFromUnreadCount||j||(D=1)),l[I]=i.push({conversationID:I,unreadCount:D,type:pt(y)?a.conversationType:y,subType:a.conversationSubType,lastMessage:a._isExcludedFromLastMessage?"":a})-1}else{var L=l[I];i[L].type=pt(y)?a.conversationType:y,i[L].subType=a.conversationSubType,i[L].lastMessage=a._isExcludedFromLastMessage?"":a,"in"===a.flow&&(a._isExcludedFromUnreadCount||j||i[L].unreadCount++)}}},h=0;h<p;h++)f(h);return{conversationOptionsList:i,messageList:s,AVChatRoomMessageList:c}}},{key:"_qualityStat",value:function(e,t){var n=this._groupModule.getModule(ir);n.addMessageSequence({key:Fa,message:t}),e&&t.clientTime>0&&n.addMessageDelay(t.clientTime)}},{key:"onGroupMessageRevoked",value:function(e){var t=this._groupModule.getModule(zn),n=[],r=null,o=!0;e.dataList.forEach((function(e){var a=e.elements.revokedInfos;pt(a)||a.forEach((function(e){var a=en(e.topicID)?"GROUP".concat(e.groupID):"GROUP".concat(e.topicID);r=t.revoke(a,e.sequence,e.random);var i=e.revokerInfo&&e.revokerInfo.revoker;if(r)r.revoker=i,n.push(r);else{var s={conversationID:a,to:e.topicID||"",sequence:e.sequence,time:e.time,revoker:i};t.isLastMessageRevoked(s)&&(n.push(s),o=!1)}}))})),0!==n.length&&(t.onMessageRevoked(n),!0===o&&(Ge.l("".concat(this._n,".onGroupMessageRevoked count:").concat(n.length)),this._groupModule.emitOuterEvent(S.MESSAGE_REVOKED,n)))}},{key:"_groupListTreeShaking",value:function(e){for(var t=new Map(b(this._groupModule.getGroupMap())),n=0,r=e.length;n<r;n++)t.delete(e[n].groupID);this._groupModule.hasJoinedAVChatRoom()&&this._groupModule.getJoinedAVChatRoom().forEach((function(e){t.delete(e)})),this._groupModule.getGroupMap().forEach((function(e,n){e.isSupportTopic&&t.delete(n)}));for(var o=b(t.keys()),a=0,i=o.length;a<i;a++)this._groupModule.deleteGroup(o[a])}},{key:"getGroupList",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupList"),r=new Ka("getGroupList");Ge.l("".concat(n));var o={introduction:"Introduction",notification:"Notification",createTime:"CreateTime",ownerID:"Owner_Account",lastInfoTime:"LastInfoTime",memberNum:"MemberNum",maxMemberNum:"MaxMemberNum",joinOption:"ApplyJoinOption",inviteOption:"InviteJoinOption",muteAllMembers:"ShutUpAllMember"},a=["Type","Name","FaceUrl","NextMsgSeq","LastMsgTime","AtInfoList","LastRecallTime"],i=[];e&&e.groupProfileFilter&&e.groupProfileFilter.forEach((function(e){o[e]&&a.push(o[e])}));var s=(e||{}).isGroupWithTopicOnly,c=void 0!==s&&s;return this._pagingGetGroupList({limit:50,offset:0,groupBaseInfoFilter:a,groupList:i,isGroupWithTopicOnly:c}).then((function(){Ge.l("".concat(n," ok. count:").concat(i.length," isGroupWithTopicOnly:").concat(c)),c||t._groupListTreeShaking(i),t._groupModule.updateGroupMap(i);var e=t._groupModule.getLocalGroupList().length;r.setNetworkType(t._groupModule.getNetworkType()).setMessage("remote count:".concat(i.length,", after tree shaking, local count:").concat(e,", isGroupWithTopicOnly:").concat(c)).end(),t.tempConversationList&&(t.handleUpdateGroupLastMessage(t.tempConversationList),t.tempConversationList=null),t._groupModule.patchGroupMessageRemindType(),t._groupModule.recomputeUnreadCount(),t._groupModule.emitGroupListUpdate(!0,!c);var o=t._groupModule.getLocalGroupList();if(c){var a=o.filter((function(e){return!0===e.isSupportTopic}));return di({groupList:a})}return t._isPagingGetCompleted=!0,di({groupList:o})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"isPagingGetCompleted",value:function(){return this._isPagingGetCompleted}},{key:"_pagingGetGroupList",value:function(e){var t=this,n="".concat(this._n,".").concat("_pagingGetGroupList"),r=e.isCommunityRelay,o=void 0!==r&&r,a=e.isGroupWithTopicOnly,i=void 0!==a&&a,s=e.limit,c=e.offset,l=e.groupBaseInfoFilter,u=e.groupList;if(i)return this._pagingGetGroupListWithTopic({limit:s,offset:c,groupBaseInfoFilter:l,groupList:u});var d=new Ka("_pagingGetGroupList");return this._groupModule.request({protocolName:po,requestData:{type:o?T.GRP_COMMUNITY:void 0,memberAccount:this._groupModule.getMyUserID(),limit:s,offset:c,responseFilter:{groupBaseInfoFilter:l,selfInfoFilter:["Role","JoinTime","MsgFlag","MsgSeq"]}}}).then((function(e){var r=e.data,a=r.groups,i=void 0===a?[]:a,p=r.totalCount;u.push.apply(u,b(i)),t._handleGroupAtInfoWithoutTopic(o,i);var f=c+s,h=!(p>f),m="offset:".concat(c," totalCount:").concat(p," isCompleted:").concat(h," ")+"currentCount:".concat(u.length," isCommunityRelay:").concat(o);return d.setNetworkType(t._groupModule.getNetworkType()).setMessage("".concat(m)).end(),o||h?!o&&h?(Ge.l("".concat(n," start to get community list")),c=0,t._pagingGetGroupList({limit:s,offset:c,groupBaseInfoFilter:l,groupList:u,isCommunityRelay:!0})):o&&!h?(c=f,t._pagingGetGroupList({limit:s,offset:c,groupBaseInfoFilter:l,groupList:u,isCommunityRelay:!0})):(Ge.l("".concat(n," ok. totalCount:").concat(u.length)),di({groupList:u})):(c=f,t._pagingGetGroupList({limit:s,offset:c,groupBaseInfoFilter:l,groupList:u}))})).catch((function(e){return 11e3!==e.code&&t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];d.setMessage("isCommunityRelay:".concat(o)).setError(e,r,a).end()})),o?(11e3===e.code&&(d=null,Ge.l("".concat(n," ok. community unavailable"))),mi({groupList:u})):vi(e)}))}},{key:"_pagingGetGroupListWithTopic",value:function(e){var t=this,n="".concat(this._n,"._pagingGetGroupListWithTopic"),r=e.limit,o=e.offset,a=e.groupBaseInfoFilter,i=e.groupList,s=new Ka("pagingGetGroupListWithTopic");return this._groupModule.request({protocolName:po,requestData:{type:T.GRP_COMMUNITY,memberAccount:this._groupModule.getMyUserID(),limit:r,offset:o,responseFilter:{groupBaseInfoFilter:a,selfInfoFilter:["Role","JoinTime","MsgFlag","MsgSeq"]},isSupportTopic:1}}).then((function(e){var c=e.data,l=c.groups,u=void 0===l?[]:l,d=c.totalCount;i.push.apply(i,b(u));var p=o+r,f=!(d>p),h="offset:".concat(o," totalCount:").concat(d," isCompleted:").concat(f," ")+"currentCount:".concat(i.length);return s.setNetworkType(t._groupModule.getNetworkType()).setMessage("".concat(h)).end(),f?(Ge.l("".concat(n," ok. totalCount:").concat(i.length)),di({groupList:i})):(o=p,t._pagingGetGroupListWithTopic({limit:r,offset:o,groupBaseInfoFilter:a,groupList:i}))})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),vi(e)}))}},{key:"_cacheGroupMessage",value:function(e,t){this._cachedGroupMessageMap.has(e)||this._cachedGroupMessageMap.set(e,[]),this._cachedGroupMessageMap.get(e).push(t)}},{key:"_deleteCachedGroupMessage",value:function(e){this._cachedGroupMessageMap.has(e)&&this._cachedGroupMessageMap.delete(e)}},{key:"_notifyCachedGroupMessage",value:function(e){var t=this,n=this._cachedGroupMessageMap.get(e)||[];n.forEach((function(e){t.onNewGroupMessage(e)})),this._deleteCachedGroupMessage(e),Ge.l("".concat(this._n,"._notifyCachedGroupMessage groupID:").concat(e," count:").concat(n.length))}},{key:"_cacheGroupMessageAndProbe",value:function(e){var t=this,n=e.groupID,r=e.event,o=e.item;this._cacheGroupMessage(n,{event:r,dataList:[o]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===T.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupMessage(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupMessage(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),Ge.l("".concat(this._n,"._cacheGroupMessageAndProbe groupID:").concat(n))}},{key:"_handleGroupAtInfoWithoutTopic",value:function(e,t){var r=this;e&&0!==t.length&&t.forEach((function(e){var t=e.groupID,o=e.groupAtInfoList,a=[];pt(o)||(o.forEach((function(e){a.push(n(n({},e),{},{groupID:t}))})),r._groupModule.getModule(zn).onNewGroupAtTips({dataList:a}))}))}},{key:"reset",value:function(){this._cachedGroupMessageMap.clear(),this._checkCountMap.clear(),this._getTopicPendingMap.clear(),this._isPagingGetCompleted=!1,this._groupModule.getInnerEmitterInstance().once(bi,this._initGroupList,this)}}]),e}(),Fi=1,Gi=2,Hi=3,Yi=4,zi=5,qi=function(){function e(t){o(this,e),this._groupModule=t,this._n="GroupAttributesHandler",this._groupAttributesMap=new Map,this._groupAttributesCopy={},this.CACHE_EXPIRE_TIME=3e4,this._groupModule.getInnerEmitterInstance().on(yi,this._onCloudConfigUpdated,this)}return i(e,[{key:"_onCloudConfigUpdated",value:function(){var e=this._groupModule.getCloudConfig("grp_attr_cache_time");pt(e)||(this.CACHE_EXPIRE_TIME=Number(e))}},{key:"updateLocalMainSequenceOnReconnected",value:function(){this._groupAttributesMap.forEach((function(e){e.localMainSequence=0}))}},{key:"isGroupAttributesUpdatedNotice",value:function(e){var t=e.to,n=e.elements.newGroupProfile,r=!pt(n)&&!en(n.groupAttributeOption);return r&&this._onGroupAttributesUpdated({groupID:t,groupAttributeOption:n.groupAttributeOption}),r}},{key:"_onGroupAttributesUpdated",value:function(e){var t=this,n=e.groupID,r=e.groupAttributeOption,o=r.mainSequence,a=r.isWithChangedAttributeInfo,i=r.groupAttributeList,s=void 0===i?[]:i,c=r.operationType;if(Ge.l("".concat(this._n,".onGroupAttributesUpdated. ")+"groupID:".concat(n," isWithChangedAttributeInfo:").concat(a," operationType:").concat(c)),!pt(c)){this._groupAttributesCopy=this._getCachedAttributes({groupID:n});var l=this._getLocalGroupAttributes(n).localMainSequence;if(1===a&&o-l==1)return this._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:o,groupAttributeList:s,operationType:c}),void this._emitGroupAttributesUpdated(n);if(this._hasLocalGroupAttributes(n)){var u=this._getLocalGroupAttributes(n).avChatRoomKey;this._getGroupAttributes({groupID:n,avChatRoomKey:u}).then((function(){t._emitGroupAttributesUpdated(n)}))}}}},{key:"initGroupAttributesCache",value:function(e){var t=e.groupID,n=e.avChatRoomKey,r=void 0===n?void 0:n;this._groupAttributesMap.set(t,{lastUpdateTime:0,localMainSequence:0,remoteMainSequence:0,attributes:new Map,avChatRoomKey:r}),Ge.l("".concat(this._n,".initGroupAttributesCache groupID:").concat(t," avChatRoomKey:").concat(r))}},{key:"initGroupAttributes",value:function(e){var t=this,n=e.groupID,r=e.groupAttributes,o=this._getLocalGroupAttributes(n),a=o.remoteMainSequence,i=o.avChatRoomKey,s=new Ka("initGroupAttributes");return s.setMessage("groupID:".concat(n," avChatRoomKey:").concat(i," mainSequence:").concat(a)),this._groupModule.request({protocolName:Bo,requestData:{groupID:n,avChatRoomKey:i,mainSequence:a,groupAttributeList:this._transformGroupAttributes(r)}}).then((function(e){var o=e.data,a=o.mainSequence,i=b(o.groupAttributeList);return i.forEach((function(e){e.value=r[e.key]})),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:a,groupAttributeList:i,operationType:Fi}),s.setNetworkType(t._groupModule.getNetworkType()).end(),Ge.l("".concat(t._n,".").concat("initGroupAttributes"," ok. groupID:").concat(n)),di({groupAttributes:r})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),vi(e)}))}},{key:"setGroupAttributes",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupAttributes"),r=e.groupID,o=e.groupAttributes,a=this._getLocalGroupAttributes(r),i=a.remoteMainSequence,s=a.avChatRoomKey,c=a.attributes,l=this._transformGroupAttributes(o);l.forEach((function(e){var t=e.key;e.sequence=0,c.has(t)&&(e.sequence=c.get(t).sequence)}));var u=new Ka("setGroupAttributes");return u.setMessage("groupID:".concat(r," groupAttributes:").concat(JSON.stringify(o))),Ge.l("".concat(n,". groupID:").concat(r," mainSequence:").concat(i)),this._groupModule.request({protocolName:Fo,requestData:{groupID:r,avChatRoomKey:s,mainSequence:i,groupAttributeList:l}}).then((function(e){var a=e.data,i=a.mainSequence,s=b(a.groupAttributeList);return s.forEach((function(e){e.value=o[e.key]})),t._refreshCachedGroupAttributes({groupID:r,remoteMainSequence:i,groupAttributeList:s,operationType:Gi}),u.setNetworkType(t._groupModule.getNetworkType()).end(),Ge.l("".concat(n," ok.")),di({groupAttributes:o})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setError(e,r,o).end()})),vi(e)}))}},{key:"deleteGroupAttributes",value:function(e){var t=this,n=e.groupID,r=e.keyList,o=void 0===r?[]:r,a=this._getLocalGroupAttributes(n),i=a.remoteMainSequence,s=a.avChatRoomKey,c=a.attributes,l=b(c.keys()),u=Ho,d=Hi,p={groupID:n,avChatRoomKey:s,mainSequence:i},f=[];o.length>0&&(l=[],u=Go,d=Yi,o.forEach((function(e){var t=0;c.has(e)&&(t=c.get(e).sequence,l.push(e)),f.push({key:e,sequence:t})})),p.groupAttributeList=f);var h=new Ka("deleteGroupAttributes");return h.setMessage("groupID:".concat(n," mainSequence:").concat(i," keyList:").concat(o," protocolName:").concat(u)),this._groupModule.request({protocolName:u,requestData:p}).then((function(e){var r=e.data.mainSequence;return t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:r,groupAttributeList:f,operationType:d}),h.setNetworkType(t._groupModule.getNetworkType()).end(),Ge.l("".concat(t._n,".").concat("deleteGroupAttributes"," ok. groupID:").concat(n)),di({keyList:l})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];h.setError(e,r,o).end()})),vi(e)}))}},{key:"getGroupAttributes",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupAttributes"),r=e.groupID,o=this._getLocalGroupAttributes(r),a=o.avChatRoomKey,i=o.lastUpdateTime,s=o.localMainSequence,c=o.remoteMainSequence,l=new Ka("getGroupAttributes");if(l.setMessage("groupID:".concat(r," localMainSequence:").concat(s," remoteMainSequence:").concat(c," keyList:").concat(e.keyList)),Date.now()-i>=this.CACHE_EXPIRE_TIME||s<c)return this._getGroupAttributes({groupID:r,avChatRoomKey:a}).then((function(o){l.setMoreMessage("get attributes from remote. count:".concat(o.length)).setNetworkType(t._groupModule.getNetworkType()).end(),Ge.l("".concat(n," from remote. groupID:").concat(r));var a=t._getCachedAttributes(e);return di({groupAttributes:a})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),vi(e)}));l.setMoreMessage("get attributes from cache").setNetworkType(this._groupModule.getNetworkType()).end(),Ge.l("".concat(n," from cache. groupID:").concat(r));var u=this._getCachedAttributes(e);return mi({groupAttributes:u})}},{key:"_getGroupAttributes",value:function(e){var t=this,r=0;return pt(e.avChatRoomKey)||(r=1),this._groupModule.request({protocolName:Yo,requestData:n(n({},e),{},{groupType:r})}).then((function(n){var r=n.data,o=r.mainSequence,a=r.groupAttributeList,i=b(a);return pt(o)||t._refreshCachedGroupAttributes({groupID:e.groupID,remoteMainSequence:o,groupAttributeList:i,operationType:zi}),Ge.l("".concat(t._n,"._getGroupAttributes ok. groupID:").concat(e.groupID)),a})).catch((function(e){return vi(e)}))}},{key:"_refreshCachedGroupAttributes",value:function(e){var t=e.groupID,n=e.remoteMainSequence,r=e.groupAttributeList,o=e.operationType;if(this._hasLocalGroupAttributes(t)){var a=this._getLocalGroupAttributes(t),i=a.localMainSequence;if(o===zi||n-i==1)a.remoteMainSequence=n,a.localMainSequence=n,a.lastUpdateTime=Date.now(),this._updateCachedAttributes({groupAttributes:a,groupAttributeList:r,operationType:o});else{if(i===n)return;a.remoteMainSequence=n}this._groupAttributesMap.set(t,a);var s="operationType:".concat(o," localMainSequence:").concat(i," remoteMainSequence:").concat(n);Ge.l("".concat(this._n,"._refreshCachedGroupAttributes. ").concat(s))}}},{key:"_getCachedAttributes",value:function(e){var t=e.groupID,n=e.keyList,r=void 0===n?[]:n,o={};if(this._hasLocalGroupAttributes(t)){var a=this._getLocalGroupAttributes(t).attributes;if(r.length>0)r.forEach((function(e){a.has(e)&&(o[e]=a.get(e).value)}));else{var i,s=w(a.keys());try{for(s.s();!(i=s.n()).done;){var c=i.value;o[c]=a.get(c).value}}catch(u){s.e(u)}finally{s.f()}}}return o}},{key:"_updateCachedAttributes",value:function(e){var t=e.groupAttributes,n=e.groupAttributeList,r=e.operationType;r!==Hi?r!==Yi?(r===Fi&&t.attributes.clear(),n.forEach((function(e){var n=e.key,r=e.value,o=e.sequence;t.attributes.set(n,{value:r,sequence:o})}))):n.forEach((function(e){t.attributes.delete(e.key)})):t.attributes.clear()}},{key:"_hasLocalGroupAttributes",value:function(e){return this._groupAttributesMap.has(e)}},{key:"_getLocalGroupAttributes",value:function(e){return this._hasLocalGroupAttributes(e)||this.initGroupAttributesCache({groupID:e}),this._groupAttributesMap.get(e)}},{key:"_transformGroupAttributes",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:"_emitGroupAttributesUpdated",value:function(e){var t=this._getCachedAttributes({groupID:e}),n=this._computeAttrChangedInfo(t),r=n.updatedKeyList,o=n.deletedKeyList;this._groupModule.emitOuterEvent(S.GROUP_ATTRIBUTES_UPDATED,{groupID:e,groupAttributes:t,updatedKeyList:r,deletedKeyList:o})}},{key:"_computeAttrChangedInfo",value:function(e){var t=this,n=[],r=[];return Object.keys(e).forEach((function(r){e[r]!==t._groupAttributesCopy[r]&&n.push(r)})),Object.keys(this._groupAttributesCopy).forEach((function(t){pt(e[t])&&r.push(t)})),this._groupAttributesCopy={},Ge.l("".concat(this._n,"._computeAttrChangedInfo update count:").concat(n.length,", delete count:").concat(r.length)),{updatedKeyList:n,deletedKeyList:r}}},{key:"deleteLocalGroupAttributes",value:function(e){this._hasLocalGroupAttributes(e)&&this._groupAttributesMap.delete(e)}},{key:"reset",value:function(){this._groupAttributesMap.clear(),this._groupAttributesCopy={},this.CACHE_EXPIRE_TIME=3e4}}]),e}(),Wi="Set",Ki="Increase",$i="Decrease",Ji=function(){function e(t){o(this,e),this._groupModule=t,this._n="GroupCountersHandler",this._groupCountersMap=new Map,this.EXPIRE_TIME=3e4,this._groupModule.getInnerEmitterInstance().on(yi,this._onCloudConfigUpdated,this)}return i(e,[{key:"_onCloudConfigUpdated",value:function(){var e=this._groupModule.getCloudConfig("grp_counter_expire_time");pt(e)||(this.EXPIRE_TIME=Number(e))}},{key:"isGroupCountersNotice",value:function(e){var t=e.to,n=e.elements.groupCounterInfo,r=!1;return en(n)||(this._onGroupCountersUpdated({groupID:t,groupCounterInfo:n}),r=!0),r}},{key:"_onGroupCountersUpdated",value:function(e){var t=this,n=e.groupID;e.groupCounterInfo.forEach((function(e){var r=e.type,o=e.groupCounterSeq,a=e.counterList,i=void 0===a?[]:a;0!==r&&2!==r||(t._updateLocalGroupCounters({groupID:n,groupCounterSeq:o,counterList:i}),i.forEach((function(e){t._groupModule.emitOuterEvent(S.GROUP_COUNTER_UPDATED,{groupID:n,key:e.key,value:e.value})}))),1===r&&t._deleteLocalGroupCounters({groupID:n,groupCounterSeq:o,counterList:i})})),Ge.l("".concat(this._n,"._onGroupCountersUpdated groupID:").concat(n))}},{key:"initGroupCountersCache",value:function(e){var t=e.groupID,n=e.avChatRoomKey;this._groupCountersMap.set(t,{lastUpdateTime:0,groupCounterSeq:0,counters:new Map,avChatRoomKey:n}),Ge.l("".concat(this._n,".initGroupCountersCache groupID:").concat(t," avChatRoomKey:").concat(n))}},{key:"setGroupCounters",value:function(e){var t=this;if(!this._groupModule.canIUse(H.GRP_COUNTER))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".setGroupCounters"),r=e.groupID,o=e.counters,a=this._convertObjectToList(o),i=this._getLocalGroupCounters(r).avChatRoomKey,s="groupID:".concat(r," count:").concat(a.length),c=new Ka("setGroupCounters");return c.setMessage("".concat(s)),Ge.l("".concat(n,". ").concat(s)),this._updateGroupCounters({groupID:r,counterList:a,avChatRoomKey:i,mode:Wi}).then((function(e){return c.end(),Ge.l("".concat(n," ok.")),di({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"increaseGroupCounter",value:function(e){var t=this;if(!this._groupModule.canIUse(H.GRP_COUNTER))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".increaseGroupCounters"),r=e.groupID,o=e.key,a=e.value,i=this._getLocalGroupCounters(r).avChatRoomKey,s="groupID:".concat(r," key:").concat(o," value:").concat(a),c=new Ka("increaseGroupCounter");c.setMessage("".concat(s)),Ge.l("".concat(n,". ").concat(s));var l=[{key:o,value:a}];return this._updateGroupCounters({groupID:r,counterList:l,avChatRoomKey:i,mode:Ki}).then((function(e){return c.end(),Ge.l("".concat(n," ok.")),di({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"decreaseGroupCounter",value:function(e){var t=this;if(!this._groupModule.canIUse(H.GRP_COUNTER))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".decreaseGroupCounter"),r=e.groupID,o=e.key,a=e.value,i=this._getLocalGroupCounters(r).avChatRoomKey,s="groupID:".concat(r," key:").concat(o," value:").concat(a),c=new Ka("decreaseGroupCounter");c.setMessage("".concat(s)),Ge.l("".concat(n,". ").concat(s));var l=[{key:o,value:a}];return this._updateGroupCounters({groupID:r,counterList:l,avChatRoomKey:i,mode:$i}).then((function(e){return c.end(),Ge.l("".concat(n," ok.")),di({counters:e})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"getGroupCounters",value:function(e){var t=this;if(!this._groupModule.canIUse(H.GRP_COUNTER))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".getGroupCounters"),r=e.groupID,o=e.keyList,a=void 0===o?[]:o,i=this._getLocalGroupCounters(r),s=i.avChatRoomKey,c=i.lastUpdateTime,l=new Ka("getGroupCounters");if(l.setMessage("groupID:".concat(r)),Date.now()-c>=this.EXPIRE_TIME)return this._getRemoteGroupCounters({groupID:r,avChatRoomKey:s}).then((function(e){l.setMoreMessage("from remote. count:".concat(e.length)).end(),Ge.l("".concat(n," from remote. groupID:").concat(r));var o=t._getLocalCounters(r,a);return di({counters:o})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),vi(e)}));l.setMoreMessage("from cache").end(),Ge.l("".concat(n," from cache. groupID:").concat(r));var u=this._getLocalCounters(r,a);return mi({counters:u})}},{key:"_getRemoteGroupCounters",value:function(e){var t=this;return this._groupModule.request({protocolName:$o,requestData:n({},e)}).then((function(n){var r=n.data,o=r.counterList,a=void 0===o?[]:o,i=r.groupCounterSeq;return t._updateLocalGroupCounters({groupID:e.groupID,counterList:a,groupCounterSeq:i}),Ge.l("".concat(t._n,"._getRemoteGroupCounters ok. groupID:").concat(e.groupID)),a})).catch((function(e){return vi(e)}))}},{key:"_convertObjectToList",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:"_updateGroupCounters",value:function(e){var t="".concat(this._n,"._updateGroupCounters"),r=e.groupID,o=e.avChatRoomKey,a=e.mode;return Ge.l("".concat(t,". groupID:").concat(r," avChatRoomKey:").concat(o," mode:").concat(a)),this._groupModule.request({protocolName:Ko,requestData:n({},e)}).then((function(e){Ge.l("".concat(t," ok."));var n=e.data.counterList,r={};return(void 0===n?[]:n).forEach((function(e){var t=e.key,n=e.value;r[t]=n})),r})).catch((function(e){return vi(e)}))}},{key:"_hasLocalGroupCounters",value:function(e){return this._groupCountersMap.has(e)}},{key:"_getLocalGroupCounters",value:function(e){return this._hasLocalGroupCounters(e)||this.initGroupCountersCache({groupID:e}),this._groupCountersMap.get(e)}},{key:"_updateLocalGroupCounters",value:function(e){var t=e.groupID,n=e.counterList,r=void 0===n?[]:n,o=e.groupCounterSeq;if(this._hasLocalGroupCounters(t)){var a=this._getLocalGroupCounters(t),i=a.counters,s=a.avChatRoomKey,c=a.groupCounterSeq;if(o>0&&o<c)return;r.forEach((function(e){var t=e.key,n=e.value;i.set(t,n)})),this._groupCountersMap.set(t,{lastUpdateTime:Date.now(),groupCounterSeq:o,counters:i,avChatRoomKey:s})}}},{key:"_deleteLocalGroupCounters",value:function(e){var t=e.groupID,n=e.counterList,r=void 0===n?[]:n,o=e.groupCounterSeq;if(this._hasLocalGroupCounters(t)){var a=this._getLocalGroupCounters(t),i=a.counters,s=a.avChatRoomKey;r.forEach((function(e){i.delete(e.key)})),this._groupCountersMap.set(t,{lastUpdateTime:Date.now(),groupCounterSeq:o,counters:i,avChatRoomKey:s})}}},{key:"_getLocalCounters",value:function(e,t){var n={};if(!this._hasLocalGroupCounters(e))return n;var r=this._getLocalGroupCounters(e).counters;if(t.length>0)t.forEach((function(e){r.has(e)&&(n[e]=r.get(e))}));else{var o,a=w(r.keys());try{for(a.s();!(o=a.n()).done;){var i=o.value;n[i]=r.get(i)}}catch(c){a.e(c)}finally{a.f()}}return n}},{key:"reset",value:function(){this._groupCountersMap.clear(),this.EXPIRE_TIME=3e4}}]),e}(),Xi=function(){function e(t){o(this,e);var n=t.manager,r=t.groupID,a=t.onInit,i=t.onSuccess,s=t.onFail;this._n="Polling",this._manager=n,this._groupModule=n._groupModule,this._onInit=a,this._onSuccess=i,this._onFail=s,this._groupID=r,this._timeoutID=-1,this._isRunning=!1,this._protocolName=Ro}return i(e,[{key:"start",value:function(){var e=this._groupModule.isLoggedIn();e||(this._protocolName=xo),Ge.l("".concat(this._n,".start pollingInterval:").concat(this._manager.getPollingInterval()," isLoggedIn:").concat(e)),this._isRunning=!0,this._request()}},{key:"isRunning",value:function(){return this._isRunning}},{key:"_request",value:function(){var e=this,t=this._onInit(this._groupID);this._groupModule.request({protocolName:this._protocolName,requestData:t}).then((function(t){e._onSuccess(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.getPollingInterval()))})).catch((function(t){e._onFail(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.MAX_POLLING_INTERVAL))}))}},{key:"stop",value:function(){Ge.l("".concat(this._n,".stop")),this._timeoutID>0&&(clearTimeout(this._timeoutID),this._timeoutID=-1),this._isRunning=!1}}]),e}(),Qi={3:!0,4:!0,5:!0,6:!0,17:!0},Zi=function(){function e(t){o(this,e),this._groupModule=t,this._n="AVChatRoomHandler",this._joinedGroupMap=new Map,this._pollingRequestInfoMap=new Map,this._pollingInstanceMap=new Map,this.sequencesLinkedList=new Di(200),this.messageIDLinkedList=new Di(100),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._onlineMemberCountMap=new Map,this.DEFAULT_EXPIRE_TIME=60,this.DEFAULT_POLLING_INTERVAL=300,this.MAX_POLLING_INTERVAL=2e3,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0,this._startBroadcastSeq=1,this._broadcastMessageIDMap=new Map,this.DEFAULT_POLLING_SIMPLIFIED_MSG=0}return i(e,[{key:"hasJoinedAVChatRoom",value:function(){return this._joinedGroupMap.size>0}},{key:"checkJoinedAVChatRoomByID",value:function(e){return this._joinedGroupMap.has(e)}},{key:"getJoinedAVChatRoom",value:function(){return this._joinedGroupMap.size>0?b(this._joinedGroupMap.keys()):null}},{key:"_updateRequestData",value:function(e){var t=this._pollingRequestInfoMap.get(e);return e===b(this._pollingInstanceMap.keys())[0]?n(n({},t),{},{startBroadcastSeq:this._startBroadcastSeq,simplifiedMessage:this.DEFAULT_POLLING_SIMPLIFIED_MSG}):n(n({},t),{},{simplifiedMessage:this.DEFAULT_POLLING_SIMPLIFIED_MSG})}},{key:"_handleSuccess",value:function(e,t){var n=t.data,r=n.key,o=n.nextSeq,a=n.rspMsgList,i=n.errorCode,s=n.nextBroadcastSeq,c=n.broadcastMessageList;if(0!==i){var l=this._pollingRequestInfoMap.get(e),u=new Ka("longPollingAVError"),d=l?"".concat(l.key,"-").concat(l.startSeq):"requestInfo is undefined";u.setMessage("".concat(e,"-").concat(d,"-").concat(t.errorInfo)).setCode(t.errorCode).setNetworkType(this._groupModule.getNetworkType()).end(!0)}else{if(!this.checkJoinedAVChatRoomByID(e))return;ct(r)&&st(o)&&this._pollingRequestInfoMap.set(e,{key:r,startSeq:o}),st(s)&&s>this._startBroadcastSeq&&(this._startBroadcastSeq=s),dt(a)&&a.length>0?(a.forEach((function(e){e.to=e.groupID})),this.onMessage(a)):(this._pollingNoMessageCount+=1,this._pollingNoMessageCount===this.DEFAULT_POLLING_NO_MESSAGE_COUNT&&(this._pollingInterval=this.DEFAULT_POLLING_INTERVAL+this.DEFAULT_POLLING_INTERVAL_PLUS)),this._onBroadcastMessage(c)}}},{key:"_handleFailure",value:function(e,t){}},{key:"onMessage",value:function(e){if(dt(e)&&0!==e.length){0!==this._pollingNoMessageCount&&(this._pollingNoMessageCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL);var t=null,n=[],r=this._getModule(zn),o=this._getModule(ir),a=e.length;a>1&&e.sort((function(e,t){return e.sequence-t.sequence}));for(var i=this._getModule(qn),s=0;s<a;s++){var c=this.restoreMessageFromSimplified(e[s]);if(Qi[c.event]){if(6===c.event){if(this._groupModule.isGroupAttributesUpdatedNotice(c))continue;if(this._groupModule.isGroupCountersNotice(c))continue}this.receivedMessageCount+=1,t=this.packMessage(c,c.event);var l=1===c.isModified,u=1===c.isHistoryMessage;if((i.isUnlimitedAVChatRoom()||!this.sequencesLinkedList.has(t.sequence))&&!this.messageIDLinkedList.has(t.ID)){var d=t.conversationID;if(this.receivedMessageCount%50==0?this._getModule(nr).detectFirstRound(d,this.sequencesLinkedList.data()):this.receivedMessageCount%80==0&&this._getModule(nr).detectSecondRound(d,this.sequencesLinkedList.data()),null!==this.sequencesLinkedList.tail()){var p=this.sequencesLinkedList.tail().value,f=t.sequence-p;f>1&&f<=20?this._getModule(nr).onMessageMaybeLost(d,p+1,f-1):f<-1&&f>=-20&&this._getModule(nr).onMessageMaybeLost(d,t.sequence+1,Math.abs(f)-1)}this.sequencesLinkedList.set(t.sequence),this.messageIDLinkedList.set(t.ID);var h=!1;if(this._isMessageSentByCurrentInstance(t)?l&&(h=!0,t.isModified=l,r.updateMessageIsModifiedProperty(t)):h=!0,h){if(t.conversationType===T.CONV_SYSTEM&&5===t.payload.operationType&&this._onGroupDismissed(t.payload.groupProfile.groupID),!u&&t.conversationType!==T.CONV_SYSTEM){var m=t.conversationID.replace(T.CONV_GROUP,"");this._pollingInstanceMap.has(m)?this._groupModule.isLoggedIn()&&o.addMessageSequence({key:Ha,message:t}):(t.type!==T.MSG_GRP_TIP&&t.clientTime>0&&o.addMessageDelay(t.clientTime),o.addMessageSequence({key:Ga,message:t}))}n.push(t)}}}else Ge.w("".concat(this._n,".onMessage unknown event:").concat(c.event))}if(0!==n.length){this._groupModule.filterModifiedMessage(n);var v=this.packConversationOption(n);v.length>0&&this._getModule(zn).onNewMessage({conversationOptionsList:v,isInstantMessage:!0}),Ge.d("".concat(this._n,".onMessage count:").concat(n.length)),this._checkMessageStacked(n);var g=this._groupModule.filterUnmodifiedMessage(n);g.length>0&&this._groupModule.emitOuterEvent(S.MESSAGE_RECEIVED,g),n.length=0}}}},{key:"isBroadcastOrNormal",value:function(e){return 3===e||17===e}},{key:"isGroupTip",value:function(e){return 4===e||6===e}},{key:"isGroupSystemNotice",value:function(e){return 5===e}},{key:"restoreGroupTipElements",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.groupJoinType||(e.groupJoinType=1);var t=e.operatorInfo,n=void 0===t?{}:t,r=e.operatorID,o=e.userIDList,a=void 0===o?[]:o,i=n.userID,s=void 0===i?r:i,c=n.avatar,l=void 0===c?"":c,u=n.nick,d=void 0===u?"":u;e.operatorInfo={userID:s,avatar:l,nick:d};var p=a.map((function(e){return{userID:e}}));return e.memberInfoList=e.memberInfoList||p,e}},{key:"restoreMessageFromSimplified",value:function(e){var t=e.event;if(this.isBroadcastOrNormal(t)&&(e.cloudCustomData=e.cloudCustomData||"",e.elements=e.elements.map((function(e){if(e.type===T.MSG_CUSTOM){var t=e.content,r=void 0===t?{}:t;e.content=n({data:"",description:"",extension:""},r)}return e}))),(this.isGroupTip(t)||this.isGroupSystemNotice(t))&&(e.from=e.from||"@TIM#SYSTEM"),this.isGroupTip(t)){e.elements=this.restoreGroupTipElements(e.elements);var r=e.elements,o=void 0===r?{}:r,a=o.operationType,i=o.operatorInfo;if(1===a){var c=[{userID:(void 0===i?{}:i).userID}];o.memberInfoList=o.memberInfoList||c}}if(this.isGroupSystemNotice(t)){var l=e.elements,u=l.memberInfoList,d=l.operatorInfo;u||(u=void 0===d?{}:d),e.elements.memberInfoList=n({userID:e.elements.operatorID,avatar:"",nick:""},u),e.elements=n({authentication:"",remarkInfo:"",messageKey:1e3*e.time},e.elements);var p=Object.keys(e.elements).filter((function(e){return"operatorInfo"!==e})).reduce((function(t,r){return n(n({},t),{},s({},r,e.elements[r]))}),{});e.elements=p}return e}},{key:"_onGroupDismissed",value:function(e){Ge.l("".concat(this._n,"._onGroupDismissed groupID:").concat(e)),this._groupModule.deleteLocalGroupAndConversation(e),this.reset(e)}},{key:"_checkMessageStacked",value:function(e){var t="MessageStacked",n=e.length;n>=100&&(this._groupModule.outputWarning(t),this._reportMessageStackedCount<5&&(new Ka(t).setNetworkType(this._groupModule.getNetworkType()).setMessage("count:".concat(n," groupID:").concat(b(this._joinedGroupMap.keys()))).setLevel("warning").end(),this._reportMessageStackedCount+=1))}},{key:"_isMessageSentByCurrentInstance",value:function(e){return!!this._getModule(zn).isMessageSentByCurrentInstance(e)}},{key:"packMessage",value:function(e,t){e.currentUser=this._groupModule.getMyUserID(),e.conversationType=5===t?T.CONV_SYSTEM:T.CONV_GROUP,e.isSystemMessage=!!e.isSystemMessage;var n=new ui(e),r=this.packElements(e,t);return n.setElement(r,this._groupModule.getFileDownloadProxy()),n}},{key:"packElements",value:function(e,t){return 4===t||6===t?(this._updateMemberCountByGroupTips(e),{type:T.MSG_GRP_TIP,content:n(n({},e.elements),{},{groupProfile:e.groupProfile})}):5===t?{type:T.MSG_GRP_SYS_NOTICE,content:n(n({},e.elements),{},{groupProfile:n(n({},e.groupProfile),{},{groupID:e.groupID})})}:this._getModule(Jn).parseElements(e.elements,e.from)}},{key:"packConversationOption",value:function(e){for(var t=new Map,n=0;n<e.length;n++){var r=e[n],o=r.conversationID;if(t.has(o)){var a=t.get(o);a.lastMessage=r,"in"===r.flow&&a.unreadCount++}else t.set(o,{conversationID:r.conversationID,unreadCount:"out"===r.flow?0:1,type:r.conversationType,subType:r.conversationSubType,lastMessage:r})}return b(t.values())}},{key:"_updateMemberCountByGroupTips",value:function(e){var t=e.groupProfile.groupID,n=e.elements.onlineMemberInfo,r=void 0===n?void 0:n;if(!en(r)){var o=r.onlineMemberNum,a=void 0===o?0:o,i=r.expireTime,s=void 0===i?this.DEFAULT_EXPIRE_TIME:i,c=this._onlineMemberCountMap.get(t)||{},l=Date.now();en(c)?Object.assign(c,{lastReqTime:0,lastSyncTime:0,latestUpdateTime:l,memberCount:a,expireTime:s}):(c.latestUpdateTime=l,c.memberCount=a),Ge.d("".concat(this._n,"._updateMemberCountByGroupTips info:"),c),this._onlineMemberCountMap.set(t,c)}}},{key:"_onBroadcastMessage",value:function(e){if(!en(e)){for(var t=[],n=e.length,r=null,o=0;o<n;o++){var a=this.restoreMessageFromSimplified(e[o]);Qi[a.event]?((r=this.packMessage(a,a.event)).isBroadcastMessage=!0,this._broadcastMessageIDMap.has(r.ID)||(t.push(r),this._broadcastMessageIDMap.set(r.ID,1))):Ge.w("".concat(this._n,"._onBroadcastMessage unknown event:").concat(a.event))}t.length>0&&this._groupModule.emitOuterEvent(S.MESSAGE_RECEIVED,t)}}},{key:"start",value:function(e){if(this._pollingInstanceMap.has(e)){var t=this._pollingInstanceMap.get(e);t.isRunning()||t.start()}else{var n=new Xi({manager:this,groupID:e,onInit:this._updateRequestData.bind(this),onSuccess:this._handleSuccess.bind(this),onFail:this._handleFailure.bind(this)});n.start(),this._pollingInstanceMap.set(e,n),Ge.l("".concat(this._n,".start groupID:").concat(e))}}},{key:"handleJoinResult",value:function(e){var t=this;return this._preCheck().then((function(){var n=e.longPollingKey,r=e.group,o=r.groupID;return t._joinedGroupMap.set(o,r),t._groupModule.updateGroupMap([r]),t._groupModule.deleteUnjoinedAVChatRoom(o),t._groupModule.emitGroupListUpdate(!0,!1),pt(n)?mi({status:Ze,group:r}):Promise.resolve()}))}},{key:"startRunLoop",value:function(e){var t=this;return this.handleJoinResult(e).then((function(){var n=e.longPollingKey,r=e.group,o=e.startSeq,a=void 0===o?0:o,i=r.groupID;return t._pollingRequestInfoMap.set(i,{key:n,startSeq:a}),t.start(i),t._groupModule.isLoggedIn()?mi({status:Ze,group:r}):mi({status:Ze})}))}},{key:"_preCheck",value:function(){if(this._getModule(qn).isUnlimitedAVChatRoom())return Promise.resolve();if(!this.hasJoinedAVChatRoom())return Promise.resolve();var e=_(this._joinedGroupMap.entries().next().value,2),t=e[0],n=e[1];if(this._groupModule.isLoggedIn()){if(n.selfInfo.role!==T.GRP_MBR_ROLE_OWNER&&n.ownerID!==this._groupModule.getMyUserID())return this._groupModule.quitGroup(t);this._groupModule.deleteLocalGroupAndConversation(t)}else this._groupModule.deleteLocalGroupAndConversation(t);return this.reset(t),Promise.resolve()}},{key:"joinWithoutAuth",value:function(e){var t=this,n=e.groupID,r="".concat(this._n,".").concat("joinWithoutAuth"),o=new Ka("joinWithoutAuth");return this._groupModule.request({protocolName:_o,requestData:e}).then((function(e){var a=e.data.longPollingKey;if(t._groupModule.probeNetwork().then((function(e){var t=_(e,2);t[0];var r=t[1];o.setNetworkType(r).setMessage("groupID:".concat(n," longPollingKey:").concat(a)).end(!0)})),pt(a))return vi({code:Aa.CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN});Ge.l("".concat(r," ok. groupID:").concat(n)),t._getModule(zn).setCompleted("".concat(T.CONV_GROUP).concat(n));var i=new Ai({groupID:n});return t.startRunLoop({group:i,longPollingKey:a}),di({status:Ze})})).catch((function(e){return Ge.e("".concat(r," failed. groupID:").concat(n," error:"),e),t._groupModule.probeNetwork().then((function(t){var r=_(t,2),a=r[0],i=r[1];o.setError(e,a,i).setMessage("groupID:".concat(n)).end(!0)})),vi(e)})).finally((function(){t._groupModule.getModule(Kn).reportAtOnce()}))}},{key:"getGroupOnlineMemberCount",value:function(e){var t=this._onlineMemberCountMap.get(e)||{},n=Date.now();return en(t)||n-t.lastSyncTime>1e3*t.expireTime&&n-t.latestUpdateTime>1e4&&n-t.lastReqTime>3e3?(t.lastReqTime=n,this._onlineMemberCountMap.set(e,t),this._getGroupOnlineMemberCount(e).then((function(e){return di({memberCount:e.memberCount})})).catch((function(e){return vi(e)}))):mi({memberCount:t.memberCount})}},{key:"_getGroupOnlineMemberCount",value:function(e){var t=this,n="".concat(this._n,".").concat("_getGroupOnlineMemberCount");return this._groupModule.request({protocolName:Po,requestData:{groupID:e}}).then((function(r){var o=t._onlineMemberCountMap.get(e)||{},a=r.data,i=a.onlineMemberNum,s=void 0===i?0:i,c=a.expireTime,l=void 0===c?t.DEFAULT_EXPIRE_TIME:c;Ge.l("".concat(n," ok. groupID:").concat(e," memberCount:").concat(s," expireTime:").concat(l));var u=Date.now();return en(o)&&(o.lastReqTime=u),t._onlineMemberCountMap.set(e,Object.assign(o,{lastSyncTime:u,latestUpdateTime:u,memberCount:s,expireTime:l})),{memberCount:s}})).catch((function(r){return Ge.w("".concat(n," failed. error:"),r),new Ka("_getGroupOnlineMemberCount").setCode(r.code).setMessage("groupID:".concat(e," error:").concat(JSON.stringify(r))).setNetworkType(t._groupModule.getNetworkType()).end(),Promise.reject(r)}))}},{key:"_getModule",value:function(e){return this._groupModule.getModule(e)}},{key:"setPollingInterval",value:function(e){pt(e)||(st(e)?this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=e:this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=parseInt(e,10))}},{key:"setPollingIntervalPlus",value:function(e){pt(e)||(st(e)?this.DEFAULT_POLLING_INTERVAL_PLUS=e:this.DEFAULT_POLLING_INTERVAL_PLUS=parseInt(e,10))}},{key:"setPollingNoMessageCount",value:function(e){pt(e)||(st(e)?this.DEFAULT_POLLING_NO_MESSAGE_COUNT=e:this.DEFAULT_POLLING_NO_MESSAGE_COUNT=parseInt(e,10))}},{key:"setPollingSimplifiedMessage",value:function(e){pt(e)||"0"!==e&&"1"!==e||(this.DEFAULT_POLLING_SIMPLIFIED_MSG=parseInt(e,10))}},{key:"getPollingInterval",value:function(){return this._pollingInterval}},{key:"onAVChatRoomMemberBanned",value:function(e){var t=e.payload.groupProfile.groupID;Ge.l("".concat(this._n,".onAVChatRoomMemberBanned groupID:").concat(t)),this._groupModule.deleteLocalGroupAndConversation(t),this.reset(t)}},{key:"restartPolling",value:function(){Ge.l("".concat(this._n,".restartPolling count:").concat(this._pollingInstanceMap.size));var e,t=w(this._pollingInstanceMap.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.stop(),n.start()}}catch(o){t.e(o)}finally{t.f()}}},{key:"reset",value:function(e){if(e){Ge.l("".concat(this._n,".reset groupID:").concat(e));var t=this._pollingInstanceMap.get(e);t&&t.stop(),this._pollingInstanceMap.delete(e),this._joinedGroupMap.delete(e),this._pollingRequestInfoMap.delete(e),this._onlineMemberCountMap.delete(e)}else{Ge.l("".concat(this._n,".reset all"));var n,r=w(this._pollingInstanceMap.values());try{for(r.s();!(n=r.n()).done;)n.value.stop()}catch(a){r.e(a)}finally{r.f()}this._pollingInstanceMap.clear(),this._joinedGroupMap.clear(),this._pollingRequestInfoMap.clear(),this._onlineMemberCountMap.clear(),this._broadcastMessageIDMap.clear()}this.sequencesLinkedList.reset(),this.messageIDLinkedList.reset(),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=300,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0}}]),e}(),es=1,ts=15,ns=function(){function e(t){o(this,e),this._groupModule=t,this._n="GroupSystemNoticeHandler",this.pendencyMap=new Map}return i(e,[{key:"onNewGroupSystemNotice",value:function(e){var t=e.dataList,n=e.isSyncingEnded,r=e.isInstantMessage;Ge.d("".concat(this._n,".onReceiveSystemNotice count:").concat(t.length));var o=this.newSystemNoticeStoredAndSummary({notifiesList:t,isInstantMessage:r}),a=o.eventDataList,i=o.result;a.length>0&&(this._groupModule.getModule(zn).onNewMessage({conversationOptionsList:a,isInstantMessage:r}),this._onReceivedGroupSystemNotice({result:i,isInstantMessage:r})),r?i.length>0&&this._groupModule.emitOuterEvent(S.MESSAGE_RECEIVED,i):!0===n&&this._clearGroupSystemNotice()}},{key:"newSystemNoticeStoredAndSummary",value:function(e){var t=e.notifiesList,r=e.isInstantMessage,o=null,a=t.length,i=0,s=[],c={conversationID:T.CONV_SYSTEM,unreadCount:0,type:T.CONV_SYSTEM,subType:null,lastMessage:null};for(i=0;i<a;i++){var l=t[i],u=l.groupProfile,d=u.communityType,p=void 0===d?0:d,f=u.topicID,h=void 0===f?void 0:f,m=l.elements,v=m.topicIDList,g=void 0===v?void 0:v,_=m.operationType;if(!(2!==p||en(h)&&en(g))){if([17,18,20].includes(_)){this._handleTopicSystemNotice(l);continue}en(h)||(l.to=h)}l.elements.operationType!==ts&&(l.currentUser=this._groupModule.getMyUserID(),l.conversationType=T.CONV_SYSTEM,l.conversationID=T.CONV_SYSTEM,(o=new ui(l)).setElement({type:T.MSG_GRP_SYS_NOTICE,content:n(n({},l.elements),{},{groupProfile:n({},l.groupProfile)})}),o.isSystemMessage=!0,(1===o.sequence&&1===o.random||2===o.sequence&&2===o.random)&&(o.sequence=Ot(),o.random=Ot(),o.generateMessageID(),Ge.l("".concat(this._n,".newSystemNoticeStoredAndSummary sequence and random maybe duplicated, regenerate. ID:").concat(o.ID))),this._groupModule.getModule(zn).pushIntoNoticeResult(s,o)&&(r?c.unreadCount++:o.setIsRead(!0),c.subType=o.conversationSubType))}return c.lastMessage=s[s.length-1],{eventDataList:s.length>0?[c]:[],result:s}}},{key:"_clearGroupSystemNotice",value:function(){var e=this;this._getPendencyList().then((function(t){t.forEach((function(t){e.pendencyMap.set("".concat(t.from,"_").concat(t.groupID,"_").concat(t.to),t)}));var n=e._groupModule.getModule(zn).getLocalMessageList(T.CONV_SYSTEM),r=[];n.forEach((function(t){var n=t.payload,o=n.operatorID,a=n.operationType,i=n.groupProfile;if(a===es){var s="".concat(o,"_").concat(i.groupID,"_").concat(i.to),c=e.pendencyMap.get(s);c&&st(c.handled)&&0!==c.handled&&r.push(t)}})),e.deleteGroupSystemNotice({messageList:r})}))}},{key:"deleteGroupSystemNotice",value:function(e){var t=this,n="".concat(this._n,".deleteGroupSystemNotice");return dt(e.messageList)&&0!==e.messageList.length?(Ge.l("".concat(n," ")+e.messageList.map((function(e){return e.ID}))),this._groupModule.request({protocolName:No,requestData:{messageListToDelete:e.messageList.map((function(e){return{from:T.CONV_SYSTEM,messageSeq:e.clientSequence,messageRandom:e.random}}))}}).then((function(){Ge.l("".concat(n," ok"));var r=t._groupModule.getModule(zn);return e.messageList.forEach((function(e){r.deleteLocalMessage(e)})),di()})).catch((function(e){return Ge.e("".concat(n," error:"),e),vi(e)}))):mi()}},{key:"_getPendencyList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.type,r=void 0===n?void 0:n,o=t.startTime,a=void 0===o?0:o,i=t.limit,s=void 0===i?20:i;return this._groupModule.request({protocolName:Ao,requestData:{type:r,startTime:a,limit:s,handleAccount:this._groupModule.getMyUserID()}}).then((function(t){var n=t.data.pendencyList;return 0!==t.data.nextStartTime?e._getPendencyList({startTime:t.data.nextStartTime}).then((function(e){return[].concat(b(n),b(e))})):n}))}},{key:"getGroupApplicationList",value:function(){var e=this;return this._getPendencyList().then((function(t){return e._getPendencyList({type:T.GRP_COMMUNITY}).then((function(n){return t.push.apply(t,b(n)),e._handlePendencyResult(t)})).catch((function(n){return e._handlePendencyResult(t)}))}))}},{key:"_handlePendencyResult",value:function(e){var t=this,n=[];return e.forEach((function(e){t.pendencyMap.set("".concat(e.from,"_").concat(e.groupID,"_").concat(e.to),e),0===e.handled&&n.push({applicant:e.from,applicantNick:e.fromUserNickName,groupName:e.groupName,groupID:e.groupID,authentication:e.authentication,messageKey:e.time,applicationType:e.applicationType,userID:e.userID})})),mi({applicationList:n})}},{key:"_onReceivedGroupSystemNotice",value:function(e){var t=this,n=e.result;e.isInstantMessage&&n.forEach((function(e){switch(e.payload.operationType){case 1:break;case 2:t._onApplyGroupRequestAgreed(e);break;case 3:break;case 4:t._onMemberKicked(e);break;case 5:t._onGroupDismissed(e);break;case 6:break;case 7:t._onInviteGroup(e);break;case 8:t._onQuitGroup(e);break;case 9:t._onSetManager(e);break;case 10:t._onDeleteManager(e);break;case 11:case 12:case 15:break;case 20:t._onMessageRemindTypeSynced(e);break;case 21:t._groupModule.onAVChatRoomMemberBanned(e)}}))}},{key:"_onApplyGroupRequestAgreed",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;if(n){t._groupModule.updateGroupMap([n]);var r=!n.isSupportTopic;t._groupModule.emitGroupListUpdate(!0,r)}}))}},{key:"_onMemberKicked",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:"_onGroupDismissed",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t);var n=this._groupModule._AVChatRoomHandler;n&&n.checkJoinedAVChatRoomByID(t)&&n.reset(t)}},{key:"_onInviteGroup",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;n&&(t._groupModule.updateGroupMap([n]),t._groupModule.emitGroupListUpdate())}))}},{key:"_onQuitGroup",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:"_onSetManager",value:function(e){var t=e.payload.groupProfile,n=t.to,r=t.groupID,o=this._groupModule.getModule(Hn).getLocalGroupMemberInfo(r,n);o&&o.updateRole(T.GRP_MBR_ROLE_ADMIN)}},{key:"_onDeleteManager",value:function(e){var t=e.payload.groupProfile,n=t.to,r=t.groupID,o=this._groupModule.getModule(Hn).getLocalGroupMemberInfo(r,n);o&&o.updateRole(T.GRP_MBR_ROLE_MEMBER)}},{key:"_onMessageRemindTypeSynced",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.messageRemindType;this._groupModule.getModule(zn).onGroupMessageRemindTypeSynced({groupID:t,messageRemindType:n})}},{key:"_handleTopicSystemNotice",value:function(e){var t=e.groupProfile,n=t.groupID,r=t.topicID,o=e.elements,a=o.operationType,i=o.topicIDList,s=o.messageRemindType,c=this._groupModule.getModule(Yn);17===a?c.onTopicCreated({groupID:n,topicID:r}):18===a?c.onTopicDeleted({groupID:n,topicIDList:i}):20===a&&c.onTopicMessageRemindTypeUpdated({groupID:n,topicID:r,messageRemindType:s})}},{key:"reset",value:function(){this.pendencyMap.clear()}}]),e}(),rs=["relayFlag"],os=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="GroupModule",n._commonGroupHandler=null,n._AVChatRoomHandler=null,n._groupSystemNoticeHandler=null,n._commonGroupHandler=new Bi(m(n)),n._groupAttributesHandler=new qi(m(n)),n._groupCountersHandler=new Ji(m(n)),n._AVChatRoomHandler=new Zi(m(n)),n._groupTipsHandler=new Vi(m(n)),n._groupSystemNoticeHandler=new ns(m(n)),n.groupMap=new Map,n._unjoinedAVChatRoomList=new Map,n._receiptDetailCompleteMap=new Map,n.getInnerEmitterInstance().on(yi,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("polling_interval"),t=this.getCloudConfig("polling_interval_plus"),n=this.getCloudConfig("polling_no_msg_count"),r=this.getCloudConfig("polling_simplified_msg");this._AVChatRoomHandler&&(Ge.l("".concat(this._n,"._onCloudConfigUpdated pollingInterval:").concat(e)+" pollingIntervalPlus:".concat(t," pollingNoMessageCount:").concat(n)+" pollingSimplifiedMessage:".concat(r)),this._AVChatRoomHandler.setPollingInterval(e),this._AVChatRoomHandler.setPollingIntervalPlus(t),this._AVChatRoomHandler.setPollingNoMessageCount(n),this._AVChatRoomHandler.setPollingSimplifiedMessage(r))}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&(this._commonGroupHandler.onCheckTimer(e),this._groupTipsHandler.onCheckTimer(e))}},{key:"guardForAVChatRoom",value:function(e){var t=this;if(e.conversationType===T.CONV_GROUP){var n=Dt(e.to)?qt(e.to):e.to;return this.hasLocalGroup(n)?mi():this.getGroupProfile({groupID:n}).then((function(r){var o=r.data.group.type;if(Ge.l("".concat(t._n,".guardForAVChatRoom. groupID:").concat(n," type:").concat(o)),o===T.GRP_AVCHATROOM){var a=Aa.MESSAGE_SEND_FAIL_NOT_IN_AVCHATROOM;return vi(new pi({code:a,message:t.getErrorMessage(a,e.from,n),data:{message:e}}))}return mi()}))}return mi()}},{key:"checkJoinedAVChatRoomByID",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:"onNewGroupMessage",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onNewGroupMessage(e)}},{key:"updateNextMessageSeq",value:function(e){var t=this;if(dt(e)){var n=this.getModule(Yn);e.forEach((function(e){var r=e.conversationID.replace(T.CONV_GROUP,"");Dt(r)&&n.updateLastMessage(r,e.lastMessage),t.groupMap.has(r)&&(t.groupMap.get(r).nextMessageSeq=e.lastMessage.sequence+1)}))}}},{key:"onNewGroupTips",value:function(e){this._groupTipsHandler&&this._groupTipsHandler.onNewGroupTips(e)}},{key:"onGroupMessageRevoked",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onGroupMessageRevoked(e)}},{key:"onNewGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.onNewGroupSystemNotice(e)}},{key:"onGroupMessageReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){var n=e.elements.groupMessageReadNotice;if(!pt(n)){var r=t.getModule(zn);n.forEach((function(e){var n=e.groupID,o=e.topicID,a=void 0===o?void 0:o,i=e.lastMessageSeq;Ge.d("".concat(t._n,".onGroupMessageReadNotice groupID:").concat(n," lastMessageSeq:").concat(i));var s="".concat(T.CONV_GROUP).concat(n),c=!0;en(a)||(s="".concat(T.CONV_GROUP).concat(a),c=!1),r.updateIsReadAfterReadReport({conversationID:s,lastMessageSeq:i}),r.updateUnreadCount(s,c),r.clearGroupAtInfoList(s,c)}))}}))}},{key:"onReadReceiptList",value:function(e){var t=this;Ge.d("".concat(this._n,".onReadReceiptList options:"),JSON.stringify(e)),e.dataList.forEach((function(e){var n=e.groupProfile,r=e.elements,o=n.groupID,a=t.getModule(zn),i=r.readReceiptList;a.updateReadReceiptInfo({groupID:o,readReceiptList:i})}))}},{key:"onGroupMessageModified",value:function(e){Ge.d("".concat(this._n,".onGroupMessageModified options:"),JSON.stringify(e));var t=this.getModule(zn);e.dataList.forEach((function(e){t.onMessageModified(n(n({},e),{},{conversationType:T.CONV_GROUP,to:e.topicID?e.topicID:e.groupID}))}))}},{key:"deleteGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.deleteGroupSystemNotice(e)}},{key:"initGroupMap",value:function(e){this.groupMap.set(e.groupID,new Ai(e))}},{key:"deleteGroup",value:function(e){this.groupMap.delete(e)}},{key:"updateGroupMap",value:function(e){var t,n=this,r=this.getModule(zn);e.forEach((function(e){t=e.groupID,n.groupMap.has(t)?n.groupMap.get(t).updateGroup(e):(n.groupMap.set(t,new Ai(e)),r.deleteGroupRomaingMessageInfo(t))}));var o,a=this.getMyUserID(),i=w(this.groupMap);try{for(i.s();!(o=i.n()).done;){var s=_(o.value,2)[1];s.selfInfo.userID=a,"Owner"===s.selfInfo.role&&(s.ownerID=a)}}catch(l){i.e(l)}finally{i.f()}this._setStorageGroupList()}},{key:"getStorageGroupList",value:function(){return this.getModule(Wn).getItem("groupMap")}},{key:"_setStorageGroupList",value:function(){var e=this.getLocalGroupList().filter((function(e){var t=e.type;return!Et(t)})).filter((function(e){return!e.isSupportTopic})).slice(0,20).map((function(e){return{groupID:e.groupID,name:e.name,avatar:e.avatar,type:e.type}}));this.getModule(Wn).setItem("groupMap",e)}},{key:"getGroupMap",value:function(){return this.groupMap}},{key:"getLocalGroupList",value:function(){return b(this.groupMap.values())}},{key:"getLocalGroupProfile",value:function(e){return this.groupMap.get(e)}},{key:"sortLocalGroupList",value:function(){var e=b(this.groupMap).filter((function(e){var t=_(e,2);return t[0],!en(t[1].lastMessage)}));e.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})),this.groupMap=new Map(b(e))}},{key:"updateGroupLastMessage",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.handleUpdateGroupLastMessage(e)}},{key:"emitGroupListUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalGroupList();if(e&&this.emitOuterEvent(S.GROUP_LIST_UPDATED),t){var r=JSON.parse(JSON.stringify(n)),o=this.getModule(zn);o.updateConversationGroupProfile(r)}}},{key:"patchGroupMessageRemindType",value:function(){var e=this.getLocalGroupList(),t=this.getModule(zn),n=0;e.forEach((function(e){!0===t.patchMessageRemindType({ID:e.groupID,isC2CConversation:!1,messageRemindType:e.selfInfo.messageRemindType})&&(n+=1)})),Ge.l("".concat(this._n,".patchGroupMessageRemindType count:").concat(n))}},{key:"recomputeUnreadCount",value:function(){var e=this.getLocalGroupList(),t=this.getModule(zn);e.forEach((function(e){var n=e.groupID,r=e.selfInfo,o=r.excludedUnreadSequenceList,a=r.readedSequence;if(dt(o)){var i=0;o.forEach((function(t){t>=a&&t<=e.nextMessageSeq-1&&(i+=1)})),i>=1&&t.recomputeGroupUnreadCount({conversationID:"".concat(T.CONV_GROUP).concat(n),count:i})}}))}},{key:"getMyNameCardByGroupID",value:function(e){var t=this.getLocalGroupProfile(e);return t?t.selfInfo.nameCard:""}},{key:"isPagingGetCompleted",value:function(){return!!this._commonGroupHandler&&this._commonGroupHandler.isPagingGetCompleted()}},{key:"getGroupList",value:function(e){return this._commonGroupHandler?this._commonGroupHandler.getGroupList(e):mi()}},{key:"getGroupProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupProfile"),r=new Ka("getGroupProfile"),o=e.groupID,a=e.groupCustomFieldFilter;Ge.l("".concat(n," groupID:").concat(o));var i={groupIDList:[o],responseFilter:{groupBaseInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember","InviteJoinOption"],groupCustomFieldFilter:a,memberInfoFilter:["Role","JoinTime","MsgSeq","MsgFlag","NameCard"]}};return this.getGroupProfileAdvance(i).then((function(e){var a,i=e.data,s=i.successGroupList,c=i.failureGroupList;return Ge.l("".concat(n," ok")),c.length>0?vi(c[0]):(Et(s[0].type)&&!t.hasLocalGroup(o)?a=new Ai(s[0]):(t.updateGroupMap(s),a=t.getLocalGroupProfile(o)),a.isSupportTopic||t.getModule(zn).updateConversationGroupProfile([a]),r.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(o," type:").concat(a.type," muteAllMembers:").concat(a.muteAllMembers," ownerID:").concat(a.ownerID)).end(),di({group:a}))})).catch((function(o){return t.probeNetwork().then((function(t){var n=_(t,2),a=n[0],i=n[1];r.setError(o,a,i).setMessage("groupID:".concat(e.groupID)).end()})),Ge.e("".concat(n," failed. error:"),o),vi(o)}))}},{key:"getGroupProfileAdvance",value:function(e){var t="".concat(this._n,".getGroupProfileAdvance"),r=e.groupIDList;dt(r)&&r.length>50&&(this.outputWarning("GetGroupProfileLimit"),r.length=50);var o=[],a=[];r.forEach((function(e){jt({groupID:e})?a.push(e):o.push(e)}));var i=[];if(o.length>0){var s=this._getGroupProfileAdvance(n(n({},e),{},{groupIDList:o}));i.push(s)}if(a.length>0){var c=this._getGroupProfileAdvance(n(n({},e),{},{groupIDList:a,relayFlag:o.length>0}));i.push(c)}return Promise.all(i).then((function(e){var t=[],n=[];return e.forEach((function(e){t.push.apply(t,b(e.successGroupList)),n.push.apply(n,b(e.failureGroupList))})),di({successGroupList:t,failureGroupList:n})})).catch((function(e){return Ge.e("".concat(t," failed. error:"),e),vi(e)}))}},{key:"_getGroupProfileAdvance",value:function(e){var t=this,n=e.relayFlag,r=void 0!==n&&n,o=h(e,rs);return this.request({protocolName:fo,requestData:o}).then((function(e){Ge.l("".concat(t._n,"._getGroupProfileAdvance ok."));var n=e.data.groups;return{successGroupList:n.filter((function(e){return pt(e.errorCode)||0===e.errorCode})),failureGroupList:n.filter((function(e){return e.errorCode&&0!==e.errorCode})).map((function(e){return new pi({code:e.errorCode,message:e.errorInfo,data:{groupID:e.groupID}})}))}})).catch((function(t){return r&&jt({groupID:e.groupIDList[0]})?{successGroupList:[],failureGroupList:[]}:vi(t)}))}},{key:"createGroup",value:function(e){var t=this,r="".concat(this._n,".").concat("createGroup"),o=e.type,a=e.groupID;if(e.name&&!1===this._filterProfanity("name",e))return vi({code:Aa.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return vi({code:Aa.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return vi({code:Aa.PROFANITY_FOUND});if(!["Public","Private","ChatRoom","AVChatRoom","Community"].includes(o))return vi({code:Aa.ILLEGAL_GROUP_TYPE});if(!jt({type:o})){if(!en(a)&&jt({groupID:a}))return vi({code:Aa.ILLEGAL_GROUP_ID});e.isSupportTopic=void 0}if(Et(o)&&!pt(e.memberList)&&e.memberList.length>0&&(e.memberList=void 0),this._canIUseJoinOption(o)||pt(e.joinOption)||(e.joinOption=void 0),jt({type:o})){if(!en(a)&&!jt({groupID:a}))return vi({code:Aa.ILLEGAL_GROUP_ID});e.isSupportTopic=!0===e.isSupportTopic?1:0}var i=new Ka("createGroup");Ge.l("".concat(r," options:"),e);var s=null,c=[];return this.request({protocolName:ho,requestData:n(n({},e),{},{ownerID:this.getMyUserID(),webPushFlag:1})}).then((function(o){var a=o.data,l=a.groupID,u=a.overLimitUserIDList,d=void 0===u?[]:u;if(s=l,c=d,i.setNetworkType(t.getNetworkType()).setMessage("groupType:".concat(e.type," groupID:").concat(l," overLimitUserIDList=").concat(d)).end(),Ge.l("".concat(r," ok groupID:").concat(l," overLimitUserIDList:"),d),e.type===T.GRP_AVCHATROOM)return t.getGroupProfile({groupID:l});if(e.type===T.GRP_COMMUNITY&&1===e.isSupportTopic)return t.getGroupProfile({groupID:l});en(e.memberList)||en(d)||(e.memberList=e.memberList.filter((function(e){return-1===d.indexOf(e.userID)}))),t.updateGroupMap([n(n({},e),{},{groupID:l})]);var p=t.getModule(Pn),f=p.createCustomMessage({to:l,conversationType:T.CONV_GROUP,payload:{data:"group_create",extension:t.isIntl()?"".concat(t.getMyUserID()," created a group"):"".concat(t.getMyUserID(),"创建群组")}});return p.sendMessageInstance(f),t.emitGroupListUpdate(),t.getGroupProfile({groupID:l})})).then((function(e){var t=e.data.group,n=t.selfInfo,r=n.nameCard,o=n.joinTime;return t.updateSelfInfo({nameCard:r,joinTime:o,messageRemindType:T.MSG_REMIND_ACPT_AND_NOTE,role:T.GRP_MBR_ROLE_OWNER}),di({group:t,overLimitUserIDList:c})})).catch((function(o){if(i.setMessage("groupType:".concat(e.type)),t.probeNetwork().then((function(e){var t=_(e,2),n=t[0],r=t[1];i.setError(o,n,r).end()})),10010===o.code||10007===o.code){t.updateGroupMap([n(n({},e),{},{groupID:s})]);var a=t.getLocalGroupProfile(s);return Ge.l("".concat(r," success, but failed to get group profile.")),di({group:a,overLimitUserIDList:c})}return Ge.e("".concat(r," failed. error:"),o),vi(o)}))}},{key:"dismissGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("dismissGroup");if(this.hasLocalGroup(e)&&this.getLocalGroupProfile(e).type===T.GRP_WORK)return vi(new pi({code:Aa.CANNOT_DISMISS_WORK}));var r=new Ka("dismissGroup");return r.setMessage("groupID:".concat(e)),Ge.l("".concat(n," groupID:").concat(e)),this.request({protocolName:mo,requestData:{groupID:e}}).then((function(){return r.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok")),t.deleteLocalGroupAndConversation(e),t.checkJoinedAVChatRoomByID(e)&&t._AVChatRoomHandler.reset(e),t._groupAttributesHandler.deleteLocalGroupAttributes(e),di({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"updateGroupProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("updateGroupProfile");if(this.hasLocalGroup(e.groupID)){var r=this.getLocalGroupProfile(e.groupID).type;this._canIUseJoinOption(r)||pt(e.joinOption)||(Ge.w("".concat(n," joinOption is unavailable for Work/Meeting/AVChatRoom")),e.joinOption=void 0)}if(pt(e.muteAllMembers)||(e.muteAllMembers?e.muteAllMembers="On":e.muteAllMembers="Off"),e.name&&!1===this._filterProfanity("name",e))return vi({code:Aa.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return vi({code:Aa.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return vi({code:Aa.PROFANITY_FOUND});var o=new Ka("updateGroupProfile");return o.setMessage(JSON.stringify(e)),Ge.l("".concat(n," groupID:").concat(e.groupID)),this.request({protocolName:vo,requestData:e}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok")),t.hasLocalGroup(e.groupID)&&(t.groupMap.get(e.groupID).updateGroup(e),t._setStorageGroupList()),di({group:t.groupMap.get(e.groupID)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Ge.l("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_filterProfanity",value:function(e,t){var n=this.getModule(lr);if(!n)return!0;var r=n.filterText(t[e],J),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"joinGroup",value:function(e){var t=this,n=e.groupID,r=e.type,o="".concat(this._n,".joinGroup");if(r===T.GRP_WORK)return vi({code:Aa.CANNOT_JOIN_WORK});if(this.deleteUnjoinedAVChatRoom(n),this.hasLocalGroup(n)){if(!this.isLoggedIn())return mi({status:T.JOIN_STATUS_ALREADY_IN_GROUP});var a=new Ka("applyJoinGroup");return this.getGroupProfile({groupID:n}).then((function(){return a.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," joinedStatus:").concat(T.JOIN_STATUS_ALREADY_IN_GROUP)).end(),mi({status:T.JOIN_STATUS_ALREADY_IN_GROUP})})).catch((function(r){return a.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," unjoined")).end(),Ge.w("".concat(o," ").concat(n," was unjoined, now join!")),t.groupMap.delete(n),t.applyJoinGroup(e)}))}return Ge.l("".concat(o," groupID:").concat(n)),this.isLoggedIn()?this.applyJoinGroup(e):this._AVChatRoomHandler.joinWithoutAuth(e)}},{key:"applyJoinGroup",value:function(e){var t=this,r="".concat(this._n,".").concat("applyJoinGroup"),o=e.groupID;if(!en(e.applyMessage)&&!1===this._filterProfanity("applyMessage",e))return vi({code:Aa.PROFANITY_FOUND});var a=new Ka("applyJoinGroup"),i=n({},e),s=this.canIUse(H.AVCHATROOM_HISTORY_MSG);return s&&(i.historyMessageFlag=1),this.getModule(zn).deleteTopicRoamingMessageInfo(o),this.request({protocolName:go,requestData:i}).then((function(e){var n=e.data,i=n.joinedStatus,c=n.longPollingKey,l=n.startSeq,u=n.avChatRoomFlag,d=n.avChatRoomKey,p=n.messageList,f="groupID:".concat(o," joinedStatus:").concat(i," longPollingKey:").concat(c," startSeq:").concat(l)+" avChatRoomFlag:".concat(u," canGetAVChatRoomHistoryMessage:").concat(s,",")+" history message count:".concat(en(p)?0:p.length);switch(a.setNetworkType(t.getNetworkType()).setMessage("".concat(f)).end(),Ge.l("".concat(r," ok. ").concat(f)),i){case et:return di({status:et});case Ze:return t.getGroupProfile({groupID:o}).then((function(e){var n=e.data.group;return t._handleJoinResult({group:n,avChatRoomFlag:u,longPollingKey:c,startSeq:l,avChatRoomKey:d,messageList:p})})).catch((function(){var e=new Ai({groupID:o});return t._handleJoinResult({group:e,avChatRoomFlag:u,longPollingKey:c,startSeq:l,avChatRoomKey:d,messageList:p})}));default:var h=new pi({code:Aa.JOIN_GROUP_FAIL});return Ge.e("".concat(r," failed. error:"),h),vi(h)}})).catch((function(e){return a.setMessage("groupID:".concat(o)),t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}},{key:"_handleJoinResult",value:function(e){var t,n=this,r=e.group,o=e.avChatRoomFlag,a=e.longPollingKey,i=e.startSeq,s=e.avChatRoomKey,c=e.messageList,l=r.groupID;return 1===o?(this.getModule(zn).setCompleted("".concat(T.CONV_GROUP).concat(l)),this._groupAttributesHandler.initGroupAttributesCache({groupID:l,avChatRoomKey:s}),this._groupCountersHandler.initGroupCountersCache({groupID:l,avChatRoomKey:s}),(t=pt(a)?this._AVChatRoomHandler.handleJoinResult({group:r}):this._AVChatRoomHandler.startRunLoop({group:r,longPollingKey:a,startSeq:i})).then((function(){n._onAVChatRoomHistoryMessage(c)})),t):(this.emitGroupListUpdate(!0,!1),di({status:Ze,group:r}))}},{key:"quitGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("quitGroup");Ge.l("".concat(n," groupID:").concat(e));var r=this.checkJoinedAVChatRoomByID(e);if(!r&&!this.hasLocalGroup(e))return vi({code:Aa.MEMBER_NOT_IN_GROUP});if(r&&!this.isLoggedIn())return Ge.l("".concat(n," anonymously ok. groupID:").concat(e)),this.deleteLocalGroupAndConversation(e),this._AVChatRoomHandler.reset(e),mi({groupID:e});var o=new Ka("quitGroup");return o.setMessage("groupID:".concat(e)),this.request({protocolName:bo,requestData:{groupID:e}}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok")),t.deleteLocalGroupAndConversation(e),r&&t._AVChatRoomHandler.reset(e),t._groupAttributesHandler.deleteLocalGroupAttributes(e),di({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"searchGroupByID",value:function(e){var t=this,n="".concat(this._n,".").concat("searchGroupByID"),r={groupIDList:[e]},o=new Ka("searchGroupByID");return o.setMessage("groupID:".concat(e)),Ge.l("".concat(n," groupID:").concat(e)),this.request({protocolName:yo,requestData:r}).then((function(e){var r=e.data.groupProfile;if(0!==r[0].errorCode)throw new pi({code:r[0].errorCode,message:r[0].errorInfo});return o.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok")),di({group:new Ai(r[0])})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"changeGroupOwner",value:function(e){var t=this,n="".concat(this._n,".").concat("changeGroupOwner");if(this.hasLocalGroup(e.groupID)&&this.getLocalGroupProfile(e.groupID).type===T.GRP_AVCHATROOM)return vi({code:Aa.CANNOT_CHANGE_OWNER_IN_AVCHATROOM});if(e.newOwnerID===this.getMyUserID())return vi({code:Aa.CANNOT_CHANGE_OWNER_TO_SELF});var r=new Ka("changeGroupOwner");return r.setMessage("groupID:".concat(e.groupID," newOwnerID:").concat(e.newOwnerID)),Ge.l("".concat(n," groupID:").concat(e.groupID)),this.request({protocolName:Oo,requestData:e}).then((function(){r.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok"));var o=e.groupID,a=e.newOwnerID;t.groupMap.get(o).ownerID=a;var i=t.getModule(Hn).getLocalGroupMemberList(o);if(i instanceof Map){var s=i.get(t.getMyUserID());pt(s)||(s.updateRole("Member"),t.groupMap.get(o).selfInfo.role="Member");var c=i.get(a);pt(c)||c.updateRole("Owner")}return t.emitGroupListUpdate(!0,!1),di({group:t.groupMap.get(o)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"getGroupApplicationList",value:function(){return this._groupSystemNoticeHandler.getGroupApplicationList()}},{key:"handleGroupApplication",value:function(e){var t,n,r,o,a,i=this,s="".concat(this._n,".").concat("handleGroupApplication"),c=e.handleAction,l=e.handleMessage,u=e.message,d=e.application;u?(t=u.payload.operatorID,n=u.payload.groupProfile.groupID,r=u.payload.authentication,o=u.payload.messageKey):d&&(t=d.applicant,n=d.groupID,r=d.authentication,o=d.messageKey);var p=Mo;d&&2===d.applicationType&&(p=ko,a=d.userID);var f=new Ka("handleGroupApplication");return f.setMessage("groupID:".concat(n)),Ge.l("".concat(s," groupID:").concat(n)),this.request({protocolName:p,requestData:{handleAction:c,handleMessage:l,applicant:t,invitee:a,groupID:n,authentication:r,messageKey:o}}).then((function(){return f.setNetworkType(i.getNetworkType()).end(),Ge.l("".concat(s," ok")),u&&i._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),di({group:i.getLocalGroupProfile(n)})})).catch((function(e){return i.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];f.setError(e,r,o).end()})),Ge.e("".concat(s," failed. error"),e),vi(e)}))}},{key:"handleGroupInvitation",value:function(e){var t=this,r="".concat(this._n,".").concat("handleGroupInvitation"),o=e.message.payload,a=o.groupProfile.groupID,i=o.authentication,s=o.messageKey,c=o.operatorID,l=e.handleAction,u=new Ka("handleGroupInvitation");return u.setMessage("groupID:".concat(a," inviter:").concat(c," handleAction:").concat(l)),Ge.l("".concat(r," groupID:").concat(a," inviter:").concat(c," handleAction:").concat(l)),this.request({protocolName:Co,requestData:n(n({},e),{},{inviter:c,groupID:a,authentication:i,messageKey:s})}).then((function(){return u.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(r," ok")),t._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),di({group:t.getLocalGroupProfile(a)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setError(e,r,o).end()})),Ge.e("".concat(r," failed. error"),e),vi(e)}))}},{key:"getGroupOnlineMemberCount",value:function(e){return this._AVChatRoomHandler?this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)?this._AVChatRoomHandler.getGroupOnlineMemberCount(e):mi({memberCount:0}):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"hasLocalGroup",value:function(e){return this.groupMap.has(e)}},{key:"deleteLocalGroupAndConversation",value:function(e){var t=this.checkJoinedAVChatRoomByID(e);if(Ge.l("".concat(this._n,".deleteLocalGroupAndConversation isJoinedAVChatRoom:").concat(t)),t&&this.getModule(zn).deleteLocalConversation("".concat(T.CONV_GROUP).concat(e)),jt({groupID:e})){var n=this.getLocalGroupProfile(e);n&&!0===n.isSupportTopic&&this.getModule(Yn).deleteTopicListInCommunity(e)}this._deleteLocalGroup(e),this.emitGroupListUpdate(!0,!1)}},{key:"_deleteLocalGroup",value:function(e){this.groupMap.delete(e),this.getModule(Hn).deleteGroupMemberList(e),this._setStorageGroupList()}},{key:"sendMessage",value:function(e,t){if(dt(e._receiverList)&&e._receiverList.length>0&&!this.canIUse(H.MSG_TO_SPECIFIED_GRP_MBR))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n=this.createGroupMessagePack(e,t);return this.request(n)}},{key:"createGroupMessagePack",value:function(e,t){var n=null;t&&t.offlinePushInfo&&(n=t.offlinePushInfo);var r="";ct(e.cloudCustomData)&&e.cloudCustomData.length>0&&(r=e.cloudCustomData);var o=[];if(ut(t)&&ut(t.messageControlInfo)){var a=t.messageControlInfo,i=a.excludedFromUnreadCount,s=a.excludedFromLastMessage,c=a.excludedFromContentModeration;!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===c&&o.push("NoMsgCheck")}var l=void 0;dt(e._receiverList)&&e._receiverList.length>0&&(l=e._receiverList,e._receiverList.length>50&&(l=e._receiverList.slice(0,50),this.outputWarning("ReceiverListLimit")));var u=this.isOnlineMessage(e,t)?1:0,d=e.getGroupAtInfoList(),p={fromAccount:this.getMyUserID(),groupID:e.to,msgBody:e.getElements(),cloudCustomData:r,random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:e.type!==T.MSG_TEXT||en(d)?void 0:d,onlineOnlyFlag:u,clientTime:e.clientTime,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||"",desc:n.description||"",ext:n.extension||"",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0,isVoipPush:this._isVoipPush(n)},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||""}}:void 0,messageControlInfo:0===u?o:void 0,needReadReceipt:!0!==e.needReadReceipt||this.isMessageFromOrToAVChatroom(e.to)?0:1,receiverList:l,isSupportExtension:!0===e.isSupportExtension?1:0};return Dt(e.to)&&(p.groupID=qt(e.to),p.topicID=e.to),{protocolName:Or,tjgID:this.generateTjgID(e),requestData:p}}},{key:"_isVoipPush",value:function(e){var t=void 0;return pt(e.disableVoipPush)||(t=!1===e.disableVoipPush?1:0),t}},{key:"revokeMessage",value:function(e){var t={groupID:e.to,msgSeqList:[{msgSeq:e.sequence}]};return Dt(e.to)&&(t.groupID=qt(e.to),t.topicID=e.to),this.request({protocolName:wo,requestData:t})}},{key:"deleteMessage",value:function(e){var t=e.to,n=e.keyList;Ge.l("".concat(this._n,".deleteMessage groupID:").concat(t," count:").concat(n.length));var r={groupID:t,deleter:this.getMyUserID(),keyList:n};return Dt(t)&&(r.groupID=qt(t),r.topicID=t),this.request({protocolName:Uo,requestData:r})}},{key:"modifyRemoteMessage",value:function(e){var t=e.to,n=e.sequence,r=e.payload,o=e.type,a=e.version,i=void 0===a?0:a,s=e.cloudCustomData,c=t,l=void 0;Dt(t)&&(c=qt(t),l=t);var u=void 0;return Kt(o)&&(u=[]).push({type:o,content:r}),this.request({protocolName:Vo,requestData:{groupID:c,topicID:l,sequence:n,version:i,elements:u,cloudCustomData:s}})}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._n,".getRoamingMessage"),r=e.conversationID,o=e.groupID,a=e.sequence,i=new Ka("getGroupRoamingMessages"),s=0,c=void 0;return Dt(o)&&(o=qt(c=o)),this._computeLastSequence({groupID:o,topicID:c,sequence:a}).then((function(e){return s=e,Ge.l("".concat(n," groupID:").concat(o," startSequence:").concat(s)),t.request({protocolName:Io,requestData:{groupID:o,count:21,sequence:s,topicID:c}})})).then((function(e){var a=e.data,l=a.messageList,u=a.complete,d=a.invisibleSequenceList,p=void 0===d?[]:d;pt(l)?Ge.l("".concat(n," ok. complete:").concat(u," but messageList is undefined!")):Ge.l("".concat(n," ok. complete:").concat(u," count:").concat(l.length));var f=t._getMinSequence(p,l)-1;i.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(o," topicID:").concat(c," startSequence:").concat(s," complete:").concat(u," nextSequence:").concat(f)).end();var h=t.getModule(zn),m=[];return en(l)||(h.updateRoamingMessageSequence(r,f),m=h.onRoamingMessage(l,r),h.updateIsRead(r),h.patchConversationLastMessage(r)),(2===u||f<=1)&&(h.setCompleted(r),f=""),Ge.l("".concat(n," nextReqID:").concat(f,", stored message count:").concat(m.length,", invisible sequence count:").concat(p.length)),{nextReqID:f+"",storedMessageList:m}})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];i.setError(e,r,a).setMessage("groupID:".concat(o," topicID:").concat(c," startSequence:").concat(s)).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_getGroupIDOfMessage",value:function(e){return e.conversationID.replace(T.CONV_GROUP,"")}},{key:"_getMinSequence",value:function(e,t){var n=0;en(t)||(n=t[t.length-1].sequence);var r=0;return en(e)||(r=e[e.length-1]),Ge.l("".concat(this._n,"._getMinSequence minVisibleSequence:").concat(n," minInvisibleSequence:").concat(r)),r>0&&r<n?r:n}},{key:"getReadReceiptList",value:function(e){var t=this,n="".concat(this._n,".").concat("getReadReceiptList"),r=this._getGroupIDOfMessage(e[0]),o=this.getMyUserID(),a=e.filter((function(e){return e.from===o&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));if(Ge.l("".concat(n," groupID:").concat(r," sequenceList:").concat(JSON.stringify(a))),0===a.length)return mi({messageList:e});var i=new Ka("getReadReceiptList");return i.setMessage("groupID:".concat(r)),this.request({protocolName:Eo,requestData:{groupID:r,sequenceList:a}}).then((function(t){i.end(),Ge.l("".concat(n," ok"));var r=t.data.readReceiptList;return dt(r)&&r.forEach((function(t){e.forEach((function(e){0===t.code&&t.sequence===e.sequence&&(e.readReceiptInfo.readCount=t.readCount,e.readReceiptInfo.unreadCount=t.unreadCount)}))})),di({messageList:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"sendReadReceipt",value:function(e){var t=this,n="".concat(this._n,".").concat("sendReadReceipt"),r=this._getGroupIDOfMessage(e[0]),o=new Ka("sendReadReceipt");o.setMessage("groupID:".concat(r));var a=this.getMyUserID(),i=e.filter((function(e){return e.from!==a&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));return 0===i.length?vi({code:Aa.READ_RECEIPT_MESSAGE_LIST_EMPTY}):(Ge.l("".concat(n,". sequenceList:").concat(JSON.stringify(i))),this.request({protocolName:jo,requestData:{groupID:r,sequenceList:i}}).then((function(e){return o.end(),Ge.l("".concat(n," ok")),di()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)})))}},{key:"getReadReceiptDetail",value:function(e){var t=this,n=e.message,r=e.filter,o=e.cursor,a=e.count,i=this._getGroupIDOfMessage(n),s=n.ID,c=n.sequence,l="".concat(this._n,".").concat("getReadReceiptDetail"),u=this._receiptDetailCompleteMap.get(s)||!1,d=0!==r&&1!==r?0:r,p=ct(o)?o:"",f=!st(a)||a<=0||a>=100?100:a,h="groupID:".concat(i," sequence:").concat(c," cursor:").concat(p," filter:").concat(d," completeFlag:").concat(u);Ge.l("".concat(l," ").concat(h));var m={cursor:"",isCompleted:!1,messageID:s,unreadUserIDList:[],readUserIDList:[]},v=new Ka("getReadReceiptDetail");return v.setMessage(h),this.request({protocolName:Lo,requestData:{groupID:i,sequence:c,flag:d,cursor:p,count:f}}).then((function(e){v.end();var n=e.data,r=n.cursor,o=n.isCompleted,a=n.unreadUserIDList,i=n.readUserIDList;return m.cursor=r,1===o&&(m.isCompleted=!0,t._receiptDetailCompleteMap.set(s,!0)),0===d?m.readUserIDList=i.map((function(e){return e.userID})):1===d&&(m.unreadUserIDList=a.map((function(e){return e.userID}))),Ge.l("".concat(l," ok")),di(m)})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];v.setError(e,r,o).end()})),Ge.w("".concat(l," failed. error:"),e),vi(e)}))}},{key:"getRoamingMessagesHopping",value:function(e){var t=this,n="".concat(this._n,".getRoamingMessagesHopping"),r=new Ka("getGroupRoamingMessagesHopping"),o=e.groupID,a=e.count,i=e.sequence,s=e.direction,c=i;1===s&&(c=i+a-1);var l=void 0;Dt(o)&&(o=qt(l=o));var u="".concat(l?"topicID:".concat(l):"groupID:".concat(o)," sequence:").concat(i," direction:").concat(s);return Ge.l("".concat(n," ").concat(u)),this.request({protocolName:Io,requestData:{groupID:o,topicID:l,count:a,sequence:c}}).then((function(o){var a=o.data,c=a.messageList,l=a.complete,d="complete:".concat(l," count:").concat(c?c.length:0);if(Ge.l("".concat(n," ok. ").concat(d)),r.setNetworkType(t.getNetworkType()).setMessage("".concat(u," ").concat(d)).end(),2===l||en(c)){var p=t._computeResult();return di(p)}var f="".concat(T.CONV_GROUP).concat(e.groupID),h=t.getModule(zn).onRoamingMessage(c,f,!1),m=t._computeResult({direction:s,sequence:i,remoteMessageList:c,processedMessageList:h});return di(m)})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),s=n[0],c=n[1];r.setError(e,s,c).setMessage("groupID:".concat(o," sequence:").concat(i," count:").concat(a)).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_computeResult",value:function(e){var t={messageList:[],isCompleted:!1,nextMessageSeq:""};if(pt(e))return t.isCompleted=!0,t;var n=e.direction,r=e.sequence,o=e.remoteMessageList,a=void 0===o?[]:o,i=e.processedMessageList,s=void 0===i?[]:i,c=a.length;return 1===n?(t.nextMessageSeq=a[0].sequence+1,s.forEach((function(e){e.sequence>=r&&t.messageList.push(e)})),0===t.messageList.length&&a[0].sequence<r&&(t.isCompleted=!0,t.nextMessageSeq=""),t):(t.nextMessageSeq=a[c-1].sequence-1,t.messageList=b(s),0===t.nextMessageSeq&&(t.isCompleted=!0,t.nextMessageSeq=""),t)}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,r=e.lastMessageSeq,o="".concat(this._n,".setMessageRead");Ge.l("".concat(o," conversationID:").concat(n," lastMessageSeq:").concat(r)),st(r)||this.outputWarning("DoNotModifyLastSeq");var a=new Ka("setGroupMessageRead");a.setMessage("".concat(n,"-").concat(r));var i=n.replace(T.CONV_GROUP,""),s=void 0;return Dt(i)&&(i=qt(s=i)),this.request({protocolName:So,requestData:{groupID:i,topicID:s,messageReadSeq:r}}).then((function(){a.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(o," ok."));var e=t.getModule(zn);e.updateIsReadAfterReadReport({conversationID:n,lastMessageSeq:r});var c=!0;if(!pt(s)){c=!1;var l=t.getModule(Yn).getLocalTopic(i,s);l&&l.updateSelfInfo({readedSequence:r})}return e.updateUnreadCount(n,c),di()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.l("".concat(o," failed. error:"),e),vi(e)}))}},{key:"_computeLastSequence",value:function(e){var t=e.groupID,n=e.topicID,r=void 0===n?void 0:n,o=e.sequence;return o>0?Promise.resolve(o):pt(r)||this.hasLocalGroup(t)?pt(r)?this.getGroupLastSequence(t):this.getTopicLastSequence({groupID:t,topicID:r}):Promise.resolve(0)}},{key:"getGroupLastSequence",value:function(e){var t=this,n="".concat(this._n,".").concat("getGroupLastSequence"),r=new Ka("getGroupLastSequence"),o=0,a="";if(this.hasLocalGroup(e)){var i=this.getLocalGroupProfile(e),s=i.lastMessage;if(s.lastSequence>0&&!1===s.onlineOnlyFlag)return o=s.lastSequence,a="got lastSequence:".concat(o," from local group profile[lastMessage.lastSequence]. groupID:").concat(e),Ge.l("".concat(n," ").concat(a)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(a)).end(),Promise.resolve(o);if(i.nextMessageSeq>1)return o=i.nextMessageSeq-1,a="got lastSequence:".concat(o," from local group profile[nextMessageSeq]. groupID:").concat(e),Ge.l("".concat(n," ").concat(a)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(a)).end(),Promise.resolve(o)}var c="GROUP".concat(e),l=this.getModule(zn).getLocalConversation(c);if(l&&l.lastMessage.lastSequence&&!1===l.lastMessage.onlineOnlyFlag)return o=l.lastMessage.lastSequence,a="got lastSequence:".concat(o," from local conversation profile[lastMessage.lastSequence]. groupID:").concat(e),Ge.l("".concat(n," ").concat(a)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(a)).end(),Promise.resolve(o);var u={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["NextMsgSeq"]}};return this.getGroupProfileAdvance(u).then((function(i){var s=i.data.successGroupList;return en(s)?Ge.l("".concat(n," successGroupList is empty. groupID:").concat(e)):(o=s[0].nextMessageSeq-1,a="got lastSequence:".concat(o," from getGroupProfileAdvance. groupID:").concat(e),Ge.l("".concat(n," ").concat(a))),r.setNetworkType(t.getNetworkType()).setMessage("".concat(a)).end(),o})).catch((function(o){return t.probeNetwork().then((function(t){var n=_(t,2),a=n[0],i=n[1];r.setError(o,a,i).setMessage("get lastSequence failed from getGroupProfileAdvance. groupID:".concat(e)).end()})),Ge.w("".concat(n," failed. error:"),o),vi(o)}))}},{key:"getTopicLastSequence",value:function(e){var t=this,n=e.groupID,r=e.topicID,o="".concat(this._n,".").concat("getTopicLastSequence"),a=new Ka("getTopicLastSequence"),i=0,s="",c=this.getModule(Yn);return c.hasLocalTopic(n,r)?(i=c.getLocalTopic(n,r).nextMessageSeq-1,s="get lastSequence:".concat(i," from local topic info[nextMessageSeq]. topicID:").concat(r),Ge.l("".concat(o," ").concat(s)),a.setNetworkType(this.getNetworkType()).setMessage("".concat(s)).end(),Promise.resolve(i)):c.getTopicList({groupID:n,topicIDList:[r]}).then((function(e){var n=e.data.successTopicList;return en(n)?Ge.l("".concat(o," successTopicList is empty. topicID:").concat(r)):(i=n[0].nextMessageSeq-1,s="get lastSequence:".concat(i," from getTopicList. topicID:").concat(r),Ge.l("".concat(o," ").concat(s))),a.setNetworkType(t.getNetworkType()).setMessage("".concat(s)).end(),i})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],i=n[1];a.setError(e,o,i).setMessage("get lastSequence failed from getTopicList. topicID:".concat(r)).end()})),Ge.w("".concat(o," failed. error:"),e),vi(e)}))}},{key:"isMessageFromOrToAVChatroom",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:"hasJoinedAVChatRoom",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.hasJoinedAVChatRoom():0}},{key:"getJoinedAVChatRoom",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.getJoinedAVChatRoom():[]}},{key:"isOnlineMessage",value:function(e,t){return!(!this._canIUseOnlineOnlyFlag(e)||!t||!0!==t.onlineUserOnly)}},{key:"_canIUseOnlineOnlyFlag",value:function(e){var t=this.getJoinedAVChatRoom();return!t||!t.includes(e.to)||e.conversationType!==T.CONV_GROUP}},{key:"_onAVChatRoomHistoryMessage",value:function(e){if(!en(e)){Ge.l("".concat(this._n,"._onAVChatRoomHistoryMessage count:").concat(e.length));var t=[];e.forEach((function(e){t.push(n(n({},e),{},{isHistoryMessage:1}))})),this.onAVChatRoomMessage(t)}}},{key:"onAVChatRoomMessage",value:function(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onMessage(e)}},{key:"onAVChatRoomMemberBanned",value:function(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onAVChatRoomMemberBanned(e)}},{key:"getGroupSimplifiedInfo",value:function(e){var t=this,n=new Ka("getGroupSimplifiedInfo"),r={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["Type","Name"]}};return this.getGroupProfileAdvance(r).then((function(r){var o=r.data.successGroupList;return n.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(e," type:").concat(o[0].type)).end(),o[0]})).catch((function(r){t.probeNetwork().then((function(t){var o=_(t,2),a=o[0],i=o[1];n.setError(r,a,i).setMessage("groupID:".concat(e)).end()}))}))}},{key:"setUnjoinedAVChatRoom",value:function(e){this._unjoinedAVChatRoomList.set(e,1)}},{key:"deleteUnjoinedAVChatRoom",value:function(e){this._unjoinedAVChatRoomList.has(e)&&this._unjoinedAVChatRoomList.delete(e)}},{key:"isUnjoinedAVChatRoom",value:function(e){return this._unjoinedAVChatRoomList.has(e)}},{key:"isGroupAttributesUpdatedNotice",value:function(e){return this._groupAttributesHandler.isGroupAttributesUpdatedNotice(e)}},{key:"updateLocalMainSequenceOnReconnected",value:function(){this._groupAttributesHandler.updateLocalMainSequenceOnReconnected()}},{key:"initGroupAttributes",value:function(e){return this._groupAttributesHandler.initGroupAttributes(e)}},{key:"setGroupAttributes",value:function(e){return this._groupAttributesHandler.setGroupAttributes(e)}},{key:"deleteGroupAttributes",value:function(e){return this._groupAttributesHandler.deleteGroupAttributes(e)}},{key:"getGroupAttributes",value:function(e){return this._groupAttributesHandler.getGroupAttributes(e)}},{key:"isMessageFromTopic",value:function(e,t){return 2===e&&!en(t)}},{key:"isMessageFromCommunityOfTopic",value:function(e,t){return 2===e&&en(t)}},{key:"getMessageExtensions",value:function(e,t){return Ge.l("".concat(this._n,".getMessageExtensions startSequence:").concat(t)),this.request({protocolName:qo,requestData:{groupID:e.to,messageSequence:e.sequence,startSequence:t}})}},{key:"modifyMessageExtensions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Ge.l("".concat(this._n,".modifyMessageExtensions operateType:").concat(n)),this.request({protocolName:zo,requestData:{groupID:e.to,messageSequence:e.sequence,extensionList:t,operateType:n}})}},{key:"getGroupNotify",value:function(e){var t=this;if(this.hasLocalGroup(e)){var r=this.getLocalGroupProfile(e),o=r.type,a=r.isSupportTopic;if(!Et(o)&&!a){var i="".concat(this._n,".getGroupNotify"),s=this._getGroupLastRevokedTime(e),c=1e3*xe();Ge.l("".concat(i," groupID:").concat(e," type:").concat(o," beginTime:").concat(s," endTime:").concat(c)),this.request({protocolName:Wo,requestData:{type:jt({type:o,groupID:e})?T.GRP_COMMUNITY:void 0,groupID:e,beginTime:s,endTime:c}}).then((function(r){var o=r.data,a=o.nextRevokedTime,s=o.notifyList;Ge.l("".concat(i," ok. groupID:").concat(e," nextRevokedTime:").concat(a));var c={dataList:[{elements:{revokedInfos:[]}}]};dt(s)&&s.forEach((function(t){c.dataList[0].elements.revokedInfos.push({groupID:e,sequence:t.sequence,random:t.random,revokerInfo:n({},t.revokerInfo)})})),t.onGroupMessageRevoked(c),0!==a?(t._setGroupLastRevokedTime(e,a),t.getGroupNotify(e)):t._setGroupLastRevokedTime(e,1e3*xe())})).catch((function(e){Ge.e("".concat(i," failed. error:"),e)}))}}}},{key:"_getGroupLastRevokedTime",value:function(e){return this.hasLocalGroup(e)?this.getLocalGroupProfile(e)._lastRevokedTime:0}},{key:"_setGroupLastRevokedTime",value:function(e,t){this.hasLocalGroup(e)&&(this.getLocalGroupProfile(e)._lastRevokedTime=t)}},{key:"isGroupCountersNotice",value:function(e){return this._groupCountersHandler.isGroupCountersNotice(e)}},{key:"setGroupCounters",value:function(e){return this._groupCountersHandler.setGroupCounters(e)}},{key:"increaseGroupCounter",value:function(e){return this._groupCountersHandler.increaseGroupCounter(e)}},{key:"decreaseGroupCounter",value:function(e){return this._groupCountersHandler.decreaseGroupCounter(e)}},{key:"getGroupCounters",value:function(e){return this._groupCountersHandler.getGroupCounters(e)}},{key:"restartPolling",value:function(){this._AVChatRoomHandler&&this._AVChatRoomHandler.restartPolling()}},{key:"_canIUseJoinOption",value:function(e){return function(e){return e===T.GRP_PUBLIC}(e)||jt({type:e})}},{key:"reset",value:function(){this.groupMap.clear(),this._unjoinedAVChatRoomList.clear(),this._receiptDetailCompleteMap.clear(),this._commonGroupHandler.reset(),this._groupSystemNoticeHandler.reset(),this._groupTipsHandler.reset(),this._groupAttributesHandler.reset(),this._groupCountersHandler.reset(),this._AVChatRoomHandler&&this._AVChatRoomHandler.reset()}}]),r}(fr),as=function(){function e(t){o(this,e),this.userID="",this.avatar="",this.nick="",this.role="",this.joinTime="",this.lastSendMsgTime="",this.nameCard="",this.muteUntil=0,this.memberCustomField=[],this._initMember(t)}return i(e,[{key:"_initMember",value:function(e){this.updateMember(e)}},{key:"updateMember",value:function(e){var t=[null,void 0,"",0,NaN];e.memberCustomField&&It(this.memberCustomField,e.memberCustomField),_t(this,e,["memberCustomField","marks"],t)}},{key:"updateRole",value:function(e){["Owner","Admin","Member"].indexOf(e)<0||(this.role=e)}},{key:"updateMuteUntil",value:function(e){pt(e)||(this.muteUntil=Math.floor((Date.now()+1e3*e)/1e3))}},{key:"updateNameCard",value:function(e){pt(e)||(this.nameCard=e)}},{key:"updateMemberCustomField",value:function(e){e&&It(this.memberCustomField,e)}}]),e}(),is=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="GroupMemberModule",n.groupMemberListMap=new Map,n.getInnerEmitterInstance().on(Oi,n._onProfileUpdated,m(n)),n}return i(r,[{key:"_onProfileUpdated",value:function(e){for(var t=this,n=e.data,r=function(e){var r=n[e];t.groupMemberListMap.forEach((function(e){e.has(r.userID)&&e.get(r.userID).updateMember({nick:r.nick,avatar:r.avatar})}))},o=0;o<n.length;o++)r(o)}},{key:"deleteGroupMemberList",value:function(e){this.groupMemberListMap.delete(e)}},{key:"getGroupMemberList",value:function(e){var t=this,n=e.groupID,r=e.offset,o=void 0===r?0:r,a=e.count,i=void 0===a?15:a,s=e.filter,c=void 0===s?void 0:s,l="".concat(this._n,".").concat("getGroupMemberList"),u=this.getModule(Fn),d=u.hasLocalGroup(n);if(Ge.l("".concat(l," groupID:").concat(n," offset:").concat(o," count:").concat(i," hasLocalGroup:").concat(d)),!d)return mi({memberList:[],offset:0});if(u.getLocalGroupProfile(n).type===T.GRP_AVCHATROOM){if(this.canIUse(H.AVCHATROOM_MBR_LIST))return this._getAVChatRoomMemberList({groupID:n,offset:o,filter:c});this.outputWarning("LiveOnlineMember")}var p=new Ka("getGroupMemberList"),f=0,h={groupID:n,limit:i>100?100:i};jt({groupID:n})?h.next="".concat(o):(h.offset=o,f=o+i);var m=[];return this.request({protocolName:Jo,requestData:h}).then((function(e){var r=e.data,o=r.members,a=r.memberNum,i=r.next,s=void 0===i?void 0:i;if(pt(s)||(f=en(s)?0:s),!dt(o)||0===o.length)return f=0,Promise.resolve([]);var c=t.getModule(Fn);return c.hasLocalGroup(n)&&(c.getLocalGroupProfile(n).memberNum=a),m=t._updateLocalGroupMemberMap(n,o),t.getModule(Vn).getUserProfile({userIDList:o.map((function(e){return e.userID})),tagList:[Ye.NICK,Ye.AVATAR]})})).then((function(e){var r=e.data;if(!dt(r)||0===r.length)return mi({memberList:[],offset:f});var a=r.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));return t._updateLocalGroupMemberMap(n,a),m.length<i&&(f=0),p.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," offset:").concat(o," count:").concat(i)).end(),Ge.l("".concat(l," ok.")),di({memberList:m,offset:f})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];p.setError(e,r,o).end()})),Ge.e("".concat(l," failed. error:"),e),vi(e)}))}},{key:"_getAVChatRoomMemberList",value:function(e){var t=this,n=e.groupID,r=e.offset,o=e.filter,a="".concat(this._n,".").concat("_getAVChatRoomMemberList"),i=new Ka("_getAVChatRoomMemberList");return i.setMessage("groupID:".concat(n," offset:").concat(r," filter:").concat(o)),this.request({protocolName:Xo,requestData:{groupID:n,offset:r,filter:o}}).then((function(e){var r=e.data,o=r.memberList,s=void 0===o?[]:o,c=r.offset,l=void 0===c?0:c;i.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(a," ok. member count:").concat(s.length,", next request timestamp:").concat(l));var u=t._updateLocalGroupMemberMap(n,s);return di({memberList:u,offset:l})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(a," failed. error:"),e),vi(e)}))}},{key:"getGroupMemberProfile",value:function(e){var t=this,r="".concat(this._n,".").concat("getGroupMemberProfile"),o=new Ka("getGroupMemberProfile");o.setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)),Ge.l("".concat(r," groupID:").concat(e.groupID," userIDList:").concat(e.userIDList.join(","))),e.userIDList.length>50&&(e.userIDList=e.userIDList.slice(0,50));var a=e.groupID,i=e.userIDList;return this._getGroupMemberProfileAdvance(n(n({},e),{},{userIDList:i})).then((function(e){var n=e.data.members;return dt(n)&&0!==n.length?(t._updateLocalGroupMemberMap(a,n),t.getModule(Vn).getUserProfile({userIDList:n.map((function(e){return e.userID})),tagList:[Ye.NICK,Ye.AVATAR]})):mi([])})).then((function(e){var n=e.data.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));t._updateLocalGroupMemberMap(a,n);var r=i.filter((function(e){return t.hasLocalGroupMember(a,e)})).map((function(e){return t.getLocalGroupMemberInfo(a,e)}));return o.setNetworkType(t.getNetworkType()).end(),di({memberList:r})}))}},{key:"addGroupMember",value:function(e){var t=this,n="".concat(this._n,".").concat("addGroupMember"),r=e.groupID,o=this.getModule(Fn).getLocalGroupProfile(r),a=o.type,i=new Ka("addGroupMember");if(i.setMessage("groupID:".concat(r," groupType:").concat(a)),Et(a)){var s=new pi({code:Aa.CANNOT_ADD_MEMBER_IN_AVCHATROOM});return i.setError(s,!0,this.getNetworkType()).end(),vi(s)}return e.userIDList=e.userIDList.map((function(e){return{userID:e}})),Ge.l("".concat(n," groupID:").concat(r)),this.request({protocolName:Zo,requestData:e}).then((function(r){var a=r.data.members;Ge.l("".concat(n," ok"));var s=a.filter((function(e){return 1===e.result})).map((function(e){return e.userID})),c=a.filter((function(e){return 0===e.result})).map((function(e){return e.userID})),l=a.filter((function(e){return 2===e.result})).map((function(e){return e.userID})),u=a.filter((function(e){return 4===e.result})).map((function(e){return e.userID})),d="groupID:".concat(e.groupID,", ")+"successUserIDList:".concat(s,", ")+"failureUserIDList:".concat(c,", ")+"existedUserIDList:".concat(l,", ")+"overLimitUserIDList:".concat(u);return i.setNetworkType(t.getNetworkType()).setMoreMessage(d).end(),0===s.length?di({successUserIDList:s,failureUserIDList:c,existedUserIDList:l,overLimitUserIDList:u}):(o.memberCount+=s.length,t._updateConversationGroupProfile(o),di({successUserIDList:s,failureUserIDList:c,existedUserIDList:l,overLimitUserIDList:u,group:o}))})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"deleteGroupMember",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteGroupMember"),r=e.groupID,o=e.userIDList,a=this.getModule(Fn).getLocalGroupProfile(r);if(pt(a))return vi({code:Aa.CANNOT_FIND_GROUP});if(Et(a.type))return this.canIUse(H.AVCHATROOM_BAN_MBR)?this._banAVChatRoomMember(e):vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var i=new Ka("deleteGroupMember"),s="groupID:".concat(r," ").concat(o.length>5?"userIDList.length:".concat(o.length):"userIDList:".concat(o));return i.setMessage(s),Ge.l("".concat(n," groupID:").concat(r," userIDList:"),o),this.request({protocolName:ea,requestData:e}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok")),a.memberCount-=1,t._updateConversationGroupProfile(a),t.deleteLocalGroupMembers(r,o),di({group:a,userIDList:o})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_updateConversationGroupProfile",value:function(e){this.getModule(zn).updateConversationGroupProfile([e])}},{key:"_banAVChatRoomMember",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteGroupMember"),r=e.groupID,o=e.userIDList,a="groupID:".concat(r," ").concat(o.length>5?"userIDList.length:".concat(o.length):"userIDList:".concat(o)),i=new Ka("deleteGroupMember");i.setMessage(a),Ge.l("".concat(n," groupID:").concat(r," userIDList:"),o);var s=this.getModule(Fn).getLocalGroupProfile(r);return pt(e.duration)||0===e.duration?vi({code:Aa.BAN_DURATION_INVALID}):this.request({protocolName:ta,requestData:e}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok")),t.deleteLocalGroupMembers(r,o),di({group:s,userIDList:o})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"setGroupMemberMuteTime",value:function(e){var t=this,n=e.groupID,r=e.userID,o=e.muteTime,a="".concat(this._n,".").concat("setGroupMemberMuteTime");if(r===this.getMyUserID())return vi(new pi({code:Aa.CANNOT_MUTE_SELF}));Ge.l("".concat(a," groupID:").concat(n," userID:").concat(r));var i=new Ka("setGroupMemberMuteTime");return i.setMessage("groupID:".concat(n," userID:").concat(r," muteTime:").concat(o)),this.modifyGroupMemberInfo({groupID:n,userID:r,muteTime:o}).then((function(e){i.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(a," ok"));var r=t.getModule(Fn);return di({group:r.getLocalGroupProfile(n),member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(a," failed. error:"),e),vi(e)}))}},{key:"setGroupMemberRole",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupMemberRole"),r=e.groupID,o=e.userID,a=e.role,i=this.getModule(Fn).getLocalGroupProfile(r);if(i.selfInfo.role!==T.GRP_MBR_ROLE_OWNER)return vi({code:Aa.NOT_OWNER});if([T.GRP_WORK,T.GRP_AVCHATROOM].includes(i.type))return vi({code:Aa.CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM});var s=[T.GRP_MBR_ROLE_ADMIN,T.GRP_MBR_ROLE_MEMBER];if(jt({groupID:r})&&s.push(T.GRP_MBR_ROLE_CUSTOM),s.indexOf(a)<0)return vi({code:Aa.INVALID_MEMBER_ROLE});if(o===this.getMyUserID())return vi({code:Aa.CANNOT_SET_SELF_MEMBER_ROLE});var c=new Ka("setGroupMemberRole");return c.setMessage("groupID:".concat(r," userID:").concat(o," role:").concat(a)),Ge.l("".concat(n," groupID:").concat(r," userID:").concat(o)),this.modifyGroupMemberInfo({groupID:r,userID:o,role:a}).then((function(e){return c.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok")),di({group:i,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_filterProfanity",value:function(e,t){var n=this.getModule(lr);if(!n)return!0;var r=n.filterText(t[e],X),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"setGroupMemberNameCard",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupMemberNameCard");if(e.nameCard&&!1===this._filterProfanity("nameCard",e))return vi({code:Aa.PROFANITY_FOUND});var r=e.groupID,o=e.userID,a=void 0===o?this.getMyUserID():o,i=e.nameCard;Ge.l("".concat(n," groupID:").concat(r," userID:").concat(a));var s=new Ka("setGroupMemberNameCard");return s.setMessage("groupID:".concat(r," userID:").concat(a," nameCard:").concat(i)),this.modifyGroupMemberInfo({groupID:r,userID:a,nameCard:i}).then((function(e){Ge.l("".concat(n," ok")),s.setNetworkType(t.getNetworkType()).end();var o=t.getModule(Fn).getLocalGroupProfile(r);return a===t.getMyUserID()&&o&&o.setSelfNameCard(i),di({group:o,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"setGroupMemberCustomField",value:function(e){var t=this,n="".concat(this._n,".").concat("setGroupMemberCustomField"),r=e.groupID,o=e.userID,a=void 0===o?this.getMyUserID():o,i=e.memberCustomField;Ge.l("".concat(n," groupID:").concat(r," userID:").concat(a));var s=new Ka("setGroupMemberCustomField");return s.setMessage("groupID:".concat(r," userID:").concat(a," memberCustomField:").concat(JSON.stringify(i))),this.modifyGroupMemberInfo({groupID:r,userID:a,memberCustomField:i}).then((function(e){s.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(n," ok"));var o=t.getModule(Fn).getLocalGroupProfile(r);return di({group:o,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"modifyGroupMemberInfo",value:function(e){var t=this,r=e.groupID,o=e.userID,a=void 0;return Dt(r)&&(r=qt(a=r)),this.request({protocolName:na,requestData:n(n({},e),{},{groupID:r,topicID:a})}).then((function(){if(t.hasLocalGroupMember(r,o)){var n=t.getLocalGroupMemberInfo(r,o);return pt(e.muteTime)||n.updateMuteUntil(e.muteTime),pt(e.role)||n.updateRole(e.role),pt(e.nameCard)||n.updateNameCard(e.nameCard),pt(e.memberCustomField)||n.updateMemberCustomField(e.memberCustomField),n}return t.getGroupMemberProfile({groupID:r,userIDList:[o]}).then((function(e){return _(e.data.memberList,1)[0]}))}))}},{key:"markGroupMemberList",value:function(e){var t=this,n="".concat(this._n,".").concat("markGroupMemberList"),r=e.groupID,o=e.markType,a=e.enableMark,i=e.userIDList,s=void 0===i?[]:i,c="groupID:".concat(r," markType:").concat(o," enableMark:").concat(a," userIDList count: ").concat(s.length);Ge.l("".concat(n," ").concat(c));var l=2,u=[];!0===a&&(l=1);var d=b(s);s.length>500&&(d=s.slice(0,500),Ge.w("".concat(n," ").concat(Xt(500)))),d.forEach((function(e){u.push({userID:e,markType:[o]})})),d=null;var p=new Ka("markGroupMemberList");return p.setMessage("".concat(c)),this.request({protocolName:ra,requestData:{groupID:r,operationType:l,memberList:u}}).then((function(e){var r=e.data.memberList,o=void 0===r?[]:r,a=[],i=[];o.length===s.length?a.push.apply(a,b(s)):(o.forEach((function(e){a.push(e.userID)})),s.forEach((function(e){a.includes(e)||i.push(e)})));var c="success count:".concat(a.length," fail count:").concat(i.length);return p.setNetworkType(t.getNetworkType()).setMessage(c).end(),Ge.l("".concat(n," ok. ").concat(c)),di({successUserIDList:a,failureUserIDList:i})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];p.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_getGroupMemberProfileAdvance",value:function(e){return this.request({protocolName:Qo,requestData:n(n({},e),{},{memberInfoFilter:e.memberInfoFilter?e.memberInfoFilter:["Role","JoinTime","NameCard","ShutUpUntil"]})})}},{key:"_updateLocalGroupMemberMap",value:function(e,t){var n=this;return dt(t)&&0!==t.length?t.map((function(t){return n.hasLocalGroupMember(e,t.userID)?n.getLocalGroupMemberInfo(e,t.userID).updateMember(t):n.setLocalGroupMember(e,new as(t)),n.getLocalGroupMemberInfo(e,t.userID)})):[]}},{key:"deleteLocalGroupMembers",value:function(e,t){var n=this.groupMemberListMap.get(e);n&&t.forEach((function(e){n.delete(e)}))}},{key:"getLocalGroupMemberInfo",value:function(e,t){return this.groupMemberListMap.has(e)?this.groupMemberListMap.get(e).get(t):null}},{key:"setLocalGroupMember",value:function(e,t){if(this.groupMemberListMap.has(e))this.groupMemberListMap.get(e).set(t.userID,t);else{var n=(new Map).set(t.userID,t);this.groupMemberListMap.set(e,n)}}},{key:"getLocalGroupMemberList",value:function(e){return this.groupMemberListMap.get(e)}},{key:"hasLocalGroupMember",value:function(e,t){return this.groupMemberListMap.has(e)&&this.groupMemberListMap.get(e).has(t)}},{key:"hasLocalGroupMemberMap",value:function(e){return this.groupMemberListMap.has(e)}},{key:"reset",value:function(){this.groupMemberListMap.clear()}}]),r}(fr),ss=["topicID","topicName","avatar","introduction","notification","unreadCount","muteAllMembers","customData","groupAtInfoList","nextMessageSeq","selfInfo"],cs=function(e,t){return en(e)?{lastTime:0,lastSequence:0,fromAccount:"",payload:null,type:"",messageForShow:"",nick:"",version:0,cloudCustomData:"",isRevoked:!1,revoker:null}:{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||"",payload:e.payload||null,type:e.type||"",messageForShow:Wt(e.type,e.payload,t),nick:e.nick||"",version:e.version||0,cloudCustomData:e.cloudCustomData||"",isRevoked:e.isRevoked||!1,revoker:e.revoker||null}},ls=function(){function e(t,n){o(this,e),this.topicID="",this.topicName="",this.avatar="",this.introduction="",this.notification="",this.unreadCount=0,this.muteAllMembers=!1,this.customData="",this.groupAtInfoList=[],this.nextMessageSeq=0,this.lastMessage=cs(t.lastMessage,n),this.selfInfo={muteTime:0,readedSequence:0,messageRemindType:"",excludedUnreadSequenceList:void 0},this._initTopic(t)}return i(e,[{key:"_initTopic",value:function(e){for(var t in e)ss.indexOf(t)<0||("selfInfo"===t?this.updateSelfInfo(e[t]):this[t]="muteAllMembers"===t?1===e[t]:e[t])}},{key:"updateUnreadCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.unreadCount=e}},{key:"updateNextMessageSeq",value:function(e){this.nextMessageSeq=e}},{key:"updateLastMessage",value:function(e){this.lastMessage=cs(e)}},{key:"updateGroupAtInfoList",value:function(e){this.groupAtInfoList=JSON.parse(JSON.stringify(e))}},{key:"updateTopic",value:function(e){pt(e.selfInfo)||this.updateSelfInfo(e.selfInfo),pt(e.muteAllMembers)||(this.muteAllMembers=1===e.muteAllMembers),_t(this,e,["groupID","lastMessageTime","selfInfo","muteAllMembers","lastMsg"])}},{key:"updateSelfInfo",value:function(e){return 0!==_t(this.selfInfo,e,[],[""])}},{key:"reduceUnreadCount",value:function(){return this.unreadCount>=1&&(this.unreadCount-=1,!0)}},{key:"isLastMessageRevoked",value:function(e){return e.sequence===this.lastMessage.lastSequence}},{key:"setLastMessageRevoked",value:function(e){this.lastMessage.isRevoked=e}},{key:"setLastMessageRevoker",value:function(e){this.lastMessage.revoker=e}}]),e}(),us=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="TopicModule",n._topicMap=new Map,n._getTopicTimeMap=new Map,n.TOPIC_CACHE_TIME=300,n.TOPIC_LAST_ACTIVE_TIME=3600,n.getInnerEmitterInstance().on(yi,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("topic_cache_time"),t=this.getCloudConfig("topic_last_active_time");pt(e)||(this.TOPIC_CACHE_TIME=Number(e)),pt(t)||(this.TOPIC_LAST_ACTIVE_TIME=Number(t))}},{key:"onTopicCreated",value:function(e){var t=e.groupID;this.resetGetTopicTime(t),this.emitOuterEvent(S.TOPIC_CREATED,e)}},{key:"onTopicDeleted",value:function(e){var t=this,n=e.groupID,r=e.topicIDList;(void 0===r?[]:r).forEach((function(e){t._deleteLocalTopic(n,e)})),this.emitOuterEvent(S.TOPIC_DELETED,e)}},{key:"onTopicMessageRemindTypeUpdated",value:function(e){var t=e.groupID,n=e.topicID,r=e.messageRemindType,o=this.getLocalTopic(t,n);if(o){var a=o.updateSelfInfo({messageRemindType:r});a&&this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:t,topic:o}),Ge.d("".concat(this._n,".onTopicMessageRemindTypeUpdated topicID:").concat(n)+" messageRemindType:".concat(r," isTopicUpdated:").concat(a))}}},{key:"onTopicProfileUpdated",value:function(e){var t=e.groupID,n=e.topicID,r=this.getLocalTopic(t,n);r&&(r.updateTopic(e),this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:t,topic:r}))}},{key:"onConversationProxy",value:function(e){var t=e.topicID,n=e.unreadCount,r=e.groupAtInfoList,o=qt(t),a=this.getLocalTopic(o,t),i=!1;a&&(pt(n)||a.unreadCount===n||(a.updateUnreadCount(n),i=!0),pt(r)||(a.updateGroupAtInfoList(r),i=!0)),i&&this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:o,topic:a})}},{key:"onMessageSent",value:function(e){var t=e.groupID,n=e.topicID,r=e.lastMessage,o=this.getLocalTopic(t,n);o&&(o.nextMessageSeq+=1,o.updateLastMessage(r),this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:t,topic:o}))}},{key:"onMessageModified",value:function(e){var t=e.to,n=e.time,r=e.sequence,o=e.elements,a=e.cloudCustomData,i=e.messageVersion,s=qt(t),c=this.getLocalTopic(s,t);if(c){var l=c.lastMessage;Ge.d("".concat(this._n,".onMessageModified topicID:").concat(t," lastMessage:"),JSON.stringify(l),"options:",JSON.stringify(e)),l&&(null===l.payload||l.lastTime===n&&l.lastSequence===r&&l.version!==i)&&(l.type=o[0].type,l.payload=o[0].content,l.messageForShow=Wt(l.type,l.payload,this.isIntl()),l.cloudCustomData=a,l.version=i,l.lastSequence=r,l.lastTime=n,this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:s,topic:c}))}}},{key:"onMessageRevoked",value:function(e){var t=this;if(0!==e.length){var n=null,r=null,o=!1;e.forEach((function(e){var a=e.to;r=qt(a),(n=t.getLocalTopic(r,a))&&(n.reduceUnreadCount()&&(o=!0),n.isLastMessageRevoked(e)&&(n.setLastMessageRevoked(!0),n.setLastMessageRevoker(e.revoker),o=!0))})),o&&this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:r,topic:n})}}},{key:"isLastMessageRevoked",value:function(e){var t=e.topicID,n=e.sequence,r=qt(t),o=this.getLocalTopic(r,t),a=!1;return o&&(a=o.isLastMessageRevoked({sequence:n})),a}},{key:"getJoinedCommunityList",value:function(){return this.getModule(Fn).getGroupList({isGroupWithTopicOnly:!0}).then((function(e){var t=e.data.groupList;return di({groupList:void 0===t?[]:t})})).catch((function(e){return vi(e)}))}},{key:"createTopicInCommunity",value:function(e){var t=this,r="".concat(this._n,".").concat("createTopicInCommunity"),o=e.topicID;if(!pt(o)&&!Dt(o))return vi({code:Aa.ILLEGAL_TOPIC_ID});if(e.topicName&&!1===this._filterProfanity("topicName",e))return vi({code:Aa.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return vi({code:Aa.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return vi({code:Aa.PROFANITY_FOUND});var a=new Ka("createTopicInCommunity");return this.request({protocolName:ya,requestData:n({},e)}).then((function(o){var i=o.data.topicID;return a.setMessage("topicID:".concat(i)).setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(r," ok")),t._updateTopicMap([n(n({},e),{},{topicID:i})]),di({topicID:i})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}},{key:"deleteTopicFromCommunity",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteTopicFromCommunity"),r=e.groupID,o=e.topicIDList,a=void 0===o?[]:o,i=new Ka("deleteTopicFromCommunity");return i.setMessage("groupID:".concat(r," topicIDList:").concat(a)),this.request({protocolName:Oa,requestData:{groupID:r,topicIDList:a}}).then((function(e){var n=e.data.resultList,o=[],a=[];(void 0===n?[]:n).forEach((function(e){var t=e.topicID,n=e.errorCode,r=e.errorInfo;0===n?o.push({topicID:t}):a.push({topicID:t,code:n,message:r})}));var s="success count:".concat(o.length,", fail count:").concat(a.length);return i.setMoreMessage("".concat(s)).setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(s)),o.forEach((function(e){t._deleteLocalTopic(r,e.topicID)})),di({successTopicList:o,failureTopicList:a})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"updateTopicProfile",value:function(e){var t=this,r="".concat(this._n,".").concat("updateTopicProfile");if(Ge.l("".concat(r," options:"),e),e.topicName&&!1===this._filterProfanity("topicName",e))return vi({code:Aa.PROFANITY_FOUND});if(e.introduction&&!1===this._filterProfanity("introduction",e))return vi({code:Aa.PROFANITY_FOUND});if(e.notification&&!1===this._filterProfanity("notification",e))return vi({code:Aa.PROFANITY_FOUND});var o=new Ka("updateTopicProfile");return o.setMessage("groupID:".concat(e.groupID," topicID:").concat(e.topicID)),pt(e.muteAllMembers)||(e.muteAllMembers=!0===e.muteAllMembers?"On":"Off"),this.request({protocolName:Ma,requestData:n({},e)}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Ge.l("".concat(r," ok")),t._updateTopicMap([e]),di({topic:t.getLocalTopic(e.groupID,e.topicID)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}},{key:"getTopicList",value:function(e){var t=this,r="".concat(this._n,".").concat("getTopicList"),o=e.groupID,a=e.topicIDList,i=void 0===a?[]:a,s=0===i.length,c=new Ka("getTopicList");if(c.setMessage("groupID:".concat(o)),this._getTopicTimeMap.has(o)){var l=this._getTopicTimeMap.get(o),u=l.isGetAll,d=l.time;if((u||!u&&!s)&&Date.now()-d<1e3*this.TOPIC_CACHE_TIME){var p=this._getLocalTopicList(o,i);if(s||p.length===i.length)return c.setNetworkType(this.getNetworkType()).setMoreMessage("from cache, topic count:".concat(p.length)).end(),Ge.l("".concat(r," groupID:").concat(o," from cache, topic count:").concat(p.length)),mi({successTopicList:p,failureTopicList:[]})}}return this.request({protocolName:ka,requestData:{groupID:o,topicIDList:i}}).then((function(e){var a=e.data.topicInfoList,i=[],l=[],u=[];(void 0===a?[]:a).forEach((function(e){var t=e.topic,r=e.selfInfo,o=e.errorCode,a=e.errorInfo,s=t.topicID;0===o?(i.push(n(n({},t),{},{selfInfo:r})),l.push(s)):u.push({topicID:s,code:o,message:a})})),t._updateTopicMap(i),t._handleTopicAtInfo(i);var d="success count:".concat(l.length,", fail count:").concat(u.length);c.setNetworkType(t.getNetworkType()).setMoreMessage("".concat(d)).end(),Ge.l("".concat(r," groupID:").concat(o," from remote, ").concat(d));var p=[];return en(l)||(t._getTopicTimeMap.set(o,{time:Date.now(),isGetAll:s}),p=t._getLocalTopicList(o,l)),di({successTopicList:p,failureTopicList:u})})).catch((function(e){return t.probeNetwork(e).then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}},{key:"hasLocalTopic",value:function(e,t){return!!this._topicMap.has(e)&&this._topicMap.get(e).has(t)}},{key:"getLocalTopic",value:function(e,t){var n=null;return this._topicMap.has(e)&&(n=this._topicMap.get(e).get(t)),n}},{key:"_getLocalTopicList",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this._topicMap.get(e),r=[];return n&&(r=b(n.values())),0===t.length?r:r.filter((function(e){return t.includes(e.topicID)}))}},{key:"_deleteLocalTopic",value:function(e,t){this._topicMap.has(e)&&(this._topicMap.get(e).delete(t),Ge.l("".concat(this._n,"._deleteLocalTopic groupID:").concat(e," topicID:").concat(t)))}},{key:"_updateTopicMap",value:function(e){var t=this,n=[];e.forEach((function(e){var r=e.groupID,o=e.topicID,a=null;t._topicMap.has(r)||t._topicMap.set(r,new Map),t._topicMap.get(r).has(o)?(a=t._topicMap.get(r).get(o)).updateTopic(e):(t._getTopicLastMessage(e),a=new ls(e,t.isIntl()),t._topicMap.get(r).set(o,a));var i=t._computeUnreadCount(a);a.updateUnreadCount(i),n.push({conversationID:"".concat(T.CONV_GROUP).concat(o),type:T.CONV_TOPIC,unreadCount:i})})),n.length>0&&this.getModule(zn).updateTopicConversation(n)}},{key:"resetGetTopicTime",value:function(e){var t=this;pt(e)?b(this._getTopicTimeMap.keys()).forEach((function(e){t._getTopicTimeMap.set(e,0)})):this._getTopicTimeMap.set(e,0)}},{key:"getTopicListOnReconnected",value:function(){var e=this,t=b(this._topicMap.keys()),n=[];t.forEach((function(t){var r=[];e._getLocalTopicList(t).forEach((function(t){var n=t.lastMessage.lastTime,o=void 0===n?0:n;Date.now()-1e3*o<1e3*e.TOPIC_LAST_ACTIVE_TIME&&r.push(t.topicID)})),r.length>0&&n.push({groupID:t,topicIDList:r})})),Ge.l("".concat(this._n,".getTopicListOnReconnected. active community count:").concat(n.length)),this._relayGetTopicList(n)}},{key:"_relayGetTopicList",value:function(e){var t=this;if(0!==e.length){var n=e.shift(),r=n.topicIDList.length>5?"topicIDList.length:".concat(n.topicIDList.length):"topicIDList:".concat(n.topicIDList),o=new Ka("relayGetTopicList");o.setMessage(r),Ge.l("".concat(this._n,"._relayGetTopicList. ").concat(r)),this.getTopicList(n).then((function(){o.setNetworkType(t.getNetworkType()).end(),t._relayGetTopicList(e)})).catch((function(n){t.probeNetwork().then((function(e){var t=_(e,2),r=t[0],a=t[1];o.setError(n,r,a).end()})),t._relayGetTopicList(e)}))}}},{key:"_handleTopicAtInfo",value:function(e){var t=this;0!==e.length&&e.forEach((function(e){var r=e.groupID,o=e.topicID,a=e.groupAtInfoList,i=[];pt(a)||(a.forEach((function(e){i.push(n(n({},e),{},{groupID:r,topicID:o}))})),t.getModule(zn).onNewGroupAtTips({dataList:i}))}))}},{key:"_getTopicLastMessage",value:function(e){if(!pt(e.lastMsg)){var t={time:e.lastMsg.time,sequence:e.lastMsg.sequence,from:e.lastMsg.from,payload:e.lastMsg.elements[0]?e.lastMsg.elements[0].content:null,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:"",nick:e.lastMsg.nick,version:e.lastMsg.messageVersion,cloudCustomData:e.lastMsg.cloudCustomData,isRevoked:2===e.lastMsg.isPlaceMessage,revoker:en(e.lastMsg.revokerInfo)?null:e.lastMsg.revokerInfo.revoker};e.lastMessage=t}}},{key:"deleteTopicListInCommunity",value:function(e){var t=this,n=this._getLocalTopicList(e),r=this.getModule(zn);n.forEach((function(n){var o=n.topicID;t._deleteLocalTopic(e,o),t._getTopicTimeMap.delete(e),r.deleteLocalConversation("".concat(T.CONV_GROUP).concat(o))}))}},{key:"_computeUnreadCount",value:function(e){var t=e.selfInfo,n=t.excludedUnreadSequenceList,r=t.readedSequence,o=e.nextMessageSeq-e.selfInfo.readedSequence-1;if(dt(n)){var a=0;n.forEach((function(t){t>=r&&t<=e.nextMessageSeq-1&&(a+=1)})),a>=1&&(o-=a)}return o<0?0:o}},{key:"_filterProfanity",value:function(e,t){var n=this.getModule(lr);if(!n)return!0;var r=n.filterText(t[e],J),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"updateLastMessage",value:function(e,t){var n=qt(e),r=this.getLocalTopic(n,e);if(r){var o=t.sequence+1;r.updateNextMessageSeq(o),r.updateLastMessage(t),this.emitOuterEvent(S.TOPIC_UPDATED,{groupID:n,topic:r})}}},{key:"getMessageExtensions",value:function(e,t){Ge.l("".concat(this._n,".getMessageExtensions startSequence:").concat(t));var n=qt(e.to);return this.request({protocolName:qo,requestData:{groupID:n,topicID:e.to,messageSequence:e.sequence,startSequence:t}})}},{key:"modifyMessageExtensions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;Ge.l("".concat(this._n,".modifyMessageExtensions operateType:").concat(n));var r=qt(e.to);return this.request({protocolName:zo,requestData:{groupID:r,topicID:e.to,messageSequence:e.sequence,extensionList:t,operateType:n}})}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._topicMap.clear(),this._getTopicTimeMap.clear(),this.TOPIC_CACHE_TIME=300,this.TOPIC_LAST_ACTIVE_TIME=3600}}]),r}(fr),ds=function(){function e(t){o(this,e),this._userModule=t,this._n="ProfileHandler",this.TAG="profile",this.accountProfileMap=new Map,this.expirationTime=864e5}return i(e,[{key:"setExpirationTime",value:function(e){this.expirationTime=e}},{key:"getUserProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("getUserProfile"),r=e.userIDList;e.fromAccount=this._userModule.getMyAccount(),r.length>100&&(Ge.w("".concat(n," ").concat(Xt(100))),r.length=100);for(var o,a=[],i=[],s=0,c=r.length;s<c;s++)o=r[s],this._userModule.isMyFriend(o)&&this._contains(o)?i.push(this._getProfileFromMap(o)):a.push(o);if(0===a.length)return mi(i);e.toAccount=a;var l=e.bFromGetMyProfile||!1,u=[];e.toAccount.forEach((function(e){u.push({toAccount:e,standardSequence:0,customSequence:0})})),e.userItem=u;var d=new Ka("getUserProfile");return d.setMessage(r.length>5?"userIDList.length:".concat(r.length):"userIDList:".concat(r)),this._userModule.request({protocolName:Mr,requestData:e}).then((function(e){d.setNetworkType(t._userModule.getNetworkType()).end(),Ge.i("".concat(n," ok"));var r=t._handleResponse(e).concat(i);return di(l?r[0]:r)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];d.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"getMyProfile",value:function(){var e=this._userModule.getMyAccount(),t="".concat(this._n,".getMyProfile");if(Ge.l("".concat(t," myAccount:").concat(e)),this._fill(),this._contains(e)){var n=this._getProfileFromMap(e);return Ge.d("".concat(t," from cache, myProfile:").concat(JSON.stringify(n))),mi(n)}return this.getUserProfile({fromAccount:e,userIDList:[e],bFromGetMyProfile:!0})}},{key:"_handleResponse",value:function(e){var t=e.data.userProfileItem;if(!dt(t))return[];for(var n=[],r=Date.now(),o=0,a=t.length;o<a;o++){var i=t[o],s=i.to,c=i.profileItem;if("@TLS#NOT_FOUND"!==s&&""!==s){var l=this._update(s,this._getLatestProfileFromResponse(s,c)).latestProfile;n.push(l)}}return Ge.l("".concat(this._n,"._handleResponse cost ").concat(Date.now()-r," ms")),n}},{key:"_getLatestProfileFromResponse",value:function(e,t){var n={userID:e,profileCustomField:[]};if(!en(t))for(var r=0,o=t.length;r<o;r++)if(t[r].tag.indexOf("Tag_Profile_Custom")>-1)n.profileCustomField.push({key:t[r].tag,value:t[r].value});else switch(t[r].tag){case Ye.NICK:n.nick=t[r].value;break;case Ye.GENDER:n.gender=t[r].value;break;case Ye.BIRTHDAY:n.birthday=t[r].value;break;case Ye.LOCATION:n.location=t[r].value;break;case Ye.SELFSIGNATURE:n.selfSignature=t[r].value;break;case Ye.ALLOWTYPE:n.allowType=t[r].value;break;case Ye.LANGUAGE:n.language=t[r].value;break;case Ye.AVATAR:n.avatar=t[r].value;break;case Ye.MESSAGESETTINGS:n.messageSettings=t[r].value;break;case Ye.ADMINFORBIDTYPE:n.adminForbidType=t[r].value;break;case Ye.LEVEL:n.level=t[r].value;break;case Ye.ROLE:n.role=t[r].value;break;default:Ge.w("".concat(this._n,"._getLatestProfileFromResponse unknown tag:"),t[r].tag,t[r].value)}return n}},{key:"updateMyProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("updateMyProfile");if(e.nick&&!1===this._userModule.filterProfanity("nick",e))return vi({code:Aa.PROFANITY_FOUND});if(e.selfSignature&&!1===this._userModule.filterProfanity("selfSignature",e))return vi({code:Aa.PROFANITY_FOUND});var r=new Ka("updateMyProfile");r.setMessage(JSON.stringify(e));var o=(new Ei).validate(e);if(!o.valid)return r.setCode(Aa.UPDATE_PROFILE_INVALID_PARAM).setMoreMessage("info:".concat(o.tips)).setNetworkType(this._userModule.getNetworkType()).end(),Ge.e("".concat(n," info:").concat(o.tips)),vi({code:Aa.UPDATE_PROFILE_INVALID_PARAM});var a=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&("profileCustomField"===i?e.profileCustomField.forEach((function(e){a.push({tag:e.key,value:e.value})})):a.push({tag:Ye[i.toUpperCase()],value:e[i]}));if(0===a.length){var s=new pi({code:Aa.UPDATE_PROFILE_NO_KEY});return r.setError(s,!0,this._userModule.getNetworkType()).end(),Ge.e("".concat(n," failed. error:"),s),vi(s)}var c=this._userModule.getMyAccount();return this._userModule.request({protocolName:kr,requestData:{fromAccount:c,profileItem:a}}).then((function(o){r.setNetworkType(t._userModule.getNetworkType()).end(),Ge.i("".concat(n," ok"));var a=t._update(c,e),i=a.isProfileUpdated,s=a.latestProfile;return!0===i&&t._userModule.emitOuterEvent(S.PROFILE_UPDATED,[s]),mi(s)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"onProfileModified",value:function(e){var t=e.dataList;if(!en(t)){var n,r=t.length;Ge.d("".concat(this._n,".onProfileModified count:").concat(r," dataList:"),e.dataList);for(var o=[],a=0;a<r;a++){n=t[a].userID;var i=this._update(n,this._getLatestProfileFromResponse(n,t[a].profileList)),s=i.isProfileUpdated,c=i.latestProfile;!0===s&&o.push(c)}o.length>0&&(this._userModule.emitInnerEvent(Oi,o),this._userModule.emitOuterEvent(S.PROFILE_UPDATED,o))}}},{key:"_fill",value:function(){if(0===this.accountProfileMap.size){for(var e=this._getCachedProfiles(),t=Date.now(),n=0,r=e.length;n<r;n++)t-e[n].lastUpdatedTime<this.expirationTime&&this.accountProfileMap.set(e[n].userID,e[n]);Ge.l("".concat(this._n,"._fill from cache, size:").concat(this.accountProfileMap.size))}}},{key:"_update",value:function(e,t){var n,r=!1,o=Date.now();return this._contains(e)?(n=this._getProfileFromMap(e),t.profileCustomField&&!0===It(n.profileCustomField,t.profileCustomField)&&(n.lastUpdatedTime=o,r=!0),_t(n,t,["profileCustomField"])>0&&(n.lastUpdatedTime=o,r=!0)):(n=new Ei(t),(this._userModule.isMyFriend(e)||e===this._userModule.getMyAccount())&&(n.lastUpdatedTime=o,r=!0,this.accountProfileMap.set(e,n))),this._flush(e===this._userModule.getMyAccount()),Ge.l("".concat(this._n,"._update account:").concat(e," isProfileUpdated:").concat(r)),{isProfileUpdated:r,latestProfile:n}}},{key:"_flush",value:function(e){var t=b(this.accountProfileMap.values()),n=this._userModule.getStorageModule();Ge.d("".concat(this._n,"._flush length:").concat(t.length," flushAtOnce:").concat(e)),n.setItem(this.TAG,t,e)}},{key:"_contains",value:function(e){return this.accountProfileMap.has(e)}},{key:"_getProfileFromMap",value:function(e){return this.accountProfileMap.get(e)}},{key:"_getCachedProfiles",value:function(){var e=this._userModule.getStorageModule().getItem(this.TAG);return en(e)?[]:e}},{key:"onConversationsProfileUpdated",value:function(e){for(var t,n,r,o=[],a=0,i=e.length;a<i;a++)n=(t=e[a]).userID,this._userModule.isMyFriend(n)||(this._contains(n)?(r=this._getProfileFromMap(n),_t(r,t)>0&&o.push(n)):o.push(t.userID));0!==o.length&&(Ge.i("".concat(this._n,".onConversationsProfileUpdated toAccountList:").concat(o)),this.getUserProfile({userIDList:o}))}},{key:"getNickAndAvatarByUserID",value:function(e){if(this._contains(e)){var t=this._getProfileFromMap(e);return{nick:t.nick,avatar:t.avatar}}return{nick:"",avatar:""}}},{key:"reset",value:function(){this._flush(!0),this.accountProfileMap.clear()}}]),e}(),ps=i((function e(t){o(this,e),en||(this.userID=t.userID||"",this.timeStamp=t.timeStamp||0)})),fs=function(){function e(t){o(this,e),this._userModule=t,this._n="BlacklistHandler",this._blacklistMap=new Map,this.startIndex=0,this.maxLimited=100,this.currentSequence=0}return i(e,[{key:"getLocalBlacklist",value:function(){return b(this._blacklistMap.keys())}},{key:"getBlacklist",value:function(){var e=this,t="".concat(this._n,".getBlacklist"),n={fromAccount:this._userModule.getMyAccount(),maxLimited:this.maxLimited,startIndex:0,lastSequence:this.currentSequence},r=new Ka("getBlacklist");return this._userModule.request({protocolName:Cr,requestData:n}).then((function(n){var o=n.data,a=o.blackListItem,i=o.currentSequence,s=en(a)?0:a.length;r.setNetworkType(e._userModule.getNetworkType()).setMessage("count:".concat(s)).end(),Ge.i("".concat(t," ok")),e.currentSequence=i,e._handleResponse(a,!0),e._userModule.emitOuterEvent(S.BLACKLIST_UPDATED,b(e._blacklistMap.keys()))})).catch((function(n){return e._userModule.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];r.setError(n,o,a).end()})),Ge.e("".concat(t," failed. error:"),n),vi(n)}))}},{key:"addBlacklist",value:function(e){var t=this,n=new Ka("addToBlacklist"),r="".concat(this._n,".addBlacklist"),o=this._userModule.getMyAccount();if(1===e.userIDList.length&&e.userIDList[0]===o){var a=Aa.CANNOT_ADD_SELF_TO_BLACKLIST,i=this._userModule.getErrorMessage(a);n.setCode(a).setMessage(i).setNetworkType(this._userModule.getNetworkType()).end();var s=new pi({code:a});return Ge.e("".concat(r," failed. error:"),s),vi(s)}return e.userIDList.includes(o)&&(e.userIDList=e.userIDList.filter((function(e){return e!==o}))),e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:wr,requestData:e}).then((function(o){return n.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),Ge.i("".concat(r," ok")),t._handleResponse(o.resultItem,!0),di(b(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var r=_(t,2),o=r[0],a=r[1];n.setError(e,o,a).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}},{key:"_handleResponse",value:function(e,t){if(!en(e))for(var n,r,o,a=0,i=e.length;a<i;a++)r=e[a].to,o=e[a].resultCode,(pt(o)||0===o)&&(t?((n=this._blacklistMap.has(r)?this._blacklistMap.get(r):new ps).userID=r,!en(e[a].addBlackTimeStamp)&&(n.timeStamp=e[a].addBlackTimeStamp),this._blacklistMap.set(r,n)):this._blacklistMap.has(r)&&(n=this._blacklistMap.get(r),this._blacklistMap.delete(r)));Ge.l("".concat(this._n,"._handleResponse total:").concat(this._blacklistMap.size," bAdd:").concat(t))}},{key:"deleteBlacklist",value:function(e){var t=this,n="".concat(this._n,".deleteBlacklist"),r=new Ka("removeFromBlacklist");return e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:Sr,requestData:e}).then((function(o){return r.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),Ge.i("".concat(n," ok")),t._handleResponse(o.data.resultItem,!1),di(b(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"onAccountDeleted",value:function(e){for(var t,n=[],r=0,o=e.length;r<o;r++)t=e[r],this._blacklistMap.has(t)&&(this._blacklistMap.delete(t),n.push(t));n.length>0&&(Ge.l("".concat(this._n,".onAccountDeleted count:").concat(n.length," userIDList:"),n),this._userModule.emitOuterEvent(S.BLACKLIST_UPDATED,b(this._blacklistMap.keys())))}},{key:"onAccountAdded",value:function(e){for(var t,n=[],r=0,o=e.length;r<o;r++)t=e[r],this._blacklistMap.has(t)||(this._blacklistMap.set(t,new ps({userID:t})),n.push(t));n.length>0&&(Ge.l("".concat(this._n,".onAccountAdded count:").concat(n.length," userIDList:"),n),this._userModule.emitOuterEvent(S.BLACKLIST_UPDATED,b(this._blacklistMap.keys())))}},{key:"reset",value:function(){this._blacklistMap.clear(),this.startIndex=0,this.maxLimited=100,this.currentSequence=0}}]),e}(),hs=function(e){var t=String(e).replace(/[=]+$/,""),n="";if(t.length%4==1)return"";for(var r,o,a=0,i=0;o=t.charAt(i++);~o&&(r=a%4?64*r+o:o,a++%4)?n+=String.fromCharCode(255&r>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);try{return decodeURIComponent(escape(n))}catch(c){return""}},ms=function(){function e(t){o(this,e),this._userModule=t,this._n="UserStatusHandler",this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100,this._userModule.getInnerEmitterInstance().on(yi,this._onCloudConfigUpdated,this)}return i(e,[{key:"_onCloudConfigUpdated",value:function(){var e=this._userModule.getCloudConfig("status_query_count"),t=this._userModule.getCloudConfig("status_sub_count"),n=this._userModule.getCloudConfig("status_unsub_count");Ge.l("".concat(this._n,"._onCloudConfigUpdated statusQueryCount:").concat(e," statusSubscribeCount:").concat(t)+" statusUnsubscribeCount:".concat(n)),pt(e)||(this.MAX_QUERY_USER_COUNT=parseInt(e,10)),pt(e)||(this.MAX_SUBSCRIBE_USER_COUNT=parseInt(t,10)),pt(e)||(this.MAX_UNSUBSCRIBE_USER_COUNT=parseInt(n,10))}},{key:"onUserStatusUpdated",value:function(e){var t=e.dataList,n=this._userModule.getMyUserID(),r=this._userModule.getModule(qn),o=t.map((function(e){var t=e.to,o=e.statusType,a=e.customStatus,i=hs(a);return t===n&&r.setCustomStatus(i),{userID:t,statusType:o,customStatus:i}}));this._userModule.emitOuterEvent(S.USER_STATUS_UPDATED,o)}},{key:"setSelfStatus",value:function(e){var t=this,n="".concat(this._n,".setSelfStatus");if(!1===this._userModule.filterProfanity("customStatus",e))return vi({code:Aa.PROFANITY_FOUND});var r=new Ka("setSelfStatus"),o=e.customStatus;return this._userModule.request({protocolName:Ca,requestData:{customStatus:o}}).then((function(e){return r.setNetworkType(t._userModule.getNetworkType()).setMessage("customStatus:".concat(o)).end(),Ge.l("".concat(n," ok. customStatus:").concat(o)),t._userModule.getModule(qn).setCustomStatus(o),di({userID:t._userModule.getMyUserID(),statusType:1,customStatus:o})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],a=n[1];r.setError(e,o,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"getUserStatus",value:function(e){var t=this,n="".concat(this._n,".getUserStatus"),r=e.userIDList,o=void 0===r?[]:r,a=this._userModule.getMyUserID(),i=b(o),s=void 0,c=i.indexOf(a);if(c>-1){i.splice(c,1);var l=this._userModule.getModule(qn).getCustomStatus();s={userID:a,statusType:1,customStatus:l}}if(0===i.length)return mi({successUserList:[s],failureUserList:[]});if(!this._userModule.canIUse(H.USER_STATUS))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});i.length>this.MAX_QUERY_USER_COUNT&&(Ge.w("".concat(n," ").concat(Xt(this.MAX_QUERY_USER_COUNT))),i=o.slice(0,this.MAX_QUERY_USER_COUNT));var u=new Ka("getUserStatus");return this._userModule.request({protocolName:wa,requestData:{userIDList:i}}).then((function(e){var r=e.data,a=r.successUserList,i=void 0===a?[]:a,c=r.failureUserList,l=void 0===c?[]:c,d=i.map((function(e){var t=e.userID,n=e.statusType,r=e.customStatus;return{userID:t,statusType:n,customStatus:hs(r)}})),p=l.map((function(e){var t=e.userID,n=e.invalidUserID,r=e.errorCode,o=e.errorInfo;return{userID:en(n)?t:n,code:r,message:o}}));pt(s)||d.unshift(s);var f="userID count:".concat(o.length,", success count:").concat(d.length,", fail count:").concat(p.length);return u.setNetworkType(t._userModule.getNetworkType()).setMessage("".concat(f)).end(),Ge.l("".concat(n," ok. ").concat(f,".")),di({successUserList:d,failureUserList:p})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];u.setMessage("userID count:".concat(o.length)).setError(e,r,a).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"subscribeUserStatus",value:function(e){var t=this;if(!this._userModule.canIUse(H.USER_STATUS))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".subscribeUserStatus"),r=e.userIDList,o=void 0===r?[]:r,a=b(o);a.length>this.MAX_SUBSCRIBE_USER_COUNT&&(Ge.w("".concat(n," ").concat(Xt(this.MAX_SUBSCRIBE_USER_COUNT))),a=o.slice(0,this.MAX_SUBSCRIBE_USER_COUNT));var i=new Ka("subscribeUserStatus"),s="userID count:".concat(o.length);return Ge.l("".concat(n," ").concat(s)),this._userModule.request({protocolName:Sa,requestData:{userIDList:a}}).then((function(e){var r=e.data.failureUserList,o=(void 0===r?[]:r).map((function(e){var t=e.userID,n=e.invalidUserID,r=e.errorCode,o=e.errorInfo;return{userID:en(n)?t:n,code:r,message:o}}));return i.setNetworkType(t._userModule.getNetworkType()).setMessage("".concat(s," fail count:").concat(o.length)).end(),Ge.l("".concat(n," ok. fail count:").concat(o.length,".")),di({failureUserList:o})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setMessage("".concat(s)).setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"unsubscribeUserStatus",value:function(e){var t=this;if(!this._userModule.canIUse(H.USER_STATUS))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".unsubscribeUserStatus"),r=(e||{}).userIDList,o=void 0===r?[]:r,a=b(o);o.length>this.MAX_UNSUBSCRIBE_USER_COUNT&&(Ge.w("".concat(n," ").concat(Xt(this.MAX_UNSUBSCRIBE_USER_COUNT))),a=o.slice(0,this.MAX_UNSUBSCRIBE_USER_COUNT));var i=new Ka("unsubscribeUserStatus"),s="userID count:".concat(o.length);Ge.l("".concat(n," ").concat(s));var c={userIDList:a};return 0===a.length&&(c.userIDList=void 0,c.unsubscribeAll=1),this._userModule.request({protocolName:Ta,requestData:c}).then((function(e){var r=e.data.failureUserList,o=(void 0===r?[]:r).map((function(e){var t=e.userID,n=e.invalidUserID,r=e.errorCode,o=e.errorInfo;return{userID:en(n)?t:n,code:r,message:o}}));return i.setNetworkType(t._userModule.getNetworkType()).setMessage("".concat(s," fail count:").concat(o.length)).end(),Ge.l("".concat(n," ok. fail count:").concat(o.length,".")),di({failureUserList:o})})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setMessage("".concat(s)).setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"reset",value:function(){this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100}}]),e}(),vs=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="UserModule",r._profileHandler=new ds(m(r)),r._blacklistHandler=new fs(m(r)),r._userStatusHandler=new ms(m(r)),r.getInnerEmitterInstance().on(bi,r.onContextUpdated,m(r)),r}return i(n,[{key:"onContextUpdated",value:function(e){this._profileHandler.getMyProfile(),this._blacklistHandler.getBlacklist()}},{key:"onProfileModified",value:function(e){this._profileHandler.onProfileModified(e)}},{key:"onRelationChainModified",value:function(e){var t=e.dataList;if(!en(t)){var n=[];t.forEach((function(e){e.blackListDelAccount&&n.push.apply(n,b(e.blackListDelAccount))})),n.length>0&&this._blacklistHandler.onAccountDeleted(n);var r=[];t.forEach((function(e){e.blackListAddAccount&&r.push.apply(r,b(e.blackListAddAccount))})),r.length>0&&this._blacklistHandler.onAccountAdded(r)}}},{key:"onConversationsProfileUpdated",value:function(e){this._profileHandler.onConversationsProfileUpdated(e)}},{key:"getMyAccount",value:function(){return this.getMyUserID()}},{key:"getMyProfile",value:function(){return this._profileHandler.getMyProfile()}},{key:"getStorageModule",value:function(){return this.getModule(Wn)}},{key:"filterProfanity",value:function(e,t){var n=this.getModule(lr);if(!n)return!0;var r=n.filterText(t[e],K),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"isMyFriend",value:function(e){var t=this.getModule(Gn);return!!t&&t.isMyFriend(e)}},{key:"getUserProfile",value:function(e){return this._profileHandler.getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._profileHandler.updateMyProfile(e)}},{key:"getNickAndAvatarByUserID",value:function(e){return this._profileHandler.getNickAndAvatarByUserID(e)}},{key:"getLocalBlacklist",value:function(){var e=this._blacklistHandler.getLocalBlacklist();return mi(e)}},{key:"addBlacklist",value:function(e){return this._blacklistHandler.addBlacklist(e)}},{key:"deleteBlacklist",value:function(e){return this._blacklistHandler.deleteBlacklist(e)}},{key:"onUserStatusUpdated",value:function(e){this._userStatusHandler.onUserStatusUpdated(e)}},{key:"setSelfStatus",value:function(e){return this._userStatusHandler.setSelfStatus(e)}},{key:"getUserStatus",value:function(e){return this._userStatusHandler.getUserStatus(e)}},{key:"subscribeUserStatus",value:function(e){return this._userStatusHandler.subscribeUserStatus(e)}},{key:"unsubscribeUserStatus",value:function(e){return this._userStatusHandler.unsubscribeUserStatus(e)}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._profileHandler.reset(),this._blacklistHandler.reset(),this._userStatusHandler.reset()}}]),n}(fr),gs=function(){function e(t,n){o(this,e),this._m=t,this._isLoggedIn=!1,this._SDKAppID=n.SDKAppID,this._userID=n.userID||"",this._userSig=n.userSig||"",this._version="2.27.1",this._a2Key="",this._tinyID="",this._customStatus="",this._contentType="json",this._unlimitedAVChatRoom=n.unlimitedAVChatRoom,this._scene=n.scene||"",this._oversea=n.oversea,this._instanceID=n.instanceID,this._statusInstanceID=0,this._isDevMode=n.devMode,this._proxyServer=n.proxyServer,this._fileUploadProxy=n.fileUploadProxy,this._fileDownloadProxy=n.fileDownloadProxy}return i(e,[{key:"isLoggedIn",value:function(){return this._isLoggedIn}},{key:"isOversea",value:function(){return this._oversea}},{key:"isPrivateNetWork",value:function(){return this._proxyServer}},{key:"isDevMode",value:function(){return this._isDevMode}},{key:"isSingaporeSite",value:function(){return this._SDKAppID>=2e7&&this._SDKAppID<3e7||this._SDKAppID>=172e7&&this._SDKAppID<173e7}},{key:"isKoreaSite",value:function(){return this._SDKAppID>=3e7&&this._SDKAppID<4e7||this._SDKAppID>=173e7&&this._SDKAppID<174e7}},{key:"isGermanySite",value:function(){return this._SDKAppID>=4e7&&this._SDKAppID<5e7||this._SDKAppID>=174e7&&this._SDKAppID<175e7}},{key:"isIndiaSite",value:function(){return this._SDKAppID>=5e7&&this._SDKAppID<6e7||this._SDKAppID>=175e7&&this._SDKAppID<176e7}},{key:"isJapanSite",value:function(){return this._SDKAppID>=6e7&&this._SDKAppID<7e7||this._SDKAppID>=176e7&&this._SDKAppID<177e7}},{key:"isUSASite",value:function(){return this._SDKAppID>=7e7&&this._SDKAppID<8e7||this._SDKAppID>=177e7&&this._SDKAppID<178e7}},{key:"isIntl",value:function(){return 0===(e=this._SDKAppID)||e>=2e7&&e<8e7||e>=172e7&&e<178e7;var e}},{key:"isUnlimitedAVChatRoom",value:function(){return this._unlimitedAVChatRoom}},{key:"setUserID",value:function(e){this._userID=e}},{key:"getUserID",value:function(){return this._userID}},{key:"setUserSig",value:function(e){this._userSig=e}},{key:"getUserSig",value:function(){return this._userSig}},{key:"getSDKAppID",value:function(){return this._SDKAppID}},{key:"setTinyID",value:function(e){this._tinyID=e,this._isLoggedIn=!0}},{key:"getTinyID",value:function(){return this._tinyID}},{key:"setCustomStatus",value:function(e){this._customStatus=e}},{key:"getCustomStatus",value:function(){return this._customStatus}},{key:"getScene",value:function(){return je?window.tencent_cloud_im_csig_flutter_for_web_25F_cy:this._isTUIKit()?"tuikit":this._scene}},{key:"getInstanceID",value:function(){return this._instanceID}},{key:"getStatusInstanceID",value:function(){return this._statusInstanceID}},{key:"setStatusInstanceID",value:function(e){this._statusInstanceID=e}},{key:"getVersion",value:function(){return this._version}},{key:"getA2Key",value:function(){return this._a2Key}},{key:"setA2Key",value:function(e){this._a2Key=e}},{key:"getContentType",value:function(){return this._contentType}},{key:"getProxyServer",value:function(){return this._proxyServer}},{key:"getFileUploadProxy",value:function(){return this._fileUploadProxy}},{key:"getFileDownloadProxy",value:function(){return this._fileDownloadProxy}},{key:"_isTUIKit",value:function(){var e=!1,t=!1,n=!1,r=!1,o=[];ie&&(o=Object.keys(ce)),se&&(o=ae?Object.keys(uni):Object.keys(window));for(var a=0,i=o.length;a<i;a++)if(o[a].toLowerCase().includes("uikit")){e=!0;break}if(o=null,ie&&!ht(ce.createGamePortal)&&ht(getApp)&&!pt(getApp())){var s=getApp().globalData;ut(s)&&!0===s.isTUIKit&&(t=!0)}!0===this._m.getModule(Wn).getStorageSync("TIM_".concat(this._SDKAppID,"_isTUIKit"))&&(n=!0);var c=null;if(Q&&!ee&&"undefined"==typeof uni&&__wxConfig&&(c=__wxConfig.pages),Z&&"undefined"==typeof uni&&__qqConfig&&(c=__qqConfig.pages),dt(c)&&c.length>0){for(var l=0,u=c.length;l<u;l++)if(c[l].toLowerCase().includes("tui")){r=!0;break}c=null}return e||t||n||r}},{key:"reset",value:function(){this._isLoggedIn=!1,this._userSig="",this._a2Key="",this._tinyID="",this._customStatus="",this._statusInstanceID=0}}]),e}(),_s=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="SignModule",r._helloInterval=120,r._lastLoginTs=0,r._lastWsHelloTs=0,r._isWebUniapp=0,Mi.mixin(m(r)),r}return i(n,[{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&e%this._helloInterval==0&&this._hello()}},{key:"login",value:function(e){var t="";if(this.isLoggedIn()){var n=this.getMyUserID();return(t=this.getErrorMessage("RepeatLogin",n))&&Ge.w(t),mi({actionStatus:"OK",errorCode:0,errorInfo:t,repeatLogin:!0})}if(Date.now()-this._lastLoginTs<=15e3)return this.outputWarning("LoggingIn",e.userID),vi({code:Aa.REPEAT_LOGIN});Ge.l("".concat(this._n,".login userID:").concat(e.userID));var r=this._checkLoginInfo(e);if(0!==r.code)return vi(r);var o=this.getModule(qn),a=e.userID,i=e.userSig;return o.setUserID(a),o.setUserSig(i),this.getModule(er).updateProtocolConfig(),this._login()}},{key:"_login",value:function(){var e=this,t=this.getModule(qn),n=t.getScene(),r=0,o=new Ka("login");o.setMessage("".concat(n)).setMoreMessage("identifier:".concat(this.getMyUserID())),ae?"tuikit"===n?o.setUIPlatform(4):o.setUIPlatform(3):ie?"tuikit"===n?o.setUIPlatform(12):o.setUIPlatform(11):se&&(je?"flutter_web_uikit"===n?o.setUIPlatform(21):o.setUIPlatform(20):this._isReactUIKit()?Ee?o.setUIPlatform(25):o.setUIPlatform(24):Ee?"tuikit"===n?o.setUIPlatform(17):o.setUIPlatform(16):"tuikit"===n?o.setUIPlatform(14):o.setUIPlatform(13));var a=this.getModule(cr);if(a.canIUseOfflinePush()){this._isWebUniapp=a.getUniAppPlatform();var i=this._getStatusInstanceID();t.setStatusInstanceID(i),this.getModule(er).updateProtocolConfig(),r=a.getDeviceBrand()}var s="".concat(this._n,"._login");return this._lastLoginTs=Date.now(),this.request({protocolName:hr,requestData:{deviceBrand:r,isWebUniapp:this._isWebUniapp}}).then((function(r){e._lastLoginTs=0;var a=Date.now(),i=null,c=r.data,l=c.a2Key,u=c.tinyID,d=c.helloInterval,p=c.instanceID,f=c.timeStamp,h=c.customStatus,m=void 0===h?"":h;Ge.l("".concat(s," ok. scene:").concat(n," helloInterval:").concat(d," instanceID:").concat(p," timeStamp:").concat(f));var v=1e3*f,g=a-o.getStartTs(),_=v+parseInt(g/2)-a,b=o.getStartTs()+_;if(o.start(b),function(e,t){Re=t;var n=new Date;n.setTime(e),Ge.i("baseTime from server:".concat(n," offset:").concat(Re))}(v,_),!u)throw i=new pi({code:Aa.NO_TINYID}),o.setError(i,!0,e.getNetworkType()).end(),i;if(!l)throw i=new pi({code:Aa.NO_A2KEY}),o.setError(i,!0,e.getNetworkType()).end(),i;var y=hs(m);o.setNetworkType(e.getNetworkType()).setMoreMessage("helloInterval:".concat(d," instanceID:").concat(p," offset:").concat(_," customStatus:").concat(y)).end(),t.setA2Key(l),t.setTinyID(u),t.setStatusInstanceID(p),t.setCustomStatus(y),e.getModule(er).updateProtocolConfig(),e.emitInnerEvent(bi),e._helloInterval=d,e.triggerReady();var O=e.getModule(cr);return O.canIUseOfflinePush()&&(uni.setStorageSync("timUniAppInstanceID",p),O.init()),e._fetchCloudControlConfig(),e.getModule(lr).init(),r})).catch((function(t){return e.probeNetwork().then((function(e){var n=_(e,2),r=n[0],a=n[1];o.setError(t,r,a).end(!0)})),e._m.setNotReadyReason(Aa.LOGIN_FAILED),Ge.e("".concat(s," failed. error:"),t),e._lastLoginTs=0,e._m.onLoginFailed(),vi(t)}))}},{key:"logout",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!this.isLoggedIn())return vi({code:Aa.USER_NOT_LOGGED_IN});var n=new Ka("logout");n.setNetworkType(this.getNetworkType()).setMessage("identifier:".concat(this.getMyUserID())).end(!0);var r="".concat(this._n,".logout");return Ge.i("".concat(r," type:").concat(t)),0===t&&this._m.setNotReadyReason(Aa.LOGGED_OUT),this.request({protocolName:mr,requestData:{type:t}}).then((function(){return e.resetReady(),mi({})})).catch((function(t){return Ge.e("".concat(r," error:"),t),e.resetReady(),mi({})}))}},{key:"_fetchCloudControlConfig",value:function(){this.getModule(rr).fetchConfig()}},{key:"_getStatusInstanceID",value:function(){return uni.getStorageSync("timUniAppInstanceID")}},{key:"_hello",value:function(){var e=this;this._lastWsHelloTs=Date.now(),this.request({protocolName:vr,requestData:{isWebUniapp:this._isWebUniapp}}).catch((function(t){Ge.w("".concat(e._n,"._hello error:"),t)}))}},{key:"getLastWsHelloTs",value:function(){return this._lastWsHelloTs}},{key:"_checkLoginInfo",value:function(e){var t=0;return en(this.getModule(qn).getSDKAppID())?t=Aa.NO_SDKAPPID:en(e.userID)?t=Aa.NO_IDENTIFIER:en(e.userSig)&&(t=Aa.NO_USERSIG),{code:t}}},{key:"_isReactUIKit",value:function(){return se&&void 0!==window.tencent_cloud_im_csig_react_uikit_23F_xa}},{key:"onMultipleAccountKickedOut",value:function(e){var t=this;new Ka("kickedOut").setNetworkType(this.getNetworkType()).setMessage("type:".concat(T.KICKED_OUT_MULT_ACCOUNT," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Ge.w("".concat(this._n,".onMultipleAccountKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOuterEvent(S.KICKED_OUT,{type:T.KICKED_OUT_MULT_ACCOUNT}),t._m.setNotReadyReason(Aa.KICKED_OUT_MULT_ACCOUNT),t._m.reset()}))}},{key:"onMultipleDeviceKickedOut",value:function(e){var t=this;new Ka("kickedOut").setNetworkType(this.getNetworkType()).setMessage("type:".concat(T.KICKED_OUT_MULT_DEVICE," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Ge.w("".concat(this._n,".onMultipleDeviceKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOuterEvent(S.KICKED_OUT,{type:T.KICKED_OUT_MULT_DEVICE}),t._m.setNotReadyReason(Aa.KICKED_OUT_MULT_DEVICE),t._m.reset()}))}},{key:"onUserSigExpired",value:function(){new Ka("kickedOut").setNetworkType(this.getNetworkType()).setMessage(T.KICKED_OUT_USERSIG_EXPIRED).end(!0),Ge.w("".concat(this._n,".onUserSigExpired: userSig expired")),0!==this.getModule(qn).getStatusInstanceID()&&(this.emitOuterEvent(S.KICKED_OUT,{type:T.KICKED_OUT_USERSIG_EXPIRED}),this._m.setNotReadyReason(Aa.KICKED_OUT_USERSIG_EXPIRED),this._m.reset())}},{key:"onRestApiKickedOut",value:function(e){new Ka("kickedOut").setNetworkType(this.getNetworkType()).setMessage("type:".concat(T.KICKED_OUT_REST_API," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Ge.w("".concat(this._n,".onRestApiKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),0!==this.getModule(qn).getStatusInstanceID()&&(this.emitOuterEvent(S.KICKED_OUT,{type:T.KICKED_OUT_REST_API}),this._m.setNotReadyReason(Aa.KICKED_OUT_REST_API),this._m.reset(),this.getModule(tr).onRestApiKickedOut())}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this.resetReady(),this._helloInterval=120,this._lastLoginTs=0,this._lastWsHelloTs=0,this._isWebUniapp=0}}]),n}(fr);function bs(){return null}var ys=function(){function e(t){o(this,e),this._m=t,this._n="StorageModule",this._storageQueue=new Map,this._errorTolerantHandle()}return i(e,[{key:"_errorTolerantHandle",value:function(){ie||!pt(window)&&this._canIUseCookies()||(this.getItem=bs,this.setItem=bs,this.removeItem=bs,this.clear=bs)}},{key:"onCheckTimer",value:function(e){if(e%20==0){if(0===this._storageQueue.size)return;this._doFlush()}}},{key:"_doFlush",value:function(){try{var e,t=w(this._storageQueue);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2),r=n[0],o=n[1];this._setStorageSync(this._getKey(r),o)}}catch(i){t.e(i)}finally{t.f()}this._storageQueue.clear()}catch(s){Ge.w("".concat(this._n,"._doFlush error:"),s)}}},{key:"_getPrefix",value:function(){var e=this._m.getModule(qn);return"TIM_".concat(e.getSDKAppID(),"_").concat(e.getUserID(),"_")}},{key:"_getKey",value:function(e){return"".concat(this._getPrefix()).concat(e)}},{key:"getItem",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;return this.getStorageSync(n)}catch(o){return Ge.w("".concat(this._n,".getItem error:"),o),{}}}},{key:"setItem",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(n){var o=r?this._getKey(e):e;this._setStorageSync(o,t)}else this._storageQueue.set(e,t)}},{key:"clear",value:function(){try{ie?ce.clearStorageSync():this._canIUseCookies()&&localStorage.clear()}catch(e){Ge.w("".concat(this._n,".clear error:"),e)}}},{key:"removeItem",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;this._removeStorageSync(n)}catch(o){Ge.w("".concat(this._n,".removeItem error:"),o)}}},{key:"getSize",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"b";try{var r={size:0,limitSize:5242880,unit:n};if(Object.defineProperty(r,"leftSize",{enumerable:!0,get:function(){return r.limitSize-r.size}}),ie&&(r.limitSize=1024*ce.getStorageInfoSync().limitSize),e)r.size=JSON.stringify(this.getItem(e)).length+this._getKey(e).length;else if(ie){var o=ce.getStorageInfoSync(),a=o.keys;a.forEach((function(e){r.size+=JSON.stringify(t.getStorageSync(e)).length+t._getKey(e).length}))}else if(this._canIUseCookies())for(var i in localStorage)localStorage.hasOwnProperty(i)&&(r.size+=localStorage.getItem(i).length+i.length);return this._convertUnit(r)}catch(c){Ge.w("".concat(this._n," error:"),c)}}},{key:"_convertUnit",value:function(e){var t={},n=e.unit;for(var r in t.unit=n,e)"number"==typeof e[r]&&("kb"===n.toLowerCase()?t[r]=Math.round(e[r]/1024):"mb"===n.toLowerCase()?t[r]=Math.round(e[r]/1024/1024):t[r]=e[r]);return t}},{key:"_setStorageSync",value:function(e,t){ie?ne?my.setStorageSync({key:e,data:t}):ce.setStorageSync(e,t):this._canIUseCookies()&&localStorage.setItem(e,JSON.stringify(t))}},{key:"getStorageSync",value:function(e){return ie?ne?my.getStorageSync({key:e}).data:ce.getStorageSync(e):this._canIUseCookies()?JSON.parse(localStorage.getItem(e)):{}}},{key:"_removeStorageSync",value:function(e){ie?ne?my.removeStorageSync({key:e}):ce.removeStorageSync(e):this._canIUseCookies()&&localStorage.removeItem(e)}},{key:"_canIUseCookies",value:function(){return navigator&&navigator.cookieEnabled&&localStorage}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._doFlush()}}]),e}(),Os=function(){function e(t){o(this,e),this._n="SSOLogBody",this._report=[]}return i(e,[{key:"pushIn",value:function(e){Ge.d("".concat(this._n,".pushIn"),this._report.length,e),this._report.push(e)}},{key:"backfill",value:function(e){var t;dt(e)&&0!==e.length&&(Ge.d("".concat(this._n,".backfill"),this._report.length,e.length),(t=this._report).unshift.apply(t,b(e)))}},{key:"getLogsNumInMemory",value:function(){return this._report.length}},{key:"isEmpty",value:function(){return 0===this._report.length}},{key:"_reset",value:function(){this._report.length=0,this._report=[]}},{key:"getLogsInMemory",value:function(){var e=this._report.slice();return this._reset(),e}}]),e}(),Ms=function(e){var t=e.getModule(qn);return{SDKType:10,SDKAppID:t.getSDKAppID(),SDKVersion:t.getVersion(),tinyID:Number(t.getTinyID()),userID:t.getUserID(),platform:e.getPlatform(),instanceID:t.getInstanceID(),traceID:xe()}},ks=function(e){c(r,e);var t=g(r);function r(e){var n;o(this,r),(n=t.call(this,e))._n="EventStatModule",n.TAG="im-ssolog-event",n._reportBody=new Os,n.MIN_THRESHOLD=20,n.MAX_THRESHOLD=100,n.WAITING_TIME=6e4,n.REPORT_LEVEL=[4,5,6],n.REPORT_SDKAPPID_BLACKLIST=[],n.REPORT_TINYID_WHITELIST=[],n._lastReportTime=Date.now();var a=n.getInnerEmitterInstance();return a.on(bi,n._onLoginSuccess,m(n)),a.on(yi,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"reportAtOnce",value:function(){Ge.d("".concat(this._n,".reportAtOnce")),this._report()}},{key:"_onLoginSuccess",value:function(){var e=this,t=this.getModule(Wn),n=t.getItem(this.TAG,!1);!en(n)&&ht(n.forEach)&&(Ge.l("".concat(this._n,"._onLoginSuccess get ssolog in storage, count:").concat(n.length)),n.forEach((function(t){e._reportBody.pushIn(t)})),t.removeItem(this.TAG,!1))}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("evt_rpt_threshold"),t=this.getCloudConfig("evt_rpt_waiting"),n=this.getCloudConfig("evt_rpt_level"),r=this.getCloudConfig("evt_rpt_sdkappid_bl"),o=this.getCloudConfig("evt_rpt_tinyid_wl");pt(e)||(this.MIN_THRESHOLD=Number(e)),pt(t)||(this.WAITING_TIME=Number(t)),pt(n)||(this.REPORT_LEVEL=n.split(",").map((function(e){return Number(e)}))),pt(r)||(this.REPORT_SDKAPPID_BLACKLIST=r.split(",").map((function(e){return Number(e)}))),pt(o)||(this.REPORT_TINYID_WHITELIST=o.split(","))}},{key:"pushIn",value:function(e){e instanceof Ka&&(e.updateTimeStamp(),this._reportBody.pushIn(e),this._reportBody.getLogsNumInMemory()>=this.MIN_THRESHOLD&&this._report())}},{key:"onCheckTimer",value:function(){Date.now()<this._lastReportTime+this.WAITING_TIME||this._reportBody.isEmpty()||this._report()}},{key:"_filterLogs",value:function(e){var t=this,n=this.getModule(qn),r=n.getSDKAppID(),o=n.getTinyID();return Yt(this.REPORT_SDKAPPID_BLACKLIST,r)&&!zt(this.REPORT_TINYID_WHITELIST,o)?[]:e.filter((function(e){return t.REPORT_LEVEL.includes(e.level)}))}},{key:"_report",value:function(){var e=this;if(!this._reportBody.isEmpty()){var t=this._reportBody.getLogsInMemory(),r=this._filterLogs(t);if(0!==r.length){var o={header:Ms(this),event:r};this.request({protocolName:sa,requestData:n({},o)}).then((function(){e._lastReportTime=Date.now()})).catch((function(n){Ge.w("".concat(e._n,".report failed. networkType:").concat(e.getNetworkType()," error:"),n),e._reportBody.backfill(t),e._reportBody.getLogsNumInMemory()>e.MAX_THRESHOLD&&e._flushAtOnce()}))}else this._lastReportTime=Date.now()}}},{key:"_flushAtOnce",value:function(){var e=this.getModule(Wn),t=e.getItem(this.TAG,!1),n=this._reportBody.getLogsInMemory(),r="".concat(this._n,"._flushAtOnce");if(en(t))Ge.l("".concat(r," count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var o=n.concat(t);o.length>this.MAX_THRESHOLD&&(o=o.slice(0,this.MAX_THRESHOLD)),Ge.l("".concat(r," count:").concat(o.length)),e.setItem(this.TAG,o,!0,!1)}}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._lastReportTime=0,this._report(),this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[]}}]),r}(fr),Cs="none",ws="online",Ss=[Aa.OVER_FREQUENCY_LIMIT,Aa.OPEN_SERVICE_OVERLOAD_ERROR],Ts=function(){function e(t){o(this,e),this._m=t,this._networkType="",this._n="NetMonitorModule",this.MAX_WAIT_TIME=3e3,this._mpNetworkStatusCallback=null,this._webOnlineCallback=null,this._webOfflineCallback=null}return i(e,[{key:"start",value:function(){var e=this;ie?(ce.getNetworkType({success:function(t){e._networkType=t.networkType||t.subtype||"",t.networkType===Cs?Ge.w("".concat(e._n,".start no network, please check!")):Ge.i("".concat(e._n,".start networkType:").concat(t.networkType))}}),this._mpNetworkStatusCallback=this._onNetworkStatusChange.bind(this),ce.onNetworkStatusChange(this._mpNetworkStatusCallback)):(this._networkType=ws,this._webOnlineCallback=this._onWebOnline.bind(this),this._webOfflineCallback=this._onWebOffline.bind(this),window&&(window.addEventListener("online",this._webOnlineCallback),window.addEventListener("offline",this._webOfflineCallback)))}},{key:"_onWebOnline",value:function(){this._onNetworkStatusChange({isConnected:!0,networkType:ws})}},{key:"_onWebOffline",value:function(){this._onNetworkStatusChange({isConnected:!1,networkType:Cs})}},{key:"_onNetworkStatusChange",value:function(e){var t=e.isConnected,n=e.networkType,r="".concat(this._n,"._onNetworkStatusChange"),o=!1;t?(Ge.i("".concat(r," previous:").concat(this._networkType," current:").concat(n)),this._networkType!==n&&(o=!0,this._m.getModule(tr).reConnect(!0))):this._networkType!==n&&(o=!0,Ge.w("".concat(r," no network, please check!")),this._m.getModule(tr).offline()),o&&(new Ka("networkChange").setMessage("isConnected:".concat(t," previousNetworkType:").concat(this._networkType," networkType:").concat(n)).end(),this._networkType=n)}},{key:"probe",value:function(e){var t=this;if(!pt(e)&&Ss.includes(e.code))return Promise.resolve([!0,this._networkType]);var n="".concat(this._n,".probe");return new Promise((function(e,r){ie?ce.getNetworkType({success:function(r){t._networkType=r.networkType,r.networkType===Cs?(Ge.w("".concat(n," no network, please check!")),e([!1,r.networkType])):(Ge.i("".concat(n," networkType:").concat(r.networkType)),e([!0,r.networkType]))}}):t._networkType===Cs?e([!1,Cs]):e([!0,ws])}))}},{key:"getNetworkType",value:function(){return this._networkType}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),ie?null!==this._mpNetworkStatusCallback&&(ce.offNetworkStatusChange&&(oe||ee?ce.offNetworkStatusChange(this._mpNetworkStatusCallback):ce.offNetworkStatusChange()),this._mpNetworkStatusCallback=null):window&&(null!==this._webOnlineCallback&&(window.removeEventListener("online",this._webOnlineCallback),this._webOnlineCallback=null),null!==this._onWebOffline&&(window.removeEventListener("offline",this._webOfflineCallback),this._webOfflineCallback=null))}}]),e}(),Is=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,a||e,i),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,a=r.length,i=new Array(a);o<a;o++)i[o]=r[o].fn;return i},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,a,i){var s=n?n+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,a),!0;case 6:return u.fn.call(u.context,t,r,o,a,i),!0}for(l=1,c=new Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var p,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!c)for(p=1,c=new Array(d-1);p<d;p++)c[p-1]=arguments[p];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||i(this,a);else{for(var c=0,l=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&l.push(s[c]);l.length?this._events[a]=1===l.length?l[0]:l:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})),Es=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="BigDataChannelModule",r.FILETYPE={SOUND:2106,FILE:2107,VIDEO:2113},r._bdh_download_server="grouptalk.c2c.qq.com",r._BDHBizID=10001,r._authKey="",r._expireTime=0,r.getInnerEmitterInstance().on(bi,r._getAuthKey,m(r)),r}return i(n,[{key:"_getAuthKey",value:function(){var e=this;this.isIntl()||this.request({protocolName:br}).then((function(t){t.data.authKey&&(e._authKey=t.data.authKey,e._expireTime=parseInt(t.data.expireTime))}))}},{key:"_isFromOlderVersion",value:function(e){return!(!e.content||2===e.content.downloadFlag)}},{key:"parseElements",value:function(e,t){if(!dt(e)||!t)return[];for(var n=[],r=null,o=0;o<e.length;o++)r=e[o],this._needParse(r)?n.push(this._parseElement(r,t)):n.push(e[o]);return n}},{key:"_needParse",value:function(e){return!e.cloudCustomData&&!(!this._isFromOlderVersion(e)||e.type!==T.MSG_AUDIO&&e.type!==T.MSG_FILE&&e.type!==T.MSG_VIDEO)}},{key:"_parseElement",value:function(e,t){switch(e.type){case T.MSG_AUDIO:return this._parseAudioElement(e,t);case T.MSG_FILE:return this._parseFileElement(e,t);case T.MSG_VIDEO:return this._parseVideoElement(e,t)}}},{key:"_parseAudioElement",value:function(e,t){return e.content.url=this._genAudioUrl(e.content.uuid,t),e}},{key:"_parseFileElement",value:function(e,t){return e.content.url=this._genFileUrl(e.content.uuid,t,e.content.fileName),e}},{key:"_parseVideoElement",value:function(e,t){return e.content.url=this._genVideoUrl(e.content.uuid,t),e}},{key:"_genAudioUrl",value:function(e,t){if(""===this._authKey)return"";var n=this.getModule(qn).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(n,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.SOUND,"&openid=").concat(t,"&ver=0")}},{key:"_genFileUrl",value:function(e,t,n){if(""===this._authKey)return"";n||(n="".concat(Math.floor(1e5*Math.random()),"-").concat(Date.now()));var r=this.getModule(qn).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(r,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.FILE,"&openid=").concat(t,"&ver=0&filename=").concat(encodeURIComponent(n))}},{key:"_genVideoUrl",value:function(e,t){if(""===this._authKey)return"";var n=this.getModule(qn).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(n,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.VIDEO,"&openid=").concat(t,"&ver=0")}},{key:"reset",value:function(){this._authKey="",this.expireTime=0}}]),n}(fr),js=["requestSnapshotUrl"],Ds=function(e){c(r,e);var t=g(r);function r(e){var n;o(this,r),(n=t.call(this,e))._n="UploadModule",n.TIMUploadPlugin=null,n.timUploadPlugin=null,n.COSSDK=null,n._cosUploadMethod=null,n.expiredTimeLimit=600,n.appid=0,n.bucketName="",n.ciUrl="",n.directory="",n.downloadUrl="",n.uploadUrl="",n.region="ap-shanghai",n.cos=null,n.cosOptions={secretId:"",secretKey:"",sessionToken:"",expiredTime:0},n.uploadFileType="",n.duration=900,n.tryCount=0,n.UPLOAD_SIZE_LIMIT={AUDIO:20971520,FILE:104857600,IMAGE:20971520,VIDEO:104857600};var a=n.getInnerEmitterInstance();return a.on(bi,n._init,m(n)),a.on(yi,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_init",value:function(){var e=this.getModule(Qn);if(this.TIMUploadPlugin=e.getPlugin("tim-upload-plugin"),this.TIMUploadPlugin)this._initUploaderMethod();else{var t=ie?"cos-wx-sdk":"cos-js-sdk";this.COSSDK=e.getPlugin(t),this.COSSDK?(this._getAuthorizationKey(),this.outputWarning("CosReplacement",t)):this.outputWarning("PluginUndetected")}}},{key:"_onCloudConfigUpdated",value:function(){var e="".concat(this._n,"._onCloudConfigUpdated"),t=this.getCloudConfig("upload_size_limit");if(Ge.l("".concat(e," uploadSizeLimit:").concat(t)),!pt(t))try{var n=JSON.parse(t);this.UPLOAD_SIZE_LIMIT={AUDIO:n.a?1048576*parseInt(n.a):this.UPLOAD_SIZE_LIMIT.AUDIO,FILE:n.f?1048576*parseInt(n.f):this.UPLOAD_SIZE_LIMIT.FILE,IMAGE:n.i?1048576*parseInt(n.i):this.UPLOAD_SIZE_LIMIT.IMAGE,VIDEO:n.v?1048576*parseInt(n.v):this.UPLOAD_SIZE_LIMIT.VIDEO}}catch(o){Ge.e("".concat(e," JSON parse error. uploadSizeLimit:"),t)}}},{key:"_getAuthorizationKey",value:function(){var e=this,t="".concat(this._n,".").concat("_getAuthorizationKey"),n=new Ka("_getAuthorizationKey"),r=Math.ceil(Date.now()/1e3);this.request({protocolName:oa,requestData:{duration:this.expiredTimeLimit}}).then((function(o){var a=o.data;Ge.l("".concat(t," ok. data:"),a);var i=a.expiredTime-r;n.setMessage("requestId:".concat(a.requestId," requestTime:").concat(r," expiredTime:").concat(a.expiredTime," diff:").concat(i,"s")).setNetworkType(e.getNetworkType()).end(),!ie&&a.region&&(e.region=a.region),e.appid=a.appid,e.bucketName=a.bucketName,e.ciUrl=a.ciUrl,e.directory=a.directory,e.downloadUrl=a.downloadUrl,e.uploadUrl=a.uploadUrl,e.cosOptions={secretId:a.secretId,secretKey:a.secretKey,sessionToken:a.sessionToken,expiredTime:a.expiredTime},Ge.l("".concat(t," ok. region:").concat(e.region," bucketName:").concat(e.bucketName)),e._initUploaderMethod()})).catch((function(r){e.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Ge.w("".concat(t," failed. error:"),r)}))}},{key:"_getCosPreSigUrl",value:function(e){var t=this,n="".concat(this._n,".").concat("_getCosPreSigUrl"),r=Math.ceil(Date.now()/1e3),o=new Ka("_getCosPreSigUrl");return this.request({protocolName:aa,requestData:{fileType:e.fileType,fileName:e.fileName,uploadMethod:e.uploadMethod,duration:e.duration}}).then((function(e){t.tryCount=0;var a=e.data||{},i=a.expiredTime-r;return Ge.l("".concat(n," ok. data:"),a),o.setMessage("requestId:".concat(a.requestId," expiredTime:").concat(a.expiredTime," diff:").concat(i,"s")).setNetworkType(t.getNetworkType()).end(),a})).catch((function(r){return-1===r.code&&(r.code=Aa.COS_GET_SIG_FAIL),t.probeNetwork().then((function(e){var t=_(e,2),n=t[0],a=t[1];o.setError(r,n,a).end()})),Ge.w("".concat(n," failed. error:"),r),t.tryCount<1?(t.tryCount++,t._getCosPreSigUrl(e)):(t.tryCount=0,vi({code:Aa.COS_GET_SIG_FAIL}))}))}},{key:"_initUploaderMethod",value:function(){var e=this;if(this.TIMUploadPlugin)return this.timUploadPlugin=new this.TIMUploadPlugin,void(this._cosUploadMethod=function(t,n){e.timUploadPlugin.uploadFile(t,n)});this.appid&&(this.cos=ie?new this.COSSDK({ForcePathStyle:!0,getAuthorization:this._getAuthorization.bind(this)}):new this.COSSDK({getAuthorization:this._getAuthorization.bind(this)}),this._cosUploadMethod=ie?function(t,n){e.cos.postObject(t,n)}:function(t,n){e.cos.uploadFiles(t,n)})}},{key:"onCheckTimer",value:function(e){this.COSSDK&&(this.TIMUploadPlugin||this.isLoggedIn()&&e%60==0&&Math.ceil(Date.now()/1e3)>=this.cosOptions.expiredTime-120&&this._getAuthorizationKey())}},{key:"_getAuthorization",value:function(e,t){t({TmpSecretId:this.cosOptions.secretId,TmpSecretKey:this.cosOptions.secretKey,XCosSecurityToken:this.cosOptions.sessionToken,ExpiredTime:this.cosOptions.expiredTime})}},{key:"upload",value:function(e){if(!0===e.getRelayFlag())return Promise.resolve();var t=this.getModule(ir);switch(e.type){case T.MSG_IMAGE:return t.addTotalCount(Ba),this._uploadImage(e);case T.MSG_FILE:return t.addTotalCount(Ba),this._uploadFile(e);case T.MSG_AUDIO:return t.addTotalCount(Ba),this._uploadAudio(e);case T.MSG_VIDEO:return t.addTotalCount(Ba),this._uploadVideo(e);default:return Promise.resolve()}}},{key:"_uploadImage",value:function(e){var t=this,r=this.getModule(Pn),o=e.getElements()[0],a=r.getMessageOption(e.clientSequence);return this.doUploadImage({file:a.payload.file,to:a.to,onProgress:function(e){if(o.updatePercent(e),ht(a.onProgress))try{a.onProgress(e)}catch(n){return vi({code:Aa.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(r){var a,i,s=r.location,c=r.fileType,l=r.fileSize,u=r.width,d=r.height,p=r.smallImageUrl,f=r.smallImageWidth,h=r.smallImageHeight,m=r.largeImageUrl,v=r.largeImageWidth,g=r.largeImageHeight,_=t.isPrivateNetWork()?s:St(s);return o.updateImageFormat(c),p&&m?(a={url:p,width:f,height:h},i={url:m,width:v,height:g}):(a=Bt({originUrl:_,originWidth:u,originHeight:d,min:198}),i=Bt({originUrl:_,originWidth:u,originHeight:d,min:720})),o.updateImageInfoArray([{size:l,url:_,width:u,height:d},n({},i),n({},a)]),e}))}},{key:"_uploadFile",value:function(e){var t=this,n=this.getModule(Pn),r=e.getElements()[0],o=n.getMessageOption(e.clientSequence);return this.doUploadFile({file:o.payload.file,to:o.to,onProgress:function(e){if(r.updatePercent(e),ht(o.onProgress))try{o.onProgress(e)}catch(t){return vi({code:Aa.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var o=n.location,a=t.isPrivateNetWork()?o:St(o);return r.updateFileUrl(a),e}))}},{key:"_uploadAudio",value:function(e){var t=this,n=this.getModule(Pn),r=e.getElements()[0],o=n.getMessageOption(e.clientSequence);return this.doUploadAudio({file:o.payload.file,to:o.to,onProgress:function(e){if(r.updatePercent(e),ht(o.onProgress))try{o.onProgress(e)}catch(t){return vi({code:Aa.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var o=n.location,a=t.isPrivateNetWork()?o:St(o);return r.updateAudioUrl(a),e}))}},{key:"_uploadVideo",value:function(e){var t=this,n=this.getModule(Pn),r=e.getElements()[0],o=n.getMessageOption(e.clientSequence);return this.doUploadVideo({file:o.payload.file,to:o.to,onProgress:function(e){if(r.updatePercent(e),ht(o.onProgress))try{o.onProgress(e)}catch(t){return vi({code:Aa.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(n){var o=n.location,a=n.snapshotInfo,i=t.isPrivateNetWork()?o:St(o);return r.updateVideoUrl(i),en(a)||r.updateSnapshotInfo(a),e}))}},{key:"_checkSizeError",value:function(e){return vi({code:Aa["MESSAGE_".concat(e,"_SIZE_LIMIT")],message:this.getErrorMessage("UploadSizeLimit",e.toLowerCase(),"".concat(this.UPLOAD_SIZE_LIMIT[e]/1048576," MB"))})}},{key:"doUploadImage",value:function(e){var t=this;if(!e.file)return vi({code:Aa.MESSAGE_IMAGE_SELECT_FILE_FIRST});var n=this._checkImageType(e.file);if(!0!==n)return n;var r=this._checkImageSize(e.file);if(!0!==r)return r;var o=null;return this._setUploadFileType(wi),this.uploadByCOS(e).then((function(e){return o=e,t.isPrivateNetWork()?xt(e.location):xt("https://".concat(e.location))})).then((function(e){return o.width=e.width,o.height=e.height,Promise.resolve(o)}))}},{key:"_checkImageType",value:function(e){var t="";return t=ie?e.url.slice(e.url.lastIndexOf(".")+1):e.files[0].name.slice(e.files[0].name.lastIndexOf(".")+1),ki.indexOf(t.toLowerCase())>=0||vi({code:Aa.MESSAGE_IMAGE_TYPES_LIMIT})}},{key:"_checkImageSize",value:function(e){var t=0;return 0===(t=ie?e.size:e.files[0].size)?vi({code:Aa.MESSAGE_FILE_IS_EMPTY}):t<this.UPLOAD_SIZE_LIMIT.IMAGE||this._checkSizeError("IMAGE")}},{key:"doUploadFile",value:function(e){return e.file?e.file.files[0].size>this.UPLOAD_SIZE_LIMIT.FILE?this._checkSizeError("FILE"):0===e.file.files[0].size?vi({code:Aa.MESSAGE_FILE_IS_EMPTY}):(this._setUploadFileType(Ii),this.uploadByCOS(e)):vi({code:Aa.MESSAGE_FILE_SELECT_FILE_FIRST})}},{key:"doUploadVideo",value:function(e){return e.file.videoFile.size>this.UPLOAD_SIZE_LIMIT.VIDEO?this._checkSizeError("VIDEO"):0===e.file.videoFile.size?vi({code:Aa.MESSAGE_FILE_IS_EMPTY}):-1===Ci.indexOf(e.file.videoFile.type)?vi({code:Aa.MESSAGE_VIDEO_TYPES_LIMIT}):(this._setUploadFileType(Si),ie?this.handleVideoUpload({file:e.file.videoFile,onProgress:e.onProgress}):se?this.handleVideoUpload(e):void 0)}},{key:"handleVideoUpload",value:function(e){var t=this;return new Promise((function(n,r){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){r(new pi({code:Aa.MESSAGE_VIDEO_UPLOAD_FAIL}))}))}))}))}},{key:"doUploadAudio",value:function(e){return e.file?e.file.size>this.UPLOAD_SIZE_LIMIT.AUDIO?this._checkSizeError("AUDIO"):0===e.file.size?vi({code:Aa.MESSAGE_FILE_IS_EMPTY}):(this._setUploadFileType(Ti),this.uploadByCOS(e)):vi({code:Aa.MESSAGE_AUDIO_UPLOAD_FAIL})}},{key:"uploadByCOS",value:function(e){var t=this;if(!ht(this._cosUploadMethod))return this.outputWarning("PluginUndetected"),vi({code:Aa.COS_UNDETECTED});if(this.timUploadPlugin)return this._uploadWithPreSigUrl(e);var n=new Ka("upload"),r="".concat(this._n,".uploadByCOS"),o=Date.now(),a=this._getFile(e);return new Promise((function(i,s){var c=ie?t._createCosOptionsWXMiniApp(e):t._createCosOptionsWeb(e),l=t;t._cosUploadMethod(c,(function(e,c){var u=Object.create(null);if(c){if(e||dt(c.files)&&c.files[0].error){var d=new pi({code:Aa.MESSAGE_FILE_UPLOAD_FAIL});return n.setError(d,!0,t.getNetworkType()).end(),Ge.l("".concat(r," failed. error:"),c.files[0].error),403===c.files[0].error.statusCode&&(Ge.w("".concat(r," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),void s(d)}u.fileName=a.name,u.fileSize=a.size,u.fileType=a.type.slice(a.type.indexOf("/")+1).toLowerCase(),u.location=ie?c.Location:c.files[0].data.Location;var p=Date.now()-o,f=l._formatFileSize(a.size),h=l._formatSpeed(1e3*a.size/p),m="size:".concat(f," time:").concat(p,"ms speed:").concat(h);Ge.l("".concat(r," success. name:").concat(a.name," ").concat(m)),i(u);var v=t.getModule(ir);return v.addCost(Ba,p),v.addFileSize(Ba,a.size),void n.setNetworkType(t.getNetworkType()).setMessage(m).end()}var g=new pi({code:Aa.MESSAGE_FILE_UPLOAD_FAIL});n.setError(g,!0,l.getNetworkType()).end(),Ge.w("".concat(r," failed. error:"),e),403===e.statusCode&&(Ge.w("".concat(r," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),s(g)}))}))}},{key:"_uploadWithPreSigUrl",value:function(e){var t=this,n="".concat(this._n,"._uploadWithPreSigUrl"),r=this._getFile(e);return this._createCosOptionsPreSigUrl(e).then((function(e){return new Promise((function(o,a){var i=new Ka("upload"),s=e.requestSnapshotUrl,c=void 0===s?void 0:s,l=h(e,js),u=Date.now();t._cosUploadMethod(l,(function(e,s){if(e||403===s.statusCode)return i.setError(new pi(e),!0,t.getNetworkType()).end(),Ge.l("".concat(n," failed, error:"),e),void a(new pi({code:Aa.MESSAGE_FILE_UPLOAD_FAIL}));var d=Object.create(null),p=s.data.location||"";t.isPrivateNetWork()||0!==p.indexOf("https://")&&0!==p.indexOf("http://")||(p=p.split("//")[1]),d.fileName=r.name,d.fileSize=r.size,d.fileType=r.type.slice(r.type.indexOf("/")+1).toLowerCase(),d.location=p;var f=Date.now()-u,h=t._formatFileSize(r.size),m=t._formatSpeed(1e3*r.size/f),v="size:".concat(h,",time:").concat(f,"ms,speed:").concat(m," res:").concat(JSON.stringify(s.data));Ge.l("".concat(n," success name:").concat(r.name,",").concat(v)),i.setNetworkType(t.getNetworkType()).setMessage(v).end();var g=t.getModule(ir);g.addCost(Ba,f),g.addFileSize(Ba,r.size);var _=[];if(l.thumbUrl&&l.largeUrl&&(_=[t._getSmallImageInfoByUrl(l.thumbUrl,d),t._getLargeImageInfoByUrl(l.largeUrl,d)]),c&&_.push(t._getSnapshotInfoByUrl(c,d)),_.length>0)return Promise.all(_).then((function(){o(d)}));o(d)}))}))}))}},{key:"_getRawOrUploadProxyUrl",value:function(e){var t=this.getModule(qn).getFileUploadProxy(),n=e;return t&&(n=e.replace(/^https:\/\/[^/]+/,t)),n}},{key:"_getFile",value:function(e){var t;return dt(e.file.files)||(t=e.file.files,"filelist"===vt(t))?e.file.files[0]:e.file}},{key:"_formatFileSize",value:function(e){return e<1024?e+"B":e<1048576?Math.floor(e/1024)+"KB":Math.floor(e/1048576)+"MB"}},{key:"_formatSpeed",value:function(e){return e<=1048576?Ht(e/1024,1)+"KB/s":Ht(e/1048576,1)+"MB/s"}},{key:"_createCosOptionsWeb",value:function(e){var t=this._getFile(e),n=t.name,r=n.slice(n.lastIndexOf(".")),o=this._genFileName("".concat(Ot(999999)).concat(r));return{files:[{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(o),Body:t}],SliceSize:1048576,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Ge.w("onProgress callback error:",n)}},onFileFinish:function(e,t,n){}}}},{key:"_createCosOptionsWXMiniApp",value:function(e){var t=this._getFile(e),n=this._genFileName(t.name),r=t.url;return{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(n),FilePath:r,onProgress:function(t){if(Ge.l(JSON.stringify(t)),"function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Ge.w("onProgress callback error:",n)}}}}},{key:"_createCosOptionsPreSigUrl",value:function(e){var t=this,n="",r="",o=0,a=this._getFile(e);if(ie)n=this._genFileName(a.name),r=a.url,o=1;else{var i=a.name,s=i.slice(i.lastIndexOf("."));n=this._genFileName("".concat(Ot(999999)).concat(s)),r=a,o=0}return this._getCosPreSigUrl({fileType:this.uploadFileType,fileName:n,uploadMethod:o,duration:this.duration}).then((function(o){var a=o.uploadUrl,i=o.downloadUrl,s=o.requestSnapshotUrl,c=void 0===s?void 0:s,l=o.thumbUrl,u=o.largeUrl;return{url:t._getRawOrUploadProxyUrl(a),fileType:t.uploadFileType,fileName:n,resources:r,downloadUrl:i,requestSnapshotUrl:c,thumbUrl:l,largeUrl:u,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Ge.w("onProgress callback error:",n),Ge.e(n)}}}}))}},{key:"_genFileName",value:function(e){return"".concat(Pt(),"-").concat(e)}},{key:"_setUploadFileType",value:function(e){this.uploadFileType=e}},{key:"_getSnapshotInfoByUrl",value:function(e,t){var n=this,r=new Ka("getSnapshotInfo");return this.request({protocolName:ia,requestData:{platform:this.getPlatform(),coverName:this._genFileName(Ot(99999)),requestSnapshotUrl:e}}).then((function(e){var n=(e.data||{}).snapshotUrl;return r.setMessage("snapshotUrl:".concat(n)).end(),en(n)?{}:xt(n).then((function(e){t.snapshotInfo={snapshotUrl:n,snapshotWidth:e.width,snapshotHeight:e.height}}))})).catch((function(e){return Ge.w("".concat(n._n,"._getSnapshotInfoByUrl failed. error:"),e),r.setCode(e.errorCode).setMessage(e.errorInfo).end(),{}}))}},{key:"_getSmallImageInfoByUrl",value:function(e,t){return xt(e).then((function(n){t.smallImageUrl=e,t.smallImageWidth=n.width,t.smallImageHeight=n.height}))}},{key:"_getLargeImageInfoByUrl",value:function(e,t){return xt(e).then((function(n){t.largeImageUrl=e,t.largeImageWidth=n.width,t.largeImageHeight=n.height}))}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset"))}}]),r}(fr),Ls=["downloadKey","pbDownloadKey","messageList"],As=function(){function e(t){o(this,e),this._n="MergerMessageHandler",this._messageModule=t}return i(e,[{key:"uploadMergerMessage",value:function(e,t){var n=this,r="".concat(this._n,".").concat("uploadMergerMessage");Ge.d("".concat(r," message:"),e,"messageBytes:".concat(t));var o=e.payload.messageList,a=o.length,i=new Ka("uploadMergerMessage");return this._messageModule.request({protocolName:fa,requestData:{messageList:o}}).then((function(e){Ge.d("".concat(r," ok. response:"),e.data);var o=e.data,s=o.pbDownloadKey,c=o.downloadKey,l={pbDownloadKey:s,downloadKey:c,messageNumber:a};return i.setNetworkType(n._messageModule.getNetworkType()).setMessage("".concat(a,"-").concat(t,"-").concat(c)).end(),l})).catch((function(e){throw Ge.w("".concat(r," failed. error:"),e),n._messageModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),e}))}},{key:"downloadMergerMessage",value:function(e){var t=this,r="".concat(this._n,".").concat("downloadMergerMessage");Ge.d("".concat(r," message:"),e);var o=e.payload.downloadKey,a=this._messageModule.getFileDownloadProxy(),i=new Ka("downloadMergerMessage");return i.setMessage("downloadKey:".concat(o)),this._messageModule.request({protocolName:ha,requestData:{downloadKey:o}}).then((function(o){if(Ge.d("".concat(r," ok. response:"),o.data),ht(e.clearElement)){var s=e.payload;s.downloadKey,s.pbDownloadKey,s.messageList;var c=h(s,Ls);e.clearElement(),e.setElement({type:e.type,content:n({messageList:o.data.messageList},c)},a)}else{var l=[];o.data.messageList.forEach((function(e){if(!en(e)){var t=new si(e,a);l.push(t)}})),e.payload.messageList=l,e.payload.downloadKey="",e.payload.pbDownloadKey=""}return i.setNetworkType(t._messageModule.getNetworkType()).end(),e})).catch((function(e){throw Ge.w("".concat(r," failed. key:").concat(o," error:"),e),t._messageModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),e}))}},{key:"createMergerMessagePack",value:function(e,t,n){return e.conversationType===T.CONV_C2C?this._createC2CMergerMessagePack(e,t,n):this._createGroupMergerMessagePack(e,t,n)}},{key:"_createC2CMergerMessagePack",value:function(e,t,n){var r=null;t&&(t.offlinePushInfo&&(r=t.offlinePushInfo),!0===t.onlineUserOnly&&(r?r.disablePush=!0:r={disablePush:!0}));var o=[];if(ut(t)&&ut(t.messageControlInfo)){var a=t.messageControlInfo,i=a.excludedFromUnreadCount,s=a.excludedFromLastMessage,c=a.excludedFromContentModeration;!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===c&&o.push("NoMsgCheck")}var l="";ct(e.cloudCustomData)&&e.cloudCustomData.length>0&&(l=e.cloudCustomData);var u=n.pbDownloadKey,d=n.downloadKey,p=n.messageNumber,f=e.payload,h=f.title,m=f.abstractList,v=f.compatibleText,g=this._messageModule.getModule(Bn),_=g&&g.isOnlineMessage(e,t)?0:void 0;return{protocolName:yr,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),toAccount:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:u,downloadKey:d,title:h,abstractList:m,compatibleText:v,messageNumber:p}}],cloudCustomData:l,clientTime:e.clientTime,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:_,offlinePushInfo:r?{pushFlag:!0===r.disablePush?1:0,title:r.title||"",desc:r.description||"",ext:r.extension||"",apnsInfo:{badgeMode:!0===r.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:r.androidOPPOChannelID||""}}:void 0,messageControlInfo:0!==_?o:void 0,isSupportExtension:!0===e.isSupportExtension?1:0}}}},{key:"_createGroupMergerMessagePack",value:function(e,t,n){var r=null;t&&t.offlinePushInfo&&(r=t.offlinePushInfo);var o=[];if(ut(t)&&ut(t.messageControlInfo)){var a=t.messageControlInfo,i=a.excludedFromUnreadCount,s=a.excludedFromLastMessage,c=a.excludedFromContentModeration;!0===i&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg"),!0===c&&o.push("NoMsgCheck")}var l="";ct(e.cloudCustomData)&&e.cloudCustomData.length>0&&(l=e.cloudCustomData);var u=n.pbDownloadKey,d=n.downloadKey,p=n.messageNumber,f=e.payload,h=f.title,m=f.abstractList,v=f.compatibleText,g=this._messageModule.getModule(Fn),_=g&&g.isOnlineMessage(e,t)?1:0;return{protocolName:Or,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),groupID:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:u,downloadKey:d,title:h,abstractList:m,compatibleText:v,messageNumber:p}}],random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:void 0,cloudCustomData:l,onlineOnlyFlag:_,offlinePushInfo:r?{pushFlag:!0===r.disablePush?1:0,title:r.title||"",desc:r.description||"",ext:r.extension||"",apnsInfo:{badgeMode:!0===r.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:r.androidOPPOChannelID||""}}:void 0,clientTime:e.clientTime,needReadReceipt:!0!==e.needReadReceipt||g.isMessageFromOrToAVChatroom(e.to)?0:1,messageControlInfo:0===_?o:void 0,isSupportExtension:!0===e.isSupportExtension?1:0}}}}]),e}(),Ns={ERR_SVR_COMM_SENSITIVE_TEXT:80001,ERR_SVR_COMM_BODY_SIZE_LIMIT:80002,OPEN_SERVICE_OVERLOAD_ERROR:60022,ERR_SVR_MSG_PKG_PARSE_FAILED:20001,ERR_SVR_MSG_INTERNAL_AUTH_FAILED:20002,ERR_SVR_MSG_INVALID_ID:20003,ERR_SVR_MSG_PUSH_DENY:20006,ERR_SVR_MSG_IN_PEER_BLACKLIST:20007,ERR_SVR_MSG_BOTH_NOT_FRIEND:20009,ERR_SVR_MSG_NOT_PEER_FRIEND:20010,ERR_SVR_MSG_NOT_SELF_FRIEND:20011,ERR_SVR_MSG_SHUTUP_DENY:20012,ERR_SVR_GROUP_INVALID_PARAMETERS:10004,ERR_SVR_GROUP_PERMISSION_DENY:10007,ERR_SVR_GROUP_NOT_FOUND:10010,ERR_SVR_GROUP_INVALID_GROUPID:10015,ERR_SVR_GROUP_REJECT_FROM_THIRDPARTY:10016,ERR_SVR_GROUP_SHUTUP_DENY:10017,MESSAGE_SEND_FAIL:2100,OVER_FREQUENCY_LIMIT:2996},Rs=[Aa.MESSAGE_ONPROGRESS_FUNCTION_ERROR,Aa.MESSAGE_IMAGE_SELECT_FILE_FIRST,Aa.MESSAGE_IMAGE_TYPES_LIMIT,Aa.MESSAGE_FILE_IS_EMPTY,Aa.MESSAGE_IMAGE_SIZE_LIMIT,Aa.MESSAGE_FILE_SELECT_FILE_FIRST,Aa.MESSAGE_FILE_SIZE_LIMIT,Aa.MESSAGE_VIDEO_SIZE_LIMIT,Aa.MESSAGE_VIDEO_TYPES_LIMIT,Aa.MESSAGE_AUDIO_UPLOAD_FAIL,Aa.MESSAGE_AUDIO_SIZE_LIMIT,Aa.COS_UNDETECTED];function xs(e){var t=!1;return Object.values(Ns).includes(e)&&(t=!0),(e>=120001&&e<=13e4||e>=10100&&e<=10200)&&(t=!0),t}var Ps=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="MessageModule",n._messageOptionsMap=new Map,n._mergerMessageHandler=new As(m(n)),n}return i(r,[{key:"createTextMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ui(e),r="string"==typeof e.payload?e.payload:e.payload.text,o=new $a({text:r}),a=this._getNickAndAvatarByUserID(t);return n.setElement(o),n.setNickAndAvatar(a),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createImageMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ui(e);if(ie){var r=e.payload.file;if(it(r))return void this.outputWarning("FileUnsupportedInMP","createImageMessage");var o=r.tempFiles[0].path||r.tempFiles[0].tempFilePath,a={url:o,name:o.slice(o.lastIndexOf("/")+1),size:r.tempFiles&&r.tempFiles[0].size||1,type:o.slice(o.lastIndexOf(".")+1).toLowerCase()};e.payload.file=a}else if(se)if(it(e.payload.file)){var i=e.payload.file;e.payload.file={files:[i]}}else if(ut(e.payload.file)&&"undefined"!=typeof uni){var s=e.payload.file.tempFiles[0];e.payload.file={files:[s]}}var c=new Ja({imageFormat:He.UNKNOWN,uuid:this._generateUUID(e.payload.file),file:e.payload.file}),l=this._getNickAndAvatarByUserID(t);return n.setElement(c),n.setNickAndAvatar(l),n.setNameCard(this._getNameCardByGroupID(n)),this._messageOptionsMap.set(n.clientSequence,e),n}},{key:"createAudioMessage",value:function(e){var t=e.payload.file;if(ie){var n={url:t.tempFilePath,name:t.tempFilePath.slice(t.tempFilePath.lastIndexOf("/")+1),size:t.fileSize,second:parseInt(t.duration)/1e3,type:t.tempFilePath.slice(t.tempFilePath.lastIndexOf(".")+1).toLowerCase()};e.payload.file=n}var r=this.getMyUserID();e.currentUser=r,e.senderTinyID=this.getMyTinyID();var o=new ui(e),a=new Qa({second:Math.floor(t.duration/1e3),size:t.fileSize||t.size,url:t.tempFilePath,uuid:this._generateUUID(e.payload.file)}),i=this._getNickAndAvatarByUserID(r);return o.setElement(a),o.setNickAndAvatar(i),o.setNameCard(this._getNameCardByGroupID(o)),this._messageOptionsMap.set(o.clientSequence,e),o}},{key:"createVideoMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID(),e.payload.file.thumbUrl="",e.payload.file.thumbSize=0;var n={};if(ie){if(ne)return void this.outputWarning("VideoUnsupportedInAlipay");if(it(e.payload.file))return void this.outputWarning("FileUnsupportedInMP","createVideoMessage");var r=e.payload.file;dt(r.tempFiles)&&(r=r.tempFiles[0]),n.url=r.tempFilePath,n.name=r.tempFilePath.slice(r.tempFilePath.lastIndexOf("/")+1),n.size=r.size||1,n.second=r.duration||0,n.type=r.tempFilePath.slice(r.tempFilePath.lastIndexOf(".")+1).toLowerCase()}else if(se){if(it(e.payload.file)){var o=e.payload.file;e.payload.file.files=[o]}else if(ut(e.payload.file)&&"undefined"!=typeof uni){var a=e.payload.file.tempFile;e.payload.file.files=[a]}var i=e.payload.file;n.url=window.URL.createObjectURL(i.files[0]),n.name=i.files[0].name,n.size=i.files[0].size||1,n.second=i.files[0].duration||0,n.type=i.files[0].type.split("/")[1]}e.payload.file.videoFile=n;var s=new ui(e),c=new ai({videoFormat:n.type,videoSecond:Ht(n.second,0),videoSize:n.size,remoteVideoUrl:"",videoUrl:n.url,videoUUID:this._generateUUID(e.payload.file.videoFile),thumbUUID:this._generateUUID(e.payload.file.videoFile),thumbWidth:e.payload.file.width||200,thumbHeight:e.payload.file.height||200,thumbUrl:e.payload.file.thumbUrl,thumbSize:e.payload.file.thumbSize,thumbFormat:e.payload.file.thumbUrl.slice(e.payload.file.thumbUrl.lastIndexOf(".")+1).toLowerCase()}),l=this._getNickAndAvatarByUserID(t);return s.setElement(c),s.setNickAndAvatar(l),s.setNameCard(this._getNameCardByGroupID(s)),this._messageOptionsMap.set(s.clientSequence,e),s}},{key:"createCustomMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ui(e),r=new oi({data:e.payload.data,description:e.payload.description,extension:e.payload.extension}),o=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createFaceMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ui(e),r=new Xa(e.payload),o=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createMergerMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=this._getNickAndAvatarByUserID(t),r=new ui(e),o=new ci(e.payload);return r.setElement(o),r.setNickAndAvatar(n),r.setNameCard(this._getNameCardByGroupID(r)),r.setRelayFlag(!0),r}},{key:"createForwardMessage",value:function(e){var t=e.to,n=e.conversationType,r=e.priority,o=e.payload,a=e.needReadReceipt,i=e.receiverList,s=this.getMyUserID(),c=this._getNickAndAvatarByUserID(s);if(o.type===T.MSG_GRP_TIP)return vi({code:Aa.MESSAGE_FORWARD_TYPE_INVALID});var l={to:t,conversationType:n,conversationID:"".concat(n).concat(t),priority:r,isPlaceMessage:0,status:on.UNSEND,currentUser:s,senderTinyID:this.getMyTinyID(),cloudCustomData:e.cloudCustomData||o.cloudCustomData||"",needReadReceipt:a,receiverList:i,isSupportExtension:e.isSupportExtension||!1},u=new ui(l);return u.setElement(o.getElements()[0]),u.setNickAndAvatar(c),u.setNameCard(this._getNameCardByGroupID(o)),u.setRelayFlag(!0),u}},{key:"downloadMergerMessage",value:function(e){return this._mergerMessageHandler.downloadMergerMessage(e)}},{key:"createFileMessage",value:function(e){if(ie){if(!Q&&!Z&&!oe)return;var t=ce.getSystemInfoSync().SDKVersion;if(Q&&Vt(t,"2.5.0")<0)return void this.outputWarning("WXChooseMessageFile");if(Z&&Vt(t,"1.18.0")<0)return void this.outputWarning("QQChooseMessageFile")}if(se||oe){if(it(e.payload.file)){var r=e.payload.file;e.payload.file={files:[r]}}else if(ut(e.payload.file)&&"undefined"!=typeof uni){var o=e.payload.file,a=o.tempFiles,i=o.files,s=null;dt(a)?s=a[0]:dt(i)&&(s=i[0]),e.payload.file={files:[s]}}}else if(Q||Z){var c=e.payload.file.tempFiles,l=n(n({},c[0]),{},{url:c[0].path});e.payload.file={files:[l]}}var u=this.getMyUserID();e.currentUser=u,e.senderTinyID=this.getMyTinyID();var d=new ui(e),p=new ri({uuid:this._generateUUID(e.payload.file),file:e.payload.file}),f=this._getNickAndAvatarByUserID(u);return d.setElement(p),d.setNickAndAvatar(f),d.setNameCard(this._getNameCardByGroupID(d)),this._messageOptionsMap.set(d.clientSequence,e),d}},{key:"createLocationMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ui(e),r=new ii(e.payload),o=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"_onCannotFindModule",value:function(){return vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"sendMessageInstance",value:function(e,t){var n=this;if(!1===this.getModule(lr).filterMessage(e,t))return this._onSendMessageFailed(e,new pi({code:Aa.PROFANITY_FOUND}));var r,o=null;switch(e.conversationType){case T.CONV_C2C:if(!(o=this.getModule(Bn)))return this._onCannotFindModule();break;case T.CONV_GROUP:if(!(o=this.getModule(Fn)))return this._onCannotFindModule();if(jt({groupID:e.to})){var a=o.getLocalGroupProfile(e.to);if(a&&a.isSupportTopic)return vi({code:Aa.MESSAGE_SEND_GROUP_WITH_TOPIC_FAIL})}break;default:return vi({code:Aa.MESSAGE_SEND_INVALID_CONVERSATION_TYPE})}var i=this.getModule(Xn),s=this.getModule(Fn);return i.upload(e).then((function(){return n._getSendMessageSpecifiedKey(e)===Va&&n.getModule(ir).addSuccessCount(Ba),s.guardForAVChatRoom(e).then((function(){if(!e.isSendable())return vi({code:Aa.MESSAGE_FILE_URL_IS_EMPTY});n._addSendMessageTotalCount(e),r=Date.now();var a=function(e){var t="utf-8";se&&document&&(t=document.charset.toLowerCase());var n,r,o=0;if(r=e.length,"utf-8"===t||"utf8"===t)for(var a=0;a<r;a++)(n=e.codePointAt(a))<=127?o+=1:n<=2047?o+=2:n<=65535?o+=3:(o+=4,a++);else if("utf-16"===t||"utf16"===t)for(var i=0;i<r;i++)(n=e.codePointAt(i))<=65535?o+=2:(o+=4,i++);else o=e.replace(/[^\x00-\xff]/g,"aa").length;return o}(JSON.stringify(e));return e.type===T.MSG_MERGER&&a>11264?n._mergerMessageHandler.uploadMergerMessage(e,a).then((function(r){var o=n._mergerMessageHandler.createMergerMessagePack(e,t,r);return n.request(o)})):(n.getModule(zn).setMessageRandom(e),e.conversationType===T.CONV_C2C||e.conversationType===T.CONV_GROUP?o.sendMessage(e,t):void 0)})).then((function(a){var i=a.data,s=i.time,c=i.sequence,l=i.readReceiptCode;st(l)&&0!==l&&(new Ka("sendMessageWithReceipt").setMessage("from:".concat(e.from," to:").concat(e.to," sequence:").concat(c," readReceiptCode:").concat(l)).end(),Ge.w("".concat(n._n,".sendMessageInstance readReceiptCode:").concat(l," message:").concat(n.getErrorMessage(l)))),n._addSendMessageSuccessCount(e,r),n._messageOptionsMap.delete(e.clientSequence);var u=n.getModule(zn);e.status=on.SUCCESS,e.time=s;var d=!1;if(e.conversationType===T.CONV_GROUP)e.sequence=c;else if(e.conversationType===T.CONV_C2C){var p=u.getLatestMessageSentByMe(e.conversationID);if(p){var f=p.nick,h=p.avatar;f===e.nick&&h===e.avatar||(d=!0)}}if(d&&u.modifyMessageSentByMe({conversationID:e.conversationID,latestNick:e.nick,latestAvatar:e.avatar}),o.isOnlineMessage(e,t))e._onlineOnlyFlag=!0;else{u.appendToMessageList(e);var m=e;ut(t)&&ut(t.messageControlInfo)&&(!0===t.messageControlInfo.excludedFromLastMessage&&(e._isExcludedFromLastMessage=!0,m=""),!0===t.messageControlInfo.excludedFromUnreadCount&&(e._isExcludedFromUnreadCount=!0));var v=e.conversationType;Dt(e.to)&&(v=T.CONV_TOPIC,n.getModule(Yn).onMessageSent({groupID:qt(e.to),topicID:e.to,lastMessage:m})),u.onMessageSent({conversationOptionsList:[{conversationID:e.conversationID,unreadCount:0,type:v,subType:e.conversationSubType,lastMessage:m}]})}return e.getRelayFlag()||"TIMImageElem"!==e.type||Ft(e.payload.imageInfoArray),di({message:e})}))})).catch((function(t){return n._onSendMessageFailed(e,t)}))}},{key:"_onSendMessageFailed",value:function(e,t){e.status=on.FAIL,this.getModule(zn).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new Ka("sendMessage");return n.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to)),this.probeNetwork().then((function(e){var r=_(e,2),o=r[0],a=r[1];n.setError(t,o,a).end()})),Ge.e("".concat(this._n,"._onSendMessageFailed error:"),t),vi(new pi({code:t&&t.code?t.code:Aa.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:void 0,data:{message:e}}))}},{key:"_getSendMessageSpecifiedKey",value:function(e){if([T.MSG_IMAGE,T.MSG_AUDIO,T.MSG_VIDEO,T.MSG_FILE].includes(e.type))return Va;if(e.conversationType===T.CONV_C2C)return xa;if(e.conversationType===T.CONV_GROUP){var t=this.getModule(Fn).getLocalGroupProfile(e.to);if(!t)return;var n=t.type;return Et(n)?Ua:Pa}}},{key:"_addSendMessageTotalCount",value:function(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule(ir).addTotalCount(t)}},{key:"_addSendMessageSuccessCount",value:function(e,t){var n=Math.abs(Date.now()-t),r=this._getSendMessageSpecifiedKey(e);if(r){var o=this.getModule(ir);o.addSuccessCount(r),o.addCost(r,n)}}},{key:"_addSendMessageFailCountOnUser",value:function(e,t){var n,r,o=t.code,a=void 0===o?-1:o,i=this.getModule(ir),s=this._getSendMessageSpecifiedKey(e);s===Va&&(n=a,r=!1,Rs.includes(n)&&(r=!0),r)?i.addFailedCountOfUserSide(Ba):xs(a)&&s&&i.addFailedCountOfUserSide(s)}},{key:"resendMessage",value:function(e){return e.isResend=!0,e.status=on.UNSEND,this.sendMessageInstance(e)}},{key:"revokeMessage",value:function(e){var t=this,n=null;if(e.conversationType===T.CONV_C2C?n=this.getModule(Bn):e.conversationType===T.CONV_GROUP&&(n=this.getModule(Fn)),!n)return this._onCannotFindModule();var r=new Ka("revokeMessage");r.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to));var o="".concat(this._n,".").concat("revokeMessage");return n.revokeMessage(e).then((function(n){var a=n.data.recallRetList;if(!en(a)&&0!==a[0].retCode){var i=new pi({code:a[0].retCode,data:{message:e}});return r.setCode(i.code).setMoreMessage(i.message).end(),vi(i)}return Ge.i("".concat(o," ok. ID:").concat(e.ID)),e.isRevoked=!0,r.end(),t.getModule(zn).onMessageRevoked([e]),di({message:e})})).catch((function(n){t.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];r.setError(n,o,a).end()}));var a=new pi({code:n&&n.code?n.code:Aa.MESSAGE_REVOKE_FAIL,message:n&&n.message?n.message:void 0,data:{message:e}});return Ge.w("".concat(o," failed. error:"),n),vi(a)}))}},{key:"deleteMessage",value:function(e){var t=this,n=null,r=e[0],o=r.conversationID,a="",i=[],s=[];if(r.conversationType===T.CONV_C2C)n=this.getModule(Bn),a=o.replace(T.CONV_C2C,""),e.forEach((function(e){e&&e.status===on.SUCCESS&&e.conversationID===o&&(e._onlineOnlyFlag||i.push("".concat(e.sequence,"_").concat(e.random,"_").concat(e.time)),s.push(e))}));else if(r.conversationType===T.CONV_GROUP)n=this.getModule(Fn),a=o.replace(T.CONV_GROUP,""),e.forEach((function(e){e&&e.status===on.SUCCESS&&e.conversationID===o&&(e._onlineOnlyFlag||i.push("".concat(e.sequence)),s.push(e))}));else if(r.conversationType===T.CONV_SYSTEM)return vi({code:Aa.CANNOT_DELETE_GROUP_SYSTEM_NOTICE});if(!n)return this._onCannotFindModule();if(0===i.length)return this._onMessageDeleted(s);i.length>30&&(i=i.slice(0,30),s=s.slice(0,30));var c=new Ka("deleteMessage");c.setMessage("to:".concat(a," count:").concat(i.length));var l="".concat(this._n,".").concat("deleteMessage");return n.deleteMessage({to:a,keyList:i}).then((function(e){return c.end(),Ge.i("".concat(l," ok")),t._onMessageDeleted(s)})).catch((function(e){t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ge.w("".concat(l," failed. error:"),e);var n=new pi({code:e&&e.code?e.code:Aa.MESSAGE_DELETE_FAIL,message:e&&e.message?e.message:void 0});return vi(n)}))}},{key:"_onMessageDeleted",value:function(e){return this.getModule(zn).onMessageDeleted(e),mi({messageList:e})}},{key:"translateText",value:function(e){var t="".concat(this._n,".").concat("translateText"),r=e.sourceTextList,o=e.sourceLanguage,a=e.targetLanguage,i=new Ka("translateText");return i.setMessage("sourceLanguage:".concat(o," targetLanguage:").concat(a)),this.request({protocolName:La,requestData:{sourceTextList:r,source:o||"auto",target:a,from:this.getMyTinyID(),SDKAppID:this.getSDKAppID()}}).then((function(e){var r=e.data,o=r.error,a=r.requestID,s=r.translatedTextList;if(0===o.code)return i.end(),Ge.i("".concat(t," ok. requestID:").concat(a)),di({translatedTextList:s});throw n(n({},o),{},{requestID:a})})).catch((function(e){return i.setCode(e.code).setMoreMessage(e.requestID).end(),Ge.w("".concat(t," failed. error:"),e),vi({code:Aa.TRANSLATE_TEXT_FAIL})}))}},{key:"modifyRemoteMessage",value:function(e){var t=this,n=null,r=e.conversationType,o=e.to;if(this.getModule(Fn).isMessageFromOrToAVChatroom(o))return vi({code:Aa.MESSAGE_MODIFY_DISABLED_IN_AVCHATROOM,data:{message:e}});if(!1===this.getModule(lr).filterMessage(e))return vi({code:Aa.PROFANITY_FOUND,data:{message:e}});r===T.CONV_C2C?n=this.getModule(Bn):r===T.CONV_GROUP&&(n=this.getModule(Fn));var a=new Ka("modifyMessage");a.setMessage("to:".concat(o));var i="".concat(this._n,".modifyRemoteMessage");return n.modifyRemoteMessage(e).then((function(n){a.end(),Ge.i("".concat(i," ok"));var r=t._onModifyRemoteMessageResp(e,n.data);return di({message:r})})).catch((function(n){if(a.setCode(n.code).setMoreMessage(n.message).end(),Ge.w("".concat(i," failed. error:"),n),20027===n.code){var r=t._onModifyRemoteMessageResp(e,n.data);return vi({code:Aa.MESSAGE_MODIFY_CONFLICT,data:{message:r}})}return vi({code:n.code,message:n.message,data:{message:e}})}))}},{key:"_onModifyRemoteMessageResp",value:function(e,t){Ge.d("".concat(this._n,"._onModifyRemoteMessageResp options:"),t);var n=e.conversationType,r=e.from,o=e.to,a=e.random,i=e.sequence,s=e.time,c=t.elements,l=t.messageVersion,u=t.cloudCustomData,d=void 0===u?"":u;return this.getModule(zn).onMessageModified({conversationType:n,from:r,to:o,time:s,random:a,sequence:i,elements:c,cloudCustomData:d,messageVersion:l})}},{key:"_generateUUID",value:function(e){var t=this.getModule(qn),n="".concat(t.getSDKAppID(),"-").concat(t.getUserID(),"-").concat(function(){for(var e="",t=32;t>0;--t)e+=Mt[Math.floor(Math.random()*kt)];return e}()),r=e.name||e.value||e.url||e.tempFilePath,o=r&&r.slice(r.lastIndexOf(".")+1);return o&&(n="".concat(n,".").concat(o)),n}},{key:"getMessageOption",value:function(e){return this._messageOptionsMap.get(e)}},{key:"_getNickAndAvatarByUserID",value:function(e){return this.getModule(Vn).getNickAndAvatarByUserID(e)}},{key:"_getNameCardByGroupID",value:function(e){if(e.conversationType===T.CONV_GROUP){var t=this.getModule(Fn);if(t)return t.getMyNameCardByGroupID(e.to)}return""}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._messageOptionsMap.clear()}}]),r}(fr),Us=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="MessageExtensionModule",r.messageExtensionMap=new Map,r.globalSeqMap=new Map,r.getMessageExtensionsMap=new Map,r}return i(n,[{key:"onMessageExtensionNotify",value:function(e){var t=this,n=e.dataList,r=n.messageInfo,o=n.operateType,a=n.operateResultList,i=n.tinyID,s=n.globalSequence,c=r.clientTime,l=r.random,u="".concat(i,"-").concat(c,"-").concat(l),d=[],p=[];Ge.l("".concat(this._n,".onMessageExtensionNotify messageID:").concat(u," operateType:").concat(o," globalSequence:").concat(s)),this._updateGlobalSequence(u,s);var f=!1,h=!1;a.forEach((function(e){var n=e.extensions,r=void 0===n?[]:n,a=e.clearSequence;1===o?(f=!0,r.forEach((function(e){d.push({key:e.key,value:e.value})})),t._updateLocalExtension(u,r)):2===o?(h=!0,r.forEach((function(e){p.push(e.key)})),t._updateLocalExtension(u,r)):3===o&&(h=!0,t._hasLocalExtension(u)&&t._getLocalExtension(u).forEach((function(e,t){e.seq<=a&&!en(e.value)&&p.push(t)})),t._clearLocalExtension(u,a))})),f&&this.emitOuterEvent(S.MESSAGE_EXTENSIONS_UPDATED,{messageID:u,extensions:d}),h&&this.emitOuterEvent(S.MESSAGE_EXTENSIONS_DELETED,{messageID:u,keyList:p})}},{key:"setMessageExtensions",value:function(e,t){var n=this;if(!this.canIUse(H.MSG_EXT))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var r="".concat(this._n,".").concat("setMessageExtensions"),o=e.ID,a=e.conversationID,i=e.sequence,s=e.time,c=b(t);t.length>20&&(c=t.slice(0,20),Ge.w("".concat(r,". the length of extensions cannot exceed 20.")));var l="conversationID:".concat(a," messageID:").concat(o," sequence:").concat(i," time:").concat(s," count:").concat(c.length),u=new Ka("setMessageExtensions");return u.setMessage(l),Ge.l("".concat(r," ").concat(l)),this._modifyMessageExtensions(e,c).then((function(e){var t=e.resultList,n=e.successCount,o=e.failureCount,a="success count:".concat(n," fail count:").concat(o);return u.setMoreMessage(a).end(),Ge.l("".concat(r," ok. ").concat(a)),di({extensions:t})})).catch((function(e){return n.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setError(e,r,o).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}},{key:"getMessageExtensions",value:function(e){var t=this;if(!this.canIUse(H.MSG_EXT))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var n="".concat(this._n,".").concat("getMessageExtensions"),r=e.ID,o=e.conversationID,a=e.sequence,i=e.time,s="conversationID:".concat(o," messageID:").concat(r," sequence:").concat(a," time:").concat(i),c=new Ka("getMessageExtensions");c.setMessage(s),Ge.l("".concat(n," ").concat(s));var l=void 0;return this.getMessageExtensionsMap.has(r)&&(l=this._getGlobalSequence(r)),this._getMessageExtensions(e,l).then((function(e){return c.end(),Ge.l("".concat(n," ok. total count:").concat(e.length)),pt(l)&&e.length>0&&t.getMessageExtensionsMap.set(r,1),di({extensions:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"deleteMessageExtensions",value:function(e,t){var n=this;if(!this.canIUse(H.MSG_EXT))return vi({code:Aa.CANNOT_USE_COMMERCIAL_ABILITY});var r="".concat(this._n,".").concat("deleteMessageExtensions"),o=[],a=3;en(t)||(a=2,t.forEach((function(e){o.push({key:e,value:"",seq:0})})));var i=e.ID,s=e.conversationID,c=e.sequence,l=e.time,u="conversationID:".concat(s," messageID:").concat(i," sequence:").concat(c," time:").concat(l," operateType:").concat(a),d=new Ka("deleteMessageExtensions");return d.setMessage(u),Ge.l("".concat(r," ").concat(u)),this._modifyMessageExtensions(e,o,a).then((function(e){var t=e.resultList,n=e.successCount,o=e.failureCount,i="";return 2===a&&(i="success count:".concat(n," fail count:").concat(o)),d.setMoreMessage("".concat(i)).end(),Ge.l("".concat(r," ok. ").concat(i)),di({extensions:t})})).catch((function(e){return n.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];d.setError(e,r,o).end()})),Ge.e("".concat(r," failed. error:"),e),vi(e)}))}},{key:"_modifyMessageExtensions",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=Dt(e.to)?T.CONV_TOPIC:e.conversationType,a=void 0;3!==r&&(a=this._getRequestExtensions(e,t));var i=null;switch(o){case T.CONV_C2C:i=this.getModule(Bn);break;case T.CONV_GROUP:i=this.getModule(Fn);break;case T.CONV_TOPIC:i=this.getModule(Yn);break;default:return vi({code:Aa.CANNOT_FIND_MODULE})}return i.modifyMessageExtensions(e,a,r).then((function(t){var r=t.data,o=r.extensions,a=r.seq,i=[],s=0,c=0,l=[];return(o=en(o)?[]:o).forEach((function(e){var t=e.errorCode,n=e.extension,r=n.key,o=n.value,a=n.seq;i.push({code:t,key:r,value:o}),0===t?s++:c++,l.push({key:r,value:o,seq:a})})),n._updateGlobalSequence(e.ID,a),l.length>0&&(n._updateLocalExtension(e.ID,l),l=null),{resultList:i,successCount:s,failureCount:c}})).catch((function(e){return vi(e)}))}},{key:"_getRequestExtensions",value:function(e,t){var n=[];if(this._hasLocalExtension(e.ID)){var r=this._getLocalExtension(e.ID);return t.forEach((function(e){var t=e.key,o=e.value,a=0;r.has(t)&&(a=r.get(t).seq),n.push({key:t,value:o,seq:a})})),n}return t.forEach((function(e){var t=e.key,r=e.value;n.push({key:t,value:r,seq:0})})),n}},{key:"_getMessageExtensions",value:function(e,t){var n=this,r="".concat(this._n,"._getMessageExtensions"),o=e.ID,a=e.to,i=null;switch(Dt(a)?T.CONV_TOPIC:e.conversationType){case T.CONV_C2C:i=this.getModule(Bn);break;case T.CONV_GROUP:i=this.getModule(Fn);break;case T.CONV_TOPIC:i=this.getModule(Yn);break;default:return vi({code:Aa.CANNOT_FIND_MODULE})}return i.getMessageExtensions(e,t).then((function(t){var a=t.data,i=a.extensions,s=a.completeFlag,c=a.globalSequence,l=a.clearSequence;if(i=en(i)?[]:i,Ge.l("".concat(r," ok. completeFlag:").concat(s," globalSequence:").concat(c," clearSequence:").concat(l," count:").concat(i.length)),n._updateLocalExtension(o,i),n._clearLocalExtension(o,l),n._updateGlobalSequence(o,c),1!==s){var u=i.slice(-1)[0].seq+1;return n._getMessageExtensions(e,u)}return n._getLocalExtensions(o)})).catch((function(e){return vi(e)}))}},{key:"_hasLocalExtension",value:function(e){return this.messageExtensionMap.has(e)}},{key:"_getLocalExtension",value:function(e){return this.messageExtensionMap.get(e)}},{key:"_updateLocalExtension",value:function(e,t){this._hasLocalExtension(e)||this.messageExtensionMap.set(e,new Map);var n=this._getLocalExtension(e);t.forEach((function(e){var t=e.key,r=e.value,o=void 0===r?"":r,a=e.seq;n.set(t,{value:o,seq:a})}))}},{key:"_clearLocalExtension",value:function(e,t){if(!(t<=0)&&this._hasLocalExtension(e)){var n=this._getLocalExtension(e);n.forEach((function(e,r){e.seq<=t&&n.delete(r)}))}}},{key:"_getLocalExtensions",value:function(e){var t=[];return this._hasLocalExtension(e)&&this._getLocalExtension(e).forEach((function(e,n){var r=e.value;en(r)||t.push({key:n,value:r})})),t}},{key:"_getGlobalSequence",value:function(e){return this.globalSeqMap.get(e)}},{key:"_updateGlobalSequence",value:function(e,t){this.globalSeqMap.set(e,t)}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this.messageExtensionMap.clear(),this.globalSeqMap.clear(),this.getMessageExtensionsMap.clear()}}]),n}(fr),Vs=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="ComboMessageModule",r}return i(n,[{key:"sendMessage",value:function(e){var t=this,n=this._constructMessageInstance(e);if(null===n)return vi({code:Aa.MESSAGE_SEND_FAIL});this._addSendMessageTotalCount(n);var r=Date.now();return this.getModule(zn).setMessageRandom(n),this._sendComboMessage(n,e).then((function(e){var o=e.data,a=o.time,i=o.sequence,s=o.readReceiptCode;st(s)&&0!==s&&(new Ka("sendMessageWithReceipt").setMessage("from:".concat(n.from," to:").concat(n.to," sequence:").concat(i," readReceiptCode:").concat(s)).end(),Ge.w("".concat(t._n,".sendMessage readReceiptCode:").concat(s," message:").concat(t.getErrorMessage(s)))),t._addSendMessageSuccessCount(n,r);var c=t.getModule(zn);n.status=on.SUCCESS,n.time=a,n.conversationType===T.CONV_GROUP&&(n.sequence=i),c.appendToMessageList(n);var l=n;return!0===n._isExcludedFromLastMessage&&(l=""),c.onMessageSent({conversationOptionsList:[{conversationID:n.conversationID,unreadCount:0,type:n.conversationType,subType:n.conversationSubType,lastMessage:l}]}),di({message:n})})).catch((function(e){return t._onSendMessageFailed(n,e)}))}},{key:"_sendComboMessage",value:function(e,t){var n=this._m.getModule(er),r="";return e.conversationType===T.CONV_C2C&&(r="".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SEND_MESSAGE)),e.conversationType===T.CONV_GROUP&&(r="".concat(G.NAME.GROUP,".").concat(G.CMD.SEND_GROUP_MESSAGE)),n.sendComboMessage({servcmd:r,data:t})}},{key:"_constructMessageInstance",value:function(e){var t="".concat(this._n,"._constructMessageInstance"),n=null;try{var r=this.getMyUserID(),o={};if(o.senderTinyID=this.getMyTinyID(),o.currentUser=r,o.from=e.From_Account||r,e.GroupId?(o.conversationID="".concat(T.CONV_GROUP).concat(e.GroupId),o.conversationType=T.CONV_GROUP,o.to=e.GroupId):e.To_Account&&(o.conversationID="".concat(T.CONV_C2C).concat(e.To_Account),o.conversationType=T.CONV_C2C,o.to=e.To_Account),o.time=e.MsgTimeStamp||0,o.random=e.Random||e.MsgRandom||0,o.priority=e.MsgPriority,ct(e.CloudCustomData)&&e.CloudCustomData.length>0&&(o.cloudCustomData=e.CloudCustomData),dt(e.SendMsgControl)&&(o.messageControlInfo={},e.SendMsgControl.includes("NoUnread")&&(o.messageControlInfo.excludedFromUnreadCount=1),e.SendMsgControl.includes("NoLastMsg")&&(o.messageControlInfo.excludedFromLastMessage=1)),o.conversationType===T.CONV_GROUP&&dt(e.To_Account)&&e.To_Account.length>0){var a=e.To_Account;e.To_Account.length>50&&(a=e.To_Account.slice(0,50),Ge.w("".concat(t," To_Account must be less than or equal to 50."))),o.receiverList=b(a),e.To_Account=b(a)}1!==e.IsNeedReadReceipt&&1!==e.NeedReadReceipt||(o.needReadReceipt=!0),1===e.SupportMessageExtension&&(o.isSupportExtension=!0),(n=new ui(o)).status=on.UNSEND,e.MsgClientTime=n.clientTime,n.conversationType===T.CONV_C2C&&(e.MsgSeq=n.sequence);for(var i,s=e.MsgBody.length,c=0;c<s;c++)"TIMTextElem"===(i=e.MsgBody[c]).MsgType?n.setTextElement(i.MsgContent.Text):"TIMCustomElem"===i.MsgType?n.setCustomElement({data:i.MsgContent.Data||"",description:i.MsgContent.Desc||"",extension:i.MsgContent.Ext||""}):"TIMFaceElem"===i.MsgType&&n.setFaceElement({index:i.MsgContent.Index,data:i.MsgContent.Data});var l=n.getElements();n.payload=l[0].content,n.type=l[0].type}catch(d){n=null,Ge.e("".concat(t," failed. error:"),d)}return n}},{key:"_onSendMessageFailed",value:function(e,t){e.status=on.FAIL,this.getModule(zn).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new Ka("sendMessage");return n.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to)),this.probeNetwork().then((function(e){var r=_(e,2),o=r[0],a=r[1];n.setError(t,o,a).end()})),Ge.e("".concat(this._n,"._onSendMessageFailed error:"),t),vi(new pi({code:t&&t.code?t.code:Aa.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:void 0,data:{message:e}}))}},{key:"_getSendMessageSpecifiedKey",value:function(e){if(e.conversationType===T.CONV_C2C)return xa;if(e.conversationType===T.CONV_GROUP){var t=this.getModule(Fn).getLocalGroupProfile(e.to);if(!t)return;var n=t.type;return Et(n)?Ua:Pa}}},{key:"_addSendMessageTotalCount",value:function(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule(ir).addTotalCount(t)}},{key:"_addSendMessageSuccessCount",value:function(e,t){var n=Math.abs(Date.now()-t),r=this._getSendMessageSpecifiedKey(e);if(r){var o=this.getModule(ir);o.addSuccessCount(r),o.addCost(r,n)}}},{key:"_addSendMessageFailCountOnUser",value:function(e,t){var n=t.code,r=void 0===n?-1:n,o=this.getModule(ir),a=this._getSendMessageSpecifiedKey(e);xs(r)&&a&&o.addFailedCountOfUserSide(a)}}]),n}(fr),Bs=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="PluginModule",r.plugins={},r}return i(n,[{key:"registerPlugin",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.plugins[n]=e[n]})),new Ka("registerPlugin").setMessage("".concat(Object.keys(e))).end()}},{key:"getPlugin",value:function(e){return this.plugins[e]}},{key:"reset",value:function(){}}]),n}(fr),Fs=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="SyncUnreadMessageModule",n._cookie="",n._onlineSyncFlag=!1,n.getInnerEmitterInstance().on(bi,n._onLoginSuccess,m(n)),n}return i(r,[{key:"_onLoginSuccess",value:function(e){this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"_startSync",value:function(e){var t=this,r=e.cookie,o=e.syncFlag,a=e.isOnlineSync,i="".concat(this._n,"._startSync");Ge.l("".concat(i," cookie:").concat(r," syncFlag:").concat(o," isOnlineSync:").concat(a)),this.request({protocolName:_r,requestData:{cookie:r,syncFlag:o,isOnlineSync:a}}).then((function(e){var r=e.data,o=r.cookie,a=r.syncFlag;t._cookie=o,en(o)||(0===a||1===a?(t._dispatchUnreadMessage(n(n({},e.data),{},{isSyncingEnded:!1})),t._startSync({cookie:o,syncFlag:a,isOnlineSync:0})):2===a&&t._dispatchUnreadMessage(n(n({},e.data),{},{isSyncingEnded:!0})))})).catch((function(e){Ge.e("".concat(i," failed. error:"),e)}))}},{key:"_dispatchUnreadMessage",value:function(e){e.eventArray&&this.getModule(er).onMessage({head:{},body:{eventArray:e.eventArray,isInstantMessage:this._onlineSyncFlag,isSyncingEnded:e.isSyncingEnded}}),this.getModule(Bn).onNewC2CMessage({dataList:e.messageList,isInstantMessage:!!e.isSyncingEnded&&this._onlineSyncFlag,C2CRemainingUnreadList:e.C2CRemainingUnreadList,C2CPairUnreadList:e.C2CPairUnreadList})}},{key:"startOnlineSync",value:function(){Ge.l("".concat(this._n,".startOnlineSync")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:1})}},{key:"startSyncOnReconnected",value:function(){Ge.l("".concat(this._n,".startSyncOnReconnected.")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._onlineSyncFlag=!1,this._cookie=""}}]),r}(fr),Gs={request:{toAccount:"To_Account",fromAccount:"From_Account",to:"To_Account",from:"From_Account",groupID:"GroupId",groupAtUserID:"GroupAt_Account",extension:"Ext",data:"Data",description:"Desc",elements:"MsgBody",sizeType:"Type",downloadFlag:"Download_Flag",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",videoUrl:"",imageUrl:"URL",fileUrl:"Url",uuid:"UUID",priority:"MsgPriority",receiverUserID:"To_Account",receiverGroupID:"GroupId",messageSender:"SenderId",messageReceiver:"ReceiverId",nick:"From_AccountNick",avatar:"From_AccountHeadurl",messageNumber:"MsgNum",pbDownloadKey:"PbMsgKey",downloadKey:"JsonMsgKey",applicationType:"PendencyType",userIDList:"To_Account",groupNameList:"GroupName",userID:"To_Account",groupAttributeList:"GroupAttr",mainSequence:"AttrMainSeq",avChatRoomKey:"BytesKey",attributeControl:"AttrControl",sequence:"seq",messageControlInfo:"SendMsgControl",updateSequence:"UpdateSeq",clientTime:"MsgClientTime",sequenceList:"MsgSeqList",topicID:"TopicId",customData:"CustomString",isSupportTopic:"SupportTopic",isWebUniapp:"is_web_uniapp",isSupportExtension:"SupportMessageExtension",messageSequence:"MsgSeq",messageKey:"MsgKey",startSequence:"startSeq",simplifiedMessage:"DownsizeFlag"},response:{MsgPriority:"priority",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID",Download_Flag:"downloadFlag",GroupId:"groupID",Member_Account:"userID",MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",MsgSeq:"sequence",MsgRandom:"random",MsgTime:"time",MsgTimeStamp:"time",MsgContent:"content",MsgBody:"elements",From_AccountNick:"nick",From_AccountHeadurl:"avatar",GroupWithdrawInfoArray:"revokedInfos",GroupReadInfoArray:"groupMessageReadNotice",LastReadMsgSeq:"lastMessageSeq",WithdrawC2cMsgNotify:"c2cMessageRevokedNotify",C2cWithdrawInfoArray:"revokedInfos",C2cReadedReceipt:"c2cMessageReadReceipt",ReadC2cMsgNotify:"c2cMessageReadNotice",LastReadTime:"peerReadTime",MsgRand:"random",MsgType:"type",MsgShow:"messageShow",NextMsgSeq:"nextMessageSeq",FaceUrl:"avatar",ProfileDataMod:"profileModify",Profile_Account:"userID",ValueBytes:"value",ValueNum:"value",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgFrom_AccountExtraInfo:"messageFromAccountExtraInformation",Operator_Account:"operatorID",OpType:"operationType",ReportType:"operationType",UserId:"userID",User_Account:"userID",List_Account:"userIDList",MsgOperatorMemberExtraInfo:"operatorInfo",MsgMemberExtraInfo:"memberInfoList",ImageUrl:"avatar",NickName:"nick",MsgGroupNewInfo:"newGroupProfile",MsgAppDefinedData:"groupCustomField",Owner_Account:"ownerID",GroupFaceUrl:"avatar",GroupIntroduction:"introduction",GroupNotification:"notification",GroupApplyJoinOption:"joinOption",MsgKey:"messageKey",GroupInfo:"groupProfile",ShutupTime:"muteTime",Desc:"description",Ext:"extension",GroupAt_Account:"groupAtUserID",MsgNum:"messageNumber",PbMsgKey:"pbDownloadKey",JsonMsgKey:"downloadKey",MsgModifiedFlag:"isModified",PendencyItem:"applicationItem",PendencyType:"applicationType",AddTime:"time",AddSource:"source",AddWording:"wording",ProfileImImage:"avatar",PendencyAdd:"friendApplicationAdded",FrienPencydDel_Account:"friendApplicationDeletedUserIDList",Peer_Account:"userID",GroupAttr:"groupAttributeList",GroupAttrAry:"groupAttributeList",AttrMainSeq:"mainSequence",seq:"sequence",GroupAttrOption:"groupAttributeOption",BytesChangedKeys:"changedKeyList",GroupAttrInfo:"groupAttributeList",GroupAttrSeq:"mainSequence",PushChangedAttrValFlag:"isWithChangedAttributeInfo",SubKeySeq:"sequence",Val:"value",MsgGroupFromCardName:"senderNameCard",MsgGroupFromNickName:"senderNick",C2cNick:"peerNick",C2cImage:"peerAvatar",SendMsgControl:"messageControlInfo",NoLastMsg:"excludedFromLastMessage",NoUnread:"excludedFromUnreadCount",UpdateSeq:"updateSequence",MuteNotifications:"muteFlag",MsgClientTime:"clientTime",TinyId:"tinyID",GroupMsgReceiptList:"readReceiptList",ReadNum:"readCount",UnreadNum:"unreadCount",TopicId:"topicID",MillionGroupFlag:"communityType",SupportTopic:"isSupportTopic",MsgTopicNewInfo:"newTopicInfo",ShutupAll:"muteAllMembers",CustomString:"customData",TopicFaceUrl:"avatar",TopicIntroduction:"introduction",TopicNotification:"notification",TopicIdArray:"topicIDList",MsgVersion:"messageVersion",C2cMsgModNotifys:"c2cMessageModified",GroupMsgModNotifys:"groupMessageModified",ApplyJoinOption:"joinOption",MsgFlag:"messageRemindType",AtInfoList:"groupAtInfoList",AtFlagList:"groupAtType",AtMsgSeq:"sequence",BanDuration:"duration",BanDescription:"reason",NotVisible:"invisible",BytesTag:"tag",BytesValue:"value",RptBytesValue:"value",LatestSeq:"globalSequence",ClearSeq:"clearSequence",SupportMessageExtension:"isSupportExtension",ExtensionList:"extensions",GroupCounter:"counterList",Revoker_Account:"revoker",MsgExtensionNotify:"messageExtensionNotify",ExtensionC2cMsgInfo:"messageInfo",ExtensionGroupMsgInfo:"messageInfo",MsgOptType:"operateType",SetKVInfo:"operateResultList",DeleteKVInfo:"operateResultList",ClearKVInfo:"operateResultList",MsgKeyValue:"extensions",ClearMsgSeq:"clearSequence",MsgLastSeq:"globalSequence",InviteJoinOption:"inviteOption",MemberList_Account:"inviteeList",MsgMemberExtraInfoList:"inviteeInfoList",E:"event",GInf:"groupProfile",MCT:"clientTime",MR:"random",MP:"priority",MTS:"time",GId:"groupID",MS:"sequence",CCD:"cloudCustomData",F_Account:"from",F_Hd:"avatar",F_NN:"nick",GN:"groupName",GT:"groupType",IsSys:"isSystemMessage",OpInf:"operatorInfo",Img:"avatar",NN:"nick",OnlineInf:"onlineMemberInfo",ET:"expireTime",Num:"onlineMemberNum",Opt:"operationType",O_Account:"operatorID",RT:"operationType",UDF:"userDefinedField",L_Account:"userIDList"},ignoreKeyWord:["C2C","ID","USP"]};function Hs(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");var n;return t=Object.assign({pascalCase:!1},t),0===(e=Array.isArray(e)?e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join("-"):e.trim()).length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=Ys(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})).replace(/\d+(\w|$)/g,(function(e){return e.toUpperCase()})),n=e,t.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n)}var Ys=function(e){for(var t=!1,n=!1,r=!1,o=0;o<e.length;o++){var a=e[o];t&&/[a-zA-Z]/.test(a)&&a.toUpperCase()===a?(e=e.slice(0,o)+"-"+e.slice(o),t=!1,r=n,n=!0,o++):n&&r&&/[a-zA-Z]/.test(a)&&a.toLowerCase()===a?(e=e.slice(0,o-1)+"-"+e.slice(o-1),r=n,n=!1,t=!0):(t=a.toLowerCase()===a&&a.toUpperCase()!==a,r=n,n=a.toUpperCase()===a&&a.toLowerCase()!==a)}return e};function zs(e,t){var n=0;return function e(t,r){if(++n>100)return n--,t;if(dt(t)){var o=t.map((function(t){return lt(t)?e(t,r):t}));return n--,o}if(lt(t)){var a=(i=t,s=function(e,t){if(!gt(t))return!1;if((o=t)!==Hs(o))for(var n=0;n<Gs.ignoreKeyWord.length&&!t.includes(Gs.ignoreKeyWord[n]);n++);var o;return pt(r[t])?function(e){return"OPPOChannelID"===e?e:e[0].toUpperCase()+Hs(e).slice(1)}(t):r[t]},c=Object.create(null),Object.keys(i).forEach((function(e){var t=s(i[e],e);t&&(c[t]=i[e])})),c);return a=Rt(a,(function(t,n){return dt(t)||lt(t)?e(t,r):t})),n--,a}var i,s,c}(e,t)}function qs(e,t){if(dt(e))return e.map((function(e){return lt(e)?qs(e,t):e}));if(lt(e)){var n=(r=e,o=function(e,n){return pt(t[n])?Hs(n):t[n]},a={},Object.keys(r).forEach((function(e){a[o(r[e],e)]=r[e]})),a);return Rt(n,(function(e){return dt(e)||lt(e)?qs(e,t):e}))}var r,o,a}var Ws=String.fromCharCode,Ks=function(e){var t=0|e.charCodeAt(0);if(55296<=t)if(t<56320){var n=0|e.charCodeAt(1);if(56320<=n&&n<=57343){if((t=(t<<10)+n-56613888|0)>65535)return Ws(240|t>>>18,128|t>>>12&63,128|t>>>6&63,128|63&t)}else t=65533}else t<=57343&&(t=65533);return t<=2047?Ws(192|t>>>6,128|63&t):Ws(224|t>>>12,128|t>>>6&63,128|63&t)},$s=function(e){for(var t=void 0===e?"":(""+e).replace(/[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,Ks),n=0|t.length,r=new Uint8Array(n),o=0;o<n;o=o+1|0)r[o]=0|t.charCodeAt(o);return r},Js=function(e){for(var t=new Uint8Array(e),n="",r=0,o=t.length;r<o;){var a=t[r],i=0,s=0;if(a<=127?(i=0,s=255&a):a<=223?(i=1,s=31&a):a<=239?(i=2,s=15&a):a<=244&&(i=3,s=7&a),o-r-i>0)for(var c=0;c<i;)s=s<<6|63&(a=t[r+c+1]),c+=1;else s=65533,i=o-r;n+=String.fromCodePoint(s),r+=i+1}return n},Xs=function(){function e(t){o(this,e),this._handler=t;var n=t.getURL();if(this._socket=null,this._workerSocket=null,this._id=Ot(),this._handler.getIsWorkerEnabled()){var r=URL.createObjectURL(new Blob([';let _socket = null;onmessage = function(event) { if (event.data.cmd === "start") { const url = event.data.url; _socket = new WebSocket(url); _socket.binaryType = "arraybuffer"; _socket.onopen = function() { postMessage({ callback: "onOpen" }); }; _socket.onclose = function(e) { postMessage({ callback: "onOpen", e: { code: e.code, reason: e.reason } }); }; _socket.onmessage = function(e) { postMessage({ callback: "onMessage", data: e.data }); }; _socket.onerror = function(e) { postMessage({ callback: "onError", e: { isTrusted: "true" } }); }; } else if (event.data.cmd === "sendMessage") { if (_socket !== null) { _socket.send(event.data.data); } } else if (event.data.cmd === "stop") { if (_socket !== null) { _socket.close(event.data.code); _socket = null; } }};'],{type:"application/javascript; charset=utf-8"}));this._workerSocket=new Worker(r);var a=this;this._workerSocket.onmessage=function(e){var t=e.data,n=t.callback,r=t.e;"onOpen"===n?a._onOpen():"onClose"===n?a._onClose(r):"onError"===n?a._onError(r):"onMessage"===n&&a._onMessage(e.data)},this._workerSocket.postMessage({cmd:"start",id:this._id,url:n})}else ie?ne?(ce.connectSocket({url:n,header:{"content-type":"application/json"}}),ce.onSocketClose(this._onClose.bind(this)),ce.onSocketOpen(this._onOpen.bind(this)),ce.onSocketMessage(this._onMessage.bind(this)),ce.onSocketError(this._onError.bind(this))):(this._socket=ce.connectSocket({url:n,header:{"content-type":"application/json"},complete:function(){}}),this._socket.onClose(this._onClose.bind(this)),this._socket.onOpen(this._onOpen.bind(this)),this._socket.onMessage(this._onMessage.bind(this)),this._socket.onError(this._onError.bind(this))):se&&(this._socket=new WebSocket(n),this._socket.binaryType="arraybuffer",this._socket.onopen=this._onOpen.bind(this),this._socket.onmessage=this._onMessage.bind(this),this._socket.onclose=this._onClose.bind(this),this._socket.onerror=this._onError.bind(this));this._canIUseBinaryFrame=t.canIUseBinaryFrame()}return i(e,[{key:"getID",value:function(){return this._id}},{key:"_onOpen",value:function(){this._handler.onOpen({id:this._id})}},{key:"_onClose",value:function(e){this._handler.onClose({id:this._id,e:e})}},{key:"_onMessage",value:function(e){this._handler.onMessage({data:this._canIUseBinaryFrame?Js(e.data):e.data})}},{key:"_onError",value:function(e){this._handler.onError({id:this._id,e:e})}},{key:"setIsWorkerEnabled",value:function(e){this._isWorkerEnabled=!0}},{key:"close",value:function(e){if(this._workerSocket&&(this._workerSocket.postMessage({cmd:"stop",code:e}),this._workerSocket.terminate(),this._workerSocket=null),ne)return ce.offSocketClose(),ce.offSocketMessage(),ce.offSocketOpen(),ce.offSocketError(),void ce.closeSocket();this._socket&&(ie?(this._socket.onClose((function(){})),this._socket.onOpen((function(){})),this._socket.onMessage((function(){})),this._socket.onError((function(){}))):se&&(this._socket.onopen=null,this._socket.onmessage=null,this._socket.onclose=null,this._socket.onerror=null),te?this._socket.close({code:e}):this._socket.close(e),this._socket=null)}},{key:"send",value:function(e){if(this._workerSocket)this._workerSocket.postMessage({cmd:"sendMessage",data:this._canIUseBinaryFrame?$s(e.data).buffer:e.data});else{if(ne)return void ce.sendSocketMessage({data:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}});this._socket&&(ie?this._socket.send({data:this._canIUseBinaryFrame?$s(e.data).buffer:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}}):se&&this._socket.send(this._canIUseBinaryFrame?$s(e.data).buffer:e.data))}}}]),e}(),Qs=4e3,Zs=4001,ec=["keyMap"],tc=["keyMap"],nc="connected",rc="connecting",oc="disconnected",ac=function(){function e(t){o(this,e),this._channelModule=t,this._n="SocketHandler",this._promiseMap=new Map,this._readyState=oc,this._simpleRequestMap=new Map,this.MAX_SIZE=100,this._startSequence=Ot(),this._startTs=0,this._reConnectFlag=!1,this._nextPingTs=0,this._reConnectCount=0,this.MAX_RECONNECT_COUNT=3,this._socketID=-1,this._random=0,this._socket=null,this._url="",this._onOpenTs=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0,this._setWebsocketHost(),this._initConnection()}return i(e,[{key:"_setWebsocketHost",value:function(){var e=this._channelModule.getModule(qn),t=N;this._channelModule.isOversea()&&(t=R),e.isSingaporeSite()?t=x:e.isKoreaSite()?t=P:e.isGermanySite()?t=U:e.isIndiaSite()?t=V:e.isJapanSite()?t=B:e.isUSASite()&&(t=F),G.HOST.setCurrent(t)}},{key:"_initConnection",value:function(){pt(G.HOST.CURRENT.BACKUP)||""===this._url?this._url=G.HOST.CURRENT.DEFAULT:this._url===G.HOST.CURRENT.DEFAULT?this._url=G.HOST.CURRENT.BACKUP:this._url===G.HOST.CURRENT.BACKUP?this._url=this._canIUseAnyCast()?G.HOST.CURRENT.ANYCAST:G.HOST.CURRENT.DEFAULT:this._url===G.HOST.CURRENT.ANYCAST&&(G.HOST.CURRENT.ANYCAST="",this._url=G.HOST.CURRENT.DEFAULT);var e=this._channelModule.getModule(qn).getProxyServer();en(e)||(this._url=e),this._connect(),this._nextPingTs=0}},{key:"_canIUseAnyCast",value:function(){return se&&G.HOST.CURRENT.ANYCAST}},{key:"onCheckTimer",value:function(e){e%1==0&&this._checkPromiseMap()}},{key:"_checkPromiseMap",value:function(){var e=this;0!==this._promiseMap.size&&this._promiseMap.forEach((function(t,n){var r=t.reject,o=t.timestamp,a=15e3;-1!==n.indexOf(hr)&&(a=9e4),Date.now()-o>=a&&(Ge.l("".concat(e._n,"._checkPromiseMap request timeout, delete requestID:").concat(n)),e._promiseMap.delete(n),r(new pi({code:Aa.NETWORK_TIMEOUT})),e._channelModule.onRequestTimeout(n))}))}},{key:"onOpen",value:function(e){if(""!==this._readyState){this._onOpenTs=Date.now();var t=e.id;this._socketID=t;var n=Date.now()-this._startTs;Ge.l("".concat(this._n,"._onOpen cost ").concat(n," ms. socketID:").concat(t)),new Ka("wsOnOpen").setMessage(n).setCostTime(n).setMoreMessage("socketID:".concat(t)).end(),e.id===this._socketID&&(this._readyState=nc,this._reConnectCount=0,this._resend(),!0===this._reConnectFlag&&(this._channelModule.onReconnected(),this._reConnectFlag=!1),this._channelModule.onOpen())}}},{key:"onClose",value:function(e){var t=new Ka("wsOnClose"),n=e.id,r=e.e,o="sourceSocketID:".concat(n," currentSocketID:").concat(this._socketID," code:").concat(r.code," reason:").concat(r.reason),a=0;0!==this._onOpenTs&&(a=Date.now()-this._onOpenTs),t.setMessage(a).setCostTime(a).setMoreMessage(o).setCode(r.code).end(),Ge.l("".concat(this._n,"._onClose ").concat(o," onlineTime:").concat(a)),n===this._socketID&&(this._readyState=oc,a<1e3?this._channelModule.onReconnectFailed():this._channelModule.onClose())}},{key:"onError",value:function(e){var t=e.id,n=e.e,r="sourceSocketID:".concat(t," currentSocketID:").concat(this._socketID);new Ka("wsOnError").setMessage(n.errMsg||bt(n)).setMoreMessage(r).setLevel("error").end(),Ge.w("".concat(this._n,"._onError"),n,r),t===this._socketID&&(this._readyState="",this._channelModule.onError())}},{key:"onMessage",value:function(e){var t;try{t=JSON.parse(e.data)}catch(u){new Ka("jsonParseError").setMessage(e.data).end()}if(t&&t.head){var n=this._getRequestIDFromHead(t.head),r=t.body;if(!n.startsWith(G.NAME.TUIROOM_SVR)){var o=Gt(t.head);r=qs(t.body,this._getResponseKeyMap(o))}if(Ge.d("".concat(this._n,".onMessage ret:").concat(JSON.stringify(r)," requestID:").concat(n," has:").concat(this._promiseMap.has(n))),this._setNextPingTs(),this._promiseMap.has(n)){var a=this._promiseMap.get(n),i=a.resolve,s=a.reject,c=a.timestamp;return this._promiseMap.delete(n),this._calcRTT(c),void(r.errorCode&&0!==r.errorCode?(this._channelModule.onErrorCodeNotZero(r),s(new pi({code:r.errorCode,message:r.errorInfo||"",data:n.includes(Kr)||n.includes(Vo)?{elements:r.elements,messageVersion:r.messageVersion,cloudCustomData:r.cloudCustomData}:void 0}))):i(di(r)))}this._channelModule.onMessage({head:t.head,body:r})}}},{key:"_calcRTT",value:function(e){var t=Date.now()-e;this._channelModule.getModule(ir).addRTT(t)}},{key:"_connect",value:function(){this._startTs=Date.now(),this._onOpenTs=0,this._socket=new Xs(this),this._socketID=this._socket.getID(),this._readyState=rc,Ge.l("".concat(this._n,"._connect isWorkerEnabled:").concat(this.getIsWorkerEnabled()," socketID:").concat(this._socketID," url:").concat(this.getURL())),new Ka("wsConnect").setMessage("socketID:".concat(this._socketID," url:").concat(this.getURL())).end()}},{key:"getURL",value:function(){this._channelModule.isDevMode()&&(this._canIUseBinaryFrame=!1);var e=Ut();(ne||Q&&"windows"===e||oe)&&(this._canIUseBinaryFrame=!1);var t=-1;"ios"===e?t=be||-1:"android"===e&&(t=Oe||-1);var n=this._channelModule.getModule(qn),r=this._channelModule.getPlatform(),o=n.getSDKAppID(),a=n.getInstanceID(),i="sdkappid=".concat(o,"&instanceid=").concat(a,"&random=").concat(this._getRandom(),"&platform=").concat(r,"&host=").concat(e,"&version=").concat(t);return this._canIUseBinaryFrame?"".concat(this._url,"/binfo?").concat(i):"".concat(this._url,"/info?").concat(i)}},{key:"_closeConnection",value:function(e){Ge.l("".concat(this._n,"._closeConnection socketID:").concat(this._socketID)),this._socket&&(this._socket.close(e),this._socketID=-1,this._socket=null,this._readyState=oc)}},{key:"_resend",value:function(){var e=this;if(Ge.l("".concat(this._n,"._resend reConnectFlag:").concat(this._reConnectFlag),"promiseMap.size:".concat(this._promiseMap.size," simpleRequestMap.size:").concat(this._simpleRequestMap.size)),this._promiseMap.size>0&&this._promiseMap.forEach((function(t,n){var r=t.uplinkData,o=t.resolve,a=t.reject;e._promiseMap.set(n,{resolve:o,reject:a,timestamp:Date.now(),uplinkData:r}),e._execute(n,r)})),this._simpleRequestMap.size>0){var t,n=w(this._simpleRequestMap);try{for(n.s();!(t=n.n()).done;){var r=_(t.value,2),o=r[0],a=r[1];this._execute(o,a)}}catch(s){n.e(s)}finally{n.f()}this._simpleRequestMap.clear()}}},{key:"send",value:function(e){var t=this;e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var n=h(e,ec),r=this._getRequestIDFromHead(e.head),o=JSON.stringify(n);return new Promise((function(e,a){t._promiseMap.set(r,{resolve:e,reject:a,timestamp:Date.now(),uplinkData:o}),Ge.d("".concat(t._n,".send uplinkData:").concat(JSON.stringify(n)," requestID:").concat(r," readyState:").concat(t._readyState)),t._readyState!==nc?t._reConnect():(t._execute(r,o),t._channelModule.getModule(ir).addRequestCount())}))}},{key:"simplySend",value:function(e){e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var t=h(e,tc),n=this._getRequestIDFromHead(e.head),r=JSON.stringify(t);this._readyState!==nc?(this._simpleRequestMap.size<this.MAX_SIZE?this._simpleRequestMap.set(n,r):Ge.l("".concat(this._n,".simplySend. simpleRequestMap is full, drop request!")),this._reConnect()):this._execute(n,r)}},{key:"_execute",value:function(e,t){this._socket.send({data:t,fail:ie?this._onSendFail.bind(this):void 0,requestID:e})}},{key:"_onSendFail",value:function(e){Ge.l("".concat(this._n,"._onSendFail requestID:").concat(e))}},{key:"_getSequence",value:function(){var e;if(this._startSequence<2415919103)return e=this._startSequence,this._startSequence+=1,2415919103===this._startSequence&&(this._startSequence=Ot()),e}},{key:"_getRequestIDFromHead",value:function(e){return e.servcmd+e.seq}},{key:"_getResponseKeyMap",value:function(e){var t=this._channelModule.getKeyMap(e);return n(n({},Gs.response),t.response)}},{key:"_reConnect",value:function(){this._readyState!==nc&&this._readyState!==rc&&this.forcedReconnect()}},{key:"forcedReconnect",value:function(){var e=this,t="".concat(this._n,".forcedReconnect");Ge.l("".concat(t," count:").concat(this._reConnectCount," readyState:").concat(this._readyState)),this._reConnectFlag=!0,this._resetRandom(),this._reConnectCount<this.MAX_RECONNECT_COUNT?(this._reConnectCount+=1,this._closeConnection(Zs),this._initConnection()):(this._reConnectCount=0,this._channelModule.probeNetwork().then((function(n){var r=_(n,2),o=r[0];r[1],o?(Ge.w("".concat(t," disconnected from wsserver but network is ok, continue...")),e._closeConnection(Zs),e._initConnection()):e._channelModule.onReconnectFailed()})))}},{key:"getReconnectFlag",value:function(){return this._reConnectFlag}},{key:"_setNextPingTs",value:function(){this._nextPingTs=Date.now()+1e4}},{key:"getNextPingTs",value:function(){return this._nextPingTs}},{key:"isConnected",value:function(){return this._readyState===nc}},{key:"canIUseBinaryFrame",value:function(){return this._canIUseBinaryFrame}},{key:"setIsWorkerEnabled",value:function(e){Ge.l("".concat(this._n,".setIsWorkerEnabled flag:").concat(e)),this._isWorkerEnabled=e}},{key:"getIsWorkerEnabled",value:function(){return this._isWorkerEnabled&&Ie}},{key:"_getRandom",value:function(){return 0===this._random&&(this._random=Math.random()),this._random}},{key:"_resetRandom",value:function(){this._random=0}},{key:"close",value:function(){Ge.l("".concat(this._n,".close")),this._closeConnection(Qs),this._promiseMap.clear(),this._startSequence=Ot(),this._readyState=oc,this._simpleRequestMap.clear(),this._reConnectFlag=!1,this._reConnectCount=0,this._onOpenTs=0,this._url="",this._random=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0}}]),e}(),ic=function(e){c(n,e);var t=g(n);function n(e){var r;if(o(this,n),(r=t.call(this,e))._n="ChannelModule",r._socketHandler=new ac(m(r)),r._probing=!1,r._isAppShowing=!0,r._previousState=T.NET_STATE_CONNECTED,ie&&"function"==typeof ce.onAppShow&&"function"==typeof ce.onAppHide){var a=r._onAppHide.bind(m(r)),i=r._onAppShow.bind(m(r));"function"==typeof ce.offAppHide&&ce.offAppHide(a),"function"==typeof ce.offAppShow&&ce.offAppShow(i),ce.onAppHide(a),ce.onAppShow(i)}return r._timerForNotLoggedIn=-1,r._timerForNotLoggedIn=setInterval(r.onCheckTimer.bind(m(r)),1e3),r._fatalErrorFlag=!1,r}return i(n,[{key:"onCheckTimer",value:function(e){this._socketHandler&&(this.isLoggedIn()?(this._timerForNotLoggedIn>0&&(clearInterval(this._timerForNotLoggedIn),this._timerForNotLoggedIn=-1),this._socketHandler.onCheckTimer(e)):this._socketHandler.onCheckTimer(1),this._checkNextPing())}},{key:"onErrorCodeNotZero",value:function(e){this.getModule(er).onErrorCodeNotZero(e)}},{key:"onMessage",value:function(e){this.getModule(er).onMessage(e)}},{key:"send",value:function(e){return this._socketHandler?this._previousState!==T.NET_STATE_CONNECTED&&e.head.servcmd.includes(sa)?(this.reConnect(),this._sendLogViaHTTP(e)):this._socketHandler.send(e):Promise.reject()}},{key:"_sendLogViaHTTP",value:function(e){var t=G.HOST.CURRENT.STAT;return new Promise((function(n,r){var o="".concat(t,"/v4/imopenstat/tim_web_report_v2?sdkappid=").concat(e.head.sdkappid,"&reqtime=").concat(Date.now()),a=JSON.stringify(e.body),i="application/x-www-form-urlencoded;charset=UTF-8";if(ie)ce.request({url:o,data:a,method:"POST",timeout:3e3,header:{"content-type":i},success:function(){n()},fail:function(){r(new pi({code:Aa.NETWORK_ERROR}))}});else{var s=new XMLHttpRequest,c=setTimeout((function(){s.abort(),r(new pi({code:Aa.NETWORK_TIMEOUT}))}),3e3);s.onreadystatechange=function(){4===s.readyState&&(clearTimeout(c),200===s.status||304===s.status?n():r(new pi({code:Aa.NETWORK_ERROR})))},s.open("POST",o,!0),s.setRequestHeader("Content-type",i),s.send(a)}}))}},{key:"simplySend",value:function(e){return this._socketHandler?this._socketHandler.simplySend(e):Promise.reject()}},{key:"onOpen",value:function(){this._ping()}},{key:"onClose",value:function(){this._socketHandler&&this._socketHandler.getReconnectFlag()&&this._emitNetStateChangeEvent(T.NET_STATE_DISCONNECTED),this.reConnect()}},{key:"onError",value:function(){ie&&!oe&&this.outputWarning("DomainNameInMP"),this._emitNetStateChangeEvent(T.NET_STATE_DISCONNECTED)}},{key:"getKeyMap",value:function(e){return this.getModule(er).getKeyMap(e)}},{key:"_onAppHide",value:function(){this._isAppShowing=!1}},{key:"_onAppShow",value:function(){this._isAppShowing=!0}},{key:"onRequestTimeout",value:function(e){}},{key:"onReconnected",value:function(){Ge.l("".concat(this._n,".onReconnected")),this._m.restartTimer(),this.getModule(er).onReconnected(),this._emitNetStateChangeEvent(T.NET_STATE_CONNECTED)}},{key:"onReconnectFailed",value:function(){Ge.l("".concat(this._n,".onReconnectFailed")),this._emitNetStateChangeEvent(T.NET_STATE_DISCONNECTED)}},{key:"setIsWorkerEnabled",value:function(e){this._socketHandler&&this._socketHandler.setIsWorkerEnabled(!1)}},{key:"offline",value:function(){this._emitNetStateChangeEvent(T.NET_STATE_DISCONNECTED)}},{key:"reConnect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!1;this._socketHandler&&(t=this._socketHandler.getReconnectFlag());var n="forcedFlag:".concat(e," fatalErrorFlag:").concat(this._fatalErrorFlag," previousState:").concat(this._previousState," reconnectFlag:").concat(t);if(Ge.l("".concat(this._n,".reConnect ").concat(n)),!this._fatalErrorFlag&&this._socketHandler){if(!0===e)this._socketHandler.forcedReconnect();else{if(this._previousState===T.NET_STATE_CONNECTING&&t)return;this._socketHandler.forcedReconnect()}this._emitNetStateChangeEvent(T.NET_STATE_CONNECTING)}}},{key:"_emitNetStateChangeEvent",value:function(e){this._previousState!==e&&(Ge.l("".concat(this._n,"._emitNetStateChangeEvent from ").concat(this._previousState," to ").concat(e)),this._previousState=e,this.emitOuterEvent(S.NET_STATE_CHANGE,{state:e}))}},{key:"_ping",value:function(){var e=this;if(!0!==this._probing){this._probing=!0;var t=this.getModule(er).getProtocolData({protocolName:ca});this.send(t).then((function(){e._probing=!1})).catch((function(t){if(Ge.w("".concat(e._n,"._ping failed. error:"),t),e._probing=!1,t&&60002===t.code)return new Ka("error").setMessage("code:".concat(t.code," message:").concat(t.message)).setNetworkType(e.getModule($n).getNetworkType()).end(),e._fatalErrorFlag=!0,void e._emitNetStateChangeEvent(T.NET_STATE_DISCONNECTED);e.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];Ge.l("".concat(e._n,"._ping failed. probe network, isAppShowing:").concat(e._isAppShowing," online:").concat(r," networkType:").concat(o)),r?e.reConnect():e._emitNetStateChangeEvent(T.NET_STATE_DISCONNECTED)}))}))}}},{key:"_checkNextPing",value:function(){this._socketHandler&&this._socketHandler.isConnected()&&Date.now()>=this._socketHandler.getNextPingTs()&&this._ping()}},{key:"dealloc",value:function(){this._socketHandler&&(this._socketHandler.close(),this._socketHandler=null),this._timerForNotLoggedIn>-1&&clearInterval(this._timerForNotLoggedIn)}},{key:"onRestApiKickedOut",value:function(){this._socketHandler&&(this._socketHandler.close(),this.reConnect(!0))}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._previousState=T.NET_STATE_CONNECTED,this._probing=!1,this._fatalErrorFlag=!1,this._timerForNotLoggedIn=setInterval(this.onCheckTimer.bind(this),1e3)}}]),n}(fr),sc=["a2","tinyid"],cc=["a2","tinyid"],lc=function(){function e(t){o(this,e),this._n="ProtocolHandler",this._sessionModule=t,this._configMap=new Map,this._fillConfigMap()}return i(e,[{key:"_fillConfigMap",value:function(){this._configMap.clear();var e=this._sessionModule.genCommonHead(),t=this._sessionModule.genCosSpecifiedHead(),r=this._sessionModule.genSSOReportHead(),o=this._sessionModule.isIntl();this._configMap.set(hr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.LOGIN)}),body:{state:"Online",isWebUniapp:0,deviceBrand:0},keyMap:{request:{deviceBrand:"InstType"},response:{InstId:"instanceID",HelloInterval:"helloInterval"}}}}(e)),this._configMap.set(mr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.LOGOUT)}),body:{type:0},keyMap:{request:{type:"wslogout_type"}}}}(e)),this._configMap.set(vr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.HELLO)}),body:{isWebUniapp:0},keyMap:{response:{NewInstInfo:"newInstanceInfo"}}}}(e)),this._configMap.set(gr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.STAT_SERVICE,".").concat(G.CMD.KICK_OTHER)}),body:{}}}(e)),this._configMap.set(oa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_COS_SIGN,".").concat(G.CMD.COS_SIGN)}),body:{cmd:"open_im_cos_svc",subCmd:"get_cos_token",duration:300,version:2},keyMap:{request:{userSig:"usersig",subCmd:"sub_cmd",cmd:"cmd",duration:"duration",version:"version"},response:{expired_time:"expiredTime",bucket_name:"bucketName",session_token:"sessionToken",tmp_secret_id:"secretId",tmp_secret_key:"secretKey"}}}}(t)),this._configMap.set(aa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.CUSTOM_UPLOAD,".").concat(G.CMD.COS_PRE_SIG)}),body:{fileType:void 0,fileName:void 0,uploadMethod:0,duration:900},keyMap:{request:{userSig:"usersig",fileType:"file_type",fileName:"file_name",uploadMethod:"upload_method"},response:{expired_time:"expiredTime",request_id:"requestId",head_url:"headUrl",upload_url:"uploadUrl",download_url:"downloadUrl",ci_url:"ciUrl",snapshot_url:"requestSnapshotUrl"}}}}(t)),this._configMap.set(ia,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.CUSTOM_UPLOAD,".").concat(G.CMD.VIDEO_COVER)}),body:{version:1,platform:void 0,coverName:void 0,requestSnapshotUrl:void 0},keyMap:{request:{version:"version",platform:"platform",coverName:"cover_name",requestSnapshotUrl:"snapshot_url"},response:{error_code:"errorCode",error_msg:"errorInfo",download_url:"snapshotUrl"}}}}(t)),this._configMap.set(ga,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_CONFIG_MANAGER,".").concat(G.CMD.FETCH_COMMERCIAL_CONFIG)}),body:{SDKAppID:0},keyMap:{request:{SDKAppID:"uint32_sdkappid"},response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}}}(e)),this._configMap.set(_a,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_CONFIG_MANAGER,".").concat(G.CMD.PUSHED_COMMERCIAL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}}}(e)),this._configMap.set(ma,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_CONFIG_MANAGER,".").concat(G.CMD.FETCH_CLOUD_CONTROL_CONFIG)}),body:{SDKAppID:0,version:0},keyMap:{request:{SDKAppID:"uint32_sdkappid",version:"uint64_version"},response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}}}(e)),this._configMap.set(va,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_CONFIG_MANAGER,".").concat(G.CMD.PUSHED_CLOUD_CONTROL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}}}(e)),this._configMap.set(ba,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OVERLOAD_PUSH,".").concat(G.CMD.OVERLOAD_NOTIFY)}),body:{},keyMap:{response:{OverLoadServCmd:"overloadCommand",DelaySecs:"waitingTime"}}}}(e)),this._configMap.set(_r,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.GET_MESSAGES)}),body:{cookie:"",syncFlag:0,needAbstract:1,isOnlineSync:0,needSignaling:1},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",from:"From_Account",to:"To_Account",time:"MsgTimeStamp",sequence:"MsgSeq",random:"MsgRandom",elements:"MsgBody"},response:{MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",ClientSeq:"clientSequence",MsgSeq:"sequence",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgRandom:"random",MsgTimeStamp:"time",MsgContent:"content",ToGroupId:"to",MsgKey:"messageKey",GroupTips:"groupTips",MsgBody:"elements",MsgType:"type",C2CRemainingUnreadCount:"C2CRemainingUnreadList",C2CPairUnreadCount:"C2CPairUnreadList"}}}}(e)),o||(this._configMap.set(br,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.BIG_DATA_HALLWAY_AUTH_KEY)}),body:{}}}(e)),this._configMap.set(Da,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_MSG_AUDIT_MGR,".").concat(G.CMD.GET_RPOFANITY_LIST)}),body:{version:0,deviceID:"",startIndex:void 0},keyMap:{request:{version:"uint64_version",deviceID:"str_device_id",startIndex:"uint64_start_index"},response:{msg_cmd_error_code:"errorInfo",str_err_msg:"errorMessage",uint32_code:"errorCode",msg_scene_ctl_config:"filterConfig",uint64_c2c_custom_msg_flag:"c2c_custom_message",uint64_c2c_text_msg_flag:"c2c_text_message",uint64_group_custom_msg_flag:"group_custom_message",uint64_group_text_msg_flag:"group_text_message",uint64_group_info_flag:"group_profile",uint64_group_member_info_flag:"group_member_profile",uint64_relation_chain_flag:"sns",uint64_user_info_flag:"user_profile",rpt_msg_dirty_word:"lexicon",str_dirty_word:"profanity",str_replaced_content:"replacement",uint64_filter_type:"filterType",uint64_id:"id",uint64_word_type:"profanityType",uint64_complete_flag:"completeFlag",uint64_next_start_index:"nextStartIndex",uint64_version:"version",uint64_expired_time:"expiredTime"}}}}(e))),this._configMap.set(yr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SEND_MESSAGE)}),body:{fromAccount:"",toAccount:"",msgSeq:0,msgRandom:0,msgBody:[],cloudCustomData:void 0,nick:"",avatar:"",msgLifeTime:void 0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{badgeMode:0,isVoipPush:void 0},androidInfo:{OPPOChannelID:""}},messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0,isSupportExtension:0},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",count:"MaxCnt",lastMessageTime:"LastMsgTime",messageKey:"MsgKey",peerAccount:"Peer_Account",data:"Data",description:"Desc",extension:"Ext",type:"MsgType",content:"MsgContent",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",nick:"From_AccountNick",avatar:"From_AccountHeadurl",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody",needReadReceipt:"IsNeedReadReceipt"}}}}(e)),this._configMap.set(Or,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SEND_GROUP_MESSAGE)}),body:{fromAccount:"",groupID:"",random:0,clientSequence:0,priority:"",msgBody:[],cloudCustomData:void 0,onlineOnlyFlag:0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{badgeMode:0,isVoipPush:void 0},androidInfo:{OPPOChannelID:""}},groupAtInfo:[],messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0,topicID:void 0,receiverList:void 0,isSupportExtension:0},keyMap:{request:{to:"GroupId",extension:"Ext",data:"Data",description:"Desc",random:"Random",sequence:"ReqMsgSeq",count:"ReqMsgNumber",type:"MsgType",priority:"MsgPriority",content:"MsgContent",elements:"MsgBody",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",clientSequence:"ClientSeq",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody",needReadReceipt:"NeedReadReceipt",receiverList:"To_Account"},response:{MsgTime:"time",MsgSeq:"sequence"}}}}(e)),this._configMap.set(Fr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.REVOKE_C2C_MESSAGE)}),body:{msgInfo:{fromAccount:"",toAccount:"",msgTimeStamp:0,msgSeq:0,msgRandom:0}},keyMap:{request:{msgInfo:"MsgInfo",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom"}}}}(e)),this._configMap.set(wo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.REVOKE_GROUP_MESSAGE)}),body:{groupID:"",msgSeqList:void 0,topicID:""},keyMap:{request:{msgSeqList:"MsgSeqList",msgSeq:"MsgSeq"}}}}(e)),this._configMap.set(zr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.GET_C2C_ROAM_MESSAGES)}),body:{peerAccount:"",count:15,lastMessageTime:0,messageKey:"",withRecalledMessage:1,direction:0},keyMap:{request:{messageKey:"MsgKey",peerAccount:"Peer_Account",count:"MaxCnt",lastMessageTime:"LastMsgTime",withRecalledMessage:"WithRecalledMsg",direction:"GetDirection"},response:{LastMsgTime:"lastMessageTime",IsNeedReadReceipt:"needReadReceipt",IsPeerRead:"readReceiptSentByPeer"}}}}(e)),this._configMap.set(Kr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.MODIFY_C2C_MESSAGE)}),body:{from:"",to:"",sequence:0,random:0,time:0,version:0,elements:void 0,cloudCustomData:void 0},keyMap:{request:{sequence:"MsgSeq",random:"MsgRandom",time:"MsgTime",version:"MsgVersion",type:"MsgType",content:"MsgContent"}}}}(e)),this._configMap.set(Io,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_ROAM_MESSAGES)}),body:{withRecalledMsg:1,groupID:"",count:15,sequence:"",topicID:void 0},keyMap:{request:{sequence:"ReqMsgSeq",count:"ReqMsgNumber",withRecalledMessage:"WithRecalledMsg"},response:{Random:"random",MsgTime:"time",MsgSeq:"sequence",ReqMsgSeq:"sequence",RspMsgList:"messageList",IsPlaceMsg:"isPlaceMessage",IsSystemMsg:"isSystemMessage",ToGroupId:"to",EnumFrom_AccountType:"fromAccountType",EnumTo_AccountType:"toAccountType",GroupCode:"groupCode",MsgPriority:"priority",MsgBody:"elements",MsgType:"type",MsgContent:"content",IsFinished:"complete",Download_Flag:"downloadFlag",ClientSeq:"clientSequence",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID",ToTopicId:"topicID",InvisibleMsgSeq:"invisibleSequenceList"}}}}(e)),this._configMap.set(Gr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SET_C2C_MESSAGE_READ)}),body:{C2CMsgReaded:void 0},keyMap:{request:{lastMessageTime:"LastedMsgTime"}}}}(e)),this._configMap.set(Hr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{userIDList:void 0,muteFlag:0},keyMap:{request:{userIDList:"Peer_Account",muteFlag:"Mute_Notifications"}}}}(e)),this._configMap.set(Yr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.GET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{updateSequence:0},keyMap:{response:{MuteNotificationsList:"muteFlagList"}}}}(e)),this._configMap.set(So,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SET_GROUP_MESSAGE_READ)}),body:{groupID:void 0,messageReadSeq:void 0,topicID:void 0},keyMap:{request:{messageReadSeq:"MsgReadedSeq"}}}}(e)),this._configMap.set(To,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SET_ALL_MESSAGE_READ)}),body:{readAllC2CMessage:0,groupMessageReadInfoList:[]},keyMap:{request:{readAllC2CMessage:"C2CReadAllMsg",groupMessageReadInfoList:"GroupReadInfo",messageSequence:"MsgSeq"},response:{C2CReadAllMsg:"readAllC2CMessage",GroupReadInfoArray:"groupMessageReadInfoList"}}}}(e)),this._configMap.set(Wr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.DELETE_C2C_MESSAGE)}),body:{fromAccount:"",to:"",keyList:void 0},keyMap:{request:{keyList:"MsgKeyList"}}}}(e)),this._configMap.set(Uo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.DELETE_GROUP_MESSAGE)}),body:{groupID:"",deleter:"",keyList:void 0,topicID:void 0},keyMap:{request:{deleter:"Deleter_Account",keyList:"Seqs"}}}}(e)),this._configMap.set(La,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_TRANSLATE,".").concat(G.CMD.TRANSLATE_TEXT)}),body:{sourceTextList:void 0,SDKAppID:0,from:0,source:"",target:""},keyMap:{request:{sourceTextList:"SourceText",SDKAppID:"SdkAppId",from:"FromAccount"},response:{TargetText:"translatedTextList",RequestId:"requestID",CmdErrorCode:"error",ErrorCode:"code",ErrorInfo:"message"}}}}(e)),this._configMap.set(Vo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.MODIFY_GROUP_MESSAGE)}),body:{groupID:"",topicID:void 0,sequence:0,version:0,elements:void 0,cloudCustomData:void 0},keyMap:{request:{sequence:"MsgSeq",version:"MsgVersion",type:"MsgType",content:"MsgContent"}}}}(e)),this._configMap.set(Eo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_READ_RECEIPT)}),body:{groupID:"",sequenceList:void 0},keyMap:{request:{sequence:"MsgSeq"}}}}(e)),this._configMap.set(Do,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.SEND_C2C_READ_RECEIPT)}),body:{peerAccount:"",messageInfoList:void 0},keyMap:{request:{peerAccount:"Peer_Account",messageInfoList:"C2CMsgInfo",fromAccount:"From_Account",toAccount:"To_Account",sequence:"MsgSeq",random:"MsgRandom",time:"MsgTime",clientTime:"MsgClientTime"}}}}(e)),this._configMap.set(jo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SEND_READ_RECEIPT)}),body:{groupID:"",sequenceList:void 0},keyMap:{request:{sequenceList:"MsgSeqList",sequence:"MsgSeq"}}}}(e)),this._configMap.set(Lo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_READ_RECEIPT_DETAIL)}),body:{groupID:"",sequence:void 0,flag:0,cursor:0,count:0},keyMap:{request:{sequence:"MsgSeq",count:"Num"},response:{ReadList:"readUserIDList",Read_Account:"userID",UnreadList:"unreadUserIDList",Unread_Account:"userID",IsFinish:"isCompleted"}}}}(e)),this._configMap.set($r,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM_MSG_EXT,".").concat(G.CMD.MODIFY_C2C_MESSAGE_EXTENSIONS)}),body:{from:void 0,to:void 0,messageKey:void 0,operateType:void 0,extensionList:void 0}}}(e)),this._configMap.set(Jr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM_MSG_EXT,".").concat(G.CMD.GET_C2C_MESSAGE_EXTENSIONS)}),body:{from:void 0,to:void 0,messageKey:void 0,startSequence:void 0}}}(e)),this._configMap.set(zo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM_MSG_EXT,".").concat(G.CMD.MODIFY_GROUP_MESSAGE_EXTENSIONS)}),body:{groupID:void 0,topicID:void 0,messageSequence:void 0,operateType:void 0,extensionList:void 0}}}(e)),this._configMap.set(qo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM_MSG_EXT,".").concat(G.CMD.GET_GROUP_MESSAGE_EXTENSIONS)}),body:{groupID:void 0,topicID:void 0,messageSequence:void 0,startSequence:void 0}}}(e)),this._configMap.set(qr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.GET_PEER_READ_TIME)}),body:{userIDList:void 0},keyMap:{request:{userIDList:"To_Account"},response:{ReadTime:"peerReadTimeList"}}}}(e)),this._configMap.set(Qr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,count:0},keyMap:{request:{},response:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime"}}}}(e)),this._configMap.set(Xr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.PAGING_GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,timeStamp:void 0,startIndex:void 0,pinnedTimeStamp:void 0,pinnedStartIndex:void 0,orderType:void 0,messageAssistFlag:4,assistFlag:15},keyMap:{request:{messageAssistFlag:"MsgAssistFlags",assistFlag:"AssistFlags",pinnedTimeStamp:"TopTimeStamp",pinnedStartIndex:"TopStartIndex"},response:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime",LastMsgFlags:"lastMessageFlag",TopFlags:"isPinned",TopTimeStamp:"pinnedTimeStamp",TopStartIndex:"pinnedStartIndex",GroupId:"convGroupID"}}}}(e)),this._configMap.set(Zr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.DELETE_CONVERSATION)}),body:{fromAccount:"",conversationList:void 0,clearHistoryMessage:void 0},keyMap:{request:{toGroupID:"ToGroupid",clearHistoryMessage:"ClearRamble",conversationList:"ContactItem"},response:{ResultItem:"resultList",ToGroupid:"toGroupID",ResultCode:"code",ResultInfo:"info"}}}}(e)),this._configMap.set(eo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.CLEAR_HISTORY_MESSAGE)}),body:{fromAccount:"",toAccount:void 0,type:1,toGroupID:void 0},keyMap:{request:{toGroupID:"ToGroupid"}}}}(e)),this._configMap.set(to,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.PIN_CONVERSATION)}),body:{fromAccount:"",operationType:1,itemList:void 0},keyMap:{request:{itemList:"RecentContactItem"}}}}(e)),this._configMap.set(no,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.DELETE_GROUP_AT_TIPS)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}}(e)),this._configMap.set(ro,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.MARK_CONVERSATION)}),body:{fromAccount:"",itemList:void 0},keyMap:{request:{itemList:"MarkItem",operationType:"OptType",groupID:"ToGroupId"},response:{ToGroupId:"groupID",OptType:"operationType"}}}}(e)),this._configMap.set(oo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.MARK_CONVERSATION)}),body:{fromAccount:"",itemList:void 0},keyMap:{request:{itemList:"MarkItem",operationType:"OptType",groupID:"ToGroupId"},response:{ToGroupId:"groupID",OptType:"operationType"}}}}(e)),this._configMap.set(ao,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.CREATE_CONVERSATION_GROUP)}),body:{fromAccount:"",itemList:void 0},keyMap:{request:{itemList:"GroupContactItem",groupID:"ToGroupId"},response:{GroupId:"convGroupID",ToGroupId:"groupID",OptType:"operationType"}}}}(e)),this._configMap.set(io,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.DELETE_CONVERSATION_GROUP)}),body:{fromAccount:"",groupName:void 0},keyMap:{request:{},response:{GroupId:"convGroupID"}}}}(e)),this._configMap.set(so,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:"",updateType:void 0,updateGroup:void 0},keyMap:{request:{oldName:"OldGroupName",newName:"NewGroupName",groupID:"ToGroupId",operationType:"ContactOptType",groupName:"OldGroupName",updateItem:"ContactUpdateItem"},response:{ContactOptType:"operationType",ToGroupId:"groupID",GroupId:"convGroupID"}}}}(e)),this._configMap.set(co,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:"",updateType:void 0,updateGroup:{groupName:void 0,updateGroupType:void 0,updateItem:void 0}},keyMap:{request:{},response:{}}}}(e)),this._configMap.set(lo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.UPDATE_CONVERSATION_GROUP)}),body:{fromAccount:"",updateType:void 0,updateGroup:void 0},keyMap:{request:{},response:{}}}}(e)),this._configMap.set(uo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.RECENT_CONTACT,".").concat(G.CMD.GET_CONVERSATION_GROUP_LIST)}),body:{fromAccount:"",startTime:void 0,startIndex:void 0},keyMap:{request:{},response:{GroupId:"convGroupID",ToGroupId:"groupID",OptType:"operationType",CustomMark:"customData",ContactGroupId:"convGroupIDList"}}}}(e)),this._configMap.set(Mr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.PROFILE,".").concat(G.CMD.PORTRAIT_GET)}),body:{fromAccount:"",userItem:[]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}}(e)),this._configMap.set(kr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.PROFILE,".").concat(G.CMD.PORTRAIT_SET)}),body:{fromAccount:"",profileItem:[{tag:Ye.NICK,value:""},{tag:Ye.GENDER,value:""},{tag:Ye.ALLOWTYPE,value:""},{tag:Ye.AVATAR,value:""}]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}}(e)),this._configMap.set(Cr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.GET_BLACKLIST)}),body:{fromAccount:"",startIndex:0,maxLimited:30,lastSequence:0},keyMap:{response:{CurruentSequence:"currentSequence"}}}}(e)),this._configMap.set(wr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.ADD_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}}}(e)),this._configMap.set(Sr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.DELETE_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}}}(e)),this._configMap.set(Ca,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.SET_SELF_STATUS)}),body:{customStatus:""},keyMap:{}}}(e)),this._configMap.set(wa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.GET_USER_STATUS)}),body:{userIDList:void 0},keyMap:{response:{UserStatusList:"successUserList",ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID",Status:"statusType"}}}}(e)),this._configMap.set(Sa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.SUBSCRIBE_USER_STATUS)}),body:{userIDList:void 0},keyMap:{response:{ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID"}}}}(e)),this._configMap.set(Ta,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.UNSUBSCRIBE_USER_STATUS)}),body:{userIDList:void 0,unsubscribeAll:void 0},keyMap:{response:{ErrorList:"failureUserList",To_Account:"userID",Invalid_Account:"invalidUserID"}}}}(e)),this._configMap.set(Tr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.GET_FRIEND_LIST)}),body:{fromAccount:"",startIndex:0,standardSequence:0,customSequence:0},keyMap:{response:{FriendNum:"friendCount",UserDataItem:"resultList",ValueItem:"tagValueList"}}}}(e)),this._configMap.set(Dr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.ADD_FRIEND)}),body:{fromAccount:"",addFriendItem:[],type:""},keyMap:{request:{source:"AddSource",wording:"AddWording",type:"AddType"},response:{ResultItem:"resultList"}}}}(e)),this._configMap.set(Lr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.UPDATE_FRIEND)}),body:{fromAccount:"",updateItem:void 0},keyMap:{request:{snsItem:"SnsItem"},response:{ResultItem:"resultList"}}}}(e)),this._configMap.set(jr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.DELETE_FRIEND)}),body:{fromAccount:"",userIDList:[],type:""},keyMap:{request:{type:"DeleteType"},response:{ResultItem:"resultList"}}}}(e)),this._configMap.set(Ir,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.GET_FRIEND_PROFILE)}),body:{fromAccount:"",userIDList:void 0},keyMap:{response:{InfoItem:"resultList",SnsProfileItem:"tagValueList"}}}}(e)),this._configMap.set(Er,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.CHECK_FRIEND)}),body:{fromAccount:"",userIDList:[],type:""},keyMap:{request:{type:"CheckType"},response:{InfoItem:"resultList"}}}}(e)),this._configMap.set(Nr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.GET_FRIEND_APPLICATION_LIST)}),body:{fromAccount:"",applicationType:"",startTime:0,maxLimited:0,lastSequence:0},keyMap:{response:{PendencyItem:"resultList",AddSource:"source",AddTime:"time",AddWording:"wording",Image:"avatar",UnreadPendencyCount:"unreadCount",To_Account:"userID",PendencyType:"type"}}}}(e)),this._configMap.set(Ar,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.RESPOND_FRIEND_APPLICATION)}),body:{fromAccount:"",responseFriendItem:[]},keyMap:{request:{tag:"TagName",action:"ResponseAction"},response:{ResultItem:"resultList"}}}}(e)),this._configMap.set(Rr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.DELETE_FRIEND_APPLICATION)}),body:{fromAccount:"",type:"",userIDList:void 0},keyMap:{request:{type:"PendencyType",userIDList:"To_Account"},response:{ResultItem:"resultList"}}}}(e)),this._configMap.set(xr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.REPORT_FRIEND_APPLICATION)}),body:{fromAccount:"",latestTimeStamp:""},keyMap:{request:{latestTimeStamp:"LatestPendencyTimeStamp"}}}}(e)),this._configMap.set(Ur,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.CREATE_FRIEND_GROUP)}),body:{fromAccount:"",groupName:void 0,userIDList:void 0},keyMap:{request:{groupName:"GroupName",userIDList:"To_Account"},response:{ResultItem:"resultList"}}}}(e)),this._configMap.set(Vr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.DELETE_FRIEND_GROUP)}),body:{fromAccount:"",nameList:void 0},keyMap:{request:{nameList:"GroupName"}}}}(e)),this._configMap.set(Pr,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.GET_FRIEND_GROUP_LIST)}),body:{fromAccount:"",lastSequence:0,needFriend:"Need_Friend_Type_Yes"},keyMap:{response:{ResultItem:"resultList",GroupName:"name",FriendNumber:"friendCount",To_Account:"userIDList"}}}}(e)),this._configMap.set(Br,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.FRIEND,".").concat(G.CMD.UPDATE_FRIEND_GROUP)}),body:{fromAccount:"",oldName:"",newName:void 0,updateGroupItem:void 0},keyMap:{request:{oldName:"GroupOldName",newName:"GroupNewName"},response:{UpdateType:"type",ResultItem:"resultList"}}}}(e)),this._configMap.set(po,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_JOINED_GROUPS)}),body:{memberAccount:"",limit:void 0,offset:void 0,groupType:void 0,responseFilter:{groupBaseInfoFilter:void 0,selfInfoFilter:void 0},isSupportTopic:0},keyMap:{request:{memberAccount:"Member_Account"},response:{GroupIdList:"groups",NoUnreadSeqList:"excludedUnreadSequenceList",MsgSeq:"readedSequence",LastRecallTime:"_lastRevokedTime"}}}}(e)),this._configMap.set(fo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_INFO)}),body:{groupIDList:void 0,responseFilter:{groupBaseInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember"],groupCustomFieldFilter:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0}},keyMap:{request:{groupIDList:"GroupIdList",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData",groupCustomFieldFilter:"AppDefinedDataFilter_Group",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{GroupIdList:"groups",AppDefinedData:"groupCustomField",AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_Group:"groupCustomFieldFilter",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",InfoSeq:"infoSequence",MemberList:"members",GroupInfo:"groups",ShutUpUntil:"muteUntil",ShutUpAllMember:"muteAllMembers"}}}}(e)),this._configMap.set(ho,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.CREATE_GROUP)}),body:{type:void 0,name:void 0,groupID:void 0,ownerID:void 0,introduction:void 0,notification:void 0,maxMemberNum:void 0,joinOption:void 0,memberList:void 0,groupCustomField:void 0,memberCustomField:void 0,webPushFlag:1,avatar:"",isSupportTopic:void 0,inviteOption:void 0},keyMap:{request:{ownerID:"Owner_Account",userID:"Member_Account",avatar:"FaceUrl",maxMemberNum:"MaxMemberCount",joinOption:"ApplyJoinOption",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData",inviteOption:"InviteJoinOption"},response:{HugeGroupFlag:"avChatRoomFlag",OverJoinedGroupLimit_Account:"overLimitUserIDList"}}}}(e)),this._configMap.set(mo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.DESTROY_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(vo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.MODIFY_GROUP_INFO)}),body:{groupID:void 0,name:void 0,introduction:void 0,notification:void 0,avatar:void 0,joinOption:void 0,groupCustomField:void 0,muteAllMembers:void 0,inviteOption:void 0},keyMap:{request:{groupCustomField:"AppDefinedData",muteAllMembers:"ShutUpAllMember",joinOption:"ApplyJoinOption",avatar:"FaceUrl",inviteOption:"InviteJoinOption"},response:{AppDefinedData:"groupCustomField",ShutUpAllMember:"muteAllMembers"}}}}(e)),this._configMap.set(go,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1,historyMessageFlag:void 0},keyMap:{request:{applyMessage:"ApplyMsg",historyMessageFlag:"HugeGroupHistoryMsgFlag"},response:{HugeGroupFlag:"avChatRoomFlag",AVChatRoomKey:"avChatRoomKey",RspMsgList:"messageList",ToGroupId:"to"}}}}(e)),this._configMap.set(_o,function(e){return e.a2,e.tinyid,{head:n(n({},h(e,sc)),{},{servcmd:"".concat(G.NAME.BIG_GROUP_NO_AUTH,".").concat(G.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1},keyMap:{request:{applyMessage:"ApplyMsg"},response:{HugeGroupFlag:"avChatRoomFlag"}}}}(e)),this._configMap.set(bo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.QUIT_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(yo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SEARCH_GROUP_BY_ID)}),body:{groupIDList:void 0,responseFilter:{groupBasePublicInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","CreateTime","Owner_Account","LastInfoTime","LastMsgTime","NextMsgSeq","MemberNum","MaxMemberNum","ApplyJoinOption","InviteJoinOption"]}},keyMap:{response:{}}}}(e)),this._configMap.set(Oo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.CHANGE_GROUP_OWNER)}),body:{groupID:void 0,newOwnerID:void 0},keyMap:{request:{newOwnerID:"NewOwner_Account"}}}}(e)),this._configMap.set(Mo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.HANDLE_APPLY_JOIN_GROUP)}),body:{groupID:void 0,applicant:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{applicant:"Applicant_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}}}(e)),this._configMap.set(ko,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.HANDLE_INVITE_JOIN_GROUP)}),body:{groupID:void 0,applicant:void 0,invitee:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,userDefinedField:void 0},keyMap:{request:{applicant:"Applicant_Account",invitee:"Invited_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg"}}}}(e)),this._configMap.set(Co,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.HANDLE_GROUP_INVITATION)}),body:{groupID:void 0,inviter:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{inviter:"Inviter_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}}}(e)),this._configMap.set(Ao,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_APPLICATION)}),body:{startTime:void 0,limit:void 0,handleAccount:void 0},keyMap:{request:{handleAccount:"Handle_Account"},response:{To_Account:"userID"}}}}(e)),this._configMap.set(No,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.DELETE_GROUP_SYSTEM_MESSAGE)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}}(e)),this._configMap.set(Ro,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.BIG_GROUP_LONG_POLLING,".").concat(G.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,startBroadcastSeq:void 0,holdTime:90,key:void 0,simplifiedMessage:void 0},keyMap:{request:{USP:"USP"},response:{ToGroupId:"groupID",RspBroadcastMsgList:"broadcastMessageList",IsSystemMsg:"isSystemMessage"}}}}(e)),this._configMap.set(xo,function(e){return e.a2,e.tinyid,{head:n(n({},h(e,cc)),{},{servcmd:"".concat(G.NAME.BIG_GROUP_LONG_POLLING_NO_AUTH,".").concat(G.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,holdTime:90,key:void 0,simplifiedMessage:void 0},keyMap:{request:{USP:"USP"},response:{ToGroupId:"groupID",RspBroadcastMsgList:"broadcastMessageList",IsSystemMsg:"isSystemMessage"}}}}(e)),this._configMap.set(Po,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_ONLINE_MEMBER_NUM)}),body:{groupID:void 0}}}(e)),this._configMap.set(Bo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.SET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key",value:"value"}}}}(e)),this._configMap.set(Fo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.MODIFY_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key",value:"value"}}}}(e)),this._configMap.set(Go,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.DELETE_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key"}}}}(e)),this._configMap.set(Ho,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.CLEAR_GROUP_ATTRIBUTES)}),body:{groupID:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]}}}(e)),this._configMap.set(Yo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_ATTR,".").concat(G.CMD.GET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,avChatRoomKey:void 0,groupType:1},keyMap:{request:{avChatRoomKey:"Key",groupType:"GroupType"}}}}(e)),this._configMap.set(Wo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_NOTIFY)}),body:{notifyType:1,groupID:"",beginTime:0,endTime:0,limit:20},keyMap:{request:{},response:{NextMsgTime:"nextRevokedTime",NotifyMsgList:"notifyList"}}}}(e)),this._configMap.set(Ko,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.UPDATE_GROUP_COUNTER)}),body:{groupID:void 0,counterList:void 0,avChatRoomKey:void 0,mode:void 0},keyMap:{request:{counterList:"GroupCounter"}}}}(e)),this._configMap.set($o,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_COUNTER)}),body:{groupID:void 0,keyList:[],avChatRoomKey:void 0},keyMap:{request:{keyList:"GroupCounterKeys"}}}}(e)),this._configMap.set(ya,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_COMMUNITY,".").concat(G.CMD.CREATE_TOPIC)}),body:{groupID:void 0,topicName:void 0,avatar:void 0,customData:void 0,topicID:void 0,notification:void 0,introduction:void 0},keyMap:{request:{avatar:"FaceUrl"}}}}(e)),this._configMap.set(Oa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_COMMUNITY,".").concat(G.CMD.DELETE_TOPIC)}),body:{groupID:void 0,topicIDList:void 0},keyMap:{request:{topicIDList:"TopicIdList"},response:{DestroyResultItem:"resultList"}}}}(e)),this._configMap.set(Ma,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_COMMUNITY,".").concat(G.CMD.UPDATE_TOPIC_PROFILE)}),body:{groupID:void 0,topicID:void 0,avatar:void 0,customData:void 0,notification:void 0,introduction:void 0,muteAllMembers:void 0,topicName:void 0},keyMap:{request:{avatar:"FaceUrl",muteAllMembers:"ShutUpAllMember"}}}}(e)),this._configMap.set(ka,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_COMMUNITY,".").concat(G.CMD.GET_TOPIC_LIST)}),body:{groupID:void 0,topicIDList:void 0,MemberInfoFilter:["NoUnreadSeqList"]},keyMap:{request:{topicIDList:"TopicIdList"},response:{TopicAndSelfInfo:"topicInfoList",TopicInfo:"topic",GroupID:"groupID",ShutUpTime:"muteTime",ShutUpAllFlag:"muteAllMembers",LastMsgTime:"lastMessageTime",MsgSeq:"readedSequence",LastMsgSeq:"sequence",NoUnreadSeqList:"excludedUnreadSequenceList"}}}}(e)),this._configMap.set(Jo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_MEMBER_LIST)}),body:{groupID:void 0,limit:0,offset:void 0,next:void 0,memberRoleFilter:void 0,memberInfoFilter:["Role","NameCard","ShutUpUntil","JoinTime"],memberCustomFieldFilter:void 0},keyMap:{request:{memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",MemberList:"members",ShutUpUntil:"muteUntil"}}}}(e)),this._configMap.set(Xo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_AVCHATROOM,".").concat(G.CMD.GET_AVCHATROOM_MEMBER_LIST)}),body:{groupID:void 0,offset:void 0,filter:void 0},keyMap:{request:{offset:"Timestamp",filter:"Mark"},response:{NextTimestamp:"offset"}}}}(e)),this._configMap.set(Qo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.GET_GROUP_MEMBER_INFO)}),body:{groupID:void 0,userIDList:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0},keyMap:{request:{userIDList:"Member_List_Account",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{MemberList:"members",ShutUpUntil:"muteUntil",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",AppMemberDefinedData:"memberCustomField"}}}}(e)),this._configMap.set(Zo,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.ADD_GROUP_MEMBER)}),body:{groupID:void 0,silence:void 0,userIDList:void 0},keyMap:{request:{userID:"Member_Account",userIDList:"MemberList"},response:{MemberList:"members"}}}}(e)),this._configMap.set(ea,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.DELETE_GROUP_MEMBER)}),body:{groupID:void 0,userIDList:void 0,reason:void 0},keyMap:{request:{userIDList:"MemberToDel_Account"}}}}(e)),this._configMap.set(ta,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.BAN_AVCHATROOM_MEMBER)}),body:{groupID:void 0,userIDList:void 0,duration:void 0,reason:""},keyMap:{request:{userIDList:"Members_Account",duration:"Duration",reason:"Description"}}}}(e)),this._configMap.set(na,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP,".").concat(G.CMD.MODIFY_GROUP_MEMBER_INFO)}),body:{groupID:void 0,topicID:void 0,userID:void 0,messageRemindType:void 0,nameCard:void 0,role:void 0,memberCustomField:void 0,muteTime:void 0},keyMap:{request:{userID:"Member_Account",memberCustomField:"AppMemberDefinedData",muteTime:"ShutUpTime",messageRemindType:"MsgFlag"}}}}(e)),this._configMap.set(ra,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.GROUP_AVCHATROOM,".").concat(G.CMD.MARK_AVCHATROOM_MEMBER_INFO)}),body:{groupID:void 0,operationType:1,memberList:[]},keyMap:{request:{operationType:"CommandType",memberList:"MemberList",markType:"Marks",userID:"Member_Account"},response:{CommandType:"operationType",Marks:"markType",Member_Account:"userID"}}}}(e)),this._configMap.set(sa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STAT,".").concat(G.CMD.TIM_WEB_REPORT_V2)}),body:{header:{},event:[],quality:[]},keyMap:{request:{SDKType:"sdk_type",SDKVersion:"sdk_version",deviceType:"device_type",platform:"platform",instanceID:"instance_id",traceID:"trace_id",SDKAppID:"sdk_app_id",userID:"user_id",tinyID:"tiny_id",extension:"extension",timestamp:"timestamp",networkType:"network_type",eventType:"event_type",code:"error_code",message:"error_message",moreMessage:"more_message",duplicate:"duplicate",costTime:"cost_time",level:"level",qualityType:"quality_type",reportIndex:"report_index",wholePeriod:"whole_period",totalCount:"total_count",rttCount:"success_count_business",successRateOfRequest:"percent_business",countLessThan1Second:"success_count_business",percentOfCountLessThan1Second:"percent_business",countLessThan3Second:"success_count_platform",percentOfCountLessThan3Second:"percent_platform",successCountOfBusiness:"success_count_business",successRateOfBusiness:"percent_business",successCountOfPlatform:"success_count_platform",successRateOfPlatform:"percent_platform",successCountOfMessageReceived:"success_count_business",successRateOfMessageReceived:"percent_business",avgRTT:"average_value",avgDelay:"average_value",avgValue:"average_value",uiPlatform:"ui_platform"}}}}(r)),this._configMap.set(ca,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.HEARTBEAT,".").concat(G.CMD.ALIVE)}),body:{}}}(e)),this._configMap.set(la,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_PUSH,".").concat(G.CMD.MESSAGE_PUSH)}),body:{},keyMap:{response:{C2cMsgArray:"C2CMessageArray",GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",C2cNotifyMsgArray:"C2CNotifyMessageArray",C2cMsgInfo:"C2CReadReceiptArray",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyAdd_Account:"userID",ProfileImNick:"nick",PendencyType:"applicationType",C2CReadAllMsg:"readAllC2CMessage",IsNeedReadReceipt:"needReadReceipt",Status:"statusType"}}}}(e)),this._configMap.set(ua,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_PUSH,".").concat(G.CMD.MULTI_MESSAGE_PUSH)}),body:{},keyMap:{response:{GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyType:"applicationType"}}}}(e)),this._configMap.set(da,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.OPEN_IM,".").concat(G.CMD.MESSAGE_PUSH_ACK)}),body:{sessionData:void 0},keyMap:{request:{sessionData:"SessionData"}}}}(e)),this._configMap.set(pa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.STATUS_FORCE_OFFLINE)}),body:{},keyMap:{response:{C2cNotifyMsgArray:"C2CNotifyMessageArray",NoticeSeq:"noticeSequence",KickoutMsgNotify:"kickoutMsgNotify",NewInstInfo:"newInstanceInfo"}}}}(e)),this._configMap.set(ha,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_LONG_MESSAGE,".").concat(G.CMD.DOWNLOAD_MERGER_MESSAGE)}),body:{downloadKey:""},keyMap:{response:{Data:"data",Desc:"description",Ext:"extension",Download_Flag:"downloadFlag",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID"}}}}(e)),this._configMap.set(fa,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_LONG_MESSAGE,".").concat(G.CMD.UPLOAD_MERGER_MESSAGE)}),body:{messageList:[]},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",type:"MsgType",content:"MsgContent",data:"Data",description:"Desc",extension:"Ext",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody"}}}}(e)),this._configMap.set(ja,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.SET_TOKEN)}),body:{tokenID:"",pushMsg:0,sdkAppID:0,businessID:"",deviceBrand:"",deviceToken:"",isTpns:0,isWebUniapp:0},keyMap:{request:{tokenID:"TokenID",pushMsg:"PushMsg",sdkAppID:"EnterVersion",businessID:"BusiID",deviceBrand:"InstType",deviceToken:"VarToken",isTpns:"IsTpns"}}}}(e)),this._configMap.set(Ea,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.STAT_FOREGROUND)}),body:{isWebUniapp:0}}}(e)),this._configMap.set(Ia,function(e){return{head:n(n({},e),{},{servcmd:"".concat(G.NAME.IM_OPEN_STATUS,".").concat(G.CMD.STAT_BACKGROUND)}),body:{C2CUnread:0,GroupUnread:0,isWebUniapp:0},keyMap:{request:{c2cUnreadCount:"C2cUnread",groupUnreadCount:"GrpUnread"}}}}(e))}},{key:"has",value:function(e){return this._configMap.has(e)}},{key:"get",value:function(e){return this._configMap.get(e)}},{key:"update",value:function(){this._fillConfigMap()}},{key:"getKeyMap",value:function(e){return this.has(e)?this.get(e).keyMap||{}:(Ge.w("".concat(this._n,".getKeyMap unknown protocolName:").concat(e)),{})}},{key:"getProtocolData",value:function(e){var t=e.protocolName,n=e.requestData,r=this.get(t),o=null;if(n){var a=this._simpleDeepCopy(r),i=this._updateService(n,a),s=i.body,c=Object.create(null);for(var l in s)if(Object.prototype.hasOwnProperty.call(s,l)){if(c[l]=s[l],void 0===n[l])continue;c[l]=n[l]}i.body=c,o=this._getUplinkData(i)}else o=this._getUplinkData(r);return o}},{key:"_getUplinkData",value:function(e){var t=this._requestDataCleaner(e),n=Gt(t.head),r=zs(t.body,this._getRequestKeyMap(n));return t.body=r,t}},{key:"_updateService",value:function(e,t){var n=Gt(t.head);if(this._isFromGroupRequest(t)){var r=e.type,o=e.groupID,a=void 0===o?void 0:o,i=e.groupIDList,s=void 0===i?[]:i;pt(a)&&(a=s[0]||""),jt({type:r,groupID:a})&&(t.head.servcmd="".concat(G.NAME.GROUP_COMMUNITY,".").concat(n))}return t}},{key:"_isFromGroupRequest",value:function(e){return e.head.servcmd.includes(G.NAME.GROUP)||e.head.servcmd.includes(G.NAME.GROUP_ATTR)}},{key:"_getRequestKeyMap",value:function(e){var t=this.getKeyMap(e);return n(n({},Gs.request),t.request)}},{key:"_requestDataCleaner",value:function(e){var t=Array.isArray(e)?[]:Object.create(null);for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&gt(n)&&null!==e[n]&&void 0!==e[n]&&("object"!==r(e[n])?t[n]=e[n]:t[n]=this._requestDataCleaner.bind(this)(e[n]));return t}},{key:"_simpleDeepCopy",value:function(e){for(var t,n=Object.keys(e),r={},o=0,a=n.length;o<a;o++)t=n[o],dt(e[t])?r[t]=Array.from(e[t]):lt(e[t])?r[t]=this._simpleDeepCopy(e[t]):r[t]=e[t];return r}}]),e}(),uc=[da],dc=function(){function e(t){o(this,e),this._sessionModule=t,this._n="DownlinkHandler",this._eventHandlerMap=new Map,this._eventHandlerMap.set("C2CMessageArray",this._c2cMessageArrayHandler.bind(this)),this._eventHandlerMap.set("groupMessageArray",this._groupMessageArrayHandler.bind(this)),this._eventHandlerMap.set("groupTips",this._groupTipsHandler.bind(this)),this._eventHandlerMap.set("C2CNotifyMessageArray",this._C2CNotifyMessageArrayHandler.bind(this)),this._eventHandlerMap.set("C2CReadReceiptArray",this._C2CReadReceiptArrayHandler.bind(this)),this._eventHandlerMap.set("profileModify",this._profileHandler.bind(this)),this._eventHandlerMap.set("friendListMod",this._relationChainHandler.bind(this)),this._eventHandlerMap.set("recentContactMod",this._recentContactHandler.bind(this)),this._eventHandlerMap.set("readAllC2CMessage",this._allMessageReadHandler.bind(this)),this._eventHandlerMap.set("c2cMessageModified",this._c2cMessageModifiedHandler.bind(this)),this._eventHandlerMap.set("groupMessageModified",this._groupMessageModifiedHandler.bind(this)),this._eventHandlerMap.set("userStatusList",this._userStatusListHandler.bind(this)),this._eventHandlerMap.set("messageExtensionNotify",this._messageExtensionNotifyHandler.bind(this)),this._keys=b(this._eventHandlerMap.keys())}return i(e,[{key:"_c2cMessageArrayHandler",value:function(e){var t=this._sessionModule.getModule(Bn);t&&(e.dataList.forEach((function(e){if(1===e.isSyncMessage){var t=e.from;e.from=e.to,e.to=t}})),1===e.needSync&&this._sessionModule.getModule(Zn).startOnlineSync(),t.onNewC2CMessage({dataList:e.dataList,isInstantMessage:!0}))}},{key:"_c2cMessageModifiedHandler",value:function(e){var t=this._sessionModule.getModule(Bn);t&&t.onC2CMessageModified(e)}},{key:"_groupMessageArrayHandler",value:function(e){var t=this._sessionModule.getModule(Fn);t&&t.onNewGroupMessage({event:e.event,dataList:e.dataList,isInstantMessage:!0})}},{key:"_groupMessageModifiedHandler",value:function(e){var t=this._sessionModule.getModule(Fn);t&&t.onGroupMessageModified(e)}},{key:"_groupTipsHandler",value:function(e){var t=this._sessionModule.getModule(Fn);if(t){var n=e.event,r=e.dataList,o=e.isInstantMessage,a=void 0===o||o,i=e.isSyncingEnded;switch(n){case 4:case 6:t.onNewGroupTips({event:n,dataList:r});break;case 5:for(var s=0;s<r.length;s++)if(dt(r[s].elements.revokedInfos))t.onGroupMessageRevoked({dataList:r});else if(dt(r[s].elements.groupMessageReadNotice))t.onGroupMessageReadNotice({dataList:r});else{if(!dt(r[s].elements.readReceiptList)){t.onNewGroupSystemNotice({dataList:r,isInstantMessage:a,isSyncingEnded:i});break}t.onReadReceiptList({dataList:r})}break;case 12:this._sessionModule.getModule(zn).onNewGroupAtTips({dataList:r});break;default:Ge.l("".concat(this._n,"._groupTipsHandler unknown event:").concat(n," dataList:"),r)}}}},{key:"_C2CNotifyMessageArrayHandler",value:function(e){var t=this,n=e.dataList;if(dt(n)){var r=this._sessionModule.getModule(Bn);n.forEach((function(e){if(ut(e))if(e.hasOwnProperty("kickoutMsgNotify")){var o=e.kickoutMsgNotify,a=o.kickType,i=o.newInstanceInfo,s=void 0===i?{}:i;1===a?t._sessionModule.onMultipleAccountKickedOut(s):2===a?t._sessionModule.onMultipleDeviceKickedOut(s):3===a&&t._sessionModule.onRestApiKickedOut(s)}else e.hasOwnProperty("c2cMessageRevokedNotify")?r&&r.onC2CMessageRevoked({dataList:n}):e.hasOwnProperty("c2cMessageReadReceipt")?r&&r.onC2CMessageReadReceipt({dataList:n}):e.hasOwnProperty("c2cMessageReadNotice")?r&&r.onC2CMessageReadNotice({dataList:n}):e.hasOwnProperty("muteNotificationsSync")&&t._sessionModule.getModule(zn).onC2CMessageRemindTypeSynced({dataList:n})}))}}},{key:"_C2CReadReceiptArrayHandler",value:function(e){this._sessionModule.getModule(Bn).onReadReceiptList(e)}},{key:"_profileHandler",value:function(e){this._sessionModule.getModule(Vn).onProfileModified({dataList:e.dataList});var t=this._sessionModule.getModule(Gn);t&&t.onFriendProfileModified({dataList:e.dataList})}},{key:"_relationChainHandler",value:function(e){this._sessionModule.getModule(Vn).onRelationChainModified({dataList:e.dataList});var t=this._sessionModule.getModule(Gn);t&&t.onRelationChainModified({dataList:e.dataList})}},{key:"_recentContactHandler",value:function(e){var t=e.dataList;if(dt(t)){var n=this._sessionModule.getModule(zn);n&&t.forEach((function(e){var t=e.pushType;if(1===t){var r=e.recentContactDeleteItem;n.onConversationDeleted(r.recentContactList)}else if(2===t){var o=e.recentContactTopItem;n.onConversationPinned(o.recentContactList)}else if(3===t){var a=e.recentContactTopItem;n.onConversationUnpinned(a.recentContactList)}else if(4===t){var i=e.recentContactMarkContact;n.onConversationMarkUpdated(i.recentContactMarkContactItem)}else if(5===t){var s=e.recentContactCreateContactGroup;n.onConversationGroupCreated(s.msgContactGroupContactItem)}else if(6===t){var c=e.recentContactDelContactGroup;n.onConversationGroupDeleted(c.msgGroupItem)}else if(7===t){var l=e.recentContactUpdateContactGroup,u=l.updateType,d=l.msgUpdateGroup,p=l.msgUpdateContact;if(1===u){var f=d.updateGroupType;1===f?n.onConversationGroupNameUpdated(d):2===f&&n.onConversationInGroupUpdated(d)}else 2===u&&n.onConversationAddedToOrDeletedFromGroup(p)}}))}}},{key:"_allMessageReadHandler",value:function(e){var t=e.dataList,n=this._sessionModule.getModule(zn);n&&n.onPushedAllMessageRead(t)}},{key:"_userStatusListHandler",value:function(e){this._sessionModule.getModule(Vn).onUserStatusUpdated(e)}},{key:"_messageExtensionNotifyHandler",value:function(e){this._sessionModule.getModule(Un).onMessageExtensionNotify(e)}},{key:"onMessage",value:function(e){var t=this,n=e.body;if(this._filterMessageFromIMOpenPush(e)){var r=n.eventArray,o=n.isInstantMessage,a=n.isSyncingEnded,i=n.needSync;if(dt(r))for(var s=null,c=null,l=0,u=0,d=r.length;u<d;u++){l=(s=r[u]).event;var p=Object.keys(s).find((function(e){return-1!==t._keys.indexOf(e)}));p?(c=14===l?{readAllC2CMessage:s[p],groupMessageReadInfoList:s.groupMessageReadNotice||[]}:16===l?{userID:s.userID,readReceiptList:s[p]}:s[p],this._eventHandlerMap.get(p)({event:l,dataList:c,isInstantMessage:o,isSyncingEnded:a,needSync:i})):Ge.l("".concat(this._n,".onMessage unknown eventItem:").concat(s))}}}},{key:"_filterMessageFromIMOpenPush",value:function(e){var t=e.head,n=e.body,r=t.servcmd,o=!1;if(pt(r)||(o=r.includes(G.NAME.IM_CONFIG_MANAGER)||r.includes(G.NAME.OVERLOAD_PUSH)||r.includes(G.NAME.STAT_SERVICE)),!o)return!0;if(r.includes(G.CMD.PUSHED_CLOUD_CONTROL_CONFIG))this._sessionModule.getModule(rr).onPushedCloudControlConfig(n);else if(r.includes(G.CMD.PUSHED_COMMERCIAL_CONFIG))this._sessionModule.getModule(sr).onPushedConfig(n);else if(r.includes(G.CMD.OVERLOAD_NOTIFY))this._sessionModule.onPushedServerOverload(n);else if(r.includes(G.CMD.KICK_OTHER)){var a=Date.now();this._sessionModule.reLoginOnKickOther();var i=new Ka("kickOther"),s=this._sessionModule.getModule(xn).getLastWsHelloTs(),c=a-s;i.setMessage("last wshello time:".concat(s," diff:").concat(c,"ms")).setNetworkType(this._sessionModule.getNetworkType()).end()}return!1}}]),e}(),pc=[{cmd:G.CMD.GET_GROUP_INFO,interval:1,count:20},{cmd:G.CMD.GET_AVCHATROOM_MEMBER_LIST,interval:3,count:1},{cmd:G.CMD.GET_GROUP_APPLICATION,interval:1,count:15},{cmd:G.CMD.GET_TOPIC_LIST,interval:1,count:10},{cmd:G.CMD.SET_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:G.CMD.MODIFY_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:G.CMD.DELETE_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:G.CMD.CLEAR_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:G.CMD.GET_GROUP_ATTRIBUTES,interval:5,count:20},{cmd:G.CMD.UPDATE_GROUP_COUNTER,interval:5,count:20},{cmd:G.CMD.GET_GROUP_COUNTER,interval:5,count:20},{cmd:G.CMD.SET_ALL_MESSAGE_READ,interval:1,count:1},{cmd:G.CMD.GET_USER_STATUS,interval:5,count:20},{cmd:G.CMD.SUBSCRIBE_USER_STATUS,interval:5,count:20},{cmd:G.CMD.UNSUBSCRIBE_USER_STATUS,interval:5,count:20}],fc=function(e){c(r,e);var t=g(r);function r(e){var n;return o(this,r),(n=t.call(this,e))._n="SessionModule",n._platform=n.getPlatform(),n._protocolHandler=new lc(m(n)),n._messageDispatcher=new dc(m(n)),n._commandFrequencyLimitMap=new Map,n._commandRequestInfoMap=new Map,n._serverOverloadInfoMap=new Map,n._init(),n.getInnerEmitterInstance().on(yi,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_init",value:function(){this._updateCommandFrequencyLimitMap(pc)}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("cmd_frequency_limit");pt(e)||(e=JSON.parse(e),this._updateCommandFrequencyLimitMap(e))}},{key:"_updateCommandFrequencyLimitMap",value:function(e){var t=this;e.forEach((function(e){t._commandFrequencyLimitMap.set(e.cmd,{interval:e.interval,count:e.count})}))}},{key:"updateProtocolConfig",value:function(){this._protocolHandler.update()}},{key:"request",value:function(e){Ge.d("".concat(this._n,".request options:"),e);var t=e.protocolName,n=e.tjgID;if(!this._protocolHandler.has(t))return Ge.w("".concat(this._n,".request unknown protocol:").concat(t)),vi({code:Aa.CANNOT_FIND_PROTOCOL});var r=this.getProtocolData(e),o=r.head.servcmd;if(this._isFrequencyOverLimit(o))return vi({code:Aa.OVER_FREQUENCY_LIMIT});if(this._isServerOverload(o))return vi({code:Aa.OPEN_SERVICE_OVERLOAD_ERROR});en(n)||(r.head.tjgID=n);var a=this.getModule(tr);return uc.includes(t)?a.simplySend(r):a.send(r)}},{key:"getKeyMap",value:function(e){return this._protocolHandler.getKeyMap(e)}},{key:"genCommonHead",value:function(){var e=this.getModule(qn);return{ver:"v4",platform:this._platform,websdkappid:A,websdkversion:L,a2:e.getA2Key()||void 0,tinyid:e.getTinyID()||void 0,status_instid:e.getStatusInstanceID(),sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getA2Key()?void 0:e.getUserID(),usersig:e.getA2Key()?void 0:e.getUserSig(),sdkability:192371,tjgID:""}}},{key:"genCosSpecifiedHead",value:function(){var e=this.getModule(qn);return{ver:"v4",platform:this._platform,websdkappid:A,websdkversion:L,sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getUserID(),usersig:e.getUserSig(),status_instid:e.getStatusInstanceID(),sdkability:192371}}},{key:"genSSOReportHead",value:function(){var e=this.getModule(qn);return{ver:"v4",platform:this._platform,websdkappid:A,websdkversion:L,sdkappid:e.getSDKAppID(),contenttype:"",reqtime:0,identifier:"",usersig:"",status_instid:e.getStatusInstanceID(),sdkability:192371}}},{key:"getProtocolData",value:function(e){return this._protocolHandler.getProtocolData(e)}},{key:"trans",value:function(e){var t=e.servcmd,r=e.data,o={head:n(n({},this.genCommonHead()),{},{servcmd:t}),body:r};return this.getModule(tr).send(o)}},{key:"sendComboMessage",value:function(e){var t=e.servcmd,r=e.data,o={head:n(n({},this.genCommonHead()),{},{servcmd:t}),body:r};return this.getModule(tr).send(o)}},{key:"onErrorCodeNotZero",value:function(e){var t=e.errorCode;if(t===Aa.HELLO_ANSWER_KICKED_OUT){var n=e.kickType,r=e.newInstanceInfo,o=void 0===r?{}:r;1===n?this.onMultipleAccountKickedOut(o):2===n?this.onMultipleDeviceKickedOut(o):3===n&&this.onRestApiKickedOut(o)}t!==Aa.MESSAGE_A2KEY_EXPIRED&&t!==Aa.ACCOUNT_A2KEY_EXPIRED||(this._onUserSigExpired(),this.getModule(tr).reConnect())}},{key:"onMessage",value:function(e){var t=e.body,n=t.needAck,r=void 0===n?0:n,o=t.sessionData;1===r&&this._sendACK(o),this._messageDispatcher.onMessage(e)}},{key:"onReconnected",value:function(){this._reLoginOnReconnected()}},{key:"reLoginOnKickOther",value:function(){Ge.l("".concat(this._n,".reLoginOnKickOther")),this._reLogin()}},{key:"_reLoginOnReconnected",value:function(){Ge.l("".concat(this._n,"._reLoginOnReconnected")),this._reLogin()}},{key:"_reLogin",value:function(){var e=this;if(this.isLoggedIn()){var t=0,n=this.getModule(cr);n.canIUseOfflinePush()&&(t=n.getUniAppPlatform()),this.request({protocolName:hr,requestData:{isWebUniapp:t}}).then((function(t){var n=t.data.instanceID;e.getModule(qn).setStatusInstanceID(n),Ge.l("".concat(e._n,"._reLogin ok.")),e.getModule(zn).syncConversationList().then((function(){Ge.l("".concat(e._n,"._reLogin, sync conversation list ok.")),e.getModule(ar).start()})),e.getModule(Fn).updateLocalMainSequenceOnReconnected();var r=e.getModule(Yn);r.resetGetTopicTime(),r.getTopicListOnReconnected()}))}}},{key:"onMultipleAccountKickedOut",value:function(e){this.getModule(xn).onMultipleAccountKickedOut(e)}},{key:"onMultipleDeviceKickedOut",value:function(e){this.getModule(xn).onMultipleDeviceKickedOut(e)}},{key:"_onUserSigExpired",value:function(){this.getModule(xn).onUserSigExpired()}},{key:"onRestApiKickedOut",value:function(e){this.getModule(xn).onRestApiKickedOut(e)}},{key:"_sendACK",value:function(e){this.request({protocolName:da,requestData:{sessionData:e}})}},{key:"_isFrequencyOverLimit",value:function(e){var t=e.split(".")[1];if(!this._commandFrequencyLimitMap.has(t))return!1;if(!this._commandRequestInfoMap.has(t))return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;var n=this._commandFrequencyLimitMap.get(t),r=n.count,o=n.interval,a=this._commandRequestInfoMap.get(t),i=a.startTime,s=a.requestCount;if(Date.now()-i>1e3*o)return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;s+=1,this._commandRequestInfoMap.set(t,{startTime:i,requestCount:s});var c=!1;return s>r&&(c=!0),c}},{key:"_isServerOverload",value:function(e){if(!this._serverOverloadInfoMap.has(e))return!1;var t=this._serverOverloadInfoMap.get(e),n=t.overloadTime,r=t.waitingTime,o=!1;return Date.now()-n<=1e3*r?o=!0:(this._serverOverloadInfoMap.delete(e),o=!1),o}},{key:"onPushedServerOverload",value:function(e){var t=e.overloadCommand,n=e.waitingTime;this._serverOverloadInfoMap.set(t,{overloadTime:Date.now(),waitingTime:n}),Ge.w("".concat(this._n,".onPushedServerOverload waitingTime:").concat(n,"s"))}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._updateCommandFrequencyLimitMap(pc),this._commandRequestInfoMap.clear(),this._serverOverloadInfoMap.clear()}}]),r}(fr),hc=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="MessageLossDetectionModule",r._maybeLostSequencesMap=new Map,r._firstRoundRet=[],r}return i(n,[{key:"onMessageMaybeLost",value:function(e,t,n){this._maybeLostSequencesMap.has(e)||this._maybeLostSequencesMap.set(e,[]);for(var r=this._maybeLostSequencesMap.get(e),o=0;o<n;o++)-1===r.indexOf(t+o)&&r.push(t+o)}},{key:"detectFirstRound",value:function(e,t){var n=this._maybeLostSequencesMap.get(e);if(!en(n)&&!en(t)){var r=n.filter((function(e){return-1===t.indexOf(e)}));0===r.length?Ge.i("".concat(this._n,".detectFirstRound no message loss. conversationID:").concat(e)):this._firstRoundRet=this._firstRoundRet.concat(r),n.length=0}}},{key:"detectSecondRound",value:function(e,t){if(!en(this._firstRoundRet)&&!en(t)){var n=this._firstRoundRet.filter((function(e){return-1===t.indexOf(e)}));this._firstRoundRet.length=0;var r,o=n.length;0!==o&&(o<=5?r=e+"-"+n.join("-"):(n.sort((function(e,t){return e-t})),r=e+" start:"+n[0]+" end:"+n[o-1]+" count:"+o),new Ka("messageLoss").setMessage(r).setNetworkType(this.getNetworkType()).setLevel("warning").end(),Ge.i("".concat(this._n,".detectSecondRound message loss detected. conversationID:").concat(e," lostSequences:").concat(n)))}}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._maybeLostSequencesMap.clear(),this._firstRoundRet.length=0}}]),n}(fr),mc=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="CloudControlModule",r._cloudConfig=new Map,r._expiredTime=0,r._version=0,r._isFetching=!1,r}return i(n,[{key:"getCloudConfig",value:function(e){return pt(e)?this._cloudConfig:this._cloudConfig.has(e)?this._cloudConfig.get(e):void 0}},{key:"_canFetchConfig",value:function(){return this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime}},{key:"fetchConfig",value:function(){var e=this,t=this._canFetchConfig();if(Ge.l("".concat(this._n,".fetchConfig canFetchConfig:").concat(t)),t){var n=new Ka("fetchCloudControlConfig"),r=this.getModule(qn).getSDKAppID();this._isFetching=!0,this.request({protocolName:ma,requestData:{SDKAppID:r,version:this._version}}).then((function(t){e._isFetching=!1,n.setMessage("version:".concat(e._version," newVersion:").concat(t.data.version," config:").concat(t.data.cloudControlConfig)).setNetworkType(e.getNetworkType()).end(),Ge.l("".concat(e._n,".fetchConfig ok")),e._parseCloudControlConfig(t.data)})).catch((function(t){e._isFetching=!1,e.probeNetwork().then((function(e){var r=_(e,2),o=r[0],a=r[1];n.setError(t,o,a).end()})),Ge.l("".concat(e._n,".fetchConfig failed. error:"),t),e._setExpiredTimeOnResponseError(12e4)}))}}},{key:"onPushedCloudControlConfig",value:function(e){Ge.l("".concat(this._n,".onPushedCloudControlConfig")),new Ka("pushedCloudControlConfig").setNetworkType(this.getNetworkType()).setMessage("newVersion:".concat(e.version," config:").concat(e.cloudControlConfig)).end(),this._parseCloudControlConfig(e)}},{key:"onCheckTimer",value:function(e){this._canFetchConfig()&&this.fetchConfig()}},{key:"_parseCloudControlConfig",value:function(e){var t=this,n="".concat(this._n,"._parseCloudControlConfig"),r=e.errorCode,o=e.errorMessage,a=e.cloudControlConfig,i=e.version,s=e.expiredTime;if(0===r){if(this._version!==i){var c=null;try{c=JSON.parse(a)}catch(u){this.isPrivateNetWork()||Ge.e("".concat(n," JSON parse error. cloudControlConfig:"),a)}c&&(this._cloudConfig.clear(),Object.keys(c).forEach((function(e){t._cloudConfig.set(e,c[e])})),this._version=i,this.emitInnerEvent(yi))}this._expiredTime=Date.now()+1e3*s}else pt(r)?(Ge.l("".concat(n," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(Ge.e("".concat(n," errorCode:").concat(r," errorMessage:").concat(o)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._cloudConfig.clear(),this._expiredTime=0,this._version=0,this._isFetching=!1}}]),n}(fr),vc=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="RecoverMessageModule",r.PULL_LIMIT_COUNT=15,r}return i(n,[{key:"start",value:function(){this._recoverGroupChat(),this._recoverC2CChat()}},{key:"_recoverGroupChat",value:function(){var e,t,n=this,r=this._getLocalConversationList().filter((function(e){return e.type===T.CONV_GROUP&&e.groupProfile.type!==T.GRP_AVCHATROOM})),o=this.getModule(zn),a=0,i=0,s=0;r.forEach((function(r){var c=r.conversationID,l=r.lastMessage;t=c.replace(T.CONV_GROUP,""),e=o.getLocalLastMessage(c),l&&0!==l.lastSequence&&e?(i=l.lastSequence,a=e.sequence,s=i-a,a>0&&s>=1&&s<300?n._recoverGroupMessage({groupID:t,localLastMessageSequence:a,remoteLastMessageSequence:i}):n._getGroupNotify(t)):n._getGroupNotify(t)}))}},{key:"_recoverC2CChat",value:function(){var e,t=this,n=this._getLocalConversationList().filter((function(e){return e.type===T.CONV_C2C})),r=this.getModule(zn),o=0,a=0,i=0,s=[Promise.resolve()];n.forEach((function(n){var c=n.conversationID,l=n.lastMessage;e=r.getLocalLastMessage(c),l&&0!==l.lastTime&&e&&(a=l.lastTime,o=e.time,i=a-o,o>0&&i>=1&&i<=600&&s.push(t._recoverC2CMessage({conversationID:c,localLastMessageTime:o,remoteLastMessageTime:a})))})),Promise.all(s).then((function(){Ge.l("".concat(t._n,"._recoverC2CChat all promise fulfilled, start to sync unread messages")),t.getModule(Zn).startSyncOnReconnected()}))}},{key:"_getLocalConversationList",value:function(){return this.getModule(zn).getLocalConversationList()}},{key:"_recoverGroupMessage",value:function(e){var t=this,n="".concat(this._n,"._recoverGroupMessage");Ge.l("".concat(n," options:"),e);var r=e.groupID,o=e.localLastMessageSequence,a=e.remoteLastMessageSequence;this._getGroupRomaingMessage({groupID:r,sequence:o}).then((function(e){var o=e.data,i=o.complete,s=o.messageList;if(!pt(s)){var c=s[0].sequence;Ge.l("".concat(n," pkgLastMessageSequence:").concat(c," complete:").concat(i)),c<a&&2!==i&&t._recoverGroupMessage({groupID:r,localLastMessageSequence:c,remoteLastMessageSequence:a}),new Ka("recoverMessage").setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(r," complete:").concat(i," messageList length:").concat(s.length)).end(),t.getModule(Fn).onNewGroupMessage({dataList:s,isInstantMessage:!1,updateUnreadCount:!1}),t._getGroupNotify(r)}}))}},{key:"_getGroupNotify",value:function(e){this.getModule(Fn).getGroupNotify(e)}},{key:"_getGroupRomaingMessage",value:function(e){var t=e.groupID,n=e.sequence;return this.request({protocolName:Io,requestData:{groupID:t,count:this.PULL_LIMIT_COUNT,sequence:n+this.PULL_LIMIT_COUNT-1}})}},{key:"_recoverC2CMessage",value:function(e){var t=this,n="".concat(this._n,"._recoverC2CMessage");Ge.l("".concat(this._n,"._recoverC2CMessage options:"),e);var r=e.conversationID,o=e.localLastMessageTime,a=e.remoteLastMessageTime;return this._getC2CRoamingMessage({conversationID:r,time:o}).then((function(e){var o=e.data,i=o.complete,s=o.messageList;if(!pt(s)){var c=s.length;new Ka("recoverMessage").setNetworkType(t.getNetworkType()).setMessage("".concat(r," complete:").concat(i," messageList length:").concat(c)).end(),t.getModule(Bn).onNewC2CMessage({dataList:s,isInstantMessage:!0});var l=s[c-1].time;if(Ge.l("".concat(n," pkgLastMessageTime:").concat(l," complete:").concat(i)),l<a&&1!==i)return t._recoverC2CMessage({conversationID:r,localLastMessageTime:l,remoteLastMessageTime:a})}}))}},{key:"_getC2CRoamingMessage",value:function(e){var t=e.conversationID,n=e.time;return this.request({protocolName:zr,requestData:{peerAccount:t.replace(T.CONV_C2C,""),count:this.PULL_LIMIT_COUNT+1,lastMessageTime:n,direction:1}})}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset"))}}]),n}(fr),gc=function(){function e(){o(this,e),this._n="AvgE2EDelay",this._e2eDelayArray=[]}return i(e,[{key:"addMessageDelay",value:function(e){var t=Ue()-e;t>=0&&this._e2eDelayArray.push(t)}},{key:"_calcAvg",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),Ht(n/t,1)}},{key:"_calcCountWithLimit",value:function(e){var t=e.e2eDelayArray,n=e.min,r=e.max;return t.filter((function(e){return n<=e&&e<r})).length}},{key:"_calcPercent",value:function(e,t){var n=Ht(e/t*100,2);return n>100&&(n=100),n}},{key:"_checkE2EDelayException",value:function(e,t){var n=e.filter((function(e){return e>t}));if(n.length>0){var r=n.length,o=Math.min.apply(Math,b(n)),a=Math.max.apply(Math,b(n)),i=this._calcAvg(n,r),s=Ht(r/e.length*100,2);s>50&&new Ka("messageE2EDelayException").setMessage("count:".concat(r," min:").concat(o," max:").concat(a," avg:").concat(i," percent:").concat(s)).setLevel("warning").end()}}},{key:"getStatResult",value:function(){var e=this._e2eDelayArray.length;if(0===e)return null;var t=b(this._e2eDelayArray),n=this._calcCountWithLimit({e2eDelayArray:t,min:0,max:1}),r=this._calcCountWithLimit({e2eDelayArray:t,min:1,max:3}),o=this._calcPercent(n,e),a=this._calcPercent(r,e),i=this._calcAvg(t,e);return this._checkE2EDelayException(t,3),t.length=0,this.reset(),{totalCount:e,countLessThan1Second:n,percentOfCountLessThan1Second:o,countLessThan3Second:r,percentOfCountLessThan3Second:a,avgDelay:i}}},{key:"reset",value:function(){this._e2eDelayArray.length=0}}]),e}(),_c=function(){function e(){o(this,e),this._n="AvgRTT",this._requestCount=0,this._rttArray=[]}return i(e,[{key:"addRequestCount",value:function(){this._requestCount+=1}},{key:"addRTT",value:function(e){this._rttArray.push(e)}},{key:"_calcTotalCount",value:function(){return this._requestCount}},{key:"_calcRTTCount",value:function(e){return e.length}},{key:"_calcSuccessRateOfRequest",value:function(e,t){if(0===t)return 0;var n=Ht(e/t*100,2);return n>100&&(n=100),n}},{key:"_calcAvg",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),parseInt(n/t)}},{key:"_calcMax",value:function(){return Math.max.apply(Math,b(this._rttArray))}},{key:"_calcMin",value:function(){return Math.min.apply(Math,b(this._rttArray))}},{key:"getStatResult",value:function(){var e=this._calcTotalCount(),t=b(this._rttArray);if(0===e)return null;var n=this._calcRTTCount(t),r=this._calcSuccessRateOfRequest(n,e),o=this._calcAvg(t,n);return Ge.l("".concat(this._n,".getStatResult max:").concat(this._calcMax()," min:").concat(this._calcMin()," avg:").concat(o)),this.reset(),{totalCount:e,rttCount:n,successRateOfRequest:r,avgRTT:o}}},{key:"reset",value:function(){this._requestCount=0,this._rttArray.length=0}}]),e}(),bc=function(){function e(){o(this,e),this._map=new Map}return i(e,[{key:"initMap",value:function(e){var t=this;e.forEach((function(e){t._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}))}},{key:"addTotalCount",value:function(e){return!(pt(e)||!this._map.has(e))&&(this._map.get(e).totalCount+=1,!0)}},{key:"addSuccessCount",value:function(e){return!(pt(e)||!this._map.has(e))&&(this._map.get(e).successCount+=1,!0)}},{key:"addFailedCountOfUserSide",value:function(e){return!(pt(e)||!this._map.has(e))&&(this._map.get(e).failedCountOfUserSide+=1,!0)}},{key:"addCost",value:function(e,t){return!(pt(e)||!this._map.has(e))&&(this._map.get(e).costArray.push(t),!0)}},{key:"addFileSize",value:function(e,t){return!(pt(e)||!this._map.has(e))&&(this._map.get(e).fileSizeArray.push(t),!0)}},{key:"_calcSuccessRateOfBusiness",value:function(e){if(pt(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=Ht(t.successCount/t.totalCount*100,2);return n>100&&(n=100),n}},{key:"_calcSuccessRateOfPlatform",value:function(e){if(pt(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=this._calcSuccessCountOfPlatform(e)/t.totalCount*100;return(n=Ht(n,2))>100&&(n=100),n}},{key:"_calcTotalCount",value:function(e){return pt(e)||!this._map.has(e)?-1:this._map.get(e).totalCount}},{key:"_calcSuccessCountOfBusiness",value:function(e){return pt(e)||!this._map.has(e)?-1:this._map.get(e).successCount}},{key:"_calcSuccessCountOfPlatform",value:function(e){if(pt(e)||!this._map.has(e))return-1;var t=this._map.get(e);return t.successCount+t.failedCountOfUserSide}},{key:"_calcAvg",value:function(e){return pt(e)||!this._map.has(e)?-1:e===Ba?this._calcAvgSpeed(e):this._calcAvgCost(e)}},{key:"_calcAvgCost",value:function(e){var t=this._map.get(e).costArray.length;if(0===t)return 0;var n=0;return this._map.get(e).costArray.forEach((function(e){n+=e})),parseInt(n/t)}},{key:"_calcAvgSpeed",value:function(e){var t=0,n=0;return this._map.get(e).costArray.forEach((function(e){t+=e})),this._map.get(e).fileSizeArray.forEach((function(e){n+=e})),parseInt(1e3*n/t)}},{key:"getStatResult",value:function(e){var t=this._calcTotalCount(e);if(0===t)return null;var n=this._calcSuccessCountOfBusiness(e),r=this._calcSuccessRateOfBusiness(e),o=this._calcSuccessCountOfPlatform(e),a=this._calcSuccessRateOfPlatform(e),i=this._calcAvg(e);return this.reset(e),{totalCount:t,successCountOfBusiness:n,successRateOfBusiness:r,successCountOfPlatform:o,successRateOfPlatform:a,avgValue:i}}},{key:"reset",value:function(e){pt(e)?this._map.clear():this._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}}]),e}(),yc=function(){function e(){o(this,e),this._lastMap=new Map,this._currentMap=new Map}return i(e,[{key:"initMap",value:function(e){var t=this;e.forEach((function(e){t._lastMap.set(e,new Map),t._currentMap.set(e,new Map)}))}},{key:"addMessageSequence",value:function(e){var t=e.key,n=e.message;if(pt(t)||!this._lastMap.has(t)||!this._currentMap.has(t))return!1;var r=n.conversationID,o=n.sequence,a=r.replace(T.CONV_GROUP,"");if(0===this._lastMap.get(t).size)this._addCurrentMap(e);else if(this._lastMap.get(t).has(a)){var i=this._lastMap.get(t).get(a),s=i.length-1;o>i[0]&&o<i[s]?(i.push(o),i.sort(),this._lastMap.get(t).set(a,i)):this._addCurrentMap(e)}else this._addCurrentMap(e);return!0}},{key:"_addCurrentMap",value:function(e){var t=e.key,n=e.message,r=n.conversationID,o=n.sequence,a=r.replace(T.CONV_GROUP,"");this._currentMap.get(t).has(a)||this._currentMap.get(t).set(a,[]),this._currentMap.get(t).get(a).push(o)}},{key:"_copyData",value:function(e){if(!pt(e)){this._lastMap.set(e,new Map);var t,n=this._lastMap.get(e),r=w(this._currentMap.get(e));try{for(r.s();!(t=r.n()).done;){var o=_(t.value,2),a=o[0],i=o[1];n.set(a,i)}}catch(c){r.e(c)}finally{r.f()}n=null,this._currentMap.set(e,new Map)}}},{key:"getStatResult",value:function(e){if(pt(this._currentMap.get(e))||pt(this._lastMap.get(e)))return null;if(0===this._lastMap.get(e).size)return this._copyData(e),null;var t=0,n=0;if(this._lastMap.get(e).forEach((function(e,r){var o=b(e.values()),a=o.length,i=o[a-1]-o[0]+1;t+=i,n+=a})),0===t)return null;var r=Ht(n/t*100,2);return r>100&&(r=100),this._copyData(e),{totalCount:t,successCountOfMessageReceived:n,successRateOfMessageReceived:r}}},{key:"reset",value:function(){this._currentMap.clear(),this._lastMap.clear()}}]),e}(),Oc=function(e){c(r,e);var t=g(r);function r(e){var n;o(this,r),(n=t.call(this,e))._n="QualityStatModule",n.TAG="im-ssolog-quality-stat",n.reportIndex=0,n.wholePeriod=!1,n._qualityItems=[Na,Ra,xa,Pa,Ua,Va,Ba,Fa,Ga,Ha],n._messageSentItems=[xa,Pa,Ua,Va,Ba],n._messageReceivedItems=[Fa,Ga,Ha],n.REPORT_INTERVAL=120,n.REPORT_SDKAPPID_BLACKLIST=[],n.REPORT_TINYID_WHITELIST=[],n._statInfoArr=[],n._avgRTT=new _c,n._avgE2EDelay=new gc,n._rateMessageSent=new bc,n._rateMessageReceived=new yc;var a=n.getInnerEmitterInstance();return a.on(bi,n._onLoginSuccess,m(n)),a.on(yi,n._onCloudConfigUpdated,m(n)),n}return i(r,[{key:"_onLoginSuccess",value:function(){var e=this;this._rateMessageSent.initMap(this._messageSentItems),this._rateMessageReceived.initMap(this._messageReceivedItems);var t=this.getModule(Wn),n=t.getItem(this.TAG,!1);!en(n)&&ht(n.forEach)&&(Ge.l("".concat(this._n,"._onLoginSuccess get quality stat logs from local storage, count:").concat(n.length)),n.forEach((function(t){e._statInfoArr.push(t)})),t.removeItem(this.TAG,!1))}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("q_rpt_interval"),t=this.getCloudConfig("q_rpt_sdkappid_bl"),n=this.getCloudConfig("q_rpt_tinyid_wl");pt(e)||(this.REPORT_INTERVAL=Number(e)),pt(t)||(this.REPORT_SDKAPPID_BLACKLIST=t.split(",").map((function(e){return Number(e)}))),pt(n)||(this.REPORT_TINYID_WHITELIST=n.split(","))}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&e%this.REPORT_INTERVAL==0&&(this.wholePeriod=!0,this._report())}},{key:"addRequestCount",value:function(){this._avgRTT.addRequestCount()}},{key:"addRTT",value:function(e){this._avgRTT.addRTT(e)}},{key:"addMessageDelay",value:function(e){this._avgE2EDelay.addMessageDelay(e)}},{key:"addTotalCount",value:function(e){this._rateMessageSent.addTotalCount(e)||Ge.w("".concat(this._n,".addTotalCount invalid key:"),e)}},{key:"addSuccessCount",value:function(e){this._rateMessageSent.addSuccessCount(e)||Ge.w("".concat(this._n,".addSuccessCount invalid key:"),e)}},{key:"addFailedCountOfUserSide",value:function(e){this._rateMessageSent.addFailedCountOfUserSide(e)||Ge.w("".concat(this._n,".addFailedCountOfUserSide invalid key:"),e)}},{key:"addCost",value:function(e,t){this._rateMessageSent.addCost(e,t)||Ge.w("".concat(this._n,".addCost invalid key or cost:"),e,t)}},{key:"addFileSize",value:function(e,t){this._rateMessageSent.addFileSize(e,t)||Ge.w("".concat(this._n,".addFileSize invalid key or size:"),e,t)}},{key:"addMessageSequence",value:function(e){this._rateMessageReceived.addMessageSequence(e)||Ge.w("".concat(this._n,".addMessageSequence invalid key:"),e.key)}},{key:"_getQualityItem",value:function(e){var t={},r=qa[this.getNetworkType()];pt(r)&&(r=8);var o={qualityType:Ya[e],timestamp:xe(),networkType:r,extension:""};switch(e){case Na:t=this._avgRTT.getStatResult();break;case Ra:t=this._avgE2EDelay.getStatResult();break;case xa:case Pa:case Ua:case Va:case Ba:t=this._rateMessageSent.getStatResult(e);break;case Fa:case Ga:case Ha:t=this._rateMessageReceived.getStatResult(e)}return null===t?null:n(n({},o),t)}},{key:"_report",value:function(e){var t=this,n=[],r=null;pt(e)?this._qualityItems.forEach((function(e){null!==(r=t._getQualityItem(e))&&(r.reportIndex=t.reportIndex,r.wholePeriod=t.wholePeriod,n.push(r))})):null!==(r=this._getQualityItem(e))&&(r.reportIndex=this.reportIndex,r.wholePeriod=this.wholePeriod,n.push(r)),Ge.d("".concat(this._n,"._report"),n),this._statInfoArr.length>0&&(n=n.concat(this._statInfoArr),this._statInfoArr=[]);var o=this.getModule(qn),a=o.getSDKAppID(),i=o.getTinyID();Yt(this.REPORT_SDKAPPID_BLACKLIST,a)&&!zt(this.REPORT_TINYID_WHITELIST,i)&&(n=[]),n.length>0&&this._doReport(n)}},{key:"_doReport",value:function(e){var t=this,r={header:Ms(this),quality:e};this.request({protocolName:sa,requestData:n({},r)}).then((function(){t.reportIndex++,t.wholePeriod=!1})).catch((function(n){Ge.w("".concat(t._n,"._doReport, online:").concat(t.getNetworkType()," error:"),n),t._statInfoArr=t._statInfoArr.concat(e),t._flushAtOnce()}))}},{key:"_flushAtOnce",value:function(){var e=this.getModule(Wn),t=e.getItem(this.TAG,!1),n=this._statInfoArr,r="".concat(this._n,"._flushAtOnce");if(en(t))Ge.l("".concat(r," count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var o=n.concat(t);o.length>10&&(o=o.slice(0,10)),Ge.l("".concat(r," count:").concat(o.length)),e.setItem(this.TAG,o,!0,!1)}this._statInfoArr=[]}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._report(),this.reportIndex=0,this.wholePeriod=!1,this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[],this._avgRTT.reset(),this._avgE2EDelay.reset(),this._rateMessageSent.reset(),this._rateMessageReceived.reset()}}]),r}(fr),Mc=i((function e(t){o(this,e),en(t)||(this.userID=t.userID||"",this.nick=t.nick||"",this.avatar=t.avatar||"",this.time=t.time||0,this.source=t.source||"",this.wording=t.wording||"",this.type=t.type||"")})),kc=function(){function e(t){o(this,e),this._snsModule=t,this._n="FriendApplicationHandler",this._startTime=0,this._maxLimited=100,this._currentSequence=0,this._friendApplicationMap=new Map,this._unreadCount=0}return i(e,[{key:"getLocalFriendApplicationList",value:function(){return{friendApplicationList:b(this._friendApplicationMap.values()),unreadCount:this._unreadCount}}},{key:"_onFriendApplicationListUpdated",value:function(){this._snsModule.emitOuterEvent(S.FRIEND_APPLICATION_LIST_UPDATED,{friendApplicationList:b(this._friendApplicationMap.values()),unreadCount:this._unreadCount})}},{key:"onFriendApplicationRead",value:function(){this._unreadCount=0,this._onFriendApplicationListUpdated()}},{key:"onFriendApplicationAdded",value:function(e,t){var r=this;if(!en(e)){var o="";o=t===this._snsModule.getMyUserID()?T.SNS_APPLICATION_SENT_BY_ME:T.SNS_APPLICATION_SENT_TO_ME;var a=!1;e.forEach((function(e){var t="".concat(e.userID,"_").concat(o);o!==T.SNS_APPLICATION_SENT_TO_ME||r._friendApplicationMap.has(t)||(r._unreadCount+=1),r._friendApplicationMap.set(t,new Mc(n(n({},e),{},{type:o}))),a=!0})),a&&this._onFriendApplicationListUpdated()}}},{key:"onFriendApplicationDeleted",value:function(e){en(e)||this.getFriendApplicationList()}},{key:"getFriendApplicationList",value:function(){var e=this,t="".concat(this._n,".").concat("getFriendApplicationList"),n=new Ka("getFriendApplicationList");return this._snsModule.request({protocolName:Nr,requestData:{applicationType:T.SNS_APPLICATION_TYPE_BOTH,fromAccount:this._snsModule.getMyUserID(),maxLimited:this._maxLimited,startTime:this._startTime,lastSequence:this._currentSequence}}).then((function(r){var o=r.data,a=o.resultList,i=o.unreadCount,s=o.startTime,c=o.currentSequence;e._startTime=s,e._currentSequence=c,e._unreadCount=i;var l=dt(a)?a.length:0;n.setNetworkType(e._snsModule.getNetworkType()).setMessage("applicationCount:".concat(l," unreadCount:").concat(i)).end(),Ge.i("".concat(t," ok. applicationCount:").concat(l," unreadCount:").concat(i)),e._friendApplicationMap.clear(),dt(a)&&a.forEach((function(t){var n=t.userID,r=t.type,o=new Mc(t);e._friendApplicationMap.set("".concat(n,"_").concat(r),o)})),e._onFriendApplicationListUpdated()})).catch((function(r){return e._snsModule.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Ge.w("".concat(t," failed. error:"),r),vi(r)}))}},{key:"deleteFriendApplication",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteFriendApplication"),r=e.userID,o=e.type;if((!o||o!==T.SNS_APPLICATION_SENT_BY_ME&&o!==T.SNS_APPLICATION_SENT_TO_ME)&&(o=T.SNS_APPLICATION_SENT_TO_ME),!this._friendApplicationMap.has("".concat(r,"_").concat(o)))return vi({code:Aa.FRIEND_APPLICATION_NOT_EXIST});var a=new Ka("deleteFriendApplication");return a.setMessage("userID:".concat(r," type:").concat(o)),this._snsModule.request({protocolName:Rr,requestData:{fromAccount:this._snsModule.getMyUserID(),userIDList:[r],type:o}}).then((function(e){var i=e.data.resultList,s=i[0],c=s.to,l=s.resultCode,u=s.resultInfo;return a.setNetworkType(t._snsModule.getNetworkType()).setMoreMessage("resultList:".concat(JSON.stringify(i))).end(),Ge.i("".concat(n," ok. userID:").concat(r," type:").concat(o)),0===l?di():vi({userID:c,code:l,message:u})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"acceptFriendApplication",value:function(e){var t=this,n="".concat(this._n,".").concat("acceptFriendApplication"),r=e.userID,o=e.remark,a=e.tag,i=e.type;(!i||i!==T.SNS_APPLICATION_AGREE&&i!==T.SNS_APPLICATION_AGREE_AND_ADD)&&(i=T.SNS_APPLICATION_AGREE_AND_ADD);var s=new Ka("acceptFriendApplication");return s.setMessage("userID:".concat(r," type:").concat(i)),this._snsModule.request({protocolName:Ar,requestData:{fromAccount:this._snsModule.getMyUserID(),responseFriendItem:[{userID:r,remark:o,tag:a,action:i}]}}).then((function(e){s.setNetworkType(t._snsModule.getNetworkType()).end();var o=e.data.resultList[0],a=o.resultCode,c=o.resultInfo;if(0!==a)return vi({code:a,message:c});Ge.i("".concat(n," ok. userID:").concat(r," type:").concat(i))})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"refuseFriendApplication",value:function(e){var t=this,n="".concat(this._n,".").concat("refuseFriendApplication"),r=e.userID,o=new Ka("refuseFriendApplication");return o.setMessage("userID:".concat(r)),this._snsModule.request({protocolName:Ar,requestData:{fromAccount:this._snsModule.getMyUserID(),responseFriendItem:[{userID:r,action:"Response_Action_Reject"}]}}).then((function(e){o.setNetworkType(t._snsModule.getNetworkType()).end();var a=e.data.resultList[0],i=a.resultCode,s=a.resultInfo;if(0!==i)return vi({code:i,message:s});Ge.i("".concat(n," ok. userID:").concat(r))})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_onFriendApplicationProcessed",value:function(e){var t=this;if(0!==e.length){var n=!1;e.forEach((function(e){var r="".concat(e.to,"_").concat(T.SNS_APPLICATION_SENT_TO_ME);t._friendApplicationMap.has(r)&&(t._friendApplicationMap.delete(r),t._unreadCount-=1,n=!0)})),this._unreadCount<0&&(this._unreadCount=0),n&&this._onFriendApplicationListUpdated()}}},{key:"setFriendApplicationRead",value:function(){var e=this,t="".concat(this._n,".").concat("setFriendApplicationRead"),n=new Ka("setFriendApplicationRead");return this._snsModule.request({protocolName:xr,requestData:{fromAccount:this._snsModule.getMyUserID(),latestTimeStamp:Ht(xe()/1e3,0)}}).then((function(r){n.setNetworkType(e._snsModule.getNetworkType()).end(),Ge.i("".concat(t," ok")),e._unreadCount=0})).catch((function(r){return e._snsModule.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Ge.w("".concat(t," failed. error:"),r),vi(r)}))}},{key:"reset",value:function(){this._startIndex=0,this._maxLimited=100,this._currentSequence=0,this._unreadCount=0,this._friendApplicationMap.clear()}}]),e}(),Cc=function(){function e(t,r){o(this,e),this.userID=t,this.remark="",this.groupList=[],this.source="",this.addTime=0,this.friendCustomField=[],this.timestamp=0;var a={},i=[];if(a.userID=t,!en(r))for(var s="",c="",l=0,u=r.length;l<u;l++)if(s=r[l].tag,c=r[l].value,s.indexOf("Tag_SNS_Custom")>-1)this.friendCustomField.push({key:s,value:c});else if(s.indexOf("Tag_Profile_Custom")>-1)i.push({key:s,value:c});else switch(s){case Ye.NICK:a.nick=c;break;case Ye.GENDER:a.gender=c;break;case Ye.BIRTHDAY:a.birthday=c;break;case Ye.LOCATION:a.location=c;break;case Ye.SELFSIGNATURE:a.selfSignature=c;break;case Ye.ALLOWTYPE:a.allowType=c;break;case Ye.LANGUAGE:a.language=c;break;case Ye.AVATAR:a.avatar=c;break;case Ye.MESSAGESETTINGS:a.messageSettings=c;break;case Ye.ADMINFORBIDTYPE:a.adminForbidType=c;break;case Ye.LEVEL:a.level=c;break;case Ye.ROLE:a.role=c;break;case qe:this.remark=c;break;case $e:this.addTime=c;break;case ze:this.groupList=JSON.parse(JSON.stringify(c));break;case We:this.source=c;break;case Ke:break;default:Ge.l("snsProfileItem unknown tag->",r[l].tag)}this.profile=new Ei(n(n({},a),{},{profileCustomField:i}))}return i(e,[{key:"validate",value:function(e){var t=!0,n="";if(en(e))return{valid:!1,tips:"empty options"};if(e.profileCustomField)for(var r=e.profileCustomField.length,o=null,a=0;a<r;a++){if(o=e.profileCustomField[a],!ct(o.key)||-1===o.key.indexOf("Tag_Profile_Custom"))return{valid:!1,tips:"The prefix of keys of the custom profile key-value pairs (which is profileCustomField) must be Tag_Profile_Custom"};if(!ct(o.value))return{valid:!1,tips:"The type of values of the custom profile key-value pairs (which is profileCustomField) must be String"}}for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if("profileCustomField"===i)continue;if(en(e[i])&&!ct(e[i])&&!st(e[i])){n="key:"+i+", invalid value:"+e[i],t=!1;continue}switch(i){case"nick":ct(e[i])||(n="nick must be a string",t=!1),yt(e[i])>500&&(n="nick name limited: must less than or equal to ".concat(500," bytes, current size: ").concat(yt(e[i])," bytes"),t=!1);break;case"gender":Ct(Je,e.gender)||(n="key:gender, invalid value:"+e.gender,t=!1);break;case"birthday":st(e.birthday)||(n="birthday must be a number",t=!1);break;case"location":ct(e.location)||(n="location must be a string",t=!1);break;case"selfSignature":ct(e.selfSignature)||(n="selfSignature must be a string",t=!1);break;case"allowType":Ct(Qe,e.allowType)||(n="key:allowType, invalid value:"+e.allowType,t=!1);break;case"language":st(e.language)||(n="language must be a number",t=!1);break;case"avatar":ct(e.avatar)||(n="avatar must be a string",t=!1);break;case"messageSettings":0!==e.messageSettings&&1!==e.messageSettings&&(n="messageSettings must be 0 or 1",t=!1);break;case"adminForbidType":Ct(Xe,e.adminForbidType)||(n="key:adminForbidType, invalid value:"+e.adminForbidType,t=!1);break;case"level":st(e.level)||(n="level must be a number",t=!1);break;case"role":st(e.role)||(n="role must be a number",t=!1);break;default:n="unknown key:"+i+" "+e[i],t=!1}}return{valid:t,tips:n}}},{key:"update",value:function(e){var t="",n="",r=[];this.friendCustomField.forEach((function(e){r.push(e.key)}));for(var o=0,a=e.length;o<a;o++)if(t=e[o].tag,n=e[o].value,t.indexOf("Tag_SNS_Custom")>-1)r.indexOf(t)>-1?this.friendCustomField.forEach((function(e){e.key===t&&(e.value=n)})):this.friendCustomField.push({key:t,value:n});else if(t.indexOf("Tag_Profile_Custom")>-1){var i=!1;this.profile.profileCustomField.forEach((function(e){e.key===t&&(e.value=n,i=!0)})),i||this.profile.profileCustomField.push({key:t,value:n})}else switch(t){case Ye.NICK:this.profile.nick=n;break;case Ye.GENDER:this.profile.gender=n;break;case Ye.BIRTHDAY:this.profile.birthday=n;break;case Ye.LOCATION:this.profile.location=n;break;case Ye.SELFSIGNATURE:this.profile.selfSignature=n;break;case Ye.ALLOWTYPE:this.profile.allowType=n;break;case Ye.LANGUAGE:this.profile.language=n;break;case Ye.AVATAR:this.profile.avatar=n;break;case Ye.MESSAGESETTINGS:this.profile.messageSettings=n;break;case Ye.ADMINFORBIDTYPE:this.profile.adminForbidType=n;break;case Ye.LEVEL:this.profile.level=n;break;case Ye.ROLE:this.profile.role=n;break;case qe:this.remark=n;break;case $e:this.addTime=n;break;case ze:this.groupList=JSON.parse(JSON.stringify(n));break;case We:this.source=n;break;case Ke:break;default:Ge.d("snsProfileItem unkown tag->",e[o].tag)}this.timestamp=Date.now(),r.length=0}},{key:"updateProfile",value:function(e){this.profile=JSON.parse(JSON.stringify(e)),this.timestamp=Date.now()}},{key:"addToGroupList",value:function(e){-1===this.groupList.indexOf(e)&&(this.groupList.push(e),this.count=this.groupList.length)}},{key:"removeFromGroupList",value:function(e){var t=this.groupList.indexOf(e);t>-1&&(this.groupList.splice(t,1),this.count=this.groupList.length)}}]),e}(),wc=function(){function e(t){o(this,e),this._snsModule=t,this._n="FriendHandler",this._friendMap=new Map,this._startIndex=0,this._standardSequence=0,this._customSequence=0,this._expirationTime=18e4}return i(e,[{key:"getLocalFriendList",value:function(){return b(this._friendMap.values())}},{key:"getFriendRemark",value:function(e){return this._friendMap.has(e)?this._friendMap.get(e).remark:""}},{key:"onFriendProfileModified",value:function(e){var t=this,n=e.dataList;if(!en(n)){var r=this._snsModule.getModule(zn);n.forEach((function(e){var n=e.userID,o=e.profileList;if(t.isMyFriend(n)){Ge.l("".concat(t._n,".onFriendProfileModified. friend account:").concat(n,", profileList:").concat(JSON.stringify(o)));var a=t._friendMap.get(n);a.update(o),r.modifyMessageSentByPeer({conversationID:"".concat(T.CONV_C2C).concat(n),latestNick:a.profile.nick,latestAvatar:a.profile.avatar})}})),this._onFriendListUpdated()}}},{key:"onFriendAdded",value:function(e){var t=this;0!==e.length&&(Ge.l("".concat(this._n,".onFriendAdded userIDList:").concat(e)),e.forEach((function(e){t._friendMap.set(e,new Cc(e))})),this.getFriendProfile({userIDList:e}).then((function(n){e.forEach((function(e){var n=t._friendMap.get(e);n.groupList.length>0&&t._snsModule.updateWhenFriendAdded({nameList:n.groupList,userID:e})})),t._onFriendListUpdated()})))}},{key:"onFriendDeleted",value:function(e){var t=this;0!==e.length&&(Ge.l("".concat(this._n,".onFriendDeleted userIDList:").concat(e)),e.forEach((function(e){var n=t._friendMap.get(e);n.groupList.length>0&&t._snsModule.updateWhenFriendDeleted({nameList:n.groupList,userID:e}),t._friendMap.delete(e)})),this._onFriendListUpdated())}},{key:"_onFriendListUpdated",value:function(){this._snsModule.emitOuterEvent(S.FRIEND_LIST_UPDATED),this._snsModule.getModule(zn).checkAndPatchRemark()}},{key:"getFriendProfile",value:function(e){var t=this,n="".concat(this._n,".").concat("getFriendProfile"),r=e.userIDList,o=[],a=[],i=[];if(r.forEach((function(e){if(t._friendMap.has(e)){var n=t._friendMap.get(e);Date.now()-n.timestamp<t._expirationTime?a.push(n):i.push(e)}else o.push({userID:e,code:Aa.NOT_MY_FRIEND,message:t._snsModule.getErrorMessage(Aa.NOT_MY_FRIEND)})})),0===i.length)return Ge.i("".concat(n," newUserIDList is empty")),mi({friendList:a,failureUserIDList:o});var s=new Ka("getFriendProfile");return s.setMessage("userIDList:".concat(i)),Ge.i("".concat(n," userIDList:").concat(i)),this._snsModule.request({protocolName:Ir,requestData:{fromAccount:this._snsModule.getMyUserID(),userIDList:i}}).then((function(e){return s.setNetworkType(t._snsModule.getNetworkType()).end(),Ge.i("".concat(n," ok")),e.data.resultList.forEach((function(e){var n,r=e.to,i=e.resultCode,s=e.resultInfo,c=e.tagValueList;pt(i)||0===i?(t._friendMap.has(r)?(n=t._friendMap.get(r)).update(c):(n=new Cc(r,c),t._friendMap.set(r,n)),a.push(n)):o.push({userID:r,code:i,message:s})})),di({friendList:a,failureUserIDList:o})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"isMyFriend",value:function(e){return this._friendMap.has(e)}},{key:"pagingGetFriendList",value:function(){var e=this,t="".concat(this._n,".").concat("getFriendList"),n=new Ka("getFriendList"),r=Date.now();this._snsModule.request({protocolName:Tr,requestData:{fromAccount:this._snsModule.getMyUserID(),startIndex:this._startIndex,standardSequence:this._standardSequence,customSequence:this._customSequence}}).then((function(o){var a=o.data,i=a.friendCount,s=a.resultList,c=a.nextStartIndex,l=a.standardSequence,u=a.customSequence,d=a.completeFlag;e._startIndex=c,e._standardSequence=l,e._customSequence=u;var p=Date.now()-r,f="friendCount:".concat(i," nextStartIndex:").concat(c," standardSequence:").concat(l," ")+"customSequence:".concat(u," completeFlag:").concat(d," cost ").concat(p," ms");n.setNetworkType(e._snsModule.getNetworkType()).setMessage(f).end(),Ge.i("".concat(t," ok."),f),en(s)||s.forEach((function(t){var n=t.to,r=t.tagValueList;e._friendMap.set(n,new Cc(n,r))})),0===d?e.pagingGetFriendList():(e._snsModule.emitOuterEvent(S.FRIEND_LIST_UPDATED),e._pagingGetFriendProfile())})).catch((function(r){return e._snsModule.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Ge.w("".concat(t," failed. error:"),r),vi(r)}))}},{key:"_pagingGetFriendProfile",value:function(){var e=this,t=b(this._friendMap.keys()),n=this._snsModule.getModule(Vn),r=t.length,o=r<=100?1:Math.ceil(r/100);Ge.l("".concat(this._n,"._pagingGetFriendProfile friendCount:").concat(r," pageCount:").concat(o));for(var a=0;a<o;a++)n.getUserProfile({userIDList:t.slice(100*a,100*(a+1))}).then((function(t){t.data.forEach((function(t){var n=e._friendMap.get(t.userID);n&&n.updateProfile(t)})),e._onFriendListUpdated()}))}},{key:"addFriend",value:function(e){var t=this,n="".concat(this._n,".").concat("addFriend");if(this._friendMap.has(e.to))return vi({code:Aa.ALREADY_MY_FRIEND});if(e.wording&&!1===this._snsModule.filterProfanity("wording",e))return vi({code:Aa.PROFANITY_FOUND});var r=e.to,o=e.source,a=e.type,i=e.wording,s=e.remark,c=e.groupName,l=a;(!l||l!==T.SNS_ADD_TYPE_SINGLE&&l!==T.SNS_ADD_TYPE_BOTH)&&(l=T.SNS_ADD_TYPE_BOTH);var u=new Ka("addFriend");return u.setMessage("to:".concat(r," source:").concat(o," type:").concat(l)),this._snsModule.request({protocolName:Dr,requestData:{fromAccount:this._snsModule.getMyUserID(),addFriendItem:[{to:r,source:o,wording:i,remark:s,groupName:c}],type:l}}).then((function(e){var r=e.data.resultList;u.setNetworkType(t._snsModule.getNetworkType()).setMoreMessage("resultList:".concat(JSON.stringify(r))).end();var o=r[0],a=o.to,i=o.resultCode,s=o.resultInfo;return Ge.i("".concat(n," ok. to:").concat(a," type:").concat(l," code:").concat(i)),pt(i)||0===i?di({userID:a,code:0}):30539===i?di({userID:a,code:i,message:t._snsModule.getErrorMessage(i)}):vi({userID:a,code:i,message:t._snsModule.getErrorMessage(i)||s})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"deleteFriend",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteFriend"),r=e.userIDList,o=e.type;r.length>1e3&&(Ge.w("".concat(n," ").concat(Xt(1e3))),r.length=1e3);var a=[],i=[],s=[];if(r.forEach((function(e){t._friendMap.has(e)?s.push(e):a.push({userID:e,code:Aa.NOT_MY_FRIEND,message:t._snsModule.getErrorMessage(Aa.NOT_MY_FRIEND)})})),0===s.length)return mi({successUserIDList:i,failureUserIDList:a});var c=o;(!c||c!==T.SNS_DELETE_TYPE_SINGLE&&c!==T.SNS_DELETE_TYPE_BOTH)&&(c=T.SNS_DELETE_TYPE_BOTH);var l=new Ka("deleteFriend");return l.setMessage("userIDList:".concat(s," type:").concat(c)),this._snsModule.request({protocolName:jr,requestData:{fromAccount:this._snsModule.getMyUserID(),userIDList:s,type:c}}).then((function(e){l.setNetworkType(t._snsModule.getNetworkType()).end(),Ge.i("".concat(n," ok"));var r=e.data.resultList;return en(r)||r.forEach((function(e){var t=e.to,n=e.resultCode,r=e.resultInfo;pt(n)||0===n?i.push({userID:t}):a.push({userID:t,code:n,message:r})})),di({successUserIDList:i,failureUserIDList:a})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),Ge.w("".concat(n," error:"),e),vi(e)}))}},{key:"updateFriend",value:function(e){var t=this,n=e.userID,r=e.remark,o=e.friendCustomField;if(!this._friendMap.has(n))return vi({code:Aa.NOT_MY_FRIEND});var a="".concat(this._n,".").concat("updateFriend"),i=new Ka("updateFriend");i.setMessage("userID:".concat(n," remark:").concat(r," friendCustomField:").concat(o));var s=[];return pt(r)||s.push({tag:qe,value:r}),dt(o)&&o.length>0&&o.forEach((function(e){s.push({tag:e.key,value:e.value})})),this._snsModule.request({protocolName:Lr,requestData:{fromAccount:this._snsModule.getMyUserID(),updateItem:[{to:n,snsItem:s}]}}).then((function(e){i.setNetworkType(t._snsModule.getNetworkType()).end(),Ge.i("".concat(a," ok"));var n=e.data.resultList[0],s=n.to,c=n.resultCode,l=n.resultInfo;if(pt(c)||0===c){var u=t._friendMap.get(s);return u&&(pt(r)||(u.remark=r),dt(o)&&o.length>0&&It(u.friendCustomField,o),t._onFriendListUpdated()),di(u)}return vi({code:c,message:l})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ge.w("".concat(a," failed. error:"),e),vi(e)}))}},{key:"checkFriend",value:function(e){var t=this,n="".concat(this._n,".").concat("checkFriend"),r=e.userIDList,o=e.type;(!o||o!==T.SNS_CHECK_TYPE_SINGLE&&o!==T.SNS_CHECK_TYPE_BOTH)&&(o=T.SNS_CHECK_TYPE_BOTH);var a=new Ka("checkFriend");return a.setMessage("userIDList:".concat(r," type:").concat(o)),this._snsModule.request({protocolName:Er,requestData:{fromAccount:this._snsModule.getMyUserID(),userIDList:r,type:o}}).then((function(e){a.setNetworkType(t._snsModule.getNetworkType()).end(),Ge.i("".concat(n," ok. userIDList:").concat(r," type:").concat(o));var i=[],s=[],c=e.data.resultList;return dt(c)&&c.forEach((function(e){var t=e.to,n=e.relation,r=e.resultCode,o=e.resultInfo;pt(r)||0===r?i.push({userID:t,code:0,relation:n}):s.push({userID:t,code:r,message:o})})),di({successUserIDList:i,failureUserIDList:s})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"updateWhenAddedToFriendGroup",value:function(e){var t=this,n=e.name,r=e.userIDList;Ge.l("".concat(this._n,".updateWhenAddedToFriendGroup groupName:").concat(n," userIDList:").concat(r)),n&&!en(r)&&r.forEach((function(e){t._friendMap.has(e)&&t._friendMap.get(e).addToGroupList(n)}))}},{key:"updateWhenRemovedFromFriendGroup",value:function(e){var t=this,n=e.name,r=e.userIDList;Ge.l("".concat(this._n,".updateWhenRemovedFromFriendGroup groupName:").concat(n," userIDList:").concat(r)),n&&!en(r)&&r.forEach((function(e){t._friendMap.has(e)&&t._friendMap.get(e).removeFromGroupList(n)}))}},{key:"reset",value:function(){this._friendMap.clear(),this._startIndex=0,this._standardSequence=0,this._customSequence=0}}]),e}(),Sc=function(){function e(t){o(this,e),en(t)||(this.name=t.name||"",this.userIDList=t.userIDList||[],this.count=this.userIDList.length||0)}return i(e,[{key:"addToUserIDList",value:function(e){-1===this.userIDList.indexOf(e)&&(this.userIDList.push(e),this.count=this.userIDList.length)}},{key:"removeFromUserIDList",value:function(e){var t=this.userIDList.indexOf(e);t>-1&&(this.userIDList.splice(t,1),this.count=this.userIDList.length)}}]),e}(),Tc=function(){function e(t){o(this,e),this._snsModule=t,this._n="FriendGroupHandler",this._friendGroupMap=new Map}return i(e,[{key:"getLocalFriendGroupList",value:function(){return b(this._friendGroupMap.values())}},{key:"_emitFriendGroupListUpdated",value:function(){var e=b(this._friendGroupMap.values());this._snsModule.emitOuterEvent(S.FRIEND_GROUP_LIST_UPDATED,e)}},{key:"getFriendGroupList",value:function(){var e=this,t="".concat(this._n,".").concat("getFriendGroupList"),n=new Ka("getFriendGroupList");return this._snsModule.request({protocolName:Pr,requestData:{fromAccount:this._snsModule.getMyUserID()}}).then((function(r){n.setNetworkType(e._snsModule.getNetworkType()).end();var o=r.data.resultList;en(o)?Ge.i("".concat(t," ok. friend group count:0")):(Ge.i("".concat(t," ok. friend group count:").concat(o.length)),e._friendGroupMap.clear(),o.forEach((function(t){var n=new Sc(t);e._friendGroupMap.set(t.name,n)})),e._emitFriendGroupListUpdated())})).catch((function(r){return e._snsModule.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Ge.w("".concat(t," error:"),r),vi(r)}))}},{key:"createFriendGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("createFriendGroup"),r=e.name,o=e.userIDList;if(this._friendGroupMap.has(r))return vi({code:Aa.FRIEND_GROUP_EXISTED});var a=new Ka("createFriendGroup");return a.setMessage("name:".concat(r," userIDList:").concat(o)),this._snsModule.request({protocolName:Ur,requestData:{fromAccount:this._snsModule.getMyUserID(),groupName:[r],userIDList:dt(o)?o:void 0}}).then((function(e){a.setNetworkType(t._snsModule.getNetworkType()).end(),Ge.l("".concat(n," ok. name:").concat(r," userIDList:").concat(o));var i=e.data.resultList,s=[],c=[];i&&i.forEach((function(e){var t=e.to,n=e.resultCode,r=e.resultInfo;if(pt(n)||0===n)s.push(t);else{var o={userID:e.to,code:n,message:r};c.push(o)}}));var l=new Sc({name:r,userIDList:s});return t._friendGroupMap.set(r,l),t._snsModule.updateWhenAddedToFriendGroup({name:r,userIDList:s}),t._emitFriendGroupListUpdated(),di({friendGroup:l,failureUserIDList:c})})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"deleteFriendGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteFriendGroup"),r=e.name;if(!this._friendGroupMap.has(r))return vi({code:Aa.FRIEND_GROUP_NOT_EXIST});var o=new Ka("deleteFriendGroup");return o.setMessage("name:".concat(r)),this._snsModule.request({protocolName:Vr,requestData:{fromAccount:this._snsModule.getMyUserID(),nameList:[r]}}).then((function(e){o.setNetworkType(t._snsModule.getNetworkType()).end(),Ge.l("".concat(n," ok. name:").concat(r));var a=t._friendGroupMap.get(r);return a&&(t._snsModule.updateWhenRemovedFromFriendGroup({name:r,userIDList:a.userIDList}),t._friendGroupMap.delete(r),a.userIDList.length=0),t._emitFriendGroupListUpdated(),di(a)})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],a=n[1];o.setError(e,r,a).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"renameFriendGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("renameFriendGroup"),r=e.oldName,o=e.newName;if(!this._friendGroupMap.has(r))return vi({code:Aa.FRIEND_GROUP_NOT_EXIST});var a=new Ka("renameFriendGroup");return a.setMessage("oldName:".concat(r," newName:").concat(o)),this._snsModule.request({protocolName:Br,requestData:{fromAccount:this._snsModule.getMyUserID(),oldName:r,newName:o}}).then((function(){if(a.setNetworkType(t._snsModule.getNetworkType()).end(),Ge.l("".concat(n," ok. oldName:").concat(r," newName:").concat(o)),t._friendGroupMap.has(r)){var e=t._friendGroupMap.get(r);return e.name=o,t._friendGroupMap.delete(r),t._friendGroupMap.set(o,e),t._snsModule.updateWhenRemovedFromFriendGroup({name:r,userIDList:e.userIDList}),t._snsModule.updateWhenAddedToFriendGroup({name:o,userIDList:e.userIDList}),t._emitFriendGroupListUpdated(),di(e)}return di()})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"addToFriendGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("addToFriendGroup"),r=e.name,o=e.userIDList;if(!this._friendGroupMap.has(r))return this._onFriendGroupNotExist(r);var a=new Ka("addToFriendGroup");return a.setMessage("name:".concat(r," userIDList:").concat(o)),Ge.l("".concat(n," name:").concat(r," userIDList:").concat(o)),this._snsModule.request({protocolName:Br,requestData:{fromAccount:this._snsModule.getMyUserID(),oldName:r,updateGroupItem:o.filter((function(e){return t._snsModule.isMyFriend(e)})).map((function(e){return{to:e,updateType:"Update_Type_Add"}}))}}).then((function(e){return a.setNetworkType(t._snsModule.getNetworkType()).end(),t._onFriendGroupUpdated(r,e)})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"removeFromFriendGroup",value:function(e){var t=this,n="".concat(this._n,".").concat("removeFromFriendGroup"),r=e.name,o=e.userIDList;if(!this._friendGroupMap.has(r))return this._onFriendGroupNotExist(r);var a=new Ka("removeFromFriendGroup");return a.setMessage("name:".concat(r," userIDList:").concat(o)),Ge.l("".concat(n," name:").concat(r," userIDList:").concat(o)),this._snsModule.request({protocolName:Br,requestData:{fromAccount:this._snsModule.getMyUserID(),oldName:r,updateGroupItem:o.filter((function(e){return t._snsModule.isMyFriend(e)})).map((function(e){return{to:e,updateType:"Update_Type_Delete"}}))}}).then((function(e){return a.setNetworkType(t._snsModule.getNetworkType()).end(),t._onFriendGroupUpdated(r,e)})).catch((function(e){return t._snsModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ge.w("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_onFriendGroupUpdated",value:function(e,t){var n=t.data.resultList,r=this._friendGroupMap.get(e),o=[],a=[],i=[];return dt(n)&&n.forEach((function(e){var t=e.to,n=e.resultCode,s=e.resultInfo,c=e.type;0===n?"Update_Type_Add"===c?r&&(r.addToUserIDList(t),a.push(t)):"Update_Type_Delete"===c&&r&&(r.removeFromUserIDList(t),i.push(t)):o.push({to:e.to,code:n,message:s})})),Ge.l("".concat(this._n,"._onFriendGroupUpdated name:").concat(e," userIDList:").concat(r.userIDList)),a.length>0&&this._snsModule.updateWhenAddedToFriendGroup({name:e,userIDList:a}),i.length>0&&this._snsModule.updateWhenRemovedFromFriendGroup({name:e,userIDList:i}),di({friendGroup:r,failureUserIDList:o})}},{key:"updateWhenFriendAdded",value:function(e){var t=this,n=e.nameList,r=e.userID;Ge.l("".concat(this._n,".updateWhenFriendAdded userID:").concat(r," nameList:").concat(n)),en(n)||n.forEach((function(e){t._friendGroupMap.has(e)&&t._friendGroupMap.get(e).addToUserIDList(r)}))}},{key:"updateWhenFriendDeleted",value:function(e){var t=this,n=e.nameList,r=e.userID;Ge.l("".concat(this._n,".updateWhenFriendDeleted userID:").concat(r," nameList:").concat(n)),en(n)||n.forEach((function(e){t._friendGroupMap.has(e)&&t._friendGroupMap.get(e).removeFromUserIDList(r)}))}},{key:"reset",value:function(){this._friendGroupMap.clear()}}]),e}(),Ic=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="SnsModule",r._friendHandler=new wc(m(r)),r._friendApplicationHandler=new kc(m(r)),r._friendGroupHandler=new Tc(m(r)),r.getInnerEmitterInstance().on(bi,r.onContextUpdated,m(r)),r}return i(n,[{key:"onContextUpdated",value:function(e){this._friendHandler.pagingGetFriendList(),this._friendGroupHandler.getFriendGroupList(),this._friendApplicationHandler.getFriendApplicationList()}},{key:"onRelationChainModified",value:function(e){var t=this,n=e.dataList;if(!en(n)){var r=[],o=[],a=[],i=[],s=!1,c="";n.forEach((function(e){if(3!==e.pushType&&4!==e.pushType||!e.from||(c=e.from),e.friendAddAccount&&(r.push.apply(r,b(e.friendAddAccount)),i.push.apply(i,b(e.friendAddAccount))),e.friendDelAccount&&o.push.apply(o,b(e.friendDelAccount)),e.friendApplicationAdded&&a.push.apply(a,b(e.friendApplicationAdded)),e.friendApplicationDeletedUserIDList&&i.push.apply(i,b(e.friendApplicationDeletedUserIDList)),e.reportTime&&7===e.pushType&&(s=!0),e.friendUpInfo){var n={dataList:[]};e.friendUpInfo.forEach((function(e){n.dataList.push({userID:e.friendAccount,profileList:b(e.sns)})})),t.onFriendProfileModified(n)}})),s&&this._friendApplicationHandler.onFriendApplicationRead(),this._friendApplicationHandler.onFriendApplicationAdded(a,c),this._friendApplicationHandler.onFriendApplicationDeleted(i),this._friendHandler.onFriendAdded(r),this._friendHandler.onFriendDeleted(o)}}},{key:"isMyFriend",value:function(e){return this._friendHandler.isMyFriend(e)}},{key:"filterProfanity",value:function(e,t){var n=this.getModule(lr);if(!n)return!0;var r=n.filterText(t[e],$),o=r.isAllowedToSend,a=r.modifiedText;return!0===o&&(t[e]=a,!0)}},{key:"onFriendProfileModified",value:function(e){this._friendHandler.onFriendProfileModified(e)}},{key:"getLocalFriendList",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this._friendHandler.getLocalFriendList();return e?mi(t):t}},{key:"getFriendRemark",value:function(e){return this._friendHandler.getFriendRemark(e)}},{key:"getFriendList",value:function(){return this._friendHandler.pagingGetFriendList()}},{key:"addFriend",value:function(e){return this._friendHandler.addFriend(e)}},{key:"deleteFriend",value:function(e){return this._friendHandler.deleteFriend(e)}},{key:"checkFriend",value:function(e){return this._friendHandler.checkFriend(e)}},{key:"getFriendProfile",value:function(e){return this._friendHandler.getFriendProfile(e)}},{key:"updateFriend",value:function(e){return this._friendHandler.updateFriend(e)}},{key:"updateWhenAddedToFriendGroup",value:function(e){this._friendHandler.updateWhenAddedToFriendGroup(e)}},{key:"updateWhenRemovedFromFriendGroup",value:function(e){this._friendHandler.updateWhenRemovedFromFriendGroup(e)}},{key:"getLocalFriendApplicationList",value:function(){var e=this._friendApplicationHandler.getLocalFriendApplicationList();return mi(e)}},{key:"deleteFriendApplication",value:function(e){return this._friendApplicationHandler.deleteFriendApplication(e)}},{key:"refuseFriendApplication",value:function(e){return this._friendApplicationHandler.refuseFriendApplication(e)}},{key:"acceptFriendApplication",value:function(e){return this._friendApplicationHandler.acceptFriendApplication(e)}},{key:"setFriendApplicationRead",value:function(e){return this._friendApplicationHandler.setFriendApplicationRead(e)}},{key:"getLocalFriendGroupList",value:function(){var e=this._friendGroupHandler.getLocalFriendGroupList();return mi(e)}},{key:"createFriendGroup",value:function(e){return this._friendGroupHandler.createFriendGroup(e)}},{key:"deleteFriendGroup",value:function(e){return this._friendGroupHandler.deleteFriendGroup(e)}},{key:"addToFriendGroup",value:function(e){return this._friendGroupHandler.addToFriendGroup(e)}},{key:"removeFromFriendGroup",value:function(e){return this._friendGroupHandler.removeFromFriendGroup(e)}},{key:"renameFriendGroup",value:function(e){return this._friendGroupHandler.renameFriendGroup(e)}},{key:"onAddToFriendGroup",value:function(e){return this._friendGroupHandler.onAddToFriendGroup(e)}},{key:"updateWhenFriendAdded",value:function(e){this._friendGroupHandler.updateWhenFriendAdded(e)}},{key:"updateWhenFriendDeleted",value:function(e){this._friendGroupHandler.updateWhenFriendDeleted(e)}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._friendHandler.reset(),this._friendGroupHandler.reset(),this._friendApplicationHandler.reset()}}]),n}(fr),Ec=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="WorkerTimerModule",r._isWorkerEnabled=!0,r._workerTimer=null,r._timerID=-1,r._init(),r.getInnerEmitterInstance().on(yi,r._onCloudConfigUpdated,m(r)),r}return i(n,[{key:"isWorkerEnabled",value:function(){return this._isWorkerEnabled&&Ie}},{key:"startWorkerTimer",value:function(){Ge.l("".concat(this._n,".startWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("start")}},{key:"stopWorkerTimer",value:function(){Ge.l("".concat(this._n,".stopWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("stop")}},{key:"_init",value:function(){if(Ie){var e=URL.createObjectURL(new Blob(['let interval = -1;onmessage = function(event) { if (event.data === "start") { if (interval > 0) { clearInterval(interval); } interval = setInterval(() => { postMessage(""); }, 1000); postMessage(interval); } else if (event.data === "stop") { clearInterval(interval); interval = -1; }};'],{type:"application/javascript; charset=utf-8"}));this._workerTimer=new Worker(e);var t=this;this._workerTimer.onmessage=function(e){e.data?(t._timerID=e.data,Ge.l("".concat(t._n,"._init seed:").concat(t._timerID))):t._m.onCheckTimer()}}}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("enable_worker");Ge.l("".concat(this._n,"._onCloudConfigUpdated enableWorker:").concat(e)),pt(e)||"1"===e?!this._isWorkerEnabled&&Ie&&(this._isWorkerEnabled=!0,this.startWorkerTimer(),this._m.onWorkerTimerEnabled()):this._isWorkerEnabled&&Ie&&(this._isWorkerEnabled=!1,this.stopWorkerTimer(),this._m.onWorkerTimerDisabled())}},{key:"terminate",value:function(){Ge.l("".concat(this._n,".terminate")),this._workerTimer&&(this._workerTimer.terminate(),this._workerTimer=null,this._timerID=-1)}},{key:"getTimerID",value:function(){return this._timerID}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset"))}}]),n}(fr),jc=function(){function e(){o(this,e),this._n="PurchasedFeatureHandler",this._purchasedFeatureMap=new Map}return i(e,[{key:"isValidPurchaseBits",value:function(e){return e&&"string"==typeof e&&e.length>=1&&e.length<=64&&/[01]{1,64}/.test(e)}},{key:"parsePurchaseBits",value:function(e){var t="".concat(this._n,".parsePurchaseBits");if(this.isValidPurchaseBits(e)){this._purchasedFeatureMap.clear();for(var n=null,r=e.length-1,o=0;r>=0;r--,o++)n=o<32?new E(0,Math.pow(2,o)).toString():new E(Math.pow(2,o-32),0).toString(),"1"===e[r]?this._purchasedFeatureMap.set(n,!0):this._purchasedFeatureMap.set(n,!1)}else Ge.w("".concat(t," invalid purchase bits:").concat(e))}},{key:"hasPurchasedFeature",value:function(e){return!!this._purchasedFeatureMap.get(e)}},{key:"isFeatureEnabled",value:function(e){for(var t=parseInt(e).toString(2),n=void 0,r=!0,o=t.length-1,a=0;o>=0;o--,a++)if("1"===t.charAt(o)&&(n=a<32?new E(0,Math.pow(2,a)).toString():new E(Math.pow(2,a-32),0).toString(),!this._purchasedFeatureMap.get(n))){r=!1;break}return Ge.l("".concat(this._n,".isFeatureEnabled decimalNumber:").concat(e," binaryString:").concat(t," ret:").concat(r)),mi({enabled:r})}},{key:"clear",value:function(){this._purchasedFeatureMap.clear()}}]),e}(),Dc=function(){function e(t){o(this,e),this._m=t,this._n="CommercialConfigModule",this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler=new jc}return i(e,[{key:"_canFetch",value:function(){return this._getModule(qn).isLoggedIn()?!this._isFetching&&Date.now()>=this._expiredTime:(this._expiredTime=Date.now()+2e3,!1)}},{key:"onCheckTimer",value:function(e){this._canFetch()&&this.fetchConfig()}},{key:"fetchConfig",value:function(){var e=this,t=this._canFetch(),n="".concat(this._n,".fetchConfig");if(Ge.l("".concat(n," canFetch:").concat(t)),t){var r=this._getModule($n),o=new Ka("fetchCommercialConfig");o.setNetworkType(r.getNetworkType());var a=this._getModule(qn).getSDKAppID(),i=this._getModule(er);this._isFetching=!0,i.request({protocolName:ga,requestData:{SDKAppID:a}}).then((function(t){o.setMessage("purchaseBits:".concat(t.data.purchaseBits)).end(),Ge.l("".concat(n," ok.")),e._parseConfig(t.data),e._isFetching=!1})).catch((function(t){r.probe().then((function(e){var n=_(e,2),r=n[0],a=n[1];o.setError(t,r,a).end()})),e._isFetching=!1}))}}},{key:"onPushedConfig",value:function(e){var t="".concat(this._n,".onPushedConfig");Ge.l("".concat(t)),new Ka("pushedCommercialConfig").setNetworkType(this._getModule($n).getNetworkType()).setMessage("purchaseBits:".concat(e.purchaseBits)).end(),this._parseConfig(e)}},{key:"_parseConfig",value:function(e){var t="".concat(this._n,"._parseConfig"),n=e.errorCode,r=e.errorMessage,o=e.purchaseBits,a=e.expiredTime;0===n?(this._purchasedFeatureHandler.parsePurchaseBits(o),this._expiredTime=Date.now()+1e3*a):pt(n)?(Ge.l("".concat(t," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(Ge.e("".concat(t," errorCode:").concat(n," errorMessage:").concat(r)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"canIUse",value:function(e){return this._purchasedFeatureHandler.hasPurchasedFeature(e)}},{key:"isFeatureEnabled",value:function(e){return this._purchasedFeatureHandler.isFeatureEnabled(e)}},{key:"_getModule",value:function(e){return this._m.getModule(e)}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler.clear()}}]),e}(),Lc=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._m=e,r._n="OfflinePushModule",r._offlinePushPlugin=void 0,r._androidPushConfig={huaweiPushBussinessId:"",xiaomiPushBussinessId:"",xiaomiPushAppId:"",xiaomiPushAppKey:"",meizuPushBussinessId:"",meizuPushAppId:"",meizuPushAppKey:"",vivoPushBussinessId:"",fcmPushBussinessId:"",oppoPushBussinessId:"",oppoPushAppKey:"",oppoPushAppSecret:"",honorPushBussinessId:""},r._deviceToken="",r._businessID=0,r._iosBusinessID=0,r._c2cUnreadCount=0,r._groupUnreadCount=0,r._isWebUniapp=0,r}return i(n,[{key:"registerPlugin",value:function(e){if(oe){this._offlinePushPlugin=e["tim-offline-push-plugin"];var t=e.offlinePushConfig||{},n=t.huaweiBusinessID,r=t.xiaomiBusinessID,o=t.xiaomiAppID,a=t.xiaomiAppKey,i=t.meizuBusinessID,s=t.meizuAppID,c=t.meizuAppKey,l=t.vivoBusinessID,u=t.oppoBusinessID,d=t.oppoAppKey,p=t.oppoAppSecret,f=t.honorBusinessID,h=t.iosBusinessID;this._androidPushConfig.huaweiPushBussinessId=n,this._androidPushConfig.xiaomiPushBussinessId=r,this._androidPushConfig.xiaomiPushAppId=o,this._androidPushConfig.xiaomiPushAppKey=a,this._androidPushConfig.meizuPushBussinessId=i,this._androidPushConfig.meizuPushAppId=s,this._androidPushConfig.meizuPushAppKey=c,this._androidPushConfig.vivoPushBussinessId=l,this._androidPushConfig.oppoPushBussinessId=u,this._androidPushConfig.oppoPushAppKey=d,this._androidPushConfig.oppoPushAppSecret=p,this._androidPushConfig.honorPushBussinessId=f,new Ka("registerPlugin").setMessage("tim-offline-push-plugin").setMoreMessage("isExist:".concat(!pt(this._offlinePushPlugin))).end(!0),Ge.l("".concat(this._n,".").concat("registerPlugin"," ok. offlinePushConfig:").concat(JSON.stringify(e.offlinePushConfig))),this._iosBusinessID=h,this._setAppShowListener()}else this.outputWarning("OfflinePushInUniapp")}},{key:"init",value:function(){this._isWebUniapp=this.getUniAppPlatform(),this._getDeviceToken()}},{key:"_getDeviceToken",value:function(){var e=this,t="".concat(this._n,".").concat("_getDeviceToken");if(ht(this._offlinePushPlugin.getDeviceToken)){var n="androidPushConfig:".concat(JSON.stringify(this._androidPushConfig),", iosBusinessID:").concat(this._iosBusinessID);Ge.l("".concat(t," start. ").concat(n)),new Ka("_getDeviceToken").setMessage("".concat(n)).end(!0),this._offlinePushPlugin.getDeviceToken(this._androidPushConfig,(function(r){var o=new Ka("getDeviceTokenRes"),a=r.code,i=r.msg;if(0===a){var s=r.data,c=s.deviceToken,l=s.deviceBrand,u=s.deviceType,d=s.bussinessId;e._deviceToken=c,e._businessID=d||e._iosBusinessID,n="deviceToken:".concat(c,", deviceBrand:").concat(l||u,", businessID:").concat(e._businessID),Ge.l("".concat(t," ok. ").concat(n)),o.setMessage(n).end(!0),e._setToken()}else o.setMessage("code:".concat(a,", msg:").concat(i)).end(!0),Ge.e("".concat(t," failed. error:"),r)}))}else Ge.e("".concat(t," getDeviceToken is not a function"))}},{key:"canIUseOfflinePush",value:function(){return oe&&!pt(this._offlinePushPlugin)}},{key:"_setAppShowListener",value:function(){var e=this,t="".concat(this._n,".").concat("_setAppShowListener");pt(this._offlinePushPlugin)?Ge.e("".concat(t," offlinePushPlugin is undefined")):ht(this._offlinePushPlugin.setAppShowListener)?(new Ka("_setAppShowListener").end(!0),Ge.l("".concat(t," start")),this._offlinePushPlugin.setAppShowListener((function(n){var r=(n||{}).appShow;new Ka("setAppShowListenerRes").setMessage("appShow:".concat(r)).end(!0),Ge.l("".concat(t," ok. appShow:").concat(r)),e._m.isReady()&&(0===r?(e._getConvUnreadCount(),e._onBackground()):1===r&&e._onForeground())}))):Ge.e("".concat(t," setAppShowListener is not a function"))}},{key:"getDeviceBrand",value:function(){if(!pt(this._offlinePushPlugin)&&ht(this._offlinePushPlugin.getDeviceType)){var e=(this._offlinePushPlugin.getDeviceType()||{}).deviceType;return Ge.l("".concat(this._n,".getDeviceBrand ok. deviceType:").concat(e)),e}}},{key:"_setToken",value:function(){var e,t=this,n="".concat(this._n,"._setToken"),r=this.getModule(qn),o=1,a="",i="";en(this._deviceToken)&&(o=0);var s=this.getUniAppPlatform(),c=this.getDeviceBrand();s===D.IOS||s===D.IPAD||s===D.MAC?i=this._deviceToken:s===D.ANDROID&&(a=this._deviceToken);var l=new Ka("offlinePushSetToken");return e="deviceToken:".concat(i||a,", businessID:").concat(this._businessID,", ")+"deviceBrand:".concat(c,", isWebUniapp:").concat(this._isWebUniapp,", pushMsg:").concat(o,", platform:").concat(s),l.setMessage("".concat(e)),Ge.l("".concat(n," ").concat(e)),this.request({protocolName:ja,requestData:{tokenID:a,pushMsg:o,sdkAppID:r.getSDKAppID(),businessID:parseInt(this._businessID),deviceBrand:c,deviceToken:i,isWebUniapp:this._isWebUniapp}}).then((function(e){return l.end(),Ge.l("".concat(n," ok")),e})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),Ge.e("".concat(n," failed. error:"),e),vi(e)}))}},{key:"_getConvUnreadCount",value:function(){var e=this;this._c2cUnreadCount=0,this._groupUnreadCount=0,this.getModule(zn).getLocalConversationList().forEach((function(t){t.type===T.CONV_C2C&&(e._c2cUnreadCount+=t.unreadCount),t.type===T.CONV_GROUP&&(e._groupUnreadCount+=t.unreadCount)}))}},{key:"_onBackground",value:function(){var e=this,t="".concat(this._n,".").concat("_onBackground"),n=new Ka("_onBackground");this.request({protocolName:Ia,requestData:{c2cUnreadCount:this._c2cUnreadCount,groupUnreadCount:this._groupUnreadCount,isWebUniapp:this._isWebUniapp}}).then((function(r){return n.setMessage("c2cUnreadCount: ".concat(e._c2cUnreadCount,", groupUnreadCount: ").concat(e._groupUnreadCount)).end(),Ge.l("".concat(t," ok")),r})).catch((function(r){e.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Ge.e("".concat(t," failed. error:"),r)}))}},{key:"_onForeground",value:function(){var e=this,t="".concat(this._n,".").concat("_onForeground"),n=new Ka("_onForeground");this.request({protocolName:Ea,requestData:{isWebUniapp:this._isWebUniapp}}).then((function(e){return n.end(),Ge.l("".concat(t," ok")),e})).catch((function(r){e.probeNetwork().then((function(e){var t=_(e,2),o=t[0],a=t[1];n.setError(r,o,a).end()})),Ge.e("".concat(t," failed. error:"),r)}))}},{key:"getUniAppPlatform",value:function(){var e=uni.getSystemInfoSync().platform,t=this.getDeviceBrand();return"ios"===e?D.IOS:"android"===e?D.ANDROID:1002===t?D.IPAD:1001===t?D.MAC:void 0}},{key:"reset",value:function(){this._deviceToken="",this._businessID=0,this._c2cUnreadCount=0,this._groupUnreadCount=0,this._isWebUniapp=0,Ge.l("".concat(this._n,".reset"))}}]),n}(fr),Ac=function(e){c(n,e);var t=g(n);function n(e){var r;return o(this,n),(r=t.call(this,e))._n="ProfanityFilterModule",r._plugin=null,r._filterConfigMap=new Map,r._startIndex=0,r._version=0,r._canIUseLexicon=!1,r._isFetching=!1,r._expiredTime=0,r}return i(n,[{key:"init",value:function(){var e=this.getModule(Qn).getPlugin("tim-profanity-filter-plugin");e?(this._plugin=new e({logger:Ge,isArray:dt,isMap:at,isDevMode:this.isDevMode()}),this._getLexicon()):this.outputWarning("ProfanityPluginNotFound")}},{key:"onCheckTimer",value:function(){this._plugin&&this._canIUseLexicon&&this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime&&this._getLexicon()}},{key:"filterMessage",value:function(e,t){var n=!0;if(!this._plugin||!this._canIUseLexicon)return n;if(t&&t.messageControlInfo&&!0===t.messageControlInfo.excludedFromContentModeration)return n;var r=e.type,o=e.conversationType;if(r!==T.MSG_TEXT&&r!==T.MSG_CUSTOM)return n;var a,i="".concat(this._n,".filterMessage");if(Ge.l("".concat(i)),r===T.MSG_TEXT){if(o===T.CONV_C2C?a=Y:o===T.CONV_GROUP&&(a=q),!this._isConfigOn(a))return n;var s=this._plugin.filter(e.payload.text),c=s.type,l=s.modifiedText;1===c?n=!1:2===c&&(e.payload.text=l)}else if(r===T.MSG_CUSTOM){if(o===T.CONV_C2C?a=z:o===T.CONV_GROUP&&(a=W),!this._isConfigOn(a))return n;var u=this._plugin.filter(e.payload.data),d=this._plugin.filter(e.payload.description),p=this._plugin.filter(e.payload.extension);1===u.type||1===d.type||1===p.type?n=!1:(2===u.type&&(e.payload.data=u.modifiedText),2===d.type&&(e.payload.description=d.modifiedText),2===p.type&&(e.payload.extension=p.modifiedText))}return Ge.l("".concat(i," done. isAllowedToSend:").concat(n)),n}},{key:"filterText",value:function(e,t){var n="".concat(this._n,".filterText"),r={isAllowedToSend:!0,modifiedText:e};if(!this._plugin||!this._canIUseLexicon)return r;if(!this._isConfigOn(t))return r;Ge.l("".concat(n));var o=this._plugin.filter(e),a=o.type,i=o.modifiedText;return 1===a?r.isAllowedToSend=!1:2===a&&(r.modifiedText=i),Ge.l("".concat(n," done. ret:"),r),r}},{key:"_getLexicon",value:function(){var e=this,t=new Ka("profanityFilter"),n="".concat(this._n,"._getLexicon");this._isFetching=!0,this.request({protocolName:Da,requestData:{startIndex:this._startIndex,version:this._version}}).then((function(r){var o=r.data,a=o.errorInfo,i=o.filterConfig,s=o.lexicon,c=o.strToken,l=o.completeFlag,u=o.nextStartIndex,d=o.version,p=o.expiredTime,f=a.errorCode,h=a.errorMessage;return 0!==f?(e._isFetching=!1,Ge.w("".concat(n," failed. error:"),a),void t.setCode(f).setMessage(h).end()):(e._onFilterConfig(i),e._getToken(c),1===l?(Ge.l("".concat(n," done. version:").concat(d," expiredTime:").concat(p)),e._version=d,e._canIUseLexicon=!0,e._isFetching=!1,e._expiredTime=Date.now()+1e3*p,void e._plugin.onLexiconCompleted(s)):(e._startIndex=u,e._plugin.onLexiconSliced(s),void e._getLexicon()))})).catch((function(r){e.probeNetwork().then((function(e){var n=_(e,2),o=n[0],a=n[1];t.setError(r,o,a).end()})),e._isFetching=!1,Ge.l("".concat(n," failed. error:"),r)}))}},{key:"_onFilterConfig",value:function(e){var t=this;en(e)||(this._filterConfigMap.clear(),Object.keys(e).forEach((function(n){t._filterConfigMap.set(n,e[n])})),Ge.l("".concat(this._n,"._onFilterConfig. keys:").concat(Array.from(this._filterConfigMap.keys())," values:").concat(Array.from(this._filterConfigMap.values()))))}},{key:"_isConfigOn",value:function(e){return 1===this._filterConfigMap.get(e)}},{key:"_getToken",value:function(e){if(ct(e)){var t=e.length,n="";if(t%2==0)for(var r=0;r<=t-1;r+=2)n+=e[r+1],n+=e[r];else{for(var o=0;o<t-1;o+=2)n+=e[o+1],n+=e[o];n+=e[t-1]}this._plugin.onToken(n)}}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),this._plugin&&(this._plugin.reset(),this._plugin=null),this._filterConfigMap.clear(),this._startIndex=0,this._version=0,this._canIUseLexicon=!1,this._isFetching=!1,this._expiredTime=0}}]),n}(fr),Nc=function(){function e(t){o(this,e),this._m=t,this._n="TransCmdModule"}return i(e,[{key:"sendTRTCCustomData",value:function(e){return this._trans(n({serv:G.NAME.TUIROOM_SVR},e))}},{key:"_trans",value:function(e){Ge.d("".concat(this._n,"._trans. options:").concat(JSON.stringify(e)));var t=e.serv,n=e.data;return this._m.getModule(er).trans({servcmd:"".concat(t,".*"),data:ct(n)?JSON.parse(n):n})}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset"))}}]),e}(),Rc=function(){function e(t){o(this,e),this._m=t,this._n="ErrorMessageModule",this.TIM_ERROR_ASSISTANCE="tim_error_assistance",this.STORAGE_EXPIRES_TIME=6048e5,this._map=new Map,this._init()}return i(e,[{key:"_init",value:function(){var e=this._getStorageModule().getItem(this.TIM_ERROR_ASSISTANCE,!1);if(e){var t=JSON.parse(e);this._needToUpdate(t)?this._fetch():this._fillMap(t.message)}else this._fetch()}},{key:"_needToUpdate",value:function(e){var t=e.localSavedTime,n=e.localSavedVersion,r=t&&(new Date).getTime()-t>=this.STORAGE_EXPIRES_TIME,o=!n||"2.27.1"!==n;return Ge.l("".concat(this._n,"._needToUpdate isTimeout:").concat(r," isDifferentVersion:").concat(o)),r||o}},{key:"_fetch",value:function(){if(!this._m.getModule(qn).isPrivateNetWork()){var e="https://web.sdk.qcloud.com/im/download/error-message/0.0.1/tim-error-message.txt",t="application/x-www-form-urlencoded;charset=UTF-8",n="".concat(this._n,"._fetch ok in"),r=this;if(ie)ce.request({url:e,method:"GET",timeout:3e3,header:{"content-type":t},dataType:"text",success:function(e){r._fillAndSave(e.data),Ge.l("".concat(n," mini program"))},fail:function(){}});else{var o=new XMLHttpRequest,a=setTimeout((function(){o.abort()}),3e3);o.onreadystatechange=function(){4===o.readyState&&(clearTimeout(a),200!==o.status&&304!==o.status||(Ge.l("".concat(n," browser")),r._fillAndSave(o.responseText)))},o.open("GET",e,!0),o.setRequestHeader("Content-type",t),o.send()}}}},{key:"_fillAndSave",value:function(e){this._fillMap(e),this._getStorageModule().setItem(this.TIM_ERROR_ASSISTANCE,JSON.stringify({message:e,localSavedTime:(new Date).getTime(),localSavedVersion:"2.27.1"}),!0,!1)}},{key:"_getStorageModule",value:function(){return this._m.getModule(Wn)}},{key:"_fillMap",value:function(e){this._map.clear();for(var t,n,r,o=e.split(";\n"),a=o.length,i=new RegExp(/'/g),s=0;s<a;s++)if(t=o[s].indexOf(":"),n=o[s].slice(0,t),r=o[s].slice(t+1,o[s].length),!n.startsWith("//")){if(pt(r))continue;this._map.set(n,r.replace(i,""))}}},{key:"get",value:function(e){var t=e.isIntl,n=e.key,r=e.replacement1,o=e.replacement2,a="".concat(n,t?"_en":"_cn");!this._map.has(a)&&this._map.has(n)&&(a=n);var i="";return this._map.has(a)?(i=this._map.get(a),pt(r)||(i=i.replace("$replacement1",r)),pt(o)||(i=i.replace("$replacement2",o)),i):i}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset"))}}]),e}(),xc=function(){function e(t){o(this,e);var n=new Ka("sdkConstruct");this._n="ModuleManager",this._isReady=!1,this._reason=Aa.USER_NOT_LOGGED_IN,this._startLoginTs=0,this._moduleMap=new Map,this._innerEmitter=null,this._outerEmitter=null,this._checkCount=0,this._checkTimer=-1,this._moduleMap.set(qn,new gs(this,t)),this._moduleMap.set(sr,new Dc(this)),this._moduleMap.set(rr,new mc(this)),this._moduleMap.set(or,new Ec(this)),this._moduleMap.set(ir,new Oc(this)),this._moduleMap.set(tr,new ic(this)),this._moduleMap.set(er,new fc(this)),this._moduleMap.set(xn,new _s(this)),this._moduleMap.set(Pn,new Ps(this)),this._moduleMap.set(Un,new Us(this)),this._moduleMap.set(dr,new Vs(this)),this._moduleMap.set(Vn,new vs(this)),this._moduleMap.set(Bn,new gi(this)),this._moduleMap.set(zn,new Ui(this)),this._moduleMap.set(Fn,new os(this)),this._moduleMap.set(Hn,new is(this)),this._moduleMap.set(Yn,new us(this)),this._moduleMap.set(Wn,new ys(this)),this._moduleMap.set(pr,new Rc(this)),this._moduleMap.set(Kn,new ks(this)),this._moduleMap.set($n,new Ts(this)),this._moduleMap.set(Jn,new Es(this)),this._moduleMap.set(Xn,new Ds(this)),this._moduleMap.set(Qn,new Bs(this)),this._moduleMap.set(Zn,new Fs(this)),this._moduleMap.set(nr,new hc(this)),this._moduleMap.set(ar,new vc(this)),this._moduleMap.set(Gn,new Ic(this)),this._moduleMap.set(cr,new Lc(this)),this._moduleMap.set(lr,new Ac(this)),this._moduleMap.set(ur,new Nc(this)),this._eventThrottleMap=new Map;var r=t.instanceID,a=t.oversea,i=t.SDKAppID,s="instanceID:".concat(r," SDKAppID:").concat(i," host:").concat(Ut()," oversea:").concat(a," inBrowser:").concat(se," inMiniApp:").concat(ie)+" workerAvailable:".concat(Ie," UserAgent:").concat(le);Ka.bindEventStatModule(this._moduleMap.get(Kn)),n.setMessage("".concat(s," ").concat(function(){var e="";if(ie)try{var t=ce.getSystemInfoSync(),n=t.model,r=t.version,o=t.system,a=t.platform,i=t.SDKVersion;e="model:".concat(n," version:").concat(r," system:").concat(o," platform:").concat(a," SDKVersion:").concat(i)}catch(s){e=""}return e}())).end(),Ge.i("SDK ".concat(s)),pi.prototype._getErrorMessage=this.getErrorMessage.bind(this),this._readyList=void 0,this._ssoLogForReady=null,this._initReadyList()}return i(e,[{key:"_startTimer",value:function(){var e=this._moduleMap.get(or),t=e.isWorkerEnabled();Ge.l("".concat(this._n,".startTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.startWorkerTimer():this._startMainThreadTimer()}},{key:"_startMainThreadTimer",value:function(){this._checkTimer<0&&(this._checkTimer=setInterval(this.onCheckTimer.bind(this),1e3)),Ge.l("".concat(this._n,"._startMainThreadTimer seed:").concat(this._checkTimer))}},{key:"stopTimer",value:function(){var e=this._moduleMap.get(or),t=e.isWorkerEnabled();Ge.l("".concat(this._n,".stopTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.stopWorkerTimer():this._stopMainThreadTimer()}},{key:"_stopMainThreadTimer",value:function(){Ge.l("".concat(this._n,"._stopMainThreadTimer")),this._checkTimer>0&&(clearInterval(this._checkTimer),this._checkTimer=-1,this._checkCount=0)}},{key:"_stopMainThreadSocket",value:function(){Ge.l("".concat(this._n,"._stopMainThreadSocket"));var e=this._moduleMap.get(tr);e.setIsWorkerEnabled(!0),e.reConnect()}},{key:"_startMainThreadSocket",value:function(){Ge.l("".concat(this._n,"._startMainThreadSocket"));var e=this._moduleMap.get(tr);e.setIsWorkerEnabled(!1),e.reConnect()}},{key:"onWorkerTimerEnabled",value:function(){Ge.l("".concat(this._n,".onWorkerTimerEnabled, disable main thread timer and socket")),this._stopMainThreadTimer(),this._stopMainThreadSocket()}},{key:"onWorkerTimerDisabled",value:function(){Ge.l("".concat(this._n,".onWorkerTimerDisabled, enable main thread timer and socket")),this._startMainThreadTimer(),this._startMainThreadSocket()}},{key:"onCheckTimer",value:function(){this._checkCount+=1;var e,t=w(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2)[1];n.onCheckTimer&&n.onCheckTimer(this._checkCount)}}catch(o){t.e(o)}finally{t.f()}}},{key:"_initReadyList",value:function(){var e=this;this._readyList=[this._moduleMap.get(xn),this._moduleMap.get(zn)],this._readyList.forEach((function(t){t.ready((function(){return e._onModuleReady()}))}))}},{key:"_onModuleReady",value:function(){var e=!0;if(this._readyList.forEach((function(t){t.isReady()||(e=!1)})),e&&!this._isReady){this._isReady=!0,this._outerEmitter.emit(S.SDK_READY);var t=Date.now()-this._startLoginTs;Ge.w("SDK is ready. cost ".concat(t," ms")),this._startLoginTs=Date.now();var n=this._moduleMap.get($n).getNetworkType(),r=this._ssoLogForReady.getStartTs()+Re;this._ssoLogForReady.setNetworkType(n).setMessage(t).start(r).end()}}},{key:"login",value:function(){0===this._startLoginTs&&(Pe(),this._startLoginTs=Date.now(),this._startTimer(),this._moduleMap.get($n).start(),this._ssoLogForReady=new Ka("sdkReady"),this._reason=Aa.LOGGING_IN)}},{key:"onLoginFailed",value:function(){this._startLoginTs=0}},{key:"getOuterEmitterInstance",value:function(){return null===this._outerEmitter&&(this._outerEmitter=new Is,hi(this._outerEmitter),this._outerEmitter._emit=this._outerEmitter.emit,this._outerEmitter.emit=function(e,t){var n=this;if(e===S.CONVERSATION_LIST_UPDATED||e===S.FRIEND_LIST_UPDATED||e===S.GROUP_LIST_UPDATED||e===S.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED)if(this._eventThrottleMap.has(e)){var r=Date.now(),o=this._eventThrottleMap.get(e);r-o.last<=1e3?(o.timeoutID&&clearTimeout(o.timeoutID),o.timeoutID=setTimeout((function(){o.last=Date.now(),n._outerEmitter._emit.apply(n._outerEmitter,[e,{name:e,data:n._getEventData(e)}])}),1e3)):(o.last=r,this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]))}else this._eventThrottleMap.set(e,{last:Date.now(),timeoutID:-1}),this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]);else this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:arguments[1]}])}.bind(this)),this._outerEmitter}},{key:"_getEventData",value:function(e){return e===S.CONVERSATION_LIST_UPDATED?this._moduleMap.get(zn).getLocalConversationList():e===S.FRIEND_LIST_UPDATED?this._moduleMap.get(Gn).getLocalFriendList(!1):e===S.GROUP_LIST_UPDATED?this._moduleMap.get(Fn).getLocalGroupList():e===S.TOTAL_UNREAD_MESSAGE_COUNT_UPDATED?this._moduleMap.get(zn).getTotalUnreadMessageCount():void 0}},{key:"getInnerEmitterInstance",value:function(){return null===this._innerEmitter&&(this._innerEmitter=new Is,this._innerEmitter._emit=this._innerEmitter.emit,this._innerEmitter.emit=function(e,t){var n;n=ut(arguments[1])&&arguments[1].data?[e,{name:arguments[0],data:arguments[1].data}]:[e,{name:arguments[0],data:arguments[1]}],this._innerEmitter._emit.apply(this._innerEmitter,n)}.bind(this)),this._innerEmitter}},{key:"hasModule",value:function(e){return this._moduleMap.has(e)}},{key:"getModule",value:function(e){return this._moduleMap.get(e)}},{key:"isReady",value:function(){return this._isReady}},{key:"isIntl",value:function(){return this.getModule(qn).isIntl()}},{key:"getNotReadyReason",value:function(){return this._reason}},{key:"setNotReadyReason",value:function(e){this._reason=e}},{key:"getErrorMessage",value:function(e,t,n){return this._moduleMap.get(pr).get({key:e,replacement1:t,replacement2:n,isIntl:this.isIntl()})}},{key:"outputWarning",value:function(e,t,n){var r=this.getErrorMessage(e,t,n);r&&Ge.w(r)}},{key:"onError",value:function(e){var t="code:".concat(e.code," message:").concat(e.message);Ge.w("Oops! ".concat(t)),new Ka("error").setMessage(t).setNetworkType(this.getModule($n).getNetworkType()).setLevel("error").end(),this.getOuterEmitterInstance().emit(S.ERROR,e)}},{key:"restartTimer",value:function(){Ge.l("".concat(this._n,".restartTimer")),this.stopTimer(),this._startTimer(),this.getModule(Fn).restartPolling()}},{key:"getTimerID",value:function(){var e=this._moduleMap.get(or);return e.isWorkerEnabled()?e.getTimerID():this._checkTimer}},{key:"reset",value:function(){Ge.l("".concat(this._n,".reset")),Pe();var e,t=w(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2)[1];n.reset&&n.reset()}}catch(s){t.e(s)}finally{t.f()}this._startLoginTs=0,this._initReadyList(),this._isReady=!1,this.stopTimer(),this._outerEmitter.emit(S.SDK_NOT_READY);var r,o=w(this._eventThrottleMap);try{for(o.s();!(r=o.n()).done;){var a=_(r.value,2)[1];a.timeoutID&&clearTimeout(a.timeoutID)}}catch(s){o.e(s)}finally{o.f()}this._eventThrottleMap.clear()}}]),e}(),Pc=function(){function e(t){o(this,e),this._funcMap=new Map,this._m=t}return i(e,[{key:"defense",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if("string"!=typeof e)return null;if(0===e.length)return null;if("function"!=typeof t)return null;if(this._funcMap.has(e)&&this._funcMap.get(e).has(t))return this._funcMap.get(e).get(t);this._funcMap.has(e)||this._funcMap.set(e,new Map);var r=null;return this._funcMap.get(e).has(t)?r=this._funcMap.get(e).get(t):(r=this._pack(e,t,n),this._funcMap.get(e).set(t,r)),r}},{key:"defenseOnce",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return"function"!=typeof t?null:this._pack(e,t,n)}},{key:"find",value:function(e,t){return"string"!=typeof e||0===e.length||"function"!=typeof t?null:this._funcMap.has(e)&&this._funcMap.get(e).has(t)?this._funcMap.get(e).get(t):(this._m.outputWarning("ListenerFnNotFound",e),null)}},{key:"delete",value:function(e,t){return"function"==typeof t&&!!this._funcMap.has(e)&&!!this._funcMap.get(e).has(t)&&(this._funcMap.get(e).delete(t),0===this._funcMap.get(e).size&&this._funcMap.delete(e),!0)}},{key:"_pack",value:function(e,t,n){var r=this;return function(){try{t.apply(n,Array.from(arguments))}catch(l){var o=Object.values(S).indexOf(e),a="CallbackError";if(-1!==o){var i=Object.keys(S)[o];r._m.outputWarning(a,i,l)}var s=new Ka(a);s.setMessage("eventName:".concat(e)).setMoreMessage(l.message).end()}}}}]),e}(),Uc=function(){function e(t){o(this,e);var n={SDKAppID:t.SDKAppID,unlimitedAVChatRoom:t.unlimitedAVChatRoom||!1,scene:t.scene||"",oversea:t.oversea||!1,instanceID:Pt(),devMode:t.devMode||!1,proxyServer:t.proxyServer||void 0,fileUploadProxy:t.fileUploadProxy||void 0,fileDownloadProxy:t.fileDownloadProxy||t.fileUploadProxy||void 0};this._m=new xc(n),this._safetyCallbackFactory=new Pc(this._m)}return i(e,[{key:"onError",value:function(e){this._m.onError(e)}},{key:"login",value:function(e){return this._m.login(),this._getModule(xn).login(e)}},{key:"logout",value:function(){var e=this;return this._getModule(xn).logout().then((function(t){return e._m.reset(),t}))}},{key:"isReady",value:function(){return this._m.isReady()}},{key:"isIntl",value:function(){return this._m.isIntl()}},{key:"getNotReadyReason",value:function(){return this._m.getNotReadyReason()}},{key:"getErrorMessage",value:function(e,t,n){return this._m.getErrorMessage(e,t,n)}},{key:"_getModule",value:function(e){return this._m.getModule(e)}},{key:"destroy",value:function(){var e=this;return this.logout().finally((function(){e._m.stopTimer(),e._getModule(or).terminate(),e._getModule(tr).dealloc();var t=e._m.getOuterEmitterInstance(),n=e._getModule(qn);t.emit(S.SDK_DESTROY,{SDKAppID:n.getSDKAppID()})}))}},{key:"on",value:function(e,t,n){Ge.d("on","eventName:".concat(e)),this._m.getOuterEmitterInstance().on(e,this._safetyCallbackFactory.defense(e,t,n),n)}},{key:"once",value:function(e,t,n){Ge.d("once","eventName:".concat(e)),this._m.getOuterEmitterInstance().once(e,this._safetyCallbackFactory.defenseOnce(e,t,n),n||this)}},{key:"off",value:function(e,t,n,r){Ge.d("off","eventName:".concat(e));var o=this._safetyCallbackFactory.find(e,t);null!==o&&(this._m.getOuterEmitterInstance().off(e,o,n,r),this._safetyCallbackFactory.delete(e,t))}},{key:"registerPlugin",value:function(e){pt(e["tim-offline-push-plugin"])?this._getModule(Qn).registerPlugin(e):this._getModule(cr).registerPlugin(e)}},{key:"setLogLevel",value:function(e){if(e<=0){var t=this.getErrorMessage("TIM_ASCII_ART");t&&console.log(t);var n=this.getErrorMessage("API_REFER");n&&(Jt()?console.log("%c ".concat("IM SDK API ->"," %c"),"background:#ff9d00; padding:1px; border-radius:3px; color: #fff","background:transparent",n):console.log("IM SDK API ->",n));var r=this.getErrorMessage("DOCS_GUIDE");r&&console.log(r)}Ge.setLevel(e)}},{key:"createTextMessage",value:function(e){return this._getModule(Pn).createTextMessage(e)}},{key:"createTextAtMessage",value:function(e){return this._getModule(Pn).createTextMessage(e)}},{key:"createImageMessage",value:function(e){return this._getModule(Pn).createImageMessage(e)}},{key:"createAudioMessage",value:function(e){return this._getModule(Pn).createAudioMessage(e)}},{key:"createVideoMessage",value:function(e){return this._getModule(Pn).createVideoMessage(e)}},{key:"createCustomMessage",value:function(e){return this._getModule(Pn).createCustomMessage(e)}},{key:"createFaceMessage",value:function(e){return this._getModule(Pn).createFaceMessage(e)}},{key:"createFileMessage",value:function(e){return this._getModule(Pn).createFileMessage(e)}},{key:"createLocationMessage",value:function(e){return this._getModule(Pn).createLocationMessage(e)}},{key:"createMergerMessage",value:function(e){return this._getModule(Pn).createMergerMessage(e)}},{key:"downloadMergerMessage",value:function(e){return e.type!==T.MSG_MERGER?vi({code:Aa.MESSAGE_MERGER_TYPE_INVALID}):en(e.payload.downloadKey)?vi({code:Aa.MESSAGE_MERGER_KEY_INVALID}):this._getModule(Pn).downloadMergerMessage(e).catch((function(e){return vi({code:Aa.MESSAGE_MERGER_DOWNLOAD_FAIL})}))}},{key:"createForwardMessage",value:function(e){return this._getModule(Pn).createForwardMessage(e)}},{key:"sendMessage",value:function(e,t){return e instanceof ui?this._getModule(Pn).sendMessageInstance(e,t):vi({code:Aa.MESSAGE_SEND_NEED_MESSAGE_INSTANCE})}},{key:"callExperimentalAPI",value:function(e,t){return"sendComboMessage"===e?this._getModule(dr).sendMessage(t):"handleGroupInvitation"===e?this._getModule(Fn).handleGroupInvitation(t):"isCommercialAbilityEnabled"===e?this._getModule(sr).isFeatureEnabled(t):"isIntl"===e?this.isIntl():"sendTRTCCustomData"===e?this._getModule(ur).sendTRTCCustomData(t):"getTimerID"===e?this._m.getTimerID():vi({code:Aa.INVALID_OPERATION})}},{key:"revokeMessage",value:function(e){return this._getModule(Pn).revokeMessage(e)}},{key:"resendMessage",value:function(e){return this._getModule(Pn).resendMessage(e)}},{key:"deleteMessage",value:function(e){return this._getModule(Pn).deleteMessage(e)}},{key:"translateText",value:function(e){return this._getModule(Pn).translateText(e)}},{key:"setMessageExtensions",value:function(e,t){return this._getModule(Un).setMessageExtensions(e,t)}},{key:"getMessageExtensions",value:function(e){return this._getModule(Un).getMessageExtensions(e)}},{key:"deleteMessageExtensions",value:function(e,t){return this._getModule(Un).deleteMessageExtensions(e,t)}},{key:"modifyMessage",value:function(e){return this._getModule(Pn).modifyRemoteMessage(e)}},{key:"getMessageList",value:function(e){return this._getModule(zn).getMessageList(e)}},{key:"getMessageListHopping",value:function(e){return this._getModule(zn).getMessageListHopping(e)}},{key:"sendMessageReadReceipt",value:function(e){return this._getModule(zn).sendReadReceipt(e)}},{key:"getMessageReadReceiptList",value:function(e){return this._getModule(zn).getReadReceiptList(e)}},{key:"getGroupMessageReadMemberList",value:function(e){return this._getModule(Fn).getReadReceiptDetail(e)}},{key:"findMessage",value:function(e){return this._getModule(zn).findMessage(e)}},{key:"setMessageRead",value:function(e){return this._getModule(zn).setMessageRead(e)}},{key:"getConversationList",value:function(e){return this._getModule(zn).getConversationList(e)}},{key:"getConversationProfile",value:function(e){return this._getModule(zn).getConversationProfile(e)}},{key:"deleteConversation",value:function(e){return this._getModule(zn).deleteConversation(e)}},{key:"clearHistoryMessage",value:function(e){return this._getModule(zn).clearHistoryMessage(e)}},{key:"pinConversation",value:function(e){return this._getModule(zn).pinConversation(e)}},{key:"setAllMessageRead",value:function(e){return this._getModule(zn).setAllMessageRead(e)}},{key:"setMessageRemindType",value:function(e){return this._getModule(zn).setMessageRemindType(e)}},{key:"getTotalUnreadMessageCount",value:function(){return this._getModule(zn).getTotalUnreadMessageCount()}},{key:"setConversationCustomData",value:function(e){return this._getModule(zn).setConversationCustomData(e)}},{key:"markConversation",value:function(e){return this._getModule(zn).markConversation(e)}},{key:"getConversationGroupList",value:function(){return this._getModule(zn).getConversationGroupList()}},{key:"createConversationGroup",value:function(e){return this._getModule(zn).createConversationGroup(e)}},{key:"deleteConversationGroup",value:function(e){return this._getModule(zn).deleteConversationGroup(e)}},{key:"renameConversationGroup",value:function(e){return this._getModule(zn).renameConversationGroup(e)}},{key:"addConversationsToGroup",value:function(e){return this._getModule(zn).addConversationsToGroup(e)}},{key:"deleteConversationsFromGroup",value:function(e){return this._getModule(zn).deleteConversationsFromGroup(e)}},{key:"getMyProfile",value:function(){return this._getModule(Vn).getMyProfile()}},{key:"getUserProfile",value:function(e){return this._getModule(Vn).getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._getModule(Vn).updateMyProfile(e)}},{key:"getBlacklist",value:function(){return this._getModule(Vn).getLocalBlacklist()}},{key:"addToBlacklist",value:function(e){return this._getModule(Vn).addBlacklist(e)}},{key:"removeFromBlacklist",value:function(e){return this._getModule(Vn).deleteBlacklist(e)}},{key:"setSelfStatus",value:function(e){return this._getModule(Vn).setSelfStatus(e)}},{key:"getUserStatus",value:function(e){return this._getModule(Vn).getUserStatus(e)}},{key:"subscribeUserStatus",value:function(e){return this._getModule(Vn).subscribeUserStatus(e)}},{key:"unsubscribeUserStatus",value:function(e){return this._getModule(Vn).unsubscribeUserStatus(e)}},{key:"getFriendList",value:function(){var e=this._getModule(Gn);return e?e.getLocalFriendList():vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"addFriend",value:function(e){var t=this._getModule(Gn);return t?t.addFriend(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"deleteFriend",value:function(e){var t=this._getModule(Gn);return t?t.deleteFriend(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"checkFriend",value:function(e){var t=this._getModule(Gn);return t?t.checkFriend(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"getFriendProfile",value:function(e){var t=this._getModule(Gn);return t?t.getFriendProfile(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"updateFriend",value:function(e){var t=this._getModule(Gn);return t?t.updateFriend(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"getFriendApplicationList",value:function(){var e=this._getModule(Gn);return e?e.getLocalFriendApplicationList():vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"acceptFriendApplication",value:function(e){var t=this._getModule(Gn);return t?t.acceptFriendApplication(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"refuseFriendApplication",value:function(e){var t=this._getModule(Gn);return t?t.refuseFriendApplication(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"deleteFriendApplication",value:function(e){var t=this._getModule(Gn);return t?t.deleteFriendApplication(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"setFriendApplicationRead",value:function(){var e=this._getModule(Gn);return e?e.setFriendApplicationRead():vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"getFriendGroupList",value:function(){var e=this._getModule(Gn);return e?e.getLocalFriendGroupList():vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"createFriendGroup",value:function(e){var t=this._getModule(Gn);return t?t.createFriendGroup(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"deleteFriendGroup",value:function(e){var t=this._getModule(Gn);return t?t.deleteFriendGroup(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"addToFriendGroup",value:function(e){var t=this._getModule(Gn);return t?t.addToFriendGroup(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"removeFromFriendGroup",value:function(e){var t=this._getModule(Gn);return t?t.removeFromFriendGroup(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"renameFriendGroup",value:function(e){var t=this._getModule(Gn);return t?t.renameFriendGroup(e):vi({code:Aa.CANNOT_FIND_MODULE})}},{key:"getGroupList",value:function(e){return this._getModule(Fn).getGroupList(e)}},{key:"getGroupProfile",value:function(e){return this._getModule(Fn).getGroupProfile(e)}},{key:"createGroup",value:function(e){return this._getModule(Fn).createGroup(e)}},{key:"dismissGroup",value:function(e){return this._getModule(Fn).dismissGroup(e)}},{key:"updateGroupProfile",value:function(e){return this._getModule(Fn).updateGroupProfile(e)}},{key:"joinGroup",value:function(e){return this._getModule(Fn).joinGroup(e)}},{key:"quitGroup",value:function(e){return this._getModule(Fn).quitGroup(e)}},{key:"searchGroupByID",value:function(e){return this._getModule(Fn).searchGroupByID(e)}},{key:"getGroupOnlineMemberCount",value:function(e){return this._getModule(Fn).getGroupOnlineMemberCount(e)}},{key:"changeGroupOwner",value:function(e){return this._getModule(Fn).changeGroupOwner(e)}},{key:"getGroupApplicationList",value:function(){return this._getModule(Fn).getGroupApplicationList()}},{key:"handleGroupApplication",value:function(e){return this._getModule(Fn).handleGroupApplication(e)}},{key:"initGroupAttributes",value:function(e){return this._getModule(Fn).initGroupAttributes(e)}},{key:"setGroupAttributes",value:function(e){return this._getModule(Fn).setGroupAttributes(e)}},{key:"deleteGroupAttributes",value:function(e){return this._getModule(Fn).deleteGroupAttributes(e)}},{key:"getGroupAttributes",value:function(e){return this._getModule(Fn).getGroupAttributes(e)}},{key:"setGroupCounters",value:function(e){return this._getModule(Fn).setGroupCounters(e)}},{key:"increaseGroupCounter",value:function(e){return this._getModule(Fn).increaseGroupCounter(e)}},{key:"decreaseGroupCounter",value:function(e){return this._getModule(Fn).decreaseGroupCounter(e)}},{key:"getGroupCounters",value:function(e){return this._getModule(Fn).getGroupCounters(e)}},{key:"getGroupMemberList",value:function(e){return this._getModule(Hn).getGroupMemberList(e)}},{key:"getGroupMemberProfile",value:function(e){return this._getModule(Hn).getGroupMemberProfile(e)}},{key:"addGroupMember",value:function(e){return this._getModule(Hn).addGroupMember(e)}},{key:"deleteGroupMember",value:function(e){return this._getModule(Hn).deleteGroupMember(e)}},{key:"setGroupMemberMuteTime",value:function(e){return this._getModule(Hn).setGroupMemberMuteTime(e)}},{key:"setGroupMemberRole",value:function(e){return this._getModule(Hn).setGroupMemberRole(e)}},{key:"setGroupMemberNameCard",value:function(e){return this._getModule(Hn).setGroupMemberNameCard(e)}},{key:"setGroupMemberCustomField",value:function(e){return this._getModule(Hn).setGroupMemberCustomField(e)}},{key:"markGroupMemberList",value:function(e){return this._getModule(Hn).markGroupMemberList(e)}},{key:"getJoinedCommunityList",value:function(){return this._getModule(Yn).getJoinedCommunityList()}},{key:"createTopicInCommunity",value:function(e){return this._getModule(Yn).createTopicInCommunity(e)}},{key:"deleteTopicFromCommunity",value:function(e){return this._getModule(Yn).deleteTopicFromCommunity(e)}},{key:"updateTopicProfile",value:function(e){return this._getModule(Yn).updateTopicProfile(e)}},{key:"getTopicList",value:function(e){return this._getModule(Yn).getTopicList(e)}}]),e}(),Vc={login:1,logout:1,destroy:1,on:1,off:1,ready:1,setLogLevel:1,joinGroup:1,quitGroup:1,registerPlugin:1,getGroupOnlineMemberCount:1};function Bc(e,t){if(e.isReady()||1===Vc[t])return!0;var n=e.getNotReadyReason(),r={code:n,message:"".concat(e.getErrorMessage(n)," | ").concat(t," | ").concat(e.getErrorMessage(Aa.SDK_IS_NOT_READY))};return e.onError(r),r}var Fc={},Gc={create:function(e){var t=0,r=e.SDKAppID;if(st(r))t=r;else if(t=parseInt(r),isNaN(r))return Ge.e("".concat("TIM.create"," failed. Failed to parse the SDKAppID, please check the arguments")),null;if(t&&Fc[t])return Fc[t];Ge.l("".concat("TIM.create"));var o=new Uc(n(n({},e),{},{SDKAppID:t}));o.on(S.SDK_DESTROY,(function(e){Fc[e.data.SDKAppID]=null,delete Fc[e.data.SDKAppID]}));var a=function(e){var t=Object.create(null);return Object.keys(Rn).forEach((function(n){if(e[n]){var r=new I;t[n]=function(){var t=Array.from(arguments);return r.use((function(t,r){var o=Bc(e,n);return!0===o?r():vi(o)})).use((function(e,t){if(!0===tn(e,Nn[n],n))return t()})).use((function(t,r){return e[n].apply(e,t)})),r.run(t)}}})),t}(o);return Fc[t]=a,Nn.hookGetAPITips(o.getErrorMessage.bind(o)),Ge.l("".concat("TIM.create"," ok")),a}};return Gc.TYPES=T,Gc.EVENT=S,Gc.VERSION="2.27.1",Ge.l("TIM.VERSION:".concat(Gc.VERSION)),Gc}))}).call(this,n("c8ba"))},ea55:function(e,t,n){"use strict";e.exports=function(e){try{var t=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},r=t[e](n);return 1===r.size&&4===r.values().next().value}catch(o){return!1}}},ea98:function(e,t,n){"use strict";var r=n("23e7"),o=n("e330"),a=n("1d80"),i=n("5926"),s=n("577e"),c=n("d039"),l=o("".charAt),u=c((function(){return"\ud842"!=="𠮷".at(-2)}));r({target:"String",proto:!0,forced:u},{at:function(e){var t=s(a(this)),n=t.length,r=i(e),o=r>=0?r:n+r;return o<0||o>=n?void 0:l(t,o)}})},eafd:function(e,t,n){"use strict";(function(e){function n(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}
/**
* @vue/shared v3.5.32
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
Object.defineProperty(t,"__esModule",{value:!0});const r={},o=[],a=()=>{},i=()=>!1,s=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),l=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),f=Array.isArray,h=e=>"[object Map]"===C(e),m=e=>"[object Set]"===C(e),v=e=>"[object Date]"===C(e),g=e=>"[object RegExp]"===C(e),_=e=>"function"===typeof e,b=e=>"string"===typeof e,y=e=>"symbol"===typeof e,O=e=>null!==e&&"object"===typeof e,M=e=>(O(e)||_(e))&&_(e.then)&&_(e.catch),k=Object.prototype.toString,C=e=>k.call(e),w=e=>C(e).slice(8,-1),S=e=>"[object Object]"===C(e),T=e=>b(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,I=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),E=n("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),j=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},D=/-\w/g,L=j(e=>e.replace(D,e=>e.slice(1).toUpperCase())),A=/\B([A-Z])/g,N=j(e=>e.replace(A,"-$1").toLowerCase()),R=j(e=>e.charAt(0).toUpperCase()+e.slice(1)),x=j(e=>{const t=e?"on"+R(e):"";return t}),P=(e,t)=>!Object.is(e,t),U=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},V=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},B=e=>{const t=parseFloat(e);return isNaN(t)?e:t},F=e=>{const t=b(e)?Number(e):NaN;return isNaN(t)?e:t};let G;const H=()=>G||(G="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{}),Y=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function z(e){return Y.test(e)?"__props."+e:`__props[${JSON.stringify(e)}]`}function q(e,t){return e+JSON.stringify(t,(e,t)=>"function"===typeof t?t.toString():t)}const W={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},K={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"NEED_HYDRATION",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},$={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},J={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},X={[1]:"STABLE",[2]:"DYNAMIC",[3]:"FORWARDED"},Q="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",Z=n(Q),ee=Z,te=2;function ne(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return"";let r=e.split(/(\r?\n)/);const o=r.filter((e,t)=>t%2===1);r=r.filter((e,t)=>t%2===0);let a=0;const i=[];for(let s=0;s<r.length;s++)if(a+=r[s].length+(o[s]&&o[s].length||0),a>=t){for(let e=s-te;e<=s+te||n>a;e++){if(e<0||e>=r.length)continue;const c=e+1;i.push(`${c}${" ".repeat(Math.max(3-String(c).length,0))}| ${r[e]}`);const l=r[e].length,u=o[e]&&o[e].length||0;if(e===s){const e=t-(a-(l+u)),r=Math.max(1,n>a?l-e:n-t);i.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(e>s){if(n>a){const e=Math.max(Math.min(n-a,l),1);i.push(" | "+"^".repeat(e))}a+=l+u}}break}return i.join("\n")}function re(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=b(r)?se(r):re(r);if(o)for(const e in o)t[e]=o[e]}return t}if(b(e)||O(e))return e}const oe=/;(?![^(]*\))/g,ae=/:([^]+)/,ie=/\/\*[^]*?\*\//g;function se(e){const t={};return e.replace(ie,"").split(oe).forEach(e=>{if(e){const n=e.split(ae);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ce(e){if(!e)return"";if(b(e))return e;let t="";for(const n in e){const r=e[n];if(b(r)||"number"===typeof r){const e=n.startsWith("--")?n:N(n);t+=`${e}:${r};`}}return t}function le(e){let t="";if(b(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const r=le(e[n]);r&&(t+=r+" ")}else if(O(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ue(e){if(!e)return null;let{class:t,style:n}=e;return t&&!b(t)&&(e.class=le(t)),n&&(e.style=re(n)),e}const de="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",pe="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",fe="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",he="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",me=n(de),ve=n(pe),ge=n(fe),_e=n(he),be="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ye=n(be),Oe=n(be+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function Me(e){return!!e||""===e}const ke=/[>/="'\u0009\u000a\u000c\u0020]/,Ce={};function we(e){if(Ce.hasOwnProperty(e))return Ce[e];const t=ke.test(e);return t&&console.error("unsafe attribute name: "+e),Ce[e]=!t}const Se={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Te=n("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Ie=n("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),Ee=n("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function je(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t}const De=/["'&<>]/;function Le(e){const t=""+e,n=De.exec(t);if(!n)return t;let r,o,a="",i=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}i!==o&&(a+=t.slice(i,o)),i=o+1,a+=r}return i!==o?a+t.slice(i,o):a}const Ae=/^-?>|<!--|-->|--!>|<!-$/g;function Ne(e){return e.replace(Ae,"")}const Re=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function xe(e,t){return e.replace(Re,e=>t?'"'===e?'\\\\\\"':"\\\\"+e:"\\"+e)}function Pe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ue(e[r],t[r]);return n}function Ue(e,t){if(e===t)return!0;let n=v(e),r=v(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=y(e),r=y(t),n||r)return e===t;if(n=f(e),r=f(t),n||r)return!(!n||!r)&&Pe(e,t);if(n=O(e),r=O(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,a=Object.keys(t).length;if(o!==a)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!Ue(e[n],t[n]))return!1}}return String(e)===String(t)}function Ve(e,t){return e.findIndex(e=>Ue(e,t))}const Be=e=>!(!e||!0!==e["__v_isRef"]),Fe=e=>b(e)?e:null==e?"":f(e)||O(e)&&(e.toString===k||!_(e.toString))?Be(e)?Fe(e.value):JSON.stringify(e,Ge,2):String(e),Ge=(e,t)=>Be(t)?Ge(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[He(t,r)+" =>"]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>He(e))}:y(t)?He(t):!O(t)||f(t)||S(t)?t:String(t),He=(e,t="")=>{var n;return y(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};function Ye(e){return null==e?"initial":"string"===typeof e?""===e?" ":e:String(e)}t.EMPTY_ARR=o,t.EMPTY_OBJ=r,t.NO=i,t.NOOP=a,t.PatchFlagNames=K,t.PatchFlags=W,t.ShapeFlags=$,t.SlotFlags=J,t.camelize=L,t.capitalize=R,t.cssVarNameEscapeSymbolsRE=Re,t.def=V,t.escapeHtml=Le,t.escapeHtmlComment=Ne,t.extend=l,t.genCacheKey=q,t.genPropsAccessExp=z,t.generateCodeFrame=ne,t.getEscapedCssVarName=xe,t.getGlobalThis=H,t.hasChanged=P,t.hasOwn=p,t.hyphenate=N,t.includeBooleanAttr=Me,t.invokeArrayFns=U,t.isArray=f,t.isBooleanAttr=Oe,t.isBuiltInDirective=E,t.isDate=v,t.isFunction=_,t.isGloballyAllowed=Z,t.isGloballyWhitelisted=ee,t.isHTMLTag=me,t.isIntegerKey=T,t.isKnownHtmlAttr=Te,t.isKnownMathMLAttr=Ee,t.isKnownSvgAttr=Ie,t.isMap=h,t.isMathMLTag=ge,t.isModelListener=c,t.isObject=O,t.isOn=s,t.isPlainObject=S,t.isPromise=M,t.isRegExp=g,t.isRenderableAttrValue=je,t.isReservedProp=I,t.isSSRSafeAttrName=we,t.isSVGTag=ve,t.isSet=m,t.isSpecialBooleanAttr=ye,t.isString=b,t.isSymbol=y,t.isVoidTag=_e,t.looseEqual=Ue,t.looseIndexOf=Ve,t.looseToNumber=B,t.makeMap=n,t.normalizeClass=le,t.normalizeCssVarValue=Ye,t.normalizeProps=ue,t.normalizeStyle=re,t.objectToString=k,t.parseStringStyle=se,t.propsToAttrMap=Se,t.remove=u,t.slotFlagsText=X,t.stringifyStyle=ce,t.toDisplayString=Fe,t.toHandlerKey=x,t.toNumber=F,t.toRawType=w,t.toTypeString=C}).call(this,n("c8ba"))},eb54:function(e,t,n){"use strict";var r=n("ce18");e.exports=r([].slice)},eb547:function(e,t,n){"use strict";n.d(t,"a",(function(){return Vn})),n.d(t,"b",(function(){return Gn})),n.d(t,"c",(function(){return Mr}));var r=n("6ffb"),o=n("6f27"),a=n("b923");const i=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},s=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t};let c=null;const l=function(e,t,n){let r=c||(c=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},u=function(){c=null},d=function(e,t,n,r){return n&&(f(e,t,n,r,-1)||f(e,t,n,r,1))},p=/^(img|br|input|textarea|hr)$/i;function f(e,t,n,r,o){for(var a;;){if(e==n&&t==r)return!0;if(t==(o<0?0:h(e))){let n=e.parentNode;if(!n||1!=n.nodeType||_(e)||p.test(e.nodeName)||"false"==e.contentEditable)return!1;t=i(e)+(o<0?0:1),e=n}else{if(1!=e.nodeType)return!1;{let n=e.childNodes[t+(o<0?-1:0)];if(1==n.nodeType&&"false"==n.contentEditable){if(!(null===(a=n.pmViewDesc)||void 0===a?void 0:a.ignoreForSelection))return!1;t+=o}else e=n,t=o<0?h(e):0}}}}function h(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function m(e,t){for(;;){if(3==e.nodeType&&t)return e;if(1==e.nodeType&&t>0){if("false"==e.contentEditable)return null;e=e.childNodes[t-1],t=h(e)}else{if(!e.parentNode||_(e))return null;t=i(e),e=e.parentNode}}}function v(e,t){for(;;){if(3==e.nodeType&&t<e.nodeValue.length)return e;if(1==e.nodeType&&t<e.childNodes.length){if("false"==e.contentEditable)return null;e=e.childNodes[t],t=0}else{if(!e.parentNode||_(e))return null;t=i(e)+1,e=e.parentNode}}}function g(e,t,n){for(let r=0==t,o=t==h(e);r||o;){if(e==n)return!0;let t=i(e);if(e=e.parentNode,!e)return!1;r=r&&0==t,o=o&&t==h(e)}}function _(e){let t;for(let n=e;n;n=n.parentNode)if(t=n.pmViewDesc)break;return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const b=function(e){return e.focusNode&&d(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function y(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function O(e){let t=e.activeElement;while(t&&t.shadowRoot)t=t.shadowRoot.activeElement;return t}function M(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(h(r.offsetNode),r.offset)}}catch(r){}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(h(r.startContainer),r.startOffset)}}}const k="undefined"!=typeof navigator?navigator:null,C="undefined"!=typeof document?document:null,w=k&&k.userAgent||"",S=/Edge\/(\d+)/.exec(w),T=/MSIE \d/.exec(w),I=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(w),E=!!(T||I||S),j=T?document.documentMode:I?+I[1]:S?+S[1]:0,D=!E&&/gecko\/(\d+)/i.test(w);D&&(/Firefox\/(\d+)/.exec(w)||[0,0])[1];const L=!E&&/Chrome\/(\d+)/.exec(w),A=!!L,N=L?+L[1]:0,R=!E&&!!k&&/Apple Computer/.test(k.vendor),x=R&&(/Mobile\/\w+/.test(w)||!!k&&k.maxTouchPoints>2),P=x||!!k&&/Mac/.test(k.platform),U=!!k&&/Win/.test(k.platform),V=/Android \d/.test(w),B=!!C&&"webkitFontSmoothing"in C.documentElement.style,F=B?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function G(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function H(e,t){return"number"==typeof e?e:e[t]}function Y(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function z(e,t,n){let r=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,a=e.dom.ownerDocument;for(let i=n||e.dom;;){if(!i)break;if(1!=i.nodeType){i=s(i);continue}let e=i,n=e==a.body,c=n?G(a):Y(e),l=0,u=0;if(t.top<c.top+H(r,"top")?u=-(c.top-t.top+H(o,"top")):t.bottom>c.bottom-H(r,"bottom")&&(u=t.bottom-t.top>c.bottom-c.top?t.top+H(o,"top")-c.top:t.bottom-c.bottom+H(o,"bottom")),t.left<c.left+H(r,"left")?l=-(c.left-t.left+H(o,"left")):t.right>c.right-H(r,"right")&&(l=t.right-c.right+H(o,"right")),l||u)if(n)a.defaultView.scrollBy(l,u);else{let n=e.scrollLeft,r=e.scrollTop;u&&(e.scrollTop+=u),l&&(e.scrollLeft+=l);let o=e.scrollLeft-n,a=e.scrollTop-r;t={left:t.left-o,top:t.top-a,right:t.right-o,bottom:t.bottom-a}}let d=n?"fixed":getComputedStyle(i).position;if(/^(fixed|sticky)$/.test(d))break;i="absolute"==d?i.offsetParent:s(i)}}function q(e){let t,n,r=e.dom.getBoundingClientRect(),o=Math.max(0,r.top);for(let a=(r.left+r.right)/2,i=o+1;i<Math.min(innerHeight,r.bottom);i+=5){let r=e.root.elementFromPoint(a,i);if(!r||r==e.dom||!e.dom.contains(r))continue;let s=r.getBoundingClientRect();if(s.top>=o-20){t=r,n=s.top;break}}return{refDOM:t,refTop:n,stack:W(e.dom)}}function W(e){let t=[],n=e.ownerDocument;for(let r=e;r;r=s(r))if(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e==n)break;return t}function K({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;$(n,0==r?0:r-t)}function $(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:o,left:a}=e[n];r.scrollTop!=o+t&&(r.scrollTop=o+t),r.scrollLeft!=a&&(r.scrollLeft=a)}}let J=null;function X(e){if(e.setActive)return e.setActive();if(J)return e.focus(J);let t=W(e);e.focus(null==J?{get preventScroll(){return J={preventScroll:!0},!0}}:void 0),J||(J=!1,$(t,0))}function Q(e,t){let n,r,o,a,i=2e8,s=0,c=t.top,u=t.top;for(let d=e.firstChild,p=0;d;d=d.nextSibling,p++){let e;if(1==d.nodeType)e=d.getClientRects();else{if(3!=d.nodeType)continue;e=l(d).getClientRects()}for(let l=0;l<e.length;l++){let f=e[l];if(f.top<=c&&f.bottom>=u){c=Math.max(f.bottom,c),u=Math.min(f.top,u);let e=f.left>t.left?f.left-t.left:f.right<t.left?t.left-f.right:0;if(e<i){n=d,i=e,r=e&&3==n.nodeType?{left:f.right<t.left?f.right:f.left,top:t.top}:t,1==d.nodeType&&e&&(s=p+(t.left>=(f.left+f.right)/2?1:0));continue}}else f.top>t.top&&!o&&f.left<=t.left&&f.right>=t.left&&(o=d,a={left:Math.max(f.left,Math.min(f.right,t.left)),top:f.top});!n&&(t.left>=f.right&&t.top>=f.top||t.left>=f.left&&t.top>=f.bottom)&&(s=p+1)}}return!n&&o&&(n=o,r=a,i=0),n&&3==n.nodeType?Z(n,r):!n||i&&1==n.nodeType?{node:e,offset:s}:Q(n,r)}function Z(e,t){let n,r=e.nodeValue.length,o=document.createRange();for(let a=0;a<r;a++){o.setEnd(e,a+1),o.setStart(e,a);let r=se(o,1);if(r.top!=r.bottom&&ee(t,r)){n={node:e,offset:a+(t.left>=(r.left+r.right)/2?1:0)};break}}return o.detach(),n||{node:e,offset:0}}function ee(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function te(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function ne(e,t,n){let{node:r,offset:o}=Q(t,n),a=-1;if(1==r.nodeType&&!r.firstChild){let e=r.getBoundingClientRect();a=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,o,a)}function re(e,t,n,r){let o=-1;for(let a=t,i=!1;;){if(a==e.dom)break;let t,n=e.docView.nearestDesc(a,!0);if(!n)return null;if(1==n.dom.nodeType&&(n.node.isBlock&&n.parent||!n.contentDOM)&&((t=n.dom.getBoundingClientRect()).width||t.height)&&(n.node.isBlock&&n.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(n.dom.nodeName)&&(!i&&t.left>r.left||t.top>r.top?o=n.posBefore:(!i&&t.right<r.left||t.bottom<r.top)&&(o=n.posAfter),i=!0),!n.contentDOM&&o<0&&!n.node.isText)){let e=n.node.isBlock?r.top<(t.top+t.bottom)/2:r.left<(t.left+t.right)/2;return e?n.posBefore:n.posAfter}a=n.dom.parentNode}return o>-1?o:e.docView.posFromDOM(t,n,-1)}function oe(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),a=o;;){let n=e.childNodes[a];if(1==n.nodeType){let e=n.getClientRects();for(let r=0;r<e.length;r++){let o=e[r];if(ee(t,o))return oe(n,t,o)}}if((a=(a+1)%r)==o)break}return e}function ae(e,t){let n,r=e.dom.ownerDocument,o=0,a=M(r,t.left,t.top);a&&({node:n,offset:o}=a);let i,c=(e.root.elementFromPoint?e.root:r).elementFromPoint(t.left,t.top);if(!c||!e.dom.contains(1!=c.nodeType?c.parentNode:c)){let n=e.dom.getBoundingClientRect();if(!ee(t,n))return null;if(c=oe(e.dom,t,n),!c)return null}if(R)for(let u=c;n&&u;u=s(u))u.draggable&&(n=void 0);if(c=te(c,t),n){if(D&&1==n.nodeType&&(o=Math.min(o,n.childNodes.length),o<n.childNodes.length)){let e,r=n.childNodes[o];"IMG"==r.nodeName&&(e=r.getBoundingClientRect()).right<=t.left&&e.bottom>t.top&&o++}let r;B&&o&&1==n.nodeType&&1==(r=n.childNodes[o-1]).nodeType&&"false"==r.contentEditable&&r.getBoundingClientRect().top>=t.top&&o--,n==e.dom&&o==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?i=e.state.doc.content.size:0!=o&&1==n.nodeType&&"BR"==n.childNodes[o-1].nodeName||(i=re(e,n,o,t))}null==i&&(i=ne(e,c,t));let l=e.docView.nearestDesc(c,!0);return{pos:i,inside:l?l.posAtStart-l.border:-1}}function ie(e){return e.top<e.bottom||e.left<e.right}function se(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(ie(e))return e}return Array.prototype.find.call(n,ie)||e.getBoundingClientRect()}const ce=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function le(e,t,n){let{node:r,offset:o,atom:a}=e.docView.domFromPos(t,n<0?-1:1),i=B||D;if(3==r.nodeType){if(!i||!ce.test(r.nodeValue)&&(n<0?o:o!=r.nodeValue.length)){let e=o,t=o,a=n<0?1:-1;return n<0&&!o?(t++,a=-1):n>=0&&o==r.nodeValue.length?(e--,a=1):n<0?e--:t++,ue(se(l(r,e,t),a),a<0)}{let e=se(l(r,o,o),n);if(D&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let t=se(l(r,o-1,o-1),-1);if(t.top==e.top){let n=se(l(r,o,o+1),-1);if(n.top!=e.top)return ue(n,n.left<t.left)}}return e}}let s=e.state.doc.resolve(t-(a||0));if(!s.parent.inlineContent){if(null==a&&o&&(n<0||o==h(r))){let e=r.childNodes[o-1];if(1==e.nodeType)return de(e.getBoundingClientRect(),!1)}if(null==a&&o<h(r)){let e=r.childNodes[o];if(1==e.nodeType)return de(e.getBoundingClientRect(),!0)}return de(r.getBoundingClientRect(),n>=0)}if(null==a&&o&&(n<0||o==h(r))){let e=r.childNodes[o-1],t=3==e.nodeType?l(e,h(e)-(i?0:1)):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return ue(se(t,1),!1)}if(null==a&&o<h(r)){let e=r.childNodes[o];while(e.pmViewDesc&&e.pmViewDesc.ignoreForCoords)e=e.nextSibling;let t=e?3==e.nodeType?l(e,0,i?0:1):1==e.nodeType?e:null:null;if(t)return ue(se(t,-1),!0)}return ue(se(3==r.nodeType?l(r):r,-n),n>=0)}function ue(e,t){if(0==e.width)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function de(e,t){if(0==e.height)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function pe(e,t,n){let r=e.state,o=e.root.activeElement;r!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),o!=e.dom&&o&&o.focus()}}function fe(e,t,n){let r=t.selection,o="up"==n?r.$from:r.$to;return pe(e,t,()=>{let{node:t}=e.docView.domFromPos(o.pos,"up"==n?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=le(e,o.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=l(e,0,e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let o=t[e];if(o.bottom>o.top+1&&("up"==n?r.top-o.top>2*(o.bottom-r.top):o.bottom-r.bottom>2*(r.bottom-o.top)))return!1}}return!0})}const he=/[\u0590-\u08ac]/;function me(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,a=!o,i=o==r.parent.content.size,s=e.domSelection();return s?he.test(r.parent.textContent)&&s.modify?pe(e,t,()=>{let{focusNode:t,focusOffset:o,anchorNode:a,anchorOffset:i}=e.domSelectionRange(),c=s.caretBidiLevel;s.modify("move",n,"character");let l=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),p=u&&!l.contains(1==u.nodeType?u:u.parentNode)||t==u&&o==d;try{s.collapse(a,i),t&&(t!=a||o!=i)&&s.extend&&s.extend(t,o)}catch(f){}return null!=c&&(s.caretBidiLevel=c),p}):"left"==n||"backward"==n?a:i:r.pos==r.start()||r.pos==r.end()}let ve=null,ge=null,_e=!1;function be(e,t,n){return ve==t&&ge==n?_e:(ve=t,ge=n,_e="up"==n||"down"==n?fe(e,t,n):me(e,t,n))}const ye=0,Oe=1,Me=2,ke=3;class Ce{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=ye,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{while(e.parentNode!=this.contentDOM)e=e.parentNode;n=e.previousSibling}while(n&&(!(r=n.pmViewDesc)||r.parent!=this))n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{while(e.parentNode!=this.contentDOM)e=e.parentNode;n=e.nextSibling}while(n&&(!(r=n.pmViewDesc)||r.parent!=this))n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(e==this.dom&&this.contentDOM)r=t>i(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(null==r&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let o,a=this.getDesc(r);if(a&&(!t||a.node)){if(!n||!(o=a.nodeDOM)||(1==o.nodeType?o.contains(1==e.nodeType?e:e.parentNode):o==e))return a;n=!1}}}getDesc(e){let t=e.pmViewDesc;for(let n=t;n;n=n.parent)if(n==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],o=n+r.size;if(n==e&&o!=n){while(!r.border&&r.children.length)for(let e=0;e<r.children.length;e++){let t=r.children[e];if(t.size){r=t;break}}return r}if(e<o)return r.descAt(e-n-r.border);n=o}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n,r=0,o=0;for(let a=0;r<this.children.length;r++){let t=this.children[r],n=a+t.size;if(n>e||t instanceof De){o=e-a;break}a=n}if(o)return this.children[r].domFromPos(o-this.children[r].border,t);for(;r&&!(n=this.children[r-1]).size&&n instanceof we&&n.side>=0;r--);if(t<=0){let e,n=!0;for(;;r--,n=!1)if(e=r?this.children[r-1]:null,!e||e.dom.parentNode==this.contentDOM)break;return e&&t&&n&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?i(e.dom)+1:0}}{let e,n=!0;for(;;r++,n=!1)if(e=r<this.children.length?this.children[r]:null,!e||e.dom.parentNode==this.contentDOM)break;return e&&n&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?i(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,o=-1;for(let a=n,s=0;;s++){let n=this.children[s],c=a+n.size;if(-1==r&&e<=c){let o=a+n.border;if(e>=o&&t<=c-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,o);e=a;for(let t=s;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=i(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&(c>t||s==this.children.length-1)){t=c;for(let e=s+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){o=i(n.dom);break}t+=n.size}-1==o&&(o=this.contentDOM.childNodes.length);break}a=c}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(1!=t.nodeType||n==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let o=Math.min(e,t),a=Math.max(e,t);for(let i=0,d=0;i<this.children.length;i++){let s=this.children[i],c=d+s.size;if(o>d&&a<c)return s.setSelection(e-d-s.border,t-d-s.border,n,r);d=c}let s=this.domFromPos(e,e?-1:1),c=t==e?s:this.domFromPos(t,t?-1:1),l=n.root.getSelection(),u=n.domSelectionRange(),p=!1;if((D||R)&&e==t){let{node:e,offset:t}=s;if(3==e.nodeType){if(p=!(!t||"\n"!=e.nodeValue[t-1]),p&&t==e.nodeValue.length)for(let n,r=e;r;r=r.parentNode){if(n=r.nextSibling){"BR"==n.nodeName&&(s=c={node:n.parentNode,offset:i(n)+1});break}let e=r.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];p=n&&("BR"==n.nodeName||"false"==n.contentEditable)}}if(D&&u.focusNode&&u.focusNode!=c.node&&1==u.focusNode.nodeType){let e=u.focusNode.childNodes[u.focusOffset];e&&"false"==e.contentEditable&&(r=!0)}if(!(r||p&&R)&&d(s.node,s.offset,u.anchorNode,u.anchorOffset)&&d(c.node,c.offset,u.focusNode,u.focusOffset))return;let f=!1;if((l.extend||e==t)&&(!p||!D)){l.collapse(s.node,s.offset);try{e!=t&&l.extend(c.node,c.offset),f=!0}catch(h){}}if(!f){if(e>t){let e=s;s=c,c=e}let n=document.createRange();n.setEnd(c.node,c.offset),n.setStart(s.node,s.offset),l.removeAllRanges(),l.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let o=this.children[r],a=n+o.size;if(n==a?e<=a&&t>=n:e<a&&t>n){let r=n+o.border,i=a-o.border;if(e>=r&&t<=i)return this.dirty=e==n||t==a?Me:Oe,void(e!=r||t!=i||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(e-r,t-r):o.dirty=ke);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?ke:Me}n=a}this.dirty=Me}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?Me:Oe;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class we extends Ce{constructor(e,t,n,r){let o,a=t.type.toDOM;if("function"==typeof a&&(a=a(n,()=>o?o.parent?o.parent.posBeforeChild(o):void 0:r)),!t.type.spec.raw){if(1!=a.nodeType){let e=document.createElement("span");e.appendChild(a),a=e}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=t,this.widget=t,o=this}matchesWidget(e){return this.dirty==ye&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class Se extends Ce{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class Te extends Ce{constructor(e,t,n,r,o){super(e,[],n,r),this.mark=t,this.spec=o}static create(e,t,n,r){let a=r.nodeViews[t.type.name],i=a&&a(t,r,n);return i&&i.dom||(i=o["b"].renderSpec(document,t.type.spec.toDOM(t,n),null,t.attrs)),new Te(e,t,i.dom,i.contentDOM||i.dom,i)}parseRule(){return this.dirty&ke||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=ke&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=ye){let e=this.parent;while(!e.node)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=ye}}slice(e,t,n){let r=Te.create(this.parent,this.mark,!0,n),o=this.children,a=this.size;t<a&&(o=Ke(o,t,a,n)),e>0&&(o=Ke(o,0,e,n));for(let i=0;i<o.length;i++)o[i].parent=r;return r.children=o,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Ie extends Ce{constructor(e,t,n,r,o,a,i,s,c){super(e,[],o,a),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=i}static create(e,t,n,r,a,i){let s,c=a.nodeViews[t.type.name],l=c&&c(t,a,()=>s?s.parent?s.parent.posBeforeChild(s):void 0:i,n,r),u=l&&l.dom,d=l&&l.contentDOM;if(t.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(t.text);else if(!u){let e=o["b"].renderSpec(document,t.type.spec.toDOM(t),null,t.attrs);({dom:u,contentDOM:d}=e)}d||t.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let p=u;return u=Ve(u,n,t),l?s=new Le(e,t,n,r,u,d||null,p,l,a,i+1):t.isText?new je(e,t,n,r,u,p,a):new Ie(e,t,n,r,u,d||null,p,a,i+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>o["c"].empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return this.dirty==ye&&e.eq(this.node)&&Be(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,r=t,a=e.composing?this.localCompositionInfo(e,t):null,i=a&&a.pos>-1?a:null,s=a&&a.pos<0,c=new Ge(this,i&&i.node,e);ze(this.node,this.innerDeco,(t,a,i)=>{t.spec.marks?c.syncToMarks(t.spec.marks,n,e,a):t.type.side>=0&&!i&&c.syncToMarks(a==this.node.childCount?o["d"].none:this.node.child(a).marks,n,e,a),c.placeWidget(t,e,r)},(t,o,i,l)=>{let u;c.syncToMarks(t.marks,n,e,l),c.findNodeMatch(t,o,i,l)||s&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(u=c.findIndexWithChild(a.node))>-1&&c.updateNodeAt(t,o,i,u,e)||c.updateNextNode(t,o,i,e,l,r)||c.addNode(t,o,i,e,r),r+=t.nodeSize}),c.syncToMarks([],n,e,0),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==Me)&&(i&&this.protectLocalComposition(e,i),Ae(this.contentDOM,this.children,e),x&&qe(this.dom))}localCompositionInfo(e,t){let{from:n,to:o}=e.state.selection;if(!(e.state.selection instanceof r["h"])||n<t||o>t+this.node.content.size)return null;let a=e.input.compositionNode;if(!a||!this.dom.contains(a.parentNode))return null;if(this.node.inlineContent){let e=a.nodeValue,r=We(this.node.content,e,n-t,o-t);return r<0?null:{node:a,pos:r,text:e}}return{node:a,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let o=t;for(;;o=o.parentNode){if(o.parentNode==this.contentDOM)break;while(o.previousSibling)o.parentNode.removeChild(o.previousSibling);while(o.nextSibling)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let a=new Se(this,o,t,r);e.input.compositionNodes.push(a),this.children=Ke(this.children,n,n+r.length,e,a)}update(e,t,n,r){return!(this.dirty==ke||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=ye}updateOuterDeco(e){if(Be(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=Pe(this.dom,this.nodeDOM,xe(this.outerDeco,this.node,t),xe(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.nodeDOM.draggable=!0))}deselectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Ee(e,t,n,r,o){Ve(r,t,e);let a=new Ie(void 0,e,t,n,r,r,r,o,0);return a.contentDOM&&a.updateChildren(o,0),a}class je extends Ie{constructor(e,t,n,r,o,a,i){super(e,t,n,r,o,null,a,i,0)}parseRule(){let e=this.nodeDOM.parentNode;while(e&&e!=this.dom&&!e.pmIsDeco)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return!(this.dirty==ke||this.dirty!=ye&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),this.dirty==ye&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=ye,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let r=this.node.cut(e,t),o=document.createTextNode(r.text);return new je(this.parent,r,this.outerDeco,this.innerDeco,o,o,n)}markDirty(e,t){super.markDirty(e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=ke)}get domAtom(){return!1}isText(e){return this.node.text==e}}class De extends Ce{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==ye&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class Le extends Ie{constructor(e,t,n,r,o,a,i,s,c,l){super(e,t,n,r,o,a,i,c,l),this.spec=s}update(e,t,n,r){if(this.dirty==ke)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let o=this.spec.update(e,t,n);return o&&this.updateInner(e,t,n,r),o}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Ae(e,t,n){let r=e.firstChild,o=!1;for(let a=0;a<t.length;a++){let i=t[a],s=i.dom;if(s.parentNode==e){while(s!=r)r=Fe(r),o=!0;r=r.nextSibling}else o=!0,e.insertBefore(s,r);if(i instanceof Te){let t=r?r.previousSibling:e.lastChild;Ae(i.contentDOM,i.children,n),r=t?t.nextSibling:e.firstChild}}while(r)r=Fe(r),o=!0;o&&n.trackWrites==e&&(n.trackWrites=null)}const Ne=function(e){e&&(this.nodeName=e)};Ne.prototype=Object.create(null);const Re=[new Ne];function xe(e,t,n){if(0==e.length)return Re;let r=n?Re[0]:new Ne,o=[r];for(let a=0;a<e.length;a++){let i=e[a].type.attrs;if(i){i.nodeName&&o.push(r=new Ne(i.nodeName));for(let e in i){let a=i[e];null!=a&&(n&&1==o.length&&o.push(r=new Ne(t.isInline?"span":"div")),"class"==e?r.class=(r.class?r.class+" ":"")+a:"style"==e?r.style=(r.style?r.style+";":"")+a:"nodeName"!=e&&(r[e]=a))}}}return o}function Pe(e,t,n,r){if(n==Re&&r==Re)return t;let o=t;for(let a=0;a<r.length;a++){let t=r[a],i=n[a];if(a){let n;i&&i.nodeName==t.nodeName&&o!=e&&(n=o.parentNode)&&n.nodeName.toLowerCase()==t.nodeName||(n=document.createElement(t.nodeName),n.pmIsDeco=!0,n.appendChild(o),i=Re[0]),o=n}Ue(o,i||Re[0],t)}return o}function Ue(e,t,n){for(let r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(let r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let t=0;t<r.length;t++)-1==o.indexOf(r[t])&&e.classList.remove(r[t]);for(let t=0;t<o.length;t++)-1==r.indexOf(o[t])&&e.classList.add(o[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let n,r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;while(n=r.exec(t.style))e.style.removeProperty(n[1])}n.style&&(e.style.cssText+=n.style)}}function Ve(e,t,n){return Pe(e,e,Re,xe(t,n,1!=e.nodeType))}function Be(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function Fe(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class Ge{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=He(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n,r){let o=0,a=this.stack.length>>1,i=Math.min(a,e.length);while(o<i&&(o==a-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&!1!==e[o].type.spec.spanning)o++;while(o<a)this.destroyRest(),this.top.dirty=ye,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;while(a<e.length){this.stack.push(this.top,this.index+1);let o=-1,i=this.top.children.length;r<this.preMatch.index&&(i=Math.min(this.index+3,i));for(let t=this.index;t<i;t++){let n=this.top.children[t];if(n.matchesMark(e[a])&&!this.isLocked(n.dom)){o=t;break}}if(o>-1)o>this.index&&(this.changed=!0,this.destroyBetween(this.index,o)),this.top=this.top.children[this.index];else{let r=Te.create(this.top,e[a],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,a++}}findNodeMatch(e,t,n,r){let o,a=-1;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(e,t,n))a=this.top.children.indexOf(o,this.index);else for(let i=this.index,s=Math.min(this.top.children.length,i+5);i<s;i++){let r=this.top.children[i];if(r.matchesNode(e,t,n)&&!this.preMatch.matched.has(r)){a=i;break}}return!(a<0)&&(this.destroyBetween(this.index,a),this.index++,!0)}updateNodeAt(e,t,n,r,o){let a=this.top.children[r];return a.dirty==ke&&a.dom==a.contentDOM&&(a.dirty=Me),!!a.update(e,t,n,o)&&(this.destroyBetween(this.index,r),this.index++,!0)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t)for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e;return-1}e=t}}updateNextNode(e,t,n,r,o,a){for(let i=this.index;i<this.top.children.length;i++){let s=this.top.children[i];if(s instanceof Ie){let c=this.preMatch.matched.get(s);if(null!=c&&c!=o)return!1;let l,u=s.dom,d=this.isLocked(u)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&s.dirty!=ke&&Be(t,s.outerDeco));if(!d&&s.update(e,t,n,r))return this.destroyBetween(this.index,i),s.dom!=u&&(this.changed=!0),this.index++,!0;if(!d&&(l=this.recreateWrapper(s,e,t,n,r,a)))return this.destroyBetween(this.index,i),this.top.children[this.index]=l,l.contentDOM&&(l.dirty=Me,l.updateChildren(r,a+1),l.dirty=ye),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,o,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!Be(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let i=Ie.create(this.top,t,n,r,o,a);if(i.contentDOM){i.children=e.children,e.children=[];for(let e of i.children)e.parent=i}return e.destroy(),i}addNode(e,t,n,r,o){let a=Ie.create(this.top,e,t,n,r,o);a.contentDOM&&a.updateChildren(r,o+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){let r=new we(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;while(e instanceof Te)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof je)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((R||A)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);"IMG"==e&&(n.className="ProseMirror-separator",n.alt=""),"BR"==e&&(n.className="ProseMirror-trailingBreak");let r=new De(this.top,[],n,null);t!=this.top?t.children.push(r):t.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}function He(e,t){let n=t,r=n.children.length,o=e.childCount,a=new Map,i=[];e:while(o>0){let s;for(;;)if(r){let e=n.children[r-1];if(!(e instanceof Te)){s=e,r--;break}n=e,r=e.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let c=s.node;if(c){if(c!=e.child(o-1))break;--o,a.set(s,o),i.push(s)}}return{index:o,matched:a,matches:i.reverse()}}function Ye(e,t){return e.type.side-t.type.side}function ze(e,t,n,r){let o=t.locals(e),a=0;if(0==o.length){for(let n=0;n<e.childCount;n++){let i=e.child(n);r(i,o,t.forChild(a,i),n),a+=i.nodeSize}return}let i=0,s=[],c=null;for(let l=0;;){let u,d,p,f;while(i<o.length&&o[i].to==a){let e=o[i++];e.widget&&(u?(d||(d=[u])).push(e):u=e)}if(u)if(d){d.sort(Ye);for(let e=0;e<d.length;e++)n(d[e],l,!!c)}else n(u,l,!!c);if(c)f=-1,p=c,c=null;else{if(!(l<e.childCount))break;f=l,p=e.child(l++)}for(let e=0;e<s.length;e++)s[e].to<=a&&s.splice(e--,1);while(i<o.length&&o[i].from<=a&&o[i].to>a)s.push(o[i++]);let h=a+p.nodeSize;if(p.isText){let e=h;i<o.length&&o[i].from<e&&(e=o[i].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<h&&(c=p.cut(e-a),p=p.cut(0,e-a),h=e,f=-1)}else while(i<o.length&&o[i].to<h)i++;let m=p.isInline&&!p.isLeaf?s.filter(e=>!e.inline):s.slice();r(p,m,t.forChild(a,p),f),a=h}}function qe(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function We(e,t,n,r){for(let o=0,a=0;o<e.childCount&&a<=r;){let i=e.child(o++),s=a;if(a+=i.nodeSize,!i.isText)continue;let c=i.text;while(o<e.childCount){let t=e.child(o++);if(a+=t.nodeSize,!t.isText)break;c+=t.text}if(a>=n){if(a>=r&&c.slice(r-t.length-s,r-s)==t)return r-t.length;let e=s<r?c.lastIndexOf(t,r-s-1):-1;if(e>=0&&e+t.length+s>=n)return s+e;if(n==r&&c.length>=r+t.length-s&&c.slice(r-s,r-s+t.length)==t)return r}}return-1}function Ke(e,t,n,r,o){let a=[];for(let i=0,s=0;i<e.length;i++){let c=e[i],l=s,u=s+=c.size;l>=n||u<=t?a.push(c):(l<t&&a.push(c.slice(0,t-l,r)),o&&(a.push(o),o=void 0),u>n&&a.push(c.slice(n-l,c.size,r)))}return a}function $e(e,t=null){let n=e.domSelectionRange(),o=e.state.doc;if(!n.focusNode)return null;let a=e.docView.nearestDesc(n.focusNode),i=a&&0==a.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let c,l,u=o.resolve(s);if(b(n)){c=s;while(a&&!a.node)a=a.parent;let e=a.node;if(a&&e.isAtom&&r["c"].isSelectable(e)&&a.parent&&(!e.isInline||!g(n.focusNode,n.focusOffset,a.dom))){let e=a.posBefore;l=new r["c"](s==e?u:o.resolve(e))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=s,r=s;for(let o=0;o<n.rangeCount;o++){let a=n.getRangeAt(o);t=Math.min(t,e.docView.posFromDOM(a.startContainer,a.startOffset,1)),r=Math.max(r,e.docView.posFromDOM(a.endContainer,a.endOffset,-1))}if(t<0)return null;[c,s]=r==e.state.selection.anchor?[r,t]:[t,r],u=o.resolve(s)}else c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null}let d=o.resolve(c);if(!l){let n="pointer"==t||e.state.selection.head<u.pos&&!i?1:-1;l=it(e,d,u,n)}return l}function Je(e){return e.editable?e.hasFocus():ct(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Xe(e,t=!1){let n=e.state.selection;if(ot(e,n),Je(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&A){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&d(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)rt(e);else{let o,a,{anchor:i,head:s}=n;!Qe||n instanceof r["h"]||(n.$from.parent.inlineContent||(o=Ze(e,n.from)),n.empty||n.$from.parent.inlineContent||(a=Ze(e,n.to))),e.docView.setSelection(i,s,e,t),Qe&&(o&&tt(o),a&&tt(a)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&nt(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const Qe=R||A&&N<63;function Ze(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),o=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if(R&&o&&"false"==o.contentEditable)return et(o);if((!o||"false"==o.contentEditable)&&(!a||"false"==a.contentEditable)){if(o)return et(o);if(a)return et(a)}}function et(e){return e.contentEditable="true",R&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function tt(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function nt(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{n.anchorNode==r&&n.anchorOffset==o||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{Je(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")},20))})}function rt(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r="IMG"==n.nodeName;r?t.collapse(n.parentNode,i(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&E&&j<=11&&(n.disabled=!0,n.disabled=!1)}function ot(e,t){if(t instanceof r["c"]){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(at(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else at(e)}function at(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function it(e,t,n,o){return e.someProp("createSelectionBetween",r=>r(e,t,n))||r["h"].between(t,n,o)}function st(e){return!(e.editable&&!e.hasFocus())&&ct(e)}function ct(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(n){return!1}}function lt(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return d(t.node,t.offset,n.anchorNode,n.anchorOffset)}function ut(e,t){let{$anchor:n,$head:o}=e.selection,a=t>0?n.max(o):n.min(o),i=a.parent.inlineContent?a.depth?e.doc.resolve(t>0?a.after():a.before()):null:a;return i&&r["f"].findFrom(i,t)}function dt(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function pt(e,t,n){let o=e.state.selection;if(!(o instanceof r["h"])){if(o instanceof r["c"]&&o.node.isInline)return dt(e,new r["h"](t>0?o.$to:o.$from));{let n=ut(e.state,t);return!!n&&dt(e,n)}}if(n.indexOf("s")>-1){let{$head:n}=o,a=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!a||a.isText||!a.isLeaf)return!1;let i=e.state.doc.resolve(n.pos+a.nodeSize*(t<0?-1:1));return dt(e,new r["h"](o.$anchor,i))}if(!o.empty)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let n=ut(e.state,t);return!!(n&&n instanceof r["c"])&&dt(e,n)}if(!(P&&n.indexOf("m")>-1)){let n,a=o.$head,i=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter;if(!i||i.isText)return!1;let s=t<0?a.pos-i.nodeSize:a.pos;return!!(i.isAtom||(n=e.docView.descAt(s))&&!n.contentDOM)&&(r["c"].isSelectable(i)?dt(e,new r["c"](t<0?e.state.doc.resolve(a.pos-i.nodeSize):a)):!!B&&dt(e,new r["h"](e.state.doc.resolve(t<0?s:s+i.nodeSize))))}}function ft(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function ht(e,t){let n=e.pmViewDesc;return n&&0==n.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function mt(e,t){return t<0?vt(e):gt(e)}function vt(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,a,s=!1;for(D&&1==n.nodeType&&r<ft(n)&&ht(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(1!=n.nodeType)break;{let e=n.childNodes[r-1];if(ht(e,-1))o=n,a=--r;else{if(3!=e.nodeType)break;n=e,r=n.nodeValue.length}}}else{if(_t(n))break;{let t=n.previousSibling;while(t&&ht(t,-1))o=n.parentNode,a=i(t),t=t.previousSibling;if(t)n=t,r=ft(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}s?Ot(e,n,r):o&&Ot(e,o,a)}function gt(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,a,s=ft(n);for(;;)if(r<s){if(1!=n.nodeType)break;let e=n.childNodes[r];if(!ht(e,1))break;o=n,a=++r}else{if(_t(n))break;{let t=n.nextSibling;while(t&&ht(t,1))o=t.parentNode,a=i(t)+1,t=t.nextSibling;if(t)n=t,r=0,s=ft(n);else{if(n=n.parentNode,n==e.dom)break;r=s=0}}}o&&Ot(e,o,a)}function _t(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function bt(e,t){while(e&&t==e.childNodes.length&&!_(e))t=i(e)+1,e=e.parentNode;while(e&&t<e.childNodes.length){let n=e.childNodes[t];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=0}}function yt(e,t){while(e&&!t&&!_(e))t=i(e),e=e.parentNode;while(e&&t){let n=e.childNodes[t-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=e.childNodes.length}}function Ot(e,t,n){if(3!=t.nodeType){let e,r;(r=bt(t,n))?(t=r,n=0):(e=yt(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(!r)return;if(b(r)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),r.removeAllRanges(),r.addRange(e)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:o}=e;setTimeout(()=>{e.state==o&&Xe(e)},50)}function Mt(e,t){let n=e.state.doc.resolve(t);if(!A&&!U&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?"ltr":"rtl"}if(t<n.end()){let n=e.coordsAtPos(t+1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?"ltr":"rtl"}}let r=getComputedStyle(e.dom).direction;return"rtl"==r?"rtl":"ltr"}function kt(e,t,n){let o=e.state.selection;if(o instanceof r["h"]&&!o.empty||n.indexOf("s")>-1)return!1;if(P&&n.indexOf("m")>-1)return!1;let{$from:a,$to:i}=o;if(!a.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=ut(e.state,t);if(n&&n instanceof r["c"])return dt(e,n)}if(!a.parent.inlineContent){let n=t<0?a:i,s=o instanceof r["a"]?r["f"].near(n,t):r["f"].findFrom(n,t);return!!s&&dt(e,s)}return!1}function Ct(e,t){if(!(e.state.selection instanceof r["h"]))return!0;let{$head:n,$anchor:o,empty:a}=e.state.selection;if(!n.sameParent(o))return!0;if(!a)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let r=e.state.tr;return t<0?r.delete(n.pos-i.nodeSize,n.pos):r.delete(n.pos,n.pos+i.nodeSize),e.dispatch(r),!0}return!1}function wt(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function St(e){if(!R||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;wt(e,n,"true"),setTimeout(()=>wt(e,n,"false"),20)}return!1}function Tt(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function It(e,t){let n=t.keyCode,r=Tt(t);if(8==n||P&&72==n&&"c"==r)return Ct(e,-1)||mt(e,-1);if(46==n&&!t.shiftKey||P&&68==n&&"c"==r)return Ct(e,1)||mt(e,1);if(13==n||27==n)return!0;if(37==n||P&&66==n&&"c"==r){let t=37==n?"ltr"==Mt(e,e.state.selection.from)?-1:1:-1;return pt(e,t,r)||mt(e,t)}if(39==n||P&&70==n&&"c"==r){let t=39==n?"ltr"==Mt(e,e.state.selection.from)?1:-1:1;return pt(e,t,r)||mt(e,t)}return 38==n||P&&80==n&&"c"==r?kt(e,-1,r)||mt(e,-1):40==n||P&&78==n&&"c"==r?St(e)||kt(e,1,r)||mt(e,1):r==(P?"m":"c")&&(66==n||73==n||89==n||90==n)}function Et(e,t){e.someProp("transformCopied",n=>{t=n(t,e)});let n=[],{content:r,openStart:a,openEnd:i}=t;while(a>1&&i>1&&1==r.childCount&&1==r.firstChild.childCount){a--,i--;let e=r.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),r=e.content}let s=e.someProp("clipboardSerializer")||o["b"].fromSchema(e.state.schema),c=Bt(),l=c.createElement("div");l.appendChild(s.serializeFragment(r,{document:c}));let u,d=l.firstChild,p=0;while(d&&1==d.nodeType&&(u=Ut[d.nodeName.toLowerCase()])){for(let e=u.length-1;e>=0;e--){let t=c.createElement(u[e]);while(l.firstChild)t.appendChild(l.firstChild);l.appendChild(t),p++}d=l.firstChild}d&&1==d.nodeType&&d.setAttribute("data-pm-slice",`${a} ${i}${p?" -"+p:""} ${JSON.stringify(n)}`);let f=e.someProp("clipboardTextSerializer",n=>n(t,e))||t.content.textBetween(0,t.content.size,"\n\n");return{dom:l,text:f,slice:t}}function jt(e,t,n,r,a){let i,s,c=a.parent.type.spec.code;if(!n&&!t)return null;let l=!!t&&(r||c||!n);if(l){if(e.someProp("transformPastedText",n=>{t=n(t,c||r,e)}),c)return s=new o["j"](o["c"].from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0),e.someProp("transformPasted",t=>{s=t(s,e,!0)}),s;let n=e.someProp("clipboardTextParser",n=>n(t,a,r,e));if(n)s=n;else{let n=a.marks(),{schema:r}=e.state,s=o["b"].fromSchema(r);i=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=i.appendChild(document.createElement("p"));e&&t.appendChild(s.serializeNode(r.text(e,n)))})}}else e.someProp("transformPastedHTML",t=>{n=t(n,e)}),i=Ht(n),B&&Yt(i);let u=i&&i.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let o=+d[3];o>0;o--){let e=i.firstChild;while(e&&1!=e.nodeType)e=e.nextSibling;if(!e)break;i=e}if(!s){let t=e.someProp("clipboardParser")||e.someProp("domParser")||o["a"].fromSchema(e.state.schema);s=t.parseSlice(i,{preserveWhitespace:!(!l&&!d),context:a,ruleFromNode(e){return"BR"!=e.nodeName||e.nextSibling||!e.parentNode||Dt.test(e.parentNode.nodeName)?null:{ignore:!0}}})}if(d)s=zt(Pt(s,+d[1],+d[2]),d[4]);else if(s=o["j"].maxOpen(Lt(s.content,a),!0),s.openStart||s.openEnd){let e=0,t=0;for(let n=s.content.firstChild;e<s.openStart&&!n.type.spec.isolating;e++,n=n.firstChild);for(let n=s.content.lastChild;t<s.openEnd&&!n.type.spec.isolating;t++,n=n.lastChild);s=Pt(s,e,t)}return e.someProp("transformPasted",t=>{s=t(s,e,l)}),s}const Dt=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Lt(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r,a=t.node(n),i=a.contentMatchAt(t.index(n)),s=[];if(e.forEach(e=>{if(!s)return;let t,n=i.findWrapping(e.type);if(!n)return s=null;if(t=s.length&&r.length&&Nt(n,r,e,s[s.length-1],0))s[s.length-1]=t;else{s.length&&(s[s.length-1]=Rt(s[s.length-1],r.length));let t=At(e,n);s.push(t),i=i.matchType(t.type),r=n}}),s)return o["c"].from(s)}return e}function At(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,o["c"].from(e));return e}function Nt(e,t,n,r,a){if(a<e.length&&a<t.length&&e[a]==t[a]){let i=Nt(e,t,n,r.lastChild,a+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));let s=r.contentMatchAt(r.childCount);if(s.matchType(a==e.length-1?n.type:e[a+1]))return r.copy(r.content.append(o["c"].from(At(n,e,a+1))))}}function Rt(e,t){if(0==t)return e;let n=e.content.replaceChild(e.childCount-1,Rt(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(o["c"].empty,!0);return e.copy(n.append(r))}function xt(e,t,n,r,a,i){let s=t<0?e.firstChild:e.lastChild,c=s.content;return e.childCount>1&&(i=0),a<r-1&&(c=xt(c,t,n,r,a+1,i)),a>=n&&(c=t<0?s.contentMatchAt(0).fillBefore(c,i<=a).append(c):c.append(s.contentMatchAt(s.childCount).fillBefore(o["c"].empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(c))}function Pt(e,t,n){return t<e.openStart&&(e=new o["j"](xt(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new o["j"](xt(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const Ut={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Vt=null;function Bt(){return Vt||(Vt=document.implementation.createHTMLDocument("title"))}let Ft=null;function Gt(e){let t=window.trustedTypes;return t?(Ft||(Ft=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:e=>e})),Ft.createHTML(e)):e}function Ht(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n,r=Bt().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e);if((n=o&&Ut[o[1].toLowerCase()])&&(e=n.map(e=>"<"+e+">").join("")+e+n.map(e=>"</"+e+">").reverse().join("")),r.innerHTML=Gt(e),n)for(let a=0;a<n.length;a++)r=r.querySelector(n[a])||r;return r}function Yt(e){let t=e.querySelectorAll(A?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];1==r.childNodes.length&&" "==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}function zt(e,t){if(!e.size)return e;let n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(c){return e}let{content:a,openStart:i,openEnd:s}=e;for(let l=n.length-2;l>=0;l-=2){let e=r.nodes[n[l]];if(!e||e.hasRequiredAttrs())break;a=o["c"].from(e.create(n[l+1],a)),i++,s++}return new o["j"](a,i,s)}const qt={},Wt={},Kt={touchstart:!0,touchmove:!0};class $t{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Jt(e){for(let t in qt){let n=qt[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{!tn(e,t)||en(e,t)||!e.editable&&t.type in Wt||n(e,t)},Kt[t]?{passive:!0}:void 0)}R&&e.dom.addEventListener("input",()=>null),Zt(e)}function Xt(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function Qt(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function Zt(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>en(e,t))})}function en(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)})}function tn(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function nn(e,t){en(e,t)||!qt[t.type]||!e.editable&&t.type in Wt||qt[t.type](e,t)}function rn(e){return{left:e.clientX,top:e.clientY}}function on(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function an(e,t,n,r,o){if(-1==r)return!1;let a=e.state.doc.resolve(r);for(let i=a.depth+1;i>0;i--)if(e.someProp(t,t=>i>a.depth?t(e,n,a.nodeAfter,a.before(i),o,!0):t(e,n,a.node(i),a.before(i),o,!1)))return!0;return!1}function sn(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function cn(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),o=n.nodeAfter;return!!(o&&o.isAtom&&r["c"].isSelectable(o))&&(sn(e,new r["c"](n),"pointer"),!0)}function ln(e,t){if(-1==t)return!1;let n,o,a=e.state.selection;a instanceof r["c"]&&(n=a.node);let i=e.state.doc.resolve(t);for(let s=i.depth+1;s>0;s--){let e=s>i.depth?i.nodeAfter:i.node(s);if(r["c"].isSelectable(e)){o=n&&a.$from.depth>0&&s>=a.$from.depth&&i.before(a.$from.depth+1)==a.$from.pos?i.before(a.$from.depth):i.before(s);break}}return null!=o&&(sn(e,r["c"].create(e.state.doc,o),"pointer"),!0)}function un(e,t,n,r,o){return an(e,"handleClickOn",t,n,r)||e.someProp("handleClick",n=>n(e,t,r))||(o?ln(e,n):cn(e,n))}function dn(e,t,n,r){return an(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",n=>n(e,t,r))}function pn(e,t,n,r){return an(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",n=>n(e,t,r))||fn(e,n,r)}function fn(e,t,n){if(0!=n.button)return!1;let o=e.state.doc;if(-1==t)return!!o.inlineContent&&(sn(e,r["h"].create(o,0,o.content.size),"pointer"),!0);let a=o.resolve(t);for(let i=a.depth+1;i>0;i--){let t=i>a.depth?a.nodeAfter:a.node(i),n=a.before(i);if(t.inlineContent)sn(e,r["h"].create(o,n+1,n+1+t.content.size),"pointer");else{if(!r["c"].isSelectable(t))continue;sn(e,r["c"].create(o,n),"pointer")}return!0}}function hn(e){return Cn(e)}Wt.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=16==n.keyCode||n.shiftKey,!gn(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!V||!A||13!=n.keyCode))if(229!=n.keyCode&&e.domObserver.forceFlush(),!x||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)e.someProp("handleKeyDown",t=>t(e,n))||It(e,n)?n.preventDefault():Xt(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,y(13,"Enter"))),e.input.lastIOSEnter=0)},200)}},Wt.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},Wt.keypress=(e,t)=>{let n=t;if(gn(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||P&&n.metaKey)return;if(e.someProp("handleKeyPress",t=>t(e,n)))return void n.preventDefault();let o=e.state.selection;if(!(o instanceof r["h"])||!o.$from.sameParent(o.$to)){let t=String.fromCharCode(n.charCode),r=()=>e.state.tr.insertText(t).scrollIntoView();/[\r\n]/.test(t)||e.someProp("handleTextInput",n=>n(e,o.$from.pos,o.$to.pos,t,r))||e.dispatch(r()),n.preventDefault()}};const mn=P?"metaKey":"ctrlKey";qt.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=hn(e),o=Date.now(),a="singleClick";o-e.input.lastClick.time<500&&on(n,e.input.lastClick)&&!n[mn]&&e.input.lastClick.button==n.button&&("singleClick"==e.input.lastClick.type?a="doubleClick":"doubleClick"==e.input.lastClick.type&&(a="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:a,button:n.button};let i=e.posAtCoords(rn(n));i&&("singleClick"==a?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new vn(e,i,n,!!r)):("doubleClick"==a?dn:pn)(e,i.pos,i.inside,n)?n.preventDefault():Xt(e,"pointer"))};class vn{constructor(e,t,n,o){let a,i;if(this.view=e,this.pos=t,this.event=n,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[mn],this.allowDefault=n.shiftKey,t.inside>-1)a=e.state.doc.nodeAt(t.inside),i=t.inside;else{let n=e.state.doc.resolve(t.pos);a=n.parent,i=n.depth?n.before():0}const s=o?null:n.target,c=s?e.docView.nearestDesc(s,!0):null;this.target=c&&1==c.nodeDOM.nodeType?c.nodeDOM:null;let{selection:l}=e.state;0==n.button&&(a.type.spec.draggable&&!1!==a.type.spec.selectable||l instanceof r["c"]&&l.from<=i&&l.to>i)&&(this.mightDrag={node:a,pos:i,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!D||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Xt(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Xe(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(rn(e))),this.updateAllowDefault(e),this.allowDefault||!t?Xt(this.view,"pointer"):un(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||R&&this.mightDrag&&!this.mightDrag.node.isAtom||A&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(sn(this.view,r["f"].near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):Xt(this.view,"pointer")}move(e){this.updateAllowDefault(e),Xt(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function gn(e,t){return!!e.composing||!!(R&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}qt.touchstart=e=>{e.input.lastTouch=Date.now(),hn(e),Xt(e,"pointer")},qt.touchmove=e=>{e.input.lastTouch=Date.now(),Xt(e,"pointer")},qt.contextmenu=e=>hn(e);const _n=V?5e3:-1;function bn(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||1!=t.nodeType||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return 1==r.nodeType&&"false"==r.contentEditable}function yn(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Cn(e),t))}function On(e){e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=kn());while(e.input.compositionNodes.length>0)e.input.compositionNodes.pop().markParentsDirty()}function Mn(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=m(t.focusNode,t.focusOffset),r=v(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let t=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(e&&e.isText(n.nodeValue))return r}}return n||r}function kn(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function Cn(e,t=!1){if(!(V&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),On(e),t||e.docView&&e.docView.dirty){let n=$e(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):!e.markCursor&&!t||r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.updateState(e.state):e.dispatch(e.state.tr.deleteSelection()),!0}return!1}}function wn(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}Wt.compositionstart=Wt.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof r["h"]&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)||A&&U&&bn(e)))e.markCursor=e.state.storedMarks||n.marks(),Cn(e,!0),e.markCursor=null;else if(Cn(e,!t.selection.empty),D&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&1==n.nodeType&&0!=r;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(3==t.nodeType){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}yn(e,_n)},Wt.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,yn(e,20))};const Sn=E&&j<15||x&&F<604;function Tn(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}function In(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?En(e,r.value,null,o,t):En(e,r.textContent,r.innerHTML,o,t)},50)}function En(e,t,n,r,a){let i=jt(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,a,i||o["j"].empty)))return!0;if(!i)return!1;let s=Tn(i),c=s?e.state.tr.replaceSelectionWith(s,r):e.state.tr.replaceSelection(i);return e.dispatch(c.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function jn(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}qt.copy=Wt.cut=(e,t)=>{let n=t,r=e.state.selection,o="cut"==n.type;if(r.empty)return;let a=Sn?null:n.clipboardData,i=r.content(),{dom:s,text:c}=Et(e,i);a?(n.preventDefault(),a.clearData(),a.setData("text/html",s.innerHTML),a.setData("text/plain",c)):wn(e,s),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},Wt.paste=(e,t)=>{let n=t;if(e.composing&&!V)return;let r=Sn?null:n.clipboardData,o=e.input.shiftKey&&45!=e.input.lastKeyCode;r&&En(e,jn(r),r.getData("text/html"),o,n)?n.preventDefault():In(e,n)};class Dn{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}}const Ln=P?"altKey":"ctrlKey";function An(e,t){let n;return e.someProp("dragCopies",e=>{n=n||e(t)}),null!=n?!n:!t[Ln]}function Nn(e,t,n){if(!t.dataTransfer)return;let i=e.posAtCoords(rn(t));if(!i)return;let s=e.state.doc.resolve(i.pos),c=n&&n.slice;c?e.someProp("transformPasted",t=>{c=t(c,e,!1)}):c=jt(e,jn(t.dataTransfer),Sn?null:t.dataTransfer.getData("text/html"),!1,s);let l=!(!n||!An(e,t));if(e.someProp("handleDrop",n=>n(e,t,c||o["j"].empty,l)))return void t.preventDefault();if(!c)return;t.preventDefault();let u=c?Object(a["f"])(e.state.doc,s.pos,c):s.pos;null==u&&(u=s.pos);let d=e.state.tr;if(l){let{node:e}=n;e?e.replace(d):d.deleteSelection()}let p=d.mapping.map(u),f=0==c.openStart&&0==c.openEnd&&1==c.content.childCount,h=d.doc;if(f?d.replaceRangeWith(p,p,c.content.firstChild):d.replaceRange(p,p,c),d.doc.eq(h))return;let m=d.doc.resolve(p);if(f&&r["c"].isSelectable(c.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(c.content.firstChild))d.setSelection(new r["c"](m));else{let t=d.mapping.map(u);d.mapping.maps[d.mapping.maps.length-1].forEach((e,n,r,o)=>t=o),d.setSelection(it(e,m,d.doc.resolve(t)))}e.focus(),e.dispatch(d.setMeta("uiEvent","drop"))}qt.dragstart=(e,t)=>{let n=t,o=e.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let a,i=e.state.selection,s=i.empty?null:e.posAtCoords(rn(n));if(s&&s.pos>=i.from&&s.pos<=(i instanceof r["c"]?i.to-1:i.to));else if(o&&o.mightDrag)a=r["c"].create(e.state.doc,o.mightDrag.pos);else if(n.target&&1==n.target.nodeType){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(a=r["c"].create(e.state.doc,t.posBefore))}let c=(a||e.state.selection).content(),{dom:l,text:u,slice:d}=Et(e,c);(!n.dataTransfer.files.length||!A||N>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Sn?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Sn||n.dataTransfer.setData("text/plain",u),e.dragging=new Dn(d,An(e,n),a)},qt.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},Wt.dragover=Wt.dragenter=(e,t)=>t.preventDefault(),Wt.drop=(e,t)=>{try{Nn(e,t,e.dragging)}finally{e.dragging=null}},qt.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Xe(e)},20))},qt.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},qt.beforeinput=(e,t)=>{let n=t;if(A&&V&&"deleteContentBackward"==n.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,y(8,"Backspace"))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let jr in Wt)qt[jr]=Wt[jr];function Rn(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class xn{constructor(e,t){this.toDOM=e,this.spec=t||Fn,this.side=this.spec.side||0}map(e,t,n,r){let{pos:o,deleted:a}=e.mapResult(t.from+r,this.side<0?-1:1);return a?null:new Vn(o-n,o-n,this)}valid(){return!0}eq(e){return this==e||e instanceof xn&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Rn(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Pn{constructor(e,t){this.attrs=e,this.spec=t||Fn}map(e,t,n,r){let o=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,a=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return o>=a?null:new Vn(o,a,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof Pn&&Rn(this.attrs,e.attrs)&&Rn(this.spec,e.spec)}static is(e){return e.type instanceof Pn}destroy(){}}class Un{constructor(e,t){this.attrs=e,this.spec=t||Fn}map(e,t,n,r){let o=e.mapResult(t.from+r,1);if(o.deleted)return null;let a=e.mapResult(t.to+r,-1);return a.deleted||a.pos<=o.pos?null:new Vn(o.pos-n,a.pos-n,this)}valid(e,t){let n,{index:r,offset:o}=e.content.findIndex(t.from);return o==t.from&&!(n=e.child(r)).isText&&o+n.nodeSize==t.to}eq(e){return this==e||e instanceof Un&&Rn(this.attrs,e.attrs)&&Rn(this.spec,e.spec)}destroy(){}}class Vn{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(e,t){return new Vn(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(e,t,n){return new Vn(e,e,new xn(t,n))}static inline(e,t,n,r){return new Vn(e,t,new Pn(n,r))}static node(e,t,n,r){return new Vn(e,t,new Un(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof Pn}get widget(){return this.type instanceof xn}}const Bn=[],Fn={};class Gn{constructor(e,t){this.local=e.length?e:Bn,this.children=t.length?t:Bn}static create(e,t){return t.length?Jn(t,e,0,Fn):Hn}find(e,t,n){let r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r}findInner(e,t,n,r,o){for(let a=0;a<this.local.length;a++){let i=this.local[a];i.from<=t&&i.to>=e&&(!o||o(i.spec))&&n.push(i.copy(i.from+r,i.to+r))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let i=this.children[a]+1;this.children[a+2].findInner(e-i,t-i,n,r+i,o)}}map(e,t,n){return this==Hn||0==e.maps.length?this:this.mapInner(e,t,0,0,n||Fn)}mapInner(e,t,n,r,o){let a;for(let i=0;i<this.local.length;i++){let s=this.local[i].map(e,n,r);s&&s.type.valid(t,s)?(a||(a=[])).push(s):o.onRemove&&o.onRemove(this.local[i].spec)}return this.children.length?zn(this.children,a||[],e,t,n,r,o):a?new Gn(a.sort(Xn),Bn):Hn}add(e,t){return t.length?this==Hn?Gn.create(e,t):this.addInner(e,t,0):this}addInner(e,t,n){let r,o=0;e.forEach((e,a)=>{let i,s=a+n;if(i=Kn(t,e,s)){r||(r=this.children.slice());while(o<r.length&&r[o]<a)o+=3;r[o]==a?r[o+2]=r[o+2].addInner(e,i,s+1):r.splice(o,0,a,a+e.nodeSize,Jn(i,e,s+1,Fn)),o+=3}});let a=qn(o?$n(t):t,-n);for(let i=0;i<a.length;i++)a[i].type.valid(e,a[i])||a.splice(i--,1);return new Gn(a.length?this.local.concat(a).sort(Xn):this.local,r||this.children)}remove(e){return 0==e.length||this==Hn?this:this.removeInner(e,0)}removeInner(e,t){let n=this.children,r=this.local;for(let o=0;o<n.length;o+=3){let r,a=n[o]+t,i=n[o+1]+t;for(let t,n=0;n<e.length;n++)(t=e[n])&&t.from>a&&t.to<i&&(e[n]=null,(r||(r=[])).push(t));if(!r)continue;n==this.children&&(n=this.children.slice());let s=n[o+2].removeInner(r,a+1);s!=Hn?n[o+2]=s:(n.splice(o,3),o-=3)}if(r.length)for(let o,a=0;a<e.length;a++)if(o=e[a])for(let e=0;e<r.length;e++)r[e].eq(o,t)&&(r==this.local&&(r=this.local.slice()),r.splice(e--,1));return n==this.children&&r==this.local?this:r.length||n.length?new Gn(r,n):Hn}forChild(e,t){if(this==Hn)return this;if(t.isLeaf)return Gn.empty;let n,r;for(let i=0;i<this.children.length;i+=3)if(this.children[i]>=e){this.children[i]==e&&(n=this.children[i+2]);break}let o=e+1,a=o+t.content.size;for(let i=0;i<this.local.length;i++){let e=this.local[i];if(e.from<a&&e.to>o&&e.type instanceof Pn){let t=Math.max(o,e.from)-o,n=Math.min(a,e.to)-o;t<n&&(r||(r=[])).push(e.copy(t,n))}}if(r){let e=new Gn(r.sort(Xn),Bn);return n?new Yn([e,n]):e}return n||Hn}eq(e){if(this==e)return!0;if(!(e instanceof Gn)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return Qn(this.localsInner(e))}localsInner(e){if(this==Hn)return Bn;if(e.inlineContent||!this.local.some(Pn.is))return this.local;let t=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof Pn||t.push(this.local[n]);return t}forEachSet(e){e(this)}}Gn.empty=new Gn([],[]),Gn.removeOverlap=Qn;const Hn=Gn.empty;class Yn{constructor(e){this.members=e}map(e,t){const n=this.members.map(n=>n.map(e,t,Fn));return Yn.from(n)}forChild(e,t){if(t.isLeaf)return Gn.empty;let n=[];for(let r=0;r<this.members.length;r++){let o=this.members[r].forChild(e,t);o!=Hn&&(o instanceof Yn?n=n.concat(o.members):n.push(o))}return Yn.from(n)}eq(e){if(!(e instanceof Yn)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let o=this.members[r].localsInner(e);if(o.length)if(t){n&&(t=t.slice(),n=!1);for(let e=0;e<o.length;e++)t.push(o[e])}else t=o}return t?Qn(n?t:t.sort(Xn)):Bn}static from(e){switch(e.length){case 0:return Hn;case 1:return e[0];default:return new Yn(e.every(e=>e instanceof Gn)?e:e.reduce((e,t)=>e.concat(t instanceof Gn?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function zn(e,t,n,r,o,a,i){let s=e.slice();for(let l=0,u=a;l<n.maps.length;l++){let e=0;n.maps[l].forEach((t,n,r,o)=>{let a=o-r-(n-t);for(let i=0;i<s.length;i+=3){let r=s[i+1];if(r<0||t>r+u-e)continue;let o=s[i]+u-e;n>=o?s[i+1]=t<=o?-2:-1:t>=u&&a&&(s[i]+=a,s[i+1]+=a)}e+=a}),u=n.maps[l].map(u,-1)}let c=!1;for(let l=0;l<s.length;l+=3)if(s[l+1]<0){if(-2==s[l+1]){c=!0,s[l+1]=-1;continue}let t=n.map(e[l]+a),u=t-o;if(u<0||u>=r.content.size){c=!0;continue}let d=n.map(e[l+1]+a,-1),p=d-o,{index:f,offset:h}=r.content.findIndex(u),m=r.maybeChild(f);if(m&&h==u&&h+m.nodeSize==p){let r=s[l+2].mapInner(n,m,t+1,e[l]+a+1,i);r!=Hn?(s[l]=u,s[l+1]=p,s[l+2]=r):(s[l+1]=-2,c=!0)}else c=!0}if(c){let c=Wn(s,e,t,n,o,a,i),l=Jn(c,r,0,i);t=l.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<l.children.length;e+=3){let n=l.children[e];while(t<s.length&&s[t]<n)t+=3;s.splice(t,0,l.children[e],l.children[e+1],l.children[e+2])}}return new Gn(t.sort(Xn),s)}function qn(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let o=e[r];n.push(new Vn(o.from+t,o.to+t,o.type))}return n}function Wn(e,t,n,r,o,a,i){function s(e,t){for(let a=0;a<e.local.length;a++){let s=e.local[a].map(r,o,t);s?n.push(s):i.onRemove&&i.onRemove(e.local[a].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}for(let c=0;c<e.length;c+=3)-1==e[c+1]&&s(e[c+2],t[c]+a+1);return n}function Kn(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,o=null;for(let a,i=0;i<e.length;i++)(a=e[i])&&a.from>n&&a.to<r&&((o||(o=[])).push(a),e[i]=null);return o}function $n(e){let t=[];for(let n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Jn(e,t,n,r){let o=[],a=!1;t.forEach((t,i)=>{let s=Kn(e,t,i+n);if(s){a=!0;let e=Jn(s,t,n+i+1,r);e!=Hn&&o.push(i,i+t.nodeSize,e)}});let i=qn(a?$n(e):e,-n).sort(Xn);for(let s=0;s<i.length;s++)i[s].type.valid(t,i[s])||(r.onRemove&&r.onRemove(i[s].spec),i.splice(s--,1));return i.length||o.length?new Gn(i,o):Hn}function Xn(e,t){return e.from-t.from||e.to-t.to}function Qn(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let o=n+1;o<t.length;o++){let a=t[o];if(a.from!=r.from){a.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,a.from),Zn(t,o,r.copy(a.from,r.to)));break}a.to!=r.to&&(t==e&&(t=e.slice()),t[o]=a.copy(a.from,r.to),Zn(t,o+1,a.copy(r.to,a.to)))}}return t}function Zn(e,t,n){while(t<e.length&&Xn(n,e[t])>0)t++;e.splice(t,0,n)}function er(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=Hn&&t.push(r)}),e.cursorWrapper&&t.push(Gn.create(e.state.doc,[e.cursorWrapper.deco])),Yn.from(t)}const tr={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},nr=E&&j<=11;class rr{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class or{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new rr,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let e=0;e<t.length;e++)this.queue.push(t[e]);E&&j<=11&&t.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():R&&e.composing&&t.some(e=>"childList"==e.type&&"TR"==e.target.nodeName)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),nr&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,tr)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(st(this.view)){if(this.suppressingSelectionUpdates)return Xe(this.view);if(E&&j<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&d(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t,n=new Set;for(let o=e.focusNode;o;o=s(o))n.add(o);for(let o=e.anchorNode;o;o=s(o))if(n.has(o)){t=o;break}let r=t&&this.view.docView.nearestDesc(t);return r&&r.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&st(e)&&!this.ignoreSelectionChange(n),a=-1,i=-1,s=!1,c=[];if(e.editable)for(let r=0;r<t.length;r++){let e=this.registerMutation(t[r],c);e&&(a=a<0?e.from:Math.min(e.from,a),i=i<0?e.to:Math.max(e.to,i),e.typeOver&&(s=!0))}if(!c.some(e=>"BR"==e.nodeName)||8!=e.input.lastKeyCode&&46!=e.input.lastKeyCode){if(D&&c.length){let t=c.filter(e=>"BR"==e.nodeName);if(2==t.length){let[e,n]=t;e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of t){let t=r.parentNode;!t||"LI"!=t.nodeName||n&&ur(e,n)==t||r.remove()}}}}else for(let r of c)if("BR"==r.nodeName&&r.parentNode){let e=r.nextSibling;while(e&&1==e.nodeType){if("false"==e.contentEditable){r.parentNode.removeChild(r);break}e=e.firstChild}}let l=null;a<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&b(n)&&(l=$e(e))&&l.eq(r["f"].near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Xe(e),this.currentSelection.set(n),e.scrollToSelection()):(a>-1||o)&&(a>-1&&(e.docView.markDirty(a,i),sr(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,dr(e,c)),this.handleDOMChange(a,i,s,c),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||Xe(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),3==r.nodeType&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,o=e.nextSibling;if(E&&j<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:a}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!a||Array.prototype.indexOf.call(e.addedNodes,a)<0)&&(o=a)}let a=r&&r.parentNode==e.target?i(r)+1:0,s=n.localPosFromDOM(e.target,a,-1),c=o&&o.parentNode==e.target?i(o):e.target.childNodes.length,l=n.localPosFromDOM(e.target,c,1);return{from:s,to:l}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let ar=new WeakMap,ir=!1;function sr(e){if(!ar.has(e)&&(ar.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace))){if(e.requiresGeckoHackNode=D,ir)return;console["warn"]("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),ir=!0}}function cr(e,t){let n=t.startContainer,r=t.startOffset,o=t.endContainer,a=t.endOffset,i=e.domAtPos(e.state.selection.anchor);return d(i.node,i.offset,o,a)&&([n,r,o,a]=[o,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:a}}function lr(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return cr(e,n)}let n;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",r,!0),n?cr(e,n):null}function ur(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}function dr(e,t){var n;let{focusNode:r,focusOffset:o}=e.domSelectionRange();for(let a of t)if("TR"==(null===(n=a.parentNode)||void 0===n?void 0:n.nodeName)){let t=a.nextSibling;while(t&&"TD"!=t.nodeName&&"TH"!=t.nodeName)t=t.nextSibling;if(t){let n=t;for(;;){let e=n.firstChild;if(!e||1!=e.nodeType||"false"==e.contentEditable||/^(BR|IMG)$/.test(e.nodeName))break;n=e}n.insertBefore(a,n.firstChild),r==a&&e.domSelection().collapse(a,o)}else a.parentNode.removeChild(a)}}function pr(e,t,n){let r,{node:a,fromOffset:i,toOffset:s,from:c,to:l}=e.docView.parseRange(t,n),u=e.domSelectionRange(),d=u.anchorNode;if(d&&e.dom.contains(1==d.nodeType?d:d.parentNode)&&(r=[{node:d,offset:u.anchorOffset}],b(u)||r.push({node:u.focusNode,offset:u.focusOffset})),A&&8===e.input.lastKeyCode)for(let o=s;o>i;o--){let e=a.childNodes[o-1],t=e.pmViewDesc;if("BR"==e.nodeName&&!t){s=o;break}if(!t||t.size)break}let p=e.state.doc,f=e.someProp("domParser")||o["a"].fromSchema(e.state.schema),h=p.resolve(c),m=null,v=f.parse(a,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:i,to:s,preserveWhitespace:"pre"!=h.parent.type.whitespace||"full",findPositions:r,ruleFromNode:fr,context:h});if(r&&null!=r[0].pos){let e=r[0].pos,t=r[1]&&r[1].pos;null==t&&(t=e),m={anchor:e+c,head:t+c}}return{doc:v,sel:m,from:c,to:l}}function fr(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(R&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||R&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const hr=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function mr(e,t,n,o,a){let i=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=$e(e,t);if(n&&!e.state.selection.eq(n)){if(A&&V&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",t=>t(e,y(13,"Enter"))))return;let r=e.state.tr.setSelection(n);"pointer"==t?r.setMeta("pointer",!0):"key"==t&&r.scrollIntoView(),i&&r.setMeta("composition",i),e.dispatch(r)}return}let s=e.state.doc.resolve(t),c=s.sharedDepth(n);t=s.before(c+1),n=e.state.doc.resolve(n).after(c+1);let l,u,d=e.state.selection,p=pr(e,t,n),f=e.state.doc,h=f.slice(p.from,p.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(l=e.state.selection.to,u="end"):(l=e.state.selection.from,u="start"),e.input.lastKeyCode=null;let m=yr(h.content,p.doc.content,p.from,l,u);if(m&&e.input.domChangeCount++,(x&&e.input.lastIOSEnter>Date.now()-225||V)&&a.some(e=>1==e.nodeType&&!hr.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp("handleKeyDown",t=>t(e,y(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(!m){if(!(o&&d instanceof r["h"]&&!d.empty&&d.$head.sameParent(d.$anchor))||e.composing||p.sel&&p.sel.anchor!=p.sel.head){if(p.sel){let t=vr(e,e.state.doc,p.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);i&&n.setMeta("composition",i),e.dispatch(n)}}return}m={start:d.from,endA:d.to,endB:d.to}}e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof r["h"]&&(m.start>e.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=p.from?m.start=e.state.selection.from:m.endA<e.state.selection.to&&m.endA>=e.state.selection.to-2&&e.state.selection.to<=p.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),E&&j<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>p.from&&"  "==p.doc.textBetween(m.start-p.from-1,m.start-p.from+1)&&(m.start--,m.endA--,m.endB--);let v=p.doc.resolveNoCache(m.start-p.from),g=p.doc.resolveNoCache(m.endB-p.from),_=f.resolve(m.start),b=v.sameParent(g)&&v.parent.inlineContent&&_.end()>=m.endA;if((x&&e.input.lastIOSEnter>Date.now()-225&&(!b||a.some(e=>"DIV"==e.nodeName||"P"==e.nodeName))||!b&&v.pos<p.doc.content.size&&(!v.sameParent(g)||!v.parent.inlineContent)&&v.pos<g.pos&&!/\S/.test(p.doc.textBetween(v.pos,g.pos,"","")))&&e.someProp("handleKeyDown",t=>t(e,y(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(e.state.selection.anchor>m.start&&_r(f,m.start,m.endA,v,g)&&e.someProp("handleKeyDown",t=>t(e,y(8,"Backspace"))))return void(V&&A&&e.domObserver.suppressSelectionUpdates());A&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),V&&!b&&v.start()!=g.start()&&0==g.parentOffset&&v.depth==g.depth&&p.sel&&p.sel.anchor==p.sel.head&&p.sel.head==m.endA&&(m.endB-=2,g=p.doc.resolveNoCache(m.endB-p.from),setTimeout(()=>{e.someProp("handleKeyDown",(function(t){return t(e,y(13,"Enter"))}))},20));let O,M=m.start,k=m.endA,C=t=>{let n=t||e.state.tr.replace(M,k,p.doc.slice(m.start-p.from,m.endB-p.from));if(p.sel){let t=vr(e,n.doc,p.sel);t&&!(A&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==M||t.head==n.mapping.map(k)-1)||E&&t.empty&&t.head==M)&&n.setSelection(t)}return i&&n.setMeta("composition",i),n.scrollIntoView()};if(b)if(v.pos==g.pos){E&&j<=11&&0==v.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Xe(e),20));let t=C(e.state.tr.delete(M,k)),n=f.resolve(m.start).marksAcross(f.resolve(m.endA));n&&t.ensureMarks(n),e.dispatch(t)}else if(m.endA==m.endB&&(O=gr(v.parent.content.cut(v.parentOffset,g.parentOffset),_.parent.content.cut(_.parentOffset,m.endA-_.start())))){let t=C(e.state.tr);"add"==O.type?t.addMark(M,k,O.mark):t.removeMark(M,k,O.mark),e.dispatch(t)}else if(v.parent.child(v.index()).isText&&v.index()==g.index()-(g.textOffset?0:1)){let t=v.parent.textBetween(v.parentOffset,g.parentOffset),n=()=>C(e.state.tr.insertText(t,M,k));e.someProp("handleTextInput",r=>r(e,M,k,t,n))||e.dispatch(n())}else e.dispatch(C());else e.dispatch(C())}function vr(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:it(e,t.resolve(n.anchor),t.resolve(n.head))}function gr(e,t){let n,r,a,i=e.firstChild.marks,s=t.firstChild.marks,c=i,l=s;for(let o=0;o<s.length;o++)c=s[o].removeFromSet(c);for(let o=0;o<i.length;o++)l=i[o].removeFromSet(l);if(1==c.length&&0==l.length)r=c[0],n="add",a=e=>e.mark(r.addToSet(e.marks));else{if(0!=c.length||1!=l.length)return null;r=l[0],n="remove",a=e=>e.mark(r.removeFromSet(e.marks))}let u=[];for(let o=0;o<t.childCount;o++)u.push(a(t.child(o)));if(o["c"].from(u).eq(e))return{mark:r,type:n}}function _r(e,t,n,r,o){if(n-t<=o.pos-r.pos||br(r,!0,!1)<o.pos)return!1;let a=e.resolve(t);if(!r.parent.isTextblock){let e=a.nodeAfter;return null!=e&&n==t+e.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let i=e.resolve(br(a,!0,!0));return!(!i.parent.isTextblock||i.pos>n||br(i,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(i.parent.content)}function br(e,t,n){let r=e.depth,o=t?e.end():e.pos;while(r>0&&(t||e.indexAfter(r)==e.node(r).childCount))r--,o++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));while(t&&!t.isLeaf)t=t.firstChild,o++}return o}function yr(e,t,n,r,o){let a=e.findDiffStart(t,n);if(null==a)return null;let{a:i,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if("end"==o){let e=Math.max(0,a-Math.min(i,s));r-=i+e-a}if(i<a&&e.size<t.size){let e=r<=a&&r>=i?a-r:0;a-=e,a&&a<t.size&&Or(t.textBetween(a-1,a+1))&&(a+=e?1:-1),s=a+(s-i),i=a}else if(s<a){let t=r<=a&&r>=s?a-r:0;a-=t,a&&a<e.size&&Or(e.textBetween(a-1,a+1))&&(a+=t?1:-1),i=a+(i-s),s=a}return{start:a,endA:i,endB:s}}function Or(e){if(2!=e.length)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class Mr{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new $t,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(Er),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=wr(this),Cr(this),this.nodeViews=Tr(this),this.docView=Ee(this.state.doc,kr(this),er(this),this.dom,this),this.domObserver=new or(this,(e,t,n,r)=>mr(this,e,t,n,r)),this.domObserver.start(),Jt(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Zt(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Er),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let n in this._props)t[n]=this._props[n];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var n;let r=this.state,o=!1,a=!1;e.storedMarks&&this.composing&&(On(this),a=!0),this.state=e;let i=r.plugins!=e.plugins||this._props.plugins!=t.plugins;if(i||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=Tr(this);Ir(e,this.nodeViews)&&(this.nodeViews=e,o=!0)}(i||t.handleDOMEvents!=this._props.handleDOMEvents)&&Zt(this),this.editable=wr(this),Cr(this);let s=er(this),c=kr(this),l=r.plugins==e.plugins||r.doc.eq(e.doc)?e.scrollToSelection>r.scrollToSelection?"to selection":"preserve":"reset",u=o||!this.docView.matchesNode(e.doc,c,s);!u&&e.selection.eq(r.selection)||(a=!0);let d="preserve"==l&&a&&null==this.dom.style.overflowAnchor&&q(this);if(a){this.domObserver.stop();let t=u&&(E||A)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&Sr(r.selection,e.selection);if(u){let n=A?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Mn(this)),!o&&this.docView.update(e.doc,c,s,this)||(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=Ee(e.doc,c,s,this.dom,this)),!n||this.trackWrites&&this.dom.contains(this.trackWrites)||(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&lt(this))?Xe(this,t):(ot(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),(null===(n=this.dragging)||void 0===n?void 0:n.node)&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),"reset"==l?this.dom.scrollTop=0:"to selection"==l?this.scrollToSelection():d&&K(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(e&&this.dom.contains(1==e.nodeType?e:e.parentNode))if(this.someProp("handleScrollToSelection",e=>e(this)));else if(this.state.selection instanceof r["c"]){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&z(this,t.getBoundingClientRect(),e)}else z(this,this.coordsAtPos(this.state.selection.head,1),e);else;}destroyPluginViews(){let e;while(e=this.pluginViews.pop())e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}updateDraggedNode(e,t){let n=e.node,o=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)o=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size),r=e>0&&e<this.state.doc.content.size&&this.state.doc.nodeAt(e);r==n.node&&(o=e)}this.dragging=new Dn(e.slice,e.move,o<0?void 0:r["c"].create(this.state.doc,o))}someProp(e,t){let n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;for(let a=0;a<this.directPlugins.length;a++){let r=this.directPlugins[a].props[e];if(null!=r&&(n=t?t(r):r))return n}let o=this.state.plugins;if(o)for(let a=0;a<o.length;a++){let r=o[a].props[e];if(null!=r&&(n=t?t(r):r))return n}}hasFocus(){if(E){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;while(e&&this.dom!=e&&this.dom.contains(e)){if("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&X(this.dom),Xe(this),this.domObserver.start()}get root(){let e=this._root;if(null==e)for(let t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t;return e||document}updateRoot(){this._root=null}posAtCoords(e){return ae(this,e)}coordsAtPos(e,t=1){return le(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return be(this,t||this.state,e)}pasteHTML(e,t){return En(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return En(this,e,null,!0,t||new ClipboardEvent("paste"))}serializeForClipboard(e){return Et(this,e)}destroy(){this.docView&&(Qt(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],er(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,u())}get isDestroyed(){return null==this.docView}dispatchEvent(e){return nn(this,e)}domSelectionRange(){let e=this.domSelection();return e?R&&11===this.root.nodeType&&O(this.dom.ownerDocument)==this.dom&&lr(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function kr(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e?t.class+=" "+n[e]:"style"==e?t.style=(t.style?t.style+";":"")+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))}),t.translate||(t.translate="no"),[Vn.node(0,e.state.doc.content.size,t)]}function Cr(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:Vn.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function wr(e){return!e.someProp("editable",t=>!1===t(e.state))}function Sr(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function Tr(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function Ir(e,t){let n=0,r=0;for(let o in e){if(e[o]!=t[o])return!0;n++}for(let o in t)r++;return n!=r}function Er(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}Mr.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}},ebb5:function(e,t,n){"use strict";var r,o,a,i=n("4b11"),s=n("83ab"),c=n("cfe9"),l=n("1626"),u=n("861d"),d=n("1a2d"),p=n("f5df"),f=n("0d51"),h=n("9112"),m=n("cb2d"),v=n("edd0"),g=n("3a9b"),_=n("e163"),b=n("d2bb"),y=n("b622"),O=n("90e3"),M=n("69f3"),k=M.enforce,C=M.get,w=c.Int8Array,S=w&&w.prototype,T=c.Uint8ClampedArray,I=T&&T.prototype,E=w&&_(w),j=S&&_(S),D=Object.prototype,L=c.TypeError,A=y("toStringTag"),N=O("TYPED_ARRAY_TAG"),R="TypedArrayConstructor",x=i&&!!b&&"Opera"!==p(c.opera),P=!1,U={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},V={BigInt64Array:8,BigUint64Array:8},B=function(e){if(!u(e))return!1;var t=p(e);return"DataView"===t||d(U,t)||d(V,t)},F=function(e){var t=_(e);if(u(t)){var n=C(t);return n&&d(n,R)?n[R]:F(t)}},G=function(e){if(!u(e))return!1;var t=p(e);return d(U,t)||d(V,t)},H=function(e){if(G(e))return e;throw new L("Target is not a typed array")},Y=function(e){if(l(e)&&(!b||g(E,e)))return e;throw new L(f(e)+" is not a typed array constructor")},z=function(e,t,n,r){if(s){if(n)for(var o in U){var a=c[o];if(a&&d(a.prototype,e))try{delete a.prototype[e]}catch(i){try{a.prototype[e]=t}catch(l){}}}j[e]&&!n||m(j,e,n?t:x&&S[e]||t,r)}},q=function(e,t,n){var r,o;if(s){if(b){if(n)for(r in U)if(o=c[r],o&&d(o,e))try{delete o[e]}catch(a){}if(E[e]&&!n)return;try{return m(E,e,n?t:x&&E[e]||t)}catch(a){}}for(r in U)o=c[r],!o||o[e]&&!n||m(o,e,t)}};for(r in U)o=c[r],a=o&&o.prototype,a?k(a)[R]=o:x=!1;for(r in V)o=c[r],a=o&&o.prototype,a&&(k(a)[R]=o);if((!x||!l(E)||E===Function.prototype)&&(E=function(){throw new L("Incorrect invocation")},x))for(r in U)c[r]&&b(c[r],E);if((!x||!j||j===D)&&(j=E.prototype,x))for(r in U)c[r]&&b(c[r].prototype,j);if(x&&_(I)!==j&&b(I,j),s&&!d(j,A))for(r in P=!0,v(j,A,{configurable:!0,get:function(){return u(this)?this[N]:void 0}}),U)c[r]&&h(c[r].prototype,N,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:x,TYPED_ARRAY_TAG:P&&N,aTypedArray:H,aTypedArrayConstructor:Y,exportTypedArrayMethod:z,exportTypedArrayStaticMethod:q,getTypedArrayConstructor:F,isView:B,isTypedArray:G,TypedArray:E,TypedArrayPrototype:j}},ebe4:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return t}))},ec18:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,r){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?o[n][2]?o[n][2]:o[n][1]:r?o[n][0]:o[n][1]}var n=e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return n}))},ec2e:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:0,doy:6}});return t}))},ec4e:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("1ad4");const o=r["c"].create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",Object(r["k"])(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}})},ec62:function(e,t,n){"use strict";var r=n("3584"),o=n("dfdb"),a=n("1875"),i=n("2f97");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(s){}return function(n,r){return a(n),i(r),o(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},ec69:function(e,t,n){e.exports=n("fc6c3")},eda5:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}});return t}))},edbd:function(e,t,n){"use strict";var r=n("9883");e.exports=r("document","documentElement")},edd0:function(e,t,n){"use strict";var r=n("13d2"),o=n("9bf2");e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},edd9:function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return m}));var r=n("045d"),o=n.n(r),a=n("bfce"),i=n("8afb"),s=n("4cb3"),c=n("304f"),l=n("0a08"),u=n("27b6"),d=n("5143"),p=n("4c52"),f=n("7a23");const h=Object(f["ref"])();function m(e,t){const n=Object(f["getCurrentInstance"])()?Object(f["inject"])(p["a"],h):h;return e?Object(f["computed"])(()=>{var r,o;return null!==(r=null===(o=n.value)||void 0===o?void 0:o[e])&&void 0!==r?r:t}):n}function v(e,t){const n=m(),r=Object(c["d"])(e,Object(f["computed"])(()=>{var e;return(null===(e=n.value)||void 0===e?void 0:e.namespace)||c["a"]})),o=Object(s["b"])(Object(f["computed"])(()=>{var e;return null===(e=n.value)||void 0===e?void 0:e.locale})),a=Object(l["b"])(Object(f["computed"])(()=>{var e;return(null===(e=n.value)||void 0===e?void 0:e.zIndex)||l["a"]})),i=Object(f["computed"])(()=>{var e;return Object(f["unref"])(t)||(null===(e=n.value)||void 0===e?void 0:e.size)||""});return g(Object(f["computed"])(()=>Object(f["unref"])(n)||{})),{ns:r,locale:o,zIndex:a,size:i}}const g=(e,t,n=!1)=>{var r;const o=!!Object(f["getCurrentInstance"])(),a=o?m():void 0,v=null!==(r=null===t||void 0===t?void 0:t.provide)&&void 0!==r?r:o?f["provide"]:void 0;if(!v)return void Object(i["a"])("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");const g=Object(f["computed"])(()=>{const t=Object(f["unref"])(e);return null!==a&&void 0!==a&&a.value?_(a.value,t):t});return v(p["a"],g),v(s["a"],Object(f["computed"])(()=>g.value.locale)),v(c["b"],Object(f["computed"])(()=>g.value.namespace)),v(l["c"],Object(f["computed"])(()=>g.value.zIndex)),v(u["a"],{size:Object(f["computed"])(()=>g.value.size||"")}),v(d["a"],Object(f["computed"])(()=>({emptyValues:g.value.emptyValues,valueOnClear:g.value.valueOnClear}))),!n&&h.value||(h.value=g.value),g},_=(e,t)=>{const n=[...new o.a([...Object(a["c"])(e),...Object(a["c"])(t)])],r={};for(const o of n)r[o]=void 0!==t[o]?t[o]:e[o];return r}},ee07:function(e,t,n){"use strict";var r=n("3eba"),o=n("06fa"),a=n("ce18"),i=n("8c12"),s=n("ff96").trim,c=n("81f0"),l=a("".charAt),u=r.parseFloat,d=r.Symbol,p=d&&d.iterator,f=1/u(c+"-0")!==-1/0||p&&!o((function(){u(Object(p))}));e.exports=f?function(e){var t=s(i(e)),n=u(t);return 0===n&&"-"===l(t,0)?-0:n}:u},ef09:function(e,t,n){"use strict";var r=n("9883"),o=n("f94a"),a=n("2874");o("toStringTag"),a(r("Symbol"),"Symbol")},ef6d:function(e,t,n){"use strict";var r,o,a,i,s=n("a5eb"),c=n("7042"),l=n("d68b"),u=n("3eba"),d=n("764b"),p=n("7106"),f=n("fdbe"),h=n("ec62"),m=n("2874"),v=n("d383"),g=n("4e19"),_=n("fb2d"),b=n("dfdb"),y=n("5f7d"),O=n("b0ea"),M=n("5afb").set,k=n("a0e6"),C=n("c2f0"),w=n("9b8d"),S=n("e889"),T=n("2f5a"),I=n("96ed"),E=n("baa7"),j=n("ad27"),D="Promise",L=E.CONSTRUCTOR,A=E.REJECTION_EVENT,N=E.SUBCLASSING,R=T.getterFor(D),x=T.set,P=I&&I.prototype,U=I,V=P,B=u.TypeError,F=u.document,G=u.process,H=j.f,Y=H,z=!!(F&&F.createEvent&&u.dispatchEvent),q="unhandledrejection",W="rejectionhandled",K=0,$=1,J=2,X=1,Q=2,Z=function(e){var t;return!(!b(e)||!_(t=e.then))&&t},ee=function(e,t){var n,r,o,a=t.value,i=t.state===$,s=i?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(i||(t.rejection===Q&&ae(t),t.rejection=X),!0===s?n=a:(u&&u.enter(),n=s(a),u&&(u.exit(),o=!0)),n===e.promise?l(new B("Promise-chain cycle")):(r=Z(n))?p(r,n,c,l):c(n)):l(a)}catch(d){u&&!o&&u.exit(),l(d)}},te=function(e,t){e.notified||(e.notified=!0,k((function(){var n,r=e.reactions;while(n=r.get())ee(n,e);e.notified=!1,t&&!e.rejection&&re(e)})))},ne=function(e,t,n){var r,o;z?(r=F.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!A&&(o=u["on"+e])?o(r):e===q&&C("Unhandled promise rejection",n)},re=function(e){p(M,u,(function(){var t,n=e.facade,r=e.value,o=oe(e);if(o&&(t=w((function(){l?G.emit("unhandledRejection",r,n):ne(q,n,r)})),e.rejection=l||oe(e)?Q:X,t.error))throw t.value}))},oe=function(e){return e.rejection!==X&&!e.parent},ae=function(e){p(M,u,(function(){var t=e.facade;l?G.emit("rejectionHandled",t):ne(W,t,e.value)}))},ie=function(e,t,n){return function(r){e(t,r,n)}},se=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=J,te(e,!0))},ce=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new B("Promise can't be resolved itself");var r=Z(t);r?k((function(){var n={done:!1};try{p(r,t,ie(ce,n,e),ie(se,n,e))}catch(o){se(n,o,e)}})):(e.value=t,e.state=$,te(e,!1))}catch(o){se({done:!1},o,e)}}};if(L&&(U=function(e){y(this,V),g(e),p(r,this);var t=R(this);try{e(ie(ce,t),ie(se,t))}catch(n){se(t,n)}},V=U.prototype,r=function(e){x(this,{type:D,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:K,value:null})},r.prototype=f(V,"then",(function(e,t){var n=R(this),r=H(O(this,U));return n.parent=!0,r.ok=!_(e)||e,r.fail=_(t)&&t,r.domain=l?G.domain:void 0,n.state===K?n.reactions.add(r):k((function(){ee(r,n)})),r.promise})),o=function(){var e=new r,t=R(e);this.promise=e,this.resolve=ie(ce,t),this.reject=ie(se,t)},j.f=H=function(e){return e===U||e===a?new o(e):Y(e)},!c&&_(I)&&P!==Object.prototype)){i=P.then,N||f(P,"then",(function(e,t){var n=this;return new U((function(e,t){p(i,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete P.constructor}catch(le){}h&&h(P,V)}s({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:U}),a=d.Promise,m(U,D,!1,!0),v(D)},ef8f:function(e,t,n){"use strict";var r=n("2c0f");e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},efb3:function(e,t,n){"use strict";var r=n("dfdb"),o=n("2f5a").get;e.exports=function(e){if(!r(e))return!1;var t=o(e);return!!t&&"RawJSON"===t.type}},f135:function(e,t,n){"use strict";var r=n("96ed"),o=n("7de7"),a=n("baa7").CONSTRUCTOR;e.exports=a||!o((function(e){r.all(e).then(void 0,(function(){}))}))},f213:function(e,t,n){"use strict";var r=n("00ce"),o=n("3bbf"),a=n("2714"),i=n("0d25"),s=r("%Map%",!0),c=o("Map.prototype.get",!0),l=o("Map.prototype.set",!0),u=o("Map.prototype.has",!0),d=o("Map.prototype.delete",!0),p=o("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+a(e))},delete:function(t){if(e){var n=d(e,t);return 0===p(e)&&(e=void 0),n}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,n){e||(e=new s),l(e,t,n)}};return t}},f257:function(e,t,n){"use strict";var r=n("6326");e.exports=r},f260:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},f2de:function(e,t,n){"use strict";var r=n("a5eb"),o=n("8aa9");r({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:o})},f2e1:function(e,t,n){"use strict";e.exports="undefined"!==typeof Reflect&&Reflect.getPrototypeOf||null},f3a3:function(e,t,n){"use strict";var r=n("06fa"),o=n("2c6c");e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},f3ff:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t={1:"",2:"੨",3:"੩",4:"",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:""},n={"":"1","੨":"2","੩":"3","":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","":"0"},r=e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});return r}))},f446:function(e,t,n){"use strict";n("d925");var r=n("764b"),o=r.Object;e.exports=function(e,t){return o.create(e,t)}},f44f:function(e,t,n){"use strict";var r=n("c1b2"),o=n("ce18"),a=n("7106"),i=n("06fa"),s=n("a016"),c=n("a205"),l=n("7043"),u=n("4fff"),d=n("638c"),p=Object.assign,f=Object.defineProperty,h=o([].concat);e.exports=!p||i((function(){if(r&&1!==p({b:1},p(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!==p({},e)[n]||s(p({},t)).join("")!==o}))?function(e,t){var n=u(e),o=arguments.length,i=1,p=c.f,f=l.f;while(o>i){var m,v=d(arguments[i++]),g=p?h(s(v),p(v)):s(v),_=g.length,b=0;while(_>b)m=g[b++],r&&!a(f,v,m)||(n[m]=v[m])}return n}:p},f474:function(e,t,n){"use strict";n("7116");var r=n("c18e");e.exports=r("Array","splice")},f475:function(e,t,n){"use strict";var r=n("7ca7");e.exports=r},f495:function(e,t,n){"use strict";var r=n("c04e"),o=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new o("Can't convert number to bigint");return BigInt(t)}},f4c9:function(e,t,n){"use strict";var r=n("437b"),o=n("3b7b"),a=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===a||r(a,e)&&t===a.indexOf?o:t}},f4e0:function(e,t,n){"use strict";e.exports=n("6dee")},f4eb:function(e,t,n){"use strict";n.r(t),n.d(t,"CompileErrorCodes",(function(){return u})),n.d(t,"CompileWarnCodes",(function(){return s})),n.d(t,"ERROR_DOMAIN",(function(){return S})),n.d(t,"LOCATION_STUB",(function(){return o})),n.d(t,"baseCompile",(function(){return z})),n.d(t,"createCompileError",(function(){return p})),n.d(t,"createCompileWarn",(function(){return l})),n.d(t,"createLocation",(function(){return i})),n.d(t,"createParser",(function(){return E})),n.d(t,"createPosition",(function(){return a})),n.d(t,"defaultOnError",(function(){return f})),n.d(t,"detectHtmlTag",(function(){return m})),n.d(t,"errorMessages",(function(){return d})),n.d(t,"warnMessages",(function(){return c}));var r=n("25de");
/*!
* message-compiler v9.14.4
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
const o={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function a(e,t,n){return{line:e,column:t,offset:n}}function i(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const s={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},c={[s.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function l(e,t,...n){const r=e,o={message:String(r),code:e};return t&&(o.location=t),o}const u={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},d={[u.EXPECTED_TOKEN]:"Expected token: '{0}'",[u.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[u.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[u.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[u.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[u.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[u.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[u.EMPTY_PLACEHOLDER]:"Empty placeholder",[u.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[u.INVALID_LINKED_FORMAT]:"Invalid linked format",[u.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[u.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[u.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[u.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[u.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[u.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function p(e,t,n={}){const{domain:r,messages:o,args:a}=n,i=e,s=new SyntaxError(String(i));return s.code=e,t&&(s.location=t),s.domain=r,s}function f(e){throw e}const h=/<\/?[\w\s="/.':;#-\/]+>/,m=e=>h.test(e),v=" ",g="\r",_="\n",b=String.fromCharCode(8232),y=String.fromCharCode(8233);function O(e){const t=e;let n=0,r=1,o=1,a=0;const i=e=>t[e]===g&&t[e+1]===_,s=e=>t[e]===_,c=e=>t[e]===y,l=e=>t[e]===b,u=e=>i(e)||s(e)||c(e)||l(e),d=()=>n,p=()=>r,f=()=>o,h=()=>a,m=e=>i(e)||c(e)||l(e)?_:t[e],v=()=>m(n),O=()=>m(n+a);function M(){return a=0,u(n)&&(r++,o=0),i(n)&&n++,n++,o++,t[n]}function k(){return i(n+a)&&a++,a++,t[n+a]}function C(){n=0,r=1,o=1,a=0}function w(e=0){a=e}function S(){const e=n+a;while(e!==n)M();a=0}return{index:d,line:p,column:f,peekOffset:h,charAt:m,currentChar:v,currentPeek:O,next:M,peek:k,reset:C,resetPeek:w,skipToPeek:S}}const M=void 0,k="'",C="tokenizer";function w(e,t={}){const n=!1!==t.location,r=O(e),o=()=>r.index(),s=()=>a(r.line(),r.column(),r.index()),c=s(),l=o(),d={currentType:14,offset:l,startLoc:c,endLoc:c,lastType:14,lastOffset:l,lastStartLoc:c,lastEndLoc:c,braceNest:0,inLinked:!1,text:""},f=()=>d,{onError:h}=t;function m(e,t,r,...o){const a=f();if(t.column+=r,t.offset+=r,h){const r=n?i(a.startLoc,t):null,s=p(e,r,{domain:C,args:o});h(s)}}function g(e,t,r){e.endLoc=s(),e.currentType=t;const o={type:t};return n&&(o.loc=i(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const b=e=>g(e,14);function y(e,t){return e.currentChar()===t?(e.next(),t):(m(u.EXPECTED_TOKEN,s(),0,t),"")}function w(e){let t="";while(e.currentPeek()===v||e.currentPeek()===_)t+=e.currentPeek(),e.peek();return t}function S(e){const t=w(e);return e.skipToPeek(),t}function T(e){if(e===M)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function I(e){if(e===M)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}function E(e,t){const{currentType:n}=t;if(2!==n)return!1;w(e);const r=T(e.currentPeek());return e.resetPeek(),r}function j(e,t){const{currentType:n}=t;if(2!==n)return!1;w(e);const r="-"===e.currentPeek()?e.peek():e.currentPeek(),o=I(r);return e.resetPeek(),o}function D(e,t){const{currentType:n}=t;if(2!==n)return!1;w(e);const r=e.currentPeek()===k;return e.resetPeek(),r}function L(e,t){const{currentType:n}=t;if(8!==n)return!1;w(e);const r="."===e.currentPeek();return e.resetPeek(),r}function A(e,t){const{currentType:n}=t;if(9!==n)return!1;w(e);const r=T(e.currentPeek());return e.resetPeek(),r}function N(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;w(e);const r=":"===e.currentPeek();return e.resetPeek(),r}function R(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?T(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===v||!t)&&(t===_?(e.peek(),r()):U(e,!1))},o=r();return e.resetPeek(),o}function x(e){w(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function P(e){const t=w(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}function U(e,t=!0){const n=(t=!1,r="",o=!1)=>{const a=e.currentPeek();return"{"===a?"%"!==r&&t:"@"!==a&&a?"%"===a?(e.peek(),n(t,"%",!0)):"|"===a?!("%"!==r&&!o)||!(r===v||r===_):a===v?(e.peek(),n(!0,v,o)):a!==_||(e.peek(),n(!0,_,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function V(e,t){const n=e.currentChar();return n===M?M:t(n)?(e.next(),n):null}function B(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function F(e){return V(e,B)}function G(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function H(e){return V(e,G)}function Y(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function z(e){return V(e,Y)}function q(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function W(e){return V(e,q)}function K(e){let t="",n="";while(t=z(e))n+=t;return n}function $(e){S(e);const t=e.currentChar();return"%"!==t&&m(u.EXPECTED_TOKEN,s(),0,t),e.next(),"%"}function J(e){let t="";while(1){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!U(e))break;t+=n,e.next()}else if(n===v||n===_)if(U(e))t+=n,e.next();else{if(x(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function X(e){S(e);let t="",n="";while(t=H(e))n+=t;return e.currentChar()===M&&m(u.UNTERMINATED_CLOSING_BRACE,s(),0),n}function Q(e){S(e);let t="";return"-"===e.currentChar()?(e.next(),t+="-"+K(e)):t+=K(e),e.currentChar()===M&&m(u.UNTERMINATED_CLOSING_BRACE,s(),0),t}function Z(e){return e!==k&&e!==_}function ee(e){S(e),y(e,"'");let t="",n="";while(t=V(e,Z))n+="\\"===t?te(e):t;const r=e.currentChar();return r===_||r===M?(m(u.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),r===_&&(e.next(),y(e,"'")),n):(y(e,"'"),n)}function te(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),"\\"+t;case"u":return ne(e,t,4);case"U":return ne(e,t,6);default:return m(u.UNKNOWN_ESCAPE_SEQUENCE,s(),0,t),""}}function ne(e,t,n){y(e,t);let r="";for(let o=0;o<n;o++){const n=W(e);if(!n){m(u.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function re(e){return"{"!==e&&"}"!==e&&e!==v&&e!==_}function oe(e){S(e);let t="",n="";while(t=V(e,re))n+=t;return n}function ae(e){let t="",n="";while(t=F(e))n+=t;return n}function ie(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"%"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===v?n:(n+=r,e.next(),t(n)):n};return t("")}function se(e){S(e);const t=y(e,"|");return S(e),t}function ce(e,t){let n=null;const r=e.currentChar();switch(r){case"{":return t.braceNest>=1&&m(u.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),e.next(),n=g(t,2,"{"),S(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&m(u.EMPTY_PLACEHOLDER,s(),0),e.next(),n=g(t,3,"}"),t.braceNest--,t.braceNest>0&&S(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&m(u.UNTERMINATED_CLOSING_BRACE,s(),0),n=le(e,t)||b(t),t.braceNest=0,n;default:{let r=!0,o=!0,a=!0;if(x(e))return t.braceNest>0&&m(u.UNTERMINATED_CLOSING_BRACE,s(),0),n=g(t,1,se(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return m(u.UNTERMINATED_CLOSING_BRACE,s(),0),t.braceNest=0,ue(e,t);if(r=E(e,t))return n=g(t,5,X(e)),S(e),n;if(o=j(e,t))return n=g(t,6,Q(e)),S(e),n;if(a=D(e,t))return n=g(t,7,ee(e)),S(e),n;if(!r&&!o&&!a)return n=g(t,13,oe(e)),m(u.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,n.value),S(e),n;break}}return n}function le(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||o!==_&&o!==v||m(u.INVALID_LINKED_FORMAT,s(),0),o){case"@":return e.next(),r=g(t,8,"@"),t.inLinked=!0,r;case".":return S(e),e.next(),g(t,9,".");case":":return S(e),e.next(),g(t,10,":");default:return x(e)?(r=g(t,1,se(e)),t.braceNest=0,t.inLinked=!1,r):L(e,t)||N(e,t)?(S(e),le(e,t)):A(e,t)?(S(e),g(t,12,ae(e))):R(e,t)?(S(e),"{"===o?ce(e,t)||r:g(t,11,ie(e))):(8===n&&m(u.INVALID_LINKED_FORMAT,s(),0),t.braceNest=0,t.inLinked=!1,ue(e,t))}}function ue(e,t){let n={type:14};if(t.braceNest>0)return ce(e,t)||b(t);if(t.inLinked)return le(e,t)||b(t);const r=e.currentChar();switch(r){case"{":return ce(e,t)||b(t);case"}":return m(u.UNBALANCED_CLOSING_BRACE,s(),0),e.next(),g(t,3,"}");case"@":return le(e,t)||b(t);default:{if(x(e))return n=g(t,1,se(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:o}=P(e);if(r)return o?g(t,0,J(e)):g(t,4,$(e));if(U(e))return g(t,0,J(e));break}}return n}function de(){const{currentType:e,offset:t,startLoc:n,endLoc:a}=d;return d.lastType=e,d.lastOffset=t,d.lastStartLoc=n,d.lastEndLoc=a,d.offset=o(),d.startLoc=s(),r.currentChar()===M?g(d,14):ue(r,d)}return{nextToken:de,currentOffset:o,currentPosition:s,context:f}}const S="parser",T=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function I(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):""}}}function E(e={}){const t=!1!==e.location,{onError:n,onWarn:o}=e;function a(e,r,o,a,...s){const c=e.currentPosition();if(c.offset+=a,c.column+=a,n){const e=t?i(o,c):null,a=p(r,e,{domain:S,args:s});n(a)}}function c(e,n,r,a,...s){const c=e.currentPosition();if(c.offset+=a,c.column+=a,o){const e=t?i(r,c):null;o(l(n,e,s))}}function d(e,n,r){const o={type:e};return t&&(o.start=n,o.end=n,o.loc={start:r,end:r}),o}function f(e,n,r,o){o&&(e.type=o),t&&(e.end=n,e.loc&&(e.loc.end=r))}function h(e,t){const n=e.context(),r=d(3,n.offset,n.startLoc);return r.value=t,f(r,e.currentOffset(),e.currentPosition()),r}function m(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,a=d(5,r,o);return a.index=parseInt(t,10),e.nextToken(),f(a,e.currentOffset(),e.currentPosition()),a}function v(e,t,n){const r=e.context(),{lastOffset:o,lastStartLoc:a}=r,i=d(4,o,a);return i.key=t,!0===n&&(i.modulo=!0),e.nextToken(),f(i,e.currentOffset(),e.currentPosition()),i}function g(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,a=d(9,r,o);return a.value=t.replace(T,I),e.nextToken(),f(a,e.currentOffset(),e.currentPosition()),a}function _(e){const t=e.nextToken(),n=e.context(),{lastOffset:r,lastStartLoc:o}=n,i=d(8,r,o);return 12!==t.type?(a(e,u.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),i.value="",f(i,r,o),{nextConsumeToken:t,node:i}):(null==t.value&&a(e,u.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,j(t)),i.value=t.value||"",f(i,e.currentOffset(),e.currentPosition()),{node:i})}function b(e,t){const n=e.context(),r=d(7,n.offset,n.startLoc);return r.value=t,f(r,e.currentOffset(),e.currentPosition()),r}function y(e){const t=e.context(),n=d(6,t.offset,t.startLoc);let r=e.nextToken();if(9===r.type){const t=_(e);n.modifier=t.node,r=t.nextConsumeToken||e.nextToken()}switch(10!==r.type&&a(e,u.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j(r)),r=e.nextToken(),2===r.type&&(r=e.nextToken()),r.type){case 11:null==r.value&&a(e,u.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j(r)),n.key=b(e,r.value||"");break;case 5:null==r.value&&a(e,u.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j(r)),n.key=v(e,r.value||"");break;case 6:null==r.value&&a(e,u.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j(r)),n.key=m(e,r.value||"");break;case 7:null==r.value&&a(e,u.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j(r)),n.key=g(e,r.value||"");break;default:{a(e,u.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const o=e.context(),i=d(7,o.offset,o.startLoc);return i.value="",f(i,o.offset,o.startLoc),n.key=i,f(n,o.offset,o.startLoc),{nextConsumeToken:r,node:n}}}return f(n,e.currentOffset(),e.currentPosition()),{node:n}}function O(e){const t=e.context(),n=1===t.currentType?e.currentOffset():t.offset,r=1===t.currentType?t.endLoc:t.startLoc,o=d(2,n,r);o.items=[];let i=null,l=null;do{const n=i||e.nextToken();switch(i=null,n.type){case 0:null==n.value&&a(e,u.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j(n)),o.items.push(h(e,n.value||""));break;case 6:null==n.value&&a(e,u.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j(n)),o.items.push(m(e,n.value||""));break;case 4:l=!0;break;case 5:null==n.value&&a(e,u.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j(n)),o.items.push(v(e,n.value||"",!!l)),l&&(c(e,s.USE_MODULO_SYNTAX,t.lastStartLoc,0,j(n)),l=null);break;case 7:null==n.value&&a(e,u.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,j(n)),o.items.push(g(e,n.value||""));break;case 8:{const t=y(e);o.items.push(t.node),i=t.nextConsumeToken||null;break}}}while(14!==t.currentType&&1!==t.currentType);const p=1===t.currentType?t.lastOffset:e.currentOffset(),_=1===t.currentType?t.lastEndLoc:e.currentPosition();return f(o,p,_),o}function M(e,t,n,r){const o=e.context();let i=0===r.items.length;const s=d(1,t,n);s.cases=[],s.cases.push(r);do{const t=O(e);i||(i=0===t.items.length),s.cases.push(t)}while(14!==o.currentType);return i&&a(e,u.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),f(s,e.currentOffset(),e.currentPosition()),s}function k(e){const t=e.context(),{offset:n,startLoc:r}=t,o=O(e);return 14===t.currentType?o:M(e,n,r,o)}function C(n){const o=w(n,Object(r["assign"])({},e)),i=o.context(),s=d(0,i.offset,i.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=k(o),e.onCacheKey&&(s.cacheKey=e.onCacheKey(n)),14!==i.currentType&&a(o,u.UNEXPECTED_LEXICAL_ANALYSIS,i.lastStartLoc,0,n[i.offset]||""),f(s,o.currentOffset(),o.currentPosition()),s}return{parse:C}}function j(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function D(e,t={}){const n={ast:e,helpers:new Set},r=()=>n,o=e=>(n.helpers.add(e),e);return{context:r,helper:o}}function L(e,t){for(let n=0;n<e.length;n++)A(e[n],t)}function A(e,t){switch(e.type){case 1:L(e.cases,t),t.helper("plural");break;case 2:L(e.items,t);break;case 6:{const n=e;A(n.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function N(e,t={}){const n=D(e);n.helper("normalize"),e.body&&A(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function R(e){const t=e.body;return 2===t.type?x(t):t.cases.forEach(e=>x(e)),e}function x(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=Object(r["join"])(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function P(e){switch(e.t=e.type,e.type){case 0:{const t=e;P(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)P(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)P(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;P(t.key),t.k=t.key,delete t.key,t.modifier&&(P(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:0}delete e.type}function U(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:a}=t,i=!1!==t.location,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:a,indentLevel:0};i&&e.loc&&(s.source=e.loc.source);const c=()=>s;function l(e,t){s.code+=e}function u(e,t=!0){const n=t?o:"";l(a?n+" ".repeat(e):n)}function d(e=!0){const t=++s.indentLevel;e&&u(t)}function p(e=!0){const t=--s.indentLevel;e&&u(t)}function f(){u(s.indentLevel)}const h=e=>"_"+e,m=()=>s.needIndent;return{context:c,push:l,indent:d,deindent:p,newline:f,helper:h,needIndent:m}}function V(e,t){const{helper:n}=e;e.push(n("linked")+"("),H(e,t.key),t.modifier?(e.push(", "),H(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function B(e,t){const{helper:n,needIndent:r}=e;e.push(n("normalize")+"(["),e.indent(r());const o=t.items.length;for(let a=0;a<o;a++){if(H(e,t.items[a]),a===o-1)break;e.push(", ")}e.deindent(r()),e.push("])")}function F(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(n("plural")+"(["),e.indent(r());const o=t.cases.length;for(let n=0;n<o;n++){if(H(e,t.cases[n]),n===o-1)break;e.push(", ")}e.deindent(r()),e.push("])")}}function G(e,t){t.body?H(e,t.body):e.push("null")}function H(e,t){const{helper:n}=e;switch(t.type){case 0:G(e,t);break;case 1:F(e,t);break;case 2:B(e,t);break;case 6:V(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:0}}const Y=(e,t={})=>{const n=Object(r["isString"])(t.mode)?t.mode:"normal",o=Object(r["isString"])(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,i=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,c=e.helpers||[],l=U(e,{mode:n,filename:o,sourceMap:a,breakLineCode:i,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),c.length>0&&(l.push(`const { ${Object(r["join"])(c.map(e=>`${e}: _${e}`),", ")} } = ctx`),l.newline()),l.push("return "),H(l,e),l.deindent(s),l.push("}"),delete e.helpers;const{code:u,map:d}=l.context();return{ast:e,code:u,map:d?d.toJSON():void 0}};function z(e,t={}){const n=Object(r["assign"])({},t),o=!!n.jit,a=!!n.minify,i=null==n.optimize||n.optimize,s=E(n),c=s.parse(e);return o?(i&&R(c),a&&P(c),{ast:c,code:""}):(N(c,n),Y(c,n))}},f512:function(e,t,n){"use strict";var r=n("2d80"),o=n("9474"),a=n("800f"),i=n("fc56");n("d9e2"),n("14d9"),r(t,"__esModule",{value:!0}),t.bounds=t.random=void 0;const s=n("740b");function c(e={}){if(void 0!==e.count&&null!==e.count){const t=e.count,n=[];e.count=void 0;while(t>n.length)e.count=null,e.seed&&(e.seed+=1),n.push(c(e));return e.count=t,n}const t=l(e.hue,e.seed),n=u(t,e),r=d(t,n,e),o={h:t,s:n,v:r};return void 0!==e.alpha&&(o.a=e.alpha),new s.TinyColor(o)}function l(e,t){const n=f(e);let r=m(n,t);return r<0&&(r=360+r),r}function u(e,t){if("monochrome"===t.hue)return 0;if("random"===t.luminosity)return m([0,100],t.seed);const{saturationRange:n}=h(e);let r=n[0],o=n[1];switch(t.luminosity){case"bright":r=55;break;case"dark":r=o-10;break;case"light":o=55;break;default:break}return m([r,o],t.seed)}function d(e,t,n){let r=p(e,t),o=100;switch(n.luminosity){case"dark":o=r+20;break;case"light":r=(o+r)/2;break;case"random":r=0,o=100;break;default:break}return m([r,o],n.seed)}function p(e,t){const{lowerBounds:n}=h(e);for(let r=0;r<n.length-1;r++){const e=n[r][0],o=n[r][1],a=n[r+1][0],i=n[r+1][1];if(t>=e&&t<=a){const n=(i-o)/(a-e),r=o-n*e;return n*t+r}}return 0}function f(e){const n=o(e,10);if(!a(n)&&n<360&&n>0)return[n,n];if("string"===typeof e){var r;const n=i(r=t.bounds).call(r,t=>t.name===e);if(n){const e=v(n);if(e.hueRange)return e.hueRange}const o=new s.TinyColor(e);if(o.isValid){const e=o.toHsv().h;return[e,e]}}return[0,360]}function h(e){e>=334&&e<=360&&(e-=360);for(const n of t.bounds){const t=v(n);if(t.hueRange&&e>=t.hueRange[0]&&e<=t.hueRange[1])return t}throw Error("Color not found")}function m(e,t){if(void 0===t)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));const n=e[1]||1,r=e[0]||0;t=(9301*t+49297)%233280;const o=t/233280;return Math.floor(r+o*(n-r))}function v(e){const t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],r=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[r,o]}}t.random=c,t.bounds=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}]},f5af:function(e,t,n){"use strict";var r=n("a5eb"),o=n("fc6c"),a=n("06fa"),i=n("1471"),s=!i("difference",(function(e){return 0===e.size})),c=s||a((function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size}));r({target:"Set",proto:!0,real:!0,forced:c},{difference:o})},f5df:function(e,t,n){"use strict";var r=n("00ee"),o=n("1626"),a=n("c6b6"),i=n("b622"),s=i("toStringTag"),c=Object,l="Arguments"===a(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=c(e),s))?n:l?a(t):"Object"===(r=a(t))&&o(t.callee)?"Arguments":r}},f5f6:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>e},f5fb:function(e,t,n){"use strict";var r=n("06fa");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},f69d:function(e,t,n){"use strict";var r=n("861d"),o=String,a=TypeError;e.exports=function(e){if(void 0===e||r(e))return e;throw new a(o(e)+" is not an object or undefined")}},f6b4:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],r=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],o=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],a=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],i=e.defineLocale("gd",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:o,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){var t=1===e?"d":e%10===2?"na":"mh";return e+t},week:{dow:1,doy:4}});return i}))},f6b49:function(e,t,n){"use strict";var r=n("c532");function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},f6d8:function(e,t,n){"use strict";n("dc15");var r=n("764b");e.exports=r.Object.freeze},f72b:function(e,t,n){e.exports=n("9785")},f75e:function(e,t,n){"use strict";n("9103"),n("6f89");var r=n("c18e");e.exports=r("Array","keys")},f772:function(e,t,n){"use strict";var r,o,a=n("3eba"),i=n("2c0f"),s=a.process,c=a.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(r=u.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},f7723:function(e,t,n){"use strict";var r=n("5692"),o=n("90e3"),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},f775:function(e,t,n){"use strict";var r=n("9883"),o=n("7c42"),a=r("Map");e.exports={Map:a,set:o("set",2),get:o("get",1),has:o("has",1),remove:o("delete",1),proto:a.prototype}},f7c8:function(e,t,n){"use strict";var r=n("ce18"),o=Error,a=r("".replace),i=function(e){return String(new o(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(i);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)while(t--)e=a(e,s,"");return e}},f868:function(e,t,n){"use strict";var r=TypeError;e.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},f890:function(e,t,n){var r=n("7a23");Object.keys(r).forEach((function(e){t[e]=r[e]})),t.set=function(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)},t.del=function(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]},t.Vue=r,t.Vue2=void 0,t.isVue2=!1,t.isVue3=!0,t.install=function(){}},f8b4:function(e,t,n){"use strict";var r=n("a5eb"),o=n("9883"),a=n("a0b9"),i=n("e9d9"),s=n("6783"),c=n("6f8d"),l=n("dfdb"),u=n("4896"),d=n("06fa"),p=o("Reflect","construct"),f=Object.prototype,h=[].push,m=d((function(){function e(){}return!(p((function(){}),[],e)instanceof e)})),v=!d((function(){p((function(){}))})),g=m||v;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e);var n=arguments.length<3?e:s(arguments[2]);if(c(t),v&&!m)return p(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 a(h,r,t),new(a(i,e,r))}var o=n.prototype,d=u(l(o)?o:f),g=a(e,d,t);return l(g)?g:d}})},f8b6:function(e,t,n){"use strict";var r=n("4e19"),o=n("0b1d");e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},f8cb:function(e,t,n){"use strict";var r=n("d6d3");e.exports=r},f8cd:function(e,t,n){"use strict";var r=n("5926"),o=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new o("The argument can't be less than 0");return t}},f906:function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,i={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[r,c("day")],Do:[a,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,c("week")],ww:[r,c("week")],M:[o,c("month")],MM:[r,c("month")],MMM:[a,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[a,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c("year")],Z:l,ZZ:l};function f(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||o[r]||e[r]||o[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=p[l],d=u&&u[0],f=u&&u[1];a[c]=f?{regex:d,parser:f}:l.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,c=o.parser,l=e.slice(r),u=i.exec(l)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),i=this.$locale(),!c&&d&&(i=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=f(t)(e),a=o.year,i=o.month,s=o.day,c=o.hours,l=o.minutes,u=o.seconds,d=o.milliseconds,p=o.zone,h=o.week,m=new Date,v=s||(a||i?1:m.getDate()),g=a||m.getFullYear(),_=0;a&&!i||(_=i>0?i-1:m.getMonth());var b,y=c||0,O=l||0,M=u||0,k=d||0;return p?new Date(Date.UTC(g,_,v,y,O,M,k+60*p.offset*1e3)):n?new Date(Date.UTC(g,_,v,y,O,M,k)):(b=new Date(g,_,v,y,O,M,k),h&&(b=r(b).week(h).toDate()),b)}catch(e){return new Date("")}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}))},f94a:function(e,t,n){"use strict";var r=n("764b"),o=n("0e6f"),a=n("beea"),i=n("4180").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||i(t,e,{value:a.f(e)})}},f96e:function(e,t,n){"use strict";var r=n("dfdb"),o=n("fc48"),a=n("0363"),i=a("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},f985:function(e,t,n){"use strict";n("b426"),e.exports=Math.pow(2,-52)},f99f:function(e,t,n){"use strict";var r=n("cfe9");e.exports=function(e,t){var n=r.Iterator,o=n&&n.prototype,a=o&&o[e],i=!1;if(a)try{a.call({next:function(){return{done:!0}},return:function(){i=!0}},-1)}catch(s){s instanceof t||(i=!1)}if(!i)return a}},f9ae:function(e,t,n){"use strict";var r=n("0f7c"),o=n("0d25"),a=n("926d"),i=n("3b6a");e.exports=function(e){if(e.length<1||"function"!==typeof e[0])throw new o("a function is required");return i(r,a,e)}},fa81:function(e,t,n){e.exports=n("5c4c")},faaa:function(e,t,n){"use strict";var r=n("6f8d"),o=n("8a3b");e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(i){o(e,"throw",i)}}},facd:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,a=e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return a}))},fb2d:function(e,t,n){"use strict";var r="object"==typeof document&&document.all;e.exports="undefined"==typeof r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},fb30:function(e,t,n){"use strict";var r=n("3eba"),o=n("c1b2"),a=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return r[e];var t=a(r,e);return t&&t.value}},fb5e:function(e,t){},fb79:function(e,t,n){"use strict";var r=n("2c0f"),o=r.match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},fbaa:function(e,t,n){"use strict";n("9a6b");var r=n("c18e");e.exports=r("String","trim")},fc1d:function(e,t,n){"use strict";var r=n("f94a");r("metadataKey")},fc48:function(e,t,n){"use strict";var r=n("ce18"),o=r({}.toString),a=r("".slice);e.exports=function(e){return a(o(e),8,-1)}},fc56:function(e,t,n){e.exports=n("2b1b")},fc6a:function(e,t,n){"use strict";var r=n("44ad"),o=n("1d80");e.exports=function(e){return r(o(e))}},fc6c:function(e,t,n){"use strict";var r=n("b15d"),o=n("3a40"),a=n("c84f"),i=n("30d3"),s=n("71c3"),c=n("99fa"),l=n("5415"),u=o.has,d=o.remove;e.exports=function(e){var t=r(this),n=s(e),o=a(t);return i(o)<=n.size?c(o,(function(e){n.includes(e)&&d(o,e)})):l(n.getIterator(),(function(e){u(o,e)&&d(o,e)})),o}},fc6c3:function(e,t,n){"use strict";var r=n("27bd");e.exports=r},fc75:function(e,t,n){"use strict";var r=n("2d80");r(t,"__esModule",{value:!0}),t.names=void 0,t.names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},fc754:function(e,t,n){"use strict";e.exports=n("f475")},fc93:function(e,t,n){"use strict";var r=n("a5eb"),o=n("06fa"),a=n("6220"),i=n("dfdb"),s=n("4fff"),c=n("c74f"),l=n("3e23"),u=n("6c15"),d=n("ffb3"),p=n("4344"),f=n("9c96"),h=n("0363"),m=n("f772"),v=h("isConcatSpreadable"),g=m>=51||!o((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),_=function(e){if(!i(e))return!1;var t=e[v];return void 0!==t?!!t:a(e)},b=!g||!f("concat");r({target:"Array",proto:!0,arity:1,forced:b},{concat:function(e){var t,n,r,o,a,i=s(this),f=p(i,0),h=0;for(t=-1,r=arguments.length;t<r;t++)if(a=-1===t?i:arguments[t],_(a))for(o=c(a),l(h+o),n=0;n<o;n++,h++)n in a&&u(f,h,a[n]);else l(h+1),u(f,h++,a);return d(f,h),f}})},fcb0:function(e,t,n){"use strict";var r=n("e59b");e.exports=r},fd76:function(e,t,n){"use strict";var r=n("9906");e.exports=r},fd7e:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}});return t}))},fdbc:function(e,t,n){"use strict";var r=n("437b"),o=n("666a"),a=RegExp.prototype;e.exports=function(e){return e===a||r(a,e)?o(e):e.flags}},fdbe:function(e,t,n){"use strict";var r=n("0273");e.exports=function(e,t,n,o){return o&&o.enumerable?e[t]=n:r(e,t,n),e}},fdbf:function(e,t,n){"use strict";var r=n("04f8");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},ff96:function(e,t,n){"use strict";var r=n("ce18"),o=n("1875"),a=n("8c12"),i=n("81f0"),s=r("".replace),c=RegExp("^["+i+"]+"),l=RegExp("(^|[^"+i+"])["+i+"]+$"),u=function(e){return function(t){var n=a(o(t));return 1&e&&(n=s(n,c,"")),2&e&&(n=s(n,l,"$1")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},ffb3:function(e,t,n){"use strict";var r=n("c1b2"),o=n("6220"),a=TypeError,i=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!i(e,"length").writable)throw new a("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},ffff:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict";
//! moment.js locale configuration
var t=e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))}}]);