123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- (self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[443],{90494:function(t,e){"use strict";var n="*",r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=this._events[t]||[],a=this._events[n]||[],s=function(n){for(var i=n.length,o=0;o<i;o++)if(n[o]){var a=n[o],s=a.callback,l=a.once;l&&(n.splice(o,1),0===n.length&&delete e._events[t],i--,o--),s.apply(e,r)}};s(o),s(a)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e["Z"]=r},2667:function(t,e,n){"use strict";var r=n(70655),i=n(90494),o=n(77341),a=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=(0,o.CD)(r,e),n}return(0,r.ZT)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(i.Z);e["Z"]=a},71862:function(t,e,n){"use strict";n.d(e,{Z:function(){return He}});var r={};n.r(r),n.d(r,{easeBack:function(){return dt},easeBackIn:function(){return ft},easeBackInOut:function(){return dt},easeBackOut:function(){return pt},easeBounce:function(){return ut},easeBounceIn:function(){return lt},easeBounceInOut:function(){return ct},easeBounceOut:function(){return ut},easeCircle:function(){return Q},easeCircleIn:function(){return Z},easeCircleInOut:function(){return Q},easeCircleOut:function(){return Y},easeCubic:function(){return P},easeCubicIn:function(){return _},easeCubicInOut:function(){return P},easeCubicOut:function(){return I},easeElastic:function(){return bt},easeElasticIn:function(){return yt},easeElasticInOut:function(){return xt},easeElasticOut:function(){return bt},easeExp:function(){return X},easeExpIn:function(){return W},easeExpInOut:function(){return X},easeExpOut:function(){return q},easeLinear:function(){return M},easePoly:function(){return j},easePolyIn:function(){return R},easePolyInOut:function(){return j},easePolyOut:function(){return N},easeQuad:function(){return B},easeQuadIn:function(){return O},easeQuadInOut:function(){return B},easeQuadOut:function(){return T},easeSin:function(){return $},easeSinIn:function(){return V},easeSinInOut:function(){return $},easeSinOut:function(){return H}});var i,o,a=n(70655),s=n(43631),l=n(37153),u=n(77341),c=n(45098),h=0,f=0,p=0,d=1e3,g=0,v=0,m=0,y="object"===typeof performance&&performance.now?performance:Date,b="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function x(){return v||(b(w),v=y.now()+m)}function w(){v=0}function C(){this._call=this._time=this._next=null}function S(t,e,n){var r=new C;return r.restart(t,e,n),r}function A(){x(),++h;var t,e=i;while(e)(t=v-e._time)>=0&&e._call.call(null,t),e=e._next;--h}function E(){v=(g=y.now())+m,h=f=0;try{A()}finally{h=0,D(),v=0}}function k(){var t=y.now(),e=t-g;e>d&&(m-=e,g=t)}function D(){var t,e,n=i,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);o=t,F(r)}function F(t){if(!h){f&&(f=clearTimeout(f));var e=t-v;e>24?(t<1/0&&(f=setTimeout(E,t-y.now()-m)),p&&(p=clearInterval(p))):(p||(g=y.now(),p=setInterval(k,d)),h=1,b(E))}}function M(t){return+t}function O(t){return t*t}function T(t){return t*(2-t)}function B(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function _(t){return t*t*t}function I(t){return--t*t*t+1}function P(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}C.prototype=S.prototype={constructor:C,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?x():+n)+(null==e?0:+e),this._next||o===this||(o?o._next=this:i=this,o=this),this._call=t,this._time=n,F()},stop:function(){this._call&&(this._call=null,this._time=1/0,F())}};var L=3,R=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(L),N=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(L),j=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(L),z=Math.PI,U=z/2;function V(t){return 1===+t?1:1-Math.cos(t*U)}function H(t){return Math.sin(t*U)}function $(t){return(1-Math.cos(z*t))/2}function G(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function W(t){return G(1-+t)}function q(t){return 1-G(t)}function X(t){return((t*=2)<=1?G(1-t):2-G(t-1))/2}function Z(t){return 1-Math.sqrt(1-t*t)}function Y(t){return Math.sqrt(1- --t*t)}function Q(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var K=4/11,J=6/11,tt=8/11,et=3/4,nt=9/11,rt=10/11,it=15/16,ot=21/22,at=63/64,st=1/K/K;function lt(t){return 1-ut(1-t)}function ut(t){return(t=+t)<K?st*t*t:t<tt?st*(t-=J)*t+et:t<rt?st*(t-=nt)*t+it:st*(t-=ot)*t+at}function ct(t){return((t*=2)<=1?1-ut(1-t):ut(t-1)+1)/2}var ht=1.70158,ft=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(ht),pt=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(ht),dt=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(ht),gt=2*Math.PI,vt=1,mt=.3,yt=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=gt);function i(t){return e*G(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*gt)},i.period=function(n){return t(e,n)},i}(vt,mt),bt=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=gt);function i(t){return 1-e*G(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*gt)},i.period=function(n){return t(e,n)},i}(vt,mt),xt=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=gt);function i(t){return((t=2*t-1)<0?e*G(-t)*Math.sin((r-t)/n):2-e*G(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*gt)},i.period=function(n){return t(e,n)},i}(vt,mt);function wt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ct(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function St(){}var At=.7,Et=1/At,kt="\\s*([+-]?\\d+)\\s*",Dt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ft="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mt=/^#([0-9a-f]{3,8})$/,Ot=new RegExp("^rgb\\("+[kt,kt,kt]+"\\)$"),Tt=new RegExp("^rgb\\("+[Ft,Ft,Ft]+"\\)$"),Bt=new RegExp("^rgba\\("+[kt,kt,kt,Dt]+"\\)$"),_t=new RegExp("^rgba\\("+[Ft,Ft,Ft,Dt]+"\\)$"),It=new RegExp("^hsl\\("+[Dt,Ft,Ft]+"\\)$"),Pt=new RegExp("^hsla\\("+[Dt,Ft,Ft,Dt]+"\\)$"),Lt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Rt(){return this.rgb().formatHex()}function Nt(){return Yt(this).formatHsl()}function jt(){return this.rgb().formatRgb()}function zt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Mt.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Ut(e):3===n?new Gt(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Vt(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Vt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ot.exec(t))?new Gt(e[1],e[2],e[3],1):(e=Tt.exec(t))?new Gt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Bt.exec(t))?Vt(e[1],e[2],e[3],e[4]):(e=_t.exec(t))?Vt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=It.exec(t))?Zt(e[1],e[2]/100,e[3]/100,1):(e=Pt.exec(t))?Zt(e[1],e[2]/100,e[3]/100,e[4]):Lt.hasOwnProperty(t)?Ut(Lt[t]):"transparent"===t?new Gt(NaN,NaN,NaN,0):null}function Ut(t){return new Gt(t>>16&255,t>>8&255,255&t,1)}function Vt(t,e,n,r){return r<=0&&(t=e=n=NaN),new Gt(t,e,n,r)}function Ht(t){return t instanceof St||(t=zt(t)),t?(t=t.rgb(),new Gt(t.r,t.g,t.b,t.opacity)):new Gt}function $t(t,e,n,r){return 1===arguments.length?Ht(t):new Gt(t,e,n,null==r?1:r)}function Gt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Wt(){return"#"+Xt(this.r)+Xt(this.g)+Xt(this.b)}function qt(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Xt(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function Zt(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Kt(t,e,n,r)}function Yt(t){if(t instanceof Kt)return new Kt(t.h,t.s,t.l,t.opacity);if(t instanceof St||(t=zt(t)),!t)return new Kt;if(t instanceof Kt)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Kt(a,s,l,t.opacity)}function Qt(t,e,n,r){return 1===arguments.length?Yt(t):new Kt(t,e,n,null==r?1:r)}function Kt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Jt(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function te(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function ee(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return te((n-r/e)*e,a,i,o,s)}}function ne(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return te((n-r/e)*e,i,o,a,s)}}function re(t){return function(){return t}}function ie(t,e){return function(n){return t+n*e}}function oe(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function ae(t){return 1===(t=+t)?se:function(e,n){return n-e?oe(e,n,t):re(isNaN(e)?n:e)}}function se(t,e){var n=e-t;return n?ie(t,n):re(isNaN(t)?e:t)}wt(St,zt,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Rt,formatHex:Rt,formatHsl:Nt,formatRgb:jt,toString:jt}),wt(Gt,$t,Ct(St,{brighter:function(t){return t=null==t?Et:Math.pow(Et,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?At:Math.pow(At,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Wt,formatHex:Wt,formatRgb:qt,toString:qt})),wt(Kt,Qt,Ct(St,{brighter:function(t){return t=null==t?Et:Math.pow(Et,t),new Kt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?At:Math.pow(At,t),new Kt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Gt(Jt(t>=240?t-240:t+120,i,r),Jt(t,i,r),Jt(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var le=function t(e){var n=ae(e);function r(t,e){var r=n((t=$t(t)).r,(e=$t(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=se(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function ue(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=$t(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}ue(ee),ue(ne);function ce(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function he(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function fe(t,e){return(he(e)?ce:pe)(t,e)}function pe(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Ce(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function de(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function ge(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function ve(t,e){var n,r={},i={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?r[n]=Ce(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var me=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ye=new RegExp(me.source,"g");function be(t){return function(){return t}}function xe(t){return function(e){return t(e)+""}}function we(t,e){var n,r,i,o=me.lastIndex=ye.lastIndex=0,a=-1,s=[],l=[];t+="",e+="";while((n=me.exec(t))&&(r=ye.exec(e)))(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:ge(n,r)})),o=ye.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?xe(l[0].x):be(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function Ce(t,e){var n,r=typeof e;return null==e||"boolean"===r?re(e):("number"===r?ge:"string"===r?(n=zt(e))?(e=n,le):we:e instanceof zt?le:e instanceof Date?de:he(e)?ce:Array.isArray(e)?pe:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?ve:ge)(t,e)}var Se=n(47575),Ae=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},Ee=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},ke=[1,0,0,0,1,0,0,0,1];function De(t,e,n){var r={},i=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var a;for(var s in o)if(!(0,c.Xy)(i[s],o[s]))if("path"===s){var l=o[s],u=i[s];l.length>u.length?(l=Se.parsePathString(o[s]),u=Se.parsePathString(i[s]),u=Se.fillPathByDiff(u,l),u=Se.formatPath(u,l),e.fromAttrs.path=u,e.toAttrs.path=l):e.pathFormatted||(l=Se.parsePathString(o[s]),u=Se.parsePathString(i[s]),u=Se.formatPath(u,l),e.fromAttrs.path=u,e.toAttrs.path=l,e.pathFormatted=!0),r[s]=[];for(var h=0;h<l.length;h++){for(var f=l[h],p=u[h],d=[],g=0;g<f.length;g++)(0,c.hj)(f[g])&&p&&(0,c.hj)(p[g])?(a=Ce(p[g],f[g]),d.push(a(n))):d.push(f[g]);r[s].push(d)}}else if("matrix"===s){var v=fe(i[s]||ke,o[s]||ke),m=v(n);r[s]=m}else Ae(s)&&Ee(o[s])?r[s]=o[s]:(0,c.mf)(o[s])||(a=Ce(i[s],o[s]),r[s]=a(n));t.attr(r)}}function Fe(t,e,n){var i,o=e.startTime,a=e.delay;if(n<o+a||e._paused)return!1;var s=e.duration,l=e.easing;if(n=n-o-e.delay,e.repeat)i=n%s/s,i=r[l](i);else{if(i=n/s,!(i<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;i=r[l](i)}if(e.onFrame){var u=e.onFrame(i);t.attr(u)}else De(t,e,i);return!1}var Me=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this,i=!1;this.timer=S((function(o){if(r.current=o,r.animators.length>0){for(var a=r.animators.length-1;a>=0;a--)if(t=r.animators[a],t.destroyed)r.removeAnimator(a);else{if(!t.isAnimatePaused()){e=t.get("animations");for(var s=e.length-1;s>=0;s--)n=e[s],i=Fe(t,n,o),i&&(e.splice(s,1),i=!1,n.callback&&n.callback())}0===e.length&&r.removeAnimator(a)}var l=r.canvas.get("autoDraw");l||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),Oe=Me,Te=n(89473),Be=40,_e=0,Ie=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Pe(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function Le(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&(0,u.UY)(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var Re=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){var n=e.canvas,r=n.get("el");if(r!==t.target&&(e.dragging||e.currentShape)){var i=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,i,e.draggingShape)}},this._onDocumentMouseUp=function(t){var n=e.canvas,r=n.get("el");if(r!==t.target&&e.dragging){var i=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,i,null),e._emitEvent("dragend",t,i,e.draggingShape),e._afterDrag(e.draggingShape,i,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");(0,u.S6)(Ie,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");(0,u.S6)(Ie,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,i,o){var a=new Te.Z(t,e);return a.fromShape=i,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],o=!1;if(i)i.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas,l=s.get("el");l.style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){n.button===_e&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(n.button===_e){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,l=n.timeStamp,u=l-this.mousedownTimeStamp,c=a.clientX-t.clientX,h=a.clientY-t.clientY,f=c*c+h*h;u>120||f>Be?s&&s.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,o){var a=this._getEventObj(t,e,n,r,i,o);if(r){a.shape=r,Pe(r,t,a);var s=r.getParent();while(s)s.emitDelegation(t,a),a.propagationStopped||Le(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{var l=this.canvas;Pe(l,t,a)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),Ne=Re,je="px",ze=(0,s.qY)(),Ue=ze&&"firefox"===ze.name,Ve=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,a.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["cursor"]="default",e["supportCSSTransform"]=!1,e},e.prototype.initContainer=function(){var t=this.get("container");(0,u.HD)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var e=this.get("container");e.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new Ne({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new Oe(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");u.jU&&(n.style.width=t+je,n.style.height=e+je)},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");u.jU&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){var e=this.get("supportCSSTransform");if(e){if(Ue&&!(0,u.kK)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!(0,u.kK)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),r=n.x,i=n.y;return this.getPointByClient(r,i)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el"),r=n.getBoundingClientRect();return{x:t-r.left,y:e-r.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el"),r=n.getBoundingClientRect();return{x:t+r.left,y:e+r.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t=this.get("eventController");t.destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(l.Z),He=Ve},37153:function(t,e,n){"use strict";var r=n(70655),i=n(45098),o=n(29881),a=n(77341),s={},l="_INDEX";function u(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){u(t,e)}))}}function c(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){c(t,e)}))}}function h(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),(0,a.As)(t.getChildren(),e)}function f(t){return function(e,n){var r=t(e,n);return 0===r?e[l]-n[l]:r}}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,o=[],s=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));l.length>0?((0,a.S6)(l,(function(t){var e=t.getBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=(0,i.VV)(o),e=(0,i.Fp)(o),n=(0,i.VV)(s),r=(0,i.Fp)(s)):(t=0,e=0,n=0,r=0);var u={x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n};return u},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,o=[],s=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));l.length>0?((0,a.S6)(l,(function(t){var e=t.getCanvasBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=(0,i.VV)(o),e=(0,i.Fp)(o),n=(0,i.VV)(s),r=(0,i.Fp)(s)):(t=0,e=0,n=0,r=0);var u={x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n};return u},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["children"]=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();(0,a.S6)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];(0,a.Kn)(n)?r=n:r["type"]=n;var i=s[r.type];i||(i=(0,a.jC)(r.type),s[r.type]=i);var o=this.getShapeBase(),l=new o[i](r);return this.add(l),l},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=t[0],i=t[1];if((0,a.mf)(r))n=new r(i||{parent:this});else{var o=r||{},s=this.getGroupBase();n=new s(o)}return this.add(n),n},e.prototype.getCanvas=function(){var t;return t=this.isCanvas()?this:this.get("canvas"),t},e.prototype.getShape=function(t,e,n){if(!(0,a.pP)(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(r=this._findShape(i,o[0],o[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var i=null,o=t.length-1;o>=0;o--){var s=t[o];if((0,a.pP)(s)&&(s.isGroup()?i=s.getShape(e,n,r):s.isHit(e,n)&&(i=s)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&h(i,t,!1),t.set("parent",this),e&&u(t,e),r&&c(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t=this.getChildren();(0,a.S6)(t,(function(t,e){return t[l]=e,t})),t.sort(f((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){var e=this.getChildren();return e[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var e=this.getChildren();return e.indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return(0,a.S6)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return(0,a.S6)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(o.Z);e["Z"]=p},29881:function(t,e,n){"use strict";var r=n(70655),i=n(45098),o=n(31506),a=n(77341),s=n(41482),l=n(2667),u=o.vs,c="matrix",h=["zIndex","capture","visible","type"],f=["repeat"],p=":",d="*";function g(t){for(var e=[],n=0;n<t.length;n++)(0,i.kJ)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}function v(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function m(t,e){var n={},r=e.attr();return(0,i.S6)(t,(function(t,e){-1!==f.indexOf(e)||(0,i.Xy)(r[e],t)||(n[e]=t)})),n}function y(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return(0,i.S6)(t,(function(t){n+r<t.startTime+t.delay+t.duration&&o>t.delay&&(0,i.S6)(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var b=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return(0,i.CD)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return(0,r.ZT)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],o=e[1];if(!r)return this.attrs;if((0,i.Kn)(r)){for(var a in r)this.setAttr(a,r[a]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,o),this.afterAttrsChange((t={},t[r]=o,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?((0,a.As)(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr(c,this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr(c)},e.prototype.setMatrix=function(t){this.attr(c,t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?(0,s.xq)(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?(0,s.xq)(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?(0,s.rG)(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=(0,s.U_)(e);if(n)return(0,s.rG)(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase(),o=(0,i.jC)(t.type),a=r[o];a&&(n=new a({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};(0,i.S6)(e,(function(t,r){(0,i.kJ)(e[r])?n[r]=g(e[r]):n[r]=e[r]}));var r=this.constructor,o=new r({attrs:n});return(0,i.S6)(h,(function(e){o.set(e,t.get(e))})),o},e.prototype.destroy=function(){var e=this.destroyed;e||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var o,a,s,l,u,c=t[0],h=t[1],f=t[2],p=void 0===f?"easeLinear":f,d=t[3],g=void 0===d?i.ZT:d,b=t[4],x=void 0===b?0:b;(0,i.mf)(c)?(o=c,c={}):(0,i.Kn)(c)&&c.onFrame&&(o=c.onFrame,a=c.repeat),(0,i.Kn)(h)?(u=h,h=u.duration,p=u.easing||"easeLinear",x=u.delay||0,a=u.repeat||a||!1,g=u.callback||i.ZT,s=u.pauseCallback||i.ZT,l=u.resumeCallback||i.ZT):((0,i.hj)(g)&&(x=g,g=null),(0,i.mf)(p)?(g=p,p="easeLinear"):p=p||"easeLinear");var w=m(c,this),C={fromAttrs:v(w,this),toAttrs:w,duration:h,easing:p,repeat:a,callback:g,pauseCallback:s,resumeCallback:l,delay:x,startTime:n.getTime(),id:(0,i.EL)(),onFrame:o,pathFormatted:!1};r.length>0?r=y(r,C):n.addAnimator(this),r.push(C),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");(0,i.S6)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return(0,i.S6)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline"),e=t.getTime(),n=this.get("animations"),r=this.get("_pause").pauseTime;return(0,i.S6)(n,(function(t){t.startTime=t.startTime+(e-r),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},e.prototype.emitDelegation=function(t,e){var n,r=this,o=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=o[t],u=s.get("name");if(u){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&(0,a.UY)(s,n))return"break";(0,i.kJ)(u)?(0,i.S6)(u,(function(t){r.emitDelegateEvent(s,t,e)})):l.emitDelegateEvent(s,u,e)}},l=this,u=0;u<o.length;u++){var c=s(u);if("break"===c)break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+p+n.type;(r[i]||r[d])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=u(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=u(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=u(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=this.getMatrix(),o=u(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=u(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(l.Z);e["Z"]=b},31841:function(t,e,n){"use strict";var r=n(70655),i=n(37153),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},e}(i.Z);e["Z"]=o},15032:function(t,e,n){"use strict";var r=n(70655),i=n(29881),o=n(41482),a=function(t){function e(e){return t.call(this,e)||this}return(0,r.ZT)(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,a=t.maxY;if(e){var s=(0,o.rG)(e,[t.minX,t.minY]),l=(0,o.rG)(e,[t.maxX,t.minY]),u=(0,o.rG)(e,[t.minX,t.maxY]),c=(0,o.rG)(e,[t.maxX,t.maxY]);n=Math.min(s[0],l[0],u[0],c[0]),i=Math.max(s[0],l[0],u[0],c[0]),r=Math.min(s[1],l[1],u[1],c[1]),a=Math.max(s[1],l[1],u[1],c[1])}var h=this.attrs;if(h.shadowColor){var f=h.shadowBlur,p=void 0===f?0:f,d=h.shadowOffsetX,g=void 0===d?0:d,v=h.shadowOffsetY,m=void 0===v?0:v,y=n-p+g,b=i+p+g,x=r-p+m,w=a+p+m;n=Math.min(n,y),i=Math.max(i,b),r=Math.min(r,x),a=Math.max(a,w)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1];i=this.invertFromMatrix(i);var o=i[0],a=i[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(r&&r.isHit(o,a))return!0}return!1},e}(i.Z);e["Z"]=a},46556:function(t,e,n){"use strict";n.d(e,{b:function(){return o},W:function(){return i}});var r=new Map;function i(t,e){r.set(t,e)}function o(t){return r.get(t)}function a(t){var e=t.attr(),n=e.x,r=e.y,i=e.width,o=e.height;return{x:n,y:r,width:i,height:o}}function s(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}var l=n(32793);function u(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function c(t,e){var n=t.get("startArrowShape"),r=t.get("endArrowShape"),i=null,o=null;return n&&(i=n.getCanvasBBox(),e=u(e,i)),r&&(o=r.getCanvasBBox(),e=u(e,o)),e}function h(t){for(var e=t.attr(),n=e.points,r=[],i=[],o=0;o<n.length;o++){var a=n[o];r.push(a[0]),i.push(a[1])}var s=l.Zr.getBBoxByArray(r,i),u=s.x,h=s.y,f=s.width,p=s.height,d={minX:u,minY:h,maxX:u+f,maxY:h+p};return d=c(t,d),{x:d.minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}}function f(t){for(var e=t.attr(),n=e.points,r=[],i=[],o=0;o<n.length;o++){var a=n[o];r.push(a[0]),i.push(a[1])}return l.Zr.getBBoxByArray(r,i)}var p=n(8723);function d(t){var e=t.attr(),n=e.x,r=e.y,i=e.text,o=e.fontSize,a=e.lineHeight,s=e.font;s||(s=(0,p.$O)(e));var l,u=(0,p.mY)(i,s);if(u){var c=e.textAlign,h=e.textBaseline,f=(0,p.FE)(i,o,a),d={x:n,y:r-f};c&&("end"===c||"right"===c?d.x-=u:"center"===c&&(d.x-=u/2)),h&&("top"===h?d.y+=f:"middle"===h&&(d.y+=f/2)),l={x:d.x,y:d.y,width:u,height:f}}else l={x:n,y:r,width:0,height:0};return l}var g=n(39499),v=n(45098);function m(t,e){for(var n=[],r=[],i=[],o=0;o<t.length;o++){var a=t[o],s=a.currentPoint,u=a.params,c=a.prePoint,h=void 0;switch(a.command){case"Q":h=l.lD.box(c[0],c[1],u[1],u[2],u[3],u[4]);break;case"C":h=l.Ll.box(c[0],c[1],u[1],u[2],u[3],u[4],u[5],u[6]);break;case"A":var f=a.arcParams;h=l.wN.box(f.cx,f.cy,f.rx,f.ry,f.xRotation,f.startAngle,f.endAngle);break;default:n.push(s[0]),r.push(s[1]);break}h&&(a.box=h,n.push(h.x,h.x+h.width),r.push(h.y,h.y+h.height)),e&&("L"===a.command||"M"===a.command)&&a.prePoint&&a.nextPoint&&i.push(a)}n=n.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0})),r=r.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0}));var p=(0,v.VV)(n),d=(0,v.VV)(r),g=(0,v.Fp)(n),m=(0,v.Fp)(r);if(0===i.length)return{x:p,y:d,width:g-p,height:m-d};for(o=0;o<i.length;o++){a=i[o],s=a.currentPoint;var b=void 0;s[0]===p?(b=y(a,e),p-=b.xExtra):s[0]===g&&(b=y(a,e),g+=b.xExtra),s[1]===d?(b=y(a,e),d-=b.yExtra):s[1]===m&&(b=y(a,e),m+=b.yExtra)}return{x:p,y:d,width:g-p,height:m-d}}function y(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),a=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),s=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),l=Math.acos((o+a-s)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!l||0===Math.sin(l)||(0,v.vQ)(l,0))return{xExtra:0,yExtra:0};var u=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),c=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));u=u>Math.PI/2?Math.PI-u:u,c=c>Math.PI/2?Math.PI-c:c;var h={xExtra:Math.cos(l/2-u)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(c-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0};return h}function b(t){var e=t.attr(),n=e.path,r=e.stroke,i=r?e.lineWidth:0,o=t.get("segments")||(0,g.zx)(n),a=m(o,i),s=a.x,l=a.y,u=a.width,h=a.height,f={minX:s,minY:l,maxX:s+u,maxY:l+h};return f=c(t,f),{x:f.minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}}function x(t){var e=t.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=Math.min(n,i),s=Math.max(n,i),l=Math.min(r,o),u=Math.max(r,o),h={minX:a,maxX:s,minY:l,maxY:u};return h=c(t,h),{x:h.minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}function w(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;return{x:n-i,y:r-o,width:2*i,height:2*o}}i("rect",a),i("image",a),i("circle",s),i("marker",s),i("polyline",h),i("polygon",f),i("text",d),i("path",b),i("line",x),i("ellipse",w)},89473:function(t,e){"use strict";var n=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){var t=this.type;return"[Event (type="+t+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e["Z"]=n},98190:function(t,e,n){"use strict";n.r(e),n.d(e,{Event:function(){return l.Z},Base:function(){return u.Z},AbstractCanvas:function(){return c.Z},AbstractGroup:function(){return h.Z},AbstractShape:function(){return f.Z},PathUtil:function(){return r},getBBoxMethod:function(){return p.b},registerBBox:function(){return p.W},getTextHeight:function(){return d.FE},assembleFont:function(){return d.$O},isAllowCapture:function(){return g.pP},multiplyVec2:function(){return v.rG},invert:function(){return v.U_},getOffScreenContext:function(){return m.L},version:function(){return y}});var r=n(47575),i=n(52),o={};for(var a in i)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","version"].indexOf(a)<0&&(o[a]=function(t){return i[t]}.bind(0,a));n.d(e,o);var s=n(15294);o={};for(var a in s)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","version"].indexOf(a)<0&&(o[a]=function(t){return s[t]}.bind(0,a));n.d(e,o);var l=n(89473),u=n(2667),c=n(71862),h=n(31841),f=n(15032),p=n(46556),d=n(8723),g=n(77341),v=n(41482),m=n(67052),y="0.5.9"},15294:function(){},52:function(){},41482:function(t,e,n){"use strict";function r(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],v=e[4],m=e[5],y=e[6],b=e[7],x=e[8];return n[0]=f*r+p*a+d*u,n[1]=f*i+p*s+d*c,n[2]=f*o+p*l+d*h,n[3]=g*r+v*a+m*u,n[4]=g*i+v*s+m*c,n[5]=g*o+v*l+m*h,n[6]=y*r+b*a+x*u,n[7]=y*i+b*s+x*c,n[8]=y*o+b*l+x*h,n}function i(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n}function o(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=c*a-s*u,f=-c*o+s*l,p=u*o-a*l,d=n*h+r*f+i*p;return d?(d=1/d,e[0]=h*d,e[1]=(-c*r+i*u)*d,e[2]=(s*r-i*a)*d,e[3]=f*d,e[4]=(c*n-i*l)*d,e[5]=(-s*n+i*o)*d,e[6]=p*d,e[7]=(-u*n+r*l)*d,e[8]=(a*n-r*o)*d,e):null}n.d(e,{xq:function(){return r},rG:function(){return i},U_:function(){return o}})},67052:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});var r=null;function i(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r}},47575:function(t,e,n){"use strict";n.r(e),n.d(e,{catmullRomToBezier:function(){return l},fillPath:function(){return _},fillPathByDiff:function(){return R},formatPath:function(){return z},intersection:function(){return M},parsePathArray:function(){return v},parsePathString:function(){return s},pathToAbsolute:function(){return c},pathToCurve:function(){return d},rectPath:function(){return C}});var r=n(45098),i="\t\n\v\f\r \u2028\u2029",o=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if((0,r.kJ)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(o,(function(r,i,o){var s=[],l=i.toLowerCase();if(o.replace(a,(function(t,e){e&&s.push(+e)})),"m"===l&&s.length>2&&(n.push([i].concat(s.splice(0,2))),l="l",i="m"===i?"l":"L"),"o"===l&&1===s.length&&n.push([i,s[0]]),"r"===l)n.push([i].concat(s));else while(s.length>=e[l])if(n.push([i].concat(s.splice(0,e[l]))),!e[l])break;return t})),n},l=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},u=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),l=t+n*Math.cos(-i*a),u=e+n*Math.sin(-r*a),c=e+n*Math.sin(-i*a);o=[["M",s,u],["A",n,n,0,+(i-r>180),0,l,c]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},c=function(t){if(t=s(t),!t||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,c=0,h=0;"M"===t[0][0]&&(i=+t[0][1],o=+t[0][2],a=i,c=o,h++,r[0]=["M",i,o]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=h,v=t.length;g<v;g++){if(r.push(p=[]),d=t[g],e=d[0],e!==e.toUpperCase())switch(p[0]=e.toUpperCase(),p[0]){case"A":p[1]=d[1],p[2]=d[2],p[3]=d[3],p[4]=d[4],p[5]=d[5],p[6]=+d[6]+i,p[7]=+d[7]+o;break;case"V":p[1]=+d[1]+o;break;case"H":p[1]=+d[1]+i;break;case"R":n=[i,o].concat(d.slice(1));for(var m=2,y=n.length;m<y;m++)n[m]=+n[m]+i,n[++m]=+n[m]+o;r.pop(),r=r.concat(l(n,f));break;case"O":r.pop(),n=u(i,o,d[1],d[2]),n.push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(u(i,o,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));break;case"M":a=+d[1]+i,c=+d[2]+o;break;default:for(m=1,y=d.length;m<y;m++)p[m]=+d[m]+(m%2?i:o)}else if("R"===e)n=[i,o].concat(d.slice(1)),r.pop(),r=r.concat(l(n,f)),p=["R"].concat(d.slice(-2));else if("O"===e)r.pop(),n=u(i,o,d[1],d[2]),n.push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(u(i,o,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));else for(var b=0,x=d.length;b<x;b++)p[b]=d[b];if(e=e.toUpperCase(),"O"!==e)switch(p[0]){case"Z":i=+a,o=+c;break;case"H":i=p[1];break;case"V":o=p[1];break;case"M":a=p[p.length-2],c=p[p.length-1];break;default:i=p[p.length-2],o=p[p.length-1]}}return r},h=function(t,e,n,r){return[t,e,n,r,n,r]},f=function(t,e,n,r,i,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*r,a*i+s*n,a*o+s*r,i,o]},p=function(t,e,n,r,i,o,a,s,l,u){n===r&&(n+=1);var c,h,f,d,g,v=120*Math.PI/180,m=Math.PI/180*(+i||0),y=[],b=function(t,e,n){var r=t*Math.cos(n)-e*Math.sin(n),i=t*Math.sin(n)+e*Math.cos(n);return{x:r,y:i}};if(u)h=u[0],f=u[1],d=u[2],g=u[3];else{c=b(t,e,-m),t=c.x,e=c.y,c=b(s,l,-m),s=c.x,l=c.y,t===s&&e===l&&(s+=1,l+=1);var x=(t-s)/2,w=(e-l)/2,C=x*x/(n*n)+w*w/(r*r);C>1&&(C=Math.sqrt(C),n*=C,r*=C);var S=n*n,A=r*r,E=(o===a?-1:1)*Math.sqrt(Math.abs((S*A-S*w*w-A*x*x)/(S*w*w+A*x*x)));d=E*n*w/r+(t+s)/2,g=E*-r*x/n+(e+l)/2,h=Math.asin(((e-g)/r).toFixed(9)),f=Math.asin(((l-g)/r).toFixed(9)),h=t<d?Math.PI-h:h,f=s<d?Math.PI-f:f,h<0&&(h=2*Math.PI+h),f<0&&(f=2*Math.PI+f),a&&h>f&&(h-=2*Math.PI),!a&&f>h&&(f-=2*Math.PI)}var k=f-h;if(Math.abs(k)>v){var D=f,F=s,M=l;f=h+v*(a&&f>h?1:-1),s=d+n*Math.cos(f),l=g+r*Math.sin(f),y=p(s,l,n,r,i,0,a,F,M,[f,D,d,g])}k=f-h;var O=Math.cos(h),T=Math.sin(h),B=Math.cos(f),_=Math.sin(f),I=Math.tan(k/4),P=4/3*n*I,L=4/3*r*I,R=[t,e],N=[t+P*T,e-L*O],j=[s+P*_,l-L*B],z=[s,l];if(N[0]=2*R[0]-N[0],N[1]=2*R[1]-N[1],u)return[N,j,z].concat(y);y=[N,j,z].concat(y).join().split(",");for(var U=[],V=0,H=y.length;V<H;V++)U[V]=V%2?b(y[V-1],y[V],m).y:b(y[V],y[V+1],m).x;return U},d=function(t,e){var n,r=c(t),i=e&&c(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],l=[],u="",d="",g=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(p.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(f(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(f(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(h(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(h(e.x,e.y,e.X,e.Y));break;default:break}return t},v=function(t,e){if(t[e].length>7){t[e].shift();var o=t[e];while(o.length)s[e]="A",i&&(l[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},m=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var y=0;y<n;y++){r[y]&&(u=r[y][0]),"C"!==u&&(s[y]=u,y&&(d=s[y-1])),r[y]=g(r[y],o,d),"A"!==s[y]&&"C"===u&&(s[y]="C"),v(r,y),i&&(i[y]&&(u=i[y][0]),"C"!==u&&(l[y]=u,y&&(d=l[y-1])),i[y]=g(i[y],a,d),"A"!==l[y]&&"C"===u&&(l[y]="C"),v(i,y)),m(r,i,o,a,y),m(i,r,a,o,y);var b=r[y],x=i&&i[y],w=b.length,C=i&&x.length;o.x=b[w-2],o.y=b[w-1],o.bx=parseFloat(b[w-4])||o.x,o.by=parseFloat(b[w-3])||o.y,a.bx=i&&(parseFloat(x[C-4])||a.x),a.by=i&&(parseFloat(x[C-3])||a.y),a.x=i&&x[C-2],a.y=i&&x[C-1]}return i?[r,i]:r},g=/,?([a-z]),?/gi,v=function(t){return t.join(",").replace(g,"$1")},m=function(t,e,n,r,i){var o=-3*e+9*n-9*r+3*i,a=t*o+6*e-12*n+6*r;return t*a-3*e+3*n},y=function(t,e,n,r,i,o,a,s,l){null===l&&(l=1),l=l>1?1:l<0?0:l;for(var u=l/2,c=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,d=0;d<c;d++){var g=u*h[d]+u,v=m(g,t,n,i,a),y=m(g,e,r,o,s),b=v*v+y*y;p+=f[d]*Math.sqrt(b)}return u*p},b=function(t,e,n,r,i,o,a,s){for(var l,u,c,h,f=[],p=[[],[]],d=0;d<2;++d)if(0===d?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*a,c=3*n-3*t):(u=6*e-12*r+6*o,l=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;h=-c/u,h>0&&h<1&&f.push(h)}else{var g=u*u-4*c*l,v=Math.sqrt(g);if(!(g<0)){var m=(-u+v)/(2*l);m>0&&m<1&&f.push(m);var y=(-u-v)/(2*l);y>0&&y<1&&f.push(y)}}var b,x=f.length,w=x;while(x--)h=f[x],b=1-h,p[0][x]=b*b*b*t+3*b*b*h*n+3*b*h*h*i+h*h*h*a,p[1][x]=b*b*b*e+3*b*b*h*r+3*b*h*h*o+h*h*h*s;return p[0][w]=t,p[1][w]=e,p[0][w+1]=a,p[1][w+1]=s,p[0].length=p[1].length=w+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},x=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var l=(t*r-e*n)*(i-a)-(t-n)*(i*s-o*a),u=(t*r-e*n)*(o-s)-(e-r)*(i*s-o*a),c=(t-n)*(o-s)-(e-r)*(i-a);if(c){var h=l/c,f=u/c,p=+h.toFixed(2),d=+f.toFixed(2);if(!(p<+Math.min(t,n).toFixed(2)||p>+Math.max(t,n).toFixed(2)||p<+Math.min(i,a).toFixed(2)||p>+Math.max(i,a).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:h,y:f}}}},w=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},C=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=v,o},S=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:C(t,e,n,r),vb:[t,e,n,r].join(" ")}},A=function(t,e){return t=S(t),e=S(e),w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},E=function(t,e,n,i,o,a,s,l){(0,r.kJ)(t)||(t=[t,e,n,i,o,a,s,l]);var u=b.apply(null,t);return S(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},k=function(t,e,n,r,i,o,a,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),f=l*l,p=f*l,d=c*t+3*h*l*n+3*u*l*l*i+p*a,g=c*e+3*h*l*r+3*u*l*l*o+p*s,v=t+2*l*(n-t)+f*(i-2*n+t),m=e+2*l*(r-e)+f*(o-2*r+e),y=n+2*l*(i-n)+f*(a-2*i+n),b=r+2*l*(o-r)+f*(s-2*o+r),x=u*t+l*n,w=u*e+l*r,C=u*i+l*a,S=u*o+l*s,A=90-180*Math.atan2(v-y,m-b)/Math.PI;return{x:d,y:g,m:{x:v,y:m},n:{x:y,y:b},start:{x:x,y:w},end:{x:C,y:S},alpha:A}},D=function(t,e,n){var r=E(t),i=E(e);if(!A(r,i))return n?0:[];for(var o=y.apply(0,t),a=y.apply(0,e),s=~~(o/8),l=~~(a/8),u=[],c=[],h={},f=n?0:[],p=0;p<s+1;p++){var d=k.apply(0,t.concat(p/s));u.push({x:d.x,y:d.y,t:p/s})}for(p=0;p<l+1;p++){d=k.apply(0,e.concat(p/l));c.push({x:d.x,y:d.y,t:p/l})}for(p=0;p<s;p++)for(var g=0;g<l;g++){var v=u[p],m=u[p+1],b=c[g],w=c[g+1],C=Math.abs(m.x-v.x)<.001?"y":"x",S=Math.abs(w.x-b.x)<.001?"y":"x",D=x(v.x,v.y,m.x,m.y,b.x,b.y,w.x,w.y);if(D){if(h[D.x.toFixed(4)]===D.y.toFixed(4))continue;h[D.x.toFixed(4)]=D.y.toFixed(4);var F=v.t+Math.abs((D[C]-v[C])/(m[C]-v[C]))*(m.t-v.t),M=b.t+Math.abs((D[S]-b[S])/(w[S]-b[S]))*(w.t-b.t);F>=0&&F<=1&&M>=0&&M<=1&&(n?f+=1:f.push({x:D.x,y:D.y,t1:F,t2:M}))}}return f},F=function(t,e,n){var r,i,o,a,s,l,u,c,h,f;t=d(t),e=d(e);for(var p=n?0:[],g=0,v=t.length;g<v;g++){var m=t[g];if("M"===m[0])r=s=m[1],i=l=m[2];else{"C"===m[0]?(h=[r,i].concat(m.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,l,s,l],r=s,i=l);for(var y=0,b=e.length;y<b;y++){var x=e[y];if("M"===x[0])o=u=x[1],a=c=x[2];else{"C"===x[0]?(f=[o,a].concat(x.slice(1)),o=f[6],a=f[7]):(f=[o,a,o,a,u,c,u,c],o=u,a=c);var w=D(h,f,n);if(n)p+=w;else{for(var C=0,S=w.length;C<S;C++)w[C].segment1=g,w[C].segment2=y,w[C].bez1=h,w[C].bez2=f;p=p.concat(w)}}}}}return p},M=function(t,e){return F(t,e)};function O(t,e){var n=[],r=[];function i(t,e){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var o=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&r.push(t[a+1]),o[a]=[(1-e)*t[a][0]+e*t[a+1][0],(1-e)*t[a][1]+e*t[a+1][1]];i(o,e)}}return t.length&&i(t,e),{left:n,right:r.reverse()}}function T(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,a=1/n,s=0;s<n-1;s++){var l=a/(1-a*s),u=O(o,l);i.push(u.left),o=u.right}i.push(o);var c=i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1]),e}));return c}var B=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(T(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},_=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(a=0;a<r;a++){var s=Math.floor(i*a);o[s]=(o[s]||0)+1}var l=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(B(t[i],t[i+1],r))}),[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l},I=function(t,e){if(t.length!==e.length)return!1;var n=!0;return(0,r.S6)(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function P(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var L=function(t,e){var n,r,i=t.length,o=e.length,a=0;if(0===i||0===o)return null;for(var s=[],l=0;l<=i;l++)s[l]=[],s[l][0]={min:l};for(var u=0;u<=o;u++)s[0][u]={min:u};for(l=1;l<=i;l++){n=t[l-1];for(u=1;u<=o;u++){r=e[u-1],a=I(n,r)?0:1;var c=s[l-1][u].min+1,h=s[l][u-1].min+1,f=s[l-1][u-1].min+a;s[l][u]=P(c,h,f)}}return s},R=function(t,e){var n=L(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i].min!==r){for(var l=1;l<=r;l++){var u=n[l][l].min;s=l;for(var c=a;c<=i;c++)n[l][c].min<u&&(u=n[l][c].min,s=c);a=s,n[l][a].type&&o.push({index:l-1,type:n[l][a].type})}for(l=o.length-1;l>=0;l--)a=o[l].index,"add"===o[l].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}r=t.length;var h=i-r;if(r<i)for(l=0;l<h;l++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};function N(t,e,n){for(var r,i=[].concat(t),o=1/(n+1),a=j(e)[0],s=1;s<=n;s++)o*=s,r=Math.floor(t.length*o),0===r?i.unshift([a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]):i.splice(r,0,[a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]);return i}function j(t){var e=[];switch(t[0]){case"M":e.push([t[1],t[2]]);break;case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":e.push([t[1],t[1]]);break;case"V":e.push([t[1],t[1]]);break;default:}return e}var z=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=j(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=N(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=N(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=N(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},8723:function(t,e,n){"use strict";n.d(e,{FE:function(){return o},mY:function(){return s},$O:function(){return l}});var r=n(77341),i=n(67052);function o(t,e,n){var i=1;if((0,r.HD)(t)&&(i=t.split("\n").length),i>1){var o=a(e,n);return e*i+o*(i-1)}return e}function a(t,e){return e?e-t:.14*t}function s(t,e){var n=(0,i.L)(),o=0;if((0,r.kK)(t)||""===t)return o;if(n.save(),n.font=e,(0,r.HD)(t)&&t.includes("\n")){var a=t.split("\n");(0,r.S6)(a,(function(t){var e=n.measureText(t).width;o<e&&(o=e)}))}else o=n.measureText(t).width;return n.restore(),o}function l(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i=t.fontStyle,o=t.fontVariant;return[i,o,r,e+"px",n].join(" ").trim()}},77341:function(t,e,n){"use strict";n.d(e,{As:function(){return i},jU:function(){return o},kK:function(){return r.UM},mf:function(){return r.mf},HD:function(){return r.HD},Kn:function(){return r.Kn},CD:function(){return r.CD},S6:function(){return r.S6},jC:function(){return r.jC},UY:function(){return a},pP:function(){return s}});var r=n(45098);function i(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var o="undefined"!==typeof window&&"undefined"!==typeof window.document;function a(t,e){if(t.isCanvas())return!0;var n=e.getParent(),r=!1;while(n){if(n===t){r=!0;break}n=n.getParent()}return r}function s(t){return t.cfg.visible&&t.cfg.capture}},32793:function(t,e,n){"use strict";n.d(e,{wN:function(){return j},Ll:function(){return D},x1:function(){return f},aH:function(){return G},lD:function(){return w},Zr:function(){return r}});var r={};function i(t){return Math.min.apply(null,t)}function o(t){return Math.max.apply(null,t)}function a(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function s(t,e){return Math.abs(t-e)<.001}function l(t,e){var n=i(t),r=i(e),a=o(t),s=o(e);return{x:n,y:r,width:a-n,height:s-r}}function u(t,e,n,r){return{minX:i([t,n]),maxX:o([t,n]),minY:i([e,r]),maxY:o([e,r])}}function c(t){return(t+2*Math.PI)%(2*Math.PI)}n.r(r),n.d(r,{distance:function(){return a},getBBoxByArray:function(){return l},getBBoxRange:function(){return u},isNumberEqual:function(){return s},piMod:function(){return c}});var h=n(31437),f={box:function(t,e,n,r){return l([t,n],[e,r])},length:function(t,e,n,r){return a(t,e,n,r)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,i,o){var s=(n-t)*(i-t)+(r-e)*(o-e);if(s<0)return a(t,e,i,o);var l=(n-t)*(n-t)+(r-e)*(r-e);return s>l?a(n,r,i,o):this.pointToLine(t,e,n,r,i,o)},pointToLine:function(t,e,n,r,i,o){var a=[n-t,r-e];if(h.I6(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-a[1],a[0]];h.Fv(s,s);var l=[i-t,o-e];return Math.abs(h.AK(l,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}},p=1e-4;function d(t,e,n,r,i,o){var s,l=1/0,u=[n,r],c=20;o&&o>200&&(c=o/10);for(var h=1/c,f=h/10,d=0;d<=c;d++){var g=d*h,v=[i.apply(null,t.concat([g])),i.apply(null,e.concat([g]))],m=a(u[0],u[1],v[0],v[1]);m<l&&(s=g,l=m)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var y=t.length;return{x:t[y-1],y:e[y-1]}}l=1/0;for(d=0;d<32;d++){if(f<p)break;var b=s-f,x=s+f;v=[i.apply(null,t.concat([b])),i.apply(null,e.concat([b]))],m=a(u[0],u[1],v[0],v[1]);if(b>=0&&m<l)s=b,l=m;else{var w=[i.apply(null,t.concat([x])),i.apply(null,e.concat([x]))],C=a(u[0],u[1],w[0],w[1]);x<=1&&C<l?(s=x,l=C):f*=.5}}return{x:i.apply(null,t.concat([s])),y:i.apply(null,e.concat([s]))}}function g(t,e){for(var n=0,r=t.length,i=0;i<r;i++){var o=t[i],s=e[i],l=t[(i+1)%r],u=e[(i+1)%r];n+=a(o,s,l,u)}return n/2}function v(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function m(t,e,n){var r=t+n-2*e;if(s(r,0))return[.5];var i=(t-e)/r;return i<=1&&i>=0?[i]:[]}function y(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function b(t,e,n,r,i,o,a){var s=v(t,n,i,a),l=v(e,r,o,a),u=f.pointAt(t,e,n,r,a),c=f.pointAt(n,r,i,o,a);return[[t,e,u.x,u.y,s,l],[s,l,c.x,c.y,i,o]]}function x(t,e,n,r,i,o,s){if(0===s)return(a(t,e,n,r)+a(n,r,i,o)+a(t,e,i,o))/2;var l=b(t,e,n,r,i,o,.5),u=l[0],c=l[1];return u.push(s-1),c.push(s-1),x.apply(null,u)+x.apply(null,c)}var w={box:function(t,e,n,r,i,o){var a=m(t,n,i)[0],s=m(e,r,o)[0],u=[t,i],c=[e,o];return void 0!==a&&u.push(v(t,n,i,a)),void 0!==s&&c.push(v(e,r,o,s)),l(u,c)},length:function(t,e,n,r,i,o){return x(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,o,a,s){return d([t,n,i],[e,r,o],a,s,v)},pointDistance:function(t,e,n,r,i,o,s,l){var u=this.nearestPoint(t,e,n,r,i,o,s,l);return a(u.x,u.y,s,l)},interpolationAt:v,pointAt:function(t,e,n,r,i,o,a){return{x:v(t,n,i,a),y:v(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return b(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var s=y(t,n,i,a),l=y(e,r,o,a),u=Math.atan2(l,s);return c(u)}};function C(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function S(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function A(t,e,n,r){var i,o,a,l=-3*t+9*e-9*n+3*r,u=6*t-12*e+6*n,c=3*e-3*t,h=[];if(s(l,0))s(u,0)||(i=-c/u,i>=0&&i<=1&&h.push(i));else{var f=u*u-4*l*c;s(f,0)?h.push(-u/(2*l)):f>0&&(a=Math.sqrt(f),i=(-u+a)/(2*l),o=(-u-a)/(2*l),i>=0&&i<=1&&h.push(i),o>=0&&o<=1&&h.push(o))}return h}function E(t,e,n,r,i,o,a,s,l){var u=C(t,n,i,a,l),c=C(e,r,o,s,l),h=f.pointAt(t,e,n,r,l),p=f.pointAt(n,r,i,o,l),d=f.pointAt(i,o,a,s,l),g=f.pointAt(h.x,h.y,p.x,p.y,l),v=f.pointAt(p.x,p.y,d.x,d.y,l);return[[t,e,h.x,h.y,g.x,g.y,u,c],[u,c,v.x,v.y,d.x,d.y,a,s]]}function k(t,e,n,r,i,o,a,s,l){if(0===l)return g([t,n,i,a],[e,r,o,s]);var u=E(t,e,n,r,i,o,a,s,.5),c=u[0],h=u[1];return c.push(l-1),h.push(l-1),k.apply(null,c)+k.apply(null,h)}var D={extrema:A,box:function(t,e,n,r,i,o,a,s){for(var u=[t,a],c=[e,s],h=A(t,n,i,a),f=A(e,r,o,s),p=0;p<h.length;p++)u.push(C(t,n,i,a,h[p]));for(p=0;p<f.length;p++)c.push(C(e,r,o,s,f[p]));return l(u,c)},length:function(t,e,n,r,i,o,a,s){return k(t,e,n,r,i,o,a,s,3)},nearestPoint:function(t,e,n,r,i,o,a,s,l,u,c){return d([t,n,i,a],[e,r,o,s],l,u,C,c)},pointDistance:function(t,e,n,r,i,o,s,l,u,c,h){var f=this.nearestPoint(t,e,n,r,i,o,s,l,u,c,h);return a(f.x,f.y,u,c)},interpolationAt:C,pointAt:function(t,e,n,r,i,o,a,s,l){return{x:C(t,n,i,a,l),y:C(e,r,o,s,l)}},divide:function(t,e,n,r,i,o,a,s,l){return E(t,e,n,r,i,o,a,s,l)},tangentAngle:function(t,e,n,r,i,o,a,s,l){var u=S(t,n,i,a,l),h=S(e,r,o,s,l);return c(Math.atan2(h,u))}};function F(t,e){var n=Math.abs(t);return e>0?n:-1*n}var M={box:function(t,e,n,r){return{x:t-n,y:e-r,width:2*n,height:2*r}},length:function(t,e,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(t,e,n,r,i,o){var a=n,s=r;if(0===a||0===s)return{x:t,y:e};for(var l,u,c=i-t,h=o-e,f=Math.abs(c),p=Math.abs(h),d=a*a,g=s*s,v=Math.PI/4,m=0;m<4;m++){l=a*Math.cos(v),u=s*Math.sin(v);var y=(d-g)*Math.pow(Math.cos(v),3)/a,b=(g-d)*Math.pow(Math.sin(v),3)/s,x=l-y,w=u-b,C=f-y,S=p-b,A=Math.hypot(w,x),E=Math.hypot(S,C),k=A*Math.asin((x*S-w*C)/(A*E)),D=k/Math.sqrt(d+g-l*l-u*u);v+=D,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+F(l,c),y:e+F(u,h)}},pointDistance:function(t,e,n,r,i,o){var s=this.nearestPoint(t,e,n,r,i,o);return a(s.x,s.y,i,o)},pointAt:function(t,e,n,r,i){var o=2*Math.PI*i;return{x:t+n*Math.cos(o),y:e+r*Math.sin(o)}},tangentAngle:function(t,e,n,r,i){var o=2*Math.PI*i,a=Math.atan2(r*Math.cos(o),-n*Math.sin(o));return c(a)}};function O(t,e,n,r,i,o,a,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}function T(t,e,n,r,i,o,a,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}function B(t,e,n){return Math.atan(-e/t*Math.tan(n))}function _(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function I(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function P(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}function L(t,e,n,r){var i=Math.atan2(r*t,n*e);return(i+2*Math.PI)%(2*Math.PI)}function R(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function N(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}var j={box:function(t,e,n,r,i,o,a){for(var s=B(n,r,i),l=1/0,u=-1/0,c=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var f=s+h;o<a?o<f&&f<a&&c.push(f):a<f&&f<o&&c.push(f)}for(h=0;h<c.length;h++){var p=I(t,e,n,r,i,c[h]);p<l&&(l=p),p>u&&(u=p)}var d=_(n,r,i),g=1/0,v=-1/0,m=[o,a];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var y=d+h;o<a?o<y&&y<a&&m.push(y):a<y&&y<o&&m.push(y)}for(h=0;h<m.length;h++){var b=P(t,e,n,r,i,m[h]);b<g&&(g=b),b>v&&(v=b)}return{x:l,y:g,width:u-l,height:v-g}},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,i,o,a,s,l){var u=N(s-t,l-e,-i),c=u[0],h=u[1],f=M.nearestPoint(0,0,n,r,c,h),p=L(n,r,f.x,f.y);p<o?f=R(n,r,o):p>a&&(f=R(n,r,a));var d=N(f.x,f.y,i);return{x:d[0]+t,y:d[1]+e}},pointDistance:function(t,e,n,r,i,o,s,l,u){var c=this.nearestPoint(t,e,n,r,l,u);return a(c.x,c.y,l,u)},pointAt:function(t,e,n,r,i,o,a,s){var l=(a-o)*s+o;return{x:I(t,e,n,r,i,l),y:P(t,e,n,r,i,l)}},tangentAngle:function(t,e,n,r,i,o,a,s){var l=(a-o)*s+o,u=O(t,e,n,r,i,o,a,l),h=T(t,e,n,r,i,o,a,l);return c(Math.atan2(h,u))}};function z(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var i=t[r],o=t[r+1],s=a(i[0],i[1],o[0],o[1]),l={from:i,to:o,length:s};n.push(l),e+=s}return{segments:n,totalLength:e}}function U(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],i=t[n+1];e+=a(r[0],r[1],i[0],i[1])}return e}function V(t,e){if(e>1||e<0||t.length<2)return null;var n=z(t),r=n.segments,i=n.totalLength;if(0===i)return{x:t[0][0],y:t[0][1]};for(var o=0,a=null,s=0;s<r.length;s++){var l=r[s],u=l.from,c=l.to,h=l.length/i;if(e>=o&&e<=o+h){var p=(e-o)/h;a=f.pointAt(u[0],u[1],c[0],c[1],p);break}o+=h}return a}function H(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=z(t),r=n.segments,i=n.totalLength,o=0,a=0,s=0;s<r.length;s++){var l=r[s],u=l.from,c=l.to,h=l.length/i;if(e>=o&&e<=o+h){a=Math.atan2(c[1]-u[1],c[0]-u[0]);break}o+=h}return a}function $(t,e,n){for(var r=1/0,i=0;i<t.length-1;i++){var o=t[i],a=t[i+1],s=f.pointDistance(o[0],o[1],a[0],a[1],e,n);s<r&&(r=s)}return r}var G={box:function(t){for(var e=[],n=[],r=0;r<t.length;r++){var i=t[r];e.push(i[0]),n.push(i[1])}return l(e,n)},length:function(t){return U(t)},pointAt:function(t,e){return V(t,e)},pointDistance:function(t,e,n){return $(t,e,n)},tangentAngle:function(t,e){return H(t,e)}}},31506:function(t,e,n){"use strict";n.d(e,{m$:function(){return o},zu:function(){return a},lh:function(){return s},vs:function(){return u},Dg:function(){return h}});var r=n(35600),i=n(31437);function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.vc(i,n),r.Jp(t,i,e)}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.Us(i,n),r.Jp(t,i,e)}function s(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.xJ(i,n),r.Jp(t,i,e)}function l(t,e,n){return r.Jp(t,n,e)}function u(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],r=0,i=e.length;r<i;r++){var u=e[r];switch(u[0]){case"t":o(n,n,[u[1],u[2]]);break;case"s":s(n,n,[u[1],u[2]]);break;case"r":a(n,n,u[1]);break;case"m":l(n,n,u[1]);break;default:break}}return n}function c(t,e){return t[0]*e[1]-e[0]*t[1]}function h(t,e,n){var r=i.EU(t,e),o=c(t,e)>=0;return n?o?2*Math.PI-r:r:o?r:2*Math.PI-r}},39499:function(t,e,n){"use strict";n.d(e,{e9:function(){return h},Wq:function(){return L},tr:function(){return g},wb:function(){return y},zx:function(){return E}});var r=n(45098),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;function a(t){var e=t||[];return(0,r.kJ)(e)?e:(0,r.HD)(e)?(e=e.match(i),(0,r.S6)(e,(function(t,n){if(t=t.match(o),t[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}(0,r.S6)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}var s=a,l=n(31437);function u(t,e,n,r){var i,o,a,s,u,c,h,f=[],p=!!r;if(p){a=r[0],s=r[1];for(var d=0,g=t.length;d<g;d+=1){var v=t[d];a=l.VV([0,0],a,v),s=l.Fp([0,0],s,v)}}d=0;for(var m=t.length;d<m;d+=1){v=t[d];if(0!==d||n)if(d!==m-1||n){var y=[d?d-1:m-1,d-1][n?0:1];i=t[y],o=t[n?(d+1)%m:d+1];var b=[0,0];b=l.lu(b,o,i),b=l.bA(b,b,e);var x=l.TE(v,i),w=l.TE(v,o),C=x+w;0!==C&&(x/=C,w/=C);var S=l.bA([0,0],b,-x),A=l.bA([0,0],b,w);c=l.IH([0,0],v,S),u=l.IH([0,0],v,A),u=l.VV([0,0],u,l.Fp([0,0],o,v)),u=l.Fp([0,0],u,l.VV([0,0],o,v)),S=l.lu([0,0],u,v),S=l.bA([0,0],S,-x/w),c=l.IH([0,0],v,S),c=l.VV([0,0],c,l.Fp([0,0],i,v)),c=l.Fp([0,0],c,l.VV([0,0],i,v)),A=l.lu([0,0],v,c),A=l.bA([0,0],A,w/x),u=l.IH([0,0],v,A),p&&(c=l.Fp([0,0],c,a),c=l.VV([0,0],c,s),u=l.Fp([0,0],u,a),u=l.VV([0,0],u,s)),f.push(h),f.push(c),h=u}else c=v,f.push(h),f.push(c);else h=v}return n&&f.push(f.shift()),f}function c(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);var s,l,c,h=u(i,.4,r,n),f=i.length,p=[];for(o=0;o<f-1;o+=1)s=h[2*o],l=h[2*o+1],c=i[o+1],p.push(["C",s[0],s[1],l[0],l[1],c[0],c[1]]);return r&&(s=h[f],l=h[f+1],c=i[0],p.push(["C",s[0],s[1],l[0],l[1],c[0],c[1]])),p}var h=c;var f="\t\n\v\f\r \u2028\u2029",p=new RegExp("([a-z])["+f+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+f+"]*,?["+f+"]*)+)","ig"),d=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+f+"]*,?["+f+"]*","ig");function g(t){if(!t)return null;if((0,r.kJ)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(p,(function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(d,(function(t,e){e&&o.push(+e)})),"m"===a&&o.length>2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else while(o.length>=e[a])if(n.push([r].concat(o.splice(0,e[a]))),!e[a])break;return""})),n}var v=/[a-z]/;function m(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function y(t){var e=g(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r<e.length;r++){var i=e[r][0];if(v.test(i)||["V","H","T","S"].indexOf(i)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,l=0,u=0,c=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(a=+h[1],s=+h[2],l=a,u=s,c++,o[0]=["M",a,s]);r=c;for(var f=e.length;r<f;r++){var p=e[r],d=o[r-1],y=[],b=(i=p[0],i.toUpperCase());if(i!==b)switch(y[0]=b,b){case"A":y[1]=p[1],y[2]=p[2],y[3]=p[3],y[4]=p[4],y[5]=p[5],y[6]=+p[6]+a,y[7]=+p[7]+s;break;case"V":y[1]=+p[1]+s;break;case"H":y[1]=+p[1]+a;break;case"M":l=+p[1]+a,u=+p[2]+s,y[1]=l,y[2]=u;break;default:for(var x=1,w=p.length;x<w;x++)y[x]=+p[x]+(x%2?a:s)}else y=e[r];switch(b){case"Z":a=+l,s=+u;break;case"H":a=y[1],y=["L",a,s];break;case"V":s=y[1],y=["L",a,s];break;case"T":a=y[1],s=y[2];var C=m([d[1],d[2]],[d[3],d[4]]);y=["Q",C[0],C[1],a,s];break;case"S":a=y[y.length-2],s=y[y.length-1];var S=d.length,A=m([d[S-4],d[S-3]],[d[S-2],d[S-1]]);y=["C",A[0],A[1],y[1],y[2],a,s];break;case"M":l=y[y.length-2],u=y[y.length-1];break;default:a=y[y.length-2],s=y[y.length-1]}o.push(y)}return o}Math.PI;function b(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function x(t,e){return b(t)*b(e)?(t[0]*e[0]+t[1]*e[1])/(b(t)*b(e)):1}function w(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(x(t,e))}function C(t,e){return t[0]===e[0]&&t[1]===e[1]}function S(t,e){var n=e[1],i=e[2],o=(0,r.wQ)((0,r.c$)(e[3]),2*Math.PI),a=e[4],s=e[5],l=t[0],u=t[1],c=e[6],h=e[7],f=Math.cos(o)*(l-c)/2+Math.sin(o)*(u-h)/2,p=-1*Math.sin(o)*(l-c)/2+Math.cos(o)*(u-h)/2,d=f*f/(n*n)+p*p/(i*i);d>1&&(n*=Math.sqrt(d),i*=Math.sqrt(d));var g=n*n*(p*p)+i*i*(f*f),v=g?Math.sqrt((n*n*(i*i)-g)/g):1;a===s&&(v*=-1),isNaN(v)&&(v=0);var m=i?v*n*p/i:0,y=n?v*-i*f/n:0,b=(l+c)/2+Math.cos(o)*m-Math.sin(o)*y,S=(u+h)/2+Math.sin(o)*m+Math.cos(o)*y,A=[(f-m)/n,(p-y)/i],E=[(-1*f-m)/n,(-1*p-y)/i],k=w([1,0],A),D=w(A,E);return x(A,E)<=-1&&(D=Math.PI),x(A,E)>=1&&(D=0),0===s&&D>0&&(D-=2*Math.PI),1===s&&D<0&&(D+=2*Math.PI),{cx:b,cy:S,rx:C(t,[c,h])?0:n,ry:C(t,[c,h])?0:i,startAngle:k,endAngle:k+D,xRotation:o,arcFlag:a,sweepFlag:s}}function A(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function E(t){t=s(t);for(var e=[],n=null,r=null,i=null,o=0,a=t.length,l=0;l<a;l++){var u=t[l];r=t[l+1];var c=u[0],h={command:c,prePoint:n,params:u,startTangent:null,endTangent:null};switch(c){case"M":i=[u[1],u[2]],o=l;break;case"A":var f=S(n,u);h["arcParams"]=f;break;default:break}if("Z"===c)n=i,r=t[o+1];else{var p=u.length;n=[u[p-2],u[p-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),h["currentPoint"]=n,e[o]&&C(n,e[o].currentPoint)&&(e[o].prePoint=h.prePoint);var d=r?[r[r.length-2],r[r.length-1]]:null;h["nextPoint"]=d;var g=h.prePoint;if(["L","H","V"].includes(c))h.startTangent=[g[0]-n[0],g[1]-n[1]],h.endTangent=[n[0]-g[0],n[1]-g[1]];else if("Q"===c){var v=[u[1],u[2]];h.startTangent=[g[0]-v[0],g[1]-v[1]],h.endTangent=[n[0]-v[0],n[1]-v[1]]}else if("T"===c){var m=e[l-1];v=A(m.currentPoint,g);"Q"===m.command?(h.command="Q",h.startTangent=[g[0]-v[0],g[1]-v[1]],h.endTangent=[n[0]-v[0],n[1]-v[1]]):(h.command="TL",h.startTangent=[g[0]-n[0],g[1]-n[1]],h.endTangent=[n[0]-g[0],n[1]-g[1]])}else if("C"===c){var y=[u[1],u[2]],b=[u[3],u[4]];h.startTangent=[g[0]-y[0],g[1]-y[1]],h.endTangent=[n[0]-b[0],n[1]-b[1]],0===h.startTangent[0]&&0===h.startTangent[1]&&(h.startTangent=[y[0]-b[0],y[1]-b[1]]),0===h.endTangent[0]&&0===h.endTangent[1]&&(h.endTangent=[b[0]-y[0],b[1]-y[1]])}else if("S"===c){m=e[l-1],y=A(m.currentPoint,g),b=[u[1],u[2]];"C"===m.command?(h.command="C",h.startTangent=[g[0]-y[0],g[1]-y[1]],h.endTangent=[n[0]-b[0],n[1]-b[1]]):(h.command="SQ",h.startTangent=[g[0]-b[0],g[1]-b[1]],h.endTangent=[n[0]-b[0],n[1]-b[1]])}else if("A"===c){var x=.001,w=h["arcParams"]||{},E=w.cx,k=void 0===E?0:E,D=w.cy,F=void 0===D?0:D,M=w.rx,O=void 0===M?0:M,T=w.ry,B=void 0===T?0:T,_=w.sweepFlag,I=void 0===_?0:_,P=w.startAngle,L=void 0===P?0:P,R=w.endAngle,N=void 0===R?0:R;0===I&&(x*=-1);var j=O*Math.cos(L-x)+k,z=B*Math.sin(L-x)+F;h.startTangent=[j-i[0],z-i[1]];var U=O*Math.cos(L+N+x)+k,V=B*Math.sin(L+N-x)+F;h.endTangent=[g[0]-U,g[1]-V]}e.push(h)}return e}var k=1e-6;function D(t){return Math.abs(t)<k?0:t<0?-1:1}function F(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function M(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],s=t[(o+1)%i];if(F(a,s,[e,n]))return!0;D(a[1]-n)>0!==D(s[1]-n)>0&&D(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}var O=function(t,e,n){return t>=e&&t<=n};function T(t,e,n,r){var i=.001,o={x:n.x-t.x,y:n.y-t.y},a={x:e.x-t.x,y:e.y-t.y},s={x:r.x-n.x,y:r.y-n.y},l=a.x*s.y-a.y*s.x,u=l*l,c=a.x*a.x+a.y*a.y,h=s.x*s.x+s.y*s.y,f=null;if(u>i*c*h){var p=(o.x*s.y-o.y*s.x)/l,d=(o.x*a.y-o.y*a.x)/l;O(p,0,1)&&O(d,0,1)&&(f={x:t.x+p*a.x,y:t.y+p*a.y})}return f}function B(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],o=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function _(t,e){var n=!1;return(0,r.S6)(t,(function(t){if(T(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function I(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function P(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function L(t,e){if(t.length<2||e.length<2)return!1;var n=I(t),i=I(e);if(!P(n,i))return!1;var o=!1;if((0,r.S6)(e,(function(e){if(M(t,e[0],e[1]))return o=!0,!1})),o)return!0;if((0,r.S6)(t,(function(t){if(M(e,t[0],t[1]))return o=!0,!1})),o)return!0;var a=B(t),s=B(e),l=!1;return(0,r.S6)(s,(function(t){if(_(a,t))return l=!0,!1})),l}},45098:function(t,e,n){"use strict";n.d(e,{Ct:function(){return ze},f0:function(){return Se},uZ:function(){return ft},VS:function(){return ee},d9:function(){return re},FX:function(){return a},Ds:function(){return oe},b$:function(){return ce},e5:function(){return c},S6:function(){return x},yW:function(){return rt},hX:function(){return l},sE:function(){return O},cx:function(){return B},Wx:function(){return I},ri:function(){return dt},xH:function(){return L},U5:function(){return kt},U2:function(){return Ae},Lo:function(){return Ne},rx:function(){return z},ru:function(){return ct},vM:function(){return lt},Ms:function(){return ut},wH:function(){return Ft},YM:function(){return tt},q9:function(){return a},cq:function(){return fe},kJ:function(){return m},jn:function(){return Vt},J_:function(){return $t},kK:function(){return Jt},xb:function(){return ge},Xy:function(){return me},mf:function(){return d},BD:function(){return A},UM:function(){return v},Ft:function(){return Wt},hj:function(){return vt},vQ:function(){return yt},Kn:function(){return y},PO:function(){return F},HD:function(){return Z},P9:function(){return p},o8:function(){return Qt},XP:function(){return C},Z$:function(){return et},vl:function(){return _t},UI:function(){return be},Q8:function(){return we},Fp:function(){return R},UT:function(){return bt},HP:function(){return ae},VV:function(){return N},F:function(){return xt},CD:function(){return Se},wQ:function(){return Ct},ZT:function(){return _e},CE:function(){return Fe},ei:function(){return De},u4:function(){return W},Od:function(){return X},U7:function(){return te},t8:function(){return Ee},dp:function(){return Ie},G:function(){return ot},MR:function(){return Q},ng:function(){return Pt},P2:function(){return Me},qo:function(){return Oe},c$:function(){return Et},BB:function(){return Tt},jj:function(){return K},EL:function(){return Be},jC:function(){return Rt},VO:function(){return Ot},I:function(){return J}});var r=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)},i=r,o=function(t,e){return!!i(t)&&t.indexOf(e)>-1},a=o,s=function(t,e){if(!i(t))return t;for(var n=[],r=0;r<t.length;r++){var o=t[r];e(o,r)&&n.push(o)}return n},l=s,u=function(t,e){return void 0===e&&(e=[]),l(t,(function(t){return!a(e,t)}))},c=u,h={}.toString,f=function(t,e){return h.call(t)==="[object "+e+"]"},p=f,d=function(t){return p(t,"Function")},g=function(t){return null===t||void 0===t},v=g,m=function(t){return Array.isArray?Array.isArray(t):p(t,"Array")},y=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};function b(t,e){var n;if(t)if(m(t)){for(var r=0,i=t.length;r<i;r++)if(n=e(t[r],r),!1===n)break}else if(y(t))for(var o in t)if(t.hasOwnProperty(o)&&(n=e(t[o],o),!1===n))break}var x=b,w=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return x(t,(function(n,r){d(t)&&"prototype"===r||e.push(r)})),e},C=w;function S(t,e){var n=C(e),r=n.length;if(v(t))return!r;for(var i=0;i<r;i+=1){var o=n[i];if(e[o]!==t[o]||!(o in t))return!1}return!0}var A=S,E=function(t){return"object"===typeof t&&null!==t},k=E,D=function(t){if(!k(t)||!p(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},F=D;function M(t,e){if(!m(t))return null;var n;if(d(e)&&(n=e),F(e)&&(n=function(t){return A(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null}var O=M;function T(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}var B=T,_=function(t,e){for(var n=null,r=0;r<t.length;r++){var i=t[r],o=i[e];if(!v(o)){n=m(o)?o[0]:o;break}}return n},I=_,P=function(t){if(!m(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},L=P,R=function(t){if(m(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},N=function(t){if(m(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},j=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(m(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var i=R(e),o=N(e);return{min:o,max:i}},z=j,U=Array.prototype,V=(U.splice,U.indexOf,Array.prototype.splice),H=function(t,e){if(!i(t))return[];var n=t?e.length:0,r=n-1;while(n--){var o=void 0,a=e[n];n!==r&&a===o||(o=a,V.call(t,a,1))}return t},$=H,G=function(t,e,n){if(!m(t)&&!F(t))return t;var r=n;return x(t,(function(t,n){r=e(r,t,n)})),r},W=G,q=function(t,e){var n=[];if(!i(t))return n;var r=-1,o=[],a=t.length;while(++r<a){var s=t[r];e(s,r,t)&&(n.push(s),o.push(r))}return $(t,o),n},X=q,Z=function(t){return p(t,"String")};function Y(t,e){var n;if(d(e))n=function(t,n){return e(t)-e(n)};else{var r=[];Z(e)?r.push(e):m(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t}var Q=Y;function K(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];e.has(o)||(n.push(o),e.set(o,!0))}return n}var J=function(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[e];if(!v(a)){m(a)||(a=[a]);for(var s=0;s<a.length;s++){var l=a[s];r[l]||(n.push(l),r[l]=!0)}}}return n};function tt(t){if(i(t))return t[0]}function et(t){if(i(t)){var e=t;return e[e.length-1]}}var nt=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},rt=nt,it=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},ot=it,at=Object.prototype.hasOwnProperty;function st(t,e){if(!e||!m(t))return{};for(var n,r={},i=d(e)?e:function(t){return t[e]},o=0;o<t.length;o++){var a=t[o];n=i(a),at.call(r,n)?r[n].push(a):r[n]=[a]}return r}var lt=st;function ut(t,e){if(!e)return{0:t};if(!d(e)){var n=m(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return lt(t,e)}var ct=function(t,e){if(!e)return[t];var n=ut(t,e),r=[];for(var i in n)r.push(n[i]);return r};var ht=function(t,e,n){return t<e?e:t>n?n:t},ft=ht,pt=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))},dt=pt,gt=function(t){return p(t,"Number")},vt=gt,mt=(Number.isInteger&&Number.isInteger,1e-5);function yt(t,e,n){return void 0===n&&(n=mt),Math.abs(t-e)<n}var bt=function(t,e){if(m(t)){for(var n,r=-1/0,i=0;i<t.length;i++){var o=t[i],a=d(e)?e(o):o[e];a>r&&(n=o,r=a)}return n}},xt=function(t,e){if(m(t)){for(var n,r=1/0,i=0;i<t.length;i++){var o=t[i],a=d(e)?e(o):o[e];a<r&&(n=o,r=a)}return n}},wt=function(t,e){return(t%e+e)%e},Ct=wt,St=(Math.PI,parseInt,Math.PI/180),At=function(t){return St*t},Et=At,kt=x,Dt=function(t,e){return t.hasOwnProperty(e)},Ft=Dt,Mt=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return x(t,(function(n,r){d(t)&&"prototype"===r||e.push(n)})),e},Ot=Mt,Tt=function(t){return v(t)?"":t.toString()},Bt=function(t){return Tt(t).toLowerCase()},_t=Bt;function It(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}var Pt=It,Lt=function(t){var e=Tt(t);return e.charAt(0).toUpperCase()+e.substring(1)},Rt=Lt,Nt={}.toString,jt=function(t){return Nt.call(t).replace(/^\[object /,"").replace(/]$/,"")},zt=jt,Ut=function(t){return p(t,"Boolean")},Vt=Ut,Ht=function(t){return p(t,"Date")},$t=Ht;var Gt=function(t){return null===t},Wt=Gt,qt=Object.prototype,Xt=function(t){var e=t&&t.constructor,n="function"===typeof e&&e.prototype||qt;return t===n},Zt=Xt,Yt=function(t){return void 0===t},Qt=Yt,Kt=function(t){return t instanceof Element||t instanceof HTMLDocument},Jt=Kt;function te(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}function ee(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}var ne=function(t){if("object"!==typeof t||null===t)return t;var e;if(m(t)){e=[];for(var n=0,r=t.length;n<r;n++)"object"===typeof t[n]&&null!=t[n]?e[n]=ne(t[n]):e[n]=t[n]}else for(var i in e={},t)"object"===typeof t[i]&&null!=t[i]?e[i]=ne(t[i]):e[i]=t[i];return e},re=ne;function ie(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}var oe=ie,ae=function(t,e){if(!d(t))throw new TypeError("Expected a function");var n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,r);return a.set(o,s),s};return n.cache=new Map,n},se=5;function le(t,e,n,r){for(var i in n=n||0,r=r||se,e)if(e.hasOwnProperty(i)){var o=e[i];null!==o&&F(o)?(F(t[i])||(t[i]={}),n<r?le(t[i],o,n+1,r):t[i]=e[i]):m(o)?(t[i]=[],t[i]=t[i].concat(o)):void 0!==o&&(t[i]=o)}}var ue=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)le(t,e[r]);return t},ce=ue,he=function(t,e){if(!i(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,o=0;o<t.length;o++)if(t[o]===e){r=o;break}return r},fe=he,pe=Object.prototype.hasOwnProperty;function de(t){if(v(t))return!0;if(i(t))return!t.length;var e=zt(t);if("Map"===e||"Set"===e)return!t.size;if(Zt(t))return!Object.keys(t).length;for(var n in t)if(pe.call(t,n))return!1;return!0}var ge=de,ve=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(Z(t)||Z(e))return!1;if(i(t)||i(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length;r++)if(n=ve(t[r],e[r]),!n)break;return n}if(k(t)||k(e)){var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(n=!0,r=0;r<o.length;r++)if(n=ve(t[o[r]],e[o[r]]),!n)break;return n}return!1},me=ve,ye=function(t,e){if(!i(t))return t;for(var n=[],r=0;r<t.length;r++){var o=t[r];n.push(e(o,r))}return n},be=ye,xe=function(t){return t},we=function(t,e){void 0===e&&(e=xe);var n={};return y(t)&&!v(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n};function Ce(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function Se(t,e,n,r){return e&&Ce(t,e),n&&Ce(t,n),r&&Ce(t,r),t}var Ae=function(t,e,n){var r=0,i=Z(e)?e.split("."):e;while(t&&r<i.length)t=t[i[r++]];return void 0===t||r<i.length?n:t},Ee=function(t,e,n){var r=t,i=Z(e)?e.split("."):e;return i.forEach((function(t,e){e<i.length-1?(y(r[t])||(r[t]=vt(i[e+1])?[]:{}),r=r[t]):r[t]=n})),t},ke=Object.prototype.hasOwnProperty,De=function(t,e){if(null===t||!F(t))return{};var n={};return x(e,(function(e){ke.call(t,e)&&(n[e]=t[e])})),n},Fe=function(t,e){return W(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})},Me=function(t,e,n){var r,i,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},u=function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=e-(u-s);return i=this,o=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=u,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,c)),a};return u.cancel=function(){clearTimeout(r),s=0,r=i=o=null},u},Oe=function(t){return i(t)?Array.prototype.slice.call(t):[]},Te={},Be=function(t){return t=t||"g",Te[t]?Te[t]+=1:Te[t]=1,t+Te[t]},_e=function(){};function Ie(t){return v(t)?0:i(t)?t.length:Object.keys(t).length}var Pe,Le=n(70655),Re=ae((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return Pe||(Pe=document.createElement("canvas").getContext("2d")),Pe.font=[o,a,i,n+"px",r].join(" "),Pe.measureText(Z(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),(0,Le.pr)([t],Ot(e)).join("")})),Ne=function(t,e,n,r){void 0===r&&(r="...");var i,o,a=16,s=Re(r,n),l=Z(t)?t:Tt(t),u=e,c=[];if(Re(t,n)<=e)return t;while(1){if(i=l.substr(0,a),o=Re(i,n),o+s>u&&o>u)break;if(c.push(i),u-=o,l=l.substr(a),!l)return c.join("")}while(1){if(i=l.substr(0,1),o=Re(i,n),o+s>u)break;if(c.push(i),u-=o,l=l.substr(1),!l)return c.join("")}return""+c.join("")+r},je=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}(),ze=je},4301:function(t,e,n){
- /*!
- * vue-treeselect v0.4.0 | (c) 2017-2019 Riophae Lee
- * Released under the MIT License.
- * https://vue-treeselect.js.org/
- */
- t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=16)}([function(t,e){t.exports=n(94673)},function(t,e){t.exports=n(99848)},function(t,e){t.exports=n(16742)},function(t,e){t.exports=n(24390)},function(t,e){t.exports=n(50308)},function(t,e){t.exports=n(23279)},function(t,e){t.exports=n(26789)},function(t,e){t.exports=n(66141)},function(t,e){t.exports=n(51463)},function(t,e){t.exports=n(6557)},function(t,e){t.exports=n(75703)},function(t,e){t.exports=n(17964)},function(t,e){t.exports=n(10928)},function(t,e){t.exports=n(3933)},function(t,e){t.exports=n(20144)},function(t,e,n){},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n.n(r),o=n(1),a=n.n(o),s=n(2),l=n.n(s),u=n(3),c=n.n(u),h=n(4),f=n.n(h),p=f.a;function d(t){return function(e){if("mousedown"===e.type&&0===e.button){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.call.apply(t,[this,e].concat(r))}}}function g(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=e.offsetHeight/3;r.bottom+i>n.bottom?t.scrollTop=Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+i,t.scrollHeight):r.top-i<n.top&&(t.scrollTop=Math.max(e.offsetTop-i,0))}var v,m=n(5),y=n.n(m),b=n(6),x=n.n(b);function w(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var C=[],S=100;function A(){v=setInterval((function(){C.forEach(k)}),S)}function E(){clearInterval(v),v=null}function k(t){var e=t.$el,n=t.listener,r=t.lastWidth,i=t.lastHeight,o=e.offsetWidth,a=e.offsetHeight;r===o&&i===a||(t.lastWidth=o,t.lastHeight=a,n({width:o,height:a}))}function D(t,e){var n={$el:t,listener:e,lastWidth:null,lastHeight:null},r=function(){w(C,n),C.length||E()};return C.push(n),k(n),A(),r}function F(t,e){var n=9===document.documentMode,r=!0,i=function(){return r||e.apply(void 0,arguments)},o=n?D:x.a,a=o(t,i);return r=!1,a}function M(t){var e=[],n=t.parentNode;while(n&&"BODY"!==n.nodeName&&n.nodeType===document.ELEMENT_NODE)O(n)&&e.push(n),n=n.parentNode;return e.push(window),e}function O(t){var e=getComputedStyle(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)}function T(t,e){var n=M(t);return window.addEventListener("resize",e,{passive:!0}),n.forEach((function(t){t.addEventListener("scroll",e,{passive:!0})})),function(){window.removeEventListener("resize",e,{passive:!0}),n.forEach((function(t){t.removeEventListener("scroll",e,{passive:!0})}))}}function B(t){return t!==t}var _=n(7),I=n.n(_),P=n(8),L=n.n(P),R=n(9),N=n.n(R),j=n(10),z=n.n(j),U=function(){return Object.create(null)},V=n(11),H=n.n(V);function $(t){return null!=t&&"object"===H()(t)&&Object.getPrototypeOf(t)===Object.prototype}function G(t,e,n){$(n)?(t[e]||(t[e]={}),W(t[e],n)):t[e]=n}function W(t,e){if($(e))for(var n=Object.keys(e),r=0,i=n.length;r<i;r++)G(t,n[r],e[n[r]]);return t}var q=n(12),X=n.n(q);function Z(t,e){return-1!==t.indexOf(e)}function Y(t,e,n){for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]}function Q(t,e){if(t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}var K=null,J=0,tt=1,et=2,nt="ALL_CHILDREN",rt="ALL_DESCENDANTS",it="LEAF_CHILDREN",ot="LEAF_DESCENDANTS",at="LOAD_ROOT_OPTIONS",st="LOAD_CHILDREN_OPTIONS",lt="ASYNC_SEARCH",ut="ALL",ct="BRANCH_PRIORITY",ht="LEAF_PRIORITY",ft="ALL_WITH_INDETERMINATE",pt="ORDER_SELECTED",dt="LEVEL",gt="INDEX",vt={BACKSPACE:8,ENTER:13,ESCAPE:27,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46},mt=200,yt=5,bt=40;function xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xt(n,!0).forEach((function(e){l()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xt(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ct(t,e){var n=0;do{if(t.level<n)return-1;if(e.level<n)return 1;if(t.index[n]!==e.index[n])return t.index[n]-e.index[n];n++}while(1)}function St(t,e){return t.level===e.level?Ct(t,e):t.level-e.level}function At(){return{isLoaded:!1,isLoading:!1,loadingError:""}}function Et(t){return"string"===typeof t?t:"number"!==typeof t||B(t)?"":t+""}function kt(t,e,n){return t?c()(e,n):Z(n,e)}function Dt(t){return t.message||String(t)}var Ft=0,Mt={provide:function(){return{instance:this}},props:{allowClearingDisabled:{type:Boolean,default:!1},allowSelectingDisabledDescendants:{type:Boolean,default:!1},alwaysOpen:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},async:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},autoLoadRootOptions:{type:Boolean,default:!0},autoDeselectAncestors:{type:Boolean,default:!1},autoDeselectDescendants:{type:Boolean,default:!1},autoSelectAncestors:{type:Boolean,default:!1},autoSelectDescendants:{type:Boolean,default:!1},backspaceRemoves:{type:Boolean,default:!0},beforeClearAll:{type:Function,default:z()(!0)},branchNodesFirst:{type:Boolean,default:!1},cacheOptions:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},clearAllText:{type:String,default:"Clear all"},clearOnSelect:{type:Boolean,default:!1},clearValueText:{type:String,default:"Clear value"},closeOnSelect:{type:Boolean,default:!0},defaultExpandLevel:{type:Number,default:0},defaultOptions:{default:!1},deleteRemoves:{type:Boolean,default:!0},delimiter:{type:String,default:","},flattenSearchResults:{type:Boolean,default:!1},disableBranchNodes:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableFuzzyMatching:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},instanceId:{default:function(){return"".concat(Ft++,"$$")},type:[String,Number]},joinValues:{type:Boolean,default:!1},limit:{type:Number,default:1/0},limitText:{type:Function,default:function(t){return"and ".concat(t," more")}},loadingText:{type:String,default:"Loading..."},loadOptions:{type:Function},matchKeys:{type:Array,default:z()(["label"])},maxHeight:{type:Number,default:300},multiple:{type:Boolean,default:!1},name:{type:String},noChildrenText:{type:String,default:"No sub-options."},noOptionsText:{type:String,default:"No options available."},noResultsText:{type:String,default:"No results found..."},normalizer:{type:Function,default:N.a},openDirection:{type:String,default:"auto",validator:function(t){var e=["auto","top","bottom","above","below"];return Z(e,t)}},openOnClick:{type:Boolean,default:!0},openOnFocus:{type:Boolean,default:!1},options:{type:Array},placeholder:{type:String,default:"Select..."},required:{type:Boolean,default:!1},retryText:{type:String,default:"Retry?"},retryTitle:{type:String,default:"Click to retry"},searchable:{type:Boolean,default:!0},searchNested:{type:Boolean,default:!1},searchPromptText:{type:String,default:"Type to search..."},showCount:{type:Boolean,default:!1},showCountOf:{type:String,default:nt,validator:function(t){var e=[nt,rt,it,ot];return Z(e,t)}},showCountOnSearch:null,sortValueBy:{type:String,default:pt,validator:function(t){var e=[pt,dt,gt];return Z(e,t)}},tabIndex:{type:Number,default:0},value:null,valueConsistsOf:{type:String,default:ct,validator:function(t){var e=[ut,ct,ht,ft];return Z(e,t)}},valueFormat:{type:String,default:"id"},zIndex:{type:[Number,String],default:999}},data:function(){return{trigger:{isFocused:!1,searchQuery:""},menu:{isOpen:!1,current:null,lastScrollPosition:0,placement:"bottom"},forest:{normalizedOptions:[],nodeMap:U(),checkedStateMap:U(),selectedNodeIds:this.extractCheckedNodeIdsFromValue(),selectedNodeMap:U()},rootOptionsStates:At(),localSearch:{active:!1,noResults:!0,countMap:U()},remoteSearch:U()}},computed:{selectedNodes:function(){return this.forest.selectedNodeIds.map(this.getNode)},internalValue:function(){var t,e=this;if(this.single||this.flat||this.disableBranchNodes||this.valueConsistsOf===ut)t=this.forest.selectedNodeIds.slice();else if(this.valueConsistsOf===ct)t=this.forest.selectedNodeIds.filter((function(t){var n=e.getNode(t);return!!n.isRootNode||!e.isSelected(n.parentNode)}));else if(this.valueConsistsOf===ht)t=this.forest.selectedNodeIds.filter((function(t){var n=e.getNode(t);return!!n.isLeaf||0===n.children.length}));else if(this.valueConsistsOf===ft){var n,r=[];t=this.forest.selectedNodeIds.slice(),this.selectedNodes.forEach((function(e){e.ancestors.forEach((function(e){Z(r,e.id)||Z(t,e.id)||r.push(e.id)}))})),(n=t).push.apply(n,r)}return this.sortValueBy===dt?t.sort((function(t,n){return St(e.getNode(t),e.getNode(n))})):this.sortValueBy===gt&&t.sort((function(t,n){return Ct(e.getNode(t),e.getNode(n))})),t},hasValue:function(){return this.internalValue.length>0},single:function(){return!this.multiple},visibleOptionIds:function(){var t=this,e=[];return this.traverseAllNodesByIndex((function(n){if(t.localSearch.active&&!t.shouldOptionBeIncludedInSearchResult(n)||e.push(n.id),n.isBranch&&!t.shouldExpand(n))return!1})),e},hasVisibleOptions:function(){return 0!==this.visibleOptionIds.length},showCountOnSearchComputed:function(){return"boolean"===typeof this.showCountOnSearch?this.showCountOnSearch:this.showCount},hasBranchNodes:function(){return this.forest.normalizedOptions.some((function(t){return t.isBranch}))},shouldFlattenOptions:function(){return this.localSearch.active&&this.flattenSearchResults}},watch:{alwaysOpen:function(t){t?this.openMenu():this.closeMenu()},branchNodesFirst:function(){this.initialize()},disabled:function(t){t&&this.menu.isOpen?this.closeMenu():t||this.menu.isOpen||!this.alwaysOpen||this.openMenu()},flat:function(){this.initialize()},internalValue:function(t,e){var n=Q(t,e);n&&this.$emit("input",this.getValue(),this.getInstanceId())},matchKeys:function(){this.initialize()},multiple:function(t){t&&this.buildForestState()},options:{handler:function(){this.async||(this.initialize(),this.rootOptionsStates.isLoaded=Array.isArray(this.options))},deep:!0,immediate:!0},"trigger.searchQuery":function(){this.async?this.handleRemoteSearch():this.handleLocalSearch(),this.$emit("search-change",this.trigger.searchQuery,this.getInstanceId())},value:function(){var t=this.extractCheckedNodeIdsFromValue(),e=Q(t,this.internalValue);e&&this.fixSelectedNodeIds(t)}},methods:{verifyProps:function(){var t=this;if(p((function(){return!t.async||t.searchable}),(function(){return'For async search mode, the value of "searchable" prop must be true.'})),null!=this.options||this.loadOptions||p((function(){return!1}),(function(){return'Are you meant to dynamically load options? You need to use "loadOptions" prop.'})),this.flat&&p((function(){return t.multiple}),(function(){return'You are using flat mode. But you forgot to add "multiple=true"?'})),!this.flat){var e=["autoSelectAncestors","autoSelectDescendants","autoDeselectAncestors","autoDeselectDescendants"];e.forEach((function(e){p((function(){return!t[e]}),(function(){return'"'.concat(e,'" only applies to flat mode.')}))}))}},resetFlags:function(){this._blurOnSelect=!1},initialize:function(){var t=this.async?this.getRemoteSearchEntry().options:this.options;if(Array.isArray(t)){var e=this.forest.nodeMap;this.forest.nodeMap=U(),this.keepDataOfSelectedNodes(e),this.forest.normalizedOptions=this.normalize(K,t,e),this.fixSelectedNodeIds(this.internalValue)}else this.forest.normalizedOptions=[]},getInstanceId:function(){return null==this.instanceId?this.id:this.instanceId},getValue:function(){var t=this;if("id"===this.valueFormat)return this.multiple?this.internalValue.slice():this.internalValue[0];var e=this.internalValue.map((function(e){return t.getNode(e).raw}));return this.multiple?e:e[0]},getNode:function(t){return p((function(){return null!=t}),(function(){return"Invalid node id: ".concat(t)})),null==t?null:t in this.forest.nodeMap?this.forest.nodeMap[t]:this.createFallbackNode(t)},createFallbackNode:function(t){var e=this.extractNodeFromValue(t),n=this.enhancedNormalizer(e).label||"".concat(t," (unknown)"),r={id:t,label:n,ancestors:[],parentNode:K,isFallbackNode:!0,isRootNode:!0,isLeaf:!0,isBranch:!1,isDisabled:!1,isNew:!1,index:[-1],level:0,raw:e};return this.$set(this.forest.nodeMap,t,r)},extractCheckedNodeIdsFromValue:function(){var t=this;return null==this.value?[]:"id"===this.valueFormat?this.multiple?this.value.slice():[this.value]:(this.multiple?this.value:[this.value]).map((function(e){return t.enhancedNormalizer(e)})).map((function(t){return t.id}))},extractNodeFromValue:function(t){var e=this,n={id:t};if("id"===this.valueFormat)return n;var r=this.multiple?Array.isArray(this.value)?this.value:[]:this.value?[this.value]:[],i=Y(r,(function(n){return n&&e.enhancedNormalizer(n).id===t}));return i||n},fixSelectedNodeIds:function(t){var e=this,n=[];if(this.single||this.flat||this.disableBranchNodes||this.valueConsistsOf===ut)n=t;else if(this.valueConsistsOf===ct)t.forEach((function(t){n.push(t);var r=e.getNode(t);r.isBranch&&e.traverseDescendantsBFS(r,(function(t){n.push(t.id)}))}));else if(this.valueConsistsOf===ht){var r=U(),i=t.slice();while(i.length){var o=i.shift(),a=this.getNode(o);n.push(o),a.isRootNode||(a.parentNode.id in r||(r[a.parentNode.id]=a.parentNode.children.length),0===--r[a.parentNode.id]&&i.push(a.parentNode.id))}}else if(this.valueConsistsOf===ft){var s=U(),l=t.filter((function(t){var n=e.getNode(t);return n.isLeaf||0===n.children.length}));while(l.length){var u=l.shift(),c=this.getNode(u);n.push(u),c.isRootNode||(c.parentNode.id in s||(s[c.parentNode.id]=c.parentNode.children.length),0===--s[c.parentNode.id]&&l.push(c.parentNode.id))}}var h=Q(this.forest.selectedNodeIds,n);h&&(this.forest.selectedNodeIds=n),this.buildForestState()},keepDataOfSelectedNodes:function(t){var e=this;this.forest.selectedNodeIds.forEach((function(n){if(t[n]){var r=wt({},t[n],{isFallbackNode:!0});e.$set(e.forest.nodeMap,n,r)}}))},isSelected:function(t){return!0===this.forest.selectedNodeMap[t.id]},traverseDescendantsBFS:function(t,e){if(t.isBranch){var n=t.children.slice();while(n.length){var r=n[0];r.isBranch&&n.push.apply(n,a()(r.children)),e(r),n.shift()}}},traverseDescendantsDFS:function(t,e){var n=this;t.isBranch&&t.children.forEach((function(t){n.traverseDescendantsDFS(t,e),e(t)}))},traverseAllNodesDFS:function(t){var e=this;this.forest.normalizedOptions.forEach((function(n){e.traverseDescendantsDFS(n,t),t(n)}))},traverseAllNodesByIndex:function(t){var e=function e(n){n.children.forEach((function(n){!1!==t(n)&&n.isBranch&&e(n)}))};e({children:this.forest.normalizedOptions})},toggleClickOutsideEvent:function(t){t?document.addEventListener("mousedown",this.handleClickOutside,!1):document.removeEventListener("mousedown",this.handleClickOutside,!1)},getValueContainer:function(){return this.$refs.control.$refs["value-container"]},getInput:function(){return this.getValueContainer().$refs.input},focusInput:function(){this.getInput().focus()},blurInput:function(){this.getInput().blur()},handleMouseDown:d((function(t){if(t.preventDefault(),t.stopPropagation(),!this.disabled){var e=this.getValueContainer().$el.contains(t.target);e&&!this.menu.isOpen&&(this.openOnClick||this.trigger.isFocused)&&this.openMenu(),this._blurOnSelect?this.blurInput():this.focusInput(),this.resetFlags()}})),handleClickOutside:function(t){this.$refs.wrapper&&!this.$refs.wrapper.contains(t.target)&&(this.blurInput(),this.closeMenu())},handleLocalSearch:function(){var t=this,e=this.trigger.searchQuery,n=function(){return t.resetHighlightedOptionWhenNecessary(!0)};if(!e)return this.localSearch.active=!1,n();this.localSearch.active=!0,this.localSearch.noResults=!0,this.traverseAllNodesDFS((function(e){var n;e.isBranch&&(e.isExpandedOnSearch=!1,e.showAllChildrenOnSearch=!1,e.isMatched=!1,e.hasMatchedDescendants=!1,t.$set(t.localSearch.countMap,e.id,(n={},l()(n,nt,0),l()(n,rt,0),l()(n,it,0),l()(n,ot,0),n)))}));var r=e.trim().toLocaleLowerCase(),i=r.replace(/\s+/g," ").split(" ");this.traverseAllNodesDFS((function(e){t.searchNested&&i.length>1?e.isMatched=i.every((function(t){return kt(!1,t,e.nestedSearchLabel)})):e.isMatched=t.matchKeys.some((function(n){return kt(!t.disableFuzzyMatching,r,e.lowerCased[n])})),e.isMatched&&(t.localSearch.noResults=!1,e.ancestors.forEach((function(e){return t.localSearch.countMap[e.id][rt]++})),e.isLeaf&&e.ancestors.forEach((function(e){return t.localSearch.countMap[e.id][ot]++})),e.parentNode!==K&&(t.localSearch.countMap[e.parentNode.id][nt]+=1,e.isLeaf&&(t.localSearch.countMap[e.parentNode.id][it]+=1))),(e.isMatched||e.isBranch&&e.isExpandedOnSearch)&&e.parentNode!==K&&(e.parentNode.isExpandedOnSearch=!0,e.parentNode.hasMatchedDescendants=!0)})),n()},handleRemoteSearch:function(){var t=this,e=this.trigger.searchQuery,n=this.getRemoteSearchEntry(),r=function(){t.initialize(),t.resetHighlightedOptionWhenNecessary(!0)};if((""===e||this.cacheOptions)&&n.isLoaded)return r();this.callLoadOptionsProp({action:lt,args:{searchQuery:e},isPending:function(){return n.isLoading},start:function(){n.isLoading=!0,n.isLoaded=!1,n.loadingError=""},succeed:function(i){n.isLoaded=!0,n.options=i,t.trigger.searchQuery===e&&r()},fail:function(t){n.loadingError=Dt(t)},end:function(){n.isLoading=!1}})},getRemoteSearchEntry:function(){var t=this,e=this.trigger.searchQuery,n=this.remoteSearch[e]||wt({},At(),{options:[]});if(this.$watch((function(){return n.options}),(function(){t.trigger.searchQuery===e&&t.initialize()}),{deep:!0}),""===e){if(Array.isArray(this.defaultOptions))return n.options=this.defaultOptions,n.isLoaded=!0,n;if(!0!==this.defaultOptions)return n.isLoaded=!0,n}return this.remoteSearch[e]||this.$set(this.remoteSearch,e,n),n},shouldExpand:function(t){return this.localSearch.active?t.isExpandedOnSearch:t.isExpanded},shouldOptionBeIncludedInSearchResult:function(t){return!!t.isMatched||(!(!t.isBranch||!t.hasMatchedDescendants||this.flattenSearchResults)||!(t.isRootNode||!t.parentNode.showAllChildrenOnSearch))},shouldShowOptionInMenu:function(t){return!(this.localSearch.active&&!this.shouldOptionBeIncludedInSearchResult(t))},getControl:function(){return this.$refs.control.$el},getMenu:function(){var t=this.appendToBody?this.$refs.portal.portalTarget:this,e=t.$refs.menu.$refs.menu;return e&&"#comment"!==e.nodeName?e:null},setCurrentHighlightedOption:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.menu.current;if(null!=r&&r in this.forest.nodeMap&&(this.forest.nodeMap[r].isHighlighted=!1),this.menu.current=t.id,t.isHighlighted=!0,this.menu.isOpen&&n){var i=function(){var n=e.getMenu(),r=n.querySelector('.vue-treeselect__option[data-id="'.concat(t.id,'"]'));r&&g(n,r)};this.getMenu()?i():this.$nextTick(i)}},resetHighlightedOptionWhenNecessary:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.menu.current;!t&&null!=e&&e in this.forest.nodeMap&&this.shouldShowOptionInMenu(this.getNode(e))||this.highlightFirstOption()},highlightFirstOption:function(){if(this.hasVisibleOptions){var t=this.visibleOptionIds[0];this.setCurrentHighlightedOption(this.getNode(t))}},highlightPrevOption:function(){if(this.hasVisibleOptions){var t=this.visibleOptionIds.indexOf(this.menu.current)-1;if(-1===t)return this.highlightLastOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[t]))}},highlightNextOption:function(){if(this.hasVisibleOptions){var t=this.visibleOptionIds.indexOf(this.menu.current)+1;if(t===this.visibleOptionIds.length)return this.highlightFirstOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[t]))}},highlightLastOption:function(){if(this.hasVisibleOptions){var t=X()(this.visibleOptionIds);this.setCurrentHighlightedOption(this.getNode(t))}},resetSearchQuery:function(){this.trigger.searchQuery=""},closeMenu:function(){!this.menu.isOpen||!this.disabled&&this.alwaysOpen||(this.saveMenuScrollPosition(),this.menu.isOpen=!1,this.toggleClickOutsideEvent(!1),this.resetSearchQuery(),this.$emit("close",this.getValue(),this.getInstanceId()))},openMenu:function(){this.disabled||this.menu.isOpen||(this.menu.isOpen=!0,this.$nextTick(this.resetHighlightedOptionWhenNecessary),this.$nextTick(this.restoreMenuScrollPosition),this.options||this.async||this.loadRootOptions(),this.toggleClickOutsideEvent(!0),this.$emit("open",this.getInstanceId()))},toggleMenu:function(){this.menu.isOpen?this.closeMenu():this.openMenu()},toggleExpanded:function(t){var e;this.localSearch.active?(e=t.isExpandedOnSearch=!t.isExpandedOnSearch,e&&(t.showAllChildrenOnSearch=!0)):e=t.isExpanded=!t.isExpanded,e&&!t.childrenStates.isLoaded&&this.loadChildrenOptions(t)},buildForestState:function(){var t=this,e=U();this.forest.selectedNodeIds.forEach((function(t){e[t]=!0})),this.forest.selectedNodeMap=e;var n=U();this.multiple&&(this.traverseAllNodesByIndex((function(t){n[t.id]=J})),this.selectedNodes.forEach((function(e){n[e.id]=et,t.flat||t.disableBranchNodes||e.ancestors.forEach((function(e){t.isSelected(e)||(n[e.id]=tt)}))}))),this.forest.checkedStateMap=n},enhancedNormalizer:function(t){return wt({},t,{},this.normalizer(t,this.getInstanceId()))},normalize:function(t,e,n){var r=this,o=e.map((function(t){return[r.enhancedNormalizer(t),t]})).map((function(e,o){var a=i()(e,2),s=a[0],u=a[1];r.checkDuplication(s),r.verifyNodeShape(s);var c=s.id,h=s.label,f=s.children,d=s.isDefaultExpanded,g=t===K,v=g?0:t.level+1,m=Array.isArray(f)||null===f,y=!m,b=!!s.isDisabled||!r.flat&&!g&&t.isDisabled,x=!!s.isNew,w=r.matchKeys.reduce((function(t,e){return wt({},t,l()({},e,Et(s[e]).toLocaleLowerCase()))}),{}),C=g?w.label:t.nestedSearchLabel+" "+w.label,S=r.$set(r.forest.nodeMap,c,U());if(r.$set(S,"id",c),r.$set(S,"label",h),r.$set(S,"level",v),r.$set(S,"ancestors",g?[]:[t].concat(t.ancestors)),r.$set(S,"index",(g?[]:t.index).concat(o)),r.$set(S,"parentNode",t),r.$set(S,"lowerCased",w),r.$set(S,"nestedSearchLabel",C),r.$set(S,"isDisabled",b),r.$set(S,"isNew",x),r.$set(S,"isMatched",!1),r.$set(S,"isHighlighted",!1),r.$set(S,"isBranch",m),r.$set(S,"isLeaf",y),r.$set(S,"isRootNode",g),r.$set(S,"raw",u),m){var A,E=Array.isArray(f);r.$set(S,"childrenStates",wt({},At(),{isLoaded:E})),r.$set(S,"isExpanded","boolean"===typeof d?d:v<r.defaultExpandLevel),r.$set(S,"hasMatchedDescendants",!1),r.$set(S,"hasDisabledDescendants",!1),r.$set(S,"isExpandedOnSearch",!1),r.$set(S,"showAllChildrenOnSearch",!1),r.$set(S,"count",(A={},l()(A,nt,0),l()(A,rt,0),l()(A,it,0),l()(A,ot,0),A)),r.$set(S,"children",E?r.normalize(S,f,n):[]),!0===d&&S.ancestors.forEach((function(t){t.isExpanded=!0})),E||"function"===typeof r.loadOptions?!E&&S.isExpanded&&r.loadChildrenOptions(S):p((function(){return!1}),(function(){return'Unloaded branch node detected. "loadOptions" prop is required to load its children.'}))}if(S.ancestors.forEach((function(t){return t.count[rt]++})),y&&S.ancestors.forEach((function(t){return t.count[ot]++})),g||(t.count[nt]+=1,y&&(t.count[it]+=1),b&&(t.hasDisabledDescendants=!0)),n&&n[c]){var k=n[c];S.isMatched=k.isMatched,S.showAllChildrenOnSearch=k.showAllChildrenOnSearch,S.isHighlighted=k.isHighlighted,k.isBranch&&S.isBranch&&(S.isExpanded=k.isExpanded,S.isExpandedOnSearch=k.isExpandedOnSearch,k.childrenStates.isLoaded&&!S.childrenStates.isLoaded?S.isExpanded=!1:S.childrenStates=wt({},k.childrenStates))}return S}));if(this.branchNodesFirst){var a=o.filter((function(t){return t.isBranch})),s=o.filter((function(t){return t.isLeaf}));o=a.concat(s)}return o},loadRootOptions:function(){var t=this;this.callLoadOptionsProp({action:at,isPending:function(){return t.rootOptionsStates.isLoading},start:function(){t.rootOptionsStates.isLoading=!0,t.rootOptionsStates.loadingError=""},succeed:function(){t.rootOptionsStates.isLoaded=!0,t.$nextTick((function(){t.resetHighlightedOptionWhenNecessary(!0)}))},fail:function(e){t.rootOptionsStates.loadingError=Dt(e)},end:function(){t.rootOptionsStates.isLoading=!1}})},loadChildrenOptions:function(t){var e=this,n=t.id,r=t.raw;this.callLoadOptionsProp({action:st,args:{parentNode:r},isPending:function(){return e.getNode(n).childrenStates.isLoading},start:function(){e.getNode(n).childrenStates.isLoading=!0,e.getNode(n).childrenStates.loadingError=""},succeed:function(){e.getNode(n).childrenStates.isLoaded=!0},fail:function(t){e.getNode(n).childrenStates.loadingError=Dt(t)},end:function(){e.getNode(n).childrenStates.isLoading=!1}})},callLoadOptionsProp:function(t){var e=t.action,n=t.args,r=t.isPending,i=t.start,o=t.succeed,a=t.fail,s=t.end;if(this.loadOptions&&!r()){i();var l=L()((function(t,e){t?a(t):o(e),s()})),u=this.loadOptions(wt({id:this.getInstanceId(),instanceId:this.getInstanceId(),action:e},n,{callback:l}));I()(u)&&u.then((function(){l()}),(function(t){l(t)})).catch((function(t){console.error(t)}))}},checkDuplication:function(t){var e=this;p((function(){return!(t.id in e.forest.nodeMap&&!e.forest.nodeMap[t.id].isFallbackNode)}),(function(){return"Detected duplicate presence of node id ".concat(JSON.stringify(t.id),". ")+'Their labels are "'.concat(e.forest.nodeMap[t.id].label,'" and "').concat(t.label,'" respectively.')}))},verifyNodeShape:function(t){p((function(){return!(void 0===t.children&&!0===t.isBranch)}),(function(){return"Are you meant to declare an unloaded branch node? `isBranch: true` is no longer supported, please use `children: null` instead."}))},select:function(t){if(!this.disabled&&!t.isDisabled){this.single&&this.clear();var e=this.multiple&&!this.flat?this.forest.checkedStateMap[t.id]===J:!this.isSelected(t);e?this._selectNode(t):this._deselectNode(t),this.buildForestState(),e?this.$emit("select",t.raw,this.getInstanceId()):this.$emit("deselect",t.raw,this.getInstanceId()),this.localSearch.active&&e&&(this.single||this.clearOnSelect)&&this.resetSearchQuery(),this.single&&this.closeOnSelect&&(this.closeMenu(),this.searchable&&(this._blurOnSelect=!0))}},clear:function(){var t=this;this.hasValue&&(this.single||this.allowClearingDisabled?this.forest.selectedNodeIds=[]:this.forest.selectedNodeIds=this.forest.selectedNodeIds.filter((function(e){return t.getNode(e).isDisabled})),this.buildForestState())},_selectNode:function(t){var e=this;if(this.single||this.disableBranchNodes)return this.addValue(t);if(this.flat)return this.addValue(t),void(this.autoSelectAncestors?t.ancestors.forEach((function(t){e.isSelected(t)||t.isDisabled||e.addValue(t)})):this.autoSelectDescendants&&this.traverseDescendantsBFS(t,(function(t){e.isSelected(t)||t.isDisabled||e.addValue(t)})));var n=t.isLeaf||!t.hasDisabledDescendants||this.allowSelectingDisabledDescendants;if(n&&this.addValue(t),t.isBranch&&this.traverseDescendantsBFS(t,(function(t){t.isDisabled&&!e.allowSelectingDisabledDescendants||e.addValue(t)})),n){var r=t;while((r=r.parentNode)!==K){if(!r.children.every(this.isSelected))break;this.addValue(r)}}},_deselectNode:function(t){var e=this;if(this.disableBranchNodes)return this.removeValue(t);if(this.flat)return this.removeValue(t),void(this.autoDeselectAncestors?t.ancestors.forEach((function(t){e.isSelected(t)&&!t.isDisabled&&e.removeValue(t)})):this.autoDeselectDescendants&&this.traverseDescendantsBFS(t,(function(t){e.isSelected(t)&&!t.isDisabled&&e.removeValue(t)})));var n=!1;if(t.isBranch&&this.traverseDescendantsDFS(t,(function(t){t.isDisabled&&!e.allowSelectingDisabledDescendants||(e.removeValue(t),n=!0)})),t.isLeaf||n||0===t.children.length){this.removeValue(t);var r=t;while((r=r.parentNode)!==K){if(!this.isSelected(r))break;this.removeValue(r)}}},addValue:function(t){this.forest.selectedNodeIds.push(t.id),this.forest.selectedNodeMap[t.id]=!0},removeValue:function(t){w(this.forest.selectedNodeIds,t.id),delete this.forest.selectedNodeMap[t.id]},removeLastValue:function(){if(this.hasValue){if(this.single)return this.clear();var t=X()(this.internalValue),e=this.getNode(t);this.select(e)}},saveMenuScrollPosition:function(){var t=this.getMenu();t&&(this.menu.lastScrollPosition=t.scrollTop)},restoreMenuScrollPosition:function(){var t=this.getMenu();t&&(t.scrollTop=this.menu.lastScrollPosition)}},created:function(){this.verifyProps(),this.resetFlags()},mounted:function(){this.autoFocus&&this.focusInput(),this.options||this.async||!this.autoLoadRootOptions||this.loadRootOptions(),this.alwaysOpen&&this.openMenu(),this.async&&this.defaultOptions&&this.handleRemoteSearch()},destroyed:function(){this.toggleClickOutsideEvent(!1)}};function Ot(t){return"string"===typeof t?t:null==t||B(t)?"":JSON.stringify(t)}var Tt,Bt,_t={name:"vue-treeselect--hidden-fields",inject:["instance"],functional:!0,render:function(t,e){var n=arguments[0],r=e.injections.instance;if(!r.name||r.disabled||!r.hasValue)return null;var i=r.internalValue.map(Ot);return r.multiple&&r.joinValues&&(i=[i.join(r.delimiter)]),i.map((function(t,e){return n("input",{attrs:{type:"hidden",name:r.name},domProps:{value:t},key:"hidden-field-"+e})}))}},It=_t;function Pt(t,e,n,r,i,o,a,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}var Lt=Pt(It,Tt,Bt,!1,null,null,null);Lt.options.__file="src/components/HiddenFields.vue";var Rt,Nt,jt=Lt.exports,zt=n(13),Ut=n.n(zt),Vt=[vt.ENTER,vt.END,vt.HOME,vt.ARROW_LEFT,vt.ARROW_UP,vt.ARROW_RIGHT,vt.ARROW_DOWN],Ht={name:"vue-treeselect--input",inject:["instance"],data:function(){return{inputWidth:yt,value:""}},computed:{needAutoSize:function(){var t=this.instance;return t.searchable&&!t.disabled&&t.multiple},inputStyle:function(){return{width:this.needAutoSize?"".concat(this.inputWidth,"px"):null}}},watch:{"instance.trigger.searchQuery":function(t){this.value=t},value:function(){this.needAutoSize&&this.$nextTick(this.updateInputWidth)}},created:function(){this.debouncedCallback=y()(this.updateSearchQuery,mt,{leading:!0,trailing:!0})},methods:{clear:function(){this.onInput({target:{value:""}})},focus:function(){var t=this.instance;t.disabled||this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},onFocus:function(){var t=this.instance;t.trigger.isFocused=!0,t.openOnFocus&&t.openMenu()},onBlur:function(){var t=this.instance,e=t.getMenu();if(e&&document.activeElement===e)return this.focus();t.trigger.isFocused=!1,t.closeMenu()},onInput:function(t){var e=t.target.value;this.value=e,e?this.debouncedCallback():(this.debouncedCallback.cancel(),this.updateSearchQuery())},onKeyDown:function(t){var e=this.instance,n="which"in t?t.which:t.keyCode;if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)){if(!e.menu.isOpen&&Z(Vt,n))return t.preventDefault(),e.openMenu();switch(n){case vt.BACKSPACE:e.backspaceRemoves&&!this.value.length&&e.removeLastValue();break;case vt.ENTER:if(t.preventDefault(),null===e.menu.current)return;var r=e.getNode(e.menu.current);if(r.isBranch&&e.disableBranchNodes)return;e.select(r);break;case vt.ESCAPE:this.value.length?this.clear():e.menu.isOpen&&e.closeMenu();break;case vt.END:t.preventDefault(),e.highlightLastOption();break;case vt.HOME:t.preventDefault(),e.highlightFirstOption();break;case vt.ARROW_LEFT:var i=e.getNode(e.menu.current);i.isBranch&&e.shouldExpand(i)?(t.preventDefault(),e.toggleExpanded(i)):!i.isRootNode&&(i.isLeaf||i.isBranch&&!e.shouldExpand(i))&&(t.preventDefault(),e.setCurrentHighlightedOption(i.parentNode));break;case vt.ARROW_UP:t.preventDefault(),e.highlightPrevOption();break;case vt.ARROW_RIGHT:var o=e.getNode(e.menu.current);o.isBranch&&!e.shouldExpand(o)&&(t.preventDefault(),e.toggleExpanded(o));break;case vt.ARROW_DOWN:t.preventDefault(),e.highlightNextOption();break;case vt.DELETE:e.deleteRemoves&&!this.value.length&&e.removeLastValue();break;default:e.openMenu()}}},onMouseDown:function(t){this.value.length&&t.stopPropagation()},renderInputContainer:function(){var t=this.$createElement,e=this.instance,n={},r=[];return e.searchable&&!e.disabled&&(r.push(this.renderInput()),this.needAutoSize&&r.push(this.renderSizer())),e.searchable||W(n,{on:{focus:this.onFocus,blur:this.onBlur,keydown:this.onKeyDown},ref:"input"}),e.searchable||e.disabled||W(n,{attrs:{tabIndex:e.tabIndex}}),t("div",Ut()([{class:"vue-treeselect__input-container"},n]),[r])},renderInput:function(){var t=this.$createElement,e=this.instance;return t("input",{ref:"input",class:"vue-treeselect__input",attrs:{type:"text",autocomplete:"off",tabIndex:e.tabIndex,required:e.required&&!e.hasValue},domProps:{value:this.value},style:this.inputStyle,on:{focus:this.onFocus,input:this.onInput,blur:this.onBlur,keydown:this.onKeyDown,mousedown:this.onMouseDown}})},renderSizer:function(){var t=this.$createElement;return t("div",{ref:"sizer",class:"vue-treeselect__sizer"},[this.value])},updateInputWidth:function(){this.inputWidth=Math.max(yt,this.$refs.sizer.scrollWidth+15)},updateSearchQuery:function(){var t=this.instance;t.trigger.searchQuery=this.value}},render:function(){return this.renderInputContainer()}},$t=Ht,Gt=Pt($t,Rt,Nt,!1,null,null,null);Gt.options.__file="src/components/Input.vue";var Wt,qt,Xt=Gt.exports,Zt={name:"vue-treeselect--placeholder",inject:["instance"],render:function(){var t=arguments[0],e=this.instance,n={"vue-treeselect__placeholder":!0,"vue-treeselect-helper-zoom-effect-off":!0,"vue-treeselect-helper-hide":e.hasValue||e.trigger.searchQuery};return t("div",{class:n},[e.placeholder])}},Yt=Zt,Qt=Pt(Yt,Wt,qt,!1,null,null,null);Qt.options.__file="src/components/Placeholder.vue";var Kt,Jt,te=Qt.exports,ee={name:"vue-treeselect--single-value",inject:["instance"],methods:{renderSingleValueLabel:function(){var t=this.instance,e=t.selectedNodes[0],n=t.$scopedSlots["value-label"];return n?n({node:e}):e.label}},render:function(){var t=arguments[0],e=this.instance,n=this.$parent.renderValueContainer,r=e.hasValue&&!e.trigger.searchQuery;return n([r&&t("div",{class:"vue-treeselect__single-value"},[this.renderSingleValueLabel()]),t(te),t(Xt,{ref:"input"})])}},ne=ee,re=Pt(ne,Kt,Jt,!1,null,null,null);re.options.__file="src/components/SingleValue.vue";var ie=re.exports,oe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 348.333 348.333"}},[n("path",{attrs:{d:"M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z"}})])},ae=[];oe._withStripped=!0;var se={name:"vue-treeselect--x"},le=se,ue=Pt(le,oe,ae,!1,null,null,null);ue.options.__file="src/components/icons/Delete.vue";var ce,he,fe=ue.exports,pe={name:"vue-treeselect--multi-value-item",inject:["instance"],props:{node:{type:Object,required:!0}},methods:{handleMouseDown:d((function(){var t=this.instance,e=this.node;t.select(e)}))},render:function(){var t=arguments[0],e=this.instance,n=this.node,r={"vue-treeselect__multi-value-item":!0,"vue-treeselect__multi-value-item-disabled":n.isDisabled,"vue-treeselect__multi-value-item-new":n.isNew},i=e.$scopedSlots["value-label"],o=i?i({node:n}):n.label;return t("div",{class:"vue-treeselect__multi-value-item-container"},[t("div",{class:r,on:{mousedown:this.handleMouseDown}},[t("span",{class:"vue-treeselect__multi-value-label"},[o]),t("span",{class:"vue-treeselect__icon vue-treeselect__value-remove"},[t(fe)])])])}},de=pe,ge=Pt(de,ce,he,!1,null,null,null);ge.options.__file="src/components/MultiValueItem.vue";var ve,me,ye=ge.exports,be={name:"vue-treeselect--multi-value",inject:["instance"],methods:{renderMultiValueItems:function(){var t=this.$createElement,e=this.instance;return e.internalValue.slice(0,e.limit).map(e.getNode).map((function(e){return t(ye,{key:"multi-value-item-".concat(e.id),attrs:{node:e}})}))},renderExceedLimitTip:function(){var t=this.$createElement,e=this.instance,n=e.internalValue.length-e.limit;return n<=0?null:t("div",{class:"vue-treeselect__limit-tip vue-treeselect-helper-zoom-effect-off",key:"exceed-limit-tip"},[t("span",{class:"vue-treeselect__limit-tip-text"},[e.limitText(n)])])}},render:function(){var t=arguments[0],e=this.$parent.renderValueContainer,n={props:{tag:"div",name:"vue-treeselect__multi-value-item--transition",appear:!0}};return e(t("transition-group",Ut()([{class:"vue-treeselect__multi-value"},n]),[this.renderMultiValueItems(),this.renderExceedLimitTip(),t(te,{key:"placeholder"}),t(Xt,{ref:"input",key:"input"})]))}},xe=be,we=Pt(xe,ve,me,!1,null,null,null);we.options.__file="src/components/MultiValue.vue";var Ce=we.exports,Se=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 292.362 292.362"}},[n("path",{attrs:{d:"M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z"}})])},Ae=[];Se._withStripped=!0;var Ee={name:"vue-treeselect--arrow"},ke=Ee,De=Pt(ke,Se,Ae,!1,null,null,null);De.options.__file="src/components/icons/Arrow.vue";var Fe,Me,Oe=De.exports,Te={name:"vue-treeselect--control",inject:["instance"],computed:{shouldShowX:function(){var t=this.instance;return t.clearable&&!t.disabled&&t.hasValue&&(this.hasUndisabledValue||t.allowClearingDisabled)},shouldShowArrow:function(){var t=this.instance;return!t.alwaysOpen||!t.menu.isOpen},hasUndisabledValue:function(){var t=this.instance;return t.hasValue&&t.internalValue.some((function(e){return!t.getNode(e).isDisabled}))}},methods:{renderX:function(){var t=this.$createElement,e=this.instance,n=e.multiple?e.clearAllText:e.clearValueText;return this.shouldShowX?t("div",{class:"vue-treeselect__x-container",attrs:{title:n},on:{mousedown:this.handleMouseDownOnX}},[t(fe,{class:"vue-treeselect__x"})]):null},renderArrow:function(){var t=this.$createElement,e=this.instance,n={"vue-treeselect__control-arrow":!0,"vue-treeselect__control-arrow--rotated":e.menu.isOpen};return this.shouldShowArrow?t("div",{class:"vue-treeselect__control-arrow-container",on:{mousedown:this.handleMouseDownOnArrow}},[t(Oe,{class:n})]):null},handleMouseDownOnX:d((function(t){t.stopPropagation(),t.preventDefault();var e=this.instance,n=e.beforeClearAll(),r=function(t){t&&e.clear()};I()(n)?n.then(r):setTimeout((function(){return r(n)}),0)})),handleMouseDownOnArrow:d((function(t){t.preventDefault(),t.stopPropagation();var e=this.instance;e.focusInput(),e.toggleMenu()})),renderValueContainer:function(t){var e=this.$createElement;return e("div",{class:"vue-treeselect__value-container"},[t])}},render:function(){var t=arguments[0],e=this.instance,n=e.single?ie:Ce;return t("div",{class:"vue-treeselect__control",on:{mousedown:e.handleMouseDown}},[t(n,{ref:"value-container"}),this.renderX(),this.renderArrow()])}},Be=Te,_e=Pt(Be,Fe,Me,!1,null,null,null);_e.options.__file="src/components/Control.vue";var Ie,Pe,Le=_e.exports,Re={name:"vue-treeselect--tip",functional:!0,props:{type:{type:String,required:!0},icon:{type:String,required:!0}},render:function(t,e){var n=arguments[0],r=e.props,i=e.children;return n("div",{class:"vue-treeselect__tip vue-treeselect__".concat(r.type,"-tip")},[n("div",{class:"vue-treeselect__icon-container"},[n("span",{class:"vue-treeselect__icon-".concat(r.icon)})]),n("span",{class:"vue-treeselect__tip-text vue-treeselect__".concat(r.type,"-tip-text")},[i])])}},Ne=Re,je=Pt(Ne,Ie,Pe,!1,null,null,null);je.options.__file="src/components/Tip.vue";var ze,Ue,Ve,He,$e,Ge=je.exports,We={name:"vue-treeselect--option",inject:["instance"],props:{node:{type:Object,required:!0}},computed:{shouldExpand:function(){var t=this.instance,e=this.node;return e.isBranch&&t.shouldExpand(e)},shouldShow:function(){var t=this.instance,e=this.node;return t.shouldShowOptionInMenu(e)}},methods:{renderOption:function(){var t=this.$createElement,e=this.instance,n=this.node,r={"vue-treeselect__option":!0,"vue-treeselect__option--disabled":n.isDisabled,"vue-treeselect__option--selected":e.isSelected(n),"vue-treeselect__option--highlight":n.isHighlighted,"vue-treeselect__option--matched":e.localSearch.active&&n.isMatched,"vue-treeselect__option--hide":!this.shouldShow};return t("div",{class:r,on:{mouseenter:this.handleMouseEnterOption},attrs:{"data-id":n.id}},[this.renderArrow(),this.renderLabelContainer([this.renderCheckboxContainer([this.renderCheckbox()]),this.renderLabel()])])},renderSubOptionsList:function(){var t=this.$createElement;return this.shouldExpand?t("div",{class:"vue-treeselect__list"},[this.renderSubOptions(),this.renderNoChildrenTip(),this.renderLoadingChildrenTip(),this.renderLoadingChildrenErrorTip()]):null},renderArrow:function(){var t=this.$createElement,e=this.instance,n=this.node;if(e.shouldFlattenOptions&&this.shouldShow)return null;if(n.isBranch){var r={props:{name:"vue-treeselect__option-arrow--prepare",appear:!0}},i={"vue-treeselect__option-arrow":!0,"vue-treeselect__option-arrow--rotated":this.shouldExpand};return t("div",{class:"vue-treeselect__option-arrow-container",on:{mousedown:this.handleMouseDownOnArrow}},[t("transition",r,[t(Oe,{class:i})])])}return e.hasBranchNodes?(ze||(ze=t("div",{class:"vue-treeselect__option-arrow-placeholder"},[" "])),ze):null},renderLabelContainer:function(t){var e=this.$createElement;return e("div",{class:"vue-treeselect__label-container",on:{mousedown:this.handleMouseDownOnLabelContainer}},[t])},renderCheckboxContainer:function(t){var e=this.$createElement,n=this.instance,r=this.node;return n.single||n.disableBranchNodes&&r.isBranch?null:e("div",{class:"vue-treeselect__checkbox-container"},[t])},renderCheckbox:function(){var t=this.$createElement,e=this.instance,n=this.node,r=e.forest.checkedStateMap[n.id],i={"vue-treeselect__checkbox":!0,"vue-treeselect__checkbox--checked":r===et,"vue-treeselect__checkbox--indeterminate":r===tt,"vue-treeselect__checkbox--unchecked":r===J,"vue-treeselect__checkbox--disabled":n.isDisabled};return Ue||(Ue=t("span",{class:"vue-treeselect__check-mark"})),Ve||(Ve=t("span",{class:"vue-treeselect__minus-mark"})),t("span",{class:i},[Ue,Ve])},renderLabel:function(){var t=this.$createElement,e=this.instance,n=this.node,r=n.isBranch&&(e.localSearch.active?e.showCountOnSearchComputed:e.showCount),i=r?e.localSearch.active?e.localSearch.countMap[n.id][e.showCountOf]:n.count[e.showCountOf]:NaN,o="vue-treeselect__label",a="vue-treeselect__count",s=e.$scopedSlots["option-label"];return s?s({node:n,shouldShowCount:r,count:i,labelClassName:o,countClassName:a}):t("label",{class:o},[n.label,r&&t("span",{class:a},["(",i,")"])])},renderSubOptions:function(){var t=this.$createElement,e=this.node;return e.childrenStates.isLoaded?e.children.map((function(e){return t(We,{attrs:{node:e},key:e.id})})):null},renderNoChildrenTip:function(){var t=this.$createElement,e=this.instance,n=this.node;return!n.childrenStates.isLoaded||n.children.length?null:t(Ge,{attrs:{type:"no-children",icon:"warning"}},[e.noChildrenText])},renderLoadingChildrenTip:function(){var t=this.$createElement,e=this.instance,n=this.node;return n.childrenStates.isLoading?t(Ge,{attrs:{type:"loading",icon:"loader"}},[e.loadingText]):null},renderLoadingChildrenErrorTip:function(){var t=this.$createElement,e=this.instance,n=this.node;return n.childrenStates.loadingError?t(Ge,{attrs:{type:"error",icon:"error"}},[n.childrenStates.loadingError,t("a",{class:"vue-treeselect__retry",attrs:{title:e.retryTitle},on:{mousedown:this.handleMouseDownOnRetry}},[e.retryText])]):null},handleMouseEnterOption:function(t){var e=this.instance,n=this.node;t.target===t.currentTarget&&e.setCurrentHighlightedOption(n,!1)},handleMouseDownOnArrow:d((function(){var t=this.instance,e=this.node;t.toggleExpanded(e)})),handleMouseDownOnLabelContainer:d((function(){var t=this.instance,e=this.node;e.isBranch&&t.disableBranchNodes?t.toggleExpanded(e):t.select(e)})),handleMouseDownOnRetry:d((function(){var t=this.instance,e=this.node;t.loadChildrenOptions(e)}))},render:function(){var t=arguments[0],e=this.node,n=this.instance.shouldFlattenOptions?0:e.level,r=l()({"vue-treeselect__list-item":!0},"vue-treeselect__indent-level-".concat(n),!0),i={props:{name:"vue-treeselect__list--transition"}};return t("div",{class:r},[this.renderOption(),e.isBranch&&t("transition",i,[this.renderSubOptionsList()])])}},qe=We,Xe=qe,Ze=Pt(Xe,He,$e,!1,null,null,null);Ze.options.__file="src/components/Option.vue";var Ye,Qe,Ke=Ze.exports,Je={top:"top",bottom:"bottom",above:"top",below:"bottom"},tn={name:"vue-treeselect--menu",inject:["instance"],computed:{menuStyle:function(){var t=this.instance;return{maxHeight:t.maxHeight+"px"}},menuContainerStyle:function(){var t=this.instance;return{zIndex:t.appendToBody?null:t.zIndex}}},watch:{"instance.menu.isOpen":function(t){t?this.$nextTick(this.onMenuOpen):this.onMenuClose()}},created:function(){this.menuSizeWatcher=null,this.menuResizeAndScrollEventListeners=null},mounted:function(){var t=this.instance;t.menu.isOpen&&this.$nextTick(this.onMenuOpen)},destroyed:function(){this.onMenuClose()},methods:{renderMenu:function(){var t=this.$createElement,e=this.instance;return e.menu.isOpen?t("div",{ref:"menu",class:"vue-treeselect__menu",on:{mousedown:e.handleMouseDown},style:this.menuStyle},[this.renderBeforeList(),e.async?this.renderAsyncSearchMenuInner():e.localSearch.active?this.renderLocalSearchMenuInner():this.renderNormalMenuInner(),this.renderAfterList()]):null},renderBeforeList:function(){var t=this.instance,e=t.$scopedSlots["before-list"];return e?e():null},renderAfterList:function(){var t=this.instance,e=t.$scopedSlots["after-list"];return e?e():null},renderNormalMenuInner:function(){var t=this.instance;return t.rootOptionsStates.isLoading?this.renderLoadingOptionsTip():t.rootOptionsStates.loadingError?this.renderLoadingRootOptionsErrorTip():t.rootOptionsStates.isLoaded&&0===t.forest.normalizedOptions.length?this.renderNoAvailableOptionsTip():this.renderOptionList()},renderLocalSearchMenuInner:function(){var t=this.instance;return t.rootOptionsStates.isLoading?this.renderLoadingOptionsTip():t.rootOptionsStates.loadingError?this.renderLoadingRootOptionsErrorTip():t.rootOptionsStates.isLoaded&&0===t.forest.normalizedOptions.length?this.renderNoAvailableOptionsTip():t.localSearch.noResults?this.renderNoResultsTip():this.renderOptionList()},renderAsyncSearchMenuInner:function(){var t=this.instance,e=t.getRemoteSearchEntry(),n=""===t.trigger.searchQuery&&!t.defaultOptions,r=!n&&(e.isLoaded&&0===e.options.length);return n?this.renderSearchPromptTip():e.isLoading?this.renderLoadingOptionsTip():e.loadingError?this.renderAsyncSearchLoadingErrorTip():r?this.renderNoResultsTip():this.renderOptionList()},renderOptionList:function(){var t=this.$createElement,e=this.instance;return t("div",{class:"vue-treeselect__list"},[e.forest.normalizedOptions.map((function(e){return t(Ke,{attrs:{node:e},key:e.id})}))])},renderSearchPromptTip:function(){var t=this.$createElement,e=this.instance;return t(Ge,{attrs:{type:"search-prompt",icon:"warning"}},[e.searchPromptText])},renderLoadingOptionsTip:function(){var t=this.$createElement,e=this.instance;return t(Ge,{attrs:{type:"loading",icon:"loader"}},[e.loadingText])},renderLoadingRootOptionsErrorTip:function(){var t=this.$createElement,e=this.instance;return t(Ge,{attrs:{type:"error",icon:"error"}},[e.rootOptionsStates.loadingError,t("a",{class:"vue-treeselect__retry",on:{click:e.loadRootOptions},attrs:{title:e.retryTitle}},[e.retryText])])},renderAsyncSearchLoadingErrorTip:function(){var t=this.$createElement,e=this.instance,n=e.getRemoteSearchEntry();return t(Ge,{attrs:{type:"error",icon:"error"}},[n.loadingError,t("a",{class:"vue-treeselect__retry",on:{click:e.handleRemoteSearch},attrs:{title:e.retryTitle}},[e.retryText])])},renderNoAvailableOptionsTip:function(){var t=this.$createElement,e=this.instance;return t(Ge,{attrs:{type:"no-options",icon:"warning"}},[e.noOptionsText])},renderNoResultsTip:function(){var t=this.$createElement,e=this.instance;return t(Ge,{attrs:{type:"no-results",icon:"warning"}},[e.noResultsText])},onMenuOpen:function(){this.adjustMenuOpenDirection(),this.setupMenuSizeWatcher(),this.setupMenuResizeAndScrollEventListeners()},onMenuClose:function(){this.removeMenuSizeWatcher(),this.removeMenuResizeAndScrollEventListeners()},adjustMenuOpenDirection:function(){var t=this.instance;if(t.menu.isOpen){var e=t.getMenu(),n=t.getControl(),r=e.getBoundingClientRect(),i=n.getBoundingClientRect(),o=r.height,a=window.innerHeight,s=i.top,l=window.innerHeight-i.bottom,u=i.top>=0&&i.top<=a||i.top<0&&i.bottom>0,c=l>o+bt,h=s>o+bt;u?"auto"!==t.openDirection?t.menu.placement=Je[t.openDirection]:t.menu.placement=c||!h?"bottom":"top":t.closeMenu()}},setupMenuSizeWatcher:function(){var t=this.instance,e=t.getMenu();this.menuSizeWatcher||(this.menuSizeWatcher={remove:F(e,this.adjustMenuOpenDirection)})},setupMenuResizeAndScrollEventListeners:function(){var t=this.instance,e=t.getControl();this.menuResizeAndScrollEventListeners||(this.menuResizeAndScrollEventListeners={remove:T(e,this.adjustMenuOpenDirection)})},removeMenuSizeWatcher:function(){this.menuSizeWatcher&&(this.menuSizeWatcher.remove(),this.menuSizeWatcher=null)},removeMenuResizeAndScrollEventListeners:function(){this.menuResizeAndScrollEventListeners&&(this.menuResizeAndScrollEventListeners.remove(),this.menuResizeAndScrollEventListeners=null)}},render:function(){var t=arguments[0];return t("div",{ref:"menu-container",class:"vue-treeselect__menu-container",style:this.menuContainerStyle},[t("transition",{attrs:{name:"vue-treeselect__menu--transition"}},[this.renderMenu()])])}},en=tn,nn=Pt(en,Ye,Qe,!1,null,null,null);nn.options.__file="src/components/Menu.vue";var rn=nn.exports,on=n(14),an=n.n(on);function sn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ln(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sn(n,!0).forEach((function(e){l()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sn(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var un,cn,hn,fn={name:"vue-treeselect--portal-target",inject:["instance"],watch:{"instance.menu.isOpen":function(t){t?this.setupHandlers():this.removeHandlers()},"instance.menu.placement":function(){this.updateMenuContainerOffset()}},created:function(){this.controlResizeAndScrollEventListeners=null,this.controlSizeWatcher=null},mounted:function(){var t=this.instance;t.menu.isOpen&&this.setupHandlers()},methods:{setupHandlers:function(){this.updateWidth(),this.updateMenuContainerOffset(),this.setupControlResizeAndScrollEventListeners(),this.setupControlSizeWatcher()},removeHandlers:function(){this.removeControlResizeAndScrollEventListeners(),this.removeControlSizeWatcher()},setupControlResizeAndScrollEventListeners:function(){var t=this.instance,e=t.getControl();this.controlResizeAndScrollEventListeners||(this.controlResizeAndScrollEventListeners={remove:T(e,this.updateMenuContainerOffset)})},setupControlSizeWatcher:function(){var t=this,e=this.instance,n=e.getControl();this.controlSizeWatcher||(this.controlSizeWatcher={remove:F(n,(function(){t.updateWidth(),t.updateMenuContainerOffset()}))})},removeControlResizeAndScrollEventListeners:function(){this.controlResizeAndScrollEventListeners&&(this.controlResizeAndScrollEventListeners.remove(),this.controlResizeAndScrollEventListeners=null)},removeControlSizeWatcher:function(){this.controlSizeWatcher&&(this.controlSizeWatcher.remove(),this.controlSizeWatcher=null)},updateWidth:function(){var t=this.instance,e=this.$el,n=t.getControl(),r=n.getBoundingClientRect();e.style.width=r.width+"px"},updateMenuContainerOffset:function(){var t=this.instance,e=t.getControl(),n=this.$el,r=e.getBoundingClientRect(),i=n.getBoundingClientRect(),o="bottom"===t.menu.placement?r.height:0,a=Math.round(r.left-i.left)+"px",s=Math.round(r.top-i.top+o)+"px",l=this.$refs.menu.$refs["menu-container"].style,u=["transform","webkitTransform","MozTransform","msTransform"],c=Y(u,(function(t){return t in document.body.style}));l[c]="translate(".concat(a,", ").concat(s,")")}},render:function(){var t=arguments[0],e=this.instance,n=["vue-treeselect__portal-target",e.wrapperClass],r={zIndex:e.zIndex};return t("div",{class:n,style:r,attrs:{"data-instance-id":e.getInstanceId()}},[t(rn,{ref:"menu"})])},destroyed:function(){this.removeHandlers()}},pn={name:"vue-treeselect--menu-portal",created:function(){this.portalTarget=null},mounted:function(){this.setup()},destroyed:function(){this.teardown()},methods:{setup:function(){var t=document.createElement("div");document.body.appendChild(t),this.portalTarget=new an.a(ln({el:t,parent:this},fn))},teardown:function(){document.body.removeChild(this.portalTarget.$el),this.portalTarget.$el.innerHTML="",this.portalTarget.$destroy(),this.portalTarget=null}},render:function(){var t=arguments[0];return un||(un=t("div",{class:"vue-treeselect__menu-placeholder"})),un}},dn=pn,gn=Pt(dn,cn,hn,!1,null,null,null);gn.options.__file="src/components/MenuPortal.vue";var vn,mn,yn=gn.exports,bn={name:"vue-treeselect",mixins:[Mt],computed:{wrapperClass:function(){return{"vue-treeselect":!0,"vue-treeselect--single":this.single,"vue-treeselect--multi":this.multiple,"vue-treeselect--searchable":this.searchable,"vue-treeselect--disabled":this.disabled,"vue-treeselect--focused":this.trigger.isFocused,"vue-treeselect--has-value":this.hasValue,"vue-treeselect--open":this.menu.isOpen,"vue-treeselect--open-above":"top"===this.menu.placement,"vue-treeselect--open-below":"bottom"===this.menu.placement,"vue-treeselect--branch-nodes-disabled":this.disableBranchNodes,"vue-treeselect--append-to-body":this.appendToBody}}},render:function(){var t=arguments[0];return t("div",{ref:"wrapper",class:this.wrapperClass},[t(jt),t(Le,{ref:"control"}),this.appendToBody?t(yn,{ref:"portal"}):t(rn,{ref:"menu"})])}},xn=bn,wn=Pt(xn,vn,mn,!1,null,null,null);wn.options.__file="src/components/Treeselect.vue";var Cn=wn.exports;n(15);n.d(e,"VERSION",(function(){return Sn})),n.d(e,"Treeselect",(function(){return Cn})),n.d(e,"treeselectMixin",(function(){return Mt})),n.d(e,"LOAD_ROOT_OPTIONS",(function(){return at})),n.d(e,"LOAD_CHILDREN_OPTIONS",(function(){return st})),n.d(e,"ASYNC_SEARCH",(function(){return lt}));e["default"]=Cn;var Sn="0.4.0"}])},6956:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return dt}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex"},[n("dep-list",{ref:"list",staticStyle:{flex:"1 1 auto","min-width":"240px"},on:{onClick:t.onClick},scopedSlots:t._u([{key:"operation",fn:function(e){return[t.tool.checkAuth(t.$route.name,"addDep")?n("addDep",{staticClass:"inline-16",attrs:{data:e.data},on:{onSuccess:t.onSuccess}}):t._e()]}}])}),n("div",{staticStyle:{flex:"0 1 1"}},[n("div",{staticClass:"container normal-panel normal-margin"},[t.tool.checkAuth(t.$route.name,"editDep")?n("editDep",{staticClass:"inline-16",attrs:{data:t.depInfo.data},on:{onSuccess:t.onSuccess}}):t._e(),t.tool.checkAuth(t.$route.name,"delDep")?n("delDep",{staticClass:"inline-16",attrs:{data:t.depInfo.data},on:{onSuccess:t.onSuccess}}):t._e(),t.tool.checkAuth(t.$route.name,"editDep")?n("startDep",{staticClass:"inline-16",attrs:{data:t.depInfo.data},on:{onSuccess:t.onSuccess}}):t._e()],1),n("dep-info-card",{staticClass:"normal-margin",attrs:{depInfo:t.depInfo}}),n("staffList",{ref:"staff",attrs:{depInfo:t.depInfo},scopedSlots:t._u([{key:"detail",fn:function(e){return[n("div",{staticClass:"inline-16"},[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(n){return t.$router.push({path:"/depManage/staffDetail",query:{id:e.data.hrid}})}}},[t._v("详 情")])],1)]}},{key:"del",fn:function(e){return[t.tool.checkAuth(t.$route.name,"delStaff")?n("del-staff",{attrs:{slot:"del",data:e.data},on:{onSuccess:t.onStaffSuccess},slot:"del"}):t._e()]}},{key:"edit",fn:function(e){return[t.tool.checkAuth(t.$route.name,"editStaff")?n("edit-staff",{attrs:{slot:"edit",data:e.data},on:{onSuccess:t.onStaffSuccess},slot:"edit"}):t._e()]}}])},[t.tool.checkAuth(t.$route.name,"addStaff")?n("add-staff",{attrs:{slot:"staff",depInfo:t.depInfo},on:{onSuccess:t.onStaffSuccess},slot:"staff"}):t._e()],1)],1)],1)},i=[],o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tree-panel"},[n("el-tree",{attrs:{data:t.deplist,"node-key":"id","default-expand-all":"","highlight-current":"","expand-on-click-node":!1},on:{"node-click":t.handleClick},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.node,i=e.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[t._v(t._s(r.label))]),n("span",[t._t("operation",null,{data:i})],2)])}}],null,!0)})],1)},a=[],s=n(16198),l=(n(41539),n(54747),n(35666),{components:{},data:function(){return{deplist:[]}},methods:{department:function(){var t=this;return(0,s.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.requested({classname:"webmanage.department.department",method:"querydepartment",content:{}});case 2:n=e.sent,t.deplist=t.createMenu(n.data),t.$store.dispatch("setDeplistData",t.deplist),t.$emit("onClick",{data:t.deplist[0],parent:[]});case 6:case"end":return e.stop()}}),e)})))()},createMenu:function(t){var e=[];function n(t){var e={label:t["depname"],parentid:t["parentid"],departmentid:t["departmentid"],value:t["departmentid"],remarks:t["remarks"],isused:t["isused"],changedate:t["changedate"],changeby:t["changeby"],createdate:t["createdate"],createby:t["createby"],depno:t["depno"],children:[]};if(t.subdep&&t.subdep.length>0)for(var r=0;r<t.subdep.length;r++)e.children.push(n(t.subdep[r]));return e}return t.forEach((function(t){e.push(n(t))})),e},handleClick:function(t,e,n){this.$emit("onClick",e)}},mounted:function(){this.department()}}),u=l,c=n(1001),h=(0,c.Z)(u,o,a,!1,null,"429c709f",null),f=h.exports,p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container normal-panel"},[n("div",{staticClass:"flex-align-center flex-between"},[n("p",{staticClass:"normal-title normal-margin"},[t._v("员工信息")]),t._t("staff")],2),n("el-input",{staticClass:"input-with-select normal-margin",staticStyle:{width:"270px"},attrs:{placeholder:"请输入内容",size:"small",clearable:""},model:{value:t.param.content.where.condition,callback:function(e){t.$set(t.param.content.where,"condition",e)},expression:"param.content.where.condition"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.listData(t.param.content.departmentid)}},slot:"append"},[t._v("查 询")])],1),n("tableLayout",{attrs:{layout:t.tablecols,data:t.list,opwidth:200,custom:!1,height:"calc(100vh - 508px)"},scopedSlots:t._u([{key:"opreation",fn:function(e){return[t._t("detail",null,{data:e.data}),t._t("edit",null,{data:e.data}),t._t("del",null,{data:e.data})]}}],null,!0)}),n("div",{staticStyle:{"margin-top":"16px","text-align":"right"}},[n("el-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.param.content.pageSize,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},d=[],g=(n(68309),{data:function(){return{param:{classname:"webmanage.hr.hr",method:"query_hrList",content:{nocahe:!0,pageNumber:1,pageSize:20,departmentid:null,where:{condition:""}}},tablecols:[],list:[],total:0,currentPage:0}},methods:{listData:function(t){var e=this;return(0,s.Z)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.param.content.departmentid=t,n.next=3,e.$api.requested(e.param);case 3:r=n.sent,e.list=r.data,e.total=r.total,e.currentPage=r.pageNumber;case 7:case"end":return n.stop()}}),n)})))()},handleSizeChange:function(t){this.param.content.pageSize=t,this.listData()},handleCurrentChange:function(t){this.param.content.pageNumber=t,this.listData()}},mounted:function(){this.tablecols=this.tool.tabelCol(this.$route.name)["staffTable"].tablecols}}),v=g,m=(0,c.Z)(v,p,d,!1,null,null,null),y=m.exports,b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.depInfo.data?n("div",{staticClass:"container normal-panel"},[n("p",{staticClass:"normal-title normal-margin"},[t._v("部门信息")]),n("el-descriptions",{attrs:{column:4}},[n("el-descriptions-item",{attrs:{label:"部门名称"}},[t._v(t._s(t.depInfo.data.label?t.depInfo.data.label:"未知"))]),n("el-descriptions-item",{attrs:{label:"上级部门"}},[t._v(t._s(t.depInfo.parent.data?t.depInfo.parent.data.label:"未知"))]),n("el-descriptions-item",{attrs:{label:"创建时间"}},[t._v(t._s(t.depInfo.data.createdate?t.depInfo.data.createdate:"未知"))]),n("el-descriptions-item",{attrs:{label:"修改时间"}},[t._v(t._s(t.depInfo.data.changedate?t.depInfo.data.changedate:"未知"))]),n("el-descriptions-item",{attrs:{label:"创建人"}},[t._v(t._s(t.depInfo.data.createby?t.depInfo.data.createby:"未知"))]),n("el-descriptions-item",{attrs:{label:"修改人"}},[t._v(t._s(t.depInfo.data.changeby?t.depInfo.data.changeby:"未知"))]),n("el-descriptions-item",{attrs:{label:"状态"}},[n("span",{style:1===t.depInfo.data.isused?"color:#52C41A":"color:red"},[t._v(t._s(1===t.depInfo.data.isused?"启用":"停用"))])])],1)],1):t._e()},x=[],w={props:["depInfo"]},C=w,S=(0,c.Z)(C,b,x,!1,null,null,null),A=S.exports,E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("i",{staticClass:"el-icon-plus",staticStyle:{"font-weight":"bold"},on:{click:function(){return t.append()}}}),n("el-dialog",{attrs:{title:"新建部门","append-to-body":"",width:"864px",visible:t.dialogDepVisible},on:{"update:visible":function(e){t.dialogDepVisible=e},close:t.onClose}},[n("el-row",{attrs:{gutter:20}},[n("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,size:"small","label-width":"100px","label-position":"left"}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{staticClass:"item_width-full",attrs:{label:"部门名称",prop:"depname"}},[n("el-input",{staticClass:"item_width-full",attrs:{placeholder:"请输入部门名称",autocomplete:"off"},model:{value:t.form.depname,callback:function(e){t.$set(t.form,"depname",e)},expression:"form.depname"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{staticClass:"item_width-full",attrs:{label:"部门编号",prop:"depno"}},[n("el-input",{staticClass:"item_width-full",attrs:{placeholder:"请输入部门编号",autocomplete:"off"},model:{value:t.form.depno,callback:function(e){t.$set(t.form,"depno",e)},expression:"form.depno"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{staticClass:"item_width-full",attrs:{label:"部门描述",prop:"remarks"}},[n("el-input",{staticClass:"item_width-full",attrs:{placeholder:"请输入部门描述",autocomplete:"off"},model:{value:t.form.remarks,callback:function(e){t.$set(t.form,"remarks",e)},expression:"form.remarks"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"是否启用"}},[n("el-checkbox",{attrs:{"false-label":0,"true-label":1},model:{value:t.form.isused,callback:function(e){t.$set(t.form,"isused",e)},expression:"form.isused"}},[t._v("是否启用")])],1)],1)],1)],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.dialogDepVisible=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:t.onSubmit}},[t._v("确 定")])],1)],1)],1)},k=[],D={props:["data"],data:function(){return{dialogDepVisible:!1,rules:{depname:[{required:!0,message:"请输入部门名称",trigger:"blur"}],remarks:[{required:!0,message:"请输入部门描述",trigger:"blur"}],depno:[{required:!0,message:"请输入部门编号",trigger:"blur"}]},form:{departmentid:0,depname:"",isused:1,depno:"",parentid:this.data.departmentid,remarks:"",sequence:1}}},methods:{append:function(){console.log(this.data),this.dialogDepVisible=!0},onSubmit:function(){var t=this;this.$refs["form"].validate(function(){var e=(0,s.Z)(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,t.$api.requested({classname:"webmanage.department.department",method:"insertormodify_department",content:t.form});case 4:r=e.sent,1===r.code&&(t.dialogDepVisible=!1),t.$emit("onSuccess");case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},onClose:function(){this.$refs["form"].resetFields()}}},F=D,M=(0,c.Z)(F,E,k,!1,null,"2da0b04c",null),O=M.exports,T=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{attrs:{size:"small",icon:"el-icon-delete"},on:{click:function(){return t.append()}}},[t._v("删 除")])],1)},B=[],_={props:["data"],data:function(){return{}},methods:{append:function(){var t=this;this.$confirm("是否删除当前部门?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((0,s.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.requested({classname:"webmanage.department.department",method:"delete_department",content:{departmentid:t.data.departmentid}});case 2:if(n=e.sent,0!==n.code){e.next=5;break}return e.abrupt("return",t.$notify({title:"失败",type:"error",message:n.data}));case 5:t.$emit("onSuccess");case 6:case"end":return e.stop()}}),e)})))).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},I=_,P=(0,c.Z)(I,T,B,!1,null,"1395516c",null),L=P.exports,R=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{attrs:{size:"small",icon:"el-icon-edit"},on:{click:function(){return t.append()}}},[t._v("编 辑")]),n("el-dialog",{attrs:{title:"新建部门","append-to-body":"",width:"864px",visible:t.dialogDepVisible},on:{"update:visible":function(e){t.dialogDepVisible=e}}},[n("el-row",{attrs:{gutter:20}},[n("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,size:"small","label-width":"100px","label-position":"left"}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{staticClass:"item_width-full",attrs:{label:"部门名称",prop:"depname"}},[n("el-input",{staticClass:"item_width-full",attrs:{placeholder:"请输入部门名称",autocomplete:"off"},model:{value:t.form.depname,callback:function(e){t.$set(t.form,"depname",e)},expression:"form.depname"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{staticClass:"item_width-full",attrs:{label:"部门编号",prop:"depno"}},[n("el-input",{staticClass:"item_width-full",attrs:{placeholder:"请输入部门编号",autocomplete:"off"},model:{value:t.form.depno,callback:function(e){t.$set(t.form,"depno",e)},expression:"form.depno"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{staticClass:"item_width-full",attrs:{label:"部门描述",prop:"remarks"}},[n("el-input",{staticClass:"item_width-full",attrs:{placeholder:"请输入部门描述",autocomplete:"off"},model:{value:t.form.remarks,callback:function(e){t.$set(t.form,"remarks",e)},expression:"form.remarks"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"是否启用"}},[n("el-checkbox",{attrs:{"false-label":0,"true-label":1},model:{value:t.form.isused,callback:function(e){t.$set(t.form,"isused",e)},expression:"form.isused"}},[t._v("是否启用")])],1)],1)],1)],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.dialogDepVisible=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:t.onSubmit}},[t._v("确 定")])],1)],1)],1)},N=[],j={props:["data"],data:function(){return{dialogDepVisible:!1,rules:{depname:[{required:!0,message:"请输入部门名称",trigger:"blur"}],remarks:[{required:!0,message:"请输入部门描述",trigger:"blur"}],depno:[{required:!0,message:"请输入部门编号",trigger:"blur"}]},form:{depname:""}}},methods:{append:function(){this.form=Object.assign({},this.form,this.data),this.form.depname=this.form.label,this.dialogDepVisible=!0},onSubmit:function(){var t=this;this.$refs["form"].validate(function(){var e=(0,s.Z)(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,t.$api.requested({classname:"webmanage.department.department",method:"insertormodify_department",content:t.form});case 4:r=e.sent,1===r.code&&(t.dialogDepVisible=!1),t.$emit("onSuccess");case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}}},z=j,U=(0,c.Z)(z,R,N,!1,null,"4b7da74a",null),V=U.exports,H=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.data?n("el-button",{attrs:{size:"small",icon:1===t.data.isused?"el-icon-circle-close":"el-icon-circle-check"},on:{click:function(){return t.append()}}},[t._v(t._s(1===t.data.isused?"停 用":"启 用"))]):t._e()],1)},$=[],G={props:["data"],data:function(){return{form:{}}},mounted:function(){},methods:{append:function(){var t=this;this.$confirm("是否".concat(1===this.data.isused?"停用":"启用","当前部门?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((0,s.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.form=Object.assign({},t.form,t.data),t.form.depname=t.form.label,1===t.form.isused?t.form.isused=0:t.form.isused=1,e.next=5,t.$api.requested({classname:"webmanage.department.department",method:"insertormodify_department",content:t.form});case 5:if(n=e.sent,0!==n.code){e.next=8;break}return e.abrupt("return",t.$notify({title:"失败",type:"error",message:n.data}));case 8:t.$emit("onSuccess");case 9:case"end":return e.stop()}}),e)})))).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}},W=G,q=(0,c.Z)(W,H,$,!1,null,"38adc9e3",null),X=q.exports,Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus"},on:{click:t.onShow}},[t._v("新建员工")]),n("el-dialog",{attrs:{title:"新建员工",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e},close:t.onClose}},[n("el-row",{attrs:{gutter:20}},[n("el-form",{ref:"form",attrs:{model:t.form,size:"small",rules:t.rules,"label-position":"left","label-width":"100px"}},[n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"编号:",prop:"hrcode"}},[n("el-input",{attrs:{placeholder:"输入人员编号",autocomplete:"off"},model:{value:t.form.hrcode,callback:function(e){t.$set(t.form,"hrcode",e)},expression:"form.hrcode"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"性别"}},[n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:t.form.sex,callback:function(e){t.$set(t.form,"sex",e)},expression:"form.sex"}},t._l(t.sys_options,(function(t){return n("el-option",{key:t.index,attrs:{label:t.value,value:t.value}})})),1)],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"姓名:",prop:"name"}},[n("el-input",{attrs:{placeholder:"输入姓名",autocomplete:"off"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"电子邮箱:"}},[n("el-input",{attrs:{placeholder:"输入电子邮箱",autocomplete:"off"},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"手机号码:",prop:"phonenumber"}},[n("el-input",{attrs:{placeholder:"输入手机号码",autocomplete:"off"},model:{value:t.form.phonenumber,callback:function(e){t.$set(t.form,"phonenumber",e)},expression:"form.phonenumber"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"身份证号:"}},[n("el-input",{attrs:{placeholder:"输入身份证号",autocomplete:"off"},model:{value:t.form.idcard,callback:function(e){t.$set(t.form,"idcard",e)},expression:"form.idcard"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"部门:"}},[n("el-input",{attrs:{readonly:"",placeholder:"请选择","suffix-icon":"el-icon-arrow-down",autocomplete:"off"},on:{focus:function(e){t.showTree=!0}},model:{value:t.form.depname,callback:function(e){t.$set(t.form,"depname",e)},expression:"form.depname"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"办公电话:"}},[n("el-input",{attrs:{placeholder:"输入办公电话",autocomplete:"off"},model:{value:t.form.officetelephone,callback:function(e){t.$set(t.form,"officetelephone",e)},expression:"form.officetelephone"}})],1)],1),t.showTree?n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"选择部门:"}},[n("div",{staticStyle:{border:"1px solid #f1f2f3"}},[n("el-tree",{attrs:{data:t.deplist,"node-key":"id","default-expand-all":"","highlight-current":"","expand-on-click-node":!1},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.node,i=e.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[t._v(t._s(r.label))]),n("span",[n("el-button",{attrs:{size:"small",type:"text"},on:{click:function(e){return t.selectDep(i)}}},[t._v("选 择")])],1)])}}],null,!1,1193916280)})],1)])],1):t._e(),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"职位:"}},[n("el-input",{attrs:{placeholder:"输入职位",autocomplete:"off"},model:{value:t.form.position,callback:function(e){t.$set(t.form,"position",e)},expression:"form.position"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"汇报对象:"}},[n("selectMenber",{on:{selectMenber:t.selectMenber}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:24}},[n("el-form-item",[n("el-checkbox",{attrs:{"false-label":0,"true-label":1},model:{value:t.form.isleader,callback:function(e){t.$set(t.form,"isleader",e)},expression:"form.isleader"}},[t._v("是否部门负责人")])],1)],1)],1)],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:t.onSubmit}},[t._v("确 定")])],1)],1)],1)},Y=[],Q=n(4367),K=n(20629),J=n(94488),tt={props:["depInfo"],components:{selectMenber:J.Z},computed:(0,Q.Z)({},(0,K.Se)({deplist:"deplist",sys_options:"sys_options"})),data:function(){return{dialogFormVisible:!1,showTree:!1,rules:{hrcode:[{required:!0,message:"请输入员工编码",trigger:"blur"}],name:[{required:!0,message:"请输入员工姓名",trigger:"blur"}],phonenumber:[{required:!0,message:"请输入员工电话",trigger:"blur"}]},form:{hrid:0,hrcode:"",name:"",sex:"男",phonenumber:"",officetelephone:"",idcard:"",email:"",birthday:"",remarks:"",departmentid:"",isleader:"",position:"",reporthrid:"",userid:"0"},value:[]}},methods:{onShow:function(){this.dialogFormVisible=!0,this.form.depname=this.depInfo.data.label,this.form.departmentid=this.depInfo.data.departmentid,this.$store.dispatch("optiontypeselect","sex")},selectDep:function(t){var e={depname:t.label,departmentid:t.departmentid};this.form=Object.assign({},this.form,e),this.showTree=!this.showTree},onSubmit:function(){var t=this;this.$refs["form"].validate(function(){var e=(0,s.Z)(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,t.$api.requested({classname:"webmanage.hr.hr",method:"insertormodify_hr",content:t.form});case 4:if(r=e.sent,0!==r.code){e.next=7;break}return e.abrupt("return",t.$notify({title:"失败",message:r.data,type:"error"}));case 7:t.$notify({title:"成功",message:"添加成功",type:"success"}),t.dialogFormVisible=!1,t.$emit("onSuccess");case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},onClose:function(){this.$refs["form"].resetFields()},selectMenber:function(t){this.form.reporthrid=t.hrid}}},et=tt,nt=(0,c.Z)(et,Z,Y,!1,null,"238a7f1a",null),rt=nt.exports,it=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"inline"}},[n("el-popconfirm",{attrs:{title:"确定删除当前选中员工吗?"},on:{confirm:function(e){return t.deleteRow()}}},[n("el-button",{attrs:{slot:"reference",size:"small",type:"text"},slot:"reference"},[t._v("删 除")])],1)],1)},ot=[],at={props:["data"],methods:{deleteRow:function(){var t=this;this.$api.requested({classname:"webmanage.hr.hr",method:"deleteHr",content:{hrid:this.data.hrid}}).then((function(e){if(0===e.code)return t.$notify({title:"失败",type:"error",message:e.data});t.$emit("onSuccess")}))}}},st=at,lt=(0,c.Z)(st,it,ot,!1,null,null,null),ut=lt.exports,ct=n(97444),ht={components:{depList:f,depInfoCard:A,staffList:y,addDep:O,delDep:L,editDep:V,addStaff:rt,delStaff:ut,editStaff:ct.Z,startDep:X},data:function(){return{depInfo:{data:null,parent:{data:{}}}}},methods:{onClick:function(t){this.depInfo=t,this.$refs.staff.listData(this.depInfo.data.departmentid)},onSuccess:function(){this.$refs.list.department()},onStaffSuccess:function(){this.$refs.staff.listData(this.depInfo.data.departmentid)}}},ft=ht,pt=(0,c.Z)(ft,r,i,!1,null,"6fd9c850",null),dt=pt.exports},77376:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return R}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("mianStaff",{ref:"main",scopedSlots:t._u([{key:"edit",fn:function(e){return[t.tool.checkAuth(t.$route.name,"editStaff")?n("div",{staticClass:"container normal-panel normal-margin"},[n("editStaff",{attrs:{data:e.data,type:"btn"},on:{onSuccess:t.query_hrMain}})],1):t._e()]}},{key:"createuser",fn:function(e){return[t.tool.checkAuth(t.$route.name,"editStaff")&&!e.data.userid?n("createUser",{attrs:{data:e.data},on:{onSuccess:t.query_hrMain}}):t._e()]}},{key:"linkact",fn:function(e){return[t.tool.checkAuth(t.$route.name,"editStaff")?n("linkAccount",{attrs:{data:e.data},on:{onSuccess:t.query_hrMain}}):t._e()]}}])},[t.tool.checkAuth(t.$route.name,"restpas")?n("restPas",{attrs:{slot:"restpas"},slot:"restpas"}):t._e()],1)},i=[],o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[t._t("edit",null,{data:t.mainInfo}),r("div",{staticClass:"container normal-panel normal-margin"},[r("el-descriptions",{attrs:{title:"员工信息",column:6}},[r("el-descriptions-item",{attrs:{label:"编号"}},[t._v(t._s(t.mainInfo.hrcode?t.mainInfo.hrcode:"--"))]),r("el-descriptions-item",{attrs:{label:"身份证号"}},[t._v(t._s(t.mainInfo.idcard?t.mainInfo.idcard:"--"))]),r("el-descriptions-item",{attrs:{label:"部门"}},[t._v(t._s(t.mainInfo.depname?t.mainInfo.depname:"--"))]),r("el-descriptions-item",{attrs:{label:"是否部门负责人"}},[t._v(t._s(1===t.mainInfo.isleader?"是":"否"))]),r("el-descriptions-item",{attrs:{label:"职位"}},[t._v(t._s(t.mainInfo.position?t.mainInfo.position:"--"))]),r("el-descriptions-item",{attrs:{label:"办公电话"}},[t._v(t._s(t.mainInfo.officetelephone?t.mainInfo.officetelephone:"--"))]),r("el-descriptions-item",{attrs:{label:"姓名"}},[t._v(t._s(t.mainInfo.name?t.mainInfo.name:"--"))]),r("el-descriptions-item",{attrs:{label:"电话"}},[t._v(t._s(t.mainInfo.phonenumber?t.mainInfo.phonenumber:"--"))]),r("el-descriptions-item",{attrs:{label:"性别"}},[t._v(t._s(t.mainInfo.sex?t.mainInfo.sex:"--"))]),r("el-descriptions-item",{attrs:{label:"电子邮箱"}},[t._v(t._s(t.mainInfo.email?t.mainInfo.email:"--"))]),r("el-descriptions-item",{attrs:{label:"汇报对象"}},[t._v(t._s(t.mainInfo.reporthrname?t.mainInfo.reporthrname:"--"))])],1)],1),r("div",{staticClass:"container normal-panel normal-margin"},[r("el-descriptions",{attrs:{title:"系统信息",column:4}},[r("el-descriptions-item",{attrs:{label:"创建人"}},[t._v(t._s(t.mainInfo.createby?t.mainInfo.createby:"--"))]),r("el-descriptions-item",{attrs:{label:"最后修改人"}},[t._v(t._s(t.mainInfo.changeby?t.mainInfo.changeby:"--"))]),r("el-descriptions-item",{attrs:{label:"手机号"}},[t._v(t._s(t.mainInfo.userphonenumber?t.mainInfo.userphonenumber:"--"))]),r("el-descriptions-item",{attrs:{label:"创建时间"}},[t._v(t._s(t.mainInfo.createdate?t.mainInfo.createdate:"--"))]),r("el-descriptions-item",{attrs:{label:"最后修改时间"}},[t._v(t._s(t.mainInfo.changedate?t.mainInfo.changedate:"--"))])],1)],1),r("div",{staticClass:"container normal-panel normal-margin user-panel"},[r("el-descriptions",{attrs:{column:5}},[r("div",{staticClass:"flex-align-center flex-between",attrs:{slot:"title"},slot:"title"},[r("span",[t._v("账号信息")]),r("div",{staticClass:"flex-align-center flex-between"},[t._t("createuser",null,{data:t.mainInfo}),t._t("linkact",null,{data:t.mainInfo})],2)]),r("el-descriptions-item",{attrs:{label:"头像"}},[r("img",{staticStyle:{"margin-top":"-8px"},attrs:{width:"40",src:n(38308),alt:""}})]),r("el-descriptions-item",{attrs:{label:"账号名称"}},[t._v(t._s(t.mainInfo.username?t.mainInfo.username:"--"))]),r("el-descriptions-item",{attrs:{label:"账号类型"}},[t._v(t._s(t.mainInfo.usertypename?t.mainInfo.usertypename:"--"))]),r("el-descriptions-item",{attrs:{label:"角色"}},[t._v(t._s(t.mainInfo.userrole?t.mainInfo.userrole.toString():""))]),r("el-descriptions-item",{attrs:{label:"账号密码"}},[r("div",{staticClass:"flex-align-center flex-between"},[t._v(" ******* "),t._t("restpas")],2)])],1)],1)],2)},a=[],s=n(16198),l=(n(35666),{props:["data"],components:{},data:function(){return{mainInfo:{}}},methods:{query_hrMain:function(){var t=this;return(0,s.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.requested({classname:"webmanage.hr.hr",method:"query_hrMain",content:{hrid:t.$route.query.id}});case 2:n=e.sent,t.mainInfo=n.data;case 4:case"end":return e.stop()}}),e)})))()}},mounted:function(){this.query_hrMain()}}),u=l,c=n(1001),h=(0,c.Z)(u,o,a,!1,null,null,null),f=h.exports,p=n(97444),d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-popconfirm",{attrs:{title:"确定删除当前选中账号吗?"},on:{confirm:function(e){return t.resetPassword()}}},[n("el-button",{staticStyle:{margin:"-4px 0 0 10px"},attrs:{slot:"reference",type:"text",size:"small"},slot:"reference"},[t._v("重置")])],1)],1)},g=[],v={methods:{resetPassword:function(){var t=this;return(0,s.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.requested({classname:"webmanage.users.users",method:"resetPassword",content:{userid:t.$route.query.id}});case 2:if(n=e.sent,0!==n.code){e.next=5;break}return e.abrupt("return",t.$notify({title:"失败",message:n.data,type:"error"}));case 5:t.$notify({title:"成功",message:"密码已重置为站点默认密码",type:"success"});case 6:case"end":return e.stop()}}),e)})))()}}},m=v,y=(0,c.Z)(m,d,g,!1,null,null,null),b=y.exports,x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{staticStyle:{background:"#52C41A",border:"1px solid #52C41A",float:"right"},attrs:{size:"small",icon:"el-icon-link",type:"primary"},on:{click:t.onShow}},[t._v("关联账号")]),n("el-dialog",{attrs:{title:"绑定账号","append-to-body":"",visible:t.dialogTableVisible},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[n("tableLayout",{attrs:{layout:t.tablecols,data:t.sys_options,height:"400px"},scopedSlots:t._u([{key:"opreation",fn:function(e){return[n("el-popconfirm",{staticClass:"inline-16",attrs:{title:"确定要绑定员工账号吗?"},on:{confirm:function(n){return t.bindAccount(e)}}},[n("el-button",{attrs:{slot:"reference",type:"text",size:"small"},slot:"reference"},[t._v("绑定账号")])],1)]}}])})],1)],1)},w=[],C=n(4367),S=(n(68309),n(20629)),A={props:["data"],data:function(){return{dialogTableVisible:!1,tablecols:[],form:{}}},computed:(0,C.Z)({},(0,S.Se)({sys_options:"sys_options"})),methods:{onShow:function(){this.listData(),this.dialogTableVisible=!0},listData:function(){this.$store.dispatch("optiontypeselect","userlistunused")},bindAccount:function(t){this.form=Object.assign({},this.form,this.data),this.form.userid=t.data.userid,this.onSave()},onSave:function(){var t=this;return(0,s.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.requested({classname:"webmanage.hr.hr",method:"insertormodify_hr",content:t.form});case 2:if(n=e.sent,0!==n.code){e.next=5;break}return e.abrupt("return",t.$notify({title:"失败",message:n.data,type:"error"}));case 5:t.$notify({title:"成功",message:"绑定成功",type:"success"}),t.dialogTableVisible=!1,t.$emit("onSuccess");case 8:case"end":return e.stop()}}),e)})))()}},mounted:function(){this.tablecols=this.tool.tabelCol(this.$route.name)["unBindtACTable"].tablecols}},E=A,k=(0,c.Z)(E,x,w,!1,null,null,null),D=k.exports,F=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"inline-16"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.onShow}},[t._v("一键创建账号")]),n("el-dialog",{attrs:{title:"授权角色",visible:t.drawer,width:"564px"},on:{"update:visible":function(e){t.drawer=e},close:t.onClose}},[n("div",[n("el-row",{attrs:{gutter:50}},[n("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,size:"mini","label-position":"left"}},[n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"授权角色","label-width":"100px",prop:"roleids"}},[n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",multiple:""},model:{value:t.form.roleids,callback:function(e){t.$set(t.form,"roleids",e)},expression:"form.roleids"}},t._l(t.options,(function(t){return n("el-option",{key:t.index,attrs:{label:t.rolename,value:t.roleid}})})),1)],1)],1)],1)],1)],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.drawer=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:t.createUser}},[t._v("确 定")])],1)])],1)},M=[],O={data:function(){return{drawer:!1,rules:{roleids:[{required:!0,message:"请选择授权角色",trigger:"change"}]},form:{userid:0,name:"",phonenumber:"",status:1,remarks:"",roleids:[]},options:[]}},methods:{onShow:function(){console.log(this.data),this.drawer=!0,this.rolelist()},rolelist:function(){var t=this;return(0,s.Z)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={classname:"sysmanage.develop.optiontype.optiontype",method:"optiontypeselect",content:{pageNumber:1,pageSize:20,typename:"role",parameter:{}}},e.next=3,t.$api.requested(n);case 3:r=e.sent,t.options=r.data;case 5:case"end":return e.stop()}}),e)})))()},createUser:function(){var t=this;this.$refs["form"].validate(function(){var e=(0,s.Z)(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,t.$api.requested({classname:"webmanage.hr.hr",method:"createUser",content:{hrid:t.$route.query.id,roleids:t.form.roleids}});case 4:if(r=e.sent,0!==r.code){e.next=7;break}return e.abrupt("return",t.$notify({title:"失败",message:r.data,type:"error"}));case 7:t.$notify({title:"成功",message:"创建成功",type:"success"}),t.drawer=!1,t.$emit("onSuccess");case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},onClose:function(){this.$refs["form"].resetFields()}}},T=O,B=(0,c.Z)(T,F,M,!1,null,"e5e33eb2",null),_=B.exports,I={components:{mianStaff:f,editStaff:p.Z,restPas:b,linkAccount:D,createUser:_},data:function(){return{mainInfo:{}}},methods:{query_hrMain:function(){this.$refs.main.query_hrMain()}},mounted:function(){}},P=I,L=(0,c.Z)(P,r,i,!1,null,null,null),R=L.exports},97444:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"inline-16"},["btn"===t.type?n("el-button",{attrs:{type:"",icon:"el-icon-edit",size:"small"},on:{click:t.onShow}},[t._v("编 辑")]):n("el-button",{attrs:{type:"text",size:"small"},on:{click:t.onShow}},[t._v("编 辑")]),n("el-dialog",{attrs:{title:"编辑员工",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[n("el-row",{attrs:{gutter:20}},[n("el-form",{ref:"form",attrs:{model:t.form,size:"small",rules:t.rules,"label-position":"left","label-width":"100px"}},[n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"编号:",prop:"hrcode"}},[n("el-input",{attrs:{placeholder:"输入人员编号",autocomplete:"off"},model:{value:t.form.hrcode,callback:function(e){t.$set(t.form,"hrcode",e)},expression:"form.hrcode"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"性别"}},[n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:t.form.sex,callback:function(e){t.$set(t.form,"sex",e)},expression:"form.sex"}},t._l(t.sys_options,(function(t){return n("el-option",{key:t.index,attrs:{label:t.value,value:t.value}})})),1)],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"姓名:",prop:"name"}},[n("el-input",{attrs:{placeholder:"输入姓名",autocomplete:"off"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"电子邮箱:"}},[n("el-input",{attrs:{placeholder:"输入电子邮箱",autocomplete:"off"},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"手机号码:",prop:"phonenumber"}},[n("el-input",{attrs:{placeholder:"输入手机号码",autocomplete:"off"},model:{value:t.form.phonenumber,callback:function(e){t.$set(t.form,"phonenumber",e)},expression:"form.phonenumber"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"身份证号:"}},[n("el-input",{attrs:{placeholder:"输入身份证号",autocomplete:"off"},model:{value:t.form.idcard,callback:function(e){t.$set(t.form,"idcard",e)},expression:"form.idcard"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"部门:"}},[n("el-input",{attrs:{readonly:"",placeholder:"请选择","suffix-icon":"el-icon-arrow-down",autocomplete:"off"},on:{focus:function(e){t.showTree=!0}},model:{value:t.form.depname,callback:function(e){t.$set(t.form,"depname",e)},expression:"form.depname"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"办公电话:"}},[n("el-input",{attrs:{placeholder:"输入办公电话",autocomplete:"off"},model:{value:t.form.officetelephone,callback:function(e){t.$set(t.form,"officetelephone",e)},expression:"form.officetelephone"}})],1)],1),t.showTree?n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"选择部门:"}},[n("div",{staticStyle:{border:"1px solid #f1f2f3"}},[n("el-tree",{attrs:{data:t.deplist,"node-key":"id","default-expand-all":"","highlight-current":"","expand-on-click-node":!1},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.node,i=e.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[t._v(t._s(r.label))]),n("span",[n("el-button",{attrs:{size:"small",type:"text"},on:{click:function(e){return t.selectDep(i)}}},[t._v("选 择")])],1)])}}],null,!1,1193916280)})],1)])],1):t._e(),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"职位:"}},[n("el-input",{attrs:{placeholder:"输入职位",autocomplete:"off"},model:{value:t.form.position,callback:function(e){t.$set(t.form,"position",e)},expression:"form.position"}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:12}},[n("el-form-item",{attrs:{label:"汇报对象:"}},[n("selectMenber",{attrs:{reporthrname:t.form.reporthrname},on:{selectMenber:t.selectMenber}})],1)],1),n("el-col",{staticClass:"mb-30",attrs:{span:24}},[n("el-form-item",[n("el-checkbox",{attrs:{"false-label":0,"true-label":1},model:{value:t.form.isleader,callback:function(e){t.$set(t.form,"isleader",e)},expression:"form.isleader"}},[t._v("是否部门负责人")])],1)],1)],1)],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:t.onSubmit}},[t._v("确 定")])],1)],1)],1)},i=[],o=n(16198),a=n(4367),s=(n(41539),n(54747),n(35666),n(20629)),l=n(94488),u={props:["data","type"],components:{selectMenber:l.Z},computed:(0,a.Z)({},(0,s.Se)({sys_options:"sys_options"})),data:function(){return{dialogFormVisible:!1,showTree:!1,rules:{hrcode:[{required:!0,message:"请输入员工编码",trigger:"blur"}],name:[{required:!0,message:"请输入员工姓名",trigger:"blur"}],phonenumber:[{required:!0,message:"请输入员工电话",trigger:"blur"}]},form:{hrid:0,hrcode:"",name:"",sex:0,phonenumber:"",officetelephone:"",idcard:"",email:"",birthday:"",remarks:"",departmentid:"",isleader:"",position:"",reporthrid:"",userid:"0"},value:[],deplist:[]}},methods:{query_hrMain:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.requested({classname:"webmanage.hr.hr",method:"query_hrMain",content:{hrid:t.data.hrid}});case 2:n=e.sent,t.form=Object.assign({},t.form,n.data);case 4:case"end":return e.stop()}}),e)})))()},department:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.requested({classname:"webmanage.department.department",method:"querydepartment",content:{}});case 2:n=e.sent,t.deplist=t.createMenu(n.data);case 4:case"end":return e.stop()}}),e)})))()},createMenu:function(t){var e=[];function n(t){var e={label:t["depname"],parentid:t["parentid"],departmentid:t["departmentid"],value:t["departmentid"],remarks:t["remarks"],isused:t["isused"],changedate:t["changedate"],changeby:t["changeby"],createdate:t["createdate"],createby:t["createby"],depno:t["depno"],children:[]};if(t.subdep&&t.subdep.length>0)for(var r=0;r<t.subdep.length;r++)e.children.push(n(t.subdep[r]));return e}return t.forEach((function(t){e.push(n(t))})),e},onShow:function(){this.query_hrMain(),this.department(),this.$store.dispatch("optiontypeselect","sex"),this.dialogFormVisible=!0},selectDep:function(t){var e={depname:t.label,departmentid:t.departmentid};this.form=Object.assign({},this.form,e),this.showTree=!this.showTree},onSubmit:function(){var t=this;this.$refs["form"].validate(function(){var e=(0,o.Z)(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,t.$api.requested({classname:"webmanage.hr.hr",method:"insertormodify_hr",content:t.form});case 4:if(r=e.sent,0!==r.code){e.next=7;break}return e.abrupt("return",t.$notify({title:"失败",message:r.data,type:"error"}));case 7:t.$notify({title:"成功",message:"添加成功",type:"success"}),t.dialogFormVisible=!1,t.$emit("onSuccess");case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},selectMenber:function(t){this.form.reporthrid=t.hrid}}},c=u,h=n(1001),f=(0,h.Z)(c,r,i,!1,null,"403ef525",null),p=f.exports},56243:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return C}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("add",{staticClass:"container normal-panel",staticStyle:{"margin-bottom":"16px"}}),n("div",{staticClass:"container normal-panel"},[n("list",{ref:"list",scopedSlots:t._u([{key:"detail",fn:function(e){return[n("div",{staticClass:"inline-16"},[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.$router.push({path:"/roleDetail",query:{id:e.data.roleid}})}}},[t._v("详 情")])],1)]}},{key:"edit",fn:function(e){return[t.tool.checkAuth(t.$route.name,"update")?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.$router.push({path:"/roleEdit",query:{id:e.data.roleid}})}}},[t._v("编 辑")]):t._e()]}}])})],1)],1)},i=[],o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"flex-align-center search-panel",staticStyle:{"margin-bottom":"16px"}},[n("div",{staticClass:"flex-align-center"},[n("p",[t._v("搜索:")]),n("el-input",{attrs:{size:"small",placeholder:"请输入查询内容","prefix-icon":"el-icon-search",clearable:""},on:{blur:function(e){return t.listData("search")},clear:function(e){return t.listData("search")}},model:{value:t.param.content.where.condition,callback:function(e){t.$set(t.param.content.where,"condition",e)},expression:"param.content.where.condition"}})],1),n("div",{staticClass:"flex-align-center",staticStyle:{"margin-left":"30px"}},[n("p",{staticStyle:{width:"80px"}},[t._v("角色类型:")]),n("el-select",{staticStyle:{width:"120px"},attrs:{size:"small",clearable:"",placeholder:"请选择"},on:{change:function(e){return t.listData("search")}},model:{value:t.param.content.where.usertype,callback:function(e){t.$set(t.param.content.where,"usertype",e)},expression:"param.content.where.usertype"}},t._l(t.options,(function(t){return n("el-option",{key:t.index,attrs:{label:t.remarks,value:t.value}})})),1)],1)]),n("tableLayout",{attrs:{layout:t.tablecols,data:t.list,custom:!0,height:t.tableHieght},scopedSlots:t._u([{key:"customcol",fn:function(e){return["status"===e.column.columnname?n("p",[n("span",{style:"ACTIVE"===e.column.data.status?"color:#52C41A":"color:#FF3B30"},[t._v(t._s("ACTIVE"===e.column.data.status?"启用":"INACTIVE"===e.column.data.status?"停用":"其他"))])]):n("p",[t._v(t._s(e.column.data[e.column.columnname]))])]}},{key:"opreation",fn:function(e){return[t._t("detail",null,{data:e.data}),t._t("edit",null,{data:e.data})]}}],null,!0)}),n("div",{staticStyle:{"margin-top":"16px","text-align":"right"}},[n("el-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.param.content.pageSize,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},a=[],s=n(16198),l=(n(68309),n(35666),{data:function(){return{param:{classname:"webmanage.role.role",method:"query_roleList",content:{pageNumber:1,pageSize:20,where:{condition:"",usertype:""}}},options:[],tablecols:[],list:[],total:0,currentPage:0}},methods:{usertype:function(){var t=this;return(0,s.Z)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={classname:"sysmanage.develop.optiontype.optiontype",method:"optiontypeselect",content:{pageNumber:1,pageSize:20,typename:"usertype",parameter:{}}},e.next=3,t.$api.requested(n);case 3:r=e.sent,t.options=r.data;case 5:case"end":return e.stop()}}),e)})))()},listData:function(t){var e=this;"search"===t&&(this.param.content.pageNumber=1),this.$api.requested(this.param).then((function(t){e.list=t.data,e.total=t.total,e.currentPage=t.pageNumber}))},handleSizeChange:function(t){this.param.content.pageSize=t,this.listData()},handleCurrentChange:function(t){this.param.content.pageNumber=t,this.listData()},rowClick:function(t){this.$emit("onRowClick",t)},deleteClick:function(t){this.$emit("deleteClick",t)}},mounted:function(){this.listData(),this.usertype(),this.tablecols=this.tool.tabelCol(this.$route.name).roleTable.tablecols}}),u=l,c=n(1001),h=(0,c.Z)(u,o,a,!1,null,"0bcf640b",null),f=h.exports,p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-plus"},on:{click:function(e){return t.$router.push({path:"/roleEdit",query:{id:0}})}}},[t._v("新 建")])],1)},d=[],g={data:function(){return{dialogFormVisible:!1,form:{roleid:0,rolename:"",remarks:""}}},methods:{}},v=g,m=(0,c.Z)(v,p,d,!1,null,null,null),y=m.exports,b={components:{list:f,add:y},data:function(){return{row:{}}},methods:{},mounted:function(){}},x=b,w=(0,c.Z)(x,r,i,!1,null,null,null),C=w.exports},86741:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return F}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"container normal-panel mb-16"},[n("el-button",{staticStyle:{background:"#FA8C16"},attrs:{type:"warning",size:"small",icon:"el-icon-s-claim"},on:{click:t.onSubmit}},[t._v("保 存")])],1),n("div",{staticClass:"container normal-panel mb-16"},[n("p",{staticClass:"normal-title mb-16"},[t._v("角色信息")]),n("el-form",{ref:"form",staticClass:"demo-form-inline",attrs:{inline:!0,model:t.form,rules:t.rules,size:"small","label-width":"100px","label-position":"left"}},[n("el-form-item",{attrs:{label:"角色名称",prop:"rolename"}},[n("el-input",{attrs:{placeholder:"输入角色名称"},model:{value:t.form.rolename,callback:function(e){t.$set(t.form,"rolename",e)},expression:"form.rolename"}})],1),n("el-form-item",{attrs:{label:"角色描述",prop:"remarks"}},[n("el-input",{attrs:{placeholder:"输入角色描述"},model:{value:t.form.remarks,callback:function(e){t.$set(t.form,"remarks",e)},expression:"form.remarks"}})],1),n("el-form-item",{attrs:{label:"角色类型",prop:"usertype"}},[n("el-select",{attrs:{placeholder:"角色类型"},model:{value:t.form.usertype,callback:function(e){t.$set(t.form,"usertype",e)},expression:"form.usertype"}},t._l(t.options,(function(t){return n("el-option",{key:t.index,attrs:{label:t.remarks,value:Number(t.value)}})})),1)],1)],1)],1),n("div",{staticClass:"container normal-panel mb-16"},[n("p",{staticClass:"normal-title mb-16"},[t._v("角色授权")]),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("div",{staticClass:"mb-16"},[n("auth",{attrs:{data:{roleid:t.roleid}},on:{onSuccess:t.roleMain}})],1),n("tableLayout",{attrs:{layout:t.tablecols,data:t.roleMainInfo.apps,opwidth:200,custom:!1},on:{rowClick:t.appoptionselect}})],1),n("el-col",{attrs:{span:12}},[n("el-row",{attrs:{gutter:40}},[n("el-col",{attrs:{span:12}},[n("p",{staticClass:"title"},[t._v("功能")]),t._l(t.appoptions,(function(e){return n("div",{key:e.index,staticClass:"flex-align-center flex-between option-item"},[n("p",[t._v(t._s(e.optionname))]),n("cancelAuth",{attrs:{data:{roleid:t.roleid,systemappid:t.active_systemappid,optionid:e.optionid}},on:{onSuccess:t.roleMain}})],1)}))],2),n("el-col",{attrs:{span:12}},[n("p",{staticClass:"title"},[t._v("隐藏字段")]),t._l(t.hiddenfields,(function(e){return n("div",{key:e.index,staticClass:"flex-align-center flex-between option-item"},[n("p",[t._v(t._s(e.fieldname))]),n("cancelFields",{attrs:{data:{roleid:t.roleid,systemappid:t.active_systemappid,hiddenfieldid:e.hiddenfieldid}},on:{onSuccess:t.roleMain}})],1)}))],2)],1)],1)],1)],1)])},i=[],o=n(16198),a=(n(74916),n(15306),n(68309),n(35666),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"inline"}},[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-thumb"},on:{click:t.onShow}},[t._v("授 权")]),n("el-dialog",{staticClass:"auth-container",attrs:{title:"授权应用列表","append-to-body":"",visible:t.dialogTableVisible,width:"90%"},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{span:12}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,size:"small","highlight-current-row":"",border:"",stripe:"","header-cell-style":{background:"#f1f2f3",color:"#333"}},on:{"row-click":t.onRowClick}},[n("el-table-column",{attrs:{prop:"systemclientname",label:"端口"}}),n("el-table-column",{attrs:{prop:"systemname",label:"系统名称"}}),n("el-table-column",{attrs:{prop:"systemmodulename",label:"模块名称"}}),n("el-table-column",{attrs:{prop:"systemappname",label:"应用名称"}})],1),n("div",{staticStyle:{margin:"20px 0"}},[n("el-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.param.content.pageSize,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1),n("el-col",{attrs:{span:12}},[n("div",[n("el-button-group",{staticStyle:{"margin-bottom":"10px"}},[n("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus",disabled:0===t.func_selection.length},on:{click:t.insert_opt_hid_select}},[t._v("添加功能")]),n("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus",disabled:0===t.field_selection.length},on:{click:t.insert_opt_hid_select}},[t._v("添加隐藏字段")])],1),n("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"功能添加",name:"first"}},[n("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.fun_list,size:"mini",stripe:"","header-cell-style":{background:"#f1f2f3",color:"#333"}},on:{"selection-change":t.onFuncSelection}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),n("el-table-column",{attrs:{prop:"optionname",label:"功能描述"}}),n("el-table-column",{attrs:{prop:"option",label:"名称"}})],1)],1),n("el-tab-pane",{attrs:{label:"隐藏字段添加",name:"second"}},[n("el-table",{ref:"multipleTable2",staticStyle:{width:"100%"},attrs:{data:t.hide_field_list,size:"mini","header-cell-style":{background:"#f1f2f3",color:"#333"}},on:{"selection-change":t.onFieldSelection}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),n("el-table-column",{attrs:{prop:"fieldname",label:"字段描述"}}),n("el-table-column",{attrs:{prop:"field",label:"字段名"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-tag",{attrs:{size:"mini",type:"primary",effect:"dark"}},[t._v(t._s(e.row.field))])]}}])})],1)],1)],1)],1)])],1)],1)],1)}),s=[],l=(n(57327),n(41539),{props:["data"],data:function(){return{dialogTableVisible:!1,activeName:"first",param:{classname:"webmanage.role.role",method:"query_appselect",content:{pageNumber:1,pageSize:10,where:{condition:"",systemname:"",systemagentname:"",systemmodulename:"",systemappname:""}}},list:[],total:0,currentPage:0,systemappid:0,fun_list:[],hide_field_list:[],func_selection:[],field_selection:[]}},methods:{onShow:function(){this.dialogTableVisible=!0,this.query_all_auth()},handleClick:function(t){this.func_selection.length>0&&this.$refs.multipleTable.clearSelection(),this.field_selection.length>0&&this.$refs.multipleTable2.clearSelection()},query_all_auth:function(){var t=this;this.$api.requested(this.param).then((function(e){t.list=e.data,t.total=e.total,t.currentPage=e.pageNumber}))},handleSizeChange:function(t){this.param.content.pageSize=t,this.query_all_auth()},handleCurrentChange:function(t){this.param.content.pageNumber=t,this.query_all_auth()},onRowClick:function(t){this.systemappid=t.systemappid,this.query_function_list(t),this.query_field_list(t)},query_function_list:function(t){var e=this;this.$api.requested({classname:"webmanage.role.role",method:"query_appoptionselect",content:{roleid:this.data.roleid,systemappid:t.systemappid}}).then((function(t){e.fun_list=t.data}))},query_field_list:function(t){var e=this;this.$api.requested({classname:"webmanage.role.role",method:"query_apphiddenfieldselect",content:{roleid:this.data.roleid,systemappid:t.systemappid}}).then((function(t){e.hide_field_list=t.data}))},onFuncSelection:function(t){this.func_selection=t},onFieldSelection:function(t){this.field_selection=t},insert_opt_hid_select:function(){var t=this,e=function(t,e){var n=[];return t.filter((function(t){n.push(t[e])})),n};console.log(e(this.func_selection,"optionid")),this.$api.requested({classname:"webmanage.role.role",method:"add_appauth",content:{roleid:this.data.roleid,systemapps:[{systemappid:this.systemappid,optionids:this.func_selection.length>0?e(this.func_selection,"optionid"):[],hiddenfields:this.field_selection.length>0?e(this.field_selection,"hiddenfieldid"):[]}]}}).then((function(e){1===e.code?(t.$notify({title:"成功",message:"first"===t.activeName?"功能授权成功":"设置成功",type:"success"}),t.$emit("onSuccess")):t.$notify({title:"失败",message:e.data,type:"error"})}))}}}),u=l,c=n(1001),h=(0,c.Z)(u,a,s,!1,null,null,null),f=h.exports,p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-popconfirm",{attrs:{title:"确定取消吗?"},on:{confirm:function(e){return t.delete_appauth("func")}}},[n("el-button",{attrs:{slot:"reference",type:"text",size:"small"},slot:"reference"},[t._v("删 除")])],1)],1)},d=[],g={props:["data"],methods:{delete_appauth:function(){var t=this;this.$api.requested({classname:"webmanage.role.role",method:"delete_appauth",content:{roleid:this.data.roleid,systemapps:[{systemappid:this.data.systemappid,optionids:[this.data.optionid],hiddenfields:[]}]}}).then((function(e){1===e.code?(t.$notify({title:"成功",message:"取消成功",type:"success"}),t.$emit("onSuccess")):t.$notify({title:"失败",message:e.data,type:"error"})}))}}},v=g,m=(0,c.Z)(v,p,d,!1,null,null,null),y=m.exports,b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-popconfirm",{attrs:{title:"确定取消吗?"},on:{confirm:function(e){return t.delete_appauth()}}},[n("el-button",{attrs:{slot:"reference",type:"text",size:"small"},slot:"reference"},[t._v("删 除")])],1)],1)},x=[],w={props:["data"],methods:{delete_appauth:function(){var t=this;this.$api.requested({classname:"webmanage.role.role",method:"delete_appauth",content:{roleid:this.data.roleid,systemapps:[{systemappid:this.data.systemappid,optionids:[],hiddenfields:[this.data.hiddenfieldid]}]}}).then((function(e){1===e.code?(t.$notify({title:"成功",message:"取消成功",type:"success"}),t.$emit("onSuccess")):t.$notify({title:"失败",message:e.data,type:"error"})}))}}},C=w,S=(0,c.Z)(C,b,x,!1,null,null,null),A=S.exports,E={props:["data"],components:{auth:f,cancelAuth:y,cancelFields:A},data:function(){return{rules:{rolename:[{required:!0,message:"请输入角色名称",trigger:"blur"}],remarks:[{required:!0,message:"请输入角色描述",trigger:"blur"}],usertype:[{required:!0,message:"请选择角色类型",trigger:"change"}]},form:{roleid:0,rolename:"",remarks:""},roleMainInfo:{},options:[],tablecols:[],appoptions:[],hiddenfields:[],roleid:0,active_systemappid:""}},methods:{roleMain:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.requested({classname:"webmanage.role.role",method:"query_roleMain",content:{roleid:t.roleid}});case 2:n=e.sent,t.form={roleid:n.data.roleid,rolename:n.data.rolename,remarks:n.data.remarks,usertype:n.data.usertype},t.roleMainInfo=n.data,t.appoptionselect(n.data.apps[0]);case 6:case"end":return e.stop()}}),e)})))()},usertype:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={classname:"sysmanage.develop.optiontype.optiontype",method:"optiontypeselect",content:{pageNumber:1,pageSize:20,typename:"usertype",parameter:{}}},e.next=3,t.$api.requested(n);case 3:r=e.sent,t.options=r.data;case 5:case"end":return e.stop()}}),e)})))()},appoptionselect:function(t){var e=this;return(0,o.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.active_systemappid=t.systemappid,e.appoptions=t.options,e.hiddenfields=t.hiddenfields;case 3:case"end":return n.stop()}}),n)})))()},onSubmit:function(){var t=this;this.$refs["form"].validate((function(e){if(!e)return!1;t.$api.requested({classname:"webmanage.role.role",method:"insertormodify_role",content:t.form}).then((function(e){1===e.code?(t.$notify({title:"成功",message:"保存成功",type:"success"}),t.$router.replace({path:"/roleEdit",query:{id:e.data.roleid}})):t.$notify({title:"失败",message:e.data,type:"error"})}))}))}},mounted:function(){this.tablecols=this.tool.tabelCol(this.$route.name).detailsAppsTable.tablecols,this.roleid=this.$route.query.id,"0"!==this.roleid&&this.roleMain(),this.usertype()},created:function(){!this.tool.checkAuth(this.$route.name,"update")&&this.$router.go(-1)}},k=E,D=(0,c.Z)(k,r,i,!1,null,"0eba4d5c",null),F=D.exports},31750:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return v}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"container normal-panel mb-16"},[t.tool.checkAuth(t.$route.name,"update")?n("el-button",{attrs:{size:"small",icon:"el-icon-edit"},on:{click:function(e){return t.$router.replace({path:"/roleEdit",query:{id:t.roleid}})}}},[t._v("编 辑")]):t._e(),t.tool.checkAuth(t.$route.name,"delete")?n("onDel",{attrs:{data:{roleid:t.roleid}}}):t._e()],1),n("div",{staticClass:"container normal-panel mb-16"},[n("p",{staticClass:"normal-title mb-16"},[t._v("角色信息")]),n("el-row",[n("el-form",{ref:"form",staticClass:"demo-form-inline",attrs:{inline:!0,model:t.form,size:"small","label-position":"left"}},[n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"角色名称:"}},[n("p",[t._v(t._s(t.form.rolename))])])],1),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"角色描述:"}},[n("p",[t._v(t._s(t.form.remarks))])])],1),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"角色类型:"}},[n("p",[t._v(t._s(t.form.usertypename))])])],1)],1)],1)],1),n("div",{staticClass:"container normal-panel mb-16"},[n("p",{staticClass:"normal-title mb-16"},[t._v("角色授权")]),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("tableLayout",{attrs:{layout:t.tablecols,data:t.roleMainInfo.apps,opwidth:200,custom:!1},on:{rowClick:t.appoptionselect}})],1),n("el-col",{attrs:{span:12}},[n("el-row",{attrs:{gutter:40}},[n("el-col",{attrs:{span:12}},[n("p",{staticClass:"title"},[t._v("功能")]),t._l(t.appoptions,(function(e){return n("div",{key:e.index,staticClass:"flex-align-center flex-between option-item"},[n("p",[t._v(t._s(e.optionname))])])}))],2),n("el-col",{attrs:{span:12}},[n("p",{staticClass:"title"},[t._v("隐藏字段")]),t._l(t.hiddenfields,(function(e){return n("div",{key:e.index,staticClass:"flex-align-center flex-between option-item"},[n("p",[t._v(t._s(e.fieldname))])])}))],2)],1)],1)],1)],1)])},i=[],o=n(16198),a=(n(68309),n(35666),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"inline","margin-left":"10px"}},[n("el-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:t.deleteRow}},[n("el-button",{attrs:{slot:"reference",size:"small",icon:"el-icon-delete"},slot:"reference"},[t._v("删 除")])],1)],1)}),s=[],l={props:["data"],methods:{deleteRow:function(){var t=this;this.$api.requested({classname:"webmanage.role.role",method:"delete_role",content:{roleid:this.data.roleid}}).then((function(e){t.$router.go(-1)}))}}},u=l,c=n(1001),h=(0,c.Z)(u,a,s,!1,null,null,null),f=h.exports,p={components:{onDel:f},data:function(){return{form:{roleid:0,rolename:"",remarks:""},roleMainInfo:{},tablecols:[],appoptions:[],hiddenfields:[],roleid:0,active_systemappid:""}},methods:{roleMain:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.requested({classname:"webmanage.role.role",method:"query_roleMain",content:{roleid:t.roleid}});case 2:n=e.sent,t.form={roleid:n.data.roleid,rolename:n.data.rolename,remarks:n.data.remarks,usertype:n.data.usertype,usertypename:n.data.usertypename},t.roleMainInfo=n.data,t.appoptionselect(n.data.apps[0]);case 6:case"end":return e.stop()}}),e)})))()},appoptionselect:function(t){var e=this;return(0,o.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.active_systemappid=t.systemappid,e.appoptions=t.options,e.hiddenfields=t.hiddenfields;case 3:case"end":return n.stop()}}),n)})))()}},mounted:function(){this.tablecols=this.tool.tabelCol(this.$route.name).detailsAppsTable.tablecols,this.roleid=this.$route.query.id,"0"!==this.roleid&&this.roleMain()}},d=p,g=(0,c.Z)(d,r,i,!1,null,"6138702e",null),v=g.exports},37607:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return Q}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"container normal-panel normal-margin flex-align-center flex-between"},[t.tool.checkAuth(t.$route.name,"update")?n("edit",{attrs:{basicInfo:t.siteinfo},on:{onSuccess:t.infoData}}):t._e(),n("i",{staticClass:"el-icon-refresh",on:{click:t.infoData}})],1),n("basicInfo"),n("div",{staticClass:"container normal-panel"},[n("el-descriptions",{attrs:{title:"安全配置"}})],1),n("div",{staticClass:"panel"},[n("div",{staticClass:"flex-align-center flex-between"},[t._m(0),t.tool.checkAuth(t.$route.name,"psdValidate")?n("set-password"):t._e()],1)]),n("div",{staticClass:"panel"},[n("div",{staticClass:"flex-align-center flex-between"},[t._m(1),t.tool.checkAuth(t.$route.name,"setWatermark")?n("set-watermark",{attrs:{basicInfo:t.basicInfo}}):t._e()],1)]),n("div",{staticClass:"panel"},[n("div",{staticClass:"flex-align-center flex-between"},[t._m(2),t.tool.checkAuth(t.$route.name,"loginType")?n("login-select"):t._e()],1)])],1)},i=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"flex-align-stretch"},[r("img",{attrs:{width:"72",height:"72",src:n(75090),alt:""}}),r("div",{staticClass:"text-panel"},[r("p",{staticClass:"explain-title"},[t._v("密码安全强制要求")]),r("p",{staticClass:"explain-tips"},[t._v("当前设置:"),r("span",{staticClass:"color-yellow"},[t._v("密码6位数,数字0-9,特殊符号~,!,@,#,$,%,^;")])])])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"flex-align-stretch"},[r("img",{attrs:{width:"72",height:"72",src:n(16058),alt:""}}),r("div",{staticClass:"text-panel"},[r("p",{staticClass:"explain-title"},[t._v("企业水印图片")]),r("p",{staticClass:"explain-tips"},[t._v("当前设置:已上传水印图片")])])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"flex-align-stretch"},[r("img",{attrs:{width:"72",height:"72",src:n(25141),alt:""}}),r("div",{staticClass:"text-panel"},[r("p",{staticClass:"explain-title"},[t._v("登录方式")]),r("p",{staticClass:"explain-tips"},[t._v("当前设置:账号登录,微信登录")])])])}],o=n(16198),a=n(4367),s=(n(35666),n(20629)),l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container normal-panel normal-margin"},[n("el-descriptions",{attrs:{title:"企业信息"}},[n("el-descriptions-item",{attrs:{label:"企业名称"}},[t._v(t._s(t.siteinfo.enterprisename?t.siteinfo.enterprisename:"--"))]),n("el-descriptions-item",{attrs:{label:"企业简称"}},[t._v(t._s(t.siteinfo.sitename))])],1),n("el-descriptions",{attrs:{direction:"vertical"}},[n("el-descriptions-item",{attrs:{label:"企业操作页LOGO"}},[n("div",{staticClass:"image-panel"},t._l(t.siteinfo.attinfos,(function(t){return n("img",{directives:[{name:"show",rawName:"v-show",value:"actionlogo"===t.usetype,expression:"img.usetype === 'actionlogo'"}],key:t.index,staticStyle:{width:"100%"},attrs:{src:t.url,alt:""}})})),0)])],1)],1)},u=[],c={data:function(){return{}},computed:(0,a.Z)({},(0,s.Se)({siteinfo:"siteinfo"})),methods:{},mounted:function(){}},h=c,f=n(1001),p=(0,f.Z)(h,l,u,!1,null,null,null),d=p.exports,g=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{attrs:{icon:"el-icon-edit",size:"small"},on:{click:t.onShow}},[t._v("编 辑")]),n("el-dialog",{attrs:{title:"编辑",top:"30px",visible:t.dialogEditVisible},on:{"update:visible":function(e){t.dialogEditVisible=e}}},[n("el-row",{attrs:{gutter:16}},[n("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:t.form,rules:t.rules,size:"small",inline:""}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"企业名称",prop:"enterprisename"}},[n("el-input",{staticClass:"normal_input-width",attrs:{placeholder:"请输入企业名称"},model:{value:t.form.enterprisename,callback:function(e){t.$set(t.form,"enterprisename",e)},expression:"form.enterprisename"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"企业简称",prop:"sitename"}},[n("el-input",{staticClass:"normal_input-width",attrs:{placeholder:"请输入企业简称"},model:{value:t.form.sitename,callback:function(e){t.$set(t.form,"sitename",e)},expression:"form.sitename"}})],1)],1)],1)],1),n("el-row",{staticStyle:{margin:"32px 0 0 0"},attrs:{gutter:16}},[n("el-col",{attrs:{span:12}},[n("p",[t._v("企业操作页LOGO:")]),t.show?n("uploadFile",{staticStyle:{"margin-top":"10px"},attrs:{folderid:t.folderid,accept:".JPG,.PNG",btntype:"image",bindData:{ownertable:"sys_site",ownerid:t.siteinfo.siteuid,usetype:"actionlogo"}},on:{onSuccess:t.uploadSuccess}}):n("div",{staticClass:"image-panel"},[n("i",{staticClass:"el-icon-error close-btn",on:{click:t.deleteFileLink}}),t._l(t.siteinfo.attinfos,(function(t){return n("img",{directives:[{name:"show",rawName:"v-show",value:"actionlogo"===t.usetype,expression:"img.usetype === 'actionlogo'"}],key:t.index,staticStyle:{width:"100%"},attrs:{src:t.url,alt:""}})}))],2),n("small",{staticClass:"info",staticStyle:{display:"block","margin-top":"20px"}},[t._v("注:建议上传图片大小1024x1024,大小不超过2M,格式为JPG/PNG")])],1)],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.dialogEditVisible=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:t.submit}},[t._v("确 定")])],1)],1)],1)},v=[],m=(n(41539),n(90573)),y={props:["basicInfo"],components:{uploadFile:m.Z},computed:(0,a.Z)((0,a.Z)({},(0,s.Se)({siteinfo:"siteinfo"})),{},{show:function(){return!this.siteinfo.attinfos.some((function(t){return"actionlogo"===t.usetype}))}}),data:function(){return{dialogEditVisible:!1,form:{},rules:{enterprisename:[{required:!0,message:"请输入企业名称",trigger:"blur"}],sitename:[{required:!0,message:"请输入企业简称",trigger:"blur"}]},folderid:JSON.parse(sessionStorage.getItem("folderid")).appfolderid}},methods:{onShow:function(){this.dialogEditVisible=!0,this.form=Object.assign({},this.form,this.siteinfo)},submit:function(){var t=this;this.$refs["form"].validate(function(){var e=(0,o.Z)(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,t.$api.requested({classname:"webmanage.site.site",method:"updateSite",content:t.form});case 4:r=e.sent,1===r.code?(t.$notify({title:"成功",message:"修改成功",type:"success"}),t.dialogEditVisible=!1,t.$emit("onSuccess")):t.$notify({title:"失败",message:r.data,type:"error"});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},deleteFileLink:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.requested({classname:"system.attachment.Attachment",method:"deleteFileLink",content:{linksids:[t.form.attinfos[0].linksid]}});case 2:n=e.sent,1===n.code&&t.$emit("onSuccess");case 4:case"end":return e.stop()}}),e)})))()},uploadSuccess:function(){this.$emit("onSuccess")}}},b=y,x=(0,f.Z)(b,g,v,!1,null,"73fbd18c",null),w=x.exports,C=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{staticStyle:{width:"120px"},attrs:{size:"small",type:"primary"},on:{click:t.querySite_Parameter}},[t._v("设 置")]),n("el-dialog",{attrs:{title:"设 置",visible:t.dialogFormVisible,width:"860px"},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[n("el-form",{staticStyle:{padding:"0 30px"},attrs:{model:t.form,"label-position":"left"}},[n("el-form-item",{attrs:{label:"默认密码"}},[n("div",{staticClass:"flex-align-center"},[n("el-input",{staticStyle:{width:"300px"},attrs:{size:"small",disabled:t.disabled,type:"password",placeholder:"请输入默认密码"},model:{value:t.password_default,callback:function(e){t.password_default=e},expression:"password_default"}}),n("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text",size:"small"},on:{click:t.setPassword}},[t._v("重新设置")])],1)]),n("el-form-item",{attrs:{label:"密码位数"}},[n("div",{staticClass:"flex-align-center"},[n("el-input",{staticStyle:{width:"300px"},attrs:{size:"small",placeholder:"请输入密码位数"},model:{value:t.form.password_length,callback:function(e){t.$set(t.form,"password_length",e)},expression:"form.password_length"}})],1)]),n("el-form-item",{attrs:{label:"包含字符类型"}},[n("div",{staticClass:"flex-align-center"},[n("div",[n("el-checkbox-group",{attrs:{disabled:0===t.radio2},on:{change:t.checkboxChange},model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},[n("el-checkbox",{attrs:{label:"password_needcapital"}},[t._v("大写英文字母")]),n("el-checkbox",{attrs:{label:"password_needlowercase"}},[t._v("小写英文字母")]),n("el-checkbox",{attrs:{label:"password_neednum"}},[t._v("数字0-9")]),n("el-checkbox",{attrs:{label:"password_needspecialchar"}},[t._v("特殊符号~,!,@,#,$,%,^;")])],1)],1)])])],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:t.updateSite_Parameter}},[t._v("确 定")])],1)],1)],1)},S=[],A=(n(21249),n(47941),n(88495)),E=n.n(A),k={data:function(){return{dialogFormVisible:!1,disabled:!0,radio:1,radio2:1,form:{loginmode_phonenumber:1,loginmode_wechat:0,loginmode_account:1},checkList:[],password_default:""}},mounted:function(){},methods:{querySite_Parameter:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.dialogFormVisible=!0,t.disabled=!0,e.next=4,t.$api.requested({classname:"webmanage.site.site",method:"querySite_Parameter",content:{}});case 4:n=e.sent,r={password_needcapital:n.data.password_needcapital,password_needlowercase:n.data.password_needlowercase,password_neednum:n.data.password_neednum,password_needspecialchar:n.data.password_needspecialchar,password_length:n.data.password_length},t.password_default=n.data.password_default,t.form=Object.assign({},t.form,r),Object.keys(n.data).map((function(e,r){1===n.data[e]&&t.checkList.push(e)}));case 9:case"end":return e.stop()}}),e)})))()},checkboxChange:function(){var t=this;Object.keys(this.form).map((function(e,n){if("password_length"!==e)return t.form[e]=t.checkList.some((function(t){return t===e}))?1:0}))},updateSite_Parameter:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.form.password_length<=0)){e.next=2;break}return e.abrupt("return",t.$message({message:"密码长度必须大于0",type:"error"}));case 2:return e.next=4,t.$api.requested({classname:"webmanage.site.site",method:"updateSite_Parameter",content:t.form});case 4:n=e.sent,1===n.code?(t.disabled?t.$message({message:"修改成功",type:"success"}):t.setDefaultPassword(),t.disabled&&(t.dialogFormVisible=!1)):t.$message({message:n.data,type:"error"});case 6:case"end":return e.stop()}}),e)})))()},setDefaultPassword:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.password_default.length<t.form.password_length)){e.next=2;break}return e.abrupt("return",t.$message({message:"密码长度有误请重新设置",type:"error"}));case 2:return e.next=4,t.$api.requested({classname:"webmanage.site.site",method:"updateSite_defaultpassword",content:{password_default:E()(t.password_default)}});case 4:n=e.sent,1===n.code?t.dialogFormVisible=!1:t.$message({message:n.data,type:"error"});case 6:case"end":return e.stop()}}),e)})))()},setPassword:function(){this.disabled=!1,this.password_default=""}}},D=k,F=(0,f.Z)(D,C,S,!1,null,"ea0e4a9e",null),M=F.exports,O=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{staticStyle:{width:"120px"},attrs:{size:"small",type:"primary"},on:{click:t.queryFileLink}},[t._v("设 置")]),n("el-dialog",{attrs:{title:"设置",visible:t.dialogEditVisible},on:{"update:visible":function(e){t.dialogEditVisible=e}}},[n("el-row",{attrs:{gutter:16}},[n("el-col",{attrs:{span:12}},[n("p",[t._v("企业水印图片:")]),t.image.url?n("div",[n("viewImage",{attrs:{image:t.image,deletebtn:!0},on:{onSuccess:t.queryFileLink}})],1):n("uploadFile",{staticStyle:{"margin-top":"10px"},attrs:{folderid:t.folderid,accept:".JPG,.PNG",btntype:"image",bindData:{ownertable:"sys_site",ownerid:t.siteinfo.siteuid,usetype:"watermark"}},on:{onSuccess:t.queryFileLink}}),n("small",{staticClass:"info",staticStyle:{display:"block","margin-top":"20px"}},[t._v("注:建议上传图片大小1024x1024,大小不超过2M,格式为JPG/PNG")])],1)],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.dialogEditVisible=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:function(e){t.dialogEditVisible=!1}}},[t._v("确 定")])],1)],1)],1)},T=[],B=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"image-panel"},[t.deletebtn?n("i",{staticClass:"el-icon-error close-btn",on:{click:t.deleteFileLink}}):t._e(),n("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.image.url,"preview-src-list":t.srcList}})],1)},_=[],I={props:["image","deletebtn"],data:function(){return{srcList:[]}},methods:{deleteFileLink:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.requested({classname:"system.attachment.Attachment",method:"deleteFileLink",content:{linksids:[t.image.linksid]}});case 2:n=e.sent,1===n.code&&t.$emit("onSuccess");case 4:case"end":return e.stop()}}),e)})))()}},mounted:function(){this.srcList.push(this.image.url)}},P=I,L=(0,f.Z)(P,B,_,!1,null,"6fc5504e",null),R=L.exports,N={props:["basicInfo"],components:{uploadFile:m.Z,viewImage:R},computed:(0,a.Z)({},(0,s.Se)({siteinfo:"siteinfo"})),data:function(){return{dialogEditVisible:!1,image:{url:""},folderid:JSON.parse(sessionStorage.getItem("folderid")).appfolderid}},methods:{queryFileLink:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.dialogEditVisible=!0,e.next=3,t.$api.requested({classname:"system.attachment.Attachment",method:"queryFileLink",content:{ownertable:"sys_site",ownerid:t.siteinfo.siteuid,usetype:"watermark"}});case 3:n=e.sent,n.data[0]?t.image=n.data[0]:t.image={url:""};case 5:case"end":return e.stop()}}),e)})))()}}},j=N,z=(0,f.Z)(j,O,T,!1,null,"8a2bc724",null),U=z.exports,V=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{staticStyle:{width:"120px"},attrs:{size:"small",type:"primary"},on:{click:t.querySite_Parameter}},[t._v("设 置")]),n("el-dialog",{attrs:{title:"设置",visible:t.dialogEditVisible,width:"600px"},on:{"update:visible":function(e){t.dialogEditVisible=e}}},[n("el-row",{attrs:{gutter:16}},[n("el-col",[n("p",{staticStyle:{"margin-bottom":"20px"}},[t._v("登录方式")]),n("el-checkbox-group",{on:{change:t.checkboxChange},model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},[n("el-checkbox",{attrs:{label:"loginmode_account"}},[t._v("账号登录")]),n("el-checkbox",{attrs:{label:"loginmode_phonenumber"}},[t._v("手机动态短信登录")]),n("el-checkbox",{attrs:{label:"loginmode_wechat"}},[t._v("微信登录")])],1)],1)],1),n("div",{staticClass:"dialog-footer"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.dialogEditVisible=!1}}},[t._v("取 消")]),n("el-button",{staticClass:"normal-btn-width btn-warning",attrs:{size:"small",type:"warning"},on:{click:t.updateSite_Parameter}},[t._v("确 定")])],1)],1)],1)},H=[],$={props:["basicInfo"],components:{uploadFile:m.Z},data:function(){return{dialogEditVisible:!1,form:{},checkList:[]}},methods:{querySite_Parameter:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.dialogEditVisible=!0,t.disabled=!0,e.next=4,t.$api.requested({classname:"webmanage.site.site",method:"querySite_Parameter",content:{}});case 4:n=e.sent,r={password_needcapital:n.data.password_needcapital,password_needlowercase:n.data.password_needlowercase,password_neednum:n.data.password_neednum,password_needspecialchar:n.data.password_needspecialchar,password_length:n.data.password_length,loginmode_account:n.data.loginmode_account,loginmode_phonenumber:n.data.loginmode_phonenumber,loginmode_wechat:n.data.loginmode_wechat},t.form=Object.assign({},t.form,r),Object.keys(n.data).map((function(e,r){1===n.data[e]&&t.checkList.push(e)}));case 8:case"end":return e.stop()}}),e)})))()},checkboxChange:function(){var t=this;Object.keys(this.form).map((function(e,n){if("password_length"!==e)return t.form[e]=t.checkList.some((function(t){return t===e}))?1:0}))},updateSite_Parameter:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.requested({classname:"webmanage.site.site",method:"updateSite_Parameter",content:t.form});case 2:n=e.sent,1===n.code?(t.$message({message:"修改成功",type:"success"}),t.dialogEditVisible=!1):t.$message({message:n.data,type:"error"});case 4:case"end":return e.stop()}}),e)})))()}}},G=$,W=(0,f.Z)(G,V,H,!1,null,"4d556369",null),q=W.exports,X={components:{setPassword:M,setWatermark:U,loginSelect:q,basicInfo:d,edit:w},data:function(){return{basicInfo:{}}},computed:(0,a.Z)({},(0,s.Se)({siteinfo:"siteinfo"})),methods:{infoData:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$store.dispatch("querySiteInfo",{classname:"webmanage.site.site",method:"querySite",content:{}});case 1:case"end":return e.stop()}}),e)})))()}},mounted:function(){this.infoData()}},Z=X,Y=(0,f.Z)(Z,r,i,!1,null,"f9997d78",null),Q=Y.exports},10181:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-drawer",{attrs:{title:"详情",visible:t.isFileInfoPanlShow,"with-header":!0},on:{"update:visible":function(e){t.isFileInfoPanlShow=e}}},[n("p",{staticClass:"title"},[t._v(t._s(t.currentSelectFile.siteid))]),n("p",{staticClass:"people"},[t._v("浏览数:"+t._s(t.currentSelectFile.readcount))]),n("file-item",{attrs:{itemStyle:t.itemStyle,fileData:[t.currentSelectFile],isDownLoad:!0}})],1)},i=[],o=n(2097),a={name:"Drawer",data:function(){return{isFileInfoPanlShow:!1,itemStyle:{itemWidth:486,img:{width:64,height:64},title:16,descript:14}}},components:{FileItem:o.Z},props:{currentSelectFile:{default:function(){return{}}}},computed:{},watch:{},created:function(){},methods:{downLoad:function(){window.open(this.currentSelectFile.url)},seeClick:function(){}}},s=a,l=n(1001),u=(0,l.Z)(s,r,i,!1,null,"6cef64cc",null),c=u.exports},9857:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"file-list"},[0==t.fileData.length?r("el-empty",{attrs:{description:"暂无文件"}}):t._e(),t._l(t.fileData,(function(e,i){return r("div",{key:i,staticClass:"file-item",on:{mouseenter:function(e){t.isIconShowIndex=i},mouseleave:function(e){t.isIconShowIndex=1e10},click:function(n){return t.fileClick(e)}}},[r("div",{staticClass:"image"},[r("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.cover,fit:"fill"}})],1),r("p",[t._v(t._s(e.document))]),r("div",{directives:[{name:"show",rawName:"v-show",value:"folder"!=e.fileType&&1==t.isCollect&&t.isIconShowIndex===i||"/archivesmag_list"==t.$route.path,expression:"item.fileType != 'folder' && isCollect == true && isIconShowIndex === index || $route.path == '/archivesmag_list'"}],staticClass:"icon"},[r("img",{directives:[{name:"show",rawName:"v-show",value:1==e.isCollect||"/archivesmag_list"==t.$route.path,expression:"item.isCollect == 1 || $route.path == '/archivesmag_list'"}],attrs:{src:n(21027),alt:""},on:{click:function(n){return n.stopPropagation(),t.collectClick(e)}}}),r("img",{directives:[{name:"show",rawName:"v-show",value:0==e.isCollect,expression:"item.isCollect == 0"}],attrs:{src:n(96464),alt:""},on:{click:function(n){return n.stopPropagation(),t.collectClick(e)}}})])])})),r("drawer",{directives:[{name:"show",rawName:"v-show",value:t.currentSelectFile,expression:"currentSelectFile"}],ref:"drawer",attrs:{currentSelectFile:t.currentSelectFile},on:{downLoad:function(e){t.dialogVisible=!0}}})],2)},i=[],o=n(10181),a={name:"FileList",data:function(){return{params:{accesstoken:"6de4ba3e3e8967a875ae42ab24c2da48",classname:"system.attachment.MediaCenter",method:"collectAttachment",content:{collecttype:"营销物料",attachmentid:1}},isIconShowIndex:"",currentSelectFile:""}},components:{Drawer:o.Z},props:{fileData:{default:function(){return[]}},isCollect:{type:Boolean}},computed:{},watch:{},created:function(){},methods:{fileClick:function(t){"folder"==t.postfix?this.$emit("upFileData",t.parentid,t.document,t.attachmentid):(this.currentSelectFile=this.fileType.fileList(t),this.$refs.drawer.isFileInfoPanlShow=!0)},collectClick:function(t){var e=this,n=0==t.isCollect?1:0;0==t.isCollect?(this.params.method="collectAttachment",this.params.content.collecttype="营销物料",this.params.content.attachmentid=t.attachmentid):(this.params.method="uncollectAttachment",this.params.content.attachmentid=t.attachmentid),this.$api.requested(this.params).then((function(r){1==r.code?(e.$emit("statusChange",n,t),"collectAttachment"==e.params.method?e.$notify({title:"提示",message:"收藏成功",type:"success"}):e.$notify({title:"提示",message:"取消收藏",type:"success"})):e.$notify({title:"提示",message:"修改失败",type:"error"})}))}}},s=a,l=n(1001),u=(0,l.Z)(s,r,i,!1,null,"0ef98985",null),c=u.exports},59189:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return d}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"normal-card"},[n("bread-crumbs",{attrs:{tempFileData:t.tempFileData},on:{BreadCrumbsChange:t.BreadCrumbsChange}}),n("div",{staticClass:"header-panl"},[t.tool.checkAuth(t.$route.name,"read")?n("select-panl",{ref:"selectPanl",attrs:{titleLists:t.titleLists},on:{CurrentSelectType:t.CurrentSelectType}}):t._e(),t.tool.checkAuth(t.$route.name,"read")?n("hot-new-control",{on:{sortTypeChange:t.sortTypeChange}}):t._e()],1),t.tool.checkAuth(t.$route.name,"read")?n("file-list",{attrs:{fileData:t.fileData,isCollect:!0},on:{upFileData:t.upFileData,statusChange:t.statusChange}}):t._e()],1)},i=[],o=n(16198),a=(n(35666),n(2707),n(40561),n(69826),n(41539),n(57327),n(9857)),s=n(30203),l=n(29963),u=n(47223),c={name:"index",data:function(){return{params:{accesstoken:"14fed62faa62714a6a1e2ebe2d3997e3",classname:"saletool.salematerial.salematerial",method:"selectList",content:{pageNumber:1,pageSize:9999999999999,parentid:1,where:{condition:""}}},tempFileData:[{filename:"文件",id:null}],titleLists:[{name:"全部",type:"all"},{name:"Word",type:"word"},{name:"Excel",type:"excel"},{name:"PPT",type:"ppt"},{name:"PDF",type:"pdf"},{name:"图片",type:"image"},{name:"视频",type:"video"},{name:"压缩包",type:"zip"},{name:"文本",type:"txt"}],fileData:[],allFileData:[],isType:"all",currentFileIndex:0,isFileInfoPanlShow:!0,total:0,sort:""}},components:{SelectPanl:s.Z,FileList:a.Z,HotNewControl:l.Z,BreadCrumbs:u.Z},computed:{},watch:{},created:function(){this.getFileList(),this.tempFileData[0].id=1},methods:{getFileList:function(){var t=this;this.$api.requested(this.params).then((function(e){t.total=e.total,t.params.content.sort=e.sort,t.allFileData=t.fileType.fileList(e.data),t.fileData=t.filterFileData(t.allFileData,t.isType),console.log(t.fileData)}))},upFileData:function(t,e,n){this.params.content.parentid=n,this.currentFileIndex=n,this.tempFileData[this.tempFileData.length-1].id=t,this.getFileList(),this.tempFileData.push({filename:e,id:n})},CurrentSelectType:function(t){this.isType=t,this.fileData=this.filterFileData(this.allFileData,t)},BreadCrumbsChange:function(t){var e=this;return(0,o.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!(e.tempFileData.length<=1)){n.next=2;break}return n.abrupt("return");case 2:e.isType="all",e.params.content.parentid=t,e.$refs.selectPanl.currentName="all",e.tempFileData.splice(e.tempFileData.indexOf(e.tempFileData.find((function(e){return e.id==t})))+1),e.getFileList();case 7:case"end":return n.stop()}}),n)})))()},statusChange:function(t,e){this.params.content.parentid=e.parentid,this.getFileList()},sortTypeChange:function(t){for(var e=0;e<this.params.content.sort.length;e++)this.params.content.sort[e].sorted=this.params.content.sort[e].sortname==t?1:0;this.getFileList(),this.currentFileIndex=0},filterFileData:function(t,e){return"all"==e?t:t.filter((function(t){return t.fileType==e}))}}},h=c,f=n(1001),p=(0,f.Z)(h,r,i,!1,null,"1ce922d3",null),d=p.exports},65308:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{on:{click:function(e){return e.stopPropagation(),t.edit()}}},[t._v("编辑")])},i=[],o=(n(38862),{name:"Edit",data:function(){return{}},computed:{},props:["fileData"],watch:{},methods:{edit:function(){console.log(this.fileData.type),window.sessionStorage.setItem("uploadType",this.fileData.type),this.$router.push({name:"upload",params:{data:JSON.stringify(this.fileData)}})}}}),a=o,s=n(1001),l=(0,s.Z)(a,r,i,!1,null,"5d103bf7",null),u=l.exports},85717:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"delete"},[n("span",{on:{click:function(e){e.stopPropagation(),t.dialogVisible=!0}}},[t._v("删除")]),n("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("span",[t._v("是否永久删除素材?")]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){e.stopPropagation(),t.dialogVisible=!1}}},[t._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return e.stopPropagation(),t.remove()}}},[t._v("确 定")])],1)])],1)},i=[],o={name:"",data:function(){return{dialogVisible:!1}},props:["data"],computed:{},watch:{},methods:{remove:function(){var t=this,e={classname:"webmanage.saletool.sharematerial.sharematerial",method:"delete",content:{sat_sharematerialid:this.data.sat_sharematerialid}};this.$api.requested(e).then((function(e){1==e.code?(t.$notify({title:"提示",message:"删除成功",type:"success"}),t.$emit("removeSuccess"),t.dialogVisible=!1):t.$notify({title:"提示",message:"删除失败",type:"error"})}))},handleClose:function(){console.log(1111),this.dialogVisible=!1}}},a=o,s=n(1001),l=(0,s.Z)(a,r,i,!1,null,"84d44544",null),u=l.exports},45690:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return 0!=t.currentSelectFile.length?n("el-drawer",{attrs:{title:"详情",visible:t.isFileInfoPanlShow,"with-header":!0},on:{"update:visible":function(e){t.isFileInfoPanlShow=e}}},[n("div",{staticClass:"header"},[n("p",{staticClass:"title"},[t._v(t._s(t.currentSelectFile.title))]),n("div",{staticClass:"detail-info"},[n("el-row",[n("el-col",{attrs:{span:8}},[n("span",[n("span",[t._v("浏览数:")]),t._v(t._s(t.currentSelectFile.readcount))])]),n("el-col",{attrs:{span:8}},[n("span",[n("span",[t._v("分享数:")]),t._v(t._s(t.currentSelectFile.sharecount))])]),n("el-col",{attrs:{span:8}},[n("span",[n("span",[t._v("拉新数:")]),t._v(t._s(t.currentSelectFile.newcount))])]),n("el-col",{attrs:{span:8}},[n("span",[n("span",[t._v("创建人:")]),t._v(t._s(t.currentSelectFile.changeby))])]),n("el-col",{attrs:{span:14}},[n("span",[n("span",[t._v("上传时间:")]),t._v(t._s(t.currentSelectFile.createdate))])])],1)],1)]),this.currentSelectFile.content&&"<p><br></p>"!=decodeURIComponent(this.currentSelectFile.content)?n("div",{staticClass:"content"},[n("div",{ref:"fwb",staticClass:"fwb"})]):t._e(),n("div",{staticClass:"file2"},[1==t.currentSelectFile.type?n("div",{staticClass:"image"},t._l(t.currentSelectFile.attinfos,(function(t,e){return n("img",{key:e,attrs:{src:t.url,alt:""}})})),0):t._e(),2==t.currentSelectFile.type?n("div",{staticClass:"video"},t._l(t.currentSelectFile.attinfos,(function(t,e){return n("video",{key:e,attrs:{src:t.url,controls:""}})})),0):t._e(),t._l(t.currentSelectFile.attinfos,(function(e,r){return n("div",{key:r,staticClass:"file-item"},[n("file-item",{attrs:{itemStyle:t.itemStyle,fileData:[e],isDownLoad:!0}})],1)}))],2)]):t._e()},i=[],o=n(2097),a=(n(6430),{name:"Drawer",data:function(){return{isFileInfoPanlShow:!1,itemStyle:{itemWidth:1020,img:{width:64,height:64},title:16,descript:12}}},props:{currentSelectFile:{default:function(){return{}}}},components:{FileItem:o.Z},computed:{},watch:{currentSelectFile:{handler:function(t){console.log(t)}}},updated:function(){this.$refs.fwb&&(this.$refs.fwb.innerHTML=this.currentSelectFile.content)},methods:{downLoad:function(){window.open(this.currentSelectFile.url)}}}),s=a,l=n(1001),u=(0,l.Z)(s,r,i,!1,null,"04af1ad6",null),c=u.exports},64176:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return 0!=t.fileData.length?r("div",{staticClass:"list-box"},t._l(t.fileData,(function(e,i){return r("div",{key:i,staticClass:"list",on:{click:function(n){return t.itemClick(e)}}},[r("div",{staticClass:"top"},[r("img",{attrs:{src:t.getCover(e),alt:""}})]),r("div",{staticClass:"bottom"},[r("p",{staticClass:"title"},[t._v(t._s(e.title))]),r("div",{staticClass:"icon-box"},[r("div",{staticClass:"item"},[r("img",{attrs:{src:n(77708),alt:""}}),r("span",[t._v(t._s(e.readcount))])]),r("div",{staticClass:"item"},[r("img",{attrs:{src:n(52728),alt:""}}),r("span",[t._v(t._s(e.sharecount))])]),r("div",{staticClass:"item"},[r("img",{attrs:{src:n(36697),alt:""}}),r("span",[t._v(t._s(e.newcount))])])]),t.isHandle?r("div",{staticClass:"handle"},[t._t("edit",null,{data:e}),t._t("delete",null,{data:e})],2):t._e()])])})),0):r("el-empty",{attrs:{description:"暂无数据"}})},i=[],o=(n(69826),n(41539),{name:"list",data:function(){return{dialogVisible:!1,currentItem:[]}},props:["fileData","isHandle"],computed:{},components:{},watch:{},created:function(){},methods:{getCover:function(t){var e=t.attinfos.find((function(t){return"image"==t.fileType}));return e?t.attinfos.find((function(t){return t==e})).cover:n(39235)},itemClick:function(t){this.$emit("listItemClick",t)}}}),a=o,s=n(1001),l=(0,s.Z)(a,r,i,!1,null,"3bc4552e",null),u=l.exports},42080:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return m}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{height:"100%"}},[n("div",{staticClass:"normal-card"},[n("div",{staticClass:"header-panl"},[n("div",{staticClass:"left"},[t.tool.checkAuth(t.$route.name,"read")?n("search",{on:{searchActive:t.searchActive,clearData:function(e){return t.clearData()}}}):t._e(),t.tool.checkAuth(t.$route.name,"read")?n("category-select",{attrs:{label:"素材分类",selectList:t.selectList},on:{changeSelect:t.changeSelect,clearSelect:function(e){return t.clearSelect()}}}):t._e()],1),t.tool.checkAuth(t.$route.name,"read")?n("hot-new-control",{on:{sortTypeChange:t.sortTypeChange}}):t._e()],1),t.tool.checkAuth(t.$route.name,"read")?n("list",{attrs:{fileData:t.fileData,isHandle:!1},on:{listItemClick:t.listItemClick,itemEdit:t.itemEdit}}):t._e(),n("pagination",{attrs:{total:t.total,pageSize:t.params.content.pageSize,currentPage:t.params.content.pageNumber},on:{pageChange:t.pageChange}}),t.currentFile?n("detail",{ref:"detail",attrs:{currentSelectFile:t.currentFile}}):t._e()],1)])},i=[],o=(n(69826),n(41539),n(2707),n(75505),n(87714),n(82801),n(1174),n(38862),n(29963)),a=n(53521),s=n(64176),l=n(76857),u=n(45690),c=n(85717),h=n(65308),f=n(5283),p={name:"index",data:function(){return{params:{classname:"saletool.sharematerial.sharematerial",method:"selectList",content:{pageNumber:1,pageSize:12,where:{condition:"",sat_sharematerial_classid:null}}},select:{accesstoken:"0b62a25619912a732160863854a9f19d",classname:"saletool.sharematerial.sharematerial",method:"select",content:{parentid:0}},fileData:[],list:[],selectList:[],total:20,currentFile:""}},components:{HotNewControl:o.Z,CategorySelect:a.Z,Pagination:f.Z,list:s.Z,search:l.Z,detail:u.Z,Delete:c.Z,Edit:h.Z},computed:{},created:function(){this.getFileList(),this.getSelectList()},methods:{getFileList:function(){var t=this;this.$api.requested(this.params).then((function(e){t.total=e.total;for(var n=0;n<e.data.length;n++){var r=t.fileType.fileList(e.data[n].attinfos);if(r.length){var i=r.find((function(t){return"image"==t.fileType}));i&&(e.data[n].cover=t.fileType.getSpecifiedImage(i),e.data.attinfos=r)}}t.fileData=e.data,t.params.content.sort=e.sort}))},getSelectList:function(){var t=this;this.$api.requested(this.select).then((function(e){t.selectList=e.data}))},searchActive:function(t){t&&(this.params.content.where.condition=t,this.getFileList())},sortTypeChange:function(t){for(var e=0;e<this.params.content.sort.length;e++)this.params.content.sort[e].sorted=this.params.content.sort[e].sortname==t?1:0;this.getFileList()},changeSelect:function(t){this.params.content.where.sat_sharematerial_classid=t[t.length-1],this.getFileList()},clearSelect:function(){this.getFileList()},listItemClick:function(t){var e=this,n={classname:"saletool.sharematerial.sharematerial",method:"selectDetail",content:{sat_sharematerialid:t.sat_sharematerialid}};this.$api.requested(n).then((function(t){t.data.content=atob(t.data.content),t.data.attinfos=e.fileType.fileList(t.data.attinfos),e.currentFile=t.data,e.$nextTick((function(){e.$refs.detail.isFileInfoPanlShow=!0}))}))},itemEdit:function(t){this.$router.push({path:"/upload_archives",params:JSON.stringify(t)})},clearData:function(){this.params.content.where.condition="",this.getFileList()},uploadClick:function(){this.$router.push({path:"/upload_archives"})},pageChange:function(t){this.params.content.pageNumber=t,this.getFileList()}}},d=p,g=n(1001),v=(0,g.Z)(d,r,i,!1,null,"e6571984",null),m=v.exports},37767:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return x}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{height:"100%"}},[t.tool.checkAuth(t.$route.name,"insert")?n("Header",[n("save",{attrs:{slot:"save",type:"upload_image"},on:{btnClick:t.uploadClick},slot:"save"}),n("save",{attrs:{slot:"save",type:"upload_video"},on:{btnClick:t.uploadClick},slot:"save"}),n("save",{attrs:{slot:"save",type:"upload_fwb"},on:{btnClick:t.uploadClick},slot:"save"})],1):t._e(),n("div",{staticClass:"normal-card"},[n("div",{staticClass:"header-panl"},[n("div",{staticClass:"left"},[t.tool.checkAuth(t.$route.name,"read")?n("search",{on:{searchActive:t.searchActive,clearData:function(e){return t.clearData()}}}):t._e(),t.tool.checkAuth(t.$route.name,"read")?n("category-select",{attrs:{label:"素材分类",selectList:t.selectList},on:{changeSelect:t.changeSelect,clearSelect:function(e){return t.clearSelect()}}}):t._e()],1),t.tool.checkAuth(t.$route.name,"read")?n("hot-new-control",{on:{sortTypeChange:t.sortTypeChange}}):t._e()],1),t.tool.checkAuth(t.$route.name,"read")?n("list",{attrs:{fileData:t.fileData,isHandle:!0},on:{listItemClick:t.listItemClick,itemEdit:t.itemEdit},scopedSlots:t._u([{key:"edit",fn:function(e){return[t.tool.checkAuth(t.$route.name,"update")?n("Edit",{attrs:{fileData:e.data}}):t._e()]}},{key:"delete",fn:function(e){return[t.tool.checkAuth(t.$route.name,"delete")?n("Delete",{attrs:{data:e.data},on:{removeSuccess:t.getFileList}}):t._e()]}}],null,!1,3010105243)}):t._e(),n("pagination",{attrs:{total:t.total,pageSize:t.params.content.pageSize,currentPage:t.params.content.pageNumber},on:{pageChange:t.pageChange}}),t.currentFile&&t.tool.checkAuth(t.$route.name,"read")?n("detail",{ref:"detail",attrs:{currentSelectFile:t.currentFile}}):t._e()],1)],1)},i=[],o=(n(41539),n(54747),n(2707),n(75505),n(87714),n(82801),n(1174),n(38862),n(64166)),a=n(78878),s=n(29963),l=n(53521),u=n(64176),c=n(76857),h=n(45690),f=n(85717),p=n(65308),d=n(5283),g=n(6430),v={name:"index",data:function(){return{params:{classname:"saletool.sharematerial.sharematerial",method:"selectMyList",content:{pageNumber:1,pageSize:12,where:{condition:"",sat_sharematerial_classid:null}}},select:{accesstoken:"0b62a25619912a732160863854a9f19d",classname:"saletool.sharematerial.sharematerial",method:"select",content:{parentid:0}},fileData:[],list:[],selectList:[],total:20,currentFile:""}},components:{HotNewControl:s.Z,CategorySelect:l.Z,Pagination:d.Z,list:u.Z,search:c.Z,detail:h.Z,Delete:f.Z,Edit:p.Z,Header:o.Z,save:a.Z},computed:{},created:function(){this.getFileList(),this.getSelectList()},methods:{getFileList:function(){var t=this;this.$api.requested(this.params).then((function(e){t.total=e.total,t.fileData=e.data,t.fileData.forEach((function(t){t.attinfos=g.Z.fileList(t.attinfos)})),t.params.content.sort=e.sort}))},getSelectList:function(){var t=this;this.$api.requested(this.select).then((function(e){t.selectList=e.data}))},searchActive:function(t){var e=this;t&&(this.params.content.where.condition=t,this.$api.requested(this.params).then((function(t){e.fileData=t.data,e.fileData.forEach((function(t){t.attinfos=g.Z.fileList(t.attinfos)}))})))},sortTypeChange:function(t){for(var e=0;e<this.params.content.sort.length;e++)this.params.content.sort[e].sorted=this.params.content.sort[e].sortname==t?1:0;this.getFileList()},changeSelect:function(t){this.params.content.where.sat_sharematerial_classid=t[t.length-1],this.getFileList()},clearSelect:function(){this.getFileList()},listItemClick:function(t){var e=this,n={classname:"saletool.sharematerial.sharematerial",method:"selectDetail",content:{sat_sharematerialid:t.sat_sharematerialid}};this.$api.requested(n).then((function(t){t.data.content=atob(t.data.content),t.data.attinfos=e.fileType.fileList(t.data.attinfos),e.currentFile=t.data,e.$nextTick((function(){e.$refs.detail.isFileInfoPanlShow=!0}))}))},itemEdit:function(t){this.$router.push({path:"/upload_archives",params:JSON.stringify(t)})},clearData:function(){this.params.content.where.condition="",this.getFileList()},uploadClick:function(t){window.sessionStorage.setItem("uploadType",t),this.$router.push({path:"/upload_archives"})},pageChange:function(t){this.params.content.pageNumber=t,this.getFileList()}}},m=v,y=n(1001),b=(0,y.Z)(m,r,i,!1,null,"655198a2",null),x=b.exports},38744:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return w}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"normal-card"},[n("div",{staticClass:"header-panl"},[n("div",{staticClass:"left"},[t.tool.checkAuth(t.$route.name,"read")?n("category-select",{attrs:{label:"课程分类",selectList:t.selectList,prop:{value:"sat_courseware_classid",label:"classname"}},on:{changeSelect:t.changeSelect}}):t._e(),t.tool.checkAuth(t.$route.name,"read")?n("search",{on:{searchActive:t.searchActive,clearData:t.clearData}}):t._e()],1),t.tool.checkAuth(t.$route.name,"read")?n("hot-new-control",{attrs:{sortType:t.param.content.where.sorttype},on:{sortTypeChange:t.sortTypeChange}}):t._e()],1),0!=t.list.length&&t.tool.checkAuth(t.$route.name,"read")?n("div",{staticClass:"file"},t._l(t.list,(function(e,r){return n("div",{key:r,staticClass:"file-item",on:{click:function(n){return t.itemClick(e)}}},[n("div",{staticClass:"top"},[n("img",{attrs:{src:e.cover,alt:""}})]),n("div",{staticClass:"bottom"},[n("p",{staticClass:"title"},[t._v(t._s(e.title))]),n("p",{staticClass:"descript"},[t._v(t._s(e.notes))]),n("p",{staticClass:"people"},[t._v(t._s(e.readcount)+"人学习")])])])})),0):n("el-empty",{attrs:{description:"暂无数据"}}),n("pagination",{attrs:{total:t.total,pageSize:t.param.content.pageSize,currentPage:t.param.content.pageNumber},on:{pageChange:t.pageChange}}),t.currentSelectFile&&t.tool.checkAuth(t.$route.name,"read")?n("detail",{ref:"detail",attrs:{currentSelectFile:t.currentSelectFile}}):t._e()],1)},i=[],o=(n(2707),n(76857)),a=n(29963),s=n(5283),l=n(53521),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-drawer",{attrs:{title:"详情",visible:t.isFileInfoPanlShow,"with-header":!0},on:{"update:visible":function(e){t.isFileInfoPanlShow=e}}},[n("div",{staticClass:"top"},[n("p",{staticClass:"title"},[t._v(t._s(t.currentSelectFile.classname)+" "+t._s(t.currentSelectFile.title))]),n("div",{staticClass:"info1"},[n("p",[t._v("发布者: "+t._s(t.currentSelectFile.createby))]),n("p",[t._v("发布时间: "+t._s(t.currentSelectFile.createdate))])])]),n("div",{staticClass:"descript"},[n("p",{staticClass:"title"},[t._v("课程描述")]),n("p",[t._v(" "+t._s(t.currentSelectFile.notes)+" ")])]),n("div",{staticClass:"file1"},[n("p",{staticClass:"title"},[t._v("课件")]),n("div",{staticClass:"file-box"},[n("file-item",{attrs:{itemStyle:t.itemStyle,fileData:t._f("fileType")(t.currentSelectFile.attinfos),isDownLoad:!0}})],1)])])},c=[],h=n(2097),f=n(6430),p={name:"Drawer",data:function(){return{isFileInfoPanlShow:!1,itemStyle:{itemWidth:486,img:{width:52.75,height:63.83},title:16,descript:12}}},filters:{fileType:function(t){return f.Z.fileList(t)}},props:{currentSelectFile:{default:function(){return{}}}},components:{FileItem:h.Z},computed:{},watch:{},created:function(){},methods:{downLoad:function(){window.open(this.currentSelectFile.url)},seeClick:function(){}}},d=p,g=n(1001),v=(0,g.Z)(d,u,c,!1,null,"592e6d54",null),m=v.exports,y={name:"index",data:function(){return{param:{classname:"saletool.courseware.courseware",method:"selectList",content:{pageNumber:1,pageSize:12,where:{condition:"",sat_courseware_classid:""}}},detail:{classname:"saletool.courseware.courseware",method:"selectDetail",content:{sat_coursewareid:""}},select:{classname:"saletool.courseware.courseware",method:"selectMenu",content:{}},list:[],selectList:[],selectId:11111,total:0,currentSelectFile:""}},components:{HotNewControl:a.Z,Pagination:s.Z,CategorySelect:l.Z,detail:m,search:o.Z},computed:{},watch:{},created:function(){this.getFileData(),this.getSelectList()},methods:{getFileData:function(){var t=this;this.$api.requested(this.param).then((function(e){t.total=e.total,t.list=e.data,t.param.content.sort=e.sort,console.log(t.list)}))},getSelectList:function(){var t=this;this.$api.requested(this.select).then((function(e){t.selectList=e.data,console.log(t.selectList)}))},searchActive:function(t){var e=this;this.param.content.where.condition=t,this.param.content.where.pageNumber=1,this.$api.requested(this.param).then((function(t){e.list=t.data,e.total=t.total}))},clearData:function(){this.param.content.where.condition="",this.getFileData()},sortTypeChange:function(t){for(var e=0;e<this.param.content.sort.length;e++)this.param.content.sort[e].sorted=this.param.content.sort[e].sortname==t?1:0;this.getFileData()},pageChange:function(t){this.param.content.pageNumber=t,this.getFileData()},itemClick:function(t){var e=this;this.detail.content.sat_coursewareid=t.sat_coursewareid,this.$api.requested(this.detail).then((function(t){e.currentSelectFile=t.data,console.log(e.currentSelectFile),e.$nextTick((function(){e.$refs.detail.isFileInfoPanlShow=!0}))}))},changeSelect:function(t){this.param.content.pageNumber=1,this.param.content.where.sat_courseware_classid=t[t.length-1],this.getFileData()}}},b=y,x=(0,g.Z)(b,r,i,!1,null,"71af0181",null),w=x.exports},64166:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"header"},[r("div",{staticClass:"left"},[t._t("save")],2),r("div",{staticClass:"right"},[r("img",{staticStyle:{cursor:"pointer"},attrs:{src:n(46901),alt:""},on:{click:function(e){return t.$router.go(0)}}})])])},i=[],o={name:"Header",data:function(){return{}},computed:{},watch:{},methods:{}},a=o,s=n(1001),l=(0,s.Z)(a,r,i,!1,null,"d9feae28",null),u=l.exports},78878:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return"save"==t.type?r("el-button",{attrs:{type:"warning",size:"small"},on:{click:function(e){return t.btnClick()}}},[r("img",{attrs:{src:n(35851),alt:""}}),t._v(" 保存 ")]):"upload"==t.type?r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.btnClick()}}},[r("img",{attrs:{src:n(93653),alt:""}}),t._v(" 上传 ")]):"upload_image"==t.type?r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.btnClick(1)}}},[r("img",{attrs:{src:n(93653),alt:""}}),t._v(" 上传图片 ")]):"upload_video"==t.type?r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.btnClick(2)}}},[r("img",{attrs:{src:n(93653),alt:""}}),t._v(" 上传视频 ")]):"upload_fwb"==t.type?r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.btnClick(3)}}},[r("img",{attrs:{src:n(93653),alt:""}}),t._v(" 上传图文 ")]):t._e()},i=[],o={name:"save",data:function(){return{}},props:{type:{default:function(){return"save"}}},computed:{},watch:{},methods:{btnClick:function(t){this.$emit("btnClick",t)}}},a=o,s=n(1001),l=(0,s.Z)(a,r,i,!1,null,"a74274e4",null),u=l.exports},50123:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var r,i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"upload"},["submit"==t.target?r("el-button",{on:{click:function(e){t.dialogUploadVisible=!0}}},[r("i",{staticClass:"iconfont icon-a-tuiguangsucaishangchuan1",staticStyle:{color:"#3874F6"}}),t._v(" 上传")]):t._e()],1),"archives"==t.target?r("el-button",{attrs:{type:"warning",size:"small",icon:"el-icon-upload"},on:{click:function(e){t.dialogUploadVisible=!0}}},[t._v("上 传")]):"avatar"==t.target?r("el-button",{attrs:{round:""},on:{click:function(e){t.dialogUploadVisible=!0}}},[t._v("上传头像")]):t._e(),r("el-dialog",{attrs:{title:"文件上传",visible:t.dialogUploadVisible,width:"500px","append-to-body":"","close-on-click-modal":!1,"before-close":t.clearFiles},on:{"update:visible":function(e){t.dialogUploadVisible=e}}},[r("el-upload",{ref:"my-upload",staticClass:"upload-demo",staticStyle:{width:"100%"},attrs:{action:"#","auto-upload":!1,"show-file-list":!1,"on-change":t.handleChange,drag:"",multiple:"",accept:t.calcFileType}},[r("i",{staticClass:"el-icon-upload"}),r("div",{staticClass:"el-upload__text"},[t._v("将文件拖到此处,或"),r("em",[t._v("点击上传")])])]),t._l(t.filelist,(function(e){return r("div",{key:e.uid,staticClass:"progress_panel"},["DOC"===e.type||"DOCX"===e.type?r("img",{attrs:{width:"30",src:n(12349),alt:""}}):"PDF"===e.type?r("img",{attrs:{width:"30",src:n(58813),alt:""}}):"MP4"===e.type||"AVI"===e.type?r("img",{attrs:{width:"30",src:n(29902),alt:""}}):"XLS"===e.type||"XLSX"===e.type?r("img",{attrs:{width:"30",src:n(54005),alt:""}}):"PNG"===e.type||"JPG"===e.type||"JPEG"===e.type?r("img",{attrs:{width:"30",src:n(45968),alt:""}}):"PPT"===e.type||"PPTX"===e.type?r("img",{attrs:{width:"30",src:n(4858),alt:""}}):r("img",{attrs:{width:"30",src:n(63899),alt:""}}),r("div",[100===e.progress?r("p",{staticStyle:{float:"right"}},[r("span",{staticStyle:{color:"#67C23A"}},[t._v("●")]),t._v("上传成功")]):t._e(),r("p",[t._v(t._s(e.raw?e.raw.name:"暂无上传文件"))]),r("el-progress",{attrs:{percentage:e.progress,"show-text":!1}})],1)])}))],2)],1)},o=[],a=n(23796),s=n(16198),l=(n(35666),n(68309),n(41539),n(54747),r={name:"upload",props:["folderid"],data:function(){return{dialogUploadVisible:!1,params:{classname:"system.attachment.huawei.OBS",method:"getFileName",content:{filename:"",filetype:"",parentid:JSON.parse(sessionStorage.getItem("folderid")).appfolderid}},file:{},filelist:[]}}},(0,a.Z)(r,"props",{target:String,classType:{default:function(){return""}}}),(0,a.Z)(r,"computed",{calcFileType:function(){return"1"==this.classType?".jpg,.png,.jpg,.jpeg,.bmp,.gif,.webp,.svg,.tiff":"2"==this.classType?".mp4,.ogg,.webm":void 0}}),(0,a.Z)(r,"methods",{handleChange:function(t,e){this.filelist=e;var n=t.raw.name.lastIndexOf("."),r=t.name.substr(n+1);this.params.content.filename=t.raw.name,this.params.content.filetype=r,this.getUploadUrl(t,r)},getUploadUrl:function(t,e){var n=this;return(0,s.Z)(regeneratorRuntime.mark((function r(){var i,o,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,n.$api.requested(n.params);case 2:i=r.sent,o=i.data.uploadurl,a=i.data.serialfilename,n.upoladFileToServer(o,t,e,a);case 6:case"end":return r.stop()}}),r)})))()},upoladFileToServer:function(t,e,n,r){var i=this;return(0,s.Z)(regeneratorRuntime.mark((function o(){var a,s;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return a=i,s={headers:"pdf"===n?{"Content-Type":"application/pdf"}:{"Content-Type":"application/octet-stream"},onUploadProgress:function(t){var r=t.loaded/t.total*100;a.filelist.forEach((function(t){t.uid===e.uid&&(a.$set(t,"type",n.toUpperCase()),a.$set(t,"progress",r))}))}},o.next=4,i.$upload.hw_upload(t,e.raw,s);case 4:o.sent,i.createFileRecord(r);case 6:case"end":return o.stop()}}),o)})))()},createFileRecord:function(t){var e=this;return(0,s.Z)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:r={classname:"system.attachment.huawei.OBS",method:"uploadSuccess",content:{serialfilename:t}},e.$api.requested(r).then((function(t){e.dialogUploadVisible=!1,e.clearFiles(),e.$emit("onSuccess",t.data.attachmentids[0])}));case 2:case"end":return n.stop()}}),n)})))()},clearFiles:function(){this.$refs["my-upload"].clearFiles(),this.filelist=[],this.dialogUploadVisible=!1}}),r),u=l,c=n(1001),h=(0,c.Z)(u,i,o,!1,null,"61f1f2e9",null),f=h.exports},92841:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return oct}});var r,i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"upload"},[n("Header",[t.tool.checkAuth(t.$route.name,"update")?n("save",{attrs:{slot:"save"},on:{btnClick:function(e){return t.save()}},slot:"save"}):t._e()],1),t.tool.checkAuth(t.$route.name,"read")?n("Set",{ref:"set"}):t._e(),"1"==t.uploadType||"2"==t.uploadType&&t.tool.checkAuth(t.$route.name,"read")?n("file-list",{attrs:{attinfos:t.uploadCacheData.attinfos},scopedSlots:t._u([{key:"delete",fn:function(e){return[t.tool.checkAuth(t.$route.name,"delete")?n("delete1",{attrs:{data:e.data}}):t._e()]}},{key:"download",fn:function(e){return[t.tool.checkAuth(t.$route.name,"download")?n("download",{attrs:{data:e.data}}):t._e()]}}],null,!1,4163646389)},[t.tool.checkAuth(t.$route.name,"update")?n("upload",{attrs:{slot:"upload",target:"archives",classType:t.uploadType},on:{onSuccess:t.onSuccess},slot:"upload"}):t._e()],1):t._e(),"3"==t.uploadType&&t.tool.checkAuth(t.$route.name,"update")?n("file-text",{ref:"text"},[n("Editor",{ref:"editor",attrs:{slot:"editor",content:t.cacheInfo.content.content,id:t.uploadCacheData.sat_sharematerialid},slot:"editor"})],1):t._e()],1)},o=[],a=n(16198),s=(n(35666),n(92222),n(64166)),l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"file-set"},[n("p",{staticClass:"title"},[t._v("素材设置")]),n("el-form",{ref:"form",attrs:{model:t.ruleForm,"label-width":"90px","label-position":"left",rules:t.rules}},[n("el-form-item",{attrs:{label:"标题",prop:"title"}},[n("el-input",{on:{input:t.titleChange},model:{value:t.ruleForm.title,callback:function(e){t.$set(t.ruleForm,"title",e)},expression:"ruleForm.title"}})],1),n("el-form-item",{attrs:{label:"素材分类",prop:"category"}},[n("el-cascader",{attrs:{options:t.seleteList,"show-all-levels":!1,props:t.props},on:{change:t.changeSelect},model:{value:t.ruleForm.category,callback:function(e){t.$set(t.ruleForm,"category",e)},expression:"ruleForm.category"}})],1)],1)],1)},u=[],c=n(53521),h={name:"Set",data:function(){return{select:{accesstoken:"0b62a25619912a732160863854a9f19d",classname:"saletool.sharematerial.sharematerial",method:"select",content:{parentid:0}},props:{value:"sat_sharematerial_classid",label:"classname"},ruleForm:{title:"",category:""},rules:{title:[{required:!0,message:"请输入标题",trigger:"blur"}],category:[{required:!0,message:"请选择分类",trigger:"blur"}]},seleteList:[]}},components:{CategorySelect:c.Z},computed:{},watch:{},created:function(){this.getSeleteData()},methods:{changeSelect:function(t){this.$parent.cacheInfo.content.sat_sharematerial_classid=t[t.length-1]},titleChange:function(t){this.$parent.cacheInfo.content.title=t},getSeleteData:function(){var t=this;this.$api.requested(this.select).then((function(e){t.seleteList=e.data}))}}},f=h,p=n(1001),d=(0,p.Z)(f,l,u,!1,null,"95b846fc",null),g=d.exports,v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"file-list"},[n("div",{staticClass:"header1"},[n("p",{staticClass:"title"},[t._v("附件列表")]),n("div",[t._t("upload")],2)]),n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.attinfos,border:"","header-cell-style":{background:"#EEEEEE"}}},[n("el-table-column",{attrs:{prop:"document",label:"文件名称",width:"500"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"editor-handle"},[n("span",[t._v(t._s(e.row.document.substr(0,e.row.document.indexOf("."))))])])]}}])}),n("el-table-column",{attrs:{prop:"createdate",label:"上传时间",width:"250"}}),n("el-table-column",{attrs:{prop:"contentlength",label:"文件大小"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s((e.row.contentlength/1024/1024).toFixed(2))+"M")])]}}])}),n("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"handle"},[t._t("download",null,{data:e.row}),t._t("delete",null,{data:e.row})],2)]}}],null,!0)})],1)],1)},m=[],y={name:"FileList",data:function(){return{tableData:[],isShow:!1,text:""}},props:["attinfos"],computed:{},watch:{},filters:{},created:function(){},methods:{inputFocus:function(){this.isShow=!1,this.$emit("titleUpdata",this.text)}}},b=y,x=(0,p.Z)(b,v,m,!1,null,"5d56081e",null),w=x.exports,C=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"file-text"},[n("p",{staticClass:"title"},[t._v("素材文本")]),t._t("editor")],2)},S=[],A={name:"FileText",data:function(){return{}},computed:{},components:{},watch:{},methods:{}},E=A,k=(0,p.Z)(E,C,S,!1,null,"1c65a142",null),D=k.exports,F=n(50123),M=n(78878),O=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-button",{attrs:{type:"",size:"small"},on:{click:function(e){return t.itemClick()}}},[r("img",{attrs:{src:n(46901),alt:""}}),t._v(" 重置 ")])},T=[],B={name:"reset",data:function(){return{}},computed:{},watch:{},methods:{itemClick:function(){this.$emit("reset")}}},_=B,I=(0,p.Z)(_,O,T,!1,null,"c27193aa",null),P=I.exports,L=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticStyle:{color:"#999999",cursor:"pointer"},on:{click:function(e){return t.deleteFile()}}},[t._v("删除")])},R=[],N=(n(40561),n(57327),n(41539),n(575)),j={name:"",data:function(){return{}},computed:{},watch:{},props:["data"],methods:{deleteFile:function(){var t=this;N.Z.removeFileList([this.data]).then((function(e){1==e?(t.$notify({title:"提示",message:"删除成功",type:"success"}),t.$parent.$parent.$parent.$parent.uploadCacheData.attinfos.splice(t.$parent.$parent.$parent.$parent.uploadCacheData.attinfos.filter((function(e){return t.data==e})),1)):t.$notify({title:"提示",message:"删除失败",type:"error"})}))}}},z=j,U=(0,p.Z)(z,L,R,!1,null,"609f272d",null),V=U.exports,H=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticStyle:{color:"#3874F6","margin-right":"20px",cursor:"pointer"},on:{click:function(e){return t.downLoad()}}},[t._v("下载")])},$=[],G={name:"download",data:function(){return{}},props:["data"],computed:{},watch:{},methods:{downLoad:function(){window.open(this.data.url)}}},W=G,q=(0,p.Z)(W,H,$,!1,null,"63a7c556",null),X=q.exports,Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{border:"1px solid #ccc"}},[n("Toolbar",{staticStyle:{"border-bottom":"1px solid #ccc"},attrs:{editor:t.editor,defaultConfig:t.toolbarConfig,mode:t.mode}}),n("Editor",{staticStyle:{height:"500px","overflow-y":"hidden"},attrs:{defaultConfig:t.editorConfig,mode:t.mode},on:{onCreated:t.onCreated},model:{value:t.html,callback:function(e){t.html=e},expression:"html"}})],1)},Y=[],Q=(n(60514),n(68309),n(20144));if("undefined"===typeof n.g){if("ActiveXObject"in window){var K="抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器";K+="\n Sorry, wangEditor V5+ versions do not support IE browser.",console.error(K)}J(),tt()}else n.g&&(null===(r=n.g.navigator)||void 0===r?void 0:r.userAgent.match("QQBrowser"))&&(J(),tt());function J(){"undefined"===typeof globalThis&&(window.globalThis=window)}function tt(){"undefined"===typeof AggregateError&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}if("object"===typeof n.g){var et=Object.getOwnPropertyDescriptor(n.g,"window");n.g.window&&!et.set||(n.g.window=n.g,n.g.requestAnimationFrame=function(){},n.g.navigator={userAgent:""},n.g.location={hostname:"0.0.0.0",port:0,protocol:"http:"},n.g.btoa=function(){},n.g.crypto={getRandomValues:function(t){return nodeCrypto.randomFillSync(t)}})}
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function nt(t){return"[object Object]"===Object.prototype.toString.call(t)}function rt(t){var e,n;return!1!==nt(t)&&(e=t.constructor,void 0===e||(n=e.prototype,!1!==nt(n)&&!1!==n.hasOwnProperty("isPrototypeOf")))}function it(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=qt[t],o=i?"function"==typeof i?i.apply(null,n):i:"unknown error nr: "+t;throw Error("[Immer] "+o)}function ot(t){return!!t&&!!t[Wt]}function at(t){return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Xt}(t)||Array.isArray(t)||!!t[Gt]||!!t.constructor[Gt]||pt(t)||dt(t))}function st(t,e,n){void 0===n&&(n=!1),0===lt(t)?(n?Object.keys:Zt)(t).forEach((function(r){n&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(n,r){return e(r,n,t)}))}function lt(t){var e=t[Wt];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:pt(t)?2:dt(t)?3:0}function ut(t,e){return 2===lt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ct(t,e){return 2===lt(t)?t.get(e):t[e]}function ht(t,e,n){var r=lt(t);2===r?t.set(e,n):3===r?(t.delete(e),t.add(n)):t[e]=n}function ft(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function pt(t){return Ut&&t instanceof Map}function dt(t){return Vt&&t instanceof Set}function gt(t){return t.o||t.t}function vt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Yt(t);delete e[Wt];for(var n=Zt(e),r=0;r<n.length;r++){var i=n[r],o=e[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function mt(t,e){return void 0===e&&(e=!1),bt(t)||ot(t)||!at(t)||(lt(t)>1&&(t.set=t.add=t.clear=t.delete=yt),Object.freeze(t),e&&st(t,(function(t,e){return mt(e,!0)}),!0)),t}function yt(){it(2)}function bt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function xt(t){var e=Qt[t];return e||it(18,t),e}function wt(){return jt||it(0),jt}function Ct(t,e){e&&(xt("Patches"),t.u=[],t.s=[],t.v=e)}function St(t){At(t),t.p.forEach(kt),t.p=null}function At(t){t===jt&&(jt=t.l)}function Et(t){return jt={p:[],l:jt,h:t,m:!0,_:0}}function kt(t){var e=t[Wt];0===e.i||1===e.i?e.j():e.O=!0}function Dt(t,e){e._=e.p.length;var n=e.p[0],r=void 0!==t&&t!==n;return e.h.g||xt("ES5").S(e,t,r),r?(n[Wt].P&&(St(e),it(4)),at(t)&&(t=Ft(e,t),e.l||Ot(e,t)),e.u&&xt("Patches").M(n[Wt],t,e.u,e.s)):t=Ft(e,n,[]),St(e),e.u&&e.v(e.u,e.s),t!==$t?t:void 0}function Ft(t,e,n){if(bt(e))return e;var r=e[Wt];if(!r)return st(e,(function(i,o){return Mt(t,r,e,i,o,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return Ot(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=vt(r.k):r.o;st(3===r.i?new Set(i):i,(function(e,o){return Mt(t,r,i,e,o,n)})),Ot(t,i,!1),n&&t.u&&xt("Patches").R(r,n,t.u,t.s)}return r.o}function Mt(t,e,n,r,i,o){if(i===n&&it(5),ot(i)){var a=Ft(t,i,o&&e&&3!==e.i&&!ut(e.D,r)?o.concat(r):void 0);if(ht(n,r,a),!ot(a))return;t.m=!1}if(at(i)&&!bt(i)){if(!t.h.F&&t._<1)return;Ft(t,i),e&&e.A.l||Ot(t,i)}}function Ot(t,e,n){void 0===n&&(n=!1),t.h.F&&t.m&&mt(e,n)}function Tt(t,e){var n=t[Wt];return(n?gt(n):t)[e]}function Bt(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function _t(t){t.P||(t.P=!0,t.l&&_t(t.l))}function It(t){t.o||(t.o=vt(t.t))}function Pt(t,e,n){var r=pt(e)?xt("MapSet").N(e,n):dt(e)?xt("MapSet").T(e,n):t.g?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:wt(),P:!1,I:!1,D:{},l:e,t:t,k:null,o:null,j:null,C:!1},i=r,o=Kt;n&&(i=[r],o=Jt);var a=Proxy.revocable(i,o),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(e,n):xt("ES5").J(e,n);return(n?n.A:wt()).p.push(r),r}function Lt(t){return ot(t)||it(22,t),function t(e){if(!at(e))return e;var n,r=e[Wt],i=lt(e);if(r){if(!r.P&&(r.i<4||!xt("ES5").K(r)))return r.t;r.I=!0,n=Rt(e,i),r.I=!1}else n=Rt(e,i);return st(n,(function(e,i){r&&ct(r.t,e)===i||ht(n,e,t(i))})),3===i?new Set(n):n}(t)}function Rt(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return vt(t)}var Nt,jt,zt="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ut="undefined"!=typeof Map,Vt="undefined"!=typeof Set,Ht="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,$t=zt?Symbol.for("immer-nothing"):((Nt={})["immer-nothing"]=!0,Nt),Gt=zt?Symbol.for("immer-draftable"):"__$immer_draftable",Wt=zt?Symbol.for("immer-state"):"__$immer_state",qt={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(t){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+t},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(t){return"Cannot apply patch, path doesn't resolve: "+t},16:'Sets cannot have "replace" patches.',17:function(t){return"Unsupported patch operation: "+t},18:function(t){return"The plugin for '"+t+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+t+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(t){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+t+"'"},22:function(t){return"'current' expects a draft, got: "+t},23:function(t){return"'original' expects a draft, got: "+t},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Xt=""+Object.prototype.constructor,Zt="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Yt=Object.getOwnPropertyDescriptors||function(t){var e={};return Zt(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},Qt={},Kt={get:function(t,e){if(e===Wt)return t;var n=gt(t);if(!ut(n,e))return function(t,e,n){var r,i=Bt(e,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,n,e);var r=n[e];return t.I||!at(r)?r:r===Tt(t.t,e)?(It(t),t.o[e]=Pt(t.A.h,r,t)):r},has:function(t,e){return e in gt(t)},ownKeys:function(t){return Reflect.ownKeys(gt(t))},set:function(t,e,n){var r=Bt(gt(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var i=Tt(gt(t),e),o=null==i?void 0:i[Wt];if(o&&o.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(ft(n,i)&&(void 0!==n||ut(t.t,e)))return!0;It(t),_t(t)}return t.o[e]===n&&"number"!=typeof n&&(void 0!==n||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==Tt(t.t,e)||e in t.t?(t.D[e]=!1,It(t),_t(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=gt(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){it(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){it(12)}},Jt={};st(Kt,(function(t,e){Jt[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Jt.deleteProperty=function(t,e){return isNaN(parseInt(e))&&it(13),Kt.deleteProperty.call(this,t[0],e)},Jt.set=function(t,e,n){return"length"!==e&&isNaN(parseInt(e))&&it(14),Kt.set.call(this,t[0],e,n,t[0])};var te=function(){function t(t){var e=this;this.g=Ht,this.F=!0,this.produce=function(t,n,r){if("function"==typeof t&&"function"!=typeof n){var i=n;n=t;var o=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return o.produce(t,(function(t){var r;return(r=n).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof n&&it(6),void 0!==r&&"function"!=typeof r&&it(7),at(t)){var s=Et(e),l=Pt(e,t,void 0),u=!0;try{a=n(l),u=!1}finally{u?St(s):At(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Ct(s,r),Dt(t,s)}),(function(t){throw St(s),t})):(Ct(s,r),Dt(a,s))}if(!t||"object"!=typeof t){if((a=n(t))===$t)return;return void 0===a&&(a=t),e.F&&mt(a,!0),a}it(21,t)},this.produceWithPatches=function(t,n){return"function"==typeof t?function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.produceWithPatches(n,(function(e){return t.apply(void 0,[e].concat(i))}))}:[e.produce(t,n,(function(t,e){r=t,i=e})),r,i];var r,i},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){at(t)||it(8),ot(t)&&(t=Lt(t));var e=Et(this),n=Pt(this,t,void 0);return n[Wt].C=!0,At(e),n},e.finishDraft=function(t,e){var n=t&&t[Wt];n&&n.C||it(9),n.I&&it(10);var r=n.A;return Ct(r,e),Dt(void 0,r)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!Ht&&it(20),this.g=t},e.applyPatches=function(t,e){var n;for(n=e.length-1;n>=0;n--){var r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var i=xt("Patches").$;return ot(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),ee=new te,ne=ee.produce;ee.produceWithPatches.bind(ee),ee.setAutoFreeze.bind(ee),ee.setUseProxies.bind(ee),ee.applyPatches.bind(ee);var re=ee.createDraft.bind(ee),ie=ee.finishDraft.bind(ee);function oe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ae=new WeakMap,se=new WeakMap,le=new WeakMap,ue=new WeakMap,ce=new WeakMap,he=new WeakMap;function fe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fe(Object(n),!0).forEach((function(e){oe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var de=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var n of Je.pathRefs(t))cn.transform(n,e);for(var r of Je.pointRefs(t))dn.transform(r,e);for(var i of Je.rangeRefs(t))bn.transform(i,e);var o=new Set,a=[],s=t=>{if(t){var e=t.join(",");o.has(e)||(o.add(e),a.push(t))}},l=ae.get(t)||[],u=ge(e);for(var c of l){var h=un.transform(c,e);s(h)}for(var f of u)s(f);ae.set(t,a),$n.transform(t,e),t.operations.push(e),Je.normalize(t),"set_selection"===e.type&&(t.marks=null),se.get(t)||(se.set(t,!0),Promise.resolve().then((()=>{se.set(t,!1),t.onChange(),t.operations=[]})))},addMark:(e,n)=>{var{selection:r}=t;if(r)if(yn.isExpanded(r))$n.setNodes(t,{[e]:n},{match:En.isText,split:!0});else{var i=pe(pe({},Je.marks(t)||{}),{},{[e]:n});t.marks=i,se.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:n}=t;n&&yn.isCollapsed(n)&&$n.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:n}=t;n&&yn.isCollapsed(n)&&$n.delete(t,{unit:e})},deleteFragment:e=>{var{selection:n}=t;n&&yn.isExpanded(n)&&$n.delete(t,{reverse:"backward"===e})},getFragment:()=>{var{selection:e}=t;return e?on.fragment(t,e):[]},insertBreak:()=>{$n.splitNodes(t,{always:!0})},insertFragment:e=>{$n.insertFragment(t,e)},insertNode:e=>{$n.insertNodes(t,e)},insertText:e=>{var{selection:n,marks:r}=t;if(n){if(r){var i=pe({text:e},r);$n.insertNodes(t,i)}else $n.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[n,r]=e;if(!En.isText(n))if(qe.isElement(n)&&0===n.children.length){var i={text:""};$n.insertNodes(t,i,{at:r.concat(0),voids:!0})}else for(var o=!Je.isEditor(n)&&(qe.isElement(n)&&(t.isInline(n)||0===n.children.length||En.isText(n.children[0])||t.isInline(n.children[0]))),a=0,s=0;s<n.children.length;s++,a++){var l=on.get(t,r);if(!En.isText(l)){var u=n.children[s],c=l.children[a-1],h=s===n.children.length-1,f=En.isText(u)||qe.isElement(u)&&t.isInline(u);if(f!==o)$n.removeNodes(t,{at:r.concat(a),voids:!0}),a--;else if(qe.isElement(u)){if(t.isInline(u))if(null!=c&&En.isText(c)){if(h){var p={text:""};$n.insertNodes(t,p,{at:r.concat(a+1),voids:!0}),a++}}else{var d={text:""};$n.insertNodes(t,d,{at:r.concat(a),voids:!0}),a++}}else null!=c&&En.isText(c)&&(En.equals(u,c,{loose:!0})?($n.mergeNodes(t,{at:r.concat(a),voids:!0}),a--):""===c.text?($n.removeNodes(t,{at:r.concat(a-1),voids:!0}),a--):""===u.text&&($n.removeNodes(t,{at:r.concat(a),voids:!0}),a--))}}},removeMark:e=>{var{selection:n}=t;if(n)if(yn.isExpanded(n))$n.unsetNodes(t,e,{match:En.isText,split:!0});else{var r=pe({},Je.marks(t)||{});delete r[e],t.marks=r,se.get(t)||t.onChange()}}};return t},ge=t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return un.levels(e);case"insert_node":var{node:n,path:r}=t,i=un.levels(r),o=En.isText(n)?[]:Array.from(on.nodes(n),(t=>{var[,e]=t;return r.concat(e)}));return[...i,...o];case"merge_node":var{path:a}=t,s=un.ancestors(a),l=un.previous(a);return[...s,l];case"move_node":var{path:u,newPath:c}=t;if(un.equals(u,c))return[];var h=[],f=[];for(var p of un.ancestors(u)){var d=un.transform(p,t);h.push(d)}for(var g of un.ancestors(c)){var v=un.transform(g,t);f.push(v)}var m=f[f.length-1],y=c[c.length-1],b=m.concat(y);return[...h,...f,b];case"remove_node":var{path:x}=t,w=un.ancestors(x);return[...w];case"split_node":var{path:C}=t,S=un.levels(C),A=un.next(C);return[...S,A];default:return[]}};function ve(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function me(t,e){if(null==t)return{};var n,r,i=ve(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var ye,be=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!e,r=e?ke(t):t,i=ye.None,o=ye.None,a=0,s=null,l=null;for(var u of r){var c=u.codePointAt(0);if(!c)break;var h=Ne(u,c);if([i,o]=n?[o,h]:[h,i],je(i,ye.ZWJ)&&je(o,ye.ExtPict)&&(s=He(n?t.substring(0,a):t.substring(0,t.length-a)),!s))break;if(je(i,ye.RI)&&je(o,ye.RI)&&(l=null!==l?!l:!!n||Ge(t.substring(0,t.length-a)),!l))break;if(i!==ye.None&&o!==ye.None&&Ue(i,o))break;a+=u.length}return a||1},xe=/\s/,we=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Ce=/['\u2018\u2019]/,Se=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;while(t.length>0){var i=be(t,e),[o,a]=Ae(t,i,e);if(Ee(o,a,e))r=!0,n+=i;else{if(r)break;n+=i}t=a}return n},Ae=(t,e,n)=>{if(n){var r=t.length-e;return[t.slice(r,t.length),t.slice(0,r)]}return[t.slice(0,e),t.slice(e)]},Ee=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(xe.test(e))return!1;if(Ce.test(e)){var i=be(n,r),[o,a]=Ae(n,i,r);if(t(o,a,r))return!0}return!we.test(e)},ke=function*(t){for(var e=t.length-1,n=0;n<t.length;n++){var r=t.charAt(e-n);if(Fe(r.charCodeAt(0))){var i=t.charAt(e-n-1);if(De(i.charCodeAt(0))){yield i+r,n++;continue}}yield r}},De=t=>t>=55296&&t<=56319,Fe=t=>t>=56320&&t<=57343;(function(t){t[t["None"]=0]="None",t[t["Extend"]=1]="Extend",t[t["ZWJ"]=2]="ZWJ",t[t["RI"]=4]="RI",t[t["Prepend"]=8]="Prepend",t[t["SpacingMark"]=16]="SpacingMark",t[t["L"]=32]="L",t[t["V"]=64]="V",t[t["T"]=128]="T",t[t["LV"]=256]="LV",t[t["LVT"]=512]="LVT",t[t["ExtPict"]=1024]="ExtPict",t[t["Any"]=2048]="Any"})(ye||(ye={}));var Me=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,Oe=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Te=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,Be=/^[\u1100-\u115F\uA960-\uA97C]$/,_e=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Ie=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Pe=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Le=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,Re=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Ne=(t,e)=>{var n=ye.Any;return-1!==t.search(Me)&&(n|=ye.Extend),8205===e&&(n|=ye.ZWJ),e>=127462&&e<=127487&&(n|=ye.RI),-1!==t.search(Oe)&&(n|=ye.Prepend),-1!==t.search(Te)&&(n|=ye.SpacingMark),-1!==t.search(Be)&&(n|=ye.L),-1!==t.search(_e)&&(n|=ye.V),-1!==t.search(Ie)&&(n|=ye.T),-1!==t.search(Pe)&&(n|=ye.LV),-1!==t.search(Le)&&(n|=ye.LVT),-1!==t.search(Re)&&(n|=ye.ExtPict),n};function je(t,e){return 0!==(t&e)}var ze=[[ye.L,ye.L|ye.V|ye.LV|ye.LVT],[ye.LV|ye.V,ye.V|ye.T],[ye.LVT|ye.T,ye.T],[ye.Any,ye.Extend|ye.ZWJ],[ye.Any,ye.SpacingMark],[ye.Prepend,ye.Any],[ye.ZWJ,ye.ExtPict],[ye.RI,ye.RI]];function Ue(t,e){return-1===ze.findIndex((n=>je(t,n[0])&&je(e,n[1])))}var Ve=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,He=t=>-1!==t.search(Ve),$e=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Ge=t=>{var e=t.match($e);if(null===e)return!1;var n=e[0].length/2;return n%2===1},We=t=>rt(t)&&on.isNodeList(t.children)&&!Je.isEditor(t),qe={isAncestor(t){return rt(t)&&on.isNodeList(t.children)},isElement:We,isElementList(t){return Array.isArray(t)&&t.every((t=>qe.isElement(t)))},isElementProps(t){return void 0!==t.children},isElementType:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return We(t)&&t[n]===e},matches(t,e){for(var n in e)if("children"!==n&&t[n]!==e[n])return!1;return!0}},Xe=["text"],Ze=["text"];function Ye(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ye(Object(n),!0).forEach((function(e){oe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Ke=new WeakMap,Je={above(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:i=t.selection,match:o}=e;if(i){var a=Je.path(t,i),s="lowest"===r;for(var[l,u]of Je.levels(t,{at:a,voids:n,match:o,reverse:s}))if(!En.isText(l)&&!un.equals(a,u))return[l,u]}},addMark(t,e,n){t.addMark(e,n)},after(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Je.point(t,e,{edge:"end"}),o=Je.end(t,[]),a={anchor:i,focus:o},{distance:s=1}=r,l=0;for(var u of Je.positions(t,Qe(Qe({},r),{},{at:a}))){if(l>s)break;0!==l&&(n=u),l++}return n},before(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Je.start(t,[]),o=Je.point(t,e,{edge:"start"}),a={anchor:i,focus:o},{distance:s=1}=r,l=0;for(var u of Je.positions(t,Qe(Qe({},r),{},{at:a,reverse:!0}))){if(l>s)break;0!==l&&(n=u),l++}return n},deleteBackward(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=e;t.deleteFragment(n)},edges(t,e){return[Je.start(t,e),Je.end(t,e)]},end(t,e){return Je.point(t,e,{edge:"end"})},first(t,e){var n=Je.path(t,e,{edge:"start"});return Je.node(t,n)},fragment(t,e){var n=Je.range(t,e),r=on.fragment(t,n);return r},hasBlocks(t,e){return e.children.some((e=>Je.isBlock(t,e)))},hasInlines(t,e){return e.children.some((e=>En.isText(e)||Je.isInline(t,e)))},hasTexts(t,e){return e.children.every((t=>En.isText(t)))},insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock(t,e){return qe.isElement(e)&&!t.isInline(e)},isEditor(t){if(!rt(t))return!1;var e=Ke.get(t);if(void 0!==e)return e;var n="function"===typeof t.addMark&&"function"===typeof t.apply&&"function"===typeof t.deleteBackward&&"function"===typeof t.deleteForward&&"function"===typeof t.deleteFragment&&"function"===typeof t.insertBreak&&"function"===typeof t.insertFragment&&"function"===typeof t.insertNode&&"function"===typeof t.insertText&&"function"===typeof t.isInline&&"function"===typeof t.isVoid&&"function"===typeof t.normalizeNode&&"function"===typeof t.onChange&&"function"===typeof t.removeMark&&(null===t.marks||rt(t.marks))&&(null===t.selection||yn.isRange(t.selection))&&on.isNodeList(t.children)&&ln.isOperationList(t.operations);return Ke.set(t,n),n},isEnd(t,e,n){var r=Je.end(t,n);return pn.equals(e,r)},isEdge(t,e,n){return Je.isStart(t,e,n)||Je.isEnd(t,e,n)},isEmpty(t,e){var{children:n}=e,[r]=n;return 0===n.length||1===n.length&&En.isText(r)&&""===r.text&&!t.isVoid(e)},isInline(t,e){return qe.isElement(e)&&t.isInline(e)},isNormalizing(t){var e=le.get(t);return void 0===e||e},isStart(t,e,n){if(0!==e.offset)return!1;var r=Je.start(t,n);return pn.equals(e,r)},isVoid(t,e){return qe.isElement(e)&&t.isVoid(e)},last(t,e){var n=Je.path(t,e,{edge:"end"});return Je.node(t,n)},leaf(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Je.path(t,e,n),i=on.leaf(t,r);return[i,r]},*levels(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=t.selection,reverse:r=!1,voids:i=!1}=e,{match:o}=e;if(null==o&&(o=()=>!0),n){var a=[],s=Je.path(t,n);for(var[l,u]of on.levels(t,s))if(o(l,u)&&(a.push([l,u]),!i&&Je.isVoid(t,l)))break;r&&a.reverse(),yield*a}},marks(t){var{marks:e,selection:n}=t;if(!n)return null;if(e)return e;if(yn.isExpanded(n)){var[r]=Je.nodes(t,{match:En.isText});if(r){var[i]=r,o=me(i,Xe);return o}return{}}var{anchor:a}=n,{path:s}=a,[l]=Je.leaf(t,s);if(0===a.offset){var u=Je.previous(t,{at:s,match:En.isText}),c=Je.above(t,{match:e=>Je.isBlock(t,e)});if(u&&c){var[h,f]=u,[,p]=c;un.isAncestor(p,f)&&(l=h)}}var d=me(l,Ze);return d},next(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:i,at:o=t.selection}=e;if(o){var a=Je.after(t,o,{voids:r});if(a){var[,s]=Je.last(t,[]),l=[a.path,s];if(un.isPath(o)&&0===o.length)throw new Error("Cannot get the next node from the root node!");if(null==i)if(un.isPath(o)){var[u]=Je.parent(t,o);i=t=>u.children.includes(t)}else i=()=>!0;var[c]=Je.nodes(t,{at:l,match:i,mode:n,voids:r});return c}}},node(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Je.path(t,e,n),i=on.get(t,r);return[i,r]},*nodes(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=t.selection,mode:r="all",universal:i=!1,reverse:o=!1,voids:a=!1}=e,{match:s}=e;if(s||(s=()=>!0),n){var l,u;if(tn.isSpan(n))l=n[0],u=n[1];else{var c=Je.path(t,n,{edge:"start"}),h=Je.path(t,n,{edge:"end"});l=o?h:c,u=o?c:h}var f,p=on.nodes(t,{reverse:o,from:l,to:u,pass:e=>{var[n]=e;return!a&&Je.isVoid(t,n)}}),d=[];for(var[g,v]of p){var m=f&&0===un.compare(v,f[1]);if("highest"!==r||!m)if(s(g,v))if("lowest"===r&&m)f=[g,v];else{var y="lowest"===r?f:[g,v];y&&(i?d.push(y):yield y),f=[g,v]}else if(i&&!m&&En.isText(g))return}"lowest"===r&&f&&(i?d.push(f):yield f),i&&(yield*d)}},normalize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=e,r=t=>ae.get(t)||[];if(Je.isNormalizing(t)){if(n){var i=Array.from(on.nodes(t),(t=>{var[,e]=t;return e}));ae.set(t,i)}0!==r(t).length&&Je.withoutNormalizing(t,(()=>{for(var e of r(t))if(on.has(t,e)){var n=Je.node(t,e),[i,o]=n;qe.isElement(i)&&0===i.children.length&&t.normalizeNode(n)}var a=42*r(t).length,s=0;while(0!==r(t).length){if(s>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var l=r(t).pop();if(on.has(t,l)){var u=Je.node(t,l);t.normalizeNode(u)}s++}}))}},parent(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Je.path(t,e,n),i=un.parent(r),o=Je.node(t,i);return o},path(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:i}=n;if(un.isPath(e))if("start"===i){var[,o]=on.first(t,e);e=o}else if("end"===i){var[,a]=on.last(t,e);e=a}return yn.isRange(e)&&(e="start"===i?yn.start(e):"end"===i?yn.end(e):un.common(e.anchor.path,e.focus.path)),pn.isPoint(e)&&(e=e.path),null!=r&&(e=e.slice(0,r)),e},hasPath(t,e){return on.has(t,e)},pathRef(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:e,affinity:r,unref(){var{current:e}=i,n=Je.pathRefs(t);return n.delete(i),i.current=null,e}},o=Je.pathRefs(t);return o.add(i),i},pathRefs(t){var e=ue.get(t);return e||(e=new Set,ue.set(t,e)),e},point(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(un.isPath(e)){var i;if("end"===r){var[,o]=on.last(t,e);i=o}else{var[,a]=on.first(t,e);i=a}var s=on.get(t,i);if(!En.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:i,offset:"end"===r?s.text.length:0}}if(yn.isRange(e)){var[l,u]=yn.edges(e);return"start"===r?l:u}return e},pointRef(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:e,affinity:r,unref(){var{current:e}=i,n=Je.pointRefs(t);return n.delete(i),i.current=null,e}},o=Je.pointRefs(t);return o.add(i),i},pointRefs(t){var e=ce.get(t);return e||(e=new Set,ce.set(t,e)),e},*positions(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=t.selection,unit:r="offset",reverse:i=!1,voids:o=!1}=e;if(n){var a=Je.range(t,n),[s,l]=yn.edges(a),u=i?l:s,c=!1,h="",f=0,p=0,d=0;for(var[g,v]of Je.nodes(t,{at:n,reverse:i,voids:o})){if(qe.isElement(g)){if(!o&&t.isVoid(g)){yield Je.start(t,v);continue}if(t.isInline(g))continue;if(Je.hasInlines(t,g)){var m=un.isAncestor(v,l.path)?l:Je.end(t,v),y=un.isAncestor(v,s.path)?s:Je.start(t,v);h=Je.string(t,{anchor:y,focus:m},{voids:o}),c=!0}}if(En.isText(g)){var b=un.equals(v,u.path);b?(p=i?u.offset:g.text.length-u.offset,d=u.offset):(p=g.text.length,d=i?p:0),(b||c||"offset"===r)&&(yield{path:v,offset:d},c=!1);while(1){if(0===f){if(""===h)break;f=x(h,r,i),h=Ae(h,f,i)[1]}if(d=i?d-f:d+f,p-=f,p<0){f=-p;break}f=0,yield{path:v,offset:d}}}}}function x(t,e,n){return"character"===e?be(t,n):"word"===e?Se(t,n):"line"===e||"block"===e?t.length:1}},previous(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:i,at:o=t.selection}=e;if(o){var a=Je.before(t,o,{voids:r});if(a){var[,s]=Je.first(t,[]),l=[a.path,s];if(un.isPath(o)&&0===o.length)throw new Error("Cannot get the previous node from the root node!");if(null==i)if(un.isPath(o)){var[u]=Je.parent(t,o);i=t=>u.children.includes(t)}else i=()=>!0;var[c]=Je.nodes(t,{reverse:!0,at:l,match:i,mode:n,voids:r});return c}}},range(t,e,n){if(yn.isRange(e)&&!n)return e;var r=Je.start(t,e),i=Je.end(t,n||e);return{anchor:r,focus:i}},rangeRef(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:e,affinity:r,unref(){var{current:e}=i,n=Je.rangeRefs(t);return n.delete(i),i.current=null,e}},o=Je.rangeRefs(t);return o.add(i),i},rangeRefs(t){var e=he.get(t);return e||(e=new Set,he.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){le.set(t,e)},start(t,e){return Je.point(t,e,{edge:"start"})},string(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,i=Je.range(t,e),[o,a]=yn.edges(i),s="";for(var[l,u]of Je.nodes(t,{at:i,match:En.isText,voids:r})){var c=l.text;un.equals(u,a.path)&&(c=c.slice(0,a.offset)),un.equals(u,o.path)&&(c=c.slice(o.offset)),s+=c}return s},unhangRange(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[i,o]=yn.edges(e);if(0!==i.offset||0!==o.offset||yn.isCollapsed(e))return e;var a=Je.above(t,{at:o,match:e=>Je.isBlock(t,e)}),s=a?a[1]:[],l=Je.start(t,[]),u={anchor:l,focus:o},c=!0;for(var[h,f]of Je.nodes(t,{at:u,match:En.isText,reverse:!0,voids:r}))if(c)c=!1;else if(""!==h.text||un.isBefore(f,s)){o={path:f,offset:h.text.length};break}return{anchor:i,focus:o}},void(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Je.above(t,Qe(Qe({},e),{},{match:e=>Je.isVoid(t,e)}))},withoutNormalizing(t,e){var n=Je.isNormalizing(t);Je.setNormalizing(t,!1);try{e()}finally{Je.setNormalizing(t,n)}Je.normalize(t)}},tn={isSpan(t){return Array.isArray(t)&&2===t.length&&t.every(un.isPath)}},en=["children"],nn=["text"],rn=new WeakMap,on={ancestor(t,e){var n=on.get(t,e);if(En.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of un.ancestors(e,n)){var i=on.ancestor(t,r),o=[i,r];yield o}},child(t,e){if(En.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var n=t.children[e];if(null==n)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return n},*children(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,i=on.ancestor(t,e),{children:o}=i,a=r?o.length-1:0;while(r?a>=0:a<o.length){var s=on.child(i,a),l=e.concat(a);yield[s,l],a=r?a-1:a+1}},common(t,e,n){var r=un.common(e,n),i=on.get(t,r);return[i,r]},descendant(t,e){var n=on.get(t,e);if(Je.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of on.nodes(t,e))0!==r.length&&(yield[n,r])},*elements(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of on.nodes(t,e))qe.isElement(n)&&(yield[n,r])},extractProps(t){if(qe.isAncestor(t)){var e=me(t,en);return e}e=me(t,nn);return e},first(t,e){var n=e.slice(),r=on.get(t,n);while(r){if(En.isText(r)||0===r.children.length)break;r=r.children[0],n.push(0)}return[r,n]},fragment(t,e){if(En.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var n=ne({children:t.children},(t=>{var[n,r]=yn.edges(e),i=on.nodes(t,{reverse:!0,pass:t=>{var[,n]=t;return!yn.includes(e,n)}});for(var[,o]of i){if(!yn.includes(e,o)){var a=on.parent(t,o),s=o[o.length-1];a.children.splice(s,1)}if(un.equals(o,r.path)){var l=on.leaf(t,o);l.text=l.text.slice(0,r.offset)}if(un.equals(o,n.path)){var u=on.leaf(t,o);u.text=u.text.slice(n.offset)}}Je.isEditor(t)&&(t.selection=null)}));return n.children},get(t,e){for(var n=t,r=0;r<e.length;r++){var i=e[r];if(En.isText(n)||!n.children[i])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(JSON.stringify(t)));n=n.children[i]}return n},has(t,e){for(var n=t,r=0;r<e.length;r++){var i=e[r];if(En.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode(t){return En.isText(t)||qe.isElement(t)||Je.isEditor(t)},isNodeList(t){if(!Array.isArray(t))return!1;var e=rn.get(t);if(void 0!==e)return e;var n=t.every((t=>on.isNode(t)));return rn.set(t,n),n},last(t,e){var n=e.slice(),r=on.get(t,n);while(r){if(En.isText(r)||0===r.children.length)break;var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(t,e){var n=on.get(t,e);if(!En.isText(n))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of un.levels(e,n)){var i=on.get(t,r);yield[i,r]}},matches(t,e){return qe.isElement(t)&&qe.isElementProps(e)&&qe.matches(t,e)||En.isText(t)&&En.isTextProps(e)&&En.matches(t,e)},*nodes(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=e,{from:i=[],to:o}=e,a=new Set,s=[],l=t;while(1){if(o&&(r?un.isBefore(s,o):un.isAfter(s,o)))break;if(a.has(l)||(yield[l,s]),a.has(l)||En.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!r){var u=un.next(s);if(on.has(t,u)){s=u,l=on.get(t,s);continue}}if(r&&0!==s[s.length-1]){var c=un.previous(s);s=c,l=on.get(t,s)}else s=un.parent(s),l=on.get(t,s),a.add(l)}else{a.add(l);var h=r?l.children.length-1:0;un.isAncestor(s,i)&&(h=i[s.length]),s=s.concat(h),l=on.get(t,s)}}},parent(t,e){var n=un.parent(e),r=on.get(t,n);if(En.isText(r))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string(t){return En.isText(t)?t.text:t.children.map(on.string).join("")},*texts(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of on.nodes(t,e))En.isText(n)&&(yield[n,r])}};function an(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function sn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?an(Object(n),!0).forEach((function(e){oe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ln={isNodeOperation(t){return ln.isOperation(t)&&t.type.endsWith("_node")},isOperation(t){if(!rt(t))return!1;switch(t.type){case"insert_node":return un.isPath(t.path)&&on.isNode(t.node);case"insert_text":return"number"===typeof t.offset&&"string"===typeof t.text&&un.isPath(t.path);case"merge_node":return"number"===typeof t.position&&un.isPath(t.path)&&rt(t.properties);case"move_node":return un.isPath(t.path)&&un.isPath(t.newPath);case"remove_node":return un.isPath(t.path)&&on.isNode(t.node);case"remove_text":return"number"===typeof t.offset&&"string"===typeof t.text&&un.isPath(t.path);case"set_node":return un.isPath(t.path)&&rt(t.properties)&&rt(t.newProperties);case"set_selection":return null===t.properties&&yn.isRange(t.newProperties)||null===t.newProperties&&yn.isRange(t.properties)||rt(t.properties)&&rt(t.newProperties);case"split_node":return un.isPath(t.path)&&"number"===typeof t.position&&rt(t.properties);default:return!1}},isOperationList(t){return Array.isArray(t)&&t.every((t=>ln.isOperation(t)))},isSelectionOperation(t){return ln.isOperation(t)&&t.type.endsWith("_selection")},isTextOperation(t){return ln.isOperation(t)&&t.type.endsWith("_text")},inverse(t){switch(t.type){case"insert_node":return sn(sn({},t),{},{type:"remove_node"});case"insert_text":return sn(sn({},t),{},{type:"remove_text"});case"merge_node":return sn(sn({},t),{},{type:"split_node",path:un.previous(t.path)});case"move_node":var{newPath:e,path:n}=t;if(un.equals(e,n))return t;if(un.isSibling(n,e))return sn(sn({},t),{},{path:e,newPath:n});var r=un.transform(n,t),i=un.transform(un.next(n),t);return sn(sn({},t),{},{path:r,newPath:i});case"remove_node":return sn(sn({},t),{},{type:"insert_node"});case"remove_text":return sn(sn({},t),{},{type:"insert_text"});case"set_node":var{properties:o,newProperties:a}=t;return sn(sn({},t),{},{properties:a,newProperties:o});case"set_selection":var{properties:s,newProperties:l}=t;return sn(sn({},t),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return sn(sn({},t),{},{type:"merge_node",path:un.next(t.path)})}}},un={ancestors(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=e,r=un.levels(t,e);return r=n?r.slice(1):r.slice(0,-1),r},common(t,e){for(var n=[],r=0;r<t.length&&r<e.length;r++){var i=t[r],o=e[r];if(i!==o)break;n.push(i)}return n},compare(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){if(t[r]<e[r])return-1;if(t[r]>e[r])return 1}return 0},endsAfter(t,e){var n=t.length-1,r=t.slice(0,n),i=e.slice(0,n),o=t[n],a=e[n];return un.equals(r,i)&&o>a},endsAt(t,e){var n=t.length,r=t.slice(0,n),i=e.slice(0,n);return un.equals(r,i)},endsBefore(t,e){var n=t.length-1,r=t.slice(0,n),i=e.slice(0,n),o=t[n],a=e[n];return un.equals(r,i)&&o<a},equals(t,e){return t.length===e.length&&t.every(((t,n)=>t===e[n]))},hasPrevious(t){return t[t.length-1]>0},isAfter(t,e){return 1===un.compare(t,e)},isAncestor(t,e){return t.length<e.length&&0===un.compare(t,e)},isBefore(t,e){return-1===un.compare(t,e)},isChild(t,e){return t.length===e.length+1&&0===un.compare(t,e)},isCommon(t,e){return t.length<=e.length&&0===un.compare(t,e)},isDescendant(t,e){return t.length>e.length&&0===un.compare(t,e)},isParent(t,e){return t.length+1===e.length&&0===un.compare(t,e)},isPath(t){return Array.isArray(t)&&(0===t.length||"number"===typeof t[0])},isSibling(t,e){if(t.length!==e.length)return!1;var n=t.slice(0,-1),r=e.slice(0,-1),i=t[t.length-1],o=e[e.length-1];return i!==o&&un.equals(n,r)},levels(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=e,r=[],i=0;i<=t.length;i++)r.push(t.slice(0,i));return n&&r.reverse(),r},next(t){if(0===t.length)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},parent(t){if(0===t.length)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(0===t.length)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!un.isAncestor(e,t)&&!un.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ne(t,(r=>{var{affinity:i="forward"}=n;if(t&&0!==(null===t||void 0===t?void 0:t.length)){if(null===r)return null;switch(e.type){case"insert_node":var{path:o}=e;(un.equals(o,r)||un.endsBefore(o,r)||un.isAncestor(o,r))&&(r[o.length-1]+=1);break;case"remove_node":var{path:a}=e;if(un.equals(a,r)||un.isAncestor(a,r))return null;un.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=e;un.equals(s,r)||un.endsBefore(s,r)?r[s.length-1]-=1:un.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break;case"split_node":var{path:u,position:c}=e;if(un.equals(u,r)){if("forward"===i)r[r.length-1]+=1;else if("backward"!==i)return null}else un.endsBefore(u,r)?r[u.length-1]+=1:un.isAncestor(u,r)&&t[u.length]>=c&&(r[u.length-1]+=1,r[u.length]-=c);break;case"move_node":var{path:h,newPath:f}=e;if(un.equals(h,f))return;if(un.isAncestor(h,r)||un.equals(h,r)){var p=f.slice();return un.endsBefore(h,f)&&h.length<f.length&&(p[h.length-1]-=1),p.concat(r.slice(h.length))}un.isSibling(h,f)&&(un.isAncestor(f,r)||un.equals(f,r))?un.endsBefore(h,r)?r[h.length-1]-=1:r[h.length-1]+=1:un.endsBefore(f,r)||un.equals(f,r)||un.isAncestor(f,r)?(un.endsBefore(h,r)&&(r[h.length-1]-=1),r[f.length-1]+=1):un.endsBefore(h,r)&&(un.equals(f,r)&&(r[f.length-1]+=1),r[h.length-1]-=1);break}}}))}},cn={transform(t,e){var{current:n,affinity:r}=t;if(null!=n){var i=un.transform(n,e,{affinity:r});t.current=i,null==i&&t.unref()}}};function hn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hn(Object(n),!0).forEach((function(e){oe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var pn={compare(t,e){var n=un.compare(t.path,e.path);return 0===n?t.offset<e.offset?-1:t.offset>e.offset?1:0:n},isAfter(t,e){return 1===pn.compare(t,e)},isBefore(t,e){return-1===pn.compare(t,e)},equals(t,e){return t.offset===e.offset&&un.equals(t.path,e.path)},isPoint(t){return rt(t)&&"number"===typeof t.offset&&un.isPath(t.path)},transform(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ne(t,(t=>{if(null===t)return null;var{affinity:r="forward"}=n,{path:i,offset:o}=t;switch(e.type){case"insert_node":case"move_node":t.path=un.transform(i,e,n);break;case"insert_text":un.equals(e.path,i)&&e.offset<=o&&(t.offset+=e.text.length);break;case"merge_node":un.equals(e.path,i)&&(t.offset+=e.position),t.path=un.transform(i,e,n);break;case"remove_text":un.equals(e.path,i)&&e.offset<=o&&(t.offset-=Math.min(o-e.offset,e.text.length));break;case"remove_node":if(un.equals(e.path,i)||un.isAncestor(e.path,i))return null;t.path=un.transform(i,e,n);break;case"split_node":if(un.equals(e.path,i)){if(e.position===o&&null==r)return null;(e.position<o||e.position===o&&"forward"===r)&&(t.offset-=e.position,t.path=un.transform(i,e,fn(fn({},n),{},{affinity:"forward"})))}else t.path=un.transform(i,e,n);break}}))}},dn={transform(t,e){var{current:n,affinity:r}=t;if(null!=n){var i=pn.transform(n,e,{affinity:r});t.current=i,null==i&&t.unref()}}},gn=["anchor","focus"];function vn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vn(Object(n),!0).forEach((function(e){oe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var yn={edges(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:i}=t;return yn.isBackward(t)===n?[r,i]:[i,r]},end(t){var[,e]=yn.edges(t);return e},equals(t,e){return pn.equals(t.anchor,e.anchor)&&pn.equals(t.focus,e.focus)},includes(t,e){if(yn.isRange(e)){if(yn.includes(t,e.anchor)||yn.includes(t,e.focus))return!0;var[n,r]=yn.edges(t),[i,o]=yn.edges(e);return pn.isBefore(n,i)&&pn.isAfter(r,o)}var[a,s]=yn.edges(t),l=!1,u=!1;return pn.isPoint(e)?(l=pn.compare(e,a)>=0,u=pn.compare(e,s)<=0):(l=un.compare(e,a.path)>=0,u=un.compare(e,s.path)<=0),l&&u},intersection(t,e){var n=me(t,gn),[r,i]=yn.edges(t),[o,a]=yn.edges(e),s=pn.isBefore(r,o)?o:r,l=pn.isBefore(i,a)?i:a;return pn.isBefore(l,s)?null:mn({anchor:s,focus:l},n)},isBackward(t){var{anchor:e,focus:n}=t;return pn.isAfter(e,n)},isCollapsed(t){var{anchor:e,focus:n}=t;return pn.equals(e,n)},isExpanded(t){return!yn.isCollapsed(t)},isForward(t){return!yn.isBackward(t)},isRange(t){return rt(t)&&pn.isPoint(t.anchor)&&pn.isPoint(t.focus)},*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=yn.edges(t);return e},transform(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ne(t,(t=>{if(null===t)return null;var r,i,{affinity:o="inward"}=n;if("inward"===o){var a=yn.isCollapsed(t);yn.isForward(t)?(r="forward",i=a?r:"backward"):(r="backward",i=a?r:"forward")}else"outward"===o?yn.isForward(t)?(r="backward",i="forward"):(r="forward",i="backward"):(r=o,i=o);var s=pn.transform(t.anchor,e,{affinity:r}),l=pn.transform(t.focus,e,{affinity:i});if(!s||!l)return null;t.anchor=s,t.focus=l}))}},bn={transform(t,e){var{current:n,affinity:r}=t;if(null!=n){var i=yn.transform(n,e,{affinity:r});t.current=i,null==i&&t.unref()}}},xn=(t,e)=>{for(var n in t){var r=t[n],i=e[n];if(rt(r)&&rt(i)){if(!xn(r,i))return!1}else if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var o=0;o<r.length;o++)if(r[o]!==i[o])return!1}else if(r!==i)return!1}for(var a in e)if(void 0===t[a]&&void 0!==e[a])return!1;return!0},wn=["text"],Cn=["anchor","focus"];function Sn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function An(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Sn(Object(n),!0).forEach((function(e){oe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var En={equals(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function i(t){var e=me(t,wn);return e}return xn(r?i(t):t,r?i(e):e)},isText(t){return rt(t)&&"string"===typeof t.text},isTextList(t){return Array.isArray(t)&&t.every((t=>En.isText(t)))},isTextProps(t){return void 0!==t.text},matches(t,e){for(var n in e)if("text"!==n&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;return!0},decorations(t,e){var n=[An({},t)];for(var r of e){var i=me(r,Cn),[o,a]=yn.edges(r),s=[],l=0;for(var u of n){var{length:c}=u.text,h=l;if(l+=c,o.offset<=h&&a.offset>=l)Object.assign(u,i),s.push(u);else if(o.offset!==a.offset&&(o.offset===l||a.offset===h)||o.offset>l||a.offset<h||a.offset===h&&0!==h)s.push(u);else{var f=u,p=void 0,d=void 0;if(a.offset<l){var g=a.offset-h;d=An(An({},f),{},{text:f.text.slice(g)}),f=An(An({},f),{},{text:f.text.slice(0,g)})}if(o.offset>h){var v=o.offset-h;p=An(An({},f),{},{text:f.text.slice(0,v)}),f=An(An({},f),{},{text:f.text.slice(v)})}Object.assign(f,i),p&&s.push(p),s.push(f),d&&s.push(d)}}n=s}return n}};function kn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Dn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kn(Object(n),!0).forEach((function(e){oe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Fn=(t,e,n)=>{switch(n.type){case"insert_node":var{path:r,node:i}=n,o=on.parent(t,r),a=r[r.length-1];if(a>o.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(o.children.splice(a,0,i),e)for(var[s,l]of yn.points(e))e[l]=pn.transform(s,n);break;case"insert_text":var{path:u,offset:c,text:h}=n;if(0===h.length)break;var f=on.leaf(t,u),p=f.text.slice(0,c),d=f.text.slice(c);if(f.text=p+h+d,e)for(var[g,v]of yn.points(e))e[v]=pn.transform(g,n);break;case"merge_node":var{path:m}=n,y=on.get(t,m),b=un.previous(m),x=on.get(t,b),w=on.parent(t,m),C=m[m.length-1];if(En.isText(y)&&En.isText(x))x.text+=y.text;else{if(En.isText(y)||En.isText(x))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(m,"] to nodes of different interfaces: ").concat(y," ").concat(x));x.children.push(...y.children)}if(w.children.splice(C,1),e)for(var[S,A]of yn.points(e))e[A]=pn.transform(S,n);break;case"move_node":var{path:E,newPath:k}=n;if(un.isAncestor(E,k))throw new Error("Cannot move a path [".concat(E,"] to new path [").concat(k,"] because the destination is inside itself."));var D=on.get(t,E),F=on.parent(t,E),M=E[E.length-1];F.children.splice(M,1);var O=un.transform(E,n),T=on.get(t,un.parent(O)),B=O[O.length-1];if(T.children.splice(B,0,D),e)for(var[_,I]of yn.points(e))e[I]=pn.transform(_,n);break;case"remove_node":var{path:P}=n,L=P[P.length-1],R=on.parent(t,P);if(R.children.splice(L,1),e)for(var[N,j]of yn.points(e)){var z=pn.transform(N,n);if(null!=e&&null!=z)e[j]=z;else{var U=void 0,V=void 0;for(var[H,$]of on.texts(t)){if(-1!==un.compare($,P)){V=[H,$];break}U=[H,$]}var G=!1;U&&V&&(G=un.equals(V[1],P)?!un.hasPrevious(V[1]):un.common(U[1],P).length<un.common(V[1],P).length),U&&!G?(N.path=U[1],N.offset=U[0].text.length):V?(N.path=V[1],N.offset=0):e=null}}break;case"remove_text":var{path:W,offset:q,text:X}=n;if(0===X.length)break;var Z=on.leaf(t,W),Y=Z.text.slice(0,q),Q=Z.text.slice(q+X.length);if(Z.text=Y+Q,e)for(var[K,J]of yn.points(e))e[J]=pn.transform(K,n);break;case"set_node":var{path:tt,properties:et,newProperties:nt}=n;if(0===tt.length)throw new Error("Cannot set properties on the root node!");var rt=on.get(t,tt);for(var it in nt){if("children"===it||"text"===it)throw new Error('Cannot set the "'.concat(it,'" property of nodes!'));var ot=nt[it];null==ot?delete rt[it]:rt[it]=ot}for(var at in et)nt.hasOwnProperty(at)||delete rt[at];break;case"set_selection":var{newProperties:st}=n;if(null==st)e=st;else{if(null==e){if(!yn.isRange(st))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(st)," when there is no current selection."));e=Dn({},st)}for(var lt in st){var ut=st[lt];if(null==ut){if("anchor"===lt||"focus"===lt)throw new Error('Cannot remove the "'.concat(lt,'" selection property'));delete e[lt]}else e[lt]=ut}}break;case"split_node":var{path:ct,position:ht,properties:ft}=n;if(0===ct.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ct,"] because the root node cannot be split."));var pt,dt=on.get(t,ct),gt=on.parent(t,ct),vt=ct[ct.length-1];if(En.isText(dt)){var mt=dt.text.slice(0,ht),yt=dt.text.slice(ht);dt.text=mt,pt=Dn(Dn({},ft),{},{text:yt})}else{var bt=dt.children.slice(0,ht),xt=dt.children.slice(ht);dt.children=bt,pt=Dn(Dn({},ft),{},{children:xt})}if(gt.children.splice(vt+1,0,pt),e)for(var[wt,Ct]of yn.points(e))e[Ct]=pn.transform(wt,n);break}return e},Mn={transform(t,e){t.children=re(t.children);var n=t.selection&&re(t.selection);try{n=Fn(t,n,e)}finally{t.children=ie(t.children),t.selection=n?ot(n)?ie(n):n:null}}},On=["text"],Tn=["children"];function Bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bn(Object(n),!0).forEach((function(e){oe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var In={insertNodes(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Je.withoutNormalizing(t,(()=>{var{hanging:r=!1,voids:i=!1,mode:o="lowest"}=n,{at:a,match:s,select:l}=n;if(on.isNode(e)&&(e=[e]),0!==e.length){var[u]=e;if(a||(a=t.selection?t.selection:t.children.length>0?Je.end(t,[]):[0],l=!0),null==l&&(l=!1),yn.isRange(a))if(r||(a=Je.unhangRange(t,a)),yn.isCollapsed(a))a=a.anchor;else{var[,c]=yn.edges(a),h=Je.pointRef(t,c);$n.delete(t,{at:a}),a=h.unref()}if(pn.isPoint(a)){null==s&&(s=En.isText(u)?t=>En.isText(t):t.isInline(u)?e=>En.isText(e)||Je.isInline(t,e):e=>Je.isBlock(t,e));var[f]=Je.nodes(t,{at:a.path,match:s,mode:o,voids:i});if(!f)return;var[,p]=f,d=Je.pathRef(t,p),g=Je.isEnd(t,a,p);$n.splitNodes(t,{at:a,match:s,mode:o,voids:i});var v=d.unref();a=g?un.next(v):v}var m=un.parent(a),y=a[a.length-1];if(i||!Je.void(t,{at:m})){for(var b of e){var x=m.concat(y);y++,t.apply({type:"insert_node",path:x,node:b}),a=un.next(a)}if(a=un.previous(a),l){var w=Je.end(t,a);w&&$n.select(t,w)}}}}))},liftNodes(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Je.withoutNormalizing(t,(()=>{var{at:n=t.selection,mode:r="lowest",voids:i=!1}=e,{match:o}=e;if(null==o&&(o=un.isPath(n)?Rn(t,n):e=>Je.isBlock(t,e)),n){var a=Je.nodes(t,{at:n,match:o,mode:r,voids:i}),s=Array.from(a,(e=>{var[,n]=e;return Je.pathRef(t,n)}));for(var l of s){var u=l.unref();if(u.length<2)throw new Error("Cannot lift node at a path [".concat(u,"] because it has a depth of less than `2`."));var c=Je.node(t,un.parent(u)),[h,f]=c,p=u[u.length-1],{length:d}=h.children;if(1===d){var g=un.next(f);$n.moveNodes(t,{at:u,to:g,voids:i}),$n.removeNodes(t,{at:f,voids:i})}else if(0===p)$n.moveNodes(t,{at:u,to:f,voids:i});else if(p===d-1){var v=un.next(f);$n.moveNodes(t,{at:u,to:v,voids:i})}else{var m=un.next(u),y=un.next(f);$n.splitNodes(t,{at:m,voids:i}),$n.moveNodes(t,{at:u,to:y,voids:i})}}}}))},mergeNodes(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Je.withoutNormalizing(t,(()=>{var{match:n,at:r=t.selection}=e,{hanging:i=!1,voids:o=!1,mode:a="lowest"}=e;if(r){if(null==n)if(un.isPath(r)){var[s]=Je.parent(t,r);n=t=>s.children.includes(t)}else n=e=>Je.isBlock(t,e);if(!i&&yn.isRange(r)&&(r=Je.unhangRange(t,r)),yn.isRange(r))if(yn.isCollapsed(r))r=r.anchor;else{var[,l]=yn.edges(r),u=Je.pointRef(t,l);$n.delete(t,{at:r}),r=u.unref(),null==e.at&&$n.select(t,r)}var[c]=Je.nodes(t,{at:r,match:n,voids:o,mode:a}),h=Je.previous(t,{at:r,match:n,voids:o,mode:a});if(c&&h){var[f,p]=c,[d,g]=h;if(0!==p.length&&0!==g.length){var v,m,y=un.next(g),b=un.common(p,g),x=un.isSibling(p,g),w=Array.from(Je.levels(t,{at:p}),(t=>{var[e]=t;return e})).slice(b.length).slice(0,-1),C=Je.above(t,{at:p,mode:"highest",match:e=>w.includes(e)&&Pn(t,e)}),S=C&&Je.pathRef(t,C[1]);if(En.isText(f)&&En.isText(d)){var A=me(f,On);m=d.text.length,v=A}else{if(!qe.isElement(f)||!qe.isElement(d))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(f)," ").concat(JSON.stringify(d)));A=me(f,Tn);m=d.children.length,v=A}x||$n.moveNodes(t,{at:p,to:y,voids:o}),S&&$n.removeNodes(t,{at:S.current,voids:o}),qe.isElement(d)&&Je.isEmpty(t,d)||En.isText(d)&&""===d.text&&0!==g[g.length-1]?$n.removeNodes(t,{at:g,voids:o}):t.apply({type:"merge_node",path:y,position:m,properties:v}),S&&S.unref()}}}}))},moveNodes(t,e){Je.withoutNormalizing(t,(()=>{var{to:n,at:r=t.selection,mode:i="lowest",voids:o=!1}=e,{match:a}=e;if(r){null==a&&(a=un.isPath(r)?Rn(t,r):e=>Je.isBlock(t,e));var s=Je.pathRef(t,n),l=Je.nodes(t,{at:r,match:a,mode:i,voids:o}),u=Array.from(l,(e=>{var[,n]=e;return Je.pathRef(t,n)}));for(var c of u){var h=c.unref(),f=s.current;0!==h.length&&t.apply({type:"move_node",path:h,newPath:f}),s.current&&un.isSibling(f,h)&&un.isAfter(f,h)&&(s.current=un.next(s.current))}s.unref()}}))},removeNodes(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Je.withoutNormalizing(t,(()=>{var{hanging:n=!1,voids:r=!1,mode:i="lowest"}=e,{at:o=t.selection,match:a}=e;if(o){null==a&&(a=un.isPath(o)?Rn(t,o):e=>Je.isBlock(t,e)),!n&&yn.isRange(o)&&(o=Je.unhangRange(t,o));var s=Je.nodes(t,{at:o,match:a,mode:i,voids:r}),l=Array.from(s,(e=>{var[,n]=e;return Je.pathRef(t,n)}));for(var u of l){var c=u.unref();if(c){var[h]=Je.node(t,c);t.apply({type:"remove_node",path:c,node:h})}}}}))},setNodes(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Je.withoutNormalizing(t,(()=>{var{match:r,at:i=t.selection}=n,{hanging:o=!1,mode:a="lowest",split:s=!1,voids:l=!1}=n;if(i){if(null==r&&(r=un.isPath(i)?Rn(t,i):e=>Je.isBlock(t,e)),!o&&yn.isRange(i)&&(i=Je.unhangRange(t,i)),s&&yn.isRange(i)){if(yn.isCollapsed(i)&&Je.leaf(t,i.anchor)[0].text.length>0)return;var u=Je.rangeRef(t,i,{affinity:"inward"}),[c,h]=yn.edges(i),f="lowest"===a?"lowest":"highest",p=Je.isEnd(t,h,h.path);$n.splitNodes(t,{at:h,match:r,mode:f,voids:l,always:!p});var d=Je.isStart(t,c,c.path);$n.splitNodes(t,{at:c,match:r,mode:f,voids:l,always:!d}),i=u.unref(),null==n.at&&$n.select(t,i)}for(var[g,v]of Je.nodes(t,{at:i,match:r,mode:a,voids:l})){var m={},y={};if(0!==v.length){var b=!1;for(var x in e)"children"!==x&&"text"!==x&&e[x]!==g[x]&&(b=!0,g.hasOwnProperty(x)&&(m[x]=g[x]),null!=e[x]&&(y[x]=e[x]));b&&t.apply({type:"set_node",path:v,properties:m,newProperties:y})}}}}))},splitNodes(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Je.withoutNormalizing(t,(()=>{var{mode:n="lowest",voids:r=!1}=e,{match:i,at:o=t.selection,height:a=0,always:s=!1}=e;if(null==i&&(i=e=>Je.isBlock(t,e)),yn.isRange(o)&&(o=Ln(t,o)),un.isPath(o)){var l=o,u=Je.point(t,l),[c]=Je.parent(t,l);i=t=>t===c,a=u.path.length-l.length+1,o=u,s=!0}if(o){var h=Je.pointRef(t,o,{affinity:"backward"}),[f]=Je.nodes(t,{at:o,match:i,mode:n,voids:r});if(f){var p=Je.void(t,{at:o,mode:"highest"}),d=0;if(!r&&p){var[g,v]=p;if(qe.isElement(g)&&t.isInline(g)){var m=Je.after(t,v);if(!m){var y={text:""},b=un.next(v);$n.insertNodes(t,y,{at:b,voids:r}),m=Je.point(t,b)}o=m,s=!0}var x=o.path.length-v.length;a=x+1,s=!0}var w=Je.pointRef(t,o),C=o.path.length-a,[,S]=f,A=o.path.slice(0,C),E=0===a?o.offset:o.path[C]+d;for(var[k,D]of Je.levels(t,{at:A,reverse:!0,voids:r})){var F=!1;if(D.length<S.length||0===D.length||!r&&Je.isVoid(t,k))break;var M=h.current,O=Je.isEnd(t,M,D);if(s||!h||!Je.isEdge(t,M,D)){F=!0;var T=on.extractProps(k);t.apply({type:"split_node",path:D,position:E,properties:T})}E=D[D.length-1]+(F||O?1:0)}if(null==e.at){var B=w.current||Je.end(t,[]);$n.select(t,B)}h.unref(),w.unref()}}}))},unsetNodes(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var i of e)r[i]=null;$n.setNodes(t,r,n)},unwrapNodes(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Je.withoutNormalizing(t,(()=>{var{mode:n="lowest",split:r=!1,voids:i=!1}=e,{at:o=t.selection,match:a}=e;if(o){null==a&&(a=un.isPath(o)?Rn(t,o):e=>Je.isBlock(t,e)),un.isPath(o)&&(o=Je.range(t,o));var s=yn.isRange(o)?Je.rangeRef(t,o):null,l=Je.nodes(t,{at:o,match:a,mode:n,voids:i}),u=Array.from(l,(e=>{var[,n]=e;return Je.pathRef(t,n)})).reverse(),c=function(e){var n=e.unref(),[o]=Je.node(t,n),a=Je.range(t,n);r&&s&&(a=yn.intersection(s.current,a)),$n.liftNodes(t,{at:a,match:t=>qe.isAncestor(o)&&o.children.includes(t),voids:i})};for(var h of u)c(h);s&&s.unref()}}))},wrapNodes(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Je.withoutNormalizing(t,(()=>{var{mode:r="lowest",split:i=!1,voids:o=!1}=n,{match:a,at:s=t.selection}=n;if(s){if(null==a&&(a=un.isPath(s)?Rn(t,s):t.isInline(e)?e=>Je.isInline(t,e)||En.isText(e):e=>Je.isBlock(t,e)),i&&yn.isRange(s)){var[l,u]=yn.edges(s),c=Je.rangeRef(t,s,{affinity:"inward"});$n.splitNodes(t,{at:u,match:a,voids:o}),$n.splitNodes(t,{at:l,match:a,voids:o}),s=c.unref(),null==n.at&&$n.select(t,s)}var h=Array.from(Je.nodes(t,{at:s,match:t.isInline(e)?e=>Je.isBlock(t,e):t=>Je.isEditor(t),mode:"lowest",voids:o}));for(var[,f]of h){var p=yn.isRange(s)?yn.intersection(s,Je.range(t,f)):s;if(p){var d=Array.from(Je.nodes(t,{at:p,match:a,mode:r,voids:o}));if(d.length>0){var g=function(){var[n]=d,r=d[d.length-1],[,i]=n,[,a]=r;if(0===i.length&&0===a.length)return"continue";var s=un.equals(i,a)?un.parent(i):un.common(i,a),l=Je.range(t,i,a),u=Je.node(t,s),[c]=u,h=s.length+1,f=un.next(a.slice(0,h)),p=_n(_n({},e),{},{children:[]});$n.insertNodes(t,p,{at:f,voids:o}),$n.moveNodes(t,{at:l,match:t=>qe.isAncestor(c)&&c.children.includes(t),to:f.concat(0),voids:o})}();if("continue"===g)continue}}}}}))}},Pn=(t,e)=>{if(qe.isElement(e)){var n=e;return!!Je.isVoid(t,e)||1===n.children.length&&Pn(t,n.children[0])}return!Je.isEditor(e)},Ln=(t,e)=>{if(yn.isCollapsed(e))return e.anchor;var[,n]=yn.edges(e),r=Je.pointRef(t,n);return $n.delete(t,{at:e}),r.unref()},Rn=(t,e)=>{var[n]=Je.node(t,e);return t=>t===n};function Nn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function jn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nn(Object(n),!0).forEach((function(e){oe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var zn={collapse(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=e,{selection:r}=t;if(r)if("anchor"===n)$n.select(t,r.anchor);else if("focus"===n)$n.select(t,r.focus);else if("start"===n){var[i]=yn.edges(r);$n.select(t,i)}else if("end"===n){var[,o]=yn.edges(r);$n.select(t,o)}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=t,{distance:r=1,unit:i="character",reverse:o=!1}=e,{edge:a=null}=e;if(n){"start"===a&&(a=yn.isBackward(n)?"focus":"anchor"),"end"===a&&(a=yn.isBackward(n)?"anchor":"focus");var{anchor:s,focus:l}=n,u={distance:r,unit:i},c={};if(null==a||"anchor"===a){var h=o?Je.before(t,s,u):Je.after(t,s,u);h&&(c.anchor=h)}if(null==a||"focus"===a){var f=o?Je.before(t,l,u):Je.after(t,l,u);f&&(c.focus=f)}$n.setSelection(t,c)}},select(t,e){var{selection:n}=t;if(e=Je.range(t,e),n)$n.setSelection(t,e);else{if(!yn.isRange(e))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(e)));t.apply({type:"set_selection",properties:n,newProperties:e})}},setPoint(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=t,{edge:i="both"}=n;if(r){"start"===i&&(i=yn.isBackward(r)?"focus":"anchor"),"end"===i&&(i=yn.isBackward(r)?"anchor":"focus");var{anchor:o,focus:a}=r,s="anchor"===i?o:a;$n.setSelection(t,{["anchor"===i?"anchor":"focus"]:jn(jn({},s),e)})}},setSelection(t,e){var{selection:n}=t,r={},i={};if(n){for(var o in e)("anchor"===o&&null!=e.anchor&&!pn.equals(e.anchor,n.anchor)||"focus"===o&&null!=e.focus&&!pn.equals(e.focus,n.focus)||"anchor"!==o&&"focus"!==o&&e[o]!==n[o])&&(r[o]=n[o],i[o]=e[o]);Object.keys(r).length>0&&t.apply({type:"set_selection",properties:r,newProperties:i})}}},Un={delete(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Je.withoutNormalizing(t,(()=>{var{reverse:n=!1,unit:r="character",distance:i=1,voids:o=!1}=e,{at:a=t.selection,hanging:s=!1}=e;if(a){if(yn.isRange(a)&&yn.isCollapsed(a)&&(a=a.anchor),pn.isPoint(a)){var l=Je.void(t,{at:a,mode:"highest"});if(!o&&l){var[,u]=l;a=u}else{var c={unit:r,distance:i},h=n?Je.before(t,a,c)||Je.start(t,[]):Je.after(t,a,c)||Je.end(t,[]);a={anchor:a,focus:h},s=!0}}if(un.isPath(a))$n.removeNodes(t,{at:a,voids:o});else if(!yn.isCollapsed(a)){if(!s){var[,f]=yn.edges(a),p=Je.end(t,[]);pn.equals(f,p)||(a=Je.unhangRange(t,a,{voids:o}))}var[d,g]=yn.edges(a),v=Je.above(t,{match:e=>Je.isBlock(t,e),at:d,voids:o}),m=Je.above(t,{match:e=>Je.isBlock(t,e),at:g,voids:o}),y=v&&m&&!un.equals(v[1],m[1]),b=un.equals(d.path,g.path),x=o?null:Je.void(t,{at:d,mode:"highest"}),w=o?null:Je.void(t,{at:g,mode:"highest"});if(x){var C=Je.before(t,d);C&&v&&un.isAncestor(v[1],C.path)&&(d=C)}if(w){var S=Je.after(t,g);S&&m&&un.isAncestor(m[1],S.path)&&(g=S)}var A,E=[];for(var k of Je.nodes(t,{at:a,voids:o})){var[D,F]=k;A&&0===un.compare(F,A)||(!o&&Je.isVoid(t,D)||!un.isCommon(F,d.path)&&!un.isCommon(F,g.path))&&(E.push(k),A=F)}var M=Array.from(E,(e=>{var[,n]=e;return Je.pathRef(t,n)})),O=Je.pointRef(t,d),T=Je.pointRef(t,g);if(!b&&!x){var B=O.current,[_]=Je.leaf(t,B),{path:I}=B,{offset:P}=d,L=_.text.slice(P);L.length>0&&t.apply({type:"remove_text",path:I,offset:P,text:L})}for(var R of M){var N=R.unref();$n.removeNodes(t,{at:N,voids:o})}if(!w){var j=T.current,[z]=Je.leaf(t,j),{path:U}=j,V=b?d.offset:0,H=z.text.slice(V,g.offset);H.length>0&&t.apply({type:"remove_text",path:U,offset:V,text:H})}!b&&y&&T.current&&O.current&&$n.mergeNodes(t,{at:T.current,hanging:!0,voids:o});var $=n?O.unref()||T.unref():T.unref()||O.unref();null==e.at&&$&&$n.select(t,$)}}}))},insertFragment(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Je.withoutNormalizing(t,(()=>{var{hanging:r=!1,voids:i=!1}=n,{at:o=t.selection}=n;if(e.length&&o){if(yn.isRange(o))if(r||(o=Je.unhangRange(t,o)),yn.isCollapsed(o))o=o.anchor;else{var[,a]=yn.edges(o);if(!i&&Je.void(t,{at:a}))return;var s=Je.pointRef(t,a);$n.delete(t,{at:o}),o=s.unref()}else un.isPath(o)&&(o=Je.start(t,o));if(i||!Je.void(t,{at:o})){var l=Je.above(t,{at:o,match:e=>Je.isInline(t,e),mode:"highest",voids:i});if(l){var[,u]=l;if(Je.isEnd(t,o,u)){var c=Je.after(t,u);o=c}else if(Je.isStart(t,o,u)){var h=Je.before(t,u);o=h}}var f=Je.above(t,{match:e=>Je.isBlock(t,e),at:o,voids:i}),[,p]=f,d=Je.isStart(t,o,p),g=Je.isEnd(t,o,p),v=d&&g,m=!d||d&&g,y=!g,[,b]=on.first({children:e},[]),[,x]=on.last({children:e},[]),w=[],C=e=>{var[n,r]=e,i=0===r.length;return!i&&(!!v||!(m&&un.isAncestor(r,b)&&qe.isElement(n)&&!t.isVoid(n)&&!t.isInline(n))&&!(y&&un.isAncestor(r,x)&&qe.isElement(n)&&!t.isVoid(n)&&!t.isInline(n)))};for(var S of on.nodes({children:e},{pass:C}))C(S)&&w.push(S);var A=[],E=[],k=[],D=!0,F=!1;for(var[M]of w)qe.isElement(M)&&!t.isInline(M)?(D=!1,F=!0,E.push(M)):D?A.push(M):k.push(M);var[O]=Je.nodes(t,{at:o,match:e=>En.isText(e)||Je.isInline(t,e),mode:"highest",voids:i}),[,T]=O,B=Je.isStart(t,o,T),_=Je.isEnd(t,o,T),I=Je.pathRef(t,g?un.next(p):p),P=Je.pathRef(t,_?un.next(T):T),L=Je.pathRef(t,p);$n.splitNodes(t,{at:o,match:e=>F?Je.isBlock(t,e):En.isText(e)||Je.isInline(t,e),mode:F?"lowest":"highest",voids:i});var R=Je.pathRef(t,!B||B&&_?un.next(T):T);if($n.insertNodes(t,A,{at:R.current,match:e=>En.isText(e)||Je.isInline(t,e),mode:"highest",voids:i}),v&&E.length&&$n.delete(t,{at:L.unref(),voids:i}),$n.insertNodes(t,E,{at:I.current,match:e=>Je.isBlock(t,e),mode:"lowest",voids:i}),$n.insertNodes(t,k,{at:P.current,match:e=>En.isText(e)||Je.isInline(t,e),mode:"highest",voids:i}),!n.at){var N;N=k.length>0?un.previous(P.current):E.length>0?un.previous(I.current):un.previous(R.current);var j=Je.end(t,N);$n.select(t,j)}R.unref(),I.unref(),P.unref()}}}))},insertText(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Je.withoutNormalizing(t,(()=>{var{voids:r=!1}=n,{at:i=t.selection}=n;if(i){if(un.isPath(i)&&(i=Je.range(t,i)),yn.isRange(i))if(yn.isCollapsed(i))i=i.anchor;else{var o=yn.end(i);if(!r&&Je.void(t,{at:o}))return;var a=Je.pointRef(t,o);$n.delete(t,{at:i,voids:r}),i=a.unref(),$n.setSelection(t,{anchor:i,focus:i})}if(r||!Je.void(t,{at:i})){var{path:s,offset:l}=i;e.length>0&&t.apply({type:"insert_text",path:s,offset:l,text:e})}}}))}};function Vn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Hn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vn(Object(n),!0).forEach((function(e){oe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var $n=Hn(Hn(Hn(Hn({},Mn),In),zn),Un),Gn="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function Wn(t){var e={exports:{}};return t(e,e.exports),e.exports}var qn=9007199254740991,Xn="[object Arguments]",Zn="[object Function]",Yn="[object GeneratorFunction]",Qn="[object Map]",Kn="[object Object]",Jn="[object Promise]",tr="[object Set]",er="[object String]",nr="[object WeakMap]",rr="[object DataView]",ir=/[\\^$.*+?()[\]{}|]/g,or=/^\[object .+?Constructor\]$/,ar=/^(?:0|[1-9]\d*)$/,sr="\\ud800-\\udfff",lr="\\u0300-\\u036f\\ufe20-\\ufe23",ur="\\u20d0-\\u20f0",cr="\\ufe0e\\ufe0f",hr="["+sr+"]",fr="["+lr+ur+"]",pr="\\ud83c[\\udffb-\\udfff]",dr="(?:"+fr+"|"+pr+")",gr="[^"+sr+"]",vr="(?:\\ud83c[\\udde6-\\uddff]){2}",mr="[\\ud800-\\udbff][\\udc00-\\udfff]",yr="\\u200d",br=dr+"?",xr="["+cr+"]?",wr="(?:"+yr+"(?:"+[gr,vr,mr].join("|")+")"+xr+br+")*",Cr=xr+br+wr,Sr="(?:"+[gr+fr+"?",fr,vr,mr,hr].join("|")+")",Ar=RegExp(pr+"(?="+pr+")|"+Sr+Cr,"g"),Er=RegExp("["+yr+sr+lr+ur+cr+"]"),kr="object"==typeof Gn&&Gn&&Gn.Object===Object&&Gn,Dr="object"==typeof self&&self&&self.Object===Object&&self,Fr=kr||Dr||Function("return this")();function Mr(t,e){var n=-1,r=t?t.length:0,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}function Or(t){return t.split("")}function Tr(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}function Br(t,e){return Mr(e,(function(e){return t[e]}))}function _r(t,e){return null==t?void 0:t[e]}function Ir(t){return Er.test(t)}function Pr(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function Lr(t){var e,n=[];while(!(e=t.next()).done)n.push(e.value);return n}function Rr(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Nr(t,e){return function(n){return t(e(n))}}function jr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function zr(t){return Ir(t)?Ur(t):Or(t)}function Ur(t){return t.match(Ar)||[]}var Vr=Function.prototype,Hr=Object.prototype,$r=Fr["__core-js_shared__"],Gr=function(){var t=/[^.]+$/.exec($r&&$r.keys&&$r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Wr=Vr.toString,qr=Hr.hasOwnProperty,Xr=Hr.toString,Zr=RegExp("^"+Wr.call(qr).replace(ir,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yr=Fr.Symbol,Qr=Yr?Yr.iterator:void 0,Kr=Hr.propertyIsEnumerable,Jr=Nr(Object.keys,Object),ti=gi(Fr,"DataView"),ei=gi(Fr,"Map"),ni=gi(Fr,"Promise"),ri=gi(Fr,"Set"),ii=gi(Fr,"WeakMap"),oi=xi(ti),ai=xi(ei),si=xi(ni),li=xi(ri),ui=xi(ii);function ci(t,e){var n=Ci(t)||wi(t)?Tr(t.length,String):[],r=n.length,i=!!r;for(var o in t)!e&&!qr.call(t,o)||i&&("length"==o||mi(o,r))||n.push(o);return n}function hi(t){return Xr.call(t)}function fi(t){if(!Di(t)||yi(t))return!1;var e=Ei(t)||Pr(t)?Zr:or;return e.test(xi(t))}function pi(t){if(!bi(t))return Jr(t);var e=[];for(var n in Object(t))qr.call(t,n)&&"constructor"!=n&&e.push(n);return e}function di(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}function gi(t,e){var n=_r(t,e);return fi(n)?n:void 0}var vi=hi;function mi(t,e){return e=null==e?qn:e,!!e&&("number"==typeof t||ar.test(t))&&t>-1&&t%1==0&&t<e}function yi(t){return!!Gr&&Gr in t}function bi(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Hr;return t===n}function xi(t){if(null!=t){try{return Wr.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function wi(t){return Ai(t)&&qr.call(t,"callee")&&(!Kr.call(t,"callee")||Xr.call(t)==Xn)}(ti&&vi(new ti(new ArrayBuffer(1)))!=rr||ei&&vi(new ei)!=Qn||ni&&vi(ni.resolve())!=Jn||ri&&vi(new ri)!=tr||ii&&vi(new ii)!=nr)&&(vi=function(t){var e=Xr.call(t),n=e==Kn?t.constructor:void 0,r=n?xi(n):void 0;if(r)switch(r){case oi:return rr;case ai:return Qn;case si:return Jn;case li:return tr;case ui:return nr}return e});var Ci=Array.isArray;function Si(t){return null!=t&&ki(t.length)&&!Ei(t)}function Ai(t){return Fi(t)&&Si(t)}function Ei(t){var e=Di(t)?Xr.call(t):"";return e==Zn||e==Yn}function ki(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=qn}function Di(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Fi(t){return!!t&&"object"==typeof t}function Mi(t){return"string"==typeof t||!Ci(t)&&Fi(t)&&Xr.call(t)==er}function Oi(t){if(!t)return[];if(Si(t))return Mi(t)?zr(t):di(t);if(Qr&&t[Qr])return Lr(t[Qr]());var e=vi(t),n=e==Qn?Rr:e==tr?jr:Bi;return n(t)}function Ti(t){return Si(t)?ci(t):pi(t)}function Bi(t){return t?Br(t,Ti(t)):[]}var _i=Oi;function Ii(t){return null!==t&&"object"===typeof t&&"constructor"in t&&t.constructor===Object}function Pi(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(e).forEach((function(n){"undefined"===typeof t[n]?t[n]=e[n]:Ii(e[n])&&Ii(t[n])&&Object.keys(e[n]).length>0&&Pi(t[n],e[n])}))}var Li={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Ri(){var t="undefined"!==typeof document?document:{};return Pi(t,Li),t}var Ni={document:Li,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return"undefined"===typeof setTimeout?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){"undefined"!==typeof setTimeout&&clearTimeout(t)}};function ji(){var t="undefined"!==typeof window?window:{};return Pi(t,Ni),t}function zi(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Ui(t){return Ui=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ui(t)}function Vi(t,e){return Vi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Vi(t,e)}function Hi(){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(t){return!1}}function $i(t,e,n){return $i=Hi()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=Function.bind.apply(t,r),o=new i;return n&&Vi(o,n.prototype),o},$i.apply(null,arguments)}function Gi(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function Wi(t){var e="function"===typeof Map?new Map:void 0;return Wi=function(t){if(null===t||!Gi(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return $i(t,arguments,Ui(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Vi(n,t)},Wi(t)}function qi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xi(t){var e=t.__proto__;Object.defineProperty(t,"__proto__",{get:function(){return e},set:function(t){e.__proto__=t}})}var Zi=function(t){function e(e){var n;return n=t.call.apply(t,[this].concat(e))||this,Xi(qi(n)),n}return zi(e,t),e}(Wi(Array));function Yi(t){void 0===t&&(t=[]);var e=[];return t.forEach((function(t){Array.isArray(t)?e.push.apply(e,Yi(t)):e.push(t)})),e}function Qi(t,e){return Array.prototype.filter.call(t,e)}function Ki(t){for(var e=[],n=0;n<t.length;n+=1)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function Ji(t){return t.toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function to(t,e){if("string"!==typeof t)return[t];for(var n=[],r=e.querySelectorAll(t),i=0;i<r.length;i+=1)n.push(r[i]);return n}function eo(t,e){var n=ji(),r=Ri(),i=[];if(!e&&t instanceof Zi)return t;if(!t)return new Zi(i);if("string"===typeof t){var o=t.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var a="div";0===o.indexOf("<li")&&(a="ul"),0===o.indexOf("<tr")&&(a="tbody"),0!==o.indexOf("<td")&&0!==o.indexOf("<th")||(a="tr"),0===o.indexOf("<tbody")&&(a="table"),0===o.indexOf("<option")&&(a="select");var s=r.createElement(a);s.innerHTML=o;for(var l=0;l<s.childNodes.length;l+=1)i.push(s.childNodes[l])}else i=to(t.trim(),e||r)}else if(t.nodeType||t===n||t===r)i.push(t);else if(Array.isArray(t)){if(t instanceof Zi)return t;i=t}return new Zi(Ki(i))}function no(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Yi(e.map((function(t){return t.split(" ")})));return this.forEach((function(t){var e;(e=t.classList).add.apply(e,r)})),this}function ro(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Yi(e.map((function(t){return t.split(" ")})));return this.forEach((function(t){var e;(e=t.classList).remove.apply(e,r)})),this}function io(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Yi(e.map((function(t){return t.split(" ")})));return Qi(this,(function(t){return r.filter((function(e){return t.classList.contains(e)})).length>0})).length>0}function oo(t,e){if(1===arguments.length&&"string"===typeof t)return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(t,e);else for(var r in t)this[n][r]=t[r],this[n].setAttribute(r,t[r]);return this}function ao(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function so(){var t=this[0];if(t){var e={};if(t.dataset)for(var n in t.dataset)e[n]=t.dataset[n];else for(var r=0;r<t.attributes.length;r+=1){var i=t.attributes[r];i.name.indexOf("data-")>=0&&(e[Ji(i.name.split("data-")[1])]=i.value)}for(var o in e)"false"===e[o]?e[o]=!1:"true"===e[o]?e[o]=!0:parseFloat(e[o])===1*e[o]&&(e[o]*=1);return e}}function lo(t){if("undefined"===typeof t){var e=this[0];if(!e)return;if(e.multiple&&"select"===e.nodeName.toLowerCase()){for(var n=[],r=0;r<e.selectedOptions.length;r+=1)n.push(e.selectedOptions[r].value);return n}return e.value}for(var i=0;i<this.length;i+=1){var o=this[i];if(Array.isArray(t)&&o.multiple&&"select"===o.nodeName.toLowerCase())for(var a=0;a<o.options.length;a+=1)o.options[a].selected=t.indexOf(o.options[a].value)>=0;else o.value=t}return this}function uo(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e[1],o=e[2],a=e[3];function s(t){var e=t.target;if(e){var n=t.target.dom7EventData||[];if(n.indexOf(t)<0&&n.unshift(t),eo(e).is(i))o.apply(e,n);else for(var r=eo(e).parents(),a=0;a<r.length;a+=1)eo(r[a]).is(i)&&o.apply(r[a],n)}}function l(t){var e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),o.apply(this,e)}"function"===typeof e[1]&&(r=e[0],o=e[1],a=e[2],i=void 0),a||(a=!1);for(var u,c=r.split(" "),h=0;h<this.length;h+=1){var f=this[h];if(i)for(u=0;u<c.length;u+=1){var p=c[u];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[p]||(f.dom7LiveListeners[p]=[]),f.dom7LiveListeners[p].push({listener:o,proxyListener:s}),f.addEventListener(p,s,a)}else for(u=0;u<c.length;u+=1){var d=c[u];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[d]||(f.dom7Listeners[d]=[]),f.dom7Listeners[d].push({listener:o,proxyListener:l}),f.addEventListener(d,l,a)}}return this}function co(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e[1],o=e[2],a=e[3];"function"===typeof e[1]&&(r=e[0],o=e[1],a=e[2],i=void 0),a||(a=!1);for(var s=r.split(" "),l=0;l<s.length;l+=1)for(var u=s[l],c=0;c<this.length;c+=1){var h=this[c],f=void 0;if(!i&&h.dom7Listeners?f=h.dom7Listeners[u]:i&&h.dom7LiveListeners&&(f=h.dom7LiveListeners[u]),f&&f.length)for(var p=f.length-1;p>=0;p-=1){var d=f[p];o&&d.listener===o||o&&d.listener&&d.listener.dom7proxy&&d.listener.dom7proxy===o?(h.removeEventListener(u,d.proxyListener,a),f.splice(p,1)):o||(h.removeEventListener(u,d.proxyListener,a),f.splice(p,1))}}return this}function ho(){var t=ji();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function fo(){var t=ji();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function po(){if(this.length>0){var t=ji(),e=Ri(),n=this[0],r=n.getBoundingClientRect(),i=e.body,o=n.clientTop||i.clientTop||0,a=n.clientLeft||i.clientLeft||0,s=n===t?t.scrollY:n.scrollTop,l=n===t?t.scrollX:n.scrollLeft;return{top:r.top+s-o,left:r.left+l-a}}return null}function go(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function vo(){for(var t=ji(),e=0;e<this.length;e+=1){var n=this[e];"none"===n.style.display&&(n.style.display=""),"none"===t.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function mo(t,e){var n,r=ji();if(1===arguments.length){if("string"!==typeof t){for(n=0;n<this.length;n+=1)for(var i in t)this[n].style[i]=t[i];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"===typeof t){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this}function yo(t){return t?(this.forEach((function(e,n){t.apply(e,[e,n])})),this):this}function bo(t){var e=Qi(this,t);return eo(e)}function xo(t){if("undefined"===typeof t)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function wo(t){if("undefined"===typeof t)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function Co(t){var e,n,r=ji(),i=Ri(),o=this[0];if(!o||"undefined"===typeof t)return!1;if("string"===typeof t){if(o.matches)return o.matches(t);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(t);if(o.msMatchesSelector)return o.msMatchesSelector(t);for(e=eo(t),n=0;n<e.length;n+=1)if(e[n]===o)return!0;return!1}if(t===i)return o===i;if(t===r)return o===r;if(t.nodeType||t instanceof Zi){for(e=t.nodeType?[t]:t,n=0;n<e.length;n+=1)if(e[n]===o)return!0;return!1}return!1}function So(){for(var t,e=Ri(),n=0;n<arguments.length;n+=1){t=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"===typeof t){var i=e.createElement("div");i.innerHTML=t;while(i.firstChild)this[r].appendChild(i.firstChild)}else if(t instanceof Zi)for(var o=0;o<t.length;o+=1)this[r].appendChild(t[o]);else this[r].appendChild(t)}return this}function Ao(t){var e,n,r=Ri();for(e=0;e<this.length;e+=1)if("string"===typeof t){var i=r.createElement("div");for(i.innerHTML=t,n=i.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(i.childNodes[n],this[e].childNodes[0])}else if(t instanceof Zi)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function Eo(t){for(var e=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(t?eo(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return eo(e)}function ko(t){for(var e=[],n=0;n<this.length;n+=1){var r=this[n].parentNode;while(r)t?eo(r).is(t)&&e.push(r):e.push(r),r=r.parentNode}return eo(e)}function Do(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(t),i=0;i<r.length;i+=1)e.push(r[i]);return eo(e)}function Fo(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].children,i=0;i<r.length;i+=1)t&&!eo(r[i]).is(t)||e.push(r[i]);return eo(e)}function Mo(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function Oo(){for(var t=0;t<this.length;t+=1){var e=this[t];if(1===e.nodeType){for(var n=0;n<e.childNodes.length;n+=1)e.childNodes[n].parentNode&&e.childNodes[n].parentNode.removeChild(e.childNodes[n]);e.textContent=""}}return this}eo.fn=Zi.prototype;var To="resize scroll".split(" ");function Bo(t){function e(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("undefined"===typeof n[0]){for(var i=0;i<this.length;i+=1)To.indexOf(t)<0&&(t in this[i]?this[i][t]():eo(this[i]).trigger(t));return this}return this.on.apply(this,[t].concat(n))}return e}var _o=Bo("click"),Io=Bo("focus"),Po=9007199254740991,Lo="[object Arguments]",Ro="[object Function]",No="[object GeneratorFunction]",jo=/^(?:0|[1-9]\d*)$/;function zo(t,e){var n=-1,r=t?t.length:0;while(++n<r)if(!1===e(t[n],n,t))break;return t}function Uo(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}function Vo(t,e){return function(n){return t(e(n))}}var Ho=Object.prototype,$o=Ho.hasOwnProperty,Go=Ho.toString,Wo=Ho.propertyIsEnumerable,qo=Vo(Object.keys,Object);function Xo(t,e){var n=oa(t)||ia(t)?Uo(t.length,String):[],r=n.length,i=!!r;for(var o in t)!e&&!$o.call(t,o)||i&&("length"==o||ea(o,r))||n.push(o);return n}var Zo=Jo(Qo),Yo=ta();function Qo(t,e){return t&&Yo(t,e,fa)}function Ko(t){if(!na(t))return qo(t);var e=[];for(var n in Object(t))$o.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Jo(t,e){return function(n,r){if(null==n)return n;if(!aa(n))return t(n,r);var i=n.length,o=e?i:-1,a=Object(n);while(e?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}function ta(t){return function(e,n,r){var i=-1,o=Object(e),a=r(e),s=a.length;while(s--){var l=a[t?s:++i];if(!1===n(o[l],l,o))break}return e}}function ea(t,e){return e=null==e?Po:e,!!e&&("number"==typeof t||jo.test(t))&&t>-1&&t%1==0&&t<e}function na(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Ho;return t===n}function ra(t,e){var n=oa(t)?zo:Zo;return n(t,"function"==typeof e?e:pa)}function ia(t){return sa(t)&&$o.call(t,"callee")&&(!Wo.call(t,"callee")||Go.call(t)==Lo)}var oa=Array.isArray;function aa(t){return null!=t&&ua(t.length)&&!la(t)}function sa(t){return ha(t)&&aa(t)}function la(t){var e=ca(t)?Go.call(t):"";return e==Ro||e==No}function ua(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Po}function ca(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ha(t){return!!t&&"object"==typeof t}function fa(t){return aa(t)?Xo(t):Ko(t)}function pa(t){return t}var da=ra;if("undefined"!==typeof navigator&&"ReactNative"===navigator.product&&"undefined"===typeof crypto)throw new Error("React Native does not have a built-in secure random generator. If you don’t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID.");if("undefined"!==typeof msCrypto&&"undefined"===typeof crypto)throw new Error("Import file with `if (!window.crypto) window.crypto = window.msCrypto` before importing Nano ID to fix IE 11 support");if("undefined"===typeof crypto)throw new Error("Your browser does not have secure random generator. If you don’t need unpredictable IDs, you can use nanoid/non-secure.");let ga=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));while(t--){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e};var va="Expected a function",ma=NaN,ya="[object Symbol]",ba=/^\s+|\s+$/g,xa=/^[-+]0x[0-9a-f]+$/i,wa=/^0b[01]+$/i,Ca=/^0o[0-7]+$/i,Sa=parseInt,Aa="object"==typeof Gn&&Gn&&Gn.Object===Object&&Gn,Ea="object"==typeof self&&self&&self.Object===Object&&self,ka=Aa||Ea||Function("return this")(),Da=Object.prototype,Fa=Da.toString,Ma=Math.max,Oa=Math.min,Ta=function(){return ka.Date.now()};function Ba(t,e,n){var r,i,o,a,s,l,u=0,c=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(va);function p(e){var n=r,o=i;return r=i=void 0,u=e,a=t.apply(o,n),a}function d(t){return u=t,s=setTimeout(m,e),c?p(t):a}function g(t){var n=t-l,r=t-u,i=e-n;return h?Oa(i,o-r):i}function v(t){var n=t-l,r=t-u;return void 0===l||n>=e||n<0||h&&r>=o}function m(){var t=Ta();if(v(t))return y(t);s=setTimeout(m,g(t))}function y(t){return s=void 0,f&&r?p(t):(r=i=void 0,a)}function b(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0}function x(){return void 0===s?a:y(Ta())}function w(){var t=Ta(),n=v(t);if(r=arguments,i=this,l=t,n){if(void 0===s)return d(l);if(h)return s=setTimeout(m,e),p(l)}return void 0===s&&(s=setTimeout(m,e)),a}return e=Ra(e)||0,Ia(n)&&(c=!!n.leading,h="maxWait"in n,o=h?Ma(Ra(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),w.cancel=b,w.flush=x,w}function _a(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError(va);return Ia(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ba(t,e,{leading:r,maxWait:e,trailing:i})}function Ia(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Pa(t){return!!t&&"object"==typeof t}function La(t){return"symbol"==typeof t||Pa(t)&&Fa.call(t)==ya}function Ra(t){if("number"==typeof t)return t;if(La(t))return ma;if(Ia(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ia(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(ba,"");var n=wa.test(t);return n||Ca.test(t)?Sa(t.slice(2),n?2:8):xa.test(t)?ma:+t}var Na=_a;function ja(t,e){return document.createElement(t,e)}function za(t,e,n){return document.createElementNS(t,e,n)}function Ua(t){return document.createTextNode(t)}function Va(t){return document.createComment(t)}function Ha(t,e,n){t.insertBefore(e,n)}function $a(t,e){t.removeChild(e)}function Ga(t,e){t.appendChild(e)}function Wa(t){return t.parentNode}function qa(t){return t.nextSibling}function Xa(t){return t.tagName}function Za(t,e){t.textContent=e}function Ya(t){return t.textContent}function Qa(t){return 1===t.nodeType}function Ka(t){return 3===t.nodeType}function Ja(t){return 8===t.nodeType}const ts={createElement:ja,createElementNS:za,createTextNode:Ua,createComment:Va,insertBefore:Ha,removeChild:$a,appendChild:Ga,parentNode:Wa,nextSibling:qa,tagName:Xa,setTextContent:Za,getTextContent:Ya,isElement:Qa,isText:Ka,isComment:Ja};function es(t,e,n,r,i){const o=void 0===e?void 0:e.key;return{sel:t,data:e,children:n,text:r,elm:i,key:o}}const ns=Array.isArray;function rs(t){return"string"===typeof t||"number"===typeof t||t instanceof String||t instanceof Number}function is(t){return void 0===t}function os(t){return void 0!==t}const as=es("",{},[],void 0,void 0);function ss(t,e){var n,r;const i=t.key===e.key,o=(null===(n=t.data)||void 0===n?void 0:n.is)===(null===(r=e.data)||void 0===r?void 0:r.is),a=t.sel===e.sel;return a&&i&&o}function ls(t){return void 0!==t.sel}function us(t,e,n){var r;const i={};for(let o=e;o<=n;++o){const e=null===(r=t[o])||void 0===r?void 0:r.key;void 0!==e&&(i[e]=o)}return i}const cs=["create","update","remove","destroy","pre","post"];function hs(t,e){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==e?e:ts;for(const f of cs)for(const e of t){const t=e[f];void 0!==t&&n[f].push(t)}function i(t){const e=t.id?"#"+t.id:"",n=t.getAttribute("class"),i=n?"."+n.split(" ").join("."):"";return es(r.tagName(t).toLowerCase()+e+i,{},[],void 0,t)}function o(t,e){return function(){if(0===--e){const e=r.parentNode(t);r.removeChild(e,t)}}}function a(t,e){var i,o;let s,l=t.data;if(void 0!==l){const e=null===(i=l.hook)||void 0===i?void 0:i.init;os(e)&&(e(t),l=t.data)}const u=t.children,c=t.sel;if("!"===c)is(t.text)&&(t.text=""),t.elm=r.createComment(t.text);else if(void 0!==c){const i=c.indexOf("#"),h=c.indexOf(".",i),f=i>0?i:c.length,p=h>0?h:c.length,d=-1!==i||-1!==h?c.slice(0,Math.min(f,p)):c,g=t.elm=os(l)&&os(s=l.ns)?r.createElementNS(s,d,l):r.createElement(d,l);for(f<p&&g.setAttribute("id",c.slice(f+1,p)),h>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),s=0;s<n.create.length;++s)n.create[s](as,t);if(ns(u))for(s=0;s<u.length;++s){const t=u[s];null!=t&&r.appendChild(g,a(t,e))}else rs(t.text)&&r.appendChild(g,r.createTextNode(t.text));const v=t.data.hook;os(v)&&(null===(o=v.create)||void 0===o||o.call(v,as,t),v.insert&&e.push(t))}else t.elm=r.createTextNode(t.text);return t.elm}function s(t,e,n,i,o,s){for(;i<=o;++i){const o=n[i];null!=o&&r.insertBefore(t,a(o,s),e)}}function l(t){var e,r;const i=t.data;if(void 0!==i){null===(r=null===(e=null===i||void 0===i?void 0:i.hook)||void 0===e?void 0:e.destroy)||void 0===r||r.call(e,t);for(let e=0;e<n.destroy.length;++e)n.destroy[e](t);if(void 0!==t.children)for(let e=0;e<t.children.length;++e){const n=t.children[e];null!=n&&"string"!==typeof n&&l(n)}}}function u(t,e,i,a){for(var s,u;i<=a;++i){let a,c;const h=e[i];if(null!=h)if(os(h.sel)){l(h),a=n.remove.length+1,c=o(h.elm,a);for(let e=0;e<n.remove.length;++e)n.remove[e](h,c);const t=null===(u=null===(s=null===h||void 0===h?void 0:h.data)||void 0===s?void 0:s.hook)||void 0===u?void 0:u.remove;os(t)?t(h,c):c()}else r.removeChild(t,h.elm)}}function c(t,e,n,i){let o,l,c,f,p=0,d=0,g=e.length-1,v=e[0],m=e[g],y=n.length-1,b=n[0],x=n[y];while(p<=g&&d<=y)null==v?v=e[++p]:null==m?m=e[--g]:null==b?b=n[++d]:null==x?x=n[--y]:ss(v,b)?(h(v,b,i),v=e[++p],b=n[++d]):ss(m,x)?(h(m,x,i),m=e[--g],x=n[--y]):ss(v,x)?(h(v,x,i),r.insertBefore(t,v.elm,r.nextSibling(m.elm)),v=e[++p],x=n[--y]):ss(m,b)?(h(m,b,i),r.insertBefore(t,m.elm,v.elm),m=e[--g],b=n[++d]):(void 0===o&&(o=us(e,p,g)),l=o[b.key],is(l)?r.insertBefore(t,a(b,i),v.elm):(c=e[l],c.sel!==b.sel?r.insertBefore(t,a(b,i),v.elm):(h(c,b,i),e[l]=void 0,r.insertBefore(t,c.elm,v.elm))),b=n[++d]);(p<=g||d<=y)&&(p>g?(f=null==n[y+1]?null:n[y+1].elm,s(t,f,n,d,y,i)):u(t,e,p,g))}function h(t,e,i){var o,a,l,h,f;const p=null===(o=e.data)||void 0===o?void 0:o.hook;null===(a=null===p||void 0===p?void 0:p.prepatch)||void 0===a||a.call(p,t,e);const d=e.elm=t.elm,g=t.children,v=e.children;if(t!==e){if(void 0!==e.data){for(let r=0;r<n.update.length;++r)n.update[r](t,e);null===(h=null===(l=e.data.hook)||void 0===l?void 0:l.update)||void 0===h||h.call(l,t,e)}is(e.text)?os(g)&&os(v)?g!==v&&c(d,g,v,i):os(v)?(os(t.text)&&r.setTextContent(d,""),s(d,null,v,0,v.length-1,i)):os(g)?u(d,g,0,g.length-1):os(t.text)&&r.setTextContent(d,""):t.text!==e.text&&(os(g)&&u(d,g,0,g.length-1),r.setTextContent(d,e.text)),null===(f=null===p||void 0===p?void 0:p.postpatch)||void 0===f||f.call(p,t,e)}}return function(t,e){let o,s,l;const c=[];for(o=0;o<n.pre.length;++o)n.pre[o]();for(ls(t)||(t=i(t)),ss(t,e)?h(t,e,c):(s=t.elm,l=r.parentNode(s),a(e,c),null!==l&&(r.insertBefore(l,e.elm,r.nextSibling(s)),u(l,[t],0,0))),o=0;o<c.length;++o)c[o].data.hook.insert(c[o]);for(o=0;o<n.post.length;++o)n.post[o]();return e}}function fs(t,e,n){if(t.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==e)for(let r=0;r<e.length;++r){const t=e[r].data;void 0!==t&&fs(t,e[r].children,e[r].sel)}}function ps(t,e,n){let r,i,o,a={};if(void 0!==n?(null!==e&&(a=e),ns(n)?r=n:rs(n)?i=n.toString():n&&n.sel&&(r=[n])):void 0!==e&&null!==e&&(ns(e)?r=e:rs(e)?i=e.toString():e&&e.sel?r=[e]:a=e),void 0!==r)for(o=0;o<r.length;++o)rs(r[o])&&(r[o]=es(void 0,void 0,void 0,r[o],void 0));return"s"!==t[0]||"v"!==t[1]||"g"!==t[2]||3!==t.length&&"."!==t[3]&&"#"!==t[3]||fs(a,r,t),es(t,a,r,i,void 0)}function ds(t,e){let n,r;const i=e.elm;let o=t.data.class,a=e.data.class;if((o||a)&&o!==a){for(r in o=o||{},a=a||{},o)o[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&i.classList.remove(r);for(r in a)n=a[r],n!==o[r]&&i.classList[n?"add":"remove"](r)}}const gs={create:ds,update:ds},vs=/[A-Z]/g;function ms(t,e){const n=e.elm;let r,i=t.data.dataset,o=e.data.dataset;if(!i&&!o)return;if(i===o)return;i=i||{},o=o||{};const a=n.dataset;for(r in i)o[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(vs,"-$&").toLowerCase()));for(r in o)i[r]!==o[r]&&(a?a[r]=o[r]:n.setAttribute("data-"+r.replace(vs,"-$&").toLowerCase(),o[r]))}const ys={create:ms,update:ms};function bs(t,e,n){if("function"===typeof t)t.call(e,n,e);else if("object"===typeof t)for(let r=0;r<t.length;r++)bs(t[r],e,n)}function xs(t,e){const n=t.type,r=e.data.on;r&&r[n]&&bs(r[n],e,t)}function ws(){return function t(e){xs(e,t.vnode)}}function Cs(t,e){const n=t.data.on,r=t.listener,i=t.elm,o=e&&e.data.on,a=e&&e.elm;let s;if(n!==o){if(n&&r)if(o)for(s in n)o[s]||i.removeEventListener(s,r,!1);else for(s in n)i.removeEventListener(s,r,!1);if(o){const r=e.listener=t.listener||ws();if(r.vnode=e,n)for(s in o)n[s]||a.addEventListener(s,r,!1);else for(s in o)a.addEventListener(s,r,!1)}}}const Ss={create:Cs,update:Cs,destroy:Cs};function As(t,e){let n,r,i;const o=e.elm;let a=t.data.props,s=e.data.props;if((a||s)&&a!==s)for(n in a=a||{},s=s||{},s)r=s[n],i=a[n],i===r||"value"===n&&o[n]===r||(o[n]=r)}const Es={create:As,update:As},ks="undefined"!==typeof window&&window.requestAnimationFrame.bind(window)||setTimeout,Ds=function(t){ks((function(){ks(t)}))};let Fs=!1;function Ms(t,e,n){Ds((function(){t[e]=n}))}function Os(t,e){let n,r;const i=e.elm;let o=t.data.style,a=e.data.style;if(!o&&!a)return;if(o===a)return;o=o||{},a=a||{};const s="delayed"in o;for(r in o)a[r]||("-"===r[0]&&"-"===r[1]?i.style.removeProperty(r):i.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const t in a.delayed)n=a.delayed[t],s&&n===o.delayed[t]||Ms(i.style,t,n);else"remove"!==r&&n!==o[r]&&("-"===r[0]&&"-"===r[1]?i.style.setProperty(r,n):i.style[r]=n)}function Ts(t){let e,n;const r=t.elm,i=t.data.style;if(i&&(e=i.destroy))for(n in e)r.style[n]=e[n]}function Bs(t,e){const n=t.data.style;if(!n||!n.remove)return void e();let r;Fs||(t.elm.offsetLeft,Fs=!0);const i=t.elm;let o=0;const a=n.remove;let s=0;const l=[];for(r in a)l.push(r),i.style[r]=a[r];const u=getComputedStyle(i),c=u["transition-property"].split(", ");for(;o<c.length;++o)-1!==l.indexOf(c[o])&&s++;i.addEventListener("transitionend",(function(t){t.target===i&&--s,0===s&&e()}))}function _s(){Fs=!1}const Is={pre:_s,create:Os,update:Os,destroy:Ts,remove:Bs};function Ps(t,e){for(const n of t)void 0!==n&&null!==n&&!1!==n&&""!==n&&(Array.isArray(n)?Ps(n,e):"string"===typeof n||"number"===typeof n||"boolean"===typeof n?e.push(es(void 0,void 0,void 0,String(n),void 0)):e.push(n));return e}function Ls(t,e,...n){const r=Ps(n,[]);return"function"===typeof t?t(e,r):1===r.length&&!r[0].sel&&r[0].text?ps(t,e,r[0].text):ps(t,e,r)}Ls||(Ls={});var Rs=1/0,Ns="[object Symbol]",js=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,zs=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Us="\\ud800-\\udfff",Vs="\\u0300-\\u036f\\ufe20-\\ufe23",Hs="\\u20d0-\\u20f0",$s="\\u2700-\\u27bf",Gs="a-z\\xdf-\\xf6\\xf8-\\xff",Ws="\\xac\\xb1\\xd7\\xf7",qs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xs="\\u2000-\\u206f",Zs=" \\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",Ys="A-Z\\xc0-\\xd6\\xd8-\\xde",Qs="\\ufe0e\\ufe0f",Ks=Ws+qs+Xs+Zs,Js="['’]",tl="["+Us+"]",el="["+Ks+"]",nl="["+Vs+Hs+"]",rl="\\d+",il="["+$s+"]",ol="["+Gs+"]",al="[^"+Us+Ks+rl+$s+Gs+Ys+"]",sl="\\ud83c[\\udffb-\\udfff]",ll="(?:"+nl+"|"+sl+")",ul="[^"+Us+"]",cl="(?:\\ud83c[\\udde6-\\uddff]){2}",hl="[\\ud800-\\udbff][\\udc00-\\udfff]",fl="["+Ys+"]",pl="\\u200d",dl="(?:"+ol+"|"+al+")",gl="(?:"+fl+"|"+al+")",vl="(?:"+Js+"(?:d|ll|m|re|s|t|ve))?",ml="(?:"+Js+"(?:D|LL|M|RE|S|T|VE))?",yl=ll+"?",bl="["+Qs+"]?",xl="(?:"+pl+"(?:"+[ul,cl,hl].join("|")+")"+bl+yl+")*",wl=bl+yl+xl,Cl="(?:"+[il,cl,hl].join("|")+")"+wl,Sl="(?:"+[ul+nl+"?",nl,cl,hl,tl].join("|")+")",Al=RegExp(Js,"g"),El=RegExp(nl,"g"),kl=RegExp(sl+"(?="+sl+")|"+Sl+wl,"g"),Dl=RegExp([fl+"?"+ol+"+"+vl+"(?="+[el,fl,"$"].join("|")+")",gl+"+"+ml+"(?="+[el,fl+dl,"$"].join("|")+")",fl+"?"+dl+"+"+vl,fl+"+"+ml,rl,Cl].join("|"),"g"),Fl=RegExp("["+pl+Us+Vs+Hs+Qs+"]"),Ml=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ol={"À":"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","ſ":"ss"},Tl="object"==typeof Gn&&Gn&&Gn.Object===Object&&Gn,Bl="object"==typeof self&&self&&self.Object===Object&&self,_l=Tl||Bl||Function("return this")();function Il(t,e,n,r){var i=-1,o=t?t.length:0;r&&o&&(n=t[++i]);while(++i<o)n=e(n,t[i],i,t);return n}function Pl(t){return t.split("")}function Ll(t){return t.match(js)||[]}function Rl(t){return function(e){return null==t?void 0:t[e]}}var Nl=Rl(Ol);function jl(t){return Fl.test(t)}function zl(t){return Ml.test(t)}function Ul(t){return jl(t)?Vl(t):Pl(t)}function Vl(t){return t.match(kl)||[]}function Hl(t){return t.match(Dl)||[]}var $l=Object.prototype,Gl=$l.toString,Wl=_l.Symbol,ql=Wl?Wl.prototype:void 0,Xl=ql?ql.toString:void 0;function Zl(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;var o=Array(i);while(++r<i)o[r]=t[r+e];return o}function Yl(t){if("string"==typeof t)return t;if(eu(t))return Xl?Xl.call(t):"";var e=t+"";return"0"==e&&1/t==-Rs?"-0":e}function Ql(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Zl(t,e,n)}function Kl(t){return function(e){e=nu(e);var n=jl(e)?Ul(e):void 0,r=n?n[0]:e.charAt(0),i=n?Ql(n,1).join(""):e.slice(1);return r[t]()+i}}function Jl(t){return function(e){return Il(su(ou(e).replace(Al,"")),t,"")}}function tu(t){return!!t&&"object"==typeof t}function eu(t){return"symbol"==typeof t||tu(t)&&Gl.call(t)==Ns}function nu(t){return null==t?"":Yl(t)}var ru=Jl((function(t,e,n){return e=e.toLowerCase(),t+(n?iu(e):e)}));function iu(t){return au(nu(t).toLowerCase())}function ou(t){return t=nu(t),t&&t.replace(zs,Nl).replace(El,"")}var au=Kl("toUpperCase");function su(t,e,n){return t=nu(t),e=n?void 0:e,void 0===e?zl(t)?Hl(t):Ll(t):t.match(e)||[]}for(var lu=ru,uu="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),cu={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},hu={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:uu?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},fu={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},pu=1;pu<20;pu++)fu["f"+pu]=111+pu;function du(t,e,n){e&&!("byKey"in e)&&(n=e,e=null),Array.isArray(t)||(t=[t]);var r=t.map((function(t){return vu(t,e)})),i=function(t){return r.some((function(e){return mu(e,t)}))},o=null==n?i:i(n);return o}function gu(t,e){return du(t,{byKey:!0},e)}function vu(t,e){var n=e&&e.byKey,r={};t=t.replace("++","+add");var i=t.split("+"),o=i.length;for(var a in cu)r[cu[a]]=!1;var s=!0,l=!1,u=void 0;try{for(var c,h=i[Symbol.iterator]();!(s=(c=h.next()).done);s=!0){var f=c.value,p=f.endsWith("?")&&f.length>1;p&&(f=f.slice(0,-1));var d=bu(f),g=cu[d];if(f.length>1&&!g&&!hu[f]&&!fu[d])throw new TypeError('Unknown modifier: "'+f+'"');1!==o&&g||(n?r.key=d:r.which=yu(f)),g&&(r[g]=!p||null)}}catch(v){l=!0,u=v}finally{try{!s&&h.return&&h.return()}finally{if(l)throw u}}return r}function mu(t,e){for(var n in t){var r=t[n],i=void 0;if(null!=r&&(i="key"===n&&null!=e.key?e.key.toLowerCase():"which"===n?91===r&&93===e.which?91:e.which:e[n],(null!=i||!1!==r)&&i!==r))return!1}return!0}function yu(t){t=bu(t);var e=fu[t]||t.toUpperCase().charCodeAt(0);return e}function bu(t){return t=t.toLowerCase(),t=hu[t]||t,t}var xu=du,wu=gu,Cu="Expected a function",Su=NaN,Au="[object Symbol]",Eu=/^\s+|\s+$/g,ku=/^[-+]0x[0-9a-f]+$/i,Du=/^0b[01]+$/i,Fu=/^0o[0-7]+$/i,Mu=parseInt,Ou="object"==typeof Gn&&Gn&&Gn.Object===Object&&Gn,Tu="object"==typeof self&&self&&self.Object===Object&&self,Bu=Ou||Tu||Function("return this")(),_u=Object.prototype,Iu=_u.toString,Pu=Math.max,Lu=Math.min,Ru=function(){return Bu.Date.now()};function Nu(t,e,n){var r,i,o,a,s,l,u=0,c=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(Cu);function p(e){var n=r,o=i;return r=i=void 0,u=e,a=t.apply(o,n),a}function d(t){return u=t,s=setTimeout(m,e),c?p(t):a}function g(t){var n=t-l,r=t-u,i=e-n;return h?Lu(i,o-r):i}function v(t){var n=t-l,r=t-u;return void 0===l||n>=e||n<0||h&&r>=o}function m(){var t=Ru();if(v(t))return y(t);s=setTimeout(m,g(t))}function y(t){return s=void 0,f&&r?p(t):(r=i=void 0,a)}function b(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0}function x(){return void 0===s?a:y(Ru())}function w(){var t=Ru(),n=v(t);if(r=arguments,i=this,l=t,n){if(void 0===s)return d(l);if(h)return s=setTimeout(m,e),p(l)}return void 0===s&&(s=setTimeout(m,e)),a}return e=Vu(e)||0,ju(n)&&(c=!!n.leading,h="maxWait"in n,o=h?Pu(Vu(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),w.cancel=b,w.flush=x,w}function ju(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function zu(t){return!!t&&"object"==typeof t}function Uu(t){return"symbol"==typeof t||zu(t)&&Iu.call(t)==Au}function Vu(t){if("number"==typeof t)return t;if(Uu(t))return Su;if(ju(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ju(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Eu,"");var n=Du.test(t);return n||Fu.test(t)?Mu(t.slice(2),n?2:8):ku.test(t)?Su:+t}var Hu,$u=Nu,Gu=Wn((function(t,e){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",h="[object GeneratorFunction]",f="[object Map]",p="[object Number]",d="[object Object]",g="[object Promise]",v="[object RegExp]",m="[object Set]",y="[object String]",b="[object Symbol]",x="[object WeakMap]",w="[object ArrayBuffer]",C="[object DataView]",S="[object Float32Array]",A="[object Float64Array]",E="[object Int8Array]",k="[object Int16Array]",D="[object Int32Array]",F="[object Uint8Array]",M="[object Uint8ClampedArray]",O="[object Uint16Array]",T="[object Uint32Array]",B=/[\\^$.*+?()[\]{}|]/g,_=/\w*$/,I=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,L={};L[o]=L[a]=L[w]=L[C]=L[s]=L[l]=L[S]=L[A]=L[E]=L[k]=L[D]=L[f]=L[p]=L[d]=L[v]=L[m]=L[y]=L[b]=L[F]=L[M]=L[O]=L[T]=!0,L[u]=L[c]=L[x]=!1;var R="object"==typeof Gn&&Gn&&Gn.Object===Object&&Gn,N="object"==typeof self&&self&&self.Object===Object&&self,j=R||N||Function("return this")(),z=e&&!e.nodeType&&e,U=z&&t&&!t.nodeType&&t,V=U&&U.exports===z;function H(t,e){return t.set(e[0],e[1]),t}function $(t,e){return t.add(e),t}function G(t,e){var n=-1,r=t?t.length:0;while(++n<r)if(!1===e(t[n],n,t))break;return t}function W(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}function q(t,e,n,r){var i=-1,o=t?t.length:0;r&&o&&(n=t[++i]);while(++i<o)n=e(n,t[i],i,t);return n}function X(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}function Z(t,e){return null==t?void 0:t[e]}function Y(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function Q(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function K(t,e){return function(n){return t(e(n))}}function J(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var tt=Array.prototype,et=Function.prototype,nt=Object.prototype,rt=j["__core-js_shared__"],it=function(){var t=/[^.]+$/.exec(rt&&rt.keys&&rt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ot=et.toString,at=nt.hasOwnProperty,st=nt.toString,lt=RegExp("^"+ot.call(at).replace(B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=V?j.Buffer:void 0,ct=j.Symbol,ht=j.Uint8Array,ft=K(Object.getPrototypeOf,Object),pt=Object.create,dt=nt.propertyIsEnumerable,gt=tt.splice,vt=Object.getOwnPropertySymbols,mt=ut?ut.isBuffer:void 0,yt=K(Object.keys,Object),bt=Ee(j,"DataView"),xt=Ee(j,"Map"),wt=Ee(j,"Promise"),Ct=Ee(j,"Set"),St=Ee(j,"WeakMap"),At=Ee(Object,"create"),Et=Pe(bt),kt=Pe(xt),Dt=Pe(wt),Ft=Pe(Ct),Mt=Pe(St),Ot=ct?ct.prototype:void 0,Tt=Ot?Ot.valueOf:void 0;function Bt(t){var e=-1,n=t?t.length:0;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function _t(){this.__data__=At?At(null):{}}function It(t){return this.has(t)&&delete this.__data__[t]}function Pt(t){var e=this.__data__;if(At){var n=e[t];return n===r?void 0:n}return at.call(e,t)?e[t]:void 0}function Lt(t){var e=this.__data__;return At?void 0!==e[t]:at.call(e,t)}function Rt(t,e){var n=this.__data__;return n[t]=At&&void 0===e?r:e,this}function Nt(t){var e=-1,n=t?t.length:0;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function jt(){this.__data__=[]}function zt(t){var e=this.__data__,n=ie(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():gt.call(e,n,1),!0}function Ut(t){var e=this.__data__,n=ie(e,t);return n<0?void 0:e[n][1]}function Vt(t){return ie(this.__data__,t)>-1}function Ht(t,e){var n=this.__data__,r=ie(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}function $t(t){var e=-1,n=t?t.length:0;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Gt(){this.__data__={hash:new Bt,map:new(xt||Nt),string:new Bt}}function Wt(t){return Ae(this,t)["delete"](t)}function qt(t){return Ae(this,t).get(t)}function Xt(t){return Ae(this,t).has(t)}function Zt(t,e){return Ae(this,t).set(t,e),this}function Yt(t){this.__data__=new Nt(t)}function Qt(){this.__data__=new Nt}function Kt(t){return this.__data__["delete"](t)}function Jt(t){return this.__data__.get(t)}function te(t){return this.__data__.has(t)}function ee(t,e){var r=this.__data__;if(r instanceof Nt){var i=r.__data__;if(!xt||i.length<n-1)return i.push([t,e]),this;r=this.__data__=new $t(i)}return r.set(t,e),this}function ne(t,e){var n=je(t)||Ne(t)?X(t.length,String):[],r=n.length,i=!!r;for(var o in t)!e&&!at.call(t,o)||i&&("length"==o||Te(o,r))||n.push(o);return n}function re(t,e,n){var r=t[e];at.call(t,e)&&Re(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function ie(t,e){var n=t.length;while(n--)if(Re(t[n][0],e))return n;return-1}function oe(t,e){return t&&we(e,qe(e),t)}function ae(t,e,n,r,i,a,s){var l;if(r&&(l=a?r(t,i,a,s):r(t)),void 0!==l)return l;if(!Ge(t))return t;var u=je(t);if(u){if(l=Fe(t),!e)return xe(t,l)}else{var f=De(t),p=f==c||f==h;if(Ve(t))return fe(t,e);if(f==d||f==o||p&&!a){if(Y(t))return a?t:{};if(l=Me(p?{}:t),!e)return Ce(t,oe(l,t))}else{if(!L[f])return a?t:{};l=Oe(t,f,ae,e)}}s||(s=new Yt);var g=s.get(t);if(g)return g;if(s.set(t,l),!u)var v=n?Se(t):qe(t);return G(v||t,(function(i,o){v&&(o=i,i=t[o]),re(l,o,ae(i,e,n,r,o,t,s))})),l}function se(t){return Ge(t)?pt(t):{}}function le(t,e,n){var r=e(t);return je(t)?r:W(r,n(t))}function ue(t){return st.call(t)}function ce(t){if(!Ge(t)||_e(t))return!1;var e=He(t)||Y(t)?lt:I;return e.test(Pe(t))}function he(t){if(!Ie(t))return yt(t);var e=[];for(var n in Object(t))at.call(t,n)&&"constructor"!=n&&e.push(n);return e}function fe(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function pe(t){var e=new t.constructor(t.byteLength);return new ht(e).set(new ht(t)),e}function de(t,e){var n=e?pe(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function ge(t,e,n){var r=e?n(Q(t),!0):Q(t);return q(r,H,new t.constructor)}function ve(t){var e=new t.constructor(t.source,_.exec(t));return e.lastIndex=t.lastIndex,e}function me(t,e,n){var r=e?n(J(t),!0):J(t);return q(r,$,new t.constructor)}function ye(t){return Tt?Object(Tt.call(t)):{}}function be(t,e){var n=e?pe(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function xe(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}function we(t,e,n,r){n||(n={});var i=-1,o=e.length;while(++i<o){var a=e[i],s=r?r(n[a],t[a],a,n,t):void 0;re(n,a,void 0===s?t[a]:s)}return n}function Ce(t,e){return we(t,ke(t),e)}function Se(t){return le(t,qe,ke)}function Ae(t,e){var n=t.__data__;return Be(e)?n["string"==typeof e?"string":"hash"]:n.map}function Ee(t,e){var n=Z(t,e);return ce(n)?n:void 0}Bt.prototype.clear=_t,Bt.prototype["delete"]=It,Bt.prototype.get=Pt,Bt.prototype.has=Lt,Bt.prototype.set=Rt,Nt.prototype.clear=jt,Nt.prototype["delete"]=zt,Nt.prototype.get=Ut,Nt.prototype.has=Vt,Nt.prototype.set=Ht,$t.prototype.clear=Gt,$t.prototype["delete"]=Wt,$t.prototype.get=qt,$t.prototype.has=Xt,$t.prototype.set=Zt,Yt.prototype.clear=Qt,Yt.prototype["delete"]=Kt,Yt.prototype.get=Jt,Yt.prototype.has=te,Yt.prototype.set=ee;var ke=vt?K(vt,Object):Xe,De=ue;function Fe(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&at.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Me(t){return"function"!=typeof t.constructor||Ie(t)?{}:se(ft(t))}function Oe(t,e,n,r){var i=t.constructor;switch(e){case w:return pe(t);case s:case l:return new i(+t);case C:return de(t,r);case S:case A:case E:case k:case D:case F:case M:case O:case T:return be(t,r);case f:return ge(t,r,n);case p:case y:return new i(t);case v:return ve(t);case m:return me(t,r,n);case b:return ye(t)}}function Te(t,e){return e=null==e?i:e,!!e&&("number"==typeof t||P.test(t))&&t>-1&&t%1==0&&t<e}function Be(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function _e(t){return!!it&&it in t}function Ie(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||nt;return t===n}function Pe(t){if(null!=t){try{return ot.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Le(t){return ae(t,!0,!0)}function Re(t,e){return t===e||t!==t&&e!==e}function Ne(t){return Ue(t)&&at.call(t,"callee")&&(!dt.call(t,"callee")||st.call(t)==o)}(bt&&De(new bt(new ArrayBuffer(1)))!=C||xt&&De(new xt)!=f||wt&&De(wt.resolve())!=g||Ct&&De(new Ct)!=m||St&&De(new St)!=x)&&(De=function(t){var e=st.call(t),n=e==d?t.constructor:void 0,r=n?Pe(n):void 0;if(r)switch(r){case Et:return C;case kt:return f;case Dt:return g;case Ft:return m;case Mt:return x}return e});var je=Array.isArray;function ze(t){return null!=t&&$e(t.length)&&!He(t)}function Ue(t){return We(t)&&ze(t)}var Ve=mt||Ze;function He(t){var e=Ge(t)?st.call(t):"";return e==c||e==h}function $e(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}function Ge(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function We(t){return!!t&&"object"==typeof t}function qe(t){return ze(t)?ne(t):he(t)}function Xe(){return[]}function Ze(){return!1}t.exports=Le})),Wu=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};function qu(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Xu=0;function Zu(t){return"__private_"+Xu+++"_"+t}function Yu(t,e,n){const r=[];return t.forEach((t=>"string"!==typeof t?r.push(t):e[Symbol.split](t).forEach(((t,e,i)=>{""!==t&&r.push(t),e<i.length-1&&r.push(n)})))),r}
- /**
- * Takes a string with placeholder variables like `%{smart_count} file selected`
- * and replaces it with values from options `{smart_count: 5}`
- *
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
- *
- * @param {string} phrase that needs interpolation, with placeholders
- * @param {object} options with values that will be used to replace placeholders
- * @returns {any[]} interpolated
- */function Qu(t,e){const n=/\$/g,r="$$$$";let i=[t];if(null==e)return i;for(const o of Object.keys(e))if("_"!==o){let t=e[o];"string"===typeof t&&(t=n[Symbol.replace](t,r)),i=Yu(i,new RegExp(`%\\{${o}\\}`,"g"),t)}return i}var Ku=(Hu=Zu("apply"),class{constructor(t){Object.defineProperty(this,Hu,{value:Ju}),this.locale={strings:{},pluralize(t){return 1===t?0:1}},Array.isArray(t)?t.forEach(qu(this,Hu)[Hu],this):qu(this,Hu)[Hu](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!Wu(this.locale.strings,t))throw new Error(`missing string: ${t}`);const n=this.locale.strings[t],r="object"===typeof n;if(r){if(e&&"undefined"!==typeof e.smart_count){const t=this.locale.pluralize(e.smart_count);return Qu(n[t],e)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return Qu(n,e)}});function Ju(t){if(null==t||!t.strings)return;const e=this.locale;this.locale={...e,strings:{...e.strings,...t.strings}},this.locale.pluralize=t.pluralize||e.pluralize}var tc=function(){var t={},e=t._fns={};function n(t){var n=e[t]?e[t]:[],r=t.indexOf(":"),i=-1===r?[t]:[t.substring(0,r),t.substring(r+1)],o=Object.keys(e),a=0,s=o.length;for(a;a<s;a++){var l=o[a];if("*"===l&&(n=n.concat(e[l])),2===i.length&&i[0]===l){n=n.concat(e[l]);break}}return n}function r(t,e,n){var r=0,i=e.length;for(r;r<i;r++){if(!e[r])break;e[r].event=t,e[r].apply(e[r],n)}}return t.emit=function(t,e,i,o,a,s,l){var u=n(t);u.length&&r(t,u,[e,i,o,a,s,l])},t.on=function(t,n){e[t]||(e[t]=[]),e[t].push(n)},t.once=function(e,n){function r(){n.apply(this,arguments),t.off(e,r)}this.on(e,r)},t.off=function(t,e){var n=[];if(t&&e){var r=this._fns[t],i=0,o=r?r.length:0;for(i;i<o;i++)r[i]!==e&&n.push(r[i])}n.length?this._fns[t]=n:delete this._fns[t]},t};let ec="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var nc={urlAlphabet:ec};let{urlAlphabet:rc}=nc;if("undefined"!==typeof navigator&&"ReactNative"===navigator.product&&"undefined"===typeof crypto)throw new Error("React Native does not have a built-in secure random generator. If you don’t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID.");if("undefined"!==typeof msCrypto&&"undefined"===typeof crypto)throw new Error("Import file with `if (!window.crypto) window.crypto = window.msCrypto` before importing Nano ID to fix IE 11 support");if("undefined"===typeof crypto)throw new Error("Your browser does not have secure random generator. If you don’t need unpredictable IDs, you can use nanoid/non-secure.");let ic=t=>crypto.getRandomValues(new Uint8Array(t)),oc=(t,e,n)=>{let r=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*r*e/t.length);return()=>{let o="";while(1){let a=n(i),s=i;while(s--)if(o+=t[a[s]&r]||"",o.length===e)return o}}},ac=(t,e)=>oc(t,e,ic),sc=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));while(t--){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e};var lc={nanoid:sc,customAlphabet:ac,customRandom:oc,urlAlphabet:rc,random:ic},uc=function(t){if("number"!==typeof t||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var r=Math.min(Math.floor(Math.log(t)/Math.log(1024)),n.length-1);t=Number(t/Math.pow(1024,r));var i=n[r];return t>=10||t%1===0?(e?"-":"")+t.toFixed(0)+" "+i:(e?"-":"")+t.toFixed(1)+" "+i};function cc(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}cc.prototype.match=function(t){var e,n,r=!0,i=this.parts,o=i.length;if("string"==typeof t||t instanceof String)if(this.hasWild||this.text==t){for(n=(t||"").split(this.separator),e=0;r&&e<o;e++)"*"!==i[e]&&(r=e<n.length&&i[e]===n[e]);r=r&&n}else r=!1;else if("function"==typeof t.splice)for(r=[],e=t.length;e--;)this.match(t[e])&&(r[r.length]=t[e]);else if("object"==typeof t)for(var a in r={},t)this.match(a)&&(r[a]=t[a]);return r};var hc=function(t,e,n){var r=new cc(t,n||/[\/\.]/);return"undefined"!=typeof e?r.match(e):r},fc=/[\/\+\.]/,pc=function(t,e){function n(e){var n=hc(e,t,fc);return n&&n.length>=2}return e?n(e.split(";")[0]):n};function dc(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var gc=0;function vc(t){return"__private_"+gc+++"_"+t}var mc=vc("publish");class yc{constructor(){Object.defineProperty(this,mc,{value:bc}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const e={...this.state},n={...this.state,...t};this.state=n,dc(this,mc)[mc](e,n,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function bc(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.callbacks.forEach((t=>{t(...e)}))}yc.VERSION="2.0.3";var xc=function(){return new yc},wc=function(t){const e=t.lastIndexOf(".");return-1===e||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}},Cc={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"},Sc=function(t){var e;if(t.type)return t.type;const n=t.name?null==(e=wc(t.name).extension)?void 0:e.toLowerCase():null;return n&&n in Cc?Cc[n]:"application/octet-stream"};function Ac(t){return t.charCodeAt(0).toString(32)}function Ec(t){let e="";return t.replace(/[^A-Z0-9]/gi,(t=>(e+=`-${Ac(t)}`,"/")))+e}var kc=function(t){let e="uppy";return"string"===typeof t.name&&(e+=`-${Ec(t.name.toLowerCase())}`),void 0!==t.type&&(e+=`-${t.type}`),t.meta&&"string"===typeof t.meta.relativePath&&(e+=`-${Ec(t.meta.relativePath.toLowerCase())}`),void 0!==t.data.size&&(e+=`-${t.data.size}`),void 0!==t.data.lastModified&&(e+=`-${t.data.lastModified}`),e},Dc=function(t){if(null==t&&(t="undefined"!==typeof navigator?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const n=e[1];let[r,i]=n.split(".");return r=parseInt(r,10),i=parseInt(i,10),r<15||15===r&&i<15063||(r>18||18===r&&i>=18218)},Fc=function(t,e){return e.name?e.name:"image"===t.split("/")[0]?`${t.split("/")[0]}.${t.split("/")[1]}`:"noname"};function Mc(t){return t<10?`0${t}`:t.toString()}var Oc=function(){const t=new Date,e=Mc(t.getHours()),n=Mc(t.getMinutes()),r=Mc(t.getSeconds());return`${e}:${n}:${r}`};const Tc={debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${Oc()}]`,...e)}},Bc={debug:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.debug(`[Uppy] [${Oc()}]`,...e)},warn:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.warn(`[Uppy] [${Oc()}]`,...e)},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${Oc()}]`,...e)}};var _c={justErrorsLogger:Tc,debugLogger:Bc},Ic={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},Pc=lc;let Lc,Rc;function Nc(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var jc=0;function zc(t){return"__private_"+jc+++"_"+t}const{nanoid:Uc}=Pc,{justErrorsLogger:Vc,debugLogger:Hc}=_c;class $c extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"===typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class Gc extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Wc=zc("plugins"),qc=zc("storeUnsubscribe"),Xc=zc("emitter"),Zc=zc("preProcessors"),Yc=zc("uploaders"),Qc=zc("postProcessors"),Kc=zc("checkRestrictions"),Jc=zc("checkMinNumberOfFiles"),th=zc("checkRequiredMetaFieldsOnFile"),eh=zc("checkRequiredMetaFields"),nh=zc("showOrLogErrorAndThrow"),rh=zc("assertNewUploadAllowed"),ih=zc("checkAndCreateFileStateObject"),oh=zc("startIfAutoProceed"),ah=zc("addListeners"),sh=zc("updateOnlineStatus"),lh=zc("createUpload"),uh=zc("getUpload"),ch=zc("removeUpload"),hh=zc("runUpload");Lc=Symbol.for("uppy test: getPlugins"),Rc=Symbol.for("uppy test: createUpload");class fh{constructor(t){Object.defineProperty(this,hh,{value:Eh}),Object.defineProperty(this,ch,{value:Ah}),Object.defineProperty(this,uh,{value:Sh}),Object.defineProperty(this,lh,{value:Ch}),Object.defineProperty(this,ah,{value:wh}),Object.defineProperty(this,oh,{value:xh}),Object.defineProperty(this,ih,{value:bh}),Object.defineProperty(this,rh,{value:yh}),Object.defineProperty(this,nh,{value:mh}),Object.defineProperty(this,eh,{value:vh}),Object.defineProperty(this,th,{value:gh}),Object.defineProperty(this,Jc,{value:dh}),Object.defineProperty(this,Kc,{value:ph}),Object.defineProperty(this,Wc,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,qc,{writable:!0,value:void 0}),Object.defineProperty(this,Xc,{writable:!0,value:tc()}),Object.defineProperty(this,Zc,{writable:!0,value:new Set}),Object.defineProperty(this,Yc,{writable:!0,value:new Set}),Object.defineProperty(this,Qc,{writable:!0,value:new Set}),Object.defineProperty(this,sh,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Ic;const e={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:t=>t,onBeforeUpload:t=>t,store:xc(),logger:Vc,infoTimeout:5e3};if(this.opts={...e,...t,restrictions:{...e.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=Hc),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Na(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Dc(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Nc(this,qc)[qc]=this.store.subscribe(((t,e,n)=>{this.emit("state-update",t,e,n),this.updateAll(e)})),this.opts.debug&&"undefined"!==typeof window&&(window[this.opts.id]=this),Nc(this,ah)[ah]()}emit(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];Nc(this,Xc)[Xc].emit(t,...n)}on(t,e){return Nc(this,Xc)[Xc].on(t,e),this}once(t,e){return Nc(this,Xc)[Xc].once(t,e),this}off(t,e){return Nc(this,Xc)[Xc].off(t,e),this}updateAll(t){this.iteratePlugins((e=>{e.update(t)}))}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,e){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...e}}})}i18nInit(){const t=new Ku([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins((t=>{t.setOptions()})),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},e={...this.getState().files},n={};Object.keys(e).forEach((r=>{const i={...e[r]};i.progress={...i.progress,...t},n[r]=i})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){Nc(this,Zc)[Zc].add(t)}removePreProcessor(t){return Nc(this,Zc)[Zc].delete(t)}addPostProcessor(t){Nc(this,Qc)[Qc].add(t)}removePostProcessor(t){return Nc(this,Qc)[Qc].delete(t)}addUploader(t){Nc(this,Yc)[Yc].add(t)}removeUploader(t){return Nc(this,Yc)[Yc].delete(t)}setMeta(t){const e={...this.getState().meta,...t},n={...this.getState().files};Object.keys(n).forEach((e=>{n[e]={...n[e],meta:{...n[e].meta,...t}}})),this.log("Adding metadata:"),this.log(t),this.setState({meta:e,files:n})}setFileMeta(t,e){const n={...this.getState().files};if(!n[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const r={...n[t].meta,...e};n[t]={...n[t],meta:r},this.setState({files:n})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:e,error:n}=this.getState(),r=Object.values(t),i=r.filter((t=>{let{progress:e}=t;return!e.uploadComplete&&e.uploadStarted})),o=r.filter((t=>!t.progress.uploadStarted)),a=r.filter((t=>t.progress.uploadStarted||t.progress.preprocess||t.progress.postprocess)),s=r.filter((t=>t.progress.uploadStarted)),l=r.filter((t=>t.isPaused)),u=r.filter((t=>t.progress.uploadComplete)),c=r.filter((t=>t.error)),h=i.filter((t=>!t.isPaused)),f=r.filter((t=>t.progress.preprocess||t.progress.postprocess));return{newFiles:o,startedFiles:a,uploadStartedFiles:s,pausedFiles:l,completeFiles:u,erroredFiles:c,inProgressFiles:i,inProgressNotPausedFiles:h,processingFiles:f,isUploadStarted:s.length>0,isAllComplete:100===e&&u.length===r.length&&0===f.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==i.length&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:r.some((t=>t.isGhost))}}validateRestrictions(t,e){try{return Nc(this,Kc)[Kc](t,e),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(t){const{files:e}=this.getState();return!(!e[t]||e[t].isGhost)}addFile(t){Nc(this,rh)[rh](t);const{files:e}=this.getState();let n=Nc(this,ih)[ih](e,t);return e[n.id]&&e[n.id].isGhost&&(n={...e[n.id],data:t.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...e,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Nc(this,oh)[oh](),n.id}addFiles(t){Nc(this,rh)[rh]();const e={...this.getState().files},n=[],r=[];for(let o=0;o<t.length;o++)try{let r=Nc(this,ih)[ih](e,t[o]);e[r.id]&&e[r.id].isGhost&&(r={...e[r.id],data:t[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),e[r.id]=r,n.push(r)}catch(i){i.isRestriction||r.push(i)}if(this.setState({files:e}),n.forEach((t=>{this.emit("file-added",t)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((t=>{this.log(`Added file: ${n[t].name}\n id: ${n[t].id}\n type: ${n[t].type}`)})),n.length>0&&Nc(this,oh)[oh](),r.length>0){let t="Multiple errors occurred while adding files:\n";if(r.forEach((e=>{t+=`\n * ${e.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:t},"error",this.opts.infoTimeout),"function"===typeof AggregateError)throw new AggregateError(r,t);{const e=new Error(t);throw e.errors=r,e}}}removeFiles(t,e){const{files:n,currentUploads:r}=this.getState(),i={...n},o={...r},a=Object.create(null);function s(t){return void 0===a[t]}t.forEach((t=>{n[t]&&(a[t]=n[t],delete i[t])})),Object.keys(o).forEach((t=>{const e=r[t].fileIDs.filter(s);0!==e.length?o[t]={...r[t],fileIDs:e}:delete o[t]}));const l={currentUploads:o,files:i};0===Object.keys(i).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const u=Object.keys(a);u.forEach((t=>{this.emit("file-removed",a[t],e)})),u.length>5?this.log(`Removed ${u.length} files`):this.log(`Removed files: ${u.join(", ")}`)}removeFile(t,e){void 0===e&&(e=null),this.removeFiles([t],e)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const e=this.getFile(t).isPaused||!1,n=!e;return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files},e=Object.keys(t).filter((e=>!t[e].progress.uploadComplete&&t[e].progress.uploadStarted));e.forEach((e=>{const n={...t[e],isPaused:!0};t[e]=n})),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files},e=Object.keys(t).filter((e=>!t[e].progress.uploadComplete&&t[e].progress.uploadStarted));e.forEach((e=>{const n={...t[e],isPaused:!1,error:null};t[e]=n})),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},e=Object.keys(t).filter((e=>t[e].error));if(e.forEach((e=>{const n={...t[e],isPaused:!1,error:null};t[e]=n})),this.setState({files:t,error:null}),this.emit("retry-all",e),0===e.length)return Promise.resolve({successful:[],failed:[]});const n=Nc(this,lh)[lh](e,{forceAllowNewUpload:!0});return Nc(this,hh)[hh](n)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),e=Object.keys(t);e.length&&this.removeFiles(e,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const e=Nc(this,lh)[lh]([t],{forceAllowNewUpload:!0});return Nc(this,hh)[hh](e)}reset(){this.cancelAll()}logout(){this.iteratePlugins((t=>{t.provider&&t.provider.logout&&t.provider.logout()}))}calculateProgress(t,e){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n=Number.isFinite(e.bytesTotal)&&e.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:e.bytesUploaded,bytesTotal:e.bytesTotal,percentage:n?Math.round(e.bytesUploaded/e.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles(),e=t.filter((t=>t.progress.uploadStarted||t.progress.preprocess||t.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const n=e.filter((t=>null!=t.progress.bytesTotal)),r=e.filter((t=>null==t.progress.bytesTotal));if(0===n.length){const t=100*e.length,n=r.reduce(((t,e)=>t+e.progress.percentage),0),i=Math.round(n/t*100);return void this.setState({totalProgress:i})}let i=n.reduce(((t,e)=>t+e.progress.bytesTotal),0);const o=i/n.length;i+=o*r.length;let a=0;n.forEach((t=>{a+=t.progress.bytesUploaded})),r.forEach((t=>{a+=o*(t.progress.percentage||0)/100}));let s=0===i?0:Math.round(a/i*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){const t="undefined"===typeof window.navigator.onLine||window.navigator.onLine;t?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,e){if("function"!==typeof t){const e=`Expected a plugin class, but got ${null===t?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`;throw new TypeError(e)}const n=new t(this,e),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(r);if(i){const t=`Already found a plugin named '${i.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(t)}return t.VERSION&&this.log(`Using ${r} v${t.VERSION}`),n.type in Nc(this,Wc)[Wc]?Nc(this,Wc)[Wc][n.type].push(n):Nc(this,Wc)[Wc][n.type]=[n],n.install(),this}getPlugin(t){for(const e of Object.values(Nc(this,Wc)[Wc])){const n=e.find((e=>e.id===t));if(null!=n)return n}}[Lc](t){return Nc(this,Wc)[Wc][t]}iteratePlugins(t){Object.values(Nc(this,Wc)[Wc]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const e=Nc(this,Wc)[Wc][t.type],n=e.findIndex((e=>e.id===t.id));-1!==n&&e.splice(n,1);const r=this.getState(),i={plugins:{...r.plugins,[t.id]:void 0}};this.setState(i)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Nc(this,qc)[qc](),this.iteratePlugins((t=>{this.removePlugin(t)})),"undefined"!==typeof window&&window.removeEventListener&&(window.removeEventListener("online",Nc(this,sh)[sh]),window.removeEventListener("offline",Nc(this,sh)[sh]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,e,n){void 0===e&&(e="info"),void 0===n&&(n=3e3);const r="object"===typeof t;this.setState({info:[...this.getState().info,{type:e,message:r?t.message:t,details:r?t.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(t,e){const{logger:n}=this.opts;switch(e){case"error":n.error(t);break;case"warning":n.warn(t);break;default:n.debug(t);break}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?Nc(this,hh)[hh](t):(Nc(this,ch)[ch](t),Promise.reject(new Error("Nonexistent upload")))}[Rc](){return Nc(this,lh)[lh](...arguments)}addResultData(t,e){if(!Nc(this,uh)[uh](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:n}=this.getState(),r={...n[t],result:{...n[t].result,...e}};this.setState({currentUploads:{...n,[t]:r}})}upload(){var t;null!=(t=Nc(this,Wc)[Wc].uploader)&&t.length||this.log("No uploader type plugins are used","warning");let{files:e}=this.getState();const n=this.opts.onBeforeUpload(e);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"===typeof n&&(e=n,this.setState({files:e})),Promise.resolve().then((()=>{Nc(this,Jc)[Jc](e),Nc(this,eh)[eh](e)})).catch((t=>{Nc(this,nh)[nh](t)})).then((()=>{const{currentUploads:t}=this.getState(),n=Object.values(t).flatMap((t=>t.fileIDs)),r=[];Object.keys(e).forEach((t=>{const e=this.getFile(t);e.progress.uploadStarted||-1!==n.indexOf(t)||r.push(e.id)}));const i=Nc(this,lh)[lh](r);return Nc(this,hh)[hh](i)})).catch((t=>{Nc(this,nh)[nh](t,{showInformer:!1})})))}}function ph(t,e){void 0===e&&(e=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:o,allowedFileTypes:a}=this.opts.restrictions;if(o&&e.length+1>o)throw new $c(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(a){const e=a.some((e=>e.indexOf("/")>-1?!!t.type&&pc(t.type.replace(/;.*?$/,""),e):!("."!==e[0]||!t.extension)&&t.extension.toLowerCase()===e.substr(1).toLowerCase()));if(!e){const t=a.join(", ");throw new $c(this.i18n("youCanOnlyUploadFileTypes",{types:t}))}}if(i&&null!=t.size){let n=0;if(n+=t.size,e.forEach((t=>{n+=t.size})),n>i)throw new $c(this.i18n("exceedsSize",{size:uc(i),file:t.name}))}if(n&&null!=t.size&&t.size>n)throw new $c(this.i18n("exceedsSize",{size:uc(n),file:t.name}));if(r&&null!=t.size&&t.size<r)throw new $c(this.i18n("inferiorSize",{size:uc(r)}))}function dh(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new $c(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function gh(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],i=[];for(let o=0;o<e.length;o++)if(!n.call(t.meta,e[o])||""===t.meta[e[o]]){const n=new $c(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);r.push(n),i.push(e[o]),Nc(this,nh)[nh](n,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:i}),r}function vh(t){const e=Object.keys(t).flatMap((t=>{const e=this.getFile(t);return Nc(this,th)[th](e)}));if(e.length)throw new Gc(e,`${this.i18n("missingRequiredMetaField")}`)}function mh(t,e){let{showInformer:n=!0,file:r=null,throwErr:i=!0}=void 0===e?{}:e;const o="object"===typeof t?t.message:t,a="object"===typeof t&&t.details?t.details:"";let s=o;if(a&&(s+=` ${a}`),t.isRestriction?(this.log(s),this.emit("restriction-failed",r,t)):this.log(s,"error"),n&&this.info({message:o,details:a},"error",this.opts.infoTimeout),i)throw"object"===typeof t?t:new Error(t)}function yh(t){const{allowNewUpload:e}=this.getState();!1===e&&Nc(this,nh)[nh](new $c(this.i18n("noMoreFilesAllowed")),{file:t})}function bh(t,e){const n=Sc(e),r=Fc(n,e),i=wc(r).extension,o=Boolean(e.isRemote),a=kc({...e,type:n});if(this.checkIfFileAlreadyExists(a)){const t=new $c(this.i18n("noDuplicates",{fileName:r}));Nc(this,nh)[nh](t,{file:e})}const s=e.meta||{};s.name=r,s.type=n;const l=Number.isFinite(e.data.size)?e.data.size:null;let u={source:e.source||"",id:a,name:r,extension:i||"",meta:{...this.getState().meta,...s},type:n,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isRemote:o,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(u,t);!1===c?Nc(this,nh)[nh](new $c("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):"object"===typeof c&&null!==c&&(u=c);try{const e=Object.keys(t).map((e=>t[e]));Nc(this,Kc)[Kc](u,e)}catch(h){Nc(this,nh)[nh](h,{file:u})}return u}function xh(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((t=>{t.isRestriction||this.log(t.stack||t.message||t)}))}),4))}function wh(){const t=(t,e,n)=>{let r=t.message||"Unknown error";t.details&&(r+=` ${t.details}`),this.setState({error:r}),null!=e&&e.id in this.getState().files&&this.setFileState(e.id,{error:r,response:n})};this.on("error",t),this.on("upload-error",((e,n,r)=>{if(t(n,e,r),"object"===typeof n&&n.message){const t=new Error(n.message);t.details=n.message,n.details&&(t.details+=` ${n.details}`),t.message=this.i18n("failedToUpload",{file:e.name}),Nc(this,nh)[nh](t,{throwErr:!1})}else Nc(this,nh)[nh](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(t=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((t,e)=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...n,postprocess:Nc(this,Qc)[Qc].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:e,uploadURL:e.uploadURL,isPaused:!1}),null==t.size&&this.setFileState(t.id,{size:e.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((t,e)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:e}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)})),this.on("preprocess-complete",(t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const e={...this.getState().files};e[t.id]={...e[t.id],progress:{...e[t.id].progress}},delete e[t.id].progress.preprocess,this.setState({files:e})})),this.on("postprocess-progress",((t,e)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:e}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)})),this.on("postprocess-complete",(t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const e={...this.getState().files};e[t.id]={...e[t.id],progress:{...e[t.id].progress}},delete e[t.id].progress.postprocess,this.setState({files:e})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(t=>{t&&Nc(this,th)[th](t)})),"undefined"!==typeof window&&window.addEventListener&&(window.addEventListener("online",Nc(this,sh)[sh]),window.addEventListener("offline",Nc(this,sh)[sh]),setTimeout(Nc(this,sh)[sh],3e3))}function Ch(t,e){void 0===e&&(e={});const{forceAllowNewUpload:n=!1}=e,{allowNewUpload:r,currentUploads:i}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const o=Uc();return this.emit("upload",{id:o,fileIDs:t}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...i,[o]:{fileIDs:t,step:0,result:{}}}}),o}function Sh(t){const{currentUploads:e}=this.getState();return e[t]}function Ah(t){const e={...this.getState().currentUploads};delete e[t],this.setState({currentUploads:e})}async function Eh(t){let{currentUploads:e}=this.getState(),n=e[t];const r=n.step||0,i=[...Nc(this,Zc)[Zc],...Nc(this,Yc)[Yc],...Nc(this,Qc)[Qc]];try{for(let o=r;o<i.length;o++){if(!n)break;const r=i[o],a={...n,step:o};this.setState({currentUploads:{...e,[t]:a}}),await r(a.fileIDs,t),e=this.getState().currentUploads,n=e[t]}}catch(a){throw this.emit("error",a),Nc(this,ch)[ch](t),a}if(n){n.fileIDs.forEach((t=>{const e=this.getFile(t);e&&e.progress.postprocess&&this.emit("postprocess-complete",e)}));const r=n.fileIDs.map((t=>this.getFile(t))),i=r.filter((t=>!t.error)),o=r.filter((t=>t.error));await this.addResultData(t,{successful:i,failed:o,uploadID:t}),e=this.getState().currentUploads,n=e[t]}let o;return n&&(o=n.result,this.emit("complete",o),Nc(this,ch)[ch](t)),null==o&&this.log(`Not setting result for an upload that has been removed: ${t}`),o}fh.VERSION="2.1.3";var kh=fh,Dh=Wn((function(t,e){var n,r,i,o,a,s,l,u,c={},h=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(t,e){for(var n in e)t[n]=e[n];return t}function d(t){var e=t.parentNode;e&&e.removeChild(t)}function g(t,e,r){var i,o,a,s={};for(a in e)"key"==a?i=e[a]:"ref"==a?o=e[a]:s[a]=e[a];if(arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return v(t,s,i,o,null)}function v(t,e,n,o,a){var s={type:t,props:e,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=r.vnode&&r.vnode(s),s}function m(t){return t.children}function y(t,e){this.props=t,this.context=e}function b(t,e){if(null==e)return t.__?b(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?b(t):null}function x(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return x(t)}}function w(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!C.__r++||l!==r.debounceRendering)&&((l=r.debounceRendering)||s)(C)}function C(){for(var t;C.__r=a.length;)t=a.sort((function(t,e){return t.__v.__b-e.__v.__b})),a=[],t.some((function(t){var e,n,r,i,o,a;t.__d&&(o=(i=(e=t).__v).__e,(a=e.__P)&&(n=[],(r=p({},i)).__v=i.__v+1,T(a,i,r,e.__n,void 0!==a.ownerSVGElement,null!=i.__h?[o]:null,n,null==o?b(i):o,i.__h),B(n,i),i.__e!=o&&x(i)))}))}function S(t,e,n,r,i,o,a,s,l,u){var f,p,d,g,y,x,w,C=r&&r.__k||h,S=C.length;for(n.__k=[],f=0;f<e.length;f++)if(null!=(g=n.__k[f]=null==(g=e[f])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):Array.isArray(g)?v(m,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(d=C[f])||d&&g.key==d.key&&g.type===d.type)C[f]=void 0;else for(p=0;p<S;p++){if((d=C[p])&&g.key==d.key&&g.type===d.type){C[p]=void 0;break}d=null}T(t,g,d=d||c,i,o,a,s,l,u),y=g.__e,(p=g.ref)&&d.ref!=p&&(w||(w=[]),d.ref&&w.push(d.ref,null,g),w.push(p,g.__c||y,g)),null!=y?(null==x&&(x=y),"function"==typeof g.type&&g.__k===d.__k?g.__d=l=A(g,l,t):l=E(t,g,d,C,y,l),"function"==typeof n.type&&(n.__d=l)):l&&d.__e==l&&l.parentNode!=t&&(l=b(d))}for(n.__e=x,f=S;f--;)null!=C[f]&&("function"==typeof n.type&&null!=C[f].__e&&C[f].__e==n.__d&&(n.__d=b(r,f+1)),P(C[f],C[f]));if(w)for(f=0;f<w.length;f++)I(w[f],w[++f],w[++f])}function A(t,e,n){for(var r,i=t.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=t,e="function"==typeof r.type?A(r,e,n):E(n,r,r,i,r.__e,e));return e}function E(t,e,n,r,i,o){var a,s,l;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||i!=o||null==i.parentNode)t:if(null==o||o.parentNode!==t)t.appendChild(i),a=null;else{for(s=o,l=0;(s=s.nextSibling)&&l<r.length;l+=2)if(s==i)break t;t.insertBefore(i,o),a=o}return void 0!==a?a:i.nextSibling}function k(t,e,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in e||F(t,o,null,n[o],r);for(o in e)i&&"function"!=typeof e[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===e[o]||F(t,o,e[o],n[o],r)}function D(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||f.test(e)?n:n+"px"}function F(t,e,n,r,i){var o;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||D(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||D(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])o=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?r||t.addEventListener(e,o?O:M,o):t.removeEventListener(e,o?O:M,o);else if("dangerouslySetInnerHTML"!==e){if(i)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function M(t){this.l[t.type+!1](r.event?r.event(t):t)}function O(t){this.l[t.type+!0](r.event?r.event(t):t)}function T(t,e,n,i,o,a,s,l,u){var c,h,f,d,g,v,b,x,w,C,A,E=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(u=n.__h,l=e.__e=n.__e,e.__h=null,a=[l]),(c=r.__b)&&c(e);try{t:if("function"==typeof E){if(x=e.props,w=(c=E.contextType)&&i[c.__c],C=c?w?w.props.value:c.__:i,n.__c?b=(h=e.__c=n.__c).__=h.__E:("prototype"in E&&E.prototype.render?e.__c=h=new E(x,C):(e.__c=h=new y(x,C),h.constructor=E,h.render=L),w&&w.sub(h),h.props=x,h.state||(h.state={}),h.context=C,h.__n=i,f=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=E.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=p({},h.__s)),p(h.__s,E.getDerivedStateFromProps(x,h.__s))),d=h.props,g=h.state,f)null==E.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==E.getDerivedStateFromProps&&x!==d&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(x,C),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(x,h.__s,C)||e.__v===n.__v){h.props=x,h.state=h.__s,e.__v!==n.__v&&(h.__d=!1),h.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),h.__h.length&&s.push(h);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(x,h.__s,C),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(d,g,v)}))}h.context=C,h.props=x,h.state=h.__s,(c=r.__r)&&c(e),h.__d=!1,h.__v=e,h.__P=t,c=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(i=p(p({},i),h.getChildContext())),f||null==h.getSnapshotBeforeUpdate||(v=h.getSnapshotBeforeUpdate(d,g)),A=null!=c&&c.type===m&&null==c.key?c.props.children:c,S(t,Array.isArray(A)?A:[A],e,n,i,o,a,s,l,u),h.base=e.__e,e.__h=null,h.__h.length&&s.push(h),b&&(h.__E=h.__=null),h.__e=!1}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=_(n.__e,e,n,i,o,a,s,u);(c=r.diffed)&&c(e)}catch(t){e.__v=null,(u||null!=a)&&(e.__e=l,e.__h=!!u,a[a.indexOf(l)]=null),r.__e(t,e,n)}}function B(t,e){r.__c&&r.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){r.__e(t,e.__v)}}))}function _(t,e,r,i,o,a,s,l){var u,h,f,p=r.props,g=e.props,v=e.type,m=0;if("svg"===v&&(o=!0),null!=a)for(;m<a.length;m++)if((u=a[m])&&"setAttribute"in u==!!v&&(v?u.localName===v:3===u.nodeType)){t=u,a[m]=null;break}if(null==t){if(null===v)return document.createTextNode(g);t=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,l=!1}if(null===v)p===g||l&&t.data===g||(t.data=g);else{if(a=a&&n.call(t.childNodes),h=(p=r.props||c).dangerouslySetInnerHTML,f=g.dangerouslySetInnerHTML,!l){if(null!=a)for(p={},m=0;m<t.attributes.length;m++)p[t.attributes[m].name]=t.attributes[m].value;(f||h)&&(f&&(h&&f.__html==h.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}if(k(t,g,p,o,l),f)e.__k=[];else if(m=e.props.children,S(t,Array.isArray(m)?m:[m],e,r,i,o&&"foreignObject"!==v,a,s,a?a[0]:r.__k&&b(r,0),l),null!=a)for(m=a.length;m--;)null!=a[m]&&d(a[m]);l||("value"in g&&void 0!==(m=g.value)&&(m!==p.value||m!==t.value||"progress"===v&&!m)&&F(t,"value",m,p.value,!1),"checked"in g&&void 0!==(m=g.checked)&&m!==t.checked&&F(t,"checked",m,p.checked,!1))}return t}function I(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){r.__e(t,n)}}function P(t,e,n){var i,o;if(r.unmount&&r.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||I(i,null,e)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){r.__e(t,e)}i.base=i.__P=null}if(i=t.__k)for(o=0;o<i.length;o++)i[o]&&P(i[o],e,"function"!=typeof t.type);n||null==t.__e||d(t.__e),t.__e=t.__d=void 0}function L(t,e,n){return this.constructor(t,n)}function R(t,e,i){var o,a,s;r.__&&r.__(t,e),a=(o="function"==typeof i)?null:i&&i.__k||e.__k,s=[],T(e,t=(!o&&i||e).__k=g(m,null,[t]),a||c,c,void 0!==e.ownerSVGElement,!o&&i?[i]:a?null:e.firstChild?n.call(e.childNodes):null,s,!o&&i?i:a?a.__e:e.firstChild,o),B(s,t)}n=h.slice,r={__e:function(t,e){for(var n,r,i;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),i=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),i=n.__d),i)return n.__E=n}catch(e){t=e}throw t}},i=0,o=function(t){return null!=t&&void 0===t.constructor},y.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof t&&(t=t(p({},n),this.props)),t&&p(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),w(this))},y.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),w(this))},y.prototype.render=m,a=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,C.__r=0,u=0,e.Component=y,e.Fragment=m,e.cloneElement=function(t,e,r){var i,o,a,s=p({},t.props);for(a in e)"key"==a?i=e[a]:"ref"==a?o=e[a]:s[a]=e[a];return arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),v(t.type,s,i||t.key,o||t.ref,null)},e.createContext=function(t,e){var n={__c:e="__cC"+u++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(w)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n},e.createElement=g,e.createRef=function(){return{current:null}},e.h=g,e.hydrate=function t(e,n){R(e,n,t)},e.isValidElement=o,e.options=r,e.render=R,e.toChildArray=function t(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){t(e,n)})):n.push(e)),n}})),Fh=function(t){return(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE},Mh=function(t,e){return void 0===e&&(e=document),"string"===typeof t?e.querySelector(t):Fh(t)?t:null},Oh=class{constructor(t,e){void 0===e&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:{...e,[this.id]:{...e[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new Ku([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function Th(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Bh=0;function _h(t){return"__private_"+Bh+++"_"+t}const{render:Ih}=Dh;function Ph(t){let e=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=i,e||(e=Promise.resolve().then((()=>(e=null,t(...n))))),e}}var Lh=_h("updateUI");class Rh extends Oh{constructor(){super(...arguments),Object.defineProperty(this,Lh,{writable:!0,value:void 0})}mount(t,e){const n=e.id,r=Mh(t);if(r){this.isTargetDOMEl=!0;const e=document.createDocumentFragment();return Th(this,Lh)[Lh]=Ph((t=>{this.uppy.getPlugin(this.id)&&(Ih(this.render(t),e),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Ih(this.render(this.uppy.getState()),e),this.el=e.firstElementChild,r.appendChild(e),this.onMount(),this.el}let i;if("object"===typeof t&&t instanceof Rh)i=t;else if("function"===typeof t){const e=t;this.uppy.iteratePlugins((t=>{if(t instanceof e)return i=t,!1}))}if(i)return this.uppy.log(`Installing ${n} to ${i.id}`),this.parent=i,this.el=i.addTarget(e),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let o=`Invalid target option given to ${n}.`;throw o+="function"===typeof t?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(o)}update(t){var e,n;null!=this.el&&(null==(e=(n=Th(this,Lh))[Lh])||e.call(n,t))}unmount(){var t;this.isTargetDOMEl&&(null==(t=this.el)||t.remove());this.onUnmount()}onMount(){}onUnmount(){}}var Nh=Rh;const{debugLogger:jh}=_c;var zh=kh,Uh=kh,Vh=Nh,Hh=Oh,$h=jh;zh.Uppy=Uh,zh.UIPlugin=Vh,zh.BasePlugin=Hh,zh.debugLogger=$h;class Gh extends Error{constructor(t,e){void 0===e&&(e=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=e}}var Wh=Gh,qh=function(){return fetch(...arguments).catch((t=>{throw"AbortError"===t.name?t:new Wh(t)}))};class Xh extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Zh,Yh,Qh,Kh,Jh,tf=Xh;function ef(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var nf=0;function rf(t){return"__private_"+nf+++"_"+t}function of(t){return t.replace(/\/$/,"")}async function af(t){if(401===t.status)throw new tf;const e=t.json();if(t.status<200||t.status>300){let n=`Failed request with status: ${t.status}. ${t.statusText}`;try{const t=await e;n=t.message?`${n} message: ${t.message}`:n,n=t.requestId?`${n} request-Id: ${t.requestId}`:n}finally{throw new Error(n)}}return e}var sf=(Yh=rf("getPostResponseFunc"),Qh=rf("getUrl"),Kh=rf("errorHandler"),Jh=Zh=class t{constructor(t,e){Object.defineProperty(this,Kh,{value:uf}),Object.defineProperty(this,Qh,{value:lf}),Object.defineProperty(this,Yh,{writable:!0,value:t=>e=>t?e:this.onReceiveResponse(e)}),this.uppy=t,this.opts=e,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),e=this.opts.companionUrl;return of(t&&t[e]?t[e]:e)}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve({...t.defaultHeaders,...e})}onReceiveResponse(t){const e=this.uppy.getState(),n=e.companion||{},r=this.opts.companionUrl,{headers:i}=t;return i.has("i-am")&&i.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:i.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(ef(this,Qh)[Qh](t),{method:"OPTIONS"}).then((t=>(t.headers.has("access-control-allow-headers")&&(this.allowedHeaders=t.headers.get("access-control-allow-headers").split(",").map((t=>t.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((t=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${t}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then((t=>{let[e,n]=t;return Object.keys(n).forEach((t=>{e.includes(t.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${t}`),delete n[t])})),n}))}get(t,e){const n="get";return this.preflightAndHeaders(t).then((e=>qh(ef(this,Qh)[Qh](t),{method:n,headers:e,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(ef(this,Yh)[Yh](e)).then(af).catch(ef(this,Kh)[Kh](n,t))}post(t,e,n){const r="post";return this.preflightAndHeaders(t).then((n=>qh(ef(this,Qh)[Qh](t),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(e)}))).then(ef(this,Yh)[Yh](n)).then(af).catch(ef(this,Kh)[Kh](r,t))}delete(t,e,n){const r="delete";return this.preflightAndHeaders(t).then((n=>qh(`${this.hostname}/${t}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:e?JSON.stringify(e):null}))).then(ef(this,Yh)[Yh](n)).then(af).catch(ef(this,Kh)[Kh](r,t))}},Zh.VERSION="2.0.4",Zh.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Zh.VERSION}`},Jh);function lf(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function uf(t,e){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${t} ${ef(this,Qh)[Qh](e)}`);r.cause=n,n=r}return Promise.reject(n)}}var cf=(t,e)=>new Promise((n=>{localStorage.setItem(t,e),n()})),hf=t=>Promise.resolve(localStorage.getItem(t)),ff=t=>new Promise((e=>{localStorage.removeItem(t),e()})),pf={setItem:cf,getItem:hf,removeItem:ff};const df=t=>t.split("-").map((t=>t.charAt(0).toUpperCase()+t.slice(1))).join(" ");var gf=class extends sf{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||df(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((t=>{let[e,n]=t;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...r}}))}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),n=e.getPluginState().authenticated,r=n?401!==t.status:t.status<400;return e.setPluginState({authenticated:r}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(t){return void 0===t&&(t={}),this.preAuthToken&&(t.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(t)}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((t=>{this.preAuthToken=t.token})).catch((t=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")})):Promise.resolve()}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then((t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((t=>{let[e]=t;return e}))}static initPlugin(t,e,n){if(t.type="acquirer",t.files=[],n&&(t.opts={...n,...e}),e.serverUrl||e.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(e.companionAllowedHosts){const n=e.companionAllowedHosts;if("string"!==typeof n&&!Array.isArray(n)&&!(n instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(e.companionUrl)?t.opts.companionAllowedHosts=`https://${e.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(e.companionUrl).origin;t.storage=t.opts.storage||pf}};const vf=t=>t.split("-").map((t=>t.charAt(0).toUpperCase()+t.slice(1))).join(" ");var mf,yf,bf,xf,wf,Cf=class extends sf{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||vf(this.id),this.pluginId=this.opts.pluginId}fileUrl(t){return`${this.hostname}/search/${this.id}/get/${t}`}search(t,e){return e=e?`&${e}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(t)}${e}`)}};let Sf,Af;function Ef(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var kf=0;function Df(t){return"__private_"+kf+++"_"+t}var Ff=(mf=Df("queued"),yf=Df("emitter"),bf=Df("isOpen"),xf=Df("socket"),wf=Df("handleMessage"),Sf=Symbol.for("uppy test: getSocket"),Af=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,mf,{writable:!0,value:[]}),Object.defineProperty(this,yf,{writable:!0,value:tc()}),Object.defineProperty(this,bf,{writable:!0,value:!1}),Object.defineProperty(this,xf,{writable:!0,value:void 0}),Object.defineProperty(this,wf,{writable:!0,value:t=>{try{const e=JSON.parse(t.data);this.emit(e.action,e.payload)}catch(e){console.log(e)}}}),this.opts=t,t&&!1===t.autoOpen||this.open()}get isOpen(){return Ef(this,bf)[bf]}[Sf](){return Ef(this,xf)[xf]}[Af](){return Ef(this,mf)[mf]}open(){Ef(this,xf)[xf]=new WebSocket(this.opts.target),Ef(this,xf)[xf].onopen=()=>{Ef(this,bf)[bf]=!0;while(Ef(this,mf)[mf].length>0&&Ef(this,bf)[bf]){const t=Ef(this,mf)[mf].shift();this.send(t.action,t.payload)}},Ef(this,xf)[xf].onclose=()=>{Ef(this,bf)[bf]=!1},Ef(this,xf)[xf].onmessage=Ef(this,wf)[wf]}close(){var t;null==(t=Ef(this,xf)[xf])||t.close()}send(t,e){Ef(this,bf)[bf]?Ef(this,xf)[xf].send(JSON.stringify({action:t,payload:e})):Ef(this,mf)[mf].push({action:t,payload:e})}on(t,e){Ef(this,yf)[yf].on(t,e)}emit(t,e){Ef(this,yf)[yf].emit(t,e)}once(t,e){Ef(this,yf)[yf].once(t,e)}}),Mf={RequestClient:sf,Provider:gf,SearchProvider:Cf,Socket:Ff};function Of(t,e,n){const{progress:r,bytesUploaded:i,bytesTotal:o}=e;r&&(t.uppy.log(`Upload progress: ${r}`),t.uppy.emit("upload-progress",n,{uploader:t,bytesUploaded:i,bytesTotal:o}))}var Tf,Bf,_f=Na(Of,300,{leading:!0,trailing:!0}),If=function(t){const e=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i,n=e.exec(t)[1],r=/^http:\/\//i.test(t)?"ws":"wss";return`${r}://${n}`},Pf=function(t){const e=[],n=[];function r(t){e.push(t)}function i(t){n.push(t)}const o=Promise.all(t.map((t=>t.then(r,i))));return o.then((()=>({successful:e,failed:n})))};function Lf(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Rf=0;function Nf(t){return"__private_"+Rf+++"_"+t}var jf=(Tf=Nf("emitter"),Bf=Nf("events"),class{constructor(t){Object.defineProperty(this,Tf,{writable:!0,value:void 0}),Object.defineProperty(this,Bf,{writable:!0,value:[]}),Lf(this,Tf)[Tf]=t}on(t,e){return Lf(this,Bf)[Bf].push([t,e]),Lf(this,Tf)[Tf].on(t,e)}remove(){for(const[t,e]of Lf(this,Bf)[Bf].splice(0))Lf(this,Tf)[Tf].off(t,e)}});function zf(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Uf=0;function Vf(t){return"__private_"+Uf+++"_"+t}var Hf=Vf("aliveTimer"),$f=Vf("isDone"),Gf=Vf("onTimedOut"),Wf=Vf("timeout");class qf{constructor(t,e){Object.defineProperty(this,Hf,{writable:!0,value:void 0}),Object.defineProperty(this,$f,{writable:!0,value:!1}),Object.defineProperty(this,Gf,{writable:!0,value:void 0}),Object.defineProperty(this,Wf,{writable:!0,value:void 0}),zf(this,Wf)[Wf]=t,zf(this,Gf)[Gf]=e}progress(){zf(this,$f)[$f]||zf(this,Wf)[Wf]>0&&(clearTimeout(zf(this,Hf)[Hf]),zf(this,Hf)[Hf]=setTimeout(zf(this,Gf)[Gf],zf(this,Wf)[Wf]))}done(){zf(this,$f)[$f]||(clearTimeout(zf(this,Hf)[Hf]),zf(this,Hf)[Hf]=null,zf(this,$f)[$f]=!0)}}var Xf=qf;function Zf(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Yf=0;function Qf(t){return"__private_"+Yf+++"_"+t}function Kf(){return new Error("Cancelled")}var Jf=Qf("activeRequests"),tp=Qf("queuedHandlers"),ep=Qf("call"),np=Qf("queueNext"),rp=Qf("next"),ip=Qf("queue"),op=Qf("dequeue");class ap{constructor(t){Object.defineProperty(this,op,{value:hp}),Object.defineProperty(this,ip,{value:cp}),Object.defineProperty(this,rp,{value:up}),Object.defineProperty(this,np,{value:lp}),Object.defineProperty(this,ep,{value:sp}),Object.defineProperty(this,Jf,{writable:!0,value:0}),Object.defineProperty(this,tp,{writable:!0,value:[]}),this.limit="number"!==typeof t||0===t?1/0:t}run(t,e){return Zf(this,Jf)[Jf]<this.limit?Zf(this,ep)[ep](t):Zf(this,ip)[ip](t,e)}wrapPromiseFunction(t,e){var n=this;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];let a;const s=new Promise(((r,o)=>{a=n.run((()=>{let e,n;try{n=Promise.resolve(t(...i))}catch(s){n=Promise.reject(s)}return n.then((t=>{e?o(e):(a.done(),r(t))}),(t=>{e?o(e):(a.done(),o(t))})),()=>{e=Kf()}}),e)}));return s.abort=()=>{a.abort()},s}}}function sp(t){Zf(this,Jf)[Jf]+=1;let e,n=!1;try{e=t()}catch(r){throw Zf(this,Jf)[Jf]-=1,r}return{abort:()=>{n||(n=!0,Zf(this,Jf)[Jf]-=1,e(),Zf(this,np)[np]())},done:()=>{n||(n=!0,Zf(this,Jf)[Jf]-=1,Zf(this,np)[np]())}}}function lp(){queueMicrotask((()=>Zf(this,rp)[rp]()))}function up(){if(Zf(this,Jf)[Jf]>=this.limit)return;if(0===Zf(this,tp)[tp].length)return;const t=Zf(this,tp)[tp].shift(),e=Zf(this,ep)[ep](t.fn);t.abort=e.abort,t.done=e.done}function cp(t,e){void 0===e&&(e={});const n={fn:t,priority:e.priority||0,abort:()=>{Zf(this,op)[op](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Zf(this,tp)[tp].findIndex((t=>n.priority>t.priority));return-1===r?Zf(this,tp)[tp].push(n):Zf(this,tp)[tp].splice(r,0,n),n}function hp(t){const e=Zf(this,tp)[tp].indexOf(t);-1!==e&&Zf(this,tp)[tp].splice(e,1)}var fp={RateLimitedQueue:ap,internalRateLimitedQueue:Symbol("__queue")};function pp(t){return!!t&&(0!==t.readyState&&4!==t.readyState||0===t.status)}var dp,gp,vp=pp,mp={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:yp}=Pc,{Provider:bp,RequestClient:xp,Socket:wp}=Mf,{RateLimitedQueue:Cp,internalRateLimitedQueue:Sp}=fp;function Ap(t,e){let n=e;return n||(n=new Error("Upload error")),"string"===typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),vp(t)?(n=new Wh(n,t),n):(n.request=t,n)}function Ep(t){const e=t.data.slice(0,t.data.size,t.meta.type);return e}var kp=(gp=dp=class extends Oh{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=mp;const n={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(e){let n={};try{n=JSON.parse(e)}catch(r){t.log(r)}return n},getResponseError(t,e){let n=new Error("Upload error");return vp(e)&&(n=new Wh(n,e)),n},validateStatus(t){return t>=200&&t<300}};if(this.opts={...n,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Sp in this.opts?this.requests=this.opts[Sp]:this.requests=new Cp(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(t){const e=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...e||{},...t.xhrUpload||{},headers:{}};return"function"===typeof n?r.headers=n(t):Object.assign(r.headers,this.opts.headers),e&&Object.assign(r.headers,e.headers),t.xhrUpload&&Object.assign(r.headers,t.xhrUpload.headers),r}addMetadata(t,e,n){const r=Array.isArray(n.metaFields)?n.metaFields:Object.keys(e);r.forEach((n=>{t.append(n,e[n])}))}createFormDataUpload(t,e){const n=new FormData;this.addMetadata(n,t.meta,e);const r=Ep(t);return t.name?n.append(e.fieldName,r,t.meta.name):n.append(e.fieldName,r),n}createBundledUpload(t,e){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,e),t.forEach((t=>{const e=this.getOptions(t),r=Ep(t);t.name?n.append(e.fieldName,r,t.name):n.append(e.fieldName,r)})),n}upload(t,e,n){const r=this.getOptions(t);return this.uppy.log(`uploading ${e} of ${n}`),new Promise(((e,n)=>{this.uppy.emit("upload-started",t);const i=r.formData?this.createFormDataUpload(t,r):t.data,o=new XMLHttpRequest;this.uploaderEvents[t.id]=new jf(this.uppy);const a=new Xf(r.timeout,(()=>{o.abort(),l.done();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",t,e),n(e)})),s=yp();o.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${s} started`)})),o.upload.addEventListener("progress",(e=>{this.uppy.log(`[XHRUpload] ${s} progress: ${e.loaded} / ${e.total}`),a.progress(),e.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:e.loaded,bytesTotal:e.total})})),o.addEventListener("load",(i=>{if(this.uppy.log(`[XHRUpload] ${s} finished`),a.done(),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r.validateStatus(i.target.status,o.responseText,o)){const n=r.getResponseData(o.responseText,o),a=n[r.responseUrlFieldName],s={status:i.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",t,s),a&&this.uppy.log(`Download ${t.name} from ${a}`),e(t)}const u=r.getResponseData(o.responseText,o),c=Ap(o,r.getResponseError(o.responseText,o)),h={status:i.target.status,body:u};return this.uppy.emit("upload-error",t,c,h),n(c)})),o.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${s} errored`),a.done(),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const e=Ap(o,r.getResponseError(o.responseText,o));return this.uppy.emit("upload-error",t,e),n(e)})),o.open(r.method.toUpperCase(),r.endpoint,!0),o.withCredentials=r.withCredentials,""!==r.responseType&&(o.responseType=r.responseType);const l=this.requests.run((()=>{this.uppy.emit("upload-started",t);const e=this.getOptions(t);return Object.keys(e.headers).forEach((t=>{o.setRequestHeader(t,e.headers[t])})),o.send(i),()=>{a.done(),o.abort()}}));this.onFileRemove(t.id,(()=>{l.abort(),n(new Error("File removed"))})),this.onCancelAll(t.id,(()=>{l.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(t){const e=this.getOptions(t);return new Promise(((n,r)=>{this.uppy.emit("upload-started",t);const i={},o=Array.isArray(e.metaFields)?e.metaFields:Object.keys(t.meta);o.forEach((e=>{i[e]=t.meta[e]}));const a=t.remote.providerOptions.provider?bp:xp,s=new a(this.uppy,t.remote.providerOptions);s.post(t.remote.url,{...t.remote.body,endpoint:e.endpoint,size:t.data.size,fieldname:e.fieldName,metadata:i,httpMethod:e.method,useFormData:e.formData,headers:e.headers}).then((i=>{const{token:o}=i,a=If(t.remote.companionUrl),s=new wp({target:`${a}/api/${o}`,autoOpen:!1});this.uploaderEvents[t.id]=new jf(this.uppy),this.onFileRemove(t.id,(()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was removed`)})),this.onCancelAll(t.id,(()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was canceled`)})),this.onRetry(t.id,(()=>{s.send("pause",{}),s.send("resume",{})})),this.onRetryAll(t.id,(()=>{s.send("pause",{}),s.send("resume",{})})),s.on("progress",(e=>_f(this,e,t))),s.on("success",(r=>{const i=e.getResponseData(r.response.responseText,r.response),o=i[e.responseUrlFieldName],a={status:r.response.status,body:i,uploadURL:o};return this.uppy.emit("upload-success",t,a),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n()})),s.on("error",(n=>{const i=n.response,o=i?e.getResponseError(i.responseText,i):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",t,o),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r(o)}));const l=this.requests.run((()=>(s.open(),t.isPaused&&s.send("pause",{}),()=>s.close())))})).catch((e=>{this.uppy.emit("upload-error",t,e),r(e)}))}))}uploadBundle(t){return new Promise(((e,n)=>{const{endpoint:r}=this.opts,{method:i}=this.opts,o=this.uppy.getState().xhrUpload,a=this.createBundledUpload(t,{...this.opts,...o||{}}),s=new XMLHttpRequest,l=new Xf(this.opts.timeout,(()=>{s.abort();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));u(t),n(t)})),u=e=>{t.forEach((t=>{this.uppy.emit("upload-error",t,e)}))};s.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),l.progress()})),s.upload.addEventListener("progress",(e=>{l.progress(),e.lengthComputable&&t.forEach((t=>{this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:e.loaded/e.total*t.size,bytesTotal:t.size})}))})),s.addEventListener("load",(r=>{if(l.done(),this.opts.validateStatus(r.target.status,s.responseText,s)){const n=this.opts.getResponseData(s.responseText,s),i={status:r.target.status,body:n};return t.forEach((t=>{this.uppy.emit("upload-success",t,i)})),e()}const i=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return i.request=s,u(i),n(i)})),s.addEventListener("error",(()=>{l.done();const t=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return u(t),n(t)})),this.uppy.on("cancel-all",(()=>{l.done(),s.abort()})),s.open(i.toUpperCase(),r,!0),s.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((t=>{s.setRequestHeader(t,this.opts.headers[t])})),s.send(a),t.forEach((t=>{this.uppy.emit("upload-started",t)}))}))}uploadFiles(t){const e=t.map(((e,n)=>{const r=parseInt(n,10)+1,i=t.length;return e.error?Promise.reject(new Error(e.error)):e.isRemote?this.uploadRemote(e,r,i):this.upload(e,r,i)}));return Pf(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",(n=>{t===n.id&&e(n.id)}))}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",(n=>{t===n&&e()}))}onRetryAll(t,e){this.uploaderEvents[t].on("retry-all",(()=>{this.uppy.getFile(t)&&e()}))}onCancelAll(t,e){this.uploaderEvents[t].on("cancel-all",(()=>{this.uppy.getFile(t)&&e()}))}handleUpload(t){if(0===t.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[Sp]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const e=t.map((t=>this.uppy.getFile(t)));if(this.opts.bundle){const t=e.some((t=>t.isRemote));if(t)throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"===typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(e)}return this.uploadFiles(e).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},dp.VERSION="2.0.6",gp),Dp="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function Fp(t){var e={exports:{}};return t(e,e.exports),e.exports}var Mp,Op,Tp=function(t){return t&&t.Math==Math&&t},Bp=Tp("object"==typeof globalThis&&globalThis)||Tp("object"==typeof window&&window)||Tp("object"==typeof self&&self)||Tp("object"==typeof Dp&&Dp)||function(){return this}()||Function("return this")(),_p=Object.defineProperty,Ip=function(t,e){try{_p(Bp,t,{value:e,configurable:!0,writable:!0})}catch(it){Bp[t]=e}return e},Pp=Bp["__core-js_shared__"]||Ip("__core-js_shared__",{}),Lp=Fp((function(t){(t.exports=function(t,e){return Pp[t]||(Pp[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Rp=Function.prototype,Np=Rp.bind,jp=Rp.call,zp=Np&&Np.bind(jp),Up=Np?function(t){return t&&zp(jp,t)}:function(t){return t&&function(){return jp.apply(t,arguments)}},Vp=Bp.TypeError,Hp=function(t){if(null==t)throw Vp("Can't call method on "+t);return t},$p=Bp.Object,Gp=function(t){return $p(Hp(t))},Wp=Up({}.hasOwnProperty),qp=Object.hasOwn||function(t,e){return Wp(Gp(t),e)},Xp=0,Zp=Math.random(),Yp=Up(1..toString),Qp=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Yp(++Xp+Zp,36)},Kp=function(t){return"function"==typeof t},Jp=function(t){return Kp(t)?t:void 0},td=function(t,e){return arguments.length<2?Jp(Bp[t]):Bp[t]&&Bp[t][e]},ed=td("navigator","userAgent")||"",nd=Bp.process,rd=Bp.Deno,id=nd&&nd.versions||rd&&rd.version,od=id&&id.v8;od&&(Op=(Mp=od.split("."))[0]>0&&Mp[0]<4?1:+(Mp[0]+Mp[1])),!Op&&ed&&(!(Mp=ed.match(/Edge\/(\d+)/))||Mp[1]>=74)&&(Mp=ed.match(/Chrome\/(\d+)/))&&(Op=+Mp[1]);var ad=Op,sd=function(t){try{return!!t()}catch(t){return!0}},ld=!!Object.getOwnPropertySymbols&&!sd((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ad&&ad<41})),ud=ld&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,cd=Lp("wks"),hd=Bp.Symbol,fd=hd&&hd.for,pd=ud?hd:hd&&hd.withoutSetter||Qp,dd=function(t){if(!qp(cd,t)||!ld&&"string"!=typeof cd[t]){var e="Symbol."+t;ld&&qp(hd,t)?cd[t]=hd[t]:cd[t]=ud&&fd?fd(e):pd(e)}return cd[t]},gd={};gd[dd("toStringTag")]="z";var vd="[object z]"===String(gd),md=!sd((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),yd=function(t){return"object"==typeof t?null!==t:Kp(t)},bd=Bp.document,xd=yd(bd)&&yd(bd.createElement),wd=function(t){return xd?bd.createElement(t):{}},Cd=!md&&!sd((function(){return 7!=Object.defineProperty(wd("div"),"a",{get:function(){return 7}}).a})),Sd=Bp.String,Ad=Bp.TypeError,Ed=function(t){if(yd(t))return t;throw Ad(Sd(t)+" is not an object")},kd=Function.prototype.call,Dd=kd.bind?kd.bind(kd):function(){return kd.apply(kd,arguments)},Fd=Up({}.isPrototypeOf),Md=Bp.Object,Od=ud?function(t){return"symbol"==typeof t}:function(t){var e=td("Symbol");return Kp(e)&&Fd(e.prototype,Md(t))},Td=Bp.String,Bd=function(t){try{return Td(t)}catch(t){return"Object"}},_d=Bp.TypeError,Id=function(t){if(Kp(t))return t;throw _d(Bd(t)+" is not a function")},Pd=function(t,e){var n=t[e];return null==n?void 0:Id(n)},Ld=Bp.TypeError,Rd=Bp.TypeError,Nd=dd("toPrimitive"),jd=function(t,e){if(!yd(t)||Od(t))return t;var n,r=Pd(t,Nd);if(r){if(void 0===e&&(e="default"),n=Dd(r,t,e),!yd(n)||Od(n))return n;throw Rd("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&Kp(n=t.toString)&&!yd(r=Dd(n,t)))return r;if(Kp(n=t.valueOf)&&!yd(r=Dd(n,t)))return r;if("string"!==e&&Kp(n=t.toString)&&!yd(r=Dd(n,t)))return r;throw Ld("Can't convert object to primitive value")}(t,e)},zd=function(t){var e=jd(t,"string");return Od(e)?e:e+""},Ud=Bp.TypeError,Vd=Object.defineProperty,Hd={f:md?Vd:function(t,e,n){if(Ed(t),e=zd(e),Ed(n),Cd)try{return Vd(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ud("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},$d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Gd=md?function(t,e,n){return Hd.f(t,e,$d(1,n))}:function(t,e,n){return t[e]=n,t},Wd=Up(Function.toString);Kp(Pp.inspectSource)||(Pp.inspectSource=function(t){return Wd(t)});var qd,Xd,Zd,Yd=Pp.inspectSource,Qd=Bp.WeakMap,Kd=Kp(Qd)&&/native code/.test(Yd(Qd)),Jd=Lp("keys"),tg=function(t){return Jd[t]||(Jd[t]=Qp(t))},eg={},ng=Bp.TypeError,rg=Bp.WeakMap;if(Kd||Pp.state){var ig=Pp.state||(Pp.state=new rg),og=Up(ig.get),ag=Up(ig.has),sg=Up(ig.set);qd=function(t,e){if(ag(ig,t))throw new ng("Object already initialized");return e.facade=t,sg(ig,t,e),e},Xd=function(t){return og(ig,t)||{}},Zd=function(t){return ag(ig,t)}}else{var lg=tg("state");eg[lg]=!0,qd=function(t,e){if(qp(t,lg))throw new ng("Object already initialized");return e.facade=t,Gd(t,lg,e),e},Xd=function(t){return qp(t,lg)?t[lg]:{}},Zd=function(t){return qp(t,lg)}}var ug={set:qd,get:Xd,has:Zd,enforce:function(t){return Zd(t)?Xd(t):qd(t,{})},getterFor:function(t){return function(e){var n;if(!yd(e)||(n=Xd(e)).type!==t)throw ng("Incompatible receiver, "+t+" required");return n}}},cg=Function.prototype,hg=md&&Object.getOwnPropertyDescriptor,fg=qp(cg,"name"),pg={EXISTS:fg,PROPER:fg&&"something"===function(){}.name,CONFIGURABLE:fg&&(!md||md&&hg(cg,"name").configurable)},dg=Fp((function(t){var e=pg.CONFIGURABLE,n=ug.get,r=ug.enforce,i=String(String).split("String");(t.exports=function(t,n,o,a){var s,l=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,h=a&&void 0!==a.name?a.name:n;Kp(o)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!qp(o,"name")||e&&o.name!==h)&&Gd(o,"name",h),(s=r(o)).source||(s.source=i.join("string"==typeof h?h:""))),t!==Bp?(l?!c&&t[n]&&(u=!0):delete t[n],u?t[n]=o:Gd(t,n,o)):u?t[n]=o:Ip(n,o)})(Function.prototype,"toString",(function(){return Kp(this)&&n(this).source||Yd(this)}))})),gg=Up({}.toString),vg=Up("".slice),mg=function(t){return vg(gg(t),8,-1)},yg=dd("toStringTag"),bg=Bp.Object,xg="Arguments"==mg(function(){return arguments}()),wg=vd?mg:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=bg(t),yg))?n:xg?mg(e):"Object"==(r=mg(e))&&Kp(e.callee)?"Arguments":r},Cg=vd?{}.toString:function(){return"[object "+wg(this)+"]"};vd||dg(Object.prototype,"toString",Cg,{unsafe:!0});var Sg={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},Ag=wd("span").classList,Eg=Ag&&Ag.constructor&&Ag.constructor.prototype,kg=Eg===Object.prototype?void 0:Eg,Dg=Up(Up.bind),Fg=function(t,e){return Id(t),void 0===e?t:Dg?Dg(t,e):function(){return t.apply(e,arguments)}},Mg=Bp.Object,Og=Up("".split),Tg=sd((function(){return!Mg("z").propertyIsEnumerable(0)}))?function(t){return"String"==mg(t)?Og(t,""):Mg(t)}:Mg,Bg=Math.ceil,_g=Math.floor,Ig=function(t){var e=+t;return e!=e||0===e?0:(e>0?_g:Bg)(e)},Pg=Math.min,Lg=function(t){return t>0?Pg(Ig(t),9007199254740991):0},Rg=function(t){return Lg(t.length)},Ng=Array.isArray||function(t){return"Array"==mg(t)},jg=function(){},zg=[],Ug=td("Reflect","construct"),Vg=/^\s*(?:class|function)\b/,Hg=Up(Vg.exec),$g=!Vg.exec(jg),Gg=function(t){if(!Kp(t))return!1;try{return Ug(jg,zg,t),!0}catch(t){return!1}},Wg=!Ug||sd((function(){var t;return Gg(Gg.call)||!Gg(Object)||!Gg((function(){t=!0}))||t}))?function(t){if(!Kp(t))return!1;switch(wg(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $g||!!Hg(Vg,Yd(t))}:Gg,qg=dd("species"),Xg=Bp.Array,Zg=function(t,e){return new(function(t){var e;return Ng(t)&&(e=t.constructor,(Wg(e)&&(e===Xg||Ng(e.prototype))||yd(e)&&null===(e=e[qg]))&&(e=void 0)),void 0===e?Xg:e}(t))(0===e?0:e)},Yg=Up([].push),Qg=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=7==t,s=5==t||o;return function(l,u,c,h){for(var f,p,d=Gp(l),g=Tg(d),v=Fg(u,c),m=Rg(g),y=0,b=h||Zg,x=e?b(l,m):n||a?b(l,0):void 0;m>y;y++)if((s||y in g)&&(p=v(f=g[y],y,d),t))if(e)x[y]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return y;case 2:Yg(x,f)}else switch(t){case 4:return!1;case 7:Yg(x,f)}return o?-1:r||i?i:x}},Kg={forEach:Qg(0),map:Qg(1),filter:Qg(2),some:Qg(3),every:Qg(4),find:Qg(5),findIndex:Qg(6),filterReject:Qg(7)},Jg=function(t,e){var n=[][t];return!!n&&sd((function(){n.call(null,e||function(){throw 1},1)}))},tv=Kg.forEach,ev=Jg("forEach")?[].forEach:function(t){return tv(this,t,arguments.length>1?arguments[1]:void 0)},nv=function(t){if(t&&t.forEach!==ev)try{Gd(t,"forEach",ev)}catch(ot){t.forEach=ev}};for(var rv in Sg)Sg[rv]&&nv(Bp[rv]&&Bp[rv].prototype);nv(kg);var iv={}.propertyIsEnumerable,ov=Object.getOwnPropertyDescriptor,av=ov&&!iv.call({1:2},1)?function(t){var e=ov(this,t);return!!e&&e.enumerable}:iv,sv={f:av},lv=function(t){return Tg(Hp(t))},uv=Object.getOwnPropertyDescriptor,cv={f:md?uv:function(t,e){if(t=lv(t),e=zd(e),Cd)try{return uv(t,e)}catch(t){}if(qp(t,e))return $d(!Dd(sv.f,t,e),t[e])}},hv=Math.max,fv=Math.min,pv=function(t,e){var n=Ig(t);return n<0?hv(n+e,0):fv(n,e)},dv=function(t){return function(e,n,r){var i,o=lv(e),a=Rg(o),s=pv(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},gv={includes:dv(!0),indexOf:dv(!1)},vv=gv.indexOf,mv=Up([].push),yv=function(t,e){var n,r=lv(t),i=0,o=[];for(n in r)!qp(eg,n)&&qp(r,n)&&mv(o,n);for(;e.length>i;)qp(r,n=e[i++])&&(~vv(o,n)||mv(o,n));return o},bv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xv=bv.concat("length","prototype"),wv={f:Object.getOwnPropertyNames||function(t){return yv(t,xv)}},Cv={f:Object.getOwnPropertySymbols},Sv=Up([].concat),Av=td("Reflect","ownKeys")||function(t){var e=wv.f(Ed(t)),n=Cv.f;return n?Sv(e,n(t)):e},Ev=function(t,e){for(var n=Av(e),r=Hd.f,i=cv.f,o=0;o<n.length;o++){var a=n[o];qp(t,a)||r(t,a,i(e,a))}},kv=/#|\.prototype\./,Dv=function(t,e){var n=Mv[Fv(t)];return n==Tv||n!=Ov&&(Kp(e)?sd(e):!!e)},Fv=Dv.normalize=function(t){return String(t).replace(kv,".").toLowerCase()},Mv=Dv.data={},Ov=Dv.NATIVE="N",Tv=Dv.POLYFILL="P",Bv=Dv,_v=cv.f,Iv=function(t,e){var n,r,i,o,a,s=t.target,l=t.global,u=t.stat;if(n=l?Bp:u?Bp[s]||Ip(s,{}):(Bp[s]||{}).prototype)for(r in e){if(o=e[r],i=t.noTargetGet?(a=_v(n,r))&&a.value:n[r],!Bv(l?r:s+(u?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ev(o,i)}(t.sham||i&&i.sham)&&Gd(o,"sham",!0),dg(n,r,o,t)}},Pv=dd("species"),Lv=function(t){return ad>=51||!sd((function(){var e=[];return(e.constructor={})[Pv]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Rv=Kg.map,Nv=Lv("map");Iv({target:"Array",proto:!0,forced:!Nv},{map:function(t){return Rv(this,t,arguments.length>1?arguments[1]:void 0)}});var jv=function(t,e,n){var r,i;Ed(t);try{if(!(r=Pd(t,"return"))){if("throw"===e)throw n;return n}r=Dd(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return Ed(r),n},zv=function(t,e,n,r){try{return r?e(Ed(n)[0],n[1]):e(n)}catch(e){jv(t,"throw",e)}},Uv={},Vv=dd("iterator"),Hv=Array.prototype,$v=function(t){return void 0!==t&&(Uv.Array===t||Hv[Vv]===t)},Gv=function(t,e,n){var r=zd(e);r in t?Hd.f(t,r,$d(0,n)):t[r]=n},Wv=dd("iterator"),qv=function(t){if(null!=t)return Pd(t,Wv)||Pd(t,"@@iterator")||Uv[wg(t)]},Xv=Bp.TypeError,Zv=function(t,e){var n=arguments.length<2?qv(t):e;if(Id(n))return Ed(Dd(n,t));throw Xv(Bd(t)+" is not iterable")},Yv=Bp.Array,Qv=dd("iterator"),Kv=!1;try{var Jv=0,tm={next:function(){return{done:!!Jv++}},return:function(){Kv=!0}};tm[Qv]=function(){return this},Array.from(tm,(function(){throw 2}))}catch(act){}var em=function(t,e){if(!e&&!Kv)return!1;var n=!1;try{var r={};r[Qv]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},nm=!em((function(t){Array.from(t)}));Iv({target:"Array",stat:!0,forced:nm},{from:function(t){var e=Gp(t),n=Wg(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Fg(i,r>2?arguments[2]:void 0));var a,s,l,u,c,h,f=qv(e),p=0;if(!f||this==Yv&&$v(f))for(a=Rg(e),s=n?new this(a):Yv(a);a>p;p++)h=o?i(e[p],p):e[p],Gv(s,p,h);else for(c=(u=Zv(e,f)).next,s=n?new this:[];!(l=Dd(c,u)).done;p++)h=o?zv(u,i,[l.value,p],!0):l.value,Gv(s,p,h);return s.length=p,s}});var rm,im=Bp.String,om=function(t){if("Symbol"===wg(t))throw TypeError("Cannot convert a Symbol value to a string");return im(t)},am=Up("".charAt),sm=Up("".charCodeAt),lm=Up("".slice),um=function(t){return function(e,n){var r,i,o=om(Hp(e)),a=Ig(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=sm(o,a))<55296||r>56319||a+1===s||(i=sm(o,a+1))<56320||i>57343?t?am(o,a):r:t?lm(o,a,a+2):i-56320+(r-55296<<10)+65536}},cm={codeAt:um(!1),charAt:um(!0)},hm=Object.keys||function(t){return yv(t,bv)},fm=md?Object.defineProperties:function(t,e){Ed(t);for(var n,r=lv(e),i=hm(e),o=i.length,a=0;o>a;)Hd.f(t,n=i[a++],r[n]);return t},pm=td("document","documentElement"),dm=tg("IE_PROTO"),gm=function(){},vm=function(t){return"<script>"+t+"<\/script>"},mm=function(t){t.write(vm("")),t.close();var e=t.parentWindow.Object;return t=null,e},ym=function(){try{rm=new ActiveXObject("htmlfile")}catch(t){}var t,e;ym="undefined"!=typeof document?document.domain&&rm?mm(rm):((e=wd("iframe")).style.display="none",pm.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(vm("document.F=Object")),t.close(),t.F):mm(rm);for(var n=bv.length;n--;)delete ym.prototype[bv[n]];return ym()};eg[dm]=!0;var bm,xm,wm,Cm=Object.create||function(t,e){var n;return null!==t?(gm.prototype=Ed(t),n=new gm,gm.prototype=null,n[dm]=t):n=ym(),void 0===e?n:fm(n,e)},Sm=!sd((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Am=tg("IE_PROTO"),Em=Bp.Object,km=Em.prototype,Dm=Sm?Em.getPrototypeOf:function(t){var e=Gp(t);if(qp(e,Am))return e[Am];var n=e.constructor;return Kp(n)&&e instanceof n?n.prototype:e instanceof Em?km:null},Fm=dd("iterator"),Mm=!1;[].keys&&("next"in(wm=[].keys())?(xm=Dm(Dm(wm)))!==Object.prototype&&(bm=xm):Mm=!0);var Om=null==bm||sd((function(){var t={};return bm[Fm].call(t)!==t}));Om&&(bm={}),Kp(bm[Fm])||dg(bm,Fm,(function(){return this}));var Tm={IteratorPrototype:bm,BUGGY_SAFARI_ITERATORS:Mm},Bm=Hd.f,_m=dd("toStringTag"),Im=function(t,e,n){t&&!qp(t=n?t:t.prototype,_m)&&Bm(t,_m,{configurable:!0,value:e})},Pm=Tm.IteratorPrototype,Lm=function(){return this},Rm=Bp.String,Nm=Bp.TypeError,jm=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Up(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Ed(n),function(t){if("object"==typeof t||Kp(t))return t;throw Nm("Can't set "+Rm(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),zm=pg.PROPER,Um=pg.CONFIGURABLE,Vm=Tm.IteratorPrototype,Hm=Tm.BUGGY_SAFARI_ITERATORS,$m=dd("iterator"),Gm=function(){return this},Wm=function(t,e,n,r,i,o,a){!function(t,e,n,r){var i=e+" Iterator";t.prototype=Cm(Pm,{next:$d(+!r,n)}),Im(t,i,!1),Uv[i]=Lm}(n,e,r);var s,l,u,c=function(t){if(t===i&&g)return g;if(!Hm&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,p=t.prototype,d=p[$m]||p["@@iterator"]||i&&p[i],g=!Hm&&d||c(i),v="Array"==e&&p.entries||d;if(v&&(s=Dm(v.call(new t)))!==Object.prototype&&s.next&&(Dm(s)!==Vm&&(jm?jm(s,Vm):Kp(s[$m])||dg(s,$m,Gm)),Im(s,h,!0)),zm&&"values"==i&&d&&"values"!==d.name&&(Um?Gd(p,"name","values"):(f=!0,g=function(){return Dd(d,this)})),i)if(l={values:c("values"),keys:o?g:c("keys"),entries:c("entries")},a)for(u in l)(Hm||f||!(u in p))&&dg(p,u,l[u]);else Iv({target:e,proto:!0,forced:Hm||f},l);return p[$m]!==g&&dg(p,$m,g,{name:i}),Uv[e]=g,l},qm=cm.charAt,Xm=ug.set,Zm=ug.getterFor("String Iterator");Wm(String,"String",(function(t){Xm(this,{type:"String Iterator",string:om(t),index:0})}),(function(){var t,e=Zm(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=qm(n,r),e.index+=t.length,{value:t,done:!1})}));var Ym=sd((function(){hm(1)}));
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function Qm(t){return"[object Object]"===Object.prototype.toString.call(t)}Iv({target:"Object",stat:!0,forced:Ym},{keys:function(t){return hm(Gp(t))}});var Km={isHistory(t){return!1!==Qm(e=t)&&(void 0===(n=e.constructor)||!1!==Qm(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(0===t.redos.length||ln.isOperationList(t.redos[0]))&&(0===t.undos.length||ln.isOperationList(t.undos[0]));var e,n,r}},Jm=new WeakMap,ty=new WeakMap,ey={isHistoryEditor:t=>Km.isHistory(t.history)&&Je.isEditor(t),isMerging:t=>ty.get(t),isSaving:t=>Jm.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var n=ey.isMerging(t);ty.set(t,!1),e(),ty.set(t,n)},withoutSaving(t,e){var n=ey.isSaving(t);Jm.set(t,!1),e(),Jm.set(t,n)}},ny=(t,e)=>"set_selection"===t.type||!(!e||"insert_text"!==t.type||"insert_text"!==e.type||t.offset!==e.offset+e.text.length||!un.equals(t.path,e.path))||!(!e||"remove_text"!==t.type||"remove_text"!==e.type||t.offset+t.text.length!==e.offset||!un.equals(t.path,e.path)),ry=(t,e)=>"set_selection"!==t.type||null!=t.properties&&null!=t.newProperties,iy=(t,e)=>!(!e||"set_selection"!==t.type||"set_selection"!==e.type),oy=t=>"set_selection"!==t.type,ay=function(){var t=Ed(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},sy=pg.PROPER,ly=RegExp.prototype,uy=ly.toString,cy=Up(ay),hy=sd((function(){return"/a/b"!=uy.call({source:"a",flags:"b"})})),fy=sy&&"toString"!=uy.name;(hy||fy)&&dg(RegExp.prototype,"toString",(function(){var t=Ed(this),e=om(t.source),n=t.flags;return"/"+e+"/"+om(void 0===n&&Fd(ly,t)&&!("flags"in ly)?cy(t):n)}),{unsafe:!0});var py=dd("unscopables"),dy=Array.prototype;null==dy[py]&&Hd.f(dy,py,{configurable:!0,value:Cm(null)});var gy=function(t){dy[py][t]=!0},vy=gv.includes;Iv({target:"Array",proto:!0},{includes:function(t){return vy(this,t,arguments.length>1?arguments[1]:void 0)}}),gy("includes");var my=dd("match"),yy=function(t){var e;return yd(t)&&(void 0!==(e=t[my])?!!e:"RegExp"==mg(t))},by=Bp.TypeError,xy=function(t){if(yy(t))throw by("The method doesn't accept regular expressions");return t},wy=dd("match"),Cy=function(t){var e=/./;try{"/./"[t](e)}catch(it){try{return e[wy]=!1,"/./"[t](e)}catch(t){}}return!1},Sy=Up("".indexOf);Iv({target:"String",proto:!0,forced:!Cy("includes")},{includes:function(t){return!!~Sy(om(Hp(this)),om(xy(t)),arguments.length>1?arguments[1]:void 0)}});var Ay,Ey=/"/g,ky=Up("".replace);Iv({target:"String",proto:!0,forced:(Ay="anchor",sd((function(){var t=""[Ay]('"');return t!==t.toLowerCase()||t.split('"').length>3})))},{anchor:function(t){return e="a",n="name",r=t,i=om(Hp(this)),o="<"+e,""!==n&&(o+=" "+n+'="'+ky(om(r),Ey,""")+'"'),o+">"+i+"</"+e+">";var e,n,r,i,o}});var Dy,Fy=cv.f,My=Up("".endsWith),Oy=Up("".slice),Ty=Math.min,By=Cy("endsWith"),_y=!(By||(Dy=Fy(String.prototype,"endsWith"),!Dy||Dy.writable));Iv({target:"String",proto:!0,forced:!_y&&!By},{endsWith:function(t){var e=om(Hp(this));xy(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,i=void 0===n?r:Ty(Lg(n),r),o=om(t);return My?My(e,o,i):Oy(e,i-o.length,i)===o}});var Iy=Up([].join),Py=Tg!=Object,Ly=Jg("join",",");Iv({target:"Array",proto:!0,forced:Py||!Ly},{join:function(t){return Iy(lv(this),void 0===t?",":t)}});var Ry=Bp.RegExp,Ny=sd((function(){var t=Ry("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),jy=Ny||sd((function(){return!Ry("a","y").sticky})),zy={BROKEN_CARET:Ny||sd((function(){var t=Ry("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:jy,UNSUPPORTED_Y:Ny},Uy=Bp.RegExp,Vy=sd((function(){var t=Uy(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Hy=Bp.RegExp,$y=sd((function(){var t=Hy("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Gy=ug.get,Wy=Lp("native-string-replace",String.prototype.replace),qy=RegExp.prototype.exec,Xy=qy,Zy=Up("".charAt),Yy=Up("".indexOf),Qy=Up("".replace),Ky=Up("".slice),Jy=function(){var t=/a/,e=/b*/g;return Dd(qy,t,"a"),Dd(qy,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),tb=zy.BROKEN_CARET,eb=void 0!==/()??/.exec("")[1];(Jy||eb||tb||Vy||$y)&&(Xy=function(t){var e,n,r,i,o,a,s,l=this,u=Gy(l),c=om(t),h=u.raw;if(h)return h.lastIndex=l.lastIndex,e=Dd(Xy,h,c),l.lastIndex=h.lastIndex,e;var f=u.groups,p=tb&&l.sticky,d=Dd(ay,l),g=l.source,v=0,m=c;if(p&&(d=Qy(d,"y",""),-1===Yy(d,"g")&&(d+="g"),m=Ky(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==Zy(c,l.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",d)),eb&&(n=new RegExp("^"+g+"$(?!\\s)",d)),Jy&&(r=l.lastIndex),i=Dd(qy,p?n:l,m),p?i?(i.input=Ky(i.input,v),i[0]=Ky(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:Jy&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),eb&&i&&i.length>1&&Dd(Wy,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&f)for(i.groups=a=Cm(null),o=0;o<f.length;o++)a[(s=f[o])[0]]=i[s[1]];return i});var nb=Xy;Iv({target:"RegExp",proto:!0,forced:/./.exec!==nb},{exec:nb});var rb=Function.prototype,ib=rb.apply,ob=rb.bind,ab=rb.call,sb="object"==typeof Reflect&&Reflect.apply||(ob?ab.bind(ib):function(){return ab.apply(ib,arguments)}),lb=dd("species"),ub=RegExp.prototype,cb=function(t,e,n,r){var i=dd(t),o=!sd((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=o&&!sd((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[lb]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!o||!a||n){var s=Up(/./[i]),l=e(i,""[t],(function(t,e,n,r,i){var a=Up(t),l=e.exec;return l===nb||l===ub.exec?o&&!i?{done:!0,value:s(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));dg(String.prototype,t,l[0]),dg(ub,i,l[1])}r&&Gd(ub[i],"sham",!0)},hb=cm.charAt,fb=function(t,e,n){return e+(n?hb(t,e).length:1)},pb=Math.floor,db=Up("".charAt),gb=Up("".replace),vb=Up("".slice),mb=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,yb=/\$([$&'`]|\d{1,2})/g,bb=function(t,e,n,r,i,o){var a=n+t.length,s=r.length,l=yb;return void 0!==i&&(i=Gp(i),l=mb),gb(o,l,(function(o,l){var u;switch(db(l,0)){case"$":return"$";case"&":return t;case"`":return vb(e,0,n);case"'":return vb(e,a);case"<":u=i[vb(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>s){var h=pb(c/10);return 0===h?o:h<=s?void 0===r[h-1]?db(l,1):r[h-1]+db(l,1):o}u=r[c-1]}return void 0===u?"":u}))},xb=Bp.TypeError,wb=function(t,e){var n=t.exec;if(Kp(n)){var r=Dd(n,t,e);return null!==r&&Ed(r),r}if("RegExp"===mg(t))return Dd(nb,t,e);throw xb("RegExp#exec called on incompatible receiver")},Cb=dd("replace"),Sb=Math.max,Ab=Math.min,Eb=Up([].concat),kb=Up([].push),Db=Up("".indexOf),Fb=Up("".slice),Mb="$0"==="a".replace(/./,"$0"),Ob=!!/./[Cb]&&""===/./[Cb]("a","$0");cb("replace",(function(t,e,n){var r=Ob?"$":"$0";return[function(t,n){var r=Hp(this),i=null==t?void 0:Pd(t,Cb);return i?Dd(i,t,r,n):Dd(e,om(r),t,n)},function(t,i){var o=Ed(this),a=om(t);if("string"==typeof i&&-1===Db(i,r)&&-1===Db(i,"$<")){var s=n(e,o,a,i);if(s.done)return s.value}var l=Kp(i);l||(i=om(i));var u=o.global;if(u){var c=o.unicode;o.lastIndex=0}for(var h=[];;){var f=wb(o,a);if(null===f)break;if(kb(h,f),!u)break;""===om(f[0])&&(o.lastIndex=fb(a,Lg(o.lastIndex),c))}for(var p,d="",g=0,v=0;v<h.length;v++){for(var m=om((f=h[v])[0]),y=Sb(Ab(Ig(f.index),a.length),0),b=[],x=1;x<f.length;x++)kb(b,void 0===(p=f[x])?p:String(p));var w=f.groups;if(l){var C=Eb([m],b,y,a);void 0!==w&&kb(C,w);var S=om(sb(i,void 0,C))}else S=bb(m,a,y,b,w,i);y>=g&&(d+=Fb(a,g,y)+S,g=y+m.length)}return d+Fb(a,g)}]}),!!sd((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Mb||Ob);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var Tb=function(t,e){return Tb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Tb(t,e)};function Bb(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Tb(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var _b=function(){return _b=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},_b.apply(this,arguments)};function Ib(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Pb(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Lb(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t}var Rb=0,Nb=function(){this.id=""+Rb++},jb=ug.set,zb=ug.getterFor("Array Iterator"),Ub=Wm(Array,"Array",(function(t,e){jb(this,{type:"Array Iterator",target:lv(t),index:0,kind:e})}),(function(){var t=zb(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");Uv.Arguments=Uv.Array,gy("keys"),gy("values"),gy("entries");var Vb=function(t,e,n){for(var r in e)dg(t,r,e[r],n);return t},Hb=Bp.Array,$b=Math.max,Gb=function(t,e,n){for(var r=Rg(t),i=pv(e,r),o=pv(void 0===n?r:n,r),a=Hb($b(o-i,0)),s=0;i<o;i++,s++)Gv(a,s,t[i]);return a.length=s,a},Wb=wv.f,qb="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xb={f:function(t){return qb&&"Window"==mg(t)?function(t){try{return Wb(t)}catch(t){return Gb(qb)}}(t):Wb(lv(t))}},Zb=sd((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Yb=Object.isExtensible,Qb=sd((function(){Yb(1)}))||Zb?function(t){return!!yd(t)&&(!Zb||"ArrayBuffer"!=mg(t))&&(!Yb||Yb(t))}:Yb,Kb=!sd((function(){return Object.isExtensible(Object.preventExtensions({}))})),Jb=Fp((function(t){var e=Hd.f,n=!1,r=Qp("meta"),i=0,o=function(t){e(t,r,{value:{objectID:"O"+i++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var t=wv.f,e=Up([].splice),i={};i[r]=1,t(i).length&&(wv.f=function(n){for(var i=t(n),o=0,a=i.length;o<a;o++)if(i[o]===r){e(i,o,1);break}return i},Iv({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Xb.f}))},fastKey:function(t,e){if(!yd(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!qp(t,r)){if(!Qb(t))return"F";if(!e)return"E";o(t)}return t[r].objectID},getWeakData:function(t,e){if(!qp(t,r)){if(!Qb(t))return!0;if(!e)return!1;o(t)}return t[r].weakData},onFreeze:function(t){return Kb&&n&&Qb(t)&&!qp(t,r)&&o(t),t}};eg[r]=!0})),tx=Bp.TypeError,ex=function(t,e){this.stopped=t,this.result=e},nx=ex.prototype,rx=function(t,e,n){var r,i,o,a,s,l,u,c=n&&n.that,h=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),d=Fg(e,c),g=function(t){return r&&jv(r,"normal",t),new ex(!0,t)},v=function(t){return h?(Ed(t),p?d(t[0],t[1],g):d(t[0],t[1])):p?d(t,g):d(t)};if(f)r=t;else{if(!(i=qv(t)))throw tx(Bd(t)+" is not iterable");if($v(i)){for(o=0,a=Rg(t);a>o;o++)if((s=v(t[o]))&&Fd(nx,s))return s;return new ex(!1)}r=Zv(t,i)}for(l=r.next;!(u=Dd(l,r)).done;){try{s=v(u.value)}catch(t){jv(r,"throw",t)}if("object"==typeof s&&s&&Fd(nx,s))return s}return new ex(!1)},ix=Bp.TypeError,ox=function(t,e){if(Fd(e,t))return t;throw ix("Incorrect invocation")},ax=function(t,e,n){var r,i;return jm&&Kp(r=e.constructor)&&r!==n&&yd(i=r.prototype)&&i!==n.prototype&&jm(t,i),t},sx=function(t,e,n){var r=-1!==t.indexOf("Map"),i=-1!==t.indexOf("Weak"),o=r?"set":"add",a=Bp[t],s=a&&a.prototype,l=a,u={},c=function(t){var e=Up(s[t]);dg(s,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(i&&!yd(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return i&&!yd(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(i&&!yd(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(Bv(t,!Kp(a)||!(i||s.forEach&&!sd((function(){(new a).entries().next()})))))l=n.getConstructor(e,t,r,o),Jb.enable();else if(Bv(t,!0)){var h=new l,f=h[o](i?{}:-0,1)!=h,p=sd((function(){h.has(1)})),d=em((function(t){new a(t)})),g=!i&&sd((function(){for(var t=new a,e=5;e--;)t[o](e,e);return!t.has(-0)}));d||((l=e((function(t,e){ox(t,s);var n=ax(new a,t,l);return null!=e&&rx(e,n[o],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=l),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||f)&&c(o),i&&s.clear&&delete s.clear}return u[t]=l,Iv({global:!0,forced:l!=a},u),Im(l,t),i||n.setStrong(l,t,r),l},lx=Jb.getWeakData,ux=ug.set,cx=ug.getterFor,hx=Kg.find,fx=Kg.findIndex,px=Up([].splice),dx=0,gx=function(t){return t.frozen||(t.frozen=new vx)},vx=function(){this.entries=[]},mx=function(t,e){return hx(t.entries,(function(t){return t[0]===e}))};vx.prototype={get:function(t){var e=mx(this,t);if(e)return e[1]},has:function(t){return!!mx(this,t)},set:function(t,e){var n=mx(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=fx(this.entries,(function(e){return e[0]===t}));return~e&&px(this.entries,e,1),!!~e}};var yx,bx={getConstructor:function(t,e,n,r){var i=t((function(t,i){ox(t,o),ux(t,{type:e,id:dx++,frozen:void 0}),null!=i&&rx(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,a=cx(e),s=function(t,e,n){var r=a(t),i=lx(Ed(e),!0);return!0===i?gx(r).set(e,n):i[r.id]=n,t};return Vb(o,{delete:function(t){var e=a(this);if(!yd(t))return!1;var n=lx(t);return!0===n?gx(e).delete(t):n&&qp(n,e.id)&&delete n[e.id]},has:function(t){var e=a(this);if(!yd(t))return!1;var n=lx(t);return!0===n?gx(e).has(t):n&&qp(n,e.id)}}),Vb(o,n?{get:function(t){var e=a(this);if(yd(t)){var n=lx(t);return!0===n?gx(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return s(this,t,e)}}:{add:function(t){return s(this,t,!0)}}),i}},xx=ug.enforce,wx=!Bp.ActiveXObject&&"ActiveXObject"in Bp,Cx=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Sx=sx("WeakMap",Cx,bx);if(Kd&&wx){yx=bx.getConstructor(Cx,"WeakMap",!0),Jb.enable();var Ax=Sx.prototype,Ex=Up(Ax.delete),kx=Up(Ax.has),Dx=Up(Ax.get),Fx=Up(Ax.set);Vb(Ax,{delete:function(t){if(yd(t)&&!Qb(t)){var e=xx(this);return e.frozen||(e.frozen=new yx),Ex(this,t)||e.frozen.delete(t)}return Ex(this,t)},has:function(t){if(yd(t)&&!Qb(t)){var e=xx(this);return e.frozen||(e.frozen=new yx),kx(this,t)||e.frozen.has(t)}return kx(this,t)},get:function(t){if(yd(t)&&!Qb(t)){var e=xx(this);return e.frozen||(e.frozen=new yx),kx(this,t)?Dx(this,t):e.frozen.get(t)}return Dx(this,t)},set:function(t,e){if(yd(t)&&!Qb(t)){var n=xx(this);n.frozen||(n.frozen=new yx),kx(this,t)?Fx(this,t,e):n.frozen.set(t,e)}else Fx(this,t,e);return this}})}var Mx=dd("iterator"),Ox=dd("toStringTag"),Tx=Ub.values,Bx=function(t,e){if(t){if(t[Mx]!==Tx)try{Gd(t,Mx,Tx)}catch(e){t[Mx]=Tx}if(t[Ox]||Gd(t,Ox,e),Sg[e])for(var n in Ub)if(t[n]!==Ub[n])try{Gd(t,n,Ub[n])}catch(e){t[n]=Ub[n]}}};for(var _x in Sg)Bx(Bp[_x]&&Bp[_x].prototype,_x);Bx(kg,"DOMTokenList");var Ix=new WeakMap,Px=new WeakMap,Lx=new WeakMap,Rx=new WeakMap,Nx=new WeakMap,jx=new WeakMap,zx=new WeakMap,Ux=new WeakMap,Vx=new WeakMap,Hx=new WeakMap,$x=new WeakMap,Gx=new WeakMap,Wx=new WeakMap,qx=new WeakMap,Xx=new WeakMap,Zx=new WeakMap,Yx=new WeakMap,Qx=new WeakMap,Kx=new WeakMap,Jx=new WeakMap,tw=new WeakMap,ew=new WeakMap,nw=new WeakMap,rw=new WeakMap,iw=new WeakMap,ow=Kg.find,aw=!0;"find"in[]&&Array(1).find((function(){aw=!1})),Iv({target:"Array",proto:!0,forced:aw},{find:function(t){return ow(this,t,arguments.length>1?arguments[1]:void 0)}}),gy("find"),Iv({global:!0},{globalThis:Bp});const sw=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];mo&&(eo.fn.css=mo),So&&(eo.fn.append=So),no&&(eo.fn.addClass=no),ro&&(eo.fn.removeClass=ro),io&&(eo.fn.hasClass=io),uo&&(eo.fn.on=uo),Io&&(eo.fn.focus=Io),oo&&(eo.fn.attr=oo),ao&&(eo.fn.removeAttr=ao),go&&(eo.fn.hide=go),vo&&(eo.fn.show=vo),po&&(eo.fn.offset=po),ho&&(eo.fn.width=ho),fo&&(eo.fn.height=fo),Eo&&(eo.fn.parent=Eo),ko&&(eo.fn.parents=ko),Co&&(eo.fn.is=Co),so&&(eo.fn.dataset=so),lo&&(eo.fn.val=lo),wo&&(eo.fn.text=wo),xo&&(eo.fn.html=xo),Fo&&(eo.fn.children=Fo),Mo&&(eo.fn.remove=Mo),Do&&(eo.fn.find=Do),yo&&(eo.fn.each=yo),Oo&&(eo.fn.empty=Oo);var lw,uw=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},cw=function(t){return hw(t)&&1===t.nodeType},hw=function(t){var e=uw(t);return!!e&&t instanceof e.Node},fw=function(t){var e=t&&t.anchorNode&&uw(t.anchorNode);return!!e&&t instanceof e.Selection},pw=function(t){return hw(t)&&3===t.nodeType},dw=function(t){var e,n,r;return null!==(e=window.document.getElementById(t))&&void 0!==e?e:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(t))||null},gw=function(t,e,n){for(var r,i=t.childNodes,o=i[e],a=e,s=!1,l=!1;(hw(r=o)&&8===r.nodeType||cw(o)&&0===o.childNodes.length||cw(o)&&"false"===o.getAttribute("contenteditable"))&&(!s||!l);)a>=i.length?(s=!0,a=e-1,n="backward"):a<0?(l=!0,a=e+1,n="forward"):(o=i[a],e=a,a+="forward"===n?1:-1);return[o,e]},vw=function(t,e,n){return Pb(gw(t,e,n),1)[0]},mw=function t(e){var n,r,i="";if(pw(e)&&e.nodeValue)return e.nodeValue;if(cw(e)){try{for(var o=Ib(Array.from(e.childNodes)),a=o.next();!a.done;a=o.next())i+=t(a.value)}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}var s=getComputedStyle(e).getPropertyValue("display");"block"!==s&&"list"!==s&&"table-row"!==s&&"BR"!==e.tagName||(i+="\n")}return i};function yw(t,e){if(!(t instanceof HTMLElement&&"true"===t.dataset.slateVoid))for(var n=t.childNodes,r=n.length;r--;){var i=n[r],o=i.nodeType;3==o?e(i,t):1!=o&&9!=o&&11!=o||yw(i,e)}}function bw(t){if(0===t.length)return"";var e=t[0];return e.nodeType!==lw.ELEMENT_NODE?"":e.tagName.toLowerCase()}!function(t){t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.TEXT_NODE=3]="TEXT_NODE",t[t.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",t[t.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",t[t.COMMENT_NODE=8]="COMMENT_NODE",t[t.DOCUMENT_NODE=9]="DOCUMENT_NODE",t[t.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",t[t.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(lw||(lw={})),void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var xw="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),ww="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var Cw="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Sw="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Aw="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Ew="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var kw=!Aw&&!Sw&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,Dw={getWindow:function(t){var e=tw.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var n=Jx.get(e);return n||(n=new Nb,Jx.set(e,n)),n},setNewKey:function(t){var e=new Nb;Jx.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var i=Xx.get(r);if(null==i){if(Je.isEditor(r))return n;break}var o=qx.get(r);if(null==o)break;n.unshift(o),r=i}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(e))},findDocumentOrShadowRoot:function(t){if(t.isDestroyed)return window.document;var e=Dw.toDOMNode(t,t),n=e.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:e.ownerDocument},getParentNode:function(t,e){return Xx.get(e)||null},getParentsNodes:function(t,e){for(var n=[],r=e;r!==t&&null!=r;){var i=Dw.getParentNode(t,r);if(null==i)break;n.push(i),r=i}return n},getTopNode:function(t,e){var n=[Dw.findPath(t,e)[0]];return on.get(t,n)},toDOMNode:function(t,e){var n;if(Je.isEditor(e))n=Zx.get(t);else{var r=Dw.findKey(t,e);n=Qx.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return n},hasDOMNode:function(t,e,n){void 0===n&&(n={});var r,i=n.editable,o=void 0!==i&&i,a=Dw.toDOMNode(t,t);try{r=cw(e)?e:e.parentElement}catch(t){if(!t.message.includes('Permission denied to access property "nodeType"'))throw t}return!!r&&r.closest("[data-slate-editor]")===a&&(!o||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var n=e.anchor,r=e.focus,i=yn.isBackward(e),o=Dw.toDOMPoint(t,n),a=yn.isCollapsed(e)?o:Dw.toDOMPoint(t,r),s=Dw.getWindow(t).document.createRange(),l=Pb(i?a:o,2),u=l[0],c=l[1],h=Pb(i?o:a,2),f=h[0],p=h[1],d=!!(cw(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),g=!!(cw(f)?f:f.parentElement).getAttribute("data-slate-zero-width");return s.setStart(u,d?1:c),s.setEnd(f,g?1:p),s},toDOMPoint:function(t,e){var n,r,i,o=Pb(Je.node(t,e.path),1)[0],a=Dw.toDOMNode(t,o);Je.void(t,{at:e})&&(e={path:e.path,offset:0});var s=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),l=0;try{for(var u=Ib(s),c=u.next();!c.done;c=u.next()){var h=c.value,f=h.childNodes[0];if(null!=f&&null!=f.textContent){var p=f.textContent.length,d=h.getAttribute("data-slate-length"),g=l+(null==d?p:parseInt(d,10));if(e.offset<=g){i=[f,Math.min(p,Math.max(0,e.offset-l))];break}l=g}}}catch(act){n={error:act}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(!i)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(e));return i},toSlateNode:function(t,e){var n=cw(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Yx.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var n=e.clientX,r=e.clientY,i=e.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);var o,a=Dw.toSlateNode(t,e.target),s=Dw.findPath(t,a);if(Je.isVoid(t,a)){var l=i.getBoundingClientRect(),u=t.isInline(a)?n-l.left<l.left+l.width-n:r-l.top<l.top+l.height-r,c=Je.point(t,s,{edge:u?"start":"end"}),h=u?Je.before(t,c):Je.after(t,c);if(h)return Je.range(t,h)}var f=this.getWindow(t).document;if(f.caretRangeFromPoint)o=f.caretRangeFromPoint(n,r);else{var p=f.caretPositionFromPoint(n,r);p&&((o=f.createRange()).setStart(p.offsetNode,p.offset),o.setEnd(p.offsetNode,p.offset))}if(!o)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);return Dw.toSlateRange(t,o,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(t,e,n){var r,i,o,a,s,l=n.exactMatch,u=n.suppressThrow;if((fw(e)?e.anchorNode:e.startContainer)&&(fw(e)?(r=e.anchorNode,i=e.anchorOffset,o=e.focusNode,a=e.focusOffset,s=Ew&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(r=e.startContainer,i=e.startOffset,o=e.endContainer,a=e.endOffset,s=e.collapsed)),null==r||null==o||null==i||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+e);var c=Dw.toSlatePoint(t,[r,i],{exactMatch:l,suppressThrow:u});if(!c)return null;var h=s?c:Dw.toSlatePoint(t,[o,a],{exactMatch:l,suppressThrow:u});if(!h)return null;var f={anchor:c,focus:h};return yn.isExpanded(f)&&yn.isForward(f)&&cw(o)&&Je.void(t,{at:f.focus,mode:"highest"})&&(f=Je.unhangRange(t,f,{voids:!0})),f},toSlatePoint:function(t,e,n){var r,i=n.exactMatch,o=n.suppressThrow,a=Pb(i?e:function(t){var e,n=Pb(t,2),r=n[0],i=n[1];if(cw(r)&&r.childNodes.length){var o=i===r.childNodes.length,a=o?i-1:i;for(r=(e=Pb(gw(r,a,o?"backward":"forward"),2))[0],o=(a=e[1])<i;cw(r)&&r.childNodes.length;){var s=o?r.childNodes.length-1:0;r=vw(r,s,o?"backward":"forward")}i=o&&null!=r.textContent?r.textContent.length:0}return[r,i]}(e),2),s=a[0],l=a[1],u=s.parentNode,c=null,h=0;if(u){var f=u.closest('[data-slate-void="true"]'),p=u.closest("[data-slate-leaf]"),d=null;if(p){c=p.closest('[data-slate-node="text"]');var g=Dw.getWindow(t).document.createRange();g.setStart(c,0),g.setEnd(s,l);var v=g.cloneContents();Lb(Lb([],Pb(_i(v.querySelectorAll("[data-slate-zero-width]")))),Pb(_i(v.querySelectorAll("[contenteditable=false]")))).forEach((function(t){t.parentNode.removeChild(t)})),h=v.textContent.length,d=c}else f&&((p=f.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),h=(d=p).textContent.length,d.querySelectorAll("[data-slate-zero-width]").forEach((function(t){h-=t.textContent.length}))):h=1);d&&h===d.textContent.length&&(u.hasAttribute("data-slate-zero-width")||ww&&(null===(r=d.textContent)||void 0===r?void 0:r.endsWith("\n")))&&h--}if(!c){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var m=Dw.toSlateNode(t,c);return{path:Dw.findPath(t,m),offset:h}},hasRange:function(t,e){var n=e.anchor,r=e.focus;return Je.hasPath(t,n.path)&&Je.hasPath(t,r.path)},getNodeType:function(t){return qe.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map((function(t){return on.string(t)})).join("")},getSelectedElems:function(t){var e,n,r=[],i=Je.nodes(t,{universal:!0});try{for(var o=Ib(i),a=o.next();!a.done;a=o.next()){var s=Pb(a.value,1)[0];qe.isElement(s)&&r.push(s)}}catch(act){e={error:act}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},getSelectedNodeByType:function(t,e){var n=this,r=Pb(Je.nodes(t,{match:function(t){return n.checkNodeType(t,e)},universal:!0}),1),i=r[0];return null==i?null:i[0]},getSelectedTextNode:function(t){var e=Pb(Je.nodes(t,{match:function(t){return En.isText(t)},universal:!0}),1),n=e[0];return null==n?null:n[0]},isNodeSelected:function(t,e){var n=Pb(Je.nodes(t,{match:function(t){return t===e},universal:!0}),1),r=n[0];return null!=r&&Pb(r,1)[0]===e},isSelectionAtLineEnd:function(t,e){var n=t.selection;return!!n&&(Je.isEnd(t,n.anchor,e)||Je.isEnd(t,n.focus,e))},getTextarea:function(t){var e=Ix.get(t);if(null==e)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return Rx.get(t)||null},getHoverbar:function(t){return jx.get(t)||null},normalizeContent:function(t){t.children.forEach((function(e,n){t.normalizeNode([e,[n]])}))},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),n=e.maxLength,r=e.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var i=n-t.getText().replace(/\r|\n|(\r\n)/g,"").length;return i<=0&&r&&r(t),i},cleanExposedTexNodeInSelectionBlock:function(t){var e,n,r,i,o=Dw.getTextarea(t).$textArea,a=null==o?void 0:o[0].childNodes;if(a)try{for(var s=Ib(Array.from(a)),l=s.next();!l.done;l=s.next()){var u=l.value;if(3!==u.nodeType)break;u.remove()}}catch(act){e={error:act}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}var c=Je.nodes(t,{match:function(e){return!(!qe.isElement(e)||t.isInline(e))},universal:!0});try{for(var h=Ib(c),f=h.next();!f.done;f=h.next()){var p=f.value;if(null!=p){var d=p[0];yw(Dw.toDOMNode(t,d),(function(t,e){var n=eo(e);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||e.removeChild(t)}))}}}catch(act){r={error:act}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}},isLastNode:function(t,e){var n=t.children||[];return n[n.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}}},Fw=1,Mw={},Ow={};function Tw(t,e){var n=t.key,r=t.factory,i=t.config,o=_b(_b({},i),e||{});if(null!=Ow[n])throw new Error("Duplicated key '"+n+"' in menu items");Ow[n]=r,function(t,e){null!=e&&(Mw[t]=e)}(n,o)}var Bw=dd("species"),_w=function(t){var e=td(t),n=Hd.f;md&&e&&!e[Bw]&&n(e,Bw,{configurable:!0,get:function(){return this}})},Iw=Hd.f,Pw=Jb.fastKey,Lw=ug.set,Rw=ug.getterFor,Nw={getConstructor:function(t,e,n,r){var i=t((function(t,i){ox(t,o),Lw(t,{type:e,index:Cm(null),first:void 0,last:void 0,size:0}),md||(t.size=0),null!=i&&rx(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,a=Rw(e),s=function(t,e,n){var r,i,o=a(t),s=l(t,e);return s?s.value=n:(o.last=s={index:i=Pw(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),md?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},l=function(t,e){var n,r=a(t),i=Pw(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return Vb(o,{clear:function(){for(var t=a(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,md?t.size=0:this.size=0},delete:function(t){var e=this,n=a(e),r=l(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),md?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=a(this),r=Fg(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),Vb(o,n?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),md&&Iw(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=Rw(e),o=Rw(r);Wm(t,e,(function(t,e){Lw(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),_w(e)}};sx("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Nw);var jw=Kg.filter,zw=Lv("filter");Iv({target:"Array",proto:!0,forced:!zw},{filter:function(t){return jw(this,t,arguments.length>1?arguments[1]:void 0)}});var Uw="\t\n\v\f\r \u2028\u2029\ufeff",Vw=Up("".replace),Hw="["+Uw+"]",$w=RegExp("^"+Hw+Hw+"*"),Gw=RegExp(Hw+Hw+"*$"),Ww=function(t){return function(e){var n=om(Hp(e));return 1&t&&(n=Vw(n,$w,"")),2&t&&(n=Vw(n,Gw,"")),n}},qw={start:Ww(1),end:Ww(2),trim:Ww(3)},Xw=pg.PROPER,Zw=qw.trim;Iv({target:"String",proto:!0,forced:function(t){return sd((function(){return!!Uw[t]()||"
"!=="
"[t]()||Xw&&Uw[t].name!==t}))}("trim")},{trim:function(){return Zw(this)}});var Yw=Bp.TypeError,Qw=dd("species"),Kw=function(t,e){var n,r=Ed(t).constructor;return void 0===r||null==(n=Ed(r)[Qw])?e:function(t){if(Wg(t))return t;throw Yw(Bd(t)+" is not a constructor")}(n)},Jw=zy.UNSUPPORTED_Y,tC=Math.min,eC=[].push,nC=Up(/./.exec),rC=Up(eC),iC=Up("".slice);cb("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=om(Hp(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!yy(t))return Dd(e,r,t,i);for(var o,a,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,h=new RegExp(t.source,u+"g");(o=Dd(nb,h,r))&&!((a=h.lastIndex)>c&&(rC(l,iC(r,c,o.index)),o.length>1&&o.index<r.length&&sb(eC,l,Gb(o,1)),s=o[0].length,c=a,l.length>=i));)h.lastIndex===o.index&&h.lastIndex++;return c===r.length?!s&&nC(h,"")||rC(l,""):rC(l,iC(r,c)),l.length>i?Gb(l,0,i):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:Dd(e,this,t,n)}:e,[function(e,n){var i=Hp(this),o=null==e?void 0:Pd(e,t);return o?Dd(o,e,i,n):Dd(r,om(i),e,n)},function(t,i){var o=Ed(this),a=om(t),s=n(r,o,a,i,r!==e);if(s.done)return s.value;var l=Kw(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Jw?"g":"y"),h=new l(Jw?"^(?:"+o.source+")":o,c),f=void 0===i?4294967295:i>>>0;if(0===f)return[];if(0===a.length)return null===wb(h,a)?[a]:[];for(var p=0,d=0,g=[];d<a.length;){h.lastIndex=Jw?0:d;var v,m=wb(h,Jw?iC(a,d):a);if(null===m||(v=tC(Lg(h.lastIndex+(Jw?d:0)),a.length))===p)d=fb(a,d,u);else{if(rC(g,iC(a,p,d)),g.length===f)return g;for(var y=1;y<=m.length-1;y++)if(rC(g,m[y]),g.length===f)return g;d=p=v}}return rC(g,iC(a,p)),g}]}),!!sd((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Jw);var oC=[];function aC(t){oC.push(t)}var sC={};function lC(t){var e=t.type,n=t.elemToHtml;sC[e||""]=n}function uC(t,e,n){var r=n.isInline(t)?"span":"div";return"<"+r+">"+e+"</"+r+">"}function cC(t,e){var n=t.type,r=void 0===n?"":n,i=t.children,o=void 0===i?[]:i,a=Je.isVoid(e,t),s="";a||(s=o.map((function(t){return PS(t,e)})).join(""));var l=function(t){return sC[t]||uC}(r),u=l(t,s,e);return a||oC.forEach((function(e){return u=e(t,u)})),u}var hC,fC,pC,dC,gC=Bp.Promise,vC=Up([].slice),mC=/(?:ipad|iphone|ipod).*applewebkit/i.test(ed),yC="process"==mg(Bp.process),bC=Bp.setImmediate,xC=Bp.clearImmediate,wC=Bp.process,CC=Bp.Dispatch,SC=Bp.Function,AC=Bp.MessageChannel,EC=Bp.String,kC=0,DC={};try{hC=Bp.location}catch(act){}var FC=function(t){if(qp(DC,t)){var e=DC[t];delete DC[t],e()}},MC=function(t){return function(){FC(t)}},OC=function(t){FC(t.data)},TC=function(t){Bp.postMessage(EC(t),hC.protocol+"//"+hC.host)};bC&&xC||(bC=function(t){var e=vC(arguments,1);return DC[++kC]=function(){sb(Kp(t)?t:SC(t),void 0,e)},fC(kC),kC},xC=function(t){delete DC[t]},yC?fC=function(t){wC.nextTick(MC(t))}:CC&&CC.now?fC=function(t){CC.now(MC(t))}:AC&&!mC?(dC=(pC=new AC).port2,pC.port1.onmessage=OC,fC=Fg(dC.postMessage,dC)):Bp.addEventListener&&Kp(Bp.postMessage)&&!Bp.importScripts&&hC&&"file:"!==hC.protocol&&!sd(TC)?(fC=TC,Bp.addEventListener("message",OC,!1)):fC="onreadystatechange"in wd("script")?function(t){pm.appendChild(wd("script")).onreadystatechange=function(){pm.removeChild(this),FC(t)}}:function(t){setTimeout(MC(t),0)});var BC,_C,IC,PC,LC,RC,NC,jC,zC={set:bC,clear:xC},UC=/ipad|iphone|ipod/i.test(ed)&&void 0!==Bp.Pebble,VC=/web0s(?!.*chrome)/i.test(ed),HC=cv.f,$C=zC.set,GC=Bp.MutationObserver||Bp.WebKitMutationObserver,WC=Bp.document,qC=Bp.process,XC=Bp.Promise,ZC=HC(Bp,"queueMicrotask"),YC=ZC&&ZC.value;YC||(BC=function(){var t,e;for(yC&&(t=qC.domain)&&t.exit();_C;){e=_C.fn,_C=_C.next;try{e()}catch(t){throw _C?PC():IC=void 0,t}}IC=void 0,t&&t.enter()},mC||yC||VC||!GC||!WC?!UC&&XC&&XC.resolve?((NC=XC.resolve(void 0)).constructor=XC,jC=Fg(NC.then,NC),PC=function(){jC(BC)}):yC?PC=function(){qC.nextTick(BC)}:($C=Fg($C,Bp),PC=function(){$C(BC)}):(LC=!0,RC=WC.createTextNode(""),new GC(BC).observe(RC,{characterData:!0}),PC=function(){RC.data=LC=!LC}));var QC,KC,JC,tS,eS=YC||function(t){var e={fn:t,next:void 0};IC&&(IC.next=e),_C||(_C=e,PC()),IC=e},nS=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=Id(e),this.reject=Id(n)},rS={f:function(t){return new nS(t)}},iS=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},oS="object"==typeof window,aS=zC.set,sS=dd("species"),lS="Promise",uS=ug.getterFor(lS),cS=ug.set,hS=ug.getterFor(lS),fS=gC&&gC.prototype,pS=gC,dS=fS,gS=Bp.TypeError,vS=Bp.document,mS=Bp.process,yS=rS.f,bS=yS,xS=!!(vS&&vS.createEvent&&Bp.dispatchEvent),wS=Kp(Bp.PromiseRejectionEvent),CS=!1,SS=Bv(lS,(function(){var t=Yd(pS),e=t!==String(pS);if(!e&&66===ad)return!0;if(ad>=51&&/native code/.test(t))return!1;var n=new pS((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[sS]=r,!(CS=n.then((function(){}))instanceof r)||!e&&oS&&!wS})),AS=SS||!em((function(t){pS.all(t).catch((function(){}))})),ES=function(t){var e;return!(!yd(t)||!Kp(e=t.then))&&e},kS=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;eS((function(){for(var r=t.value,i=1==t.state,o=0;n.length>o;){var a,s,l,u=n[o++],c=i?u.ok:u.fail,h=u.resolve,f=u.reject,p=u.domain;try{c?(i||(2===t.rejection&&OS(t),t.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),l=!0)),a===u.promise?f(gS("Promise-chain cycle")):(s=ES(a))?Dd(s,a,h,f):h(a)):f(r)}catch(t){p&&!l&&p.exit(),f(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&FS(t)}))}},DS=function(t,e,n){var r,i;xS?((r=vS.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),Bp.dispatchEvent(r)):r={promise:e,reason:n},!wS&&(i=Bp["on"+t])?i(r):"unhandledrejection"===t&&function(t,e){var n=Bp.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},FS=function(t){Dd(aS,Bp,(function(){var e,n=t.facade,r=t.value;if(MS(t)&&(e=iS((function(){yC?mS.emit("unhandledRejection",r,n):DS("unhandledrejection",n,r)})),t.rejection=yC||MS(t)?2:1,e.error))throw e.value}))},MS=function(t){return 1!==t.rejection&&!t.parent},OS=function(t){Dd(aS,Bp,(function(){var e=t.facade;yC?mS.emit("rejectionHandled",e):DS("rejectionhandled",e,t.value)}))},TS=function(t,e,n){return function(r){t(e,r,n)}},BS=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,kS(t,!0))},_S=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw gS("Promise can't be resolved itself");var r=ES(e);r?eS((function(){var n={done:!1};try{Dd(r,e,TS(_S,n,t),TS(BS,n,t))}catch(e){BS(n,e,t)}})):(t.value=e,t.state=1,kS(t,!1))}catch(e){BS({done:!1},e,t)}}};if(SS&&(dS=(pS=function(t){ox(this,dS),Id(t),Dd(QC,this);var e=uS(this);try{t(TS(_S,e),TS(BS,e))}catch(t){BS(e,t)}}).prototype,(QC=function(t){cS(this,{type:lS,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Vb(dS,{then:function(t,e){var n=hS(this),r=n.reactions,i=yS(Kw(this,pS));return i.ok=!Kp(t)||t,i.fail=Kp(e)&&e,i.domain=yC?mS.domain:void 0,n.parent=!0,r[r.length]=i,0!=n.state&&kS(n,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),KC=function(){var t=new QC,e=uS(t);this.promise=t,this.resolve=TS(_S,e),this.reject=TS(BS,e)},rS.f=yS=function(t){return t===pS||t===JC?new KC(t):bS(t)},Kp(gC)&&fS!==Object.prototype)){tS=fS.then,CS||(dg(fS,"then",(function(t,e){var n=this;return new pS((function(t,e){Dd(tS,n,t,e)})).then(t,e)}),{unsafe:!0}),dg(fS,"catch",dS.catch,{unsafe:!0}));try{delete fS.constructor}catch(act){}jm&&jm(fS,dS)}function IS(t){Promise.resolve().then(t)}function PS(t,e){return qe.isElement(t)?cC(t,e):function(t,e){var n=t.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(t));var r=n;r=function(t){return t.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(r);var i=Dw.getParentsNodes(e,t).some((function(t){return"pre"===Dw.getNodeType(t)}));if(i||(r=r.replace(/\r\n|\r|\n/g,"<br>")),i&&(r=r.replace(/ /g," ")),""===r){var o=Dw.getParentNode(null,t);if(!o||0!==o.children.length)return r;r="<br>"}return oC.forEach((function(e){return r=e(t,r)})),r}(t,e)}function LS(t){return"w-e-element-"+t}Iv({global:!0,wrap:!0,forced:SS},{Promise:pS}),Im(pS,lS,!1),_w(lS),JC=td(lS),Iv({target:lS,stat:!0,forced:SS},{reject:function(t){var e=yS(this);return Dd(e.reject,void 0,t),e.promise}}),Iv({target:lS,stat:!0,forced:SS},{resolve:function(t){return function(t,e){if(Ed(t),yd(e)&&e.constructor===t)return e;var n=rS.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),Iv({target:lS,stat:!0,forced:AS},{all:function(t){var e=this,n=yS(e),r=n.resolve,i=n.reject,o=iS((function(){var n=Id(e.resolve),o=[],a=0,s=1;rx(t,(function(t){var l=a++,u=!1;s++,Dd(n,e,t).then((function(t){u||(u=!0,o[l]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=yS(e),r=n.reject,i=iS((function(){var i=Id(e.resolve);rx(t,(function(t){Dd(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var RS=function(t,e){var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},NS=function(t,e,n){var r=Dw.toDOMRange(t,e).getBoundingClientRect(),i=Dw.toDOMRange(t,n).getBoundingClientRect();return RS(r,i)&&RS(i,r)},jS=["span","b","strong","i","em","s","strike","u","font","sub","sup"],zS=[];function US(t){zS.push(t)}var VS=[];function HS(t){VS.push(t)}var $S={};function GS(t){var e=t.selector,n=t.parseElemHtml;$S[e]=n}var WS=Hd.f,qS=wv.f,XS=ug.enforce,ZS=dd("match"),YS=Bp.RegExp,QS=YS.prototype,KS=Bp.SyntaxError,JS=Up(ay),tA=Up(QS.exec),eA=Up("".charAt),nA=Up("".replace),rA=Up("".indexOf),iA=Up("".slice),oA=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,aA=/a/g,sA=/a/g,lA=new YS(aA)!==aA,uA=zy.MISSED_STICKY,cA=zy.UNSUPPORTED_Y,hA=md&&(!lA||uA||Vy||$y||sd((function(){return sA[ZS]=!1,YS(aA)!=aA||YS(sA)==sA||"/a/i"!=YS(aA,"i")})));if(Bv("RegExp",hA)){for(var fA=function(t,e){var n,r,i,o,a,s,l=Fd(QS,this),u=yy(t),c=void 0===e,h=[],f=t;if(!l&&u&&c&&t.constructor===fA)return t;if((u||Fd(QS,t))&&(t=t.source,c&&(e="flags"in f?f.flags:JS(f))),t=void 0===t?"":om(t),e=void 0===e?"":om(e),f=t,Vy&&"dotAll"in aA&&(r=!!e&&rA(e,"s")>-1)&&(e=nA(e,/s/g,"")),n=e,uA&&"sticky"in aA&&(i=!!e&&rA(e,"y")>-1)&&cA&&(e=nA(e,/y/g,"")),$y&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a={},s=!1,l=!1,u=0,c="";r<=n;r++){if("\\"===(e=eA(t,r)))e+=eA(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:tA(oA,iA(t,r+1))&&(r+=2,l=!0),i+=e,u++;continue;case">"===e&&l:if(""===c||qp(a,c))throw new KS("Invalid capture group name");a[c]=!0,o[o.length]=[c,u],l=!1,c="";continue}l?c+=e:i+=e}return[i,o]}(t),t=o[0],h=o[1]),a=ax(YS(t,e),l?this:QS,fA),(r||i||h.length)&&(s=XS(a),r&&(s.dotAll=!0,s.raw=fA(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=eA(t,r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+eA(t,++r);return i}(t),n)),i&&(s.sticky=!0),h.length&&(s.groups=h)),t!==f)try{Gd(a,"source",""===f?"(?:)":f)}catch(t){}return a},pA=function(t){t in fA||WS(fA,t,{configurable:!0,get:function(){return YS[t]},set:function(e){YS[t]=e}})},dA=qS(YS),gA=0;dA.length>gA;)pA(dA[gA++]);QS.constructor=fA,fA.prototype=QS,dg(Bp,"RegExp",fA)}_w("RegExp");var vA=new RegExp(String.fromCharCode(160),"g");function mA(t){return t.replace(vA," ")}function yA(t,e){var n=t.length;if(n){var r=t[n-1];if(En.isText(r)){var i=Object.keys(r);if(1===i.length&&"text"===i[0])return r.text=r.text+e,!0}}return!1}function bA(t,e,n){return{type:"paragraph",children:[{text:eo(t).text().replace(/\s+/gm," ")}]}}function xA(t,e){var n=function(t,e){var n=[];if(null!=t.attr("data-w-e-is-void"))return n;var r=t[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(t){if(t.nodeType!==lw.ELEMENT_NODE)if(t.nodeType!==lw.TEXT_NODE);else{var r=t.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=mA(r),yA(n,r)||n.push({text:r}))}else{if("BR"===t.nodeName)return void(yA(n,"\n")||n.push({text:"\n"}));var i=eo(t);n.push(CA(i,e))}})),n)}(t,e),r=function(t){for(var e in $S)if(t[0].matches(e))return $S[e];return bA}(t),i=r(t[0],n,e);return Je.isVoid(e,i)||(0===n.length&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),VS.forEach((function(n){i=n(t[0],i,e)}))),i}function wA(t,e){0===t.parents("pre").length&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=t[0].textContent||"";n=function(t){return t.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(n);var r={text:n=mA(n)};return VS.forEach((function(n){r=n(t[0],r,e)})),r}function CA(t,e){zS.forEach((function(e){var n=e.selector,r=e.preParseHtml;t[0].matches(n)&&(t=eo(r(t[0])))}));var n=bw(t);return"span"===n?t.attr("data-w-e-type")?xA(t,e):wA(t,e):"code"===n?"pre"===bw(t.parent())?xA(t,e):wA(t,e):jS.includes(n)?wA(t,e):xA(t,e)}var SA=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]),AA=function(t){var e=t,n=e.onChange,r=e.insertText,i=e.apply,o=e.deleteBackward;return e.insertText=function(t){e.getConfig().readOnly||r(t)},e.apply=function(t){var n,r,o,a,s,l,u,c,h=[];switch(t.type){case"insert_text":case"remove_text":case"set_node":try{for(var f=Ib(Je.levels(e,{at:t.path})),p=f.next();!p.done;p=f.next()){var d=Pb(p.value,2),g=d[0],v=d[1],m=Dw.findKey(e,g);h.push([v,m])}}catch(act){n={error:act}}finally{try{p&&!p.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var y=Ib(Je.levels(e,{at:un.parent(t.path)})),b=y.next();!b.done;b=y.next()){var x=Pb(b.value,2);g=x[0],v=x[1],m=Dw.findKey(e,g),h.push([v,m])}}catch(act){o={error:act}}finally{try{b&&!b.done&&(a=y.return)&&a.call(y)}finally{if(o)throw o.error}}break;case"move_node":try{for(var w=Ib(Je.levels(e,{at:un.common(un.parent(t.path),un.parent(t.newPath))})),C=w.next();!C.done;C=w.next()){var S=Pb(C.value,2);g=S[0],v=S[1],m=Dw.findKey(e,g),h.push([v,m])}}catch(act){s={error:act}}finally{try{C&&!C.done&&(l=w.return)&&l.call(w)}finally{if(s)throw s.error}}}i(t);try{for(var A=Ib(h),E=A.next();!E.done;E=A.next()){var k=Pb(E.value,2);v=k[0],m=k[1],g=Pb(Je.node(e,v),1)[0],Jx.set(g,m)}}catch(act){u={error:act}}finally{try{E&&!E.done&&(c=A.return)&&c.call(A)}finally{if(u)throw u.error}}},e.deleteBackward=function(n){if("line"!==n)return o(n);if(t.selection&&yn.isCollapsed(t.selection)){var r=Je.above(t,{match:function(e){return Je.isBlock(t,e)},at:t.selection});if(r){var i=Pb(r,2)[1],a=Je.range(t,i,t.selection.anchor),s=function(t,e){var n=Je.range(t,yn.end(e)),r=Array.from(Je.positions(t,{at:e})),i=0,o=r.length,a=Math.floor(o/2);if(NS(t,Je.range(t,r[i]),n))return Je.range(t,r[i],n);if(r.length<2)return Je.range(t,r[r.length-1],n);for(;a!==r.length&&a!==i;)NS(t,Je.range(t,r[a]),n)?o=a:i=a,a=Math.floor((i+o)/2);return Je.range(t,r[o],n)}(e,a);yn.isCollapsed(s)||$n.delete(t,{at:s})}}},e.onChange=function(){var t=e.selection;null!=t&&nw.set(e,t),e.emit("change"),n()},e.handleTab=function(){e.insertText(" ")},e.getHtml=function(){var t=e.children;return(void 0===t?[]:t).map((function(t){return PS(t,e)})).join("")},e.getText=function(){var t=e.children;return(void 0===t?[]:t).map((function(t){return on.string(t)})).join("\n")},e.getSelectionText=function(){var n=e.selection;return null==n?"":Je.string(t,n)},e.getElemsByType=function(t,n){var r,i;void 0===n&&(n=!1);var o=[],a=Je.nodes(e,{at:[],universal:!0});try{for(var s=Ib(a),l=s.next();!l.done;l=s.next()){var u=Pb(l.value,1)[0];if(qe.isElement(u)&&(n?u.type.indexOf(t)>=0:u.type===t)){var c=LS(Dw.findKey(e,u).id);o.push(_b(_b({},u),{id:c}))}}}catch(act){r={error:act}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o},e.getElemsByTypePrefix=function(t){return e.getElemsByType(t,!0)},e.isEmpty=function(){var t=e.children,n=void 0===t?[]:t;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(qe.isElement(r)&&"paragraph"===r.type){var i=r.children,o=void 0===i?[]:i;if(o.length>1)return!1;var a=o[0];if(null==a)return!0;if(En.isText(a)&&""===a.text)return!0}return!1},e.clear=function(){$n.removeNodes(e,{at:{anchor:Je.start(e,[]),focus:Je.end(e,[])},mode:"highest"}),0===e.children.length&&$n.insertNodes(e,[{type:"paragraph",children:[{text:""}]}])},e.getParentNode=function(t){return Dw.getParentNode(e,t)},e.dangerouslyInsertHtml=function(t){if(void 0===t&&(t=""),t){var n=eo(t);if(0!==(n=n.filter((function(t){if(t.nodeType!==lw.ELEMENT_NODE)return!1;var e=bw(eo(t));return!SA.has(e)}))).length){var r=eo('<div hidden="true"></div>');r.append(n),eo("body").append(r);var i=[];if(n.forEach((function(t){var n=!1;if(jS.includes(t.tagName.toLowerCase()))n=!0;else for(var r in $S)if(t.matches(r)){n=!0;break}if(n){var o=eo(t);i.push(CA(o,e))}else{var a=mw(t).trim();a&&a.split(/\r\n|\r|\n/).forEach((function(t,e){t.trim()&&i.push({type:"paragraph",children:[{text:t}]})}))}})),i.length)try{e.insertFragment(i)}catch(t){e.insertText(mw(r[0]))}r.remove()}}},e.setHtml=function(n){if(void 0===n&&(n=""),n){var r=e.isDisabled(),i=e.isFocused(),o=JSON.stringify(e.selection);if(e.enable(),e.focus(),e.select([]),e.deleteFragment(),$n.setNodes(t,{type:"paragraph"},{mode:"highest"}),e.dangerouslyInsertHtml(n),i||(e.deselect(),e.blur()),r&&(e.deselect(),e.disable()),e.isFocused())try{e.select(JSON.parse(o))}catch(t){e.select(Je.start(e,[]))}}},e},EA=function(t){return null!=t},kA={object:!0,function:!0,undefined:!0},DA=function(t){if(!function(t){return!!EA(t)&&hasOwnProperty.call(kA,typeof t)}(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(t){return!1}},FA=/^\s*class[\s{/}]/,MA=Function.prototype.toString,OA=function(t){return!!function(t){if("function"!=typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length)return!1;if("function"!=typeof t.call)return!1;if("function"!=typeof t.apply)return!1}catch(t){return!1}return!DA(t)}(t)&&!FA.test(MA.call(t))},TA=function(t){return null!=t},BA=Object.keys,_A=function(){try{return Object.keys("primitive"),!0}catch(act){return!1}}()?Object.keys:function(t){return BA(TA(t)?Object(t):t)},IA=function(t){if(!TA(t))throw new TypeError("Cannot use null or undefined");return t},PA=Math.max,LA=function(){var t,e=Object.assign;return"function"==typeof e&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var n,r,i,o=PA(arguments.length,2);for(t=Object(IA(t)),i=function(r){try{t[r]=e[r]}catch(t){n||(n=t)}},r=1;r<o;++r)_A(e=arguments[r]).forEach(i);if(void 0!==n)throw n;return t},RA=Array.prototype.forEach,NA=Object.create,jA=function(t,e){var n;for(n in t)e[n]=t[n]},zA=function(t){var e=NA(null);return RA.call(arguments,(function(t){TA(t)&&jA(Object(t),e)})),e},UA="razdwatrzy",VA=String.prototype.indexOf,HA="function"==typeof UA.contains&&!0===UA.contains("dwa")&&!1===UA.contains("foo")?String.prototype.contains:function(t){return VA.call(this,t,arguments[1])>-1},$A=Fp((function(t){var e=t.exports=function(t,e){var n,r,i,o,a;return arguments.length<2||"string"!=typeof t?(o=e,e=t,t=null):o=arguments[2],EA(t)?(n=HA.call(t,"c"),r=HA.call(t,"e"),i=HA.call(t,"w")):(n=i=!0,r=!1),a={value:e,configurable:n,enumerable:r,writable:i},o?LA(zA(o),a):a};e.gs=function(t,e,n){var r,i,o,a;return"string"!=typeof t?(o=n,n=e,e=t,t=null):o=arguments[3],EA(e)?OA(e)?EA(n)?OA(n)||(o=n,n=void 0):n=void 0:(o=e,e=n=void 0):e=void 0,EA(t)?(r=HA.call(t,"c"),i=HA.call(t,"e")):(r=!0,i=!1),a={get:e,set:n,configurable:r,enumerable:i},o?LA(zA(o),a):a}})),GA=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t},WA=Fp((function(t,e){var n,r,i,o,a,s,l,u=Function.prototype.apply,c=Function.prototype.call,h=Object.create,f=Object.defineProperty,p=Object.defineProperties,d=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(t,e){var n;return GA(e),d.call(this,"__ee__")?n=this.__ee__:(n=g.value=h(null),f(this,"__ee__",g),g.value=null),n[t]?"object"==typeof n[t]?n[t].push(e):n[t]=[n[t],e]:n[t]=e,this},r=function(t,e){var r,o;return GA(e),o=this,n.call(this,t,r=function(){i.call(o,t,r),u.call(e,this,arguments)}),r.__eeOnceListener__=e,this},i=function(t,e){var n,r,i,o;if(GA(e),!d.call(this,"__ee__"))return this;if(!(n=this.__ee__)[t])return this;if("object"==typeof(r=n[t]))for(o=0;i=r[o];++o)i!==e&&i.__eeOnceListener__!==e||(2===r.length?n[t]=r[o?0:1]:r.splice(o,1));else r!==e&&r.__eeOnceListener__!==e||delete n[t];return this},o=function(t){var e,n,r,i,o;if(d.call(this,"__ee__")&&(i=this.__ee__[t]))if("object"==typeof i){for(n=arguments.length,o=new Array(n-1),e=1;e<n;++e)o[e-1]=arguments[e];for(i=i.slice(),e=0;r=i[e];++e)u.call(r,this,o)}else switch(arguments.length){case 1:c.call(i,this);break;case 2:c.call(i,this,arguments[1]);break;case 3:c.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),e=1;e<n;++e)o[e-1]=arguments[e];u.call(i,this,o)}},a={on:n,once:r,off:i,emit:o},s={on:$A(n),once:$A(r),off:$A(i),emit:$A(o)},l=p({},s),t.exports=e=function(t){return null==t?h(l):p(Object(t),s)},e.methods=a}));function qA(t){var e=rw.get(t);return null==e&&(e=WA(),rw.set(t,e)),e}var XA=new WeakMap;function ZA(t,e){var n=XA.get(t);null==n&&(n=new Set,XA.set(t,n)),n.add(e)}function YA(t){return XA.get(t)||new Set}function QA(t){XA.set(t,new Set)}function KA(t){var e=Dw.getTextarea(t).$textAreaContainer,n=e.width(),r=e.height(),i=e.offset();return{top:i.top,left:i.left,width:n,height:r}}function JA(t){var e={top:"0",left:"0"},n=t.selection;if(null==n)return e;var r=KA(t);if(null==r)return e;var i=r.top,o=r.left,a=r.width,s=r.height,l=Dw.toDOMRange(t,n).getClientRects()[0];if(null==l)return e;l.width;var u=l.height,c={},h=l.top-i,f=l.left-o;if(f>a/2){var p=a-f;c.right=p+5+"px"}else c.left=f+5+"px";if(h>s/2){var d=s-h;c.bottom=d+5+"px"}else{var g=h+u;g<0&&(g=0),c.top=g+5+"px"}return c}function tE(t,e,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==t.selection)return r;var i=qe.isElement(e)&&t.isVoid(e),o=qe.isElement(e)&&t.isInline(e),a=Kx.get(e);if(null==a)return r;var s=a.getBoundingClientRect(),l=s.top,u=s.left,c=s.height,h=s.width;if(i){var f=function(t){var e=[];e.push(t);for(var n=0;e.length>0;){var r=e.pop();if(null==r)break;if(++n>1e4)break;var i=r.nodeName;if(1===r.nodeType){var o=i.toLowerCase();if(sw.includes(o)||"iframe"===o||"video"===o)return r;var a=r.children||[],s=a.length;if(s)for(var l=s-1;l>=0;l--)e.push(a[l])}}return null}(a);if(null!=f){var p=f.getBoundingClientRect();l=p.top,c=p.height}}var d=KA(t);if(null==d)return r;var g,v=d.top,m=d.left,y=d.width,b=d.height,x={},w=l-v,C=u-m;if("bar"===n)return x.left=C+"px",w>40?x.bottom=b-w+5+"px":x.top=w+c+5+"px",x;if("modal"===n)return i?o?C>(y-h)/2?x.right=y-C+5+"px":x.left=C+h+5+"px":x.left="20px":x.left=C+"px",i?((g=w)<0&&(g=0),x.top=g+"px"):w>(b-c)/2?x.bottom=b-w+5+"px":((g=w+c)<0&&(g=0),x.top=g+5+"px"),x;throw new Error("type '"+n+"' is invalid")}function eE(t,e){IS((function(){var n=KA(t);if(null!=n){var r,i=n.top,o=n.left,a=n.width,s=n.height,l=e.offset(),u=l.top,c=l.left,h=e.width(),f=e.height(),p=u-i,d=c-o,g=e.attr("style");if(g.indexOf("top")>=0&&(r=p+f-s)>0){var v=e.css("top"),m=parseInt(v.toString())-r;m<0&&(m=0),e.css("top",m+"px")}if(g.indexOf("bottom")>=0&&u<0){var y=e.css("bottom"),b=parseInt(y.toString())-Math.abs(u);e.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=d+h-a)>0){var x=e.css("left"),w=parseInt(x.toString())-r;w<0&&(w=0),e.css("left",w+"px")}if(g.indexOf("right")>=0&&c<0){var C=e.css("right"),S=parseInt(C.toString())-Math.abs(c);e.css("right",S+"px")}}}))}var nE=Lv("slice"),rE=dd("species"),iE=Bp.Array,oE=Math.max;Iv({target:"Array",proto:!0,forced:!nE},{slice:function(t,e){var n,r,i,o=lv(this),a=Rg(o),s=pv(t,a),l=pv(void 0===e?a:e,a);if(Ng(o)&&(n=o.constructor,(Wg(n)&&(n===iE||Ng(n.prototype))||yd(n)&&null===(n=n[rE]))&&(n=void 0),n===iE||void 0===n))return vC(o,s,l);for(r=new(void 0===n?iE:n)(oE(l-s,0)),i=0;s<l;s++,i++)s in o&&Gv(r,i,o[s]);return r.length=i,r}});var aE=cv.f,sE=Up("".startsWith),lE=Up("".slice),uE=Math.min,cE=Cy("startsWith"),hE=!cE&&!!function(){var t=aE(String.prototype,"startsWith");return t&&!t.writable}();Iv({target:"String",proto:!0,forced:!hE&&!cE},{startsWith:function(t){var e=om(Hp(this));xy(t);var n=Lg(uE(arguments.length>1?arguments[1]:void 0,e.length)),r=om(t);return sE?sE(e,r,n):lE(e,n,n+r.length)===r}});var fE=Object.assign,pE=Object.defineProperty,dE=Up([].concat),gE=!fE||sd((function(){if(md&&1!==fE({b:1},fE(pE({},"a",{enumerable:!0,get:function(){pE(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=fE({},t)[n]||hm(fE({},e)).join("")!=r}))?function(t,e){for(var n=Gp(t),r=arguments.length,i=1,o=Cv.f,a=sv.f;r>i;)for(var s,l=Tg(arguments[i++]),u=o?dE(hm(l),o(l)):hm(l),c=u.length,h=0;c>h;)s=u[h++],md&&!Dd(a,l,s)||(n[s]=l[s]);return n}:fE;Iv({target:"Object",stat:!0,forced:Object.assign!==gE},{assign:gE});var vE=["props","attrs","style","dataset","on","hook"];function mE(t){var e=t.data,n=void 0===e?{}:e,r=t.children,i=void 0===r?[]:r;Object.keys(n).forEach((function(e){var r,i,o=n[e];if("key"!==e){if(!vE.includes(e)){if(e.startsWith("data-")){var a=e.slice(5);return a=lu(a),function(t,e){null==t.data&&(t.data={});var n=t.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,e)}(t,((r={})[a]=o,r)),void delete n[e]}!function(t,e){null==t.data&&(t.data={});var n=t.data;null==n.props&&(n.props={}),Object.assign(n.props,e)}(t,(i={},i[e]=o,i)),delete n[e]}}else t.key=o})),i.length>0&&i.forEach((function(t){"string"!=typeof t&&mE(t)}))}var yE=[];function bE(t){yE.push(t)}var xE={};function wE(t){var e=t.type,n=t.renderElem;xE[e||""]=n}function CE(t,e,n){var r=n.isInline(t)?"span":"div";return Ls(r,null,e)}function SE(t,e){var n,r=Dw.findKey(e,t),i=e.isInline(t),o=Je.isVoid(e,t),a=LS(r.id),s={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":i},l=t.type,u=t.children,c=void 0===u?[]:u,h=function(t){return xE[t]||CE}(l);n=o?null:c.map((function(n,r){return DE(n,r,t,e)}));var f=h(t,n,e);if(o){s["data-slate-void"]=!0;var p=i?"span":"div",d=Pb(on.texts(t),1),g=Pb(d[0],1)[0],v=DE(g,0,t,e),m=Ls(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},v);f=Ls(p,{style:{position:"relative"}},f,m),qx.set(g,0),Xx.set(g,t)}return null==f.data&&(f.data={}),Object.assign(f.data,s),o||i||(f=function(t,e){var n=e;return yE.forEach((function(r){n=r(t,e)})),n}(t,f)),IS((function(){var e=dw(a);null!=e&&(Qx.set(r,e),Kx.set(t,e),Yx.set(e,t))})),f}function AE(t,e){return void 0===e&&(e=!1),Ls("span",{"data-slate-string":!0},e?t+"\n":t)}function EE(t,e){return void 0===t&&(t=0),void 0===e&&(e=!1),Ls("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\ufeff",e?Ls("br",null):null)}function kE(t,e,n){if(null==t.text)throw new Error("Current node is not slate Text "+JSON.stringify(t));var r=Dw.findKey(n,t),i=n.getConfig().decorate;if(null==i)throw new Error("Can not get config.decorate");var o=Dw.findPath(n,t),a=i([t,o]),s=En.decorations(t,a),l=s.map((function(r,i){var o=function(t,e,n,r,i){void 0===e&&(e=!1);var o=t.text,a=Dw.findPath(i,n),s=un.parent(a);if(Je.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return i.isVoid(r)?EE(on.string(r).length):""!==o||r.children[r.children.length-1]!==n||i.isInline(r)||""!==Je.string(i,s)?""===o?EE():e&&"\n"===o.slice(-1)?AE(o,!0):AE(o):EE(0,!0)}(r,i===s.length-1,t,e,n);return o=function(t,e){var n=e;return yE.forEach((function(e){n=e(t,n)})),n}(r,o),Ls("span",{"data-slate-leaf":!0},o)})),u=function(t){return"w-e-text-"+t}(r.id),c=Ls("span",{"data-slate-node":"text",id:u,key:r.id},l);return IS((function(){var e=dw(u);null!=e&&(Qx.set(r,e),Kx.set(t,e),Yx.set(e,t))})),c}function DE(t,e,n,r){return qx.set(t,e),Xx.set(t,n),qe.isElement(t)?SE(t,r):kE(t,n,r)}function FE(t,e){var n,r=t.$scroll,i=function(t){return"w-e-textarea-"+t}(t.id),o=e.getConfig(),a=o.readOnly,s=o.autoFocus,l=function(t,e){return void 0===e&&(e=!1),ps("div#"+t,{props:{contentEditable:!e}})}(i,a),u=e.children||[];l.children=u.map((function(t,n){var r=DE(t,n,e,e);return mE(r),r}));var c=$x.get(t);if(null==c&&(c=!0),c){var h=function(t,e){return eo('<div\n id="'+t+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(i);r.append(h),t.$textArea=h,n=h[0],(p=hs([gs,Es,Is,ys,Ss]))(n,l),$x.set(t,!1),Gx.set(t,p)}else{var f=Wx.get(t),p=Gx.get(t);if(null==f||null==p)return;n=f.elm,p(f,l)}if(null!=n||null!=(n=dw(i))){if((c?s:e.isFocused())&&n.focus({preventScroll:!0}),c){var d=uw(n);d&&tw.set(e,d)}Zx.set(e,n),Kx.set(e,n),Yx.set(n,e),Wx.set(t,l)}}function ME(t){return"object"==typeof t&&null!=t&&1===t.nodeType}function OE(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function TE(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return OE(n.overflowY,e)||OE(n.overflowX,e)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return!1}function BE(t,e,n,r,i,o,a,s){return o<t&&a>e||o>t&&a<e?0:o<=t&&s<=n||a>=e&&s>=n?o-t-r:a>e&&s<n||o<t&&s>n?a-e+i:0}function _E(t,e){var n=window,r=e.scrollMode,i=e.block,o=e.inline,a=e.boundary,s=e.skipOverflowHiddenElements,l="function"==typeof a?a:function(t){return t!==a};if(!ME(t))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,c=[],h=t;ME(h)&&l(h);){if((h=h.parentElement)===u){c.push(h);break}null!=h&&h===document.body&&TE(h)&&!TE(document.documentElement)||null!=h&&TE(h,s)&&c.push(h)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,d=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=t.getBoundingClientRect(),m=v.height,y=v.width,b=v.top,x=v.right,w=v.bottom,C=v.left,S="start"===i||"nearest"===i?b:"end"===i?w:b+m/2,A="center"===o?C+y/2:"end"===o?x:C,E=[],k=0;k<c.length;k++){var D=c[k],F=D.getBoundingClientRect(),M=F.height,O=F.width,T=F.top,B=F.right,_=F.bottom,I=F.left;if("if-needed"===r&&b>=0&&C>=0&&w<=p&&x<=f&&b>=T&&w<=_&&C>=I&&x<=B)return E;var P=getComputedStyle(D),L=parseInt(P.borderLeftWidth,10),R=parseInt(P.borderTopWidth,10),N=parseInt(P.borderRightWidth,10),j=parseInt(P.borderBottomWidth,10),z=0,U=0,V="offsetWidth"in D?D.offsetWidth-D.clientWidth-L-N:0,H="offsetHeight"in D?D.offsetHeight-D.clientHeight-R-j:0;if(u===D)z="start"===i?S:"end"===i?S-p:"nearest"===i?BE(g,g+p,p,R,j,g+S,g+S+m,m):S-p/2,U="start"===o?A:"center"===o?A-f/2:"end"===o?A-f:BE(d,d+f,f,L,N,d+A,d+A+y,y),z=Math.max(0,z+g),U=Math.max(0,U+d);else{z="start"===i?S-T-R:"end"===i?S-_+j+H:"nearest"===i?BE(T,_,M,R,j+H,S,S+m,m):S-(T+M/2)+H/2,U="start"===o?A-I-L:"center"===o?A-(I+O/2)+V/2:"end"===o?A-B+N+V:BE(I,B,O,L,N+V,A,A+y,y);var $=D.scrollLeft,G=D.scrollTop;S+=G-(z=Math.max(0,Math.min(G+z,D.scrollHeight-M+H))),A+=$-(U=Math.max(0,Math.min($+U,D.scrollWidth-O+V)))}E.push({el:D,top:z,left:U})}return E}function IE(t){return t===Object(t)&&0!==Object.keys(t).length}function PE(t,e){var n=!t.ownerDocument.documentElement.contains(t);if(IE(e)&&"function"==typeof e.behavior)return e.behavior(n?[]:_E(t,e));if(!n){var r=function(t){return!1===t?{block:"end",inline:"nearest"}:IE(t)?t:{block:"start",inline:"nearest"}}(e);return function(t,e){void 0===e&&(e="auto");var n="scrollBehavior"in document.body.style;t.forEach((function(t){var r=t.el,i=t.top,o=t.left;r.scroll&&n?r.scroll({top:i,left:o,behavior:e}):(r.scrollTop=i,r.scrollLeft=o)}))}(_E(t,r),r.behavior)}}function LE(t,e){return hw(e)&&Dw.hasDOMNode(t,e,{editable:!0})}function RE(t,e){if(t.getConfig().readOnly)return!1;var n=NE(t,e)&&Dw.toSlateNode(t,e);return Je.isVoid(t,n)}function NE(t,e){return hw(e)&&Dw.hasDOMNode(t,e)}var jE=new WeakMap,zE=new WeakMap,UE={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},VE={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},HE={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},$E=function(t){var e=UE[t],n=VE[t],r=HE[t],i=e&&wu(e),o=n&&wu(n),a=r&&wu(r);return function(t){return!(!i||!i(t))||!!(xw&&o&&o(t))||!(xw||!a||!a(t))}},GE={isBold:$E("bold"),isCompose:$E("compose"),isMoveBackward:$E("moveBackward"),isMoveForward:$E("moveForward"),isDeleteBackward:$E("deleteBackward"),isDeleteForward:$E("deleteForward"),isDeleteLineBackward:$E("deleteLineBackward"),isDeleteLineForward:$E("deleteLineForward"),isDeleteWordBackward:$E("deleteWordBackward"),isDeleteWordForward:$E("deleteWordForward"),isExtendBackward:$E("extendBackward"),isExtendForward:$E("extendForward"),isExtendLineBackward:$E("extendLineBackward"),isExtendLineForward:$E("extendLineForward"),isItalic:$E("italic"),isMoveLineBackward:$E("moveLineBackward"),isMoveLineForward:$E("moveLineForward"),isMoveWordBackward:$E("moveWordBackward"),isMoveWordForward:$E("moveWordForward"),isRedo:$E("redo"),isSplitBlock:$E("splitBlock"),isTransposeCharacter:$E("transposeCharacter"),isUndo:$E("undo"),isTab:$E("tab"),isSelectAll:$E("selectAll")};function WE(t){t.preventDefault()}var qE={beforeinput:function(t,e,n){var r=t,i=n.getConfig().readOnly;if(kw&&!i&&LE(n,r.target)){var o=n.selection,a=r.inputType,s=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var l=Pb(r.getTargetRanges(),1)[0];if(l){var u=Dw.toSlateRange(n,l,{exactMatch:!1,suppressThrow:!1});o&&yn.equals(o,u)||$n.select(n,u)}}if(o&&yn.isExpanded(o)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";Je.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Je.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Je.deleteForward(n);break;case"deleteContentBackward":Je.deleteBackward(n);break;case"deleteEntireSoftLine":Je.deleteBackward(n,{unit:"line"}),Je.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Je.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Je.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Je.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Je.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Je.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Je.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Je.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!iw.get(n))break;s instanceof DataTransfer?n.insertData(s):"string"==typeof s&&Je.insertText(n,s)}}}},blur:function(t,e,n){var r=t,i=e.isUpdatingSelection,o=e.latestElement;if(!n.getConfig().readOnly&&!i&&LE(n,r.target)){var a=Dw.findDocumentOrShadowRoot(n);if(o!==a.activeElement){var s=r.relatedTarget;if(!(s===Dw.toDOMNode(n,n)||cw(s)&&s.hasAttribute("data-slate-spacer"))){if(null!=s&&hw(s)&&Dw.hasDOMNode(n,s)){var l=Dw.toSlateNode(n,s);if(qe.isElement(l)&&!n.isVoid(l))return}if(Cw){var u=a.getSelection();null==u||u.removeAllRanges()}ew.delete(n)}}}},focus:function(t,e,n){var r=Dw.toDOMNode(n,n),i=Dw.findDocumentOrShadowRoot(n);e.latestElement=i.activeElement,ww&&t.target!==r?r.focus():ew.set(n,!0)},click:function(t,e,n){if(!n.getConfig().readOnly&&NE(n,t.target)&&hw(t.target)){var r=Dw.toSlateNode(n,t.target),i=Dw.findPath(n,r);if(Je.hasPath(n,i)&&on.get(n,i)===r){var o=Je.start(n,i),a=Je.end(n,i),s=Je.void(n,{at:o}),l=Je.void(n,{at:a});if(s&&l&&un.equals(s[1],l[1])){var u=Je.range(n,o);$n.select(n,u)}}}},compositionstart:function(t,e,n){if(LE(n,t.target)){var r=n.selection;if(r&&yn.isExpanded(r)&&Je.deleteFragment(n),r&&yn.isCollapsed(r)){var i=Dw.toDOMRange(n,r).startContainer,o=i.textContent||"";jE.set(n,o),zE.set(n,i)}e.isComposing=!0,function(t,e){var n;e.getConfig().placeholder&&e.isEmpty()&&t.showPlaceholder&&(null===(n=t.$placeholder)||void 0===n||n.hide(),t.showPlaceholder=!1)}(e,n)}},compositionend:function(t,e,n){var r=t;if(LE(n,r.target)){e.isComposing=!1;var i=n.selection;if(null!=i){(Ew||ww)&&Dw.cleanExposedTexNodeInSelectionBlock(n);for(var o=yn.isBackward(i)?i.focus:i.anchor,a=Pb(Je.node(n,[o.path[0]]),1)[0],s=0;s<o.path.length;s++){var l=Pb(Je.node(n,o.path.slice(0,s+1)),1)[0];if(qe.isElement(l)&&((Cw||ww)&&"link"===l.type||"code"===l.type)){Dw.setNewKey(a);break}}var u=r.data;if(u){if(n.getConfig().maxLength){var c=Dw.getLeftLengthOfMaxLength(n);c<u.length?(Dw.toDOMRange(n,i).startContainer.textContent=jE.get(n)||"",c>0&&Je.insertText(n,u.slice(0,c)),e.changeViewState()):Je.insertText(n,u)}else Je.insertText(n,u);Cw||setTimeout((function(){var t=n.selection;if(null!=t){var e=zE.get(n);null!=e&&Dw.toDOMRange(n,t).startContainer!==e&&(e.textContent=jE.get(n)||"")}}))}}}},compositionupdate:function(t,e,n){LE(n,t.target)&&(e.isComposing=!0)},keydown:function(t,e,n){var r=t,i=n.selection;if(!n.getConfig().readOnly&&!e.isComposing&&LE(n,r.target)){if(function(t,e){var n=Rx.get(t),r=n&&n.getMenus(),i=jx.get(t),o=i&&i.getMenus(),a=_b(_b({},r),o);for(var s in a){var l=a[s],u=l.hotkey;if(u&&xu(u,e)&&!l.isDisabled(t)){var c=l.getValue(t);l.exec(t,c)}}}(n,r),GE.isTab(r))return WE(r),void n.handleTab();if(GE.isRedo(r))return WE(r),void("function"==typeof n.redo&&n.redo());if(GE.isUndo(r))return WE(r),void("function"==typeof n.undo&&n.undo());if(GE.isMoveLineBackward(r))return WE(r),void $n.move(n,{unit:"line",reverse:!0});if(GE.isMoveLineForward(r))return WE(r),void $n.move(n,{unit:"line"});if(GE.isExtendLineBackward(r))return WE(r),void $n.move(n,{unit:"line",edge:"focus",reverse:!0});if(GE.isExtendLineForward(r))return WE(r),void $n.move(n,{unit:"line",edge:"focus"});if(GE.isMoveBackward(r))return WE(r),void(i&&yn.isCollapsed(i)?$n.move(n,{reverse:!0}):$n.collapse(n,{edge:"start"}));if(GE.isMoveForward(r))return WE(r),void(i&&yn.isCollapsed(i)?$n.move(n):$n.collapse(n,{edge:"end"}));if(GE.isMoveWordBackward(r))return WE(r),i&&yn.isExpanded(i)&&$n.collapse(n,{edge:"focus"}),void $n.move(n,{unit:"word",reverse:!0});if(GE.isMoveWordForward(r))return WE(r),i&&yn.isExpanded(i)&&$n.collapse(n,{edge:"focus"}),void $n.move(n,{unit:"word"});if(GE.isSelectAll(r))return WE(r),void n.selectAll();if(kw){if((Ew||Cw)&&i&&(GE.isDeleteBackward(r)||GE.isDeleteForward(r))&&yn.isCollapsed(i)){var o=on.parent(n,i.anchor.path);if(qe.isElement(o)&&Je.isVoid(n,o)&&Je.isInline(n,o))return r.preventDefault(),void $n.delete(n,{unit:"block"})}}else{if(GE.isBold(r)||GE.isItalic(r)||GE.isTransposeCharacter(r))return void WE(r);if(GE.isSplitBlock(r))return WE(r),void Je.insertBreak(n);if(GE.isDeleteBackward(r))return WE(r),void(i&&yn.isExpanded(i)?Je.deleteFragment(n,{direction:"backward"}):Je.deleteBackward(n));if(GE.isDeleteForward(r))return WE(r),void(i&&yn.isExpanded(i)?Je.deleteFragment(n,{direction:"forward"}):Je.deleteForward(n));if(GE.isDeleteLineBackward(r))return WE(r),void(i&&yn.isExpanded(i)?Je.deleteFragment(n,{direction:"backward"}):Je.deleteBackward(n,{unit:"line"}));if(GE.isDeleteLineForward(r))return WE(r),void(i&&yn.isExpanded(i)?Je.deleteFragment(n,{direction:"forward"}):Je.deleteForward(n,{unit:"line"}));if(GE.isDeleteWordBackward(r))return WE(r),void(i&&yn.isExpanded(i)?Je.deleteFragment(n,{direction:"backward"}):Je.deleteBackward(n,{unit:"word"}));if(GE.isDeleteWordForward(r))return WE(r),void(i&&yn.isExpanded(i)?Je.deleteFragment(n,{direction:"forward"}):Je.deleteForward(n,{unit:"word"}))}}},keypress:function(t,e,n){if(!kw&&!n.getConfig().readOnly&&LE(n,t.target)){t.preventDefault();var r=t.key;Je.insertText(n,r)}},copy:function(t,e,n){var r=t;if(LE(n,r.target)){r.preventDefault();var i=r.clipboardData;null!=i&&n.setFragmentData(i)}},cut:function(t,e,n){var r=t,i=n.selection;if(!n.getConfig().readOnly&&LE(n,r.target)){r.preventDefault();var o=r.clipboardData;if(null!=o&&(n.setFragmentData(o),i))if(yn.isExpanded(i))Je.deleteFragment(n);else{var a=on.parent(n,i.anchor.path);Je.isVoid(n,a)&&$n.delete(n)}}},paste:function(t,e,n){iw.set(n,!0);var r=t;if(!n.getConfig().readOnly&&LE(n,r.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,r))return void iw.set(n,!1);if(!kw||function(t){return t.clipboardData&&""!==t.clipboardData.getData("text/plain")&&1===t.clipboardData.types.length}(r)){r.preventDefault();var o=r.clipboardData;null!=o&&n.insertData(o)}}},dragover:function(t,e,n){if(NE(n,t.target)){var r=Dw.toSlateNode(n,t.target);Je.isVoid(n,r)&&t.preventDefault()}},dragstart:function(t,e,n){var r=t;if(NE(n,r.target)&&!n.getConfig().readOnly){var i=Dw.toSlateNode(n,r.target),o=Dw.findPath(n,i);if(Je.isVoid(n,i)||Je.void(n,{at:o,voids:!0})){var a=Je.range(n,o);$n.select(n,a)}var s=r.dataTransfer;null!=s&&(e.isDraggingInternally=!0,n.setFragmentData(s))}},dragend:function(t,e,n){var r=t;n.getConfig().readOnly||e.isDraggingInternally&&NE(n,r.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,n){var r=t,i=r.dataTransfer;if(!n.getConfig().readOnly&&NE(n,r.target)&&null!=i&&!(kw&&Cw&&i.files.length>0)){r.preventDefault();var o=n.selection,a=Dw.findEventRange(n,r);$n.select(n,a),e.isDraggingInternally&&(o&&$n.delete(n,{at:o}),e.isDraggingInternally=!1),n.insertData(i),n.isFocused()||n.focus()}}},XE=1,ZE=function(){function t(t){var e=this;this.id=XE++,this.$textArea=null,this.$progressBar=eo('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=eo('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Na((function(){var t=e.editorInstance;!function(t,e){var n=t.isComposing,r=t.isUpdatingSelection,i=t.isDraggingInternally;if(!(e.getConfig().readOnly||n||r||i)){var o=Dw.findDocumentOrShadowRoot(e),a=o.activeElement,s=Dw.toDOMNode(e,e),l=o.getSelection();if(a===s?(t.latestElement=a,ew.set(e,!0)):ew.delete(e),!l)return $n.deselect(e);var u=l.anchorNode,c=l.focusNode,h=LE(e,u)||RE(e,u),f=LE(e,c)||RE(e,c);if(h&&f){var p=Dw.toSlateRange(e,l,{exactMatch:!1,suppressThrow:!1});$n.select(e,p)}else $n.deselect(e)}}(e,t)}),100);var n=eo(t);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=n;var r=eo('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var i=eo('<div class="w-e-scroll"></div>');r.append(i),this.$scroll=i,this.$textAreaContainer=r,IS((function(){var t=e.editorInstance,n=Dw.getWindow(t);n.document.addEventListener("selectionchange",e.onDOMSelectionChange),t.on("destroyed",(function(){n.document.removeEventListener("selectionchange",e.onDOMSelectionChange)})),r.on("click",(function(){return t.hidePanelOrModal()})),t.on("change",e.changeViewState.bind(e));var i=t.getConfig().onChange;i&&t.on("change",(function(){return i(t)})),e.onFocusAndOnBlur(),t.on("change",e.changeMaxLengthInfo.bind(e)),e.bindEvent()}))}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var t=Px.get(this);if(null==t)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var t=this,e=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=e&&(da(qE,(function(n,i){e.on(i,(function(e){n(e,t,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Na((function(){r.emit("scroll")}),100))))},t.prototype.onFocusAndOnBlur=function(){var t=this,e=this.editorInstance,n=e.getConfig(),r=n.onBlur,i=n.onFocus;this.latestEditorSelection=e.selection,e.on("change",(function(){null==t.latestEditorSelection&&null!=e.selection?i&&i(e):null!=t.latestEditorSelection&&null==e.selection&&r&&r(e),t.latestEditorSelection=e.selection}))},t.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,e=t.getConfig().maxLength;if(e){var n=e-Dw.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=n+"/"+e}},t.prototype.changeProgress=function(t){var e=this.$progressBar;e.css("width",t+"%"),t>=100&&setTimeout((function(){e.hide(),e.css("width","0"),e.show()}),1e3)},t.prototype.changeViewState=function(){var t=this,e=this.editorInstance;FE(this,e),function(t,e){var n,r=e.getConfig().placeholder;if(r){var i=e.isEmpty();if(i&&!t.showPlaceholder&&!t.isComposing){if(null==t.$placeholder){var o=eo('<div class="w-e-text-placeholder">'+r+"</div>");t.$textAreaContainer.append(o),t.$placeholder=o}return t.$placeholder.show(),void(t.showPlaceholder=!0)}!i&&t.showPlaceholder&&(null===(n=t.$placeholder)||void 0===n||n.hide(),t.showPlaceholder=!1)}}(this,e),IS((function(){!function(t,e){var n=e.selection,r=Dw.findDocumentOrShadowRoot(e).getSelection();if(r&&!t.isComposing&&e.isFocused()){var i="None"!==r.type;if(n||i){var o=Zx.get(e),a=!1;if(o.contains(r.anchorNode)&&o.contains(r.focusNode)&&(a=!0),i&&a&&n){var s=Dw.toSlateRange(e,r,{exactMatch:!0,suppressThrow:!0});if(s&&yn.equals(s,n)){var l=!0;if(yn.isCollapsed(n)){var u=r.anchorNode,c=r.anchorOffset;if(u===o){var h=o.childNodes,f=void 0;(f=h[c])&&f.matches("table")&&(l=!1),(f=h[c-1])&&f.matches("table")&&(l=!1)}}if(l)return}}if(!n||Dw.hasRange(e,n)){t.isUpdatingSelection=!0;var p=n&&Dw.toDOMRange(e,n);if(p){yn.isBackward(n)?r.setBaseAndExtent(p.endContainer,p.endOffset,p.startContainer,p.startOffset):r.setBaseAndExtent(p.startContainer,p.startOffset,p.endContainer,p.endOffset);var d=p.startContainer.parentElement;d.closest("[data-slate-spacer]")||(d.getBoundingClientRect=p.getBoundingClientRect.bind(p),PE(d,{scrollMode:"if-needed",boundary:o.parentElement,block:"end",behavior:"smooth"}),delete d.getBoundingClientRect)}else r.removeAllRanges();setTimeout((function(){p&&ww&&o.focus(),t.isUpdatingSelection=!1}))}else e.selection=Dw.toSlateRange(e,r,{exactMatch:!1,suppressThrow:!1})}}}(t,e)}))},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function YE(t){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&YE(e)}function QE(){return eo('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function KE(){return eo('<div class="w-e-bar-divider"></div>')}function JE(t,e,n,r,i){if(void 0===i&&(i=!1),e){if(r){var o=xw?"cmd":"ctrl";r=r.replace("mod",o)}if(i)r&&(t.attr("data-tooltip",r),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}cb("match",(function(t,e,n){return[function(e){var n=Hp(this),r=null==e?void 0:Pd(e,t);return r?Dd(r,e,n):new RegExp(e)[t](om(n))},function(t){var r=Ed(this),i=om(t),o=n(e,r,i);if(o.done)return o.value;if(!r.global)return wb(r,i);var a=r.unicode;r.lastIndex=0;for(var s,l=[],u=0;null!==(s=wb(r,i));){var c=om(s[0]);l[u]=c,""===c&&(r.lastIndex=fb(i,Lg(r.lastIndex),a)),u++}return 0===u?null:l}]}));var tk=function(){function t(t,e){var n=this;void 0===e&&(e=!1),this.$elem=eo('<div class="w-e-bar-item"></div>'),this.$button=eo('<button type="button"></button>'),this.disabled=!1,this.menu=t;var r=t.tag,i=t.width;if("button"!==r)throw new Error("Invalid tag '"+r+"', expected 'button'");var o=t.title,a=t.hotkey,s=void 0===a?"":a,l=t.iconSvg,u=void 0===l?"":l,c=this.$button;if(u){var h=eo(u);YE(h),c.append(h)}else c.text(o);JE(c,u,o,s,e),e&&u&&c.append(eo('<span class="title">'+o+"</span>")),i&&c.css("width",i+"px"),this.$elem.append(c),IS((function(){return n.init()}))}return t.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(e){e.preventDefault(),pk(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())}))},t.prototype.exec=function(){var t=pk(this),e=this.menu,n=e.getValue(t);e.exec(t,n)},t.prototype.setActive=function(){var t=pk(this),e=this.$button,n="active";this.menu.isActive(t)?e.addClass(n):e.removeClass(n)},t.prototype.setDisabled=function(){var t=pk(this),e=this.$button,n=this.menu.isDisabled(t);(null==t.selection||t.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?e.addClass(r):e.removeClass(r),this.disabled=n},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),ek=function(t){function e(e,n){return void 0===n&&(n=!1),t.call(this,e,n)||this}return Bb(e,t),e.prototype.onButtonClick=function(){},e}(tk),nk=function(){function t(t){this.isShow=!1,this.showTime=0,this.record(t)}return t.prototype.record=function(t){var e=Ux.get(t);null==e&&(e=new Set,Ux.set(t,e)),e.add(this),Vx.set(this,t)},t.prototype.renderContent=function(t){var e=this.$elem;e.empty(),e.append(t);var n=this.genSelfElem();n&&e.append(n)},t.prototype.appendTo=function(t){var e=this.$elem;t.append(e)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=Vx.get(this);t&&t.emit("modalOrPanelShow",this)}},t.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=Vx.get(this);t&&t.emit("modalOrPanelHide")}},t}(),rk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="dropPanel",n.$elem=eo('<div class="w-e-drop-panel"></div>'),n}return Bb(e,t),e.prototype.genSelfElem=function(){return null},e}(nk),ik=function(t){function e(e,n){void 0===n&&(n=!1);var r=t.call(this,e,n)||this;if(r.dropPanel=null,r.menu=e,e.showDropPanel){var i=QE();r.$button.append(i)}return r}return Bb(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var t=this.menu;if(null!=t.getPanelContentElem){var e=pk(this);if(null==this.dropPanel){var n=new rk(e),r=t.getPanelContentElem(e);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var i=this.dropPanel;i.isShow?i.hide():(r=t.getPanelContentElem(e),i.renderContent(r),i.show())}var o=this.dropPanel;if(o.isShow){var a=this.$elem,s=a.offset().left,l=a.parents(".w-e-bar");s-l.offset().left>=l.width()/2?o.$elem.css({left:"none",right:"0"}):o.$elem.css({left:"0",right:"none"})}}},e}(tk),ok=function(t){function e(e,n){void 0===n&&(n=0);var r=t.call(this,e)||this;r.type="modal",r.$elem=eo('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var i=r.$elem;return i.on("click",(function(t){return t.stopPropagation()})),i.on("keyup",(function(t){"Escape"===t.code&&(r.hide(),e.restoreSelection())})),r}return Bb(e,t),e.prototype.genSelfElem=function(){var t=this,e=eo('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=Vx.get(this);return e.on("click",(function(){t.hide(),null==n||n.restoreSelection()})),e},e.prototype.setStyle=function(t){var e=this.width,n=this.$elem;n.attr("style",""),e&&n.css("width",e+"px"),n.css(t)},e}(nk);function ak(t,e,n){var r=eo('<label class="babel-container"></label>');r.append("<span>"+t+"</span>");var i=eo('<input type="text" id="'+e+'" placeholder="'+(n||"")+'">');return r.append(i),[r[0],i[0]]}function sk(t,e){var n=eo('<div class="button-container"></div>'),r=eo('<button type="button" id="'+t+'">'+e+"</button>");return n.append(r),[n[0],r[0]]}var lk=function(t){function e(e,n){void 0===n&&(n=!1);var r=t.call(this,e,n)||this;return r.$body=eo("body"),r.modal=null,r.menu=e,r}return Bb(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var t=pk(this),e=this.menu.getModalPositionNode(t);return qe.isElement(e)?tE(t,e,"modal"):JA(t)},e.prototype.handleModal=function(){var t=pk(this),e=this.menu;if(null==this.modal){var n=new ok(t,e.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},e.prototype.renderAndShowModal=function(t,e){void 0===e&&(e=!1);var n=pk(this),r=this.menu;if(null!=r.getModalContentElem){var i=Dw.getTextarea(n),o=Dw.getToolbar(n),a=((null==o?void 0:o.getConfig())||{}).modalAppendToBody,s=r.getModalContentElem(n);if(t.renderContent(s),a)t.setStyle({left:"0",right:"0"});else{var l=this.getPosition();t.setStyle(l)}e&&(a?t.appendTo(this.$body):t.appendTo(i.$textAreaContainer)),t.show(),a||eE(n,t.$elem),setTimeout((function(){n.blur()}))}},e}(tk),uk=function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="selectList",r.$elem=eo('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(t){t.stopPropagation()})),r}return Bb(e,t),e.prototype.renderList=function(t){var e=this.$elem;e.empty();var n=eo("<ul></ul>");t.forEach((function(t){var e=t.value,r=t.text,i=t.selected,o=t.styleForRenderMenuList,a=eo('<li data-value="'+e+'"></li>');if(o&&a.css(o),i){var s=eo('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(s),a.addClass("selected")}a.append(eo('<span data-value="'+e+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),e.append(n)},e.prototype.genSelfElem=function(){return null},e}(nk),ck=function(){function t(t,e){var n=this;void 0===e&&(e=!1),this.$elem=eo('<div class="w-e-bar-item"></div>'),this.$button=eo('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var r=t.tag,i=t.title,o=t.width,a=t.iconSvg,s=void 0===a?"":a,l=t.hotkey,u=void 0===l?"":l;if("select"!==r)throw new Error("Invalid tag '"+r+"', expected 'select'");var c=this.$button;o&&c.css("width",o+"px"),JE(c,s,i,u,e),this.$elem.append(c),this.menu=t,IS((function(){return n.init()}))}return t.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",(function(e){e.preventDefault(),pk(t).hidePanelOrModal(),t.trigger()}))},t.prototype.trigger=function(){var t=this,e=pk(this);if(!e.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new uk(e,n.selectPanelWidth);var r=this.selectList,i=n.getOptions(e);r.renderList(i),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(e){var n=e.target;if(null!=n){e.preventDefault();var r=eo(n).attr("data-value");t.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(i=n.getOptions(e),r.renderList(i),r.show())}},t.prototype.onChange=function(t){var e=pk(this),n=this.menu;n.exec&&n.exec(e,t)},t.prototype.setSelectedValue=function(){var t=pk(this),e=this.menu,n=e.getValue(t),r=function(t,e){for(var n=t.length,r="",i=0;i<n;i++){var o=t[i];if(o.value===e){r=o.text;break}}return r}(e.getOptions(t),n.toString()),i=this.$button,o=QE();i.empty(),i.text(r),i.append(o)},t.prototype.setDisabled=function(){var t=pk(this),e=this.menu.isDisabled(t),n=this.$button;(null==t.selection||t.isDisabled())&&(e=!0);var r="disabled";e?n.addClass(r):n.removeClass(r),this.disabled=e},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),hk=function(){function t(t){this.$elem=eo('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=eo('<div class="w-e-bar-item-menus-container"></div>'),this.$button=eo('<button type="button"></button>');var e=t.iconSvg,n=t.title,r=this.$elem,i=this.$button;if(e){var o=eo(e);YE(o),i.append(o)}else i.text(n);var a=QE();i.append(a),r.append(i);var s=this.$container;r.append(s);var l=this.createObserver();this.observe(l)}return t.prototype.appendBarItem=function(t){var e=t.$elem;this.$container.append(e)},t.prototype.observe=function(t){var e=this.$container;t.observe(e[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var t=this,e=this.$container,n=this.$button,r=new MutationObserver((function(){var i=e.find("button"),o=i.length;if(0!==o){var a=0;i.each((function(t){eo(t).hasClass("disabled")&&a++})),r.disconnect(),a===o?n.addClass("disabled"):n.removeClass("disabled"),t.observe(r)}}));return r},t}(),fk=new WeakMap;function pk(t){var e=zx.get(t);if(null==e)throw new Error("Can not get editor instance");return e}function dk(t,e){void 0===e&&(e=!1);var n=fk.get(t);if(n)return n;var r=t.tag;if("button"===r){var i=t.showDropPanel,o=t.showModal;n=i?new ik(t,e):o?new lk(t,e):new ek(t,e)}if("select"===r&&(n=new ck(t,e)),null==n)throw new Error("Invalid tag in menu "+JSON.stringify(t));return fk.set(t,n),n}function gk(t,e){var n=t.selection;return null!=n&&!yn.isCollapsed(n)&&!Dw.getSelectedElems(t).some((function(e){if(t.isVoid(e))return!0;var n=e.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!En.isText(e)}var vk=function(){function t(){var t=this;this.$elem=eo('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=$u((function(){var e=t.isShow,n=t.getSelectedNodeAndMenuKeys()||{},r=n.node,i=void 0===r?null:r,o=n.menuKeys,a=void 0===o?[]:o;null!=i&&t.changeItemsState(),i&&qe.isElement(i)&&e&&t.isSamePath(i,t.prevSelectedNode)||(t.hideAndClean(),null!=i&&(t.registerItems(a),t.setPosition(i),t.show()),t.prevSelectedNode=i)}),200),IS((function(){var e=t.getEditorInstance(),n=t.$elem;n.on("mousedown",(function(t){return t.preventDefault()})),Dw.getTextarea(e).$textAreaContainer.append(n),e.on("change",t.changeHoverbarState);var r=t.hideAndClean.bind(t);e.on("scroll",r),e.on("fullScreen",r),e.on("unFullScreen",r)}))}return t.prototype.getMenus=function(){return this.menus},t.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},t.prototype.checkPositionBottom=function(){var t=this.$elem,e=!1,n=window.innerHeight;n&&n>=360&&n-t[0].getBoundingClientRect().bottom<360&&(e=!0),e?t.addClass("w-e-bar-bottom"):t.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var t=this;IS((function(){t.hoverbarItems.forEach((function(t){t.changeMenuState()}))}))},t.prototype.registerItems=function(t){var e=this,n=this.$elem;t.forEach((function(t){if("|"!==t)e.registerSingleItem(t);else{var r=KE();n.append(r)}}))},t.prototype.registerSingleItem=function(t){var e=this.getEditorInstance(),n=this.menus,r=n[t];if(null==r){var i=Ow[t];if(null==i)throw new Error("Not found menu item factory by key '"+t+"'");if("function"!=typeof i)throw new Error("Menu item factory (key='"+t+"') is not a function");r=i(),n[t]=r}var o=dk(r);this.hoverbarItems.push(o),zx.set(o,e),this.$elem.append(o.$elem)},t.prototype.setPosition=function(t){var e=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),qe.isElement(t)){var r=tE(e,t,"bar");return n.css(r),void eE(e,n)}if(En.isText(t))return r=JA(e),n.css(r),void eE(e,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(null==t.selection)return null;var e=this.getHoverbarKeysConf(),n=null,r=[],i=function(i){var o=e[i],a=o.match,s=o.menuKeys,l=void 0===s?[]:s,u=a||function(t,e){return Dw.checkNodeType(e,i)},c=Pb(Je.nodes(t,{match:function(e){return u(t,e)},universal:!0}),1),h=c[0];if(null!=h)return n=h[0],r=l,"break"};for(var o in e)if("break"===i(o))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},t.prototype.getEditorInstance=function(){var t=Nx.get(this);if(null==t)throw new Error("Can not get editor instance");return t},t.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,e=void 0===t?{}:t,n=e.text;return n&&null==n.match&&(n.match=gk),e},t.prototype.isSamePath=function(t,e){if(null==t||null==e)return!1;var n=Dw.findPath(null,t),r=Dw.findPath(null,e);return un.equals(n,r)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function mk(t,e,n){var r=eo(n);return!!r.attr(e)||(r.attr(e,"true"),t.on("destroyed",(function(){r.removeAttr(e)})),!1)}function yk(t,e,n,r){if(qx.set(t,e),Xx.set(t,n),qe.isElement(t)){var i=t.children;if((void 0===i?[]:i).forEach((function(e,n){return yk(e,n,t,r)})),Je.isVoid(r,t)){var o=Pb(on.texts(t),1),a=Pb(o[0],1)[0];qx.set(a,0),Xx.set(a,t)}}}function bk(t){var e=t.selector,n=void 0===e?"":e,r=t.config,i=void 0===r?{}:r,o=t.content,a=t.html,s=t.plugins,l=void 0===s?[]:s,u=(t=>{var e=t,{apply:n}=e;return e.history={undos:[],redos:[]},e.redo=()=>{var{history:t}=e,{redos:n}=t;if(n.length>0){var r=n[n.length-1];ey.withoutSaving(e,(()=>{Je.withoutNormalizing(e,(()=>{for(var t of r)e.apply(t)}))})),t.redos.pop(),t.undos.push(r)}},e.undo=()=>{var{history:t}=e,{undos:n}=t;if(n.length>0){var r=n[n.length-1];ey.withoutSaving(e,(()=>{Je.withoutNormalizing(e,(()=>{var t=r.map(ln.inverse).reverse();for(var n of t)e.apply(n)}))})),t.redos.push(r),t.undos.pop()}},e.apply=t=>{var{operations:r,history:i}=e,{undos:o}=i,a=o[o.length-1],s=a&&a[a.length-1],l=iy(t,s),u=ey.isSaving(e),c=ey.isMerging(e);if(null==u&&(u=ry(t)),u){if(null==c&&(c=null!=a&&(0!==r.length||ny(t,s)||l)),a&&c)l&&a.pop(),a.push(t);else{var h=[t];o.push(h)}for(;o.length>100;)o.shift();oy(t)&&(i.redos=[])}n(t)},e})(function(t){var e=t,n=e.insertText,r=e.insertNode,i=e.insertFragment;return e.insertText=function(t){if(e.getConfig().maxLength){var r=Dw.getLeftLengthOfMaxLength(e);r<=0||(r<t.length?n(t.slice(0,r)):n(t))}else n(t)},e.insertNode=function(t){if(e.getConfig().maxLength){var n=Dw.getLeftLengthOfMaxLength(e);n<=0||n<on.string(t).length||r(t)}else r(t)},e.insertFragment=function(t){e.getConfig().maxLength?t.forEach((function(t){e.insertNode(t)})):i(t)},e}(function(t){var e=t;return e.on=function(t,n){var r=qA(e);if(r.on(t,n),"destroyed"===t&&ZA(e,n),"destroyed"!==t){var i=function(){return r.off(t,n)};r.on("destroyed",i),ZA(e,i)}},e.once=function(t,n){qA(e).once(t,n)},e.off=function(t,n){qA(e).off(t,n)},e.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=qA(e);i.emit.apply(i,Lb([t],Pb(n))),"destroyed"===t&&(YA(e).forEach((function(t){return i.off("destroyed",t)})),QA(e))},e}(function(t){var e=t;return e.select=function(t){$n.select(e,t)},e.deselect=function(){var n=e.selection,r=Dw.findDocumentOrShadowRoot(e).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&$n.deselect(t)},e.move=function(e,n){void 0===n&&(n=!1),e&&(e<0||$n.move(t,{distance:e,unit:"character",reverse:n}))},e.moveReverse=function(t){e.move(t,!0)},e.restoreSelection=function(){var t=nw.get(e);null!=t&&(e.focus(),$n.select(e,t))},e.getSelectionPosition=function(){return JA(e)},e.getNodePosition=function(t){return tE(e,t)},e.isSelectedAll=function(){var t=e.selection;if(null==t)return!1;var n=Pb(yn.edges(t),2),r=n[0],i=n[1],o=Pb(Je.edges(e,[]),2),a=o[0],s=o[1];return!(!pn.equals(r,a)||!pn.equals(i,s))},e.selectAll=function(){var t=Je.start(e,[]),n=Je.end(e,[]);$n.select(e,{anchor:t,focus:n})},e}(AA(function(t){var e=t;return e.getAllMenuKeys=function(){var t=[];for(var e in Ow)t.push(e);return t},e.getConfig=function(){var t=Hx.get(e);if(null==t)throw new Error("Can not get editor config");return t},e.getMenuConfig=function(t){var n=e.getConfig().MENU_CONF;return(void 0===n?{}:n)[t]||{}},e.alert=function(t,n){void 0===n&&(n="info");var r=e.getConfig().customAlert;r&&r(t,n)},e}(function(t){var e=t;return e.id="wangEditor-"+Fw++,e.isDestroyed=!1,e.isFullScreen=!1,e.focus=function(t){var n=Dw.toDOMNode(e,e),r=Dw.findDocumentOrShadowRoot(e);if(ew.set(e,!0),t){var i=Je.end(e,[]);$n.select(e,i)}r.activeElement!==n&&n.focus({preventScroll:!0})},e.isFocused=function(){return!!ew.get(e)},e.blur=function(){var t=Dw.toDOMNode(e,e),n=Dw.findDocumentOrShadowRoot(e);ew.set(e,!1),n.activeElement===t&&(t.blur(),$n.deselect(e))},e.updateView=function(){Dw.getTextarea(e).changeViewState();var t=Dw.getToolbar(e);t&&t.changeToolbarState();var n=Dw.getHoverbar(e);n&&n.changeHoverbarState()},e.destroy=function(){if(!e.isDestroyed){var t=Dw.getTextarea(e);t.destroy(),Ix.delete(e),Px.delete(t);var n=Dw.getToolbar(e);n&&(n.destroy(),Rx.delete(e),Lx.delete(n));var r=Dw.getHoverbar(e);r&&(r.destroy(),jx.delete(e),Nx.delete(r)),e.isDestroyed=!0,e.emit("destroyed")}},e.scrollToElem=function(t){if(!e.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=eo("#"+t);if(0!==r.length){var i=r[0];if(!Dw.hasDOMNode(e,i))return n="Element (found by id is '"+t+"') is not in editor DOM",n+="\n 通过 id '"+t+"' 找到的 element 不在 editor DOM 之内",void console.error(n,i);var o=Dw.getTextarea(e),a=o.$textAreaContainer,s=o.$scroll,l=r.offset().top,u=a.offset().top;s[0].scrollBy({top:l-u,behavior:"smooth"})}},e.showProgressBar=function(t){t<1||Dw.getTextarea(e).changeProgress(t)},e.hidePanelOrModal=function(){var t=Ux.get(e);null!=t&&t.forEach((function(t){return t.hide()}))},e.enable=function(){e.getConfig().readOnly=!1,e.updateView()},e.disable=function(){e.getConfig().readOnly=!0,e.updateView()},e.isDisabled=function(){return e.getConfig().readOnly},e.toDOMNode=function(t){return Dw.toDOMNode(e,t)},e.fullScreen=function(){if(!e.isFullScreen){var t=null,n=Dw.getToolbar(e);n&&(t=n.$box);var r=Dw.getTextarea(e).$box.parent();if(t&&t.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var i=r.css("z-index");r.attr("data-z-index",i.toString()),e.isFullScreen=!0,e.emit("fullScreen")}},e.unFullScreen=function(){if(e.isFullScreen){var t=Dw.getTextarea(e).$box.parent();setTimeout((function(){t.removeClass("w-e-full-screen-container"),e.isFullScreen=!1,e.emit("unFullScreen")}),200)}},e.getEditableContainer=function(){return Dw.getTextarea(e).$textAreaContainer[0]},e}(function(t){var e=t,n=e.insertText;return e.insertFragment,e.setFragmentData=function(t){var n=e.selection;if(n){var r=Pb(yn.edges(n),2),i=r[0],o=r[1],a=Je.void(e,{at:i.path}),s=Je.void(e,{at:o.path});if(!yn.isCollapsed(n)||a){var l=Dw.toDOMRange(e,n),u=l.cloneContents(),c=u.childNodes[0];if(u.childNodes.forEach((function(t){t.textContent&&""!==t.textContent.trim()&&(c=t)})),s){var h=Pb(s,1)[0],f=l.cloneRange(),p=Dw.toDOMNode(e,h);f.setEndAfter(p),u=f.cloneContents()}if(a&&(c=u.querySelector("[data-slate-spacer]")),Array.from(u.querySelectorAll("[data-slate-zero-width]")).forEach((function(t){var e="n"===t.getAttribute("data-slate-zero-width");t.textContent=e?"\n":""})),pw(c)){var d=c.ownerDocument.createElement("span");d.style.whiteSpace="pre",d.appendChild(c),u.appendChild(d),c=d}var g=e.getFragment(),v=JSON.stringify(g),m=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",m),t.setData("application/x-slate-fragment",m);var y=u.ownerDocument.createElement("div");return y.appendChild(u),y.setAttribute("hidden","true"),u.ownerDocument.body.appendChild(y),t.setData("text/html",y.innerHTML),t.setData("text/plain",mw(y)),u.ownerDocument.body.removeChild(y),t}}},e.insertData=function(t){var r,i,o=t.getData("application/x-slate-fragment");if(o){var a=decodeURIComponent(window.atob(o)),s=JSON.parse(a);e.insertFragment(s)}else{var l=t.getData("text/plain"),u=t.getData("text/html");if(u)e.dangerouslyInsertHtml(u);else if(l){var c=l.split(/\r\n|\r|\n/),h=!1;try{for(var f=Ib(c),p=f.next();!p.done;p=f.next()){var d=p.value;h&&$n.splitNodes(e,{always:!0}),n(d),h=!0}}catch(t){r={error:t}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}}},e}(de()))))))));if(n&&function(t,e){return mk(t,"data-w-e-textarea",e)}(u,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(t){void 0===t&&(t={});var e=Gu(Mw),n={},r=t.MENU_CONF,i=void 0===r?{}:r;return da(e,(function(t,e){n[e]=_b(_b({},t),i[e]||{})})),delete t.MENU_CONF,_b({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(t,e){window.alert(e+":\n"+t)}},t)}(i);Hx.set(u,c);var h=c.hoverbarKeys,f=void 0===h?{}:h;if(l.forEach((function(t){u=t(u)})),a){var p=eo("<div>"+a+"</div>");u.children=Array.from(p.children()).map((function(t){return CA(eo(t),u)}))}if(o&&o.length&&(u.children=o),0===u.children.length&&(u.children=[{type:"paragraph",children:[{text:""}]}]),Dw.normalizeContent(u),n){var d=new ZE(n);Ix.set(u,d),Px.set(d,u),d.changeViewState(),IS((function(){var t=d.$scroll;null!=t&&t.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",t)}));var g=void 0;Object.keys(f).length>0&&(g=new vk,Nx.set(g,u),jx.set(u,g)),u.on("change",(function(){u.hidePanelOrModal()})),u.on("scroll",(function(){u.hidePanelOrModal()}))}else u.children.forEach((function(t,e){return yk(t,e,u,u)}));var v=c.onCreated,m=c.onDestroyed;return v&&u.on("created",(function(){return v(u)})),m&&u.on("destroyed",(function(){return m(u)})),IS((function(){return u.emit("created")})),u}var xk=Lv("splice"),wk=Bp.TypeError,Ck=Math.max,Sk=Math.min;Iv({target:"Array",proto:!0,forced:!xk},{splice:function(t,e){var n,r,i,o,a,s,l=Gp(this),u=Rg(l),c=pv(t,u),h=arguments.length;if(0===h?n=r=0:1===h?(n=0,r=u-c):(n=h-2,r=Sk(Ck(Ig(e),0),u-c)),u+n-r>9007199254740991)throw wk("Maximum allowed length exceeded");for(i=Zg(l,r),o=0;o<r;o++)(a=c+o)in l&&Gv(i,o,l[a]);if(i.length=r,n<r){for(o=c;o<u-r;o++)s=o+n,(a=o+r)in l?l[s]=l[a]:delete l[s];for(o=u;o>u-r+n;o--)delete l[o-1]}else if(n>r)for(o=u-r;o>c;o--)s=o+n-1,(a=o+r-1)in l?l[s]=l[a]:delete l[s];for(o=0;o<n;o++)l[o+c]=arguments[o+2];return l.length=u-r+n,i}});var Ak=function(){function t(t,e){var n=this;this.$toolbar=eo('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=$u((function(){n.toolbarItems.forEach((function(t){t.changeMenuState()}))}),200),this.config=e;var r=eo(t);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=r;var i=this.$toolbar;i.on("mousedown",(function(t){return t.preventDefault()})),r.append(i),IS((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var t=this,e="",n=this.$toolbar,r=this.config,i=r.toolbarKeys,o=void 0===i?[]:i,a=r.insertKeys,s=void 0===a?{index:0,keys:[]}:a,l=r.excludeKeys,u=void 0===l?[]:l,c=Gu(o);s.keys.length>0&&("string"==typeof s.keys&&(s.keys=[s.keys]),s.keys.forEach((function(t,e){c.splice(s.index+e,0,t)})));var h=c.filter((function(t){if("string"==typeof t){if(u.includes(t))return!1}else if(u.includes(t.key))return!1;return!0})),f=h.length;h.forEach((function(r,i){if("|"===r){if(0===i)return;if(i+1===f)return;if("|"===e)return;var o=KE();return n.append(o),void(e=r)}if("string"==typeof r)return t.registerSingleItem(r,t),void(e=r);t.registerGroup(r),e="group"}))},t.prototype.registerGroup=function(t){var e=this,n=this.$toolbar,r=function(t){return new hk(t)}(t),i=t.menuKeys,o=void 0===i?[]:i,a=this.config.excludeKeys,s=void 0===a?[]:a;o.forEach((function(t){s.includes(t)||e.registerSingleItem(t,r)})),n.append(r.$elem)},t.prototype.registerSingleItem=function(t,e){var n=this.getEditorInstance(),r=e instanceof hk,i=this.menus,o=i[t];if(null==o){var a=Ow[t];if(null==a)throw new Error("Not found menu item factory by key '"+t+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+t+"') is not a function");o=a(),i[t]=o}else console.warn("Duplicated toolbar menu key '"+t+"'\n重复注册了菜单栏 menu '"+t+"'");var s=dk(o,r);this.toolbarItems.push(s),zx.set(s,n),r?e.appendBarItem(s):e.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var t=Lx.get(this);if(null==t)throw new Error("Can not get editor instance");return t},t.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},t}();function Ek(t,e){if(null==t)throw new Error("Cannot create toolbar, because editor is null");var n=e.selector,r=e.config,i=void 0===r?{}:r;if(function(t,e){return mk(t,"data-w-e-toolbar",e)}(t,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var o=_b({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}),a=new Ak(n,o);return Lx.set(a,t),Rx.set(t,a),a}var kk=pg.EXISTS,Dk=Hd.f,Fk=Function.prototype,Mk=Up(Fk.toString),Ok=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Tk=Up(Ok.exec);function Bk(t){var e=t.server,n=void 0===e?"":e,r=t.fieldName,i=void 0===r?"":r,o=t.maxFileSize,a=void 0===o?10485760:o,s=t.maxNumberOfFiles,l=void 0===s?100:s,u=t.meta,c=void 0===u?{}:u,h=t.metaWithUrl,f=void 0!==h&&h,p=t.headers,d=void 0===p?{}:p,g=t.withCredentials,v=void 0!==g&&g,m=t.timeout,y=void 0===m?1e4:m,b=t.onBeforeUpload,x=void 0===b?function(t){return t}:b,w=t.onSuccess,C=void 0===w?function(t,e){}:w,S=t.onError,A=void 0===S?function(t,e,n){console.error(t.name+" upload error",e,n)}:S,E=t.onProgress,k=void 0===E?function(t){}:E;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!i)throw new Error("Cannot get fieldName\n没有配置 fieldName");var D=n;f&&(D=function(t,e){var n=Pb(t.split("#"),2),r=n[0],i=n[1],o=[];da(e,(function(t,e){o.push(e+"="+t)}));var a=o.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,i?r+"#"+i:r}(D,c));var F=new zh({onBeforeUpload:x,restrictions:{maxFileSize:a,maxNumberOfFiles:l},meta:c}).use(kp,{endpoint:D,headers:d,formData:!0,fieldName:i,bundle:!0,withCredentials:v,timeout:y});return F.on("upload-success",(function(t,e){var n=e.body;C(t,void 0===n?{}:n),F.removeFile(t.id)})),F.on("progress",(function(t){t<1||k(t)})),F.on("error",(function(t){console.error("wangEditor file upload error",t.stack)})),F.on("upload-error",(function(t,e,n){A(t,e,n),F.removeFile(t.id)})),F.on("restriction-failed",(function(t,e){A(t,e),F.removeFile(t.id)})),F}function _k(t){return _k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_k(t)}function Ik(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pk(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach((function(e){Ik(t,e,n[e])}))}return t}function Lk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rk(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Nk(t,e,n){return e&&Rk(t.prototype,e),n&&Rk(t,n),t}function jk(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function zk(t,e){if(e&&("object"===_k(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return jk(t)}function Uk(t){return Uk=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Uk(t)}function Vk(t,e){return Vk=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Vk(t,e)}function Hk(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vk(t,e)}md&&!kk&&Dk(Fk,"name",{configurable:!0,get:function(){try{return Tk(Ok,Mk(this))[1]}catch(act){return""}}});var $k={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},Gk=new(function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Lk(this,t),this.init(e,n)}return Nk(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||$k,this.options=e,this.debug=e.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,e,n,r){return r&&!this.debug?null:("string"==typeof t[0]&&(t[0]="".concat(n).concat(this.prefix," ").concat(t[0])),this.logger[e](t))}},{key:"create",value:function(e){return new t(this.logger,Pk({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),Wk=function(){function t(){Lk(this,t),this.observers={}}return Nk(t,[{key:"on",value:function(t,e){var n=this;return t.split(" ").forEach((function(t){n.observers[t]=n.observers[t]||[],n.observers[t].push(e)})),this}},{key:"off",value:function(t,e){this.observers[t]&&(e?this.observers[t]=this.observers[t].filter((function(t){return t!==e})):delete this.observers[t])}},{key:"emit",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach((function(t){t.apply(void 0,n)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(e){e.apply(e,[t].concat(n))}))}}}]),t}();function qk(){var t,e,n=new Promise((function(n,r){t=n,e=r}));return n.resolve=t,n.reject=e,n}function Xk(t){return null==t?"":""+t}function Zk(t,e,n){t.forEach((function(t){e[t]&&(n[t]=e[t])}))}function Yk(t,e,n){function r(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function i(){return!t||"string"==typeof t}for(var o="string"!=typeof e?[].concat(e):e.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!t[a]&&n&&(t[a]=new n),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return i()?{}:{obj:t,k:r(o.shift())}}function Qk(t,e,n){var r=Yk(t,e,Object);r.obj[r.k]=n}function Kk(t,e){var n=Yk(t,e),r=n.obj,i=n.k;if(r)return r[i]}function Jk(t,e,n){var r=Kk(t,n);return void 0!==r?r:Kk(e,n)}function tD(t,e,n){for(var r in e)"__proto__"!==r&&"constructor"!==r&&(r in t?"string"==typeof t[r]||t[r]instanceof String||"string"==typeof e[r]||e[r]instanceof String?n&&(t[r]=e[r]):tD(t[r],e[r],n):t[r]=e[r]);return t}function eD(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var nD={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function rD(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,(function(t){return nD[t]})):t}var iD="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function oD(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),i=t,o=0;o<r.length;++o){if(!i)return;if("string"==typeof i[r[o]]&&o+1<r.length)return;if(void 0===i[r[o]]){for(var a=2,s=r.slice(o,o+a).join(n),l=i[s];void 0===l&&r.length>o+a;)a++,l=i[s=r.slice(o,o+a).join(n)];if(void 0===l)return;if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s];var u=r.slice(o+a).join(n);return u?oD(l,u,n):void 0}i=i[r[o]]}return i}}var aD=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Lk(this,e),n=zk(this,Uk(e).call(this)),iD&&Wk.call(jk(n)),n.data=t||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return Hk(e,Wk),Nk(e,[{key:"addNamespaces",value:function(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[t,e];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(a=t.split("."));var s=Kk(this.data,a);return s||!o||"string"!=typeof n?s:oD(this.data&&this.data[t]&&this.data[t][e],n,i)}},{key:"addResource",value:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[t,e];n&&(a=a.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(r=e,e=(a=t.split("."))[1]),this.addNamespaces(e),Qk(this.data,a,r),i.silent||this.emit("added",t,e,n,r)}},{key:"addResources",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(t,e,i,n[i],{silent:!0});r.silent||this.emit("added",t,e,n)}},{key:"addResourceBundle",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[t,e];t.indexOf(".")>-1&&(r=n,n=e,e=(a=t.split("."))[1]),this.addNamespaces(e);var s=Kk(this.data,a)||{};r?tD(s,n,i):s=Pk({},s,n),Qk(this.data,a,s),o.silent||this.emit("added",t,e,n)}},{key:"removeResourceBundle",value:function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}},{key:"hasResourceBundle",value:function(t,e){return void 0!==this.getResource(t,e)}},{key:"getResourceBundle",value:function(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?Pk({},{},this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"toJSON",value:function(){return this.data}}]),e}(),sD={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,i){var o=this;return t.forEach((function(t){o.processors[t]&&(e=o.processors[t].process(e,n,r,i))})),e}},lD={},uD=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Lk(this,e),n=zk(this,Uk(e).call(this)),iD&&Wk.call(jk(n)),Zk(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,jk(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=Gk.create("translator"),n}return Hk(e,Wk),Nk(e,[{key:"changeLanguage",value:function(t){t&&(this.language=t)}},{key:"exists",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;var n=this.resolve(t,e);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(t,e){var n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,i=e.ns||this.options.defaultNS;if(n&&t.indexOf(n)>-1){var o=t.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:t,namespaces:i};var a=t.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),t=a.join(r)}return"string"==typeof i&&(i=[i]),{key:t,namespaces:i}}},{key:"translate",value:function(t,n,r){var i=this;if("object"!==_k(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(t[t.length-1],n),s=a.key,l=a.namespaces,u=l[l.length-1],c=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(h){var f=n.nsSeparator||this.options.nsSeparator;return u+f+s}return s}var p=this.resolve(t,n),d=p&&p.res,g=p&&p.usedKey||s,v=p&&p.exactUsedKey||s,m=Object.prototype.toString.apply(d),y=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d;if(x&&d&&w&&y.indexOf(m)<0&&("string"!=typeof b||"[object Array]"!==m)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,d,Pk({},n,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(o){var C="[object Array]"===m,S=C?[]:{},A=C?v:g;for(var E in d)if(Object.prototype.hasOwnProperty.call(d,E)){var k="".concat(A).concat(o).concat(E);S[E]=this.translate(k,Pk({},n,{joinArrays:!1,ns:l})),S[E]===k&&(S[E]=d[E])}d=S}}else if(x&&"string"==typeof b&&"[object Array]"===m)(d=d.join(b))&&(d=this.extendTranslation(d,t,n,r));else{var D=!1,F=!1,M=void 0!==n.count&&"string"!=typeof n.count,O=e.hasDefaultValue(n),T=M?this.pluralResolver.getSuffix(c,n.count):"",B=n["defaultValue".concat(T)]||n.defaultValue;!this.isValidLookup(d)&&O&&(D=!0,d=B),this.isValidLookup(d)||(F=!0,d=s);var _=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,I=_&&F?void 0:d,P=O&&B!==d&&this.options.updateMissing;if(F||D||P){if(this.logger.log(P?"updateKey":"missingKey",c,u,s,P?B:d),o){var L=this.resolve(s,Pk({},n,{keySeparator:!1}));L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var R=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var j=0;j<N.length;j++)R.push(N[j]);else"all"===this.options.saveMissingTo?R=this.languageUtils.toResolveHierarchy(n.lng||this.language):R.push(n.lng||this.language);var z=function(t,e,r){i.options.missingKeyHandler?i.options.missingKeyHandler(t,u,e,P?r:I,P,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(t,u,e,P?r:I,P,n),i.emit("missingKey",t,u,e,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&M?R.forEach((function(t){i.pluralResolver.getSuffixes(t).forEach((function(e){z([t],s+e,n["defaultValue".concat(e)]||B)}))})):z(R,s,B))}d=this.extendTranslation(d,t,n,p,r),F&&d===s&&this.options.appendNamespaceToMissingKey&&(d="".concat(u,":").concat(s)),(F||D)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(d))}return d}},{key:"extendTranslation",value:function(t,e,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Pk({},n,{interpolation:Pk({},this.options.interpolation,n.interpolation)}));var a,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var l=t.match(this.interpolator.nestingRegexp);a=l&&l.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=Pk({},this.options.interpolation.defaultVariables,u)),t=this.interpolator.interpolate(t,u,n.lng||this.language,n),s){var c=t.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(e[0])),null):o.translate.apply(o,r.concat([e]))}),n)),n.interpolation&&this.interpolator.reset()}var h=n.postProcess||this.options.postProcess,f="string"==typeof h?[h]:h;return null!=t&&f&&f.length&&!1!==n.applyPostProcessor&&(t=sD.handle(f,t,e,this.options&&this.options.postProcessPassResolved?Pk({i18nResolved:r},n):n,this)),t}},{key:"resolve",value:function(t){var e,n,r,i,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach((function(t){if(!a.isValidLookup(e)){var l=a.extractFromKey(t,s),u=l.key;n=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var h=void 0!==s.count&&"string"!=typeof s.count,f=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(t){a.isValidLookup(e)||(o=t,!lD["".concat(p[0],"-").concat(t)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(lD["".concat(p[0],"-").concat(t)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(e)){i=n;var o,l,c=u,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,u,n,t,s):(h&&(o=a.pluralResolver.getSuffix(n,s.count)),h&&f&&p.push(c+o),f&&p.push(c+="".concat(a.options.contextSeparator).concat(s.context)),h&&p.push(c+=o));l=p.pop();)a.isValidLookup(e)||(r=l,e=a.getResource(n,t,l,s))}})))}))}})),{res:e,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,r):this.resourceStore.getResource(t,e,n,r)}}],[{key:"hasDefaultValue",value:function(t){var e="defaultValue";for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e===n.substring(0,e.length)&&void 0!==t[n])return!0;return!1}}]),e}();function cD(t){return t.charAt(0).toUpperCase()+t.slice(1)}var hD=function(){function t(e){Lk(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Gk.create("languageUtils")}return Nk(t,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var e=t.split("-");return this.formatLanguageCode(e[0])}},{key:"formatLanguageCode",value:function(t){if("string"==typeof t&&t.indexOf("-")>-1){var e=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map((function(t){return t.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=cD(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=cD(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=cD(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var e,n=this;return t?(t.forEach((function(t){if(!e){var r=n.formatLanguageCode(t);n.options.supportedLngs&&!n.isSupportedCode(r)||(e=r)}})),!e&&this.options.supportedLngs&&t.forEach((function(t){if(!e){var r=n.getLanguagePartFromCode(t);if(n.isSupportedCode(r))return e=r;e=n.options.supportedLngs.find((function(t){if(0===t.indexOf(r))return t}))}})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e):null}},{key:"getFallbackCodes",value:function(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function(t,e){var n=this,r=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],o=function(t){t&&(n.isSupportedCode(t)?i.push(t):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):"string"==typeof t&&o(this.formatLanguageCode(t)),r.forEach((function(t){i.indexOf(t)<0&&o(n.formatLanguageCode(t))})),i}}]),t}(),fD=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],pD={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function dD(){var t={};return fD.forEach((function(e){e.lngs.forEach((function(n){t[n]={numbers:e.nr,plurals:pD[e.fc]}}))})),t}var gD=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Lk(this,t),this.languageUtils=e,this.options=n,this.logger=Gk.create("pluralResolver"),this.rules=dD()}return Nk(t,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=this.getRule(t);return e&&e.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,e){return this.getSuffixes(t).map((function(t){return e+t}))}},{key:"getSuffixes",value:function(t){var e=this,n=this.getRule(t);return n?n.numbers.map((function(n){return e.getSuffix(t,n)})):[]}},{key:"getSuffix",value:function(t,e){var n=this,r=this.getRule(t);if(r){var i=r.noAbs?r.plurals(e):r.plurals(Math.abs(e)),o=r.numbers[i];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),t}(),vD=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Lk(this,t),this.logger=Gk.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return Nk(t,[{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var e=t.interpolation;this.escape=void 0!==e.escape?e.escape:rD,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?eD(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?eD(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?eD(e.nestingPrefix):e.nestingPrefixEscaped||eD("$t("),this.nestingSuffix=e.nestingSuffix?eD(e.nestingSuffix):e.nestingSuffixEscaped||eD(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(e,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(t,e,n,r){var i,o,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(t){return t.replace(/\$/g,"$$$$")}var c=function(t){if(t.indexOf(s.formatSeparator)<0){var i=Jk(e,l,t);return s.alwaysFormat?s.format(i,void 0,n,Pk({},r,e,{interpolationkey:t})):i}var o=t.split(s.formatSeparator),a=o.shift().trim(),u=o.join(s.formatSeparator).trim();return s.format(Jk(e,l,a),u,n,Pk({},r,e,{interpolationkey:a}))};this.resetRegExp();var h=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(t){return u(t)}},{regex:this.regexp,safeValue:function(t){return s.escapeValue?u(s.escape(t)):u(t)}}];return p.forEach((function(e){for(a=0;i=e.regex.exec(t);){if(void 0===(o=c(i[1].trim())))if("function"==typeof h){var n=h(t,i,r);o="string"==typeof n?n:""}else{if(f){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(t)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=Xk(o));var l=e.safeValue(o);if(t=t.replace(i[0],l),f?(e.regex.lastIndex+=l.length,e.regex.lastIndex-=i[0].length):e.regex.lastIndex=0,++a>=s.maxReplaces)break}})),t}},{key:"nest",value:function(t,e){var n,r,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Pk({},o);function s(t,e){var n=this.nestingOptionsSeparator;if(t.indexOf(n)<0)return t;var r=t.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);t=r[0],i=(i=this.interpolate(i,a)).replace(/'/g,'"');try{a=JSON.parse(i),e&&(a=Pk({},e,a))}catch(e){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),e),"".concat(t).concat(n).concat(i)}return delete a.defaultValue,t}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(t);){var l=[],u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(t){return t.trim()}));n[1]=c.shift(),l=c,u=!0}if((r=e(s.call(this,n[1].trim(),a),a))&&n[0]===t&&"string"!=typeof r)return r;"string"!=typeof r&&(r=Xk(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),r=""),u&&(r=l.reduce((function(t,e){return i.format(t,e,o.lng,Pk({},o,{interpolationkey:n[1].trim()}))}),r.trim())),t=t.replace(n[0],r),this.regexp.lastIndex=0}return t}}]),t}(),mD=function(t){function e(t,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Lk(this,e),i=zk(this,Uk(e).call(this)),iD&&Wk.call(jk(i)),i.backend=t,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=o,i.logger=Gk.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,o.backend,o),i}return Hk(e,Wk),Nk(e,[{key:"queueLoad",value:function(t,e,n,r){var i=this,o=[],a=[],s=[],l=[];return t.forEach((function(t){var r=!0;e.forEach((function(e){var s="".concat(t,"|").concat(e);!n.reload&&i.store.hasResourceBundle(t,e)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?a.indexOf(s)<0&&a.push(s):(i.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),o.indexOf(s)<0&&o.push(s),l.indexOf(e)<0&&l.push(e)))})),r||s.push(t)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:o,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(t,e,n){var r=t.split("|"),i=r[0],o=r[1];e&&this.emit("failedLoading",i,o,e),n&&this.store.addResourceBundle(i,o,n),this.state[t]=e?-1:2;var a={};this.queue.forEach((function(n){!function(t,e,n,r){var i=Yk(t,e,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}(n.loaded,[i],o),function(t,e){for(var n=t.indexOf(e);-1!==n;)t.splice(n,1),n=t.indexOf(e)}(n.pending,t),e&&n.errors.push(e),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(t){a[t]||(a[t]=[]),n.loaded[t].length&&n.loaded[t].forEach((function(e){a[t].indexOf(e)<0&&a[t].push(e)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(t){return!t.done}))}},{key:"read",value:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[n](t,e,(function(s,l){s&&l&&i<5?setTimeout((function(){r.read.call(r,t,e,n,i+1,2*o,a)}),o):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);var o=this.queueLoad(t,e,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(t){n.loadOne(t)}))}},{key:"load",value:function(t,e,n){this.prepareLoading(t,e,{},n)}},{key:"reload",value:function(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}},{key:"loadOne",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,a){r&&e.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&e.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),e.loaded(t,r,a)}))}},{key:"saveMissing",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(e,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(t,e,n,r,null,Pk({},o,{isUpdate:i})),t&&t[0]&&this.store.addResource(t[0],e,n,r))}}]),e}();function yD(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if("object"===_k(t[1])&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"===_k(t[2])||"object"===_k(t[3])){var n=t[3]||t[2];Object.keys(n).forEach((function(t){e[t]=n[t]}))}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function bD(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function xD(){}var wD=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(Lk(this,e),t=zk(this,Uk(e).call(this)),iD&&Wk.call(jk(t)),t.options=bD(n),t.services={},t.logger=Gk,t.modules={external:[]},r&&!t.isInitialized&&!n.isClone){if(!t.options.initImmediate)return t.init(n,r),zk(t,jk(t));setTimeout((function(){t.init(n,r)}),0)}return t}return Hk(e,Wk),Nk(e,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(t){return t?"function"==typeof t?new t:t:null}if("function"==typeof e&&(n=e,e={}),e.whitelist&&!e.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),e.nonExplicitWhitelist&&!e.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=Pk({},yD(),this.options,bD(e)),this.format=this.options.interpolation.format,n||(n=xD),!this.options.isClone){this.modules.logger?Gk.init(r(this.modules.logger),this.options):Gk.init(null,this.options);var i=new hD(this.options);this.store=new aD(this.options.resources,this.options);var o=this.services;o.logger=Gk,o.resourceStore=this.store,o.languageUtils=i,o.pluralResolver=new gD(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),o.interpolator=new vD(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new mD(r(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit.apply(t,[e].concat(r))})),this.modules.languageDetector&&(o.languageDetector=r(this.modules.languageDetector),o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=r(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new uD(this.services,this.options),this.translator.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit.apply(t,[e].concat(r))})),this.modules.external.forEach((function(e){e.init&&e.init(t)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}}));var u=qk(),c=function(){var e=function(e,r){t.isInitialized&&!t.initializedStoreOnce&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),u.resolve(r),n(e,r)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return e(null,t.t.bind(t));t.changeLanguage(t.options.lng,e)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}},{key:"loadResources",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xD,r=n,i="string"==typeof t?t:this.language;if("function"==typeof t&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],a=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach((function(t){o.indexOf(t)<0&&o.push(t)}))};if(i)a(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(t){return a(t)}))}this.options.preload&&this.options.preload.forEach((function(t){return a(t)})),this.services.backendConnector.load(o,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(t,e,n){var r=qk();return t||(t=this.languages),e||(e=this.options.ns),n||(n=xD),this.services.backendConnector.reload(t,e,(function(t){r.resolve(),n(t)})),r}},{key:"use",value:function(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&sD.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function(t,e){var n=this;this.isLanguageChangingTo=t;var r=qk();this.emit("languageChanging",t);var i=function(i){t||i||!n.services.languageDetector||(i=[]);var o="string"==typeof i?i:n.services.languageUtils.getBestMatchFromCodes(i);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(t){!function(t,i){i?(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),e&&e(t,(function(){return n.t.apply(n,arguments)}))}(t,o)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(t):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(t,e,n){var r=this,i=function t(e,i){var o;if("object"!==_k(i)){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([e,i].concat(s))}else o=Pk({},i);o.lng=o.lng||t.lng,o.lngs=o.lngs||t.lngs,o.ns=o.ns||t.ns;var u=r.options.keySeparator||".",c=n?"".concat(n).concat(u).concat(e):e;return r.t(c,o)};return"string"==typeof t?i.lng=t:i.lngs=t,i.ns=e,i.keyPrefix=n,i}},{key:"t",value:function(){var t;return this.translator&&(t=this.translator).translate.apply(t,arguments)}},{key:"exists",value:function(){var t;return this.translator&&(t=this.translator).exists.apply(t,arguments)}},{key:"setDefaultNamespace",value:function(t){this.options.defaultNS=t}},{key:"hasLoadedNamespace",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(t,n){var r=e.services.backendConnector.state["".concat(t,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||!(!a(r,t)||i&&!a(o,t))}},{key:"loadNamespaces",value:function(t,e){var n=this,r=qk();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(t){n.options.ns.indexOf(t)<0&&n.options.ns.push(t)})),this.loadResources((function(t){r.resolve(),e&&e(t)})),r):(e&&e(),Promise.resolve())}},{key:"loadLanguages",value:function(t,e){var n=qk();"string"==typeof t&&(t=[t]);var r=this.options.preload||[],i=t.filter((function(t){return r.indexOf(t)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(t){n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}},{key:"dir",value:function(t){return t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new e(t,n)}},{key:"cloneInstance",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xD,i=Pk({},this.options,n,{isClone:!0}),o=new e(i),a=["store","services","language"];return a.forEach((function(e){o[e]=t[e]})),o.services=Pk({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new uD(o.services,o.options),o.translator.on("*",(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];o.emit.apply(o,[t].concat(n))})),o.init(i,r),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),CD=new wD,SD="translation";function AD(t,e){CD.addResourceBundle(t,SD,e,!0,!0)}CD.init({lng:"zh-CN",resources:{}});var ED=CD.t.bind(CD),kD={editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}},DD={editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}};AD("en",kD),AD("zh-CN",DD),AD("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),AD("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var FD={type:"paragraph",renderElem:function(t,e,n){return Ls("p",null,e)}},MD={type:"paragraph",elemToHtml:function(t,e){return""===e?"<p><br></p>":"<p>"+e+"</p>"}},OD="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function TD(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function BD(t){var e={exports:{}};return t(e,e.exports),e.exports}var _D,ID,PD=function(t){return t&&t.Math==Math&&t},LD=PD("object"==typeof globalThis&&globalThis)||PD("object"==typeof window&&window)||PD("object"==typeof self&&self)||PD("object"==typeof OD&&OD)||function(){return this}()||Function("return this")(),RD=function(t){try{return!!t()}catch(t){return!0}},ND=!RD((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),jD=Function.prototype.call,zD=jD.bind?jD.bind(jD):function(){return jD.apply(jD,arguments)},UD={}.propertyIsEnumerable,VD=Object.getOwnPropertyDescriptor,HD=VD&&!UD.call({1:2},1)?function(t){var e=VD(this,t);return!!e&&e.enumerable}:UD,$D={f:HD},GD=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},WD=Function.prototype,qD=WD.bind,XD=WD.call,ZD=qD&&qD.bind(XD),YD=qD?function(t){return t&&ZD(XD,t)}:function(t){return t&&function(){return XD.apply(t,arguments)}},QD=YD({}.toString),KD=YD("".slice),JD=function(t){return KD(QD(t),8,-1)},tF=LD.Object,eF=YD("".split),nF=RD((function(){return!tF("z").propertyIsEnumerable(0)}))?function(t){return"String"==JD(t)?eF(t,""):tF(t)}:tF,rF=LD.TypeError,iF=function(t){if(null==t)throw rF("Can't call method on "+t);return t},oF=function(t){return nF(iF(t))},aF=function(t){return"function"==typeof t},sF=function(t){return"object"==typeof t?null!==t:aF(t)},lF=function(t){return aF(t)?t:void 0},uF=function(t,e){return arguments.length<2?lF(LD[t]):LD[t]&&LD[t][e]},cF=YD({}.isPrototypeOf),hF=uF("navigator","userAgent")||"",fF=LD.process,pF=LD.Deno,dF=fF&&fF.versions||pF&&pF.version,gF=dF&&dF.v8;gF&&(ID=(_D=gF.split("."))[0]>0&&_D[0]<4?1:+(_D[0]+_D[1])),!ID&&hF&&(!(_D=hF.match(/Edge\/(\d+)/))||_D[1]>=74)&&(_D=hF.match(/Chrome\/(\d+)/))&&(ID=+_D[1]);var vF=ID,mF=!!Object.getOwnPropertySymbols&&!RD((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&vF&&vF<41})),yF=mF&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bF=LD.Object,xF=yF?function(t){return"symbol"==typeof t}:function(t){var e=uF("Symbol");return aF(e)&&cF(e.prototype,bF(t))},wF=LD.String,CF=function(t){try{return wF(t)}catch(t){return"Object"}},SF=LD.TypeError,AF=function(t){if(aF(t))return t;throw SF(CF(t)+" is not a function")},EF=function(t,e){var n=t[e];return null==n?void 0:AF(n)},kF=LD.TypeError,DF=Object.defineProperty,FF=function(t,e){try{DF(LD,t,{value:e,configurable:!0,writable:!0})}catch(it){LD[t]=e}return e},MF=LD["__core-js_shared__"]||FF("__core-js_shared__",{}),OF=BD((function(t){(t.exports=function(t,e){return MF[t]||(MF[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),TF=LD.Object,BF=function(t){return TF(iF(t))},_F=YD({}.hasOwnProperty),IF=Object.hasOwn||function(t,e){return _F(BF(t),e)},PF=0,LF=Math.random(),RF=YD(1..toString),NF=function(t){return"Symbol("+(void 0===t?"":t)+")_"+RF(++PF+LF,36)},jF=OF("wks"),zF=LD.Symbol,UF=zF&&zF.for,VF=yF?zF:zF&&zF.withoutSetter||NF,HF=function(t){if(!IF(jF,t)||!mF&&"string"!=typeof jF[t]){var e="Symbol."+t;mF&&IF(zF,t)?jF[t]=zF[t]:jF[t]=yF&&UF?UF(e):VF(e)}return jF[t]},$F=LD.TypeError,GF=HF("toPrimitive"),WF=function(t,e){if(!sF(t)||xF(t))return t;var n,r=EF(t,GF);if(r){if(void 0===e&&(e="default"),n=zD(r,t,e),!sF(n)||xF(n))return n;throw $F("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&aF(n=t.toString)&&!sF(r=zD(n,t)))return r;if(aF(n=t.valueOf)&&!sF(r=zD(n,t)))return r;if("string"!==e&&aF(n=t.toString)&&!sF(r=zD(n,t)))return r;throw kF("Can't convert object to primitive value")}(t,e)},qF=function(t){var e=WF(t,"string");return xF(e)?e:e+""},XF=LD.document,ZF=sF(XF)&&sF(XF.createElement),YF=function(t){return ZF?XF.createElement(t):{}},QF=!ND&&!RD((function(){return 7!=Object.defineProperty(YF("div"),"a",{get:function(){return 7}}).a})),KF=Object.getOwnPropertyDescriptor,JF={f:ND?KF:function(t,e){if(t=oF(t),e=qF(e),QF)try{return KF(t,e)}catch(t){}if(IF(t,e))return GD(!zD($D.f,t,e),t[e])}},tM=LD.String,eM=LD.TypeError,nM=function(t){if(sF(t))return t;throw eM(tM(t)+" is not an object")},rM=LD.TypeError,iM=Object.defineProperty,oM={f:ND?iM:function(t,e,n){if(nM(t),e=qF(e),nM(n),QF)try{return iM(t,e,n)}catch(t){}if("get"in n||"set"in n)throw rM("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},aM=ND?function(t,e,n){return oM.f(t,e,GD(1,n))}:function(t,e,n){return t[e]=n,t},sM=YD(Function.toString);aF(MF.inspectSource)||(MF.inspectSource=function(t){return sM(t)});var lM,uM,cM,hM=MF.inspectSource,fM=LD.WeakMap,pM=aF(fM)&&/native code/.test(hM(fM)),dM=OF("keys"),gM=function(t){return dM[t]||(dM[t]=NF(t))},vM={},mM=LD.TypeError,yM=LD.WeakMap;if(pM||MF.state){var bM=MF.state||(MF.state=new yM),xM=YD(bM.get),wM=YD(bM.has),CM=YD(bM.set);lM=function(t,e){if(wM(bM,t))throw new mM("Object already initialized");return e.facade=t,CM(bM,t,e),e},uM=function(t){return xM(bM,t)||{}},cM=function(t){return wM(bM,t)}}else{var SM=gM("state");vM[SM]=!0,lM=function(t,e){if(IF(t,SM))throw new mM("Object already initialized");return e.facade=t,aM(t,SM,e),e},uM=function(t){return IF(t,SM)?t[SM]:{}},cM=function(t){return IF(t,SM)}}var AM={set:lM,get:uM,has:cM,enforce:function(t){return cM(t)?uM(t):lM(t,{})},getterFor:function(t){return function(e){var n;if(!sF(e)||(n=uM(e)).type!==t)throw mM("Incompatible receiver, "+t+" required");return n}}},EM=Function.prototype,kM=ND&&Object.getOwnPropertyDescriptor,DM=IF(EM,"name"),FM={EXISTS:DM,PROPER:DM&&"something"===function(){}.name,CONFIGURABLE:DM&&(!ND||ND&&kM(EM,"name").configurable)},MM=BD((function(t){var e=FM.CONFIGURABLE,n=AM.get,r=AM.enforce,i=String(String).split("String");(t.exports=function(t,n,o,a){var s,l=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,h=a&&void 0!==a.name?a.name:n;aF(o)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!IF(o,"name")||e&&o.name!==h)&&aM(o,"name",h),(s=r(o)).source||(s.source=i.join("string"==typeof h?h:""))),t!==LD?(l?!c&&t[n]&&(u=!0):delete t[n],u?t[n]=o:aM(t,n,o)):u?t[n]=o:FF(n,o)})(Function.prototype,"toString",(function(){return aF(this)&&n(this).source||hM(this)}))})),OM=Math.ceil,TM=Math.floor,BM=function(t){var e=+t;return e!=e||0===e?0:(e>0?TM:OM)(e)},_M=Math.max,IM=Math.min,PM=function(t,e){var n=BM(t);return n<0?_M(n+e,0):IM(n,e)},LM=Math.min,RM=function(t){return t>0?LM(BM(t),9007199254740991):0},NM=function(t){return RM(t.length)},jM=function(t){return function(e,n,r){var i,o=oF(e),a=NM(o),s=PM(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},zM={includes:jM(!0),indexOf:jM(!1)},UM=zM.indexOf,VM=YD([].push),HM=function(t,e){var n,r=oF(t),i=0,o=[];for(n in r)!IF(vM,n)&&IF(r,n)&&VM(o,n);for(;e.length>i;)IF(r,n=e[i++])&&(~UM(o,n)||VM(o,n));return o},$M=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],GM=$M.concat("length","prototype"),WM={f:Object.getOwnPropertyNames||function(t){return HM(t,GM)}},qM={f:Object.getOwnPropertySymbols},XM=YD([].concat),ZM=uF("Reflect","ownKeys")||function(t){var e=WM.f(nM(t)),n=qM.f;return n?XM(e,n(t)):e},YM=function(t,e){for(var n=ZM(e),r=oM.f,i=JF.f,o=0;o<n.length;o++){var a=n[o];IF(t,a)||r(t,a,i(e,a))}},QM=/#|\.prototype\./,KM=function(t,e){var n=tO[JM(t)];return n==nO||n!=eO&&(aF(e)?RD(e):!!e)},JM=KM.normalize=function(t){return String(t).replace(QM,".").toLowerCase()},tO=KM.data={},eO=KM.NATIVE="N",nO=KM.POLYFILL="P",rO=KM,iO=JF.f,oO=function(t,e){var n,r,i,o,a,s=t.target,l=t.global,u=t.stat;if(n=l?LD:u?LD[s]||FF(s,{}):(LD[s]||{}).prototype)for(r in e){if(o=e[r],i=t.noTargetGet?(a=iO(n,r))&&a.value:n[r],!rO(l?r:s+(u?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;YM(o,i)}(t.sham||i&&i.sham)&&aM(o,"sham",!0),MM(n,r,o,t)}},aO=YD(YD.bind),sO=Array.isArray||function(t){return"Array"==JD(t)},lO={};lO[HF("toStringTag")]="z";var uO="[object z]"===String(lO),cO=HF("toStringTag"),hO=LD.Object,fO="Arguments"==JD(function(){return arguments}()),pO=uO?JD:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=hO(t),cO))?n:fO?JD(e):"Object"==(r=JD(e))&&aF(e.callee)?"Arguments":r},dO=function(){},gO=[],vO=uF("Reflect","construct"),mO=/^\s*(?:class|function)\b/,yO=YD(mO.exec),bO=!mO.exec(dO),xO=function(t){if(!aF(t))return!1;try{return vO(dO,gO,t),!0}catch(t){return!1}},wO=!vO||RD((function(){var t;return xO(xO.call)||!xO(Object)||!xO((function(){t=!0}))||t}))?function(t){if(!aF(t))return!1;switch(pO(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bO||!!yO(mO,hM(t))}:xO,CO=HF("species"),SO=LD.Array,AO=function(t,e){return new(function(t){var e;return sO(t)&&(e=t.constructor,(wO(e)&&(e===SO||sO(e.prototype))||sF(e)&&null===(e=e[CO]))&&(e=void 0)),void 0===e?SO:e}(t))(0===e?0:e)},EO=YD([].push),kO=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=7==t,s=5==t||o;return function(l,u,c,h){for(var f,p,d=BF(l),g=nF(d),v=function(t,e){return AF(t),void 0===e?t:aO?aO(t,e):function(){return t.apply(e,arguments)}}(u,c),m=NM(g),y=0,b=h||AO,x=e?b(l,m):n||a?b(l,0):void 0;m>y;y++)if((s||y in g)&&(p=v(f=g[y],y,d),t))if(e)x[y]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return y;case 2:EO(x,f)}else switch(t){case 4:return!1;case 7:EO(x,f)}return o?-1:r||i?i:x}},DO={forEach:kO(0),map:kO(1),filter:kO(2),some:kO(3),every:kO(4),find:kO(5),findIndex:kO(6),filterReject:kO(7)},FO=HF("species"),MO=function(t){return vF>=51||!RD((function(){var e=[];return(e.constructor={})[FO]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},OO=DO.filter;oO({target:"Array",proto:!0,forced:!MO("filter")},{filter:function(t){return OO(this,t,arguments.length>1?arguments[1]:void 0)}});var TO=uO?{}.toString:function(){return"[object "+pO(this)+"]"};uO||MM(Object.prototype,"toString",TO,{unsafe:!0});var BO,_O=LD.String,IO=function(t){if("Symbol"===pO(t))throw TypeError("Cannot convert a Symbol value to a string");return _O(t)},PO=function(){var t=nM(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},LO=LD.RegExp,RO=RD((function(){var t=LO("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),NO=RO||RD((function(){return!LO("a","y").sticky})),jO={BROKEN_CARET:RO||RD((function(){var t=LO("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:NO,UNSUPPORTED_Y:RO},zO=Object.keys||function(t){return HM(t,$M)},UO=ND?Object.defineProperties:function(t,e){nM(t);for(var n,r=oF(e),i=zO(e),o=i.length,a=0;o>a;)oM.f(t,n=i[a++],r[n]);return t},VO=uF("document","documentElement"),HO=gM("IE_PROTO"),$O=function(){},GO=function(t){return"<script>"+t+"<\/script>"},WO=function(t){t.write(GO("")),t.close();var e=t.parentWindow.Object;return t=null,e},qO=function(){try{BO=new ActiveXObject("htmlfile")}catch(t){}var t,e;qO="undefined"!=typeof document?document.domain&&BO?WO(BO):((e=YF("iframe")).style.display="none",VO.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(GO("document.F=Object")),t.close(),t.F):WO(BO);for(var n=$M.length;n--;)delete qO.prototype[$M[n]];return qO()};vM[HO]=!0;var XO,ZO,YO=Object.create||function(t,e){var n;return null!==t?($O.prototype=nM(t),n=new $O,$O.prototype=null,n[HO]=t):n=qO(),void 0===e?n:UO(n,e)},QO=LD.RegExp,KO=RD((function(){var t=QO(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),JO=LD.RegExp,tT=RD((function(){var t=JO("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),eT=AM.get,nT=OF("native-string-replace",String.prototype.replace),rT=RegExp.prototype.exec,iT=rT,oT=YD("".charAt),aT=YD("".indexOf),sT=YD("".replace),lT=YD("".slice),uT=(ZO=/b*/g,zD(rT,XO=/a/,"a"),zD(rT,ZO,"a"),0!==XO.lastIndex||0!==ZO.lastIndex),cT=jO.BROKEN_CARET,hT=void 0!==/()??/.exec("")[1];(uT||hT||cT||KO||tT)&&(iT=function(t){var e,n,r,i,o,a,s,l=this,u=eT(l),c=IO(t),h=u.raw;if(h)return h.lastIndex=l.lastIndex,e=zD(iT,h,c),l.lastIndex=h.lastIndex,e;var f=u.groups,p=cT&&l.sticky,d=zD(PO,l),g=l.source,v=0,m=c;if(p&&(d=sT(d,"y",""),-1===aT(d,"g")&&(d+="g"),m=lT(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==oT(c,l.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",d)),hT&&(n=new RegExp("^"+g+"$(?!\\s)",d)),uT&&(r=l.lastIndex),i=zD(rT,p?n:l,m),p?i?(i.input=lT(i.input,v),i[0]=lT(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:uT&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),hT&&i&&i.length>1&&zD(nT,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&f)for(i.groups=a=YO(null),o=0;o<f.length;o++)a[(s=f[o])[0]]=i[s[1]];return i});var fT=iT;oO({target:"RegExp",proto:!0,forced:/./.exec!==fT},{exec:fT});var pT=Function.prototype,dT=pT.apply,gT=pT.bind,vT=pT.call,mT="object"==typeof Reflect&&Reflect.apply||(gT?vT.bind(dT):function(){return vT.apply(dT,arguments)}),yT=HF("species"),bT=RegExp.prototype,xT=function(t,e,n,r){var i=HF(t),o=!RD((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=o&&!RD((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[yT]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!o||!a||n){var s=YD(/./[i]),l=e(i,""[t],(function(t,e,n,r,i){var a=YD(t),l=e.exec;return l===fT||l===bT.exec?o&&!i?{done:!0,value:s(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));MM(String.prototype,t,l[0]),MM(bT,i,l[1])}r&&aM(bT[i],"sham",!0)},wT=YD("".charAt),CT=YD("".charCodeAt),ST=YD("".slice),AT=function(t){return function(e,n){var r,i,o=IO(iF(e)),a=BM(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=CT(o,a))<55296||r>56319||a+1===s||(i=CT(o,a+1))<56320||i>57343?t?wT(o,a):r:t?ST(o,a,a+2):i-56320+(r-55296<<10)+65536}},ET={codeAt:AT(!1),charAt:AT(!0)}.charAt,kT=function(t,e,n){return e+(n?ET(t,e).length:1)},DT=Math.floor,FT=YD("".charAt),MT=YD("".replace),OT=YD("".slice),TT=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,BT=/\$([$&'`]|\d{1,2})/g,_T=function(t,e,n,r,i,o){var a=n+t.length,s=r.length,l=BT;return void 0!==i&&(i=BF(i),l=TT),MT(o,l,(function(o,l){var u;switch(FT(l,0)){case"$":return"$";case"&":return t;case"`":return OT(e,0,n);case"'":return OT(e,a);case"<":u=i[OT(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>s){var h=DT(c/10);return 0===h?o:h<=s?void 0===r[h-1]?FT(l,1):r[h-1]+FT(l,1):o}u=r[c-1]}return void 0===u?"":u}))},IT=LD.TypeError,PT=function(t,e){var n=t.exec;if(aF(n)){var r=zD(n,t,e);return null!==r&&nM(r),r}if("RegExp"===JD(t))return zD(fT,t,e);throw IT("RegExp#exec called on incompatible receiver")},LT=HF("replace"),RT=Math.max,NT=Math.min,jT=YD([].concat),zT=YD([].push),UT=YD("".indexOf),VT=YD("".slice),HT="$0"==="a".replace(/./,"$0"),$T=!!/./[LT]&&""===/./[LT]("a","$0");xT("replace",(function(t,e,n){var r=$T?"$":"$0";return[function(t,n){var r=iF(this),i=null==t?void 0:EF(t,LT);return i?zD(i,t,r,n):zD(e,IO(r),t,n)},function(t,i){var o=nM(this),a=IO(t);if("string"==typeof i&&-1===UT(i,r)&&-1===UT(i,"$<")){var s=n(e,o,a,i);if(s.done)return s.value}var l=aF(i);l||(i=IO(i));var u=o.global;if(u){var c=o.unicode;o.lastIndex=0}for(var h=[];;){var f=PT(o,a);if(null===f)break;if(zT(h,f),!u)break;""===IO(f[0])&&(o.lastIndex=kT(a,RM(o.lastIndex),c))}for(var p,d="",g=0,v=0;v<h.length;v++){for(var m=IO((f=h[v])[0]),y=RT(NT(BM(f.index),a.length),0),b=[],x=1;x<f.length;x++)zT(b,void 0===(p=f[x])?p:String(p));var w=f.groups;if(l){var C=jT([m],b,y,a);void 0!==w&&zT(C,w);var S=IO(mT(i,void 0,C))}else S=_T(m,a,y,b,w,i);y>=g&&(d+=VT(a,g,y)+S,g=y+m.length)}return d+VT(a,g)}]}),!!RD((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!HT||$T);var GT=HF("unscopables"),WT=Array.prototype;null==WT[GT]&&oM.f(WT,GT,{configurable:!0,value:YO(null)});var qT=function(t){WT[GT][t]=!0},XT=DO.find,ZT=!0;"find"in[]&&Array(1).find((function(){ZT=!1})),oO({target:"Array",proto:!0,forced:ZT},{find:function(t){return XT(this,t,arguments.length>1?arguments[1]:void 0)}}),qT("find");var YT=HF("match"),QT=function(t){var e;return sF(t)&&(void 0!==(e=t[YT])?!!e:"RegExp"==JD(t))},KT=LD.TypeError,JT=HF("species"),tB=function(t,e){var n,r=nM(t).constructor;return void 0===r||null==(n=nM(r)[JT])?e:function(t){if(wO(t))return t;throw KT(CF(t)+" is not a constructor")}(n)},eB=function(t,e,n){var r=qF(e);r in t?oM.f(t,r,GD(0,n)):t[r]=n},nB=LD.Array,rB=Math.max,iB=function(t,e,n){for(var r=NM(t),i=PM(e,r),o=PM(void 0===n?r:n,r),a=nB(rB(o-i,0)),s=0;i<o;i++,s++)eB(a,s,t[i]);return a.length=s,a},oB=jO.UNSUPPORTED_Y,aB=Math.min,sB=[].push,lB=YD(/./.exec),uB=YD(sB),cB=YD("".slice);xT("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=IO(iF(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!QT(t))return zD(e,r,t,i);for(var o,a,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,h=new RegExp(t.source,u+"g");(o=zD(fT,h,r))&&!((a=h.lastIndex)>c&&(uB(l,cB(r,c,o.index)),o.length>1&&o.index<r.length&&mT(sB,l,iB(o,1)),s=o[0].length,c=a,l.length>=i));)h.lastIndex===o.index&&h.lastIndex++;return c===r.length?!s&&lB(h,"")||uB(l,""):uB(l,cB(r,c)),l.length>i?iB(l,0,i):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:zD(e,this,t,n)}:e,[function(e,n){var i=iF(this),o=null==e?void 0:EF(e,t);return o?zD(o,e,i,n):zD(r,IO(i),e,n)},function(t,i){var o=nM(this),a=IO(t),s=n(r,o,a,i,r!==e);if(s.done)return s.value;var l=tB(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(oB?"g":"y"),h=new l(oB?"^(?:"+o.source+")":o,c),f=void 0===i?4294967295:i>>>0;if(0===f)return[];if(0===a.length)return null===PT(h,a)?[a]:[];for(var p=0,d=0,g=[];d<a.length;){h.lastIndex=oB?0:d;var v,m=PT(h,oB?cB(a,d):a);if(null===m||(v=aB(RM(h.lastIndex+(oB?d:0)),a.length))===p)d=kT(a,d,u);else{if(uB(g,cB(a,p,d)),g.length===f)return g;for(var y=1;y<=m.length-1;y++)if(uB(g,m[y]),g.length===f)return g;d=p=v}}return uB(g,cB(a,p)),g}]}),!!RD((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),oB);var hB,fB="\t\n\v\f\r \u2028\u2029\ufeff",pB=YD("".replace),dB="["+fB+"]",gB=RegExp("^"+dB+dB+"*"),vB=RegExp(dB+dB+"*$"),mB=function(t){return function(e){var n=IO(iF(e));return 1&t&&(n=pB(n,gB,"")),2&t&&(n=pB(n,vB,"")),n}},yB={start:mB(1),end:mB(2),trim:mB(3)},bB=FM.PROPER,xB=yB.trim;function wB(t){return 0===eo("<div>"+t+"</div>").children().filter((function(t){return"BR"!==t.tagName})).length}function CB(t){return 0===t.length?"":t[0].outerHTML}function SB(t){return t.length?t[0].tagName.toLowerCase():""}function AB(t,e){for(var n="",r=(t.attr("style")||"").split(";"),i=r.length,o=0;o<i;o++){var a=r[o];if(a){var s=a.split(":");s[0].trim()===e&&(n=s[1].trim())}}return n}oO({target:"String",proto:!0,forced:(hB="trim",RD((function(){return!!fB[hB]()||"
"!=="
"[hB]()||bB&&fB[hB].name!==hB})))},{trim:function(){return xB(this)}}),oO({global:!0},{globalThis:LD}),mo&&(eo.fn.css=mo),So&&(eo.fn.append=So),Ao&&(eo.fn.prepend=Ao),no&&(eo.fn.addClass=no),ro&&(eo.fn.removeClass=ro),io&&(eo.fn.hasClass=io),uo&&(eo.fn.on=uo),co&&(eo.fn.off=co),Io&&(eo.fn.focus=Io),oo&&(eo.fn.attr=oo),ao&&(eo.fn.removeAttr=ao),go&&(eo.fn.hide=go),vo&&(eo.fn.show=vo),ko&&(eo.fn.parents=ko),so&&(eo.fn.dataset=so),lo&&(eo.fn.val=lo),wo&&(eo.fn.text=wo),xo&&(eo.fn.html=xo),Fo&&(eo.fn.children=Fo),Mo&&(eo.fn.remove=Mo),Do&&(eo.fn.find=Do),ho&&(eo.fn.width=ho),fo&&(eo.fn.height=fo),bo&&(eo.fn.filter=bo),Oo&&(eo.fn.empty=Oo);var EB={selector:"p",parseElemHtml:function(t,e,n){var r=eo(t);return 0===(e=e.filter((function(t){return!!En.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},kB=function(t,e){return kB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},kB(t,e)
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function DB(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}kB(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var FB=function(){return FB=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},FB.apply(this,arguments)};function MB(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}function OB(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function TB(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function BB(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function _B(t){var e=BB(Je.nodes(t,{match:function(e){return t.children[0]===e},mode:"highest"}),1),n=e[0];if(null==n)return!1;var r=n[0];if(!qe.isElement(r))return!1;if("paragraph"===r.type)return!1;if(""!==on.string(r))return!1;var i=r.children,o=void 0===i?[]:i;return!!En.isText(o[0])&&($n.setNodes(t,{type:"paragraph"}),!0)}var IB={renderElems:[FD],elemsToHtml:[MD],parseElemsHtml:[EB],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(t){_B(r)||e(t)},r.deleteForward=function(t){_B(r)||n(t)},r}},PB=/"/g,LB=YD("".replace),RB=function(t,e,n,r){var i=IO(iF(t)),o="<"+e;return""!==n&&(o+=" "+n+'="'+LB(IO(r),PB,""")+'"'),o+">"+i+"</"+e+">"},NB=function(t){return RD((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))};function jB(t,e){var n=e,r=t,i=r.bold,o=r.italic,a=r.underline;return i&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),o&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function zB(t,e){return 0!==t.length&&(!!t[0].matches(e)||t.find(e).length>0)}oO({target:"String",proto:!0,forced:NB("bold")},{bold:function(){return RB(this,"b","","")}}),oO({target:"String",proto:!0,forced:NB("italics")},{italics:function(){return RB(this,"i","","")}}),oO({target:"String",proto:!0,forced:NB("sub")},{sub:function(){return RB(this,"sub","","")}}),oO({target:"String",proto:!0,forced:NB("sup")},{sup:function(){return RB(this,"sup","","")}});var UB={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},VB=YF("span").classList,HB=VB&&VB.constructor&&VB.constructor.prototype,$B=HB===Object.prototype?void 0:HB,GB=function(t,e){var n=[][t];return!!n&&RD((function(){n.call(null,e||function(){throw 1},1)}))},WB=DO.forEach,qB=GB("forEach")?[].forEach:function(t){return WB(this,t,arguments.length>1?arguments[1]:void 0)},XB=function(t){if(t&&t.forEach!==qB)try{aM(t,"forEach",qB)}catch(act){t.forEach=qB}};for(var ZB in UB)UB[ZB]&&XB(LD[ZB]&&LD[ZB].prototype);function YB(t,e){return null==t.selection||!!BB(Je.nodes(t,{match:function(e){return"pre"===Dw.getNodeType(e)||!!Je.isVoid(t,e)},universal:!0}),1)[0]}function QB(t,e){Object.keys(e).forEach((function(e){"text"!==e&&Je.removeMark(t,e)}))}XB($B),oO({target:"Object",stat:!0,forced:RD((function(){zO(1)}))},{keys:function(t){return zO(BF(t))}});var KB=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(t){var e=this.mark,n=Je.marks(t);return n?n[e]:!!BB(Je.nodes(t,{match:function(t){return!0===t[e]}}),1)[0]},t.prototype.isActive=function(t){return!!this.getValue(t)},t.prototype.isDisabled=function(t){return YB(t,this.mark)},t.prototype.exec=function(t,e){var n=this.mark,r=this.marksNeedToRemove;e?t.removeMark(n):(t.addMark(n,!0),r&&r.forEach((function(e){return t.removeMark(e)})))},t}(),JB='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',t_='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',e_='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',n_='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',r_='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',i_='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',o_='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',a_='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',s_='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',l_='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',u_='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',c_='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',h_='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',f_='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',p_='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',d_='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',g_='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',v_='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',m_='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',y_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.mark="bold",e.title=ED("textStyle.bold"),e.iconSvg=JB,e.hotkey="mod+b",e}return DB(e,t),e}(KB),b_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.mark="code",e.title=ED("textStyle.code"),e.iconSvg=r_,e.hotkey="mod+e",e}return DB(e,t),e}(KB),x_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.mark="italic",e.title=ED("textStyle.italic"),e.iconSvg=e_,e.hotkey="mod+i",e}return DB(e,t),e}(KB),w_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.mark="through",e.title=ED("textStyle.through"),e.iconSvg=n_,e.hotkey="mod+shift+x",e}return DB(e,t),e}(KB),C_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.mark="underline",e.title=ED("textStyle.underline"),e.iconSvg=t_,e.hotkey="mod+u",e}return DB(e,t),e}(KB),S_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.mark="sub",e.marksNeedToRemove=["sup"],e.title=ED("textStyle.sub"),e.iconSvg=m_,e.hotkey="",e}return DB(e,t),e}(KB),A_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.mark="sup",e.marksNeedToRemove=["sub"],e.title=ED("textStyle.sup"),e.iconSvg=v_,e.hotkey="",e}return DB(e,t),e}(KB),E_=function(){function t(){this.title=ED("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return YB(t)},t.prototype.exec=function(t,e){var n,r,i=Je.nodes(t,{match:function(t){return En.isText(t)},universal:!0});try{for(var o=TB(i),a=o.next();!a.done;a=o.next())QB(t,a.value[0])}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},t}(),k_={renderStyle:function(t,e){var n=t,r=n.bold,i=n.italic,o=n.underline,a=n.code,s=n.through,l=n.sub,u=n.sup,c=e;return r&&(c=Ls("strong",null,c)),a&&(c=Ls("code",null,c)),i&&(c=Ls("em",null,c)),o&&(c=Ls("u",null,c)),s&&(c=Ls("s",null,c)),l&&(c=Ls("sub",null,c)),u&&(c=Ls("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new y_}},{key:"underline",factory:function(){return new C_}},{key:"italic",factory:function(){return new x_}},{key:"through",factory:function(){return new w_}},{key:"code",factory:function(){return new b_}},{key:"sub",factory:function(){return new S_}},{key:"sup",factory:function(){return new A_}},{key:"clearStyle",factory:function(){return new E_}}],styleToHtml:function(t,e){if(!En.isText(t))return e;if(wB(e))return jB(t,e);var n=eo(e);if("br"===SB(n))return jB(t,"<br>");var r=n.html();return r=jB(t,r),n.html(r),CB(n)},parseStyleHtml:function(t,e,n){var r=eo(t);if(!En.isText(e))return e;var i=e;return zB(r,"b,strong")&&(i.bold=!0),zB(r,"i,em")&&(i.italic=!0),zB(r,"u")&&(i.underline=!0),zB(r,"s,strike")&&(i.through=!0),zB(r,"sub")&&(i.sub=!0),zB(r,"sup")&&(i.sup=!0),zB(r,"code")&&(i.code=!0),i}};function D_(t){return function(e,n,r){return Ls("h"+t,null,n)}}var F_={type:"header1",renderElem:D_(1)},M_={type:"header2",renderElem:D_(2)},O_={type:"header3",renderElem:D_(3)},T_={type:"header4",renderElem:D_(4)},B_={type:"header5",renderElem:D_(5)},__=FM.PROPER,I_=RegExp.prototype,P_=I_.toString,L_=YD(PO),R_=RD((function(){return"/a/b"!=P_.call({source:"a",flags:"b"})})),N_=__&&"toString"!=P_.name;(R_||N_)&&MM(RegExp.prototype,"toString",(function(){var t=nM(this),e=IO(t.source),n=t.flags;return"/"+e+"/"+IO(void 0===n&&cF(I_,t)&&!("flags"in I_)?L_(t):n)}),{unsafe:!0});var j_,z_=LD.TypeError,U_=function(t){if(QT(t))throw z_("The method doesn't accept regular expressions");return t},V_=HF("match"),H_=function(t){var e=/./;try{"/./"[t](e)}catch(it){try{return e[V_]=!1,"/./"[t](e)}catch(t){}}return!1},$_=JF.f,G_=YD("".startsWith),W_=YD("".slice),q_=Math.min,X_=H_("startsWith");function Z_(t){var e=BB(Je.nodes(t,{match:function(t){return Dw.getNodeType(t).startsWith("header")},universal:!0}),1),n=e[0];if(null==n)return"paragraph";var r=BB(n,1)[0];return Dw.getNodeType(r)}function Y_(t){return null==t.selection||!BB(Je.nodes(t,{match:function(t){var e=Dw.getNodeType(t);return"paragraph"===e||!!e.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function Q_(t,e){e&&$n.setNodes(t,{type:e})}oO({target:"String",proto:!0,forced:!(!X_&&(j_=$_(String.prototype,"startsWith"),j_&&!j_.writable))&&!X_},{startsWith:function(t){var e=IO(iF(this));U_(t);var n=RM(q_(arguments.length>1?arguments[1]:void 0,e.length)),r=IO(t);return G_?G_(e,r,n):W_(e,n,n+r.length)===r}});var K_=function(){function t(){this.title=ED("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return t.prototype.getOptions=function(t){var e=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:ED("header.text")}],n=this.getValue(t).toString();return e.forEach((function(t){t.value===n?t.selected=!0:delete t.selected})),e},t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){return Z_(t)},t.prototype.isDisabled=function(t){return Y_(t)},t.prototype.exec=function(t,e){Q_(t,e.toString())},t}(),J_=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return Z_(t)},t.prototype.isActive=function(t){return this.getValue(t)===this.type},t.prototype.isDisabled=function(t){return Y_(t)},t.prototype.exec=function(t,e){var n=this.type;Q_(t,e===n?"paragraph":n)},t}(),tI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H1",e.type="header1",e}return DB(e,t),e}(J_),eI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H2",e.type="header2",e}return DB(e,t),e}(J_),nI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H3",e.type="header3",e}return DB(e,t),e}(J_),rI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H4",e.type="header4",e}return DB(e,t),e}(J_),iI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H5",e.type="header5",e}return DB(e,t),e}(J_),oI={key:"headerSelect",factory:function(){return new K_}},aI={key:"header1",factory:function(){return new tI}},sI={key:"header2",factory:function(){return new eI}},lI={key:"header3",factory:function(){return new nI}},uI={key:"header4",factory:function(){return new rI}},cI={key:"header5",factory:function(){return new iI}};function hI(t){return function(e,n){return"<h"+t+">"+n+"</h"+t+">"}}function fI(t){return function(e,n,r){var i=eo(e);return 0===(n=n.filter((function(t){return!!En.isText(t)||!!r.isInline(t)}))).length&&(n=[{text:i.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var pI={renderElems:[F_,M_,O_,T_,B_],elemsToHtml:[{type:"header1",elemToHtml:hI(1)},{type:"header2",elemToHtml:hI(2)},{type:"header3",elemToHtml:hI(3)},{type:"header4",elemToHtml:hI(4)},{type:"header5",elemToHtml:hI(5)}],parseElemsHtml:[{selector:"h1",parseElemHtml:fI(1)},{selector:"h2",parseElemHtml:fI(2)},{selector:"h3",parseElemHtml:fI(3)},{selector:"h4",parseElemHtml:fI(4)},{selector:"h5",parseElemHtml:fI(5)}],menus:[oI,aI,sI,lI,uI,cI],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var n=t;return n.insertBreak=function(){var r=BB(Je.nodes(n,{match:function(t){return Dw.getNodeType(t).startsWith("header")},universal:!0}),1)[0];r&&Dw.isSelectionAtLineEnd(t,r[1])?$n.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},n}},dI=Object.assign,gI=Object.defineProperty,vI=YD([].concat),mI=!dI||RD((function(){if(ND&&1!==dI({b:1},dI(gI({},"a",{enumerable:!0,get:function(){gI(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=dI({},t)[n]||zO(dI({},e)).join("")!=r}))?function(t,e){for(var n=BF(t),r=arguments.length,i=1,o=qM.f,a=$D.f;r>i;)for(var s,l=nF(arguments[i++]),u=o?vI(zO(l),o(l)):zO(l),c=u.length,h=0;c>h;)s=u[h++],ND&&!zD(a,l,s)||(n[s]=l[s]);return n}:dI;function yI(t,e){null==t.data&&(t.data={});var n=t.data;null==n.style&&(n.style={}),Object.assign(n.style,e)}oO({target:"Object",stat:!0,forced:Object.assign!==mI},{assign:mI});var bI={selector:"font",preParseHtml:function(t){var e=eo(t);if("font"!==SB(e))return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},xI=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(t,e){},t.prototype.getValue=function(t){var e=this.mark,n=Je.marks(t);return n&&n[e]?n[e]:""},t.prototype.isActive=function(t){return!!this.getValue(t)},t.prototype.isDisabled=function(t){return null==t.selection||!!BB(Je.nodes(t,{match:function(e){return"pre"===Dw.getNodeType(e)||!!Je.isVoid(t,e)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(t){var e=this.mark;if(null==this.$content){var n=eo('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=t.selection)){var i=eo(r).attr("data-value");"0"===i?Je.removeMark(t,e):Je.addMark(t,e,i)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var i=this.getValue(t),o=t.getMenuConfig(e).colors;(void 0===o?[]:o).forEach((function(t){var e=eo('<div class="color-block" data-value="'+t+'"></div>');e.css("background-color",t);var n=eo('<li data-value="'+t+'"></li>');i===t&&n.addClass("active"),n.append(e),r.append(n)}));var a="";"color"===e&&(a=ED("color.default")),"bgColor"===e&&(a=ED("color.clear"));var s=eo('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return r.prepend(s),r[0]},t}(),wI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title=ED("color.color"),e.iconSvg=a_,e.mark="color",e}return DB(e,t),e}(xI),CI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title=ED("color.bgColor"),e.iconSvg=s_,e.mark="bgColor",e}return DB(e,t),e}(xI),SI=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],AI={renderStyle:function(t,e){var n=t,r=n.color,i=n.bgColor,o=e;return r&&yI(o,{color:r}),i&&yI(o,{backgroundColor:i}),o},styleToHtml:function(t,e){if(!En.isText(t))return e;var n,r=t,i=r.color,o=r.bgColor;return i||o?((wB(e)||"span"!==SB(n=eo(e)))&&(n=eo("<span>"+e+"</span>")),i&&n.css("color",i),o&&n.css("background-color",o),CB(n)):e},preParseHtml:[bI],parseStyleHtml:function(t,e,n){var r=eo(t);if(!En.isText(e))return e;var i=e,o=AB(r,"color");o&&(i.color=o);var a=AB(r,"background-color");return a&&(i.bgColor=a),i},menus:[{key:"color",factory:function(){return new wI},config:{colors:SI}},{key:"bgColor",factory:function(){return new CI},config:{colors:SI}}]},EI=function(t){if("string"!=typeof t)return!1;var e=t.match(kI);if(!e)return!1;var n=e[1];return!!n&&!(!DI.test(n)&&!FI.test(n))},kI=/^(?:\w+:)?\/\/(\S+)$/,DI=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,FI=/^[^\s\.]+\.\S{2,}$/,MI=zM.includes;function OI(t){return void 0===t&&(t="r"),t+"-"+ga()}function TI(t){return t.replace(/</g,"<").replace(/>/g,">")}function BI(t,e,n,r){return MB(this,void 0,void 0,(function(){var i,o;return OB(this,(function(a){switch(a.label){case 0:return(i=e.getMenuConfig(t).checkLink)?[4,i(n,r)]:[3,2];case 1:if("string"==typeof(o=a.sent()))return e.alert(o,"error"),[2,!1];if(null==o)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function _I(t,e,n){return MB(this,void 0,void 0,(function(){var r;return OB(this,(function(i){switch(i.label){case 0:return(r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}}))}))}function II(t){return null==t.selection||!!Dw.getSelectedElems(t).some((function(e){var n=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(n)||void 0}))}function PI(t,e){return{type:"link",url:TI(t),children:e?[{text:e}]:[]}}function LI(t,e,n){return MB(this,void 0,void 0,(function(){var r,i,o;return OB(this,(function(a){switch(a.label){case 0:return n?(e||(e=n),t.restoreSelection(),II(t)?[2]:[4,BI("insertLink",t,e,n)]):[2];case 1:return a.sent()?[4,_I("insertLink",t,n)]:[2];case 2:return r=a.sent(),null==(i=t.selection)||(yn.isCollapsed(i)?(t.insertText(" "),o=PI(r,e),$n.insertNodes(t,o),t.insertFragment([{text:" "}])):Je.string(t,i)!==e?(t.deleteFragment(),o=PI(r,e),$n.insertNodes(t,o)):(o=PI(r),$n.wrapNodes(t,o,{split:!0}),$n.collapse(t,{edge:"end"}))),[2]}}))}))}oO({target:"Array",proto:!0},{includes:function(t){return MI(this,t,arguments.length>1?arguments[1]:void 0)}}),qT("includes");var RI={type:"link",renderElem:function(t,e,n){var r=t,i=r.url,o=r.target;return Ls("a",{href:i,target:void 0===o?"_blank":o},e)}},NI={type:"link",elemToHtml:function(t,e){var n=t,r=n.url,i=n.target;return'<a href="'+r+'" target="'+(void 0===i?"_blank":i)+'">'+e+"</a>"}},jI={selector:"a",parseElemHtml:function(t,e,n){var r=eo(t);return 0===(e=e.filter((function(t){return!!En.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:e}}};function zI(){return OI("w-e-insert-link")}var UI=function(){function t(){this.title=ED("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=zI(),this.urlInputId=zI(),this.buttonId=zI()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return II(t)},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=t.selection,n=this,r=n.textInputId,i=n.urlInputId,o=n.buttonId,a=BB(ak(ED("link.text"),r),2),s=a[0],l=a[1],u=eo(l),c=BB(ak(ED("link.url"),i),2),h=c[0],f=c[1],p=eo(f),d=BB(sk(o,ED("common.ok")),1)[0];if(null==this.$content){var g=eo("<div></div>");g.on("click","#"+o,(function(e){e.preventDefault();var n=g.find("#"+r).val(),o=g.find("#"+i).val();LI(t,n,o),t.hidePanelOrModal()})),this.$content=g}var v=this.$content;if(v.empty(),v.append(s),v.append(h),v.append(d),null==e||yn.isCollapsed(e))u.val("");else{var m=Je.string(t,e);u.val(m)}return p.val(""),setTimeout((function(){u.focus()})),v[0]},t}();function VI(){return OI("w-e-update-link")}var HI=function(){function t(){this.title=ED("link.edit"),this.iconSvg=i_,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=VI(),this.buttonId=VI()}return t.prototype.getSelectedLinkElem=function(t){var e=Dw.getSelectedNodeByType(t,"link");return null==e?null:e},t.prototype.getValue=function(t){var e=this.getSelectedLinkElem(t);return e&&e.url||""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.getModalPositionNode=function(t){return Dw.getSelectedNodeByType(t,"link")},t.prototype.getModalContentElem=function(t){var e=this.urlInputId,n=this.buttonId,r=BB(ak(ED("link.url"),e),2),i=r[0],o=r[1],a=eo(o),s=BB(sk(n,ED("common.ok")),1)[0];if(null==this.$content){var l=eo("<div></div>");l.on("click","button",(function(n){n.preventDefault(),t.restoreSelection();var r=Dw.getSelectedNodeByType(t,"link"),i=r?on.string(r):"",o=l.find("#"+e).val();!function(t,e,n){MB(this,void 0,void 0,(function(){var r,i;return OB(this,(function(o){switch(o.label){case 0:return n?[4,BI("editLink",t,e,n)]:[2];case 1:return o.sent()?[4,_I("editLink",t,n)]:[2];case 2:return r=o.sent(),i={url:TI(r)},$n.setNodes(t,i,{match:function(t){return Dw.checkNodeType(t,"link")}}),[2]}}))}))}(t,i,o),t.hidePanelOrModal()})),this.$content=l}var u=this.$content;u.empty(),u.append(i),u.append(s);var c=this.getValue(t);return a.val(c),setTimeout((function(){a.focus()})),u[0]},t}(),$I=function(){function t(){this.title=ED("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==Dw.getSelectedNodeByType(t,"link")},t.prototype.exec=function(t,e){this.isDisabled(t)||$n.unwrapNodes(t,{match:function(t){return Dw.checkNodeType(t,"link")}})},t}(),GI=function(){function t(){this.title=ED("link.view"),this.iconSvg=o_,this.tag="button"}return t.prototype.getSelectedLinkElem=function(t){var e=Dw.getSelectedNodeByType(t,"link");return null==e?null:e},t.prototype.getValue=function(t){var e=this.getSelectedLinkElem(t);return e&&e.url||""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){if(!e||"string"!=typeof e)throw new Error("View link failed, link url is '"+e+"'");window.open(e,"_blank")}},t}(),WI={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},qI={renderElems:[RI],elemsToHtml:[NI],parseElemsHtml:[jI],menus:[{key:"insertLink",factory:function(){return new UI},config:WI},{key:"editLink",factory:function(){return new HI},config:WI},{key:"unLink",factory:function(){return new $I}},{key:"viewLink",factory:function(){return new GI}}],editorPlugin:function(t){var e=t.isInline,n=t.insertData,r=t.normalizeNode;t.insertNode,t.insertText;var i=t;return i.isInline=function(t){return"link"===t.type||e(t)},i.insertData=function(t){var e=t.getData("text/plain");if(EI(e)){if(!II(i)){var r=i.selection;if(null!=r){var o=Je.string(i,r);LI(i,o,e)}}}else n(t)},i.normalizeNode=function(t){var e=BB(t,2),n=e[0],o=e[1];return"link"!==Dw.getNodeType(n)?r([n,o]):""===on.string(n)?$n.removeNodes(i,{at:o}):r([n,o])},i}},XI=YD(1..valueOf),ZI=LD.RangeError,YI=LD.RangeError,QI=LD.String,KI=Math.floor,JI=YD((function(t){var e=IO(iF(this)),n="",r=BM(t);if(r<0||r==1/0)throw ZI("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),tP=YD("".slice),eP=YD(1..toFixed),nP=function(t,e,n){return 0===e?n:e%2==1?nP(t,e-1,n*t):nP(t*t,e/2,n)},rP=function(t,e,n){for(var r=-1,i=n;++r<6;)i+=e*t[r],t[r]=i%1e7,i=KI(i/1e7)},iP=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=KI(r/e),r=r%e*1e7},oP=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=QI(t[e]);n=""===n?r:n+JI("0",7-r.length)+r}return n};function aP(t,e){return"w-e-image-container-"+Dw.findKey(t,e).id}function sP(t,e,n,r){var i=eo("body"),o=aP(t,e),a=r.width,s=r.height,l=0,u=0,c=0,h=!1,f=null;function p(e){f=function(){var t=eo("#"+o);if(0===t.length)throw new Error("Cannot find image container elem");return t}(),l=e;var n=f.find("img");if(0===n.length)throw new Error("Cannot find image elem");u=n.width(),c=n.height(),i.on("mousemove",d),i.on("mouseup",g);var r=Dw.getHoverbar(t);r&&r.hideAndClean()}var d=Na((function(t){t.preventDefault();var e=t.clientX,n=u+(h?l-e:e-l),r=c*(n/u);null!=f&&(n<=15||r<=15||(f.css("width",n+"px"),f.css("height",r+"px")))}),100);function g(n){if(i.off("mousemove",d),null!=f){var r=f.width().toFixed(2),o=f.height().toFixed(2),a={style:FB(FB({},e.style),{width:r+"px",height:o+"px"})};$n.setNodes(t,a,{at:Dw.findPath(t,e)}),i.off("mouseup",g)}}var v={};return a&&(v.width=a),s&&(v.height=s),Ls("div",{id:o,style:v,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var e=eo(t.target);e.hasClass("w-e-image-dragger")&&(t.preventDefault(),(e.hasClass("left-top")||e.hasClass("left-bottom"))&&(h=!0),p(t.clientX))}}},n,Ls("div",{className:"w-e-image-dragger left-top"}),Ls("div",{className:"w-e-image-dragger right-top"}),Ls("div",{className:"w-e-image-dragger left-bottom"}),Ls("div",{className:"w-e-image-dragger right-bottom"}))}oO({target:"Number",proto:!0,forced:RD((function(){return"0.000"!==eP(8e-5,3)||"1"!==eP(.9,0)||"1.25"!==eP(1.255,2)||"1000000000000000128"!==eP(0xde0b6b3a7640080,0)}))||!RD((function(){eP({})}))},{toFixed:function(t){var e,n,r,i,o=XI(this),a=BM(t),s=[0,0,0,0,0,0],l="",u="0";if(a<0||a>20)throw YI("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return QI(o);if(o<0&&(l="-",o=-o),o>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(o*nP(2,69,1))-69)<0?o*nP(2,-e,1):o/nP(2,e,1),n*=4503599627370496,(e=52-e)>0){for(rP(s,0,n),r=a;r>=7;)rP(s,1e7,0),r-=7;for(rP(s,nP(10,r,1),0),r=e-1;r>=23;)iP(s,1<<23),r-=23;iP(s,1<<r),rP(s,1,1),iP(s,2),u=oP(s)}else rP(s,0,n),rP(s,1<<-e,0),u=oP(s)+JI("0",a);return a>0?l+((i=u.length)<=a?"0."+JI("0",a-i)+u:tP(u,0,i-a)+"."+tP(u,i-a)):l+u}});var lP={type:"image",renderElem:function(t,e,n){var r=t,i=r.src,o=r.alt,a=void 0===o?"":o,s=r.href,l=void 0===s?"":s,u=r.style,c=void 0===u?{}:u,h=c.width,f=void 0===h?"":h,p=c.height,d=void 0===p?"":p,g=Dw.isNodeSelected(n,t),v={};f&&(v.width="100%"),d&&(v.height="100%");var m=Ls("img",{style:v,src:i,alt:a,"data-href":l}),y=n.isDisabled();return g&&!y?sP(n,t,m,{width:f,height:d}):function(t,e,n,r){var i=r.width,o=r.height,a={};i&&(a.width=i),o&&(a.height=o);var s=aP(t,e);return Ls("div",{id:s,style:a,className:"w-e-image-container"},n)}(n,t,m,{width:f,height:d})}},uP={type:"image",elemToHtml:function(t,e){var n=t,r=n.src,i=n.alt,o=void 0===i?"":i,a=n.href,s=void 0===a?"":a,l=n.style,u=void 0===l?{}:l,c=u.width,h=void 0===c?"":c,f=u.height,p=void 0===f?"":f,d="";return h&&(d+="width: "+h+";"),p&&(d+="height: "+p+";"),'<img src="'+r+'" alt="'+o+'" data-href="'+s+'" style="'+d+'"/>'}},cP={selector:"img",parseElemHtml:function(t,e,n){var r=eo(t),i=r.attr("data-href")||"";return i=decodeURIComponent(i),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:i,style:{width:AB(r,"width"),height:AB(r,"height")},children:[{text:""}]}}};function hP(t,e,n,r,i){return void 0===r&&(r=""),void 0===i&&(i=""),MB(this,void 0,void 0,(function(){var o,a;return OB(this,(function(s){switch(s.label){case 0:return(o=e.getMenuConfig(t).checkImage)?[4,o(n,r,i)]:[3,2];case 1:if("string"==typeof(a=s.sent()))return e.alert(a,"error"),[2,!1];if(null==a)return[2,!1];s.label=2;case 2:return[2,!0]}}))}))}function fP(t,e,n){return MB(this,void 0,void 0,(function(){var r;return OB(this,(function(i){switch(i.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}}))}))}function pP(t,e,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),MB(this,void 0,void 0,(function(){var i,o,a;return OB(this,(function(s){switch(s.label){case 0:return[4,hP("insertImage",t,e,n,r)];case 1:return s.sent()?[4,fP("insertImage",t,e)]:[2];case 2:return i=s.sent(),o={type:"image",src:TI(i),href:r,alt:n,style:{},children:[{text:""}]},null===t.selection&&t.restoreSelection(),Dw.getSelectedNodeByType(t,"image")&&t.move(1),gP(t)||($n.insertNodes(t,o),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(o)),[2]}}))}))}function dP(t,e,n,r,i){return void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i={}),MB(this,void 0,void 0,(function(){var o,a,s,l,u,c;return OB(this,(function(h){switch(h.label){case 0:return[4,hP("editImage",t,e,n,r)];case 1:return h.sent()?[4,fP("editImage",t,e)]:[2];case 2:return o=h.sent(),null==(a=Dw.getSelectedNodeByType(t,"image"))||(s=a.style,l={src:o,alt:n,href:r,style:FB(FB({},void 0===s?{}:s),i)},$n.setNodes(t,l,{match:function(t){return Dw.checkNodeType(t,"image")}}),u=Dw.getSelectedNodeByType(t,"image"),(c=t.getMenuConfig("editImage").onUpdatedImage)&&c(u)),[2]}}))}))}function gP(t){var e=t.selection;return null==e||!yn.isCollapsed(e)||!!BB(Je.nodes(t,{match:function(e){var n=Dw.getNodeType(e);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!Je.isVoid(t,e)},universal:!0}),1)[0]}function vP(){return OI("w-e-insert-image")}var mP=function(){function t(){this.title=ED("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=vP(),this.altInputId=vP(),this.hrefInputId=vP(),this.buttonId=vP()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return gP(t)},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=this,n=this,r=n.srcInputId,i=n.altInputId,o=n.hrefInputId,a=n.buttonId,s=BB(ak(ED("image.src"),r),2),l=s[0],u=s[1],c=eo(u),h=BB(ak(ED("image.desc"),i),2),f=h[0],p=h[1],d=eo(p),g=BB(ak(ED("image.link"),o),2),v=g[0],m=g[1],y=eo(m),b=BB(sk(a,ED("common.ok")),1)[0];if(null==this.$content){var x=eo("<div></div>");x.on("click","#"+a,(function(n){n.preventDefault();var a=x.find("#"+r).val().trim(),s=x.find("#"+i).val().trim(),l=x.find("#"+o).val().trim();e.insertImage(t,a,s,l),t.hidePanelOrModal()})),this.$content=x}var w=this.$content;return w.empty(),w.append(l),w.append(f),w.append(v),w.append(b),c.val(""),d.val(""),y.val(""),setTimeout((function(){c.focus()})),w[0]},t.prototype.insertImage=function(t,e,n,r){void 0===n&&(n=""),void 0===r&&(r=""),e&&(t.restoreSelection(),this.isDisabled(t)||pP(t,e,n,r))},t}(),yP=function(){function t(){this.title=ED("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==Dw.getSelectedNodeByType(t,"image")},t.prototype.exec=function(t,e){this.isDisabled(t)||$n.removeNodes(t,{match:function(t){return Dw.checkNodeType(t,"image")}})},t}();function bP(){return OI("w-e-edit-image")}var xP=function(){function t(){this.title=ED("image.edit"),this.iconSvg=i_,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=bP(),this.altInputId=bP(),this.hrefInputId=bP(),this.buttonId=bP()}return t.prototype.getValue=function(t){return""},t.prototype.getImageNode=function(t){return Dw.getSelectedNodeByType(t,"image")},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yn.isCollapsed(e)||null==Dw.getSelectedNodeByType(t,"image")},t.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},t.prototype.getModalContentElem=function(t){var e=this,n=this,r=n.srcInputId,i=n.altInputId,o=n.hrefInputId,a=n.buttonId,s=this.getImageNode(t);if(null==s)throw new Error("Not found selected image node");var l=BB(ak(ED("image.src"),r),2),u=l[0],c=l[1],h=eo(c),f=BB(ak(ED("image.desc"),i),2),p=f[0],d=f[1],g=eo(d),v=BB(ak(ED("image.link"),o),2),m=v[0],y=v[1],b=eo(y),x=BB(sk(a,ED("common.ok")),1)[0];if(null==this.$content){var w=eo("<div></div>");w.on("click","#"+a,(function(n){n.preventDefault();var a=w.find("#"+r).val(),s=w.find("#"+i).val(),l=w.find("#"+o).val();e.updateImage(t,a,s,l),t.hidePanelOrModal()})),this.$content=w}var C=this.$content;C.empty(),C.append(u),C.append(p),C.append(m),C.append(x);var S=s,A=S.src,E=S.alt,k=void 0===E?"":E,D=S.href,F=void 0===D?"":D;return h.val(A),g.val(k),b.val(F),setTimeout((function(){h.focus()})),C[0]},t.prototype.updateImage=function(t,e,n,r,i){void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i={}),e&&(t.restoreSelection(),this.isDisabled(t)||dP(t,e,n,r,i))},t}(),wP=function(){function t(){this.title=ED("image.viewLink"),this.iconSvg=o_,this.tag="button"}return t.prototype.getValue=function(t){var e=Dw.getSelectedNodeByType(t,"image");return e&&e.href||""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||!this.getValue(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){if(!e||"string"!=typeof e)throw new Error("View image link failed, image.href is '"+e+"'");window.open(e,"_blank")}},t}(),CP=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.getSelectedNode=function(t){return Dw.getSelectedNodeByType(t,"image")},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedNode(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=this.getSelectedNode(t);if(null!=n){var r=Dw.getHoverbar(t);r&&r.hideAndClean();var i=n.style,o={style:FB(FB({},void 0===i?{}:i),{width:this.value,height:""})};$n.setNodes(t,o,{match:function(t){return Dw.checkNodeType(t,"image")}})}}},t}(),SP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="30%",e.value="30%",e}return DB(e,t),e}(CP),AP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="50%",e.value="50%",e}return DB(e,t),e}(CP),EP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="100%",e.value="100%",e}return DB(e,t),e}(CP),kP={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},DP={renderElems:[lP],elemsToHtml:[uP],parseElemsHtml:[cP],menus:[{key:"insertImage",factory:function(){return new mP},config:kP},{key:"deleteImage",factory:function(){return new yP}},{key:"editImage",factory:function(){return new xP},config:kP},{key:"viewImageLink",factory:function(){return new wP}},{key:"imageWidth30",factory:function(){return new SP}},{key:"imageWidth50",factory:function(){return new AP}},{key:"imageWidth100",factory:function(){return new EP}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(t){return"image"===t.type||e(t)},r.isVoid=function(t){return"image"===t.type||n(t)},r}},FP={type:"todo",renderElem:function(t,e,n){var r=!1;n.isDisabled()&&(r=!0);var i=t.checked,o=Ls("div",{style:{margin:"5px 0"}},Ls("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Ls("input",{type:"checkbox",checked:i,disabled:r,on:{change:function(e){var r=Dw.findPath(n,t),i={checked:e.target.checked};$n.setNodes(n,i,{at:r})}}})),Ls("span",null,e));return o}},MP=function(){function t(){this.title=ED("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!!Dw.getSelectedNodeByType(t,"todo")},t.prototype.isDisabled=function(t){return null==t.selection||!!Dw.getSelectedElems(t).some((function(e){if(Je.isVoid(t,e)&&Je.isBlock(t,e))return!0;var n=e.type;return!!["pre","table","bulleted-list","numbered-list"].includes(n)||void 0}))},t.prototype.exec=function(t,e){var n=this.isActive(t);$n.setNodes(t,{type:n?"paragraph":"todo"})},t}(),OP={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var r=eo(t);0===(e=e.filter((function(t){return!!En.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var i=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(i=!0),{type:"todo",checked:i,children:e}}},TP={renderElems:[FP],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=eo(t).find("li"),n=eo('<div data-w-e-type="todo"></div>'),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[OP],menus:[{key:"todo",factory:function(){return new MP}}],editorPlugin:function(t){var e=t.deleteBackward,n=t;return n.deleteBackward=function(n){var r=t.selection;if(r&&yn.isCollapsed(r)){var i=Dw.getSelectedNodeByType(t,"todo");if(i&&0===on.string(i).length)return void $n.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(n)},n}},BP={type:"blockquote",renderElem:function(t,e,n){return Ls("blockquote",null,e)}},_P={type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}},IP={selector:"blockquote",parseElemHtml:function(t,e,n){var r=eo(t);return 0===(e=e.filter((function(t){return!!En.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},PP=function(){function t(){this.title=ED("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!!Dw.getSelectedNodeByType(t,"blockquote")},t.prototype.isDisabled=function(t){return null==t.selection||!BB(Je.nodes(t,{match:function(t){var e=Dw.getNodeType(t);return"paragraph"===e||"blockquote"===e},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=this.isActive(t)?"paragraph":"blockquote";$n.setNodes(t,{type:n},{mode:"highest"})}},t}(),LP={key:"blockquote",factory:function(){return new PP}},RP=YD([].slice),NP=MO("slice"),jP=HF("species"),zP=LD.Array,UP=Math.max;oO({target:"Array",proto:!0,forced:!NP},{slice:function(t,e){var n,r,i,o=oF(this),a=NM(o),s=PM(t,a),l=PM(void 0===e?a:e,a);if(sO(o)&&(n=o.constructor,(wO(n)&&(n===zP||sO(n.prototype))||sF(n)&&null===(n=n[jP]))&&(n=void 0),n===zP||void 0===n))return RP(o,s,l);for(r=new(void 0===n?zP:n)(UP(l-s,0)),i=0;s<l;s++,i++)s in o&&eB(r,i,o[s]);return r.length=i,r}});var VP={renderElems:[BP],elemsToHtml:[_P],parseElemsHtml:[IP],menus:[LP],editorPlugin:function(t){var e=t.insertBreak,n=t.insertText,r=t;return r.insertBreak=function(){var i=r.selection;if(null==i)return e();var o=BB(Je.nodes(t,{match:function(t){return Dw.checkNodeType(t,"blockquote")},universal:!0}),1)[0];if(!o)return e();var a=o[0],s=Dw.findPath(t,a),l=Je.end(t,s);if(pn.equals(l,i.focus)){var u=on.string(a);if(u&&"\n"===u.slice(-1))return t.deleteBackward("character"),void $n.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},HP=function(){function t(){this.title=ED("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(t,e){},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||!!BB(Je.nodes(t,{match:function(e){return"pre"===Dw.getNodeType(e)||!!Je.isVoid(t,e)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(t){if(null==this.$content){var e=eo('<ul class="w-e-panel-content-emotion"></ul>');e.on("click","li",(function(e){var n=e.target;if(null!=n){e.preventDefault();var r=eo(n).text();t.insertText(r)}})),this.$content=e}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=t.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(t){var e=eo("<li>"+t+"</li>");n.append(e)})),n[0]},t}(),$P={menus:[{key:"emotion",factory:function(){return new HP},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},GP={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},WP={selector:"font",preParseHtml:function(t){var e=eo(t);if("font"!==SB(e))return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",GP[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},qP=YD("".indexOf);oO({target:"String",proto:!0,forced:!H_("includes")},{includes:function(t){return!!~qP(IO(iF(this)),IO(U_(t)),arguments.length>1?arguments[1]:void 0)}});var XP,ZP,YP=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){var e=this.mark,n=Je.marks(t);return n&&n[e]?n[e]:""},t.prototype.isDisabled=function(t){return null==t.selection||(this.mark,!!BB(Je.nodes(t,{match:function(e){return"pre"===Dw.getNodeType(e)||!!Je.isVoid(t,e)},universal:!0}),1)[0])},t.prototype.exec=function(t,e){var n=this.mark;e?t.addMark(n,e):t.removeMark(n)},t}(),QP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title=ED("fontSize.title"),e.iconSvg=l_,e.mark="fontSize",e}return DB(e,t),e.prototype.getOptions=function(t){var e=[],n=t.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;e.push({text:ED("fontSize.default"),value:""}),r.forEach((function(t){e.push({text:t,value:t})}));var i=this.getValue(t);return e.forEach((function(t){t.value===i?t.selected=!0:delete t.selected})),e},e}(YP),KP=function(t){return t&&t.Math==Math&&t},JP=KP("object"==typeof globalThis&&globalThis)||KP("object"==typeof window&&window)||KP("object"==typeof self&&self)||KP("object"==typeof OD&&OD)||function(){return this}()||Function("return this")(),tL=Function.prototype,eL=tL.apply,nL=tL.bind,rL=tL.call,iL="object"==typeof Reflect&&Reflect.apply||(nL?rL.bind(eL):function(){return rL.apply(eL,arguments)}),oL=Function.prototype,aL=oL.bind,sL=oL.call,lL=aL&&aL.bind(sL),uL=aL?function(t){return t&&lL(sL,t)}:function(t){return t&&function(){return sL.apply(t,arguments)}},cL=function(t){return"function"==typeof t},hL=function(t){try{return!!t()}catch(t){return!0}},fL=!hL((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),pL=Function.prototype.call,dL=pL.bind?pL.bind(pL):function(){return pL.apply(pL,arguments)},gL={}.propertyIsEnumerable,vL=Object.getOwnPropertyDescriptor,mL=vL&&!gL.call({1:2},1)?function(t){var e=vL(this,t);return!!e&&e.enumerable}:gL,yL={f:mL},bL=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},xL=uL({}.toString),wL=uL("".slice),CL=function(t){return wL(xL(t),8,-1)},SL=JP.Object,AL=uL("".split),EL=hL((function(){return!SL("z").propertyIsEnumerable(0)}))?function(t){return"String"==CL(t)?AL(t,""):SL(t)}:SL,kL=JP.TypeError,DL=function(t){if(null==t)throw kL("Can't call method on "+t);return t},FL=function(t){return EL(DL(t))},ML=function(t){return"object"==typeof t?null!==t:cL(t)},OL={},TL=function(t){return cL(t)?t:void 0},BL=function(t,e){return arguments.length<2?TL(OL[t])||TL(JP[t]):OL[t]&&OL[t][e]||JP[t]&&JP[t][e]},_L=uL({}.isPrototypeOf),IL=BL("navigator","userAgent")||"",PL=JP.process,LL=JP.Deno,RL=PL&&PL.versions||LL&&LL.version,NL=RL&&RL.v8;NL&&(ZP=(XP=NL.split("."))[0]>0&&XP[0]<4?1:+(XP[0]+XP[1])),!ZP&&IL&&(!(XP=IL.match(/Edge\/(\d+)/))||XP[1]>=74)&&(XP=IL.match(/Chrome\/(\d+)/))&&(ZP=+XP[1]);var jL=ZP,zL=!!Object.getOwnPropertySymbols&&!hL((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&jL&&jL<41})),UL=zL&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,VL=JP.Object,HL=UL?function(t){return"symbol"==typeof t}:function(t){var e=BL("Symbol");return cL(e)&&_L(e.prototype,VL(t))},$L=JP.String,GL=JP.TypeError,WL=function(t){if(cL(t))return t;throw GL(function(t){try{return $L(t)}catch(t){return"Object"}}(t)+" is not a function")},qL=JP.TypeError,XL=Object.defineProperty,ZL=JP["__core-js_shared__"]||function(t,e){try{XL(JP,t,{value:e,configurable:!0,writable:!0})}catch(it){JP[t]=e}return e}("__core-js_shared__",{}),YL=BD((function(t){(t.exports=function(t,e){return ZL[t]||(ZL[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),QL=JP.Object,KL=function(t){return QL(DL(t))},JL=uL({}.hasOwnProperty),tR=Object.hasOwn||function(t,e){return JL(KL(t),e)},eR=0,nR=Math.random(),rR=uL(1..toString),iR=function(t){return"Symbol("+(void 0===t?"":t)+")_"+rR(++eR+nR,36)},oR=YL("wks"),aR=JP.Symbol,sR=aR&&aR.for,lR=UL?aR:aR&&aR.withoutSetter||iR,uR=function(t){if(!tR(oR,t)||!zL&&"string"!=typeof oR[t]){var e="Symbol."+t;zL&&tR(aR,t)?oR[t]=aR[t]:oR[t]=UL&&sR?sR(e):lR(e)}return oR[t]},cR=JP.TypeError,hR=uR("toPrimitive"),fR=function(t,e){if(!ML(t)||HL(t))return t;var n,r,i=null==(n=t[hR])?void 0:WL(n);if(i){if(void 0===e&&(e="default"),r=dL(i,t,e),!ML(r)||HL(r))return r;throw cR("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&cL(n=t.toString)&&!ML(r=dL(n,t)))return r;if(cL(n=t.valueOf)&&!ML(r=dL(n,t)))return r;if("string"!==e&&cL(n=t.toString)&&!ML(r=dL(n,t)))return r;throw qL("Can't convert object to primitive value")}(t,e)},pR=function(t){var e=fR(t,"string");return HL(e)?e:e+""},dR=JP.document,gR=ML(dR)&&ML(dR.createElement),vR=function(t){return gR?dR.createElement(t):{}},mR=!fL&&!hL((function(){return 7!=Object.defineProperty(vR("div"),"a",{get:function(){return 7}}).a})),yR=Object.getOwnPropertyDescriptor,bR={f:fL?yR:function(t,e){if(t=FL(t),e=pR(e),mR)try{return yR(t,e)}catch(t){}if(tR(t,e))return bL(!dL(yL.f,t,e),t[e])}},xR=/#|\.prototype\./,wR=function(t,e){var n=SR[CR(t)];return n==ER||n!=AR&&(cL(e)?hL(e):!!e)},CR=wR.normalize=function(t){return String(t).replace(xR,".").toLowerCase()},SR=wR.data={},AR=wR.NATIVE="N",ER=wR.POLYFILL="P",kR=wR,DR=uL(uL.bind),FR=function(t,e){return WL(t),void 0===e?t:DR?DR(t,e):function(){return t.apply(e,arguments)}},MR=JP.String,OR=JP.TypeError,TR=function(t){if(ML(t))return t;throw OR(MR(t)+" is not an object")},BR=JP.TypeError,_R=Object.defineProperty,IR={f:fL?_R:function(t,e,n){if(TR(t),e=pR(e),TR(n),mR)try{return _R(t,e,n)}catch(t){}if("get"in n||"set"in n)throw BR("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},PR=fL?function(t,e,n){return IR.f(t,e,bL(1,n))}:function(t,e,n){return t[e]=n,t},LR=bR.f,RR=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return iL(t,this,arguments)};return e.prototype=t.prototype,e},NR=function(t,e){var n,r,i,o,a,s,l,u,c=t.target,h=t.global,f=t.stat,p=t.proto,d=h?JP:f?JP[c]:(JP[c]||{}).prototype,g=h?OL:OL[c]||PR(OL,c,{})[c],v=g.prototype;for(i in e)n=!kR(h?i:c+(f?".":"#")+i,t.forced)&&d&&tR(d,i),a=g[i],n&&(s=t.noTargetGet?(u=LR(d,i))&&u.value:d[i]),o=n&&s?s:e[i],n&&typeof a==typeof o||(l=t.bind&&n?FR(o,JP):t.wrap&&n?RR(o):p&&cL(o)?uL(o):o,(t.sham||o&&o.sham||a&&a.sham)&&PR(l,"sham",!0),PR(g,i,l),p&&(tR(OL,r=c+"Prototype")||PR(OL,r,{}),PR(OL[r],i,o),t.real&&v&&!v[i]&&PR(v,i,o)))},jR=Array.isArray||function(t){return"Array"==CL(t)},zR=Math.ceil,UR=Math.floor,VR=function(t){var e=+t;return e!=e||0===e?0:(e>0?UR:zR)(e)},HR=Math.min,$R=function(t){return(e=t.length)>0?HR(VR(e),9007199254740991):0;var e},GR=function(t,e,n){var r=pR(e);r in t?IR.f(t,r,bL(0,n)):t[r]=n},WR={};WR[uR("toStringTag")]="z";var qR="[object z]"===String(WR),XR=uR("toStringTag"),ZR=JP.Object,YR="Arguments"==CL(function(){return arguments}()),QR=qR?CL:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=ZR(t),XR))?n:YR?CL(e):"Object"==(r=CL(e))&&cL(e.callee)?"Arguments":r},KR=uL(Function.toString);cL(ZL.inspectSource)||(ZL.inspectSource=function(t){return KR(t)});var JR=ZL.inspectSource,tN=function(){},eN=[],nN=BL("Reflect","construct"),rN=/^\s*(?:class|function)\b/,iN=uL(rN.exec),oN=!rN.exec(tN),aN=function(t){if(!cL(t))return!1;try{return nN(tN,eN,t),!0}catch(t){return!1}},sN=!nN||hL((function(){var t;return aN(aN.call)||!aN(Object)||!aN((function(){t=!0}))||t}))?function(t){if(!cL(t))return!1;switch(QR(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return oN||!!iN(rN,JR(t))}:aN,lN=uR("species"),uN=JP.Array,cN=function(t,e){return new(function(t){var e;return jR(t)&&(e=t.constructor,(sN(e)&&(e===uN||jR(e.prototype))||ML(e)&&null===(e=e[lN]))&&(e=void 0)),void 0===e?uN:e}(t))(0===e?0:e)},hN=uR("species"),fN=uR("isConcatSpreadable"),pN=JP.TypeError,dN=jL>=51||!hL((function(){var t=[];return t[fN]=!1,t.concat()[0]!==t})),gN=function(t){return jL>=51||!hL((function(){var e=[];return(e.constructor={})[hN]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("concat"),vN=function(t){if(!ML(t))return!1;var e=t[fN];return void 0!==e?!!e:jR(t)};NR({target:"Array",proto:!0,forced:!dN||!gN},{concat:function(t){var e,n,r,i,o,a=KL(this),s=cN(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(vN(o=-1===e?a:arguments[e])){if(l+(i=$R(o))>9007199254740991)throw pN("Maximum allowed index exceeded");for(n=0;n<i;n++,l++)n in o&&GR(s,l,o[n])}else{if(l>=9007199254740991)throw pN("Maximum allowed index exceeded");GR(s,l++,o)}return s.length=l,s}});var mN,yN=JP.String,bN=function(t){if("Symbol"===QR(t))throw TypeError("Cannot convert a Symbol value to a string");return yN(t)},xN=Math.max,wN=Math.min,CN=function(t,e){var n=VR(t);return n<0?xN(n+e,0):wN(n,e)},SN=function(t){return function(e,n,r){var i,o=FL(e),a=$R(o),s=CN(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},AN={includes:SN(!0),indexOf:SN(!1)},EN={},kN=AN.indexOf,DN=uL([].push),FN=function(t,e){var n,r=FL(t),i=0,o=[];for(n in r)!tR(EN,n)&&tR(r,n)&&DN(o,n);for(;e.length>i;)tR(r,n=e[i++])&&(~kN(o,n)||DN(o,n));return o},MN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ON=Object.keys||function(t){return FN(t,MN)},TN=fL?Object.defineProperties:function(t,e){TR(t);for(var n,r=FL(e),i=ON(e),o=i.length,a=0;o>a;)IR.f(t,n=i[a++],r[n]);return t},BN=BL("document","documentElement"),_N=YL("keys"),IN=function(t){return _N[t]||(_N[t]=iR(t))},PN=IN("IE_PROTO"),LN=function(){},RN=function(t){return"<script>"+t+"<\/script>"},NN=function(t){t.write(RN("")),t.close();var e=t.parentWindow.Object;return t=null,e},jN=function(){try{mN=new ActiveXObject("htmlfile")}catch(t){}var t,e;jN="undefined"!=typeof document?document.domain&&mN?NN(mN):((e=vR("iframe")).style.display="none",BN.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(RN("document.F=Object")),t.close(),t.F):NN(mN);for(var n=MN.length;n--;)delete jN.prototype[MN[n]];return jN()};EN[PN]=!0;var zN,UN,VN,HN=Object.create||function(t,e){var n;return null!==t?(LN.prototype=TR(t),n=new LN,LN.prototype=null,n[PN]=t):n=jN(),void 0===e?n:TN(n,e)},$N=MN.concat("length","prototype"),GN={f:Object.getOwnPropertyNames||function(t){return FN(t,$N)}},WN=JP.Array,qN=Math.max,XN=GN.f,ZN="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],YN=function(t){try{return XN(t)}catch(t){return function(t,e,n){for(var r=$R(t),i=CN(e,r),o=CN(void 0===n?r:n,r),a=WN(qN(o-i,0)),s=0;i<o;i++,s++)GR(a,s,t[i]);return a.length=s,a}(ZN)}},QN={f:function(t){return ZN&&"Window"==CL(t)?YN(t):XN(FL(t))}},KN={f:Object.getOwnPropertySymbols},JN=uL([].slice),tj=function(t,e,n,r){r&&r.enumerable?t[e]=n:PR(t,e,n)},ej={f:uR},nj=IR.f,rj=function(t){var e=OL.Symbol||(OL.Symbol={});tR(e,t)||nj(e,t,{value:ej.f(t)})},ij=qR?{}.toString:function(){return"[object "+QR(this)+"]"},oj=IR.f,aj=uR("toStringTag"),sj=function(t,e,n,r){if(t){var i=n?t:t.prototype;tR(i,aj)||oj(i,aj,{configurable:!0,value:e}),r&&!qR&&PR(i,"toString",ij)}},lj=JP.WeakMap,uj=cL(lj)&&/native code/.test(JR(lj)),cj=JP.TypeError,hj=JP.WeakMap;if(uj||ZL.state){var fj=ZL.state||(ZL.state=new hj),pj=uL(fj.get),dj=uL(fj.has),gj=uL(fj.set);zN=function(t,e){if(dj(fj,t))throw new cj("Object already initialized");return e.facade=t,gj(fj,t,e),e},UN=function(t){return pj(fj,t)||{}},VN=function(t){return dj(fj,t)}}else{var vj=IN("state");EN[vj]=!0,zN=function(t,e){if(tR(t,vj))throw new cj("Object already initialized");return e.facade=t,PR(t,vj,e),e},UN=function(t){return tR(t,vj)?t[vj]:{}},VN=function(t){return tR(t,vj)}}var mj={set:zN,get:UN,has:VN,enforce:function(t){return VN(t)?UN(t):zN(t,{})},getterFor:function(t){return function(e){var n;if(!ML(e)||(n=UN(e)).type!==t)throw cj("Incompatible receiver, "+t+" required");return n}}},yj=uL([].push),bj=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=7==t,s=5==t||o;return function(l,u,c,h){for(var f,p,d=KL(l),g=EL(d),v=FR(u,c),m=$R(g),y=0,b=h||cN,x=e?b(l,m):n||a?b(l,0):void 0;m>y;y++)if((s||y in g)&&(p=v(f=g[y],y,d),t))if(e)x[y]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return y;case 2:yj(x,f)}else switch(t){case 4:return!1;case 7:yj(x,f)}return o?-1:r||i?i:x}},xj={forEach:bj(0),map:bj(1),filter:bj(2),some:bj(3),every:bj(4),find:bj(5),findIndex:bj(6),filterReject:bj(7)}.forEach,wj=IN("hidden"),Cj=uR("toPrimitive"),Sj=mj.set,Aj=mj.getterFor("Symbol"),Ej=Object.prototype,kj=JP.Symbol,Dj=kj&&kj.prototype,Fj=JP.TypeError,Mj=JP.QObject,Oj=BL("JSON","stringify"),Tj=bR.f,Bj=IR.f,_j=QN.f,Ij=yL.f,Pj=uL([].push),Lj=YL("symbols"),Rj=YL("op-symbols"),Nj=YL("string-to-symbol-registry"),jj=YL("symbol-to-string-registry"),zj=YL("wks"),Uj=!Mj||!Mj.prototype||!Mj.prototype.findChild,Vj=fL&&hL((function(){return 7!=HN(Bj({},"a",{get:function(){return Bj(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Tj(Ej,e);r&&delete Ej[e],Bj(t,e,n),r&&t!==Ej&&Bj(Ej,e,r)}:Bj,Hj=function(t,e){var n=Lj[t]=HN(Dj);return Sj(n,{type:"Symbol",tag:t,description:e}),fL||(n.description=e),n},$j=function(t,e,n){t===Ej&&$j(Rj,e,n),TR(t);var r=pR(e);return TR(n),tR(Lj,r)?(n.enumerable?(tR(t,wj)&&t[wj][r]&&(t[wj][r]=!1),n=HN(n,{enumerable:bL(0,!1)})):(tR(t,wj)||Bj(t,wj,bL(1,{})),t[wj][r]=!0),Vj(t,r,n)):Bj(t,r,n)},Gj=function(t,e){TR(t);var n=FL(e),r=ON(n).concat(Zj(n));return xj(r,(function(e){fL&&!dL(Wj,n,e)||$j(t,e,n[e])})),t},Wj=function(t){var e=pR(t),n=dL(Ij,this,e);return!(this===Ej&&tR(Lj,e)&&!tR(Rj,e))&&(!(n||!tR(this,e)||!tR(Lj,e)||tR(this,wj)&&this[wj][e])||n)},qj=function(t,e){var n=FL(t),r=pR(e);if(n!==Ej||!tR(Lj,r)||tR(Rj,r)){var i=Tj(n,r);return!i||!tR(Lj,r)||tR(n,wj)&&n[wj][r]||(i.enumerable=!0),i}},Xj=function(t){var e=_j(FL(t)),n=[];return xj(e,(function(t){tR(Lj,t)||tR(EN,t)||Pj(n,t)})),n},Zj=function(t){var e=t===Ej,n=_j(e?Rj:FL(t)),r=[];return xj(n,(function(t){!tR(Lj,t)||e&&!tR(Ej,t)||Pj(r,Lj[t])})),r};if(zL||(Dj=(kj=function(){if(_L(Dj,this))throw Fj("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?bN(arguments[0]):void 0,e=iR(t),n=function(t){this===Ej&&dL(n,Rj,t),tR(this,wj)&&tR(this[wj],e)&&(this[wj][e]=!1),Vj(this,e,bL(1,t))};return fL&&Uj&&Vj(Ej,e,{configurable:!0,set:n}),Hj(e,t)}).prototype,tj(Dj,"toString",(function(){return Aj(this).tag})),tj(kj,"withoutSetter",(function(t){return Hj(iR(t),t)})),yL.f=Wj,IR.f=$j,bR.f=qj,GN.f=QN.f=Xj,KN.f=Zj,ej.f=function(t){return Hj(uR(t),t)},fL&&Bj(Dj,"description",{configurable:!0,get:function(){return Aj(this).description}})),NR({global:!0,wrap:!0,forced:!zL,sham:!zL},{Symbol:kj}),xj(ON(zj),(function(t){rj(t)})),NR({target:"Symbol",stat:!0,forced:!zL},{for:function(t){var e=bN(t);if(tR(Nj,e))return Nj[e];var n=kj(e);return Nj[e]=n,jj[n]=e,n},keyFor:function(t){if(!HL(t))throw Fj(t+" is not a symbol");if(tR(jj,t))return jj[t]},useSetter:function(){Uj=!0},useSimple:function(){Uj=!1}}),NR({target:"Object",stat:!0,forced:!zL,sham:!fL},{create:function(t,e){return void 0===e?HN(t):Gj(HN(t),e)},defineProperty:$j,defineProperties:Gj,getOwnPropertyDescriptor:qj}),NR({target:"Object",stat:!0,forced:!zL},{getOwnPropertyNames:Xj,getOwnPropertySymbols:Zj}),NR({target:"Object",stat:!0,forced:hL((function(){KN.f(1)}))},{getOwnPropertySymbols:function(t){return KN.f(KL(t))}}),Oj){var Yj=!zL||hL((function(){var t=kj();return"[null]"!=Oj([t])||"{}"!=Oj({a:t})||"{}"!=Oj(Object(t))}));NR({target:"JSON",stat:!0,forced:Yj},{stringify:function(t,e,n){var r=JN(arguments),i=e;if((ML(e)||void 0!==t)&&!HL(t))return jR(e)||(e=function(t,e){if(cL(i)&&(e=dL(i,this,t,e)),!HL(e))return e}),r[1]=e,iL(Oj,null,r)}})}if(!Dj[Cj]){var Qj=Dj.valueOf;tj(Dj,Cj,(function(t){return dL(Qj,this)}))}sj(kj,"Symbol"),EN[wj]=!0,rj("asyncIterator"),rj("hasInstance"),rj("isConcatSpreadable"),rj("iterator"),rj("match"),rj("matchAll"),rj("replace"),rj("search"),rj("species"),rj("split"),rj("toPrimitive"),rj("toStringTag"),rj("unscopables"),sj(JP.JSON,"JSON",!0);var Kj,Jj,tz,ez=OL.Symbol,nz={},rz=Function.prototype,iz=fL&&Object.getOwnPropertyDescriptor,oz=tR(rz,"name"),az={EXISTS:oz,PROPER:oz&&"something"===function(){}.name,CONFIGURABLE:oz&&(!fL||fL&&iz(rz,"name").configurable)},sz=!hL((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),lz=IN("IE_PROTO"),uz=JP.Object,cz=uz.prototype,hz=sz?uz.getPrototypeOf:function(t){var e=KL(t);if(tR(e,lz))return e[lz];var n=e.constructor;return cL(n)&&e instanceof n?n.prototype:e instanceof uz?cz:null},fz=uR("iterator"),pz=!1;[].keys&&("next"in(tz=[].keys())?(Jj=hz(hz(tz)))!==Object.prototype&&(Kj=Jj):pz=!0);var dz=null==Kj||hL((function(){var t={};return Kj[fz].call(t)!==t}));Kj=dz?{}:HN(Kj),cL(Kj[fz])||tj(Kj,fz,(function(){return this}));var gz={IteratorPrototype:Kj,BUGGY_SAFARI_ITERATORS:pz},vz=gz.IteratorPrototype,mz=function(){return this};JP.String,JP.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{uL(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch(ot){}}();var yz=az.PROPER,bz=gz.BUGGY_SAFARI_ITERATORS,xz=uR("iterator"),wz=function(){return this},Cz=function(t,e,n,r,i,o,a){!function(t,e,n,r){var i=e+" Iterator";t.prototype=HN(vz,{next:bL(+!r,n)}),sj(t,i,!1,!0),nz[i]=mz}(n,e,r);var s,l,u,c=function(t){if(t===i&&g)return g;if(!bz&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,p=t.prototype,d=p[xz]||p["@@iterator"]||i&&p[i],g=!bz&&d||c(i),v="Array"==e&&p.entries||d;if(v&&(s=hz(v.call(new t)))!==Object.prototype&&s.next&&(sj(s,h,!0,!0),nz[h]=wz),yz&&"values"==i&&d&&"values"!==d.name&&(f=!0,g=function(){return dL(d,this)}),i)if(l={values:c("values"),keys:o?g:c("keys"),entries:c("entries")},a)for(u in l)(bz||f||!(u in p))&&tj(p,u,l[u]);else NR({target:e,proto:!0,forced:bz||f},l);return a&&p[xz]!==g&&tj(p,xz,g,{name:i}),nz[e]=g,l},Sz=mj.set,Az=mj.getterFor("Array Iterator");Cz(Array,"Array",(function(t,e){Sz(this,{type:"Array Iterator",target:FL(t),index:0,kind:e})}),(function(){var t=Az(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),nz.Arguments=nz.Array;var Ez=uR("toStringTag");for(var kz in{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}){var Dz=JP[kz],Fz=Dz&&Dz.prototype;Fz&&QR(Fz)!==Ez&&PR(Fz,Ez,kz),nz[kz]=nz.Array}var Mz=ez;rj("asyncDispose"),rj("dispose"),rj("matcher"),rj("metadata"),rj("observable"),rj("patternMatch"),rj("replaceAll");var Oz=Mz,Tz=uL("".charAt),Bz=uL("".charCodeAt),_z=uL("".slice),Iz=function(t){return function(e,n){var r,i,o=bN(DL(e)),a=VR(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=Bz(o,a))<55296||r>56319||a+1===s||(i=Bz(o,a+1))<56320||i>57343?t?Tz(o,a):r:t?_z(o,a,a+2):i-56320+(r-55296<<10)+65536}},Pz={codeAt:Iz(!1),charAt:Iz(!0)}.charAt,Lz=mj.set,Rz=mj.getterFor("String Iterator");Cz(String,"String",(function(t){Lz(this,{type:"String Iterator",string:bN(t),index:0})}),(function(){var t,e=Rz(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Pz(n,r),e.index+=t.length,{value:t,done:!1})}));var Nz=ej.f("iterator"),jz=BD((function(t){function e(n){return"function"==typeof Oz&&"symbol"==typeof Nz?(t.exports=e=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t){return t&&"function"==typeof Oz&&t.constructor===Oz&&t!==Oz.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})),zz=TD(jz),Uz=FM.EXISTS,Vz=oM.f,Hz=Function.prototype,$z=YD(Hz.toString),Gz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Wz=YD(Gz.exec);ND&&!Uz&&Vz(Hz,"name",{configurable:!0,get:function(){try{return Wz(Gz,$z(this))[1]}catch(ot){return""}}});var qz=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title=ED("fontFamily.title"),e.iconSvg=u_,e.mark="fontFamily",e.selectPanelWidth=150,e}return DB(e,t),e.prototype.getOptions=function(t){var e=[],n=t.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;e.push({text:ED("fontFamily.default"),value:""}),r.forEach((function(t){if("string"==typeof t)e.push({text:t,value:t,styleForRenderMenuList:{"font-family":t}});else if("object"===zz(t)){var n=t.name,r=t.value;e.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var i=this.getValue(t);return e.forEach((function(t){t.value===i?t.selected=!0:delete t.selected})),e},e}(YP),Xz={renderStyle:function(t,e){var n=t,r=n.fontSize,i=n.fontFamily,o=e;return r&&yI(o,{fontSize:r}),i&&yI(o,{fontFamily:i}),o},styleToHtml:function(t,e){if(!En.isText(t))return e;var n,r=t,i=r.fontSize,o=r.fontFamily;return i||o?((wB(e)||"span"!==SB(n=eo(e)))&&(n=eo("<span>"+e+"</span>")),i&&n.css("font-size",i),o&&n.css("font-family",o),CB(n)):e},preParseHtml:[WP],parseStyleHtml:function(t,e,n){var r=eo(t);if(!En.isText(e))return e;var i=e,o=n.getMenuConfig("fontSize").fontSizeList,a=void 0===o?[]:o,s=AB(r,"font-size");s&&a.includes(s)&&(i.fontSize=s);var l=n.getMenuConfig("fontFamily").fontFamilyList,u=void 0===l?[]:l,c=AB(r,"font-family");return c&&u.includes(c)&&(i.fontFamily=c),i},menus:[{key:"fontSize",factory:function(){return new QP},config:{fontSizeList:["12px","13px","14px","15px","16px","19px","22px","24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new qz},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Zz={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=eo(t),n=AB(e,"padding-left");return/\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}},Yz=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){var e=BB(Je.nodes(t,{match:function(t){return!!t.indent},universal:!0}),1),n=e[0];return null==n?"":BB(n,1)[0].indent||""},t.prototype.isActive=function(t){return!1},t.prototype.getMatchNode=function(t){var e=BB(Je.nodes(t,{match:function(t){var e=Dw.getNodeType(t);return"paragraph"===e||!!e.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==e?null:e[0]},t}(),Qz=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title=ED("indent.decrease"),e.iconSvg=c_,e}return DB(e,t),e.prototype.isDisabled=function(t){var e=this.getMatchNode(t);return null==e||!e.indent},e.prototype.exec=function(t,e){$n.setNodes(t,{indent:null},{match:function(t){return qe.isElement(t)}})},e}(Yz),Kz=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title=ED("indent.increase"),e.iconSvg=h_,e}return DB(e,t),e.prototype.isDisabled=function(t){var e=this.getMatchNode(t);return null==e||!!e.indent},e.prototype.exec=function(t,e){$n.setNodes(t,{indent:"2em"},{match:function(t){return qe.isElement(t)},mode:"highest"})},e}(Yz),Jz={renderStyle:function(t,e){if(!qe.isElement(t))return e;var n=t.indent,r=e;return n&&yI(r,{textIndent:n}),r},styleToHtml:function(t,e){if(!qe.isElement(t))return e;var n=t.indent;if(!n)return e;var r=eo(e);return r.css("text-indent",n),CB(r)},preParseHtml:[Zz],parseStyleHtml:function(t,e,n){var r=eo(t);if(!qe.isElement(e))return e;var i=e,o=AB(r,"text-indent");return o&&(i.indent=o),i},menus:[{key:"indent",factory:function(){return new Kz}},{key:"delIndent",factory:function(){return new Qz}}]},tU=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.getMatchNode=function(t){var e=BB(Je.nodes(t,{match:function(t){var e=Dw.getNodeType(t);return"paragraph"===e||"blockquote"===e||!!e.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==e?null:e[0]},t.prototype.isDisabled=function(t){return null==t.selection||!!Dw.getSelectedElems(t).some((function(e){if(Je.isVoid(t,e)&&Je.isBlock(t,e))return!0;var n=e.type;return!!["pre","code"].includes(n)||void 0}))},t}(),eU=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title=ED("justify.left"),e.iconSvg=f_,e}return DB(e,t),e.prototype.exec=function(t,e){$n.setNodes(t,{textAlign:"left"},{match:function(e){return qe.isElement(e)&&!t.isInline(e)}})},e}(tU),nU=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title=ED("justify.right"),e.iconSvg=p_,e}return DB(e,t),e.prototype.exec=function(t,e){$n.setNodes(t,{textAlign:"right"},{match:function(e){return qe.isElement(e)&&!t.isInline(e)}})},e}(tU),rU=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title=ED("justify.center"),e.iconSvg=d_,e}return DB(e,t),e.prototype.exec=function(t,e){$n.setNodes(t,{textAlign:"center"},{match:function(e){return qe.isElement(e)&&!t.isInline(e)}})},e}(tU),iU=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title=ED("justify.justify"),e.iconSvg=g_,e}return DB(e,t),e.prototype.exec=function(t,e){$n.setNodes(t,{textAlign:"justify"},{match:function(e){return qe.isElement(e)&&!t.isInline(e)}})},e}(tU),oU={renderStyle:function(t,e){if(!qe.isElement(t))return e;var n=t.textAlign,r=e;return n&&yI(r,{textAlign:n}),r},styleToHtml:function(t,e){if(!qe.isElement(t))return e;var n=t.textAlign;if(!n)return e;var r=eo(e);return r.css("text-align",n),CB(r)},parseStyleHtml:function(t,e,n){var r=eo(t);if(!qe.isElement(e))return e;var i=e,o=AB(r,"text-align");return o&&(i.textAlign=o),i},menus:[{key:"justifyLeft",factory:function(){return new eU}},{key:"justifyRight",factory:function(){return new nU}},{key:"justifyCenter",factory:function(){return new rU}},{key:"justifyJustify",factory:function(){return new iU}}]},aU=function(){function t(){this.title=ED("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return t.prototype.getOptions=function(t){var e=[],n=t.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;e.push({text:ED("lineHeight.default"),value:""}),r.forEach((function(t){e.push({text:t,value:t})}));var i=this.getValue(t);return e.forEach((function(t){t.value===i?t.selected=!0:delete t.selected})),e},t.prototype.getMatchNode=function(t){var e=BB(Je.nodes(t,{match:function(t){var e=Dw.getNodeType(t);return!!e.startsWith("header")||!!["paragraph","blockquote","bulleted-list","numbered-list"].includes(e)},universal:!0,mode:"highest"}),1)[0];return null==e?null:e[0]},t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){var e=this.getMatchNode(t);return null==e?"":qe.isElement(e)&&e.lineHeight||""},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getMatchNode(t)},t.prototype.exec=function(t,e){$n.setNodes(t,{lineHeight:e.toString()},{mode:"highest"})},t}(),sU={renderStyle:function(t,e){if(!qe.isElement(t))return e;var n=t.lineHeight,r=e;return n&&yI(r,{lineHeight:n}),r},styleToHtml:function(t,e){if(!qe.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var r=eo(e);return r.css("line-height",n),CB(r)},parseStyleHtml:function(t,e,n){var r=eo(t);if(!qe.isElement(e))return e;var i=e,o=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===o?[]:o,s=AB(r,"line-height");return s&&a.includes(s)&&(i.lineHeight=s),i},menus:[{key:"lineHeight",factory:function(){return new aU},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},lU=function(){function t(){this.title=ED("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection},t.prototype.exec=function(t,e){"function"==typeof t.redo&&t.redo()},t}(),uU=function(){function t(){this.title=ED("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection},t.prototype.exec=function(t,e){"function"==typeof t.undo&&t.undo()},t}(),cU={menus:[{key:"redo",factory:function(){return new lU}},{key:"undo",factory:function(){return new uU}}]},hU={type:"divider",renderElem:function(t,e,n){var r=Dw.isNodeSelected(n,t);return ps("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:r?"true":""},style:{},on:{mousedown:function(t){return t.preventDefault()}}},[ps("hr")])}},fU={type:"divider",elemToHtml:function(t,e){return"<hr/>"}},pU={selector:"hr",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}},dU=function(){function t(){this.title=ED("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||!!Dw.getSelectedElems(t).some((function(e){if(t.isVoid(e))return!0;var n=Dw.getNodeType(e);return"table"===n||"pre"===n||void 0}))},t.prototype.exec=function(t,e){$n.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),gU={renderElems:[hU],elemsToHtml:[fU],parseElemsHtml:[pU],menus:[{key:"divider",factory:function(){return new dU}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(t){return"divider"===t.type||e(t)},r.normalizeNode=function(t){var e=BB(t,2),i=e[0],o=e[1];if("divider"!==Dw.getNodeType(i))return n([i,o]);Dw.isLastNode(r,i)&&$n.insertNodes(r,Dw.genEmptyParagraph(),{at:[o[0]+1]})},r}},vU=DO.map;oO({target:"Array",proto:!0,forced:!MO("map")},{map:function(t){return vU(this,t,arguments.length>1?arguments[1]:void 0)}});var mU=YD([].join),yU=nF!=Object,bU=GB("join",",");oO({target:"Array",proto:!0,forced:yU||!bU},{join:function(t){return mU(oF(this),void 0===t?",":t)}});var xU=function(){function t(){this.title=ED("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return t.prototype.getSelectCodeElem=function(t){var e=Dw.getSelectedNodeByType(t,"code");if(null==e)return null;var n=Dw.getParentNode(t,e);return null==n||"pre"!==Dw.getNodeType(n)?null:e},t.prototype.getValue=function(t){var e=this.getSelectCodeElem(t);return null==e?"":e.language||""},t.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},t.prototype.isDisabled=function(t){if(null==t.selection)return!0;var e=Dw.getSelectedElems(t);return!!e.some((function(e){return t.isVoid(e)}))||!e.some((function(t){var e=Dw.getNodeType(t);if("pre"===e||"paragraph"===e)return!0}))},t.prototype.exec=function(t,e){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,e.toString())},t.prototype.changeToPlainText=function(t){var e=this.getSelectCodeElem(t);if(null!=e){var n=on.string(e);$n.removeNodes(t,{mode:"highest"});var r=n.split("\n").map((function(t){return{type:"paragraph",children:[{text:t}]}}));$n.insertNodes(t,r,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(t,e){var n,r,i=[],o=Je.nodes(t,{match:function(e){return t.children.includes(e)},universal:!0});try{for(var a=TB(o),s=a.next();!s.done;s=a.next()){var l=BB(s.value,1)[0];l&&i.push(on.string(l))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}$n.removeNodes(t,{mode:"highest"});var u={type:"pre",children:[{type:"code",language:e,children:[{text:i.join("\n")}]}]};$n.insertNodes(t,u,{mode:"highest"})},t}(),wU={key:"codeBlock",factory:function(){return new xU}};oO({target:"String",proto:!0,forced:NB("anchor")},{anchor:function(t){return RB(this,"a","name",t)}}),xT("match",(function(t,e,n){return[function(e){var n=iF(this),r=null==e?void 0:EF(e,t);return r?zD(r,e,n):new RegExp(e)[t](IO(n))},function(t){var r=nM(this),i=IO(t),o=n(e,r,i);if(o.done)return o.value;if(!r.global)return PT(r,i);var a=r.unicode;r.lastIndex=0;for(var s,l=[],u=0;null!==(s=PT(r,i));){var c=IO(s[0]);l[u]=c,""===c&&(r.lastIndex=kT(i,RM(r.lastIndex),a)),u++}return 0===u?null:l}]}));var CU={type:"pre",renderElem:function(t,e,n){return Ls("pre",null,e)}},SU={type:"code",renderElem:function(t,e,n){return Ls("code",null,e)}},AU={selector:"pre",parseElemHtml:function(t,e,n){var r=eo(t);return 0===(e=e.filter((function(t){return"code"===Dw.getNodeType(t)}))).length&&(e=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:e.filter((function(t){return"code"===Dw.getNodeType(t)}))}}},EU={menus:[wU],editorPlugin:function(t){var e=t.insertBreak,n=t.normalizeNode,r=t.insertData;t.insertNode;var i=t;return i.insertBreak=function(){var t=Dw.getSelectedNodeByType(i,"code");if(null!=t){var n=function(t,e){var n=e.selection;if(null==n)return"";var r=on.string(t),i=n.anchor.offset,o=r.slice(0,i).split("\n"),a=o.length;return 0===a?"":o[a-1]}(t,i);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var o=r[0];return void i.insertText("\n"+o)}}i.insertText("\n")}else e()},i.normalizeNode=function(t){var e=BB(t,2),r=e[0],o=e[1],a=Dw.getNodeType(r);return"code"===a&&o.length<=1&&$n.setNodes(i,{type:"paragraph"},{at:o}),"pre"===a&&(Dw.isLastNode(i,r)&&$n.insertNodes(i,Dw.genEmptyParagraph(),{at:[o[0]+1]}),"code"!==Dw.getNodeType(r.children[0])&&($n.unwrapNodes(i),$n.setNodes(i,{type:"paragraph"},{mode:"highest"}))),n([r,o])},i.insertData=function(t){if(null!=Dw.getSelectedNodeByType(i,"code")){var e=t.getData("text/plain");Je.insertText(i,e)}else r(t)},i},renderElems:[CU,SU],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return"<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=eo(t);if("code"!==SB(e))return t;var n=e.find("xmp");if(0===n.length)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[{selector:"pre>code",parseElemHtml:function(t,e,n){return{type:"code",language:"",children:[{text:eo(t)[0].textContent||""}]}}},AU]},kU=function(){function t(){this.title=ED("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return t.isFullScreen},t.prototype.isDisabled=function(t){return!1},t.prototype.exec=function(t,e){t.isFullScreen?t.unFullScreen():t.fullScreen()},t}(),DU={menus:[{key:"fullScreen",factory:function(){return new kU}}]},FU=function(){function t(){this.title=ED("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!!yn.isExpanded(e)},t.prototype.exec=function(t,e){var n=t.selection;if(null!=n){var r=[n.anchor.path[0]];$n.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:r}),t.select(Je.start(t,r))}},t}(),MU=[k_,AI,Xz,Jz,oU,sU,DP,gU,$P,qI,EU,VP,pI,IB,TP,cU,DU,{menus:[{key:"enter",factory:function(){return new FU}}]}];AD("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),AD("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var OU="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function TU(t){var e={exports:{}};return t(e,e.exports),e.exports}var BU,_U,IU=function(t){return t&&t.Math==Math&&t},PU=IU("object"==typeof globalThis&&globalThis)||IU("object"==typeof window&&window)||IU("object"==typeof self&&self)||IU("object"==typeof OU&&OU)||function(){return this}()||Function("return this")(),LU=function(t){try{return!!t()}catch(t){return!0}},RU=!LU((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),NU=Function.prototype.call,jU=NU.bind?NU.bind(NU):function(){return NU.apply(NU,arguments)},zU={}.propertyIsEnumerable,UU=Object.getOwnPropertyDescriptor,VU={f:UU&&!zU.call({1:2},1)?function(t){var e=UU(this,t);return!!e&&e.enumerable}:zU},HU=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},$U=Function.prototype,GU=$U.bind,WU=$U.call,qU=GU&&GU.bind(WU),XU=GU?function(t){return t&&qU(WU,t)}:function(t){return t&&function(){return WU.apply(t,arguments)}},ZU=XU({}.toString),YU=XU("".slice),QU=function(t){return YU(ZU(t),8,-1)},KU=PU.Object,JU=XU("".split),tV=LU((function(){return!KU("z").propertyIsEnumerable(0)}))?function(t){return"String"==QU(t)?JU(t,""):KU(t)}:KU,eV=PU.TypeError,nV=function(t){if(null==t)throw eV("Can't call method on "+t);return t},rV=function(t){return tV(nV(t))},iV=function(t){return"function"==typeof t},oV=function(t){return"object"==typeof t?null!==t:iV(t)},aV=function(t){return iV(t)?t:void 0},sV=function(t,e){return arguments.length<2?aV(PU[t]):PU[t]&&PU[t][e]},lV=XU({}.isPrototypeOf),uV=sV("navigator","userAgent")||"",cV=PU.process,hV=PU.Deno,fV=cV&&cV.versions||hV&&hV.version,pV=fV&&fV.v8;pV&&(_U=(BU=pV.split("."))[0]>0&&BU[0]<4?1:+(BU[0]+BU[1])),!_U&&uV&&(!(BU=uV.match(/Edge\/(\d+)/))||BU[1]>=74)&&(BU=uV.match(/Chrome\/(\d+)/))&&(_U=+BU[1]);var dV=_U,gV=!!Object.getOwnPropertySymbols&&!LU((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&dV&&dV<41})),vV=gV&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mV=PU.Object,yV=vV?function(t){return"symbol"==typeof t}:function(t){var e=sV("Symbol");return iV(e)&&lV(e.prototype,mV(t))},bV=PU.String,xV=PU.TypeError,wV=function(t){if(iV(t))return t;throw xV(function(t){try{return bV(t)}catch(t){return"Object"}}(t)+" is not a function")},CV=function(t,e){var n=t[e];return null==n?void 0:wV(n)},SV=PU.TypeError,AV=Object.defineProperty,EV=function(t,e){try{AV(PU,t,{value:e,configurable:!0,writable:!0})}catch(at){PU[t]=e}return e},kV=PU["__core-js_shared__"]||EV("__core-js_shared__",{}),DV=TU((function(t){(t.exports=function(t,e){return kV[t]||(kV[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),FV=PU.Object,MV=function(t){return FV(nV(t))},OV=XU({}.hasOwnProperty),TV=Object.hasOwn||function(t,e){return OV(MV(t),e)},BV=0,_V=Math.random(),IV=XU(1..toString),PV=function(t){return"Symbol("+(void 0===t?"":t)+")_"+IV(++BV+_V,36)},LV=DV("wks"),RV=PU.Symbol,NV=RV&&RV.for,jV=vV?RV:RV&&RV.withoutSetter||PV,zV=function(t){if(!TV(LV,t)||!gV&&"string"!=typeof LV[t]){var e="Symbol."+t;gV&&TV(RV,t)?LV[t]=RV[t]:LV[t]=vV&&NV?NV(e):jV(e)}return LV[t]},UV=PU.TypeError,VV=zV("toPrimitive"),HV=function(t,e){if(!oV(t)||yV(t))return t;var n,r=CV(t,VV);if(r){if(void 0===e&&(e="default"),n=jU(r,t,e),!oV(n)||yV(n))return n;throw UV("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&iV(n=t.toString)&&!oV(r=jU(n,t)))return r;if(iV(n=t.valueOf)&&!oV(r=jU(n,t)))return r;if("string"!==e&&iV(n=t.toString)&&!oV(r=jU(n,t)))return r;throw SV("Can't convert object to primitive value")}(t,e)},$V=function(t){var e=HV(t,"string");return yV(e)?e:e+""},GV=PU.document,WV=oV(GV)&&oV(GV.createElement),qV=function(t){return WV?GV.createElement(t):{}},XV=!RU&&!LU((function(){return 7!=Object.defineProperty(qV("div"),"a",{get:function(){return 7}}).a})),ZV=Object.getOwnPropertyDescriptor,YV={f:RU?ZV:function(t,e){if(t=rV(t),e=$V(e),XV)try{return ZV(t,e)}catch(t){}if(TV(t,e))return HU(!jU(VU.f,t,e),t[e])}},QV=PU.String,KV=PU.TypeError,JV=function(t){if(oV(t))return t;throw KV(QV(t)+" is not an object")},tH=PU.TypeError,eH=Object.defineProperty,nH={f:RU?eH:function(t,e,n){if(JV(t),e=$V(e),JV(n),XV)try{return eH(t,e,n)}catch(t){}if("get"in n||"set"in n)throw tH("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},rH=RU?function(t,e,n){return nH.f(t,e,HU(1,n))}:function(t,e,n){return t[e]=n,t},iH=XU(Function.toString);iV(kV.inspectSource)||(kV.inspectSource=function(t){return iH(t)});var oH,aH,sH,lH=kV.inspectSource,uH=PU.WeakMap,cH=iV(uH)&&/native code/.test(lH(uH)),hH=DV("keys"),fH=function(t){return hH[t]||(hH[t]=PV(t))},pH={},dH=PU.TypeError,gH=PU.WeakMap;if(cH||kV.state){var vH=kV.state||(kV.state=new gH),mH=XU(vH.get),yH=XU(vH.has),bH=XU(vH.set);oH=function(t,e){if(yH(vH,t))throw new dH("Object already initialized");return e.facade=t,bH(vH,t,e),e},aH=function(t){return mH(vH,t)||{}},sH=function(t){return yH(vH,t)}}else{var xH=fH("state");pH[xH]=!0,oH=function(t,e){if(TV(t,xH))throw new dH("Object already initialized");return e.facade=t,rH(t,xH,e),e},aH=function(t){return TV(t,xH)?t[xH]:{}},sH=function(t){return TV(t,xH)}}var wH,CH={set:oH,get:aH,has:sH,enforce:function(t){return sH(t)?aH(t):oH(t,{})},getterFor:function(t){return function(e){var n;if(!oV(e)||(n=aH(e)).type!==t)throw dH("Incompatible receiver, "+t+" required");return n}}},SH=Function.prototype,AH=RU&&Object.getOwnPropertyDescriptor,EH=TV(SH,"name"),kH={EXISTS:EH,PROPER:EH&&"something"===function(){}.name,CONFIGURABLE:EH&&(!RU||RU&&AH(SH,"name").configurable)},DH=TU((function(t){var e=kH.CONFIGURABLE,n=CH.get,r=CH.enforce,i=String(String).split("String");(t.exports=function(t,n,o,a){var s,l=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,h=a&&void 0!==a.name?a.name:n;iV(o)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!TV(o,"name")||e&&o.name!==h)&&rH(o,"name",h),(s=r(o)).source||(s.source=i.join("string"==typeof h?h:""))),t!==PU?(l?!c&&t[n]&&(u=!0):delete t[n],u?t[n]=o:rH(t,n,o)):u?t[n]=o:EV(n,o)})(Function.prototype,"toString",(function(){return iV(this)&&n(this).source||lH(this)}))})),FH=Math.ceil,MH=Math.floor,OH=function(t){var e=+t;return e!=e||0===e?0:(e>0?MH:FH)(e)},TH=Math.max,BH=Math.min,_H=Math.min,IH=function(t){return t>0?_H(OH(t),9007199254740991):0},PH=function(t){return IH(t.length)},LH=function(t){return function(e,n,r){var i,o=rV(e),a=PH(o),s=function(t,e){var n=OH(t);return n<0?TH(n+e,0):BH(n,e)}(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},RH={includes:LH(!0),indexOf:LH(!1)},NH=RH.indexOf,jH=XU([].push),zH=function(t,e){var n,r=rV(t),i=0,o=[];for(n in r)!TV(pH,n)&&TV(r,n)&&jH(o,n);for(;e.length>i;)TV(r,n=e[i++])&&(~NH(o,n)||jH(o,n));return o},UH=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],VH=UH.concat("length","prototype"),HH={f:Object.getOwnPropertyNames||function(t){return zH(t,VH)}},$H={f:Object.getOwnPropertySymbols},GH=XU([].concat),WH=sV("Reflect","ownKeys")||function(t){var e=HH.f(JV(t)),n=$H.f;return n?GH(e,n(t)):e},qH=function(t,e){for(var n=WH(e),r=nH.f,i=YV.f,o=0;o<n.length;o++){var a=n[o];TV(t,a)||r(t,a,i(e,a))}},XH=/#|\.prototype\./,ZH=function(t,e){var n=QH[YH(t)];return n==JH||n!=KH&&(iV(e)?LU(e):!!e)},YH=ZH.normalize=function(t){return String(t).replace(XH,".").toLowerCase()},QH=ZH.data={},KH=ZH.NATIVE="N",JH=ZH.POLYFILL="P",t$=ZH,e$=YV.f,n$=function(t,e){var n,r,i,o,a,s=t.target,l=t.global,u=t.stat;if(n=l?PU:u?PU[s]||EV(s,{}):(PU[s]||{}).prototype)for(r in e){if(o=e[r],i=t.noTargetGet?(a=e$(n,r))&&a.value:n[r],!t$(l?r:s+(u?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;qH(o,i)}(t.sham||i&&i.sham)&&rH(o,"sham",!0),DH(n,r,o,t)}},r$=Object.keys||function(t){return zH(t,UH)},i$=RU?Object.defineProperties:function(t,e){JV(t);for(var n,r=rV(e),i=r$(e),o=i.length,a=0;o>a;)nH.f(t,n=i[a++],r[n]);return t},o$=sV("document","documentElement"),a$=fH("IE_PROTO"),s$=function(){},l$=function(t){return"<script>"+t+"<\/script>"},u$=function(t){t.write(l$("")),t.close();var e=t.parentWindow.Object;return t=null,e},c$=function(){try{wH=new ActiveXObject("htmlfile")}catch(t){}var t,e;c$="undefined"!=typeof document?document.domain&&wH?u$(wH):((e=qV("iframe")).style.display="none",o$.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(l$("document.F=Object")),t.close(),t.F):u$(wH);for(var n=UH.length;n--;)delete c$.prototype[UH[n]];return c$()};pH[a$]=!0;var h$=Object.create||function(t,e){var n;return null!==t?(s$.prototype=JV(t),n=new s$,s$.prototype=null,n[a$]=t):n=c$(),void 0===e?n:i$(n,e)},f$=zV("unscopables"),p$=Array.prototype;null==p$[f$]&&nH.f(p$,f$,{configurable:!0,value:h$(null)});var d$,g$=RH.includes;function v$(t){if("bulleted-list"===t)return"ul";if("numbered-list"===t)return"ol";if("list-item"===t)return"li";throw new Error("list type '"+t+"' is invalid")}function m$(t){var e=Dw.getNodeType(t);return["bulleted-list","numbered-list"].includes(e)}function y$(t){return function(e,n,r){var i=v$(t);return Ls(i,null,n)}}n$({target:"Array",proto:!0},{includes:function(t){return g$(this,t,arguments.length>1?arguments[1]:void 0)}}),d$="includes",p$[f$][d$]=!0;var b$={type:"bulleted-list",renderElem:y$("bulleted-list")},x$={type:"numbered-list",renderElem:y$("numbered-list")},w$={type:"list-item",renderElem:y$("list-item")};function C$(t){var e=v$(t);return function(t,n){return"<"+e+">"+n+"</"+e+">"}}var S$={type:"bulleted-list",elemToHtml:C$("bulleted-list")},A$={type:"numbered-list",elemToHtml:C$("numbered-list")},E$={type:"list-item",elemToHtml:C$("list-item")},k$=XU(XU.bind),D$=Array.isArray||function(t){return"Array"==QU(t)},F$={};F$[zV("toStringTag")]="z";var M$="[object z]"===String(F$),O$=zV("toStringTag"),T$=PU.Object,B$="Arguments"==QU(function(){return arguments}()),_$=M$?QU:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=T$(t),O$))?n:B$?QU(e):"Object"==(r=QU(e))&&iV(e.callee)?"Arguments":r},I$=function(){},P$=[],L$=sV("Reflect","construct"),R$=/^\s*(?:class|function)\b/,N$=XU(R$.exec),j$=!R$.exec(I$),z$=function(t){if(!iV(t))return!1;try{return L$(I$,P$,t),!0}catch(t){return!1}},U$=!L$||LU((function(){var t;return z$(z$.call)||!z$(Object)||!z$((function(){t=!0}))||t}))?function(t){if(!iV(t))return!1;switch(_$(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return j$||!!N$(R$,lH(t))}:z$,V$=zV("species"),H$=PU.Array,$$=function(t,e){return new(function(t){var e;return D$(t)&&(e=t.constructor,(U$(e)&&(e===H$||D$(e.prototype))||oV(e)&&null===(e=e[V$]))&&(e=void 0)),void 0===e?H$:e}(t))(0===e?0:e)},G$=XU([].push),W$=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=7==t,s=5==t||o;return function(l,u,c,h){for(var f,p,d=MV(l),g=tV(d),v=function(t,e){return wV(t),void 0===e?t:k$?k$(t,e):function(){return t.apply(e,arguments)}}(u,c),m=PH(g),y=0,b=h||$$,x=e?b(l,m):n||a?b(l,0):void 0;m>y;y++)if((s||y in g)&&(p=v(f=g[y],y,d),t))if(e)x[y]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return y;case 2:G$(x,f)}else switch(t){case 4:return!1;case 7:G$(x,f)}return o?-1:r||i?i:x}},q$={forEach:W$(0),map:W$(1),filter:W$(2),some:W$(3),every:W$(4),find:W$(5),findIndex:W$(6),filterReject:W$(7)},X$=zV("species"),Z$=function(t){return dV>=51||!LU((function(){var e=[];return(e.constructor={})[X$]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Y$=q$.filter;n$({target:"Array",proto:!0,forced:!Z$("filter")},{filter:function(t){return Y$(this,t,arguments.length>1?arguments[1]:void 0)}});var Q$=M$?{}.toString:function(){return"[object "+_$(this)+"]"};M$||DH(Object.prototype,"toString",Q$,{unsafe:!0});var K$,J$,tG=PU.String,eG=function(t){if("Symbol"===_$(t))throw TypeError("Cannot convert a Symbol value to a string");return tG(t)},nG=function(){var t=JV(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},rG=PU.RegExp,iG=LU((function(){var t=rG("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),oG=iG||LU((function(){return!rG("a","y").sticky})),aG={BROKEN_CARET:iG||LU((function(){var t=rG("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:oG,UNSUPPORTED_Y:iG},sG=PU.RegExp,lG=LU((function(){var t=sG(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),uG=PU.RegExp,cG=LU((function(){var t=uG("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),hG=CH.get,fG=DV("native-string-replace",String.prototype.replace),pG=RegExp.prototype.exec,dG=pG,gG=XU("".charAt),vG=XU("".indexOf),mG=XU("".replace),yG=XU("".slice),bG=(J$=/b*/g,jU(pG,K$=/a/,"a"),jU(pG,J$,"a"),0!==K$.lastIndex||0!==J$.lastIndex),xG=aG.BROKEN_CARET,wG=void 0!==/()??/.exec("")[1];(bG||wG||xG||lG||cG)&&(dG=function(t){var e,n,r,i,o,a,s,l=this,u=hG(l),c=eG(t),h=u.raw;if(h)return h.lastIndex=l.lastIndex,e=jU(dG,h,c),l.lastIndex=h.lastIndex,e;var f=u.groups,p=xG&&l.sticky,d=jU(nG,l),g=l.source,v=0,m=c;if(p&&(d=mG(d,"y",""),-1===vG(d,"g")&&(d+="g"),m=yG(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==gG(c,l.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",d)),wG&&(n=new RegExp("^"+g+"$(?!\\s)",d)),bG&&(r=l.lastIndex),i=jU(pG,p?n:l,m),p?i?(i.input=yG(i.input,v),i[0]=yG(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:bG&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),wG&&i&&i.length>1&&jU(fG,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&f)for(i.groups=a=h$(null),o=0;o<f.length;o++)a[(s=f[o])[0]]=i[s[1]];return i});var CG=dG;n$({target:"RegExp",proto:!0,forced:/./.exec!==CG},{exec:CG});var SG=Function.prototype,AG=SG.apply,EG=SG.bind,kG=SG.call,DG="object"==typeof Reflect&&Reflect.apply||(EG?kG.bind(AG):function(){return kG.apply(AG,arguments)}),FG=zV("species"),MG=RegExp.prototype,OG=XU("".charAt),TG=XU("".charCodeAt),BG=XU("".slice),_G=function(t){return function(e,n){var r,i,o=eG(nV(e)),a=OH(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=TG(o,a))<55296||r>56319||a+1===s||(i=TG(o,a+1))<56320||i>57343?t?OG(o,a):r:t?BG(o,a,a+2):i-56320+(r-55296<<10)+65536}},IG={codeAt:_G(!1),charAt:_G(!0)}.charAt,PG=function(t,e,n){return e+(n?IG(t,e).length:1)},LG=Math.floor,RG=XU("".charAt),NG=XU("".replace),jG=XU("".slice),zG=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,UG=/\$([$&'`]|\d{1,2})/g,VG=function(t,e,n,r,i,o){var a=n+t.length,s=r.length,l=UG;return void 0!==i&&(i=MV(i),l=zG),NG(o,l,(function(o,l){var u;switch(RG(l,0)){case"$":return"$";case"&":return t;case"`":return jG(e,0,n);case"'":return jG(e,a);case"<":u=i[jG(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>s){var h=LG(c/10);return 0===h?o:h<=s?void 0===r[h-1]?RG(l,1):r[h-1]+RG(l,1):o}u=r[c-1]}return void 0===u?"":u}))},HG=PU.TypeError,$G=function(t,e){var n=t.exec;if(iV(n)){var r=jU(n,t,e);return null!==r&&JV(r),r}if("RegExp"===QU(t))return jU(CG,t,e);throw HG("RegExp#exec called on incompatible receiver")},GG=zV("replace"),WG=Math.max,qG=Math.min,XG=XU([].concat),ZG=XU([].push),YG=XU("".indexOf),QG=XU("".slice),KG="$0"==="a".replace(/./,"$0"),JG=!!/./[GG]&&""===/./[GG]("a","$0");!function(t,e,n,r){var i=zV(t),o=!LU((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=o&&!LU((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[FG]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!o||!a||n){var s=XU(/./[i]),l=e(i,""[t],(function(t,e,n,r,i){var a=XU(t),l=e.exec;return l===CG||l===MG.exec?o&&!i?{done:!0,value:s(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));DH(String.prototype,t,l[0]),DH(MG,i,l[1])}r&&rH(MG[i],"sham",!0)}("replace",(function(t,e,n){var r=JG?"$":"$0";return[function(t,n){var r=nV(this),i=null==t?void 0:CV(t,GG);return i?jU(i,t,r,n):jU(e,eG(r),t,n)},function(t,i){var o=JV(this),a=eG(t);if("string"==typeof i&&-1===YG(i,r)&&-1===YG(i,"$<")){var s=n(e,o,a,i);if(s.done)return s.value}var l=iV(i);l||(i=eG(i));var u=o.global;if(u){var c=o.unicode;o.lastIndex=0}for(var h=[];;){var f=$G(o,a);if(null===f)break;if(ZG(h,f),!u)break;""===eG(f[0])&&(o.lastIndex=PG(a,IH(o.lastIndex),c))}for(var p,d="",g=0,v=0;v<h.length;v++){for(var m=eG((f=h[v])[0]),y=WG(qG(OH(f.index),a.length),0),b=[],x=1;x<f.length;x++)ZG(b,void 0===(p=f[x])?p:String(p));var w=f.groups;if(l){var C=XG([m],b,y,a);void 0!==w&&ZG(C,w);var S=eG(DG(i,void 0,C))}else S=VG(m,a,y,b,w,i);y>=g&&(d+=QG(a,g,y)+S,g=y+m.length)}return d+QG(a,g)}]}),!!LU((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!KG||JG),n$({global:!0},{globalThis:PU});var tW={selector:"li",parseElemHtml:function(t,e,n){var r=eo(t);return 0===(e=e.filter((function(t){return!!En.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"list-item",children:e}}},eW={selector:"ul",parseElemHtml:function(t,e,n){return{type:"bulleted-list",children:e.filter((function(t){return"list-item"===Dw.getNodeType(t)}))}}},nW={selector:"ol",parseElemHtml:function(t,e,n){return{type:"numbered-list",children:e.filter((function(t){return"list-item"===Dw.getNodeType(t)}))}}},rW=function(t,e){return rW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},rW(t,e)
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function iW(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}rW(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function oW(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var aW,sW=function(){function t(){this.tag="button"}return t.prototype.getListNode=function(t){var e=this.type;return Dw.getSelectedNodeByType(t,e)},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!!this.getListNode(t)},t.prototype.isDisabled=function(t){return null==t.selection||!!Dw.getSelectedElems(t).some((function(e){if(Je.isVoid(t,e)&&Je.isBlock(t,e))return!0;var n=e.type;return!!["pre","code","table"].includes(n)||void 0}))},t.prototype.getMatchListType=function(t){var e=oW(Je.nodes(t,{match:function(t){return m$(t)},universal:!0}),1),n=e[0];if(null==n)return"";var r=oW(n,1)[0];return Dw.getNodeType(r)},t.prototype.exec=function(t,e){var n=this.type,r=this.isActive(t);$n.unwrapNodes(t,{match:function(t){return m$(t)},split:!0}),$n.setNodes(t,{type:r?"paragraph":"list-item"});var i={type:n,children:[]};r||$n.wrapNodes(t,i);var o=this.getMatchListType(t);""!=o&&o!==n&&$n.wrapNodes(t,i)},t}(),lW='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',uW='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',cW=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bulleted-list",e.title=ED("listModule.unOrderedList"),e.iconSvg=lW,e}return iW(e,t),e}(sW),hW=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="numbered-list",e.title=ED("listModule.orderedList"),e.iconSvg=uW,e}return iW(e,t),e}(sW),fW={key:"bulletedList",factory:function(){return new cW}},pW={key:"numberedList",factory:function(){return new hW}},dW=/"/g,gW=XU("".replace);n$({target:"String",proto:!0,forced:(aW="anchor",LU((function(){var t=""[aW]('"');return t!==t.toLowerCase()||t.split('"').length>3})))},{anchor:function(t){return e="a",n="name",r=t,i=eG(nV(this)),o="<"+e,""!==n&&(o+=" "+n+'="'+gW(eG(r),dW,""")+'"'),o+">"+i+"</"+e+">";var e,n,r,i,o}});var vW=function(t,e,n){var r=$V(e);r in t?nH.f(t,r,HU(0,n)):t[r]=n},mW=zV("isConcatSpreadable"),yW=PU.TypeError,bW=dV>=51||!LU((function(){var t=[];return t[mW]=!1,t.concat()[0]!==t})),xW=Z$("concat"),wW=function(t){if(!oV(t))return!1;var e=t[mW];return void 0!==e?!!e:D$(t)};n$({target:"Array",proto:!0,forced:!bW||!xW},{concat:function(t){var e,n,r,i,o,a=MV(this),s=$$(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(wW(o=-1===e?a:arguments[e])){if(l+(i=PH(o))>9007199254740991)throw yW("Maximum allowed index exceeded");for(n=0;n<i;n++,l++)n in o&&vW(s,l,o[n])}else{if(l>=9007199254740991)throw yW("Maximum allowed index exceeded");vW(s,l++,o)}return s.length=l,s}});var CW={renderElems:[b$,x$,w$],elemsToHtml:[S$,A$,E$],parseElemsHtml:[tW,nW,eW],menus:[fW,pW],editorPlugin:function(t){var e=t.insertBreak,n=t.deleteBackward;t.insertNode;var r=t;return r.insertBreak=function(){var t=r.selection;if(null!=t){var n=Dw.getSelectedNodeByType(r,"list-item");if(null!=n){var i=Dw.getParentNode(r,n),o=(null==i?void 0:i.children)||[];if(n===o[o.length-1]&&""===on.string(n)){$n.removeNodes(r,{match:function(t){return Dw.checkNodeType(t,"list-item")}});var a=[t.anchor.path[0]+1];return $n.insertNodes(r,Dw.genEmptyParagraph(),{at:a}),void r.select({path:a.concat(0),offset:0})}e()}else e()}else e()},r.deleteBackward=function(t){var e=function(t){var e=oW(Je.nodes(t,{match:function(e){return t.children[0]===e},mode:"highest"}),1),n=e[0];if(null==n)return!1;var r=n[0];return!(!qe.isElement(r)||on.string(r)||!m$(r)||($n.unwrapNodes(t,{match:function(t){return m$(t)},split:!0}),$n.setNodes(t,{type:"paragraph"}),0))}(r);e||n(t)},r}},SW=Wn((function(t,e){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",h="[object Date]",f="[object Error]",p="[object Function]",d="[object GeneratorFunction]",g="[object Map]",v="[object Number]",m="[object Null]",y="[object Object]",b="[object Promise]",x="[object Proxy]",w="[object RegExp]",C="[object Set]",S="[object String]",A="[object Symbol]",E="[object Undefined]",k="[object WeakMap]",D="[object ArrayBuffer]",F="[object DataView]",M="[object Float32Array]",O="[object Float64Array]",T="[object Int8Array]",B="[object Int16Array]",_="[object Int32Array]",I="[object Uint8Array]",P="[object Uint8ClampedArray]",L="[object Uint16Array]",R="[object Uint32Array]",N=/[\\^$.*+?()[\]{}|]/g,j=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,U={};U[M]=U[O]=U[T]=U[B]=U[_]=U[I]=U[P]=U[L]=U[R]=!0,U[s]=U[l]=U[D]=U[c]=U[F]=U[h]=U[f]=U[p]=U[g]=U[v]=U[y]=U[w]=U[C]=U[S]=U[k]=!1;var V="object"==typeof Gn&&Gn&&Gn.Object===Object&&Gn,H="object"==typeof self&&self&&self.Object===Object&&self,$=V||H||Function("return this")(),G=e&&!e.nodeType&&e,W=G&&t&&!t.nodeType&&t,q=W&&W.exports===G,X=q&&V.process,Z=function(){try{return X&&X.binding&&X.binding("util")}catch(act){}}(),Y=Z&&Z.isTypedArray;function Q(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function K(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}function J(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}function tt(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}function et(t){return function(e){return t(e)}}function nt(t,e){return t.has(e)}function rt(t,e){return null==t?void 0:t[e]}function it(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function ot(t,e){return function(n){return t(e(n))}}function at(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var st=Array.prototype,lt=Function.prototype,ut=Object.prototype,ct=$["__core-js_shared__"],ht=lt.toString,ft=ut.hasOwnProperty,pt=function(){var t=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),dt=ut.toString,gt=RegExp("^"+ht.call(ft).replace(N,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=q?$.Buffer:void 0,mt=$.Symbol,yt=$.Uint8Array,bt=ut.propertyIsEnumerable,xt=st.splice,wt=mt?mt.toStringTag:void 0,Ct=Object.getOwnPropertySymbols,St=vt?vt.isBuffer:void 0,At=ot(Object.keys,Object),Et=ke($,"DataView"),kt=ke($,"Map"),Dt=ke($,"Promise"),Ft=ke($,"Set"),Mt=ke($,"WeakMap"),Ot=ke(Object,"create"),Tt=Pe(Et),Bt=Pe(kt),_t=Pe(Dt),It=Pe(Ft),Pt=Pe(Mt),Lt=mt?mt.prototype:void 0,Rt=Lt?Lt.valueOf:void 0;function Nt(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function jt(){this.__data__=Ot?Ot(null):{},this.size=0}function zt(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Ut(t){var e=this.__data__;if(Ot){var n=e[t];return n===r?void 0:n}return ft.call(e,t)?e[t]:void 0}function Vt(t){var e=this.__data__;return Ot?void 0!==e[t]:ft.call(e,t)}function Ht(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ot&&void 0===e?r:e,this}function $t(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Gt(){this.__data__=[],this.size=0}function Wt(t){var e=this.__data__,n=fe(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():xt.call(e,n,1),--this.size,!0}function qt(t){var e=this.__data__,n=fe(e,t);return n<0?void 0:e[n][1]}function Xt(t){return fe(this.__data__,t)>-1}function Zt(t,e){var n=this.__data__,r=fe(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Yt(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Qt(){this.size=0,this.__data__={hash:new Nt,map:new(kt||$t),string:new Nt}}function Kt(t){var e=Ee(this,t)["delete"](t);return this.size-=e?1:0,e}function Jt(t){return Ee(this,t).get(t)}function te(t){return Ee(this,t).has(t)}function ee(t,e){var n=Ee(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function ne(t){var e=-1,n=null==t?0:t.length;this.__data__=new Yt;while(++e<n)this.add(t[e])}function re(t){return this.__data__.set(t,r),this}function ie(t){return this.__data__.has(t)}function oe(t){var e=this.__data__=new $t(t);this.size=e.size}function ae(){this.__data__=new $t,this.size=0}function se(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}function le(t){return this.__data__.get(t)}function ue(t){return this.__data__.has(t)}function ce(t,e){var r=this.__data__;if(r instanceof $t){var i=r.__data__;if(!kt||i.length<n-1)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new Yt(i)}return r.set(t,e),this.size=r.size,this}function he(t,e){var n=Ne(t),r=!n&&Re(t),i=!n&&!r&&ze(t),o=!n&&!r&&!i&&We(t),a=n||r||i||o,s=a?tt(t.length,String):[],l=s.length;for(var u in t)!e&&!ft.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Oe(u,l))||s.push(u);return s}function fe(t,e){var n=t.length;while(n--)if(Le(t[n][0],e))return n;return-1}function pe(t,e,n){var r=e(t);return Ne(t)?r:K(r,n(t))}function de(t){return null==t?void 0===t?E:m:wt&&wt in Object(t)?De(t):Ie(t)}function ge(t){return Ge(t)&&de(t)==s}function ve(t,e,n,r,i){return t===e||(null==t||null==e||!Ge(t)&&!Ge(e)?t!==t&&e!==e:me(t,e,n,r,ve,i))}function me(t,e,n,r,o,a){var u=Ne(t),c=Ne(e),h=u?l:Me(t),f=c?l:Me(e);h=h==s?y:h,f=f==s?y:f;var p=h==y,d=f==y,g=h==f;if(g&&ze(t)){if(!ze(e))return!1;u=!0,p=!1}if(g&&!p)return a||(a=new oe),u||We(t)?we(t,e,n,r,o,a):Ce(t,e,h,n,r,o,a);if(!(n&i)){var v=p&&ft.call(t,"__wrapped__"),m=d&&ft.call(e,"__wrapped__");if(v||m){var b=v?t.value():t,x=m?e.value():e;return a||(a=new oe),o(b,x,n,r,a)}}return!!g&&(a||(a=new oe),Se(t,e,n,r,o,a))}function ye(t){if(!$e(t)||Be(t))return!1;var e=Ve(t)?gt:j;return e.test(Pe(t))}function be(t){return Ge(t)&&He(t.length)&&!!U[de(t)]}function xe(t){if(!_e(t))return At(t);var e=[];for(var n in Object(t))ft.call(t,n)&&"constructor"!=n&&e.push(n);return e}function we(t,e,n,r,a,s){var l=n&i,u=t.length,c=e.length;if(u!=c&&!(l&&c>u))return!1;var h=s.get(t);if(h&&s.get(e))return h==e;var f=-1,p=!0,d=n&o?new ne:void 0;s.set(t,e),s.set(e,t);while(++f<u){var g=t[f],v=e[f];if(r)var m=l?r(v,g,f,e,t,s):r(g,v,f,t,e,s);if(void 0!==m){if(m)continue;p=!1;break}if(d){if(!J(e,(function(t,e){if(!nt(d,e)&&(g===t||a(g,t,n,r,s)))return d.push(e)}))){p=!1;break}}else if(g!==v&&!a(g,v,n,r,s)){p=!1;break}}return s["delete"](t),s["delete"](e),p}function Ce(t,e,n,r,a,s,l){switch(n){case F:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case D:return!(t.byteLength!=e.byteLength||!s(new yt(t),new yt(e)));case c:case h:case v:return Le(+t,+e);case f:return t.name==e.name&&t.message==e.message;case w:case S:return t==e+"";case g:var u=it;case C:var p=r&i;if(u||(u=at),t.size!=e.size&&!p)return!1;var d=l.get(t);if(d)return d==e;r|=o,l.set(t,e);var m=we(u(t),u(e),r,a,s,l);return l["delete"](t),m;case A:if(Rt)return Rt.call(t)==Rt.call(e)}return!1}function Se(t,e,n,r,o,a){var s=n&i,l=Ae(t),u=l.length,c=Ae(e),h=c.length;if(u!=h&&!s)return!1;var f=u;while(f--){var p=l[f];if(!(s?p in e:ft.call(e,p)))return!1}var d=a.get(t);if(d&&a.get(e))return d==e;var g=!0;a.set(t,e),a.set(e,t);var v=s;while(++f<u){p=l[f];var m=t[p],y=e[p];if(r)var b=s?r(y,m,p,e,t,a):r(m,y,p,t,e,a);if(!(void 0===b?m===y||o(m,y,n,r,a):b)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var x=t.constructor,w=e.constructor;x==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(g=!1)}return a["delete"](t),a["delete"](e),g}function Ae(t){return pe(t,qe,Fe)}function Ee(t,e){var n=t.__data__;return Te(e)?n["string"==typeof e?"string":"hash"]:n.map}function ke(t,e){var n=rt(t,e);return ye(n)?n:void 0}function De(t){var e=ft.call(t,wt),n=t[wt];try{t[wt]=void 0;var r=!0}catch(act){}var i=dt.call(t);return r&&(e?t[wt]=n:delete t[wt]),i}Nt.prototype.clear=jt,Nt.prototype["delete"]=zt,Nt.prototype.get=Ut,Nt.prototype.has=Vt,Nt.prototype.set=Ht,$t.prototype.clear=Gt,$t.prototype["delete"]=Wt,$t.prototype.get=qt,$t.prototype.has=Xt,$t.prototype.set=Zt,Yt.prototype.clear=Qt,Yt.prototype["delete"]=Kt,Yt.prototype.get=Jt,Yt.prototype.has=te,Yt.prototype.set=ee,ne.prototype.add=ne.prototype.push=re,ne.prototype.has=ie,oe.prototype.clear=ae,oe.prototype["delete"]=se,oe.prototype.get=le,oe.prototype.has=ue,oe.prototype.set=ce;var Fe=Ct?function(t){return null==t?[]:(t=Object(t),Q(Ct(t),(function(e){return bt.call(t,e)})))}:Xe,Me=de;function Oe(t,e){return e=null==e?a:e,!!e&&("number"==typeof t||z.test(t))&&t>-1&&t%1==0&&t<e}function Te(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Be(t){return!!pt&&pt in t}function _e(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||ut;return t===n}function Ie(t){return dt.call(t)}function Pe(t){if(null!=t){try{return ht.call(t)}catch(act){}try{return t+""}catch(act){}}return""}function Le(t,e){return t===e||t!==t&&e!==e}(Et&&Me(new Et(new ArrayBuffer(1)))!=F||kt&&Me(new kt)!=g||Dt&&Me(Dt.resolve())!=b||Ft&&Me(new Ft)!=C||Mt&&Me(new Mt)!=k)&&(Me=function(t){var e=de(t),n=e==y?t.constructor:void 0,r=n?Pe(n):"";if(r)switch(r){case Tt:return F;case Bt:return g;case _t:return b;case It:return C;case Pt:return k}return e});var Re=ge(function(){return arguments}())?ge:function(t){return Ge(t)&&ft.call(t,"callee")&&!bt.call(t,"callee")},Ne=Array.isArray;function je(t){return null!=t&&He(t.length)&&!Ve(t)}var ze=St||Ze;function Ue(t,e){return ve(t,e)}function Ve(t){if(!$e(t))return!1;var e=de(t);return e==p||e==d||e==u||e==x}function He(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=a}function $e(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ge(t){return null!=t&&"object"==typeof t}var We=Y?et(Y):be;function qe(t){return je(t)?he(t):xe(t)}function Xe(){return[]}function Ze(){return!1}t.exports=Ue}));AD("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),AD("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var AW="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function EW(t){var e={exports:{}};return t(e,e.exports),e.exports}var kW,DW,FW=function(t){return t&&t.Math==Math&&t},MW=FW("object"==typeof globalThis&&globalThis)||FW("object"==typeof window&&window)||FW("object"==typeof self&&self)||FW("object"==typeof AW&&AW)||function(){return this}()||Function("return this")(),OW=function(t){try{return!!t()}catch(t){return!0}},TW=!OW((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),BW=Function.prototype.call,_W=BW.bind?BW.bind(BW):function(){return BW.apply(BW,arguments)},IW={}.propertyIsEnumerable,PW=Object.getOwnPropertyDescriptor,LW={f:PW&&!IW.call({1:2},1)?function(t){var e=PW(this,t);return!!e&&e.enumerable}:IW},RW=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},NW=Function.prototype,jW=NW.bind,zW=NW.call,UW=jW&&jW.bind(zW),VW=jW?function(t){return t&&UW(zW,t)}:function(t){return t&&function(){return zW.apply(t,arguments)}},HW=VW({}.toString),$W=VW("".slice),GW=function(t){return $W(HW(t),8,-1)},WW=MW.Object,qW=VW("".split),XW=OW((function(){return!WW("z").propertyIsEnumerable(0)}))?function(t){return"String"==GW(t)?qW(t,""):WW(t)}:WW,ZW=MW.TypeError,YW=function(t){if(null==t)throw ZW("Can't call method on "+t);return t},QW=function(t){return XW(YW(t))},KW=function(t){return"function"==typeof t},JW=function(t){return"object"==typeof t?null!==t:KW(t)},tq=function(t){return KW(t)?t:void 0},eq=function(t,e){return arguments.length<2?tq(MW[t]):MW[t]&&MW[t][e]},nq=VW({}.isPrototypeOf),rq=eq("navigator","userAgent")||"",iq=MW.process,oq=MW.Deno,aq=iq&&iq.versions||oq&&oq.version,sq=aq&&aq.v8;sq&&(DW=(kW=sq.split("."))[0]>0&&kW[0]<4?1:+(kW[0]+kW[1])),!DW&&rq&&(!(kW=rq.match(/Edge\/(\d+)/))||kW[1]>=74)&&(kW=rq.match(/Chrome\/(\d+)/))&&(DW=+kW[1]);var lq=DW,uq=!!Object.getOwnPropertySymbols&&!OW((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&lq&&lq<41})),cq=uq&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,hq=MW.Object,fq=cq?function(t){return"symbol"==typeof t}:function(t){var e=eq("Symbol");return KW(e)&&nq(e.prototype,hq(t))},pq=MW.String,dq=function(t){try{return pq(t)}catch(t){return"Object"}},gq=MW.TypeError,vq=function(t){if(KW(t))return t;throw gq(dq(t)+" is not a function")},mq=function(t,e){var n=t[e];return null==n?void 0:vq(n)},yq=MW.TypeError,bq=Object.defineProperty,xq=function(t,e){try{bq(MW,t,{value:e,configurable:!0,writable:!0})}catch(it){MW[t]=e}return e},wq=MW["__core-js_shared__"]||xq("__core-js_shared__",{}),Cq=EW((function(t){(t.exports=function(t,e){return wq[t]||(wq[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Sq=MW.Object,Aq=function(t){return Sq(YW(t))},Eq=VW({}.hasOwnProperty),kq=Object.hasOwn||function(t,e){return Eq(Aq(t),e)},Dq=0,Fq=Math.random(),Mq=VW(1..toString),Oq=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Mq(++Dq+Fq,36)},Tq=Cq("wks"),Bq=MW.Symbol,_q=Bq&&Bq.for,Iq=cq?Bq:Bq&&Bq.withoutSetter||Oq,Pq=function(t){if(!kq(Tq,t)||!uq&&"string"!=typeof Tq[t]){var e="Symbol."+t;uq&&kq(Bq,t)?Tq[t]=Bq[t]:Tq[t]=cq&&_q?_q(e):Iq(e)}return Tq[t]},Lq=MW.TypeError,Rq=Pq("toPrimitive"),Nq=function(t,e){if(!JW(t)||fq(t))return t;var n,r=mq(t,Rq);if(r){if(void 0===e&&(e="default"),n=_W(r,t,e),!JW(n)||fq(n))return n;throw Lq("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&KW(n=t.toString)&&!JW(r=_W(n,t)))return r;if(KW(n=t.valueOf)&&!JW(r=_W(n,t)))return r;if("string"!==e&&KW(n=t.toString)&&!JW(r=_W(n,t)))return r;throw yq("Can't convert object to primitive value")}(t,e)},jq=function(t){var e=Nq(t,"string");return fq(e)?e:e+""},zq=MW.document,Uq=JW(zq)&&JW(zq.createElement),Vq=function(t){return Uq?zq.createElement(t):{}},Hq=!TW&&!OW((function(){return 7!=Object.defineProperty(Vq("div"),"a",{get:function(){return 7}}).a})),$q=Object.getOwnPropertyDescriptor,Gq={f:TW?$q:function(t,e){if(t=QW(t),e=jq(e),Hq)try{return $q(t,e)}catch(t){}if(kq(t,e))return RW(!_W(LW.f,t,e),t[e])}},Wq=MW.String,qq=MW.TypeError,Xq=function(t){if(JW(t))return t;throw qq(Wq(t)+" is not an object")},Zq=MW.TypeError,Yq=Object.defineProperty,Qq={f:TW?Yq:function(t,e,n){if(Xq(t),e=jq(e),Xq(n),Hq)try{return Yq(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Zq("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Kq=TW?function(t,e,n){return Qq.f(t,e,RW(1,n))}:function(t,e,n){return t[e]=n,t},Jq=VW(Function.toString);KW(wq.inspectSource)||(wq.inspectSource=function(t){return Jq(t)});var tX,eX,nX,rX=wq.inspectSource,iX=MW.WeakMap,oX=KW(iX)&&/native code/.test(rX(iX)),aX=Cq("keys"),sX=function(t){return aX[t]||(aX[t]=Oq(t))},lX={},uX=MW.TypeError,cX=MW.WeakMap;if(oX||wq.state){var hX=wq.state||(wq.state=new cX),fX=VW(hX.get),pX=VW(hX.has),dX=VW(hX.set);tX=function(t,e){if(pX(hX,t))throw new uX("Object already initialized");return e.facade=t,dX(hX,t,e),e},eX=function(t){return fX(hX,t)||{}},nX=function(t){return pX(hX,t)}}else{var gX=sX("state");lX[gX]=!0,tX=function(t,e){if(kq(t,gX))throw new uX("Object already initialized");return e.facade=t,Kq(t,gX,e),e},eX=function(t){return kq(t,gX)?t[gX]:{}},nX=function(t){return kq(t,gX)}}var vX={set:tX,get:eX,has:nX,enforce:function(t){return nX(t)?eX(t):tX(t,{})},getterFor:function(t){return function(e){var n;if(!JW(e)||(n=eX(e)).type!==t)throw uX("Incompatible receiver, "+t+" required");return n}}},mX=Function.prototype,yX=TW&&Object.getOwnPropertyDescriptor,bX=kq(mX,"name"),xX={EXISTS:bX,PROPER:bX&&"something"===function(){}.name,CONFIGURABLE:bX&&(!TW||TW&&yX(mX,"name").configurable)},wX=EW((function(t){var e=xX.CONFIGURABLE,n=vX.get,r=vX.enforce,i=String(String).split("String");(t.exports=function(t,n,o,a){var s,l=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,h=a&&void 0!==a.name?a.name:n;KW(o)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!kq(o,"name")||e&&o.name!==h)&&Kq(o,"name",h),(s=r(o)).source||(s.source=i.join("string"==typeof h?h:""))),t!==MW?(l?!c&&t[n]&&(u=!0):delete t[n],u?t[n]=o:Kq(t,n,o)):u?t[n]=o:xq(n,o)})(Function.prototype,"toString",(function(){return KW(this)&&n(this).source||rX(this)}))})),CX=Math.ceil,SX=Math.floor,AX=function(t){var e=+t;return e!=e||0===e?0:(e>0?SX:CX)(e)},EX=Math.max,kX=Math.min,DX=function(t,e){var n=AX(t);return n<0?EX(n+e,0):kX(n,e)},FX=Math.min,MX=function(t){return t>0?FX(AX(t),9007199254740991):0},OX=function(t){return MX(t.length)},TX=function(t){return function(e,n,r){var i,o=QW(e),a=OX(o),s=DX(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},BX={includes:TX(!0),indexOf:TX(!1)}.indexOf,_X=VW([].push),IX=function(t,e){var n,r=QW(t),i=0,o=[];for(n in r)!kq(lX,n)&&kq(r,n)&&_X(o,n);for(;e.length>i;)kq(r,n=e[i++])&&(~BX(o,n)||_X(o,n));return o},PX=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],LX=PX.concat("length","prototype"),RX={f:Object.getOwnPropertyNames||function(t){return IX(t,LX)}},NX={f:Object.getOwnPropertySymbols},jX=VW([].concat),zX=eq("Reflect","ownKeys")||function(t){var e=RX.f(Xq(t)),n=NX.f;return n?jX(e,n(t)):e},UX=function(t,e){for(var n=zX(e),r=Qq.f,i=Gq.f,o=0;o<n.length;o++){var a=n[o];kq(t,a)||r(t,a,i(e,a))}},VX=/#|\.prototype\./,HX=function(t,e){var n=GX[$X(t)];return n==qX||n!=WX&&(KW(e)?OW(e):!!e)},$X=HX.normalize=function(t){return String(t).replace(VX,".").toLowerCase()},GX=HX.data={},WX=HX.NATIVE="N",qX=HX.POLYFILL="P",XX=HX,ZX=Gq.f,YX=function(t,e){var n,r,i,o,a,s=t.target,l=t.global,u=t.stat;if(n=l?MW:u?MW[s]||xq(s,{}):(MW[s]||{}).prototype)for(r in e){if(o=e[r],i=t.noTargetGet?(a=ZX(n,r))&&a.value:n[r],!XX(l?r:s+(u?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;UX(o,i)}(t.sham||i&&i.sham)&&Kq(o,"sham",!0),wX(n,r,o,t)}},QX={};QX[Pq("toStringTag")]="z";var KX,JX="[object z]"===String(QX),tZ=Pq("toStringTag"),eZ=MW.Object,nZ="Arguments"==GW(function(){return arguments}()),rZ=JX?GW:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=eZ(t),tZ))?n:nZ?GW(e):"Object"==(r=GW(e))&&KW(e.callee)?"Arguments":r},iZ=MW.String,oZ=function(t){if("Symbol"===rZ(t))throw TypeError("Cannot convert a Symbol value to a string");return iZ(t)},aZ=/"/g,sZ=VW("".replace);YX({target:"String",proto:!0,forced:(KX="anchor",OW((function(){var t=""[KX]('"');return t!==t.toLowerCase()||t.split('"').length>3})))},{anchor:function(t){return e="a",n="name",r=t,i=oZ(YW(this)),o="<"+e,""!==n&&(o+=" "+n+'="'+sZ(oZ(r),aZ,""")+'"'),o+">"+i+"</"+e+">";var e,n,r,i,o}});var lZ,uZ=function(){var t=Xq(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},cZ=MW.RegExp,hZ=OW((function(){var t=cZ("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),fZ=hZ||OW((function(){return!cZ("a","y").sticky})),pZ={BROKEN_CARET:hZ||OW((function(){var t=cZ("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:fZ,UNSUPPORTED_Y:hZ},dZ=Object.keys||function(t){return IX(t,PX)},gZ=TW?Object.defineProperties:function(t,e){Xq(t);for(var n,r=QW(e),i=dZ(e),o=i.length,a=0;o>a;)Qq.f(t,n=i[a++],r[n]);return t},vZ=eq("document","documentElement"),mZ=sX("IE_PROTO"),yZ=function(){},bZ=function(t){return"<script>"+t+"<\/script>"},xZ=function(t){t.write(bZ("")),t.close();var e=t.parentWindow.Object;return t=null,e},wZ=function(){try{lZ=new ActiveXObject("htmlfile")}catch(t){}var t,e;wZ="undefined"!=typeof document?document.domain&&lZ?xZ(lZ):((e=Vq("iframe")).style.display="none",vZ.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(bZ("document.F=Object")),t.close(),t.F):xZ(lZ);for(var n=PX.length;n--;)delete wZ.prototype[PX[n]];return wZ()};lX[mZ]=!0;var CZ,SZ,AZ=Object.create||function(t,e){var n;return null!==t?(yZ.prototype=Xq(t),n=new yZ,yZ.prototype=null,n[mZ]=t):n=wZ(),void 0===e?n:gZ(n,e)},EZ=MW.RegExp,kZ=OW((function(){var t=EZ(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),DZ=MW.RegExp,FZ=OW((function(){var t=DZ("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),MZ=vX.get,OZ=Cq("native-string-replace",String.prototype.replace),TZ=RegExp.prototype.exec,BZ=TZ,_Z=VW("".charAt),IZ=VW("".indexOf),PZ=VW("".replace),LZ=VW("".slice),RZ=(SZ=/b*/g,_W(TZ,CZ=/a/,"a"),_W(TZ,SZ,"a"),0!==CZ.lastIndex||0!==SZ.lastIndex),NZ=pZ.BROKEN_CARET,jZ=void 0!==/()??/.exec("")[1];(RZ||jZ||NZ||kZ||FZ)&&(BZ=function(t){var e,n,r,i,o,a,s,l=this,u=MZ(l),c=oZ(t),h=u.raw;if(h)return h.lastIndex=l.lastIndex,e=_W(BZ,h,c),l.lastIndex=h.lastIndex,e;var f=u.groups,p=NZ&&l.sticky,d=_W(uZ,l),g=l.source,v=0,m=c;if(p&&(d=PZ(d,"y",""),-1===IZ(d,"g")&&(d+="g"),m=LZ(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==_Z(c,l.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",d)),jZ&&(n=new RegExp("^"+g+"$(?!\\s)",d)),RZ&&(r=l.lastIndex),i=_W(TZ,p?n:l,m),p?i?(i.input=LZ(i.input,v),i[0]=LZ(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:RZ&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),jZ&&i&&i.length>1&&_W(OZ,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&f)for(i.groups=a=AZ(null),o=0;o<f.length;o++)a[(s=f[o])[0]]=i[s[1]];return i});var zZ=BZ;YX({target:"RegExp",proto:!0,forced:/./.exec!==zZ},{exec:zZ});var UZ=Array.isArray||function(t){return"Array"==GW(t)},VZ=function(){},HZ=[],$Z=eq("Reflect","construct"),GZ=/^\s*(?:class|function)\b/,WZ=VW(GZ.exec),qZ=!GZ.exec(VZ),XZ=function(t){if(!KW(t))return!1;try{return $Z(VZ,HZ,t),!0}catch(t){return!1}},ZZ=!$Z||OW((function(){var t;return XZ(XZ.call)||!XZ(Object)||!XZ((function(){t=!0}))||t}))?function(t){if(!KW(t))return!1;switch(rZ(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return qZ||!!WZ(GZ,rX(t))}:XZ,YZ=function(t,e,n){var r=jq(e);r in t?Qq.f(t,r,RW(0,n)):t[r]=n},QZ=Pq("species"),KZ=function(t){return lq>=51||!OW((function(){var e=[];return(e.constructor={})[QZ]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},JZ=VW([].slice),tY=KZ("slice"),eY=Pq("species"),nY=MW.Array,rY=Math.max;function iY(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function oY(t){var e=t.selection;if(null==e)return!1;var n=iY(Je.nodes(t,{match:function(t){return Dw.checkNodeType(t,"table-cell")}}),1)[0];if(n){var r=iY(n,2)[1],i=Je.start(t,r);if(pn.equals(e.anchor,i))return!0}return!1}function aY(t,e){var n,r,i=Je.nodes(t,{at:e,match:function(t){return"table"===Dw.getNodeType(t)}}),o=!1;try{for(var a=
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),s=a.next();!s.done;s=a.next())s.value,o=!0}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}YX({target:"Array",proto:!0,forced:!tY},{slice:function(t,e){var n,r,i,o=QW(this),a=OX(o),s=DX(t,a),l=DX(void 0===e?a:e,a);if(UZ(o)&&(n=o.constructor,(ZZ(n)&&(n===nY||UZ(n.prototype))||JW(n)&&null===(n=n[eY]))&&(n=void 0),n===nY||void 0===n))return JZ(o,s,l);for(r=new(void 0===n?nY:n)(rY(l-s,0)),i=0;s<l;s++,i++)s in o&&YZ(r,i,o[s]);return r.length=i,r}});var sY=VW(VW.bind),lY=Pq("species"),uY=MW.Array,cY=function(t,e){return new(function(t){var e;return UZ(t)&&(e=t.constructor,(ZZ(e)&&(e===uY||UZ(e.prototype))||JW(e)&&null===(e=e[lY]))&&(e=void 0)),void 0===e?uY:e}(t))(0===e?0:e)},hY=VW([].push),fY=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=7==t,s=5==t||o;return function(l,u,c,h){for(var f,p,d=Aq(l),g=XW(d),v=function(t,e){return vq(t),void 0===e?t:sY?sY(t,e):function(){return t.apply(e,arguments)}}(u,c),m=OX(g),y=0,b=h||cY,x=e?b(l,m):n||a?b(l,0):void 0;m>y;y++)if((s||y in g)&&(p=v(f=g[y],y,d),t))if(e)x[y]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return y;case 2:hY(x,f)}else switch(t){case 4:return!1;case 7:hY(x,f)}return o?-1:r||i?i:x}},pY={forEach:fY(0),map:fY(1),filter:fY(2),some:fY(3),every:fY(4),find:fY(5),findIndex:fY(6),filterReject:fY(7)},dY=pY.map;YX({target:"Array",proto:!0,forced:!KZ("map")},{map:function(t){return dY(this,t,arguments.length>1?arguments[1]:void 0)}});var gY=JX?{}.toString:function(){return"[object "+rZ(this)+"]"};function vY(t){var e=t.children||[];return 0===e.length?[]:(e[0]||{}).children||[]}function mY(t){return vY(t).every((function(t){return!!t.isHeader}))}JX||wX(Object.prototype,"toString",gY,{unsafe:!0});var yY=xX.PROPER,bY=RegExp.prototype,xY=bY.toString,wY=VW(uZ),CY=OW((function(){return"/a/b"!=xY.call({source:"a",flags:"b"})})),SY=yY&&"toString"!=xY.name;(CY||SY)&&wX(RegExp.prototype,"toString",(function(){var t=Xq(this),e=oZ(t.source),n=t.flags;return"/"+e+"/"+oZ(void 0===n&&nq(bY,t)&&!("flags"in bY)?wY(t):n)}),{unsafe:!0});var AY=Pq("unscopables"),EY=Array.prototype;null==EY[AY]&&Qq.f(EY,AY,{configurable:!0,value:AZ(null)});var kY,DY=pY.find,FY=!0;"find"in[]&&Array(1).find((function(){FY=!1})),YX({target:"Array",proto:!0,forced:FY},{find:function(t){return DY(this,t,arguments.length>1?arguments[1]:void 0)}}),kY="find",EY[AY][kY]=!0;var MY=Function.prototype,OY=MY.apply,TY=MY.bind,BY=MY.call,_Y="object"==typeof Reflect&&Reflect.apply||(TY?BY.bind(OY):function(){return BY.apply(OY,arguments)}),IY=Pq("species"),PY=RegExp.prototype,LY=function(t,e,n,r){var i=Pq(t),o=!OW((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=o&&!OW((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[IY]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!o||!a||n){var s=VW(/./[i]),l=e(i,""[t],(function(t,e,n,r,i){var a=VW(t),l=e.exec;return l===zZ||l===PY.exec?o&&!i?{done:!0,value:s(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));wX(String.prototype,t,l[0]),wX(PY,i,l[1])}r&&Kq(PY[i],"sham",!0)},RY=Pq("match"),NY=MW.TypeError,jY=Pq("species"),zY=function(t,e){var n,r=Xq(t).constructor;return void 0===r||null==(n=Xq(r)[jY])?e:function(t){if(ZZ(t))return t;throw NY(dq(t)+" is not a constructor")}(n)},UY=VW("".charAt),VY=VW("".charCodeAt),HY=VW("".slice),$Y=function(t){return function(e,n){var r,i,o=oZ(YW(e)),a=AX(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=VY(o,a))<55296||r>56319||a+1===s||(i=VY(o,a+1))<56320||i>57343?t?UY(o,a):r:t?HY(o,a,a+2):i-56320+(r-55296<<10)+65536}},GY={codeAt:$Y(!1),charAt:$Y(!0)}.charAt,WY=function(t,e,n){return e+(n?GY(t,e).length:1)},qY=MW.Array,XY=Math.max,ZY=function(t,e,n){for(var r=OX(t),i=DX(e,r),o=DX(void 0===n?r:n,r),a=qY(XY(o-i,0)),s=0;i<o;i++,s++)YZ(a,s,t[i]);return a.length=s,a},YY=MW.TypeError,QY=function(t,e){var n=t.exec;if(KW(n)){var r=_W(n,t,e);return null!==r&&Xq(r),r}if("RegExp"===GW(t))return _W(zZ,t,e);throw YY("RegExp#exec called on incompatible receiver")},KY=pZ.UNSUPPORTED_Y,JY=Math.min,tQ=[].push,eQ=VW(/./.exec),nQ=VW(tQ),rQ=VW("".slice);LY("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r,i,o=oZ(YW(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!JW(r=t)||!(void 0!==(i=r[RY])?i:"RegExp"==GW(r)))return _W(e,o,t,a);for(var s,l,u,c=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,p=new RegExp(t.source,h+"g");(s=_W(zZ,p,o))&&!((l=p.lastIndex)>f&&(nQ(c,rQ(o,f,s.index)),s.length>1&&s.index<o.length&&_Y(tQ,c,ZY(s,1)),u=s[0].length,f=l,c.length>=a));)p.lastIndex===s.index&&p.lastIndex++;return f===o.length?!u&&eQ(p,"")||nQ(c,""):nQ(c,rQ(o,f)),c.length>a?ZY(c,0,a):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:_W(e,this,t,n)}:e,[function(e,n){var i=YW(this),o=null==e?void 0:mq(e,t);return o?_W(o,e,i,n):_W(r,oZ(i),e,n)},function(t,i){var o=Xq(this),a=oZ(t),s=n(r,o,a,i,r!==e);if(s.done)return s.value;var l=zY(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(KY?"g":"y"),h=new l(KY?"^(?:"+o.source+")":o,c),f=void 0===i?4294967295:i>>>0;if(0===f)return[];if(0===a.length)return null===QY(h,a)?[a]:[];for(var p=0,d=0,g=[];d<a.length;){h.lastIndex=KY?0:d;var v,m=QY(h,KY?rQ(a,d):a);if(null===m||(v=JY(MX(h.lastIndex+(KY?d:0)),a.length))===p)d=WY(a,d,u);else{if(nQ(g,rQ(a,p,d)),g.length===f)return g;for(var y=1;y<=m.length-1;y++)if(nQ(g,m[y]),g.length===f)return g;d=p=v}}return nQ(g,rQ(a,p)),g}]}),!!OW((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),KY);var iQ="\t\n\v\f\r \u2028\u2029\ufeff",oQ=VW("".replace),aQ="["+iQ+"]",sQ=RegExp("^"+aQ+aQ+"*"),lQ=RegExp(aQ+aQ+"*$"),uQ=function(t){return function(e){var n=oZ(YW(e));return 1&t&&(n=oQ(n,sQ,"")),2&t&&(n=oQ(n,lQ,"")),n}},cQ={start:uQ(1),end:uQ(2),trim:uQ(3)},hQ=xX.PROPER,fQ=cQ.trim;function pQ(t){return t.length?t[0].tagName.toLowerCase():""}YX({target:"String",proto:!0,forced:function(t){return OW((function(){return!!iQ[t]()||"
"!=="
"[t]()||hQ&&iQ[t].name!==t}))}("trim")},{trim:function(){return fQ(this)}}),YX({global:!0},{globalThis:MW}),So&&(eo.fn.append=So),uo&&(eo.fn.on=uo),Io&&(eo.fn.focus=Io),oo&&(eo.fn.attr=oo),lo&&(eo.fn.val=lo),xo&&(eo.fn.html=xo),so&&(eo.fn.dataset=so),no&&(eo.fn.addClass=no),ro&&(eo.fn.removeClass=ro),Fo&&(eo.fn.children=Fo),yo&&(eo.fn.each=yo),Do&&(eo.fn.find=Do);var dQ=!1,gQ=0,vQ=0,mQ=null,yQ=null,bQ=eo("body");function xQ(t){dQ=!1,yQ=null,mQ=null,bQ.off("mousemove",wQ),bQ.off("mouseup",xQ)}bQ.on("mousedown",(function(t){var e=t.target;if(("TH"===e.tagName||"TD"===e.tagName)&&"col-resize"===e.style.cursor){e.style.cursor="auto",t.preventDefault(),dQ=!0;var n=t.clientX;gQ=n;var r=e.getBoundingClientRect().width;vQ=r,bQ.on("mousemove",wQ),bQ.on("mouseup",xQ)}}));var wQ=Na((function(t){if(dQ&&null!=yQ&&null!=mQ){t.preventDefault();var e=t.clientX,n=vQ+(e-gQ);(n=Math.floor(100*n)/100)<30&&(n=30),$n.setNodes(yQ,{width:n.toString()},{at:mQ})}}),100),CQ={type:"table",renderElem:function(t,e,n){var r=function(t,e){if(t.isDisabled())return!1;var n=t.selection;if(null==n)return!0;if(yn.isCollapsed(n))return!0;var r=n.anchor,i=n.focus,o=Dw.findPath(t,e),a=Je.start(t,o),s=Je.end(t,o),l=pn.compare(r,s)<=0&&pn.compare(r,a)>=0,u=pn.compare(i,s)<=0&&pn.compare(i,a)>=0;return!!(l&&u&&un.equals(r.path.slice(0,3),i.path.slice(0,3)))}(n,t),i=t.width,o=void 0===i?"auto":i,a=Dw.isNodeSelected(n,t),s=vY(t),l=Ls("div",{className:"table-container","data-selected":a,on:{mousedown:function(e){"DIV"===e.target.tagName&&e.preventDefault();var r=Dw.findPath(n,t),i=Je.start(n,r),o=n.selection;null!=o?o.anchor.path[0]!==r[0]&&n.select(i):n.select(i)}}},Ls("table",{width:o,contentEditable:r},Ls("colgroup",null,s.map((function(t){var e=t.width;return Ls("col",{width:void 0===e?"auto":e})}))),Ls("tbody",null,e)));return l}},SQ={type:"table-row",renderElem:function(t,e,n){return Ls("tr",null,e)}},AQ={type:"table-cell",renderElem:function(t,e,n){var r=function(t,e){var n=Dw.getParentNode(t,e);if(null==n)return!1;var r=Dw.getParentNode(t,n);return null!=r&&vY(r).some((function(t){return t===e}))}(n,t),i=t,o=i.colSpan,a=void 0===o?1:o,s=i.rowSpan,l=void 0===s?1:s,u=i.isHeader,c=void 0!==u&&u;if(!r)return Ls("td",{colSpan:a,rowSpan:l},e);var h=Ls(c?"th":"td",{colSpan:a,rowSpan:l,style:{borderRightWidth:"3px"},on:{mousemove:Na((function(e){var r=this.elm;if(null!=r){var i=r.getBoundingClientRect(),o=i.left,a=i.width,s=i.top,l=i.height,u=e.clientX,c=e.clientY;dQ||(u>o+a-5&&u<o+a&&c>s&&c<s+l?(r.style.cursor="col-resize",yQ=n,mQ=Dw.findPath(n,t)):dQ||(r.style.cursor="auto",yQ=null,mQ=null))}}),100)}},e);return h}},EQ={type:"table",elemToHtml:function(t,e){var n=t.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+e+"</tbody></table>"}},kQ={type:"table-row",elemToHtml:function(t,e){return"<tr>"+e+"</tr>"}},DQ={type:"table-cell",elemToHtml:function(t,e){var n=t,r=n.colSpan,i=void 0===r?1:r,o=n.rowSpan,a=void 0===o?1:o,s=n.isHeader,l=void 0!==s&&s,u=n.width,c=l?"th":"td";return"<"+c+' colSpan="'+i+'" rowSpan="'+a+'" width="'+(void 0===u?"auto":u)+'">'+e+"</"+c+">"}},FQ={selector:"table",preParseHtml:function(t){var e=eo(t);if("table"!==pQ(e))return t;var n=e.find("tbody");if(0===n.length)return t;var r=e.find("tr");return e.append(r),n.remove(),e[0]}},MQ=pY.filter;YX({target:"Array",proto:!0,forced:!KZ("filter")},{filter:function(t){return MQ(this,t,arguments.length>1?arguments[1]:void 0)}});var OQ=Math.floor,TQ=VW("".charAt),BQ=VW("".replace),_Q=VW("".slice),IQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,PQ=/\$([$&'`]|\d{1,2})/g,LQ=function(t,e,n,r,i,o){var a=n+t.length,s=r.length,l=PQ;return void 0!==i&&(i=Aq(i),l=IQ),BQ(o,l,(function(o,l){var u;switch(TQ(l,0)){case"$":return"$";case"&":return t;case"`":return _Q(e,0,n);case"'":return _Q(e,a);case"<":u=i[_Q(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>s){var h=OQ(c/10);return 0===h?o:h<=s?void 0===r[h-1]?TQ(l,1):r[h-1]+TQ(l,1):o}u=r[c-1]}return void 0===u?"":u}))},RQ=Pq("replace"),NQ=Math.max,jQ=Math.min,zQ=VW([].concat),UQ=VW([].push),VQ=VW("".indexOf),HQ=VW("".slice),$Q="$0"==="a".replace(/./,"$0"),GQ=!!/./[RQ]&&""===/./[RQ]("a","$0");LY("replace",(function(t,e,n){var r=GQ?"$":"$0";return[function(t,n){var r=YW(this),i=null==t?void 0:mq(t,RQ);return i?_W(i,t,r,n):_W(e,oZ(r),t,n)},function(t,i){var o=Xq(this),a=oZ(t);if("string"==typeof i&&-1===VQ(i,r)&&-1===VQ(i,"$<")){var s=n(e,o,a,i);if(s.done)return s.value}var l=KW(i);l||(i=oZ(i));var u=o.global;if(u){var c=o.unicode;o.lastIndex=0}for(var h=[];;){var f=QY(o,a);if(null===f)break;if(UQ(h,f),!u)break;""===oZ(f[0])&&(o.lastIndex=WY(a,MX(o.lastIndex),c))}for(var p,d="",g=0,v=0;v<h.length;v++){for(var m=oZ((f=h[v])[0]),y=NQ(jQ(AX(f.index),a.length),0),b=[],x=1;x<f.length;x++)UQ(b,void 0===(p=f[x])?p:String(p));var w=f.groups;if(l){var C=zQ([m],b,y,a);void 0!==w&&UQ(C,w);var S=oZ(_Y(i,void 0,C))}else S=LQ(m,a,y,b,w,i);y>=g&&(d+=HQ(a,g,y)+S,g=y+m.length)}return d+HQ(a,g)}]}),!!OW((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!$Q||GQ);var WQ={selector:"td,th",parseElemHtml:function(t,e,n){var r=eo(t);0===(e=e.filter((function(t){return!!En.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var i=parseInt(r.attr("colSpan")||"1"),o=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===pQ(r),colSpan:i,rowSpan:o,width:a,children:e}}},qQ={selector:"tr",parseElemHtml:function(t,e,n){return{type:"table-row",children:e.filter((function(t){return"table-cell"===Dw.getNodeType(t)}))}}},XQ={selector:"table",parseElemHtml:function(t,e,n){var r=eo(t),i="auto";return"100%"===function(t,e){for(var n="",r=(t.attr("style")||"").split(";"),i=r.length,o=0;o<i;o++){var a=r[o];if(a){var s=a.split(":");s[0].trim()===e&&(n=s[1].trim())}}return n}(r,"width")&&(i="100%"),"100%"===r.attr("width")&&(i="100%"),{type:"table",width:i,children:e.filter((function(t){return"table-row"===Dw.getNodeType(t)}))}}},ZQ=function(){function t(){this.title=ED("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yn.isCollapsed(e)||!!Dw.getSelectedElems(t).some((function(e){var n=Dw.getNodeType(e);return"pre"===n||"table"===n||!!t.isVoid(e)}))},t.prototype.getPanelContentElem=function(t){var e=this;if(this.$content)return this.$content[0];for(var n=eo('<div class="w-e-panel-content-table"></div>'),r=eo("<span>0 × 0</span>"),i=eo("<table></table>"),o=0;o<10;o++){for(var a=eo("<tr></tr>"),s=0;s<10;s++){var l=eo("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",o.toString()),a.append(l),l.on("mouseenter",(function(t){var e=t.target;if(null!=e){var n=eo(e).dataset(),o=n.x,a=n.y;r[0].innerHTML=o+1+" × "+(a+1),i.children().each((function(t){eo(t).children().each((function(t){var e=eo(t),n=e.dataset(),r=n.x,i=n.y;r<=o&&i<=a?e.addClass("active"):e.removeClass("active")}))}))}})),l.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var i=eo(r).dataset(),o=i.x,a=i.y;e.insertTable(t,a+1,o+1)}}))}i.append(a)}return n.append(i),n.append(r),this.$content=n,n[0]},t.prototype.insertTable=function(t,e,n){var r=parseInt(e,10),i=parseInt(n,10);if(r&&i&&!(r<=0||i<=0)){var o=Dw.getSelectedNodeByType(t,"paragraph");o&&""===on.string(o)&&$n.removeNodes(t,{mode:"highest"});var a=function(t,e){for(var n=[],r=0;r<t;r++){for(var i=[],o=0;o<e;o++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),i.push(a)}n.push({type:"table-row",children:i})}return{type:"table",width:"auto",children:n}}(r,i);$n.insertNodes(t,a,{mode:"highest"})}},t}(),YQ=function(){function t(){this.title=ED("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==Dw.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){this.isDisabled(t)||$n.removeNodes(t,{mode:"highest"})},t}(),QQ=function(){function t(){this.title=ED("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yn.isCollapsed(e)||null==Dw.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=iY(Je.nodes(t,{match:function(t){return Dw.checkNodeType(t,"table-cell")},universal:!0}),1),r=iY(n[0],2),i=r[0],o=r[1],a=Dw.getParentNode(t,i),s=(null==a?void 0:a.children.length)||0;if(0!==s){for(var l={type:"table-row",children:[]},u=0;u<s;u++)l.children.push({type:"table-cell",children:[{text:""}]});var c=un.parent(o),h=un.next(c);$n.insertNodes(t,l,{at:h})}}},t}(),KQ=function(){function t(){this.title=ED("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yn.isCollapsed(e)||null==Dw.getSelectedNodeByType(t,"table-row")},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=iY(Je.nodes(t,{match:function(t){return Dw.checkNodeType(t,"table-row")},universal:!0}),1),r=iY(n[0],2),i=r[0],o=r[1],a=Dw.getParentNode(t,i);((null==a?void 0:a.children.length)||0)<=1?$n.removeNodes(t,{mode:"highest"}):$n.removeNodes(t,{at:o})}},t}(),JQ={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},tK=Vq("span").classList,eK=tK&&tK.constructor&&tK.constructor.prototype,nK=eK===Object.prototype?void 0:eK,rK=pY.forEach,iK=function(t,e){var n=[][t];return!!n&&OW((function(){n.call(null,e||function(){throw 1},1)}))}("forEach"),oK=iK?[].forEach:function(t){return rK(this,t,arguments.length>1?arguments[1]:void 0)},aK=function(t){if(t&&t.forEach!==oK)try{Kq(t,"forEach",oK)}catch(act){t.forEach=oK}};for(var sK in JQ)JQ[sK]&&aK(MW[sK]&&MW[sK].prototype);aK(nK);var lK=function(){function t(){this.title=ED("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yn.isCollapsed(e)||null==Dw.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=iY(Je.nodes(t,{match:function(t){return Dw.checkNodeType(t,"table-cell")},universal:!0}),1),r=iY(n[0],2),i=r[0],o=r[1],a=Dw.getParentNode(t,i);if(null!=a){var s=Dw.getParentNode(t,a);null!=s&&(s.children||[]).forEach((function(e,n){qe.isElement(e)&&(e.children||[]).forEach((function(e){var r=Dw.findPath(t,e);if(r.length===o.length&&SW(r.slice(-1),o.slice(-1))){var i={type:"table-cell",children:[{text:""}]};0===n&&mY(s)&&(i.isHeader=!0),$n.insertNodes(t,i,{at:r})}}))}))}}},t}(),uK=function(){function t(){this.title=ED("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yn.isCollapsed(e)||null==Dw.getSelectedNodeByType(t,"table-cell")},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=iY(Je.nodes(t,{match:function(t){return Dw.checkNodeType(t,"table-cell")},universal:!0}),1),r=iY(n[0],2),i=r[0],o=r[1],a=Dw.getParentNode(t,i),s=(null==a?void 0:a.children.length)||0;if(!a||s<=1)$n.removeNodes(t,{mode:"highest"});else{var l=Dw.getParentNode(t,a);null!=l&&(l.children||[]).forEach((function(e){qe.isElement(e)&&(e.children||[]).forEach((function(e){var n=Dw.findPath(t,e);n.length===o.length&&SW(n.slice(-1),o.slice(-1))&&$n.removeNodes(t,{at:n})}))}))}}},t}(),cK=function(){function t(){this.title=ED("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){var e=Dw.getSelectedNodeByType(t,"table");return null!=e&&mY(e)},t.prototype.isActive=function(t){return!!this.getValue(t)},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yn.isCollapsed(e)||null==Dw.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=!e,r=Dw.getSelectedNodeByType(t,"table");null!=r&&vY(r).forEach((function(e){return $n.setNodes(t,{isHeader:n},{at:Dw.findPath(t,e)})}))}},t}(),hK=function(){function t(){this.title=ED("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){var e=Dw.getSelectedNodeByType(t,"table");return null!=e&&"100%"===e.width},t.prototype.isActive=function(t){return!!this.getValue(t)},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yn.isCollapsed(e)||null==Dw.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n={width:e?"auto":"100%"};$n.setNodes(t,n,{mode:"highest"})}},t}(),fK={renderElems:[CQ,SQ,AQ],elemsToHtml:[EQ,kQ,DQ],preParseHtml:[FQ],parseElemsHtml:[WQ,qQ,XQ],menus:[{key:"insertTable",factory:function(){return new ZQ}},{key:"deleteTable",factory:function(){return new YQ}},{key:"insertTableRow",factory:function(){return new QQ}},{key:"deleteTableRow",factory:function(){return new KQ}},{key:"insertTableCol",factory:function(){return new lK}},{key:"deleteTableCol",factory:function(){return new uK}},{key:"tableHeader",factory:function(){return new cK}},{key:"tableFullWidth",factory:function(){return new hK}}],editorPlugin:function(t){var e=t.insertBreak,n=t.deleteBackward,r=t.deleteForward,i=t.normalizeNode,o=t.insertData,a=t.handleTab,s=t.selectAll,l=t;return l.insertBreak=function(){null==Dw.getSelectedNodeByType(l,"table")?e():l.insertText("\n")},l.deleteBackward=function(t){if(!oY(l)){var e=l.selection;if(e){var r=Je.before(l,e);if(r){var i=aY(l,r),o=aY(l,e);if(i&&!o)return}}n(t)}},l.handleTab=function(){var e;if(Dw.getSelectedNodeByType(l,"table")){var n=Je.above(t);Dw.checkNodeType(n[0],"table-cell")&&$n.select(t,n[1]);var r=Je.next(t);if(r)r[0]&&r[0].text&&(r=null!==(e=Je.above(t,{at:r[1]}))&&void 0!==e?e:r),$n.select(t,r[1]);else{var i=l.children||[],o=i.length;if(Dw.checkNodeType(i[o-1],"table")){var s=Dw.genEmptyParagraph();$n.insertNodes(l,s,{at:[o]}),l.handleTab()}}}else a()},l.deleteForward=function(t){oY(l)||r(t)},l.normalizeNode=function(t){var e=iY(t,2),n=e[0],r=e[1];if("table"!==Dw.getNodeType(n))return i([n,r]);if(Dw.isLastNode(l,n)){var o=Dw.genEmptyParagraph();$n.insertNodes(l,o,{at:[r[0]+1]})}},l.insertData=function(t){if(null!=Dw.getSelectedNodeByType(l,"table")){var e=t.getData("text/plain");"\n"===e||/<img[^>]+>/.test(t.getData("text/html"))?o(t):Je.insertText(l,e)}else o(t)},l.selectAll=function(){var t=l.selection;if(null!=t){var e=Dw.getSelectedNodeByType(l,"table-cell");if(null!=e){var n=t.anchor,r=t.focus;if(un.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==on.string(e).length){var i=Dw.findPath(l,e),o={anchor:Je.start(l,i),focus:Je.end(l,i)};l.select(o)}else s();else s()}else s()}else s()},l}};AD("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"video source",insertPlaceHolder:"video file url, or third-party <iframe>",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),AD("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",insertPlaceHolder:"视频文件 url 或第三方 <iframe>",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var pK=function(){return pK=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},pK.apply(this,arguments)};function dK(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}function gK(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function vK(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function mK(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function yK(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=vK(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}var bK="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function xK(t){var e={exports:{}};return t(e,e.exports),e.exports}var wK,CK,SK=function(t){return t&&t.Math==Math&&t},AK=SK("object"==typeof globalThis&&globalThis)||SK("object"==typeof window&&window)||SK("object"==typeof self&&self)||SK("object"==typeof bK&&bK)||function(){return this}()||Function("return this")(),EK=function(t){try{return!!t()}catch(t){return!0}},kK=!EK((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),DK=Function.prototype.call,FK=DK.bind?DK.bind(DK):function(){return DK.apply(DK,arguments)},MK={}.propertyIsEnumerable,OK=Object.getOwnPropertyDescriptor,TK={f:OK&&!MK.call({1:2},1)?function(t){var e=OK(this,t);return!!e&&e.enumerable}:MK},BK=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},_K=Function.prototype,IK=_K.bind,PK=_K.call,LK=IK&&IK.bind(PK),RK=IK?function(t){return t&&LK(PK,t)}:function(t){return t&&function(){return PK.apply(t,arguments)}},NK=RK({}.toString),jK=RK("".slice),zK=function(t){return jK(NK(t),8,-1)},UK=AK.Object,VK=RK("".split),HK=EK((function(){return!UK("z").propertyIsEnumerable(0)}))?function(t){return"String"==zK(t)?VK(t,""):UK(t)}:UK,$K=AK.TypeError,GK=function(t){if(null==t)throw $K("Can't call method on "+t);return t},WK=function(t){return HK(GK(t))},qK=function(t){return"function"==typeof t},XK=function(t){return"object"==typeof t?null!==t:qK(t)},ZK=function(t){return qK(t)?t:void 0},YK=function(t,e){return arguments.length<2?ZK(AK[t]):AK[t]&&AK[t][e]},QK=RK({}.isPrototypeOf),KK=YK("navigator","userAgent")||"",JK=AK.process,tJ=AK.Deno,eJ=JK&&JK.versions||tJ&&tJ.version,nJ=eJ&&eJ.v8;nJ&&(CK=(wK=nJ.split("."))[0]>0&&wK[0]<4?1:+(wK[0]+wK[1])),!CK&&KK&&(!(wK=KK.match(/Edge\/(\d+)/))||wK[1]>=74)&&(wK=KK.match(/Chrome\/(\d+)/))&&(CK=+wK[1]);var rJ=CK,iJ=!!Object.getOwnPropertySymbols&&!EK((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rJ&&rJ<41})),oJ=iJ&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,aJ=AK.Object,sJ=oJ?function(t){return"symbol"==typeof t}:function(t){var e=YK("Symbol");return qK(e)&&QK(e.prototype,aJ(t))},lJ=AK.String,uJ=function(t){try{return lJ(t)}catch(t){return"Object"}},cJ=AK.TypeError,hJ=function(t){if(qK(t))return t;throw cJ(uJ(t)+" is not a function")},fJ=function(t,e){var n=t[e];return null==n?void 0:hJ(n)},pJ=AK.TypeError,dJ=Object.defineProperty,gJ=function(t,e){try{dJ(AK,t,{value:e,configurable:!0,writable:!0})}catch(it){AK[t]=e}return e},vJ=AK["__core-js_shared__"]||gJ("__core-js_shared__",{}),mJ=xK((function(t){(t.exports=function(t,e){return vJ[t]||(vJ[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),yJ=AK.Object,bJ=function(t){return yJ(GK(t))},xJ=RK({}.hasOwnProperty),wJ=Object.hasOwn||function(t,e){return xJ(bJ(t),e)},CJ=0,SJ=Math.random(),AJ=RK(1..toString),EJ=function(t){return"Symbol("+(void 0===t?"":t)+")_"+AJ(++CJ+SJ,36)},kJ=mJ("wks"),DJ=AK.Symbol,FJ=DJ&&DJ.for,MJ=oJ?DJ:DJ&&DJ.withoutSetter||EJ,OJ=function(t){if(!wJ(kJ,t)||!iJ&&"string"!=typeof kJ[t]){var e="Symbol."+t;iJ&&wJ(DJ,t)?kJ[t]=DJ[t]:kJ[t]=oJ&&FJ?FJ(e):MJ(e)}return kJ[t]},TJ=AK.TypeError,BJ=OJ("toPrimitive"),_J=function(t,e){if(!XK(t)||sJ(t))return t;var n,r=fJ(t,BJ);if(r){if(void 0===e&&(e="default"),n=FK(r,t,e),!XK(n)||sJ(n))return n;throw TJ("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&qK(n=t.toString)&&!XK(r=FK(n,t)))return r;if(qK(n=t.valueOf)&&!XK(r=FK(n,t)))return r;if("string"!==e&&qK(n=t.toString)&&!XK(r=FK(n,t)))return r;throw pJ("Can't convert object to primitive value")}(t,e)},IJ=function(t){var e=_J(t,"string");return sJ(e)?e:e+""},PJ=AK.document,LJ=XK(PJ)&&XK(PJ.createElement),RJ=function(t){return LJ?PJ.createElement(t):{}},NJ=!kK&&!EK((function(){return 7!=Object.defineProperty(RJ("div"),"a",{get:function(){return 7}}).a})),jJ=Object.getOwnPropertyDescriptor,zJ={f:kK?jJ:function(t,e){if(t=WK(t),e=IJ(e),NJ)try{return jJ(t,e)}catch(t){}if(wJ(t,e))return BK(!FK(TK.f,t,e),t[e])}},UJ=AK.String,VJ=AK.TypeError,HJ=function(t){if(XK(t))return t;throw VJ(UJ(t)+" is not an object")},$J=AK.TypeError,GJ=Object.defineProperty,WJ={f:kK?GJ:function(t,e,n){if(HJ(t),e=IJ(e),HJ(n),NJ)try{return GJ(t,e,n)}catch(t){}if("get"in n||"set"in n)throw $J("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},qJ=kK?function(t,e,n){return WJ.f(t,e,BK(1,n))}:function(t,e,n){return t[e]=n,t},XJ=RK(Function.toString);qK(vJ.inspectSource)||(vJ.inspectSource=function(t){return XJ(t)});var ZJ,YJ,QJ,KJ=vJ.inspectSource,JJ=AK.WeakMap,t0=qK(JJ)&&/native code/.test(KJ(JJ)),e0=mJ("keys"),n0=function(t){return e0[t]||(e0[t]=EJ(t))},r0={},i0=AK.TypeError,o0=AK.WeakMap;if(t0||vJ.state){var a0=vJ.state||(vJ.state=new o0),s0=RK(a0.get),l0=RK(a0.has),u0=RK(a0.set);ZJ=function(t,e){if(l0(a0,t))throw new i0("Object already initialized");return e.facade=t,u0(a0,t,e),e},YJ=function(t){return s0(a0,t)||{}},QJ=function(t){return l0(a0,t)}}else{var c0=n0("state");r0[c0]=!0,ZJ=function(t,e){if(wJ(t,c0))throw new i0("Object already initialized");return e.facade=t,qJ(t,c0,e),e},YJ=function(t){return wJ(t,c0)?t[c0]:{}},QJ=function(t){return wJ(t,c0)}}var h0={set:ZJ,get:YJ,has:QJ,enforce:function(t){return QJ(t)?YJ(t):ZJ(t,{})},getterFor:function(t){return function(e){var n;if(!XK(e)||(n=YJ(e)).type!==t)throw i0("Incompatible receiver, "+t+" required");return n}}},f0=Function.prototype,p0=kK&&Object.getOwnPropertyDescriptor,d0=wJ(f0,"name"),g0={EXISTS:d0,PROPER:d0&&"something"===function(){}.name,CONFIGURABLE:d0&&(!kK||kK&&p0(f0,"name").configurable)},v0=xK((function(t){var e=g0.CONFIGURABLE,n=h0.get,r=h0.enforce,i=String(String).split("String");(t.exports=function(t,n,o,a){var s,l=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,h=a&&void 0!==a.name?a.name:n;qK(o)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!wJ(o,"name")||e&&o.name!==h)&&qJ(o,"name",h),(s=r(o)).source||(s.source=i.join("string"==typeof h?h:""))),t!==AK?(l?!c&&t[n]&&(u=!0):delete t[n],u?t[n]=o:qJ(t,n,o)):u?t[n]=o:gJ(n,o)})(Function.prototype,"toString",(function(){return qK(this)&&n(this).source||KJ(this)}))})),m0=Math.ceil,y0=Math.floor,b0=function(t){var e=+t;return e!=e||0===e?0:(e>0?y0:m0)(e)},x0=Math.max,w0=Math.min,C0=function(t,e){var n=b0(t);return n<0?x0(n+e,0):w0(n,e)},S0=Math.min,A0=function(t){return t>0?S0(b0(t),9007199254740991):0},E0=function(t){return A0(t.length)},k0=function(t){return function(e,n,r){var i,o=WK(e),a=E0(o),s=C0(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},D0={includes:k0(!0),indexOf:k0(!1)},F0=D0.indexOf,M0=RK([].push),O0=function(t,e){var n,r=WK(t),i=0,o=[];for(n in r)!wJ(r0,n)&&wJ(r,n)&&M0(o,n);for(;e.length>i;)wJ(r,n=e[i++])&&(~F0(o,n)||M0(o,n));return o},T0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],B0=T0.concat("length","prototype"),_0={f:Object.getOwnPropertyNames||function(t){return O0(t,B0)}},I0={f:Object.getOwnPropertySymbols},P0=RK([].concat),L0=YK("Reflect","ownKeys")||function(t){var e=_0.f(HJ(t)),n=I0.f;return n?P0(e,n(t)):e},R0=function(t,e){for(var n=L0(e),r=WJ.f,i=zJ.f,o=0;o<n.length;o++){var a=n[o];wJ(t,a)||r(t,a,i(e,a))}},N0=/#|\.prototype\./,j0=function(t,e){var n=U0[z0(t)];return n==H0||n!=V0&&(qK(e)?EK(e):!!e)},z0=j0.normalize=function(t){return String(t).replace(N0,".").toLowerCase()},U0=j0.data={},V0=j0.NATIVE="N",H0=j0.POLYFILL="P",$0=j0,G0=zJ.f,W0=function(t,e){var n,r,i,o,a,s=t.target,l=t.global,u=t.stat;if(n=l?AK:u?AK[s]||gJ(s,{}):(AK[s]||{}).prototype)for(r in e){if(o=e[r],i=t.noTargetGet?(a=G0(n,r))&&a.value:n[r],!$0(l?r:s+(u?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;R0(o,i)}(t.sham||i&&i.sham)&&qJ(o,"sham",!0),v0(n,r,o,t)}},q0={};q0[OJ("toStringTag")]="z";var X0,Z0="[object z]"===String(q0),Y0=OJ("toStringTag"),Q0=AK.Object,K0="Arguments"==zK(function(){return arguments}()),J0=Z0?zK:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Q0(t),Y0))?n:K0?zK(e):"Object"==(r=zK(e))&&qK(e.callee)?"Arguments":r},t1=AK.String,e1=function(t){if("Symbol"===J0(t))throw TypeError("Cannot convert a Symbol value to a string");return t1(t)},n1="\t\n\v\f\r \u2028\u2029\ufeff",r1=RK("".replace),i1="["+n1+"]",o1=RegExp("^"+i1+i1+"*"),a1=RegExp(i1+i1+"*$"),s1=function(t){return function(e){var n=e1(GK(e));return 1&t&&(n=r1(n,o1,"")),2&t&&(n=r1(n,a1,"")),n}},l1={start:s1(1),end:s1(2),trim:s1(3)},u1=g0.PROPER,c1=l1.trim;function h1(t){return t.length?t[0].tagName.toLowerCase():""}function f1(t,e,n){void 0===e&&(e="auto"),void 0===n&&(n="auto");var r=eo(t);return r.attr("width",e),r.attr("height",n),r[0].outerHTML}W0({target:"String",proto:!0,forced:(X0="trim",EK((function(){return!!n1[X0]()||"
"!=="
"[X0]()||u1&&n1[X0].name!==X0})))},{trim:function(){return c1(this)}}),W0({global:!0},{globalThis:AK}),So&&(eo.fn.append=So),uo&&(eo.fn.on=uo),Io&&(eo.fn.focus=Io),oo&&(eo.fn.attr=oo),lo&&(eo.fn.val=lo),xo&&(eo.fn.html=xo),Eo&&(eo.fn.parent=Eo),io&&(eo.fn.hasClass=io),Oo&&(eo.fn.empty=Oo);var p1,d1={type:"video",renderElem:function(t,e,n){var r,i=t,o=i.src,a=void 0===o?"":o,s=i.width,l=void 0===s?"auto":s,u=i.height,c=void 0===u?"auto":u,h=Dw.isNodeSelected(n,t);if(0===a.trim().indexOf("<iframe ")){var f=f1(a,l,c);r=Ls("div",{className:"w-e-textarea-video-container","data-selected":h?"true":"",innerHTML:f})}else{var p=Ls("video",{controls:!0},Ls("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==l&&(p.data.width=l),"auto"!==c&&(p.data.height=c),r=Ls("div",{className:"w-e-textarea-video-container","data-selected":h?"true":""},p)}return ps("div",{props:{contentEditable:!1},on:{mousedown:function(t){return t.preventDefault()}}},r)}},g1={type:"video",elemToHtml:function(t,e){var n=t,r=n.src,i=void 0===r?"":r,o=n.width,a=void 0===o?"auto":o,s=n.height,l=void 0===s?"auto":s,u='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===i.trim().indexOf("<iframe ")?u+=f1(i,a,l):u+='<video controls="true" width="'+a+'" height="'+l+'"><source src="'+i+'" type="video/mp4"/></video>',u+"\n</div>"}},v1=Object.keys||function(t){return O0(t,T0)},m1=kK?Object.defineProperties:function(t,e){HJ(t);for(var n,r=WK(e),i=v1(e),o=i.length,a=0;o>a;)WJ.f(t,n=i[a++],r[n]);return t},y1=YK("document","documentElement"),b1=n0("IE_PROTO"),x1=function(){},w1=function(t){return"<script>"+t+"<\/script>"},C1=function(t){t.write(w1("")),t.close();var e=t.parentWindow.Object;return t=null,e},S1=function(){try{p1=new ActiveXObject("htmlfile")}catch(t){}var t,e;S1="undefined"!=typeof document?document.domain&&p1?C1(p1):((e=RJ("iframe")).style.display="none",y1.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(w1("document.F=Object")),t.close(),t.F):C1(p1);for(var n=T0.length;n--;)delete S1.prototype[T0[n]];return S1()};r0[b1]=!0;var A1=Object.create||function(t,e){var n;return null!==t?(x1.prototype=HJ(t),n=new x1,x1.prototype=null,n[b1]=t):n=S1(),void 0===e?n:m1(n,e)},E1=OJ("unscopables"),k1=Array.prototype;null==k1[E1]&&WJ.f(k1,E1,{configurable:!0,value:A1(null)});var D1=function(t){k1[E1][t]=!0},F1=D0.includes;W0({target:"Array",proto:!0},{includes:function(t){return F1(this,t,arguments.length>1?arguments[1]:void 0)}}),D1("includes");var M1={selector:"iframe,video,p",preParseHtml:function(t){var e=eo(t),n=e;if("p"===h1(e)){var r=e.children();if(1===r.length){var i=r[0],o=i.tagName.toLowerCase();["iframe","video"].includes(o)&&(n=eo(i))}}var a=h1(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var s=eo('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(n),s[0]}},O1=RK(RK.bind),T1=function(t,e){return hJ(t),void 0===e?t:O1?O1(t,e):function(){return t.apply(e,arguments)}},B1=Array.isArray||function(t){return"Array"==zK(t)},_1=function(){},I1=[],P1=YK("Reflect","construct"),L1=/^\s*(?:class|function)\b/,R1=RK(L1.exec),N1=!L1.exec(_1),j1=function(t){if(!qK(t))return!1;try{return P1(_1,I1,t),!0}catch(t){return!1}},z1=!P1||EK((function(){var t;return j1(j1.call)||!j1(Object)||!j1((function(){t=!0}))||t}))?function(t){if(!qK(t))return!1;switch(J0(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return N1||!!R1(L1,KJ(t))}:j1,U1=OJ("species"),V1=AK.Array,H1=function(t,e){return new(function(t){var e;return B1(t)&&(e=t.constructor,(z1(e)&&(e===V1||B1(e.prototype))||XK(e)&&null===(e=e[U1]))&&(e=void 0)),void 0===e?V1:e}(t))(0===e?0:e)},$1=RK([].push),G1=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=7==t,s=5==t||o;return function(l,u,c,h){for(var f,p,d=bJ(l),g=HK(d),v=T1(u,c),m=E0(g),y=0,b=h||H1,x=e?b(l,m):n||a?b(l,0):void 0;m>y;y++)if((s||y in g)&&(p=v(f=g[y],y,d),t))if(e)x[y]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return y;case 2:$1(x,f)}else switch(t){case 4:return!1;case 7:$1(x,f)}return o?-1:r||i?i:x}},W1={forEach:G1(0),map:G1(1),filter:G1(2),some:G1(3),every:G1(4),find:G1(5),findIndex:G1(6),filterReject:G1(7)},q1=W1.find,X1=!0;"find"in[]&&Array(1).find((function(){X1=!1})),W0({target:"Array",proto:!0,forced:X1},{find:function(t){return q1(this,t,arguments.length>1?arguments[1]:void 0)}}),D1("find");var Z1=Z0?{}.toString:function(){return"[object "+J0(this)+"]"};function Y1(t,e,n){return void 0===e&&(e="auto"),void 0===n&&(n="auto"),{type:"video",src:t,width:e,height:n,children:[{text:""}]}}Z0||v0(Object.prototype,"toString",Z1,{unsafe:!0});var Q1,K1,J1={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=eo(t),i="",o="auto",a="auto",s=r.find("iframe");if(s.length>0)return o=s.attr("width")||"auto",a=s.attr("height")||"auto",Y1(i=s[0].outerHTML,o,a);var l=r.find("video");return(i=l.attr("src")||"")||l.length>0&&(i=l.find("source").attr("src")||""),Y1(i,o=l.attr("width")||"auto",a=l.attr("height")||"auto")}},t2=function(){var t=HJ(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},e2=AK.RegExp,n2=EK((function(){var t=e2("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),r2=n2||EK((function(){return!e2("a","y").sticky})),i2={BROKEN_CARET:n2||EK((function(){var t=e2("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:r2,UNSUPPORTED_Y:n2},o2=AK.RegExp,a2=EK((function(){var t=o2(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),s2=AK.RegExp,l2=EK((function(){var t=s2("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),u2=h0.get,c2=mJ("native-string-replace",String.prototype.replace),h2=RegExp.prototype.exec,f2=h2,p2=RK("".charAt),d2=RK("".indexOf),g2=RK("".replace),v2=RK("".slice),m2=(K1=/b*/g,FK(h2,Q1=/a/,"a"),FK(h2,K1,"a"),0!==Q1.lastIndex||0!==K1.lastIndex),y2=i2.BROKEN_CARET,b2=void 0!==/()??/.exec("")[1];(m2||b2||y2||a2||l2)&&(f2=function(t){var e,n,r,i,o,a,s,l=this,u=u2(l),c=e1(t),h=u.raw;if(h)return h.lastIndex=l.lastIndex,e=FK(f2,h,c),l.lastIndex=h.lastIndex,e;var f=u.groups,p=y2&&l.sticky,d=FK(t2,l),g=l.source,v=0,m=c;if(p&&(d=g2(d,"y",""),-1===d2(d,"g")&&(d+="g"),m=v2(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==p2(c,l.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",d)),b2&&(n=new RegExp("^"+g+"$(?!\\s)",d)),m2&&(r=l.lastIndex),i=FK(h2,p?n:l,m),p?i?(i.input=v2(i.input,v),i[0]=v2(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:m2&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),b2&&i&&i.length>1&&FK(c2,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&f)for(i.groups=a=A1(null),o=0;o<f.length;o++)a[(s=f[o])[0]]=i[s[1]];return i});var x2=f2;W0({target:"RegExp",proto:!0,forced:/./.exec!==x2},{exec:x2});var w2=Function.prototype,C2=w2.apply,S2=w2.bind,A2=w2.call,E2="object"==typeof Reflect&&Reflect.apply||(S2?A2.bind(C2):function(){return A2.apply(C2,arguments)}),k2=OJ("species"),D2=RegExp.prototype,F2=RK("".charAt),M2=RK("".charCodeAt),O2=RK("".slice),T2=function(t){return function(e,n){var r,i,o=e1(GK(e)),a=b0(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=M2(o,a))<55296||r>56319||a+1===s||(i=M2(o,a+1))<56320||i>57343?t?F2(o,a):r:t?O2(o,a,a+2):i-56320+(r-55296<<10)+65536}},B2={codeAt:T2(!1),charAt:T2(!0)},_2=B2.charAt,I2=function(t,e,n){return e+(n?_2(t,e).length:1)},P2=Math.floor,L2=RK("".charAt),R2=RK("".replace),N2=RK("".slice),j2=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,z2=/\$([$&'`]|\d{1,2})/g,U2=function(t,e,n,r,i,o){var a=n+t.length,s=r.length,l=z2;return void 0!==i&&(i=bJ(i),l=j2),R2(o,l,(function(o,l){var u;switch(L2(l,0)){case"$":return"$";case"&":return t;case"`":return N2(e,0,n);case"'":return N2(e,a);case"<":u=i[N2(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>s){var h=P2(c/10);return 0===h?o:h<=s?void 0===r[h-1]?L2(l,1):r[h-1]+L2(l,1):o}u=r[c-1]}return void 0===u?"":u}))},V2=AK.TypeError,H2=function(t,e){var n=t.exec;if(qK(n)){var r=FK(n,t,e);return null!==r&&HJ(r),r}if("RegExp"===zK(t))return FK(x2,t,e);throw V2("RegExp#exec called on incompatible receiver")},$2=OJ("replace"),G2=Math.max,W2=Math.min,q2=RK([].concat),X2=RK([].push),Z2=RK("".indexOf),Y2=RK("".slice),Q2="$0"==="a".replace(/./,"$0"),K2=!!/./[$2]&&""===/./[$2]("a","$0");function J2(t){return void 0===t&&(t="r"),t+"-"+ga()}!function(t,e,n,r){var i=OJ(t),o=!EK((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=o&&!EK((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[k2]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!o||!a||n){var s=RK(/./[i]),l=e(i,""[t],(function(t,e,n,r,i){var a=RK(t),l=e.exec;return l===x2||l===D2.exec?o&&!i?{done:!0,value:s(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));v0(String.prototype,t,l[0]),v0(D2,i,l[1])}r&&qJ(D2[i],"sham",!0)}("replace",(function(t,e,n){var r=K2?"$":"$0";return[function(t,n){var r=GK(this),i=null==t?void 0:fJ(t,$2);return i?FK(i,t,r,n):FK(e,e1(r),t,n)},function(t,i){var o=HJ(this),a=e1(t);if("string"==typeof i&&-1===Z2(i,r)&&-1===Z2(i,"$<")){var s=n(e,o,a,i);if(s.done)return s.value}var l=qK(i);l||(i=e1(i));var u=o.global;if(u){var c=o.unicode;o.lastIndex=0}for(var h=[];;){var f=H2(o,a);if(null===f)break;if(X2(h,f),!u)break;""===e1(f[0])&&(o.lastIndex=I2(a,A0(o.lastIndex),c))}for(var p,d="",g=0,v=0;v<h.length;v++){for(var m=e1((f=h[v])[0]),y=G2(W2(b0(f.index),a.length),0),b=[],x=1;x<f.length;x++)X2(b,void 0===(p=f[x])?p:String(p));var w=f.groups;if(l){var C=q2([m],b,y,a);void 0!==w&&X2(C,w);var S=e1(E2(i,void 0,C))}else S=U2(m,a,y,b,w,i);y>=g&&(d+=Y2(a,g,y)+S,g=y+m.length)}return d+Y2(a,g)}]}),!!EK((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Q2||K2);var t6=AK.Promise,e6=function(t,e,n){for(var r in e)v0(t,r,e[r],n);return t},n6=AK.String,r6=AK.TypeError,i6=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=RK(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return HJ(n),function(t){if("object"==typeof t||qK(t))return t;throw r6("Can't set "+n6(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),o6=WJ.f,a6=OJ("toStringTag"),s6=function(t,e,n){t&&!wJ(t=n?t:t.prototype,a6)&&o6(t,a6,{configurable:!0,value:e})},l6=OJ("species"),u6=AK.TypeError,c6=function(t,e){if(QK(e,t))return t;throw u6("Incorrect invocation")},h6={},f6=OJ("iterator"),p6=Array.prototype,d6=OJ("iterator"),g6=function(t){if(null!=t)return fJ(t,d6)||fJ(t,"@@iterator")||h6[J0(t)]},v6=AK.TypeError,m6=function(t,e,n){var r,i;HJ(t);try{if(!(r=fJ(t,"return"))){if("throw"===e)throw n;return n}r=FK(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return HJ(r),n},y6=AK.TypeError,b6=function(t,e){this.stopped=t,this.result=e},x6=b6.prototype,w6=function(t,e,n){var r,i,o,a,s,l,u,c,h=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),g=T1(e,h),v=function(t){return r&&m6(r,"normal",t),new b6(!0,t)},m=function(t){return f?(HJ(t),d?g(t[0],t[1],v):g(t[0],t[1])):d?g(t,v):g(t)};if(p)r=t;else{if(!(i=g6(t)))throw y6(uJ(t)+" is not iterable");if(void 0!==(c=i)&&(h6.Array===c||p6[f6]===c)){for(o=0,a=E0(t);a>o;o++)if((s=m(t[o]))&&QK(x6,s))return s;return new b6(!1)}r=function(t,e){var n=arguments.length<2?g6(t):e;if(hJ(n))return HJ(FK(n,t));throw v6(uJ(t)+" is not iterable")}(t,i)}for(l=r.next;!(u=FK(l,r)).done;){try{s=m(u.value)}catch(t){m6(r,"throw",t)}if("object"==typeof s&&s&&QK(x6,s))return s}return new b6(!1)},C6=OJ("iterator"),S6=!1;try{var A6=0,E6={next:function(){return{done:!!A6++}},return:function(){S6=!0}};E6[C6]=function(){return this},Array.from(E6,(function(){throw 2}))}catch(ot){}var k6,D6,F6,M6,O6=function(t,e){if(!e&&!S6)return!1;var n=!1;try{var r={};r[C6]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},T6=AK.TypeError,B6=OJ("species"),_6=function(t,e){var n,r=HJ(t).constructor;return void 0===r||null==(n=HJ(r)[B6])?e:function(t){if(z1(t))return t;throw T6(uJ(t)+" is not a constructor")}(n)},I6=RK([].slice),P6=/(?:ipad|iphone|ipod).*applewebkit/i.test(KK),L6="process"==zK(AK.process),R6=AK.setImmediate,N6=AK.clearImmediate,j6=AK.process,z6=AK.Dispatch,U6=AK.Function,V6=AK.MessageChannel,H6=AK.String,$6=0,G6={};try{k6=AK.location}catch(ot){}var W6=function(t){if(wJ(G6,t)){var e=G6[t];delete G6[t],e()}},q6=function(t){return function(){W6(t)}},X6=function(t){W6(t.data)},Z6=function(t){AK.postMessage(H6(t),k6.protocol+"//"+k6.host)};R6&&N6||(R6=function(t){var e=I6(arguments,1);return G6[++$6]=function(){E2(qK(t)?t:U6(t),void 0,e)},D6($6),$6},N6=function(t){delete G6[t]},L6?D6=function(t){j6.nextTick(q6(t))}:z6&&z6.now?D6=function(t){z6.now(q6(t))}:V6&&!P6?(M6=(F6=new V6).port2,F6.port1.onmessage=X6,D6=T1(M6.postMessage,M6)):AK.addEventListener&&qK(AK.postMessage)&&!AK.importScripts&&k6&&"file:"!==k6.protocol&&!EK(Z6)?(D6=Z6,AK.addEventListener("message",X6,!1)):D6="onreadystatechange"in RJ("script")?function(t){y1.appendChild(RJ("script")).onreadystatechange=function(){y1.removeChild(this),W6(t)}}:function(t){setTimeout(q6(t),0)});var Y6,Q6,K6,J6,t4,e4,n4,r4,i4={set:R6,clear:N6},o4=/ipad|iphone|ipod/i.test(KK)&&void 0!==AK.Pebble,a4=/web0s(?!.*chrome)/i.test(KK),s4=zJ.f,l4=i4.set,u4=AK.MutationObserver||AK.WebKitMutationObserver,c4=AK.document,h4=AK.process,f4=AK.Promise,p4=s4(AK,"queueMicrotask"),d4=p4&&p4.value;d4||(Y6=function(){var t,e;for(L6&&(t=h4.domain)&&t.exit();Q6;){e=Q6.fn,Q6=Q6.next;try{e()}catch(t){throw Q6?J6():K6=void 0,t}}K6=void 0,t&&t.enter()},P6||L6||a4||!u4||!c4?!o4&&f4&&f4.resolve?((n4=f4.resolve(void 0)).constructor=f4,r4=T1(n4.then,n4),J6=function(){r4(Y6)}):L6?J6=function(){h4.nextTick(Y6)}:(l4=T1(l4,AK),J6=function(){l4(Y6)}):(t4=!0,e4=c4.createTextNode(""),new u4(Y6).observe(e4,{characterData:!0}),J6=function(){e4.data=t4=!t4}));var g4,v4,m4,y4,b4=d4||function(t){var e={fn:t,next:void 0};K6&&(K6.next=e),Q6||(Q6=e,J6()),K6=e},x4=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=hJ(e),this.reject=hJ(n)},w4={f:function(t){return new x4(t)}},C4=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},S4="object"==typeof window,A4=i4.set,E4=OJ("species"),k4="Promise",D4=h0.getterFor(k4),F4=h0.set,M4=h0.getterFor(k4),O4=t6&&t6.prototype,T4=t6,B4=O4,_4=AK.TypeError,I4=AK.document,P4=AK.process,L4=w4.f,R4=L4,N4=!!(I4&&I4.createEvent&&AK.dispatchEvent),j4=qK(AK.PromiseRejectionEvent),z4=!1,U4=$0(k4,(function(){var t=KJ(T4),e=t!==String(T4);if(!e&&66===rJ)return!0;if(rJ>=51&&/native code/.test(t))return!1;var n=new T4((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[E4]=r,!(z4=n.then((function(){}))instanceof r)||!e&&S4&&!j4})),V4=U4||!O6((function(t){T4.all(t).catch((function(){}))})),H4=function(t){var e;return!(!XK(t)||!qK(e=t.then))&&e},$4=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;b4((function(){for(var r=t.value,i=1==t.state,o=0;n.length>o;){var a,s,l,u=n[o++],c=i?u.ok:u.fail,h=u.resolve,f=u.reject,p=u.domain;try{c?(i||(2===t.rejection&&X4(t),t.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),l=!0)),a===u.promise?f(_4("Promise-chain cycle")):(s=H4(a))?FK(s,a,h,f):h(a)):f(r)}catch(t){p&&!l&&p.exit(),f(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&W4(t)}))}},G4=function(t,e,n){var r,i;N4?((r=I4.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),AK.dispatchEvent(r)):r={promise:e,reason:n},!j4&&(i=AK["on"+t])?i(r):"unhandledrejection"===t&&function(t,e){var n=AK.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},W4=function(t){FK(A4,AK,(function(){var e,n=t.facade,r=t.value;if(q4(t)&&(e=C4((function(){L6?P4.emit("unhandledRejection",r,n):G4("unhandledrejection",n,r)})),t.rejection=L6||q4(t)?2:1,e.error))throw e.value}))},q4=function(t){return 1!==t.rejection&&!t.parent},X4=function(t){FK(A4,AK,(function(){var e=t.facade;L6?P4.emit("rejectionHandled",e):G4("rejectionhandled",e,t.value)}))},Z4=function(t,e,n){return function(r){t(e,r,n)}},Y4=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,$4(t,!0))},Q4=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw _4("Promise can't be resolved itself");var r=H4(e);r?b4((function(){var n={done:!1};try{FK(r,e,Z4(Q4,n,t),Z4(Y4,n,t))}catch(e){Y4(n,e,t)}})):(t.value=e,t.state=1,$4(t,!1))}catch(e){Y4({done:!1},e,t)}}};if(U4&&(B4=(T4=function(t){c6(this,B4),hJ(t),FK(g4,this);var e=D4(this);try{t(Z4(Q4,e),Z4(Y4,e))}catch(t){Y4(e,t)}}).prototype,(g4=function(t){F4(this,{type:k4,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=e6(B4,{then:function(t,e){var n=M4(this),r=n.reactions,i=L4(_6(this,T4));return i.ok=!qK(t)||t,i.fail=qK(e)&&e,i.domain=L6?P4.domain:void 0,n.parent=!0,r[r.length]=i,0!=n.state&&$4(n,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),v4=function(){var t=new g4,e=D4(t);this.promise=t,this.resolve=Z4(Q4,e),this.reject=Z4(Y4,e)},w4.f=L4=function(t){return t===T4||t===m4?new v4(t):R4(t)},qK(t6)&&O4!==Object.prototype)){y4=O4.then,z4||(v0(O4,"then",(function(t,e){var n=this;return new T4((function(t,e){FK(y4,n,t,e)})).then(t,e)}),{unsafe:!0}),v0(O4,"catch",B4.catch,{unsafe:!0}));try{delete O4.constructor}catch(ot){}i6&&i6(O4,B4)}function K4(t,e){return dK(this,void 0,void 0,(function(){var n,r,i,o,a,s,l;return gK(this,(function(u){switch(u.label){case 0:return e?(t.restoreSelection(),n=t.getMenuConfig("insertVideo"),r=n.onInsertedVideo,i=n.checkVideo,o=n.parseVideoSrc,[4,i(e)]):[2];case 1:return"string"==typeof(a=u.sent())?(t.alert(a,"error"),[2]):null==a?[2]:[4,o(e)];case 2:return 0!==(s=u.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"<").replace(/>/g,">")),l={type:"video",src:s,children:[{text:""}]},Promise.resolve().then((function(){$n.insertNodes(t,l)})),r(l),[2]}}))}))}function J4(){return J2("w-e-insert-video")}W0({global:!0,wrap:!0,forced:U4},{Promise:T4}),s6(T4,k4,!1),function(t){var e=YK(t),n=WJ.f;kK&&e&&!e[l6]&&n(e,l6,{configurable:!0,get:function(){return this}})}(k4),m4=YK(k4),W0({target:k4,stat:!0,forced:U4},{reject:function(t){var e=L4(this);return FK(e.reject,void 0,t),e.promise}}),W0({target:k4,stat:!0,forced:U4},{resolve:function(t){return function(t,e){if(HJ(t),XK(e)&&e.constructor===t)return e;var n=w4.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),W0({target:k4,stat:!0,forced:V4},{all:function(t){var e=this,n=L4(e),r=n.resolve,i=n.reject,o=C4((function(){var n=hJ(e.resolve),o=[],a=0,s=1;w6(t,(function(t){var l=a++,u=!1;s++,FK(n,e,t).then((function(t){u||(u=!0,o[l]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=L4(e),r=n.reject,i=C4((function(){var i=hJ(e.resolve);w6(t,(function(t){FK(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var t5=function(){function t(){this.title=ED("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=J4(),this.buttonId=J4()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yn.isCollapsed(e)||!!Dw.getSelectedElems(t).some((function(e){return"pre"===Dw.getNodeType(e)||!!t.isVoid(e)}))},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=this,n=this.srcInputId,r=this.buttonId,i=mK(ak(ED("videoModule.videoSrc"),n,ED("videoModule.insertPlaceHolder")),2),o=i[0],a=i[1],s=eo(a),l=mK(sk(r,ED("videoModule.ok")),1)[0];if(null==this.$content){var u=eo("<div></div>");u.on("click","#"+r,(function(r){return dK(e,void 0,void 0,(function(){var e;return gK(this,(function(i){switch(i.label){case 0:return r.preventDefault(),e=u.find("#"+n).val().trim(),[4,K4(t,e)];case 1:return i.sent(),t.hidePanelOrModal(),[2]}}))}))})),this.$content=u}var c=this.$content;return c.empty(),c.append(o),c.append(l),s.val(""),setTimeout((function(){s.focus()})),c[0]},t}(),e5=RK([].join),n5=HK!=Object,r5=function(t,e){var n=[][t];return!!n&&EK((function(){n.call(null,e||function(){throw 1},1)}))}("join",",");W0({target:"Array",proto:!0,forced:n5||!r5},{join:function(t){return e5(WK(this),void 0===t?",":t)}});var i5,o5,a5,s5=!EK((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),l5=n0("IE_PROTO"),u5=AK.Object,c5=u5.prototype,h5=s5?u5.getPrototypeOf:function(t){var e=bJ(t);if(wJ(e,l5))return e[l5];var n=e.constructor;return qK(n)&&e instanceof n?n.prototype:e instanceof u5?c5:null},f5=OJ("iterator"),p5=!1;[].keys&&("next"in(a5=[].keys())?(o5=h5(h5(a5)))!==Object.prototype&&(i5=o5):p5=!0);var d5=null==i5||EK((function(){var t={};return i5[f5].call(t)!==t}));d5&&(i5={}),qK(i5[f5])||v0(i5,f5,(function(){return this}));var g5={IteratorPrototype:i5,BUGGY_SAFARI_ITERATORS:p5},v5=g5.IteratorPrototype,m5=function(){return this},y5=g0.PROPER,b5=g0.CONFIGURABLE,x5=g5.IteratorPrototype,w5=g5.BUGGY_SAFARI_ITERATORS,C5=OJ("iterator"),S5=function(){return this},A5=function(t,e,n,r,i,o,a){!function(t,e,n,r){var i=e+" Iterator";t.prototype=A1(v5,{next:BK(+!r,n)}),s6(t,i,!1),h6[i]=m5}(n,e,r);var s,l,u,c=function(t){if(t===i&&g)return g;if(!w5&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,p=t.prototype,d=p[C5]||p["@@iterator"]||i&&p[i],g=!w5&&d||c(i),v="Array"==e&&p.entries||d;if(v&&(s=h5(v.call(new t)))!==Object.prototype&&s.next&&(h5(s)!==x5&&(i6?i6(s,x5):qK(s[C5])||v0(s,C5,S5)),s6(s,h,!0)),y5&&"values"==i&&d&&"values"!==d.name&&(b5?qJ(p,"name","values"):(f=!0,g=function(){return FK(d,this)})),i)if(l={values:c("values"),keys:o?g:c("keys"),entries:c("entries")},a)for(u in l)(w5||f||!(u in p))&&v0(p,u,l[u]);else W0({target:e,proto:!0,forced:w5||f},l);return p[C5]!==g&&v0(p,C5,g,{name:i}),h6[e]=g,l},E5=h0.set,k5=h0.getterFor("Array Iterator"),D5=A5(Array,"Array",(function(t,e){E5(this,{type:"Array Iterator",target:WK(t),index:0,kind:e})}),(function(){var t=k5(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");h6.Arguments=h6.Array,D1("keys"),D1("values"),D1("entries");var F5=B2.charAt,M5=h0.set,O5=h0.getterFor("String Iterator");A5(String,"String",(function(t){M5(this,{type:"String Iterator",string:e1(t),index:0})}),(function(){var t,e=O5(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=F5(n,r),e.index+=t.length,{value:t,done:!1})}));var T5=function(t,e,n){var r=IJ(e);r in t?WJ.f(t,r,BK(0,n)):t[r]=n},B5=AK.Array,_5=Math.max,I5=_0.f,P5="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],L5=function(t){try{return I5(t)}catch(t){return function(t,e,n){for(var r=E0(t),i=C0(e,r),o=C0(void 0===n?r:n,r),a=B5(_5(o-i,0)),s=0;i<o;i++,s++)T5(a,s,t[i]);return a.length=s,a}(P5)}},R5={f:function(t){return P5&&"Window"==zK(t)?L5(t):I5(WK(t))}},N5=EK((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),j5=Object.isExtensible,z5=EK((function(){j5(1)}))||N5?function(t){return!!XK(t)&&(!N5||"ArrayBuffer"!=zK(t))&&(!j5||j5(t))}:j5,U5=!EK((function(){return Object.isExtensible(Object.preventExtensions({}))})),V5=xK((function(t){var e=WJ.f,n=!1,r=EJ("meta"),i=0,o=function(t){e(t,r,{value:{objectID:"O"+i++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var t=_0.f,e=RK([].splice),i={};i[r]=1,t(i).length&&(_0.f=function(n){for(var i=t(n),o=0,a=i.length;o<a;o++)if(i[o]===r){e(i,o,1);break}return i},W0({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:R5.f}))},fastKey:function(t,e){if(!XK(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!wJ(t,r)){if(!z5(t))return"F";if(!e)return"E";o(t)}return t[r].objectID},getWeakData:function(t,e){if(!wJ(t,r)){if(!z5(t))return!0;if(!e)return!1;o(t)}return t[r].weakData},onFreeze:function(t){return U5&&n&&z5(t)&&!wJ(t,r)&&o(t),t}};r0[r]=!0})),H5=V5.getWeakData,$5=h0.set,G5=h0.getterFor,W5=W1.find,q5=W1.findIndex,X5=RK([].splice),Z5=0,Y5=function(t){return t.frozen||(t.frozen=new Q5)},Q5=function(){this.entries=[]},K5=function(t,e){return W5(t.entries,(function(t){return t[0]===e}))};Q5.prototype={get:function(t){var e=K5(this,t);if(e)return e[1]},has:function(t){return!!K5(this,t)},set:function(t,e){var n=K5(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=q5(this.entries,(function(e){return e[0]===t}));return~e&&X5(this.entries,e,1),!!~e}};var J5,t3={getConstructor:function(t,e,n,r){var i=t((function(t,i){c6(t,o),$5(t,{type:e,id:Z5++,frozen:void 0}),null!=i&&w6(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,a=G5(e),s=function(t,e,n){var r=a(t),i=H5(HJ(e),!0);return!0===i?Y5(r).set(e,n):i[r.id]=n,t};return e6(o,{delete:function(t){var e=a(this);if(!XK(t))return!1;var n=H5(t);return!0===n?Y5(e).delete(t):n&&wJ(n,e.id)&&delete n[e.id]},has:function(t){var e=a(this);if(!XK(t))return!1;var n=H5(t);return!0===n?Y5(e).has(t):n&&wJ(n,e.id)}}),e6(o,n?{get:function(t){var e=a(this);if(XK(t)){var n=H5(t);return!0===n?Y5(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return s(this,t,e)}}:{add:function(t){return s(this,t,!0)}}),i}},e3=h0.enforce,n3=!AK.ActiveXObject&&"ActiveXObject"in AK,r3=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},i3=function(t,e,n){var r=-1!==t.indexOf("Map"),i=-1!==t.indexOf("Weak"),o=r?"set":"add",a=AK[t],s=a&&a.prototype,l=a,u={},c=function(t){var e=RK(s[t]);v0(s,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(i&&!XK(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return i&&!XK(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(i&&!XK(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if($0(t,!qK(a)||!(i||s.forEach&&!EK((function(){(new a).entries().next()})))))l=n.getConstructor(e,t,r,o),V5.enable();else if($0(t,!0)){var h=new l,f=h[o](i?{}:-0,1)!=h,p=EK((function(){h.has(1)})),d=O6((function(t){new a(t)})),g=!i&&EK((function(){for(var t=new a,e=5;e--;)t[o](e,e);return!t.has(-0)}));d||((l=e((function(t,e){c6(t,s);var n=function(t,e,n){var r,i;return i6&&qK(r=e.constructor)&&r!==n&&XK(i=r.prototype)&&i!==n.prototype&&i6(t,i),t}(new a,t,l);return null!=e&&w6(e,n[o],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=l),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||f)&&c(o),i&&s.clear&&delete s.clear}return u[t]=l,W0({global:!0,forced:l!=a},u),s6(l,t),i||n.setStrong(l,t,r),l}("WeakMap",r3,t3);if(t0&&n3){J5=t3.getConstructor(r3,"WeakMap",!0),V5.enable();var o3=i3.prototype,a3=RK(o3.delete),s3=RK(o3.has),l3=RK(o3.get),u3=RK(o3.set);e6(o3,{delete:function(t){if(XK(t)&&!z5(t)){var e=e3(this);return e.frozen||(e.frozen=new J5),a3(this,t)||e.frozen.delete(t)}return a3(this,t)},has:function(t){if(XK(t)&&!z5(t)){var e=e3(this);return e.frozen||(e.frozen=new J5),s3(this,t)||e.frozen.has(t)}return s3(this,t)},get:function(t){if(XK(t)&&!z5(t)){var e=e3(this);return e.frozen||(e.frozen=new J5),s3(this,t)?l3(this,t):e.frozen.get(t)}return l3(this,t)},set:function(t,e){if(XK(t)&&!z5(t)){var n=e3(this);n.frozen||(n.frozen=new J5),s3(this,t)?u3(this,t,e):n.frozen.set(t,e)}else u3(this,t,e);return this}})}var c3={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},h3=RJ("span").classList,f3=h3&&h3.constructor&&h3.constructor.prototype,p3=f3===Object.prototype?void 0:f3,d3=OJ("iterator"),g3=OJ("toStringTag"),v3=D5.values,m3=function(t,e){if(t){if(t[d3]!==v3)try{qJ(t,d3,v3)}catch(e){t[d3]=v3}if(t[g3]||qJ(t,g3,e),c3[e])for(var n in D5)if(t[n]!==D5[n])try{qJ(t,n,D5[n])}catch(e){t[n]=D5[n]}}};for(var y3 in c3)m3(AK[y3]&&AK[y3].prototype,y3);m3(p3,"DOMTokenList");var b3=g0.EXISTS,x3=WJ.f,w3=Function.prototype,C3=RK(w3.toString),S3=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,A3=RK(S3.exec);kK&&!b3&&x3(w3,"name",{configurable:!0,get:function(){try{return A3(S3,C3(this))[1]}catch(ot){return""}}});var E3=OJ("species"),k3=function(t){return rJ>=51||!EK((function(){var e=[];return(e.constructor={})[E3]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("slice"),D3=OJ("species"),F3=AK.Array,M3=Math.max;function O3(t){return t.getMenuConfig("uploadVideo")}W0({target:"Array",proto:!0,forced:!k3},{slice:function(t,e){var n,r,i,o=WK(this),a=E0(o),s=C0(t,a),l=C0(void 0===e?a:e,a);if(B1(o)&&(n=o.constructor,(z1(n)&&(n===F3||B1(n.prototype))||XK(n)&&null===(n=n[D3]))&&(n=void 0),n===F3||void 0===n))return I6(o,s,l);for(r=new(void 0===n?F3:n)(M3(l-s,0)),i=0;s<l;s++,i++)s in o&&T5(r,i,o[s]);return r.length=i,r}});var T3=new WeakMap;function B3(t,e){return dK(this,void 0,void 0,(function(){var n,r,i,o;return gK(this,(function(a){switch(a.label){case 0:return n=function(t){var e=T3.get(t);if(null!=e)return e;var n=O3(t),r=n.onSuccess,i=n.onProgress,o=n.onFailed,a=n.customInsert,s=n.onError;return e=Bk(pK(pK({},n),{onProgress:function(e){t.showProgressBar(e),i&&i(e)},onSuccess:function(e,n){if(a)a(n,(function(e){return K4(t,e)}));else{var i=n.errno,s=void 0===i?1:i,l=n.data,u=void 0===l?{}:l;if(0!==s)return console.error("'"+e.name+"' upload failed",n),void o(e,n);var c=u.url;K4(t,void 0===c?"":c),r(e,n)}},onError:function(t,e,n){var r=t.name;console.error("'"+r+" upload error",e,n),s&&s(t,e,n)}})),T3.set(t,e),e}(t),r=e.name,i=e.type,o=e.size,n.addFile({name:r,type:i,size:o,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var _3=function(){function t(){this.title=ED("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){var n=this.getMenuConfig(t),r=n.allowedFileTypes,i=void 0===r?[]:r,o=n.customBrowseAndUpload;if(o)o((function(e){return K4(t,e)}));else{var a="";i.length>0&&(a='accept="'+i.join(", ")+'"');var s=eo("body"),l=eo('<input type="file" '+a+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",(function(){var e=l[0].files;!function(t,e){var n,r;dK(this,void 0,void 0,(function(){var i,o,a,s,l,u;return gK(this,(function(c){switch(c.label){case 0:if(null==e)return[2];i=Array.prototype.slice.call(e),o=O3(t).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=yK(i),c.label=2;case 2:return[4,a.next()];case 3:return(s=c.sent()).done?[3,8]:(l=s.value,o?[4,o(l,(function(e){return K4(t,e)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,B3(t,l)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return u=c.sent(),n={error:u},[3,15];case 10:return c.trys.push([10,,13,14]),s&&!s.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(t,e)}))}},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!yn.isCollapsed(e)||!!Dw.getSelectedElems(t).some((function(e){return"pre"===Dw.getNodeType(e)||!!t.isVoid(e)}))},t.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},t}(),I3=g0.PROPER,P3=RegExp.prototype,L3=P3.toString,R3=RK(t2),N3=EK((function(){return"/a/b"!=L3.call({source:"a",flags:"b"})})),j3=I3&&"toString"!=L3.name;function z3(){return J2("w-e-insert-video")}(N3||j3)&&v0(RegExp.prototype,"toString",(function(){var t=HJ(this),e=e1(t.source),n=t.flags;return"/"+e+"/"+e1(void 0===n&&QK(P3,t)&&!("flags"in P3)?R3(t):n)}),{unsafe:!0});var U3=function(){function t(){this.title=ED("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=z3(),this.heightInputId=z3(),this.buttonId=z3()}return t.prototype.getSelectedVideoNode=function(t){return Dw.getSelectedNodeByType(t,"video")},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},t.prototype.getModalContentElem=function(t){var e=this,n=e.widthInputId,r=e.heightInputId,i=e.buttonId,o=mK(ak(ED("videoModule.width"),n,"auto"),2),a=o[0],s=o[1],l=eo(s),u=mK(ak(ED("videoModule.height"),r,"auto"),2),c=u[0],h=u[1],f=eo(h),p=mK(sk(i,ED("videoModule.ok")),1)[0];if(null==this.$content){var d=eo("<div></div>");d.on("click","#"+i,(function(e){e.preventDefault();var i=d.find("#"+n).val().trim(),o=d.find("#"+r).val().trim(),a=parseInt(i),s=parseInt(o),l=a?a.toString():"auto",u=s?s.toString():"auto";t.restoreSelection(),$n.setNodes(t,{width:l,height:u},{match:function(t){return Dw.checkNodeType(t,"video")}}),t.hidePanelOrModal()})),this.$content=d}var g=this.$content;g.empty(),g.append(a),g.append(c),g.append(p);var v=this.getSelectedVideoNode(t);if(null==v)return g[0];var m=v.width,y=void 0===m?"auto":m,b=v.height,x=void 0===b?"auto":b;return l.val(y),f.val(x),setTimeout((function(){l.focus()})),g[0]},t}(),V3={renderElems:[d1],elemsToHtml:[g1],preParseHtml:[M1],parseElemsHtml:[J1],menus:[{key:"insertVideo",factory:function(){return new t5},config:{onInsertedVideo:function(t){},checkVideo:function(t){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new _3},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){},onError:function(t,e,n){}}},{key:"editVideoSize",factory:function(){return new U3}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(t){return"video"===t.type||e(t)},r.normalizeNode=function(t){var e=mK(t,2),i=e[0],o=e[1];return"video"===Dw.getNodeType(i)&&Dw.isLastNode(r,i)&&$n.insertNodes(r,Dw.genEmptyParagraph(),{at:[o[0]+1]}),n([i,o])},r}};AD("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),AD("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var H3="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function $3(t){var e={exports:{}};return t(e,e.exports),e.exports}var G3,W3,q3=function(t){return t&&t.Math==Math&&t},X3=q3("object"==typeof globalThis&&globalThis)||q3("object"==typeof window&&window)||q3("object"==typeof self&&self)||q3("object"==typeof H3&&H3)||function(){return this}()||Function("return this")(),Z3=function(t){try{return!!t()}catch(t){return!0}},Y3=!Z3((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Q3=Function.prototype.call,K3=Q3.bind?Q3.bind(Q3):function(){return Q3.apply(Q3,arguments)},J3={}.propertyIsEnumerable,t8=Object.getOwnPropertyDescriptor,e8={f:t8&&!J3.call({1:2},1)?function(t){var e=t8(this,t);return!!e&&e.enumerable}:J3},n8=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},r8=Function.prototype,i8=r8.bind,o8=r8.call,a8=i8&&i8.bind(o8),s8=i8?function(t){return t&&a8(o8,t)}:function(t){return t&&function(){return o8.apply(t,arguments)}},l8=s8({}.toString),u8=s8("".slice),c8=function(t){return u8(l8(t),8,-1)},h8=X3.Object,f8=s8("".split),p8=Z3((function(){return!h8("z").propertyIsEnumerable(0)}))?function(t){return"String"==c8(t)?f8(t,""):h8(t)}:h8,d8=X3.TypeError,g8=function(t){if(null==t)throw d8("Can't call method on "+t);return t},v8=function(t){return p8(g8(t))},m8=function(t){return"function"==typeof t},y8=function(t){return"object"==typeof t?null!==t:m8(t)},b8=function(t){return m8(t)?t:void 0},x8=function(t,e){return arguments.length<2?b8(X3[t]):X3[t]&&X3[t][e]},w8=s8({}.isPrototypeOf),C8=x8("navigator","userAgent")||"",S8=X3.process,A8=X3.Deno,E8=S8&&S8.versions||A8&&A8.version,k8=E8&&E8.v8;k8&&(W3=(G3=k8.split("."))[0]>0&&G3[0]<4?1:+(G3[0]+G3[1])),!W3&&C8&&(!(G3=C8.match(/Edge\/(\d+)/))||G3[1]>=74)&&(G3=C8.match(/Chrome\/(\d+)/))&&(W3=+G3[1]);var D8=W3,F8=!!Object.getOwnPropertySymbols&&!Z3((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&D8&&D8<41})),M8=F8&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,O8=X3.Object,T8=M8?function(t){return"symbol"==typeof t}:function(t){var e=x8("Symbol");return m8(e)&&w8(e.prototype,O8(t))},B8=X3.String,_8=function(t){try{return B8(t)}catch(t){return"Object"}},I8=X3.TypeError,P8=function(t){if(m8(t))return t;throw I8(_8(t)+" is not a function")},L8=function(t,e){var n=t[e];return null==n?void 0:P8(n)},R8=X3.TypeError,N8=Object.defineProperty,j8=function(t,e){try{N8(X3,t,{value:e,configurable:!0,writable:!0})}catch(it){X3[t]=e}return e},z8=X3["__core-js_shared__"]||j8("__core-js_shared__",{}),U8=$3((function(t){(t.exports=function(t,e){return z8[t]||(z8[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),V8=X3.Object,H8=function(t){return V8(g8(t))},$8=s8({}.hasOwnProperty),G8=Object.hasOwn||function(t,e){return $8(H8(t),e)},W8=0,q8=Math.random(),X8=s8(1..toString),Z8=function(t){return"Symbol("+(void 0===t?"":t)+")_"+X8(++W8+q8,36)},Y8=U8("wks"),Q8=X3.Symbol,K8=Q8&&Q8.for,J8=M8?Q8:Q8&&Q8.withoutSetter||Z8,t9=function(t){if(!G8(Y8,t)||!F8&&"string"!=typeof Y8[t]){var e="Symbol."+t;F8&&G8(Q8,t)?Y8[t]=Q8[t]:Y8[t]=M8&&K8?K8(e):J8(e)}return Y8[t]},e9=X3.TypeError,n9=t9("toPrimitive"),r9=function(t,e){if(!y8(t)||T8(t))return t;var n,r=L8(t,n9);if(r){if(void 0===e&&(e="default"),n=K3(r,t,e),!y8(n)||T8(n))return n;throw e9("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&m8(n=t.toString)&&!y8(r=K3(n,t)))return r;if(m8(n=t.valueOf)&&!y8(r=K3(n,t)))return r;if("string"!==e&&m8(n=t.toString)&&!y8(r=K3(n,t)))return r;throw R8("Can't convert object to primitive value")}(t,e)},i9=function(t){var e=r9(t,"string");return T8(e)?e:e+""},o9=X3.document,a9=y8(o9)&&y8(o9.createElement),s9=function(t){return a9?o9.createElement(t):{}},l9=!Y3&&!Z3((function(){return 7!=Object.defineProperty(s9("div"),"a",{get:function(){return 7}}).a})),u9=Object.getOwnPropertyDescriptor,c9={f:Y3?u9:function(t,e){if(t=v8(t),e=i9(e),l9)try{return u9(t,e)}catch(t){}if(G8(t,e))return n8(!K3(e8.f,t,e),t[e])}},h9=X3.String,f9=X3.TypeError,p9=function(t){if(y8(t))return t;throw f9(h9(t)+" is not an object")},d9=X3.TypeError,g9=Object.defineProperty,v9={f:Y3?g9:function(t,e,n){if(p9(t),e=i9(e),p9(n),l9)try{return g9(t,e,n)}catch(t){}if("get"in n||"set"in n)throw d9("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},m9=Y3?function(t,e,n){return v9.f(t,e,n8(1,n))}:function(t,e,n){return t[e]=n,t},y9=s8(Function.toString);m8(z8.inspectSource)||(z8.inspectSource=function(t){return y9(t)});var b9,x9,w9,C9=z8.inspectSource,S9=X3.WeakMap,A9=m8(S9)&&/native code/.test(C9(S9)),E9=U8("keys"),k9=function(t){return E9[t]||(E9[t]=Z8(t))},D9={},F9=X3.TypeError,M9=X3.WeakMap;if(A9||z8.state){var O9=z8.state||(z8.state=new M9),T9=s8(O9.get),B9=s8(O9.has),_9=s8(O9.set);b9=function(t,e){if(B9(O9,t))throw new F9("Object already initialized");return e.facade=t,_9(O9,t,e),e},x9=function(t){return T9(O9,t)||{}},w9=function(t){return B9(O9,t)}}else{var I9=k9("state");D9[I9]=!0,b9=function(t,e){if(G8(t,I9))throw new F9("Object already initialized");return e.facade=t,m9(t,I9,e),e},x9=function(t){return G8(t,I9)?t[I9]:{}},w9=function(t){return G8(t,I9)}}var P9={set:b9,get:x9,has:w9,enforce:function(t){return w9(t)?x9(t):b9(t,{})},getterFor:function(t){return function(e){var n;if(!y8(e)||(n=x9(e)).type!==t)throw F9("Incompatible receiver, "+t+" required");return n}}},L9=Function.prototype,R9=Y3&&Object.getOwnPropertyDescriptor,N9=G8(L9,"name"),j9={EXISTS:N9,PROPER:N9&&"something"===function(){}.name,CONFIGURABLE:N9&&(!Y3||Y3&&R9(L9,"name").configurable)},z9=$3((function(t){var e=j9.CONFIGURABLE,n=P9.get,r=P9.enforce,i=String(String).split("String");(t.exports=function(t,n,o,a){var s,l=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,h=a&&void 0!==a.name?a.name:n;m8(o)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!G8(o,"name")||e&&o.name!==h)&&m9(o,"name",h),(s=r(o)).source||(s.source=i.join("string"==typeof h?h:""))),t!==X3?(l?!c&&t[n]&&(u=!0):delete t[n],u?t[n]=o:m9(t,n,o)):u?t[n]=o:j8(n,o)})(Function.prototype,"toString",(function(){return m8(this)&&n(this).source||C9(this)}))})),U9=Math.ceil,V9=Math.floor,H9=function(t){var e=+t;return e!=e||0===e?0:(e>0?V9:U9)(e)},$9=Math.max,G9=Math.min,W9=function(t,e){var n=H9(t);return n<0?$9(n+e,0):G9(n,e)},q9=Math.min,X9=function(t){return t>0?q9(H9(t),9007199254740991):0},Z9=function(t){return X9(t.length)},Y9=function(t){return function(e,n,r){var i,o=v8(e),a=Z9(o),s=W9(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Q9={includes:Y9(!0),indexOf:Y9(!1)}.indexOf,K9=s8([].push),J9=function(t,e){var n,r=v8(t),i=0,o=[];for(n in r)!G8(D9,n)&&G8(r,n)&&K9(o,n);for(;e.length>i;)G8(r,n=e[i++])&&(~Q9(o,n)||K9(o,n));return o},t7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],e7=t7.concat("length","prototype"),n7={f:Object.getOwnPropertyNames||function(t){return J9(t,e7)}},r7={f:Object.getOwnPropertySymbols},i7=s8([].concat),o7=x8("Reflect","ownKeys")||function(t){var e=n7.f(p9(t)),n=r7.f;return n?i7(e,n(t)):e},a7=function(t,e){for(var n=o7(e),r=v9.f,i=c9.f,o=0;o<n.length;o++){var a=n[o];G8(t,a)||r(t,a,i(e,a))}},s7=/#|\.prototype\./,l7=function(t,e){var n=c7[u7(t)];return n==f7||n!=h7&&(m8(e)?Z3(e):!!e)},u7=l7.normalize=function(t){return String(t).replace(s7,".").toLowerCase()},c7=l7.data={},h7=l7.NATIVE="N",f7=l7.POLYFILL="P",p7=l7,d7=c9.f,g7=function(t,e){var n,r,i,o,a,s=t.target,l=t.global,u=t.stat;if(n=l?X3:u?X3[s]||j8(s,{}):(X3[s]||{}).prototype)for(r in e){if(o=e[r],i=t.noTargetGet?(a=d7(n,r))&&a.value:n[r],!p7(l?r:s+(u?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;a7(o,i)}(t.sham||i&&i.sham)&&m9(o,"sham",!0),z9(n,r,o,t)}},v7=Array.isArray||function(t){return"Array"==c8(t)},m7={};m7[t9("toStringTag")]="z";var y7,b7="[object z]"===String(m7),x7=t9("toStringTag"),w7=X3.Object,C7="Arguments"==c8(function(){return arguments}()),S7=b7?c8:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=w7(t),x7))?n:C7?c8(e):"Object"==(r=c8(e))&&m8(e.callee)?"Arguments":r},A7=function(){},E7=[],k7=x8("Reflect","construct"),D7=/^\s*(?:class|function)\b/,F7=s8(D7.exec),M7=!D7.exec(A7),O7=function(t){if(!m8(t))return!1;try{return k7(A7,E7,t),!0}catch(t){return!1}},T7=!k7||Z3((function(){var t;return O7(O7.call)||!O7(Object)||!O7((function(){t=!0}))||t}))?function(t){if(!m8(t))return!1;switch(S7(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return M7||!!F7(D7,C9(t))}:O7,B7=function(t,e,n){var r=i9(e);r in t?v9.f(t,r,n8(0,n)):t[r]=n},_7=t9("species"),I7=s8([].slice),P7=(y7="slice",D8>=51||!Z3((function(){var t=[];return(t.constructor={})[_7]=function(){return{foo:1}},1!==t[y7](Boolean).foo}))),L7=t9("species"),R7=X3.Array,N7=Math.max;g7({target:"Array",proto:!0,forced:!P7},{slice:function(t,e){var n,r,i,o=v8(this),a=Z9(o),s=W9(t,a),l=W9(void 0===e?a:e,a);if(v7(o)&&(n=o.constructor,(T7(n)&&(n===R7||v7(n.prototype))||y8(n)&&null===(n=n[L7]))&&(n=void 0),n===R7||void 0===n))return I7(o,s,l);for(r=new(void 0===n?R7:n)(N7(l-s,0)),i=0;s<l;s++,i++)s in o&&B7(r,i,o[s]);return r.length=i,r}});var j7=b7?{}.toString:function(){return"[object "+S7(this)+"]"};b7||z9(Object.prototype,"toString",j7,{unsafe:!0});var z7,U7=X3.String,V7=function(t){if("Symbol"===S7(t))throw TypeError("Cannot convert a Symbol value to a string");return U7(t)},H7=function(){var t=p9(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},$7=X3.RegExp,G7=Z3((function(){var t=$7("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),W7=G7||Z3((function(){return!$7("a","y").sticky})),q7={BROKEN_CARET:G7||Z3((function(){var t=$7("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:W7,UNSUPPORTED_Y:G7},X7=Object.keys||function(t){return J9(t,t7)},Z7=Y3?Object.defineProperties:function(t,e){p9(t);for(var n,r=v8(e),i=X7(e),o=i.length,a=0;o>a;)v9.f(t,n=i[a++],r[n]);return t},Y7=x8("document","documentElement"),Q7=k9("IE_PROTO"),K7=function(){},J7=function(t){return"<script>"+t+"<\/script>"},ttt=function(t){t.write(J7("")),t.close();var e=t.parentWindow.Object;return t=null,e},ett=function(){try{z7=new ActiveXObject("htmlfile")}catch(t){}var t,e;ett="undefined"!=typeof document?document.domain&&z7?ttt(z7):((e=s9("iframe")).style.display="none",Y7.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(J7("document.F=Object")),t.close(),t.F):ttt(z7);for(var n=t7.length;n--;)delete ett.prototype[t7[n]];return ett()};D9[Q7]=!0;var ntt,rtt,itt=Object.create||function(t,e){var n;return null!==t?(K7.prototype=p9(t),n=new K7,K7.prototype=null,n[Q7]=t):n=ett(),void 0===e?n:Z7(n,e)},ott=X3.RegExp,att=Z3((function(){var t=ott(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),stt=X3.RegExp,ltt=Z3((function(){var t=stt("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),utt=P9.get,ctt=U8("native-string-replace",String.prototype.replace),htt=RegExp.prototype.exec,ftt=htt,ptt=s8("".charAt),dtt=s8("".indexOf),gtt=s8("".replace),vtt=s8("".slice),mtt=(rtt=/b*/g,K3(htt,ntt=/a/,"a"),K3(htt,rtt,"a"),0!==ntt.lastIndex||0!==rtt.lastIndex),ytt=q7.BROKEN_CARET,btt=void 0!==/()??/.exec("")[1];(mtt||btt||ytt||att||ltt)&&(ftt=function(t){var e,n,r,i,o,a,s,l=this,u=utt(l),c=V7(t),h=u.raw;if(h)return h.lastIndex=l.lastIndex,e=K3(ftt,h,c),l.lastIndex=h.lastIndex,e;var f=u.groups,p=ytt&&l.sticky,d=K3(H7,l),g=l.source,v=0,m=c;if(p&&(d=gtt(d,"y",""),-1===dtt(d,"g")&&(d+="g"),m=vtt(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==ptt(c,l.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",d)),btt&&(n=new RegExp("^"+g+"$(?!\\s)",d)),mtt&&(r=l.lastIndex),i=K3(htt,p?n:l,m),p?i?(i.input=vtt(i.input,v),i[0]=vtt(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:mtt&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),btt&&i&&i.length>1&&K3(ctt,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&f)for(i.groups=a=itt(null),o=0;o<f.length;o++)a[(s=f[o])[0]]=i[s[1]];return i});var xtt=ftt;g7({target:"RegExp",proto:!0,forced:/./.exec!==xtt},{exec:xtt});var wtt=Function.prototype,Ctt=wtt.apply,Stt=wtt.bind,Att=wtt.call,Ett="object"==typeof Reflect&&Reflect.apply||(Stt?Att.bind(Ctt):function(){return Att.apply(Ctt,arguments)}),ktt=t9("species"),Dtt=RegExp.prototype,Ftt=t9("match"),Mtt=X3.TypeError,Ott=t9("species"),Ttt=function(t,e){var n,r=p9(t).constructor;return void 0===r||null==(n=p9(r)[Ott])?e:function(t){if(T7(t))return t;throw Mtt(_8(t)+" is not a constructor")}(n)},Btt=s8("".charAt),_tt=s8("".charCodeAt),Itt=s8("".slice),Ptt=function(t){return function(e,n){var r,i,o=V7(g8(e)),a=H9(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=_tt(o,a))<55296||r>56319||a+1===s||(i=_tt(o,a+1))<56320||i>57343?t?Btt(o,a):r:t?Itt(o,a,a+2):i-56320+(r-55296<<10)+65536}},Ltt={codeAt:Ptt(!1),charAt:Ptt(!0)},Rtt=Ltt.charAt,Ntt=function(t,e,n){return e+(n?Rtt(t,e).length:1)},jtt=X3.Array,ztt=Math.max,Utt=function(t,e,n){for(var r=Z9(t),i=W9(e,r),o=W9(void 0===n?r:n,r),a=jtt(ztt(o-i,0)),s=0;i<o;i++,s++)B7(a,s,t[i]);return a.length=s,a},Vtt=X3.TypeError,Htt=function(t,e){var n=t.exec;if(m8(n)){var r=K3(n,t,e);return null!==r&&p9(r),r}if("RegExp"===c8(t))return K3(xtt,t,e);throw Vtt("RegExp#exec called on incompatible receiver")},$tt=q7.UNSUPPORTED_Y,Gtt=Math.min,Wtt=[].push,qtt=s8(/./.exec),Xtt=s8(Wtt),Ztt=s8("".slice);!function(t,e,n,r){var i=t9(t),o=!Z3((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=o&&!Z3((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[ktt]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!o||!a||n){var s=s8(/./[i]),l=e(i,""[t],(function(t,e,n,r,i){var a=s8(t),l=e.exec;return l===xtt||l===Dtt.exec?o&&!i?{done:!0,value:s(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));z9(String.prototype,t,l[0]),z9(Dtt,i,l[1])}r&&m9(Dtt[i],"sham",!0)}("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r,i,o=V7(g8(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!y8(r=t)||!(void 0!==(i=r[Ftt])?i:"RegExp"==c8(r)))return K3(e,o,t,a);for(var s,l,u,c=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,p=new RegExp(t.source,h+"g");(s=K3(xtt,p,o))&&!((l=p.lastIndex)>f&&(Xtt(c,Ztt(o,f,s.index)),s.length>1&&s.index<o.length&&Ett(Wtt,c,Utt(s,1)),u=s[0].length,f=l,c.length>=a));)p.lastIndex===s.index&&p.lastIndex++;return f===o.length?!u&&qtt(p,"")||Xtt(c,""):Xtt(c,Ztt(o,f)),c.length>a?Utt(c,0,a):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:K3(e,this,t,n)}:e,[function(e,n){var i=g8(this),o=null==e?void 0:L8(e,t);return o?K3(o,e,i,n):K3(r,V7(i),e,n)},function(t,i){var o=p9(this),a=V7(t),s=n(r,o,a,i,r!==e);if(s.done)return s.value;var l=Ttt(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+($tt?"g":"y"),h=new l($tt?"^(?:"+o.source+")":o,c),f=void 0===i?4294967295:i>>>0;if(0===f)return[];if(0===a.length)return null===Htt(h,a)?[a]:[];for(var p=0,d=0,g=[];d<a.length;){h.lastIndex=$tt?0:d;var v,m=Htt(h,$tt?Ztt(a,d):a);if(null===m||(v=Gtt(X9(h.lastIndex+($tt?d:0)),a.length))===p)d=Ntt(a,d,u);else{if(Xtt(g,Ztt(a,p,d)),g.length===f)return g;for(var y=1;y<=m.length-1;y++)if(Xtt(g,m[y]),g.length===f)return g;d=p=v}}return Xtt(g,Ztt(a,p)),g}]}),!!Z3((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),$tt);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var Ytt=function(){return Ytt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ytt.apply(this,arguments)};function Qtt(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}function Ktt(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function Jtt(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function tet(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=Jtt(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}var eet=t9("unscopables"),net=Array.prototype;null==net[eet]&&v9.f(net,eet,{configurable:!0,value:itt(null)});var ret,iet,oet,aet=function(t){net[eet][t]=!0},set={},uet=!Z3((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),cet=k9("IE_PROTO"),het=X3.Object,fet=het.prototype,pet=uet?het.getPrototypeOf:function(t){var e=H8(t);if(G8(e,cet))return e[cet];var n=e.constructor;return m8(n)&&e instanceof n?n.prototype:e instanceof het?fet:null},det=t9("iterator"),get=!1;[].keys&&("next"in(oet=[].keys())?(iet=pet(pet(oet)))!==Object.prototype&&(ret=iet):get=!0);var vet=null==ret||Z3((function(){var t={};return ret[det].call(t)!==t}));vet&&(ret={}),m8(ret[det])||z9(ret,det,(function(){return this}));var met={IteratorPrototype:ret,BUGGY_SAFARI_ITERATORS:get},yet=v9.f,bet=t9("toStringTag"),xet=function(t,e,n){t&&!G8(t=n?t:t.prototype,bet)&&yet(t,bet,{configurable:!0,value:e})},wet=met.IteratorPrototype,Cet=function(){return this},Aet=X3.String,Eet=X3.TypeError,ket=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=s8(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return p9(n),function(t){if("object"==typeof t||m8(t))return t;throw Eet("Can't set "+Aet(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Det=j9.PROPER,Fet=j9.CONFIGURABLE,Met=met.IteratorPrototype,Oet=met.BUGGY_SAFARI_ITERATORS,Tet=t9("iterator"),Bet=function(){return this},_et=function(t,e,n,r,i,o,a){!function(t,e,n,r){var i=e+" Iterator";t.prototype=itt(wet,{next:n8(+!r,n)}),xet(t,i,!1),set[i]=Cet}(n,e,r);var s,l,u,c=function(t){if(t===i&&g)return g;if(!Oet&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,p=t.prototype,d=p[Tet]||p["@@iterator"]||i&&p[i],g=!Oet&&d||c(i),v="Array"==e&&p.entries||d;if(v&&(s=pet(v.call(new t)))!==Object.prototype&&s.next&&(pet(s)!==Met&&(ket?ket(s,Met):m8(s[Tet])||z9(s,Tet,Bet)),xet(s,h,!0)),Det&&"values"==i&&d&&"values"!==d.name&&(Fet?m9(p,"name","values"):(f=!0,g=function(){return K3(d,this)})),i)if(l={values:c("values"),keys:o?g:c("keys"),entries:c("entries")},a)for(u in l)(Oet||f||!(u in p))&&z9(p,u,l[u]);else g7({target:e,proto:!0,forced:Oet||f},l);return p[Tet]!==g&&z9(p,Tet,g,{name:i}),set[e]=g,l},Iet=P9.set,Pet=P9.getterFor("Array Iterator"),Let=_et(Array,"Array",(function(t,e){Iet(this,{type:"Array Iterator",target:v8(t),index:0,kind:e})}),(function(){var t=Pet(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");set.Arguments=set.Array,aet("keys"),aet("values"),aet("entries");var Ret=Ltt.charAt,Net=P9.set,jet=P9.getterFor("String Iterator");_et(String,"String",(function(t){Net(this,{type:"String Iterator",string:V7(t),index:0})}),(function(){var t,e=jet(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Ret(n,r),e.index+=t.length,{value:t,done:!1})}));var zet=function(t,e,n){for(var r in e)z9(t,r,e[r],n);return t},Uet=n7.f,Vet="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Het={f:function(t){return Vet&&"Window"==c8(t)?function(t){try{return Uet(t)}catch(t){return Utt(Vet)}}(t):Uet(v8(t))}},$et=Z3((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Get=Object.isExtensible,Wet=Z3((function(){Get(1)}))||$et?function(t){return!!y8(t)&&(!$et||"ArrayBuffer"!=c8(t))&&(!Get||Get(t))}:Get,qet=!Z3((function(){return Object.isExtensible(Object.preventExtensions({}))})),Xet=$3((function(t){var e=v9.f,n=!1,r=Z8("meta"),i=0,o=function(t){e(t,r,{value:{objectID:"O"+i++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var t=n7.f,e=s8([].splice),i={};i[r]=1,t(i).length&&(n7.f=function(n){for(var i=t(n),o=0,a=i.length;o<a;o++)if(i[o]===r){e(i,o,1);break}return i},g7({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Het.f}))},fastKey:function(t,e){if(!y8(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!G8(t,r)){if(!Wet(t))return"F";if(!e)return"E";o(t)}return t[r].objectID},getWeakData:function(t,e){if(!G8(t,r)){if(!Wet(t))return!0;if(!e)return!1;o(t)}return t[r].weakData},onFreeze:function(t){return qet&&n&&Wet(t)&&!G8(t,r)&&o(t),t}};D9[r]=!0})),Zet=s8(s8.bind),Yet=function(t,e){return P8(t),void 0===e?t:Zet?Zet(t,e):function(){return t.apply(e,arguments)}},Qet=t9("iterator"),Ket=Array.prototype,Jet=t9("iterator"),tnt=function(t){if(null!=t)return L8(t,Jet)||L8(t,"@@iterator")||set[S7(t)]},ent=X3.TypeError,nnt=function(t,e,n){var r,i;p9(t);try{if(!(r=L8(t,"return"))){if("throw"===e)throw n;return n}r=K3(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return p9(r),n},rnt=X3.TypeError,int=function(t,e){this.stopped=t,this.result=e},ont=int.prototype,ant=function(t,e,n){var r,i,o,a,s,l,u,c,h=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),g=Yet(e,h),v=function(t){return r&&nnt(r,"normal",t),new int(!0,t)},m=function(t){return f?(p9(t),d?g(t[0],t[1],v):g(t[0],t[1])):d?g(t,v):g(t)};if(p)r=t;else{if(!(i=tnt(t)))throw rnt(_8(t)+" is not iterable");if(void 0!==(c=i)&&(set.Array===c||Ket[Qet]===c)){for(o=0,a=Z9(t);a>o;o++)if((s=m(t[o]))&&w8(ont,s))return s;return new int(!1)}r=function(t,e){var n=arguments.length<2?tnt(t):e;if(P8(n))return p9(K3(n,t));throw ent(_8(t)+" is not iterable")}(t,i)}for(l=r.next;!(u=K3(l,r)).done;){try{s=m(u.value)}catch(t){nnt(r,"throw",t)}if("object"==typeof s&&s&&w8(ont,s))return s}return new int(!1)},snt=X3.TypeError,lnt=function(t,e){if(w8(e,t))return t;throw snt("Incorrect invocation")},unt=t9("iterator"),cnt=!1;try{var hnt=0,fnt={next:function(){return{done:!!hnt++}},return:function(){cnt=!0}};fnt[unt]=function(){return this},Array.from(fnt,(function(){throw 2}))}catch(ot){}var pnt=function(t,e){if(!e&&!cnt)return!1;var n=!1;try{var r={};r[unt]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},dnt=t9("species"),gnt=X3.Array,vnt=function(t,e){return new(function(t){var e;return v7(t)&&(e=t.constructor,(T7(e)&&(e===gnt||v7(e.prototype))||y8(e)&&null===(e=e[dnt]))&&(e=void 0)),void 0===e?gnt:e}(t))(0===e?0:e)},mnt=s8([].push),ynt=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=7==t,s=5==t||o;return function(l,u,c,h){for(var f,p,d=H8(l),g=p8(d),v=Yet(u,c),m=Z9(g),y=0,b=h||vnt,x=e?b(l,m):n||a?b(l,0):void 0;m>y;y++)if((s||y in g)&&(p=v(f=g[y],y,d),t))if(e)x[y]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return y;case 2:mnt(x,f)}else switch(t){case 4:return!1;case 7:mnt(x,f)}return o?-1:r||i?i:x}},bnt={forEach:ynt(0),map:ynt(1),filter:ynt(2),some:ynt(3),every:ynt(4),find:ynt(5),findIndex:ynt(6),filterReject:ynt(7)},xnt=Xet.getWeakData,wnt=P9.set,Cnt=P9.getterFor,Snt=bnt.find,Ant=bnt.findIndex,Ent=s8([].splice),knt=0,Dnt=function(t){return t.frozen||(t.frozen=new Fnt)},Fnt=function(){this.entries=[]},Mnt=function(t,e){return Snt(t.entries,(function(t){return t[0]===e}))};Fnt.prototype={get:function(t){var e=Mnt(this,t);if(e)return e[1]},has:function(t){return!!Mnt(this,t)},set:function(t,e){var n=Mnt(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Ant(this.entries,(function(e){return e[0]===t}));return~e&&Ent(this.entries,e,1),!!~e}};var Ont,Tnt={getConstructor:function(t,e,n,r){var i=t((function(t,i){lnt(t,o),wnt(t,{type:e,id:knt++,frozen:void 0}),null!=i&&ant(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,a=Cnt(e),s=function(t,e,n){var r=a(t),i=xnt(p9(e),!0);return!0===i?Dnt(r).set(e,n):i[r.id]=n,t};return zet(o,{delete:function(t){var e=a(this);if(!y8(t))return!1;var n=xnt(t);return!0===n?Dnt(e).delete(t):n&&G8(n,e.id)&&delete n[e.id]},has:function(t){var e=a(this);if(!y8(t))return!1;var n=xnt(t);return!0===n?Dnt(e).has(t):n&&G8(n,e.id)}}),zet(o,n?{get:function(t){var e=a(this);if(y8(t)){var n=xnt(t);return!0===n?Dnt(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return s(this,t,e)}}:{add:function(t){return s(this,t,!0)}}),i}},Bnt=P9.enforce,_nt=!X3.ActiveXObject&&"ActiveXObject"in X3,Int=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Pnt=function(t,e,n){var r=-1!==t.indexOf("Map"),i=-1!==t.indexOf("Weak"),o=r?"set":"add",a=X3[t],s=a&&a.prototype,l=a,u={},c=function(t){var e=s8(s[t]);z9(s,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(i&&!y8(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return i&&!y8(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(i&&!y8(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(p7(t,!m8(a)||!(i||s.forEach&&!Z3((function(){(new a).entries().next()})))))l=n.getConstructor(e,t,r,o),Xet.enable();else if(p7(t,!0)){var h=new l,f=h[o](i?{}:-0,1)!=h,p=Z3((function(){h.has(1)})),d=pnt((function(t){new a(t)})),g=!i&&Z3((function(){for(var t=new a,e=5;e--;)t[o](e,e);return!t.has(-0)}));d||((l=e((function(t,e){lnt(t,s);var n=function(t,e,n){var r,i;return ket&&m8(r=e.constructor)&&r!==n&&y8(i=r.prototype)&&i!==n.prototype&&ket(t,i),t}(new a,t,l);return null!=e&&ant(e,n[o],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=l),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||f)&&c(o),i&&s.clear&&delete s.clear}return u[t]=l,g7({global:!0,forced:l!=a},u),xet(l,t),i||n.setStrong(l,t,r),l}("WeakMap",Int,Tnt);if(A9&&_nt){Ont=Tnt.getConstructor(Int,"WeakMap",!0),Xet.enable();var Lnt=Pnt.prototype,Rnt=s8(Lnt.delete),Nnt=s8(Lnt.has),jnt=s8(Lnt.get),znt=s8(Lnt.set);zet(Lnt,{delete:function(t){if(y8(t)&&!Wet(t)){var e=Bnt(this);return e.frozen||(e.frozen=new Ont),Rnt(this,t)||e.frozen.delete(t)}return Rnt(this,t)},has:function(t){if(y8(t)&&!Wet(t)){var e=Bnt(this);return e.frozen||(e.frozen=new Ont),Nnt(this,t)||e.frozen.has(t)}return Nnt(this,t)},get:function(t){if(y8(t)&&!Wet(t)){var e=Bnt(this);return e.frozen||(e.frozen=new Ont),Nnt(this,t)?jnt(this,t):e.frozen.get(t)}return jnt(this,t)},set:function(t,e){if(y8(t)&&!Wet(t)){var n=Bnt(this);n.frozen||(n.frozen=new Ont),Nnt(this,t)?znt(this,t,e):n.frozen.set(t,e)}else znt(this,t,e);return this}})}var Unt={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},Vnt=s9("span").classList,Hnt=Vnt&&Vnt.constructor&&Vnt.constructor.prototype,$nt=Hnt===Object.prototype?void 0:Hnt,Gnt=t9("iterator"),Wnt=t9("toStringTag"),qnt=Let.values,Xnt=function(t,e){if(t){if(t[Gnt]!==qnt)try{m9(t,Gnt,qnt)}catch(e){t[Gnt]=qnt}if(t[Wnt]||m9(t,Wnt,e),Unt[e])for(var n in Let)if(t[n]!==Let[n])try{m9(t,n,Let[n])}catch(e){t[n]=Let[n]}}};for(var Znt in Unt)Xnt(X3[Znt]&&X3[Znt].prototype,Znt);Xnt($nt,"DOMTokenList");var Ynt=j9.EXISTS,Qnt=v9.f,Knt=Function.prototype,Jnt=s8(Knt.toString),trt=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ert=s8(trt.exec);Y3&&!Ynt&&Qnt(Knt,"name",{configurable:!0,get:function(){try{return ert(trt,Jnt(this))[1]}catch(ot){return""}}});var nrt=function(t,e){var n=[][t];return!!n&&Z3((function(){n.call(null,e||function(){throw 1},1)}))},rrt=bnt.forEach,irt=nrt("forEach")?[].forEach:function(t){return rrt(this,t,arguments.length>1?arguments[1]:void 0)},ort=function(t){if(t&&t.forEach!==irt)try{m9(t,"forEach",irt)}catch(act){t.forEach=irt}};for(var art in Unt)Unt[art]&&ort(X3[art]&&X3[art].prototype);ort($nt);var srt,lrt,urt,crt,hrt=X3.Promise,frt=t9("species"),prt=/(?:ipad|iphone|ipod).*applewebkit/i.test(C8),drt="process"==c8(X3.process),grt=X3.setImmediate,vrt=X3.clearImmediate,mrt=X3.process,yrt=X3.Dispatch,brt=X3.Function,xrt=X3.MessageChannel,wrt=X3.String,Crt=0,Srt={};try{srt=X3.location}catch(ot){}var Art=function(t){if(G8(Srt,t)){var e=Srt[t];delete Srt[t],e()}},Ert=function(t){return function(){Art(t)}},krt=function(t){Art(t.data)},Drt=function(t){X3.postMessage(wrt(t),srt.protocol+"//"+srt.host)};grt&&vrt||(grt=function(t){var e=I7(arguments,1);return Srt[++Crt]=function(){Ett(m8(t)?t:brt(t),void 0,e)},lrt(Crt),Crt},vrt=function(t){delete Srt[t]},drt?lrt=function(t){mrt.nextTick(Ert(t))}:yrt&&yrt.now?lrt=function(t){yrt.now(Ert(t))}:xrt&&!prt?(crt=(urt=new xrt).port2,urt.port1.onmessage=krt,lrt=Yet(crt.postMessage,crt)):X3.addEventListener&&m8(X3.postMessage)&&!X3.importScripts&&srt&&"file:"!==srt.protocol&&!Z3(Drt)?(lrt=Drt,X3.addEventListener("message",krt,!1)):lrt="onreadystatechange"in s9("script")?function(t){Y7.appendChild(s9("script")).onreadystatechange=function(){Y7.removeChild(this),Art(t)}}:function(t){setTimeout(Ert(t),0)});var Frt,Mrt,Ort,Trt,Brt,_rt,Irt,Prt,Lrt={set:grt,clear:vrt},Rrt=/ipad|iphone|ipod/i.test(C8)&&void 0!==X3.Pebble,Nrt=/web0s(?!.*chrome)/i.test(C8),jrt=c9.f,zrt=Lrt.set,Urt=X3.MutationObserver||X3.WebKitMutationObserver,Vrt=X3.document,Hrt=X3.process,$rt=X3.Promise,Grt=jrt(X3,"queueMicrotask"),Wrt=Grt&&Grt.value;Wrt||(Frt=function(){var t,e;for(drt&&(t=Hrt.domain)&&t.exit();Mrt;){e=Mrt.fn,Mrt=Mrt.next;try{e()}catch(t){throw Mrt?Trt():Ort=void 0,t}}Ort=void 0,t&&t.enter()},prt||drt||Nrt||!Urt||!Vrt?!Rrt&&$rt&&$rt.resolve?((Irt=$rt.resolve(void 0)).constructor=$rt,Prt=Yet(Irt.then,Irt),Trt=function(){Prt(Frt)}):drt?Trt=function(){Hrt.nextTick(Frt)}:(zrt=Yet(zrt,X3),Trt=function(){zrt(Frt)}):(Brt=!0,_rt=Vrt.createTextNode(""),new Urt(Frt).observe(_rt,{characterData:!0}),Trt=function(){_rt.data=Brt=!Brt}));var qrt,Xrt,Zrt,Yrt,Qrt=Wrt||function(t){var e={fn:t,next:void 0};Ort&&(Ort.next=e),Mrt||(Mrt=e,Trt()),Ort=e},Krt=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=P8(e),this.reject=P8(n)},Jrt={f:function(t){return new Krt(t)}},tit=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},eit="object"==typeof window,nit=Lrt.set,rit=t9("species"),iit="Promise",oit=P9.getterFor(iit),ait=P9.set,sit=P9.getterFor(iit),lit=hrt&&hrt.prototype,uit=hrt,cit=lit,hit=X3.TypeError,fit=X3.document,pit=X3.process,dit=Jrt.f,git=dit,vit=!!(fit&&fit.createEvent&&X3.dispatchEvent),mit=m8(X3.PromiseRejectionEvent),yit=!1,bit=p7(iit,(function(){var t=C9(uit),e=t!==String(uit);if(!e&&66===D8)return!0;if(D8>=51&&/native code/.test(t))return!1;var n=new uit((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[rit]=r,!(yit=n.then((function(){}))instanceof r)||!e&&eit&&!mit})),xit=bit||!pnt((function(t){uit.all(t).catch((function(){}))})),wit=function(t){var e;return!(!y8(t)||!m8(e=t.then))&&e},Cit=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;Qrt((function(){for(var r=t.value,i=1==t.state,o=0;n.length>o;){var a,s,l,u=n[o++],c=i?u.ok:u.fail,h=u.resolve,f=u.reject,p=u.domain;try{c?(i||(2===t.rejection&&kit(t),t.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),l=!0)),a===u.promise?f(hit("Promise-chain cycle")):(s=wit(a))?K3(s,a,h,f):h(a)):f(r)}catch(t){p&&!l&&p.exit(),f(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Ait(t)}))}},Sit=function(t,e,n){var r,i;vit?((r=fit.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),X3.dispatchEvent(r)):r={promise:e,reason:n},!mit&&(i=X3["on"+t])?i(r):"unhandledrejection"===t&&function(t,e){var n=X3.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Ait=function(t){K3(nit,X3,(function(){var e,n=t.facade,r=t.value;if(Eit(t)&&(e=tit((function(){drt?pit.emit("unhandledRejection",r,n):Sit("unhandledrejection",n,r)})),t.rejection=drt||Eit(t)?2:1,e.error))throw e.value}))},Eit=function(t){return 1!==t.rejection&&!t.parent},kit=function(t){K3(nit,X3,(function(){var e=t.facade;drt?pit.emit("rejectionHandled",e):Sit("rejectionhandled",e,t.value)}))},Dit=function(t,e,n){return function(r){t(e,r,n)}},Fit=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Cit(t,!0))},Mit=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw hit("Promise can't be resolved itself");var r=wit(e);r?Qrt((function(){var n={done:!1};try{K3(r,e,Dit(Mit,n,t),Dit(Fit,n,t))}catch(e){Fit(n,e,t)}})):(t.value=e,t.state=1,Cit(t,!1))}catch(e){Fit({done:!1},e,t)}}};if(bit&&(cit=(uit=function(t){lnt(this,cit),P8(t),K3(qrt,this);var e=oit(this);try{t(Dit(Mit,e),Dit(Fit,e))}catch(t){Fit(e,t)}}).prototype,(qrt=function(t){ait(this,{type:iit,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=zet(cit,{then:function(t,e){var n=sit(this),r=n.reactions,i=dit(Ttt(this,uit));return i.ok=!m8(t)||t,i.fail=m8(e)&&e,i.domain=drt?pit.domain:void 0,n.parent=!0,r[r.length]=i,0!=n.state&&Cit(n,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),Xrt=function(){var t=new qrt,e=oit(t);this.promise=t,this.resolve=Dit(Mit,e),this.reject=Dit(Fit,e)},Jrt.f=dit=function(t){return t===uit||t===Zrt?new Xrt(t):git(t)},m8(hrt)&&lit!==Object.prototype)){Yrt=lit.then,yit||(z9(lit,"then",(function(t,e){var n=this;return new uit((function(t,e){K3(Yrt,n,t,e)})).then(t,e)}),{unsafe:!0}),z9(lit,"catch",cit.catch,{unsafe:!0}));try{delete lit.constructor}catch(ot){}ket&&ket(lit,cit)}g7({global:!0,wrap:!0,forced:bit},{Promise:uit}),xet(uit,iit,!1),function(t){var e=x8(t),n=v9.f;Y3&&e&&!e[frt]&&n(e,frt,{configurable:!0,get:function(){return this}})}(iit),Zrt=x8(iit),g7({target:iit,stat:!0,forced:bit},{reject:function(t){var e=dit(this);return K3(e.reject,void 0,t),e.promise}}),g7({target:iit,stat:!0,forced:bit},{resolve:function(t){return function(t,e){if(p9(t),y8(e)&&e.constructor===t)return e;var n=Jrt.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),g7({target:iit,stat:!0,forced:xit},{all:function(t){var e=this,n=dit(e),r=n.resolve,i=n.reject,o=tit((function(){var n=P8(e.resolve),o=[],a=0,s=1;ant(t,(function(t){var l=a++,u=!1;s++,K3(n,e,t).then((function(t){u||(u=!0,o[l]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=dit(e),r=n.reject,i=tit((function(){var i=P8(e.resolve);ant(t,(function(t){K3(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Oit=j9.PROPER,Tit=RegExp.prototype,Bit=Tit.toString,_it=s8(H7),Iit=Z3((function(){return"/a/b"!=Bit.call({source:"a",flags:"b"})})),Pit=Oit&&"toString"!=Bit.name;(Iit||Pit)&&z9(RegExp.prototype,"toString",(function(){var t=p9(this),e=V7(t.source),n=t.flags;return"/"+e+"/"+V7(void 0===n&&w8(Tit,t)&&!("flags"in Tit)?_it(t):n)}),{unsafe:!0});var Lit=new WeakMap;function Rit(t){return t.getMenuConfig("uploadImage")}function Nit(t,e){return Qtt(this,void 0,void 0,(function(){return Ktt(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(e),r.onload=function(){var i=r.result;if(i){var o=i.toString(),a=0===o.indexOf("data:image")?"":o;pP(t,o,e.name,a),n("ok")}}}))]}))}))}function jit(t,e){return Qtt(this,void 0,void 0,(function(){var n,r,i,o;return Ktt(this,(function(a){switch(a.label){case 0:return n=function(t){var e=Lit.get(t);if(null!=e)return e;var n=Rit(t),r=n.onSuccess,i=n.onProgress,o=n.onFailed,a=n.customInsert,s=n.onError;return e=Bk(Ytt(Ytt({},n),{onProgress:function(e){t.showProgressBar(e),i&&i(e)},onSuccess:function(e,n){if(a)a(n,(function(e,n,r){return pP(t,e,n,r)}));else{var i=n.errno,s=void 0===i?1:i,l=n.data,u=void 0===l?{}:l;if(0!==s)return console.error("'"+e.name+"' upload failed",n),void o(e,n);if(Array.isArray(u))u.forEach((function(e){var n=e.url,r=void 0===n?"":n,i=e.alt,o=void 0===i?"":i,a=e.href;pP(t,r,o,void 0===a?"":a)}));else{var c=u.url,h=void 0===c?"":c,f=u.alt,p=void 0===f?"":f,d=u.href;pP(t,h,p,void 0===d?"":d)}r(e,n)}},onError:function(t,e,n){var r=t.name;console.error("'"+r+" upload error",e,n),s&&s(t,e,n)}})),Lit.set(t,e),e}(t),r=e.name,i=e.type,o=e.size,n.addFile({name:r,type:i,size:o,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function zit(t,e){var n,r;return Qtt(this,void 0,void 0,(function(){var i,o,a,s,l,u,c,h,f;return Ktt(this,(function(p){switch(p.label){case 0:if(null==e)return[2];i=Array.prototype.slice.call(e),o=Rit(t),a=o.customUpload,s=o.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),l=tet(i),p.label=2;case 2:return[4,l.next()];case 3:return(u=p.sent()).done?[3,10]:(c=u.value,h=c.size,s&&h<=s?[4,Nit(t,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(e,n,r){return pP(t,e,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,jit(t,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return f=p.sent(),n={error:f},[3,17];case 12:return p.trys.push([12,,15,16]),u&&!u.done&&(r=l.return)?[4,r.call(l)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var Uit=s8([].join),Vit=p8!=Object,Hit=nrt("join",",");g7({target:"Array",proto:!0,forced:Vit||!Hit},{join:function(t){return Uit(v8(this),void 0===t?",":t)}}),So&&(eo.fn.append=So),uo&&(eo.fn.on=uo),Mo&&(eo.fn.remove=Mo),lo&&(eo.fn.val=lo),_o&&(eo.fn.click=_o),go&&(eo.fn.hide=go);var $it=function(){function t(){this.title=ED("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return gP(t)},t.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},t.prototype.exec=function(t,e){var n=this.getMenuConfig(t),r=n.allowedFileTypes,i=void 0===r?[]:r,o=n.customBrowseAndUpload;if(o)o((function(e,n,r){return pP(t,e,n,r)}));else{var a="";i.length>0&&(a='accept="'+i.join(", ")+'"');var s=eo("body"),l=eo('<input type="file" '+a+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",(function(){var e=l[0].files;zit(t,e)}))}},t}(),Git={menus:[{key:"uploadImage",factory:function(){return new $it},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){},onError:function(t,e,n){},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,n=t;return n.insertData=function(r){if(gP(n))e(r);else if(r.getData("text/plain"))e(r);else{var i=r.files;i.length<=0?e(r):Array.prototype.slice.call(i).some((function(t){return"image"===function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(t.type.split("/"),1)[0]}))?zit(t,i):e(r)}},n}};AD("en",{highLightModule:{selectLang:"Language"}}),AD("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Wit="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function qit(t){var e={exports:{}};return t(e,e.exports),e.exports}var Xit,Zit,Yit=function(t){return t&&t.Math==Math&&t},Qit=Yit("object"==typeof globalThis&&globalThis)||Yit("object"==typeof window&&window)||Yit("object"==typeof self&&self)||Yit("object"==typeof Wit&&Wit)||function(){return this}()||Function("return this")(),Kit=Object.defineProperty,Jit=function(t,e){try{Kit(Qit,t,{value:e,configurable:!0,writable:!0})}catch(it){Qit[t]=e}return e},tot=Qit["__core-js_shared__"]||Jit("__core-js_shared__",{}),eot=qit((function(t){(t.exports=function(t,e){return tot[t]||(tot[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),not=Function.prototype,rot=not.bind,iot=not.call,oot=rot&&rot.bind(iot),aot=rot?function(t){return t&&oot(iot,t)}:function(t){return t&&function(){return iot.apply(t,arguments)}},sot=Qit.TypeError,lot=function(t){if(null==t)throw sot("Can't call method on "+t);return t},uot=Qit.Object,cot=function(t){return uot(lot(t))},hot=aot({}.hasOwnProperty),fot=Object.hasOwn||function(t,e){return hot(cot(t),e)},pot=0,dot=Math.random(),got=aot(1..toString),vot=function(t){return"Symbol("+(void 0===t?"":t)+")_"+got(++pot+dot,36)},mot=function(t){return"function"==typeof t},yot=function(t){return mot(t)?t:void 0},bot=function(t,e){return arguments.length<2?yot(Qit[t]):Qit[t]&&Qit[t][e]},xot=bot("navigator","userAgent")||"",wot=Qit.process,Cot=Qit.Deno,Sot=wot&&wot.versions||Cot&&Cot.version,Aot=Sot&&Sot.v8;Aot&&(Zit=(Xit=Aot.split("."))[0]>0&&Xit[0]<4?1:+(Xit[0]+Xit[1])),!Zit&&xot&&(!(Xit=xot.match(/Edge\/(\d+)/))||Xit[1]>=74)&&(Xit=xot.match(/Chrome\/(\d+)/))&&(Zit=+Xit[1]);var Eot=Zit,kot=function(t){try{return!!t()}catch(t){return!0}},Dot=!!Object.getOwnPropertySymbols&&!kot((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Eot&&Eot<41})),Fot=Dot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Mot=eot("wks"),Oot=Qit.Symbol,Tot=Oot&&Oot.for,Bot=Fot?Oot:Oot&&Oot.withoutSetter||vot,_ot=function(t){if(!fot(Mot,t)||!Dot&&"string"!=typeof Mot[t]){var e="Symbol."+t;Dot&&fot(Oot,t)?Mot[t]=Oot[t]:Mot[t]=Fot&&Tot?Tot(e):Bot(e)}return Mot[t]},Iot={};Iot[_ot("toStringTag")]="z";var Pot="[object z]"===String(Iot),Lot=!kot((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Rot=function(t){return"object"==typeof t?null!==t:mot(t)},Not=Qit.document,jot=Rot(Not)&&Rot(Not.createElement),zot=function(t){return jot?Not.createElement(t):{}},Uot=!Lot&&!kot((function(){return 7!=Object.defineProperty(zot("div"),"a",{get:function(){return 7}}).a})),Vot=Qit.String,Hot=Qit.TypeError,$ot=function(t){if(Rot(t))return t;throw Hot(Vot(t)+" is not an object")},Got=Function.prototype.call,Wot=Got.bind?Got.bind(Got):function(){return Got.apply(Got,arguments)},qot=aot({}.isPrototypeOf),Xot=Qit.Object,Zot=Fot?function(t){return"symbol"==typeof t}:function(t){var e=bot("Symbol");return mot(e)&&qot(e.prototype,Xot(t))},Yot=Qit.String,Qot=function(t){try{return Yot(t)}catch(t){return"Object"}},Kot=Qit.TypeError,Jot=function(t){if(mot(t))return t;throw Kot(Qot(t)+" is not a function")},tat=function(t,e){var n=t[e];return null==n?void 0:Jot(n)},eat=Qit.TypeError,nat=Qit.TypeError,rat=_ot("toPrimitive"),iat=function(t,e){if(!Rot(t)||Zot(t))return t;var n,r=tat(t,rat);if(r){if(void 0===e&&(e="default"),n=Wot(r,t,e),!Rot(n)||Zot(n))return n;throw nat("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&mot(n=t.toString)&&!Rot(r=Wot(n,t)))return r;if(mot(n=t.valueOf)&&!Rot(r=Wot(n,t)))return r;if("string"!==e&&mot(n=t.toString)&&!Rot(r=Wot(n,t)))return r;throw eat("Can't convert object to primitive value")}(t,e)},oat=function(t){var e=iat(t,"string");return Zot(e)?e:e+""},aat=Qit.TypeError,sat=Object.defineProperty,lat={f:Lot?sat:function(t,e,n){if($ot(t),e=oat(e),$ot(n),Uot)try{return sat(t,e,n)}catch(t){}if("get"in n||"set"in n)throw aat("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},uat=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},cat=Lot?function(t,e,n){return lat.f(t,e,uat(1,n))}:function(t,e,n){return t[e]=n,t},hat=aot(Function.toString);mot(tot.inspectSource)||(tot.inspectSource=function(t){return hat(t)});var fat,pat,dat,gat=tot.inspectSource,vat=Qit.WeakMap,mat=mot(vat)&&/native code/.test(gat(vat)),yat=eot("keys"),bat=function(t){return yat[t]||(yat[t]=vot(t))},xat={},wat=Qit.TypeError,Cat=Qit.WeakMap;if(mat||tot.state){var Sat=tot.state||(tot.state=new Cat),Aat=aot(Sat.get),Eat=aot(Sat.has),kat=aot(Sat.set);fat=function(t,e){if(Eat(Sat,t))throw new wat("Object already initialized");return e.facade=t,kat(Sat,t,e),e},pat=function(t){return Aat(Sat,t)||{}},dat=function(t){return Eat(Sat,t)}}else{var Dat=bat("state");xat[Dat]=!0,fat=function(t,e){if(fot(t,Dat))throw new wat("Object already initialized");return e.facade=t,cat(t,Dat,e),e},pat=function(t){return fot(t,Dat)?t[Dat]:{}},dat=function(t){return fot(t,Dat)}}var Fat={set:fat,get:pat,has:dat,enforce:function(t){return dat(t)?pat(t):fat(t,{})},getterFor:function(t){return function(e){var n;if(!Rot(e)||(n=pat(e)).type!==t)throw wat("Incompatible receiver, "+t+" required");return n}}},Mat=Function.prototype,Oat=Lot&&Object.getOwnPropertyDescriptor,Tat=fot(Mat,"name"),Bat={EXISTS:Tat,PROPER:Tat&&"something"===function(){}.name,CONFIGURABLE:Tat&&(!Lot||Lot&&Oat(Mat,"name").configurable)},_at=qit((function(t){var e=Bat.CONFIGURABLE,n=Fat.get,r=Fat.enforce,i=String(String).split("String");(t.exports=function(t,n,o,a){var s,l=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,h=a&&void 0!==a.name?a.name:n;mot(o)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!fot(o,"name")||e&&o.name!==h)&&cat(o,"name",h),(s=r(o)).source||(s.source=i.join("string"==typeof h?h:""))),t!==Qit?(l?!c&&t[n]&&(u=!0):delete t[n],u?t[n]=o:cat(t,n,o)):u?t[n]=o:Jit(n,o)})(Function.prototype,"toString",(function(){return mot(this)&&n(this).source||gat(this)}))})),Iat=aot({}.toString),Pat=aot("".slice),Lat=function(t){return Pat(Iat(t),8,-1)},Rat=_ot("toStringTag"),Nat=Qit.Object,jat="Arguments"==Lat(function(){return arguments}()),zat=Pot?Lat:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Nat(t),Rat))?n:jat?Lat(e):"Object"==(r=Lat(e))&&mot(e.callee)?"Arguments":r},Uat=Pot?{}.toString:function(){return"[object "+zat(this)+"]"};Pot||_at(Object.prototype,"toString",Uat,{unsafe:!0});var Vat,Hat,$at={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},Gat=zot("span").classList,Wat=Gat&&Gat.constructor&&Gat.constructor.prototype,qat=Wat===Object.prototype?void 0:Wat,Xat=aot(aot.bind),Zat=Qit.Object,Yat=aot("".split),Qat=kot((function(){return!Zat("z").propertyIsEnumerable(0)}))?function(t){return"String"==Lat(t)?Yat(t,""):Zat(t)}:Zat,Kat=Math.ceil,Jat=Math.floor,tst=function(t){var e=+t;return e!=e||0===e?0:(e>0?Jat:Kat)(e)},est=Math.min,nst=function(t){return t>0?est(tst(t),9007199254740991):0},rst=function(t){return nst(t.length)},ist=Array.isArray||function(t){return"Array"==Lat(t)},ost=function(){},ast=[],sst=bot("Reflect","construct"),lst=/^\s*(?:class|function)\b/,ust=aot(lst.exec),cst=!lst.exec(ost),hst=function(t){if(!mot(t))return!1;try{return sst(ost,ast,t),!0}catch(t){return!1}},fst=!sst||kot((function(){var t;return hst(hst.call)||!hst(Object)||!hst((function(){t=!0}))||t}))?function(t){if(!mot(t))return!1;switch(zat(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return cst||!!ust(lst,gat(t))}:hst,pst=_ot("species"),dst=Qit.Array,gst=function(t,e){return new(function(t){var e;return ist(t)&&(e=t.constructor,(fst(e)&&(e===dst||ist(e.prototype))||Rot(e)&&null===(e=e[pst]))&&(e=void 0)),void 0===e?dst:e}(t))(0===e?0:e)},vst=aot([].push),mst=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=7==t,s=5==t||o;return function(l,u,c,h){for(var f,p,d=cot(l),g=Qat(d),v=function(t,e){return Jot(t),void 0===e?t:Xat?Xat(t,e):function(){return t.apply(e,arguments)}}(u,c),m=rst(g),y=0,b=h||gst,x=e?b(l,m):n||a?b(l,0):void 0;m>y;y++)if((s||y in g)&&(p=v(f=g[y],y,d),t))if(e)x[y]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return y;case 2:vst(x,f)}else switch(t){case 4:return!1;case 7:vst(x,f)}return o?-1:r||i?i:x}},yst={forEach:mst(0),map:mst(1),filter:mst(2),some:mst(3),every:mst(4),find:mst(5),findIndex:mst(6),filterReject:mst(7)}.forEach,bst=(Hat=[]["forEach"])&&kot((function(){Hat.call(null,Vat||function(){throw 1},1)}))?[].forEach:function(t){return yst(this,t,arguments.length>1?arguments[1]:void 0)},xst=function(t){if(t&&t.forEach!==bst)try{cat(t,"forEach",bst)}catch(ot){t.forEach=bst}};for(var wst in $at)$at[wst]&&xst(Qit[wst]&&Qit[wst].prototype);xst(qat);var Cst={}.propertyIsEnumerable,Sst=Object.getOwnPropertyDescriptor,Ast={f:Sst&&!Cst.call({1:2},1)?function(t){var e=Sst(this,t);return!!e&&e.enumerable}:Cst},Est=function(t){return Qat(lot(t))},kst=Object.getOwnPropertyDescriptor,Dst={f:Lot?kst:function(t,e){if(t=Est(t),e=oat(e),Uot)try{return kst(t,e)}catch(t){}if(fot(t,e))return uat(!Wot(Ast.f,t,e),t[e])}},Fst=Math.max,Mst=Math.min,Ost=function(t,e){var n=tst(t);return n<0?Fst(n+e,0):Mst(n,e)},Tst=function(t){return function(e,n,r){var i,o=Est(e),a=rst(o),s=Ost(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Bst={includes:Tst(!0),indexOf:Tst(!1)}.indexOf,_st=aot([].push),Ist=function(t,e){var n,r=Est(t),i=0,o=[];for(n in r)!fot(xat,n)&&fot(r,n)&&_st(o,n);for(;e.length>i;)fot(r,n=e[i++])&&(~Bst(o,n)||_st(o,n));return o},Pst=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Lst=Pst.concat("length","prototype"),Rst={f:Object.getOwnPropertyNames||function(t){return Ist(t,Lst)}},Nst={f:Object.getOwnPropertySymbols},jst=aot([].concat),zst=bot("Reflect","ownKeys")||function(t){var e=Rst.f($ot(t)),n=Nst.f;return n?jst(e,n(t)):e},Ust=function(t,e){for(var n=zst(e),r=lat.f,i=Dst.f,o=0;o<n.length;o++){var a=n[o];fot(t,a)||r(t,a,i(e,a))}},Vst=/#|\.prototype\./,Hst=function(t,e){var n=Gst[$st(t)];return n==qst||n!=Wst&&(mot(e)?kot(e):!!e)},$st=Hst.normalize=function(t){return String(t).replace(Vst,".").toLowerCase()},Gst=Hst.data={},Wst=Hst.NATIVE="N",qst=Hst.POLYFILL="P",Xst=Hst,Zst=Dst.f,Yst=function(t,e){var n,r,i,o,a,s=t.target,l=t.global,u=t.stat;if(n=l?Qit:u?Qit[s]||Jit(s,{}):(Qit[s]||{}).prototype)for(r in e){if(o=e[r],i=t.noTargetGet?(a=Zst(n,r))&&a.value:n[r],!Xst(l?r:s+(u?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ust(o,i)}(t.sham||i&&i.sham)&&cat(o,"sham",!0),_at(n,r,o,t)}},Qst=Object.keys||function(t){return Ist(t,Pst)},Kst=Object.assign,Jst=Object.defineProperty,tlt=aot([].concat),elt=!Kst||kot((function(){if(Lot&&1!==Kst({b:1},Kst(Jst({},"a",{enumerable:!0,get:function(){Jst(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Kst({},t)[n]||Qst(Kst({},e)).join("")!=r}))?function(t,e){for(var n=cot(t),r=arguments.length,i=1,o=Nst.f,a=Ast.f;r>i;)for(var s,l=Qat(arguments[i++]),u=o?tlt(Qst(l),o(l)):Qst(l),c=u.length,h=0;c>h;)s=u[h++],Lot&&!Wot(a,l,s)||(n[s]=l[s]);return n}:Kst;Yst({target:"Object",stat:!0,forced:Object.assign!==elt},{assign:elt});var nlt=qit((function(t){var e=function(t){var e=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},i={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof o?new o(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++n}),t.__id},clone:function t(e,n){var r,o;switch(n=n||{},i.util.type(e)){case"Object":if(o=i.util.objId(e),n[o])return n[o];for(var a in r={},n[o]=r,e)e.hasOwnProperty(a)&&(r[a]=t(e[a],n));return r;case"Array":return o=i.util.objId(e),n[o]?n[o]:(r=[],n[o]=r,e.forEach((function(e,i){r[i]=t(e,n)})),r);default:return e}},getLanguage:function(t){for(;t&&!e.test(t.className);)t=t.parentElement;return t?(t.className.match(e)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var n in e)if(e[n].src==t)return e[n]}return null}},isActive:function(t,e,n){for(var r="no-"+e;t;){var i=t.classList;if(i.contains(e))return!0;if(i.contains(r))return!1;t=t.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(t,e){var n=i.util.clone(i.languages[t]);for(var r in e)n[r]=e[r];return n},insertBefore:function(t,e,n,r){var o=(r=r||i.languages)[t],a={};for(var s in o)if(o.hasOwnProperty(s)){if(s==e)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(s)||(a[s]=o[s])}var u=r[t];return r[t]=a,i.languages.DFS(i.languages,(function(e,n){n===u&&e!=t&&(this[e]=a)})),a},DFS:function t(e,n,r,o){o=o||{};var a=i.util.objId;for(var s in e)if(e.hasOwnProperty(s)){n.call(e,s,e[s],r||s);var l=e[s],u=i.util.type(l);"Object"!==u||o[a(l)]?"Array"!==u||o[a(l)]||(o[a(l)]=!0,t(l,n,s,o)):(o[a(l)]=!0,t(l,n,null,o))}}},plugins:{},highlightAll:function(t,e){i.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,n){var r={callback:n,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var o,a=0;o=r.elements[a++];)i.highlightElement(o,!0===e,r.callback)},highlightElement:function(n,r,o){var a=i.util.getLanguage(n),s=i.languages[a];n.className=n.className.replace(e,"").replace(/\s+/g," ")+" language-"+a;var l=n.parentElement;l&&"pre"===l.nodeName.toLowerCase()&&(l.className=l.className.replace(e,"").replace(/\s+/g," ")+" language-"+a);var u={element:n,language:a,grammar:s,code:n.textContent};function c(t){u.highlightedCode=t,i.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,i.hooks.run("after-highlight",u),i.hooks.run("complete",u),o&&o.call(u.element)}if(i.hooks.run("before-sanity-check",u),(l=u.element.parentElement)&&"pre"===l.nodeName.toLowerCase()&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!u.code)return i.hooks.run("complete",u),void(o&&o.call(u.element));if(i.hooks.run("before-highlight",u),u.grammar)if(r&&t.Worker){var h=new Worker(i.filename);h.onmessage=function(t){c(t.data)},h.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else c(i.highlight(u.code,u.grammar,u.language));else c(i.util.encode(u.code))},highlight:function(t,e,n){var r={code:t,grammar:e,language:n};return i.hooks.run("before-tokenize",r),r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),o.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(t,e){var n=e.rest;if(n){for(var r in n)e[r]=n[r];delete e.rest}var i=new l;return u(i,i.head,t),s(t,i,e,i.head,0),function(t){for(var e=[],n=t.head.next;n!==t.tail;)e.push(n.value),n=n.next;return e}(i)},hooks:{all:{},add:function(t,e){var n=i.hooks.all;n[t]=n[t]||[],n[t].push(e)},run:function(t,e){var n=i.hooks.all[t];if(n&&n.length)for(var r,o=0;r=n[o++];)r(e)}},Token:o};function o(t,e,n,r){this.type=t,this.content=e,this.alias=n,this.length=0|(r||"").length}function a(t,e,n,r){t.lastIndex=e;var i=t.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function s(t,e,n,r,l,h){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var d=0;d<p.length;++d){if(h&&h.cause==f+","+d)return;var g=p[d],v=g.inside,m=!!g.lookbehind,y=!!g.greedy,b=g.alias;if(y&&!g.pattern.global){var x=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,x+"g")}for(var w=g.pattern||g,C=r.next,S=l;C!==e.tail&&!(h&&S>=h.reach);S+=C.value.length,C=C.next){var A=C.value;if(e.length>t.length)return;if(!(A instanceof o)){var E,k=1;if(y){if(!(E=a(w,S,t,m)))break;var D=E.index,F=E.index+E[0].length,M=S;for(M+=C.value.length;D>=M;)M+=(C=C.next).value.length;if(S=M-=C.value.length,C.value instanceof o)continue;for(var O=C;O!==e.tail&&(M<F||"string"==typeof O.value);O=O.next)k++,M+=O.value.length;k--,A=t.slice(S,M),E.index-=S}else if(!(E=a(w,0,A,m)))continue;D=E.index;var T=E[0],B=A.slice(0,D),_=A.slice(D+T.length),I=S+A.length;h&&I>h.reach&&(h.reach=I);var P=C.prev;if(B&&(P=u(e,P,B),S+=B.length),c(e,P,k),C=u(e,P,new o(f,v?i.tokenize(T,v):T,b,T)),_&&u(e,C,_),k>1){var L={cause:f+","+d,reach:I};s(t,e,n,C.prev,S,L),h&&L.reach>h.reach&&(h.reach=L.reach)}}}}}}function l(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function u(t,e,n){var r=e.next,i={value:n,prev:e,next:r};return e.next=i,r.prev=i,t.length++,i}function c(t,e,n){for(var r=e.next,i=0;i<n&&r!==t.tail;i++)r=r.next;e.next=r,r.prev=e,t.length-=i}if(t.Prism=i,o.stringify=function t(e,n){if("string"==typeof e)return e;if(Array.isArray(e)){var r="";return e.forEach((function(e){r+=t(e,n)})),r}var o={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},a=e.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(o.classes,a):o.classes.push(a)),i.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},!t.document)return t.addEventListener?(i.disableWorkerMessageHandler||t.addEventListener("message",(function(e){var n=JSON.parse(e.data),r=n.language,o=n.code,a=n.immediateClose;t.postMessage(i.highlight(o,i.languages[r],r)),a&&t.close()}),!1),i):i;var h=i.util.currentScript();function f(){i.manual||i.highlightAll()}if(h&&(i.filename=h.src,h.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var p=document.readyState;"loading"===p||"interactive"===p&&h&&h.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
- /**
- * Prism: Lightweight, robust, elegant syntax highlighting
- *
- * @license MIT <https://opensource.org/licenses/MIT>
- * @author Lea Verou <https://lea.verou.me>
- * @namespace
- * @public
- */t.exports&&(t.exports=e),void 0!==Wit&&(Wit.Prism=e),e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,function(){if(void 0!==e&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var t={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",i="loaded",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',a=/\blang(?:uage)?-([\w-]+)\b/i;e.hooks.add("before-highlightall",(function(t){t.selector+=", "+o})),e.hooks.add("before-sanity-check",(function(a){var s=a.element;if(s.matches(o)){a.code="",s.setAttribute(n,r);var u=s.appendChild(document.createElement("CODE"));u.textContent="Loading…";var c=s.getAttribute("data-src"),h=a.language;if("none"===h){var f=(/\.(\w+)$/.exec(c)||[,"none"])[1];h=t[f]||f}l(u,h),l(s,h);var p=e.plugins.autoloader;p&&p.loadLanguages(h);var d=new XMLHttpRequest;d.open("GET",c,!0),d.onreadystatechange=function(){var t,r;4==d.readyState&&(d.status<400&&d.responseText?(s.setAttribute(n,i),u.textContent=d.responseText,e.highlightElement(u)):(s.setAttribute(n,"failed"),d.status>=400?u.textContent=(t=d.status,r=d.statusText,"✖ Error "+t+" while fetching file: "+r):u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),e.plugins.fileHighlight={highlight:function(t){for(var n,r=(t||document).querySelectorAll(o),i=0;n=r[i++];)e.highlightElement(n)}};var s=!1;e.fileHighlight=function(){s||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),s=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}}function l(t,e){var n=t.className;n=n.replace(a," ")+" language-"+e,t.className=n.replace(/\s+/g," ").trim()}}()}));!function(t){var e=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(t,e){return t=t.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return i})),RegExp(t,e)}i=o(i).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx},alias:"language-javascript"}},t.languages.jsx.tag);var a=function(t){return t?"string"==typeof t?t:"string"==typeof t.content?t.content:t.content.map(a).join(""):""},s=function(e){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=!1;if("string"!=typeof i&&("tag"===i.type&&i.content[0]&&"tag"===i.content[0].type?"</"===i.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:a(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var l=a(i);r<e.length-1&&("string"==typeof e[r+1]||"plain-text"===e[r+1].type)&&(l+=a(e[r+1]),e.splice(r+1,1)),r>0&&("string"==typeof e[r-1]||"plain-text"===e[r-1].type)&&(l=a(e[r-1])+l,e.splice(r-1,1),r--),e[r]=new t.Token("plain-text",l,null,l)}i.content&&"string"!=typeof i.content&&s(i.content)}};t.hooks.add("after-tokenize",(function(t){"jsx"!==t.language&&"tsx"!==t.language||s(t.tokens)}))}(Prism),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter;var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:o};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];t.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",(function(e){/<\?/.test(e.code)&&t.languages["markup-templating"].buildPlaceholders(e,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),t.hooks.add("after-tokenize",(function(e){t.languages["markup-templating"].tokenizePlaceholders(e,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return e.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return e.source}));t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return e.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism),function(t){function e(t,e){return t.replace(/<<(\d+)>>/g,(function(t,n){return"(?:"+e[+n]+")"}))}function n(t,n,r){return RegExp(e(t,n),r||"")}function r(t,e){for(var n=0;n<e;n++)t=t.replace(/<<self>>/g,(function(){return"(?:"+t+")"}));return t.replace(/<<self>>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(t){return"\\b(?:"+t.trim().replace(/ /g,"|")+")\\b"}var u=l(o),c=RegExp(l(i+" "+o+" "+a+" "+s)),h=l(o+" "+a+" "+s),f=l(i+" "+o+" "+s),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),d=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=e(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),m=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[h,v]),y=/\[\s*(?:,\s*)*\]/.source,b=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,y]),x=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,d,y]),w=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),C=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,m,y]),S={keyword:c,punctuation:/[<>()?,.:[\]]/},A=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,k=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0},{pattern:RegExp(A),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,C]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[u,v]),lookbehind:!0,inside:S},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:S},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,f,g]),inside:S}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[d]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,m]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:S}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,v,g,C,c.source,d,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,d]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(C),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var D=E+"|"+A,F=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[D]),M=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[F]),2),O=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,T=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,M]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[O,T]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[O]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[M]),inside:t.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var B=/:[^}\r\n]+/.source,_=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[F]),2),I=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[_,B]),P=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[D]),2),L=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,B]);function R(e,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[e]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,B]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:R(I,_)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:R(L,P)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){t.languages.ruby=t.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var e={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:t.languages.ruby}};delete t.languages.ruby.function,t.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:e}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:t.languages.ruby}}}),t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),t.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:e}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:e}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],t.languages.rb=t.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(t){t.inside.interpolation.inside=Prism.languages.swift})),function(t){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,a=0;a<i.length;a++)o[i[a]]=t.languages.bash[i[a]];t.languages.shell=t.languages.bash}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(t){return t=t.replace(/<inner>/g,(function(){return e})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+t+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(e){["url","bold","italic","strike","code-snippet"].forEach((function(n){e!==n&&(t.languages.markdown[e].inside.content.inside[n]=t.languages.markdown[n])}))})),t.hooks.add("after-tokenize",(function(t){"markdown"!==t.language&&"md"!==t.language||function t(e){if(e&&"string"!=typeof e)for(var n=0,r=e.length;n<r;n++){var i=e[n];if("code"===i.type){var o=i.content[1],a=i.content[3];if(o&&a&&"code-language"===o.type&&"code-block"===a.type&&"string"==typeof o.content){var s=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,l]:a.alias.push(l):a.alias=[l]}}else t(i.content)}}(t.tokens)})),t.hooks.add("wrap",(function(e){if("code-block"===e.type){for(var n="",r=0,i=e.classes.length;r<i;r++){var o=e.classes[r],u=/language-(.+)/.exec(o);if(u){n=u[1];break}}var c=t.languages[n];if(c)e.content=t.highlight(function(t){var e=t.replace(a,"");return e.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(t,e){var n;if("#"===(e=e.toLowerCase())[0])return n="x"===e[1]?parseInt(e.slice(2),16):Number(e.slice(1)),l(n);var r=s[e];return r||t}))}(e.content),c,n);else if(n&&"none"!==n&&t.plugins.autoloader){var h="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());e.attributes.id=h,t.plugins.autoloader.loadLanguages(n,(function(){var e=document.getElementById(h);e&&(e.innerHTML=t.highlight(e.textContent,t.languages[n],n))}))}}}));var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown}(Prism);var rlt=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function ilt(t){return"string"==typeof t?t.length:"string"==typeof t.content?t.content.length:t.content.reduce((function(t,e){return t+ilt(e)}),0)}var olt,alt=Qit.String,slt=function(t){if("Symbol"===zat(t))throw TypeError("Cannot convert a Symbol value to a string");return alt(t)},llt=function(){var t=$ot(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ult=Qit.RegExp,clt=kot((function(){var t=ult("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),hlt=clt||kot((function(){return!ult("a","y").sticky})),flt={BROKEN_CARET:clt||kot((function(){var t=ult("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:hlt,UNSUPPORTED_Y:clt},plt=Lot?Object.defineProperties:function(t,e){$ot(t);for(var n,r=Est(e),i=Qst(e),o=i.length,a=0;o>a;)lat.f(t,n=i[a++],r[n]);return t},dlt=bot("document","documentElement"),glt=bat("IE_PROTO"),vlt=function(){},mlt=function(t){return"<script>"+t+"<\/script>"},ylt=function(t){t.write(mlt("")),t.close();var e=t.parentWindow.Object;return t=null,e},blt=function(){try{olt=new ActiveXObject("htmlfile")}catch(t){}var t,e;blt="undefined"!=typeof document?document.domain&&olt?ylt(olt):((e=zot("iframe")).style.display="none",dlt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(mlt("document.F=Object")),t.close(),t.F):ylt(olt);for(var n=Pst.length;n--;)delete blt.prototype[Pst[n]];return blt()};xat[glt]=!0;var xlt,wlt,Clt=Object.create||function(t,e){var n;return null!==t?(vlt.prototype=$ot(t),n=new vlt,vlt.prototype=null,n[glt]=t):n=blt(),void 0===e?n:plt(n,e)},Slt=Qit.RegExp,Alt=kot((function(){var t=Slt(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Elt=Qit.RegExp,klt=kot((function(){var t=Elt("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Dlt=Fat.get,Flt=eot("native-string-replace",String.prototype.replace),Mlt=RegExp.prototype.exec,Olt=Mlt,Tlt=aot("".charAt),Blt=aot("".indexOf),_lt=aot("".replace),Ilt=aot("".slice),Plt=(wlt=/b*/g,Wot(Mlt,xlt=/a/,"a"),Wot(Mlt,wlt,"a"),0!==xlt.lastIndex||0!==wlt.lastIndex),Llt=flt.BROKEN_CARET,Rlt=void 0!==/()??/.exec("")[1];(Plt||Rlt||Llt||Alt||klt)&&(Olt=function(t){var e,n,r,i,o,a,s,l=this,u=Dlt(l),c=slt(t),h=u.raw;if(h)return h.lastIndex=l.lastIndex,e=Wot(Olt,h,c),l.lastIndex=h.lastIndex,e;var f=u.groups,p=Llt&&l.sticky,d=Wot(llt,l),g=l.source,v=0,m=c;if(p&&(d=_lt(d,"y",""),-1===Blt(d,"g")&&(d+="g"),m=Ilt(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==Tlt(c,l.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",d)),Rlt&&(n=new RegExp("^"+g+"$(?!\\s)",d)),Plt&&(r=l.lastIndex),i=Wot(Mlt,p?n:l,m),p?i?(i.input=Ilt(i.input,v),i[0]=Ilt(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:Plt&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),Rlt&&i&&i.length>1&&Wot(Flt,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&f)for(i.groups=a=Clt(null),o=0;o<f.length;o++)a[(s=f[o])[0]]=i[s[1]];return i});var Nlt=Olt;Yst({target:"RegExp",proto:!0,forced:/./.exec!==Nlt},{exec:Nlt});var jlt=Function.prototype,zlt=jlt.apply,Ult=jlt.bind,Vlt=jlt.call,Hlt="object"==typeof Reflect&&Reflect.apply||(Ult?Vlt.bind(zlt):function(){return Vlt.apply(zlt,arguments)}),$lt=_ot("species"),Glt=RegExp.prototype,Wlt=_ot("match"),qlt=Qit.TypeError,Xlt=_ot("species"),Zlt=function(t,e){var n,r=$ot(t).constructor;return void 0===r||null==(n=$ot(r)[Xlt])?e:function(t){if(fst(t))return t;throw qlt(Qot(t)+" is not a constructor")}(n)},Ylt=aot("".charAt),Qlt=aot("".charCodeAt),Klt=aot("".slice),Jlt=function(t){return function(e,n){var r,i,o=slt(lot(e)),a=tst(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=Qlt(o,a))<55296||r>56319||a+1===s||(i=Qlt(o,a+1))<56320||i>57343?t?Ylt(o,a):r:t?Klt(o,a,a+2):i-56320+(r-55296<<10)+65536}},tut={codeAt:Jlt(!1),charAt:Jlt(!0)}.charAt,eut=function(t,e,n){return e+(n?tut(t,e).length:1)},nut=Qit.Array,rut=Math.max,iut=function(t,e,n){for(var r,i,o,a,s=rst(t),l=Ost(e,s),u=Ost(void 0===n?s:n,s),c=nut(rut(u-l,0)),h=0;l<u;l++,h++)r=c,i=h,o=t[l],a=void 0,(a=oat(i))in r?lat.f(r,a,uat(0,o)):r[a]=o;return c.length=h,c},out=Qit.TypeError,aut=function(t,e){var n=t.exec;if(mot(n)){var r=Wot(n,t,e);return null!==r&&$ot(r),r}if("RegExp"===Lat(t))return Wot(Nlt,t,e);throw out("RegExp#exec called on incompatible receiver")},sut=flt.UNSUPPORTED_Y,lut=Math.min,uut=[].push,cut=aot(/./.exec),hut=aot(uut),fut=aot("".slice);!function(t,e,n,r){var i=_ot(t),o=!kot((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=o&&!kot((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[$lt]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!o||!a||n){var s=aot(/./[i]),l=e(i,""[t],(function(t,e,n,r,i){var a=aot(t),l=e.exec;return l===Nlt||l===Glt.exec?o&&!i?{done:!0,value:s(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));_at(String.prototype,t,l[0]),_at(Glt,i,l[1])}r&&cat(Glt[i],"sham",!0)}("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r,i,o=slt(lot(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!Rot(r=t)||!(void 0!==(i=r[Wlt])?i:"RegExp"==Lat(r)))return Wot(e,o,t,a);for(var s,l,u,c=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,p=new RegExp(t.source,h+"g");(s=Wot(Nlt,p,o))&&!((l=p.lastIndex)>f&&(hut(c,fut(o,f,s.index)),s.length>1&&s.index<o.length&&Hlt(uut,c,iut(s,1)),u=s[0].length,f=l,c.length>=a));)p.lastIndex===s.index&&p.lastIndex++;return f===o.length?!u&&cut(p,"")||hut(c,""):hut(c,fut(o,f)),c.length>a?iut(c,0,a):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:Wot(e,this,t,n)}:e,[function(e,n){var i=lot(this),o=null==e?void 0:tat(e,t);return o?Wot(o,e,i,n):Wot(r,slt(i),e,n)},function(t,i){var o=$ot(this),a=slt(t),s=n(r,o,a,i,r!==e);if(s.done)return s.value;var l=Zlt(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(sut?"g":"y"),h=new l(sut?"^(?:"+o.source+")":o,c),f=void 0===i?4294967295:i>>>0;if(0===f)return[];if(0===a.length)return null===aut(h,a)?[a]:[];for(var p=0,d=0,g=[];d<a.length;){h.lastIndex=sut?0:d;var v,m=aut(h,sut?fut(a,d):a);if(null===m||(v=lut(nst(h.lastIndex+(sut?d:0)),a.length))===p)d=eut(a,d,u);else{if(hut(g,fut(a,p,d)),g.length===f)return g;for(var y=1;y<=m.length-1;y++)if(hut(g,m[y]),g.length===f)return g;d=p=v}}return hut(g,fut(a,p)),g}]}),!!kot((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),sut),Yst({global:!0},{globalThis:Qit}),oo&&(eo.fn.attr=oo);var put=Bat.PROPER,dut=RegExp.prototype,gut=dut.toString,vut=aot(llt),mut=kot((function(){return"/a/b"!=gut.call({source:"a",flags:"b"})})),yut=put&&"toString"!=gut.name;(mut||yut)&&_at(RegExp.prototype,"toString",(function(){var t=$ot(this),e=slt(t.source),n=t.flags;return"/"+e+"/"+slt(void 0===n&&qot(dut,t)&&!("flags"in dut)?vut(t):n)}),{unsafe:!0});var but=function(){function t(){this.title=ED("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return t.prototype.getOptions=function(t){var e=[],n=t.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;e.push({text:"plain text",value:""}),r.forEach((function(t){var n=t.text,r=t.value;e.push({text:n,value:r})}));var i=this.getValue(t);return e.forEach((function(t){t.value===i?t.selected=!0:delete t.selected})),e},t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){var e=this.getSelectCodeElem(t);if(null==e)return"";if(!qe.isElement(e))return"";var n=e.language.toString(),r=t.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(t){return t.value===n}))?n:""},t.prototype.isDisabled=function(t){return null==t.selection||!this.getSelectCodeElem(t)},t.prototype.exec=function(t,e){if(null!=this.getSelectCodeElem(t)){var n={language:e.toString()};$n.setNodes(t,n,{match:function(t){return Dw.checkNodeType(t,"code")}})}},t.prototype.getSelectCodeElem=function(t){var e=Dw.getSelectedNodeByType(t,"code");if(null==e)return null;var n=Dw.getParentNode(t,e);return qe.isElement(n)?"pre"!==n.type?null:e:null},t}(),xut={renderStyle:function(t,e){var n=t,r=e,i="";return rlt.forEach((function(t){n[t]&&(i=t)})),i&&function(t,e){null==t.data&&(t.data={});var n=t.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:e})}(r,i="token "+i),r},parseStyleHtml:function(t,e,n){var r=eo(t);if(!qe.isElement(e))return e;if("code"!==Dw.getNodeType(e))return e;var i=e,o=r.attr("class")||"";return 0===o.indexOf("language-")?i.language=o.split("-")[1]||"":i.language=o.toLowerCase(),i},menus:[{key:"codeSelectLang",factory:function(){return new but},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(t,e){var n=t.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+e+"</code>"}}]},wut=/"/g,Cut=aot("".replace);Yst({target:"String",proto:!0,forced:function(t){return kot((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}("anchor")},{anchor:function(t){return e="a",n="name",r=t,i=slt(lot(this)),o="<"+e,""!==n&&(o+=" "+n+'="'+Cut(slt(r),wut,""")+'"'),o+">"+i+"</"+e+">";var e,n,r,i,o}});var Sut=function(t){var e,n,r,i=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(t,2),o=i[0],a=i[1],s=[],l=function(t){if(!En.isText(t))return null;var e=Dw.getParentNode(null,t);if(e&&"code"===Dw.getNodeType(e)){var n=Dw.getParentNode(null,e);if(n&&"pre"===Dw.getNodeType(n))return e}return null}(o);if(null==l)return s;var u=l.language,c=void 0===u?"":u;if(!c)return s;var h=function(t,e){if(!e)return[];var n=nlt.languages[e];return n?nlt.tokenize(t.text,n):[]}(o,c),f=0;try{for(var p=
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),d=p.next();!d.done;d=p.next()){var g=d.value,v=f+ilt(g);"string"!=typeof g&&s.push(((r={})[g.type]=!0,r.anchor={path:a,offset:f},r.focus={path:a,offset:v},r)),f=v}}catch(t){e={error:t}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(e)throw e.error}}return s},Aut=function(){return Aut=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Aut.apply(this,arguments)},Eut=function(){function t(){throw new Error("不能实例化\nCan not construct a instance")}return t.setEditorConfig=function(t){void 0===t&&(t={}),this.editorConfig=Aut(Aut({},this.editorConfig),t)},t.setSimpleEditorConfig=function(t){void 0===t&&(t={}),this.simpleEditorConfig=Aut(Aut({},this.simpleEditorConfig),t)},t.setToolbarConfig=function(t){void 0===t&&(t={}),this.toolbarConfig=Aut(Aut({},this.toolbarConfig),t)},t.setSimpleToolbarConfig=function(t){void 0===t&&(t={}),this.simpleToolbarConfig=Aut(Aut({},this.simpleToolbarConfig),t)},t.registerPlugin=function(t){this.plugins.push(t)},t.registerMenu=function(t,e){Tw(t,e)},t.registerRenderElem=function(t){wE(t)},t.registerRenderStyle=function(t){bE(t)},t.registerElemToHtml=function(t){lC(t)},t.registerStyleToHtml=function(t){aC(t)},t.registerPreParseHtml=function(t){US(t)},t.registerParseElemHtml=function(t){GS(t)},t.registerParseStyleHtml=function(t){HS(t)},t.registerModule=function(t){kut(t)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function kut(t){var e=t.menus,n=t.renderElems,r=t.renderStyle,i=t.elemsToHtml,o=t.styleToHtml,a=t.preParseHtml,s=t.parseElemsHtml,l=t.parseStyleHtml,u=t.editorPlugin;e&&e.forEach((function(t){return Eut.registerMenu(t)})),n&&n.forEach((function(t){return Eut.registerRenderElem(t)})),r&&Eut.registerRenderStyle(r),i&&i.forEach((function(t){return Eut.registerElemToHtml(t)})),o&&Eut.registerStyleToHtml(o),a&&a.forEach((function(t){return Eut.registerPreParseHtml(t)})),s&&s.forEach((function(t){return Eut.registerParseElemHtml(t)})),l&&Eut.registerParseStyleHtml(l),u&&Eut.registerPlugin(u)}MU.forEach((function(t){return kut(t)})),kut(CW),kut(fK),kut(V3),kut(Git),kut(xut);var Dut='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Fut='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',Mut='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',Out='<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',Tut='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>';function But(){return["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:ED("editor.more"),iconSvg:Out,menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:ED("editor.justify"),iconSvg:Fut,menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:ED("editor.indent"),iconSvg:Dut,menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:ED("editor.image"),iconSvg:Mut,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:ED("editor.video"),iconSvg:Tut,menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]}function _ut(){return["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:ED("editor.image"),iconSvg:Mut,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]}var Iut={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}};function Put(){return Aut(Aut({},Iut),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})}function Lut(){return Iut}function Rut(){return{hoverbarKeys:Put()}}function Nut(){return{hoverbarKeys:Lut()}}function jut(){return{toolbarKeys:But()}}function zut(){return{toolbarKeys:_ut()}}var Uut=Rut();Eut.setEditorConfig(Aut(Aut({},Uut),{decorate:Sut}));var Vut=Nut();Eut.setSimpleEditorConfig(Aut(Aut({},Vut),{decorate:Sut}));var Hut=jut();Eut.setToolbarConfig(Hut);var $ut=zut();function Gut(t){void 0===t&&(t={});var e=t.selector,n=void 0===e?"":e,r=t.content,i=void 0===r?[]:r,o=t.html,a=t.config,s=void 0===a?{}:a,l=t.mode,u=void 0===l?"default":l,c="simple"===u?Eut.simpleEditorConfig:Eut.editorConfig,h=Aut(Aut({},c.hoverbarKeys||{}),s.hoverbarKeys||{}),f=bk({selector:n,config:Aut(Aut(Aut({},c),s),{hoverbarKeys:h}),content:i,html:o,plugins:Eut.plugins});return f}function Wut(t){var e=t.selector,n=t.editor,r=t.config,i=void 0===r?{}:r,o=t.mode,a=void 0===o?"default":o;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var s="simple"===a?Eut.simpleToolbarConfig:Eut.toolbarConfig,l=Ek(n,{selector:e,config:Aut(Aut({},s),i)});return l}Eut.setSimpleToolbarConfig($ut);var qut=function(){return qut=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},qut.apply(this,arguments)};function Xut(t){var e="请使用 '@".concat(t,"' 事件,不要放在 props 中");return e+"\nPlease use '@".concat(t,"' event instead of props")}var Zut=Q["default"].extend({render:function(t){return t("div",{ref:"box"})},name:"Editor",data:function(){return{curValue:"",editor:null}},props:["defaultContent","defaultConfig","mode","defaultHtml","value"],mounted:function(){this.create()},watch:{value:function(t){t===this.curValue||this.setHtml(t)}},methods:{setHtml:function(t){var e=this.editor;if(null!=e){var n=e.isDisabled(),r=e.isFocused(),i=JSON.stringify(e.selection);if(e.enable(),e.focus(),e.select([]),e.deleteFragment(),$n.setNodes(e,{type:"paragraph"},{mode:"highest"}),e.dangerouslyInsertHtml(t),r||(e.deselect(),e.blur()),n&&(e.deselect(),e.disable()),e.isFocused())try{e.select(JSON.parse(i))}catch(t){e.select(Je.start(e,[]))}}},create:function(){var t=this;if(null!=this.$refs.box){var e=this.defaultConfig||{},n=JSON.stringify(Array.isArray(this.defaultContent)?this.defaultContent:[]);Gut({selector:this.$refs.box,html:this.defaultHtml||this.value||"",config:qut(qut({},e),{onCreated:function(n){if(t.editor=Object.seal(n),t.$emit("onCreated",n),e.onCreated){var r=Xut("onCreated");throw new Error(r)}},onChange:function(n){var r=n.getHtml();if(t.curValue=r,t.$emit("input",r),t.$emit("onChange",n),e.onChange){var i=Xut("onChange");throw new Error(i)}},onDestroyed:function(n){if(t.$emit("onDestroyed",n),e.onDestroyed){var r=Xut("onDestroyed");throw new Error(r)}},onMaxLength:function(n){if(t.$emit("onMaxLength",n),e.onMaxLength){var r=Xut("onMaxLength");throw new Error(r)}},onFocus:function(n){if(t.$emit("onFocus",n),e.onFocus){var r=Xut("onFocus");throw new Error(r)}},onBlur:function(n){if(t.$emit("onBlur",n),e.onBlur){var r=Xut("onBlur");throw new Error(r)}},customAlert:function(n,r){if(t.$emit("customAlert",n,r),e.customAlert){var i=Xut("customAlert");throw new Error(i)}},customPaste:function(n,r){if(e.customPaste){var i=Xut("customPaste");throw new Error(i)}var o;return t.$emit("customPaste",n,r,(function(t){o=t})),o}}),content:JSON.parse(n),mode:this.mode||"default"})}}}}),Yut=Q["default"].extend({name:"Toolbar",render:function(t){return t("div",{ref:"box"})},props:["editor","defaultConfig","mode"],methods:{create:function(t){null!=this.$refs.box&&null!=t&&(Dw.getToolbar(t)||Wut({editor:t,selector:this.$refs.box,config:this.defaultConfig||{},mode:this.mode||"default"}))}},watch:{editor:{handler:function(t){null!=t&&this.create(t)},immediate:!0}}}),Qut=Q["default"].extend({components:{Editor:Zut,Toolbar:Yut},data:function(){return{editor:null,html:"",toolbarConfig:{},editorConfig:{placeholder:"请输入内容...",MENU_CONF:{uploadImage:{customUpload:this.update},uploadVideo:{customUpload:this.update}}},mode:"default"}},props:["id","content"],methods:{onCreated:function(t){this.editor=Object.seal(t)},update:function(t,e){var n=this,r=t.name.substr(0,t.name.indexOf(".")),i=t.name.substr(t.name.indexOf(".")+1),o={accesstoken:"4a6559d45d2a4c6e0ebac2c803344106",classname:"system.attachment.huawei.OBS",method:"getFileName",content:{filename:r,filetype:i,parentid:JSON.parse(window.sessionStorage.getItem("folderid")).appfolderid}};this.$api.requested(o).then((function(i){var o=i.data.uploadurl,a=i.data.serialfilename,s={headers:{"Content-Type":"application/octet-stream"}};n.$upload.hw_upload(o,t,s).then((function(t){if("OK"==t.statusText){var i={classname:"system.attachment.huawei.OBS",method:"uploadSuccess",content:{serialfilename:a}};n.$api.requested(i).then((function(t){var i=t.data.attachmentids,o={classname:"system.attachment.Attachment",method:"createFileLink",content:{ownertable:"SAT_SHAREMATERIAL",ownerid:n.id,usetype:"richtext",attachmentids:i}};n.$api.requested(o).then((function(t){"成功"!=t.msg?n.$notify({title:"提示",message:"上传失败",type:"error"}):e(t.data[0].url,r,t.data[0].url)}))}))}}))}))}},mounted:function(){var t=this;setTimeout((function(){t.html=decodeURIComponent(t.content)}),1e3)},beforeDestroy:function(){var t=this.editor;null!=t&&t.destroy()}}),Kut=Qut,Jut=(0,p.Z)(Kut,Z,Y,!1,null,null,null),tct=Jut.exports,ect=n(82761),nct={name:"index",data:function(){return{cacheInfo:{classname:"webmanage.saletool.sharematerial.sharematerial",method:"insertOrUpdate",content:{title:"",sat_sharematerial_classid:9999,notes:"",tag:[],canfiledownload:1,content:"",sat_sharematerialid:0,type:""}},uploadCacheData:"",create_sat_sharematerialid:0,uploadType:window.sessionStorage.getItem("uploadType")}},components:{Header:s.Z,Set:g,FileList:w,FileText:D,upload:F.Z,save:M.Z,reset:P,delete1:V,download:X,Editor:tct},computed:{},watch:{},created:function(){this.getFileCache()},beforeDestroy:function(){this.removeAllData()},methods:{save:function(){var t=this;this.$refs.set.$refs.form.validate((function(e){e?("3"==t.uploadType&&(t.cacheInfo.content.content=(0,ect.weBtoa)(t.$refs.editor.editor.getHtml())),t.cacheInfo.content.type=t.uploadType,t.$api.requested(t.cacheInfo).then((function(e){var n={classname:"webmanage.saletool.sharematerial.sharematerial",method:"audit",content:{sat_sharematerialid:e.data.sat_sharematerialid,type:1}};t.$api.requested(n).then((function(e){1==e.code&&(t.uploadCacheData.status="完成",t.$notify({title:"提示",message:"上传成功",type:"success"}),t.$router.push({path:"/archives_ad_list"}))}))}))):t.$notify({title:"提示",message:"请输入标题或分类",type:"error"})}))},getFileCache:function(){var t=this;this.$api.requested(this.cacheInfo).then((function(e){t.uploadCacheData=e.data,t.create_sat_sharematerialid=t.uploadCacheData.sat_sharematerialid,t.cacheInfo.content.sat_sharematerialid=t.uploadCacheData.sat_sharematerialid,t.isEditFile()}))},isEditFile:function(){if(this.$route.params.data){var t=JSON.parse(this.$route.params.data);this.cacheInfo.content.sat_sharematerialid=t.sat_sharematerialid,this.cacheInfo.content.title=t.title,this.cacheInfo.content.sat_sharematerial_classid=t.sat_sharematerial_classid,this.cacheInfo.content.content=t.content,this.$refs.set.ruleForm.title=t.title,this.$refs.set.ruleForm.category=t.sat_sharematerial_classid,this.uploadCacheData.sat_sharematerialid=t.sat_sharematerialid,this.uploadCacheData.attinfos=t.attinfos,this.uploadCacheData.status="完成"}},onSuccess:function(t){var e=this,n={classname:"system.attachment.Attachment",method:"createFileLink",content:{ownertable:"SAT_SHAREMATERIAL",ownerid:this.uploadCacheData.sat_sharematerialid,usetype:"default",attachmentids:[t]}};this.$api.requested(n).then((function(t){"成功"!=t.msg?e.$notify({title:"提示",message:"上传失败",type:"error"}):e.uploadCacheData.attinfos=e.uploadCacheData.attinfos.concat(t.data[0])}))},removeAllData:function(){var t=this;return(0,a.Z)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.$route.params.data&&(t.uploadCacheData.status="新建",t.uploadCacheData.sat_sharematerialid=t.create_sat_sharematerialid),"新建"!=t.uploadCacheData.status){e.next=8;break}return n=t.uploadCacheData.attinfos,N.Z.removeFileList(n),r={classname:"webmanage.saletool.sharematerial.sharematerial",method:"delete",content:{sat_sharematerialid:t.uploadCacheData.sat_sharematerialid}},e.next=7,t.$api.requested(r);case 7:e.sent;case 8:case"end":return e.stop()}}),e)})))()},reSetAllData:function(){this.cacheInfo.content.title="",this.cacheInfo.content.sat_sharematerial_classid="",this.$refs.editor.html="",this.$refs.set.ruleForm.title="",this.$refs.set.ruleForm.category="",this.uploadCacheData.attinfos=[]}}},rct=nct,ict=(0,p.Z)(rct,i,o,!1,null,"0835e309",null),oct=ict.exports},31265:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return v}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"normal-card"},[n("bread-crumbs",{attrs:{tempFileData:t.tempFileData},on:{BreadCrumbsChange:t.BreadCrumbsChange}}),n("div",{staticClass:"header-panl"},[t.tool.checkAuth(t.$route.name,"read")?n("select-panl",{ref:"selectPanl",attrs:{titleLists:t.titleLists},on:{CurrentSelectType:t.CurrentSelectType}}):t._e(),t.tool.checkAuth(t.$route.name,"read")?n("hot-new-control",{attrs:{sortType:t.params.content.where.sorttype},on:{sortTypeChange:t.sortTypeChange}}):t._e()],1),t.tool.checkAuth(t.$route.name,"read")?n("file-list",{attrs:{fileData:t.fileData},on:{upFileData:t.upFileData,statusChange:t.statusChange}}):t._e(),n("drawer",{attrs:{isFileInfoPanlShow:t.isFileInfoPanlShow}})],1)},i=[],o=n(16198),a=(n(40561),n(69826),n(41539),n(57327),n(35666),n(9857)),s=n(30203),l=n(29963),u=n(47223),c=n(10181),h=n(6430),f={name:"index",data:function(){return{params:{accesstoken:"29cb8b4d626ae923fedd45d060367cd3",classname:"saletool.salematerial.salematerial",method:"selectMyList",content:{pageNumber:1,pageSize:99999999,parentid:1,where:{condition:"",sorttype:1}}},tempFileData:[{filename:"根目录",id:null,tempData:""}],titleLists:[{name:"全部",type:"all"},{name:"Word",type:"word"},{name:"Excel",type:"excel"},{name:"PPT",type:"ppt"},{name:"PDF",type:"pdf"},{name:"图片",type:"image"},{name:"视频",type:"video"},{name:"压缩包",type:"zip"},{name:"文本",type:"txt"}],fileData:[],isType:"all",currentFileIndex:0,isFileInfoPanlShow:!1,total:0}},components:{SelectPanl:s.Z,FileList:a.Z,HotNewControl:l.Z,BreadCrumbs:u.Z,Drawer:c.Z},computed:{},watch:{},created:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.getFileList(),t.tempFileData[0].id=1;case 2:case"end":return e.stop()}}),e)})))()},methods:{getFileList:function(){var t=this;this.$api.requested(this.params).then((function(e){t.total=e.total,t.fileData=h.Z.fileList(e.data)}))},upFileData:function(t,e,n){this.params.content.parentid=n,this.currentFileIndex=n,this.tempFileData[this.tempFileData.length-1].id=t,this.getFileList(),this.tempFileData.push({filename:e,id:n})},CurrentSelectType:function(t){var e=this;this.isType=t,this.$api.requested(this.params).then((function(n){e.fileData=e.filterFileData(h.Z.fileList(n.data),t),e.total=e.fileData?e.fileData.length:0}))},BreadCrumbsChange:function(t){var e=this;return(0,o.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!(e.tempFileData.length<=1)){n.next=2;break}return n.abrupt("return");case 2:e.isType="all",e.params.content.parentid=t,e.$refs.selectPanl.currentName="all",e.tempFileData.splice(e.tempFileData.indexOf(e.tempFileData.find((function(e){return e.id==t})))+1),e.getFileList();case 7:case"end":return n.stop()}}),n)})))()},statusChange:function(t,e){this.params.content.parentid=e.parentid,this.getFileList()},sortTypeChange:function(t){var e=this;return(0,o.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.isType="all",e.$refs.selectPanl.currentName="all",e.params.content.where.sorttype=t,e.params.content.parentid=1,e.tempFileData.splice(1),e.getFileList(),e.currentFileIndex=0;case 7:case"end":return n.stop()}}),n)})))()},filterFileData:function(t,e){return"all"==e?t:t.filter((function(t){return t.postfix==e}))}}},p=f,d=n(1001),g=(0,d.Z)(p,r,i,!1,null,"105a2c27",null),v=g.exports},44524:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return m}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"normal-card"},[t.tool.checkAuth(t.$route.name,"read")?n("search",{on:{searchActive:t.searchActive,clearData:t.clearData}}):t._e(),t.tool.checkAuth(t.$route.name,"read")?n("list",{attrs:{list:t.list}}):t._e(),n("pagination",{attrs:{total:t.total,pageSize:t.param.content.pageSize,currentPage:t.param.content.pageNumber},on:{pageChange:t.pageChange}})],1)},i=[],o=(n(73210),n(5283)),a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return 0!=t.list.length?n("div",{staticClass:"list"},t._l(t.list,(function(e,r){return n("div",{key:r,staticClass:"list-box",on:{click:function(n){return t.itemClick(e.sat_noticeid)}}},[n("div",{staticClass:"item-left"},[n("el-image",{attrs:{src:e.cover,lazy:"",fit:"scale-down"}}),n("div",{staticClass:"text-panl"},[n("div",{staticClass:"title"},[t._v(" "+t._s(e.title)+" ")]),n("div",{staticClass:"descript"},[t._v(" "+t._s(e.summary)+" ")]),n("div",{staticClass:"info"},[n("span",{staticClass:"tag"},[t._v(t._s(e.classname))]),n("span",[t._v(t._s(e.createdate))]),n("span",[t._v("阅读量:"),n("span",[t._v(t._s(e.readcount))])]),n("span",[n("span",[t._v("附件数量:"),n("span",[t._v(t._s(e.readpersoncount))])])])])])],1),n("div",{staticClass:"item-right"},[n("p",{style:{background:"已读"==e.readstatus?"#FA8C16":"#EEEEEE"}},[t._v(t._s(e.readstatus))])])])})),0):n("el-empty",{attrs:{description:"暂无数据"}})},s=[],l={name:"list",data:function(){return{}},props:{list:{default:function(){return[]}}},computed:{},watch:{},created:function(){},methods:{itemClick:function(t){this.$router.push({path:"/notice_detail",query:{sat_noticeid:t}})}}},u=l,c=n(1001),h=(0,c.Z)(u,a,s,!1,null,"4e056356",null),f=h.exports,p=n(76857),d={name:"Index",data:function(){return{param:{accesstoken:"2686aade24d20b15bbaa177dc35e638c",classname:"saletool.notice.notice",method:"queryNoticeList",content:{nocache:!0,pageNumber:1,pageSize:4,where:{condition:""}}},searchTitle:"",list:[],total:0,currentPage:0}},components:{Pagination:o.Z,List:f,search:p.Z},created:function(){this.getNoticeData()},mounted:function(){},methods:{getNoticeData:function(){var t=this;this.$api.requested(this.param).then((function(e){t.list=e.data,t.total=e.total}))},pageChange:function(t){this.param.content.pageNumber=t,this.getNoticeData()},searchActive:function(t){var e=this;t&&(this.param.content.where.condition=t.trim(),this.$api.requested(this.param).then((function(t){e.list=t.data,e.total=t.total,console.log(e.list)})))},clearData:function(){this.param.content.where.condition="",this.getNoticeData()}}},g=d,v=(0,c.Z)(g,r,i,!1,null,"a5bf0a1a",null),m=v.exports},98890:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return h}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"normal-card"},[n("div",{staticClass:"title-box"},[n("div",{staticClass:"title"},[t._v(t._s(t.detailData.title))]),n("div",{staticClass:"descript"},[t._v(t._s(t.detailData.summary))]),n("div",{staticClass:"info"},[n("span",{staticClass:"tag"},[t._v(t._s(t.detailData.classname))]),n("span",[t._v(t._s(t.detailData.createdate))])])]),t.tool.checkAuth(t.$route.name,"read")?n("div",{staticClass:"text-content"},[n("span",{staticClass:"title"},[t._v("正文小标题")]),n("div",{attrs:{id:"fwb"}})]):t._e(),t.detailData.attinfos&&t.detailData.attinfos.length>0?n("div",{staticClass:"file-content"},[n("div",{staticClass:"file-download"},[n("p",{staticClass:"title"},[t._v("附件下载")]),t.tool.checkAuth(t.$route.name,"read")?n("div",{staticClass:"file-list"},[n("file-item",{attrs:{isDownLoad:!0,itemStyle:t.itemStyle,sat_noticeid:t.detailData.sat_noticeid,fileData:t.detailData.attinfos}})],1):t._e()])]):t._e(),n("div",{staticClass:"comments"},[n("div",{staticClass:"score-box"},[n("p",[t._v("评分反馈")]),n("div",{staticClass:"handle"},[n("p",[t._v("总体")]),n("el-rate",{attrs:{disabled:0==!t.commentData.leavemessage,colors:t.scoreColor},model:{value:t.send.content.score,callback:function(e){t.$set(t.send.content,"score",e)},expression:"send.content.score"}}),n("p",[t._v("满意")])],1),n("p",[t._v(t._s(t.detailData.readpersoncount)+"人评分")])]),n("div",{staticClass:"text-box"},[n("p",[t._v("留言反馈")]),n("div",{staticClass:"comment-panl"},[n("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请填写留言",resize:"none",disabled:0==!t.commentData.leavemessage},model:{value:t.send.content.leavemessage,callback:function(e){t.$set(t.send.content,"leavemessage",e)},expression:"send.content.leavemessage"}}),t.tool.checkAuth(t.$route.name,"insert")?n("el-button",{attrs:{type:"success",size:"small",disabled:0==!t.commentData.leavemessage},nativeOn:{click:function(e){return t.sendComment()}}},[t._v("发表")]):t._e()],1)])])])},i=[],o=n(2097),a=n(6430),s=(n(82761),{name:"NoticeDetail",data:function(){return{param:{accesstoken:"c94ae676c321f1ce91e05797ba2f9bc3",classname:"saletool.notice.notice",method:"queryNoticeMain",content:{sat_noticeid:4}},send:{accesstoken:"2337e72d40da54ce343c631b509ca873",classname:"saletool.notice.notice",method:"updateReadRecord",content:{sat_noticeid:this.$route.query.sat_noticeid,score:0,leavemessage:""}},itemStyle:{itemWidth:360,margin:20,img:{width:29,height:29},title:14,descript:10},score:0,scoreColor:["#99A9BF","#F7BA2A","#FADB14"],textarea:"",detailData:"",commentData:""}},components:{FileItem:o.Z},filters:{},computed:{},watch:{},created:function(){this.getNoticeDetail(),this.getCommentDetail()},mounted:function(){},methods:{compileFWB:function(){document.getElementById("fwb").innerHTML=this.detailData.content},getNoticeDetail:function(){var t=this;this.param.content.sat_noticeid=this.$route.query.sat_noticeid,this.$api.requested(this.param).then((function(e){t.detailData=e.data,t.detailData.attinfos=a.Z.fileList(t.detailData.attinfos),t.compileFWB()}))},sendComment:function(){var t=this;1!=!this.send.content.leavemessage&&0!=this.send.content.score?this.$api.requested(this.send).then((function(e){1==e.code&&(t.$notify({title:"提示",message:"发表成功",type:"success"}),t.getCommentDetail())})):this.$notify({title:"提示",message:"请填写评论或评分",type:"warning"})},getCommentDetail:function(){var t=this;this.$api.requested({accesstoken:"148928f55b25f5c4636d5ae7cd339f93",classname:"saletool.notice.notice",method:"queryReadRecord",content:{sat_noticeid:this.$route.query.sat_noticeid}}).then((function(e){t.commentData=e.data[0],t.send.content.score=e.data[0].score,t.send.content.leavemessage=e.data[0].leavemessage}))}}}),l=s,u=n(1001),c=(0,u.Z)(l,r,i,!1,null,"4c9fc217",null),h=c.exports},36907:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return E}});var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.detailData?r("div",{staticClass:"index"},[r("div",{staticClass:"normal-card"},[r("submit-action",{ref:"submitAction",attrs:{detailData:t.detailData,editData:t.editData,disabled:1!=t.$route.query.history}}),r("img",{staticStyle:{cursor:"pointer"},attrs:{src:n(29046),alt:""},on:{click:function(e){return t.$router.go(0)}}})],1),r("div",{staticClass:"normal-card"},[r("p",[t._v(t._s(t.detailData.title))]),r("p",[t._v("时间: "+t._s(t.detailData.createdate))]),r("p",[t._v("提报要求: "+t._s(t.detailData.notes))]),t.detailData.attinfos&&t.detailData.attinfos.length>0?r("p",[t._v("附件下载")]):t._e(),r("file-item",{attrs:{isDownLoad:!0,itemStyle:t.itemStyle,fileData:t.detailData.attinfos}})],1),r("submit-item-info",{ref:"submitDetail",attrs:{fileData:t.calcList(t.detailData.submitedit)},on:{submitEdit:t.submitEdit}},[t.detailData.submitedit&&"more"==t.$route.query.type?r("pagination",{attrs:{slot:"page",total:t.detailData.submitedit.length,pageSize:t.pageSize,currentPage:t.currentIndex},on:{pageChange:t.pageChange},slot:"page"}):t._e()],1)],1):t._e()},i=[],o=(n(41539),n(54747),n(57327),n(47042),n(2097)),a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"box"},[t.fileData?n("div",{staticClass:"normal-card"},[n("p",{staticClass:"title"},[t._v("提报记录")]),t.fileData.length>0?n("div",{staticClass:"list"},t._l(t.fileData,(function(e,r){return n("div",{key:r,staticClass:"list-item",on:{click:function(n){return t.itemClick(e)}}},[n("div",{staticClass:"decript"},[t._v(t._s(e.content))]),n("div",{staticClass:"time"},[n("span",[t._v("提交时间:")]),t._v(t._s(e.createdate))]),n("div",{staticClass:"footer"},[n("p",{staticClass:"submit"},[n("span",[t._v("附件数:")]),t._v(t._s(e.attinfos.length))])]),"退回"==e.status&&e.content?n("div",{staticClass:"handle"},[n("span",{staticClass:"back"},[t._v("退回")])]):t._e()])})),0):n("el-empty",{attrs:{description:"暂无数据"}}),n("div",{staticClass:"pagin"},[t._t("page")],2)],1):t._e(),n("el-drawer",{attrs:{title:"详情",visible:t.isFileInfoPanlShow},on:{"update:visible":function(e){t.isFileInfoPanlShow=e}}},[n("div",{staticClass:"content",staticStyle:{"word-break":"break-all"}},[n("p",[t._v("提报内容")]),n("p",[t._v(" "+t._s(t.currentFile.content)+" ")])]),t.currentFile.attinfos&&t.currentFile.attinfos.length>0?n("div",{staticClass:"file-box"},[n("p",[t._v("提报附件")]),n("div",{staticClass:"file1"},[n("file-item",{attrs:{isDownLoad:!0,itemStyle:t.itemDrawerStyle,fileData:t.currentFile.attinfos}})],1),"退回"==t.currentFile.status?n("el-button",{attrs:{type:"warning",size:"small"},on:{click:t.submitEdit}},[t._v("重新提交")]):t._e()],1):t._e()])],1)},s=[],l={name:"SubmiteditItemInfo",data:function(){return{isFileInfoPanlShow:!1,itemDrawerStyle:{img:{width:53,height:64},title:16,descript:12},currentFile:[]}},components:{FileItem:o.Z},props:["fileData"],computed:{},watch:{},created:function(){},methods:{itemClick:function(t){this.isFileInfoPanlShow=!0,this.currentFile=t,this.currentFile.attinfos=this.fileType.fileList(this.currentFile.attinfos)},submitEdit:function(){this.isFileInfoPanlShow=!1,this.$emit("submitEdit",this.currentFile)}}},u=l,c=n(1001),h=(0,c.Z)(u,a,s,!1,null,"b9cea446",null),f=h.exports,p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.disabled?n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.actionSubmit}},[t._v("提报")]):n("el-button",{attrs:{type:"primary",size:"small",disabled:""}},[t._v("提报")]),n("el-drawer",{attrs:{title:"提报上传",visible:t.isFileInfoPanlShow},on:{"update:visible":function(e){t.isFileInfoPanlShow=e}}},[n("el-button",{staticClass:"btn1",attrs:{type:"warning",size:"small"},on:{click:function(e){return t.save()}}},[t._v("保存")]),n("div",{staticClass:"content",staticStyle:{"word-break":"break-all"}},[n("p",[t._v("提报内容")]),n("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:t.param.content.content,callback:function(e){t.$set(t.param.content,"content",e)},expression:"param.content.content"}})],1),n("div",{staticClass:"bottom"},[n("div",{staticClass:"file-box"},[n("p",[t._v("提报附件")]),n("file-item",{attrs:{isDownLoad:!1,isDelete:!0,itemStyle:t.itemDrawerStyle,fileData:t.upload_panl.attinfos},on:{deleteSuccess:t.deleteSuccess}})],1),n("upload",{attrs:{target:"submit"},on:{onSuccess:t.onSuccess}})],1)],1)],1)},d=[],g=(n(92222),n(40561),n(50123)),v=n(575),m={name:"SubmiteditItemInfo",data:function(){return{param:{classname:"saletool.submitedit.submitedit",method:"insertorupdate",content:{sat_submiteditmodelid:"",content:"",sat_submiteditid:"0"}},isFileInfoPanlShow:!1,itemDrawerStyle:{img:{width:53,height:64},title:16,descript:12},textarea2:"",upload_panl:0}},props:["detailData","disabled","editData"],components:{FileItem:o.Z,upload:g.Z},computed:{},watch:{isFileInfoPanlShow:{handler:function(t){0==t&&"未提报"==this.upload_panl.status&&(this.deleteSubmit(),0!=this.upload_panl.attinfos.length&&v.Z.removeFileList(this.upload_panl.attinfos))}},editData:{handler:function(t){this.upload_panl=t,this.param.content.content=t.content}}},methods:{actionSubmit:function(){this.isFileInfoPanlShow=!0,this.getSubmitPanl()},getSubmitPanl:function(){var t=this;this.param.content.sat_submiteditmodelid=this.detailData.sat_submiteditmodelid,this.$api.requested(this.param).then((function(e){t.upload_panl=e.data}))},deleteSubmit:function(){this.param.content.content="",this.upload_panl.attinfos="";var t={classname:"saletool.submitedit.submitedit",method:"delete_submitdetailed",content:{sat_submiteditid:this.upload_panl.sat_submiteditid}};this.$api.requested(t).then((function(t){1!=t.code&&console.log("提报删除失败")}))},save:function(){var t=this;0!=this.param.content.content?(this.param.content.sat_submiteditmodelid=this.editData?this.upload_panl.sat_submiteditmodelid:this.detailData.sat_submiteditmodelid,this.param.content.sat_submiteditid=this.upload_panl.sat_submiteditid,this.editData.attinfos?this.$api.requested(this.param).then((function(e){1==e.code&&(t.$notify({title:"提示",message:"修改成功",type:"success"}),t.isFileInfoPanlShow=!1,t.$parent.getDetailData(),t.upload_panl="",t.param.content.content="",t.param={classname:"saletool.submitedit.submitedit",method:"insertorupdate",content:{sat_submiteditmodelid:"",content:"",sat_submiteditid:"0"}})})):this.$api.requested(this.param).then((function(e){if(t.upload_panl.status="发布",1==e.code){var n={classname:"saletool.submitedit.submitedit",method:"sub_submitdetailed",content:{onceonly:0,sat_submiteditmodelid:t.detailData.sat_submiteditmodelid,sat_submiteditid:t.upload_panl.sat_submiteditid}};t.$api.requested(n).then((function(e){1==e.code&&(t.upload_panl.status="发布",t.upload_panl.attinfos=null,t.param={classname:"saletool.submitedit.submitedit",method:"insertorupdate",content:{sat_submiteditmodelid:"",content:"",sat_submiteditid:"0"}},t.isFileInfoPanlShow=!1,t.$parent.getDetailData())}))}}))):this.$notify({title:"提示",message:"请编辑内容",type:"warning"})},onSuccess:function(t){var e=this;this.fileId=t;var n={classname:"system.attachment.Attachment",method:"createFileLink",content:{ownertable:"sat_submitedit",ownerid:this.upload_panl.sat_submiteditid,usetype:"default",attachmentids:[t]}};this.$api.requested(n).then((function(t){"成功"!=t.msg?e.$notify({title:"提示",message:"上传失败",type:"error"}):e.upload_panl.attinfos=e.fileType.fileList(e.upload_panl.attinfos.concat(t.data[0]))}))},deleteSuccess:function(t){this.upload_panl.attinfos.splice(t,1)}}},y=m,b=(0,c.Z)(y,p,d,!1,null,"52c39820",null),x=b.exports,w=n(5283),C={name:"index",data:function(){return{param:{accesstoken:"f7a9c8b3d7bb1e7372bd91dcb848e624",classname:"saletool.submitedit.submitedit",method:"select_submitdetailed",content:{sat_submiteditmodelid:""}},itemStyle:{itemWidth:366,margin:16,img:{width:29,height:29},title:14,descript:10},detailData:[],editData:[],currentIndex:1,pageSize:6}},components:{FileItem:o.Z,SubmitItemInfo:f,SubmitAction:x,Pagination:w.Z},computed:{},watch:{},created:function(){this.getDetailData()},methods:{getDetailData:function(){var t=this;this.param.content.sat_submiteditmodelid=this.$route.query.id,this.$api.requested(this.param).then((function(e){t.detailData=e.data,t.deteleNoSubmit(),t.detailData.attinfos=t.fileType.fileList(t.detailData.attinfos)}))},deteleNoSubmit:function(){var t=this;this.detailData.submitedit.forEach((function(e){if("未提报"==e.status){var n={classname:"saletool.submitedit.submitedit",method:"delete_submitdetailed",content:{sat_submiteditid:e.sat_submiteditid}};t.$api.requested(n).then((function(t){})),t.detailData.submitedit=t.detailData.submitedit.filter((function(t){return"未提报"!=t.status}))}}))},submitEdit:function(t){t.attinfos=this.fileType.fileList(t.attinfos),this.editData=t,this.$refs.submitAction.isFileInfoPanlShow=!0},pageChange:function(t){this.currentIndex=t},calcList:function(t){if(t)return t.slice((this.currentIndex-1)*this.pageSize,this.currentIndex*this.pageSize)}}},S=C,A=(0,c.Z)(S,r,i,!1,null,"40ee20ae",null),E=A.exports},36e3:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return p}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"normal-card"},[t.tool.checkAuth(t.$route.name,"read")?n("time-select",{on:{timeChange:t.timeChange,clearSelect:t.clearSelect}}):t._e(),t.tool.checkAuth(t.$route.name,"read")?n("list",{attrs:{list:t.oneData,type:"more"}}):t._e(),n("pagination",{attrs:{total:t.total,pageSize:t.param.content.pageSize,currentPage:t.param.content.pageNumber},on:{pageChange:t.pageChange}})],1)},i=[],o=n(5283),a=n(30203),s=n(38347),l=n(6122),u={name:"index",data:function(){return{param:{classname:"saletool.submitedit.submitedit",method:"select_submitlist",content:{onceonly:0,pageNumber:1,pageSize:4,where:{begdate:"",enddate:""}}},oneData:[],total:0}},components:{Pagination:o.Z,SelectPanl:a.Z,list:l.Z,TimeSelect:s.Z},computed:{},watch:{},created:function(){this.getSubmitEditAction()},methods:{getSubmitEditAction:function(){var t=this;this.$api.requested(this.param).then((function(e){t.oneData=e.data,t.total=e.total}))},pageChange:function(t){this.param.content.pageNumber=t,this.getSubmitEditAction()},timeChange:function(t){this.param.content.where.begdate=t[0],this.param.content.where.enddate=t[1],this.param.content.pageNumber=1,this.getSubmitEditAction()},clearSelect:function(){this.param.content.where.begdate="",this.param.content.where.enddate="",this.param.content.pageNumber=1,this.getSubmitEditAction()}}},c=u,h=n(1001),f=(0,h.Z)(c,r,i,!1,null,"cc7316b0",null),p=f.exports},30203:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"select-panl"},t._l(t.titleLists,(function(e,r){return n("div",{key:r,class:["item",{active:t.currentName==e.type}],on:{click:function(n){return t.itemClick(e)}}},[t._v(t._s(e.name))])})),0)},i=[],o={name:"SelectPanl",data:function(){return{currentName:"all"}},props:{titleLists:{type:Array,default:function(){return[]}}},computed:{},watch:{},created:function(){this.currentName=this.titleLists[0].type},methods:{itemClick:function(t){this.currentName!=t.type&&(this.currentName=t.type,this.$emit("CurrentSelectType",t.type))}}},a=o,s=n(1001),l=(0,s.Z)(a,r,i,!1,null,"74e3b14a",null),u=l.exports},38347:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-date-picker",{attrs:{type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.timeChange},model:{value:t.time,callback:function(e){t.time=e},expression:"time"}})],1)},i=[],o=(n(21249),{name:"TimeSelect",data:function(){return{start:"",over:"",time:""}},computed:{},watch:{},methods:{timeChange:function(t){var e=this;if(t){var n=t.map((function(t){return e.changeTimeFormat(t.getTime())}));this.$emit("timeChange",n)}else this.$emit("clearSelect")},changeTimeFormat:function(t){var e=new Date(t),n=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,r=e.getDate()<10?"0"+e.getDate():e.getDate();return e.getFullYear()+"-"+n+"-"+r}}}),a=o,s=n(1001),l=(0,s.Z)(a,r,i,!1,null,"7c5cf89e",null),u=l.exports},6122:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return 0!=t.list.length?n("div",{staticClass:"list"},t._l(t.list,(function(e,r){return n("div",{key:r,staticClass:"list-item",on:{click:function(n){return t.itemClick(e.sat_submiteditmodelid,e.ishistory)}}},[n("div",{staticClass:"header1"},[n("div",{staticClass:"handle",class:0==e.ishistory?"action":"no-action"},[t._v(" "+t._s(0==e.ishistory?"进行中":"已结束")+" ")]),n("p",{staticClass:"title"},[t._v(t._s(e.title))])]),n("div",{staticClass:"decript"},[t._v(t._s(e.notes))]),n("div",{staticClass:"time"},[t._v("有效期:"+t._s(e.begdate)+"~"+t._s(e.enddate))]),n("div",{staticClass:"footer"},[n("p",{staticClass:"submit"},[t._v("已提报:"+t._s(e.submitcount))]),n("div",{staticClass:"status",class:0==e.isRead?"no-raed":"read"},[t._v(t._s(0==e.isRead?"未读":"已读"))])])])})),0):n("el-empty",{attrs:{description:"暂无数据"}})},i=[],o={name:"list",data:function(){return{}},props:{list:{type:Array},type:{default:function(){return""}}},computed:{},watch:{},mounted:function(){console.log(this.list)},methods:{itemClick:function(t,e){window.sessionStorage.setItem("currentPath",this.$route.path),this.$router.push({path:"/submiteditmag_detail",query:{id:t,history:e,type:this.type}})}}},a=o,s=n(1001),l=(0,s.Z)(a,r,i,!1,null,"1a08e033",null),u=l.exports},80442:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return p}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"normal-card"},[t.tool.checkAuth(t.$route.name,"read")?n("time-select",{on:{timeChange:t.timeChange,clearSelect:t.clearSelect}}):t._e(),t.tool.checkAuth(t.$route.name,"read")?n("list",{attrs:{list:t.oneData}}):t._e(),n("pagination",{attrs:{total:t.total,pageSize:t.param.content.pageSize,currentPage:t.param.content.pageNumber},on:{pageChange:t.pageChange}})],1)},i=[],o=n(5283),a=n(30203),s=n(38347),l=n(6122),u={name:"index",data:function(){return{param:{classname:"saletool.submitedit.submitedit",method:"select_submitlist",content:{onceonly:1,pageNumber:1,pageSize:4,where:{begdate:"",enddate:""}}},oneData:[],total:0}},components:{Pagination:o.Z,SelectPanl:a.Z,list:l.Z,TimeSelect:s.Z},computed:{},watch:{},created:function(){this.getSubmitEditAction()},methods:{getSubmitEditAction:function(){var t=this;this.$api.requested(this.param).then((function(e){t.oneData=e.data,t.total=e.total,console.log(t.oneData)}))},pageChange:function(t){this.param.content.pageNumber=t,this.getSubmitEditAction()},timeChange:function(t){this.param.content.where.begdate=t[0],this.param.content.where.enddate=t[1],this.param.content.pageNumber=1,console.log(this.param.content.where),this.getSubmitEditAction()},clearSelect:function(){this.param.content.where.begdate="",this.param.content.where.enddate="",this.param.content.pageNumber=1,this.getSubmitEditAction()}}},c=u,h=n(1001),f=(0,h.Z)(c,r,i,!1,null,"5dfb52bf",null),p=f.exports},14112:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return L}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"role-edit"},[n("handle-top",[n("save",{attrs:{slot:"btn"},nativeOn:{click:function(e){return t.save()}},slot:"btn"})],1),n("role-info-handle",{ref:"info"}),n("el-row",{staticClass:"power"},[n("el-col",{staticClass:"title-box",attrs:{span:24}},[n("p",{staticClass:"title"},[t._v("角色授权")])]),n("el-col",{attrs:{span:10}},[n("role-power-left",{attrs:{roleData:t.power},on:{currentItemChange:t.currentItemChange,checkList:t.checkList}},[n("search",{attrs:{slot:"search"},on:{searchActive:function(e){return t.searchActive()},clearData:function(e){return t.clearData()}},slot:"search"}),n("pagination",{attrs:{slot:"page",total:6,pageSize:3,currentPage:1},on:{pageChange:t.pageChange},slot:"page"})],1)],1),n("el-col",{attrs:{span:14}},[n("role-power-right",{attrs:{roleData:t.currentItem}})],1)],1)],1)},i=[],o=(n(68309),function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"header"},[r("div",{staticClass:"left"},[t._t("btn")],2),r("div",{staticClass:"right"},[r("img",{staticStyle:{cursor:"pointer"},attrs:{src:n(46901),alt:""},on:{click:function(e){return t.$router.go(0)}}})])])}),a=[],s={name:"Header",data:function(){return{}},computed:{},watch:{},methods:{}},l=s,u=n(1001),c=(0,u.Z)(l,o,a,!1,null,"5ddc1046",null),h=c.exports,f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"info"},[n("p",{staticClass:"title"},[t._v("角色信息")]),n("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"角色名称:",prop:"name"}},[n("el-input",{model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1),n("el-form-item",{attrs:{label:"角色描述:",prop:"descript"}},[n("el-input",{model:{value:t.ruleForm.descript,callback:function(e){t.$set(t.ruleForm,"descript",e)},expression:"ruleForm.descript"}})],1)],1)],1)},p=[],d={name:"roleInfoHandle",data:function(){return{ruleForm:{name:"",descript:""},rules:{name:[{required:!0,message:"请输入角色名称",trigger:"blur"}],descript:[{required:!0,message:"请输入角色描述",trigger:"blur"}]}}},computed:{},watch:{},methods:{}},g=d,v=(0,u.Z)(g,f,p,!1,null,"efb85748",null),m=v.exports,y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.roleData?n("div",{staticClass:"role-power-left"},[t._t("search"),n("el-table",{ref:"multipleTable",attrs:{data:t.roleData,size:"small",border:"","header-cell-style":{background:"#EEEEEE"},"highlight-current-row":""},on:{"selection-change":t.handleSelectionChange,"row-click":t.rowClick}},[n("el-table-column",{attrs:{label:"系统"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.systemname))]}}],null,!1,3369600959)})],1),n("div",{staticClass:"page"},[t._t("page")],2)],2):t._e()},b=[],x={name:"",data:function(){return{currentItem:0}},props:["roleData"],components:{},computed:{},watch:{},methods:{handleSelectionChange:function(t){this.$emit("checkList",t)},rowClick:function(t){this.currentItem!=t&&(this.currentItem=t,this.$emit("currentItemChange",t))}}},w=x,C=(0,u.Z)(w,y,b,!1,null,"8414d8f2",null),S=C.exports,A=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"role-power-right"},[n("el-row",[n("el-col",{staticStyle:{"border-right":"1px solid #eeeeee",height:"100%"},attrs:{span:8}},[n("div",{staticClass:"power-block"},[n("p",{staticClass:"title"},[t._v("模块")]),t.roleData?n("el-row",{attrs:{gutter:50}},t._l(t.roleData.clients[0].modules,(function(e,r){return n("el-col",{key:r,staticStyle:{"margin-bottom":"6px"},attrs:{span:24}},[n("span",{staticClass:"block",class:{active:t.currentIndex==r},on:{click:function(n){return t.blockClick(r,e)}}},[t._v(t._s(e.systemmodulename))])])})),1):t._e()],1)]),n("el-col",{attrs:{span:8}},[n("div",{staticClass:"power-block"},[n("p",{staticClass:"title"},[t._v("功能")]),n("el-row",{attrs:{gutter:100}},t._l(t.currentBlock.apps,(function(e,r){return n("el-col",{key:r,staticStyle:{"margin-bottom":"16px"},attrs:{span:12}},[n("el-checkbox",{attrs:{label:e.optionid,checked:1==e.isauth}},[t._v(t._s(e.optionname))])],1)})),1)],1)]),n("el-col",{attrs:{span:8}},[n("div",{staticClass:"power-block"},[n("p",{staticClass:"title"},[t._v("授权")])])])],1)],1)},E=[],k={name:"",data:function(){return{powerResult:[],currentBlock:"",currentIndex:-1}},props:["roleData"],computed:{},watch:{powerResult:{handler:function(t){this.$emit("checkChange",t)}}},created:function(){},methods:{blockClick:function(t,e){this.currentIndex=t,this.currentBlock=e,console.log(this.currentBlock)}}},D=k,F=(0,u.Z)(D,A,E,!1,null,"669a762d",null),M=F.exports,O=n(76857),T=n(5283),B=n(78878),_={name:"roleEdit",data:function(){return{auth:{classname:"sale.role.role",method:"add_appauth",content:{roleid:"",systemapps:[{systemappid:"",optionids:[]}]}},add:{classname:"sale.role.role",method:"insertormodify_role",content:{roleid:3,rolename:"店长",remarks:"店长角色"}},pullPower:{classname:"sale.role.role",method:"query_appselect",content:{roleid:0}},power:[],editData:"",currentItem:0}},components:{HandleTop:h,save:B.Z,roleInfoHandle:m,search:O.Z,RolePowerLeft:S,RolePowerRight:M,Pagination:T.Z},computed:{},watch:{},created:function(){this.roleEdit(),this.getRoleAdd()},methods:{roleEdit:function(){var t=this;this.editData=this.$route.params.data,this.$route.params.data&&(this.add.content.roleid=this.$route.params.data.roleid,this.add.content.rolename=this.$route.params.data.rolename,this.add.content.remarks=this.$route.params.data.remarks,this.$nextTick((function(){t.$refs.info.ruleForm.name=t.$route.params.data.rolename,t.$refs.info.ruleForm.descript=t.$route.params.data.remarks})))},getRoleAdd:function(){var t=this;this.editData&&(this.pullPower.content.roleid=this.editData.roleid),this.$api.requested(this.pullPower).then((function(e){t.power=e.data,console.log(e)}))},currentItemChange:function(t){this.currentItem=t,console.log(t)},checkList:function(t){},save:function(){var t=this;this.$refs.info.$refs.ruleForm.validate((function(e){e?(t.add.content.rolename=t.$refs.info.ruleForm.name,t.add.content.remarks=t.$refs.info.ruleForm.descript,t.$api.requested(t.add).then((function(t){console.log(t)}))):t.$notify({title:"提示",message:"请填写名称或描述",type:"warning"})}))},searchActive:function(){},clearData:function(){},pageChange:function(){}}},I=_,P=(0,u.Z)(I,r,i,!1,null,"11812c88",null),L=P.exports},17108:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return w}});var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.tool.checkAuth(t.$route.name,"read")?r("div",{staticClass:"role"},[r("div",{staticClass:"top"},[r("p",[t._v("角色管理")]),t.tool.checkAuth(t.$route.name,"insert")?r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.addRole()}}},[r("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:n(79878),alt:""}}),t._v(" 新建角色 ")]):t._e()],1),r("role-item",{attrs:{roleData:t.roleData},scopedSlots:t._u([{key:"icon",fn:function(e){return[t.tool.checkAuth(t.$route.name,"update")?r("img",{attrs:{src:n(88975),alt:""},on:{click:function(n){return t.roleEdit(e.data)}}}):t._e()]}},{key:"remove",fn:function(e){return[t.tool.checkAuth(t.$route.name,"delete")?r("remove-role",{attrs:{roleData:e.data}}):t._e()]}}],null,!1,3677917174)})],1):t._e()},i=[],o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"role-list"},[r("el-row",{attrs:{gutter:100}},t._l(t.roleData,(function(e,i){return r("el-col",{key:i,attrs:{span:11}},[r("div",{staticClass:"role-item"},[r("div",{staticClass:"left"},[r("div",{staticClass:"avatar"},[r("img",{attrs:{src:n(96490),alt:""}})]),r("div",{staticClass:"role-info"},[r("p",[t._v(t._s(e.rolename))]),r("p",[t._v(t._s(e.remarks))]),r("p",[t._v("创建人:"+t._s(e.createby))])])]),r("div",{staticClass:"right"},[t._t("icon",null,{data:e}),t._t("remove",null,{data:e})],2)])])})),1)],1)},a=[],s={name:"",data:function(){return{}},props:["roleData"],computed:{},watch:{},methods:{}},l=s,u=n(1001),c=(0,u.Z)(l,o,a,!1,null,"45ff0fc1",null),h=c.exports,f=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"remove"},[r("img",{attrs:{slot:"icon",src:n(76424),alt:""},on:{click:function(e){e.stopPropagation(),t.dialogVisible=!0}},slot:"icon"}),r("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[r("span",[t._v("该角色已授权,是否确认删除?")]),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.removeTarget()}}},[t._v("确 定")])],1)])],1)},p=[],d={name:"removeRole",data:function(){return{dialogVisible:!1}},props:["roleData"],computed:{},watch:{},methods:{removeTarget:function(){var t=this;console.log(this.roleData.roleid),this.$api.requested({accesstoken:"86cf5a6b5314094f4b412da2b0445ac1",classname:"sale.role.role",method:"delete_role",content:{roleid:this.roleData.roleid}}).then((function(e){1==e.code&&(t.$notify({title:"提示",message:"删除成功",type:"success"}),console.log(e),t.$parent.$parent.$parent.$parent.getRoleData(),t.dialogVisible=!1)}))},handleClose:function(){this.dialogVisible=!1}}},g=d,v=(0,u.Z)(g,f,p,!1,null,"014e3b78",null),m=v.exports,y={name:"RoleManage",data:function(){return{param:{accesstoken:"86cf5a6b5314094f4b412da2b0445ac1",classname:"sale.role.role",method:"query_roleList",content:{pageNumber:1,pageSize:10,where:{condition:""}}},roleData:[]}},props:[],components:{RoleItem:h,removeRole:m},computed:{},watch:{},created:function(){this.getRoleData()},methods:{getRoleData:function(){var t=this;this.$api.requested(this.param).then((function(e){t.roleData=e.data,console.log(t.roleData)}))},roleEdit:function(t){this.$router.push({name:"roleEdit",params:{data:t}})},addRole:function(){this.$router.push("role_edit")}}},b=y,x=(0,u.Z)(b,r,i,!1,null,"968ee86a",null),w=x.exports},58431:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return D}});var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"tema"},[r("div",{staticClass:"top"},[r("p",[t._v("团队管理")]),t.tool.checkAuth(t.$route.name,"insert")?r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.addUser()}}},[r("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:n(79878),alt:""}}),t._v(" 新建账号 ")]):t._e()],1),t.tool.checkAuth(t.$route.name,"read")?r("team-item",{attrs:{teamData:t.teamData},scopedSlots:t._u([{key:"icon",fn:function(e){return[t.tool.checkAuth(t.$route.name,"update")?r("img",{attrs:{slot:"icon",src:n(88975),alt:""},on:{click:function(n){return n.stopPropagation(),t.editTargetFun(e.data)}},slot:"icon"}):t._e()]}},{key:"remove",fn:function(e){return[t.tool.checkAuth(t.$route.name,"delete")?r("remove-team",{attrs:{teamData:e.data}}):t._e()]}}],null,!1,2997709260)}):t._e(),r("add-user",{ref:"addUser",attrs:{editTarget:t.editTarget}})],1)},i=[],o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.tool.checkAuth(t.$route.name,"read")?n("el-dialog",{attrs:{title:"新建",visible:t.dialogVisible,"before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-row",{attrs:{gutter:30}},[n("el-form",{ref:"formInfo",attrs:{model:t.param.content,rules:t.rules,"label-width":"102px","label-position":"left"}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"姓名:",prop:"name"}},[n("el-input",{attrs:{placeholder:"请输入",size:"small"},model:{value:t.param.content.name,callback:function(e){t.$set(t.param.content,"name",e)},expression:"param.content.name"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"职位:",prop:"position"}},[n("el-input",{attrs:{placeholder:"请输入",size:"small"},model:{value:t.param.content.position,callback:function(e){t.$set(t.param.content,"position",e)},expression:"param.content.position"}})],1)],1),n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"手机号:",prop:"phonenumber"}},[n("el-input",{attrs:{placeholder:"请输入",size:"small"},model:{value:t.param.content.phonenumber,callback:function(e){t.$set(t.param.content,"phonenumber",e)},expression:"param.content.phonenumber"}})],1)],1),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"角色配置:","label-width":"102px",prop:"roleids"}},[n("el-select",{attrs:{multiple:"",placeholder:"请选择",size:"small"},model:{value:t.param.content.roleids,callback:function(e){t.$set(t.param.content,"roleids",e)},expression:"param.content.roleids"}},t._l(t.checkList,(function(t){return n("el-option",{key:t.rolename,attrs:{label:t.rolename,value:t.roleid}})})),1)],1)],1)],1),n("el-col",{attrs:{span:24}},[n("div",{staticClass:"footer",staticStyle:{"margin-left":"50%",transform:"translateX(-40%)"}},[n("el-button",{attrs:{size:"small"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")]),t.tool.checkAuth(t.$route.name,"update")?n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.submitTeam()}}},[t._v("提交")]):t._e()],1)])],1)],1):t._e()},a=[],s=(n(68309),n(21249),{name:"AddUser",data:function(){return{param:{classname:"sale.team.team",method:"insertormodify_team",content:{sa_agent_hrid:0,name:"",phonenumber:"",position:"",remarks:"备注",roleids:[]}},dialogVisible:!1,rules:{name:[{required:!0,message:"请输入名称",trigger:"blur"}],phonenumber:[{min:11,max:11,message:"请输入正确的电话号",trigger:"blur"}]},checkList:[]}},props:["editTarget"],components:{},computed:{},watch:{editTarget:{handler:function(t){this.param.content.name=t.name,this.param.content.position=t.position,this.param.content.phonenumber=t.phonenumber,this.param.content.roleids=t.roleids?t.roleids.map((function(t){return t})):[],this.param.content.sa_agent_hrid=t.sa_agent_hrid}}},created:function(){this.getRoleList()},methods:{handleClose:function(){this.dialogVisible=!1},getRoleList:function(){var t=this;this.$api.requested({accesstoken:"86cf5a6b5314094f4b412da2b0445ac1",classname:"sale.team.team",method:"queryRole",content:{sa_agent_hrid:0}}).then((function(e){console.log(e),t.checkList=e.data,console.log(t.checkList)}))},submitTeam:function(){var t=this;this.$refs.formInfo.validate((function(e){e&&(console.log(t.param),t.$api.requested(t.param).then((function(e){console.log(e),1==e.code&&(t.$notify({title:"提示",message:"创建成功",type:"success"}),t.$refs.formInfo.resetFields(),t.dialogVisible=!1,t.$parent.getTeamData())})))}))}}}),l=s,u=n(1001),c=(0,u.Z)(l,o,a,!1,null,"8f0892c6",null),h=c.exports,f=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.teamData?r("div",{staticClass:"tema-list"},[r("el-row",{attrs:{gutter:100}},t._l(t.teamData,(function(e,i){return r("el-col",{key:i,attrs:{span:11}},[r("div",{staticClass:"tema-item"},[r("div",{staticClass:"left"},[r("div",{staticClass:"avatar"},[r("img",{attrs:{src:n(12282),alt:""}})]),r("div",{staticClass:"tema-info"},[r("p",[t._v(t._s(e.name)),r("span",[t._v(t._s(e.position))])]),r("p",[t._v("账号ID:"+t._s(e.accountno))]),r("p",[t._v("手机号码:"+t._s(e.phonenumber))])])]),r("div",{staticClass:"right"},[t._t("icon",null,{data:e}),t._t("remove",null,{data:e})],2)])])})),1)],1):r("el-empty",{attrs:{description:"暂无数据"}})},p=[],d={name:"TeamItem",data:function(){return{}},props:["teamData"],computed:{},watch:{},methods:{}},g=d,v=(0,u.Z)(g,f,p,!1,null,"30162905",null),m=v.exports,y=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"remove"},[r("img",{attrs:{slot:"icon",src:n(76424),alt:""},on:{click:function(e){e.stopPropagation(),t.dialogVisible=!0}},slot:"icon"}),r("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[r("span",[t._v("该角色已授权,是否确认删除?")]),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.removeTarget()}}},[t._v("确 定")])],1)])],1)},b=[],x={name:"",data:function(){return{dialogVisible:!1}},props:["teamData"],computed:{},watch:{},methods:{removeTarget:function(){var t=this;this.$api.requested({accesstoken:"ca6adf190865e9a6a737d5ee2550d9e3",classname:"sale.team.team",method:"deleteHr",content:{sa_agent_hrid:this.teamData.sa_agent_hrid}}).then((function(e){1==e.code&&(t.$notify({title:"提示",message:"删除成功",type:"success"}),t.$parent.$parent.$parent.$parent.getTeamData(),t.dialogVisible=!1)}))},handleClose:function(){this.dialogVisible=!1}}},w=x,C=(0,u.Z)(w,y,b,!1,null,"39d33957",null),S=C.exports,A={name:"TeamManage",data:function(){return{param:{classname:"sale.team.team",method:"query_teamList",content:{pageNumber:1,pageSize:20,where:{condition:""}}},teamData:[],editTarget:""}},components:{AddUser:h,TeamItem:m,RemoveTeam:S},computed:{},watch:{},created:function(){this.getTeamData()},methods:{addUser:function(){var t=this;this.$refs.addUser.dialogVisible=!0,this.$refs.addUser.param.content.sa_agent_hrid="0",this.$nextTick((function(){t.$refs.addUser.$refs.formInfo.resetFields()}))},getTeamData:function(){var t=this;this.$api.requested(this.param).then((function(e){t.teamData=e.data}))},editTargetFun:function(t){this.editTarget=t,this.$refs.addUser.dialogVisible=!0}}},E=A,k=(0,u.Z)(E,r,i,!1,null,"2aa87ec6",null),D=k.exports},80654:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return Z}});var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.tool.checkAuth(t.$route.name,"read")?r("div",{staticClass:"user-info-panl"},[r("div",{staticClass:"top"},[r("div",{staticClass:"avatar"},[r("img",{attrs:{src:t.getAvatar||n(12282),alt:""}}),t.tool.checkAuth(t.$route.name,"update")?r("up-load",{attrs:{target:"avatar"},on:{onSuccess:t.onSuccess}}):t._e()],1)]),r("base-info",{ref:"userInfo",attrs:{userInfo:t.userInfo}},[t.tool.checkAuth(t.$route.name,"update")?r("phone-edit",{attrs:{slot:"phoneEdit",userInfo:t.userInfo},on:{phoneChange:t.phoneChange},slot:"phoneEdit"}):t._e(),t.tool.checkAuth(t.$route.name,"update")?r("pass-edit",{attrs:{slot:"passEdit",userInfo:t.userInfo},slot:"passEdit"}):t._e()],1),r("wx-bind",[r("wx-panl",{attrs:{slot:"wxBind"},slot:"wxBind"},[t._v("111")])],1),r("div",{staticClass:"logout"})],1):t._e()},i=[],o=n(50123),a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"base-info"},[n("p",{staticClass:"title"},[t._v("基本信息")]),n("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"104px","label-position":"left","show-message":!1}},[n("el-form-item",{directives:[{name:"focus",rawName:"v-focus"}],attrs:{label:"姓名:",prop:"name"}},[n("el-input",{ref:"nameEdit",attrs:{size:"small",placeholder:t.ruleForm.name,disabled:t.status},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}}),t.tool.checkAuth(t.$route.name,"update")?n("div",{staticClass:"handle"},[t.status?n("span",{on:{click:function(e){t.status=!1}}},[t._v("编辑")]):n("span",{on:{click:function(e){return t.save()}}},[t._v("保存")])]):t._e()],1),n("el-form-item",{attrs:{label:"手机号:",prop:"phonenumber"}},[n("el-input",{attrs:{size:"small",placeholder:t.ruleForm.phonenumber,disabled:!0},model:{value:t.ruleForm.phonenumber,callback:function(e){t.$set(t.ruleForm,"phonenumber",e)},expression:"ruleForm.phonenumber"}}),t._t("phoneEdit",null,{data:t.userInfo})],2),n("el-form-item",{attrs:{label:"密码:",prop:"pass"}},[n("el-input",{attrs:{size:"small",placeholder:"******",disabled:!0},model:{value:t.ruleForm.pass,callback:function(e){t.$set(t.ruleForm,"pass",e)},expression:"ruleForm.pass"}}),t._t("passEdit",null,{data:t.userInfo})],2)],1)],1)},s=[],l=(n(68309),{name:"baseInfo",data:function(){return{edit:{classname:"common.usercenter.usercenter",method:"updateUserMsg",content:{name:"",phonenumber:""}},ruleForm:{name:"",phonenumber:"",pass:"******"},rules:{name:[{required:!0,message:"请输入姓名",trigger:"blur"}],phonenumber:[{required:!0,message:"请输入手机号",trigger:"blur"}],pass:[{required:!0,message:"请输入密码",trigger:"blur"}]},status:!0}},directives:{focus:{bind:function(t,e,n){var r=function(e){t.contains(e.target)||(n.context.status=!0)};t.handle=r,document.addEventListener("click",r)},unbind:function(t){document.removeEventListener("click",t.handle)}}},props:["userInfo"],computed:{},watch:{userInfo:{handler:function(t){this.ruleForm.name=t.name,this.ruleForm.phonenumber=t.phonenumber}},status:{handler:function(t){var e=this;t||this.$nextTick((function(){e.$refs.nameEdit.focus()}))}}},methods:{save:function(){var t=this;this.ruleForm.name!=this.userInfo.name?(this.userInfo.name=this.ruleForm.name,this.status=!0,this.edit.content.name=this.ruleForm.name,this.edit.content.phonenumber=this.ruleForm.phonenumber,this.$api.requested(this.edit).then((function(e){1==e.code&&t.$notify({title:"提示",message:"名称修改成功",type:"success"})}))):this.$notify({title:"提示",message:"请输入新的名称",type:"warning"})}}}),u=l,c=n(1001),h=(0,c.Z)(u,a,s,!1,null,"552e729e",null),f=h.exports,p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"phone"},[n("span",{on:{click:function(e){t.dialogVisible=!0}}},[t._v("编辑")]),n("el-dialog",{attrs:{title:"修改手机号",visible:t.dialogVisible,"before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"手机号"}},[n("el-input",{attrs:{placeholder:"请输入"},model:{value:t.form.phonenumber,callback:function(e){t.$set(t.form,"phonenumber",e)},expression:"form.phonenumber"}})],1),n("el-form-item",{attrs:{label:"验证码"}},[n("el-input",{attrs:{placeholder:"请输入"},model:{value:t.logCode,callback:function(e){t.logCode=e},expression:"logCode"}}),n("el-button",{attrs:{type:"success",disabled:t.count>0},on:{click:function(e){return t.countDown()}}},[t._v(t._s(0==t.count?"获取验证码":t.count+"s"))])],1)],1),n("div",{staticClass:"footer"},[n("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.phoneEdit()}}},[t._v("提交")])],1)],1)],1)},d=[],g=n(88495),v=n.n(g),m={name:"PhoneEdit",data:function(){return{dialogVisible:!1,form:{phonenumber:""},count:0,logCode:""}},props:["userInfo"],computed:{},watch:{},methods:{countDown:function(){var t=this;this.getPhoneCode(),this.count=5;var e=setInterval((function(){t.count--,0==t.count&&clearInterval(e)}),1e3)},getPhoneCode:function(){var t=this;0!=this.form.phonenumber&&this.$api.requested({classname:"common.usercenter.usercenter",method:"updateUserMsg_getPassWord",content:{phonenumber:this.form.phonenumber}}).then((function(e){var n=t.$createElement;1===e.code?t.$notify({title:"获取验证码成功!",message:n("i",{style:"color: teal"},e.msg)}):t.$notify({title:"失败",message:e.msg,type:"error"})}))},phoneEdit:function(){var t=this;0!=this.logCode?this.$api.requested({accesstoken:"299697db3f25396622f7f4a7f1673405",classname:"common.usercenter.usercenter",method:"updateUserMsg",content:{name:this.userInfo.name,phonenumber:this.form.phonenumber,password:v()(this.logCode)}}).then((function(e){1==e.code?(t.$notify({title:"提示",message:"修改成功",type:"success"}),t.$emit("phoneChange",t.form.phonenumber),t.dialogVisible=!1,t.logCode="",t.form.phonenumber=""):t.$notify({title:"提示",message:"修改失败",type:"error"})})):this.$notify({title:"提示",message:"请先获取验证码",type:"warning"})},handleClose:function(){this.dialogVisible=!1}}},y=m,b=(0,c.Z)(y,p,d,!1,null,"20cedef4",null),x=b.exports,w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"password"},[n("span",{on:{click:function(e){t.dialogVisible=!0}}},[t._v("编辑")]),n("el-dialog",{attrs:{title:"修改密码",visible:t.dialogVisible,"before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"原密码"}},[n("el-input",{attrs:{placeholder:"请输入原密码"},model:{value:t.form.pass,callback:function(e){t.$set(t.form,"pass",e)},expression:"form.pass"}})],1),n("el-form-item",{attrs:{label:"新密码"}},[n("el-input",{attrs:{placeholder:"请输入新密码"},model:{value:t.form.newpass,callback:function(e){t.$set(t.form,"newpass",e)},expression:"form.newpass"}})],1),n("el-form-item",{attrs:{label:"确认密码"}},[n("el-input",{attrs:{placeholder:"请再次输入密码"},model:{value:t.form.checkpass,callback:function(e){t.$set(t.form,"checkpass",e)},expression:"form.checkpass"}})],1)],1),n("div",{staticClass:"footer"},[n("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.passEdit()}}},[t._v("提交")])],1)],1)],1)},C=[],S={name:"PassEdit",data:function(){return{dialogVisible:!1,form:{pass:"",newpass:"",checkpass:""}}},props:["userInfo"],computed:{},watch:{},methods:{handleClose:function(){this.dialogVisible=!1},passEdit:function(){}}},A=S,E=(0,c.Z)(A,w,C,!1,null,"0c660bf6",null),k=E.exports,D=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"logout"},[n("el-button",{staticStyle:{border:"1px solid #ff3b30",color:"#ff3b30"},attrs:{round:""},on:{click:function(e){t.dialogVisible=!0}}},[t._v("退出登录")]),n("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("span",[t._v("确定永久退出登录?")]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.logout()}}},[t._v("确 定")])],1)])],1)},F=[],M={name:"",data:function(){return{dialogVisible:!1}},computed:{},props:["userInfo"],watch:{},methods:{aaa:function(){this.dialogVisible=!0},logout:function(){this.$router.push("/"),window.sessionStorage.clear()},handleClose:function(){this.dialogVisible=!1}}},O=M,T=(0,c.Z)(O,D,F,!1,null,"6cf2d618",null),B=T.exports,_=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wx"},[n("p",{staticClass:"title"},[t._v("绑定微信")]),n("div",{staticClass:"no-bind"},[t._m(0),n("div",{staticClass:"right"},[t._t("wxBind")],2)])])},I=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"left"},[r("img",{attrs:{src:n(96004),alt:""}}),r("span",[t._v("未绑定")])])}],P={name:"",data:function(){return{}},computed:{},watch:{},methods:{}},L=P,R=(0,c.Z)(L,_,I,!1,null,"5f12d496",null),N=R.exports,j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"panl"},[n("span",{on:{click:function(e){t.dialogVisible=!0}}},[t._v("绑定")]),n("el-dialog",{attrs:{title:"绑定微信",visible:t.dialogVisible,"before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("div",{staticClass:"content"},[n("div",{staticClass:"codeWx"},[t._v("微信二维码")]),n("p",[t._v("微信扫码绑定")]),n("p",[t._v("微信扫码登录")])])])],1)},z=[],U={name:"VxPanl",data:function(){return{dialogVisible:!1}},computed:{},watch:{},methods:{handleClose:function(){this.dialogVisible=!1},bindVx:function(){this.$refs.vxPanl.dialogVisible=!0}}},V=U,H=(0,c.Z)(V,j,z,!1,null,"2bbe0521",null),$=H.exports,G=n(575),W={name:"UserInfo",data:function(){return{param:{accesstoken:"299697db3f25396622f7f4a7f1673405",classname:"common.usercenter.usercenter",method:"queryUserMsg",content:{}},userInfo:""}},components:{upLoad:o.Z,baseInfo:f,phoneEdit:x,passEdit:k,wxBind:N,wxPanl:$,logOut:B},computed:{getAvatar:function(){if(this.userInfo&&this.userInfo.attinfos.length>0)return this.userInfo.attinfos[0].url}},watch:{},created:function(){this.getUserInfo()},methods:{getUserInfo:function(){var t=this;this.$api.requested(this.param).then((function(e){t.userInfo=e.data,console.log(t.userInfo)}))},onSuccess:function(t){var e=this,n=!0;this.userInfo.attinfos.length>0&&(n=!1,G.Z.removeFileList(this.userInfo.attinfos).then((function(n){e.bindFile(t)}))),n&&this.bindFile(t)},bindFile:function(t){var e=this;this.$api.requested({classname:"system.attachment.Attachment",method:"createFileLink",content:{ownertable:"sys_users",ownerid:JSON.parse(window.sessionStorage.getItem("active_account")).userid,usetype:"defaultheadportrait",attachmentids:[t]}}).then((function(t){"成功"!=t.msg?e.$notify({title:"提示",message:"上传失败",type:"error"}):e.getUserInfo()}))},phoneChange:function(t){this.$refs.userInfo.ruleForm.phonenumber=t}}},q=W,X=(0,c.Z)(q,r,i,!1,null,"85ad036e",null),Z=X.exports},47223:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-breadcrumb",{attrs:{separator:">"}},t._l(t.tempFileData,(function(e,r){return n("el-breadcrumb-item",{key:r,attrs:{to:{}},nativeOn:{click:function(n){return t.goPositionFile(e.id)}}},[t._v(t._s(e.filename))])})),1)},i=[],o={name:"BreadCrumbs",data:function(){return{}},props:{tempFileData:{type:Array}},computed:{},watch:{},methods:{goPositionFile:function(t){this.$emit("BreadCrumbsChange",t)}}},a=o,s=n(1001),l=(0,s.Z)(a,r,i,!1,null,"2722927f",null),u=l.exports},53521:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"select"},[n("span",[t._v(t._s(t.label)+" ")]),n("el-cascader",{attrs:{options:t.selectList,"show-all-levels":!1,props:t.prop,clearable:"",size:"small"},on:{change:t.changeSelect,clear:function(e){return t.clearSelete()}}})],1)},i=[],o=n(4301),a=n.n(o),s={name:"CategorySelect",data:function(){return{}},props:{selectList:{default:function(){return[]}},prop:{type:Object,default:function(){return{value:"sat_sharematerial_classid",label:"classname"}}},label:String},components:{TreeSelect:a()},computed:{},watch:{},created:function(){console.log(this.prop)},methods:{changeSelect:function(t){this.$emit("changeSelect",t)},clearSelete:function(){this.$emit("clearSelect")}}},l=s,u=n(1001),c=(0,u.Z)(l,r,i,!1,null,"47830260",null),h=c.exports},2097:function(t,e,n){"use strict";n.d(e,{Z:function(){return v}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.fileData?n("div",{staticClass:"file1"},[t._l(t.fileData,(function(e,r){return n("div",{key:r,staticClass:"item-file",style:[{width:t.itemStyle.itemWidth?t.itemStyle.itemWidth+"px":"100%"},{"margin-right":t.itemStyle.margin+"px"}]},[n("div",{staticClass:"left"},[n("div",{staticClass:"icon",style:{width:t.itemStyle.img.width+"px",height:t.itemStyle.img.height+"px"}},[n("img",{attrs:{src:e.cover,alt:""}})]),n("div",{staticClass:"text"},[n("p",[t._v(t._s(e.document))]),n("p",[t._v(t._s(e.createdate))])])]),n("div",{staticClass:"right"},[t.tool.checkAuth(t.$route.name,"read")?n("p",{staticClass:"see",on:{click:function(n){return t.seeClick(e)}}},[t._v("预览")]):t._e(),t.isDelete&&t.tool.checkAuth(t.$route.name,"delete")?n("p",{staticClass:"delete",on:{click:function(n){return t.deleteFile(e)}}},[t._v("删除")]):t._e(),t.isDownLoad&&t.tool.checkAuth(t.$route.name,"download")?n("button",{on:{click:function(n){return t.downLoad(e)}}},[t._v("下载")]):t._e()])])})),n("see-File",{ref:"seeFile",attrs:{fileData:t.seeFile}})],2):t._e()},i=[],o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.fileData?n("el-dialog",{attrs:{"append-to-body":"",title:"预览",visible:t.dialogVisible,"before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},["video"==t.fileData.fileType?n("video",{attrs:{src:t.fileData.url,controls:""}}):t._e(),"image"==t.fileData.fileType?n("el-image",{attrs:{src:t.fileData.url}}):t._e()],1):t._e()},a=[],s={name:"",data:function(){return{dialogVisible:!1}},props:["fileData"],computed:{},watch:{},created:function(){},methods:{handleClose:function(){this.dialogVisible=!1}}},l=s,u=n(1001),c=(0,u.Z)(l,o,a,!1,null,"ec4f6dde",null),h=c.exports,f=n(575),p={name:"index",data:function(){return{seeFile:"",isSeeFileShow:!1}},props:{isDownLoad:Boolean,itemStyle:Object,isDelete:Boolean,fileData:{default:function(){return[]}},sat_noticeid:""},components:{SeeFile:h},computed:{},watch:{},created:function(){},methods:{deleteFile:function(t){var e=this,n=t;f.Z.removeFileList([t]).then((function(t){1==t?(e.$notify({title:"提示",message:"删除成功",type:"success"}),e.$emit("deleteSuccess",n)):e.$notify({title:"提示",message:"删除失败",type:"error"})}))},seeClick:function(t){"image"==t.fileType||"pdf"==t.fileType||"video"==t.fileType?(this.seeFile=t,this.$refs.seeFile.dialogVisible=!0):this.$notify({title:"提示",message:"该文件暂不支持",type:"warning"})},downLoad:function(t){this.sat_noticeid&&this.$api.requested({classname:"saletool.notice.notice",method:"updateDownloadRecord",content:{sat_noticeid:this.sat_noticeid}}).then((function(t){})),window.open(t.url,"_self")}}},d=p,g=(0,u.Z)(d,r,i,!1,null,"2d8f010a",null),v=g.exports},29963:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dropdown",{attrs:{trigger:"click"}},[r("span",{staticClass:"el-dropdown-link"},[t._v(" "+t._s(1==t.sortType?"最新":"最热")+" "),r("div",{staticClass:"select"},[r("img",{directives:[{name:"show",rawName:"v-show",value:2==t.sortType,expression:"sortType == 2"}],attrs:{src:n(43431),alt:""}}),r("img",{directives:[{name:"show",rawName:"v-show",value:1==t.sortType,expression:"sortType == 1"}],attrs:{src:n(2979),alt:""}})])]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{staticClass:"clearfix",nativeOn:{click:function(e){return t.sortTypeClick("最新")}}},[t._v(" 最新 "),r("el-badge",{directives:[{name:"show",rawName:"v-show",value:1==t.sortType,expression:"sortType == 1"}],staticClass:"iconfont icon-paixushaixuanxuanzhong"})],1),r("el-dropdown-item",{staticClass:"clearfix",nativeOn:{click:function(e){return t.sortTypeClick("最热")}}},[t._v(" 最热 "),r("el-badge",{directives:[{name:"show",rawName:"v-show",value:2==t.sortType,expression:"sortType == 2"}],staticClass:"iconfont icon-paixushaixuanxuanzhong"})],1)],1)],1)},i=[],o={name:"HotNewControl",data:function(){return{sortType:1}},props:{},computed:{},watch:{},methods:{sortTypeClick:function(t){this.sortType="最新"==t?1:2,this.$emit("sortTypeChange",t)}}},a=o,s=n(1001),l=(0,s.Z)(a,r,i,!1,null,"8a9a931e",null),u=l.exports},29207:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return S}});var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"flex-align-center"},[r("div",{staticClass:"nav-list"},[r("div",{staticClass:"nav-top-item"},[r("div",{staticClass:"logo-avatar"},t._l(t.siteinfo.attinfos,(function(t){return r("img",{directives:[{name:"show",rawName:"v-show",value:"actionlogo"===t.usetype,expression:"img.usetype === 'actionlogo'"}],key:t.index,staticStyle:{width:"100%"},attrs:{src:t.url,alt:""}})})),0),r("div",{staticClass:"item active",on:{click:function(e){return t.$router.push("/home")}}},[r("img",{attrs:{width:"30",src:n(82024),alt:""}}),r("p",[t._v("工作台")])]),t._m(0)]),t._m(1)]),r("el-container",[r("el-header",[r("myheader",{attrs:{siteinfo:t.siteinfo}})],1),r("div",{staticClass:"modules-panel flex-align-center flex-between"},[r("p",[t._v(t._s(t.routerName))]),r("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.$router.go(-1)}}},[t._v("返 回")])],1),r("el-container",{staticClass:"mymain"},[t.ast_nav?r("el-aside",{attrs:{width:"200px"}},[r("myaside")],1):t._e(),r("el-container",[r("el-main",[r("router-view")],1)],1)],1)],1)],1)},i=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"item"},[r("img",{attrs:{width:"30",src:n(82024),alt:""}}),r("p",[t._v("消息")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"nav-bottom-item"},[r("div",{staticClass:"item"},[r("img",{attrs:{width:"30",src:n(15526),alt:""}})])])}],o=n(4367),a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"flex"},[r("div",{staticClass:"logo"},[t._v("YOS后端管理平台")]),r("div",{staticClass:"right-operation"},[r("el-dropdown",[r("span",{staticClass:"el-dropdown-link"},[r("div",{staticClass:"flex"},[r("img",{attrs:{height:"30",src:n(38308),alt:""}}),t._v(" "+t._s(t.siteinfo.enterprisename)),r("i",{staticClass:"el-icon-arrow-down el-icon--right"})])]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",[t._v("切换账号")]),r("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(e){return t.loginOut()}}},[t._v("退出登录")])],1)],1)],1)])},s=[],l={props:["siteinfo"],data:function(){return{activeIndex:"",accountInfo:{}}},methods:{handleSelect:function(){},loginOut:function(){var t=this;this.$confirm("是否要退出当前账号?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.$router.push("/"),sessionStorage.clear()})).catch((function(){t.$message({type:"info",message:"已取消"})}))},changeAccount:function(){this.$router.push("/accounts")}},mounted:function(){this.accountInfo=JSON.parse(sessionStorage.getItem("active_account"))}},u=l,c=n(1001),h=(0,c.Z)(u,a,s,!1,null,"468b2379",null),f=h.exports,p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-menu",{staticClass:"el-menu-vertical-demo",staticStyle:{height:"calc(100vh - 100px)","overflow-y":"scroll"},attrs:{"default-active":t.getCurrentPath,"background-color":"#F5F5F5","text-color":"#666","active-text-color":"#fff",router:""},on:{open:t.handleOpen,close:t.handleClose}},t._l(t.auth_data,(function(e){return n("el-menu-item",{key:e.systemappid,attrs:{index:e.path},on:{click:function(n){return t.itemClick(e.path)}}},[n("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.meta.title))])])})),1)},d=[],g={data:function(){return{activePath:"",auth_data:""}},computed:{getCurrentPath:function(){if(this.activePath)return window.sessionStorage.getItem("currentPath")}},methods:{handleOpen:function(){},handleClose:function(){},getAuthList:function(){var t=JSON.parse(sessionStorage.getItem("active_modules"));this.auth_data=t.apps,this.activePath=t.apps[0].path},itemClick:function(t){window.sessionStorage.setItem("currentPath",t)}},created:function(){this.activePath=this.$route.path,this.getAuthList()},watch:{$route:function(){"/submiteditmag_detail"!=this.$route.path&&"/upload_archives"!=this.$route.path&&(this.activePath=this.$route.path)},activePath:{handler:function(t){window.sessionStorage.setItem("currentPath",this.$route.path)}}}},v=g,m=(0,c.Z)(v,p,d,!1,null,"ac136b70",null),y=m.exports,b=n(20629),x={components:{myheader:f,myaside:y},computed:(0,o.Z)({},(0,b.Se)({siteinfo:"siteinfo"})),data:function(){return{routerName:""}},methods:{siteInfos:function(){this.$store.dispatch("querySiteInfo",{classname:"webmanage.site.site",method:"querySite",content:{}})}},created:function(){this.siteInfos(),this.routerName=this.$route.meta.title,this.ast_nav=this.$route.meta.ast_nav},watch:{$route:function(t){this.routerName=t.meta.title,this.ast_nav=t.meta.ast_nav}}},w=x,C=(0,c.Z)(w,r,i,!1,null,"36d0b7d8",null),S=C.exports},5283:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.pageSize,"pager-count":11,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})},i=[],o=n(16198),a=(n(35666),{name:"Pagination",data:function(){return{}},props:{total:{default:function(){return 0}},pageSize:{default:function(){return 10}},currentPage:{default:function(){return 1}}},computed:{},watch:{},methods:{handleSizeChange:function(t){},handleCurrentChange:function(t){var e=this;return(0,o.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.$emit("pageChange",t);case 1:case"end":return n.stop()}}),n)})))()}}}),s=a,l=n(1001),u=(0,l.Z)(s,r,i,!1,null,"6869c198",null),c=u.exports},76857:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"search"},[n("span",[t._v("搜索:")]),n("el-input",{attrs:{placeholder:"请输入内容",clearable:"",size:"small"},on:{clear:function(e){return t.clearData()}},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.queryClick()}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}},[n("i",{staticClass:"el-icon-search",attrs:{slot:"prefix"},on:{click:function(e){return t.queryClick()}},slot:"prefix"})])],1)},i=[],o=(n(74916),n(64765),{name:"",data:function(){return{search:""}},props:{},computed:{},watch:{},methods:{queryClick:function(){this.search&&this.$emit("searchActive",this.search)},clearData:function(){this.$emit("clearData")}},beforeDestroy:function(){clearTimeout(this.timer)}}),a=o,s=n(1001),l=(0,s.Z)(a,r,i,!1,null,"f2b16c94",null),u=l.exports},94488:function(t,e,n){"use strict";n.d(e,{Z:function(){return C}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-input",{attrs:{readonly:"",placeholder:"选择对象人员","suffix-icon":"el-icon-arrow-down",autocomplete:"off"},on:{focus:function(e){t.dialogTableVisible=!0}},model:{value:t.value.name,callback:function(e){t.$set(t.value,"name",e)},expression:"value.name"}}),n("el-dialog",{attrs:{title:"选择人员","append-to-body":"",visible:t.dialogTableVisible,width:"80%"},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[n("div",{staticClass:"flex"},[n("dep-list",{ref:"list",staticStyle:{width:"200px"},on:{onClick:t.onClick}}),n("div",{staticStyle:{width:"600px",flex:"1 0 auto"}},[n("staffList",{ref:"staff",attrs:{depInfo:t.depInfo},scopedSlots:t._u([{key:"detail",fn:function(e){return[n("div",{staticClass:"inline-16"},[n("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(n){return t.selectMenber(e.data)}}},[t._v("选 择")])],1)]}}])})],1)],1)])],1)},i=[],o=(n(68309),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tree-panel"},[n("el-tree",{attrs:{data:t.deplist,"node-key":"id","default-expand-all":"","highlight-current":"","expand-on-click-node":!1},on:{"node-click":t.handleClick},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.node,i=e.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[t._v(t._s(r.label))]),n("span",[t._t("operation",null,{data:i})],2)])}}],null,!0)})],1)}),a=[],s=n(16198),l=(n(41539),n(54747),n(35666),{components:{},data:function(){return{deplist:[]}},methods:{department:function(){var t=this;return(0,s.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.requested({classname:"webmanage.department.department",method:"querydepartment",content:{}});case 2:n=e.sent,t.deplist=t.createMenu(n.data),t.$store.dispatch("setDeplistData",t.deplist),t.$emit("onClick",{data:t.deplist[0],parent:[]});case 6:case"end":return e.stop()}}),e)})))()},createMenu:function(t){var e=[];function n(t){var e={label:t["depname"],parentid:t["parentid"],departmentid:t["departmentid"],value:t["departmentid"],remarks:t["remarks"],isused:t["isused"],changedate:t["changedate"],changeby:t["changeby"],createdate:t["createdate"],createby:t["createby"],depno:t["depno"],children:[]};if(t.subdep&&t.subdep.length>0)for(var r=0;r<t.subdep.length;r++)e.children.push(n(t.subdep[r]));return e}return t.forEach((function(t){e.push(n(t))})),e},handleClick:function(t,e,n){this.$emit("onClick",e)}},mounted:function(){this.department()}}),u=l,c=n(1001),h=(0,c.Z)(u,o,a,!1,null,"430b45ee",null),f=h.exports,p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container normal-panel"},[n("div",{staticClass:"flex-align-center flex-between"},[n("p",{staticClass:"normal-title normal-margin"},[t._v("员工信息")]),t._t("staff")],2),n("el-input",{staticClass:"input-with-select normal-margin",staticStyle:{width:"270px"},attrs:{placeholder:"请输入内容",size:"small",clearable:""},model:{value:t.param.content.where.condition,callback:function(e){t.$set(t.param.content.where,"condition",e)},expression:"param.content.where.condition"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.listData(t.param.content.departmentid)}},slot:"append"},[t._v("查 询")])],1),n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,size:"mini",border:""}},[n("el-table-column",{attrs:{prop:"hrcode",label:"编号"}}),n("el-table-column",{attrs:{prop:"name",label:"姓名"}}),n("el-table-column",{attrs:{prop:"phonenumber",label:"手机号"}}),n("el-table-column",{attrs:{prop:"depname",label:"部门"}}),n("el-table-column",{attrs:{prop:"position",label:"职位"}}),n("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._t("detail",null,{data:e.row})]}}],null,!0)})],1),n("div",{staticStyle:{"margin-top":"16px","text-align":"right"}},[n("el-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.param.content.pageSize,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},d=[],g={data:function(){return{param:{classname:"webmanage.hr.hr",method:"query_hrList",content:{nocahe:!0,pageNumber:1,pageSize:20,departmentid:null,where:{condition:""}}},tablecols:[],list:[],total:0,currentPage:0}},methods:{listData:function(t){var e=this;return(0,s.Z)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.param.content.departmentid=t,n.next=3,e.$api.requested(e.param);case 3:r=n.sent,e.list=r.data,e.total=r.total,e.currentPage=r.pageNumber;case 7:case"end":return n.stop()}}),n)})))()},handleSizeChange:function(t){this.param.content.pageSize=t,this.listData()},handleCurrentChange:function(t){this.param.content.pageNumber=t,this.listData()}},mounted:function(){}},v=g,m=(0,c.Z)(v,p,d,!1,null,null,null),y=m.exports,b={props:["reporthrname"],components:{depList:f,staffList:y},data:function(){return{dialogTableVisible:!1,depInfo:{data:null,parent:{data:{}}},value:{name:"",hrid:""}}},methods:{onClick:function(t){this.depInfo=t,this.$refs.staff.listData(this.depInfo.data.departmentid)},selectMenber:function(t){this.value=t,this.$emit("selectMenber",t),this.dialogTableVisible=!1},onStaffSuccess:function(){this.$refs.staff.listData(this.depInfo.data.departmentid)}},watch:{reporthrname:function(t){this.value.name=t}}},x=b,w=(0,c.Z)(x,r,i,!1,null,"1c55c134",null),C=w.exports},90573:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",["image"===t.btntype?r("div",{staticClass:"image-upload-btn",on:{click:function(e){t.dialogUploadVisible=!0}}},[r("i",{staticClass:"el-icon-plus"})]):"limage"===t.btntype?r("div",{staticClass:"image-upload-btn limage-upload-btn",on:{click:function(e){t.dialogUploadVisible=!0}}},[r("i",{staticClass:"el-icon-plus"})]):r("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-upload"},on:{click:function(e){t.dialogUploadVisible=!0}}},[t._v("上 传")]),r("el-dialog",{attrs:{title:"文件上传",visible:t.dialogUploadVisible,width:"500px","append-to-body":"","close-on-click-modal":!1,"before-close":t.clearFiles},on:{"update:visible":function(e){t.dialogUploadVisible=e}}},[r("el-upload",{ref:"my-upload",staticClass:"upload-demo",staticStyle:{width:"100%"},attrs:{accept:t.accept,action:"#","auto-upload":!1,"show-file-list":!1,"on-change":t.handleChange,drag:"",multiple:""}},[r("i",{staticClass:"el-icon-upload"}),r("div",{staticClass:"el-upload__text"},[t._v("将文件拖到此处,或"),r("em",[t._v("点击上传")])])]),t._l(t.filelist,(function(e){return r("div",{key:e.uid,staticClass:"progress_panel"},["DOC"===e.type||"DOCX"===e.type?r("img",{attrs:{width:"30",src:n(12349),alt:""}}):"PDF"===e.type?r("img",{attrs:{width:"30",src:n(58813),alt:""}}):"MP4"===e.type||"AVI"===e.type?r("img",{attrs:{width:"30",src:n(29902),alt:""}}):"XLS"===e.type||"XLSX"===e.type?r("img",{attrs:{width:"30",src:n(54005),alt:""}}):"PNG"===e.type||"JPG"===e.type||"JPEG"===e.type?r("img",{attrs:{width:"30",src:n(45968),alt:""}}):"PPT"===e.type||"PPTX"===e.type?r("img",{attrs:{width:"30",src:n(4858),alt:""}}):r("img",{attrs:{width:"30",src:n(63899),alt:""}}),r("div",[100===e.progress?r("p",{staticStyle:{float:"right"}},[r("span",{staticStyle:{color:"#67C23A"}},[t._v("●")]),t._v("上传成功")]):t._e(),r("p",[t._v(t._s(e.raw?e.raw.name:"暂无上传文件"))]),r("el-progress",{attrs:{percentage:e.progress,"show-text":!1}})],1)])}))],2)],1)},i=[],o=n(16198),a=(n(35666),n(68309),n(41539),n(54747),{props:["folderid","btntype","accept","bindData"],data:function(){return{dialogUploadVisible:!1,params:{classname:"system.attachment.huawei.OBS",method:"getFileName",content:{filename:"",filetype:"",parentid:""}},file:{},filelist:[]}},methods:{handleChange:function(t,e){this.filelist=e;var n=t.raw.name.lastIndexOf("."),r=t.name.substr(n+1);this.params.content.filename=t.raw.name,this.params.content.filetype=r,console.log(t,r),this.getUploadUrl(t,r)},getUploadUrl:function(t,e){var n=this;return(0,o.Z)(regeneratorRuntime.mark((function r(){var i,o,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,n.$api.requested(n.params);case 2:i=r.sent,o=i.data.uploadurl,a=i.data.serialfilename,console.log(o,t,e,a),n.upoladFileToServer(o,t,e,a);case 7:case"end":return r.stop()}}),r)})))()},upoladFileToServer:function(t,e,n,r){var i=this;return(0,o.Z)(regeneratorRuntime.mark((function o(){var a,s;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return a=i,s={headers:"pdf"===n?{"Content-Type":"application/pdf"}:{"Content-Type":"application/octet-stream"},onUploadProgress:function(t){var r=t.loaded/t.total*100;a.filelist.forEach((function(t){t.uid===e.uid&&(a.$set(t,"type",n.toUpperCase()),a.$set(t,"progress",r))}))}},o.next=4,i.$upload.hw_upload(t,e.raw,s);case 4:o.sent,i.createFileRecord(r);case 6:case"end":return o.stop()}}),o)})))()},createFileRecord:function(t){var e=this;return(0,o.Z)(regeneratorRuntime.mark((function n(){var r,i,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r={serialfilename:t},r=Object.assign({},r,e.bindData),i={classname:"system.attachment.huawei.OBS",method:"uploadSuccess",content:r},n.next=5,e.$api.requested(i);case 5:o=n.sent,console.log(o),e.$emit("onSuccess");case 8:case"end":return n.stop()}}),n)})))()},clearFiles:function(){this.$refs["my-upload"].clearFiles(),this.filelist=[],this.dialogUploadVisible=!1}}}),s=a,l=n(1001),u=(0,l.Z)(s,r,i,!1,null,"299d96f6",null),c=u.exports},88965:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return u}});var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"container"},[r("el-row",{staticClass:"normal-margin",attrs:{gutter:20}},t._l(4,(function(t){return r("el-col",{key:t,attrs:{span:6}},[r("div",{staticClass:"normal-card"})])})),1),t._l(t.modulesList,(function(e){return r("div",{key:e.systemid,staticClass:"normal-card normal-margin ",attrs:{shadow:"none"}},[r("p",{staticClass:"title"},[t._v(t._s(e.systemname))]),r("el-row",{attrs:{gutter:20}},t._l(e.modules,(function(e){return r("el-col",{key:e.systemmoduleid,staticStyle:{"margin-top":"16px"},attrs:{span:4},nativeOn:{click:function(n){return t.redictToModules(e)}}},[r("div",{staticClass:"modules-item flex-align-center"},[r("img",{attrs:{width:"50",height:"50",src:n(90914),alt:""}}),r("p",[t._v(t._s(e.systemmodulename)),r("br"),r("small",{staticClass:"info"},[t._v(t._s(e.systemmodule.toUpperCase()))])])])])})),1)],1)}))],2)},i=[],o=(n(38862),{data:function(){return{modulesList:[]}},methods:{redictToModules:function(t){this.$router.push({path:t.apps[0].path}),sessionStorage.setItem("active_modules",JSON.stringify(t)),window.sessionStorage.setItem("currentPath",t.apps[0].path)}},mounted:function(){this.modulesList=JSON.parse(sessionStorage.getItem("module_info"))}}),a=o,s=n(1001),l=(0,s.Z)(a,r,i,!1,null,"662ead54",null),u=l.exports},82885:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return f}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"conatiner"},[n("div",{staticClass:"login-wrap"},[n("div",[t._m(0),n("div",{staticClass:"login-form"},[n("h4",{staticClass:"title"},[t._v("登录")]),n("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"短信登录",name:"first"}},[n("el-form",{ref:"loginForm",attrs:{rules:t.rules,model:t.loginForm}},[n("el-form-item",{attrs:{prop:"phonenumber"}},[n("el-input",{attrs:{placeholder:"账号"},model:{value:t.loginForm.phonenumber,callback:function(e){t.$set(t.loginForm,"phonenumber",e)},expression:"loginForm.phonenumber"}})],1),n("el-form-item",{attrs:{prop:"password"}},[n("el-input",{attrs:{placeholder:"验证码"},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}},[n("template",{slot:"append"},[t.count>0?n("span",[t._v(t._s(0===t.count?"获取验证码":t.count+"s"))]):n("el-button",{attrs:{type:"primary"},on:{click:t.countDown}},[t._v(t._s(0===t.count?"获取验证码":t.count+"s"))])],1)],2)],1),n("el-form-item",[n("div",{staticClass:"flex-between"},[n("el-checkbox",{model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},[t._v("记住账号")])],1)]),n("el-form-item",[n("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.login}},[t._v("登 录")])],1)],1)],1),n("el-tab-pane",{attrs:{label:"账号登录",name:"second"}},[n("el-form",{ref:"loginForm",attrs:{rules:t.rules,model:t.loginForm}},[n("el-form-item",{attrs:{prop:"phonenumber"}},[n("el-input",{attrs:{placeholder:"账号"},model:{value:t.loginForm.phonenumber,callback:function(e){t.$set(t.loginForm,"phonenumber",e)},expression:"loginForm.phonenumber"}})],1),n("el-form-item",{attrs:{prop:"password"}},[n("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}})],1),n("el-form-item",[n("div",{staticClass:"flex-between"},[n("el-checkbox",{model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},[t._v("记住账号")]),n("el-button",{attrs:{type:"text"}},[t._v("忘记密码")])],1)]),n("el-form-item",[n("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.loginbyaccount}},[t._v("登 录")])],1)],1)],1)],1),n("el-divider",[n("span",{staticStyle:{color:"#999","font-weight":"300"}},[t._v("其他登录方式")])]),n("span",[t._v("敬请期待")])],1)])])])},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"logo"},[n("span",[t._v("YOS后端管理平台")]),n("br"),n("small",[t._v("YOS-MANAGE-SYSTEM")])])}],o=n(16198),a=(n(38862),n(35666),n(88495)),s=n.n(a),l={data:function(){return{rules:{phonenumber:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入验证码",trigger:"blur"}]},loginForm:{phonenumber:"17757302857"},activeName:"first",checked:!1,count:0}},mounted:function(){localStorage.getItem("phonenumber")&&(this.loginForm.phonenumber=localStorage.getItem("phonenumber"),this.checked=!0)},methods:{loginCode:function(){var t=this;this.$api.loginCode({phonenumber:this.loginForm.phonenumber,systemclient:"web"}).then((function(e){console.log(e);var n=t.$createElement;1===e.code?t.$notify({title:"获取验证码成功!",message:n("i",{style:"color: teal"},e.msg)}):t.$notify({title:"失败",message:e.msg,type:"error"})}))},countDown:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.loginCode();case 2:t.count=5,n=setInterval((function(){t.count--,0===t.count&&clearInterval(n)}),1e3);case 4:case"end":return e.stop()}}),e)})))()},login:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.login({phonenumber:t.loginForm.phonenumber,password:s()(t.loginForm.password),systemclient:"web"});case 2:n=e.sent,t,1===n.code?(t.checked?localStorage.setItem("phonenumber",t.loginForm.phonenumber):localStorage.clear("phonenumber"),t.$router.push("/accounts"),sessionStorage.setItem("account_list",JSON.stringify(n.account_list))):t.$notify({title:"失败",message:n.data,type:"error"});case 5:case"end":return e.stop()}}),e)})))()},loginbyaccount:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.loginbyaccount({accountno:t.loginForm.phonenumber,password:s()(t.loginForm.password),systemclient:"web"});case 2:n=e.sent,1===n.code?(t.checked?localStorage.setItem("phonenumber",t.loginForm.phonenumber):localStorage.clear("phonenumber"),t.$router.push("/accounts"),sessionStorage.setItem("account_list",JSON.stringify(n.account_list))):t.$notify({title:"失败",message:n.data,type:"error"});case 4:case"end":return e.stop()}}),e)})))()}}},u=l,c=n(1001),h=(0,c.Z)(u,r,i,!1,null,"358007e6",null),f=h.exports},45688:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return EP}});var r={};n.r(r),n.d(r,{assign:function(){return ge},default:function(){return Re},defaultI18n:function(){return xe},format:function(){return Ie},parse:function(){return Pe},setGlobalDateI18n:function(){return Ce},setGlobalDateMasks:function(){return _e}});var i={};n.r(i),n.d(i,{Arc:function(){return Di},DataMarker:function(){return _i},DataRegion:function(){return Pi},Html:function(){return Xi},Image:function(){return Ti},Line:function(){return Si},Region:function(){return Mi},RegionFilter:function(){return Ri},Shape:function(){return ji},Text:function(){return Ei}});var o={};n.r(o),n.d(o,{ellipsisHead:function(){return to},ellipsisMiddle:function(){return no},ellipsisTail:function(){return eo},getDefault:function(){return Ji}});var a={};n.r(a),n.d(a,{equidistance:function(){return fo},equidistanceWithReverseBoth:function(){return po},getDefault:function(){return lo},reserveBoth:function(){return ho},reserveFirst:function(){return uo},reserveLast:function(){return co}});var s={};n.r(s),n.d(s,{fixedAngle:function(){return yo},getDefault:function(){return mo},unfixedAngle:function(){return bo}});var l={};n.r(l),n.d(l,{autoEllipsis:function(){return o},autoHide:function(){return a},autoRotate:function(){return s}});var u={};n.r(u),n.d(u,{Base:function(){return ko},Circle:function(){return Oo},Html:function(){return Lo},Line:function(){return Fo}});var c={};n.r(c),n.d(c,{CONTAINER_CLASS:function(){return ia},CROSSHAIR_X:function(){return ha},CROSSHAIR_Y:function(){return fa},LIST_CLASS:function(){return aa},LIST_ITEM_CLASS:function(){return sa},MARKER_CLASS:function(){return la},NAME_CLASS:function(){return ca},TITLE_CLASS:function(){return oa},VALUE_CLASS:function(){return ua}});var h={};n.r(h),n.d(h,{Base:function(){return uf},Circle:function(){return hf},Ellipse:function(){return df},Image:function(){return mf},Line:function(){return wf},Marker:function(){return Af},Path:function(){return Nf},Polygon:function(){return Uf},Polyline:function(){return Hf},Rect:function(){return qf},Text:function(){return Zf}});var f={};n.r(f),n.d(f,{Canvas:function(){return ep},Group:function(){return sf},Shape:function(){return h},getArcParams:function(){return Lh},version:function(){return np}});var p={};n.r(p),n.d(p,{Base:function(){return mp},Circle:function(){return bp},Dom:function(){return wp},Ellipse:function(){return Sp},Image:function(){return Ep},Line:function(){return Dp},Marker:function(){return Tp},Path:function(){return _p},Polygon:function(){return Pp},Polyline:function(){return Rp},Rect:function(){return zp},Text:function(){return qp}});var d={};n.r(d),n.d(d,{Canvas:function(){return vd},Group:function(){return gp},Shape:function(){return p},version:function(){return md}});var g={};n.r(g),n.d(g,{cluster:function(){return PO},hierarchy:function(){return bO},pack:function(){return iT},packEnclose:function(){return NO},packSiblings:function(){return KO},partition:function(){return rO},stratify:function(){return fT},tree:function(){return wT},treemap:function(){return kT},treemapBinary:function(){return DT},treemapDice:function(){return nO},treemapResquarify:function(){return MT},treemapSlice:function(){return CT},treemapSliceDice:function(){return FT},treemapSquarify:function(){return ET}});var v,m,y,b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container normal-panel"},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("storageCapacity")],1),n("el-col",{staticStyle:{"margin-bottom":"42px"},attrs:{span:12}},[n("downloadTraffic")],1),n("el-col",{attrs:{span:12}},[n("fileTypeProportion")],1),n("el-col",{attrs:{span:12}},[n("modulesProportion")],1)],1)],1)},x=[],w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"flex-align-center flex-between"},[n("p",{staticClass:"title"},[t._v("存储量")]),n("el-radio-group",{attrs:{size:"small"},on:{change:t.getLineChartOfStorage},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[n("el-radio-button",{attrs:{label:1}},[t._v("年")]),n("el-radio-button",{attrs:{label:2}},[t._v("月")]),n("el-radio-button",{attrs:{label:3}},[t._v("日")])],1)],1),n("div",{attrs:{id:"container"}})])},C=[],S=n(16198),A=(n(35666),n(70655)),E=n(45098);(function(t){t["FORE"]="fore",t["MID"]="mid",t["BG"]="bg"})(v||(v={})),function(t){t["TOP"]="top",t["TOP_LEFT"]="top-left",t["TOP_RIGHT"]="top-right",t["RIGHT"]="right",t["RIGHT_TOP"]="right-top",t["RIGHT_BOTTOM"]="right-bottom",t["LEFT"]="left",t["LEFT_TOP"]="left-top",t["LEFT_BOTTOM"]="left-bottom",t["BOTTOM"]="bottom",t["BOTTOM_LEFT"]="bottom-left",t["BOTTOM_RIGHT"]="bottom-right",t["RADIUS"]="radius",t["CIRCLE"]="circle",t["NONE"]="none"}(m||(m={})),function(t){t["AXIS"]="axis",t["GRID"]="grid",t["LEGEND"]="legend",t["TOOLTIP"]="tooltip",t["ANNOTATION"]="annotation",t["SLIDER"]="slider",t["SCROLLBAR"]="scrollbar",t["OTHER"]="other"}(y||(y={}));var k,D,F,M,O={FORE:3,MID:2,BG:1};(function(t){t["BEFORE_RENDER"]="beforerender",t["AFTER_RENDER"]="afterrender",t["BEFORE_PAINT"]="beforepaint",t["AFTER_PAINT"]="afterpaint",t["BEFORE_CHANGE_DATA"]="beforechangedata",t["AFTER_CHANGE_DATA"]="afterchangedata",t["BEFORE_CLEAR"]="beforeclear",t["AFTER_CLEAR"]="afterclear",t["BEFORE_DESTROY"]="beforedestroy",t["BEFORE_CHANGE_SIZE"]="beforechangesize",t["AFTER_CHANGE_SIZE"]="afterchangesize"})(k||(k={})),function(t){t["BEFORE_DRAW_ANIMATE"]="beforeanimate",t["AFTER_DRAW_ANIMATE"]="afteranimate",t["BEFORE_RENDER_LABEL"]="beforerenderlabel",t["AFTER_RENDER_LABEL"]="afterrenderlabel"}(D||(D={})),function(t){t["MOUSE_ENTER"]="plot:mouseenter",t["MOUSE_DOWN"]="plot:mousedown",t["MOUSE_MOVE"]="plot:mousemove",t["MOUSE_UP"]="plot:mouseup",t["MOUSE_LEAVE"]="plot:mouseleave",t["TOUCH_START"]="plot:touchstart",t["TOUCH_MOVE"]="plot:touchmove",t["TOUCH_END"]="plot:touchend",t["TOUCH_CANCEL"]="plot:touchcancel",t["CLICK"]="plot:click",t["DBLCLICK"]="plot:dblclick",t["CONTEXTMENU"]="plot:contextmenu",t["LEAVE"]="plot:leave",t["ENTER"]="plot:enter"}(F||(F={})),function(t){t["ACTIVE"]="active",t["INACTIVE"]="inactive",t["SELECTED"]="selected",t["DEFAULT"]="default"}(M||(M={}));var T,B,_,I,P=["color","shape","size"],L="_origin",R=1,N=1,j=.25,z={};function U(t){var e=z[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}function V(t,e){z[t]=e}function H(){T=document.createElement("table"),B=document.createElement("tr"),_=/^\s*<(\w+|!)[^>]*>/,I={tr:document.createElement("tbody"),tbody:T,thead:T,tfoot:T,td:B,th:B,"*":document.createElement("div")}}function $(t){T||H();var e=_.test(t)&&RegExp.$1;e&&e in I||(e="*");var n=I[e];t="string"===typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var r=n.childNodes[0];return r&&n.contains(r)&&n.removeChild(r),r}function G(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}function W(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}function q(t){return"number"===typeof t&&!isNaN(t)}function X(t,e,n,r){var i=n,o=r;if(e){var a=W(t);i=a.width?a.width:i,o=a.height?a.height:o}return{width:Math.max(q(i)?i:R,R),height:Math.max(q(o)?o:N,N)}}function Z(t){var e=t.parentNode;e&&e.removeChild(t)}var Y=n(90494),Q=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=e.visible,i=void 0===r||r;return n.visible=i,n}return(0,A.ZT)(e,t),e.prototype.show=function(){var t=this.visible;t||this.changeVisible(!0)},e.prototype.hide=function(){var t=this.visible;t&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(Y.Z),K=Q,J=n(98190),tt=0,et=.5,nt=.5,rt=.05,it=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r,o=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=n,this.dimValuesMap=o}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,o=this.yField,a=n.indexOf(e),s=n.length;return!o&&this.isAdjust("y")?(r=0,i=1):s>1?(r=n[0===a?0:a-1],i=n[a===s-1?s-1:a+1],0!==a?r+=(e-r)/2:r-=(i-e)/2,a!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,r=this.getDimValues(e);E.S6(t,(function(t,e){E.S6(r,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return E.S6(t,(function(t){void 0===t[e]&&(t[e]=tt)})),E.vM(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this,n=e.xField,r=e.yField,i=E.f0({},this.dimValuesMap),o=[];if(n&&this.isAdjust("x")&&o.push(n),r&&this.isAdjust("y")&&o.push(r),o.forEach((function(e){i&&i[e]||(i[e]=E.I(t,e).sort((function(t,e){return t-e})))})),!r&&this.isAdjust("y")){var a="y";i[a]=[tt,1]}return i},t}(),ot=it,at={},st=function(t){return at[t.toLowerCase()]},lt=function(t,e){if(st(t))throw new Error("Adjust type '"+t+"' existed.");at[t.toLowerCase()]=e},ut=function(t,e){return ut=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},ut(t,e)};function ct(t,e){function n(){this.constructor=t}ut(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var ht=function(){return ht=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ht.apply(this,arguments)};var ft=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var r=e.marginRatio,i=void 0===r?et:r,o=e.dodgeRatio,a=void 0===o?nt:o,s=e.dodgeBy,l=e.intervalPadding,u=e.dodgePadding,c=e.xDimensionLength,h=e.groupNum,f=e.defaultSize,p=e.maxColumnWidth,d=e.minColumnWidth,g=e.columnWidthRatio,v=e.customOffset;return n.marginRatio=i,n.dodgeRatio=a,n.dodgeBy=s,n.intervalPadding=l,n.dodgePadding=u,n.xDimensionLegenth=c,n.groupNum=h,n.defaultSize=f,n.maxColumnWidth=p,n.minColumnWidth=d,n.columnWidthRatio=g,n.customOffset=v,n}return ct(e,t),e.prototype.process=function(t){var e=E.d9(t),n=E.xH(e),r=this.dodgeBy,i=r?E.ru(n,r):e;return this.cacheMap={},this.adjustDataArray=i,this.mergeData=n,this.adjustData(i,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,r){var i=this,o=this.customOffset,a=this.getDistribution(t),s=this.groupData(n,t);return E.S6(s,(function(n,s){var l;l=1===e.length?{pre:e[0]-1,next:e[0]+1}:i.getAdjustRange(t,parseFloat(s),e),E.S6(n,(function(e){var n=e[t],s=a[n],u=s.indexOf(r);if(E.UM(o))e[t]=i.getDodgeOffset(l,u,s.length);else{var c=l.pre,h=l.next;e[t]=E.mf(o)?o(e,l):(c+h)/2+o}}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var r,i=this,o=i.dodgeRatio,a=i.marginRatio,s=i.intervalPadding,l=i.dodgePadding,u=t.pre,c=t.next,h=c-u;if(!E.UM(s)&&E.UM(l)&&s>=0){var f=this.getIntervalOnlyOffset(n,e);r=u+f}else if(!E.UM(l)&&E.UM(s)&&l>=0){f=this.getDodgeOnlyOffset(n,e);r=u+f}else if(!E.UM(s)&&!E.UM(l)&&s>=0&&l>=0){f=this.getIntervalAndDodgeOffset(n,e);r=u+f}else{var p=h*o/n,d=a*p;f=.5*(h-n*p-(n-1)*d)+((e+1)*p+e*d)-.5*p-.5*h;r=(u+c)/2+f}return r},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.intervalPadding,o=n.xDimensionLegenth,a=n.groupNum,s=n.dodgeRatio,l=n.maxColumnWidth,u=n.minColumnWidth,c=n.columnWidthRatio,h=i/o,f=(1-(a-1)*h)/a*s/(t-1),p=((1-h*(a-1))/a-f*(t-1))/t;if(p=E.UM(c)?p:1/a/t*c,!E.UM(l)){var d=l/o;p=Math.min(p,d)}if(!E.UM(u)){var g=u/o;p=Math.max(p,g)}p=r?r/o:p,f=((1-(a-1)*h)/a-t*p)/(t-1);var v=((.5+e)*p+e*f+.5*h)*a-h/2;return v},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.dodgePadding,o=n.xDimensionLegenth,a=n.groupNum,s=n.marginRatio,l=n.maxColumnWidth,u=n.minColumnWidth,c=n.columnWidthRatio,h=i/o,f=1*s/(a-1),p=((1-f*(a-1))/a-h*(t-1))/t;if(p=c?1/a/t*c:p,!E.UM(l)){var d=l/o;p=Math.min(p,d)}if(!E.UM(u)){var g=u/o;p=Math.max(p,g)}p=r?r/o:p,f=(1-(p*t+h*(t-1))*a)/(a-1);var v=((.5+e)*p+e*h+.5*f)*a-f/2;return v},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this,r=n.intervalPadding,i=n.dodgePadding,o=n.xDimensionLegenth,a=n.groupNum,s=r/o,l=i/o,u=((1-s*(a-1))/a-l*(t-1))/t,c=((.5+e)*u+e*l+.5*s)*a-s/2;return c},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},E.S6(e,(function(e,n){var i=E.I(e,t);i.length||i.push(0),E.S6(i,(function(t){r[t]||(r[t]=[]),r[t].push(n)}))})),n[t]=r),r},e}(ot),pt=ft;function dt(t,e){return(e-t)*Math.random()+t}var gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ct(e,t),e.prototype.process=function(t){var e=E.d9(t),n=E.xH(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this,i=this.groupData(n,t);return E.S6(i,(function(n,i){return r.adjustGroup(n,t,parseFloat(i),e)}))},e.prototype.getAdjustOffset=function(t){var e=t.pre,n=t.next,r=(n-e)*rt;return dt(e+r,n-r)},e.prototype.adjustGroup=function(t,e,n,r){var i=this,o=this.getAdjustRange(e,n,r);return E.S6(t,(function(t){t[e]=i.getAdjustOffset(o)})),t},e}(ot),vt=gt,mt=E.Ct,yt=function(t){function e(e){var n=t.call(this,e)||this,r=e.adjustNames,i=void 0===r?["y"]:r,o=e.height,a=void 0===o?NaN:o,s=e.size,l=void 0===s?10:s,u=e.reverseOrder,c=void 0!==u&&u;return n.adjustNames=i,n.height=a,n.size=l,n.reverseOrder=c,n}return ct(e,t),e.prototype.process=function(t){var e=this,n=e.yField,r=e.reverseOrder,i=n?this.processStack(t):this.processOneDimStack(t);return r?this.reverse(i):i},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this,n=e.xField,r=e.yField,i=e.reverseOrder,o=i?this.reverse(t):t,a=new mt,s=new mt;return o.map((function(t){return t.map((function(t){var e,i=E.U2(t,n,0),o=E.U2(t,[r]),l=i.toString();if(o=E.kJ(o)?o[1]:o,!E.UM(o)){var u=o>=0?a:s;u.has(l)||u.set(l,0);var c=u.get(l),h=o+c;return u.set(l,h),ht(ht({},t),(e={},e[r]=[c,h],e))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this,r=n.xField,i=n.height,o=n.reverseOrder,a="y",s=o?this.reverse(t):t,l=new mt;return s.map((function(t){return t.map((function(t){var n,o=e.size,s=t[r],u=2*o/i;l.has(s)||l.set(s,u/2);var c=l.get(s);return l.set(s,c+u),ht(ht({},t),(n={},n[a]=c,n))}))}))},e}(ot),bt=yt,xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ct(e,t),e.prototype.process=function(t){var e=E.xH(t),n=this,r=n.xField,i=n.yField,o=this.getXValuesMaxMap(e),a=Math.max.apply(Math,Object.keys(o).map((function(t){return o[t]})));return E.UI(t,(function(t){return E.UI(t,(function(t){var e,n,s=t[i],l=t[r];if(E.kJ(s)){var u=(a-o[l])/2;return ht(ht({},t),(e={},e[i]=E.UI(s,(function(t){return u+t})),e))}var c=(a-s)/2;return ht(ht({},t),(n={},n[i]=[c,s+c],n))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this,r=n.xField,i=n.yField,o=E.vM(t,(function(t){return t[r]}));return E.Q8(o,(function(t){return e.getDimMaxValue(t,i)}))},e.prototype.getDimMaxValue=function(t,e){var n=E.UI(t,(function(t){return E.U2(t,e,[])})),r=E.xH(n);return Math.max.apply(Math,r)},e}(ot),wt=xt;lt("Dodge",pt),lt("Jitter",vt),lt("Stack",bt),lt("Symmetric",wt);var Ct=function(t,e){return(0,E.HD)(e)?e:t.invert(t.scale(e))},St=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,r)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),r=e*t-n,i=this.values[n],o=n===e?i:this.values[n+1];return i+(o-i)*r},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;i<n;i+=1)r.push(e[i]);return r},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var r=t.scales[n];return"identity"===r.type?r.values[0]:t._getAttributeValue(r,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,r=void 0===n?"base":n,i=t.names,o=void 0===i?[]:i,a=t.scales,s=void 0===a?[]:a,l=t.values,u=void 0===l?[]:l,c=t.callback;this.type=r,this.scales=s,this.values=u,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(c){var r=c.apply(void 0,t);if(!(0,E.UM)(r))return[r]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var r=t.scale(e);return this.getLinearValue(r)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:(0,E.kJ)(t)?t.map((function(t){return Ct(e,t)})):Ct(e,t)},t}(),At=St,Et=function(t,e){return Et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},Et(t,e)};function kt(t,e){function n(){this.constructor=t}Et(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Dt=/rgba?\(([\s.,0-9]+)\)/,Ft=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Mt=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Ot=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,Tt=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},Bt=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t},_t=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function It(t){return"#"+Rt(t[0])+Rt(t[1])+Rt(t[2])}var Pt,Lt=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},Rt=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},Nt=function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),o=r*n-i,a=t[i],s=i===r?a:t[i+1];return It([_t(a,s,o,0),_t(a,s,o,1),_t(a,s,o,2)])},jt=function(t){if("#"===t[0]&&7===t.length)return t;Pt||(Pt=Bt()),Pt.style.color=t;var e=document.defaultView.getComputedStyle(Pt,"").getPropertyValue("color"),n=Dt.exec(e),r=n[1].split(/\s*,\s*/).map((function(t){return Number(t)}));return e=It(r),e},zt=function(t){var e=(0,E.HD)(t)?t.split("-"):t,n=(0,E.UI)(e,(function(t){return Lt(-1===t.indexOf("#")?jt(t):t)}));return function(t){return Nt(n,t)}},Ut=function(t){if(Tt(t)){var e,n=void 0;if("l"===t[0]){var r=Ft.exec(t),i=+r[1]+90;n=r[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){e="radial-gradient(";r=Mt.exec(t);n=r[4]}var o=n.match(Ot);return(0,E.S6)(o,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==o.length-1&&(e+=", ")})),e+=")",e}return t},Vt={rgb2arr:Lt,gradient:zt,toRGB:(0,E.HP)(jt),toCSSGradient:Ut},Ht=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],(0,E.HD)(n.values)&&(n.linear=!0),n.gradient=Vt.gradient(n.values),n}return kt(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(At),$t=Ht,Gt=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return kt(e,t),e}(At),Wt=Gt,qt=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return kt(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=n[0],i=n[1];return(0,E.UM)(t)||(0,E.UM)(e)?[]:[(0,E.kJ)(t)?t.map((function(t){return r.scale(t)})):r.scale(t),(0,E.kJ)(e)?e.map((function(t){return i.scale(t)})):i.scale(e)]},e}(At),Xt=qt,Zt=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return kt(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(At),Yt=Zt,Qt=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return kt(e,t),e}(At),Kt=Qt,Jt={};function te(t){return Jt[t]}function ee(t,e){Jt[t]=e}var ne=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){(0,E.f0)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return(0,E.UI)(this.ticks,(function(e,n){return(0,E.Kn)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,r=n?n(t,e):t;return(0,E.UM)(r)||!(0,E.mf)(r.toString)?"":r.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){(0,E.f0)(this,this.__cfg__),this.setDomain(),(0,E.xb)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if((0,E.HD)(t)){var n=te(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else(0,E.mf)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return(0,E.hj)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),re=ne,ie=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return(0,A.ZT)(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},e.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return void 0===e&&(e=(0,E.hj)(t)?t:NaN),e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),r=Math.round(e*n)+this.min;return r<this.min||r>this.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=e;return(0,E.hj)(e)&&!this.values.includes(e)&&(i=this.values[i]),t.prototype.getText.apply(this,(0,A.pr)([i],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if((0,E.UM)(this.getConfig("min"))&&(this.min=0),(0,E.UM)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(re),oe=ie,ae=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,se="\\d\\d?",le="\\d\\d",ue="\\d{3}",ce="\\d{4}",he="[^\\s]+",fe=/\[([^]*?)\]/gm;function pe(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var de=function(t){return function(e,n){var r=n[t].map((function(t){return t.toLowerCase()})),i=r.indexOf(e.toLowerCase());return i>-1?i:null}};function ge(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];for(var a in o)t[a]=o[a]}return t}var ve=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],me=["January","February","March","April","May","June","July","August","September","October","November","December"],ye=pe(me,3),be=pe(ve,3),xe={dayNamesShort:be,dayNames:ve,monthNamesShort:ye,monthNames:me,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},we=ge({},xe),Ce=function(t){return we=ge(we,t)},Se=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Ae=function(t,e){void 0===e&&(e=2),t=String(t);while(t.length<e)t="0"+t;return t},Ee={D:function(t){return String(t.getDate())},DD:function(t){return Ae(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return Ae(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return Ae(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return Ae(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return Ae(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return Ae(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return Ae(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return Ae(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return Ae(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return Ae(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return Ae(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Ae(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Ae(Math.floor(Math.abs(e)/60),2)+":"+Ae(Math.abs(e)%60,2)}},ke=function(t){return+t-1},De=[null,se],Fe=[null,he],Me=["isPm",he,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],Oe=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],Te={D:["day",se],DD:["day",le],Do:["day",se+he,function(t){return parseInt(t,10)}],M:["month",se,ke],MM:["month",le,ke],YY:["year",le,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",se,void 0,"isPm"],hh:["hour",le,void 0,"isPm"],H:["hour",se],HH:["hour",le],m:["minute",se],mm:["minute",le],s:["second",se],ss:["second",le],YYYY:["year",ce],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",le,function(t){return 10*+t}],SSS:["millisecond",ue],d:De,dd:De,ddd:Fe,dddd:Fe,MMM:["month",he,de("monthNamesShort")],MMMM:["month",he,de("monthNames")],a:Me,A:Me,ZZ:Oe,Z:Oe},Be={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},_e=function(t){return ge(Be,t)},Ie=function(t,e,n){if(void 0===e&&(e=Be["default"]),void 0===n&&(n={}),"number"===typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=Be[e]||e;var r=[];e=e.replace(fe,(function(t,e){return r.push(e),"@@@"}));var i=ge(ge({},we),n);return e=e.replace(ae,(function(e){return Ee[e](t,i)})),e.replace(/@@@/g,(function(){return r.shift()}))};function Pe(t,e,n){if(void 0===n&&(n={}),"string"!==typeof e)throw new Error("Invalid format in fecha parse");if(e=Be[e]||e,t.length>1e3)return null;var r=new Date,i={year:r.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],a=[],s=e.replace(fe,(function(t,e){return a.push(Se(e)),"@@@"})),l={},u={};s=Se(s).replace(ae,(function(t){var e=Te[t],n=e[0],r=e[1],i=e[3];if(l[n])throw new Error("Invalid format. "+n+" specified twice in format");return l[n]=!0,i&&(u[i]=!0),o.push(e),"("+r+")"})),Object.keys(u).forEach((function(t){if(!l[t])throw new Error("Invalid format. "+t+" is required in specified format")})),s=s.replace(/@@@/g,(function(){return a.shift()}));var c=t.match(new RegExp(s,"i"));if(!c)return null;for(var h,f=ge(ge({},we),n),p=1;p<c.length;p++){var d=o[p-1],g=d[0],v=d[2],m=v?v(c[p],f):+c[p];if(null==m)return null;i[g]=m}if(1===i.isPm&&null!=i.hour&&12!==+i.hour?i.hour=+i.hour+12:0===i.isPm&&12===+i.hour&&(i.hour=0),null==i.timezoneOffset){h=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var y=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],b=(p=0,y.length);p<b;p++)if(l[y[p][0]]&&i[y[p][0]]!==h[y[p][1]]())return null}else if(h=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return h}var Le={format:Ie,parse:Pe,defaultI18n:xe,setGlobalDateI18n:Ce,setGlobalDateMasks:_e},Re=Le;function Ne(t){return function(e,n,r,i){var o=(0,E.UM)(r)?0:r,a=(0,E.UM)(i)?e.length:i;while(o<a){var s=o+a>>>1;t(e[s])>n?a=s:o=s+1}return o}}var je="format";function ze(t,e){var n=r[je]||Re[je];return n(t,e)}function Ue(t){return(0,E.HD)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),(0,E.J_)(t)&&(t=t.getTime()),t}var Ve=1e3,He=60*Ve,$e=60*He,Ge=24*$e,We=31*Ge,qe=365*Ge,Xe=[["HH:mm:ss",Ve],["HH:mm:ss",10*Ve],["HH:mm:ss",30*Ve],["HH:mm",He],["HH:mm",10*He],["HH:mm",30*He],["HH",$e],["HH",6*$e],["HH",12*$e],["YYYY-MM-DD",Ge],["YYYY-MM-DD",4*Ge],["YYYY-WW",7*Ge],["YYYY-MM",We],["YYYY-MM",4*We],["YYYY-MM",6*We],["YYYY",380*Ge]];function Ze(t,e,n){var r=(e-t)/n,i=Ne((function(t){return t[1]}))(Xe,r)-1,o=Xe[i];return i<0?o=Xe[0]:i>=Xe.length&&(o=(0,E.Z$)(Xe)),o}var Ye=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return(0,A.ZT)(e,t),e.prototype.translate=function(t){t=Ue(t);var e=this.values.indexOf(t);return-1===e&&(e=(0,E.hj)(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):ze(r,this.mask),r}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;(0,E.S6)(e,(function(t,n){e[n]=Ue(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(oe),Qe=Ye,Ke=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return(0,A.ZT)(e,t),e.prototype.scale=function(t){if((0,E.UM)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax(),r=this.max,i=this.min;if(r===i)return e;var o=this.getScalePercent(t);return e+o*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=(0,E.YM)(e),r=(0,E.Z$)(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),(0,E.UM)(this.minLimit)||(this.min=n),(0,E.UM)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=(0,E.rx)(this.values),e=t.min,n=t.max;(0,E.UM)(this.min)&&(this.min=e),(0,E.UM)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=(0,E.hX)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(re),Je=Ke,tn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return(0,A.ZT)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(Je),en=tn;function nn(t,e){var n,r=Math.E;return n=e>=0?Math.pow(r,Math.log(e)/t):-1*Math.pow(r,Math.log(-e)/t),n}function rn(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function on(t,e,n){(0,E.UM)(n)&&(n=Math.max.apply(null,t));var r=n;return(0,E.S6)(t,(function(t){t>0&&t<r&&(r=t)})),r===n&&(r=n/e),r>1&&(r=1),r}var an=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return(0,A.ZT)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=rn(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,a=this.positiveMin;if(a){if(0===t)return 0;e=rn(n,a/n);var s=1/(r-e)*o;if(t<s)return t/s*a}else e=rn(n,this.min);var l=(t-i)/o,u=l*(r-e)+e;return Math.pow(n,u)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=on(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var r,i=this.base,o=this.positiveMin;return o&&(n=1*o/i),r=t<o?t/o/(rn(i,e)-rn(i,n)):(rn(i,t)-rn(i,n))/(rn(i,e)-rn(i,n)),r},e}(Je),sn=an,ln=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return(0,A.ZT)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,r=nn(n,this.max),i=nn(n,this.min),o=e*(r-i)+i,a=o>=0?1:-1;return Math.pow(o,n)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent,i=(nn(r,t)-nn(r,n))/(nn(r,e)-nn(r,n));return i},e}(Je),un=ln,cn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return(0,A.ZT)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):ze(n,this.mask)},e.prototype.scale=function(e){var n=e;return((0,E.HD)(n)||(0,E.J_)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return Ue(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if((0,E.UM)(e)&&(0,E.hj)(e)||(this.min=this.translate(this.min)),(0,E.UM)(n)&&(0,E.hj)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],i=1/0,o=i,a=0;(0,E.S6)(t,(function(t){var e=Ue(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");i>e?(o=i,i=e):o>e&&(o=e),a<e&&(a=e),r.push(e)})),t.length>1&&(this.minTickInterval=o-i),(0,E.UM)(e)&&(this.min=i),(0,E.UM)(n)&&(this.max=a)}},e}(en),hn=cn,fn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return(0,A.ZT)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),i=Math.floor(r*(n-1));if(i>=n-1)return(0,E.Z$)(e);if(i<0)return(0,E.YM)(e);var o=e[i],a=e[i+1],s=i/(n-1),l=(i+1)/(n-1);return o+(r-s)/(l-s)*(a-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||((0,E.Z$)(e)!==this.max&&e.push(this.max),(0,E.YM)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<(0,E.YM)(e))return 0;if(t>(0,E.Z$)(e))return 1;var n=0;return(0,E.S6)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(Je),pn=fn,dn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return(0,A.ZT)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(pn),gn=dn,vn={};function mn(t){return vn[t]}function yn(t,e){if(mn(t))throw new Error("type '"+t+"' existed.");vn[t]=e}var bn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return(0,A.ZT)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&(0,E.hj)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(re),xn=bn;function wn(t){var e=t.values,n=t.tickInterval,r=t.tickCount,i=t.showLast;if((0,E.hj)(n)){var o=(0,E.hX)(e,(function(t,e){return e%n===0})),a=(0,E.Z$)(e);return i&&(0,E.Z$)(o)!==a&&o.push(a),o}var s=e.length,l=t.min,u=t.max;if((0,E.UM)(l)&&(l=0),(0,E.UM)(u)&&(u=e.length-1),!(0,E.hj)(r)||r>=s)return e.slice(l,u+1);if(r<=0||u<=0)return[];for(var c=1===r?s:Math.floor(s/(r-1)),h=[],f=l,p=0;p<r;p++){if(f>=u)break;f=Math.min(l+p*c,u),p===r-1&&i?h.push(e[u]):h.push(e[f])}return h}function Cn(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,o=new Dn;return o.domain([e,n]),r&&o.nice(i),o.ticks(i)}var Sn=5,An=Math.sqrt(50),En=Math.sqrt(10),kn=Math.sqrt(2),Dn=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=Sn);var r,i=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],l=this._domain[a];return l<s&&(e=[l,s],s=e[0],l=e[1],n=[a,o],o=n[0],a=n[1]),r=Mn(s,l,t),r>0?(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,r=Mn(s,l,t)):r<0&&(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,r=Mn(s,l,t)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,this.domain(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=Sn),Fn(this._domain[0],this._domain[this._domain.length-1],t||Sn)},t}();function Fn(t,e,n){var r,i,o,a,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=Mn(t,e,n))||!isFinite(a))return[];if(a>0){t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));while(++s<i)o[s]=(t+s)*a}else{t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));while(++s<i)o[s]=(t-s)/a}return r&&o.reverse(),o}function Mn(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=An?10:o>=En?5:o>=kn?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=An?10:o>=En?5:o>=kn?2:1)}function On(t,e,n){var r;return r="ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e),r*e}function Tn(t,e,n){var r=On(t,n,"floor"),i=On(e,n,"ceil");r=(0,E.ri)(r,n),i=(0,E.ri)(i,n);for(var o=[],a=Math.max((i-r)/(Math.pow(2,12)-1),n),s=r;s<=i;s+=a){var l=(0,E.ri)(s,a);o.push(l)}return{min:r,max:i,ticks:o}}function Bn(t,e,n){var r,i=t.minLimit,o=t.maxLimit,a=t.min,s=t.max,l=t.tickCount,u=void 0===l?5:l,c=(0,E.UM)(i)?(0,E.UM)(e)?a:e:i,h=(0,E.UM)(o)?(0,E.UM)(n)?s:n:o;if(c>h&&(r=[c,h],h=r[0],c=r[1]),u<=2)return[c,h];for(var f=(h-c)/(u-1),p=[],d=0;d<u;d++)p.push(c+f*d);return p}function _n(t){var e=t.min,n=t.max,r=t.tickInterval,i=t.minLimit,o=t.maxLimit,a=Cn(t);return(0,E.UM)(i)&&(0,E.UM)(o)?r?Tn(e,n,r).ticks:a:Bn(t,(0,E.YM)(a),(0,E.Z$)(a))}function In(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}var Pn=[1,5,2,2.5,4,3],Ln=100*Number.EPSILON;function Rn(t,e){return(t%e+e)%e}function Nn(t){return Math.round(1e12*t)/1e12}function jn(t,e,n,r,i,o){var a=(0,E.dp)(e),s=(0,E.cq)(e,t),l=0,u=Rn(r,o);return(u<Ln||o-u<Ln)&&r<=0&&i>=0&&(l=1),1-s/(a-1)-n+l}function zn(t,e,n){var r=(0,E.dp)(e),i=(0,E.cq)(e,t),o=1;return 1-i/(r-1)-n+o}function Un(t,e,n,r,i,o){var a=(t-1)/(o-i),s=(e-1)/(Math.max(o,r)-Math.min(n,i));return 2-Math.max(a/s,s/a)}function Vn(t,e){return t>=e?2-(t-1)/(e-1):1}function Hn(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function $n(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}function Gn(){return 1}function Wn(t,e,n,r,i,o){void 0===n&&(n=5),void 0===r&&(r=!0),void 0===i&&(i=Pn),void 0===o&&(o=[.25,.2,.5,.05]);var a=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!==typeof t||"number"!==typeof e||!a)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===a)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var s=n||5,l=(e-t)/s;return{min:t,max:e,ticks:Array(s).fill(null).map((function(e,n){return In(t+l*n)}))}}var u={score:-2,lmin:0,lmax:0,lstep:0},c=1;while(c<1/0){for(var h=0;h<i.length;h+=1){var f=i[h],p=zn(f,i,c);if(o[0]*p+o[1]+o[2]+o[3]<u.score){c=1/0;break}var d=2;while(d<1/0){var g=Vn(d,a);if(o[0]*p+o[1]+o[2]*g+o[3]<u.score)break;var v=(e-t)/(d+1)/c/f,m=Math.ceil(Math.log10(v));while(m<1/0){var y=c*f*Math.pow(10,m),b=$n(t,e,y*(d-1));if(o[0]*p+o[1]*b+o[2]*g+o[3]<u.score)break;var x=Math.floor(e/y)*c-(d-1)*c,w=Math.ceil(t/y)*c;if(x<=w){s=w-x;for(var C=0;C<=s;C+=1){var S=x+C,A=S*(y/c),k=A+y*(d-1),D=y,F=jn(f,i,c,A,k,D),M=Hn(t,e,A,k),O=Un(d,a,t,e,A,k),T=Gn(),B=o[0]*F+o[1]*M+o[2]*O+o[3]*T;B>u.score&&(!r||A<=t&&k>=e)&&(u.lmin=A,u.lmax=k,u.lstep=D,u.score=B)}}m+=1}d+=1}}c+=1}var _=In(u.lmax),I=In(u.lmin),P=In(u.lstep),L=Math.floor(Nn((_-I)/P))+1,R=new Array(L);R[0]=In(I);for(h=1;h<L;h++)R[h]=In(R[h-1]+P);return{min:Math.min(t,(0,E.YM)(R)),max:Math.max(e,(0,E.Z$)(R)),ticks:R}}function qn(t){var e=t.min,n=t.max,r=t.tickCount,i=t.nice,o=t.tickInterval,a=t.minLimit,s=t.maxLimit,l=Wn(e,n,r,i).ticks;return(0,E.UM)(a)&&(0,E.UM)(s)?o?Tn(e,n,o).ticks:l:Bn(t,(0,E.YM)(l),(0,E.Z$)(l))}function Xn(t){var e,n=t.base,r=t.tickCount,i=t.min,o=t.max,a=t.values,s=rn(n,o);if(i>0)e=Math.floor(rn(n,i));else{var l=on(a,n,o);e=Math.floor(rn(n,l))}for(var u=s-e,c=Math.ceil(u/r),h=[],f=e;f<s+c;f+=c)h.push(Math.pow(n,f));return i<=0&&h.unshift(0),h}function Zn(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var r=n<0?0:Math.round(n);if(0===r)return{max:e,min:t,ticks:[]};var i=1.5,o=.5+1.5*i,a=e-t,s=a/r,l=Math.pow(10,Math.floor(Math.log10(s))),u=l;2*l-s<i*(s-u)&&(u=2*l,5*l-s<o*(s-u)&&(u=5*l,10*l-s<i*(s-u)&&(u=10*l)));for(var c=Math.ceil(e/u),h=Math.floor(t/u),f=Math.max(c*u,e),p=Math.min(h*u,t),d=Math.floor((f-p)/u)+1,g=new Array(d),v=0;v<d;v++)g[v]=In(p+v*u);return{min:p,max:f,ticks:g}}function Yn(t){var e=t.exponent,n=t.tickCount,r=Math.ceil(nn(e,t.max)),i=Math.floor(nn(e,t.min)),o=Zn(i,r,n).ticks;return o.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))}function Qn(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!==0?t[Math.ceil(n)-1]:t.length%2===0?(t[n-1]+t[n])/2:t[n]}function Kn(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var r=n.slice().sort((function(t,e){return t-e})),i=[],o=0;o<e;o++){var a=o/(e-1);i.push(Qn(r,a))}return i}function Jn(t){var e=t.min,n=t.max,r=t.tickCount,i=t.tickInterval,o=t.minLimit,a=t.maxLimit,s=Zn(e,n,r).ticks;return(0,E.UM)(o)&&(0,E.UM)(a)?i?Tn(e,n,i).ticks:s:Bn(t,(0,E.YM)(s),(0,E.Z$)(s))}function tr(t){var e=t.min,n=t.max,r=t.minTickInterval,i=t.tickInterval,o=t.tickCount;if(i)o=Math.ceil((n-e)/i);else{i=Ze(e,n,o)[1];var a=(n-e)/i,s=a/o;s>1&&(i*=Math.ceil(s)),r&&i<r&&(i=r)}i=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),i);for(var l=[],u=e;u<n+i;u+=i)l.push(u);return l}function er(t){var e=wn((0,A.pi)({showLast:!0},t));return e}function nr(t){return new Date(t).getFullYear()}function rr(t){return new Date(t,0,1).getTime()}function ir(t){return new Date(t).getMonth()}function or(t,e){var n=nr(t),r=nr(e),i=ir(t),o=ir(e);return 12*(r-n)+(o-i)%12}function ar(t,e){return new Date(t,e,1).getTime()}function sr(t,e){return Math.ceil((e-t)/Ge)}function lr(t,e){return Math.ceil((e-t)/$e)}function ur(t,e){return Math.ceil((e-t)/6e4)}function cr(t){var e=t.min,n=t.max,r=t.minTickInterval,i=t.tickCount,o=t.tickInterval,a=[];o||(o=(n-e)/i,r&&o<r&&(o=r)),o=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),o);var s=nr(e);if(o>qe)for(var l=nr(n),u=Math.ceil(o/qe),c=s;c<=l+u;c+=u)a.push(rr(c));else if(o>We){var h=Math.ceil(o/We),f=ir(e),p=or(e,n);for(c=0;c<=p+h;c+=h)a.push(ar(s,c+f))}else if(o>Ge){var d=new Date(e),g=d.getFullYear(),v=d.getMonth(),m=d.getDate(),y=Math.ceil(o/Ge),b=sr(e,n);for(c=0;c<b+y;c+=y)a.push(new Date(g,v,m+c).getTime())}else if(o>$e){d=new Date(e),g=d.getFullYear(),v=d.getMonth(),y=d.getDate();var x=d.getHours(),w=Math.ceil(o/$e),C=lr(e,n);for(c=0;c<=C+w;c+=w)a.push(new Date(g,v,y,x+c).getTime())}else if(o>He){var S=ur(e,n),A=Math.ceil(o/He);for(c=0;c<=S+A;c+=A)a.push(e+c*He)}else{var E=o;E<Ve&&(E=Ve);var k=Math.floor(e/Ve)*Ve,D=Math.ceil((n-e)/Ve),F=Math.ceil(E/Ve);for(c=0;c<D+F;c+=F)a.push(k+c*Ve)}return a.length>=512&&console.warn("Notice: current ticks length("+a.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),a}ee("cat",wn),ee("time-cat",er),ee("wilkinson-extended",qn),ee("r-pretty",Jn),ee("time",tr),ee("time-pretty",cr),ee("log",Xn),ee("pow",Yn),ee("quantile",Kn),ee("d3-linear",_n),yn("cat",oe),yn("category",oe),yn("identity",xn),yn("linear",en),yn("log",sn),yn("pow",un),yn("time",hn),yn("timeCat",Qe),yn("quantize",pn),yn("quantile",gn);var hr={},fr=function(t){return hr[t.toLowerCase()]},pr=function(t,e){if(fr(t))throw new Error("Attribute type '"+t+"' existed.");hr[t.toLowerCase()]=e};pr("Color",$t),pr("Opacity",Wt),pr("Position",Xt),pr("Shape",Yt),pr("Size",Kt);var dr=n(49685);function gr(){var t=new dr.WT(3);return dr.WT!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function vr(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}(function(){var t=gr()})();var mr=n(35600),yr=n(31506),br=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,r=t.matrix,i=void 0===r?[1,0,0,0,1,0,0,0,1]:r,o=t.isTransposed,a=void 0!==o&&o;this.start=e,this.end=n,this.matrix=i,this.originalMatrix=(0,A.ev)([],i),this.isTransposed=a}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){(0,E.f0)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(n=[o,i],i=n[0],o=n[1]),i+t*(o-i)},t.prototype.invertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(n=[o,i],i=n[0],o=n[1]),(t-i)/(o-i)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,i=[t,e,n];return vr(i,i,r),i},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,i=mr.U_([0,0,0,0,0,0,0,0,0],r),o=[t,e,n];return i&&vr(o,o,i),o},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return yr.m$(e,e,[-n.x,-n.y]),yr.zu(e,e,t),yr.m$(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,r=this.center;return yr.m$(n,n,[-r.x,-r.y]),yr.lh(n,n,[t,e]),yr.m$(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return yr.m$(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||(0,A.ev)([],this.originalMatrix)},t}(),xr=br,wr=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return(0,A.ZT)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;return this.isTransposed&&(e=[r,n],n=e[0],r=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(r,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),r=this.invertDim(t.y,"y");return this.isTransposed&&(e=[r,n],n=e[0],r=e[1]),{x:n,y:r}},e}(xr),Cr=wr,Sr=n(31437),Ar=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var r=e.startAngle,i=void 0===r?1.25*Math.PI:r,o=e.endAngle,a=void 0===o?7.25*Math.PI:o,s=e.innerRadius,l=void 0===s?0:s,u=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=l,n.radius=u,n.initial(),n}return(0,A.ZT)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;this.isTransposed&&(e=[r,n],n=e[0],r=e[1]);var i=this.convertDim(n,"x"),o=this.a*i,a=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(o+a),y:this.center.y+Math.sin(i)*(o+a)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=Sr.$X([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=yr.Dg(r,[1,0],!0),o=i*this.a;Sr.kE(r)<o&&(o=Sr.kE(r));var a=Math.floor((Sr.kE(r)-o)/n);i=2*a*Math.PI+i;var s=this.a*i,l=Sr.kE(r)-s;l=(0,E.vQ)(l,0)?0:l;var u=this.invertDim(i,"x"),c=this.invertDim(l,"y");return u=(0,E.vQ)(u,0)?0:u,c=(0,E.vQ)(c,0)?0:c,this.isTransposed&&(e=[c,u],u=e[0],c=e[1]),{x:u,y:c}},e}(xr),Er=Ar,kr=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var r=e.startAngle,i=void 0===r?-Math.PI/2:r,o=e.endAngle,a=void 0===o?3*Math.PI/2:o,s=e.innerRadius,l=void 0===s?0:s,u=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=l,n.radius=u,n.initial(),n}return(0,A.ZT)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);while(this.endAngle<this.startAngle)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),r=n.maxX-n.minX,i=n.maxY-n.minY,o=Math.abs(n.minX)/r,a=Math.abs(n.minY)/i;this.height/i>this.width/r?(e=this.width/r,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-a)*e*i}):(e=this.height/i,this.circleCenter={x:this.center.x-(.5-o)*e*r,y:this.center.y-(.5-a)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),r=t.x,i=t.y;return this.isTransposed&&(e=[i,r],r=e[0],i=e[1]),r=this.convertDim(r,"x"),i=this.convertDim(i,"y"),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),r=[t.x-n.x,t.y-n.y],i=this,o=i.startAngle,a=i.endAngle;this.isReflect("x")&&(e=[a,o],o=e[0],a=e[1]);var s=[1,0,0,0,1,0,0,0,1];yr.zu(s,s,o);var l=[1,0,0];vr(l,l,s);var u=[l[0],l[1]],c=yr.Dg(u,r,a<o);(0,E.vQ)(c,2*Math.PI)&&(c=0);var h=Sr.kE(r),f=c/(a-o);f=a-o>0?f:-f;var p=this.invertDim(h,"y"),d={x:0,y:0};return d.x=this.isTransposed?p:f,d.y=this.isTransposed?f:p,d},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i<Math.max(t,e);i+=Math.PI/18)n.push(Math.cos(i)),r.push(Math.sin(i));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}},e}(xr),Dr=kr,Fr={},Mr=function(t){return Fr[t.toLowerCase()]},Or=function(t,e){Fr[t.toLowerCase()]=e};function Tr(t,e,n){var r=new J.Event(e,n);r.target=t,r.propagationPath.push(t),t.emitDelegation(e,r);var i=t.getParent();while(i)i.emitDelegation(e,r),r.propagationPath.push(i),i=i.getParent()}Or("rect",Cr),Or("cartesian",Cr),Or("polar",Dr),Or("helix",Er);var Br=[1,0,0,0,1,0,0,0,1];function _r(t,e,n){if(void 0===n&&(n=Br),!e)return null;var r=yr.vs(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]);return r}function Ir(t,e){return t.x||t.y?yr.vs(e||Br,[["t",t.x,t.y]]):null}function Pr(t){var e=[1,0,0],n=[0,0,0];return vr(n,e,t),Math.atan2(n[1],n[0])}function Lr(t,e){var n=[0,0];return Sr.kK(n,e,t),n}function Rr(t,e){var n=Lr(t,[e.minX,e.minY]),r=Lr(t,[e.maxX,e.minY]),i=Lr(t,[e.minX,e.maxY]),o=Lr(t,[e.maxX,e.maxY]),a=Math.min(n[0],r[0],i[0],o[0]),s=Math.max(n[0],r[0],i[0],o[0]),l=Math.min(n[1],r[1],i[1],o[1]),u=Math.max(n[1],r[1],i[1],o[1]);return{x:a,y:l,minX:a,minY:l,maxX:s,maxY:u,width:s-a,height:u-l}}function Nr(t,e,n,r){if(e){var i=_r({x:n,y:r},e,t.getMatrix());t.setMatrix(i)}}function jr(t,e,n){var r=Ir({x:e,y:n});t.attr("matrix",r)}function zr(t){var e=0,n=0,r=0,i=0;return(0,E.hj)(t)?e=n=r=i=t:(0,E.kJ)(t)&&(e=t[0],r=(0,E.UM)(t[1])?t[0]:t[1],i=(0,E.UM)(t[2])?t[0]:t[2],n=(0,E.UM)(t[3])?r:t[3]),[e,r,i,n]}function Ur(t){for(var e=t.childNodes,n=e.length,r=n-1;r>=0;r--)t.removeChild(e[r])}function Vr(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function Hr(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function $r(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function Gr(t,e,n,r){var i=t+n,o=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(o)?0:o}}function Wr(t,e,n){return(1-n)*t+e*n}function qr(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}function Xr(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}var Zr=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)<n};function Yr(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),o=Math.min(t.maxY,e.maxY);return Gr(n,r,i-n,o-r)}function Qr(t){var e,n=t.getClip(),r=n&&n.getBBox();if(t.isGroup()){var i=1/0,o=-1/0,a=1/0,s=-1/0,l=t.getChildren();l.length>0?(0,E.S6)(l,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=Qr(t),n=t.applyToMatrix([e.minX,e.minY,1]),r=t.applyToMatrix([e.minX,e.maxY,1]),l=t.applyToMatrix([e.maxX,e.minY,1]),u=t.applyToMatrix([e.maxX,e.maxY,1]),c=Math.min(n[0],r[0],l[0],u[0]),h=Math.max(n[0],r[0],l[0],u[0]),f=Math.min(n[1],r[1],l[1],u[1]),p=Math.max(n[1],r[1],l[1],u[1]);c<i&&(i=c),h>o&&(o=h),f<a&&(a=f),p>s&&(s=p)}})):(i=0,o=0,a=0,s=0),e=Gr(i,a,o-i,s-a)}else e=t.getBBox();return r?Yr(e,r):e}function Kr(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}}function Jr(t){return t+"px"}function ti(t,e,n,r){var i=Xr(t,e),o=r/i,a=0;return"start"===n?a=0-o:"end"===n&&(a=1+o),{x:Wr(t.x,e.x,a),y:Wr(t.y,e.y,a)}}var ei={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},ni=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg")||{};(0,E.S6)(t,(function(t,r){var i=e.get(r),o=t;i!==t&&((0,E.Kn)(t)&&n[r]&&(o=(0,E.b$)({},n[r],t)),e.set(r,o))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){(0,E.wH)(t,"visible")&&(t.visible?this.show():this.hide()),(0,E.wH)(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=(0,A.pi)({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),r=ei[n];return(0,E.S6)(r,(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");(0,E.S6)(e,(function(e,n){var r=t.get(n);if((0,E.Kn)(r)){var i=(0,E.b$)({},e,r);t.set(n,i)}}))},e}(J.Base),ri=ni,ii="update_status",oi=["visible","tip","delegateObject"],ai=["container","group","shapesMap","isRegister","isUpdating","destroyed"],si=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},e.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t),n=e&&e.get("component");return n},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return(0,E.S6)(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){var t=this.get("group");t.show(),this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){var e=this.get("group");e.set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=Rr(n,e)),e},e.prototype.on=function(t,e,n){var r=this.get("group");return r.on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){var n=this.get("group");n.emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),Tr(n,t,e)},e.prototype.createOffScreenGroup=function(){var t=this.get("group"),e=t.getGroupBase(),n=new e({delegateObject:this.getDelegateObject()});return n},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",Qr(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,r=e.component,i=(0,A._T)(e,["id","component"]),o=new r((0,A.pi)((0,A.pi)({},i),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){var t=this.get("group");t.off()},e.prototype.getElementId=function(t){var e=this.get("id"),n=this.get("name");return e+"-"+n+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=Ir(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");(0,E.UM)(r)&&(r=1),e.attr("opacity",0),e.animate({opacity:r},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,r){e.animate(n,r)},e.prototype.updateElements=function(t,e){var n,r=this,i=this.get("animate"),o=this.get("animateOption"),a=t.getChildren().slice(0);(0,E.S6)(a,(function(t){var a=t.get("id"),s=r.getElementById(a),l=t.get("name");if(s)if(t.get("isComponent")){var u=t.get("component"),c=s.get("component"),h=(0,E.ei)(u.cfg,(0,E.e5)((0,E.XP)(u.cfg),ai));c.update(h),s.set(ii,"update")}else{var f=r.getReplaceAttrs(s,t);i&&o.update?r.updateAnimation(l,s,f,o.update):s.attr(f),t.isGroup()&&r.updateElements(t,s),(0,E.S6)(oi,(function(e){s.set(e,t.get(e))})),Kr(s,t),n=s,s.set(ii,"update")}else{e.add(t);var p=e.getChildren();if(p.splice(p.length-1,1),n){var d=p.indexOf(n);p.splice(d+1,0,t)}else p.unshift(t);if(r.registerElement(t),t.set(ii,"add"),t.get("isComponent")){u=t.get("component");u.set("container",e)}else t.isGroup()&&r.registerNewGroup(t);if(n=t,i){var g=r.get("isInit")?o.appear:o.enter;g&&r.addAnimation(l,t,g)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();(0,E.S6)(e,(function(t){t.set(ii,null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t,e=this.get("name"),n=(t={},t[e]=this,t.component=this,t);return n},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),(0,E.CD)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return(0,E.S6)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();(0,E.S6)(n,(function(t){e.registerElement(t),t.set(ii,"add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];(0,E.S6)(e,(function(t,e){!t.get(ii)||t.destroyed?n.push([e,t]):t.set(ii,null)}));var r=this.get("animate"),i=this.get("animateOption");(0,E.S6)(n,(function(n){var o=n[0],a=n[1];if(!a.destroyed){var s=a.get("name");if(r&&i.leave){var l=(0,E.CD)({callback:function(){t.removeElement(a)}},i.leave);t.removeAnimation(s,a,l)}else t.removeElement(a)}delete e[o]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(ri),li=si,ui="…";function ci(t){for(var e=0,n=0;n<t.length;n++)e+=hi(t,n);return e}function hi(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}function fi(t,e,n){void 0===n&&(n="tail");var r=t.length,i="";if("tail"===n){for(var o=0,a=0;o<e;){var s=hi(t,a);if(!(o+s<=e))break;i+=t[a],o+=hi(t,a),a++}i+=ui}else if("head"===n){for(o=0,a=r-1;o<e;){s=hi(t,a);if(!(o+s<=e))break;i+=t[a],o+=hi(t,a),a--}i=ui+i}else{for(var l="",u="",c=(o=0,0),h=r-1;o<e;){var f=hi(t,c),p=!1;f+o<=e&&(l+=t[c],c++,o+=f,p=!0);var d=hi(t,h);if(d+o<=e&&(u=t[h]+u,o+=d,h--,p=!0),!p)break}i=l+ui+u}return i}var pi="…",di=2,gi=400;function vi(t){for(var e=t.map((function(t){var e=t.attr("text");return(0,E.UM)(e)?"":""+e})),n=0,r=0,i=0;i<e.length;i+=1){for(var o=0,a=0;a<=e[i].length;a+=1){var s=e[i].charCodeAt(a);o+=s>=19968&&s<=40869?2:1}o>n&&(n=o,r=i)}return t[r].getBBox().width}function mi(t){if(t.length>gi)return vi(t);var e=0;return(0,E.S6)(t,(function(t){var n=t.getBBox(),r=n.width;e<r&&(e=r)})),e}function yi(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}function bi(t,e,n,r){var i;void 0===r&&(r="tail");var o=null!==(i=e.attr("text"))&&void 0!==i?i:"";if("tail"===r){var a=(0,E.ei)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),s=(0,E.Lo)(o,n,a,"…");return o!==s?(e.attr("text",s),e.set("tip",o),!0):(e.set("tip",null),!1)}var l=yi(t,e),u=ci(o),c=!1;if(n<l){var h=Math.floor(n/l*u)-di,f=void 0;f=h>=0?fi(o,h,r):pi,f&&(e.attr("text",f),c=!0)}return c?e.set("tip",o):e.set("tip",null),c}function xi(t,e){var n=e.x,r=e.y,i=e.content,o=e.style,a=e.id,s=e.name,l=e.rotate,u=e.maxLength,c=e.autoEllipsis,h=e.isVertical,f=e.ellipsisPosition,p=e.background,d=t.addGroup({id:a+"-group",name:s+"-group",attrs:{x:n,y:r}}),g=d.addShape({type:"text",id:a,name:s,attrs:(0,A.pi)({x:0,y:0,text:i},o)}),v=zr((0,E.U2)(p,"padding",0));if(u&&c){var m=u-(v[1]+v[3]);bi(!h,g,m,f)}if(p){var y=(0,E.U2)(p,"style",{}),b=g.getCanvasBBox(),x=b.minX,w=b.minY,C=b.width,S=b.height,k=d.addShape("rect",{id:a+"-bg",name:a+"-bg",attrs:(0,A.pi)({x:x-v[3],y:w-v[0],width:C+v[1]+v[3],height:S+v[0]+v[2]},y)});k.toBack()}jr(d,n,r),Nr(d,l,n,r)}var wi={fontFamily:'\n BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"},Ci=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:wi.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:wi.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:wi.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:(0,A.pi)({x1:e.x,y1:e.y,x2:n.x,y2:n.y},r)})},e.prototype.getLabelPoint=function(t,e,n){var r;return r="start"===n?0:"center"===n?.5:(0,E.HD)(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:(0,E.hj)(n)?n:1,(r>1||r<0)&&(r=1),{x:Wr(t.x,e.x,r),y:Wr(t.y,e.y,r)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),r=this.get("end"),i=e.position,o=e.content,a=e.style,s=e.offsetX,l=e.offsetY,u=e.autoRotate,c=e.maxLength,h=e.autoEllipsis,f=e.ellipsisPosition,p=e.background,d=e.isVertical,g=void 0!==d&&d,v=this.getLabelPoint(n,r,i),m=v.x+s,y=v.y+l,b={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:y,content:o,style:a,maxLength:c,autoEllipsis:h,ellipsisPosition:f,background:p,isVertical:g};if(u){var x=[r.x-n.x,r.y-n.y];b.rotate=Math.atan2(x[1],x[0])}xi(t,b)},e}(li),Si=Ci,Ai=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:wi.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:wi.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("content"),o=this.get("style"),a=this.getElementId("text"),s=this.get("name")+"-text",l=this.get("maxLength"),u=this.get("autoEllipsis"),c=this.get("isVertical"),h=this.get("ellipsisPosition"),f=this.get("background"),p=this.get("rotate"),d={id:a,name:s,x:n,y:r,content:i,style:o,maxLength:l,autoEllipsis:u,isVertical:c,ellipsisPosition:h,background:f,rotate:p};xi(t,d)},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("rotate");jr(t,n,r),Nr(t,i,n,r)}},e}(li),Ei=Ai,ki=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,o=qr(e,n,r),a=qr(e,n,i),s=i-r>Math.PI?1:0,l=[["M",o.x,o.y]];if(i-r===2*Math.PI){var u=qr(e,n,r+Math.PI);l.push(["A",n,n,0,s,1,u.x,u.y]),l.push(["A",n,n,0,s,1,a.x,a.y])}else l.push(["A",n,n,0,s,1,a.x,a.y]);return l},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,A.pi)({path:e},n)})},e}(li),Di=ki,Fi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:wi.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style"),i=Hr({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,A.pi)({x:i.x,y:i.y,width:i.width,height:i.height},r)})},e}(li),Mi=Fi,Oi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),r=Hr({start:t,end:e}),i=this.get("src");return(0,A.pi)({x:r.x,y:r.y,img:i,width:r.width,height:r.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(li),Ti=Oi,Bi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:wi.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:wi.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:wi.fontFamily}}}})},e.prototype.renderInner=function(t){(0,E.U2)(this.get("line"),"display")&&this.renderLine(t),(0,E.U2)(this.get("text"),"display")&&this.renderText(t),(0,E.U2)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,r=e.y,i=e.text,o=(0,A._T)(e,["x","y","text"]),a=this.get("text"),s=a.background,l=a.maxLength,u=a.autoEllipsis,c=a.isVertival,h=a.ellipsisPosition,f={x:n,y:r,id:this.getElementId("text"),name:"annotation-text",content:i,style:o,background:s,maxLength:l,autoEllipsis:u,isVertival:c,ellipsisPosition:h};xi(t,f)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),r=this.get("y"),i=(0,E.U2)(this.get("line"),"length",0),o=this.get("coordinateBBox"),a=t.getBBox(),s=a.minX,l=a.maxX,u=a.minY,c=a.maxY,h=t.findById(this.getElementId("text-group")),f=t.findById(this.getElementId("text")),p=t.findById(this.getElementId("line"));if(o){if(h){if(n+s<=o.minX){var d=o.minX-(n+s);jr(h,h.attr("x")+d,h.attr("y"))}if(n+l>=o.maxX){d=n+l-o.maxX;jr(h,h.attr("x")-d,h.attr("y"))}}if("upward"===e&&r+u<=o.minY||"upward"!==e&&r+c>=o.maxY){var g=void 0,v=void 0;"upward"===e&&r+u<=o.minY?(g="top",v=1):(g="bottom",v=-1),f.attr("textBaseline",g),p&&p.attr("path",[["M",0,0],["L",0,i*v]]),jr(h,h.attr("x"),(i+2)*v)}}},e.prototype.getShapeAttrs=function(){var t=(0,E.U2)(this.get("line"),"display"),e=(0,E.U2)(this.get("point"),"style",{}),n=(0,E.U2)(this.get("line"),"style",{}),r=(0,E.U2)(this.get("text"),"style",{}),i=this.get("direction"),o=t?(0,E.U2)(this.get("line"),"length",0):0,a="upward"===i?-1:1;return{point:(0,A.pi)({x:0,y:0},e),line:(0,A.pi)({path:[["M",0,0],["L",0,o*a]]},n),text:(0,A.pi)({x:0,y:(o+2)*a,text:(0,E.U2)(this.get("text"),"content",""),textBaseline:"upward"===i?"bottom":"top"},r)}},e}(li),_i=Bi,Ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:wi.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:wi.textColor,fontFamily:wi.fontFamily}}}})},e.prototype.renderInner=function(t){var e=(0,E.U2)(this.get("region"),"style",{}),n=((0,E.U2)(this.get("text"),"style",{}),this.get("lineLength")||0),r=this.get("points");if(r.length){var i=$r(r),o=[];o.push(["M",r[0].x,i.minY-n]),r.forEach((function(t){o.push(["L",t.x,t.y])})),o.push(["L",r[r.length-1].x,r[r.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,A.pi)({path:o},e)});var a=(0,A.pi)({id:this.getElementId("text"),name:"annotation-text",x:(i.minX+i.maxX)/2,y:i.minY-n},this.get("text"));xi(t,a)}},e}(li),Pi=Ii,Li=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),r=this.get("end"),i=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,E.S6)(this.get("shapes"),(function(t,n){var r=t.get("type"),o=(0,E.d9)(t.attr());e.adjustShapeAttrs(o),e.addShape(i,{id:e.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:o})}));var o=Hr({start:n,end:r});i.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(li),Ri=Li,Ni=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"annotation",type:"shape",draw:E.ZT})},e.prototype.renderInner=function(t){var e=this.get("render");(0,E.mf)(e)&&e(t)},e}(li),ji=Ni;function zi(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(i){}finally{r=void 0===r?n:r}return r}function Ui(t,e){var n=zi(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}function Vi(t,e){var n=Ui(t,e),r=parseFloat(zi(t,"borderLeftWidth"))||0,i=parseFloat(zi(t,"paddingLeft"))||0,o=parseFloat(zi(t,"paddingRight"))||0,a=parseFloat(zi(t,"borderRightWidth"))||0,s=parseFloat(zi(t,"marginRight"))||0,l=parseFloat(zi(t,"marginLeft"))||0;return n+r+a+i+o+l+s}function Hi(t,e){var n=zi(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}function $i(t,e){var n=Hi(t,e),r=parseFloat(zi(t,"borderTopWidth"))||0,i=parseFloat(zi(t,"paddingTop"))||0,o=parseFloat(zi(t,"paddingBottom"))||0,a=parseFloat(zi(t,"borderBottomWidth"))||0,s=parseFloat(zi(t,"marginTop"))||0,l=parseFloat(zi(t,"marginBottom"))||0;return n+r+a+i+o+s+l}var Gi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){var t=this.get("container");t.style.display="",this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=this.getContainer(),n=t?"auto":"none";e.style.pointerEvents=n,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Gr(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Ur(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if((0,E.UM)(t)){t=this.createDom();var e=this.get("parent");(0,E.HD)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else(0,E.HD)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?(0,E.b$)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&Vr(e,n)){var r=t[n];G(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){(0,E.S6)(e,(function(e,n){var r=t.getElementsByClassName(n);(0,E.S6)(r,(function(t){G(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");G(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return $(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){(0,E.wH)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(ri),Wi=Gi,qi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");Ur(t);var n=(0,E.mf)(e)?e(t):e;if((0,E.kK)(n))t.appendChild(n);else if((0,E.HD)(n)||(0,E.hj)(n)){var r=$(""+n);r&&t.appendChild(r)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,r=e.y,i=this.get("alignX"),o=this.get("alignY"),a=this.get("offsetX"),s=this.get("offsetY"),l=Vi(t),u=$i(t),c={x:n,y:r};"middle"===i?c.x-=Math.round(l/2):"right"===i&&(c.x-=Math.round(l)),"middle"===o?c.y-=Math.round(u/2):"bottom"===o&&(c.y-=Math.round(u)),a&&(c.x+=a),s&&(c.y+=s),G(t,{position:"absolute",left:c.x+"px",top:c.y+"px",zIndex:this.get("zIndex")})},e}(Wi),Xi=qi;function Zi(t,e,n){var r=e+"Style",i=null;return(0,E.S6)(n,(function(e,n){t[n]&&e[r]&&(i||(i={}),(0,E.CD)(i,e[r]))})),i}var Yi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:wi.lineColor}},tickLine:{style:{lineWidth:1,stroke:wi.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:wi.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:wi.textColor,fontFamily:wi.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:wi.textColor,textBaseline:"middle",fontFamily:wi.fontFamily,textAlign:"center"},iconStyle:{fill:wi.descriptionIconFill,stroke:wi.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:wi.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){(0,E.CD)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return(0,E.S6)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);(0,E.S6)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return(0,E.hX)(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this,r=n.getSideVector(e,t);return{x:t.x+r[0],y:t.y+r[1]}},e.prototype.getTextAnchor=function(t){var e;return(0,E.vQ)(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return(0,E.vQ)(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,E.CD)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,o=r.length,a=1,s=t.length;return s>=2&&(a=t[1].value-t[0].value),(0,E.S6)(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-a/2));var s=e.getSidePoint(r,o);n.push({startPoint:r,tickValue:t.value,endPoint:s,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),r=n.count,i=t.length;if(i>=2)for(var o=0;o<i-1;o++)for(var a=t[o],s=t[o+1],l=0;l<r;l++){var u=(l+1)/(r+1),c=(1-u)*a.tickValue+u*s.tickValue,h=this.getTickPoint(c),f=this.getSidePoint(h,n.length);e.push({startPoint:h,endPoint:f,tickValue:c,id:"sub-"+a.id+"-"+l})}return e},e.prototype.getTickLineAttrs=function(t,e,n,r){var i=this.get(e).style,o={points:[t.startPoint,t.endPoint]},a=(0,E.U2)(this.get("theme"),["tickLine","style"],{});i=(0,E.mf)(i)?(0,E.CD)({},a,i(o,n,r)):i;var s=t.startPoint,l=t.endPoint;return(0,A.pi)({x1:s.x,y1:s.y,x2:l.x,y2:l.y},i)},e.prototype.drawTick=function(t,e,n,r,i){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+n,attrs:this.getTickLineAttrs(t,n,r,i)})},e.prototype.drawTickLines=function(t){var e=this,n=this.get("ticks"),r=this.get("subTickLine"),i=this.getTickLineItems(n),o=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),a=this.get("tickLine");if((0,E.S6)(i,(function(n,r){if(a.displayWithLabel){var s=e.getElementId("label-"+n.tickId);t.findById(s)&&e.drawTick(n,o,"tickLine",r,i)}else e.drawTick(n,o,"tickLine",r,i)})),r){var s=this.getSubTickLineItems(i);(0,E.S6)(s,(function(t,n){e.drawTick(t,o,"subTickLine",n,s)}))}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");(0,E.S6)(e,(function(e){e.point=t.getTickPoint(e.value),(0,E.UM)(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var n=this.get("ticks");(0,E.S6)(n,(function(n){e.applyTickStates(n,t)}))},e.prototype.optimizeTicks=function(){var t=this.get("optimize"),e=this.get("ticks");if(t&&t.enable&&t.threshold>0){var n=(0,E.dp)(e);if(n>t.threshold){var r=Math.ceil(n/t.threshold),i=e.filter((function(t,e){return e%r===0}));this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var r=this.get("label"),i=r.offset,o=r.offsetX,a=r.offsetY,s=r.rotate,l=r.formatter,u=this.getSidePoint(t.point,i),c=this.getSideVector(i,u),h=l?l(t.name,t,e):t.name,f=r.style;f=(0,E.mf)(f)?(0,E.U2)(this.get("theme"),["label","style"],{}):f;var p=(0,E.CD)({x:u.x+o,y:u.y+a,text:h,textAlign:this.getTextAnchor(c),textBaseline:this.getTextBaseline(c)},f);return s&&(p.matrix=_r(u,s)),p},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),r=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,E.S6)(n,(function(t,i){e.addShape(r,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,n),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(r);var i=r.getChildren(),o=(0,E.U2)(this.get("theme"),["label","style"],{}),a=this.get("label"),s=a.style,l=a.formatter;if((0,E.mf)(s)){var u=i.map((function(t){return(0,E.U2)(t.get("delegateObject"),"tick")}));(0,E.S6)(i,(function(t,e){var n=t.get("delegateObject").tick,r=l?l(n.name,n,e):n.name,i=(0,E.CD)({},o,s(r,e,u));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,i=t.spacing,o=void 0===i?0:i,a=t.autoRotate,s=e.fontSize,l=.5;"start"===n?l=0:"end"===n&&(l=1);var u=this.getTickPoint(l),c=this.getSidePoint(u,r||o+s/2),h=(0,E.CD)({x:c.x,y:c.y,text:t.text},e),f=t.rotate,p=f;if((0,E.UM)(f)&&a){var d=this.getAxisVector(u),g=[1,0];p=yr.Dg(d,g,!0)}if(p){var v=_r(c,p);h.matrix=v}return h},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),r=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,r,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var r=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),i=e.getBBox(),o=i.maxX,a=i.maxY,s=i.height,l=this.get("title").iconStyle,u=4,c=s/2,h=c/6,f=o+u,p=a-s/2,d=[f+c,p-c],g=d[0],v=d[1],m=[g+c,v+c],y=m[0],b=m[1],x=[g,b+c],w=x[0],C=x[1],S=[f,v+c],E=S[0],k=S[1],D=[f+c,p-s/4],F=D[0],M=D[1],O=[F,M+h],T=O[0],B=O[1],_=[T,B+h],I=_[0],P=_[1],L=[I,P+3*c/4],R=L[0],N=L[1];this.addShape(r,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,A.pi)({path:[["M",g,v],["A",c,c,0,0,1,y,b],["A",c,c,0,0,1,w,C],["A",c,c,0,0,1,E,k],["A",c,c,0,0,1,g,v],["M",F,M],["L",T,B],["M",I,P],["L",R,N]],lineWidth:h,matrix:n},l)}),this.addShape(r,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:f,y:p-s/2,width:s,height:s,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){var n=this.getItemStates(t);if(n.length){var r=this.get("tickStates"),i=this.getElementId("label-"+t.id),o=e.findById(i);if(o){var a=Zi(t,"label",r);a&&o.attr(a)}var s=this.getElementId("tickline-"+t.id),l=e.findById(s);if(l){var u=Zi(t,"tickLine",r);u&&l.attr(u)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var s=Zi(t,"label",n);s&&i.attr(s)}if(a){var l=Zi(t,"tickLine",n);l&&a.attr(l)}}else i&&i.attr(r.style),a&&a.attr(o.style)},e}(li),Qi=Yi;function Ki(t,e,n,r){var i=e.getChildren(),o=!1;return(0,E.S6)(i,(function(e){var i=bi(t,e,n,r);o=o||i})),o}function Ji(){return eo}function to(t,e,n){return Ki(t,e,n,"head")}function eo(t,e,n){return Ki(t,e,n,"tail")}function no(t,e,n){return Ki(t,e,n,"middle")}function ro(t){var e=t.attr("matrix");return e&&1!==e[0]}function io(t){var e=ro(t)?Pr(t.attr("matrix")):0;return e%360}function oo(t,e,n,r){var i=!1,o=io(e),a=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),s=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var l=Math.abs(Math.cos(o));i=Zr(l,0,Math.PI/180)?s.width+r>a:s.height/l+r>a}else{l=Math.abs(Math.sin(o));i=Zr(l,0,Math.PI/180)?s.width+r>a:s.height/l+r>a}return i}function ao(t,e,n,r){var i=(null===r||void 0===r?void 0:r.minGap)||0,o=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!o.length)return!1;var a=!1;n&&o.reverse();for(var s=o.length,l=o[0],u=l,c=1;c<s;c++){var h=o[c],f=(h.getBBox(),oo(t,u,h,i));f?(h.hide(),a=!0):u=h}return a}function so(t,e,n){var r=(null===n||void 0===n?void 0:n.minGap)||0,i=e.getChildren().slice();if(i.length<2)return!1;var o=!1,a=i[0],s=a.getBBox(),l=i[1],u=i.length,c=io(a),h=t?Math.abs(l.attr("y")-a.attr("y")):Math.abs(l.attr("x")-a.attr("x")),f=0;if(t){var p=Math.abs(Math.cos(c));if(Zr(p,0,Math.PI/180)){var d=mi(i);f=(d+r)/h}else f=(s.height/p+r)/h}else{p=Math.abs(Math.sin(c));if(Zr(p,0,Math.PI/180)){d=mi(i);f=(d+r)/h}else f=(s.height/p+r)/h}if(f>1){f=Math.ceil(f);for(var g=0;g<u;g++)g%f!==0&&(i[g].hide(),o=!0)}return o}function lo(){return fo}function uo(t,e,n,r){return ao(t,e,!1,r)}function co(t,e,n,r){return ao(t,e,!0,r)}function ho(t,e,n,r){var i=(null===r||void 0===r?void 0:r.minGap)||0,o=e.getChildren().slice();if(o.length<=2)return!1;for(var a=!1,s=o.length,l=o[0],u=o[s-1],c=l,h=1;h<s-1;h++){var f=o[h],p=(f.getBBox(),oo(t,c,f,i));p?(f.hide(),a=!0):c=f}var d=oo(t,c,u,i);return d&&(c.hide(),a=!0),a}function fo(t,e,n,r){var i=so(t,e,r);return ao(t,e,!1)&&(i=!0),i}function po(t,e,n,r){var i=e.getChildren().slice(),o=so(t,e,r);if(i.length>2){var a=i[0],s=i[i.length-1];a.get("visible")||(a.show(),ao(t,e,!1,r)&&(o=!0)),s.get("visible")||(s.show(),ao(t,e,!0,r)&&(o=!0))}return o}function go(t,e){(0,E.S6)(t,(function(t){var n=t.attr("x"),r=t.attr("y"),i=_r({x:n,y:r},e);t.attr("matrix",i)}))}function vo(t,e,n,r){var i=e.getChildren();if(!i.length)return!1;if(!t&&i.length<2)return!1;var o=mi(i),a=!1;if(t)a=!!n&&o>n;else{var s=Math.abs(i[1].attr("x")-i[0].attr("x"));a=o>s}if(a){var l=r(n,o);go(i,l)}return a}function mo(){return yo}function yo(t,e,n,r){return vo(t,e,n,(function(){return(0,E.hj)(r)?r:t?wi.verticalAxisRotate:wi.horizontalAxisRotate}))}function bo(t,e,n){return vo(t,e,n,(function(e,n){if(!e)return t?wi.verticalAxisRotate:wi.horizontalAxisRotate;if(t)return-Math.acos(e/n);var r=0;return e>n?r=Math.PI/4:(r=Math.asin(e/n),r>Math.PI/4&&(r=Math.PI/4)),r}))}var xo,wo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),r=t.prototype.getInnerLayoutBBox.call(this),i=Math.min(e.x,n.x,r.x),o=Math.min(e.y,n.y,r.y),a=Math.max(e.x,n.x,r.maxX),s=Math.max(e.y,n.y,r.maxY);return{x:i,y:o,minX:i,minY:o,maxX:a,maxY:s,width:a-i,height:s-o}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return(0,E.vQ)(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return(0,E.vQ)(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this,n=e.get("start"),r=e.get("end"),i=r.x-n.x,o=r.y-n.y;return{x:n.x+i*t,y:n.y+o*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=Sr.Fv([0,0],e),r=this.get("verticalFactor"),i=[n[1],-1*n[0]];return Sr.bA([0,0],i,t*r)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),r=this.isHorizontal();if(n||r){var i=this.get("label"),o=this.get("title"),a=this.get("verticalLimitLength"),s=i.offset,l=a,u=0,c=0;o&&(u=o.style.fontSize,c=o.spacing),l&&(l=l-s-c-u);var h=this.get("overlapOrder");if((0,E.S6)(h,(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,l)})),o&&(0,E.UM)(o.offset)){var f=t.getCanvasBBox(),p=n?f.width:f.height;o.offset=s+p+c+u/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||(0,E.UM)(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,o=this.isVertical(),a=!1,s=l[t];if(!0===e){this.get("label");a=s.getDefault()(o,n,r)}else if((0,E.mf)(e))a=e(o,n,r);else if((0,E.Kn)(e)){var u=e;s[u.type]&&(a=s[u.type](o,n,r,u.cfg))}else s[e]&&(a=s[e](o,n,r));if("autoRotate"===t){if(a){var c=n.getChildren(),h=this.get("verticalFactor");(0,E.S6)(c,(function(t){var e=t.attr("textAlign");if("center"===e){var n=h>0?"end":"start";t.attr("textAlign",n)}}))}}else if("autoHide"===t){var f=n.getChildren().slice(0);(0,E.S6)(f,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(Qi),Co=wo,So=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,r=this.get("radius"),i=r,o=this.get("startAngle"),a=this.get("endAngle"),s=[];if(Math.abs(a-o)===2*Math.PI)s=[["M",e,n-i],["A",r,i,0,1,1,e,n+i],["A",r,i,0,1,1,e,n-i],["Z"]];else{var l=this.getCirclePoint(o),u=this.getCirclePoint(a),c=Math.abs(a-o)>Math.PI?1:0,h=o>a?0:1;s=[["M",e,n],["L",l.x,l.y],["A",r,i,0,c,h,u.x,u.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=this.get("endAngle"),r=e+(n-e)*t;return this.getCirclePoint(r)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y],i=this.get("verticalFactor"),o=Sr.kE(r);return Sr.bA(r,r,i*t/o),r},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||(0,E.UM)(e.rotate)},e.prototype.processOverlap=function(t){var e=this,n=this.get("label"),r=this.get("title"),i=this.get("verticalLimitLength"),o=n.offset,a=i,s=0,l=0;r&&(s=r.style.fontSize,l=r.spacing),a&&(a=a-o-l-s);var u=this.get("overlapOrder");if((0,E.S6)(u,(function(r){n[r]&&e.canProcessOverlap(r)&&e.autoProcessOverlap(r,n[r],t,a)})),r&&(0,E.UM)(r.offset)){var c=t.getCanvasBBox().height;r.offset=o+c+l+s/2}},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,o=!1,a=l[t];if(r>0)if(!0===e)o=a.getDefault()(!1,n,r);else if((0,E.mf)(e))o=e(!1,n,r);else if((0,E.Kn)(e)){var s=e;a[s.type]&&(o=a[s.type](!1,n,r,s.cfg))}else a[e]&&(o=a[e](!1,n,r));if("autoRotate"===t){if(o){var u=n.getChildren(),c=this.get("verticalFactor");(0,E.S6)(u,(function(t){var e=t.attr("textAlign");if("center"===e){var n=c>0?"end":"start";t.attr("textAlign",n)}}))}}else if("autoHide"===t){var h=n.getChildren().slice(0);(0,E.S6)(h,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(Qi),Ao=So,Eo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:wi.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:wi.textColor,textAlign:"center",textBaseline:"middle",fontFamily:wi.fontFamily}},textBackground:{padding:5,style:{stroke:wi.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,r=e.autoRotate,i=e.content;if(!(0,E.UM)(i)){var o=this.getTextPoint(),a=null;if(r){var s=this.getRotateAngle();a=_r(o,s)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,A.pi)((0,A.pi)((0,A.pi)({},o),{text:i,matrix:a}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line"),r=n.style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,A.pi)({path:e},r)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),r=this.get("textBackground");if(r&&n){var i=n.getBBox(),o=zr(r.padding),a=r.style,s=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,A.pi)({x:i.x-o[3],y:i.y-o[0],width:i.width+o[1]+o[3],height:i.height+o[0]+o[2],matrix:n.attr("matrix")},a)});s.toBack()}},e}(li),ko=Eo,Do=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text").position,i=Math.atan2(n.y-e.y,n.x-e.x),o="start"===r?i-Math.PI/2:i+Math.PI/2;return o},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,o=r.offset;return ti(e,n,i,o)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(ko),Fo=Do,Mo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle,r=this.get("text").position,i="start"===r?e+Math.PI/2:n-Math.PI/2;return i},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,r=this.getLocation(),i=r.center,o=r.radius,a=r.startAngle,s=r.endAngle,l="start"===e?a:s,u=this.getRotateAngle()-Math.PI,c=qr(i,o,l),h=Math.cos(u)*n,f=Math.sin(u)*n;return{x:c.x+h,y:c.y+f}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,o=null;if(i-r===2*Math.PI){var a=e.x,s=e.y;o=[["M",a,s-n],["A",n,n,0,1,1,a,s+n],["A",n,n,0,1,1,a,s-n],["Z"]]}else{var l=qr(e,n,r),u=qr(e,n,i),c=Math.abs(i-r)>Math.PI?1:0,h=r>i?0:1;o=[["M",l.x,l.y],["A",n,n,0,c,h,u.x,u.y]]}return o},e}(ko),Oo=Mo,To="g2-crosshair",Bo=To+"-line",_o=To+"-text",Io=(xo={},xo[""+To]={position:"relative"},xo[""+Bo]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},xo[""+_o]={position:"absolute",color:wi.textColor,fontFamily:wi.fontFamily},xo),Po=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+To+'"></div>',crosshairTpl:'<div class="'+Bo+'"></div>',textTpl:'<span class="'+_o+'">{content}</span>',domStyles:null,containerClassName:To,defaultStyles:Io,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=$(e);t.appendChild(n),this.applyStyle(Bo,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,o=r.offset;return ti(e,n,i,o)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var r=this.getContainer(),i=(0,E.ng)(this.get("textTpl"),t);e=$(i),r.appendChild(e),this.applyStyle(_o,e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),r=Math.min(e.x,n.x),i=Math.min(e.y,n.y);this.isVertical(e,n)?G(t,{width:"1px",height:Jr(Math.abs(n.y-e.y))}):G(t,{height:"1px",width:Jr(Math.abs(n.x-e.x))}),G(t,{top:Jr(i),left:Jr(r)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,r=this.getTextPoint();switch(e){case"center":r.x=r.x-n/2;break;case"right":r.x=r.x-n;case"left":break}G(t,{top:Jr(r.y),left:Jr(r.x)})}},e.prototype.updateInner=function(e){(0,E.wH)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(Wi),Lo=Po,Ro=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:wi.lineColor}}}})},e.prototype.getLineType=function(){var t=this.get("line")||this.get("defaultCfg").line;return t.type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),r=e.slice(0).reverse(),i=this.getGridPath(r,!0),o=this.get("closed");return o?n=n.concat(i):(i[0][0]="L",n=n.concat(i),n.push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),r=this.get("items"),i=this.get("alternateColor"),o=null;(0,E.S6)(r,(function(a,s){var l=a.id||s;if(n){var u=e.getPathStyle();u=(0,E.mf)(u)?u(a,s,r):u;var c=e.getElementId("line-"+l),h=e.getGridPath(a.points);e.addShape(t,{type:"path",name:"grid-line",id:c,attrs:(0,E.CD)({path:h},u)})}if(i&&s>0){var f=e.getElementId("region-"+l),p=s%2===0;if((0,E.HD)(i))p&&e.drawAlternateRegion(f,t,o.points,a.points,i);else{var d=p?i[1]:i[0];e.drawAlternateRegion(f,t,o.points,a.points,d)}}o=a}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var o=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:o,fill:i}})},e}(li),No=Ro;function jo(t,e,n,r){var i=n-t,o=r-e;return Math.sqrt(i*i+o*o)}var zo,Uo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n=this.getLineType(),r=this.get("closed"),i=[];if(t.length)if("circle"===n){var o=this.get("center"),a=t[0],s=jo(o.x,o.y,a.x,a.y),l=e?0:1;r?(i.push(["M",o.x,o.y-s]),i.push(["A",s,s,0,0,l,o.x,o.y+s]),i.push(["A",s,s,0,0,l,o.x,o.y-s]),i.push(["Z"])):(0,E.S6)(t,(function(t,e){0===e?i.push(["M",t.x,t.y]):i.push(["A",s,s,0,0,l,t.x,t.y])}))}else(0,E.S6)(t,(function(t,e){0===e?i.push(["M",t.x,t.y]):i.push(["L",t.x,t.y])})),r&&i.push(["Z"]);return i},e}(No),Vo=Uo,Ho=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return(0,E.S6)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(No),$o=Ho,Go=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),r=this.get("maxHeight"),i=e.width,o=e.height;return n&&(i=Math.min(i,n)),r&&(o=Math.min(o,r)),Gr(e.minX,e.minY,i,o)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+r})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),r=zr(e.padding),i=(0,A.pi)({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},e.style),o=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:i});o.toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),r=n.spacing,i=n.style,o=n.text,a=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,A.pi)({text:o,x:e.x,y:e.y},i)}),s=a.getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+r})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=zr(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(li),Wo=Go,qo={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},Xo={fill:wi.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:wi.fontFamily,fontWeight:"normal",lineHeight:12},Zo="navigation-arrow-right",Yo="navigation-arrow-left",Qo={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},Ko=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:wi.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:wi.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:qo,itemName:{spacing:16,style:Xo},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:Xo,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:wi.uncheckedColor},markerStyle:{fill:wi.uncheckedColor,stroke:wi.uncheckedColor}},inactive:{nameStyle:{fill:wi.uncheckedColor},markerStyle:{opacity:.2}}}}})},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("items")},e.prototype.setItems=function(t){this.update({items:t})},e.prototype.updateItem=function(t,e){(0,E.CD)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n;var r=this.getElementByLocalId("item-"+t.id);if(r){var i=this.getItems(),o=i.indexOf(t),a=this.createOffScreenGroup(),s=this.drawItem(t,o,this.getItemHeight(),a);this.updateElements(s,r),this.clearUpdateStatus(r)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),n=[];return(0,E.S6)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);(0,E.S6)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return(0,E.hX)(n,(function(n){return e.hasState(n,t)}))},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){var t=this.get("items");(0,E.S6)(t,(function(t){t.id||(t.id=t.name)}))},e.prototype.drawItems=function(t){var e=this,n=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),r=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),i=this.getItemHeight(),o=this.get("itemWidth"),a=this.get("itemSpacing"),s=this.get("itemMarginBottom"),l=this.get("currentPoint"),u=l.x,c=l.y,h=this.get("layout"),f=this.get("items"),p=!1,d=0,g=this.get("maxWidth"),v=this.get("maxHeight");(0,E.S6)(f,(function(t,n){var f=e.drawItem(t,n,i,r),m=f.getBBox(),y=o||m.width;y>d&&(d=y),"horizontal"===h?(g&&g<l.x+y-u&&(p=!0,l.x=u,l.y+=i+s),e.moveElementTo(f,l),l.x+=y+a):(v&&v<l.y+i+s-c&&(p=!0,l.x+=d+a,l.y=c,d=0),e.moveElementTo(f,l),l.y+=i+s)})),p&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=u,this.startY=c,this.adjustNavigation(t,r))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=(this.get("itemName")||{}).style;if((0,E.mf)(e)){var n=this.getItems();n.forEach((function(r,i){var o=(0,A.pi)((0,A.pi)({},Xo),e(r,i,n)).fontSize;t<o&&(t=o)}))}else e&&(t=e.fontSize)}return t},e.prototype.drawMarker=function(t,e,n,r){var i=(0,A.pi)((0,A.pi)((0,A.pi)({x:0,y:r/2},e.style),{symbol:(0,E.U2)(n.marker,"symbol","circle")}),(0,E.U2)(n.marker,"style",{})),o=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:i}),a=o.getBBox();o.attr("x",a.width/2);var s=o.attr(),l=s.stroke,u=s.fill;return l&&o.set("isStroke",!0),u&&o.set("isFill",!0),o},e.prototype.drawItemText=function(t,e,n,r,i,o,a){var s=n.formatter,l=n.style,u=(0,A.pi)((0,A.pi)({x:o,y:i/2,text:s?s(r[e],r,a):r[e]},Xo),(0,E.mf)(l)?l(r,a,this.getItems()):l);return this.addShape(t,{type:"text",id:this.getElementId("item-"+r.id+"-"+e),name:"legend-item-"+e,attrs:u})},e.prototype.drawRadio=function(t,e,n,r,i){var o,a,s=e.style||{},l=null!==(o=s.r)&&void 0!==o?o:r/2,u=3.6*l/8,c=[i+l,r/2-l],h=c[0],f=c[1],p=[h+l,f+l],d=p[0],g=p[1],v=[h,g+l],m=v[0],y=v[1],b=[i,f+l],x=b[0],w=b[1],C=n.showRadio,S=(0,A.pi)((0,A.pi)({path:[["M",h,f],["A",l,l,0,0,1,d,g],["L",d-u,g],["L",d,g],["A",l,l,0,0,1,m,y],["L",m,y-u],["L",m,y],["A",l,l,0,0,1,x,w],["L",x+u,w],["L",x,w],["A",l,l,0,0,1,h,f],["L",h,f+u]],stroke:"#000000",fill:"#ffffff"},s),{opacity:C?null!==(a=null===s||void 0===s?void 0:s.opacity)&&void 0!==a?a:.45:0}),E=this.addShape(t,{type:"path",id:this.getElementId("item-"+n.id+"-radio"),name:"legend-item-radio",attrs:S});return E.set("tip",e.tip),E},e.prototype.drawItem=function(t,e,n,r){var i="item-"+t.id,o=this.addGroup(r,{name:"legend-item-container",id:this.getElementId("item-container-"+i),delegateObject:{item:t,index:e}}),a=this.addGroup(o,{name:"legend-item",id:this.getElementId(i),delegateObject:{item:t,index:e}}),s=this.get("marker"),l=this.get("itemName"),u=this.get("itemValue"),c=this.get("itemBackground"),h=this.get("radio"),f=this.getLimitItemWidth(),p=0;if(s){var d=this.drawMarker(a,s,t,n),g=s.spacing,v=(0,E.U2)(t,["marker","spacing"]);(0,E.hj)(v)&&(g=v),p=d.getBBox().maxX+g}if(l){var m=this.drawItemText(a,"name",l,t,n,p,e);f&&bi(!0,m,(0,E.uZ)(f-p,0,f)),p=m.getBBox().maxX+l.spacing}if(u){var y=this.drawItemText(a,"value",u,t,n,p,e);f&&(u.alignRight?(y.attr({textAlign:"right",x:f}),bi(!0,y,(0,E.uZ)(f-p,0,f),"head")):bi(!0,y,(0,E.uZ)(f-p,0,f))),p=y.getBBox().maxX+u.spacing}if(h&&this.drawRadio(a,h,t,n,p),c){var b=a.getBBox(),x=this.addShape(a,{type:"rect",name:"legend-item-background",id:this.getElementId(i+"-background"),attrs:(0,A.pi)({x:0,y:0,width:b.width,height:n},c.style)});x.toBack()}return this.applyItemStates(t,a),a},e.prototype.adjustNavigation=function(t,e){var n=this,r=this.startX,i=this.startY,o=this.get("layout"),a=e.findAll((function(t){return"legend-item"===t.get("name")})),s=this.get("maxWidth"),l=this.get("maxHeight"),u=this.get("itemWidth"),c=this.get("itemSpacing"),h=this.getItemHeight(),f=(0,E.b$)({},qo,this.get("pageNavigator")),p=this.drawNavigation(t,o,"00/00",f),d=p.getBBox(),g={x:r,y:i},v=1,m=0,y=0,b=0,x=this.get("itemMarginBottom");if("horizontal"===o){var w=this.get("maxRow")||1,C=h+(1===w?0:x);this.pageHeight=C*w,(0,E.S6)(a,(function(t){var e=t.getBBox(),i=u||e.width;(m&&m<g.x+i+c||s<g.x+i+c+d.width)&&(1===v&&(m=g.x+c,n.pageWidth=m,n.moveElementTo(p,{x:s-c-d.width-d.minX,y:g.y+h/2-d.height/2-d.minY})),v+=1,g.x=r,g.y+=C),n.moveElementTo(t,g),t.getParent().setClip({type:"rect",attrs:{x:g.x,y:g.y,width:i+c,height:h}}),g.x+=i+c}))}else{(0,E.S6)(a,(function(t){var e=t.getBBox();e.width>y&&(y=e.width)})),b=y,y+=c,s&&(y=Math.min(s,y),b=Math.min(s,b)),this.pageWidth=y,this.pageHeight=l-Math.max(d.height,h+x);var S=Math.floor(this.pageHeight/(h+x));(0,E.S6)(a,(function(t,e){0!==e&&e%S===0&&(v+=1,g.x+=y,g.y=i),n.moveElementTo(t,g),t.getParent().setClip({type:"rect",attrs:{x:g.x,y:g.y,width:y,height:h}}),g.y+=h+x})),this.totalPagesCnt=v,this.moveElementTo(p,{x:r+b/2-d.width/2-d.minX,y:l-d.height-d.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(v/this.get("maxRow")):this.totalPagesCnt=v,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(p),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,r){var i={x:0,y:0},o=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),a=(0,E.U2)(r.marker,"style",{}),s=a.size,l=void 0===s?12:s,u=(0,A._T)(a,["size"]),c=this.drawArrow(o,i,Yo,"horizontal"===e?"up":"left",l,u);c.on("click",this.onNavigationBack);var h=c.getBBox();i.x+=h.width+2;var f=this.addShape(o,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,A.pi)({x:i.x,y:i.y+l/2,text:n,textBaseline:"middle"},(0,E.U2)(r.text,"style"))}),p=f.getBBox();i.x+=p.width+2;var d=this.drawArrow(o,i,Zo,"horizontal"===e?"down":"right",l,u);return d.on("click",this.onNavigationAfter),o},e.prototype.updateNavigation=function(t){var e=(0,E.b$)({},qo,this.get("pageNavigator")),n=e.marker.style,r=n.fill,i=n.opacity,o=n.inactiveFill,a=n.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,l=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),u=t?t.findById(this.getElementId(Yo)):this.getElementByLocalId(Yo),c=t?t.findById(this.getElementId(Zo)):this.getElementByLocalId(Zo);l.attr("text",s),u.attr("opacity",1===this.currentPageIndex?a:i),u.attr("fill",1===this.currentPageIndex?o:r),u.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),c.attr("opacity",this.currentPageIndex===this.totalPagesCnt?a:i),c.attr("fill",this.currentPageIndex===this.totalPagesCnt?o:r),c.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var h=u.getBBox().maxX+2;l.attr("x",h),h+=l.getBBox().width+2,this.updateArrowPath(c,{x:h,y:0})},e.prototype.drawArrow=function(t,e,n,r,i,o){var a=e.x,s=e.y,l=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:(0,A.pi)({size:i,direction:r,path:[["M",a+i/2,s],["L",a,s+i],["L",a+i,s+i],["Z"]],cursor:"pointer"},o)});return l.attr("matrix",_r({x:a+i/2,y:s+i/2},Qo[r])),l},e.prototype.updateArrowPath=function(t,e){var n=e.x,r=e.y,i=t.attr(),o=i.size,a=i.direction,s=_r({x:n+o/2,y:r+o/2},Qo[a]);t.attr("path",[["M",n+o/2,r],["L",n,r+o],["L",n+o,r+o],["Z"]]),t.attr("matrix",s)},e.prototype.getCurrentNavigationMatrix=function(){var t=this,e=t.currentPageIndex,n=t.pageWidth,r=t.pageHeight,i=this.get("layout"),o="horizontal"===i?{x:0,y:r*(1-e)}:{x:n*(1-e),y:0};return Ir(o)},e.prototype.applyItemStates=function(t,e){var n=this.getItemStates(t),r=n.length>0;if(r){var i=e.getChildren(),o=this.get("itemStates");(0,E.S6)(i,(function(e){var n=e.get("name"),r=n.split("-")[2],i=Zi(t,r,o);i&&(e.attr(i),"marker"!==r||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(Wo),Jo=Ko,ta=1.4,ea=.4,na=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:wi.textColor,textBaseline:"middle",fontFamily:wi.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:wi.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue(),i=r[1];i<n&&(i=n),e.setValue([n,i])})),t.on("legend-handler-max:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue(),i=r[0];i>n&&(i=n),e.setValue([i,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var r=e.getValueByCanvasPoint(n.x,n.y),i=e.getValueByCanvasPoint(t.x,t.y),o=e.getCurrentValue(),a=o[1]-o[0],s=e.getRange(),l=i-r;l<0?o[0]+l>s.min?e.setValue([o[0]+l,o[1]+l]):e.setValue([s.min,s.min+a]):l>0&&(l>0&&o[1]+l<s.max?e.setValue([o[0]+l,o[1]+l]):e.setValue([s.max-a,s.max])),n={x:t.x,y:t.y}}})),t.on("legend-track:dragend",(function(t){n=null}))},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var n=this.get("label"),r=n.style,i=n.align,o=n.formatter,a=this.get(t),s=this.getLabelAlignAttrs(t,i),l="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(l),name:"legend-label-"+t,attrs:(0,A.pi)((0,A.pi)({x:0,y:0,text:(0,E.mf)(o)?o(a):a},r),s)})},e.prototype.getLabelAlignAttrs=function(t,e){var n=this.isVertical(),r="center",i="middle";return n?(r="start",i="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(i="top",r="min"===t?"start":"end"):(r="start",i="middle"),{textAlign:r,textBaseline:i}},e.prototype.getRailPath=function(t,e,n,r){var i=this.get("rail"),o=i.size,a=i.defaultLength,s=i.type,l=this.isVertical(),u=a,c=n,h=r;c||(c=l?o:u),h||(h=l?u:o);var f=[];return"color"===s?(f.push(["M",t,e]),f.push(["L",t+c,e]),f.push(["L",t+c,e+h]),f.push(["L",t,e+h]),f.push(["Z"])):(f.push(["M",t+c,e]),f.push(["L",t+c,e+h]),f.push(["L",t,e+h]),f.push(["Z"])),f},e.prototype.drawRail=function(t){var e=this.get("rail"),n=e.style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:(0,A.pi)({path:this.getRailPath(0,0)},n)})},e.prototype.getTrackColor=function(t){var e,n=t.length;if(!n)return null;if(1===n)return t[0];e=this.isVertical()?"l(90)":"l(0)";for(var r=0;r<n;r++){var i=r/(n-1);e+=" "+i+":"+t[r]}return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t),n=e.attr("path");return(0,E.d9)(n)},e.prototype.getClipTrackAttrs=function(t){var e,n,r,i,o=this.getCurrentValue(),a=o[0],s=o[1],l=this.getRailBBox(t),u=this.getPointByValue(a,t),c=this.getPointByValue(s,t),h=this.isVertical();return h?(e=l.minX,n=u.y,r=l.width,i=c.y-u.y):(e=u.x,n=l.minY,r=c.x-u.x,i=l.height),{x:e,y:n,width:r,height:i}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors"),r=this.getTrackPath(t);return(0,E.CD)({path:r,fill:this.getTrackColor(n)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),n=this.getElementId("track"),r=e.findById(n),i=r.getClip(),o=this.getClipTrackAttrs(t);i?i.attr(o):r.setClip({type:"rect",attrs:o})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),n=t.findById(e),r=this.getTrackAttrs(t);n?n.attr(r):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:r})},e.prototype.getPointByValue=function(t,e){var n=this.getRange(),r=n.min,i=n.max,o=(t-r)/(i-r),a=this.getRailBBox(e),s=this.isVertical(),l={x:0,y:0};return s?(l.x=a.minX+a.width/2,l.y=Wr(a.minY,a.maxY,o)):(l.x=Wr(a.minX,a.maxX,o),l.y=a.minY+a.height/2),l},e.prototype.getRailShape=function(t){var e=t||this.get("group");return e.findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){var e=this.getRailShape(t),n=e.getBBox();return n},e.prototype.getRailCanvasBBox=function(){var t=this.get("group"),e=t.findById(this.getElementId("rail")),n=e.getCanvasBBox();return n},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var n,r=this.getRange(),i=r.min,o=r.max,a=this.getRailCanvasBBox(),s=this.isVertical(),l=this.get("step");n=s?(e-a.minY)/a.height:(t-a.minX)/a.width;var u=Wr(i,o,n);if(l){var c=Math.round((u-i)/l);u=i+c*l}return u>o&&(u=o),u<i&&(u=i),u},e.prototype.getCurrentValue=function(){var t=this.get("value");if(!t){var e=this.get("values");return e?[Math.max(Math.min.apply(Math,(0,A.pr)(e,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,(0,A.pr)(e,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[0],r=e[1];this.resetHandler(t,"min",n),this.resetHandler(t,"max",r)},e.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),r=[],i=t.size,o=e.x,a=e.y,s=i*ta,l=i/2,u=i/6;if(n){var c=o+s*ea;r.push(["M",o,a]),r.push(["L",c,a+l]),r.push(["L",o+s,a+l]),r.push(["L",o+s,a-l]),r.push(["L",c,a-l]),r.push(["Z"]),r.push(["M",c,a+u]),r.push(["L",o+s-2,a+u]),r.push(["M",c,a-u]),r.push(["L",o+s-2,a-u])}else{var h=a+s*ea;r.push(["M",o,a]),r.push(["L",o-l,h]),r.push(["L",o-l,a+s]),r.push(["L",o+l,a+s]),r.push(["L",o+l,h]),r.push(["Z"]),r.push(["M",o-u,h]),r.push(["L",o-u,a+s-2]),r.push(["M",o+u,h]),r.push(["L",o+u,a+s-2])}return r},e.prototype.resetHandler=function(t,e,n){var r=this.getPointByValue(n,t),i=this.get("handler"),o=this.getHandlerPath(i,r),a=this.getElementId("handler-"+e),s=t.findById(a),l=this.isVertical();s?s.attr("path",o):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:a,attrs:(0,A.pi)((0,A.pi)({path:o},i.style),{cursor:l?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),n=t.findById(this.getElementId("label-min")),r=t.findById(this.getElementId("label-max")),i=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,r,e,i):this.fixedHorizontal(n,r,e,i)},e.prototype.fitRailLength=function(t,e,n,r){var i=this.isVertical(),o=i?"height":"width",a=this.get("label"),s=a.align,l=a.spacing,u=this.get("max"+(0,E.jC)(o));if(u){var c="rail"===s?n[o]+t[o]+e[o]+2*l:n[o],h=c-u;h>0&&this.changeRailLength(r,o,n[o]-h)}},e.prototype.changeRailLength=function(t,e,n){var r,i=t.getBBox();r="height"===e?this.getRailPath(i.x,i.y,i.width,n):this.getRailPath(i.x,i.y,n,i.height),t.attr("path",r)},e.prototype.changeRailPosition=function(t,e,n){var r=t.getBBox(),i=this.getRailPath(e,n,r.width,r.height);t.attr("path",i)},e.prototype.fixedHorizontal=function(t,e,n,r){var i=this.get("label"),o=i.align,a=i.spacing,s=n.getBBox(),l=t.getBBox(),u=e.getBBox(),c=s.height;this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===o?(t.attr({x:r.x,y:r.y+c/2}),this.changeRailPosition(n,r.x+l.width+a,r.y),e.attr({x:r.x+l.width+s.width+2*a,y:r.y+c/2})):"top"===o?(t.attr({x:r.x,y:r.y}),e.attr({x:r.x+s.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+l.height+a)):(this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x,y:r.y+s.height+a}),e.attr({x:r.x+s.width,y:r.y+s.height+a}))},e.prototype.fixedVertail=function(t,e,n,r){var i=this.get("label"),o=i.align,a=i.spacing,s=n.getBBox(),l=t.getBBox(),u=e.getBBox();if(this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===o)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+l.height+a),e.attr({x:r.x,y:r.y+l.height+s.height+2*a});else if("right"===o)t.attr({x:r.x+s.width+a,y:r.y}),this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x+s.width+a,y:r.y+s.height});else{var c=Math.max(l.width,u.width);t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+c+a,r.y),e.attr({x:r.x,y:r.y+s.height})}},e}(Wo),ra=na,ia="g2-tooltip",oa="g2-tooltip-title",aa="g2-tooltip-list",sa="g2-tooltip-list-item",la="g2-tooltip-marker",ua="g2-tooltip-value",ca="g2-tooltip-name",ha="g2-tooltip-crosshair-x",fa="g2-tooltip-crosshair-y",pa=(zo={},zo[""+ia]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:wi.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},zo[""+oa]={marginBottom:"4px"},zo[""+aa]={margin:"0px",listStyleType:"none",padding:"0px"},zo[""+sa]={listStyleType:"none",marginBottom:"4px"},zo[""+la]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},zo[""+ua]={display:"inline-block",float:"right",marginLeft:"30px"},zo[""+ha]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},zo[""+fa]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},zo);function da(t,e,n,r,i){var o={left:t<i.x,right:t+n>i.x+i.width,top:e<i.y,bottom:e+r>i.y+i.height};return o}function ga(t,e,n,r,i,o){var a=t,s=e;switch(o){case"left":a=t-r-n,s=e-i/2;break;case"right":a=t+n,s=e-i/2;break;case"top":a=t-r/2,s=e-i-n;break;case"bottom":a=t-r/2,s=e+n;break;default:a=t+n,s=e-i-n;break}return{x:a,y:s}}function va(t,e,n,r,i,o,a){var s=ga(t,e,n,r,i,o);if(a){var l=da(s.x,s.y,r,i,a);"auto"===o?(l.right&&(s.x=Math.max(0,t-r-n)),l.top&&(s.y=Math.max(0,e-i-n))):"top"===o||"bottom"===o?(l.left&&(s.x=a.x),l.right&&(s.x=a.x+a.width-r),"top"===o&&l.top&&(s.y=e+n),"bottom"===o&&l.bottom&&(s.y=e-i-n)):(l.top&&(s.y=a.y),l.bottom&&(s.y=a.y+a.height-i),"left"===o&&l.left&&(s.x=t+n),"right"===o&&l.right&&(s.x=t-r-n))}return s}function ma(t,e){var n=!1;return(0,E.S6)(e,(function(e){if((0,E.wH)(t,e))return n=!0,!1})),n}var ya=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+ia+'"><div class="'+oa+'"></div><ul class="'+aa+'"></ul></div>',itemTpl:'<li class="'+sa+'" data-index={index}>\n <span class="'+la+'" style="background:{color}"></span>\n <span class="'+ca+'">{name}</span>:\n <span class="'+ua+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+ha+'"></div>',yCrosshairTpl:'<div class="'+fa+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:ia,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:pa})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),G(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),G(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");n&&G(n,{display:e}),r&&G(r,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){this.get("customContent")?this.renderCustomContent():(ma(e,["title","showTitle"])&&this.resetTitle(),(0,E.wH)(e,"items")&&this.renderItems()),t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),r=this.get("offset"),i=this.getOffset(),o=i.offsetX,a=i.offsetY,s=this.get("position"),l=this.get("region"),u=this.getContainer(),c=this.getBBox(),h=c.width,f=c.height;l&&(t=Hr(l));var p=va(e,n,r,h,f,s,t);G(u,{left:Jr(p.x+o),top:Jr(p.y+a)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));t=(0,E.kK)(n)?n:$(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(oa)[0],n=t.getElementsByClassName(aa)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title"),e=this.get("showTitle");e&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=Hr(t),r=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),i&&(i.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),r&&(r.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),r=this.get(t);G(n,"x"===t?{left:Jr(r),top:Jr(e.y),height:Jr(e.height)}:{top:Jr(r),left:Jr(e.x),width:Jr(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",r="CROSSHAIR_"+t.toUpperCase(),i=c[r],o=this.get(e),a=this.get("parent");return o||(o=$(this.get(n)),this.applyStyle(i,o),a.appendChild(o),this.set(e,o)),o},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&((0,E.S6)(t,(function(t){var r=Vt.toCSSGradient(t.color),i=(0,A.pi)((0,A.pi)({},t),{color:r}),o=(0,E.ng)(e,i),a=$(o);n.appendChild(a)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&Ur(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(Wi),ba=ya,xa={opacity:0},wa={stroke:"#C5C5C5",strokeOpacity:.85},Ca={fill:"#CACED4",opacity:.85},Sa=n(39499);function Aa(t){return(0,E.UI)(t,(function(t,e){var n=0===e?"M":"L",r=t[0],i=t[1];return[n,r,i]}))}function Ea(t){return Aa(t)}function ka(t){if(t.length<=2)return Ea(t);var e=[];(0,E.S6)(t,(function(t){(0,E.Xy)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=(0,Sa.e9)(e,!1),r=(0,E.YM)(t),i=r[0],o=r[1];return n.unshift(["M",i,o]),n}function Da(t,e,n,r){void 0===r&&(r=!0);var i=new en({values:t}),o=new oe({values:(0,E.UI)(t,(function(t,e){return e}))}),a=(0,E.UI)(t,(function(t,r){return[o.scale(r)*e,n-i.scale(t)*n]}));return r?ka(a):Ea(a)}function Fa(t,e){var n=new en({values:t}),r=n.max<0?n.max:Math.max(0,n.min);return e-n.scale(r)*e}function Ma(t,e,n,r){var i=(0,A.pr)(t),o=Fa(r,n);return i.push(["L",e,o]),i.push(["L",0,o]),i.push(["Z"]),i}var Oa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:xa,lineStyle:wa,areaStyle:Ca})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.data,o=e.smooth,a=e.isArea,s=e.backgroundStyle,l=e.lineStyle,u=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,A.pi)({x:0,y:0,width:n,height:r},s)});var c=Da(i,n,r,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,A.pi)({path:c},l)}),a){var h=Ma(c,n,r,i);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:(0,A.pi)({path:h},u)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(li),Ta={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},Ba=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"handler",x:0,y:0,width:10,height:24,style:Ta})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,o=i.fill,a=i.stroke,s=i.radius,l=i.opacity,u=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:o,stroke:a,radius:s,opacity:l,cursor:u}});var c=1/3*n,h=2/3*n,f=1/4*r,p=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:f,x2:c,y2:p,stroke:a,cursor:u}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:f,x2:h,y2:p,stroke:a,cursor:u}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(li),_a={fill:"#416180",opacity:.05},Ia={fill:"#5B8FF9",opacity:.15,cursor:"move"},Pa=10,La={width:Pa,height:24},Ra={textBaseline:"middle",fill:"#000",opacity:.45},Na="sliderchange",ja=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=(0,E.U2)(r,"touches.0.pageX",r.pageX),e.prevY=(0,E.U2)(r,"touches.0.pageY",r.pageY);var i=e.getContainerDOM();i.addEventListener("mousemove",e.onMouseMove),i.addEventListener("mouseup",e.onMouseUp),i.addEventListener("mouseleave",e.onMouseUp),i.addEventListener("touchmove",e.onMouseMove),i.addEventListener("touchend",e.onMouseUp),i.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,r=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var i=(0,E.U2)(t,"touches.0.pageX",t.pageX),o=(0,E.U2)(t,"touches.0.pageY",t.pageY),a=i-e.prevX,s=e.adjustOffsetRange(a/n);e.updateStartEnd(s),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=i,e.prevY=o,e.draw(),e.emit(Na,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:r,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return(0,A.ZT)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),r=this.get("end"),i=(0,E.uZ)(n,t,e),o=(0,E.uZ)(r,t,e);this.get("isInit")||n===i&&r===o||this.setValue([i,o])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if((0,E.kJ)(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:(0,E.uZ)(t[0],e.min,e.max),end:(0,E.uZ)(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:_a,foregroundStyle:Ia,handlerStyle:La,textStyle:Ra}})},e.prototype.update=function(e){var n=e.start,r=e.end,i=(0,A.pi)({},e);(0,E.UM)(n)||(i.start=(0,E.uZ)(n,0,1)),(0,E.UM)(r)||(i.end=(0,E.uZ)(r,0,1)),t.prototype.update.call(this,i),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",(0,E.uZ)(this.get("start"),0,1)),this.set("end",(0,E.uZ)(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,n=(e.start,e.end,e.width),r=e.height,i=e.trendCfg,o=void 0===i?{}:i,a=e.minText,s=e.maxText,l=e.backgroundStyle,u=void 0===l?{}:l,c=e.foregroundStyle,h=void 0===c?{}:c,f=e.textStyle,p=void 0===f?{}:f,d=(0,E.b$)({},Ta,this.cfg.handlerStyle);(0,E.dp)((0,E.U2)(o,"data"))&&(this.trend=this.addComponent(t,(0,A.pi)({component:Oa,id:this.getElementId("trend"),x:0,y:0,width:n,height:r},o))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,A.pi)({x:0,y:0,width:n,height:r},u)});this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:(0,A.pi)({y:r/2,textAlign:"right",text:a,silent:!1},p)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,A.pi)({y:r/2,textAlign:"left",text:s,silent:!1},p)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,A.pi)({y:0,height:r},h)});var g=(0,E.U2)(d,"width",Pa),v=(0,E.U2)(d,"height",24);this.minHandler=this.addComponent(t,{component:Ba,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(r-v)/2,width:g,height:v,cursor:"ew-resize",style:d}),this.maxHandler=this.addComponent(t,{component:Ba,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(r-v)/2,width:g,height:v,cursor:"ew-resize",style:d})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var r=this.cfg,i=r.start,o=r.end,a=r.width,s=r.minText,l=r.maxText,u=r.handlerStyle,c=r.height,h=i*a,f=o*a;this.trend&&(this.trend.update({width:a,height:c}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",h),t.attr("width",f-h);var p=(0,E.U2)(u,"width",Pa);e.attr("text",s),n.attr("text",l);var d=this._dodgeText([h,f],e,n),g=d[0],v=d[1];this.minHandler&&(this.minHandler.update({x:h-p/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,E.S6)(g,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:f-p/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,E.S6)(v,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":var i=0-n,o=1-n;return Math.min(o,Math.max(i,t));case"maxHandler":i=0-r,o=1-r;return Math.min(o,Math.max(i,t));case"foreground":i=0-n,o=1-r;return Math.min(o,Math.max(i,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":r+=t;break;case"foreground":n+=t,r+=t;break}this.set("start",n),this.set("end",r)},e.prototype._dodgeText=function(t,e,n){var r,i,o=this.cfg,a=o.handlerStyle,s=o.width,l=2,u=(0,E.U2)(a,"width",Pa),c=t[0],h=t[1],f=!1;c>h&&(r=[h,c],c=r[0],h=r[1],i=[n,e],e=i[0],n=i[1],f=!0);var p=e.getBBox(),d=n.getBBox(),g=p.width>c-l?{x:c+u/2+l,textAlign:"left"}:{x:c-u/2-l,textAlign:"right"},v=d.width>s-h-l?{x:h-u/2-l,textAlign:"right"}:{x:h+u/2+l,textAlign:"left"};return f?[v,g]:[g,v]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(li);function za(t,e,n){if(t){if("function"===typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"===typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}var Ua={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},Va={default:Ua,hover:{thumbColor:"rgba(0,0,0,0.2)"}},Ha=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=E.ZT,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var r=t?(0,E.U2)(n.originalEvent,"touches.0.clientX"):n.clientX,i=t?(0,E.U2)(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?r:i,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[za(t,"touchmove",e.onMouseMove),za(t,"touchend",e.onMouseUp),za(t,"touchcancel",e.onMouseUp)]:[za(t,"mousemove",e.onMouseMove),za(t,"mouseup",e.onMouseUp),za(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,r=n.isHorizontal,i=n.thumbOffset;t.preventDefault();var o=e.isMobile?(0,E.U2)(t,"touches.0.clientX"):t.clientX,a=e.isMobile?(0,E.U2)(t,"touches.0.clientY"):t.clientY,s=r?o:a,l=s-e.startPos;e.startPos=s,e.updateThumbOffset(i+l)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,r=n.isHorizontal,i=n.x,o=n.y,a=n.thumbLen,s=e.getContainerDOM(),l=s.getBoundingClientRect(),u=t.clientX,c=t.clientY,h=r?u-l.left-i-a/2:c-l.top-o-a/2,f=e.validateRange(h);e.updateThumbOffset(f)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return(0,A.ZT)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),r=(0,E.uZ)(n,t,e);n===r||this.get("isInit")||this.setValue(r)},e.prototype.getRange=function(){var t=this.get("minLimit")||0,e=this.get("maxLimit")||1;return{min:t,max:e}},e.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,E.uZ)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return(0,E.uZ)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,A.pi)((0,A.pi)({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:Va})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.renderTrackShape=function(t){var e=this.cfg,n=e.trackLen,r=e.theme,i=void 0===r?{default:{}}:r,o=(0,E.b$)({},Va,i).default,a=o.lineCap,s=o.trackColor,l=o.size,u=(0,E.U2)(this.cfg,"size",l),c=this.get("isHorizontal")?{x1:0+u/2,y1:u/2,x2:n-u/2,y2:u/2,lineWidth:u,stroke:s,lineCap:a}:{x1:u/2,y1:0+u/2,x2:u/2,y2:n-u/2,lineWidth:u,stroke:s,lineCap:a};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:c})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,r=e.thumbLen,i=e.theme,o=(0,E.b$)({},Va,i).default,a=o.size,s=o.lineCap,l=o.thumbColor,u=(0,E.U2)(this.cfg,"size",a),c=this.get("isHorizontal")?{x1:n+u/2,y1:u/2,x2:n+r-u/2,y2:u/2,lineWidth:u,stroke:l,lineCap:s,cursor:"default"}:{x1:u/2,y1:n+u/2,x2:u/2,y2:n+r-u/2,lineWidth:u,stroke:l,lineCap:s,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:c})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp);var e=t.findById(this.getElementId("track"));e.on("click",this.onTrackClick);var n=t.findById(this.getElementId("thumb"));n.on("mouseover",this.onThumbMouseOver),n.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,r=e.trackLen,i=t;return t+n>r?i=r-n:t+n<n&&(i=0),i},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,r=e.isHorizontal,i=e.thumbLen,o=e.size,a=this.validateRange(t);if(a!==n){var s=this.getElementByLocalId("thumb");r?s.attr({x1:a+o/2,x2:a+i-o/2}):s.attr({y1:a+o/2,y2:a+i-o/2}),this.emitOffsetChange(a)}},e.prototype.emitOffsetChange=function(t){var e=this.cfg,n=e.thumbOffset,r=e.trackLen,i=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:(0,E.uZ)(t/(r-i),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},e}(li),$a=Co,Ga=Ao,Wa=$o,qa=Vo,Xa=Jo,Za=ra,Ya=ba;function Qa(t){if((0,E.xb)(t))return null;var e=t[0].x,n=t[0].x,r=t[0].y,i=t[0].y;return(0,E.S6)(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,r=r>t.y?t.y:r,i=i<t.y?t.y:i})),{minX:e,maxX:n,minY:r,maxY:i,centerX:(e+n)/2,centerY:(r+i)/2}}function Ka(t){return 1===Array.from(new Set(t)).length}function Ja(t){return((0,E.VV)(t)+(0,E.Fp)(t))/2}function ts(t,e,n,r){return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}function es(t,e,n,r,i,o){void 0===o&&(o=0);var a=ts(t,e,n,r),s=ts(t,e,n,i),l=ts(t,e,o,r),u=ts(t,e,o,i);if(i-r===2*Math.PI){var c=ts(t,e,n,r+Math.PI),h=ts(t,e,o,r+Math.PI),f=[["M",a.x,a.y],["A",n,n,0,1,1,c.x,c.y],["A",n,n,0,1,1,s.x,s.y],["M",l.x,l.y]];return o&&(f.push(["A",o,o,0,1,0,h.x,h.y]),f.push(["A",o,o,0,1,0,u.x,u.y])),f.push(["M",a.x,a.y]),f.push(["Z"]),f}var p=i-r<=Math.PI?0:1,d=[["M",a.x,a.y],["A",n,n,0,p,1,s.x,s.y],["L",u.x,u.y]];return o&&d.push(["A",o,o,0,p,0,l.x,l.y]),d.push(["L",a.x,a.y]),d.push(["Z"]),d}function ns(t,e,n,r,i){var o=ts(t,e,n,r),a=ts(t,e,n,i);if((0,E.vQ)(i-r,2*Math.PI)){var s=ts(t,e,n,r+Math.PI);return[["M",o.x,o.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,1,o.x,o.y],["A",n,n,0,1,0,s.x,s.y],["A",n,n,0,1,0,o.x,o.y],["Z"]]}var l=i-r<=Math.PI?0:1;return[["M",o.x,o.y],["A",n,n,0,l,1,a.x,a.y]]}function rs(t,e){var n,r,i=t.points,o=Qa(i),a=e.startAngle,s=e.endAngle,l=s-a;return e.isTransposed?(n=o.maxY*l,r=o.minY*l):(n=o.maxX*l,r=o.minX*l),n+=a,r+=a,{startAngle:r,endAngle:n}}function is(t,e){if((0,E.hj)(t)&&(0,E.hj)(e))return[t,e];if(t=t,e=e,Ka(t)||Ka(e))return[Ja(t),Ja(e)];var n,r,i=-1,o=0,a=0,s=t.length-1,l=0;while(++i<t.length)n=s,s=i,l+=r=t[n]*e[s]-t[s]*e[n],o+=(t[n]+t[s])*r,a+=(e[n]+e[s])*r;return l*=3,[o/l,a/l]}function os(t,e){var n=t.attr(),r=e.attr();return(0,E.S6)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r}function as(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}function ss(t,e,n){if((0,E.HD)(t))return t.padEnd(e,n);if((0,E.kJ)(t)){var r=t.length;if(r<e)for(var i=e-r,o=0;o<i;o++)t.push(n)}return t}function ls(t,e){return"object"===typeof t&&e.forEach((function(e){delete t[e]})),t}function us(t,e,n){var r,i;void 0===e&&(e=[]),void 0===n&&(n=new Map);try{for(var o=(0,A.XA)(t),a=o.next();!a.done;a=o.next()){var s=a.value;n.has(s)||(e.push(s),n.set(s,!0))}}catch(l){r={error:l}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return e}var cs=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=t,this.y=e,this.height=r,this.width=n}return t.fromRange=function(e,n,r,i){return new t(e,n,r-e,i-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return(0,E.S6)(t,(function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y})),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return(0,E.S6)(t,(function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y})),n},t.prototype.cut=function(e,n){var r=e.width,i=e.height;switch(n){case m.TOP:case m.TOP_LEFT:case m.TOP_RIGHT:return t.fromRange(this.minX,this.minY+i,this.maxX,this.maxY);case m.RIGHT:case m.RIGHT_TOP:case m.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-r,this.maxY);case m.BOTTOM:case m.BOTTOM_LEFT:case m.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-i);case m.LEFT:case m.LEFT_TOP:case m.LEFT_BOTTOM:return t.fromRange(this.minX+r,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=(0,A.CR)(e,4),r=n[0],i=n[1],o=n[2],a=n[3];return new t(this.x+a,this.y+r,this.width-a-i,this.height-r-o)},t.prototype.expand=function(e){var n=(0,A.CR)(e,4),r=n[0],i=n[1],o=n[2],a=n[3];return new t(this.x-a,this.y-r,this.width+a+i,this.height+r+o)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.collide=function(t){return this.minX<t.maxX&&this.maxX>t.minX&&this.minY<t.maxY&&this.maxY>t.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();function hs(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}function fs(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function ps(t){if(t.isPolar){var e=t.startAngle,n=t.endAngle;return n-e===2*Math.PI}return!1}function ds(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function gs(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,i=t.end;n=as(e.x,r.x,i.x)&&as(e.y,r.y,i.y)}else{var o=t.invert(e);n=as(o.x,0,1)&&as(o.y,0,1)}return n}function vs(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function ms(t,e){void 0===e&&(e=0);var n,r=t.start,i=t.end,o=t.getWidth(),a=t.getHeight();if(t.isPolar){var s=t.startAngle,l=t.endAngle,u=t.getCenter(),c=t.getRadius();return{type:"path",startState:{path:es(u.x,u.y,c+e,s,s)},endState:function(t){var n=(l-s)*t+s,r=es(u.x,u.y,c+e,s,n);return{path:r}},attrs:{path:es(u.x,u.y,c+e,s,l)}}}return n=t.isTransposed?{height:a+2*e}:{width:o+2*e},{type:"rect",startState:{x:r.x-e,y:i.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:a+2*e},endState:n,attrs:{x:r.x-e,y:i.y-e,width:o+2*e,height:a+2*e}}}function ys(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),o=t.getHeight(),a=Math.min(n.x,r.x),s=Math.min(n.y,r.y);return cs.fromRange(a-e,s-e,a+i+e,s+o+e)}var bs=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function xs(t){var e="linear";return bs.test(t)?e="timeCat":(0,E.HD)(t)&&(e="cat"),e}function ws(t,e,n,r){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&P.includes(n)&&["interval"].includes(r)||t.isCategory?"cat":t.type}function Cs(t,e,n){var r=e||[];if((0,E.hj)(t)||(0,E.UM)((0,E.Wx)(r,t))&&(0,E.xb)(n)){var i=mn("identity");return new i({field:t.toString(),values:[t]})}var o=(0,E.I)(r,t),a=(0,E.U2)(n,"type",xs(o[0])),s=mn(a);return new s((0,A.pi)({field:t,values:o},n))}function Ss(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);t.change(n)}}function As(t){return t.alias||t.field}function Es(t,e,n){var r,i=t.values,o=i.length;if(1===o)r=[.5,1];else{var a=1,s=0;ps(e)?e.isTransposed?(a=(0,E.U2)(n,"widthRatio.multiplePie",1/1.3),s=1/o*a,r=[s/2,1-s/2]):r=[0,1-1/o]:(s=1/o/2,r=[s,1-s])}return r}function ks(t){var e=t.values.filter((function(t){return!(0,E.UM)(t)&&!isNaN(t)}));return Math.max.apply(Math,(0,A.ev)((0,A.ev)([],(0,A.CR)(e),!1),[(0,E.UM)(t.max)?-1/0:t.max],!1))}function Ds(t){var e,n;switch(t){case m.TOP:e={x:0,y:1},n={x:1,y:1};break;case m.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case m.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case m.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function Fs(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function Ms(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=Ds(e):t.isPolar&&(n=Fs(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}}function Os(t){var e=t.start,n=t.end;return e.x===n.x}function Ts(t,e){var n=t.start,r=t.end,i=Os(t);return i?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1}function Bs(t,e){var n=(0,E.U2)(t,["components","axis"],{});return(0,E.b$)({},(0,E.U2)(n,["common"],{}),(0,E.b$)({},(0,E.U2)(n,[e],{})))}function _s(t,e,n){var r=(0,E.U2)(t,["components","axis"],{});return(0,E.b$)({},(0,E.U2)(r,["common","title"],{}),(0,E.b$)({},(0,E.U2)(r,[e,"title"],{})),n)}function Is(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,o=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),a=[o.x-r.x,o.y-r.y],s=[1,0],l=o.y>r.y?Sr.EU(a,s):-1*Sr.EU(a,s),u=l+(e.end-e.start),c=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2));return{center:r,radius:c,startAngle:l,endAngle:u}}function Ps(t,e){return(0,E.jn)(t)?!1!==t&&{}:(0,E.U2)(t,[e])}function Ls(t,e){return(0,E.U2)(t,"position",e)}function Rs(t,e){return(0,E.U2)(e,["title","text"],As(t))}var Ns=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=(0,E.b$)({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,r=t.padding,i=void 0===r?this.cfg.padding:r,o=this.view.createView({region:e,padding:i});o.data(n||[]),t.view=o,this.beforeEachView(o,t);var a=this.cfg.eachView;return a&&a(o,t),this.afterEachView(o,t),o},t.prototype.createContainer=function(){var t=this.view.getLayer(v.FORE);return t.addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;(0,E.S6)(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.parseSpacing=function(){var t=this.view.viewBBox,e=t.width,n=t.height,r=this.cfg.spacing;return r.map((function(t,r){return(0,E.hj)(t)?t/(0===r?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],r={};return(0,E.S6)(t,(function(t){var i=t[e];(0,E.UM)(i)||r[i]||(n.push(i),r[i]=!0)})),n},t.prototype.getRegion=function(t,e,n,r){var i=(0,A.CR)(this.parseSpacing(),2),o=i[0],a=i[1],s=(1+o)/(0===e?1:e)-o,l=(1+a)/(0===t?1:t)-a,u={x:(s+o)*n,y:(l+a)*r},c={x:u.x+s,y:u.y+l};return{start:u,end:c}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){var t=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:t}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),r=n.coordinate,i=t.geometries,o=(0,E.U2)(r,"type","rect");if("rect"===o&&i.length){(0,E.UM)(n.axes)&&(n.axes={});var a=n.axes,s=(0,A.CR)(i[0].getXYFields(),2),l=s[0],u=s[1],c=Ps(a,l),h=Ps(a,u);!1!==c&&(n.axes[l]=this.getXAxisOption(l,a,c,e)),!1!==h&&(n.axes[u]=this.getYAxisOption(u,a,h,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return(0,E.yW)(t,(function(t){var n=t.field,r=t.value;return!(!(0,E.UM)(r)&&n)||e[n]===r}))}},t}(),js={},zs=function(t){return js[(0,E.vl)(t)]},Us=function(t,e){js[(0,E.vl)(t)]=e},Vs=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){(0,E.f0)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),Hs=Vs,$s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(Hs),Gs=$s,Ws={};function qs(t,e){var n=Ws[t],r=null;if(n){var i=n.ActionClass,o=n.cfg;r=new i(e,o),r.name=t,r.init()}return r}function Xs(t){var e=Ws[t];return(0,E.U2)(e,"ActionClass")}function Zs(t,e,n){Ws[t]={ActionClass:e,cfg:n}}function Ys(t,e){var n=new Gs(e);return n.callback=t,n.name="callback",n}function Qs(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var o=t[r];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}function Ks(t,e){for(var n=[t[0]],r=1,i=t.length;r<i;r+=2){var o=e.convert({x:t[r],y:t[r+1]});n.push(o.x,o.y)}return n}function Js(t,e){var n=e.isTransposed,r=t[1],i=t[6],o=t[7],a=e.convert({x:i,y:o}),s=n?0:1;return["A",r,r,0,0,s,a.x,a.y]}function tl(t,e,n){var r=n.isTransposed,i=n.startAngle,o=n.endAngle,a="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},s={x:e[1],y:e[2]},l=[],u=r?"y":"x",c=Math.abs(s[u]-a[u])*(o-i),h=s[u]>=a[u]?1:0,f=c>Math.PI?1:0,p=n.convert(s),d=ds(n,p);if(d>=.5)if(c===2*Math.PI){var g={x:(s.x+a.x)/2,y:(s.y+a.y)/2},v=n.convert(g);l.push(["A",d,d,0,f,h,v.x,v.y]),l.push(["A",d,d,0,f,h,p.x,p.y])}else l.push(["A",d,d,0,f,h,p.x,p.y]);return l}function el(t){(0,E.S6)(t,(function(e,n){var r=e;if("a"===r[0].toLowerCase()){var i=t[n-1],o=t[n+1];o&&"a"===o[0].toLowerCase()?i&&"l"===i[0].toLowerCase()&&(i[0]="M"):i&&"a"===i[0].toLowerCase()&&o&&"l"===o[0].toLowerCase()&&(o[0]="M")}}))}var nl=function(t,e,n,r){var i,o,a,s,l,u,c,h,f=[],p=!!r;if(p){i=(0,A.CR)(r,2),s=i[0],l=i[1];for(var d=0,g=t.length;d<g;d++){var v=t[d];s=Sr.VV([0,0],s,v),l=Sr.Fp([0,0],l,v)}}d=0;for(var m=t.length;d<m;d++){v=t[d];if(0!==d||n)if(d!==m-1||n){o=t[n?d?d-1:m-1:d-1],a=t[n?(d+1)%m:d+1];var y=[0,0];y=Sr.lu(y,a,o),y=Sr.bA(y,y,e);var b=Sr.TE(v,o),x=Sr.TE(v,a),w=b+x;0!==w&&(b/=w,x/=w);var C=Sr.bA([0,0],y,-b),S=Sr.bA([0,0],y,x);c=Sr.IH([0,0],v,C),u=Sr.IH([0,0],v,S),u=Sr.VV([0,0],u,Sr.Fp([0,0],a,v)),u=Sr.Fp([0,0],u,Sr.VV([0,0],a,v)),C=Sr.lu([0,0],u,v),C=Sr.bA([0,0],C,-b/x),c=Sr.IH([0,0],v,C),c=Sr.VV([0,0],c,Sr.Fp([0,0],o,v)),c=Sr.Fp([0,0],c,Sr.VV([0,0],o,v)),S=Sr.lu([0,0],v,c),S=Sr.bA([0,0],S,x/b),u=Sr.IH([0,0],v,S),p&&(c=Sr.Fp([0,0],c,s),c=Sr.VV([0,0],c,l),u=Sr.Fp([0,0],u,s),u=Sr.VV([0,0],u,l)),f.push(h),f.push(c),h=u}else c=v,f.push(h),f.push(c);else h=v}return n&&f.push(f.shift()),f};function rl(t,e,n){for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);var s,l,u,c=nl(i,.4,r,n),h=i.length,f=[];for(o=0;o<h-1;o++)s=c[2*o],l=c[2*o+1],u=i[o+1],f.push(["C",s[0],s[1],l[0],l[1],u[0],u[1]]);return r&&(s=c[h],l=c[h+1],u=i[0],f.push(["C",s[0],s[1],l[0],l[1],u[0],u[1]])),f}function il(t,e){return Qs(t,e)}function ol(t,e,n){var r=[],i=t[0],o=null;if(t.length<=2)return il(t,e);for(var a=0,s=t.length;a<s;a++){var l=t[a];o&&o.x===l.x&&o.y===l.y||(r.push(l.x),r.push(l.y),o=l)}var u=n||[[0,0],[1,1]],c=rl(r,e,u);return c.unshift(["M",i.x,i.y]),c}function al(t,e){var n=[];return(0,E.S6)(e,(function(e){var r=e[0];switch(r.toLowerCase()){case"m":case"l":case"c":n.push(Ks(e,t));break;case"a":n.push(Js(e,t));break;case"z":default:n.push(e);break}})),n}function sl(t,e){var n,r,i,o,a=[];return(0,E.S6)(e,(function(s,l){var u=s[0];switch(u.toLowerCase()){case"m":case"c":case"q":a.push(Ks(s,t));break;case"l":n=e[l-1],r=s,i=t.isTransposed,o=i?n[n.length-2]===r[1]:n[n.length-1]===r[2],o?a=a.concat(tl(n,r,t)):a.push(Ks(s,t));break;case"a":a.push(Js(s,t));break;case"z":default:a.push(s);break}})),el(a),a}function ll(t,e){var n=t.event,r=n.target,i=r.getCanvasBBox();return i.width>=e||i.height>=e?i:null}function ul(t,e){var n=t.event,r=n.target,i=r.getCanvasBBox();return i.width>=e||i.height>=e?r.attr("path"):null}function cl(t){var e,n=t.event,r=n.target;return r&&(e=r.get("element")),e}function hl(t){var e,n=t.event,r=n.target;return r&&(e=r.get("delegateObject")),e}function fl(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function pl(t){return t&&t.component&&t.component.isList()}function dl(t){return t&&t.component&&t.component.isSlider()}function gl(t){var e=t.event,n=e.target;return n&&"mask"===n.get("name")}function vl(t,e){var n=t.event.target;if("path"===n.get("type")){var r=ul(t,e);if(!r)return;return El(t.view,r)}var i=ll(t,e);return i?Sl(t.view,i):null}function ml(t,e,n){var r=ll(t,n);if(!r)return null;var i=t.view,o=Bl(i,e,{x:r.x,y:r.y}),a=Bl(i,e,{x:r.maxX,y:r.maxY}),s={minX:o.x,minY:o.y,maxX:a.x,maxY:a.y};return Sl(e,s)}function yl(t){var e=t.geometries,n=[];return(0,E.S6)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&(0,E.S6)(t.views,(function(t){n=n.concat(yl(t))})),n}function bl(t,e,n){var r=yl(t);return r.filter((function(t){return wl(t,e)===n}))}function xl(t,e){var n=t.geometries,r=[];return(0,E.S6)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));r=r.concat(n)})),r}function wl(t,e){var n,r=t.getModel(),i=r.data;return n=(0,E.kJ)(i)?i[0][e]:i[e],n}function Cl(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function Sl(t,e){var n=yl(t),r=[];return(0,E.S6)(n,(function(t){var n=t.shape,i=n.getCanvasBBox();Cl(e,i)&&r.push(t)})),r}function Al(t){var e=[];return(0,E.S6)(t,(function(t){var n=t[0];if("A"!==n)for(var r=1;r<t.length;r+=2)e.push([t[r],t[r+1]]);else{var i=t.length;e.push([t[i-2],t[i-1]])}})),e}function El(t,e){var n=yl(t),r=Al(e),i=n.filter((function(t){var e,n=t.shape;if("path"===n.get("type"))e=Al(n.attr("path"));else{var i=n.getCanvasBBox();e=hs(i)}return(0,Sa.Wq)(r,e)}));return i}function kl(t){return t.getComponents().map((function(t){return t.component}))}function Dl(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function Fl(t,e){if(t.length<=2)return il(t,!1);var n=t[0],r=[];(0,E.S6)(t,(function(t){r.push(t.x),r.push(t.y)}));var i=rl(r,e,null);return i.unshift(["M",n.x,n.y]),i}function Ml(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y}function Ol(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function Tl(t,e){var n=t.getCoordinate();return n.invert(e)}function Bl(t,e,n){var r=Tl(t,n);return e.getCoordinate().convert(r)}function _l(t,e,n,r){var i=!1;return(0,E.S6)(t,(function(t){if(t[n]===e[n]&&t[r]===e[r])return i=!0,!1})),i}function Il(t,e){var n=t.getScaleByField(e);return!n&&t.views&&(0,E.S6)(t.views,(function(t){if(n=Il(t,e),n)return!1})),n}var Pl=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;if(t){if(t.target instanceof HTMLElement){var e=this.view.getCanvas(),n=e.getPointByClient(t.clientX,t.clientY);return n}return{x:t.x,y:t.y}}return null},t.prototype.getCurrentShape=function(){return(0,E.U2)(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=kl(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&Ml(r,n):Ml(r,n)}))},t.prototype.destroy=function(){(0,E.S6)(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}(),Ll=Pl,Rl=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}(),Nl=Rl;function jl(t,e,n){var r=t.split(":"),i=r[0],o=e.getAction(i)||qs(i,e);if(!o)throw new Error("There is no action named ".concat(i));var a=r[1];return{action:o,methodName:a,arg:n}}function zl(t){var e=t.action,n=t.methodName,r=t.arg;if(!e[n])throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(n));e[n](r)}var Ul={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},Vl=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return(0,A.ZT)(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;(0,E.S6)(this.steps,(function(e,n){(0,E.S6)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)}))}))},e.prototype.clearEvents=function(){var t=this;(0,E.S6)(this.steps,(function(e,n){(0,E.S6)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.offEvent(e.trigger,r)}))}))},e.prototype.initContext=function(){var t=this.view,e=new Ll(t);this.context=e;var n=this.steps;(0,E.S6)(n,(function(t){(0,E.S6)(t,(function(t){if((0,E.mf)(t.action))t.actionObject={action:Ys(t.action,e),methodName:"execute"};else if((0,E.HD)(t.action))t.actionObject=jl(t.action,e,t.arg);else if((0,E.kJ)(t.action)){var n=t.action,r=(0,E.kJ)(t.arg)?t.arg:[t.arg];t.actionObject=[],(0,E.S6)(n,(function(n,i){t.actionObject.push(jl(n,e,r[i]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===Ul.SHOW_ENABLE)return!0;if(t===Ul.PROCESSING)return e===Ul.START;if(t===Ul.START)return e!==Ul.PROCESSING;if(t===Ul.END)return e===Ul.PROCESSING||e===Ul.START;if(t===Ul.ROLLBACK){if(n[Ul.END])return e===Ul.END;if(e===Ul.START)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==Ul.SHOW_ENABLE&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,r=this.context,i=this.callbackCaches,o=e.actionObject;if(e.action&&o){var a=this.getKey(t,e);if(!i[a]){var s=function(i){r.event=i,n.isAllowExecute(t,e)?((0,E.kJ)(o)?(0,E.S6)(o,(function(t){r.event=i,zl(t)})):(r.event=i,zl(o)),n.afterExecute(t,e),e.callback&&(r.event=i,e.callback(r))):r.event=null};e.debounce?i[a]=(0,E.Ds)(s,e.debounce.wait,e.debounce.immediate):e.throttle?i[a]=(0,E.P2)(s,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):i[a]=s}return i[a]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(Nl),Hl=Vl,$l={};function Gl(t){return $l[(0,E.vl)(t)]}function Wl(t,e){$l[(0,E.vl)(t)]=e}function ql(t,e,n){var r=Gl(t);if(!r)return null;if((0,E.PO)(r)){var i=(0,E.CD)((0,E.d9)(r),n);return new Hl(e,i)}var o=r;return new o(e,n)}function Xl(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily},iconStyle:{fill:t.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}function Zl(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}function Yl(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},r=Xl(t),i=Zl(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var r=rs(t.getModel(),e),i=r.startAngle,o=r.endAngle,a=(i+o)/2,s=7.5,l=s*Math.cos(a),u=s*Math.sin(a);return{matrix:yr.vs(null,[["t",l,u]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:(0,A.pi)((0,A.pi)({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,A.pi)((0,A.pi)({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,A.pi)((0,A.pi)({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,A.pi)((0,A.pi)({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,A.pi)((0,A.pi)({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,A.pi)((0,A.pi)({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,A.pi)((0,A.pi)({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,A.pi)((0,A.pi)({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:r,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,E.b$)({},r.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,E.b$)({},r.grid,{line:{type:"circle"}})}},legend:{common:i,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{layout:"horizontal",padding:t.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:i.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e["".concat(ia)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:"".concat(t.tooltipContainerBorderRadius,"px"),color:t.tooltipTextFillColor,fontSize:"".concat(t.tooltipTextFontSize,"px"),fontFamily:t.fontFamily,lineHeight:"".concat(t.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(oa)]={marginBottom:"12px",marginTop:"12px"},e["".concat(aa)]={margin:0,listStyleType:"none",padding:0},e["".concat(sa)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(la)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(ua)]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:t.cSliderBackgroundFillColor,opacity:t.cSliderBackgroundFillOpacity},foregroundStyle:{fill:t.cSliderForegroundFillColor,opacity:t.cSliderForegroundFillOpacity},handlerStyle:{width:t.cSliderHandlerWidth,height:t.cSliderHandlerHeight,fill:t.cSliderHandlerFillColor,opacity:t.cSliderHandlerFillOpacity,stroke:t.cSliderHandlerBorderColor,lineWidth:t.cSliderHandlerBorder,radius:t.cSliderHandlerBorderRadius,highLightFill:t.cSliderHandlerHighlightFillColor},textStyle:{fill:t.cSliderTextFillColor,opacity:t.cSliderTextFillOpacity,fontSize:t.cSliderTextFontSize,lineHeight:t.cSliderTextLineHeight,fontWeight:t.cSliderTextFontWeight,stroke:t.cSliderTextBorderColor,lineWidth:t.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:t.scrollbarTrackFillColor,thumbColor:t.scrollbarThumbFillColor}},hover:{style:{thumbColor:t.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:t.overflowLabelFillColor,fontSize:t.overflowLabelFontSize,fontFamily:t.fontFamily,stroke:t.overflowLabelBorderColor,lineWidth:t.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}var Ql={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},Kl={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},Jl=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],tu=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],eu=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],nu=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?Jl:e,r=t.paletteQualitative20,i=void 0===r?tu:r,o=t.brandColor,a=void 0===o?n[0]:o,s={backgroundColor:"transparent",brandColor:a,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:eu,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:Ql[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Ql[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Kl[85],axisTickLineBorderColor:Ql[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Ql[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Ql[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Ql[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Ql[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:a,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Ql[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:Ql[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Ql[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Ql[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:Ql[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Ql[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Ql[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Ql[25],annotationArcBorderColor:Ql[15],annotationArcBorder:1,annotationLineBorderColor:Ql[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Ql[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Ql[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Ql[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:Ql[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Ql[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Kl[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Ql[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Kl[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Ql[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:a,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Kl[100],pointBorderOpacity:1,pointActiveBorderColor:Ql[100],pointSelectedBorder:2,pointSelectedBorderColor:Ql[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:a,hollowPointBorderOpacity:.95,hollowPointFillColor:Kl[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:Ql[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Ql[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:a,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:a,areaFillOpacity:.25,areaActiveFillColor:a,areaActiveFillOpacity:.5,areaSelectedFillColor:a,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:a,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Ql[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Ql[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:a,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Ql[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Ql[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:a,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Kl[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Ql[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Ql[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return(0,A.pi)((0,A.pi)({},s),t)};nu();function ru(t){var e=t.styleSheet,n=void 0===e?{}:e,r=(0,A._T)(t,["styleSheet"]),i=nu(n);return(0,E.b$)({},Yl(i),r)}var iu=ru({}),ou={default:iu};function au(t){return(0,E.U2)(ou,(0,E.vl)(t),ou.default)}function su(t,e){ou[(0,E.vl)(t)]=ru(e)}function lu(t,e,n){var r=n.translate(t),i=n.translate(e);return(0,E.vQ)(r,i)}function uu(t,e){var n=e.coordinate,r=e.getXScale(),i=r.range,o=i[i.length-1],a=i[0],s=n.invert(t),l=s.x;return n.isPolar&&l>(1+o)/2&&(l=a),r.translate(r.invert(l))}function cu(t,e,n){var r=n.coordinate,i=n.getYScale(),o=i.field,a=r.invert(e),s=i.invert(a.y),l=(0,E.sE)(t,(function(t){var e=t[L];return e[o][0]<=s&&e[o][1]>=s}));return l||t[t.length-1]}var hu=(0,E.HP)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,o=0;o<n;o++){var a=e[o],s=t.translate(a);s<r&&(r=s),s>i&&(i=s)}return(i-r)/(n-1)}));function fu(t,e,n){var r=e.getAttribute("position"),i=r.getFields(),o=e.scales,a=(0,E.mf)(n)||!n?i[0]:n,s=o[a],l=s?s.getText(t[a]):t[a]||a;return(0,E.mf)(n)?n(l,t):l}function pu(t){var e=(0,E.VO)(t.attributes);return(0,E.hX)(e,(function(t){return(0,E.FX)(P,t.type)}))}function du(t){var e,n,r,i=pu(t);try{for(var o=(0,A.XA)(i),a=o.next();!a.done;a=o.next()){var s=a.value,l=s.getScale(s.type);if(l&&l.isLinear){var u=(0,E.U2)(t.scaleDefs,l.field),c=ws(l,u,s.type,t.type);if("cat"!==c){r=l;break}}}}catch(p){e={error:p}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}var h=t.getXScale(),f=t.getYScale();return r||f||h}function gu(t,e){var n=e.field,r=t[n];if((0,E.kJ)(r)){var i=r.map((function(t){return e.getText(t)}));return i.join("-")}return e.getText(r)}function vu(t,e){var n,r=e.getGroupScales();if(r.length&&(n=r[0]),n){var i=n.field;return n.getText(t[i])}var o=du(e);return As(o)}function mu(t,e,n){if(0===e.length)return null;var r=n.type,i=n.getXScale(),o=n.getYScale(),a=i.field,s=o.field,l=null;if("heatmap"===r||"point"===r){for(var u=n.coordinate,c=u.invert(t),h=i.invert(c.x),f=o.invert(c.y),p=1/0,d=0;d<e.length;d++){var g=e[d],v=g[L],m=Math.pow(v[a]-h,2)+Math.pow(v[s]-f,2);m<p&&(p=m,l=g)}return l}var y=e[0],b=e[e.length-1],x=uu(t,n),w=y[L][a],C=y[L][s],S=b[L][a],A=o.isLinear&&(0,E.kJ)(C);if((0,E.kJ)(w)){for(d=0;d<e.length;d++){var k=e[d];v=k[L];if(i.translate(v[a][0])<=x&&i.translate(v[a][1])>=x){if(!A){l=k;break}(0,E.kJ)(l)||(l=[]),l.push(k)}}(0,E.kJ)(l)&&(l=cu(l,t,n))}else{var D=void 0;if(i.isLinear||"timeCat"===i.type){if((x>i.translate(S)||x<i.translate(w))&&(x>i.max||x<i.min))return null;var F=0,M=e.length-1,O=void 0;while(F<=M){O=Math.floor((F+M)/2);var T=e[O][L][a];if(lu(T,x,i))return e[O];i.translate(T)<=i.translate(x)?(F=O+1,b=e[O],D=e[O+1]):(0===M&&(b=e[0]),M=O-1)}}else{for(d=0;d<e.length;d++){k=e[d],v=k[L];if(lu(v[a],x,i)){if(!A){l=k;break}(0,E.kJ)(l)||(l=[]),l.push(k)}else i.translate(v[a])<=x&&(b=k,D=e[d+1])}(0,E.kJ)(l)&&(l=cu(l,t,n))}b&&D&&Math.abs(i.translate(b[L][a])-x)>Math.abs(i.translate(D[L][a])-x)&&(b=D)}var B=hu(n.getXScale());return!l&&Math.abs(i.translate(b[L][a])-x)<=B/2&&(l=b),l}function yu(t,e,n,r){var i,o;void 0===n&&(n=""),void 0===r&&(r=!1);var a,s,l=t[L],u=fu(l,e,n),c=e.tooltipOption,h=e.theme.defaultColor,f=[];function p(e,n){if(r||!(0,E.UM)(n)&&""!==n){var i={title:u,data:l,mappingData:t,name:e,value:n,color:t.color||h,marker:!0};f.push(i)}}if((0,E.Kn)(c)){var d=c.fields,g=c.callback;if(g){var v=d.map((function(e){return t[L][e]})),m=g.apply(void 0,(0,A.ev)([],(0,A.CR)(v),!1)),y=(0,A.pi)({data:t[L],mappingData:t,title:u,color:t.color||h,marker:!0},m);f.push(y)}else{var b=e.scales;try{for(var x=(0,A.XA)(d),w=x.next();!w.done;w=x.next()){var C=w.value;if(!(0,E.UM)(l[C])){var S=b[C];a=As(S),s=S.getText(l[C]),p(a,s)}}}catch(D){i={error:D}}finally{try{w&&!w.done&&(o=x.return)&&o.call(x)}finally{if(i)throw i.error}}}}else{var k=du(e);s=gu(l,k),a=vu(l,e),p(a,s)}return f}function bu(t,e,n,r){var i,o,a=r.showNil,s=[],l=t.dataArray;if(!(0,E.xb)(l)){t.sort(l);try{for(var u=(0,A.XA)(l),c=u.next();!c.done;c=u.next()){var h=c.value,f=mu(e,h,t);if(f){var p=t.getElementId(f),d=t.elementsMap[p];if("heatmap"===t.type||d.visible){var g=yu(f,t,n,a);g.length&&s.push(g)}}}}catch(v){i={error:v}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}}return s}function xu(t,e,n,r){var i=r.showNil,o=[],a=t.container,s=a.getShape(e.x,e.y);if(s&&s.get("visible")&&s.get("origin")){var l=s.get("origin").mappingData,u=yu(l,t,n,i);u.length&&o.push(u)}return o}function wu(t,e,n){var r,i,o=[],a=t.geometries,s=n.shared,l=n.title,u=n.reversed;try{for(var c=(0,A.XA)(a),h=c.next();!h.done;h=c.next()){var f=h.value;if(f.visible&&!1!==f.tooltipOption){var p=f.type,d=void 0;d=["point","edge","polygon"].includes(p)?xu(f,e,l,n):["area","line","path","heatmap"].includes(p)||!1!==s?bu(f,e,l,n):xu(f,e,l,n),d.length&&(u&&d.reverse(),o.push(d))}}}catch(g){r={error:g}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return o}function Cu(t,e,n){var r,i,o=wu(t,e,n);try{for(var a=(0,A.XA)(t.views),s=a.next();!s.done;s=a.next()){var l=s.value;o=o.concat(wu(l,e,n))}}catch(u){r={error:u}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function Su(t){return!(0,E.hj)(t)&&!(0,E.kJ)(t)}function Au(t){void 0===t&&(t=0);var e=(0,E.kJ)(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=(0,A.ev)((0,A.ev)([],(0,A.CR)(e),!1),(0,A.CR)(e),!1);break;case 3:e=(0,A.ev)((0,A.ev)([],(0,A.CR)(e),!1),[e[1]],!1);break;default:e=e.slice(0,4);break}return e}var Eu={};function ku(t,e){Eu[t]=e}function Du(){return Object.keys(Eu)}function Fu(t){return Eu[t]}var Mu=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return(0,E.G)(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,r=n.type,i=n.cfg,o="theta"===r,a=(0,A.pi)({start:t,end:e},i),s=Mr(o?"polar":r);return this.coordinate=new s(a),this.coordinate.type=r,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return(0,A.pi)({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;(0,E.S6)(n,(function(n){var r,i=(0,A.CR)(n),o=i[0],a=i.slice(1),s=!!(0,E.UM)(t)||t.includes(o);s&&(r=e.coordinate)[o].apply(r,(0,A.ev)([],(0,A.CR)(a),!1))}))},t}(),Ou=Mu,Tu=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,r){return new t(e,new J.Event(n,{}),r)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}(),Bu=Tu;function _u(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation"),i=t.getController("slider"),o=t.getController("scrollbar");[e,i,o,n,r].forEach((function(t){t&&t.layout()}))}var Iu=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,r){var i=n,o=this.getScaleMeta(r);if(0===e.length&&o){var a=o.scale,s={type:a.type};a.isCategory&&(s.values=a.values),i=(0,E.b$)(s,o.scaleDef,n)}var l=Cs(t,e,i);return this.cacheScale(l,n,r),l},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(r,i){var o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,s=[];(0,E.S6)(r,(function(t){var e=n.getScale(t);a=(0,E.hj)(e.max)?Math.max(a,e.max):a,o=(0,E.hj)(e.min)?Math.min(o,e.min):o,(0,E.S6)(e.values,(function(t){s.includes(t)||s.push(t)}))})),(0,E.S6)(r,(function(r){var i=n.getScale(r);if(i.isContinuous)i.change({min:o,max:a,values:s});else if(i.isCategory){var l=i.range,u=n.getScaleMeta(r);s&&!(0,E.U2)(u,["scaleDef","range"])&&(l=Es((0,E.b$)({},i,{values:s}),t,e)),i.change({values:s,range:l})}}))}))},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?(Ss(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var i=this.getSyncKey(r);if(r.syncKey=i,this.removeFromSyncScales(n),i){var o=this.syncScales.get(i);o||(o=[],this.syncScales.set(i,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=(0,E.Z$)(t.split("-")),r=this.syncScales.get(n);r&&r.length&&(e=this.getScaleMeta(r[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(t);-1!==i&&r.splice(i,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,r){var i=n.indexOf(t);if(-1!==i)return n.splice(i,1),0===n.length&&e.syncScales.delete(r),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,r=e.field,i=(0,E.U2)(n,["sync"]);return!0===i?r:!1===i?void 0:i},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),Pu=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=t,this.right=e,this.bottom=n,this.left=r}return t.instance=function(e,n,r,i){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=0),new t(e,n,r,i)},t.prototype.max=function(t){var e=(0,A.CR)(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,r),this.bottom=Math.max(this.bottom,i),this.left=Math.max(this.left,o),this},t.prototype.shrink=function(t){var e=(0,A.CR)(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return this.top+=n,this.right+=r,this.bottom+=i,this.left+=o,this},t.prototype.inc=function(t,e){var n=t.width,r=t.height;switch(e){case m.TOP:case m.TOP_LEFT:case m.TOP_RIGHT:this.top+=r;break;case m.RIGHT:case m.RIGHT_TOP:case m.RIGHT_BOTTOM:this.right+=n;break;case m.BOTTOM:case m.BOTTOM_LEFT:case m.BOTTOM_RIGHT:this.bottom+=r;break;case m.LEFT:case m.LEFT_TOP:case m.LEFT_BOTTOM:this.left+=n;break;default:break}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,(0,A.ev)([void 0],(0,A.CR)(this.getPadding()),!1)))},t}();function Lu(t){var e=t.padding;if(!Su(e))return new(Pu.bind.apply(Pu,(0,A.ev)([void 0],(0,A.CR)(Au(e)),!1)));var n=t.viewBBox,r=new Pu,i=[],o=[],a=[];return(0,E.S6)(t.getComponents(),(function(t){var e=t.type;e===y.AXIS?i.push(t):[y.LEGEND,y.SLIDER,y.SCROLLBAR].includes(e)?o.push(t):e!==y.GRID&&e!==y.TOOLTIP&&a.push(t)})),(0,E.S6)(i,(function(t){var e=t.component,i=e.getLayoutBBox(),o=new cs(i.x,i.y,i.width,i.height),a=o.exceed(n);r.max(a)})),(0,E.S6)(o,(function(t){var e=t.component,n=t.direction,i=e.getLayoutBBox(),o=e.get("padding"),a=new cs(i.x,i.y,i.width,i.height).expand(o);r.inc(a,n)})),(0,E.S6)(a,(function(t){var e=t.component,n=t.direction,i=e.getLayoutBBox(),o=new cs(i.x,i.y,i.width,i.height);r.inc(o,n)})),r}function Ru(t,e,n){var r=n.instance();e.forEach((function(t){t.autoPadding=r.max(t.autoPadding.getPadding())}))}var Nu=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=Du(),n.scalePool=new Iu,n.layoutFunc=_u,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var r=n.createViewEvent(t);n.doPlotEvent(r),n.emit(e,r)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var r=n.createViewEvent(t);n.emit(e,r)}};var r=e.id,i=void 0===r?(0,E.EL)("view"):r,o=e.parent,a=e.canvas,s=e.backgroundGroup,l=e.middleGroup,u=e.foregroundGroup,c=e.region,h=void 0===c?{start:{x:0,y:0},end:{x:1,y:1}}:c,f=e.padding,p=e.appendPadding,d=e.theme,g=e.options,v=e.limitInPlot,m=e.syncViewPadding;return n.parent=o,n.canvas=a,n.backgroundGroup=s,n.middleGroup=l,n.foregroundGroup=u,n.region=h,n.padding=f,n.appendPadding=p,n.options=(0,A.pi)((0,A.pi)({},n.options),g),n.limitInPlot=v,n.id=i,n.syncViewPadding=m,n.themeObject=(0,E.Kn)(d)?(0,E.b$)({},au("default"),ru(d)):au(d),n.init(),n}return(0,A.ZT)(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(k.BEFORE_RENDER,Bu.fromData(this,k.BEFORE_RENDER,e)),this.paint(t),this.emit(k.AFTER_RENDER,Bu.fromData(this,k.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(k.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear(),e[n].container.remove(!0),e[n].labelsContainer.remove(!0);this.geometries=[];var r=this.controllers;for(n=0;n<r.length;n++)"annotation"===r[n].name?r[n].clear(!0):r[n].clear();this.createdScaleKeys.forEach((function(e,n){t.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var i=this.views;for(n=0;n<i.length;n++)i[n].clear();this.emit(k.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(k.BEFORE_DESTROY);var e=this.interactions;(0,E.S6)(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,r=0,i=n.length;r<i;r++){var o=n[r];o.destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,r=0,i=n.length;r<i;r++){var o=n[r];o.changeVisible(e)}var a=this.controllers;for(r=0,i=a.length;r<i;r++){var s=a[r];s.changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return(0,E.t8)(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return(0,E.mf)(e)?((0,E.t8)(this.options,["filters",t],e),this):(!e&&(0,E.U2)(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return(0,E.jn)(t)?(0,E.t8)(this.options,["axes"],t):(0,E.t8)(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return(0,E.jn)(t)?(0,E.t8)(this.options,["legends"],t):(0,E.HD)(t)?((0,E.t8)(this.options,["legends",t],e),(0,E.PO)(e)&&(null===e||void 0===e?void 0:e.selected)&&(0,E.t8)(this.options,["filters",t],(function(t){var n;return null===(n=null===e||void 0===e?void 0:e.selected[t])||void 0===n||n}))):(0,E.t8)(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return(0,E.HD)(t)?(0,E.t8)(this.options,["scales",t],e):(0,E.Kn)(t)&&(0,E.S6)(t,(function(t,e){(0,E.t8)(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return(0,E.t8)(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return(0,E.HD)(t)?(0,E.t8)(this.options,"coordinate",{type:t,cfg:e}):(0,E.t8)(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=zs(t);if(!n)throw new Error("facet '".concat(t,"' is not exist!"));return this.facetInstance=new n(this,(0,A.pi)((0,A.pi)({},e),{type:t})),this},e.prototype.animate=function(t){return(0,E.t8)(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),(0,E.CD)(this.options,t),this.views.forEach((function(t){return t.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \"".concat(t,'", please change another one.'));return(0,E.t8)(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=(0,E.Kn)(t)?(0,E.b$)({},this.themeObject,ru(t)):au(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var r=ql(t,this,e);return r&&(r.init(),this.interactions[t]=r),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(k.BEFORE_CHANGE_DATA,Bu.fromData(this,k.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,n=0,r=e.length;n<r;n++){var i=e[n];i.changeData(t)}this.emit(k.AFTER_CHANGE_DATA,Bu.fromData(this,k.AFTER_CHANGE_DATA,null))},e.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:(0,E.d9)(this.options.scales),axes:(0,E.d9)(this.options.axes),coordinate:(0,E.d9)(this.coordinateController.getOption()),tooltip:(0,E.d9)(this.options.tooltip),legends:(0,E.d9)(this.options.legends),animate:this.options.animate,visible:this.visible},r=new e((0,A.pi)((0,A.pi)({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:O.BG}),middleGroup:this.middleGroup.addGroup({zIndex:O.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:O.FORE}),theme:this.themeObject,padding:this.padding},t),{options:(0,A.pi)((0,A.pi)({},n),(0,E.U2)(t,"options",{}))}));return this.views.push(r),r},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=(0,E.Od)(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={},e=[];return this.geometries.forEach((function(n){var r=n.getYScale(),i=r.field;t[i]||(t[i]=!0,e.push(r))})),e},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},r=0,i=e.length;r<i;r++){var o=e[r],a="x"===t?o.getXScale():o.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},e.prototype.getScale=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getScaleByField=function(t,e){return this.getScale(t,e)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getOriginalData=function(){return this.options.data},e.prototype.getPadding=function(){return this.autoPadding.getPadding()},e.prototype.getGeometries=function(){return this.geometries},e.prototype.getElements=function(){return(0,E.u4)(this.geometries,(function(t,e){return t.concat(e.getElements())}),[])},e.prototype.getElementsBy=function(t){return this.getElements().filter((function(e){return t(e)}))},e.prototype.getLayer=function(t){return t===v.BG?this.backgroundGroup:t===v.MID?this.middleGroup:(v.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return gs(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return(0,E.xH)(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return us((0,E.xH)(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){var t=this;while(1){if(!t.parent)break;t=t.parent}return t},e.prototype.getXY=function(t){var e,n,r=this.getCoordinate(),i=this.getScalesByDim("x"),o=this.getScalesByDim("y");if((0,E.S6)(t,(function(t,r){i[r]&&(e=i[r].scale(t)),o[r]&&(n=o[r].scale(t))})),!(0,E.UM)(e)&&!(0,E.UM)(n))return r.convert({x:e,y:n})},e.prototype.getController=function(t){return(0,E.sE)(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],r=0,i=e.length;r<i;r++){var o=e[r],a=o.dataArray;o.sort(a);for(var s=void 0,l=0,u=a.length;l<u;l++){var c=a[l];s=mu(t,c,o),s&&n.push(s)}}var h=this.views;for(r=0,i=h.length;r<i;r++){var f=h[r],p=f.getSnapRecords(t);n=n.concat(p)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,r=e.length;n<r;n++){var i=e[n];t=t.concat(i.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===(0,E.dp)(e)?t:(0,E.hX)(t,(function(t,n){var r=Object.keys(e);return r.every((function(r){var i=e[r];return i(t[r],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,r=(0,E.U2)(n,t);return(0,E.o8)(r)?e:e.filter((function(e,n){return r(e[t],e,n)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,r=this.coordinateBBox.bl,i=this.coordinateBBox.tr;(0,E.Xy)(e,r)&&(0,E.Xy)(n,i)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(r,i))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(k.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(k.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=(0,E.U2)(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox,n=e.x,r=e.y,i=e.width,o=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:r,width:i,height:o})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=Lu(this).shrink(Au(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate();for(var e=this.views,n=0,r=e.length;n<r;n++){var i=e[n];i.renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?Ru:(0,E.mf)(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,Pu),this.views.forEach((function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()}))),this.doLayout();for(var n=this.views,r=0,i=n.length;r<i;r++){var o=n[r];o.renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=ms(this.coordinateInstance),r=n.type,i=n.attrs;e.setClip({type:r,attrs:i})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var o=this.views,a=0,s=o.length;a<s;a++){var l=o[a];l.renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,r){var i=(0,E.U2)(this.options.scales,[t]),o=(0,A.pi)((0,A.pi)({},i),n);return this.parent?this.parent.createScale(t,e,o,r):this.scalePool.createScale(t,e,o,r)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,r=e.length;n<r;n++){var i=e[n];i.renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,n,r;if(this.parent){var i=this.parent.coordinateBBox;t=i.x,e=i.y,n=i.width,r=i.height}else t=0,e=0,n=this.canvas.get("width"),r=this.canvas.get("height");var o=this.region,a=o.start,s=o.end,l=new cs(t+n*a.x,e+r*a.y,n*(s.x-a.x),r*(s.y-a.y));this.viewBBox&&this.viewBBox.isEqual(l)||(this.viewBBox=new cs(t+n*a.x,e+r*a.y,n*(s.x-a.x),r*(s.y-a.y))),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var r=t[e],i=Fu(r);i&&this.controllers.push(new i(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,r=e?e.get("origin"):null,i=new Bu(this,t,r);return i.type=n,i},e.prototype.doPlotEvent=function(t){var e=t.type,n=t.x,r=t.y,i={x:n,y:r},o=["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"];if(o.includes(e)){var a=this.isPointInPlot(i),s=t.clone();if(a){var l="plot:".concat(e);s.type=l,this.emit(l,s),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!a?("mousemove"===e&&(s.type=F.MOUSE_LEAVE,this.emit(F.MOUSE_LEAVE,s)),s.type=F.LEAVE,this.emit(F.LEAVE,s)):!this.isPreMouseInPlot&&a&&("mousemove"===e&&(s.type=F.MOUSE_ENTER,this.emit(F.MOUSE_ENTER,s)),s.type=F.ENTER,this.emit(F.ENTER,s)),this.isPreMouseInPlot=a):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(s.type=F.MOUSE_LEAVE,this.emit(F.MOUSE_LEAVE,s)),s.type=F.LEAVE,this.emit(F.LEAVE,s),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=(0,E.U2)(this.options,"scales",{}),r=this.geometries,i=0,o=r.length;i<o;i++){var a=r[i];a.scales=this.getGeometryScales();var s={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?a.update(s):a.init(s)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),r=n.data,i=n.scales,o=void 0===i?{}:i,a=this.filteredData,s=0,l=t.length;s<l;s++){var u=t[s],c=o[u],h=this.getScaleKey(u);this.createScale(u,e.includes(u)?r:a,c,h),this.createdScaleKeys.set(h,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var r=t[n];e[r]=this.getScaleByField(r)}return e},e.prototype.getScaleFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){var i=n[r],o=i.getScaleFields();us(o,t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){var i=n[r],o=i.getGroupFields();us(o,t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=(0,A.ev)([this.getXScale()],(0,A.CR)(this.getYScales()),!1).filter((function(t){return!!t})),n=this.getCoordinate(),r=this.options.scales;(0,E.S6)(e,(function(e){var i=e.field,o=e.values,a=e.isCategory,s=e.isIdentity;(a||s)&&o&&!(0,E.U2)(r,[i,"range"])&&(e.range=Es(e,n,t.theme))}))},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var r=e[n];t?r.update():(r.clear(),r.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),r={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},i=this.geometries,o=0;o<i.length;o++){var a=i[o];a.coordinate=n,a.canvasRegion=r,e||a.animate(!1),a.paint(t)}},e.prototype.renderComponents=function(t){for(var e=0;e<this.getComponents().length;e++){var n=this.getComponents()[e];n.component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){var t=this,e=this.options,n=e.geometries,r=void 0===n?[]:n,i=e.interactions,o=void 0===i?[]:i,a=e.views,s=void 0===a?[]:a,l=e.annotations,u=void 0===l?[]:l,c=e.coordinate,h=e.events,f=e.facets;this.coordinateController?c&&this.coordinateController.update(c):this.coordinateController=new Ou(c);for(var p=0;p<r.length;p++){var d=r[p];this.createGeometry(d)}for(var g=0;g<o.length;g++){var v=o[g],m=v.type,y=v.cfg;this.interaction(m,y)}for(var b=0;b<s.length;b++){var x=s[b];this.createView(x)}for(var w=this.getController("annotation"),C=0;C<u.length;C++){var S=u[C];w.annotation(S)}h&&(0,E.S6)(h,(function(e,n){t.on(n,e)})),f&&(0,E.S6)(f,(function(e){var n=e.type,r=(0,A._T)(e,["type"]);t.facet(n,r)}))},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,r=void 0===n?{}:n;if(this[e]){var i=this[e](r);(0,E.S6)(t,(function(t,e){(0,E.mf)(i[e])&&i[e](t)}))}},e.prototype.getScaleKey=function(t){return"".concat(this.id,"-").concat(t)},e}(K);function ju(t,e){Nu.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=(0,A.pi)({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),r=new e(n);return this.geometries.push(r),r}}var zu=Nu,Uu=function(t){function e(e){var n=this,r=e.container,i=e.width,o=e.height,a=e.autoFit,s=void 0!==a&&a,l=e.padding,u=e.appendPadding,c=e.renderer,h=void 0===c?"canvas":c,f=e.pixelRatio,p=e.localRefresh,d=void 0===p||p,g=e.visible,v=void 0===g||g,m=e.supportCSSTransform,y=void 0!==m&&m,b=e.defaultInteractions,x=void 0===b?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text","axis-description"]:b,w=e.options,C=e.limitInPlot,S=e.theme,k=e.syncViewPadding,D=(0,E.HD)(r)?document.getElementById(r):r,F=$('<div style="position:relative;"></div>');D.appendChild(F);var M=X(D,s,i,o),T=U(h),B=new T.Canvas((0,A.pi)({container:F,pixelRatio:f,localRefresh:d,supportCSSTransform:y},M));return n=t.call(this,{parent:null,canvas:B,backgroundGroup:B.addGroup({zIndex:O.BG}),middleGroup:B.addGroup({zIndex:O.MID}),foregroundGroup:B.addGroup({zIndex:O.FORE}),padding:l,appendPadding:u,visible:v,options:w,limitInPlot:C,theme:S,syncViewPadding:k})||this,n.onResize=(0,E.Ds)((function(){n.forceFit()}),300),n.ele=D,n.canvas=B,n.width=M.width,n.height=M.height,n.autoFit=s,n.localRefresh=d,n.renderer=h,n.wrapperElement=F,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(x),n}return(0,A.ZT)(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;(0,E.S6)(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){var e="aria-label";!1===t?this.ele.removeAttribute(e):this.ele.setAttribute(e,t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(k.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(k.AFTER_CHANGE_SIZE)),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.aria(!1)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),Z(this.wrapperElement),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=X(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){G(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(zu),Vu=Uu,Hu=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){(0,E.S6)(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}();function $u(t){for(var e=[],n=function(n){var r=t[n],i=(0,E.sE)(e,(function(t){return t.color===r.color&&t.name===r.name&&t.value===r.value&&t.title===r.title}));i||e.push(r)},r=0;r<t.length;r++)n(r);return e}var Gu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return(0,A.ZT)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){var t=this.view.getOptions().tooltip;return!1!==t},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var r=this.getTitle(n),i={x:n[0].x,y:n[0].y};e.emit("tooltip:show",Bu.fromData(e,"tooltip:show",(0,A.pi)({items:n,title:r},t)));var o=this.getTooltipCfg(),a=o.follow,s=o.showMarkers,l=o.showCrosshairs,u=o.showContent,c=o.marker,h=this.items,f=this.title;if((0,E.Xy)(f,r)&&(0,E.Xy)(h,n)?(this.tooltip&&a&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",Bu.fromData(e,"tooltip:change",(0,A.pi)({items:n,title:r},t))),((0,E.mf)(u)?u(n):u)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,E.CD)({},o,{items:this.getItemsAfterProcess(n),title:r},a?t:{})),this.tooltip.show()),s&&this.renderTooltipMarkers(n,c)),this.items=n,this.title=r,l){var p=(0,E.U2)(o,["crosshairs","follow"],!1);this.renderCrosshairs(p?t:i,o)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){var t=this.getTooltipCfg().follow;if(t){var e=this.tooltipMarkersGroup;e&&e.hide();var n=this.xCrosshair,r=this.yCrosshair;n&&n.hide(),r&&r.hide();var i=this.tooltip;i&&i.hide(),this.view.emit("tooltip:hide",Bu.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this,e=t.tooltip,n=t.xCrosshair,r=t.yCrosshair,i=t.tooltipMarkersGroup;e&&(e.hide(),e.clear()),n&&n.clear(),r&&r.clear(),i&&i.clear(),(null===e||void 0===e?void 0:e.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this,n=e.tooltip,r=e.tooltipMarkersGroup,i=e.xCrosshair,o=e.yCrosshair;t?(n&&n.show(),r&&r.show(),i&&i.show(),o&&o.show()):(n&&n.hide(),r&&r.hide(),i&&i.hide(),o&&o.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e,n,r,i,o,a,s=this.findItemsFromView(this.view,t);if(s.length){s=(0,E.xH)(s);try{for(var l=(0,A.XA)(s),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var h=(r=void 0,(0,A.XA)(c)),f=h.next();!f.done;f=h.next()){var p=f.value,d=p.mappingData,g=d.x,v=d.y;p.x=(0,E.kJ)(g)?g[g.length-1]:g,p.y=(0,E.kJ)(v)?v[v.length-1]:v}}catch(k){r={error:k}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}}catch(D){e={error:D}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}var m=this.getTooltipCfg().shared;if(!1===m&&s.length>1){var y=s[0],b=Math.abs(t.y-y[0].y);try{for(var x=(0,A.XA)(s),w=x.next();!w.done;w=x.next()){var C=w.value,S=Math.abs(t.y-C[0].y);S<=b&&(y=C,b=S)}}catch(F){o={error:F}}finally{try{w&&!w.done&&(a=x.return)&&a.call(x)}finally{if(o)throw o.error}}s=[y]}return $u((0,E.xH)(s))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(e&&n){var r=e.getBoundingClientRect(),i=r.x,o=r.y,a=r.width,s=r.height;return new cs(i,o,a,s).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),r=t.getTheme(),i=(0,E.U2)(r,["components","tooltip"],{}),o=(0,E.U2)(n,"enterable",i.enterable);return(0,E.b$)({},i,n,{capture:!(!o&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if((0,E.jn)(t)||!(0,E.U2)(t,"customContent"))return t;var e=t.customContent,n=function(t,n){var r=e(t,n)||"";return(0,E.HD)(r)?'<div class="g2-tooltip">'+r+"</div>":r};return(0,A.pi)((0,A.pi)({},t),{customContent:n})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),r=new Ya((0,A.pi)((0,A.pi)({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));r.init(),this.tooltip=r},e.prototype.renderTooltipMarkers=function(t,e){var n,r,i=this.getTooltipMarkersGroup(),o=this.view.getRootView(),a=o.limitInPlot;try{for(var s=(0,A.XA)(t),l=s.next();!l.done;l=s.next()){var u=l.value,c=u.x,h=u.y;if(a||(null===i||void 0===i?void 0:i.getClip())){var f=ms(o.getCoordinate()),p=f.type,d=f.attrs;null===i||void 0===i||i.setClip({type:p,attrs:d})}else null===i||void 0===i||i.setClip(void 0);var g=(0,A.pi)((0,A.pi)({fill:u.color,symbol:"circle",shadowColor:u.color},e),{x:c,y:h});i.addShape("marker",{attrs:g})}}catch(v){n={error:v}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=(0,E.U2)(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(gs(n,t)){var r,i;if(n.isRect)n.isTransposed?(r={x:n.start.x,y:t.y},i={x:n.end.x,y:t.y}):(r={x:t.x,y:n.end.y},i={x:t.x,y:n.start.y});else{var o=vs(n,t),a=n.getCenter(),s=n.getRadius();i=ts(a.x,a.y,s,o),r=a}var l=(0,E.b$)({start:r,end:i,container:this.getTooltipCrosshairsGroup()},(0,E.U2)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete l.type;var u=this.xCrosshair;u?u.update(l):(u=new Fo(l),u.init()),u.render(),u.show(),this.xCrosshair=u}},e.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(gs(n,t)){var r,i;if(n.isRect){var o=void 0,a=void 0;n.isTransposed?(o={x:t.x,y:n.end.y},a={x:t.x,y:n.start.y}):(o={x:n.start.x,y:t.y},a={x:n.end.x,y:t.y}),r={start:o,end:a},i="Line"}else r={center:n.getCenter(),radius:ds(n,t),startAngle:n.startAngle,endAngle:n.endAngle},i="Circle";r=(0,E.b$)({container:this.getTooltipCrosshairsGroup()},r,(0,E.U2)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e)),delete r.type;var s=this.yCrosshair;s?n.isRect&&"circle"===s.get("type")||!n.isRect&&"line"===s.get("type")?(s=new u[i](r),s.init()):s.update(r):(s=new u[i](r),s.init()),s.render(),s.show(),this.yCrosshair=s}},e.prototype.getCrosshairsText=function(t,e,n){var r=(0,E.U2)(n,["crosshairs","text"]),i=(0,E.U2)(n,["crosshairs","follow"]),o=this.items;if(r){var a=this.getViewWithGeometry(this.view),s=o[0],l=a.getXScale(),u=a.getYScales()[0],c=void 0,h=void 0;if(i){var f=this.view.getCoordinate().invert(e);c=l.invert(f.x),h=u.invert(f.y)}else c=s.data[l.field],h=s.data[u.field];var p="x"===t?c:h;return(0,E.mf)(r)?r=r(t,p,o,e):r.content=p,{text:r}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):(t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),t.toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||(t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),t.toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,r;if(!1===t.getOptions().tooltip)return[];var i=this.getTooltipCfg(),o=wu(t,e,i);try{for(var a=(0,A.XA)(t.views),s=a.next();!s.done;s=a.next()){var l=s.value;o=o.concat(this.findItemsFromView(l,e))}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:(0,E.sE)(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems,n=e||function(t){return t};return n(t)},e}(Hu),Wu=Gu,qu={};function Xu(t){return qu[t.toLowerCase()]}function Zu(t,e){qu[t.toLowerCase()]=e}var Yu={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},Qu={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},Ku={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){var e;return e=t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy",{animation:e}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function Ju(t,e){return{delay:(0,E.mf)(t.delay)?t.delay(e):t.delay,easing:(0,E.mf)(t.easing)?t.easing(e):t.easing,duration:(0,E.mf)(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}function tc(t,e,n){var r=Qu[t];return r&&((0,E.mf)(r)&&(r=r(e)),r=(0,E.b$)({},Yu,r),n)?r[n]:r}function ec(t,e,n){var r=(0,E.U2)(t.get("origin"),"data",L),i=e.animation,o=Ju(e,r);if(i){var a=Xu(i);a&&a(t,o,n)}else t.animate(n.toAttrs,o)}function nc(t,e,n,r,i){if(Ku[n]){var o=Ku[n](r),a=Xu((0,E.U2)(o,"animation",""));if(a){var s=(0,A.pi)((0,A.pi)((0,A.pi)({},Yu.appear),o),e);t.stopAnimate(),a(t,s,{coordinate:r,minYPoint:i,toAttrs:null})}}}var rc="element-background",ic=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var r=e.shapeFactory,i=e.container,o=e.offscreenGroup,a=e.elementIndex,s=e.visible,l=void 0===s||s;return n.shapeFactory=r,n.container=i,n.offscreenGroup=o,n.visible=l,n.elementIndex=a,n}return(0,A.ZT)(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this,n=e.shapeFactory,r=e.shape;if(r){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(r,t);var i=this.getOffscreenGroup(),o=n.drawShape(this.shapeType,t,i);o.cfg.data=this.data,o.cfg.origin=t,o.cfg.element=this,this.syncShapeStyle(r,o,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this,n=e.shapeFactory,r=e.shape;if(r){var i=this.getAnimateCfg("leave");i?ec(r,i,{coordinate:n.coordinate,toAttrs:(0,A.pi)({},r.attr())}):r.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,r=n.states,i=n.shapeFactory,o=n.model,a=n.shape,s=n.shapeType,l=r.indexOf(t);if(e){if(l>-1)return;r.push(t),"active"!==t&&"selected"!==t||null===a||void 0===a||a.toFront()}else{if(-1===l)return;if(r.splice(l,1),"active"===t||"selected"===t){var u=this.geometry,c=u.sortZIndex,h=u.zIndexReversed,f=h?this.geometry.elements.length-this.elementIndex:this.elementIndex;c?a.setZIndex(f):a.set("zIndex",f)}}var p=i.drawShape(s,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(a,p,r,null):this.syncShapeStyle(a,p,["reset"],null),p.remove(!0);var d={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",d),Tr(this.shape,"statechange",d)},e.prototype.clearStates=function(){var t=this,e=this.states;(0,E.S6)(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this,e=t.shape,n=t.labelShape,r={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return e&&(r=e.getCanvasBBox()),n&&n.forEach((function(t){var e=t.getCanvasBBox();r.x=Math.min(e.x,r.x),r.y=Math.min(e.y,r.y),r.minX=Math.min(e.minX,r.minX),r.minY=Math.min(e.minY,r.minY),r.maxX=Math.max(e.maxX,r.maxX),r.maxY=Math.max(e.maxY,r.maxY)})),r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,e=t.shapeType,n=t.geometry,r=t.shapeFactory,i=n.stateOption,o=r.defaultShapeType,a=r.theme[e]||r.theme[o];this.statesStyle=(0,E.b$)({},a,i)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=(0,E.U2)(n,[t,"style"],{}),i=r[e]||r;return(0,E.mf)(i)?i(this):i},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var r=n[t];return r?(0,A.pi)((0,A.pi)({},r),{callback:function(){var t;(0,E.mf)(r.callback)&&r.callback(),null===(t=e.geometry)||void 0===t||t.emit(D.AFTER_DRAW_ANIMATE)}}):r}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var r=this,i=r.shapeFactory,o=r.container,a=r.shapeType;if(this.shape=i.drawShape(a,t,o),this.shape){this.setShapeInfo(this.shape,t);var s=this.shape.cfg.name;s?(0,E.HD)(s)&&(this.shape.cfg.name=["element",s]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var l=e?"enter":"appear",u=this.getAnimateCfg(l);u&&(null===(n=this.geometry)||void 0===n||n.emit(D.BEFORE_DRAW_ANIMATE),ec(this.shape,u,{coordinate:i.coordinate,toAttrs:(0,A.pi)({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;if(t.cfg.origin=e,t.cfg.element=this,t.isGroup()){var r=t.get("children");r.forEach((function(t){n.setShapeInfo(t,e)}))}},e.prototype.syncShapeStyle=function(t,e,n,r,i){var o,a=this;if(void 0===n&&(n=[]),void 0===i&&(i=0),t&&e){var s=t.get("clipShape"),l=e.get("clipShape");if(this.syncShapeStyle(s,l,n,r),t.isGroup())for(var u=t.get("children"),c=e.get("children"),h=0;h<u.length;h++)this.syncShapeStyle(u[h],c[h],n,r,i+h);else{if(!(0,E.xb)(n)&&!(0,E.Xy)(n,["reset"])){var f=t.get("name");(0,E.kJ)(f)&&(f=f[1]),(0,E.S6)(n,(function(t){if(e.get("name")!==rc){var n=a.getStateStyle(t,f||i);e.attr(n)}}))}var p=os(t,e);this.animate?r?(null===(o=this.geometry)||void 0===o||o.emit(D.BEFORE_DRAW_ANIMATE),ec(t,r,{coordinate:this.shapeFactory.coordinate,toAttrs:p,shapeModel:this.model})):(0,E.xb)(n)?t.attr(p):(t.stopAnimate(),t.animate(p,{duration:300})):t.attr(p)}}},e.prototype.getShapeType=function(t){var e=(0,E.U2)(t,"shape");return(0,E.kJ)(e)?e[0]:e},e}(K),oc=ic,ac={},sc={};function lc(t){return ac[t.toLowerCase()]}function uc(t,e){ac[t.toLowerCase()]=e}function cc(t){return sc[t.toLowerCase()]}function hc(t,e){sc[t.toLowerCase()]=e}var fc={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return(0,E.U2)(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var r=this.defaultShapeType;n=this.getShape(r)}var i=this.theme,o=(0,E.U2)(i,[t,"default"],{}),a=n.getMarker(e);return(0,E.b$)({},o,a)},drawShape:function(t,e,n){var r=this.getShape(t);return r.draw(e,n)}},pc={coordinate:null,parsePath:function(t){var e=this.coordinate,n=(0,Sa.tr)(t);return n=e.isPolar?sl(e,n):al(e,n),n},parsePoint:function(t){var e=this.coordinate;return e.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},dc={};function gc(t,e){var n=(0,E.jC)(t),r=(0,A.pi)((0,A.pi)((0,A.pi)({},fc),e),{geometryType:t});return dc[n]=r,r}function vc(t,e,n){var r=(0,E.jC)(t),i=dc[r],o=(0,A.pi)((0,A.pi)({},pc),n);return i[e]=o,o}function mc(t){var e=(0,E.jC)(t);return dc[e]}function yc(t,e,n){var r,i;if(void 0===n&&(n={}),!e)return[t];var o=(0,E.Ms)(t,e),a=[];if(1===e.length&&n[e[0]]){var s=n[e[0]];try{for(var l=(0,A.XA)(s),u=l.next();!u.done;u=l.next()){var c=u.value,h=o["_".concat(c)];h&&a.push(h)}}catch(d){r={error:d}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}else for(var f in o)if(o.hasOwnProperty(f)){var p=o[f];a.push(p)}return a}function bc(t,e){return(0,E.G)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!(0,E.Xy)(t[n],e[n])}))}function xc(t){return(0,E.kJ)(t)?t:t.split("*")}function wc(t,e){for(var n=[],r=[],i=[],o=new Map,a=0;a<e.length;a++){var s=e[a];t[s]?r.push(s):n.push(s),o.set(s,!0)}return Object.keys(t).forEach((function(t){o.has(t)||i.push(t)})),{added:n,updated:r,removed:i}}var Cc=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var r=e.container,i=e.labelsContainer,o=e.coordinate,a=e.data,s=e.sortable,l=void 0!==s&&s,u=e.visible,c=void 0===u||u,h=e.theme,f=e.scales,p=void 0===f?{}:f,d=e.scaleDefs,g=void 0===d?{}:d,v=e.intervalPadding,m=e.dodgePadding,y=e.maxColumnWidth,b=e.minColumnWidth,x=e.columnWidthRatio,w=e.roseWidthRatio,C=e.multiplePieWidthRatio,S=e.zIndexReversed,A=e.sortZIndex,E=e.useDeferredLabel;return n.container=r,n.labelsContainer=i,n.coordinate=o,n.data=a,n.sortable=l,n.visible=c,n.userTheme=h,n.scales=p,n.scaleDefs=g,n.intervalPadding=v,n.dodgePadding=m,n.maxColumnWidth=y,n.minColumnWidth=b,n.columnWidthRatio=x,n.roseWidthRatio=w,n.multiplePieWidthRatio=C,n.zIndexReversed=S,n.sortZIndex=A,n.useDeferredLabel=E?"number"===typeof E?E:1/0:null,n}return(0,A.ZT)(e,t),e.prototype.position=function(t){var e=t;(0,E.PO)(t)||(e={fields:xc(t)});var n=(0,E.U2)(e,"fields");return 1===n.length&&(n.unshift("1"),(0,E.t8)(e,"fields",n)),(0,E.t8)(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return((0,E.HD)(t)||(0,E.PO)(t))&&(e=[t]),(0,E.S6)(e,(function(t,n){(0,E.Kn)(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if((0,E.HD)(t)){var n=xc(t);this.styleOption={fields:n,callback:e}}else{var r=t,i=(n=r.fields,r.callback),o=r.cfg;this.styleOption=n||i||o?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if((0,E.HD)(t)){var n=xc(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if((0,E.HD)(t)){var r={},i=xc(t);r.fields=i,(0,E.mf)(e)?r.callback=e:(0,E.PO)(e)&&(r.cfg=e),n&&(r.cfg=n),this.labelOption=r}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.customInfo=function(t){return this.customOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,r=t.isCoordinateChanged,i=this,o=i.attributeOption,a=i.lastAttributeOption;(0,E.Xy)(o,a)?!e||!n&&(0,E.Xy)(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=r},e.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=(0,E.b$)({},tc(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[];var n=this.getOffscreenGroup();n.clear();var r=this.beforeMappingData,i=this.beforeMapping(r);this.dataArray=new Array(i.length);for(var o=0;o<i.length;o++){var a=i[o];this.dataArray[o]=this.mapping(a)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var s=this.container,l=this.type,u=this.coordinate,c=(0,E.U2)(this.animateOption,"appear"),h=this.getYScale(),f=u.convert({x:0,y:h.scale(this.getYMinValue())});nc(s,c,l,u,f)}if(this.labelOption){var p=this.useDeferredLabel,d=function(){return e.renderLabels((0,E.xH)(e.dataArray),t)}.bind(this);if("number"===typeof p){var g="number"===typeof p&&p!==1/0?p:0;if(window.requestIdleCallback){var v=g&&g!==1/0?{timeout:g}:void 0;window.requestIdleCallback(d,v)}else setTimeout(d,g)}else d()}this.lastAttributeOption=(0,A.pi)({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this,e=t.container,n=t.geometryLabel,r=t.offscreenGroup;e&&e.clear(),n&&n.clear(),r&&r.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},e.prototype.destroy=function(){this.clear();var e=this.container;e.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,t.prototype.destroy.call(this)},e.prototype.getGroupScales=function(){return this.groupScales},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},e.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},e.prototype.getGroupAttributes=function(){var t=[];return(0,E.S6)(this.attributes,(function(e){P.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&(0,E.xb)(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],r=t.scales,i=0,o=r.length;i<o;i++){var a=r[i],s=a.field;a.isIdentity?n.push(a.values):n.push(e[s])}return t.mapping.apply(t,(0,A.ev)([],(0,A.CR)(n),!1))},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.getData=function(){return this.data},e.prototype.getShapeMarker=function(t,e){var n=this.getShapeFactory();return n.getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElements=function(){return this.elements},e.prototype.getElementId=function(t){t=(0,E.kJ)(t)?t[0]:t;var e=t[L];if(this.idFields.length){for(var n=e[this.idFields[0]],r=1;r<this.idFields.length;r++)n+="-"+e[this.idFields[r]];return n}var i,o,a=this.type,s=this.getXScale(),l=this.getYScale(),u=s.field||"x",c=l.field||"y",h=e[c];i="identity"===s.type?s.values[0]:e[u],o="interval"===a||"schema"===a?"".concat(i):"line"===a||"area"===a||"path"===a?a:"".concat(i,"-").concat(h);for(var f=this.groupScales,p=(r=0,f.length);r<p;r++){var d=f[r],g=d.field;o="".concat(o,"-").concat(e[g])}var v=this.getAdjust("dodge");if(v){var m=v.dodgeBy;m&&(o="".concat(o,"-").concat(e[m]))}return this.getAdjust("jitter")&&(o="".concat(o,"-").concat(t.x,"-").concat(t.y)),o},e.prototype.getScaleFields=function(){var t=[],e=new Map,n=this,r=n.attributeOption,i=n.labelOption,o=n.tooltipOption;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];s.fields?us(s.fields,t,e):s.values&&us(s.values,t,e)}return i&&i.fields&&us(i.fields,t,e),(0,E.Kn)(o)&&o.fields&&us(o.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.elements,r=0,i=n.length;r<i;r++){var o=n[r];o.changeVisible(e)}e?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},e.prototype.getFields=function(){var t=new Map,e=[];return Object.values(this.attributeOption).forEach((function(n){var r=(null===n||void 0===n?void 0:n.fields)||[];r.forEach((function(n){t.has(n)||e.push(n),t.set(n,!0)}))}),[]),e},e.prototype.getGroupFields=function(){for(var t=[],e=new Map,n=0,r=P.length;n<r;n++){var i=P[n],o=this.attributeOption[i];o&&o.fields&&us(o.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=(0,A.CR)(this.attributeOption.position.fields,2),e=t[0],n=t[1];return[e,n]},e.prototype.getXField=function(){return(0,E.U2)(this.getXYFields(),[0])},e.prototype.getYField=function(){return(0,E.U2)(this.getXYFields(),[1])},e.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,r=0;r<t.length;r++){var i=t[r];i.sort((function(t,r){return e.translate(t[L][n])-e.translate(r[L][n])}))}this.hasSorted=!0},e.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},e.prototype.getShapeFactory=function(){var t=this.shapeType;if(mc(t))return this.shapeFactory||(this.shapeFactory=(0,E.d9)(mc(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e,n=this.getXScale(),r=this.getYScale(),i=this.normalizeValues(t[n.field],n);return e=r?this.normalizeValues(t[r.field],r):t.y?t.y:.1,{x:i,y:e,y0:r?r.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e,n){void 0===n&&(n=!1);var r=this.container,i=this.getDrawCfg(t),o=this.getShapeFactory(),a=new oc({shapeFactory:o,container:r,offscreenGroup:this.getOffscreenGroup(),elementIndex:e});return a.animate=this.animateOption,a.geometry=this,a.draw(i,n),a},e.prototype.getDrawCfg=function(t){var e=t[L],n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},r=t.shape;!r&&this.getShapeFactory()&&(r=this.getShapeFactory().defaultShapeType),n.shape=r;var i=this.theme.geometries[this.shapeType];n.defaultStyle=(0,E.U2)(i,[r,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(i));var o=this.styleOption;return o&&(n.style=this.getStyleCfg(o,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.updateElements=function(t,e){var n,r,i,o,a,s;void 0===e&&(e=!1);for(var l=new Map,u=[],c=new Map,h=0,f=0;f<t.length;f++)for(var p=t[f],d=0;d<p.length;d++){var g=p[d],v=this.getElementId(g),m=l.has(v)?"".concat(v,"-").concat(f,"-").concat(d):v;u.push(m),l.set(m,g),c.set(m,h),h++}this.elements=new Array(h);var y=wc(this.lastElementsMap,u),b=y.added,x=y.updated,w=y.removed;try{for(var C=(0,A.XA)(b),S=C.next();!S.done;S=C.next()){v=S.value,g=l.get(v),f=c.get(v);var E=this.createElement(g,f,e);this.elements[f]=E,this.elementsMap[v]=E,E.shape&&E.shape.set("zIndex",this.zIndexReversed?this.elements.length-f:f)}}catch(B){n={error:B}}finally{try{S&&!S.done&&(r=C.return)&&r.call(C)}finally{if(n)throw n.error}}try{for(var k=(0,A.XA)(x),D=k.next();!D.done;D=k.next()){v=D.value,E=this.lastElementsMap[v],g=l.get(v);var F=this.getDrawCfg(g),M=E.getModel();f=c.get(v);(this.isCoordinateChanged||bc(F,M))&&(E.animate=this.animateOption,E.update(F)),this.elements[f]=E,this.elementsMap[v]=E,E.shape&&E.shape.set("zIndex",this.zIndexReversed?this.elements.length-f:f)}}catch(_){i={error:_}}finally{try{D&&!D.done&&(o=k.return)&&o.call(k)}finally{if(i)throw i.error}}this.container&&this.container.sort();try{for(var O=(0,A.XA)(w),T=O.next();!T.done;T=O.next()){v=T.value,E=this.lastElementsMap[v];E.animate=this.animateOption,E.destroy()}}catch(I){a={error:I}}finally{try{T&&!T.done&&(s=O.return)&&s.call(O)}finally{if(a)throw a.error}}},e.prototype.getLabelType=function(){var t=this,e=t.labelOption,n=t.coordinate,r=t.type,i=n.type,o=n.isTransposed,a=(0,E.U2)(e,["cfg","type"]);return a||(a="polar"===i?o?"pie":"polar":"theta"===i?"pie":"interval"===r||"polygon"===r?"interval":"base"),a},e.prototype.getYMinValue=function(){var t,e=this.getYScale(),n=e.min,r=e.max;return t=n>=0?n:r<=0?r:0,t},e.prototype.createAttrOption=function(t,e,n){if((0,E.UM)(e)||(0,E.Kn)(e))(0,E.Kn)(e)&&(0,E.Xy)(Object.keys(e),["values"])?(0,E.t8)(this.attributeOption,t,{fields:e.values}):(0,E.t8)(this.attributeOption,t,e);else{var r={};(0,E.hj)(e)?r.values=[e]:r.fields=xc(e),n&&((0,E.mf)(n)?r.callback=n:r.values=n),(0,E.t8)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this,n=e.attributes,r=e.attributeOption,i=e.theme,o=e.shapeType;this.groupScales=[];var a={},s=function(e){if(r.hasOwnProperty(e)){var s=r[e];if(!s)return{value:void 0};var l=(0,A.pi)({},s),u=l.callback,c=l.values,h=l.fields,f=void 0===h?[]:h,p=f.map((function(n){var r=t.scales[n];if(!a[n]&&P.includes(e)){var i=ws(r,(0,E.U2)(t.scaleDefs,n),e,t.type);"cat"===i&&(t.groupScales.push(r),a[n]=!0)}return r}));l.scales=p,"position"!==e&&1===p.length&&"identity"===p[0].type?l.values=p[0].values:u||c||("size"===e?l.values=i.sizes:"shape"===e?l.values=i.shapes[o]||[]:"color"===e&&(p.length?l.values=p[0].values.length<=10?i.colors10:i.colors20:l.values=i.colors10));var d=fr(e);n[e]=new d(l)}};for(var l in r){var u=s(l);if("object"===typeof u)return u.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var r=this.getAttribute("position").scales,i=r.filter((function(t){return t.isCategory})),o=this.groupData(t),a=[],s=0,l=o.length;s<l;s++){for(var u=o[s],c=[],h=0,f=u.length;h<f;h++){var p=u[h],d={};for(var g in p)d[g]=p[g];d[L]=p;try{for(var v=(e=void 0,(0,A.XA)(i)),m=v.next();!m.done;m=v.next()){var y=m.value,b=y.field;d[b]=y.translate(d[b])}}catch(w){e={error:w}}finally{try{m&&!m.done&&(n=v.return)&&n.call(v)}finally{if(e)throw e.error}}c.push(d)}a.push(c)}var x=this.adjustData(a);return this.beforeMappingData=x,x},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this,r=n.intervalPadding,i=n.dodgePadding,o=n.theme,a=this.maxColumnWidth||o.maxColumnWidth,s=this.minColumnWidth||o.minColumnWidth,l=this.columnWidthRatio||o.columnWidthRatio,u=t;if(e){var c=this.getXScale(),h=this.getYScale(),f=c.field,p=h?h.field:null,d=fs(this.coordinate),g=c.values.length,v=this.getAttribute("size"),m=void 0;v&&(m=v.values[0]);for(var y=0,b=e.length;y<b;y++){var x=e[y],w=(0,A.pi)({xField:f,yField:p,intervalPadding:r,dodgePadding:i,xDimensionLength:d,groupNum:g,defaultSize:m,maxColumnWidth:a,minColumnWidth:s,columnWidthRatio:l},x),C=x.type;if("dodge"===C){var S=[];if(c.isCategory||"identity"===c.type)S.push("x");else{if(h)throw new Error("dodge is not support linear attribute, please use category attribute!");S.push("y")}w.adjustNames=S,w.dodgeRatio=l}else if("stack"===C){var k=this.coordinate;if(!h){w.height=k.getHeight();var D=this.getDefaultValue("size")||3;w.size=D}!k.isTransposed&&(0,E.UM)(w.reverseOrder)&&(w.reverseOrder=!0)}var F=st(C);w.dimValuesMap={},c&&c.values&&(w.dimValuesMap[c.field]=c.values.map((function(t){return c.translate(t)})));var M=new F(w);u=M.process(u),this.adjusts[C]=M}}return u},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,r={},i=[],o=0;o<e.length;o++){var a=e[o],s=a.field;i.push(s),(0,E.U2)(n,[s,"values"])&&(r[s]=n[s].values)}return yc(t,i,r)},e.prototype.updateStackRange=function(t,e){for(var n=(0,E.xH)(e),r=t.field,i=t.min,o=t.max,a=0;a<n.length;a++){var s=n[a],l=Math.min.apply(null,s[r]),u=Math.max.apply(null,s[r]);l<i&&(i=l),u>o&&(o=u)}var c=this.scaleDefs,h={};i<t.min&&!(0,E.U2)(c,[r,"min"])&&(h.min=i),o>t.max&&!(0,E.U2)(c,[r,"max"])&&(h.max=o),t.change(h)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n<r;n++){var i=e[n];this.generateShapePoints(i);var o=e[n+1];o&&(this.generateShapePoints(o),i[0].nextPoints=o[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),r=0;r<t.length;r++){var i=t[r],o=this.createShapePointsCfg(i),a=n?this.getAttributeValues(n,i):null,s=e.getShapePoints(a,o);i.points=s}},e.prototype.normalizeValues=function(t,e){var n=[];if((0,E.kJ)(t))for(var r=0;r<t.length;r++){var i=t[r];n.push(e.scale(i))}else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],r=0;r<t.length;r++){var i=t[r],o={_origin:i[L],points:i.points,nextPoints:i.nextPoints};for(var a in e)if(e.hasOwnProperty(a)){var s=e[a],l=s.names,u=this.getAttributeValues(s,i);if(l.length>1)for(var c=0;c<u.length;c+=1){var h=u[c],f=l[c];o[f]=(0,E.kJ)(h)&&1===h.length?h[0]:h}else o[l[0]]=1===u.length?u[0]:u}this.convertPoint(o),n.push(o)}return n},e.prototype.convertPoint=function(t){var e,n,r,i=t.x,o=t.y,a=this.coordinate;if((0,E.kJ)(i)&&(0,E.kJ)(o)){e=[],n=[];for(var s=0,l=0,u=i.length,c=o.length;s<u&&l<c;s+=1,l+=1)r=a.convert({x:i[s],y:o[l]}),e.push(r.x),n.push(r.y)}else if((0,E.kJ)(o)){n=[];for(var h=0;h<o.length;h++){var f=o[h];r=a.convert({x:i,y:f}),e&&e!==r.x?((0,E.kJ)(e)||(e=[e]),e.push(r.x)):e=r.x,n.push(r.y)}}else if((0,E.kJ)(i)){e=[];for(h=0;h<i.length;h++){var p=i[h];r=a.convert({x:p,y:o}),n&&n!==r.y?((0,E.kJ)(n)||(n=[n]),n.push(r.y)):n=r.y,e.push(r.x)}}else{var d=a.convert({x:i,y:o});e=d.x,n=d.y}t.x=e,t.y=n},e.prototype.getStyleCfg=function(t,e){var n=t.fields,r=void 0===n?[]:n,i=t.callback,o=t.cfg;if(o)return o;var a=r.map((function(t){return e[t]}));return i.apply(void 0,(0,A.ev)([],(0,A.CR)(a),!1))},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,r=t.data,i=t.theme,o=t.scaleDefs;n&&(this.coordinate=n),r&&(this.data=r),o&&(this.scaleDefs=o,this.idFields=[],(0,E.S6)(o,(function(t,n){t&&t.key&&e.idFields.push(n)}))),i&&(this.theme=this.userTheme?(0,E.b$)({},i,this.userTheme):i)},e.prototype.renderLabels=function(t,e){return void 0===e&&(e=!1),(0,A.mG)(this,void 0,void 0,(function(){var n,r,i,o,a,s,l,u,c,h,f,p,d=this;return(0,A.Jh)(this,(function(g){switch(g.label){case 0:return n=this.geometryLabel,this.emit(D.BEFORE_RENDER_LABEL),n||(r=this.getLabelType(),i=lc(r),n=new i(this),this.geometryLabel=n),[4,n.render(t,e)];case 1:g.sent(),o=n.labelsRenderer.shapesMap,a=new Map,(0,E.S6)(o,(function(t,e){for(var n=t.getChildren()||[],r=0;r<n.length;r++){var i=n[r],o=d.elementsMap[i.get("elementId")||e.split(" ")[0]];if(o){i.cfg.name=["element","label"],i.cfg.element=o;var s=a.get(o)||new Set;s.add(t),a.set(o,s)}}}));try{for(s=(0,A.XA)(a.entries()),l=s.next();!l.done;l=s.next())u=(0,A.CR)(l.value,2),c=u[0],h=u[1],c.labelShape=(0,A.ev)([],(0,A.CR)(h),!1)}catch(v){f={error:v}}finally{try{l&&!l.done&&(p=s.return)&&p.call(s)}finally{if(f)throw f.error}}return this.emit(D.AFTER_RENDER_LABEL),[2]}}))}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===(0,E.U2)(this.animateOption,"appear")||(0,E.U2)(this.animateOption,"appear")&&void 0===(0,E.U2)(this.animateOption,["appear","animation"]))},e}(K),Sc=Cc,Ac=yr.vs;function Ec(t,e,n){var r=Ac(t.getMatrix(),[["t",e,n]]);t.setMatrix(r)}function kc(t,e){var n=t.attr(),r=n.x,i=n.y,o=Ac(t.getMatrix(),[["t",-r,-i],["r",e],["t",r,i]]);return o}function Dc(t,e){var n=kc(t,e);t.setMatrix(n)}function Fc(t,e){var n=t.getBBox(),r=(n.minX+n.maxX)/2,i=(n.minY+n.maxY)/2;t.applyToMatrix([r,i,1]);var o=Ac(t.getMatrix(),[["t",-r,-i],["s",e,e],["t",r,i]]);t.setMatrix(o)}function Mc(t){return t.find((function(t){return"text"===t.get("type")}))}function Oc(t,e,n){void 0===n&&(n=[0,0,0,0]);var r=t&&t.getChildren()[0];if(r){var i=r.clone();(null===e||void 0===e?void 0:e.rotate)&&Dc(i,-e.rotate);var o=i.getCanvasBBox(),a=o.x,s=o.y,l=o.width,u=o.height;i.destroy();var c=n;return(0,E.UM)(c)?c=[2,2,2,2]:(0,E.hj)(c)&&(c=new Array(4).fill(c)),{x:a-c[3],y:s-c[0],width:l+c[1]+c[3],height:u+c[0]+c[2],rotation:(null===e||void 0===e?void 0:e.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}}function Tc(t,e,n){void 0===n&&(n=0);var r=Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n)),i=Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n));return r*i}function Bc(t,e){var n=t.getBBox();return(0,E.G)(e,(function(t){var e=t.getBBox();return Tc(n,e,2)>0}))}function _c(t,e,n){var r=n.data,i=n.origin,o=n.animateCfg,a=n.coordinate,s=(0,E.U2)(o,"update");t.set("data",r),t.set("origin",i),t.set("animateCfg",o),t.set("coordinate",a),t.set("visible",e.get("visible")),t.getChildren().forEach((function(l,u){var c=e.getChildByIndex(u);if(c){l.set("data",r),l.set("origin",i),l.set("animateCfg",o),l.set("coordinate",a);var h=os(l,c);s?ec(l,s,{toAttrs:h,coordinate:a}):l.attr(h),c.isGroup()&&_c(l,c,n)}else t.removeChild(l),l.remove(!0)})),(0,E.S6)(e.getChildren(),(function(e,n){n>=t.getCount()&&(e.destroyed||t.add(e))}))}var Ic=function(){function t(t){this.shapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){return void 0===n&&(n=!1),(0,A.mG)(this,void 0,void 0,(function(){var r,i,o,a,s,l,u,c,h=this;return(0,A.Jh)(this,(function(f){switch(f.label){case 0:if(r={},i=this.createOffscreenGroup(),!t.length)return[3,2];try{for(o=(0,A.XA)(t),a=o.next();!a.done;a=o.next())s=a.value,s&&(r[s.id]=this.renderLabel(s,i))}catch(p){u={error:p}}finally{try{a&&!a.done&&(c=o.return)&&c.call(o)}finally{if(u)throw u.error}}return[4,this.doLayout(t,e,r)];case 1:f.sent(),this.renderLabelLine(t,r),this.renderLabelBackground(t,r),this.adjustLabel(t,r),f.label=2;case 2:return l=this.shapesMap,(0,E.S6)(r,(function(t,e){if(t.destroyed)delete r[e];else{if(l[e]){var i=t.get("data"),o=t.get("origin"),a=t.get("coordinate"),s=t.get("animateCfg"),u=l[e];_c(u,r[e],{data:i,origin:o,animateCfg:s,coordinate:a}),r[e]=u}else{if(h.container.destroyed)return;h.container.add(t);var c=(0,E.U2)(t.get("animateCfg"),n?"enter":"appear");c&&ec(t,c,{toAttrs:(0,A.pi)({},t.attr()),coordinate:t.get("coordinate")})}delete l[e]}})),(0,E.S6)(l,(function(t){var e=(0,E.U2)(t.get("animateCfg"),"leave");e?ec(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.shapesMap=r,i.destroy(),[2]}}))}))},t.prototype.clear=function(){this.container.clear(),this.shapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},t.prototype.renderLabel=function(t,e){var n,r=t.id,i=t.elementId,o=t.data,a=t.mappingData,s=t.coordinate,l=t.animate,u=t.content,c={id:r,elementId:i,data:o,origin:(0,A.pi)((0,A.pi)({},a),{data:a[L]}),coordinate:s},h=e.addGroup((0,A.pi)({name:"label",animateCfg:!1!==this.animate&&null!==l&&!1!==l&&(0,E.b$)({},this.animate,l)},c));if(u.isGroup&&u.isGroup()||u.isShape&&u.isShape()){var f=u.getCanvasBBox(),p=f.width,d=f.height,g=(0,E.U2)(t,"textAlign","left"),v=t.x,m=t.y-d/2;"center"===g?v-=p/2:"right"!==g&&"end"!==g||(v-=p),Ec(u,v,m),n=u,h.add(u)}else{var y=(0,E.U2)(t,["style","fill"]);n=h.addShape("text",(0,A.pi)({attrs:(0,A.pi)((0,A.pi)({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:(0,E.U2)(t,"textBaseline","middle"),text:t.content},t.style),{fill:(0,E.Ft)(y)?t.color:y})},c))}return t.rotate&&Dc(n,t.rotate),h},t.prototype.doLayout=function(t,e,n){return(0,A.mG)(this,void 0,void 0,(function(){var r,i=this;return(0,A.Jh)(this,(function(o){switch(o.label){case 0:return this.layout?(r=(0,E.kJ)(this.layout)?this.layout:[this.layout],[4,Promise.all(r.map((function(r){var o=cc((0,E.U2)(r,"type",""));if(o){var a=[],s=[];return(0,E.S6)(n,(function(t,n){a.push(t),s.push(e[t.get("elementId")])})),o(t,a,s,i.region,r.cfg)}})))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){(0,E.S6)(t,(function(t){var n=(0,E.U2)(t,"coordinate");if(t&&n){var r=n.getCenter(),i=n.getRadius();if(t.labelLine){var o=(0,E.U2)(t,"labelLine",{}),a=t.id,s=o.path;if(!s){var l=ts(r.x,r.y,i,t.angle);s=[["M",l.x,l.y],["L",t.x,t.y]]}var u=e[a];u.destroyed||u.addShape("path",{capture:!1,attrs:(0,A.pi)({path:s,stroke:t.color?t.color:(0,E.U2)(t,["style","fill"],"#000"),fill:null},o.style),id:a,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){(0,E.S6)(t,(function(t){var n=(0,E.U2)(t,"coordinate"),r=(0,E.U2)(t,"background");if(r&&n){var i=t.id,o=e[i];if(!o.destroyed){var a=o.getChildren()[0];if(a){var s=Oc(o,t,r.padding),l=s.rotation,u=(0,A._T)(s,["rotation"]),c=o.addShape("rect",{attrs:(0,A.pi)((0,A.pi)({},u),r.style||{}),id:i,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(c.setZIndex(-1),l){var h=a.getMatrix();c.setMatrix(h)}}}}}))},t.prototype.createOffscreenGroup=function(){var t=this.container,e=t.getGroupBase(),n=new e({});return n},t.prototype.adjustLabel=function(t,e){(0,E.S6)(t,(function(t){if(t){var n=t.id,r=e[n];if(!r.destroyed){var i=r.findAll((function(t){return"path"!==t.get("type")}));(0,E.S6)(i,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}(),Pc=Ic;function Lc(t){var e=0;return(0,E.S6)(t,(function(t){e+=t})),e/t.length}var Rc=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],r=this.getLabelCfgs(t);return(0,E.S6)(t,(function(t,i){var o=r[i];if(!o||(0,E.UM)(t.x)||(0,E.UM)(t.y))n.push(null);else{var a=(0,E.kJ)(o.content)?o.content:[o.content];o.content=a;var s=a.length;(0,E.S6)(a,(function(r,i){if((0,E.UM)(r)||""===r)n.push(null);else{var a=(0,A.pi)((0,A.pi)({},o),e.getLabelPoint(o,t,i));a.textAlign||(a.textAlign=e.getLabelAlign(a,i,s)),a.offset<=0&&(a.labelLine=null),n.push(a)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),(0,A.mG)(this,void 0,void 0,(function(){var n,r,i;return(0,A.Jh)(this,(function(o){switch(o.label){case 0:return n=this.getLabelItems(t),r=this.getLabelsRenderer(),i=this.getGeometryShapes(),[4,r.render(n,i,e)];case 1:return o.sent(),[2]}}))}))},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,r=n.type,i=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?(0,E.U2)(i,"innerLabels",{}):(0,E.U2)(i,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e,n=this.geometry,r=this.getDefaultLabelCfg(),i=n.type,o=n.theme;return e="polygon"===i||t.offset<0&&!["line","point","path"].includes(i)?(0,E.b$)({},r,o.innerLabels,t):(0,E.b$)({},r,o.labels,t),e},t.prototype.setLabelPosition=function(t,e,n,r){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var r=t.offset,i=this.getCoordinate(),o=i.isTransposed,a=o?"x":"y",s=o?1:-1,l={x:0,y:0};return l[a]=e>0||1===n?r*s:r*s*-1,l},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),i=t.content.length;function o(e,n,r){void 0===r&&(r=!1);var i=e;return(0,E.kJ)(i)&&(i=1===t.content.length?r?Lc(i):i.length<=2?i[e.length-1]:Lc(i):i[n]),i}var a={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},s=(0,E.kJ)(e.shape)?e.shape[0]:e.shape,l="funnel"===s||"pyramid"===s;if("polygon"===this.geometry.type){var u=is(e.x,e.y);a.x=u[0],a.y=u[1]}else"interval"!==this.geometry.type||l?(a.x=o(e.x,n),a.y=o(e.y,n)):(a.x=o(e.x,n,!0),a.y=o(e.y,n));if(l){var c=(0,E.U2)(e,"nextPoints"),h=(0,E.U2)(e,"points");if(c){var f=r.convert(h[1]),p=r.convert(c[1]);a.x=(f.x+p.x)/2,a.y=(f.y+p.y)/2}else if("pyramid"===s){f=r.convert(h[1]),p=r.convert(h[2]);a.x=(f.x+p.x)/2,a.y=(f.y+p.y)/2}}t.position&&this.setLabelPosition(a,e,n,t.position);var d=this.getLabelOffsetPoint(t,n,i);return a.start={x:a.x,y:a.y},a.x+=d.x,a.y+=d.y,a.color=e.color,a},t.prototype.getLabelAlign=function(t,e,n){var r="center",i=this.getCoordinate();if(i.isTransposed){var o=t.offset;r=o<0?"right":0===o?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),o=t[L],a=e.getElementId(t);return"line"===n||"area"===n?a+=" ".concat(o[r.field]):"path"===n&&(a+=" ".concat(o[r.field],"-").concat(o[i.field])),a},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,i=t.animateOption,o=this.geometry.coordinate,a=this.labelsRenderer;return a||(a=new Pc({container:e,layout:(0,E.U2)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=a),a.region=r,a.animate=!!i&&tc("label",o),a},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,r=n.labelOption,i=n.scales,o=n.coordinate,a=r,s=a.fields,l=a.callback,u=a.cfg,c=s.map((function(t){return i[t]})),h=[];return(0,E.S6)(t,(function(t,n){var r,i=t[L],a=e.getLabelText(i,c);if(l){var f=s.map((function(t){return i[t]}));if(r=l.apply(void 0,(0,A.ev)([],(0,A.CR)(f),!1)),(0,E.UM)(r))return void h.push(null)}var p=(0,A.pi)((0,A.pi)({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:i,mappingData:t,coordinate:o},u),r);(0,E.mf)(p.position)&&(p.position=p.position(i,t,n));var d=e.getLabelOffset(p.offset||0),g=e.getDefaultLabelCfg(d,p.position);p=(0,E.b$)({},g,p),p.offset=e.getLabelOffset(p.offset||0);var v=p.content;(0,E.mf)(v)?p.content=v(i,t,n):(0,E.o8)(v)&&(p.content=a[0]),h.push(p)})),h},t.prototype.getLabelText=function(t,e){var n=[];return(0,E.S6)(e,(function(e){var r=t[e.field];r=(0,E.kJ)(r)?r.map((function(t){return e.getText(t)})):e.getText(r),(0,E.UM)(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return(0,E.hj)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return(0,E.S6)(t.elementsMap,(function(t,n){e[n]=t.shape})),(0,E.S6)(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}(),Nc=Rc;function jc(t,e,n){if(!t)return n;var r;if(t.callback&&t.callback.length>1){var i=Array(t.callback.length-1).fill("");r=t.mapping.apply(t,(0,A.ev)([e],(0,A.CR)(i),!1)).join("")}else r=t.mapping(e).join("");return r||n}var zc={hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}},Uc=["line","cross","tick","plus","hyphen"];function Vc(t,e){return(0,E.mf)(e)?e(t):(0,E.b$)({},t,e)}function Hc(t,e){var n=t.symbol;if((0,E.HD)(n)&&-1!==Uc.indexOf(n)){var r=(0,E.U2)(t,"style",{}),i=(0,E.U2)(r,"lineWidth",1),o=r.stroke||r.fill||e;t.style=(0,E.b$)({},t.style,{lineWidth:i,stroke:o,fill:null})}}function $c(t){var e=t.symbol;(0,E.HD)(e)&&zc[e]&&(t.symbol=zc[e])}function Gc(t){return t.startsWith(m.LEFT)||t.startsWith(m.RIGHT)?"vertical":"horizontal"}function Wc(t,e,n,r,i){var o=n.getScale(n.type);if(o.isCategory){var a=o.field,s=e.getAttribute("color"),l=e.getAttribute("shape"),u=t.getTheme().defaultColor,c=e.coordinate.isPolar;return o.getTicks().map((function(n,h){var f,p=n.text,d=n.value,g=p,v=o.invert(d),m=0===t.filterFieldData(a,[(f={},f[a]=v,f)]).length;(0,E.S6)(t.views,(function(t){var e;t.filterFieldData(a,[(e={},e[a]=v,e)]).length||(m=!0)}));var y=jc(s,v,u),b=jc(l,v,"point"),x=e.getShapeMarker(b,{color:y,isInPolar:c}),w=i;return(0,E.mf)(w)&&(w=w(g,h,(0,A.pi)({name:g,value:v},(0,E.b$)({},r,x)))),x=(0,E.b$)({},r,x,ls((0,A.pi)({},w),["style"])),Hc(x,y),w&&w.style&&(x.style=Vc(x.style,w.style)),$c(x),{id:v,name:g,value:v,marker:x,unchecked:m}}))}return[]}function qc(t,e,n){return n.map((function(n,r){var i=e;(0,E.mf)(i)&&(i=i(n.name,r,(0,E.b$)({},t,n)));var o=(0,E.mf)(n.marker)?n.marker(n.name,r,(0,E.b$)({},t,n)):n.marker,a=(0,E.b$)({},t,i,o);return $c(a),n.marker=a,n}))}function Xc(t,e){var n=(0,E.U2)(t,["components","legend"],{});return(0,E.b$)({},(0,E.U2)(n,["common"],{}),(0,E.b$)({},(0,E.U2)(n,[e],{})))}function Zc(t){return!t&&(null===t||void 0===t||isNaN(t))}function Yc(t){if((0,E.kJ)(t))return Zc(t[1].y);var e=t.y;return(0,E.kJ)(e)?Zc(e[0]):Zc(e)}function Qc(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var r=[],i=0,o=t.length;i<o;i++){var a=t[i];Yc(a)||r.push(a)}return[r]}var s=[],l=[];for(i=0,o=t.length;i<o;i++){a=t[i];Yc(a)?l.length&&((1!==l.length||n)&&s.push(l),l=[]):l.push(a)}return l.length&&s.push(l),s}function Kc(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var o=t[0];return o&&(e.push(["L",o.x,o.y]),e.push(["z"])),e}function Jc(t){for(var e=t.length/2,n=[],r=[],i=0;i<t.length;i++)i<e?n.push(t[i]):r.push(t[i]);var o=ol(n,!1),a=ol(r,!1);r.length&&o.push(["L",r[0].x,r[0].y]),a.shift();var s=o.concat(a);return n.length&&s.push(["L",n[0].x,n[0].y]),s.push(["z"]),s}function th(t,e,n,r){void 0===r&&(r="");var i=t.style,o=void 0===i?{}:i,a=t.defaultStyle,s=t.color,l=t.size,u=(0,A.pi)((0,A.pi)({},a),o);return s&&(e&&(o.stroke||(u.stroke=s)),n&&(o.fill||(u.fill=s))),r&&(0,E.UM)(o[r])&&!(0,E.UM)(l)&&(u[r]=l),u}function eh(t){return(0,E.b$)({},{fill:"#CCD6EC",fillOpacity:.3},(0,E.U2)(t,["background","style"]))}function nh(t){var e=t.x,n=(0,E.kJ)(t.y)?t.y:[t.y];return n.map((function(t,n){return{x:(0,E.kJ)(e)?e[n]:e,y:t}}))}var rh={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};function ih(t,e){var n=t.color;return{symbol:rh[e],style:{lineWidth:2,r:6,stroke:n}}}function oh(t,e,n){for(var r=t.isStack,i=t.connectNulls,o=t.isInCircle,a=t.showSinglePoint,s=th(t,!0,!1,"lineWidth"),l=Qc(t.points,i,a),u=[],c=0,h=l.length;c<h;c++){var f=l[c];u=u.concat(lh(f,o,r,e,n,s))}return s.path=u,s}function ah(t,e,n,r,i){return 1===t.length?[["M",t[0].x,t[0].y-i.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+i.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),o=ol(t,!1,r)):(o=il(t,!1),e&&o.push(["Z"])),o);var o}function sh(t,e,n,r,i,o){var a=[],s=[];(0,E.S6)(t,(function(t){var e=nh(t);a.push(e[1]),s.push(e[0])}));var l=ah(a,e,r,i,o),u=ah(s,e,r,i,o);return n?l:l.concat(u)}function lh(t,e,n,r,i,o){if(t.length){var a=t[0];return(0,E.kJ)(a.y)?sh(t,e,n,r,i,o):ah(t,e,r,i,o)}return[]}gc("line",{defaultShapeType:"line"});(0,E.S6)(["line","dot","dash","smooth"],(function(t){vc("line",t,{draw:function(e,n){var r,i="smooth"===t;if(i){var o=this.coordinate,a=o.start,s=o.end;r=[[a.x,s.y],[s.x,a.y]]}var l=oh(e,i,r),u=n.addShape({type:"path",attrs:l,name:"line",capture:!i});return u},getMarker:function(e){return ih(e,t)}})}));var uh={getLegendItems:Wc,translate:Ec,rotate:Dc,zoom:Fc,transform:Ac,getAngle:rs,getSectorPath:es,polarToCartesian:ts,getDelegationObject:hl,getTooltipItems:yu,getMappingValue:jc,getPath:lh,getPathPoints:Qc},ch={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},hh={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},fh=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],ph=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],dh=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],gh=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?fh:e,r=t.paletteQualitative20,i=void 0===r?ph:r,o=t.brandColor,a=void 0===o?n[0]:o,s={backgroundColor:"#141414",brandColor:a,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:n,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:dh,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:hh[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:hh[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:ch[85],axisTickLineBorderColor:hh[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:hh[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:hh[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:hh[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:hh[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:fh[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:hh[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:hh[45],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:hh[45],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:hh[65],legendPageNavigatorTextFontSize:12,sliderRailFillColor:hh[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:hh[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:ch[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:ch[25],annotationArcBorderColor:hh[15],annotationArcBorder:1,annotationLineBorderColor:hh[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:hh[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:hh[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:hh[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:hh[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:hh[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:ch[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:hh[65],overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:ch[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:hh[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:fh[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:ch[100],pointBorderOpacity:1,pointActiveBorderColor:hh[100],pointSelectedBorder:2,pointSelectedBorderColor:hh[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:fh[0],hollowPointBorderOpacity:.95,hollowPointFillColor:ch[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:hh[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:hh[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:fh[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:fh[0],areaFillOpacity:.25,areaActiveFillColor:fh[0],areaActiveFillOpacity:.5,areaSelectedFillColor:fh[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:fh[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:hh[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:hh[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:fh[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:hh[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:hh[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:fh[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:ch[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:hh[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:hh[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return(0,A.pi)((0,A.pi)({},s),t)},vh=gh();function mh(){return window?window.devicePixelRatio:1}function yh(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function bh(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r}function xh(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function wh(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function Ch(t,e){return t[0]===e[0]&&t[1]===e[1]}var Sh=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Ah=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Eh=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,kh=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function Dh(t,e){var n=t.match(kh);(0,E.S6)(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function Fh(t,e,n){var r,i,o=Sh.exec(n),a=parseFloat(o[1])%360*(Math.PI/180),s=o[2],l=e.getBBox();a>=0&&a<.5*Math.PI?(r={x:l.minX,y:l.minY},i={x:l.maxX,y:l.maxY}):.5*Math.PI<=a&&a<Math.PI?(r={x:l.maxX,y:l.minY},i={x:l.minX,y:l.maxY}):Math.PI<=a&&a<1.5*Math.PI?(r={x:l.maxX,y:l.maxY},i={x:l.minX,y:l.minY}):(r={x:l.minX,y:l.maxY},i={x:l.maxX,y:l.minY});var u=Math.tan(a),c=u*u,h=(i.x-r.x+u*(i.y-r.y))/(c+1)+r.x,f=u*(i.x-r.x+u*(i.y-r.y))/(c+1)+r.y,p=t.createLinearGradient(r.x,r.y,h,f);return Dh(s,p),p}function Mh(t,e,n){var r=Ah.exec(n),i=parseFloat(r[1]),o=parseFloat(r[2]),a=parseFloat(r[3]),s=r[4];if(0===a){var l=s.match(kh);return l[l.length-1].split(":")[1]}var u=e.getBBox(),c=u.maxX-u.minX,h=u.maxY-u.minY,f=Math.sqrt(c*c+h*h)/2,p=t.createRadialGradient(u.minX+c*i,u.minY+h*o,0,u.minX+c/2,u.minY+h/2,a*f);return Dh(s,p),p}function Oh(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,o=Eh.exec(n),a=o[1],s=o[2];function l(){r=t.createPattern(i,a),e.set("pattern",r),e.set("patternSource",n)}switch(a){case"a":a="repeat";break;case"x":a="repeat-x";break;case"y":a="repeat-y";break;case"n":a="no-repeat";break;default:a="no-repeat"}return i=new Image,s.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=s,i.complete?l():(i.onload=l,i.src=i.src),r}function Th(t,e,n){var r=e.getBBox();if(isNaN(r.x)||isNaN(r.y)||isNaN(r.width)||isNaN(r.height))return n;if((0,E.HD)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return Fh(t,e,n);if("r"===n[0])return Mh(t,e,n);if("p"===n[0])return Oh(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0}function Bh(t){var e=0,n=0,r=0,i=0;return(0,E.kJ)(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,[e,n,r,i]}function _h(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ih(t,e){return _h(t)*_h(e)?(t[0]*e[0]+t[1]*e[1])/(_h(t)*_h(e)):1}function Ph(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ih(t,e))}function Lh(t,e){var n=e[1],r=e[2],i=(0,E.wQ)((0,E.c$)(e[3]),2*Math.PI),o=e[4],a=e[5],s=t[0],l=t[1],u=e[6],c=e[7],h=Math.cos(i)*(s-u)/2+Math.sin(i)*(l-c)/2,f=-1*Math.sin(i)*(s-u)/2+Math.cos(i)*(l-c)/2,p=h*h/(n*n)+f*f/(r*r);p>1&&(n*=Math.sqrt(p),r*=Math.sqrt(p));var d=n*n*(f*f)+r*r*(h*h),g=d?Math.sqrt((n*n*(r*r)-d)/d):1;o===a&&(g*=-1),isNaN(g)&&(g=0);var v=r?g*n*f/r:0,m=n?g*-r*h/n:0,y=(s+u)/2+Math.cos(i)*v-Math.sin(i)*m,b=(l+c)/2+Math.sin(i)*v+Math.cos(i)*m,x=[(h-v)/n,(f-m)/r],w=[(-1*h-v)/n,(-1*f-m)/r],C=Ph([1,0],x),S=Ph(x,w);return Ih(x,w)<=-1&&(S=Math.PI),Ih(x,w)>=1&&(S=0),0===a&&S>0&&(S-=2*Math.PI),1===a&&S<0&&(S+=2*Math.PI),{cx:y,cy:b,rx:Ch(t,[u,c])?0:n,ry:Ch(t,[u,c])?0:r,startAngle:C,endAngle:C+S,xRotation:i,arcFlag:o,sweepFlag:a}}var Rh=Math.sin,Nh=Math.cos,jh=Math.atan2,zh=Math.PI;function Uh(t,e,n,r,i,o,a){var s=e.stroke,l=e.lineWidth,u=n-i,c=r-o,h=jh(c,u),f=new Nf({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Nh(zh/6)+","+10*Rh(zh/6)+" L0,0 L"+10*Nh(zh/6)+",-"+10*Rh(zh/6),stroke:s,lineWidth:l}});f.translate(i,o),f.rotateAtPoint(i,o,h),t.set(a?"startArrowShape":"endArrowShape",f)}function Vh(t,e,n,r,i,o,a){var s=e.startArrow,l=e.endArrow,u=e.stroke,c=e.lineWidth,h=a?s:l,f=h.d,p=h.fill,d=h.stroke,g=h.lineWidth,v=(0,A._T)(h,["d","fill","stroke","lineWidth"]),m=n-i,y=r-o,b=jh(y,m);f&&(i-=Nh(b)*f,o-=Rh(b)*f);var x=new Nf({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:(0,A.pi)((0,A.pi)({},v),{stroke:d||u,lineWidth:g||c,fill:p})});x.translate(i,o),x.rotateAtPoint(i,o,b),t.set(a?"startArrowShape":"endArrowShape",x)}function Hh(t,e,n,r,i){var o=jh(r-e,n-t);return{dx:Nh(o)*i,dy:Rh(o)*i}}function $h(t,e,n,r,i,o){"object"===typeof e.startArrow?Vh(t,e,n,r,i,o,!0):e.startArrow?Uh(t,e,n,r,i,o,!0):t.set("startArrowShape",null)}function Gh(t,e,n,r,i,o){"object"===typeof e.endArrow?Vh(t,e,n,r,i,o,!1):e.endArrow?Uh(t,e,n,r,i,o,!1):t.set("startArrowShape",null)}var Wh={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function qh(t,e){var n=e.attr();for(var r in n){var i=n[r],o=Wh[r]?Wh[r]:r;"matrix"===o&&i?t.transform(i[0],i[1],i[3],i[4],i[6],i[7]):"lineDash"===o&&t.setLineDash?(0,E.kJ)(i)&&t.setLineDash(i):("strokeStyle"===o||"fillStyle"===o?i=Th(t,e,i):"globalAlpha"===o&&(i*=t.globalAlpha),t[o]=i)}}function Xh(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.cfg.visible?i.draw(t,n):i.skipDraw()}}function Zh(t,e,n){var r=t.get("refreshElements");(0,E.S6)(r,(function(e){if(e!==t){var n=e.cfg.parent;while(n&&n!==t&&!n.cfg.refresh)n.cfg.refresh=!0,n=n.cfg.parent}})),r[0]===t?Kh(e,n):Yh(e,n)}function Yh(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.cfg.visible)if(r.cfg.hasChanged)r.cfg.refresh=!0,r.isGroup()&&Kh(r.cfg.children,e);else if(r.cfg.refresh)r.isGroup()&&Yh(r.cfg.children,e);else{var i=Jh(r,e);r.cfg.refresh=i,i&&r.isGroup()&&Yh(r.cfg.children,e)}}}function Qh(t){for(var e=0;e<t.length;e++){var n=t[e];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&Qh(n.cfg.children)}}function Kh(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.refresh=!0,r.isGroup()&&Kh(r.get("children"),e)}}function Jh(t,e){var n=t.cfg.cacheCanvasBBox,r=t.cfg.isInView&&n&&xh(n,e);return r}function tf(t,e,n,r){var i=n.path,o=n.startArrow,a=n.endArrow;if(i){var s=[0,0],l=[0,0],u={dx:0,dy:0};e.beginPath();for(var c=0;c<i.length;c++){var h=i[c],f=h[0];if(0===c&&o&&o.d){var p=t.getStartTangent();u=Hh(p[0][0],p[0][1],p[1][0],p[1][1],o.d)}else if(c===i.length-2&&"Z"===i[c+1][0]&&a&&a.d){var d=i[c+1];if("Z"===d[0]){p=t.getEndTangent();u=Hh(p[0][0],p[0][1],p[1][0],p[1][1],a.d)}}else if(c===i.length-1&&a&&a.d&&"Z"!==i[0]){p=t.getEndTangent();u=Hh(p[0][0],p[0][1],p[1][0],p[1][1],a.d)}var g=u.dx,v=u.dy;switch(f){case"M":e.moveTo(h[1]-g,h[2]-v),l=[h[1],h[2]];break;case"L":e.lineTo(h[1]-g,h[2]-v);break;case"Q":e.quadraticCurveTo(h[1],h[2],h[3]-g,h[4]-v);break;case"C":e.bezierCurveTo(h[1],h[2],h[3],h[4],h[5]-g,h[6]-v);break;case"A":var m=void 0;r?(m=r[c],m||(m=Lh(s,h),r[c]=m)):m=Lh(s,h);var y=m.cx,b=m.cy,x=m.rx,w=m.ry,C=m.startAngle,S=m.endAngle,A=m.xRotation,E=m.sweepFlag;if(e.ellipse)e.ellipse(y,b,x,w,A,C,S,1-E);else{var k=x>w?x:w,D=x>w?1:x/w,F=x>w?w/x:1;e.translate(y,b),e.rotate(A),e.scale(D,F),e.arc(0,0,k,C,S,1-E),e.scale(1/D,1/F),e.rotate(-A),e.translate(-y,-b)}break;case"Z":e.closePath();break;default:break}if("Z"===f)s=l;else{var M=h.length;s=[h[M-2],h[M-1]]}}}}function ef(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function nf(t){var e;if(t.destroyed)e=t["_cacheCanvasBBox"];else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),i=t.getCanvasBBox(),o=i&&!(!i.width||!i.height);r&&o?e=wh(n,i):r?e=n:o&&(e=i)}return e}function rf(t){if(!t.length)return null;var e=[],n=[],r=[],i=[];return(0,E.S6)(t,(function(t){var o=nf(t);o&&(e.push(o.minX),n.push(o.minY),r.push(o.maxX),i.push(o.maxY))})),{minX:(0,E.VV)(e),minY:(0,E.VV)(n),maxX:(0,E.Fp)(r),maxY:(0,E.Fp)(i)}}function of(t,e){return t&&e&&xh(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}var af=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.onCanvasChange=function(t){ef(this,t)},e.prototype.getShapeBase=function(){return h},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),qh(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];(0,E.S6)(t,(function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(e.length){var i=(0,E.VV)(e),o=(0,E.Fp)(e),a=(0,E.VV)(n),s=(0,E.Fp)(n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:s,width:o-i,height:s-a};var l=this.cfg.canvas;if(l){var u=l.getViewRange();this.set("isInView",xh(r,u))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),qh(t,this),this._applyClip(t,this.getClip()),Xh(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(J.AbstractGroup),sf=af,lf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return h},e.prototype.getGroupBase=function(){return sf},e.prototype.onCanvasChange=function(t){ef(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=(0,J.getBBoxMethod)(t),r=n(this),i=e/2,o=r.x-i,a=r.y-i,s=r.x+r.width+i,l=r.y+r.height+i;return{x:o,minX:o,y:a,minY:a,width:r.width+e,height:r.height+e,maxX:s,maxY:l}},e.prototype.isFill=function(){return!!this.attrs["fill"]||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs["stroke"]},e.prototype._applyClip=function(t,e){e&&(t.save(),qh(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var r=this.getCanvasBBox();if(!xh(e,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),qh(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=xh(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&((0,E.UM)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&((0,E.UM)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t["lineWidth"]+t["lineAppendWidth"]},e}(J.AbstractShape),uf=lf,cf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,s=o.y,l=o.r,u=i/2,c=yh(a,s,t,e);return r&&n?c<=l+u:r?c<=l:!!n&&(c>=l-u&&c<=l+u)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(uf),hf=cf;function ff(t,e,n,r){return t/(n*n)+e/(r*r)}var pf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=i/2,s=o.x,l=o.y,u=o.rx,c=o.ry,h=(t-s)*(t-s),f=(e-l)*(e-l);return r&&n?ff(h,f,u+a,c+a)<=1:r?ff(h,f,u,c)<=1:!!n&&(ff(h,f,u-a,c-a)>=1&&ff(h,f,u+a,c+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,o,0,0,2*Math.PI,!1);else{var a=i>o?i:o,s=i>o?1:i/o,l=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,l),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(uf),df=pf;function gf(t){return t instanceof HTMLElement&&(0,E.HD)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var vf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if((0,E.HD)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):gf(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.sx,s=e.sy,l=e.swidth,u=e.sheight,c=e.img;(c instanceof Image||gf(c))&&((0,E.UM)(a)||(0,E.UM)(s)||(0,E.UM)(l)||(0,E.UM)(u)?t.drawImage(c,n,r,i,o):t.drawImage(c,a,s,l,u,n,r,i,o))},e}(uf),mf=vf,yf=n(32793);function bf(t,e,n,r,i,o,a){var s=Math.min(t,n),l=Math.max(t,n),u=Math.min(e,r),c=Math.max(e,r),h=i/2;return o>=s-h&&o<=l+h&&a>=u-h&&a<=c+h&&yf.x1.pointToLine(t,e,n,r,o,a)<=i/2}var xf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.startArrow,a=t.endArrow;o&&$h(this,t,r,i,e,n),a&&Gh(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr(),a=o.x1,s=o.y1,l=o.x2,u=o.y2;return bf(a,s,l,u,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,l={dx:0,dy:0},u={dx:0,dy:0};a&&a.d&&(l=Hh(n,r,i,o,e.startArrow.d)),s&&s.d&&(u=Hh(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+l.dx,r+l.dy),t.lineTo(i-u.dx,o-u.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return yf.x1.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return yf.x1.pointAt(n,r,i,o,t)},e}(uf),wf=xf,Cf={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},Sf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return(0,E.UM)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,o=r.y,a=r.symbol||"circle",s=this._getR(r);if((0,E.mf)(a))t=a,n=t(i,o,s),n=(0,Sa.wb)(n);else{if(t=e.Symbols[a],!t)return console.warn(a+" marker is not supported."),null;n=t(i,o,s)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");tf(this,t,{path:e},n)},e.Symbols=Cf,e}(uf),Af=Sf;function Ef(t,e,n){var r=(0,J.getOffScreenContext)();return t.createPath(r),r.isPointInPath(e,n)}var kf=1e-6;function Df(t){return Math.abs(t)<kf?0:t<0?-1:1}function Ff(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function Mf(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],s=t[(o+1)%i];if(Ff(a,s,[e,n]))return!0;Df(a[1]-n)>0!==Df(s[1]-n)>0&&Df(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}function Of(t,e,n,r,i,o,a,s){var l=(Math.atan2(s-e,a-t)+2*Math.PI)%(2*Math.PI);if(l<r||l>i)return!1;var u={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return yh(u.x,u.y,a,s)<=o/2}var Tf=yr.vs;function Bf(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r],o=i[0];if("C"===o||"A"===o||"Q"===o){e=!0;break}}return e}function _f(t,e,n,r,i){for(var o=!1,a=e/2,s=0;s<t.length;s++){var l=t[s],u=l.currentPoint,c=l.params,h=l.prePoint,f=l.box;if(!f||bh(f.x-a,f.y-a,f.width+e,f.height+e,n,r)){switch(l.command){case"L":case"Z":o=bf(h[0],h[1],u[0],u[1],e,n,r);break;case"Q":var p=yf.lD.pointDistance(h[0],h[1],c[1],c[2],c[3],c[4],n,r);o=p<=e/2;break;case"C":var d=yf.Ll.pointDistance(h[0],h[1],c[1],c[2],c[3],c[4],c[5],c[6],n,r,i);o=d<=e/2;break;case"A":var g=l.arcParams,v=g.cx,m=g.cy,y=g.rx,b=g.ry,x=g.startAngle,w=g.endAngle,C=g.xRotation,S=[n,r,1],A=y>b?y:b,E=y>b?1:y/b,k=y>b?b/y:1,D=Tf(null,[["t",-v,-m],["r",-C],["s",1/E,1/k]]);vr(S,S,D),o=Of(0,0,A,x,w,e,S[0],S[1]);break;default:break}if(o)break}}return o}function If(t){for(var e=t.length,n=[],r=[],i=[],o=0;o<e;o++){var a=t[o],s=a[0];"M"===s?(i.length&&(r.push(i),i=[]),i.push([a[1],a[2]])):"Z"===s?i.length&&(n.push(i),i=[]):i.push([a[1],a[2]])}return i.length>0&&r.push(i),{polygons:n,polylines:r}}var Pf=(0,A.pi)({hasArc:Bf,extractPolygons:If,isPointInStroke:_f},J.PathUtil);function Lf(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];if(r=Mf(o,e,n),r)break}return r}var Rf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=(0,Sa.wb)(t);var e=Pf.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=(0,Sa.zx)(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var r=this.getStartTangent();$h(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}if(n){r=this.getEndTangent();Gh(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(n){var l=this.getTotalLength();s=Pf.isPointInStroke(o,i,t,e,l)}if(!s&&r)if(a)s=Ef(this,t,e);else{var u=this.attr("path"),c=Pf.extractPolygons(u);s=Lf(c.polygons,t,e)||Lf(c.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");tf(this,t,e,n)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return(0,E.UM)(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var i=this.get("curve");if(!r||0===r.length)return i?{x:i[0][1],y:i[0][2]}:null;(0,E.S6)(r,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var o=i[n];if((0,E.UM)(o)||(0,E.UM)(n))return null;var a=o.length,s=i[n+1];return yf.Ll.pointAt(o[a-2],o[a-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",Pf.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,o=0,a=[],s=this.get("curve");s&&((0,E.S6)(s,(function(t,e){n=s[e+1],r=t.length,n&&(i+=yf.Ll.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",i),0!==i?((0,E.S6)(s,(function(l,u){n=s[u+1],r=l.length,n&&(t=[],t[0]=o/i,e=yf.Ll.length(l[r-2],l[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/i,a.push(t))})),this.set("tCache",a)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([i[0]-o[0],i[1]-o[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(uf),Nf=Rf;function jf(t,e,n,r,i){var o=t.length;if(o<2)return!1;for(var a=0;a<o-1;a++){var s=t[a][0],l=t[a][1],u=t[a+1][0],c=t[a+1][1];if(bf(s,l,u,c,e,n,r))return!0}if(i){var h=t[0],f=t[o-1];if(bf(h[0],h[1],f[0],f[1],e,n,r))return!0}return!1}var zf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr().points,a=!1;return n&&(a=jf(o,i,t,e,!0)),!a&&r&&(a=Mf(o,t,e)),a},e.prototype.createPath=function(t){var e=this.attr(),n=e.points;if(!(n.length<2)){t.beginPath();for(var r=0;r<n.length;r++){var i=n[r];0===r?t.moveTo(i[0],i[1]):t.lineTo(i[0],i[1])}t.closePath()}},e}(uf),Uf=zf,Vf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,i=e.endArrow,o=n.length,a=n[0][0],s=n[0][1],l=n[o-1][0],u=n[o-1][1];r&&$h(this,t,n[1][0],n[1][1],a,s),i&&Gh(this,t,n[o-2][0],n[o-2][1],l,u)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr().points;return jf(o,i,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,i=e.endArrow,o=n.length;if(!(n.length<2)){var a=n[0][0],s=n[0][1],l=n[o-1][0],u=n[o-1][1];if(r&&r.d){var c=Hh(a,s,n[1][0],n[1][1],r.d);a+=c.dx,s+=c.dy}if(i&&i.d){c=Hh(n[o-2][0],n[o-2][1],l,u,i.d);l-=c.dx,u-=c.dy}t.beginPath(),t.moveTo(a,s);for(var h=0;h<o-1;h++){var f=n[h];t.lineTo(f[0],f[1])}t.lineTo(l,u)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,E.UM)(e)?(this.set("totalLength",yf.aH.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,E.S6)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),yf.x1.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];(0,E.S6)(t,(function(a,s){t[s+1]&&(n=[],n[0]=i/e,r=yf.x1.length(a[0],a[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(uf),Hf=Vf;function $f(t,e,n,r,i,o,a){var s=i/2;return bh(t-s,e-s,n,i,o,a)||bh(t+n-s,e-s,i,r,o,a)||bh(t+s,e+r-s,n,i,o,a)||bh(t-s,e+s,i,r,o,a)}function Gf(t,e,n,r,i,o,a,s){return bf(t+i,e,t+n-i,e,o,a,s)||bf(t+n,e+i,t+n,e+r-i,o,a,s)||bf(t+n-i,e+r,t+i,e+r,o,a,s)||bf(t,e+r-i,t,e+i,o,a,s)||Of(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,o,a,s)||Of(t+n-i,e+r-i,i,0,.5*Math.PI,o,a,s)||Of(t+i,e+r-i,i,.5*Math.PI,Math.PI,o,a,s)||Of(t+i,e+i,i,Math.PI,1.5*Math.PI,o,a,s)}var Wf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,s=o.y,l=o.width,u=o.height,c=o.radius;if(c){var h=!1;return n&&(h=Gf(a,s,l,u,c,i,t,e)),!h&&r&&(h=Ef(this,t,e)),h}var f=i/2;return r&&n?bh(a-f,s-f,l+f,u+f,t,e):r?bh(a,s,l,u,t,e):n?$f(a,s,l,u,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,r,i,o);else{var s=Bh(a),l=s[0],u=s[1],c=s[2],h=s[3];t.moveTo(n+l,r),t.lineTo(n+i-u,r),0!==u&&t.arc(n+i-u,r+u,u,-Math.PI/2,0),t.lineTo(n+i,r+o-c),0!==c&&t.arc(n+i-c,r+o-c,c,0,Math.PI/2),t.lineTo(n+h,r+o),0!==h&&t.arc(n+h,r+o-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+l),0!==l&&t.arc(n+l,r+l,l,Math.PI,1.5*Math.PI),t.closePath()}},e}(uf),qf=Wf,Xf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=(0,J.assembleFont)(t)},e.prototype._setText=function(t){var e=null;(0,E.HD)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,o=i.textBaseline,a=i.x,s=i.y,l=1*i.fontSize,u=this._getSpaceingY(),c=(0,J.getTextHeight)(i.text,i.fontSize,i.lineHeight);(0,E.S6)(e,(function(e,i){r=s+i*(u+l)-c+l,"middle"===o&&(r+=c-l-(c-l)/2),"top"===o&&(r+=c-l),(0,E.UM)(e)||(n?t.fillText(e,a,r):t.strokeText(e,a,r))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var a=n.text;(0,E.UM)(a)||(e?t.fillText(a,r,i):t.strokeText(a,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&((0,E.UM)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&((0,E.UM)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(uf),Zf=Xf;function Yf(t,e){if(e){var n=(0,J.invert)(e);return(0,J.multiplyVec2)(n,t)}return t}function Qf(t,e,n){var r=t.getTotalMatrix();if(r){var i=Yf([e,n,1],r),o=i[0],a=i[1];return[o,a]}return[e,n]}function Kf(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!(0,J.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var r=Qf(t,e,n),i=r[0],o=r[1];if(t.isClipped(i,o))return!1}var a=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=a.minX&&e<=a.maxX&&n>=a.minY&&n<=a.maxY}function Jf(t,e,n){if(!Kf(t,e,n))return null;for(var r=null,i=t.getChildren(),o=i.length,a=o-1;a>=0;a--){var s=i[a];if(s.isGroup())r=Jf(s,e,n);else if(Kf(s,e,n)){var l=s,u=Qf(s,e,n),c=u[0],h=u[1];l.isInShape(c,h)&&(r=s)}if(r)break}return r}var tp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["renderer"]="canvas",e["autoDraw"]=!0,e["localRefresh"]=!0,e["refreshElements"]=[],e["clipView"]=!0,e["quickHit"]=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return h},e.prototype.getGroupBase=function(){return sf},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||mh();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){var r;return r=this.get("quickHit")?Jf(this,e,n):t.prototype.getShape.call(this,e,n,null),r},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();if(e.length&&e[0]===this)t=n;else if(t=rf(e),t){t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1;var r=this.get("clipView");r&&(t=of(t,n))}return t},e.prototype.refreshElement=function(t){var e=this.get("refreshElements");e.push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,E.VS)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),qh(t,this),Xh(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),qh(t,this),Zh(this,n,r),Xh(t,n,r),t.restore()):e.length&&Qh(e),(0,E.S6)(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=(0,E.U7)((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(J.AbstractCanvas),ep=tp,np="0.5.12",rp={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},ip={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function op(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ap(t){var e=rp[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=op(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var i=n.get("el");i||(i=n.createDom(),n.set("el",i)),i.appendChild(r)}return r}function sp(t,e){var n=t.get("el"),r=(0,E.qo)(n.children).sort(e),i=document.createDocumentFragment();r.forEach((function(t){i.appendChild(t)})),n.appendChild(i)}function lp(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],o=r.indexOf(t);if(i){if(o>e)n.insertBefore(t,i);else if(o<e){var a=r[e+1];a?n.insertBefore(t,a):n.appendChild(t)}}else n.appendChild(t)}function up(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var o=e.find("filter",i);o||(o=e.addShadow(i)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}function cp(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);r=r.join(","),-1===r.indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}}function hp(t,e){var n=t.getClip(),r=t.get("el");if(n){if(n&&!r.hasAttribute("clip-path")){ap(n),n.createPath(e);var i=e.addClip(n);r.setAttribute("clip-path","url(#"+i+")")}}else r.removeAttribute("clip-path")}function fp(t,e){e.forEach((function(e){e.draw(t)}))}function pp(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context"),i=t.getParent(),o=i?i.getChildren():[n],a=t.get("el");if("remove"===e){var s=t.get("isClipShape");if(s){var l=a&&a.parentNode,u=l&&l.parentNode;l&&u&&u.removeChild(l)}else a&&a.parentNode&&a.parentNode.removeChild(a)}else if("show"===e)a.setAttribute("visibility","visible");else if("hide"===e)a.setAttribute("visibility","hidden");else if("zIndex"===e)lp(a,o.indexOf(t));else if("sort"===e){var c=t.get("children");c&&c.length&&sp(t,(function(t,e){return c.indexOf(t)-c.indexOf(e)?1:0}))}else"clear"===e?a&&(a.innerHTML=""):"matrix"===e?cp(t):"clip"===e?hp(t,r):"attr"===e||"add"===e&&t.draw(r)}}var dp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=op("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,e)}},e.prototype.onCanvasChange=function(t){pp(this,t)},e.prototype.getShapeBase=function(){return p},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),hp(this,t),this.createPath(t),e.length&&fp(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,E.S6)(e||n,(function(t,e){ip[e]&&r.setAttribute(ip[e],t)})),cp(this)},e}(J.AbstractGroup),gp=dp,vp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,e)}},e.prototype.getShapeBase=function(){return p},e.prototype.getGroupBase=function(){return gp},e.prototype.onCanvasChange=function(t){pp(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=(0,J.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,i=e.y,o=e.width,a=e.height,s=this.getHitLineWidth(),l=s/2,u=r-l,c=i-l,h=r+o+l,f=i+a+l;return{x:u,y:c,minX:u,minY:c,maxX:h,maxY:f,width:o+s,height:a+s}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||ap(this),hp(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),r=n.fill,i=n.fillStyle,o=n.stroke,a=n.strokeStyle,s=n.fillOpacity,l=n.strokeOpacity,u=n.lineWidth,c=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",i):this._setColor(t,"fill",r||i),s&&c.setAttribute(ip.fillOpacity,s)),this.canStroke&&u>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),l&&c.setAttribute(ip.strokeOpacity,l),u&&c.setAttribute(ip.lineWidth,u))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var i=t.find("gradient",n);i||(i=t.addGradient(n)),r.setAttribute(ip[e],"url(#"+i+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){i=t.find("pattern",n);i||(i=t.addPattern(n)),r.setAttribute(ip[e],"url(#"+i+")")}else r.setAttribute(ip[e],n);else r.setAttribute(ip[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,o=r.shadowOffsetY,a=r.shadowBlur,s=r.shadowColor;(i||o||a||s)&&up(this,t)},e.prototype.transform=function(t){var e=this.attr(),n=(t||e).matrix;n&&cp(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas"),i=r.get("el").getBoundingClientRect(),o=t+i.left,a=e+i.top,s=document.elementFromPoint(o,a);return!(!s||!s.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(J.AbstractShape),mp=vp,yp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,E.S6)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):ip[e]&&r.setAttribute(ip[e],t)}))},e}(mp),bp=yp,xp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return(0,A.ZT)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if((0,E.S6)(e||n,(function(t,e){ip[e]&&r.setAttribute(ip[e],t)})),"function"===typeof n["html"]){var i=n["html"].call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var o=r.childNodes,a=o.length-1;a>=0;a--)r.removeChild(o[a]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n["html"]},e}(mp),wp=xp,Cp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,E.S6)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):ip[e]&&r.setAttribute(ip[e],t)}))},e}(mp),Sp=Cp,Ap=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,E.S6)(e||r,(function(t,e){"img"===e?n._setImage(r.img):ip[e]&&i.setAttribute(ip[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if((0,E.HD)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,E.HD)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(mp),Ep=Ap,kp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,E.S6)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var o=(0,E.Kn)(e)?t.addArrow(n,ip[i]):t.getDefaultArrow(n,ip[i]);r.setAttribute(ip[i],"url(#"+o+")")}else r.removeAttribute(ip[i]);else ip[i]&&r.setAttribute(ip[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return yf.x1.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return yf.x1.pointAt(n,r,i,o,t)},e}(mp),Dp=kp,Fp={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},Mp={get:function(t){return Fp[t]},register:function(t,e){Fp[t]=e},remove:function(t){delete Fp[t]},getAll:function(){return Fp}},Op=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return(0,A.ZT)(e,t),e.prototype.createPath=function(t){var e=this.get("el");e.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return(0,E.kJ)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,o=e.symbol||"circle";return t=(0,E.mf)(o)?o:Mp.get(o),t?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=Mp,e}(mp),Tp=Op,Bp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,E.S6)(e||r,(function(e,o){if("path"===o&&(0,E.kJ)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=(0,E.Kn)(e)?t.addArrow(r,ip[o]):t.getDefaultArrow(r,ip[o]);i.setAttribute(ip[o],"url(#"+a+")")}else i.removeAttribute(ip[o]);else ip[o]&&i.setAttribute(ip[o],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(mp),_p=Bp,Ip=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return(0,A.ZT)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,E.S6)(e||n,(function(t,e){"points"===e&&(0,E.kJ)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):ip[e]&&r.setAttribute(ip[e],t)}))},e}(mp),Pp=Ip,Lp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,E.S6)(e||n,(function(t,e){"points"===e&&(0,E.kJ)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):ip[e]&&r.setAttribute(ip[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,E.UM)(e)?(this.set("totalLength",yf.aH.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,E.S6)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),yf.x1.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];(0,E.S6)(t,(function(a,s){t[s+1]&&(n=[],n[0]=i/e,r=yf.x1.length(a[0],a[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(mp),Rp=Lp;function Np(t){var e=0,n=0,r=0,i=0;return(0,E.kJ)(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}}var jp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),o=!1,a=["x","y","width","height","radius"];(0,E.S6)(e||r,(function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&ip[e]&&i.setAttribute(ip[e],t):(i.setAttribute("d",n._assembleRect(r)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var a=Np(o);(0,E.kJ)(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o;var s=[["M "+(e+a.r1)+","+n],["l "+(r-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(i-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-r)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-i)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]];return s.join(" ")},e}(mp),zp=jp,Up=n(43631),Vp=.3,Hp={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},$p={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},Gp={left:"left",start:"left",center:"middle",right:"end",end:"end"},Wp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return(0,A.ZT)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,A.pi)((0,A.pi)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");this._setFont(),(0,E.S6)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?cp(n):ip[e]&&i.setAttribute(ip[e],t)})),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=(0,Up.qY)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",$p[n]||"alphabetic"):t.setAttribute("alignment-baseline",Hp[n]||"baseline"),t.setAttribute("text-anchor",Gp[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,o=void 0===i?"bottom":i;if(t)if(~t.indexOf("\n")){var a=t.split("\n"),s=a.length-1,l="";(0,E.S6)(a,(function(t,e){0===e?"alphabetic"===o?l+='<tspan x="'+r+'" dy="'+-s+'em">'+t+"</tspan>":"top"===o?l+='<tspan x="'+r+'" dy="0.9em">'+t+"</tspan>":"middle"===o?l+='<tspan x="'+r+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===o?l+='<tspan x="'+r+'" dy="-'+(s+Vp)+'em">'+t+"</tspan>":"hanging"===o&&(l+='<tspan x="'+r+'" dy="'+(-(s-1)-Vp)+'em">'+t+"</tspan>"):l+='<tspan x="'+r+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=l}else e.innerHTML=t;else e.innerHTML=""},e}(mp),qp=Wp,Xp=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Zp=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Yp=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function Qp(t){var e=t.match(Yp);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),(0,E.S6)(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}function Kp(t,e){var n,r,i=Xp.exec(t),o=(0,E.wQ)((0,E.c$)(parseFloat(i[1])),2*Math.PI),a=i[2];o>=0&&o<.5*Math.PI?(n={x:0,y:0},r={x:1,y:1}):.5*Math.PI<=o&&o<Math.PI?(n={x:1,y:0},r={x:0,y:1}):Math.PI<=o&&o<1.5*Math.PI?(n={x:1,y:1},r={x:0,y:0}):(n={x:0,y:1},r={x:1,y:0});var s=Math.tan(o),l=s*s,u=(r.x-n.x+s*(r.y-n.y))/(l+1)+n.x,c=s*(r.x-n.x+s*(r.y-n.y))/(l+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",u),e.setAttribute("y2",c),e.innerHTML=Qp(a)}function Jp(t,e){var n=Zp.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),o=parseFloat(n[3]),a=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",o),e.innerHTML=Qp(a)}var td=function(){function t(t){this.cfg={};var e=null,n=(0,E.EL)("gradient_");return"l"===t.toLowerCase()[0]?(e=op("linearGradient"),Kp(t,e)):(e=op("radialGradient"),Jp(t,e)),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),ed=td,nd={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},rd={x:"-40%",y:"-40%",width:"200%",height:"200%"},id=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=op("filter");return(0,E.S6)(rd,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=(0,E.EL)("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,r=this.cfg;return(0,E.S6)(Object.keys(r),(function(t){if(r[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[nd[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}(),od=id,ad=function(){function t(t,e){this.cfg={};var n=op("marker"),r=(0,E.EL)("marker_");n.setAttribute("id",r);var i=op("path");i.setAttribute("stroke",t.stroke||"none"),i.setAttribute("fill",t.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=r;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,i):(this.cfg=o,this._setMarker(t.lineWidth,i)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,r=this.cfg.path,i=this.cfg.d;(0,E.kJ)(r)&&(r=r.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",r),n.appendChild(e),i&&n.setAttribute("refX",""+i/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),sd=ad,ld=function(){function t(t){this.type="clip",this.cfg={};var e=op("clipPath");this.el=e,this.id=(0,E.EL)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}(),ud=ld,cd=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,hd=function(){function t(t){this.cfg={};var e=op("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=op("image");e.appendChild(n);var r=(0,E.EL)("pattern_");e.id=r,this.el=e,this.id=r,this.cfg=t;var i=cd.exec(t),o=i[2];n.setAttribute("href",o);var a=new Image;function s(){e.setAttribute("width",""+a.width),e.setAttribute("height",""+a.height)}return o.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=o,a.complete?s():(a.onload=s,a.src=a.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),fd=hd,pd=function(){function t(t){var e=op("defs"),n=(0,E.EL)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},t.prototype.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new sd(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),this.add(r),r.id},t.prototype.addGradient=function(t){var e=new ed(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new sd(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new od(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new fd(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new ud(t);return this.el.appendChild(e.el),this.add(e),e.id},t}(),dd=pd,gd=function(t){function e(e){return t.call(this,(0,A.pi)((0,A.pi)({},e),{autoDraw:!0,renderer:"svg"}))||this}return(0,A.ZT)(e,t),e.prototype.getShapeBase=function(){return p},e.prototype.getGroupBase=function(){return gp},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!rp[r.tagName]){var i=r.parentNode;while(i&&!rp[i.tagName])i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=op("svg"),e=new dd(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var r=this.get("children");r&&r.length&&sp(this,(function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?cp(this):"clip"===t?hp(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();hp(this,t),e.length&&fp(t,e)},e}(J.AbstractCanvas),vd=gd,md="0.5.6",yd=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var r=e.connectNulls,i=void 0!==r&&r,o=e.showSinglePoint,a=void 0===o||o;return n.connectNulls=i,n.showSinglePoint=a,n}return(0,A.ZT)(e,t),e.prototype.updateElements=function(t,e){var n,r,i,o,a,s;void 0===e&&(e=!1);for(var l=new Map,u=new Map,c=[],h=0,f=0;f<t.length;f++){var p=t[f],d=this.getElementId(p);c.push(d),l.set(d,p),u.set(d,h),h++}this.elements=new Array(h);var g=wc(this.lastElementsMap,c),v=g.added,m=g.updated,y=g.removed;try{for(var b=(0,A.XA)(v),x=b.next();!x.done;x=b.next()){d=x.value,p=l.get(d);var w=this.getShapeFactory(),C=this.getShapeInfo(p),S=(f=u.get(d),new oc({shapeFactory:w,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:f}));S.geometry=this,S.animate=this.animateOption,S.draw(C,e),this.elementsMap[d]=S,this.elements[f]=S}}catch(O){n={error:O}}finally{try{x&&!x.done&&(r=b.return)&&r.call(b)}finally{if(n)throw n.error}}try{for(var E=(0,A.XA)(m),k=E.next();!k.done;k=E.next()){d=k.value,p=l.get(d),S=this.lastElementsMap[d],f=u.get(d),C=this.getShapeInfo(p);var D=S.getModel();(this.isCoordinateChanged||bc(D,C))&&(S.animate=this.animateOption,S.update(C)),this.elementsMap[d]=S,this.elements[f]=S}}catch(T){i={error:T}}finally{try{k&&!k.done&&(o=E.return)&&o.call(E)}finally{if(i)throw i.error}}try{for(var F=(0,A.XA)(y),M=F.next();!M.done;M=F.next()){d=M.value,S=this.lastElementsMap[d];S.animate=this.animateOption,S.destroy()}}catch(B){a={error:B}}finally{try{M&&!M.done&&(s=F.return)&&s.call(F)}finally{if(a)throw a.error}}},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,i=t.length;r<i;r++){var o=t[r];e.push({x:o.x,y:o.y}),n.push(o[L])}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),r=n.points,i=n.data;return e.mappingData=t,e.data=i,e.isStack=!!this.getAdjust("stack"),e.points=r,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(Sc),bd=yd;function xd(t,e,n,r,i){var o=[];if(t.length){for(var a=[],s=[],l=0,u=t.length;l<u;l++){var c=t[l];a.push(c[1]),s.push(c[0])}s=s.reverse(),(0,E.S6)([a,s],(function(t,l){var u=[],c=r.parsePoints(t),h=c[0];1===a.length&&1===s.length?u=0===l?[["M",h.x-.5,h.y],["L",h.x+.5,h.y]]:[["L",h.x+.5,h.y],["L",h.x-.5,h.y]]:(e&&c.push({x:h.x,y:h.y}),u=n?ol(c,!1,i):il(c,!1),l>0&&(u[0][0]="L")),o=o.concat(u)})),o.push(["Z"])}return o}function wd(t,e,n,r,i){for(var o=th(t,e,!e,"lineWidth"),a=t.connectNulls,s=t.isInCircle,l=t.points,u=t.showSinglePoint,c=Qc(l,a,u),h=[],f=0,p=c.length;f<p;f++){var d=c[f];h=h.concat(xd(d,s,n,r,i))}return o.path=h,o}function Cd(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}gc("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0,r=(0,E.kJ)(t.y)?t.y:[n,t.y];return r.map((function(t){return{x:e,y:t}}))}});vc("area","area",{draw:function(t,e){var n=wd(t,!1,!1,this),r=e.addShape({type:"path",attrs:n,name:"area"});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:e}}}});var Sd=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var r=e.startOnZero,i=void 0===r||r,o=e.sortable,a=void 0!==o&&o,s=e.showSinglePoint,l=void 0!==s&&s;return n.startOnZero=i,n.sortable=a,n.showSinglePoint=l,n}return(0,A.ZT)(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,i=t.length;r<i;r++){var o=t[r];e.push(o.points),n.push(o[L])}return{points:e,data:n}},e.prototype.getYMinValue=function(){if(this.startOnZero)return t.prototype.getYMinValue.call(this);var e=this.getYScale();return e.min},e}(bd),Ad=Sd;gc("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return nh(t)}});vc("edge","line",{draw:function(t,e){var n=th(t,!0,!1,"lineWidth"),r=il(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Ed=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return(0,A.ZT)(e,t),e}(Sc),kd=Ed,Dd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return(0,A.ZT)(e,t),e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var n=0;n<t.length;n++){var r=t[n],i=this.prepareRange(r),o=this.prepareSize(),a=(0,E.U2)(this.styleOption,["cfg","shadowBlur"]);(0,E.hj)(a)||(a=o/2),this.prepareGreyScaleBlurredCircle(o,a),this.drawWithRange(r,i,o,a)}},e.prototype.color=function(t,e){return this.createAttrOption("color",t,"function"!==typeof e?e:""),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color"),n=e.getFields()[0],r=1/0,i=-1/0;return t.forEach((function(t){var e=t[L][n];e>i&&(i=e),e<r&&(r=e)})),r===i&&(r=i-1),[r,i]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return(0,E.hj)(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),r=t+e,i=n.getContext("2d");n.width=n.height=2*r,i.clearRect(0,0,n.width,n.height),i.shadowOffsetX=i.shadowOffsetY=2*r,i.shadowBlur=e,i.shadowColor="black",i.beginPath(),i.arc(-r,-r,t,0,2*Math.PI,!0),i.closePath(),i.fill()},e.prototype.drawWithRange=function(t,e,n,r){var i,o,a=this.coordinate,s=a.start,l=a.end,u=this.coordinate.getWidth(),c=this.coordinate.getHeight(),h=this.getAttribute("color"),f=h.getFields()[0];this.clearShadowCanvasCtx();var p=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[L][f]<=e[1]&&t[L][f]>=e[0]})));var d=this.scales[f];try{for(var g=(0,A.XA)(t),v=g.next();!v.done;v=g.next()){var m=v.value,y=this.getDrawCfg(m),b=y.x,x=y.y,w=d.scale(m[L][f]);this.drawGrayScaleBlurredCircle(b-s.x,x-l.y,n+r,w,p)}}catch(E){i={error:E}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}var C=p.getImageData(0,0,u,c);this.clearShadowCanvasCtx(),this.colorize(C),p.putImageData(C,0,0);var S=this.getImageShape();S.attr("x",s.x),S.attr("y",l.y),S.attr("width",u),S.attr("height",c),S.attr("img",p.canvas),S.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,r,i){var o=this.getGrayScaleBlurredCanvas();i.globalAlpha=r,i.drawImage(o,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,r=this.paletteCache,i=3;i<n.length;i+=4){var o=n[i];if((0,E.hj)(o)){var a=r[o]?r[o]:Vt.rgb2arr(e.gradient(o/256));n[i-3]=a[0],n[i-2]=a[1],n[i-1]=a[2],n[i]=o}}},e.prototype.getImageShape=function(){var t=this.imageShape;if(t)return t;var e=this.container;return t=e.addShape({type:"image",attrs:{}}),this.imageShape=t,t},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=t.map((function(t){return t[L]}));return(0,A.pi)((0,A.pi)({},e),{mappingData:t,data:n})},e}(Sc),Fd=Dd;function Md(t){var e,n,r,i,o,a,s=t.x,l=t.y,u=t.y0,c=t.size;(0,E.kJ)(l)?(e=(0,A.CR)(l,2),r=e[0],i=e[1]):(r=u,i=l),(0,E.kJ)(s)?(n=(0,A.CR)(s,2),o=n[0],a=n[1]):(o=s-c/2,a=s+c/2);var h=[{x:o,y:r},{x:o,y:i}];return h.push({x:a,y:i},{x:a,y:r}),h}function Od(t,e){void 0===e&&(e=!0);var n=[],r=t[0];n.push(["M",r.x,r.y]);for(var i=1,o=t.length;i<o;i++)n.push(["L",t[i].x,t[i].y]);return e&&(n.push(["L",r.x,r.y]),n.push(["z"])),n}function Td(t,e){var n=0,r=0,i=0,o=0;return(0,E.kJ)(t)?1===t.length?n=r=i=o=t[0]:2===t.length?(n=i=t[0],r=o=t[1]):3===t.length?(n=t[0],r=o=t[1],i=t[2]):(n=t[0],r=t[1],i=t[2],o=t[3]):n=r=i=o=t,n+r>e&&(n=n?e/(1+r/n):0,r=e-n),i+o>e&&(i=i?e/(1+o/i):0,o=e-i),[n||0,r||0,i||0,o||0]}function Bd(t,e,n){var r=[];if(n.isRect){var i=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},o=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},a=(0,E.U2)(t,["background","style","radius"]);if(a){var s=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,l=n.isTransposed?n.getWidth():n.getHeight(),u=(0,A.CR)(Td(a,Math.min(s,l)),4),c=u[0],h=u[1],f=u[2],p=u[3];r.push(["M",i.x,o.y+c]),0!==c&&r.push(["A",c,c,0,0,1,i.x+c,o.y]),r.push(["L",o.x-h,o.y]),0!==h&&r.push(["A",h,h,0,0,1,o.x,o.y+h]),r.push(["L",o.x,i.y-f]),0!==f&&r.push(["A",f,f,0,0,1,o.x-f,i.y]),r.push(["L",i.x+p,i.y]),0!==p&&r.push(["A",p,p,0,0,1,i.x,i.y-p])}else r.push(["M",i.x,i.y]),r.push(["L",o.x,i.y]),r.push(["L",o.x,o.y]),r.push(["L",i.x,o.y]),r.push(["L",i.x,i.y]);r.push(["z"])}if(n.isPolar){var d=n.getCenter(),g=rs(t,n),v=g.startAngle,m=g.endAngle;if("theta"===n.type||n.isTransposed){var y=function(t){return Math.pow(t,2)};c=Math.sqrt(y(d.x-e[0].x)+y(d.y-e[0].y)),h=Math.sqrt(y(d.x-e[2].x)+y(d.y-e[2].y));r=es(d.x,d.y,c,n.startAngle,n.endAngle,h)}else r=es(d.x,d.y,n.getRadius(),v,m)}return r}function _d(t,e,n){var r=n.getWidth(),i=n.getHeight(),o="rect"===n.type,a=[],s=(t[2].x-t[1].x)/2,l=n.isTransposed?s*i/r:s*r/i;return"round"===e?(o?(a.push(["M",t[0].x,t[0].y+l]),a.push(["L",t[1].x,t[1].y-l]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y-l]),a.push(["L",t[3].x,t[3].y+l]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y+l])):(a.push(["M",t[0].x,t[0].y]),a.push(["L",t[1].x,t[1].y]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y]),a.push(["L",t[3].x,t[3].y]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y])),a.push(["z"])):a=Od(t),a}function Id(t,e,n){var r=[];return(0,E.UM)(e)?n?r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),r}function Pd(t,e){return[e,t]}function Ld(t,e,n){var r,i,o,a,s,l,u,c=(0,A.CR)((0,A.ev)([],(0,A.CR)(t),!1),4),h=c[0],f=c[1],p=c[2],d=c[3],g=(0,A.CR)("number"===typeof n?Array(4).fill(n):n,4),v=g[0],m=g[1],y=g[2],b=g[3];e.isTransposed&&(r=(0,A.CR)(Pd(f,d),2),f=r[0],d=r[1]),e.isReflect("y")&&(i=(0,A.CR)(Pd(h,f),2),h=i[0],f=i[1],o=(0,A.CR)(Pd(p,d),2),p=o[0],d=o[1]),e.isReflect("x")&&(a=(0,A.CR)(Pd(h,d),2),h=a[0],d=a[1],s=(0,A.CR)(Pd(f,p),2),f=s[0],p=s[1]);var x=[],w=function(t){return Math.abs(t)};return l=(0,A.CR)(Td([v,m,y,b],Math.min(w(d.x-h.x),w(f.y-h.y))).map((function(t){return w(t)})),4),v=l[0],m=l[1],y=l[2],b=l[3],e.isTransposed&&(u=(0,A.CR)([b,v,m,y],4),v=u[0],m=u[1],y=u[2],b=u[3]),h.y<f.y?(x.push(["M",d.x,d.y+y]),0!==y&&x.push(["A",y,y,0,0,0,d.x-y,d.y]),x.push(["L",h.x+b,h.y]),0!==b&&x.push(["A",b,b,0,0,0,h.x,h.y+b]),x.push(["L",f.x,f.y-v]),0!==v&&x.push(["A",v,v,0,0,0,f.x+v,f.y]),x.push(["L",p.x-m,p.y]),0!==m&&x.push(["A",m,m,0,0,0,p.x,p.y-m]),x.push(["L",d.x,d.y+y]),x.push(["z"])):d.x<h.x?(x.push(["M",p.x+m,p.y]),0!==m&&x.push(["A",m,m,0,0,0,p.x,p.y+m]),x.push(["L",d.x,d.y-y]),0!==y&&x.push(["A",y,y,0,0,0,d.x+y,d.y]),x.push(["L",h.x-b,h.y]),0!==b&&x.push(["A",b,b,0,0,0,h.x,h.y-b]),x.push(["L",f.x,f.y+v]),0!==v&&x.push(["A",v,v,0,0,0,f.x-v,f.y]),x.push(["L",p.x+m,p.y]),x.push(["z"])):(x.push(["M",f.x,f.y+v]),0!==v&&x.push(["A",v,v,0,0,1,f.x+v,f.y]),x.push(["L",p.x-m,p.y]),0!==m&&x.push(["A",m,m,0,0,1,p.x,p.y+m]),x.push(["L",d.x,d.y-y]),0!==y&&x.push(["A",y,y,0,0,1,d.x-y,d.y]),x.push(["L",h.x+b,h.y]),0!==b&&x.push(["A",b,b,0,0,1,h.x,h.y-b]),x.push(["L",f.x,f.y+v]),x.push(["z"])),x}gc("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return Md(t)}});vc("interval","rect",{draw:function(t,e){var n,r=th(t,!1,!0),i=e,o=null===t||void 0===t?void 0:t.background;if(o){i=e.addGroup();var a=eh(t),s=Bd(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},a),{path:s}),zIndex:-1,name:rc})}n=r.radius&&this.coordinate.isRect?Ld(this.parsePoints(t.points),this.coordinate,r.radius):this.parsePath(_d(t.points,r.lineCap,this.coordinate));var l=i.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},r),{path:n}),name:"interval"});return o?i:l},getMarker:function(t){var e=t.color,n=t.isInPolar;return n?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}});function Rd(t,e){var n=t.length,r=t;(0,E.HD)(r[0])&&(r=t.map((function(t){return e.translate(t)})));for(var i=r[1]-r[0],o=2;o<n;o++){var a=r[o]-r[o-1];i>a&&(i=a)}return i}function Nd(t,e){if(e){var n=(0,E.xH)(t),r=(0,E.I)(n,e);return r.length}return t.length}function jd(t){var e=t.theme,n=t.coordinate,r=t.getXScale(),i=r.values,o=t.beforeMappingData,a=i.length,s=fs(t.coordinate),l=t.intervalPadding,u=t.dodgePadding,c=t.maxColumnWidth||e.maxColumnWidth,h=t.minColumnWidth||e.minColumnWidth,f=t.columnWidthRatio||e.columnWidthRatio,p=t.multiplePieWidthRatio||e.multiplePieWidthRatio,d=t.roseWidthRatio||e.roseWidthRatio;if(r.isLinear&&i.length>1){i.sort();var g=Rd(i,r);a=(r.max-r.min)/g,i.length>a&&(a=i.length)}var v=r.range,m=1/a,y=1;if(n.isPolar?y=n.isTransposed&&a>1?p:d:(r.isLinear&&(m*=v[1]-v[0]),y=f),!(0,E.UM)(l)&&l>=0){var b=l/s;m=(1-(a-1)*b)/a}else m*=y;if(t.getAdjust("dodge")){var x=t.getAdjust("dodge"),w=x.dodgeBy,C=Nd(o,w);if(!(0,E.UM)(u)&&u>=0){var S=u/s;m=(m-S*(C-1))/C}else!(0,E.UM)(l)&&l>=0?(m*=y,m/=C):m/=C;m=m>=0?m:0}if(!(0,E.UM)(c)&&c>=0){var A=c/s;m>A&&(m=A)}if(!(0,E.UM)(h)&&h>=0){var k=h/s;m<k&&(m=k)}return m}var zd=function(t){function e(e){var n=t.call(this,e)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var r=e.background;return n.background=r,n}return(0,A.ZT)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");if(i){n=this.getAttributeValues(i,e)[0];var o=this.coordinate,a=fs(o);n/=a}else this.defaultSize||(this.defaultSize=jd(this)),n=this.defaultSize;return r.size=n,r},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e=this.getYScale();if("theta"===this.coordinate.type)e.change({nice:!1,min:0,max:ks(e)});else{var n=this.scaleDefs,r=e.field,i=e.min,o=e.max,a=e.type;"time"!==a&&(i>0&&!(0,E.U2)(n,[r,"min"])&&e.change({min:0}),o<=0&&!(0,E.U2)(n,[r,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(Sc),Ud=zd,Vd=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var r=e.sortable,i=void 0!==r&&r;return n.sortable=i,n}return(0,A.ZT)(e,t),e}(bd),Hd=Vd,$d=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],Gd=["cross","tick","plus","hyphen","line"];function Wd(t,e,n,r,i){var o,a,s=th(e,i,!i,"r"),l=t.parsePoints(e.points),u=l[0];if(e.isStack)u=l[1];else if(l.length>1){var c=n.addGroup();try{for(var h=(0,A.XA)(l),f=h.next();!f.done;f=h.next()){var p=f.value;c.addShape({type:"marker",attrs:(0,A.pi)((0,A.pi)((0,A.pi)({},s),{symbol:zc[r]||r}),p)})}}catch(d){o={error:d}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}return c}return n.addShape({type:"marker",attrs:(0,A.pi)((0,A.pi)((0,A.pi)({},s),{symbol:zc[r]||r}),u)})}gc("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return nh(t)}});(0,E.S6)($d,(function(t){vc("point","hollow-".concat(t),{draw:function(e,n){return Wd(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:zc[t]||t,style:{r:4.5,stroke:n,fill:null}}}})}));var qd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return(0,A.ZT)(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return(0,A.pi)((0,A.pi)({},n),{isStack:!!this.getAdjust("stack")})},e}(Sc),Xd=qd;function Zd(t){var e=t[0],n=1,r=[["M",e.x,e.y]];while(n<t.length){var i=t[n];i.x===t[n-1].x&&i.y===t[n-1].y||(r.push(["L",i.x,i.y]),i.x===e.x&&i.y===e.y&&n<t.length-1&&(e=t[n+1],r.push(["Z"]),r.push(["M",e.x,e.y]),n++)),n++}return(0,E.Xy)((0,E.Z$)(r),e)||r.push(["L",e.x,e.y]),r.push(["Z"]),r}gc("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return(0,E.S6)(t.x,(function(n,r){var i=t.y[r];e.push({x:n,y:i})})),e}});vc("polygon","polygon",{draw:function(t,e){if(!(0,E.xb)(t.points)){var n=th(t,!0,!0),r=this.parsePath(Zd(t.points));return e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},n),{path:r}),name:"polygon"})}},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}});var Yd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return(0,A.ZT)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=r.x,o=r.y;if(!(0,E.kJ)(i)||!(0,E.kJ)(o)){var a=this.getXScale(),s=this.getYScale(),l=a.values.length,u=s.values.length,c=.5/l,h=.5/u;a.isCategory&&s.isCategory?(i=[i-c,i-c,i+c,i+c],o=[o-h,o+h,o+h,o-h]):(0,E.kJ)(i)?(n=i,i=[n[0],n[0],n[1],n[1]],o=[o-h/2,o+h/2,o+h/2,o-h/2]):(0,E.kJ)(o)&&(n=o,o=[n[0],n[1],n[1],n[0]],i=[i-c/2,i-c/2,i+c/2,i+c/2]),r.x=i,r.y=o}return r},e}(Sc),Qd=Yd,Kd=(gc("schema",{defaultShapeType:""}),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return(0,A.ZT)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");if(i){n=this.getAttributeValues(i,e)[0];var o=this.coordinate,a=fs(o);n/=a}else this.defaultSize||(this.defaultSize=jd(this)),n=this.defaultSize;return r.size=n,r},e}(Sc)),Jd=Kd;function tg(t){if(!(0,E.kJ)(t))return[];var e=(0,E.Fp)(t);return(0,E.UI)(t,(function(t){return t/e}))}gc("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],r=tg(t._size);return(0,E.S6)(t.y,(function(i,o){var a=r[o]*e,s=0===o,l=o===t.y.length-1;n.push({isMin:s,isMax:l,x:t.x-a,y:i}),n.unshift({isMin:s,isMax:l,x:t.x+a,y:i})})),n}});vc("violin","violin",{draw:function(t,e){var n=th(t,!0,!0),r=this.parsePath(Kc(t.points));return e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},n),{path:r}),name:"violin"})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4,fill:e}}}});var eg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e}return(0,A.ZT)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");if(i){n=this.getAttributeValues(i,e)[0];var o=this.coordinate,a=fs(o);n/=a}else this.defaultSize||(this.defaultSize=jd(this)),n=this.defaultSize;return r.size=n,r._size=(0,E.U2)(e[L],[this._sizeField]),r},e.prototype.initAttributes=function(){var e=this.attributeOption,n=e.size?e.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete e.size,t.prototype.initAttributes.call(this)},e}(Sc),ng=eg;function rg(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]}function ig(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var r=["Q"];return(0,E.S6)(n,(function(t){r.push(t.x,t.y)})),r}function og(t,e,n){var r=ig(e,n),i=[["M",t.x,t.y]];return i.push(r),i}function ag(t,e){var n=ig(t[1],e),r=ig(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}function sg(t,e){var n=rg(t,e),r=[["M",t.x,t.y]];return r.push(n),r}vc("area","line",{draw:function(t,e){var n=wd(t,!0,!1,this),r=e.addShape({type:"path",attrs:n,name:"area"});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:e,fill:null}}}}),vc("area","smooth",{draw:function(t,e){var n=this.coordinate,r=wd(t,!1,!0,this,Cd(n)),i=e.addShape({type:"path",attrs:r,name:"area"});return i},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:e}}}}),vc("area","smooth-line",{draw:function(t,e){var n=this.coordinate,r=wd(t,!0,!0,this,Cd(n)),i=e.addShape({type:"path",attrs:r,name:"area"});return i},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:e,fill:null}}}}),vc("edge","arc",{draw:function(t,e){var n,r=th(t,!0,!1,"lineWidth"),i=t.points,o=i.length>2?"weight":"normal";if(t.isInCircle){var a={x:0,y:1};return"normal"===o?n=og(i[0],i[1],a):(r.fill=r.stroke,n=ag(i,a)),n=this.parsePath(n),e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},r),{path:n})})}if("normal"===o)return i=this.parsePoints(i),n=ns((i[1].x+i[0].x)/2,i[0].y,Math.abs(i[1].x-i[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},r),{path:n})});var s=rg(i[1],i[3]),l=rg(i[2],i[0]);return n=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],s,["L",i[3].x,i[3].y],["L",i[2].x,i[2].y],l,["Z"]],n=this.parsePath(n),r.fill=r.stroke,e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},r),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),vc("edge","smooth",{draw:function(t,e){var n=th(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath(sg(r[0],r[1]));return e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var lg=1/3;function ug(t,e){var n=[];n.push({x:t.x,y:t.y*(1-lg)+e.y*lg}),n.push({x:e.x,y:t.y*(1-lg)+e.y*lg}),n.push(e);var r=[["M",t.x,t.y]];return(0,E.S6)(n,(function(t){r.push(["L",t.x,t.y])})),r}function cg(t){var e=t.x,n=t.y,r=t.y0;return(0,E.kJ)(n)?n.map((function(t,n){return{x:(0,E.kJ)(e)?e[n]:e,y:t}})):[{x:e,y:r},{x:e,y:n}]}function hg(t){var e,n,r,i=t.x,o=t.y,a=t.y0,s=t.size;(0,E.kJ)(o)?(e=(0,A.CR)(o,2),n=e[0],r=e[1]):(n=a,r=o);var l=i+s/2,u=i-s/2;return[{x:i,y:n},{x:i,y:r},{x:u,y:n},{x:l,y:n},{x:u,y:r},{x:l,y:r}]}function fg(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y]]}vc("edge","vhv",{draw:function(t,e){var n=th(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath(ug(r[0],r[1]));return e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),vc("interval","funnel",{getPoints:function(t){return t.size=2*t.size,Md(t)},draw:function(t,e){var n=th(t,!1,!0),r=this.parsePath(Id(t.points,t.nextPoints,!1)),i=e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},n),{path:r}),name:"interval"});return i},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),vc("interval","hollow-rect",{draw:function(t,e){var n=th(t,!0,!1),r=e,i=null===t||void 0===t?void 0:t.background;if(i){r=e.addGroup();var o=eh(t),a=Bd(t,this.parsePoints(t.points),this.coordinate);r.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},o),{path:a}),zIndex:-1,name:rc})}var s=this.parsePath(Od(t.points)),l=r.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},n),{path:s}),name:"interval"});return i?r:l},getMarker:function(t){var e=t.color,n=t.isInPolar;return n?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}}),vc("interval","line",{getPoints:function(t){return cg(t)},draw:function(t,e){var n=th(t,!0,!1,"lineWidth"),r=ls((0,A.pi)({},n),["fill"]),i=this.parsePath(Od(t.points,!1)),o=e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},r),{path:i}),name:"interval"});return o},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:e}}}}),vc("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,Md(t)},draw:function(t,e){var n=th(t,!1,!0),r=this.parsePath(Id(t.points,t.nextPoints,!0)),i=e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},n),{path:r}),name:"interval"});return i},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),vc("interval","tick",{getPoints:function(t){return hg(t)},draw:function(t,e){var n=th(t,!0,!1),r=this.parsePath(fg(t.points)),i=e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},n),{path:r}),name:"interval"});return i},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:e}}}});var pg=function(t,e,n){var r,i=t.x,o=t.y,a=e.x,s=e.y;switch(n){case"hv":r=[{x:a,y:o}];break;case"vh":r=[{x:i,y:s}];break;case"hvh":var l=(a+i)/2;r=[{x:l,y:o},{x:l,y:s}];break;case"vhv":var u=(o+s)/2;r=[{x:i,y:u},{x:a,y:u}];break;default:break}return r};function dg(t,e){var n=[];return(0,E.S6)(t,(function(r,i){var o=t[i+1];if(n.push(r),o){var a=pg(r,o,e);n=n.concat(a)}})),n}function gg(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}function vg(t,e){var n=Qc(t.points,t.connectNulls,t.showSinglePoint),r=[];return(0,E.S6)(n,(function(t){var n=dg(t,e);r=r.concat(gg(n))})),(0,A.pi)((0,A.pi)({},th(t,!0,!1,"lineWidth")),{path:r})}function mg(t){var e=(0,E.kJ)(t)?t:[t],n=e[0],r=e[e.length-1],i=e.length>1?e[1]:n,o=e.length>3?e[3]:r,a=e.length>2?e[2]:i;return{min:n,max:r,min1:i,max1:o,median:a}}function yg(t,e,n){var r,i=n/2;if((0,E.kJ)(e)){var o=mg(e),a=o.min,s=o.max,l=o.median,u=o.min1,c=o.max1,h=t-i,f=t+i;r=[[h,s],[f,s],[t,s],[t,c],[h,u],[h,c],[f,c],[f,u],[t,u],[t,a],[h,a],[f,a],[h,l],[f,l]]}else{e=(0,E.UM)(e)?.5:e;var p=mg(t),d=(a=p.min,s=p.max,l=p.median,u=p.min1,c=p.max1,e-i),g=e+i;r=[[a,d],[a,g],[a,e],[u,e],[u,d],[u,g],[c,g],[c,d],[c,e],[s,e],[s,d],[s,g],[l,d],[l,g]]}return r.map((function(t){return{x:t[0],y:t[1]}}))}function bg(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y],["L",t[6].x,t[6].y],["L",t[7].x,t[7].y],["L",t[4].x,t[4].y],["Z"],["M",t[8].x,t[8].y],["L",t[9].x,t[9].y],["M",t[10].x,t[10].y],["L",t[11].x,t[11].y],["M",t[12].x,t[12].y],["L",t[13].x,t[13].y]]}function xg(t){var e=(0,E.kJ)(t)?t:[t],n=e.sort((function(t,e){return e-t}));return ss(n,4,n[n.length-1])}function wg(t,e,n){var r=xg(e);return[{x:t,y:r[0]},{x:t,y:r[1]},{x:t-n/2,y:r[2]},{x:t-n/2,y:r[1]},{x:t+n/2,y:r[1]},{x:t+n/2,y:r[2]},{x:t,y:r[2]},{x:t,y:r[3]}]}function Cg(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["L",t[4].x,t[4].y],["L",t[5].x,t[5].y],["Z"],["M",t[6].x,t[6].y],["L",t[7].x,t[7].y]]}function Sg(t,e){var n=Math.abs(t[0].x-t[2].x),r=Math.abs(t[0].y-t[2].y),i=Math.min(n,r);e&&(i=(0,E.uZ)(e,0,Math.min(n,r))),i/=2;var o=(t[0].x+t[2].x)/2,a=(t[0].y+t[2].y)/2;return{x:o-i,y:a-i,width:2*i,height:2*i}}(0,E.S6)(["hv","vh","hvh","vhv"],(function(t){vc("line",t,{draw:function(e,n){var r=vg(e,t),i=n.addShape({type:"path",attrs:r,name:"line"});return i},getMarker:function(e){return ih(e,t)}})})),(0,E.S6)(Gd,(function(t){vc("point",t,{draw:function(e,n){return Wd(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:zc[t],style:{r:4.5,stroke:n,fill:null}}}})})),vc("point","image",{draw:function(t,e){var n,r,i=th(t,!1,!1,"r").r,o=this.parsePoints(t.points),a=o[0];if(t.isStack)a=o[1];else if(o.length>1){var s=e.addGroup();try{for(var l=(0,A.XA)(o),u=l.next();!u.done;u=l.next()){var c=u.value;s.addShape("image",{attrs:{x:c.x-i/2,y:c.y-i,width:i,height:i,img:t.shape[1]}})}}catch(h){n={error:h}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return s}return e.addShape("image",{attrs:{x:a.x-i/2,y:a.y-i,width:i,height:i,img:t.shape[1]}})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4.5,fill:e}}}}),(0,E.S6)($d,(function(t){vc("point",t,{draw:function(e,n){return Wd(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:zc[t]||t,style:{r:4.5,fill:n}}}})})),vc("schema","box",{getPoints:function(t){var e=t.x,n=t.y,r=t.size;return yg(e,n,r)},draw:function(t,e){var n=th(t,!0,!1),r=this.parsePath(bg(t.points)),i=e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},n),{path:r,name:"schema"})});return i},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=[e-6,e-3,e,e+3,e+6],i=yg(t,r,n);return[["M",i[0].x+1,i[0].y],["L",i[1].x-1,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y],["L",i[6].x,i[6].y],["L",i[7].x,i[7].y],["L",i[4].x,i[4].y],["Z"],["M",i[8].x,i[8].y],["L",i[9].x,i[9].y],["M",i[10].x+1,i[10].y],["L",i[11].x-1,i[11].y],["M",i[12].x,i[12].y],["L",i[13].x,i[13].y]]},style:{r:6,lineWidth:1,stroke:e}}}}),vc("schema","candle",{getPoints:function(t){var e=t.x,n=t.y,r=t.size;return wg(e,n,r)},draw:function(t,e){var n=th(t,!0,!0),r=this.parsePath(Cg(t.points)),i=e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},n),{path:r,name:"schema"})});return i},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=[e+7.5,e+3,e-3,e-7.5],i=wg(t,r,n);return[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["L",i[4].x,i[4].y],["L",i[5].x,i[5].y],["Z"],["M",i[6].x,i[6].y],["L",i[7].x,i[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}}),vc("polygon","square",{draw:function(t,e){if(!(0,E.xb)(t.points)){var n=th(t,!0,!0),r=this.parsePoints(t.points);return e.addShape("rect",{attrs:(0,A.pi)((0,A.pi)({},n),Sg(r,t.size)),name:"polygon"})}},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),vc("violin","smooth",{draw:function(t,e){var n=th(t,!0,!0),r=this.parsePath(Jc(t.points));return e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},n),{path:r})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{stroke:null,r:4,fill:e}}}}),vc("violin","hollow",{draw:function(t,e){var n=th(t,!0,!1),r=this.parsePath(Kc(t.points));return e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},n),{path:r})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4,fill:null,stroke:e}}}}),vc("violin","hollow-smooth",{draw:function(t,e){var n=th(t,!0,!1),r=this.parsePath(Jc(t.points));return e.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},n),{path:r})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4,fill:null,stroke:e}}}});var Ag=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getLabelValueDir=function(t){var e="y",n=t.points;return n[0][e]<=n[2][e]?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,r,i){var o,a=t.prototype.getLabelOffsetPoint.call(this,e,n,r),s=this.getCoordinate(),l=s.isTransposed,u=l?"x":"y",c=this.getLabelValueDir(e.mappingData);return a=(0,A.pi)((0,A.pi)({},a),(o={},o[u]=a[u]*c,o)),s.isReflect("x")&&(a=(0,A.pi)((0,A.pi)({},a),{x:-1*a.x})),s.isReflect("y")&&(a=(0,A.pi)((0,A.pi)({},a),{y:-1*a.y})),a},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.theme;return(0,E.b$)({},n,r.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,r){var i,o,a,s,l=this.getCoordinate(),u=l.isTransposed,c=e.points,h=l.convert(c[0]),f=l.convert(c[2]),p=this.getLabelValueDir(e),d=(0,E.kJ)(e.shape)?e.shape[0]:e.shape;if("funnel"===d||"pyramid"===d){var g=(0,E.U2)(e,"nextPoints"),v=(0,E.U2)(e,"points");if(g){var m=l.convert(v[0]),y=l.convert(v[1]),b=l.convert(g[0]),x=l.convert(g[1]);u?(i=Math.min(b.y,m.y),a=Math.max(b.y,m.y),o=(y.x+x.x)/2,s=(m.x+b.x)/2):(i=Math.min((y.y+x.y)/2,(m.y+b.y)/2),a=Math.max((y.y+x.y)/2,(m.y+b.y)/2),o=x.x,s=m.x)}else i=Math.min(f.y,h.y),a=Math.max(f.y,h.y),o=f.x,s=h.x}else i=Math.min(f.y,h.y),a=Math.max(f.y,h.y),o=f.x,s=h.x;switch(r){case"right":t.x=o,t.y=(i+a)/2,t.textAlign=(0,E.U2)(t,"textAlign",p>0?"left":"right");break;case"left":t.x=s,t.y=(i+a)/2,t.textAlign=(0,E.U2)(t,"textAlign",p>0?"left":"right");break;case"bottom":u&&(t.x=(o+s)/2),t.y=a,t.textAlign=(0,E.U2)(t,"textAlign","center"),t.textBaseline=(0,E.U2)(t,"textBaseline",p>0?"bottom":"top");break;case"middle":u&&(t.x=(o+s)/2),t.y=(i+a)/2,t.textAlign=(0,E.U2)(t,"textAlign","center"),t.textBaseline=(0,E.U2)(t,"textBaseline","middle");break;case"top":u&&(t.x=(o+s)/2),t.y=i,t.textAlign=(0,E.U2)(t,"textAlign","center"),t.textBaseline=(0,E.U2)(t,"textBaseline",p>0?"bottom":"top");break;default:break}},e}(Nc),Eg=Ag,kg=Math.PI/2,Dg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if((0,E.hj)(t))n=t;else if((0,E.HD)(t)&&-1!==t.indexOf("%")){var r=e.getRadius();e.innerRadius>0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),r=this.geometry.getYScale();return(0,E.UI)(n,(function(t){if(t&&r){var e=r.scale((0,E.U2)(t.data,r.field));return(0,A.pi)((0,A.pi)({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=t.offset;e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,o=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var a=t.offset*i,s=this.getPointAngle(r),l=t.labelEmit,u=this.getCirclePoint(s,a,r,l);return 0===u.r?u.content="":(u.content=o,u.angle=s,u.color=e.color),u.rotate=t.autoRotate?this.getLabelRotate(s,a,l):t.rotate,u.start={x:r.x,y:r.y},u},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),(0,E.kJ)(t.x)||(0,E.kJ)(t.y)?{x:(0,E.kJ)(t.x)?t.x[e]:t.x,y:(0,E.kJ)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return vs(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,r){var i=this.getCoordinate(),o=i.getCenter(),a=ds(i,n);if(0===a)return(0,A.pi)((0,A.pi)({},o),{r:a});var s=t;if(i.isTransposed&&a>e&&!r){var l=Math.asin(e/(2*a));s=t+2*l}else a+=e;return{x:o.x+a*Math.cos(s),y:o.y+a*Math.sin(s),r:a}},e.prototype.getLabelRotate=function(t,e,n){var r=t+kg;return n&&(r-=kg),r&&(r>kg?r-=Math.PI:r<-kg&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return(0,E.S6)(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r),r},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(Nc),Fg=Dg,Mg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return(0,A.ZT)(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return(0,E.b$)({},r,(0,E.U2)(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var r;return e<0&&(r=t,r>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate(),r=n.getCenter();return e=t.angle<=Math.PI/2&&t.x>=r.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),r={x:(0,E.kJ)(t.x)?t.x[0]:t.x,y:t.y[0]},i={x:(0,E.kJ)(t.x)?t.x[1]:t.x,y:t.y[1]},o=vs(n,r);if(t.points&&t.points[0].y===t.points[1].y)e=o;else{var a=vs(n,i);o>=a&&(a+=2*Math.PI),e=o+(a-o)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),r=n.getCenter(),i=n.getRadius()+e;return(0,A.pi)((0,A.pi)({},ts(r.x,r.y,i,t)),{angle:t,r:i})},e}(Fg),Og=Mg,Tg=4;function Bg(t,e,n,r,i,o){var a,s,l,u=!0,c=r.start,h=r.end,f=Math.min(c.y,h.y),p=Math.abs(c.y-h.y),d=0,g=Number.MIN_VALUE,v=e.map((function(t){return t.y>d&&(d=t.y),t.y<g&&(g=t.y),{size:n,targets:[t.y-f]}}));g-=f,d-f>p&&(p=d-f);while(u){v.forEach((function(t){var e=(Math.min.apply(g,t.targets)+Math.max.apply(g,t.targets))/2;t.pos=Math.min(Math.max(g,e-t.size/2),p-t.size)})),u=!1,l=v.length;while(l--)if(l>0){var m=v[l-1],y=v[l];m.pos+m.size>y.pos&&(m.size+=y.size,m.targets=m.targets.concat(y.targets),m.pos+m.size>p&&(m.pos=p-m.size),v.splice(l,1),u=!0)}}l=0,v.forEach((function(t){var r=f+n/2;t.targets.forEach((function(){e[l].y=t.pos+r,r+=n,l++}))}));var b={};try{for(var x=(0,A.XA)(t),w=x.next();!w.done;w=x.next()){var C=w.value;b[C.get("id")]=C}}catch(S){a={error:S}}finally{try{w&&!w.done&&(s=x.return)&&s.call(x)}finally{if(a)throw a.error}}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-i.y),2);if(e<n)t.x=i.x;else{var r=Math.sqrt(e-n);t.x=o?i.x+r:i.x-r}var a=b[t.id];a.attr("x",t.x),a.attr("y",t.y);var s=(0,E.sE)(a.getChildren(),(function(t){return"text"===t.get("type")}));s&&(s.attr("y",t.y),s.attr("x",t.x))}))}function _g(t,e,n,r){if(t.length&&e.length){var i=t[0]?t[0].offset:0,o=e[0].get("coordinate"),a=o.getRadius(),s=o.getCenter();if(i>0){var l=14,u=a+i,c=2*u+2*l,h={start:o.start,end:o.end},f=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?f[0].push(t):f[1].push(t))})),f.forEach((function(t,n){var r=c/l;t.length>r&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(r,t.length-r)),t.sort((function(t,e){return t.y-e.y})),Bg(e,t,l,h,s,n)}))}(0,E.S6)(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,r=ts(s.x,s.y,a,n),i=ts(s.x,s.y,a+e/2,n),o=t.x+(0,E.U2)(t,"offsetX",0),l=t.y+(0,E.U2)(t,"offsetY",0),u={x:o-Math.cos(n)*Tg,y:l-Math.sin(n)*Tg};(0,E.Kn)(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(r.x),"".concat(r.y," Q").concat(i.x),"".concat(i.y," ").concat(u.x),u.y].join(",")}}))}}function Ig(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,o=!0,a=n.minY,s=n.maxY,l=Math.abs(a-s),u=0,c=Number.MIN_VALUE,h=r.map((function(t){return t.y>u&&(u=t.y),t.y<c&&(c=t.y),{content:t.content,size:e,targets:[t.y-a],pos:null}}));c-=a,u-a>l&&(l=u-a);while(o){h.forEach((function(t){var e=(Math.min.apply(c,t.targets)+Math.max.apply(c,t.targets))/2;t.pos=Math.min(Math.max(c,e-t.size/2),l-t.size),t.pos=Math.max(0,t.pos)})),o=!1,i=h.length;while(i--)if(i>0){var f=h[i-1],p=h[i];f.pos+f.size>p.pos&&(f.size+=p.size,f.targets=f.targets.concat(p.targets),f.pos+f.size>l&&(f.pos=l-f.size),h.splice(i,1),o=!0)}}i=0,h.forEach((function(t){var n=a+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}var Pg=4;function Lg(t,e){var n=e.getCenter(),r=e.getRadius();if(t&&t.labelLine){var i=t.angle,o=t.offset,a=ts(n.x,n.y,r,i),s=t.x+(0,E.U2)(t,"offsetX",0)*(Math.cos(i)>0?1:-1),l=t.y+(0,E.U2)(t,"offsetY",0)*(Math.sin(i)>0?1:-1),u={x:s-Math.cos(i)*Pg,y:l-Math.sin(i)*Pg},c=t.labelLine.smooth,h=[],f=u.x-n.x,p=u.y-n.y,d=Math.atan(p/f);if(f<0&&(d+=Math.PI),!1===c){(0,E.Kn)(t.labelLine)||(t.labelLine={});var g=0;(i<0&&i>-Math.PI/2||i>1.5*Math.PI)&&u.y>a.y&&(g=1),i>=0&&i<Math.PI/2&&u.y>a.y&&(g=1),i>=Math.PI/2&&i<Math.PI&&a.y>u.y&&(g=1),(i<-Math.PI/2||i>=Math.PI&&i<1.5*Math.PI)&&a.y>u.y&&(g=1);var v=o/2>4?4:Math.max(o/2-1,0),m=ts(n.x,n.y,r+v,i),y=ts(n.x,n.y,r+o/2,d),b=0;h.push("M ".concat(a.x," ").concat(a.y)),h.push("L ".concat(m.x," ").concat(m.y)),h.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(b," ").concat(g," ").concat(y.x," ").concat(y.y)),h.push("L ".concat(u.x," ").concat(u.y))}else{m=ts(n.x,n.y,r+(o/2>4?4:Math.max(o/2-1,0)),i);var x=a.x<n.x?1:-1;h.push("M ".concat(u.x," ").concat(u.y));var w=(a.y-n.y)/(a.x-n.x),C=(u.y-n.y)/(u.x-n.x);Math.abs(w-C)>Math.pow(Math.E,-16)&&h.push.apply(h,["C",u.x+4*x,u.y,2*m.x-a.x,2*m.y-a.y,a.x,a.y]),h.push("L ".concat(a.x," ").concat(a.y))}t.labelLine.path=h.join(" ")}}function Rg(t,e,n,r){var i,o,a=(0,E.hX)(t,(function(t){return!(0,E.UM)(t)})),s=e[0]&&e[0].get("coordinate");if(s){var l=s.getCenter(),u=s.getRadius(),c={};try{for(var h=(0,A.XA)(e),f=h.next();!f.done;f=h.next()){var p=f.value;c[p.get("id")]=p}}catch(k){i={error:k}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}var d=(0,E.U2)(a[0],"labelHeight",14),g=(0,E.U2)(a[0],"offset",0);if(!(g<=0)){var v="left",m="right",y=(0,E.vM)(a,(function(t){return t.x<l.x?v:m})),b=s.start,x=s.end,w=Math.min(2*(u+g+d),s.getHeight()),C=w/2,S={minX:b.x,maxX:x.x,minY:l.y-C,maxY:l.y+C};(0,E.S6)(y,(function(t,e){var n=Math.floor(w/d);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),(0,E.S6)(t,(function(t,e){e+1>n&&(c[t.id].set("visible",!1),t.invisible=!0)}))),Ig(t,d,S)})),(0,E.S6)(y,(function(t,e){(0,E.S6)(t,(function(t){var n=e===m,r=c[t.id],i=r.getChildByIndex(0);if(i){var o=u+g,a=t.y-l.y,h=Math.pow(o,2),f=Math.pow(a,2),p=h-f>0?h-f:0,d=Math.sqrt(p),v=Math.abs(Math.cos(t.angle)*o);t.x=n?l.x+Math.max(d,v):l.x-Math.max(d,v)}i&&(i.attr("y",t.y),i.attr("x",t.x)),Lg(t,s)}))}))}}}var Ng=4,jg=4,zg=4;function Ug(t,e,n){var r=e.getCenter(),i=e.getRadius(),o={x:t.x-(n?zg:-zg),y:t.y},a=ts(r.x,r.y,i+Ng,t.angle),s={x:o.x,y:o.y},l={x:a.x,y:a.y},u=ts(r.x,r.y,i,t.angle),c="";if(o.y!==a.y){var h=n?4:-4;s.y=o.y,t.angle<0&&t.angle>=-Math.PI/2&&(s.x=Math.max(a.x,o.x-h),o.y<a.y?l.y=s.y:(l.y=a.y,l.x=Math.max(l.x,s.x-h))),t.angle>0&&t.angle<Math.PI/2&&(s.x=Math.max(a.x,o.x-h),o.y>a.y?l.y=s.y:(l.y=a.y,l.x=Math.max(l.x,s.x-h))),t.angle>Math.PI/2&&(s.x=Math.min(a.x,o.x-h),o.y>a.y?l.y=s.y:(l.y=a.y,l.x=Math.min(l.x,s.x-h))),t.angle<-Math.PI/2&&(s.x=Math.min(a.x,o.x-h),o.y<a.y?l.y=s.y:(l.y=a.y,l.x=Math.min(l.x,s.x-h)))}c=["M ".concat(o.x,",").concat(o.y),"L ".concat(s.x,",").concat(s.y),"L ".concat(l.x,",").concat(l.y),"L ".concat(a.x,",").concat(a.y),"L ".concat(u.x,",").concat(u.y)].join(" "),t.labelLine=(0,E.b$)({},t.labelLine,{path:c})}function Vg(t,e,n,r){var i,o,a=e[0]&&e[0].get("coordinate");if(a){var s=a.getCenter(),l=a.getRadius(),u={};try{for(var c=(0,A.XA)(e),h=c.next();!h.done;h=c.next()){var f=h.value;u[f.get("id")]=f}}catch(k){i={error:k}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}var p=(0,E.U2)(t[0],"labelHeight",14),d=Math.max((0,E.U2)(t[0],"offset",0),Ng);(0,E.S6)(t,(function(t){if(t){var e=(0,E.U2)(u,[t.id]);if(e){var n=t.x>s.x||t.x===s.x&&t.y>s.y,r=(0,E.UM)(t.offsetX)?jg:t.offsetX,i=ts(s.x,s.y,l+Ng,t.angle),o=d+r;t.x=s.x+(n?1:-1)*(l+o),t.y=i.y}}}));var g=a.start,v=a.end,m="left",y="right",b=(0,E.vM)(t,(function(t){return t.x<s.x?m:y})),x=2*(l+d)+p;(0,E.S6)(b,(function(t){var e=t.length*p;e>x&&(x=Math.min(e,Math.abs(g.y-v.y)))}));var w={minX:g.x,maxX:v.x,minY:s.y-x/2,maxY:s.y+x/2};(0,E.S6)(b,(function(t,e){var n=x/p;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),(0,E.S6)(t,(function(t,e){e>n&&(u[t.id].set("visible",!1),t.invisible=!0)}))),Ig(t,p,w)}));var C=w.minY,S=w.maxY;(0,E.S6)(b,(function(t,e){var n=e===y;(0,E.S6)(t,(function(t){var e=(0,E.U2)(u,t&&[t.id]);if(e)if(t.y<C||t.y>S)e.set("visible",!1);else{var r=e.getChildByIndex(0),i=r.getCanvasBBox(),o={x:n?i.x:i.maxX,y:i.y+i.height/2};Ec(r,t.x-o.x,t.y-o.y),t.labelLine&&Ug(t,a,n)}}))}))}}function Hg(t,e,n,r){(0,E.S6)(e,(function(t){var e=r.minX,n=r.minY,i=r.maxX,o=r.maxY,a=t.getCanvasBBox(),s=a.minX,l=a.minY,u=a.maxX,c=a.maxY,h=a.x,f=a.y,p=a.width,d=a.height,g=h,v=f;(s<e||u<e)&&(g=e),(l<n||c<n)&&(v=n),s>i?g=i-p:u>i&&(g-=u-i),l>o?v=o-d:c>o&&(v-=c-o),g===h&&v===f||Ec(t,g-h,v-f)}))}function $g(t,e,n,r){(0,E.S6)(e,(function(t,e){var r=t.getCanvasBBox(),i=n[e].getBBox();(r.minX<i.minX||r.minY<i.minY||r.maxX>i.maxX||r.maxY>i.maxY)&&t.remove(!0)}))}var Gg=100,Wg=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,r=t.yGap,i=void 0===r?8:r;this.xGap=n,this.yGap=i}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.round(t.minX),i=Math.round(t.maxX),o=Math.round(t.minY),a=Math.round(t.maxY),s=r;s<=i;s+=1)if(n[s]){if(s===r||s===i){for(var l=o;l<=a;l++)if(n[s][l]){e=!1;break}}else if(n[s][o]||n[s][a]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),i=Math.round(t.minY),o=Math.round(t.maxY),a=n;a<=r;a+=1)e[a]||(e[a]={});for(a=n;a<=r;a+=this.xGap){for(var s=i;s<=o;s+=this.yGap)e[a][s]=!0;e[a][o]=!0}if(1!==this.yGap)for(a=i;a<=o;a+=1)e[n][a]=!0,e[r][a]=!0;if(1!==this.xGap)for(a=n;a<=r;a+=1)e[a][i]=!0,e[a][o]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function qg(t,e,n){void 0===n&&(n=Gg);var r,i=-1,o=t.attr(),a=o.x,s=o.y,l=t.getCanvasBBox(),u=Math.sqrt(l.width*l.width+l.height*l.height),c=-i,h=0,f=0,p=function(t){var e=.1*t;return[e*Math.cos(e),e*Math.sin(e)]};if(e.hasGap(l))return e.fillGap(l),!0;var d=!1,g=0,v={};while(Math.min(Math.abs(h),Math.abs(f))<u&&g<n)if(r=p(c+=i),h=~~r[0],f=~~r[1],(h||f)&&!v["".concat(h,"-").concat(f)]&&(t.attr({x:a+h,y:s+f}),h+f<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),d=!0,v["".concat(h,"-").concat(f)]=!0;break}return d}function Xg(t,e,n,r){var i=t.getCanvasBBox(),o=i.width,a=i.height,s={x:e,y:n,textAlign:"center"};switch(r){case 0:s.y-=a+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=a+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=a+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=a+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*a+2;break;case 6:s.y+=2*a+2;break;case 7:s.x+=o+1,s.textAlign="left";break;case 8:s.x-=o+1,s.textAlign="right";break;default:break}return t.attr(s),t.getCanvasBBox()}function Zg(t,e,n,r){var i=new Wg;(0,E.S6)(e,(function(t){var e=t.find((function(t){return"text"===t.get("type")}));qg(e,i)||t.remove(!0)})),i.destroy()}function Yg(t,e,n,r){var i=new Wg;(0,E.S6)(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),r=n.x,o=n.y,a=!1,s=0;s<=8;s++){var l=Xg(e,r,o,s);if(i.hasGap(l)){i.fillGap(l),a=!0;break}}a||t.remove(!0)})),i.destroy()}function Qg(t,e){return(t[0]||0)*(e[0]||0)+(t[1]||0)*(e[1]||0)+(t[2]||0)*(e[2]||0)}function Kg(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]},n=e(t[0],t[1]),r=e(t[1],t[2]);return[n,r]}function Jg(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function tv(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[Jg(e[0],n,e[0]),Jg(e[1],n,e[0]),Jg(e[2],n,e[0]),Jg(e[3],n,e[0])]:e}function ev(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){n.push(Qg([t.x,t.y],e))})),{min:Math.min.apply(Math,(0,A.ev)([],(0,A.CR)(n),!1)),max:Math.max.apply(Math,(0,A.ev)([],(0,A.CR)(n),!1))}}function nv(t,e){return t.max>e.min&&t.min<e.max}function rv(t){return"number"===typeof t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0}function iv(t){return["x","y","width","height"].every((function(e){return rv(t[e])}))}function ov(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}function av(t,e,n){if(void 0===n&&(n=0),!iv(t)||!iv(e))return!1;if(!t.rotation&&!e.rotation)return ov(t,e,n);for(var r=tv(t),i=tv(e),o=Kg(r).concat(Kg(i)),a=0;a<o.length;a++){var s=o[a],l=ev(r,s),u=ev(i,s);if(!nv(l,u))return!1}return!0}function sv(t){if("undefined"!==typeof window){var e;try{e=new Blob([t.toString()],{type:"application/javascript"})}catch(n){e=new window.BlobBuilder,e.append(t.toString()),e=e.getBlob()}return new Worker(URL.createObjectURL(e))}}var lv=function(t){function e(){function t(t,e){return(t[0]||0)*(e[0]||0)+(t[1]||0)*(e[1]||0)+(t[2]||0)*(e[2]||0)}function e(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]},n=e(t[0],t[1]),r=e(t[1],t[2]);return[n,r]}function n(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function r(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],r=t.rotation;return r?[n(e[0],r,e[0]),n(e[1],r,e[0]),n(e[2],r,e[0]),n(e[3],r,e[0])]:e}function i(e,n){if(e.length>4)return{min:0,max:0};var r=[];return e.forEach((function(e){r.push(t([e.x,e.y],n))})),{min:Math.min.apply(null,r),max:Math.max.apply(null,r)}}function o(t,e){return t.max>e.min&&t.min<e.max}function a(t){return"number"===typeof t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0}function s(t){return["x","y","width","height"].every((function(e){return a(t[e])}))}function l(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}function u(t,n,a){if(void 0===a&&(a=0),!s(t)||!s(n))return!1;if(!t.rotation&&!n.rotation)return l(t,n,a);for(var u=r(t),c=r(n),h=e(u).concat(e(c)),f=0;f<h.length;f++){var p=h[f],d=i(u,p),g=i(c,p);if(!o(d,g))return!1}return!0}return{intersect:u}}var n=e().intersect;function r(t){for(var e=t.slice(),r=0;r<e.length;r++){var i=e[r];if(i.visible)for(var o=r+1;o<e.length;o++){var a=e[o];i!==a&&a.visible&&n(i,a)&&(a.visible=!1)}}return e}var i={"hide-overlap":r};try{var o=JSON.parse(t.data);if(!o||!o.type||!i[o.type])return;var a=o.type,s=o.items,l=i[a](s);self.postMessage(l)}catch(t){throw t}},uv="\n self.onmessage = ".concat(lv.toString(),"\n"),cv=function(t){for(var e=t.slice(),n=0;n<e.length;n++){var r=e[n];if(r.visible)for(var i=n+1;i<e.length;i++){var o=e[i];r!==o&&o.visible&&av(r,o)&&(o.visible=!1)}}return e},hv=new Map,fv=sv(uv);function pv(t,e,n,r){return new Promise((function(n){var r=e.map((function(e,n){return(0,A.pi)((0,A.pi)({},Oc(e,t[n],(0,E.U2)(t[n],"background.padding"))),{visible:!0})})),i=JSON.stringify(r),o=function(t){return hv.set(i,t),(0,E.S6)(t,(function(t,n){var r=t.visible,i=e[n];r?null===i||void 0===i||i.show():null===i||void 0===i||i.hide()})),n(t)};if(hv.get(i))o(hv.get(i));else if(fv)try{fv.postMessage(JSON.stringify({type:"hide-overlap",items:r})),fv.onmessage=function(t){return o(Array.isArray(t.data)?t.data:[])},fv.onmessageerror=function(t){console.warn("[AntV G2] Web worker is not available"),o(cv(r))}}catch(a){console.error(a),o(cv(r))}else o(cv(r))}))}var dv,gv={"#5B8FF9":!0},vv=function(t){var e=Vt.toRGB(t).toUpperCase();if(gv[e])return gv[e];var n=(0,A.CR)(Vt.rgb2arr(e),3),r=n[0],i=n[1],o=n[2],a=(299*r+587*i+114*o)/1e3<128;return a};function mv(t,e,n){if(0!==n.length){var r=n[0].get("element"),i=r.geometry.theme,o=i.labels||{},a=o.fillColorLight,s=o.fillColorDark;n.forEach((function(t,n){var r=e[n],o=r.find((function(t){return"text"===t.get("type")})),l=cs.fromObject(t.getBBox()),u=cs.fromObject(o.getCanvasBBox()),c=!l.contains(u),h=t.attr("fill"),f=vv(h);c?o.attr(i.overflowLabels.style):f?a&&o.attr("fill",a):s&&o.attr("fill",s)}))}}function yv(t,e,n){var r=t.coordinate,i=Mc(e),o=cs.fromObject(i.getCanvasBBox()),a=cs.fromObject(n.getBBox());return r.isTransposed?a.height>=o.height:a.width>=o.width}function bv(t,e,n){var r=!!t.getAdjust("stack");return r||e.every((function(e,r){var i=n[r];return yv(t,e,i)}))}function xv(t,e,n){var r=t.coordinate,i=cs.fromObject(n.getBBox()),o=Mc(e);r.isTransposed?o.attr({x:i.minX+i.width/2,textAlign:"center"}):o.attr({y:i.minY+i.height/2,textBaseline:"middle"})}function wv(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),o=null===i||void 0===i?void 0:i.geometry;if(o&&"interval"===o.type){var a=bv(o,e,n);a&&n.forEach((function(t,n){var r=e[n];xv(o,r,t)}))}}}function Cv(t){var e=500,n=[],r=Math.max(Math.floor(t.length/e),1);return(0,E.S6)(t,(function(t,e){e%r===0?n.push(t):t.set("visible",!1)})),n}function Sv(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),o=null===i||void 0===i?void 0:i.geometry;if(o&&"interval"===o.type){var a,s=Cv(e),l=(0,A.CR)(o.getXYFields(),1),u=l[0],c=[],h=[],f=(0,E.vM)(s,(function(t){return t.get("data")[u]})),p=(0,E.jj)((0,E.UI)(s,(function(t){return t.get("data")[u]})));s.forEach((function(t){t.set("visible",!0)}));var d=function(t){t&&(t.length&&h.push(t.pop()),h.push.apply(h,(0,A.ev)([],(0,A.CR)(t),!1)))};(0,E.dp)(p)>0&&(a=p.shift(),d(f[a])),(0,E.dp)(p)>0&&(a=p.pop(),d(f[a])),(0,E.S6)(p.reverse(),(function(t){d(f[t])}));while(h.length>0){var g=h.shift();g.get("visible")&&(Bc(g,c)?g.set("visible",!1):c.push(g))}}}}function Av(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,(0,A.ev)([],(0,A.CR)(i),!1)),r}function Ev(t,e,n){return t.some((function(t){return n(t,e)}))}function kv(t,e,n){void 0===n&&(n=0);var r=Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n)),i=Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n));return r*i}function Dv(t,e){return Ev(t,e,(function(t,e){var n=Mc(t),r=Mc(e);return kv(n.getCanvasBBox(),r.getCanvasBBox(),2)>0}))}function Fv(t,e,n,r,i){var o,a;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),l=null===s||void 0===s?void 0:s.geometry;if(l&&"point"===l.type){var u=(0,A.CR)(l.getXYFields(),2),c=u[0],h=u[1],f=(0,E.vM)(e,(function(t){return t.get("data")[c]})),p=[],d=i&&i.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;(0,E.UI)((0,E.XP)(f).reverse(),(function(t){var e=Av(l,f[t]);while(e.length){var n=e.shift(),r=Mc(n);if(Ev(p,n,(function(t,e){return t.get("data")[c]===e.get("data")[c]&&t.get("data")[h]===e.get("data")[h]})))r.set("visible",!1);else{var i=Dv(p,n),o=!1;i&&(r.attr("y",r.attr("y")+2*d),o=Dv(p,n)),o?r.set("visible",!1):p.push(n)}}}))}}}function Mv(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,(0,A.ev)([],(0,A.CR)(i),!1)),r}function Ov(t,e,n){return t.some((function(t){return n(t,e)}))}function Tv(t,e,n){void 0===n&&(n=0);var r=Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n)),i=Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n));return r*i}function Bv(t,e){return Ov(t,e,(function(t,e){var n=Mc(t),r=Mc(e);return Tv(n.getCanvasBBox(),r.getCanvasBBox(),2)>0}))}function _v(t,e,n,r,i){var o,a;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),l=null===s||void 0===s?void 0:s.geometry;if(l&&!(["path","line","area"].indexOf(l.type)<0)){var u=(0,A.CR)(l.getXYFields(),2),c=u[0],h=u[1],f=(0,E.vM)(e,(function(t){return t.get("data")[c]})),p=[],d=i&&i.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;(0,E.UI)((0,E.XP)(f).reverse(),(function(t){var e=Mv(l,f[t]);while(e.length){var n=e.shift(),r=Mc(n);if(Ov(p,n,(function(t,e){return t.get("data")[c]===e.get("data")[c]&&t.get("data")[h]===e.get("data")[h]})))r.set("visible",!1);else{var i=Bv(p,n),o=!1;i&&(r.attr("y",r.attr("y")+2*d),o=Bv(p,n)),o?r.set("visible",!1):p.push(n)}}}))}}}function Iv(){return dv||(dv=document.createElement("canvas").getContext("2d")),dv}var Pv=(0,E.HP)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant,s=Iv();return s.font=[o,a,i,"".concat(n,"px"),r].join(" "),s.measureText((0,E.HD)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),(0,A.ev)([t],(0,A.CR)((0,E.VO)(e)),!1).join("")})),Lv=function(t,e,n){var r,i=16,o=Pv("...",n);r=(0,E.HD)(t)?t:(0,E.BB)(t);var a,s,l=e,u=[];if(Pv(t,n)<=e)return t;while(1){if(a=r.substr(0,i),s=Pv(a,n),s+o>l&&s>l)break;if(u.push(a),l-=s,r=r.substr(i),!r)return u.join("")}while(1){if(a=r.substr(0,1),s=Pv(a,n),s+o>l)break;if(u.push(a),l-=s,r=r.substr(1),!r)return u.join("")}return"".concat(u.join(""),"...")};function Rv(t,e,n,r,i){if(!(e.length<=0)){var o=(null===i||void 0===i?void 0:i.direction)||["top","right","bottom","left"],a=(null===i||void 0===i?void 0:i.action)||"translate",s=(null===i||void 0===i?void 0:i.margin)||0,l=e[0].get("coordinate");if(l){var u=ys(l,s),c=u.minX,h=u.minY,f=u.maxX,p=u.maxY;(0,E.S6)(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,r=e.minY,i=e.maxX,s=e.maxY,l=e.x,u=e.y,d=e.width,g=e.height,v=l,m=u;if(o.indexOf("left")>=0&&(n<c||i<c)&&(v=c),o.indexOf("top")>=0&&(r<h||s<h)&&(m=h),o.indexOf("right")>=0&&(n>f?v=f-d:i>f&&(v-=i-f)),o.indexOf("bottom")>=0&&(r>p?m=p-g:s>p&&(m-=s-p)),v!==l||m!==u){var y=v-l;if("translate"===a)Ec(t,y,m-u);else if("ellipsis"===a){var b=t.findAll((function(t){return"text"===t.get("type")}));b.forEach((function(t){var e=(0,E.ei)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),r=Lv(t.attr("text"),n.width-Math.abs(y),e);t.attr("text",r)}))}else t.hide()}}))}}}function Nv(t,e,n){var r={fillOpacity:(0,E.UM)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:(0,E.UM)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:(0,E.UM)(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(r,e)}function jv(t,e,n){var r={fillOpacity:0,strokeOpacity:0,opacity:0},i=e.easing,o=e.duration,a=e.delay;t.animate(r,o,i,(function(){t.remove(!0)}),a)}function zv(t,e,n){var r,i=(0,A.CR)(e,2),o=i[0],a=i[1];return t.applyToMatrix([o,a,1]),"x"===n?(t.setMatrix(yr.vs(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]])),r=yr.vs(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])):"y"===n?(t.setMatrix(yr.vs(t.getMatrix(),[["t",-o,-a],["s",1,.01],["t",o,a]])),r=yr.vs(t.getMatrix(),[["t",-o,-a],["s",1,100],["t",o,a]])):"xy"===n&&(t.setMatrix(yr.vs(t.getMatrix(),[["t",-o,-a],["s",.01,.01],["t",o,a]])),r=yr.vs(t.getMatrix(),[["t",-o,-a],["s",100,100],["t",o,a]])),r}function Uv(t,e,n,r,i){var o,a,s=n.start,l=n.end,u=n.getWidth(),c=n.getHeight();"y"===i?(o=s.x+u/2,a=r.y<s.y?r.y:s.y):"x"===i?(o=r.x>s.x?r.x:s.x,a=s.y+c/2):"xy"===i&&(n.isPolar?(o=n.getCenter().x,a=n.getCenter().y):(o=(s.x+l.x)/2,a=(s.y+l.y)/2));var h=zv(t,[o,a],i);t.animate({matrix:h},e)}function Vv(t,e,n){var r=n.coordinate,i=n.minYPoint;Uv(t,e,r,i,"x")}function Hv(t,e,n){var r=n.coordinate,i=n.minYPoint;Uv(t,e,r,i,"y")}function $v(t,e,n){var r=n.coordinate,i=n.minYPoint;Uv(t,e,r,i,"xy")}function Gv(t,e,n){var r=t.getTotalLength();t.attr("lineDash",[r]),t.animate((function(t){return{lineDashOffset:(1-t)*r}}),e)}function Wv(t,e,n){var r=n.toAttrs,i=r.x,o=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:o},e)}function qv(t,e,n){var r=t.getBBox(),i=t.get("origin").mappingData,o=i.points,a=o[0].y-o[1].y>0?r.maxX:r.minX,s=(r.minY+r.maxY)/2;t.applyToMatrix([a,s,1]);var l=yr.vs(t.getMatrix(),[["t",-a,-s],["s",.01,1],["t",a,s]]);t.setMatrix(l),t.animate({matrix:yr.vs(t.getMatrix(),[["t",-a,-s],["s",100,1],["t",a,s]])},e)}function Xv(t,e,n){var r=t.getBBox(),i=t.get("origin").mappingData,o=(r.minX+r.maxX)/2,a=i.points,s=a[0].y-a[1].y<=0?r.maxY:r.minY;t.applyToMatrix([o,s,1]);var l=yr.vs(t.getMatrix(),[["t",-o,-s],["s",1,.01],["t",o,s]]);t.setMatrix(l),t.animate({matrix:yr.vs(t.getMatrix(),[["t",-o,-s],["s",1,100],["t",o,s]])},e)}function Zv(t,e){var n,r=Lh(t,e),i=r.startAngle,o=r.endAngle;return!(0,E.vQ)(i,.5*-Math.PI)&&i<.5*-Math.PI&&(i+=2*Math.PI),!(0,E.vQ)(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),0===e[5]&&(n=(0,A.CR)([o,i],2),i=n[0],o=n[1]),(0,E.vQ)(i,1.5*Math.PI)&&(i=-.5*Math.PI),(0,E.vQ)(o,-.5*Math.PI)&&(o=1.5*Math.PI),{startAngle:i,endAngle:o}}function Yv(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]&&"C"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function Qv(t){var e,n,r,i=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===i.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=i[0],a=i.length>1?i[1]:i[0],s=t.indexOf(o),l=t.indexOf(a),u=Yv(t[s-1]),c=Yv(t[l-1]),h=Zv(u,o),f=h.startAngle,p=h.endAngle,d=Zv(c,a),g=d.startAngle,v=d.endAngle;(0,E.vQ)(f,g)&&(0,E.vQ)(p,v)?(n=f,r=p):(n=Math.min(f,g),r=Math.max(p,v));var m=o[1],y=i[i.length-1][1];return m<y?(e=(0,A.CR)([y,m],2),m=e[0],y=e[1]):m===y&&(y=0),{startAngle:n,endAngle:r,radius:m,innerRadius:y}}function Kv(t,e,n){var r=n.toAttrs,i=n.coordinate,o=r.path||[],a=o.map((function(t){return t[0]}));if(!(o.length<1)){var s=Qv(o),l=s.startAngle,u=s.endAngle,c=s.radius,h=s.innerRadius,f=Qv(t.attr("path")),p=f.startAngle,d=f.endAngle,g=i.getCenter(),v=l-p,m=u-d;0!==v||0!==m?t.animate((function(t){var e=p+t*v,n=d+t*m;return(0,A.pi)((0,A.pi)({},r),{path:(0,E.Xy)(a,["M","A","A","Z"])?ns(g.x,g.y,c,e,n):es(g.x,g.y,c,e,n,h)})}),(0,A.pi)((0,A.pi)({},e),{callback:function(){t.attr("path",o)}})):t.attr("path",o)}}function Jv(t,e,n){var r=ms(n.coordinate,20),i=r.type,o=r.startState,a=r.endState,s=t.setClip({type:i,attrs:o});s.animate(a,(0,A.pi)((0,A.pi)({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),s.remove(!0)}}))}function tm(t,e,n){if(t.isGroup())(0,E.S6)(t.getChildren(),(function(t){tm(t,e,n)}));else{var r=t.getBBox(),i=(r.minX+r.maxX)/2,o=(r.minY+r.maxY)/2;if(t.applyToMatrix([i,o,1]),"zoomIn"===n){var a=yr.vs(t.getMatrix(),[["t",-i,-o],["s",.01,.01],["t",i,o]]);t.setMatrix(a),t.animate({matrix:yr.vs(t.getMatrix(),[["t",-i,-o],["s",100,100],["t",i,o]])},e)}else t.animate({matrix:yr.vs(t.getMatrix(),[["t",-i,-o],["s",.01,.01],["t",i,o]])},(0,A.pi)((0,A.pi)({},e),{callback:function(){t.remove(!0)}}))}}function em(t,e,n){tm(t,e,"zoomIn")}function nm(t,e,n){tm(t,e,"zoomOut")}function rm(t){return[m.TOP,m.BOTTOM].includes(t)?{offsetX:0,offsetY:t===m.TOP?-8:8,style:{textAlign:"center",textBaseline:t===m.TOP?"bottom":"top"}}:[m.LEFT,m.RIGHT].includes(t)?{offsetX:t===m.LEFT?-8:8,offsetY:0,style:{textAlign:t===m.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function im(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var om=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){return(0,E.b$)({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=.5,r={x:.5,y:.5},i=2*Math.PI/t,o=-1*Math.PI/2+i*e,a=n/(1+1/Math.sin(i/2)),s=im(r,n-a,o),l=5*Math.PI/4,u=1*Math.PI/4;return{start:im(s,a,l),end:im(s,a,u)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,r=n.fields,i=n.type,o=(0,A.CR)(r,1),a=o[0];if(!a)throw new Error("No `fields` specified!");var s=this.getFieldValues(t,a),l=s.length,u=[];return s.forEach((function(n,r){var o=[{field:a,value:n,values:s}],c=(0,E.hX)(t,e.getFacetDataFilter(o)),h={type:i,data:c,region:e.getRegion(l,r),columnValue:n,columnField:a,columnIndex:r,columnValuesLength:l,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};u.push(h)})),u},e.prototype.getXAxisOption=function(t,e,n,r){return n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;(0,E.S6)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=(0,E.U2)(t.cfg.title,"formatter"),o=(0,E.b$)({position:["50%","0%"],content:i?i(n):n},rm(m.TOP),t.cfg.title);r.annotation().text(o)}))},e}(Ns),am=om,sm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){return(0,E.b$)({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,r=this.cfg.cols,i=(0,A.CR)(n,1),o=i[0];if(!o)throw new Error("No `fields` specified!");var a=this.getFieldValues(t,o),s=a.length;r=r||s;var l=this.getPageCount(s,r),u=[];return a.forEach((function(n,i){var c=e.getRowCol(i,r),h=c.row,f=c.col,p=[{field:o,value:n,values:a}],d=(0,E.hX)(t,e.getFacetDataFilter(p)),g={type:e.cfg.type,data:d,region:e.getRegion(l,r,f,h),columnValue:n,rowValue:n,columnField:o,rowField:null,columnIndex:f,rowIndex:h,columnValuesLength:r,rowValuesLength:l,total:s};u.push(g)})),u},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1&&r.columnValuesLength*r.rowIndex+r.columnIndex+1+r.columnValuesLength<=r.total?(0,A.pi)((0,A.pi)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?(0,A.pi)((0,A.pi)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;(0,E.S6)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=(0,E.U2)(t.cfg.title,"formatter"),o=(0,E.b$)({position:["50%","0%"],content:i?i(n):n},rm(m.TOP),t.cfg.title);r.annotation().text(o)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){var n=Math.floor(t/e),r=t%e;return{row:n,col:r}},e}(Ns),lm=sm,um=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){return(0,E.b$)({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:(0,A.pi)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,A.pi)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,r=e.type,i=n.length,o=i,a=[],s=0;s<o;s++)for(var l=n[s],u=0;u<i;u++){var c=n[u],h={type:r,data:t,region:this.getRegion(i,o,s,u),columnValue:l,rowValue:c,columnField:l,rowField:c,columnIndex:s,rowIndex:u,columnValuesLength:o,rowValuesLength:i};a.push(h)}return a},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?(0,A.pi)((0,A.pi)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?(0,A.pi)((0,A.pi)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;(0,E.S6)(this.facets,(function(e,n){var r=e.columnIndex,i=e.rowIndex,o=e.columnValuesLength,a=(e.rowValuesLength,e.columnValue),s=e.rowValue,l=e.view;if(0===i){var u=(0,E.U2)(t.cfg.columnTitle,"formatter"),c=(0,E.b$)({position:["50%","0%"],content:u?u(a):a},rm(m.TOP),t.cfg.columnTitle);l.annotation().text(c)}if(r===o-1){u=(0,E.U2)(t.cfg.rowTitle,"formatter"),c=(0,E.b$)({position:["100%","50%"],content:u?u(s):s},rm(m.RIGHT),t.cfg.rowTitle);l.annotation().text(c)}}))},e}(Ns),cm=um,hm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getDefaultCfg=function(){return(0,E.b$)({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2===0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!==0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,n,r=this,i=(0,A.CR)(this.cfg.fields,1),o=i[0],a=[],s=1,l=1,u=[""],c=[""];return this.cfg.transpose?(e=o,u=this.getFieldValues(t,e).slice(0,2),s=u.length):(n=o,c=this.getFieldValues(t,n).slice(0,2),l=c.length),u.forEach((function(i,o){c.forEach((function(h,f){var p=[{field:e,value:i,values:u},{field:n,value:h,values:c}],d=(0,E.hX)(t,r.getFacetDataFilter(p)),g={type:r.cfg.type,data:d,region:r.getRegion(l,s,o,f),columnValue:i,rowValue:h,columnField:e,rowField:n,columnIndex:o,rowIndex:f,columnValuesLength:s,rowValuesLength:l};a.push(g)}))})),a},e.prototype.getXAxisOption=function(t,e,n,r){return 1===r.columnIndex||1===r.rowIndex?(0,A.pi)((0,A.pi)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;(0,E.S6)(this.facets,(function(e,n){var r=e.columnValue,i=e.rowValue,o=e.view,a=(0,E.U2)(t.cfg.title,"formatter");if(t.cfg.transpose){var s=(0,E.b$)({position:["50%","0%"],content:a?a(r):r},rm(m.TOP),t.cfg.title);o.annotation().text(s)}else{s=(0,E.b$)({position:["100%","50%"],content:a?a(i):i},rm(m.RIGHT),t.cfg.title);o.annotation().text(s)}}))},e}(Ns),fm=hm,pm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return(0,E.b$)({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:(0,A.pi)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,A.pi)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=(0,A.CR)(this.cfg.fields,2),r=n[0],i=n[1],o=[],a=1,s=1,l=[""],u=[""];return r&&(l=this.getFieldValues(t,r),a=l.length),i&&(u=this.getFieldValues(t,i),s=u.length),l.forEach((function(n,c){u.forEach((function(h,f){var p=[{field:r,value:n,values:l},{field:i,value:h,values:u}],d=(0,E.hX)(t,e.getFacetDataFilter(p)),g={type:e.cfg.type,data:d,region:e.getRegion(s,a,c,f),columnValue:n,rowValue:h,columnField:r,rowField:i,columnIndex:c,rowIndex:f,columnValuesLength:a,rowValuesLength:s};o.push(g)}))})),o},e.prototype.renderTitle=function(){var t=this;(0,E.S6)(this.facets,(function(e,n){var r=e.columnIndex,i=e.rowIndex,o=e.columnValuesLength,a=e.columnValue,s=e.rowValue,l=e.view;if(0===i){var u=(0,E.U2)(t.cfg.columnTitle,"formatter"),c=(0,E.b$)({position:["50%","0%"],content:u?u(a):a},rm(m.TOP),t.cfg.columnTitle);l.annotation().text(c)}if(r===o-1){u=(0,E.U2)(t.cfg.rowTitle,"formatter"),c=(0,E.b$)({position:["100%","50%"],content:u?u(s):s},rm(m.RIGHT),t.cfg.rowTitle);l.annotation().text(c)}}))},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?(0,A.pi)((0,A.pi)({},n),{title:null,label:null}):r.columnIndex!==Math.floor((r.columnValuesLength-1)/2)?(0,A.pi)((0,A.pi)({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?(0,A.pi)((0,A.pi)({},n),{title:null,label:null}):r.rowIndex!==Math.floor((r.rowValuesLength-1)/2)?(0,A.pi)((0,A.pi)({},n),{title:null}):n},e}(Ns),dm=pm,gm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return(0,A.ZT)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(k.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return(0,E.b$)({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){var e=this.cfg.fields;if(!e.length)throw new Error("Please specify for the fields for rootFacet!");var n=[],r={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return n.push(r),r.children=this.getChildFacets(t,1,n),this.setRegion(n),n},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,n,r){var i=1/e,o=1/t,a={x:i*n,y:o*r},s={x:a.x+i,y:a.y+2*o/3};return{start:a,end:s}},e.prototype.forceColIndex=function(t){var e,n,r=this,i=[],o=0;t.forEach((function(t){r.isLeaf(t)&&(i.push(t),t.columnIndex=o,o++)})),i.forEach((function(t){t.columnValuesLength=i.length}));for(var a=this.cfg.fields.length,s=a-1;s>=0;s--){var l=this.getFacetsByLevel(t,s);try{for(var u=(e=void 0,(0,A.XA)(l)),c=u.next();!c.done;c=u.next()){var h=c.value;this.isLeaf(h)||(h.originColIndex=h.columnIndex,h.columnIndex=this.getRegionIndex(h.children),h.columnValuesLength=i.length)}}catch(f){e={error:f}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0],n=t[t.length-1];return(n.columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var r=this,i=this.cfg.fields,o=i.length;if(!(o<e)){var a=[],s=i[e-1],l=this.getFieldValues(t,s);return l.forEach((function(i,o){var u=[{field:s,value:i,values:l}],c=t.filter(r.getFacetDataFilter(u));if(c.length){var h={type:r.cfg.type,data:c,region:null,columnValue:i,rowValue:"",columnField:s,rowField:"",columnIndex:o,rowValuesLength:r.getRows(),columnValuesLength:1,rowIndex:e,children:r.getChildFacets(c,e+1,n)};a.push(h),n.push(h)}})),a}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;(0,E.S6)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=(0,E.U2)(t.cfg.title,"formatter"),o=(0,E.b$)({position:["50%","0%"],content:i?i(n):n},rm(m.TOP),t.cfg.title);r.annotation().text(o)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,r=t.view,i=r.coordinateBBox,o={x:i.x+i.width/2,y:i.y+i.height};e.forEach((function(t){var e=t.view.coordinateBBox,r={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},i={x:o.x,y:o.y+(r.y-o.y)/2},a={x:r.x,y:i.y};n.drawLine([o,i,a,r])}))},e.prototype.getPath=function(t){var e=[],n=this.cfg.line.smooth;return n?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:(0,E.f0)({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?(0,A.pi)((0,A.pi)({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.originColIndex&&0!==r.columnIndex?(0,A.pi)((0,A.pi)({},n),{title:null,label:null}):n},e}(Ns),vm=gm;function mm(t){var e=(0,A.ev)([],(0,A.CR)(t),!1);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2===1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2}function ym(t){var e=(0,E.u4)(t,(function(t,e){return t+(isNaN(e)||!(0,E.hj)(e)?0:e)}),0);return 0===t.length?0:e/t.length}function bm(t,e){if(!e)return null;var n;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=e.isCategory?mm(e.values.map((function(t,e){return e}))):mm(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:ym(e.values);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t;break}return e.scale(n)}var xm=["regionFilter","shape"],wm=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(v.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(v.BG).addGroup(),n.option=[],n}return(0,A.ZT)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){this.update()},e.prototype.render=function(){},e.prototype.update=function(){var t=this;this.onAfterRender((function(){var e=new Map;(0,E.S6)(t.option,(function(n){if((0,E.q9)(xm,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),t.cache=t.syncCache(e)}));var e=new Map;(0,E.S6)(this.option,(function(n){if(!(0,E.q9)(xm,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),this.cache=this.syncCache(e)},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.clearComponents=function(){this.getComponents().forEach((function(t){t.component.destroy()})),this.cache.clear()},e.prototype.onAfterRender=function(t){this.view.getOptions().animate?this.view.geometries.forEach((function(e){e.animateOption&&e.once(D.AFTER_DRAW_ANIMATE,(function(){t()}))})):this.view.getRootView().once(k.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,n=i[(0,E.jC)(e)];if(n){var r=this.getAnnotationTheme(e),o=this.getAnnotationCfg(e,t,r);if(!o)return null;var a=new n(o);return{component:a,layer:this.isTop(o)?v.FORE:v.BG,direction:m.NONE,type:y.ANNOTATION,extra:t}}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation((0,A.pi)({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation((0,A.pi)({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation((0,A.pi)({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation((0,A.pi)({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation((0,A.pi)({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation((0,A.pi)({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation((0,A.pi)({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation((0,A.pi)({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation((0,A.pi)({type:"shape"},t))},e.prototype.html=function(t){this.annotation((0,A.pi)({type:"html"},t))},e.prototype.parsePosition=function(t){var e,n,r=this.view.getXScale(),i=this.view.getScalesByDim("y"),o=(0,E.mf)(t)?t.call(null,r,i):t,a=0,s=0;if((0,E.kJ)(o)){var l=(0,A.CR)(o,2),u=l[0],c=l[1];if((0,E.HD)(u)&&-1!==u.indexOf("%")&&!isNaN(u.slice(0,-1)))return this.parsePercentPosition(o);a=bm(u,r),s=bm(c,Object.values(i)[0])}else if(!(0,E.UM)(o))try{for(var h=(0,A.XA)((0,E.XP)(o)),f=h.next();!f.done;f=h.next()){var p=f.value,d=o[p];p===r.field&&(a=bm(d,r)),i[p]&&(s=bm(d,i[p]))}}catch(g){e={error:g}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(e)throw e.error}}return isNaN(a)||isNaN(s)?null:this.view.getCoordinate().convert({x:a,y:s})},e.prototype.getRegionPoints=function(t,e){var n,r=this,i=this.view.getXScale(),o=this.view.getScalesByDim("y"),a=Object.values(o)[0],s=i.field,l=this.view.getData(),u=(0,E.kJ)(t)?t[0]:t[s],c=(0,E.kJ)(e)?e[0]:e[s],h=[];return(0,E.S6)(l,(function(t,e){if(t[s]===u&&(n=e),e>=n){var i=r.parsePosition([t[s],t[a.field]]);i&&h.push(i)}if(t[s]===c)return!1})),h},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,o=r.end,a={x:Math.min(i.x,o.x),y:Math.min(i.y,o.y)},s=r.getWidth()*e+a.x,l=r.getHeight()*n+a.y;return{x:s,y:l}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),o={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+r,maxY:o.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var r=this,i=this.view.getCoordinate(),o=this.view.getCanvas(),a={};if((0,E.UM)(e))return null;var s=e.start,l=e.end,u=e.position,c=this.parsePosition(s),h=this.parsePosition(l),f=this.parsePosition(u);if(!(!["arc","image","line","region","regionFilter"].includes(t)||c&&h))return null;if(["text","dataMarker","html"].includes(t)&&!f)return null;if("arc"===t){var p=e,d=(p.start,p.end,(0,A._T)(p,["start","end"])),g=vs(i,c),v=vs(i,h);g>v&&(v=2*Math.PI+v),a=(0,A.pi)((0,A.pi)({},d),{center:i.getCenter(),radius:ds(i,c),startAngle:g,endAngle:v})}else if("image"===t){var m=e;m.start,m.end,d=(0,A._T)(m,["start","end"]);a=(0,A.pi)((0,A.pi)({},d),{start:c,end:h,src:e.src})}else if("line"===t){var y=e;y.start,y.end,d=(0,A._T)(y,["start","end"]);a=(0,A.pi)((0,A.pi)({},d),{start:c,end:h,text:(0,E.U2)(e,"text",null)})}else if("region"===t){var b=e;b.start,b.end,d=(0,A._T)(b,["start","end"]);a=(0,A.pi)((0,A.pi)({},d),{start:c,end:h})}else if("text"===t){var x=this.view.getData(),w=e,C=(w.position,w.content),S=(d=(0,A._T)(w,["position","content"]),C);(0,E.mf)(C)&&(S=C(x)),a=(0,A.pi)((0,A.pi)((0,A.pi)({},f),d),{content:S})}else if("dataMarker"===t){var k=e,D=(k.position,k.point),F=k.line,M=k.text,O=k.autoAdjust,T=k.direction;d=(0,A._T)(k,["position","point","line","text","autoAdjust","direction"]);a=(0,A.pi)((0,A.pi)((0,A.pi)({},d),f),{coordinateBBox:this.getCoordinateBBox(),point:D,line:F,text:M,autoAdjust:O,direction:T})}else if("dataRegion"===t){var B=e,_=B.start,I=B.end,P=B.region,L=(M=B.text,B.lineLength);d=(0,A._T)(B,["start","end","region","text","lineLength"]);a=(0,A.pi)((0,A.pi)({},d),{points:this.getRegionPoints(_,I),region:P,text:M,lineLength:L})}else if("regionFilter"===t){var R=e,N=(R.start,R.end,R.apply),j=R.color,z=(d=(0,A._T)(R,["start","end","apply","color"]),this.view.geometries),U=[],V=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return V(t)})):U.push(t))};(0,E.S6)(z,(function(t){N?(0,E.FX)(N,t.type)&&(0,E.S6)(t.elements,(function(t){V(t.shape)})):(0,E.S6)(t.elements,(function(t){V(t.shape)}))})),a=(0,A.pi)((0,A.pi)({},d),{color:j,shapes:U,start:c,end:h})}else if("shape"===t){var H=e,$=H.render,G=(0,A._T)(H,["render"]),W=function(t){if((0,E.mf)(e.render))return $(t,r.view,{parsePosition:r.parsePosition.bind(r)})};a=(0,A.pi)((0,A.pi)({},G),{render:W})}else if("html"===t){var q=e,X=q.html,Z=(q.position,G=(0,A._T)(q,["html","position"]),function(t){return(0,E.mf)(X)?X(t,r.view):X});a=(0,A.pi)((0,A.pi)((0,A.pi)({},G),f),{parent:o.get("el").parentNode,html:Z})}var Y=(0,E.b$)({},n,(0,A.pi)((0,A.pi)({},a),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(Y.container=this.getComponentContainer(Y)),Y.animate=this.view.getOptions().animate&&Y.animate&&(0,E.U2)(e,"animate",Y.animate),Y.animateOption=(0,E.b$)({},Yu,Y.animateOption,e.animateOption),Y},e.prototype.isTop=function(t){return(0,E.U2)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return(0,E.U2)(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,r=this.getAnnotationTheme(n),i=this.getAnnotationCfg(n,t,r);i&&ls(i,["container"]),e.component.update((0,A.pi)((0,A.pi)({},i||{}),{visible:!!i})),(0,E.q9)(xm,t.type)&&e.component.render()}else e=this.createAnnotation(t),e&&(e.component.init(),(0,E.q9)(xm,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach((function(t,e){n.set(e,t)})),n.forEach((function(t,r){(0,E.sE)(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}(Hu),Cm=wm;function Sm(t,e){var n=(0,E.b$)({},(0,E.U2)(t,["components","axis","common"]),(0,E.U2)(t,["components","axis",e]));return(0,E.U2)(n,["grid"],{})}function Am(t,e,n,r){var i=[],o=e.getTicks();return t.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce((function(e,o,a){var s=o.value;if(r)i.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(a){var l=e.value,u=(l+s)/2;i.push({points:[t.convert("y"===n?{x:0,y:u}:{x:u,y:0}),t.convert("y"===n?{x:1,y:u}:{x:u,y:1})]})}return o}),o[0]),i}function Em(t,e,n,r,i){var o=e.values.length,a=[],s=n.getTicks();return s.reduce((function(e,n){var s=e?e.value:n.value,l=n.value,u=(s+l)/2;return"x"===i?a.push({points:[t.convert({x:r?l:u,y:0}),t.convert({x:r?l:u,y:1})]}):a.push({points:(0,E.UI)(Array(o+1),(function(e,n){return t.convert({x:n/o,y:r?l:u})}))}),n}),s[0]),a}function km(t,e){var n=(0,E.U2)(e,"grid");if(null===n)return!1;var r=(0,E.U2)(t,"grid");return!(void 0===n&&null===r)}var Dm=["container"],Fm=(0,A.pi)((0,A.pi)({},Yu),{appear:null}),Mm=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(v.BG).addGroup(),n.gridForeContainer=n.view.getLayer(v.FORE).addGroup(),n.axisContainer=n.view.getLayer(v.BG).addGroup(),n.axisForeContainer=n.view.getLayer(v.FORE).addGroup(),n}return(0,A.ZT)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();(0,E.S6)(this.getComponents(),(function(n){var r,i=n.component,o=n.direction,a=n.type,s=n.extra,l=s.dim,u=s.scale,c=s.alignTick;if(a===y.AXIS)e.isPolar?"x"===l?r=e.isTransposed?Ms(e,o):Is(e):"y"===l&&(r=e.isTransposed?Is(e):Ms(e,o)):r=Ms(e,o);else if(a===y.GRID)if(e.isPolar){var h=void 0;h=e.isTransposed?"x"===l?Em(e,t.view.getYScales()[0],u,c,l):Am(e,u,l,c):"x"===l?Am(e,u,l,c):Em(e,t.view.getXScale(),u,c,l),r={items:h,center:t.view.getCoordinate().getCenter()}}else r={items:Am(e,u,l,c)};i.update(r)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,r){t.has(r)?e.set(r,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=Ps(this.option,e.field);if(!1!==n){var r=Ls(n,m.BOTTOM),i=v.BG,o="x",a=this.view.getCoordinate(),s=this.getId("axis",e.field),l=this.getId("grid",e.field);if(a.isRect){var u=this.cache.get(s);if(u){var c=this.getLineAxisCfg(e,n,r);ls(c,Dm),u.component.update(c),t.set(s,u)}else u=this.createLineAxis(e,n,i,r,o),this.cache.set(s,u),t.set(s,u);var h=this.cache.get(l);if(h){c=this.getLineGridCfg(e,n,r,o);ls(c,Dm),h.component.update(c),t.set(l,h)}else h=this.createLineGrid(e,n,i,r,o),h&&(this.cache.set(l,h),t.set(l,h))}else if(a.isPolar){u=this.cache.get(s);if(u){c=a.isTransposed?this.getLineAxisCfg(e,n,m.RADIUS):this.getCircleAxisCfg(e,n,r);ls(c,Dm),u.component.update(c),t.set(s,u)}else{if(a.isTransposed){if((0,E.o8)(n))return;u=this.createLineAxis(e,n,i,m.RADIUS,o)}else u=this.createCircleAxis(e,n,i,r,o);this.cache.set(s,u),t.set(s,u)}h=this.cache.get(l);if(h){c=a.isTransposed?this.getCircleGridCfg(e,n,m.RADIUS,o):this.getLineGridCfg(e,n,m.CIRCLE,o);ls(c,Dm),h.component.update(c),t.set(l,h)}else{if(a.isTransposed){if((0,E.o8)(n))return;h=this.createCircleGrid(e,n,i,m.RADIUS,o)}else h=this.createLineGrid(e,n,i,m.CIRCLE,o);h&&(this.cache.set(l,h),t.set(l,h))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();(0,E.S6)(n,(function(n,r){if(n&&!n.isIdentity){var i=n.field,o=Ps(e.option,i);if(!1!==o){var a=v.BG,s="y",l=e.getId("axis",i),u=e.getId("grid",i),c=e.view.getCoordinate();if(c.isRect){var h=Ls(o,0===r?m.LEFT:m.RIGHT),f=e.cache.get(l);if(f){var p=e.getLineAxisCfg(n,o,h);ls(p,Dm),f.component.update(p),t.set(l,f)}else f=e.createLineAxis(n,o,a,h,s),e.cache.set(l,f),t.set(l,f);var d=e.cache.get(u);if(d){p=e.getLineGridCfg(n,o,h,s);ls(p,Dm),d.component.update(p),t.set(u,d)}else d=e.createLineGrid(n,o,a,h,s),d&&(e.cache.set(u,d),t.set(u,d))}else if(c.isPolar){f=e.cache.get(l);if(f){p=c.isTransposed?e.getCircleAxisCfg(n,o,m.CIRCLE):e.getLineAxisCfg(n,o,m.RADIUS);ls(p,Dm),f.component.update(p),t.set(l,f)}else{if(c.isTransposed){if((0,E.o8)(o))return;f=e.createCircleAxis(n,o,a,m.CIRCLE,s)}else f=e.createLineAxis(n,o,a,m.RADIUS,s);e.cache.set(l,f),t.set(l,f)}d=e.cache.get(u);if(d){p=c.isTransposed?e.getLineGridCfg(n,o,m.CIRCLE,s):e.getCircleGridCfg(n,o,m.RADIUS,s);ls(p,Dm),d.component.update(p),t.set(u,d)}else{if(c.isTransposed){if((0,E.o8)(o))return;d=e.createLineGrid(n,o,a,m.CIRCLE,s)}else d=e.createCircleGrid(n,o,a,m.RADIUS,s);d&&(e.cache.set(u,d),t.set(u,d))}}}}}))},e.prototype.createLineAxis=function(t,e,n,r,i){var o={component:new $a(this.getLineAxisCfg(t,e,r)),layer:n,direction:r===m.RADIUS?m.NONE:r,type:y.AXIS,extra:{dim:i,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createLineGrid=function(t,e,n,r,i){var o=this.getLineGridCfg(t,e,r,i);if(o){var a={component:new Wa(o),layer:n,direction:m.NONE,type:y.GRID,extra:{dim:i,scale:t,alignTick:(0,E.U2)(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.createCircleAxis=function(t,e,n,r,i){var o={component:new Ga(this.getCircleAxisCfg(t,e,r)),layer:n,direction:r,type:y.AXIS,extra:{dim:i,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createCircleGrid=function(t,e,n,r,i){var o=this.getCircleGridCfg(t,e,r,i);if(o){var a={component:new qa(o),layer:n,direction:m.NONE,type:y.GRID,extra:{dim:i,scale:t,alignTick:(0,E.U2)(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.getLineAxisCfg=function(t,e,n){var r=(0,E.U2)(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),o=Ms(i,n),a=Rs(t,e),s=Bs(this.view.getTheme(),n),l=(0,E.U2)(e,["title"])?(0,E.b$)({title:{style:{text:a}}},{title:_s(this.view.getTheme(),n,e.title)},e):e,u=(0,E.b$)((0,A.pi)((0,A.pi)({container:r},o),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:i.isPolar?-1*Ts(o,i.getCenter()):Ts(o,i.getCenter()),theme:s}),s,l),c=this.getAnimateCfg(u),h=c.animate,f=c.animateOption;u.animateOption=f,u.animate=h;var p=Os(o),d=(0,E.U2)(u,"verticalLimitLength",p?1/3:.5);if(d<=1){var g=this.view.getCanvas().get("width"),v=this.view.getCanvas().get("height");u.verticalLimitLength=d*(p?g:v)}return u},e.prototype.getLineGridCfg=function(t,e,n,r){if(km(Bs(this.view.getTheme(),n),e)){var i=Sm(this.view.getTheme(),n),o=(0,E.b$)({container:(0,E.U2)(e,["top"])?this.gridForeContainer:this.gridContainer},i,(0,E.U2)(e,"grid"),this.getAnimateCfg(e));return o.items=Am(this.view.getCoordinate(),t,r,(0,E.U2)(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var r=(0,E.U2)(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),o=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(i.endAngle-i.startAngle)!==2*Math.PI||o.pop();var a=Rs(t,e),s=Bs(this.view.getTheme(),m.CIRCLE),l=(0,E.U2)(e,["title"])?(0,E.b$)({title:{style:{text:a}}},{title:_s(this.view.getTheme(),n,e.title)},e):e,u=(0,E.b$)((0,A.pi)((0,A.pi)({container:r},Is(this.view.getCoordinate())),{ticks:o,verticalFactor:1,theme:s}),s,l),c=this.getAnimateCfg(u),h=c.animate,f=c.animateOption;return u.animate=h,u.animateOption=f,u},e.prototype.getCircleGridCfg=function(t,e,n,r){if(km(Bs(this.view.getTheme(),n),e)){var i=Sm(this.view.getTheme(),m.RADIUS),o=(0,E.b$)({container:(0,E.U2)(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},i,(0,E.U2)(e,"grid"),this.getAnimateCfg(e)),a=(0,E.U2)(o,"alignTick",!0),s="x"===r?this.view.getYScales()[0]:this.view.getXScale();return o.items=Em(this.view.getCoordinate(),s,t,a,r),o}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&(0,E.U2)(t,"animate"),animateOption:t&&t.animateOption?(0,E.b$)({},Fm,t.animateOption):Fm}},e}(Hu),Om=Mm;function Tm(t,e,n){return n===m.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===m.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===m.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===m.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===m.TOP_LEFT||n===m.LEFT_TOP?[t.tl.x,t.tl.y]:n===m.TOP_RIGHT||n===m.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===m.BOTTOM_LEFT||n===m.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===m.BOTTOM_RIGHT||n===m.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function Bm(t,e){return(0,E.jn)(t)?!1!==t&&{}:(0,E.U2)(t,[e],t)}function _m(t){return(0,E.U2)(t,"position",m.BOTTOM)}var Im=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(v.FORE).addGroup(),n}return(0,A.ZT)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,(0,E.S6)(this.components,(function(e){var n=e.component,r=e.direction,i=Gc(r),o=n.get("maxWidthRatio"),a=n.get("maxHeightRatio"),s=t.getCategoryLegendSizeCfg(i,o,a),l=n.get("maxWidth"),u=n.get("maxHeight");n.update({maxWidth:Math.min(s.maxWidth,l||0),maxHeight:Math.min(s.maxHeight,u||0)});var c=n.get("padding"),h=n.getLayoutBBox(),f=new cs(h.x,h.y,h.width,h.height).expand(c),p=(0,A.CR)(Tm(t.view.viewBBox,f,r),2),d=p[0],g=p[1],v=(0,A.CR)(Tm(t.layoutBBox,f,r),2),m=v[0],y=v[1],b=0,x=0;r.startsWith("top")||r.startsWith("bottom")?(b=d,x=y):(b=m,x=g),n.setLocation({x:b+c[3],y:x+c[0]}),t.layoutBBox=t.layoutBBox.cut(f,r)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={},n=function(n,r,i){var o=t.getId(i.field),a=t.getComponentById(o);if(a){var s=void 0,l=Bm(t.option,i.field);!1!==l&&((0,E.U2)(l,"custom")?s=t.getCategoryCfg(n,r,i,l,!0):i.isLinear?s=t.getContinuousCfg(n,r,i,l):i.isCategory&&(s=t.getCategoryCfg(n,r,i,l))),s&&(ls(s,["container"]),a.direction=_m(l),a.component.update(s),e[o]=!0)}else{var u=t.createFieldLegend(n,r,i);u&&(u.component.init(),t.components.push(u),e[o]=!0)}};if((0,E.U2)(this.option,"custom")){var r="global-custom",i=this.getComponentById(r);if(i){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);ls(o,["container"]),i.component.update(o),e[r]=!0}else{var a=this.createCustomLegend(void 0,void 0,void 0,this.option);if(a){a.init();var s=v.FORE,l=_m(this.option);this.components.push({id:r,component:a,layer:s,direction:l,type:y.LEGEND,extra:void 0}),e[r]=!0}}}else this.loopLegends(n);var u=[];(0,E.S6)(this.getComponents(),(function(t){e[t.id]?u.push(t):t.component.destroy()})),this.components=u},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return(0,E.S6)(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){var e=this.view.getRootView()===this.view;if(e){var n=this.getGeometries(this.view),r={};(0,E.S6)(n,(function(e){var n=e.getGroupAttributes();(0,E.S6)(n,(function(n){var i=n.getScale(n.type);i&&"identity"!==i.type&&!r[i.field]&&(t(e,n,i),r[i.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var r,i=Bm(this.option,n.field),o=v.FORE,a=_m(i);if(!1!==i&&((0,E.U2)(i,"custom")?r=this.createCustomLegend(t,e,n,i):n.isLinear?r=this.createContinuousLegend(t,e,n,i):n.isCategory&&(r=this.createCategoryLegend(t,e,n,i))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:o,direction:a,type:y.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r,!0);return new Xa(i)},e.prototype.createContinuousLegend=function(t,e,n,r){var i=this.getContinuousCfg(t,e,n,ls(r,["value"]));return new Za(i)},e.prototype.createCategoryLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r);return new Xa(i)},e.prototype.getContinuousCfg=function(t,e,n,r){var i=n.getTicks(),o=(0,E.sE)(i,(function(t){return 0===t.value})),a=(0,E.sE)(i,(function(t){return 1===t.value})),s=i.map((function(t){var r=t.value,i=t.tickValue,o=e.mapping(n.invert(r)).join("");return{value:i,attrValue:o,color:o,scaleValue:r}}));o||s.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),a||s.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),s.sort((function(t,e){return t.value-e.value}));var l={min:(0,E.YM)(s).value,max:(0,E.Z$)(s).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(l.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(l.colors=s.map((function(t){return t.attrValue})));var u=this.container,c=_m(r),h=Gc(c),f=(0,E.U2)(r,"title");return f&&(f=(0,E.b$)({text:As(n)},f)),l.container=u,l.layout=h,l.title=f,l.animateOption=Yu,this.mergeLegendCfg(l,r,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,r,i){var o=this.container,a=(0,E.U2)(r,"position",m.BOTTOM),s=Xc(this.view.getTheme(),a),l=(0,E.U2)(s,["marker"]),u=(0,E.U2)(r,"marker"),c=Gc(a),h=(0,E.U2)(s,["pageNavigator"]),f=(0,E.U2)(r,"pageNavigator"),p=i?qc(l,u,r.items):Wc(this.view,t,e,l,u),d=(0,E.U2)(r,"title");d&&(d=(0,E.b$)({text:n?As(n):""},d));var g=(0,E.U2)(r,"maxWidthRatio"),v=(0,E.U2)(r,"maxHeightRatio"),y=this.getCategoryLegendSizeCfg(c,g,v);y.container=o,y.layout=c,y.items=p,y.title=d,y.animateOption=Yu,y.pageNavigator=(0,E.b$)({},h,f);var b=this.mergeLegendCfg(y,r,a);b.reversed&&b.items.reverse();var x=(0,E.U2)(b,"maxItemWidth");return x&&x<=1&&(b.maxItemWidth=this.view.viewBBox.width*x),b},e.prototype.mergeLegendCfg=function(t,e,n){var r=n.split("-")[0],i=Xc(this.view.getTheme(),r);return(0,E.b$)({},i,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return(0,E.sE)(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=j),void 0===n&&(n=j);var r=this.view.viewBBox,i=r.width,o=r.height;return"vertical"===t?{maxWidth:i*e,maxHeight:o}:{maxWidth:i,maxHeight:o*n}},e}(Hu),Pm=Im,Lm=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=E.ZT,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=(0,A.CR)(t,2),r=e[0],i=e[1];n.start=r,n.end=i,n.changeViewData(r,i)},n.container=n.view.getLayer(v.FORE).addGroup(),n.onChangeFn=(0,E.P2)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(k.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(k.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return(0,A.ZT)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(k.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(k.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;(0,E.UM)(this.start)&&(this.start=e,this.end=n);var r=this.view.getOptions().data;this.option&&!(0,E.xb)(r)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),r=(0,A.CR)(n,4),i=r[0],o=(r[1],r[2],r[3]),a=this.slider.component.getLayoutBBox(),s=new cs(a.x,a.y,Math.min(a.width,e),a.height).expand(n),l=this.getMinMaxText(this.start,this.end),u=l.minText,c=l.maxText,h=(0,A.CR)(Tm(this.view.viewBBox,s,m.BOTTOM),2),f=(h[0],h[1]),p=(0,A.CR)(Tm(this.view.coordinateBBox,s,m.BOTTOM),2),d=p[0];p[1];this.slider.component.update((0,A.pi)((0,A.pi)({},this.getSliderCfg()),{x:d+o,y:f+i,width:this.width,start:this.start,end:this.end,minText:u,maxText:c})),this.view.viewBBox=this.view.viewBBox.cut(s,m.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new ja((0,A.pi)({container:this.container},t));return e.init(),{component:e,layer:v.FORE,direction:m.BOTTOM,type:y.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,r=e.maxText;t=(0,A.pi)((0,A.pi)({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:r})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,E.Kn)(this.option)){var e=(0,A.pi)({data:this.getData()},(0,E.U2)(this.option,"trendCfg",{}));t=(0,E.b$)({},t,this.getThemeOptions(),this.option),t=(0,A.pi)((0,A.pi)({},t),{trendCfg:e})}return t.start=(0,E.uZ)(Math.min((0,E.UM)(t.start)?0:t.start,(0,E.UM)(t.end)?1:t.end),0,1),t.end=(0,E.uZ)(Math.max((0,E.UM)(t.start)?0:t.start,(0,E.UM)(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=(0,A.CR)(this.view.getYScales(),1),n=e[0],r=this.view.getGroupScales();if(r.length){var i=r[0],o=i.field,a=i.ticks;return t.reduce((function(t,e){return e[o]===a[0]&&t.push(e[n.field]),t}),[])}return t.map((function(t){return t[n.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,E.U2)(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=!0,o=(0,E.I)(n,r.field);r.isLinear&&(o=o.sort());var a=i?o:o.reverse(),s=(0,E.dp)(n);if(!r||!s)return{};var l=(0,E.dp)(a),u=Math.floor(t*(l-1)),c=Math.floor(e*(l-1)),h=(0,E.U2)(a,[u]),f=(0,E.U2)(a,[c]),p=this.getSliderCfg().formatter;return p&&(h=p(h,n[u],u),f=p(f,n[c],c)),{minText:h,maxText:f}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=(0,E.dp)(n);if(r&&i){var o=!0,a=(0,E.I)(n,r.field),s=this.view.getXScale().isLinear?a.sort((function(t,e){return Number(t)-Number(e)})):a,l=o?s:s.reverse(),u=(0,E.dp)(l),c=Math.floor(t*(u-1)),h=Math.floor(e*(u-1));this.view.filter(r.field,(function(t,e){var n=l.indexOf(t);return!(n>-1)||as(n,c,h)})),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(Hu),Rm=Lm,Nm=0,jm=8,zm=32,Um=20,Vm=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=E.ZT,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=(0,E.uZ)(e,0,1);var i=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(i)},n.container=n.view.getLayer(v.FORE).addGroup(),n.onChangeFn=(0,E.P2)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(k.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(k.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return(0,A.ZT)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(k.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(k.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),r=this.scrollbar.component.getLayoutBBox(),i=new cs(r.x,r.y,Math.min(r.width,e),r.height).expand(n),o=this.getScrollbarComponentCfg(),a=void 0,s=void 0;if(o.isHorizontal){var l=(0,A.CR)(Tm(this.view.viewBBox,i,m.BOTTOM),2),u=(l[0],l[1]),c=(0,A.CR)(Tm(this.view.coordinateBBox,i,m.BOTTOM),2),h=c[0];c[1];a=h,s=u}else{var f=(0,A.CR)(Tm(this.view.viewBBox,i,m.RIGHT),2),p=(f[0],u=f[1],(0,A.CR)(Tm(this.view.viewBBox,i,m.RIGHT),2));h=p[0],p[1];a=h,s=u}a+=n[3],s+=n[0],this.trackLen?this.scrollbar.component.update((0,A.pi)((0,A.pi)({},o),{x:a,y:s,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update((0,A.pi)((0,A.pi)({},o),{x:a,y:s})),this.view.viewBBox=this.view.viewBBox.cut(i,o.isHorizontal?m.BOTTOM:m.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.setValue=function(t){this.onValueChange({ratio:t})},e.prototype.getValue=function(){return this.ratio},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,E.U2)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=(0,E.U2)(this.view.getTheme(),["components","scrollbar"]),n=t||{},r=n.thumbHighlightColor,i=(0,A._T)(n,["thumbHighlightColor"]);return{default:(0,E.b$)({},(0,E.U2)(e,["default","style"],{}),i),hover:(0,E.b$)({},(0,E.U2)(e,["hover","style"],{}),{thumbColor:r})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),r=n.trackLen,i=n.thumbLen;this.trackLen=r,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*(0,E.uZ)(this.ratio,0,1)),e=Math.min(t+this.step-1,this.cnt-1);return[t,e]},e.prototype.changeViewData=function(t,e){var n=this,r=(0,A.CR)(t,2),i=r[0],o=r[1],a=this.getValidScrollbarCfg().type,s="vertical"!==a,l=(0,E.I)(this.data,this.xScaleCfg.field),u=this.view.getXScale().isLinear?l.sort((function(t,e){return Number(t)-Number(e)})):l,c=s?u:u.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=c.indexOf(t);return!(e>-1)||as(e,i,o)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,e="vertical"!==t,n=new Ha((0,A.pi)((0,A.pi)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return n.init(),{component:n,layer:v.FORE,direction:e?m.BOTTOM:m.RIGHT,type:y.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?(0,A.pi)((0,A.pi)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,A.pi)({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,r=e.categorySize,i="vertical"!==n;return Math.floor((i?t.width:t.height)/r)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),n=(0,E.I)(e,t.field);return(0,E.dp)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,r=this.getValidScrollbarCfg(),i=r.type,o=r.padding,a=r.width,s=r.height,l=r.style,u="vertical"!==i,c=(0,A.CR)(o,4),h=c[0],f=c[1],p=c[2],d=c[3],g=u?{x:e.minX+d,y:n.maxY-s-p}:{x:n.maxX-a-f,y:e.minY+h},v=this.getStep(),m=this.getCnt(),y=u?e.width-d-f:e.height-h-p,b=Math.max(y*(0,E.uZ)(v/m,0,1),Um);return(0,A.pi)((0,A.pi)({},this.getThemeOptions()),{x:g.x,y:g.y,size:u?s:a,isHorizontal:u,trackLen:y,thumbLen:b,thumbOffset:0,theme:this.getScrollbarTheme(l)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:zm,width:jm,height:jm,padding:[0,0,0,0],animate:!0,style:{}};return(0,E.Kn)(this.option)&&(t=(0,A.pi)((0,A.pi)({},t),this.option)),(0,E.Kn)(this.option)&&this.option.padding||(t.padding="horizontal"===t.type?[Nm,0,Nm,0]:[0,Nm,0,Nm]),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),e=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===e.type&&(n=(0,A.ev)([],(0,A.CR)(n),!1).reverse()),n},e}(Hu),Hm=Vm,$m={fill:"#CCD6EC",opacity:.3};function Gm(t,e,n){var r,i,o,a,s,l,u=Cu(t,e,n);if(u.length){u=(0,E.xH)(u);try{for(var c=(0,A.XA)(u),h=c.next();!h.done;h=c.next()){var f=h.value;try{for(var p=(o=void 0,(0,A.XA)(f)),d=p.next();!d.done;d=p.next()){var g=d.value,v=g.mappingData,m=v.x,y=v.y;g.x=(0,E.kJ)(m)?m[m.length-1]:m,g.y=(0,E.kJ)(y)?y[y.length-1]:y}}catch(F){o={error:F}}finally{try{d&&!d.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}}}catch(M){r={error:M}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}var b=n.shared;if(!1===b&&u.length>1){var x=u[0],w=Math.abs(e.y-x[0].y);try{for(var C=(0,A.XA)(u),S=C.next();!S.done;S=C.next()){var k=S.value,D=Math.abs(e.y-k[0].y);D<=w&&(x=k,w=D)}}catch(O){s={error:O}}finally{try{S&&!S.done&&(l=C.return)&&l.call(C)}finally{if(s)throw s.error}}u=[x]}return(0,E.jj)((0,E.xH)(u))}return[]}var Wm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,r=e.getController("tooltip").getTooltipCfg(),i=Gm(e,{x:n.x,y:n.y},r);if(!(0,E.Xy)(i,this.items)&&(this.items=i,i.length)){var o=e.getXScale().field,a=i[0].data[o],s=[],l=e.geometries;if((0,E.S6)(l,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){var e=t.getData();return e[o]===a}));s=s.concat(e)}})),s.length){var u=e.getCoordinate(),c=s[0].shape.getCanvasBBox(),h=s[0].shape.getCanvasBBox(),f=c;(0,E.S6)(s,(function(t){var e=t.shape.getCanvasBBox();u.isTransposed?(e.minY<c.minY&&(c=e),e.maxY>h.maxY&&(h=e)):(e.minX<c.minX&&(c=e),e.maxX>h.maxX&&(h=e)),f.x=Math.min(e.minX,f.minX),f.y=Math.min(e.minY,f.minY),f.width=Math.max(e.maxX,f.maxX)-f.x,f.height=Math.max(e.maxY,f.maxY)-f.y}));var p=e.backgroundGroup,d=e.coordinateBBox,g=void 0;if(u.isRect){var v=e.getXScale(),m=t||{},y=m.appendRatio,b=m.appendWidth;(0,E.UM)(b)&&(y=(0,E.UM)(y)?v.isLinear?0:.25:y,b=u.isTransposed?y*h.height:y*c.width);var x=void 0,w=void 0,C=void 0,S=void 0;u.isTransposed?(x=d.minX,w=Math.min(h.minY,c.minY)-b,C=d.width,S=f.height+2*b):(x=Math.min(c.minX,h.minX)-b,w=d.minY,C=f.width+2*b,S=d.height),g=[["M",x,w],["L",x+C,w],["L",x+C,w+S],["L",x,w+S],["Z"]]}else{var k=(0,E.YM)(s),D=(0,E.Z$)(s),F=rs(k.getModel(),u).startAngle,M=rs(D.getModel(),u).endAngle,O=u.getCenter(),T=u.getRadius(),B=u.innerRadius*T;g=es(O.x,O.y,T,F,M,B)}if(this.regionPath)this.regionPath.attr("path",g),this.regionPath.show();else{var _=(0,E.U2)(t,"style",$m);this.regionPath=p.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,A.pi)((0,A.pi)({},_),{path:g})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(Hs),qm=Wm,Xm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return(0,A.ZT)(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view,r=n.isTooltipLocked();if(!r){var i=this.timeStamp,o=+new Date,a=(0,E.U2)(t.view.getOptions(),"tooltip.showDelay",16);if(o-i>a){var s=this.location,l={x:e.x,y:e.y};s&&(0,E.Xy)(s,l)||this.showTooltip(n,l),this.timeStamp=o,this.location=l}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(Hs),Zm=Xm,Ym=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.showTooltip=function(t,e){var n=Ol(t);(0,E.S6)(n,(function(n){var r=Bl(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){var e=Ol(t);(0,E.S6)(e,(function(t){t.hideTooltip()}))},e}(Zm),Qm=Ym,Km=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return(0,A.ZT)(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context,e=t.event,n=this.timeStamp,r=+new Date;if(r-n>16){var i=this.location,o={x:e.x,y:e.y};i&&(0,E.Xy)(i,o)||this.showTooltip(o),this.timeStamp=r,this.location=o}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event,r=n.target;if(r&&r.get("tip")){this.tooltip||this.renderTooltip();var i=r.get("tip");this.tooltip.update((0,A.pi)({title:i},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,r={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},i=e.getTheme(),o=(0,E.U2)(i,["components","tooltip","domStyles"],{}),a=new Ya({parent:n.get("el").parentNode,region:r,visible:!1,crosshairs:null,domStyles:(0,A.pi)({},(0,E.b$)({},o,(t={},t[ia]={"max-width":"50%"},t[oa]={"word-break":"break-all"},t)))});a.init(),a.setCapture(!1),this.tooltip=a},e}(Hs),Jm=Km,ty=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return(0,A.ZT)(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=xl(t,this.stateName);(0,E.S6)(n,(function(t){e.setElementState(t,!1)}))},e}(Hs),ey=ty;function ny(t){return(0,E.U2)(t.get("delegateObject"),"item")}var ry=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return(0,A.ZT)(e,t),e.prototype.isItemIgnore=function(t,e){var n=this.ignoreListItemStates,r=n.filter((function(n){return e.hasState(t,n)}));return!!r.length},e.prototype.setStateByComponent=function(t,e,n){var r=this.context.view,i=t.get("field"),o=yl(r);this.setElementsStateByItem(o,i,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var r=this.context.view,i=Il(r,e),o=wl(t,e);return!(0,E.UM)(o)&&n.name===i.getText(o)},e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;(0,E.S6)(t,(function(t){i.isMathItem(t,e,n)&&t.setState(i.stateName,r)}))},e.prototype.setStateEnable=function(t){var e=cl(this.context);if(e)fl(this.context)&&this.setStateByElement(e,t);else{var n=hl(this.context);if(pl(n)){var r=n.item,i=n.component;if(r&&i&&!this.isItemIgnore(r,i)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&ny(o.fromShape)===ny(o.toShape))return;this.setStateByComponent(i,r,t)}}}},e.prototype.toggle=function(){var t=cl(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(ey),iy=ry,oy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,A.ZT)(e,t),e.prototype.active=function(){this.setState()},e}(iy),ay=oy,sy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return(0,A.ZT)(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");if(!n)return null;var r=t.getScaleByField(n.getFields()[0]);return r},e.prototype.getLinkPath=function(t,e){var n=this.context.view,r=n.getCoordinate().isTransposed,i=t.shape.getCanvasBBox(),o=e.shape.getCanvasBBox(),a=r?[["M",i.minX,i.minY],["L",o.minX,o.maxY],["L",o.maxX,o.maxY],["L",i.maxX,i.minY],["Z"]]:[["M",i.maxX,i.minY],["L",o.minX,o.minY],["L",o.minX,o.maxY],["L",i.maxX,i.maxY],["Z"]];return a},e.prototype.addLinkShape=function(t,e,n,r){var i={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:(0,A.pi)((0,A.pi)({},(0,E.b$)({},i,(0,E.mf)(r)?r(i,e):r)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,r=this.context.view,i=this.getColorScale(r,t);if(i){var o=wl(t,i.field);if(!this.cache[o]){var a=bl(r,i.field,o),s=this.linkGroup,l=s.addGroup();this.cache[o]=l;var u=a.length;(0,E.S6)(a,(function(t,r){if(r<u-1){var i=a[r+1];n.addLinkShape(l,t,i,e)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=wl(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(t){var e=this.context;this.linkGroup||(this.linkGroup=e.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=cl(e);n&&this.linkByElement(n,null===t||void 0===t?void 0:t.style)},e.prototype.unlink=function(){var t=cl(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(Hs),ly=sy,uy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return(0,A.ZT)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if(gl(this.context))t=vl(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var r={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)},i=this.context.view;t=Sl(i,r)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=yl(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,r=this.context.view,i=Ol(r),o=t.map((function(t){return t.getModel().data})),a=r.getXScale().field,s=r.getYScales()[0].field;(0,E.S6)(i,(function(t){var r=yl(t),i=r.filter((function(t){var e=t.getModel().data;return _l(o,e,a,s)}));n.setElementsState(i,e,r)}))},e.prototype.setSiblingsState=function(t){var e=this,n=this.context.view,r=Ol(n);gl(this.context)&&(0,E.S6)(r,(function(n){var r=yl(n),i=ml(e.context,n,10);i&&i.length?e.setElementsState(i,t,r):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var r=this;(0,E.S6)(n,(function(n){t.includes(n)?r.setElementState(n,e):r.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=Ol(e);(0,E.S6)(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(ey),cy=uy,hy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,A.ZT)(e,t),e.prototype.active=function(){this.setState()},e}(cy),fy=hy,py=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.setStateEnable=function(t){var e=cl(this.context);if(e){if(!fl(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=cl(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(ey),dy=py,gy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,A.ZT)(e,t),e.prototype.active=function(){this.setState()},e}(dy),vy=gy,my="inactive",yy="active";function by(t){var e=yl(t);(0,E.S6)(e,(function(t){t.hasState(yy)&&t.setState(yy,!1),t.hasState(my)&&t.setState(my,!1)}))}function xy(t,e,n){(0,E.S6)(t,(function(t){e(t)?(t.hasState(my)&&t.setState(my,!1),t.setState(yy,n)):(t.hasState(yy)&&t.setState(yy,!1),t.setState(my,n))}))}var wy,Cy=M.INACTIVE,Sy=M.ACTIVE,Ay=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=Sy,e}return(0,A.ZT)(e,t),e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this,o=function(t){return i.isMathItem(t,e,n)};this.setHighlightBy(t,o,r)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(Cy)&&t.setState(Cy,!1),t.setState(Sy,!0)):t.hasState(Sy)||t.setState(Cy,!0)},e.prototype.setHighlightBy=function(t,e,n){var r=this;if(n)(0,E.S6)(t,(function(t){r.setElementHighlight(t,e)}));else{var i=xl(this.context.view,Sy),o=!0;(0,E.S6)(i,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():(0,E.S6)(t,(function(t){e(t)&&(t.hasState(Sy)&&t.setState(Sy,!1),t.setState(Cy,!0))}))}},e.prototype.setElementState=function(t,e){var n=this.context.view,r=yl(n);this.setHighlightBy(r,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.context.view;by(t)},e}(iy),Ey=Ay,ky=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=t.geometry.getAttribute("color");if(r){var i=n.getScaleByField(r.getFields()[0]),o=wl(t,i.field),a=yl(n),s=a.filter((function(t){return wl(t,i.field)===o}));this.setHighlightBy(a,(function(t){return s.includes(t)}),e)}},e}(Ey),Dy=ky,Fy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(Cy)&&t.setState(Cy,!1),t.setState(Sy,!0)):(t.setState(Cy,!0),t.hasState(Sy)&&t.setState(Sy,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=n.getXScale(),i=wl(t,r.field),o=yl(n),a=o.filter((function(t){return wl(t,r.field)===i}));this.setHighlightBy(o,(function(t){return a.includes(t)}),e)},e.prototype.toggle=function(){var t=cl(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(Ey),My=Fy;(function(t){t["BEFORE_HIGHLIGHT"]="element-range-highlight:beforehighlight",t["AFTER_HIGHLIGHT"]="element-range-highlight:afterhighlight",t["BEFORE_CLEAR"]="element-range-highlight:beforeclear",t["AFTER_CLEAR"]="element-range-highlight:afterclear"})(wy||(wy={}));var Oy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,A.ZT)(e,t),e.prototype.clearViewState=function(t){by(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n=t.event,r=this.getIntersectElements(),i={view:e,event:n,highlightElements:r};e.emit(wy.BEFORE_HIGHLIGHT,Bu.fromData(e,wy.BEFORE_HIGHLIGHT,i)),this.setState(),e.emit(wy.AFTER_HIGHLIGHT,Bu.fromData(e,wy.AFTER_HIGHLIGHT,i))},e.prototype.clear=function(){var e=this.context.view;e.emit(wy.BEFORE_CLEAR,Bu.fromData(e,wy.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(wy.AFTER_CLEAR,Bu.fromData(e,wy.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){xy(n,(function(e){return t.indexOf(e)>=0}),e)},e}(cy),Ty=Oy,By=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,A.ZT)(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,r=yl(n);xy(r,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;by(t)},e}(dy),_y=By,Iy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return(0,A.ZT)(e,t),e.prototype.selected=function(){this.setState()},e}(cy),Py=Iy,Ly=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return(0,A.ZT)(e,t),e.prototype.selected=function(){this.setState()},e}(iy),Ry=Ly,Ny=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return(0,A.ZT)(e,t),e.prototype.selected=function(){this.setState()},e}(dy),jy=Ny,zy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return(0,A.ZT)(e,t),e.prototype.getTriggerListInfo=function(){var t=hl(this.context),e=null;return pl(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=kl(e),r=[];return(0,E.S6)(n,(function(e){e.isList()&&t.allowSetStateByElement(e)&&r.push(e)})),r},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();(0,E.S6)(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var r=this.context.view,i=Il(r,e);return i&&i.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;if(n.length){var r=n.filter((function(n){return e.hasState(t,n)}));return 0===r.length}return!0},e.prototype.setStateByElement=function(t,e,n){var r=t.get("field"),i=this.context.view,o=Il(i,r),a=wl(e,r),s=o.getText(a);this.setItemsState(t,s,n)},e.prototype.setStateEnable=function(t){var e=this,n=cl(this.context);if(n){var r=this.getAllowComponents();(0,E.S6)(r,(function(r){e.setStateByElement(r,n,t)}))}else{var i=hl(this.context);if(pl(i)){var o=i.item,a=i.component;this.allowSetStateByElement(a)&&this.allowSetStateByItem(o,a)&&this.setItemState(a,o,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this,i=t.getItems();(0,E.S6)(i,(function(i){i.name===e&&r.setItemState(t,i,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,r=this.hasState(e,n);this.setItemState(e,n,!r)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(Hs),Uy=zy,Vy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,A.ZT)(e,t),e.prototype.active=function(){this.setState()},e}(Uy),Hy=Vy,$y="inactive",Gy="active";function Wy(t){var e=t.getItems();(0,E.S6)(e,(function(e){t.hasState(e,Gy)&&t.setItemState(e,Gy,!1),t.hasState(e,$y)&&t.setItemState(e,$y,!1)}))}var qy="inactive",Xy="active",Zy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=Xy,e.ignoreItemStates=["unchecked"],e}return(0,A.ZT)(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)(0,E.S6)(r,(function(n){e(n)?(t.hasState(n,qy)&&t.setItemState(n,qy,!1),t.setItemState(n,Xy,!0)):t.hasState(n,Xy)||t.setItemState(n,qy,!0)}));else{var i=t.getItemsByState(Xy),o=!0;(0,E.S6)(i,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():(0,E.S6)(r,(function(n){e(n)&&(t.hasState(n,Xy)&&t.setItemState(n,Xy,!1),t.setItemState(n,qy,!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)Wy(t.list);else{var e=this.getAllowComponents();(0,E.S6)(e,(function(t){t.clearItemsState(Xy),t.clearItemsState(qy)}))}},e}(Uy),Yy=Zy,Qy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return(0,A.ZT)(e,t),e.prototype.selected=function(){this.setState()},e}(Uy),Ky=Qy,Jy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return(0,A.ZT)(e,t),e.prototype.unchecked=function(){this.setState()},e}(Uy),tb=Jy,eb="unchecked",nb="checked",rb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=nb,e}return(0,A.ZT)(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var r=t.getItems();n&&(0,E.S6)(r,(function(n){e(n)?(t.hasState(n,eb)&&t.setItemState(n,eb,!1),t.setItemState(n,nb,!0)):t.hasState(n,nb)||t.setItemState(n,eb,!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,r=!(0,E.G)(e.getItems(),(function(t){return e.hasState(t,eb)}));r||e.hasState(n,eb)?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();(0,E.S6)(t,(function(t){t.clearItemsState(nb),t.clearItemsState(eb)}))},e}(Uy),ib=rb,ob="unchecked",ab=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.toggle=function(){var t,e,n,r,i,o,a,s,l=this.getTriggerListInfo();if(null===l||void 0===l?void 0:l.item){var u=l.list,c=l.item,h=u.getItems(),f=h.filter((function(t){return!u.hasState(t,ob)})),p=h.filter((function(t){return u.hasState(t,ob)})),d=f[0];if(h.length===f.length)try{for(var g=(0,A.XA)(h),v=g.next();!v.done;v=g.next()){var m=v.value;u.setItemState(m,ob,m.id!==c.id)}}catch(E){t={error:E}}finally{try{v&&!v.done&&(e=g.return)&&e.call(g)}finally{if(t)throw t.error}}else if(h.length-p.length===1)if(d.id===c.id)try{for(var y=(0,A.XA)(h),b=y.next();!b.done;b=y.next()){m=b.value;u.setItemState(m,ob,!1)}}catch(k){n={error:k}}finally{try{b&&!b.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}else try{for(var x=(0,A.XA)(h),w=x.next();!w.done;w=x.next()){m=w.value;u.setItemState(m,ob,m.id!==c.id)}}catch(D){i={error:D}}finally{try{w&&!w.done&&(o=x.return)&&o.call(x)}finally{if(i)throw i.error}}else try{for(var C=(0,A.XA)(h),S=C.next();!S.done;S=C.next()){m=S.value;u.setItemState(m,ob,m.id!==c.id)}}catch(F){a={error:F}}finally{try{S&&!S.done&&(s=C.return)&&s.call(C)}finally{if(a)throw a.error}}}},e}(Uy),sb=ab,lb="showRadio",ub="legend-radio-tip",cb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return(0,A.ZT)(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null===t||void 0===t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,lb,!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null===t||void 0===t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,lb,!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context,e=t.event,n=this.timeStamp,r=+new Date,i=this.context.event.target;if(r-n>16&&"legend-item-radio"===i.get("name")){var o=this.location,a={x:e.x,y:e.y};this.timeStamp=r,this.location=a,o&&(0,E.Xy)(o,a)||this.showTooltip(a)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event,r=n.target;if(r&&r.get("tip")){this.tooltip||this.renderTooltip();var i=e.view.getCanvas().get("el").getBoundingClientRect(),o=i.x,a=i.y;this.tooltip.update((0,A.pi)((0,A.pi)({title:r.get("tip")},t),{x:t.x+o,y:t.y+a})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=(t={},t[ia]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[oa]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(ub)&&document.body.removeChild(document.getElementById(ub));var n=new Ya({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:ub});n.init(),n.setCapture(!1),this.tooltip=n},e}(Uy),hb=cb,fb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return(0,A.ZT)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:".concat(t),n=this.context.view,r=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:r.x,y:r.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs(),n=t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,A.pi)({fill:"#C5D4EB",opacity:.3},e)});return n},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null===t||void 0===t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y,i=this.points;(0,E.S6)(i,(function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=(0,E.b$)({},this.getMaskAttrs(),t);this.maskShape.attr(e)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(Hs),pb=fb,db=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return(0,A.ZT)(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=(0,E.Z$)(this.points),n=0,r=0,i=0;if(t.length){var o=t[0];n=Dl(o,e)/2,r=(e.x+o.x)/2,i=(e.y+o.y)/2}return{x:r,y:i,r:n}},e}(pb),gb=db,vb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return(0,A.ZT)(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:(0,E.YM)(t),end:(0,E.Z$)(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),o=Math.abs(n.x-e.x),a=Math.abs(n.y-e.y);return{x:r,y:i,width:o,height:a}},e}(pb),mb=vb;function yb(t){t.x=(0,E.uZ)(t.x,0,1),t.y=(0,E.uZ)(t.y,0,1)}var bb,xb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return(0,A.ZT)(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,r=this.dim,i=this.context.view.getCoordinate(),o=i.invert((0,E.YM)(n)),a=i.invert((0,E.Z$)(n));return this.inPlot&&(yb(o),yb(a)),"x"===r?(t=i.convert({x:o.x,y:0}),e=i.convert({x:a.x,y:1})):(t=i.convert({x:0,y:o.y}),e=i.convert({x:1,y:a.y})),{start:t,end:e}},e}(mb),wb=xb,Cb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&((0,E.S6)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(pb),Sb=Cb,Ab=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getMaskPath=function(){var t=this.points;return Fl(t,!0)},e}(Sb),Eb=Ab,kb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.setCursor=function(t){var e=this.context.view;e.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e}(Hs),Db=kb,Fb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.filterView=function(t,e,n){var r=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&(0,E.S6)(t.views,(function(t){r.filterView(t,e,n)}))},e.prototype.filter=function(){var t=hl(this.context);if(t){var e=this.context.view,n=t.component,r=n.get("field");if(pl(t)){if(r){var i=n.getItemsByState("unchecked"),o=Il(e,r),a=i.map((function(t){return t.name}));a.length?this.filterView(e,r,(function(t){var e=o.getText(t);return!a.includes(e)})):this.filterView(e,r,null),e.render(!0)}}else if(dl(t)){var s=n.getValue(),l=(0,A.CR)(s,2),u=l[0],c=l[1];this.filterView(e,r,(function(t){return t>=u&&t<=c})),e.render(!0)}}},e}(Hs),Mb=Fb;function Ob(t,e,n,r){var i=Math.min(n[e],r[e]),o=Math.max(n[e],r[e]),a=(0,A.CR)(t.range,2),s=a[0],l=a[1];if(i<s&&(i=s),o>l&&(o=l),i===l&&o===l)return null;var u=t.invert(i),c=t.invert(o);if(t.isCategory){var h=t.values.indexOf(u),f=t.values.indexOf(c),p=t.values.slice(h,f+1);return function(t){return p.includes(t)}}return function(t){return t>=u&&t<=c}}(function(t){t["FILTER"]="brush-filter-processing",t["RESET"]="brush-filter-reset",t["BEFORE_FILTER"]="brush-filter:beforefilter",t["AFTER_FILTER"]="brush-filter:afterfilter",t["BEFORE_RESET"]="brush-filter:beforereset",t["AFTER_RESET"]="brush-filter:afterreset"})(bb||(bb={}));var Tb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return(0,A.ZT)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(gl(this.context)){var n=this.context.event.target,r=n.getCanvasBBox();t={x:r.x,y:r.y},e={x:r.maxX,y:r.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var i=this.context,o=i.view,a=i.event,s={view:o,event:a,dims:this.dims};o.emit(bb.BEFORE_FILTER,Bu.fromData(o,bb.BEFORE_FILTER,s));var l=o.getCoordinate(),u=l.invert(e),c=l.invert(t);if(this.hasDim("x")){var h=o.getXScale(),f=Ob(h,"x",u,c);this.filterView(o,h.field,f)}if(this.hasDim("y")){var p=o.getYScales()[0];f=Ob(p,"y",u,c);this.filterView(o,p.field,f)}this.reRender(o,{source:bb.FILTER}),o.emit(bb.AFTER_FILTER,Bu.fromData(o,bb.AFTER_FILTER,s))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(bb.BEFORE_RESET,Bu.fromData(t,bb.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:bb.RESET}),t.emit(bb.AFTER_RESET,Bu.fromData(t,bb.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(Hs),Bb=Tb,_b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.filterView=function(t,e,n){var r=Ol(t);(0,E.S6)(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=Ol(t);(0,E.S6)(e,(function(t){t.render(!0)}))},e}(Bb),Ib=_b,Pb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.filter=function(){var t=hl(this.context),e=this.context.view,n=yl(e);if(gl(this.context)){var r=vl(this.context,10);r&&(0,E.S6)(n,(function(t){r.includes(t)?t.show():t.hide()}))}else if(t){var i=t.component,o=i.get("field");if(pl(t)){if(o){var a=i.getItemsByState("unchecked"),s=Il(e,o),l=a.map((function(t){return t.name}));(0,E.S6)(n,(function(t){var e=wl(t,o),n=s.getText(e);l.indexOf(n)>=0?t.hide():t.show()}))}}else if(dl(t)){var u=i.getValue(),c=(0,A.CR)(u,2),h=c[0],f=c[1];(0,E.S6)(n,(function(t){var e=wl(t,o);e>=h&&e<=f?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=yl(this.context.view);(0,E.S6)(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(Hs),Lb=Pb,Rb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return(0,A.ZT)(e,t),e.prototype.filter=function(){gl(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=vl(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,i=e.map((function(t){return t.getModel().data})),o=Ol(t);(0,E.S6)(o,(function(t){var e=yl(t);(0,E.S6)(e,(function(t){var e=t.getModel().data;_l(i,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=Ol(e);(0,E.S6)(n,(function(e){var n=ml(t.context,e,10),r=yl(e);n&&(0,E.S6)(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=Ol(this.context.view);(0,E.S6)(t,(function(t){var e=yl(t);(0,E.S6)(e,(function(t){t.show()}))}))},e}(Hs),Nb=Rb,jb=10,zb=5,Ub=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return(0,A.ZT)(e,t),e.prototype.getButtonCfg=function(){return(0,E.b$)(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:(0,A.pi)({text:t.text},t.textStyle)}),r=n.getBBox(),i=Au(t.padding),o=e.addShape({type:"rect",name:"button-rect",attrs:(0,A.pi)({x:r.x-i[3],y:r.y-i[0],width:r.width+i[1]+i[3],height:r.height+i[0]+i[2]},t.style)});o.toBack(),e.on("mouseenter",(function(){o.attr(t.activeStyle)})),e.on("mouseleave",(function(){o.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view,e=t.getCoordinate(),n=e.convert({x:1,y:1}),r=this.buttonGroup,i=r.getBBox(),o=yr.vs(null,[["t",n.x-i.width-jb,n.y+i.height+zb]]);r.setMatrix(o)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(Hs),Vb=Ub,Hb=4,$b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return(0,A.ZT)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):Dl(t,this.startPoint)>Hb&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(Hs),Gb=$b,Wb=5,qb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return(0,A.ZT)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint(),n=Dl(t,e);if(n>Wb&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var r=this.context.view,i=yr.vs(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);r.backgroundGroup.setMatrix(i),r.foregroundGroup.setMatrix(i),r.middleGroup.setMatrix(i)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(Hs),Xb=qb,Zb="x",Yb="y",Qb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=[Zb,Yb],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return(0,A.ZT)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim(Zb),this.resetDim(Yb);var t=this.context.view;t.render(!0)},e}(Hs),Kb=Qb,Jb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return(0,A.ZT)(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;(0,E.S6)(e,(function(e){var n=t.getScale(e),r=n.min,i=n.max,o=n.values;t.startCache[e]={min:r,max:i,values:o}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),r=this.context.getCurrentPoint(),i=n.invert(e),o=n.invert(r),a=o.x-i.x,s=o.y-i.y,l=this.context.view,u=this.dims;(0,E.S6)(u,(function(e){t.translateDim(e,{x:-1*a,y:-1*s})})),l.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var r=this.context.view,i=this.startCache[t],o=i.min,a=i.max,s=a-o,l=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),r.scale(e.field,{nice:!1,min:o+l,max:a+l})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(Kb),tx=Jb,ex=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return(0,A.ZT)(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;(0,E.S6)(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var r=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var i=this.cacheScaleDefs[t],o=i.max-i.min,a=e.min,s=e.max,l=n*o,u=a-l,c=s+l,h=c-u,f=h/o;c>u&&f<100&&f>.01&&r.scale(e.field,{nice:!1,min:a-l,max:s+l})},e}(Kb),nx=ex;function rx(t){var e=t.gEvent.originalEvent;return e.deltaY>0}var ix,ox=1,ax=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,r=e.event;if(n.getOptions().scrollbar){var i=(null===t||void 0===t?void 0:t.wheelDelta)||ox,o=n.getController("scrollbar"),a=n.getXScale(),s=n.getOptions().data,l=(0,E.dp)((0,E.I)(s,a.field)),u=(0,E.dp)(a.values),c=o.getValue(),h=Math.floor((l-u)*c),f=h+(rx(r)?i:-i),p=i/(l-u)/1e4,d=(0,E.uZ)(f/(l-u)+p,0,1);o.setValue(d)}},e}(Hs),sx=ax,lx="aixs-description-tooltip",ux=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.show=function(){var t=this.context,e=hl(t).axis,n=e.cfg.title,r=n.description,i=n.text,o=n.descriptionTooltipStyle,a=t.event,s=a.x,l=a.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:i||"",customContent:function(){return'\n <div class="'.concat(ia,'" style={').concat(o,'}>\n <div class="').concat(oa,'">\n 字段说明:').concat(r,"\n </div>\n </div>\n ")},x:s,y:l}),this.tooltip.show()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,r={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},i=new Ya({parent:n.get("el").parentNode,region:r,visible:!1,containerId:lx,domStyles:(0,A.pi)({},(0,E.b$)({},(t={},t[ia]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[oa]={"word-break":"break-all","margin-bottom":"3px"},t)))});i.init(),i.setCapture(!1),this.tooltip=i},e}(Hs),cx=ux;function hx(t){return t.isInPlot()}function fx(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}function px(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce((function(t,e){return e(t)}),e)}}function dx(t,e){var n={};return null!==t&&"object"===typeof t&&e.forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}function gx(t,e){return e?(0,E.u4)(e,(function(t,e,n){return t.replace(new RegExp("{\\s*"+n+"\\s*}","g"),e)}),t):t}su("dark",Yl(vh)),V("canvas",f),V("svg",d),ju("Polygon",Qd),ju("Interval",Ud),ju("Schema",Jd),ju("Path",bd),ju("Point",Xd),ju("Line",Hd),ju("Area",Ad),ju("Edge",kd),ju("Heatmap",Fd),ju("Violin",ng),uc("base",Nc),uc("interval",Eg),uc("pie",Og),uc("polar",Fg),hc("overlap",Yg),hc("distribute",_g),hc("fixed-overlap",Zg),hc("hide-overlap",pv),hc("limit-in-shape",$g),hc("limit-in-canvas",Hg),hc("limit-in-plot",Rv),hc("pie-outer",Rg),hc("adjust-color",mv),hc("interval-adjust-position",wv),hc("interval-hide-overlap",Sv),hc("point-adjust-position",Fv),hc("pie-spider",Vg),hc("path-adjust-position",_v),Zu("fade-in",Nv),Zu("fade-out",jv),Zu("grow-in-x",Vv),Zu("grow-in-xy",$v),Zu("grow-in-y",Hv),Zu("scale-in-x",qv),Zu("scale-in-y",Xv),Zu("wave-in",Jv),Zu("zoom-in",em),Zu("zoom-out",nm),Zu("position-update",Wv),Zu("sector-path-update",Kv),Zu("path-in",Gv),Us("rect",dm),Us("mirror",fm),Us("list",lm),Us("matrix",cm),Us("circle",am),Us("tree",vm),ku("axis",Om),ku("legend",Pm),ku("tooltip",Wu),ku("annotation",Cm),ku("slider",Rm),ku("scrollbar",Hm),Zs("tooltip",Zm),Zs("sibling-tooltip",Qm),Zs("ellipsis-text",Jm),Zs("element-active",ay),Zs("element-single-active",vy),Zs("element-range-active",fy),Zs("element-highlight",Ey),Zs("element-highlight-by-x",My),Zs("element-highlight-by-color",Dy),Zs("element-single-highlight",_y),Zs("element-range-highlight",Ty),Zs("element-sibling-highlight",Ty,{effectSiblings:!0,effectByRecord:!0}),Zs("element-selected",Ry),Zs("element-single-selected",jy),Zs("element-range-selected",Py),Zs("element-link-by-color",ly),Zs("active-region",qm),Zs("list-active",Hy),Zs("list-selected",Ky),Zs("list-highlight",Yy),Zs("list-unchecked",tb),Zs("list-checked",ib),Zs("list-focus",sb),Zs("list-radio",hb),Zs("legend-item-highlight",Yy,{componentNames:["legend"]}),Zs("axis-label-highlight",Yy,{componentNames:["axis"]}),Zs("axis-description",cx),Zs("rect-mask",mb),Zs("x-rect-mask",wb,{dim:"x"}),Zs("y-rect-mask",wb,{dim:"y"}),Zs("circle-mask",gb),Zs("path-mask",Sb),Zs("smooth-path-mask",Eb),Zs("cursor",Db),Zs("data-filter",Mb),Zs("brush",Bb),Zs("brush-x",Bb,{dims:["x"]}),Zs("brush-y",Bb,{dims:["y"]}),Zs("sibling-filter",Ib),Zs("sibling-x-filter",Ib),Zs("sibling-y-filter",Ib),Zs("element-filter",Lb),Zs("element-sibling-filter",Nb),Zs("element-sibling-filter-record",Nb,{byRecord:!0}),Zs("view-drag",Gb),Zs("view-move",Xb),Zs("scale-translate",tx),Zs("scale-zoom",nx),Zs("reset-button",Vb,{name:"reset-button",text:"reset"}),Zs("mousewheel-scroll",sx),Wl("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Wl("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Wl("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Wl("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Wl("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Wl("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Wl("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Wl("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Wl("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Wl("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Wl("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Wl("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Wl("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:hx,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:hx,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:hx,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Wl("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Wl("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:hx,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:hx,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:hx,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Wl("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:hx,action:"path-mask:start"},{trigger:"mousedown",isEnable:hx,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Wl("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Wl("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Wl("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Wl("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Wl("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),Wl("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Wl("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),Wl("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return fx(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!fx(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Wl("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Wl("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]}),function(t){t["ERROR"]="error",t["WARN"]="warn",t["INFO"]="log"}(ix||(ix={}));var vx="AntV/G2Plot";function mx(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=0;return vx+": "+t.replace(/%s/g,(function(){return""+e[r++]}))}function yx(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];e||console[t](mx.apply(void 0,(0,A.pr)([n],r)))}function bx(t){if(!t)return{width:0,height:0};var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}function xx(t,e){return t.geometries.find((function(t){return t.type===e}))}function wx(t){return(0,E.u4)(t.geometries,(function(t,e){return t.concat(e.elements)}),[])}function Cx(t){return(0,E.U2)(t,["views","length"],0)<=0?wx(t):(0,E.u4)(t.views,(function(t,e){return t.concat(Cx(e))}),wx(t))}function Sx(t){return(0,E.U2)(t,["views","length"],0)<=0?t.geometries:(0,E.u4)(t.views,(function(t,e){return t.concat(e.geometries)}),t.geometries)}function Ax(t,e){return t.views.find((function(t){return t.id===e}))}function Ex(t){var e=t.parent;return e?e.views:[]}function kx(t){return Ex(t).filter((function(e){return e!==t}))}function Dx(t){if(!(0,E.P9)(t,"Object"))return t;var e=(0,A.pi)({},t);return e.formatter&&!e.content&&(e.content=e.formatter),e}function Fx(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var o=t[r];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}var Mx=function(t,e,n,r){var i,o,a,s,l=[],u=!!r;if(u){a=[1/0,1/0],s=[-1/0,-1/0];for(var c=0,h=t.length;c<h;c++){var f=t[c];a=Sr.VV([0,0],a,f),s=Sr.Fp([0,0],s,f)}a=Sr.VV([0,0],a,r[0]),s=Sr.Fp([0,0],s,r[1])}c=0;for(var p=t.length;c<p;c++){f=t[c];if(n)i=t[c?c-1:p-1],o=t[(c+1)%p];else{if(0===c||c===p-1){l.push(f);continue}i=t[c-1],o=t[c+1]}var d=[0,0];d=Sr.lu(d,o,i),d=Sr.bA(d,d,e);var g=Sr.TE(f,i),v=Sr.TE(f,o),m=g+v;0!==m&&(g/=m,v/=m);var y=Sr.bA([0,0],d,-g),b=Sr.bA([0,0],d,v),x=Sr.IH([0,0],f,y),w=Sr.IH([0,0],f,b);u&&(x=Sr.Fp([0,0],x,a),x=Sr.VV([0,0],x,s),w=Sr.Fp([0,0],w,a),w=Sr.VV([0,0],w,s)),l.push(x),l.push(w)}return n&&l.push(l.shift()),l};function Ox(t,e,n){for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);var s,l,u,c=Mx(i,.4,r,n),h=i.length,f=[];for(o=0;o<h-1;o++)s=c[2*o],l=c[2*o+1],u=i[o+1],f.push(["C",s[0],s[1],l[0],l[1],u[0],u[1]]);return r&&(s=c[h],l=c[h+1],u=i[0],f.push(["C",s[0],s[1],l[0],l[1],u[0],u[1]])),f}function Tx(t,e,n){var r=[],i=t[0],o=null;if(t.length<=2)return Fx(t,e);for(var a=0,s=t.length;a<s;a++){var l=t[a];o&&o.x===l.x&&o.y===l.y||(r.push(l.x),r.push(l.y),o=l)}var u=n||[[0,0],[1,1]],c=Ox(r,e,u);return c.unshift(["M",i.x,i.y]),c}var Bx=5,_x={}.toString,Ix=function(t,e){return _x.call(t)==="[object "+e+"]"},Px=function(t){return Ix(t,"Array")},Lx=function(t){return"object"===typeof t&&null!==t},Rx=function(t){if(!Lx(t)||!Ix(t,"Object"))return!1;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},Nx=function(t,e,n,r){for(var i in n=n||0,r=r||Bx,e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=e[i];o?Rx(o)?(Rx(t[i])||(t[i]={}),n<r?Nx(t[i],o,n+1,r):t[i]=e[i]):Px(o)?(t[i]=[],t[i]=t[i].concat(o)):t[i]=o:t[i]=o}},jx=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)Nx(t,e[r]);return t};function zx(t){if(!t)return t;var e=t.match(/(([A-Z]{0,1}[a-z]*[^A-Z])|([A-Z]{1}))/g);return e.map((function(t){return t.toLowerCase()})).join("-")}function Ux(t){var e={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",display:"flex",justifyContent:"center",alignItems:"center"},n=["stroke","lineWidth","shadowColor","strokeOpacity","shadowBlur","shadowOffsetX","shadowOffsetY","fill"];(0,E.U2)(t,"fill")&&(e["color"]=t["fill"]);var r=dx(t,n),i=r.shadowColor,o=r.shadowBlur,a=void 0===o?0:o,s=r.shadowOffsetX,l=void 0===s?0:s,u=r.shadowOffsetY,c=void 0===u?0:u;e["text-shadow"]=""+[i,l+"px",c+"px",a+"px"].join(" ");var h=dx(t,n),f=h.stroke,p=h.lineWidth,d=void 0===p?0:p;return e["-webkit-text-stroke"]=""+[d+"px",f].join(" "),(0,E.S6)(t,(function(t,r){["fontSize"].includes(r)&&(0,E.hj)(t)?e[zx(r)]=t+"px":r&&!n.includes(r)&&(e[zx(r)]=""+t)})),e}function Vx(t,e){t.style["pointer-events"]="none",(0,E.S6)(e,(function(e,n){n&&e&&(t.style[n]=e)}))}var Hx,$x=function(t,e,n){var r=e.statistic,i=e.plotType,o=r.title,a=r.content;[o,a].forEach((function(e,r){if(e){var s="";s=0===r?a?"translate(-50%, -100%)":"translate(-50%, -50%)":o?"translate(-50%, 0)":"translate(-50%, -50%)";var l=(0,E.mf)(e.style)?e.style(n):e.style;t.annotation().html((0,A.pi)({position:["50%","50%"],html:function(t,r){var o=r.getCoordinate(),a=0;if("pie"===i||"ring-progress"===i)a=o.getRadius()*o.innerRadius*2;else if("liquid"===i){var u=(0,E.U2)(r.geometries,[0,"elements",0,"shape"]);if(u){var c=u.find((function(t){return"wrap"===t.get("name")})),h=c.getCanvasBBox().width;a=h}}else a||(a=o.getWidth());Vx(t,(0,A.pi)({width:a+"px",transform:s},Ux(l)));var f=r.getData();if(e.customHtml)return e.customHtml(t,r,n,f);var p=e.content;return e.formatter&&(p=e.formatter(n,f)),p?(0,E.HD)(p)?p:""+p:"<div></div>"},key:(0===r?"top":"bottom")+"-statistic"},dx(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},Gx=function(t,e,n){var r=e.statistic,i=r.title,o=r.content;[i,o].forEach((function(e){if(e){var r=(0,E.mf)(e.style)?e.style(n):e.style;t.annotation().html((0,A.pi)({position:["50%","100%"],html:function(t,i){var o=i.getCoordinate(),a=i.views[0].getCoordinate(),s=a.getCenter(),l=a.getRadius(),u=Math.max(Math.sin(a.startAngle),Math.sin(a.endAngle))*l,c=s.y+u-o.y.start-parseFloat((0,E.U2)(r,"fontSize",0)),h=o.getRadius()*o.innerRadius*2;Vx(t,(0,A.pi)({width:h+"px",transform:"translate(-50%, "+c+"px)"},Ux(r)));var f=i.getData();if(e.customHtml)return e.customHtml(t,i,n,f);var p=e.content;return e.formatter&&(p=e.formatter(n,f)),p?(0,E.HD)(p)?p:""+p:"<div></div>"}},dx(e,["offsetX","offsetY","rotate","style","formatter"])))}}))};function Wx(){return Hx||(Hx=document.createElement("canvas").getContext("2d")),Hx}(0,E.HP)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=void 0===r?"sans-serif":r,o=e.fontWeight,a=e.fontStyle,s=e.fontVariant,l=Wx();l.font=[a,o,s,n+"px",i].join(" ");var u=l.measureText((0,E.HD)(t)?t:"");return u.width}),(function(t,e){return void 0===e&&(e={}),(0,A.pr)([t],(0,E.VO)(e)).join("")}));function qx(t){return"number"===typeof t&&!isNaN(t)}function Xx(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}function Zx(t,e){if(!t)return{};var n=t.filter((function(t){var n=(0,E.U2)(t,[e]);return(0,E.hj)(n)&&!isNaN(n)})),r=n.every((function(t){return(0,E.U2)(t,[e])>=0})),i=n.every((function(t){return(0,E.U2)(t,[e])<=0}));return r?{min:0}:i?{max:0}:{}}function Yx(t,e,n,r,i){if(void 0===i&&(i=[]),!Array.isArray(t))return{nodes:[],links:[]};var o=[],a={},s=-1;return t.forEach((function(t){var l=t[e],u=t[n],c=t[r],h=dx(t,i);a[l]||(a[l]=(0,A.pi)({id:++s,name:l},h)),a[u]||(a[u]=(0,A.pi)({id:++s,name:u},h)),o.push((0,A.pi)({source:a[l].id,target:a[u].id,value:c},h))})),{nodes:Object.values(a).sort((function(t,e){return t.id-e.id})),links:o}}function Qx(t,e){var n=(0,E.hX)(t,(function(t){var n=t[e];return null===n||"number"===typeof n&&!isNaN(n)}));return yx(ix.WARN,n.length===t.length,"illegal data existed in chart data."),n}function Kx(t){if((0,E.hj)(t))return[t,t,t,t];if((0,E.kJ)(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}function Jx(t,e,n){void 0===e&&(e="bottom"),void 0===n&&(n=25);var r=Kx(t),i=[e.startsWith("top")?n:0,e.startsWith("right")?n:0,e.startsWith("bottom")?n:0,e.startsWith("left")?n:0];return[r[0]+i[0],r[1]+i[1],r[2]+i[2],r[3]+i[3]]}function tw(t){var e=t.map((function(t){return Kx(t)})),n=[0,0,0,0];return e.length>0&&(n=n.map((function(t,n){return e.forEach((function(r,i){t+=e[i][n]})),t}))),n}var ew={locale:"en-US"};var nw={};function rw(t,e){nw[t]=e}function iw(t){return{get:function(e,n){return gx((0,E.U2)(nw[t],e)||(0,E.U2)(nw[ew.locale],e)||(0,E.U2)(nw["en-US"],e)||e,n)}}}var ow={locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}},aw={locale:"zh-CN",general:{increase:"增加",decrease:"减少",root:"初始"},statistic:{total:"总计"},conversionTag:{label:"转化率"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"总计"}},sw=n(18587),lw="data-chart-source-type",uw=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"],cw=function(t){function e(e,n){var r=t.call(this)||this;return r.container="string"===typeof e?document.getElementById(e):e,r.options=jx({},r.getDefaultOptions(),n),r.createG2(),r.bindEvents(),r}return(0,A.ZT)(e,t),e.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},e.prototype.createG2=function(){var t=this.options,e=t.width,n=t.height,r=t.defaultInteractions;this.chart=new Vu((0,A.pi)((0,A.pi)((0,A.pi)((0,A.pi)({container:this.container,autoFit:!1},this.getChartSize(e,n)),{localRefresh:!1}),dx(this.options,uw)),{defaultInteractions:r})),this.container.setAttribute(lw,"G2Plot")},e.prototype.getChartSize=function(t,e){var n=bx(this.container);return{width:t||n.width||400,height:e||n.height||400}},e.prototype.bindEvents=function(){var t=this;this.chart&&this.chart.on("*",(function(e){(null===e||void 0===e?void 0:e.type)&&t.emit(e.type,e)}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},e.prototype.update=function(t){this.updateOption(t),this.render()},e.prototype.updateOption=function(t){this.options=jx({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=Cx(this.chart);(0,E.S6)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=Cx(this.chart),e=[];return(0,E.S6)(t,(function(t){var n=t.getData(),r=t.getStates();(0,E.S6)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.prototype.changeData=function(t){this.update({data:t})},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.addAnnotations=function(t,e){e=e||this.chart;var n=(0,A.pr)(t),r=e.getController("annotation"),i=r.getComponents().map((function(t){return t.extra}));r.clear(!0);for(var o=function(t){var e=i[t],o=n.findIndex((function(t){return t.id&&t.id===e.id}));-1!==o&&(e=jx({},e,n[o]),n.splice(o,1)),r.annotation(e)},a=0;a<i.length;a++)o(a);n.forEach((function(t){return r.annotation(t)})),e.render(!0)},e.prototype.removeAnnotations=function(t){var e=this.chart.getController("annotation"),n=e.getComponents().map((function(t){return t.extra}));e.clear(!0);for(var r=function(r){var i=n[r];t.find((function(t){return t.id&&t.id===i.id}))||e.annotation(i)},i=0;i<n.length;i++)r(i);this.chart.render(!0)},e.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute(lw)},e.prototype.execAdaptor=function(){var t=this.getSchemaAdaptor(),e=this.options,n=e.padding,r=e.appendPadding;this.chart.padding=n,this.chart.appendPadding=r,t({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var t=this;if(!this.unbind){var e=this.options.autoFit,n=void 0===e||e;n&&(this.unbind=(0,sw.ak)(this.container,(function(){var e=bx(t.container),n=e.width,r=e.height;n===t.chart.width&&r===t.chart.height||t.triggerResize()})))}},e.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},e}(Y.Z),hw=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"];function fw(){return"object"===typeof window?null===window||void 0===window?void 0:window.devicePixelRatio:2}function pw(t,e){void 0===e&&(e=t);var n=document.createElement("canvas"),r=fw();n.width=t*r,n.height=e*r,n.style.width=t+"px",n.style.height=e+"px";var i=n.getContext("2d");return i.scale(r,r),n}function dw(t,e,n,r){void 0===r&&(r=n);var i=e.backgroundColor,o=e.opacity;t.globalAlpha=o,t.fillStyle=i,t.beginPath(),t.fillRect(0,0,n,r),t.closePath()}function gw(t,e,n){var r=t+e;return n?2*r:r}function vw(t,e){var n=e?[[t*(1/4),t*(1/4)],[t*(3/4),t*(3/4)]]:[[.5*t,.5*t]];return n}function mw(t,e){var n=e*Math.PI/180,r={a:Math.cos(n)*(1/t),b:Math.sin(n)*(1/t),c:-Math.sin(n)*(1/t),d:Math.cos(n)*(1/t),e:0,f:0};return r}var yw={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function bw(t,e,n,r){var i=e.size,o=e.fill,a=e.lineWidth,s=e.stroke,l=e.fillOpacity;t.beginPath(),t.globalAlpha=l,t.fillStyle=o,t.strokeStyle=s,t.lineWidth=a,t.arc(n,r,i/2,0,2*Math.PI,!1),t.fill(),a&&t.stroke(),t.closePath()}function xw(t){var e=jx({},yw,t),n=e.size,r=e.padding,i=e.isStagger,o=e.rotation,a=gw(n,r,i),s=vw(a,i),l=pw(a,a),u=l.getContext("2d");dw(u,e,a);for(var c=0,h=s;c<h.length;c++){var f=h[c],p=f[0],d=f[1];bw(u,e,p,d)}var g=u.createPattern(l,"repeat");if(g){var v=fw(),m=mw(v,o);g.setTransform(m)}return g}var ww={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2};function Cw(t,e,n){var r=e.stroke,i=e.lineWidth,o=e.strokeOpacity,a=new Path2D(n);t.globalAlpha=o,t.lineCap="square",t.strokeStyle=i?r:"transparent",t.lineWidth=i,t.stroke(a)}function Sw(t){var e=jx({},ww,t),n=e.spacing,r=e.rotation,i=e.lineWidth,o=n+i||1,a=n+i||1,s="\n M 0 0 L "+o+" 0\n M 0 "+a+" L "+o+" "+a+"\n ",l=pw(o,a),u=l.getContext("2d");dw(u,e,o,a),Cw(u,e,s);var c=u.createPattern(l,"repeat");if(c){var h=fw(),f=mw(h,r);c.setTransform(f)}return c}var Aw={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function Ew(t,e,n,r){var i=e.stroke,o=e.size,a=e.fill,s=e.lineWidth,l=e.fillOpacity;t.globalAlpha=l,t.strokeStyle=i,t.lineWidth=s,t.fillStyle=a,t.strokeRect(n-o/2,r-o/2,o,o),t.fillRect(n-o/2,r-o/2,o,o)}function kw(t){var e=jx({},Aw,t),n=e.size,r=e.padding,i=e.isStagger,o=e.rotation,a=gw(n,r,i),s=vw(a,i),l=pw(a,a),u=l.getContext("2d");dw(u,e,a);for(var c=0,h=s;c<h.length;c++){var f=h[c],p=f[0],d=f[1];Ew(u,e,p,d)}var g=u.createPattern(l,"repeat");if(g){var v=fw(),m=mw(v,o);g.setTransform(m)}return g}function Dw(t){var e,n=t.type,r=t.cfg;switch(n){case"dot":e=xw(r);break;case"line":e=Sw(r);break;case"square":e=kw(r);break;default:break}return e}function Fw(t){var e=this;return function(n){var r,i=n.options,o=n.chart,a=i.pattern;if(!a)return n;var s=function(n){for(var r,s,l,u=[],c=1;c<arguments.length;c++)u[c-1]=arguments[c];var h=o.getTheme().defaultColor,f=h,p=null===(s=null===(r=o.geometries)||void 0===r?void 0:r[0])||void 0===s?void 0:s.getAttribute("color");if(p){var d=p.getFields()[0],g=(0,E.U2)(n,d);f=uh.getMappingValue(p,g,(null===(l=p.values)||void 0===l?void 0:l[0])||h)}var v=a;"function"===typeof a&&(v=a.call(e,n,f)),v instanceof CanvasPattern===!1&&(v=Dw(jx({},{cfg:{backgroundColor:f}},v)));var m=i[t];return(0,A.pi)((0,A.pi)({},"function"===typeof m?m.call.apply(m,(0,A.pr)([e,n],u)):m||{}),{fill:v||f})};return jx({},n,{options:(r={},r[t]=s,r)})}}function Mw(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.seriesField;return!1===r?e.legend(!1):(i||o)&&e.legend(i||o,r),t}function Ow(t){var e=t.chart,n=t.options,r=n.tooltip;return void 0!==r&&e.tooltip(r),t}function Tw(t){var e=t.chart,n=t.options,r=n.interactions;return(0,E.S6)(r,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),t}function Bw(t){var e=t.chart,n=t.options,r=n.animation;return"boolean"===typeof r?e.animate(r):e.animate(!0),(0,E.S6)(e.geometries,(function(t){t.animate(r)})),t}function _w(t){var e=t.chart,n=t.options,r=n.theme;return r&&e.theme(r),t}function Iw(t){var e=t.chart,n=t.options,r=n.state;return r&&(0,E.S6)(e.geometries,(function(t){t.state(r)})),t}function Pw(t){var e=t.chart,n=t.options,r=n.slider;return e.option("slider",r),t}function Lw(t){var e=t.chart,n=t.options,r=n.scrollbar;return e.option("scrollbar",r),t}function Rw(t,e){return function(n){var r=n.chart,i=n.options,o={};return(0,E.S6)(t,(function(t,e){o[e]=dx(t,hw)})),o=jx({},e,i.meta,o),r.scale(o),n}}function Nw(t){return function(e){var n=e.chart,r=e.options,i=n.getController("annotation");return(0,E.S6)((0,A.pr)(r.annotations||[],t||[]),(function(t){i.annotation(t)})),e}}function jw(t){var e=t.chart,n=t.options,r=n.yAxis,i=n.limitInPlot,o=i;return(0,E.Kn)(r)&&(0,E.UM)(i)&&(o=!!Object.values(dx(r,["min","max","minLimit","maxLimit"])).some((function(t){return!(0,E.UM)(t)}))),e.limitInPlot=o,t}function zw(t){return void 0===t&&(t="rect"),function(e){var n=e.chart,r=e.options,i=r.coordinate,o=Array.from(i||[]).map((function(t){return"reflectX"===t.type?["reflect","x"]:"reflectY"===t.type?["reflect","y"]:"transpose"===t.type?["transpose"]:null})).filter((function(t){return!!t}));return 0!==o.length&&n.coordinate({type:t,actions:o}),e}}function Uw(t,e){if(!1===t)return{fields:!1};var n=(0,E.U2)(t,"fields"),r=(0,E.U2)(t,"formatter");return r&&!n&&(n=e),{fields:n,formatter:r}}function Vw(t,e){var n=t.type,r=t.xField,i=t.yField,o=t.colorField,a=t.shapeField,s=t.sizeField,l=t.styleField,u=t.rawFields,c=void 0===u?[]:u,h=[];if("color"===e)h=(0,A.pr)([o||r],c);else if("shape"===e)h=(0,A.pr)([a||r],c);else if("size"===e)h=(0,A.pr)([s||r],c);else{h=(0,A.pr)([r,i,o,a,s,l],c);var f=["x","y","color","shape","size","style"].indexOf(e),p=h[f];h.splice(f,1),h.unshift(p)}var d=(0,E.jj)(h.filter((function(t){return!!t}))),g="line"===n&&[r,i].includes(d.join("*"))?"":d.join("*");return{mappingFields:d,tileMappingField:g}}function Hw(t,e){if(e)return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};return t.forEach((function(t,e){i[t]=n[e]})),delete i["undefined"],e(i)}}function $w(t){var e=t.chart,n=t.options,r=n.type,i=n.args,o=n.mapping,a=n.xField,s=n.yField,l=n.colorField,u=n.shapeField,c=n.sizeField,h=n.tooltipFields,f=n.label,p=n.state,d=n.customInfo;if(!o)return t;var g=o.color,v=o.shape,m=o.size,y=o.style,b=o.tooltip,x=e[r](i).position(a+"*"+s);if((0,E.HD)(g))l?x.color(l,g):x.color(g);else if((0,E.mf)(g)){var w=Vw(n,"color"),C=w.mappingFields,S=w.tileMappingField;x.color(S,Hw(C,g))}else l&&x.color(l,g);if((0,E.HD)(v))u?x.shape(u,[v]):x.shape(v);else if((0,E.mf)(v)){var k=Vw(n,"shape");C=k.mappingFields,S=k.tileMappingField;x.shape(S,Hw(C,v))}else u&&x.shape(u,v);if((0,E.hj)(m))c?x.size(c,m):x.size(m);else if((0,E.mf)(m)){var D=Vw(n,"size");C=D.mappingFields,S=D.tileMappingField;x.size(S,Hw(C,m))}else c&&x.size(c,m);if((0,E.mf)(y)){var F=Vw(n,"style");C=F.mappingFields,S=F.tileMappingField;x.style(S,Hw(C,y))}else(0,E.Kn)(y)&&x.style(y);if(!1===h?x.tooltip(!1):(0,E.xb)(h)||x.tooltip(h.join("*"),Hw(h,b)),!1===f)x.label(!1);else if(f){var M=f.callback,O=f.fields,T=(0,A._T)(f,["callback","fields"]);x.label({fields:O||[s],callback:M,cfg:Dx(T)})}return p&&x.state(p),d&&x.customInfo(d),[a,s].filter((function(t){return t!==l})).forEach((function(t){e.legend(t,!1)})),(0,A.pi)((0,A.pi)({},t),{ext:{geometry:x}})}function Gw(t){var e=t.options,n=e.area,r=e.xField,i=e.yField,o=e.seriesField,a=e.smooth,s=e.tooltip,l=e.useDeferredLabel,u=Uw(s,[r,i,o]),c=u.fields,h=u.formatter;return n?$w(jx({},t,{options:{type:"area",colorField:o,tooltipFields:c,mapping:(0,A.pi)({shape:a?"smooth":"area",tooltip:h},n),args:{useDeferredLabel:l}}})):t}function Ww(t){var e=t.options,n=e.line,r=e.stepType,i=e.xField,o=e.yField,a=e.seriesField,s=e.smooth,l=e.connectNulls,u=e.tooltip,c=e.useDeferredLabel,h=Uw(u,[i,o,a]),f=h.fields,p=h.formatter;return n?$w(jx({},t,{options:{type:"line",colorField:a,tooltipFields:f,mapping:(0,E.b$)({shape:r||(s?"smooth":"line"),tooltip:p},n),args:{connectNulls:l,useDeferredLabel:c}}})):t}function qw(t){var e=t.options,n=e.point,r=e.xField,i=e.yField,o=e.seriesField,a=e.sizeField,s=e.shapeField,l=e.tooltip,u=e.useDeferredLabel,c=Uw(l,[r,i,o,a,s]),h=c.fields,f=c.formatter;return n?$w(jx({},t,{options:{type:"point",colorField:o,shapeField:s,tooltipFields:h,mapping:(0,A.pi)({tooltip:f},n),args:{useDeferredLabel:u}}})):t}function Xw(t){var e=t.chart,n=t.options,r=t.ext,i=n.seriesField,o=n.isGroup,a=n.isStack,s=n.marginRatio,l=n.widthRatio,u=n.groupField,c=n.theme,h=[];if(i&&(o&&h.push({type:"dodge",dodgeBy:u||i,marginRatio:s}),a&&h.push({type:"stack",marginRatio:s})),h.length&&(null===r||void 0===r?void 0:r.geometry)){var f=null===r||void 0===r?void 0:r.geometry;f.adjust(h)}return(0,E.UM)(l)||e.theme(jx({},(0,E.Kn)(c)?c:au(c),{columnWidthRatio:l})),t}function Zw(t){var e=t.options,n=e.xField,r=e.yField,i=e.interval,o=e.seriesField,a=e.tooltip,s=e.minColumnWidth,l=e.maxColumnWidth,u=e.columnBackground,c=e.dodgePadding,h=e.intervalPadding,f=e.useDeferredLabel,p=Uw(a,[n,r,o]),d=p.fields,g=p.formatter,v=(i?$w(jx({},t,{options:{type:"interval",colorField:o,tooltipFields:d,mapping:(0,A.pi)({tooltip:g},i),args:{dodgePadding:c,intervalPadding:h,minColumnWidth:s,maxColumnWidth:l,background:u,useDeferredLabel:f}}})):t).ext;return Xw((0,A.pi)((0,A.pi)({},t),{ext:v}))}function Yw(t){var e=t.options,n=e.polygon,r=e.xField,i=e.yField,o=e.seriesField,a=e.tooltip,s=e.useDeferredLabel,l=Uw(a,[r,i,o]),u=l.fields,c=l.formatter;return n?$w(jx({},t,{options:{type:"polygon",colorField:o,tooltipFields:u,mapping:(0,A.pi)({tooltip:c},n),args:{useDeferredLabel:s}}})):t}function Qw(t){var e=t.options,n=e.edge,r=e.xField,i=e.yField,o=e.seriesField,a=e.tooltip,s=e.useDeferredLabel,l=Uw(a,[r,i,o]),u=l.fields,c=l.formatter;return n?$w(jx({},t,{options:{type:"edge",colorField:o,tooltipFields:u,mapping:(0,A.pi)({tooltip:c},n),args:{useDeferredLabel:s}}})):t}function Kw(t){var e=t.options,n=e.schema,r=e.xField,i=e.yField,o=e.seriesField,a=e.tooltip,s=e.useDeferredLabel,l=Uw(a,[r,i,o]),u=l.fields,c=l.formatter;return n?$w(jx({},t,{options:{type:"schema",colorField:o,tooltipFields:u,mapping:(0,A.pi)({tooltip:c},n),args:{useDeferredLabel:s}}})):t}function Jw(t){var e=t.options,n=e.violin,r=e.xField,i=e.yField,o=e.seriesField,a=e.sizeField,s=e.tooltip,l=Uw(s,[r,i,o,a]),u=l.fields,c=l.formatter;return n?$w(jx({},t,{options:{type:"violin",colorField:o,tooltipFields:u,mapping:(0,A.pi)({tooltip:c},n)}})):t}function tC(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.lineStyle,a=n.lineShape,s=n.point,l=n.area,u=n.seriesField,c=null===s||void 0===s?void 0:s.state,h=null===l||void 0===l?void 0:l.state;e.data(r);var f=jx({},t,{options:{shapeField:u,line:{color:i,style:o,shape:a},point:s&&(0,A.pi)({color:i,shape:"circle"},s),area:l&&(0,A.pi)({color:i},l),label:void 0}}),p=jx({},f,{options:{tooltip:!1,state:c}}),d=jx({},f,{options:{tooltip:!1,state:h}});return Ww(f),qw(p),Gw(d),t}function eC(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=r.xField,s=r.yField,l=r.data;return px(Rw((e={},e[a]=i,e[s]=o,e),(n={},n[a]={type:"cat"},n[s]=Zx(l,s),n)))(t)}function nC(t){var e=t.chart,n=t.options,r=n.reflect;if(r){var i=r;(0,E.kJ)(i)||(i=[i]);var o=i.map((function(t){return["reflect",t]}));e.coordinate({type:"rect",actions:o})}return t}function rC(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function iC(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function oC(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=xx(e,"line");if(r){var a=r.callback,s=(0,A._T)(r,["callback"]);o.label({fields:[i],callback:a,cfg:(0,A.pi)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Dx(s))})}else o.label(!1);return t}function aC(t){var e=t.chart,n=t.options,r=n.isStack;return r&&(0,E.S6)(e.geometries,(function(t){t.adjust("stack")})),t}function sC(t){return px(tC,eC,aC,_w,nC,rC,iC,Ow,oC,Pw,Lw,Tw,Bw,Nw(),jw)(t)}var lC=jx({},cw.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),uC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.active=function(){var t=this.getView(),e=this.context.event;if(e.data){var n=e.data.items,r=t.geometries.filter((function(t){return"point"===t.type}));(0,E.S6)(r,(function(t){(0,E.S6)(t.elements,(function(t){var e=-1!==(0,E.cx)(n,(function(e){return e.data===t.data}));t.setState("active",e)}))}))}},e.prototype.reset=function(){var t=this.getView(),e=t.geometries.filter((function(t){return"point"===t.type}));(0,E.S6)(e,(function(t){(0,E.S6)(t.elements,(function(t){t.setState("active",!1)}))}))},e.prototype.getView=function(){return this.context.view},e}(Hs);Zs("marker-active",uC),Wl("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var cC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return(0,A.ZT)(e,t),e.getDefaultOptions=function(){return lC},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,r=e.options;eC({chart:n,options:r}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return sC},e}(cw);function hC(t,e,n,r){var i=(0,E.u4)(t,(function(t,r){var i=r[n],o=t.has(i)?t.get(i):0,a=r[e];return o=qx(a)?o+a:o,t.set(i,o),t}),new Map);return(0,E.UI)(t,(function(t){var o,a=t[e],s=t[n],l=qx(a)&&0!==i.get(s)?a/i.get(s):0;return(0,A.pi)((0,A.pi)({},t),(o={},o[r]=l,o))}))}function fC(t,e,n,r){var i=(0,E.u4)(t,(function(t,r){var i=(0,E.u4)(n,(function(t,e){return""+t+r[e]}),""),o=t.has(i)?t.get(i):0,a=r[e];return o=qx(a)?o+a:o,t.set(i,o),t}),new Map);return(0,E.UI)(t,(function(t){var o,a=t[e],s=(0,E.u4)(n,(function(e,n){return""+e+t[n]}),""),l=qx(a)&&0!==i.get(s)?a/i.get(s):0;return(0,A.pi)((0,A.pi)({},t),(o={},o[r]=l,o))}))}function pC(t,e,n,r,i){return i?hC(t,e,n,r):t}function dC(t){var e=t.chart,n=t.options,r=n.data,i=n.areaStyle,o=n.color,a=n.point,s=n.line,l=n.isPercent,u=n.xField,c=n.yField,h=n.tooltip,f=n.seriesField,p=n.startOnZero,d=null===a||void 0===a?void 0:a.state,g=pC(r,c,u,c,l);e.data(g);var v=l?(0,A.pi)({formatter:function(t){return{name:t[f]||t[u],value:(100*Number(t[c])).toFixed(2)+"%"}}},h):h,m=jx({},t,{options:{area:{color:o,style:i},point:a&&(0,A.pi)({color:o},a),tooltip:v,label:void 0,args:{startOnZero:p}}}),y={chart:e,options:jx({line:{size:2}},(0,E.CE)(n,["state"]),{line:s&&(0,A.pi)({color:o},s),sizeField:f,state:null===s||void 0===s?void 0:s.state,tooltip:!1,label:void 0,args:{startOnZero:p}})},b=jx({},m,{options:{tooltip:!1,state:d}});return Gw(m),Ww(y),qw(b),t}function gC(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=xx(e,"area");if(r){var a=r.callback,s=(0,A._T)(r,["callback"]);o.label({fields:[i],callback:a,cfg:(0,A.pi)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Dx(s))})}else o.label(!1);return t}function vC(t){var e=t.chart,n=t.options,r=n.isStack,i=n.isPercent,o=n.seriesField;return(i||r)&&o&&(0,E.S6)(e.geometries,(function(t){t.adjust("stack")})),t}function mC(t){return px(_w,Fw("areaStyle"),zw("rect"),dC,eC,vC,rC,iC,Ow,gC,Pw,Nw(),Tw,Bw,jw)(t)}var yC=jx({},cw.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left",radio:{}}}),bC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return(0,A.ZT)(e,t),e.getDefaultOptions=function(){return yC},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.isPercent,r=e.xField,i=e.yField,o=this,a=o.chart,s=o.options;eC({chart:a,options:s}),this.chart.changeData(pC(t,i,r,i,n))},e.prototype.getSchemaAdaptor=function(){return mC},e}(cw);function xC(t,e){return(0,E.hj)(t)&&(0,E.hj)(e)?t===e?"100%":0===t?"∞":0===e?"-∞":(100*e/t).toFixed(2)+"%":"-"}function wC(t,e){return jx({size:e?32:80,spacing:e?8:12,offset:e?32:0,arrow:!1!==t.arrow&&{headSize:12,style:{fill:"rgba(0, 0, 0, 0.05)"}},text:!1!==t.text&&{style:{fontSize:12,fill:"rgba(0, 0, 0, 0.85)",textAlign:"center",textBaseline:"middle"},formatter:xC}},t)}function CC(t,e){return(0,E.UI)(e.getModel().points,(function(e){return t.convertPoint(e)}))}function SC(t,e,n){var r=t.view,i=t.geometry,o=t.group,a=t.options,s=t.horizontal,l=a.offset,u=a.size,c=a.arrow,h=r.getCoordinate(),f=CC(h,e)[3],p=CC(h,n)[0],d=p.y-f.y,g=p.x-f.x;if("boolean"!==typeof c){var v,m=c.headSize,y=a.spacing;s?(g-m)/2<y?(y=Math.max(1,(g-m)/2),v=[[f.x+y,f.y-l],[f.x+y,f.y-l-u],[p.x-y,p.y-l-u/2]]):v=[[f.x+y,f.y-l],[f.x+y,f.y-l-u],[p.x-y-m,p.y-l-u],[p.x-y,p.y-l-u/2],[p.x-y-m,p.y-l]]:(d-m)/2<y?(y=Math.max(1,(d-m)/2),v=[[f.x+l,f.y+y],[f.x+l+u,f.y+y],[p.x+l+u/2,p.y-y]]):v=[[f.x+l,f.y+y],[f.x+l+u,f.y+y],[p.x+l+u,p.y-y-m],[p.x+l+u/2,p.y-y],[p.x+l,p.y-y-m]],o.addShape("polygon",{id:r.id+"-conversion-tag-arrow-"+i.getElementId(e.getModel().mappingData),name:"conversion-tag-arrow",origin:{element:e,nextElement:n},attrs:(0,A.pi)((0,A.pi)({},c.style||{}),{points:v})})}}function AC(t,e,n){var r,i,o,a=t.view,s=t.geometry,l=t.group,u=t.options,c=t.field,h=t.horizontal,f=u.offset,p=u.size;if("boolean"!==typeof u.text){var d=a.getCoordinate(),g=(null===(r=u.text)||void 0===r?void 0:r.formatter)&&(null===(i=u.text)||void 0===i?void 0:i.formatter(e.getData()[c],n.getData()[c])),v=CC(d,e)[h?3:0],m=CC(d,n)[h?0:3],y=l.addShape("text",{id:a.id+"-conversion-tag-text-"+s.getElementId(e.getModel().mappingData),name:"conversion-tag-text",origin:{element:e,nextElement:n},attrs:(0,A.pi)((0,A.pi)({},(null===(o=u.text)||void 0===o?void 0:o.style)||{}),{text:g,x:h?(v.x+m.x)/2:v.x+f+p/2,y:h?v.y-f-p/2:(v.y+m.y)/2})});if(h){var b=m.x-v.x,x=y.getBBox().width;if(x>b){var w=x/g.length,C=Math.max(1,Math.ceil(b/w)-1),S=g.slice(0,C)+"...";y.attr("text",S)}}}}function EC(t,e,n){SC(t,e,n),AC(t,e,n)}function kC(t,e,n){return void 0===e&&(e=!0),void 0===n&&(n=!1),function(r){var i=r.options,o=r.chart,a=i.conversionTag,s=i.theme;return a&&!n&&(o.theme(jx({},(0,E.Kn)(s)?s:au(s),{columnWidthRatio:1/3})),o.annotation().shape({render:function(n,r){var i=n.addGroup({id:o.id+"-conversion-tag-group",name:"conversion-tag-group"}),s=(0,E.sE)(o.geometries,(function(t){return"interval"===t.type})),l={view:r,geometry:s,group:i,field:t,horizontal:e,options:wC(a,e)},u=s.elements;(0,E.S6)(u,(function(t,e){e>0&&EC(l,u[e-1],t)}))}})),r}}var DC={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},FC=function(t,e){return"hover"===t?[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"],arg:[null,{style:e}]}]:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"],arg:[null,null,null,null,{style:e}]}]};function MC(t){return void 0===t&&(t=!1),function(e){var n=e.chart,r=e.options,i=r.connectedArea,o=function(){n.removeInteraction(DC.hover),n.removeInteraction(DC.click)};if(!t&&i){var a=i.trigger||"hover";o(),n.interaction(DC[a],{start:FC(a,i.style)})}else o();return e}}Wl(DC.hover,{start:FC(DC.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Wl(DC.click,{start:FC(DC.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var OC=10,TC=5,BC={padding:[8,10],text:"reset",textStyle:{default:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"}},buttonStyle:{default:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},active:{fill:"#e6e6e6"}}},_C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg=(0,A.pi)({name:"button"},BC),e}return(0,A.ZT)(e,t),e.prototype.getButtonCfg=function(){var t=this.context.view,e=(0,E.U2)(t,["interactions","filter-action","cfg","buttonConfig"]);return jx(this.buttonCfg,e,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=this.drawText(e);this.drawBackground(e,n.getBBox()),this.buttonGroup=e},e.prototype.drawText=function(t){var e,n=this.getButtonCfg();return t.addShape({type:"text",name:"button-text",attrs:(0,A.pi)({text:n.text},null===(e=n.textStyle)||void 0===e?void 0:e.default)})},e.prototype.drawBackground=function(t,e){var n,r=this.getButtonCfg(),i=Kx(r.padding),o=t.addShape({type:"rect",name:"button-rect",attrs:(0,A.pi)({x:e.x-i[3],y:e.y-i[0],width:e.width+i[1]+i[3],height:e.height+i[0]+i[2]},null===(n=r.buttonStyle)||void 0===n?void 0:n.default)});return o.toBack(),t.on("mouseenter",(function(){var t;o.attr(null===(t=r.buttonStyle)||void 0===t?void 0:t.active)})),t.on("mouseleave",(function(){var t;o.attr(null===(t=r.buttonStyle)||void 0===t?void 0:t.default)})),o},e.prototype.resetPosition=function(){var t=this.context.view,e=t.getCoordinate(),n=e.convert({x:1,y:1}),r=this.buttonGroup,i=r.getBBox(),o=uh.transform(null,[["t",n.x-i.width-OC,n.y+i.height+TC]]);r.setMatrix(o)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(Hs);function IC(t){return t.isInPlot()}function PC(t,e,n){var r=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:IC,action:["brush:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:IC,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:IC,action:["brush:filter","brush:end",r+"-mask:end",r+"-mask:hide","brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:[r+"-mask:start",r+"-mask:show"],arg:[{maskStyle:null===n||void 0===n?void 0:n.style}]},{trigger:"mask:dragstart",action:[r+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[r+"-mask:resize"]},{trigger:"mask:drag",action:[r+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[r+"-mask:end"]},{trigger:"mask:dragend",action:[r+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",r+"-mask:hide"]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:IC,action:["brush-x:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:IC,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:IC,action:["brush-x:filter","brush-x:end",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:[r+"-mask:start",r+"-mask:show"],arg:[{maskStyle:null===n||void 0===n?void 0:n.style}]},{trigger:"mask:dragstart",action:[r+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[r+"-mask:resize"]},{trigger:"mask:drag",action:[r+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[r+"-mask:end"]},{trigger:"mask:dragend",action:[r+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",r+"-mask:hide"]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:IC,action:["brush-y:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:IC,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:IC,action:["brush-y:filter","brush-y:end",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:[r+"-mask:start",r+"-mask:show"],arg:[{maskStyle:null===n||void 0===n?void 0:n.style}]},{trigger:"mask:dragstart",action:[r+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[r+"-mask:resize"]},{trigger:"mask:drag",action:[r+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[r+"-mask:end"]},{trigger:"mask:dragend",action:[r+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",r+"-mask:hide"]}]};default:return{}}}Zs("brush-reset-button",_C,{name:"brush-reset-button"}),Wl("filter-action",{}),Wl("brush",PC("brush")),Wl("brush-highlight",PC("brush-highlight")),Wl("brush-x",PC("brush-x","x-rect")),Wl("brush-y",PC("brush-y","y-rect")),Wl("brush-x-highlight",PC("brush-x-highlight","x-rect")),Wl("brush-y-highlight",PC("brush-y-highlight","y-rect"));var LC=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"];function RC(t){var e=t.options,n=e.brush,r=(0,E.hX)(e.interactions||[],(function(t){return-1===LC.indexOf(t.type)}));return(null===n||void 0===n?void 0:n.enabled)&&(LC.forEach((function(t){var e,i=!1;switch(n.type){case"x-rect":i=t===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":i=t===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:i=t===("highlight"===n.action?"brush-highlight":"brush");break}var o={type:t,enable:i};((null===(e=n.mask)||void 0===e?void 0:e.style)||n.type)&&(o.cfg=PC(t,n.type,n.mask)),r.push(o)})),"highlight"!==(null===n||void 0===n?void 0:n.action)&&r.push({type:"filter-action",cfg:{buttonConfig:n.button}})),jx({},t,{options:{interactions:r}})}function NC(t){var e=t.options,n=e.legend,r=e.seriesField,i=e.isStack;return r?!1!==n&&(n=(0,A.pi)({position:i?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function jC(t){var e=t.chart,n=t.options,r=n.data,i=n.columnStyle,o=n.color,a=n.columnWidthRatio,s=n.isPercent,l=n.isGroup,u=n.isStack,c=n.xField,h=n.yField,f=n.seriesField,p=n.groupField,d=n.tooltip,g=n.shape,v=s&&l&&u?fC(r,h,[c,p],h):pC(r,h,c,h,s),m=[];u&&f&&!l?v.forEach((function(t){var e=m.find((function(e){return e[c]===t[c]&&e[f]===t[f]}));e?e[h]+=t[h]||0:m.push((0,A.pi)({},t))})):m=v,e.data(m);var y=s?(0,A.pi)({formatter:function(t){return{name:l&&u?t[f]+" - "+t[p]:t[f]||t[c],value:(100*Number(t[h])).toFixed(2)+"%"}}},d):d,b=jx({},t,{options:{data:m,widthRatio:a,tooltip:y,interval:{shape:g,style:i,color:o}}});return Zw(b),b}function zC(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=r.xField,s=r.yField,l=r.data,u=r.isPercent,c=u?{max:1,min:0,minLimit:0,maxLimit:1}:{};return px(Rw((e={},e[a]=i,e[s]=o,e),(n={},n[a]={type:"cat"},n[s]=(0,A.pi)((0,A.pi)({},Zx(l,s)),c),n)))(t)}function UC(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function VC(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function HC(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=n.isRange,a=xx(e,"interval");if(r){var s=r.callback,l=(0,A._T)(r,["callback"]);a.label({fields:[i],callback:s,cfg:(0,A.pi)({layout:(null===l||void 0===l?void 0:l.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Dx(o?(0,A.pi)({content:function(t){var e;return null===(e=t[i])||void 0===e?void 0:e.join("-")}},l):l))})}else a.label(!1);return t}function $C(t){var e=t.chart,n=t.options,r=n.tooltip,i=n.isGroup,o=n.isStack,a=n.groupField,s=n.data,l=n.xField,u=n.yField,c=n.seriesField;if(!1===r)e.tooltip(!1);else{var h=r;if(i&&o){var f=(null===h||void 0===h?void 0:h.formatter)||function(t){return{name:t[c]+" - "+t[a],value:t[u]}};h=(0,A.pi)((0,A.pi)({},h),{customItems:function(t){var e=[];return(0,E.S6)(t,(function(t){var n=(0,E.hX)(s,(function(e){return(0,E.BD)(e,dx(t.data,[l,c]))}));n.forEach((function(n){e.push((0,A.pi)((0,A.pi)((0,A.pi)({},t),{value:n[u],data:n,mappingData:{_origin:n}}),f(n)))}))})),e}})}e.tooltip(h)}return t}function GC(t,e){void 0===e&&(e=!1);var n=t.options,r=n.seriesField;return px(NC,_w,Fw("columnStyle"),Iw,zw("rect"),jC,zC,UC,VC,$C,Pw,Lw,HC,RC,Tw,Bw,Nw(),kC(n.yField,!e,!!r),MC(!n.isStack),jw)(t)}var WC=jx({},cw.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),qC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return(0,A.ZT)(e,t),e.getDefaultOptions=function(){return WC},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField,r=e.xField,i=e.isPercent,o=this,a=o.chart,s=o.options;zC({chart:a,options:s}),this.chart.changeData(pC(t,n,r,n,i))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return GC},e}(cw);function XC(t){var e=t.options,n=e.xField,r=e.yField,i=e.xAxis,o=e.yAxis,a={left:"bottom",right:"top",top:"left",bottom:"right"},s=!1!==o&&(0,A.pi)({position:a[(null===o||void 0===o?void 0:o.position)||"left"]},o),l=!1!==i&&(0,A.pi)({position:a[(null===i||void 0===i?void 0:i.position)||"bottom"]},i);return(0,A.pi)((0,A.pi)({},t),{options:(0,A.pi)((0,A.pi)({},e),{xField:r,yField:n,xAxis:s,yAxis:l})})}function ZC(t){var e=t.options,n=e.label;return n&&!n.position&&(n.position="left",n.layout||(n.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),jx({},t,{options:{label:n}})}function YC(t){var e=t.options,n=e.seriesField,r=e.isStack,i=e.legend;return n?!1!==i&&(i=(0,A.pi)({position:r?"top-left":"right-top"},i||{})):i=!1,jx({},t,{options:{legend:i}})}function QC(t){var e=t.options,n=[{type:"transpose"},{type:"reflectY"}].concat(e.coordinate||[]);return jx({},t,{options:{coordinate:n}})}function KC(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.barWidthRatio,o=n.minBarWidth,a=n.maxBarWidth,s=n.barBackground;return GC({chart:e,options:(0,A.pi)((0,A.pi)({},n),{columnStyle:r,columnWidthRatio:i,minColumnWidth:o,maxColumnWidth:a,columnBackground:s})},!0)}function JC(t){return px(XC,ZC,YC,Ow,QC,KC)(t)}var tS=jx({},cw.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),eS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bar",e}return(0,A.ZT)(e,t),e.getDefaultOptions=function(){return tS},e.prototype.changeData=function(t){var e,n;this.updateOption({data:t});var r=this,i=r.chart,o=r.options,a=o.isPercent,s=o.xField,l=o.yField,u=o.xAxis,c=o.yAxis;e=[l,s],s=e[0],l=e[1],n=[c,u],u=n[0],c=n[1];var h=(0,A.pi)((0,A.pi)({},o),{xField:s,yField:l,yAxis:c,xAxis:u});zC({chart:i,options:h}),i.changeData(pC(t,s,l,s,a))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return JC},e}(cw),nS=jx({},cw.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}});function rS(t,e){var n=null;return(0,E.S6)(t,(function(t){"number"===typeof t[e]&&(n+=t[e])})),n}function iS(t,e){var n;switch(t){case"inner":return n="-30%",(0,E.HD)(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,(0,E.HD)(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function oS(t,e){return(0,E.yW)(Qx(t,e),(function(t){return 0===t[e]}))}var aS=[1,0,0,0,1,0,0,0,1];function sS(t,e){var n=e?(0,A.pr)(e):(0,A.pr)(aS);return uh.transform(n,t)}var lS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getActiveElements=function(){var t=uh.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,r=t.item,i=n.get("field");if(i){var o=e.geometries[0].elements;return o.filter((function(t){return t.getModel().data[i]===r.value}))}}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements(),n=t.geometries[0].labelsContainer.getChildren();return n.filter((function(t){return e.find((function(e){return(0,E.Xy)(e.getData(),t.get("data"))}))}))},e.prototype.transfrom=function(t){void 0===t&&(t=7.5);var e=this.getActiveElements(),n=this.getActiveElementLabels();e.forEach((function(e,r){var i=n[r],o=e.geometry.coordinate;if(o.isPolar&&o.isTransposed){var a=uh.getAngle(e.getModel(),o),s=a.startAngle,l=a.endAngle,u=(s+l)/2,c=t,h=c*Math.cos(u),f=c*Math.sin(u);e.shape.setMatrix(sS([["t",h,f]])),i.setMatrix(sS([["t",h,f]]))}}))},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(Hs);function uS(t){var e,n=t.event,r=n.target;return r&&(e=r.get("element")),e}var cS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getAnnotations=function(t){var e=t||this.context.view;return e.getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,e=this.context.view;e.removeInteraction("tooltip"),e.on("afterchangesize",(function(){var n=t.getAnnotations(e);t.initialAnnotation=n}))},e.prototype.change=function(t){var e=this.context,n=e.view,r=e.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var i=(0,E.U2)(r,["data","data"]);if(r.type.match("legend-item")){var o=uh.getDelegationObject(this.context),a=n.getGroupedFields()[0];if(o&&a){var s=o.item;i=n.getData().find((function(t){return t[a]===s.value}))}}if(i){var l=(0,E.U2)(t,"annotations",[]),u=(0,E.U2)(t,"statistic",{});n.getController("annotation").clear(!0),(0,E.S6)(l,(function(t){"object"===typeof t&&n.annotation()[t.type](t)})),$x(n,{statistic:u,plotType:"pie"},i),n.render(!0)}var c=uS(this.context);c&&c.shape.toFront()},e.prototype.reset=function(){var t=this.context.view,e=t.getController("annotation");e.clear(!0);var n=this.getInitialAnnotation();(0,E.S6)(n,(function(e){t.annotation()[e.type](e)})),t.render(!0)},e}(Hs),hS="pie-statistic";function fS(t){var e=t.chart,n=t.options,r=n.data,i=n.angleField,o=n.colorField,a=n.color,s=n.pieStyle,l=Qx(r,i);if(oS(l,i)){var u="$$percentage$$";l=l.map((function(t){var e;return(0,A.pi)((0,A.pi)({},t),(e={},e[u]=1/l.length,e))})),e.data(l);var c=jx({},t,{options:{xField:"1",yField:u,seriesField:o,isStack:!0,interval:{color:a,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Zw(c)}else{e.data(l);c=jx({},t,{options:{xField:"1",yField:i,seriesField:o,isStack:!0,interval:{color:a,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Zw(c)}return t}function pS(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.colorField,a=jx({},i);return n.scale(a,(e={},e[o]={type:"cat"},e)),t}function dS(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function gS(t){var e=t.chart,n=t.options,r=n.label,i=n.colorField,o=n.angleField,a=e.geometries[0];if(r){var s=r.callback,l=(0,A._T)(r,["callback"]),u=Dx(l);if(u.content){var c=u.content;u.content=function(t,n,r){var a=t[i],s=t[o],l=e.getScaleByField(o),u=null===l||void 0===l?void 0:l.scale(s);return(0,E.mf)(c)?c((0,A.pi)((0,A.pi)({},t),{percent:u}),n,r):(0,E.HD)(c)?gx(c,{value:s,name:a,percentage:(0,E.hj)(u)&&!(0,E.UM)(s)?(100*u).toFixed(2)+"%":null}):c}}var h={inner:"",outer:"pie-outer",spider:"pie-spider"},f=u.type?h[u.type]:"pie-outer",p=u.layout?(0,E.kJ)(u.layout)?u.layout:[u.layout]:[];u.layout=(f?[{type:f}]:[]).concat(p),a.label({fields:i?[o,i]:[o],callback:s,cfg:(0,A.pi)((0,A.pi)({},u),{offset:iS(u.type,u.offset),type:"pie"})})}else a.label(!1);return t}function vS(t){var e=t.innerRadius,n=t.statistic,r=t.angleField,i=t.colorField,o=t.meta,a=t.locale,s=iw(a);if(e&&n){var l=jx({},nS.statistic,n),u=l.title,c=l.content;return!1!==u&&(u=jx({},{formatter:function(t){var e=t?t[i]:(0,E.UM)(u.content)?s.get(["statistic","total"]):u.content,n=(0,E.U2)(o,[i,"formatter"])||function(t){return t};return n(e)}},u)),!1!==c&&(c=jx({},{formatter:function(t,e){var n=t?t[r]:rS(e,r),i=(0,E.U2)(o,[r,"formatter"])||function(t){return t};return t||(0,E.UM)(c.content)?i(n):c.content}},c)),jx({},{statistic:{title:u,content:c}},t)}return t}function mS(t){var e=t.chart,n=t.options,r=vS(n),i=r.innerRadius,o=r.statistic;return e.getController("annotation").clear(!0),px(Nw())(t),i&&o&&$x(e,{statistic:o,plotType:"pie"}),t}function yS(t){var e=t.chart,n=t.options,r=n.tooltip,i=n.colorField,o=n.angleField,a=n.data;if(!1===r)e.tooltip(r);else if(e.tooltip(jx({},r,{shared:!1})),oS(a,o)){var s=(0,E.U2)(r,"fields"),l=(0,E.U2)(r,"formatter");(0,E.xb)((0,E.U2)(r,"fields"))&&(s=[i,o],l=l||function(t){return{name:t[i],value:(0,E.BB)(t[o])}}),e.geometries[0].tooltip(s.join("*"),Hw(s,l))}return t}function bS(t){var e=t.chart,n=t.options,r=vS(n),i=r.interactions,o=r.statistic,a=r.annotations;return(0,E.S6)(i,(function(t){var n,r;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var i=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(i=[{trigger:"element:mouseenter",action:hS+":change",arg:{statistic:o,annotations:a}}]),(0,E.S6)(null===(r=t.cfg)||void 0===r?void 0:r.start,(function(t){i.push((0,A.pi)((0,A.pi)({},t),{arg:{statistic:o,annotations:a}}))})),e.interaction(t.type,jx({},t.cfg,{start:i}))}else e.interaction(t.type,t.cfg||{})})),t}function xS(t){return px(Fw("pieStyle"),fS,pS,_w,dS,Mw,yS,gS,Iw,mS,bS,Bw)(t)}Zs(hS,cS),Wl("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),Zs("pie-legend",lS),Wl("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});var wS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return(0,A.ZT)(e,t),e.getDefaultOptions=function(){return nS},e.prototype.changeData=function(t){this.chart.emit(k.BEFORE_CHANGE_DATA,Bu.fromData(this.chart,k.BEFORE_CHANGE_DATA,null));var e=this.options,n=this.options.angleField,r=Qx(e.data,n),i=Qx(t,n);oS(r,n)||oS(i,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(i),mS({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(k.AFTER_CHANGE_DATA,Bu.fromData(this.chart,k.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return xS},e}(cw);function CS(t){var e=t.chart,n=t.options,r=n.data,i=n.sectorStyle,o=n.color;return e.data(r),px(Zw)(jx({},t,{options:{marginRatio:1,interval:{style:i,color:o}}})),t}function SS(t){var e=t.chart,n=t.options,r=n.label,i=n.xField,o=xx(e,"interval");if(!1===r)o.label(!1);else if((0,E.Kn)(r)){var a=r.callback,s=r.fields,l=(0,A._T)(r,["callback","fields"]),u=l.offset,c=l.layout;(void 0===u||u>=0)&&(c=c?(0,E.kJ)(c)?c:[c]:[],l.layout=(0,E.hX)(c,(function(t){return"limit-in-shape"!==t.type})),l.layout.length||delete l.layout),o.label({fields:s||[i],callback:a,cfg:Dx(l)})}else yx(ix.WARN,null===r,"the label option must be an Object."),o.label({fields:[i]});return t}function AS(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return!1===r?e.legend(!1):i&&e.legend(i,r),t}function ES(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function kS(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return px(Rw((e={},e[o]=r,e[a]=i,e)))(t)}function DS(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return r?e.axis(o,r):e.axis(o,!1),i?e.axis(a,i):e.axis(a,!1),t}function FS(t){px(Fw("sectorStyle"),CS,kS,SS,ES,DS,AS,Ow,Tw,Bw,_w,Nw(),Iw)(t)}var MS=jx({},cw.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]}),OS=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return MS},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return FS}}(cw),{font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3});function TS(t,e){return e=(0,E.f0)({},OS,e),BS(t,e)}function BS(t,e){var n=KS();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){(0,E.UM)(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var r=n.start(),i=r._tags;i.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var o=e.size,a=o[0],s=o[1];return i.push({text:"",value:0,x:0,y:0,opacity:0}),i.push({text:"",value:0,x:a,y:s,opacity:0}),i}var _S=Math.PI/180,IS=64,PS=2048;function LS(t){return t.text}function RS(){return"serif"}function NS(){return"normal"}function jS(t){return t.value}function zS(){return 90*~~(2*Math.random())}function US(){return 1}function VS(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,(IS<<5)/o,PS/o);var a=0,s=0,l=0,u=n.length;--r;while(++r<u){e=n[r],i.save(),i.font=e.style+" "+e.weight+" "+~~((e.size+1)/o)+"px "+e.font;var c=i.measureText(e.text+"m").width*o,h=e.size<<1;if(e.rotate){var f=Math.sin(e.rotate*_S),p=Math.cos(e.rotate*_S),d=c*p,g=c*f,v=h*p,m=h*f;c=Math.max(Math.abs(d+m),Math.abs(d-m))+31>>5<<5,h=~~Math.max(Math.abs(g+v),Math.abs(g-v))}else c=c+31>>5<<5;if(h>l&&(l=h),a+c>=IS<<5&&(a=0,s+=l,l=0),s+h>=PS)break;i.translate((a+(c>>1))/o,(s+(h>>1))/o),e.rotate&&i.rotate(e.rotate*_S),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=c,e.height=h,e.xoff=a,e.yoff=s,e.x1=c>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,a+=c}var y=i.getImageData(0,0,(IS<<5)/o,PS/o).data,b=[];while(--r>=0)if(e=n[r],e.hasText){c=e.width;for(var x=c>>5,w=(h=e.y1-e.y0,0);w<h*x;w++)b[w]=0;if(a=e.xoff,null==a)return;s=e.yoff;for(var C=0,S=-1,A=0;A<h;A++){for(w=0;w<c;w++){var E=x*A+(w>>5),k=y[(s+A)*(IS<<5)+(a+w)<<2]?1<<31-w%32:0;b[E]|=k,C|=k}C?S=A:(e.y0++,h--,A--,s++)}e.y1=e.y0+S,e.sprite=b.slice(0,(e.y1-e.y0)*x)}}}function HS(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,l=32-s,u=t.y1-t.y0,c=(t.y+t.y0)*n+(a>>5),h=0;h<u;h++){r=0;for(var f=0;f<=o;f++)if((r<<l|(f<o?(r=i[h*o+f])>>>s:0))&e[c+f])return!0;c+=n}return!1}function $S(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function GS(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function WS(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function qS(t){var e=4,n=e*t[0]/t[1],r=0,i=0;return function(t){var o=t<0?-1:1;switch(Math.sqrt(1+4*o*t)-o&3){case 0:r+=n;break;case 1:i+=e;break;case 2:r-=n;break;default:i-=e;break}return[r,i]}}function XS(t){var e=[],n=-1;while(++n<t)e[n]=0;return e}function ZS(){return document.createElement("canvas")}function YS(t){return(0,E.mf)(t)?t:function(){return t}}var QS={archimedean:WS,rectangular:qS};function KS(){var t=[256,256],e=RS,n=jS,r=NS,i=zS,o=US,a=WS,s=Math.random,l=[],u=1/0,c=LS,h=NS,f=ZS,p={};function d(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(IS<<5)/e,t.height=PS/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function g(e,n,r){var i,o,l,u=n.x,c=n.y,h=Math.sqrt(t[0]*t[0]+t[1]*t[1]),f=a(t),p=s()<.5?1:-1,d=-p;while(i=f(d+=p)){if(o=~~i[0],l=~~i[1],Math.min(Math.abs(o),Math.abs(l))>=h)break;if(n.x=u+o,n.y=c+l,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!HS(n,e,t[0]))&&(!r||GS(n,r))){for(var g=n.sprite,v=n.width>>5,m=t[0]>>5,y=n.x-(v<<4),b=127&y,x=32-b,w=n.y1-n.y0,C=void 0,S=(n.y+n.y0)*m+(y>>5),A=0;A<w;A++){C=0;for(var E=0;E<=v;E++)e[S+E]|=C<<x|(E<v?(C=g[A*v+E])>>>b:0);S+=m}return delete n.sprite,!0}}return!1}return p.start=function(){var a=t[0],v=t[1],m=d(f()),y=p.board?p.board:XS((t[0]>>5)*t[1]),b=l.length,x=[],w=l.map((function(t,a,s){return t.text=c.call(this,t,a,s),t.font=e.call(this,t,a,s),t.style=h.call(this,t,a,s),t.weight=r.call(this,t,a,s),t.rotate=i.call(this,t,a,s),t.size=~~n.call(this,t,a,s),t.padding=o.call(this,t,a,s),t})).sort((function(t,e){return e.size-t.size})),C=-1,S=p.board?[{x:0,y:0},{x:a,y:v}]:null;function A(){var e=Date.now();while(Date.now()-e<u&&++C<b){var n=w[C];n.x=a*(s()+.5)>>1,n.y=v*(s()+.5)>>1,VS(m,n,w,C),n.hasText&&g(y,n,S)&&(x.push(n),S?p.hasImage||$S(S,n):S=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}p._tags=x,p._bounds=S}return A(),p},p.createMask=function(e){var n=document.createElement("canvas"),r=t[0],i=t[1];if(r&&i){var o=r>>5,a=XS((r>>5)*i);n.width=r,n.height=i;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,r,i);for(var l=s.getImageData(0,0,r,i).data,u=0;u<i;u++)for(var c=0;c<r;c++){var h=o*u+(c>>5),f=u*r+c<<2,d=l[f]>=250&&l[f+1]>=250&&l[f+2]>=250,g=d?1<<31-c%32:0;a[h]|=g}p.board=a,p.hasImage=!0}},p.timeInterval=function(t){u=null==t?1/0:t},p.words=function(t){l=t},p.size=function(e){t=[+e[0],+e[1]]},p.font=function(t){e=YS(t)},p.fontWeight=function(t){r=YS(t)},p.rotate=function(t){i=YS(t)},p.spiral=function(t){a=QS[t]||t},p.fontSize=function(t){n=YS(t)},p.padding=function(t){o=YS(t)},p.random=function(t){s=YS(t)},p}function JS(t){var e=t.options,n=t.chart,r=n,i=r.width,o=r.height,a=r.padding,s=r.appendPadding,l=r.ele,u=e.data,c=e.imageMask,h=e.wordField,f=e.weightField,p=e.colorField,d=e.wordStyle,g=e.timeInterval,v=e.random,m=e.spiral,y=e.autoFit,b=void 0===y||y,x=e.placementStrategy;if(!u||!u.length)return[];var w=d.fontFamily,C=d.fontWeight,S=d.padding,k=d.fontSize,D=iA(u,f),F=[sA(D),lA(D)],M=u.map((function(t){return{text:t[h],value:t[f],color:t[p],datum:t}})),O={imageMask:c,font:w,fontSize:rA(k,F),fontWeight:C,size:tA({width:i,height:o,padding:a,appendPadding:s,autoFit:b,container:l}),padding:S,timeInterval:g,random:v,spiral:m,rotate:oA(e)};if((0,E.mf)(x)){var T=M.map((function(t,e,r){return(0,A.pi)((0,A.pi)((0,A.pi)({},t),{hasText:!!t.text,font:YS(O.font)(t,e,r),weight:YS(O.fontWeight)(t,e,r),rotate:YS(O.rotate)(t,e,r),size:YS(O.fontSize)(t,e,r),style:"normal"}),x.call(n,t,e,r))}));return T.push({text:"",value:0,x:0,y:0,opacity:0}),T.push({text:"",value:0,x:O.size[0],y:O.size[1],opacity:0}),T}return TS(M,O)}function tA(t){var e=t.width,n=t.height,r=t.container,i=t.autoFit,o=t.padding,a=t.appendPadding;if(i){var s=bx(r);e=s.width,n=s.height}e=e||400,n=n||400;var l=eA({padding:o,appendPadding:a}),u=l[0],c=l[1],h=l[2],f=l[3],p=[e-(f+c),n-(u+h)];return p}function eA(t){var e=Kx(t.padding),n=Kx(t.appendPadding),r=e[0]+n[0],i=e[1]+n[1],o=e[2]+n[2],a=e[3]+n[3];return[r,i,o,a]}function nA(t){return new Promise((function(e,n){if(t instanceof HTMLImageElement)e(t);else{if((0,E.HD)(t)){var r=new Image;return r.crossOrigin="anonymous",r.src=t,r.onload=function(){e(r)},void(r.onerror=function(){yx(ix.ERROR,!1,"image %s load failed !!!",t),n()})}yx(ix.WARN,void 0===t,"The type of imageMask option must be String or HTMLImageElement."),n()}}))}function rA(t,e){if((0,E.mf)(t))return t;if((0,E.kJ)(t)){var n=t[0],r=t[1];if(!e)return function(){return(r+n)/2};var i=e[0],o=e[1];return o===i?function(){return(r+n)/2}:function(t){var e=t.value;return(r-n)/(o-i)*(e-i)+n}}return function(){return t}}function iA(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"===typeof t&&!isNaN(t)}))}function oA(t){var e=aA(t),n=e.rotation,r=e.rotationSteps;if(!(0,E.kJ)(n))return n;var i=n[0],o=n[1],a=1===r?0:(o-i)/(r-1);return function(){return o===i?o:Math.floor(Math.random()*r)*a}}function aA(t){var e=t.wordStyle.rotationSteps;return e<1&&(yx(ix.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1),{rotation:t.wordStyle.rotation,rotationSteps:e}}function sA(t){return Math.min.apply(Math,t)}function lA(t){return Math.max.apply(Math,t)}var uA="color",cA=jx({},cw.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",uA],formatter:function(t){return{name:t.text,value:t.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}});function hA(t){var e=t.chart,n=t.options,r=n.colorField,i=n.color,o=JS(t);e.data(o);var a=jx({},t,{options:{xField:"x",yField:"y",seriesField:r&&uA,rawFields:(0,E.mf)(i)&&(0,A.pr)((0,E.U2)(n,"rawFields",[]),["datum"]),point:{color:i,shape:"word-cloud"}}}),s=qw(a).ext;return s.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function fA(t){return px(Rw({x:{nice:!1},y:{nice:!1}}))(t)}function pA(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField;return!1===r?e.legend(!1):i&&e.legend(uA,r),t}function dA(t){px(hA,fA,Ow,pA,Tw,Bw,_w,Iw)(t)}function gA(t){return{fontSize:t.data.size,text:t.data.text,textAlign:"center",fontFamily:t.data.font,fontWeight:t.data.weight,fill:t.color||t.defaultStyle.stroke,textBaseline:"alphabetic"}}vc("point","word-cloud",{draw:function(t,e){var n=t.x,r=t.y,i=e.addShape("text",{attrs:(0,A.pi)((0,A.pi)({},gA(t)),{x:n,y:r})}),o=t.data.rotate;return"number"===typeof o&&uh.rotate(i,o*Math.PI/180),i}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="word-cloud",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return cA},e.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(JS({chart:this.chart,options:this.options}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){var e=this;return new Promise((function(n){var r=e.options.imageMask;if(!r)return t.prototype.render.call(e),void n();var i=function(r){e.options=(0,A.pi)((0,A.pi)({},e.options),{imageMask:r||null}),t.prototype.render.call(e),n()};nA(r).then(i).catch(i)}))},e.prototype.getSchemaAdaptor=function(){return dA},e.prototype.triggerResize=function(){var e=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout((function(){t.prototype.triggerResize.call(e)})))}})(cw);var vA=n(56645),mA={exp:vA.regressionExp,linear:vA.regressionLinear,loess:vA.regressionLoess,log:vA.regressionLog,poly:vA.regressionPoly,pow:vA.regressionPow,quad:vA.regressionQuad};function yA(t,e){var n=10,r={regionStyle:[{position:{start:[t,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[t,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[t,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[t,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-n,offsetY:-n,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:n,offsetY:-n,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:n,offsetY:n,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-n,offsetY:n,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]};return r}var bA=function(t,e){var n=e.view,r=e.options,i=r.xField,o=r.yField,a=n.getScaleByField(i),s=n.getScaleByField(o),l=t.map((function(t){return n.getCoordinate().convert({x:a.scale(t[0]),y:s.scale(t[1])})}));return Tx(l,!1)},xA=function(t){var e,n=t.options,r=n.xField,i=n.yField,o=n.data,a=n.regressionLine,s=a.type,l=void 0===s?"linear":s,u=a.algorithm;if(u)e=(0,E.kJ)(u)?u:u(o);else{var c=mA[l]().x((function(t){return t[r]})).y((function(t){return t[i]}));e=c(o)}return bA(e,t)},wA=function(t){var e,n=t.meta,r=void 0===n?{}:n,i=t.xField,o=t.yField,a=t.data,s=a[0][i],l=a[0][o],u=s>0,c=l>0;function h(t,e){var n=(0,E.U2)(r,[t]);function i(t){return(0,E.U2)(n,t)}var o={};return"x"===e?((0,E.hj)(s)&&((0,E.hj)(i("min"))||(o["min"]=u?0:2*s),(0,E.hj)(i("max"))||(o["max"]=u?2*s:0)),o):((0,E.hj)(l)&&((0,E.hj)(i("min"))||(o["min"]=c?0:2*l),(0,E.hj)(i("max"))||(o["max"]=c?2*l:0)),o)}return(0,A.pi)((0,A.pi)({},r),(e={},e[i]=(0,A.pi)((0,A.pi)({},r[i]),h(i,"x")),e[o]=(0,A.pi)((0,A.pi)({},r[o]),h(o,"y")),e))};function CA(t){var e=t.data,n=void 0===e?[]:e,r=t.xField,i=t.yField;if(n.length){for(var o=!0,a=!0,s=n[0],l=void 0,u=1;u<n.length;u++){if(l=n[u],s[r]!==l[r]&&(o=!1),s[i]!==l[i]&&(a=!1),!o&&!a)break;s=l}var c=[];o&&c.push(r),a&&c.push(i);var h=dx(wA(t),c);return jx({},t,{meta:h})}return t}function SA(t){var e=t.chart,n=t.options,r=n.data,i=n.type,o=n.color,a=n.shape,s=n.pointStyle,l=n.shapeField,u=n.colorField,c=n.xField,h=n.yField,f=n.sizeField,p=n.size,d=n.tooltip;f&&(p||(p=[2,8]),(0,E.hj)(p)&&(p=[p,p])),d&&!d.fields&&(d=(0,A.pi)((0,A.pi)({},d),{fields:[c,h,u,f,l]})),e.data(r),qw(jx({},t,{options:{seriesField:u,point:{color:o,shape:a,size:p,style:s},tooltip:d}}));var g=xx(e,"point");return i&&g.adjust(i),t}function AA(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,s=CA(n);return px(Rw((e={},e[o]=r,e[a]=i,e)))(jx({},t,{options:s}))}function EA(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return e.axis(o,r),e.axis(a,i),t}function kA(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.shapeField,a=n.sizeField,s=n.shapeLegend,l=n.sizeLegend,u=!1!==r;return i&&e.legend(i,!!u&&r),o&&(s?e.legend(o,s):e.legend(o,!1!==s&&r)),a&&e.legend(a,l||!1),u||s||l||e.legend(!1),t}function DA(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=xx(e,"point");if(r){var a=r.callback,s=(0,A._T)(r,["callback"]);o.label({fields:[i],callback:a,cfg:Dx(s)})}else o.label(!1);return t}function FA(t){var e=t.options,n=e.quadrant,r=[];if(n){var i=n.xBaseline,o=void 0===i?0:i,a=n.yBaseline,s=void 0===a?0:a,l=n.labels,u=n.regionStyle,c=n.lineStyle,h=yA(o,s),f=new Array(4).join(",").split(",");f.forEach((function(t,e){r.push((0,A.pi)((0,A.pi)({type:"region",top:!1},h.regionStyle[e].position),{style:jx({},h.regionStyle[e].style,null===u||void 0===u?void 0:u[e])}),(0,A.pi)({type:"text",top:!0},jx({},h.labelStyle[e],null===l||void 0===l?void 0:l[e])))})),r.push({type:"line",top:!1,start:["min",s],end:["max",s],style:jx({},h.lineStyle,c)},{type:"line",top:!1,start:[o,"min"],end:[o,"max"],style:jx({},h.lineStyle,c)})}return px(Nw(r))(t)}function MA(t){var e=t.options,n=t.chart,r=e.regressionLine;if(r){var i=r.style,o=r.top,a=void 0!==o&&o,s={stroke:"#9ba29a",lineWidth:2,opacity:.5};n.annotation().shape({top:a,render:function(t,r){var o=t.addGroup({id:n.id+"-regression-line",name:"regression-line-group"}),a=xA({view:r,options:e});o.addShape("path",{name:"regression-line",attrs:(0,A.pi)((0,A.pi)({path:a},s),i)})}})}return t}function OA(t){var e=t.chart,n=t.options,r=n.tooltip;return r?e.tooltip(r):!1===r&&e.tooltip(!1),t}function TA(t){return px(SA,AA,EA,kA,OA,DA,RC,Pw,Lw,Tw,FA,Bw,_w,MA)(t)}var BA=jx({},cw.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}});Wl("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]});var _A=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.type="scatter",r.on(k.BEFORE_RENDER,(function(t){var e,n,i=r,o=i.options,a=i.chart;if((null===(e=t.data)||void 0===e?void 0:e.source)===bb.FILTER){var s=r.chart.filterData(r.chart.getData());AA({chart:a,options:(0,A.pi)((0,A.pi)({},o),{data:s})})}(null===(n=t.data)||void 0===n?void 0:n.source)===bb.RESET&&AA({chart:a,options:o})})),r}return(0,A.ZT)(e,t),e.getDefaultOptions=function(){return BA},e.prototype.changeData=function(t){this.updateOption(CA(jx({},this.options,{data:t})));var e=this,n=e.options,r=e.chart;AA({chart:r,options:n}),this.chart.changeData(t)},e.prototype.getSchemaAdaptor=function(){return TA},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(cw);function IA(t){var e=t.chart,n=t.options,r=n.data,i=n.lineStyle,o=n.color,a=n.point,s=n.area;e.data(r);var l=jx({},t,{options:{line:{style:i,color:o},point:a?(0,A.pi)({color:o},a):a,area:s?(0,A.pi)({color:o},s):s,label:void 0}}),u=jx({},l,{options:{tooltip:!1}}),c=(null===a||void 0===a?void 0:a.state)||n.state,h=jx({},l,{options:{tooltip:!1,state:c}});return Ww(l),qw(h),Gw(u),t}function PA(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return px(Rw((e={},e[o]=r,e[a]=i,e)))(t)}function LA(t){var e=t.chart,n=t.options,r=n.radius,i=n.startAngle,o=n.endAngle;return e.coordinate("polar",{radius:r,startAngle:i,endAngle:o}),t}function RA(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis,o=n.yField,a=n.yAxis;return e.axis(r,i),e.axis(o,a),t}function NA(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=xx(e,"line");if(r){var a=r.callback,s=(0,A._T)(r,["callback"]);o.label({fields:[i],callback:a,cfg:Dx(s)})}else o.label(!1);return t}function jA(t){return px(IA,PA,_w,LA,RA,Mw,Ow,NA,Tw,Bw,Nw())(t)}var zA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(e){var n=this.getTooltipCfg(),r=n.shared,i=n.title,o=t.prototype.getTooltipItems.call(this,e);if(o.length>0){var a=this.view.geometries[0],s=a.dataArray,l=o[0].name,u=[];return s.forEach((function(t){t.forEach((function(t){var e=uh.getTooltipItems(t,a),n=e[0];if(!r&&n&&n.name===l){var o=(0,E.UM)(i)?l:i;u.push((0,A.pi)((0,A.pi)({},n),{name:n.title,title:o}))}else if(r&&n){o=(0,E.UM)(i)?n.name||l:i;u.push((0,A.pi)((0,A.pi)({},n),{name:n.title,title:o}))}}))})),u}return[]},e}(Wu);ku("radar-tooltip",zA);var UA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.init=function(){var t=this.context.view;t.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event,e=this.getTooltipController();e.showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){var t=this.getTooltipController();t.hideTooltip()},e.prototype.getTooltipController=function(){var t=this.context.view;return t.getController("radar-tooltip")},e}(Hs);Zs("radar-tooltip",UA),Wl("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});var VA,HA;(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}(0,A.ZT)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return jx({},t.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},e.prototype.getSchemaAdaptor=function(){return jA}})(cw);(function(t){t["Left"]="Left",t["Right"]="Right"})(VA||(VA={})),function(t){t["Line"]="line",t["Column"]="column"}(HA||(HA={}));var $A="left-axes-view",GA="right-axes-view",WA={nice:!0,label:{autoHide:!0,autoRotate:!1}},qA=(0,A.pi)((0,A.pi)({},WA),{position:"left"}),XA=(0,A.pi)((0,A.pi)({},WA),{position:"right",grid:null});function ZA(t){return(0,E.U2)(t,"geometry")===HA.Line}function YA(t){return(0,E.U2)(t,"geometry")===HA.Column}function QA(t,e,n){return YA(n)?jx({},{geometry:HA.Column,label:n.label&&n.isRange?{content:function(t){var n;return null===(n=t[e])||void 0===n?void 0:n.join("-")}}:void 0},n):(0,A.pi)({geometry:HA.Line},n)}function KA(t,e){var n=t[0],r=t[1];if((0,E.kJ)(e)){var i=e[0],o=e[1];return[i,o]}var a=(0,E.U2)(e,n),s=(0,E.U2)(e,r);return[a,s]}function JA(t,e){return e===VA.Left?!1!==t&&jx({},qA,t):e===VA.Right?!1!==t&&jx({},XA,t):t}function tE(t){var e=t.view,n=t.geometryOption,r=t.yField,i=t.legend,o=(0,E.U2)(i,"marker"),a=xx(e,ZA(n)?"line":"interval");if(!n.seriesField){var s=(0,E.U2)(e,"options.scales."+r+".alias")||r,l=a.getAttribute("color"),u=e.getTheme().defaultColor;l&&(u=uh.getMappingValue(l,s,(0,E.U2)(l,["values",0],u)));var c=((0,E.mf)(o)?o:!(0,E.xb)(o)&&jx({},{style:{stroke:u,fill:u}},o))||(ZA(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:u}}:{symbol:"square",style:{fill:u}});return[{value:r,name:s,marker:c,isGeometry:!0,viewId:e.id}]}var h=a.getGroupAttributes();return(0,E.u4)(h,(function(t,n){var r=uh.getLegendItems(e,a,n,e.getTheme(),o);return t.concat(r)}),[])}function eE(t){var e=t.options,n=t.chart,r=e.geometryOption,i=r.isStack,o=r.color,a=r.seriesField,s=r.groupField,l=r.isGroup,u=["xField","yField"];if(ZA(r)){Ww(jx({},t,{options:(0,A.pi)((0,A.pi)((0,A.pi)({},dx(e,u)),r),{line:{color:r.color,style:r.lineStyle}})})),qw(jx({},t,{options:(0,A.pi)((0,A.pi)((0,A.pi)({},dx(e,u)),r),{point:r.point&&(0,A.pi)({color:o,shape:"circle"},r.point)})}));var c=[];l&&c.push({type:"dodge",dodgeBy:s||a,customOffset:0}),i&&c.push({type:"stack"}),c.length&&(0,E.S6)(n.geometries,(function(t){t.adjust(c)}))}return YA(r)&&GC(jx({},t,{options:(0,A.pi)((0,A.pi)((0,A.pi)({},dx(e,u)),r),{widthRatio:r.columnWidthRatio,interval:(0,A.pi)((0,A.pi)({},dx(r,["color"])),{style:r.columnStyle})})})),t}var nE=function(t,e){var n=e[0],r=e[1],i=t.getOptions().data,o=t.getXScale(),a=(0,E.dp)(i);if(o&&a){var s=!0,l=(0,E.I)(i,o.field),u=s?l:l.reverse(),c=(0,E.dp)(u),h=Math.floor(n*(c-1)),f=Math.floor(r*(c-1));t.filter(o.field,(function(t){var e=u.indexOf(t);return!(e>-1)||Xx(e,h,f)})),t.getRootView().render(!0)}};function rE(t){var e,n=t.options,r=n.geometryOptions,i=void 0===r?[]:r,o=n.xField,a=n.yField,s=(0,E.yW)(i,(function(t){var e=t.geometry;return e===HA.Line||void 0===e}));return jx({},{options:{geometryOptions:[],meta:(e={},e[o]={type:"cat",sync:!0,range:s?[0,1]:void 0},e),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:KA(a,n.yAxis),geometryOptions:[QA(o,a[0],i[0]),QA(o,a[1],i[1])],annotations:KA(a,n.annotations)}})}function iE(t){var e,n,r=t.chart,i=t.options,o=i.geometryOptions,a={line:0,column:1},s=[{type:null===(e=o[0])||void 0===e?void 0:e.geometry,id:$A},{type:null===(n=o[1])||void 0===n?void 0:n.geometry,id:GA}];return s.sort((function(t,e){return-a[t.type]+a[e.type]})).forEach((function(t){return r.createView({id:t.id})})),t}function oE(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.geometryOptions,a=n.data,s=n.tooltip,l=[(0,A.pi)((0,A.pi)({},o[0]),{id:$A,data:a[0],yField:i[0]}),(0,A.pi)((0,A.pi)({},o[1]),{id:GA,data:a[1],yField:i[1]})];return l.forEach((function(t){var n=t.id,i=t.data,o=t.yField,a=YA(t)&&t.isPercent,l=a?hC(i,o,r,o):i,u=Ax(e,n).data(l),c=a?(0,A.pi)({formatter:function(e){return{name:e[t.seriesField]||o,value:(100*Number(e[o])).toFixed(2)+"%"}}},s):s;eE({chart:u,options:{xField:r,yField:o,tooltip:c,geometryOption:t}})})),t}function aE(t){var e,n=t.chart,r=t.options,i=r.geometryOptions,o=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],a=0;return n.once("beforepaint",(function(){(0,E.S6)(i,(function(t,e){var r=Ax(n,0===e?$A:GA);if(!t.color){var i=r.getGroupScales(),s=(0,E.U2)(i,[0,"values","length"],1),l=o.slice(a,a+s).concat(0===e?[]:o);r.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,l):e.color(l[0])})),a+=s}})),n.render(!0)})),t}function sE(t){var e,n,r=t.chart,i=t.options,o=i.xAxis,a=i.yAxis,s=i.xField,l=i.yField;return Rw((e={},e[s]=o,e[l[0]]=a[0],e))(jx({},t,{chart:Ax(r,$A)})),Rw((n={},n[s]=o,n[l[1]]=a[1],n))(jx({},t,{chart:Ax(r,GA)})),t}function lE(t){var e=t.chart,n=t.options,r=Ax(e,$A),i=Ax(e,GA),o=n.xField,a=n.yField,s=n.xAxis,l=n.yAxis;return e.axis(o,!1),e.axis(a[0],!1),e.axis(a[1],!1),r.axis(o,s),r.axis(a[0],JA(l[0],VA.Left)),i.axis(o,!1),i.axis(a[1],JA(l[1],VA.Right)),t}function uE(t){var e=t.chart,n=t.options,r=n.tooltip,i=Ax(e,$A),o=Ax(e,GA);return e.tooltip(r),i.tooltip({shared:!0}),o.tooltip({shared:!0}),t}function cE(t){var e=t.chart;return Tw(jx({},t,{chart:Ax(e,$A)})),Tw(jx({},t,{chart:Ax(e,GA)})),t}function hE(t){var e=t.chart,n=t.options,r=n.annotations,i=(0,E.U2)(r,[0]),o=(0,E.U2)(r,[1]);return Nw(i)(jx({},t,{chart:Ax(e,$A),options:{annotations:i}})),Nw(o)(jx({},t,{chart:Ax(e,GA),options:{annotations:o}})),t}function fE(t){var e=t.chart;return _w(jx({},t,{chart:Ax(e,$A)})),_w(jx({},t,{chart:Ax(e,GA)})),_w(t),t}function pE(t){var e=t.chart;return Bw(jx({},t,{chart:Ax(e,$A)})),Bw(jx({},t,{chart:Ax(e,GA)})),t}function dE(t){var e=t.chart,n=t.options,r=n.yAxis;return jw(jx({},t,{chart:Ax(e,$A),options:{yAxis:r[0]}})),jw(jx({},t,{chart:Ax(e,GA),options:{yAxis:r[1]}})),t}function gE(t){var e=t.chart,n=t.options,r=n.legend,i=n.geometryOptions,o=n.yField,a=n.data,s=Ax(e,$A),l=Ax(e,GA);if(!1===r)e.legend(!1);else if((0,E.Kn)(r)&&!0===r.custom)e.legend(r);else{var u=(0,E.U2)(i,[0,"legend"],r),c=(0,E.U2)(i,[1,"legend"],r);e.once("beforepaint",(function(){var t=a[0].length?tE({view:s,geometryOption:i[0],yField:o[0],legend:u}):[],n=a[1].length?tE({view:l,geometryOption:i[1],yField:o[1],legend:c}):[];e.legend(jx({},r,{custom:!0,items:t.concat(n)}))})),i[0].seriesField&&s.legend(i[0].seriesField,u),i[1].seriesField&&l.legend(i[1].seriesField,c),e.on("legend-item:click",(function(t){var n=(0,E.U2)(t,"gEvent.delegateObject",{});if(n&&n.item){var r=n.item,i=r.value,a=r.isGeometry,s=r.viewId;if(a){var l=(0,E.cx)(o,(function(t){return t===i}));if(l>-1){var u=(0,E.U2)(Ax(e,s),"geometries");(0,E.S6)(u,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var c=(0,E.U2)(e.getController("legend"),"option.items",[]);(0,E.S6)(e.views,(function(t){var n=t.getGroupScales();(0,E.S6)(n,(function(e){e.values&&e.values.indexOf(i)>-1&&t.filter(e.field,(function(t){var e=(0,E.sE)(c,(function(e){return e.value===t}));return!e.unchecked}))})),e.render(!0)}))}}}))}return t}function vE(t){var e=t.chart,n=t.options,r=n.slider,i=Ax(e,$A),o=Ax(e,GA);return r&&(i.option("slider",r),i.on("slider:valuechanged",(function(t){var e=t.event,n=e.value,r=e.originValue;(0,E.Xy)(n,r)||nE(o,n)})),e.once("afterpaint",(function(){if(!(0,E.jn)(r)){var t=r.start,e=r.end;(t||e)&&nE(o,[t,e])}}))),t}function mE(t){return px(rE,iE,fE,oE,sE,lE,dE,uE,cE,hE,pE,aE,gE,vE)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}(0,A.ZT)(e,t),e.prototype.getDefaultOptions=function(){return jx({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return mE}})(cw);var yE="x",bE="y",xE={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+(0,E.U2)(e,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},wE={appendPadding:2,tooltip:(0,A.pi)({},xE),animation:{}};function CE(t){return(0,E.UI)(t||[],(function(t,e){return{x:""+e,y:t}}))}function SE(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.areaStyle,a=n.point,s=n.line,l=null===a||void 0===a?void 0:a.state,u=CE(r);e.data(u);var c=jx({},t,{options:{xField:yE,yField:bE,area:{color:i,style:o},line:s,point:a}}),h=jx({},c,{options:{tooltip:!1}}),f=jx({},c,{options:{tooltip:!1,state:l}});return Gw(c),Ww(h),qw(f),e.axis(!1),e.legend(!1),t}function AE(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=r.data,s=CE(a);return px(Rw((e={},e[yE]=i,e[bE]=o,e),(n={},n[yE]={type:"cat"},n[bE]=Zx(s,bE),n)))(t)}function EE(t){return px(Fw("areaStyle"),SE,AE,Ow,_w,Bw,Nw())(t)}function kE(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.lineStyle,a=n.point,s=null===a||void 0===a?void 0:a.state,l=CE(r);e.data(l);var u=jx({},t,{options:{xField:yE,yField:bE,line:{color:i,style:o},point:a}}),c=jx({},u,{options:{tooltip:!1,state:s}});return Ww(u),qw(c),e.axis(!1),e.legend(!1),t}function DE(t){return px(kE,AE,_w,Ow,Bw,Nw())(t)}var FE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-line",e}return(0,A.ZT)(e,t),e.getDefaultOptions=function(){return wE},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,r=e.options;AE({chart:n,options:r}),n.changeData(CE(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return DE},e}(cw);function ME(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.columnStyle,a=n.columnWidthRatio,s=CE(r);e.data(s);var l=jx({},t,{options:{xField:yE,yField:bE,widthRatio:a,interval:{style:o,color:i}}});return Zw(l),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function OE(t){return px(_w,Fw("columnStyle"),ME,AE,Ow,Bw,Nw())(t)}var TE={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+(0,E.U2)(e,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},BE={appendPadding:2,tooltip:(0,A.pi)({},TE),animation:{}},_E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-column",e}return(0,A.ZT)(e,t),e.getDefaultOptions=function(){return BE},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,r=e.options;AE({chart:n,options:r}),n.changeData(CE(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return OE},e}(cw),IE={appendPadding:2,tooltip:(0,A.pi)({},xE),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},PE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-area",e}return(0,A.ZT)(e,t),e.getDefaultOptions=function(){return IE},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,r=e.options;AE({chart:n,options:r}),n.changeData(CE(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return EE},e}(cw);function LE(t,e,n){if(1===n)return[0,e];var r=Math.floor(t/e);return[e*r,e*(r+1)]}function RE(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function NE(t,e,n,r,i){var o=(0,E.d9)(t);(0,E.MR)(o,e);var a=(0,E.I)(o,e),s=(0,E.rx)(a),l=s.max-s.min,u=n;if(!n&&r&&(u=r>1?l/(r-1):s.max),!n&&!r){var c=RE(a);u=l/c}var h={},f=(0,E.vM)(o,i);(0,E.xb)(f)?(0,E.S6)(o,(function(t){var n=t[e],i=LE(n,u,r),o=i[0]+"-"+i[1];(0,E.wH)(h,o)||(h[o]={range:i,count:0}),h[o].count+=1})):Object.keys(f).forEach((function(t){(0,E.S6)(f[t],(function(n){var o=n[e],a=LE(o,u,r),s=a[0]+"-"+a[1],l=s+"-"+t;(0,E.wH)(h,l)||(h[l]={range:a,count:0},h[l][i]=t),h[l].count+=1}))}));var p=[];return(0,E.S6)(h,(function(t){p.push(t)})),p}var jE="range",zE="count",UE=jx({},cw.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function VE(t){var e=t.chart,n=t.options,r=n.data,i=n.binField,o=n.binNumber,a=n.binWidth,s=n.color,l=n.stackField,u=n.legend,c=n.columnStyle,h=NE(r,i,a,o,l);e.data(h);var f=jx({},t,{options:{xField:jE,yField:zE,seriesField:l,isStack:!0,interval:{color:s,style:c}}});return Zw(f),u&&l&&e.legend(l,u),t}function HE(t){var e,n=t.options,r=n.xAxis,i=n.yAxis;return px(Rw((e={},e[jE]=r,e[zE]=i,e)))(t)}function $E(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis;return!1===r?e.axis(jE,!1):e.axis(jE,r),!1===i?e.axis(zE,!1):e.axis(zE,i),t}function GE(t){var e=t.chart,n=t.options,r=n.label,i=xx(e,"interval");if(r){var o=r.callback,a=(0,A._T)(r,["callback"]);i.label({fields:[zE],callback:o,cfg:Dx(a)})}else i.label(!1);return t}function WE(t){return px(_w,Fw("columnStyle"),VE,HE,$E,Iw,GE,Ow,Tw,Bw)(t)}var qE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e}return(0,A.ZT)(e,t),e.getDefaultOptions=function(){return UE},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.binField,r=e.binNumber,i=e.binWidth,o=e.stackField;this.chart.changeData(NE(t,n,i,r,o))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return WE},e}(cw),XE=["#FAAD14","#E8EDF3"],ZE={percent:.2,color:XE,animation:{}};function YE(t){var e=(0,E.uZ)(qx(t)?t:0,0,1);return[{type:"current",percent:e},{type:"target",percent:1-e}]}function QE(t){var e=t.chart,n=t.options,r=n.percent,i=n.progressStyle,o=n.color,a=n.barWidthRatio;e.data(YE(r));var s=jx({},t,{options:{xField:"1",yField:"percent",seriesField:"type",isStack:!0,widthRatio:a,interval:{style:i,color:(0,E.HD)(o)?[o,XE[1]]:o},args:{zIndexReversed:!0,sortZIndex:!0}}});return Zw(s),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function KE(t){var e=t.chart;return e.coordinate("rect").transpose(),t}function JE(t){return px(QE,Rw({}),KE,Bw,_w,Nw())(t)}var tk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="process",e}return(0,A.ZT)(e,t),e.getDefaultOptions=function(){return ZE},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(YE(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return JE},e}(cw);function ek(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius;return e.coordinate("theta",{innerRadius:r,radius:i}),t}function nk(t,e){var n=t.chart,r=t.options,i=r.innerRadius,o=r.statistic,a=r.percent,s=r.meta;if(n.getController("annotation").clear(!0),i&&o){var l=(0,E.U2)(s,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},u=o.content;u&&(u=jx({},u,{content:(0,E.UM)(u.content)?l(a):u.content})),$x(n,{statistic:(0,A.pi)((0,A.pi)({},o),{content:u}),plotType:"ring-progress"},{percent:a})}return e&&n.render(!0),t}function rk(t){return px(QE,Rw({}),ek,nk,Bw,_w,Nw())(t)}var ik={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},ok=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ring-process",e}return(0,A.ZT)(e,t),e.getDefaultOptions=function(){return ik},e.prototype.changeData=function(t){this.chart.emit(k.BEFORE_CHANGE_DATA,Bu.fromData(this.chart,k.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(YE(t)),nk({chart:this.chart,options:this.options},!0),this.chart.emit(k.AFTER_CHANGE_DATA,Bu.fromData(this.chart,k.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return rk},e}(cw);function ak(t){var e=t.chart,n=t.options,r=n.data,i=n.type,o=n.xField,a=n.yField,s=n.colorField,l=n.sizeField,u=n.sizeRatio,c=n.shape,h=n.color,f=n.tooltip,p=n.heatmapStyle;e.data(r);var d="polygon";"density"===i&&(d="heatmap");var g=Uw(f,[o,a,s]),v=g.fields,m=g.formatter,y=1;return(u||0===u)&&(c||l?u<0||u>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):y=u:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),$w(jx({},t,{options:{type:d,colorField:s,tooltipFields:v,shapeField:l||"",label:void 0,mapping:{tooltip:m,shape:c&&(l?function(t){var e=r.map((function(t){return t[l]})),n=Math.min.apply(Math,e),i=Math.max.apply(Math,e);return[c,((0,E.U2)(t,l)-n)/(i-n),y]}:function(){return[c,1,y]}),color:h||s&&e.getTheme().sequenceColors.join("-"),style:p}}})),t}function sk(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return px(Rw((e={},e[o]=r,e[a]=i,e)))(t)}function lk(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function uk(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.sizeField,a=n.sizeLegend,s=!1!==r;return i&&e.legend(i,!!s&&r),o&&e.legend(o,void 0===a?r:a),s||a||e.legend(!1),t}function ck(t){var e=t.chart,n=t.options,r=n.label,i=n.colorField,o=n.type,a=xx(e,"density"===o?"heatmap":"polygon");if(r){if(i){var s=r.callback,l=(0,A._T)(r,["callback"]);a.label({fields:[i],callback:s,cfg:Dx(l)})}}else a.label(!1);return t}function hk(t){var e=t.chart,n=t.options,r=n.coordinate,i=n.reflect;return r&&e.coordinate({type:r.type||"rect",cfg:r.cfg}),i&&e.coordinate().reflect(i),t}function fk(t){return px(_w,Fw("heatmapStyle"),sk,hk,ak,lk,uk,Ow,ck,Nw(),Tw,Bw,Iw)(t)}var pk=jx({},cw.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});vc("polygon","circle",{draw:function(t,e){var n,r,i=t.x,o=t.y,a=this.parsePoints(t.points),s=Math.abs(a[2].x-a[1].x),l=Math.abs(a[1].y-a[0].y),u=Math.min(s,l)/2,c=Number(t.shape[1]),h=Number(t.shape[2]),f=Math.sqrt(h),p=u*f*Math.sqrt(c),d=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(r=t.defaultStyle)||void 0===r?void 0:r.fill),g=e.addShape("circle",{attrs:(0,A.pi)((0,A.pi)((0,A.pi)({x:i,y:o,r:p},t.defaultStyle),t.style),{fill:d})});return g}}),vc("polygon","square",{draw:function(t,e){var n,r,i=t.x,o=t.y,a=this.parsePoints(t.points),s=Math.abs(a[2].x-a[1].x),l=Math.abs(a[1].y-a[0].y),u=Math.min(s,l),c=Number(t.shape[1]),h=Number(t.shape[2]),f=Math.sqrt(h),p=u*f*Math.sqrt(c),d=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(r=t.defaultStyle)||void 0===r?void 0:r.fill),g=e.addShape("rect",{attrs:(0,A.pi)((0,A.pi)((0,A.pi)({x:i-p/2,y:o-p/2,width:p,height:p},t.defaultStyle),t.style),{fill:d})});return g}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return pk},e.prototype.getSchemaAdaptor=function(){return fk},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(cw);var dk,gk="$$range$$",vk="low-q1-median-q3-high",mk="$$y_outliers$$",yk="outliers_view",bk=jx({},cw.getDefaultOptions(),{meta:(dk={},dk[gk]={min:0,alias:vk},dk),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}}),xk=function(t,e){var n=t;if(Array.isArray(e)){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4];n=(0,E.UI)(t,(function(t){return t[gk]=[t[r],t[i],t[o],t[a],t[s]],t}))}return n};function wk(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.groupField,a=n.color,s=n.tooltip,l=n.boxStyle;e.data(xk(n.data,i));var u=(0,E.kJ)(i)?gk:i,c=i?(0,E.kJ)(i)?i:[i]:[],h=s;!1!==h&&(h=jx({},{fields:(0,E.kJ)(i)?i:[]},h));var f=Kw(jx({},t,{options:{xField:r,yField:u,seriesField:o,tooltip:h,rawFields:c,label:!1,schema:{shape:"box",color:a,style:l}}})).ext;return o&&f.geometry.adjust("dodge"),t}function Ck(t){var e=t.chart,n=t.options,r=n.xField,i=n.data,o=n.outliersField,a=n.outliersStyle,s=n.padding,l=n.label;if(!o)return t;var u=e.createView({padding:s,id:yk}),c=i.reduce((function(t,e){var n=e[o];return n.forEach((function(n){var r;return t.push((0,A.pi)((0,A.pi)({},e),(r={},r[o]=n,r)))})),t}),[]);return u.data(c),qw({chart:u,options:{xField:r,yField:o,point:{shape:"circle",style:a},label:l}}),u.axis(!1),t}function Sk(t){var e,n,r=t.chart,i=t.options,o=i.meta,a=i.xAxis,s=i.yAxis,l=i.xField,u=i.yField,c=i.outliersField,h=Array.isArray(u)?gk:u,f={};if(c){var p=mk;e={},e[c]={sync:p,nice:!0},e[h]={sync:p,nice:!0},f=e}var d=jx(f,o,(n={},n[l]=dx(a,hw),n[h]=dx(s,hw),n));return r.scale(d),t}function Ak(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,s=Array.isArray(a)?gk:a;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(gk,!1):e.axis(s,i),t}function Ek(t){var e=t.chart,n=t.options,r=n.legend,i=n.groupField;return i?r?e.legend(i,r):e.legend(i,{position:"bottom"}):e.legend(!1),t}function kk(t){return px(wk,Ck,Sk,Ak,Ek,Ow,Tw,Bw,_w)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return bk},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField,n=this.chart.views.find((function(t){return t.id===yk}));n&&n.data(t),this.chart.changeData(xk(t,e))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return kk}})(cw);var Dk=n(53843),Fk=n.n(Dk);function Mk(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||e>1)throw new Error("quantiles must be between 0 and 1");return 1===e?t[t.length-1]:0===e?t[0]:n%1!==0?t[Math.ceil(n)-1]:t.length%2===0?(t[n-1]+t[n])/2:t[n]}function Ok(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function Tk(t,e,n,r){n=n||0,r=r||t.length-1;while(r>n){if(r-n>600){var i=r-n+1,o=e-n+1,a=Math.log(i),s=.5*Math.exp(2*a/3),l=.5*Math.sqrt(a*s*(i-s)/i);o-i/2<0&&(l*=-1);var u=Math.max(n,Math.floor(e-o*s/i+l)),c=Math.min(r,Math.floor(e+(i-o)*s/i+l));Tk(t,e,u,c)}var h=t[e],f=n,p=r;Ok(t,n,e),t[r]>h&&Ok(t,n,r);while(f<p){Ok(t,f,p),f++,p--;while(t[f]<h)f++;while(t[p]>h)p--}t[n]===h?Ok(t,n,p):(p++,Ok(t,p,r)),p<=e&&(n=p+1),e<=p&&(r=p-1)}}function Bk(t,e){var n=t.slice();if(Array.isArray(e)){Ik(n,e);for(var r=[],i=0;i<e.length;i++)r[i]=Mk(n,e[i]);return r}var o=Lk(n.length,e);return _k(n,o,0,n.length-1),Mk(n,e)}function _k(t,e,n,r){e%1===0?Tk(t,e,n,r):(e=Math.floor(e),Tk(t,e,n,r),Tk(t,e+1,e+1,r))}function Ik(t,e){for(var n=[0],r=0;r<e.length;r++)n.push(Lk(t.length,e[r]));n.push(t.length-1),n.sort(Pk);var i=[0,n.length-1];while(i.length){var o=Math.ceil(i.pop()),a=Math.floor(i.pop());if(!(o-a<=1)){var s=Math.floor((a+o)/2);_k(t,n[s],Math.floor(n[a]),Math.ceil(n[o])),i.push(a,s,s,o)}}}function Pk(t,e){return t-e}function Lk(t,e){var n=t*e;return 1===e?t-1:0===e?0:n%1!==0?Math.ceil(n)-1:t%2===0?n-.5:n}var Rk=function(t){return{low:(0,E.VV)(t),high:(0,E.Fp)(t),q1:Bk(t,.25),q3:Bk(t,.75),median:Bk(t,[.5]),minMax:[(0,E.VV)(t),(0,E.Fp)(t)],quantile:[Bk(t,.25),Bk(t,.75)]}},Nk=function(t,e){var n=Fk().create(t,e);return{violinSize:n.map((function(t){return t.y})),violinY:n.map((function(t){return t.x}))}},jk=function(t){var e=t.xField,n=t.yField,r=t.seriesField,i=t.data,o=t.kde,a={min:o.min,max:o.max,size:o.sampleSize,width:o.width};if(!r){var s=(0,E.vM)(i,e);return Object.keys(s).map((function(t){var e=s[t],r=e.map((function(t){return t[n]}));return(0,A.pi)((0,A.pi)({x:t},Nk(r,a)),Rk(r))}))}var l=[],u=(0,E.vM)(i,r);return Object.keys(u).forEach((function(t){var i=(0,E.vM)(u[t],e);return Object.keys(i).forEach((function(e){var o,s=i[e],u=s.map((function(t){return t[n]}));l.push((0,A.pi)((0,A.pi)((o={x:e},o[r]=t,o),Nk(u,a)),Rk(u)))}))})),l},zk="x",Uk="violinY",Vk="violinSize",Hk="minMax",$k="quantile",Gk="median",Wk="violin_view",qk="min_max_view",Xk="quantile_view",Zk="median_view",Yk=jx({},cw.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}}),Qk=["low","high","q1","q3","median"],Kk=[{type:"dodge",marginRatio:1/32}];function Jk(t){var e=t.chart,n=t.options;return e.data(jk(n)),t}function tD(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.color,o=n.shape,a=void 0===o?"violin":o,s=n.violinStyle,l=n.tooltip,u=n.state,c=e.createView({id:Wk});return Jw({chart:c,options:{xField:zk,yField:Uk,seriesField:r||zk,sizeField:Vk,tooltip:(0,A.pi)({fields:Qk},l),violin:{style:s,color:i,shape:a},state:u}}),c.geometries[0].adjust(Kk),t}function eD(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.color,o=n.tooltip,a=n.box;if(!1===a)return t;var s=e.createView({id:qk});Zw({chart:s,options:{xField:zk,yField:Hk,seriesField:r||zk,tooltip:(0,A.pi)({fields:Qk},o),state:"object"===typeof a?a.state:{},interval:{color:i,size:1,style:{lineWidth:0}}}}),s.geometries[0].adjust(Kk);var l=e.createView({id:Xk});Zw({chart:l,options:{xField:zk,yField:$k,seriesField:r||zk,tooltip:(0,A.pi)({fields:Qk},o),state:"object"===typeof a?a.state:{},interval:{color:i,size:8,style:{fillOpacity:1}}}}),l.geometries[0].adjust(Kk);var u=e.createView({id:Zk});return qw({chart:u,options:{xField:zk,yField:Gk,seriesField:r||zk,tooltip:(0,A.pi)({fields:Qk},o),state:"object"===typeof a?a.state:{},point:{color:i,size:1,style:{fill:"white",lineWidth:0}}}}),u.geometries[0].adjust(Kk),l.axis(!1),s.axis(!1),u.axis(!1),u.legend(!1),s.legend(!1),l.legend(!1),t}function nD(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.xAxis,a=r.yAxis,s={},l=jx(s,i,(e={},e[zk]=(0,A.pi)((0,A.pi)({sync:!0},dx(o,hw)),{type:"cat"}),e[Uk]=(0,A.pi)({sync:!0},dx(a,hw)),e[Hk]=(0,A.pi)({sync:Uk},dx(a,hw)),e[$k]=(0,A.pi)({sync:Uk},dx(a,hw)),e[Gk]=(0,A.pi)({sync:Uk},dx(a,hw)),e));return n.scale(l),t}function rD(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=Ax(e,Wk);return!1===r?o.axis(zk,!1):o.axis(zk,r),!1===i?o.axis(Uk,!1):o.axis(Uk,i),e.axis(!1),t}function iD(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField,o=n.shape;if(!1===r)e.legend(!1);else{var a=i||zk,s=(0,E.CE)(r,["selected"]);o&&o.startsWith("hollow")||(0,E.U2)(s,["marker","style","lineWidth"])||(0,E.t8)(s,["marker","style","lineWidth"],0),e.legend(a,s),(0,E.U2)(r,"selected")&&(0,E.S6)(e.views,(function(t){return t.legend(a,r)}))}return t}function oD(t){var e=t.chart,n=Ax(e,Wk);return Nw()((0,A.pi)((0,A.pi)({},t),{chart:n})),t}function aD(t){var e=t.chart,n=t.options,r=n.animation;return(0,E.S6)(e.views,(function(t){"boolean"===typeof r?t.animate(r):t.animate(!0),(0,E.S6)(t.geometries,(function(t){t.animate(r)}))})),t}function sD(t){return px(_w,Jk,tD,eD,nD,Ow,rD,iD,Tw,oD,aD)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return Yk},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(jk(this.options))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return sD}})(cw);var lD=function(t){return function(e,n){var r=[];return r[0]=t(e[0],n[0]),r[1]=t(e[1],n[1]),r[2]=t(e[2],n[2]),r}},uD={normal:function(t){return t},multiply:function(t,e){return t*e/255},screen:function(t,e){return 255*(1-(1-t/255)*(1-e/255))},overlay:function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))},darken:function(t,e){return t>e?e:t},lighten:function(t,e){return t>e?t:e},dodge:function(t,e){return 255===t?255:(t=e/255*255/(1-t/255),t>255?255:t)},burn:function(t,e){return 255===e?255:0===t?0:255*(1-Math.min(1,(1-e/255)/(t/255)))}},cD=function(t){if(!uD[t])throw new Error("unknown blend mode "+t);return uD[t]};function hD(t,e,n){void 0===n&&(n="normal");var r=lD(cD(n))(fD(t),fD(e)),i=fD(t),o=i[0],a=i[1],s=i[2],l=i[3],u=fD(e),c=u[0],h=u[1],f=u[2],p=u[3],d=Number((l+p*(1-l)).toFixed(2)),g=Math.round((l*(1-p)*(o/255)+l*p*(r[0]/255)+(1-l)*p*(c/255))/d*255),v=Math.round((l*(1-p)*(a/255)+l*p*(r[1]/255)+(1-l)*p*(h/255))/d*255),m=Math.round((l*(1-p)*(s/255)+l*p*(r[2]/255)+(1-l)*p*(f/255))/d*255);return"rgba("+g+", "+v+", "+m+", "+d+")"}function fD(t){var e,n=t.replace("/s+/g","");return"string"!==typeof n||n.startsWith("rgba")||n.startsWith("#")?(n.startsWith("rgba")&&(e=n.replace("rgba(","").replace(")","").split(",")),n.startsWith("#")&&(e=Vt.rgb2arr(n).concat([1])),e.map((function(t,e){return 3===e?Number(t):0|t}))):Vt.rgb2arr(Vt.toRGB(n)).concat([1])}var pD=n(69916),dD=1e-10;function gD(t,e){var n,r=mD(t),i=r.filter((function(e){return vD(e,t)})),o=0,a=0,s=[];if(i.length>1){var l=CD(i);for(n=0;n<i.length;++n){var u=i[n];u.angle=Math.atan2(u.x-l.x,u.y-l.y)}i.sort((function(t,e){return e.angle-t.angle}));var c=i[i.length-1];for(n=0;n<i.length;++n){var h=i[n];a+=(c.x+h.x)*(h.y-c.y);for(var f={x:(h.x+c.x)/2,y:(h.y+c.y)/2},p=null,d=0;d<h.parentIndex.length;++d)if(c.parentIndex.indexOf(h.parentIndex[d])>-1){var g=t[h.parentIndex[d]],v=Math.atan2(h.x-g.x,h.y-g.y),m=Math.atan2(c.x-g.x,c.y-g.y),y=m-v;y<0&&(y+=2*Math.PI);var b=m-y/2,x=bD(f,{x:g.x+g.radius*Math.sin(b),y:g.y+g.radius*Math.cos(b)});x>2*g.radius&&(x=2*g.radius),(null===p||p.width>x)&&(p={circle:g,width:x,p1:h,p2:c})}null!==p&&(s.push(p),o+=yD(p.circle.radius,p.width),c=h)}}else{var w=t[0];for(n=1;n<t.length;++n)t[n].radius<w.radius&&(w=t[n]);var C=!1;for(n=0;n<t.length;++n)if(bD(t[n],w)>Math.abs(w.radius-t[n].radius)){C=!0;break}C?o=a=0:(o=w.radius*w.radius*Math.PI,s.push({circle:w,p1:{x:w.x,y:w.y+w.radius},p2:{x:w.x-dD,y:w.y+w.radius},width:2*w.radius}))}return a/=2,e&&(e.area=o+a,e.arcArea=o,e.polygonArea=a,e.arcs=s,e.innerPoints=i,e.intersectionPoints=r),o+a}function vD(t,e){for(var n=0;n<e.length;++n)if(bD(t,e[n])>e[n].radius+dD)return!1;return!0}function mD(t){for(var e=[],n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r)for(var i=wD(t[n],t[r]),o=0;o<i.length;++o){var a=i[o];a.parentIndex=[n,r],e.push(a)}return e}function yD(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function bD(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function xD(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=t-(n*n-e*e+t*t)/(2*n),i=e-(n*n-t*t+e*e)/(2*n);return yD(t,r)+yD(e,i)}function wD(t,e){var n=bD(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];var o=(r*r-i*i+n*n)/(2*n),a=Math.sqrt(r*r-o*o),s=t.x+o*(e.x-t.x)/n,l=t.y+o*(e.y-t.y)/n,u=-(e.y-t.y)*(a/n),c=-(e.x-t.x)*(a/n);return[{x:s+u,y:l-c},{x:s-u,y:l+c}]}function CD(t){for(var e={x:0,y:0},n=0;n<t.length;++n)e.x+=t[n].x,e.y+=t[n].y;return e.x/=t.length,e.y/=t.length,e}function SD(t,e){e=e||{},e.maxIterations=e.maxIterations||500;var n=e.initialLayout||MD,r=e.lossFunction||BD;t=kD(t);var i,o=n(t,e),a=[],s=[];for(i in o)o.hasOwnProperty(i)&&(a.push(o[i].x),a.push(o[i].y),s.push(i));for(var l=(0,pD.nelderMead)((function(e){for(var n={},i=0;i<s.length;++i){var a=s[i];n[a]={x:e[2*i],y:e[2*i+1],radius:o[a].radius}}return r(n,t)}),a,e),u=l.x,c=0;c<s.length;++c)i=s[c],o[i].x=u[2*c],o[i].y=u[2*c+1];return o}var AD=1e-10;function ED(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+AD?Math.abs(t-e):(0,pD.bisect)((function(r){return xD(t,e,r)-n}),0,t+e)}function kD(t){t=t.slice();var e,n,r,i,o=[],a={};for(e=0;e<t.length;++e){var s=t[e];1==s.sets.length?o.push(s.sets[0]):2==s.sets.length&&(r=s.sets[0],i=s.sets[1],a[[r,i]]=!0,a[[i,r]]=!0)}for(o.sort((function(t,e){return t>e?1:-1})),e=0;e<o.length;++e)for(r=o[e],n=e+1;n<o.length;++n)i=o[n],[r,i]in a||t.push({sets:[r,i],size:0});return t}function DD(t,e,n){var r=(0,pD.zerosM)(e.length,e.length),i=(0,pD.zerosM)(e.length,e.length);return t.filter((function(t){return 2==t.sets.length})).map((function(t){var o=n[t.sets[0]],a=n[t.sets[1]],s=Math.sqrt(e[o].size/Math.PI),l=Math.sqrt(e[a].size/Math.PI),u=ED(s,l,t.size);r[o][a]=r[a][o]=u;var c=0;t.size+1e-10>=Math.min(e[o].size,e[a].size)?c=1:t.size<=1e-10&&(c=-1),i[o][a]=i[a][o]=c})),{distances:r,constraints:i}}function FD(t,e,n,r){var i,o=0;for(i=0;i<e.length;++i)e[i]=0;for(i=0;i<n.length;++i)for(var a=t[2*i],s=t[2*i+1],l=i+1;l<n.length;++l){var u=t[2*l],c=t[2*l+1],h=n[i][l],f=r[i][l],p=(u-a)*(u-a)+(c-s)*(c-s),d=Math.sqrt(p),g=p-h*h;f>0&&d<=h||f<0&&d>=h||(o+=2*g*g,e[2*i]+=4*g*(a-u),e[2*i+1]+=4*g*(s-c),e[2*l]+=4*g*(u-a),e[2*l+1]+=4*g*(c-s))}return o}function MD(t,e){var n=TD(t,e),r=e.lossFunction||BD;if(t.length>=8){var i=OD(t,e),o=r(i,t),a=r(n,t);o+1e-8<a&&(n=i)}return n}function OD(t,e){e=e||{};var n,r=e.restarts||10,i=[],o={};for(n=0;n<t.length;++n){var a=t[n];1==a.sets.length&&(o[a.sets[0]]=i.length,i.push(a))}var s=DD(t,i,o),l=s.distances,u=s.constraints,c=(0,pD.norm2)(l.map(pD.norm2))/l.length;l=l.map((function(t){return t.map((function(t){return t/c}))}));var h,f,p=function(t,e){return FD(t,e,l,u)};for(n=0;n<r;++n){var d=(0,pD.zeros)(2*l.length).map(Math.random);f=(0,pD.conjugateGradient)(p,d,e),(!h||f.fx<h.fx)&&(h=f)}var g=h.x,v={};for(n=0;n<i.length;++n){var m=i[n];v[m.sets[0]]={x:g[2*n]*c,y:g[2*n+1]*c,radius:Math.sqrt(m.size/Math.PI)}}if(e.history)for(n=0;n<e.history.length;++n)(0,pD.scale)(e.history[n].x,c);return v}function TD(t,e){for(var n,r=e&&e.lossFunction?e.lossFunction:BD,i={},o={},a=0;a<t.length;++a){var s=t[a];1==s.sets.length&&(n=s.sets[0],i[n]={x:1e10,y:1e10,rowid:Object.keys(i).length,size:s.size,radius:Math.sqrt(s.size/Math.PI)},o[n]=[])}t=t.filter((function(t){return 2==t.sets.length}));for(a=0;a<t.length;++a){var l=t[a],u=l.hasOwnProperty("weight")?l.weight:1,c=l.sets[0],h=l.sets[1];l.size+AD>=Math.min(i[c].size,i[h].size)&&(u=0),o[c].push({set:h,size:l.size,weight:u}),o[h].push({set:c,size:l.size,weight:u})}var f=[];for(n in o)if(o.hasOwnProperty(n)){var p=0;for(a=0;a<o[n].length;++a)p+=o[n][a].size*o[n][a].weight;f.push({set:n,size:p})}function d(t,e){return e.size-t.size}f.sort(d);var g={};function v(t){return t.set in g}function m(t,e){i[e].x=t.x,i[e].y=t.y,g[e]=!0}m({x:0,y:0},f[0].set);for(a=1;a<f.length;++a){var y=f[a].set,b=o[y].filter(v);if(n=i[y],b.sort(d),0===b.length)throw"ERROR: missing pairwise overlap information";for(var x=[],w=0;w<b.length;++w){var C=i[b[w].set],S=ED(n.radius,C.radius,b[w].size);x.push({x:C.x+S,y:C.y}),x.push({x:C.x-S,y:C.y}),x.push({y:C.y+S,x:C.x}),x.push({y:C.y-S,x:C.x});for(var A=w+1;A<b.length;++A)for(var E=i[b[A].set],k=ED(n.radius,E.radius,b[A].size),D=wD({x:C.x,y:C.y,radius:S},{x:E.x,y:E.y,radius:k}),F=0;F<D.length;++F)x.push(D[F])}var M=1e50,O=x[0];for(w=0;w<x.length;++w){i[y].x=x[w].x,i[y].y=x[w].y;var T=r(i,t);T<M&&(M=T,O=x[w])}m(O,y)}return i}function BD(t,e){var n=0;function r(e){return e.map((function(e){return t[e]}))}for(var i=0;i<e.length;++i){var o=e[i],a=void 0;if(1!=o.sets.length){if(2==o.sets.length){var s=t[o.sets[0]],l=t[o.sets[1]];a=xD(s.radius,l.radius,bD(s,l))}else a=gD(r(o.sets));var u=o.hasOwnProperty("weight")?o.weight:1;n+=u*(a-o.size)*(a-o.size)}}return n}function _D(t){var e=function(e){var n=Math.max.apply(null,t.map((function(t){return t[e]+t.radius}))),r=Math.min.apply(null,t.map((function(t){return t[e]-t.radius})));return{max:n,min:r}};return{xRange:e("x"),yRange:e("y")}}function ID(t,e,n,r){var i=[],o=[];for(var a in t)t.hasOwnProperty(a)&&(o.push(a),i.push(t[a]));e-=2*r,n-=2*r;var s=_D(i),l=s.xRange,u=s.yRange;if(l.max==l.min||u.max==u.min)return console.log("not scaling solution: zero size detected"),t;for(var c=e/(l.max-l.min),h=n/(u.max-u.min),f=Math.min(h,c),p=(e-(l.max-l.min)*f)/2,d=(n-(u.max-u.min)*f)/2,g={},v=0;v<i.length;++v){var m=i[v];g[o[v]]={radius:f*m.radius,x:r+p+(m.x-l.min)*f,y:r+d+(m.y-u.min)*f}}return g}function PD(t,e,n){var r,i,o=e[0].radius-bD(e[0],t);for(r=1;r<e.length;++r)i=e[r].radius-bD(e[r],t),i<=o&&(o=i);for(r=0;r<n.length;++r)i=bD(n[r],t)-n[r].radius,i<=o&&(o=i);return o}function LD(t,e){var n,r=[];for(n=0;n<t.length;++n){var i=t[n];r.push({x:i.x,y:i.y}),r.push({x:i.x+i.radius/2,y:i.y}),r.push({x:i.x-i.radius/2,y:i.y}),r.push({x:i.x,y:i.y+i.radius/2}),r.push({x:i.x,y:i.y-i.radius/2})}var o=r[0],a=PD(r[0],t,e);for(n=1;n<r.length;++n){var s=PD(r[n],t,e);s>=a&&(o=r[n],a=s)}var l=(0,pD.nelderMead)((function(n){return-1*PD({x:n[0],y:n[1]},t,e)}),[o.x,o.y],{maxIterations:500,minErrorDelta:1e-10}).x,u={x:l[0],y:l[1]},c=!0;for(n=0;n<t.length;++n)if(bD(u,t[n])>t[n].radius){c=!1;break}for(n=0;n<e.length;++n)if(bD(u,e[n])<e[n].radius){c=!1;break}if(!c)if(1==t.length)u={x:t[0].x,y:t[0].y};else{var h={};gD(t,h),u=0===h.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==h.arcs.length?{x:h.arcs[0].circle.x,y:h.arcs[0].circle.y}:e.length?LD(t,[]):CD(h.arcs.map((function(t){return t.p1})))}return u}function RD(t){var e={},n=[];for(var r in t)n.push(r),e[r]=[];for(var i=0;i<n.length;i++)for(var o=t[n[i]],a=i+1;a<n.length;++a){var s=t[n[a]],l=bD(o,s);l+s.radius<=o.radius+1e-10?e[n[a]].push(n[i]):l+o.radius<=s.radius+1e-10&&e[n[i]].push(n[a])}return e}function ND(t,e){for(var n={},r=RD(t),i=0;i<e.length;++i){for(var o=e[i].sets,a={},s={},l=0;l<o.length;++l){a[o[l]]=!0;for(var u=r[o[l]],c=0;c<u.length;++c)s[u[c]]=!0}var h=[],f=[];for(var p in t)p in a?h.push(t[p]):p in s||f.push(t[p]);var d=LD(h,f);n[o]=d,d.disjoint&&e[i].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return n}function jD(t,e,n){var r=[],i=t-n,o=e;return r.push("M",i,o),r.push("A",n,n,0,1,0,i+2*n,o),r.push("A",n,n,0,1,0,i,o),r.join(" ")}function zD(t){var e={};gD(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var r=n[0].circle;return jD(r.x,r.y,r.radius)}for(var i=["\nM",n[0].p2.x,n[0].p2.y],o=0;o<n.length;++o){var a=n[o],s=a.circle.radius,l=a.width>s;i.push("\nA",s,s,0,l?1:0,1,a.p1.x,a.p1.y)}return i.join(" ")}var UD="id",VD="path",HD={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(t){return{name:t.id,value:t.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]},$D=(0,E.HP)((function(t,e,n,r){var i=new Map,o=t.length;return e.forEach((function(e,a){if(1===e[r].length)i.set(e[UD],t[(a+o)%o]);else{var s=e[r].map((function(t){return i.get(t)}));i.set(e[UD],s.slice(1).reduce((function(t,e){return hD(t,e,n)}),s[0]))}})),i}),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return JSON.stringify(t)}));function GD(t,e,n,r){void 0===r&&(r=0);var i=t.data,o=t.setsField,a=t.sizeField;if(0===i.length)return yx(ix.WARN,!1,"warn: %s","数据不能为空"),[];var s=i.map((function(t){var e;return(0,A.pi)((0,A.pi)({},t),(e={sets:t[o]||[],size:t[a]},e[VD]="",e[UD]="",e))}));s.sort((function(t,e){return t.sets.length-e.sets.length}));var l=SD(s),u=ID(l,e,n,r),c=ND(u,s);return s.forEach((function(t){var e=t.sets,n=e.join(",");t[UD]=n;var r=e.map((function(t){return u[t]})),i=zD(r);/[zZ]$/.test(i)||(i+=" Z"),t[VD]=i;var o=c[n]||{x:0,y:0};(0,E.f0)(t,o)})),s}function WD(t,e){for(var n=0;n<e.length;n++)if(!t.includes(e[n]))return!1;return!0}function qD(t){return jx({},t.defaultStyle,{fill:t.color},t.style)}vc("schema","venn",{draw:function(t,e){var n=t.data,r=(0,Sa.tr)(n[VD]),i=qD(t),o=e.addGroup({name:"venn-shape"});o.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},i),{path:r}),name:"venn-path"});var a=t.customInfo,s=a.offsetX,l=a.offsetY,u=uh.transform(null,[["t",s,l]]);return o.setMatrix(u),o},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{lineWidth:0,stroke:e,fill:e,r:4}}}});var XD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getLabelPoint=function(t,e,n){var r=t.data,i=r.x,o=r.y,a=t.customLabelInfo,s=a.offsetX,l=a.offsetY;return{content:t.content[n],x:i+s,y:o+l}},e}(Nc);function ZD(t){if(t){var e=t.geometries[0].elements;e.forEach((function(t){t.shape.toFront()}))}}uc("venn",XD);var YD=Xs("element-active"),QD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.syncElementsPos=function(){ZD(this.context.view)},e.prototype.active=function(){t.prototype.active.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(YD),KD=Xs("element-highlight"),JD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.syncElementsPos=function(){ZD(this.context.view)},e.prototype.highlight=function(){t.prototype.highlight.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.clear=function(){t.prototype.clear.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(KD),tF=Xs("element-selected"),eF=Xs("element-single-selected"),nF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.syncElementsPos=function(){ZD(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(tF),rF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.syncElementsPos=function(){ZD(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(eF);Zs("venn-element-active",QD),Zs("venn-element-highlight",JD),Zs("venn-element-selected",nF),Zs("venn-element-single-selected",rF),Wl("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),Wl("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),Wl("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),Wl("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),Wl("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),Wl("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});var iF=40;function oF(t,e,n){var r=t.chart,i=t.options,o=i.blendMode,a=i.setsField,s=r.getTheme(),l=s.colors10,u=s.colors20,c=n;(0,E.kJ)(c)||(c=e.filter((function(t){return 1===t[a].length})).length<=10?l:u);var h=$D(c,e,o,a);return function(t){return h.get(t)||c[0]}}function aF(t,e){var n=t.options,r=n.color;if("function"!==typeof r){var i="string"===typeof r?[r]:r,o=oF(t,e,i);return function(t){return o(t[UD])}}return r}function sF(t){var e=t.chart,n=t.options,r=n.legend,i=n.appendPadding,o=n.padding,a=Kx(i);return!1!==r&&(a=Jx(i,(0,E.U2)(r,"position"),iF)),e.appendPadding=tw([a,o]),t}function lF(t){var e=t.options,n=e["data"];n||(yx(ix.WARN,!1,"warn: %s","数据不能为空"),n=[]);var r=n.filter((function(t){return 1===t.sets.length})).map((function(t){return t.sets[0]})),i=n.filter((function(t){var e=t.sets;return WD(r,e)}));return(0,E.Xy)(i,n)||yx(ix.WARN,!1,"warn: %s","交集中不能出现不存在的集合, 请输入合法数据"),(0,E.b$)({},t,{options:{data:i}})}function uF(t){var e=t.chart,n=t.options,r=n.pointStyle,i=n.setsField,o=n.sizeField,a=Kx(e.appendPadding),s=a[0],l=a[1],u=a[2],c=a[3],h={offsetX:c,offsetY:s},f=e.viewBBox,p=f.width,d=f.height,g=GD(n,Math.max(p-(l+c),0),Math.max(d-(s+u),0),0);e.data(g);var v=Kw(jx({},t,{options:{xField:"x",yField:"y",sizeField:o,seriesField:UD,rawFields:[i,o],schema:{shape:"venn",style:r}}})).ext,m=v.geometry;m.customInfo(h);var y=aF(t,g);return"function"===typeof y&&m.color(UD,(function(e){var n=g.find((function(t){return t[UD]===e})),r=oF(t,g)(e);return y(n,r)})),t}function cF(t){var e=t.chart,n=t.options,r=n.label,i=Kx(e.appendPadding),o=i[0],a=i[3],s={offsetX:a,offsetY:o},l=xx(e,"schema");if(r){var u=r.callback,c=(0,A._T)(r,["callback"]);l.label({fields:["id"],callback:u,cfg:(0,E.b$)({},Dx(c),{type:"venn",customLabelInfo:s})})}else l.label(!1);return t}function hF(t){var e=t.chart,n=t.options,r=n.legend,i=n.sizeField;return e.legend(UD,r),e.legend(i,!1),t}function fF(t){var e=t.chart;return e.axis(!1),t}function pF(t){var e=t.options,n=t.chart,r=e.interactions;if(r){var i={"legend-active":"venn-legend-active","legend-highlight":"venn-legend-highlight"};Tw(jx({},t,{options:{interactions:r.map((function(t){return(0,A.pi)((0,A.pi)({},t),{type:i[t.type]||t.type})}))}}))}return n.removeInteraction("legend-active"),n.removeInteraction("legend-highlight"),t}function dF(t){return px(sF,_w,lF,uF,cF,Rw({}),hF,fF,Ow,pF,Bw)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="venn",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return HD},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return dF},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}})(cw);var gF="$$stock-range$$",vF="trend",mF="up",yF="down",bF={showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0,text:function(t,e,n){var r;if("x"===t){var i=n[0];r=i?i.title:e}else r=e;return{position:"y"===t?"start":"end",content:r,style:{fill:"#dfdfdf"}}},textBackground:{padding:[2,4],style:{fill:"#666"}}}},xF=jx({},cw.getDefaultOptions(),{tooltip:bF,interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"});function wF(t,e){return(0,E.UI)(t,(function(t){if((0,E.kJ)(e)){var n=e[0],r=e[1],i=e[2],o=e[3];t[vF]=t[n]<=t[r]?mF:yF,t[gF]=[t[n],t[r],t[i],t[o]]}return t}))}function CF(t){var e=t.chart,n=t.options,r=n.yField,i=n.data,o=n.risingFill,a=n.fallingFill,s=n.tooltip,l=n.stockStyle;e.data(wF(i,r));var u=s;return!1!==u&&(u=jx({},{fields:r},u)),Kw(jx({},t,{options:{schema:{shape:"candle",color:[o,a],style:l},yField:gF,seriesField:vF,rawFields:r,tooltip:u}})),t}function SF(t){var e,n,r=t.chart,i=t.options,o=i.meta,a=i.xAxis,s=i.yAxis,l=i.xField,u=(e={},e[l]={type:"timeCat",tickCount:6},e[vF]={values:[mF,yF]},e),c=jx(u,o,(n={},n[l]=dx(a,hw),n[gF]=dx(s,hw),n));return r.scale(c),t}function AF(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(gF,!1):e.axis(gF,i),t}function EF(t){var e=t.chart,n=t.options,r=n.tooltip;return!1!==r?e.tooltip(r):e.tooltip(!1),t}function kF(t){var e=t.chart,n=t.options,r=n.legend;return r?e.legend(vF,r):!1===r&&e.legend(!1),t}function DF(t){px(_w,CF,SF,AF,EF,kF,Tw,Bw,Nw(),Pw)(t)}var FF,MF=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stock",e}return(0,A.ZT)(e,t),e.getDefaultOptions=function(){return xF},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return DF},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField;this.chart.changeData(wF(t,e))},e}(cw),OF="$$percentage$$",TF="$$mappingValue$$",BF="$$conversion$$",_F="$$totalPercentage$$",IF="$$x$$",PF="$$y$$",LF={appendPadding:[0,80],minSize:0,maxSize:1,meta:(FF={},FF[TF]={min:0,max:1,nice:!1},FF),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}};function RF(t,e,n){var r=[],i=n.yField,o=n.maxSize,a=n.minSize,s=(0,E.U2)((0,E.UT)(e,i),[i]),l=(0,E.hj)(o)?o:1,u=(0,E.hj)(a)?a:0;return r=(0,E.UI)(t,(function(e,n){var r=(e[i]||0)/s;return e[OF]=r,e[TF]=(l-u)*r+u,e[BF]=[(0,E.U2)(t,[n-1,i]),e[i]],e})),r}function NF(t){return function(e){var n=e.chart,r=e.options,i=r.conversionTag,o=n.getOptions().data;if(i){var a=i.formatter;o.forEach((function(e,r){if(!(r<=0||Number.isNaN(e[TF]))){var s=t(e,r,o,{top:!0,text:{content:(0,E.mf)(a)?a(e,o):a,offsetX:i.offsetX,offsetY:i.offsetY,position:"end",autoRotate:!1,style:(0,A.pi)({textAlign:"start",textBaseline:"middle"},i.style)}});n.annotation().line(s)}}))}return e}}function jF(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,o=n.yField,a=n.maxSize,s=n.minSize,l=RF(i,i,{yField:o,maxSize:a,minSize:s});return e.data(l),t}function zF(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.color,a=n.tooltip,s=n.label,l=n.shape,u=void 0===l?"funnel":l,c=n.funnelStyle,h=n.state,f=Uw(a,[r,i]),p=f.fields,d=f.formatter;$w({chart:e,options:{type:"interval",xField:r,yField:TF,colorField:r,tooltipFields:(0,E.kJ)(p)&&p.concat([OF,BF]),mapping:{shape:u,tooltip:d,color:o,style:c},label:s,state:h}});var g=xx(t.chart,"interval");return g.adjust("symmetric"),t}function UF(t){var e=t.chart,n=t.options,r=n.isTransposed;return e.coordinate({type:"rect",actions:r?[]:[["transpose"],["scale",1,-1]]}),t}function VF(t){var e=t.options,n=e.maxSize,r=function(t,e,r,i){var o=n-(n-t[TF])/2;return(0,A.pi)((0,A.pi)({},i),{start:[e-.5,o],end:[e-.5,o+.05]})};return NF(r)(t),t}function HF(t){return px(jF,zF,UF,VF)(t)}function $F(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale((e={},e[a]={sync:!0},e)),t}function GF(t){var e=t.chart,n=t.options,r=n.data,i=n.xField,o=n.yField,a=n.color,s=n.compareField,l=n.isTransposed,u=n.tooltip,c=n.maxSize,h=n.minSize,f=n.label,p=n.funnelStyle,d=n.state,g=n.showFacetTitle;return e.facet("mirror",{fields:[s],transpose:!l,padding:l?0:[32,0,0,0],showTitle:g,eachView:function(t,e){var n=l?e.rowIndex:e.columnIndex;l||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var g=RF(e.data,r,{yField:o,maxSize:c,minSize:h});t.data(g);var v=Uw(u,[i,o,s]),m=v.fields,y=v.formatter,b=l?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};$w({chart:t,options:{type:"interval",xField:i,yField:TF,colorField:i,tooltipFields:(0,E.kJ)(m)&&m.concat([OF,BF]),mapping:{shape:"funnel",tooltip:y,color:a,style:p},label:!1!==f&&jx({},b,f),state:d}})}}),t}function WF(t){var e=t.chart,n=t.options,r=n.conversionTag,i=n.isTransposed;return e.once("beforepaint",(function(){e.views.forEach((function(t,e){var o=function(t,n,o,a){var s=0===e?-1:1;return jx({},a,{start:[n-.5,t[TF]],end:[n-.5,t[TF]+.05],text:i?{style:{textAlign:"start"}}:{offsetX:!1!==r?s*r.offsetX:0,style:{textAlign:0===e?"end":"start"}}})};NF(o)(jx({},{chart:t,options:n}))}))})),t}function qF(t){return px($F,GF,WF)(t)}function XF(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale((e={},e[a]={sync:!0},e)),t}function ZF(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.isTransposed,o=n.showFacetTitle;return e.facet("rect",{fields:[r],padding:[i?0:32,10,0,10],showTitle:o,eachView:function(e,n){HF(jx({},t,{chart:e,options:{data:n.data}}))}}),t}function YF(t){return px(XF,ZF)(t)}function QF(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,o=n.yField,a=(0,E.u4)(i,(function(t,e){return t+(e[o]||0)}),0),s=(0,E.UT)(i,o)[o],l=(0,E.UI)(i,(function(t,e){var n=[],r=[];if(t[_F]=(t[o]||0)/a,e){var l=i[e-1][IF],u=i[e-1][PF];n[0]=l[3],r[0]=u[3],n[1]=l[2],r[1]=u[2]}else n[0]=-.5,r[0]=1,n[1]=.5,r[1]=1;return r[2]=r[1]-t[_F],n[2]=(r[2]+1)/4,r[3]=r[2],n[3]=-n[2],t[IF]=n,t[PF]=r,t[OF]=(t[o]||0)/s,t[BF]=[(0,E.U2)(i,[e-1,o]),t[o]],t}));return e.data(l),t}function KF(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.color,a=n.tooltip,s=n.label,l=n.funnelStyle,u=n.state,c=Uw(a,[r,i]),h=c.fields,f=c.formatter;return $w({chart:e,options:{type:"polygon",xField:IF,yField:PF,colorField:r,tooltipFields:(0,E.kJ)(h)&&h.concat([OF,BF]),label:s,state:u,mapping:{tooltip:f,color:o,style:l}}}),t}function JF(t){var e=t.chart,n=t.options,r=n.isTransposed;return e.coordinate({type:"rect",actions:r?[["transpose"],["reflect","x"]]:[]}),t}function tM(t){var e=function(t,e,n,r){return(0,A.pi)((0,A.pi)({},r),{start:[t[IF][1],t[PF][1]],end:[t[IF][1]+.05,t[PF][1]]})};return NF(e)(t),t}function eM(t){return px(QF,KF,JF,tM)(t)}function nM(t){var e,n=t.options,r=n.compareField,i=n.xField,o=n.yField,a=n.locale,s=n.funnelStyle,l=n.data,u=iw(a),c={label:r?{fields:[i,o,r,OF,BF],formatter:function(t){return""+t[o]}}:{fields:[i,o,OF,BF],offset:0,position:"middle",formatter:function(t){return t[i]+" "+t[o]}},tooltip:{title:i,formatter:function(t){return{name:t[i],value:t[o]}}},conversionTag:{formatter:function(t){return u.get(["conversionTag","label"])+": "+xC.apply(void 0,t[BF])}}};return(r||s)&&(e=function(t){return jx({},r&&{lineWidth:1,stroke:"#fff"},(0,E.mf)(s)?s(t):s)}),jx({options:c},t,{options:{funnelStyle:e,data:(0,E.d9)(l)}})}function rM(t){var e=t.options,n=e.compareField,r=e.dynamicHeight,i=e.seriesField;return i?YF(t):n?qF(t):r?eM(t):HF(t)}function iM(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return px(Rw((e={},e[o]=r,e[a]=i,e)))(t)}function oM(t){var e=t.chart;return e.axis(!1),t}function aM(t){var e=t.chart,n=t.options,r=n.legend;return!1===r?e.legend(!1):e.legend(r),t}function sM(t){return px(nM,rM,iM,oM,Ow,Tw,aM,Bw,_w,Nw())(t)}var lM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="funnel",e}return(0,A.ZT)(e,t),e.getDefaultOptions=function(){return LF},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return sM},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=Cx(this.chart);(0,E.S6)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=Cx(this.chart),e=[];return(0,E.S6)(t,(function(t){var n=t.getData(),r=t.getStates();(0,E.S6)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.CONVERSATION_FIELD=BF,e.PERCENT_FIELD=OF,e.TOTAL_PERCENT_FIELD=_F,e}(cw),uM="liquid";function cM(t){return[{percent:t,type:uM}]}function hM(t){var e=t.chart,n=t.options,r=n.percent,i=n.liquidStyle,o=n.radius,a=n.outline,s=n.wave,l=n.shape,u=n.animation;e.scale({percent:{min:0,max:1}}),e.data(cM(r));var c=n.color||e.getTheme().defaultColor,h=jx({},t,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:c,style:i,shape:"liquid-fill-gauge"}}}),f=Zw(h).ext,p=f.geometry,d=e.getTheme().background,g={radius:o,outline:a,wave:s,shape:l,background:d,animation:u};return p.customInfo(g),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function fM(t,e){var n=t.chart,r=t.options,i=r.statistic,o=r.percent,a=r.meta;n.getController("annotation").clear(!0);var s=(0,E.U2)(a,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},l=i.content;return l&&(l=jx({},l,{content:(0,E.UM)(l.content)?s(o):l.content})),$x(n,{statistic:(0,A.pi)((0,A.pi)({},i),{content:l}),plotType:"liquid"},{percent:o}),e&&n.render(!0),t}function pM(t){return px(_w,Fw("liquidStyle"),hM,fM,Rw({}),Bw,Tw)(t)}var dM={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},gM=5e3;function vM(t,e,n){return t+(e-t)*n}function mM(t){var e=(0,A.pi)({opacity:1},t.style);return t.color&&!e.fill&&(e.fill=t.color),e}function yM(t){var e={fill:"#fff",fillOpacity:0,lineWidth:4},n=(0,E.CD)({},e,t.style);return t.color&&!n.stroke&&(n.stroke=t.color),(0,E.hj)(t.opacity)&&(n.opacity=n.strokeOpacity=t.opacity),n}function bM(t,e,n,r){return 0===e?[[t+.5*n/Math.PI/2,r/2],[t+.5*n/Math.PI,r],[t+n/4,r]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),r],[t+.5*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-r/2],[t+.5*n/Math.PI,-r],[t+n/4,-r]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-r],[t+.5*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function xM(t,e,n,r,i,o,a){var s=4*Math.ceil(2*t/n*4),l=[],u=r;while(u<2*-Math.PI)u+=2*Math.PI;while(u>0)u-=2*Math.PI;u=u/Math.PI/2*n;var c=o-t+u-2*t;l.push(["M",c,e]);for(var h=0,f=0;f<s;++f){var p=f%4,d=bM(f*n/4,p,n,i);l.push(["C",d[0][0]+c,-d[0][1]+e,d[1][0]+c,-d[1][1]+e,d[2][0]+c,-d[2][1]+e]),f===s-1&&(h=d[2][0])}return l.push(["L",h+c,a+t]),l.push(["L",c,a+t]),l.push(["Z"]),l}function wM(t,e,n,r,i,o,a,s,l,u){for(var c=i.fill,h=i.opacity,f=a.getBBox(),p=f.maxX-f.minX,d=f.maxY-f.minY,g=0;g<r;g++){var v=r<=1?0:g/(r-1),m=o.addShape("path",{name:"waterwave-path",attrs:{path:xM(s,f.minY+d*n,l,0,p/32,t,e),fill:c,opacity:vM(.2,.9,v)*h}});try{if(!1===u)return;var y=sS([["t",l,0]]);m.stopAnimate(),m.animate({matrix:y},{duration:vM(.5*gM,gM,v),repeat:!0})}catch(b){console.warn("off-screen group animate error!")}}}function CM(t,e,n,r){var i=2*n/3,o=Math.max(i,r),a=i/2,s=t,l=a+e-o/2,u=Math.asin(a/(.85*(o-a))),c=Math.sin(u)*a,h=Math.cos(u)*a,f=s-h,p=l+c,d=t,g=l+a/Math.sin(u);return"\n M "+f+" "+p+"\n A "+a+" "+a+" 0 1 1 "+(f+2*h)+" "+p+"\n Q "+d+" "+g+" "+t+" "+(e+o/2)+"\n Q "+d+" "+g+" "+f+" "+p+"\n Z \n "}function SM(t,e,n,r){var i=n/2,o=r/2;return"\n M "+t+" "+(e-o)+" \n a "+i+" "+o+" 0 1 0 0 "+2*o+"\n a "+i+" "+o+" 0 1 0 0 "+2*-o+"\n Z\n "}function AM(t,e,n,r){var i=r/2,o=n/2;return"\n M "+t+" "+(e-i)+"\n L "+(t+o)+" "+e+"\n L "+t+" "+(e+i)+"\n L "+(t-o)+" "+e+"\n Z\n "}function EM(t,e,n,r){var i=r/2,o=n/2;return"\n M "+t+" "+(e-i)+"\n L "+(t+o)+" "+(e+i)+"\n L "+(t-o)+" "+(e+i)+"\n Z\n "}function kM(t,e,n,r){var i=.618,o=r/2,a=n/2*i;return"\n M "+(t-a)+" "+(e-o)+"\n L "+(t+a)+" "+(e-o)+"\n L "+(t+a)+" "+(e+o)+"\n L "+(t-a)+" "+(e+o)+"\n Z\n "}var DM={pin:CM,circle:SM,diamond:AM,triangle:EM,rect:kM};vc("interval","liquid-fill-gauge",{draw:function(t,e){var n=.5,r=.5,i=t.customInfo,o=i,a=o.radius,s=o.shape,l=o.background,u=o.animation,c=i.outline,h=i.wave,f=c.border,p=c.distance,d=h.count,g=h.length,v=(0,E.u4)(t.points,(function(t,e){return Math.min(t,e.x)}),1/0),m=this.parsePoint({x:n,y:r}),y=this.parsePoint({x:v,y:r}),b=m.x-y.x,x=Math.min(b,y.y*a),w=mM(t),C=yM((0,E.CD)({},t,c)),S=x-f/2,A="function"===typeof s?s:DM[s]||DM["circle"],k=A(m.x,m.y,2*S,2*S),D=e.addGroup({name:"waves"}),F=D.setClip({type:"path",attrs:{path:k}});return wM(m.x,m.y,1-t.points[1].y,d,w,D,F,2*x,g,u),e.addShape("path",{name:"distance",attrs:{path:k,fill:"transparent",lineWidth:f+2*p,stroke:"transparent"===l?"#fff":l}}),e.addShape("path",{name:"wrap",attrs:(0,E.CD)(C,{path:k,fill:"transparent",lineWidth:f})}),e}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="liquid",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return dM},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.chart.emit(k.BEFORE_CHANGE_DATA,Bu.fromData(this.chart,k.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(cM(t)),fM({chart:this.chart,options:this.options},!0),this.chart.emit(k.AFTER_CHANGE_DATA,Bu.fromData(this.chart,k.AFTER_CHANGE_DATA,null))},e.prototype.getSchemaAdaptor=function(){return pM}})(cw);function FM(t,e,n){return t.length>1?e+"_"+n:""+e}function MM(t){var e=t.data,n=t.xField,r=t.measureField,i=t.rangeField,o=t.targetField,a=t.layout,s=[],l=[];e.forEach((function(t,e){var a=[t[i]].flat();a.sort((function(t,e){return t-e})),a.forEach((function(r,o){var l,u=0===o?r:a[o]-a[o-1];s.push((l={rKey:i+"_"+o},l[n]=n?t[n]:String(e),l[i]=u,l))}));var u=[t[r]].flat();u.forEach((function(i,o){var a;s.push((a={mKey:FM(u,r,o)},a[n]=n?t[n]:String(e),a[r]=i,a))}));var c=[t[o]].flat();c.forEach((function(r,i){var a;s.push((a={tKey:FM(c,o,i)},a[n]=n?t[n]:String(e),a[o]=r,a))})),l.push(t[i],t[r],t[o])}));var u=Math.min.apply(Math,l.flat(1/0)),c=Math.max.apply(Math,l.flat(1/0));return u=u>0?0:u,"vertical"===a&&s.reverse(),{min:u,max:c,ds:s}}function OM(t){var e=t.chart,n=t.options,r=n.bulletStyle,i=n.targetField,o=n.rangeField,a=n.measureField,s=n.xField,l=n.color,u=n.layout,c=n.size,h=n.label,f=MM(n),p=f.min,d=f.max,g=f.ds;e.data(g);var v=jx({},t,{options:{xField:s,yField:o,seriesField:"rKey",isStack:!0,label:(0,E.U2)(h,"range"),interval:{color:(0,E.U2)(l,"range"),style:(0,E.U2)(r,"range"),size:(0,E.U2)(c,"range")}}});Zw(v),e.geometries[0].tooltip(!1);var m=jx({},t,{options:{xField:s,yField:a,seriesField:"mKey",isStack:!0,label:(0,E.U2)(h,"measure"),interval:{color:(0,E.U2)(l,"measure"),style:(0,E.U2)(r,"measure"),size:(0,E.U2)(c,"measure")}}});Zw(m);var y=jx({},t,{options:{xField:s,yField:i,seriesField:"tKey",label:(0,E.U2)(h,"target"),point:{color:(0,E.U2)(l,"target"),style:(0,E.U2)(r,"target"),size:(0,E.mf)((0,E.U2)(c,"target"))?function(t){return(0,E.U2)(c,"target")(t)/2}:(0,E.U2)(c,"target")/2,shape:"horizontal"===u?"line":"hyphen"}}});return qw(y),"horizontal"===u&&e.coordinate().transpose(),(0,A.pi)((0,A.pi)({},t),{ext:{data:{min:p,max:d}}})}function TM(t){var e,n,r=t.options,i=t.ext,o=r.xAxis,a=r.yAxis,s=r.targetField,l=r.rangeField,u=r.measureField,c=r.xField,h=i.data;return px(Rw((e={},e[c]=o,e[u]=a,e),(n={},n[u]={min:null===h||void 0===h?void 0:h.min,max:null===h||void 0===h?void 0:h.max,sync:!0},n[s]={sync:""+u},n[l]={sync:""+u},n)))(t)}function BM(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.measureField,s=n.rangeField,l=n.targetField;return e.axis(""+s,!1),e.axis(""+l,!1),!1===r?e.axis(""+o,!1):e.axis(""+o,r),!1===i?e.axis(""+a,!1):e.axis(""+a,i),t}function _M(t){var e=t.chart,n=t.options,r=n.legend;return e.removeInteraction("legend-filter"),e.legend(r),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function IM(t){var e=t.chart,n=t.options,r=n.label,i=n.measureField,o=n.targetField,a=n.rangeField,s=e.geometries,l=s[0],u=s[1],c=s[2];return(0,E.U2)(r,"range")?l.label(""+a,(0,A.pi)({layout:[{type:"limit-in-plot"}]},Dx(r.range))):l.label(!1),(0,E.U2)(r,"measure")?u.label(""+i,(0,A.pi)({layout:[{type:"limit-in-plot"}]},Dx(r.measure))):u.label(!1),(0,E.U2)(r,"target")?c.label(""+o,(0,A.pi)({layout:[{type:"limit-in-plot"}]},Dx(r.target))):c.label(!1),t}function PM(t){px(OM,TM,BM,_M,_w,IM,Ow,Tw,Bw)(t)}var LM=jx({},cw.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),RM=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return LM},e.prototype.changeData=function(t){this.updateOption({data:t});var e=MM(this.options),n=e.min,r=e.max,i=e.ds;TM({options:this.options,ext:{data:{min:n,max:r}},chart:this.chart}),this.chart.changeData(i)},e.prototype.getSchemaAdaptor=function(){return PM},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(cw),"nodeIndex"),NM="childNodeCount",jM="nodeAncestor",zM="Invalid field: it must be a string!";function UM(t,e){var n=t.field,r=t.fields;if((0,E.HD)(n))return n;if((0,E.kJ)(n))return console.warn(zM),n[0];if(console.warn(zM+" will try to get fields instead."),(0,E.HD)(r))return r;if((0,E.kJ)(r)&&r.length)return r[0];if(e)return e;throw new TypeError(zM)}function VM(t){var e,n,r=[];t&&t.each?t.each((function(t){var i,o;t.parent!==e?(e=t.parent,n=0):n+=1;var a=(0,E.hX)(((null===(i=t.ancestors)||void 0===i?void 0:i.call(t))||[]).map((function(t){return r.find((function(e){return e.name===t.name}))||t})),(function(e){var n=e.depth;return n>0&&n<t.depth}));t[jM]=a,t[NM]=(null===(o=t.children)||void 0===o?void 0:o.length)||0,t[RM]=n,r.push(t)})):t&&t.eachNode&&t.eachNode((function(t){r.push(t)}));return r}var HM="ancestor-node",$M="value",GM="path",WM=[GM,RM,jM,NM,"name","depth","height"],qM=jx({},cw.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}}),XM=4,ZM=0,YM=5,QM="drilldown-bread-crumb",KM={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},JM="hierarchy-data-transform-params",tO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="drill-down",e.historyCache=[],e.breadCrumbGroup=null,e.breadCrumbCfg=KM,e}return(0,A.ZT)(e,t),e.prototype.click=function(){var t=(0,E.U2)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},e.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),e=this.breadCrumbGroup,n=e.getBBox(),r=this.getButtonCfg().position,i={x:t.start.x,y:t.end.y-(n.height+2*YM)};t.isPolar&&(i={x:0,y:0}),"bottom-left"===r&&(i={x:t.start.x,y:t.start.y});var o=uh.transform(null,[["t",i.x+ZM,i.y+n.height+YM]]);e.setMatrix(o)}},e.prototype.back=function(){(0,E.dp)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},e.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},e.prototype.drill=function(t){var e=this.context.view,n=(0,E.U2)(e,["interactions","drill-down","cfg","transformData"],(function(t){return t})),r=n((0,A.pi)({data:t.data},t[JM]));e.changeData(r);var i=[],o=t;while(o){var a=o.data;i.unshift({id:a.name+"_"+o.height+"_"+o.depth,name:a.name,children:n((0,A.pi)({data:a},t[JM]))}),o=o.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(i)},e.prototype.backTo=function(t){if(t&&!(t.length<=0)){var e=this.context.view,n=(0,E.Z$)(t).children;e.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},e.prototype.getButtonCfg=function(){var t=this.context.view,e=(0,E.U2)(t,["interactions","drill-down","cfg","drillDownConfig"]);return jx(this.breadCrumbCfg,null===e||void 0===e?void 0:e.breadCrumb,this.cfg)},e.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},e.prototype.drawBreadCrumbGroup=function(){var t=this,e=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:QM});var r=0;n.forEach((function(i,o){var a=t.breadCrumbGroup.addShape({type:"text",id:i.id,name:QM+"_"+i.name+"_text",attrs:(0,A.pi)((0,A.pi)({text:0!==o||(0,E.UM)(e.rootText)?i.name:e.rootText},e.textStyle),{x:r,y:0})}),s=a.getBBox();if(r+=s.width+XM,a.on("click",(function(e){var r,i=e.target.get("id");if(i!==(null===(r=(0,E.Z$)(n))||void 0===r?void 0:r.id)){var o=n.slice(0,n.findIndex((function(t){return t.id===i}))+1);t.backTo(o)}})),a.on("mouseenter",(function(t){var r,i=t.target.get("id");i!==(null===(r=(0,E.Z$)(n))||void 0===r?void 0:r.id)?a.attr(e.activeTextStyle):a.attr({cursor:"default"})})),a.on("mouseleave",(function(){a.attr(e.textStyle)})),o<n.length-1){var l=t.breadCrumbGroup.addShape({type:"text",name:e.name+"_"+i.name+"_divider",attrs:(0,A.pi)((0,A.pi)({text:e.dividerText},e.textStyle),{x:r,y:0})}),u=l.getBBox();r+=u.width+XM}}))},e.prototype.hideCrumbGroup=function(){this.breadCrumbGroup&&this.breadCrumbGroup.hide()},e.prototype.destroy=function(){this.breadCrumbGroup&&this.breadCrumbGroup.remove(),t.prototype.destroy.call(this)},e}(Hs);function eO(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function nO(t,e,n,r,i){var o,a=t.children,s=-1,l=a.length,u=t.value&&(r-e)/t.value;while(++s<l)o=a[s],o.y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*u}function rO(){var t=1,e=1,n=0,r=!1;function i(i){var a=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/a,i.eachBefore(o(e,a)),r&&i.eachBefore(eO),i}function o(t,e){return function(r){r.children&&nO(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var i=r.x0,o=r.y0,a=r.x1-n,s=r.y1-n;a<i&&(i=a=(i+a)/2),s<o&&(o=s=(o+s)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=s}}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(n){return arguments.length?(t=+n[0],e=+n[1],i):[t,e]},i.padding=function(t){return arguments.length?(n=+t,i):n},i}function iO(t){var e=0,n=t.children,r=n&&n.length;if(r)while(--r>=0)e+=n[r].value;else e=1;t.value=e}function oO(){return this.eachAfter(iO)}function aO(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this}function sO(t,e){var n,r,i=this,o=[i],a=-1;while(i=o.pop())if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this}function lO(t,e){var n,r,i,o=this,a=[o],s=[],l=-1;while(o=a.pop())if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);while(o=s.pop())t.call(e,o,++l,this);return this}function uO(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r}function cO(t){return this.eachAfter((function(e){var n=+t(e.data)||0,r=e.children,i=r&&r.length;while(--i>=0)n+=r[i].value;e.value=n}))}function hO(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))}function fO(t){var e=this,n=pO(e,t),r=[e];while(e!==n)e=e.parent,r.push(e);var i=r.length;while(t!==n)r.splice(i,0,t),t=t.parent;return r}function pO(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();while(t===e)i=t,t=n.pop(),e=r.pop();return i}function dO(){var t=this,e=[t];while(t=t.parent)e.push(t);return e}function gO(){return Array.from(this)}function vO(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t}function mO(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e}function*yO(){var t,e,n,r,i=this,o=[i];do{t=o.reverse(),o=[];while(i=t.pop())if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}function bO(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=CO)):void 0===e&&(e=wO);var n,r,i,o,a,s=new EO(t),l=[s];while(n=l.pop())if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new EO(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(AO)}function xO(){return bO(this).eachBefore(SO)}function wO(t){return t.children}function CO(t){return Array.isArray(t)?t[1]:null}function SO(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function AO(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function EO(t){this.data=t,this.depth=this.height=0,this.parent=null}EO.prototype=bO.prototype={constructor:EO,count:oO,each:aO,eachAfter:lO,eachBefore:sO,find:uO,sum:cO,sort:hO,path:fO,ancestors:dO,descendants:gO,leaves:vO,links:mO,copy:xO,[Symbol.iterator]:yO};var kO={field:"value",size:[1,1],round:!1,padding:0,sort:function(t,e){return e.value-t.value},as:["x","y"],ignoreParentValue:!0};function DO(t,e){e=(0,E.f0)({},kO,e);var n,r=e.as;if(!(0,E.kJ)(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=UM(e)}catch(l){console.warn(l)}var i=function(t){return rO().size(e.size).round(e.round).padding(e.padding)(bO(t).sum((function(t){return(0,E.dp)(t.children)?e.ignoreParentValue?0:t[n]-(0,E.u4)(t.children,(function(t,e){return t+e[n]}),0):t[n]})).sort(e.sort))},o=i(t),a=r[0],s=r[1];return o.each((function(t){var e,n;t[a]=[t.x0,t.x1,t.x1,t.x0],t[s]=[t.y1,t.y1,t.y0,t.y0],t.name=t.name||(null===(e=t.data)||void 0===e?void 0:e.name)||(null===(n=t.data)||void 0===n?void 0:n.label),t.data.name=t.name,["x0","x1","y0","y1"].forEach((function(e){-1===r.indexOf(e)&&delete t[e]}))})),VM(o)}function FO(t,e){return t.parent===e.parent?1:2}function MO(t){return t.reduce(OO,0)/t.length}function OO(t,e){return t+e.x}function TO(t){return 1+t.reduce(BO,0)}function BO(t,e){return Math.max(t,e.y)}function _O(t){var e;while(e=t.children)t=e[0];return t}function IO(t){var e;while(e=t.children)t=e[e.length-1];return t}function PO(){var t=FO,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=MO(n),e.y=TO(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var s=_O(i),l=IO(i),u=s.x-t(s,l)/2,c=l.x+t(l,s)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-u)/(c-u)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function LO(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}function RO(t){var e,n,r=t.length;while(r)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}function NO(t){var e,n,r=0,i=(t=RO(Array.from(t))).length,o=[];while(r<i)e=t[r],n&&UO(n,e)?++r:(n=HO(o=jO(o,e)),r=0);return n}function jO(t,e){var n,r;if(VO(e,t))return[e];for(n=0;n<t.length;++n)if(zO(e,t[n])&&VO(GO(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(zO(GO(t[n],t[r]),e)&&zO(GO(t[n],e),t[r])&&zO(GO(t[r],e),t[n])&&VO(WO(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function zO(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function UO(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function VO(t,e){for(var n=0;n<e.length;++n)if(!UO(t,e[n]))return!1;return!0}function HO(t){switch(t.length){case 1:return $O(t[0]);case 2:return GO(t[0],t[1]);case 3:return WO(t[0],t[1],t[2])}}function $O(t){return{x:t.x,y:t.y,r:t.r}}function GO(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,l=o-n,u=a-r,c=s-i,h=Math.sqrt(l*l+u*u);return{x:(n+o+l/h*c)/2,y:(r+a+u/h*c)/2,r:(h+i+s)/2}}function WO(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,s=e.y,l=e.r,u=n.x,c=n.y,h=n.r,f=r-a,p=r-u,d=i-s,g=i-c,v=l-o,m=h-o,y=r*r+i*i-o*o,b=y-a*a-s*s+l*l,x=y-u*u-c*c+h*h,w=p*d-f*g,C=(d*x-g*b)/(2*w)-r,S=(g*v-d*m)/w,A=(p*b-f*x)/(2*w)-i,E=(f*m-p*v)/w,k=S*S+E*E-1,D=2*(o+C*S+A*E),F=C*C+A*A-o*o,M=-(k?(D+Math.sqrt(D*D-4*k*F))/(2*k):F/D);return{x:r+C+S*M,y:i+A+E*M,r:M}}function qO(t,e,n){var r,i,o,a,s=t.x-e.x,l=t.y-e.y,u=s*s+l*l;u?(i=e.r+n.r,i*=i,a=t.r+n.r,a*=a,i>a?(r=(u+a-i)/(2*u),o=Math.sqrt(Math.max(0,a/u-r*r)),n.x=t.x-r*s-o*l,n.y=t.y-r*l+o*s):(r=(u+i-a)/(2*u),o=Math.sqrt(Math.max(0,i/u-r*r)),n.x=e.x+r*s-o*l,n.y=e.y+r*l+o*s)):(n.x=e.x+n.r,n.y=e.y)}function XO(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function ZO(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function YO(t){this._=t,this.next=null,this.previous=null}function QO(t){if(!(i=(t=LO(t)).length))return 0;var e,n,r,i,o,a,s,l,u,c,h;if(e=t[0],e.x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;qO(n,e,r=t[2]),e=new YO(e),n=new YO(n),r=new YO(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s<i;++s){qO(e._,n._,r=t[s]),r=new YO(r),l=n.next,u=e.previous,c=n._.r,h=e._.r;do{if(c<=h){if(XO(l._,r._)){n=l,e.next=n,n.previous=e,--s;continue t}c+=l._.r,l=l.next}else{if(XO(u._,r._)){e=u,e.next=n,n.previous=e,--s;continue t}h+=u._.r,u=u.previous}}while(l!==u.next);r.previous=e,r.next=n,e.next=n.previous=n=r,o=ZO(e);while((r=r.next)!==n)(a=ZO(r))<o&&(e=r,o=a);n=e.next}e=[n._],r=n;while((r=r.next)!==n)e.push(r._);for(r=NO(e),s=0;s<i;++s)e=t[s],e.x-=r.x,e.y-=r.y;return r.r}function KO(t){return QO(t),t}function JO(t){return null==t?null:tT(t)}function tT(t){if("function"!==typeof t)throw new Error;return t}function eT(){return 0}function nT(t){return function(){return t}}function rT(t){return Math.sqrt(t.value)}function iT(){var t=null,e=1,n=1,r=eT;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(oT(t)).eachAfter(aT(r,.5)).eachBefore(sT(1)):i.eachBefore(oT(rT)).eachAfter(aT(eT,1)).eachAfter(aT(r,i.r/Math.min(e,n))).eachBefore(sT(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=JO(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"===typeof t?t:nT(+t),i):r},i}function oT(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function aT(t,e){return function(n){if(r=n.children){var r,i,o,a=r.length,s=t(n)*e||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=QO(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function sT(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}var lT={depth:-1},uT={};function cT(t){return t.id}function hT(t){return t.parentId}function fT(){var t=cT,e=hT;function n(n){var r,i,o,a,s,l,u,c=Array.from(n),h=c.length,f=new Map;for(i=0;i<h;++i)r=c[i],s=c[i]=new EO(r),null!=(l=t(r,i,n))&&(l+="")&&(u=s.id=l,f.set(u,f.has(u)?uT:s)),null!=(l=e(r,i,n))&&(l+="")&&(s.parent=l);for(i=0;i<h;++i)if(s=c[i],l=s.parent){if(a=f.get(l),!a)throw new Error("missing: "+l);if(a===uT)throw new Error("ambiguous: "+l);a.children?a.children.push(s):a.children=[s],s.parent=a}else{if(o)throw new Error("multiple roots");o=s}if(!o)throw new Error("no root");if(o.parent=lT,o.eachBefore((function(t){t.depth=t.parent.depth+1,--h})).eachBefore(AO),o.parent=null,h>0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=tT(e),n):t},n.parentId=function(t){return arguments.length?(e=tT(t),n):e},n}function pT(t,e){return t.parent===e.parent?1:2}function dT(t){var e=t.children;return e?e[0]:t.t}function gT(t){var e=t.children;return e?e[e.length-1]:t.t}function vT(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function mT(t){var e,n=0,r=0,i=t.children,o=i.length;while(--o>=0)e=i[o],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}function yT(t,e,n){return t.a.parent===e.parent?t.a:n}function bT(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function xT(t){var e,n,r,i,o,a=new bT(t,0),s=[a];while(e=s.pop())if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new bT(r[i],i)),n.parent=e;return(a.parent=new bT(null,0)).children=[a],a}function wT(){var t=pT,e=1,n=1,r=null;function i(i){var s=xT(i);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),r)i.eachBefore(l);else{var u=i,c=i,h=i;i.eachBefore((function(t){t.x<u.x&&(u=t),t.x>c.x&&(c=t),t.depth>h.depth&&(h=t)}));var f=u===c?1:t(u,c)/2,p=f-u.x,d=e/(c.x+f+p),g=n/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*g}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){mT(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=s(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(e,n,r){if(n){var i,o=e,a=e,s=n,l=o.parent.children[0],u=o.m,c=a.m,h=s.m,f=l.m;while(s=gT(s),o=dT(o),s&&o)l=dT(l),a=gT(a),a.a=e,i=s.z+h-o.z-u+t(s._,o._),i>0&&(vT(yT(s,e,r),e,i),u+=i,c+=i),h+=s.m,u+=o.m,f+=l.m,c+=a.m;s&&!gT(a)&&(a.t=s,a.m+=h-c),o&&!dT(l)&&(l.t=o,l.m+=u-f,r=e)}return r}function l(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function CT(t,e,n,r,i){var o,a=t.children,s=-1,l=a.length,u=t.value&&(i-n)/t.value;while(++s<l)o=a[s],o.x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*u}bT.prototype=Object.create(EO.prototype);var ST=(1+Math.sqrt(5))/2;function AT(t,e,n,r,i,o){var a,s,l,u,c,h,f,p,d,g,v,m=[],y=e.children,b=0,x=0,w=y.length,C=e.value;while(b<w){l=i-n,u=o-r;do{c=y[x++].value}while(!c&&x<w);for(h=f=c,g=Math.max(u/l,l/u)/(C*t),v=c*c*g,d=Math.max(f/v,v/h);x<w;++x){if(c+=s=y[x].value,s<h&&(h=s),s>f&&(f=s),v=c*c*g,p=Math.max(f/v,v/h),p>d){c-=s;break}d=p}m.push(a={value:c,dice:l<u,children:y.slice(b,x)}),a.dice?nO(a,n,r,i,C?r+=u*c/C:o):CT(a,n,r,C?n+=l*c/C:i,o),C-=c,b=x}return m}var ET=function t(e){function n(t,n,r,i,o){AT(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(ST);function kT(){var t=ET,e=!1,n=1,r=1,i=[0],o=eT,a=eT,s=eT,l=eT,u=eT;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(eO),t}function h(e){var n=i[e.depth],r=e.x0+n,c=e.y0+n,h=e.x1-n,f=e.y1-n;h<r&&(r=h=(r+h)/2),f<c&&(c=f=(c+f)/2),e.x0=r,e.y0=c,e.x1=h,e.y1=f,e.children&&(n=i[e.depth+1]=o(e)/2,r+=u(e)-n,c+=a(e)-n,h-=s(e)-n,f-=l(e)-n,h<r&&(r=h=(r+h)/2),f<c&&(c=f=(c+f)/2),t(e,r,c,h,f))}return c.round=function(t){return arguments.length?(e=!!t,c):e},c.size=function(t){return arguments.length?(n=+t[0],r=+t[1],c):[n,r]},c.tile=function(e){return arguments.length?(t=tT(e),c):t},c.padding=function(t){return arguments.length?c.paddingInner(t).paddingOuter(t):c.paddingInner()},c.paddingInner=function(t){return arguments.length?(o="function"===typeof t?t:nT(+t),c):o},c.paddingOuter=function(t){return arguments.length?c.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):c.paddingTop()},c.paddingTop=function(t){return arguments.length?(a="function"===typeof t?t:nT(+t),c):a},c.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:nT(+t),c):s},c.paddingBottom=function(t){return arguments.length?(l="function"===typeof t?t:nT(+t),c):l},c.paddingLeft=function(t){return arguments.length?(u="function"===typeof t?t:nT(+t),c):u},c}function DT(t,e,n,r,i){var o,a,s=t.children,l=s.length,u=new Array(l+1);for(u[0]=a=o=0;o<l;++o)u[o+1]=a+=s[o].value;function c(t,e,n,r,i,o,a){if(t>=e-1){var l=s[t];return l.x0=r,l.y0=i,l.x1=o,void(l.y1=a)}var h=u[t],f=n/2+h,p=t+1,d=e-1;while(p<d){var g=p+d>>>1;u[g]<f?p=g+1:d=g}f-u[p-1]<u[p]-f&&t+1<p&&--p;var v=u[p]-h,m=n-v;if(o-r>a-i){var y=n?(r*m+o*v)/n:o;c(t,p,v,r,i,y,a),c(p,e,m,y,i,o,a)}else{var b=n?(i*m+a*v)/n:a;c(t,p,v,r,i,o,b),c(p,e,m,r,b,o,a)}}c(0,l,t.value,e,n,r,i)}function FT(t,e,n,r,i){(1&t.depth?CT:nO)(t,e,n,r,i)}var MT=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e){var a,s,l,u,c,h=-1,f=a.length,p=t.value;while(++h<f){for(s=a[h],l=s.children,u=s.value=0,c=l.length;u<c;++u)s.value+=l[u].value;s.dice?nO(s,n,r,i,p?r+=(o-r)*s.value/p:o):CT(s,n,r,p?n+=(i-n)*s.value/p:i,o),p-=s.value}}else t._squarify=a=AT(e,t,n,r,i,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(ST),OT={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(t,e){return e.value-t.value},ratio:.5*(1+Math.sqrt(5))};function TT(t,e){return"treemapSquarify"===t?g[t].ratio(e):g[t]}function BT(t,e){e=(0,E.f0)({},OT,e);var n,r=e.as;if(!(0,E.kJ)(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=UM(e)}catch(u){console.warn(u)}var i=TT(e.tile,e.ratio),o=function(t){return kT().tile(i).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(bO(t).sum((function(t){return e.ignoreParentValue&&t.children?0:t[n]})).sort(e.sort))},a=o(t),s=r[0],l=r[1];return a.each((function(t){t[s]=[t.x0,t.x1,t.x1,t.x0],t[l]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===r.indexOf(e)&&delete t[e]}))})),VM(a)}function _T(t){var e=t.data,n=t.colorField,r=t.rawFields,i=t.hierarchyConfig,o=void 0===i?{}:i,a=o.activeDepth,s={partition:DO,treemap:BT},l=t.seriesField,u=t.type||"partition",c=s[u](e,(0,A.pi)((0,A.pi)({field:l||"value"},(0,E.CE)(o,["activeDepth"])),{type:"hierarchy."+u,as:["x","y"]})),h=[];return c.forEach((function(t){var e,i,s,u,c,f;if(0===t.depth)return null;if(a>0&&t.depth>a)return null;var p=t.data.name,d=(0,A.pi)({},t);while(d.depth>1)p=(null===(i=d.parent.data)||void 0===i?void 0:i.name)+" / "+p,d=d.parent;var g=(0,A.pi)((0,A.pi)((0,A.pi)({},dx(t.data,(0,A.pr)(r||[],[o.field]))),(e={},e[GM]=p,e[HM]=d.data.name,e)),t);l&&(g[l]=t.data[l]||(null===(u=null===(s=t.parent)||void 0===s?void 0:s.data)||void 0===u?void 0:u[l])),n&&(g[n]=t.data[n]||(null===(f=null===(c=t.parent)||void 0===c?void 0:c.data)||void 0===f?void 0:f[n])),g.ext=o,g[JM]={hierarchyConfig:o,colorField:n,rawFields:r},h.push(g)})),h}function IT(t){var e,n=t.chart,r=t.options,i=r.color,o=r.colorField,a=void 0===o?HM:o,s=r.sunburstStyle,l=r.rawFields,u=void 0===l?[]:l,c=_T(r);return n.data(c),s&&(e=function(t){return jx({},{fillOpacity:Math.pow(.85,t.depth)},(0,E.mf)(s)?s(t):s)}),Yw(jx({},t,{options:{xField:"x",yField:"y",seriesField:a,rawFields:(0,E.jj)((0,A.pr)(WM,u)),polygon:{color:i,style:e}}})),t}function PT(t){var e=t.chart;return e.axis(!1),t}function LT(t){var e=t.chart,n=t.options,r=n.label,i=xx(e,"polygon");if(r){var o=r.fields,a=void 0===o?["name"]:o,s=r.callback,l=(0,A._T)(r,["fields","callback"]);i.label({fields:a,callback:s,cfg:Dx(l)})}else i.label(!1);return t}function RT(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius,o=n.reflect,a=e.coordinate({type:"polar",cfg:{innerRadius:r,radius:i}});return o&&a.reflect(o),t}function NT(t){var e,n=t.options,r=n.hierarchyConfig,i=n.meta;return px(Rw({},(e={},e[$M]=(0,E.U2)(i,(0,E.U2)(r,["field"],"value")),e)))(t)}function jT(t){var e=t.chart,n=t.options,r=n.tooltip;if(!1===r)e.tooltip(!1);else{var i=r;(0,E.U2)(r,"fields")||(i=jx({},{customItems:function(t){return t.map((function(t){var n=(0,E.U2)(e.getOptions(),"scales"),r=(0,E.U2)(n,[GM,"formatter"],(function(t){return t})),i=(0,E.U2)(n,[$M,"formatter"],(function(t){return t}));return(0,A.pi)((0,A.pi)({},t),{name:r(t.data[GM]),value:i(t.data.value)})}))}},i)),e.tooltip(i)}return t}function zT(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n;return(null===e||void 0===e?void 0:e.enabled)?jx({},t,{interactions:(0,A.pr)(r,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:_T}}])}):t}function UT(t){var e=t.chart,n=t.options,r=n.drilldown;return Tw({chart:e,options:zT(n)}),(null===r||void 0===r?void 0:r.enabled)&&(e.appendPadding=Jx(e.appendPadding,(0,E.U2)(r,["breadCrumb","position"]))),t}function VT(t){return px(_w,Fw("sunburstStyle"),IT,PT,NT,Mw,RT,jT,LT,UT,Bw,Nw())(t)}function HT(t){var e=(0,E.U2)(t,["event","data","data"],{});return(0,E.kJ)(e.children)&&e.children.length>0}function $T(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var r=t.event,i=r.x,o=r.y,a=e.center,s=a.x,l=a.y,u=e.getRadius()*n,c=Math.sqrt(Math.pow(s-i,2)+Math.pow(l-o,2));return c<u}return!1}Zs("drill-down-action",tO),Wl("drill-down",{showEnable:[{trigger:"element:mouseenter",action:"cursor:pointer",isEnable:HT},{trigger:"element:mouseleave",action:"cursor:default"},{trigger:"element:mouseleave",action:"cursor:pointer",isEnable:$T}],start:[{trigger:"element:click",isEnable:HT,action:["drill-down-action:click"]},{trigger:"afterchangesize",action:["drill-down-action:resetPosition"]},{trigger:"click",isEnable:$T,action:["drill-down-action:back"]}]});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sunburst",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return qM},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return VT},e.SUNBURST_ANCESTOR_FIELD=HM,e.SUNBURST_PATH_FIELD=GM,e.NODE_ANCESTORS_FIELD=jM})(cw);var GT,WT="range",qT="type",XT="percent",ZT="#f0f0f0",YT="indicator-view",QT="range-view",KT={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(GT={},GT[WT]={sync:"v"},GT[XT]={sync:"v",tickCount:5,tickInterval:.2},GT),animation:!1};function JT(t,e){return t.map((function(n,r){var i;return i={},i[WT]=n-(t[r-1]||0),i[qT]=""+r,i[XT]=e,i})).filter((function(t){return!!t[WT]}))}function tB(t){var e;return[(e={},e[XT]=(0,E.uZ)(t,0,1),e)]}function eB(t,e){var n=(0,E.U2)(e,["ticks"],[]),r=(0,E.dp)(n)?n:[0,(0,E.uZ)(t,0,1),1];return JT(r,t)}function nB(t){var e=t.chart,n=t.options,r=n.percent,i=n.range,o=n.radius,a=n.innerRadius,s=n.startAngle,l=n.endAngle,u=n.axis,c=n.indicator,h=n.gaugeStyle,f=n.type,p=n.meter,d=i.color,g=i.width;if(c){var v=tB(r),m=e.createView({id:YT});m.data(v),m.point().position(XT+"*1").shape(c.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:c}),m.coordinate("polar",{startAngle:s,endAngle:l,radius:a*o}),m.axis(XT,u),m.scale(XT,dx(u,hw))}var y=eB(r,n.range),b=e.createView({id:QT});b.data(y);var x=(0,E.HD)(d)?[d,ZT]:d,w=Zw({chart:b,options:{xField:"1",yField:WT,seriesField:qT,rawFields:[XT],isStack:!0,interval:{color:x,style:h,shape:"meter"===f?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:g,maxColumnWidth:g}}).ext,C=w.geometry;return C.customInfo({meter:p}),b.coordinate("polar",{innerRadius:a,radius:o,startAngle:s,endAngle:l}).transpose(),t}function rB(t){var e;return px(Rw((e={range:{min:0,max:1,maxLimit:1,minLimit:0}},e[XT]={},e)))(t)}function iB(t,e){var n=t.chart,r=t.options,i=r.statistic,o=r.percent;if(n.getController("annotation").clear(!0),i){var a=i.content,s=void 0;a&&(s=jx({},{content:(100*o).toFixed(2)+"%",style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},a)),Gx(n,{statistic:(0,A.pi)((0,A.pi)({},i),{content:s})},{percent:o})}return e&&n.render(!0),t}function oB(t){var e=t.chart,n=t.options,r=n.tooltip;return r?e.tooltip(jx({showTitle:!1,showMarkers:!1,containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(t,e){var n=(0,E.U2)(e,[0,"data",XT],0);return(100*n).toFixed(2)+"%"}},r)):e.tooltip(!1),t}function aB(t){var e=t.chart;return e.legend(!1),t}function sB(t){return px(_w,Bw,nB,rB,oB,iB,Tw,Nw(),aB)(t)}vc("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,r=n.indicator,i=n.defaultColor,o=r,a=o.pointer,s=o.pin,l=e.addGroup(),u=this.parsePoint({x:0,y:0});return a&&l.addShape("line",{name:"pointer",attrs:(0,A.pi)({x1:u.x,y1:u.y,x2:t.x,y2:t.y,stroke:i},a.style)}),s&&l.addShape("circle",{name:"pin",attrs:(0,A.pi)({x:u.x,y:u.y,stroke:i},s.style)}),l}}),vc("interval","meter-gauge",{draw:function(t,e){var n=t.customInfo.meter,r=void 0===n?{}:n,i=r.steps,o=void 0===i?50:i,a=r.stepRatio,s=void 0===a?.5:a;o=o<1?1:o,s=(0,E.uZ)(s,0,1);var l=this.coordinate,u=l.startAngle,c=l.endAngle,h=0;if(s>0&&s<1){var f=c-u;h=f/o/(s/(1-s)+1-1/o)}for(var p=h/(1-s)*s,d=e.addGroup(),g=this.coordinate.getCenter(),v=this.coordinate.getRadius(),m=uh.getAngle(t,this.coordinate),y=m.startAngle,b=m.endAngle,x=y;x<b;){var w=void 0,C=(x-u)%(p+h);C<p?w=x+(p-C):(x+=p+h-C,w=x+p);var S=uh.getSectorPath(g.x,g.y,v,x,Math.min(w,b),v*this.coordinate.innerRadius);d.addShape("path",{name:"meter-gauge",attrs:{path:S,fill:t.color,stroke:t.color,lineWidth:.5}}),x=w+h}return d}});var lB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return(0,A.ZT)(e,t),e.getDefaultOptions=function(){return KT},e.prototype.changeData=function(t){this.chart.emit(k.BEFORE_CHANGE_DATA,Bu.fromData(this.chart,k.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t});var e=this.chart.views.find((function(t){return t.id===YT}));e&&e.data(tB(t));var n=this.chart.views.find((function(t){return t.id===QT}));n&&n.data(eB(t,this.options.range)),iB({chart:this.chart,options:this.options},!0),this.chart.emit(k.AFTER_CHANGE_DATA,Bu.fromData(this.chart,k.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return sB},e}(cw),uB="$$yField$$",cB="$$diffField$$",hB="$$absoluteField$$",fB="$$isTotal$$",pB={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}};function dB(t,e,n,r,i){var o,a=[];if((0,E.u4)(t,(function(t,e){var i;yx(ix.WARN,(0,E.hj)(e[n]),e[n]+" is not a valid number");var o=(0,E.o8)(e[n])?null:e[n];return a.push((0,A.pi)((0,A.pi)({},e),(i={},i[r]=[t,t+o],i))),t+o}),0),a.length&&i){var s=(0,E.U2)(a,[[t.length-1],r,[1]]);a.push((o={},o[e]=i.label,o[n]=s,o[r]=[0,s],o))}return a}function gB(t,e,n,r){var i=dB(t,e,n,uB,r);return i.map((function(e,n){var r;return(0,E.Kn)(e)?(0,A.pi)((0,A.pi)({},e),(r={},r[hB]=e[uB][1],r[cB]=e[uB][1]-e[uB][0],r[fB]=n===t.length,r)):e}))}function vB(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var o=t[0];return e.push(["L",o.x,o.y]),e.push(["z"]),e}function mB(t){return jx({},t.defaultStyle,t.style,{fill:t.color})}function yB(t){var e=t.options,n=e.locale,r=e.total,i=iw(n).get(["waterfall","total"]);return r&&"string"!==typeof r.label&&i&&(t.options.total.label=i),t}function bB(t){var e=t.chart,n=t.options,r=n.data,i=n.xField,o=n.yField,a=n.total,s=n.leaderLine,l=n.columnWidthRatio,u=n.waterfallStyle,c=n.risingFill,h=n.fallingFill,f=n.color;e.data(gB(r,i,o,a));var p=f||function(t){return(0,E.U2)(t,[fB])?(0,E.U2)(a,["style","fill"],""):(0,E.U2)(t,[uB,1])-(0,E.U2)(t,[uB,0])>0?c:h},d=jx({},t,{options:{xField:i,yField:uB,seriesField:i,rawFields:[o,cB,fB,uB],widthRatio:l,interval:{style:u,shape:"waterfall",color:p}}}),g=Zw(d).ext,v=g.geometry;return v.customInfo({leaderLine:s}),t}function xB(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=r.xField,s=r.yField,l=r.meta,u=jx({},{alias:s},(0,E.U2)(l,s));return px(Rw((e={},e[a]=i,e[s]=o,e[uB]=o,e),jx({},l,(n={},n[uB]=u,n[cB]=u,n[hB]=u,n))))(t)}function wB(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?(e.axis(a,!1),e.axis(uB,!1)):(e.axis(a,i),e.axis(uB,i)),t}function CB(t){var e=t.chart,n=t.options,r=n.legend,i=n.total,o=n.risingFill,a=n.fallingFill,s=n.locale,l=iw(s);if(!1===r)e.legend(!1);else{var u=[{name:l.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:l.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:a}}}];i&&u.push({name:i.label||"",value:"total",marker:{symbol:"square",style:jx({},{r:5},(0,E.U2)(i,"style"))}}),e.legend(jx({},{custom:!0,position:"top",items:u},r)),e.removeInteraction("legend-filter")}return t}function SB(t){var e=t.chart,n=t.options,r=n.label,i=n.labelMode,o=n.xField,a=xx(e,"interval");if(r){var s=r.callback,l=(0,A._T)(r,["callback"]);a.label({fields:"absolute"===i?[hB,o]:[cB,o],callback:s,cfg:Dx(l)})}else a.label(!1);return t}function AB(t){var e=t.chart,n=t.options,r=n.tooltip,i=n.xField,o=n.yField;if(!1!==r){e.tooltip((0,A.pi)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},r));var a=e.geometries[0];(null===r||void 0===r?void 0:r.formatter)?a.tooltip(i+"*"+o,r.formatter):a.tooltip(o)}else e.tooltip(!1);return t}function EB(t){return px(yB,_w,bB,xB,wB,CB,AB,SB,Iw,Tw,Bw,Nw())(t)}vc("interval","waterfall",{draw:function(t,e){var n=t.customInfo,r=t.points,i=t.nextPoints,o=e.addGroup(),a=this.parsePath(vB(r)),s=mB(t);o.addShape("path",{attrs:(0,A.pi)((0,A.pi)({},s),{path:a})});var l=(0,E.U2)(n,"leaderLine");if(l&&i){var u=[["M",r[2].x,r[2].y],["L",i[0].x,i[0].y]];r[2].y===i[1].y&&(u[1]=["L",i[1].x,i[1].y]),u=this.parsePath(u),o.addShape("path",{attrs:(0,A.pi)({path:u},l.style||{})})}return o}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="waterfall",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return pB},e.prototype.changeData=function(t){var e=this.options,n=e.xField,r=e.yField,i=e.total;this.updateOption({data:t}),this.chart.changeData(gB(t,n,r,i))},e.prototype.getSchemaAdaptor=function(){return EB},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(cw);function kB(t,e,n){var r=n.map((function(t){return t[e]})).filter((function(t){return void 0!==t})),i=r.length>0?Math.max.apply(Math,r):0,o=Math.abs(t)%360;return o?360*i/o:i}function DB(t,e,n){var r=[];return t.forEach((function(t){var i=r.find((function(n){return n[e]===t[e]}));i?i[n]+=t[n]||null:r.push((0,A.pi)({},t))})),r}function FB(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.color,o=n.tooltip,a=n.colorField,s=n.type,l=n.xField,u=n.yField,c=n.data,h=Qx(c,u);e.data(h);var f=jx({},t,{options:{tooltip:o,seriesField:a,interval:{style:r,color:i,shape:"line"===s?"line":"intervel"},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return Zw(f),"line"===s&&qw({chart:e,options:{xField:l,yField:u,seriesField:a,point:{shape:"circle",color:i}}}),t}function MB(t){var e,n=t.options,r=n.yField,i=n.xField,o=n.data,a=n.isStack,s=n.isGroup,l=n.colorField,u=n.maxAngle,c=a&&!s&&l?DB(o,i,r):o,h=Qx(c,r);return px(Rw((e={},e[r]={min:0,max:kB(u,r,h)},e)))(t)}function OB(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}).transpose(),t}function TB(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis;return e.axis(r,i),t}function BB(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=xx(e,"interval");if(r){var a=r.callback,s=(0,A._T)(r,["callback"]);o.label({fields:[i],callback:a,cfg:(0,A.pi)((0,A.pi)({},Dx(s)),{type:"polar"})})}else o.label(!1);return t}function _B(t){return px(Fw("barStyle"),FB,MB,TB,OB,Tw,Bw,_w,Ow,Mw,Nw(),BB)(t)}var IB=jx({},cw.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240}),PB=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radial-bar",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return IB},e.prototype.changeData=function(t){this.updateOption({data:t}),MB({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return _B}}(cw),"first-axes-view"),LB="second-axes-view",RB="series-field-key";function NB(t,e,n,r,i){var o=[];e.forEach((function(e){r.forEach((function(r){var i,a=(i={},i[t]=r[t],i[n]=e,i[e]=r[e],i);o.push(a)}))}));var a=Object.values((0,E.vM)(o,n)),s=a[0],l=void 0===s?[]:s,u=a[1],c=void 0===u?[]:u;return i?[l.reverse(),c.reverse()]:[l,c]}function jB(t){return"vertical"!==t}function zB(t,e,n){var r=e[0],i=e[1],o=r.autoPadding,a=i.autoPadding,s=t.__axisPosition,l=s.layout,u=s.position;if(jB(l)&&"top"===u&&(r.autoPadding=n.instance(o.top,0,o.bottom,o.left),i.autoPadding=n.instance(a.top,o.left,a.bottom,0)),jB(l)&&"bottom"===u&&(r.autoPadding=n.instance(o.top,o.right/2+5,o.bottom,o.left),i.autoPadding=n.instance(a.top,a.right,a.bottom,o.right/2+5)),!jB(l)&&"bottom"===u){var c=o.left>=a.left?o.left:a.left;r.autoPadding=n.instance(o.top,o.right,o.bottom/2+5,c),i.autoPadding=n.instance(o.bottom/2+5,a.right,a.bottom,c)}if(!jB(l)&&"top"===u){c=o.left>=a.left?o.left:a.left;r.autoPadding=n.instance(o.top,o.right,0,c),i.autoPadding=n.instance(0,a.right,o.top,c)}}function UB(t){var e,n,r=t.chart,i=t.options,o=i.data,a=i.xField,s=i.yField,l=i.color,u=i.barStyle,c=i.widthRatio,h=i.legend,f=i.layout,p=NB(a,s,RB,o,jB(f));h?r.legend(RB,h):!1===h&&r.legend(!1);var d=p[0],g=p[1];jB(f)?(e=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:PB}),e.coordinate().transpose().reflect("x"),n=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:LB}),n.coordinate().transpose(),e.data(d),n.data(g)):(e=r.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:PB}),n=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:LB}),n.coordinate().reflect("y"),e.data(d),n.data(g));var v=jx({},t,{chart:e,options:{widthRatio:c,xField:a,yField:s[0],seriesField:RB,interval:{color:l,style:u}}});Zw(v);var m=jx({},t,{chart:n,options:{xField:a,yField:s[1],seriesField:RB,widthRatio:c,interval:{color:l,style:u}}});return Zw(m),t}function VB(t){var e,n,r,i=t.options,o=t.chart,a=i.xAxis,s=i.yAxis,l=i.xField,u=i.yField,c=Ax(o,PB),h=Ax(o,LB),f={};return(0,E.XP)((null===i||void 0===i?void 0:i.meta)||{}).map((function(t){(0,E.U2)(null===i||void 0===i?void 0:i.meta,[t,"alias"])&&(f[t]=i.meta[t].alias)})),o.scale((e={},e[RB]={sync:!0,formatter:function(t){return(0,E.U2)(f,t,t)}},e)),Rw((n={},n[l]=a,n[u[0]]=s[u[0]],n))(jx({},t,{chart:c})),Rw((r={},r[l]=a,r[u[1]]=s[u[1]],r))(jx({},t,{chart:h})),t}function HB(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,s=n.layout,l=Ax(e,PB),u=Ax(e,LB);return"bottom"===(null===r||void 0===r?void 0:r.position)?u.axis(o,(0,A.pi)((0,A.pi)({},r),{label:{formatter:function(){return""}}})):u.axis(o,!1),!1===r?l.axis(o,!1):l.axis(o,(0,A.pi)({position:jB(s)?"top":"bottom"},r)),!1===i?(l.axis(a[0],!1),u.axis(a[1],!1)):(l.axis(a[0],i[a[0]]),u.axis(a[1],i[a[1]])),e.__axisPosition={position:l.getOptions().axes[o].position,layout:s},t}function $B(t){var e=t.chart;return Tw(jx({},t,{chart:Ax(e,PB)})),Tw(jx({},t,{chart:Ax(e,LB)})),t}function GB(t){var e=t.chart,n=t.options,r=n.yField,i=n.yAxis;return jw(jx({},t,{chart:Ax(e,PB),options:{yAxis:i[r[0]]}})),jw(jx({},t,{chart:Ax(e,LB),options:{yAxis:i[r[1]]}})),t}function WB(t){var e=t.chart;return _w(jx({},t,{chart:Ax(e,PB)})),_w(jx({},t,{chart:Ax(e,LB)})),_w(t),t}function qB(t){var e=t.chart;return Bw(jx({},t,{chart:Ax(e,PB)})),Bw(jx({},t,{chart:Ax(e,LB)})),t}function XB(t){var e,n,r=this,i=t.chart,o=t.options,a=o.label,s=o.yField,l=o.layout,u=Ax(i,PB),c=Ax(i,LB),h=xx(u,"interval"),f=xx(c,"interval");if(a){var p=a.callback,d=(0,A._T)(a,["callback"]);d.position||(d.position="middle"),void 0===d.offset&&(d.offset=2);var g=(0,A.pi)({},d);if(jB(l)){var v=(null===(e=g.style)||void 0===e?void 0:e.textAlign)||("middle"===d.position?"center":"left");d.style=jx({},d.style,{textAlign:v});var m={left:"right",right:"left",center:"center"};g.style=jx({},g.style,{textAlign:m[v]})}else{var y={top:"bottom",bottom:"top",middle:"middle"};"string"===typeof d.position?d.position=y[d.position]:"function"===typeof d.position&&(d.position=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return y[d.position.apply(r,t)]});var b=(null===(n=g.style)||void 0===n?void 0:n.textBaseline)||"bottom";g.style=jx({},g.style,{textBaseline:b});var x={top:"bottom",bottom:"top",middle:"middle"};d.style=jx({},d.style,{textBaseline:x[b]})}h.label({fields:[s[0]],callback:p,cfg:Dx(g)}),f.label({fields:[s[1]],callback:p,cfg:Dx(d)})}else h.label(!1),f.label(!1);return t}function ZB(t){return px(UB,VB,HB,GB,WB,XB,Ow,$B,qB)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bidirectional-bar",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return jx({},t.getDefaultOptions.call(this),{syncViewPadding:zB})},e.prototype.changeData=function(t){void 0===t&&(t=[]),this.chart.emit(k.BEFORE_CHANGE_DATA,Bu.fromData(this.chart,k.BEFORE_CHANGE_DATA,null)),this.updateOption({data:t});var e=this.options,n=e.xField,r=e.yField,i=e.layout,o=NB(n,r,RB,t,jB(i)),a=o[0],s=o[1],l=Ax(this.chart,PB),u=Ax(this.chart,LB);l.data(a),u.data(s),this.chart.render(!0),this.chart.emit(k.AFTER_CHANGE_DATA,Bu.fromData(this.chart,k.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return ZB},e.SERIES_FIELD_KEY=RB})(cw);function YB(t,e){if((0,E.kJ)(t))return t.find((function(t){return t.type===e}))}function QB(t,e){var n=YB(t,e);return n&&!1!==n.enable}function KB(t){var e=t.interactions,n=t.drilldown;return(0,E.U2)(n,"enabled")||QB(e,"treemap-drill-down")}function JB(t){var e=t.interactions["drill-down"];if(e){var n=e.context.actions.find((function(t){return"drill-down-action"===t.name}));n.reset()}}function t_(t){var e=t.data,n=t.colorField,r=t.enableDrillDown,i=t.hierarchyConfig,o=BT(e,(0,A.pi)((0,A.pi)({},i),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),a=[];return o.forEach((function(t){if(0===t.depth)return null;if(r&&1!==t.depth)return null;if(!r&&t.children)return null;var o=t.ancestors().map((function(t){return{data:t.data,height:t.height,value:t.value}})),s=r&&(0,E.kJ)(e.path)?o.concat(e.path.slice(1)):o,l=Object.assign({},t.data,(0,A.pi)({x:t.x,y:t.y,depth:t.depth,value:t.value,path:s},t));if(!t.data[n]&&t.parent){var u=t.ancestors().find((function(t){return t.data[n]}));l[n]=null===u||void 0===u?void 0:u.data[n]}else l[n]=t.data[n];l[JM]={hierarchyConfig:i,colorField:n,enableDrillDown:r},a.push(l)})),a}function e_(t){var e=t.options,n=e.colorField;return jx({options:{rawFields:["value"],tooltip:{fields:["name","value",n,"path"],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function n_(t){var e=t.chart,n=t.options,r=n.color,i=n.colorField,o=n.rectStyle,a=n.hierarchyConfig,s=n.rawFields,l=t_({data:n.data,colorField:n.colorField,enableDrillDown:KB(n),hierarchyConfig:a});return e.data(l),Yw(jx({},t,{options:{xField:"x",yField:"y",seriesField:i,rawFields:s,polygon:{color:r,style:o}}})),e.coordinate().reflect("y"),t}function r_(t){var e=t.chart;return e.axis(!1),t}function i_(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n,i=KB(t);return i?jx({},t,{interactions:(0,A.pr)(r,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:t_}}])}):t}function o_(t){var e=t.chart,n=t.options,r=n.interactions,i=n.drilldown;Tw({chart:e,options:i_(n)});var o=YB(r,"view-zoom");o&&(!1!==o.enable?e.getCanvas().on("mousewheel",(function(t){t.preventDefault()})):e.getCanvas().off("mousewheel"));var a=KB(n);return a&&(e.appendPadding=Jx(e.appendPadding,(0,E.U2)(i,["breadCrumb","position"]))),t}function a_(t){return px(e_,_w,Fw("rectStyle"),n_,r_,Mw,Ow,o_,Bw,Nw())(t)}var s_={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"初始",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}};(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return s_},e.prototype.changeData=function(t){var e=this.options,n=e.colorField,r=e.interactions,i=e.hierarchyConfig;this.updateOption({data:t});var o=t_({data:t,colorField:n,enableDrillDown:QB(r,"treemap-drill-down"),hierarchyConfig:i});this.chart.changeData(o),JB(this.chart)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a_}})(cw);function l_(t){return t.target.depth}function u_(t){return t.depth}function c_(t,e){return e-1-t.height}function h_(t,e){return t.sourceLinks.length?t.depth:e-1}function f_(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?(0,E.F)(t.sourceLinks,l_)-1:0}function p_(t){return function(){return t}}function d_(t,e){for(var n=0,r=0;r<t.length;r++)n+=e(t[r]);return n}function g_(t,e){for(var n=-1/0,r=0;r<t.length;r++)n=Math.max(e(t[r]),n);return n}function v_(t,e){for(var n=1/0,r=0;r<t.length;r++)n=Math.min(e(t[r]),n);return n}function m_(t,e){return b_(t.source,e.source)||t.index-e.index}function y_(t,e){return b_(t.target,e.target)||t.index-e.index}function b_(t,e){return t.y0-e.y0}function x_(t){return t.value}function w_(t){return t.index}function C_(t){return t.nodes}function S_(t){return t.links}function A_(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function E_(t){for(var e=t.nodes,n=0,r=e;n<r.length;n++){for(var i=r[n],o=i.y0,a=o,s=0,l=i.sourceLinks;s<l.length;s++){var u=l[s];u.y0=o+u.width/2,o+=u.width}for(var c=0,h=i.targetLinks;c<h.length;c++){u=h[c];u.y1=a+u.width/2,a+=u.width}}}function k_(){var t,e,n,r,i=0,o=0,a=1,s=1,l=24,u=8,c=w_,h=h_,f=C_,p=S_,d=6;function g(t){var e={nodes:f(t),links:p(t)};return v(e),m(e),y(e),b(e),C(e),E_(e),e}function v(t){var e=t.nodes,n=t.links;e.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var i=new Map(e.map((function(t){return[c(t),t]})));if(n.forEach((function(t,e){t.index=e;var n=t.source,r=t.target;"object"!==typeof n&&(n=t.source=A_(i,n)),"object"!==typeof r&&(r=t.target=A_(i,r)),n.sourceLinks.push(t),r.targetLinks.push(t)})),null!=r)for(var o=0,a=e;o<a.length;o++){var s=a[o],l=s.sourceLinks,u=s.targetLinks;l.sort(r),u.sort(r)}}function m(t){for(var e=t.nodes,n=0,r=e;n<r.length;n++){var i=r[n];i.value=void 0===i.fixedValue?Math.max(d_(i.sourceLinks,x_),d_(i.targetLinks,x_)):i.fixedValue}}function y(t){var n=t.nodes,r=n.length,i=new Set(n),o=new Set,a=0;while(i.size){if(i.forEach((function(t){t.depth=a;for(var e=0,n=t.sourceLinks;e<n.length;e++){var r=n[e].target;o.add(r)}})),++a>r)throw new Error("circular link");i=o,o=new Set}if(e)for(var s=Math.max(g_(n,(function(t){return t.depth}))+1,0),l=void 0,u=0;u<n.length;u++)l=n[u],l.depth=e.call(null,l,s)}function b(t){var e=t.nodes,n=e.length,r=new Set(e),i=new Set,o=0;while(r.size){if(r.forEach((function(t){t.height=o;for(var e=0,n=t.targetLinks;e<n.length;e++){var r=n[e].source;i.add(r)}})),++o>n)throw new Error("circular link");r=i,i=new Set}}function x(t){for(var e=t.nodes,r=Math.max(g_(e,(function(t){return t.depth}))+1,0),o=(a-i-l)/(r-1),s=new Array(r).fill(0).map((function(){return[]})),u=0,c=e;u<c.length;u++){var f=c[u],p=Math.max(0,Math.min(r-1,Math.floor(h.call(null,f,r))));f.layer=p,f.x0=i+p*o,f.x1=f.x0+l,s[p]?s[p].push(f):s[p]=[f]}if(n)for(var d=0,g=s;d<g.length;d++){var v=g[d];v.sort(n)}return s}function w(e){for(var n=v_(e,(function(e){return(s-o-(e.length-1)*t)/d_(e,x_)})),r=0,i=e;r<i.length;r++){for(var a=i[r],l=o,u=0,c=a;u<c.length;u++){var h=c[u];h.y0=l,h.y1=l+h.value*n,l=h.y1+t;for(var f=0,p=h.sourceLinks;f<p.length;f++){var d=p[f];d.width=d.value*n}}l=(s-l+t)/(a.length+1);for(var g=0;g<a.length;++g){h=a[g];h.y0+=l*(g+1),h.y1+=l*(g+1)}M(a)}}function C(e){var n=x(e);t=Math.min(u,(s-o)/(g_(n,(function(t){return t.length}))-1)),w(n);for(var r=0;r<d;++r){var i=Math.pow(.99,r),a=Math.max(1-i,(r+1)/d);A(n,i,a),S(n,i,a)}}function S(t,e,r){for(var i=1,o=t.length;i<o;++i){for(var a=t[i],s=0,l=a;s<l.length;s++){for(var u=l[s],c=0,h=0,f=0,p=u.targetLinks;f<p.length;f++){var d=p[f],g=d.source,v=d.value,m=v*(u.layer-g.layer);c+=O(g,u)*m,h+=m}if(h>0){var y=(c/h-u.y0)*e;u.y0+=y,u.y1+=y,F(u)}}void 0===n&&a.sort(b_),a.length&&E(a,r)}}function A(t,e,r){for(var i=t.length,o=i-2;o>=0;--o){for(var a=t[o],s=0,l=a;s<l.length;s++){for(var u=l[s],c=0,h=0,f=0,p=u.sourceLinks;f<p.length;f++){var d=p[f],g=d.target,v=d.value,m=v*(g.layer-u.layer);c+=T(u,g)*m,h+=m}if(h>0){var y=(c/h-u.y0)*e;u.y0+=y,u.y1+=y,F(u)}}void 0===n&&a.sort(b_),a.length&&E(a,r)}}function E(e,n){var r=e.length>>1,i=e[r];D(e,i.y0-t,r-1,n),k(e,i.y1+t,r+1,n),D(e,s,e.length-1,n),k(e,o,0,n)}function k(e,n,r,i){for(;r<e.length;++r){var o=e[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function D(e,n,r,i){for(;r>=0;--r){var o=e[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function F(t){var e=t.sourceLinks,n=t.targetLinks;if(void 0===r){for(var i=0,o=n;i<o.length;i++){var a=o[i].source.sourceLinks;a.sort(y_)}for(var s=0,l=e;s<l.length;s++){var u=l[s].target.targetLinks;u.sort(m_)}}}function M(t){if(void 0===r)for(var e=0,n=t;e<n.length;e++){var i=n[e],o=i.sourceLinks,a=i.targetLinks;o.sort(y_),a.sort(m_)}}function O(e,n){for(var r=e.y0-(e.sourceLinks.length-1)*t/2,i=0,o=e.sourceLinks;i<o.length;i++){var a=o[i],s=a.target,l=a.width;if(s===n)break;r+=l+t}for(var u=0,c=n.targetLinks;u<c.length;u++){var h=c[u];s=h.source,l=h.width;if(s===e)break;r-=l}return r}function T(e,n){for(var r=n.y0-(n.targetLinks.length-1)*t/2,i=0,o=n.targetLinks;i<o.length;i++){var a=o[i],s=a.source,l=a.width;if(s===e)break;r+=l+t}for(var u=0,c=e.sourceLinks;u<c.length;u++){var h=c[u];s=h.target,l=h.width;if(s===n)break;r-=l}return r}return g.update=function(t){return E_(t),t},g.nodeId=function(t){return arguments.length?(c="function"===typeof t?t:p_(t),g):c},g.nodeAlign=function(t){return arguments.length?(h="function"===typeof t?t:p_(t),g):h},g.nodeDepth=function(t){return arguments.length?(e=t,g):e},g.nodeSort=function(t){return arguments.length?(n=t,g):n},g.nodeWidth=function(t){return arguments.length?(l=+t,g):l},g.nodePadding=function(e){return arguments.length?(u=t=+e,g):u},g.nodes=function(t){return arguments.length?(f="function"===typeof t?t:p_(t),g):f},g.links=function(t){return arguments.length?(p="function"===typeof t?t:p_(t),g):p},g.linkSort=function(t){return arguments.length?(r=t,g):r},g.size=function(t){return arguments.length?(i=o=0,a=+t[0],s=+t[1],g):[a-i,s-o]},g.extent=function(t){return arguments.length?(i=+t[0][0],a=+t[1][0],o=+t[0][1],s=+t[1][1],g):[[i,o],[a,s]]},g.iterations=function(t){return arguments.length?(d=+t,g):d},g}var D_={left:u_,right:c_,center:f_,justify:h_},F_={nodeId:function(t){return t.index},nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodeSort:void 0};function M_(t){var e=(0,E.HD)(t)?D_[t]:(0,E.mf)(t)?t:null;return e||h_}function O_(t){return(0,E.f0)({},F_,t)}function T_(t,e){var n=O_(t),r=n.nodeId,i=n.nodeSort,o=n.nodeAlign,a=n.nodeWidth,s=n.nodePadding,l=n.nodeDepth,u=k_().nodeSort(i).nodeWidth(a).nodePadding(s).nodeDepth(l).nodeAlign(M_(o)).extent([[0,0],[1,1]]).nodeId(r),c=u(e),h=c.nodes.map((function(t){var e=t.x0,n=t.x1,r=t.y0,i=t.y1;return t.x=[e,n,n,e],t.y=[r,r,i,i],t})).filter((function(t){return null!==t.name})),f=c.links.map((function(t){var e=t.source,n=t.target,r=e.x1,i=n.x0;t.x=[r,r,i,i];var o=t.width/2;return t.y=[t.y0+o,t.y0-o,t.y1+o,t.y1-o],t})).filter((function(t){var e=t.source,n=t.target;return null!==e.name&&null!==n.name}));return{nodes:h,links:f}}function B_(t,e,n){var r=[];return t.forEach((function(t){var i=t[e],o=t[n];r.includes(i)||r.push(i),r.includes(o)||r.push(o)})),r}function __(t,e,n,r){var i={};return e.forEach((function(t){i[t]={},e.forEach((function(e){i[t][e]=0}))})),t.forEach((function(t){i[t[n]][t[r]]=1})),i}function I_(t,e,n){if(!(0,E.kJ)(t))return[];var r=[],i=B_(t,e,n),o=__(t,i,e,n),a={};function s(t){a[t]=1,i.forEach((function(e){if(0!=o[t][e])if(1==a[e])r.push(t+"_"+e);else{if(-1==a[e])return;s(e)}})),a[t]=-1}return i.forEach((function(t){a[t]=0})),i.forEach((function(t){-1!=a[t]&&s(t)})),0!==r.length&&console.warn("sankey data contains circle, "+r.length+" records removed.",r),t.filter((function(t){return r.findIndex((function(r){return r===t[e]+"_"+t[n]}))<0}))}function P_(t){return"node-link"===t}function L_(t,e,n){return qx(t)?t/n:e}function R_(t,e,n){return qx(t)?t/n:e}function N_(t,e,n){var r,i=t.dataType,o=t.data,a=t.sourceField,s=t.targetField,l=t.weightField,u=t.nodeAlign,c=t.nodeSort,h=t.nodePadding,f=t.nodePaddingRatio,p=t.nodeWidth,d=t.nodeWidthRatio,g=t.nodeDepth,v=t.rawFields,m=void 0===v?[]:v;r=P_(i)?o:Yx(I_(o,a,s),a,s,l,m);var y=T_({nodeAlign:u,nodePadding:R_(h,f,n),nodeWidth:L_(p,d,e),nodeSort:c,nodeDepth:g},r),b=y.nodes,x=y.links;return{nodes:b.map((function(t){return(0,A.pi)((0,A.pi)({},dx(t,(0,A.pr)(["x","y","name"],m))),{isNode:!0})})),edges:x.map((function(t){return(0,A.pi)((0,A.pi)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},dx(t,(0,A.pr)(["x","y","value"],m))),{isNode:!1})}))}}var j_="x",z_="y",U_="name",V_="nodes",H_="edges";function $_(t){var e=t.options,n=e.rawFields,r=void 0===n?[]:n;return jx({},{options:{tooltip:{fields:(0,E.jj)((0,A.pr)(["name","source","target","value","isNode"],r))},label:{fields:(0,E.jj)((0,A.pr)(["x","name"],r))}}},t)}function G_(t){var e=t.chart,n=t.options,r=n.color,i=n.nodeStyle,o=n.edgeStyle,a=n.label,s=n.tooltip,l=n.nodeState,u=n.edgeState;e.legend(!1),e.tooltip(s),e.axis(!1),e.coordinate().reflect("y");var c=N_(n,e.width,e.height),h=c.nodes,f=c.edges,p=e.createView({id:H_});p.data(f),Qw({chart:p,options:{xField:j_,yField:z_,seriesField:U_,edge:{color:r,style:o,shape:"arc"},tooltip:s,state:u}});var d=e.createView({id:V_});return d.data(h),Yw({chart:d,options:{xField:j_,yField:z_,seriesField:U_,polygon:{color:r,style:i},label:a,tooltip:s,state:l}}),e.interaction("element-active"),e.scale({x:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},y:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},name:{sync:"color",type:"cat"}}),t}function W_(t){var e=t.chart,n=t.options,r=n.animation;"boolean"===typeof r?e.animate(r):e.animate(!0);var i=(0,A.pr)(e.views[0].geometries,e.views[1].geometries);return i.forEach((function(t){t.animate(r)})),t}function q_(t){var e=t.chart,n=t.options,r=n.nodeDraggable,i="sankey-node-draggable";return r?e.interaction(i):e.removeInteraction(i),t}function X_(t){var e=t.chart,n=t.options,r=n.interactions,i=void 0===r?[]:r,o=[].concat(i,n.nodeInteractions||[]),a=[].concat(i,n.edgeInteractions||[]),s=Ax(e,V_),l=Ax(e,H_);return o.forEach((function(t){!1===(null===t||void 0===t?void 0:t.enable)?s.removeInteraction(t.type):s.interaction(t.type,t.cfg||{})})),a.forEach((function(t){!1===(null===t||void 0===t?void 0:t.enable)?l.removeInteraction(t.type):l.interaction(t.type,t.cfg||{})})),t}function Z_(t){return px($_,G_,X_,q_,W_,_w)(t)}var Y_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isDragging=!1,e}return(0,A.ZT)(e,t),e.prototype.isNodeElement=function(){var t=(0,E.U2)(this.context,"event.target");if(t){var e=t.get("element");return e&&e.getModel().data.isNode}return!1},e.prototype.getNodeView=function(){return Ax(this.context.view,V_)},e.prototype.getEdgeView=function(){return Ax(this.context.view,H_)},e.prototype.getCurrentDatumIdx=function(t){return this.getNodeView().geometries[0].elements.indexOf(t)},e.prototype.start=function(){if(this.isNodeElement()){this.prevPoint={x:(0,E.U2)(this.context,"event.x"),y:(0,E.U2)(this.context,"event.y")};var t=this.context.event.target.get("element"),e=this.getCurrentDatumIdx(t);if(-1===e)return;this.currentElementIdx=e,this.context.isDragging=!0,this.isDragging=!0,this.prevNodeAnimateCfg=this.getNodeView().getOptions().animate,this.prevEdgeAnimateCfg=this.getEdgeView().getOptions().animate,this.getNodeView().animate(!1),this.getEdgeView().animate(!1)}},e.prototype.translate=function(){if(this.isDragging){var t=this.context.view,e={x:(0,E.U2)(this.context,"event.x"),y:(0,E.U2)(this.context,"event.y")},n=e.x-this.prevPoint.x,r=e.y-this.prevPoint.y,i=this.getNodeView(),o=i.geometries[0].elements[this.currentElementIdx];if(o&&o.getModel()){var a=o.getModel().data,s=i.getOptions().data,l=i.getCoordinate(),u={x:n/l.getWidth(),y:r/l.getHeight()},c=(0,A.pi)((0,A.pi)({},a),{x:a.x.map((function(t){return t+u.x})),y:a.y.map((function(t){return t+u.y}))}),h=(0,A.pr)(s);h[this.currentElementIdx]=c,i.data(h);var f=a.name,p=this.getEdgeView(),d=p.getOptions().data;d.forEach((function(t){t.source===f&&(t.x[0]+=u.x,t.x[1]+=u.x,t.y[0]+=u.y,t.y[1]+=u.y),t.target===f&&(t.x[2]+=u.x,t.x[3]+=u.x,t.y[2]+=u.y,t.y[3]+=u.y)})),p.data(d),this.prevPoint=e,t.render(!0)}}},e.prototype.end=function(){this.isDragging=!1,this.context.isDragging=!1,this.prevPoint=null,this.currentElementIdx=null,this.getNodeView().animate(this.prevNodeAnimateCfg),this.getEdgeView().animate(this.prevEdgeAnimateCfg)},e}(Hs);Zs("sankey-node-drag",Y_),Wl("sankey-node-draggable",{showEnable:[{trigger:"polygon:mouseenter",action:"cursor:pointer"},{trigger:"polygon:mouseleave",action:"cursor:default"}],start:[{trigger:"polygon:mousedown",action:"sankey-node-drag:start"}],processing:[{trigger:"plot:mousemove",action:"sankey-node-drag:translate"},{isEnable:function(t){return t.isDragging},trigger:"plot:mousemove",action:"cursor:move"}],end:[{trigger:"plot:mouseup",action:"sankey-node-drag:end"}]});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sankey",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return{appendPadding:8,syncViewPadding:!0,nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.3,lineWidth:0},edgeState:{active:{style:{opacity:.8,lineWidth:0}}},label:{formatter:function(t){var e=t.name;return e},callback:function(t){var e=1===t[1];return{style:{fill:"#545454",textAlign:e?"end":"start"},offsetX:e?-8:8}},layout:[{type:"hide-overlap"}]},tooltip:{showTitle:!1,showMarkers:!1,shared:!1,showContent:function(t){return!(0,E.U2)(t,[0,"data","isNode"])},formatter:function(t){var e=t.source,n=t.target,r=t.value;return{name:e+" -> "+n,value:r}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},e.prototype.changeData=function(t){this.updateOption({data:t});var e=N_(this.options,this.chart.width,this.chart.height),n=e.nodes,r=e.edges,i=Ax(this.chart,V_),o=Ax(this.chart,H_);i.changeData(n),o.changeData(r)},e.prototype.getSchemaAdaptor=function(){return Z_},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(cw);var Q_={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null};function K_(t,e,n){(0,E.U5)(t,(function(t,r){t.inEdges=e.filter((function(t){return""+n.target(t)===""+r})),t.outEdges=e.filter((function(t){return""+n.source(t)===""+r})),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach((function(e){t.value+=n.targetWeight(e)})),t.outEdges.forEach((function(e){t.value+=n.sourceWeight(e)}))}))}function J_(t,e){var n={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return(""+e.id(t)).localeCompare(""+e.id(n))}},r=n[e.sortBy];!r&&(0,E.mf)(e.sortBy)&&(r=e.sortBy),r&&t.sort(r)}function tI(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var r=e.nodePaddingRatio;if(r<0||r>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var i=r/(2*n),o=e.nodeWidthRatio;if(o<=0||o>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var a=0;t.forEach((function(t){a+=t.value})),t.forEach((function(t){t.weight=t.value/a,t.width=t.weight*(1-r),t.height=o})),t.forEach((function(n,r){for(var a=0,s=r-1;s>=0;s--)a+=t[s].width+2*i;var l=n.minX=i+a,u=n.maxX=n.minX+n.width,c=n.minY=e.y-o/2,h=n.maxY=c+o;n.x=[l,u,u,l],n.y=[c,c,h,h]}))}else{var s=1/n;t.forEach((function(t,n){t.x=(n+.5)*s,t.y=e.y}))}return t}function eI(t,e,n){if(n.weight){var r={};(0,E.U5)(t,(function(t,e){r[e]=t.value})),e.forEach((function(e){var i=n.source(e),o=n.target(e),a=t[i],s=t[o];if(a&&s){var l=r[i],u=n.sourceWeight(e),c=a.minX+(a.value-l)/a.value*a.width,h=c+u/a.value*a.width;r[i]-=u;var f=r[o],p=n.targetWeight(e),d=s.minX+(s.value-f)/s.value*s.width,g=d+p/s.value*s.width;r[o]-=p;var v=n.y;e.x=[c,h,d,g],e.y=[v,v,v,v],e.source=a,e.target=s}}))}else e.forEach((function(e){var r=t[n.source(e)],i=t[n.target(e)];r&&i&&(e.x=[r.x,i.x],e.y=[r.y,i.y],e.source=r,e.target=i)}));return e}function nI(t){return(0,E.f0)({},Q_,t)}function rI(t,e){var n=nI(t),r={},i=e.nodes,o=e.links;i.forEach((function(t){var e=n.id(t);r[e]=t})),K_(r,o,n),J_(i,n);var a=tI(i,n),s=eI(r,o,n);return{nodes:a,links:s}}var iI="x",oI="y",aI="name",sI="source",lI={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){var n=(t[0]+t[1])/2,r=n>.5?-4:4;return{labelEmit:!0,style:{fill:"#8c8c8c"},offsetX:r,content:e}}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!(0,E.U2)(t,[0,"data","isNode"])},formatter:function(t){var e=t.source,n=t.target,r=t.value;return{name:e+" -> "+n,value:r}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function uI(t){var e=t.options,n=e.data,r=e.sourceField,i=e.targetField,o=e.weightField,a=e.nodePaddingRatio,s=e.nodeWidthRatio,l=e.rawFields,u=void 0===l?[]:l,c=Yx(n,r,i,o),h=rI({weight:!0,nodePaddingRatio:a,nodeWidthRatio:s},c),f=h.nodes,p=h.links,d=f.map((function(t){return(0,A.pi)((0,A.pi)({},dx(t,(0,A.pr)(["id","x","y","name"],u))),{isNode:!0})})),g=p.map((function(t){return(0,A.pi)((0,A.pi)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},dx(t,(0,A.pr)(["x","y","value"],u))),{isNode:!1})}));return(0,A.pi)((0,A.pi)({},t),{ext:(0,A.pi)((0,A.pi)({},t.ext),{chordData:{nodesData:d,edgesData:g}})})}function cI(t){var e,n=t.chart;return n.scale((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}},e[aI]={sync:"color"},e[sI]={sync:"color"},e)),t}function hI(t){var e=t.chart;return e.axis(!1),t}function fI(t){var e=t.chart;return e.legend(!1),t}function pI(t){var e=t.chart,n=t.options,r=n.tooltip;return e.tooltip(r),t}function dI(t){var e=t.chart;return e.coordinate("polar").reflect("y"),t}function gI(t){var e=t.chart,n=t.options,r=t.ext.chordData.nodesData,i=n.nodeStyle,o=n.label,a=n.tooltip,s=e.createView();return s.data(r),Yw({chart:s,options:{xField:iI,yField:oI,seriesField:aI,polygon:{style:i},label:o,tooltip:a}}),t}function vI(t){var e=t.chart,n=t.options,r=t.ext.chordData.edgesData,i=n.edgeStyle,o=n.tooltip,a=e.createView();a.data(r);var s={xField:iI,yField:oI,seriesField:sI,edge:{style:i,shape:"arc"},tooltip:o};return Qw({chart:a,options:s}),t}function mI(t){var e=t.chart,n=t.options,r=n.animation;return"boolean"===typeof r?e.animate(r):e.animate(!0),(0,E.S6)(Sx(e),(function(t){t.animate(r)})),t}function yI(t){return px(_w,uI,dI,cI,hI,fI,pI,vI,gI,Tw,Iw,mI)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return lI},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return yI}})(cw);var bI={field:"value",as:["x","y","r"],sort:function(t,e){return e.value-t.value}};function xI(t,e){e=(0,E.f0)({},bI,e);var n,r=e.as;if(!(0,E.kJ)(r)||3!==r.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{n=UM(e)}catch(u){console.warn(u)}var i=function(t){return iT().size(e.size).padding(e.padding)(bO(t).sum((function(t){return t[n]})).sort(e.sort))},o=i(t),a=r[0],s=r[1],l=r[2];return o.each((function(t){t[a]=t.x,t[s]=t.y,t[l]=t.r})),VM(o)}function wI(t){var e=t.data,n=t.hierarchyConfig,r=t.rawFields,i=void 0===r?[]:r,o=t.enableDrillDown,a=xI(e,(0,A.pi)((0,A.pi)({},n),{field:"value",as:["x","y","r"]})),s=[];return a.forEach((function(t){var e,r=t.data.name,a=(0,A.pi)({},t);while(a.depth>1)r=(null===(e=a.parent.data)||void 0===e?void 0:e.name)+" / "+r,a=a.parent;if(o&&t.depth>2)return null;var l=jx({},t.data,(0,A.pi)((0,A.pi)((0,A.pi)({},dx(t.data,i)),{path:r}),t));l.ext=n,l[JM]={hierarchyConfig:n,rawFields:i,enableDrillDown:o},s.push(l)})),s}function CI(t,e,n){var r=tw([t,e]),i=r[0],o=r[1],a=r[2],s=r[3],l=n.width,u=n.height,c=l-(s+o),h=u-(i+a),f=Math.min(c,h),p=(c-f)/2,d=(h-f)/2,g=i+d,v=o+p,m=a+d,y=s+p,b=[g,v,m,y],x=f<0?0:f;return{finalPadding:b,finalSize:x}}var SI=["x","y","r","name","value","path","depth"],AI={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}};function EI(t){var e=t.chart,n=Math.min(e.viewBBox.width,e.viewBBox.height);return jx({options:{size:function(t){var e=t.r;return e*n}}},t)}function kI(t){var e=t.options,n=t.chart,r=n.viewBBox,i=e.padding,o=e.appendPadding,a=e.drilldown,s=o;if(null===a||void 0===a?void 0:a.enabled){var l=Jx(n.appendPadding,(0,E.U2)(a,["breadCrumb","position"]));s=tw([l,o])}var u=CI(i,s,r).finalPadding;return n.padding=u,n.appendPadding=0,t}function DI(t){var e=t.chart,n=t.options,r=e.padding,i=e.appendPadding,o=n.color,a=n.colorField,s=n.pointStyle,l=n.hierarchyConfig,u=n.sizeField,c=n.rawFields,h=void 0===c?[]:c,f=n.drilldown,p=wI({data:n.data,hierarchyConfig:l,enableDrillDown:null===f||void 0===f?void 0:f.enabled,rawFields:h});e.data(p);var d=e.viewBBox,g=CI(r,i,d).finalSize,v=function(t){var e=t.r;return e*g};return u&&(v=function(t){return t[u]*g}),qw(jx({},t,{options:{xField:"x",yField:"y",seriesField:a,sizeField:u,rawFields:(0,A.pr)(SI,h),point:{color:o,style:s,shape:"circle",size:v}}})),t}function FI(t){return px(Rw({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(t)}function MI(t){var e=t.chart,n=t.options,r=n.tooltip;if(!1===r)e.tooltip(!1);else{var i=r;(0,E.U2)(r,"fields")||(i=jx({},{customItems:function(t){return t.map((function(t){var n=(0,E.U2)(e.getOptions(),"scales"),r=(0,E.U2)(n,["name","formatter"],(function(t){return t})),i=(0,E.U2)(n,["value","formatter"],(function(t){return t}));return(0,A.pi)((0,A.pi)({},t),{name:r(t.data.name),value:i(t.data.value)})}))}},i)),e.tooltip(i)}return t}function OI(t){var e=t.chart;return e.axis(!1),t}function TI(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n;return(null===e||void 0===e?void 0:e.enabled)?jx({},t,{interactions:(0,A.pr)(r,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:wI,enableDrillDown:!0}}])}):t}function BI(t){var e=t.chart,n=t.options;return Tw({chart:e,options:TI(n)}),t}function _I(t){return px(Fw("pointStyle"),EI,kI,_w,FI,DI,OI,Mw,MI,BI,Bw,Nw())(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-packing",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return AI},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return _I},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}})(cw),function(t){function e(e,n,r,i){var o=t.call(this,e,jx({},i,n))||this;return o.type="g2-plot",o.defaultOptions=i,o.adaptor=r,o}(0,A.ZT)(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor}}(cw);var II={line:sC,pie:xS,column:GC,bar:JC,area:mC,gauge:sB,"tiny-line":DE,"tiny-column":OE,"tiny-area":EE,"ring-progress":rk,progress:JE,scatter:TA,histogram:WE,funnel:sM,stock:DF},PI={line:cC,pie:wS,column:qC,bar:eS,area:bC,gauge:lB,"tiny-line":FE,"tiny-column":_E,"tiny-area":PE,"ring-progress":ok,progress:tk,scatter:_A,histogram:qE,funnel:lM,stock:MF},LI={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function RI(t,e,n){var r=PI[t];if(r){var i=II[t];i({chart:e,options:jx({},r.getDefaultOptions(),(0,E.U2)(LI,t,{}),n)})}else console.error("could not find "+t+" plot")}function NI(t){var e=t.chart,n=t.options,r=n.views,i=n.legend;return(0,E.S6)(r,(function(t){var n=t.region,r=t.data,i=t.meta,o=t.axes,a=t.coordinate,s=t.interactions,l=t.annotations,u=t.tooltip,c=t.geometries,h=e.createView({region:n});h.data(r);var f={};o&&(0,E.S6)(o,(function(t,e){f[e]=dx(t,hw)})),f=jx({},i,f),h.scale(f),o?(0,E.S6)(o,(function(t,e){h.axis(e,t)})):h.axis(!1),h.coordinate(a),(0,E.S6)(c,(function(t){var e=$w({chart:h,options:t}).ext,n=t.adjust;n&&e.geometry.adjust(n)})),(0,E.S6)(s,(function(t){!1===t.enable?h.removeInteraction(t.type):h.interaction(t.type,t.cfg)})),(0,E.S6)(l,(function(t){h.annotation()[t.type]((0,A.pi)({},t))})),"boolean"===typeof t.animation?h.animate(!1):(h.animate(!0),(0,E.S6)(h.geometries,(function(e){e.animate(t.animation)}))),u&&(h.interaction("tooltip"),h.tooltip(u))})),i?(0,E.S6)(i,(function(t,n){e.legend(n,t)})):e.legend(!1),e.tooltip(n.tooltip),t}function jI(t){var e=t.chart,n=t.options,r=n.plots,i=n.data,o=void 0===i?[]:i;return(0,E.S6)(r,(function(t){var n=t.type,r=t.region,i=t.options,a=void 0===i?{}:i,s=t.top,l=a.tooltip;if(s)RI(n,e,(0,A.pi)((0,A.pi)({},a),{data:o}));else{var u=e.createView((0,A.pi)({region:r},dx(a,uw)));l&&u.interaction("tooltip"),RI(n,u,(0,A.pi)({data:o},a))}})),t}function zI(t){var e=t.chart,n=t.options;return e.option("slider",n.slider),t}function UI(t){return px(Bw,NI,jI,Tw,Bw,_w,Ow,zI,Nw())(t)}function VI(t,e){var n,r=t.getModel(),i=r.data;return n=(0,E.kJ)(i)?i[0][e]:i[e],n}function HI(t){var e=wx(t);(0,E.S6)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}var $I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,A.ZT)(e,t),e.prototype.getAssociationItems=function(t,e){var n,r=this.context.event,i=e||{},o=i.linkField,a=i.dim,s=[];if(null===(n=r.data)||void 0===n?void 0:n.data){var l=r.data.data;(0,E.S6)(t,(function(t){var e,n,r=o;if("x"===a?r=t.getXScale().field:"y"===a?r=null===(e=t.getYScales().find((function(t){return t.field===r})))||void 0===e?void 0:e.field:r||(r=null===(n=t.getGroupScales()[0])||void 0===n?void 0:n.field),r){var i=(0,E.UI)(wx(t),(function(e){var n=!1,i=!1,o=(0,E.kJ)(l)?(0,E.U2)(l[0],r):(0,E.U2)(l,r);return VI(e,r)===o?n=!0:i=!0,{element:e,view:t,active:n,inactive:i}}));s.push.apply(s,i)}}))}return s},e.prototype.showTooltip=function(t){var e=kx(this.context.view),n=this.getAssociationItems(e,t);(0,E.S6)(n,(function(t){if(t.active){var e=t.element.shape.getCanvasBBox();t.view.showTooltip({x:e.minX+e.width/2,y:e.minY+e.height/2})}}))},e.prototype.hideTooltip=function(){var t=kx(this.context.view);(0,E.S6)(t,(function(t){t.hideTooltip()}))},e.prototype.active=function(t){var e=Ex(this.context.view),n=this.getAssociationItems(e,t);(0,E.S6)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("active",!0)}))},e.prototype.selected=function(t){var e=Ex(this.context.view),n=this.getAssociationItems(e,t);(0,E.S6)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("selected",!0)}))},e.prototype.highlight=function(t){var e=Ex(this.context.view),n=this.getAssociationItems(e,t);(0,E.S6)(n,(function(t){var e=t.inactive,n=t.element;e&&n.setState("inactive",!0)}))},e.prototype.reset=function(){var t=Ex(this.context.view);(0,E.S6)(t,(function(t){HI(t)}))},e}(Hs);Zs("association",$I),Wl("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Wl("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Wl("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Wl("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var GI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="mix",e}return(0,A.ZT)(e,t),e.prototype.getSchemaAdaptor=function(){return UI},e}(cw);function WI(t,e){var n=e.data,r=e.coordinate,i=e.interactions,o=e.annotations,a=e.animation,s=e.tooltip,l=e.axes,u=e.meta,c=e.geometries;n&&t.data(n);var h={};l&&(0,E.S6)(l,(function(t,e){h[e]=dx(t,hw)})),h=jx({},u,h),t.scale(h),r&&t.coordinate(r),!1===l?t.axis(!1):(0,E.S6)(l,(function(e,n){t.axis(n,e)})),(0,E.S6)(c,(function(e){var n=$w({chart:t,options:e}).ext,r=e.adjust;r&&n.geometry.adjust(r)})),(0,E.S6)(i,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)})),(0,E.S6)(o,(function(e){t.annotation()[e.type]((0,A.pi)({},e))})),"boolean"===typeof a?t.animate(!1):(t.animate(!0),(0,E.S6)(t.geometries,(function(t){t.animate(a)}))),s?(t.interaction("tooltip"),t.tooltip(s)):!1===s&&t.removeInteraction("tooltip")}function qI(t){var e=t.chart,n=t.options,r=n.type,i=n.data,o=n.fields,a=n.eachView,s=(0,E.CE)(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return e.data(i),e.facet(r,(0,A.pi)((0,A.pi)({},s),{fields:o,eachView:function(t,e){var n=a(t,e);if(n.geometries)WI(t,n);else{var r=n,i=r.options;i.tooltip&&t.interaction("tooltip"),RI(r.type,t,i)}}})),t}function XI(t){var e=t.chart,n=t.options,r=n.axes,i=n.meta,o=n.tooltip,a=n.coordinate,s=n.theme,l=n.legend,u=n.interactions,c=n.annotations,h={};return r&&(0,E.S6)(r,(function(t,e){h[e]=dx(t,hw)})),h=jx({},i,h),e.scale(h),e.coordinate(a),r?(0,E.S6)(r,(function(t,n){e.axis(n,t)})):e.axis(!1),o?(e.interaction("tooltip"),e.tooltip(o)):!1===o&&e.removeInteraction("tooltip"),e.legend(l),s&&e.theme(s),(0,E.S6)(u,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)})),(0,E.S6)(c,(function(t){e.annotation()[t.type]((0,A.pi)({},t))})),t}function ZI(t){return px(_w,qI,XI)(t)}var YI,QI={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}};(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}(0,A.ZT)(e,t),e.getDefaultOptions=function(){return QI},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return ZI}})(cw);function KI(t,e){console.warn(t===YI.DEV?"Plot '"+e+"' is in DEV stage, just give us issues.":t===YI.BETA?"Plot '"+e+"' is in BETA stage, DO NOT use it in production env.":t===YI.STABLE?"Plot '"+e+"' is in STABLE stage, import it by \"import { "+e+" } from '@antv/g2plot'\".":"invalid Stage type.")}(function(t){t["DEV"]="DEV",t["BETA"]="BETA",t["STABLE"]="STABLE"})(YI||(YI={}));(function(){function t(){}Object.defineProperty(t,"MultiView",{get:function(){return KI(YI.STABLE,"MultiView"),GI},enumerable:!1,configurable:!0})})();rw("en-US",ow),rw("zh-CN",aw);var JI={data:function(){return{radio:1,chartLine:function(){}}},methods:{renderLine:function(){this.chartLine=new cC("container",{data:[],xField:"time",yField:"bytes",label:{},yAxis:{},meta:{time:{alias:"时间"},bytes:{alias:"容量"}},point:{size:0,shape:"diamond",style:{fill:"white",stroke:"#5B8FF9",lineWidth:2}},tooltip:{showMarkers:!1},state:{active:{style:{shadowBlur:4,stroke:"#000",fill:"blue"}}},interactions:[{type:"marker-active"}]}),this.chartLine.render(),this.getLineChartOfStorage()},getLineChartOfStorage:function(){var t=this;return(0,S.Z)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={classname:"webmanage.dataanalysis.MediaCenter",method:"getLineChartOfStorage",content:{date:"2022-06-06",type:t.radio}},e.next=3,t.$api.requested(n);case 3:r=e.sent,t.chartLine.changeData(r.data);case 5:case"end":return e.stop()}}),e)})))()}},mounted:function(){this.renderLine()}},tP=JI,eP=n(1001),nP=(0,eP.Z)(tP,w,C,!1,null,"b55bd090",null),rP=nP.exports,iP=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"flex-align-center flex-between"},[n("p",{staticClass:"title"},[t._v("下载流量")]),n("el-radio-group",{attrs:{size:"small"},on:{change:t.getLineChartOfDownload},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[n("el-radio-button",{attrs:{label:1}},[t._v("年")]),n("el-radio-button",{attrs:{label:2}},[t._v("月")]),n("el-radio-button",{attrs:{label:3}},[t._v("日")])],1)],1),n("div",{attrs:{id:"container_t"}})])},oP=[],aP={data:function(){return{radio:1,chartLine:function(){}}},methods:{renderLine:function(){this.chartLine=new cC("container_t",{data:[],xField:"time",yField:"bytes",label:{},yAxis:{},meta:{time:{alias:"时间"},bytes:{alias:"容量"}},point:{size:0,shape:"diamond",style:{fill:"white",stroke:"#5B8FF9",lineWidth:2}},tooltip:{showMarkers:!1},state:{active:{style:{shadowBlur:4,stroke:"#000",fill:"blue"}}},interactions:[{type:"marker-active"}]}),this.chartLine.render(),this.getLineChartOfDownload()},getLineChartOfDownload:function(){var t=this;return(0,S.Z)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={classname:"webmanage.dataanalysis.MediaCenter",method:"getLineChartOfDownload",content:{date:"2022-06-06",type:t.radio}},e.next=3,t.$api.requested(n);case 3:r=e.sent,t.chartLine.changeData(r.data);case 5:case"end":return e.stop()}}),e)})))()}},mounted:function(){this.renderLine()}},sP=aP,lP=(0,eP.Z)(sP,iP,oP,!1,null,"3d4b1356",null),uP=lP.exports,cP=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},hP=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",{staticClass:"title"},[t._v("文件类型存储占比")]),n("div",{attrs:{id:"container_filetype"}})])}],fP=(n(56977),{data:function(){return{chartPie:null}},methods:{renderPie:function(){this.chartPie=new wS("container_filetype",{appendPadding:10,data:[],angleField:"count",colorField:"postfix",radius:1,innerRadius:.75,content:"",tooltip:{},legend:{position:"left"},label:{type:"inner",offset:"-50%",autoRotate:!1,style:{textAlign:"center"},formatter:function(t){var e=t.percent;return"".concat((100*e).toFixed(0),"%")}},statistic:{title:{formatter:function(){return"文件总存储量"},offsetY:-8},content:{offsetY:-4}}}),this.chartPie.render(),this.getProportionOfFileType()},getProportionOfFileType:function(){var t=this;return(0,S.Z)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={classname:"webmanage.dataanalysis.MediaCenter",method:"getProportionOfFileType",content:{}},e.next=3,t.$api.requested(n);case 3:r=e.sent,t.chartPie.changeData(r.data);case 5:case"end":return e.stop()}}),e)})))()}},mounted:function(){this.renderPie()}}),pP=fP,dP=(0,eP.Z)(pP,cP,hP,!1,null,"e735ed18",null),gP=dP.exports,vP=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},mP=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("p",{staticClass:"title"},[t._v("各模块文件存储占比")]),n("div",{attrs:{id:"container_modulestype"}})])}],yP={data:function(){return{chartPie:null}},methods:{renderPie:function(){this.chartPie=new wS("container_modulestype",{appendPadding:10,data:[],angleField:"count",colorField:"type",radius:1,innerRadius:.75,content:"",tooltip:{},legend:{position:"left"},label:{type:"inner",offset:"-50%",autoRotate:!1,style:{textAlign:"center"},formatter:function(t){var e=t.percent;return"".concat((100*e).toFixed(0),"%")}},statistic:{title:{formatter:function(){return"文件总存储量"},offsetY:-8},content:{offsetY:-4}}}),this.chartPie.render(),this.getProportionOfFileModel()},getProportionOfFileModel:function(){var t=this;return(0,S.Z)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={classname:"webmanage.dataanalysis.MediaCenter",method:"getProportionOfFileModel",content:{}},e.next=3,t.$api.requested(n);case 3:r=e.sent,t.chartPie.changeData(r.data);case 5:case"end":return e.stop()}}),e)})))()}},mounted:function(){this.renderPie()}},bP=yP,xP=(0,eP.Z)(bP,vP,mP,!1,null,"029fc8ae",null),wP=xP.exports,CP={components:{storageCapacity:rP,downloadTraffic:uP,fileTypeProportion:gP,modulesProportion:wP},data:function(){return{}}},SP=CP,AP=(0,eP.Z)(SP,b,x,!1,null,null,null),EP=AP.exports},24035:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return J}});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-row",[n("el-col",{attrs:{span:17}},[n("list",{ref:"list",on:{onNameChange:t.onNameChange,folderChecked:t.folderChecked,toFolderDetail:t.toFolderDetail}},[t.showBtnGroup?[n("el-button-group",{attrs:{slot:"btngroup"},slot:"btngroup"},[t.tool.checkAuth(t.$route.name,"download")?n("download",{attrs:{checklist:t.checklist}}):t._e(),t.tool.checkAuth(t.$route.name,"delete")?n("delete-file",{attrs:{checklist:t.checklist},on:{onSuccess:t.onSuccess}}):t._e(),t.tool.checkAuth(t.$route.name,"update")?n("more-operation",{ref:"edit",attrs:{checklist:t.checklist},on:{restName:t.restName,onSuccess:t.onSuccess}}):t._e()],1)]:[t.tool.checkAuth(t.$route.name,"upload")?n("h-upload",{attrs:{slot:"upload",folderid:t.folderid},on:{onSuccess:t.onSuccess},slot:"upload"}):t._e(),t.tool.checkAuth(t.$route.name,"insert")?n("add",{ref:"add",staticStyle:{"margin-left":"10px"},attrs:{slot:"add"},on:{addClick:t.addClick,onSuccess:t.onSuccess},slot:"add"}):t._e()]],2)],1),n("el-col",{attrs:{span:7}},[n("fileInfo",{ref:"filelist",attrs:{filelist:t.checklist}})],1)],1)},i=[],o=(n(41539),n(54747),n(90573)),a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"flex-align-center flex-between border-bottom container normal-panel"},[r("div",{staticClass:"flex-align-center"},[t._t("upload"),t._t("add"),t._t("btngroup")],2),r("div",{staticClass:"flex-align-center"},[r("el-input",{staticStyle:{width:"160px","margin-right":"16px"},attrs:{size:"small","prefix-icon":"el-icon-search",placeholder:"搜索全部",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.queryAttachment(t.params.content.pageNumber=1)}},model:{value:t.params.content.where.condition,callback:function(e){t.$set(t.params.content.where,"condition",e)},expression:"params.content.where.condition"}}),r("sort",{attrs:{sort:t.sort},on:{onSort:t.onSort}}),r("i",{staticClass:"el-icon-refresh",staticStyle:{"margin-left":"16px"},on:{click:function(e){return t.queryAttachment(t.params.content.where.condition="")}}})],1)]),r("div",{staticClass:"container normal-panel",staticStyle:{height:"calc(100vh - 255px)","overflow-y":"scroll"}},[r("el-row",{staticClass:"folder-list",attrs:{gutter:10}},t._l(t.list,(function(e){return r("el-col",{directives:[{name:"show",rawName:"v-show",value:"FOLDER"===e.postfix,expression:"folder.postfix === 'FOLDER'"}],key:e.id,attrs:{span:3}},[r("div",{staticClass:"folder-item",class:e.ischeck?"checked":""},[r("el-checkbox",{staticClass:"folder-checkbox",on:{change:function(n){return t.onChange(e)}},model:{value:e.ischeck,callback:function(n){t.$set(e,"ischeck",n)},expression:"folder.ischeck"}}),r("div",{staticClass:"img-panel"},[r("img",{attrs:{src:n(95609),alt:""},on:{click:function(n){return t.folderDetails(e.attachmentid)}}})]),e.newfolder?r("input",{directives:[{name:"model",rawName:"v-model",value:e.document,expression:"folder.document"}],attrs:{type:"text",autofocus:"",size:"mini"},domProps:{value:e.document},on:{blur:function(n){return t.changeFolderName(e)},input:function(n){n.target.composing||t.$set(e,"document",n.target.value)}}}):r("p",{on:{click:function(n){return t.folderDetails(e.attachmentid)}}},[t._v(t._s(e.document))])],1)])})),1),r("el-row",{staticClass:"folder-list",attrs:{gutter:10}},t._l(t.list,(function(e){return r("el-col",{directives:[{name:"show",rawName:"v-show",value:"FOLDER"!==e.postfix,expression:"folder.postfix !== 'FOLDER'"}],key:e.id,attrs:{span:3}},[r("div",{staticClass:"folder-item",class:e.ischeck?"checked":""},[r("el-checkbox",{staticClass:"folder-checkbox",on:{change:function(n){return t.onChange(e)}},model:{value:e.ischeck,callback:function(n){t.$set(e,"ischeck",n)},expression:"folder.ischeck"}}),r("div",{staticClass:"img-panel"},["DOC"===e.postfix||"DOCX"===e.postfix?r("img",{attrs:{src:n(12349),alt:""}}):"PDF"===e.postfix?r("img",{attrs:{src:n(58813),alt:""}}):"MP4"===e.postfix||"AVI"===e.postfix?r("img",{attrs:{src:n(29902),alt:""}}):"XLS"===e.postfix||"XLSX"===e.postfix?r("img",{attrs:{src:n(54005),alt:""}}):"PNG"===e.postfix||"JPG"===e.postfix||"JPEG"===e.postfix?r("img",{attrs:{src:n(45968),alt:""}}):"PPT"===e.postfix||"PPTX"===e.postfix?r("img",{attrs:{src:n(4858),alt:""}}):"FOLDER"===e.postfix?r("img",{attrs:{src:n(95609),alt:""}}):r("img",{attrs:{src:n(63899),alt:""}})]),e.newfolder?r("input",{directives:[{name:"model",rawName:"v-model",value:e.document,expression:"folder.document"}],attrs:{type:"text",autofocus:"",size:"mini"},domProps:{value:e.document},on:{blur:function(n){return t.changeFolderName(e)},input:function(n){n.target.composing||t.$set(e,"document",n.target.value)}}}):r("p",[t._v(t._s(e.document))])],1)])})),1),0===t.list.length?r("div",{staticClass:"flex-align-center",staticStyle:{height:"calc(100vh - 200px)","justify-content":"space-around"}},[r("el-empty",{attrs:{description:"暂无文件,请点击左上角的“上传”按钮添加"}})],1):t._e()],1),r("div",{staticStyle:{margin:"16px 0","text-align":"right"}},[r("el-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.params.content.pageSize,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)])},s=[],l=n(16198),u=(n(35666),n(2707),n(21249),{data:function(){return{params:{classname:"system.attachment.MediaCenter",method:"queryAttachment",content:{pageNumber:1,pageSize:20,where:{condition:"",parentid:""}}},list:[],sort:[],total:0,currentPage:0}},methods:{onSort:function(t){this.params.content.sort=[t],this.queryAttachment(this.params.content.where.parentid)},queryAttachment:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.params.content.where.parentid=t.$route.query.id?t.$route.query.id:0,e.next=3,t.$api.requested(t.params);case 3:n=e.sent,n.data.map((function(t){t.postfix=t.postfix.toUpperCase(),t.ischeck=!1})),t.list=n.data,t.total=n.total,t.currentPage=n.pageNumber,t.sort=n.sort;case 9:case"end":return e.stop()}}),e)})))()},handleSizeChange:function(t){this.params.content.pageSize=t,this.queryAttachment(this.params.content.where.parentid)},handleCurrentChange:function(t){this.params.content.pageNumber=t,this.queryAttachment(this.params.content.where.parentid)},changeFolderName:function(t){this.$emit("onNameChange",t)},onChange:function(t){var e=[];this.list.forEach((function(t,n){!0===t.ischeck&&e.push(t)})),this.$emit("folderChecked",e)},folderDetails:function(t){this.$router.push({path:"/mediaStock",query:{id:t}}),this.$emit("toFolderDetail",t),this.queryAttachment(t)},restChecked:function(){this.list.forEach((function(t,e){t.ischeck=!1}))}},mounted:function(){this.queryAttachment()},watch:{$route:function(){this.queryAttachment(),this.$emit("folderChecked",[])}}}),c=u,h=n(1001),f=(0,h.Z)(c,a,s,!1,null,"b802bd08",null),p=f.exports,d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-button",{attrs:{size:"small",icon:"el-icon-plus"},on:{click:t.createFolder}},[t._v("新建文件夹")])],1)},g=[],v={data:function(){return{params:{classname:"system.attachment.MediaCenter",method:"createFolder",content:{foldername:"文件夹名称",parentid:""}}}},methods:{createFolder:function(){this.$emit("addClick")},createFolderComplete:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.$route.query.id?e.$route.query.id:0,e.params.content.parentid=r,e.params.content.foldername=t.document,n.next=5,e.$api.requested(e.params);case 5:i=n.sent,1===i.code?(e.$emit("onSuccess"),e.$message({message:"新建文件夹成功",type:"success"})):e.$message({message:i.data,type:"error"});case 7:case"end":return n.stop()}}),n)})))()}}},m=v,y=(0,h.Z)(m,d,g,!1,null,null,null),b=y.exports,x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-button",{attrs:{icon:"el-icon-download",size:"small"},on:{click:t.clickDownload}},[t._v("下 载")])},w=[],C={props:["checklist"],data:function(){return{}},methods:{clickDownload:function(){var t=this;this.checklist.forEach((function(e){"FOLDER"===e.postfix?(t.downLoadFolder(e.attachmentid),t.$store.dispatch("createdownlog",{linksid:"",attachmentid:e.attachmentid})):(t.dowFile(e.url),t.$store.dispatch("createdownlog",{linksid:"",attachmentid:e.attachmentid}))}))},downLoadFolder:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.requested({classname:"system.attachment.huawei.OBS",method:"createAndGetPackFileUrl",content:{attachmentid:t}});case 2:r=n.sent,window.open(r.url,"_self");case 4:case"end":return n.stop()}}),n)})))()},dowFile:function(t){window.open(t,"_self")}}},S=C,A=(0,h.Z)(S,x,w,!1,null,null,null),E=A.exports,k=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-button",{attrs:{icon:"el-icon-delete",size:"small"},on:{click:t.clickDelete}},[t._v("删 除")])},D=[],F={props:["checklist"],data:function(){return{filecount:0}},methods:{clickDelete:function(){var t=this;this.filecount=0,this.$confirm("确定删除这".concat(this.checklist.length,"个文件吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.checklist.forEach((function(e){t.deleteFiles(e.attachmentid)}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))},deleteFiles:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.filecount++,r={classname:"system.attachment.MediaCenter",method:"deleteAttachment",content:{attachmentid:t}},n.next=4,e.$api.requested(r);case 4:n.sent,e.$emit("onSuccess");case 6:case"end":return n.stop()}}),n)})))()}},watch:{filecount:function(t){this.checklist.length===t&&this.$message({message:"成功,共删除".concat(this.checklist.length,"个文件"),type:"success"})}}},M=F,O=(0,h.Z)(M,k,D,!1,null,null,null),T=O.exports,B=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dropdown",{directives:[{name:"show",rawName:"v-show",value:1===t.checklist.length,expression:"checklist.length === 1"}],staticStyle:{"border-left":"1px solid #dcdfe6"}},[n("el-button",{attrs:{size:"small"}},[n("i",{staticClass:"el-icon-more"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},["FOLDER"!==t.checklist[0].postfix?n("el-dropdown-item",{nativeOn:{click:function(e){return t.showShareurl.apply(null,arguments)}}},[t._v("分 享")]):t._e(),n("el-dropdown-item",{nativeOn:{click:function(e){return t.restName.apply(null,arguments)}}},[t._v("重命名")]),n("el-dropdown-item",{nativeOn:{click:function(e){return t.showFileTree.apply(null,arguments)}}},[t._v("移动到")])],1),n("modifyLocation",{ref:"modefy",attrs:{checklist:t.checklist},on:{onChangeFolderModify:t.onChangeFolderModify}}),n("el-dialog",{attrs:{title:"分享",visible:t.urlDialog,width:"500px"},on:{"update:visible":function(e){t.urlDialog=e}}},[n("div",{staticClass:"border"},[n("el-input",{attrs:{placeholder:"链接地址"},model:{value:t.checklist[0].url,callback:function(e){t.$set(t.checklist[0],"url",e)},expression:"checklist[0].url"}},[n("el-button",{attrs:{slot:"append"},on:{click:t.test},slot:"append"},[t._v("复制")])],1)],1)])],1)},_=[],I=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{attrs:{title:"移动到",visible:t.dialogTreeVisible,width:"500px"},on:{"update:visible":function(e){t.dialogTreeVisible=e}}},[r("div",{staticClass:"border"},[r("el-tree",{attrs:{data:t.data,props:t.defaultProps,load:t.loadNode,lazy:"","highlight-current":"",accordion:""},on:{"node-click":t.handleNodeClick},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.node,o=e.data;return r("div",{class:o.class},[r("div",{staticClass:"flex-align-center"},[r("img",{staticStyle:{"margin-right":"10px"},attrs:{src:n(95609),width:"15",alt:""}}),r("p",[t._v(t._s(i.label))])])])}}])})],1),t.errormsg?r("el-alert",{staticStyle:{"margin-top":"10px"},attrs:{title:"不能将文件移动到自身或其子文件夹下",type:"error","show-icon":""}}):t._e(),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{size:"small"},on:{click:function(e){t.dialogTreeVisible=!1}}},[t._v("取 消")]),r("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.changeAttachment}},[t._v("确 定")])],1)],1)},P=[],L={props:["checklist"],data:function(){return{dialogTreeVisible:!1,errormsg:!1,activeid:0,data:[],children:[],defaultProps:{children:"children",label:"document"},params:{classname:"system.attachment.MediaCenter",method:"queryAttachment",content:{where:{condition:"",parentid:0,isonlyfolder:1}}}}},methods:{queryAttachment:function(t){var e=this;return new Promise(function(){var n=(0,l.Z)(regeneratorRuntime.mark((function n(r,i){var o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.params.content.where.parentid=t,n.next=3,e.$api.requested(e.params);case 3:o=n.sent,0===t?(e.data=o.data,e.data.forEach((function(t){t.children=[]}))):(e.children=o.data,o.data.forEach((function(t){t.isLeaf=!0}))),r();case 6:case"end":return n.stop()}}),n)})));return function(t,e){return n.apply(this,arguments)}}())},handleNodeClick:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.checklist[0].attachmentid===t.attachmentid){n.next=7;break}return n.next=3,e.queryAttachment(t.attachmentid);case 3:e.activeid=t.attachmentid,e.errormsg=!1,n.next=8;break;case 7:e.errormsg=!0;case 8:case"end":return n.stop()}}),n)})))()},loadNode:function(t,e){var n=this;if(0===t.level)return e(this.data);setTimeout((function(){e(n.children)}),1e3)},changeAttachment:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=[{attachmentid:t.checklist[0].attachmentid,document:t.checklist[0].document,parentid:t.activeid}],e.next=3,t.$api.requested({classname:"system.attachment.MediaCenter",method:"changeAttachment",content:{files:n}});case 3:r=e.sent,1===r.code&&(t.$emit("onChangeFolderModify"),t.$message({message:"移动成功",type:"success"}));case 5:case"end":return e.stop()}}),e)})))()}},mounted:function(){}},R=L,N=(0,h.Z)(R,I,P,!1,null,"058bddbe",null),j=N.exports,z={components:{modifyLocation:j},props:["checklist"],data:function(){return{urlDialog:!1}},methods:{showShareurl:function(){this.urlDialog=!0},restName:function(){this.$emit("restName")},confirmRestName:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r={classname:"system.attachment.MediaCenter",method:"changeAttachment",content:{files:[{attachmentid:t.attachmentid,document:t.document,parentid:t.parentid}]}},n.next=3,e.$api.requested(r);case 3:i=n.sent,1===i.code?(e.$emit("onSuccess"),e.$message({message:"重命名成功",type:"success"})):e.$message({message:i.data,type:"error"});case 5:case"end":return n.stop()}}),n)})))()},showFileTree:function(){this.$refs.modefy.dialogTreeVisible=!0,this.$refs.modefy.queryAttachment(0)},onChangeFolderModify:function(){this.$emit("onSuccess")},test:function(){var t=document.createElement("input");t.value=this.checklist[0].url,document.body.appendChild(t),t.select(),document.execCommand("Copy"),document.body.removeChild(t),this.$message({message:"复制成功,快去分享给好友吧!",type:"success"})}}},U=z,V=(0,h.Z)(U,B,_,!1,null,null,null),H=V.exports,$=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"info-panel"},[t.filelist.length>1?r("div",[r("p",{staticClass:"bold"},[t._v("多选")]),r("p",{staticClass:"explan"},[t._v("已选"+t._s(t.filelist.length)+"个")])]):r("div",[r("p",{staticClass:"bold"},[t._v(t._s(t.file.document))]),r("p",{staticClass:"info-text"},[t._v(t._s(t.file.postfix))]),"DOC"===t.file.postfix||"DOCX"===t.file.postfix?r("img",{attrs:{src:n(12349),alt:""}}):"PDF"===t.file.postfix?r("img",{attrs:{src:n(58813),alt:""}}):"MP4"===t.file.postfix||"AVI"===t.file.postfix?r("img",{attrs:{src:n(29902),alt:""}}):"XLS"===t.file.postfix||"XLSX"===t.file.postfix?r("img",{attrs:{src:n(54005),alt:""}}):"PNG"===t.file.postfix||"JPG"===t.file.postfix||"JPEG"===t.file.postfix?r("img",{attrs:{src:n(45968),alt:""}}):"PPT"===t.file.postfix||"PPTX"===t.file.postfix?r("img",{attrs:{src:n(4858),alt:""}}):"TXT"===t.file.postfix?r("img",{attrs:{src:n(7244),alt:""}}):"FOLDER"===t.file.postfix?r("img",{attrs:{src:n(95609),alt:""}}):r("img",{attrs:{src:n(63899),alt:""}}),t.file.contentlength?r("p",{staticClass:"info-text"},[t._v("大小: "+t._s(t.file.contentlength>1073741824?(t.file.contentlength/Math.pow(1024,3)).toFixed(2)+"GB":t.file.contentlength>1048576?(t.file.contentlength/Math.pow(1024,2)).toFixed(2)+"MB":t.file.contentlength>1024?(t.file.contentlength/Math.pow(1024,1)).toFixed(2)+"KB":t.file.contentlength+"B"))]):r("p",{staticClass:"info-text"},[t._v("大小:0")]),r("p",{staticClass:"info-text"},[t._v("上传人: "+t._s(t.file.createby))]),r("p",{staticClass:"info-text normal-margin"},[t._v("上传时间: "+t._s(t.file.createdate))]),r("tableLayout",{attrs:{layout:t.tablecols,data:t.list,custom:!0},scopedSlots:t._u([{key:"customcol",fn:function(e){return["appdata"===e.column.columnname?r("p",[r("span",[t._v(t._s(e.column.data.data.appdata))])]):t._e(),"appname"===e.column.columnname?r("p",[r("span",[t._v(t._s(e.column.data.data.appname))])]):r("p",[t._v(t._s(e.column.data[e.column.columnname]))])]}}])})],1)])},G=[],W=(n(68309),{props:["filelist"],data:function(){return{file:{},tablecols:[],list:[]}},methods:{setFileInfo:function(t){t.length>0?(this.file=t[0],this.queryAttachment_LinkData(t[0].attachmentid)):(this.file={},this.list=[])},queryAttachment_LinkData:function(t){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r={classname:"system.attachment.MediaCenter",method:"queryAttachment_LinkData",content:{attachmentid:t}},n.next=3,e.$api.requested(r);case 3:i=n.sent,e.list=i.data;case 5:case"end":return n.stop()}}),n)})))()}},mounted:function(){this.tablecols=this.tool.tabelCol(this.$route.name)["fileBindTable"].tablecols}}),q=W,X=(0,h.Z)(q,$,G,!1,null,"09971418",null),Z=X.exports,Y={components:{hUpload:o.Z,list:p,add:b,download:E,deleteFile:T,moreOperation:H,fileInfo:Z},data:function(){return{showBtnGroup:!1,folderid:"",checklist:[]}},methods:{addClick:function(){this.$refs.list.list.push({newfolder:!0,document:"新建文件夹",postfix:"FOLDER"})},onNameChange:function(t){t.attachmentid?this.$refs.edit.confirmRestName(t):this.$refs.add.createFolderComplete(t)},onSuccess:function(){var t=this.$route.query.id?this.$route.query.id:0;this.$refs.list.queryAttachment(t),this.$refs.list.restChecked(),this.folderChecked([])},folderChecked:function(t){this.checklist=t,t.length>0?this.showBtnGroup=!0:this.showBtnGroup=!1,this.$refs["filelist"].setFileInfo(t)},toFolderDetail:function(t){this.folderid=t},restName:function(){var t=this;this.checklist[0].newfolder=!0;var e=this.checklist[0];this.$refs.list.list.forEach((function(n,r){n.attachmentid===t.checklist[0].attachmentid&&t.$set(t.$refs.list.list,r,e)}))}}},Q=Y,K=(0,h.Z)(Q,r,i,!1,null,null,null),J=K.exports},63179:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return c}});var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"login-wrap"},[r("div",[r("h4",{staticClass:"title"},[t._v("我的账号")]),r("div",{staticClass:"account"},t._l(t.account_list,(function(e){return r("div",{key:e.index,staticClass:"account-panel",on:{click:function(n){return t.selectAccount(e)}}},[r("img",{staticStyle:{"margin-right":"10px"},attrs:{src:n(38308),width:"50",height:"50",alt:""}}),r("div",{staticStyle:{flex:"1"}},[r("small",{staticClass:"color-info"},[t._v("站点:"+t._s(e.siteid))]),r("br"),r("el-tag",{staticStyle:{"margin-top":"5px"},attrs:{size:"mini",type:"danger"}},[t._v(t._s(e.sitename))])],1)])})),0)])])])},i=[],o=n(16198),a=(n(35666),n(38862),{data:function(){return{account_list:[]}},methods:{selectAccount:function(t){sessionStorage.setItem("active_account",JSON.stringify(t)),this.query_userauth(),this.querySite_Parameter()},query_userauth:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.requested({classname:"sysmanage.develop.userauth.userauth",method:"query_userauth",content:{}});case 2:n=e.sent,t.auth_data=n.data,console.log(n.data),sessionStorage.setItem("module_info",JSON.stringify(t.auth_data)),t.$router.push("/main");case 7:case"end":return e.stop()}}),e)})))()},querySite_Parameter:function(){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.requested({classname:"webmanage.site.site",method:"querySite_Parameter",content:{}});case 2:n=e.sent,r={appfolderid:n.data.appfolderid,salematerialfolderid:n.data.salematerialfolderid},sessionStorage.setItem("folderid",JSON.stringify(r));case 5:case"end":return e.stop()}}),e)})))()}},created:function(){this.account_list=JSON.parse(sessionStorage.getItem("account_list")),1===this.account_list.length&&this.selectAccount(this.account_list[0])}}),s=a,l=n(1001),u=(0,l.Z)(s,r,i,!1,null,"806fa5c6",null),c=u.exports},31530:function(t,e,n){"use strict";var r=n(28710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},7556:function(t,e,n){var r=n(47293);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},14170:function(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n={},r=0;r<66;r++)n[e.charAt(r)]=r;t.exports={itoc:e,ctoi:n}},93678:function(t){t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},7762:function(t,e,n){"use strict";var r=n(19781),i=n(47293),o=n(19670),a=n(70030),s=n(56277),l=Error.prototype.toString,u=i((function(){if(r){var t=a(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==l.call(t))return!0}return"2: 1"!==l.call({message:1,name:2})||"Error"!==l.call({})}));t.exports=u?function(){var t=o(this),e=s(t.name,"Error"),n=s(t.message);return e?n?e+": "+n:e:n}:l},27007:function(t,e,n){"use strict";n(74916);var r=n(1702),i=n(31320),o=n(22261),a=n(47293),s=n(5112),l=n(68880),u=s("species"),c=RegExp.prototype;t.exports=function(t,e,n,h){var f=s(t),p=!a((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),d=p&&!a((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return e=!0,null},n[f](""),!e}));if(!p||!d||n){var g=r(/./[f]),v=e(f,""[t],(function(t,e,n,i,a){var s=r(t),l=e.exec;return l===o||l===c.exec?p&&!a?{done:!0,value:g(e,n,i)}:{done:!0,value:s(n,e,i)}:{done:!1}}));i(String.prototype,t,v[0]),i(c,f,v[1])}h&&l(c[f],"sham",!0)}},76677:function(t,e,n){var r=n(47293);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},10647:function(t,e,n){var r=n(1702),i=n(47908),o=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,h,f){var p=n+t.length,d=r.length,g=c;return void 0!==h&&(h=i(h),g=u),s(f,g,(function(i,s){var u;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,n);case"'":return l(e,p);case"<":u=h[l(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>d){var f=o(c/10);return 0===f?i:f<=d?void 0===r[f-1]?a(s,1):r[f-1]+a(s,1):i}u=r[c-1]}return void 0===u?"":u}))}},62423:function(t,e,n){var r=n(82109),i=n(1702),o=n(3501),a=n(70111),s=n(92597),l=n(3070).f,u=n(8006),c=n(1156),h=n(52050),f=n(69711),p=n(76677),d=!1,g=f("meta"),v=0,m=function(t){l(t,g,{value:{objectID:"O"+v++,weakData:{}}})},y=function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,g)){if(!h(t))return"F";if(!e)return"E";m(t)}return t[g].objectID},b=function(t,e){if(!s(t,g)){if(!h(t))return!0;if(!e)return!1;m(t)}return t[g].weakData},x=function(t){return p&&d&&h(t)&&!s(t,g)&&m(t),t},w=function(){C.enable=function(){},d=!0;var t=u.f,e=i([].splice),n={};n[g]=1,t(n).length&&(u.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===g){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},C=t.exports={enable:w,fastKey:y,getWeakData:b,onFreeze:x};o[g]=!0},52050:function(t,e,n){var r=n(47293),i=n(70111),o=n(84326),a=n(7556),s=Object.isExtensible,l=r((function(){s(1)}));t.exports=l||a?function(t){return!!i(t)&&((!a||"ArrayBuffer"!=o(t))&&(!s||s(t)))}:s},97651:function(t,e,n){var r=n(17854),i=n(46916),o=n(19670),a=n(60614),s=n(84326),l=n(22261),u=r.TypeError;t.exports=function(t,e){var n=t.exec;if(a(n)){var r=i(n,t,e);return null!==r&&o(r),r}if("RegExp"===s(t))return i(l,t,e);throw u("RegExp#exec called on incompatible receiver")}},81150:function(t){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},38415:function(t,e,n){"use strict";var r=n(17854),i=n(19303),o=n(41340),a=n(84488),s=r.RangeError;t.exports=function(t){var e=o(a(this)),n="",r=i(t);if(r<0||r==1/0)throw s("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}},76091:function(t,e,n){var r=n(76530).PROPER,i=n(47293),o=n(81361),a="
";t.exports=function(t){return i((function(){return!!o[t]()||a[t]()!==a||r&&o[t].name!==t}))}},53111:function(t,e,n){var r=n(1702),i=n(84488),o=n(41340),a=n(81361),s=r("".replace),l="["+a+"]",u=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),h=function(t){return function(e){var n=o(i(e));return 1&t&&(n=s(n,u,"")),2&t&&(n=s(n,c,"")),n}};t.exports={start:h(1),end:h(2),trim:h(3)}},50863:function(t,e,n){var r=n(1702);t.exports=r(1..valueOf)},44038:function(t,e,n){var r=n(35268);t.exports=function(t){try{if(r)return Function('return require("'+t+'")')()}catch(e){}}},81361:function(t){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},40561:function(t,e,n){"use strict";var r=n(82109),i=n(17854),o=n(51400),a=n(19303),s=n(26244),l=n(47908),u=n(65417),c=n(86135),h=n(81194),f=h("splice"),p=i.TypeError,d=Math.max,g=Math.min,v=9007199254740991,m="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!f},{splice:function(t,e){var n,r,i,h,f,y,b=l(this),x=s(b),w=o(t,x),C=arguments.length;if(0===C?n=r=0:1===C?(n=0,r=x-w):(n=C-2,r=g(d(a(e),0),x-w)),x+n-r>v)throw p(m);for(i=u(b,r),h=0;h<r;h++)f=w+h,f in b&&c(i,h,b[f]);if(i.length=r,n<r){for(h=w;h<x-r;h++)f=h+r,y=h+n,f in b?b[y]=b[f]:delete b[y];for(h=x;h>x-r+n;h--)delete b[h-1]}else if(n>r)for(h=x-r;h>w;h--)f=h+r-1,y=h+n-1,f in b?b[y]=b[f]:delete b[y];for(h=0;h<n;h++)b[h+w]=arguments[h+2];return b.length=x-r+n,i}})},56977:function(t,e,n){"use strict";var r=n(82109),i=n(17854),o=n(1702),a=n(19303),s=n(50863),l=n(38415),u=n(47293),c=i.RangeError,h=i.String,f=Math.floor,p=o(l),d=o("".slice),g=o(1..toFixed),v=function(t,e,n){return 0===e?n:e%2===1?v(t,e-1,n*t):v(t*t,e/2,n)},m=function(t){var e=0,n=t;while(n>=4096)e+=12,n/=4096;while(n>=2)e+=1,n/=2;return e},y=function(t,e,n){var r=-1,i=n;while(++r<6)i+=e*t[r],t[r]=i%1e7,i=f(i/1e7)},b=function(t,e){var n=6,r=0;while(--n>=0)r+=t[n],t[n]=f(r/e),r=r%e*1e7},x=function(t){var e=6,n="";while(--e>=0)if(""!==n||0===e||0!==t[e]){var r=h(t[e]);n=""===n?r:n+p("0",7-r.length)+r}return n},w=u((function(){return"0.000"!==g(8e-5,3)||"1"!==g(.9,0)||"1.25"!==g(1.255,2)||"1000000000000000128"!==g(0xde0b6b3a7640080,0)}))||!u((function(){g({})}));r({target:"Number",proto:!0,forced:w},{toFixed:function(t){var e,n,r,i,o=s(this),l=a(t),u=[0,0,0,0,0,0],f="",g="0";if(l<0||l>20)throw c("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return h(o);if(o<0&&(f="-",o=-o),o>1e-21)if(e=m(o*v(2,69,1))-69,n=e<0?o*v(2,-e,1):o/v(2,e,1),n*=4503599627370496,e=52-e,e>0){y(u,0,n),r=l;while(r>=7)y(u,1e7,0),r-=7;y(u,v(10,r,1),0),r=e-1;while(r>=23)b(u,1<<23),r-=23;b(u,1<<r),y(u,1,1),b(u,2),g=x(u)}else y(u,0,n),y(u,1<<-e,0),g=x(u)+p("0",l);return l>0?(i=g.length,g=f+(i<=l?"0."+p("0",l-i)+g:d(g,0,i-l)+"."+d(g,i-l))):g=f+g,g}})},60514:function(t,e,n){var r=n(82109),i=n(70111),o=n(62423).onFreeze,a=n(76677),s=n(47293),l=Object.seal,u=s((function(){l(1)}));r({target:"Object",stat:!0,forced:u,sham:!a},{seal:function(t){return l&&i(t)?l(o(t)):t}})},39714:function(t,e,n){"use strict";var r=n(1702),i=n(76530).PROPER,o=n(31320),a=n(19670),s=n(47976),l=n(41340),u=n(47293),c=n(67066),h="toString",f=RegExp.prototype,p=f[h],d=r(c),g=u((function(){return"/a/b"!=p.call({source:"a",flags:"b"})})),v=i&&p.name!=h;(g||v)&&o(RegExp.prototype,h,(function(){var t=a(this),e=l(t.source),n=t.flags,r=l(void 0===n&&s(f,t)&&!("flags"in f)?d(t):n);return"/"+e+"/"+r}),{unsafe:!0})},15306:function(t,e,n){"use strict";var r=n(22104),i=n(46916),o=n(1702),a=n(27007),s=n(47293),l=n(19670),u=n(60614),c=n(19303),h=n(17466),f=n(41340),p=n(84488),d=n(31530),g=n(58173),v=n(10647),m=n(97651),y=n(5112),b=y("replace"),x=Math.max,w=Math.min,C=o([].concat),S=o([].push),A=o("".indexOf),E=o("".slice),k=function(t){return void 0===t?t:String(t)},D=function(){return"$0"==="a".replace(/./,"$0")}(),F=function(){return!!/./[b]&&""===/./[b]("a","$0")}(),M=!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));a("replace",(function(t,e,n){var o=F?"$":"$0";return[function(t,n){var r=p(this),o=void 0==t?void 0:g(t,b);return o?i(o,t,r,n):i(e,f(r),t,n)},function(t,i){var a=l(this),s=f(t);if("string"==typeof i&&-1===A(i,o)&&-1===A(i,"$<")){var p=n(e,a,s,i);if(p.done)return p.value}var g=u(i);g||(i=f(i));var y=a.global;if(y){var b=a.unicode;a.lastIndex=0}var D=[];while(1){var F=m(a,s);if(null===F)break;if(S(D,F),!y)break;var M=f(F[0]);""===M&&(a.lastIndex=d(s,h(a.lastIndex),b))}for(var O="",T=0,B=0;B<D.length;B++){F=D[B];for(var _=f(F[0]),I=x(w(c(F.index),s.length),0),P=[],L=1;L<F.length;L++)S(P,k(F[L]));var R=F.groups;if(g){var N=C([_],P,I,s);void 0!==R&&S(N,R);var j=f(r(i,void 0,N))}else j=v(_,s,I,P,R,i);I>=T&&(O+=E(s,T,I)+j,T=I+_.length)}return O+E(s,T)}]}),!M||!D||F)},64765:function(t,e,n){"use strict";var r=n(46916),i=n(27007),o=n(19670),a=n(84488),s=n(81150),l=n(41340),u=n(58173),c=n(97651);i("search",(function(t,e,n){return[function(e){var n=a(this),i=void 0==e?void 0:u(e,t);return i?r(i,e,n):new RegExp(e)[t](l(n))},function(t){var r=o(this),i=l(t),a=n(e,r,i);if(a.done)return a.value;var u=r.lastIndex;s(u,0)||(r.lastIndex=0);var h=c(r,i);return s(r.lastIndex,u)||(r.lastIndex=u),null===h?-1:h.index}]}))},23123:function(t,e,n){"use strict";var r=n(22104),i=n(46916),o=n(1702),a=n(27007),s=n(47850),l=n(19670),u=n(84488),c=n(36707),h=n(31530),f=n(17466),p=n(41340),d=n(58173),g=n(41589),v=n(97651),m=n(22261),y=n(52999),b=n(47293),x=y.UNSUPPORTED_Y,w=4294967295,C=Math.min,S=[].push,A=o(/./.exec),E=o(S),k=o("".slice),D=!b((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));a("split",(function(t,e,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var o=p(u(this)),a=void 0===n?w:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!s(t))return i(e,o,t,a);var l,c,h,f=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,y=new RegExp(t.source,d+"g");while(l=i(m,y,o)){if(c=y.lastIndex,c>v&&(E(f,k(o,v,l.index)),l.length>1&&l.index<o.length&&r(S,f,g(l,1)),h=l[0].length,v=c,f.length>=a))break;y.lastIndex===l.index&&y.lastIndex++}return v===o.length?!h&&A(y,"")||E(f,""):E(f,k(o,v)),f.length>a?g(f,0,a):f}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e,[function(e,n){var r=u(this),a=void 0==e?void 0:d(e,t);return a?i(a,e,r,n):i(o,p(r),e,n)},function(t,r){var i=l(this),a=p(t),s=n(o,i,a,r,o!==e);if(s.done)return s.value;var u=c(i,RegExp),d=i.unicode,g=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(x?"g":"y"),m=new u(x?"^(?:"+i.source+")":i,g),y=void 0===r?w:r>>>0;if(0===y)return[];if(0===a.length)return null===v(m,a)?[a]:[];var b=0,S=0,A=[];while(S<a.length){m.lastIndex=x?0:S;var D,F=v(m,x?k(a,S):a);if(null===F||(D=C(f(m.lastIndex+(x?S:0)),a.length))===b)S=h(a,S,d);else{if(E(A,k(a,b,S)),A.length===y)return A;for(var M=1;M<=F.length-1;M++)if(E(A,F[M]),A.length===y)return A;S=b=D}}return E(A,k(a,b)),A}]}),!D,x)},73210:function(t,e,n){"use strict";var r=n(82109),i=n(53111).trim,o=n(76091);r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},75505:function(t,e,n){var r=n(82109),i=n(35005),o=n(1702),a=n(47293),s=n(41340),l=n(92597),u=n(48053),c=n(14170).ctoi,h=/[^\d+/a-z]/i,f=/[\t\n\f\r ]+/g,p=/[=]+$/,d=i("atob"),g=String.fromCharCode,v=o("".charAt),m=o("".replace),y=o(h.exec),b=a((function(){return""!==atob(" ")})),x=!b&&!a((function(){d()}));r({global:!0,enumerable:!0,forced:b||x},{atob:function(t){if(u(arguments.length,1),x)return d(t);var e,n,r=m(s(t),f,""),o="",a=0,b=0;if(r.length%4==0&&(r=m(r,p,"")),r.length%4==1||y(h,r))throw new(i("DOMException"))("The string is not correctly encoded","InvalidCharacterError");while(e=v(r,a++))l(c,e)&&(n=b%4?64*n+c[e]:c[e],b++%4&&(o+=g(255&n>>(-2*b&6))));return o}})},87714:function(t,e,n){"use strict";var r=n(82109),i=n(44038),o=n(35005),a=n(47293),s=n(70030),l=n(79114),u=n(3070).f,c=n(36048).f,h=n(31320),f=n(92597),p=n(25787),d=n(19670),g=n(7762),v=n(56277),m=n(93678),y=n(77741),b=n(29909),x=n(19781),w=n(31913),C="DOMException",S="DATA_CLONE_ERR",A=o("Error"),E=o(C)||function(){try{var t=o("MessageChannel")||i("worker_threads").MessageChannel;(new t).port1.postMessage(new WeakMap)}catch(e){if(e.name==S&&25==e.code)return e.constructor}}(),k=E&&E.prototype,D=A.prototype,F=b.set,M=b.getterFor(C),O="stack"in A(C),T=function(t){return f(m,t)&&m[t].m?m[t].c:0},B=function(){p(this,_);var t=arguments.length,e=v(t<1?void 0:arguments[0]),n=v(t<2?void 0:arguments[1],"Error"),r=T(n);if(F(this,{type:C,name:n,message:e,code:r}),x||(this.name=n,this.message=e,this.code=r),O){var i=A(e);i.name=C,u(this,"stack",l(1,y(i.stack,1)))}},_=B.prototype=s(D),I=function(t){return{enumerable:!0,configurable:!0,get:t}},P=function(t){return I((function(){return M(this)[t]}))};x&&c(_,{name:P("name"),message:P("message"),code:P("code")}),u(_,"constructor",l(1,B));var L=a((function(){return!(new E instanceof A)})),R=L||a((function(){return D.toString!==g||"2: 1"!==String(new E(1,2))})),N=L||a((function(){return 25!==new E(1,"DataCloneError").code})),j=L||25!==E[S]||25!==k[S],z=w?R||N||j:L;r({global:!0,forced:z},{DOMException:z?B:E});var U=o(C),V=U.prototype;for(var H in R&&(w||E===U)&&h(V,"toString",g),N&&x&&E===U&&u(V,"code",I((function(){return T(d(this).name)}))),m)if(f(m,H)){var $=m[H],G=$.s,W=l(6,$.c);f(U,G)||u(U,G,W),f(V,G)||u(V,G,W)}},82801:function(t,e,n){"use strict";var r=n(82109),i=n(35005),o=n(79114),a=n(3070).f,s=n(92597),l=n(25787),u=n(79587),c=n(56277),h=n(93678),f=n(77741),p=n(31913),d="DOMException",g=i("Error"),v=i(d),m=function(){l(this,y);var t=arguments.length,e=c(t<1?void 0:arguments[0]),n=c(t<2?void 0:arguments[1],"Error"),r=new v(e,n),i=g(e);return i.name=d,a(r,"stack",o(1,f(i.stack,1))),u(r,this,m),r},y=m.prototype=v.prototype,b="stack"in g(d),x="stack"in new v(1,2),w=b&&!x;r({global:!0,forced:p||w},{DOMException:w?m:v});var C=i(d),S=C.prototype;if(S.constructor!==C)for(var A in p||a(S,"constructor",o(1,C)),h)if(s(h,A)){var E=h[A],k=E.s;s(C,k)||a(C,k,o(6,E.c))}},1174:function(t,e,n){var r=n(35005),i=n(58003),o="DOMException";i(r(o),o)},56645:function(t,e){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t,e){return n(t)||r(t,e)||i()}function n(t){if(Array.isArray(t))return t}function r(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(t,e,n,r){t=t.filter((function(t,r){var i=e(t,r),o=n(t,r);return null!=i&&isFinite(i)&&null!=o&&isFinite(o)})),r&&t.sort((function(t,n){return e(t)-e(n)}));for(var i,o,a,s=t.length,l=new Float64Array(s),u=new Float64Array(s),c=0,h=0,f=0;f<s;)a=t[f],l[f]=i=+e(a,f,t),u[f]=o=+n(a,f,t),++f,c+=(i-c)/f,h+=(o-h)/f;for(var p=0;p<s;++p)l[p]-=c,u[p]-=h;return[l,u,c,h]}function a(t,e,n,r){for(var i=0,o=0,a=t.length;o<a;o++){var s=t[o],l=+e(s,o,t),u=+n(s,o,t);null!=l&&isFinite(l)&&null!=u&&isFinite(u)&&r(l,u,i++)}}function s(t,e,n,r,i){var o=0,s=0;return a(t,e,n,(function(t,e){var n=e-i(t),a=e-r;o+=n*n,s+=a*a})),1-o/s}function l(t){return 180*Math.atan2(t[1][1]-t[0][1],t[1][0]-t[0][0])/Math.PI}function u(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function c(t,e,n){var r=Math.log(e-t)*Math.LOG10E+1|0,i=1*Math.pow(10,-r/2-1),o=1e4,a=[c(t),c(e)],s=0;while(h(a)&&s<o);return a;function c(t){return[t,n(t)]}function h(t){s++;for(var e=t.length,n=!1,r=0;r<e-1;r++){var o=t[r],a=t[r+1],h=u([o,a]),f=c(h[0]),p=l([o,h]),d=l([o,f]),g=Math.abs(p-d);g>i&&(t.splice(r+1,0,f),n=!0)}return n}}function h(t,e,n,r){var i=r-t*t,o=Math.abs(i)<1e-24?0:(n-t*e)/i,a=e-o*t;return[a,o]}function f(){var t,n=function(t){return t[0]},r=function(t){return t[1]};function i(i){var o=0,l=0,u=0,f=0,p=0,d=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;a(i,n,r,(function(e,n){var r=Math.log(n),i=e*n;++o,l+=(n-l)/o,f+=(i-f)/o,d+=(e*i-d)/o,u+=(n*r-u)/o,p+=(i*r-p)/o,t||(e<g&&(g=e),e>v&&(v=e))}));var m=h(f/l,u/l,p/l,d/l),y=e(m,2),b=y[0],x=y[1];b=Math.exp(b);var w=function(t){return b*Math.exp(x*t)},C=c(g,v,w);return C.a=b,C.b=x,C.predict=w,C.rSquared=s(i,n,r,l,w),C}return i.domain=function(e){return arguments.length?(t=e,i):t},i.x=function(t){return arguments.length?(n=t,i):n},i.y=function(t){return arguments.length?(r=t,i):r},i}function p(){var t,n=function(t){return t[0]},r=function(t){return t[1]};function i(i){var o=0,l=0,u=0,c=0,f=0,p=t?+t[0]:1/0,d=t?+t[1]:-1/0;a(i,n,r,(function(e,n){++o,l+=(e-l)/o,u+=(n-u)/o,c+=(e*n-c)/o,f+=(e*e-f)/o,t||(e<p&&(p=e),e>d&&(d=e))}));var g=h(l,u,c,f),v=e(g,2),m=v[0],y=v[1],b=function(t){return y*t+m},x=[[p,b(p)],[d,b(d)]];return x.a=y,x.b=m,x.predict=b,x.rSquared=s(i,n,r,u,b),x}return i.domain=function(e){return arguments.length?(t=e,i):t},i.x=function(t){return arguments.length?(n=t,i):n},i.y=function(t){return arguments.length?(r=t,i):r},i}function d(t){t.sort((function(t,e){return t-e}));var e=t.length/2;return e%1===0?(t[e-1]+t[e])/2:t[Math.floor(e)]}var g=2,v=1e-12;function m(){var t=function(t){return t[0]},n=function(t){return t[1]},r=.3;function i(i){for(var a=o(i,t,n,!0),s=e(a,4),l=s[0],u=s[1],c=s[2],f=s[3],p=l.length,m=Math.max(2,~~(r*p)),w=new Float64Array(p),C=new Float64Array(p),S=new Float64Array(p).fill(1),A=-1;++A<=g;){for(var E=[0,m-1],k=0;k<p;++k){for(var D=l[k],F=E[0],M=E[1],O=D-l[F]>l[M]-D?F:M,T=0,B=0,_=0,I=0,P=0,L=1/Math.abs(l[O]-D||1),R=F;R<=M;++R){var N=l[R],j=u[R],z=y(Math.abs(D-N)*L)*S[R],U=N*z;T+=z,B+=U,_+=j*z,I+=j*U,P+=N*U}var V=h(B/T,_/T,I/T,P/T),H=e(V,2),$=H[0],G=H[1];w[k]=$+G*D,C[k]=Math.abs(u[k]-w[k]),b(l,k+1,E)}if(A===g)break;var W=d(C);if(Math.abs(W)<v)break;for(var q,X,Z=0;Z<p;++Z)q=C[Z]/(6*W),S[Z]=q>=1?v:(X=1-q*q)*X}return x(l,w,c,f)}return i.bandwidth=function(t){return arguments.length?(r=t,i):r},i.x=function(e){return arguments.length?(t=e,i):t},i.y=function(t){return arguments.length?(n=t,i):n},i}function y(t){return(t=1-t*t*t)*t*t}function b(t,e,n){var r=t[e],i=n[0],o=n[1]+1;if(!(o>=t.length))while(e>i&&t[o]-r<=r-t[i])n[0]=++i,n[1]=o,++o}function x(t,e,n,r){for(var i,o=t.length,a=[],s=0,l=0,u=[];s<o;++s)i=t[s]+n,u[0]===i?u[1]+=(e[s]-u[1])/++l:(l=0,u[1]+=r,u=[i,e[s]],a.push(u));return u[1]+=r,a}function w(){var t,n=function(t){return t[0]},r=function(t){return t[1]},i=Math.E;function o(o){var l=0,u=0,f=0,p=0,d=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0,m=Math.log(i);a(o,n,r,(function(e,n){var r=Math.log(e)/m;++l,u+=(r-u)/l,f+=(n-f)/l,p+=(r*n-p)/l,d+=(r*r-d)/l,t||(e<g&&(g=e),e>v&&(v=e))}));var y=h(u,f,p,d),b=e(y,2),x=b[0],w=b[1],C=function(t){return w*Math.log(t)/m+x},S=c(g,v,C);return S.a=w,S.b=x,S.predict=C,S.rSquared=s(o,n,r,f,C),S}return o.domain=function(e){return arguments.length?(t=e,o):t},o.x=function(t){return arguments.length?(n=t,o):n},o.y=function(t){return arguments.length?(r=t,o):r},o.base=function(t){return arguments.length?(i=t,o):i},o}function C(){var t,n=function(t){return t[0]},r=function(t){return t[1]};function i(i){var l,u,h,f,p=o(i,n,r),d=e(p,4),g=d[0],v=d[1],m=d[2],y=d[3],b=g.length,x=0,w=0,C=0,S=0,A=0;for(l=0;l<b;)u=g[l],h=v[l++],f=u*u,x+=(f-x)/l,w+=(f*u-w)/l,C+=(f*f-C)/l,S+=(u*h-S)/l,A+=(f*h-A)/l;var E=0,k=0,D=t?+t[0]:1/0,F=t?+t[1]:-1/0;a(i,n,r,(function(e,n){k++,E+=(n-E)/k,t||(e<D&&(D=e),e>F&&(F=e))}));var M=C-x*x,O=x*M-w*w,T=(A*x-S*w)/O,B=(S*M-A*w)/O,_=-T*x,I=function(t){return t-=m,T*t*t+B*t+_+y},P=c(D,F,I);return P.a=T,P.b=B-2*T*m,P.c=_-B*m+T*m*m+y,P.predict=I,P.rSquared=s(i,n,r,E,I),P}return i.domain=function(e){return arguments.length?(t=e,i):t},i.x=function(t){return arguments.length?(n=t,i):n},i.y=function(t){return arguments.length?(r=t,i):r},i}function S(){var t,n=function(t){return t[0]},r=function(t){return t[1]},i=3;function l(l){if(1===i){var u=p().x(n).y(r).domain(t)(l);return u.coefficients=[u.b,u.a],delete u.a,delete u.b,u}if(2===i){var h=C().x(n).y(r).domain(t)(l);return h.coefficients=[h.c,h.b,h.a],delete h.a,delete h.b,delete h.c,h}var f,d,g,v,m,y=o(l,n,r),b=e(y,4),x=b[0],w=b[1],S=b[2],k=b[3],D=x.length,F=[],M=[],O=i+1,T=0,B=0,_=t?+t[0]:1/0,I=t?+t[1]:-1/0;for(a(l,n,r,(function(e,n){++B,T+=(n-T)/B,t||(e<_&&(_=e),e>I&&(I=e))})),f=0;f<O;++f){for(g=0,v=0;g<D;++g)v+=Math.pow(x[g],f)*w[g];for(F.push(v),m=new Float64Array(O),d=0;d<O;++d){for(g=0,v=0;g<D;++g)v+=Math.pow(x[g],f+d);m[d]=v}M.push(m)}M.push(F);var P=E(M),L=function(t){t-=S;var e=k+P[0]+P[1]*t+P[2]*t*t;for(f=3;f<O;++f)e+=P[f]*Math.pow(t,f);return e},R=c(_,I,L);return R.coefficients=A(O,P,-S,k),R.predict=L,R.rSquared=s(l,n,r,T,L),R}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(n=t,l):n},l.y=function(t){return arguments.length?(r=t,l):r},l.order=function(t){return arguments.length?(i=t,l):i},l}function A(t,e,n,r){var i,o,a,s,l=Array(t);for(i=0;i<t;++i)l[i]=0;for(i=t-1;i>=0;--i)for(a=e[i],s=1,l[i]+=a,o=1;o<=i;++o)s*=(i+1-o)/o,l[i-o]+=a*Math.pow(n,o)*s;return l[0]+=r,l}function E(t){var e,n,r,i,o,a=t.length-1,s=[];for(e=0;e<a;++e){for(i=e,n=e+1;n<a;++n)Math.abs(t[e][n])>Math.abs(t[e][i])&&(i=n);for(r=e;r<a+1;++r)o=t[r][e],t[r][e]=t[r][i],t[r][i]=o;for(n=e+1;n<a;++n)for(r=a;r>=e;r--)t[r][n]-=t[r][e]*t[e][n]/t[e][e]}for(n=a-1;n>=0;--n){for(o=0,r=n+1;r<a;++r)o+=t[r][n]*s[r];s[n]=(t[a][n]-o)/t[n][n]}return s}function k(){var t,n=function(t){return t[0]},r=function(t){return t[1]};function i(i){var o=0,l=0,u=0,f=0,p=0,d=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;a(i,n,r,(function(e,n){var r=Math.log(e),i=Math.log(n);++o,l+=(r-l)/o,u+=(i-u)/o,f+=(r*i-f)/o,p+=(r*r-p)/o,d+=(n-d)/o,t||(e<g&&(g=e),e>v&&(v=e))}));var m=h(l,u,f,p),y=e(m,2),b=y[0],x=y[1];b=Math.exp(b);var w=function(t){return b*Math.pow(t,x)},C=c(g,v,w);return C.a=b,C.b=x,C.predict=w,C.rSquared=s(i,n,r,d,w),C}return i.domain=function(e){return arguments.length?(t=e,i):t},i.x=function(t){return arguments.length?(n=t,i):n},i.y=function(t){return arguments.length?(r=t,i):r},i}t.regressionExp=f,t.regressionLinear=p,t.regressionLoess=m,t.regressionLog=w,t.regressionPoly=S,t.regressionPow=k,t.regressionQuad=C,Object.defineProperty(t,"__esModule",{value:!0})}))},43631:function(t,e,n){"use strict";n.d(e,{qY:function(){return d}});var r=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},i=function(){function t(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"}return t}(),o=function(){function t(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return t}(),a=function(){function t(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"}return t}(),s=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),l=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),u=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,c=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,h=3,f=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",u]],p=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(t){return t?v(t):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new l:"undefined"!==typeof navigator?v(navigator.userAgent):y()}function g(t){return""!==t&&f.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var o=i.exec(t);return!!o&&[r,o]}),!1)}function v(t){var e=g(t);if(!e)return null;var n=e[0],o=e[1];if("searchbot"===n)return new s;var l=o[1]&&o[1].split(".").join("_").split("_").slice(0,3);l?l.length<h&&(l=r(r([],l,!0),b(h-l.length),!0)):l=[];var u=l.join("."),f=m(t),p=c.exec(t);return p&&p[1]?new a(n,u,f,p[1]):new i(n,u,f)}function m(t){for(var e=0,n=p.length;e<n;e++){var r=p[e],i=r[0],o=r[1],a=o.exec(t);if(a)return i}return null}function y(){var t="undefined"!==typeof process&&process.version;return t?new o(process.version.slice(1)):null}function b(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}},69916:function(t,e){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t,e,n,r){r=r||{};var i=r.maxIterations||100,o=r.tolerance||1e-10,a=t(e),s=t(n),l=n-e;if(a*s>0)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===s)return n;for(var u=0;u<i;++u){l/=2;var c=e+l,h=t(c);if(h*a>=0&&(e=c),Math.abs(l)<o||0===h)return c}return e+l}function n(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function r(t,e){return n(t).map((function(){return n(e)}))}function i(t,e){for(var n=0,r=0;r<t.length;++r)n+=t[r]*e[r];return n}function o(t){return Math.sqrt(i(t,t))}function a(t,e,n){for(var r=0;r<e.length;++r)t[r]=e[r]*n}function s(t,e,n,r,i){for(var o=0;o<t.length;++o)t[o]=e*n[o]+r*i[o]}function l(t,e,n){n=n||{};var r,i=n.maxIterations||200*e.length,o=n.nonZeroDelta||1.05,a=n.zeroDelta||.001,l=n.minErrorDelta||1e-6,u=n.minErrorDelta||1e-5,c=void 0!==n.rho?n.rho:1,h=void 0!==n.chi?n.chi:2,f=void 0!==n.psi?n.psi:-.5,p=void 0!==n.sigma?n.sigma:.5,d=e.length,g=new Array(d+1);g[0]=e,g[0].fx=t(e),g[0].id=0;for(var v=0;v<d;++v){var m=e.slice();m[v]=m[v]?m[v]*o:a,g[v+1]=m,g[v+1].fx=t(m),g[v+1].id=v+1}function y(t){for(var e=0;e<t.length;e++)g[d][e]=t[e];g[d].fx=t.fx}for(var b=function(t,e){return t.fx-e.fx},x=e.slice(),w=e.slice(),C=e.slice(),S=e.slice(),A=0;A<i;++A){if(g.sort(b),n.history){var E=g.map((function(t){var e=t.slice();return e.fx=t.fx,e.id=t.id,e}));E.sort((function(t,e){return t.id-e.id})),n.history.push({x:g[0].slice(),fx:g[0].fx,simplex:E})}for(r=0,v=0;v<d;++v)r=Math.max(r,Math.abs(g[0][v]-g[1][v]));if(Math.abs(g[0].fx-g[d].fx)<l&&r<u)break;for(v=0;v<d;++v){x[v]=0;for(var k=0;k<d;++k)x[v]+=g[k][v];x[v]/=d}var D=g[d];if(s(w,1+c,x,-c,D),w.fx=t(w),w.fx<g[0].fx)s(S,1+h,x,-h,D),S.fx=t(S),S.fx<w.fx?y(S):y(w);else if(w.fx>=g[d-1].fx){var F=!1;if(w.fx>D.fx?(s(C,1+f,x,-f,D),C.fx=t(C),C.fx<D.fx?y(C):F=!0):(s(C,1-f*c,x,f*c,D),C.fx=t(C),C.fx<w.fx?y(C):F=!0),F){if(p>=1)break;for(v=1;v<g.length;++v)s(g[v],1-p,g[0],p,g[v]),g[v].fx=t(g[v])}}else y(w)}return g.sort(b),{fx:g[0].fx,x:g[0]}}function u(t,e,n,r,o,a,l){var u=n.fx,c=i(n.fxprime,e),h=u,f=u,p=c,d=0;function g(f,d,g){for(var v=0;v<16;++v)if(o=(f+d)/2,s(r.x,1,n.x,o,e),h=r.fx=t(r.x,r.fxprime),p=i(r.fxprime,e),h>u+a*o*c||h>=g)d=o;else{if(Math.abs(p)<=-l*c)return o;p*(d-f)>=0&&(d=f),f=o,g=h}return 0}o=o||1,a=a||1e-6,l=l||.1;for(var v=0;v<10;++v){if(s(r.x,1,n.x,o,e),h=r.fx=t(r.x,r.fxprime),p=i(r.fxprime,e),h>u+a*o*c||v&&h>=f)return g(d,o,f);if(Math.abs(p)<=-l*c)return o;if(p>=0)return g(o,d,h);f=h,d=o,o*=2}return o}function c(t,e,n){var r,l,c,h={x:e.slice(),fx:0,fxprime:e.slice()},f={x:e.slice(),fx:0,fxprime:e.slice()},p=e.slice(),d=1;n=n||{},c=n.maxIterations||20*e.length,h.fx=t(h.x,h.fxprime),r=h.fxprime.slice(),a(r,h.fxprime,-1);for(var g=0;g<c;++g){if(d=u(t,r,h,f,d),n.history&&n.history.push({x:h.x.slice(),fx:h.fx,fxprime:h.fxprime.slice(),alpha:d}),d){s(p,1,f.fxprime,-1,h.fxprime);var v=i(h.fxprime,h.fxprime),m=Math.max(0,i(p,f.fxprime)/v);s(r,m,r,-1,f.fxprime),l=h,h=f,f=l}else a(r,h.fxprime,-1);if(o(h.fxprime)<=1e-5)break}return n.history&&n.history.push({x:h.x.slice(),fx:h.fx,fxprime:h.fxprime.slice(),alpha:d}),h}function h(t,e,n){n=n||{};for(var r=n.maxIterations||100*e.length,i=n.learnRate||.001,a={x:e.slice(),fx:0,fxprime:e.slice()},l=0;l<r;++l)if(a.fx=t(a.x,a.fxprime),n.history&&n.history.push({x:a.x.slice(),fx:a.fx,fxprime:a.fxprime.slice()}),s(a.x,1,a.x,-i,a.fxprime),o(a.fxprime)<=1e-5)break;return a}function f(t,e,n){n=n||{};var r,i={x:e.slice(),fx:0,fxprime:e.slice()},s={x:e.slice(),fx:0,fxprime:e.slice()},l=n.maxIterations||100*e.length,c=n.learnRate||1,h=e.slice(),f=n.c1||.001,p=n.c2||.1,d=[];if(n.history){var g=t;t=function(t,e){return d.push(t.slice()),g(t,e)}}i.fx=t(i.x,i.fxprime);for(var v=0;v<l;++v)if(a(h,i.fxprime,-1),c=u(t,h,i,s,c,f,p),n.history&&(n.history.push({x:i.x.slice(),fx:i.fx,fxprime:i.fxprime.slice(),functionCalls:d,learnRate:c,alpha:c}),d=[]),r=i,i=s,s=r,0===c||o(i.fxprime)<1e-5)break;return i}t.bisect=e,t.nelderMead=l,t.conjugateGradient=c,t.gradientDescent=h,t.gradientDescentLineSearch=f,t.zeros=n,t.zerosM=r,t.norm2=o,t.weightedSum=s,t.scale=a}))},24390:function(t){"use strict";function e(t,e){var n=e.length,r=t.length;if(r>n)return!1;if(r===n)return t===e;t:for(var i=0,o=0;i<r;i++){var a=t.charCodeAt(i);while(o<n)if(e.charCodeAt(o++)===a)continue t;return!1}return!0}t.exports=e},49685:function(t,e,n){"use strict";n.d(e,{WT:function(){return r}});var r="undefined"!==typeof Float32Array?Float32Array:Array;Math.random;Math.PI;Math.hypot||(Math.hypot=function(){var t=0,e=arguments.length;while(e--)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},35600:function(t,e,n){"use strict";function r(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=c*a-s*u,f=-c*o+s*l,p=u*o-a*l,d=n*h+r*f+i*p;return d?(d=1/d,t[0]=h*d,t[1]=(-c*r+i*u)*d,t[2]=(s*r-i*a)*d,t[3]=f*d,t[4]=(c*n-i*l)*d,t[5]=(-s*n+i*o)*d,t[6]=p*d,t[7]=(-u*n+r*l)*d,t[8]=(a*n-r*o)*d,t):null}function i(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],f=n[0],p=n[1],d=n[2],g=n[3],v=n[4],m=n[5],y=n[6],b=n[7],x=n[8];return t[0]=f*r+p*a+d*u,t[1]=f*i+p*s+d*c,t[2]=f*o+p*l+d*h,t[3]=g*r+v*a+m*u,t[4]=g*i+v*s+m*c,t[5]=g*o+v*l+m*h,t[6]=y*r+b*a+x*u,t[7]=y*i+b*s+x*c,t[8]=y*o+b*l+x*h,t}function o(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function a(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function s(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}n.d(e,{U_:function(){return r},Jp:function(){return i},vc:function(){return o},Us:function(){return a},xJ:function(){return s}})},31437:function(t,e,n){"use strict";n.d(e,{IH:function(){return o},$X:function(){return a},VV:function(){return s},Fp:function(){return l},bA:function(){return u},TE:function(){return c},kE:function(){return h},Fv:function(){return f},AK:function(){return p},kK:function(){return d},EU:function(){return g},I6:function(){return v},lu:function(){return m}});var r=n(49685);function i(){var t=new r.WT(2);return r.WT!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function l(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function u(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function h(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function f(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function p(t,e){return t[0]*e[0]+t[1]*e[1]}function d(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function g(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+o*o),s=a&&(n*i+r*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function v(t,e){return t[0]===e[0]&&t[1]===e[1]}var m=a;(function(){var t=i()})()},66141:function(t){function e(t){return!!t&&("object"===typeof t||"function"===typeof t)&&"function"===typeof t.then}t.exports=e,t.exports["default"]=e},88495:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;
- /**
- * [js-md5]{@link https://github.com/emn178/js-md5}
- *
- * @namespace md5
- * @version 0.7.3
- * @author Chen, Yi-Cyuan [emn178@gmail.com]
- * @copyright Chen, Yi-Cyuan 2014-2017
- * @license MIT
- */(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"===typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t){return function(e){return new Md5(!0).update(e)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.create=function(){return new Md5},t.update=function(e){return t.create().update(e)};for(var e=0;e<OUTPUT_TYPES.length;++e){var n=OUTPUT_TYPES[e];t[n]=createOutputMethod(n)}return t},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(t){if("string"===typeof t)return crypto.createHash("md5").update(t,"utf8").digest("hex");if(null===t||void 0===t)throw ERROR;return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash("md5").update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod};function Md5(t){if(t)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(t){if(!this.finalized){var e,n=typeof t;if("string"!==n){if("object"!==n)throw ERROR;if(null===t)throw ERROR;if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(t)))throw ERROR;e=!0}var r,i,o=0,a=t.length,s=this.blocks,l=this.buffer8;while(o<a){if(this.hashed&&(this.hashed=!1,s[0]=s[16],s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),e)if(ARRAY_BUFFER)for(i=this.start;o<a&&i<64;++o)l[i++]=t[o];else for(i=this.start;o<a&&i<64;++o)s[i>>2]|=t[o]<<SHIFT[3&i++];else if(ARRAY_BUFFER)for(i=this.start;o<a&&i<64;++o)r=t.charCodeAt(o),r<128?l[i++]=r:r<2048?(l[i++]=192|r>>6,l[i++]=128|63&r):r<55296||r>=57344?(l[i++]=224|r>>12,l[i++]=128|r>>6&63,l[i++]=128|63&r):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),l[i++]=240|r>>18,l[i++]=128|r>>12&63,l[i++]=128|r>>6&63,l[i++]=128|63&r);else for(i=this.start;o<a&&i<64;++o)r=t.charCodeAt(o),r<128?s[i>>2]|=r<<SHIFT[3&i++]:r<2048?(s[i>>2]|=(192|r>>6)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]):r<55296||r>=57344?(s[i>>2]|=(224|r>>12)<<SHIFT[3&i++],s[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),s[i>>2]|=(240|r>>18)<<SHIFT[3&i++],s[i>>2]|=(128|r>>12&63)<<SHIFT[3&i++],s[i>>2]|=(128|r>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&r)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>2]|=EXTRA[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var t,e,n,r,i,o,a=this.blocks;this.first?(t=a[0]-680876937,t=(t<<7|t>>>25)-271733879<<0,r=(-1732584194^2004318071&t)+a[1]-117830708,r=(r<<12|r>>>20)+t<<0,n=(-271733879^r&(-271733879^t))+a[2]-1126478375,n=(n<<17|n>>>15)+r<<0,e=(t^n&(r^t))+a[3]-1316259209,e=(e<<22|e>>>10)+n<<0):(t=this.h0,e=this.h1,n=this.h2,r=this.h3,t+=(r^e&(n^r))+a[0]-680876936,t=(t<<7|t>>>25)+e<<0,r+=(n^t&(e^n))+a[1]-389564586,r=(r<<12|r>>>20)+t<<0,n+=(e^r&(t^e))+a[2]+606105819,n=(n<<17|n>>>15)+r<<0,e+=(t^n&(r^t))+a[3]-1044525330,e=(e<<22|e>>>10)+n<<0),t+=(r^e&(n^r))+a[4]-176418897,t=(t<<7|t>>>25)+e<<0,r+=(n^t&(e^n))+a[5]+1200080426,r=(r<<12|r>>>20)+t<<0,n+=(e^r&(t^e))+a[6]-1473231341,n=(n<<17|n>>>15)+r<<0,e+=(t^n&(r^t))+a[7]-45705983,e=(e<<22|e>>>10)+n<<0,t+=(r^e&(n^r))+a[8]+1770035416,t=(t<<7|t>>>25)+e<<0,r+=(n^t&(e^n))+a[9]-1958414417,r=(r<<12|r>>>20)+t<<0,n+=(e^r&(t^e))+a[10]-42063,n=(n<<17|n>>>15)+r<<0,e+=(t^n&(r^t))+a[11]-1990404162,e=(e<<22|e>>>10)+n<<0,t+=(r^e&(n^r))+a[12]+1804603682,t=(t<<7|t>>>25)+e<<0,r+=(n^t&(e^n))+a[13]-40341101,r=(r<<12|r>>>20)+t<<0,n+=(e^r&(t^e))+a[14]-1502002290,n=(n<<17|n>>>15)+r<<0,e+=(t^n&(r^t))+a[15]+1236535329,e=(e<<22|e>>>10)+n<<0,t+=(n^r&(e^n))+a[1]-165796510,t=(t<<5|t>>>27)+e<<0,r+=(e^n&(t^e))+a[6]-1069501632,r=(r<<9|r>>>23)+t<<0,n+=(t^e&(r^t))+a[11]+643717713,n=(n<<14|n>>>18)+r<<0,e+=(r^t&(n^r))+a[0]-373897302,e=(e<<20|e>>>12)+n<<0,t+=(n^r&(e^n))+a[5]-701558691,t=(t<<5|t>>>27)+e<<0,r+=(e^n&(t^e))+a[10]+38016083,r=(r<<9|r>>>23)+t<<0,n+=(t^e&(r^t))+a[15]-660478335,n=(n<<14|n>>>18)+r<<0,e+=(r^t&(n^r))+a[4]-405537848,e=(e<<20|e>>>12)+n<<0,t+=(n^r&(e^n))+a[9]+568446438,t=(t<<5|t>>>27)+e<<0,r+=(e^n&(t^e))+a[14]-1019803690,r=(r<<9|r>>>23)+t<<0,n+=(t^e&(r^t))+a[3]-187363961,n=(n<<14|n>>>18)+r<<0,e+=(r^t&(n^r))+a[8]+1163531501,e=(e<<20|e>>>12)+n<<0,t+=(n^r&(e^n))+a[13]-1444681467,t=(t<<5|t>>>27)+e<<0,r+=(e^n&(t^e))+a[2]-51403784,r=(r<<9|r>>>23)+t<<0,n+=(t^e&(r^t))+a[7]+1735328473,n=(n<<14|n>>>18)+r<<0,e+=(r^t&(n^r))+a[12]-1926607734,e=(e<<20|e>>>12)+n<<0,i=e^n,t+=(i^r)+a[5]-378558,t=(t<<4|t>>>28)+e<<0,r+=(i^t)+a[8]-2022574463,r=(r<<11|r>>>21)+t<<0,o=r^t,n+=(o^e)+a[11]+1839030562,n=(n<<16|n>>>16)+r<<0,e+=(o^n)+a[14]-35309556,e=(e<<23|e>>>9)+n<<0,i=e^n,t+=(i^r)+a[1]-1530992060,t=(t<<4|t>>>28)+e<<0,r+=(i^t)+a[4]+1272893353,r=(r<<11|r>>>21)+t<<0,o=r^t,n+=(o^e)+a[7]-155497632,n=(n<<16|n>>>16)+r<<0,e+=(o^n)+a[10]-1094730640,e=(e<<23|e>>>9)+n<<0,i=e^n,t+=(i^r)+a[13]+681279174,t=(t<<4|t>>>28)+e<<0,r+=(i^t)+a[0]-358537222,r=(r<<11|r>>>21)+t<<0,o=r^t,n+=(o^e)+a[3]-722521979,n=(n<<16|n>>>16)+r<<0,e+=(o^n)+a[6]+76029189,e=(e<<23|e>>>9)+n<<0,i=e^n,t+=(i^r)+a[9]-640364487,t=(t<<4|t>>>28)+e<<0,r+=(i^t)+a[12]-421815835,r=(r<<11|r>>>21)+t<<0,o=r^t,n+=(o^e)+a[15]+530742520,n=(n<<16|n>>>16)+r<<0,e+=(o^n)+a[2]-995338651,e=(e<<23|e>>>9)+n<<0,t+=(n^(e|~r))+a[0]-198630844,t=(t<<6|t>>>26)+e<<0,r+=(e^(t|~n))+a[7]+1126891415,r=(r<<10|r>>>22)+t<<0,n+=(t^(r|~e))+a[14]-1416354905,n=(n<<15|n>>>17)+r<<0,e+=(r^(n|~t))+a[5]-57434055,e=(e<<21|e>>>11)+n<<0,t+=(n^(e|~r))+a[12]+1700485571,t=(t<<6|t>>>26)+e<<0,r+=(e^(t|~n))+a[3]-1894986606,r=(r<<10|r>>>22)+t<<0,n+=(t^(r|~e))+a[10]-1051523,n=(n<<15|n>>>17)+r<<0,e+=(r^(n|~t))+a[1]-2054922799,e=(e<<21|e>>>11)+n<<0,t+=(n^(e|~r))+a[8]+1873313359,t=(t<<6|t>>>26)+e<<0,r+=(e^(t|~n))+a[15]-30611744,r=(r<<10|r>>>22)+t<<0,n+=(t^(r|~e))+a[6]-1560198380,n=(n<<15|n>>>17)+r<<0,e+=(r^(n|~t))+a[13]+1309151649,e=(e<<21|e>>>11)+n<<0,t+=(n^(e|~r))+a[4]-145523070,t=(t<<6|t>>>26)+e<<0,r+=(e^(t|~n))+a[11]-1120210379,r=(r<<10|r>>>22)+t<<0,n+=(t^(r|~e))+a[2]+718787259,n=(n<<15|n>>>17)+r<<0,e+=(r^(n|~t))+a[9]-343485551,e=(e<<21|e>>>11)+n<<0,this.first?(this.h0=t+1732584193<<0,this.h1=e-271733879<<0,this.h2=n-1732584194<<0,this.h3=r+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+e<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0)},Md5.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return[255&t,t>>8&255,t>>16&255,t>>24&255,255&e,e>>8&255,e>>16&255,e>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var t,e,n,r="",i=this.array(),o=0;o<15;)t=i[o++],e=i[o++],n=i[o++],r+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[63&(t<<4|e>>>4)]+BASE64_ENCODE_CHAR[63&(e<<2|n>>>6)]+BASE64_ENCODE_CHAR[63&n];return t=i[o],r+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[t<<4&63]+"==",r};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},62705:function(t,e,n){var r=n(55639),i=r.Symbol;t.exports=i},44239:function(t,e,n){var r=n(62705),i=n(89607),o=n(2333),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;function u(t){return null==t?void 0===t?s:a:l&&l in Object(t)?i(t):o(t)}t.exports=u},27561:function(t,e,n){var r=n(67990),i=/^\s+/;function o(t){return t?t.slice(0,r(t)+1).replace(i,""):t}t.exports=o},31957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},89607:function(t,e,n){var r=n(62705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function l(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(l){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}t.exports=l},2333:function(t){var e=Object.prototype,n=e.toString;function r(t){return n.call(t)}t.exports=r},55639:function(t,e,n){var r=n(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},67990:function(t){var e=/\s/;function n(t){var n=t.length;while(n--&&e.test(t.charAt(n)));return n}t.exports=n},89567:function(t,e,n){var r=n(40554),i="Expected a function";function o(t,e){var n;if("function"!=typeof e)throw new TypeError(i);return t=r(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}t.exports=o},75703:function(t){function e(t){return function(){return t}}t.exports=e},23279:function(t,e,n){var r=n(13218),i=n(7771),o=n(14841),a="Expected a function",s=Math.max,l=Math.min;function u(t,e,n){var u,c,h,f,p,d,g=0,v=!1,m=!1,y=!0;if("function"!=typeof t)throw new TypeError(a);function b(e){var n=u,r=c;return u=c=void 0,g=e,f=t.apply(r,n),f}function x(t){return g=t,p=setTimeout(S,e),v?b(t):f}function w(t){var n=t-d,r=t-g,i=e-n;return m?l(i,h-r):i}function C(t){var n=t-d,r=t-g;return void 0===d||n>=e||n<0||m&&r>=h}function S(){var t=i();if(C(t))return A(t);p=setTimeout(S,w(t))}function A(t){return p=void 0,y&&u?b(t):(u=c=void 0,f)}function E(){void 0!==p&&clearTimeout(p),g=0,u=d=c=p=void 0}function k(){return void 0===p?f:A(i())}function D(){var t=i(),n=C(t);if(u=arguments,c=this,d=t,n){if(void 0===p)return x(d);if(m)return clearTimeout(p),p=setTimeout(S,e),b(d)}return void 0===p&&(p=setTimeout(S,e)),f}return e=o(e)||0,r(n)&&(v=!!n.leading,m="maxWait"in n,h=m?s(o(n.maxWait)||0,e):h,y="trailing"in n?!!n.trailing:y),D.cancel=E,D.flush=k,D}t.exports=u},6557:function(t){function e(t){return t}t.exports=e},13218:function(t){function e(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=e},37005:function(t){function e(t){return null!=t&&"object"==typeof t}t.exports=e},33448:function(t,e,n){var r=n(44239),i=n(37005),o="[object Symbol]";function a(t){return"symbol"==typeof t||i(t)&&r(t)==o}t.exports=a},10928:function(t){function e(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}t.exports=e},50308:function(t){function e(){}t.exports=e},7771:function(t,e,n){var r=n(55639),i=function(){return r.Date.now()};t.exports=i},51463:function(t,e,n){var r=n(89567);function i(t){return r(2,t)}t.exports=i},18601:function(t,e,n){var r=n(14841),i=1/0,o=17976931348623157e292;function a(t){if(!t)return 0===t?t:0;if(t=r(t),t===i||t===-i){var e=t<0?-1:1;return e*o}return t===t?t:0}t.exports=a},40554:function(t,e,n){var r=n(18601);function i(t){var e=r(t),n=e%1;return e===e?n?e-n:e:0}t.exports=i},14841:function(t,e,n){var r=n(27561),i=n(13218),o=n(33448),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;function h(t){if("number"==typeof t)return t;if(o(t))return a;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=l.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):s.test(t)?a:+t}t.exports=h},73807:function(t){"use strict";var e=t.exports;t.exports.isNumber=function(t){return"number"===typeof t},t.exports.findMin=function(t){if(0===t.length)return 1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.min(e,t[n]);return e},t.exports.findMax=function(t){if(0===t.length)return-1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.max(e,t[n]);return e},t.exports.findMinMulti=function(t){for(var n=e.findMin(t[0]),r=1;r<t.length;r++)n=Math.min(n,e.findMin(t[r]));return n},t.exports.findMaxMulti=function(t){for(var n=e.findMax(t[0]),r=1;r<t.length;r++)n=Math.max(n,e.findMax(t[r]));return n},t.exports.inside=function(t,e,n){return t<=n&&n<=e}},53843:function(t,e,n){"use strict";var r=50,i=2,o=Math.log(2),a=t.exports,s=n(73807);function l(t){return 1-Math.abs(t)}function u(t,e){for(var n={},r=0,i=-e;i<=e;i++)r+=t(i/e),n[i]=r;return n}t.exports.getUnifiedMinMax=function(t,e){return a.getUnifiedMinMaxMulti([t],e)},t.exports.getUnifiedMinMaxMulti=function(t,e){e=e||{};var n=!1,o=!1,a=s.isNumber(e.width)?e.width:i,l=s.isNumber(e.size)?e.size:r,u=s.isNumber(e.min)?e.min:(n=!0,s.findMinMulti(t)),c=s.isNumber(e.max)?e.max:(o=!0,s.findMaxMulti(t)),h=c-u,f=h/(l-1);return n&&(u-=2*a*f),o&&(c+=2*a*f),{min:u,max:c}},t.exports.create=function(t,e){if(e=e||{},!t||0===t.length)return[];var n=s.isNumber(e.size)?e.size:r,o=s.isNumber(e.width)?e.width:i,c=a.getUnifiedMinMax(t,{size:n,width:o,min:e.min,max:e.max}),h=c.min,f=c.max,p=f-h,d=p/(n-1);if(0===p)return[{x:h,y:1}];for(var g=[],v=0;v<n;v++)g.push({x:h+v*d,y:0});var m=function(t){return Math.floor((t-h)/d)},y=u(l,o),b=y[o],x=y[o-1]-y[o-2],w=0;t.forEach((function(t){var e=m(t);if(!(e+o<0||e-o>=g.length)){var n=Math.max(e-o,0),r=e,i=Math.min(e+o,g.length-1),a=n-(e-o),l=e+o-i,u=y[-o-1+a]||0,c=y[-o-1+l]||0,h=b/(b-u-c);a>0&&(w+=h*(a-1)*x);var f=Math.max(0,e-o+1);s.inside(0,g.length-1,f)&&(g[f].y+=1*h*x),s.inside(0,g.length-1,r+1)&&(g[r+1].y-=2*h*x),s.inside(0,g.length-1,i+1)&&(g[i+1].y+=1*h*x)}}));var C=w,S=0,A=0;return g.forEach((function(t){S+=t.y,C+=S,t.y=C,A+=C})),A>0&&g.forEach((function(t){t.y/=A})),g},t.exports.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){e+=t.x*t.y})),e}},t.exports.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,r=0,i=0;i<t.length;i++)if(r=i,n+=t[i].y,n>=e)break;return t[r].x}},t.exports.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)})),e=-e/o,Math.pow(2,e)}}},55168:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SensorTabIndex=e.SensorClassName=e.SizeSensorId=void 0;var n="size-sensor-id";e.SizeSensorId=n;var r="size-sensor-object";e.SensorClassName=r;var i="-1";e.SensorTabIndex=i},12177:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){t.apply(r,o)}),e)}};e["default"]=n},15378:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var n=1,r=function(){return"".concat(n++)};e["default"]=r},18587:function(t,e,n){"use strict";e.ak=void 0;var r=n(12955),i=function(t,e){var n=(0,r.getSensor)(t);return n.bind(e),function(){n.unbind(e)}};e.ak=i;var o=function(t){var e=(0,r.getSensor)(t);(0,r.removeSensor)(e)};var a="1.0.1"},12955:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=void 0;var r=a(n(15378)),i=n(82578),o=n(55168);function a(t){return t&&t.__esModule?t:{default:t}}var s={},l=function(t){var e=t.getAttribute(o.SizeSensorId);if(e&&s[e])return s[e];var n=(0,r["default"])();t.setAttribute(o.SizeSensorId,n);var a=(0,i.createSensor)(t);return s[n]=a,a};e.getSensor=l;var u=function(t){var e=t.element.getAttribute(o.SizeSensorId);t.element.removeAttribute(o.SizeSensorId),t.destroy(),e&&s[e]&&delete s[e]};e.removeSensor=u},82578:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r=n(27643),i=n(31743),o="undefined"!==typeof ResizeObserver?i.createSensor:r.createSensor;e.createSensor=o},27643:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r=o(n(12177)),i=n(55168);function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){var e=void 0,n=[],o=function(){"static"===getComputedStyle(t).position&&(t.style.position="relative");var e=document.createElement("object");return e.onload=function(){e.contentDocument.defaultView.addEventListener("resize",a),a()},e.style.display="block",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex="-1",e.style.opacity="0",e.setAttribute("class",i.SensorClassName),e.setAttribute("tabindex",i.SensorTabIndex),e.type="text/html",t.appendChild(e),e.data="about:blank",e},a=(0,r["default"])((function(){n.forEach((function(e){e(t)}))})),s=function(t){e||(e=o()),-1===n.indexOf(t)&&n.push(t)},l=function(){e&&e.parentNode&&(e.contentDocument&&e.contentDocument.defaultView.removeEventListener("resize",a),e.parentNode.removeChild(e),e=void 0,n=[])},u=function(t){var r=n.indexOf(t);-1!==r&&n.splice(r,1),0===n.length&&e&&l()};return{element:t,bind:s,destroy:l,unbind:u}};e.createSensor=a},31743:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r=i(n(12177));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(t){var e=void 0,n=[],i=(0,r["default"])((function(){n.forEach((function(e){e(t)}))})),o=function(){var e=new ResizeObserver(i);return e.observe(t),i(),e},a=function(t){e||(e=o()),-1===n.indexOf(t)&&n.push(t)},s=function(){e.disconnect(),n=[],e=void 0},l=function(t){var r=n.indexOf(t);-1!==r&&n.splice(r,1),0===n.length&&e&&s()};return{element:t,bind:a,destroy:s,unbind:l}};e.createSensor=o},47327:function(t){function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports},88484:function(t){function e(t){if(Array.isArray(t))return t}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports},97005:function(t,e,n){var r=n(47327);function i(t){if(Array.isArray(t))return r(t)}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},16742:function(t){function e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}t.exports=e,t.exports.__esModule=!0,t.exports["default"]=t.exports},68777:function(t,e,n){function r(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n(82526),n(41817),n(41539),n(32165),n(78783),n(33948),n(91038),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},85302:function(t,e,n){function r(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),e&&o.length===e)break}catch(l){s=!0,i=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}n(82526),n(41817),n(41539),n(32165),n(78783),n(33948),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},97740:function(t,e,n){function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(21703),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},19208:function(t,e,n){function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n(21703),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},94673:function(t,e,n){var r=n(88484),i=n(85302),o=n(94950),a=n(97740);function s(t,e){return r(t)||i(t,e)||o(t,e)||a()}t.exports=s,t.exports.__esModule=!0,t.exports["default"]=t.exports},99848:function(t,e,n){var r=n(97005),i=n(68777),o=n(94950),a=n(19208);function s(t){return r(t)||i(t)||o(t)||a()}t.exports=s,t.exports.__esModule=!0,t.exports["default"]=t.exports},17964:function(t,e,n){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e)}n(82526),n(41817),n(41539),n(32165),n(78783),n(33948),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},94950:function(t,e,n){n(47042),n(41539),n(68309),n(91038),n(78783),n(74916),n(77601);var r=n(47327);function i(t,e){if(t){if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},575:function(t,e,n){"use strict";n(41539);var r=n(15454);e["Z"]={removeFileList:function(t){var e=[];if(t.length)for(var n=0;n<t.length;n++)e.push(t[n].linksid);console.log(e);var i={accesstoken:"4a6559d45d2a4c6e0ebac2c803344106",classname:"system.attachment.Attachment",method:"deleteFileLink",content:{linksids:[1]}};return new Promise((function(t){i.content.linksids=e,r.Z.requested(i).then((function(e){1==e.code&&t(e.code)}))}))}}},82761:function(t,e,n){"use strict";n(21703),n(47042),n(74916),n(15306),n(77601),n(41539),n(39714),n(23123),Object.defineProperty(e,"__esModule",{value:!0});var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;function o(t){return decodeURIComponent(e.weAtob(t).replace(/(.)/g,(function(t){var e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}function a(t){var n=t.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw"Illegal base64url string!"}try{return o(n)}catch(r){return e.weAtob(n)}}function s(t,e){if("string"!==typeof t)throw"Invalid token specified";e=e||{};var n=!0===e.header?0:1;try{return JSON.parse(a(t.split(".")[n]))}catch(r){throw"Invalid token specified: "+r.message}}e.weBtoa=function(t){t=String(t);for(var e,n,i,o,a="",s=0,l=t.length%3;s<t.length;){if((n=t.charCodeAt(s++))>255||(i=t.charCodeAt(s++))>255||(o=t.charCodeAt(s++))>255)throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");e=n<<16|i<<8|o,a+=r.charAt(e>>18&63)+r.charAt(e>>12&63)+r.charAt(e>>6&63)+r.charAt(63&e)}return l?a.slice(0,l-3)+"===".substring(l):a},e.weAtob=function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!i.test(t))throw new TypeError("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");t+="==".slice(2-(3&t.length));for(var e,n,o,a="",s=0;s<t.length;)e=r.indexOf(t.charAt(s++))<<18|r.indexOf(t.charAt(s++))<<12|(n=r.indexOf(t.charAt(s++)))<<6|(o=r.indexOf(t.charAt(s++))),a+=64===n?String.fromCharCode(e>>16&255):64===o?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return a},e["default"]=s},70655:function(t,e,n){"use strict";n.d(e,{ZT:function(){return i},pi:function(){return o},_T:function(){return a},mG:function(){return s},Jh:function(){return l},XA:function(){return u},CR:function(){return c},pr:function(){return h},ev:function(){return f}});
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{l(r.next(t))}catch(e){o(e)}}function s(t){try{l(r["throw"](t))}catch(e){o(e)}}function l(t){t.done?n(t.value):i(t.value).then(a,s)}l((r=r.apply(t,e||[])).next())}))}function l(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}Object.create;function u(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{while((void 0===e||e-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function h(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function f(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}Object.create},15526:function(t,e,n){"use strict";t.exports=n.p+"img/more.58cd973b.svg"},82024:function(t,e,n){"use strict";t.exports=n.p+"img/work_station.550df9c4.svg"},79878:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAGtJREFUOE/lkrERQFAUBPdyJShFEXoRC4zQCFSgFSUoQaAAwc/PEP75mBHywpvb4O2ceHm64mx3wCppSHXuwBFYJDVfAG23QB79UgABmKP8EFafcmxXQBYVSmADpigPkvrfWE0t4/Xknra/AyorQA+9LWQPAAAAAElFTkSuQmCC"},38308:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACFdJREFUeF7lW81vG0UU39m1nTh21nVRSlNVdeihlRKixPJGLVIlAhJwbEuFxK0tEldazhxoxT/QcgXR9A40XEBCQgSph1TeyI5KIrVVS+ghkeqixp+JY3sH/ZYdM3bseD9mWxeeFOVrd96837zveSaSz5TJZPY1Go3ThJAxsKKUzlos8Tv7W5YQsom/E0IWrOfWFEX5IZlMmn/3i4gfC2cymWnDME4bhnGGEDLthQelNCvL8rwsywAj62WtTu8KAwAnbRjGJUrpBXayjGGtVpPq9br5K/vO/xwIBJp7Yz/jezAYbN/zGiFkTpbl66I0wzMAnOCXJUnahx0bhiExoXd2djwdWigUkhgYsiyztTYJIddSqdRVT4vD5LwsoOv6eUmSrrATh9Db29stp+xl/fZ3AcTg4CCvGWvgr2naTbd8XAEAG6/X6zeYffsteCcgwuGwqRmWw8wGAoGzyWQSgDgixwCk0+lZQsgtqDtUHSderVYdMRX18MDAgKkRlmlsKoryllNH6QiApaWlC5TSGxAAp14ulxHWRMnjah1CiBSJRJpmQQi5mEql5uwuZhsAXdchODy8eepbW1t2eTyX52AS0AaL5jRNu2iHsS0AdF2Hyp/BgpVK5YWpfC+BYBJDQ0PssXlN0872eqcnAOzkoeqlUsk3D99ro3b/D8cYjUaRUeKV65qmITx3pT0B4GyeFotFwicxdjf0Ip4DCMPDwybrXj6hKwCWt/+139W+G8C8OSiKkuwWHToCgDjfaDQg/L5+dHh2tYpzjAiRAGFXntARgHQ6nUGSg1AHu3+ZCf4ANQWKqpmZmWS7LLsAYHaPJKdQKLzwOO8VfDhDVVXNZKmTP2gBwKrdM8jt+zncOQWF8wdrmqa9xr/fAkA6nb5CCPn8v6D67SAhKiA6UEqvzszMoID7J0qwH6zT/wOOr1gs+hrvR0ZGmmGK8QfPZ8+e+caXC41wiK+xfkITAL9PPx6PS0eOHJEg/F6Uy+Wkhw8f+uJ8OYfY1IImALqu4/THRJ8+kJ+ampIAgBNaX1+X7t+/L1QjOC1o+gITACvuZwzDoPl8vmd6bFcQID4xMbFL3e2+j8NYWVkRqg2xWIzKskxYcmQKy9QfdT28vwgC2idPnuQrNFfLIhFbXFwUpgkolhAVCCGfplKpawwAM/FBfe+1h8ekTKVSjtW+G0LQhDt37rgCsP0l9BjRP2CJEclkMmONRgP2b3phETQ6OmqqvkiCKWxsbAhZkvkjRVHihGV+ImP/qVOnPKt+u6Qwhdu3bwsBgEUDZIaE2T86PGDilYAu1N8PWlpaEqKl6ByhUEJSRHRdvyZJ0iVRABw7dsyM937Q48ePzdDolVoASKfTC4SQN0XFf5HOr11Q+ChogVdi+QCl9DeYwP8bAJYBovRtNBpewTXt32nWZ5epDxqQhQ8wG/uiQuDLAADkZYckHADk/b0KHrsn3v4c8gDkAyKIBwB9soQoE/AjCWICi0qGuKJoWbgTxOKzs2wIRMRZ/bvGwsKCkJrA1yiA7SINhiaIJJHq3wKA6EQIQiPRQCXIT354AQMXMqgIRWSqbH/NTFB0KswEFekLlpeXJXSKRFFLJuhHMSQSBFGOjwevpRiymqFmHSwqF+CZISTCJzg1B6j9vXv3hJXA/J5aymH8Q9d1jJ9NiWyI8Awh/PHjx207Rjg8NEZF2Ty/F9YQkSRpWdO0ad9aYp3sFbZ34MABMwsDKOwkWDv8yZMnphb6ITjbT8eWmF9NUeZx3QoEwNy+281hdmyKWmZgZoQiymKcLqJAIpEwT1rXdcedXTgqTdPMxAfmIKIdxmWAf2qaZo7p7roYAUOA4IbAAM0QfPFOr1tTc3x83GSzurrawg7voqhiQw74JzTBKxCdrsfar8agBTE3WoATh6Pr5u0fPXok4YsRhD906JD5Ky5BeBD26ioBCIRGpxGLO/28oihju67GsBGWFDnRAic3P8jmMG8A20bjlCc0PCEcVB9ZZC9CYgQg7I7tqKpKFUUhXS9HwdDKCRASE3aux5md2o3xfEODL5v5PP/EiRO2b5IAWDab7elfuOvxpu0zgPcakKCFQgGIdTwMp8KzRVhmx3ePWbfXbfq8V7ZoDUiY12E9ByTYJllihFsiJEft5FZ45sxgCrB/2DoInV74AZiFXW1q31M3EHALhOSHJT7t73UbksJtEUwh1mlIyomadlIftLcBABMWdgwAvLTTsUZ7uOWGpOD4pm0PSVkOEUPRu8bkjh49KuGrH4kPt57G5Jhw/HA0FseJtXvvfgMCoRYa5nlQkvMHmLw+D2d4+PBh6eDBg/0mc8t+YAp37941P7XieVSWA2E+FAqdnpyc7Gvh2eYQVtfX129qmmZOt+9FtqdB1tbWfkkkEm/3WrAf/l8sFldUVX3dzl5sA0ApJfl8/ltVVd+3JrHtrP9cn7Em2m8NDw+fI4TY+iSHbQCYJE+fPv0sHo9/gcTiuUrXgxnmmwqFwuV4PP6lk325EiKXy32oqurNkJVhOGHox7O1Wm2nVCqd2b9//09O13cFAJhQSiP5fP6boaGhc8FgUHHKWMTz9Xq9US6Xv4vFYh8RQnanrDaYuAaArU0pHczlct/HYrH3QqFQ85ONNni7fqRarRqFQuHHkZGRDwghnsZaPAPApEAlOTo6OheJRN6NRqNh19J1eRFxvVwub1UqlZ83NjYu9M1HZzvt98GDB2+Ew+FPwuHwO9Fo9BW3rgLFWKlU+qtarc5vbm5+PT4+vigaWGEa0G1j0IxIJPLxwMDARDgcflVRlMlgMDgYCoWGAoGAqSn1en1rZ2enUqvVtimlq8VicaNWq/1eLpe/EnXS3fb3NzbF5DdFK/KfAAAAAElFTkSuQmCC"},88975:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAQpJREFUOE9jZCARmBX/cD/Vy7ETpo2RFP3mJd+6GRkYSv4zMEw42cNVCNJLmgHF31YzMjKEgDT+Z2DoOdnDVUqUAebFP/IZGP7ZvHzLGSsu/H0xIyNDwP//DJEne7nWEDTAvPhbOyMjQwXY1v8Ma8CGCH03ONnHdYKgF8xLvvUzMjAUIIXTn///GGxhmvEagFUz1NnIAY/VC8RqxuoCUjRjGGBe/LWZkZGxBsXPWJyN3QsO/1nMjb+9ZmRkFIAq+AOLKnyJDR4G5sWfbBgZWQ6TohnFC6D4ZmBgcGBkZNzy59efjWcm8V4hJpnDXaCQcJ/jwQLFH8RoQgkDi5Jv+0nVhGpA0ZcESgwAAOi4cXC0nzlUAAAAAElFTkSuQmCC"},75090:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAAAXNSR0IArs4c6QAAFD1JREFUeNrtXQuYVFUdHzXLssIss4eVll8PC4sWdxbNxEqDrLQUtfJBZooPXjszuyDCQoovUgEFlCARQVdRhEAUAUHkpSBPecgbFlceLiw7c865swqn/3+WhXvP3Hvnzsy9M+feOef7/t/Hx96dnTn/3/zfj1BIHcMJV9EzwlE6rCJCt5dH2F1l1byNuhV1Mp4OvbWzK6JkTDhCmyuilLdSOEoaKyJkcLvu/DR1S+qYACfZFkBTC1LnkB44aRShFCUTSih1a+qEwpW0AqTLdFvQmBBKqHCEjEWJpW6xBM95Ma0TgOCNDNLmpfIYuwEkzhJbMEXpcyjB1K0G/vDjyqP0T8DwpTag+QRoQvsq7Qf636yIso5gG82yBxKZjhJN3XPQThd+QjjCrgeVs9ZGiiTh50+WR9lZdi9VXkXaw7NTQHodtgHT3HBEu0RdvM/P2d35Z8ojpBswfKsNcAjQo2W9yNedvGYimWwbJ3TS2u3aob7jKD8/ZqvalqLEQ8mnuOGjc26UnxyO0ShIlHobddMIKuneDr35qU5ek1L6iwSh0xKEcT1t3sX4oGcJv6CK2BjcZG04yq5DSai4I/H5WS9+CoBiIMRrGqzVC9kLzOx7QRX/giOJk9A6xRNsvggckXbsZvzBSZT/so+1akNJiBIRJaPilkyueE9+OjBnCBi/cRvm1YHd0hMkzmczmtqcH09I8gqQOO9kAo5Iu/ZqfOhUyi++y1Yi1aOEREmpuFfEU1ZNv10RYaMAOJqNV7UJnrm57BZ+ogPgnJBIsBtB4qzPFjgi7dmv8dGvMn5pf2ITJkBJyWpQcipuFvCgiw0S5Rlgwsc2qmpNeYT+JVTDj3cAnJMI0W6NE7YlX+CI1NDI+NNzGP/9INt4UxwlKEpSxV0vgVPZ3A4ufLKtCx2hb4OBfLmjqBDnJycStApot9vAEamxifHn32T8isG2QEJJOhIlq+K2iweDeGA3vJ4hvTAXnvuNQ+CcSggbEE/Qj7wGjkhNCcanLmb8mgeJ3Wf5GL4k48VgpjpZnvKodhl8Kxe6Ff1NJPjp4FU9DIxMFBo4IoGdxWcuY/yGR2zzbShpJ6PkVWhwesBmqaik14DEWWnjUWHG/Hmn+SfG2FkQ/BsBjGPFBo4ZzVvN+C2PZUjeRsnMDjF2kQKIxelYwz8FaYR/ADg22mXAwXN5ymkGXNO0H4BXNQGY9ImMwBFp6QbGezxBeIYE70KUzAoxRw7GZeBiemCcxubiGIDncac1OIQ0t8d0AzDlkB+AI9KarRqPjaW8g12apEVCX+3EywxoDIe3wVJRjAzbAKcJvnEPOq0CTKUbEmyWH0FjRhvrGB/wDIU0ia2d9H64kt2EErwkgINgAH1+X0suyp0Am9N0g19pSz3jg2spv7DaLrpNd8KXrfuZNfykYKYbjhWpUxtD8UOnIX5MN8QpvQZiOKuCChyR6vZo/OHJlHfsa2cnkT3Z5Pp8YONoZ2Ppp1ikLhiG2ypi5DYnSUYAzolupRv8SrsbND5iOuW/uZtwt6oNJAROsi262rZF6hG6HvJUNzopc8B0Q5xqPSDBWVeqwBHpowOM/3cm451q7IAE9U4ROtRpvVPxVZWTIvUIWQ4f6iqHeao2hUo3+JUaDjI+cS7jf7zHtrgtie1KmSouiwecmHYpvNF5GdINCyoiWmen6QZIbg6GdEOjAokzOhhnfPICxq+8zzaO9Ak2AYQjyXMkgI2DIvUso6jgip8hS7rBr4T5tlfeYfyvQzIFJck0rPEuPG6cFKlDHgfoZad5HEw3wIcfA9SsQOAezVmh8b8Py9jj9obTRLRLdg67ONu2GMsYDhSp+ynd4Fda8B7jt4+0B1LBPDYzAKXaYqJktFMjDdMNZkXqiryldzcx3us/RQZQS5OdsYjLqZsYZ+ziIKUb/EprtzPeeSCRQwKB5Hk6s8TJrUhdkXf01yFGCbRllzYCnRipAAS1xr+DGM5qWS9x0TrGR73C+EMvUn7r48cI/2881DKv3KKVDIDq9x392RgIo3xZCgDBm5kh28W9/i7jlWOcT+L4dT/CayZQvnBtyQCIg6nRUQFIoMkLoaj93uzGuIiE0ikoUkkByGk5BLQfI+PzAY5IqOIUgEoAQKh2UAW5CZ5W+tu/SSozrgAUUABhXsgL4OgJVaJfVZoCUAbJ4zV49CDyoyRSALKxebxSW3bqTAEoIABy22B2SlglqADkcwBlY/dgMx8yHdUddonivy+/Jz8QofRTAPIpgNAOcRLnQZDYBQVxmkauAOo9hioA+RVATqTPr/o5c73zMcL9IoUUgARCQzYTc7NJR6BKywVA2AyoAOQzAOG3PhNjscQzW5WYq1uvAOQzADlRX7l4SZmmZvhZjSkA6QgnpGZiKoIs29ftPSY3AKEhrgAkAYBw5MlTs9yRFIWUQH6ICQUeQKu2HLNBsE0lX0bnYtzmWv7hB0M68AC6c9SxvzF+Tv4A+nW/7LLn+bjy+H4UgIoIIOwe0P+N/7zmjqrJRrU4CQsoCSQpgAZONH644VOpa7aKE2MaS1iDnhcLNIAu6mP8cPfW0ry9MD0hQMxcbVRb+Uge5YVJAKC3N6TbHreOoJ4UjyFYWjsx8q2XzjXirQDkMoDGzU4HA87AsfudlVu0opRwuBlzUgByCUA1E82ZsnlXpgshCkQKQAxG3Jqroxfm2/9ePmUYXhCGDWSulw4sgO4YZc6QyFiaMfn5q35EgajUAdRztMX0CBi8vWsv9aQEoxRBFFgADXrOWorgUMnMF0MUiEoZQCOmWTPi9/+ivClOM3pksqkyGUEUWAC9usyeEdPfzhzlLURTod9BFFgA7Ttgv48dp5AeOOhfEMnSEh3oVMZtI+yZMHSqs1wTgkhGdSYDiAINoP8ttpce6JEtWe8MRJjzktGwLjaIAg2gxibKLx1gz4BONfihnWe9MdCYb+NgkEAU+IKysTOZJ4VbqNayKf9AFegl8IoFosAD6GAcLzczAwY9m1vtDTKttaUZC8AQVEhYSI//97RuRiI+66UaLAaISqKofs02Z1n2ARO9L+BCW8pLSYQ1SgpAHrT1zFjqzB3Hkf7bPyzO/i6UYH4DUUn1hTnNcV3an/C5q/w90KpQICq5xsKXF1H+i2pnTBgCc58PNBUWRH5TZyXZmbpsI+NX3e+MCV3gudnL/QmgQoCopFubJ8y1X/Uopj6wr2xrvbcA8iLi7SWIVG880KS3GL8uiy6KGx5pmfG8YrP7LnOubdDFKo1VANLRRnCxsfmwx5PEdpuxnvC5bpBzw1XaaKTrKRfVhzEj/Wu46fJ7ASIFIBv67YD81cmNj9K83Xs3JZHbrUIKQDaE23fcYFqmoQ6ZyE0p5Ha3a9EAhAt0heWt42QD0Oqt7nz7USXKYhe5DyCjlP5Ql0rxFECwqbmDsO5yimwAat0F1mN0/qps197cDe5sW64LCSBROjY0FkqFRZPnCisvF8oIoFZav7OlWfHC6twYN2FO7oxzs1fNbQBdUGWsr9L/zFMAlcW07wkSaKPVs3FCp8hSRI5AyoVxXYfSvBKwbsWH3ATQvgNMKFkxvjasvqzwDEDtuvPTjHvHyQFLCZRgtTK1svyyT27M21jn3ntAdz+X0hA3ASROtcVuF/3Pk8nkD0NeHvijH+vfgLUEYk/IAp7XluXx7Z/mrvrIpQHSTQAte9/42jcNE147wb/mLYAidJP+DVit/QYA3SMLgPqNz2Ol02Ba9Oy9mwCavcL49/s+bXxtOJ/1WAKRWfo3gJ6ZhQrrKgN4sA3o4rvys0FwblEhB6N7CaCJc41/f5iuyyWeoI0hr084QkcIAIqZSiCw5mUA0Jur8/eGBtfSombv3QRQ9VNCqmSR/ud0pecAqqhkXYVg4gyz5zRN+54MAMLkaa4GdCtdcjfxNJBXSABd0t/42mu36+0f9rz3AKpK/kj4gE2hED9OfA506XGJBN0jA4jq9mj83y9R3rFv7iCatZy66o2JSVw7cqvoHsFi58IDv/qECnHAfT9ouOBY888tgomvyeTKb9+dPsTTKaHo9/u67+fmGQHU/QlSuCCi4Im9JFxwpSmAKHtAtkt0WowmEqrBvfv9DaDqccbPNG6W4UtxCLTGSYWRQJXsJiEr/4rZc4RonWW6wBWb8zOoX1zgbwCJpS7vG4KkdEWoUKcswr8ipDQOnVdJv2ViB52IrqEsFzhqRn4A6jbSv2psxtIMu81AW4QKeQA0iwQpdJ/sKY2uQ/N36ev2+BNE4kbrR6cUMAdmHlBk/xQA9FGoCz8hDUCMXSfDBTYcdCc7PvZ1/4Fn7TaTxXgfGAC0NVToU3YL/xy8EWZMrrLrTdTY5+ANJmS4yM4D88+O/2UI8R2ABtcy28EUkHYaGCrGAXd+rBFAdLHMidV1Oxjv70Ir8nvbNN+AZ89+LS10MXWx4ZnDoL6+XRQAmQQVeXmMXZjujTWXyXSpH+zT8hoL/Pg0/9hBY16zL98Amhkq5oHk6qtCamO5qRRKsHmyG5bFyo15RThb+6K+trGfwgUPbYzpjmmXDPkyWZOrerr6gRzjQW/5Q/qIu0ewH+6jA4bYz5KQDAfe3DzjJZO9HXqn15WASz9XlstFdzwX8GBpSEOj/BJo5WaTXWazje+bkOTlcgAIbCEwoA9niguBsdZBlguesig3t37oFH+or66PGt/3n2FOAM6fPOZ5mTs8xQNRhI0SL7usOt26lyWwmMtqy/Or/BFInP52+pdDbNmmtDksFYDKqnkbDCamu/XGUg9Z6oRyKW6/e7z84Nm5G20d4/u+XUzBJNgzIRkPBhLTLj7C7k6XQrRPsS+69k2Wdakrdr3KDB7IO/J/Ch2xHe/C8X+GstX9ENw9JSTrgVKP2SaXHxai08dDcPGtYl849kjhms0/Ouhjz7S7VQb676x01YXzlAwgo/TakMwH7R5ItCYEVbYFUx+CKvs+fCAiw8UfjMOE/CWMX/8wKUhFolde1/lV6S07KJV0qqs25IdTHmX/EBlgNskD6oW6ycYIbLsR++qx9MHACMlof2P65mks3xUSpttA8rcJ+eUAYKanpTmi9E6TFugXZWQK5s1wAd4fIPQ/b7XcqgsHpKcNplpoeCYJ6aTzQn464e78i/BBdgiq7HB5hFwh2EOnQJpjnd/rjYtFA002XWPC2FgspvUM+fG0jyZ/AvYQEaoXk6JRjf3YsthDfqInX2UmqxOMAUOweyaG/HzgQ12dZg/BUAaMXsvYyeoXmmqyFgsbBrDz5JjLztZ73qpcoIz9wHSjmta1qyLfEOqGBipwZKY3VqVPYcOs+yrDSk36AWPsrFBQDtg/L6QHGemmDr3pN42eGX1cgcSuVdt8YNbs5fpgIWuKJ5PnhIJ0MDsPUme+SYxlc7iKniF4ZpMUWNJpzgrz+Y/PzjM8R0DyXBQK4kmBCPJjJpJo2/kR9h2dZ3YC2EQTFGj0Y1moYTSdWYkGxKoOSJck9STpGiHL0g1rurOiFztTUGePKfDggCzz0hMcsK7PcSUSyXNDpXDOuZ1/XpwzdIQ+wEGegmE9upTB85LFCvMX5mt68DRAoLBdqJROxxr+KTPDOhU3imiddersuFIEERjCqYki4v2gAT3zXVra4BFSHqNNQHQoHKNRQ5yIag+VCnj27cdB5+YDHhavM0SZt5eM2soQbHzMNAseoRP03a5QinA1XBoNMni21sO+swfMNkhT/s4GQ4R5DkjnU0PqtMaJyCALEC3UD25AcQ1BsrogggdXdpoti8EIs35NFTgXwxViTM55Ma0TqLRGk1KQRqCjHQSU8m/CN/C9oACnEVZ0DrFYEnPbSJrq72rtIvVtYrSwBWlkhdllgpR68syaliFIWNuCYtzv4MEp+n+zWJyHC/J0zzJQ4V0UQhycc6P8ZBxaZQqiKN1QXtn809aA45F51If9CB6sy7aqgMTOCp1HthFSEz9RyMjeuH7Ysk5ZV6wPlY1/AHd2r1+AswMy5neMMv9caO/ggmGdm/4CfFG+oNCQq3Edo1fiJFgLlbasvFL7fspD4/w0UGnP+aEMw2o1583Dj/WdtaQlklcqBLhw2vdi38WhDVbSSB8zwq4DvHz5Bh1opqWnFvbODEL4NxTnXY5co9o6UtFowgTybvvKlogsXj5Io9myRJRxvO4lFlIHBzxgR8WRQU9xUMe3Km576er3Tv7YLBmr99TK+/Ivp1IgVOuO3kuxwLPsfZaaaGb1Xof/T9+rzhYGqgBMegMbpJG1gU0ayqMk9U2GeusfQeBxaaEHWNn13l/7EDFUDxLC+iuOFk0a0TctpRHGk2L0glQnLNXuLMTIYex0tdpUiGWnY2caetTngNT5ruJksT21KL0WVFe9tVqjtVh/DcvUToe+/GFeAGf+Gsa73G8tdfrBXq4du4+qq03gYV2lOCdTBBtapwEoD1mrNUoBZPdgvxp868+Eb/94N4CzBgYu9LTZEI1G8rF9Y7Qeu3EVt2S2jVoGfy6ws48ATFVYXguJ2fa5zm7EXari7i2DuoLSi2feOOqJHQQ7p18gWmxKyMi+OQUWa2+tvtXQPlImstPRxp8P02cPilQ5hqaeS6VYYBYPBDm/qjjiR9sI26sj9EFxILqYW4Nn/gzS4dMYgwGm7zADDm7qeeRlaru87oZHKF+yvjWmA2vPk8m2igtB8NZi/GtH7KMma8lB1pVHaO9uo/hXwdCOpYrUMZazsWXIgt2yOhwXjLU8RzyrWTgXW916AE/bPvxLKUNamF9kYieN61TDbrnsX3S73XN3QkJ06YajQysnFXxhiTrFORipBrU1HKRScy6TWvWqCm2cki5qL2nVBqWyAIiRaSs8LeiyQWTl1MV0eWoXLGX3Y1xJ3aI6rV7bjeKUWV0gckRZL/J1dUvqZFZvEe23AJrnQSrtC1eSO9p156epW7E+/werpsFox+XIzAAAAABJRU5ErkJggg=="},16058:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAMAAADQmBKKAAAAAXNSR0IArs4c6QAAAWhQTFRFAAAAMHD/////OHD39/f3dJv5NXX69PT6YJL7OXX39/f3OHT38/f3N3T1NnP19fX5rsX2ToT3OHP39PT3OHL39PT3X471S3/41uD4N3P29Pb4N3T29Pb4ZZL3OHT39fX3OHT18/X3Q3z2N3T29PT2N3P29PT2ZJT2OHP19PX3OHP19PX3P3j2h6v3Rn32Rn32N3P2N3T28/X2SoD1YpH3Qnv3pL/3OHT29PT3OHT28/T3tsv3nLj2N3T19PX2N3P19PX22OH3n7v3Pnj2a5b3OHP2iKr29PX3OHP29PX3Rn31SX/1tMr2Woz2dZ32dp71N3P18/T2N3T18/T2O3b1VYn2PHf1PXf1Pnn2S4D2QHr2QXr2OHT2Qnv1Q3v1T4P2UIT2Wov1W4z1ZpP2Z5T2cZz2cpz2fqP2f6T2iav2iqz2lbT2l7X3ob33or33rsT3rsX3ucz3xdX3xtb30N343eT36O349PX3Tv2cIgAAAFx0Uk5TABAQICAuMDA9Pz9AQE9QUFhbX19gYGZqam9vcHB+f3+AgIiPj5CQlJ+foKCmpqusr7Cwsrm6vr+/wMDEzs/P0NDW2Nnb39/f4ODi5Orr7e3v7/Dw9vb3+Pn5+/yOiq4DAAAIPklEQVR42u2c6UPbNhTAY5w6ax1gS822FpaZ0bAs7GjYAe4GYQdrujOE3QtQoFwNLIUm9r8/XbZlW3IsO7H7Ie8LBkP84+k9vUOSc7mJTGQiaYtSKlfXUpFquaQMpVna7qQq20thTOpaJwNZUzk40sNORvJQYqqnhe829BlVScVY1Rm9gZ/ZYihJQ3faupyuC8l6Gz1YY/PUpPS9WqqxiGaQeryKK9wZsxRsY0FKmvEoDtpPw7WcwoNNKxXZvJ+H1gRNqUUbC3T3tvODu4+tFOVxESgE6mjNZ0C2foqbVsqyXsgpXjOCs7NOru9b6cvOXE6HszatoCa5/sDKRN7NNSkVrbnXGfFY1oLmWpEMLRpfLliZySy0a9kZsRq25+x4rJ1PnHGqObPSeoZA1heOXgxwhS7mrEwFYBiIo2UDPc4cqIU4bKcvZMtjHdiKsVW1kDHQsR/o0asGZE2AwoHyrxpQcQKUFKj/Eoj5igCZL05JUff0eT97IPNyny40n91kDNR/6q99n2cK1MMQeyfdbvfiEH9zZGYHdIUIjq/Jt4Pu3piIIgJdI+3QVmOeIaKMgAbQnA+JOlbnUPVb/AgSXWQDBLVxgHlW8k4hNw+JBlkA9eGT0cSzW6CbAXXw49MsgKCCuvBiK+/tobRHr6JIQMCC9uCA7eZ9XR1Y+l6lDwRd7AReFAL9OHDnx/SBuuBeD9pzsPEFa/EnqQNdgHtwCsoHgWA193bqQPB3gAmtMlqDFXBL3c0CCHyZYwBBq1ZX0gY6wbPQFAMIzkTybBZGDWyI1c1FHYFi2kA9FLN2Wd1lVIAX0gYawJzV2smxG/+19IEsmI9ds4ZsGzWVUh8yNGZPGdMQ6ZOmbtS4R3IecHulhftvK+kDoYT6K/8SDhywBrjYEX5q//TSTJbConz146B+2kqcHmBvn5+OR03yUZ2x7a7VSNWOvXgj3AP8D/3peTIg85Cs1t5WctLtElkHhQ3cRVGec1LWnScsFM8Ci6RwvIQHzDxCBQy3QBAopXsHXp4a7LjPClp0H/Ecmr90SJKVqNnQO3S1g3CEV436qD1wZm1NfcshEmzHDHrff24Yuo6XQYui9ozr8S7MPSVEdD2KhtXm/TsgE8nfeSDsXs+R+fSsBeSnP4Bv9vsZdtBM5F57/V0y5Su/sYjSA8LudThwa03lDwZRakDYnI/NLSrxVP6CUdvMBOiauNfqVGCjgDeIpASE3asXKO20AFE6QNicrxmFy1t+ojSAzGfwqQf93SIj6fQTpQA0INHiSYG5DeU9L9H4gUi08LiXRz70EI0diIoWuShE4wa6JO61GLZ56FOKqDNWIH+0GE4EFVofGxCJFv3dwrANVpioj7JtspFgDEB4MQJEi/zwLV+IaB/ZP9kRM3qgGxItHk1F2YT2jp36/amMCQi711WYe3nkjX/RH/z9Wm48QPxowZNbP4Pe6jeOOkcLZJ4S95oV2Ts4t0hZ/0iBhkSLSBIFaHD5YjTRYkRA0G3OI5busAxcScITpVAMK8lFo8UIgC5DS3K/e90IuFc8oHOnaP11NNEiGZBdw5wNIbJL963EPEOWOI9wVLKs70KJxKJFfCC7RWBZy2g3H49INFrEBcJu3CXLHXwiT+k+RiC7prJI1cAhCkQLZbqMpKSMFogkfdQCMCYyQ0t3pUofDXlYkkYFhP/vA8BDxQFE9PsgaM4nJFowjoZUlZEAkf8bLt/RjoOI/nF7zQM8S53haEE6tIGjJHJyIJyEnpmB9dYKfsbpC7i96fJZh5jZMhot7jmeJSkh0I3j7gHH0dr+px3cYHPWQg63tGYSATnuxYpLct37rAsTb8LQws/bVMOUBBrgcgjQJUlCLU5cUmuOlg66Xy/ncxF4Op0NvnGjY0BLXCDH3UPikqrrtYr+/usF79EZLM2apsCzP7pXly2Nd0oIH0vSOUB9PK143H2oqFSbf54aivmmx7bZ40V8YZsDNCDuLpL2yS23ze+zlXnaCTYYE4C0Yd/lDdn1cRdFUwFxp8NK8IEVetju8XmaoROjUNqnOA9kmonqUZLK4XH+lgUkVlXhHVe0Xfq1YPDOAKruWNdD5iHRNHTGth/ub+i+o5LT0JikaSryNSQ+kHhVhX2pEeaG7fBZqi3xJ8YYaagCiYzQgCU3QnkUfuhYjZVVqfrQLEOPxhMASljmhenR4PA0pFwmQMD6mywe31yaJhCIeQGk5syQ9CMxkFwq49PZS/dYdqVUaIdraEPzoWRAUmnDE+Gr0yxkTa8ZhlHRNTlCgpYI6F4reGBctPAggX8UQMoG+wx7SehT2iTw20DL8dUTJ1vkbG+jgDbj8lTDpuJy9M+xjwQ6G0nzY+Bh52buWIO627e/jdoutTIKnkZToBJCCfmGbfsyOYvn7nYpJOSpEW9WdS/VUhgPlbwYOFubcoB2xInm3ccaqqdi8gybFFJ0kBOKBHCbHjNrZ1aQhyo65v23jCHDprR8ST5Or3TvCbP1u0Km7RT1bUZS7ak7Ai+McHkM7xgqMfZwOa0AZl7jRgqPkspSoGjFonqnIvBGgKmtmEBd+zPfjJKbtcruDFB2f0wXCOiNAGA2LcTcsd0nn3m1zk2EvCn1Wnn6NhD6PSy1YNkA3r5RjEl0SNpW1lS8lNqfNNpTQVWKqSN0XgjuvSvyDb8iwmMTtcq3YtqReYPafKFzQ1OAxy2cNj776WWMU38DdHwxvGKReHUHu8CU6sleSXMUocKUa6waSOPq1EhE9GWURn4QqR6aBlSasXnaETNVSau3qW2aQ1M3kIBXDHGpC72XR1bndV3X1JTf5TORiUwEyP+lOfDltvXHqQAAAABJRU5ErkJggg=="},25141:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAAAXNSR0IArs4c6QAAEU1JREFUeF7tnXuUFNWdx7+/6oHpqmo0qBvjumQ9SqJZNR5E6EZBI4kmcozGNcZNIrueGIwKCEw3IFEgYFzW2I1KNigmMRvE4/rYPMT42CwxjxW6B1FXjLLRbEQxgmIQputWw0zXb08x0z3VPYNTPdPVXTV1+x9o+nd/zw+3br1+l+CDTzy5/++A4pUAphBwFMBHgOgIH7g2LFxg5t0geg+Mdwn0FFn8o023a2/VIziqh5LB6oi3mV8j4mtAmDBYHXLc4DLAzL9kxqr2lfpjg9PQParxAF3GkcSYwnQofBOAE4bivBw79AwwkGNWlrZnok8NRltDAYrP5sMw0vwFESYPxlk5xrsMMPO9uZg2A8vIqsVKwwA6Y655fKSFHyfgxL4O8h4wfg6mJ7vQ8ge2OnduuUN/u5ZApOyhMzChTYyhFj4alnIaMV8IwnkE6H1GMDZEIuolz3yHOtzmsyEATZpXGGspxU1EdFSlY/yOBSxpT+tr+nNYCPE3FnA5MY5jPjj2KAZGuA1Oyh1co3QC2E3Eu5nwugI8mFii7tFQSDF4AQFaRZ6YnxekTXkxTYab/HkO0Kk38Gi902wHYazTIXvKVCxt1qbbyax21DDMqxl8FUAT3QQhZWrNAOcI9IPzlkYfLcJ8hIApVf+xn8ym9QvcaPUcoHhSbCJCogIe0DdzaXVFtYOmaZ7dVcTdRPiEG+elzBAzwPh9JILrzl3M3wDwlcoaYVUurc0ZyIKnAMWTxnVE9D2nExbTje0Z9Z+rZqNWQxRsuasGclj+Xv8MFC2+63PLeQwzXejU3oXIqc+mW1/6IIueATT+atZGjBJvOi8IMvAfubT2RadDpmkeVyxiPQin1D81UqPbDOzv5BcuXkFaV5E/3juG/yub1s9rCkDxpLmEiJeVjDN4p1LUjneueZj5Q4YoPA/gOLeBSjnvMvDq27T92rutv604Olg0NbdSffpQVj2bgRIpsR3AR3sBoq/l0uqPyt+ZW/Ki8FsCJnmXEqm51gws/3d++7ev4JjeOuG+XEb7x4YCNLHtwGmK0vWCw+gb2bRWQXY+LxaC6F9qDVDKe5uBd/cBX85w2Qgzv5/L6KMbClA8ZSwn0GLH7LMml1avccw+h+UN8w0iOtzbdEjtg8nAlau4a8d7aCmNtUCfbk+rv+pPlyeHsETSeBxEvdcRLL44u1J/tORAh2HeTIB9L0x+fJiBu59iPLKx1zE+xGUXW8IbgFLGFoBOL7lQtPDRzSu1N0vf84b4M0Dl46wPcxhql57eCtzyiPMwhtW5jDazgTOQ2AHCsSWDUV0d8etl1GV/N4wD4xjF50JdIZ8Hv20HY9b3K5xcn01rFzUMoHhKGKV7LAzem0vrHyoZNwxzMQPLfZ7DULu3J0+47Lbem/LMvCWX0c9oGECJlLDvb0W7DfKebFovP12Yz5vrQPhqqCvk8+D3CuDSW3sPYWDems3on/QLQP9pP07g8xyG2j1/A2SIFwA6LdQV8nnwvgaoI29uI+rvoTKfZzVE7kmAQlRsL0KVAHmR1RDplACFqNhehCoB8iKrIdIpAQpRsb0IVQLkRVZDpFMCFKJiexGqBMiLrIZIpwQoRMX2IlQJkBdZDZFOCVCIiu1FqBIgL7IaIp0SoBAV24tQJUBeZDVEOiVAISq2F6FKgLzIaoh0SoBCVGwvQpUAeZHVEOmUAIWo2F6EKgEaYlaZeS8RXmem90EYCeaTiOiQDQaGaM53wyVAgyvJWoX4+6qqbiWivdUqDMP8JgO3DE51sEZJgGqpF+P3QOSKWGyksx1Nvxo6DPNbBCytRX0QZSVAbqvGeEnXo1OI6H23QzoMczkB5dY1bscFSU4C5KJazNgXUfhkTdN2uBCvEBnu7WmaDlA8aewkoqPtrDPj/3IZrbwnhl9eLLTXM6N0tU+PorMW8KiuokgBNIUICjPeZYVWtd+m/s5JUV6YK8C4oVb4giDfUSBcssLRXAH8Yi6t9/s2sSf9gZwNNpkxN5fR7iwlzicAdbEWPXYU0TvOgp6Z4g9bbD5T3RS9+z8Cz8xl9NVhgKjpANlJnjRPHHtAUfdvydBuZ9L9ABAzfjMqpn6qejaIJ8VviHD2IWcJphnZjPqD4Q6RLwA6VBH8ABCYMrFYNOX0MdFmXASFfj7gIYZxfTajfbcCIsO0G6cvGnBsQASavgb6oDz5ASACXafr0bucfsaTxjIiWuKqxsN8JpIADUABE39plKY9XDEDpYQ9q8xyBdDBRVE/M1G+kAZx0rUOnwpKgAYojELK32ta608rATJnAHxPTTXtbyYaBhBJgAaiQMEVMVW93yk2fiEf3lIUfyTQkQMNd/7OFs/KrdQrNpTJ5wu3gbhijVWLzmbLSoAGqgBjXSymTu9zFpYS/0DAAwMNr/6dgXm5tHZHxcI6wBBJgNwRcG9MV/tsLxVPijlEqIDBjbr+ZyJxO4jmuhnvJxkJkNtqMO6PxdQr+sxEIYdIAuQWoO4rzA/HdPXLRFSsPK0P70wkAaoBoB7RJ3QtehFRdzf90ieshzMJUO0A2dd1Nuh6dBoRHfAKog5DrCbQtYNxr5FjJECDzDYzfhfTo+cTUSHMEEmABgmQPYzB2Zim2hB1hBUiCdAQADo4lPlFXVfPrn42up5rIj8fznwNUD5vrmXHXqpDrbVX4xXirbquzfbyFN8wxHcZ5P7+m1fBVun1NUANyoGnZob7TCQB8hSfbuXDGSIJUAMAsk0kUmIhgJp3nu7vtoef1kR1BejUG3i01mX+EwFfaFBdgmWGMREEtVanLUZbe0a73Tkub4hnARpfq656y9cNoIkpMUlhbBhMguod1HDUZwEL2tPabaXYDKPweQaXd7duVsx1AWjCfP6IwuKlWp+PaVbQQbXbhcipz6ZbXyr5nzdMx16TzYmqLgAlUiIDoK05IYTJKv8wm9a/3guQeA6gcc3MQF0AiqfEZgL63am3mcENN9vM/HIuo59cBihvPg1Cn1eOGhl3vQDaSMCkRjoeSluMbdmM9gnHDNT0PWXrAlAiad4F4mtCWdQGBs3AulxaO/h4LTPrhijsA6A00IU+puoC0Bmp/ae0oLi1mYGEwXbRwlmbV2ob7VjzpvkVWKh42L8ZOagLQLbj8ZR5BYHva0YQIbGZzKa1laVYOwzzVQLGNjv2ugFkBzJ+fuGEFub5AE8l4GPNDm642LeYbmzPqPYr0Qc/w/ZK9HApmBdxTJpvnsMWP1HrhVZmpHIZzb5M4jt4bIfqOgN5kfjhoDORMj8D5sdAaK0lHr/D43uAOkRhlsJsv/1pdzCyr7pazPafXPrOUEq/KQf/jUuyDEvpHuOU75bhsj5GpOfvzJYtWLIVQaRso1veVl3tR498xFYJK8L8qqZpbzohseFh5seJMGIo8OTz4g4QzalFRyNkfT0D+aE7h/si8HO6pp5LRPap9cFPvK0wDWT9rA7w+PalQwmQe0IOLcn2E4nq5Gp4SLHsHkIttZioPmzl8/5+Y1UCVEt1+5PthuccItpT+nli0viCQmS3hKkNnqrmC36Hx/9roLy5jQgnDrXGXo1nxraYHj3TCU+iTVwOwv0gRGqxW/3gWBDgkQDVUuEqWQZei2nRSUS9fR1teJjwABFqakgaVHgkQIMEyIaHODo5FqNd5QVz0pwO8I+HDE/AWgLLNVDtEL0OjiYkPN2JkwDVBBDvUEhNaBq9VRqWSJpfZ/A9YZt5SvFLgFwDxDsiCk1WVXV773UeYyYp9K+uVfQI9lnzBOyw5YxXAuSy+kw0e5QWLcMy2KcPqrvxG4a5lIFvuXTDd2ISILcl4ci40jZPE9rEGEXBKwTobofbctX9EQ3DvImBm2vR4TdZCZDLiuhatLXUD2hiyviGArrb5dCDYv2cqi8EUc0vGtZisxGyEiAXWWbmPaNi2hHltU9K3EnA9S6GlkTmZNPaqtKXfN5cBEL5+Z4a9PhOVALkoiTVACVS5o0Af9vFUKCqwXg+L24A0QpXYwMgJAFyVyTWtahW6kY2oU2cGVHwzEBD+55tFeaAuea2wAPZaebvvgBo3ALjr5WidsCP2z2Vi6PgMzFV3VD6nkiJBwF86ZDFq555xPCDx4696ds9xVPmYgIv7ylExVrBV88DMR6KxdTLS8BMXMRHKp1iHUCfq4bIAma3p7XyKX9+mMLjC4ASKWMXQB/uOc19NZfWPl4qiK8AAkCgaboefcIJTLzNPJcUvhCM4xi8IQLlFxszvRcb80LMA1P5bYpmHm68sN30GSiREiaAaHdwvCeb1stnO34DCIAA06WxWPRJN8XIi8JcMFe0ZXEzLkgyTV8DBQygHs7xEBGt1bTWDdVtfsuzp1GYSeCab3MECR7bVwnQECvGwEYwOivUECIETB6i6kAMlwAFokz+dVIC5N/aBMIzCVAgyuRfJyVA/q1NIDyTAAWiTP51UgLk39oEwjMJUCDK5F8nJUD+rU0gPJMABaJM/nVSAuTf2gTCMwlQIMrkXyclQP6tTSA8kwAFokz+dVIC5N/aBMIzCVAgyuRfJyVA/q1NIDyTAAWiTP51UgLk39oEwjMJUCDK5F8nJUD+rU0gPJMABaJM/nVSAuTf2gTCM18DlDfEZoDkXqw+RsnvAK0H6EIf5y/0rvkaoA7DvIeAGaGvko8T0HyAkqIDhJidI2bel8voh5fyNZy7WviYiZpce98gfPE79s5YPR/m57MZ/fT+lNTUvt+tF/Gk+CMRji/JR3V1xK+XUZf9XQgxxmJ6w60uKdf4DPxpJzDjLnsrtTJBT2bT+gUNAyiREv8N4KySQYXpuIr2KIZoB2hC41MjLbrJwObXgEX39QLEzPfmMvpVDQMonhQPEeGy3hlQOT+Xif6yfBjLm9NBWOsmGCnT+Az8JAusfsIBEPjmXFpf0jCAEimxEEC53S0zVucy2sxeoJjyRuFlIpzU+PRIiwNlYNY9bG57C6rjEHZRNq2vbxhA8fmFjxFbfygDA+zIpbUxTgcMo/B5Bj86UDDy98ZmYK8gXHpr7wKaASOX1g6eEDUMINtQIilegXOGqWpQacvk82IliOY1NkXS2gdlYOF9vGXLaxjfe7TAw7mMdsjGo56chfUAtACEW3tnId5pQhv7YpoM56HMEAW7P+FnZVmbn4H//TOemrmGK2vByrRsprKHpNNTzwAaO5tbjxwpthPR0b0Q0ZpcWr3G6QAzt+aF+SCBLm5+CsPrQVcXHrzgZusEdt5mYmzMZrTy2XRDD2G2sXjSuJqI1jgNW8yXtGf0n1U702GI1QS6NrwlbF7k9uYwn17KIxXAPvkpf7qsltOfXTny+Q/yzLMZqGQ0nhIbCZjkcKIDrFze37QohJhsMS0CMK156QyNZYvBP1XQcsvUJV1TiZCuODKg79Gi4TOQbXD8XOOYES34H4D+qtJBpHfp6uLXl1Ghz2y0f//J1MlXgqyvAnRMaEramEC3M7BuRIT+bepNrfuKLNYSUcW6h8Ev5NL6ODfueD4D2U5Mmm+eYzH/igClCqIdAC3J6dEfYxk5br70SgkhEsz0SWY+CUQnMte2n5ebJAxnGSIYYNpGxC8zR7bY+6OdtYBHdRXFAvsMuM/+aMx/6SzilC136G+7yUtDALIdmZgsfFah4gMAja52jJl3g/A4mNZbSstrVmfnLrcBuAky7DL2Znog/ggRTifQBcQ4H+S8UNiTIca2TkQu2ZJp3eY2Zw0DyHbI3oCltYjHQORqenQbhJQbegaY8ciumDq9vyVFUxfR1cY/tZRbCoZ5PTMvJaLDhh661DCUDDDwJ2KkshntJ4PR09AZyOlgfA4fTS3iVhDZu+X07KsxmBDkmMFkgMHvAcqdubQ6pP1dmwZQBUxthWlExcsAOhmEI8A8GkTlDVoGkyA5puJ05V0G/QXAO2A8w4RH29Papnrk6P8B9g+oRe+xVYAAAAAASUVORK5CYII="},90914:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAAXNSR0IArs4c6QAAAWhQTFRFAAAA/1UA/4AA/2YA/4AA+IoV+IkU+YgS/44S+YsV+YwU+YsU+osU+osV+4sV+owV+osV+osV+owV+owV+YsV+4sV+owV+osV+owV+owV+osW+osW+owV+owV+osV+owW+o0Z+o8d+pEh+pMk+pYr+pcr+pcs+pgv+poz+pw2+pw3+p46+p8++qFB+qFC+6FB+6FC+6NF+6VI+6VJ+6ZM+6hQ+6lQ+65b+69f+7Be+7Bf+7Nm+7Vq+7lx/LVq/Ldt/Lhx/Llx/Lp0/L58/MB//MCA/MKD/MOH/MWK/MeO/MmR/MmS/MyZ/M2Z/NKk/cyZ/dCg/dKk/dOo/dSn/dSo/dWr/dar/dmy/du2/dy6/d25/d69/d+9/eDB/eLF/eTI/efQ/uTI/uXL/ubM/ufP/ufQ/unT/uvW/uvX/u3a/u3b/u7e/u/e/vDi/vLl/vTp/vbs/vbt/vfw/vn0/vv3/vv4//37////WB/1HAAAAB90Uk5TAAMEBQYlJysriImKjY+PkJGVlZu1tbrA19v1+fr7/caUJKMAAAI7SURBVEjHtdbZW9NAFAXwSxXqCooblOVkqQGsolWhaNlBClilgNogVCjWyGKJppDz7/vQpgifTRo+PU/zkF+SOzM3ExERaevojiEwse6bbVJNy41eNJneay0iIpF7CJG7l0SkA6HSLhLtC0f6otKJkOmUrrCkS2JhSUwQOv+K6LPmEXlkzupNEnXRYS3OotoMMSz+EcsIJsZR7eLDTOaQ5A8jiCilmtjTAO0byZISQBa8N5oAgDRJvvEn6i+PpAEgRZK26kvG63V/BoCVU92QrJMVu2qe6S+fDNgkuepLdrilYYokLZh0Esn1TXLHl5SZBHBAcvyRSx4AeMuyLzlkClBs0lbfsXr/JPd9yQb3nz9Uy2RGd0hWdGCCG75kgeRxYnT7ozFHkvw+u1ThvC8xXJJfASBfn27X8F/9NZIFbB6nknWyFrBhDIf8oJE5rd4ARtBOniT3lan1wdcemQzul1UyH8dIbQ+cX/q/EqVA0vWesaU008ha8bQpi3pSCSDxrPMemukJU5vjz2zcj7yqkJ8AJVcVOQUvyqSTakyeuvwyAgCYOSFPZgAAI0W6jxuSFea94fCeNeyN81xuSDIs1T92ar1svcRMQzJg054/V2x8waZtNC4/YZHczU6PDg3q+uDQ6HR2l6SV8JtkJb3t8kzcQloJWkp9bNm0yiRZtsylMf2/HRYB5AIH3wWO19CH+C250h9O9EdF7oQjt0Xk8oMw4n5ERCRyvadZ0HM1Uvsja21v8heuVUTkNzutq1ryjw7AAAAAAElFTkSuQmCC"},12282:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAEFZJREFUeF7tXX1sHMd1n9m7497xjuSdJFqyZUkWJevDpiWau3ekJNa2gMKoU6tJ7NgWEqdOmiZu07rtH3XjokANFQUSw2jRxkBroY2T2ondMEiDRI7hBEgARzTF3O7RlqtvWaZE69M66b6/d3eK33WPOFL3zb3ds6UHLCSAuzNv3m/mvTdv3pujpENpZmbGGQ6HN1NK1xNC1lFKb9c0bS2l1EsI6dUf/B8UJYTE9SfCGDtNKT1JCDnFGHs/mUwe3blzZ7YTh0o7hSlZlpcRQsYopds1TRsjhAiapnWpqko0TSOlfxljpPwB/5TSeQ/HccRmsxH8i8dut+cppbKmaW8TQt6mlL4timK4E8ZuKQCTk5NLHA7HI5TSxzVN26GqKlUUhZQeowQEgACI3W4vPjabjXEcN0Ep/b7D4fjRli1bIkb11Ww7lgAQDAbv5TjuLxljn8rn83w+ny8K3UwCEF1dXXhyHMf9nFL6r8PDw78xk4fi6jWrw/HxcdvAwMBDhJBvKIoiZLNZUigUzOq+Zj8Agud5rAyZEPLczMzMTx599FHVDObaDgBjjJMk6Sscxz1TKBQGIHizZ3ujgsSqABBdXV2nVFX91htvvPHSnj17tEa/b+W9tgIQDAa3cxz3QqFQGM5kMkVD+nEg2Ivu7m7Yi5Cqqk+NjIwcaBffbQEgGAyu4DjuOU3THs9kMjSfz7eln3YJpdQuz/PM6XTCYL+iadozgUDgotF9Gi6YYDC4i+O4/8pkMj6om08COZ1O4nK5IpqmPREIBPYZOSbDABgfH+8aGBh4XtO0p5LJJP24qJtGhQm15PF4mM1m+zZj7GlRFA3xIAwBQJbldYSQH+bz+eFUKmVIm40Kxuz33G43czgcMmNsdyAQ+GCx/S9aWJIk7SCEvJ5Op/s+rrq+WSHCNkAlMcZ2BQKByWa/L39/UQCEQqFdqqqOp1IpZ6e6losRTq1v4bJ6PJ4MY+yxxdiFlgGAb88Y25tMJm2fNH3fKGi6XVDsdvuTw8PDLzX63aJXQDAY/CohZG8ikaAIlF3PhGBfT08PI4Q8GQgE/qNZWTS9AiRJ+jRj7MeJRMJ2vQu/JGwdBJVS+rDf7/9pMyA0BUAoFPodTdN+mUgknNer2qkmXKijnp6eLMdx9wuCsL9REBoGQJKkjZTSqUQi4b3eDG6jwoRh7unpidrt9pGhoaETjXzXEAAnT57ko9HoVCaT2ZrL5Rr6ppHOP4nvwEXt7u5+z+l0BgYHB/P1xtiQMCVJejGfzz+ZTqfrtXfj74QUA3k8z/+bKIp/Vk8gdQGQJOlzjLHxWCxW9916nV1Pf+/r60PY4mFBEH5Sa9w1hXrw4MFb8/n84UQi0XvD6DY3fWCUe3t7YQ8Gh4aGzlX7uiYAkiT9dy6Xewyx/BvUvARcLhdxOp2viaL4+aYBkGV5J2PsV9Fo9IbqaV72c1/oqujeaq5pReHq57fvpFKpweslwLYIGdf8tKuri7nd7v/dt2/f3ZWONysCIEnSnyuK8kIymWwXX9dVuz09PTje/Looiv++cODXAHDo0KGubDY7G4/Hl98wvMbME32XfJFSunrhQc41AASDwS+rqvpSp85+h8MBw0bwLx4Q0lvw5HI5ghyjTiSPx4NV8Id+v/+Vcv6uAUCW5YOJRGJLJ4Ub4E3cfPPN5KabbkIMvqZ8U6kU+eijj8iFCxdIJ20c9TDFtCiKQlUAJEm6jzH2607ZdEHgq1atIj6fr6VJHQ6HyQcffEDiceTtWk/wiAgh9wUCgbkMvHkrQJZlnG49YvUyhoq58847WxZ8uaiRyHvp0iVy/PhxyzPxkPTV3d09LoriYyUe5wCYmJjo4Xn+o1gs5gTTVpHX6yVbt26d0+9G8YHN5MGDB4mVtg1Jwl6vN+10OpcPDg4WXcw5ACRJ+mKhUHgZOtQqWrFiBbnjjjuKKeXtIHh1R44cKa4Iq8jtdiP18QuiKL46DwBZlvelUqkHrVI//f39ZMuWLcU8/3YSVvd7771HLl++3M5uqraNRGCPx/MzQRA+PQfA1NRUr81mC0ej0f/360wmzIpAIFDM4TeDsBIkSbJEHWGC9fX15V0u11KooeJ0kyTpU4qi/NwK/QiGRkZG6rqXRgMDF3VqaqpYfWM2wZXu6up6QBCEN0sAPJfNZv/GilzONWvWkNtvv91sGRT7O3PmDDl5EqVk5pKea/otURT/tgiALMsH4vH4qNmhB6icsbExwz2eRsWJ2b9//37T3VNsynp7eycFQdhBZVnuZoxFrdD/q1evJhs2bGhUXm15DysAK8Fs8nq9BVR8AoARRVGQ7WA2D2R0dNR03b9wkHC7DxxoW/1FVZnqEdJRGgwGH1cU5RWz/X8cXG/fvt100Ct1CADMHj88P57nH8cK2JPJZP7ebAN86623kk2bNnUEAAhTfPjhh6byAkPsdDr3AIAfpFKpz5u9AYPwAUIn0NmzZ8mxY8dMZUXfkH0fAFjiAd19991k6dKlpg66WmeImr777rum8qKnt08CgCOxWGyz2RsSv9+PHaGpg67WWTQahStuKi+Id/X29h4GALPRaHSV2RFQhB56e3HnhvWE84JgMGgqIwCgr6/vDAC4Go1GfWYDIIoiQrOmDrpaZ5FIhIRCIVN50WNCVwBAIRKJ2E3tnZBizB8R0E6gixcvkkOHDpnOis/nywGAXCQS6TK7d8R/EAfqBMKxJR6zyefz5S1TQTh8GRwcNHvMFft75513yJUrV0zlRVdBV4tGOBaLrTLbC0JKyT333NP2A5h6UsW433rrLdPvsdCPJ2cBwNFYLLbJbAAgmKGhIbJsGS7Kso6QwoITMrNJ94KOAICpeDw+YnYoGgOG8AGClYQNGDZiZpOeLXeAhkKh15LJ5G6zQxGlASMgh8CcFYQTQJyKWUEIRbjd7lepJEn/mM1m/87sYFxp0EuWLCHDw8NWyIBMT0+Tq1evWtK3fir2DwhHf6lQKHzXyjS+jRs3FjPgzKRz586Ro0ePmtnlvL6w6h0OxxdhA8YURdlvxYFMiSN4BNgZmxUbQugBsR8rHI/SmHEgQwjZRo8dO9aTSCRwJNmebKgG5xjcUsSHkIjbTkKGHFJSrLJ5pbH19fWpPM/3lQ7l5Xg8LljhCZULG4YJYWp9dhiOA1Y5vB6ksVtJegFfUBTFkSIAoVDon9Pp9F9ls9n2pqU1MGr4xzioN/qwBv7+4cOHTd9wVRqynqT7T6Io/nUJgM/mcrn/MftctBYe8I4ARL16gHqYQtWcOnWKwOh2CunFGp/BxR5FAPQrhC9Fo1HTo6L1hIIaAaSvNBu6xiELhI5EXCuNbaXxQf87nc5+XJk8p3JkWf5FKpW632rjVA0QuG1YFTjEwf/hR8Nm4BwD5UnYx8CVhoeDwFqn1jaD5+7u7jf9fv8DGOscAKgNUxTlpU5SQ/VWx8fx70hHcTgcT/j9/pfnAaBnSF+yqkADnsEtt9xSPKhHDr/RKxEzD1U3WB1QTVZ4fHoIOpvL5W4aGxsrZsJdU6KUTqcfMdNNg2BwMLNy5cri1fIgqBH46vWOSeExlX5LoNZqALjY6JXcW6is2dnZYi6QmcWI8H5cLtcP/X7/7rlNaDnjuIKSMbbfjCK9kuDhblaqC6iXuYzZhIKOUsFFLQAw81FluZBKQKAvMwy1XqQ3Vn7V5TV+vyRJk6lUalu7rpbHjndgYKA442uVIkGwWAXVKhzLhVorroNzZ5w/1yKs+Pfff79Y2touwrjdbvcBv98/Lx+zUqH2Q5qm4VI+Q3nBjIU7uXbt2jlVU68DOAQIFy9URZWCd6dPny4KsZww6G3bthW9pUYI/SFbuh3nA1B/DofjoYX3B10DwLPPPsvt2rXreDweX2+UoYLlv+uuu1raVGETNTMzMyc/7AegzysRwCqv8kHBHwx7s4QsCaQqGmUf9Cy4E6IobqKUzitBrXZZx25VVV8zYhUsX768WPnYav0XdDMEWx4u37FjxzVBu4Vp5rWAagQQqCWELow4L9Bn/2OCIIwv7Ltq7EeSpIlMJrN9MZf0rVu3rqhyFksQAg5PSoSzA6ihcsKMRZItCOoOtQdYeYulhSuw2fZwiZ/b7f6NIAj3Vfq2KgDBYHCIUhqKxWJcPXewUsNG5/2gyLpUWrqwtAmqAqVGJZUJ0AG+UXT+/Pni3qQVQtjBZrMNC4JQ8eS/3pVle3O53Nea3davX7+e3Hbbba3wW/Ub8DA5OTlnkMuzq8tTC2FwoaJaVXnVGGgFBP3KshdFUfzTau3WBGB6erpf07TD8Xi8v1GDDPdy8+bNhgq/1NiJEyeKGyhc3iEI8y4dKeZ2AohWDW8jDGPjhmKORkjPeghTSjfX+tG4uvF/WZbv1zTtzXg8TuuponYXXEPVYBVA+Av1OxwG2AGkvbeTGinq00MOGqX0AVEUf1mLn7oA4ONQKPRcPp9/Gj9NUqsxM1LOEfVEJLQSYfNYusSpXSBgEiKVsZZ3hJ86sdvtz/v9/m/U46MhABhjtlAoBK9opNqpmZUF1/UGafTfMQlQ2FdJLeunXW8LgnAvpbTu73Y1BAAGMDExcQvP81PpdBqXuc77rl2Gz2jBGdleJXug35A4qyjKyOjoaENXsjQMAJiXJGmQUjoRj8f7ytG3Iq/HSGG20hZUEexRyUPUjS6u5trh9/sbLjZoCgAwOj09/buqqr4Rj8cd2KVi9uO6gXbd8dOKcMz6plTYodd7FTiO+z1BEH7dTP9NA6CD8EeKovwnfsIEkU2jff5mBmDlu1gFsAUOh4NRSnHKNe9GxEZ4awkANCzL8h8zxl7cunWrrd2eRyMDseqdCxcuaOfOnfua3+//Tis8tAwAOpudnd29cuXKVzmOW1Q7rTDeCd8wxrR0Ov0Vj8fzvVb5WbTgUqnUZ3ie/5HNZuu4lJZWhdLId6qqKrlc7mG32/2zRt6v9s6iAUDDV65c2eZ2u3/M8/y1536L4a5Dv83n8+eTyeTnli5duuhrVgwBAHI6c+aMz+fzveLxeH6/3RfvWYULjG4mk9kXDoefWLNmjSG/Q28YACWhhMPhr3u93n+x2WyWXADYLnAURSkkEomnlixZstfIPgwHAMydPXt2g9fr/bbb7b7fzN+tN1IwZW2xVCr1i0gk8herVq0y/IK5tgBQYv7y5ct/4PF4XnA6navbJJy2NpvL5U5j1vf397/ero7aCoC+X3Bs3LjxGZ7nn3Y4HMWykE6nQqGQyGQyz09PT39z586dSjv5bTsAJeYZY3wqlfoTnuefsdvtK9o5qFbbVhTlYqFQ+KbL5dpLKTWlisM0AMqAoNls9ks2m+2rdrt9lFrsMjHGWKFQ+K2maS86nc6XF6aNtApmo9+ZDkA5Y+FweGVPT88XKKVfdjgcSHMwix8I/Rhj7HuJROIHy5Yts6x6w6wB150QkUhkjd1uf9DlcomMsQftdjvuMzOKP6YoCs5nX89kMiFFUV73+XzmXxZaQQpGDbCugJt9IZ1Or1RVdYfT6Vxrt9uXKYpyl6qqGyilvZRSF8dxXTY99UHTNGgSnD4VCCG4f/+4zWaDoC9ks9kZjuMm3G73+WZ5MOP9/wPFFHDOdELuOQAAAABJRU5ErkJggg=="},29046:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAr5JREFUOE+llD9oE3EUx7/v90tKh1ArOHQIGKEtChUVAh2skMEixaUOxQ5Cz96fuOlaUHB0cHComNwl9QbBQhcFwUIdKnbo4FCxUKUVOlToIL2AHUpyd09+5a4kZxML/rb7vfc+93v/voQ2Z2JiItPT0zMspcwycx+AHSHEerlc/tIuRt1T0qjr+lkieiiEmASQSdqZeQfA00ajUXZd9yBpbwFaljXFzCUi6o4cfwH4DEAFZgFcBpBSNmb+FgTB+Nzc3Hdd1/uFEEUAq0dA0zTvE9GzyHkVwCPHcT40v0DTtN50Oj0F4DER9QLY930/L4QYEUJUAKwfAk3TvEFEi1HwE9u2ZzrVyTCMrBBiCcB5ANvMvExEGoBXVCgUUoODg5sAcgAqtm2bnWCxTdO0vq6urq8AzsR3zPyAisXibWaeB7Bbr9cvuK5bawcsFouX9vb2fiwsLOxHmWlE9DL2933/GlmW9RqA6ug/U7Us6zeAbmZeB7DCzGtENBs10fc87zSZprlJRP3MPJpsQqIhuXQ6vdE0AS2JKLjjOFfUCxtqFOr1+jnXdbc71U/Ve2BgYCgMw7yUcpiZ80Q0FI3SYf0VUKWROQnwuJ9pmtYthBiSUvqO46wp4IZqfxAEt6rV6puTdLjj6pmm+YKI7jGz6zjO3f8GTk9Pj6RSqU/MfBCG4cVqtbp1UqhhGDoRbTmO8zGOiTdliYiuM/NqrVYbjeesE1jX9atSymXVkDAMxyuVytsjtdE0LRdNfYaZV6SUk6VS6Wc7oGVZNwGoZVBqtGjb9ljLC9VHlPp75cTMNSJSqjMf659lWafCMCwIIdTOjkeAFc/zxpozapEvXddV+9Uq5ROv82PZarqf9TxvJlmevwRWBRiGcUcIoWSqkADtAnjHzM/VzB1XkmOBsaPajFwul5VSpoIg2HddVwE7nj94ryWLwzFNOgAAAABJRU5ErkJggg=="},36697:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAThJREFUOE+tkj1Lw1AUht9zE6ijYwnd1F1/gLP6E0QHC5aTNhAIRbB0CJnEtSVcLrg4ubhZp64ODrp1s2M7dNJBiCm9XMmQEvxopXjGc87Dez5ewopBK3L4EZRSHhHROQAbwEBrXfU8770o8g2M43jbsiyZJMlBEARvUsoTIcQeMx8uBJVSba31pNFoXOWNSqkXZt5aBp4C2GDmVtbY6XQqpVLpjpl3FoJhGK45jtMH8ARgaIxxjTGter3eW6bYBHBMRI/GmCGAeyHEa61Wm/wKKqUuiGh9PB4HURR9FHbsp2la9X1/lOfmV82uadt2l5l382Icx5uWZbUB7AN4IKIeM19n9TmYqRljnl3Xvc3BMAztcrlcIaIbrfXZdDodZC/6CnbTNL0sjlMYtTmbzVTRBP9rub/49xNQTX8PjLUYFwAAAABJRU5ErkJggg=="},76424:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAPVJREFUOE/tU7FKA0EUnHlsYWlnDgRjlXyAHxA7S3/B4o6zUkhjIVwKCxsLi+OOu5+wtAjED/AftDvsLC2W98LKHkQIJKnjNjPvzbxhWd4SANq2PSJ5EHg43vtDAI8kL0JtZq8A7pxz373HzH7SNP1iWZYD51zXC7ug9z5hVVVDEfnYZbD3quopi6JwSZJMSeYAhvHKnqRbDTWz1d6nmdVd1z2xNzVNszCzSQy4JjkCcBtqkg+xfx/rtyzLzn/5ugBVvRKREwCzqP9Bkv8Be/AGAOYAjgGM4x68RzzbapE2/Yu1i1TX9Y2IXG4aDrqqvuR5/hz4EmyfwU6ZgkSzAAAAAElFTkSuQmCC"},46901:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAdJJREFUOE+lkzFs00AUhv/fiTx1IFsHJLoksCDKVgmGjHSiA5EYrTh37kAFHdlgYmAAqR2asyVc0QUlA1sZGDIgwcAAA1IVR0oRCwtLxGRhP3SJE9IIUAu33N3Te9+9d+9/9DzvnOu6d9M03Y/j+DgIgisi4onIDZLnMVnHAF6LSBSG4afCNt7oed6K67rDLMvWHce5SXLTBohIl+TnwvkigA0AyyKylyTJdq/X+3ECAOArgCUA28aYaP4Ve67X6+Vqtdoi+VhE3iVJsm4hswysk4jsknxP8kO73f64CLH3ZrN5vVwuH4pIHIbh1gnAXMADY8zD3wGsTSm1SXIny7Kr/JPT3+y2nFqtNgTQ/SeAhWutd+zX/A/gDoBH9H3/wmg0+tbpdL6fpRyt9QSglPpC8sAYc/+MgEkJWuvnAFaNMZdPCyg0MSTZZavVWnMc522e57ejKHpxGojWOgCwO2ujUuoZyVsisrao9UWg7/vXSqXSKwCxMWZr3IVGo7FUqVQObSl5nt8bDAb7U61PAUXvfRF5CuDNTMpThwLyBECrmL6XAI7yPC87jnNJRDZILgPY6/f7v4ZpMUWl1CqAgGRdRFZI2qkbj3Oapu04jo/mY34C3YLNkQ+b+0AAAAAASUVORK5CYII="},96490:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABnVJREFUeF7tW11oVFcQnrl7E/OQQkoVLPjgQwsWKq1UQcFSE/fsjzRUQURBqaAPlrbgQwuClloQVBCkKNjSgn2wKPYhLTFu9pzbrNCUBkyp0oJ5ECq0BUuF7MM+BHLvnTLxbrhJdveevfdkTXTPU9gzM2fmO3PPmTMzQXjGBz7j9kMbgFZ7wMjIyGue5+0FgI1EtBYAbER8AABjqVTqWl9f391W6tQyD7h+/Xp3T0/PJUTc38hAIrpSLpff27NnT6UVQLQEgFKpZLuuqwBgm6ZRt2zbFr29va4mfWyylgDgOM4hIvq6GS0R8Ug6nf6yGZ44tC0BQEr5GyK+HlKQd/ai53lDqVRqCgCyAHAUALpDNONCiE1xjGqGZ9EBGBwcXNnV1fVfWCnf9/dls9lr4d+UUpsBoAQAXcHvrhCioxlj4tAuGgCO47xARFuJ6CVEPBdSzhFCiFrKKqUuAcCR0NwJInIR8Q/btn/s7e1lbzE6jAMQnPan+RvmK66GtieFEJ/VskJKeRARL9eaI6K/AWBvJpP52SQCxgFQShUAINdAyYtCiA/rAPA+Il5swOv6vr8+m81OmALBKABKqXcA4PsI5R5OTk6+PP+e56tyenr69rzDcoEoRLySTqcPLEkApJRXEZGjvKgxioi70+n0v0wYfDYXEPFgFCMAVIQQz2nQaZEY9QAp5T1EXKe1MgBHemMAwAcb3wArNfmgUqk8v2vXrrIufSO6GQBGRkbecF33GACw8uG7OHINRNwnhGBDQCn1S2BMJF8SgqmpqVX9/f2PWIaU8s8mZTHwE7Ztn+nr6/sVpZRvIaJT58TWkd0rhLjFhI7jfEVEh3WYEtA8EkKsqvIrpSimLJeItmHSXfM8L5/L5YZZiWKxuNeyrKsxFdJiCx+CwRtjWouxNtEoAxAXwRmRRHQ0k8l8zn8HCt0GgHDYm0C/hayu676Zz+dHA8DXWZZ1L8kCiQEAgBtCiP6qEkNDQ6s7Ozu/A4CtSRSrwcsu+1EV7OCTe5eIvkmyjgkAXM/zXsnlcvfDikgpNwLAq0mUq/ISUdnzvPEdO3ZwNDg7lFI/JQXaBACs0LBt2/2teL9XrXccJ/HusyxTALCsG5VK5YCp+7mR5xSLxUOWZX2R4OaaFW8SABZaISIOhcctyzISqISB4JclEe1ERCOflmkPMPG5t1yGaQ9ouQFJF2wDkDQQSroDT5q/7QEGPGDU9/2znZ2dDufsOAm6YsWK3QBwHBHXPOkdjlo/qQecE0J8XGuRIBs8kDRSizIg6XwSAOa8AWopErwL+LHSk1TRxeKPDQARbchkMneiFFNKHQeAU1F0T2o+LgAPhRAv6ijNjyJE5CeyzuAX3zHf93/geoAOQxQNp+gsyzpfL1UXF4A7QogNUYvzfKFQWGvbtm7aakwIsUVHbjM0jeoNcQFYFA8gogflcnm96dK4Uuo0AHDOc8GICwBnghblDCCi+4h4AwBMPKa4MsV5iXS9l2NsAOZnghpchXwLaKe8m3FtE7RJAOD168YBAwMDPd3d3YNPaxzwMKjacqTHKfEzQfXW5aowAOz0ff8EIq4Odqla8tbdtEdEZKRFJohGaxVpZ3RpxgO4gsNdHt9yIUQj0mMD8kKIUSklZ4mzQemrUeWIDRc68YUukqVSqct13fPzyu6z7LoAjLmuuy+fz3M31+zgNLjneZeJaH7j06zx8xWVUh5GRFZoQQXKdOGzunaxWKybPtcBYGJycnJTo6tJKfUpAJwMFqxrfEihnZZl8TthzuAegFQqtXn79u3/6O5wFF1Qq2D9TsS9Bk8JIT6JWkhKuR8RLwBAP7t9FL1S6vc6aXOOBuekv6NkNZpHRPa0ureQjgfU7eiYvzB/b7ptLE2U0pPYH8lrFIDI1UIEjuPw2aHTD9CM2KZplyIAE4g4U25vNHzf70bEt0NdZVEsNeeXGgDjtm1v0a0wFQqFbbZtc2td7LHUAIhMsoQtvXnz5pqOjo6/YluvGQhpH4LNKFLnDOAcAPcUjnFBtJE87jS3LOuD4LHTzNJzaCM9gJ+oQTt77EXqMHJEWA2VTcvWlhcJgLakZUrYBsBAXWCZ7v1jtdse0PaAhF1iy9r/25/A4zOAixacOX0WxzgODw+nU6kU9/jXzZs9pchwe19+plm6UChstW37OBHpdnova0z4X3Bc1z3LHadG2+WXIyptAJbjrpnU+X+SS+yk4PA6MAAAAABJRU5ErkJggg=="},77708:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAXtJREFUOE+dkkFLAlEUhe99k/OYoUBXLYI2QT8jyApaJ7YIEhXSYRAyobW4jTARYXTARVKbyH5BafQzWgS1sp0rp3Fm3o0nKlS20Le8vO9w7j0HYcGHC3LwL1gsFpekaKlU8meJ/wDL5bKmaVoCEbcBQBCRj4gqEXUdx2kVCgVnIjIFbdveFEJcAYDd7/efw+Hwjvw0HA4fQ6HQFmPsBBHPM5nMq5yPwEajsQ4ANUVRkoqiDFzXvQOAeyEEMsYOOecxx3E0xtiN7/tmLpd7x3g8rkSj0ZbruoV8Pv9Zr9cPAGDZMIyWFLUsK42IfcMwHiqVyirnvNzpdBIzQSHEimma1xK0bTsthBiBlmWtAcBFr9c7nlolotpgMEhGIhFptU1E7dEuiDFpNQgC3ff9JiKeZrPZj+lxqtXqhqqql0TU9DzvRVXV3TH4RET7iHgUBMGZaZpv0+NMTizj0HX9CAD2AMAbz6V4l3N+m0qlvv7E8TvkuQowT/0W7uo3lWGnkK6/KiQAAAAASUVORK5CYII="},35851:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAQJJREFUOE/Nk6FOA1EQRc91CASGBNMEEiQCwQdU1hVHRUX5A/gHPoAEgwNRUQkOh8JBgqioo65IBAl1l8zmveSxbNtUkDBy5+3ZnfvOyPYmcAX0gA2W1xToS3rKx2T7BhgAH8Dlkvd307lPoJMhAfhKX55K2lsEsN0GHlM/IG1JLwFw8XBb0rwJYvsEGBW99wpSAKL3AFyncUrOPnAB7NTgkzpgRYa/2/8PMAaeV8xxBByUHuRbCA9akuKKFlYSbwaEgJQZVB7YPgS6ifAq6b5Os/0GhFiNgLAy7Iy6lXT654AfKtte5w/mTcsUGRznDIC7hkTPgK1qxDXXObNiX4bA+TdXco+CEoEKTwAAAABJRU5ErkJggg=="},52728:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAPZJREFUOE+dkiFPxEAQhd+uQvAfEBgsCYaAQfAvwJGdaZrUnUAgqlGIpjNNPX+ABIHAkGBIECCRJyoRJy4N2yUntikXuOM69s0382b3GYwsM5JDD5ZleWSMOQOwFYe1bXuVZdlUVS8A7BLRZdR6UETevPfn1trPKDZNM83z/Kuu6x3vfR1CuGPmm4Xeg1VVPTrnTobWVXUPwG0I4QPAzFo7d84l/wHvu66bJEnyvvwW6za+EtF+hIqi2E7TdLZ247J9VX0gotONweGglVZF5ICZX6LVX0EReWbmw1WBGPYM//EawDGA+R/wIhhPzDz5ceOm0Rud1W/w8HwPRgFpxQAAAABJRU5ErkJggg=="},93653:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAJ5JREFUOE/NkrENwkAMRd/fgpIV6CgokjGoGQQYhJoxQEoDFSNAyRYfOQroCJdwDRJfOlk6/yfb5xMDsr2KlKRdzqLcpe050HS5haRz3/cB2p4AFyBi6A7MJEV8KQfugaiYgidJy1HwmbR96Gasi2cM4+9A2wY2krZpS0MVba9b/1+B7Tr6+/va6shXfJvxCMQpUQVU8ThXYFpCJJ7bA0FoaNOHmXccAAAAAElFTkSuQmCC"},39235:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAAB4CAYAAABmdbmbAAAAAXNSR0IArs4c6QAAF/9JREFUeF7tndtz3cZ9x384OCRFShQpUaIoUqYu1s2WbCe2mnFiuU2dmeah6SSTzrQvbR8707QPzWP71P+g/0L70vdOpzN9bONWcdM2cWxF1o2yZYkSqSspkZTIcwB0fjgHhwtgd3+/XSzOhQJebPHsLhaLD76/yy4WHgDAg9XopAfB30fgve8BHMC/VUc1Ar0YgQjgkQfez8PI++mhSW/Be7IWvRU0w0/Ag7FedKg6ZzUCihFY8/3ad7yHq+G/AEQ/qIapGoG+GwHP+2fv4WrwGAD2913nqg5VIwDwAAGNqpHgjYAHADhYRf/LO1tVCkegAlTBAULYrUOEvlvnHJTzvNKAypSQdeOKSmhSX3MymVKz+rbDCr1ygBorowij65tvKZ2vkk+2owEl2dIpoWsYue3pnFxJG5aMc3vT83I7DlC2QrIL8u5R1mozrDivYbEUQzoZRczP28MaOwJQpVJaOpndEFZDocwjQjipO0VZBxZQUgDJAq17TroBPVQPYzVUVDBup4fXnD31QAFaVCn7GUaKCbYiMpSVOlc//T4wgCoF0UAp+2ngXfSFrYwDrKx9DShLMSV32rlSZpxSzwOIIgDb/+amohzQSiqsogBZz0HfijTRt4DaKiZTUNVjJoGxyADr6ubgYEuivkdkMwOkqH0FaE75iCi8qFLqFLAsKKl2ZcpcRHGVsGoUlepjN3/vG0BzykdIobVStqlGOAflSLFEyqM+IyW95kyb/WT2+wJQKZzJKAkjaqyYAoyJMg0KlKp+duDJROtRCPB4PYRbDwK4dLMBb8768HvnR3LNKOHrU0XtOaBc5TQWvHYF43oFCS5lBknSJ3zgFh4GcO1+AJuNCKIogkYQwbWlELaaAFN7PPjp9/UvSWjNv3BOC9EuOIrb1XsCaFmKKfqULkaojBmlIjNID5+H8PndJly5F8CVxQBeNAD2jHjwwUk/zijg7/dXtnH62z8YhbHhmnYocvAp8qi9MvtdB5QbnZsqX1Gf0vR8ubuelc4CUprAsLYZxUBeWwrgszsBPFnPa9m3jvuwf7cHzbZ6BuF2z358YRjePTpEPqtahZT4p2SDDgt0FVAT5eRco61iEsmBYkvmk47rpFIhzVjl8mIzNtufft2ExRU03eqRmB734N2jflzg7pMwB/CFY3X40Xsj29ejGdR+9U27BqhrX9NWMUmlJAtwHh1+maWVEJ6/DGFpNYRPvw7g/24HrMo1D+DiKR/Ghj3Y2Irg5rIgne0W9uwC+Jsf7I7/FXPOdCb7yTftCqCde64Iw7nReRHFlN51Ukr1rOh8VJWAPlkPY4W89TCAm8sBHByvwb7dHgRhBB/fCOBlg8UnHD/gwZmZlnouPAhgfVNe76+/PxqfoyPsTGdSq6hdDKBKB5SjnBzRMlVMsk2yQPqGGxbvVH7RiODqvQBuPwrg6v0AVl9s69PosAcnp2txgHPjQQgLD/IqKMNupA7w4Skf6r4HKxsRfP1YXe/33xmG75xK+6Gx28D0kaVq2kW/tBRAc4qoUU6tXgh5TJ6utEpxfd1smwUFNW4ujACuLzXh9uMQvlhswoNnkdKyvj5dg90jHrzYiuA/bwTAfb/2/FwNjuyrxedCNW5ovII3DvvwJx/syg2fOGOlG9teK2kpgOYgkcgPV5G4ysnNDsigNIFfVhaj7fsrAVy60YzNdpMhhJO7PZjf3zK9n94JYGmV5yBOjHrw/olWWml5NYTlZ+p6OCbzB2rw598d1V6iLhATK0pTUiWbe6eAdls5lb4r4dRyfV7VXX2yFsFnd1ElA5jY5QGa8cdrISw+5UGGAc6ZmRoM1T14uhHBf9/iBUbYH4RzcsyDRjOCq0thLsrH384e9uHolA9nDvswMsSTAq7Z7zakzgHt3FTFuJDD1S5AlTNVTKo9ncQggJ/dacL1pQB+fSeAh89bt+mb8zU4tLcWBzhX74cg5iB17c1MeDC9txbDdWmhCc9f8jR8dtKDt4+0AiP0O9H/3DUEcOqQDyem/Thomtxdy0XrvMeGH+l3E9JyALX0OeMoXeZDZu4fV6mTaqZwom+HAQ0myH91uwl3noSxvyceOJX4W8dasNx7GsKjNR4GQz7EyoYqirnLy/cY/gAA+B7Ah6d9GN/lweRYDbCdE9N1ONJ2E/JOZjoQ4sZFJr5p6pwlBU7OAE1BYOFzWvuaGvpMwHzwLIRf3m7C53cDuL4cxPPZugOnFxGWzWYE1+7zIMP2jk7VYGKsNfPzs+sBbBHWHUGe2+fB75wdgnfn67B/Ty0XBGrzlpJonfMocfKm3VBSJ4B2QDBVTsMonRudc8BEAJdWgzjQuLcSwL9dbsLGFs/Uzu/34tVCeODqoTVFDjLb2u4RgNenW/VQnb98JEcFpy6/Md8y2e+8VgdMR3EPKTQWkHYUl6C5bEgLAyqFRhhNamhtlBN9r09uosSl0+Hb58o7CvgXXO0zt9+LF1U8Fea1v3wUxquAOAeaVjS1w74Hz15E8NUjXj1s+/RMDXYNebC+GcF/3Qw6bsPYMMC5OT+G/q0j9dg/FQ9uAJPU0Sqq0LALJS07T1oIUGvlbA8SBafK18TVPH/5D+scnnJlLhz34b0TLRXDA030x9d5qSEs/8bhWmymcXlbsrSN0xFUxcRfRDdifNSL1RHzlBjgUEfKN5QoYra+Nn8p1Kcg7bVPag1oN5RTqr4exEvNbAGt1wD++NtDsGdXq/XLiwHcZaaH0ERfPFmXLm3TAYbnvHgaAxofDu6twYE9NfD1q+C0vHagouhqt+LCDFM+KaWkzK7mrtsK0G7AiT1VKXQRQFum1oPfPTcUTzv+fIGfg8SoHaP3eGkbppU0oz6+C+Ds4TocO4imuw5oxmXTi2knhb2eo3MjqSR7t5Q0d57MH7hZhCyhVoDm4Mm0qvU7PclUpEQvdA/Bb+424a/+cYOyitrff/heHb5+GknXWMoqUkvbhusAJ6d9OHmoFdwcEP1I0SVmSAmjSKqLFKRJYRcqR51Lp9am1xVzZrPDsq3vyV2NRLX/xWIAP7H0QZObtXcUYHLcA49yhAHinCWmlZJ58xvLYZyXnNtfgzdmfThx0IdjB3zekyfSIjrZmbtnqjjcQIqK8imIqPMUbb+wghYy7wz15ORT0cQXBRQHYmqvB3tGqTwDxEvbzs74MDXuwUi9FkfZp2dwNVFeaxnxi1rZFXRQ0OQUkqhQ1CctoqLYV+71GCuoNZzMfCelnMnvrgDFQGX2gAc1hYrivDbmI7/35hDM7cPUEm+mS+dbkMqocErJeklAJOx4QvUj7SfkZ5609YkOpQK5TNbA5CE2MvE6daN0iLKkJvC7AhRvwMRuDyb3tM6O89qYizw/58P5I3U4PJmftSnk+Eoqk2oiKUDWEWA1hlSoQJ1Hp6Q6f5dqV+yzHaCZBGUuX5kNmgh6TeDEpl0Ciuf+0w+H4bfPDsWLLvBBoq7HNaSJ2ZMqi0KpqJtcdv6Sat+VL8oGlOMbSm8c4XeawukaUGzvozfr8Hd/2HqHnLIEZcCZbVMJnySQovoTVyngk+qqpsw4xzpY9J8FKNc3zPaRitpzSiVRZtkNcKmgSfv/9JM98NqUWfacu7udzd5KShcv80NRJc2dx6J9GzeC61OzAE0pS0ZitIpjop4G7boGdH7KixUU00m4qunZS+q255UWI3tc3YQHTp/iomalMiqaHxnCHUFaDwku78M1n83sOj+JIorN4UODK/WHfC8WztWNCNa3otivxmV6sqOoOTbyRYWT0aPMzIOqFJTy1diBkaFP6xrQH12ow6GJGtx9GsLlRf7ij+Rmz016MQB4vbgNza2HofY9IRkkuAgF31EarnsQRlG8MHr5GWXA87+/daQGc5MtEJ+uh3DnSQuDP/tgBN6YqyvNvRRSoXkKJhWkReEnFdTGR0ycOZ26Fmn3yl03eVDs56mZGnx0rr6j4ewAOlvXEq+DlPRFNQVs240tt24mydZHTHwulYIWgRPtlisFRdX6o/eHYOVFtGOVMyESFfTNubp2pxJpPNWmi/IZVTNMRX1cvoJK5FCrkNzUkkW7v3GkoN963YeDE96OhzNR0BhQKYXbwlpE7YzMPNN9IBU0ZROYgQz1blGRrAD2xwWgOBf/7TP1+GU302MQfM7sNYkKmmQf2AETAyarOfrMknNZf6wV1DZ6L2Lek7ouAD0/X4PnzFc1xIEbRDhFBe0IaAk+YxnRPE9BFeG6CtIi0btOzZJ2iwKKm2pNTZjlPLFfgwpnFtAYUgWgRaNu1+3yAI3DqTQ6tv6nbkaK22ZRQA9PeXE6x+QYZDilgGp8UVs/1Na/1WUIeIAa5il10XsS1SWpKBESnSKLe8xjmukvLNeDjo8C7M+8lEaBOuhwKhU0ua+SAVBB2u18qBJQW1+Rbd4LqPLDZyH866eN+JWLl40I1oQd4yjYxsc8o/eBMBU1P7W9qgl3OdZt1qU6P26xiMv18MC3UrkbPYjt7d2FO5K07gzuYvKovcOJ6pz43hWu0EKovnlU8baoonIKxAyVtjlRG2XmK6hwIUrj2H4iXec/ddAjMLizR3XkR2BuX2vvUdlhtRqJXnei9W1Tgp1JkKqg752CGvi0sdgqnooKUPWjqQNUFyjl3FMmTJ16JgFYu/vGgKYssMQHlQ4LV0EdZgUqQO0ALaKgGte1paCSArYzSoOhoJpVUbhDyGJl4qWUOlPQjKRWPmhmuCsf1M7DpgDVmXldFE8qqKa7nXaZbkNXFdQ2B6rzQSsFtTPxlQ8qGbeic/CyW6HzQXFdZRSZJeTttCqpFYGPq54VB3eDW5M+4OlUFqasKJ5U0MoH3b6FOgVtbcvN39rGBAxZWXyN+dyc/MtuGDx8fpf5jRmDjuB2jrtH5NO2lIkvY+5cN5s0EHlQ25kk1T3TKWgFqIM8KNNX7NgQTYqpL/KgmGLQzqknVyIpxJ2LF2GtAHWvoDqly+VIM8pho8oDPxevW6HvClD04/aOevGnBXGT2a0gghdbAM828MU1ns0dJBPPXr/pUEFTo8icPuVNdaay9q3T6KY7WQqqUFLdghHTIIlj4nEj2den6/G+S7IAB2/k6osQbi03ybnvfgN0dl8t/hKy7HDtK1JZAanytiEtrqCOYMo142CVVBEFPTvrw2tTrQ1pOcfj5wH8+nZTqagUoGUEbPgdTtW3kKgoXgmu+EPJCqqYeOr0oJwV9Zq585z6cufkFb6tDaAI0luv1WF6gt56O3sT116G8MsvG9KPvuoA5TwArsuoFNTIT8xIn3YWSfNjbnWUEDH1REHF9ZvZgXeZD7UB9NyROsztN4czuY7VjRD+Z6GR+3aSVkFxQ4eG7lbY4YlL+GqK3KsMULbvmXSH6SvatutOQSVm3ibqlpr5zL0xadcUUNwB5BvH5LlKE0S+fNCEG0vpHCsFKAZcrg/cVBe/eiw7pIBKncFW7ULRe0ntkkFSLm8p/IFy3SjfLqWkwgjrAjAcRbFdE0Cx3sUzQzA6bP4+UhYAnKW6dL0BG5vbt3UgACVE3HSuvCO0CinM/dnQpyV9UNc+o0SIW3/i+qLtBhJITQCdmazB2/Ny9USzvfgkgFMz9fgjr5zj9qMmXLu3raL9DmiRnZFtfU9KmSmnxwxQh+s4U0xatJv4uCaAvj1fh5lJue+5sh7CLxYa8TcwT860PhlDWQD8zvvHV7c/T9fPgNr6iApXtPP82q4rpdrtCBn3IwrG5jijdCpFsl7h1I7qTQD94Mxw/CEE2ZEAmvyG7/OcnW19G1N3/PuVzc53PfsVUF3Ok1I4jWuZglQ1Rjbz72JbZgqqsM8mPmPq5MLOEh0zn/FxUz5wZhRQ4XCbw3sr8uAjm6j/6NywMqDIApqcCj+3fXpW/b3MS9e3YK29XSOVZgrdx0jgeZHySyUYJO0bE7aMllAkBYiZAorh5fq0Gcmkond7BTWFtG3L2bNLhnP0TzfUL81lAf3e+WHlcjgVoPgh1zOz+Tcik2H45MZW/M1OPChAtVJcwo8dQDVtlxW5u1DmGB2uiW9z1rpUBzNAWSVNjaFBwITL7bgKevHMMIwxTTx+vvD4tA9HD/jKPCP2+T+ubMJm+9Pd1EzS5UX3y+3wG02q5XY6QDnRdWr1UQZyK5/WQJmNFTQFaO4f29yqHlYq4MgJJxNSE0AxgsdIXnYkCoqnxQ90YaBE7T6C7+T/7AtmkNSD9aAUoLlxYCblO+rInTnKyCkVuafEy1RBc3lRoTUqOVMGpCaAzk7W4LwizYSALiw34fThofhLxJzjzuMm4FfvkoNS0G4vWJYBqvT9DOCMeVNQxlFmzthaKahUOJlKl7gG1K03VVITQDGFhGZelufEreA1b2tIx/QXN7fiXUL6FtDJ/IJlKVeO4EzGoWjkbq2gHarF/5GE2bZRvU37JoBi+0cP+nDmsH4rbM4TvrzaWtkkHn2noAKgTpVT45wWCbpk424UJKXIztG0/atWJRnf6zRRalNAsW8XTgzBPiK/qYN0qxnBJzdwRVP6dlCA3n6cBprzIFBlZib8eIG17ECXJtn6ptfKGbsF1MVIfrcGNAWRxMzr8pfJtKYLc4+J+vvMPGhy/SN1gPdPDSvXUerGEefg/3ehkTLtHBNvcW8KV0FAJ7MLlkUpNYiquxW1Zy/aGlBTXzE32o6UFBXUFFDsC/qj7xwdImeKxH7j1Oavvmp0EvPZa6JmkholLLer1/FjuHKWpYBKpIxSNmM4k+60G6ba1z2J1oCamGFVB6gv0Sm9COGG2AKa9B/TTsen64BTm6oDTfpXDwO48ziItz1UHRSgXV9uJyqowgml4OHAmXJJM+fhzhgpGTFJM8ka6bWSFgFUvB4E9MB4LZ6rx1cocA/QF5sh4GzUynrE8p/6DVD8WnNq+0XTaD2jhLL7T/m21ANA+TGFFDSncJkZJqUCZnpFfRVEbCebh3UFKDVQnN/7EtDMXDxX0YyVUwFzXwDqwtxT79OLgIiqjXPxNj4oBzjTMn0LqHAhHGAoOJXCaqjQnPF1oqCulJT6Qp1MSStA1a98xCYeFdQgxUPB6SqfyoEzFr6iPmj2RIV90rYcUymo5Lw4k6NS0EYQlfKimtKh90C5cAPrNHFTfccHvsuvmkJOAOWelVo6pwS9BOXsiJFrQFPm3tIn5SopnksHqGMWBq45BHSyraCqzqdWxBMzRNKfS4SzFAXNmXvFH7gKSS0wqQBVPzcsQBn2X6nAJcNZKqBcJdXOOLXHXpcvrQC1A5TyNbWBkERKuW6EqRly7oOa+qRKxVVcSVZRK0DNAeX4mlph7YJyluqDlgZp+8kVIa0A5QHaib6ZUpcrZjkTZaqYOXbKCJJknaKie1MlTfKmFaA0oFxzro3Su2jWxSsq3cSnTka8xSlCyvFNxWhftxeU6haKSQZy9ZVsFZCsAZNyGnnhzvgUjc5FX1MZpWdWPWmC/aKCmavfVUC1KqkI67nRvklqijOK7PNyGmOWYVpfsjWuj6kMhBQ/uOofeQFCgZ4AqgTVNm+akV7uKinuQHGEUqZEnHqubjq1w0f2WrUzQj0y51LXsFs+qM7MSn+TSJiVqrUrWdXlEtyjch24DSnXFpf8aNi809HoqYIqfU6Fkhr7qCUrq9M7QTQmRuGJhZB9E1Ppk8o/obldPCOpRX1gV2PTF4CKF8ON9rX+LGd0JCkrTrVelDGJwmX9084E9ZE570sTL+1U9o9EuE0IrpqpTLui78rKIjigteM7JgrX3v/UBZRkVN7ncOLw9p2CksrIMP8OuMl9UlpcVG0Kb7a8aUBjcj2kv9hnPiZ1bX0LKGn2s/lGyZVaKys5akJC1yTvWUICkfQVNTNAJXSHGjnj3wcCUDasmssvDVbjIS9egVTJ5BSKguz6xbtauIWBAzT2S1SXzaSQPYNUeHiLNyATaG2rA66YufCj13nQordQC6tB4/0ErbHCEXbeuD2DcSu76EAqqC7Ilw5YQfq4M0K25Vg3WefrCg2QPinrZP1TaEcAKhtOcuaI6Q70xa1iSiCzWF9cErcTOxbQxFfVBvsmkscdUapcLueU2bGacDqNfVKqP33++44GVDf2pMKq/Ijk72IDKujEaDqb0zHI8ew0s23yTLyygIqDpBNSk8EsUpbpYhY5xUDWrQBl3jYXLuurZp6ZQ6stVgHqYhSrNkobgQrQ0oa2atjFCFSAuhjFqo3SRqACtLShrRp2MQL/D7QQt3cZqmKmAAAAAElFTkSuQmCC"},96004:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAQCAYAAAAWGF8bAAAAAXNSR0IArs4c6QAAAgtJREFUOE+Nk79rU1EUx7/f25eXxdGhQ6EdOriIdbPQ2gQEHTo41EGkvigFOwQMVFFRIaJjoAUXxwQEhzgILg6Bl2fjnj/AwYCDYAbBdugjuV95N0kJaX54p/fuOedz7rnf7yWGVurw/iXY7g6FDMBlQB7A74QaXYNy52rl23D+uG+6zTDjpczivgHz0wokfIp1vI1s9WhSngP69aBKcmtW9yQuoRnreH0SlH4U3CH43iUDzdhi1Td4QqDoGlCNk24rmzZLbwHs9vJUijcqj8eOnP4aHEJcc0GpbWleULpJ4ka/4IcFi5R2SVwB1JbwK1brMrL1ziiUfj34S/Lc1LuDOgLeEWxDWia4kORboinq47BYTEfBb4DnJwEFHVmgOCfmQSyNyxsWKznhZ5Kbk4Bdi1eG2ps1BaTGiVpZeuH2mjEmJOiNQhORIP0cNJTFbcB2aEzVjWyxSugaDV+7fyjvbJOKcg8NcHAWqBKEAtlrlljGCU+s9EVsAJgHk0fgHFHrGTuBhrmCMdgfhlrgwACF//HnwHanQD8KngN8JKBMaoHAvMQaoR30VZ0Fts4J/eWHd7dimBqy5T/DhV4U7M2BpVmwxA2x5cVT4MSCMOP5XPww7Wk6a1ne6mTLX2YDB3cc3XtA6Clx1ouC3sQblZdOl1mjjMb9MHfBJsoC6ABND1gxHq7H6+Vnyd4/JJHPef53qAsAAAAASUVORK5CYII="},26789:function(t,e,n){"use strict";n.r(e);var r=function(t,e){var n=document.createElement("_"),r=n.appendChild(document.createElement("_")),i=n.appendChild(document.createElement("_")),o=r.appendChild(document.createElement("_")),a=void 0,s=void 0;return r.style.cssText=n.style.cssText="height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:0s;width:100%;z-index:-1",o.style.cssText=i.style.cssText="display:block;height:100%;transition:0s;width:100%",o.style.width=o.style.height="200%",t.appendChild(n),l(),c;function l(){u();var o=t.offsetWidth,c=t.offsetHeight;o===a&&c===s||(a=o,s=c,i.style.width=2*o+"px",i.style.height=2*c+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,e({width:o,height:c})),r.addEventListener("scroll",l),n.addEventListener("scroll",l)}function u(){r.removeEventListener("scroll",l),n.removeEventListener("scroll",l)}function c(){u(),t.removeChild(n)}};e["default"]=r}}]);
|