@nocobase/plugin-graph-collection-manager 1.0.0-alpha.1 → 1.0.0-alpha.3

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.
Files changed (35) hide show
  1. package/dist/client/GraphCollectionShortcut.d.ts +8 -0
  2. package/dist/client/GraphDrawPage.d.ts +8 -0
  3. package/dist/client/action-hooks.d.ts +8 -0
  4. package/dist/client/components/AddCollectionAction.d.ts +8 -0
  5. package/dist/client/components/AddFieldAction.d.ts +8 -0
  6. package/dist/client/components/CollectionNodeProvder.d.ts +8 -0
  7. package/dist/client/components/ConnectAssociationAction.d.ts +8 -0
  8. package/dist/client/components/ConnectChildAction.d.ts +8 -0
  9. package/dist/client/components/ConnectParentAction.d.ts +8 -0
  10. package/dist/client/components/ConnectorAction.d.ts +8 -0
  11. package/dist/client/components/DeleteCollectionAction.d.ts +8 -0
  12. package/dist/client/components/DirectionAction.d.ts +8 -0
  13. package/dist/client/components/EditCollectionAction.d.ts +8 -0
  14. package/dist/client/components/EditFieldAction.d.ts +8 -0
  15. package/dist/client/components/Entity.d.ts +8 -0
  16. package/dist/client/components/FieldSummary.d.ts +8 -0
  17. package/dist/client/components/FullScreenAction.d.ts +8 -0
  18. package/dist/client/components/LocateCollectionAction.d.ts +8 -0
  19. package/dist/client/components/OverrideFieldAction.d.ts +8 -0
  20. package/dist/client/components/SelectCollectionsAction.d.ts +8 -0
  21. package/dist/client/components/ViewFieldAction.d.ts +8 -0
  22. package/dist/client/components/ViewNode.d.ts +8 -0
  23. package/dist/client/index.d.ts +8 -0
  24. package/dist/client/index.js +9 -0
  25. package/dist/client/locale/index.d.ts +8 -0
  26. package/dist/client/style.d.ts +8 -0
  27. package/dist/client/utils.d.ts +8 -0
  28. package/dist/externalVersion.js +13 -4
  29. package/dist/index.d.ts +8 -0
  30. package/dist/index.js +9 -0
  31. package/dist/server/collections/graphPositions.d.ts +8 -0
  32. package/dist/server/collections/graphPositions.js +9 -0
  33. package/dist/server/index.d.ts +8 -0
  34. package/dist/server/index.js +9 -0
  35. package/package.json +2 -2
