fastadmin 0.2.9__py3-none-any.whl → 0.2.10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
fastadmin/api/service.py CHANGED
@@ -53,7 +53,7 @@ def convert_id(id: str | int | UUID) -> int | UUID | None:
53
53
  if re.fullmatch(r"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}", id):
54
54
  return UUID(id)
55
55
 
56
- logger.error("Invalid id: %s", id)
56
+ logger.warning("Invalid id: %s", id)
57
57
  return None
58
58
 
59
59
 
@@ -101,6 +101,7 @@ class ApiService:
101
101
  ) -> str:
102
102
  model = settings.ADMIN_USER_MODEL
103
103
  admin_model = get_admin_model(model)
104
+
104
105
  if not admin_model:
105
106
  raise AdminApiException(401, detail=f"{model} model is not registered.")
106
107
 
@@ -334,8 +334,6 @@ class DjangoORMMixin:
334
334
 
335
335
  :return: A list of ids.
336
336
  """
337
- if not ids:
338
- return
339
337
  m2m_rel = getattr(obj, field)
340
338
  m2m_rel.set(ids)
341
339
 
@@ -3,7 +3,7 @@ from typing import Any
3
3
  from uuid import UUID
4
4
 
5
5
  from asgiref.sync import sync_to_async
6
- from pony.orm import commit, db_session, desc, flush, select
6
+ from pony.orm import commit, db_session, desc, flush
7
7
 
8
8
  from fastadmin.models.base import InlineModelAdmin, ModelAdmin
9
9
  from fastadmin.models.schemas import ModelFieldWidgetSchema, WidgetType
@@ -233,7 +233,7 @@ class PonyORMMixin:
233
233
  :return: A tuple of list of objects and total count.
234
234
  """
235
235
 
236
- qs = select(m for m in self.model_cls)
236
+ qs = getattr(self.model_cls, "select")(lambda m: m) # noqa: B009
237
237
  if filters:
238
238
  for field_with_condition, value in filters.items():
239
239
  field = field_with_condition[0]
@@ -256,14 +256,17 @@ class PonyORMMixin:
256
256
  case "contains":
257
257
  pony_condition = "in"
258
258
  case "icontains":
259
+ # TODO: support icontains here
259
260
  pony_condition = "in"
260
261
  filter_expr = f""""{value}" {pony_condition} m.{field}"""
261
262
  qs = qs.filter(filter_expr)
262
263
 
263
264
  if search and self.search_fields:
264
265
  ids = []
265
- for f in self.search_fields:
266
- qs_ids = qs.filter(lambda m: search.lower() in getattr(m, f).lower()) # noqa: B023
266
+ for search_field in self.search_fields:
267
+ # TODO: support icontains here
268
+ filter_expr = f""""{search}" in m.{search_field}"""
269
+ qs_ids = qs.filter(filter_expr)
267
270
  ids += [o.id for o in qs_ids]
268
271
  qs = qs.filter(lambda m: m.id in set(ids))
269
272
 
@@ -362,11 +365,12 @@ class PonyORMMixin:
362
365
  obj = next((i for i in self.model_cls.select(**{key_id: getattr(obj, key_id)})), None)
363
366
  if not obj:
364
367
  return
365
- rel_model_cls = getattr(self.model_cls, field).py_type
366
- rel_key_id = self.get_model_pk_name(rel_model_cls)
367
- rel_objs = list(rel_model_cls.select(lambda o: getattr(o, rel_key_id) in ids))
368
368
  obj.participants.clear()
369
- obj.participants.add(rel_objs)
369
+ if ids:
370
+ rel_model_cls = getattr(self.model_cls, field).py_type
371
+ rel_key_id = self.get_model_pk_name(rel_model_cls)
372
+ rel_objs = list(rel_model_cls.select(lambda o: getattr(o, rel_key_id) in ids))
373
+ obj.participants.add(rel_objs)
370
374
  flush()
371
375
  commit()
372
376
 
@@ -400,7 +400,8 @@ class SqlAlchemyMixin:
400
400
  obj_field_name: obj_id,
401
401
  }
402
402
  )
403
- await session.execute(orm_model_field.secondary.insert().values(values))
403
+ if values:
404
+ await session.execute(orm_model_field.secondary.insert().values(values))
404
405
  await session.commit()
405
406
 
406
407
  async def orm_save_upload_field(self, obj: Any, field: str, base64: str) -> None:
@@ -1,6 +1,10 @@
1
+ import functools
2
+ import operator
1
3
  from typing import Any
2
4
  from uuid import UUID
3
5
 
6
+ from tortoise.expressions import Q
7
+
4
8
  from fastadmin.models.base import InlineModelAdmin, ModelAdmin
5
9
  from fastadmin.models.schemas import ModelFieldWidgetSchema, WidgetType
6
10
  from fastadmin.settings import settings
@@ -244,11 +248,13 @@ class TortoiseMixin:
244
248
  qs = qs.filter(**{f"{field}__{condition}" if condition != "exact" else field: value})
245
249
 
246
250
  if search and self.search_fields:
247
- ids = []
248
- for f in self.search_fields:
249
- qs = qs.filter(**{f + "__icontains": search})
250
- ids += await qs.values_list(self.get_model_pk_name(self.model_cls), flat=True)
251
- qs = qs.filter(id__in=set(ids))
251
+ qs = qs.filter(
252
+ functools.reduce(
253
+ operator.or_,
254
+ (Q(**{f + "__icontains": search}) for f in self.search_fields),
255
+ Q(),
256
+ )
257
+ )
252
258
 
253
259
  if sort_by:
254
260
  qs = qs.order_by(sort_by)
@@ -323,8 +329,6 @@ class TortoiseMixin:
323
329
 
324
330
  :return: A list of ids.
325
331
  """
326
- if not ids:
327
- return
328
332
  m2m_rel = getattr(obj, field)
329
333
 
330
334
  await m2m_rel.clear()
@@ -335,7 +339,8 @@ class TortoiseMixin:
335
339
  setattr(remote_model_obj, self.get_model_pk_name(remote_model), rel_id)
336
340
  remote_model_obj._saved_in_db = True
337
341
  remote_model_objs.append(remote_model_obj)
338
- await m2m_rel.add(*remote_model_objs)
342
+ if remote_model_objs:
343
+ await m2m_rel.add(*remote_model_objs)
339
344
 
340
345
  async def orm_save_upload_field(self, obj: Any, field: str, base64: str) -> None:
341
346
  """This method is used to save upload field.
