!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).X6Common={})}(this,(function(t){"use strict";"object"==typeof window&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),"undefined"!=typeof window&&[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((t=>{Object.prototype.hasOwnProperty.call(t,"append")||Object.defineProperty(t,"append",{configurable:!0,enumerable:!0,writable:!0,value(...t){const e=document.createDocumentFragment();t.forEach((t=>{const n=t instanceof Node;e.appendChild(n?t:document.createTextNode(String(t)))})),this.appendChild(e)}})}));class e{get disposed(){return!0===this._disposed}dispose(){this._disposed=!0}}!function(t){t.dispose=function(){return(t,e,n)=>{const r=n.value,o=t.__proto__;n.value=function(...t){this.disposed||(r.call(this,...t),o.dispose.call(this))}}}}(e||(e={}));class n{constructor(){this.isDisposed=!1,this.items=new Set}get disposed(){return this.isDisposed}dispose(){this.isDisposed||(this.isDisposed=!0,this.items.forEach((t=>{t.dispose()})),this.items.clear())}contains(t){return this.items.has(t)}add(t){this.items.add(t)}remove(t){this.items.delete(t)}clear(){this.items.clear()}}!function(t){t.from=function(e){const n=new t;return e.forEach((t=>{n.add(t)})),n}}(n||(n={}));var r="object"==typeof global&&global&&global.Object===Object&&global,o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")(),a=i.Symbol,u=Object.prototype,s=u.hasOwnProperty,c=u.toString,l=a?a.toStringTag:void 0;var f=Object.prototype.toString;var d="[object Null]",p="[object Undefined]",h=a?a.toStringTag:void 0;function v(t){return null==t?void 0===t?p:d:h&&h in Object(t)?function(t){var e=s.call(t,l),n=t[l];try{t[l]=void 0;var r=!0}catch(t){}var o=c.call(t);return r&&(e?t[l]=n:delete t[l]),o}(t):function(t){return f.call(t)}(t)}function g(t){return null!=t&&"object"==typeof t}var y="[object Symbol]";function m(t){return"symbol"==typeof t||g(t)&&v(t)==y}var b=NaN;function _(t){return"number"==typeof t?t:m(t)?b:+t}function w(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n0){if(++e>=Rt)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Ft=Wt(dt),Lt=/\{\n\/\* \[wrapped with (.+)\] \*/,zt=/,? & /;var Ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function qt(t){return function(){return t}}var Vt=function(){try{var t=ct(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Gt=Vt?function(t,e){return Vt(t,"toString",{configurable:!0,enumerable:!1,value:qt(e),writable:!0})}:V,Ht=Wt(Gt);function Kt(t,e){for(var n=-1,r=null==t?0:t.length;++n-1}var Jt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function te(t,e,n){var r=e+"";return Ht(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Ut,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Kt(Jt,(function(n){var r="_."+n[0];e&n[1]&&!Qt(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(Lt);return e?e[1].split(zt):[]}(r),n)))}var ee=1,ne=2,re=4,oe=8,ie=32,ae=64;function ue(t,e,n,r,o,i,a,u,s,c){var l=e&oe;e|=l?ie:ae,(e&=~(l?ae:ie))&re||(e&=~(ee|ne));var f=[t,e,o,l?i:void 0,l?a:void 0,l?void 0:i,l?void 0:a,u,s,c],d=n.apply(void 0,f);return $t(t)&&Ft(d,f),d.placeholder=r,te(d,t,e)}function se(t){return t.placeholder}var ce=9007199254740991,le=/^(?:0|[1-9]\d*)$/;function fe(t,e){var n=typeof t;return!!(e=null==e?ce:e)&&("number"==n||"symbol"!=n&&le.test(t))&&t>-1&&t%1==0&&t1&&b.reverse(),f&&c-1&&t%1==0&&t<=Ze}function Qe(t){return null!=t&&Ye(t.length)&&!Z(t)}function Je(t,e,n){if(!P(n))return!1;var r=typeof e;return!!("number"==r?Qe(n)&&fe(e,n.length):"string"==r&&e in n)&&Ue(n[e],t)}function tn(t){return Xe((function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&Je(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),e=Object(e);++r-1},Zn.prototype.set=function(t,e){var n=this.__data__,r=Kn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Yn=ct(i,"Map");function Qn(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Jn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0&&n(u)?e>1?gr(u,e-1,n,r,o):pr(o,u):r||(o[o.length]=u)}return o}function yr(t){return(null==t?0:t.length)?gr(t,1):[]}function mr(t){return Ht(Ke(t,void 0,yr),t+"")}var br=mr(dr),_r=En(Object.getPrototypeOf,Object),wr="[object Object]",xr=Function.prototype,jr=Object.prototype,Or=xr.toString,Ar=jr.hasOwnProperty,Er=Or.call(Object);function Sr(t){if(!g(t)||v(t)!=wr)return!1;var e=_r(t);if(null===e)return!0;var n=Ar.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Or.call(n)==Er}var Ir="[object DOMException]",Mr="[object Error]";function kr(t){if(!g(t))return!1;var e=v(t);return e==Mr||e==Ir||"string"==typeof t.message&&"string"==typeof t.name&&!Sr(t)}var Tr=Xe((function(t,e){try{return yt(t,void 0,e)}catch(t){return kr(t)?t:new Error(t)}})),Cr="Expected a function";function Pr(t,e){var n;if("function"!=typeof e)throw new TypeError(Cr);return t=U(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var Nr=Xe((function(t,e,n){var r=1;if(n.length){var o=he(n,se(Nr));r|=32}return We(t,r,e,n,o)}));Nr.placeholder={};var $r=mr((function(t,e){return Kt(e,(function(e){e=cr(e),ze(t,e,Nr(t[e],t))})),t})),Rr=Xe((function(t,e,n){var r=3;if(n.length){var o=he(n,se(Rr));r|=32}return We(e,r,t,n,o)}));function Br(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r=r?t:Br(t,e,n)}Rr.placeholder={};var Wr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Fr(t){return Wr.test(t)}var Lr="\\ud800-\\udfff",zr="["+Lr+"]",Ur="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",qr="\\ud83c[\\udffb-\\udfff]",Vr="[^"+Lr+"]",Gr="(?:\\ud83c[\\udde6-\\uddff]){2}",Hr="[\\ud800-\\udbff][\\udc00-\\udfff]",Kr="(?:"+Ur+"|"+qr+")"+"?",Xr="[\\ufe0e\\ufe0f]?",Zr=Xr+Kr+("(?:\\u200d(?:"+[Vr,Gr,Hr].join("|")+")"+Xr+Kr+")*"),Yr="(?:"+[Vr+Ur+"?",Ur,Gr,Hr,zr].join("|")+")",Qr=RegExp(qr+"(?="+qr+")|"+Yr+Zr,"g");function Jr(t){return Fr(t)?function(t){return t.match(Qr)||[]}(t):function(t){return t.split("")}(t)}function to(t){return function(e){var n=Fr(e=ar(e))?Jr(e):void 0,r=n?n[0]:e.charAt(0),o=n?Dr(n,1).join(""):e.slice(1);return r[t]()+o}}var eo=to("toUpperCase");function no(t){return eo(ar(t).toLowerCase())}function ro(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o=e?t:e)),t}function Go(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=W(n))==n?n:0),void 0!==e&&(e=(e=W(e))==e?e:0),Vo(W(t),e,n)}var Ho=200;function Ko(t){var e=this.__data__=new Zn(t);this.size=e.size}function Xo(t,e){return t&&Ge(e,kn(e),t)}Ko.prototype.clear=function(){this.__data__=new Zn,this.size=0},Ko.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Ko.prototype.get=function(t){return this.__data__.get(t)},Ko.prototype.has=function(t){return this.__data__.has(t)},Ko.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Zn){var r=n.__data__;if(!Yn||r.lengthu))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var f=-1,d=!0,p=n&Sa?new ja:void 0;for(i.set(t,e),i.set(e,t);++f=e||n<0||f&&t-c>=i}function v(){var t=Nu();if(h(t))return g(t);u=setTimeout(v,function(t){var n=e-(t-s);return f?Bu(n,i-(t-c)):n}(t))}function g(t){return u=void 0,d&&r?p(t):(r=o=void 0,a)}function y(){var t=Nu(),n=h(t);if(r=arguments,o=this,s=t,n){if(void 0===u)return function(t){return c=t,u=setTimeout(v,e),l?p(t):a}(s);if(f)return clearTimeout(u),u=setTimeout(v,e),p(s)}return void 0===u&&(u=setTimeout(v,e)),a}return e=W(e)||0,P(n)&&(l=!!n.leading,i=(f="maxWait"in n)?Ru(W(n.maxWait)||0,e):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:g(Nu())},y}var Wu=Object.prototype,Fu=Wu.hasOwnProperty,Lu=Xe((function(t,e){t=Object(t);var n=-1,r=e.length,o=r>2?e[2]:void 0;for(o&&Je(e[0],e[1],o)&&(r=1);++n=es&&(i=Aa,a=!1,e=new ja(e));t:for(;++o":">",'"':""","'":"'"}),xs=/[&<>"']/g,js=RegExp(xs.source);function Os(t){return(t=ar(t))&&js.test(t)?t.replace(xs,ws):t}var As=/[\\^$.*+?()[\]{}|]/g,Es=RegExp(As.source);function Ss(t,e){for(var n=-1,r=null==t?0:t.length;++n-1?o[i?e[a]:a]:void 0}}var Ps=Math.max;function Ns(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:U(n);return o<0&&(o=Ps(r+o,0)),Xt(t,gu(e),o)}var $s=Cs(Ns);function Rs(t,e,n){var r;return n(t,(function(t,n,o){if(e(t,n,o))return r=n,!1})),r}var Bs=Math.max,Ds=Math.min;function Ws(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=U(n),o=n<0?Bs(r+o,0):Ds(o,r-1)),Xt(t,gu(e),o,!0)}var Fs=Cs(Ws);function Ls(t){return t&&t.length?t[0]:void 0}function zs(t,e){var n=-1,r=Qe(t)?Array(t.length):[];return Au(t,(function(t,o,i){r[++n]=e(t,o,i)})),r}function Us(t,e){return(x(t)?w:zs)(t,gu(e))}var qs=1/0;var Vs=1/0;var Gs=512;var Hs=Fo("floor"),Ks="Expected a function",Xs=8,Zs=32,Ys=128,Qs=256;function Js(t){return mr((function(e){var n=e.length,r=n,o=kt.prototype.thru;for(t&&e.reverse();r--;){var i=e[r];if("function"!=typeof i)throw new TypeError(Ks);if(o&&!a&&"wrapper"==Mt(i))var a=new kt([],!0)}for(r=a?r:n;++re}function ac(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=W(e),n=W(n)),t(e,n)}}var uc=ac(ic),sc=ac((function(t,e){return t>=e})),cc=Object.prototype.hasOwnProperty;function lc(t,e){return null!=t&&cc.call(t,e)}function fc(t,e){return null!=t&&cu(t,e,lc)}var dc=Math.max,pc=Math.min;var hc="[object String]";function vc(t){return"string"==typeof t||!x(t)&&g(t)&&v(t)==hc}function gc(t,e){return w(e,(function(e){return t[e]}))}function yc(t){return null==t?[]:gc(t,kn(t))}var mc=Math.max;var bc=Math.max;var _c=Math.min;function wc(t,e,n){for(var r=n?ts:Qt,o=t[0].length,i=t.length,a=i,u=Array(i),s=1/0,c=[];a--;){var l=t[a];a&&e&&(l=w(l,yn(e))),s=_c(l.length,s),u[a]=!n&&(e||o>=120&&l.length>=120)?new ja(a&&l):void 0}l=t[0];var f=-1,d=u[0];t:for(;++f1),e})),Ge(t,ci(t),n),r&&(n=pa(n,7,Dl));for(var o=e.length;o--;)Bl(n,e[o]);return n}));function Fl(t,e,n,r){if(!P(t))return t;for(var o=-1,i=(e=ur(e,t)).length,a=i-1,u=t;null!=u&&++oe||i&&a&&s&&!u&&!c||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!c&&t=u?s:s*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Vl(t){return mr((function(e){return e=w(e,yn(gu)),Xe((function(n){var r=this;return t(e,(function(t){return yt(t,r,n)}))}))}))}var Gl=Vl(w),Hl=Xe,Kl=Math.min,Xl=Hl((function(t,e){var n=(e=1==e.length&&x(e[0])?w(e[0],yn(gu)):w(gr(e,1),yn(gu))).length;return Xe((function(r){for(var o=-1,i=Kl(r.length,n);++oQl)return n;do{e%2&&(n+=t),(e=Jl(e/2))&&(t+=t)}while(e);return n}var ef=hu("length"),nf="\\ud800-\\udfff",rf="["+nf+"]",of="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",af="\\ud83c[\\udffb-\\udfff]",uf="[^"+nf+"]",sf="(?:\\ud83c[\\udde6-\\uddff]){2}",cf="[\\ud800-\\udbff][\\udc00-\\udfff]",lf="(?:"+of+"|"+af+")"+"?",ff="[\\ufe0e\\ufe0f]?",df=ff+lf+("(?:\\u200d(?:"+[uf,sf,cf].join("|")+")"+ff+lf+")*"),pf="(?:"+[uf+of+"?",of,sf,cf,rf].join("|")+")",hf=RegExp(af+"(?="+af+")|"+pf+df,"g");function vf(t){return Fr(t)?function(t){for(var e=hf.lastIndex=0;hf.test(t);)++e;return e}(t):ef(t)}var gf=Math.ceil;function yf(t,e){var n=(e=void 0===e?" ":E(e)).length;if(n<2)return n?tf(e,t):e;var r=tf(e,gf(t/vf(e)));return Fr(e)?Dr(Jr(r),0,t).join(""):r.slice(0,t)}var mf=Math.ceil,bf=Math.floor;var _f=/^\s+/,wf=i.parseInt;var xf=Xe((function(t,e){return We(t,32,void 0,e,he(e,se(xf)))}));xf.placeholder={};var jf=Xe((function(t,e){return We(t,64,void 0,e,he(e,se(jf)))}));jf.placeholder={};var Of=Su((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Af=mr((function(t,e){return null==t?{}:function(t,e){return Ll(t,e,(function(e,n){return lu(t,n)}))}(t,e)}));function Ef(t,e,n,r){for(var o=n-1,i=t.length;++o-1;)u!==t&&Sf.call(u,s,1),Sf.call(t,s,1);return t}function Mf(t,e){return t&&t.length&&e&&e.length?If(t,e):t}var kf=Xe(Mf);var Tf=Array.prototype.splice;function Cf(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;fe(o)?Tf.call(t,o,1):Bl(t,o)}}return t}var Pf=mr((function(t,e){var n=null==t?0:t.length,r=dr(t,e);return Cf(t,w(e,(function(t){return fe(t,n)?+t:t})).sort(Ul)),r})),Nf=Math.floor,$f=Math.random;function Rf(t,e){return t+Nf($f()*(e-t+1))}var Bf=parseFloat,Df=Math.min,Wf=Math.random;var Ff=Math.ceil,Lf=Math.max;function zf(t){return function(e,n,r){return r&&"number"!=typeof r&&Je(e,n,r)&&(n=r=void 0),e=z(e),void 0===n?(n=e,e=0):n=z(n),function(t,e,n,r){for(var o=-1,i=Lf(Ff((e-t)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=t,t+=n;return a}(e,n,r=void 0===r?e1&&Je(t,e[0],e[1])?e=[]:n>2&&Je(e[0],e[1],e[2])&&(e=[e[0]]),ql(t,gr(e,1),[])})),ld=4294967294,fd=Math.floor,dd=Math.min;function pd(t,e,n,r){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var a=(e=n(e))!=e,u=null===e,s=m(e),c=void 0===e;o>>1,a=t[i];null!==a&&!m(a)&&(n?a<=e:a/g,kd={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Md,variable:"",imports:{_:{escape:Os}}},Td="Invalid `variable` option passed into `_.template`",Cd=/\b__p \+= '';/g,Pd=/\b(__p \+=) '' \+/g,Nd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$d=/[()=,{}\[\]\/\s]/,Rd=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Bd=/($^)/,Dd=/['\n\r\u2028\u2029\\]/g,Wd=Object.prototype.hasOwnProperty;var Fd="Expected a function";function Ld(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError(Fd);return P(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Du(t,e,{leading:r,maxWait:e,trailing:o})}function zd(t,e){return e(t)}var Ud=9007199254740991,qd=4294967295,Vd=Math.min;function Gd(t,e){var n=t;return n instanceof Ot&&(n=n.value()),ro(e,(function(t,e){return e.func.apply(e.thisArg,pr([t],e.args))}),n)}function Hd(){return Gd(this.__wrapped__,this.__actions__)}var Kd=9007199254740991;function Xd(t,e){for(var n=t.length;n--&&Yt(e,t[n],0)>-1;);return n}function Zd(t,e){for(var n=-1,r=t.length;++n-1;);return n}var Yd=/^\s+/;var Qd=30,Jd="...",tp=/\w*$/;var ep=oo({"&":"&","<":"<",">":">",""":'"',"'":"'"}),np=/&(?:amp|lt|gt|quot|#39);/g,rp=RegExp(np.source);var op=di&&1/ka(new di([,-0]))[1]==1/0?function(t){return new di(t)}:At,ip=200;function ap(t,e,n){var r=-1,o=Qt,i=t.length,a=!0,u=[],s=u;if(n)a=!1,o=ts;else if(i>=ip){var c=e?null:op(t);if(c)return ka(c);a=!1,o=Aa,s=new ja}else s=e?[]:u;t:for(;++r1||this.__actions__.length)&&r instanceof Ot&&fe(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:zd,args:[o],thisArg:void 0}),new kt(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(o)}));function _p(t,e,n){var r=t.length;if(r<2)return r?ap(t[0]):[];for(var o=-1,i=Array(r);++o1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,vp(t,n)})),Sp={chunk:function(t,e,n){e=(n?Je(t,e,n):void 0===e)?1:qo(U(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var o=0,i=0,a=Array(Uo(r/e));oo?0:o+n),(r=void 0===r||r>o?o:U(r))<0&&(r+=o),r=n>r?0:ks(r);n-1:!!o&&Yt(t,e,n)>-1},invokeMap:Rc,keyBy:ll,map:Us,orderBy:function(t,e,n,r){return null==t?[]:(x(e)||(e=null==e?[]:[e]),x(n=r?void 0:n)||(n=null==n?[]:[n]),ql(t,e,n))},partition:Of,reduce:function(t,e,n){var r=x(t)?ro:Gf,o=arguments.length<3;return r(t,gu(e),n,o,Au)},reduceRight:function(t,e,n){var r=x(t)?Hf:Gf,o=arguments.length<3;return r(t,gu(e),n,o,hs)},reject:function(t,e){return(x(t)?ei:Ts)(t,Tl(gu(e)))},sample:function(t){return(x(t)?Qf:Jf)(t)},sampleSize:function(t,e,n){return e=(n?Je(t,e,n):void 0===e)?1:U(e),(x(t)?ed:nd)(t,e)},shuffle:function(t){return(x(t)?rd:od)(t)},size:function(t){if(null==t)return 0;if(Qe(t))return vc(t)?vf(t):t.length;var e=Oi(t);return e==id||e==ad?t.size:Mn(t).length},some:function(t,e,n){var r=x(t)?Oa:sd;return n&&Je(t,e,n)&&(e=void 0),r(t,gu(e))},sortBy:cd},Mp={now:Nu},kp={after:function(t,e){if("function"!=typeof e)throw new TypeError(q);return t=U(t),function(){if(--t<1)return e.apply(this,arguments)}},ary:Le,before:Pr,bind:Nr,bindKey:Rr,curry:Tu,curryRight:Pu,debounce:Du,defer:Qu,delay:Ju,flip:function(t){return We(t,Gs)},memoize:er,negate:Tl,once:function(t){return Pr(2,t)},overArgs:Xl,partial:xf,partialRight:jf,rearg:Vf,rest:function(t,e){if("function"!=typeof t)throw new TypeError(Kf);return Xe(t,e=void 0===e?e:U(e))},spread:function(t,e){if("function"!=typeof t)throw new TypeError(_d);return e=null==e?0:wd(U(e),0),Xe((function(n){var r=n[e],o=Dr(n,0,e);return r&&pr(o,r),yt(t,this,o)}))},throttle:Ld,unary:function(t){return Le(t,1)},wrap:function(t,e){return xf(cs(e),t)}},Tp={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return x(t)?t:[t]},clone:va,cloneDeep:ma,cloneDeepWith:function(t,e){return pa(t,ba|_a,e="function"==typeof e?e:void 0)},cloneWith:function(t,e){return pa(t,wa,e="function"==typeof e?e:void 0)},conformsTo:function(t,e){return null==e||mu(t,e,kn(e))},eq:Ue,gt:uc,gte:sc,isArguments:ln,isArray:x,isArrayBuffer:Wc,isArrayLike:Qe,isArrayLikeObject:Uu,isBoolean:function(t){return!0===t||!1===t||g(t)&&v(t)==Fc},isBuffer:vn,isDate:Uc,isElement:function(t){return g(t)&&1===t.nodeType&&!Sr(t)},isEmpty:Hc,isEqual:Kc,isEqualWith:function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?tu(t,e,void 0,n):!!r},isError:kr,isFinite:function(t){return"number"==typeof t&&Xc(t)},isFunction:Z,isInteger:Zc,isLength:Ye,isMap:ea,isMatch:function(t,e){return t===e||ru(t,e,iu(e))},isMatchWith:function(t,e,n){return n="function"==typeof n?n:void 0,ru(t,e,iu(e),n)},isNaN:function(t){return Qc(t)&&t!=+t},isNative:function(t){if(Jc(t))throw new Error(tl);return st(t)},isNil:function(t){return null==t},isNull:function(t){return null===t},isNumber:Qc,isObject:P,isObjectLike:g,isPlainObject:Sr,isRegExp:rl,isSafeInteger:function(t){return Zc(t)&&t>=-ol&&t<=ol},isSet:oa,isString:vc,isSymbol:m,isTypedArray:jn,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return g(t)&&Oi(t)==il},isWeakSet:function(t){return g(t)&&v(t)==al},lt:gl,lte:yl,toArray:$l,toFinite:z,toInteger:U,toLength:ks,toNumber:W,toPlainObject:Vu,toSafeInteger:function(t){return t?Vo(U(t),-Kd,Kd):0===t?t:0},toString:ar},Cp={add:I,ceil:Lo,divide:us,floor:Hs,max:wl,maxBy:function(t,e){return t&&t.length?_l(t,gu(e),ic):void 0},mean:function(t){return Ol(t,V)},meanBy:function(t,e){return Ol(t,gu(e))},min:function(t){return t&&t.length?_l(t,V,vl):void 0},minBy:function(t,e){return t&&t.length?_l(t,gu(e),vl):void 0},multiply:Ml,round:Yf,subtract:jd,sum:function(t){return t&&t.length?xl(t,V):0},sumBy:function(t,e){return t&&t.length?xl(t,gu(e)):0}},Pp=Go,Np=function(t,e,n){return e=z(e),void 0===n?(n=e,e=0):n=z(n),function(t,e,n){return t>=pc(e,n)&&te){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Wf();return Df(t+o*(e-t+Bf("1e-"+((o+"").length-1))),e)}return Rf(t,e)},Rp={assign:Cn,assignIn:Rn,assignInWith:Bn,assignWith:Dn,at:br,create:function(t,e){var n=ht(t);return null==e?n:Xo(n,e)},defaults:Lu,defaultsDeep:Xu,entries:bs,entriesIn:_s,extend:Rn,extendWith:Bn,findKey:function(t,e){return Rs(t,gu(e),ju)},findLastKey:function(t,e){return Rs(t,gu(e),ps)},forIn:function(t,e){return null==t?t:xu(t,cs(e),$n)},forInRight:function(t,e){return null==t?t:ds(t,cs(e),$n)},forOwn:function(t,e){return t&&ju(t,cs(e))},forOwnRight:function(t,e){return t&&ps(t,cs(e))},functions:function(t){return null==t?[]:nc(t,kn(t))},functionsIn:function(t){return null==t?[]:nc(t,$n(t))},get:fr,has:fc,hasIn:lu,invert:Ic,invertBy:Cc,invoke:$c,keys:kn,keysIn:$n,mapKeys:function(t,e){var n={};return e=gu(e),ju(t,(function(t,r,o){ze(n,e(t,r,o),t)})),n},mapValues:function(t,e){var n={};return e=gu(e),ju(t,(function(t,r,o){ze(n,r,e(t,r,o))})),n},merge:Al,mergeWith:Ku,omit:Wl,omitBy:function(t,e){return zl(t,Tl(gu(e)))},pick:Af,pickBy:zl,result:function(t,e,n){var r=-1,o=(e=ur(e,t)).length;for(o||(o=1,t=void 0);++r=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},plant:function(t){for(var e,n=this;n instanceof xt;){var r=Ct(n);r.__index__=0,r.__values__=void 0,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},reverse:function(){var t=this.__wrapped__;if(t instanceof Ot){var e=t;return this.__actions__.length&&(e=new Ot(this)),(e=e.reverse()).__actions__.push({func:zd,args:[Zf],thisArg:void 0}),new kt(e,this.__chain__)}return this.thru(Zf)},tap:function(t,e){return e(t),t},thru:zd,toIterator:function(){return this},toJSON:Hd,value:Hd,valueOf:Hd,wrapperChain:function(){return zo(this)}},Dp={camelCase:Bo,capitalize:no,deburr:so,endsWith:function(t,e,n){t=ar(t),e=E(e);var r=t.length,o=n=void 0===n?r:Vo(U(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},escape:Os,escapeRegExp:function(t){return(t=ar(t))&&Es.test(t)?t.replace(As,"\\$&"):t},kebabCase:cl,lowerCase:pl,lowerFirst:hl,pad:function(t,e,n){t=ar(t);var r=(e=U(e))?vf(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return yf(bf(o),n)+t+yf(mf(o),n)},padEnd:function(t,e,n){t=ar(t);var r=(e=U(e))?vf(t):0;return e&&r>>0)?(t=ar(t))&&("string"==typeof e||null!=e&&!rl(e))&&!(e=E(e))&&Fr(t)?Dr(Jr(t),0,n):t.split(e,n):[]},startCase:xd,startsWith:function(t,e,n){return t=ar(t),n=null==n?0:Vo(U(n),0,t.length),e=E(e),t.slice(n,n+e.length)==e},template:function(t,e,n){var r=kd.imports._.templateSettings||kd;n&&Je(t,e,n)&&(e=void 0),t=ar(t),e=Bn({},e,r,Ed);var o,i,a=Bn({},e.imports,r.imports,Ed),u=kn(a),s=gc(a,u),c=0,l=e.interpolate||Bd,f="__p += '",d=RegExp((e.escape||Bd).source+"|"+l.source+"|"+(l===Md?Rd:Bd).source+"|"+(e.evaluate||Bd).source+"|$","g"),p=Wd.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(d,(function(e,n,r,a,u,s){return r||(r=a),f+=t.slice(c,s).replace(Dd,Id),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(i=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+e.length,e})),f+="';\n";var h=Wd.call(e,"variable")&&e.variable;if(h){if($d.test(h))throw new Error(Td)}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(Cd,""):f).replace(Pd,"$1").replace(Nd,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Tr((function(){return Function(u,p+"return "+f).apply(void 0,s)}));if(v.source=f,kr(v))throw v;return v},templateSettings:kd,toLower:function(t){return ar(t).toLowerCase()},toUpper:function(t){return ar(t).toUpperCase()},trim:function(t,e,n){if((t=ar(t))&&(n||void 0===e))return C(t);if(!t||!(e=E(e)))return t;var r=Jr(t),o=Jr(e);return Dr(r,Zd(r,o),Xd(r,o)+1).join("")},trimEnd:function(t,e,n){if((t=ar(t))&&(n||void 0===e))return t.slice(0,k(t)+1);if(!t||!(e=E(e)))return t;var r=Jr(t);return Dr(r,0,Xd(r,Jr(e))+1).join("")},trimStart:function(t,e,n){if((t=ar(t))&&(n||void 0===e))return t.replace(Yd,"");if(!t||!(e=E(e)))return t;var r=Jr(t);return Dr(r,Zd(r,Jr(e))).join("")},truncate:function(t,e){var n=Qd,r=Jd;if(P(e)){var o="separator"in e?e.separator:o;n="length"in e?U(e.length):n,r="omission"in e?E(e.omission):r}var i=(t=ar(t)).length;if(Fr(t)){var a=Jr(t);i=a.length}if(n>=i)return t;var u=n-vf(r);if(u<1)return r;var s=a?Dr(a,0,u).join(""):t.slice(0,u);if(void 0===o)return s+r;if(a&&(u+=s.length-u),rl(o)){if(t.slice(u).search(o)){var c,l=s;for(o.global||(o=RegExp(o.source,ar(tp.exec(o))+"g")),o.lastIndex=0;c=o.exec(l);)var f=c.index;s=s.slice(0,void 0===f?u:f)}}else if(t.indexOf(E(o),u)!=u){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+r},unescape:function(t){return(t=ar(t))&&rp.test(t)?t.replace(np,ep):t},upperCase:yp,upperFirst:eo,words:No},Wp={attempt:Tr,bindAll:$r,cond:function(t){var e=null==t?0:t.length,n=gu;return t=e?w(t,(function(t){if("function"!=typeof t[1])throw new TypeError(yu);return[n(t[0]),t[1]]})):[],Xe((function(n){for(var r=-1;++rUd)return[];var n=qd,r=Vd(t,qd);e=cs(e),t-=qd;for(var o=rn(r,e);++n * Build: `lodash modularize exports="es" -o ./` * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ var Vp,Gp=4294967295,Hp=Array.prototype,Kp=Object.prototype.hasOwnProperty,Xp=a?a.iterator:void 0,Zp=Math.max,Yp=Math.min,Qp=function(t){return function(e,n,r){if(null==r){var o=P(n),i=o&&kn(n),a=i&&i.length&&nc(n,i);(a?a.length:o)||(r=n,n=e,e=this)}return t(e,n,r)}}(Il);function Jp(t,e,n){if(n)switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2]);case 4:return t.call(e,n[0],n[1],n[2],n[3]);case 5:return t.call(e,n[0],n[1],n[2],n[3],n[4]);case 6:return t.call(e,n[0],n[1],n[2],n[3],n[4],n[5]);default:return t.apply(e,n)}return t.call(e)}function th(t){return"object"==typeof t&&t.then&&"function"==typeof t.then}function eh(t){return null!=t&&(t instanceof Promise||th(t))}function nh(...t){const e=[];t.forEach((t=>{Array.isArray(t)?e.push(...t):e.push(t)}));if(e.some((t=>eh(t)))){const t=e.map((t=>eh(t)?t:Promise.resolve(!1!==t)));return Promise.all(t).then((t=>t.reduce(((t,e)=>!1!==e&&t),!0)))}return e.every((t=>!1!==t))}Nt.after=kp.after,Nt.ary=kp.ary,Nt.assign=Rp.assign,Nt.assignIn=Rp.assignIn,Nt.assignInWith=Rp.assignInWith,Nt.assignWith=Rp.assignWith,Nt.at=Rp.at,Nt.before=kp.before,Nt.bind=kp.bind,Nt.bindAll=Wp.bindAll,Nt.bindKey=kp.bindKey,Nt.castArray=Tp.castArray,Nt.chain=Bp.chain,Nt.chunk=Sp.chunk,Nt.compact=Sp.compact,Nt.concat=Sp.concat,Nt.cond=Wp.cond,Nt.conforms=Wp.conforms,Nt.constant=Wp.constant,Nt.countBy=Ip.countBy,Nt.create=Rp.create,Nt.curry=kp.curry,Nt.curryRight=kp.curryRight,Nt.debounce=kp.debounce,Nt.defaults=Rp.defaults,Nt.defaultsDeep=Rp.defaultsDeep,Nt.defer=kp.defer,Nt.delay=kp.delay,Nt.difference=Sp.difference,Nt.differenceBy=Sp.differenceBy,Nt.differenceWith=Sp.differenceWith,Nt.drop=Sp.drop,Nt.dropRight=Sp.dropRight,Nt.dropRightWhile=Sp.dropRightWhile,Nt.dropWhile=Sp.dropWhile,Nt.fill=Sp.fill,Nt.filter=Ip.filter,Nt.flatMap=Ip.flatMap,Nt.flatMapDeep=Ip.flatMapDeep,Nt.flatMapDepth=Ip.flatMapDepth,Nt.flatten=Sp.flatten,Nt.flattenDeep=Sp.flattenDeep,Nt.flattenDepth=Sp.flattenDepth,Nt.flip=kp.flip,Nt.flow=Wp.flow,Nt.flowRight=Wp.flowRight,Nt.fromPairs=Sp.fromPairs,Nt.functions=Rp.functions,Nt.functionsIn=Rp.functionsIn,Nt.groupBy=Ip.groupBy,Nt.initial=Sp.initial,Nt.intersection=Sp.intersection,Nt.intersectionBy=Sp.intersectionBy,Nt.intersectionWith=Sp.intersectionWith,Nt.invert=Rp.invert,Nt.invertBy=Rp.invertBy,Nt.invokeMap=Ip.invokeMap,Nt.iteratee=Wp.iteratee,Nt.keyBy=Ip.keyBy,Nt.keys=kn,Nt.keysIn=Rp.keysIn,Nt.map=Ip.map,Nt.mapKeys=Rp.mapKeys,Nt.mapValues=Rp.mapValues,Nt.matches=Wp.matches,Nt.matchesProperty=Wp.matchesProperty,Nt.memoize=kp.memoize,Nt.merge=Rp.merge,Nt.mergeWith=Rp.mergeWith,Nt.method=Wp.method,Nt.methodOf=Wp.methodOf,Nt.mixin=Qp,Nt.negate=Tl,Nt.nthArg=Wp.nthArg,Nt.omit=Rp.omit,Nt.omitBy=Rp.omitBy,Nt.once=kp.once,Nt.orderBy=Ip.orderBy,Nt.over=Wp.over,Nt.overArgs=kp.overArgs,Nt.overEvery=Wp.overEvery,Nt.overSome=Wp.overSome,Nt.partial=kp.partial,Nt.partialRight=kp.partialRight,Nt.partition=Ip.partition,Nt.pick=Rp.pick,Nt.pickBy=Rp.pickBy,Nt.property=Wp.property,Nt.propertyOf=Wp.propertyOf,Nt.pull=Sp.pull,Nt.pullAll=Sp.pullAll,Nt.pullAllBy=Sp.pullAllBy,Nt.pullAllWith=Sp.pullAllWith,Nt.pullAt=Sp.pullAt,Nt.range=Wp.range,Nt.rangeRight=Wp.rangeRight,Nt.rearg=kp.rearg,Nt.reject=Ip.reject,Nt.remove=Sp.remove,Nt.rest=kp.rest,Nt.reverse=Sp.reverse,Nt.sampleSize=Ip.sampleSize,Nt.set=Rp.set,Nt.setWith=Rp.setWith,Nt.shuffle=Ip.shuffle,Nt.slice=Sp.slice,Nt.sortBy=Ip.sortBy,Nt.sortedUniq=Sp.sortedUniq,Nt.sortedUniqBy=Sp.sortedUniqBy,Nt.split=Dp.split,Nt.spread=kp.spread,Nt.tail=Sp.tail,Nt.take=Sp.take,Nt.takeRight=Sp.takeRight,Nt.takeRightWhile=Sp.takeRightWhile,Nt.takeWhile=Sp.takeWhile,Nt.tap=Bp.tap,Nt.throttle=kp.throttle,Nt.thru=zd,Nt.toArray=Tp.toArray,Nt.toPairs=Rp.toPairs,Nt.toPairsIn=Rp.toPairsIn,Nt.toPath=Wp.toPath,Nt.toPlainObject=Tp.toPlainObject,Nt.transform=Rp.transform,Nt.unary=kp.unary,Nt.union=Sp.union,Nt.unionBy=Sp.unionBy,Nt.unionWith=Sp.unionWith,Nt.uniq=Sp.uniq,Nt.uniqBy=Sp.uniqBy,Nt.uniqWith=Sp.uniqWith,Nt.unset=Rp.unset,Nt.unzip=Sp.unzip,Nt.unzipWith=Sp.unzipWith,Nt.update=Rp.update,Nt.updateWith=Rp.updateWith,Nt.values=Rp.values,Nt.valuesIn=Rp.valuesIn,Nt.without=Sp.without,Nt.words=Dp.words,Nt.wrap=kp.wrap,Nt.xor=Sp.xor,Nt.xorBy=Sp.xorBy,Nt.xorWith=Sp.xorWith,Nt.zip=Sp.zip,Nt.zipObject=Sp.zipObject,Nt.zipObjectDeep=Sp.zipObjectDeep,Nt.zipWith=Sp.zipWith,Nt.entries=Rp.toPairs,Nt.entriesIn=Rp.toPairsIn,Nt.extend=Rp.assignIn,Nt.extendWith=Rp.assignInWith,Qp(Nt,Nt),Nt.add=Cp.add,Nt.attempt=Wp.attempt,Nt.camelCase=Dp.camelCase,Nt.capitalize=Dp.capitalize,Nt.ceil=Cp.ceil,Nt.clamp=Pp,Nt.clone=Tp.clone,Nt.cloneDeep=Tp.cloneDeep,Nt.cloneDeepWith=Tp.cloneDeepWith,Nt.cloneWith=Tp.cloneWith,Nt.conformsTo=Tp.conformsTo,Nt.deburr=Dp.deburr,Nt.defaultTo=Wp.defaultTo,Nt.divide=Cp.divide,Nt.endsWith=Dp.endsWith,Nt.eq=Tp.eq,Nt.escape=Dp.escape,Nt.escapeRegExp=Dp.escapeRegExp,Nt.every=Ip.every,Nt.find=Ip.find,Nt.findIndex=Sp.findIndex,Nt.findKey=Rp.findKey,Nt.findLast=Ip.findLast,Nt.findLastIndex=Sp.findLastIndex,Nt.findLastKey=Rp.findLastKey,Nt.floor=Cp.floor,Nt.forEach=Ip.forEach,Nt.forEachRight=Ip.forEachRight,Nt.forIn=Rp.forIn,Nt.forInRight=Rp.forInRight,Nt.forOwn=Rp.forOwn,Nt.forOwnRight=Rp.forOwnRight,Nt.get=Rp.get,Nt.gt=Tp.gt,Nt.gte=Tp.gte,Nt.has=Rp.has,Nt.hasIn=Rp.hasIn,Nt.head=Sp.head,Nt.identity=V,Nt.includes=Ip.includes,Nt.indexOf=Sp.indexOf,Nt.inRange=Np,Nt.invoke=Rp.invoke,Nt.isArguments=Tp.isArguments,Nt.isArray=x,Nt.isArrayBuffer=Tp.isArrayBuffer,Nt.isArrayLike=Tp.isArrayLike,Nt.isArrayLikeObject=Tp.isArrayLikeObject,Nt.isBoolean=Tp.isBoolean,Nt.isBuffer=Tp.isBuffer,Nt.isDate=Tp.isDate,Nt.isElement=Tp.isElement,Nt.isEmpty=Tp.isEmpty,Nt.isEqual=Tp.isEqual,Nt.isEqualWith=Tp.isEqualWith,Nt.isError=Tp.isError,Nt.isFinite=Tp.isFinite,Nt.isFunction=Tp.isFunction,Nt.isInteger=Tp.isInteger,Nt.isLength=Tp.isLength,Nt.isMap=Tp.isMap,Nt.isMatch=Tp.isMatch,Nt.isMatchWith=Tp.isMatchWith,Nt.isNaN=Tp.isNaN,Nt.isNative=Tp.isNative,Nt.isNil=Tp.isNil,Nt.isNull=Tp.isNull,Nt.isNumber=Tp.isNumber,Nt.isObject=P,Nt.isObjectLike=Tp.isObjectLike,Nt.isPlainObject=Tp.isPlainObject,Nt.isRegExp=Tp.isRegExp,Nt.isSafeInteger=Tp.isSafeInteger,Nt.isSet=Tp.isSet,Nt.isString=Tp.isString,Nt.isSymbol=Tp.isSymbol,Nt.isTypedArray=Tp.isTypedArray,Nt.isUndefined=Tp.isUndefined,Nt.isWeakMap=Tp.isWeakMap,Nt.isWeakSet=Tp.isWeakSet,Nt.join=Sp.join,Nt.kebabCase=Dp.kebabCase,Nt.last=os,Nt.lastIndexOf=Sp.lastIndexOf,Nt.lowerCase=Dp.lowerCase,Nt.lowerFirst=Dp.lowerFirst,Nt.lt=Tp.lt,Nt.lte=Tp.lte,Nt.max=Cp.max,Nt.maxBy=Cp.maxBy,Nt.mean=Cp.mean,Nt.meanBy=Cp.meanBy,Nt.min=Cp.min,Nt.minBy=Cp.minBy,Nt.stubArray=Wp.stubArray,Nt.stubFalse=Wp.stubFalse,Nt.stubObject=Wp.stubObject,Nt.stubString=Wp.stubString,Nt.stubTrue=Wp.stubTrue,Nt.multiply=Cp.multiply,Nt.nth=Sp.nth,Nt.noop=Wp.noop,Nt.now=Mp.now,Nt.pad=Dp.pad,Nt.padEnd=Dp.padEnd,Nt.padStart=Dp.padStart,Nt.parseInt=Dp.parseInt,Nt.random=$p,Nt.reduce=Ip.reduce,Nt.reduceRight=Ip.reduceRight,Nt.repeat=Dp.repeat,Nt.replace=Dp.replace,Nt.result=Rp.result,Nt.round=Cp.round,Nt.sample=Ip.sample,Nt.size=Ip.size,Nt.snakeCase=Dp.snakeCase,Nt.some=Ip.some,Nt.sortedIndex=Sp.sortedIndex,Nt.sortedIndexBy=Sp.sortedIndexBy,Nt.sortedIndexOf=Sp.sortedIndexOf,Nt.sortedLastIndex=Sp.sortedLastIndex,Nt.sortedLastIndexBy=Sp.sortedLastIndexBy,Nt.sortedLastIndexOf=Sp.sortedLastIndexOf,Nt.startCase=Dp.startCase,Nt.startsWith=Dp.startsWith,Nt.subtract=Cp.subtract,Nt.sum=Cp.sum,Nt.sumBy=Cp.sumBy,Nt.template=Dp.template,Nt.times=Wp.times,Nt.toFinite=Tp.toFinite,Nt.toInteger=U,Nt.toLength=Tp.toLength,Nt.toLower=Dp.toLower,Nt.toNumber=Tp.toNumber,Nt.toSafeInteger=Tp.toSafeInteger,Nt.toString=Tp.toString,Nt.toUpper=Dp.toUpper,Nt.trim=Dp.trim,Nt.trimEnd=Dp.trimEnd,Nt.trimStart=Dp.trimStart,Nt.truncate=Dp.truncate,Nt.unescape=Dp.unescape,Nt.uniqueId=Wp.uniqueId,Nt.upperCase=Dp.upperCase,Nt.upperFirst=Dp.upperFirst,Nt.each=Ip.forEach,Nt.eachRight=Ip.forEachRight,Nt.first=Sp.head,Qp(Nt,(Vp={},ju(Nt,(function(t,e){Kp.call(Nt.prototype,e)||(Vp[e]=t)})),Vp),{chain:!1}),Nt.VERSION="4.17.21",(Nt.templateSettings=Dp.templateSettings).imports._=Nt,Kt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Nt[t].placeholder=Nt})),Kt(["drop","take"],(function(t,e){Ot.prototype[t]=function(n){n=void 0===n?1:Zp(U(n),0);var r=this.__filtered__&&!e?new Ot(this):this.clone();return r.__filtered__?r.__takeCount__=Yp(n,r.__takeCount__):r.__views__.push({size:Yp(n,Gp),type:t+(r.__dir__<0?"Right":"")}),r},Ot.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Kt(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Ot.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:gu(t),type:n}),e.__filtered__=e.__filtered__||r,e}})),Kt(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Ot.prototype[t]=function(){return this[n](1).value()[0]}})),Kt(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Ot.prototype[t]=function(){return this.__filtered__?new Ot(this):this[n](1)}})),Ot.prototype.compact=function(){return this.filter(V)},Ot.prototype.find=function(t){return this.filter(t).head()},Ot.prototype.findLast=function(t){return this.reverse().find(t)},Ot.prototype.invokeMap=Xe((function(t,e){return"function"==typeof t?new Ot(this):this.map((function(n){return Nc(n,t,e)}))})),Ot.prototype.reject=function(t){return this.filter(Tl(gu(t)))},Ot.prototype.slice=function(t,e){t=U(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Ot(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=U(e))<0?n.dropRight(-e):n.take(e-t)),n)},Ot.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ot.prototype.toArray=function(){return this.take(Gp)},ju(Ot.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Nt[r?"take"+("last"==e?"Right":""):e],i=r||/^find/.test(e);o&&(Nt.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,u=e instanceof Ot,s=a[0],c=u||x(e),l=function(t){var e=o.apply(Nt,pr([t],a));return r&&f?e[0]:e};c&&n&&"function"==typeof s&&1!=s.length&&(u=c=!1);var f=this.__chain__,d=!!this.__actions__.length,p=i&&!f,h=u&&!d;if(!i&&c){e=h?e:new Ot(this);var v=t.apply(e,a);return v.__actions__.push({func:zd,args:[l],thisArg:void 0}),new kt(v,f)}return p&&h?t.apply(this,a):(v=this.thru(l),p?r?v.value()[0]:v.value():v)})})),Kt(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Hp[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Nt.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(x(o)?o:[],t)}return this[n]((function(n){return e.apply(x(n)?n:[],t)}))}})),ju(Ot.prototype,(function(t,e){var n=Nt[e];if(n){var r=n.name+"";Kp.call(St,r)||(St[r]=[]),St[r].push({name:e,func:n})}})),St[we(void 0,2).name]=[{name:"wrapper",func:void 0}],Ot.prototype.clone=function(){var t=new Ot(this.__wrapped__);return t.__actions__=Tt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Tt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Tt(this.__views__),t},Ot.prototype.reverse=function(){if(this.__filtered__){var t=new Ot(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ot.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=x(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r(this.off(t,r),oh([e,n],o));return this.on(t,r,this)}off(t,e,n){if(!(t||e||n))return this.listeners={},this;const r=this.listeners;return(t?[t]:Object.keys(r)).forEach((t=>{const o=r[t];if(o)if(e||n)for(let t=o.length-2;t>=0;t-=2)e&&o[t]!==e||n&&o[t+1]!==n||o.splice(t,2);else delete r[t]})),this}trigger(t,...e){let n=!0;if("*"!==t){const r=this.listeners[t];null!=r&&(n=oh([...r],e))}const r=this.listeners["*"];return null!=r?nh([n,oh([...r],[t,...e])]):n}emit(t,...e){return this.trigger(t,...e)}}function ah(t,...e){e.forEach((e=>{Object.getOwnPropertyNames(e.prototype).forEach((n=>{"constructor"!==n&&Object.defineProperty(t.prototype,n,Object.getOwnPropertyDescriptor(e.prototype,n))}))}))}const uh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])};function sh(t,e){function n(){this.constructor=t}uh(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}const ch=/^\s*class\s+/.test(`${class{}}`)||/^\s*class\s*\{/.test(`${class{}}`);function lh(t,e){return null!=t?t:e}function fh(t){return"__proto__"===t}function dh(t,e,n="/"){let r;const o=Array.isArray(e)?e:e.split(n);if(o.length)for(r=t;o.length;){const t=o.shift();if(Object(r)!==r||!t||!(t in r))return;r=r[t]}return r}var ph=Object.freeze({__proto__:null,applyMixins:ah,clone:va,cloneDeep:ma,createClass:function(t,e){let n;return ch?n=class extends e{}:(n=function(){return e.apply(this,arguments)},sh(n,e)),Object.defineProperty(n,"name",{value:t}),n},defaults:Lu,defaultsDeep:Xu,ensure:lh,flatten:function t(e,n="/",r){const o={};Object.keys(e).forEach((i=>{const a=e[i];let u="object"==typeof a||Array.isArray(a);if(u&&r&&r(a)&&(u=!1),u){const e=t(a,n,r);Object.keys(e).forEach((t=>{o[i+n+t]=e[t]}))}else o[i]=a}));for(const t in e)Object.prototype.hasOwnProperty.call(e,t);return o},getBoolean:function(t,e,n){const r=null!=t?t[e]:null;return null==r?n:!!r},getByPath:dh,getNumber:function(t,e,n){let r=null!=t?t[e]:null;return null==r?n:(r=+r,Number.isNaN(r)||!Number.isFinite(r)?n:r)},getValue:function(t,e,n){const r=null!=t?t[e]:null;return void 0!==n?lh(r,n):r},has:fc,inherit:sh,isEmpty:Hc,isEqual:Kc,isMaliciousProp:fh,isObject:P,isPlainObject:Sr,merge:Al,pick:Af,setByPath:function(t,e,n,r="/"){const o=Array.isArray(e)?e:e.split(r),i=o.pop();if(i&&!fh(i)){let e=t;o.forEach((t=>{fh(t)||(null==e[t]&&(e[t]={}),e=e[t])})),e[i]=n}return t},unsetByPath:function(t,e,n="/"){const r=Array.isArray(e)?e.slice():e.split(n),o=r.pop();if(o)if(r.length>0){const e=dh(t,r);e&&delete e[o]}else delete t[o];return t}});class hh extends ih{dispose(){this.off()}}!function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);i>3&&a&&Object.defineProperty(e,n,a)}([e.dispose()],hh.prototype,"dispose",null),function(t){t.dispose=e.dispose}(hh||(hh={})),ah(hh,e);var vh=Object.freeze({__proto__:null,difference:rs,groupBy:oc,max:wl,sortBy:cd,sortedIndex:gd,sortedIndexBy:yd,union:up,uniq:lp});const gh=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},yh=gh((t=>t.replace(/\B([A-Z])/g,"-$1").toLowerCase())),mh=gh((t=>xd(Bo(t)).replace(/ /g,""))),bh=gh((t=>yp(t).replace(/ /g,"_"))),_h=gh((t=>pl(t).replace(/ /g,"."))),wh=gh((t=>pl(t).replace(/ /g,"/"))),xh=gh((t=>eo(pl(t)))),jh=gh((t=>xd(Bo(t))));function Oh(){let t="";const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";for(let n=0,r=e.length;nn?a-n:1,c=e.length>n+a?n+a:e.length;o[0]=a;let l=a;for(let t=1;tn)return;const f=r;r=o,o=f}const a=r[e.length];return a>n?void 0:a}var Eh=Object.freeze({__proto__:null,camelCase:Bo,constantCase:bh,dotCase:_h,getSpellingSuggestion:function(t,e,n){const r=Math.min(2,Math.floor(.34*t.length));let o,i=Math.floor(.4*t.length)+1,a=!1;const u=t.toLowerCase();for(const s of e){const e=n(s);if(void 0!==e&&Math.abs(e.length-u.length)<=r){const n=e.toLowerCase();if(n===u){if(e===t)continue;return s}if(a)continue;if(e.length<3)continue;const r=Ah(u,n,i-1);if(void 0===r)continue;r<3?(a=!0,o=s):(i=r,o=s)}}return o},hashcode:function(t){let e=2166136261,n=!1,r=t;for(let t=0,o=r.length;t127&&!n&&(r=unescape(encodeURIComponent(r)),o=r.charCodeAt(t),n=!0),e^=o,e+=(e<<1)+(e<<4)+(e<<7)+(e<<8)+(e<<24)}return e>>>0},kebabCase:yh,lowerFirst:hl,pascalCase:mh,pathCase:wh,sentenceCase:xh,titleCase:jh,uniqueId:dp,upperFirst:eo,uuid:Oh});function Sh(t){return"string"==typeof t&&"%"===t.slice(-1)}var Ih=Object.freeze({__proto__:null,clamp:Go,isNumber:Qc,isPercentage:Sh,mod:function(t,e){return(t%e+e)%e},normalizePercentage:function(t,e){if(null==t)return 0;let n;if("string"==typeof t){if(n=parseFloat(t),Sh(t)&&(n/=100,Number.isFinite(n)))return n*e}else n=t;return Number.isFinite(n)?n>0&&n<1?n*e:n:0},normalizeSides:function(t){if("object"==typeof t){let e=0,n=0,r=0,o=0;return null!=t.vertical&&Number.isFinite(t.vertical)&&(n=o=t.vertical),null!=t.horizontal&&Number.isFinite(t.horizontal)&&(r=e=t.horizontal),null!=t.left&&Number.isFinite(t.left)&&(e=t.left),null!=t.top&&Number.isFinite(t.top)&&(n=t.top),null!=t.right&&Number.isFinite(t.right)&&(r=t.right),null!=t.bottom&&Number.isFinite(t.bottom)&&(o=t.bottom),{top:n,right:r,bottom:o,left:e}}let e=0;return null!=t&&Number.isFinite(t)&&(e=t),{top:e,right:e,bottom:e,left:e}},parseCssNumeric:function(t,e){const n=parseFloat(t);if(Number.isNaN(n))return null;let r;if(null==e)r="[A-Za-z]*";else if(Array.isArray(e)){if(0===e.length)return null;r=e.join("|")}else"string"==typeof e&&(r=e);const o=function(e){const n=new RegExp(`(?:\\d+(?:\\.\\d+)*)(${e})$`).exec(t);return n?n[1]:null}(r);return null===o?null:{unit:o,value:n}},random:function(t,e){if(null==e)e=null==t?1:t,t=0;else if(e=0,kh=!!t.match(/(iPad|iPhone|iPod)/g),Th=t.indexOf("Windows")>=0,Ch=t.indexOf("MSIE")>=0,Ph=!!t.match(/Trident\/7\./),Nh=!!t.match(/Edge\//),$h=t.indexOf("Mozilla/")>=0&&t.indexOf("MSIE")<0&&t.indexOf("Edge/")<0,Bh=t.indexOf("Chrome/")>=0&&t.indexOf("Edge/")<0,Dh=t.indexOf("Opera/")>=0||t.indexOf("OPR/")>=0,Wh=t.indexOf("Firefox/")>=0,Fh=t.indexOf("AppleWebKit/")>=0&&t.indexOf("Chrome/")<0&&t.indexOf("Edge/")<0,"object"==typeof document&&(qh=!document.createElementNS||"[object SVGForeignObjectElement]"!=`${document.createElementNS("http://www.w3.org/2000/svg","foreignObject")}`||t.indexOf("Opera/")>=0)}if("object"==typeof window&&(Rh=null!=window.chrome&&null!=window.chrome.app&&null!=window.chrome.app.runtime,zh=null!=window.PointerEvent&&!Mh),"object"==typeof document){Lh="ontouchstart"in document.documentElement;try{const t=Object.defineProperty({},"passive",{get(){Uh=!0}}),e=document.createElement("div");e.addEventListener&&e.addEventListener("click",(()=>{}),t)}catch(t){}}var Vh;t.Platform=void 0,(Vh=t.Platform||(t.Platform={})).IS_MAC=Mh,Vh.IS_IOS=kh,Vh.IS_WINDOWS=Th,Vh.IS_IE=Ch,Vh.IS_IE11=Ph,Vh.IS_EDGE=Nh,Vh.IS_NETSCAPE=$h,Vh.IS_CHROME_APP=Rh,Vh.IS_CHROME=Bh,Vh.IS_OPERA=Dh,Vh.IS_FIREFOX=Wh,Vh.IS_SAFARI=Fh,Vh.SUPPORT_TOUCH=Lh,Vh.SUPPORT_POINTER=zh,Vh.SUPPORT_PASSIVE=Uh,Vh.NO_FOREIGNOBJECT=qh,Vh.SUPPORT_FOREIGNOBJECT=!Vh.NO_FOREIGNOBJECT,function(t){function e(){const t=window.module;return null!=t&&null!=t.hot&&null!=t.hot.status?t.hot.status():"unkonwn"}t.getHMRStatus=e,t.isApplyingHMR=function(){return"apply"===e()};const n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};t.isEventSupported=function(t){const e=document.createElement(n[t]||"div"),r=`on${t}`;let o=r in e;return o||(e.setAttribute(r,"return;"),o="function"==typeof e[r]),o}}(t.Platform||(t.Platform={}));const Gh=/[\t\r\n\f]/g,Hh=/\S+/g,Kh=t=>` ${t} `;function Xh(t){return t&&t.getAttribute&&t.getAttribute("class")||""}function Zh(t,e){if(null==t||null==e)return!1;const n=Kh(Xh(t)),r=Kh(e);return 1===t.nodeType&&n.replace(Gh," ").includes(r)}function Yh(t,e){if(null!=t&&null!=e){if("function"==typeof e)return Yh(t,e(Xh(t)));if("string"==typeof e&&1===t.nodeType){const n=e.match(Hh)||[],r=Kh(Xh(t)).replace(Gh," ");let o=n.reduce(((t,e)=>t.indexOf(Kh(e))<0?`${t}${e} `:t),r);o=o.trim(),r!==o&&t.setAttribute("class",o)}}}function Qh(t,e){if(null!=t){if("function"==typeof e)return Qh(t,e(Xh(t)));if((!e||"string"==typeof e)&&1===t.nodeType){const n=(e||"").match(Hh)||[],r=Kh(Xh(t)).replace(Gh," ");let o=n.reduce(((t,e)=>{const n=Kh(e);return t.indexOf(n)>-1?t.replace(n," "):t}),r);o=e?o.trim():"",r!==o&&t.setAttribute("class",o)}}}function Jh(t,e,n){if(null!=t&&null!=e)if(null==n||"string"!=typeof e){if("function"==typeof e)return Jh(t,e(Xh(t),n),n);if("string"==typeof e){(e.match(Hh)||[]).forEach((e=>{Zh(t,e)?Qh(t,e):Yh(t,e)}))}}else n?Yh(t,e):Qh(t,e)}let tv=0;function ev(){return tv+=1,`v${tv}`}function nv(t){return null!=t&&("function"==typeof t.getScreenCTM&&t instanceof SVGElement)}const rv={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml"},ov="1.1";function iv(t,e=rv.xhtml,n=document){return n.createElementNS(e,t)}function av(t,e=document){return iv(t,rv.svg,e)}function uv(t){if(t){const e=`${t}`,{documentElement:n}=sv(e,{async:!1});return n}const e=document.createElementNS(rv.svg,"svg");return e.setAttributeNS(rv.xmlns,"xmlns:xlink",rv.xlink),e.setAttribute("version",ov),e}function sv(t,e={}){let n;try{const r=new DOMParser;if(null!=e.async){r.async=e.async}n=r.parseFromString(t,e.mimeType||"text/xml")}catch(t){n=void 0}if(!n||n.getElementsByTagName("parsererror").length)throw new Error(`Invalid XML: ${t}`);return n}function cv(t,e=!0){const n=t.nodeName;return e?n.toLowerCase():n.toUpperCase()}function lv(t){let e=0,n=t.previousSibling;for(;n;)1===n.nodeType&&(e+=1),n=n.previousSibling;return e}function fv(t,e){return t.querySelectorAll(e)}function dv(t,e){return t.querySelector(e)}function pv(t,e,n){const r=t.ownerSVGElement;let o=t.parentNode;for(;o&&o!==n&&o!==r;){if(Zh(o,e))return o;o=o.parentNode}return null}function hv(t,e){const n=e&&e.parentNode;return t===n||!!(n&&1===n.nodeType&&16&t.compareDocumentPosition(n))}function vv(t){if(t){(Array.isArray(t)?t:[t]).forEach((t=>{t.parentNode&&t.parentNode.removeChild(t)}))}}function gv(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function yv(t,e){(Array.isArray(e)?e:[e]).forEach((e=>{null!=e&&t.appendChild(e)}))}function mv(t,e){const n=t.firstChild;return n?bv(n,e):yv(t,e)}function bv(t,e){const n=t.parentNode;if(n){(Array.isArray(e)?e:[e]).forEach((e=>{null!=e&&n.insertBefore(e,t)}))}}function _v(t,e){null!=e&&e.appendChild(t)}function wv(t){return!!t&&1===t.nodeType}const xv=["viewBox","attributeName","attributeType","repeatCount","textLength","lengthAdjust","gradientUnits"];function jv(t,e){return t.getAttribute(e)}function Ov(t,e){const n=Iv(e);n.ns?t.hasAttributeNS(n.ns,n.local)&&t.removeAttributeNS(n.ns,n.local):t.hasAttribute(e)&&t.removeAttribute(e)}function Av(t,e,n){if(null==n)return Ov(t,e);const r=Iv(e);r.ns&&"string"==typeof n?t.setAttributeNS(r.ns,e,n):"id"===e?t.id=`${n}`:t.setAttribute(e,`${n}`)}function Ev(t,e){Object.keys(e).forEach((n=>{Av(t,n,e[n])}))}function Sv(t,e,n){if(null==e){const e=t.attributes,n={};for(let t=0;t{const n=t.trim();if(n){const t=n.split("=");t.length&&(e[t[0].trim()]=t[1]?t[1].trim():"")}})),e}function kv(t,e){return Object.keys(e).forEach((n=>{if("class"===n)t[n]=t[n]?`${t[n]} ${e[n]}`:e[n];else if("style"===n){const r="object"==typeof t[n],o="object"==typeof e[n];let i,a;r&&o?(i=t[n],a=e[n]):r?(i=t[n],a=Mv(e[n])):o?(i=Mv(t[n]),a=e[n]):(i=Mv(t[n]),a=Mv(e[n])),t[n]=kv(i,a)}else t[n]=e[n]})),t}function Tv(t,e,n={}){const r=n.offset||0,o=[],i=[];let a,u,s=null;for(let c=0;c=s&&ct.starte>=t.start&&et.start&&n<=t.end||t.start>=e&&t.end{t.start=e?t.end+=n:t.start>=e&&(t.start+=n,t.end+=n)})),t}});let Nv;t.DataUri=void 0,function(t){function e(t){const e="data:";return t.substr(0,e.length)===e}function n(t){let e=t.replace(/\s/g,"");e=decodeURIComponent(e);const n=e.indexOf(","),r=e.slice(0,n),o=r.split(":")[1].split(";")[0],i=e.slice(n+1);let a;a=r.indexOf("base64")>=0?atob(i):unescape(encodeURIComponent(i));const u=new Uint8Array(a.length);for(let t=0;tn(null,t)));const r=()=>{n(new Error(`Failed to load image: ${t}`))},o=window.FileReader?t=>{if(200===t.status){const e=new FileReader;e.onload=t=>{const e=t.target.result;n(null,e)},e.onerror=r,e.readAsDataURL(t.response)}else r()}:e=>{if(200===e.status){let r=t.split(".").pop()||"png";"svg"===r&&(r="svg+xml");const o=`data:image/${r};base64,`,i=new Uint8Array(e.response),a=o+btoa((t=>{const e=[];for(let n=0;no(i))),i.send()},t.dataUriToBlob=n,t.downloadBlob=r,t.downloadDataUri=function(t,e){r(n(t),e)},t.svgToDataUrl=function(t,e={}){let n=null;const r=e=>(null==n&&(n=function(t){const e=t.match(/]*viewBox\s*=\s*(["']?)(.+?)\1[^>]*>/i);return e&&e[2]?e[2].replace(/\s+/," ").split(" "):null}(t)),null!=n?o(n[e]):null),i=e=>{const n=t.match(e);return n&&n[2]?o(n[2]):null};let a=e.width;if(null==a&&(a=i(/]*width\s*=\s*(["']?)(.+?)\1[^>]*>/i)),null==a&&(a=r(2)),null==a)throw new Error("Can not parse width from svg string");let u=e.height;if(null==u&&(u=i(/]*height\s*=\s*(["']?)(.+?)\1[^>]*>/i)),null==u&&(u=r(3)),null==u)throw new Error("Can not parse height from svg string");return`data:image/svg+xml,${encodeURIComponent(t).replace(/'/g,"%27").replace(/"/g,"%22")}`}}(t.DataUri||(t.DataUri={}));const $v={px:t=>t,mm:t=>Nv*t,cm:t=>Nv*t*10,in:t=>Nv*t*25.4,pt:t=>Nv*(25.4*t/72),pc:t=>Nv*(25.4*t/6)};t.Unit=void 0,function(t){function e(t,e,n){const r=document.createElement("div"),o=r.style;o.display="inline-block",o.position="absolute",o.left="-15000px",o.top="-15000px",o.width=t+(n||"px"),o.height=e+(n||"px"),document.body.appendChild(r);const i=r.getBoundingClientRect(),a={width:i.width||0,height:i.height||0};return document.body.removeChild(r),a}t.measure=e,t.toPx=function(t,n){null==Nv&&(Nv=e("1","1","mm").width);const r=n?$v[n]:null;return r?r(t):t}}(t.Unit||(t.Unit={}));const Rv=/-(.)/g;const Bv={},Dv=["webkit","ms","moz","o"],Wv="undefined"!=typeof document?document.createElement("div").style:{};function Fv(t){const e=t.replace(Rv,((t,e)=>e.toUpperCase()));if(null==Bv[e]){const t=e.charAt(0).toUpperCase()+e.slice(1);Bv[e]=e in Wv?e:function(t){for(let e=0;eu&&(u=l)}else r&&i===c&&(s+=r),a=document.createTextNode(s||" "),o&&o>u&&(u=o);t.appendChild(a)}return u&&(s.maxFontSize=u),i?s.lineHeight=i:u&&(s.lineHeight=1.2*u),s}!function(t){function e(e){if(null==e)return!1;if(e instanceof t)return!0;const n=e[Symbol.toStringTag],r=e;return(null==n||n===t.toStringTag)&&r.node instanceof SVGElement&&"function"==typeof r.sample&&"function"==typeof r.toPath}function n(e,n,r){return new t(e,n,r)}function r(t){return e(t)?t.node:t}t.toStringTag=`X6.${t.name}`,t.isVector=e,t.create=n,t.createVectors=function(t){if("<"===t[0]){const e=uv(t),r=[];for(let t=0,o=e.childNodes.length;tr(t))):[r(t)]}}(Yv||(Yv={}));const Jv=/em$/;function tg(t,e){const n=parseFloat(t);return Jv.test(t)?n*e:n}function eg(t,e,n={}){e=Cv(e);const r=n.eol;let o=n.textPath;const i=n.textVerticalAnchor,a="middle"===i||"bottom"===i||"top"===i;let u=n.x;void 0===u&&(u=t.getAttribute("x")||0);const s=n.includeAnnotationIndices;let c=n.annotations;c&&!Array.isArray(c)&&(c=[c]);const l=n.lineHeight,f="auto"===l,d=f?"1.5em":l||"1em";let p=!0;const h=t.childNodes;if(1===h.length){const t=h[0];t&&"TITLE"===t.tagName.toUpperCase()&&(p=!1)}p&&gv(t),Sv(t,{"xml:space":"preserve",display:e||n.displayEmpty?null:"none"});const v=Sv(t,"font-size");let g,y,m=parseFloat(v);m||(m=16,!a&&!c||v||Sv(t,"font-size",`${m}`)),o?("string"==typeof o&&(o={d:o}),g=function(t,e){const n=Yv.create(e),r=Yv.create("textPath"),o=t.d;if(o&&void 0===t["xlink:href"]){const t=Yv.create("path").attr("d",o).appendTo(n.defs());r.attr("xlink:href",`#${t.id}`)}return"object"==typeof t&&r.attr(t),r.node}(o,t)):g=document.createDocumentFragment();let b,_=0;const w=e.split("\n"),x=[],j=w.length-1;for(let t=0;t<=j;t+=1){y=d;let e="v-line";const n=av("tspan");let i,a=w[t];if(a)if(c){i=Qv(n,Tv(a,c,{offset:-_,includeAnnotationIndices:s}),{eol:t!==j&&r,baseSize:m,lineHeight:f?null:d,includeAnnotationIndices:s});const e=i.lineHeight;e&&f&&0!==t&&(y=e),0===t&&(b=.8*i.maxFontSize)}else r&&t!==j&&(a+=r),n.textContent=a;else{n.textContent="-",e+=" v-empty-line";const t=n.style;t.fillOpacity=0,t.strokeOpacity=0,c&&(i={})}i&&x.push(i),t>0&&n.setAttribute("dy",y),(t>0||o)&&n.setAttribute("x",u),n.className.baseVal=e,g.appendChild(n),_+=a.length+1}if(a)if(c)y=function(t,e,n,r){if(!Array.isArray(e))return 0;const o=e.length;if(!o)return 0;let i=e[0];const a=tg(i.maxFontSize,n)||n;let u=0;const s=tg(r,n);for(let t=1;t0?(t=parseFloat(d)||1,t*=j,Jv.test(d)||(t/=m)):t=0,i){case"middle":y=.3-t/2+"em";break;case"bottom":y=-t-.3+"em"}}else 0===i?y="0em":i?y=i:(y=0,null==t.getAttribute("y")&&t.setAttribute("y",`${b||"0.8em"}`));g.firstChild.setAttribute("dy",y),t.appendChild(g)}function ng(t,e={}){const n=document.createElement("canvas").getContext("2d");if(!t)return{width:0};const r=[],o=e["font-size"]?`${parseFloat(e["font-size"])}px`:"14px";return r.push(e["font-style"]||"normal"),r.push(e["font-variant"]||"normal"),r.push(e["font-weight"]||400),r.push(o),r.push(e["font-family"]||"sans-serif"),n.font=r.join(" "),n.measureText(t)}function rg(t,e,n,r={}){if(e>=n)return[t,""];const o=t.length,i={};let a=Math.round(e/n*o-1);for(a<0&&(a=0);a>=0&&ae)a-=1;else{if(!(s<=e))break;a+=1}}return[t.slice(0,a),t.slice(a)]}const og=.551784;function ig(t,e,n=NaN){const r=t.getAttribute(e);if(null==r)return n;const o=parseFloat(r);return Number.isNaN(o)?n:o}function ag(t,e=1){const n=t.getTotalLength(),r=[];let o,i=0;for(;i`${t.x} ${t.y}`)).join(" L")}`}function fg(t){const e=[],n=t.points;if(n)for(let t=0,r=n.numberOfItems;t=0){const o=Sg(jg(t));e=[o.translateX,o.translateY],n=[o.rotation],r=[o.scaleX,o.scaleY];const i=[];0===e[0]&&0===e[1]||i.push(`translate(${e.join(",")})`),1===r[0]&&1===r[1]||i.push(`scale(${r.join(",")})`),0!==n[0]&&i.push(`rotate(${n[0]})`),t=i.join(" ")}else{const i=t.match(/translate\((.*?)\)/);i&&(e=i[1].split(o));const a=t.match(/rotate\((.*?)\)/);a&&(n=a[1].split(o));const u=t.match(/scale\((.*?)\)/);u&&(r=u[1].split(o))}}const o=r&&r[0]?parseFloat(r[0]):1;return{raw:t||"",translation:{tx:e&&e[0]?parseInt(e[0],10):0,ty:e&&e[1]?parseInt(e[1],10):0},rotation:{angle:n&&n[0]?parseInt(n[0],10):0,cx:n&&n[1]?parseInt(n[1],10):void 0,cy:n&&n[2]?parseInt(n[2],10):void 0},scale:{sx:o,sy:r&&r[1]?parseFloat(r[1]):o}}}function Eg(t,e){return{x:e.x*t.a+e.y*t.c+0,y:e.x*t.b+e.y*t.d+0}}function Sg(t){const e=Eg(t,{x:0,y:1}),n=Eg(t,{x:1,y:0}),r=180/Math.PI*Math.atan2(e.y,e.x)-90;return{skewX:r,skewY:180/Math.PI*Math.atan2(n.y,n.x),translateX:t.e,translateY:t.f,scaleX:Math.sqrt(t.a*t.a+t.b*t.b),scaleY:Math.sqrt(t.c*t.c+t.d*t.d),rotation:r}}function Ig(t,e,n={}){if(null==e)return jg(Sv(t,"transform"));if(n.absolute)return void t.setAttribute("transform",Og(e));const r=t.transform,o=xg(e);r.baseVal.appendItem(o)}function Mg(t,e,n=0,r={}){let o=Sv(t,"transform");const i=Ag(o);if(null==e)return i.translation;o=i.raw,o=o.replace(/translate\([^)]*\)/g,"").trim();const a=`translate(${r.absolute?e:i.translation.tx+e},${r.absolute?n:i.translation.ty+n})`;t.setAttribute("transform",`${a} ${o}`.trim())}function kg(t,e,n,r,o={}){let i=Sv(t,"transform");const a=Ag(i);if(null==e)return a.rotation;i=a.raw,i=i.replace(/rotate\([^)]*\)/g,"").trim(),e%=360;const u=`rotate(${o.absolute?e:a.rotation.angle+e}${null!=n&&null!=r?`,${n},${r}`:""})`;t.setAttribute("transform",`${i} ${u}`.trim())}function Tg(t,e,n){let r=Sv(t,"transform");const o=Ag(r);if(null==e)return o.scale;n=null==n?e:n,r=o.raw,r=r.replace(/scale\([^)]*\)/g,"").trim();const i=`scale(${e},${n})`;t.setAttribute("transform",`${r} ${i}`.trim())}function Cg(t,e){if(nv(e)&&nv(t)){const n=e.getScreenCTM(),r=t.getScreenCTM();if(n&&r)return n.inverse().multiply(r)}return wg()}function Pg(t,e,n){const r=t instanceof SVGSVGElement?t:t.ownerSVGElement,o=r.createSVGPoint();o.x=e,o.y=n;try{const e=r.getScreenCTM(),n=o.matrixTransform(e.inverse()),i=Cg(t,r).inverse();return n.matrixTransform(i)}catch(t){return o}}var Ng,$g,Rg,Bg,Dg,Wg;!function(t){const e={};t.get=function(t){return e[t]||{}},t.register=function(t,n){e[t]=n},t.unregister=function(t){delete e[t]}}(Ng||(Ng={})),function(t){const e=new WeakMap;t.ensure=function(t){return e.has(t)||e.set(t,{events:Object.create(null)}),e.get(t)},t.get=function(t){return e.get(t)},t.remove=function(t){return e.delete(t)}}($g||($g={})),function(t){t.returnTrue=()=>!0,t.returnFalse=()=>!1,t.stopPropagationCallback=function(t){t.stopPropagation()},t.addEventListener=function(t,e,n){null!=t.addEventListener&&t.addEventListener(e,n)},t.removeEventListener=function(t,e,n){null!=t.removeEventListener&&t.removeEventListener(e,n)}}(Rg||(Rg={})),function(t){const e=/[^\x20\t\r\n\f]+/g,n=/^([^.]*)(?:\.(.+)|)/;t.splitType=function(t){return(t||"").match(e)||[""]},t.normalizeType=function(t){const e=n.exec(t)||[];return{originType:e[1]?e[1].trim():e[1],namespaces:e[2]?e[2].split(".").map((t=>t.trim())).sort():[]}},t.isValidTarget=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},t.isValidSelector=function(t,e){if(e){const n=t;return null!=n.querySelector&&null!=n.querySelector(e)}return!0}}(Rg||(Rg={})),function(t){let e=0;const n=new WeakMap;t.ensureHandlerId=function(t){return n.has(t)||(n.set(t,e),e+=1),n.get(t)},t.getHandlerId=function(t){return n.get(t)},t.removeHandlerId=function(t){return n.delete(t)},t.setHandlerId=function(t,e){return n.set(t,e)}}(Rg||(Rg={})),function(t){t.getHandlerQueue=function(t,e){const n=[],r=$g.get(t),o=r&&r.events&&r.events[e.type],i=o&&o.handlers||[],a=o?o.delegateCount:0;if(a>0&&!("click"===e.type&&"number"==typeof e.button&&e.button>=1))for(let r=e.target;r!==t;r=r.parentNode||t)if(1===r.nodeType&&("click"!==e.type||!0!==r.disabled)){const e=[],o={};for(let n=0;n{e.push(t)})),o[u]=e.includes(r)}o[u]&&e.push(a)}e.length&&n.push({elem:r,handlers:e})}return a{const t=this.originalEvent;this.isDefaultPrevented=Rg.returnTrue,t&&!this.isSimulated&&t.preventDefault()},this.stopPropagation=()=>{const t=this.originalEvent;this.isPropagationStopped=Rg.returnTrue,t&&!this.isSimulated&&t.stopPropagation()},this.stopImmediatePropagation=()=>{const t=this.originalEvent;this.isImmediatePropagationStopped=Rg.returnTrue,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()},"string"==typeof t?this.type=t:t.type&&(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented?Rg.returnTrue:Rg.returnFalse,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.timeStamp=t.timeStamp),e&&Object.assign(this,e),this.timeStamp||(this.timeStamp=Date.now())}}!function(t){t.create=function(e){return e instanceof t?e:new t(e)}}(Fg||(Fg={})),function(t){t.addProperty=function(e,n){Object.defineProperty(t.prototype,e,{enumerable:!0,configurable:!0,get:"function"==typeof n?function(){if(this.originalEvent)return n(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})}}(Fg||(Fg={})),function(t){const e={bubbles:!0,cancelable:!0,eventPhase:!0,detail:!0,view:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pageX:!0,pageY:!0,screenX:!0,screenY:!0,toElement:!0,pointerId:!0,pointerType:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,touches:!0,changedTouches:!0,targetTouches:!0,which:!0,altKey:!0,ctrlKey:!0,metaKey:!0,shiftKey:!0};Object.keys(e).forEach((n=>t.addProperty(n,e[n])))}(Fg||(Fg={})),Ng.register("load",{noBubble:!0}),Ng.register("beforeunload",{postDispatch(t,e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}),Ng.register("mouseenter",{delegateType:"mouseover",bindType:"mouseover",handle(t,e){let n;const r=e.relatedTarget,o=e.handleObj;return r&&(r===t||Rg.contains(t,r))||(e.type=o.originType,n=o.handler.call(t,e),e.type="mouseover"),n}}),Ng.register("mouseleave",{delegateType:"mouseout",bindType:"mouseout",handle(t,e){let n;const r=e.relatedTarget,o=e.handleObj;return r&&(r===t||Rg.contains(t,r))||(e.type=o.originType,n=o.handler.call(t,e),e.type="mouseout"),n}}),function(t){let e;function n(t,e,...n){const r=Fg.create(e);r.delegateTarget=t;const o=Ng.get(r.type);if(o.preDispatch&&!1===o.preDispatch(t,r))return;const i=Rg.getHandlerQueue(t,r);for(let t=0,e=i.length;t{const{originType:n,namespaces:r}=Rg.normalizeType(e);if(!n)return;let f=n,d=Ng.get(f);f=(a?d.delegateType:d.bindType)||f,d=Ng.get(f);const p=Object.assign({type:f,originType:n,data:i,selector:a,guid:l,handler:o,namespace:r.join(".")},u),h=s.events;let v=h[f];v||(v=h[f]={handlers:[],delegateCount:0},d.setup&&!1!==d.setup(t,i,r,c)||Rg.addEventListener(t,f,c)),d.add&&(Rg.removeHandlerId(p.handler),d.add(t,p),Rg.setHandlerId(p.handler,l)),a?(v.handlers.splice(v.delegateCount,0,p),v.delegateCount+=1):v.handlers.push(p)}))},t.off=function t(e,n,r,o,i){const a=$g.get(e);if(!a)return;const u=a.events;u&&(Rg.splitType(n).forEach((n=>{const{originType:s,namespaces:c}=Rg.normalizeType(n);if(!s)return void Object.keys(u).forEach((i=>{t(e,i+n,r,o,!0)}));let l=s;const f=Ng.get(l);l=(o?f.delegateType:f.bindType)||l;const d=u[l];if(!d)return;const p=c.length>0?new RegExp(`(^|\\.)${c.join("\\.(?:.*\\.|)")}(\\.|$)`):null,h=d.handlers.length;for(let t=d.handlers.length-1;t>=0;t-=1){const n=d.handlers[t];!i&&s!==n.originType||r&&Rg.getHandlerId(r)!==n.guid||!(null==p||n.namespace&&p.test(n.namespace))||!(null==o||o===n.selector||"**"===o&&n.selector)||(d.handlers.splice(t,1),n.selector&&(d.delegateCount-=1),f.remove&&f.remove(e,n))}h&&0===d.handlers.length&&(f.teardown&&!1!==f.teardown(e,c,a.handler)||Rg.removeEventListener(e,l,a.handler),delete u[l])})),0===Object.keys(u).length&&$g.remove(e))},t.dispatch=n,t.trigger=function(t,n,r,o){let i=t,a="string"==typeof t?t:t.type,u="string"==typeof t||null==i.namespace?[]:i.namespace.split(".");const s=r;if(3===s.nodeType||8===s.nodeType)return;a.indexOf(".")>-1&&(u=a.split("."),a=u.shift(),u.sort());const c=a.indexOf(":")<0&&`on${a}`;i=t instanceof Fg?t:new Fg(a,"object"==typeof t?t:null),i.namespace=u.join("."),i.rnamespace=i.namespace?new RegExp(`(^|\\.)${u.join("\\.(?:.*\\.|)")}(\\.|$)`):null,i.result=void 0,i.target||(i.target=s);const l=[i];Array.isArray(n)?l.push(...n):l.push(n);const f=Ng.get(a);if(!o&&f.trigger&&!1===f.trigger(s,i,n))return;let d;const p=[s];if(!o&&!f.noBubble&&!Rg.isWindow(s)){d=f.delegateType||a;let t=s,e=s.parentNode;for(;null!=e;)p.push(e),t=e,e=e.parentNode;if(t===(s.ownerDocument||document)){const e=t.defaultView||t.parentWindow||window;p.push(e)}}let h=s;for(let t=0,e=p.length;t1?d:f.bindType||a;const n=$g.get(e);n&&n.events[i.type]&&n.handler&&n.handler.call(e,...l);const r=c&&e[c]||null;r&&Rg.isValidTarget(e)&&(i.result=r.call(e,...l),!1===i.result&&i.preventDefault())}if(i.type=a,!o&&!i.isDefaultPrevented()){const t=f.preventDefault;if((null==t||!1===t(p.pop(),i,n))&&Rg.isValidTarget(s)&&c&&"function"==typeof s[a]&&!Rg.isWindow(s)){const t=s[c];t&&(s[c]=null),e=a,i.isPropagationStopped()&&h.addEventListener(a,Rg.stopPropagationCallback),s[a](),i.isPropagationStopped()&&h.removeEventListener(a,Rg.stopPropagationCallback),e=void 0,t&&(s[c]=t)}}return i.result}}(Bg||(Bg={})),function(t){t.on=function(t,e,n,r,o){return Wg.on(t,e,n,r,o),t},t.once=function(t,e,n,r,o){return Wg.on(t,e,n,r,o,!0),t},t.off=function(t,e,n,r){return Wg.off(t,e,n,r),t},t.trigger=function(t,e,n,r){return Bg.trigger(e,n,t,r),t}}(Dg||(Dg={})),function(t){t.on=function e(n,r,o,i,a,u){if("object"==typeof r)return"string"!=typeof o&&(i=i||o,o=void 0),void Object.keys(r).forEach((t=>e(n,t,o,i,r[t],u)));if(null==i&&null==a?(a=o,i=o=void 0):null==a&&("string"==typeof o?(a=i,i=void 0):(a=i,i=o,o=void 0)),!1===a)a=Rg.returnFalse;else if(!a)return;if(u){const e=a;a=function(r,...o){return t.off(n,r),e.call(this,r,...o)},Rg.setHandlerId(a,Rg.ensureHandlerId(e))}Bg.on(n,r,a,i,o)},t.off=function t(e,n,r,o){const i=n;if(i&&null!=i.preventDefault&&null!=i.handleObj){const e=i.handleObj;t(i.delegateTarget,e.namespace?`${e.originType}.${e.namespace}`:e.originType,e.selector,e.handler)}else if("object"!=typeof n)!1!==r&&"function"!=typeof r||(o=r,r=void 0),!1===o&&(o=Rg.returnFalse),Bg.off(e,n,o,r);else{const o=n;Object.keys(o).forEach((n=>t(e,n,r,o[n])))}}}(Wg||(Wg={}));function Lg(t){const e=t.getBoundingClientRect(),n=t.ownerDocument.defaultView;return{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}}var zg=Object.freeze({__proto__:null,CASE_SENSITIVE_ATTR:xv,get Event(){return Dg},get EventHook(){return Ng},get EventObject(){return Fg},KAPPA:og,MouseWheelHandle:class{constructor(e,n,r){this.animationFrameId=0,this.deltaX=0,this.deltaY=0,this.eventName=t.Platform.isEventSupported("wheel")?"wheel":"mousewheel",this.target=e,this.onWheelCallback=n,this.onWheelGuard=r,this.onWheel=this.onWheel.bind(this),this.didWheel=this.didWheel.bind(this)}enable(){this.target.addEventListener(this.eventName,this.onWheel,{passive:!1})}disable(){this.target.removeEventListener(this.eventName,this.onWheel)}onWheel(t){if(null!=this.onWheelGuard&&!this.onWheelGuard(t))return;let e;this.deltaX+=t.deltaX,this.deltaY+=t.deltaY,t.preventDefault(),0===this.deltaX&&0===this.deltaY||(t.stopPropagation(),e=!0),!0===e&&0===this.animationFrameId&&(this.animationFrameId=requestAnimationFrame((()=>{this.didWheel(t)})))}didWheel(t){this.animationFrameId=0,this.onWheelCallback(t,this.deltaX,this.deltaY),this.deltaX=0,this.deltaY=0}},addClass:Yh,after:function(t,e){const n=t.parentNode;if(n){(Array.isArray(e)?e:[e]).forEach((e=>{null!=e&&n.insertBefore(e,t.nextSibling)}))}},append:yv,appendTo:_v,attr:Sv,before:bv,breakText:function t(e,n,r={},o={}){const i=n.width,a=n.height,u=o.eol||"\n",s=r.fontSize||14,c=r.lineHeight?parseFloat(r.lineHeight):Math.ceil(1.4*s),l=Math.floor(a/c);if(e.indexOf(u)>-1){const i=Oh(),a=[];return e.split(u).map((e=>{const u=t(e,Object.assign(Object.assign({},n),{height:Number.MAX_SAFE_INTEGER}),r,Object.assign(Object.assign({},o),{eol:i}));u&&a.push(...u.split(i))})),a.slice(0,l).join(u)}const{width:f}=ng(e,r);if(fi)){d.push(p);break}if(t===l-1){const[t]=rg(p,i-g,h,r);d.push(v?`${t}${v}`:t)}else{const[t,e]=rg(p,i,h,r);d.push(t),p=e,h=ng(p,r).width}}return d.join(u)},children:function(t,e){const n=[];let r=t.firstChild;for(;r;r=r.nextSibling)1===r.nodeType&&(e&&!Zh(r,e)||n.push(r));return n},circleToPathData:dg,clearSelection:zv,computeStyle:Vv,computeStyleInt:Gv,contains:hv,createElement:function(t,e=document){return e.createElement(t)},createElementNS:iv,createSVGMatrix:wg,createSVGPoint:function(t,e){const n=av("svg").createSVGPoint();return n.x=t,n.y=e,n},createSVGTransform:xg,createSlicePathData:function(t,e,n,r){const o=2*Math.PI-1e-6,i=t,a=e;let u=n,s=r;if(s=o?i?`M0,${a}A${a},${a} 0 1,1 0,${-a}A${a},${a} 0 1,1 0,${a}M0,${i}A${i},${i} 0 1,0 0,${-i}A${i},${i} 0 1,0 0,${i}Z`:`M0,${a}A${a},${a} 0 1,1 0,${-a}A${a},${a} 0 1,1 0,${a}Z`:i?`M${a*f},${a*d}A${a},${a} 0 ${l},1 ${a*p},${a*h}L${i*p},${i*h}A${i},${i} 0 ${l},0 ${i*f},${i*d}Z`:`M${a*f},${a*d}A${a},${a} 0 ${l},1 ${a*p},${a*h}L0,0Z`},createSvgDocument:uv,createSvgElement:av,css:function t(e,n,r){if("string"!=typeof n)for(const r in n)t(e,r,n[r]);else{const t=qv(n);if(t||(n=Fv(n)),void 0===r)return Vv(e,n,t);t||(r=function(t,e){return Uv[t]||"number"!=typeof e?e:`${e}px`}(n,r));const o=e.style;t?o.setProperty(n,r):o[n]=r}},data:function t(e,n,r){if(!n){const t={};return Object.keys(Hv).forEach((n=>{t[n]=Kv(e,n)})),t}if("string"==typeof n)return void 0===r?Kv(e,n):void Xv(e,n,r);for(const r in n)t(e,r,n[r])},decomposeMatrix:Sg,ellipseToPathData:pg,empty:gv,ensureId:function(t){return null!=t.id&&""!==t.id||(t.id=ev()),t.id},find:fv,findOne:dv,findParentByClass:pv,getAttribute:jv,getClass:Xh,getComputedStyle:Lv,getData:Kv,getPointsFromSvgElement:fg,getTransformToElement:Cg,getTransformToParentElement:function(t,e){let n=wg();if(nv(e)&&nv(t)){let r=t;const o=[];for(;r&&r!==e;){const t=jg(r.getAttribute("transform")||null);o.push(t),r=r.parentNode}o.reverse().forEach((t=>{n=n.multiply(t)}))}return n},getVendorPrefixedName:Fv,hasClass:Zh,hasScrollbars:function(t){const e=Lv(t);return null!=e&&("scroll"===e.overflow||"auto"===e.overflow)},height:function(t){return t.getBoundingClientRect().height},index:lv,isCSSVariable:qv,isElement:wv,isHTMLElement:function(t){try{return t instanceof HTMLElement}catch(e){return"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument}},isSVGGraphicsElement:nv,kebablizeAttrs:function(t){const e={};return Object.keys(t).forEach((n=>{const r=xv.includes(n)?n:yh(n);e[r]=t[n]})),e},lineToPathData:ug,matrixToRotation:function(t){let e={x:0,y:1};t&&(e=Eg(t,e));const n=180*Math.atan2(e.y,e.x)/Math.PI%360-90;return{angle:n%360+(n<0?360:0)}},matrixToScale:function(t){let e,n,r,o;return t?(e=null==t.a?1:t.a,o=null==t.d?1:t.d,n=t.b,r=t.c):e=o=1,{sx:n?Math.sqrt(e*e+n*n):e,sy:r?Math.sqrt(r*r+o*o):o}},matrixToTransformString:Og,matrixToTranslation:function(t){return{tx:t&&t.e||0,ty:t&&t.f||0}},measureText:ng,mergeAttrs:kv,ns:rv,offset:Lg,parseTransformString:Ag,parseXML:sv,polygonToPathData:sg,polylineToPathData:cg,position:function(t){const e="fixed"===Vv(t,"position");let n;if(e){const e=t.getBoundingClientRect();n={left:e.left,top:e.top}}else n=Lg(t);if(!e){const e=t.ownerDocument;let r=t.offsetParent||e.documentElement;for(;(r===e.body||r===e.documentElement)&&"static"===Vv(r,"position");)r=r.parentNode;if(r!==t&&wv(r)){const t=Lg(r);n.top-=t.top+Gv(r,"borderTopWidth"),n.left-=t.left+Gv(r,"borderLeftWidth")}}return{top:n.top-Gv(t,"marginTop"),left:n.left-Gv(t,"marginLeft")}},prepend:mv,prop:function t(e,n,r){if(n){if("string"==typeof n)return n=Zv[n]||n,arguments.length<3?e[n]:void(e[n]=r);for(const r in n)t(e,r,n[r])}},qualifyAttr:Iv,rectToPathData:vg,rectangleToPathData:hg,remove:vv,removeAttribute:Ov,removeClass:Qh,rotate:kg,sample:ag,scale:Tg,setAttribute:Av,setAttributes:Ev,setData:Xv,setPrefixedStyle:function(t,e,n){const r=Fv(e);null!=r&&(t[r]=n),t[e]=n},splitTextByLength:rg,styleToObject:Mv,svgVersion:ov,tagName:cv,text:eg,toLocalPoint:Pg,toPath:gg,toPathData:yg,toggleClass:Jh,transform:Ig,transformStringToMatrix:jg,translate:Mg,uniqueId:ev,width:function(t){return t.getBoundingClientRect().width}});function Ug(t,e=60){let n=null;return(...r)=>{n&&clearTimeout(n),n=window.setTimeout((()=>{t.apply(this,r)}),e)}}const qg="undefined"!=typeof ResizeObserver?function(t){let e=null,n=[];const r=Ug((()=>{n.forEach((e=>{e(t)}))})),o=()=>{e&&(e.disconnect(),n=[],e=null)};return{element:t,bind:o=>{e||(e=(()=>{const e=new ResizeObserver(r);return e.observe(t),r(),e})()),-1===n.indexOf(o)&&n.push(o)},destroy:o,unbind:t=>{const r=n.indexOf(t);-1!==r&&n.splice(r,1),0===n.length&&e&&o()}}}:function(t){let e=null,n=[];const r=Ug((()=>{n.forEach((e=>e(t)))})),o=()=>{e&&e.parentNode&&(e.contentDocument&&e.contentDocument.defaultView.removeEventListener("resize",r),e.parentNode.removeChild(e),e=null,n=[])};return{element:t,bind:o=>{e||(e=(()=>{"static"===getComputedStyle(t).position&&(t.style.position="relative");const e=document.createElement("object");return e.onload=()=>{e.contentDocument.defaultView.addEventListener("resize",r),r()},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("tabindex","-1"),e.type="text/html",t.appendChild(e),e.data="about:blank",e})()),-1===n.indexOf(o)&&n.push(o)},destroy:o,unbind:t=>{const r=n.indexOf(t);-1!==r&&n.splice(r,1),0===n.length&&e&&o()}}};t.SizeSensor=void 0,function(t){const e=new WeakMap;function n(t){let n=e.get(t);return n||(n=qg(t),e.set(t,n),n)}t.bind=(t,e)=>{const r=n(t);return r.bind(e),()=>r.unbind(e)},t.clear=t=>{!function(t){t.destroy(),e.delete(t.element)}(n(t))}}(t.SizeSensor||(t.SizeSensor={}));class Vg{constructor(t={}){this.comparator=t.comparator||Vg.defaultComparator,this.index={},this.data=t.data||[],this.heapify()}isEmpty(){return 0===this.data.length}insert(t,e,n){const r={priority:t,value:e},o=this.data.length;return n&&(r.id=n,this.index[n]=o),this.data.push(r),this.bubbleUp(o),this}peek(){return this.data[0]?this.data[0].value:null}peekPriority(){return this.data[0]?this.data[0].priority:null}updatePriority(t,e){const n=this.index[t];if(void 0===n)throw new Error(`Node with id '${t}' was not found in the heap.`);const r=this.data,o=r[n].priority,i=this.comparator(e,o);i<0?(r[n].priority=e,this.bubbleUp(n)):i>0&&(r[n].priority=e,this.bubbleDown(n))}remove(){const t=this.data,e=t[0],n=t.pop();return e.id&&delete this.index[e.id],t.length>0&&(t[0]=n,n.id&&(this.index[n.id]=0),this.bubbleDown(0)),e?e.value:null}heapify(){for(let t=0;t0&&(r=o-1>>>1,this.comparator(e[o].priority,e[r].priority)<0);){n=e[r],e[r]=e[o];let t=e[o].id;null!=t&&(this.index[t]=r),e[o]=n,t=e[o].id,null!=t&&(this.index[t]=o),o=r}}bubbleDown(t){const e=this.data,n=e.length-1;let r=t;for(;;){const t=1+(r<<1),o=t+1;let i=r;if(t<=n&&this.comparator(e[t].priority,e[i].priority)<0&&(i=t),o<=n&&this.comparator(e[o].priority,e[i].priority)<0&&(i=o),i===r)break;{const t=e[i];e[i]=e[r];let n=e[r].id;null!=n&&(this.index[n]=i),e[r]=t,n=e[r].id,null!=n&&(this.index[n]=r),r=i}}}}var Gg,Hg;!function(t){t.defaultComparator=(t,e)=>t-e}(Vg||(Vg={})),t.Dijkstra=void 0,(t.Dijkstra||(t.Dijkstra={})).run=function(t,e,n=((t,e)=>1)){const r={},o={},i={},a=new Vg;for(r[e]=0,Object.keys(t).forEach((t=>{t!==e&&(r[t]=1/0),a.insert(r[t],t,t)}));!a.isEmpty();){const e=a.remove();i[e]=!0;const u=t[e]||[];for(let t=0;t{const e=this[t].toString(16);return e.length<2?`0${e}`:e})).join("")}`}toRGBA(){return this.toArray()}toHSLA(){return Kg.rgba2hsla(this.r,this.g,this.b,this.a)}toCSS(t){const e=`${this.r},${this.g},${this.b},`;return t?`rgb(${e})`:`rgba(${e},${this.a})`}toGrey(){return Kg.makeGrey(Math.round((this.r+this.g+this.b)/3),this.a)}toArray(){return[this.r,this.g,this.b,this.a]}toString(){return this.toCSS()}}!function(t){function e(e){return new t([...u(e),1])}function n(e){const n=e.toLowerCase().match(/^rgba?\(([\s.,0-9]+)\)/);if(n){const e=n[1].split(/\s*,\s*/).map((t=>parseInt(t,10)));return new t(e)}return null}function r(t,e,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?t+(e-t)*r:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function o(e){const n=e.toLowerCase().match(/^hsla?\(([\s.,0-9]+)\)/);if(n){const e=n[2].split(/\s*,\s*/),r=(parseFloat(e[0])%360+360)%360/360,o=parseFloat(e[1])/100,a=parseFloat(e[2])/100,u=null==e[3]?1:parseInt(e[3],10);return new t(i(r,o,a,u))}return null}function i(t,e,n,o){const i=Array.isArray(t)?t[0]:t,a=Array.isArray(t)?t[1]:e,u=Array.isArray(t)?t[2]:n,s=Array.isArray(t)?t[3]:o,c=u<=.5?u*(a+1):u+a-u*a,l=2*u-c;return[256*r(l,c,i+1/3),256*r(l,c,i),256*r(l,c,i-1/3),null==s?1:s]}function a(e){return new t(Math.round(256*Math.random()),Math.round(256*Math.random()),Math.round(256*Math.random()),e?void 0:parseFloat(Math.random().toFixed(2)))}function u(t){const e=0===t.indexOf("#")?t:`#${t}`;let n=Number(`0x${e.substr(1)}`);if(4!==e.length&&7!==e.length||Number.isNaN(n))throw new Error("Invalid hex color.");const r=4===e.length?4:8,o=(1<{const t=n&o;return n>>=r,4===r?17*t:t}));return[i[2],i[1],i[0]]}function s(t,e,n){const r=t=>t.length<2?`0${t}`:t;return`${r(t.toString(16))}${r(e.toString(16))}${r(n.toString(16))}`}function c(t,e){if("string"==typeof t){const n="#"===t[0],r=parseInt(n?t.substr(1):t,16),o=Go((r>>16)+e,0,255),i=Go((r>>8&255)+e,0,255);return`${n?"#":""}${(Go((255&r)+e,0,255)|i<<8|o<<16).toString(16)}`}const n=u(c(s(t[0],t[1],t[2]),e));return[n[0],n[1],n[2],t[3]]}t.fromArray=function(e){return new t(e)},t.fromHex=e,t.fromRGBA=n,t.fromHSLA=o,t.fromString=function(r){if(r.startsWith("#"))return e(r);if(r.startsWith("rgb"))return n(r);const i=t.named[r];return i?e(i):o(r)},t.makeGrey=function(e,n){return t.fromArray([e,e,e,n])},t.rgba2hsla=function(t,e,n,r){const o=Array.isArray(t)?t[0]:t,i=Array.isArray(t)?t[1]:e,a=Array.isArray(t)?t[2]:n,u=Array.isArray(t)?t[3]:r,s=Math.max(o,i,a),c=Math.min(o,i,a),l=(s+c)/2;let f=0,d=0;if(c!==s){const t=s-c;switch(d=l>.5?t/(2-s-c):t/(s+c),s){case o:f=(i-a)/t+(i186?"#000000":"#ffffff":`${n?"#":""}${s(255-r,255-o,255-i)}`}const n=t[0],r=t[1],o=t[2],i=t[3];return e?.299*n+.587*r+.114*o>186?[0,0,0,i]:[255,255,255,i]:[255-n,255-r,255-o,i]},t.lighten=function(t,e){return c(t,e)},t.darken=function(t,e){return c(t,-e)}}(Kg||(Kg={})),function(t){t.named={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",burntsienna:"#ea7e5d",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}}(Kg||(Kg={}));t.ModifierKey=void 0,function(t){function e(t){const e=[],n=[];return Array.isArray(t)?e.push(...t):t.split("|").forEach((t=>{-1===t.indexOf("&")?e.push(t):n.push(...t.split("&"))})),{or:e,and:n}}t.parse=e,t.equals=function(t,n){if(null!=t&&null!=n){const r=e(t),o=e(n),i=r.or.sort(),a=o.or.sort(),u=r.and.sort(),s=o.and.sort(),c=(t,e)=>t.length===e.length&&(0===t.length||t.every(((t,n)=>t===e[n])));return c(i,a)&&c(u,s)}return null==t&&null==n},t.isMatch=function(t,n,r){if(null==n||Array.isArray(n)&&0===n.length)return!r||!0!==t.altKey&&!0!==t.ctrlKey&&!0!==t.metaKey&&!0!==t.shiftKey;const{or:o,and:i}=e(n),a=e=>{const n=`${e.toLowerCase()}Key`;return!0===t[n]};return o.some((t=>a(t)))&&i.every((t=>a(t)))}}(t.ModifierKey||(t.ModifierKey={})),t.Timing=void 0,(Gg=t.Timing||(t.Timing={})).linear=t=>t,Gg.quad=t=>t*t,Gg.cubic=t=>t*t*t,Gg.inout=t=>{if(t<=0)return 0;if(t>=1)return 1;const e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)},Gg.exponential=t=>Math.pow(2,10*(t-1)),Gg.bounce=t=>{for(let e=0,n=1;;e+=n,n/=2)if(t>=(7-4*e)/11){const r=(11-6*e-11*t)/4;return-r*r+n*n}},function(t){t.decorators={reverse:t=>e=>1-t(1-e),reflect:t=>e=>.5*(e<.5?t(2*e):2-t(2-2*e)),clamp:(t,e=0,n=1)=>r=>{const o=t(r);return on?n:o},back:(t=1.70158)=>e=>e*e*((t+1)*e-t),elastic:(t=1.5)=>e=>Math.pow(2,10*(e-1))*Math.cos(20*Math.PI*t/3*e)}}(t.Timing||(t.Timing={})),function(t){function e(t){const e=t/1;if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){const t=e-1.5/2.75;return 7.5625*t*t+.75}if(e<2.5/2.75){const t=e-2.25/2.75;return 7.5625*t*t+.9375}{const t=e-2.625/2.75;return 7.5625*t*t+.984375}}function n(t){return 1-e(1-t)}t.easeInSine=function(t){return-1*Math.cos(t*(Math.PI/2))+1},t.easeOutSine=function(t){return Math.sin(t*(Math.PI/2))},t.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.easeInQuad=function(t){return t*t},t.easeOutQuad=function(t){return t*(2-t)},t.easeInOutQuad=function(t){return t<.5?2*t*t:(4-2*t)*t-1},t.easeInCubic=function(t){return t*t*t},t.easeOutCubic=function(t){const e=t-1;return e*e*e+1},t.easeInOutCubic=function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},t.easeInQuart=function(t){return t*t*t*t},t.easeOutQuart=function(t){const e=t-1;return 1-e*e*e*e},t.easeInOutQuart=function(t){const e=t-1;return t<.5?8*t*t*t*t:1-8*e*e*e*e},t.easeInQuint=function(t){return t*t*t*t*t},t.easeOutQuint=function(t){const e=t-1;return 1+e*e*e*e*e},t.easeInOutQuint=function(t){const e=t-1;return t<.5?16*t*t*t*t*t:1+16*e*e*e*e*e},t.easeInExpo=function(t){return 0===t?0:Math.pow(2,10*(t-1))},t.easeOutExpo=function(t){return 1===t?1:1-Math.pow(2,-10*t)},t.easeInOutExpo=function(t){if(0===t||1===t)return t;const e=2*t,n=e-1;return e<1?.5*Math.pow(2,10*n):.5*(2-Math.pow(2,-10*n))},t.easeInCirc=function(t){const e=t/1;return-1*(Math.sqrt(1-e*t)-1)},t.easeOutCirc=function(t){const e=t-1;return Math.sqrt(1-e*e)},t.easeInOutCirc=function(t){const e=2*t,n=e-2;return e<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-n*n)+1)},t.easeInBack=function(t,e=1.70158){return t*t*((e+1)*t-e)},t.easeOutBack=function(t,e=1.70158){const n=t/1-1;return n*n*((e+1)*n+e)+1},t.easeInOutBack=function(t,e=1.70158){const n=2*t,r=n-2,o=1.525*e;return n<1?.5*n*n*((o+1)*n-o):.5*(r*r*((o+1)*r+o)+2)},t.easeInElastic=function(t,e=.7){if(0===t||1===t)return t;const n=t/1-1,r=1-e,o=r/(2*Math.PI)*Math.asin(1);return-Math.pow(2,10*n)*Math.sin((n-o)*(2*Math.PI)/r)},t.easeOutElastic=function(t,e=.7){const n=1-e,r=2*t;if(0===t||1===t)return t;const o=n/(2*Math.PI)*Math.asin(1);return Math.pow(2,-10*r)*Math.sin((r-o)*(2*Math.PI)/n)+1},t.easeInOutElastic=function(t,e=.65){const n=1-e;if(0===t||1===t)return t;const r=2*t,o=r-1,i=n/(2*Math.PI)*Math.asin(1);return r<1?Math.pow(2,10*o)*Math.sin((o-i)*(2*Math.PI)/n)*-.5:Math.pow(2,-10*o)*Math.sin((o-i)*(2*Math.PI)/n)*.5+1},t.easeOutBounce=e,t.easeInBounce=n,t.easeInOutBounce=function(t){return t<.5?.5*n(2*t):.5*e(2*t-1)+.5}}(t.Timing||(t.Timing={})),t.Interp=void 0,(Hg=t.Interp||(t.Interp={})).number=(t,e)=>{const n=e-t;return e=>t+n*e},Hg.object=(t,e)=>{const n=Object.keys(t);return r=>{const o={};for(let i=n.length-1;-1!==i;i-=1){const a=n[i];o[a]=t[a]+(e[a]-t[a])*r}return o}},Hg.unit=(t,e)=>{const n=/(-?[0-9]*.[0-9]*)(px|em|cm|mm|in|pt|pc|%)/,r=n.exec(t),o=n.exec(e),i=o?o[1]:"",a=r?+r[1]:0,u=o?+o[1]:0,s=i.indexOf("."),c=s>0?i[1].length-s-1:0,l=u-a,f=r?r[2]:"";return t=>(a+l*t).toFixed(c)+f},Hg.color=(t,e)=>{const n=parseInt(t.slice(1),16),r=parseInt(e.slice(1),16),o=255&n,i=(255&r)-o,a=65280&n,u=(65280&r)-a,s=16711680&n,c=(16711680&r)-s;return t=>`#${(1<<24|o+i*t&255|a+u*t&65280|s+c*t&16711680).toString(16).slice(1)}`};const Xg=[];var Zg=Object.freeze({__proto__:null,clean:function(t){const e=Xg.findIndex((e=>e.name===t));if(e>-1){const t=Xg[e];if(t.loadTimes-=1,t.loadTimes>0)return;let n=t.styleElement;n&&n.parentNode&&n.parentNode.removeChild(n),n=null,Xg.splice(e,1)}},ensure:function(e,n){const r=Xg.find((t=>t.name===e));if(!(r&&(r.loadTimes+=1,r.loadTimes>1)||t.Platform.isApplyingHMR())){const t=document.createElement("style");t.setAttribute("type","text/css"),t.textContent=n;const r=document.querySelector("head");r&&r.insertBefore(t,r.firstChild),Xg.push({name:e,loadTimes:1,styleElement:t})}}});t.ArrayExt=vh,t.Basecoat=hh,t.Color=Kg,t.CssLoader=Zg,t.Dictionary=class{constructor(){this.clear()}clear(){this.map=new WeakMap,this.arr=[]}has(t){return this.map.has(t)}get(t){return this.map.get(t)}set(t,e){this.map.set(t,e),this.arr.push(t)}delete(t){const e=this.arr.indexOf(t);e>=0&&this.arr.splice(e,1);const n=this.map.get(t);return this.map.delete(t),n}each(t){this.arr.forEach((e=>{const n=this.map.get(e);t(n,e)}))}dispose(){this.clear()}},t.Disablable=class extends hh{get disabled(){return!0===this._disabled}enable(){delete this._disabled}disable(){this._disabled=!0}},t.Disposable=e,t.DisposableDelegate=class{constructor(t){this.callback=t}get disposed(){return!this.callback}dispose(){if(!this.callback)return;const t=this.callback;this.callback=null,t()}},t.DisposableSet=n,t.Dom=zg,t.Events=ih,t.FunctionExt=rh,t.NumberExt=Ih,t.ObjectExt=ph,t.PriorityQueue=Vg,t.StringExt=Eh,t.Text=Pv,t.Vector=Yv})); //# sourceMappingURL=index.js.map