@@ -1,2 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const GraphCollectionPane: () => React.JSX.Element;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare enum DirectionType {
3
11
  Both = "both",
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const useValuesFromRecord: (options: any, data: any) => import("@nocobase/client").UseRequestResult<unknown>;
3
11
  export declare const SourceCollection: React.MemoExoticComponent<import("@formily/react").ReactFC<unknown>>;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const AddCollectionAction: ({ item: recordData }: {
3
11
  item: any;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const AddFieldAction: ({ item: record, database }: {
3
11
  item: any;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  interface CollectionNodeOptions {
3
11
  setTargetNode?: Function;
@@ -1,2 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const ConnectAssociationAction: (props: any) => React.JSX.Element;
@@ -1,2 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const ConnectChildAction: (props: any) => React.JSX.Element | "";
@@ -1,2 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const ConnectParentAction: (props: any) => React.JSX.Element | "";
@@ -1,2 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const ConnectorAction: (props: any) => React.JSX.Element;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const DeleteCollectionAction: ({ item: record, className, ...other }: {
3
11
  [x: string]: any;
@@ -1,2 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const DirectionAction: (props: any) => React.JSX.Element;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const EditCollectionAction: ({ item: record, className }: {
3
11
  item: any;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const EditFieldAction: ({ item: record, parentItem: ParentRecord }: {
3
11
  item: any;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  declare const Entity: React.FC<{
3
11
  node?: Node | any;
@@ -1,2 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const FieldSummary: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
@@ -1,2 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const FullscreenAction: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
@@ -1,2 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const LocateCollectionAction: (props: any) => React.JSX.Element;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const OverrideFieldAction: ({ item: record, parentItem: parentRecord }: {
3
11
  item: any;
@@ -1,2 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const SelectCollectionsAction: (props: any) => React.JSX.Element;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import React from 'react';
2
10
  export declare const ViewFieldAction: ({ item: record, parentItem: parentRecord }: {
3
11
  item: any;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { NodeView } from '@antv/x6';
2
10
  export declare class SimpleNodeView extends NodeView {
3
11
  protected renderMarkup(): void;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { Plugin } from '@nocobase/client';
2
10
  export declare class PluginGraphCollectionPlugin extends Plugin {
3
11
  load(): Promise<void>;
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  (function(J,L){typeof exports=="object"&&typeof module!="undefined"?L(exports,require("@nocobase/client"),require("react/jsx-runtime"),require("@ant-design/icons"),require("@formily/shared"),require("react"),require("@formily/react"),require("@formily/reactive"),require("@nocobase/utils/client"),require("antd"),require("react-i18next"),require("@emotion/css"),require("lodash"),require("react-router-dom"),require("ahooks")):typeof define=="function"&&define.amd?define(["exports","@nocobase/client","react/jsx-runtime","@ant-design/icons","@formily/shared","react","@formily/react","@formily/reactive","@nocobase/utils/client","antd","react-i18next","@emotion/css","lodash","react-router-dom","ahooks"],L):(J=typeof globalThis!="undefined"?globalThis:J||self,L(J["@nocobase/plugin-graph-collection-manager"]={},J["@nocobase/client"],J.jsxRuntime,J["@ant-design/icons"],J["@formily/shared"],J.react,J["@formily/react"],J["@formily/reactive"],J["@nocobase/utils"],J.antd,J["react-i18next"],J["@emotion/css"],J.lodash,J["react-router-dom"],J.ahooks))})(this,function(J,L,_,ue,go,ee,Ft,po,pn,ce,Za,Sr,Xu,Yy,GM){"use strict";var WY=Object.defineProperty,XY=Object.defineProperties;var YY=Object.getOwnPropertyDescriptors;var Wu=Object.getOwnPropertySymbols;var BM=Object.prototype.hasOwnProperty,zM=Object.prototype.propertyIsEnumerable;var DM=(J,L,_)=>L in J?WY(J,L,{enumerable:!0,configurable:!0,writable:!0,value:_}):J[L]=_,re=(J,L)=>{for(var _ in L||(L={}))BM.call(L,_)&&DM(J,_,L[_]);if(Wu)for(var _ of Wu(L))zM.call(L,_)&&DM(J,_,L[_]);return J},$e=(J,L)=>XY(J,YY(L));var Xy=(J,L)=>{var _={};for(var ue in J)BM.call(J,ue)&&L.indexOf(ue)<0&&(_[ue]=J[ue]);if(J!=null&&Wu)for(var ue of Wu(J))L.indexOf(ue)<0&&zM.call(J,ue)&&(_[ue]=J[ue]);return _};var Be=(J,L,_)=>new Promise((ue,go)=>{var ee=pn=>{try{po(_.next(pn))}catch(ce){go(ce)}},Ft=pn=>{try{po(_.throw(pn))}catch(ce){go(ce)}},po=pn=>pn.done?ue(pn.value):Promise.resolve(pn.value).then(ee,Ft);po((_=_.apply(J,L)).next())});var el=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ky(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function HM(){this.__data__=[],this.size=0}var UM=HM;function WM(n,e){return n===e||n!==n&&e!==e}var Ui=WM,XM=Ui;function YM(n,e){for(var t=n.length;t--;)if(XM(n[t][0],e))return t;return-1}var tl=YM,KM=tl,JM=Array.prototype,QM=JM.splice;function ZM(n){var e=this.__data__,t=KM(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():QM.call(e,t,1),--this.size,!0}var eT=ZM,tT=tl;function nT(n){var e=this.__data__,t=tT(e,n);return t<0?void 0:e[t][1]}var rT=nT,iT=tl;function sT(n){return iT(this.__data__,n)>-1}var oT=sT,aT=tl;function lT(n,e){var t=this.__data__,r=aT(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var cT=lT,uT=UM,hT=eT,fT=rT,dT=oT,gT=cT;function Wi(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Wi.prototype.clear=uT,Wi.prototype.delete=hT,Wi.prototype.get=fT,Wi.prototype.has=dT,Wi.prototype.set=gT;var nl=Wi,pT=nl;function mT(){this.__data__=new pT,this.size=0}var yT=mT;function vT(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}var bT=vT;function wT(n){return this.__data__.get(n)}var xT=wT;function CT(n){return this.__data__.has(n)}var ST=CT,PT=typeof el=="object"&&el&&el.Object===Object&&el,Jy=PT,ET=Jy,AT=typeof self=="object"&&self&&self.Object===Object&&self,OT=ET||AT||Function("return this")(),mn=OT,MT=mn,TT=MT.Symbol,Xi=TT,Qy=Xi,Zy=Object.prototype,_T=Zy.hasOwnProperty,NT=Zy.toString,mo=Qy?Qy.toStringTag:void 0;function kT(n){var e=_T.call(n,mo),t=n[mo];try{n[mo]=void 0;var r=!0}catch(s){}var i=NT.call(n);return r&&(e?n[mo]=t:delete n[mo]),i}var $T=kT,IT=Object.prototype,LT=IT.toString;function RT(n){return LT.call(n)}var jT=RT,ev=Xi,DT=$T,BT=jT,zT="[object Null]",FT="[object Undefined]",tv=ev?ev.toStringTag:void 0;function VT(n){return n==null?n===void 0?FT:zT:tv&&tv in Object(n)?DT(n):BT(n)}var fi=VT;function qT(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var Zt=qT,GT=fi,HT=Zt,UT="[object AsyncFunction]",WT="[object Function]",XT="[object GeneratorFunction]",YT="[object Proxy]";function KT(n){if(!HT(n))return!1;var e=GT(n);return e==WT||e==XT||e==UT||e==YT}var yo=KT,JT=mn,QT=JT["__core-js_shared__"],ZT=QT,Yu=ZT,nv=function(){var n=/[^.]+$/.exec(Yu&&Yu.keys&&Yu.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function e2(n){return!!nv&&nv in n}var t2=e2,n2=Function.prototype,r2=n2.toString;function i2(n){if(n!=null){try{return r2.call(n)}catch(e){}try{return n+""}catch(e){}}return""}var rv=i2,s2=yo,o2=t2,a2=Zt,l2=rv,c2=/[\\^$.*+?()[\]{}|]/g,u2=/^\[object .+?Constructor\]$/,h2=Function.prototype,f2=Object.prototype,d2=h2.toString,g2=f2.hasOwnProperty,p2=RegExp("^"+d2.call(g2).replace(c2,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m2(n){if(!a2(n)||o2(n))return!1;var e=s2(n)?p2:u2;return e.test(l2(n))}var y2=m2;function v2(n,e){return n==null?void 0:n[e]}var b2=v2,w2=y2,x2=b2;function C2(n,e){var t=x2(n,e);return w2(t)?t:void 0}var di=C2,S2=di,P2=mn,E2=S2(P2,"Map"),Ku=E2,A2=di,O2=A2(Object,"create"),rl=O2,iv=rl;function M2(){this.__data__=iv?iv(null):{},this.size=0}var T2=M2;function _2(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var N2=_2,k2=rl,$2="__lodash_hash_undefined__",I2=Object.prototype,L2=I2.hasOwnProperty;function R2(n){var e=this.__data__;if(k2){var t=e[n];return t===$2?void 0:t}return L2.call(e,n)?e[n]:void 0}var j2=R2,D2=rl,B2=Object.prototype,z2=B2.hasOwnProperty;function F2(n){var e=this.__data__;return D2?e[n]!==void 0:z2.call(e,n)}var V2=F2,q2=rl,G2="__lodash_hash_undefined__";function H2(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=q2&&e===void 0?G2:e,this}var U2=H2,W2=T2,X2=N2,Y2=j2,K2=V2,J2=U2;function Yi(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Yi.prototype.clear=W2,Yi.prototype.delete=X2,Yi.prototype.get=Y2,Yi.prototype.has=K2,Yi.prototype.set=J2;var Q2=Yi,sv=Q2,Z2=nl,e_=Ku;function t_(){this.size=0,this.__data__={hash:new sv,map:new(e_||Z2),string:new sv}}var n_=t_;function r_(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}var i_=r_,s_=i_;function o_(n,e){var t=n.__data__;return s_(e)?t[typeof e=="string"?"string":"hash"]:t.map}var il=o_,a_=il;function l_(n){var e=a_(this,n).delete(n);return this.size-=e?1:0,e}var c_=l_,u_=il;function h_(n){return u_(this,n).get(n)}var f_=h_,d_=il;function g_(n){return d_(this,n).has(n)}var p_=g_,m_=il;function y_(n,e){var t=m_(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}var v_=y_,b_=n_,w_=c_,x_=f_,C_=p_,S_=v_;function Ki(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Ki.prototype.clear=b_,Ki.prototype.delete=w_,Ki.prototype.get=x_,Ki.prototype.has=C_,Ki.prototype.set=S_;var Ju=Ki,P_=nl,E_=Ku,A_=Ju,O_=200;function M_(n,e){var t=this.__data__;if(t instanceof P_){var r=t.__data__;if(!E_||r.length<O_-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new A_(r)}return t.set(n,e),this.size=t.size,this}var T_=M_,__=nl,N_=yT,k_=bT,$_=xT,I_=ST,L_=T_;function Ji(n){var e=this.__data__=new __(n);this.size=e.size}Ji.prototype.clear=N_,Ji.prototype.delete=k_,Ji.prototype.get=$_,Ji.prototype.has=I_,Ji.prototype.set=L_;var sl=Ji;function R_(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var Qu=R_,j_=di,D_=function(){try{var n=j_(Object,"defineProperty");return n({},"",{}),n}catch(e){}}(),ov=D_,av=ov;function B_(n,e,t){e=="__proto__"&&av?av(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}var ol=B_,z_=ol,F_=Ui,V_=Object.prototype,q_=V_.hasOwnProperty;function G_(n,e,t){var r=n[e];(!(q_.call(n,e)&&F_(r,t))||t===void 0&&!(e in n))&&z_(n,e,t)}var al=G_,H_=al,U_=ol;function W_(n,e,t,r){var i=!t;t||(t={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=r?r(t[a],n[a],a,t,n):void 0;l===void 0&&(l=n[a]),i?U_(t,a,l):H_(t,a,l)}return t}var vo=W_;function X_(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var Y_=X_;function K_(n){return n!=null&&typeof n=="object"}var Ln=K_,J_=fi,Q_=Ln,Z_="[object Arguments]";function eN(n){return Q_(n)&&J_(n)==Z_}var tN=eN,lv=tN,nN=Ln,cv=Object.prototype,rN=cv.hasOwnProperty,iN=cv.propertyIsEnumerable,sN=lv(function(){return arguments}())?lv:function(n){return nN(n)&&rN.call(n,"callee")&&!iN.call(n,"callee")},bo=sN,oN=Array.isArray,Qe=oN,ll={exports:{}};function aN(){return!1}var lN=aN;ll.exports,function(n,e){var t=mn,r=lN,i=e&&!e.nodeType&&e,s=i&&!0&&n&&!n.nodeType&&n,o=s&&s.exports===i,a=o?t.Buffer:void 0,l=a?a.isBuffer:void 0,c=l||r;n.exports=c}(ll,ll.exports);var Qi=ll.exports,cN=9007199254740991,uN=/^(?:0|[1-9]\d*)$/;function hN(n,e){var t=typeof n;return e=e==null?cN:e,!!e&&(t=="number"||t!="symbol"&&uN.test(n))&&n>-1&&n%1==0&&n<e}var cl=hN,fN=9007199254740991;function dN(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=fN}var Zu=dN,gN=fi,pN=Zu,mN=Ln,yN="[object Arguments]",vN="[object Array]",bN="[object Boolean]",wN="[object Date]",xN="[object Error]",CN="[object Function]",SN="[object Map]",PN="[object Number]",EN="[object Object]",AN="[object RegExp]",ON="[object Set]",MN="[object String]",TN="[object WeakMap]",_N="[object ArrayBuffer]",NN="[object DataView]",kN="[object Float32Array]",$N="[object Float64Array]",IN="[object Int8Array]",LN="[object Int16Array]",RN="[object Int32Array]",jN="[object Uint8Array]",DN="[object Uint8ClampedArray]",BN="[object Uint16Array]",zN="[object Uint32Array]",Ae={};Ae[kN]=Ae[$N]=Ae[IN]=Ae[LN]=Ae[RN]=Ae[jN]=Ae[DN]=Ae[BN]=Ae[zN]=!0,Ae[yN]=Ae[vN]=Ae[_N]=Ae[bN]=Ae[NN]=Ae[wN]=Ae[xN]=Ae[CN]=Ae[SN]=Ae[PN]=Ae[EN]=Ae[AN]=Ae[ON]=Ae[MN]=Ae[TN]=!1;function FN(n){return mN(n)&&pN(n.length)&&!!Ae[gN(n)]}var VN=FN;function qN(n){return function(e){return n(e)}}var ul=qN,hl={exports:{}};hl.exports,function(n,e){var t=Jy,r=e&&!e.nodeType&&e,i=r&&!0&&n&&!n.nodeType&&n,s=i&&i.exports===r,o=s&&t.process,a=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch(c){}}();n.exports=a}(hl,hl.exports);var eh=hl.exports,GN=VN,HN=ul,uv=eh,hv=uv&&uv.isTypedArray,UN=hv?HN(hv):GN,wo=UN,WN=Y_,XN=bo,YN=Qe,KN=Qi,JN=cl,QN=wo,ZN=Object.prototype,ek=ZN.hasOwnProperty;function tk(n,e){var t=YN(n),r=!t&&XN(n),i=!t&&!r&&KN(n),s=!t&&!r&&!i&&QN(n),o=t||r||i||s,a=o?WN(n.length,String):[],l=a.length;for(var c in n)(e||ek.call(n,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||JN(c,l)))&&a.push(c);return a}var fv=tk,nk=Object.prototype;function rk(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||nk;return n===t}var fl=rk;function ik(n,e){return function(t){return n(e(t))}}var dv=ik,sk=dv,ok=sk(Object.keys,Object),ak=ok,lk=fl,ck=ak,uk=Object.prototype,hk=uk.hasOwnProperty;function fk(n){if(!lk(n))return ck(n);var e=[];for(var t in Object(n))hk.call(n,t)&&t!="constructor"&&e.push(t);return e}var th=fk,dk=yo,gk=Zu;function pk(n){return n!=null&&gk(n.length)&&!dk(n)}var Xn=pk,mk=fv,yk=th,vk=Xn;function bk(n){return vk(n)?mk(n):yk(n)}var Pr=bk,wk=vo,xk=Pr;function Ck(n,e){return n&&wk(e,xk(e),n)}var Sk=Ck;function Pk(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var Ek=Pk,Ak=Zt,Ok=fl,Mk=Ek,Tk=Object.prototype,_k=Tk.hasOwnProperty;function Nk(n){if(!Ak(n))return Mk(n);var e=Ok(n),t=[];for(var r in n)r=="constructor"&&(e||!_k.call(n,r))||t.push(r);return t}var kk=Nk,$k=fv,Ik=kk,Lk=Xn;function Rk(n){return Lk(n)?$k(n,!0):Ik(n)}var gi=Rk,jk=vo,Dk=gi;function Bk(n,e){return n&&jk(e,Dk(e),n)}var zk=Bk,dl={exports:{}};dl.exports,function(n,e){var t=mn,r=e&&!e.nodeType&&e,i=r&&!0&&n&&!n.nodeType&&n,s=i&&i.exports===r,o=s?t.Buffer:void 0,a=o?o.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var h=c.length,f=a?a(h):new c.constructor(h);return c.copy(f),f}n.exports=l}(dl,dl.exports);var gv=dl.exports;function Fk(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var pv=Fk;function Vk(n,e){for(var t=-1,r=n==null?0:n.length,i=0,s=[];++t<r;){var o=n[t];e(o,t,n)&&(s[i++]=o)}return s}var mv=Vk;function qk(){return[]}var yv=qk,Gk=mv,Hk=yv,Uk=Object.prototype,Wk=Uk.propertyIsEnumerable,vv=Object.getOwnPropertySymbols,Xk=vv?function(n){return n==null?[]:(n=Object(n),Gk(vv(n),function(e){return Wk.call(n,e)}))}:Hk,nh=Xk,Yk=vo,Kk=nh;function Jk(n,e){return Yk(n,Kk(n),e)}var Qk=Jk;function Zk(n,e){for(var t=-1,r=e.length,i=n.length;++t<r;)n[i+t]=e[t];return n}var rh=Zk,e$=dv,t$=e$(Object.getPrototypeOf,Object),gl=t$,n$=rh,r$=gl,i$=nh,s$=yv,o$=Object.getOwnPropertySymbols,a$=o$?function(n){for(var e=[];n;)n$(e,i$(n)),n=r$(n);return e}:s$,bv=a$,l$=vo,c$=bv;function u$(n,e){return l$(n,c$(n),e)}var h$=u$,f$=rh,d$=Qe;function g$(n,e,t){var r=e(n);return d$(n)?r:f$(r,t(n))}var wv=g$,p$=wv,m$=nh,y$=Pr;function v$(n){return p$(n,y$,m$)}var xv=v$,b$=wv,w$=bv,x$=gi;function C$(n){return b$(n,x$,w$)}var S$=C$,P$=di,E$=mn,A$=P$(E$,"DataView"),O$=A$,M$=di,T$=mn,_$=M$(T$,"Promise"),N$=_$,k$=di,$$=mn,I$=k$($$,"Set"),Cv=I$,L$=di,R$=mn,j$=L$(R$,"WeakMap"),D$=j$,ih=O$,sh=Ku,oh=N$,ah=Cv,lh=D$,Sv=fi,Zi=rv,Pv="[object Map]",B$="[object Object]",Ev="[object Promise]",Av="[object Set]",Ov="[object WeakMap]",Mv="[object DataView]",z$=Zi(ih),F$=Zi(sh),V$=Zi(oh),q$=Zi(ah),G$=Zi(lh),pi=Sv;(ih&&pi(new ih(new ArrayBuffer(1)))!=Mv||sh&&pi(new sh)!=Pv||oh&&pi(oh.resolve())!=Ev||ah&&pi(new ah)!=Av||lh&&pi(new lh)!=Ov)&&(pi=function(n){var e=Sv(n),t=e==B$?n.constructor:void 0,r=t?Zi(t):"";if(r)switch(r){case z$:return Mv;case F$:return Pv;case V$:return Ev;case q$:return Av;case G$:return Ov}return e});var es=pi,H$=Object.prototype,U$=H$.hasOwnProperty;function W$(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&U$.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var X$=W$,Y$=mn,K$=Y$.Uint8Array,Tv=K$,_v=Tv;function J$(n){var e=new n.constructor(n.byteLength);return new _v(e).set(new _v(n)),e}var ch=J$,Q$=ch;function Z$(n,e){var t=e?Q$(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}var eI=Z$,tI=/\w*$/;function nI(n){var e=new n.constructor(n.source,tI.exec(n));return e.lastIndex=n.lastIndex,e}var rI=nI,Nv=Xi,kv=Nv?Nv.prototype:void 0,$v=kv?kv.valueOf:void 0;function iI(n){return $v?Object($v.call(n)):{}}var sI=iI,oI=ch;function aI(n,e){var t=e?oI(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var Iv=aI,lI=ch,cI=eI,uI=rI,hI=sI,fI=Iv,dI="[object Boolean]",gI="[object Date]",pI="[object Map]",mI="[object Number]",yI="[object RegExp]",vI="[object Set]",bI="[object String]",wI="[object Symbol]",xI="[object ArrayBuffer]",CI="[object DataView]",SI="[object Float32Array]",PI="[object Float64Array]",EI="[object Int8Array]",AI="[object Int16Array]",OI="[object Int32Array]",MI="[object Uint8Array]",TI="[object Uint8ClampedArray]",_I="[object Uint16Array]",NI="[object Uint32Array]";function kI(n,e,t){var r=n.constructor;switch(e){case xI:return lI(n);case dI:case gI:return new r(+n);case CI:return cI(n,t);case SI:case PI:case EI:case AI:case OI:case MI:case TI:case _I:case NI:return fI(n,t);case pI:return new r;case mI:case bI:return new r(n);case yI:return uI(n);case vI:return new r;case wI:return hI(n)}}var $I=kI,II=Zt,Lv=Object.create,LI=function(){function n(){}return function(e){if(!II(e))return{};if(Lv)return Lv(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}(),Rv=LI,RI=Rv,jI=gl,DI=fl;function BI(n){return typeof n.constructor=="function"&&!DI(n)?RI(jI(n)):{}}var jv=BI,zI=es,FI=Ln,VI="[object Map]";function qI(n){return FI(n)&&zI(n)==VI}var GI=qI,HI=GI,UI=ul,Dv=eh,Bv=Dv&&Dv.isMap,WI=Bv?UI(Bv):HI,XI=WI,YI=es,KI=Ln,JI="[object Set]";function QI(n){return KI(n)&&YI(n)==JI}var ZI=QI,eL=ZI,tL=ul,zv=eh,Fv=zv&&zv.isSet,nL=Fv?tL(Fv):eL,rL=nL,iL=sl,sL=Qu,oL=al,aL=Sk,lL=zk,cL=gv,uL=pv,hL=Qk,fL=h$,dL=xv,gL=S$,pL=es,mL=X$,yL=$I,vL=jv,bL=Qe,wL=Qi,xL=XI,CL=Zt,SL=rL,PL=Pr,EL=gi,AL=1,OL=2,ML=4,Vv="[object Arguments]",TL="[object Array]",_L="[object Boolean]",NL="[object Date]",kL="[object Error]",qv="[object Function]",$L="[object GeneratorFunction]",IL="[object Map]",LL="[object Number]",Gv="[object Object]",RL="[object RegExp]",jL="[object Set]",DL="[object String]",BL="[object Symbol]",zL="[object WeakMap]",FL="[object ArrayBuffer]",VL="[object DataView]",qL="[object Float32Array]",GL="[object Float64Array]",HL="[object Int8Array]",UL="[object Int16Array]",WL="[object Int32Array]",XL="[object Uint8Array]",YL="[object Uint8ClampedArray]",KL="[object Uint16Array]",JL="[object Uint32Array]",xe={};xe[Vv]=xe[TL]=xe[FL]=xe[VL]=xe[_L]=xe[NL]=xe[qL]=xe[GL]=xe[HL]=xe[UL]=xe[WL]=xe[IL]=xe[LL]=xe[Gv]=xe[RL]=xe[jL]=xe[DL]=xe[BL]=xe[XL]=xe[YL]=xe[KL]=xe[JL]=!0,xe[kL]=xe[qv]=xe[zL]=!1;function pl(n,e,t,r,i,s){var o,a=e&AL,l=e&OL,c=e&ML;if(t&&(o=i?t(n,r,i,s):t(n)),o!==void 0)return o;if(!CL(n))return n;var u=bL(n);if(u){if(o=mL(n),!a)return uL(n,o)}else{var h=pL(n),f=h==qv||h==$L;if(wL(n))return cL(n,a);if(h==Gv||h==Vv||f&&!i){if(o=l||f?{}:vL(n),!a)return l?fL(n,lL(o,n)):hL(n,aL(o,n))}else{if(!xe[h])return i?n:{};o=yL(n,h,a)}}s||(s=new iL);var d=s.get(n);if(d)return d;s.set(n,o),SL(n)?n.forEach(function(b){o.add(pl(b,e,t,b,n,s))}):xL(n)&&n.forEach(function(b,m){o.set(m,pl(b,e,t,m,n,s))});var g=c?l?gL:dL:l?EL:PL,p=u?void 0:g(n);return sL(p||n,function(b,m){p&&(m=b,b=n[m]),oL(o,m,pl(b,e,t,m,n,s))}),o}var Hv=pl,QL=Hv,ZL=1,eR=4;function tR(n){return QL(n,ZL|eR)}var Uv=tR;const nR=Ky(Uv),Er=ee.createContext(null);Er.displayName="GraphCollectionContext";const Wv=n=>{const{record:e,setTargetNode:t,node:r,handelOpenPorts:i}=n;return _.jsx(Er.Provider,{value:{node:r,record:e,positionTargetNode:s=>{t(s||r)},openPorts:i},children:n.children})},rR=(n,e)=>{const t=L.useRequest(()=>Promise.resolve({data:nR(e)}),$e(re({},n),{manual:!0})),r=L.useActionContext();return ee.useEffect(()=>{r.visible&&t.run()},[r.visible]),t};Ft.observer(()=>{const{record:n}=ee.useContext(Er),e=L.useCompile();return _.jsx("div",{children:_.jsx(ce.Select,{popupMatchSelectWidth:!1,disabled:!0,value:n.name,options:[{value:n.name,label:e(n.title)}]})})},{displayName:"SourceCollection"});const Yn=()=>{const n=Ft.useForm(),e=L.useActionContext();return{run(){return Be(this,null,function*(){e.setVisible(!1),n.reset()})}}},Xv=n=>{const e=Ft.useForm(),t=L.useAPIClient(),r=L.useActionContext(),{refreshCM:i}=L.useCollectionManager_deprecated();return{run(){return Be(this,null,function*(){yield e.submit(),yield t.resource("collections").create({values:e.values}),r.setVisible(!1),yield e.reset(),n("last"),yield i()})}}},Yv=(n,e)=>{const t=Ft.useForm(),r=L.useAPIClient(),i=L.useActionContext(),{refreshCM:s}=L.useCollectionManager_deprecated(),{positionTargetNode:o,openPorts:a}=ee.useContext(Er),{getValues:l}=L.useCollectionFieldFormValues();return{run(){return Be(this,null,function*(){yield t.submit();const u=l(),h=pn.lodash.omit(u,["key","uiSchemaUid","collectionName","autoCreateReverseField","uiSchema.x-uid","reverseField.key","reverseField.uiSchemaUid"]),f=!["obo","oho","o2o","o2m","m2o","m2m","linkTo","id"].includes(u.interface),{data:{data:d}}=yield r.resource("collections.fields",n).create({values:h});e&&(yield r.resource("fields").move({sourceId:d.key,targetId:e,targetScope:n,method:"insertAfter"})),i.setVisible(!1),yield t.reset(),o(),f&&a&&a(),yield s()})}}},iR=({collectionName:n,name:e,key:t})=>{const{refreshCM:r}=L.useCollectionManager_deprecated(),{t:i}=Za.useTranslation(),s=Ft.useForm(),o=L.useActionContext(),a=L.useAPIClient(),{positionTargetNode:l,node:c}=ee.useContext(Er);return{run(){return Be(this,null,function*(){var h;yield s.submit(),yield a.resource("collections.fields",n).update({filterByTk:e,values:s.values}),o.setVisible(!1),ce.message.success(i("Saved successfully")),l(),r(),c.setPortProp(t,"uiSchema",{title:(h=s.values)==null?void 0:h.uiSchema.title}),yield s.reset()})}}},ml=()=>{const{t:n}=Za.useTranslation(),e=Ft.useForm(),t=L.useActionContext(),{name:r}=e.values,i=L.useAPIClient(),{refreshCM:s}=L.useCollectionManager_deprecated(),{positionTargetNode:o}=ee.useContext(Er);return{run(){return Be(this,null,function*(){yield e.submit(),yield i.resource("collections").update({filterByTk:r,values:re({},pn.lodash.omit(e.values,["fields"]))}),t.setVisible(!1),ce.message.success(n("Saved successfully")),yield e.reset(),o(),s()})}}},sR=n=>{const e=L.useAPIClient(),t=Ft.useForm(),{cascade:r}=(t==null?void 0:t.values)||{};return{run(){return Be(this,null,function*(){yield e.resource("collections").destroy({filterByTk:n,cascade:r}),yield e.resource("graphPositions").destroy({filter:{collectionName:n}})})}}},oR=n=>{const{name:e}=n,{run:t}=sR(e),{refreshCM:r}=L.useCollectionManager_deprecated(),{positionTargetNode:i}=ee.useContext(Er);return{run(){return Be(this,null,function*(){yield t(),i("destory"),yield r()})}}},aR=(n,e)=>{const t=L.useAPIClient(),{positionTargetNode:r}=ee.useContext(Er);return{run(){return Be(this,null,function*(){yield t.resource("collections.fields",n).destroy({filterByTk:e}),r()})}}},lR=n=>{const{collectionName:e,name:t}=n,{refreshCM:r}=L.useCollectionManager_deprecated(),{run:i}=aR(e,t);return{run(){return Be(this,null,function*(){yield i(),yield r()})}}},uh=n=>(e,{targetScope:t})=>{e.loading=!0,n(t).then(po.action.bound(r=>{e.dataSource=r,e.loading=!1})).catch(r=>{pn.error(r)})};typeof window=="object"&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),function(n){n.forEach(e=>{Object.prototype.hasOwnProperty.call(e,"append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value(...t){const r=document.createDocumentFragment();t.forEach(i=>{const s=i instanceof Node;r.appendChild(s?i:document.createTextNode(String(i)))}),this.appendChild(r)}})})}([Element.prototype,Document.prototype,DocumentFragment.prototype]);class yn{get disposed(){return this._disposed===!0}dispose(){this._disposed=!0}}(function(n){function e(){return(t,r,i)=>{const s=i.value,o=t.__proto__;i.value=function(...a){this.disposed||(s.call(this,...a),o.dispose.call(this))}}}n.dispose=e})(yn||(yn={}));class Kv{constructor(){this.isDisposed=!1,this.items=new Set}get disposed(){return this.isDisposed}dispose(){this.isDisposed||(this.isDisposed=!0,this.items.forEach(e=>{e.dispose()}),this.items.clear())}contains(e){return this.items.has(e)}add(e){this.items.add(e)}remove(e){this.items.delete(e)}clear(){this.items.clear()}}(function(n){function e(t){const r=new n;return t.forEach(i=>{r.add(i)}),r}n.from=e})(Kv||(Kv={}));var cR=typeof global=="object"&&global&&global.Object===Object&&global;const Jv=cR;var uR=typeof self=="object"&&self&&self.Object===Object&&self,hR=Jv||uR||Function("return this")();const vn=hR;var fR=vn.Symbol;const en=fR;var Qv=Object.prototype,dR=Qv.hasOwnProperty,gR=Qv.toString,xo=en?en.toStringTag:void 0;function pR(n){var e=dR.call(n,xo),t=n[xo];try{n[xo]=void 0;var r=!0}catch(s){}var i=gR.call(n);return r&&(e?n[xo]=t:delete n[xo]),i}var mR=Object.prototype,yR=mR.toString;function vR(n){return yR.call(n)}var bR="[object Null]",wR="[object Undefined]",Zv=en?en.toStringTag:void 0;function Ar(n){return n==null?n===void 0?wR:bR:Zv&&Zv in Object(n)?pR(n):vR(n)}function bn(n){return n!=null&&typeof n=="object"}var xR="[object Symbol]";function Rn(n){return typeof n=="symbol"||bn(n)&&Ar(n)==xR}function Co(n,e){for(var t=-1,r=n==null?0:n.length,i=Array(r);++t<r;)i[t]=e(n[t],t,n);return i}var CR=Array.isArray;const xt=CR;var SR=1/0,e0=en?en.prototype:void 0,t0=e0?e0.toString:void 0;function n0(n){if(typeof n=="string")return n;if(xt(n))return Co(n,n0)+"";if(Rn(n))return t0?t0.call(n):"";var e=n+"";return e=="0"&&1/n==-SR?"-0":e}var PR=/\s/;function ER(n){for(var e=n.length;e--&&PR.test(n.charAt(e)););return e}var AR=/^\s+/;function OR(n){return n&&n.slice(0,ER(n)+1).replace(AR,"")}function Ze(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var r0=NaN,MR=/^[-+]0x[0-9a-f]+$/i,TR=/^0b[01]+$/i,_R=/^0o[0-7]+$/i,NR=parseInt;function So(n){if(typeof n=="number")return n;if(Rn(n))return r0;if(Ze(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=Ze(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=OR(n);var t=TR.test(n);return t||_R.test(n)?NR(n.slice(2),t?2:8):MR.test(n)?r0:+n}function ts(n){return n}var kR="[object AsyncFunction]",$R="[object Function]",IR="[object GeneratorFunction]",LR="[object Proxy]";function hh(n){if(!Ze(n))return!1;var e=Ar(n);return e==$R||e==IR||e==kR||e==LR}var RR=vn["__core-js_shared__"];const fh=RR;var i0=function(){var n=/[^.]+$/.exec(fh&&fh.keys&&fh.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function jR(n){return!!i0&&i0 in n}var DR=Function.prototype,BR=DR.toString;function mi(n){if(n!=null){try{return BR.call(n)}catch(e){}try{return n+""}catch(e){}}return""}var zR=/[\\^$.*+?()[\]{}|]/g,FR=/^\[object .+?Constructor\]$/,VR=Function.prototype,qR=Object.prototype,GR=VR.toString,HR=qR.hasOwnProperty,UR=RegExp("^"+GR.call(HR).replace(zR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function WR(n){if(!Ze(n)||jR(n))return!1;var e=hh(n)?UR:FR;return e.test(mi(n))}function XR(n,e){return n==null?void 0:n[e]}function yi(n,e){var t=XR(n,e);return WR(t)?t:void 0}var YR=yi(vn,"WeakMap");const dh=YR;var s0=Object.create,KR=function(){function n(){}return function(e){if(!Ze(e))return{};if(s0)return s0(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();const JR=KR;function o0(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function QR(){}function a0(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var ZR=800,ej=16,tj=Date.now;function nj(n){var e=0,t=0;return function(){var r=tj(),i=ej-(r-t);if(t=r,i>0){if(++e>=ZR)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function rj(n){return function(){return n}}var ij=function(){try{var n=yi(Object,"defineProperty");return n({},"",{}),n}catch(e){}}();const yl=ij;var sj=yl?function(n,e){return yl(n,"toString",{configurable:!0,enumerable:!1,value:rj(e),writable:!0})}:ts,oj=nj(sj);const aj=oj;function lj(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}function cj(n,e,t,r){for(var i=n.length,s=t+(r?1:-1);r?s--:++s<i;)if(e(n[s],s,n))return s;return-1}function uj(n){return n!==n}function hj(n,e,t){for(var r=t-1,i=n.length;++r<i;)if(n[r]===e)return r;return-1}function fj(n,e,t){return e===e?hj(n,e,t):cj(n,uj,t)}function l0(n,e){var t=n==null?0:n.length;return!!t&&fj(n,e,0)>-1}var dj=9007199254740991,gj=/^(?:0|[1-9]\d*)$/;function gh(n,e){var t=typeof n;return e=e==null?dj:e,!!e&&(t=="number"||t!="symbol"&&gj.test(n))&&n>-1&&n%1==0&&n<e}function vl(n,e,t){e=="__proto__"&&yl?yl(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function ns(n,e){return n===e||n!==n&&e!==e}var pj=Object.prototype,mj=pj.hasOwnProperty;function c0(n,e,t){var r=n[e];(!(mj.call(n,e)&&ns(r,t))||t===void 0&&!(e in n))&&vl(n,e,t)}function Po(n,e,t,r){var i=!t;t||(t={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=r?r(t[a],n[a],a,t,n):void 0;l===void 0&&(l=n[a]),i?vl(t,a,l):c0(t,a,l)}return t}var u0=Math.max;function yj(n,e,t){return e=u0(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,s=u0(r.length-e,0),o=Array(s);++i<s;)o[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=t(o),o0(n,this,a)}}function rs(n,e){return aj(yj(n,e,ts),n+"")}var vj=9007199254740991;function ph(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=vj}function vi(n){return n!=null&&ph(n.length)&&!hh(n)}function bl(n,e,t){if(!Ze(t))return!1;var r=typeof e;return(r=="number"?vi(t)&&gh(e,t.length):r=="string"&&e in t)?ns(t[e],n):!1}function h0(n){return rs(function(e,t){var r=-1,i=t.length,s=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(s=n.length>3&&typeof s=="function"?(i--,s):void 0,o&&bl(t[0],t[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++r<i;){var a=t[r];a&&n(e,a,r,s)}return e})}var bj=Object.prototype;function wl(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||bj;return n===t}function wj(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var xj="[object Arguments]";function f0(n){return bn(n)&&Ar(n)==xj}var d0=Object.prototype,Cj=d0.hasOwnProperty,Sj=d0.propertyIsEnumerable,Pj=f0(function(){return arguments}())?f0:function(n){return bn(n)&&Cj.call(n,"callee")&&!Sj.call(n,"callee")};const is=Pj;function Ej(){return!1}var g0=typeof J=="object"&&J&&!J.nodeType&&J,p0=g0&&typeof module=="object"&&module&&!module.nodeType&&module,Aj=p0&&p0.exports===g0,m0=Aj?vn.Buffer:void 0,Oj=m0?m0.isBuffer:void 0,Mj=Oj||Ej;const ss=Mj;var Tj="[object Arguments]",_j="[object Array]",Nj="[object Boolean]",kj="[object Date]",$j="[object Error]",Ij="[object Function]",Lj="[object Map]",Rj="[object Number]",jj="[object Object]",Dj="[object RegExp]",Bj="[object Set]",zj="[object String]",Fj="[object WeakMap]",Vj="[object ArrayBuffer]",qj="[object DataView]",Gj="[object Float32Array]",Hj="[object Float64Array]",Uj="[object Int8Array]",Wj="[object Int16Array]",Xj="[object Int32Array]",Yj="[object Uint8Array]",Kj="[object Uint8ClampedArray]",Jj="[object Uint16Array]",Qj="[object Uint32Array]",Oe={};Oe[Gj]=Oe[Hj]=Oe[Uj]=Oe[Wj]=Oe[Xj]=Oe[Yj]=Oe[Kj]=Oe[Jj]=Oe[Qj]=!0,Oe[Tj]=Oe[_j]=Oe[Vj]=Oe[Nj]=Oe[qj]=Oe[kj]=Oe[$j]=Oe[Ij]=Oe[Lj]=Oe[Rj]=Oe[jj]=Oe[Dj]=Oe[Bj]=Oe[zj]=Oe[Fj]=!1;function Zj(n){return bn(n)&&ph(n.length)&&!!Oe[Ar(n)]}function Eo(n){return function(e){return n(e)}}var y0=typeof J=="object"&&J&&!J.nodeType&&J,Ao=y0&&typeof module=="object"&&module&&!module.nodeType&&module,eD=Ao&&Ao.exports===y0,mh=eD&&Jv.process,tD=function(){try{var n=Ao&&Ao.require&&Ao.require("util").types;return n||mh&&mh.binding&&mh.binding("util")}catch(e){}}();const os=tD;var v0=os&&os.isTypedArray,nD=v0?Eo(v0):Zj;const xl=nD;var rD=Object.prototype,iD=rD.hasOwnProperty;function b0(n,e){var t=xt(n),r=!t&&is(n),i=!t&&!r&&ss(n),s=!t&&!r&&!i&&xl(n),o=t||r||i||s,a=o?wj(n.length,String):[],l=a.length;for(var c in n)(e||iD.call(n,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||gh(c,l)))&&a.push(c);return a}function w0(n,e){return function(t){return n(e(t))}}var sD=w0(Object.keys,Object);const oD=sD;var aD=Object.prototype,lD=aD.hasOwnProperty;function x0(n){if(!wl(n))return oD(n);var e=[];for(var t in Object(n))lD.call(n,t)&&t!="constructor"&&e.push(t);return e}function Oo(n){return vi(n)?b0(n):x0(n)}function cD(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var uD=Object.prototype,hD=uD.hasOwnProperty;function fD(n){if(!Ze(n))return cD(n);var e=wl(n),t=[];for(var r in n)r=="constructor"&&(e||!hD.call(n,r))||t.push(r);return t}function as(n){return vi(n)?b0(n,!0):fD(n)}var dD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gD=/^\w*$/;function yh(n,e){if(xt(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||Rn(n)?!0:gD.test(n)||!dD.test(n)||e!=null&&n in Object(e)}var pD=yi(Object,"create");const Mo=pD;function mD(){this.__data__=Mo?Mo(null):{},this.size=0}function yD(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var vD="__lodash_hash_undefined__",bD=Object.prototype,wD=bD.hasOwnProperty;function xD(n){var e=this.__data__;if(Mo){var t=e[n];return t===vD?void 0:t}return wD.call(e,n)?e[n]:void 0}var CD=Object.prototype,SD=CD.hasOwnProperty;function PD(n){var e=this.__data__;return Mo?e[n]!==void 0:SD.call(e,n)}var ED="__lodash_hash_undefined__";function AD(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Mo&&e===void 0?ED:e,this}function bi(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}bi.prototype.clear=mD,bi.prototype.delete=yD,bi.prototype.get=xD,bi.prototype.has=PD,bi.prototype.set=AD;function OD(){this.__data__=[],this.size=0}function Cl(n,e){for(var t=n.length;t--;)if(ns(n[t][0],e))return t;return-1}var MD=Array.prototype,TD=MD.splice;function _D(n){var e=this.__data__,t=Cl(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():TD.call(e,t,1),--this.size,!0}function ND(n){var e=this.__data__,t=Cl(e,n);return t<0?void 0:e[t][1]}function kD(n){return Cl(this.__data__,n)>-1}function $D(n,e){var t=this.__data__,r=Cl(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function Kn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Kn.prototype.clear=OD,Kn.prototype.delete=_D,Kn.prototype.get=ND,Kn.prototype.has=kD,Kn.prototype.set=$D;var ID=yi(vn,"Map");const To=ID;function LD(){this.size=0,this.__data__={hash:new bi,map:new(To||Kn),string:new bi}}function RD(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function Sl(n,e){var t=n.__data__;return RD(e)?t[typeof e=="string"?"string":"hash"]:t.map}function jD(n){var e=Sl(this,n).delete(n);return this.size-=e?1:0,e}function DD(n){return Sl(this,n).get(n)}function BD(n){return Sl(this,n).has(n)}function zD(n,e){var t=Sl(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function Jn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Jn.prototype.clear=LD,Jn.prototype.delete=jD,Jn.prototype.get=DD,Jn.prototype.has=BD,Jn.prototype.set=zD;var FD="Expected a function";function vh(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(FD);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=t.cache;if(s.has(i))return s.get(i);var o=n.apply(this,r);return t.cache=s.set(i,o)||s,o};return t.cache=new(vh.Cache||Jn),t}vh.Cache=Jn;var VD=500;function qD(n){var e=vh(n,function(r){return t.size===VD&&t.clear(),r}),t=e.cache;return e}var GD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,HD=/\\(\\)?/g,UD=qD(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(GD,function(t,r,i,s){e.push(i?s.replace(HD,"$1"):r||t)}),e});const WD=UD;function _o(n){return n==null?"":n0(n)}function C0(n,e){return xt(n)?n:yh(n,e)?[n]:WD(_o(n))}var XD=1/0;function Pl(n){if(typeof n=="string"||Rn(n))return n;var e=n+"";return e=="0"&&1/n==-XD?"-0":e}function bh(n,e){e=C0(e,n);for(var t=0,r=e.length;n!=null&&t<r;)n=n[Pl(e[t++])];return t&&t==r?n:void 0}function YD(n,e,t){var r=n==null?void 0:bh(n,e);return r===void 0?t:r}function wh(n,e){for(var t=-1,r=e.length,i=n.length;++t<r;)n[i+t]=e[t];return n}var S0=en?en.isConcatSpreadable:void 0;function KD(n){return xt(n)||is(n)||!!(S0&&n&&n[S0])}function El(n,e,t,r,i){var s=-1,o=n.length;for(t||(t=KD),i||(i=[]);++s<o;){var a=n[s];e>0&&t(a)?e>1?El(a,e-1,t,r,i):wh(i,a):r||(i[i.length]=a)}return i}var JD=w0(Object.getPrototypeOf,Object);const xh=JD;var QD="[object Object]",ZD=Function.prototype,eB=Object.prototype,P0=ZD.toString,tB=eB.hasOwnProperty,nB=P0.call(Object);function jn(n){if(!bn(n)||Ar(n)!=QD)return!1;var e=xh(n);if(e===null)return!0;var t=tB.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&P0.call(t)==nB}function rB(n,e,t){var r=-1,i=n.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=n[r+e];return s}function iB(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:rB(n,e,t)}var sB="\\ud800-\\udfff",oB="\\u0300-\\u036f",aB="\\ufe20-\\ufe2f",lB="\\u20d0-\\u20ff",cB=oB+aB+lB,uB="\\ufe0e\\ufe0f",hB="\\u200d",fB=RegExp("["+hB+sB+cB+uB+"]");function E0(n){return fB.test(n)}function dB(n){return n.split("")}var A0="\\ud800-\\udfff",gB="\\u0300-\\u036f",pB="\\ufe20-\\ufe2f",mB="\\u20d0-\\u20ff",yB=gB+pB+mB,vB="\\ufe0e\\ufe0f",bB="["+A0+"]",Ch="["+yB+"]",Sh="\\ud83c[\\udffb-\\udfff]",wB="(?:"+Ch+"|"+Sh+")",O0="[^"+A0+"]",M0="(?:\\ud83c[\\udde6-\\uddff]){2}",T0="[\\ud800-\\udbff][\\udc00-\\udfff]",xB="\\u200d",_0=wB+"?",N0="["+vB+"]?",CB="(?:"+xB+"(?:"+[O0,M0,T0].join("|")+")"+N0+_0+")*",SB=N0+_0+CB,PB="(?:"+[O0+Ch+"?",Ch,M0,T0,bB].join("|")+")",EB=RegExp(Sh+"(?="+Sh+")|"+PB+SB,"g");function AB(n){return n.match(EB)||[]}function OB(n){return E0(n)?AB(n):dB(n)}function k0(n){return function(e){e=_o(e);var t=E0(e)?OB(e):void 0,r=t?t[0]:e.charAt(0),i=t?iB(t,1).join(""):e.slice(1);return r[n]()+i}}var MB=k0("toUpperCase");const Al=MB;function TB(n){return Al(_o(n).toLowerCase())}function _B(n,e,t,r){var i=-1,s=n==null?0:n.length;for(r&&s&&(t=n[++i]);++i<s;)t=e(t,n[i],i,n);return t}function NB(n){return function(e){return n==null?void 0:n[e]}}var kB={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},$B=NB(kB);const IB=$B;var LB=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,RB="\\u0300-\\u036f",jB="\\ufe20-\\ufe2f",DB="\\u20d0-\\u20ff",BB=RB+jB+DB,zB="["+BB+"]",FB=RegExp(zB,"g");function VB(n){return n=_o(n),n&&n.replace(LB,IB).replace(FB,"")}var qB=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function GB(n){return n.match(qB)||[]}var HB=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function UB(n){return HB.test(n)}var $0="\\ud800-\\udfff",WB="\\u0300-\\u036f",XB="\\ufe20-\\ufe2f",YB="\\u20d0-\\u20ff",KB=WB+XB+YB,I0="\\u2700-\\u27bf",L0="a-z\\xdf-\\xf6\\xf8-\\xff",JB="\\xac\\xb1\\xd7\\xf7",QB="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ZB="\\u2000-\\u206f",e3=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",R0="A-Z\\xc0-\\xd6\\xd8-\\xde",t3="\\ufe0e\\ufe0f",j0=JB+QB+ZB+e3,D0="['’]",B0="["+j0+"]",n3="["+KB+"]",z0="\\d+",r3="["+I0+"]",F0="["+L0+"]",V0="[^"+$0+j0+z0+I0+L0+R0+"]",i3="\\ud83c[\\udffb-\\udfff]",s3="(?:"+n3+"|"+i3+")",o3="[^"+$0+"]",q0="(?:\\ud83c[\\udde6-\\uddff]){2}",G0="[\\ud800-\\udbff][\\udc00-\\udfff]",ls="["+R0+"]",a3="\\u200d",H0="(?:"+F0+"|"+V0+")",l3="(?:"+ls+"|"+V0+")",U0="(?:"+D0+"(?:d|ll|m|re|s|t|ve))?",W0="(?:"+D0+"(?:D|LL|M|RE|S|T|VE))?",X0=s3+"?",Y0="["+t3+"]?",c3="(?:"+a3+"(?:"+[o3,q0,G0].join("|")+")"+Y0+X0+")*",u3="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",h3="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",f3=Y0+X0+c3,d3="(?:"+[r3,q0,G0].join("|")+")"+f3,g3=RegExp([ls+"?"+F0+"+"+U0+"(?="+[B0,ls,"$"].join("|")+")",l3+"+"+W0+"(?="+[B0,ls+H0,"$"].join("|")+")",ls+"?"+H0+"+"+U0,ls+"+"+W0,h3,u3,z0,d3].join("|"),"g");function p3(n){return n.match(g3)||[]}function m3(n,e,t){return n=_o(n),e=t?void 0:e,e===void 0?UB(n)?p3(n):GB(n):n.match(e)||[]}var y3="['’]",v3=RegExp(y3,"g");function K0(n){return function(e){return _B(m3(VB(e).replace(v3,"")),n,"")}}var b3=K0(function(n,e,t){return e=e.toLowerCase(),n+(t?TB(e):e)});const Ol=b3;function w3(n,e,t){return n===n&&(t!==void 0&&(n=n<=t?n:t),e!==void 0&&(n=n>=e?n:e)),n}function tn(n,e,t){return t===void 0&&(t=e,e=void 0),t!==void 0&&(t=So(t),t=t===t?t:0),e!==void 0&&(e=So(e),e=e===e?e:0),w3(So(n),e,t)}function x3(){this.__data__=new Kn,this.size=0}function C3(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function S3(n){return this.__data__.get(n)}function P3(n){return this.__data__.has(n)}var E3=200;function A3(n,e){var t=this.__data__;if(t instanceof Kn){var r=t.__data__;if(!To||r.length<E3-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Jn(r)}return t.set(n,e),this.size=t.size,this}function wn(n){var e=this.__data__=new Kn(n);this.size=e.size}wn.prototype.clear=x3,wn.prototype.delete=C3,wn.prototype.get=S3,wn.prototype.has=P3,wn.prototype.set=A3;function O3(n,e){return n&&Po(e,Oo(e),n)}function M3(n,e){return n&&Po(e,as(e),n)}var J0=typeof J=="object"&&J&&!J.nodeType&&J,Q0=J0&&typeof module=="object"&&module&&!module.nodeType&&module,T3=Q0&&Q0.exports===J0,Z0=T3?vn.Buffer:void 0,eb=Z0?Z0.allocUnsafe:void 0;function tb(n,e){if(e)return n.slice();var t=n.length,r=eb?eb(t):new n.constructor(t);return n.copy(r),r}function _3(n,e){for(var t=-1,r=n==null?0:n.length,i=0,s=[];++t<r;){var o=n[t];e(o,t,n)&&(s[i++]=o)}return s}function nb(){return[]}var N3=Object.prototype,k3=N3.propertyIsEnumerable,rb=Object.getOwnPropertySymbols,$3=rb?function(n){return n==null?[]:(n=Object(n),_3(rb(n),function(e){return k3.call(n,e)}))}:nb;const Ph=$3;function I3(n,e){return Po(n,Ph(n),e)}var L3=Object.getOwnPropertySymbols,R3=L3?function(n){for(var e=[];n;)wh(e,Ph(n)),n=xh(n);return e}:nb;const ib=R3;function j3(n,e){return Po(n,ib(n),e)}function sb(n,e,t){var r=e(n);return xt(n)?r:wh(r,t(n))}function Eh(n){return sb(n,Oo,Ph)}function D3(n){return sb(n,as,ib)}var B3=yi(vn,"DataView");const Ah=B3;var z3=yi(vn,"Promise");const Oh=z3;var F3=yi(vn,"Set");const cs=F3;var ob="[object Map]",V3="[object Object]",ab="[object Promise]",lb="[object Set]",cb="[object WeakMap]",ub="[object DataView]",q3=mi(Ah),G3=mi(To),H3=mi(Oh),U3=mi(cs),W3=mi(dh),wi=Ar;(Ah&&wi(new Ah(new ArrayBuffer(1)))!=ub||To&&wi(new To)!=ob||Oh&&wi(Oh.resolve())!=ab||cs&&wi(new cs)!=lb||dh&&wi(new dh)!=cb)&&(wi=function(n){var e=Ar(n),t=e==V3?n.constructor:void 0,r=t?mi(t):"";if(r)switch(r){case q3:return ub;case G3:return ob;case H3:return ab;case U3:return lb;case W3:return cb}return e});const us=wi;var X3=Object.prototype,Y3=X3.hasOwnProperty;function K3(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&Y3.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var J3=vn.Uint8Array;const Ml=J3;function Mh(n){var e=new n.constructor(n.byteLength);return new Ml(e).set(new Ml(n)),e}function Q3(n,e){var t=e?Mh(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}var Z3=/\w*$/;function ez(n){var e=new n.constructor(n.source,Z3.exec(n));return e.lastIndex=n.lastIndex,e}var hb=en?en.prototype:void 0,fb=hb?hb.valueOf:void 0;function tz(n){return fb?Object(fb.call(n)):{}}function db(n,e){var t=e?Mh(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var nz="[object Boolean]",rz="[object Date]",iz="[object Map]",sz="[object Number]",oz="[object RegExp]",az="[object Set]",lz="[object String]",cz="[object Symbol]",uz="[object ArrayBuffer]",hz="[object DataView]",fz="[object Float32Array]",dz="[object Float64Array]",gz="[object Int8Array]",pz="[object Int16Array]",mz="[object Int32Array]",yz="[object Uint8Array]",vz="[object Uint8ClampedArray]",bz="[object Uint16Array]",wz="[object Uint32Array]";function xz(n,e,t){var r=n.constructor;switch(e){case uz:return Mh(n);case nz:case rz:return new r(+n);case hz:return Q3(n,t);case fz:case dz:case gz:case pz:case mz:case yz:case vz:case bz:case wz:return db(n,t);case iz:return new r;case sz:case lz:return new r(n);case oz:return ez(n);case az:return new r;case cz:return tz(n)}}function gb(n){return typeof n.constructor=="function"&&!wl(n)?JR(xh(n)):{}}var Cz="[object Map]";function Sz(n){return bn(n)&&us(n)==Cz}var pb=os&&os.isMap,Pz=pb?Eo(pb):Sz;const Ez=Pz;var Az="[object Set]";function Oz(n){return bn(n)&&us(n)==Az}var mb=os&&os.isSet,Mz=mb?Eo(mb):Oz;const Tz=Mz;var _z=1,Nz=2,kz=4,yb="[object Arguments]",$z="[object Array]",Iz="[object Boolean]",Lz="[object Date]",Rz="[object Error]",vb="[object Function]",jz="[object GeneratorFunction]",Dz="[object Map]",Bz="[object Number]",bb="[object Object]",zz="[object RegExp]",Fz="[object Set]",Vz="[object String]",qz="[object Symbol]",Gz="[object WeakMap]",Hz="[object ArrayBuffer]",Uz="[object DataView]",Wz="[object Float32Array]",Xz="[object Float64Array]",Yz="[object Int8Array]",Kz="[object Int16Array]",Jz="[object Int32Array]",Qz="[object Uint8Array]",Zz="[object Uint8ClampedArray]",eF="[object Uint16Array]",tF="[object Uint32Array]",Ce={};Ce[yb]=Ce[$z]=Ce[Hz]=Ce[Uz]=Ce[Iz]=Ce[Lz]=Ce[Wz]=Ce[Xz]=Ce[Yz]=Ce[Kz]=Ce[Jz]=Ce[Dz]=Ce[Bz]=Ce[bb]=Ce[zz]=Ce[Fz]=Ce[Vz]=Ce[qz]=Ce[Qz]=Ce[Zz]=Ce[eF]=Ce[tF]=!0,Ce[Rz]=Ce[vb]=Ce[Gz]=!1;function No(n,e,t,r,i,s){var o,a=e&_z,l=e&Nz,c=e&kz;if(t&&(o=i?t(n,r,i,s):t(n)),o!==void 0)return o;if(!Ze(n))return n;var u=xt(n);if(u){if(o=K3(n),!a)return a0(n,o)}else{var h=us(n),f=h==vb||h==jz;if(ss(n))return tb(n,a);if(h==bb||h==yb||f&&!i){if(o=l||f?{}:gb(n),!a)return l?j3(n,M3(o,n)):I3(n,O3(o,n))}else{if(!Ce[h])return i?n:{};o=xz(n,h,a)}}s||(s=new wn);var d=s.get(n);if(d)return d;s.set(n,o),Tz(n)?n.forEach(function(b){o.add(No(b,e,t,b,n,s))}):Ez(n)&&n.forEach(function(b,m){o.set(m,No(b,e,t,m,n,s))});var g=c?l?D3:Eh:l?as:Oo,p=u?void 0:g(n);return lj(p||n,function(b,m){p&&(m=b,b=n[m]),c0(o,m,No(b,e,t,m,n,s))}),o}var nF=4;function Th(n){return No(n,nF)}var rF=1,iF=4;function ze(n){return No(n,rF|iF)}var sF="__lodash_hash_undefined__";function oF(n){return this.__data__.set(n,sF),this}function aF(n){return this.__data__.has(n)}function hs(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new Jn;++e<t;)this.add(n[e])}hs.prototype.add=hs.prototype.push=oF,hs.prototype.has=aF;function lF(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function _h(n,e){return n.has(e)}var cF=1,uF=2;function wb(n,e,t,r,i,s){var o=t&cF,a=n.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var c=s.get(n),u=s.get(e);if(c&&u)return c==e&&u==n;var h=-1,f=!0,d=t&uF?new hs:void 0;for(s.set(n,e),s.set(e,n);++h<a;){var g=n[h],p=e[h];if(r)var b=o?r(p,g,h,e,n,s):r(g,p,h,n,e,s);if(b!==void 0){if(b)continue;f=!1;break}if(d){if(!lF(e,function(m,v){if(!_h(d,v)&&(g===m||i(g,m,t,r,s)))return d.push(v)})){f=!1;break}}else if(!(g===p||i(g,p,t,r,s))){f=!1;break}}return s.delete(n),s.delete(e),f}function hF(n){var e=-1,t=Array(n.size);return n.forEach(function(r,i){t[++e]=[i,r]}),t}function Nh(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var fF=1,dF=2,gF="[object Boolean]",pF="[object Date]",mF="[object Error]",yF="[object Map]",vF="[object Number]",bF="[object RegExp]",wF="[object Set]",xF="[object String]",CF="[object Symbol]",SF="[object ArrayBuffer]",PF="[object DataView]",xb=en?en.prototype:void 0,kh=xb?xb.valueOf:void 0;function EF(n,e,t,r,i,s,o){switch(t){case PF:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case SF:return!(n.byteLength!=e.byteLength||!s(new Ml(n),new Ml(e)));case gF:case pF:case vF:return ns(+n,+e);case mF:return n.name==e.name&&n.message==e.message;case bF:case xF:return n==e+"";case yF:var a=hF;case wF:var l=r&fF;if(a||(a=Nh),n.size!=e.size&&!l)return!1;var c=o.get(n);if(c)return c==e;r|=dF,o.set(n,e);var u=wb(a(n),a(e),r,i,s,o);return o.delete(n),u;case CF:if(kh)return kh.call(n)==kh.call(e)}return!1}var AF=1,OF=Object.prototype,MF=OF.hasOwnProperty;function TF(n,e,t,r,i,s){var o=t&AF,a=Eh(n),l=a.length,c=Eh(e),u=c.length;if(l!=u&&!o)return!1;for(var h=l;h--;){var f=a[h];if(!(o?f in e:MF.call(e,f)))return!1}var d=s.get(n),g=s.get(e);if(d&&g)return d==e&&g==n;var p=!0;s.set(n,e),s.set(e,n);for(var b=o;++h<l;){f=a[h];var m=n[f],v=e[f];if(r)var y=o?r(v,m,f,e,n,s):r(m,v,f,n,e,s);if(!(y===void 0?m===v||i(m,v,t,r,s):y)){p=!1;break}b||(b=f=="constructor")}if(p&&!b){var w=n.constructor,x=e.constructor;w!=x&&"constructor"in n&&"constructor"in e&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(p=!1)}return s.delete(n),s.delete(e),p}var _F=1,Cb="[object Arguments]",Sb="[object Array]",Tl="[object Object]",NF=Object.prototype,Pb=NF.hasOwnProperty;function kF(n,e,t,r,i,s){var o=xt(n),a=xt(e),l=o?Sb:us(n),c=a?Sb:us(e);l=l==Cb?Tl:l,c=c==Cb?Tl:c;var u=l==Tl,h=c==Tl,f=l==c;if(f&&ss(n)){if(!ss(e))return!1;o=!0,u=!1}if(f&&!u)return s||(s=new wn),o||xl(n)?wb(n,e,t,r,i,s):EF(n,e,l,t,r,i,s);if(!(t&_F)){var d=u&&Pb.call(n,"__wrapped__"),g=h&&Pb.call(e,"__wrapped__");if(d||g){var p=d?n.value():n,b=g?e.value():e;return s||(s=new wn),i(p,b,t,r,s)}}return f?(s||(s=new wn),TF(n,e,t,r,i,s)):!1}function _l(n,e,t,r,i){return n===e?!0:n==null||e==null||!bn(n)&&!bn(e)?n!==n&&e!==e:kF(n,e,t,r,_l,i)}var $F=1,IF=2;function LF(n,e,t,r){var i=t.length,s=i,o=!r;if(n==null)return!s;for(n=Object(n);i--;){var a=t[i];if(o&&a[2]?a[1]!==n[a[0]]:!(a[0]in n))return!1}for(;++i<s;){a=t[i];var l=a[0],c=n[l],u=a[1];if(o&&a[2]){if(c===void 0&&!(l in n))return!1}else{var h=new wn;if(r)var f=r(c,u,l,n,e,h);if(!(f===void 0?_l(u,c,$F|IF,r,h):f))return!1}}return!0}function Eb(n){return n===n&&!Ze(n)}function RF(n){for(var e=Oo(n),t=e.length;t--;){var r=e[t],i=n[r];e[t]=[r,i,Eb(i)]}return e}function Ab(n,e){return function(t){return t==null?!1:t[n]===e&&(e!==void 0||n in Object(t))}}function jF(n){var e=RF(n);return e.length==1&&e[0][2]?Ab(e[0][0],e[0][1]):function(t){return t===n||LF(t,n,e)}}function DF(n,e){return n!=null&&e in Object(n)}function Ob(n,e,t){e=C0(e,n);for(var r=-1,i=e.length,s=!1;++r<i;){var o=Pl(e[r]);if(!(s=n!=null&&t(n,o)))break;n=n[o]}return s||++r!=i?s:(i=n==null?0:n.length,!!i&&ph(i)&&gh(o,i)&&(xt(n)||is(n)))}function BF(n,e){return n!=null&&Ob(n,e,DF)}var zF=1,FF=2;function VF(n,e){return yh(n)&&Eb(e)?Ab(Pl(n),e):function(t){var r=YD(t,n);return r===void 0&&r===e?BF(t,n):_l(e,r,zF|FF)}}function qF(n){return function(e){return e==null?void 0:e[n]}}function GF(n){return function(e){return bh(e,n)}}function HF(n){return yh(n)?qF(Pl(n)):GF(n)}function $h(n){return typeof n=="function"?n:n==null?ts:typeof n=="object"?xt(n)?VF(n[0],n[1]):jF(n):HF(n)}function UF(n,e,t,r){for(var i=-1,s=n==null?0:n.length;++i<s;){var o=n[i];e(r,o,t(o),n)}return r}function WF(n){return function(e,t,r){for(var i=-1,s=Object(e),o=r(e),a=o.length;a--;){var l=o[n?a:++i];if(t(s[l],l,s)===!1)break}return e}}var XF=WF();const Mb=XF;function YF(n,e){return n&&Mb(n,e,Oo)}function KF(n,e){return function(t,r){if(t==null)return t;if(!vi(t))return n(t,r);for(var i=t.length,s=e?i:-1,o=Object(t);(e?s--:++s<i)&&r(o[s],s,o)!==!1;);return t}}var JF=KF(YF);const Tb=JF;function QF(n,e,t,r){return Tb(n,function(i,s,o){e(r,i,t(i),o)}),r}function ZF(n,e){return function(t,r){var i=xt(t)?UF:QF,s=e?e():{};return i(t,n,$h(r),s)}}var eV=function(){return vn.Date.now()};const Ih=eV;var tV="Expected a function",nV=Math.max,rV=Math.min;function Lh(n,e,t){var r,i,s,o,a,l,c=0,u=!1,h=!1,f=!0;if(typeof n!="function")throw new TypeError(tV);e=So(e)||0,Ze(t)&&(u=!!t.leading,h="maxWait"in t,s=h?nV(So(t.maxWait)||0,e):s,f="trailing"in t?!!t.trailing:f);function d(C){var S=r,E=i;return r=i=void 0,c=C,o=n.apply(E,S),o}function g(C){return c=C,a=setTimeout(m,e),u?d(C):o}function p(C){var S=C-l,E=C-c,A=e-S;return h?rV(A,s-E):A}function b(C){var S=C-l,E=C-c;return l===void 0||S>=e||S<0||h&&E>=s}function m(){var C=Ih();if(b(C))return v(C);a=setTimeout(m,p(C))}function v(C){return a=void 0,f&&r?d(C):(r=i=void 0,o)}function y(){a!==void 0&&clearTimeout(a),c=0,r=l=i=a=void 0}function w(){return a===void 0?o:v(Ih())}function x(){var C=Ih(),S=b(C);if(r=arguments,i=this,l=C,S){if(a===void 0)return g(l);if(h)return clearTimeout(a),a=setTimeout(m,e),d(l)}return a===void 0&&(a=setTimeout(m,e)),o}return x.cancel=y,x.flush=w,x}var _b=Object.prototype,iV=_b.hasOwnProperty,sV=rs(function(n,e){n=Object(n);var t=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&bl(e[0],e[1],i)&&(r=1);++t<r;)for(var s=e[t],o=as(s),a=-1,l=o.length;++a<l;){var c=o[a],u=n[c];(u===void 0||ns(u,_b[c])&&!iV.call(n,c))&&(n[c]=s[c])}return n});const oV=sV;function Rh(n,e,t){(t!==void 0&&!ns(n[e],t)||t===void 0&&!(e in n))&&vl(n,e,t)}function Nl(n){return bn(n)&&vi(n)}function jh(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function aV(n){return Po(n,as(n))}function lV(n,e,t,r,i,s,o){var a=jh(n,t),l=jh(e,t),c=o.get(l);if(c){Rh(n,t,c);return}var u=s?s(a,l,t+"",n,e,o):void 0,h=u===void 0;if(h){var f=xt(l),d=!f&&ss(l),g=!f&&!d&&xl(l);u=l,f||d||g?xt(a)?u=a:Nl(a)?u=a0(a):d?(h=!1,u=tb(l,!0)):g?(h=!1,u=db(l,!0)):u=[]:jn(l)||is(l)?(u=a,is(a)?u=aV(a):(!Ze(a)||hh(a))&&(u=gb(l))):h=!1}h&&(o.set(l,u),i(u,l,r,s,o),o.delete(l)),Rh(n,t,u)}function kl(n,e,t,r,i){n!==e&&Mb(e,function(s,o){if(i||(i=new wn),Ze(s))lV(n,e,o,t,kl,r,i);else{var a=r?r(jh(n,o),s,o+"",n,e,i):void 0;a===void 0&&(a=s),Rh(n,o,a)}},as)}function Nb(n,e,t,r,i,s){return Ze(n)&&Ze(e)&&(s.set(e,n),kl(n,e,void 0,Nb,s),s.delete(e)),n}var cV=h0(function(n,e,t,r){kl(n,e,t,r)});const uV=cV;var hV=rs(function(n){return n.push(void 0,Nb),o0(uV,void 0,n)});const kb=hV;function $b(n,e,t){for(var r=-1,i=n==null?0:n.length;++r<i;)if(t(e,n[r]))return!0;return!1}var fV=200;function dV(n,e,t,r){var i=-1,s=l0,o=!0,a=n.length,l=[],c=e.length;if(!a)return l;t&&(e=Co(e,Eo(t))),r?(s=$b,o=!1):e.length>=fV&&(s=_h,o=!1,e=new hs(e));e:for(;++i<a;){var u=n[i],h=t==null?u:t(u);if(u=r||u!==0?u:0,o&&h===h){for(var f=c;f--;)if(e[f]===h)continue e;l.push(u)}else s(e,h,r)||l.push(u)}return l}var gV=rs(function(n,e){return Nl(n)?dV(n,El(e,1,Nl,!0)):[]});const pV=gV;function mV(n,e){var t=-1,r=vi(n)?Array(n.length):[];return Tb(n,function(i,s,o){r[++t]=e(i,s,o)}),r}var yV=Object.prototype,vV=yV.hasOwnProperty,bV=ZF(function(n,e,t){vV.call(n,t)?n[t].push(e):vl(n,t,[e])});const Ib=bV;function wV(n,e){return n>e}var xV=Object.prototype,CV=xV.hasOwnProperty;function SV(n,e){return n!=null&&CV.call(n,e)}function $l(n,e){return n!=null&&Ob(n,e,SV)}var PV="[object Map]",EV="[object Set]",AV=Object.prototype,OV=AV.hasOwnProperty;function Lb(n){if(n==null)return!0;if(vi(n)&&(xt(n)||typeof n=="string"||typeof n.splice=="function"||ss(n)||xl(n)||is(n)))return!n.length;var e=us(n);if(e==PV||e==EV)return!n.size;if(wl(n))return!x0(n).length;for(var t in n)if(OV.call(n,t))return!1;return!0}function Qn(n,e){return _l(n,e)}var MV="[object Number]";function Rb(n){return typeof n=="number"||bn(n)&&Ar(n)==MV}var TV=k0("toLowerCase");const _V=TV;function NV(n,e,t){for(var r=-1,i=n.length;++r<i;){var s=n[r],o=e(s);if(o!=null&&(a===void 0?o===o&&!Rn(o):t(o,a)))var a=o,l=s}return l}function kV(n){return n&&n.length?NV(n,ts,wV):void 0}var $V=h0(function(n,e,t){kl(n,e,t)});const Ie=$V;function IV(n,e){var t=n.length;for(n.sort(e);t--;)n[t]=n[t].value;return n}function LV(n,e){if(n!==e){var t=n!==void 0,r=n===null,i=n===n,s=Rn(n),o=e!==void 0,a=e===null,l=e===e,c=Rn(e);if(!a&&!c&&!s&&n>e||s&&o&&l&&!a&&!c||r&&o&&l||!t&&l||!i)return 1;if(!r&&!s&&!c&&n<e||c&&t&&i&&!r&&!s||a&&t&&i||!o&&i||!l)return-1}return 0}function RV(n,e,t){for(var r=-1,i=n.criteria,s=e.criteria,o=i.length,a=t.length;++r<o;){var l=LV(i[r],s[r]);if(l){if(r>=a)return l;var c=t[r];return l*(c=="desc"?-1:1)}}return n.index-e.index}function jV(n,e,t){e.length?e=Co(e,function(s){return xt(s)?function(o){return bh(o,s.length===1?s[0]:s)}:s}):e=[ts];var r=-1;e=Co(e,Eo($h));var i=mV(n,function(s,o,a){var l=Co(e,function(c){return c(s)});return{criteria:l,index:++r,value:s}});return IV(i,function(s,o){return RV(s,o,t)})}var DV=rs(function(n,e){if(n==null)return[];var t=e.length;return t>1&&bl(n,e[0],e[1])?e=[]:t>2&&bl(e[0],e[1],e[2])&&(e=[e[0]]),jV(n,El(e,1),[])});const jb=DV;var BV=4294967295,zV=BV-1,FV=Math.floor,VV=Math.min;function Db(n,e,t,r){var i=0,s=n==null?0:n.length;if(s===0)return 0;e=t(e);for(var o=e!==e,a=e===null,l=Rn(e),c=e===void 0;i<s;){var u=FV((i+s)/2),h=t(n[u]),f=h!==void 0,d=h===null,g=h===h,p=Rn(h);if(o)var b=r||g;else c?b=g&&(r||f):a?b=g&&f&&(r||!d):l?b=g&&f&&!d&&(r||!p):d||p?b=!1:b=r?h<=e:h<e;b?i=u+1:s=u}return VV(s,zV)}var qV=4294967295,GV=qV>>>1;function HV(n,e,t){var r=0,i=n==null?r:n.length;if(typeof e=="number"&&e===e&&i<=GV){for(;r<i;){var s=r+i>>>1,o=n[s];o!==null&&!Rn(o)&&(t?o<=e:o<e)?r=s+1:i=s}return i}return Db(n,e,ts,t)}function UV(n,e){return HV(n,e)}function WV(n,e,t){return Db(n,e,$h(t))}var XV=K0(function(n,e,t){return n+(t?" ":"")+Al(e)});const YV=XV;var KV="Expected a function";function JV(n,e,t){var r=!0,i=!0;if(typeof n!="function")throw new TypeError(KV);return Ze(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),Lh(n,e,{leading:r,maxWait:e,trailing:i})}var QV=1/0,ZV=cs&&1/Nh(new cs([,-0]))[1]==QV?function(n){return new cs(n)}:QR;const e4=ZV;var t4=200;function Bb(n,e,t){var r=-1,i=l0,s=n.length,o=!0,a=[],l=a;if(t)o=!1,i=$b;else if(s>=t4){var c=e?null:e4(n);if(c)return Nh(c);o=!1,i=_h,l=new hs}else l=e?[]:a;e:for(;++r<s;){var u=n[r],h=e?e(u):u;if(u=t||u!==0?u:0,o&&h===h){for(var f=l.length;f--;)if(l[f]===h)continue e;e&&l.push(h),a.push(u)}else i(l,h,t)||(l!==a&&l.push(h),a.push(u))}return a}var n4=rs(function(n){return Bb(El(n,1,Nl,!0))});const zb=n4;function Fb(n){return n&&n.length?Bb(n):[]}function Vb(n,e,t){if(t)switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2]);case 4:return n.call(e,t[0],t[1],t[2],t[3]);case 5:return n.call(e,t[0],t[1],t[2],t[3],t[4]);case 6:return n.call(e,t[0],t[1],t[2],t[3],t[4],t[5]);default:return n.apply(e,t)}return n.call(e)}function Y(n,e,...t){return Vb(n,e,t)}function r4(n){return typeof n=="object"&&n.then&&typeof n.then=="function"}function qb(n){return n!=null&&(n instanceof Promise||r4(n))}function Gb(...n){const e=[];if(n.forEach(r=>{Array.isArray(r)?e.push(...r):e.push(r)}),e.some(r=>qb(r))){const r=e.map(i=>qb(i)?i:Promise.resolve(i!==!1));return Promise.all(r).then(i=>i.reduce((s,o)=>o!==!1&&s,!0))}return e.every(r=>r!==!1)}function Dh(n,e){const t=[];for(let r=0;r<n.length;r+=2){const i=n[r],s=n[r+1],o=Array.isArray(e)?e:[e],a=Vb(i,s,o);t.push(a)}return Gb(t)}class i4{constructor(){this.listeners={}}on(e,t,r){return t==null?this:(this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t,r),this)}once(e,t,r){const i=(...s)=>(this.off(e,i),Dh([t,r],s));return this.on(e,i,this)}off(e,t,r){if(!(e||t||r))return this.listeners={},this;const i=this.listeners;return(e?[e]:Object.keys(i)).forEach(o=>{const a=i[o];if(a){if(!(t||r)){delete i[o];return}for(let l=a.length-2;l>=0;l-=2)t&&a[l]!==t||r&&a[l+1]!==r||a.splice(l,2)}}),this}trigger(e,...t){let r=!0;if(e!=="*"){const s=this.listeners[e];s!=null&&(r=Dh([...s],t))}const i=this.listeners["*"];return i!=null?Gb([r,Dh([...i],[e,...t])]):r}emit(e,...t){return this.trigger(e,...t)}}function s4(n,...e){e.forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(n.prototype,r,Object.getOwnPropertyDescriptor(t.prototype,r))})})}const o4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])};function a4(n,e){o4(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}let l4=class{};const c4=/^\s*class\s+/.test(`${l4}`)||/^\s*class\s*\{/.test(`${class{}}`);function Bh(n,e){let t;return c4?t=class extends e{}:(t=function(){return e.apply(this,arguments)},a4(t,e)),Object.defineProperty(t,"name",{value:n}),t}function Hb(n){return n==="__proto__"}function zh(n,e,t="/"){let r;const i=Array.isArray(e)?e:e.split(t);if(i.length)for(r=n;i.length;){const s=i.shift();if(Object(r)===r&&s&&s in r)r=r[s];else return}return r}function fs(n,e,t,r="/"){const i=Array.isArray(e)?e:e.split(r),s=i.pop();if(s&&!Hb(s)){let o=n;i.forEach(a=>{Hb(a)||(o[a]==null&&(o[a]={}),o=o[a])}),o[s]=t}return n}function Ub(n,e,t="/"){const r=Array.isArray(e)?e.slice():e.split(t),i=r.pop();if(i)if(r.length>0){const s=zh(n,r);s&&delete s[i]}else delete n[i];return n}var u4=function(n,e,t,r){var i=arguments.length,s=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,e,t,r);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(i<3?o(s):i>3?o(e,t,s):o(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s};class gt extends i4{dispose(){this.off()}}u4([yn.dispose()],gt.prototype,"dispose",null),function(n){n.dispose=yn.dispose}(gt||(gt={})),s4(gt,yn);const Wb=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},Xb=Wb(n=>n.replace(/\B([A-Z])/g,"-$1").toLowerCase()),Fh=Wb(n=>YV(Ol(n)).replace(/ /g,""));function Vh(n){let e=2166136261,t=!1,r=n;for(let i=0,s=r.length;i<s;i+=1){let o=r.charCodeAt(i);o>127&&!t&&(r=unescape(encodeURIComponent(r)),o=r.charCodeAt(i),t=!0),e^=o,e+=(e<<1)+(e<<4)+(e<<7)+(e<<8)+(e<<24)}return e>>>0}function Il(){let n="";const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";for(let t=0,r=e.length;t<r;t+=1){const i=e[t],s=Math.random()*16|0,o=i==="x"?s:i==="y"?s&3|8:i;n+=o.toString(16)}return n}function h4(n,e,t){const r=Math.min(2,Math.floor(n.length*.34));let i=Math.floor(n.length*.4)+1,s,o=!1;const a=n.toLowerCase();for(const l of e){const c=t(l);if(c!==void 0&&Math.abs(c.length-a.length)<=r){const u=c.toLowerCase();if(u===a){if(c===n)continue;return l}if(o||c.length<3)continue;const h=f4(a,u,i-1);if(h===void 0)continue;h<3?(o=!0,s=l):(i=h,s=l)}}return s}function f4(n,e,t){let r=new Array(e.length+1),i=new Array(e.length+1);const s=t+1;for(let a=0;a<=e.length;a+=1)r[a]=a;for(let a=1;a<=n.length;a+=1){const l=n.charCodeAt(a-1),c=a>t?a-t:1,u=e.length>t+a?t+a:e.length;i[0]=a;let h=a;for(let d=1;d<c;d+=1)i[d]=s;for(let d=c;d<=u;d+=1){const g=l===e.charCodeAt(d-1)?r[d-1]:Math.min(r[d]+1,i[d-1]+1,r[d-1]+2);i[d]=g,h=Math.min(h,g)}for(let d=u+1;d<=e.length;d+=1)i[d]=s;if(h>t)return;const f=r;r=i,i=f}const o=r[e.length];return o>t?void 0:o}function Zn(n){return typeof n=="string"&&n.slice(-1)==="%"}function Vt(n,e){if(n==null)return 0;let t;if(typeof n=="string"){if(t=parseFloat(n),Zn(n)&&(t/=100,Number.isFinite(t)))return t*e}else t=n;return Number.isFinite(t)?t>0&&t<1?t*e:t:0}function Dn(n){if(typeof n=="object"){let t=0,r=0,i=0,s=0;return n.vertical!=null&&Number.isFinite(n.vertical)&&(r=s=n.vertical),n.horizontal!=null&&Number.isFinite(n.horizontal)&&(i=t=n.horizontal),n.left!=null&&Number.isFinite(n.left)&&(t=n.left),n.top!=null&&Number.isFinite(n.top)&&(r=n.top),n.right!=null&&Number.isFinite(n.right)&&(i=n.right),n.bottom!=null&&Number.isFinite(n.bottom)&&(s=n.bottom),{top:r,right:i,bottom:s,left:t}}let e=0;return n!=null&&Number.isFinite(n)&&(e=n),{top:e,right:e,bottom:e,left:e}}let qh=!1,Yb=!1,Kb=!1,Jb=!1,Qb=!1,Zb=!1,e1=!1,t1=!1,n1=!1,r1=!1,i1=!1,s1=!1,o1=!1,a1=!1,l1=!1,c1=!1;if(typeof navigator=="object"){const n=navigator.userAgent;qh=n.indexOf("Macintosh")>=0,Yb=!!n.match(/(iPad|iPhone|iPod)/g),Kb=n.indexOf("Windows")>=0,Jb=n.indexOf("MSIE")>=0,Qb=!!n.match(/Trident\/7\./),Zb=!!n.match(/Edge\//),e1=n.indexOf("Mozilla/")>=0&&n.indexOf("MSIE")<0&&n.indexOf("Edge/")<0,n1=n.indexOf("Chrome/")>=0&&n.indexOf("Edge/")<0,r1=n.indexOf("Opera/")>=0||n.indexOf("OPR/")>=0,i1=n.indexOf("Firefox/")>=0,s1=n.indexOf("AppleWebKit/")>=0&&n.indexOf("Chrome/")<0&&n.indexOf("Edge/")<0,typeof document=="object"&&(c1=!document.createElementNS||`${document.createElementNS("http://www.w3.org/2000/svg","foreignObject")}`!="[object SVGForeignObjectElement]"||n.indexOf("Opera/")>=0)}if(typeof window=="object"&&(t1=window.chrome!=null&&window.chrome.app!=null&&window.chrome.app.runtime!=null,a1=window.PointerEvent!=null&&!qh),typeof document=="object"){o1="ontouchstart"in document.documentElement;try{const n=Object.defineProperty({},"passive",{get(){l1=!0}}),e=document.createElement("div");e.addEventListener&&e.addEventListener("click",()=>{},n)}catch(n){}}var nn;(function(n){n.IS_MAC=qh,n.IS_IOS=Yb,n.IS_WINDOWS=Kb,n.IS_IE=Jb,n.IS_IE11=Qb,n.IS_EDGE=Zb,n.IS_NETSCAPE=e1,n.IS_CHROME_APP=t1,n.IS_CHROME=n1,n.IS_OPERA=r1,n.IS_FIREFOX=i1,n.IS_SAFARI=s1,n.SUPPORT_TOUCH=o1,n.SUPPORT_POINTER=a1,n.SUPPORT_PASSIVE=l1,n.NO_FOREIGNOBJECT=c1,n.SUPPORT_FOREIGNOBJECT=!n.NO_FOREIGNOBJECT})(nn||(nn={})),function(n){function e(){const s=window.module;return s!=null&&s.hot!=null&&s.hot.status!=null?s.hot.status():"unkonwn"}n.getHMRStatus=e;function t(){return e()==="apply"}n.isApplyingHMR=t;const r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function i(s){const o=document.createElement(r[s]||"div"),a=`on${s}`;let l=a in o;return l||(o.setAttribute(a,"return;"),l=typeof o[a]=="function"),l}n.isEventSupported=i}(nn||(nn={}));const Gh=/[\t\r\n\f]/g,Hh=/\S+/g,ds=n=>` ${n} `;function gs(n){return n&&n.getAttribute&&n.getAttribute("class")||""}function ps(n,e){if(n==null||e==null)return!1;const t=ds(gs(n)),r=ds(e);return n.nodeType===1?t.replace(Gh," ").includes(r):!1}function K(n,e){if(!(n==null||e==null)){if(typeof e=="function")return K(n,e(gs(n)));if(typeof e=="string"&&n.nodeType===1){const t=e.match(Hh)||[],r=ds(gs(n)).replace(Gh," ");let i=t.reduce((s,o)=>s.indexOf(ds(o))<0?`${s}${o} `:s,r);i=i.trim(),r!==i&&n.setAttribute("class",i)}}}function pt(n,e){if(n!=null){if(typeof e=="function")return pt(n,e(gs(n)));if((!e||typeof e=="string")&&n.nodeType===1){const t=(e||"").match(Hh)||[],r=ds(gs(n)).replace(Gh," ");let i=t.reduce((s,o)=>{const a=ds(o);return s.indexOf(a)>-1?s.replace(a," "):s},r);i=e?i.trim():"",r!==i&&n.setAttribute("class",i)}}}function u1(n,e,t){if(!(n==null||e==null)){if(t!=null&&typeof e=="string"){t?K(n,e):pt(n,e);return}if(typeof e=="function")return u1(n,e(gs(n),t),t);typeof e=="string"&&(e.match(Hh)||[]).forEach(i=>{ps(n,i)?pt(n,i):K(n,i)})}}let h1=0;function d4(){return h1+=1,`v${h1}`}function Uh(n){return(n.id==null||n.id==="")&&(n.id=d4()),n.id}function Or(n){return n==null?!1:typeof n.getScreenCTM=="function"&&n instanceof SVGElement}const lt={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml"},f1="1.1";function d1(n,e=document){return e.createElement(n)}function Wh(n,e=lt.xhtml,t=document){return t.createElementNS(e,n)}function er(n,e=document){return Wh(n,lt.svg,e)}function Ll(n){if(n){const t=`<svg xmlns="${lt.svg}" xmlns:xlink="${lt.xlink}" version="${f1}">${n}</svg>`,{documentElement:r}=g4(t,{async:!1});return r}const e=document.createElementNS(lt.svg,"svg");return e.setAttributeNS(lt.xmlns,"xmlns:xlink",lt.xlink),e.setAttribute("version",f1),e}function g4(n,e={}){let t;try{const r=new DOMParser;if(e.async!=null){const i=r;i.async=e.async}t=r.parseFromString(n,e.mimeType||"text/xml")}catch(r){t=void 0}if(!t||t.getElementsByTagName("parsererror").length)throw new Error(`Invalid XML: ${n}`);return t}function p4(n,e=!0){const t=n.nodeName;return e?t.toLowerCase():t.toUpperCase()}function Xh(n){let e=0,t=n.previousSibling;for(;t;)t.nodeType===1&&(e+=1),t=t.previousSibling;return e}function m4(n,e){return n.querySelectorAll(e)}function y4(n,e){return n.querySelector(e)}function g1(n,e,t){const r=n.ownerSVGElement;let i=n.parentNode;for(;i&&i!==t&&i!==r;){if(ps(i,e))return i;i=i.parentNode}return null}function p1(n,e){const t=e&&e.parentNode;return n===t||!!(t&&t.nodeType===1&&n.compareDocumentPosition(t)&16)}function tr(n){n&&(Array.isArray(n)?n:[n]).forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)})}function ko(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function Bn(n,e){(Array.isArray(e)?e:[e]).forEach(r=>{r!=null&&n.appendChild(r)})}function m1(n,e){const t=n.firstChild;return t?$o(t,e):Bn(n,e)}function $o(n,e){const t=n.parentNode;t&&(Array.isArray(e)?e:[e]).forEach(i=>{i!=null&&t.insertBefore(i,n)})}function v4(n,e){const t=n.parentNode;t&&(Array.isArray(e)?e:[e]).forEach(i=>{i!=null&&t.insertBefore(i,n.nextSibling)})}function Mr(n,e){e!=null&&e.appendChild(n)}function b4(n){return!!n&&n.nodeType===1}function y1(n){try{return n instanceof HTMLElement}catch(e){return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function w4(n,e){const t=[];let r=n.firstChild;for(;r;r=r.nextSibling)r.nodeType===1&&(!e||ps(r,e))&&t.push(r);return t}const v1=["viewBox","attributeName","attributeType","repeatCount","textLength","lengthAdjust","gradientUnits"];function x4(n,e){return n.getAttribute(e)}function Yh(n,e){const t=w1(e);t.ns?n.hasAttributeNS(t.ns,t.local)&&n.removeAttributeNS(t.ns,t.local):n.hasAttribute(e)&&n.removeAttribute(e)}function Kh(n,e,t){if(t==null)return Yh(n,e);const r=w1(e);r.ns&&typeof t=="string"?n.setAttributeNS(r.ns,e,t):e==="id"?n.id=`${t}`:n.setAttribute(e,`${t}`)}function b1(n,e){Object.keys(e).forEach(t=>{Kh(n,t,e[t])})}function fe(n,e,t){if(e==null){const r=n.attributes,i={};for(let s=0;s<r.length;s+=1)i[r[s].name]=r[s].value;return i}if(typeof e=="string"&&t===void 0)return n.getAttribute(e);typeof e=="object"?b1(n,e):Kh(n,e,t)}function w1(n){if(n.indexOf(":")!==-1){const e=n.split(":");return{ns:lt[e[0]],local:e[1]}}return{ns:null,local:n}}function Io(n){const e={};return Object.keys(n).forEach(t=>{const r=v1.includes(t)?t:Xb(t);e[r]=n[t]}),e}function Rl(n){const e={};return n.split(";").forEach(r=>{const i=r.trim();if(i){const s=i.split("=");s.length&&(e[s[0].trim()]=s[1]?s[1].trim():"")}}),e}function Jh(n,e){return Object.keys(e).forEach(t=>{if(t==="class")n[t]=n[t]?`${n[t]} ${e[t]}`:e[t];else if(t==="style"){const r=typeof n[t]=="object",i=typeof e[t]=="object";let s,o;r&&i?(s=n[t],o=e[t]):r?(s=n[t],o=Rl(e[t])):i?(s=Rl(n[t]),o=e[t]):(s=Rl(n[t]),o=Rl(e[t])),n[t]=Jh(s,o)}else n[t]=e[t]}),n}function C4(n,e,t={}){const r=t.offset||0,i=[],s=[];let o,a,l=null;for(let c=0;c<n.length;c+=1){o=s[c]=n[c];for(let u=0,h=e.length;u<h;u+=1){const f=e[u],d=f.start+r,g=f.end+r;c>=d&&c<g&&(typeof o=="string"?o=s[c]={t:n[c],attrs:f.attrs}:o.attrs=Jh(Jh({},o.attrs),f.attrs),t.includeAnnotationIndices&&(o.annotations==null&&(o.annotations=[]),o.annotations.push(u)))}a=s[c-1],a?Ze(o)&&Ze(a)?(l=l,JSON.stringify(o.attrs)===JSON.stringify(a.attrs)?l.t+=o.t:(i.push(l),l=o)):Ze(o)||Ze(a)?(l=l,i.push(l),l=o):l=(l||"")+o:l=o}return l!=null&&i.push(l),i}function S4(n){return n.replace(/ /g," ")}var x1;(function(n){function e(c){const u="data:";return c.substr(0,u.length)===u}n.isDataUrl=e;function t(c,u){if(!c||e(c)){setTimeout(()=>u(null,c));return}const h=()=>{u(new Error(`Failed to load image: ${c}`))},f=window.FileReader?g=>{if(g.status===200){const p=new FileReader;p.onload=b=>{const m=b.target.result;u(null,m)},p.onerror=h,p.readAsDataURL(g.response)}else h()}:g=>{const p=b=>{const v=[];for(let y=0;y<b.length;y+=32768)v.push(String.fromCharCode.apply(null,b.subarray(y,y+32768)));return v.join("")};if(g.status===200){let b=c.split(".").pop()||"png";b==="svg"&&(b="svg+xml");const m=`data:image/${b};base64,`,v=new Uint8Array(g.response),y=m+btoa(p(v));u(null,y)}else h()},d=new XMLHttpRequest;d.responseType=window.FileReader?"blob":"arraybuffer",d.open("GET",c,!0),d.addEventListener("error",h),d.addEventListener("load",()=>f(d)),d.send()}n.imageToDataUri=t;function r(c){let u=c.replace(/\s/g,"");u=decodeURIComponent(u);const h=u.indexOf(","),f=u.slice(0,h),d=f.split(":")[1].split(";")[0],g=u.slice(h+1);let p;f.indexOf("base64")>=0?p=atob(g):p=unescape(encodeURIComponent(g));const b=new Uint8Array(p.length);for(let m=0;m<p.length;m+=1)b[m]=p.charCodeAt(m);return new Blob([b],{type:d})}n.dataUriToBlob=r;function i(c,u){const h=window.navigator.msSaveBlob;if(h)h(c,u);else{const f=window.URL.createObjectURL(c),d=document.createElement("a");d.href=f,d.download=u,document.body.appendChild(d),d.click(),document.body.removeChild(d),window.URL.revokeObjectURL(f)}}n.downloadBlob=i;function s(c,u){const h=r(c);i(h,u)}n.downloadDataUri=s;function o(c){const u=c.match(/<svg[^>]*viewBox\s*=\s*(["']?)(.+?)\1[^>]*>/i);return u&&u[2]?u[2].replace(/\s+/," ").split(" "):null}function a(c){const u=parseFloat(c);return Number.isNaN(u)?null:u}function l(c,u={}){let h=null;const f=y=>(h==null&&(h=o(c)),h!=null?a(h[y]):null),d=y=>{const w=c.match(y);return w&&w[2]?a(w[2]):null};let g=u.width;if(g==null&&(g=d(/<svg[^>]*width\s*=\s*(["']?)(.+?)\1[^>]*>/i)),g==null&&(g=f(2)),g==null)throw new Error("Can not parse width from svg string");let p=u.height;if(p==null&&(p=d(/<svg[^>]*height\s*=\s*(["']?)(.+?)\1[^>]*>/i)),p==null&&(p=f(3)),p==null)throw new Error("Can not parse height from svg string");return`data:image/svg+xml,${encodeURIComponent(c).replace(/'/g,"%27").replace(/"/g,"%22")}`}n.svgToDataUrl=l})(x1||(x1={}));let xi;const P4={px(n){return n},mm(n){return xi*n},cm(n){return xi*n*10},in(n){return xi*n*25.4},pt(n){return xi*(25.4*n/72)},pc(n){return xi*(25.4*n/6)}};var C1;(function(n){function e(r,i,s){const o=document.createElement("div"),a=o.style;a.display="inline-block",a.position="absolute",a.left="-15000px",a.top="-15000px",a.width=r+(s||"px"),a.height=i+(s||"px"),document.body.appendChild(o);const l=o.getBoundingClientRect(),c={width:l.width||0,height:l.height||0};return document.body.removeChild(o),c}n.measure=e;function t(r,i){xi==null&&(xi=e("1","1","mm").width);const s=i?P4[i]:null;return s?s(r):r}n.toPx=t})(C1||(C1={}));const E4=/-(.)/g;function A4(n){return n.replace(E4,(e,t)=>t.toUpperCase())}const Qh={},S1=["webkit","ms","moz","o"],P1=document?document.createElement("div").style:{};function O4(n){for(let e=0;e<S1.length;e+=1){const t=S1[e]+n;if(t in P1)return t}return null}function M4(n){const e=A4(n);if(Qh[e]==null){const t=e.charAt(0).toUpperCase()+e.slice(1);Qh[e]=e in P1?e:O4(t)}return Qh[e]}function E1(n,e){const t=n.ownerDocument&&n.ownerDocument.defaultView&&n.ownerDocument.defaultView.opener?n.ownerDocument.defaultView.getComputedStyle(n,null):window.getComputedStyle(n,null);return t&&e?t.getPropertyValue(e)||t[e]:t}const T4={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function _4(n){return/^--/.test(n)}function jl(n,e,t){const r=window.getComputedStyle(n,null);return t?r.getPropertyValue(e)||void 0:r[e]||n.style[e]}function Dl(n,e){return parseInt(jl(n,e),10)||0}function N4(n,e){return!T4[n]&&typeof e=="number"?`${e}px`:e}function me(n,e,t){if(typeof e=="string"){const r=_4(e);if(r||(e=M4(e)),t===void 0)return jl(n,e,r);r||(t=N4(e,t));const i=n.style;r?i.setProperty(e,t):i[e]=t;return}for(const r in e)me(n,r,e[r])}const Bl=new WeakMap;function A1(n,e){const t=Ol(e),r=Bl.get(n);if(r)return r[t]}function k4(n,e,t){const r=Ol(e),i=Bl.get(n);i?i[r]=t:Bl.set(n,{[r]:t})}function Ci(n,e,t){if(!e){const r={};return Object.keys(Bl).forEach(i=>{r[i]=A1(n,i)}),r}if(typeof e=="string"){if(t===void 0)return A1(n,e);k4(n,e,t);return}for(const r in e)Ci(n,r,e[r])}const $4={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};function Zh(n,e,t){if(e){if(typeof e=="string"){if(e=$4[e]||e,arguments.length<3)return n[e];n[e]=t;return}for(const r in e)Zh(n,r,e[r])}}class Z{get[Symbol.toStringTag](){return Z.toStringTag}get type(){return this.node.nodeName}get id(){return this.node.id}set id(e){this.node.id=e}constructor(e,t,r){if(!e)throw new TypeError("Invalid element to create vector");let i;if(Z.isVector(e))i=e.node;else if(typeof e=="string")if(e.toLowerCase()==="svg")i=Ll();else if(e[0]==="<"){const s=Ll(e);i=document.importNode(s.firstChild,!0)}else i=document.createElementNS(lt.svg,e);else i=e;this.node=i,t&&this.setAttributes(t),r&&this.append(r)}transform(e,t){return e==null?ys(this.node):(ys(this.node,e,t),this)}translate(e,t=0,r={}){return e==null?R1(this.node):(R1(this.node,e,t,r),this)}rotate(e,t,r,i={}){return e==null?nf(this.node):(nf(this.node,e,t,r,i),this)}scale(e,t){return e==null?rf(this.node):(rf(this.node,e,t),this)}getTransformToElement(e){const t=Z.toNode(e);return Do(this.node,t)}removeAttribute(e){return Yh(this.node,e),this}getAttribute(e){return x4(this.node,e)}setAttribute(e,t){return Kh(this.node,e,t),this}setAttributes(e){return b1(this.node,e),this}attr(e,t){return e==null?fe(this.node):typeof e=="string"&&t===void 0?fe(this.node,e):(typeof e=="object"?fe(this.node,e):fe(this.node,e,t),this)}svg(){return this.node instanceof SVGSVGElement?this:Z.create(this.node.ownerSVGElement)}defs(){const e=this.svg()||this,t=e.node.getElementsByTagName("defs")[0];return t?Z.create(t):Z.create("defs").appendTo(e)}text(e,t={}){return T1(this.node,e,t),this}tagName(){return p4(this.node)}clone(){return Z.create(this.node.cloneNode(!0))}remove(){return tr(this.node),this}empty(){return ko(this.node),this}append(e){return Bn(this.node,Z.toNodes(e)),this}appendTo(e){return Mr(this.node,Z.isVector(e)?e.node:e),this}prepend(e){return m1(this.node,Z.toNodes(e)),this}before(e){return $o(this.node,Z.toNodes(e)),this}replace(e){return this.node.parentNode&&this.node.parentNode.replaceChild(Z.toNode(e),this.node),Z.create(e)}first(){return this.node.firstChild?Z.create(this.node.firstChild):null}last(){return this.node.lastChild?Z.create(this.node.lastChild):null}get(e){const t=this.node.childNodes[e];return t?Z.create(t):null}indexOf(e){return Array.prototype.slice.call(this.node.childNodes).indexOf(Z.toNode(e))}find(e){const t=[],r=m4(this.node,e);if(r)for(let i=0,s=r.length;i<s;i+=1)t.push(Z.create(r[i]));return t}findOne(e){const t=y4(this.node,e);return t?Z.create(t):null}findParentByClass(e,t){const r=g1(this.node,e,t);return r?Z.create(r):null}matches(e){const t=this.node;this.node.matches;const r=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector||null;return r&&r.call(t,e)}contains(e){return p1(this.node,Z.isVector(e)?e.node:e)}wrap(e){const t=Z.create(e),r=this.node.parentNode;return r!=null&&r.insertBefore(t.node,this.node),t.append(this)}parent(e){let t=this;if(t.node.parentNode==null)return null;if(t=Z.create(t.node.parentNode),e==null)return t;do if(typeof e=="string"?t.matches(e):t instanceof e)return t;while(t=Z.create(t.node.parentNode));return t}children(){const e=this.node.childNodes,t=[];for(let r=0;r<e.length;r+=1)e[r].nodeType===1&&t.push(Z.create(e[r]));return t}eachChild(e,t){const r=this.children();for(let i=0,s=r.length;i<s;i+=1)e.call(r[i],r[i],i,r),t&&r[i].eachChild(e,t);return this}index(){return Xh(this.node)}hasClass(e){return ps(this.node,e)}addClass(e){return K(this.node,e),this}removeClass(e){return pt(this.node,e),this}toggleClass(e,t){return u1(this.node,e,t),this}toLocalPoint(e,t){return Z4(this.node,e,t)}sample(e=1){return this.node instanceof SVGPathElement?j4(this.node,e):[]}toPath(){return Z.create(G4(this.node))}toPathData(){return I1(this.node)}}(function(n){n.toStringTag=`X6.${n.name}`;function e(o){if(o==null)return!1;if(o instanceof n)return!0;const a=o[Symbol.toStringTag],l=o;return(a==null||a===n.toStringTag)&&l.node instanceof SVGElement&&typeof l.sample=="function"&&typeof l.toPath=="function"}n.isVector=e;function t(o,a,l){return new n(o,a,l)}n.create=t;function r(o){if(o[0]==="<"){const a=Ll(o),l=[];for(let c=0,u=a.childNodes.length;c<u;c+=1){const h=a.childNodes[c];l.push(t(document.importNode(h,!0)))}return l}return[t(o)]}n.createVectors=r;function i(o){return e(o)?o.node:o}n.toNode=i;function s(o){return Array.isArray(o)?o.map(a=>i(a)):[i(o)]}n.toNodes=s})(Z||(Z={}));const O1=document.createElement("canvas").getContext("2d");function I4(n,e){const t=Z.create(e),r=Z.create("textPath"),i=n.d;if(i&&n["xlink:href"]===void 0){const s=Z.create("path").attr("d",i).appendTo(t.defs());r.attr("xlink:href",`#${s.id}`)}return typeof n=="object"&&r.attr(n),r.node}function L4(n,e,t){const r=t.eol,i=t.baseSize,s=t.lineHeight;let o=0,a;const l={},c=e.length-1;for(let u=0;u<=c;u+=1){let h=e[u],f=null;if(typeof h=="object"){const d=h.attrs,g=Z.create("tspan",d);a=g.node;let p=h.t;r&&u===c&&(p+=r),a.textContent=p;const b=d.class;b&&g.addClass(b),t.includeAnnotationIndices&&g.attr("annotations",h.annotations.join(",")),f=parseFloat(d["font-size"]),f===void 0&&(f=i),f&&f>o&&(o=f)}else r&&u===c&&(h+=r),a=document.createTextNode(h||" "),i&&i>o&&(o=i);n.appendChild(a)}return o&&(l.maxFontSize=o),s?l.lineHeight=s:o&&(l.lineHeight=o*1.2),l}const M1=/em$/;function zl(n,e){const t=parseFloat(n);return M1.test(n)?t*e:t}function R4(n,e,t,r){if(!Array.isArray(e))return 0;const i=e.length;if(!i)return 0;let s=e[0];const o=zl(s.maxFontSize,t)||t;let a=0;const l=zl(r,t);for(let h=1;h<i;h+=1){s=e[h];const f=zl(s.lineHeight,t)||l;a+=f}const c=zl(s.maxFontSize,t)||t;let u;switch(n){case"middle":u=o/2-.15*c-a/2;break;case"bottom":u=-(.25*c)-a;break;case"top":default:u=.8*o;break}return u}function T1(n,e,t={}){e=S4(e);const r=t.eol;let i=t.textPath;const s=t.textVerticalAnchor,o=s==="middle"||s==="bottom"||s==="top";let a=t.x;a===void 0&&(a=n.getAttribute("x")||0);const l=t.includeAnnotationIndices;let c=t.annotations;c&&!Array.isArray(c)&&(c=[c]);const u=t.lineHeight,h=u==="auto",f=h?"1.5em":u||"1em";let d=!0;const g=n.childNodes;if(g.length===1){const A=g[0];A&&A.tagName.toUpperCase()==="TITLE"&&(d=!1)}d&&ko(n),fe(n,{"xml:space":"preserve",display:e||t.displayEmpty?null:"none"});const p=fe(n,"font-size");let b=parseFloat(p);b||(b=16,(o||c)&&!p&&fe(n,"font-size",`${b}`));let m;i?(typeof i=="string"&&(i={d:i}),m=I4(i,n)):m=document.createDocumentFragment();let v,y=0,w;const x=e.split(`
2
11
  `),C=[],S=x.length-1;for(let A=0;A<=S;A+=1){v=f;let M="v-line";const O=er("tspan");let $,V=x[A];if(V)if(c){const X=C4(V,c,{offset:-y,includeAnnotationIndices:l});$=L4(O,X,{eol:A!==S&&r,baseSize:b,lineHeight:h?null:f,includeAnnotationIndices:l});const T=$.lineHeight;T&&h&&A!==0&&(v=T),A===0&&(w=$.maxFontSize*.8)}else r&&A!==S&&(V+=r),O.textContent=V;else{O.textContent="-",M+=" v-empty-line";const X=O.style;X.fillOpacity=0,X.strokeOpacity=0,c&&($={})}$&&C.push($),A>0&&O.setAttribute("dy",v),(A>0||i)&&O.setAttribute("x",a),O.className.baseVal=M,m.appendChild(O),y+=V.length+1}if(o)if(c)v=R4(s,C,b,f);else if(s==="top")v="0.8em";else{let A;switch(S>0?(A=parseFloat(f)||1,A*=S,M1.test(f)||(A/=b)):A=0,s){case"middle":v=`${.3-A/2}em`;break;case"bottom":v=`${-A-.3}em`;break}}else s===0?v="0em":s?v=s:(v=0,n.getAttribute("y")==null&&n.setAttribute("y",`${w||"0.8em"}`));m.firstChild.setAttribute("dy",v),n.appendChild(m)}function Lo(n,e={}){if(!n)return{width:0};const t=[],r=e["font-size"]?`${parseFloat(e["font-size"])}px`:"14px";return t.push(e["font-style"]||"normal"),t.push(e["font-variant"]||"normal"),t.push(e["font-weight"]||400),t.push(r),t.push(e["font-family"]||"sans-serif"),O1.font=t.join(" "),O1.measureText(n)}function _1(n,e,t,r={}){if(e>=t)return[n,""];const i=n.length,s={};let o=Math.round(e/t*i-1);for(o<0&&(o=0);o>=0&&o<i;){const a=n.slice(0,o),l=s[a]||Lo(a,r).width,c=n.slice(0,o+1),u=s[c]||Lo(c,r).width;if(s[a]=l,s[c]=u,l>e)o-=1;else if(u<=e)o+=1;else break}return[n.slice(0,o),n.slice(o)]}function N1(n,e,t={},r={}){const i=e.width,s=e.height,o=r.eol||`
3
12
  `,a=t.fontSize||14,l=t.lineHeight?parseFloat(t.lineHeight):Math.ceil(a*1.4),c=Math.floor(s/l);if(n.indexOf(o)>-1){const b=Il(),m=[];return n.split(o).map(v=>{const y=N1(v,Object.assign(Object.assign({},e),{height:Number.MAX_SAFE_INTEGER}),t,Object.assign(Object.assign({},r),{eol:b}));y&&m.push(...y.split(b))}),m.slice(0,c).join(o)}const{width:u}=Lo(n,t);if(u<i)return n;const h=[];let f=n,d=u,g=r.ellipsis,p=0;g&&(typeof g!="string"&&(g="…"),p=Lo(g,t).width);for(let b=0;b<c;b+=1)if(d>i)if(b===c-1){const[v]=_1(f,i-p,d,t);h.push(g?`${v}${g}`:v)}else{const[v,y]=_1(f,i,d,t);h.push(v),f=y,d=Lo(f,t).width}else{h.push(f);break}return h.join(o)}const ef=.551784;function mt(n,e,t=NaN){const r=n.getAttribute(e);if(r==null)return t;const i=parseFloat(r);return Number.isNaN(i)?t:i}function j4(n,e=1){const t=n.getTotalLength(),r=[];let i=0,s;for(;i<t;)s=n.getPointAtLength(i),r.push({distance:i,x:s.x,y:s.y}),i+=e;return r}function D4(n){return["M",mt(n,"x1"),mt(n,"y1"),"L",mt(n,"x2"),mt(n,"y2")].join(" ")}function B4(n){const e=Fl(n);return e.length===0?null:`${k1(e)} Z`}function z4(n){const e=Fl(n);return e.length===0?null:k1(e)}function k1(n){return`M ${n.map(t=>`${t.x} ${t.y}`).join(" L")}`}function Fl(n){const e=[],t=n.points;if(t)for(let r=0,i=t.numberOfItems;r<i;r+=1)e.push(t.getItem(r));return e}function F4(n){const e=mt(n,"cx",0),t=mt(n,"cy",0),r=mt(n,"r"),i=r*ef;return["M",e,t-r,"C",e+i,t-r,e+r,t-i,e+r,t,"C",e+r,t+i,e+i,t+r,e,t+r,"C",e-i,t+r,e-r,t+i,e-r,t,"C",e-r,t-i,e-i,t-r,e,t-r,"Z"].join(" ")}function V4(n){const e=mt(n,"cx",0),t=mt(n,"cy",0),r=mt(n,"rx"),i=mt(n,"ry")||r,s=r*ef,o=i*ef;return["M",e,t-i,"C",e+s,t-i,e+r,t-o,e+r,t,"C",e+r,t+o,e+s,t+i,e,t+i,"C",e-s,t+i,e-r,t+o,e-r,t,"C",e-r,t-o,e-s,t-i,e,t-i,"Z"].join(" ")}function q4(n){return $1({x:mt(n,"x",0),y:mt(n,"y",0),width:mt(n,"width",0),height:mt(n,"height",0),rx:mt(n,"rx",0),ry:mt(n,"ry",0)})}function $1(n){let e;const t=n.x,r=n.y,i=n.width,s=n.height,o=Math.min(n.rx||n["top-rx"]||0,i/2),a=Math.min(n.rx||n["bottom-rx"]||0,i/2),l=Math.min(n.ry||n["top-ry"]||0,s/2),c=Math.min(n.ry||n["bottom-ry"]||0,s/2);return o||a||l||c?e=["M",t,r+l,"v",s-l-c,"a",a,c,0,0,0,a,c,"h",i-2*a,"a",a,c,0,0,0,a,-c,"v",-(s-c-l),"a",o,l,0,0,0,-o,-l,"h",-(i-2*o),"a",o,l,0,0,0,-o,l,"Z"]:e=["M",t,r,"H",t+i,"V",r+s,"H",t,"V",r,"Z"],e.join(" ")}function G4(n){const e=er("path");fe(e,fe(n));const t=I1(n);return t&&e.setAttribute("d",t),e}function I1(n){const e=n.tagName.toLowerCase();switch(e){case"path":return n.getAttribute("d");case"line":return D4(n);case"polygon":return B4(n);case"polyline":return z4(n);case"ellipse":return V4(n);case"circle":return F4(n);case"rect":return q4(n)}throw new Error(`"${e}" cannot be converted to svg path element.`)}const Vl=er("svg"),H4=/(\w+)\(([^,)]+),?([^)]+)?\)/gi,L1=/[ ,]+/,U4=/^(\w+)\((.*)\)/;function W4(n,e){const t=Vl.createSVGPoint();return t.x=n,t.y=e,t}function ct(n){const e=Vl.createSVGMatrix();if(n!=null){const t=n,r=e;for(const i in t)r[i]=t[i]}return e}function Ro(n){return n!=null?(n instanceof DOMMatrix||(n=ct(n)),Vl.createSVGTransformFromMatrix(n)):Vl.createSVGTransform()}function jo(n){let e=ct();const t=n!=null&&n.match(H4);if(!t)return e;for(let r=0,i=t.length;r<i;r+=1){const o=t[r].match(U4);if(o){let a,l,c,u,h,f=ct();const d=o[2].split(L1);switch(o[1].toLowerCase()){case"scale":a=parseFloat(d[0]),l=d[1]===void 0?a:parseFloat(d[1]),f=f.scaleNonUniform(a,l);break;case"translate":c=parseFloat(d[0]),u=parseFloat(d[1]),f=f.translate(c,u);break;case"rotate":h=parseFloat(d[0]),c=parseFloat(d[1])||0,u=parseFloat(d[2])||0,c!==0||u!==0?f=f.translate(c,u).rotate(h).translate(-c,-u):f=f.rotate(h);break;case"skewx":h=parseFloat(d[0]),f=f.skewX(h);break;case"skewy":h=parseFloat(d[0]),f=f.skewY(h);break;case"matrix":f.a=parseFloat(d[0]),f.b=parseFloat(d[1]),f.c=parseFloat(d[2]),f.d=parseFloat(d[3]),f.e=parseFloat(d[4]),f.f=parseFloat(d[5]);break;default:continue}e=e.multiply(f)}}return e}function ms(n){const e=n||{},t=e.a!=null?e.a:1,r=e.b!=null?e.b:0,i=e.c!=null?e.c:0,s=e.d!=null?e.d:1,o=e.e!=null?e.e:0,a=e.f!=null?e.f:0;return`matrix(${t},${r},${i},${s},${o},${a})`}function ql(n){let e,t,r;if(n){const s=L1;if(n.trim().indexOf("matrix")>=0){const o=jo(n),a=X4(o);e=[a.translateX,a.translateY],t=[a.rotation],r=[a.scaleX,a.scaleY];const l=[];(e[0]!==0||e[1]!==0)&&l.push(`translate(${e.join(",")})`),(r[0]!==1||r[1]!==1)&&l.push(`scale(${r.join(",")})`),t[0]!==0&&l.push(`rotate(${t[0]})`),n=l.join(" ")}else{const o=n.match(/translate\((.*?)\)/);o&&(e=o[1].split(s));const a=n.match(/rotate\((.*?)\)/);a&&(t=a[1].split(s));const l=n.match(/scale\((.*?)\)/);l&&(r=l[1].split(s))}}const i=r&&r[0]?parseFloat(r[0]):1;return{raw:n||"",translation:{tx:e&&e[0]?parseInt(e[0],10):0,ty:e&&e[1]?parseInt(e[1],10):0},rotation:{angle:t&&t[0]?parseInt(t[0],10):0,cx:t&&t[1]?parseInt(t[1],10):void 0,cy:t&&t[2]?parseInt(t[2],10):void 0},scale:{sx:i,sy:r&&r[1]?parseFloat(r[1]):i}}}function tf(n,e){const t=e.x*n.a+e.y*n.c+0,r=e.x*n.b+e.y*n.d+0;return{x:t,y:r}}function X4(n){const e=tf(n,{x:0,y:1}),t=tf(n,{x:1,y:0}),r=180/Math.PI*Math.atan2(e.y,e.x)-90,i=180/Math.PI*Math.atan2(t.y,t.x);return{skewX:r,skewY:i,translateX:n.e,translateY:n.f,scaleX:Math.sqrt(n.a*n.a+n.b*n.b),scaleY:Math.sqrt(n.c*n.c+n.d*n.d),rotation:r}}function Y4(n){let e,t,r,i;return n?(e=n.a==null?1:n.a,i=n.d==null?1:n.d,t=n.b,r=n.c):e=i=1,{sx:t?Math.sqrt(e*e+t*t):e,sy:r?Math.sqrt(r*r+i*i):i}}function K4(n){let e={x:0,y:1};n&&(e=tf(n,e));const t=180*Math.atan2(e.y,e.x)/Math.PI%360-90;return{angle:t%360+(t<0?360:0)}}function J4(n){return{tx:n&&n.e||0,ty:n&&n.f||0}}function ys(n,e,t={}){if(e==null)return jo(fe(n,"transform"));if(t.absolute){n.setAttribute("transform",ms(e));return}const r=n.transform,i=Ro(e);r.baseVal.appendItem(i)}function R1(n,e,t=0,r={}){let i=fe(n,"transform");const s=ql(i);if(e==null)return s.translation;i=s.raw,i=i.replace(/translate\([^)]*\)/g,"").trim();const o=r.absolute?e:s.translation.tx+e,a=r.absolute?t:s.translation.ty+t,l=`translate(${o},${a})`;n.setAttribute("transform",`${l} ${i}`.trim())}function nf(n,e,t,r,i={}){let s=fe(n,"transform");const o=ql(s);if(e==null)return o.rotation;s=o.raw,s=s.replace(/rotate\([^)]*\)/g,"").trim(),e%=360;const a=i.absolute?e:o.rotation.angle+e,l=t!=null&&r!=null?`,${t},${r}`:"",c=`rotate(${a}${l})`;n.setAttribute("transform",`${s} ${c}`.trim())}function rf(n,e,t){let r=fe(n,"transform");const i=ql(r);if(e==null)return i.scale;t=t==null?e:t,r=i.raw,r=r.replace(/scale\([^)]*\)/g,"").trim();const s=`scale(${e},${t})`;n.setAttribute("transform",`${r} ${s}`.trim())}function Do(n,e){if(Or(e)&&Or(n)){const t=e.getScreenCTM(),r=n.getScreenCTM();if(t&&r)return t.inverse().multiply(r)}return ct()}function Q4(n,e){let t=ct();if(Or(e)&&Or(n)){let r=n;const i=[];for(;r&&r!==e;){const s=r.getAttribute("transform")||null,o=jo(s);i.push(o),r=r.parentNode}i.reverse().forEach(s=>{t=t.multiply(s)})}return t}function Z4(n,e,t){const r=n instanceof SVGSVGElement?n:n.ownerSVGElement,i=r.createSVGPoint();i.x=e,i.y=t;try{const s=r.getScreenCTM(),o=i.matrixTransform(s.inverse()),a=Do(n,r).inverse();return o.matrixTransform(a)}catch(s){return i}}var rn;(function(n){const e={};function t(s){return e[s]||{}}n.get=t;function r(s,o){e[s]=o}n.register=r;function i(s){delete e[s]}n.unregister=i})(rn||(rn={}));var Si;(function(n){const e=new WeakMap;function t(s){return e.has(s)||e.set(s,{events:Object.create(null)}),e.get(s)}n.ensure=t;function r(s){return e.get(s)}n.get=r;function i(s){return e.delete(s)}n.remove=i})(Si||(Si={}));var ie;(function(n){n.returnTrue=()=>!0,n.returnFalse=()=>!1;function e(i){i.stopPropagation()}n.stopPropagationCallback=e;function t(i,s,o){i.addEventListener!=null&&i.addEventListener(s,o)}n.addEventListener=t;function r(i,s,o){i.removeEventListener!=null&&i.removeEventListener(s,o)}n.removeEventListener=r})(ie||(ie={})),function(n){const e=/[^\x20\t\r\n\f]+/g,t=/^([^.]*)(?:\.(.+)|)/;function r(a){return(a||"").match(e)||[""]}n.splitType=r;function i(a){const l=t.exec(a)||[];return{originType:l[1]?l[1].trim():l[1],namespaces:l[2]?l[2].split(".").map(c=>c.trim()).sort():[]}}n.normalizeType=i;function s(a){return a.nodeType===1||a.nodeType===9||!+a.nodeType}n.isValidTarget=s;function o(a,l){if(l){const c=a;return c.querySelector!=null&&c.querySelector(l)!=null}return!0}n.isValidSelector=o}(ie||(ie={})),function(n){let e=0;const t=new WeakMap;function r(a){return t.has(a)||(t.set(a,e),e+=1),t.get(a)}n.ensureHandlerId=r;function i(a){return t.get(a)}n.getHandlerId=i;function s(a){return t.delete(a)}n.removeHandlerId=s;function o(a,l){return t.set(a,l)}n.setHandlerId=o}(ie||(ie={})),function(n){function e(t,r){const i=[],s=Si.get(t),o=s&&s.events&&s.events[r.type],a=o&&o.handlers||[],l=o?o.delegateCount:0;if(l>0&&!(r.type==="click"&&typeof r.button=="number"&&r.button>=1)){for(let c=r.target;c!==t;c=c.parentNode||t)if(c.nodeType===1&&!(r.type==="click"&&c.disabled===!0)){const u=[],h={};for(let f=0;f<l;f+=1){const d=a[f],g=d.selector;if(g!=null&&h[g]==null){const p=t,b=[];p.querySelectorAll(g).forEach(m=>{b.push(m)}),h[g]=b.includes(c)}h[g]&&u.push(d)}u.length&&i.push({elem:c,handlers:u})}}return l<a.length&&i.push({elem:t,handlers:a.slice(l)}),i}n.getHandlerQueue=e}(ie||(ie={})),function(n){function e(t){return t!=null&&t===t.window}n.isWindow=e}(ie||(ie={})),function(n){function e(t,r){const i=t.nodeType===9?t.documentElement:t,s=r&&r.parentNode;return t===s||!!(s&&s.nodeType===1&&(i.contains?i.contains(s):t.compareDocumentPosition&&t.compareDocumentPosition(s)&16))}n.contains=e}(ie||(ie={}));class zn{constructor(e,t){this.isDefaultPrevented=ie.returnFalse,this.isPropagationStopped=ie.returnFalse,this.isImmediatePropagationStopped=ie.returnFalse,this.isSimulated=!1,this.preventDefault=()=>{const r=this.originalEvent;this.isDefaultPrevented=ie.returnTrue,r&&!this.isSimulated&&r.preventDefault()},this.stopPropagation=()=>{const r=this.originalEvent;this.isPropagationStopped=ie.returnTrue,r&&!this.isSimulated&&r.stopPropagation()},this.stopImmediatePropagation=()=>{const r=this.originalEvent;this.isImmediatePropagationStopped=ie.returnTrue,r&&!this.isSimulated&&r.stopImmediatePropagation(),this.stopPropagation()},typeof e=="string"?this.type=e:e.type&&(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?ie.returnTrue:ie.returnFalse,this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget,this.timeStamp=e.timeStamp),t&&Object.assign(this,t),this.timeStamp||(this.timeStamp=Date.now())}}(function(n){function e(t){return t instanceof n?t:new n(t)}n.create=e})(zn||(zn={})),function(n){function e(t,r){Object.defineProperty(n.prototype,t,{enumerable:!0,configurable:!0,get:typeof r=="function"?function(){if(this.originalEvent)return r(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set(i){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:i})}})}n.addProperty=e}(zn||(zn={})),function(n){const e={bubbles:!0,cancelable:!0,eventPhase:!0,detail:!0,view:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pageX:!0,pageY:!0,screenX:!0,screenY:!0,toElement:!0,pointerId:!0,pointerType:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,touches:!0,changedTouches:!0,targetTouches:!0,which:!0,altKey:!0,ctrlKey:!0,metaKey:!0,shiftKey:!0};Object.keys(e).forEach(t=>n.addProperty(t,e[t]))}(zn||(zn={})),function(n){rn.register("load",{noBubble:!0})}(),function(n){rn.register("beforeunload",{postDispatch(e,t){t.result!==void 0&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}})}(),function(n){rn.register("mouseenter",{delegateType:"mouseover",bindType:"mouseover",handle(e,t){let r;const i=t.relatedTarget,s=t.handleObj;return(!i||i!==e&&!ie.contains(e,i))&&(t.type=s.originType,r=s.handler.call(e,t),t.type="mouseover"),r}}),rn.register("mouseleave",{delegateType:"mouseout",bindType:"mouseout",handle(e,t){let r;const i=t.relatedTarget,s=t.handleObj;return(!i||i!==e&&!ie.contains(e,i))&&(t.type=s.originType,r=s.handler.call(e,t),t.type="mouseout"),r}})}();var eq=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(t[r[i]]=n[r[i]]);return t},Bo;(function(n){let e;function t(o,a,l,c,u){if(!ie.isValidTarget(o))return;let h;if(typeof l!="function"){const{handler:p,selector:b}=l,m=eq(l,["handler","selector"]);l=p,u=b,h=m}const f=Si.ensure(o);let d=f.handler;d==null&&(d=f.handler=function(p,...b){return e!==p.type?i(o,p,...b):void 0});const g=ie.ensureHandlerId(l);ie.splitType(a).forEach(p=>{const{originType:b,namespaces:m}=ie.normalizeType(p);if(!b)return;let v=b,y=rn.get(v);v=(u?y.delegateType:y.bindType)||v,y=rn.get(v);const w=Object.assign({type:v,originType:b,data:c,selector:u,guid:g,handler:l,namespace:m.join(".")},h),x=f.events;let C=x[v];C||(C=x[v]={handlers:[],delegateCount:0},(!y.setup||y.setup(o,c,m,d)===!1)&&ie.addEventListener(o,v,d)),y.add&&(ie.removeHandlerId(w.handler),y.add(o,w),ie.setHandlerId(w.handler,g)),u?(C.handlers.splice(C.delegateCount,0,w),C.delegateCount+=1):C.handlers.push(w)})}n.on=t;function r(o,a,l,c,u){const h=Si.get(o);if(!h)return;const f=h.events;f&&(ie.splitType(a).forEach(d=>{const{originType:g,namespaces:p}=ie.normalizeType(d);if(!g){Object.keys(f).forEach(x=>{r(o,x+d,l,c,!0)});return}let b=g;const m=rn.get(b);b=(c?m.delegateType:m.bindType)||b;const v=f[b];if(!v)return;const y=p.length>0?new RegExp(`(^|\\.)${p.join("\\.(?:.*\\.|)")}(\\.|$)`):null,w=v.handlers.length;for(let x=v.handlers.length-1;x>=0;x-=1){const C=v.handlers[x];(u||g===C.originType)&&(!l||ie.getHandlerId(l)===C.guid)&&(y==null||C.namespace&&y.test(C.namespace))&&(c==null||c===C.selector||c==="**"&&C.selector)&&(v.handlers.splice(x,1),C.selector&&(v.delegateCount-=1),m.remove&&m.remove(o,C))}w&&v.handlers.length===0&&((!m.teardown||m.teardown(o,p,h.handler)===!1)&&ie.removeEventListener(o,b,h.handler),delete f[b])}),Object.keys(f).length===0&&Si.remove(o))}n.off=r;function i(o,a,...l){const c=zn.create(a);c.delegateTarget=o;const u=rn.get(c.type);if(u.preDispatch&&u.preDispatch(o,c)===!1)return;const h=ie.getHandlerQueue(o,c);for(let f=0,d=h.length;f<d&&!c.isPropagationStopped();f+=1){const g=h[f];c.currentTarget=g.elem;for(let p=0,b=g.handlers.length;p<b&&!c.isImmediatePropagationStopped();p+=1){const m=g.handlers[p];if(c.rnamespace==null||m.namespace&&c.rnamespace.test(m.namespace)){c.handleObj=m,c.data=m.data;const v=rn.get(m.originType).handle,y=v?v(g.elem,c,...l):m.handler.call(g.elem,c,...l);y!==void 0&&(c.result=y,y===!1&&(c.preventDefault(),c.stopPropagation()))}}}return u.postDispatch&&u.postDispatch(o,c),c.result}n.dispatch=i;function s(o,a,l,c){let u=o,h=typeof o=="string"?o:o.type,f=typeof o=="string"||u.namespace==null?[]:u.namespace.split(".");const d=l;if(d.nodeType===3||d.nodeType===8)return;h.indexOf(".")>-1&&(f=h.split("."),h=f.shift(),f.sort());const g=h.indexOf(":")<0&&`on${h}`;u=o instanceof zn?o:new zn(h,typeof o=="object"?o:null),u.namespace=f.join("."),u.rnamespace=u.namespace?new RegExp(`(^|\\.)${f.join("\\.(?:.*\\.|)")}(\\.|$)`):null,u.result=void 0,u.target||(u.target=d);const p=[u];Array.isArray(a)?p.push(...a):p.push(a);const b=rn.get(h);if(!c&&b.trigger&&b.trigger(d,u,a)===!1)return;let m;const v=[d];if(!c&&!b.noBubble&&!ie.isWindow(d)){m=b.delegateType||h;let w=d,x=d.parentNode;for(;x!=null;)v.push(x),w=x,x=x.parentNode;const C=d.ownerDocument||document;if(w===C){const S=w.defaultView||w.parentWindow||window;v.push(S)}}let y=d;for(let w=0,x=v.length;w<x&&!u.isPropagationStopped();w+=1){const C=v[w];y=C,u.type=w>1?m:b.bindType||h;const S=Si.get(C);S&&S.events[u.type]&&S.handler&&S.handler.call(C,...p);const E=g&&C[g]||null;E&&ie.isValidTarget(C)&&(u.result=E.call(C,...p),u.result===!1&&u.preventDefault())}if(u.type=h,!c&&!u.isDefaultPrevented()){const w=b.preventDefault;if((w==null||w(v.pop(),u,a)===!1)&&ie.isValidTarget(d)&&g&&typeof d[h]=="function"&&!ie.isWindow(d)){const x=d[g];x&&(d[g]=null),e=h,u.isPropagationStopped()&&y.addEventListener(h,ie.stopPropagationCallback),d[h](),u.isPropagationStopped()&&y.removeEventListener(h,ie.stopPropagationCallback),e=void 0,x&&(d[g]=x)}}return u.result}n.trigger=s})(Bo||(Bo={}));var Se;(function(n){function e(s,o,a,l,c){return zo.on(s,o,a,l,c),s}n.on=e;function t(s,o,a,l,c){return zo.on(s,o,a,l,c,!0),s}n.once=t;function r(s,o,a,l){return zo.off(s,o,a,l),s}n.off=r;function i(s,o,a,l){return Bo.trigger(o,a,s,l),s}n.trigger=i})(Se||(Se={}));var zo;(function(n){function e(r,i,s,o,a,l){if(typeof i=="object"){typeof s!="string"&&(o=o||s,s=void 0),Object.keys(i).forEach(c=>e(r,c,s,o,i[c],l));return}if(o==null&&a==null?(a=s,o=s=void 0):a==null&&(typeof s=="string"?(a=o,o=void 0):(a=o,o=s,s=void 0)),a===!1)a=ie.returnFalse;else if(!a)return;if(l){const c=a;a=function(u,...h){return n.off(r,u),c.call(this,u,...h)},ie.setHandlerId(a,ie.ensureHandlerId(c))}Bo.on(r,i,a,o,s)}n.on=e;function t(r,i,s,o){const a=i;if(a&&a.preventDefault!=null&&a.handleObj!=null){const l=a.handleObj;t(a.delegateTarget,l.namespace?`${l.originType}.${l.namespace}`:l.originType,l.selector,l.handler);return}if(typeof i=="object"){const l=i;Object.keys(l).forEach(c=>t(r,c,s,l[c]));return}(s===!1||typeof s=="function")&&(o=s,s=void 0),o===!1&&(o=ie.returnFalse),Bo.off(r,i,o,s)}n.off=t})(zo||(zo={}));class j1{constructor(e,t,r){this.animationFrameId=0,this.deltaX=0,this.deltaY=0,this.eventName=nn.isEventSupported("wheel")?"wheel":"mousewheel",this.target=e,this.onWheelCallback=t,this.onWheelGuard=r,this.onWheel=this.onWheel.bind(this),this.didWheel=this.didWheel.bind(this)}enable(){this.target.addEventListener(this.eventName,this.onWheel,{passive:!1})}disable(){this.target.removeEventListener(this.eventName,this.onWheel)}onWheel(e){if(this.onWheelGuard!=null&&!this.onWheelGuard(e))return;this.deltaX+=e.deltaX,this.deltaY+=e.deltaY,e.preventDefault();let t;(this.deltaX!==0||this.deltaY!==0)&&(e.stopPropagation(),t=!0),t===!0&&this.animationFrameId===0&&(this.animationFrameId=requestAnimationFrame(()=>{this.didWheel(e)}))}didWheel(e){this.animationFrameId=0,this.onWheelCallback(e,this.deltaX,this.deltaY),this.deltaX=0,this.deltaY=0}}function Fo(n){const e=n.getBoundingClientRect(),t=n.ownerDocument.defaultView;return{top:e.top+t.pageYOffset,left:e.left+t.pageXOffset}}function tq(n){return n.getBoundingClientRect().width}function nq(n){return n.getBoundingClientRect().height}function rq(n){const e=jl(n,"position")==="fixed";let t;if(e){const r=n.getBoundingClientRect();t={left:r.left,top:r.top}}else t=Fo(n);if(!e){const r=n.ownerDocument;let i=n.offsetParent||r.documentElement;for(;(i===r.body||i===r.documentElement)&&jl(i,"position")==="static";)i=i.parentNode;if(i!==n&&b4(i)){const s=Fo(i);t.top-=s.top+Dl(i,"borderTopWidth"),t.left-=s.left+Dl(i,"borderLeftWidth")}}return{top:t.top-Dl(n,"marginTop"),left:t.left-Dl(n,"marginLeft")}}function D1(n,e=60){let t=null;return(...r)=>{t&&clearTimeout(t),t=window.setTimeout(()=>{n.apply(this,r)},e)}}function iq(n){let e=null,t=[];const r=()=>{if(getComputedStyle(n).position==="static"){const c=n.style;c.position="relative"}const l=document.createElement("object");return l.onload=()=>{l.contentDocument.defaultView.addEventListener("resize",i),i()},l.style.display="block",l.style.position="absolute",l.style.top="0",l.style.left="0",l.style.height="100%",l.style.width="100%",l.style.overflow="hidden",l.style.pointerEvents="none",l.style.zIndex="-1",l.style.opacity="0",l.setAttribute("tabindex","-1"),l.type="text/html",n.appendChild(l),l.data="about:blank",l},i=D1(()=>{t.forEach(l=>l(n))}),s=l=>{e||(e=r()),t.indexOf(l)===-1&&t.push(l)},o=()=>{e&&e.parentNode&&(e.contentDocument&&e.contentDocument.defaultView.removeEventListener("resize",i),e.parentNode.removeChild(e),e=null,t=[])};return{element:n,bind:s,destroy:o,unbind:l=>{const c=t.indexOf(l);c!==-1&&t.splice(c,1),t.length===0&&e&&o()}}}function sq(n){let e=null,t=[];const r=D1(()=>{t.forEach(l=>{l(n)})}),i=()=>{const l=new ResizeObserver(r);return l.observe(n),r(),l},s=l=>{e||(e=i()),t.indexOf(l)===-1&&t.push(l)},o=()=>{e&&(e.disconnect(),t=[],e=null)};return{element:n,bind:s,destroy:o,unbind:l=>{const c=t.indexOf(l);c!==-1&&t.splice(c,1),t.length===0&&e&&o()}}}const oq=typeof ResizeObserver!="undefined"?sq:iq;var Gl;(function(n){const e=new WeakMap;function t(i){let s=e.get(i);return s||(s=oq(i),e.set(i,s),s)}function r(i){i.destroy(),e.delete(i.element)}n.bind=(i,s)=>{const o=t(i);return o.bind(s),()=>o.unbind(s)},n.clear=i=>{const s=t(i);r(s)}})(Gl||(Gl={}));class Vo{constructor(e={}){this.comparator=e.comparator||Vo.defaultComparator,this.index={},this.data=e.data||[],this.heapify()}isEmpty(){return this.data.length===0}insert(e,t,r){const i={priority:e,value:t},s=this.data.length;return r&&(i.id=r,this.index[r]=s),this.data.push(i),this.bubbleUp(s),this}peek(){return this.data[0]?this.data[0].value:null}peekPriority(){return this.data[0]?this.data[0].priority:null}updatePriority(e,t){const r=this.index[e];if(typeof r=="undefined")throw new Error(`Node with id '${e}' was not found in the heap.`);const i=this.data,s=i[r].priority,o=this.comparator(t,s);o<0?(i[r].priority=t,this.bubbleUp(r)):o>0&&(i[r].priority=t,this.bubbleDown(r))}remove(){const e=this.data,t=e[0],r=e.pop();return t.id&&delete this.index[t.id],e.length>0&&(e[0]=r,r.id&&(this.index[r.id]=0),this.bubbleDown(0)),t?t.value:null}heapify(){for(let e=0;e<this.data.length;e+=1)this.bubbleUp(e)}bubbleUp(e){const t=this.data;let r,i,s=e;for(;s>0&&(i=s-1>>>1,this.comparator(t[s].priority,t[i].priority)<0);){r=t[i],t[i]=t[s];let o=t[s].id;o!=null&&(this.index[o]=i),t[s]=r,o=t[s].id,o!=null&&(this.index[o]=s),s=i}}bubbleDown(e){const t=this.data,r=t.length-1;let i=e;for(;;){const s=(i<<1)+1,o=s+1;let a=i;if(s<=r&&this.comparator(t[s].priority,t[a].priority)<0&&(a=s),o<=r&&this.comparator(t[o].priority,t[a].priority)<0&&(a=o),a!==i){const l=t[a];t[a]=t[i];let c=t[i].id;c!=null&&(this.index[c]=a),t[i]=l,c=t[i].id,c!=null&&(this.index[c]=i),i=a}else break}}}(function(n){n.defaultComparator=(e,t)=>e-t})(Vo||(Vo={}));var sf;(function(n){function e(t,r,i=(s,o)=>1){const s={},o={},a={},l=new Vo;for(s[r]=0,Object.keys(t).forEach(c=>{c!==r&&(s[c]=1/0),l.insert(s[c],c,c)});!l.isEmpty();){const c=l.remove();a[c]=!0;const u=t[c]||[];for(let h=0;h<u.length;h+=1){const f=u[h];if(!a[f]){const d=s[c]+i(c,f);d<s[f]&&(s[f]=d,o[f]=c,l.updatePriority(f,d))}}}return o}n.run=e})(sf||(sf={}));class nr{constructor(e,t,r,i){if(e==null)return this.set(255,255,255,1);if(typeof e=="number")return this.set(e,t,r,i);if(typeof e=="string")return nr.fromString(e)||this;if(Array.isArray(e))return this.set(e);this.set(e.r,e.g,e.b,e.a==null?1:e.a)}blend(e,t,r){this.set(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r,e.a+(t.a-e.a)*r)}lighten(e){const t=nr.lighten(this.toArray(),e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}darken(e){this.lighten(-e)}set(e,t,r,i){const s=Array.isArray(e)?e[0]:e,o=Array.isArray(e)?e[1]:t,a=Array.isArray(e)?e[2]:r,l=Array.isArray(e)?e[3]:i;return this.r=Math.round(tn(s,0,255)),this.g=Math.round(tn(o,0,255)),this.b=Math.round(tn(a,0,255)),this.a=l==null?1:tn(l,0,1),this}toHex(){return`#${["r","g","b"].map(t=>{const r=this[t].toString(16);return r.length<2?`0${r}`:r}).join("")}`}toRGBA(){return this.toArray()}toHSLA(){return nr.rgba2hsla(this.r,this.g,this.b,this.a)}toCSS(e){const t=`${this.r},${this.g},${this.b},`;return e?`rgb(${t})`:`rgba(${t},${this.a})`}toGrey(){return nr.makeGrey(Math.round((this.r+this.g+this.b)/3),this.a)}toArray(){return[this.r,this.g,this.b,this.a]}toString(){return this.toCSS()}}(function(n){function e(y){return new n(y)}n.fromArray=e;function t(y){return new n([...g(y),1])}n.fromHex=t;function r(y){const w=y.toLowerCase().match(/^rgba?\(([\s.,0-9]+)\)/);if(w){const x=w[1].split(/\s*,\s*/).map(C=>parseInt(C,10));return new n(x)}return null}n.fromRGBA=r;function i(y,w,x){x<0&&++x,x>1&&--x;const C=6*x;return C<1?y+(w-y)*C:2*x<1?w:3*x<2?y+(w-y)*(2/3-x)*6:y}function s(y){const w=y.toLowerCase().match(/^hsla?\(([\s.,0-9]+)\)/);if(w){const x=w[2].split(/\s*,\s*/),C=(parseFloat(x[0])%360+360)%360/360,S=parseFloat(x[1])/100,E=parseFloat(x[2])/100,A=x[3]==null?1:parseInt(x[3],10);return new n(c(C,S,E,A))}return null}n.fromHSLA=s;function o(y){if(y.startsWith("#"))return t(y);if(y.startsWith("rgb"))return r(y);const w=n.named[y];return w?t(w):s(y)}n.fromString=o;function a(y,w){return n.fromArray([y,y,y,w])}n.makeGrey=a;function l(y,w,x,C){const S=Array.isArray(y)?y[0]:y,E=Array.isArray(y)?y[1]:w,A=Array.isArray(y)?y[2]:x,M=Array.isArray(y)?y[3]:C,O=Math.max(S,E,A),$=Math.min(S,E,A),V=(O+$)/2;let X=0,T=0;if($!==O){const k=O-$;switch(T=V>.5?k/(2-O-$):k/(O+$),O){case S:X=(E-A)/k+(E<A?6:0);break;case E:X=(A-S)/k+2;break;case A:X=(S-E)/k+4;break}X/=6}return[X,T,V,M==null?1:M]}n.rgba2hsla=l;function c(y,w,x,C){const S=Array.isArray(y)?y[0]:y,E=Array.isArray(y)?y[1]:w,A=Array.isArray(y)?y[2]:x,M=Array.isArray(y)?y[3]:C,O=A<=.5?A*(E+1):A+E-A*E,$=2*A-O;return[i($,O,S+1/3)*256,i($,O,S)*256,i($,O,S-1/3)*256,M==null?1:M]}n.hsla2rgba=c;function u(y){return new n(Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),y?void 0:parseFloat(Math.random().toFixed(2)))}n.random=u;function h(){const y="0123456789ABCDEF";let w="#";for(let x=0;x<6;x+=1)w+=y[Math.floor(Math.random()*16)];return w}n.randomHex=h;function f(y){return u(y).toString()}n.randomRGBA=f;function d(y,w){if(typeof y=="string"){const A=y[0]==="#",[M,O,$]=g(y);return w?M*.299+O*.587+$*.114>186?"#000000":"#ffffff":`${A?"#":""}${p(255-M,255-O,255-$)}`}const x=y[0],C=y[1],S=y[2],E=y[3];return w?x*.299+C*.587+S*.114>186?[0,0,0,E]:[255,255,255,E]:[255-x,255-C,255-S,E]}n.invert=d;function g(y){const w=y.indexOf("#")===0?y:`#${y}`;let x=+`0x${w.substr(1)}`;if(!(w.length===4||w.length===7)||Number.isNaN(x))throw new Error("Invalid hex color.");const C=w.length===4?4:8,S=(1<<C)-1,E=["b","g","r"].map(()=>{const A=x&S;return x>>=C,C===4?17*A:A});return[E[2],E[1],E[0]]}function p(y,w,x){const C=S=>S.length<2?`0${S}`:S;return`${C(y.toString(16))}${C(w.toString(16))}${C(x.toString(16))}`}function b(y,w){return v(y,w)}n.lighten=b;function m(y,w){return v(y,-w)}n.darken=m;function v(y,w){if(typeof y=="string"){const S=y[0]==="#",E=parseInt(S?y.substr(1):y,16),A=tn((E>>16)+w,0,255),M=tn((E>>8&255)+w,0,255),O=tn((E&255)+w,0,255);return`${S?"#":""}${(O|M<<8|A<<16).toString(16)}`}const x=p(y[0],y[1],y[2]),C=g(v(x,w));return[C[0],C[1],C[2],y[3]]}})(nr||(nr={})),function(n){n.named={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",burntsienna:"#ea7e5d",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}}(nr||(nr={}));class of{constructor(){this.clear()}clear(){this.map=new WeakMap,this.arr=[]}has(e){return this.map.has(e)}get(e){return this.map.get(e)}set(e,t){this.map.set(e,t),this.arr.push(e)}delete(e){const t=this.arr.indexOf(e);t>=0&&this.arr.splice(t,1);const r=this.map.get(e);return this.map.delete(e),r}each(e){this.arr.forEach(t=>{const r=this.map.get(t);e(r,t)})}dispose(){this.clear()}}var rr;(function(n){function e(i){const s=[],o=[];return Array.isArray(i)?s.push(...i):i.split("|").forEach(a=>{a.indexOf("&")===-1?s.push(a):o.push(...a.split("&"))}),{or:s,and:o}}n.parse=e;function t(i,s){if(i!=null&&s!=null){const o=e(i),a=e(s),l=o.or.sort(),c=a.or.sort(),u=o.and.sort(),h=a.and.sort(),f=(d,g)=>d.length===g.length&&(d.length===0||d.every((p,b)=>p===g[b]));return f(l,c)&&f(u,h)}return i==null&&s==null}n.equals=t;function r(i,s,o){if(s==null||Array.isArray(s)&&s.length===0)return o?i.altKey!==!0&&i.ctrlKey!==!0&&i.metaKey!==!0&&i.shiftKey!==!0:!0;const{or:a,and:l}=e(s),c=u=>{const h=`${u.toLowerCase()}Key`;return i[h]===!0};return a.some(u=>c(u))&&l.every(u=>c(u))}n.isMatch=r})(rr||(rr={}));var Pi;(function(n){n.linear=e=>e,n.quad=e=>e*e,n.cubic=e=>e*e*e,n.inout=e=>{if(e<=0)return 0;if(e>=1)return 1;const t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)},n.exponential=e=>Math.pow(2,10*(e-1)),n.bounce=e=>{for(let t=0,r=1;;t+=r,r/=2)if(e>=(7-4*t)/11){const i=(11-6*t-11*e)/4;return-i*i+r*r}}})(Pi||(Pi={})),function(n){n.decorators={reverse(e){return t=>1-e(1-t)},reflect(e){return t=>.5*(t<.5?e(2*t):2-e(2-2*t))},clamp(e,t=0,r=1){return i=>{const s=e(i);return s<t?t:s>r?r:s}},back(e=1.70158){return t=>t*t*((e+1)*t-e)},elastic(e=1.5){return t=>Math.pow(2,10*(t-1))*Math.cos(20*Math.PI*e/3*t)}}}(Pi||(Pi={})),function(n){function e(T){return-1*Math.cos(T*(Math.PI/2))+1}n.easeInSine=e;function t(T){return Math.sin(T*(Math.PI/2))}n.easeOutSine=t;function r(T){return-.5*(Math.cos(Math.PI*T)-1)}n.easeInOutSine=r;function i(T){return T*T}n.easeInQuad=i;function s(T){return T*(2-T)}n.easeOutQuad=s;function o(T){return T<.5?2*T*T:-1+(4-2*T)*T}n.easeInOutQuad=o;function a(T){return T*T*T}n.easeInCubic=a;function l(T){const k=T-1;return k*k*k+1}n.easeOutCubic=l;function c(T){return T<.5?4*T*T*T:(T-1)*(2*T-2)*(2*T-2)+1}n.easeInOutCubic=c;function u(T){return T*T*T*T}n.easeInQuart=u;function h(T){const k=T-1;return 1-k*k*k*k}n.easeOutQuart=h;function f(T){const k=T-1;return T<.5?8*T*T*T*T:1-8*k*k*k*k}n.easeInOutQuart=f;function d(T){return T*T*T*T*T}n.easeInQuint=d;function g(T){const k=T-1;return 1+k*k*k*k*k}n.easeOutQuint=g;function p(T){const k=T-1;return T<.5?16*T*T*T*T*T:1+16*k*k*k*k*k}n.easeInOutQuint=p;function b(T){return T===0?0:Math.pow(2,10*(T-1))}n.easeInExpo=b;function m(T){return T===1?1:-Math.pow(2,-10*T)+1}n.easeOutExpo=m;function v(T){if(T===0||T===1)return T;const k=T*2,Q=k-1;return k<1?.5*Math.pow(2,10*Q):.5*(-Math.pow(2,-10*Q)+2)}n.easeInOutExpo=v;function y(T){const k=T/1;return-1*(Math.sqrt(1-k*T)-1)}n.easeInCirc=y;function w(T){const k=T-1;return Math.sqrt(1-k*k)}n.easeOutCirc=w;function x(T){const k=T*2,Q=k-2;return k<1?-.5*(Math.sqrt(1-k*k)-1):.5*(Math.sqrt(1-Q*Q)+1)}n.easeInOutCirc=x;function C(T,k=1.70158){return T*T*((k+1)*T-k)}n.easeInBack=C;function S(T,k=1.70158){const Q=T/1-1;return Q*Q*((k+1)*Q+k)+1}n.easeOutBack=S;function E(T,k=1.70158){const Q=T*2,R=Q-2,z=k*1.525;return Q<1?.5*Q*Q*((z+1)*Q-z):.5*(R*R*((z+1)*R+z)+2)}n.easeInOutBack=E;function A(T,k=.7){if(T===0||T===1)return T;const R=T/1-1,z=1-k,H=z/(2*Math.PI)*Math.asin(1);return-(Math.pow(2,10*R)*Math.sin((R-H)*(2*Math.PI)/z))}n.easeInElastic=A;function M(T,k=.7){const Q=1-k,R=T*2;if(T===0||T===1)return T;const z=Q/(2*Math.PI)*Math.asin(1);return Math.pow(2,-10*R)*Math.sin((R-z)*(2*Math.PI)/Q)+1}n.easeOutElastic=M;function O(T,k=.65){const Q=1-k;if(T===0||T===1)return T;const R=T*2,z=R-1,H=Q/(2*Math.PI)*Math.asin(1);return R<1?-.5*(Math.pow(2,10*z)*Math.sin((z-H)*(2*Math.PI)/Q)):Math.pow(2,-10*z)*Math.sin((z-H)*(2*Math.PI)/Q)*.5+1}n.easeInOutElastic=O;function $(T){const k=T/1;if(k<1/2.75)return 7.5625*k*k;if(k<2/2.75){const Q=k-.5454545454545454;return 7.5625*Q*Q+.75}if(k<2.5/2.75){const Q=k-.8181818181818182;return 7.5625*Q*Q+.9375}{const Q=k-.9545454545454546;return 7.5625*Q*Q+.984375}}n.easeOutBounce=$;function V(T){return 1-$(1-T)}n.easeInBounce=V;function X(T){return T<.5?V(T*2)*.5:$(T*2-1)*.5+.5}n.easeInOutBounce=X}(Pi||(Pi={}));var Ei;(function(n){n.number=(e,t)=>{const r=t-e;return i=>e+r*i},n.object=(e,t)=>{const r=Object.keys(e);return i=>{const s={};for(let o=r.length-1;o!==-1;o-=1){const a=r[o];s[a]=e[a]+(t[a]-e[a])*i}return s}},n.unit=(e,t)=>{const r=/(-?[0-9]*.[0-9]*)(px|em|cm|mm|in|pt|pc|%)/,i=r.exec(e),s=r.exec(t),o=s?s[1]:"",a=i?+i[1]:0,l=s?+s[1]:0,c=o.indexOf("."),u=c>0?o[1].length-c-1:0,h=l-a,f=i?i[2]:"";return d=>(a+h*d).toFixed(u)+f},n.color=(e,t)=>{const r=parseInt(e.slice(1),16),i=parseInt(t.slice(1),16),s=r&255,o=(i&255)-s,a=r&65280,l=(i&65280)-a,c=r&16711680,u=(i&16711680)-c;return h=>{const f=s+o*h&255,d=a+l*h&65280,g=c+u*h&16711680;return`#${(1<<24|f|d|g).toString(16).slice(1)}`}}})(Ei||(Ei={}));const qo=[];function Go(n,e){const t=qo.find(r=>r.name===n);if(!(t&&(t.loadTimes+=1,t.loadTimes>1))&&!nn.isApplyingHMR()){const r=document.createElement("style");r.setAttribute("type","text/css"),r.textContent=e;const i=document.querySelector("head");i&&i.insertBefore(r,i.firstChild),qo.push({name:n,loadTimes:1,styleElement:r})}}function Ho(n){const e=qo.findIndex(t=>t.name===n);if(e>-1){const t=qo[e];if(t.loadTimes-=1,t.loadTimes>0)return;let r=t.styleElement;r&&r.parentNode&&r.parentNode.removeChild(r),r=null,qo.splice(e,1)}}var ve;(function(n){function e(r){return 180*r/Math.PI%360}n.toDeg=e,n.toRad=function(r,i=!1){return(i?r:r%360)*Math.PI/180};function t(r){return r%360+(r<0?360:0)}n.normalize=t})(ve||(ve={}));var we;(function(n){function e(a,l=0){return Number.isInteger(a)?a:+a.toFixed(l)}n.round=e;function t(a,l){let c,u;if(l==null?(u=a==null?1:a,c=0):(u=l,c=a==null?0:a),u<c){const h=c;c=u,u=h}return Math.floor(Math.random()*(u-c+1)+c)}n.random=t;function r(a,l,c){return Number.isNaN(a)?NaN:Number.isNaN(l)||Number.isNaN(c)?0:l<c?a<l?l:a>c?c:a:a<c?c:a>l?l:a}n.clamp=r;function i(a,l){return l*Math.round(a/l)}n.snapToGrid=i;function s(a,l){return l!=null&&a!=null&&l.x>=a.x&&l.x<=a.x+a.width&&l.y>=a.y&&l.y<=a.y+a.height}n.containsPoint=s;function o(a,l){const c=a.x-l.x,u=a.y-l.y;return c*c+u*u}n.squaredLength=o})(we||(we={}));class Tr{valueOf(){return this.toJSON()}toString(){return JSON.stringify(this.toJSON())}}class P extends Tr{constructor(e,t){super(),this.x=e==null?0:e,this.y=t==null?0:t}round(e=0){return this.x=we.round(this.x,e),this.y=we.round(this.y,e),this}add(e,t){const r=P.create(e,t);return this.x+=r.x,this.y+=r.y,this}update(e,t){const r=P.create(e,t);return this.x=r.x,this.y=r.y,this}translate(e,t){const r=P.create(e,t);return this.x+=r.x,this.y+=r.y,this}rotate(e,t){const r=P.rotate(this,e,t);return this.x=r.x,this.y=r.y,this}scale(e,t,r=new P){const i=P.create(r);return this.x=i.x+e*(this.x-i.x),this.y=i.y+t*(this.y-i.y),this}closest(e){if(e.length===1)return P.create(e[0]);let t=null,r=1/0;return e.forEach(i=>{const s=this.squaredDistance(i);s<r&&(t=i,r=s)}),t?P.create(t):null}distance(e){return Math.sqrt(this.squaredDistance(e))}squaredDistance(e){const t=P.create(e),r=this.x-t.x,i=this.y-t.y;return r*r+i*i}manhattanDistance(e){const t=P.create(e);return Math.abs(t.x-this.x)+Math.abs(t.y-this.y)}magnitude(){return Math.sqrt(this.x*this.x+this.y*this.y)||.01}theta(e=new P){const t=P.create(e),r=-(t.y-this.y),i=t.x-this.x;let s=Math.atan2(r,i);return s<0&&(s=2*Math.PI+s),180*s/Math.PI}angleBetween(e,t){if(this.equals(e)||this.equals(t))return NaN;let r=this.theta(t)-this.theta(e);return r<0&&(r+=360),r}vectorAngle(e){return new P(0,0).angleBetween(this,e)}toPolar(e){return this.update(P.toPolar(this,e)),this}changeInAngle(e,t,r=new P){return this.clone().translate(-e,-t).theta(r)-this.theta(r)}adhereToRect(e){return we.containsPoint(e,this)||(this.x=Math.min(Math.max(this.x,e.x),e.x+e.width),this.y=Math.min(Math.max(this.y,e.y),e.y+e.height)),this}bearing(e){const t=P.create(e),r=ve.toRad(this.y),i=ve.toRad(t.y),s=this.x,o=t.x,a=ve.toRad(o-s),l=Math.sin(a)*Math.cos(i),c=Math.cos(r)*Math.sin(i)-Math.sin(r)*Math.cos(i)*Math.cos(a),u=ve.toDeg(Math.atan2(l,c)),h=["NE","E","SE","S","SW","W","NW","N"];let f=u-22.5;return f<0&&(f+=360),f=parseInt(f/45,10),h[f]}cross(e,t){if(e!=null&&t!=null){const r=P.create(e),i=P.create(t);return(i.x-this.x)*(r.y-this.y)-(i.y-this.y)*(r.x-this.x)}return NaN}dot(e){const t=P.create(e);return this.x*t.x+this.y*t.y}diff(e,t){if(typeof e=="number")return new P(this.x-e,this.y-t);const r=P.create(e);return new P(this.x-r.x,this.y-r.y)}lerp(e,t){const r=P.create(e);return new P((1-t)*this.x+t*r.x,(1-t)*this.y+t*r.y)}normalize(e=1){const t=e/this.magnitude();return this.scale(t,t)}move(e,t){const r=P.create(e),i=ve.toRad(r.theta(this));return this.translate(Math.cos(i)*t,-Math.sin(i)*t)}reflection(e){return P.create(e).move(this,this.distance(e))}snapToGrid(e,t){return this.x=we.snapToGrid(this.x,e),this.y=we.snapToGrid(this.y,t==null?e:t),this}equals(e){const t=P.create(e);return t!=null&&t.x===this.x&&t.y===this.y}clone(){return P.clone(this)}toJSON(){return P.toJSON(this)}serialize(){return`${this.x} ${this.y}`}}(function(n){function e(t){return t!=null&&t instanceof n}n.isPoint=e})(P||(P={})),function(n){function e(r){return r!=null&&typeof r=="object"&&typeof r.x=="number"&&typeof r.y=="number"}n.isPointLike=e;function t(r){return r!=null&&Array.isArray(r)&&r.length===2&&typeof r[0]=="number"&&typeof r[1]=="number"}n.isPointData=t}(P||(P={})),function(n){function e(h,f){return h==null||typeof h=="number"?new n(h,f):t(h)}n.create=e;function t(h){return n.isPoint(h)?new n(h.x,h.y):Array.isArray(h)?new n(h[0],h[1]):new n(h.x,h.y)}n.clone=t;function r(h){return n.isPoint(h)?{x:h.x,y:h.y}:Array.isArray(h)?{x:h[0],y:h[1]}:{x:h.x,y:h.y}}n.toJSON=r;function i(h,f,d=new n){let g=Math.abs(h*Math.cos(f)),p=Math.abs(h*Math.sin(f));const b=t(d),m=ve.normalize(ve.toDeg(f));return m<90?p=-p:m<180?(g=-g,p=-p):m<270&&(g=-g),new n(b.x+g,b.y+p)}n.fromPolar=i;function s(h,f=new n){const d=t(h),g=t(f),p=d.x-g.x,b=d.y-g.y;return new n(Math.sqrt(p*p+b*b),ve.toRad(g.theta(d)))}n.toPolar=s;function o(h,f){return h===f?!0:h!=null&&f!=null?h.x===f.x&&h.y===f.y:!1}n.equals=o;function a(h,f){if(h==null&&f!=null||h!=null&&f==null||h!=null&&f!=null&&h.length!==f.length)return!1;if(h!=null&&f!=null){for(let d=0,g=h.length;d<g;d+=1)if(!o(h[d],f[d]))return!1}return!0}n.equalPoints=a;function l(h,f,d,g){return new n(we.random(h,f),we.random(d,g))}n.random=l;function c(h,f,d){const g=ve.toRad(ve.normalize(-f)),p=Math.sin(g),b=Math.cos(g);return u(h,b,p,d)}n.rotate=c;function u(h,f,d,g=new n){const p=t(h),b=t(g),m=p.x-b.x,v=p.y-b.y,y=m*f-v*d,w=v*f+m*d;return new n(y+b.x,w+b.y)}n.rotateEx=u}(P||(P={}));class D extends Tr{get left(){return this.x}get top(){return this.y}get right(){return this.x+this.width}get bottom(){return this.y+this.height}get origin(){return new P(this.x,this.y)}get topLeft(){return new P(this.x,this.y)}get topCenter(){return new P(this.x+this.width/2,this.y)}get topRight(){return new P(this.x+this.width,this.y)}get center(){return new P(this.x+this.width/2,this.y+this.height/2)}get bottomLeft(){return new P(this.x,this.y+this.height)}get bottomCenter(){return new P(this.x+this.width/2,this.y+this.height)}get bottomRight(){return new P(this.x+this.width,this.y+this.height)}get corner(){return new P(this.x+this.width,this.y+this.height)}get rightMiddle(){return new P(this.x+this.width,this.y+this.height/2)}get leftMiddle(){return new P(this.x,this.y+this.height/2)}get topLine(){return new F(this.topLeft,this.topRight)}get rightLine(){return new F(this.topRight,this.bottomRight)}get bottomLine(){return new F(this.bottomLeft,this.bottomRight)}get leftLine(){return new F(this.topLeft,this.bottomLeft)}constructor(e,t,r,i){super(),this.x=e==null?0:e,this.y=t==null?0:t,this.width=r==null?0:r,this.height=i==null?0:i}getOrigin(){return this.origin}getTopLeft(){return this.topLeft}getTopCenter(){return this.topCenter}getTopRight(){return this.topRight}getCenter(){return this.center}getCenterX(){return this.x+this.width/2}getCenterY(){return this.y+this.height/2}getBottomLeft(){return this.bottomLeft}getBottomCenter(){return this.bottomCenter}getBottomRight(){return this.bottomRight}getCorner(){return this.corner}getRightMiddle(){return this.rightMiddle}getLeftMiddle(){return this.leftMiddle}getTopLine(){return this.topLine}getRightLine(){return this.rightLine}getBottomLine(){return this.bottomLine}getLeftLine(){return this.leftLine}bbox(e){if(!e)return this.clone();const t=ve.toRad(e),r=Math.abs(Math.sin(t)),i=Math.abs(Math.cos(t)),s=this.width*i+this.height*r,o=this.width*r+this.height*i;return new D(this.x+(this.width-s)/2,this.y+(this.height-o)/2,s,o)}round(e=0){return this.x=we.round(this.x,e),this.y=we.round(this.y,e),this.width=we.round(this.width,e),this.height=we.round(this.height,e),this}add(e,t,r,i){const s=D.create(e,t,r,i),o=Math.min(this.x,s.x),a=Math.min(this.y,s.y),l=Math.max(this.x+this.width,s.x+s.width),c=Math.max(this.y+this.height,s.y+s.height);return this.x=o,this.y=a,this.width=l-o,this.height=c-a,this}update(e,t,r,i){const s=D.create(e,t,r,i);return this.x=s.x,this.y=s.y,this.width=s.width,this.height=s.height,this}inflate(e,t){const r=e,i=t!=null?t:e;return this.x-=r,this.y-=i,this.width+=2*r,this.height+=2*i,this}snapToGrid(e,t){const r=this.origin.snapToGrid(e,t),i=this.corner.snapToGrid(e,t);return this.x=r.x,this.y=r.y,this.width=i.x-r.x,this.height=i.y-r.y,this}translate(e,t){const r=P.create(e,t);return this.x+=r.x,this.y+=r.y,this}scale(e,t,r=new P){const i=this.origin.scale(e,t,r);return this.x=i.x,this.y=i.y,this.width*=e,this.height*=t,this}rotate(e,t=this.getCenter()){if(e!==0){const r=ve.toRad(e),i=Math.cos(r),s=Math.sin(r);let o=this.getOrigin(),a=this.getTopRight(),l=this.getBottomRight(),c=this.getBottomLeft();o=P.rotateEx(o,i,s,t),a=P.rotateEx(a,i,s,t),l=P.rotateEx(l,i,s,t),c=P.rotateEx(c,i,s,t);const u=new D(o.x,o.y,0,0);u.add(a.x,a.y,0,0),u.add(l.x,l.y,0,0),u.add(c.x,c.y,0,0),this.update(u)}return this}rotate90(){const e=(this.width-this.height)/2;this.x+=e,this.y-=e;const t=this.width;return this.width=this.height,this.height=t,this}moveAndExpand(e){const t=D.clone(e);return this.x+=t.x||0,this.y+=t.y||0,this.width+=t.width||0,this.height+=t.height||0,this}getMaxScaleToFit(e,t=this.center){const r=D.clone(e),i=t.x,s=t.y;let o=1/0,a=1/0,l=1/0,c=1/0,u=1/0,h=1/0,f=1/0,d=1/0;const g=r.topLeft;g.x<i&&(o=(this.x-i)/(g.x-i)),g.y<s&&(u=(this.y-s)/(g.y-s));const p=r.bottomRight;p.x>i&&(a=(this.x+this.width-i)/(p.x-i)),p.y>s&&(h=(this.y+this.height-s)/(p.y-s));const b=r.topRight;b.x>i&&(l=(this.x+this.width-i)/(b.x-i)),b.y<s&&(f=(this.y-s)/(b.y-s));const m=r.bottomLeft;return m.x<i&&(c=(this.x-i)/(m.x-i)),m.y>s&&(d=(this.y+this.height-s)/(m.y-s)),{sx:Math.min(o,a,l,c),sy:Math.min(u,h,f,d)}}getMaxUniformScaleToFit(e,t=this.center){const r=this.getMaxScaleToFit(e,t);return Math.min(r.sx,r.sy)}containsPoint(e,t){return we.containsPoint(this,P.create(e,t))}containsRect(e,t,r,i){const s=D.create(e,t,r,i),o=this.x,a=this.y,l=this.width,c=this.height,u=s.x,h=s.y,f=s.width,d=s.height;return l===0||c===0||f===0||d===0?!1:u>=o&&h>=a&&u+f<=o+l&&h+d<=a+c}intersectsWithLine(e){const t=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],r=[],i=[];return t.forEach(s=>{const o=e.intersectsWithLine(s);o!==null&&i.indexOf(o.toString())<0&&(r.push(o),i.push(o.toString()))}),r.length>0?r:null}intersectsWithLineFromCenterToPoint(e,t){const r=P.clone(e),i=this.center;let s=null;t!=null&&t!==0&&r.rotate(t,i);const o=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],a=new F(i,r);for(let l=o.length-1;l>=0;l-=1){const c=o[l].intersectsWithLine(a);if(c!==null){s=c;break}}return s&&t!=null&&t!==0&&s.rotate(-t,i),s}intersectsWithRect(e,t,r,i){const s=D.create(e,t,r,i);if(!this.isIntersectWithRect(s))return null;const o=this.origin,a=this.corner,l=s.origin,c=s.corner,u=Math.max(o.x,l.x),h=Math.max(o.y,l.y);return new D(u,h,Math.min(a.x,c.x)-u,Math.min(a.y,c.y)-h)}isIntersectWithRect(e,t,r,i){const s=D.create(e,t,r,i),o=this.origin,a=this.corner,l=s.origin,c=s.corner;return!(c.x<=o.x||c.y<=o.y||l.x>=a.x||l.y>=a.y)}normalize(){let e=this.x,t=this.y,r=this.width,i=this.height;return this.width<0&&(e=this.x+this.width,r=-this.width),this.height<0&&(t=this.y+this.height,i=-this.height),this.x=e,this.y=t,this.width=r,this.height=i,this}union(e){const t=D.clone(e),r=this.origin,i=this.corner,s=t.origin,o=t.corner,a=Math.min(r.x,s.x),l=Math.min(r.y,s.y),c=Math.max(i.x,o.x),u=Math.max(i.y,o.y);return new D(a,l,c-a,u-l)}getNearestSideToPoint(e){const t=P.clone(e),r=t.x-this.x,i=this.x+this.width-t.x,s=t.y-this.y,o=this.y+this.height-t.y;let a=r,l="left";return i<a&&(a=i,l="right"),s<a&&(a=s,l="top"),o<a&&(l="bottom"),l}getNearestPointToPoint(e){const t=P.clone(e);if(this.containsPoint(t)){const r=this.getNearestSideToPoint(t);if(r==="left")return new P(this.x,t.y);if(r==="top")return new P(t.x,this.y);if(r==="right")return new P(this.x+this.width,t.y);if(r==="bottom")return new P(t.x,this.y+this.height)}return t.adhereToRect(this)}equals(e){return e!=null&&e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}clone(){return new D(this.x,this.y,this.width,this.height)}toJSON(){return{x:this.x,y:this.y,width:this.width,height:this.height}}serialize(){return`${this.x} ${this.y} ${this.width} ${this.height}`}}(function(n){function e(t){return t!=null&&t instanceof n}n.isRectangle=e})(D||(D={})),function(n){function e(t){return t!=null&&typeof t=="object"&&typeof t.x=="number"&&typeof t.y=="number"&&typeof t.width=="number"&&typeof t.height=="number"}n.isRectangleLike=e}(D||(D={})),function(n){function e(o,a,l,c){return o==null||typeof o=="number"?new n(o,a,l,c):t(o)}n.create=e;function t(o){return n.isRectangle(o)?o.clone():Array.isArray(o)?new n(o[0],o[1],o[2],o[3]):new n(o.x,o.y,o.width,o.height)}n.clone=t;function r(o){return new n(o.x-o.a,o.y-o.b,2*o.a,2*o.b)}n.fromEllipse=r;function i(o){return new n(0,0,o.width,o.height)}n.fromSize=i;function s(o,a){return new n(o.x,o.y,a.width,a.height)}n.fromPositionAndSize=s}(D||(D={}));class F extends Tr{get center(){return new P((this.start.x+this.end.x)/2,(this.start.y+this.end.y)/2)}constructor(e,t,r,i){super(),typeof e=="number"&&typeof t=="number"?(this.start=new P(e,t),this.end=new P(r,i)):(this.start=P.create(e),this.end=P.create(t))}getCenter(){return this.center}round(e=0){return this.start.round(e),this.end.round(e),this}translate(e,t){return typeof e=="number"?(this.start.translate(e,t),this.end.translate(e,t)):(this.start.translate(e),this.end.translate(e)),this}rotate(e,t){return this.start.rotate(e,t),this.end.rotate(e,t),this}scale(e,t,r){return this.start.scale(e,t,r),this.end.scale(e,t,r),this}length(){return Math.sqrt(this.squaredLength())}squaredLength(){const e=this.start.x-this.end.x,t=this.start.y-this.end.y;return e*e+t*t}setLength(e){const t=this.length();if(!t)return this;const r=e/t;return this.scale(r,r,this.start)}parallel(e){const t=this.clone();if(!t.isDifferentiable())return t;const{start:r,end:i}=t,s=r.clone().rotate(270,i),o=i.clone().rotate(90,r);return r.move(o,e),i.move(s,e),t}vector(){return new P(this.end.x-this.start.x,this.end.y-this.start.y)}angle(){const e=new P(this.start.x+1,this.start.y);return this.start.angleBetween(this.end,e)}bbox(){const e=Math.min(this.start.x,this.end.x),t=Math.min(this.start.y,this.end.y),r=Math.max(this.start.x,this.end.x),i=Math.max(this.start.y,this.end.y);return new D(e,t,r-e,i-t)}bearing(){return this.start.bearing(this.end)}closestPoint(e){return this.pointAt(this.closestPointNormalizedLength(e))}closestPointLength(e){return this.closestPointNormalizedLength(e)*this.length()}closestPointTangent(e){return this.tangentAt(this.closestPointNormalizedLength(e))}closestPointNormalizedLength(e){const t=this.vector().dot(new F(this.start,e).vector()),r=Math.min(1,Math.max(0,t/this.squaredLength()));return Number.isNaN(r)?0:r}pointAt(e){const t=this.start,r=this.end;return e<=0?t.clone():e>=1?r.clone():t.lerp(r,e)}pointAtLength(e){const t=this.start,r=this.end;let i=!0;e<0&&(i=!1,e=-e);const s=this.length();if(e>=s)return i?r.clone():t.clone();const o=(i?e:s-e)/s;return this.pointAt(o)}divideAt(e){const t=this.pointAt(e);return[new F(this.start,t),new F(t,this.end)]}divideAtLength(e){const t=this.pointAtLength(e);return[new F(this.start,t),new F(t,this.end)]}containsPoint(e){const t=this.start,r=this.end;if(t.cross(e,r)!==0)return!1;const i=this.length();return!(new F(t,e).length()>i||new F(e,r).length()>i)}intersect(e,t){const r=e.intersectsWithLine(this,t);return r?Array.isArray(r)?r:[r]:null}intersectsWithLine(e){const t=new P(this.end.x-this.start.x,this.end.y-this.start.y),r=new P(e.end.x-e.start.x,e.end.y-e.start.y),i=t.x*r.y-t.y*r.x,s=new P(e.start.x-this.start.x,e.start.y-this.start.y),o=s.x*r.y-s.y*r.x,a=s.x*t.y-s.y*t.x;if(i===0||o*i<0||a*i<0)return null;if(i>0){if(o>i||a>i)return null}else if(o<i||a<i)return null;return new P(this.start.x+o*t.x/i,this.start.y+o*t.y/i)}isDifferentiable(){return!this.start.equals(this.end)}pointOffset(e){const t=P.clone(e),r=this.start,i=this.end;return((i.x-r.x)*(t.y-r.y)-(i.y-r.y)*(t.x-r.x))/this.length()}pointSquaredDistance(e,t){const r=P.create(e,t);return this.closestPoint(r).squaredDistance(r)}pointDistance(e,t){const r=P.create(e,t);return this.closestPoint(r).distance(r)}tangentAt(e){if(!this.isDifferentiable())return null;const t=this.start,r=this.end,i=this.pointAt(e),s=new F(t,r);return s.translate(i.x-t.x,i.y-t.y),s}tangentAtLength(e){if(!this.isDifferentiable())return null;const t=this.start,r=this.end,i=this.pointAtLength(e),s=new F(t,r);return s.translate(i.x-t.x,i.y-t.y),s}relativeCcw(e,t){const r=P.create(e,t);let i=r.x-this.start.x,s=r.y-this.start.y;const o=this.end.x-this.start.x,a=this.end.y-this.start.y;let l=i*a-s*o;return l===0&&(l=i*o+s*a,l>0&&(i-=o,s-=a,l=i*o+s*a,l<0&&(l=0))),l<0?-1:l>0?1:0}equals(e){return e!=null&&this.start.x===e.start.x&&this.start.y===e.start.y&&this.end.x===e.end.x&&this.end.y===e.end.y}clone(){return new F(this.start,this.end)}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.end.serialize()].join(" ")}}(function(n){function e(t){return t!=null&&t instanceof n}n.isLine=e})(F||(F={}));class xn extends Tr{get center(){return new P(this.x,this.y)}constructor(e,t,r,i){super(),this.x=e==null?0:e,this.y=t==null?0:t,this.a=r==null?0:r,this.b=i==null?0:i}bbox(){return D.fromEllipse(this)}getCenter(){return this.center}inflate(e,t){const r=e,i=t!=null?t:e;return this.a+=2*r,this.b+=2*i,this}normalizedDistance(e,t){const r=P.create(e,t),i=r.x-this.x,s=r.y-this.y,o=this.a,a=this.b;return i*i/(o*o)+s*s/(a*a)}containsPoint(e,t){return this.normalizedDistance(e,t)<=1}intersectsWithLine(e){const t=[],r=this.a,i=this.b,s=e.start,o=e.end,a=e.vector(),l=s.diff(new P(this.x,this.y)),c=new P(a.x/(r*r),a.y/(i*i)),u=new P(l.x/(r*r),l.y/(i*i)),h=a.dot(c),f=a.dot(u),d=l.dot(u)-1,g=f*f-h*d;if(g<0)return null;if(g>0){const p=Math.sqrt(g),b=(-f-p)/h,m=(-f+p)/h;if((b<0||b>1)&&(m<0||m>1))return null;b>=0&&b<=1&&t.push(s.lerp(o,b)),m>=0&&m<=1&&t.push(s.lerp(o,m))}else{const p=-f/h;if(p>=0&&p<=1)t.push(s.lerp(o,p));else return null}return t}intersectsWithLineFromCenterToPoint(e,t=0){const r=P.clone(e);t&&r.rotate(t,this.getCenter());const i=r.x-this.x,s=r.y-this.y;let o;if(i===0)return o=this.bbox().getNearestPointToPoint(r),t?o.rotate(-t,this.getCenter()):o;const a=s/i,l=a*a,c=this.a*this.a,u=this.b*this.b;let h=Math.sqrt(1/(1/c+l/u));h=i<0?-h:h;const f=a*h;return o=new P(this.x+h,this.y+f),t?o.rotate(-t,this.getCenter()):o}tangentTheta(e){const t=P.clone(e),r=t.x,i=t.y,s=this.a,o=this.b,a=this.bbox().center,l=a.x,c=a.y,u=30,h=r>a.x+s/2,f=r<a.x-s/2;let d,g;return h||f?(g=r>a.x?i-u:i+u,d=s*s/(r-l)-s*s*(i-c)*(g-c)/(o*o*(r-l))+l):(d=i>a.y?r+u:r-u,g=o*o/(i-c)-o*o*(r-l)*(d-l)/(s*s*(i-c))+c),new P(d,g).theta(t)}scale(e,t){return this.a*=e,this.b*=t,this}rotate(e,t){const r=D.fromEllipse(this);r.rotate(e,t);const i=xn.fromRect(r);return this.a=i.a,this.b=i.b,this.x=i.x,this.y=i.y,this}translate(e,t){const r=P.create(e,t);return this.x+=r.x,this.y+=r.y,this}equals(e){return e!=null&&e.x===this.x&&e.y===this.y&&e.a===this.a&&e.b===this.b}clone(){return new xn(this.x,this.y,this.a,this.b)}toJSON(){return{x:this.x,y:this.y,a:this.a,b:this.b}}serialize(){return`${this.x} ${this.y} ${this.a} ${this.b}`}}(function(n){function e(t){return t!=null&&t instanceof n}n.isEllipse=e})(xn||(xn={})),function(n){function e(i,s,o,a){return i==null||typeof i=="number"?new n(i,s,o,a):t(i)}n.create=e;function t(i){return n.isEllipse(i)?i.clone():Array.isArray(i)?new n(i[0],i[1],i[2],i[3]):new n(i.x,i.y,i.a,i.b)}n.parse=t;function r(i){const s=i.center;return new n(s.x,s.y,i.width/2,i.height/2)}n.fromRect=r}(xn||(xn={}));const aq=new RegExp("^[\\s\\dLMCZz,.]*$");function lq(n){return typeof n!="string"?!1:aq.test(n)}function af(n,e){return(n%e+e)%e}function cq(n,e,t,r,i){const s=[],o=n[n.length-1],a=e!=null&&e>0,l=e||0;if(r&&a){n=n.slice();const h=n[0],f=new P(o.x+(h.x-o.x)/2,o.y+(h.y-o.y)/2);n.splice(0,0,f)}let c=n[0],u=1;for(t?s.push("M",c.x,c.y):s.push("L",c.x,c.y);u<(r?n.length:n.length-1);){let h=n[af(u,n.length)],f=c.x-h.x,d=c.y-h.y;if(a&&(f!==0||d!==0)&&(i==null||i.indexOf(u-1)<0)){let g=Math.sqrt(f*f+d*d);const p=f*Math.min(l,g/2)/g,b=d*Math.min(l,g/2)/g,m=h.x+p,v=h.y+b;s.push("L",m,v);let y=n[af(u+1,n.length)];for(;u<n.length-2&&Math.round(y.x-h.x)===0&&Math.round(y.y-h.y)===0;)y=n[af(u+2,n.length)],u+=1;f=y.x-h.x,d=y.y-h.y,g=Math.max(1,Math.sqrt(f*f+d*d));const w=f*Math.min(l,g/2)/g,x=d*Math.min(l,g/2)/g,C=h.x+w,S=h.y+x;s.push("Q",h.x,h.y,C,S),h=new P(C,S)}else s.push("L",h.x,h.y);c=h,u+=1}return r?s.push("Z"):s.push("L",o.x,o.y),s.map(h=>typeof h=="string"?h:+h.toFixed(3)).join(" ")}function B1(n,e={}){const t=[];return n&&n.length&&n.forEach(r=>{Array.isArray(r)?t.push({x:r[0],y:r[1]}):t.push({x:r.x,y:r.y})}),cq(t,e.round,e.initialMove==null||e.initialMove,e.close,e.exclude)}function Hl(n,e,t,r,i=0,s=0,o=0,a,l){if(t===0||r===0)return[];a-=n,l-=e,t=Math.abs(t),r=Math.abs(r);const c=-a/2,u=-l/2,h=Math.cos(i*Math.PI/180),f=Math.sin(i*Math.PI/180),d=h*c+f*u,g=-1*f*c+h*u,p=d*d,b=g*g,m=t*t,v=r*r,y=p/m+b/v;let w;if(y>1)t=Math.sqrt(y)*t,r=Math.sqrt(y)*r,w=0;else{let wt=1;s===o&&(wt=-1),w=wt*Math.sqrt((m*v-m*b-v*p)/(m*b+v*p))}const x=w*t*g/r,C=-1*w*r*d/t,S=h*x-f*C+a/2,E=f*x+h*C+l/2;let A=Math.atan2((g-C)/r,(d-x)/t)-Math.atan2(0,1),M=A>=0?A:2*Math.PI+A;A=Math.atan2((-g-C)/r,(-d-x)/t)-Math.atan2((g-C)/r,(d-x)/t);let O=A>=0?A:2*Math.PI+A;o===0&&O>0?O-=2*Math.PI:o!==0&&O<0&&(O+=2*Math.PI);const $=O*2/Math.PI,V=Math.ceil($<0?-1*$:$),X=O/V,T=8/3*Math.sin(X/4)*Math.sin(X/4)/Math.sin(X/2),k=h*t,Q=h*r,R=f*t,z=f*r;let H=Math.cos(M),te=Math.sin(M),_e=-T*(k*te+z*H),Kt=-T*(R*te-Q*H),rt=0,Jt=0;const Ge=[];for(let wt=0;wt<V;wt+=1){M+=X,H=Math.cos(M),te=Math.sin(M),rt=k*H-z*te+S,Jt=R*H+Q*te+E;const ho=-T*(k*te+z*H),Hu=-T*(R*te-Q*H),hi=wt*6;Ge[hi]=Number(_e+n),Ge[hi+1]=Number(Kt+e),Ge[hi+2]=Number(rt-ho+n),Ge[hi+3]=Number(Jt-Hu+e),Ge[hi+4]=Number(rt+n),Ge[hi+5]=Number(Jt+e),_e=rt+ho,Kt=Jt+Hu}return Ge.map(wt=>+wt.toFixed(2))}function uq(n,e,t,r,i=0,s=0,o=0,a,l){const c=[],u=Hl(n,e,t,r,i,s,o,a,l);if(u!=null)for(let h=0,f=u.length;h<f;h+=6)c.push("C",u[h],u[h+1],u[h+2],u[h+3],u[h+4],u[h+5]);return c.join(" ")}class Ue extends Tr{get start(){return this.points[0]||null}get end(){return this.points[this.points.length-1]||null}constructor(e){if(super(),e!=null){if(typeof e=="string")return Ue.parse(e);this.points=e.map(t=>P.create(t))}else this.points=[]}scale(e,t,r=new P){return this.points.forEach(i=>i.scale(e,t,r)),this}rotate(e,t){return this.points.forEach(r=>r.rotate(e,t)),this}translate(e,t){const r=P.create(e,t);return this.points.forEach(i=>i.translate(r.x,r.y)),this}round(e=0){return this.points.forEach(t=>t.round(e)),this}bbox(){if(this.points.length===0)return new D;let e=1/0,t=-1/0,r=1/0,i=-1/0;const s=this.points;for(let o=0,a=s.length;o<a;o+=1){const l=s[o],c=l.x,u=l.y;c<e&&(e=c),c>t&&(t=c),u<r&&(r=u),u>i&&(i=u)}return new D(e,r,t-e,i-r)}closestPoint(e){const t=this.closestPointLength(e);return this.pointAtLength(t)}closestPointLength(e){const t=this.points,r=t.length;if(r===0||r===1)return 0;let i=0,s=0,o=1/0;for(let a=0,l=r-1;a<l;a+=1){const c=new F(t[a],t[a+1]),u=c.length(),h=c.closestPointNormalizedLength(e),d=c.pointAt(h).squaredDistance(e);d<o&&(o=d,s=i+h*u),i+=u}return s}closestPointNormalizedLength(e){const t=this.length();return t===0?0:this.closestPointLength(e)/t}closestPointTangent(e){const t=this.closestPointLength(e);return this.tangentAtLength(t)}containsPoint(e){if(this.points.length===0)return!1;const t=P.clone(e),r=t.x,i=t.y,s=this.points,o=s.length;let a=o-1,l=0;for(let c=0;c<o;c+=1){const u=s[a],h=s[c];if(t.equals(u))return!0;const f=new F(u,h);if(f.containsPoint(e))return!0;if(i<=u.y&&i>h.y||i>u.y&&i<=h.y){const d=u.x-r>h.x-r?u.x-r:h.x-r;if(d>=0){const g=new P(r+d,i),p=new F(e,g);f.intersectsWithLine(p)&&(l+=1)}}a=c}return l%2===1}intersectsWithLine(e){const t=[];for(let r=0,i=this.points.length-1;r<i;r+=1){const s=this.points[r],o=this.points[r+1],a=e.intersectsWithLine(new F(s,o));a&&t.push(a)}return t.length>0?t:null}isDifferentiable(){for(let e=0,t=this.points.length-1;e<t;e+=1){const r=this.points[e],i=this.points[e+1];if(new F(r,i).isDifferentiable())return!0}return!1}length(){let e=0;for(let t=0,r=this.points.length-1;t<r;t+=1){const i=this.points[t],s=this.points[t+1];e+=i.distance(s)}return e}pointAt(e){const t=this.points,r=t.length;if(r===0)return null;if(r===1||e<=0)return t[0].clone();if(e>=1)return t[r-1].clone();const s=this.length()*e;return this.pointAtLength(s)}pointAtLength(e){const t=this.points,r=t.length;if(r===0)return null;if(r===1)return t[0].clone();let i=!0;e<0&&(i=!1,e=-e);let s=0;for(let a=0,l=r-1;a<l;a+=1){const c=i?a:l-1-a,u=t[c],h=t[c+1],f=new F(u,h),d=u.distance(h);if(e<=s+d)return f.pointAtLength((i?1:-1)*(e-s));s+=d}return(i?t[r-1]:t[0]).clone()}tangentAt(e){const r=this.points.length;if(r===0||r===1)return null;e<0&&(e=0),e>1&&(e=1);const s=this.length()*e;return this.tangentAtLength(s)}tangentAtLength(e){const t=this.points,r=t.length;if(r===0||r===1)return null;let i=!0;e<0&&(i=!1,e=-e);let s,o=0;for(let a=0,l=r-1;a<l;a+=1){const c=i?a:l-1-a,u=t[c],h=t[c+1],f=new F(u,h),d=u.distance(h);if(f.isDifferentiable()){if(e<=o+d)return f.tangentAtLength((i?1:-1)*(e-o));s=f}o+=d}if(s){const a=i?1:0;return s.tangentAt(a)}return null}simplify(e={}){const t=this.points;if(t.length<3)return this;const r=e.threshold||0;let i=0;for(;t[i+2];){const s=i,o=i+1,a=i+2,l=t[s],c=t[o],u=t[a];new F(l,u).closestPoint(c).distance(c)<=r?t.splice(o,1):i+=1}return this}toHull(){const e=this.points,t=e.length;if(t===0)return new Ue;let r=e[0];for(let f=1;f<t;f+=1)(e[f].y<r.y||e[f].y===r.y&&e[f].x>r.x)&&(r=e[f]);const i=[];for(let f=0;f<t;f+=1){let d=r.theta(e[f]);d===0&&(d=360),i.push([e[f],f,d])}if(i.sort((f,d)=>{let g=f[2]-d[2];return g===0&&(g=d[1]-f[1]),g}),i.length>2){const f=i[i.length-1];i.unshift(f)}const s={},o=[],a=f=>`${f[0].toString()}@${f[1]}`;for(;i.length!==0;){const f=i.pop(),d=f[0];if(s[a(f)])continue;let g=!1;for(;!g;)if(o.length<2)o.push(f),g=!0;else{const p=o.pop(),b=p[0],m=o.pop(),v=m[0],y=v.cross(b,d);if(y<0)o.push(m),o.push(p),o.push(f),g=!0;else if(y===0){const x=b.angleBetween(v,d);Math.abs(x-180)<1e-10||b.equals(d)||v.equals(b)?(s[a(p)]=b,o.push(m)):Math.abs((x+1)%360-1)<1e-10&&(o.push(m),i.push(p))}else s[a(p)]=b,o.push(m)}}o.length>2&&o.pop();let l,c=-1;for(let f=0,d=o.length;f<d;f+=1){const g=o[f][1];(l===void 0||g<l)&&(l=g,c=f)}let u=[];if(c>0){const f=o.slice(c),d=o.slice(0,c);u=f.concat(d)}else u=o;const h=[];for(let f=0,d=u.length;f<d;f+=1)h.push(u[f][0]);return new Ue(h)}equals(e){return e==null||e.points.length!==this.points.length?!1:e.points.every((t,r)=>t.equals(this.points[r]))}clone(){return new Ue(this.points.map(e=>e.clone()))}toJSON(){return this.points.map(e=>e.toJSON())}serialize(){return this.points.map(e=>`${e.serialize()}`).join(" ")}}(function(n){function e(t){return t!=null&&t instanceof n}n.isPolyline=e})(Ue||(Ue={})),function(n){function e(t){const r=t.trim();if(r==="")return new n;const i=[],s=r.split(/\s*,\s*|\s+/);for(let o=0,a=s.length;o<a;o+=2)i.push({x:+s[o],y:+s[o+1]});return new n(i)}n.parse=e}(Ue||(Ue={}));class Fe extends Tr{constructor(e,t,r,i){super(),this.PRECISION=3,this.start=P.create(e),this.controlPoint1=P.create(t),this.controlPoint2=P.create(r),this.end=P.create(i)}bbox(){const e=this.start,t=this.controlPoint1,r=this.controlPoint2,i=this.end,s=e.x,o=e.y,a=t.x,l=t.y,c=r.x,u=r.y,h=i.x,f=i.y,d=[],g=[[],[]];let p,b,m,v,y,w,x,C;for(let k=0;k<2;k+=1){if(k===0?(b=6*s-12*a+6*c,p=-3*s+9*a-9*c+3*h,m=3*a-3*s):(b=6*o-12*l+6*u,p=-3*o+9*l-9*u+3*f,m=3*l-3*o),Math.abs(p)<1e-12){if(Math.abs(b)<1e-12)continue;v=-m/b,v>0&&v<1&&d.push(v);continue}x=b*b-4*m*p,C=Math.sqrt(x),!(x<0)&&(y=(-b+C)/(2*p),y>0&&y<1&&d.push(y),w=(-b-C)/(2*p),w>0&&w<1&&d.push(w))}let S,E,A,M=d.length;const O=M;for(;M;)M-=1,v=d[M],A=1-v,S=A*A*A*s+3*A*A*v*a+3*A*v*v*c+v*v*v*h,g[0][M]=S,E=A*A*A*o+3*A*A*v*l+3*A*v*v*u+v*v*v*f,g[1][M]=E;d[O]=0,d[O+1]=1,g[0][O]=s,g[1][O]=o,g[0][O+1]=h,g[1][O+1]=f,d.length=O+2,g[0].length=O+2,g[1].length=O+2;const $=Math.min.apply(null,g[0]),V=Math.min.apply(null,g[1]),X=Math.max.apply(null,g[0]),T=Math.max.apply(null,g[1]);return new D($,V,X-$,T-V)}closestPoint(e,t={}){return this.pointAtT(this.closestPointT(e,t))}closestPointLength(e,t={}){const r=this.getOptions(t);return this.lengthAtT(this.closestPointT(e,r),r)}closestPointNormalizedLength(e,t={}){const r=this.getOptions(t),i=this.closestPointLength(e,r);if(!i)return 0;const s=this.length(r);return s===0?0:i/s}closestPointT(e,t={}){const r=this.getPrecision(t),i=this.getDivisions(t),s=Math.pow(10,-r);let o=null,a=0,l=0,c=0,u=0,h=0,f=null;const d=i.length;let g=d>0?1/d:0;for(i.forEach((p,b)=>{const m=p.start.distance(e),v=p.end.distance(e),y=m+v;(f==null||y<f)&&(o=p,a=b*g,l=(b+1)*g,c=m,u=v,f=y,h=p.endpointDistance())});;){const p=c?Math.abs(c-u)/c:0,b=u!=null?Math.abs(c-u)/u:0,m=p<s||b<s,v=c?c<h*s:!0,y=u?u<h*s:!0;if(m||(v||y))return c<=u?a:l;const x=o.divide(.5);g/=2;const C=x[0].start.distance(e),S=x[0].end.distance(e),E=C+S,A=x[1].start.distance(e),M=x[1].end.distance(e),O=A+M;E<=O?(o=x[0],l-=g,c=C,u=S):(o=x[1],a+=g,c=A,u=M)}}closestPointTangent(e,t={}){return this.tangentAtT(this.closestPointT(e,t))}containsPoint(e,t={}){return this.toPolyline(t).containsPoint(e)}divideAt(e,t={}){if(e<=0)return this.divideAtT(0);if(e>=1)return this.divideAtT(1);const r=this.tAt(e,t);return this.divideAtT(r)}divideAtLength(e,t={}){const r=this.tAtLength(e,t);return this.divideAtT(r)}divide(e){return this.divideAtT(e)}divideAtT(e){const t=this.start,r=this.controlPoint1,i=this.controlPoint2,s=this.end;if(e<=0)return[new Fe(t,t,t,t),new Fe(t,r,i,s)];if(e>=1)return[new Fe(t,r,i,s),new Fe(s,s,s,s)];const o=this.getSkeletonPoints(e),a=o.startControlPoint1,l=o.startControlPoint2,c=o.divider,u=o.dividerControlPoint1,h=o.dividerControlPoint2;return[new Fe(t,a,l,c),new Fe(c,u,h,s)]}endpointDistance(){return this.start.distance(this.end)}getSkeletonPoints(e){const t=this.start,r=this.controlPoint1,i=this.controlPoint2,s=this.end;if(e<=0)return{startControlPoint1:t.clone(),startControlPoint2:t.clone(),divider:t.clone(),dividerControlPoint1:r.clone(),dividerControlPoint2:i.clone()};if(e>=1)return{startControlPoint1:r.clone(),startControlPoint2:i.clone(),divider:s.clone(),dividerControlPoint1:s.clone(),dividerControlPoint2:s.clone()};const o=new F(t,r).pointAt(e),a=new F(r,i).pointAt(e),l=new F(i,s).pointAt(e),c=new F(o,a).pointAt(e),u=new F(a,l).pointAt(e),h=new F(c,u).pointAt(e);return{startControlPoint1:o,startControlPoint2:c,divider:h,dividerControlPoint1:u,dividerControlPoint2:l}}getSubdivisions(e={}){const t=this.getPrecision(e);let r=[new Fe(this.start,this.controlPoint1,this.controlPoint2,this.end)];if(t===0)return r;let i=this.endpointDistance();const s=Math.pow(10,-t);let o=0;for(;;){o+=1;const a=[];r.forEach(u=>{const h=u.divide(.5);a.push(h[0],h[1])});const l=a.reduce((u,h)=>u+h.endpointDistance(),0),c=l!==0?(l-i)/l:0;if(o>1&&c<s)return a;r=a,i=l}}length(e={}){return this.getDivisions(e).reduce((r,i)=>r+i.endpointDistance(),0)}lengthAtT(e,t={}){if(e<=0)return 0;const r=t.precision===void 0?this.PRECISION:t.precision;return this.divide(e)[0].length({precision:r})}pointAt(e,t={}){if(e<=0)return this.start.clone();if(e>=1)return this.end.clone();const r=this.tAt(e,t);return this.pointAtT(r)}pointAtLength(e,t={}){const r=this.tAtLength(e,t);return this.pointAtT(r)}pointAtT(e){return e<=0?this.start.clone():e>=1?this.end.clone():this.getSkeletonPoints(e).divider}isDifferentiable(){const e=this.start,t=this.controlPoint1,r=this.controlPoint2,i=this.end;return!(e.equals(t)&&t.equals(r)&&r.equals(i))}tangentAt(e,t={}){if(!this.isDifferentiable())return null;e<0?e=0:e>1&&(e=1);const r=this.tAt(e,t);return this.tangentAtT(r)}tangentAtLength(e,t={}){if(!this.isDifferentiable())return null;const r=this.tAtLength(e,t);return this.tangentAtT(r)}tangentAtT(e){if(!this.isDifferentiable())return null;e<0&&(e=0),e>1&&(e=1);const t=this.getSkeletonPoints(e),r=t.startControlPoint2,i=t.dividerControlPoint1,s=t.divider,o=new F(r,i);return o.translate(s.x-r.x,s.y-r.y),o}getPrecision(e={}){return e.precision==null?this.PRECISION:e.precision}getDivisions(e={}){if(e.subdivisions!=null)return e.subdivisions;const t=this.getPrecision(e);return this.getSubdivisions({precision:t})}getOptions(e={}){const t=this.getPrecision(e),r=this.getDivisions(e);return{precision:t,subdivisions:r}}tAt(e,t={}){if(e<=0)return 0;if(e>=1)return 1;const r=this.getOptions(t),s=this.length(r)*e;return this.tAtLength(s,r)}tAtLength(e,t={}){let r=!0;e<0&&(r=!1,e=-e);const i=this.getPrecision(t),s=this.getDivisions(t),o={precision:i,subdivisions:s};let a=null,l,c,u=0,h=0,f=0;const d=s.length;let g=d>0?1/d:0;for(let m=0;m<d;m+=1){const v=r?m:d-1-m,y=s[m],w=y.endpointDistance();if(e<=f+w){a=y,l=v*g,c=(v+1)*g,u=r?e-f:w+f-e,h=r?w+f-e:e-f;break}f+=w}if(a==null)return r?1:0;const p=this.length(o),b=Math.pow(10,-i);for(;;){let m;if(m=p!==0?u/p:0,m<b)return l;if(m=p!==0?h/p:0,m<b)return c;let v,y;const w=a.divide(.5);g/=2;const x=w[0].endpointDistance(),C=w[1].endpointDistance();u<=x?(a=w[0],c-=g,v=u,y=x-v):(a=w[1],l+=g,v=u-x,y=C-v),u=v,h=y}}toPoints(e={}){const t=this.getDivisions(e),r=[t[0].start.clone()];return t.forEach(i=>r.push(i.end.clone())),r}toPolyline(e={}){return new Ue(this.toPoints(e))}scale(e,t,r){return this.start.scale(e,t,r),this.controlPoint1.scale(e,t,r),this.controlPoint2.scale(e,t,r),this.end.scale(e,t,r),this}rotate(e,t){return this.start.rotate(e,t),this.controlPoint1.rotate(e,t),this.controlPoint2.rotate(e,t),this.end.rotate(e,t),this}translate(e,t){return typeof e=="number"?(this.start.translate(e,t),this.controlPoint1.translate(e,t),this.controlPoint2.translate(e,t),this.end.translate(e,t)):(this.start.translate(e),this.controlPoint1.translate(e),this.controlPoint2.translate(e),this.end.translate(e)),this}equals(e){return e!=null&&this.start.equals(e.start)&&this.controlPoint1.equals(e.controlPoint1)&&this.controlPoint2.equals(e.controlPoint2)&&this.end.equals(e.end)}clone(){return new Fe(this.start,this.controlPoint1,this.controlPoint2,this.end)}toJSON(){return{start:this.start.toJSON(),controlPoint1:this.controlPoint1.toJSON(),controlPoint2:this.controlPoint2.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.controlPoint1.serialize(),this.controlPoint2.serialize(),this.end.serialize()].join(" ")}}(function(n){function e(t){return t!=null&&t instanceof n}n.isCurve=e})(Fe||(Fe={})),function(n){function e(i){const s=i.length,o=[],a=[];let l=2;o[0]=i[0]/l;for(let c=1;c<s;c+=1)a[c]=1/l,l=(c<s-1?4:3.5)-a[c],o[c]=(i[c]-o[c-1])/l;for(let c=1;c<s;c+=1)o[s-c-1]-=a[s-c]*o[s-c];return o}function t(i){const s=i.map(f=>P.clone(f)),o=[],a=[],l=s.length-1;if(l===1)return o[0]=new P((2*s[0].x+s[1].x)/3,(2*s[0].y+s[1].y)/3),a[0]=new P(2*o[0].x-s[0].x,2*o[0].y-s[0].y),[o,a];const c=[];for(let f=1;f<l-1;f+=1)c[f]=4*s[f].x+2*s[f+1].x;c[0]=s[0].x+2*s[1].x,c[l-1]=(8*s[l-1].x+s[l].x)/2;const u=e(c);for(let f=1;f<l-1;f+=1)c[f]=4*s[f].y+2*s[f+1].y;c[0]=s[0].y+2*s[1].y,c[l-1]=(8*s[l-1].y+s[l].y)/2;const h=e(c);for(let f=0;f<l;f+=1)o.push(new P(u[f],h[f])),f<l-1?a.push(new P(2*s[f+1].x-u[f+1],2*s[f+1].y-h[f+1])):a.push(new P((s[l].x+u[l-1])/2,(s[l].y+h[l-1])/2));return[o,a]}function r(i){if(i==null||Array.isArray(i)&&i.length<2)throw new Error("At least 2 points are required");const s=t(i),o=[];for(let a=0,l=s[0].length;a<l;a+=1){const c=new P(s[0][a].x,s[0][a].y),u=new P(s[1][a].x,s[1][a].y);o.push(new n(i[a],c,u,i[a+1]))}return o}n.throughPoints=r}(Fe||(Fe={}));class Ul extends Tr{constructor(){super(...arguments),this.isVisible=!0,this.isSegment=!0,this.isSubpathStart=!1}get end(){return this.endPoint}get start(){if(this.previousSegment==null)throw new Error("Missing previous segment. (This segment cannot be the first segment of a path, or segment has not yet been added to a path.)");return this.previousSegment.end}closestPointT(e,t){if(this.closestPointNormalizedLength)return this.closestPointNormalizedLength(e);throw new Error("Neither `closestPointT` nor `closestPointNormalizedLength` method is implemented.")}lengthAtT(e,t){if(e<=0)return 0;const r=this.length();return e>=1?r:r*e}divideAtT(e){if(this.divideAt)return this.divideAt(e);throw new Error("Neither `divideAtT` nor `divideAt` method is implemented.")}pointAtT(e){if(this.pointAt)return this.pointAt(e);throw new Error("Neither `pointAtT` nor `pointAt` method is implemented.")}tangentAtT(e){if(this.tangentAt)return this.tangentAt(e);throw new Error("Neither `tangentAtT` nor `tangentAt` method is implemented.")}}class Ct extends Ul{constructor(e,t){super(),F.isLine(e)?this.endPoint=e.end.clone().round(2):this.endPoint=P.create(e,t).round(2)}get type(){return"L"}get line(){return new F(this.start,this.end)}bbox(){return this.line.bbox()}closestPoint(e){return this.line.closestPoint(e)}closestPointLength(e){return this.line.closestPointLength(e)}closestPointNormalizedLength(e){return this.line.closestPointNormalizedLength(e)}closestPointTangent(e){return this.line.closestPointTangent(e)}length(){return this.line.length()}divideAt(e){const t=this.line.divideAt(e);return[new Ct(t[0]),new Ct(t[1])]}divideAtLength(e){const t=this.line.divideAtLength(e);return[new Ct(t[0]),new Ct(t[1])]}getSubdivisions(){return[]}pointAt(e){return this.line.pointAt(e)}pointAtLength(e){return this.line.pointAtLength(e)}tangentAt(e){return this.line.tangentAt(e)}tangentAtLength(e){return this.line.tangentAtLength(e)}isDifferentiable(){return this.previousSegment==null?!1:!this.start.equals(this.end)}clone(){return new Ct(this.end)}scale(e,t,r){return this.end.scale(e,t,r),this}rotate(e,t){return this.end.rotate(e,t),this}translate(e,t){return typeof e=="number"?this.end.translate(e,t):this.end.translate(e),this}equals(e){return this.type===e.type&&this.start.equals(e.start)&&this.end.equals(e.end)}toJSON(){return{type:this.type,start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){const e=this.end;return`${this.type} ${e.x} ${e.y}`}}(function(n){function e(...t){const r=t.length,i=t[0];if(F.isLine(i))return new n(i);if(P.isPointLike(i))return r===1?new n(i):t.map(o=>new n(o));if(r===2)return new n(+t[0],+t[1]);const s=[];for(let o=0;o<r;o+=2){const a=+t[o],l=+t[o+1];s.push(new n(a,l))}return s}n.create=e})(Ct||(Ct={}));class vs extends Ul{get end(){if(!this.subpathStartSegment)throw new Error("Missing subpath start segment. (This segment needs a subpath start segment (e.g. MoveTo), or segment has not yet been added to a path.)");return this.subpathStartSegment.end}get type(){return"Z"}get line(){return new F(this.start,this.end)}bbox(){return this.line.bbox()}closestPoint(e){return this.line.closestPoint(e)}closestPointLength(e){return this.line.closestPointLength(e)}closestPointNormalizedLength(e){return this.line.closestPointNormalizedLength(e)}closestPointTangent(e){return this.line.closestPointTangent(e)}length(){return this.line.length()}divideAt(e){const t=this.line.divideAt(e);return[t[1].isDifferentiable()?new Ct(t[0]):this.clone(),new Ct(t[1])]}divideAtLength(e){const t=this.line.divideAtLength(e);return[t[1].isDifferentiable()?new Ct(t[0]):this.clone(),new Ct(t[1])]}getSubdivisions(){return[]}pointAt(e){return this.line.pointAt(e)}pointAtLength(e){return this.line.pointAtLength(e)}tangentAt(e){return this.line.tangentAt(e)}tangentAtLength(e){return this.line.tangentAtLength(e)}isDifferentiable(){return!this.previousSegment||!this.subpathStartSegment?!1:!this.start.equals(this.end)}scale(){return this}rotate(){return this}translate(){return this}equals(e){return this.type===e.type&&this.start.equals(e.start)&&this.end.equals(e.end)}clone(){return new vs}toJSON(){return{type:this.type,start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){return this.type}}(function(n){function e(){return new n}n.create=e})(vs||(vs={}));class bs extends Ul{constructor(e,t){super(),this.isVisible=!1,this.isSubpathStart=!0,F.isLine(e)||Fe.isCurve(e)?this.endPoint=e.end.clone().round(2):this.endPoint=P.create(e,t).round(2)}get start(){throw new Error("Illegal access. Moveto segments should not need a start property.")}get type(){return"M"}bbox(){return null}closestPoint(){return this.end.clone()}closestPointLength(){return 0}closestPointNormalizedLength(){return 0}closestPointT(){return 1}closestPointTangent(){return null}length(){return 0}lengthAtT(){return 0}divideAt(){return[this.clone(),this.clone()]}divideAtLength(){return[this.clone(),this.clone()]}getSubdivisions(){return[]}pointAt(){return this.end.clone()}pointAtLength(){return this.end.clone()}pointAtT(){return this.end.clone()}tangentAt(){return null}tangentAtLength(){return null}tangentAtT(){return null}isDifferentiable(){return!1}scale(e,t,r){return this.end.scale(e,t,r),this}rotate(e,t){return this.end.rotate(e,t),this}translate(e,t){return typeof e=="number"?this.end.translate(e,t):this.end.translate(e),this}clone(){return new bs(this.end)}equals(e){return this.type===e.type&&this.end.equals(e.end)}toJSON(){return{type:this.type,end:this.end.toJSON()}}serialize(){const e=this.end;return`${this.type} ${e.x} ${e.y}`}}(function(n){function e(...t){const r=t.length,i=t[0];if(F.isLine(i))return new n(i);if(Fe.isCurve(i))return new n(i);if(P.isPointLike(i)){if(r===1)return new n(i);const o=[];for(let a=0;a<r;a+=1)a===0?o.push(new n(t[a])):o.push(new Ct(t[a]));return o}if(r===2)return new n(+t[0],+t[1]);const s=[];for(let o=0;o<r;o+=2){const a=+t[o],l=+t[o+1];o===0?s.push(new n(a,l)):s.push(new Ct(a,l))}return s}n.create=e})(bs||(bs={}));class sn extends Ul{constructor(e,t,r,i,s,o){super(),Fe.isCurve(e)?(this.controlPoint1=e.controlPoint1.clone().round(2),this.controlPoint2=e.controlPoint2.clone().round(2),this.endPoint=e.end.clone().round(2)):typeof e=="number"?(this.controlPoint1=new P(e,t).round(2),this.controlPoint2=new P(r,i).round(2),this.endPoint=new P(s,o).round(2)):(this.controlPoint1=P.create(e).round(2),this.controlPoint2=P.create(t).round(2),this.endPoint=P.create(r).round(2))}get type(){return"C"}get curve(){return new Fe(this.start,this.controlPoint1,this.controlPoint2,this.end)}bbox(){return this.curve.bbox()}closestPoint(e){return this.curve.closestPoint(e)}closestPointLength(e){return this.curve.closestPointLength(e)}closestPointNormalizedLength(e){return this.curve.closestPointNormalizedLength(e)}closestPointTangent(e){return this.curve.closestPointTangent(e)}length(){return this.curve.length()}divideAt(e,t={}){const r=this.curve.divideAt(e,t);return[new sn(r[0]),new sn(r[1])]}divideAtLength(e,t={}){const r=this.curve.divideAtLength(e,t);return[new sn(r[0]),new sn(r[1])]}divideAtT(e){const t=this.curve.divideAtT(e);return[new sn(t[0]),new sn(t[1])]}getSubdivisions(){return[]}pointAt(e){return this.curve.pointAt(e)}pointAtLength(e){return this.curve.pointAtLength(e)}tangentAt(e){return this.curve.tangentAt(e)}tangentAtLength(e){return this.curve.tangentAtLength(e)}isDifferentiable(){if(!this.previousSegment)return!1;const e=this.start,t=this.controlPoint1,r=this.controlPoint2,i=this.end;return!(e.equals(t)&&t.equals(r)&&r.equals(i))}scale(e,t,r){return this.controlPoint1.scale(e,t,r),this.controlPoint2.scale(e,t,r),this.end.scale(e,t,r),this}rotate(e,t){return this.controlPoint1.rotate(e,t),this.controlPoint2.rotate(e,t),this.end.rotate(e,t),this}translate(e,t){return typeof e=="number"?(this.controlPoint1.translate(e,t),this.controlPoint2.translate(e,t),this.end.translate(e,t)):(this.controlPoint1.translate(e),this.controlPoint2.translate(e),this.end.translate(e)),this}equals(e){return this.start.equals(e.start)&&this.end.equals(e.end)&&this.controlPoint1.equals(e.controlPoint1)&&this.controlPoint2.equals(e.controlPoint2)}clone(){return new sn(this.controlPoint1,this.controlPoint2,this.end)}toJSON(){return{type:this.type,start:this.start.toJSON(),controlPoint1:this.controlPoint1.toJSON(),controlPoint2:this.controlPoint2.toJSON(),end:this.end.toJSON()}}serialize(){const e=this.controlPoint1,t=this.controlPoint2,r=this.end;return[this.type,e.x,e.y,t.x,t.y,r.x,r.y].join(" ")}}(function(n){function e(...t){const r=t.length,i=t[0];if(Fe.isCurve(i))return new n(i);if(P.isPointLike(i)){if(r===3)return new n(t[0],t[1],t[2]);const o=[];for(let a=0;a<r;a+=3)o.push(new n(t[a],t[a+1],t[a+2]));return o}if(r===6)return new n(t[0],t[1],t[2],t[3],t[4],t[5]);const s=[];for(let o=0;o<r;o+=6)s.push(new n(t[o],t[o+1],t[o+2],t[o+3],t[o+4],t[o+5]));return s}n.create=e})(sn||(sn={}));function Wl(n,e,t){return{x:n*Math.cos(t)-e*Math.sin(t),y:n*Math.sin(t)+e*Math.cos(t)}}function z1(n,e,t,r,i,s){const o=.3333333333333333,a=2/3;return[o*n+a*t,o*e+a*r,o*i+a*t,o*s+a*r,i,s]}function F1(n,e,t,r,i,s,o,a,l,c){const u=Math.PI*120/180,h=Math.PI/180*(+i||0);let f=[],d,g,p,b,m;if(c)g=c[0],p=c[1],b=c[2],m=c[3];else{d=Wl(n,e,-h),n=d.x,e=d.y,d=Wl(a,l,-h),a=d.x,l=d.y;const X=(n-a)/2,T=(e-l)/2;let k=X*X/(t*t)+T*T/(r*r);k>1&&(k=Math.sqrt(k),t=k*t,r=k*r);const Q=t*t,R=r*r,z=(s===o?-1:1)*Math.sqrt(Math.abs((Q*R-Q*T*T-R*X*X)/(Q*T*T+R*X*X)));b=z*t*T/r+(n+a)/2,m=z*-r*X/t+(e+l)/2,g=Math.asin((e-m)/r),p=Math.asin((l-m)/r),g=n<b?Math.PI-g:g,p=a<b?Math.PI-p:p,g<0&&(g=Math.PI*2+g),p<0&&(p=Math.PI*2+p),o&&g>p&&(g-=Math.PI*2),!o&&p>g&&(p-=Math.PI*2)}let v=p-g;if(Math.abs(v)>u){const X=p,T=a,k=l;p=g+u*(o&&p>g?1:-1),a=b+t*Math.cos(p),l=m+r*Math.sin(p),f=F1(a,l,t,r,i,0,o,T,k,[p,X,b,m])}v=p-g;const y=Math.cos(g),w=Math.sin(g),x=Math.cos(p),C=Math.sin(p),S=Math.tan(v/4),E=4/3*(t*S),A=4/3*(r*S),M=[n,e],O=[n+E*w,e-A*y],$=[a+E*C,l-A*x],V=[a,l];if(O[0]=2*M[0]-O[0],O[1]=2*M[1]-O[1],c)return[O,$,V].concat(f);{f=[O,$,V].concat(f).join().split(",");const X=[],T=f.length;for(let k=0;k<T;k+=1)X[k]=k%2?Wl(+f[k-1],+f[k],h).y:Wl(+f[k],+f[k+1],h).x;return X}}function hq(n){if(!n)return null;const e=`
@@ -1 +1,9 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  export declare const NAMESPACE = "graph-collection-manager";
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
10
  graphMinimap: import("antd-style").SerializedStyles;
3
11
  addButtonClass: import("antd-style").SerializedStyles;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import lodash from 'lodash';
2
10
  import { CollectionOptions } from '@nocobase/client';
3
11
  export declare const useGCMTranslation: () => import("react-i18next").UseTranslationResponse<"graph-collection-manager", undefined>;
@@ -1,7 +1,16 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  module.exports = {
2
11
  "@ant-design/icons": "5.2.6",
3
12
  "@formily/shared": "2.3.0",
4
- "@nocobase/client": "1.0.0-alpha.1",
13
+ "@nocobase/client": "1.0.0-alpha.3",
5
14
  "react": "18.2.0",
6
15
  "@emotion/css": "11.11.2",
7
16
  "@formily/react": "2.3.0",
@@ -9,9 +18,9 @@ module.exports = {
9
18
  "lodash": "4.17.21",
10
19
  "react-router-dom": "6.21.0",
11
20
  "@formily/reactive": "2.3.0",
12
- "@nocobase/utils": "1.0.0-alpha.1",
21
+ "@nocobase/utils": "1.0.0-alpha.3",
13
22
  "react-i18next": "11.18.6",
14
- "@nocobase/server": "1.0.0-alpha.1",
23
+ "@nocobase/server": "1.0.0-alpha.3",
15
24
  "ahooks": "3.7.8",
16
- "@nocobase/database": "1.0.0-alpha.1"
25
+ "@nocobase/database": "1.0.0-alpha.3"
17
26
  };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  export * from './server';
2
10
  export { default } from './server';
package/dist/index.js CHANGED
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __create = Object.create;
2
11
  var __defProp = Object.defineProperty;
3
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,2 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  declare const _default: import("@nocobase/database").CollectionOptions;
2
10
  export default _default;
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __defProp = Object.defineProperty;
2
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,3 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
1
9
  import { Plugin } from '@nocobase/server';
2
10
  export declare class PluginGraphCollectionManagerServer extends Plugin {
3
11
  load(): Promise<void>;
@@ -1,3 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
1
10
  var __defProp = Object.defineProperty;
2
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "可视化数据表管理",
5
5
  "description": "An ER diagram-like tool. Currently only the Master database is supported.",
6
6
  "description.zh-CN": "类似 ER 图的工具,目前只支持主数据库。",
7
- "version": "1.0.0-alpha.1",
7
+ "version": "1.0.0-alpha.3",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "homepage": "https://docs.nocobase.com/handbook/graph-collection-manager",
@@ -35,7 +35,7 @@
35
35
  "@nocobase/test": "1.x",
36
36
  "@nocobase/utils": "1.x"
37
37
  },
38
- "gitHead": "c73b6d2032a6151fdfeebeb0ec923d766578c53c",
38
+ "gitHead": "7ccb137c7616cba5d238f87368239640e1d9ace1",
39
39
  "keywords": [
40
40
  "Data model tools"
41
41
  ]