@@ -752,4 +752,4 @@ A`,a,a,0,s?1:0,1,o.p1.x,o.p1.y)}return r.join(" ")}}const Phe=e=>{const{sets:t="
752
752
  transform: translate(24px, 0);
753
753
  }
754
754
  }
755
- `,n.classList.add("loading"),n.innerHTML="<div></div><div></div><div></div><div></div>",t.appendChild(r),t.appendChild(n)},G1t=function(e){var t=e.loadingTemplate,n=e.theme,r=n===void 0?"light":n,i=ge.useRef(null);ge.useEffect(function(){!t&&i.current&&q1t(i.current)},[]);var o=function(){return t||ge.createElement("div",{ref:i})};return ge.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:r==="dark"?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},o())},K1t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Y1t=function(e){K1t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={hasError:!1},n.renderError=function(r){var i=n.props.errorTemplate;switch(r){default:return typeof i=="function"?i(r):i||ge.createElement("h5",null,"组件出错了,请核查后重试: ",r.message)}},n}return t.getDerivedStateFromError=function(n){return{hasError:!0,error:n}},t.getDerivedStateFromProps=function(n,r){return r.children!==n.children?{children:n.children,hasError:!1,error:void 0}:null},t.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):ge.createElement(b.Fragment,null,this.props.children)},t}(ge.Component),qhe=typeof global=="object"&&global&&global.Object===Object&&global,X1t=typeof self=="object"&&self&&self.Object===Object&&self,El=qhe||X1t||Function("return this")(),Hs=El.Symbol,Ghe=Object.prototype,Z1t=Ghe.hasOwnProperty,Q1t=Ghe.toString,ux=Hs?Hs.toStringTag:void 0;function J1t(e){var t=Z1t.call(e,ux),n=e[ux];try{e[ux]=void 0;var r=!0}catch(o){}var i=Q1t.call(e);return r&&(t?e[ux]=n:delete e[ux]),i}var ebt=Object.prototype,tbt=ebt.toString;function nbt(e){return tbt.call(e)}var rbt="[object Null]",ibt="[object Undefined]",Khe=Hs?Hs.toStringTag:void 0;function dc(e){return e==null?e===void 0?ibt:rbt:Khe&&Khe in Object(e)?J1t(e):nbt(e)}function Ra(e){return e!=null&&typeof e=="object"}var obt="[object Symbol]";function fx(e){return typeof e=="symbol"||Ra(e)&&dc(e)==obt}var abt=NaN;function Yhe(e){return typeof e=="number"?e:fx(e)?abt:+e}function w$(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var ir=Array.isArray,sbt=1/0,Xhe=Hs?Hs.prototype:void 0,Zhe=Xhe?Xhe.toString:void 0;function C$(e){if(typeof e=="string")return e;if(ir(e))return w$(e,C$)+"";if(fx(e))return Zhe?Zhe.call(e):"";var t=e+"";return t=="0"&&1/e==-sbt?"-0":t}function lbt(e,t){return function(n,r){var i;if(n===void 0&&r===void 0)return t;if(n!==void 0&&(i=n),r!==void 0){if(i===void 0)return r;typeof n=="string"||typeof r=="string"?(n=C$(n),r=C$(r)):(n=Yhe(n),r=Yhe(r)),i=e(n,r)}return i}}var cbt=/\s/;function ubt(e){for(var t=e.length;t--&&cbt.test(e.charAt(t)););return t}var fbt=/^\s+/;function dbt(e){return e&&e.slice(0,ubt(e)+1).replace(fbt,"")}function la(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qhe=NaN,hbt=/^[-+]0x[0-9a-f]+$/i,pbt=/^0b[01]+$/i,vbt=/^0o[0-7]+$/i,gbt=parseInt;function Jhe(e){if(typeof e=="number")return e;if(fx(e))return Qhe;if(la(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=la(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=dbt(e);var n=pbt.test(e);return n||vbt.test(e)?gbt(e.slice(2),n?2:8):hbt.test(e)?Qhe:+e}var epe=1/0,mbt=17976931348623157e292;function ybt(e){if(!e)return e===0?e:0;if(e=Jhe(e),e===epe||e===-epe){var t=e<0?-1:1;return t*mbt}return e===e?e:0}function tpe(e){var t=ybt(e),n=t%1;return t===t?n?t-n:t:0}function vL(e){return e}var bbt="[object AsyncFunction]",xbt="[object Function]",Sbt="[object GeneratorFunction]",wbt="[object Proxy]";function xm(e){if(!la(e))return!1;var t=dc(e);return t==xbt||t==Sbt||t==bbt||t==wbt}var gL=El["__core-js_shared__"],npe=function(){var e=/[^.]+$/.exec(gL&&gL.keys&&gL.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Cbt(e){return!!npe&&npe in e}var Obt=Function.prototype,Ebt=Obt.toString;function Kh(e){if(e!=null){try{return Ebt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var _bt=/[\\^$.*+?()[\]{}|]/g,$bt=/^\[object .+?Constructor\]$/,Pbt=Function.prototype,Mbt=Object.prototype,Tbt=Pbt.toString,Ibt=Mbt.hasOwnProperty,Rbt=RegExp("^"+Tbt.call(Ibt).replace(_bt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kbt(e){if(!la(e)||Cbt(e))return!1;var t=xm(e)?Rbt:$bt;return t.test(Kh(e))}function Nbt(e,t){return e==null?void 0:e[t]}function Yh(e,t){var n=Nbt(e,t);return kbt(n)?n:void 0}var dx=Yh(El,"WeakMap"),rpe=dx&&new dx,ipe=Object.create,mL=function(){function e(){}return function(t){if(!la(t))return{};if(ipe)return ipe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Abt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yL(){}var Lbt=4294967295;function Sm(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Lbt,this.__views__=[]}Sm.prototype=mL(yL.prototype),Sm.prototype.constructor=Sm;function ope(){}var ape=rpe?function(e){return rpe.get(e)}:ope,spe={},jbt=Object.prototype,Dbt=jbt.hasOwnProperty;function O$(e){for(var t=e.name+"",n=spe[t],r=Dbt.call(spe,t)?n.length:0;r--;){var i=n[r],o=i.func;if(o==null||o==e)return i.name}return t}function Yf(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Yf.prototype=mL(yL.prototype),Yf.prototype.constructor=Yf;function bL(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Fbt(e){if(e instanceof Sm)return e.clone();var t=new Yf(e.__wrapped__,e.__chain__);return t.__actions__=bL(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bbt=Object.prototype,zbt=Bbt.hasOwnProperty;function E$(e){if(Ra(e)&&!ir(e)&&!(e instanceof Sm)){if(e instanceof Yf)return e;if(zbt.call(e,"__wrapped__"))return Fbt(e)}return new Yf(e)}E$.prototype=yL.prototype,E$.prototype.constructor=E$;function lpe(e){var t=O$(e),n=E$[t];if(typeof n!="function"||!(t in Sm.prototype))return!1;if(e===n)return!0;var r=ape(n);return!!r&&e===r[0]}var Hbt=800,Wbt=16,Vbt=Date.now;function Ubt(e){var t=0,n=0;return function(){var r=Vbt(),i=Wbt-(r-n);if(n=r,i>0){if(++t>=Hbt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function qbt(e){return function(){return e}}var _$=function(){try{var e=Yh(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),Gbt=_$?function(e,t){return _$(e,"toString",{configurable:!0,enumerable:!1,value:qbt(t),writable:!0})}:vL,cpe=Ubt(Gbt);function Kbt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function Ybt(e,t,n,r){for(var i=e.length,o=n+-1;++o<i;)if(t(e[o],o,e))return o;return-1}function Xbt(e){return e!==e}function Zbt(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function upe(e,t,n){return t===t?Zbt(e,t,n):Ybt(e,Xbt,n)}function Qbt(e,t){var n=e==null?0:e.length;return!!n&&upe(e,t,0)>-1}var Jbt=9007199254740991,ext=/^(?:0|[1-9]\d*)$/;function $$(e,t){var n=typeof e;return t=t==null?Jbt:t,!!t&&(n=="number"||n!="symbol"&&ext.test(e))&&e>-1&&e%1==0&&e<t}function P$(e,t,n){t=="__proto__"&&_$?_$(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function hx(e,t){return e===t||e!==e&&t!==t}var txt=Object.prototype,nxt=txt.hasOwnProperty;function M$(e,t,n){var r=e[t];(!(nxt.call(e,t)&&hx(r,n))||n===void 0&&!(t in e))&&P$(e,t,n)}function Xh(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;l===void 0&&(l=e[s]),i?P$(n,s,l):M$(n,s,l)}return n}var fpe=Math.max;function dpe(e,t,n){return t=fpe(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=fpe(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),Abt(e,this,s)}}function rxt(e,t){return cpe(dpe(e,t,vL),e+"")}var ixt=9007199254740991;function xL(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ixt}function Xf(e){return e!=null&&xL(e.length)&&!xm(e)}function oxt(e,t,n){if(!la(n))return!1;var r=typeof t;return(r=="number"?Xf(n)&&$$(t,n.length):r=="string"&&t in n)?hx(n[t],e):!1}function hpe(e){return rxt(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&oxt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var axt=Object.prototype;function T$(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||axt;return e===n}function sxt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var lxt="[object Arguments]";function ppe(e){return Ra(e)&&dc(e)==lxt}var vpe=Object.prototype,cxt=vpe.hasOwnProperty,uxt=vpe.propertyIsEnumerable,px=ppe(function(){return arguments}())?ppe:function(e){return Ra(e)&&cxt.call(e,"callee")&&!uxt.call(e,"callee")};function fxt(){return!1}var gpe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mpe=gpe&&typeof module=="object"&&module&&!module.nodeType&&module,dxt=mpe&&mpe.exports===gpe,ype=dxt?El.Buffer:void 0,hxt=ype?ype.isBuffer:void 0,vx=hxt||fxt,pxt="[object Arguments]",vxt="[object Array]",gxt="[object Boolean]",mxt="[object Date]",yxt="[object Error]",bxt="[object Function]",xxt="[object Map]",Sxt="[object Number]",wxt="[object Object]",Cxt="[object RegExp]",Oxt="[object Set]",Ext="[object String]",_xt="[object WeakMap]",$xt="[object ArrayBuffer]",Pxt="[object DataView]",Mxt="[object Float32Array]",Txt="[object Float64Array]",Ixt="[object Int8Array]",Rxt="[object Int16Array]",kxt="[object Int32Array]",Nxt="[object Uint8Array]",Axt="[object Uint8ClampedArray]",Lxt="[object Uint16Array]",jxt="[object Uint32Array]",qr={};qr[Mxt]=qr[Txt]=qr[Ixt]=qr[Rxt]=qr[kxt]=qr[Nxt]=qr[Axt]=qr[Lxt]=qr[jxt]=!0,qr[pxt]=qr[vxt]=qr[$xt]=qr[gxt]=qr[Pxt]=qr[mxt]=qr[yxt]=qr[bxt]=qr[xxt]=qr[Sxt]=qr[wxt]=qr[Cxt]=qr[Oxt]=qr[Ext]=qr[_xt]=!1;function Dxt(e){return Ra(e)&&xL(e.length)&&!!qr[dc(e)]}function SL(e){return function(t){return e(t)}}var bpe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,gx=bpe&&typeof module=="object"&&module&&!module.nodeType&&module,Fxt=gx&&gx.exports===bpe,wL=Fxt&&qhe.process,wm=function(){try{var e=gx&&gx.require&&gx.require("util").types;return e||wL&&wL.binding&&wL.binding("util")}catch(t){}}(),xpe=wm&&wm.isTypedArray,CL=xpe?SL(xpe):Dxt,Bxt=Object.prototype,zxt=Bxt.hasOwnProperty;function Spe(e,t){var n=ir(e),r=!n&&px(e),i=!n&&!r&&vx(e),o=!n&&!r&&!i&&CL(e),a=n||r||i||o,s=a?sxt(e.length,String):[],l=s.length;for(var c in e)(t||zxt.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||$$(c,l)))&&s.push(c);return s}function wpe(e,t){return function(n){return e(t(n))}}var Hxt=wpe(Object.keys,Object),Wxt=Object.prototype,Vxt=Wxt.hasOwnProperty;function Uxt(e){if(!T$(e))return Hxt(e);var t=[];for(var n in Object(e))Vxt.call(e,n)&&n!="constructor"&&t.push(n);return t}function Zh(e){return Xf(e)?Spe(e):Uxt(e)}var qxt=Object.prototype,Gxt=qxt.hasOwnProperty,Cpe=hpe(function(e,t){if(T$(t)||Xf(t)){Xh(t,Zh(t),e);return}for(var n in t)Gxt.call(t,n)&&M$(e,n,t[n])});function Kxt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Yxt=Object.prototype,Xxt=Yxt.hasOwnProperty;function Zxt(e){if(!la(e))return Kxt(e);var t=T$(e),n=[];for(var r in e)r=="constructor"&&(t||!Xxt.call(e,r))||n.push(r);return n}function mx(e){return Xf(e)?Spe(e,!0):Zxt(e)}var Qxt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jxt=/^\w*$/;function OL(e,t){if(ir(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||fx(e)?!0:Jxt.test(e)||!Qxt.test(e)||t!=null&&e in Object(t)}var yx=Yh(Object,"create");function e2t(){this.__data__=yx?yx(null):{},this.size=0}function t2t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var n2t="__lodash_hash_undefined__",r2t=Object.prototype,i2t=r2t.hasOwnProperty;function o2t(e){var t=this.__data__;if(yx){var n=t[e];return n===n2t?void 0:n}return i2t.call(t,e)?t[e]:void 0}var a2t=Object.prototype,s2t=a2t.hasOwnProperty;function l2t(e){var t=this.__data__;return yx?t[e]!==void 0:s2t.call(t,e)}var c2t="__lodash_hash_undefined__";function u2t(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yx&&t===void 0?c2t:t,this}function Qh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qh.prototype.clear=e2t,Qh.prototype.delete=t2t,Qh.prototype.get=o2t,Qh.prototype.has=l2t,Qh.prototype.set=u2t;function f2t(){this.__data__=[],this.size=0}function I$(e,t){for(var n=e.length;n--;)if(hx(e[n][0],t))return n;return-1}var d2t=Array.prototype,h2t=d2t.splice;function p2t(e){var t=this.__data__,n=I$(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():h2t.call(t,n,1),--this.size,!0}function v2t(e){var t=this.__data__,n=I$(t,e);return n<0?void 0:t[n][1]}function g2t(e){return I$(this.__data__,e)>-1}function m2t(e,t){var n=this.__data__,r=I$(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function gu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gu.prototype.clear=f2t,gu.prototype.delete=p2t,gu.prototype.get=v2t,gu.prototype.has=g2t,gu.prototype.set=m2t;var bx=Yh(El,"Map");function y2t(){this.size=0,this.__data__={hash:new Qh,map:new(bx||gu),string:new Qh}}function b2t(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function R$(e,t){var n=e.__data__;return b2t(t)?n[typeof t=="string"?"string":"hash"]:n.map}function x2t(e){var t=R$(this,e).delete(e);return this.size-=t?1:0,t}function S2t(e){return R$(this,e).get(e)}function w2t(e){return R$(this,e).has(e)}function C2t(e,t){var n=R$(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function mu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mu.prototype.clear=y2t,mu.prototype.delete=x2t,mu.prototype.get=S2t,mu.prototype.has=w2t,mu.prototype.set=C2t;var O2t="Expected a function";function EL(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(O2t);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(EL.Cache||mu),n}EL.Cache=mu;var E2t=500;function _2t(e){var t=EL(e,function(r){return n.size===E2t&&n.clear(),r}),n=t.cache;return t}var $2t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P2t=/\\(\\)?/g,M2t=_2t(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace($2t,function(n,r,i,o){t.push(i?o.replace(P2t,"$1"):r||n)}),t});function _L(e){return e==null?"":C$(e)}function Cm(e,t){return ir(e)?e:OL(e,t)?[e]:M2t(_L(e))}var T2t=1/0;function Om(e){if(typeof e=="string"||fx(e))return e;var t=e+"";return t=="0"&&1/e==-T2t?"-0":t}function k$(e,t){t=Cm(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Om(t[n++])];return n&&n==r?e:void 0}function Mr(e,t,n){var r=e==null?void 0:k$(e,t);return r===void 0?n:r}function $L(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Ope=Hs?Hs.isConcatSpreadable:void 0;function I2t(e){return ir(e)||px(e)||!!(Ope&&e&&e[Ope])}function R2t(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=I2t),i||(i=[]);++o<a;){var s=e[o];n(s)?$L(i,s):i[i.length]=s}return i}function k2t(e){var t=e==null?0:e.length;return t?R2t(e):[]}function PL(e){return cpe(dpe(e,void 0,k2t),e+"")}var ML=wpe(Object.getPrototypeOf,Object),N2t="[object Object]",A2t=Function.prototype,L2t=Object.prototype,Epe=A2t.toString,j2t=L2t.hasOwnProperty,D2t=Epe.call(Object);function TL(e){if(!Ra(e)||dc(e)!=N2t)return!1;var t=ML(e);if(t===null)return!0;var n=j2t.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Epe.call(n)==D2t}function F2t(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var B2t=El.isFinite,z2t=Math.min;function H2t(e){var t=Math[e];return function(n,r){if(n=Jhe(n),r=r==null?0:z2t(tpe(r),292),r&&B2t(n)){var i=(_L(n)+"e").split("e"),o=t(i[0]+"e"+(+i[1]+r));return i=(_L(o)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return t(n)}}var W2t=H2t("ceil");function V2t(){this.__data__=new gu,this.size=0}function U2t(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function q2t(e){return this.__data__.get(e)}function G2t(e){return this.__data__.has(e)}var K2t=200;function Y2t(e,t){var n=this.__data__;if(n instanceof gu){var r=n.__data__;if(!bx||r.length<K2t-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new mu(r)}return n.set(e,t),this.size=n.size,this}function _l(e){var t=this.__data__=new gu(e);this.size=t.size}_l.prototype.clear=V2t,_l.prototype.delete=U2t,_l.prototype.get=q2t,_l.prototype.has=G2t,_l.prototype.set=Y2t;function X2t(e,t){return e&&Xh(t,Zh(t),e)}function Z2t(e,t){return e&&Xh(t,mx(t),e)}var _pe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$pe=_pe&&typeof module=="object"&&module&&!module.nodeType&&module,Q2t=$pe&&$pe.exports===_pe,Ppe=Q2t?El.Buffer:void 0,Mpe=Ppe?Ppe.allocUnsafe:void 0;function Tpe(e,t){if(t)return e.slice();var n=e.length,r=Mpe?Mpe(n):new e.constructor(n);return e.copy(r),r}function J2t(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Ipe(){return[]}var eSt=Object.prototype,tSt=eSt.propertyIsEnumerable,Rpe=Object.getOwnPropertySymbols,IL=Rpe?function(e){return e==null?[]:(e=Object(e),J2t(Rpe(e),function(t){return tSt.call(e,t)}))}:Ipe;function nSt(e,t){return Xh(e,IL(e),t)}var rSt=Object.getOwnPropertySymbols,kpe=rSt?function(e){for(var t=[];e;)$L(t,IL(e)),e=ML(e);return t}:Ipe;function iSt(e,t){return Xh(e,kpe(e),t)}function Npe(e,t,n){var r=t(e);return ir(e)?r:$L(r,n(e))}function RL(e){return Npe(e,Zh,IL)}function Ape(e){return Npe(e,mx,kpe)}var kL=Yh(El,"DataView"),NL=Yh(El,"Promise"),Em=Yh(El,"Set"),Lpe="[object Map]",oSt="[object Object]",jpe="[object Promise]",Dpe="[object Set]",Fpe="[object WeakMap]",Bpe="[object DataView]",aSt=Kh(kL),sSt=Kh(bx),lSt=Kh(NL),cSt=Kh(Em),uSt=Kh(dx),$l=dc;(kL&&$l(new kL(new ArrayBuffer(1)))!=Bpe||bx&&$l(new bx)!=Lpe||NL&&$l(NL.resolve())!=jpe||Em&&$l(new Em)!=Dpe||dx&&$l(new dx)!=Fpe)&&($l=function(e){var t=dc(e),n=t==oSt?e.constructor:void 0,r=n?Kh(n):"";if(r)switch(r){case aSt:return Bpe;case sSt:return Lpe;case lSt:return jpe;case cSt:return Dpe;case uSt:return Fpe}return t});var fSt=Object.prototype,dSt=fSt.hasOwnProperty;function hSt(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&dSt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var N$=El.Uint8Array;function AL(e){var t=new e.constructor(e.byteLength);return new N$(t).set(new N$(e)),t}function pSt(e,t){var n=t?AL(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var vSt=/\w*$/;function gSt(e){var t=new e.constructor(e.source,vSt.exec(e));return t.lastIndex=e.lastIndex,t}var zpe=Hs?Hs.prototype:void 0,Hpe=zpe?zpe.valueOf:void 0;function mSt(e){return Hpe?Object(Hpe.call(e)):{}}function Wpe(e,t){var n=t?AL(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ySt="[object Boolean]",bSt="[object Date]",xSt="[object Map]",SSt="[object Number]",wSt="[object RegExp]",CSt="[object Set]",OSt="[object String]",ESt="[object Symbol]",_St="[object ArrayBuffer]",$St="[object DataView]",PSt="[object Float32Array]",MSt="[object Float64Array]",TSt="[object Int8Array]",ISt="[object Int16Array]",RSt="[object Int32Array]",kSt="[object Uint8Array]",NSt="[object Uint8ClampedArray]",ASt="[object Uint16Array]",LSt="[object Uint32Array]";function jSt(e,t,n){var r=e.constructor;switch(t){case _St:return AL(e);case ySt:case bSt:return new r(+e);case $St:return pSt(e,n);case PSt:case MSt:case TSt:case ISt:case RSt:case kSt:case NSt:case ASt:case LSt:return Wpe(e,n);case xSt:return new r;case SSt:case OSt:return new r(e);case wSt:return gSt(e);case CSt:return new r;case ESt:return mSt(e)}}function Vpe(e){return typeof e.constructor=="function"&&!T$(e)?mL(ML(e)):{}}var DSt="[object Map]";function FSt(e){return Ra(e)&&$l(e)==DSt}var Upe=wm&&wm.isMap,BSt=Upe?SL(Upe):FSt,zSt="[object Set]";function HSt(e){return Ra(e)&&$l(e)==zSt}var qpe=wm&&wm.isSet,WSt=qpe?SL(qpe):HSt,VSt=1,USt=2,qSt=4,Gpe="[object Arguments]",GSt="[object Array]",KSt="[object Boolean]",YSt="[object Date]",XSt="[object Error]",Kpe="[object Function]",ZSt="[object GeneratorFunction]",QSt="[object Map]",JSt="[object Number]",Ype="[object Object]",ewt="[object RegExp]",twt="[object Set]",nwt="[object String]",rwt="[object Symbol]",iwt="[object WeakMap]",owt="[object ArrayBuffer]",awt="[object DataView]",swt="[object Float32Array]",lwt="[object Float64Array]",cwt="[object Int8Array]",uwt="[object Int16Array]",fwt="[object Int32Array]",dwt="[object Uint8Array]",hwt="[object Uint8ClampedArray]",pwt="[object Uint16Array]",vwt="[object Uint32Array]",jr={};jr[Gpe]=jr[GSt]=jr[owt]=jr[awt]=jr[KSt]=jr[YSt]=jr[swt]=jr[lwt]=jr[cwt]=jr[uwt]=jr[fwt]=jr[QSt]=jr[JSt]=jr[Ype]=jr[ewt]=jr[twt]=jr[nwt]=jr[rwt]=jr[dwt]=jr[hwt]=jr[pwt]=jr[vwt]=!0,jr[XSt]=jr[Kpe]=jr[iwt]=!1;function xx(e,t,n,r,i,o){var a,s=t&VSt,l=t&USt,c=t&qSt;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!la(e))return e;var u=ir(e);if(u){if(a=hSt(e),!s)return bL(e,a)}else{var f=$l(e),d=f==Kpe||f==ZSt;if(vx(e))return Tpe(e,s);if(f==Ype||f==Gpe||d&&!i){if(a=l||d?{}:Vpe(e),!s)return l?iSt(e,Z2t(a,e)):nSt(e,X2t(a,e))}else{if(!jr[f])return i?e:{};a=jSt(e,f,s)}}o||(o=new _l);var h=o.get(e);if(h)return h;o.set(e,a),WSt(e)?e.forEach(function(g){a.add(xx(g,t,n,g,e,o))}):BSt(e)&&e.forEach(function(g,m){a.set(m,xx(g,t,n,m,e,o))});var p=c?l?Ape:RL:l?mx:Zh,v=u?void 0:p(e);return Kbt(v||e,function(g,m){v&&(m=g,g=e[m]),M$(a,m,xx(g,t,n,m,e,o))}),a}var gwt=1,mwt=4;function Xpe(e){return xx(e,gwt|mwt)}var ywt="__lodash_hash_undefined__";function bwt(e){return this.__data__.set(e,ywt),this}function xwt(e){return this.__data__.has(e)}function Sx(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new mu;++t<n;)this.add(e[t])}Sx.prototype.add=Sx.prototype.push=bwt,Sx.prototype.has=xwt;function Swt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Zpe(e,t){return e.has(t)}var wwt=1,Cwt=2;function Qpe(e,t,n,r,i,o){var a=n&wwt,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,h=n&Cwt?new Sx:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var p=e[f],v=t[f];if(r)var g=a?r(v,p,f,t,e,o):r(p,v,f,e,t,o);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!Swt(t,function(m,y){if(!Zpe(h,y)&&(p===m||i(p,m,n,r,o)))return h.push(y)})){d=!1;break}}else if(!(p===v||i(p,v,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function Owt(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function LL(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Ewt=1,_wt=2,$wt="[object Boolean]",Pwt="[object Date]",Mwt="[object Error]",Twt="[object Map]",Iwt="[object Number]",Rwt="[object RegExp]",kwt="[object Set]",Nwt="[object String]",Awt="[object Symbol]",Lwt="[object ArrayBuffer]",jwt="[object DataView]",Jpe=Hs?Hs.prototype:void 0,jL=Jpe?Jpe.valueOf:void 0;function Dwt(e,t,n,r,i,o,a){switch(n){case jwt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Lwt:return!(e.byteLength!=t.byteLength||!o(new N$(e),new N$(t)));case $wt:case Pwt:case Iwt:return hx(+e,+t);case Mwt:return e.name==t.name&&e.message==t.message;case Rwt:case Nwt:return e==t+"";case Twt:var s=Owt;case kwt:var l=r&Ewt;if(s||(s=LL),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=_wt,a.set(e,t);var u=Qpe(s(e),s(t),r,i,o,a);return a.delete(e),u;case Awt:if(jL)return jL.call(e)==jL.call(t)}return!1}var Fwt=1,Bwt=Object.prototype,zwt=Bwt.hasOwnProperty;function Hwt(e,t,n,r,i,o){var a=n&Fwt,s=RL(e),l=s.length,c=RL(t),u=c.length;if(l!=u&&!a)return!1;for(var f=l;f--;){var d=s[f];if(!(a?d in t:zwt.call(t,d)))return!1}var h=o.get(e),p=o.get(t);if(h&&p)return h==t&&p==e;var v=!0;o.set(e,t),o.set(t,e);for(var g=a;++f<l;){d=s[f];var m=e[d],y=t[d];if(r)var x=a?r(y,m,d,t,e,o):r(m,y,d,e,t,o);if(!(x===void 0?m===y||i(m,y,n,r,o):x)){v=!1;break}g||(g=d=="constructor")}if(v&&!g){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(v=!1)}return o.delete(e),o.delete(t),v}var Wwt=1,eve="[object Arguments]",tve="[object Array]",A$="[object Object]",Vwt=Object.prototype,nve=Vwt.hasOwnProperty;function Uwt(e,t,n,r,i,o){var a=ir(e),s=ir(t),l=a?tve:$l(e),c=s?tve:$l(t);l=l==eve?A$:l,c=c==eve?A$:c;var u=l==A$,f=c==A$,d=l==c;if(d&&vx(e)){if(!vx(t))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new _l),a||CL(e)?Qpe(e,t,n,r,i,o):Dwt(e,t,l,n,r,i,o);if(!(n&Wwt)){var h=u&&nve.call(e,"__wrapped__"),p=f&&nve.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,g=p?t.value():t;return o||(o=new _l),i(v,g,n,r,o)}}return d?(o||(o=new _l),Hwt(e,t,n,r,i,o)):!1}function L$(e,t,n,r,i){return e===t?!0:e==null||t==null||!Ra(e)&&!Ra(t)?e!==e&&t!==t:Uwt(e,t,n,r,L$,i)}var qwt=1,Gwt=2;function Kwt(e,t,n,r){var i=n.length,o=i;if(e==null)return!o;for(e=Object(e);i--;){var a=n[i];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){a=n[i];var s=a[0],l=e[s],c=a[1];if(a[2]){if(l===void 0&&!(s in e))return!1}else{var u=new _l,f;if(!(f===void 0?L$(c,l,qwt|Gwt,r,u):f))return!1}}return!0}function rve(e){return e===e&&!la(e)}function Ywt(e){for(var t=Zh(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,rve(i)]}return t}function ive(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Xwt(e){var t=Ywt(e);return t.length==1&&t[0][2]?ive(t[0][0],t[0][1]):function(n){return n===e||Kwt(n,e,t)}}function Zwt(e,t){return e!=null&&t in Object(e)}function Qwt(e,t,n){t=Cm(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=Om(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&xL(i)&&$$(a,i)&&(ir(e)||px(e)))}function ove(e,t){return e!=null&&Qwt(e,t,Zwt)}var Jwt=1,eCt=2;function tCt(e,t){return OL(e)&&rve(t)?ive(Om(e),t):function(n){var r=Mr(n,e);return r===void 0&&r===t?ove(n,e):L$(t,r,Jwt|eCt)}}function nCt(e){return function(t){return t==null?void 0:t[e]}}function rCt(e){return function(t){return k$(t,e)}}function iCt(e){return OL(e)?nCt(Om(e)):rCt(e)}function DL(e){return typeof e=="function"?e:e==null?vL:typeof e=="object"?ir(e)?tCt(e[0],e[1]):Xwt(e):iCt(e)}function oCt(e,t,n,r){for(var i=-1,o=e==null?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function aCt(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[++i];if(n(o[l],l,o)===!1)break}return t}}var ave=aCt();function sCt(e,t){return e&&ave(e,t,Zh)}function lCt(e,t){return function(n,r){if(n==null)return n;if(!Xf(n))return e(n,r);for(var i=n.length,o=-1,a=Object(n);++o<i&&r(a[o],o,a)!==!1;);return n}}var sve=lCt(sCt);function cCt(e,t,n,r){return sve(e,function(i,o,a){t(r,i,n(i),a)}),r}function uCt(e,t){return function(n,r){var i=ir(n)?oCt:cCt,o=t?t():{};return i(n,e,DL(r),o)}}function FL(e,t,n){(n!==void 0&&!hx(e[t],n)||n===void 0&&!(t in e))&&P$(e,t,n)}function fCt(e){return Ra(e)&&Xf(e)}function BL(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function dCt(e){return Xh(e,mx(e))}function hCt(e,t,n,r,i,o,a){var s=BL(e,n),l=BL(t,n),c=a.get(l);if(c){FL(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,f=u===void 0;if(f){var d=ir(l),h=!d&&vx(l),p=!d&&!h&&CL(l);u=l,d||h||p?ir(s)?u=s:fCt(s)?u=bL(s):h?(f=!1,u=Tpe(l,!0)):p?(f=!1,u=Wpe(l,!0)):u=[]:TL(l)||px(l)?(u=s,px(s)?u=dCt(s):(!la(s)||xm(s))&&(u=Vpe(l))):f=!1}f&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),FL(e,n,u)}function lve(e,t,n,r,i){e!==t&&ave(t,function(o,a){if(i||(i=new _l),la(o))hCt(e,t,a,n,lve,r,i);else{var s=r?r(BL(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),FL(e,a,s)}},mx)}var pCt=hpe(function(e,t,n,r){lve(e,t,n,r)});function vCt(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var gCt=lbt(function(e,t){return e/t},1);function mCt(e,t){var n=-1,r=Xf(e)?Array(e.length):[];return sve(e,function(i,o,a){r[++n]=t(i,o,a)}),r}function _m(e,t){var n=ir(e)?w$:mCt;return n(e,DL(t))}var yCt="Expected a function",bCt=8,xCt=32,SCt=128,wCt=256;function CCt(e){return PL(function(t){for(var n=t.length,r=n,i=Yf.prototype.thru;r--;){var o=t[r];if(typeof o!="function")throw new TypeError(yCt);if(i&&!a&&O$(o)=="wrapper")var a=new Yf([],!0)}for(r=a?r:n;++r<n;){o=t[r];var s=O$(o),l=s=="wrapper"?ape(o):void 0;l&&lpe(l[0])&&l[1]==(SCt|bCt|xCt|wCt)&&!l[4].length&&l[9]==1?a=a[O$(l[0])].apply(a,l[3]):a=o.length==1&&lpe(o)?a[s]():a.thru(o)}return function(){var c=arguments,u=c[0];if(a&&c.length==1&&ir(u))return a.plant(u).value();for(var f=0,d=n?t[f].apply(this,c):u;++f<n;)d=t[f].call(this,d);return d}})}var Qn=CCt(),OCt=Object.prototype,ECt=OCt.hasOwnProperty,cve=uCt(function(e,t,n){ECt.call(e,n)?e[n].push(t):P$(e,n,[t])}),_Ct="[object String]";function uve(e){return typeof e=="string"||!ir(e)&&Ra(e)&&dc(e)==_Ct}function $Ct(e,t){return w$(t,function(n){return e[n]})}function PCt(e){return e==null?[]:$Ct(e,Zh(e))}var MCt=Math.max;function TCt(e,t,n,r){e=Xf(e)?e:PCt(e),n=n&&!r?tpe(n):0;var i=e.length;return n<0&&(n=MCt(i+n,0)),uve(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&upe(e,t,n)>-1}function ICt(e,t){return t.length<2?e:k$(e,F2t(t,0,-1))}var RCt="[object Boolean]";function zL(e){return e===!0||e===!1||Ra(e)&&dc(e)==RCt}function fve(e,t){return L$(e,t)}var kCt="[object Number]";function $m(e){return typeof e=="number"||Ra(e)&&dc(e)==kCt}function NCt(e){return e==null}function ACt(e){return e===void 0}function LCt(e,t){return t=Cm(t,e),e=ICt(e,t),e==null||delete e[Om(vCt(t))]}function jCt(e){return TL(e)?void 0:e}var DCt=1,FCt=2,BCt=4,HL=PL(function(e,t){var n={};if(e==null)return n;var r=!1;t=w$(t,function(o){return o=Cm(o,e),r||(r=o.length>1),o}),Xh(e,Ape(e),n),r&&(n=xx(n,DCt|FCt|BCt,jCt));for(var i=t.length;i--;)LCt(n,t[i]);return n});function dve(e,t,n,r){if(!la(e))return e;t=Cm(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var l=Om(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=a){var u=s[l];c=void 0,c===void 0&&(c=la(u)?u:$$(t[i+1])?[]:{})}M$(s,l,c),s=s[l]}return e}function zCt(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=k$(e,a);n(s,a)&&dve(o,Cm(a,e),s)}return o}function HCt(e,t){return zCt(e,t,function(n,r){return ove(e,r)})}var hve=PL(function(e,t){return e==null?{}:HCt(e,t)});function Qt(e,t,n){return e==null?e:dve(e,t,n)}var WCt=1/0,VCt=Em&&1/LL(new Em([,-0]))[1]==WCt?function(e){return new Em(e)}:ope,UCt=200;function qCt(e,t,n){var r=-1,i=Qbt,o=e.length,a=!0,s=[],l=s;if(o>=UCt){var c=t?null:VCt(e);if(c)return LL(c);a=!1,i=Zpe,l=new Sx}else l=t?[]:s;e:for(;++r<o;){var u=e[r],f=t?t(u):u;if(u=u!==0?u:0,a&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(u)}else i(l,f,n)||(l!==s&&l.push(f),s.push(u))}return s}function WL(e,t){return e&&e.length?qCt(e,DL(t)):[]}var GCt=function(e){var t=/react|\.jsx|children:\[\(|return\s+[A-Za-z0-9].createElement\((?!['"][g|circle|ellipse|image|rect|line|polyline|polygon|text|path|html|mesh]['"])([^\)])*,/i;return t.test(e)},VL=function(){return VL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},VL.apply(this,arguments)},pve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function KCt(e,t){var n=b.useRef(),r=b.useRef(),i=b.useRef(null),o=t.onReady,a=t.onEvent,s=function(u,f){var d;u===void 0&&(u="image/png");var h=(d=i.current)===null||d===void 0?void 0:d.getElementsByTagName("canvas")[0];return h==null?void 0:h.toDataURL(u,f)},l=function(u,f,d){u===void 0&&(u="download"),f===void 0&&(f="image/png");var h=u;u.indexOf(".")===-1&&(h="".concat(u,".").concat(f.split("/")[1]));var p=s(f,d),v=document.createElement("a");return v.href=p,v.download=h,document.body.appendChild(v),v.click(),document.body.removeChild(v),v=null,h},c=function(u,f){f===void 0&&(f=!1);var d=Object.keys(u),h=f;d.forEach(function(p){var v=u[p];p==="tooltip"&&(h=!0),xm(v)&&GCt("".concat(v))?u[p]=function(){for(var g=[],m=0;m<arguments.length;m++)g[m]=arguments[m];return U1t(v.apply(void 0,g),h)}:ir(v)?v.forEach(function(g){c(g,h)}):la(v)?c(v,h):h=f})};return b.useEffect(function(){if(n.current&&!fve(r.current,t)){var u=!1;if(r.current){var f=r.current;f.data;var d=pve(f,["data"]);t.data;var h=pve(t,["data"]);u=fve(d,h)}r.current=Xpe(t),u?n.current.changeData(Mr(t,"data")):(c(t),n.current.update(t),n.current.render())}},[t]),b.useEffect(function(){if(!i.current)return function(){return null};r.current||(r.current=Xpe(t)),c(t);var u=new e(i.current,VL({},t));u.toDataURL=s,u.downloadImage=l,u.render(),n.current=u,o&&o(u);var f=function(d){a&&a(u,d)};return u.on("*",f),function(){n.current&&(n.current.destroy(),n.current.off("*",f),n.current=void 0)}},[]),{chart:n,container:i}}const YCt={field:"value",size:[1,1],round:!1,padding:0,sort:(e,t)=>t.value-e.value,as:["x","y"],ignoreParentValue:!0},XCt="nodeIndex",wx="childNodeCount",ZCt="nodeAncestor",UL="Invalid field: it must be a string!";function QCt(e,t){const{field:n,fields:r}=e;if(Wr(n))return n;if(Hi(n))return console.warn(UL),n[0];if(console.warn(`${UL} will try to get fields instead.`),Wr(r))return r;if(Hi(r)&&r.length)return r[0];throw new TypeError(UL)}function JCt(e){const t=[];if(e&&e.each){let n,r;e.each(i=>{var o,a;i.parent!==n?(n=i.parent,r=0):r+=1;const s=WQ((((o=i.ancestors)===null||o===void 0?void 0:o.call(i))||[]).map(l=>t.find(c=>c.name===l.name)||l),({depth:l})=>l>0&&l<i.depth);i[ZCt]=s,i[wx]=((a=i.children)===null||a===void 0?void 0:a.length)||0,i[XCt]=r,t.push(i)})}else e&&e.eachNode&&e.eachNode(n=>{t.push(n)});return t}function eOt(e,t){t=EGe({},YCt,t);const n=t.as;if(!Hi(n)||n.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');let r;try{r=QCt(t)}catch(l){console.warn(l)}const o=(l=>Hst().size(t.size).round(t.round).padding(t.padding)(Zg(l).sum(c=>_1(c.children)?t.ignoreParentValue?0:c[r]-VQ(c.children,(u,f)=>u+f[r],0):c[r]).sort(t.sort)))(e),a=n[0],s=n[1];return o.each(l=>{var c,u;l[a]=[l.x0,l.x1,l.x1,l.x0],l[s]=[l.y1,l.y1,l.y0,l.y0],l.name=l.name||((c=l.data)===null||c===void 0?void 0:c.name)||((u=l.data)===null||u===void 0?void 0:u.label),l.data.name=l.name,["x0","x1","y0","y1"].forEach(f=>{n.indexOf(f)===-1&&delete l[f]})}),JCt(o)}var tOt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Pm="sunburst",qL="markType",vve="path",j$="ancestor-node";function nOt(e){const{data:t,encode:n}=e,{color:r,value:i}=n,a=eOt(t,{field:i,type:"hierarchy.partition",as:["x","y"]}),s=[];return a.forEach(l=>{var c,u,f,d;if(l.depth===0)return null;let h=l.data.name;const p=[h];let v=Object.assign({},l);for(;v.depth>1;)h=`${(c=v.parent.data)===null||c===void 0?void 0:c.name} / ${h}`,p.unshift((u=v.parent.data)===null||u===void 0?void 0:u.name),v=v.parent;const g=Object.assign(Object.assign(Object.assign({},lk(l.data,[i])),{[vve]:h,[j$]:v.data.name}),l);r&&r!==j$&&(g[r]=l.data[r]||((d=(f=l.parent)===null||f===void 0?void 0:f.data)===null||d===void 0?void 0:d[r])),s.push(g)}),s.map(l=>{const c=l.x.slice(0,2),u=[l.y[2],l.y[0]];return c[0]===c[1]&&(u[0]=u[1]=(l.y[2]+l.y[0])/2),Object.assign(Object.assign({},l),{x:c,y:u,fillOpacity:Math.pow(.85,l.depth)})})}const gve={id:Pm,encode:{x:"x",y:"y",key:vve,color:j$,value:"value"},axis:{x:!1,y:!1},style:{[qL]:Pm,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[wx]:wx,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},mve=e=>{const{encode:t,data:n=[],legend:r}=e,i=tOt(e,["encode","data","legend"]),o=Object.assign(Object.assign({},i.coordinate),{innerRadius:Math.max(Hn(i,["coordinate","innerRadius"],.2),1e-5)}),a=Object.assign(Object.assign({},gve.encode),t),{value:s}=a,l=nOt({encode:a,data:n});return console.log(l,"rectData"),[Ue({},gve,Object.assign(Object.assign({type:"rect",data:l,encode:a,tooltip:{title:"path",items:[c=>({name:s,value:c[s]})]}},i),{coordinate:o}))]};mve.props={};var rOt=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(f){a(f)}}function l(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const iOt=e=>e.querySelectorAll(".element").filter(t=>Hn(t,["style",qL])===Pm);function oOt(e){return Jt(e).select(`.${Ab}`).node()}const aOt={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}};function sOt(e={}){const{breadCrumb:t={},isFixedColor:n=!1}=e,r=Ue({},aOt,t);return i=>{const{update:o,setState:a,container:s,view:l,options:c}=i,u=s.ownerDocument,f=oOt(s),d=c.marks.find(({id:x})=>x===Pm),{state:h}=d,p=u.createElement("g");f.appendChild(p);const v=(x,S)=>rOt(this,void 0,void 0,function*(){if(p.removeChildren(),x){const w=u.createElement("text",{style:Object.assign({x:0,text:r.rootText,depth:0},r.style)});p.appendChild(w);let C="";const O=x==null?void 0:x.split(" / ");let E=r.style.y,_=p.getBBox().width;const $=f.getBBox().width,P=O.map((T,I)=>{const M=u.createElement("text",{style:Object.assign(Object.assign({x:_,text:" / "},r.style),{y:E})});p.appendChild(M),_+=M.getBBox().width,C=`${C}${T} / `;const R=u.createElement("text",{name:C.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:T,x:_,depth:I+1},r.style),{y:E})});return p.appendChild(R),_+=R.getBBox().width,_>$&&(E=p.getBBox().height,_=0,M.attr({x:_,y:E}),_+=M.getBBox().width,R.attr({x:_,y:E}),_+=R.getBBox().width),R});[w,...P].forEach((T,I)=>{if(I===P.length)return;const M=Object.assign({},T.attributes);T.attr("cursor","pointer"),T.addEventListener("mouseenter",()=>{T.attr(r.active)}),T.addEventListener("mouseleave",()=>{T.attr(M)}),T.addEventListener("click",()=>{v(T.name,Hn(T,["style","depth"]))})})}a("drillDown",w=>{const{marks:C}=w,O=C.map(E=>{if(E.id!==Pm&&E.type!=="rect")return E;const{data:_}=E,$=Object.fromEntries(["color"].map(T=>[T,{domain:l.scale[T].getOptions().domain}])),P=_.filter(T=>{const I=T.path;return n||(T[j$]=I.split(" / ")[S]),x?new RegExp(`^${x}.+`).test(I):!0});return Ue({},E,n?{data:P,scale:$}:{data:P})});return Object.assign(Object.assign({},w),{marks:O})}),yield o()}),g=x=>{const S=x.target;if(Hn(S,["style",qL])!==Pm||Hn(S,["markType"])!=="rect"||!Hn(S,["style",wx]))return;const w=Hn(S,["__data__","key"]),C=Hn(S,["style","depth"]);S.style.cursor="pointer",v(w,C)};f.addEventListener("click",g);const m=ak(Object.assign(Object.assign({},h.active),h.inactive)),y=()=>{iOt(f).forEach(S=>{const w=Hn(S,["style",wx]);if(Hn(S,["style","cursor"])!=="pointer"&&w){S.style.cursor="pointer";const O=lk(S.attributes,m);S.addEventListener("mouseenter",()=>{S.attr(h.active)}),S.addEventListener("mouseleave",()=>{S.attr(Ue(O,h.inactive))})}})};return f.addEventListener("mousemove",y),()=>{p.remove(),f.removeEventListener("click",g),f.removeEventListener("mousemove",y)}}}function lOt(){return{"interaction.drillDown":sOt,"mark.sunburst":mve}}var D$=function(){return D$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},D$.apply(this,arguments)},cOt=u1t(D1t,D$(D$({},khe()),lOt())),or=function(e){var t=fOt(e),n=t.children,r=n===void 0?[]:n,i=HL(t,[].concat(xve,F$.map(function(c){return c.key}))),o=function(c){var u;return(u=gOt.find(function(f){return f.key===c}))===null||u===void 0?void 0:u.callback},a=function(c,u,f){var d=o(u);d?d(c,u,f):c[u]=Zf({},c[u],f)},s=function(c){Object.keys(c).forEach(function(u){if(c[u]){var f=F$.find(function(p){return p.key===u});if(f){var d=f.type,h=f.extend_keys;d?r.push(l(Zf({},hve(c,h),{type:d},c[u]))):ir(c[u])&&c[u].forEach(function(p){r.push(l(p))})}}})},l=function(c){return s(c),Object.keys(KL).forEach(function(u){var f=KL[u];if(!ACt(c[u]))if(la(f)){var d=f.value,h=f.target,p=d(c[u]);a(c,h,p)}else Qt(c,f,c[u])}),c};return r.forEach(function(c){var u=Zf({},i,c);l(Zf(c,u))}),s(t),uOt(t),e},yve=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},uOt=function(e){var t=e.children,n=t===void 0?[]:t,r=Object.keys(KL).concat(F$.map(function(i){return i.key}));return r.forEach(function(i){delete e[i]}),n.forEach(function(i){Object.keys(i).forEach(function(o){r.includes(o)&&delete i[o]})}),Object.keys(e).forEach(function(i){yve(yve([],xve,!0),XL.map(function(o){return o.key}),!0).includes(i)||delete e[i]}),e},fOt=function(e){var t=e.options,n=t.children,r=n===void 0?[]:n;return r.forEach(function(i){Object.keys(i).forEach(function(o){ir(i[o])&&o!=="data"&&(i[o]=i[o].filter(function(a){return!a[GL]}))})}),t},bve=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},dOt=function(e,t){if(ir(t))return t},Zf=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return pCt.apply(void 0,bve(bve([],e,!1),[dOt],!1))};function Cx(e){switch(typeof e){case"function":return e;case"string":return function(t){return Mr(t,[e])};default:return function(){return e}}}var Ox=function(){return Ox=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ox.apply(this,arguments)},hOt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},pOt=["renderer"],xve=["width","height","autoFit","theme","inset","insetLeft","insetRight","insetTop","insetBottom","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","depth","title","clip","children","type","data","direction"],GL="__transform__",vOt="__skipDelCustomKeys__",Jh=function(e,t){return zL(t)?{type:e,available:t}:Ox({type:e},t)},KL={xField:"encode.x",yField:"encode.y",colorField:"encode.color",angleField:"encode.y",keyField:"encode.key",sizeField:"encode.size",shapeField:"encode.shape",seriesField:"encode.series",positionField:"encode.position",textField:"encode.text",valueField:"encode.value",binField:"encode.x",srcField:"encode.src",linkColorField:"encode.linkColor",fontSizeField:"encode.fontSize",radius:"coordinate.outerRadius",innerRadius:"coordinate.innerRadius",startAngle:"coordinate.startAngle",endAngle:"coordinate.endAngle",focusX:"coordinate.focusX",focusY:"coordinate.focusY",distortionX:"coordinate.distortionX",distortionY:"coordinate.distortionY",visual:"coordinate.visual",stack:{target:"transform",value:function(e){return Jh("stackY",e)}},normalize:{target:"transform",value:function(e){return Jh("normalizeY",e)}},percent:{target:"transform",value:function(e){return Jh("normalizeY",e)}},group:{target:"transform",value:function(e){return Jh("dodgeX",e)}},sort:{target:"transform",value:function(e){return Jh("sortX",e)}},symmetry:{target:"transform",value:function(e){return Jh("symmetryY",e)}},diff:{target:"transform",value:function(e){return Jh("diffY",e)}},meta:{target:"scale",value:function(e){return e}},label:{target:"labels",value:function(e){return e}},shape:"style.shape",connectNulls:{target:"style",value:function(e){return zL(e)?{connect:e}:e}}},YL=["xField","yField","seriesField","colorField","keyField","positionField","meta","tooltip","animate","stack","normalize","percent","group","sort","symmetry","diff"],F$=[{key:"annotations",extend_keys:[]},{key:"line",type:"line",extend_keys:YL},{key:"point",type:"point",extend_keys:YL},{key:"area",type:"area",extend_keys:YL}],gOt=[{key:"transform",callback:function(e,t,n){var r;e[t]=e[t]||[];var i=n.available,o=i===void 0?!0:i,a=hOt(n,["available"]);if(o)e[t].push(Ox((r={},r[GL]=!0,r),a));else{var s=e[t].indexOf(function(l){return l.type===n.type});s!==-1&&e[t].splice(s,1)}}},{key:"labels",callback:function(e,t,n){var r;if(!n||ir(n)){e[t]=n||[];return}n.text||(n.text=e.yField),e[t]=e[t]||[],e[t].push(Ox((r={},r[GL]=!0,r),n))}}],XL=[{key:"conversionTag",shape:"ConversionTag"},{key:"axisText",shape:"BidirectionalBarAxisText"}],mOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),B$=function(){return B$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},B$.apply(this,arguments)},yOt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Sve=function(e){mOt(t,e);function t(n){n===void 0&&(n={});var r=n.style,i=yOt(n,["style"]);return e.call(this,B$({style:B$({text:"",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000",fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1},r)},i))||this}return t}(Sl),bOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),z$=function(){return z$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},z$.apply(this,arguments)},xOt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},SOt=function(e){bOt(t,e);function t(n){n===void 0&&(n={});var r=n.style,i=xOt(n,["style"]);return e.call(this,z$({style:z$({fill:"#eee"},r)},i))||this}return t}(ub),wOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),wve=function(e){wOt(t,e);function t(n,r,i){var o=e.call(this,{style:Zf(i,r)})||this;return o.chart=n,o}return t.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this)},t.prototype.disconnectedCallback=function(){},t.prototype.attributeChangedCallback=function(n){},t.prototype.update=function(n,r){var i;return this.attr(Zf({},this.attributes,n||{})),(i=this.render)===null||i===void 0?void 0:i.call(this,this.attributes,this,r)},t.prototype.clear=function(){this.removeChildren()},t.prototype.getElementsLayout=function(){var n=this.chart.getContext().canvas,r=n.document.getElementsByClassName("element"),i=[];return r.forEach(function(o){var a=o.getBBox(),s=a.x,l=a.y,c=a.width,u=a.height,f=o.__data__;i.push({bbox:a,x:s,y:l,width:c,height:u,key:f.key,data:f})}),i},t.prototype.bindEvents=function(n,r){},t}(wE),COt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),H$=function(){return H$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},H$.apply(this,arguments)},OOt=function(e){COt(t,e);function t(n,r){return e.call(this,n,r,{type:t.tag})||this}return t.prototype.getConversionTagLayout=function(){var n=this.direction==="vertical",r=this.getElementsLayout(),i=r[0],o=i.x,a=i.y,s=i.height,l=i.width,c=i.data,u=["items",0,"value"],f=Mr(c,u),d=n?r[1].y-a-s:r[1].x-o-l,h=[],p=this.attributes,v=p.size,g=v===void 0?40:v,m=p.arrowSize,y=m===void 0?20:m,x=p.spacing,S=x===void 0?4:x;return r.forEach(function(w,C){if(C>0){var O=w.x,E=w.y,_=w.height,$=w.width,P=w.data,T=w.key,I=Mr(P,u),M=g/2;if(n){var R=O+$/2,k=E;h.push({points:[[R+M,k-d+S],[R+M,k-y-S],[R,k-S],[R-M,k-y-S],[R-M,k-d+S]],center:[R,k-d/2-S],width:d,value:[f,I],key:T})}else{var R=O,k=E+_/2;h.push({points:[[O-d+S,k-M],[O-y-S,k-M],[R-S,k],[O-y-S,k+M],[O-d+S,k+M]],center:[R-d/2-S,k],width:d,value:[f,I],key:T})}f=I}}),h},t.prototype.render=function(){this.setDirection(),this.drawConversionTag()},t.prototype.setDirection=function(){var n=this.chart.getCoordinate(),r=Mr(n,"options.transformations"),i="horizontal";r.forEach(function(o){o.includes("transpose")&&(i="vertical")}),this.direction=i},t.prototype.drawConversionTag=function(){var n=this,r=this.getConversionTagLayout(),i=this.attributes,o=i.style,a=i.text,s=a.style,l=a.formatter;r.forEach(function(c){var u=c.points,f=c.center,d=c.value,h=c.key,p=d[0],v=d[1],g=f[0],m=f[1],y=new SOt({style:H$({points:u,fill:"#eee"},o),id:"polygon-".concat(h)}),x=new Sve({style:H$({x:g,y:m,text:xm(l)?l(p,v):(v/p*100).toFixed(2)+"%"},s),id:"text-".concat(h)});n.appendChild(y),n.appendChild(x)})},t.prototype.update=function(){var n=this,r=this.getConversionTagLayout();r.forEach(function(i){var o=i.points,a=i.center,s=i.key,l=a[0],c=a[1],u=n.getElementById("polygon-".concat(s)),f=n.getElementById("text-".concat(s));u.setAttribute("points",o),f.setAttribute("x",l),f.setAttribute("y",c)})},t.tag="ConversionTag",t}(wve),ZL=32,Cve=16,Ove=48,EOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ex=function(){return Ex=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ex.apply(this,arguments)},_Ot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},$Ot=function(e){EOt(t,e);function t(n,r){return e.call(this,n,r,{type:t.tag})||this}return t.prototype.render=function(){this.drawText()},t.prototype.getBidirectionalBarAxisTextLayout=function(){var n=this.attributes.layout,r=n==="vertical",i=this.getElementsLayout(),o=r?WL(i,"x"):WL(i,"y"),a=["title"],s=[],l=this.chart.getContext().views,c=Mr(l,[0,"layout"]),u=c.width,f=c.height;return o.forEach(function(d){var h=d.x,p=d.y,v=d.height,g=d.width,m=d.data,y=d.key,x=Mr(m,a);r?s.push({x:h+g/2,y:f,text:x,key:y}):s.push({x:u,y:p+v/2,text:x,key:y})}),WL(s,"text").length!==s.length&&(s=Object.values(cve(s,"text")).map(function(d){var h,p=d.reduce(function(v,g){return v+(r?g.x:g.y)},0);return Ex(Ex({},d[0]),(h={},h[r?"x":"y"]=p/d.length,h))})),s},t.prototype.transformLabelStyle=function(n){var r={},i=/^label[A-Z]/;return Object.keys(n).forEach(function(o){i.test(o)&&(r[o.replace("label","").replace(/^[A-Z]/,function(a){return a.toLowerCase()})]=n[o])}),r},t.prototype.drawText=function(){var n=this,r=this.getBidirectionalBarAxisTextLayout(),i=this.attributes,o=i.layout,a=i.labelFormatter,s=_Ot(i,["layout","labelFormatter"]);r.forEach(function(l){var c=l.x,u=l.y,f=l.text,d=l.key,h=new Sve({style:Ex({x:c,y:u,text:xm(a)?a(f):f,wordWrap:!0,wordWrapWidth:o==="horizontal"?ZL*2:120,maxLines:2,textOverflow:"ellipsis"},n.transformLabelStyle(s)),id:"text-".concat(d)});n.appendChild(h)})},t.prototype.update=function(){var n=this,r=this.getBidirectionalBarAxisTextLayout();r.forEach(function(i){var o=i.x,a=i.y,s=i.key,l=n.getElementById("text-".concat(s));l.setAttribute("x",o),l.setAttribute("y",a)})},t.tag="BidirectionalBarAxisText",t}(wve),POt={ConversionTag:OOt,BidirectionalBarAxisText:$Ot},MOt=function(){function e(t,n){this.container=new Map,this.chart=t,this.config=n,this.init()}return e.prototype.init=function(){var t=this;XL.forEach(function(n){var r,i=n.key,o=n.shape,a=t.config[i];if(a){var s=new POt[o](t.chart,a),l=t.chart.getContext().canvas;l.appendChild(s),t.container.set(i,s)}else(r=t.container.get(i))===null||r===void 0||r.clear()})},e.prototype.update=function(){var t=this;this.container.size&&XL.forEach(function(n){var r=n.key,i=t.container.get(r);i==null||i.update()})},e}(),TOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mm=function(){return Mm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Mm.apply(this,arguments)},Eve="data-chart-source-type",qn=function(e){TOt(t,e);function t(n,r){var i=e.call(this)||this;return i.container=typeof n=="string"?document.getElementById(n):n,i.options=i.mergeOption(r),i.createG2(),i.bindEvents(),i}return t.prototype.getChartOptions=function(){return Mm(Mm({},hve(this.options,pOt)),{container:this.container})},t.prototype.getSpecOptions=function(){return this.type==="base"||this[vOt]?Mm(Mm({},this.options),this.getChartOptions()):this.options},t.prototype.createG2=function(){if(!this.container)throw Error("The container is not initialized!");this.chart=new cOt(this.getChartOptions()),this.container.setAttribute(Eve,"Ant Design Charts")},t.prototype.bindEvents=function(){var n=this;this.chart&&this.chart.on("*",function(r){r!=null&&r.type&&n.emit(r.type,r)})},t.prototype.getBaseOptions=function(){return{type:"view",autoFit:!0}},t.prototype.getDefaultOptions=function(){},t.prototype.render=function(){var n=this;this.type!=="base"&&this.execAdaptor(),this.chart.options(this.getSpecOptions()),this.chart.render().then(function(){n.annotation=new MOt(n.chart,n.options)}),this.bindSizeSensor()},t.prototype.update=function(n){this.options=this.mergeOption(n)},t.prototype.mergeOption=function(n){return Zf({},this.getBaseOptions(),this.getDefaultOptions(),n)},t.prototype.changeData=function(n){this.chart.changeData(n)},t.prototype.changeSize=function(n,r){this.chart.changeSize(n,r)},t.prototype.destroy=function(){this.chart.destroy(),this.off(),this.container.removeAttribute(Eve)},t.prototype.execAdaptor=function(){var n=this.getSchemaAdaptor();n({chart:this.chart,options:this.options})},t.prototype.triggerResize=function(){this.chart.forceFit()},t.prototype.bindSizeSensor=function(){var n=this,r=this.options.autoFit,i=r===void 0?!0:r;i&&this.chart.on(rr.AFTER_CHANGE_SIZE,function(){n.annotation.update()})},t}($A),IOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ROt=function(e){IOt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="base",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"line"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return function(n){return n}},t}(qn),QL=function(){return QL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},QL.apply(this,arguments)};function kOt(e){var t=e.options,n=t.stack,r=t.tooltip,i=t.xField;if(!n)return e;var o=F$.map(function(s){return s.type}).filter(function(s){return!!s}),a=!1;return o.forEach(function(s){t[s]&&(a=!0,Qt(t,[s,"stack"],QL({y1:"y"},typeof n=="object"?n:{})))}),a&&!zL(r)&&!r&&Qt(t,"tooltip",{title:i,items:[{channel:"y"}]}),e}function fi(e){return Qn(kOt)(e)}function NOt(e){var t=e.options.layout,n=t===void 0?"horizontal":t;return e.options.coordinate.transform=n!=="horizontal"?void 0:[{type:"transpose"}],e}function AOt(e){NOt(e);var t=e.options.layout,n=t===void 0?"horizontal":t;return e.options.children.forEach(function(r){var i;!((i=r==null?void 0:r.coordinate)===null||i===void 0)&&i.transform&&(r.coordinate.transform=n!=="horizontal"?void 0:[{type:"transpose"}])}),e}function LOt(e){return Qn(fi,or)(e)}var jOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),DOt=function(e){jOt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="area",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"area"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return LOt},t}(qn),Tm=function(){return Tm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Tm.apply(this,arguments)};function _ve(e){var t=function(n){var r=n.options;Mr(r,"children.length")>1&&Qt(r,"children",[{type:"interval"}]);var i=r.scale,o=r.markBackground,a=r.data,s=r.children,l=r.yField,c=Mr(i,"y.domain",[]);if(o&&c.length&&ir(a)){var u="domainMax",f=a.map(function(d){var h;return Tm(Tm({originData:Tm({},d)},HL(d,l)),(h={},h[u]=c[c.length-1],h))});s.unshift(Tm({type:"interval",data:f,yField:u,tooltip:!1,style:{fill:"#eee"},label:!1},o))}return n};return Qn(t,fi,or)(e)}var FOt=function(){var e=function(t,n){return function(r){var i=t.fill,o=i===void 0?"#2888FF":i,a=t.stroke,s=t.fillOpacity,l=s===void 0?1:s,c=t.strokeOpacity,u=c===void 0?.2:c,f=t.pitch,d=f===void 0?8:f,h=r[0],p=r[1],v=r[2],g=r[3],m=(p[1]-h[1])/2,y=n.document,x=y.createElement("g",{}),S=y.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+m],[v[0]-d,h[1]+m],g],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u,inset:30}}),w=y.createElement("polygon",{style:{points:[[h[0]-d,h[1]+m],p,v,[v[0]-d,h[1]+m]],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u}}),C=y.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+m],p,[h[0]+d,h[1]+m]],fill:o,fillOpacity:l-.2}});return x.appendChild(S),x.appendChild(w),x.appendChild(C),x}};Ahe("shape.interval.bar25D",e)},BOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();FOt();var zOt=function(e){BOt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="Bar",n}return t.getDefaultOptions=function(){return{type:"view",coordinate:{transform:[{type:"transpose"}]},children:[{type:"interval"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0},elementHighlight:{background:!0}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return _ve},t}(qn),HOt=function(){var e=function(t,n){return function(r){var i=t.fill,o=i===void 0?"#2888FF":i,a=t.stroke,s=t.fillOpacity,l=s===void 0?1:s,c=t.strokeOpacity,u=c===void 0?.2:c,f=t.pitch,d=f===void 0?8:f,h=r[1][0]-r[0][0],p=h/2+r[0][0],v=n.document,g=v.createElement("g",{}),m=v.createElement("polygon",{style:{points:[[r[0][0],r[0][1]],[p,r[1][1]+d],[p,r[3][1]+d],[r[3][0],r[3][1]]],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u,inset:30}}),y=v.createElement("polygon",{style:{points:[[p,r[1][1]+d],[r[1][0],r[1][1]],[r[2][0],r[2][1]],[p,r[2][1]+d]],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u}}),x=v.createElement("polygon",{style:{points:[[r[0][0],r[0][1]],[p,r[1][1]-d],[r[1][0],r[1][1]],[p,r[1][1]+d]],fill:o,fillOpacity:l-.2}});return g.appendChild(y),g.appendChild(m),g.appendChild(x),g}};Ahe("shape.interval.column25D",e)},WOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();HOt();var VOt=function(e){WOt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="column",n}return t.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0},elementHighlight:{background:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return _ve},t}(qn);function UOt(e){var t=function(r){var i=r.options,o=i.children,a=o===void 0?[]:o,s=i.legend;return s&&a.forEach(function(l){if(!Mr(l,"colorField")){var c=Mr(l,"yField");Qt(l,"colorField",function(){return c})}}),r},n=function(r){var i=r.options,o=i.annotations,a=o===void 0?[]:o,s=i.children,l=s===void 0?[]:s,c=i.scale,u=!1;return Mr(c,"y.key")||l.forEach(function(f,d){if(!Mr(f,"scale.y.key")){var h="child".concat(d,"Scale");Qt(f,"scale.y.key",h);var p=f.annotations,v=p===void 0?[]:p;v.length>0&&(Qt(f,"scale.y.independent",!1),v.forEach(function(g){Qt(g,"scale.y.key",h)})),!u&&a.length>0&&Mr(f,"scale.y.independent")===void 0&&(u=!0,Qt(f,"scale.y.independent",!1),a.forEach(function(g){Qt(g,"scale.y.key",h)}))}}),r};return Qn(t,n,fi,or)(e)}var qOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$ve=function(e){qOt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="DualAxes",n}return t.getDefaultOptions=function(){return{type:"view",axis:{y:{title:!1,tick:!1},x:{title:!1}},scale:{y:{independent:!0,nice:!0}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return UOt},t}(qn);function GOt(e){var t=function(o){var a=o.options,s=a.xField,l=a.colorField;return l||Qt(a,"colorField",s),o},n=function(o){var a=o.options,s=a.compareField,l=a.transform,c=a.isTransposed,u=c===void 0?!0:c,f=a.coordinate;return l||(s?Qt(a,"transform",[]):Qt(a,"transform",[{type:"symmetryY"}])),!f&&u&&Qt(a,"coordinate",{transform:[{type:"transpose"}]}),o},r=function(o){var a=o.options,s=a.compareField,l=a.seriesField,c=a.data,u=a.children,f=a.yField,d=a.isTransposed,h=d===void 0?!0:d;if(s||l){var p=Object.values(cve(c,function(v){return v[s||l]}));u[0].data=p[0],u.push({type:"interval",data:p[1],yField:function(v){return-v[f]}}),delete a.compareField,delete a.data}return l&&(Qt(a,"type","spaceFlex"),Qt(a,"ratio",[1,1]),Qt(a,"direction",h?"row":"col"),delete a.seriesField),o},i=function(o){var a=o.options,s=a.tooltip,l=a.xField,c=a.yField;return s||Qt(a,"tooltip",{title:!1,items:[function(u){return{name:u[l],value:u[c]}}]}),o};return Qn(t,n,r,i,fi,or)(e)}var KOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),YOt=function(e){KOt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="column",n}return t.getDefaultOptions=function(){return{type:"view",scale:{x:{padding:0}},animate:{enter:{type:"fadeIn"}},axis:!1,shapeField:"funnel",label:{position:"inside",transform:[{type:"contrastReverse"}]},children:[{type:"interval"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return GOt},t}(qn);function XOt(e){return Qn(fi,or)(e)}var ZOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),QOt=function(e){ZOt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="line",n}return t.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"line"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return XOt},t}(qn),Qf=function(){return Qf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Qf.apply(this,arguments)};function JOt(e){var t=function(n){var r=n.options,i=r.angleField,o=r.data,a=r.label,s=r.tooltip,l=r.colorField,c=Cx(l);if(ir(o)){var u=o.reduce(function(d,h){return d+h[i]},0);if(u===0){var f=o.map(function(d){var h;return Qf(Qf({},d),(h={},h[i]=1,h))});Qt(r,"data",f),a&&Qt(r,"label",Qf(Qf({},a),{formatter:function(){return 0}})),s!==!1&&Qt(r,"tooltip",Qf(Qf({},s),{items:[function(d,h,p){return{name:c(d,h,p),value:0}}]}))}}return n};return Qn(t,or)(e)}var eEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),tEt=function(e){eEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="pie",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"theta"},transform:[{type:"stackY",reverse:!0}],animate:{enter:{type:"waveIn"}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return JOt},t}(qn);function nEt(e){return Qn(fi,or)(e)}var rEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),iEt=function(e){rEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="scatter",n}return t.getDefaultOptions=function(){return{axis:{y:{title:!1},x:{title:!1}},legend:{size:!1},children:[{type:"point"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return nEt},t}(qn);function oEt(e){var t=function(n){return Qt(n,"options.coordinate",{type:Mr(n,"options.coordinateType","polar")}),n};return Qn(t,or)(e)}var aEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),sEt=function(e){aEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="radar",n}return t.getDefaultOptions=function(){return{axis:{x:{grid:!0,line:!0},y:{zIndex:1,title:!1,line:!0,nice:!0}},meta:{x:{padding:.5,align:0}},interaction:{tooltip:{style:{crosshairsLineDash:[4,4]}}},children:[{type:"line"}],coordinateType:"polar"}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return oEt},t}(qn),yu=function(){return yu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},yu.apply(this,arguments)},lEt="__stock-range__",cEt="trend",uEt="up",fEt="down";function dEt(e){var t=function(r){var i=r.options,o=i.data,a=i.yField;return r.options.data=_m(o,function(s){var l=s&&yu({},s);if(Array.isArray(a)&&l){var c=a[0],u=a[1],f=a[2],d=a[3];l[cEt]=l[c]<=l[u]?uEt:fEt,l[lEt]=[l[c],l[u],l[f],l[d]]}return l}),r},n=function(r){var i=r.options,o=i.xField,a=i.yField,s=i.fallingFill,l=i.risingFill,c=a[0],u=a[1],f=a[2],d=a[3],h=Cx(o);return r.options.children=_m(r.options.children,function(p,v){var g=v===0;return yu(yu({},p),{tooltip:{title:function(m,y,x){var S=h(m,y,x);return S instanceof Date?S.toLocaleString():S},items:[{field:f},{field:d},{field:c},{field:u}]},encode:yu(yu({},p.encode||{}),{y:g?[f,d]:[c,u],color:function(m){return Math.sign(m[u]-m[c])}}),style:yu(yu({},p.style||{}),{lineWidth:g?1:10})})}),delete i.yField,r.options.legend={color:!1},s&&Qt(r,"options.scale.color.range[0]",s),l&&Qt(r,"options.scale.color.range[2]",l),r};return Qn(t,n,or)(e)}var hEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),pEt=["#26a69a","#999999","#ef5350"],vEt=function(e){hEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="stock",n}return t.getDefaultOptions=function(){return{type:"view",scale:{color:{domain:[-1,0,1],range:pEt},y:{nice:!0}},children:[{type:"link"},{type:"link"}],axis:{x:{title:!1,grid:!1},y:{title:!1,grid:!0,gridLineDash:null}},animate:{enter:{type:"scaleInY"}},interaction:{tooltip:{shared:!0,marker:!1,groupName:!1,crosshairs:!0}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return dEt},t}(qn);function gEt(e){return Qn(fi,or)(e)}var mEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yEt=function(e){mEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="TinyLine",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"line",axis:!1}],animate:{enter:{type:"growInX",duration:500}},padding:0,margin:0,tooltip:!1}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return gEt},t}(qn);function bEt(e){return Qn(fi,or)(e)}var xEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),SEt=function(e){xEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="TinyArea",n}return t.getDefaultOptions=function(){return{type:"view",animate:{enter:{type:"growInX",duration:500}},children:[{type:"area",axis:!1}],padding:0,margin:0,tooltip:!1}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return bEt},t}(qn);function wEt(e){return Qn(fi,or)(e)}var CEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),OEt=function(e){CEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="TinyColumn",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"interval",axis:!1}],padding:0,margin:0,tooltip:!1}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return wEt},t}(qn),JL=function(){return JL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},JL.apply(this,arguments)};function EEt(e){var t=function(n){var r=n.options,i=r.percent,o=r.color,a=o===void 0?[]:o;if(!i)return n;var s={scale:{color:{range:a.length?a:[]}},data:[1,i]};return Object.assign(r,JL({},s)),n};return Qn(t,fi,or)(e)}var _Et=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$Et=function(e){_Et(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="TinyProgress",n}return t.getDefaultOptions=function(){return{type:"view",data:[],margin:0,padding:0,tooltip:!1,children:[{interaction:{tooltip:!1},coordinate:{transform:[{type:"transpose"}]},type:"interval",axis:!1,legend:!1,encode:{y:function(n){return n},color:function(n,r){return r}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return EEt},t}(qn),ej=function(){return ej=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ej.apply(this,arguments)};function PEt(e){var t=function(r){var i=r.options,o=i.radius,a=o===void 0?.8:o;return Qt(r,"options.coordinate.innerRadius",a),r},n=function(r){var i=r.options,o=i.percent,a=i.color,s=a===void 0?[]:a;if(!o)return r;var l={scale:{color:{range:s.length?s:[]}},data:[1,o]};return Object.assign(i,ej({},l)),r};return Qn(t,n,fi,or)(e)}var MEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),TEt=function(e){MEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="TinyRing",n}return t.getDefaultOptions=function(){return{type:"view",data:[],margin:0,padding:0,coordinate:{type:"theta"},animate:{enter:{type:"waveIn"}},interaction:{tooltip:!1},tooltip:!1,children:[{type:"interval",axis:!1,legend:!1,encode:{y:function(n){return n},color:function(n,r){return r}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return PEt},t}(qn);function IEt(e){return Qn(or)(e)}var REt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),kEt=function(e){REt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="rose",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"polar"},animate:{enter:{type:"waveIn"}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return IEt},t}(qn),tj="__start__",Im="__end__",nj="__waterfall_value__",rj=function(){return rj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},rj.apply(this,arguments)},NEt=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function AEt(e){var t=function(r){var i=r.options,o=i.data,a=o===void 0?[]:o,s=i.yField;return a.length&&(a.reduce(function(l,c,u){var f,d=Cx(s),h=d(c,u,a);if(u===0||c.isTotal)c[tj]=0,c[Im]=h,c[nj]=h;else{var p=(f=l[Im])!==null&&f!==void 0?f:d(l,u,a);c[tj]=p,c[Im]=p+h,c[nj]=l[Im]}return c},[]),Object.assign(i,{yField:[tj,Im]})),r},n=function(r){var i=r.options,o=i.data,a=o===void 0?[]:o,s=i.xField,l=i.children,c=i.linkStyle,u=NEt([],a,!0);return u.reduce(function(f,d,h){return h>0&&(d.x1=f[s],d.x2=d[s],d.y1=f[Im]),d},[]),u.shift(),l.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:u,style:rj({stroke:"#697474"},c),label:!1,tooltip:!1}),r};return Qn(t,n,fi,or)(e)}var LEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),jEt=function(e){LEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="waterfall",n}return t.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{field:nj,valueFormatter:"~s",name:"value"},axis:{y:{title:null,labelFormatter:"~s"},x:{title:null}},children:[{type:"interval",interaction:{elementHighlight:{background:!0}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return AEt},t}(qn);function DEt(e){var t=function(n){var r=n.options,i=r.data,o=r.binNumber,a=r.binWidth,s=r.children,l=r.channel,c=l===void 0?"count":l,u=Mr(s,"[0].transform[0]",{});return $m(a)?(Cpe(u,{thresholds:W2t(gCt(i.length,a)),y:c}),n):($m(o)&&Cpe(u,{thresholds:o,y:c}),n)};return Qn(t,fi,or)(e)}var FEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),BEt=function(e){FEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="Histogram",n}return t.getDefaultOptions=function(){return{type:"view",autoFit:!0,axis:{y:{title:!1},x:{title:!1}},children:[{type:"rect",transform:[{type:"binX",y:"count"}],interaction:{elementHighlight:{background:!0}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return DEt},t}(qn);function zEt(e){var t=function(r){var i=r.options,o=i.tooltip,a=o===void 0?{}:o,s=i.colorField,l=i.sizeField;return a&&!a.field&&(a.field=s||l),r},n=function(r){var i=r.options,o=i.mark,a=i.children;return o&&(a[0].type=o),r};return Qn(t,n,fi,or)(e)}var HEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),WEt=function(e){HEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="heatmap",n}return t.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{valueFormatter:"~s"},axis:{y:{title:null,grid:!0},x:{title:null,grid:!0}},children:[{type:"point",interaction:{elementHighlight:{background:!0}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return zEt},t}(qn);function VEt(e){var t=function(n){var r=n.options.boxType,i=r===void 0?"box":r;return n.options.children[0].type=i,n};return Qn(t,fi,or)(e)}var UEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),qEt=function(e){UEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="box",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"box"}],axis:{y:{title:!1},x:{title:!1}},tooltip:{items:[{name:"min",channel:"y"},{name:"q1",channel:"y1"},{name:"q2",channel:"y2"},{name:"q3",channel:"y3"},{name:"max",channel:"y4"}]}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return VEt},t}(qn);function GEt(e){var t=function(n){var r=n.options,i=r.data,o=[{type:"custom",callback:function(s){return{links:s}}}];if(ir(i))i.length>0?Qt(r,"data",{value:i,transform:o}):delete r.children;else if(Mr(i,"type")==="fetch"&&Mr(i,"value")){var a=Mr(i,"transform");ir(a)?Qt(i,"transform",a.concat(o)):Qt(i,"transform",o)}return n};return Qn(t,fi,or)(e)}var KEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),YEt=function(e){KEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="sankey",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"sankey"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return GEt},t}(qn),Pl=function(){return Pl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Pl.apply(this,arguments)},W$=["#f0efff","#5B8FF9","#3D76DD"];function ij(e,t,n,r){r===void 0&&(r=!0);var i=0,o=!1,a=_m(e,function(s){var l,c,u=Mr(s,[t]);if(NCt(u))return[];if(uve(u)){var f=Number(u);return isNaN(f)?[]:(l={},l[n]=s[n],l[t]=f,l)}return ir(u)?(o=!0,i=Math.max(i,u.length),_m(r?u.sort(function(d,h){return h-d}):u,function(d,h){var p;return p={},p[n]=s[n],p[t]=d,p.index=h,p})):(i=Math.max(1,i),c={},c[n]=s[n],c[t]=u,c)}).flat();return o?[a.map(function(s){return Pl({index:0},s)}),i]:[a,i]}function oj(e,t){return new Array(e).fill("").map(function(n,r){return ir(t)?t[r%t.length]:t})}function XEt(e){var t=function(i){var o=i.options,a=o.color,s=o.rangeField,l=s===void 0?"ranges":s,c=o.measureField,u=c===void 0?"measures":c,f=o.targetField,d=f===void 0?"targets":f,h=o.xField,p=h===void 0?"title":h,v=o.mapField,g=o.data,m=ij(g,l,p),y=m[0],x=m[1],S=ij(g,u,p,!1),w=S[0],C=S[1],O=ij(g,d,p,!1),E=O[0],_=O[1],$=Mr(a,[l],W$[0]),P=Mr(a,[u],W$[1]),T=Mr(a,[d],W$[2]),I=[oj(x,$),oj(C,P),oj(_,T)].flat();return i.options.children=_m(i.options.children,function(M,R){var k=[y,w,E][R],N=[l,u,d][R];return Pl(Pl({},M),{data:k,encode:Pl(Pl({},M.encode||{}),{x:p,y:N,color:function(A){var j=A.index,D=$m(j)?"".concat(N,"_").concat(j):N;return v?Mr(v,[N,j],D):D}}),style:Pl(Pl({},M.style||{}),{zIndex:function(A){return-A[N]}}),labels:R!==0?_m(M.labels,function(A){return Pl(Pl({},A),{text:N})}):void 0})}),i.options.scale.color.range=I,i.options.legend.color.itemMarker=function(M){return v&&TCt(v==null?void 0:v[d],M)||(M==null?void 0:M.replace(/\_\d$/,""))===d?"line":"square"},i},n=function(i){var o=i.options.layout,a=o===void 0?"horizontal":o;return a!=="horizontal"&&Qt(i,"options.children[2].shapeField","hyphen"),i},r=function(i){var o=i.options,a=o.range,s=a===void 0?{}:a,l=o.measure,c=l===void 0?{}:l,u=o.target,f=u===void 0?{}:u,d=o.children;return i.options.children=[s,c,f].map(function(h,p){return Zf(d[p],h)}),i};return Qn(t,n,r,AOt,or)(e)}var ZEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),QEt=function(e){ZEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="bullet",n}return t.getDefaultOptions=function(){return{type:"view",scale:{color:{range:W$}},legend:{color:{itemMarker:function(n){return n==="target"?"line":"square"}}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval",style:{maxWidth:30},axis:{y:{grid:!0,gridLineWidth:2}}},{type:"interval",style:{maxWidth:20},transform:[{type:"stackY"}]},{type:"point",encode:{size:8,shape:"line"}}],interaction:{tooltip:{shared:!0}},coordinate:{transform:[{type:"transpose"}]}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return XEt},t}(qn);function JEt(e){var t=function(n){var r=n.options.data;return n.options.data={value:r},n};return Qn(t,fi,or)(e)}var e_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),t_t=function(e){e_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="Gauge",n}return t.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"gauge"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return JEt},t}(qn);function n_t(e){var t=function(n){var r=n.options.percent;return $m(r)&&Qt(n,"options.data",r),n};return Qn(t,fi,or)(e)}var r_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),i_t=function(e){r_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="Liquid",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"liquid"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return n_t},t}(qn);function o_t(e){return Qn(fi,or)(e)}var a_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),s_t=function(e){a_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="WordCloud",n}return t.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"wordCloud"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return o_t},t}(qn);function l_t(e){var t=function(n){var r=n.options,i=r.data;return i&&Qt(r,"data",{value:i}),n};return Qn(t,fi,or)(e)}var c_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),u_t=function(e){c_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="treemap",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"treemap"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return l_t},t}(qn),ep=function(){return ep=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ep.apply(this,arguments)};function f_t(e){var t=function(i){var o=i.options,a=o.startAngle,s=o.maxAngle,l=o.coordinate,c=$m(a)?a/(2*Math.PI)*360:-90,u=$m(s)?(Number(s)+c)/180*Math.PI:Math.PI;return Qt(i,["options","coordinate"],ep(ep({},l),{endAngle:u,startAngle:a!=null?a:-Math.PI/2})),i},n=function(i){var o=i.options,a=o.tooltip,s=o.xField,l=o.yField,c=Cx(s),u=Cx(l);return a||Qt(o,"tooltip",{title:!1,items:[function(f,d,h){return{name:c(f,d,h),value:u(f,d,h)}}]}),i},r=function(i){var o=i.options,a=o.markBackground,s=o.children,l=o.scale,c=o.coordinate,u=o.xField,f=Mr(l,"y.domain",[]);return a&&s.unshift(ep({type:"interval",xField:u,yField:f[f.length-1],colorField:a.color,scale:{color:{type:"identity"}},style:{fillOpacity:a.opacity,fill:a.color?void 0:"#e0e4ee"},coordinate:ep(ep({},c),{startAngle:-Math.PI/2,endAngle:1.5*Math.PI}),animate:!1},a)),i};return Qn(t,n,r,fi,or)(e)}var d_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),h_t=function(e){d_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="radial",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"radial",innerRadius:.1,outerRadius:1,endAngle:Math.PI},animate:{enter:{type:"waveIn",duration:800}},axis:{y:{nice:!0,labelAutoHide:!0,labelAutoRotate:!1},x:{title:!1,nice:!0,labelAutoRotate:!1,labelAutoHide:{type:"equidistance",cfg:{minGap:6}}}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return f_t},t}(qn);function p_t(e){return Qn(or)(e)}var v_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),g_t=function(e){v_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="CirclePacking",n}return t.getDefaultOptions=function(){return{legend:!1,type:"view",children:[{type:"pack"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return p_t},t}(qn),V$=function(){return V$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},V$.apply(this,arguments)};function m_t(e){var t=function(n){var r=n.options,i=r.xField,o=r.yField,a=r.seriesField,s=r.children,l=s==null?void 0:s.map(function(c){return V$(V$({},c),{xField:i,yField:o,seriesField:a,colorField:a,data:c.type==="density"?{transform:[{type:"kde",field:o,groupBy:[i,a]}]}:c.data})}).filter(function(c){return r.violinType!=="density"||c.type==="density"});return Qt(r,"children",l),r.violinType==="polar"&&Qt(r,"coordinate",{type:"polar"}),Qt(r,"violinType",void 0),n};return Qn(t,fi,or)(e)}var y_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),b_t=function(e){y_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="violin",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"density",sizeField:"size",tooltip:!1},{type:"boxplot",shapeField:"violin",style:{opacity:.5,point:!1}}],animate:{enter:{type:"fadeIn"}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return m_t},t}(qn),_x=function(){return _x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},_x.apply(this,arguments)},x_t=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function S_t(e){var t=function(o){var a=o.options,s=a.yField,l=a.children;return l.forEach(function(c,u){Qt(c,"yField",s[u])}),o},n=function(o){var a=o.options,s=a.yField,l=a.children,c=a.data;if(TL(c))return o;var u=ir(Mr(c,[0]))?c:[c,c];return l.forEach(function(f,d){Qt(f,"data",x_t([],u[d].map(function(h){return _x({groupKey:s[d]},h)}),!0))}),o},r=function(o){var a=o.options,s=a.yField,l=s[0],c=s[1],u=a.tooltip;return u||Qt(a,"tooltip",{items:[{field:l,value:l},{field:c,value:c}]}),o},i=function(o){var a=o.options,s=a.children,l=a.layout,c=a.coordinate.transform,u=a.paddingBottom,f=u===void 0?Ove:u,d=a.paddingLeft,h=d===void 0?Ove:d,p=a.axis;Qt(a,"axisText",_x(_x({},(p==null?void 0:p.x)||{}),{layout:l}));var v=s[0],g=s[1];if(l==="vertical")Qt(a,"direction","col"),Qt(a,"paddingLeft",h),Qt(a,"coordinate.transform",c.filter(function(w){return w.type!=="transpose"})),Qt(v,"paddingBottom",Cve),Qt(g,"paddingTop",Cve),Qt(g,"axis",{x:{position:"top"}}),Qt(g,"scale",{y:{range:[0,1]}});else{Qt(a,"paddingBottom",f),Qt(v,"scale",{y:{range:[0,1]}});var m=v.paddingRight,y=m===void 0?ZL:m,x=g.paddingLeft,S=x===void 0?ZL:x;Qt(v,"paddingRight",y),Qt(v,"axis",{x:{position:"right"}}),Qt(g,"paddingLeft",S)}return o};return Qn(t,n,r,i,fi,or)(e)}var w_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),C_t=function(e){w_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="BidirectionalBar",n}return t.getDefaultOptions=function(){return{type:"spaceFlex",coordinate:{transform:[{type:"transpose"}]},scale:{y:{nice:!0}},direction:"row",layout:"horizontal",legend:!1,axis:{y:{title:!1},x:{title:!1,label:!1}},children:[{type:"interval"},{type:"interval"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return S_t},t}(qn),tp;(function(e){e.color="key",e.d="path"})(tp||(tp={}));function O_t(e){var t=function(n){var r=n.options,i=r.data,o=r.setsField,a=r.sizeField;return ir(i)&&(Qt(r,"data",{type:"inline",value:i,transform:[{type:"venn",sets:o,size:a,as:[tp.color,tp.d]}]}),Qt(r,"colorField",o),Qt(r,["children","0","encode","d"],tp.d)),Qt(n,"options",HL(r,["sizeField","setsField"])),n};return Qn(t,or)(e)}var E_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),__t=function(e){E_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="venn",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"path"}],legend:{color:{itemMarker:"circle"}},encode:{color:tp.color,d:tp.d}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return O_t},t}(qn);function $_t(e){var t=function(n){return n};return Qn(t,or)(e)}var P_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),M_t=function(e){P_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="Sunburst",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"sunburst"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return $_t},t}(qn),T_t={Base:ROt,Line:QOt,Column:VOt,Pie:tEt,Area:DOt,Bar:zOt,DualAxes:$ve,Funnel:YOt,Scatter:iEt,Radar:sEt,Rose:kEt,Stock:vEt,TinyLine:yEt,TinyArea:SEt,TinyColumn:OEt,TinyProgress:$Et,TinyRing:TEt,Waterfall:jEt,Histogram:BEt,Heatmap:WEt,Box:qEt,Sankey:YEt,Bullet:QEt,Gauge:t_t,Liquid:i_t,WordCloud:s_t,Treemap:u_t,RadialBar:h_t,CirclePacking:g_t,Violin:b_t,BidirectionalBar:C_t,Venn:__t,Mix:$ve,Sunburst:M_t},aj=function(){return aj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},aj.apply(this,arguments)},Pve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},$x=b.forwardRef(function(e,t){var n=e.chartType,r=n===void 0?"Base":n,i=Pve(e,["chartType"]),o=i.containerStyle,a=o===void 0?{height:"inherit",flex:1}:o,s=i.containerAttributes,l=s===void 0?{}:s,c=i.className,u=i.loading,f=i.loadingTemplate,d=i.errorTemplate,h=Pve(i,["containerStyle","containerAttributes","className","loading","loadingTemplate","errorTemplate"]),p=KCt(T_t[r],h),v=p.chart,g=p.container;return b.useImperativeHandle(t,function(){return v.current}),ge.createElement(Y1t,{errorTemplate:d},u&&ge.createElement(G1t,{loadingTemplate:f}),ge.createElement("div",aj({className:c,style:a,ref:g},l)))}),sj=function(){return sj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},sj.apply(this,arguments)},I_t=b.forwardRef(function(e,t){return ge.createElement($x,sj({},e,{chartType:"Area",ref:t}))}),lj=function(){return lj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},lj.apply(this,arguments)},R_t=b.forwardRef(function(e,t){return ge.createElement($x,lj({},e,{chartType:"Bar",ref:t}))}),cj=function(){return cj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},cj.apply(this,arguments)},k_t=b.forwardRef(function(e,t){return ge.createElement($x,cj({},e,{chartType:"Column",ref:t}))}),uj=function(){return uj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},uj.apply(this,arguments)},N_t=b.forwardRef(function(e,t){return ge.createElement($x,uj({},e,{chartType:"Line",ref:t}))}),fj=function(){return fj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},fj.apply(this,arguments)},A_t=b.forwardRef(function(e,t){return ge.createElement($x,fj({},e,{chartType:"Pie",ref:t}))});const{useToken:L_t}=Qy,j_t=({widget:e})=>{const{t}=so("DashboardWidget"),{token:n}=L_t(),[r,i]=ge.useState(),[o,a]=ge.useState(),[s,l]=ge.useState(),c=Qv.stringify({min_x_field:p1(r),max_x_field:p1(o),period_x_field:p1(s)}),{data:u,isLoading:f}=Il({queryKey:["/dashboard-widget",c],queryFn:()=>Hl(`/dashboard-widget/${e.key}?${c}`),refetchOnWindowFocus:!1});b.useEffect(()=>{u&&(i(v1(u.min_x_field)),a(v1(u.max_x_field)),l(v1(u.period_x_field)))},[u]);const d=b.useCallback((h,p,v,g)=>{if(!h.x_field_filter_widget_type)return null;const[m,y]=ek(h.x_field_filter_widget_type,t),x=S=>{switch(m){case br:case br.TextArea:case af.Group:g(S.target.value);break;default:g(S);break}};return ce.jsx(m,un(Le(Le({size:"small",placeholder:p},y||{}),h.x_field_filter_widget_props||{}),{value:v,onChange:x}))},[t]);return ce.jsxs(Iv,{title:ce.jsxs(Zr,{justify:"space-between",style:{lineHeight:2},children:[ce.jsx(Ln,{children:e.title}),e.x_field_filter_widget_type&&ce.jsx(Ln,{children:ce.jsxs(Ii,{children:[e.x_field_periods&&ce.jsx(Ti,{allowClear:!0,style:{width:100},options:e.x_field_periods.map(h=>({label:UC(h),value:h})),value:s,onChange:l,size:"small"}),d(e,t("From"),r,i),ce.jsx(Qw,{}),d(e,t("To"),o,a)]})})]}),children:[!f&&e.dashboard_widget_type===eg.ChartLine&&ce.jsx(N_t,Le({data:(u==null?void 0:u.results)||[],xField:e.x_field,yField:e.y_field,legend:{position:"top-left"},colorField:n.colorPrimary},e.dashboard_widget_props||{})),!f&&e.dashboard_widget_type===eg.ChartArea&&ce.jsx(I_t,Le({data:(u==null?void 0:u.results)||[],xField:e.x_field,yField:e.y_field,legend:{position:"top-left"},colorField:n.colorPrimary},e.dashboard_widget_props||{})),!f&&e.dashboard_widget_type===eg.ChartColumn&&ce.jsx(k_t,Le({data:(u==null?void 0:u.results)||[],xField:e.x_field,yField:e.y_field,legend:{position:"top-left"},colorField:n.colorPrimary},e.dashboard_widget_props||{})),!f&&e.dashboard_widget_type===eg.ChartBar&&ce.jsx(R_t,Le({data:(u==null?void 0:u.results)||[],xField:e.x_field,yField:e.y_field,legend:{position:"top-left"},colorField:n.colorPrimary},e.dashboard_widget_props||{})),!f&&e.dashboard_widget_type===eg.ChartPie&&ce.jsx(A_t,Le({data:(u==null?void 0:u.results)||[],colorField:e.x_field,angleField:e.y_field,legend:{position:"top-left"}},e.dashboard_widget_props||{})),f&&ce.jsx(Zr,{justify:"center",align:"middle",children:ce.jsx(Ln,{children:ce.jsx(tC,{})})})]},e.title)},D_t=()=>{const{t:e}=so("Dashboard"),{configuration:t}=b.useContext(pl);return ce.jsxs(qC,{title:e("Dashboard"),children:[ce.jsx(Zr,{gutter:[16,16],children:t.dashboard_widgets.map(n=>ce.jsx(Ln,{xs:24,md:12,children:ce.jsx(j_t,{widget:n})},n.title))}),t.dashboard_widgets.length===0&&ce.jsx(Xi,{})]})},F_t=()=>{var j,D;const{configuration:e}=b.useContext(pl),t=Gv(),{t:n}=so("List"),{model:r}=RC(),i=d1(),o=XC(e,r),{defaultPage:a,defaultPageSize:s,page:l,setPage:c,pageSize:u,setPageSize:f,search:d,setSearch:h,filters:p,setFilters:v,sortBy:g,action:m,setAction:y,selectedRowKeys:x,setSelectedRowKeys:S,onTableChange:w,resetTable:C}=RQ(o),O=Qv.stringify(Le({search:d,sort_by:g,offset:(l-1)*u,limit:u},$R(p))),{data:E,isLoading:_,refetch:$}=Il({queryKey:[`/list/${r}`,O],queryFn:()=>Hl(`/list/${r}?${O}`),refetchOnWindowFocus:!1}),{mutate:P}=Po({mutationFn:L=>SR(`/delete/${r}/${L}`),onSuccess:()=>{C(o==null?void 0:o.preserve_filters),$(),pi.success(n("Successfully deleted"))},onError:L=>{vl(L)}}),{mutate:T,isPending:I}=Po({mutationFn:L=>qc(`/action/${r}/${m}`,L),onSuccess:()=>{C(o==null?void 0:o.preserve_filters),$(),pi.success(n("Successfully applied"))},onError:()=>{pi.error(n("Server error"))}}),M=L=>S(L),R=b.useCallback(()=>T({ids:x}),[T,x]),k=b.useCallback(()=>t(`/add/${r}`),[r,t]),N=e==null?void 0:e.datetime_format,A=IQ(o,N,b.useCallback(L=>p[L],[p]),b.useCallback((L,B)=>{p[L]=B,v(Le({},p)),c(a),f(s)},[a,s,p,v,c,f]),b.useCallback(L=>{delete p[L],v(Le({},p)),c(a),f(s)},[a,s,p,v,c,f]),b.useCallback(L=>{P(L.id)},[P]),b.useCallback(L=>{t(`/change/${r}/${L.id}`)},[r,t]));return ce.jsx(qC,{title:o?ea(o,!0):"",breadcrumbs:ce.jsx(Iy,{items:[{title:ce.jsx(vf,{to:"/",children:n("Dashboard")})},{title:ce.jsx(vf,{to:`/list/${r}`,children:o&&ea(o)})}]}),viewOnSite:o==null?void 0:o.view_on_site,headerActions:ce.jsxs(Zr,{style:{marginTop:10,marginBottom:10},gutter:[8,8],children:[((o==null?void 0:o.actions)||[]).length>0&&(o==null?void 0:o.actions_on_top)&&ce.jsxs(Ln,{children:[ce.jsx(Ti,{placeholder:n("Select Action By"),allowClear:!0,value:m,onChange:y,style:{width:300},children:((o==null?void 0:o.actions)||[]).map(L=>ce.jsx(Ti.Option,{value:L.name,children:L.description||L.name},L.name))}),ce.jsx(gn,{disabled:!m||x.length===0,style:{marginLeft:5},loading:I,onClick:R,children:n("Apply")})]}),((o==null?void 0:o.search_fields)||[]).length>0&&ce.jsx(Ln,{children:ce.jsx(br.Search,{placeholder:(o==null?void 0:o.search_help_text)||n("Search By"),allowClear:!0,onSearch:h,style:{width:200}})}),((j=o==null?void 0:o.permissions)==null?void 0:j.includes(xa.Export))&&ce.jsx(Ln,{children:ce.jsx(hZ,{model:r,search:d,filters:p,sortBy:g})}),((D=o==null?void 0:o.permissions)==null?void 0:D.includes(xa.Add))&&ce.jsx(Ln,{children:ce.jsxs(gn,{onClick:k,children:[ce.jsx(iR,{})," ",n("Add")]})})]}),bottomActions:ce.jsx(ce.Fragment,{children:((o==null?void 0:o.actions)||[]).length>0&&(o==null?void 0:o.actions_on_bottom)&&ce.jsxs("div",{style:{marginTop:i?10:-50},children:[ce.jsx(Ti,{placeholder:n("Select Action By"),allowClear:!0,value:m,onChange:y,style:{width:200},children:((o==null?void 0:o.actions)||[]).map(L=>ce.jsx(Ti.Option,{value:L.name,children:L.description||L.name},L.name))}),ce.jsx(gn,{disabled:!m||x.length===0,style:{marginLeft:5},loading:I,onClick:R,children:n("Apply")})]})}),children:o?ce.jsx(pZ,{loading:_,rowSelection:((o==null?void 0:o.actions)||[]).length>0?{selectedRowKeys:x,onChange:M}:void 0,columns:A,onChange:w,rowKey:"id",dataSource:(E==null?void 0:E.results)||[],pagination:{current:l,pageSize:u,total:E==null?void 0:E.total,showSizeChanger:!0}}):ce.jsx(Xi,{description:n("No permissions for model")})})},B_t=({title:e,children:t})=>{const{signedIn:n}=b.useContext(h1),r=Gv();return b.useEffect(()=>{n&&r("/")},[r,n]),ce.jsxs("div",{style:{height:"100vh"},children:[ce.jsx(YI,{defaultTitle:e,children:ce.jsx("meta",{name:"description",content:e})}),ce.jsx(Zr,{justify:"center",align:"middle",style:{height:"100%"},children:ce.jsx(Ln,{xs:24,xl:8,children:t})})]})},z_t=()=>{const[e]=Yn.useForm(),{token:{colorPrimary:t}}=Qy.useToken(),{configuration:n}=b.useContext(pl),{signedInUserRefetch:r}=b.useContext(h1),{t:i}=so("SignIn"),{mutate:o,isPending:a}=Po({mutationFn:l=>qc("/sign-in",l),onSuccess:()=>{r()},onError:l=>{vl(l,e)}}),s=l=>{o(l)};return ce.jsx(B_t,{title:`${i("Sign In")}`,children:ce.jsxs(Iv,{children:[ce.jsx(Zr,{justify:"center",children:ce.jsx(Ln,{children:ce.jsxs(Ii,{style:{marginBottom:20},children:[ce.jsx(Jw,{src:window.SERVER_DOMAIN+n.site_sign_in_logo,height:80,alt:n.site_name,preview:!1}),ce.jsx("span",{style:{color:t,fontSize:36,fontWeight:600},children:n.site_name})]})})}),ce.jsxs(Yn,{initialValues:{remember:!0},onFinish:s,autoComplete:"off",layout:"vertical",children:[ce.jsx(Yn.Item,{label:UC((n==null?void 0:n.username_field)||"username"),name:"username",rules:[{required:!0}],children:ce.jsx(br,{})}),ce.jsx(Yn.Item,{label:"Password",name:"password",rules:[{required:!0}],children:ce.jsx(br.Password,{})}),ce.jsx(Zr,{justify:"end",children:ce.jsx(Ln,{children:ce.jsx(Yn.Item,{children:ce.jsx(gn,{type:"primary",htmlType:"submit",loading:a,children:i("Sign In")})})})})]})]})})},H_t=()=>{const{configuration:e}=b.useContext(pl),{t}=so("App");return ce.jsxs(ov,{theme:{token:{colorPrimary:e.primary_color,colorLink:e.primary_color,colorLinkActive:e.primary_color,colorLinkHover:e.primary_color}},form:{validateMessages:{required:t("${label} is required."),types:{email:t("${label} is not valid."),number:t("${label} is not valid.")},number:{range:t("${label} must be between ${min} and ${max}")}}},children:[ce.jsxs(YI,{titleTemplate:"FastAPI Admin | %s",defaultTitle:t("FastAPI Admin"),children:[ce.jsx("meta",{name:"description",content:t("FastAPI Admin")}),ce.jsx("link",{rel:"icon",href:window.SERVER_DOMAIN+e.site_favicon})]}),ce.jsxs(eDe,{children:[ce.jsx(Kv,{path:"/sign-in",element:ce.jsx(z_t,{})}),ce.jsx(Kv,{path:"/",element:ce.jsx(D_t,{})}),ce.jsx(Kv,{path:"/list/:model",element:ce.jsx(F_t,{})}),ce.jsx(Kv,{path:"/add/:model",element:ce.jsx(pGe,{})}),ce.jsx(Kv,{path:"/change/:model/:id",element:ce.jsx(vGe,{})})]})]})},W_t=({children:e})=>ce.jsx(X9e,{children:ce.jsx(Y9e,{children:e})}),V_t=({children:e,client:t,i18n:n})=>ce.jsx(aDe,{children:ce.jsx(Bge,{client:t,children:ce.jsx(d7e,{i18n:n,children:ce.jsx(FY,{children:e})})})}),U_t=new Age;ho.init({interpolation:{escapeValue:!1}});const Mve=document.getElementById("root");if(!Mve)throw new Error("Root element not found");dP.createRoot(Mve).render(ce.jsx(ge.StrictMode,{children:ce.jsx(V_t,{client:U_t,locale:Mo,i18n:ho,children:ce.jsx(W_t,{children:ce.jsx(H_t,{})})})}))});
755
+ `,n.classList.add("loading"),n.innerHTML="<div></div><div></div><div></div><div></div>",t.appendChild(r),t.appendChild(n)},G1t=function(e){var t=e.loadingTemplate,n=e.theme,r=n===void 0?"light":n,i=ge.useRef(null);ge.useEffect(function(){!t&&i.current&&q1t(i.current)},[]);var o=function(){return t||ge.createElement("div",{ref:i})};return ge.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:r==="dark"?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},o())},K1t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Y1t=function(e){K1t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={hasError:!1},n.renderError=function(r){var i=n.props.errorTemplate;switch(r){default:return typeof i=="function"?i(r):i||ge.createElement("h5",null,"组件出错了,请核查后重试: ",r.message)}},n}return t.getDerivedStateFromError=function(n){return{hasError:!0,error:n}},t.getDerivedStateFromProps=function(n,r){return r.children!==n.children?{children:n.children,hasError:!1,error:void 0}:null},t.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):ge.createElement(b.Fragment,null,this.props.children)},t}(ge.Component),qhe=typeof global=="object"&&global&&global.Object===Object&&global,X1t=typeof self=="object"&&self&&self.Object===Object&&self,El=qhe||X1t||Function("return this")(),Hs=El.Symbol,Ghe=Object.prototype,Z1t=Ghe.hasOwnProperty,Q1t=Ghe.toString,ux=Hs?Hs.toStringTag:void 0;function J1t(e){var t=Z1t.call(e,ux),n=e[ux];try{e[ux]=void 0;var r=!0}catch(o){}var i=Q1t.call(e);return r&&(t?e[ux]=n:delete e[ux]),i}var ebt=Object.prototype,tbt=ebt.toString;function nbt(e){return tbt.call(e)}var rbt="[object Null]",ibt="[object Undefined]",Khe=Hs?Hs.toStringTag:void 0;function dc(e){return e==null?e===void 0?ibt:rbt:Khe&&Khe in Object(e)?J1t(e):nbt(e)}function Ra(e){return e!=null&&typeof e=="object"}var obt="[object Symbol]";function fx(e){return typeof e=="symbol"||Ra(e)&&dc(e)==obt}var abt=NaN;function Yhe(e){return typeof e=="number"?e:fx(e)?abt:+e}function w$(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var ir=Array.isArray,sbt=1/0,Xhe=Hs?Hs.prototype:void 0,Zhe=Xhe?Xhe.toString:void 0;function C$(e){if(typeof e=="string")return e;if(ir(e))return w$(e,C$)+"";if(fx(e))return Zhe?Zhe.call(e):"";var t=e+"";return t=="0"&&1/e==-sbt?"-0":t}function lbt(e,t){return function(n,r){var i;if(n===void 0&&r===void 0)return t;if(n!==void 0&&(i=n),r!==void 0){if(i===void 0)return r;typeof n=="string"||typeof r=="string"?(n=C$(n),r=C$(r)):(n=Yhe(n),r=Yhe(r)),i=e(n,r)}return i}}var cbt=/\s/;function ubt(e){for(var t=e.length;t--&&cbt.test(e.charAt(t)););return t}var fbt=/^\s+/;function dbt(e){return e&&e.slice(0,ubt(e)+1).replace(fbt,"")}function la(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qhe=NaN,hbt=/^[-+]0x[0-9a-f]+$/i,pbt=/^0b[01]+$/i,vbt=/^0o[0-7]+$/i,gbt=parseInt;function Jhe(e){if(typeof e=="number")return e;if(fx(e))return Qhe;if(la(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=la(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=dbt(e);var n=pbt.test(e);return n||vbt.test(e)?gbt(e.slice(2),n?2:8):hbt.test(e)?Qhe:+e}var epe=1/0,mbt=17976931348623157e292;function ybt(e){if(!e)return e===0?e:0;if(e=Jhe(e),e===epe||e===-epe){var t=e<0?-1:1;return t*mbt}return e===e?e:0}function tpe(e){var t=ybt(e),n=t%1;return t===t?n?t-n:t:0}function vL(e){return e}var bbt="[object AsyncFunction]",xbt="[object Function]",Sbt="[object GeneratorFunction]",wbt="[object Proxy]";function xm(e){if(!la(e))return!1;var t=dc(e);return t==xbt||t==Sbt||t==bbt||t==wbt}var gL=El["__core-js_shared__"],npe=function(){var e=/[^.]+$/.exec(gL&&gL.keys&&gL.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Cbt(e){return!!npe&&npe in e}var Obt=Function.prototype,Ebt=Obt.toString;function Kh(e){if(e!=null){try{return Ebt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var _bt=/[\\^$.*+?()[\]{}|]/g,$bt=/^\[object .+?Constructor\]$/,Pbt=Function.prototype,Mbt=Object.prototype,Tbt=Pbt.toString,Ibt=Mbt.hasOwnProperty,Rbt=RegExp("^"+Tbt.call(Ibt).replace(_bt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kbt(e){if(!la(e)||Cbt(e))return!1;var t=xm(e)?Rbt:$bt;return t.test(Kh(e))}function Nbt(e,t){return e==null?void 0:e[t]}function Yh(e,t){var n=Nbt(e,t);return kbt(n)?n:void 0}var dx=Yh(El,"WeakMap"),rpe=dx&&new dx,ipe=Object.create,mL=function(){function e(){}return function(t){if(!la(t))return{};if(ipe)return ipe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Abt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yL(){}var Lbt=4294967295;function Sm(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Lbt,this.__views__=[]}Sm.prototype=mL(yL.prototype),Sm.prototype.constructor=Sm;function ope(){}var ape=rpe?function(e){return rpe.get(e)}:ope,spe={},jbt=Object.prototype,Dbt=jbt.hasOwnProperty;function O$(e){for(var t=e.name+"",n=spe[t],r=Dbt.call(spe,t)?n.length:0;r--;){var i=n[r],o=i.func;if(o==null||o==e)return i.name}return t}function Yf(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Yf.prototype=mL(yL.prototype),Yf.prototype.constructor=Yf;function bL(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Fbt(e){if(e instanceof Sm)return e.clone();var t=new Yf(e.__wrapped__,e.__chain__);return t.__actions__=bL(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bbt=Object.prototype,zbt=Bbt.hasOwnProperty;function E$(e){if(Ra(e)&&!ir(e)&&!(e instanceof Sm)){if(e instanceof Yf)return e;if(zbt.call(e,"__wrapped__"))return Fbt(e)}return new Yf(e)}E$.prototype=yL.prototype,E$.prototype.constructor=E$;function lpe(e){var t=O$(e),n=E$[t];if(typeof n!="function"||!(t in Sm.prototype))return!1;if(e===n)return!0;var r=ape(n);return!!r&&e===r[0]}var Hbt=800,Wbt=16,Vbt=Date.now;function Ubt(e){var t=0,n=0;return function(){var r=Vbt(),i=Wbt-(r-n);if(n=r,i>0){if(++t>=Hbt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function qbt(e){return function(){return e}}var _$=function(){try{var e=Yh(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),Gbt=_$?function(e,t){return _$(e,"toString",{configurable:!0,enumerable:!1,value:qbt(t),writable:!0})}:vL,cpe=Ubt(Gbt);function Kbt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function Ybt(e,t,n,r){for(var i=e.length,o=n+-1;++o<i;)if(t(e[o],o,e))return o;return-1}function Xbt(e){return e!==e}function Zbt(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function upe(e,t,n){return t===t?Zbt(e,t,n):Ybt(e,Xbt,n)}function Qbt(e,t){var n=e==null?0:e.length;return!!n&&upe(e,t,0)>-1}var Jbt=9007199254740991,ext=/^(?:0|[1-9]\d*)$/;function $$(e,t){var n=typeof e;return t=t==null?Jbt:t,!!t&&(n=="number"||n!="symbol"&&ext.test(e))&&e>-1&&e%1==0&&e<t}function P$(e,t,n){t=="__proto__"&&_$?_$(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function hx(e,t){return e===t||e!==e&&t!==t}var txt=Object.prototype,nxt=txt.hasOwnProperty;function M$(e,t,n){var r=e[t];(!(nxt.call(e,t)&&hx(r,n))||n===void 0&&!(t in e))&&P$(e,t,n)}function Xh(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;l===void 0&&(l=e[s]),i?P$(n,s,l):M$(n,s,l)}return n}var fpe=Math.max;function dpe(e,t,n){return t=fpe(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=fpe(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),Abt(e,this,s)}}function rxt(e,t){return cpe(dpe(e,t,vL),e+"")}var ixt=9007199254740991;function xL(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ixt}function Xf(e){return e!=null&&xL(e.length)&&!xm(e)}function oxt(e,t,n){if(!la(n))return!1;var r=typeof t;return(r=="number"?Xf(n)&&$$(t,n.length):r=="string"&&t in n)?hx(n[t],e):!1}function hpe(e){return rxt(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&oxt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var axt=Object.prototype;function T$(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||axt;return e===n}function sxt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var lxt="[object Arguments]";function ppe(e){return Ra(e)&&dc(e)==lxt}var vpe=Object.prototype,cxt=vpe.hasOwnProperty,uxt=vpe.propertyIsEnumerable,px=ppe(function(){return arguments}())?ppe:function(e){return Ra(e)&&cxt.call(e,"callee")&&!uxt.call(e,"callee")};function fxt(){return!1}var gpe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mpe=gpe&&typeof module=="object"&&module&&!module.nodeType&&module,dxt=mpe&&mpe.exports===gpe,ype=dxt?El.Buffer:void 0,hxt=ype?ype.isBuffer:void 0,vx=hxt||fxt,pxt="[object Arguments]",vxt="[object Array]",gxt="[object Boolean]",mxt="[object Date]",yxt="[object Error]",bxt="[object Function]",xxt="[object Map]",Sxt="[object Number]",wxt="[object Object]",Cxt="[object RegExp]",Oxt="[object Set]",Ext="[object String]",_xt="[object WeakMap]",$xt="[object ArrayBuffer]",Pxt="[object DataView]",Mxt="[object Float32Array]",Txt="[object Float64Array]",Ixt="[object Int8Array]",Rxt="[object Int16Array]",kxt="[object Int32Array]",Nxt="[object Uint8Array]",Axt="[object Uint8ClampedArray]",Lxt="[object Uint16Array]",jxt="[object Uint32Array]",qr={};qr[Mxt]=qr[Txt]=qr[Ixt]=qr[Rxt]=qr[kxt]=qr[Nxt]=qr[Axt]=qr[Lxt]=qr[jxt]=!0,qr[pxt]=qr[vxt]=qr[$xt]=qr[gxt]=qr[Pxt]=qr[mxt]=qr[yxt]=qr[bxt]=qr[xxt]=qr[Sxt]=qr[wxt]=qr[Cxt]=qr[Oxt]=qr[Ext]=qr[_xt]=!1;function Dxt(e){return Ra(e)&&xL(e.length)&&!!qr[dc(e)]}function SL(e){return function(t){return e(t)}}var bpe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,gx=bpe&&typeof module=="object"&&module&&!module.nodeType&&module,Fxt=gx&&gx.exports===bpe,wL=Fxt&&qhe.process,wm=function(){try{var e=gx&&gx.require&&gx.require("util").types;return e||wL&&wL.binding&&wL.binding("util")}catch(t){}}(),xpe=wm&&wm.isTypedArray,CL=xpe?SL(xpe):Dxt,Bxt=Object.prototype,zxt=Bxt.hasOwnProperty;function Spe(e,t){var n=ir(e),r=!n&&px(e),i=!n&&!r&&vx(e),o=!n&&!r&&!i&&CL(e),a=n||r||i||o,s=a?sxt(e.length,String):[],l=s.length;for(var c in e)(t||zxt.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||$$(c,l)))&&s.push(c);return s}function wpe(e,t){return function(n){return e(t(n))}}var Hxt=wpe(Object.keys,Object),Wxt=Object.prototype,Vxt=Wxt.hasOwnProperty;function Uxt(e){if(!T$(e))return Hxt(e);var t=[];for(var n in Object(e))Vxt.call(e,n)&&n!="constructor"&&t.push(n);return t}function Zh(e){return Xf(e)?Spe(e):Uxt(e)}var qxt=Object.prototype,Gxt=qxt.hasOwnProperty,Cpe=hpe(function(e,t){if(T$(t)||Xf(t)){Xh(t,Zh(t),e);return}for(var n in t)Gxt.call(t,n)&&M$(e,n,t[n])});function Kxt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Yxt=Object.prototype,Xxt=Yxt.hasOwnProperty;function Zxt(e){if(!la(e))return Kxt(e);var t=T$(e),n=[];for(var r in e)r=="constructor"&&(t||!Xxt.call(e,r))||n.push(r);return n}function mx(e){return Xf(e)?Spe(e,!0):Zxt(e)}var Qxt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jxt=/^\w*$/;function OL(e,t){if(ir(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||fx(e)?!0:Jxt.test(e)||!Qxt.test(e)||t!=null&&e in Object(t)}var yx=Yh(Object,"create");function e2t(){this.__data__=yx?yx(null):{},this.size=0}function t2t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var n2t="__lodash_hash_undefined__",r2t=Object.prototype,i2t=r2t.hasOwnProperty;function o2t(e){var t=this.__data__;if(yx){var n=t[e];return n===n2t?void 0:n}return i2t.call(t,e)?t[e]:void 0}var a2t=Object.prototype,s2t=a2t.hasOwnProperty;function l2t(e){var t=this.__data__;return yx?t[e]!==void 0:s2t.call(t,e)}var c2t="__lodash_hash_undefined__";function u2t(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yx&&t===void 0?c2t:t,this}function Qh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qh.prototype.clear=e2t,Qh.prototype.delete=t2t,Qh.prototype.get=o2t,Qh.prototype.has=l2t,Qh.prototype.set=u2t;function f2t(){this.__data__=[],this.size=0}function I$(e,t){for(var n=e.length;n--;)if(hx(e[n][0],t))return n;return-1}var d2t=Array.prototype,h2t=d2t.splice;function p2t(e){var t=this.__data__,n=I$(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():h2t.call(t,n,1),--this.size,!0}function v2t(e){var t=this.__data__,n=I$(t,e);return n<0?void 0:t[n][1]}function g2t(e){return I$(this.__data__,e)>-1}function m2t(e,t){var n=this.__data__,r=I$(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function gu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gu.prototype.clear=f2t,gu.prototype.delete=p2t,gu.prototype.get=v2t,gu.prototype.has=g2t,gu.prototype.set=m2t;var bx=Yh(El,"Map");function y2t(){this.size=0,this.__data__={hash:new Qh,map:new(bx||gu),string:new Qh}}function b2t(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function R$(e,t){var n=e.__data__;return b2t(t)?n[typeof t=="string"?"string":"hash"]:n.map}function x2t(e){var t=R$(this,e).delete(e);return this.size-=t?1:0,t}function S2t(e){return R$(this,e).get(e)}function w2t(e){return R$(this,e).has(e)}function C2t(e,t){var n=R$(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function mu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mu.prototype.clear=y2t,mu.prototype.delete=x2t,mu.prototype.get=S2t,mu.prototype.has=w2t,mu.prototype.set=C2t;var O2t="Expected a function";function EL(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(O2t);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(EL.Cache||mu),n}EL.Cache=mu;var E2t=500;function _2t(e){var t=EL(e,function(r){return n.size===E2t&&n.clear(),r}),n=t.cache;return t}var $2t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P2t=/\\(\\)?/g,M2t=_2t(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace($2t,function(n,r,i,o){t.push(i?o.replace(P2t,"$1"):r||n)}),t});function _L(e){return e==null?"":C$(e)}function Cm(e,t){return ir(e)?e:OL(e,t)?[e]:M2t(_L(e))}var T2t=1/0;function Om(e){if(typeof e=="string"||fx(e))return e;var t=e+"";return t=="0"&&1/e==-T2t?"-0":t}function k$(e,t){t=Cm(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Om(t[n++])];return n&&n==r?e:void 0}function Mr(e,t,n){var r=e==null?void 0:k$(e,t);return r===void 0?n:r}function $L(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Ope=Hs?Hs.isConcatSpreadable:void 0;function I2t(e){return ir(e)||px(e)||!!(Ope&&e&&e[Ope])}function R2t(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=I2t),i||(i=[]);++o<a;){var s=e[o];n(s)?$L(i,s):i[i.length]=s}return i}function k2t(e){var t=e==null?0:e.length;return t?R2t(e):[]}function PL(e){return cpe(dpe(e,void 0,k2t),e+"")}var ML=wpe(Object.getPrototypeOf,Object),N2t="[object Object]",A2t=Function.prototype,L2t=Object.prototype,Epe=A2t.toString,j2t=L2t.hasOwnProperty,D2t=Epe.call(Object);function TL(e){if(!Ra(e)||dc(e)!=N2t)return!1;var t=ML(e);if(t===null)return!0;var n=j2t.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Epe.call(n)==D2t}function F2t(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var B2t=El.isFinite,z2t=Math.min;function H2t(e){var t=Math[e];return function(n,r){if(n=Jhe(n),r=r==null?0:z2t(tpe(r),292),r&&B2t(n)){var i=(_L(n)+"e").split("e"),o=t(i[0]+"e"+(+i[1]+r));return i=(_L(o)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return t(n)}}var W2t=H2t("ceil");function V2t(){this.__data__=new gu,this.size=0}function U2t(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function q2t(e){return this.__data__.get(e)}function G2t(e){return this.__data__.has(e)}var K2t=200;function Y2t(e,t){var n=this.__data__;if(n instanceof gu){var r=n.__data__;if(!bx||r.length<K2t-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new mu(r)}return n.set(e,t),this.size=n.size,this}function _l(e){var t=this.__data__=new gu(e);this.size=t.size}_l.prototype.clear=V2t,_l.prototype.delete=U2t,_l.prototype.get=q2t,_l.prototype.has=G2t,_l.prototype.set=Y2t;function X2t(e,t){return e&&Xh(t,Zh(t),e)}function Z2t(e,t){return e&&Xh(t,mx(t),e)}var _pe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$pe=_pe&&typeof module=="object"&&module&&!module.nodeType&&module,Q2t=$pe&&$pe.exports===_pe,Ppe=Q2t?El.Buffer:void 0,Mpe=Ppe?Ppe.allocUnsafe:void 0;function Tpe(e,t){if(t)return e.slice();var n=e.length,r=Mpe?Mpe(n):new e.constructor(n);return e.copy(r),r}function J2t(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Ipe(){return[]}var eSt=Object.prototype,tSt=eSt.propertyIsEnumerable,Rpe=Object.getOwnPropertySymbols,IL=Rpe?function(e){return e==null?[]:(e=Object(e),J2t(Rpe(e),function(t){return tSt.call(e,t)}))}:Ipe;function nSt(e,t){return Xh(e,IL(e),t)}var rSt=Object.getOwnPropertySymbols,kpe=rSt?function(e){for(var t=[];e;)$L(t,IL(e)),e=ML(e);return t}:Ipe;function iSt(e,t){return Xh(e,kpe(e),t)}function Npe(e,t,n){var r=t(e);return ir(e)?r:$L(r,n(e))}function RL(e){return Npe(e,Zh,IL)}function Ape(e){return Npe(e,mx,kpe)}var kL=Yh(El,"DataView"),NL=Yh(El,"Promise"),Em=Yh(El,"Set"),Lpe="[object Map]",oSt="[object Object]",jpe="[object Promise]",Dpe="[object Set]",Fpe="[object WeakMap]",Bpe="[object DataView]",aSt=Kh(kL),sSt=Kh(bx),lSt=Kh(NL),cSt=Kh(Em),uSt=Kh(dx),$l=dc;(kL&&$l(new kL(new ArrayBuffer(1)))!=Bpe||bx&&$l(new bx)!=Lpe||NL&&$l(NL.resolve())!=jpe||Em&&$l(new Em)!=Dpe||dx&&$l(new dx)!=Fpe)&&($l=function(e){var t=dc(e),n=t==oSt?e.constructor:void 0,r=n?Kh(n):"";if(r)switch(r){case aSt:return Bpe;case sSt:return Lpe;case lSt:return jpe;case cSt:return Dpe;case uSt:return Fpe}return t});var fSt=Object.prototype,dSt=fSt.hasOwnProperty;function hSt(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&dSt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var N$=El.Uint8Array;function AL(e){var t=new e.constructor(e.byteLength);return new N$(t).set(new N$(e)),t}function pSt(e,t){var n=t?AL(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var vSt=/\w*$/;function gSt(e){var t=new e.constructor(e.source,vSt.exec(e));return t.lastIndex=e.lastIndex,t}var zpe=Hs?Hs.prototype:void 0,Hpe=zpe?zpe.valueOf:void 0;function mSt(e){return Hpe?Object(Hpe.call(e)):{}}function Wpe(e,t){var n=t?AL(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ySt="[object Boolean]",bSt="[object Date]",xSt="[object Map]",SSt="[object Number]",wSt="[object RegExp]",CSt="[object Set]",OSt="[object String]",ESt="[object Symbol]",_St="[object ArrayBuffer]",$St="[object DataView]",PSt="[object Float32Array]",MSt="[object Float64Array]",TSt="[object Int8Array]",ISt="[object Int16Array]",RSt="[object Int32Array]",kSt="[object Uint8Array]",NSt="[object Uint8ClampedArray]",ASt="[object Uint16Array]",LSt="[object Uint32Array]";function jSt(e,t,n){var r=e.constructor;switch(t){case _St:return AL(e);case ySt:case bSt:return new r(+e);case $St:return pSt(e,n);case PSt:case MSt:case TSt:case ISt:case RSt:case kSt:case NSt:case ASt:case LSt:return Wpe(e,n);case xSt:return new r;case SSt:case OSt:return new r(e);case wSt:return gSt(e);case CSt:return new r;case ESt:return mSt(e)}}function Vpe(e){return typeof e.constructor=="function"&&!T$(e)?mL(ML(e)):{}}var DSt="[object Map]";function FSt(e){return Ra(e)&&$l(e)==DSt}var Upe=wm&&wm.isMap,BSt=Upe?SL(Upe):FSt,zSt="[object Set]";function HSt(e){return Ra(e)&&$l(e)==zSt}var qpe=wm&&wm.isSet,WSt=qpe?SL(qpe):HSt,VSt=1,USt=2,qSt=4,Gpe="[object Arguments]",GSt="[object Array]",KSt="[object Boolean]",YSt="[object Date]",XSt="[object Error]",Kpe="[object Function]",ZSt="[object GeneratorFunction]",QSt="[object Map]",JSt="[object Number]",Ype="[object Object]",ewt="[object RegExp]",twt="[object Set]",nwt="[object String]",rwt="[object Symbol]",iwt="[object WeakMap]",owt="[object ArrayBuffer]",awt="[object DataView]",swt="[object Float32Array]",lwt="[object Float64Array]",cwt="[object Int8Array]",uwt="[object Int16Array]",fwt="[object Int32Array]",dwt="[object Uint8Array]",hwt="[object Uint8ClampedArray]",pwt="[object Uint16Array]",vwt="[object Uint32Array]",jr={};jr[Gpe]=jr[GSt]=jr[owt]=jr[awt]=jr[KSt]=jr[YSt]=jr[swt]=jr[lwt]=jr[cwt]=jr[uwt]=jr[fwt]=jr[QSt]=jr[JSt]=jr[Ype]=jr[ewt]=jr[twt]=jr[nwt]=jr[rwt]=jr[dwt]=jr[hwt]=jr[pwt]=jr[vwt]=!0,jr[XSt]=jr[Kpe]=jr[iwt]=!1;function xx(e,t,n,r,i,o){var a,s=t&VSt,l=t&USt,c=t&qSt;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!la(e))return e;var u=ir(e);if(u){if(a=hSt(e),!s)return bL(e,a)}else{var f=$l(e),d=f==Kpe||f==ZSt;if(vx(e))return Tpe(e,s);if(f==Ype||f==Gpe||d&&!i){if(a=l||d?{}:Vpe(e),!s)return l?iSt(e,Z2t(a,e)):nSt(e,X2t(a,e))}else{if(!jr[f])return i?e:{};a=jSt(e,f,s)}}o||(o=new _l);var h=o.get(e);if(h)return h;o.set(e,a),WSt(e)?e.forEach(function(g){a.add(xx(g,t,n,g,e,o))}):BSt(e)&&e.forEach(function(g,m){a.set(m,xx(g,t,n,m,e,o))});var p=c?l?Ape:RL:l?mx:Zh,v=u?void 0:p(e);return Kbt(v||e,function(g,m){v&&(m=g,g=e[m]),M$(a,m,xx(g,t,n,m,e,o))}),a}var gwt=1,mwt=4;function Xpe(e){return xx(e,gwt|mwt)}var ywt="__lodash_hash_undefined__";function bwt(e){return this.__data__.set(e,ywt),this}function xwt(e){return this.__data__.has(e)}function Sx(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new mu;++t<n;)this.add(e[t])}Sx.prototype.add=Sx.prototype.push=bwt,Sx.prototype.has=xwt;function Swt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Zpe(e,t){return e.has(t)}var wwt=1,Cwt=2;function Qpe(e,t,n,r,i,o){var a=n&wwt,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,h=n&Cwt?new Sx:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var p=e[f],v=t[f];if(r)var g=a?r(v,p,f,t,e,o):r(p,v,f,e,t,o);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!Swt(t,function(m,y){if(!Zpe(h,y)&&(p===m||i(p,m,n,r,o)))return h.push(y)})){d=!1;break}}else if(!(p===v||i(p,v,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function Owt(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function LL(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Ewt=1,_wt=2,$wt="[object Boolean]",Pwt="[object Date]",Mwt="[object Error]",Twt="[object Map]",Iwt="[object Number]",Rwt="[object RegExp]",kwt="[object Set]",Nwt="[object String]",Awt="[object Symbol]",Lwt="[object ArrayBuffer]",jwt="[object DataView]",Jpe=Hs?Hs.prototype:void 0,jL=Jpe?Jpe.valueOf:void 0;function Dwt(e,t,n,r,i,o,a){switch(n){case jwt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Lwt:return!(e.byteLength!=t.byteLength||!o(new N$(e),new N$(t)));case $wt:case Pwt:case Iwt:return hx(+e,+t);case Mwt:return e.name==t.name&&e.message==t.message;case Rwt:case Nwt:return e==t+"";case Twt:var s=Owt;case kwt:var l=r&Ewt;if(s||(s=LL),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=_wt,a.set(e,t);var u=Qpe(s(e),s(t),r,i,o,a);return a.delete(e),u;case Awt:if(jL)return jL.call(e)==jL.call(t)}return!1}var Fwt=1,Bwt=Object.prototype,zwt=Bwt.hasOwnProperty;function Hwt(e,t,n,r,i,o){var a=n&Fwt,s=RL(e),l=s.length,c=RL(t),u=c.length;if(l!=u&&!a)return!1;for(var f=l;f--;){var d=s[f];if(!(a?d in t:zwt.call(t,d)))return!1}var h=o.get(e),p=o.get(t);if(h&&p)return h==t&&p==e;var v=!0;o.set(e,t),o.set(t,e);for(var g=a;++f<l;){d=s[f];var m=e[d],y=t[d];if(r)var x=a?r(y,m,d,t,e,o):r(m,y,d,e,t,o);if(!(x===void 0?m===y||i(m,y,n,r,o):x)){v=!1;break}g||(g=d=="constructor")}if(v&&!g){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(v=!1)}return o.delete(e),o.delete(t),v}var Wwt=1,eve="[object Arguments]",tve="[object Array]",A$="[object Object]",Vwt=Object.prototype,nve=Vwt.hasOwnProperty;function Uwt(e,t,n,r,i,o){var a=ir(e),s=ir(t),l=a?tve:$l(e),c=s?tve:$l(t);l=l==eve?A$:l,c=c==eve?A$:c;var u=l==A$,f=c==A$,d=l==c;if(d&&vx(e)){if(!vx(t))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new _l),a||CL(e)?Qpe(e,t,n,r,i,o):Dwt(e,t,l,n,r,i,o);if(!(n&Wwt)){var h=u&&nve.call(e,"__wrapped__"),p=f&&nve.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,g=p?t.value():t;return o||(o=new _l),i(v,g,n,r,o)}}return d?(o||(o=new _l),Hwt(e,t,n,r,i,o)):!1}function L$(e,t,n,r,i){return e===t?!0:e==null||t==null||!Ra(e)&&!Ra(t)?e!==e&&t!==t:Uwt(e,t,n,r,L$,i)}var qwt=1,Gwt=2;function Kwt(e,t,n,r){var i=n.length,o=i;if(e==null)return!o;for(e=Object(e);i--;){var a=n[i];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){a=n[i];var s=a[0],l=e[s],c=a[1];if(a[2]){if(l===void 0&&!(s in e))return!1}else{var u=new _l,f;if(!(f===void 0?L$(c,l,qwt|Gwt,r,u):f))return!1}}return!0}function rve(e){return e===e&&!la(e)}function Ywt(e){for(var t=Zh(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,rve(i)]}return t}function ive(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Xwt(e){var t=Ywt(e);return t.length==1&&t[0][2]?ive(t[0][0],t[0][1]):function(n){return n===e||Kwt(n,e,t)}}function Zwt(e,t){return e!=null&&t in Object(e)}function Qwt(e,t,n){t=Cm(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=Om(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&xL(i)&&$$(a,i)&&(ir(e)||px(e)))}function ove(e,t){return e!=null&&Qwt(e,t,Zwt)}var Jwt=1,eCt=2;function tCt(e,t){return OL(e)&&rve(t)?ive(Om(e),t):function(n){var r=Mr(n,e);return r===void 0&&r===t?ove(n,e):L$(t,r,Jwt|eCt)}}function nCt(e){return function(t){return t==null?void 0:t[e]}}function rCt(e){return function(t){return k$(t,e)}}function iCt(e){return OL(e)?nCt(Om(e)):rCt(e)}function DL(e){return typeof e=="function"?e:e==null?vL:typeof e=="object"?ir(e)?tCt(e[0],e[1]):Xwt(e):iCt(e)}function oCt(e,t,n,r){for(var i=-1,o=e==null?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function aCt(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[++i];if(n(o[l],l,o)===!1)break}return t}}var ave=aCt();function sCt(e,t){return e&&ave(e,t,Zh)}function lCt(e,t){return function(n,r){if(n==null)return n;if(!Xf(n))return e(n,r);for(var i=n.length,o=-1,a=Object(n);++o<i&&r(a[o],o,a)!==!1;);return n}}var sve=lCt(sCt);function cCt(e,t,n,r){return sve(e,function(i,o,a){t(r,i,n(i),a)}),r}function uCt(e,t){return function(n,r){var i=ir(n)?oCt:cCt,o=t?t():{};return i(n,e,DL(r),o)}}function FL(e,t,n){(n!==void 0&&!hx(e[t],n)||n===void 0&&!(t in e))&&P$(e,t,n)}function fCt(e){return Ra(e)&&Xf(e)}function BL(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function dCt(e){return Xh(e,mx(e))}function hCt(e,t,n,r,i,o,a){var s=BL(e,n),l=BL(t,n),c=a.get(l);if(c){FL(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,f=u===void 0;if(f){var d=ir(l),h=!d&&vx(l),p=!d&&!h&&CL(l);u=l,d||h||p?ir(s)?u=s:fCt(s)?u=bL(s):h?(f=!1,u=Tpe(l,!0)):p?(f=!1,u=Wpe(l,!0)):u=[]:TL(l)||px(l)?(u=s,px(s)?u=dCt(s):(!la(s)||xm(s))&&(u=Vpe(l))):f=!1}f&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),FL(e,n,u)}function lve(e,t,n,r,i){e!==t&&ave(t,function(o,a){if(i||(i=new _l),la(o))hCt(e,t,a,n,lve,r,i);else{var s=r?r(BL(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),FL(e,a,s)}},mx)}var pCt=hpe(function(e,t,n,r){lve(e,t,n,r)});function vCt(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var gCt=lbt(function(e,t){return e/t},1);function mCt(e,t){var n=-1,r=Xf(e)?Array(e.length):[];return sve(e,function(i,o,a){r[++n]=t(i,o,a)}),r}function _m(e,t){var n=ir(e)?w$:mCt;return n(e,DL(t))}var yCt="Expected a function",bCt=8,xCt=32,SCt=128,wCt=256;function CCt(e){return PL(function(t){for(var n=t.length,r=n,i=Yf.prototype.thru;r--;){var o=t[r];if(typeof o!="function")throw new TypeError(yCt);if(i&&!a&&O$(o)=="wrapper")var a=new Yf([],!0)}for(r=a?r:n;++r<n;){o=t[r];var s=O$(o),l=s=="wrapper"?ape(o):void 0;l&&lpe(l[0])&&l[1]==(SCt|bCt|xCt|wCt)&&!l[4].length&&l[9]==1?a=a[O$(l[0])].apply(a,l[3]):a=o.length==1&&lpe(o)?a[s]():a.thru(o)}return function(){var c=arguments,u=c[0];if(a&&c.length==1&&ir(u))return a.plant(u).value();for(var f=0,d=n?t[f].apply(this,c):u;++f<n;)d=t[f].call(this,d);return d}})}var Qn=CCt(),OCt=Object.prototype,ECt=OCt.hasOwnProperty,cve=uCt(function(e,t,n){ECt.call(e,n)?e[n].push(t):P$(e,n,[t])}),_Ct="[object String]";function uve(e){return typeof e=="string"||!ir(e)&&Ra(e)&&dc(e)==_Ct}function $Ct(e,t){return w$(t,function(n){return e[n]})}function PCt(e){return e==null?[]:$Ct(e,Zh(e))}var MCt=Math.max;function TCt(e,t,n,r){e=Xf(e)?e:PCt(e),n=n&&!r?tpe(n):0;var i=e.length;return n<0&&(n=MCt(i+n,0)),uve(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&upe(e,t,n)>-1}function ICt(e,t){return t.length<2?e:k$(e,F2t(t,0,-1))}var RCt="[object Boolean]";function zL(e){return e===!0||e===!1||Ra(e)&&dc(e)==RCt}function fve(e,t){return L$(e,t)}var kCt="[object Number]";function $m(e){return typeof e=="number"||Ra(e)&&dc(e)==kCt}function NCt(e){return e==null}function ACt(e){return e===void 0}function LCt(e,t){return t=Cm(t,e),e=ICt(e,t),e==null||delete e[Om(vCt(t))]}function jCt(e){return TL(e)?void 0:e}var DCt=1,FCt=2,BCt=4,HL=PL(function(e,t){var n={};if(e==null)return n;var r=!1;t=w$(t,function(o){return o=Cm(o,e),r||(r=o.length>1),o}),Xh(e,Ape(e),n),r&&(n=xx(n,DCt|FCt|BCt,jCt));for(var i=t.length;i--;)LCt(n,t[i]);return n});function dve(e,t,n,r){if(!la(e))return e;t=Cm(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var l=Om(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=a){var u=s[l];c=void 0,c===void 0&&(c=la(u)?u:$$(t[i+1])?[]:{})}M$(s,l,c),s=s[l]}return e}function zCt(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=k$(e,a);n(s,a)&&dve(o,Cm(a,e),s)}return o}function HCt(e,t){return zCt(e,t,function(n,r){return ove(e,r)})}var hve=PL(function(e,t){return e==null?{}:HCt(e,t)});function Qt(e,t,n){return e==null?e:dve(e,t,n)}var WCt=1/0,VCt=Em&&1/LL(new Em([,-0]))[1]==WCt?function(e){return new Em(e)}:ope,UCt=200;function qCt(e,t,n){var r=-1,i=Qbt,o=e.length,a=!0,s=[],l=s;if(o>=UCt){var c=t?null:VCt(e);if(c)return LL(c);a=!1,i=Zpe,l=new Sx}else l=t?[]:s;e:for(;++r<o;){var u=e[r],f=t?t(u):u;if(u=u!==0?u:0,a&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(u)}else i(l,f,n)||(l!==s&&l.push(f),s.push(u))}return s}function WL(e,t){return e&&e.length?qCt(e,DL(t)):[]}var GCt=function(e){var t=/react|\.jsx|children:\[\(|return\s+[A-Za-z0-9].createElement\((?!['"][g|circle|ellipse|image|rect|line|polyline|polygon|text|path|html|mesh]['"])([^\)])*,/i;return t.test(e)},VL=function(){return VL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},VL.apply(this,arguments)},pve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function KCt(e,t){var n=b.useRef(),r=b.useRef(),i=b.useRef(null),o=t.onReady,a=t.onEvent,s=function(u,f){var d;u===void 0&&(u="image/png");var h=(d=i.current)===null||d===void 0?void 0:d.getElementsByTagName("canvas")[0];return h==null?void 0:h.toDataURL(u,f)},l=function(u,f,d){u===void 0&&(u="download"),f===void 0&&(f="image/png");var h=u;u.indexOf(".")===-1&&(h="".concat(u,".").concat(f.split("/")[1]));var p=s(f,d),v=document.createElement("a");return v.href=p,v.download=h,document.body.appendChild(v),v.click(),document.body.removeChild(v),v=null,h},c=function(u,f){f===void 0&&(f=!1);var d=Object.keys(u),h=f;d.forEach(function(p){var v=u[p];p==="tooltip"&&(h=!0),xm(v)&&GCt("".concat(v))?u[p]=function(){for(var g=[],m=0;m<arguments.length;m++)g[m]=arguments[m];return U1t(v.apply(void 0,g),h)}:ir(v)?v.forEach(function(g){c(g,h)}):la(v)?c(v,h):h=f})};return b.useEffect(function(){if(n.current&&!fve(r.current,t)){var u=!1;if(r.current){var f=r.current;f.data;var d=pve(f,["data"]);t.data;var h=pve(t,["data"]);u=fve(d,h)}r.current=Xpe(t),u?n.current.changeData(Mr(t,"data")):(c(t),n.current.update(t),n.current.render())}},[t]),b.useEffect(function(){if(!i.current)return function(){return null};r.current||(r.current=Xpe(t)),c(t);var u=new e(i.current,VL({},t));u.toDataURL=s,u.downloadImage=l,u.render(),n.current=u,o&&o(u);var f=function(d){a&&a(u,d)};return u.on("*",f),function(){n.current&&(n.current.destroy(),n.current.off("*",f),n.current=void 0)}},[]),{chart:n,container:i}}const YCt={field:"value",size:[1,1],round:!1,padding:0,sort:(e,t)=>t.value-e.value,as:["x","y"],ignoreParentValue:!0},XCt="nodeIndex",wx="childNodeCount",ZCt="nodeAncestor",UL="Invalid field: it must be a string!";function QCt(e,t){const{field:n,fields:r}=e;if(Wr(n))return n;if(Hi(n))return console.warn(UL),n[0];if(console.warn(`${UL} will try to get fields instead.`),Wr(r))return r;if(Hi(r)&&r.length)return r[0];throw new TypeError(UL)}function JCt(e){const t=[];if(e&&e.each){let n,r;e.each(i=>{var o,a;i.parent!==n?(n=i.parent,r=0):r+=1;const s=WQ((((o=i.ancestors)===null||o===void 0?void 0:o.call(i))||[]).map(l=>t.find(c=>c.name===l.name)||l),({depth:l})=>l>0&&l<i.depth);i[ZCt]=s,i[wx]=((a=i.children)===null||a===void 0?void 0:a.length)||0,i[XCt]=r,t.push(i)})}else e&&e.eachNode&&e.eachNode(n=>{t.push(n)});return t}function eOt(e,t){t=EGe({},YCt,t);const n=t.as;if(!Hi(n)||n.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');let r;try{r=QCt(t)}catch(l){console.warn(l)}const o=(l=>Hst().size(t.size).round(t.round).padding(t.padding)(Zg(l).sum(c=>_1(c.children)?t.ignoreParentValue?0:c[r]-VQ(c.children,(u,f)=>u+f[r],0):c[r]).sort(t.sort)))(e),a=n[0],s=n[1];return o.each(l=>{var c,u;l[a]=[l.x0,l.x1,l.x1,l.x0],l[s]=[l.y1,l.y1,l.y0,l.y0],l.name=l.name||((c=l.data)===null||c===void 0?void 0:c.name)||((u=l.data)===null||u===void 0?void 0:u.label),l.data.name=l.name,["x0","x1","y0","y1"].forEach(f=>{n.indexOf(f)===-1&&delete l[f]})}),JCt(o)}var tOt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Pm="sunburst",qL="markType",vve="path",j$="ancestor-node";function nOt(e){const{data:t,encode:n}=e,{color:r,value:i}=n,a=eOt(t,{field:i,type:"hierarchy.partition",as:["x","y"]}),s=[];return a.forEach(l=>{var c,u,f,d;if(l.depth===0)return null;let h=l.data.name;const p=[h];let v=Object.assign({},l);for(;v.depth>1;)h=`${(c=v.parent.data)===null||c===void 0?void 0:c.name} / ${h}`,p.unshift((u=v.parent.data)===null||u===void 0?void 0:u.name),v=v.parent;const g=Object.assign(Object.assign(Object.assign({},lk(l.data,[i])),{[vve]:h,[j$]:v.data.name}),l);r&&r!==j$&&(g[r]=l.data[r]||((d=(f=l.parent)===null||f===void 0?void 0:f.data)===null||d===void 0?void 0:d[r])),s.push(g)}),s.map(l=>{const c=l.x.slice(0,2),u=[l.y[2],l.y[0]];return c[0]===c[1]&&(u[0]=u[1]=(l.y[2]+l.y[0])/2),Object.assign(Object.assign({},l),{x:c,y:u,fillOpacity:Math.pow(.85,l.depth)})})}const gve={id:Pm,encode:{x:"x",y:"y",key:vve,color:j$,value:"value"},axis:{x:!1,y:!1},style:{[qL]:Pm,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[wx]:wx,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},mve=e=>{const{encode:t,data:n=[],legend:r}=e,i=tOt(e,["encode","data","legend"]),o=Object.assign(Object.assign({},i.coordinate),{innerRadius:Math.max(Hn(i,["coordinate","innerRadius"],.2),1e-5)}),a=Object.assign(Object.assign({},gve.encode),t),{value:s}=a,l=nOt({encode:a,data:n});return console.log(l,"rectData"),[Ue({},gve,Object.assign(Object.assign({type:"rect",data:l,encode:a,tooltip:{title:"path",items:[c=>({name:s,value:c[s]})]}},i),{coordinate:o}))]};mve.props={};var rOt=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(u){try{c(r.next(u))}catch(f){a(f)}}function l(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const iOt=e=>e.querySelectorAll(".element").filter(t=>Hn(t,["style",qL])===Pm);function oOt(e){return Jt(e).select(`.${Ab}`).node()}const aOt={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}};function sOt(e={}){const{breadCrumb:t={},isFixedColor:n=!1}=e,r=Ue({},aOt,t);return i=>{const{update:o,setState:a,container:s,view:l,options:c}=i,u=s.ownerDocument,f=oOt(s),d=c.marks.find(({id:x})=>x===Pm),{state:h}=d,p=u.createElement("g");f.appendChild(p);const v=(x,S)=>rOt(this,void 0,void 0,function*(){if(p.removeChildren(),x){const w=u.createElement("text",{style:Object.assign({x:0,text:r.rootText,depth:0},r.style)});p.appendChild(w);let C="";const O=x==null?void 0:x.split(" / ");let E=r.style.y,_=p.getBBox().width;const $=f.getBBox().width,P=O.map((T,I)=>{const M=u.createElement("text",{style:Object.assign(Object.assign({x:_,text:" / "},r.style),{y:E})});p.appendChild(M),_+=M.getBBox().width,C=`${C}${T} / `;const R=u.createElement("text",{name:C.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:T,x:_,depth:I+1},r.style),{y:E})});return p.appendChild(R),_+=R.getBBox().width,_>$&&(E=p.getBBox().height,_=0,M.attr({x:_,y:E}),_+=M.getBBox().width,R.attr({x:_,y:E}),_+=R.getBBox().width),R});[w,...P].forEach((T,I)=>{if(I===P.length)return;const M=Object.assign({},T.attributes);T.attr("cursor","pointer"),T.addEventListener("mouseenter",()=>{T.attr(r.active)}),T.addEventListener("mouseleave",()=>{T.attr(M)}),T.addEventListener("click",()=>{v(T.name,Hn(T,["style","depth"]))})})}a("drillDown",w=>{const{marks:C}=w,O=C.map(E=>{if(E.id!==Pm&&E.type!=="rect")return E;const{data:_}=E,$=Object.fromEntries(["color"].map(T=>[T,{domain:l.scale[T].getOptions().domain}])),P=_.filter(T=>{const I=T.path;return n||(T[j$]=I.split(" / ")[S]),x?new RegExp(`^${x}.+`).test(I):!0});return Ue({},E,n?{data:P,scale:$}:{data:P})});return Object.assign(Object.assign({},w),{marks:O})}),yield o()}),g=x=>{const S=x.target;if(Hn(S,["style",qL])!==Pm||Hn(S,["markType"])!=="rect"||!Hn(S,["style",wx]))return;const w=Hn(S,["__data__","key"]),C=Hn(S,["style","depth"]);S.style.cursor="pointer",v(w,C)};f.addEventListener("click",g);const m=ak(Object.assign(Object.assign({},h.active),h.inactive)),y=()=>{iOt(f).forEach(S=>{const w=Hn(S,["style",wx]);if(Hn(S,["style","cursor"])!=="pointer"&&w){S.style.cursor="pointer";const O=lk(S.attributes,m);S.addEventListener("mouseenter",()=>{S.attr(h.active)}),S.addEventListener("mouseleave",()=>{S.attr(Ue(O,h.inactive))})}})};return f.addEventListener("mousemove",y),()=>{p.remove(),f.removeEventListener("click",g),f.removeEventListener("mousemove",y)}}}function lOt(){return{"interaction.drillDown":sOt,"mark.sunburst":mve}}var D$=function(){return D$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},D$.apply(this,arguments)},cOt=u1t(D1t,D$(D$({},khe()),lOt())),or=function(e){var t=fOt(e),n=t.children,r=n===void 0?[]:n,i=HL(t,[].concat(xve,F$.map(function(c){return c.key}))),o=function(c){var u;return(u=gOt.find(function(f){return f.key===c}))===null||u===void 0?void 0:u.callback},a=function(c,u,f){var d=o(u);d?d(c,u,f):c[u]=Zf({},c[u],f)},s=function(c){Object.keys(c).forEach(function(u){if(c[u]){var f=F$.find(function(p){return p.key===u});if(f){var d=f.type,h=f.extend_keys;d?r.push(l(Zf({},hve(c,h),{type:d},c[u]))):ir(c[u])&&c[u].forEach(function(p){r.push(l(p))})}}})},l=function(c){return s(c),Object.keys(KL).forEach(function(u){var f=KL[u];if(!ACt(c[u]))if(la(f)){var d=f.value,h=f.target,p=d(c[u]);a(c,h,p)}else Qt(c,f,c[u])}),c};return r.forEach(function(c){var u=Zf({},i,c);l(Zf(c,u))}),s(t),uOt(t),e},yve=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},uOt=function(e){var t=e.children,n=t===void 0?[]:t,r=Object.keys(KL).concat(F$.map(function(i){return i.key}));return r.forEach(function(i){delete e[i]}),n.forEach(function(i){Object.keys(i).forEach(function(o){r.includes(o)&&delete i[o]})}),Object.keys(e).forEach(function(i){yve(yve([],xve,!0),XL.map(function(o){return o.key}),!0).includes(i)||delete e[i]}),e},fOt=function(e){var t=e.options,n=t.children,r=n===void 0?[]:n;return r.forEach(function(i){Object.keys(i).forEach(function(o){ir(i[o])&&o!=="data"&&(i[o]=i[o].filter(function(a){return!a[GL]}))})}),t},bve=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},dOt=function(e,t){if(ir(t))return t},Zf=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return pCt.apply(void 0,bve(bve([],e,!1),[dOt],!1))};function Cx(e){switch(typeof e){case"function":return e;case"string":return function(t){return Mr(t,[e])};default:return function(){return e}}}var Ox=function(){return Ox=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ox.apply(this,arguments)},hOt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},pOt=["renderer"],xve=["width","height","autoFit","theme","inset","insetLeft","insetRight","insetTop","insetBottom","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","depth","title","clip","children","type","data","direction"],GL="__transform__",vOt="__skipDelCustomKeys__",Jh=function(e,t){return zL(t)?{type:e,available:t}:Ox({type:e},t)},KL={xField:"encode.x",yField:"encode.y",colorField:"encode.color",angleField:"encode.y",keyField:"encode.key",sizeField:"encode.size",shapeField:"encode.shape",seriesField:"encode.series",positionField:"encode.position",textField:"encode.text",valueField:"encode.value",binField:"encode.x",srcField:"encode.src",linkColorField:"encode.linkColor",fontSizeField:"encode.fontSize",radius:"coordinate.outerRadius",innerRadius:"coordinate.innerRadius",startAngle:"coordinate.startAngle",endAngle:"coordinate.endAngle",focusX:"coordinate.focusX",focusY:"coordinate.focusY",distortionX:"coordinate.distortionX",distortionY:"coordinate.distortionY",visual:"coordinate.visual",stack:{target:"transform",value:function(e){return Jh("stackY",e)}},normalize:{target:"transform",value:function(e){return Jh("normalizeY",e)}},percent:{target:"transform",value:function(e){return Jh("normalizeY",e)}},group:{target:"transform",value:function(e){return Jh("dodgeX",e)}},sort:{target:"transform",value:function(e){return Jh("sortX",e)}},symmetry:{target:"transform",value:function(e){return Jh("symmetryY",e)}},diff:{target:"transform",value:function(e){return Jh("diffY",e)}},meta:{target:"scale",value:function(e){return e}},label:{target:"labels",value:function(e){return e}},shape:"style.shape",connectNulls:{target:"style",value:function(e){return zL(e)?{connect:e}:e}}},YL=["xField","yField","seriesField","colorField","keyField","positionField","meta","tooltip","animate","stack","normalize","percent","group","sort","symmetry","diff"],F$=[{key:"annotations",extend_keys:[]},{key:"line",type:"line",extend_keys:YL},{key:"point",type:"point",extend_keys:YL},{key:"area",type:"area",extend_keys:YL}],gOt=[{key:"transform",callback:function(e,t,n){var r;e[t]=e[t]||[];var i=n.available,o=i===void 0?!0:i,a=hOt(n,["available"]);if(o)e[t].push(Ox((r={},r[GL]=!0,r),a));else{var s=e[t].indexOf(function(l){return l.type===n.type});s!==-1&&e[t].splice(s,1)}}},{key:"labels",callback:function(e,t,n){var r;if(!n||ir(n)){e[t]=n||[];return}n.text||(n.text=e.yField),e[t]=e[t]||[],e[t].push(Ox((r={},r[GL]=!0,r),n))}}],XL=[{key:"conversionTag",shape:"ConversionTag"},{key:"axisText",shape:"BidirectionalBarAxisText"}],mOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),B$=function(){return B$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},B$.apply(this,arguments)},yOt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Sve=function(e){mOt(t,e);function t(n){n===void 0&&(n={});var r=n.style,i=yOt(n,["style"]);return e.call(this,B$({style:B$({text:"",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000",fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1},r)},i))||this}return t}(Sl),bOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),z$=function(){return z$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},z$.apply(this,arguments)},xOt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},SOt=function(e){bOt(t,e);function t(n){n===void 0&&(n={});var r=n.style,i=xOt(n,["style"]);return e.call(this,z$({style:z$({fill:"#eee"},r)},i))||this}return t}(ub),wOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),wve=function(e){wOt(t,e);function t(n,r,i){var o=e.call(this,{style:Zf(i,r)})||this;return o.chart=n,o}return t.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this)},t.prototype.disconnectedCallback=function(){},t.prototype.attributeChangedCallback=function(n){},t.prototype.update=function(n,r){var i;return this.attr(Zf({},this.attributes,n||{})),(i=this.render)===null||i===void 0?void 0:i.call(this,this.attributes,this,r)},t.prototype.clear=function(){this.removeChildren()},t.prototype.getElementsLayout=function(){var n=this.chart.getContext().canvas,r=n.document.getElementsByClassName("element"),i=[];return r.forEach(function(o){var a=o.getBBox(),s=a.x,l=a.y,c=a.width,u=a.height,f=o.__data__;i.push({bbox:a,x:s,y:l,width:c,height:u,key:f.key,data:f})}),i},t.prototype.bindEvents=function(n,r){},t}(wE),COt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),H$=function(){return H$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},H$.apply(this,arguments)},OOt=function(e){COt(t,e);function t(n,r){return e.call(this,n,r,{type:t.tag})||this}return t.prototype.getConversionTagLayout=function(){var n=this.direction==="vertical",r=this.getElementsLayout(),i=r[0],o=i.x,a=i.y,s=i.height,l=i.width,c=i.data,u=["items",0,"value"],f=Mr(c,u),d=n?r[1].y-a-s:r[1].x-o-l,h=[],p=this.attributes,v=p.size,g=v===void 0?40:v,m=p.arrowSize,y=m===void 0?20:m,x=p.spacing,S=x===void 0?4:x;return r.forEach(function(w,C){if(C>0){var O=w.x,E=w.y,_=w.height,$=w.width,P=w.data,T=w.key,I=Mr(P,u),M=g/2;if(n){var R=O+$/2,k=E;h.push({points:[[R+M,k-d+S],[R+M,k-y-S],[R,k-S],[R-M,k-y-S],[R-M,k-d+S]],center:[R,k-d/2-S],width:d,value:[f,I],key:T})}else{var R=O,k=E+_/2;h.push({points:[[O-d+S,k-M],[O-y-S,k-M],[R-S,k],[O-y-S,k+M],[O-d+S,k+M]],center:[R-d/2-S,k],width:d,value:[f,I],key:T})}f=I}}),h},t.prototype.render=function(){this.setDirection(),this.drawConversionTag()},t.prototype.setDirection=function(){var n=this.chart.getCoordinate(),r=Mr(n,"options.transformations"),i="horizontal";r.forEach(function(o){o.includes("transpose")&&(i="vertical")}),this.direction=i},t.prototype.drawConversionTag=function(){var n=this,r=this.getConversionTagLayout(),i=this.attributes,o=i.style,a=i.text,s=a.style,l=a.formatter;r.forEach(function(c){var u=c.points,f=c.center,d=c.value,h=c.key,p=d[0],v=d[1],g=f[0],m=f[1],y=new SOt({style:H$({points:u,fill:"#eee"},o),id:"polygon-".concat(h)}),x=new Sve({style:H$({x:g,y:m,text:xm(l)?l(p,v):(v/p*100).toFixed(2)+"%"},s),id:"text-".concat(h)});n.appendChild(y),n.appendChild(x)})},t.prototype.update=function(){var n=this,r=this.getConversionTagLayout();r.forEach(function(i){var o=i.points,a=i.center,s=i.key,l=a[0],c=a[1],u=n.getElementById("polygon-".concat(s)),f=n.getElementById("text-".concat(s));u.setAttribute("points",o),f.setAttribute("x",l),f.setAttribute("y",c)})},t.tag="ConversionTag",t}(wve),ZL=32,Cve=16,Ove=48,EOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ex=function(){return Ex=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ex.apply(this,arguments)},_Ot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},$Ot=function(e){EOt(t,e);function t(n,r){return e.call(this,n,r,{type:t.tag})||this}return t.prototype.render=function(){this.drawText()},t.prototype.getBidirectionalBarAxisTextLayout=function(){var n=this.attributes.layout,r=n==="vertical",i=this.getElementsLayout(),o=r?WL(i,"x"):WL(i,"y"),a=["title"],s=[],l=this.chart.getContext().views,c=Mr(l,[0,"layout"]),u=c.width,f=c.height;return o.forEach(function(d){var h=d.x,p=d.y,v=d.height,g=d.width,m=d.data,y=d.key,x=Mr(m,a);r?s.push({x:h+g/2,y:f,text:x,key:y}):s.push({x:u,y:p+v/2,text:x,key:y})}),WL(s,"text").length!==s.length&&(s=Object.values(cve(s,"text")).map(function(d){var h,p=d.reduce(function(v,g){return v+(r?g.x:g.y)},0);return Ex(Ex({},d[0]),(h={},h[r?"x":"y"]=p/d.length,h))})),s},t.prototype.transformLabelStyle=function(n){var r={},i=/^label[A-Z]/;return Object.keys(n).forEach(function(o){i.test(o)&&(r[o.replace("label","").replace(/^[A-Z]/,function(a){return a.toLowerCase()})]=n[o])}),r},t.prototype.drawText=function(){var n=this,r=this.getBidirectionalBarAxisTextLayout(),i=this.attributes,o=i.layout,a=i.labelFormatter,s=_Ot(i,["layout","labelFormatter"]);r.forEach(function(l){var c=l.x,u=l.y,f=l.text,d=l.key,h=new Sve({style:Ex({x:c,y:u,text:xm(a)?a(f):f,wordWrap:!0,wordWrapWidth:o==="horizontal"?ZL*2:120,maxLines:2,textOverflow:"ellipsis"},n.transformLabelStyle(s)),id:"text-".concat(d)});n.appendChild(h)})},t.prototype.update=function(){var n=this,r=this.getBidirectionalBarAxisTextLayout();r.forEach(function(i){var o=i.x,a=i.y,s=i.key,l=n.getElementById("text-".concat(s));l.setAttribute("x",o),l.setAttribute("y",a)})},t.tag="BidirectionalBarAxisText",t}(wve),POt={ConversionTag:OOt,BidirectionalBarAxisText:$Ot},MOt=function(){function e(t,n){this.container=new Map,this.chart=t,this.config=n,this.init()}return e.prototype.init=function(){var t=this;XL.forEach(function(n){var r,i=n.key,o=n.shape,a=t.config[i];if(a){var s=new POt[o](t.chart,a),l=t.chart.getContext().canvas;l.appendChild(s),t.container.set(i,s)}else(r=t.container.get(i))===null||r===void 0||r.clear()})},e.prototype.update=function(){var t=this;this.container.size&&XL.forEach(function(n){var r=n.key,i=t.container.get(r);i==null||i.update()})},e}(),TOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mm=function(){return Mm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Mm.apply(this,arguments)},Eve="data-chart-source-type",qn=function(e){TOt(t,e);function t(n,r){var i=e.call(this)||this;return i.container=typeof n=="string"?document.getElementById(n):n,i.options=i.mergeOption(r),i.createG2(),i.bindEvents(),i}return t.prototype.getChartOptions=function(){return Mm(Mm({},hve(this.options,pOt)),{container:this.container})},t.prototype.getSpecOptions=function(){return this.type==="base"||this[vOt]?Mm(Mm({},this.options),this.getChartOptions()):this.options},t.prototype.createG2=function(){if(!this.container)throw Error("The container is not initialized!");this.chart=new cOt(this.getChartOptions()),this.container.setAttribute(Eve,"Ant Design Charts")},t.prototype.bindEvents=function(){var n=this;this.chart&&this.chart.on("*",function(r){r!=null&&r.type&&n.emit(r.type,r)})},t.prototype.getBaseOptions=function(){return{type:"view",autoFit:!0}},t.prototype.getDefaultOptions=function(){},t.prototype.render=function(){var n=this;this.type!=="base"&&this.execAdaptor(),this.chart.options(this.getSpecOptions()),this.chart.render().then(function(){n.annotation=new MOt(n.chart,n.options)}),this.bindSizeSensor()},t.prototype.update=function(n){this.options=this.mergeOption(n)},t.prototype.mergeOption=function(n){return Zf({},this.getBaseOptions(),this.getDefaultOptions(),n)},t.prototype.changeData=function(n){this.chart.changeData(n)},t.prototype.changeSize=function(n,r){this.chart.changeSize(n,r)},t.prototype.destroy=function(){this.chart.destroy(),this.off(),this.container.removeAttribute(Eve)},t.prototype.execAdaptor=function(){var n=this.getSchemaAdaptor();n({chart:this.chart,options:this.options})},t.prototype.triggerResize=function(){this.chart.forceFit()},t.prototype.bindSizeSensor=function(){var n=this,r=this.options.autoFit,i=r===void 0?!0:r;i&&this.chart.on(rr.AFTER_CHANGE_SIZE,function(){n.annotation.update()})},t}($A),IOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ROt=function(e){IOt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="base",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"line"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return function(n){return n}},t}(qn),QL=function(){return QL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},QL.apply(this,arguments)};function kOt(e){var t=e.options,n=t.stack,r=t.tooltip,i=t.xField;if(!n)return e;var o=F$.map(function(s){return s.type}).filter(function(s){return!!s}),a=!1;return o.forEach(function(s){t[s]&&(a=!0,Qt(t,[s,"stack"],QL({y1:"y"},typeof n=="object"?n:{})))}),a&&!zL(r)&&!r&&Qt(t,"tooltip",{title:i,items:[{channel:"y"}]}),e}function fi(e){return Qn(kOt)(e)}function NOt(e){var t=e.options.layout,n=t===void 0?"horizontal":t;return e.options.coordinate.transform=n!=="horizontal"?void 0:[{type:"transpose"}],e}function AOt(e){NOt(e);var t=e.options.layout,n=t===void 0?"horizontal":t;return e.options.children.forEach(function(r){var i;!((i=r==null?void 0:r.coordinate)===null||i===void 0)&&i.transform&&(r.coordinate.transform=n!=="horizontal"?void 0:[{type:"transpose"}])}),e}function LOt(e){return Qn(fi,or)(e)}var jOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),DOt=function(e){jOt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="area",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"area"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return LOt},t}(qn),Tm=function(){return Tm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Tm.apply(this,arguments)};function _ve(e){var t=function(n){var r=n.options;Mr(r,"children.length")>1&&Qt(r,"children",[{type:"interval"}]);var i=r.scale,o=r.markBackground,a=r.data,s=r.children,l=r.yField,c=Mr(i,"y.domain",[]);if(o&&c.length&&ir(a)){var u="domainMax",f=a.map(function(d){var h;return Tm(Tm({originData:Tm({},d)},HL(d,l)),(h={},h[u]=c[c.length-1],h))});s.unshift(Tm({type:"interval",data:f,yField:u,tooltip:!1,style:{fill:"#eee"},label:!1},o))}return n};return Qn(t,fi,or)(e)}var FOt=function(){var e=function(t,n){return function(r){var i=t.fill,o=i===void 0?"#2888FF":i,a=t.stroke,s=t.fillOpacity,l=s===void 0?1:s,c=t.strokeOpacity,u=c===void 0?.2:c,f=t.pitch,d=f===void 0?8:f,h=r[0],p=r[1],v=r[2],g=r[3],m=(p[1]-h[1])/2,y=n.document,x=y.createElement("g",{}),S=y.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+m],[v[0]-d,h[1]+m],g],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u,inset:30}}),w=y.createElement("polygon",{style:{points:[[h[0]-d,h[1]+m],p,v,[v[0]-d,h[1]+m]],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u}}),C=y.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+m],p,[h[0]+d,h[1]+m]],fill:o,fillOpacity:l-.2}});return x.appendChild(S),x.appendChild(w),x.appendChild(C),x}};Ahe("shape.interval.bar25D",e)},BOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();FOt();var zOt=function(e){BOt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="Bar",n}return t.getDefaultOptions=function(){return{type:"view",coordinate:{transform:[{type:"transpose"}]},children:[{type:"interval"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0},elementHighlight:{background:!0}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return _ve},t}(qn),HOt=function(){var e=function(t,n){return function(r){var i=t.fill,o=i===void 0?"#2888FF":i,a=t.stroke,s=t.fillOpacity,l=s===void 0?1:s,c=t.strokeOpacity,u=c===void 0?.2:c,f=t.pitch,d=f===void 0?8:f,h=r[1][0]-r[0][0],p=h/2+r[0][0],v=n.document,g=v.createElement("g",{}),m=v.createElement("polygon",{style:{points:[[r[0][0],r[0][1]],[p,r[1][1]+d],[p,r[3][1]+d],[r[3][0],r[3][1]]],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u,inset:30}}),y=v.createElement("polygon",{style:{points:[[p,r[1][1]+d],[r[1][0],r[1][1]],[r[2][0],r[2][1]],[p,r[2][1]+d]],fill:o,fillOpacity:l,stroke:a,strokeOpacity:u}}),x=v.createElement("polygon",{style:{points:[[r[0][0],r[0][1]],[p,r[1][1]-d],[r[1][0],r[1][1]],[p,r[1][1]+d]],fill:o,fillOpacity:l-.2}});return g.appendChild(y),g.appendChild(m),g.appendChild(x),g}};Ahe("shape.interval.column25D",e)},WOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();HOt();var VOt=function(e){WOt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="column",n}return t.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0},elementHighlight:{background:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return _ve},t}(qn);function UOt(e){var t=function(r){var i=r.options,o=i.children,a=o===void 0?[]:o,s=i.legend;return s&&a.forEach(function(l){if(!Mr(l,"colorField")){var c=Mr(l,"yField");Qt(l,"colorField",function(){return c})}}),r},n=function(r){var i=r.options,o=i.annotations,a=o===void 0?[]:o,s=i.children,l=s===void 0?[]:s,c=i.scale,u=!1;return Mr(c,"y.key")||l.forEach(function(f,d){if(!Mr(f,"scale.y.key")){var h="child".concat(d,"Scale");Qt(f,"scale.y.key",h);var p=f.annotations,v=p===void 0?[]:p;v.length>0&&(Qt(f,"scale.y.independent",!1),v.forEach(function(g){Qt(g,"scale.y.key",h)})),!u&&a.length>0&&Mr(f,"scale.y.independent")===void 0&&(u=!0,Qt(f,"scale.y.independent",!1),a.forEach(function(g){Qt(g,"scale.y.key",h)}))}}),r};return Qn(t,n,fi,or)(e)}var qOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$ve=function(e){qOt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="DualAxes",n}return t.getDefaultOptions=function(){return{type:"view",axis:{y:{title:!1,tick:!1},x:{title:!1}},scale:{y:{independent:!0,nice:!0}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return UOt},t}(qn);function GOt(e){var t=function(o){var a=o.options,s=a.xField,l=a.colorField;return l||Qt(a,"colorField",s),o},n=function(o){var a=o.options,s=a.compareField,l=a.transform,c=a.isTransposed,u=c===void 0?!0:c,f=a.coordinate;return l||(s?Qt(a,"transform",[]):Qt(a,"transform",[{type:"symmetryY"}])),!f&&u&&Qt(a,"coordinate",{transform:[{type:"transpose"}]}),o},r=function(o){var a=o.options,s=a.compareField,l=a.seriesField,c=a.data,u=a.children,f=a.yField,d=a.isTransposed,h=d===void 0?!0:d;if(s||l){var p=Object.values(cve(c,function(v){return v[s||l]}));u[0].data=p[0],u.push({type:"interval",data:p[1],yField:function(v){return-v[f]}}),delete a.compareField,delete a.data}return l&&(Qt(a,"type","spaceFlex"),Qt(a,"ratio",[1,1]),Qt(a,"direction",h?"row":"col"),delete a.seriesField),o},i=function(o){var a=o.options,s=a.tooltip,l=a.xField,c=a.yField;return s||Qt(a,"tooltip",{title:!1,items:[function(u){return{name:u[l],value:u[c]}}]}),o};return Qn(t,n,r,i,fi,or)(e)}var KOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),YOt=function(e){KOt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="column",n}return t.getDefaultOptions=function(){return{type:"view",scale:{x:{padding:0}},animate:{enter:{type:"fadeIn"}},axis:!1,shapeField:"funnel",label:{position:"inside",transform:[{type:"contrastReverse"}]},children:[{type:"interval"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return GOt},t}(qn);function XOt(e){return Qn(fi,or)(e)}var ZOt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),QOt=function(e){ZOt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="line",n}return t.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"line"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return XOt},t}(qn),Qf=function(){return Qf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Qf.apply(this,arguments)};function JOt(e){var t=function(n){var r=n.options,i=r.angleField,o=r.data,a=r.label,s=r.tooltip,l=r.colorField,c=Cx(l);if(ir(o)){var u=o.reduce(function(d,h){return d+h[i]},0);if(u===0){var f=o.map(function(d){var h;return Qf(Qf({},d),(h={},h[i]=1,h))});Qt(r,"data",f),a&&Qt(r,"label",Qf(Qf({},a),{formatter:function(){return 0}})),s!==!1&&Qt(r,"tooltip",Qf(Qf({},s),{items:[function(d,h,p){return{name:c(d,h,p),value:0}}]}))}}return n};return Qn(t,or)(e)}var eEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),tEt=function(e){eEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="pie",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"theta"},transform:[{type:"stackY",reverse:!0}],animate:{enter:{type:"waveIn"}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return JOt},t}(qn);function nEt(e){return Qn(fi,or)(e)}var rEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),iEt=function(e){rEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="scatter",n}return t.getDefaultOptions=function(){return{axis:{y:{title:!1},x:{title:!1}},legend:{size:!1},children:[{type:"point"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return nEt},t}(qn);function oEt(e){var t=function(n){return Qt(n,"options.coordinate",{type:Mr(n,"options.coordinateType","polar")}),n};return Qn(t,or)(e)}var aEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),sEt=function(e){aEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="radar",n}return t.getDefaultOptions=function(){return{axis:{x:{grid:!0,line:!0},y:{zIndex:1,title:!1,line:!0,nice:!0}},meta:{x:{padding:.5,align:0}},interaction:{tooltip:{style:{crosshairsLineDash:[4,4]}}},children:[{type:"line"}],coordinateType:"polar"}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return oEt},t}(qn),yu=function(){return yu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},yu.apply(this,arguments)},lEt="__stock-range__",cEt="trend",uEt="up",fEt="down";function dEt(e){var t=function(r){var i=r.options,o=i.data,a=i.yField;return r.options.data=_m(o,function(s){var l=s&&yu({},s);if(Array.isArray(a)&&l){var c=a[0],u=a[1],f=a[2],d=a[3];l[cEt]=l[c]<=l[u]?uEt:fEt,l[lEt]=[l[c],l[u],l[f],l[d]]}return l}),r},n=function(r){var i=r.options,o=i.xField,a=i.yField,s=i.fallingFill,l=i.risingFill,c=a[0],u=a[1],f=a[2],d=a[3],h=Cx(o);return r.options.children=_m(r.options.children,function(p,v){var g=v===0;return yu(yu({},p),{tooltip:{title:function(m,y,x){var S=h(m,y,x);return S instanceof Date?S.toLocaleString():S},items:[{field:f},{field:d},{field:c},{field:u}]},encode:yu(yu({},p.encode||{}),{y:g?[f,d]:[c,u],color:function(m){return Math.sign(m[u]-m[c])}}),style:yu(yu({},p.style||{}),{lineWidth:g?1:10})})}),delete i.yField,r.options.legend={color:!1},s&&Qt(r,"options.scale.color.range[0]",s),l&&Qt(r,"options.scale.color.range[2]",l),r};return Qn(t,n,or)(e)}var hEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),pEt=["#26a69a","#999999","#ef5350"],vEt=function(e){hEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="stock",n}return t.getDefaultOptions=function(){return{type:"view",scale:{color:{domain:[-1,0,1],range:pEt},y:{nice:!0}},children:[{type:"link"},{type:"link"}],axis:{x:{title:!1,grid:!1},y:{title:!1,grid:!0,gridLineDash:null}},animate:{enter:{type:"scaleInY"}},interaction:{tooltip:{shared:!0,marker:!1,groupName:!1,crosshairs:!0}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return dEt},t}(qn);function gEt(e){return Qn(fi,or)(e)}var mEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yEt=function(e){mEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="TinyLine",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"line",axis:!1}],animate:{enter:{type:"growInX",duration:500}},padding:0,margin:0,tooltip:!1}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return gEt},t}(qn);function bEt(e){return Qn(fi,or)(e)}var xEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),SEt=function(e){xEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="TinyArea",n}return t.getDefaultOptions=function(){return{type:"view",animate:{enter:{type:"growInX",duration:500}},children:[{type:"area",axis:!1}],padding:0,margin:0,tooltip:!1}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return bEt},t}(qn);function wEt(e){return Qn(fi,or)(e)}var CEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),OEt=function(e){CEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="TinyColumn",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"interval",axis:!1}],padding:0,margin:0,tooltip:!1}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return wEt},t}(qn),JL=function(){return JL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},JL.apply(this,arguments)};function EEt(e){var t=function(n){var r=n.options,i=r.percent,o=r.color,a=o===void 0?[]:o;if(!i)return n;var s={scale:{color:{range:a.length?a:[]}},data:[1,i]};return Object.assign(r,JL({},s)),n};return Qn(t,fi,or)(e)}var _Et=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$Et=function(e){_Et(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="TinyProgress",n}return t.getDefaultOptions=function(){return{type:"view",data:[],margin:0,padding:0,tooltip:!1,children:[{interaction:{tooltip:!1},coordinate:{transform:[{type:"transpose"}]},type:"interval",axis:!1,legend:!1,encode:{y:function(n){return n},color:function(n,r){return r}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return EEt},t}(qn),ej=function(){return ej=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ej.apply(this,arguments)};function PEt(e){var t=function(r){var i=r.options,o=i.radius,a=o===void 0?.8:o;return Qt(r,"options.coordinate.innerRadius",a),r},n=function(r){var i=r.options,o=i.percent,a=i.color,s=a===void 0?[]:a;if(!o)return r;var l={scale:{color:{range:s.length?s:[]}},data:[1,o]};return Object.assign(i,ej({},l)),r};return Qn(t,n,fi,or)(e)}var MEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),TEt=function(e){MEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="TinyRing",n}return t.getDefaultOptions=function(){return{type:"view",data:[],margin:0,padding:0,coordinate:{type:"theta"},animate:{enter:{type:"waveIn"}},interaction:{tooltip:!1},tooltip:!1,children:[{type:"interval",axis:!1,legend:!1,encode:{y:function(n){return n},color:function(n,r){return r}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return PEt},t}(qn);function IEt(e){return Qn(or)(e)}var REt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),kEt=function(e){REt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="rose",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"polar"},animate:{enter:{type:"waveIn"}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return IEt},t}(qn),tj="__start__",Im="__end__",nj="__waterfall_value__",rj=function(){return rj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},rj.apply(this,arguments)},NEt=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function AEt(e){var t=function(r){var i=r.options,o=i.data,a=o===void 0?[]:o,s=i.yField;return a.length&&(a.reduce(function(l,c,u){var f,d=Cx(s),h=d(c,u,a);if(u===0||c.isTotal)c[tj]=0,c[Im]=h,c[nj]=h;else{var p=(f=l[Im])!==null&&f!==void 0?f:d(l,u,a);c[tj]=p,c[Im]=p+h,c[nj]=l[Im]}return c},[]),Object.assign(i,{yField:[tj,Im]})),r},n=function(r){var i=r.options,o=i.data,a=o===void 0?[]:o,s=i.xField,l=i.children,c=i.linkStyle,u=NEt([],a,!0);return u.reduce(function(f,d,h){return h>0&&(d.x1=f[s],d.x2=d[s],d.y1=f[Im]),d},[]),u.shift(),l.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:u,style:rj({stroke:"#697474"},c),label:!1,tooltip:!1}),r};return Qn(t,n,fi,or)(e)}var LEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),jEt=function(e){LEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="waterfall",n}return t.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{field:nj,valueFormatter:"~s",name:"value"},axis:{y:{title:null,labelFormatter:"~s"},x:{title:null}},children:[{type:"interval",interaction:{elementHighlight:{background:!0}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return AEt},t}(qn);function DEt(e){var t=function(n){var r=n.options,i=r.data,o=r.binNumber,a=r.binWidth,s=r.children,l=r.channel,c=l===void 0?"count":l,u=Mr(s,"[0].transform[0]",{});return $m(a)?(Cpe(u,{thresholds:W2t(gCt(i.length,a)),y:c}),n):($m(o)&&Cpe(u,{thresholds:o,y:c}),n)};return Qn(t,fi,or)(e)}var FEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),BEt=function(e){FEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="Histogram",n}return t.getDefaultOptions=function(){return{type:"view",autoFit:!0,axis:{y:{title:!1},x:{title:!1}},children:[{type:"rect",transform:[{type:"binX",y:"count"}],interaction:{elementHighlight:{background:!0}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return DEt},t}(qn);function zEt(e){var t=function(r){var i=r.options,o=i.tooltip,a=o===void 0?{}:o,s=i.colorField,l=i.sizeField;return a&&!a.field&&(a.field=s||l),r},n=function(r){var i=r.options,o=i.mark,a=i.children;return o&&(a[0].type=o),r};return Qn(t,n,fi,or)(e)}var HEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),WEt=function(e){HEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="heatmap",n}return t.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{valueFormatter:"~s"},axis:{y:{title:null,grid:!0},x:{title:null,grid:!0}},children:[{type:"point",interaction:{elementHighlight:{background:!0}}}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return zEt},t}(qn);function VEt(e){var t=function(n){var r=n.options.boxType,i=r===void 0?"box":r;return n.options.children[0].type=i,n};return Qn(t,fi,or)(e)}var UEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),qEt=function(e){UEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="box",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"box"}],axis:{y:{title:!1},x:{title:!1}},tooltip:{items:[{name:"min",channel:"y"},{name:"q1",channel:"y1"},{name:"q2",channel:"y2"},{name:"q3",channel:"y3"},{name:"max",channel:"y4"}]}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return VEt},t}(qn);function GEt(e){var t=function(n){var r=n.options,i=r.data,o=[{type:"custom",callback:function(s){return{links:s}}}];if(ir(i))i.length>0?Qt(r,"data",{value:i,transform:o}):delete r.children;else if(Mr(i,"type")==="fetch"&&Mr(i,"value")){var a=Mr(i,"transform");ir(a)?Qt(i,"transform",a.concat(o)):Qt(i,"transform",o)}return n};return Qn(t,fi,or)(e)}var KEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),YEt=function(e){KEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="sankey",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"sankey"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return GEt},t}(qn),Pl=function(){return Pl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Pl.apply(this,arguments)},W$=["#f0efff","#5B8FF9","#3D76DD"];function ij(e,t,n,r){r===void 0&&(r=!0);var i=0,o=!1,a=_m(e,function(s){var l,c,u=Mr(s,[t]);if(NCt(u))return[];if(uve(u)){var f=Number(u);return isNaN(f)?[]:(l={},l[n]=s[n],l[t]=f,l)}return ir(u)?(o=!0,i=Math.max(i,u.length),_m(r?u.sort(function(d,h){return h-d}):u,function(d,h){var p;return p={},p[n]=s[n],p[t]=d,p.index=h,p})):(i=Math.max(1,i),c={},c[n]=s[n],c[t]=u,c)}).flat();return o?[a.map(function(s){return Pl({index:0},s)}),i]:[a,i]}function oj(e,t){return new Array(e).fill("").map(function(n,r){return ir(t)?t[r%t.length]:t})}function XEt(e){var t=function(i){var o=i.options,a=o.color,s=o.rangeField,l=s===void 0?"ranges":s,c=o.measureField,u=c===void 0?"measures":c,f=o.targetField,d=f===void 0?"targets":f,h=o.xField,p=h===void 0?"title":h,v=o.mapField,g=o.data,m=ij(g,l,p),y=m[0],x=m[1],S=ij(g,u,p,!1),w=S[0],C=S[1],O=ij(g,d,p,!1),E=O[0],_=O[1],$=Mr(a,[l],W$[0]),P=Mr(a,[u],W$[1]),T=Mr(a,[d],W$[2]),I=[oj(x,$),oj(C,P),oj(_,T)].flat();return i.options.children=_m(i.options.children,function(M,R){var k=[y,w,E][R],N=[l,u,d][R];return Pl(Pl({},M),{data:k,encode:Pl(Pl({},M.encode||{}),{x:p,y:N,color:function(A){var j=A.index,D=$m(j)?"".concat(N,"_").concat(j):N;return v?Mr(v,[N,j],D):D}}),style:Pl(Pl({},M.style||{}),{zIndex:function(A){return-A[N]}}),labels:R!==0?_m(M.labels,function(A){return Pl(Pl({},A),{text:N})}):void 0})}),i.options.scale.color.range=I,i.options.legend.color.itemMarker=function(M){return v&&TCt(v==null?void 0:v[d],M)||(M==null?void 0:M.replace(/\_\d$/,""))===d?"line":"square"},i},n=function(i){var o=i.options.layout,a=o===void 0?"horizontal":o;return a!=="horizontal"&&Qt(i,"options.children[2].shapeField","hyphen"),i},r=function(i){var o=i.options,a=o.range,s=a===void 0?{}:a,l=o.measure,c=l===void 0?{}:l,u=o.target,f=u===void 0?{}:u,d=o.children;return i.options.children=[s,c,f].map(function(h,p){return Zf(d[p],h)}),i};return Qn(t,n,r,AOt,or)(e)}var ZEt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),QEt=function(e){ZEt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="bullet",n}return t.getDefaultOptions=function(){return{type:"view",scale:{color:{range:W$}},legend:{color:{itemMarker:function(n){return n==="target"?"line":"square"}}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval",style:{maxWidth:30},axis:{y:{grid:!0,gridLineWidth:2}}},{type:"interval",style:{maxWidth:20},transform:[{type:"stackY"}]},{type:"point",encode:{size:8,shape:"line"}}],interaction:{tooltip:{shared:!0}},coordinate:{transform:[{type:"transpose"}]}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return XEt},t}(qn);function JEt(e){var t=function(n){var r=n.options.data;return n.options.data={value:r},n};return Qn(t,fi,or)(e)}var e_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),t_t=function(e){e_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="Gauge",n}return t.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"gauge"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return JEt},t}(qn);function n_t(e){var t=function(n){var r=n.options.percent;return $m(r)&&Qt(n,"options.data",r),n};return Qn(t,fi,or)(e)}var r_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),i_t=function(e){r_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="Liquid",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"liquid"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return n_t},t}(qn);function o_t(e){return Qn(fi,or)(e)}var a_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),s_t=function(e){a_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="WordCloud",n}return t.getDefaultOptions=function(){return{type:"view",legend:!1,children:[{type:"wordCloud"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return o_t},t}(qn);function l_t(e){var t=function(n){var r=n.options,i=r.data;return i&&Qt(r,"data",{value:i}),n};return Qn(t,fi,or)(e)}var c_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),u_t=function(e){c_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="treemap",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"treemap"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return l_t},t}(qn),ep=function(){return ep=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ep.apply(this,arguments)};function f_t(e){var t=function(i){var o=i.options,a=o.startAngle,s=o.maxAngle,l=o.coordinate,c=$m(a)?a/(2*Math.PI)*360:-90,u=$m(s)?(Number(s)+c)/180*Math.PI:Math.PI;return Qt(i,["options","coordinate"],ep(ep({},l),{endAngle:u,startAngle:a!=null?a:-Math.PI/2})),i},n=function(i){var o=i.options,a=o.tooltip,s=o.xField,l=o.yField,c=Cx(s),u=Cx(l);return a||Qt(o,"tooltip",{title:!1,items:[function(f,d,h){return{name:c(f,d,h),value:u(f,d,h)}}]}),i},r=function(i){var o=i.options,a=o.markBackground,s=o.children,l=o.scale,c=o.coordinate,u=o.xField,f=Mr(l,"y.domain",[]);return a&&s.unshift(ep({type:"interval",xField:u,yField:f[f.length-1],colorField:a.color,scale:{color:{type:"identity"}},style:{fillOpacity:a.opacity,fill:a.color?void 0:"#e0e4ee"},coordinate:ep(ep({},c),{startAngle:-Math.PI/2,endAngle:1.5*Math.PI}),animate:!1},a)),i};return Qn(t,n,r,fi,or)(e)}var d_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),h_t=function(e){d_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="radial",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"radial",innerRadius:.1,outerRadius:1,endAngle:Math.PI},animate:{enter:{type:"waveIn",duration:800}},axis:{y:{nice:!0,labelAutoHide:!0,labelAutoRotate:!1},x:{title:!1,nice:!0,labelAutoRotate:!1,labelAutoHide:{type:"equidistance",cfg:{minGap:6}}}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return f_t},t}(qn);function p_t(e){return Qn(or)(e)}var v_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),g_t=function(e){v_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="CirclePacking",n}return t.getDefaultOptions=function(){return{legend:!1,type:"view",children:[{type:"pack"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return p_t},t}(qn),V$=function(){return V$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},V$.apply(this,arguments)};function m_t(e){var t=function(n){var r=n.options,i=r.xField,o=r.yField,a=r.seriesField,s=r.children,l=s==null?void 0:s.map(function(c){return V$(V$({},c),{xField:i,yField:o,seriesField:a,colorField:a,data:c.type==="density"?{transform:[{type:"kde",field:o,groupBy:[i,a]}]}:c.data})}).filter(function(c){return r.violinType!=="density"||c.type==="density"});return Qt(r,"children",l),r.violinType==="polar"&&Qt(r,"coordinate",{type:"polar"}),Qt(r,"violinType",void 0),n};return Qn(t,fi,or)(e)}var y_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),b_t=function(e){y_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="violin",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"density",sizeField:"size",tooltip:!1},{type:"boxplot",shapeField:"violin",style:{opacity:.5,point:!1}}],animate:{enter:{type:"fadeIn"}}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return m_t},t}(qn),_x=function(){return _x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},_x.apply(this,arguments)},x_t=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function S_t(e){var t=function(o){var a=o.options,s=a.yField,l=a.children;return l.forEach(function(c,u){Qt(c,"yField",s[u])}),o},n=function(o){var a=o.options,s=a.yField,l=a.children,c=a.data;if(TL(c))return o;var u=ir(Mr(c,[0]))?c:[c,c];return l.forEach(function(f,d){Qt(f,"data",x_t([],u[d].map(function(h){return _x({groupKey:s[d]},h)}),!0))}),o},r=function(o){var a=o.options,s=a.yField,l=s[0],c=s[1],u=a.tooltip;return u||Qt(a,"tooltip",{items:[{field:l,value:l},{field:c,value:c}]}),o},i=function(o){var a=o.options,s=a.children,l=a.layout,c=a.coordinate.transform,u=a.paddingBottom,f=u===void 0?Ove:u,d=a.paddingLeft,h=d===void 0?Ove:d,p=a.axis;Qt(a,"axisText",_x(_x({},(p==null?void 0:p.x)||{}),{layout:l}));var v=s[0],g=s[1];if(l==="vertical")Qt(a,"direction","col"),Qt(a,"paddingLeft",h),Qt(a,"coordinate.transform",c.filter(function(w){return w.type!=="transpose"})),Qt(v,"paddingBottom",Cve),Qt(g,"paddingTop",Cve),Qt(g,"axis",{x:{position:"top"}}),Qt(g,"scale",{y:{range:[0,1]}});else{Qt(a,"paddingBottom",f),Qt(v,"scale",{y:{range:[0,1]}});var m=v.paddingRight,y=m===void 0?ZL:m,x=g.paddingLeft,S=x===void 0?ZL:x;Qt(v,"paddingRight",y),Qt(v,"axis",{x:{position:"right"}}),Qt(g,"paddingLeft",S)}return o};return Qn(t,n,r,i,fi,or)(e)}var w_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),C_t=function(e){w_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="BidirectionalBar",n}return t.getDefaultOptions=function(){return{type:"spaceFlex",coordinate:{transform:[{type:"transpose"}]},scale:{y:{nice:!0}},direction:"row",layout:"horizontal",legend:!1,axis:{y:{title:!1},x:{title:!1,label:!1}},children:[{type:"interval"},{type:"interval"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return S_t},t}(qn),tp;(function(e){e.color="key",e.d="path"})(tp||(tp={}));function O_t(e){var t=function(n){var r=n.options,i=r.data,o=r.setsField,a=r.sizeField;return ir(i)&&(Qt(r,"data",{type:"inline",value:i,transform:[{type:"venn",sets:o,size:a,as:[tp.color,tp.d]}]}),Qt(r,"colorField",o),Qt(r,["children","0","encode","d"],tp.d)),Qt(n,"options",HL(r,["sizeField","setsField"])),n};return Qn(t,or)(e)}var E_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),__t=function(e){E_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="venn",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"path"}],legend:{color:{itemMarker:"circle"}},encode:{color:tp.color,d:tp.d}}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return O_t},t}(qn);function $_t(e){var t=function(n){return n};return Qn(t,or)(e)}var P_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),M_t=function(e){P_t(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="Sunburst",n}return t.getDefaultOptions=function(){return{type:"view",children:[{type:"sunburst"}]}},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return $_t},t}(qn),T_t={Base:ROt,Line:QOt,Column:VOt,Pie:tEt,Area:DOt,Bar:zOt,DualAxes:$ve,Funnel:YOt,Scatter:iEt,Radar:sEt,Rose:kEt,Stock:vEt,TinyLine:yEt,TinyArea:SEt,TinyColumn:OEt,TinyProgress:$Et,TinyRing:TEt,Waterfall:jEt,Histogram:BEt,Heatmap:WEt,Box:qEt,Sankey:YEt,Bullet:QEt,Gauge:t_t,Liquid:i_t,WordCloud:s_t,Treemap:u_t,RadialBar:h_t,CirclePacking:g_t,Violin:b_t,BidirectionalBar:C_t,Venn:__t,Mix:$ve,Sunburst:M_t},aj=function(){return aj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},aj.apply(this,arguments)},Pve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},$x=b.forwardRef(function(e,t){var n=e.chartType,r=n===void 0?"Base":n,i=Pve(e,["chartType"]),o=i.containerStyle,a=o===void 0?{height:"inherit",flex:1}:o,s=i.containerAttributes,l=s===void 0?{}:s,c=i.className,u=i.loading,f=i.loadingTemplate,d=i.errorTemplate,h=Pve(i,["containerStyle","containerAttributes","className","loading","loadingTemplate","errorTemplate"]),p=KCt(T_t[r],h),v=p.chart,g=p.container;return b.useImperativeHandle(t,function(){return v.current}),ge.createElement(Y1t,{errorTemplate:d},u&&ge.createElement(G1t,{loadingTemplate:f}),ge.createElement("div",aj({className:c,style:a,ref:g},l)))}),sj=function(){return sj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},sj.apply(this,arguments)},I_t=b.forwardRef(function(e,t){return ge.createElement($x,sj({},e,{chartType:"Area",ref:t}))}),lj=function(){return lj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},lj.apply(this,arguments)},R_t=b.forwardRef(function(e,t){return ge.createElement($x,lj({},e,{chartType:"Bar",ref:t}))}),cj=function(){return cj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},cj.apply(this,arguments)},k_t=b.forwardRef(function(e,t){return ge.createElement($x,cj({},e,{chartType:"Column",ref:t}))}),uj=function(){return uj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},uj.apply(this,arguments)},N_t=b.forwardRef(function(e,t){return ge.createElement($x,uj({},e,{chartType:"Line",ref:t}))}),fj=function(){return fj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},fj.apply(this,arguments)},A_t=b.forwardRef(function(e,t){return ge.createElement($x,fj({},e,{chartType:"Pie",ref:t}))});const{useToken:L_t}=Qy,j_t=({widget:e})=>{const{t}=so("DashboardWidget"),{token:n}=L_t(),[r,i]=ge.useState(),[o,a]=ge.useState(),[s,l]=ge.useState(),c=Qv.stringify({min_x_field:p1(r),max_x_field:p1(o),period_x_field:p1(s)}),{data:u,isLoading:f}=Il({queryKey:["/dashboard-widget",e.key,c],queryFn:()=>Hl(`/dashboard-widget/${e.key}?${c}`),refetchOnWindowFocus:!1});b.useEffect(()=>{u&&(i(v1(u.min_x_field)),a(v1(u.max_x_field)),l(v1(u.period_x_field)))},[u]);const d=b.useCallback((h,p,v,g)=>{if(!h.x_field_filter_widget_type)return null;const[m,y]=ek(h.x_field_filter_widget_type,t),x=S=>{switch(m){case br:case br.TextArea:case af.Group:g(S.target.value);break;default:g(S);break}};return ce.jsx(m,un(Le(Le({size:"small",placeholder:p},y||{}),h.x_field_filter_widget_props||{}),{value:v,onChange:x}))},[t]);return ce.jsxs(Iv,{title:ce.jsxs(Zr,{justify:"space-between",style:{lineHeight:2},children:[ce.jsx(Ln,{children:e.title}),e.x_field_filter_widget_type&&ce.jsx(Ln,{children:ce.jsxs(Ii,{children:[e.x_field_periods&&ce.jsx(Ti,{allowClear:!0,style:{width:100},options:e.x_field_periods.map(h=>({label:UC(h),value:h})),value:s,onChange:l,size:"small"}),d(e,t("From"),r,i),ce.jsx(Qw,{}),d(e,t("To"),o,a)]})})]}),children:[!f&&e.dashboard_widget_type===eg.ChartLine&&ce.jsx(N_t,Le({data:(u==null?void 0:u.results)||[],xField:e.x_field,yField:e.y_field,legend:{position:"top-left"},colorField:n.colorPrimary},e.dashboard_widget_props||{})),!f&&e.dashboard_widget_type===eg.ChartArea&&ce.jsx(I_t,Le({data:(u==null?void 0:u.results)||[],xField:e.x_field,yField:e.y_field,legend:{position:"top-left"},colorField:n.colorPrimary},e.dashboard_widget_props||{})),!f&&e.dashboard_widget_type===eg.ChartColumn&&ce.jsx(k_t,Le({data:(u==null?void 0:u.results)||[],xField:e.x_field,yField:e.y_field,legend:{position:"top-left"},colorField:n.colorPrimary},e.dashboard_widget_props||{})),!f&&e.dashboard_widget_type===eg.ChartBar&&ce.jsx(R_t,Le({data:(u==null?void 0:u.results)||[],xField:e.x_field,yField:e.y_field,legend:{position:"top-left"},colorField:n.colorPrimary},e.dashboard_widget_props||{})),!f&&e.dashboard_widget_type===eg.ChartPie&&ce.jsx(A_t,Le({data:(u==null?void 0:u.results)||[],colorField:e.x_field,angleField:e.y_field,legend:{position:"top-left"}},e.dashboard_widget_props||{})),f&&ce.jsx(Zr,{justify:"center",align:"middle",children:ce.jsx(Ln,{children:ce.jsx(tC,{})})})]},e.title)},D_t=()=>{const{t:e}=so("Dashboard"),{configuration:t}=b.useContext(pl);return ce.jsxs(qC,{title:e("Dashboard"),children:[ce.jsx(Zr,{gutter:[16,16],children:t.dashboard_widgets.map(n=>ce.jsx(Ln,{xs:24,md:12,children:ce.jsx(j_t,{widget:n})},n.title))}),t.dashboard_widgets.length===0&&ce.jsx(Xi,{})]})},F_t=()=>{var j,D;const{configuration:e}=b.useContext(pl),t=Gv(),{t:n}=so("List"),{model:r}=RC(),i=d1(),o=XC(e,r),{defaultPage:a,defaultPageSize:s,page:l,setPage:c,pageSize:u,setPageSize:f,search:d,setSearch:h,filters:p,setFilters:v,sortBy:g,action:m,setAction:y,selectedRowKeys:x,setSelectedRowKeys:S,onTableChange:w,resetTable:C}=RQ(o),O=Qv.stringify(Le({search:d,sort_by:g,offset:(l-1)*u,limit:u},$R(p))),{data:E,isLoading:_,refetch:$}=Il({queryKey:[`/list/${r}`,O],queryFn:()=>Hl(`/list/${r}?${O}`),refetchOnWindowFocus:!1}),{mutate:P}=Po({mutationFn:L=>SR(`/delete/${r}/${L}`),onSuccess:()=>{C(o==null?void 0:o.preserve_filters),$(),pi.success(n("Successfully deleted"))},onError:L=>{vl(L)}}),{mutate:T,isPending:I}=Po({mutationFn:L=>qc(`/action/${r}/${m}`,L),onSuccess:()=>{C(o==null?void 0:o.preserve_filters),$(),pi.success(n("Successfully applied"))},onError:()=>{pi.error(n("Server error"))}}),M=L=>S(L),R=b.useCallback(()=>T({ids:x}),[T,x]),k=b.useCallback(()=>t(`/add/${r}`),[r,t]),N=e==null?void 0:e.datetime_format,A=IQ(o,N,b.useCallback(L=>p[L],[p]),b.useCallback((L,B)=>{p[L]=B,v(Le({},p)),c(a),f(s)},[a,s,p,v,c,f]),b.useCallback(L=>{delete p[L],v(Le({},p)),c(a),f(s)},[a,s,p,v,c,f]),b.useCallback(L=>{P(L.id)},[P]),b.useCallback(L=>{t(`/change/${r}/${L.id}`)},[r,t]));return ce.jsx(qC,{title:o?ea(o,!0):"",breadcrumbs:ce.jsx(Iy,{items:[{title:ce.jsx(vf,{to:"/",children:n("Dashboard")})},{title:ce.jsx(vf,{to:`/list/${r}`,children:o&&ea(o)})}]}),viewOnSite:o==null?void 0:o.view_on_site,headerActions:ce.jsxs(Zr,{style:{marginTop:10,marginBottom:10},gutter:[8,8],children:[((o==null?void 0:o.actions)||[]).length>0&&(o==null?void 0:o.actions_on_top)&&ce.jsxs(Ln,{children:[ce.jsx(Ti,{placeholder:n("Select Action By"),allowClear:!0,value:m,onChange:y,style:{width:300},children:((o==null?void 0:o.actions)||[]).map(L=>ce.jsx(Ti.Option,{value:L.name,children:L.description||L.name},L.name))}),ce.jsx(gn,{disabled:!m||x.length===0,style:{marginLeft:5},loading:I,onClick:R,children:n("Apply")})]}),((o==null?void 0:o.search_fields)||[]).length>0&&ce.jsx(Ln,{children:ce.jsx(br.Search,{placeholder:(o==null?void 0:o.search_help_text)||n("Search By"),allowClear:!0,onSearch:h,style:{width:200}})}),((j=o==null?void 0:o.permissions)==null?void 0:j.includes(xa.Export))&&ce.jsx(Ln,{children:ce.jsx(hZ,{model:r,search:d,filters:p,sortBy:g})}),((D=o==null?void 0:o.permissions)==null?void 0:D.includes(xa.Add))&&ce.jsx(Ln,{children:ce.jsxs(gn,{onClick:k,children:[ce.jsx(iR,{})," ",n("Add")]})})]}),bottomActions:ce.jsx(ce.Fragment,{children:((o==null?void 0:o.actions)||[]).length>0&&(o==null?void 0:o.actions_on_bottom)&&ce.jsxs("div",{style:{marginTop:i?10:-50},children:[ce.jsx(Ti,{placeholder:n("Select Action By"),allowClear:!0,value:m,onChange:y,style:{width:200},children:((o==null?void 0:o.actions)||[]).map(L=>ce.jsx(Ti.Option,{value:L.name,children:L.description||L.name},L.name))}),ce.jsx(gn,{disabled:!m||x.length===0,style:{marginLeft:5},loading:I,onClick:R,children:n("Apply")})]})}),children:o?ce.jsx(pZ,{loading:_,rowSelection:((o==null?void 0:o.actions)||[]).length>0?{selectedRowKeys:x,onChange:M}:void 0,columns:A,onChange:w,rowKey:"id",dataSource:(E==null?void 0:E.results)||[],pagination:{current:l,pageSize:u,total:E==null?void 0:E.total,showSizeChanger:!0}}):ce.jsx(Xi,{description:n("No permissions for model")})})},B_t=({title:e,children:t})=>{const{signedIn:n}=b.useContext(h1),r=Gv();return b.useEffect(()=>{n&&r("/")},[r,n]),ce.jsxs("div",{style:{height:"100vh"},children:[ce.jsx(YI,{defaultTitle:e,children:ce.jsx("meta",{name:"description",content:e})}),ce.jsx(Zr,{justify:"center",align:"middle",style:{height:"100%"},children:ce.jsx(Ln,{xs:24,xl:8,children:t})})]})},z_t=()=>{const[e]=Yn.useForm(),{token:{colorPrimary:t}}=Qy.useToken(),{configuration:n}=b.useContext(pl),{signedInUserRefetch:r}=b.useContext(h1),{t:i}=so("SignIn"),{mutate:o,isPending:a}=Po({mutationFn:l=>qc("/sign-in",l),onSuccess:()=>{r()},onError:l=>{vl(l,e)}}),s=l=>{o(l)};return ce.jsx(B_t,{title:`${i("Sign In")}`,children:ce.jsxs(Iv,{children:[ce.jsx(Zr,{justify:"center",children:ce.jsx(Ln,{children:ce.jsxs(Ii,{style:{marginBottom:20},children:[ce.jsx(Jw,{src:window.SERVER_DOMAIN+n.site_sign_in_logo,height:80,alt:n.site_name,preview:!1}),ce.jsx("span",{style:{color:t,fontSize:36,fontWeight:600},children:n.site_name})]})})}),ce.jsxs(Yn,{initialValues:{remember:!0},onFinish:s,autoComplete:"off",layout:"vertical",children:[ce.jsx(Yn.Item,{label:UC((n==null?void 0:n.username_field)||"username"),name:"username",rules:[{required:!0}],children:ce.jsx(br,{})}),ce.jsx(Yn.Item,{label:"Password",name:"password",rules:[{required:!0}],children:ce.jsx(br.Password,{})}),ce.jsx(Zr,{justify:"end",children:ce.jsx(Ln,{children:ce.jsx(Yn.Item,{children:ce.jsx(gn,{type:"primary",htmlType:"submit",loading:a,children:i("Sign In")})})})})]})]})})},H_t=()=>{const{configuration:e}=b.useContext(pl),{t}=so("App");return ce.jsxs(ov,{theme:{token:{colorPrimary:e.primary_color,colorLink:e.primary_color,colorLinkActive:e.primary_color,colorLinkHover:e.primary_color}},form:{validateMessages:{required:t("${label} is required."),types:{email:t("${label} is not valid."),number:t("${label} is not valid.")},number:{range:t("${label} must be between ${min} and ${max}")}}},children:[ce.jsxs(YI,{titleTemplate:"FastAPI Admin | %s",defaultTitle:t("FastAPI Admin"),children:[ce.jsx("meta",{name:"description",content:t("FastAPI Admin")}),ce.jsx("link",{rel:"icon",href:window.SERVER_DOMAIN+e.site_favicon})]}),ce.jsxs(eDe,{children:[ce.jsx(Kv,{path:"/sign-in",element:ce.jsx(z_t,{})}),ce.jsx(Kv,{path:"/",element:ce.jsx(D_t,{})}),ce.jsx(Kv,{path:"/list/:model",element:ce.jsx(F_t,{})}),ce.jsx(Kv,{path:"/add/:model",element:ce.jsx(pGe,{})}),ce.jsx(Kv,{path:"/change/:model/:id",element:ce.jsx(vGe,{})})]})]})},W_t=({children:e})=>ce.jsx(X9e,{children:ce.jsx(Y9e,{children:e})}),V_t=({children:e,client:t,i18n:n})=>ce.jsx(aDe,{children:ce.jsx(Bge,{client:t,children:ce.jsx(d7e,{i18n:n,children:ce.jsx(FY,{children:e})})})}),U_t=new Age;ho.init({interpolation:{escapeValue:!1}});const Mve=document.getElementById("root");if(!Mve)throw new Error("Root element not found");dP.createRoot(Mve).render(ce.jsx(ge.StrictMode,{children:ce.jsx(V_t,{client:U_t,locale:Mo,i18n:ho,children:ce.jsx(W_t,{children:ce.jsx(H_t,{})})})}))});
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastadmin
3
- Version: 0.2.9
3
+ Version: 0.2.10
4
4
  Summary: FastAdmin is an easy-to-use Admin Dashboard App for FastAPI/Flask/Django inspired by Django Admin.
5
5
  Home-page: https://github.com/vsdudakov/fastadmin
6
6
  License: MIT
@@ -18,16 +18,16 @@ fastadmin/api/frameworks/flask/app.py,sha256=35SENG5CDOKut6s32LaWMAiBmfXELupDOgp
18
18
  fastadmin/api/frameworks/flask/views.py,sha256=Ue12I8zc7LzCEegMX7AtwXMYC34_qWRdeOUsT8WR6Gs,522
19
19
  fastadmin/api/helpers.py,sha256=Tj0xMW-RHhQtnT-tOgEerIFcks3dCxGFj4etHMkKPwo,2322
20
20
  fastadmin/api/schemas.py,sha256=5eYJDGrSrvy0YdB8vak0zPv-a51a36CYJ_RVA2vgTKU,1348
21
- fastadmin/api/service.py,sha256=hmTa6-7JOatqwhxkiRFwZ7FaTYQ6h18-eD33UwWFYq8,18029
21
+ fastadmin/api/service.py,sha256=RfDOFYknkwmaIhya_y_Zlv8MjWBwZqPMCTw7tZCoP8k,18032
22
22
  fastadmin/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  fastadmin/models/base.py,sha256=1KN0Wir7Bc-DtdpualxYnMzQq2JSBBrvpw2E22sBWfU,26728
24
24
  fastadmin/models/decorators.py,sha256=T1Dn1NTUEaFvsuV9EAEdBXODwVEFaQBSxdyicMvgwrU,2555
25
25
  fastadmin/models/helpers.py,sha256=gPgvjrR3wZaRC1gIc05Ah9tkgaxisgXjuLGvYXl4tY8,14117
26
26
  fastadmin/models/orms/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
- fastadmin/models/orms/django.py,sha256=uk2wxrJdEyAuf6NpZ6k8r79SBn6IDaXIidiGpU859Zg,16224
28
- fastadmin/models/orms/ponyorm.py,sha256=ikuER0SjB0S64SLRuP7efprVaCrIJLH6Jg9TebCnDXg,17656
29
- fastadmin/models/orms/sqlalchemy.py,sha256=8Vu2RN6-DDx55rCTqb2v4Y0lRYbD0e7UFNoI1LA5j2I,18715
30
- fastadmin/models/orms/tortoise.py,sha256=LJMG0YuoAcB84lPLEgMeqJo26z4nWEf7sJtJjP6saIc,15911
27
+ fastadmin/models/orms/django.py,sha256=4SjnTptdLV1Yt013jsIZ4BQzmIRmJQEawaG-eY66n8Q,16185
28
+ fastadmin/models/orms/ponyorm.py,sha256=v7JA8g5tGXb7uF2Q_kv5dk7gH2eVvvz7ngf7JCmN8hY,17836
29
+ fastadmin/models/orms/sqlalchemy.py,sha256=GpDnmM2g358sz1Pde1DZSFMLLSxUoZ4eHwJcwFjGEdc,18742
30
+ fastadmin/models/orms/tortoise.py,sha256=q1vLLm3uQ677Xe4gIb3VaIMbm5USdEHLWF22TZaj914,15949
31
31
  fastadmin/models/schemas.py,sha256=KxPlsoLfbrHuSz2F5h_UV18hKjgbeDioxWMcitbIJhk,4306
32
32
  fastadmin/settings.py,sha256=UMQ2oQqUMsID1vNZ0tq7CWRTTfhRm-uExOjz9w0Tnrs,2338
33
33
  fastadmin/static/images/favicon.png,sha256=cOPeoFIQCjIrPOstAVMGlDq6ODvn1adAuwVgqsV83vM,412
@@ -35,9 +35,9 @@ fastadmin/static/images/header-logo.svg,sha256=FfFOShL7p4EvggDS106VDcMzI_Oe7zAG7
35
35
  fastadmin/static/images/sign-in-logo.svg,sha256=sD6YXIwT0kOvZTCGxyoUMiIoszXV77OBxFLvlZOYEeE,1359
36
36
  fastadmin/static/index.html,sha256=J6YYi1W7Y-YHlAfdTjy4KOd_yMZy-UWMJZAFDe78eAI,613
37
37
  fastadmin/static/index.min.css,sha256=219cuKBCK38b4RsJ-jBdTzdJ7OmSBqMmZGfpYfCb9b0,69757
38
- fastadmin/static/index.min.js,sha256=Qp7jPhtLhb4I49_hTKj9mfC5sftUrkvJUzrraG8vUjg,2976521
38
+ fastadmin/static/index.min.js,sha256=_u-R1Gjy5-cbFgwyHu0CyeaMV5LK4I5iRJtWR0hdzdo,2976527
39
39
  fastadmin/templates/index.html,sha256=WHIAqNmtJ_fHMgYrMHkUwsYxt4Xo6yMrieDODKDCN9Q,719
40
- fastadmin-0.2.9.dist-info/LICENSE,sha256=-5Cmq6xd5DlFq8rhBcqGMi8Mlh_h-YVjKOYjnYk5dyM,1063
41
- fastadmin-0.2.9.dist-info/METADATA,sha256=btoh2Wr1qYfUbYF6QLlp91Fh_RLJKiMweUJ3tN0gRA0,11742
42
- fastadmin-0.2.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
43
- fastadmin-0.2.9.dist-info/RECORD,,
40
+ fastadmin-0.2.10.dist-info/LICENSE,sha256=-5Cmq6xd5DlFq8rhBcqGMi8Mlh_h-YVjKOYjnYk5dyM,1063
41
+ fastadmin-0.2.10.dist-info/METADATA,sha256=Tkmybp3jZcstGZfhCmLYiffibD8oPJKvDlZ_nSqnzOg,11743
42
+ fastadmin-0.2.10.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
43
+ fastadmin-0.2.10.dist-info/RECORD,,