diff --git a/404.html b/404.html index f1da7374..b7b99e47 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/articles.json b/_next/data/qzYbTkNNS6ObniSYeql0q/articles.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/articles.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/articles.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/articles/Building-this-blog.json b/_next/data/qzYbTkNNS6ObniSYeql0q/articles/Building-this-blog.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/articles/Building-this-blog.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/articles/Building-this-blog.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/articles/Handy-heap-cheat-sheet.json b/_next/data/qzYbTkNNS6ObniSYeql0q/articles/Handy-heap-cheat-sheet.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/articles/Handy-heap-cheat-sheet.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/articles/Handy-heap-cheat-sheet.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/articles/Sort-algorithm.json b/_next/data/qzYbTkNNS6ObniSYeql0q/articles/Sort-algorithm.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/articles/Sort-algorithm.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/articles/Sort-algorithm.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/articles/The-beauty-of-design-parten.json b/_next/data/qzYbTkNNS6ObniSYeql0q/articles/The-beauty-of-design-parten.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/articles/The-beauty-of-design-parten.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/articles/The-beauty-of-design-parten.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/articles/create-blog-cicd-by-github.json b/_next/data/qzYbTkNNS6ObniSYeql0q/articles/create-blog-cicd-by-github.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/articles/create-blog-cicd-by-github.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/articles/create-blog-cicd-by-github.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/articles/graph-for-economics-1.json b/_next/data/qzYbTkNNS6ObniSYeql0q/articles/graph-for-economics-1.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/articles/graph-for-economics-1.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/articles/graph-for-economics-1.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/articles/graph-for-economics-2.json b/_next/data/qzYbTkNNS6ObniSYeql0q/articles/graph-for-economics-2.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/articles/graph-for-economics-2.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/articles/graph-for-economics-2.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/articles/hello-world.json b/_next/data/qzYbTkNNS6ObniSYeql0q/articles/hello-world.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/articles/hello-world.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/articles/hello-world.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/articles/init-a-new-hexo-project.json b/_next/data/qzYbTkNNS6ObniSYeql0q/articles/init-a-new-hexo-project.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/articles/init-a-new-hexo-project.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/articles/init-a-new-hexo-project.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/articles/introduction-for-k8s-2.json b/_next/data/qzYbTkNNS6ObniSYeql0q/articles/introduction-for-k8s-2.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/articles/introduction-for-k8s-2.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/articles/introduction-for-k8s-2.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/articles/introduction-for-k8s.json b/_next/data/qzYbTkNNS6ObniSYeql0q/articles/introduction-for-k8s.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/articles/introduction-for-k8s.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/articles/introduction-for-k8s.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/articles/python-dict.json b/_next/data/qzYbTkNNS6ObniSYeql0q/articles/python-dict.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/articles/python-dict.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/articles/python-dict.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/articles/the-using-in-cpp.json b/_next/data/qzYbTkNNS6ObniSYeql0q/articles/the-using-in-cpp.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/articles/the-using-in-cpp.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/articles/the-using-in-cpp.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/articles/use-paste-image-and-vscode-memo.json b/_next/data/qzYbTkNNS6ObniSYeql0q/articles/use-paste-image-and-vscode-memo.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/articles/use-paste-image-and-vscode-memo.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/articles/use-paste-image-and-vscode-memo.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/articles/why-homogeneous.json b/_next/data/qzYbTkNNS6ObniSYeql0q/articles/why-homogeneous.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/articles/why-homogeneous.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/articles/why-homogeneous.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/clips.json b/_next/data/qzYbTkNNS6ObniSYeql0q/clips.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/clips.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/clips.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/ideas.json b/_next/data/qzYbTkNNS6ObniSYeql0q/ideas.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/ideas.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/ideas.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/ideas/blog-in-next.json b/_next/data/qzYbTkNNS6ObniSYeql0q/ideas/blog-in-next.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/ideas/blog-in-next.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/ideas/blog-in-next.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/ideas/blog-syntax.json b/_next/data/qzYbTkNNS6ObniSYeql0q/ideas/blog-syntax.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/ideas/blog-syntax.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/ideas/blog-syntax.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/ideas/first-idea.json b/_next/data/qzYbTkNNS6ObniSYeql0q/ideas/first-idea.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/ideas/first-idea.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/ideas/first-idea.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/ideas/newest.json b/_next/data/qzYbTkNNS6ObniSYeql0q/ideas/newest.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/ideas/newest.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/ideas/newest.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/ideas/using-chart-js.json b/_next/data/qzYbTkNNS6ObniSYeql0q/ideas/using-chart-js.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/ideas/using-chart-js.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/ideas/using-chart-js.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/index.json b/_next/data/qzYbTkNNS6ObniSYeql0q/index.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/index.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/index.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/aws.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/aws.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags/aws.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags/aws.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/blog.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/blog.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags/blog.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags/blog.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/c++.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/c++.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags/c++.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags/c++.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/ci-cd.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/ci-cd.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags/ci-cd.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags/ci-cd.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/cloud-computing.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/cloud-computing.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags/cloud-computing.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags/cloud-computing.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/cloud-native.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/cloud-native.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags/cloud-native.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags/cloud-native.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/devops.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/devops.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags/devops.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags/devops.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/docker.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/docker.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags/docker.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags/docker.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/github.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/github.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags/github.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags/github.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/hexo.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/hexo.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags/hexo.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags/hexo.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/iac.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/iac.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags/iac.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags/iac.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/javascript.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/javascript.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags/javascript.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags/javascript.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/kubernetes.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/kubernetes.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags/kubernetes.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags/kubernetes.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/nextjs.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/nextjs.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags/nextjs.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags/nextjs.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/python.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/python.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags/python.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags/python.json diff --git a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/vscode.json b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/vscode.json similarity index 100% rename from _next/data/F50WyhgIVdS60hm6Jezjw/tags/vscode.json rename to _next/data/qzYbTkNNS6ObniSYeql0q/tags/vscode.json diff --git "a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/\346\216\222\345\272\217.json" "b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/\346\216\222\345\272\217.json" similarity index 100% rename from "_next/data/F50WyhgIVdS60hm6Jezjw/tags/\346\216\222\345\272\217.json" rename to "_next/data/qzYbTkNNS6ObniSYeql0q/tags/\346\216\222\345\272\217.json" diff --git "a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/\346\225\260\346\215\256\347\273\223\346\236\204.json" "b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/\346\225\260\346\215\256\347\273\223\346\236\204.json" similarity index 100% rename from "_next/data/F50WyhgIVdS60hm6Jezjw/tags/\346\225\260\346\215\256\347\273\223\346\236\204.json" rename to "_next/data/qzYbTkNNS6ObniSYeql0q/tags/\346\225\260\346\215\256\347\273\223\346\236\204.json" diff --git "a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/\346\235\202\346\212\200.json" "b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/\346\235\202\346\212\200.json" similarity index 100% rename from "_next/data/F50WyhgIVdS60hm6Jezjw/tags/\346\235\202\346\212\200.json" rename to "_next/data/qzYbTkNNS6ObniSYeql0q/tags/\346\235\202\346\212\200.json" diff --git "a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/\346\235\202\350\260\210.json" "b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/\346\235\202\350\260\210.json" similarity index 100% rename from "_next/data/F50WyhgIVdS60hm6Jezjw/tags/\346\235\202\350\260\210.json" rename to "_next/data/qzYbTkNNS6ObniSYeql0q/tags/\346\235\202\350\260\210.json" diff --git "a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/\347\254\224\350\256\260.json" "b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/\347\254\224\350\256\260.json" similarity index 100% rename from "_next/data/F50WyhgIVdS60hm6Jezjw/tags/\347\254\224\350\256\260.json" rename to "_next/data/qzYbTkNNS6ObniSYeql0q/tags/\347\254\224\350\256\260.json" diff --git "a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/\347\256\227\346\263\225.json" "b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/\347\256\227\346\263\225.json" similarity index 100% rename from "_next/data/F50WyhgIVdS60hm6Jezjw/tags/\347\256\227\346\263\225.json" rename to "_next/data/qzYbTkNNS6ObniSYeql0q/tags/\347\256\227\346\263\225.json" diff --git "a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/\347\256\227\346\263\225\347\253\236\350\265\233.json" "b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/\347\256\227\346\263\225\347\253\236\350\265\233.json" similarity index 100% rename from "_next/data/F50WyhgIVdS60hm6Jezjw/tags/\347\256\227\346\263\225\347\253\236\350\265\233.json" rename to "_next/data/qzYbTkNNS6ObniSYeql0q/tags/\347\256\227\346\263\225\347\253\236\350\265\233.json" diff --git "a/_next/data/F50WyhgIVdS60hm6Jezjw/tags/\350\256\276\350\256\241\346\250\241\345\274\217.json" "b/_next/data/qzYbTkNNS6ObniSYeql0q/tags/\350\256\276\350\256\241\346\250\241\345\274\217.json" similarity index 100% rename from "_next/data/F50WyhgIVdS60hm6Jezjw/tags/\350\256\276\350\256\241\346\250\241\345\274\217.json" rename to "_next/data/qzYbTkNNS6ObniSYeql0q/tags/\350\256\276\350\256\241\346\250\241\345\274\217.json" diff --git a/_next/static/chunks/3677.a87027ea7aa7a466.js b/_next/static/chunks/3677.a87027ea7aa7a466.js new file mode 100644 index 00000000..1d36f15a --- /dev/null +++ b/_next/static/chunks/3677.a87027ea7aa7a466.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3677],{3677:function(e,n,t){t.r(n),t.d(n,{ExcalidrawSceneImpl:function(){return a}});var l=t(5893),o=t(4474),i=t(7499),c=t(7294);function a(e){let{elements:n}=e,t=(0,c.useRef)();return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"w-full h-full",children:(0,l.jsx)(o.Excalidraw,{initialData:{elements:n,scrollToContent:!0},UIOptions:{canvasActions:{changeViewBackgroundColor:!1,export:!1,loadScene:!1,saveToActiveFile:!1,toggleTheme:!1,saveAsImage:!1}},theme:"light",viewModeEnabled:!0,zenModeEnabled:!0,gridModeEnabled:!1,detectScroll:!1,excalidrawAPI:e=>{t.current=e,setTimeout(()=>{e.scrollToContent(void 0,{fitToContent:!0})},1e3)},children:(0,l.jsx)(o.MainMenu,{children:(0,l.jsx)(o.MainMenu.Item,{icon:(0,l.jsx)(i.Z,{}),onSelect:()=>{var e;null===(e=t.current)||void 0===e||e.scrollToContent(void 0,{fitToContent:!0})},children:"Reset"})})})})})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/3677.c5da79315dfefa86.js b/_next/static/chunks/3677.c5da79315dfefa86.js deleted file mode 100644 index fa44fafe..00000000 --- a/_next/static/chunks/3677.c5da79315dfefa86.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3677],{3677:function(e,n,t){t.r(n),t.d(n,{ExcalidrawSceneImpl:function(){return c}});var l=t(5893),a=t(4474),o=t(7294);function c(e){let{elements:n}=e,t=(0,o.useRef)();return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"w-full h-full",children:(0,l.jsx)(a.Excalidraw,{initialData:{elements:n,scrollToContent:!0},UIOptions:{canvasActions:{changeViewBackgroundColor:!1,export:!1,loadScene:!1,saveToActiveFile:!1,toggleTheme:!1,saveAsImage:!1}},theme:"light",viewModeEnabled:!0,zenModeEnabled:!0,gridModeEnabled:!1,detectScroll:!1,excalidrawAPI:e=>{t.current=e,setTimeout(()=>{e.scrollToContent(void 0,{fitToContent:!0})},1e3)}})})})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/5957.a0f111aabfac2868.js b/_next/static/chunks/5957.b968446b29a69e2b.js similarity index 99% rename from _next/static/chunks/5957.a0f111aabfac2868.js rename to _next/static/chunks/5957.b968446b29a69e2b.js index 2c47fc73..d67f6cec 100644 --- a/_next/static/chunks/5957.a0f111aabfac2868.js +++ b/_next/static/chunks/5957.b968446b29a69e2b.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5957],{4182:function(t,e,n){var i;t.exports=(i=n(2241),function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=7)}([function(t,e){t.exports=i},function(t,e,n){"use strict";var i=n(0).FDLayoutConstants;function r(){}for(var o in i)r[o]=i[o];r.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,r.DEFAULT_RADIAL_SEPARATION=i.DEFAULT_EDGE_LENGTH,r.DEFAULT_COMPONENT_SEPERATION=60,r.TILE=!0,r.TILING_PADDING_VERTICAL=10,r.TILING_PADDING_HORIZONTAL=10,r.TREE_REDUCTION_ON_INCREMENTAL=!1,t.exports=r},function(t,e,n){"use strict";var i=n(0).FDLayoutEdge;function r(t,e,n){i.call(this,t,e,n)}for(var o in r.prototype=Object.create(i.prototype),i)r[o]=i[o];t.exports=r},function(t,e,n){"use strict";var i=n(0).LGraph;function r(t,e,n){i.call(this,t,e,n)}for(var o in r.prototype=Object.create(i.prototype),i)r[o]=i[o];t.exports=r},function(t,e,n){"use strict";var i=n(0).LGraphManager;function r(t){i.call(this,t)}for(var o in r.prototype=Object.create(i.prototype),i)r[o]=i[o];t.exports=r},function(t,e,n){"use strict";var i=n(0).FDLayoutNode,r=n(0).IMath;function o(t,e,n,r){i.call(this,t,e,n,r)}for(var s in o.prototype=Object.create(i.prototype),i)o[s]=i[s];o.prototype.move=function(){var t=this.graphManager.getLayout();this.displacementX=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*r.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*r.sign(this.displacementY)),null==this.child?this.moveBy(this.displacementX,this.displacementY):0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),t.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},o.prototype.propogateDisplacementToChildren=function(t,e){for(var n,i=this.getChild().getNodes(),r=0;r0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(e),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},E.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0){if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(e),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0}this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,i=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,i),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},E.prototype.getPositionsData=function(){for(var t=this.graphManager.getAllNodes(),e={},n=0;n1)for(s=0;si&&(i=Math.floor(s.y)),o=Math.floor(s.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new g(c.WORLD_CENTER_X-s.x/2,c.WORLD_CENTER_Y-s.y/2))},E.radialLayout=function(t,e,n){var i=Math.max(this.maxDiagonalInTree(t),h.DEFAULT_RADIAL_SEPARATION);E.branchRadialLayout(e,null,0,359,0,i);var r=y.calculateBounds(t),o=new v;o.setDeviceOrgX(r.getMinX()),o.setDeviceOrgY(r.getMinY()),o.setWorldOrgX(n.x),o.setWorldOrgY(n.y);for(var s=0;s1;){var d=p[0];p.splice(0,1);var y=l.indexOf(d);y>=0&&l.splice(y,1),g--,c--}s=null!=e?(l.indexOf(p[0])+1)%g:0;for(var v=Math.abs(i-n)/c,_=s;u!=c;_=++_%g){var m=l[_].getOtherEnd(t);if(m!=e){var N=(n+u*v)%360,A=(N+v)%360;E.branchRadialLayout(m,t,N,A,r+o,o),u++}}},E.maxDiagonalInTree=function(t){for(var e=d.MIN_VALUE,n=0;ne&&(e=i)}return e},E.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},E.prototype.groupZeroDegreeMembers=function(){var t=this,e={};this.memberGroups={},this.idToDummyNode={};for(var n=[],i=this.graphManager.getAllNodes(),r=0;r1){var i="DummyCompound_"+n;t.memberGroups[i]=e[n];var r=e[n][0].getParent(),o=new s(t.graphManager);o.id=i,o.paddingLeft=r.paddingLeft||0,o.paddingRight=r.paddingRight||0,o.paddingBottom=r.paddingBottom||0,o.paddingTop=r.paddingTop||0,t.idToDummyNode[i]=o;var a=t.getGraphManager().add(t.newGraph(),o),h=r.getChild();h.add(o);for(var l=0;l=0;t--){var e=this.compoundOrder[t],n=e.id,i=e.paddingLeft,r=e.paddingTop;this.adjustLocations(this.tiledMemberPack[n],e.rect.x,e.rect.y,i,r)}},E.prototype.repopulateZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack;Object.keys(e).forEach(function(n){var i=t.idToDummyNode[n],r=i.paddingLeft,o=i.paddingTop;t.adjustLocations(e[n],i.rect.x,i.rect.y,r,o)})},E.prototype.getToBeTiled=function(t){var e=t.id;if(null!=this.toBeTiled[e])return this.toBeTiled[e];var n=t.getChild();if(null==n)return this.toBeTiled[e]=!1,!1;for(var i=n.getNodes(),r=0;r0)return this.toBeTiled[e]=!1,!1;if(null==o.getChild()){this.toBeTiled[o.id]=!1;continue}if(!this.getToBeTiled(o))return this.toBeTiled[e]=!1,!1}return this.toBeTiled[e]=!0,!0},E.prototype.getNodeDegree=function(t){t.id;for(var e=t.getEdges(),n=0,i=0;ih&&(h=c.rect.height)}n+=h+t.verticalPadding}},E.prototype.tileCompoundMembers=function(t,e){var n=this;this.tiledMemberPack=[],Object.keys(t).forEach(function(i){var r=e[i];n.tiledMemberPack[i]=n.tileNodes(t[i],r.paddingLeft+r.paddingRight),r.rect.width=n.tiledMemberPack[i].width,r.rect.height=n.tiledMemberPack[i].height})},E.prototype.tileNodes=function(t,e){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,verticalPadding:h.TILING_PADDING_VERTICAL,horizontalPadding:h.TILING_PADDING_HORIZONTAL};t.sort(function(t,e){return t.rect.width*t.rect.height>e.rect.width*e.rect.height?-1:t.rect.width*t.rect.height0&&(r+=t.horizontalPadding),t.rowWidth[n]=r,t.width0&&(o+=t.verticalPadding);var s=0;o>t.rowHeight[n]&&(s=t.rowHeight[n],t.rowHeight[n]=o,s=t.rowHeight[n]-s),t.height+=s,t.rows[n].push(e)},E.prototype.getShortestRowIndex=function(t){for(var e=-1,n=Number.MAX_VALUE,i=0;in&&(e=i,n=t.rowWidth[i]);return e},E.prototype.canAddHorizontal=function(t,e,n){var i,r,o=this.getShortestRowIndex(t);if(o<0)return!0;var s=t.rowWidth[o];if(s+t.horizontalPadding+e<=t.width)return!0;var a=0;return t.rowHeight[o]0&&(a=n+t.verticalPadding-t.rowHeight[o]),i=t.width-s>=e+t.horizontalPadding?(t.height+a)/(s+e+t.horizontalPadding):(t.height+a)/t.width,a=n+t.verticalPadding,(r=t.widtho&&e!=n){i.splice(-1,1),t.rows[n].push(r),t.rowWidth[e]=t.rowWidth[e]-o,t.rowWidth[n]=t.rowWidth[n]+o,t.width=t.rowWidth[instance.getLongestRowIndex(t)];for(var s=Number.MIN_VALUE,a=0;as&&(s=i[a].height);e>0&&(s+=t.verticalPadding);var h=t.rowHeight[e]+t.rowHeight[n];t.rowHeight[e]=s,t.rowHeight[n]0)for(var g=s;g<=a;g++)u[0]+=this.grid[g][h-1].length+this.grid[g][h].length-1;if(a0)for(var g=h;g<=c;g++)u[3]+=this.grid[s-1][g].length+this.grid[s][g].length-1;for(var p=d.MAX_VALUE,f=0;f0&&(s=n.getGraphManager().add(n.newGraph(),o),this.processChildrenList(s,u,n))}},u.prototype.stop=function(){return this.stopped=!0,this};var p=function(t){t("layout","cose-bilkent",u)};"undefined"!=typeof cytoscape&&p(cytoscape),t.exports=p}]))},4485:function(t,e,n){t.exports=n(2894)},2894:function(t,e){var n,i;(function(){var r,o,s,a,h,l,c,u,g,p,d,f,y,v,E,_;s=Math.floor,p=Math.min,o=function(t,e){return te?1:0},g=function(t,e,n,i,r){var a;if(null==n&&(n=0),null==r&&(r=o),n<0)throw Error("lo must be non-negative");for(null==i&&(i=t.length);nr(e,t[a=s((n+i)/2)])?i=a:n=a+1;return[].splice.apply(t,[n,n-n].concat(e)),e},l=function(t,e,n){return null==n&&(n=o),t.push(e),v(t,0,t.length-1,n)},h=function(t,e){var n,i;return null==e&&(e=o),n=t.pop(),t.length?(i=t[0],t[0]=n,E(t,0,e)):i=n,i},u=function(t,e,n){var i;return null==n&&(n=o),i=t[0],t[0]=e,E(t,0,n),i},c=function(t,e,n){var i;return null==n&&(n=o),t.length&&0>n(t[0],e)&&(e=(i=[t[0],e])[0],t[0]=i[1],E(t,0,n)),e},a=function(t,e){var n,i,r,a,h,l;for(null==e&&(e=o),a=(function(){l=[];for(var e=0,n=s(t.length/2);0<=n?en;0<=n?e++:e--)l.push(e);return l}).apply(this).reverse(),h=[],i=0,r=a.length;in(i=d[l],r)&&(g(s,i,0,null,n),s.pop(),r=s[s.length-1]);return s}for(a(t,n),y=[],c=0,f=p(e,t.length);0<=f?cf;0<=f?++c:--c)y.push(h(t,n));return y},v=function(t,e,n,i){var r,s,a;for(null==i&&(i=o),r=t[n];n>e;){if(s=t[a=n-1>>1],0>i(r,s)){t[n]=s,n=a;continue}break}return t[n]=r},E=function(t,e,n){var i,r,s,a,h;for(null==n&&(n=o),r=t.length,h=e,s=t[e],i=2*e+1;in(t[i],t[a]))&&(i=a),t[e]=t[i],i=2*(e=i)+1;return t[e]=s,v(t,h,e,n)},r=function(){function t(t){this.cmp=null!=t?t:o,this.nodes=[]}return t.push=l,t.pop=h,t.replace=u,t.pushpop=c,t.heapify=a,t.updateItem=y,t.nlargest=d,t.nsmallest=f,t.prototype.push=function(t){return l(this.nodes,t,this.cmp)},t.prototype.pop=function(){return h(this.nodes,this.cmp)},t.prototype.peek=function(){return this.nodes[0]},t.prototype.contains=function(t){return -1!==this.nodes.indexOf(t)},t.prototype.replace=function(t){return u(this.nodes,t,this.cmp)},t.prototype.pushpop=function(t){return c(this.nodes,t,this.cmp)},t.prototype.heapify=function(){return a(this.nodes,this.cmp)},t.prototype.updateItem=function(t){return y(this.nodes,t,this.cmp)},t.prototype.clear=function(){return this.nodes=[]},t.prototype.empty=function(){return 0===this.nodes.length},t.prototype.size=function(){return this.nodes.length},t.prototype.clone=function(){var e;return(e=new t).nodes=this.nodes.slice(0),e},t.prototype.toArray=function(){return this.nodes.slice(0)},t.prototype.insert=t.prototype.push,t.prototype.top=t.prototype.peek,t.prototype.front=t.prototype.peek,t.prototype.has=t.prototype.contains,t.prototype.copy=t.prototype.clone,t}(),n=[],void 0!==(i="function"==typeof(_=function(){return r})?_.apply(e,n):_)&&(t.exports=i)}).call(this)},2241:function(t){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=26)}([function(t,e,n){"use strict";function i(){}i.QUALITY=1,i.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,i.DEFAULT_INCREMENTAL=!1,i.DEFAULT_ANIMATION_ON_LAYOUT=!0,i.DEFAULT_ANIMATION_DURING_LAYOUT=!1,i.DEFAULT_ANIMATION_PERIOD=50,i.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,i.DEFAULT_GRAPH_MARGIN=15,i.NODE_DIMENSIONS_INCLUDE_LABELS=!1,i.SIMPLE_NODE_SIZE=40,i.SIMPLE_NODE_HALF_SIZE=i.SIMPLE_NODE_SIZE/2,i.EMPTY_COMPOUND_NODE_SIZE=40,i.MIN_EDGE_LENGTH=1,i.WORLD_BOUNDARY=1e6,i.INITIAL_WORLD_BOUNDARY=i.WORLD_BOUNDARY/1e3,i.WORLD_CENTER_X=1200,i.WORLD_CENTER_Y=900,t.exports=i},function(t,e,n){"use strict";var i=n(2),r=n(8),o=n(9);function s(t,e,n){i.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=t,this.target=e}for(var a in s.prototype=Object.create(i.prototype),i)s[a]=i[a];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(t){if(this.source===t)return this.target;if(this.target===t)return this.source;throw"Node is not incident with this edge"},s.prototype.getOtherEndInGraph=function(t,e){for(var n=this.getOtherEnd(t),i=e.getGraphManager().getRoot();;){if(n.getOwner()==e)return n;if(n.getOwner()==i)break;n=n.getOwner().getParent()}return null},s.prototype.updateLength=function(){var t=[,,,,];this.isOverlapingSourceAndTarget=r.getIntersection(this.target.getRect(),this.source.getRect(),t),this.isOverlapingSourceAndTarget||(this.lengthX=t[0]-t[2],this.lengthY=t[1]-t[3],1>Math.abs(this.lengthX)&&(this.lengthX=o.sign(this.lengthX)),1>Math.abs(this.lengthY)&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),1>Math.abs(this.lengthX)&&(this.lengthX=o.sign(this.lengthX)),1>Math.abs(this.lengthY)&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=s},function(t,e,n){"use strict";t.exports=function(t){this.vGraphObject=t}},function(t,e,n){"use strict";var i=n(2),r=n(10),o=n(13),s=n(0),a=n(16),h=n(4);function l(t,e,n,s){null==n&&null==s&&(s=e),i.call(this,s),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=r.MIN_VALUE,this.inclusionTreeDepth=r.MAX_VALUE,this.vGraphObject=s,this.edges=[],this.graphManager=t,null!=n&&null!=e?this.rect=new o(e.x,e.y,n.width,n.height):this.rect=new o}for(var c in l.prototype=Object.create(i.prototype),i)l[c]=i[c];l.prototype.getEdges=function(){return this.edges},l.prototype.getChild=function(){return this.child},l.prototype.getOwner=function(){return this.owner},l.prototype.getWidth=function(){return this.rect.width},l.prototype.setWidth=function(t){this.rect.width=t},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(t){this.rect.height=t},l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},l.prototype.getCenter=function(){return new h(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new h(this.rect.x,this.rect.y)},l.prototype.getRect=function(){return this.rect},l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},l.prototype.setRect=function(t,e){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=e.width,this.rect.height=e.height},l.prototype.setCenter=function(t,e){this.rect.x=t-this.rect.width/2,this.rect.y=e-this.rect.height/2},l.prototype.setLocation=function(t,e){this.rect.x=t,this.rect.y=e},l.prototype.moveBy=function(t,e){this.rect.x+=t,this.rect.y+=e},l.prototype.getEdgeListToNode=function(t){var e=[],n=this;return n.edges.forEach(function(i){if(i.target==t){if(i.source!=n)throw"Incorrect edge source!";e.push(i)}}),e},l.prototype.getEdgesBetween=function(t){var e=[],n=this;return n.edges.forEach(function(i){if(!(i.source==n||i.target==n))throw"Incorrect edge source and/or target";(i.target==t||i.source==t)&&e.push(i)}),e},l.prototype.getNeighborsList=function(){var t=new Set,e=this;return e.edges.forEach(function(n){if(n.source==e)t.add(n.target);else{if(n.target!=e)throw"Incorrect incidency!";t.add(n.source)}}),t},l.prototype.withChildren=function(){var t=new Set;if(t.add(this),null!=this.child)for(var e=this.child.getNodes(),n=0;ne&&(this.rect.x-=(this.labelWidth-e)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-n)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==r.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},l.prototype.transform=function(t){var e=this.rect.x;e>s.WORLD_BOUNDARY?e=s.WORLD_BOUNDARY:e<-s.WORLD_BOUNDARY&&(e=-s.WORLD_BOUNDARY);var n=this.rect.y;n>s.WORLD_BOUNDARY?n=s.WORLD_BOUNDARY:n<-s.WORLD_BOUNDARY&&(n=-s.WORLD_BOUNDARY);var i=new h(e,n),r=t.inverseTransformPoint(i);this.setLocation(r.x,r.y)},l.prototype.getLeft=function(){return this.rect.x},l.prototype.getRight=function(){return this.rect.x+this.rect.width},l.prototype.getTop=function(){return this.rect.y},l.prototype.getBottom=function(){return this.rect.y+this.rect.height},l.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},t.exports=l},function(t,e,n){"use strict";function i(t,e){null==t&&null==e?(this.x=0,this.y=0):(this.x=t,this.y=e)}i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.setX=function(t){this.x=t},i.prototype.setY=function(t){this.y=t},i.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},i.prototype.getCopy=function(){return new i(this.x,this.y)},i.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},t.exports=i},function(t,e,n){"use strict";var i=n(2),r=n(10),o=n(0),s=n(6),a=n(3),h=n(1),l=n(13),c=n(12),u=n(11);function g(t,e,n){i.call(this,n),this.estimatedSize=r.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=t,null!=e&&e instanceof s?this.graphManager=e:null!=e&&e instanceof Layout&&(this.graphManager=e.graphManager)}for(var p in g.prototype=Object.create(i.prototype),i)g[p]=i[p];g.prototype.getNodes=function(){return this.nodes},g.prototype.getEdges=function(){return this.edges},g.prototype.getGraphManager=function(){return this.graphManager},g.prototype.getParent=function(){return this.parent},g.prototype.getLeft=function(){return this.left},g.prototype.getRight=function(){return this.right},g.prototype.getTop=function(){return this.top},g.prototype.getBottom=function(){return this.bottom},g.prototype.isConnected=function(){return this.isConnected},g.prototype.add=function(t,e,n){if(null==e&&null==n){var i=t;if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(i)>-1)throw"Node already in graph!";return i.owner=this,this.getNodes().push(i),i}var r=t;if(!(this.getNodes().indexOf(e)>-1&&this.getNodes().indexOf(n)>-1))throw"Source or target not in graph!";if(!(e.owner==n.owner&&e.owner==this))throw"Both owners must be this graph!";return e.owner!=n.owner?null:(r.source=e,r.target=n,r.isInterGraph=!1,this.getEdges().push(r),e.edges.push(r),n!=e&&n.edges.push(r),r)},g.prototype.remove=function(t){if(t instanceof a){if(null==t)throw"Node is null!";if(!(null!=t.owner&&t.owner==this))throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var e,n=t.edges.slice(),i=n.length,r=0;r-1&&l>-1))throw"Source and/or target doesn't know this edge!";e.source.edges.splice(s,1),e.target!=e.source&&e.target.edges.splice(l,1);var o=e.source.owner.getEdges().indexOf(e);if(-1==o)throw"Not in owner's edge list!";e.source.owner.getEdges().splice(o,1)}},g.prototype.updateLeftTop=function(){for(var t,e,n,i=r.MAX_VALUE,o=r.MAX_VALUE,s=this.getNodes(),a=s.length,h=0;ht&&(i=t),o>e&&(o=e)}return i==r.MAX_VALUE?null:(n=void 0!=s[0].getParent().paddingLeft?s[0].getParent().paddingLeft:this.margin,this.left=o-n,this.top=i-n,new c(this.left,this.top))},g.prototype.updateBounds=function(t){for(var e,n,i,o,s,a=r.MAX_VALUE,h=-r.MAX_VALUE,c=r.MAX_VALUE,u=-r.MAX_VALUE,g=this.nodes,p=g.length,d=0;de&&(a=e),hi&&(c=i),ue&&(s=e),ai&&(h=i),c=this.nodes.length){var h=0;r.forEach(function(t){t.owner==n&&h++}),h==this.nodes.length&&(this.isConnected=!0)}},t.exports=g},function(t,e,n){"use strict";var i,r=n(1);function o(t){i=n(5),this.layout=t,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null),n=this.add(t,e);return this.setRootGraph(n),this.rootGraph},o.prototype.add=function(t,e,n,i,r){if(null==n&&null==i&&null==r){if(null==t)throw"Graph is null!";if(null==e)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),null!=t.parent)throw"Already has a parent!";if(null!=e.child)throw"Already has a child!";return t.parent=e,e.child=t,t}r=n,i=e,n=t;var o=i.getOwner(),s=r.getOwner();if(!(null!=o&&o.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(null!=s&&s.getGraphManager()==this))throw"Target not in this graph mgr!";if(o==s)return n.isInterGraph=!1,o.add(n,i,r);if(n.isInterGraph=!0,n.source=i,n.target=r,this.edges.indexOf(n)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(n),!(null!=n.source&&null!=n.target))throw"Edge source and/or target is null!";if(!(-1==n.source.edges.indexOf(n)&&-1==n.target.edges.indexOf(n)))throw"Edge already in source and/or target incidency list!";return n.source.edges.push(n),n.target.edges.push(n),n},o.prototype.remove=function(t){if(t instanceof i){var e,n,o=t;if(o.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(o==this.rootGraph||null!=o.parent&&o.parent.graphManager==this))throw"Invalid parent node!";for(var s=[],a=(s=s.concat(o.getEdges())).length,h=0;h=e.getRight()?n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight()):e.getX()<=t.getX()&&e.getRight()>=t.getRight()&&(n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())),t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()?n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()):e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()&&(n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()));var o=Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX()));e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()&&(o=1);var s=o*n[0],a=n[1]/o;n[0]s?(n[0]=i,n[1]=h,n[2]=o,n[3]=_):ro?(n[0]=a,n[1]=r,n[2]=v,n[3]=s):io?(n[0]=c,n[1]=u,T=!0):(n[0]=l,n[1]=h,T=!0):O===I&&(i>o?(n[0]=a,n[1]=h,T=!0):(n[0]=g,n[1]=u,T=!0)),-D===I?o>i?(n[2]=E,n[3]=_,L=!0):(n[2]=v,n[3]=y,L=!0):D===I&&(o>i?(n[2]=f,n[3]=y,L=!0):(n[2]=m,n[3]=_,L=!0)),T&&L)return!1;if(i>o?r>s?(w=this.getCardinalDirection(O,I,4),x=this.getCardinalDirection(D,I,2)):(w=this.getCardinalDirection(-O,I,3),x=this.getCardinalDirection(-D,I,1)):r>s?(w=this.getCardinalDirection(-O,I,1),x=this.getCardinalDirection(-D,I,3)):(w=this.getCardinalDirection(O,I,2),x=this.getCardinalDirection(D,I,4)),!T)switch(w){case 1:R=h,C=i+-d/I,n[0]=C,n[1]=R;break;case 2:C=g,R=r+p*I,n[0]=C,n[1]=R;break;case 3:R=u,C=i+d/I,n[0]=C,n[1]=R;break;case 4:C=c,R=r+-p*I,n[0]=C,n[1]=R}if(!L)switch(x){case 1:b=y,M=o+-A/I,n[2]=M,n[3]=b;break;case 2:M=m,b=s+N*I,n[2]=M,n[3]=b;break;case 3:b=_,M=o+A/I,n[2]=M,n[3]=b;break;case 4:M=E,b=s+-N*I,n[2]=M,n[3]=b}}return!1},r.getCardinalDirection=function(t,e,n){return t>e?n:1+n%4},r.getIntersection=function(t,e,n,r){if(null==r)return this.getIntersection2(t,e,n);var o=t.x,s=t.y,a=e.x,h=e.y,l=n.x,c=n.y,u=r.x,g=r.y,p=void 0,d=void 0,f=void 0,y=void 0,v=void 0,E=void 0,_=void 0,m=void 0,N=void 0;return(f=h-s,v=o-a,_=a*s-o*h,y=g-c,E=l-u,m=u*c-l*g,0==(N=f*E-y*v))?null:(p=(v*m-E*_)/N,d=(y*_-f*m)/N,new i(p,d))},r.angleOfVector=function(t,e,n,i){var r=void 0;return t!==n?(r=Math.atan((i-e)/(n-t)),n0?1:t<0?-1:0},i.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},i.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},t.exports=i},function(t,e,n){"use strict";function i(){}i.MAX_VALUE=2147483647,i.MIN_VALUE=-2147483648,t.exports=i},function(t,e,n){"use strict";var i=function(){function t(t,e){for(var n=0;n0&&e;){for(a.push(l[0]);a.length>0&&e;){var c=a[0];a.splice(0,1),s.add(c);for(var u=c.getEdges(),o=0;o-1&&l.splice(f,1)}s=new Set,h=new Map}else t=[]}return t},g.prototype.createDummyNodesForBendpoints=function(t){for(var e=[],n=t.source,i=this.graphManager.calcLowestCommonAncestor(t.source,t.target),r=0;r0){for(var r=this.edgeToDummyNodes.get(n),o=0;o=0&&e.splice(u,1),a.getNeighborsList().forEach(function(t){if(0>n.indexOf(t)){var e=i.get(t)-1;1==e&&l.push(t),i.set(t,e)}})}n=n.concat(l),(1==e.length||2==e.length)&&(r=!0,o=e[0])}return o},g.prototype.setGraphManager=function(t){this.graphManager=t},t.exports=g},function(t,e,n){"use strict";function i(){}i.seed=1,i.x=0,i.nextDouble=function(){return i.x=1e4*Math.sin(i.seed++),i.x-Math.floor(i.x)},t.exports=i},function(t,e,n){"use strict";var i=n(4);function r(t,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}r.prototype.getWorldOrgX=function(){return this.lworldOrgX},r.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},r.prototype.getWorldOrgY=function(){return this.lworldOrgY},r.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},r.prototype.getWorldExtX=function(){return this.lworldExtX},r.prototype.setWorldExtX=function(t){this.lworldExtX=t},r.prototype.getWorldExtY=function(){return this.lworldExtY},r.prototype.setWorldExtY=function(t){this.lworldExtY=t},r.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},r.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},r.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},r.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},r.prototype.getDeviceExtX=function(){return this.ldeviceExtX},r.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},r.prototype.getDeviceExtY=function(){return this.ldeviceExtY},r.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},r.prototype.transformX=function(t){var e=0,n=this.lworldExtX;return 0!=n&&(e=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/n),e},r.prototype.transformY=function(t){var e=0,n=this.lworldExtY;return 0!=n&&(e=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/n),e},r.prototype.inverseTransformX=function(t){var e=0,n=this.ldeviceExtX;return 0!=n&&(e=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/n),e},r.prototype.inverseTransformY=function(t){var e=0,n=this.ldeviceExtY;return 0!=n&&(e=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/n),e},r.prototype.inverseTransformPoint=function(t){return new i(this.inverseTransformX(t.x),this.inverseTransformY(t.y))},t.exports=r},function(t,e,n){"use strict";var i=n(15),r=n(7),o=n(0),s=n(8),a=n(9);function h(){i.call(this),this.useSmartIdealEdgeLengthCalculation=r.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=r.DEFAULT_EDGE_LENGTH,this.springConstant=r.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=r.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=r.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=r.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=r.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*r.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=r.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=r.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=r.MAX_ITERATIONS}for(var l in h.prototype=Object.create(i.prototype),i)h[l]=i[l];h.prototype.initParameters=function(){i.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=r.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},h.prototype.calcIdealEdgeLengths=function(){for(var t,e,n,i,s,a,h=this.getGraphManager().getAllEdges(),l=0;lr.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*r.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-r.ADAPTATION_LOWER_NODE_LIMIT)/(r.ADAPTATION_UPPER_NODE_LIMIT-r.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-r.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=r.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>r.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(r.COOLING_ADAPTATION_FACTOR,1-(t-r.ADAPTATION_LOWER_NODE_LIMIT)/(r.ADAPTATION_UPPER_NODE_LIMIT-r.ADAPTATION_LOWER_NODE_LIMIT)*(1-r.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=r.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var t,e=this.getAllEdges(),n=0;n0)||void 0===arguments[0]||arguments[0],a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],h=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%r.GRID_CALCULATION_CHECK_PERIOD==1&&s&&this.updateGrid(),o=new Set,t=0;t(h=e.getEstimatedSize()*this.gravityRangeFactor)||a>h)&&(t.gravitationForceX=-this.gravityConstant*r,t.gravitationForceY=-this.gravityConstant*o):(s>(h=e.getEstimatedSize()*this.compoundGravityRangeFactor)||a>h)&&(t.gravitationForceX=-this.gravityConstant*r*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*o*this.compoundGravityConstant)},h.prototype.isConverged=function(){var t,e=!1;return this.totalIterations>this.maxIterations/3&&(e=2>Math.abs(this.totalDisplacement-this.oldTotalDisplacement)),t=this.totalDisplacement=a.length||l>=a[0].length)){for(var c=0;ct}}]),t}();t.exports=o},function(t,e,n){"use strict";var i=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t),this.sequence1=e,this.sequence2=n,this.match_score=i,this.mismatch_penalty=r,this.gap_penalty=o,this.iMax=e.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;n--){var i=this.listeners[n];i.event===t&&i.callback===e&&this.listeners.splice(n,1)}},r.emit=function(t,e){for(var n=0;n-1&&t%1==0&&t-1}},4705:function(t,e,n){var i=n(8470);t.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},4785:function(t,e,n){var i=n(1989),r=n(8407),o=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},1285:function(t,e,n){var i=n(5050);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},6e3:function(t,e,n){var i=n(5050);t.exports=function(t){return i(this,t).get(t)}},9916:function(t,e,n){var i=n(5050);t.exports=function(t){return i(this,t).has(t)}},5265:function(t,e,n){var i=n(5050);t.exports=function(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},4523:function(t,e,n){var i=n(8306);t.exports=function(t){var e=i(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},4536:function(t,e,n){var i=n(852)(Object,"create");t.exports=i},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5639:function(t,e,n){var i=n(1957),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();t.exports=o},5514:function(t,e,n){var i=n(4523),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=i(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,function(t,n,i,r){e.push(i?r.replace(o,"$1"):n||t)}),e});t.exports=s},327:function(t,e,n){var i=n(3448),r=1/0;t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-r?"-0":e}},346:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7990:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},3279:function(t,e,n){var i=n(3218),r=n(1927),o=n(4841),s=Math.max,a=Math.min;t.exports=function(t,e,n){var h,l,c,u,g,p,d=0,f=!1,y=!1,v=!0;if("function"!=typeof t)throw TypeError("Expected a function");function E(e){var n=h,i=l;return h=l=void 0,d=e,u=t.apply(i,n)}function _(t){var n=t-p,i=t-d;return void 0===p||n>=e||n<0||y&&i>=c}function m(){var t,n,i,o=r();if(_(o))return N(o);g=setTimeout(m,(t=o-p,n=o-d,i=e-t,y?a(i,c-n):i))}function N(t){return(g=void 0,v&&h)?E(t):(h=l=void 0,u)}function A(){var t,n=r(),i=_(n);if(h=arguments,l=this,p=n,i){if(void 0===g)return d=t=p,g=setTimeout(m,e),f?E(t):u;if(y)return clearTimeout(g),g=setTimeout(m,e),E(p)}return void 0===g&&(g=setTimeout(m,e)),u}return e=o(e)||0,i(n)&&(f=!!n.leading,c=(y="maxWait"in n)?s(o(n.maxWait)||0,e):c,v="trailing"in n?!!n.trailing:v),A.cancel=function(){void 0!==g&&clearTimeout(g),d=0,h=p=l=g=void 0},A.flush=function(){return void 0===g?u:N(r())},A}},7813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},7361:function(t,e,n){var i=n(7786);t.exports=function(t,e,n){var r=null==t?void 0:i(t,e);return void 0===r?n:r}},1469:function(t){var e=Array.isArray;t.exports=e},3560:function(t,e,n){var i=n(4239),r=n(3218);t.exports=function(t){if(!r(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},3218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3448:function(t,e,n){var i=n(4239),r=n(7005);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==i(t)}},8306:function(t,e,n){var i=n(3369);function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(r.Cache||i),n}r.Cache=i,t.exports=r},1927:function(t,e,n){var i=n(5639);t.exports=function(){return i.Date.now()}},6968:function(t,e,n){var i=n(611);t.exports=function(t,e,n){return null==t?t:i(t,e,n)}},4841:function(t,e,n){var i=n(7561),r=n(3218),o=n(3448),s=0/0,a=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return s;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=h.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):a.test(t)?s:+t}},84:function(t,e,n){var i=n(9932),r=n(278),o=n(1469),s=n(3448),a=n(5514),h=n(327),l=n(9833);t.exports=function(t){return o(t)?i(t,h):s(t)?[t]:r(a(l(t)))}},9833:function(t,e,n){var i=n(531);t.exports=function(t){return null==t?"":i(t)}},9202:function(t,e,n){"use strict";n.r(e),n.d(e,{diagram:function(){return P}});var i=n(8539),r=n(9058),o=n(4607),s=n(4218),a=n(6881),h=n(1619),l=n(2281),c=n(7201);n(7484),n(7967),n(7856);var u=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,4],n=[1,13],i=[1,12],r=[1,15],o=[1,16],s=[1,20],a=[1,19],h=[6,7,8],l=[1,26],c=[1,24],u=[1,25],g=[6,7,11],p=[1,6,13,15,16,19,22],d=[1,33],f=[1,34],y=[1,6,7,11,13,15,16,19,22],v={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(t,e,n,i,r,o,s){var a=o.length-1;switch(r){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",o[a].id),i.addNode(o[a-1].length,o[a].id,o[a].descr,o[a].type);break;case 16:i.getLogger().trace("Icon: ",o[a]),i.decorateNode({icon:o[a]});break;case 17:case 21:i.decorateNode({class:o[a]});break;case 18:i.getLogger().trace("SPACELIST");break;case 19:i.getLogger().trace("Node: ",o[a].id),i.addNode(0,o[a].id,o[a].descr,o[a].type);break;case 20:i.decorateNode({icon:o[a]});break;case 25:i.getLogger().trace("node found ..",o[a-2]),this.$={id:o[a-1],descr:o[a-1],type:i.getType(o[a-2],o[a])};break;case 26:this.$={id:o[a],descr:o[a],type:i.nodeType.DEFAULT};break;case 27:i.getLogger().trace("node found ..",o[a-3]),this.$={id:o[a-3],descr:o[a-1],type:i.getType(o[a-2],o[a])}}},table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:n,7:[1,10],9:9,12:11,13:i,14:14,15:r,16:o,17:17,18:18,19:s,22:a},t(h,[2,3]),{1:[2,2]},t(h,[2,4]),t(h,[2,5]),{1:[2,6],6:n,12:21,13:i,14:14,15:r,16:o,17:17,18:18,19:s,22:a},{6:n,9:22,12:11,13:i,14:14,15:r,16:o,17:17,18:18,19:s,22:a},{6:l,7:c,10:23,11:u},t(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:a}),t(g,[2,18]),t(g,[2,19]),t(g,[2,20]),t(g,[2,21]),t(g,[2,23]),t(g,[2,24]),t(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:l,7:c,10:32,11:u},{1:[2,7],6:n,12:21,13:i,14:14,15:r,16:o,17:17,18:18,19:s,22:a},t(p,[2,14],{7:d,11:f}),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(g,[2,15]),t(g,[2,16]),t(g,[2,17]),{20:[1,35]},{21:[1,36]},t(p,[2,13],{7:d,11:f}),t(y,[2,11]),t(y,[2,12]),{21:[1,37]},t(g,[2,25]),t(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],i=[],r=[null],o=[],s=this.table,a="",h=0,l=0,c=o.slice.call(arguments,1),u=Object.create(this.lexer),g={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(g.yy[p]=this.yy[p]);u.setInput(t,g.yy),g.yy.lexer=u,g.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var d=u.yylloc;o.push(d);var f=u.options&&u.options.ranges;"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,v,E,_,m,N,A,T,L={};;){if(v=n[n.length-1],this.defaultActions[v]?E=this.defaultActions[v]:(null==y&&(y=function(){var t;return"number"!=typeof(t=i.pop()||u.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}()),E=s[v]&&s[v][y]),void 0===E||!E.length||!E[0]){var O="";for(m in T=[],s[v])this.terminals_[m]&&m>2&&T.push("'"+this.terminals_[m]+"'");O=u.showPosition?"Parse error on line "+(h+1)+":\n"+u.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(O,{text:u.match,token:this.terminals_[y]||y,line:u.yylineno,loc:d,expected:T})}if(E[0]instanceof Array&&E.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+y);switch(E[0]){case 1:n.push(y),r.push(u.yytext),o.push(u.yylloc),n.push(E[1]),y=null,l=u.yyleng,a=u.yytext,h=u.yylineno,d=u.yylloc;break;case 2:if(N=this.productions_[E[1]][1],L.$=r[r.length-N],L._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},f&&(L._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(L,[a,l,h,g.yy,E[1],r,o].concat(c))))return _;N&&(n=n.slice(0,-1*N*2),r=r.slice(0,-1*N),o=o.slice(0,-1*N)),n.push(this.productions_[E[1]][0]),r.push(L.$),o.push(L._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}};function E(){this.yy={}}return v.lexer={EOF:1,parseError:function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var o in r)this[o]=r[o];return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,i,r=this._currentRules(),o=0;oe[0].length)){if(e=n,i=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[o])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return t.getLogger().trace("Found comment",e.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return t.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:t.getLogger().trace("end icon"),this.popState();break;case 10:return t.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return t.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 27:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return t.getLogger().trace("Long description:",e.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}},E.prototype=v,v.Parser=E,new E}();u.parser=u;let g=[],p=0,d={},f=()=>{g=[],p=0,d={}},y=function(t){for(let e=g.length-1;e>=0;e--)if(g[e].levelg.length>0?g[0]:null,E=(t,e,n,r)=>{var o,s;i.l.info("addNode",t,e,n,r);let a=(0,i.c)(),h=(null==(o=a.mindmap)?void 0:o.padding)??i.B.mindmap.padding;switch(r){case _.ROUNDED_RECT:case _.RECT:case _.HEXAGON:h*=2}let l={id:p++,nodeId:(0,i.d)(e,a),level:t,descr:(0,i.d)(n,a),type:r,children:[],width:(null==(s=a.mindmap)?void 0:s.maxNodeWidth)??i.B.mindmap.maxNodeWidth,padding:h},c=y(t);if(c)c.children.push(l),g.push(l);else if(0===g.length)g.push(l);else throw Error('There can be only one root. No parent could be found for ("'+l.descr+'")')},_={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},m=(t,e)=>{switch(i.l.debug("In get type",t,e),t){case"[":return _.RECT;case"(":return")"===e?_.ROUNDED_RECT:_.CLOUD;case"((":return _.CIRCLE;case")":return _.CLOUD;case"))":return _.BANG;case"{{":return _.HEXAGON;default:return _.DEFAULT}},N=(t,e)=>{d[t]=e},A=t=>{if(!t)return;let e=(0,i.c)(),n=g[g.length-1];t.icon&&(n.icon=(0,i.d)(t.icon,e)),t.class&&(n.class=(0,i.d)(t.class,e))},T=t=>{switch(t){case _.DEFAULT:return"no-border";case _.RECT:return"rect";case _.ROUNDED_RECT:return"rounded-rect";case _.CIRCLE:return"circle";case _.CLOUD:return"cloud";case _.BANG:return"bang";case _.HEXAGON:return"hexgon";default:return"no-border"}},L=t=>d[t],O=function(t,e,n,i){e.append("path").attr("id","node-"+n.id).attr("class","node-bkg node-"+t.type2Str(n.type)).attr("d",`M0 ${n.height-5} v${-n.height+10} q0,-5 5,-5 h${n.width-10} q5,0 5,5 v${n.height-5} H0 Z`),e.append("line").attr("class","node-line-"+i).attr("x1",0).attr("y1",n.height).attr("x2",n.width).attr("y2",n.height)},D=function(t,e,n){e.append("rect").attr("id","node-"+n.id).attr("class","node-bkg node-"+t.type2Str(n.type)).attr("height",n.height).attr("width",n.width)},I=function(t,e,n){let i=n.width,r=n.height,o=.15*i,s=.25*i,a=.35*i,h=.2*i;e.append("path").attr("id","node-"+n.id).attr("class","node-bkg node-"+t.type2Str(n.type)).attr("d",`M0 0 a${o},${o} 0 0,1 ${.25*i},${-1*i*.1} +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5957],{4182:function(t,e,n){var i;t.exports=(i=n(2241),function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=7)}([function(t,e){t.exports=i},function(t,e,n){"use strict";var i=n(0).FDLayoutConstants;function r(){}for(var o in i)r[o]=i[o];r.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,r.DEFAULT_RADIAL_SEPARATION=i.DEFAULT_EDGE_LENGTH,r.DEFAULT_COMPONENT_SEPERATION=60,r.TILE=!0,r.TILING_PADDING_VERTICAL=10,r.TILING_PADDING_HORIZONTAL=10,r.TREE_REDUCTION_ON_INCREMENTAL=!1,t.exports=r},function(t,e,n){"use strict";var i=n(0).FDLayoutEdge;function r(t,e,n){i.call(this,t,e,n)}for(var o in r.prototype=Object.create(i.prototype),i)r[o]=i[o];t.exports=r},function(t,e,n){"use strict";var i=n(0).LGraph;function r(t,e,n){i.call(this,t,e,n)}for(var o in r.prototype=Object.create(i.prototype),i)r[o]=i[o];t.exports=r},function(t,e,n){"use strict";var i=n(0).LGraphManager;function r(t){i.call(this,t)}for(var o in r.prototype=Object.create(i.prototype),i)r[o]=i[o];t.exports=r},function(t,e,n){"use strict";var i=n(0).FDLayoutNode,r=n(0).IMath;function o(t,e,n,r){i.call(this,t,e,n,r)}for(var s in o.prototype=Object.create(i.prototype),i)o[s]=i[s];o.prototype.move=function(){var t=this.graphManager.getLayout();this.displacementX=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*r.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*r.sign(this.displacementY)),null==this.child?this.moveBy(this.displacementX,this.displacementY):0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),t.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},o.prototype.propogateDisplacementToChildren=function(t,e){for(var n,i=this.getChild().getNodes(),r=0;r0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(e),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},E.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0){if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(e),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0}this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,i=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,i),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},E.prototype.getPositionsData=function(){for(var t=this.graphManager.getAllNodes(),e={},n=0;n1)for(s=0;si&&(i=Math.floor(s.y)),o=Math.floor(s.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new g(c.WORLD_CENTER_X-s.x/2,c.WORLD_CENTER_Y-s.y/2))},E.radialLayout=function(t,e,n){var i=Math.max(this.maxDiagonalInTree(t),h.DEFAULT_RADIAL_SEPARATION);E.branchRadialLayout(e,null,0,359,0,i);var r=y.calculateBounds(t),o=new v;o.setDeviceOrgX(r.getMinX()),o.setDeviceOrgY(r.getMinY()),o.setWorldOrgX(n.x),o.setWorldOrgY(n.y);for(var s=0;s1;){var d=p[0];p.splice(0,1);var y=l.indexOf(d);y>=0&&l.splice(y,1),g--,c--}s=null!=e?(l.indexOf(p[0])+1)%g:0;for(var v=Math.abs(i-n)/c,_=s;u!=c;_=++_%g){var m=l[_].getOtherEnd(t);if(m!=e){var N=(n+u*v)%360,A=(N+v)%360;E.branchRadialLayout(m,t,N,A,r+o,o),u++}}},E.maxDiagonalInTree=function(t){for(var e=d.MIN_VALUE,n=0;ne&&(e=i)}return e},E.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},E.prototype.groupZeroDegreeMembers=function(){var t=this,e={};this.memberGroups={},this.idToDummyNode={};for(var n=[],i=this.graphManager.getAllNodes(),r=0;r1){var i="DummyCompound_"+n;t.memberGroups[i]=e[n];var r=e[n][0].getParent(),o=new s(t.graphManager);o.id=i,o.paddingLeft=r.paddingLeft||0,o.paddingRight=r.paddingRight||0,o.paddingBottom=r.paddingBottom||0,o.paddingTop=r.paddingTop||0,t.idToDummyNode[i]=o;var a=t.getGraphManager().add(t.newGraph(),o),h=r.getChild();h.add(o);for(var l=0;l=0;t--){var e=this.compoundOrder[t],n=e.id,i=e.paddingLeft,r=e.paddingTop;this.adjustLocations(this.tiledMemberPack[n],e.rect.x,e.rect.y,i,r)}},E.prototype.repopulateZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack;Object.keys(e).forEach(function(n){var i=t.idToDummyNode[n],r=i.paddingLeft,o=i.paddingTop;t.adjustLocations(e[n],i.rect.x,i.rect.y,r,o)})},E.prototype.getToBeTiled=function(t){var e=t.id;if(null!=this.toBeTiled[e])return this.toBeTiled[e];var n=t.getChild();if(null==n)return this.toBeTiled[e]=!1,!1;for(var i=n.getNodes(),r=0;r0)return this.toBeTiled[e]=!1,!1;if(null==o.getChild()){this.toBeTiled[o.id]=!1;continue}if(!this.getToBeTiled(o))return this.toBeTiled[e]=!1,!1}return this.toBeTiled[e]=!0,!0},E.prototype.getNodeDegree=function(t){t.id;for(var e=t.getEdges(),n=0,i=0;ih&&(h=c.rect.height)}n+=h+t.verticalPadding}},E.prototype.tileCompoundMembers=function(t,e){var n=this;this.tiledMemberPack=[],Object.keys(t).forEach(function(i){var r=e[i];n.tiledMemberPack[i]=n.tileNodes(t[i],r.paddingLeft+r.paddingRight),r.rect.width=n.tiledMemberPack[i].width,r.rect.height=n.tiledMemberPack[i].height})},E.prototype.tileNodes=function(t,e){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,verticalPadding:h.TILING_PADDING_VERTICAL,horizontalPadding:h.TILING_PADDING_HORIZONTAL};t.sort(function(t,e){return t.rect.width*t.rect.height>e.rect.width*e.rect.height?-1:t.rect.width*t.rect.height0&&(r+=t.horizontalPadding),t.rowWidth[n]=r,t.width0&&(o+=t.verticalPadding);var s=0;o>t.rowHeight[n]&&(s=t.rowHeight[n],t.rowHeight[n]=o,s=t.rowHeight[n]-s),t.height+=s,t.rows[n].push(e)},E.prototype.getShortestRowIndex=function(t){for(var e=-1,n=Number.MAX_VALUE,i=0;in&&(e=i,n=t.rowWidth[i]);return e},E.prototype.canAddHorizontal=function(t,e,n){var i,r,o=this.getShortestRowIndex(t);if(o<0)return!0;var s=t.rowWidth[o];if(s+t.horizontalPadding+e<=t.width)return!0;var a=0;return t.rowHeight[o]0&&(a=n+t.verticalPadding-t.rowHeight[o]),i=t.width-s>=e+t.horizontalPadding?(t.height+a)/(s+e+t.horizontalPadding):(t.height+a)/t.width,a=n+t.verticalPadding,(r=t.widtho&&e!=n){i.splice(-1,1),t.rows[n].push(r),t.rowWidth[e]=t.rowWidth[e]-o,t.rowWidth[n]=t.rowWidth[n]+o,t.width=t.rowWidth[instance.getLongestRowIndex(t)];for(var s=Number.MIN_VALUE,a=0;as&&(s=i[a].height);e>0&&(s+=t.verticalPadding);var h=t.rowHeight[e]+t.rowHeight[n];t.rowHeight[e]=s,t.rowHeight[n]0)for(var g=s;g<=a;g++)u[0]+=this.grid[g][h-1].length+this.grid[g][h].length-1;if(a0)for(var g=h;g<=c;g++)u[3]+=this.grid[s-1][g].length+this.grid[s][g].length-1;for(var p=d.MAX_VALUE,f=0;f0&&(s=n.getGraphManager().add(n.newGraph(),o),this.processChildrenList(s,u,n))}},u.prototype.stop=function(){return this.stopped=!0,this};var p=function(t){t("layout","cose-bilkent",u)};"undefined"!=typeof cytoscape&&p(cytoscape),t.exports=p}]))},4485:function(t,e,n){t.exports=n(2894)},2894:function(t,e){var n,i;(function(){var r,o,s,a,h,l,c,u,g,p,d,f,y,v,E,_;s=Math.floor,p=Math.min,o=function(t,e){return te?1:0},g=function(t,e,n,i,r){var a;if(null==n&&(n=0),null==r&&(r=o),n<0)throw Error("lo must be non-negative");for(null==i&&(i=t.length);nr(e,t[a=s((n+i)/2)])?i=a:n=a+1;return[].splice.apply(t,[n,n-n].concat(e)),e},l=function(t,e,n){return null==n&&(n=o),t.push(e),v(t,0,t.length-1,n)},h=function(t,e){var n,i;return null==e&&(e=o),n=t.pop(),t.length?(i=t[0],t[0]=n,E(t,0,e)):i=n,i},u=function(t,e,n){var i;return null==n&&(n=o),i=t[0],t[0]=e,E(t,0,n),i},c=function(t,e,n){var i;return null==n&&(n=o),t.length&&0>n(t[0],e)&&(e=(i=[t[0],e])[0],t[0]=i[1],E(t,0,n)),e},a=function(t,e){var n,i,r,a,h,l;for(null==e&&(e=o),a=(function(){l=[];for(var e=0,n=s(t.length/2);0<=n?en;0<=n?e++:e--)l.push(e);return l}).apply(this).reverse(),h=[],i=0,r=a.length;in(i=d[l],r)&&(g(s,i,0,null,n),s.pop(),r=s[s.length-1]);return s}for(a(t,n),y=[],c=0,f=p(e,t.length);0<=f?cf;0<=f?++c:--c)y.push(h(t,n));return y},v=function(t,e,n,i){var r,s,a;for(null==i&&(i=o),r=t[n];n>e;){if(s=t[a=n-1>>1],0>i(r,s)){t[n]=s,n=a;continue}break}return t[n]=r},E=function(t,e,n){var i,r,s,a,h;for(null==n&&(n=o),r=t.length,h=e,s=t[e],i=2*e+1;in(t[i],t[a]))&&(i=a),t[e]=t[i],i=2*(e=i)+1;return t[e]=s,v(t,h,e,n)},r=function(){function t(t){this.cmp=null!=t?t:o,this.nodes=[]}return t.push=l,t.pop=h,t.replace=u,t.pushpop=c,t.heapify=a,t.updateItem=y,t.nlargest=d,t.nsmallest=f,t.prototype.push=function(t){return l(this.nodes,t,this.cmp)},t.prototype.pop=function(){return h(this.nodes,this.cmp)},t.prototype.peek=function(){return this.nodes[0]},t.prototype.contains=function(t){return -1!==this.nodes.indexOf(t)},t.prototype.replace=function(t){return u(this.nodes,t,this.cmp)},t.prototype.pushpop=function(t){return c(this.nodes,t,this.cmp)},t.prototype.heapify=function(){return a(this.nodes,this.cmp)},t.prototype.updateItem=function(t){return y(this.nodes,t,this.cmp)},t.prototype.clear=function(){return this.nodes=[]},t.prototype.empty=function(){return 0===this.nodes.length},t.prototype.size=function(){return this.nodes.length},t.prototype.clone=function(){var e;return(e=new t).nodes=this.nodes.slice(0),e},t.prototype.toArray=function(){return this.nodes.slice(0)},t.prototype.insert=t.prototype.push,t.prototype.top=t.prototype.peek,t.prototype.front=t.prototype.peek,t.prototype.has=t.prototype.contains,t.prototype.copy=t.prototype.clone,t}(),n=[],void 0!==(i="function"==typeof(_=function(){return r})?_.apply(e,n):_)&&(t.exports=i)}).call(this)},2241:function(t){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=26)}([function(t,e,n){"use strict";function i(){}i.QUALITY=1,i.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,i.DEFAULT_INCREMENTAL=!1,i.DEFAULT_ANIMATION_ON_LAYOUT=!0,i.DEFAULT_ANIMATION_DURING_LAYOUT=!1,i.DEFAULT_ANIMATION_PERIOD=50,i.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,i.DEFAULT_GRAPH_MARGIN=15,i.NODE_DIMENSIONS_INCLUDE_LABELS=!1,i.SIMPLE_NODE_SIZE=40,i.SIMPLE_NODE_HALF_SIZE=i.SIMPLE_NODE_SIZE/2,i.EMPTY_COMPOUND_NODE_SIZE=40,i.MIN_EDGE_LENGTH=1,i.WORLD_BOUNDARY=1e6,i.INITIAL_WORLD_BOUNDARY=i.WORLD_BOUNDARY/1e3,i.WORLD_CENTER_X=1200,i.WORLD_CENTER_Y=900,t.exports=i},function(t,e,n){"use strict";var i=n(2),r=n(8),o=n(9);function s(t,e,n){i.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=t,this.target=e}for(var a in s.prototype=Object.create(i.prototype),i)s[a]=i[a];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(t){if(this.source===t)return this.target;if(this.target===t)return this.source;throw"Node is not incident with this edge"},s.prototype.getOtherEndInGraph=function(t,e){for(var n=this.getOtherEnd(t),i=e.getGraphManager().getRoot();;){if(n.getOwner()==e)return n;if(n.getOwner()==i)break;n=n.getOwner().getParent()}return null},s.prototype.updateLength=function(){var t=[,,,,];this.isOverlapingSourceAndTarget=r.getIntersection(this.target.getRect(),this.source.getRect(),t),this.isOverlapingSourceAndTarget||(this.lengthX=t[0]-t[2],this.lengthY=t[1]-t[3],1>Math.abs(this.lengthX)&&(this.lengthX=o.sign(this.lengthX)),1>Math.abs(this.lengthY)&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),1>Math.abs(this.lengthX)&&(this.lengthX=o.sign(this.lengthX)),1>Math.abs(this.lengthY)&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=s},function(t,e,n){"use strict";t.exports=function(t){this.vGraphObject=t}},function(t,e,n){"use strict";var i=n(2),r=n(10),o=n(13),s=n(0),a=n(16),h=n(4);function l(t,e,n,s){null==n&&null==s&&(s=e),i.call(this,s),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=r.MIN_VALUE,this.inclusionTreeDepth=r.MAX_VALUE,this.vGraphObject=s,this.edges=[],this.graphManager=t,null!=n&&null!=e?this.rect=new o(e.x,e.y,n.width,n.height):this.rect=new o}for(var c in l.prototype=Object.create(i.prototype),i)l[c]=i[c];l.prototype.getEdges=function(){return this.edges},l.prototype.getChild=function(){return this.child},l.prototype.getOwner=function(){return this.owner},l.prototype.getWidth=function(){return this.rect.width},l.prototype.setWidth=function(t){this.rect.width=t},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(t){this.rect.height=t},l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},l.prototype.getCenter=function(){return new h(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new h(this.rect.x,this.rect.y)},l.prototype.getRect=function(){return this.rect},l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},l.prototype.setRect=function(t,e){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=e.width,this.rect.height=e.height},l.prototype.setCenter=function(t,e){this.rect.x=t-this.rect.width/2,this.rect.y=e-this.rect.height/2},l.prototype.setLocation=function(t,e){this.rect.x=t,this.rect.y=e},l.prototype.moveBy=function(t,e){this.rect.x+=t,this.rect.y+=e},l.prototype.getEdgeListToNode=function(t){var e=[],n=this;return n.edges.forEach(function(i){if(i.target==t){if(i.source!=n)throw"Incorrect edge source!";e.push(i)}}),e},l.prototype.getEdgesBetween=function(t){var e=[],n=this;return n.edges.forEach(function(i){if(!(i.source==n||i.target==n))throw"Incorrect edge source and/or target";(i.target==t||i.source==t)&&e.push(i)}),e},l.prototype.getNeighborsList=function(){var t=new Set,e=this;return e.edges.forEach(function(n){if(n.source==e)t.add(n.target);else{if(n.target!=e)throw"Incorrect incidency!";t.add(n.source)}}),t},l.prototype.withChildren=function(){var t=new Set;if(t.add(this),null!=this.child)for(var e=this.child.getNodes(),n=0;ne&&(this.rect.x-=(this.labelWidth-e)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-n)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==r.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},l.prototype.transform=function(t){var e=this.rect.x;e>s.WORLD_BOUNDARY?e=s.WORLD_BOUNDARY:e<-s.WORLD_BOUNDARY&&(e=-s.WORLD_BOUNDARY);var n=this.rect.y;n>s.WORLD_BOUNDARY?n=s.WORLD_BOUNDARY:n<-s.WORLD_BOUNDARY&&(n=-s.WORLD_BOUNDARY);var i=new h(e,n),r=t.inverseTransformPoint(i);this.setLocation(r.x,r.y)},l.prototype.getLeft=function(){return this.rect.x},l.prototype.getRight=function(){return this.rect.x+this.rect.width},l.prototype.getTop=function(){return this.rect.y},l.prototype.getBottom=function(){return this.rect.y+this.rect.height},l.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},t.exports=l},function(t,e,n){"use strict";function i(t,e){null==t&&null==e?(this.x=0,this.y=0):(this.x=t,this.y=e)}i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.setX=function(t){this.x=t},i.prototype.setY=function(t){this.y=t},i.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},i.prototype.getCopy=function(){return new i(this.x,this.y)},i.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},t.exports=i},function(t,e,n){"use strict";var i=n(2),r=n(10),o=n(0),s=n(6),a=n(3),h=n(1),l=n(13),c=n(12),u=n(11);function g(t,e,n){i.call(this,n),this.estimatedSize=r.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=t,null!=e&&e instanceof s?this.graphManager=e:null!=e&&e instanceof Layout&&(this.graphManager=e.graphManager)}for(var p in g.prototype=Object.create(i.prototype),i)g[p]=i[p];g.prototype.getNodes=function(){return this.nodes},g.prototype.getEdges=function(){return this.edges},g.prototype.getGraphManager=function(){return this.graphManager},g.prototype.getParent=function(){return this.parent},g.prototype.getLeft=function(){return this.left},g.prototype.getRight=function(){return this.right},g.prototype.getTop=function(){return this.top},g.prototype.getBottom=function(){return this.bottom},g.prototype.isConnected=function(){return this.isConnected},g.prototype.add=function(t,e,n){if(null==e&&null==n){var i=t;if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(i)>-1)throw"Node already in graph!";return i.owner=this,this.getNodes().push(i),i}var r=t;if(!(this.getNodes().indexOf(e)>-1&&this.getNodes().indexOf(n)>-1))throw"Source or target not in graph!";if(!(e.owner==n.owner&&e.owner==this))throw"Both owners must be this graph!";return e.owner!=n.owner?null:(r.source=e,r.target=n,r.isInterGraph=!1,this.getEdges().push(r),e.edges.push(r),n!=e&&n.edges.push(r),r)},g.prototype.remove=function(t){if(t instanceof a){if(null==t)throw"Node is null!";if(!(null!=t.owner&&t.owner==this))throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var e,n=t.edges.slice(),i=n.length,r=0;r-1&&l>-1))throw"Source and/or target doesn't know this edge!";e.source.edges.splice(s,1),e.target!=e.source&&e.target.edges.splice(l,1);var o=e.source.owner.getEdges().indexOf(e);if(-1==o)throw"Not in owner's edge list!";e.source.owner.getEdges().splice(o,1)}},g.prototype.updateLeftTop=function(){for(var t,e,n,i=r.MAX_VALUE,o=r.MAX_VALUE,s=this.getNodes(),a=s.length,h=0;ht&&(i=t),o>e&&(o=e)}return i==r.MAX_VALUE?null:(n=void 0!=s[0].getParent().paddingLeft?s[0].getParent().paddingLeft:this.margin,this.left=o-n,this.top=i-n,new c(this.left,this.top))},g.prototype.updateBounds=function(t){for(var e,n,i,o,s,a=r.MAX_VALUE,h=-r.MAX_VALUE,c=r.MAX_VALUE,u=-r.MAX_VALUE,g=this.nodes,p=g.length,d=0;de&&(a=e),hi&&(c=i),ue&&(s=e),ai&&(h=i),c=this.nodes.length){var h=0;r.forEach(function(t){t.owner==n&&h++}),h==this.nodes.length&&(this.isConnected=!0)}},t.exports=g},function(t,e,n){"use strict";var i,r=n(1);function o(t){i=n(5),this.layout=t,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null),n=this.add(t,e);return this.setRootGraph(n),this.rootGraph},o.prototype.add=function(t,e,n,i,r){if(null==n&&null==i&&null==r){if(null==t)throw"Graph is null!";if(null==e)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),null!=t.parent)throw"Already has a parent!";if(null!=e.child)throw"Already has a child!";return t.parent=e,e.child=t,t}r=n,i=e,n=t;var o=i.getOwner(),s=r.getOwner();if(!(null!=o&&o.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(null!=s&&s.getGraphManager()==this))throw"Target not in this graph mgr!";if(o==s)return n.isInterGraph=!1,o.add(n,i,r);if(n.isInterGraph=!0,n.source=i,n.target=r,this.edges.indexOf(n)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(n),!(null!=n.source&&null!=n.target))throw"Edge source and/or target is null!";if(!(-1==n.source.edges.indexOf(n)&&-1==n.target.edges.indexOf(n)))throw"Edge already in source and/or target incidency list!";return n.source.edges.push(n),n.target.edges.push(n),n},o.prototype.remove=function(t){if(t instanceof i){var e,n,o=t;if(o.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(o==this.rootGraph||null!=o.parent&&o.parent.graphManager==this))throw"Invalid parent node!";for(var s=[],a=(s=s.concat(o.getEdges())).length,h=0;h=e.getRight()?n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight()):e.getX()<=t.getX()&&e.getRight()>=t.getRight()&&(n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())),t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()?n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()):e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()&&(n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()));var o=Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX()));e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()&&(o=1);var s=o*n[0],a=n[1]/o;n[0]s?(n[0]=i,n[1]=h,n[2]=o,n[3]=_):ro?(n[0]=a,n[1]=r,n[2]=v,n[3]=s):io?(n[0]=c,n[1]=u,T=!0):(n[0]=l,n[1]=h,T=!0):O===I&&(i>o?(n[0]=a,n[1]=h,T=!0):(n[0]=g,n[1]=u,T=!0)),-D===I?o>i?(n[2]=E,n[3]=_,L=!0):(n[2]=v,n[3]=y,L=!0):D===I&&(o>i?(n[2]=f,n[3]=y,L=!0):(n[2]=m,n[3]=_,L=!0)),T&&L)return!1;if(i>o?r>s?(w=this.getCardinalDirection(O,I,4),x=this.getCardinalDirection(D,I,2)):(w=this.getCardinalDirection(-O,I,3),x=this.getCardinalDirection(-D,I,1)):r>s?(w=this.getCardinalDirection(-O,I,1),x=this.getCardinalDirection(-D,I,3)):(w=this.getCardinalDirection(O,I,2),x=this.getCardinalDirection(D,I,4)),!T)switch(w){case 1:R=h,C=i+-d/I,n[0]=C,n[1]=R;break;case 2:C=g,R=r+p*I,n[0]=C,n[1]=R;break;case 3:R=u,C=i+d/I,n[0]=C,n[1]=R;break;case 4:C=c,R=r+-p*I,n[0]=C,n[1]=R}if(!L)switch(x){case 1:b=y,M=o+-A/I,n[2]=M,n[3]=b;break;case 2:M=m,b=s+N*I,n[2]=M,n[3]=b;break;case 3:b=_,M=o+A/I,n[2]=M,n[3]=b;break;case 4:M=E,b=s+-N*I,n[2]=M,n[3]=b}}return!1},r.getCardinalDirection=function(t,e,n){return t>e?n:1+n%4},r.getIntersection=function(t,e,n,r){if(null==r)return this.getIntersection2(t,e,n);var o=t.x,s=t.y,a=e.x,h=e.y,l=n.x,c=n.y,u=r.x,g=r.y,p=void 0,d=void 0,f=void 0,y=void 0,v=void 0,E=void 0,_=void 0,m=void 0,N=void 0;return(f=h-s,v=o-a,_=a*s-o*h,y=g-c,E=l-u,m=u*c-l*g,0==(N=f*E-y*v))?null:(p=(v*m-E*_)/N,d=(y*_-f*m)/N,new i(p,d))},r.angleOfVector=function(t,e,n,i){var r=void 0;return t!==n?(r=Math.atan((i-e)/(n-t)),n0?1:t<0?-1:0},i.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},i.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},t.exports=i},function(t,e,n){"use strict";function i(){}i.MAX_VALUE=2147483647,i.MIN_VALUE=-2147483648,t.exports=i},function(t,e,n){"use strict";var i=function(){function t(t,e){for(var n=0;n0&&e;){for(a.push(l[0]);a.length>0&&e;){var c=a[0];a.splice(0,1),s.add(c);for(var u=c.getEdges(),o=0;o-1&&l.splice(f,1)}s=new Set,h=new Map}else t=[]}return t},g.prototype.createDummyNodesForBendpoints=function(t){for(var e=[],n=t.source,i=this.graphManager.calcLowestCommonAncestor(t.source,t.target),r=0;r0){for(var r=this.edgeToDummyNodes.get(n),o=0;o=0&&e.splice(u,1),a.getNeighborsList().forEach(function(t){if(0>n.indexOf(t)){var e=i.get(t)-1;1==e&&l.push(t),i.set(t,e)}})}n=n.concat(l),(1==e.length||2==e.length)&&(r=!0,o=e[0])}return o},g.prototype.setGraphManager=function(t){this.graphManager=t},t.exports=g},function(t,e,n){"use strict";function i(){}i.seed=1,i.x=0,i.nextDouble=function(){return i.x=1e4*Math.sin(i.seed++),i.x-Math.floor(i.x)},t.exports=i},function(t,e,n){"use strict";var i=n(4);function r(t,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}r.prototype.getWorldOrgX=function(){return this.lworldOrgX},r.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},r.prototype.getWorldOrgY=function(){return this.lworldOrgY},r.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},r.prototype.getWorldExtX=function(){return this.lworldExtX},r.prototype.setWorldExtX=function(t){this.lworldExtX=t},r.prototype.getWorldExtY=function(){return this.lworldExtY},r.prototype.setWorldExtY=function(t){this.lworldExtY=t},r.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},r.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},r.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},r.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},r.prototype.getDeviceExtX=function(){return this.ldeviceExtX},r.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},r.prototype.getDeviceExtY=function(){return this.ldeviceExtY},r.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},r.prototype.transformX=function(t){var e=0,n=this.lworldExtX;return 0!=n&&(e=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/n),e},r.prototype.transformY=function(t){var e=0,n=this.lworldExtY;return 0!=n&&(e=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/n),e},r.prototype.inverseTransformX=function(t){var e=0,n=this.ldeviceExtX;return 0!=n&&(e=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/n),e},r.prototype.inverseTransformY=function(t){var e=0,n=this.ldeviceExtY;return 0!=n&&(e=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/n),e},r.prototype.inverseTransformPoint=function(t){return new i(this.inverseTransformX(t.x),this.inverseTransformY(t.y))},t.exports=r},function(t,e,n){"use strict";var i=n(15),r=n(7),o=n(0),s=n(8),a=n(9);function h(){i.call(this),this.useSmartIdealEdgeLengthCalculation=r.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=r.DEFAULT_EDGE_LENGTH,this.springConstant=r.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=r.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=r.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=r.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=r.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*r.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=r.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=r.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=r.MAX_ITERATIONS}for(var l in h.prototype=Object.create(i.prototype),i)h[l]=i[l];h.prototype.initParameters=function(){i.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=r.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},h.prototype.calcIdealEdgeLengths=function(){for(var t,e,n,i,s,a,h=this.getGraphManager().getAllEdges(),l=0;lr.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*r.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-r.ADAPTATION_LOWER_NODE_LIMIT)/(r.ADAPTATION_UPPER_NODE_LIMIT-r.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-r.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=r.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>r.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(r.COOLING_ADAPTATION_FACTOR,1-(t-r.ADAPTATION_LOWER_NODE_LIMIT)/(r.ADAPTATION_UPPER_NODE_LIMIT-r.ADAPTATION_LOWER_NODE_LIMIT)*(1-r.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=r.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var t,e=this.getAllEdges(),n=0;n0)||void 0===arguments[0]||arguments[0],a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],h=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%r.GRID_CALCULATION_CHECK_PERIOD==1&&s&&this.updateGrid(),o=new Set,t=0;t(h=e.getEstimatedSize()*this.gravityRangeFactor)||a>h)&&(t.gravitationForceX=-this.gravityConstant*r,t.gravitationForceY=-this.gravityConstant*o):(s>(h=e.getEstimatedSize()*this.compoundGravityRangeFactor)||a>h)&&(t.gravitationForceX=-this.gravityConstant*r*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*o*this.compoundGravityConstant)},h.prototype.isConverged=function(){var t,e=!1;return this.totalIterations>this.maxIterations/3&&(e=2>Math.abs(this.totalDisplacement-this.oldTotalDisplacement)),t=this.totalDisplacement=a.length||l>=a[0].length)){for(var c=0;ct}}]),t}();t.exports=o},function(t,e,n){"use strict";var i=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t),this.sequence1=e,this.sequence2=n,this.match_score=i,this.mismatch_penalty=r,this.gap_penalty=o,this.iMax=e.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;n--){var i=this.listeners[n];i.event===t&&i.callback===e&&this.listeners.splice(n,1)}},r.emit=function(t,e){for(var n=0;n-1&&t%1==0&&t-1}},4705:function(t,e,n){var i=n(8470);t.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},4785:function(t,e,n){var i=n(1989),r=n(8407),o=n(4656);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},1285:function(t,e,n){var i=n(5050);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},6e3:function(t,e,n){var i=n(5050);t.exports=function(t){return i(this,t).get(t)}},9916:function(t,e,n){var i=n(5050);t.exports=function(t){return i(this,t).has(t)}},5265:function(t,e,n){var i=n(5050);t.exports=function(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},4523:function(t,e,n){var i=n(8306);t.exports=function(t){var e=i(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},4536:function(t,e,n){var i=n(852)(Object,"create");t.exports=i},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5639:function(t,e,n){var i=n(1957),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();t.exports=o},5514:function(t,e,n){var i=n(4523),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=i(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,function(t,n,i,r){e.push(i?r.replace(o,"$1"):n||t)}),e});t.exports=s},327:function(t,e,n){var i=n(3448),r=1/0;t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-r?"-0":e}},346:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7990:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},3279:function(t,e,n){var i=n(3218),r=n(1927),o=n(4841),s=Math.max,a=Math.min;t.exports=function(t,e,n){var h,l,c,u,g,p,d=0,f=!1,y=!1,v=!0;if("function"!=typeof t)throw TypeError("Expected a function");function E(e){var n=h,i=l;return h=l=void 0,d=e,u=t.apply(i,n)}function _(t){var n=t-p,i=t-d;return void 0===p||n>=e||n<0||y&&i>=c}function m(){var t,n,i,o=r();if(_(o))return N(o);g=setTimeout(m,(t=o-p,n=o-d,i=e-t,y?a(i,c-n):i))}function N(t){return(g=void 0,v&&h)?E(t):(h=l=void 0,u)}function A(){var t,n=r(),i=_(n);if(h=arguments,l=this,p=n,i){if(void 0===g)return d=t=p,g=setTimeout(m,e),f?E(t):u;if(y)return clearTimeout(g),g=setTimeout(m,e),E(p)}return void 0===g&&(g=setTimeout(m,e)),u}return e=o(e)||0,i(n)&&(f=!!n.leading,c=(y="maxWait"in n)?s(o(n.maxWait)||0,e):c,v="trailing"in n?!!n.trailing:v),A.cancel=function(){void 0!==g&&clearTimeout(g),d=0,h=p=l=g=void 0},A.flush=function(){return void 0===g?u:N(r())},A}},7813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},7361:function(t,e,n){var i=n(7786);t.exports=function(t,e,n){var r=null==t?void 0:i(t,e);return void 0===r?n:r}},1469:function(t){var e=Array.isArray;t.exports=e},3560:function(t,e,n){var i=n(4239),r=n(3218);t.exports=function(t){if(!r(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},3218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3448:function(t,e,n){var i=n(4239),r=n(7005);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==i(t)}},8306:function(t,e,n){var i=n(3369);function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(r.Cache||i),n}r.Cache=i,t.exports=r},1927:function(t,e,n){var i=n(5639);t.exports=function(){return i.Date.now()}},6968:function(t,e,n){var i=n(611);t.exports=function(t,e,n){return null==t?t:i(t,e,n)}},4841:function(t,e,n){var i=n(7561),r=n(3218),o=n(3448),s=0/0,a=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return s;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=h.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):a.test(t)?s:+t}},84:function(t,e,n){var i=n(9932),r=n(278),o=n(1469),s=n(3448),a=n(5514),h=n(327),l=n(9833);t.exports=function(t){return o(t)?i(t,h):s(t)?[t]:r(a(l(t)))}},9833:function(t,e,n){var i=n(531);t.exports=function(t){return null==t?"":i(t)}},9202:function(t,e,n){"use strict";n.r(e),n.d(e,{diagram:function(){return P}});var i=n(8539),r=n(9058),o=n(4607),s=n(4218),a=n(6881),h=n(1619),l=n(2281),c=n(7201);n(7484),n(7967),n(7856);var u=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,4],n=[1,13],i=[1,12],r=[1,15],o=[1,16],s=[1,20],a=[1,19],h=[6,7,8],l=[1,26],c=[1,24],u=[1,25],g=[6,7,11],p=[1,6,13,15,16,19,22],d=[1,33],f=[1,34],y=[1,6,7,11,13,15,16,19,22],v={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(t,e,n,i,r,o,s){var a=o.length-1;switch(r){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",o[a].id),i.addNode(o[a-1].length,o[a].id,o[a].descr,o[a].type);break;case 16:i.getLogger().trace("Icon: ",o[a]),i.decorateNode({icon:o[a]});break;case 17:case 21:i.decorateNode({class:o[a]});break;case 18:i.getLogger().trace("SPACELIST");break;case 19:i.getLogger().trace("Node: ",o[a].id),i.addNode(0,o[a].id,o[a].descr,o[a].type);break;case 20:i.decorateNode({icon:o[a]});break;case 25:i.getLogger().trace("node found ..",o[a-2]),this.$={id:o[a-1],descr:o[a-1],type:i.getType(o[a-2],o[a])};break;case 26:this.$={id:o[a],descr:o[a],type:i.nodeType.DEFAULT};break;case 27:i.getLogger().trace("node found ..",o[a-3]),this.$={id:o[a-3],descr:o[a-1],type:i.getType(o[a-2],o[a])}}},table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:n,7:[1,10],9:9,12:11,13:i,14:14,15:r,16:o,17:17,18:18,19:s,22:a},t(h,[2,3]),{1:[2,2]},t(h,[2,4]),t(h,[2,5]),{1:[2,6],6:n,12:21,13:i,14:14,15:r,16:o,17:17,18:18,19:s,22:a},{6:n,9:22,12:11,13:i,14:14,15:r,16:o,17:17,18:18,19:s,22:a},{6:l,7:c,10:23,11:u},t(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:a}),t(g,[2,18]),t(g,[2,19]),t(g,[2,20]),t(g,[2,21]),t(g,[2,23]),t(g,[2,24]),t(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:l,7:c,10:32,11:u},{1:[2,7],6:n,12:21,13:i,14:14,15:r,16:o,17:17,18:18,19:s,22:a},t(p,[2,14],{7:d,11:f}),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(g,[2,15]),t(g,[2,16]),t(g,[2,17]),{20:[1,35]},{21:[1,36]},t(p,[2,13],{7:d,11:f}),t(y,[2,11]),t(y,[2,12]),{21:[1,37]},t(g,[2,25]),t(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],i=[],r=[null],o=[],s=this.table,a="",h=0,l=0,c=o.slice.call(arguments,1),u=Object.create(this.lexer),g={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(g.yy[p]=this.yy[p]);u.setInput(t,g.yy),g.yy.lexer=u,g.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var d=u.yylloc;o.push(d);var f=u.options&&u.options.ranges;"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,v,E,_,m,N,A,T,L={};;){if(v=n[n.length-1],this.defaultActions[v]?E=this.defaultActions[v]:(null==y&&(y=function(){var t;return"number"!=typeof(t=i.pop()||u.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}()),E=s[v]&&s[v][y]),void 0===E||!E.length||!E[0]){var O="";for(m in T=[],s[v])this.terminals_[m]&&m>2&&T.push("'"+this.terminals_[m]+"'");O=u.showPosition?"Parse error on line "+(h+1)+":\n"+u.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(O,{text:u.match,token:this.terminals_[y]||y,line:u.yylineno,loc:d,expected:T})}if(E[0]instanceof Array&&E.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+y);switch(E[0]){case 1:n.push(y),r.push(u.yytext),o.push(u.yylloc),n.push(E[1]),y=null,l=u.yyleng,a=u.yytext,h=u.yylineno,d=u.yylloc;break;case 2:if(N=this.productions_[E[1]][1],L.$=r[r.length-N],L._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},f&&(L._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(L,[a,l,h,g.yy,E[1],r,o].concat(c))))return _;N&&(n=n.slice(0,-1*N*2),r=r.slice(0,-1*N),o=o.slice(0,-1*N)),n.push(this.productions_[E[1]][0]),r.push(L.$),o.push(L._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}};function E(){this.yy={}}return v.lexer={EOF:1,parseError:function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var o in r)this[o]=r[o];return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,i,r=this._currentRules(),o=0;oe[0].length)){if(e=n,i=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[o])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return t.getLogger().trace("Found comment",e.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return t.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:t.getLogger().trace("end icon"),this.popState();break;case 10:return t.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return t.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 27:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return t.getLogger().trace("Long description:",e.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}},E.prototype=v,v.Parser=E,new E}();u.parser=u;let g=[],p=0,d={},f=()=>{g=[],p=0,d={}},y=function(t){for(let e=g.length-1;e>=0;e--)if(g[e].levelg.length>0?g[0]:null,E=(t,e,n,r)=>{var o,s;i.l.info("addNode",t,e,n,r);let a=(0,i.c)(),h=(null==(o=a.mindmap)?void 0:o.padding)??i.B.mindmap.padding;switch(r){case _.ROUNDED_RECT:case _.RECT:case _.HEXAGON:h*=2}let l={id:p++,nodeId:(0,i.d)(e,a),level:t,descr:(0,i.d)(n,a),type:r,children:[],width:(null==(s=a.mindmap)?void 0:s.maxNodeWidth)??i.B.mindmap.maxNodeWidth,padding:h},c=y(t);if(c)c.children.push(l),g.push(l);else if(0===g.length)g.push(l);else throw Error('There can be only one root. No parent could be found for ("'+l.descr+'")')},_={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},m=(t,e)=>{switch(i.l.debug("In get type",t,e),t){case"[":return _.RECT;case"(":return")"===e?_.ROUNDED_RECT:_.CLOUD;case"((":return _.CIRCLE;case")":return _.CLOUD;case"))":return _.BANG;case"{{":return _.HEXAGON;default:return _.DEFAULT}},N=(t,e)=>{d[t]=e},A=t=>{if(!t)return;let e=(0,i.c)(),n=g[g.length-1];t.icon&&(n.icon=(0,i.d)(t.icon,e)),t.class&&(n.class=(0,i.d)(t.class,e))},T=t=>{switch(t){case _.DEFAULT:return"no-border";case _.RECT:return"rect";case _.ROUNDED_RECT:return"rounded-rect";case _.CIRCLE:return"circle";case _.CLOUD:return"cloud";case _.BANG:return"bang";case _.HEXAGON:return"hexgon";default:return"no-border"}},L=t=>d[t],O=function(t,e,n,i){e.append("path").attr("id","node-"+n.id).attr("class","node-bkg node-"+t.type2Str(n.type)).attr("d",`M0 ${n.height-5} v${-n.height+10} q0,-5 5,-5 h${n.width-10} q5,0 5,5 v${n.height-5} H0 Z`),e.append("line").attr("class","node-line-"+i).attr("x1",0).attr("y1",n.height).attr("x2",n.width).attr("y2",n.height)},D=function(t,e,n){e.append("rect").attr("id","node-"+n.id).attr("class","node-bkg node-"+t.type2Str(n.type)).attr("height",n.height).attr("width",n.width)},I=function(t,e,n){let i=n.width,r=n.height,o=.15*i,s=.25*i,a=.35*i,h=.2*i;e.append("path").attr("id","node-"+n.id).attr("class","node-bkg node-"+t.type2Str(n.type)).attr("d",`M0 0 a${o},${o} 0 0,1 ${.25*i},${-1*i*.1} a${a},${a} 1 0,1 ${.4*i},${-1*i*.1} a${s},${s} 1 0,1 ${.35*i},${1*i*.2} diff --git a/_next/static/chunks/6175.7116c266256ce368.js b/_next/static/chunks/6175.7116c266256ce368.js deleted file mode 100644 index 239d708e..00000000 --- a/_next/static/chunks/6175.7116c266256ce368.js +++ /dev/null @@ -1,6 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6175],{4474:function(t,r,e){"true"===e(3454).env.IS_PREACT?t.exports=e(114):t.exports=e(290)},3454:function(t,r,e){"use strict";var n,o;t.exports=(null==(n=e.g.process)?void 0:n.env)&&"object"==typeof(null==(o=e.g.process)?void 0:o.env)?e.g.process:e(7663)},1876:function(t){!function(){var r={675:function(t,r){"use strict";r.byteLength=function(t){var r=s(t),e=r[0],n=r[1];return(e+n)*3/4-n},r.toByteArray=function(t){var r,e,i=s(t),f=i[0],u=i[1],a=new o((f+u)*3/4-u),h=0,c=u>0?f-4:f;for(e=0;e>16&255,a[h++]=r>>8&255,a[h++]=255&r;return 2===u&&(r=n[t.charCodeAt(e)]<<2|n[t.charCodeAt(e+1)]>>4,a[h++]=255&r),1===u&&(r=n[t.charCodeAt(e)]<<10|n[t.charCodeAt(e+1)]<<4|n[t.charCodeAt(e+2)]>>2,a[h++]=r>>8&255,a[h++]=255&r),a},r.fromByteArray=function(t){for(var r,n=t.length,o=n%3,i=[],f=0,u=n-o;f>18&63]+e[o>>12&63]+e[o>>6&63]+e[63&o]);return i.join("")}(t,f,f+16383>u?u:f+16383));return 1===o?i.push(e[(r=t[n-1])>>2]+e[r<<4&63]+"=="):2===o&&i.push(e[(r=(t[n-2]<<8)+t[n-1])>>10]+e[r>>4&63]+e[r<<2&63]+"="),i.join("")};for(var e=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,u=i.length;f0)throw Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");-1===e&&(e=r);var n=e===r?0:4-e%4;return[e,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(t,r,e){"use strict";/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */var n=e(675),o=e(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function f(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,u.prototype),r}function u(t,r,e){if("number"==typeof t){if("string"==typeof r)throw TypeError('The "string" argument must be of type string. Received type number');return h(t)}return s(t,r,e)}function s(t,r,e){if("string"==typeof t)return function(t,r){if(("string"!=typeof r||""===r)&&(r="utf8"),!u.isEncoding(r))throw TypeError("Unknown encoding: "+r);var e=0|l(t,r),n=f(e),o=n.write(t,r);return o!==e&&(n=n.slice(0,o)),n}(t,r);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(C(t,ArrayBuffer)||t&&C(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(C(t,SharedArrayBuffer)||t&&C(t.buffer,SharedArrayBuffer)))return function(t,r,e){var n;if(r<0||t.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function l(t,r){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||C(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===e)return 0;for(var o=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return L(t).length;default:if(o)return n?-1:U(t).length;r=(""+r).toLowerCase(),o=!0}}function y(t,r,e){var o,i,f=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===e||e>this.length)&&(e=this.length),e<=0||(e>>>=0)<=(r>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var o="",i=r;i2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),(i=e=+e)!=i&&(e=o?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(o)return -1;e=t.length-1}else if(e<0){if(!o)return -1;e=0}if("string"==typeof r&&(r=u.from(r,n)),u.isBuffer(r))return 0===r.length?-1:v(t,r,e,n,o);if("number"==typeof r)return(r&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):v(t,[r],e,n,o);throw TypeError("val must be string, number or Buffer")}function v(t,r,e,n,o){var i,f=1,u=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return -1;f=2,u/=2,s/=2,e/=2}function a(t,r){return 1===f?t[r]:t.readUInt16BE(r*f)}if(o){var h=-1;for(i=e;iu&&(e=u-s),i=e;i>=0;i--){for(var c=!0,p=0;p239?4:a>223?3:a>191?2:1;if(o+c<=e)switch(c){case 1:a<128&&(h=a);break;case 2:(192&(i=t[o+1]))==128&&(s=(31&a)<<6|63&i)>127&&(h=s);break;case 3:i=t[o+1],f=t[o+2],(192&i)==128&&(192&f)==128&&(s=(15&a)<<12|(63&i)<<6|63&f)>2047&&(s<55296||s>57343)&&(h=s);break;case 4:i=t[o+1],f=t[o+2],u=t[o+3],(192&i)==128&&(192&f)==128&&(192&u)==128&&(s=(15&a)<<18|(63&i)<<12|(63&f)<<6|63&u)>65535&&s<1114112&&(h=s)}null===h?(h=65533,c=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),o+=c}return function(t){var r=t.length;if(r<=4096)return String.fromCharCode.apply(String,t);for(var e="",n=0;ne)throw RangeError("Trying to access beyond buffer length")}function w(t,r,e,n,o,i){if(!u.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(r>o||rt.length)throw RangeError("Index out of range")}function E(t,r,e,n,o,i){if(e+n>t.length||e<0)throw RangeError("Index out of range")}function A(t,r,e,n,i){return r=+r,e>>>=0,i||E(t,r,e,4,34028234663852886e22,-34028234663852886e22),o.write(t,r,e,n,23,4),e+4}function B(t,r,e,n,i){return r=+r,e>>>=0,i||E(t,r,e,8,17976931348623157e292,-17976931348623157e292),o.write(t,r,e,n,52,8),e+8}r.Buffer=u,r.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=2147483647,u.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),42===t.foo()}catch(t){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,r,e){return s(t,r,e)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,r,e){return(a(t),t<=0)?f(t):void 0!==r?"string"==typeof e?f(t).fill(r,e):f(t).fill(r):f(t)},u.allocUnsafe=function(t){return h(t)},u.allocUnsafeSlow=function(t){return h(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,r){if(C(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),C(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(t)||!u.isBuffer(r))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var e=t.length,n=r.length,o=0,i=Math.min(e,n);oe&&(t+=" ... "),""},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,r,e,n,o){if(C(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),r<0||e>t.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&r>=e)return 0;if(n>=o)return -1;if(r>=e)return 1;if(r>>>=0,e>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,f=e-r,s=Math.min(i,f),a=this.slice(n,o),h=t.slice(r,e),c=0;c>>=0,isFinite(e)?(e>>>=0,void 0===n&&(n="utf8")):(n=e,e=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,f,u,s,a,h,c,p,l,y,g,d=this.length-r;if((void 0===e||e>d)&&(e=d),t.length>0&&(e<0||r<0)||r>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var v=!1;;)switch(n){case"hex":return function(t,r,e,n){e=Number(e)||0;var o=t.length-e;n?(n=Number(n))>o&&(n=o):n=o;var i=r.length;n>i/2&&(n=i/2);for(var f=0;f>8,o.push(e%256),o.push(n);return o}(t,this.length-y),this,y,g);default:if(v)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),v=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),r<0?(r+=e)<0&&(r=0):r>e&&(r=e),r>>=0,r>>>=0,e||m(t,r,this.length);for(var n=this[t],o=1,i=0;++i>>=0,r>>>=0,e||m(t,r,this.length);for(var n=this[t+--r],o=1;r>0&&(o*=256);)n+=this[t+--r]*o;return n},u.prototype.readUInt8=function(t,r){return t>>>=0,r||m(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,r){return t>>>=0,r||m(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,r){return t>>>=0,r||m(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,r){return t>>>=0,r||m(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,r){return t>>>=0,r||m(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,r,e){t>>>=0,r>>>=0,e||m(t,r,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*r)),n},u.prototype.readIntBE=function(t,r,e){t>>>=0,r>>>=0,e||m(t,r,this.length);for(var n=r,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*r)),i},u.prototype.readInt8=function(t,r){return(t>>>=0,r||m(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},u.prototype.readInt16LE=function(t,r){t>>>=0,r||m(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},u.prototype.readInt16BE=function(t,r){t>>>=0,r||m(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},u.prototype.readInt32LE=function(t,r){return t>>>=0,r||m(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,r){return t>>>=0,r||m(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,r){return t>>>=0,r||m(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,r){return t>>>=0,r||m(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,r){return t>>>=0,r||m(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,r){return t>>>=0,r||m(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,r,e,n){if(t=+t,r>>>=0,e>>>=0,!n){var o=Math.pow(2,8*e)-1;w(this,t,r,e,o,0)}var i=1,f=0;for(this[r]=255&t;++f>>=0,e>>>=0,!n){var o=Math.pow(2,8*e)-1;w(this,t,r,e,o,0)}var i=e-1,f=1;for(this[r+i]=255&t;--i>=0&&(f*=256);)this[r+i]=t/f&255;return r+e},u.prototype.writeUInt8=function(t,r,e){return t=+t,r>>>=0,e||w(this,t,r,1,255,0),this[r]=255&t,r+1},u.prototype.writeUInt16LE=function(t,r,e){return t=+t,r>>>=0,e||w(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeUInt16BE=function(t,r,e){return t=+t,r>>>=0,e||w(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeUInt32LE=function(t,r,e){return t=+t,r>>>=0,e||w(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},u.prototype.writeUInt32BE=function(t,r,e){return t=+t,r>>>=0,e||w(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r>>>=0,!n){var o=Math.pow(2,8*e-1);w(this,t,r,e,o-1,-o)}var i=0,f=1,u=0;for(this[r]=255&t;++i>0)-u&255;return r+e},u.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r>>>=0,!n){var o=Math.pow(2,8*e-1);w(this,t,r,e,o-1,-o)}var i=e-1,f=1,u=0;for(this[r+i]=255&t;--i>=0&&(f*=256);)t<0&&0===u&&0!==this[r+i+1]&&(u=1),this[r+i]=(t/f>>0)-u&255;return r+e},u.prototype.writeInt8=function(t,r,e){return t=+t,r>>>=0,e||w(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},u.prototype.writeInt16LE=function(t,r,e){return t=+t,r>>>=0,e||w(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeInt16BE=function(t,r,e){return t=+t,r>>>=0,e||w(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeInt32LE=function(t,r,e){return t=+t,r>>>=0,e||w(this,t,r,4,2147483647,-2147483648),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},u.prototype.writeInt32BE=function(t,r,e){return t=+t,r>>>=0,e||w(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeFloatLE=function(t,r,e){return A(this,t,r,!0,e)},u.prototype.writeFloatBE=function(t,r,e){return A(this,t,r,!1,e)},u.prototype.writeDoubleLE=function(t,r,e){return B(this,t,r,!0,e)},u.prototype.writeDoubleBE=function(t,r,e){return B(this,t,r,!1,e)},u.prototype.copy=function(t,r,e,n){if(!u.isBuffer(t))throw TypeError("argument should be a Buffer");if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r=0;--i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,n),r);return o},u.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var o,i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(r<0||this.length>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o55295&&e<57344){if(!o){if(e>56319||f+1===n){(r-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&i.push(239,191,189),o=e;continue}e=(o-55296<<10|e-56320)+65536}else o&&(r-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;i.push(e)}else if(e<2048){if((r-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else if(e<1114112){if((r-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}else throw Error("Invalid code point")}return i}function I(t){for(var r=[],e=0;e=r.length)&&!(o>=t.length);++o)r[o+e]=t[o];return o}function C(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}var S=function(){for(var t="0123456789abcdef",r=Array(256),e=0;e<16;++e)for(var n=16*e,o=0;o<16;++o)r[n+o]=t[e]+t[o];return r}()},783:function(t,r){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */r.read=function(t,r,e,n,o){var i,f,u=8*o-n-1,s=(1<>1,h=-7,c=e?o-1:0,p=e?-1:1,l=t[r+c];for(c+=p,i=l&(1<<-h)-1,l>>=-h,h+=u;h>0;i=256*i+t[r+c],c+=p,h-=8);for(f=i&(1<<-h)-1,i>>=-h,h+=n;h>0;f=256*f+t[r+c],c+=p,h-=8);if(0===i)i=1-a;else{if(i===s)return f?NaN:(l?-1:1)*(1/0);f+=Math.pow(2,n),i-=a}return(l?-1:1)*f*Math.pow(2,i-n)},r.write=function(t,r,e,n,o,i){var f,u,s,a=8*i-o-1,h=(1<>1,p=23===o?5960464477539062e-23:0,l=n?0:i-1,y=n?1:-1,g=r<0||0===r&&1/r<0?1:0;for(isNaN(r=Math.abs(r))||r===1/0?(u=isNaN(r)?1:0,f=h):(f=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-f))<1&&(f--,s*=2),f+c>=1?r+=p/s:r+=p*Math.pow(2,1-c),r*s>=2&&(f++,s/=2),f+c>=h?(u=0,f=h):f+c>=1?(u=(r*s-1)*Math.pow(2,o),f+=c):(u=r*Math.pow(2,c-1)*Math.pow(2,o),f=0));o>=8;t[e+l]=255&u,l+=y,u/=256,o-=8);for(f=f<0;t[e+l]=255&f,l+=y,f/=256,a-=8);t[e+l-y]|=128*g}}},e={};function n(t){var o=e[t];if(void 0!==o)return o.exports;var i=e[t]={exports:{}},f=!0;try{r[t](i,i.exports,n),f=!1}finally{f&&delete e[t]}return i.exports}n.ab="//";var o=n(72);t.exports=o}()},7663:function(t){!function(){var r={229:function(t){var r,e,n,o=t.exports={};function i(){throw Error("setTimeout has not been defined")}function f(){throw Error("clearTimeout has not been defined")}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{e="function"==typeof clearTimeout?clearTimeout:f}catch(t){e=f}}();var s=[],a=!1,h=-1;function c(){a&&n&&(a=!1,n.length?s=n.concat(s):h=-1,s.length&&p())}function p(){if(!a){var t=u(c);a=!0;for(var r=s.length;r;){for(n=s,s=[];++h1)for(var e=1;e{t.current=e,setTimeout(()=>{e.scrollToContent(void 0,{fitToContent:!0})},1e3)},children:(0,l.jsx)(o.MainMenu,{children:(0,l.jsx)(o.MainMenu.Item,{icon:(0,l.jsx)(r.Z,{}),onSelect:()=>{var e;null===(e=t.current)||void 0===e||e.scrollToContent(void 0,{fitToContent:!0})},children:"Reset"})})})})})}},6453:function(e,n,t){t.r(n),t.d(n,{MermaidCodeBlockImpl:function(){return u}});var l=t(5893),o=t(1810),r=t(4474),a=t(4363),c=t(7294),i=t(425),s=t(3677);async function d(e){console.log("before try for",e);let{elements:n}=await (0,a.M)(e);return console.log("parse mermaid success for",e),n}function u(e){let{name:n="mermaid",children:t,className:a}=e;console.log(t);let[u,m]=(0,c.useState)([]),[f,h]=(0,c.useState)(!1),x=(0,o.O)("MermaidCodeBlockImpl_parseMermaid");return(0,c.useEffect)(()=>{let e=async()=>{if(f||!t)return;let e=[],n=await x.acquire();try{e=await d(t)}catch(e){console.error("error",e,"for",t)}finally{n()}let l=(0,r.convertToExcalidrawElements)(e);m(l),h(!0),console.log("elements",l)};e()},[t,f]),(0,l.jsx)(l.Fragment,{children:f?(0,l.jsx)(s.ExcalidrawSceneImpl,{elements:u}):(0,l.jsx)(i.g,{})})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/6453.9408c5d4f26e2208.js b/_next/static/chunks/6453.9408c5d4f26e2208.js deleted file mode 100644 index 7547ccf3..00000000 --- a/_next/static/chunks/6453.9408c5d4f26e2208.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6453,3677],{3677:function(e,t,n){n.r(t),n.d(t,{ExcalidrawSceneImpl:function(){return a}});var l=n(5893),r=n(4474),o=n(7294);function a(e){let{elements:t}=e,n=(0,o.useRef)();return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"w-full h-full",children:(0,l.jsx)(r.Excalidraw,{initialData:{elements:t,scrollToContent:!0},UIOptions:{canvasActions:{changeViewBackgroundColor:!1,export:!1,loadScene:!1,saveToActiveFile:!1,toggleTheme:!1,saveAsImage:!1}},theme:"light",viewModeEnabled:!0,zenModeEnabled:!0,gridModeEnabled:!1,detectScroll:!1,excalidrawAPI:e=>{n.current=e,setTimeout(()=>{e.scrollToContent(void 0,{fitToContent:!0})},1e3)}})})})}},6453:function(e,t,n){n.r(t),n.d(t,{MermaidCodeBlockImpl:function(){return u}});var l=n(5893),r=n(1810),o=n(4474),a=n(4363),c=n(7294),i=n(425),s=n(3677);async function d(e){console.log("before try for",e);let{elements:t}=await (0,a.M)(e);return console.log("parse mermaid success for",e),t}function u(e){let{name:t="mermaid",children:n,className:a}=e;console.log(n);let[u,m]=(0,c.useState)([]),[f,g]=(0,c.useState)(!1),w=(0,r.O)("MermaidCodeBlockImpl_parseMermaid");return(0,c.useEffect)(()=>{let e=async()=>{if(f||!n)return;let e=[],t=await w.acquire();try{e=await d(n)}catch(e){console.error("error",e,"for",n)}finally{t()}let l=(0,o.convertToExcalidrawElements)(e);m(l),g(!0),console.log("elements",l)};e()},[n,f]),(0,l.jsx)(l.Fragment,{children:f?(0,l.jsx)(s.ExcalidrawSceneImpl,{elements:u}):(0,l.jsx)(i.g,{})})}}}]); \ No newline at end of file diff --git a/_next/static/chunks/6921.dce91d22e2160c40.js b/_next/static/chunks/6921.dce91d22e2160c40.js new file mode 100644 index 00000000..6605e613 --- /dev/null +++ b/_next/static/chunks/6921.dce91d22e2160c40.js @@ -0,0 +1,21 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6921],{8417:function(e,t,r){"use strict";r.d(t,{Z:function(){return D}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?y[w]+" "+k:s(k,/&\f/g,y[w])).trim())&&(c[x++]=A);return v(e,t,r,0===i?$:l,c,p,h)}function I(e,t,r,n){return v(e,t,r,_,f(e,0,n),f(e,n+1,-1),n)}var M=function(e,t,r){for(var n=0,o=0;n=o,o=k(),38===n&&12===o&&(t[r]=1),!A(o);)w();return f(b,e,m)},L=function(e,t){var r=-1,n=44;do switch(A(n)){case 0:38===n&&12===k()&&(t[r]=1),e[r]+=M(m-1,t,r);break;case 2:e[r]+=O(n);break;case 4:if(44===n){e[++r]=58===k()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}while(n=w());return e},z=function(e,t){var r;return r=L(S(e),t),b="",r},N=new WeakMap,U=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||N.get(r))&&!n){N.set(e,!0);for(var o=[],i=z(t,o),a=r.props,s=0,u=0;s-1&&!e.return)switch(e.type){case _:e.return=function e(t,r){switch(45^l(t,0)?(((r<<2^l(t,0))<<2^l(t,1))<<2^l(t,2))<<2^l(t,3):0){case 5103:return P+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return P+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return P+t+C+t+E+t+t;case 6828:case 4268:return P+t+E+t+t;case 6165:return P+t+E+"flex-"+t+t;case 5187:return P+t+s(t,/(\w+).+(:[^]+)/,P+"box-$1$2"+E+"flex-$1$2")+t;case 5443:return P+t+E+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return P+t+E+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return P+t+E+s(t,"shrink","negative")+t;case 5292:return P+t+E+s(t,"basis","preferred-size")+t;case 6060:return P+"box-"+s(t,"-grow","")+P+t+E+s(t,"grow","positive")+t;case 4554:return P+s(t,/([^-])(transform)/g,"$1"+P+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,P+"$1"),/(image-set)/,P+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,P+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,P+"box-pack:$3"+E+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+P+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,P+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(c(t)-1-r>6)switch(l(t,r+1)){case 109:if(45!==l(t,r+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+P+"$2-$3$1"+C+(108==l(t,r+3)?"$3":"$2-$3"))+t;case 115:return~u(t,"stretch")?e(s(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==l(t,r+1))break;case 6444:switch(l(t,c(t)-3-(~u(t,"!important")&&10))){case 107:return s(t,":",":"+P)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+P+(45===l(t,14)?"inline-":"")+"box$3$1"+P+"$2$3$1"+E+"$2box$3")+t}break;case 5936:switch(l(t,r+11)){case 114:return P+t+E+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return P+t+E+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return P+t+E+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return P+t+E+t+t}return t}(e.value,e.length);break;case Z:return R([x(e,{value:s(e.value,"@","@"+P)})],n);case $:if(e.length)return e.props.map(function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return R([x(e,{props:[s(t,/:(read-\w+)/,":"+C+"$1")]})],n);case"::placeholder":return R([x(e,{props:[s(t,/:(plac\w+)/,":"+P+"input-$1")]}),x(e,{props:[s(t,/:(plac\w+)/,":"+C+"$1")]}),x(e,{props:[s(t,/:(plac\w+)/,E+"input-$1")]})],n)}return""}).join("")}}],D=function(e){var t,r,o,a,y,x=e.key;if("css"===x){var E=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(E,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var C=e.stylisPlugins||W,P={},$=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+x+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r2||A(g)>3?"":" "}(B);break;case 92:G+=function(e,t){for(var r;--t&&w()&&!(g<48)&&!(g>102)&&(!(g>57)||!(g<65))&&(!(g>70)||!(g<97)););return r=m+(t<6&&32==k()&&32==w()),f(b,e,r)}(m-1,7);continue;case 47:switch(k()){case 42:case 47:p(v(C=function(e,t){for(;w();)if(e+g===57)break;else if(e+g===84&&47===k())break;return"/*"+f(b,t,m-1)+"*"+i(47===e?e:w())}(w(),m),r,n,T,i(g),f(C,2,-2),0),E);break;default:G+="/"}break;case 123*M:S[P++]=c(G)*z;case 125*M:case 59:case 0:switch(N){case 0:case 125:L=0;case 59+$:-1==z&&(G=s(G,/\f/g,"")),R>0&&c(G)-_&&p(R>32?I(G+";",o,n,_-1):I(s(G," ","")+";",o,n,_-2),E);break;case 59:G+=";";default:if(p(D=j(G,r,n,P,$,a,S,U,F=[],W=[],_),y),123===N){if(0===$)e(G,r,D,D,F,y,_,S,W);else switch(99===Z&&110===l(G,3)?100:Z){case 100:case 108:case 109:case 115:e(t,D,D,o&&p(j(t,D,D,0,0,a,S,U,a,F=[],_),W),a,W,_,S,o?F:W);break;default:e(G,D,D,D,[""],W,0,S,W)}}}P=$=R=0,M=z=1,U=G="",_=x;break;case 58:_=1+c(G),R=B;default:if(M<1){if(123==N)--M;else if(125==N&&0==M++&&125==(g=m>0?l(b,--m):0,d--,10===g&&(d=1,h--),g))continue}switch(G+=i(N),N*M){case 38:z=$>0?1:(G+="\f",-1);break;case 44:S[P++]=(c(G)-1)*z,z=1;break;case 64:45===k()&&(G+=O(w())),Z=k(),$=_=c(U=G+=function(e){for(;!A(k());)w();return f(b,e,m)}(m)),N++;break;case 45:45===B&&2==c(G)&&(M=0)}}return y}("",null,null,null,[""],t=S(t=e),0,[0],t),b="",r),_)},M={key:x,sheet:new n({key:x,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:P,registered:{},insert:function(e,t,r,n){y=r,Z(e?e+"{"+t.styles+"}":t.styles),n&&(M.inserted[t.name]=!0)}};return M.sheet.hydrate($),M}},5042:function(e,t,r){"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{Z:function(){return n}})},6498:function(e,t,r){"use strict";r.d(t,{C:function(){return s},T:function(){return l},i:function(){return i},w:function(){return u}});var n=r(7294),o=r(8417);r(8137),r(7278);var i=!0,a=n.createContext("undefined"!=typeof HTMLElement?(0,o.Z)({key:"css"}):null),s=a.Provider,u=function(e){return(0,n.forwardRef)(function(t,r){return e(t,(0,n.useContext)(a),r)})};i||(u=function(e){return function(t){var r=(0,n.useContext)(a);return null===r?(r=(0,o.Z)({key:"css"}),n.createElement(a.Provider,{value:r},e(t,r))):e(t,r)}});var l=n.createContext({})},8137:function(e,t,r){"use strict";r.d(t,{O:function(){return d}});var n,o={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=r(5042),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},f=(0,i.Z)(function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()}),c=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===o[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var o=r.next;if(void 0!==o)for(;void 0!==o;)n={name:o.name,styles:o.styles,next:n},o=o.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+l,styles:a,next:n}}},7278:function(e,t,r){"use strict";r.d(t,{L:function(){return a},j:function(){return s}});var n,o=r(7294),i=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,a=i||function(e){return e()},s=i||o.useLayoutEffect},4474:function(e,t,r){"true"===r(3454).env.IS_PREACT?e.exports=r(114):e.exports=r(290)},7499:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return er}});var o=r(7462),i=r(7294),a=r(3366),s=function(){for(var e,t,r=0,n="",o=arguments.length;r=r?P.text.primary:C.text.primary;return t}let m=({color:e,name:t,mainShade:r=500,lightShade:i=300,darkShade:a=700})=>{if(!(e=(0,o.Z)({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw Error((0,h.Z)(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw Error((0,h.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return T(e,"light",i,n),T(e,"dark",a,n),e.contrastText||(e.contrastText=y(e.main)),e},$=(0,d.Z)((0,o.Z)({common:(0,o.Z)({},b),mode:t,primary:m({color:s,name:"primary"}),secondary:m({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:l,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:f,name:"info"}),success:m({color:c,name:"success"}),grey:v,contrastThreshold:r,getContrastText:y,augmentColor:m,tonalOffset:n},{dark:P,light:C}[t]),i);return $}(n),c=(0,l.Z)(e),p=(0,d.Z)(c,{mixins:(t=c.breakpoints,(0,o.Z)({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},r)),palette:f,shadows:B.slice(),typography:function(e,t){let r="function"==typeof t?t(e):t,{fontFamily:n=Z,fontSize:i=14,fontWeightLight:s=300,fontWeightRegular:u=400,fontWeightMedium:l=500,fontWeightBold:f=700,htmlFontSize:c=16,allVariants:p,pxToRem:h}=r,y=(0,a.Z)(r,$),m=i/14,g=h||(e=>`${e/c*m}rem`),b=(e,t,r,i,a)=>(0,o.Z)({fontFamily:n,fontWeight:e,fontSize:g(t),lineHeight:r},n===Z?{letterSpacing:`${Math.round(1e5*(i/t))/1e5}em`}:{},a,p),v={h1:b(s,96,1.167,-1.5),h2:b(s,60,1.2,-.5),h3:b(u,48,1.167,0),h4:b(u,34,1.235,.25),h5:b(u,24,1.334,0),h6:b(l,20,1.6,.15),subtitle1:b(u,16,1.75,.15),subtitle2:b(l,14,1.57,.1),body1:b(u,16,1.5,.15),body2:b(u,14,1.43,.15),button:b(l,14,1.75,.4,_),caption:b(u,12,1.66,.4),overline:b(u,12,2.66,1,_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,d.Z)((0,o.Z)({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:i,fontWeightLight:s,fontWeightRegular:u,fontWeightMedium:l,fontWeightBold:f},v),y,{clone:!1})}(f,s),transitions:function(e){let t=(0,o.Z)({},I,e.easing),r=(0,o.Z)({},M,e.duration),n=(e=["all"],n={})=>{let{duration:o=r.standard,easing:i=t.easeInOut,delay:s=0}=n;return(0,a.Z)(n,j),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:L(o)} ${i} ${"string"==typeof s?s:L(s)}`).join(",")};return(0,o.Z)({getAutoHeightDuration:z,create:n},e,{easing:t,duration:r})}(i),zIndex:(0,o.Z)({},N)});return(p=[].reduce((e,t)=>(0,d.Z)(e,t),p=(0,d.Z)(p,u))).unstable_sxConfig=(0,o.Z)({},y.Z,null==u?void 0:u.unstable_sxConfig),p.unstable_sx=function(e){return(0,m.Z)({sx:e,theme:this})},p}();var W="$$material",D=r(8128);let G=(0,D.ZP)({themeId:W,defaultTheme:F,rootShouldForwardProp:e=>"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e&&"classes"!==e}),K=e=>e,H=(n=K,{configure(e){n=e},generate:e=>n(e),reset(){n=K}}),q={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function V(e,t,r="Mui"){let n=q[t];return n?`${r}-${n}`:`${H.generate(e)}-${t}`}function Y(e){return V("MuiSvgIcon",e)}!function(e,t,r="Mui"){let n={};t.forEach(t=>{n[t]=V(e,t,r)})}("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var X=r(5893);let J=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Q=e=>{let{color:t,fontSize:r,classes:n}=e,o={root:["root","inherit"!==t&&`color${u(t)}`,`fontSize${u(r)}`]};return function(e,t,r){let n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((e,n)=>{if(n){let o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}(o,Y,n)},ee=G("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${u(r.color)}`],t[`fontSize${u(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,u,l,f,c,p,h,d;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:({inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(u=s.pxToRem)?void 0:u.call(s,24))||"1.5rem",large:(null==(l=e.typography)||null==(f=l.pxToRem)?void 0:f.call(l,35))||"2.1875rem"})[t.fontSize],color:null!=(c=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?c:({action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(d=(e.vars||e).palette)||null==(d=d.action)?void 0:d.disabled,inherit:void 0})[t.color]}}),et=i.forwardRef(function(e,t){let r=function({props:e,name:t}){return function({props:e,name:t,defaultTheme:r,themeId:n}){let i=function(e=p){return c(e)}(r);n&&(i=i[n]||i);let a=function(e){let{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?function e(t,r){let n=(0,o.Z)({},r);return Object.keys(t).forEach(i=>{if(i.toString().match(/^(components|slots)$/))n[i]=(0,o.Z)({},t[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){let a=t[i]||{},s=r[i];n[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[i]=(0,o.Z)({},s),Object.keys(a).forEach(t=>{n[i][t]=e(a[t],s[t])})):n[i]=s:n[i]=a}else void 0===n[i]&&(n[i]=t[i])}),n}(t.components[r].defaultProps,n):n}({theme:i,name:t,props:e});return a}({props:e,name:t,defaultTheme:F,themeId:W})}({props:e,name:"MuiSvgIcon"}),{children:n,className:u,color:l="inherit",component:f="svg",fontSize:h="medium",htmlColor:d,inheritViewBox:y=!1,titleAccess:m,viewBox:g="0 0 24 24"}=r,b=(0,a.Z)(r,J),v=i.isValidElement(n)&&"svg"===n.type,x=(0,o.Z)({},r,{color:l,component:f,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:y,viewBox:g,hasSvgAsChild:v}),w={};y||(w.viewBox=g);let k=Q(x);return(0,X.jsxs)(ee,(0,o.Z)({as:f,className:s(k.root,u),focusable:"false",color:d,"aria-hidden":!m||void 0,role:m?"img":void 0,ref:t},w,b,v&&n.props,{ownerState:x,children:[v?n.props.children:n,m?(0,X.jsx)("title",{children:m}):null]}))});et.muiName="SvgIcon";var er=function(e,t){function r(r,n){return(0,X.jsx)(et,(0,o.Z)({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=et.muiName,i.memo(i.forwardRef(r))}((0,X.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh")},22:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{GlobalStyles:function(){return O},StyledEngineProvider:function(){return S},ThemeContext:function(){return l.T},css:function(){return w},default:function(){return E},internal_processStyles:function(){return C},keyframes:function(){return k}});var o=r(7462),i=r(7294),a=r(5042),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,u=(0,a.Z)(function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),l=r(6498),f=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},c=function(e,t,r){f(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}},p=r(8137),h=r(7278),d=function(e){return"theme"!==e},y=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?u:d},m=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return f(t,r,n),(0,h.L)(function(){return c(t,r,n)}),null},b=(function e(t,r){var n,a,s=t.__emotion_real===t,u=s&&t.__emotion_base||t;void 0!==r&&(n=r.label,a=r.target);var f=m(t,r,s),c=f||y(u),h=!c("as");return function(){var d=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&b.push("label:"+n+";"),null==d[0]||void 0===d[0].raw)b.push.apply(b,d);else{b.push(d[0][0]);for(var v=d.length,x=1;xt(null==e||0===Object.keys(e).length?r:e):t})}function E(e,t){let r=b(e,t);return r}"object"==typeof document&&(n=(0,v.Z)({key:"css",prepend:!0}));let C=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},2101:function(e,t,r){"use strict";var n=r(4836);t._j=function(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return u(e)},t.mi=function(e,t){let r=l(e),n=l(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},t.$n=function(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return u(e)};var o=n(r(743)),i=n(r(9425));function a(e,t=0,r=1){return(0,i.default)(e,t,r)}function s(e){let t;if(e.type)return e;if("#"===e.charAt(0))return s(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let r=e.indexOf("("),n=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw Error((0,o.default)(9,e));let i=e.substring(r+1,e.length-1);if("color"===n){if(t=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,o.default)(10,t))}else i=i.split(",");return{type:n,values:i=i.map(e=>parseFloat(e)),colorSpace:t}}function u(e){let{type:t,colorSpace:r}=e,{values:n}=e;return -1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),`${t}(${n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`})`}function l(e){let t="hsl"===(e=s(e)).type||"hsla"===e.type?s(function(e){e=s(e);let{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1),l="rgb",f=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",f.push(t[3])),u({type:l,values:f})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}},8128:function(e,t,r){"use strict";var n=r(4836);t.ZP=function(e={}){let{themeId:t,defaultTheme:r=y,rootShouldForwardProp:n=d,slotShouldForwardProp:u=d}=e,f=e=>(0,l.default)((0,o.default)({},e,{theme:g((0,o.default)({},e,{defaultTheme:r,themeId:t}))}));return f.__mui_systemSx=!0,(e,l={})=>{var c;let h;(0,a.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:y,slot:v,skipVariantsResolver:x,skipSx:w,overridesResolver:k=(c=m(v))?(e,t)=>t[c]:null}=l,A=(0,i.default)(l,p),S=void 0!==x?x:v&&"Root"!==v&&"root"!==v||!1,O=w||!1,E=d;"Root"===v||"root"===v?E=n:v?E=u:"string"==typeof e&&e.charCodeAt(0)>96&&(E=void 0);let C=(0,a.default)(e,(0,o.default)({shouldForwardProp:E,label:h},A)),P=e=>"function"==typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?n=>b(e,(0,o.default)({},n,{theme:g({theme:n.theme,defaultTheme:r,themeId:t})})):e,T=(n,...i)=>{let a=P(n),s=i?i.map(P):[];y&&k&&s.push(e=>{let n=g((0,o.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[y]||!n.components[y].styleOverrides)return null;let i=n.components[y].styleOverrides,a={};return Object.entries(i).forEach(([t,r])=>{a[t]=b(r,(0,o.default)({},e,{theme:n}))}),k(e,a)}),y&&!S&&s.push(e=>{var n;let i=g((0,o.default)({},e,{defaultTheme:r,themeId:t})),a=null==i||null==(n=i.components)||null==(n=n[y])?void 0:n.variants;return b({variants:a},(0,o.default)({},e,{theme:i}))}),O||s.push(f);let u=s.length-i.length;if(Array.isArray(n)&&u>0){let e=Array(u).fill("");(a=[...n,...e]).raw=[...n.raw,...e]}let l=C(a,...s);return e.muiName&&(l.muiName=e.muiName),l};return C.withConfig&&(T.withConfig=C.withConfig),T}};var o=n(r(434)),i=n(r(7071)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=h(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(22)),s=r(211);n(r(9698)),n(r(7889));var u=n(r(9926)),l=n(r(9633));let f=["ownerState"],c=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let y=(0,u.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function g({defaultTheme:e,theme:t,themeId:r}){return 0===Object.keys(t).length?e:t[r]||t}function b(e,t){let{ownerState:r}=t,n=(0,i.default)(t,f),a="function"==typeof e?e((0,o.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(e=>b(e,(0,o.default)({ownerState:r},n)));if(a&&"object"==typeof a&&Array.isArray(a.variants)){let{variants:e=[]}=a,t=(0,i.default)(a,c),s=t;return e.forEach(e=>{let t=!0;"function"==typeof e.props?t=e.props((0,o.default)({ownerState:r},n,r)):Object.keys(e.props).forEach(o=>{(null==r?void 0:r[o])!==e.props[o]&&n[o]!==e.props[o]&&(t=!1)}),t&&(Array.isArray(s)||(s=[s]),s.push("function"==typeof e.style?e.style((0,o.default)({ownerState:r},n,r)):e.style))}),s}return a}},5408:function(e,t,r){"use strict";r.d(t,{L7:function(){return s},VO:function(){return n},W8:function(){return a},k9:function(){return i}});let n={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${n[e]}px)`};function i(e,t,r){let i=e.theme||{};if(Array.isArray(t)){let e=i.breakpoints||o;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){let e=i.breakpoints||o;return Object.keys(t).reduce((o,i)=>{if(-1!==Object.keys(e.values||n).indexOf(i)){let n=e.up(i);o[n]=r(t[i],i)}else o[i]=t[i];return o},{})}let a=r(t);return a}function a(e={}){var t;let r=null==(t=e.keys)?void 0:t.reduce((t,r)=>{let n=e.up(r);return t[n]={},t},{});return r||{}}function s(e,t){return e.reduce((e,t)=>{let r=e[t],n=!r||0===Object.keys(r).length;return n&&delete e[t],e},t)}},7064:function(e,t,r){"use strict";function n(e,t){if(this.vars&&"function"==typeof this.getColorSchemeSelector){let r=this.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return this.palette.mode===e?t:{}}r.d(t,{Z:function(){return n}})},1512:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(3366),o=r(7462);let i=["values","unit","step"],a=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,o.Z)({},e,{[t.key]:t.val}),{})};function s(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:s=5}=e,u=(0,n.Z)(e,i),l=a(t),f=Object.keys(l);function c(e){let n="number"==typeof t[e]?t[e]:e;return`@media (min-width:${n}${r})`}function p(e){let n="number"==typeof t[e]?t[e]:e;return`@media (max-width:${n-s/100}${r})`}function h(e,n){let o=f.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==o&&"number"==typeof t[f[o]]?t[f[o]]:n)-s/100}${r})`}return(0,o.Z)({keys:f,values:l,up:c,down:p,between:h,only:function(e){return f.indexOf(e)+1{let r=0===e.length?[1]:e;return r.map(e=>{let r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ")};return r.mui=!0,r}(d),v=(0,i.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,n.Z)({mode:"light"},h),spacing:b,shape:(0,n.Z)({},s,y)},m);return v.applyStyles=c.Z,(v=t.reduce((e,t)=>(0,i.Z)(e,t),v)).unstable_sxConfig=(0,n.Z)({},f.Z,null==m?void 0:m.unstable_sxConfig),v.unstable_sx=function(e){return(0,l.Z)({sx:e,theme:this})},v}},9926:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z},private_createBreakpoints:function(){return o.Z},unstable_applyStyles:function(){return i.Z}});var n=r(7172),o=r(1512),i=r(7064)},7730:function(e,t,r){"use strict";var n=r(8027);t.Z=function(e,t){return t?(0,n.Z)(e,t,{clone:!1}):e}},8700:function(e,t,r){"use strict";r.d(t,{hB:function(){return d},eI:function(){return h},NA:function(){return y},e6:function(){return g},o3:function(){return b}});var n=r(5408),o=r(4844),i=r(7730);let a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},u={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},l=function(e){let t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!u[e])return[e];e=u[e]}let[t,r]=e.split(""),n=a[t],o=s[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),f=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],c=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...f,...c];function h(e,t,r,n){var i;let a=null!=(i=(0,o.DW)(e,t,!1))?i:r;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>void 0}function d(e){return h(e,"spacing",8,"spacing")}function y(e,t){if("string"==typeof t||null==t)return t;let r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function m(e,t){let r=d(e.theme);return Object.keys(e).map(o=>(function(e,t,r,o){if(-1===t.indexOf(r))return null;let i=l(r),a=e=>i.reduce((t,r)=>(t[r]=y(o,e),t),{}),s=e[r];return(0,n.k9)(e,s,a)})(e,t,o,r)).reduce(i.Z,{})}function g(e){return m(e,f)}function b(e){return m(e,c)}function v(e){return m(e,p)}g.propTypes={},g.filterProps=f,b.propTypes={},b.filterProps=c,v.propTypes={},v.filterProps=p},4844:function(e,t,r){"use strict";r.d(t,{DW:function(){return i},Jq:function(){return a}});var n=r(2908),o=r(5408);function i(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){let r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:i(e,r)||n,t&&(o=t(o,n,e)),o}t.ZP=function(e){let{prop:t,cssProperty:r=e.prop,themeKey:s,transform:u}=e,l=e=>{if(null==e[t])return null;let l=e[t],f=e.theme,c=i(f,s)||{},p=e=>{let o=a(c,u,e);return(e===o&&"string"==typeof e&&(o=a(c,u,`${t}${"default"===e?"":(0,n.Z)(e)}`,e)),!1===r)?o:{[r]:o}};return(0,o.k9)(e,l,p)};return l.propTypes={},l.filterProps=[t],l}},4920:function(e,t,r){"use strict";r.d(t,{Z:function(){return q}});var n=r(8700),o=r(4844),i=r(7730),a=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?(0,i.Z)(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r},s=r(5408);function u(e){return"number"!=typeof e?e:`${e}px solid`}function l(e,t){return(0,o.ZP)({prop:e,themeKey:"borders",transform:t})}let f=l("border",u),c=l("borderTop",u),p=l("borderRight",u),h=l("borderBottom",u),d=l("borderLeft",u),y=l("borderColor"),m=l("borderTopColor"),g=l("borderRightColor"),b=l("borderBottomColor"),v=l("borderLeftColor"),x=l("outline",u),w=l("outlineColor"),k=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,n.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:(0,n.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,r)}return null};k.propTypes={},k.filterProps=["borderRadius"],a(f,c,p,h,d,y,m,g,b,v,k,x,w);let A=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,n.eI)(e.theme,"spacing",8,"gap"),r=e=>({gap:(0,n.NA)(t,e)});return(0,s.k9)(e,e.gap,r)}return null};A.propTypes={},A.filterProps=["gap"];let S=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,n.eI)(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:(0,n.NA)(t,e)});return(0,s.k9)(e,e.columnGap,r)}return null};S.propTypes={},S.filterProps=["columnGap"];let O=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,n.eI)(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:(0,n.NA)(t,e)});return(0,s.k9)(e,e.rowGap,r)}return null};O.propTypes={},O.filterProps=["rowGap"];let E=(0,o.ZP)({prop:"gridColumn"}),C=(0,o.ZP)({prop:"gridRow"}),P=(0,o.ZP)({prop:"gridAutoFlow"}),T=(0,o.ZP)({prop:"gridAutoColumns"}),$=(0,o.ZP)({prop:"gridAutoRows"}),_=(0,o.ZP)({prop:"gridTemplateColumns"}),Z=(0,o.ZP)({prop:"gridTemplateRows"}),R=(0,o.ZP)({prop:"gridTemplateAreas"}),B=(0,o.ZP)({prop:"gridArea"});function j(e,t){return"grey"===t?t:e}a(A,S,O,E,C,P,T,$,_,Z,R,B);let I=(0,o.ZP)({prop:"color",themeKey:"palette",transform:j}),M=(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:j}),L=(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:j});function z(e){return e<=1&&0!==e?`${100*e}%`:e}a(I,M,L);let N=(0,o.ZP)({prop:"width",transform:z}),U=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){let t=t=>{var r,n;let o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||s.VO[t];return o?(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:z(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};U.filterProps=["maxWidth"];let F=(0,o.ZP)({prop:"minWidth",transform:z}),W=(0,o.ZP)({prop:"height",transform:z}),D=(0,o.ZP)({prop:"maxHeight",transform:z}),G=(0,o.ZP)({prop:"minHeight",transform:z});(0,o.ZP)({prop:"size",cssProperty:"width",transform:z}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:z});let K=(0,o.ZP)({prop:"boxSizing"});a(N,U,F,W,D,G,K);let H={border:{themeKey:"borders",transform:u},borderTop:{themeKey:"borders",transform:u},borderRight:{themeKey:"borders",transform:u},borderBottom:{themeKey:"borders",transform:u},borderLeft:{themeKey:"borders",transform:u},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:u},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:k},color:{themeKey:"palette",transform:j},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:j},backgroundColor:{themeKey:"palette",transform:j},p:{style:n.o3},pt:{style:n.o3},pr:{style:n.o3},pb:{style:n.o3},pl:{style:n.o3},px:{style:n.o3},py:{style:n.o3},padding:{style:n.o3},paddingTop:{style:n.o3},paddingRight:{style:n.o3},paddingBottom:{style:n.o3},paddingLeft:{style:n.o3},paddingX:{style:n.o3},paddingY:{style:n.o3},paddingInline:{style:n.o3},paddingInlineStart:{style:n.o3},paddingInlineEnd:{style:n.o3},paddingBlock:{style:n.o3},paddingBlockStart:{style:n.o3},paddingBlockEnd:{style:n.o3},m:{style:n.e6},mt:{style:n.e6},mr:{style:n.e6},mb:{style:n.e6},ml:{style:n.e6},mx:{style:n.e6},my:{style:n.e6},margin:{style:n.e6},marginTop:{style:n.e6},marginRight:{style:n.e6},marginBottom:{style:n.e6},marginLeft:{style:n.e6},marginX:{style:n.e6},marginY:{style:n.e6},marginInline:{style:n.e6},marginInlineStart:{style:n.e6},marginInlineEnd:{style:n.e6},marginBlock:{style:n.e6},marginBlockStart:{style:n.e6},marginBlockEnd:{style:n.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:A},rowGap:{style:O},columnGap:{style:S},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:z},maxWidth:{style:U},minWidth:{transform:z},height:{transform:z},maxHeight:{transform:z},minHeight:{transform:z},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var q=H},9633:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z},extendSxProp:function(){return f},unstable_createStyleFunctionSx:function(){return n.n},unstable_defaultSxConfig:function(){return s.Z}});var n=r(6523),o=r(7462),i=r(3366),a=r(8027),s=r(4920);let u=["sx"],l=e=>{var t,r;let n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:s.Z;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function f(e){let t;let{sx:r}=e,n=(0,i.Z)(e,u),{systemProps:s,otherProps:f}=l(n);return t=Array.isArray(r)?[s,...r]:"function"==typeof r?(...e)=>{let t=r(...e);return(0,a.P)(t)?(0,o.Z)({},s,t):s}:(0,o.Z)({},s,r),(0,o.Z)({},f,{sx:t})}},6523:function(e,t,r){"use strict";r.d(t,{n:function(){return u}});var n=r(2908),o=r(7730),i=r(4844),a=r(5408),s=r(4920);function u(){function e(e,t,r,o){let s={[e]:t,theme:r},u=o[e];if(!u)return{[e]:t};let{cssProperty:l=e,themeKey:f,transform:c,style:p}=u;if(null==t)return null;if("typography"===f&&"inherit"===t)return{[e]:t};let h=(0,i.DW)(r,f)||{};if(p)return p(s);let d=t=>{let r=(0,i.Jq)(h,c,t);return(t===r&&"string"==typeof t&&(r=(0,i.Jq)(h,c,`${e}${"default"===t?"":(0,n.Z)(t)}`,t)),!1===l)?r:{[l]:r}};return(0,a.k9)(s,t,d)}return function t(r){var n;let{sx:i,theme:u={}}=r||{};if(!i)return null;let l=null!=(n=u.unstable_sxConfig)?n:s.Z;function f(r){let n=r;if("function"==typeof r)n=r(u);else if("object"!=typeof r)return r;if(!n)return null;let i=(0,a.W8)(u.breakpoints),s=Object.keys(i),f=i;return Object.keys(n).forEach(r=>{var i;let s="function"==typeof(i=n[r])?i(u):i;if(null!=s){if("object"==typeof s){if(l[r])f=(0,o.Z)(f,e(r,s,u,l));else{let e=(0,a.k9)({theme:u},s,e=>({[r]:e}));(function(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)})(e,s)?f[r]=t({sx:s,theme:u}):f=(0,o.Z)(f,e)}}else f=(0,o.Z)(f,e(r,s,u,l))}}),(0,a.L7)(s,f)}return Array.isArray(i)?i.map(f):f(i)}}let l=u();l.filterProps=["sx"],t.Z=l},2908:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(8758);function o(e){if("string"!=typeof e)throw Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},9698:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z}});var n=r(2908)},9425:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});var n=function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}},8027:function(e,t,r){"use strict";r.d(t,{P:function(){return o},Z:function(){return function e(t,r,i={clone:!0}){let a=i.clone?(0,n.Z)({},t):t;return o(t)&&o(r)&&Object.keys(r).forEach(n=>{"__proto__"!==n&&(o(r[n])&&n in t&&o(t[n])?a[n]=e(t[n],r[n],i):i.clone?a[n]=o(r[n])?function e(t){if(!o(t))return t;let r={};return Object.keys(t).forEach(n=>{r[n]=e(t[n])}),r}(r[n]):r[n]:a[n]=r[n])}),a}}});var n=r(7462);function o(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}},211:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z},isPlainObject:function(){return n.P}});var n=r(8027)},8758:function(e,t,r){"use strict";function n(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e0?a-4:a;for(r=0;r>16&255,l[f++]=t>>8&255,l[f++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[f++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[f++]=t>>8&255,l[f++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,a,a+16383>s?s:a+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(e,t,r){"use strict";/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */var n=r(675),o=r(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|h(e,t),n=a(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return C(e).length;default:if(o)return n?-1:O(e).length;t=(""+t).toLowerCase(),o=!0}}function d(e,t,r){var o,i,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(i=r=+r)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return -1;r=e.length-1}else if(r<0){if(!o)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,o);throw TypeError("val must be string, number or Buffer")}function g(e,t,r,n,o){var i,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,u/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var f=-1;for(i=r;is&&(r=s-u),i=r;i>=0;i--){for(var c=!0,p=0;p239?4:l>223?3:l>191?2:1;if(o+c<=r)switch(c){case 1:l<128&&(f=l);break;case 2:(192&(i=e[o+1]))==128&&(u=(31&l)<<6|63&i)>127&&(f=u);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(u=(15&l)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(u=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,c=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),o+=c}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function x(e,t,r,n,o,i){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw RangeError("Index out of range")}function w(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function k(e,t,r,n,i){return t=+t,r>>>=0,i||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function A(e,t,r,n,i){return t=+t,r>>>=0,i||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(l(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return f(e)},s.allocUnsafeSlow=function(e){return f(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);or&&(e+=" ... "),""},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,o){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,a=r-t,u=Math.min(i,a),l=this.slice(n,o),f=e.slice(t,r),c=0;c>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,s,u,l,f,c,p,h,d,y,m=this.length-t;if((void 0===r||r>m)&&(r=m),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var g=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a>8,o.push(r%256),o.push(n);return o}(e,this.length-d),this,d,y);default:if(g)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),g=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e],o=1,i=0;++i>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var n=this[e],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||v(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||v(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||v(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;x(this,e,t,r,o,0)}var i=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;x(this,e,t,r,o,0)}var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);x(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);x(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return A(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return A(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!o){if(r>56319||a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function E(e){for(var t=[],r=0;r=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var $=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<>1,f=-7,c=r?o-1:0,p=r?-1:1,h=e[t+c];for(c+=p,i=h&(1<<-f)-1,h>>=-f,f+=s;f>0;i=256*i+e[t+c],c+=p,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+e[t+c],c+=p,f-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,n),i-=l}return(h?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,u,l=8*i-o-1,f=(1<>1,p=23===o?5960464477539062e-23:0,h=n?0:i-1,d=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+c>=1?t+=p/u:t+=p*Math.pow(2,1-c),t*u>=2&&(a++,u/=2),a+c>=f?(s=0,a=f):a+c>=1?(s=(t*u-1)*Math.pow(2,o),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&s,h+=d,s/=256,o-=8);for(a=a<0;e[r+h]=255&a,h+=d,a/=256,l-=8);e[r+h-d]|=128*y}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab="//";var o=n(72);e.exports=o}()},7663:function(e){!function(){var t={229:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u=[],l=!1,f=-1;function c(){l&&n&&(l=!1,n.length?u=n.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=s(c);l=!0;for(var t=u.length;t;){for(n=u,u=[];++f1)for(var r=1;r=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},7462:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}r.d(t,{Z:function(){return n}})}}]); \ No newline at end of file diff --git a/_next/static/chunks/pages/_app-7bc6704fa890e74d.js b/_next/static/chunks/pages/_app-f8c4bb9f0ed262ff.js similarity index 99% rename from _next/static/chunks/pages/_app-7bc6704fa890e74d.js rename to _next/static/chunks/pages/_app-f8c4bb9f0ed262ff.js index 955c2949..d79d34bc 100644 --- a/_next/static/chunks/pages/_app-7bc6704fa890e74d.js +++ b/_next/static/chunks/pages/_app-f8c4bb9f0ed262ff.js @@ -13,7 +13,7 @@ * https://www.chartjs.org * (c) 2024 Chart.js Contributors * Released under the MIT License - */class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){let n=e.listeners[s],r=e.duration;n.forEach(s=>s({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(i-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=tj.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,s)=>{let n;if(!i.running||!i.items.length)return;let r=i.items,a=r.length-1,o=!1;for(;a>=0;--a)(n=r[a])._active?(n._total>i.duration&&(i.duration=n._total),n.tick(t),o=!0):(r[a]=r[r.length-1],r.pop());o&&(s.draw(),this._notify(s,i,t,"progress")),r.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=r.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){let e=this._charts,i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){let e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;let e=this._charts.get(t);return!!e&&!!e.running&&!!e.items.length}stop(t){let e=this._charts.get(t);if(!e||!e.items.length)return;let i=e.items,s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};let e8="transparent",e6={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){let s=tX(t||e8),n=s.valid&&tX(e||e8);return n&&n.valid?n.mix(s,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class e7{constructor(t,e,i,s){let n=e[i];s=eb([t.to,s,n,t.from]);let r=eb([t.from,n,s]);this._active=!0,this._fn=t.fn||e6[t.type||typeof r],this._easing=tU[t.easing]||tU.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);let s=this._target[this._prop],n=i-this._start,r=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=eb([t.to,e,s,t.from]),this._from=eb([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){let e;let i=t-this._start,s=this._duration,n=this._prop,r=this._from,a=this._loop,o=this._to;if(this._active=r!==o&&(a||i1?2-e:e,e=this._easing(Math.min(1,Math.max(0,e))),this._target[n]=this._fn(r,o,e)}wait(){let t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){let e=t?"res":"rej",i=this._promises||[];for(let t=0;t{let n=t[s];if(!N(n))return;let r={};for(let t of e)r[t]=n[t];(V(n.properties)&&n.properties||[s]).forEach(t=>{t!==s&&i.has(t)||i.set(t,r)})})}_animateOptions(t,e){let i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(!i){t.options=e;return}return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i}(t,i);if(!s)return[];let n=this._createAnimations(s,i);return i.$shared&&(function(t,e){let i=[],s=Object.keys(e);for(let e=0;e{t.options=i},()=>{}),n}_createAnimations(t,e){let i;let s=this._properties,n=[],r=t.$animations||(t.$animations={}),a=Object.keys(e),o=Date.now();for(i=a.length-1;i>=0;--i){let l=a[i];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(t,e));continue}let h=e[l],c=r[l],d=s.get(l);if(c){if(d&&c.active()){c.update(d,h,o);continue}c.cancel()}if(!d||!d.duration){t[l]=h;continue}r[l]=c=new e7(d,t,l,h),n.push(c)}return n}update(t,e){if(0===this._properties.size){Object.assign(t,e);return}let i=this._createAnimations(t,e);if(i.length)return e4.add(this._chart,i),!0}}function it(t,e){let i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,r=void 0===i.max?e:0;return{start:s?r:n,end:s?n:r}}function ie(t,e){let i,s;let n=[],r=t._getSortedDatasetMetas(e);for(i=0,s=r.length;i0||!i&&e<0)return n.index}return null}function ia(t,e){let i;let{chart:s,_cachedMeta:n}=t,r=s._stacks||(s._stacks={}),{iScale:a,vScale:o,index:l}=n,h=a.axis,c=o.axis,d=`${a.id}.${o.id}.${n.stack||n.type}`,u=e.length;for(let t=0;ti[t].axis===e).shift()}function il(t,e){let i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s)for(let n of e=e||t._parsed){let t=n._stacks;if(!t||void 0===t[s]||void 0===t[s][i])return;delete t[s][i],void 0!==t[s]._visualValues&&void 0!==t[s]._visualValues[i]&&delete t[s]._visualValues[i]}}let ih=t=>"reset"===t||"none"===t,ic=(t,e)=>e?t:Object.assign({},t),id=(t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:ie(i,!0),values:null};class iu{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=is(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&il(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,n=e.xAxisID=B(i.xAxisID,io(t,"x")),r=e.yAxisID=B(i.yAxisID,io(t,"y")),a=e.rAxisID=B(i.rAxisID,io(t,"r")),o=e.indexAxis,l=e.iAxisID=s(o,n,r,a),h=e.vAxisID=s(o,r,n,a);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&tR(this._data,this),t._stacked&&il(t)}_dataCheck(){let t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(N(e))this._data=function(t){let e,i,s;let n=Object.keys(t),r=Array(n.length);for(e=0,i=n.length;e{let i="_onData"+ts(e),s=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){let n=s.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"==typeof t[i]&&t[i](...e)}),n}})})}(e,this),this._syncList=[],this._data=e}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let e=this._cachedMeta,i=this.getDataset(),s=!1;this._dataCheck();let n=e._stacked;e._stacked=is(e.vScale,e),e.stack!==i.stack&&(s=!0,il(e),e.stack=i.stack),this._resyncElements(t),(s||n!==e._stacked)&&ia(this,e._parsed)}configure(){let t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){let i,s,n;let{_cachedMeta:r,_data:a}=this,{iScale:o,_stacked:l}=r,h=o.axis,c=0===t&&e===a.length||r._sorted,d=t>0&&r._parsed[t-1];if(!1===this._parsing)r._parsed=a,r._sorted=!0,n=a;else{n=V(a[t])?this.parseArrayData(r,a,t,e):N(a[t])?this.parseObjectData(r,a,t,e):this.parsePrimitiveData(r,a,t,e);let o=()=>null===s[h]||d&&s[h]e||u=0;--i)if(!f()){this.updateRangeFromParsed(c,t,s,h);break}}return c}getAllParsedValues(t){let e,i,s;let n=this._cachedMeta._parsed,r=[];for(e=0,i=n.length;e=0&&tthis.getContext(i,s,e),g=l.resolveNamedOptions(d,u,f,c);return g.$shared&&(g.$shared=o,n[r]=Object.freeze(ic(g,o))),g}_resolveAnimations(t,e,i){let s;let n=this.chart,r=this._cachedDataOpts,a=`animation-${e}`,o=r[a];if(o)return o;if(!1!==n.options.animation){let n=this.chart.config,r=n.datasetAnimationScopeKeys(this._type,e),a=n.getOptionScopes(this.getDataset(),r);s=n.createResolver(a,this.getContext(t,i,e))}let l=new e9(n,s&&s.animations);return s&&s._cacheable&&(r[a]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||ih(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){let i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,n=this.getSharedOptions(i),r=this.includeOptions(e,n)||n!==s;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:r}}updateElement(t,e,i,s){ih(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!ih(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;let n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let e=this._data,i=this._cachedMeta.data;for(let[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];let s=i.length,n=e.length,r=Math.min(n,s);r&&this.parse(0,r),n>s?this._insertElements(s,n-s,t):n{for(t.length+=e,s=t.length-1;s>=a;s--)t[s]=t[s-e]};for(o(r),s=t;sMath.abs(o)&&(l=o,h=a),e[i.axis]=h,e._custom={barStart:l,barEnd:h,start:n,end:r,min:a,max:o}}(t,e,i,s):e[i.axis]=i.parse(t,s),e}function ip(t,e,i,s){let n,r,a,o;let l=t.iScale,h=t.vScale,c=l.getLabels(),d=l===h,u=[];for(n=i,r=i+s;n=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:n}=e,r=this.getParsed(t),a=s.getLabelForValue(r.x),o=n.getLabelForValue(r.y),l=r._custom;return{label:i[t]||"",value:"("+a+", "+o+(l?", "+l:"")+")"}}update(t){let e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){let n="reset"===s,{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:o,includeOptions:l}=this._getSharedOptions(e,s),h=r.axis,c=a.axis;for(let d=e;d"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let e=t.data;if(e.labels.length&&e.datasets.length){let{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map((e,n)=>{let r=t.getDatasetMeta(0),a=r.controller.getStyle(n);return{text:e,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:s,lineWidth:a.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){let i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let n,r,a=t=>+i[t];if(N(i[t])){let{key:t="value"}=this._parsing;a=e=>+ti(i[e],t)}for(n=t,r=t+e;ntP(e,t,o,!0)?1:Math.max(s,s*i,n,n*i),f=(e,s,n)=>tP(e,t,o,!0)?-1:Math.min(s,s*i,n,n*i),g=u(0,l,c),p=u(tu,h,d),m=f(to,l,c),b=f(to+tu,h,d);s=(g-m)/2,n=(p-b)/2,r=-(g+m)/2,a=-(p+b)/2}return{ratioX:s,ratioY:n,offsetX:r,offsetY:a}}(c,h,o),p=(i.width-r)/d,m=(i.height-r)/u,b=Y(this.options.radius,Math.max(Math.min(p,m)/2,0)),x=(b-Math.max(b*o,0))/this._getVisibleDatasetWeightTotal();this.offsetX=f*b,this.offsetY=g*b,s.total=this.calculateTotal(),this.outerRadius=b-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*l,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){let i=this.options,s=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*n/tl)}updateElements(t,e,i,s){let n;let r="reset"===s,a=this.chart,o=a.chartArea,l=a.options,h=l.animation,c=(o.left+o.right)/2,d=(o.top+o.bottom)/2,u=r&&h.animateScale,f=u?0:this.innerRadius,g=u?0:this.outerRadius,{sharedOptions:p,includeOptions:m}=this._getSharedOptions(e,s),b=this._getRotation();for(n=0;n0&&!isNaN(t)?tl*(Math.abs(t)/e):0}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=tQ(e._parsed[t],i.options.locale);return{label:s[t]||"",value:n}}getMaxBorderWidth(t){let e,i,s,n,r,a=0,o=this.chart;if(!t){for(e=0,i=o.data.datasets.length;e0&&this.getParsed(e-1);for(let i=0;i=b){x.skip=!0;continue}let y=this.getParsed(i),v=z(y[u]),w=x[d]=r.getPixelForValue(y[d],i),M=x[u]=n||v?a.getBasePixel():a.getPixelForValue(o?this.applyStack(a,y,o):y[u],i);x.skip=isNaN(w)||isNaN(M)||v,x.stop=i>0&&Math.abs(y[d]-_[d])>p,g&&(x.parsed=y,x.raw=l.data[i]),c&&(x.options=h||this.resolveDataElementOptions(i,f.active?"active":s)),m||this.updateElement(f,i,x,s),_=y}}getMaxOverflow(){let t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;let n=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,n,r)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}class iw extends iu{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let e=t.data;if(e.labels.length&&e.datasets.length){let{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map((e,n)=>{let r=t.getDatasetMeta(0),a=r.controller.getStyle(n);return{text:e,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:s,lineWidth:a.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=tQ(e._parsed[t].r,i.options.locale);return{label:s[t]||"",value:n}}parseObjectData(t,e,i,s){return eD.bind(this)(t,e,i,s)}update(t){let e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){let t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,i)=>{let s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(se.max&&(e.max=s))}),e}_updateRadius(){let t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(s/2,0),r=Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0),a=(n-r)/t.getVisibleDatasetCount();this.outerRadius=n-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,i,s){let n;let r="reset"===s,a=this.chart,o=a.options,l=o.animation,h=this._cachedMeta.rScale,c=h.xCenter,d=h.yCenter,u=h.getIndexAngle(0)-.5*to,f=u,g=360/this.countVisibleElements();for(n=0;n{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?tv(this.resolveDataElementOptions(t,e).angle||i):0}}class iM extends iy{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}class ik extends iu{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){let e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,s){return eD.bind(this)(t,e,i,s)}update(t){let e=this._cachedMeta,i=e.dataset,s=e.data||[],n=e.iScale.getLabels();if(i.points=s,"resize"!==t){let e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);let r={_loop:!0,_fullLoop:n.length===s.length,options:e};this.updateElement(i,void 0,r,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){let n=this._cachedMeta.rScale,r="reset"===s;for(let a=e;a0&&this.getParsed(e-1);for(let h=e;h0&&Math.abs(i[u]-x[u])>m,p&&(g.parsed=i,g.raw=l.data[h]),d&&(g.options=c||this.resolveDataElementOptions(h,e.active?"active":s)),b||this.updateElement(e,h,g,s),x=i}this.updateSharedOptions(c,s,h)}getMaxOverflow(){let t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}let i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!e.length)return s;let n=e[0].size(this.resolveDataElementOptions(0)),r=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(s,n,r)/2}}function iO(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class iP{static override(t){Object.assign(iP.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return iO()}parse(){return iO()}format(){return iO()}add(){return iO()}diff(){return iO()}startOf(){return iO()}endOf(){return iO()}}var iE={_date:iP};function iC(t,e,i,s,n){let r=t.getSortedVisibleDatasetMetas(),a=i[e];for(let t=0,i=r.length;t{t[a](e[i],n)&&(r.push({element:t,datasetIndex:s,index:l}),o=o||t.inRange(e.x,e.y,n))}),s&&!o)?[]:r}var iA={evaluateInteractionItems:iC,modes:{index(t,e,i,s){let n=e$(e,t),r=i.axis||"x",a=i.includeInvisible||!1,o=i.intersect?iD(t,n,r,s,a):iT(t,n,r,!1,s,a),l=[];return o.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{let e=o[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,i,s){let n=e$(e,t),r=i.axis||"xy",a=i.includeInvisible||!1,o=i.intersect?iD(t,n,r,s,a):iT(t,n,r,!1,s,a);if(o.length>0){let e=o[0].datasetIndex,i=t.getDatasetMeta(e).data;o=[];for(let t=0;tt.pos===e)}function ij(t,e){return t.filter(t=>-1===iR.indexOf(t.pos)&&t.box.axis===e)}function iF(t,e){return t.sort((t,i)=>{let s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight})}function iz(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function iV(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function iN(t,e,i,s){let n,r,a,o,l,h;let c=[];for(n=0,r=t.length,l=0;n{s[t]=Math.max(e[t],i[t])}),s}(t?["left","right"]:["top","bottom"])}(a.horizontal,e));let{same:r,other:d}=function(t,e,i,s){let{pos:n,box:r}=i,a=t.maxPadding;if(!N(n)){i.size&&(t[n]-=i.size);let e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?r.height:r.width),i.size=e.size/e.count,t[n]+=i.size}r.getPadding&&iV(a,r.getPadding());let o=Math.max(0,e.outerWidth-iz(a,t,"left","right")),l=Math.max(0,e.outerHeight-iz(a,t,"top","bottom")),h=o!==t.w,c=l!==t.h;return t.w=o,t.h=l,i.horizontal?{same:h,other:c}:{same:c,other:h}}(e,i,a,s);l|=r&&c.length,h=h||d,o.fullSize||c.push(a)}return l&&iN(c,e,i,s)||h}function iW(t,e,i,s,n){t.top=i,t.left=e,t.right=e+s,t.bottom=i+n,t.width=s,t.height=n}function i$(t,e,i,s){let n=i.padding,{x:r,y:a}=e;for(let o of t){let t=o.box,l=s[o.stack]||{count:1,placed:0,weight:1},h=o.stackWeight/l.weight||1;if(o.horizontal){let s=e.w*h,r=l.size||t.height;tn(l.start)&&(a=l.start),t.fullSize?iW(t,n.left,a,i.outerWidth-n.right-n.left,r):iW(t,e.left+l.placed,a,s,r),l.start=a,l.placed+=s,a=t.bottom}else{let s=e.h*h,a=l.size||t.width;tn(l.start)&&(r=l.start),t.fullSize?iW(t,r,n.top,a,i.outerHeight-n.bottom-n.top):iW(t,r,e.top+l.placed,a,s),l.start=r,l.placed+=s,r=t.right}}e.x=r,e.y=a}var iB={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){let i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,s){if(!t)return;let n=ep(t.options.layout.padding),r=Math.max(e-n.width,0),a=Math.max(i-n.height,0),o=function(t){let e=function(t){let e,i,s,n,r,a;let o=[];for(e=0,i=(t||[]).length;et.box.fullSize),!0),s=iF(iI(e,"left"),!0),n=iF(iI(e,"right")),r=iF(iI(e,"top"),!0),a=iF(iI(e,"bottom")),o=ij(e,"x"),l=ij(e,"y");return{fullSize:i,leftAndTop:s.concat(r),rightAndBottom:n.concat(l).concat(a).concat(o),chartArea:iI(e,"chartArea"),vertical:s.concat(n).concat(l),horizontal:r.concat(a).concat(o)}}(t.boxes),l=o.vertical,h=o.horizontal;q(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});let c=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:r,availableHeight:a,vBoxMaxWidth:r/2/c,hBoxMaxHeight:a/2}),u=Object.assign({},n);iV(u,ep(s));let f=Object.assign({maxPadding:u,w:r,h:a,x:n.left,y:n.top},n),g=function(t,e){let i,s,n;let r=function(t){let e={};for(let i of t){let{stack:t,pos:s,stackWeight:n}=i;if(!t||!iR.includes(s))continue;let r=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=n}return e}(t),{vBoxMaxWidth:a,hBoxMaxHeight:o}=e;for(i=0,s=t.length;i{let i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class iH{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class iY extends iH{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}let iU="$chartjs",iq={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},iX=t=>null===t||""===t,iZ=!!eY&&{passive:!0};function iG(t,e,i){t&&t.canvas&&t.canvas.removeEventListener(e,i,iZ)}function iK(t,e){for(let i of t)if(i===e||i.contains(e))return!0}function iJ(t,e,i){let s=t.canvas,n=new MutationObserver(t=>{let e=!1;for(let i of t)e=(e=e||iK(i.addedNodes,s))&&!iK(i.removedNodes,s);e&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}function iQ(t,e,i){let s=t.canvas,n=new MutationObserver(t=>{let e=!1;for(let i of t)e=(e=e||iK(i.removedNodes,s))&&!iK(i.addedNodes,s);e&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}let i0=new Map,i1=0;function i2(){let t=window.devicePixelRatio;t!==i1&&(i1=t,i0.forEach((e,i)=>{i.currentDevicePixelRatio!==t&&e()}))}function i5(t,e,i){let s=t.canvas,n=s&&ej(s);if(!n)return;let r=tF((t,e)=>{let s=n.clientWidth;i(t,e),s{let e=t[0],i=e.contentRect.width,s=e.contentRect.height;(0!==i||0!==s)&&r(i,s)});return a.observe(n),i0.size||window.addEventListener("resize",i2),i0.set(t,r),a}function i3(t,e,i){i&&i.disconnect(),"resize"===e&&(i0.delete(t),i0.size||window.removeEventListener("resize",i2))}function i4(t,e,i){let s=t.canvas,n=tF(e=>{null!==t.ctx&&i(function(t,e){let i=iq[t.type]||t.type,{x:s,y:n}=e$(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==n?n:null}}(e,t))},t);return s&&s.addEventListener(e,n,iZ),n}class i8 extends iH{acquireContext(t,e){let i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(!function(t,e){let i=t.style,s=t.getAttribute("height"),n=t.getAttribute("width");if(t[iU]={initial:{height:s,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",iX(n)){let e=eU(t,"width");void 0!==e&&(t.width=e)}if(iX(s)){if(""===t.style.height)t.height=t.width/(e||2);else{let e=eU(t,"height");void 0!==e&&(t.height=e)}}}(t,e),i):null}releaseContext(t){let e=t.canvas;if(!e[iU])return!1;let i=e[iU].initial;["height","width"].forEach(t=>{let s=i[t];z(s)?e.removeAttribute(t):e.setAttribute(t,s)});let s=i.style||{};return Object.keys(s).forEach(t=>{e.style[t]=s[t]}),e.width=e.width,delete e[iU],!0}addEventListener(t,e,i){this.removeEventListener(t,e);let s=t.$proxies||(t.$proxies={});s[e]=(({attach:iJ,detach:iQ,resize:i5})[e]||i4)(t,e,i)}removeEventListener(t,e){let i=t.$proxies||(t.$proxies={}),s=i[e];s&&((({attach:i3,detach:i3,resize:i3})[e]||iG)(t,e,s),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return function(t,e,i,s){let n=ez(t),r=eN(n,"margin"),a=eF(n.maxWidth,t,"clientWidth")||tc,o=eF(n.maxHeight,t,"clientHeight")||tc,l=function(t,e,i){let s,n;if(void 0===e||void 0===i){let r=ej(t);if(r){let t=r.getBoundingClientRect(),a=ez(r),o=eN(a,"border","width"),l=eN(a,"padding");e=t.width-l.width-o.width,i=t.height-l.height-o.height,s=eF(a.maxWidth,r,"clientWidth"),n=eF(a.maxHeight,r,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||tc,maxHeight:n||tc}}(t,e,i),{width:h,height:c}=l;if("content-box"===n.boxSizing){let t=eN(n,"border","width"),e=eN(n,"padding");h-=e.width+t.width,c-=e.height+t.height}return h=Math.max(0,h-r.width),c=Math.max(0,s?h/s:c-r.height),h=eB(Math.min(h,a,l.maxWidth)),c=eB(Math.min(c,o,l.maxHeight)),h&&!c&&(c=eB(h/2)),(void 0!==e||void 0!==i)&&s&&l.height&&c>l.height&&(h=eB(Math.floor((c=l.height)*s))),{width:h,height:c}}(t,e,i,s)}isAttached(t){let e=ej(t);return!!(e&&e.isConnected)}}class i6{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){let{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return t_(this.x)&&t_(this.y)}getProps(t,e){let i=this.$animations;if(!e||!i)return this;let s={};return t.forEach(t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]}),s}}function i7(t,e,i,s,n){let r,a,o;let l=B(s,0),h=Math.min(B(n,t.length),t.length),c=0;for(i=Math.ceil(i),n&&(i=(r=n-s)/Math.floor(r/i)),o=l;o<0;)o=Math.round(l+ ++c*i);for(a=Math.max(l,0);a"left"===t?"right":"right"===t?"left":t,st=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i,se=(t,e)=>Math.min(e||t,t);function si(t,e){let i=[],s=t.length/e,n=t.length,r=0;for(;rs?s:i,s=n&&i>s?i:s,{min:$(i,$(s,i)),max:$(s,$(i,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){let e=this._labelItems||(this._labelItems=this._computeLabelItems(t));return e}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){U(this.options.beforeUpdate,[this])}update(t,e,i){let{beginAtZero:s,grace:n,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,i){let{min:s,max:n}=t,r=Y(e,(n-s)/2),a=(t,e)=>i&&0===t?0:t+e;return{min:a(s,-Math.abs(r)),max:a(n,r)}}(this,n,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let o=an)return function(t,e,i,s){let n,r=0,a=i[0];for(n=0,s=Math.ceil(s);nt-e).pop(),i}(s);for(let t=0,e=r.length-1;tn)return e}return Math.max(n,1)}(r,e,n);if(a>0){let t,i;let s=a>1?Math.round((l-o)/(a-1)):null;for(i7(e,h,c,z(s)?0:o-s,o),t=0,i=a-1;t=o||r<=1||!this.isHorizontal()){this.labelRotation=a;return}let h=this._getLabelSizes(),c=h.widest.width,d=h.highest.height,u=tE(this.chart.width-c,0,this.maxWidth);c+6>(t=s.offset?this.maxWidth/r:u/(r-1))&&(t=u/(r-(s.offset?.5:1)),e=this.maxHeight-ss(s.grid)-n.padding-sn(s.title,this.chart.options.font),i=Math.sqrt(c*c+d*d),l=Math.max(a,Math.min(o,l=Math.min(Math.asin(tE((h.highest.height+6)/t,-1,1)),Math.asin(tE(e/i,-1,1))-Math.asin(tE(d/i,-1,1)))*(180/to)))),this.labelRotation=l}afterCalculateLabelRotation(){U(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){U(this.options.beforeFit,[this])}fit(){let t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:n}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){let r=sn(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=ss(n)+r):(t.height=this.maxHeight,t.width=ss(n)+r),i.display&&this.ticks.length){let{first:e,last:s,widest:n,highest:r}=this._getLabelSizes(),o=2*i.padding,l=tv(this.labelRotation),h=Math.cos(l),c=Math.sin(l);if(a){let e=i.mirror?0:c*n.width+h*r.height;t.height=Math.min(this.maxHeight,t.height+e+o)}else{let e=i.mirror?0:h*n.width+c*r.height;t.width=Math.min(this.maxWidth,t.width+e+o)}this._calculatePadding(e,s,c,h)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){let{ticks:{align:n,padding:r},position:a}=this.options,o=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){let a=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1),c=0,d=0;o?l?(c=s*t.width,d=i*e.height):(c=i*t.height,d=s*e.width):"start"===n?d=e.width:"end"===n?c=t.width:"inner"!==n&&(c=t.width/2,d=e.width/2),this.paddingLeft=Math.max((c-a+r)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-h+r)*this.width/(this.width-h),0)}else{let i=e.height/2,s=t.height/2;"start"===n?(i=0,s=t.height):"end"===n&&(i=e.height,s=0),this.paddingTop=i+r,this.paddingBottom=s+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){U(this.options.afterFit,[this])}isHorizontal(){let{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e{let i;let s=t.gc,n=s.length/2;if(n>e){for(i=0;i({width:m[t]||0,height:b[t]||0});return{first:M(0),last:M(e-1),widest:M(v),highest:M(w),widths:m,heights:b}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){let e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);let e=this._startPixel+t*this._length;return tE(this._alignToPixels?t7(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){let e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){let e=this.ticks||[];if(t>=0&&ta*s?a/i:o/s:o*s0}_computeGridLineItems(t){let e,i,s,n,r,a,o,l,h,c,d,u;let f=this.axis,g=this.chart,p=this.options,{grid:m,position:b,border:x}=p,_=m.offset,y=this.isHorizontal(),v=this.ticks,w=v.length+(_?1:0),M=ss(m),k=[],S=x.setContext(this.getContext()),O=S.display?S.width:0,P=O/2,E=function(t){return t7(g,t,O)};if("top"===b)e=E(this.bottom),a=this.bottom-M,l=e-P,c=E(t.top)+P,u=t.bottom;else if("bottom"===b)e=E(this.top),c=t.top,u=E(t.bottom)-P,a=e+P,l=this.top+M;else if("left"===b)e=E(this.right),r=this.right-M,o=e-P,h=E(t.left)+P,d=t.right;else if("right"===b)e=E(this.left),h=t.left,d=E(t.right)-P,r=e+P,o=this.left+M;else if("x"===f){if("center"===b)e=E((t.top+t.bottom)/2+.5);else if(N(b)){let t=Object.keys(b)[0],i=b[t];e=E(this.chart.scales[t].getPixelForValue(i))}c=t.top,u=t.bottom,l=(a=e+P)+M}else if("y"===f){if("center"===b)e=E((t.left+t.right)/2);else if(N(b)){let t=Object.keys(b)[0],i=b[t];e=E(this.chart.scales[t].getPixelForValue(i))}o=(r=e-P)-M,h=t.left,d=t.right}let C=B(p.ticks.maxTicksLimit,w),D=Math.max(1,Math.ceil(w/C));for(i=0;io+1e-6)))return l}(this,i,_))&&(n=t7(g,s,p),y?r=o=h=d=n:a=l=c=u=n,k.push({tx1:r,ty1:a,tx2:o,ty2:l,x1:h,y1:c,x2:d,y2:u,width:p,color:b,borderDash:v,borderDashOffset:w,tickWidth:M,tickColor:S,tickBorderDash:O,tickBorderDashOffset:P}))}return this._ticksLength=w,this._borderValue=e,k}_computeLabelItems(t){let e,i,s,n,r,a,o,l,h,c,d;let u=this.axis,f=this.options,{position:g,ticks:p}=f,m=this.isHorizontal(),b=this.ticks,{align:x,crossAlign:_,padding:y,mirror:v}=p,w=ss(f.grid),M=w+y,k=v?-y:M,S=-tv(this.labelRotation),O=[],P="middle";if("top"===g)r=this.bottom-k,a=this._getXAxisLabelAlignment();else if("bottom"===g)r=this.top+k,a=this._getXAxisLabelAlignment();else if("left"===g){let t=this._getYAxisLabelAlignment(w);a=t.textAlign,n=t.x}else if("right"===g){let t=this._getYAxisLabelAlignment(w);a=t.textAlign,n=t.x}else if("x"===u){if("center"===g)r=(t.top+t.bottom)/2+M;else if(N(g)){let t=Object.keys(g)[0],e=g[t];r=this.chart.scales[t].getPixelForValue(e)+M}a=this._getXAxisLabelAlignment()}else if("y"===u){if("center"===g)n=(t.left+t.right)/2-M;else if(N(g)){let t=Object.keys(g)[0],e=g[t];n=this.chart.scales[t].getPixelForValue(e)}a=this._getYAxisLabelAlignment(w).textAlign}"y"===u&&("start"===x?P="top":"end"===x&&(P="bottom"));let E=this._getLabelSizes();for(e=0,i=b.length;e0&&(l-=r/2)}t={left:l,top:o,width:r+s.width,height:n+s.height,color:u.backdropColor}}O.push({label:s,font:l,textOffset:d,options:{rotation:S,color:x,strokeColor:y,strokeWidth:w,textAlign:M,textBaseline:P,translation:[n,r],backdrop:t}})}return O}_getXAxisLabelAlignment(){let{position:t,ticks:e}=this.options,i=-tv(this.labelRotation);if(i)return"top"===t?"left":"right";let s="center";return"start"===e.align?s="left":"end"===e.align?s="right":"inner"===e.align&&(s="inner"),s}_getYAxisLabelAlignment(t){let e,i;let{position:s,ticks:{crossAlign:n,mirror:r,padding:a}}=this.options,o=this._getLabelSizes(),l=t+a,h=o.widest.width;return"left"===s?r?(i=this.right+a,"near"===n?e="left":"center"===n?(e="center",i+=h/2):(e="right",i+=h)):(i=this.right-l,"near"===n?e="right":"center"===n?(e="center",i-=h/2):(e="left",i=this.left)):"right"===s?r?(i=this.left+a,"near"===n?e="right":"center"===n?(e="center",i-=h/2):(e="left",i-=h)):(i=this.left+l,"near"===n?e="left":"center"===n?(e="center",i+=h/2):(e="right",i=this.right)):e="right",{textAlign:e,x:i}}_computeLabelArea(){if(this.options.ticks.mirror)return;let t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){let{ctx:t,options:{backgroundColor:e},left:i,top:s,width:n,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,n,r),t.restore())}getLineWidthForValue(t){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let i=this.ticks,s=i.findIndex(e=>e.value===t);if(s>=0){let t=e.setContext(this.getContext(s));return t.lineWidth}return 0}drawGrid(t){let e,i;let s=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t)),a=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(s.display)for(e=0,i=r.length;e{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){let e,i;let s=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];for(e=0,i=s.length;e{let s=i.split("."),n=s.pop(),r=[t].concat(s).join("."),a=e[i].split("."),o=a.pop(),l=a.join(".");t8.route(r,n,l,o)})}(e,t.defaultRoutes),t.descriptors&&t8.describe(e,t.descriptors)}(t,r,e),this.override&&t8.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){let e=this.items,i=t.id,s=this.scope;i in e&&delete e[i],s&&i in t8[s]&&(delete t8[s][i],this.override&&delete t2[i])}}var so=new class{constructor(){this.controllers=new sa(iu,"datasets",!0),this.elements=new sa(i6,"elements"),this.plugins=new sa(Object,"plugins"),this.scales=new sa(sr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(e=>{let s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):q(e,e=>{let s=i||this._getRegistryForType(e);this._exec(t,s,e)})})}_exec(t,e,i){let s=ts(t);U(i["before"+s],[],i),e[t](i),U(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;et.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function sh(t,e){let i=t8.datasets[t]||{},s=(e.datasets||{})[t]||{};return s.indexAxis||e.indexAxis||i.indexAxis||"x"}function sc(t){if("x"===t||"y"===t||"r"===t)return t}function sd(t,...e){if(sc(t))return t;for(let s of e){var i;let e=s.axis||("top"===(i=s.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.length>1&&sc(t[0].toLowerCase());if(e)return e}throw Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function su(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function sf(t){let e=t.options||(t.options={});e.plugins=B(e.plugins,{}),e.scales=function(t,e){let i=t2[t.type]||{scales:{}},s=e.scales||{},n=sh(t.type,e),r=Object.create(null);return Object.keys(s).forEach(e=>{let a=s[e];if(!N(a))return console.error(`Invalid scale configuration for scale: ${e}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);let o=sd(e,a,function(t,e){if(e.data&&e.data.datasets){let i=e.data.datasets.filter(e=>e.xAxisID===t||e.yAxisID===t);if(i.length)return su(t,"x",i[0])||su(t,"y",i[0])}return{}}(e,t),t8.scales[a.type]),l=i.scales||{};r[e]=Q(Object.create(null),[{axis:o},a,l[o],l[o===n?"_index_":"_value_"]])}),t.data.datasets.forEach(i=>{let n=i.type||t.type,a=i.indexAxis||sh(n,e),o=t2[n]||{},l=o.scales||{};Object.keys(l).forEach(t=>{let e;let n=(e=t,"_index_"===t?e=a:"_value_"===t&&(e="x"===a?"y":"x"),e),o=i[n+"AxisID"]||n;r[o]=r[o]||Object.create(null),Q(r[o],[{axis:n},s[o],l[t]])})}),Object.keys(r).forEach(t=>{let e=r[t];Q(e,[t8.scales[e.type],t8.scale])}),r}(t,e)}function sg(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}let sp=new Map,sm=new Set;function sb(t,e){let i=sp.get(t);return i||(i=e(),sp.set(t,i),sm.add(i)),i}let sx=(t,e,i)=>{let s=ti(e,i);void 0!==s&&t.add(s)};class s_{constructor(t){var e;this._config=((e=(e=t)||{}).data=sg(e.data),sf(e),e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=sg(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){let t=this._config;this.clearCache(),sf(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return sb(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return sb(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return sb(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){let e=t.id,i=this.type;return sb(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){let i=this._scopeCache,s=i.get(t);return(!s||e)&&(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){let{options:s,type:n}=this,r=this._cachedScopes(t,i),a=r.get(e);if(a)return a;let o=new Set;e.forEach(e=>{t&&(o.add(t),e.forEach(e=>sx(o,t,e))),e.forEach(t=>sx(o,s,t)),e.forEach(t=>sx(o,t2[n]||{},t)),e.forEach(t=>sx(o,t8,t)),e.forEach(t=>sx(o,t5,t))});let l=Array.from(o);return 0===l.length&&l.push(Object.create(null)),sm.has(e)&&r.set(e,l),l}chartOptionScopes(){let{options:t,type:e}=this;return[t,t2[e]||{},t8.datasets[e]||{},{type:e},t8,t5]}resolveNamedOptions(t,e,i,s=[""]){let n={$shared:!0},{resolver:r,subPrefixes:a}=sy(this._resolverCache,t,s),o=r;if(function(t,e){let{isScriptable:i,isIndexable:s}=ev(t);for(let n of e){let e=i(n),r=s(n),a=(r||e)&&t[n];if(e&&(tr(a)||sv(a))||r&&V(a))return!0}return!1}(r,e)){n.$shared=!1,i=tr(i)?i():i;let e=this.createResolver(t,i,a);o=ey(r,i,e)}for(let t of e)n[t]=o[t];return n}createResolver(t,e,i=[""],s){let{resolver:n}=sy(this._resolverCache,t,i);return N(e)?ey(n,e,void 0,s):n}}function sy(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));let n=i.join(),r=s.get(n);if(!r){let t=e_(e,i);r={resolver:t,subPrefixes:i.filter(t=>!t.toLowerCase().includes("hover"))},s.set(n,r)}return r}let sv=t=>N(t)&&Object.getOwnPropertyNames(t).some(e=>tr(t[e])),sw=["top","bottom","left","right","chartArea"];function sM(t,e){return"top"===t||"bottom"===t||-1===sw.indexOf(t)&&"x"===e}function sk(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function sS(t){let e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),U(i&&i.onComplete,[t],e)}function sO(t){let e=t.chart,i=e.options.animation;U(i&&i.onProgress,[t],e)}function sP(t){return eI()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}let sE={},sC=t=>{let e=sP(t);return Object.values(sE).filter(t=>t.canvas===e).pop()};function sD(t,e,i){return t.options.clip?t[i]:e[i]}class sT{static defaults=t8;static instances=sE;static overrides=t2;static registry=so;static version="4.4.2";static getChart=sC;static register(...t){so.add(...t),sL()}static unregister(...t){so.remove(...t),sL()}constructor(t,e){var i,s;let n;let r=this.config=new s_(e),a=sP(t),o=sC(a);if(o)throw Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");let l=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||(!eI()||"undefined"!=typeof OffscreenCanvas&&a instanceof OffscreenCanvas?iY:i8)),this.platform.updateConfig(r);let h=this.platform.acquireContext(a,l.aspectRatio),c=h&&h.canvas,d=c&&c.height,u=c&&c.width;if(this.id=F(),this.ctx=h,this.canvas=c,this.width=u,this.height=d,this._options=l,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new sl,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(i=t=>this.update(t),s=l.resizeDelay||0,function(...t){return s?(clearTimeout(n),n=setTimeout(i,s,t)):i.apply(this,t),s}),this._dataChanges=[],sE[this.id]=this,!h||!c){console.error("Failed to create chart: can't acquire context from the given item");return}e4.listen(this,"complete",sS),e4.listen(this,"progress",sO),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:s,_aspectRatio:n}=this;return z(t)?e&&n?n:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return so}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():eH(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return t9(this.canvas,this.ctx),this}stop(){return e4.stop(this),this}resize(t,e){e4.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){let i=this.options,s=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,e,n),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),o=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,eH(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),U(i.onResize,[this,r],this),this.attached&&this._doResize(o)&&this.render())}ensureScalesHaveIDs(){let t=this.options,e=t.scales||{};q(e,(t,e)=>{t.id=e})}buildOrUpdateScales(){let t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce((t,e)=>(t[e]=!1,t),{}),n=[];e&&(n=n.concat(Object.keys(e).map(t=>{let i=e[t],s=sd(t,i),n="r"===s,r="x"===s;return{options:i,dposition:n?"chartArea":r?"bottom":"left",dtype:n?"radialLinear":r?"category":"linear"}}))),q(n,e=>{let n=e.options,r=n.id,a=sd(r,n),o=B(n.type,e.dtype);(void 0===n.position||sM(n.position,a)!==sM(e.dposition))&&(n.position=e.dposition),s[r]=!0;let l=null;if(r in i&&i[r].type===o)l=i[r];else{let t=so.getScale(o);i[(l=new t({id:r,type:o,ctx:this.ctx,chart:this})).id]=l}l.init(n,t)}),q(s,(t,e)=>{t||delete i[e]}),q(i,t=>{iB.configure(this,t,t.options),iB.addBox(this,t)})}_updateMetasets(){let t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((t,e)=>t.index-e.index),i>e){for(let t=e;te.length&&delete this._stacks,t.forEach((t,i)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){let t,e;let i=[],s=this.data.datasets;for(this._removeUnreferencedMetasets(),t=0,e=s.length;t{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let e=this.config;e.update();let i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;let n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let t=0,e=this.data.datasets.length;t{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(sk("z","_idx"));let{_active:a,_lastEvent:o}=this;o?this._eventHandler(o,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){q(this.scales,t=>{iB.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);ta(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(let{method:i,start:s,count:n}of e){let e="_removeElements"===i?-n:n;!function(t,e,i){let s=Object.keys(t);for(let n of s){let s=+n;if(s>=e){let r=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=r)}}}(t,s,e)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let e=this.data.datasets.length,i=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),s=i(0);for(let t=1;tt.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;iB.update(this,this.width,this.height,t);let e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],q(this.boxes,t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let e=this.ctx,i=t._clip,s=!i.disabled,n=function(t,e){let{xScale:i,yScale:s}=t;return i&&s?{left:sD(i,e,"left"),right:sD(i,e,"right"),top:sD(s,e,"top"),bottom:sD(s,e,"bottom")}:e}(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(s&&es(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),s&&en(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return ei(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){let n=iA.modes[e];return"function"==typeof n?n(this,t,i,s):[]}getDatasetMeta(t){let e=this.data.datasets[t],i=this._metasets,s=i.filter(t=>t&&t._dataset===e).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=ex(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let e=this.data.datasets[t];if(!e)return!1;let i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){let i=this.getDatasetMeta(t);i.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){let s=i?"show":"hide",n=this.getDatasetMeta(t),r=n.controller._resolveAnimations(void 0,s);tn(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(n,{visible:i}),this.update(e=>e.datasetIndex===t?s:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){let e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),e4.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,i,s),t[i]=s},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};q(this.options.events,t=>i(t,s))}bindResponsiveEvents(){let t;this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,s=(t,s)=>{i.addEventListener(this,t,s),e[t]=s},n=(t,s)=>{e[t]&&(i.removeEventListener(this,t,s),delete e[t])},r=(t,e)=>{this.canvas&&this.resize(t,e)},a=()=>{n("attach",a),this.attached=!0,this.resize(),s("resize",r),s("detach",t)};t=()=>{this.attached=!1,n("resize",r),this._stop(),this._resize(0,0),s("attach",a)},i.isAttached(this.canvas)?a():t()}unbindEvents(){q(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},q(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){let s,n,r;let a=i?"set":"remove";for("dataset"===e&&this.getDatasetMeta(t[0].datasetIndex).controller["_"+a+"DatasetHoverStyle"](),n=0,r=t.length;n{let i=this.getDatasetMeta(t);if(!i)throw Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),s=!X(i,e);s&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter(e=>e.plugin.id===t).length}_updateHoverStyles(t,e,i){let s=this.options.hover,n=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),r=n(e,t),a=i?t:n(t,e);r.length&&this.updateHoverStyle(r,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){let i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;let n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){var s;let{_active:n=[],options:r}=this,a=this._getActiveElements(t,n,i,e),o="mouseup"===t.type||"click"===t.type||"contextmenu"===t.type,l=(s=this._lastEvent,i&&"mouseout"!==t.type?o?s:t:null);i&&(this._lastEvent=null,U(r.onHover,[t,a,this],this),o&&U(r.onClick,[t,a,this],this));let h=!X(a,n);return(h||e)&&(this._active=a,this._updateHoverStyles(a,n,e)),this._lastEvent=l,h}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;let n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,s)}}function sL(){return q(sT.instances,t=>t._plugins.invalidate())}function sA(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function sR(t,e,i,s,n,r){let{x:a,y:o,startAngle:l,pixelMargin:h,innerRadius:c}=e,d=Math.max(e.outerRadius+s+i-h,0),u=c>0?c+s+i+h:0,f=0,g=n-l;if(s){let t=((c>0?c-s:0)+(d>0?d-s:0))/2;f=(g-(0!==t?g*t/(t+s):g))/2}let p=(g-Math.max(.001,g*d-i/to)/d)/2,m=l+p+f,b=n-p-f,{outerStart:x,outerEnd:_,innerStart:y,innerEnd:v}=function(t,e,i,s){let n=eu(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),r=(i-e)/2,a=Math.min(r,s*e/2),o=t=>tE(t,0,Math.min(r,(i-Math.min(r,t))*s/2));return{outerStart:o(n.outerStart),outerEnd:o(n.outerEnd),innerStart:tE(n.innerStart,0,a),innerEnd:tE(n.innerEnd,0,a)}}(e,u,d,b-m),w=d-x,M=d-_,k=m+x/w,S=b-_/M,O=u+y,P=u+v,E=m+y/O,C=b-v/P;if(t.beginPath(),r){let e=(k+S)/2;if(t.arc(a,o,d,k,e),t.arc(a,o,d,e,S),_>0){let e=sA(M,S,a,o);t.arc(e.x,e.y,_,S,b+tu)}let i=sA(P,b,a,o);if(t.lineTo(i.x,i.y),v>0){let e=sA(P,C,a,o);t.arc(e.x,e.y,v,b+tu,C+Math.PI)}let s=(b-v/u+(m+y/u))/2;if(t.arc(a,o,u,b-v/u,s,!0),t.arc(a,o,u,s,m+y/u,!0),y>0){let e=sA(O,E,a,o);t.arc(e.x,e.y,y,E+Math.PI,m-tu)}let n=sA(w,m,a,o);if(t.lineTo(n.x,n.y),x>0){let e=sA(w,k,a,o);t.arc(e.x,e.y,x,m-tu,k)}}else t.moveTo(a,o),t.lineTo(Math.cos(k)*d+a,Math.sin(k)*d+o),t.lineTo(Math.cos(S)*d+a,Math.sin(S)*d+o);t.closePath()}class sI extends i6{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){let s=this.getProps(["x","y"],i),{angle:n,distance:r}=tM(s,{x:t,y:e}),{startAngle:a,endAngle:o,innerRadius:l,outerRadius:h,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=(this.options.spacing+this.options.borderWidth)/2,u=B(c,o-a),f=u>=tl||tP(n,a,o),g=tC(r,l+d,h+d);return f&&g}getCenterPoint(t){let{x:e,y:i,startAngle:s,endAngle:n,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:o,spacing:l}=this.options,h=(s+n)/2,c=(r+a+l+o)/2;return{x:e+Math.cos(h)*c,y:i+Math.sin(h)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){let{options:e,circumference:i}=this,s=(e.offset||0)/4,n=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>tl?Math.floor(i/tl):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*s,Math.sin(a)*s);let o=s*(1-Math.sin(Math.min(to,i||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,i,s,n){let{fullCircles:r,startAngle:a,circumference:o}=e,l=e.endAngle;if(r){sR(t,e,i,s,l,n);for(let e=0;en?(h=n/l,t.arc(r,a,l,i+h,s-h,!0)):t.arc(r,a,n,i+tu,s-tu),t.closePath(),t.clip()}(t,e,g),r||(sR(t,e,i,s,g,n),t.stroke())}(t,this,o,n,r),t.restore()}}function sj(t,e,i=e){t.lineCap=B(i.borderCapStyle,e.borderCapStyle),t.setLineDash(B(i.borderDash,e.borderDash)),t.lineDashOffset=B(i.borderDashOffset,e.borderDashOffset),t.lineJoin=B(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=B(i.borderWidth,e.borderWidth),t.strokeStyle=B(i.borderColor,e.borderColor)}function sF(t,e,i){t.lineTo(i.x,i.y)}function sz(t,e,i={}){let s=t.length,{start:n=0,end:r=s-1}=i,{start:a,end:o}=e,l=Math.max(n,a),h=Math.min(r,o);return{count:s,start:l,loop:e.loop,ilen:ho&&r>o)?s+h-l:h-l}}function sV(t,e,i,s){let n,r,a;let{points:o,options:l}=e,{count:h,start:c,loop:d,ilen:u}=sz(o,i,s),f=l.stepped?er:l.tension||"monotone"===l.cubicInterpolationMode?ea:sF,{move:g=!0,reverse:p}=s||{};for(n=0;n<=u;++n)(r=o[(c+(p?u-n:n))%h]).skip||(g?(t.moveTo(r.x,r.y),g=!1):f(t,a,r,p,l.stepped),a=r);return d&&f(t,a,r=o[(c+(p?u:0))%h],p,l.stepped),!!d}function sN(t,e,i,s){let n,r,a,o,l,h;let c=e.points,{count:d,start:u,ilen:f}=sz(c,i,s),{move:g=!0,reverse:p}=s||{},m=0,b=0,x=t=>(u+(p?f-t:t))%d,_=()=>{o!==l&&(t.lineTo(m,l),t.lineTo(m,o),t.lineTo(m,h))};for(g&&(r=c[x(0)],t.moveTo(r.x,r.y)),n=0;n<=f;++n){if((r=c[x(n)]).skip)continue;let e=r.x,i=r.y,s=0|e;s===a?(il&&(l=i),m=(b*m+e)/++b):(_(),t.lineTo(e,i),a=s,b=0,o=l=i),h=i}_()}function sW(t){let e=t.options,i=e.borderDash&&e.borderDash.length,s=!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!i;return s?sN:sV}let s$="function"==typeof Path2D;class sB extends i6{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){let i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){let s=i.spanGaps?this._loop:this._fullLoop;!function(t,e,i,s,n){let r,a,o,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){let i,s,n;let r=eA(e),a=t.length,o=Array(a).fill(0),l=Array(a),h=eL(t,0);for(i=0;in&&t[r%e].skip;)r--;return{start:n,end:r%=e}}(i,n,r,s);if(!0===s)return e5(t,[{start:a,end:o,loop:r}],i,e);let l=!!t._fullLoop&&0===a&&o===n-1;return e5(t,function(t,e,i,s){let n;let r=t.length,a=[],o=e,l=t[e];for(n=e+1;n<=i;++n){let i=t[n%r];i.skip||i.stop?l.skip||(s=!1,a.push({start:e%r,end:(n-1)%r,loop:s}),e=o=i.stop?n:null):(o=n,l.skip&&(e=n)),l=i}return null!==o&&a.push({start:e%r,end:o%r,loop:s}),a}(i,a,ot;e--){let t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function sQ(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"].map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function s0(t,e,i,s){let n=e.interpolate(i,s);n&&t.lineTo(n.x,n.y)}let s1=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}},s2=(t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class s5 extends i6{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let t=this.options.labels||{},e=U(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,i)=>t.sort(e,i,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let t,e;let{options:i,ctx:s}=this;if(!i.display){this.width=this.height=0;return}let n=i.labels,r=em(n.font),a=r.size,o=this._computeTitleHeight(),{boxWidth:l,itemHeight:h}=s1(n,a);s.font=r.string,this.isHorizontal()?(t=this.maxWidth,e=this._fitRows(o,a,l,h)+10):(e=this.maxHeight,t=this._fitCols(o,r,l,h)+10),this.width=Math.min(t,i.maxWidth||this.maxWidth),this.height=Math.min(e,i.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){let{ctx:n,maxWidth:r,options:{labels:{padding:a}}}=this,o=this.legendHitBoxes=[],l=this.lineWidths=[0],h=s+a,c=t;n.textAlign="left",n.textBaseline="middle";let d=-1,u=-h;return this.legendItems.forEach((t,f)=>{let g=i+e/2+n.measureText(t.text).width;(0===f||l[l.length-1]+g+2*a>r)&&(c+=h,l[l.length-(f>0?0:1)]=0,u+=h,d++),o[f]={left:0,top:u,row:d,width:g,height:s},l[l.length-1]+=g+a}),c}_fitCols(t,e,i,s){let{ctx:n,maxHeight:r,options:{labels:{padding:a}}}=this,o=this.legendHitBoxes=[],l=this.columnSizes=[],h=r-t,c=a,d=0,u=0,f=0,g=0;return this.legendItems.forEach((t,r)=>{let{itemWidth:p,itemHeight:m}=function(t,e,i,s,n){var r;let a,o;let l=((a=s.text)&&"string"!=typeof a&&(a=a.reduce((t,e)=>t.length>e.length?t:e)),t+e.size/2+i.measureText(a).width),h=(r=e.lineHeight,o=n,"string"!=typeof s.text&&(o=s3(s,r)),o);return{itemWidth:l,itemHeight:h}}(i,e,n,t,s);r>0&&u+m+2*a>h&&(c+=d+a,l.push({width:d,height:u}),f+=d+a,g++,d=u=0),o[r]={left:f,top:u,col:g,width:p,height:m},d=Math.max(d,p),u+=m+a}),c+=d,l.push({width:d,height:u}),c}adjustHitBoxes(){if(!this.options.display)return;let t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:n}}=this,r=eG(n,this.left,this.width);if(this.isHorizontal()){let n=0,a=tV(i,this.left+s,this.right-this.lineWidths[n]);for(let o of e)n!==o.row&&(n=o.row,a=tV(i,this.left+s,this.right-this.lineWidths[n])),o.top+=this.top+t+s,o.left=r.leftForLtr(r.x(a),o.width),a+=o.width+s}else{let n=0,a=tV(i,this.top+t+s,this.bottom-this.columnSizes[n].height);for(let o of e)o.col!==n&&(n=o.col,a=tV(i,this.top+t+s,this.bottom-this.columnSizes[n].height)),o.top=a,o.left+=this.left+s,o.left=r.leftForLtr(r.x(o.left),o.width),a+=o.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){let t=this.ctx;es(t,this),this._draw(),en(t)}}_draw(){let t;let{options:e,columnSizes:i,lineWidths:s,ctx:n}=this,{align:r,labels:a}=e,o=t8.color,l=eG(e.rtl,this.left,this.width),h=em(a.font),{padding:c}=a,d=h.size,u=d/2;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=h.string;let{boxWidth:f,boxHeight:g,itemHeight:p}=s1(a,d),m=function(t,e,i){if(isNaN(f)||f<=0||isNaN(g)||g<0)return;n.save();let s=B(i.lineWidth,1);if(n.fillStyle=B(i.fillStyle,o),n.lineCap=B(i.lineCap,"butt"),n.lineDashOffset=B(i.lineDashOffset,0),n.lineJoin=B(i.lineJoin,"miter"),n.lineWidth=s,n.strokeStyle=B(i.strokeStyle,o),n.setLineDash(B(i.lineDash,[])),a.usePointStyle){let r={radius:g*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:s},o=l.xPlus(t,f/2);ee(n,r,o,e+u,a.pointStyleWidth&&f)}else{let r=e+Math.max((d-g)/2,0),a=l.leftForLtr(t,f),o=eg(i.borderRadius);n.beginPath(),Object.values(o).some(t=>0!==t)?el(n,{x:a,y:r,w:f,h:g,radius:o}):n.rect(a,r,f,g),n.fill(),0!==s&&n.stroke()}n.restore()},b=function(t,e,i){eo(n,i.text,t,e+p/2,h,{strikethrough:i.hidden,textAlign:l.textAlign(i.textAlign)})},x=this.isHorizontal(),_=this._computeTitleHeight();t=x?{x:tV(r,this.left+c,this.right-s[0]),y:this.top+c+_,line:0}:{x:this.left+c,y:tV(r,this.top+_+c,this.bottom-i[0].height),line:0},eK(this.ctx,e.textDirection);let y=p+c;this.legendItems.forEach((o,d)=>{n.strokeStyle=o.fontColor,n.fillStyle=o.fontColor;let g=n.measureText(o.text).width,p=l.textAlign(o.textAlign||(o.textAlign=a.textAlign)),v=f+u+g,w=t.x,M=t.y;l.setWidth(this.width),x?d>0&&w+v+c>this.right&&(M=t.y+=y,t.line++,w=t.x=tV(r,this.left+c,this.right-s[t.line])):d>0&&M+y>this.bottom&&(w=t.x=w+i[t.line].width+c,t.line++,M=t.y=tV(r,this.top+_+c,this.bottom-i[t.line].height));let k=l.x(w);if(m(k,M,o),w=tN(p,w+f+u,x?w+v:this.right,e.rtl),b(l.x(w),M,o),x)t.x+=v+c;else if("string"!=typeof o.text){let e=h.lineHeight;t.y+=s3(o,e)+c}else t.y+=y}),eJ(this.ctx,e.textDirection)}drawTitle(){let t;let e=this.options,i=e.title,s=em(i.font),n=ep(i.padding);if(!i.display)return;let r=eG(e.rtl,this.left,this.width),a=this.ctx,o=i.position,l=s.size/2,h=n.top+l,c=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),t=this.top+h,c=tV(e.align,c,this.right-d);else{let i=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);t=h+tV(e.align,this.top,this.bottom-i-e.labels.padding-this._computeTitleHeight())}let u=tV(o,c,c+d);a.textAlign=r.textAlign(tz(o)),a.textBaseline="middle",a.strokeStyle=i.color,a.fillStyle=i.color,a.font=s.string,eo(a,i.text,u,t,s)}_computeTitleHeight(){let t=this.options.title,e=em(t.font),i=ep(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,n;if(tC(t,this.left,this.right)&&tC(e,this.top,this.bottom)){for(i=0,n=this.legendHitBoxes;it+e)/s.size;return{x:a,y:n/r}},nearest(t,e){let i,s,n;if(!t.length)return!1;let r=e.x,a=e.y,o=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i-1?t.split("\n"):t}function s9(t,e){let i=t.chart.ctx,{body:s,footer:n,title:r}=t,{boxWidth:a,boxHeight:o}=e,l=em(e.bodyFont),h=em(e.titleFont),c=em(e.footerFont),d=r.length,u=n.length,f=s.length,g=ep(e.padding),p=g.height,m=0,b=s.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(b+=t.beforeBody.length+t.afterBody.length,d&&(p+=d*h.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),b){let t=e.displayColors?Math.max(o,l.lineHeight):l.lineHeight;p+=f*t+(b-f)*l.lineHeight+(b-1)*e.bodySpacing}u&&(p+=e.footerMarginTop+u*c.lineHeight+(u-1)*e.footerSpacing);let x=0,_=function(t){m=Math.max(m,i.measureText(t).width+x)};return i.save(),i.font=h.string,q(t.title,_),i.font=l.string,q(t.beforeBody.concat(t.afterBody),_),x=e.displayColors?a+2+e.boxPadding:0,q(s,t=>{q(t.before,_),q(t.lines,_),q(t.after,_)}),x=0,i.font=c.string,q(t.footer,_),i.restore(),{width:m+=g.width,height:p}}function nt(t,e,i){let s=i.yAlign||e.yAlign||function(t,e){let{y:i,height:s}=e;return it.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||function(t,e,i,s){let{x:n,width:r}=i,{width:a,chartArea:{left:o,right:l}}=t,h="center";return"center"===s?h=n<=(o+l)/2?"left":"right":n<=r/2?h="left":n>=a-r/2&&(h="right"),function(t,e,i,s){let{x:n,width:r}=s,a=i.caretSize+i.caretPadding;if("left"===t&&n+r+a>e.width||"right"===t&&n-r-a<0)return!0}(h,t,e,i)&&(h="center"),h}(t,e,i,s),yAlign:s}}function ne(t,e,i,s){let{caretSize:n,caretPadding:r,cornerRadius:a}=t,{xAlign:o,yAlign:l}=i,h=n+r,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=eg(a),g=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,o),p=function(t,e,i){let{y:s,height:n}=t;return"top"===e?s+=i:"bottom"===e?s-=n+i:s-=n/2,s}(e,l,h);return"center"===l?"left"===o?g+=h:"right"===o&&(g-=h):"left"===o?g-=Math.max(c,u)+n:"right"===o&&(g+=Math.max(d,f)+n),{x:tE(g,0,s.width-e.width),y:tE(p,0,s.height-e.height)}}function ni(t,e,i){let s=ep(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function ns(t,e){let i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}let nn={beforeTitle:j,title(t){if(t.length>0){let e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex{let e={before:[],lines:[],after:[]},n=ns(i,t);s6(e.before,s7(nr(n,"beforeLabel",this,t))),s6(e.lines,nr(n,"label",this,t)),s6(e.after,s7(nr(n,"afterLabel",this,t))),s.push(e)}),s}getAfterBody(t,e){return s6([],s7(nr(e.callbacks,"afterBody",this,t)))}getFooter(t,e){let{callbacks:i}=e,s=nr(i,"beforeFooter",this,t),n=nr(i,"footer",this,t),r=nr(i,"afterFooter",this,t),a=[];return a=s6(a,s7(s)),a=s6(a,s7(n)),a=s6(a,s7(r))}_createItems(t){let e,i;let s=this._active,n=this.chart.data,r=[],a=[],o=[],l=[];for(e=0,i=s.length;et.filter(e,i,s,n))),t.itemSort&&(l=l.sort((e,i)=>t.itemSort(e,i,n))),q(l,e=>{let i=ns(t.callbacks,e);r.push(nr(i,"labelColor",this,e)),a.push(nr(i,"labelPointStyle",this,e)),o.push(nr(i,"labelTextColor",this,e))}),this.labelColors=r,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){let i;let s=this.options.setContext(this.getContext()),n=this._active,r=[];if(n.length){let t=s8[s.position].call(this,n,this._eventPosition);r=this._createItems(s),this.title=this.getTitle(r,s),this.beforeBody=this.getBeforeBody(r,s),this.body=this.getBody(r,s),this.afterBody=this.getAfterBody(r,s),this.footer=this.getFooter(r,s);let e=this._size=s9(this,s),a=Object.assign({},t,e),o=nt(this.chart,s,a),l=ne(s,a,o,this.chart);this.xAlign=o.xAlign,this.yAlign=o.yAlign,i={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(i={opacity:0});this._tooltipItems=r,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){let n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){let s,n,r,a,o,l;let{xAlign:h,yAlign:c}=this,{caretSize:d,cornerRadius:u}=i,{topLeft:f,topRight:g,bottomLeft:p,bottomRight:m}=eg(u),{x:b,y:x}=t,{width:_,height:y}=e;return"center"===c?(o=x+y/2,"left"===h?(n=(s=b)-d,a=o+d,l=o-d):(n=(s=b+_)+d,a=o-d,l=o+d),r=s):(n="left"===h?b+Math.max(f,p)+d:"right"===h?b+_-Math.max(g,m)-d:this.caretX,"top"===c?(o=(a=x)-d,s=n-d,r=n+d):(o=(a=x+y)+d,s=n+d,r=n-d),l=a),{x1:s,x2:n,x3:r,y1:a,y2:o,y3:l}}drawTitle(t,e,i){let s,n,r;let a=this.title,o=a.length;if(o){let l=eG(i.rtl,this.x,this.width);for(r=0,t.x=ni(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",s=em(i.titleFont),n=i.titleSpacing,e.fillStyle=i.titleColor,e.font=s.string;r0!==t)?(t.beginPath(),t.fillStyle=n.multiKeyBackground,el(t,{x:e,y:f,w:l,h:o,radius:a}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),el(t,{x:i,y:f+1,w:l-2,h:o-2,radius:a}),t.fill()):(t.fillStyle=n.multiKeyBackground,t.fillRect(e,f,l,o),t.strokeRect(e,f,l,o),t.fillStyle=r.backgroundColor,t.fillRect(i,f+1,l-2,o-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){let s,n,r,a,o,l,h;let{body:c}=this,{bodySpacing:d,bodyAlign:u,displayColors:f,boxHeight:g,boxWidth:p,boxPadding:m}=i,b=em(i.bodyFont),x=b.lineHeight,_=0,y=eG(i.rtl,this.x,this.width),v=function(i){e.fillText(i,y.x(t.x+_),t.y+x/2),t.y+=x+d},w=y.textAlign(u);for(e.textAlign=u,e.textBaseline="middle",e.font=b.string,t.x=ni(this,w,i),e.fillStyle=i.bodyColor,q(this.beforeBody,v),_=f&&"right"!==w?"center"===u?p/2+m:p+2+m:0,a=0,l=c.length;a0&&e.stroke()}_updateAnimationTarget(t){let e=this.chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){let i=s8[t.position].call(this,this._active,this._eventPosition);if(!i)return;let r=this._size=s9(this,t),a=Object.assign({},i,this._size),o=nt(e,t,a),l=ne(t,a,o,e);(s._to!==l.x||n._to!==l.y)&&(this.xAlign=o.xAlign,this.yAlign=o.yAlign,this.width=r.width,this.height=r.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){let e=this.options.setContext(this.getContext()),i=this.opacity;if(!i)return;this._updateAnimationTarget(e);let s={width:this.width,height:this.height},n={x:this.x,y:this.y};i=.001>Math.abs(i)?0:i;let r=ep(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(n,t,s,e),eK(t,e.textDirection),n.y+=r.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),eJ(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){let i=this._active,s=t.map(({datasetIndex:t,index:e})=>{let i=this.chart.getDatasetMeta(t);if(!i)throw Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),n=!X(i,s),r=this._positionChanged(s,e);(n||r)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let s=this.options,n=this._active||[],r=this._getActiveElements(t,n,e,i),a=this._positionChanged(r,t),o=e||!X(r,n)||a;return o&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),o}_getActiveElements(t,e,i,s){let n=this.options;if("mouseout"===t.type)return[];if(!s)return e.filter(t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index));let r=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&r.reverse(),r}_positionChanged(t,e){let{caretX:i,caretY:s,options:n}=this,r=s8[n.position].call(this,t,e);return!1!==r&&(i!==r.x||s!==r.y)}}let no=(t,e,i,s)=>("string"==typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i),nl=(t,e)=>null===t?null:tE(Math.round(t),0,e);function nh(t){let e=this.getLabels();return t>=0&&ts=e?s:t,a=t=>n=i?n:t;if(t){let t=tm(s),e=tm(n);t<0&&e<0?a(0):t>0&&e>0&&r(0)}if(s===n){let e=0===n?1:Math.abs(.05*n);a(n+e),t||r(s-e)}this.min=s,this.max=n}getTickLimit(){let t;let e=this.options.ticks,{maxTicksLimit:i,stepSize:s}=e;return s?(t=Math.ceil(this.max/s)-Math.floor(this.min/s)+1)>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3):(t=this.computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let t=this.options,e=t.ticks,i=this.getTickLimit();i=Math.max(2,i);let s={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},n=this._range||this,r=function(t,e){let i,s,n,r;let a=[],{bounds:o,step:l,min:h,max:c,precision:d,count:u,maxTicks:f,maxDigits:g,includeBounds:p}=t,m=l||1,b=f-1,{min:x,max:_}=e,y=!z(h),v=!z(c),w=!z(u),M=(_-x)/(g+1),k=tx((_-x)/b/m)*m;if(k<1e-14&&!y&&!v)return[{value:x},{value:_}];(r=Math.ceil(_/k)-Math.floor(x/k))>b&&(k=tx(r*k/b/m)*m),z(d)||(k=Math.ceil(k*(i=Math.pow(10,d)))/i),"ticks"===o?(s=Math.floor(x/k)*k,n=Math.ceil(_/k)*k):(s=x,n=_),y&&v&&l&&function(t,e){let i=Math.round(t);return i-e<=t&&i+e>=t}((c-h)/l,k/1e3)?(r=Math.round(Math.min((c-h)/k,f)),k=(c-h)/r,s=h,n=c):w?(s=y?h:s,k=((n=v?c:n)-s)/(r=u-1)):r=tb(r=(n-s)/k,Math.round(r),k/1e3)?Math.round(r):Math.ceil(r);let S=Math.max(tw(k),tw(s));i=Math.pow(10,z(d)?S:d),s=Math.round(s*i)/i,n=Math.round(n*i)/i;let O=0;for(y&&(p&&s!==h?(a.push({value:h}),sc)break;a.push({value:t})}return v&&p&&n!==c?a.length&&tb(a[a.length-1].value,c,nc(c,M,t))?a[a.length-1].value=c:a.push({value:c}):v&&n!==c||a.push({value:n}),a}(s,n);return"ticks"===t.bounds&&ty(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let t=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){let s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return tQ(t,this.chart.options.locale,this.options.ticks.format)}}class nu extends nd{static id="linear";static defaults={ticks:{callback:t1.formatters.numeric}};determineDataLimits(){let{min:t,max:e}=this.getMinMax(!0);this.min=W(t)?t:0,this.max=W(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let t=this.isHorizontal(),e=t?this.width:this.height,i=tv(this.options.ticks.minRotation),s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/((t?Math.sin(i):Math.cos(i))||.001)))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}let nf=t=>Math.floor(tp(t)),ng=(t,e)=>Math.pow(10,nf(t)+e);function np(t){let e=t/Math.pow(10,nf(t));return 1===e}function nm(t,e,i){let s=Math.pow(10,i);return Math.ceil(e/s)-Math.floor(t/s)}class nb extends sr{static id="logarithmic";static defaults={ticks:{callback:t1.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){let i=nd.prototype.parse.apply(this,[t,e]);if(0===i){this._zero=!0;return}return W(i)&&i>0?i:null}determineDataLimits(){let{min:t,max:e}=this.getMinMax(!0);this.min=W(t)?Math.max(0,t):null,this.max=W(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!W(this._userMin)&&(this.min=t===ng(this.min,0)?ng(this.min,-1):ng(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:t,maxDefined:e}=this.getUserBounds(),i=this.min,s=this.max,n=e=>i=t?i:e,r=t=>s=e?s:t;i===s&&(i<=0?(n(1),r(10)):(n(ng(i,-1)),r(ng(s,1)))),i<=0&&n(ng(s,-1)),s<=0&&r(ng(i,1)),this.min=i,this.max=s}buildTicks(){let t=this.options,e={min:this._userMin,max:this._userMax},i=function(t,{min:e,max:i}){e=$(t.min,e);let s=[],n=nf(e),r=function(t,e){let i=nf(e-t);for(;nm(t,e,i)>10;)i++;for(;10>nm(t,e,i);)i--;return Math.min(i,nf(t))}(e,i),a=r<0?Math.pow(10,Math.abs(r)):1,o=Math.pow(10,r),l=n>r?Math.pow(10,n):0,h=Math.round((e-l)*a)/a,c=Math.floor((e-l)/o/10)*o*10,d=Math.floor((h-c)/Math.pow(10,r)),u=$(t.min,Math.round((l+c+d*Math.pow(10,r))*a)/a);for(;u=10?d=d<15?15:20:d++,d>=20&&(d=2,a=++r>=0?1:a),u=Math.round((l+c+d*Math.pow(10,r))*a)/a;let f=$(t.max,u);return s.push({value:f,major:np(f),significand:d}),s}(e,this);return"ticks"===t.bounds&&ty(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return void 0===t?"0":tQ(t,this.chart.options.locale,this.options.ticks.format)}configure(){let t=this.min;super.configure(),this._startValue=tp(t),this._valueRange=tp(this.max)-tp(t)}getPixelForValue(t){return((void 0===t||0===t)&&(t=this.min),null===t||isNaN(t))?NaN:this.getPixelForDecimal(t===this.min?0:(tp(t)-this._startValue)/this._valueRange)}getValueForPixel(t){let e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function nx(t){let e=t.ticks;if(e.display&&t.display){let t=ep(e.backdropPadding);return B(e.font&&e.font.size,t8.font.size)+t.height}return 0}function n_(t,e,i,s,n){return t===s||t===n?{start:e-i/2,end:e+i/2}:tn?{start:e-i,end:e}:{start:e,end:e+i}}function ny(t,e,i,s){let{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,tl);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let r=1;rt,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let t=this._padding=ep(nx(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){let{min:t,max:e}=this.getMinMax(!1);this.min=W(t)&&!isNaN(t)?t:0,this.max=W(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/nx(this.options))}generateTickLabels(t){nd.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{let i=U(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){let t=this.options;t.display&&t.pointLabels.display?function(t){let e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),s=[],n=[],r=t._pointLabels.length,a=t.options.pointLabels,o=a.centerPointLabels?to/r:0;for(let c=0;ci.length){for(n=0;ne.r&&(o=(s.end-e.r)/r,t.r=Math.max(t.r,e.r+o)),n.starte.b&&(l=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}(i,e,g,m,b)}t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){let s;let n=[],r=t._pointLabels.length,a=t.options,{centerPointLabels:o,display:l}=a.pointLabels,h={extra:nx(a)/2,additionalAngle:o?to/r:0};for(let a=0;a270||f<90)&&(s-=n),s),p=0===f||180===f?"center":f<180?"left":"right",m=(r=u.x,a=d.w,"right"===p?r-=a:"center"===p&&(r-=a/2),r);return{visible:!0,x:u.x,y:g,textAlign:p,left:m,top:g,right:m+d.w,bottom:g+d.h}}(t,a,h);n.push(r),"auto"===l&&(r.visible=function(t,e){if(!e)return!0;let{left:i,top:s,right:n,bottom:r}=t,a=ei({x:i,y:s},e)||ei({x:i,y:r},e)||ei({x:n,y:s},e)||ei({x:n,y:r},e);return!a}(r,s),r.visible&&(s=r))}return n}(t,s,n)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){let e=tl/(this._pointLabels.length||1),i=this.options.startAngle||0;return tO(t*e+tv(i))}getDistanceFromCenterForValue(t){if(z(t))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(z(t))return NaN;let e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){let e=this._pointLabels||[];if(t>=0&&t=0;n--){let e=t._pointLabelItems[n];if(!e.visible)continue;let r=s.setContext(t.getPointLabelContext(n));!function(t,e,i){let{left:s,top:n,right:r,bottom:a}=i,{backdropColor:o}=e;if(!z(o)){let i=eg(e.borderRadius),l=ep(e.backdropPadding);t.fillStyle=o;let h=s-l.left,c=n-l.top,d=r-s+l.width,u=a-n+l.height;Object.values(i).some(t=>0!==t)?(t.beginPath(),el(t,{x:h,y:c,w:d,h:u,radius:i}),t.fill()):t.fillRect(h,c,d,u)}}(i,r,e);let a=em(r.font),{x:o,y:l,textAlign:h}=e;eo(i,t._pointLabels[n],o,l+a.lineHeight/2,a,{color:r.color,textAlign:h,textBaseline:"middle"})}}(this,l),a.display&&this.ticks.forEach((t,i)=>{if(0!==i||0===i&&this.min<0){e=this.getDistanceFromCenterForValue(t.value);let s=this.getContext(i),n=a.setContext(s),r=o.setContext(s);!function(t,e,i,s,n){let r=t.ctx,a=e.circular,{color:o,lineWidth:l}=e;(a||s)&&o&&l&&!(i<0)&&(r.save(),r.strokeStyle=o,r.lineWidth=l,r.setLineDash(n.dash),r.lineDashOffset=n.dashOffset,r.beginPath(),ny(t,i,a,s),r.closePath(),r.stroke(),r.restore())}(this,n,e,l,r)}}),r.display){for(s.save(),t=l-1;t>=0;t--){let a=r.setContext(this.getPointLabelContext(t)),{color:o,lineWidth:l}=a;l&&o&&(s.lineWidth=l,s.strokeStyle=o,s.setLineDash(a.borderDash),s.lineDashOffset=a.borderDashOffset,e=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),i=this.getPointPosition(t,e),s.beginPath(),s.moveTo(this.xCenter,this.yCenter),s.lineTo(i.x,i.y),s.stroke())}s.restore()}}drawBorder(){}drawLabels(){let t,e;let i=this.ctx,s=this.options,n=s.ticks;if(!n.display)return;let r=this.getIndexAngle(0);i.save(),i.translate(this.xCenter,this.yCenter),i.rotate(r),i.textAlign="center",i.textBaseline="middle",this.ticks.forEach((r,a)=>{if(0===a&&this.min>=0&&!s.reverse)return;let o=n.setContext(this.getContext(a)),l=em(o.font);if(t=this.getDistanceFromCenterForValue(this.ticks[a].value),o.showLabelBackdrop){i.font=l.string,e=i.measureText(r.label).width,i.fillStyle=o.backdropColor;let s=ep(o.backdropPadding);i.fillRect(-e/2-s.left,-t-l.size/2-s.top,e+s.width,l.size+s.height)}eo(i,r.label,0,-t,l,{color:o.color,strokeColor:o.textStrokeColor,strokeWidth:o.textStrokeWidth})}),i.restore()}drawTitle(){}}let nw={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},nM=Object.keys(nw);function nk(t,e){return t-e}function nS(t,e){if(z(e))return null;let i=t._adapter,{parser:s,round:n,isoWeekday:r}=t._parseOpts,a=e;return("function"==typeof s&&(a=s(a)),W(a)||(a="string"==typeof s?i.parse(a,s):i.parse(a)),null===a)?null:(n&&(a="week"===n&&(t_(r)||!0===r)?i.startOf(a,"isoWeek",r):i.startOf(a,n)),+a)}function nO(t,e,i,s){let n=nM.length;for(let r=nM.indexOf(t);r=e?i[s]:i[n];t[r]=!0}}else t[e]=!0}function nE(t,e,i){let s,n;let r=[],a={},o=e.length;for(s=0;s=0&&(e[r].major=!0);return e}(t,r,a,i):r}class nC extends sr{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){let i=t.time||(t.time={}),s=this._adapter=new iE._date(t.adapters.date);s.init(e),Q(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:nS(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,e=this._adapter,i=t.time.unit||"day",{min:s,max:n,minDefined:r,maxDefined:a}=this.getUserBounds();function o(t){r||isNaN(t.min)||(s=Math.min(s,t.min)),a||isNaN(t.max)||(n=Math.max(n,t.max))}r&&a||(o(this._getLabelBounds()),("ticks"!==t.bounds||"labels"!==t.ticks.source)&&o(this.getMinMax(!1))),s=W(s)&&!isNaN(s)?s:+e.startOf(Date.now(),i),n=W(n)&&!isNaN(n)?n:+e.endOf(Date.now(),i)+1,this.min=Math.min(s,n-1),this.max=Math.max(s+1,n)}_getLabelBounds(){let t=this.getLabelTimestamps(),e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){let t=this.options,e=t.time,i=t.ticks,s="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);let n=this.min,r=this.max,a=function(t,e,i){let s=0,n=t.length;for(;ss&&t[n-1]>i;)n--;return s>0||n=nM.indexOf(i);r--){let i=nM[r];if(nw[i].common&&t._adapter.diff(n,s,i)>=e-1)return i}return nM[i?nM.indexOf(i):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=nM.indexOf(t)+1,i=nM.length;e+t.value))}initOffsets(t=[]){let e,i,s=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),n=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);let r=t.length<3?.5:.25;s=tE(s,0,r),n=tE(n,0,r),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){let t,e;let i=this._adapter,s=this.min,n=this.max,r=this.options,a=r.time,o=a.unit||nO(a.minUnit,s,n,this._getLabelCapacity(s)),l=B(r.ticks.stepSize,1),h="week"===o&&a.isoWeekday,c=t_(h)||!0===h,d={},u=s;if(c&&(u=+i.startOf(u,"isoWeek",h)),u=+i.startOf(u,c?"day":o),i.diff(n,s,o)>1e5*l)throw Error(s+" and "+n+" are too far apart with stepSize of "+l+" "+o);let f="data"===r.ticks.source&&this.getDataTimestamps();for(t=u,e=0;t+t)}getLabelForValue(t){let e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){let i=this.options,s=i.time.displayFormats,n=this._unit,r=e||s[n];return this._adapter.format(t,r)}_tickFormatFunction(t,e,i,s){let n=this.options,r=n.ticks.callback;if(r)return U(r,[t,e,i],this);let a=n.time.displayFormats,o=this._unit,l=this._majorUnit,h=o&&a[o],c=l&&a[l],d=i[e],u=l&&c&&d&&d.major;return this._adapter.format(t,s||(u?c:h))}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;let s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t=t[o].pos&&e<=t[l].pos&&({lo:o,hi:l}=tT(t,"pos",e)),{pos:s,time:r}=t[o],{pos:n,time:a}=t[l]):(e>=t[o].time&&e<=t[l].time&&({lo:o,hi:l}=tT(t,"time",e)),{time:s,pos:r}=t[o],{time:n,pos:a}=t[l]);let h=n-s;return h?r+(a-r)*(e-s)/h:r}class nT extends nC{static id="timeseries";static defaults=nC.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=nD(e,this.min),this._tableRange=nD(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){let e,i,s;let{min:n,max:r}=this,a=[],o=[];for(e=0,i=t.length;e=n&&s<=r&&a.push(s);if(a.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(e=0,i=a.length;et-e)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t}getDecimalForValue(t){return(nD(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){let e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return nD(this._table,i*this._tableRange+this._minPos,!0)}}var nL=i(7294);let nA="label";function nR(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function nI(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nA,s=[];t.datasets=e.map(e=>{let n=t.datasets.find(t=>t[i]===e[i]);return!n||!e.data||s.includes(n)?{...e}:(s.push(n),Object.assign(n,e),n)})}let nj=(0,nL.forwardRef)(function(t,e){let{height:i=150,width:s=300,redraw:n=!1,datasetIdKey:r,type:a,data:o,options:l,plugins:h=[],fallbackContent:c,updateMode:d,...u}=t,f=(0,nL.useRef)(null),g=(0,nL.useRef)(),p=()=>{f.current&&(g.current=new sT(f.current,{type:a,data:function(t){var e,i;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nA,n={labels:[],datasets:[]};return e=n,i=t.labels,e.labels=i,nI(n,t.datasets,s),n}(o,r),options:l&&{...l},plugins:h}),nR(e,g.current))},m=()=>{nR(e,null),g.current&&(g.current.destroy(),g.current=null)};return(0,nL.useEffect)(()=>{!n&&g.current&&l&&function(t,e){let i=t.options;i&&e&&Object.assign(i,e)}(g.current,l)},[n,l]),(0,nL.useEffect)(()=>{if(!n&&g.current){var t,e;t=g.current.config.data,e=o.labels,t.labels=e}},[n,o.labels]),(0,nL.useEffect)(()=>{!n&&g.current&&o.datasets&&nI(g.current.config.data,o.datasets,r)},[n,o.datasets]),(0,nL.useEffect)(()=>{g.current&&(n?(m(),setTimeout(p)):g.current.update(d))},[n,l,o.labels,o.datasets,d]),(0,nL.useEffect)(()=>{g.current&&(m(),setTimeout(p))},[a]),(0,nL.useEffect)(()=>(p(),()=>m()),[]),nL.createElement("canvas",Object.assign({ref:f,role:"img",height:i,width:s},u),c)}),nF=(r=class extends iu{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,i,s){return ip(t,e,i,s)}parseArrayData(t,e,i,s){return ip(t,e,i,s)}parseObjectData(t,e,i,s){let n,r,a,o;let{iScale:l,vScale:h}=t,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,u="x"===l.axis?c:d,f="x"===h.axis?c:d,g=[];for(n=i,r=i+s;nt.x,r="left",a="right"):(n=t.baset.controller.options.grouped),n=i.options.stacked,r=[],a=t=>{let i=t.controller.getParsed(e),s=i&&i[t.vScale.axis];if(z(s)||isNaN(s))return!0};for(let i of s)if(!(void 0!==e&&a(i))&&((!1===n||-1===r.indexOf(i.stack)||void 0===n&&void 0===i.stack)&&r.push(i.stack),i.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){let s=this._getStacks(t,i),n=void 0!==e?s.indexOf(e):-1;return -1===n?s.length-1:n}_getRuler(){let t,e;let i=this.options,s=this._cachedMeta,n=s.iScale,r=[];for(t=0,e=s.data.length;tt-e))}return t._cache.$bar}(r,t.type),o=r._length,l=()=>{32767!==s&&-32768!==s&&(tn(n)&&(o=Math.min(o,Math.abs(s-n)||o)),n=s)};for(e=0,i=a.length;e=l?1:-1))*o,u===l&&(m-=i/2);let t=s.getPixelForDecimal(0),a=s.getPixelForDecimal(1);e=(m=Math.max(Math.min(m,Math.max(t,a)),Math.min(t,a)))+i,n&&!d&&(h._stacks[s.axis]._visualValues[r]=s.getValueForPixel(e)-s.getValueForPixel(m))}if(m===s.getPixelForValue(l)){let t=tm(i)*s.getLineWidthForValue(l)/2;m+=t,i-=t}return{size:i,base:m,head:e,center:e+i/2}}_calculateBarIndexPixels(t,e){let i,s;let n=e.scale,r=this.options,a=r.skipNull,o=B(r.maxBarThickness,1/0);if(e.grouped){let n=a?this._getStackCount(t):e.stackCount,l="flex"===r.barThickness?function(t,e,i,s){let n=e.pixels,r=n[t],a=t>0?n[t-1]:null,o=tnL.createElement(nj,Object.assign({},t,{ref:e,type:"bar"}))));var nz=i(1688);let nV=()=>{},nN=nV(),nW=Object,n$=t=>t===nN,nB=t=>"function"==typeof t,nH=(t,e)=>({...t,...e}),nY=t=>nB(t.then),nU=new WeakMap,nq=0,nX=t=>{let e,i;let s=typeof t,n=t&&t.constructor,r=n==Date;if(nW(t)!==t||r||n==RegExp)e=r?t.toJSON():"symbol"==s?t.toString():"string"==s?JSON.stringify(t):""+t;else{if(e=nU.get(t))return e;if(e=++nq+"~",nU.set(t,e),n==Array){for(i=0,e="@";inQ&&typeof window.requestAnimationFrame!=nJ,n2=(t,e)=>{let i=nZ.get(t);return[()=>!n$(e)&&t.get(e)||nG,s=>{if(!n$(e)){let n=t.get(e);e in nK||(nK[e]=n),i[5](e,nH(n,s),n||nG)}},i[6],()=>!n$(e)&&e in nK?nK[e]:!n$(e)&&t.get(e)||nG]},n5=!0,[n3,n4]=nQ&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[nV,nV],n8=()=>{let t=n0&&document.visibilityState;return n$(t)||"hidden"!==t},n6=t=>(n0&&document.addEventListener("visibilitychange",t),n3("focus",t),()=>{n0&&document.removeEventListener("visibilitychange",t),n4("focus",t)}),n7=t=>{let e=()=>{n5=!0,t()},i=()=>{n5=!1};return n3("online",e),n3("offline",i),()=>{n4("online",e),n4("offline",i)}},n9={initFocus:n6,initReconnect:n7},rt=!nL.useId,re=!nQ||"Deno"in window,ri=t=>n1()?window.requestAnimationFrame(t):setTimeout(t,1),rs=re?nL.useEffect:nL.useLayoutEffect,rn="undefined"!=typeof navigator&&navigator.connection,rr=!re&&rn&&(["slow-2g","2g"].includes(rn.effectiveType)||rn.saveData),ra=t=>{if(nB(t))try{t=t()}catch(e){t=""}let e=t;return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?nX(t):"",e]},ro=0,rl=()=>++ro;var rh={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function rc(...t){let[e,i,s,n]=t,r=nH({populateCache:!0,throwOnError:!0},"boolean"==typeof n?{revalidate:n}:n||{}),a=r.populateCache,o=r.rollbackOnError,l=r.optimisticData,h=t=>"function"==typeof o?o(t):!1!==o,c=r.throwOnError;if(nB(i)){let t=[],s=e.keys();for(let n of s)!/^\$(inf|sub)\$/.test(n)&&i(e.get(n)._k)&&t.push(n);return Promise.all(t.map(d))}return d(i);async function d(i){let n;let[o]=ra(i);if(!o)return;let[d,u]=n2(e,o),[f,g,p,m]=nZ.get(e),b=()=>{let t=f[o],e=nB(r.revalidate)?r.revalidate(d().data,i):!1!==r.revalidate;return e&&(delete p[o],delete m[o],t&&t[0])?t[0](2).then(()=>d().data):d().data};if(t.length<3)return b();let x=s,_=rl();g[o]=[_,0];let y=!n$(l),v=d(),w=v.data,M=v._c,k=n$(M)?w:M;if(y&&u({data:l=nB(l)?l(k,w):l,_c:k}),nB(x))try{x=x(k)}catch(t){n=t}if(x&&nY(x)){if(x=await x.catch(t=>{n=t}),_!==g[o][0]){if(n)throw n;return x}n&&y&&h(n)&&(a=!0,u({data:k,_c:nN}))}if(a&&!n){if(nB(a)){let t=a(x,k);u({data:t,error:nN,_c:nN})}else u({data:x,error:nN,_c:nN})}if(g[o][1]=rl(),Promise.resolve(b()).then(()=>{u({_c:nN})}),n){if(c)throw n;return}return x}}let rd=(t,e)=>{for(let i in t)t[i][0]&&t[i][0](e)},ru=(t,e)=>{if(!nZ.has(t)){let i=nH(n9,e),s={},n=rc.bind(nN,t),r=nV,a={},o=(t,e)=>{let i=a[t]||[];return a[t]=i,i.push(e),()=>i.splice(i.indexOf(e),1)},l=(e,i,s)=>{t.set(e,i);let n=a[e];if(n)for(let t of n)t(i,s)},h=()=>{if(!nZ.has(t)&&(nZ.set(t,[s,{},{},{},n,l,o]),!re)){let e=i.initFocus(setTimeout.bind(nN,rd.bind(nN,s,0))),n=i.initReconnect(setTimeout.bind(nN,rd.bind(nN,s,1)));r=()=>{e&&e(),n&&n(),nZ.delete(t)}}};return h(),[t,n,h,r]}return[t,nZ.get(t)[4]]},rf=(t,e,i,s,n)=>{let r=i.errorRetryCount,a=n.retryCount,o=~~((Math.random()+.5)*(1<<(a<8?a:8)))*i.errorRetryInterval;(n$(r)||!(a>r))&&setTimeout(s,o,n)},rg=(t,e)=>nX(t)==nX(e),[rp,rm]=ru(new Map),rb=nH({onLoadingSlow:nV,onSuccess:nV,onError:nV,onErrorRetry:rf,onDiscarded:nV,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:rr?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:rr?5e3:3e3,compare:rg,isPaused:()=>!1,cache:rp,mutate:rm,fallback:{}},{isOnline:()=>n5,isVisible:n8}),rx=(t,e)=>{let i=nH(t,e);if(e){let{use:s,fallback:n}=t,{use:r,fallback:a}=e;s&&r&&(i.use=s.concat(r)),n&&a&&(i.fallback=nH(n,a))}return i},r_=(0,nL.createContext)({}),ry=t=>{let{value:e}=t,i=(0,nL.useContext)(r_),s=nB(e),n=(0,nL.useMemo)(()=>s?e(i):e,[s,i,e]),r=(0,nL.useMemo)(()=>s?n:rx(i,n),[s,i,n]),a=n&&n.provider,o=(0,nL.useRef)(nN);a&&!o.current&&(o.current=ru(a(r.cache||rp),n));let l=o.current;return l&&(r.cache=l[0],r.mutate=l[1]),rs(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,nL.createElement)(r_.Provider,nH(t,{value:r}))},rv=nQ&&window.__SWR_DEVTOOLS_USE__,rw=rv?window.__SWR_DEVTOOLS_USE__:[],rM=t=>nB(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}],rk=()=>nH(rb,(0,nL.useContext)(r_)),rS=t=>(e,i,s)=>{let n=i&&((...t)=>{let[s]=ra(e),[,,,n]=nZ.get(rp);if(s.startsWith("$inf$"))return i(...t);let r=n[s];return n$(r)?i(...t):(delete n[s],r)});return t(e,n,s)},rO=rw.concat(rS),rP=(t,e,i)=>{let s=e[t]||(e[t]=[]);return s.push(i),()=>{let t=s.indexOf(i);t>=0&&(s[t]=s[s.length-1],s.pop())}};rv&&(window.__SWR_DEVTOOLS_REACT__=nL);let rE=nL.use||(t=>{if("pending"===t.status)throw t;if("fulfilled"===t.status)return t.value;if("rejected"===t.status)throw t.reason;throw t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}),t}),rC={dedupe:!0},rD=(t,e,i)=>{let{cache:s,compare:n,suspense:r,fallbackData:a,revalidateOnMount:o,revalidateIfStale:l,refreshInterval:h,refreshWhenHidden:c,refreshWhenOffline:d,keepPreviousData:u}=i,[f,g,p,m]=nZ.get(s),[b,x]=ra(t),_=(0,nL.useRef)(!1),y=(0,nL.useRef)(!1),v=(0,nL.useRef)(b),w=(0,nL.useRef)(e),M=(0,nL.useRef)(i),k=()=>M.current,S=()=>k().isVisible()&&k().isOnline(),[O,P,E,C]=n2(s,b),D=(0,nL.useRef)({}).current,T=n$(a)?i.fallback[b]:a,L=(t,e)=>{for(let i in D){let s=i;if("data"===s){if(!n(t[s],e[s])&&(!n$(t[s])||!n(W,e[s])))return!1}else if(e[s]!==t[s])return!1}return!0},A=(0,nL.useMemo)(()=>{let t=!!b&&!!e&&(n$(o)?!k().isPaused()&&!r&&(!!n$(l)||l):o),i=e=>{let i=nH(e);return(delete i._k,t)?{isValidating:!0,isLoading:!0,...i}:i},s=O(),n=C(),a=i(s),h=s===n?a:i(n),c=a;return[()=>{let t=i(O()),e=L(t,c);return e?(c.data=t.data,c.isLoading=t.isLoading,c.isValidating=t.isValidating,c.error=t.error,c):(c=t,t)},()=>h]},[s,b]),R=(0,nz.useSyncExternalStore)((0,nL.useCallback)(t=>E(b,(e,i)=>{L(i,e)||t()}),[s,b]),A[0],A[1]),I=!_.current,j=f[b]&&f[b].length>0,F=R.data,z=n$(F)?T:F,V=R.error,N=(0,nL.useRef)(z),W=u?n$(F)?N.current:F:z,$=(!j||!!n$(V))&&(I&&!n$(o)?o:!k().isPaused()&&(r?!n$(z)&&l:n$(z)||l)),B=!!(b&&e&&I&&$),H=n$(R.isValidating)?B:R.isValidating,Y=n$(R.isLoading)?B:R.isLoading,U=(0,nL.useCallback)(async t=>{let e,s;let r=w.current;if(!b||!r||y.current||k().isPaused())return!1;let a=!0,o=t||{},l=!p[b]||!o.dedupe,h=()=>rt?!y.current&&b===v.current&&_.current:b===v.current,c={isValidating:!1,isLoading:!1},d=()=>{P(c)},u=()=>{let t=p[b];t&&t[1]===s&&delete p[b]},m={isValidating:!0};n$(O().data)&&(m.isLoading=!0);try{if(l&&(P(m),i.loadingTimeout&&n$(O().data)&&setTimeout(()=>{a&&h()&&k().onLoadingSlow(b,i)},i.loadingTimeout),p[b]=[r(x),rl()]),[e,s]=p[b],e=await e,l&&setTimeout(u,i.dedupingInterval),!p[b]||p[b][1]!==s)return l&&h()&&k().onDiscarded(b),!1;c.error=nN;let t=g[b];if(!n$(t)&&(s<=t[0]||s<=t[1]||0===t[1]))return d(),l&&h()&&k().onDiscarded(b),!1;let o=O().data;c.data=n(o,e)?o:e,l&&h()&&k().onSuccess(e,b,i)}catch(i){u();let t=k(),{shouldRetryOnError:e}=t;!t.isPaused()&&(c.error=i,l&&h()&&(t.onError(i,b,t),(!0===e||nB(e)&&e(i))&&(!k().revalidateOnFocus||!k().revalidateOnReconnect||S())&&t.onErrorRetry(i,b,t,t=>{let e=f[b];e&&e[0]&&e[0](rh.ERROR_REVALIDATE_EVENT,t)},{retryCount:(o.retryCount||0)+1,dedupe:!0})))}return a=!1,d(),!0},[b,s]),q=(0,nL.useCallback)((...t)=>rc(s,v.current,...t),[]);if(rs(()=>{w.current=e,M.current=i,n$(F)||(N.current=F)}),rs(()=>{if(!b)return;let t=U.bind(nN,rC),e=0,i=(i,s={})=>{if(i==rh.FOCUS_EVENT){let i=Date.now();k().revalidateOnFocus&&i>e&&S()&&(e=i+k().focusThrottleInterval,t())}else if(i==rh.RECONNECT_EVENT)k().revalidateOnReconnect&&S()&&t();else if(i==rh.MUTATE_EVENT)return U();else if(i==rh.ERROR_REVALIDATE_EVENT)return U(s)},s=rP(b,f,i);return y.current=!1,v.current=b,_.current=!0,P({_k:x}),$&&(n$(z)||re?t():ri(t)),()=>{y.current=!0,s()}},[b]),rs(()=>{let t;function e(){let e=nB(h)?h(O().data):h;e&&-1!==t&&(t=setTimeout(i,e))}function i(){!O().error&&(c||k().isVisible())&&(d||k().isOnline())?U(rC).then(e):e()}return e(),()=>{t&&(clearTimeout(t),t=-1)}},[h,c,d,b]),(0,nL.useDebugValue)(W),r&&n$(z)&&b){if(!rt&&re)throw Error("Fallback data is required when using suspense in SSR.");w.current=e,M.current=i,y.current=!1;let t=m[b];if(!n$(t)){let e=q(t);rE(e)}if(n$(V)){let t=U(rC);n$(W)||(t.status="fulfilled",t.value=!0),rE(t)}else throw V}return{mutate:q,get data(){return D.data=!0,W},get error(){return D.error=!0,V},get isValidating(){return D.isValidating=!0,H},get isLoading(){return D.isLoading=!0,Y}}};nW.defineProperty(ry,"defaultValue",{value:rb});let rT=function(...t){let e=rk(),[i,s,n]=rM(t),r=rx(e,n),a=rD,{use:o}=r,l=(o||[]).concat(rO);for(let t=l.length;t--;)a=l[t](a);return a(i,s||r.fetcher||null,r)};function rL(){return(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:"Error..."})}var rA=i(425),rR=i(5152),rI=i.n(rR);let rj=t=>rI()(t,{ssr:!1,loading:t=>(0,nL.createElement)(rA.g,t)}),rF=rj(async()=>(await Promise.all([i.e(2738),i.e(4081),i.e(6175),i.e(3677)]).then(i.bind(i,3677))).ExcalidrawSceneImpl);function rz(t){return(0,a.jsx)(rF,{...t})}function rV(t){let{file:e,url:i,label:s}=t,{data:n,isLoading:r}=rT(i,async t=>{let e=await fetch(t).then(t=>t.json());return e.elements});return(0,a.jsx)("div",{className:"relative h-[600px] py-4",children:r?(0,a.jsx)(rA.g,{}):n?(0,a.jsx)(rz,{elements:n}):(0,a.jsx)(rL,{})})}let rN=rj(async()=>(await Promise.all([i.e(2738),i.e(4081),i.e(152),i.e(6175),i.e(6760),i.e(6453)]).then(i.bind(i,6453))).MermaidCodeBlockImpl);var rW=i(1466);sT.register(class extends sr{static id="category";static defaults={ticks:{callback:nh}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){let e=this._addedLabels;if(e.length){let t=this.getLabels();for(let{index:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(z(t))return null;let i=this.getLabels();return nl(e=isFinite(e)&&i[e]===t?e:function(t,e,i,s){let n=t.indexOf(e);if(-1===n)return no(t,e,i,s);let r=t.lastIndexOf(e);return n!==r?i:n}(i,t,B(e,t),this._addedLabels),i.length-1)}determineDataLimits(){let{minDefined:t,maxDefined:e}=this.getUserBounds(),{min:i,max:s}=this.getMinMax(!0);"ticks"!==this.options.bounds||(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){let t=this.min,e=this.max,i=this.options.offset,s=[],n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)s.push({value:i});return s}getLabelForValue(t){return nh.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){let e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},nu,class extends i6{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){var e;let{inflateAmount:i,options:{borderColor:s,backgroundColor:n}}=this,{inner:r,outer:a}=function(t){let e=sU(t),i=e.right-e.left,s=e.bottom-e.top,n=function(t,e,i){let s=t.options.borderWidth,n=t.borderSkipped,r=ef(s);return{t:sq(n.top,r.top,0,i),r:sq(n.right,r.right,0,e),b:sq(n.bottom,r.bottom,0,i),l:sq(n.left,r.left,0,e)}}(t,i/2,s/2),r=function(t,e,i){let{enableBorderRadius:s}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,r=eg(n),a=Math.min(e,i),o=t.borderSkipped,l=s||N(n);return{topLeft:sq(!l||o.top||o.left,r.topLeft,0,a),topRight:sq(!l||o.top||o.right,r.topRight,0,a),bottomLeft:sq(!l||o.bottom||o.left,r.bottomLeft,0,a),bottomRight:sq(!l||o.bottom||o.right,r.bottomRight,0,a)}}(t,i/2,s/2);return{outer:{x:e.left,y:e.top,w:i,h:s,radius:r},inner:{x:e.left+n.l,y:e.top+n.t,w:i-n.l-n.r,h:s-n.t-n.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,r.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(n.b,n.r))}}}}(this),o=(e=a.radius).topLeft||e.topRight||e.bottomLeft||e.bottomRight?el:sZ;t.save(),(a.w!==r.w||a.h!==r.h)&&(t.beginPath(),o(t,sG(a,i,r)),t.clip(),o(t,sG(r,-i,a)),t.fillStyle=s,t.fill("evenodd")),t.beginPath(),o(t,sG(r,i)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,i){return sX(this,t,e,i)}inXRange(t,e){return sX(this,t,null,e)}inYRange(t,e){return sX(this,null,t,e)}getCenterPoint(t){let{x:e,y:i,base:s,horizontal:n}=this.getProps(["x","y","base","horizontal"],t);return{x:n?(e+s)/2:e,y:n?i:(i+s)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}},{id:"title",_element:s4,start(t,e,i){!function(t,e){let i=new s4({ctx:t.ctx,options:e,chart:t});iB.configure(t,i,e),iB.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){let e=t.titleBlock;iB.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){let s=t.titleBlock;iB.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},{id:"tooltip",_element:na,positioners:s8,afterInit(t,e,i){i&&(t.tooltip=new na({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){let e=t.tooltip;if(e&&e._willRender()){let i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){let i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:nn},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},{id:"legend",_element:s5,start(t,e,i){let s=t.legend=new s5({ctx:t.ctx,options:i,chart:t});iB.configure(t,s,i),iB.addBox(t,s)},stop(t){iB.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){let s=t.legend;iB.configure(t,s,i),s.options=i},afterUpdate(t){let e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){let s=e.datasetIndex,n=i.chart;n.isDatasetVisible(s)?(n.hide(s),e.hidden=!0):(n.show(s),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:s,textAlign:n,color:r,useBorderRadius:a,borderRadius:o}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{let l=t.controller.getStyle(i?0:void 0),h=ep(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:l.borderColor,pointStyle:s||l.pointStyle,rotation:l.rotation,textAlign:n||l.textAlign,borderRadius:a&&(o||l.borderRadius),datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}});let r$={Bar:nF,License:rW.Z,MermaidCodeBlock:function(t){return(0,a.jsx)("div",{className:"relative h-[600px] py-4",children:(0,a.jsx)(rN,{...t})})},ObsidianRich:t=>(console.log("ObsidianRich:",t),t.file.endsWith(".excalidraw")||t.file.endsWith(".excalidraw.md"))?(0,a.jsx)(rV,{...t}):(0,a.jsx)("img",{src:t.url,alt:t.label})};var rB=i(1810),rH=i(2203);i(6374);var rY=i(1151);i(6180);var rU=i(4298),rq=i.n(rU);function rX(t){let{Component:e,pageProps:i}=t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(rH.ZP,{}),(0,a.jsx)(rq(),{strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=G-1Y0XYKX8HY"}),(0,a.jsx)(rq(),{id:"google-analytics",strategy:"afterInteractive",children:"window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', 'G-1Y0XYKX8HY');"}),(0,a.jsx)(rB.h,{children:(0,a.jsx)(rY.Zo,{components:r$,children:(0,a.jsx)(e,{...i})})})]})}},1858:function(t,e,i){"use strict";i.d(e,{GW:function(){return n},Wj:function(){return a},_O:function(){return r},px:function(){return s}});let s="Ryo's Blog",n="/blog-next",r="".concat("https://ryojerryyu.github.io").concat(n),a="https://blog.ryo-okami.xyz"},6180:function(){},6374:function(){},5152:function(t,e,i){t.exports=i(7645)},9008:function(t,e,i){t.exports=i(3121)},5675:function(t,e,i){t.exports=i(9749)},1664:function(t,e,i){t.exports=i(1551)},1163:function(t,e,i){t.exports=i(880)},4298:function(t,e,i){t.exports=i(3573)},3250:function(t,e,i){"use strict";/** + */class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){let n=e.listeners[s],r=e.duration;n.forEach(s=>s({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(i-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=tj.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,s)=>{let n;if(!i.running||!i.items.length)return;let r=i.items,a=r.length-1,o=!1;for(;a>=0;--a)(n=r[a])._active?(n._total>i.duration&&(i.duration=n._total),n.tick(t),o=!0):(r[a]=r[r.length-1],r.pop());o&&(s.draw(),this._notify(s,i,t,"progress")),r.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=r.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){let e=this._charts,i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){let e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;let e=this._charts.get(t);return!!e&&!!e.running&&!!e.items.length}stop(t){let e=this._charts.get(t);if(!e||!e.items.length)return;let i=e.items,s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};let e8="transparent",e6={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){let s=tX(t||e8),n=s.valid&&tX(e||e8);return n&&n.valid?n.mix(s,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class e7{constructor(t,e,i,s){let n=e[i];s=eb([t.to,s,n,t.from]);let r=eb([t.from,n,s]);this._active=!0,this._fn=t.fn||e6[t.type||typeof r],this._easing=tU[t.easing]||tU.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);let s=this._target[this._prop],n=i-this._start,r=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=eb([t.to,e,s,t.from]),this._from=eb([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){let e;let i=t-this._start,s=this._duration,n=this._prop,r=this._from,a=this._loop,o=this._to;if(this._active=r!==o&&(a||i1?2-e:e,e=this._easing(Math.min(1,Math.max(0,e))),this._target[n]=this._fn(r,o,e)}wait(){let t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){let e=t?"res":"rej",i=this._promises||[];for(let t=0;t{let n=t[s];if(!N(n))return;let r={};for(let t of e)r[t]=n[t];(V(n.properties)&&n.properties||[s]).forEach(t=>{t!==s&&i.has(t)||i.set(t,r)})})}_animateOptions(t,e){let i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(!i){t.options=e;return}return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i}(t,i);if(!s)return[];let n=this._createAnimations(s,i);return i.$shared&&(function(t,e){let i=[],s=Object.keys(e);for(let e=0;e{t.options=i},()=>{}),n}_createAnimations(t,e){let i;let s=this._properties,n=[],r=t.$animations||(t.$animations={}),a=Object.keys(e),o=Date.now();for(i=a.length-1;i>=0;--i){let l=a[i];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(t,e));continue}let h=e[l],c=r[l],d=s.get(l);if(c){if(d&&c.active()){c.update(d,h,o);continue}c.cancel()}if(!d||!d.duration){t[l]=h;continue}r[l]=c=new e7(d,t,l,h),n.push(c)}return n}update(t,e){if(0===this._properties.size){Object.assign(t,e);return}let i=this._createAnimations(t,e);if(i.length)return e4.add(this._chart,i),!0}}function it(t,e){let i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,r=void 0===i.max?e:0;return{start:s?r:n,end:s?n:r}}function ie(t,e){let i,s;let n=[],r=t._getSortedDatasetMetas(e);for(i=0,s=r.length;i0||!i&&e<0)return n.index}return null}function ia(t,e){let i;let{chart:s,_cachedMeta:n}=t,r=s._stacks||(s._stacks={}),{iScale:a,vScale:o,index:l}=n,h=a.axis,c=o.axis,d=`${a.id}.${o.id}.${n.stack||n.type}`,u=e.length;for(let t=0;ti[t].axis===e).shift()}function il(t,e){let i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s)for(let n of e=e||t._parsed){let t=n._stacks;if(!t||void 0===t[s]||void 0===t[s][i])return;delete t[s][i],void 0!==t[s]._visualValues&&void 0!==t[s]._visualValues[i]&&delete t[s]._visualValues[i]}}let ih=t=>"reset"===t||"none"===t,ic=(t,e)=>e?t:Object.assign({},t),id=(t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:ie(i,!0),values:null};class iu{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=is(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&il(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,n=e.xAxisID=B(i.xAxisID,io(t,"x")),r=e.yAxisID=B(i.yAxisID,io(t,"y")),a=e.rAxisID=B(i.rAxisID,io(t,"r")),o=e.indexAxis,l=e.iAxisID=s(o,n,r,a),h=e.vAxisID=s(o,r,n,a);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&tR(this._data,this),t._stacked&&il(t)}_dataCheck(){let t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(N(e))this._data=function(t){let e,i,s;let n=Object.keys(t),r=Array(n.length);for(e=0,i=n.length;e{let i="_onData"+ts(e),s=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){let n=s.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"==typeof t[i]&&t[i](...e)}),n}})})}(e,this),this._syncList=[],this._data=e}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let e=this._cachedMeta,i=this.getDataset(),s=!1;this._dataCheck();let n=e._stacked;e._stacked=is(e.vScale,e),e.stack!==i.stack&&(s=!0,il(e),e.stack=i.stack),this._resyncElements(t),(s||n!==e._stacked)&&ia(this,e._parsed)}configure(){let t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){let i,s,n;let{_cachedMeta:r,_data:a}=this,{iScale:o,_stacked:l}=r,h=o.axis,c=0===t&&e===a.length||r._sorted,d=t>0&&r._parsed[t-1];if(!1===this._parsing)r._parsed=a,r._sorted=!0,n=a;else{n=V(a[t])?this.parseArrayData(r,a,t,e):N(a[t])?this.parseObjectData(r,a,t,e):this.parsePrimitiveData(r,a,t,e);let o=()=>null===s[h]||d&&s[h]e||u=0;--i)if(!f()){this.updateRangeFromParsed(c,t,s,h);break}}return c}getAllParsedValues(t){let e,i,s;let n=this._cachedMeta._parsed,r=[];for(e=0,i=n.length;e=0&&tthis.getContext(i,s,e),g=l.resolveNamedOptions(d,u,f,c);return g.$shared&&(g.$shared=o,n[r]=Object.freeze(ic(g,o))),g}_resolveAnimations(t,e,i){let s;let n=this.chart,r=this._cachedDataOpts,a=`animation-${e}`,o=r[a];if(o)return o;if(!1!==n.options.animation){let n=this.chart.config,r=n.datasetAnimationScopeKeys(this._type,e),a=n.getOptionScopes(this.getDataset(),r);s=n.createResolver(a,this.getContext(t,i,e))}let l=new e9(n,s&&s.animations);return s&&s._cacheable&&(r[a]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||ih(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){let i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,n=this.getSharedOptions(i),r=this.includeOptions(e,n)||n!==s;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:r}}updateElement(t,e,i,s){ih(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!ih(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;let n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let e=this._data,i=this._cachedMeta.data;for(let[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];let s=i.length,n=e.length,r=Math.min(n,s);r&&this.parse(0,r),n>s?this._insertElements(s,n-s,t):n{for(t.length+=e,s=t.length-1;s>=a;s--)t[s]=t[s-e]};for(o(r),s=t;sMath.abs(o)&&(l=o,h=a),e[i.axis]=h,e._custom={barStart:l,barEnd:h,start:n,end:r,min:a,max:o}}(t,e,i,s):e[i.axis]=i.parse(t,s),e}function ip(t,e,i,s){let n,r,a,o;let l=t.iScale,h=t.vScale,c=l.getLabels(),d=l===h,u=[];for(n=i,r=i+s;n=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:n}=e,r=this.getParsed(t),a=s.getLabelForValue(r.x),o=n.getLabelForValue(r.y),l=r._custom;return{label:i[t]||"",value:"("+a+", "+o+(l?", "+l:"")+")"}}update(t){let e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){let n="reset"===s,{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:o,includeOptions:l}=this._getSharedOptions(e,s),h=r.axis,c=a.axis;for(let d=e;d"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let e=t.data;if(e.labels.length&&e.datasets.length){let{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map((e,n)=>{let r=t.getDatasetMeta(0),a=r.controller.getStyle(n);return{text:e,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:s,lineWidth:a.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){let i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let n,r,a=t=>+i[t];if(N(i[t])){let{key:t="value"}=this._parsing;a=e=>+ti(i[e],t)}for(n=t,r=t+e;ntP(e,t,o,!0)?1:Math.max(s,s*i,n,n*i),f=(e,s,n)=>tP(e,t,o,!0)?-1:Math.min(s,s*i,n,n*i),g=u(0,l,c),p=u(tu,h,d),m=f(to,l,c),b=f(to+tu,h,d);s=(g-m)/2,n=(p-b)/2,r=-(g+m)/2,a=-(p+b)/2}return{ratioX:s,ratioY:n,offsetX:r,offsetY:a}}(c,h,o),p=(i.width-r)/d,m=(i.height-r)/u,b=Y(this.options.radius,Math.max(Math.min(p,m)/2,0)),x=(b-Math.max(b*o,0))/this._getVisibleDatasetWeightTotal();this.offsetX=f*b,this.offsetY=g*b,s.total=this.calculateTotal(),this.outerRadius=b-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*l,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){let i=this.options,s=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*n/tl)}updateElements(t,e,i,s){let n;let r="reset"===s,a=this.chart,o=a.chartArea,l=a.options,h=l.animation,c=(o.left+o.right)/2,d=(o.top+o.bottom)/2,u=r&&h.animateScale,f=u?0:this.innerRadius,g=u?0:this.outerRadius,{sharedOptions:p,includeOptions:m}=this._getSharedOptions(e,s),b=this._getRotation();for(n=0;n0&&!isNaN(t)?tl*(Math.abs(t)/e):0}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=tQ(e._parsed[t],i.options.locale);return{label:s[t]||"",value:n}}getMaxBorderWidth(t){let e,i,s,n,r,a=0,o=this.chart;if(!t){for(e=0,i=o.data.datasets.length;e0&&this.getParsed(e-1);for(let i=0;i=b){x.skip=!0;continue}let y=this.getParsed(i),v=z(y[u]),w=x[d]=r.getPixelForValue(y[d],i),M=x[u]=n||v?a.getBasePixel():a.getPixelForValue(o?this.applyStack(a,y,o):y[u],i);x.skip=isNaN(w)||isNaN(M)||v,x.stop=i>0&&Math.abs(y[d]-_[d])>p,g&&(x.parsed=y,x.raw=l.data[i]),c&&(x.options=h||this.resolveDataElementOptions(i,f.active?"active":s)),m||this.updateElement(f,i,x,s),_=y}}getMaxOverflow(){let t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;let n=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,n,r)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}class iw extends iu{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let e=t.data;if(e.labels.length&&e.datasets.length){let{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map((e,n)=>{let r=t.getDatasetMeta(0),a=r.controller.getStyle(n);return{text:e,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:s,lineWidth:a.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=tQ(e._parsed[t].r,i.options.locale);return{label:s[t]||"",value:n}}parseObjectData(t,e,i,s){return eD.bind(this)(t,e,i,s)}update(t){let e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){let t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,i)=>{let s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(se.max&&(e.max=s))}),e}_updateRadius(){let t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(s/2,0),r=Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0),a=(n-r)/t.getVisibleDatasetCount();this.outerRadius=n-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,i,s){let n;let r="reset"===s,a=this.chart,o=a.options,l=o.animation,h=this._cachedMeta.rScale,c=h.xCenter,d=h.yCenter,u=h.getIndexAngle(0)-.5*to,f=u,g=360/this.countVisibleElements();for(n=0;n{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?tv(this.resolveDataElementOptions(t,e).angle||i):0}}class iM extends iy{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}class ik extends iu{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){let e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,s){return eD.bind(this)(t,e,i,s)}update(t){let e=this._cachedMeta,i=e.dataset,s=e.data||[],n=e.iScale.getLabels();if(i.points=s,"resize"!==t){let e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);let r={_loop:!0,_fullLoop:n.length===s.length,options:e};this.updateElement(i,void 0,r,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){let n=this._cachedMeta.rScale,r="reset"===s;for(let a=e;a0&&this.getParsed(e-1);for(let h=e;h0&&Math.abs(i[u]-x[u])>m,p&&(g.parsed=i,g.raw=l.data[h]),d&&(g.options=c||this.resolveDataElementOptions(h,e.active?"active":s)),b||this.updateElement(e,h,g,s),x=i}this.updateSharedOptions(c,s,h)}getMaxOverflow(){let t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}let i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!e.length)return s;let n=e[0].size(this.resolveDataElementOptions(0)),r=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(s,n,r)/2}}function iO(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class iP{static override(t){Object.assign(iP.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return iO()}parse(){return iO()}format(){return iO()}add(){return iO()}diff(){return iO()}startOf(){return iO()}endOf(){return iO()}}var iE={_date:iP};function iC(t,e,i,s,n){let r=t.getSortedVisibleDatasetMetas(),a=i[e];for(let t=0,i=r.length;t{t[a](e[i],n)&&(r.push({element:t,datasetIndex:s,index:l}),o=o||t.inRange(e.x,e.y,n))}),s&&!o)?[]:r}var iA={evaluateInteractionItems:iC,modes:{index(t,e,i,s){let n=e$(e,t),r=i.axis||"x",a=i.includeInvisible||!1,o=i.intersect?iD(t,n,r,s,a):iT(t,n,r,!1,s,a),l=[];return o.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{let e=o[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,i,s){let n=e$(e,t),r=i.axis||"xy",a=i.includeInvisible||!1,o=i.intersect?iD(t,n,r,s,a):iT(t,n,r,!1,s,a);if(o.length>0){let e=o[0].datasetIndex,i=t.getDatasetMeta(e).data;o=[];for(let t=0;tt.pos===e)}function ij(t,e){return t.filter(t=>-1===iR.indexOf(t.pos)&&t.box.axis===e)}function iF(t,e){return t.sort((t,i)=>{let s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight})}function iz(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function iV(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function iN(t,e,i,s){let n,r,a,o,l,h;let c=[];for(n=0,r=t.length,l=0;n{s[t]=Math.max(e[t],i[t])}),s}(t?["left","right"]:["top","bottom"])}(a.horizontal,e));let{same:r,other:d}=function(t,e,i,s){let{pos:n,box:r}=i,a=t.maxPadding;if(!N(n)){i.size&&(t[n]-=i.size);let e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?r.height:r.width),i.size=e.size/e.count,t[n]+=i.size}r.getPadding&&iV(a,r.getPadding());let o=Math.max(0,e.outerWidth-iz(a,t,"left","right")),l=Math.max(0,e.outerHeight-iz(a,t,"top","bottom")),h=o!==t.w,c=l!==t.h;return t.w=o,t.h=l,i.horizontal?{same:h,other:c}:{same:c,other:h}}(e,i,a,s);l|=r&&c.length,h=h||d,o.fullSize||c.push(a)}return l&&iN(c,e,i,s)||h}function iW(t,e,i,s,n){t.top=i,t.left=e,t.right=e+s,t.bottom=i+n,t.width=s,t.height=n}function i$(t,e,i,s){let n=i.padding,{x:r,y:a}=e;for(let o of t){let t=o.box,l=s[o.stack]||{count:1,placed:0,weight:1},h=o.stackWeight/l.weight||1;if(o.horizontal){let s=e.w*h,r=l.size||t.height;tn(l.start)&&(a=l.start),t.fullSize?iW(t,n.left,a,i.outerWidth-n.right-n.left,r):iW(t,e.left+l.placed,a,s,r),l.start=a,l.placed+=s,a=t.bottom}else{let s=e.h*h,a=l.size||t.width;tn(l.start)&&(r=l.start),t.fullSize?iW(t,r,n.top,a,i.outerHeight-n.bottom-n.top):iW(t,r,e.top+l.placed,a,s),l.start=r,l.placed+=s,r=t.right}}e.x=r,e.y=a}var iB={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){let i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,s){if(!t)return;let n=ep(t.options.layout.padding),r=Math.max(e-n.width,0),a=Math.max(i-n.height,0),o=function(t){let e=function(t){let e,i,s,n,r,a;let o=[];for(e=0,i=(t||[]).length;et.box.fullSize),!0),s=iF(iI(e,"left"),!0),n=iF(iI(e,"right")),r=iF(iI(e,"top"),!0),a=iF(iI(e,"bottom")),o=ij(e,"x"),l=ij(e,"y");return{fullSize:i,leftAndTop:s.concat(r),rightAndBottom:n.concat(l).concat(a).concat(o),chartArea:iI(e,"chartArea"),vertical:s.concat(n).concat(l),horizontal:r.concat(a).concat(o)}}(t.boxes),l=o.vertical,h=o.horizontal;q(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});let c=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:r,availableHeight:a,vBoxMaxWidth:r/2/c,hBoxMaxHeight:a/2}),u=Object.assign({},n);iV(u,ep(s));let f=Object.assign({maxPadding:u,w:r,h:a,x:n.left,y:n.top},n),g=function(t,e){let i,s,n;let r=function(t){let e={};for(let i of t){let{stack:t,pos:s,stackWeight:n}=i;if(!t||!iR.includes(s))continue;let r=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=n}return e}(t),{vBoxMaxWidth:a,hBoxMaxHeight:o}=e;for(i=0,s=t.length;i{let i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class iH{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class iY extends iH{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}let iU="$chartjs",iq={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},iX=t=>null===t||""===t,iZ=!!eY&&{passive:!0};function iG(t,e,i){t&&t.canvas&&t.canvas.removeEventListener(e,i,iZ)}function iK(t,e){for(let i of t)if(i===e||i.contains(e))return!0}function iJ(t,e,i){let s=t.canvas,n=new MutationObserver(t=>{let e=!1;for(let i of t)e=(e=e||iK(i.addedNodes,s))&&!iK(i.removedNodes,s);e&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}function iQ(t,e,i){let s=t.canvas,n=new MutationObserver(t=>{let e=!1;for(let i of t)e=(e=e||iK(i.removedNodes,s))&&!iK(i.addedNodes,s);e&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}let i0=new Map,i1=0;function i2(){let t=window.devicePixelRatio;t!==i1&&(i1=t,i0.forEach((e,i)=>{i.currentDevicePixelRatio!==t&&e()}))}function i5(t,e,i){let s=t.canvas,n=s&&ej(s);if(!n)return;let r=tF((t,e)=>{let s=n.clientWidth;i(t,e),s{let e=t[0],i=e.contentRect.width,s=e.contentRect.height;(0!==i||0!==s)&&r(i,s)});return a.observe(n),i0.size||window.addEventListener("resize",i2),i0.set(t,r),a}function i3(t,e,i){i&&i.disconnect(),"resize"===e&&(i0.delete(t),i0.size||window.removeEventListener("resize",i2))}function i4(t,e,i){let s=t.canvas,n=tF(e=>{null!==t.ctx&&i(function(t,e){let i=iq[t.type]||t.type,{x:s,y:n}=e$(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==n?n:null}}(e,t))},t);return s&&s.addEventListener(e,n,iZ),n}class i8 extends iH{acquireContext(t,e){let i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(!function(t,e){let i=t.style,s=t.getAttribute("height"),n=t.getAttribute("width");if(t[iU]={initial:{height:s,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",iX(n)){let e=eU(t,"width");void 0!==e&&(t.width=e)}if(iX(s)){if(""===t.style.height)t.height=t.width/(e||2);else{let e=eU(t,"height");void 0!==e&&(t.height=e)}}}(t,e),i):null}releaseContext(t){let e=t.canvas;if(!e[iU])return!1;let i=e[iU].initial;["height","width"].forEach(t=>{let s=i[t];z(s)?e.removeAttribute(t):e.setAttribute(t,s)});let s=i.style||{};return Object.keys(s).forEach(t=>{e.style[t]=s[t]}),e.width=e.width,delete e[iU],!0}addEventListener(t,e,i){this.removeEventListener(t,e);let s=t.$proxies||(t.$proxies={});s[e]=(({attach:iJ,detach:iQ,resize:i5})[e]||i4)(t,e,i)}removeEventListener(t,e){let i=t.$proxies||(t.$proxies={}),s=i[e];s&&((({attach:i3,detach:i3,resize:i3})[e]||iG)(t,e,s),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return function(t,e,i,s){let n=ez(t),r=eN(n,"margin"),a=eF(n.maxWidth,t,"clientWidth")||tc,o=eF(n.maxHeight,t,"clientHeight")||tc,l=function(t,e,i){let s,n;if(void 0===e||void 0===i){let r=ej(t);if(r){let t=r.getBoundingClientRect(),a=ez(r),o=eN(a,"border","width"),l=eN(a,"padding");e=t.width-l.width-o.width,i=t.height-l.height-o.height,s=eF(a.maxWidth,r,"clientWidth"),n=eF(a.maxHeight,r,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||tc,maxHeight:n||tc}}(t,e,i),{width:h,height:c}=l;if("content-box"===n.boxSizing){let t=eN(n,"border","width"),e=eN(n,"padding");h-=e.width+t.width,c-=e.height+t.height}return h=Math.max(0,h-r.width),c=Math.max(0,s?h/s:c-r.height),h=eB(Math.min(h,a,l.maxWidth)),c=eB(Math.min(c,o,l.maxHeight)),h&&!c&&(c=eB(h/2)),(void 0!==e||void 0!==i)&&s&&l.height&&c>l.height&&(h=eB(Math.floor((c=l.height)*s))),{width:h,height:c}}(t,e,i,s)}isAttached(t){let e=ej(t);return!!(e&&e.isConnected)}}class i6{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){let{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return t_(this.x)&&t_(this.y)}getProps(t,e){let i=this.$animations;if(!e||!i)return this;let s={};return t.forEach(t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]}),s}}function i7(t,e,i,s,n){let r,a,o;let l=B(s,0),h=Math.min(B(n,t.length),t.length),c=0;for(i=Math.ceil(i),n&&(i=(r=n-s)/Math.floor(r/i)),o=l;o<0;)o=Math.round(l+ ++c*i);for(a=Math.max(l,0);a"left"===t?"right":"right"===t?"left":t,st=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i,se=(t,e)=>Math.min(e||t,t);function si(t,e){let i=[],s=t.length/e,n=t.length,r=0;for(;rs?s:i,s=n&&i>s?i:s,{min:$(i,$(s,i)),max:$(s,$(i,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){let e=this._labelItems||(this._labelItems=this._computeLabelItems(t));return e}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){U(this.options.beforeUpdate,[this])}update(t,e,i){let{beginAtZero:s,grace:n,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,i){let{min:s,max:n}=t,r=Y(e,(n-s)/2),a=(t,e)=>i&&0===t?0:t+e;return{min:a(s,-Math.abs(r)),max:a(n,r)}}(this,n,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let o=an)return function(t,e,i,s){let n,r=0,a=i[0];for(n=0,s=Math.ceil(s);nt-e).pop(),i}(s);for(let t=0,e=r.length-1;tn)return e}return Math.max(n,1)}(r,e,n);if(a>0){let t,i;let s=a>1?Math.round((l-o)/(a-1)):null;for(i7(e,h,c,z(s)?0:o-s,o),t=0,i=a-1;t=o||r<=1||!this.isHorizontal()){this.labelRotation=a;return}let h=this._getLabelSizes(),c=h.widest.width,d=h.highest.height,u=tE(this.chart.width-c,0,this.maxWidth);c+6>(t=s.offset?this.maxWidth/r:u/(r-1))&&(t=u/(r-(s.offset?.5:1)),e=this.maxHeight-ss(s.grid)-n.padding-sn(s.title,this.chart.options.font),i=Math.sqrt(c*c+d*d),l=Math.max(a,Math.min(o,l=Math.min(Math.asin(tE((h.highest.height+6)/t,-1,1)),Math.asin(tE(e/i,-1,1))-Math.asin(tE(d/i,-1,1)))*(180/to)))),this.labelRotation=l}afterCalculateLabelRotation(){U(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){U(this.options.beforeFit,[this])}fit(){let t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:n}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){let r=sn(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=ss(n)+r):(t.height=this.maxHeight,t.width=ss(n)+r),i.display&&this.ticks.length){let{first:e,last:s,widest:n,highest:r}=this._getLabelSizes(),o=2*i.padding,l=tv(this.labelRotation),h=Math.cos(l),c=Math.sin(l);if(a){let e=i.mirror?0:c*n.width+h*r.height;t.height=Math.min(this.maxHeight,t.height+e+o)}else{let e=i.mirror?0:h*n.width+c*r.height;t.width=Math.min(this.maxWidth,t.width+e+o)}this._calculatePadding(e,s,c,h)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){let{ticks:{align:n,padding:r},position:a}=this.options,o=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){let a=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1),c=0,d=0;o?l?(c=s*t.width,d=i*e.height):(c=i*t.height,d=s*e.width):"start"===n?d=e.width:"end"===n?c=t.width:"inner"!==n&&(c=t.width/2,d=e.width/2),this.paddingLeft=Math.max((c-a+r)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-h+r)*this.width/(this.width-h),0)}else{let i=e.height/2,s=t.height/2;"start"===n?(i=0,s=t.height):"end"===n&&(i=e.height,s=0),this.paddingTop=i+r,this.paddingBottom=s+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){U(this.options.afterFit,[this])}isHorizontal(){let{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e{let i;let s=t.gc,n=s.length/2;if(n>e){for(i=0;i({width:m[t]||0,height:b[t]||0});return{first:M(0),last:M(e-1),widest:M(v),highest:M(w),widths:m,heights:b}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){let e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);let e=this._startPixel+t*this._length;return tE(this._alignToPixels?t7(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){let e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){let e=this.ticks||[];if(t>=0&&ta*s?a/i:o/s:o*s0}_computeGridLineItems(t){let e,i,s,n,r,a,o,l,h,c,d,u;let f=this.axis,g=this.chart,p=this.options,{grid:m,position:b,border:x}=p,_=m.offset,y=this.isHorizontal(),v=this.ticks,w=v.length+(_?1:0),M=ss(m),k=[],S=x.setContext(this.getContext()),O=S.display?S.width:0,P=O/2,E=function(t){return t7(g,t,O)};if("top"===b)e=E(this.bottom),a=this.bottom-M,l=e-P,c=E(t.top)+P,u=t.bottom;else if("bottom"===b)e=E(this.top),c=t.top,u=E(t.bottom)-P,a=e+P,l=this.top+M;else if("left"===b)e=E(this.right),r=this.right-M,o=e-P,h=E(t.left)+P,d=t.right;else if("right"===b)e=E(this.left),h=t.left,d=E(t.right)-P,r=e+P,o=this.left+M;else if("x"===f){if("center"===b)e=E((t.top+t.bottom)/2+.5);else if(N(b)){let t=Object.keys(b)[0],i=b[t];e=E(this.chart.scales[t].getPixelForValue(i))}c=t.top,u=t.bottom,l=(a=e+P)+M}else if("y"===f){if("center"===b)e=E((t.left+t.right)/2);else if(N(b)){let t=Object.keys(b)[0],i=b[t];e=E(this.chart.scales[t].getPixelForValue(i))}o=(r=e-P)-M,h=t.left,d=t.right}let C=B(p.ticks.maxTicksLimit,w),D=Math.max(1,Math.ceil(w/C));for(i=0;io+1e-6)))return l}(this,i,_))&&(n=t7(g,s,p),y?r=o=h=d=n:a=l=c=u=n,k.push({tx1:r,ty1:a,tx2:o,ty2:l,x1:h,y1:c,x2:d,y2:u,width:p,color:b,borderDash:v,borderDashOffset:w,tickWidth:M,tickColor:S,tickBorderDash:O,tickBorderDashOffset:P}))}return this._ticksLength=w,this._borderValue=e,k}_computeLabelItems(t){let e,i,s,n,r,a,o,l,h,c,d;let u=this.axis,f=this.options,{position:g,ticks:p}=f,m=this.isHorizontal(),b=this.ticks,{align:x,crossAlign:_,padding:y,mirror:v}=p,w=ss(f.grid),M=w+y,k=v?-y:M,S=-tv(this.labelRotation),O=[],P="middle";if("top"===g)r=this.bottom-k,a=this._getXAxisLabelAlignment();else if("bottom"===g)r=this.top+k,a=this._getXAxisLabelAlignment();else if("left"===g){let t=this._getYAxisLabelAlignment(w);a=t.textAlign,n=t.x}else if("right"===g){let t=this._getYAxisLabelAlignment(w);a=t.textAlign,n=t.x}else if("x"===u){if("center"===g)r=(t.top+t.bottom)/2+M;else if(N(g)){let t=Object.keys(g)[0],e=g[t];r=this.chart.scales[t].getPixelForValue(e)+M}a=this._getXAxisLabelAlignment()}else if("y"===u){if("center"===g)n=(t.left+t.right)/2-M;else if(N(g)){let t=Object.keys(g)[0],e=g[t];n=this.chart.scales[t].getPixelForValue(e)}a=this._getYAxisLabelAlignment(w).textAlign}"y"===u&&("start"===x?P="top":"end"===x&&(P="bottom"));let E=this._getLabelSizes();for(e=0,i=b.length;e0&&(l-=r/2)}t={left:l,top:o,width:r+s.width,height:n+s.height,color:u.backdropColor}}O.push({label:s,font:l,textOffset:d,options:{rotation:S,color:x,strokeColor:y,strokeWidth:w,textAlign:M,textBaseline:P,translation:[n,r],backdrop:t}})}return O}_getXAxisLabelAlignment(){let{position:t,ticks:e}=this.options,i=-tv(this.labelRotation);if(i)return"top"===t?"left":"right";let s="center";return"start"===e.align?s="left":"end"===e.align?s="right":"inner"===e.align&&(s="inner"),s}_getYAxisLabelAlignment(t){let e,i;let{position:s,ticks:{crossAlign:n,mirror:r,padding:a}}=this.options,o=this._getLabelSizes(),l=t+a,h=o.widest.width;return"left"===s?r?(i=this.right+a,"near"===n?e="left":"center"===n?(e="center",i+=h/2):(e="right",i+=h)):(i=this.right-l,"near"===n?e="right":"center"===n?(e="center",i-=h/2):(e="left",i=this.left)):"right"===s?r?(i=this.left+a,"near"===n?e="right":"center"===n?(e="center",i-=h/2):(e="left",i-=h)):(i=this.left+l,"near"===n?e="left":"center"===n?(e="center",i+=h/2):(e="right",i=this.right)):e="right",{textAlign:e,x:i}}_computeLabelArea(){if(this.options.ticks.mirror)return;let t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){let{ctx:t,options:{backgroundColor:e},left:i,top:s,width:n,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,n,r),t.restore())}getLineWidthForValue(t){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let i=this.ticks,s=i.findIndex(e=>e.value===t);if(s>=0){let t=e.setContext(this.getContext(s));return t.lineWidth}return 0}drawGrid(t){let e,i;let s=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t)),a=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(s.display)for(e=0,i=r.length;e{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){let e,i;let s=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];for(e=0,i=s.length;e{let s=i.split("."),n=s.pop(),r=[t].concat(s).join("."),a=e[i].split("."),o=a.pop(),l=a.join(".");t8.route(r,n,l,o)})}(e,t.defaultRoutes),t.descriptors&&t8.describe(e,t.descriptors)}(t,r,e),this.override&&t8.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){let e=this.items,i=t.id,s=this.scope;i in e&&delete e[i],s&&i in t8[s]&&(delete t8[s][i],this.override&&delete t2[i])}}var so=new class{constructor(){this.controllers=new sa(iu,"datasets",!0),this.elements=new sa(i6,"elements"),this.plugins=new sa(Object,"plugins"),this.scales=new sa(sr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(e=>{let s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):q(e,e=>{let s=i||this._getRegistryForType(e);this._exec(t,s,e)})})}_exec(t,e,i){let s=ts(t);U(i["before"+s],[],i),e[t](i),U(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;et.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function sh(t,e){let i=t8.datasets[t]||{},s=(e.datasets||{})[t]||{};return s.indexAxis||e.indexAxis||i.indexAxis||"x"}function sc(t){if("x"===t||"y"===t||"r"===t)return t}function sd(t,...e){if(sc(t))return t;for(let s of e){var i;let e=s.axis||("top"===(i=s.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.length>1&&sc(t[0].toLowerCase());if(e)return e}throw Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function su(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function sf(t){let e=t.options||(t.options={});e.plugins=B(e.plugins,{}),e.scales=function(t,e){let i=t2[t.type]||{scales:{}},s=e.scales||{},n=sh(t.type,e),r=Object.create(null);return Object.keys(s).forEach(e=>{let a=s[e];if(!N(a))return console.error(`Invalid scale configuration for scale: ${e}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);let o=sd(e,a,function(t,e){if(e.data&&e.data.datasets){let i=e.data.datasets.filter(e=>e.xAxisID===t||e.yAxisID===t);if(i.length)return su(t,"x",i[0])||su(t,"y",i[0])}return{}}(e,t),t8.scales[a.type]),l=i.scales||{};r[e]=Q(Object.create(null),[{axis:o},a,l[o],l[o===n?"_index_":"_value_"]])}),t.data.datasets.forEach(i=>{let n=i.type||t.type,a=i.indexAxis||sh(n,e),o=t2[n]||{},l=o.scales||{};Object.keys(l).forEach(t=>{let e;let n=(e=t,"_index_"===t?e=a:"_value_"===t&&(e="x"===a?"y":"x"),e),o=i[n+"AxisID"]||n;r[o]=r[o]||Object.create(null),Q(r[o],[{axis:n},s[o],l[t]])})}),Object.keys(r).forEach(t=>{let e=r[t];Q(e,[t8.scales[e.type],t8.scale])}),r}(t,e)}function sg(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}let sp=new Map,sm=new Set;function sb(t,e){let i=sp.get(t);return i||(i=e(),sp.set(t,i),sm.add(i)),i}let sx=(t,e,i)=>{let s=ti(e,i);void 0!==s&&t.add(s)};class s_{constructor(t){var e;this._config=((e=(e=t)||{}).data=sg(e.data),sf(e),e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=sg(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){let t=this._config;this.clearCache(),sf(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return sb(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return sb(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return sb(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){let e=t.id,i=this.type;return sb(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){let i=this._scopeCache,s=i.get(t);return(!s||e)&&(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){let{options:s,type:n}=this,r=this._cachedScopes(t,i),a=r.get(e);if(a)return a;let o=new Set;e.forEach(e=>{t&&(o.add(t),e.forEach(e=>sx(o,t,e))),e.forEach(t=>sx(o,s,t)),e.forEach(t=>sx(o,t2[n]||{},t)),e.forEach(t=>sx(o,t8,t)),e.forEach(t=>sx(o,t5,t))});let l=Array.from(o);return 0===l.length&&l.push(Object.create(null)),sm.has(e)&&r.set(e,l),l}chartOptionScopes(){let{options:t,type:e}=this;return[t,t2[e]||{},t8.datasets[e]||{},{type:e},t8,t5]}resolveNamedOptions(t,e,i,s=[""]){let n={$shared:!0},{resolver:r,subPrefixes:a}=sy(this._resolverCache,t,s),o=r;if(function(t,e){let{isScriptable:i,isIndexable:s}=ev(t);for(let n of e){let e=i(n),r=s(n),a=(r||e)&&t[n];if(e&&(tr(a)||sv(a))||r&&V(a))return!0}return!1}(r,e)){n.$shared=!1,i=tr(i)?i():i;let e=this.createResolver(t,i,a);o=ey(r,i,e)}for(let t of e)n[t]=o[t];return n}createResolver(t,e,i=[""],s){let{resolver:n}=sy(this._resolverCache,t,i);return N(e)?ey(n,e,void 0,s):n}}function sy(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));let n=i.join(),r=s.get(n);if(!r){let t=e_(e,i);r={resolver:t,subPrefixes:i.filter(t=>!t.toLowerCase().includes("hover"))},s.set(n,r)}return r}let sv=t=>N(t)&&Object.getOwnPropertyNames(t).some(e=>tr(t[e])),sw=["top","bottom","left","right","chartArea"];function sM(t,e){return"top"===t||"bottom"===t||-1===sw.indexOf(t)&&"x"===e}function sk(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function sS(t){let e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),U(i&&i.onComplete,[t],e)}function sO(t){let e=t.chart,i=e.options.animation;U(i&&i.onProgress,[t],e)}function sP(t){return eI()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}let sE={},sC=t=>{let e=sP(t);return Object.values(sE).filter(t=>t.canvas===e).pop()};function sD(t,e,i){return t.options.clip?t[i]:e[i]}class sT{static defaults=t8;static instances=sE;static overrides=t2;static registry=so;static version="4.4.2";static getChart=sC;static register(...t){so.add(...t),sL()}static unregister(...t){so.remove(...t),sL()}constructor(t,e){var i,s;let n;let r=this.config=new s_(e),a=sP(t),o=sC(a);if(o)throw Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");let l=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||(!eI()||"undefined"!=typeof OffscreenCanvas&&a instanceof OffscreenCanvas?iY:i8)),this.platform.updateConfig(r);let h=this.platform.acquireContext(a,l.aspectRatio),c=h&&h.canvas,d=c&&c.height,u=c&&c.width;if(this.id=F(),this.ctx=h,this.canvas=c,this.width=u,this.height=d,this._options=l,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new sl,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(i=t=>this.update(t),s=l.resizeDelay||0,function(...t){return s?(clearTimeout(n),n=setTimeout(i,s,t)):i.apply(this,t),s}),this._dataChanges=[],sE[this.id]=this,!h||!c){console.error("Failed to create chart: can't acquire context from the given item");return}e4.listen(this,"complete",sS),e4.listen(this,"progress",sO),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:s,_aspectRatio:n}=this;return z(t)?e&&n?n:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return so}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():eH(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return t9(this.canvas,this.ctx),this}stop(){return e4.stop(this),this}resize(t,e){e4.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){let i=this.options,s=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,e,n),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),o=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,eH(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),U(i.onResize,[this,r],this),this.attached&&this._doResize(o)&&this.render())}ensureScalesHaveIDs(){let t=this.options,e=t.scales||{};q(e,(t,e)=>{t.id=e})}buildOrUpdateScales(){let t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce((t,e)=>(t[e]=!1,t),{}),n=[];e&&(n=n.concat(Object.keys(e).map(t=>{let i=e[t],s=sd(t,i),n="r"===s,r="x"===s;return{options:i,dposition:n?"chartArea":r?"bottom":"left",dtype:n?"radialLinear":r?"category":"linear"}}))),q(n,e=>{let n=e.options,r=n.id,a=sd(r,n),o=B(n.type,e.dtype);(void 0===n.position||sM(n.position,a)!==sM(e.dposition))&&(n.position=e.dposition),s[r]=!0;let l=null;if(r in i&&i[r].type===o)l=i[r];else{let t=so.getScale(o);i[(l=new t({id:r,type:o,ctx:this.ctx,chart:this})).id]=l}l.init(n,t)}),q(s,(t,e)=>{t||delete i[e]}),q(i,t=>{iB.configure(this,t,t.options),iB.addBox(this,t)})}_updateMetasets(){let t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((t,e)=>t.index-e.index),i>e){for(let t=e;te.length&&delete this._stacks,t.forEach((t,i)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){let t,e;let i=[],s=this.data.datasets;for(this._removeUnreferencedMetasets(),t=0,e=s.length;t{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let e=this.config;e.update();let i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;let n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let t=0,e=this.data.datasets.length;t{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(sk("z","_idx"));let{_active:a,_lastEvent:o}=this;o?this._eventHandler(o,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){q(this.scales,t=>{iB.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);ta(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(let{method:i,start:s,count:n}of e){let e="_removeElements"===i?-n:n;!function(t,e,i){let s=Object.keys(t);for(let n of s){let s=+n;if(s>=e){let r=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=r)}}}(t,s,e)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let e=this.data.datasets.length,i=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),s=i(0);for(let t=1;tt.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;iB.update(this,this.width,this.height,t);let e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],q(this.boxes,t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let e=this.ctx,i=t._clip,s=!i.disabled,n=function(t,e){let{xScale:i,yScale:s}=t;return i&&s?{left:sD(i,e,"left"),right:sD(i,e,"right"),top:sD(s,e,"top"),bottom:sD(s,e,"bottom")}:e}(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(s&&es(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),s&&en(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return ei(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){let n=iA.modes[e];return"function"==typeof n?n(this,t,i,s):[]}getDatasetMeta(t){let e=this.data.datasets[t],i=this._metasets,s=i.filter(t=>t&&t._dataset===e).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=ex(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let e=this.data.datasets[t];if(!e)return!1;let i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){let i=this.getDatasetMeta(t);i.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){let s=i?"show":"hide",n=this.getDatasetMeta(t),r=n.controller._resolveAnimations(void 0,s);tn(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(n,{visible:i}),this.update(e=>e.datasetIndex===t?s:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){let e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),e4.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,i,s),t[i]=s},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};q(this.options.events,t=>i(t,s))}bindResponsiveEvents(){let t;this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,s=(t,s)=>{i.addEventListener(this,t,s),e[t]=s},n=(t,s)=>{e[t]&&(i.removeEventListener(this,t,s),delete e[t])},r=(t,e)=>{this.canvas&&this.resize(t,e)},a=()=>{n("attach",a),this.attached=!0,this.resize(),s("resize",r),s("detach",t)};t=()=>{this.attached=!1,n("resize",r),this._stop(),this._resize(0,0),s("attach",a)},i.isAttached(this.canvas)?a():t()}unbindEvents(){q(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},q(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){let s,n,r;let a=i?"set":"remove";for("dataset"===e&&this.getDatasetMeta(t[0].datasetIndex).controller["_"+a+"DatasetHoverStyle"](),n=0,r=t.length;n{let i=this.getDatasetMeta(t);if(!i)throw Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),s=!X(i,e);s&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter(e=>e.plugin.id===t).length}_updateHoverStyles(t,e,i){let s=this.options.hover,n=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),r=n(e,t),a=i?t:n(t,e);r.length&&this.updateHoverStyle(r,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){let i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;let n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){var s;let{_active:n=[],options:r}=this,a=this._getActiveElements(t,n,i,e),o="mouseup"===t.type||"click"===t.type||"contextmenu"===t.type,l=(s=this._lastEvent,i&&"mouseout"!==t.type?o?s:t:null);i&&(this._lastEvent=null,U(r.onHover,[t,a,this],this),o&&U(r.onClick,[t,a,this],this));let h=!X(a,n);return(h||e)&&(this._active=a,this._updateHoverStyles(a,n,e)),this._lastEvent=l,h}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;let n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,s)}}function sL(){return q(sT.instances,t=>t._plugins.invalidate())}function sA(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function sR(t,e,i,s,n,r){let{x:a,y:o,startAngle:l,pixelMargin:h,innerRadius:c}=e,d=Math.max(e.outerRadius+s+i-h,0),u=c>0?c+s+i+h:0,f=0,g=n-l;if(s){let t=((c>0?c-s:0)+(d>0?d-s:0))/2;f=(g-(0!==t?g*t/(t+s):g))/2}let p=(g-Math.max(.001,g*d-i/to)/d)/2,m=l+p+f,b=n-p-f,{outerStart:x,outerEnd:_,innerStart:y,innerEnd:v}=function(t,e,i,s){let n=eu(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),r=(i-e)/2,a=Math.min(r,s*e/2),o=t=>tE(t,0,Math.min(r,(i-Math.min(r,t))*s/2));return{outerStart:o(n.outerStart),outerEnd:o(n.outerEnd),innerStart:tE(n.innerStart,0,a),innerEnd:tE(n.innerEnd,0,a)}}(e,u,d,b-m),w=d-x,M=d-_,k=m+x/w,S=b-_/M,O=u+y,P=u+v,E=m+y/O,C=b-v/P;if(t.beginPath(),r){let e=(k+S)/2;if(t.arc(a,o,d,k,e),t.arc(a,o,d,e,S),_>0){let e=sA(M,S,a,o);t.arc(e.x,e.y,_,S,b+tu)}let i=sA(P,b,a,o);if(t.lineTo(i.x,i.y),v>0){let e=sA(P,C,a,o);t.arc(e.x,e.y,v,b+tu,C+Math.PI)}let s=(b-v/u+(m+y/u))/2;if(t.arc(a,o,u,b-v/u,s,!0),t.arc(a,o,u,s,m+y/u,!0),y>0){let e=sA(O,E,a,o);t.arc(e.x,e.y,y,E+Math.PI,m-tu)}let n=sA(w,m,a,o);if(t.lineTo(n.x,n.y),x>0){let e=sA(w,k,a,o);t.arc(e.x,e.y,x,m-tu,k)}}else t.moveTo(a,o),t.lineTo(Math.cos(k)*d+a,Math.sin(k)*d+o),t.lineTo(Math.cos(S)*d+a,Math.sin(S)*d+o);t.closePath()}class sI extends i6{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){let s=this.getProps(["x","y"],i),{angle:n,distance:r}=tM(s,{x:t,y:e}),{startAngle:a,endAngle:o,innerRadius:l,outerRadius:h,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=(this.options.spacing+this.options.borderWidth)/2,u=B(c,o-a),f=u>=tl||tP(n,a,o),g=tC(r,l+d,h+d);return f&&g}getCenterPoint(t){let{x:e,y:i,startAngle:s,endAngle:n,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:o,spacing:l}=this.options,h=(s+n)/2,c=(r+a+l+o)/2;return{x:e+Math.cos(h)*c,y:i+Math.sin(h)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){let{options:e,circumference:i}=this,s=(e.offset||0)/4,n=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>tl?Math.floor(i/tl):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*s,Math.sin(a)*s);let o=s*(1-Math.sin(Math.min(to,i||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,i,s,n){let{fullCircles:r,startAngle:a,circumference:o}=e,l=e.endAngle;if(r){sR(t,e,i,s,l,n);for(let e=0;en?(h=n/l,t.arc(r,a,l,i+h,s-h,!0)):t.arc(r,a,n,i+tu,s-tu),t.closePath(),t.clip()}(t,e,g),r||(sR(t,e,i,s,g,n),t.stroke())}(t,this,o,n,r),t.restore()}}function sj(t,e,i=e){t.lineCap=B(i.borderCapStyle,e.borderCapStyle),t.setLineDash(B(i.borderDash,e.borderDash)),t.lineDashOffset=B(i.borderDashOffset,e.borderDashOffset),t.lineJoin=B(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=B(i.borderWidth,e.borderWidth),t.strokeStyle=B(i.borderColor,e.borderColor)}function sF(t,e,i){t.lineTo(i.x,i.y)}function sz(t,e,i={}){let s=t.length,{start:n=0,end:r=s-1}=i,{start:a,end:o}=e,l=Math.max(n,a),h=Math.min(r,o);return{count:s,start:l,loop:e.loop,ilen:ho&&r>o)?s+h-l:h-l}}function sV(t,e,i,s){let n,r,a;let{points:o,options:l}=e,{count:h,start:c,loop:d,ilen:u}=sz(o,i,s),f=l.stepped?er:l.tension||"monotone"===l.cubicInterpolationMode?ea:sF,{move:g=!0,reverse:p}=s||{};for(n=0;n<=u;++n)(r=o[(c+(p?u-n:n))%h]).skip||(g?(t.moveTo(r.x,r.y),g=!1):f(t,a,r,p,l.stepped),a=r);return d&&f(t,a,r=o[(c+(p?u:0))%h],p,l.stepped),!!d}function sN(t,e,i,s){let n,r,a,o,l,h;let c=e.points,{count:d,start:u,ilen:f}=sz(c,i,s),{move:g=!0,reverse:p}=s||{},m=0,b=0,x=t=>(u+(p?f-t:t))%d,_=()=>{o!==l&&(t.lineTo(m,l),t.lineTo(m,o),t.lineTo(m,h))};for(g&&(r=c[x(0)],t.moveTo(r.x,r.y)),n=0;n<=f;++n){if((r=c[x(n)]).skip)continue;let e=r.x,i=r.y,s=0|e;s===a?(il&&(l=i),m=(b*m+e)/++b):(_(),t.lineTo(e,i),a=s,b=0,o=l=i),h=i}_()}function sW(t){let e=t.options,i=e.borderDash&&e.borderDash.length,s=!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!i;return s?sN:sV}let s$="function"==typeof Path2D;class sB extends i6{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){let i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){let s=i.spanGaps?this._loop:this._fullLoop;!function(t,e,i,s,n){let r,a,o,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){let i,s,n;let r=eA(e),a=t.length,o=Array(a).fill(0),l=Array(a),h=eL(t,0);for(i=0;in&&t[r%e].skip;)r--;return{start:n,end:r%=e}}(i,n,r,s);if(!0===s)return e5(t,[{start:a,end:o,loop:r}],i,e);let l=!!t._fullLoop&&0===a&&o===n-1;return e5(t,function(t,e,i,s){let n;let r=t.length,a=[],o=e,l=t[e];for(n=e+1;n<=i;++n){let i=t[n%r];i.skip||i.stop?l.skip||(s=!1,a.push({start:e%r,end:(n-1)%r,loop:s}),e=o=i.stop?n:null):(o=n,l.skip&&(e=n)),l=i}return null!==o&&a.push({start:e%r,end:o%r,loop:s}),a}(i,a,ot;e--){let t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function sQ(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"].map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function s0(t,e,i,s){let n=e.interpolate(i,s);n&&t.lineTo(n.x,n.y)}let s1=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}},s2=(t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class s5 extends i6{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let t=this.options.labels||{},e=U(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,i)=>t.sort(e,i,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let t,e;let{options:i,ctx:s}=this;if(!i.display){this.width=this.height=0;return}let n=i.labels,r=em(n.font),a=r.size,o=this._computeTitleHeight(),{boxWidth:l,itemHeight:h}=s1(n,a);s.font=r.string,this.isHorizontal()?(t=this.maxWidth,e=this._fitRows(o,a,l,h)+10):(e=this.maxHeight,t=this._fitCols(o,r,l,h)+10),this.width=Math.min(t,i.maxWidth||this.maxWidth),this.height=Math.min(e,i.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){let{ctx:n,maxWidth:r,options:{labels:{padding:a}}}=this,o=this.legendHitBoxes=[],l=this.lineWidths=[0],h=s+a,c=t;n.textAlign="left",n.textBaseline="middle";let d=-1,u=-h;return this.legendItems.forEach((t,f)=>{let g=i+e/2+n.measureText(t.text).width;(0===f||l[l.length-1]+g+2*a>r)&&(c+=h,l[l.length-(f>0?0:1)]=0,u+=h,d++),o[f]={left:0,top:u,row:d,width:g,height:s},l[l.length-1]+=g+a}),c}_fitCols(t,e,i,s){let{ctx:n,maxHeight:r,options:{labels:{padding:a}}}=this,o=this.legendHitBoxes=[],l=this.columnSizes=[],h=r-t,c=a,d=0,u=0,f=0,g=0;return this.legendItems.forEach((t,r)=>{let{itemWidth:p,itemHeight:m}=function(t,e,i,s,n){var r;let a,o;let l=((a=s.text)&&"string"!=typeof a&&(a=a.reduce((t,e)=>t.length>e.length?t:e)),t+e.size/2+i.measureText(a).width),h=(r=e.lineHeight,o=n,"string"!=typeof s.text&&(o=s3(s,r)),o);return{itemWidth:l,itemHeight:h}}(i,e,n,t,s);r>0&&u+m+2*a>h&&(c+=d+a,l.push({width:d,height:u}),f+=d+a,g++,d=u=0),o[r]={left:f,top:u,col:g,width:p,height:m},d=Math.max(d,p),u+=m+a}),c+=d,l.push({width:d,height:u}),c}adjustHitBoxes(){if(!this.options.display)return;let t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:n}}=this,r=eG(n,this.left,this.width);if(this.isHorizontal()){let n=0,a=tV(i,this.left+s,this.right-this.lineWidths[n]);for(let o of e)n!==o.row&&(n=o.row,a=tV(i,this.left+s,this.right-this.lineWidths[n])),o.top+=this.top+t+s,o.left=r.leftForLtr(r.x(a),o.width),a+=o.width+s}else{let n=0,a=tV(i,this.top+t+s,this.bottom-this.columnSizes[n].height);for(let o of e)o.col!==n&&(n=o.col,a=tV(i,this.top+t+s,this.bottom-this.columnSizes[n].height)),o.top=a,o.left+=this.left+s,o.left=r.leftForLtr(r.x(o.left),o.width),a+=o.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){let t=this.ctx;es(t,this),this._draw(),en(t)}}_draw(){let t;let{options:e,columnSizes:i,lineWidths:s,ctx:n}=this,{align:r,labels:a}=e,o=t8.color,l=eG(e.rtl,this.left,this.width),h=em(a.font),{padding:c}=a,d=h.size,u=d/2;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=h.string;let{boxWidth:f,boxHeight:g,itemHeight:p}=s1(a,d),m=function(t,e,i){if(isNaN(f)||f<=0||isNaN(g)||g<0)return;n.save();let s=B(i.lineWidth,1);if(n.fillStyle=B(i.fillStyle,o),n.lineCap=B(i.lineCap,"butt"),n.lineDashOffset=B(i.lineDashOffset,0),n.lineJoin=B(i.lineJoin,"miter"),n.lineWidth=s,n.strokeStyle=B(i.strokeStyle,o),n.setLineDash(B(i.lineDash,[])),a.usePointStyle){let r={radius:g*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:s},o=l.xPlus(t,f/2);ee(n,r,o,e+u,a.pointStyleWidth&&f)}else{let r=e+Math.max((d-g)/2,0),a=l.leftForLtr(t,f),o=eg(i.borderRadius);n.beginPath(),Object.values(o).some(t=>0!==t)?el(n,{x:a,y:r,w:f,h:g,radius:o}):n.rect(a,r,f,g),n.fill(),0!==s&&n.stroke()}n.restore()},b=function(t,e,i){eo(n,i.text,t,e+p/2,h,{strikethrough:i.hidden,textAlign:l.textAlign(i.textAlign)})},x=this.isHorizontal(),_=this._computeTitleHeight();t=x?{x:tV(r,this.left+c,this.right-s[0]),y:this.top+c+_,line:0}:{x:this.left+c,y:tV(r,this.top+_+c,this.bottom-i[0].height),line:0},eK(this.ctx,e.textDirection);let y=p+c;this.legendItems.forEach((o,d)=>{n.strokeStyle=o.fontColor,n.fillStyle=o.fontColor;let g=n.measureText(o.text).width,p=l.textAlign(o.textAlign||(o.textAlign=a.textAlign)),v=f+u+g,w=t.x,M=t.y;l.setWidth(this.width),x?d>0&&w+v+c>this.right&&(M=t.y+=y,t.line++,w=t.x=tV(r,this.left+c,this.right-s[t.line])):d>0&&M+y>this.bottom&&(w=t.x=w+i[t.line].width+c,t.line++,M=t.y=tV(r,this.top+_+c,this.bottom-i[t.line].height));let k=l.x(w);if(m(k,M,o),w=tN(p,w+f+u,x?w+v:this.right,e.rtl),b(l.x(w),M,o),x)t.x+=v+c;else if("string"!=typeof o.text){let e=h.lineHeight;t.y+=s3(o,e)+c}else t.y+=y}),eJ(this.ctx,e.textDirection)}drawTitle(){let t;let e=this.options,i=e.title,s=em(i.font),n=ep(i.padding);if(!i.display)return;let r=eG(e.rtl,this.left,this.width),a=this.ctx,o=i.position,l=s.size/2,h=n.top+l,c=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),t=this.top+h,c=tV(e.align,c,this.right-d);else{let i=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);t=h+tV(e.align,this.top,this.bottom-i-e.labels.padding-this._computeTitleHeight())}let u=tV(o,c,c+d);a.textAlign=r.textAlign(tz(o)),a.textBaseline="middle",a.strokeStyle=i.color,a.fillStyle=i.color,a.font=s.string,eo(a,i.text,u,t,s)}_computeTitleHeight(){let t=this.options.title,e=em(t.font),i=ep(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,n;if(tC(t,this.left,this.right)&&tC(e,this.top,this.bottom)){for(i=0,n=this.legendHitBoxes;it+e)/s.size;return{x:a,y:n/r}},nearest(t,e){let i,s,n;if(!t.length)return!1;let r=e.x,a=e.y,o=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i-1?t.split("\n"):t}function s9(t,e){let i=t.chart.ctx,{body:s,footer:n,title:r}=t,{boxWidth:a,boxHeight:o}=e,l=em(e.bodyFont),h=em(e.titleFont),c=em(e.footerFont),d=r.length,u=n.length,f=s.length,g=ep(e.padding),p=g.height,m=0,b=s.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(b+=t.beforeBody.length+t.afterBody.length,d&&(p+=d*h.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),b){let t=e.displayColors?Math.max(o,l.lineHeight):l.lineHeight;p+=f*t+(b-f)*l.lineHeight+(b-1)*e.bodySpacing}u&&(p+=e.footerMarginTop+u*c.lineHeight+(u-1)*e.footerSpacing);let x=0,_=function(t){m=Math.max(m,i.measureText(t).width+x)};return i.save(),i.font=h.string,q(t.title,_),i.font=l.string,q(t.beforeBody.concat(t.afterBody),_),x=e.displayColors?a+2+e.boxPadding:0,q(s,t=>{q(t.before,_),q(t.lines,_),q(t.after,_)}),x=0,i.font=c.string,q(t.footer,_),i.restore(),{width:m+=g.width,height:p}}function nt(t,e,i){let s=i.yAlign||e.yAlign||function(t,e){let{y:i,height:s}=e;return it.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||function(t,e,i,s){let{x:n,width:r}=i,{width:a,chartArea:{left:o,right:l}}=t,h="center";return"center"===s?h=n<=(o+l)/2?"left":"right":n<=r/2?h="left":n>=a-r/2&&(h="right"),function(t,e,i,s){let{x:n,width:r}=s,a=i.caretSize+i.caretPadding;if("left"===t&&n+r+a>e.width||"right"===t&&n-r-a<0)return!0}(h,t,e,i)&&(h="center"),h}(t,e,i,s),yAlign:s}}function ne(t,e,i,s){let{caretSize:n,caretPadding:r,cornerRadius:a}=t,{xAlign:o,yAlign:l}=i,h=n+r,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:f}=eg(a),g=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,o),p=function(t,e,i){let{y:s,height:n}=t;return"top"===e?s+=i:"bottom"===e?s-=n+i:s-=n/2,s}(e,l,h);return"center"===l?"left"===o?g+=h:"right"===o&&(g-=h):"left"===o?g-=Math.max(c,u)+n:"right"===o&&(g+=Math.max(d,f)+n),{x:tE(g,0,s.width-e.width),y:tE(p,0,s.height-e.height)}}function ni(t,e,i){let s=ep(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function ns(t,e){let i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}let nn={beforeTitle:j,title(t){if(t.length>0){let e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex{let e={before:[],lines:[],after:[]},n=ns(i,t);s6(e.before,s7(nr(n,"beforeLabel",this,t))),s6(e.lines,nr(n,"label",this,t)),s6(e.after,s7(nr(n,"afterLabel",this,t))),s.push(e)}),s}getAfterBody(t,e){return s6([],s7(nr(e.callbacks,"afterBody",this,t)))}getFooter(t,e){let{callbacks:i}=e,s=nr(i,"beforeFooter",this,t),n=nr(i,"footer",this,t),r=nr(i,"afterFooter",this,t),a=[];return a=s6(a,s7(s)),a=s6(a,s7(n)),a=s6(a,s7(r))}_createItems(t){let e,i;let s=this._active,n=this.chart.data,r=[],a=[],o=[],l=[];for(e=0,i=s.length;et.filter(e,i,s,n))),t.itemSort&&(l=l.sort((e,i)=>t.itemSort(e,i,n))),q(l,e=>{let i=ns(t.callbacks,e);r.push(nr(i,"labelColor",this,e)),a.push(nr(i,"labelPointStyle",this,e)),o.push(nr(i,"labelTextColor",this,e))}),this.labelColors=r,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){let i;let s=this.options.setContext(this.getContext()),n=this._active,r=[];if(n.length){let t=s8[s.position].call(this,n,this._eventPosition);r=this._createItems(s),this.title=this.getTitle(r,s),this.beforeBody=this.getBeforeBody(r,s),this.body=this.getBody(r,s),this.afterBody=this.getAfterBody(r,s),this.footer=this.getFooter(r,s);let e=this._size=s9(this,s),a=Object.assign({},t,e),o=nt(this.chart,s,a),l=ne(s,a,o,this.chart);this.xAlign=o.xAlign,this.yAlign=o.yAlign,i={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(i={opacity:0});this._tooltipItems=r,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){let n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){let s,n,r,a,o,l;let{xAlign:h,yAlign:c}=this,{caretSize:d,cornerRadius:u}=i,{topLeft:f,topRight:g,bottomLeft:p,bottomRight:m}=eg(u),{x:b,y:x}=t,{width:_,height:y}=e;return"center"===c?(o=x+y/2,"left"===h?(n=(s=b)-d,a=o+d,l=o-d):(n=(s=b+_)+d,a=o-d,l=o+d),r=s):(n="left"===h?b+Math.max(f,p)+d:"right"===h?b+_-Math.max(g,m)-d:this.caretX,"top"===c?(o=(a=x)-d,s=n-d,r=n+d):(o=(a=x+y)+d,s=n+d,r=n-d),l=a),{x1:s,x2:n,x3:r,y1:a,y2:o,y3:l}}drawTitle(t,e,i){let s,n,r;let a=this.title,o=a.length;if(o){let l=eG(i.rtl,this.x,this.width);for(r=0,t.x=ni(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",s=em(i.titleFont),n=i.titleSpacing,e.fillStyle=i.titleColor,e.font=s.string;r0!==t)?(t.beginPath(),t.fillStyle=n.multiKeyBackground,el(t,{x:e,y:f,w:l,h:o,radius:a}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),el(t,{x:i,y:f+1,w:l-2,h:o-2,radius:a}),t.fill()):(t.fillStyle=n.multiKeyBackground,t.fillRect(e,f,l,o),t.strokeRect(e,f,l,o),t.fillStyle=r.backgroundColor,t.fillRect(i,f+1,l-2,o-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){let s,n,r,a,o,l,h;let{body:c}=this,{bodySpacing:d,bodyAlign:u,displayColors:f,boxHeight:g,boxWidth:p,boxPadding:m}=i,b=em(i.bodyFont),x=b.lineHeight,_=0,y=eG(i.rtl,this.x,this.width),v=function(i){e.fillText(i,y.x(t.x+_),t.y+x/2),t.y+=x+d},w=y.textAlign(u);for(e.textAlign=u,e.textBaseline="middle",e.font=b.string,t.x=ni(this,w,i),e.fillStyle=i.bodyColor,q(this.beforeBody,v),_=f&&"right"!==w?"center"===u?p/2+m:p+2+m:0,a=0,l=c.length;a0&&e.stroke()}_updateAnimationTarget(t){let e=this.chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){let i=s8[t.position].call(this,this._active,this._eventPosition);if(!i)return;let r=this._size=s9(this,t),a=Object.assign({},i,this._size),o=nt(e,t,a),l=ne(t,a,o,e);(s._to!==l.x||n._to!==l.y)&&(this.xAlign=o.xAlign,this.yAlign=o.yAlign,this.width=r.width,this.height=r.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){let e=this.options.setContext(this.getContext()),i=this.opacity;if(!i)return;this._updateAnimationTarget(e);let s={width:this.width,height:this.height},n={x:this.x,y:this.y};i=.001>Math.abs(i)?0:i;let r=ep(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(n,t,s,e),eK(t,e.textDirection),n.y+=r.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),eJ(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){let i=this._active,s=t.map(({datasetIndex:t,index:e})=>{let i=this.chart.getDatasetMeta(t);if(!i)throw Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),n=!X(i,s),r=this._positionChanged(s,e);(n||r)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let s=this.options,n=this._active||[],r=this._getActiveElements(t,n,e,i),a=this._positionChanged(r,t),o=e||!X(r,n)||a;return o&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),o}_getActiveElements(t,e,i,s){let n=this.options;if("mouseout"===t.type)return[];if(!s)return e.filter(t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index));let r=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&r.reverse(),r}_positionChanged(t,e){let{caretX:i,caretY:s,options:n}=this,r=s8[n.position].call(this,t,e);return!1!==r&&(i!==r.x||s!==r.y)}}let no=(t,e,i,s)=>("string"==typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i),nl=(t,e)=>null===t?null:tE(Math.round(t),0,e);function nh(t){let e=this.getLabels();return t>=0&&ts=e?s:t,a=t=>n=i?n:t;if(t){let t=tm(s),e=tm(n);t<0&&e<0?a(0):t>0&&e>0&&r(0)}if(s===n){let e=0===n?1:Math.abs(.05*n);a(n+e),t||r(s-e)}this.min=s,this.max=n}getTickLimit(){let t;let e=this.options.ticks,{maxTicksLimit:i,stepSize:s}=e;return s?(t=Math.ceil(this.max/s)-Math.floor(this.min/s)+1)>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3):(t=this.computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let t=this.options,e=t.ticks,i=this.getTickLimit();i=Math.max(2,i);let s={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},n=this._range||this,r=function(t,e){let i,s,n,r;let a=[],{bounds:o,step:l,min:h,max:c,precision:d,count:u,maxTicks:f,maxDigits:g,includeBounds:p}=t,m=l||1,b=f-1,{min:x,max:_}=e,y=!z(h),v=!z(c),w=!z(u),M=(_-x)/(g+1),k=tx((_-x)/b/m)*m;if(k<1e-14&&!y&&!v)return[{value:x},{value:_}];(r=Math.ceil(_/k)-Math.floor(x/k))>b&&(k=tx(r*k/b/m)*m),z(d)||(k=Math.ceil(k*(i=Math.pow(10,d)))/i),"ticks"===o?(s=Math.floor(x/k)*k,n=Math.ceil(_/k)*k):(s=x,n=_),y&&v&&l&&function(t,e){let i=Math.round(t);return i-e<=t&&i+e>=t}((c-h)/l,k/1e3)?(r=Math.round(Math.min((c-h)/k,f)),k=(c-h)/r,s=h,n=c):w?(s=y?h:s,k=((n=v?c:n)-s)/(r=u-1)):r=tb(r=(n-s)/k,Math.round(r),k/1e3)?Math.round(r):Math.ceil(r);let S=Math.max(tw(k),tw(s));i=Math.pow(10,z(d)?S:d),s=Math.round(s*i)/i,n=Math.round(n*i)/i;let O=0;for(y&&(p&&s!==h?(a.push({value:h}),sc)break;a.push({value:t})}return v&&p&&n!==c?a.length&&tb(a[a.length-1].value,c,nc(c,M,t))?a[a.length-1].value=c:a.push({value:c}):v&&n!==c||a.push({value:n}),a}(s,n);return"ticks"===t.bounds&&ty(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let t=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){let s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return tQ(t,this.chart.options.locale,this.options.ticks.format)}}class nu extends nd{static id="linear";static defaults={ticks:{callback:t1.formatters.numeric}};determineDataLimits(){let{min:t,max:e}=this.getMinMax(!0);this.min=W(t)?t:0,this.max=W(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let t=this.isHorizontal(),e=t?this.width:this.height,i=tv(this.options.ticks.minRotation),s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/((t?Math.sin(i):Math.cos(i))||.001)))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}let nf=t=>Math.floor(tp(t)),ng=(t,e)=>Math.pow(10,nf(t)+e);function np(t){let e=t/Math.pow(10,nf(t));return 1===e}function nm(t,e,i){let s=Math.pow(10,i);return Math.ceil(e/s)-Math.floor(t/s)}class nb extends sr{static id="logarithmic";static defaults={ticks:{callback:t1.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){let i=nd.prototype.parse.apply(this,[t,e]);if(0===i){this._zero=!0;return}return W(i)&&i>0?i:null}determineDataLimits(){let{min:t,max:e}=this.getMinMax(!0);this.min=W(t)?Math.max(0,t):null,this.max=W(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!W(this._userMin)&&(this.min=t===ng(this.min,0)?ng(this.min,-1):ng(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:t,maxDefined:e}=this.getUserBounds(),i=this.min,s=this.max,n=e=>i=t?i:e,r=t=>s=e?s:t;i===s&&(i<=0?(n(1),r(10)):(n(ng(i,-1)),r(ng(s,1)))),i<=0&&n(ng(s,-1)),s<=0&&r(ng(i,1)),this.min=i,this.max=s}buildTicks(){let t=this.options,e={min:this._userMin,max:this._userMax},i=function(t,{min:e,max:i}){e=$(t.min,e);let s=[],n=nf(e),r=function(t,e){let i=nf(e-t);for(;nm(t,e,i)>10;)i++;for(;10>nm(t,e,i);)i--;return Math.min(i,nf(t))}(e,i),a=r<0?Math.pow(10,Math.abs(r)):1,o=Math.pow(10,r),l=n>r?Math.pow(10,n):0,h=Math.round((e-l)*a)/a,c=Math.floor((e-l)/o/10)*o*10,d=Math.floor((h-c)/Math.pow(10,r)),u=$(t.min,Math.round((l+c+d*Math.pow(10,r))*a)/a);for(;u=10?d=d<15?15:20:d++,d>=20&&(d=2,a=++r>=0?1:a),u=Math.round((l+c+d*Math.pow(10,r))*a)/a;let f=$(t.max,u);return s.push({value:f,major:np(f),significand:d}),s}(e,this);return"ticks"===t.bounds&&ty(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return void 0===t?"0":tQ(t,this.chart.options.locale,this.options.ticks.format)}configure(){let t=this.min;super.configure(),this._startValue=tp(t),this._valueRange=tp(this.max)-tp(t)}getPixelForValue(t){return((void 0===t||0===t)&&(t=this.min),null===t||isNaN(t))?NaN:this.getPixelForDecimal(t===this.min?0:(tp(t)-this._startValue)/this._valueRange)}getValueForPixel(t){let e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function nx(t){let e=t.ticks;if(e.display&&t.display){let t=ep(e.backdropPadding);return B(e.font&&e.font.size,t8.font.size)+t.height}return 0}function n_(t,e,i,s,n){return t===s||t===n?{start:e-i/2,end:e+i/2}:tn?{start:e-i,end:e}:{start:e,end:e+i}}function ny(t,e,i,s){let{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,tl);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let r=1;rt,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let t=this._padding=ep(nx(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){let{min:t,max:e}=this.getMinMax(!1);this.min=W(t)&&!isNaN(t)?t:0,this.max=W(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/nx(this.options))}generateTickLabels(t){nd.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{let i=U(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){let t=this.options;t.display&&t.pointLabels.display?function(t){let e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),s=[],n=[],r=t._pointLabels.length,a=t.options.pointLabels,o=a.centerPointLabels?to/r:0;for(let c=0;ci.length){for(n=0;ne.r&&(o=(s.end-e.r)/r,t.r=Math.max(t.r,e.r+o)),n.starte.b&&(l=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}(i,e,g,m,b)}t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){let s;let n=[],r=t._pointLabels.length,a=t.options,{centerPointLabels:o,display:l}=a.pointLabels,h={extra:nx(a)/2,additionalAngle:o?to/r:0};for(let a=0;a270||f<90)&&(s-=n),s),p=0===f||180===f?"center":f<180?"left":"right",m=(r=u.x,a=d.w,"right"===p?r-=a:"center"===p&&(r-=a/2),r);return{visible:!0,x:u.x,y:g,textAlign:p,left:m,top:g,right:m+d.w,bottom:g+d.h}}(t,a,h);n.push(r),"auto"===l&&(r.visible=function(t,e){if(!e)return!0;let{left:i,top:s,right:n,bottom:r}=t,a=ei({x:i,y:s},e)||ei({x:i,y:r},e)||ei({x:n,y:s},e)||ei({x:n,y:r},e);return!a}(r,s),r.visible&&(s=r))}return n}(t,s,n)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){let e=tl/(this._pointLabels.length||1),i=this.options.startAngle||0;return tO(t*e+tv(i))}getDistanceFromCenterForValue(t){if(z(t))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(z(t))return NaN;let e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){let e=this._pointLabels||[];if(t>=0&&t=0;n--){let e=t._pointLabelItems[n];if(!e.visible)continue;let r=s.setContext(t.getPointLabelContext(n));!function(t,e,i){let{left:s,top:n,right:r,bottom:a}=i,{backdropColor:o}=e;if(!z(o)){let i=eg(e.borderRadius),l=ep(e.backdropPadding);t.fillStyle=o;let h=s-l.left,c=n-l.top,d=r-s+l.width,u=a-n+l.height;Object.values(i).some(t=>0!==t)?(t.beginPath(),el(t,{x:h,y:c,w:d,h:u,radius:i}),t.fill()):t.fillRect(h,c,d,u)}}(i,r,e);let a=em(r.font),{x:o,y:l,textAlign:h}=e;eo(i,t._pointLabels[n],o,l+a.lineHeight/2,a,{color:r.color,textAlign:h,textBaseline:"middle"})}}(this,l),a.display&&this.ticks.forEach((t,i)=>{if(0!==i||0===i&&this.min<0){e=this.getDistanceFromCenterForValue(t.value);let s=this.getContext(i),n=a.setContext(s),r=o.setContext(s);!function(t,e,i,s,n){let r=t.ctx,a=e.circular,{color:o,lineWidth:l}=e;(a||s)&&o&&l&&!(i<0)&&(r.save(),r.strokeStyle=o,r.lineWidth=l,r.setLineDash(n.dash),r.lineDashOffset=n.dashOffset,r.beginPath(),ny(t,i,a,s),r.closePath(),r.stroke(),r.restore())}(this,n,e,l,r)}}),r.display){for(s.save(),t=l-1;t>=0;t--){let a=r.setContext(this.getPointLabelContext(t)),{color:o,lineWidth:l}=a;l&&o&&(s.lineWidth=l,s.strokeStyle=o,s.setLineDash(a.borderDash),s.lineDashOffset=a.borderDashOffset,e=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),i=this.getPointPosition(t,e),s.beginPath(),s.moveTo(this.xCenter,this.yCenter),s.lineTo(i.x,i.y),s.stroke())}s.restore()}}drawBorder(){}drawLabels(){let t,e;let i=this.ctx,s=this.options,n=s.ticks;if(!n.display)return;let r=this.getIndexAngle(0);i.save(),i.translate(this.xCenter,this.yCenter),i.rotate(r),i.textAlign="center",i.textBaseline="middle",this.ticks.forEach((r,a)=>{if(0===a&&this.min>=0&&!s.reverse)return;let o=n.setContext(this.getContext(a)),l=em(o.font);if(t=this.getDistanceFromCenterForValue(this.ticks[a].value),o.showLabelBackdrop){i.font=l.string,e=i.measureText(r.label).width,i.fillStyle=o.backdropColor;let s=ep(o.backdropPadding);i.fillRect(-e/2-s.left,-t-l.size/2-s.top,e+s.width,l.size+s.height)}eo(i,r.label,0,-t,l,{color:o.color,strokeColor:o.textStrokeColor,strokeWidth:o.textStrokeWidth})}),i.restore()}drawTitle(){}}let nw={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},nM=Object.keys(nw);function nk(t,e){return t-e}function nS(t,e){if(z(e))return null;let i=t._adapter,{parser:s,round:n,isoWeekday:r}=t._parseOpts,a=e;return("function"==typeof s&&(a=s(a)),W(a)||(a="string"==typeof s?i.parse(a,s):i.parse(a)),null===a)?null:(n&&(a="week"===n&&(t_(r)||!0===r)?i.startOf(a,"isoWeek",r):i.startOf(a,n)),+a)}function nO(t,e,i,s){let n=nM.length;for(let r=nM.indexOf(t);r=e?i[s]:i[n];t[r]=!0}}else t[e]=!0}function nE(t,e,i){let s,n;let r=[],a={},o=e.length;for(s=0;s=0&&(e[r].major=!0);return e}(t,r,a,i):r}class nC extends sr{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){let i=t.time||(t.time={}),s=this._adapter=new iE._date(t.adapters.date);s.init(e),Q(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:nS(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,e=this._adapter,i=t.time.unit||"day",{min:s,max:n,minDefined:r,maxDefined:a}=this.getUserBounds();function o(t){r||isNaN(t.min)||(s=Math.min(s,t.min)),a||isNaN(t.max)||(n=Math.max(n,t.max))}r&&a||(o(this._getLabelBounds()),("ticks"!==t.bounds||"labels"!==t.ticks.source)&&o(this.getMinMax(!1))),s=W(s)&&!isNaN(s)?s:+e.startOf(Date.now(),i),n=W(n)&&!isNaN(n)?n:+e.endOf(Date.now(),i)+1,this.min=Math.min(s,n-1),this.max=Math.max(s+1,n)}_getLabelBounds(){let t=this.getLabelTimestamps(),e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){let t=this.options,e=t.time,i=t.ticks,s="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);let n=this.min,r=this.max,a=function(t,e,i){let s=0,n=t.length;for(;ss&&t[n-1]>i;)n--;return s>0||n=nM.indexOf(i);r--){let i=nM[r];if(nw[i].common&&t._adapter.diff(n,s,i)>=e-1)return i}return nM[i?nM.indexOf(i):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=nM.indexOf(t)+1,i=nM.length;e+t.value))}initOffsets(t=[]){let e,i,s=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),n=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);let r=t.length<3?.5:.25;s=tE(s,0,r),n=tE(n,0,r),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){let t,e;let i=this._adapter,s=this.min,n=this.max,r=this.options,a=r.time,o=a.unit||nO(a.minUnit,s,n,this._getLabelCapacity(s)),l=B(r.ticks.stepSize,1),h="week"===o&&a.isoWeekday,c=t_(h)||!0===h,d={},u=s;if(c&&(u=+i.startOf(u,"isoWeek",h)),u=+i.startOf(u,c?"day":o),i.diff(n,s,o)>1e5*l)throw Error(s+" and "+n+" are too far apart with stepSize of "+l+" "+o);let f="data"===r.ticks.source&&this.getDataTimestamps();for(t=u,e=0;t+t)}getLabelForValue(t){let e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){let i=this.options,s=i.time.displayFormats,n=this._unit,r=e||s[n];return this._adapter.format(t,r)}_tickFormatFunction(t,e,i,s){let n=this.options,r=n.ticks.callback;if(r)return U(r,[t,e,i],this);let a=n.time.displayFormats,o=this._unit,l=this._majorUnit,h=o&&a[o],c=l&&a[l],d=i[e],u=l&&c&&d&&d.major;return this._adapter.format(t,s||(u?c:h))}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;let s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t=t[o].pos&&e<=t[l].pos&&({lo:o,hi:l}=tT(t,"pos",e)),{pos:s,time:r}=t[o],{pos:n,time:a}=t[l]):(e>=t[o].time&&e<=t[l].time&&({lo:o,hi:l}=tT(t,"time",e)),{time:s,pos:r}=t[o],{time:n,pos:a}=t[l]);let h=n-s;return h?r+(a-r)*(e-s)/h:r}class nT extends nC{static id="timeseries";static defaults=nC.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=nD(e,this.min),this._tableRange=nD(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){let e,i,s;let{min:n,max:r}=this,a=[],o=[];for(e=0,i=t.length;e=n&&s<=r&&a.push(s);if(a.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(e=0,i=a.length;et-e)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t}getDecimalForValue(t){return(nD(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){let e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return nD(this._table,i*this._tableRange+this._minPos,!0)}}var nL=i(7294);let nA="label";function nR(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function nI(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nA,s=[];t.datasets=e.map(e=>{let n=t.datasets.find(t=>t[i]===e[i]);return!n||!e.data||s.includes(n)?{...e}:(s.push(n),Object.assign(n,e),n)})}let nj=(0,nL.forwardRef)(function(t,e){let{height:i=150,width:s=300,redraw:n=!1,datasetIdKey:r,type:a,data:o,options:l,plugins:h=[],fallbackContent:c,updateMode:d,...u}=t,f=(0,nL.useRef)(null),g=(0,nL.useRef)(),p=()=>{f.current&&(g.current=new sT(f.current,{type:a,data:function(t){var e,i;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nA,n={labels:[],datasets:[]};return e=n,i=t.labels,e.labels=i,nI(n,t.datasets,s),n}(o,r),options:l&&{...l},plugins:h}),nR(e,g.current))},m=()=>{nR(e,null),g.current&&(g.current.destroy(),g.current=null)};return(0,nL.useEffect)(()=>{!n&&g.current&&l&&function(t,e){let i=t.options;i&&e&&Object.assign(i,e)}(g.current,l)},[n,l]),(0,nL.useEffect)(()=>{if(!n&&g.current){var t,e;t=g.current.config.data,e=o.labels,t.labels=e}},[n,o.labels]),(0,nL.useEffect)(()=>{!n&&g.current&&o.datasets&&nI(g.current.config.data,o.datasets,r)},[n,o.datasets]),(0,nL.useEffect)(()=>{g.current&&(n?(m(),setTimeout(p)):g.current.update(d))},[n,l,o.labels,o.datasets,d]),(0,nL.useEffect)(()=>{g.current&&(m(),setTimeout(p))},[a]),(0,nL.useEffect)(()=>(p(),()=>m()),[]),nL.createElement("canvas",Object.assign({ref:f,role:"img",height:i,width:s},u),c)}),nF=(r=class extends iu{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,i,s){return ip(t,e,i,s)}parseArrayData(t,e,i,s){return ip(t,e,i,s)}parseObjectData(t,e,i,s){let n,r,a,o;let{iScale:l,vScale:h}=t,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,u="x"===l.axis?c:d,f="x"===h.axis?c:d,g=[];for(n=i,r=i+s;nt.x,r="left",a="right"):(n=t.baset.controller.options.grouped),n=i.options.stacked,r=[],a=t=>{let i=t.controller.getParsed(e),s=i&&i[t.vScale.axis];if(z(s)||isNaN(s))return!0};for(let i of s)if(!(void 0!==e&&a(i))&&((!1===n||-1===r.indexOf(i.stack)||void 0===n&&void 0===i.stack)&&r.push(i.stack),i.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){let s=this._getStacks(t,i),n=void 0!==e?s.indexOf(e):-1;return -1===n?s.length-1:n}_getRuler(){let t,e;let i=this.options,s=this._cachedMeta,n=s.iScale,r=[];for(t=0,e=s.data.length;tt-e))}return t._cache.$bar}(r,t.type),o=r._length,l=()=>{32767!==s&&-32768!==s&&(tn(n)&&(o=Math.min(o,Math.abs(s-n)||o)),n=s)};for(e=0,i=a.length;e=l?1:-1))*o,u===l&&(m-=i/2);let t=s.getPixelForDecimal(0),a=s.getPixelForDecimal(1);e=(m=Math.max(Math.min(m,Math.max(t,a)),Math.min(t,a)))+i,n&&!d&&(h._stacks[s.axis]._visualValues[r]=s.getValueForPixel(e)-s.getValueForPixel(m))}if(m===s.getPixelForValue(l)){let t=tm(i)*s.getLineWidthForValue(l)/2;m+=t,i-=t}return{size:i,base:m,head:e,center:e+i/2}}_calculateBarIndexPixels(t,e){let i,s;let n=e.scale,r=this.options,a=r.skipNull,o=B(r.maxBarThickness,1/0);if(e.grouped){let n=a?this._getStackCount(t):e.stackCount,l="flex"===r.barThickness?function(t,e,i,s){let n=e.pixels,r=n[t],a=t>0?n[t-1]:null,o=tnL.createElement(nj,Object.assign({},t,{ref:e,type:"bar"}))));var nz=i(1688);let nV=()=>{},nN=nV(),nW=Object,n$=t=>t===nN,nB=t=>"function"==typeof t,nH=(t,e)=>({...t,...e}),nY=t=>nB(t.then),nU=new WeakMap,nq=0,nX=t=>{let e,i;let s=typeof t,n=t&&t.constructor,r=n==Date;if(nW(t)!==t||r||n==RegExp)e=r?t.toJSON():"symbol"==s?t.toString():"string"==s?JSON.stringify(t):""+t;else{if(e=nU.get(t))return e;if(e=++nq+"~",nU.set(t,e),n==Array){for(i=0,e="@";inQ&&typeof window.requestAnimationFrame!=nJ,n2=(t,e)=>{let i=nZ.get(t);return[()=>!n$(e)&&t.get(e)||nG,s=>{if(!n$(e)){let n=t.get(e);e in nK||(nK[e]=n),i[5](e,nH(n,s),n||nG)}},i[6],()=>!n$(e)&&e in nK?nK[e]:!n$(e)&&t.get(e)||nG]},n5=!0,[n3,n4]=nQ&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[nV,nV],n8=()=>{let t=n0&&document.visibilityState;return n$(t)||"hidden"!==t},n6=t=>(n0&&document.addEventListener("visibilitychange",t),n3("focus",t),()=>{n0&&document.removeEventListener("visibilitychange",t),n4("focus",t)}),n7=t=>{let e=()=>{n5=!0,t()},i=()=>{n5=!1};return n3("online",e),n3("offline",i),()=>{n4("online",e),n4("offline",i)}},n9={initFocus:n6,initReconnect:n7},rt=!nL.useId,re=!nQ||"Deno"in window,ri=t=>n1()?window.requestAnimationFrame(t):setTimeout(t,1),rs=re?nL.useEffect:nL.useLayoutEffect,rn="undefined"!=typeof navigator&&navigator.connection,rr=!re&&rn&&(["slow-2g","2g"].includes(rn.effectiveType)||rn.saveData),ra=t=>{if(nB(t))try{t=t()}catch(e){t=""}let e=t;return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?nX(t):"",e]},ro=0,rl=()=>++ro;var rh={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function rc(...t){let[e,i,s,n]=t,r=nH({populateCache:!0,throwOnError:!0},"boolean"==typeof n?{revalidate:n}:n||{}),a=r.populateCache,o=r.rollbackOnError,l=r.optimisticData,h=t=>"function"==typeof o?o(t):!1!==o,c=r.throwOnError;if(nB(i)){let t=[],s=e.keys();for(let n of s)!/^\$(inf|sub)\$/.test(n)&&i(e.get(n)._k)&&t.push(n);return Promise.all(t.map(d))}return d(i);async function d(i){let n;let[o]=ra(i);if(!o)return;let[d,u]=n2(e,o),[f,g,p,m]=nZ.get(e),b=()=>{let t=f[o],e=nB(r.revalidate)?r.revalidate(d().data,i):!1!==r.revalidate;return e&&(delete p[o],delete m[o],t&&t[0])?t[0](2).then(()=>d().data):d().data};if(t.length<3)return b();let x=s,_=rl();g[o]=[_,0];let y=!n$(l),v=d(),w=v.data,M=v._c,k=n$(M)?w:M;if(y&&u({data:l=nB(l)?l(k,w):l,_c:k}),nB(x))try{x=x(k)}catch(t){n=t}if(x&&nY(x)){if(x=await x.catch(t=>{n=t}),_!==g[o][0]){if(n)throw n;return x}n&&y&&h(n)&&(a=!0,u({data:k,_c:nN}))}if(a&&!n){if(nB(a)){let t=a(x,k);u({data:t,error:nN,_c:nN})}else u({data:x,error:nN,_c:nN})}if(g[o][1]=rl(),Promise.resolve(b()).then(()=>{u({_c:nN})}),n){if(c)throw n;return}return x}}let rd=(t,e)=>{for(let i in t)t[i][0]&&t[i][0](e)},ru=(t,e)=>{if(!nZ.has(t)){let i=nH(n9,e),s={},n=rc.bind(nN,t),r=nV,a={},o=(t,e)=>{let i=a[t]||[];return a[t]=i,i.push(e),()=>i.splice(i.indexOf(e),1)},l=(e,i,s)=>{t.set(e,i);let n=a[e];if(n)for(let t of n)t(i,s)},h=()=>{if(!nZ.has(t)&&(nZ.set(t,[s,{},{},{},n,l,o]),!re)){let e=i.initFocus(setTimeout.bind(nN,rd.bind(nN,s,0))),n=i.initReconnect(setTimeout.bind(nN,rd.bind(nN,s,1)));r=()=>{e&&e(),n&&n(),nZ.delete(t)}}};return h(),[t,n,h,r]}return[t,nZ.get(t)[4]]},rf=(t,e,i,s,n)=>{let r=i.errorRetryCount,a=n.retryCount,o=~~((Math.random()+.5)*(1<<(a<8?a:8)))*i.errorRetryInterval;(n$(r)||!(a>r))&&setTimeout(s,o,n)},rg=(t,e)=>nX(t)==nX(e),[rp,rm]=ru(new Map),rb=nH({onLoadingSlow:nV,onSuccess:nV,onError:nV,onErrorRetry:rf,onDiscarded:nV,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:rr?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:rr?5e3:3e3,compare:rg,isPaused:()=>!1,cache:rp,mutate:rm,fallback:{}},{isOnline:()=>n5,isVisible:n8}),rx=(t,e)=>{let i=nH(t,e);if(e){let{use:s,fallback:n}=t,{use:r,fallback:a}=e;s&&r&&(i.use=s.concat(r)),n&&a&&(i.fallback=nH(n,a))}return i},r_=(0,nL.createContext)({}),ry=t=>{let{value:e}=t,i=(0,nL.useContext)(r_),s=nB(e),n=(0,nL.useMemo)(()=>s?e(i):e,[s,i,e]),r=(0,nL.useMemo)(()=>s?n:rx(i,n),[s,i,n]),a=n&&n.provider,o=(0,nL.useRef)(nN);a&&!o.current&&(o.current=ru(a(r.cache||rp),n));let l=o.current;return l&&(r.cache=l[0],r.mutate=l[1]),rs(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,nL.createElement)(r_.Provider,nH(t,{value:r}))},rv=nQ&&window.__SWR_DEVTOOLS_USE__,rw=rv?window.__SWR_DEVTOOLS_USE__:[],rM=t=>nB(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}],rk=()=>nH(rb,(0,nL.useContext)(r_)),rS=t=>(e,i,s)=>{let n=i&&((...t)=>{let[s]=ra(e),[,,,n]=nZ.get(rp);if(s.startsWith("$inf$"))return i(...t);let r=n[s];return n$(r)?i(...t):(delete n[s],r)});return t(e,n,s)},rO=rw.concat(rS),rP=(t,e,i)=>{let s=e[t]||(e[t]=[]);return s.push(i),()=>{let t=s.indexOf(i);t>=0&&(s[t]=s[s.length-1],s.pop())}};rv&&(window.__SWR_DEVTOOLS_REACT__=nL);let rE=nL.use||(t=>{if("pending"===t.status)throw t;if("fulfilled"===t.status)return t.value;if("rejected"===t.status)throw t.reason;throw t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}),t}),rC={dedupe:!0},rD=(t,e,i)=>{let{cache:s,compare:n,suspense:r,fallbackData:a,revalidateOnMount:o,revalidateIfStale:l,refreshInterval:h,refreshWhenHidden:c,refreshWhenOffline:d,keepPreviousData:u}=i,[f,g,p,m]=nZ.get(s),[b,x]=ra(t),_=(0,nL.useRef)(!1),y=(0,nL.useRef)(!1),v=(0,nL.useRef)(b),w=(0,nL.useRef)(e),M=(0,nL.useRef)(i),k=()=>M.current,S=()=>k().isVisible()&&k().isOnline(),[O,P,E,C]=n2(s,b),D=(0,nL.useRef)({}).current,T=n$(a)?i.fallback[b]:a,L=(t,e)=>{for(let i in D){let s=i;if("data"===s){if(!n(t[s],e[s])&&(!n$(t[s])||!n(W,e[s])))return!1}else if(e[s]!==t[s])return!1}return!0},A=(0,nL.useMemo)(()=>{let t=!!b&&!!e&&(n$(o)?!k().isPaused()&&!r&&(!!n$(l)||l):o),i=e=>{let i=nH(e);return(delete i._k,t)?{isValidating:!0,isLoading:!0,...i}:i},s=O(),n=C(),a=i(s),h=s===n?a:i(n),c=a;return[()=>{let t=i(O()),e=L(t,c);return e?(c.data=t.data,c.isLoading=t.isLoading,c.isValidating=t.isValidating,c.error=t.error,c):(c=t,t)},()=>h]},[s,b]),R=(0,nz.useSyncExternalStore)((0,nL.useCallback)(t=>E(b,(e,i)=>{L(i,e)||t()}),[s,b]),A[0],A[1]),I=!_.current,j=f[b]&&f[b].length>0,F=R.data,z=n$(F)?T:F,V=R.error,N=(0,nL.useRef)(z),W=u?n$(F)?N.current:F:z,$=(!j||!!n$(V))&&(I&&!n$(o)?o:!k().isPaused()&&(r?!n$(z)&&l:n$(z)||l)),B=!!(b&&e&&I&&$),H=n$(R.isValidating)?B:R.isValidating,Y=n$(R.isLoading)?B:R.isLoading,U=(0,nL.useCallback)(async t=>{let e,s;let r=w.current;if(!b||!r||y.current||k().isPaused())return!1;let a=!0,o=t||{},l=!p[b]||!o.dedupe,h=()=>rt?!y.current&&b===v.current&&_.current:b===v.current,c={isValidating:!1,isLoading:!1},d=()=>{P(c)},u=()=>{let t=p[b];t&&t[1]===s&&delete p[b]},m={isValidating:!0};n$(O().data)&&(m.isLoading=!0);try{if(l&&(P(m),i.loadingTimeout&&n$(O().data)&&setTimeout(()=>{a&&h()&&k().onLoadingSlow(b,i)},i.loadingTimeout),p[b]=[r(x),rl()]),[e,s]=p[b],e=await e,l&&setTimeout(u,i.dedupingInterval),!p[b]||p[b][1]!==s)return l&&h()&&k().onDiscarded(b),!1;c.error=nN;let t=g[b];if(!n$(t)&&(s<=t[0]||s<=t[1]||0===t[1]))return d(),l&&h()&&k().onDiscarded(b),!1;let o=O().data;c.data=n(o,e)?o:e,l&&h()&&k().onSuccess(e,b,i)}catch(i){u();let t=k(),{shouldRetryOnError:e}=t;!t.isPaused()&&(c.error=i,l&&h()&&(t.onError(i,b,t),(!0===e||nB(e)&&e(i))&&(!k().revalidateOnFocus||!k().revalidateOnReconnect||S())&&t.onErrorRetry(i,b,t,t=>{let e=f[b];e&&e[0]&&e[0](rh.ERROR_REVALIDATE_EVENT,t)},{retryCount:(o.retryCount||0)+1,dedupe:!0})))}return a=!1,d(),!0},[b,s]),q=(0,nL.useCallback)((...t)=>rc(s,v.current,...t),[]);if(rs(()=>{w.current=e,M.current=i,n$(F)||(N.current=F)}),rs(()=>{if(!b)return;let t=U.bind(nN,rC),e=0,i=(i,s={})=>{if(i==rh.FOCUS_EVENT){let i=Date.now();k().revalidateOnFocus&&i>e&&S()&&(e=i+k().focusThrottleInterval,t())}else if(i==rh.RECONNECT_EVENT)k().revalidateOnReconnect&&S()&&t();else if(i==rh.MUTATE_EVENT)return U();else if(i==rh.ERROR_REVALIDATE_EVENT)return U(s)},s=rP(b,f,i);return y.current=!1,v.current=b,_.current=!0,P({_k:x}),$&&(n$(z)||re?t():ri(t)),()=>{y.current=!0,s()}},[b]),rs(()=>{let t;function e(){let e=nB(h)?h(O().data):h;e&&-1!==t&&(t=setTimeout(i,e))}function i(){!O().error&&(c||k().isVisible())&&(d||k().isOnline())?U(rC).then(e):e()}return e(),()=>{t&&(clearTimeout(t),t=-1)}},[h,c,d,b]),(0,nL.useDebugValue)(W),r&&n$(z)&&b){if(!rt&&re)throw Error("Fallback data is required when using suspense in SSR.");w.current=e,M.current=i,y.current=!1;let t=m[b];if(!n$(t)){let e=q(t);rE(e)}if(n$(V)){let t=U(rC);n$(W)||(t.status="fulfilled",t.value=!0),rE(t)}else throw V}return{mutate:q,get data(){return D.data=!0,W},get error(){return D.error=!0,V},get isValidating(){return D.isValidating=!0,H},get isLoading(){return D.isLoading=!0,Y}}};nW.defineProperty(ry,"defaultValue",{value:rb});let rT=function(...t){let e=rk(),[i,s,n]=rM(t),r=rx(e,n),a=rD,{use:o}=r,l=(o||[]).concat(rO);for(let t=l.length;t--;)a=l[t](a);return a(i,s||r.fetcher||null,r)};function rL(){return(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:"Error..."})}var rA=i(425),rR=i(5152),rI=i.n(rR);let rj=t=>rI()(t,{ssr:!1,loading:t=>(0,nL.createElement)(rA.g,t)}),rF=rj(async()=>(await Promise.all([i.e(2738),i.e(4081),i.e(6921),i.e(3677)]).then(i.bind(i,3677))).ExcalidrawSceneImpl);function rz(t){return(0,a.jsx)(rF,{...t})}function rV(t){let{file:e,url:i,label:s}=t,{data:n,isLoading:r}=rT(i,async t=>{let e=await fetch(t).then(t=>t.json());return e.elements});return(0,a.jsx)("div",{className:"relative h-[600px] py-4",children:r?(0,a.jsx)(rA.g,{}):n?(0,a.jsx)(rz,{elements:n}):(0,a.jsx)(rL,{})})}let rN=rj(async()=>(await Promise.all([i.e(2738),i.e(4081),i.e(152),i.e(6921),i.e(6760),i.e(6453)]).then(i.bind(i,6453))).MermaidCodeBlockImpl);var rW=i(1466);sT.register(class extends sr{static id="category";static defaults={ticks:{callback:nh}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){let e=this._addedLabels;if(e.length){let t=this.getLabels();for(let{index:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(z(t))return null;let i=this.getLabels();return nl(e=isFinite(e)&&i[e]===t?e:function(t,e,i,s){let n=t.indexOf(e);if(-1===n)return no(t,e,i,s);let r=t.lastIndexOf(e);return n!==r?i:n}(i,t,B(e,t),this._addedLabels),i.length-1)}determineDataLimits(){let{minDefined:t,maxDefined:e}=this.getUserBounds(),{min:i,max:s}=this.getMinMax(!0);"ticks"!==this.options.bounds||(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){let t=this.min,e=this.max,i=this.options.offset,s=[],n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)s.push({value:i});return s}getLabelForValue(t){return nh.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){let e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},nu,class extends i6{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){var e;let{inflateAmount:i,options:{borderColor:s,backgroundColor:n}}=this,{inner:r,outer:a}=function(t){let e=sU(t),i=e.right-e.left,s=e.bottom-e.top,n=function(t,e,i){let s=t.options.borderWidth,n=t.borderSkipped,r=ef(s);return{t:sq(n.top,r.top,0,i),r:sq(n.right,r.right,0,e),b:sq(n.bottom,r.bottom,0,i),l:sq(n.left,r.left,0,e)}}(t,i/2,s/2),r=function(t,e,i){let{enableBorderRadius:s}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,r=eg(n),a=Math.min(e,i),o=t.borderSkipped,l=s||N(n);return{topLeft:sq(!l||o.top||o.left,r.topLeft,0,a),topRight:sq(!l||o.top||o.right,r.topRight,0,a),bottomLeft:sq(!l||o.bottom||o.left,r.bottomLeft,0,a),bottomRight:sq(!l||o.bottom||o.right,r.bottomRight,0,a)}}(t,i/2,s/2);return{outer:{x:e.left,y:e.top,w:i,h:s,radius:r},inner:{x:e.left+n.l,y:e.top+n.t,w:i-n.l-n.r,h:s-n.t-n.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,r.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(n.b,n.r))}}}}(this),o=(e=a.radius).topLeft||e.topRight||e.bottomLeft||e.bottomRight?el:sZ;t.save(),(a.w!==r.w||a.h!==r.h)&&(t.beginPath(),o(t,sG(a,i,r)),t.clip(),o(t,sG(r,-i,a)),t.fillStyle=s,t.fill("evenodd")),t.beginPath(),o(t,sG(r,i)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,i){return sX(this,t,e,i)}inXRange(t,e){return sX(this,t,null,e)}inYRange(t,e){return sX(this,null,t,e)}getCenterPoint(t){let{x:e,y:i,base:s,horizontal:n}=this.getProps(["x","y","base","horizontal"],t);return{x:n?(e+s)/2:e,y:n?i:(i+s)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}},{id:"title",_element:s4,start(t,e,i){!function(t,e){let i=new s4({ctx:t.ctx,options:e,chart:t});iB.configure(t,i,e),iB.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){let e=t.titleBlock;iB.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){let s=t.titleBlock;iB.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},{id:"tooltip",_element:na,positioners:s8,afterInit(t,e,i){i&&(t.tooltip=new na({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){let e=t.tooltip;if(e&&e._willRender()){let i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){let i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:nn},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},{id:"legend",_element:s5,start(t,e,i){let s=t.legend=new s5({ctx:t.ctx,options:i,chart:t});iB.configure(t,s,i),iB.addBox(t,s)},stop(t){iB.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){let s=t.legend;iB.configure(t,s,i),s.options=i},afterUpdate(t){let e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){let s=e.datasetIndex,n=i.chart;n.isDatasetVisible(s)?(n.hide(s),e.hidden=!0):(n.show(s),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:s,textAlign:n,color:r,useBorderRadius:a,borderRadius:o}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{let l=t.controller.getStyle(i?0:void 0),h=ep(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:l.borderColor,pointStyle:s||l.pointStyle,rotation:l.rotation,textAlign:n||l.textAlign,borderRadius:a&&(o||l.borderRadius),datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}});let r$={Bar:nF,License:rW.Z,MermaidCodeBlock:function(t){return(0,a.jsx)("div",{className:"relative h-[600px] py-4",children:(0,a.jsx)(rN,{...t})})},ObsidianRich:t=>(console.log("ObsidianRich:",t),t.file.endsWith(".excalidraw")||t.file.endsWith(".excalidraw.md"))?(0,a.jsx)(rV,{...t}):(0,a.jsx)("img",{src:t.url,alt:t.label})};var rB=i(1810),rH=i(2203);i(6374);var rY=i(1151);i(6180);var rU=i(4298),rq=i.n(rU);function rX(t){let{Component:e,pageProps:i}=t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(rH.ZP,{}),(0,a.jsx)(rq(),{strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=G-1Y0XYKX8HY"}),(0,a.jsx)(rq(),{id:"google-analytics",strategy:"afterInteractive",children:"window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', 'G-1Y0XYKX8HY');"}),(0,a.jsx)(rB.h,{children:(0,a.jsx)(rY.Zo,{components:r$,children:(0,a.jsx)(e,{...i})})})]})}},1858:function(t,e,i){"use strict";i.d(e,{GW:function(){return n},Wj:function(){return a},_O:function(){return r},px:function(){return s}});let s="Ryo's Blog",n="/blog-next",r="".concat("https://ryojerryyu.github.io").concat(n),a="https://blog.ryo-okami.xyz"},6180:function(){},6374:function(){},5152:function(t,e,i){t.exports=i(7645)},9008:function(t,e,i){t.exports=i(3121)},5675:function(t,e,i){t.exports=i(9749)},1664:function(t,e,i){t.exports=i(1551)},1163:function(t,e,i){t.exports=i(880)},4298:function(t,e,i){t.exports=i(3573)},3250:function(t,e,i){"use strict";/** * @license React * use-sync-external-store-shim.production.min.js * diff --git a/_next/static/chunks/webpack-2d62cedb546faeb6.js b/_next/static/chunks/webpack-2d62cedb546faeb6.js new file mode 100644 index 00000000..9c639e50 --- /dev/null +++ b/_next/static/chunks/webpack-2d62cedb546faeb6.js @@ -0,0 +1 @@ +!function(){"use strict";var e,t,n,r,c,o,f,a,u,i={},d={};function b(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}},r=!0;try{i[e].call(n.exports,n,n.exports,b),r=!1}finally{r&&delete d[e]}return n.exports}b.m=i,e=[],b.O=function(t,n,r,c){if(n){c=c||0;for(var o=e.length;o>0&&e[o-1][2]>c;o--)e[o]=e[o-1];e[o]=[n,r,c];return}for(var f=1/0,o=0;o=c&&Object.keys(b.O).every(function(e){return b.O[e](n[u])})?n.splice(u--,1):(a=!1,c0&&e[f-1][2]>c;f--)e[f]=e[f-1];e[f]=[n,r,c];return}for(var a=1/0,f=0;f=c&&Object.keys(i.O).every(function(e){return i.O[e](n[u])})?n.splice(u--,1):(o=!1,cArticles | Ryo's Blog
© 2023 Ryo Jerry Yu. All rights reserved.
\ No newline at end of file +Articles | Ryo's Blog
© 2023 Ryo Jerry Yu. All rights reserved.
\ No newline at end of file diff --git a/articles/Building-this-blog.html b/articles/Building-this-blog.html index 09410043..ba9755db 100644 --- a/articles/Building-this-blog.html +++ b/articles/Building-this-blog.html @@ -4,7 +4,7 @@ 参考[BruceZhao][BruceZhao]提供的中文翻译:[README.zh.md][READMEzh],先将[Huxpro][Huxpro]提供的[博客模板仓库][origin_repo]fork出来,`git clone`到本地。 整个网站文件夹大致结构如下:"/>

搭建博客的过程

+整个网站文件夹大致结构如下:"/>
Loading comments...
© 2023 Ryo Jerry Yu. All rights reserved.
\ No newline at end of file +

Loading comments...
© 2023 Ryo Jerry Yu. All rights reserved.
\ No newline at end of file diff --git a/articles/Handy-heap-cheat-sheet.html b/articles/Handy-heap-cheat-sheet.html index dda1b8e9..b9fbe89f 100644 --- a/articles/Handy-heap-cheat-sheet.html +++ b/articles/Handy-heap-cheat-sheet.html @@ -4,7 +4,7 @@ 当然,一般来说我们只要理解堆,知道堆的性质,知道怎么样用堆就足够了。在做题时只需要调用系统类库即可——在参加AtCoder时你甚至不会有时间去自己实现一个堆。 但是,如果哪一天你把编程语言的类库全忘光了,又遇到一题需要频繁求最值的题目——你明知这里要用堆,却又忘记该调用的类名了,咋办?我还真遇到过这问题:三年没刷算法,只能对着一道自己明显会的题干着急,愣是想不起PriorityQueue的名字。这时候,只能自己实现一个堆出来了。"/>

如何手撕一个堆

如何手撕一个堆

+但是,如果哪一天你把编程语言的类库全忘光了,又遇到一题需要频繁求最值的题目——你明知这里要用堆,却又忘记该调用的类名了,咋办?我还真遇到过这问题:三年没刷算法,只能对着一道自己明显会的题干着急,愣是想不起PriorityQueue的名字。这时候,只能自己实现一个堆出来了。"/>

如何手撕一个堆

如何手撕一个堆

写在前面

在参加如AtCoder等算法竞技,或是刷Leetcode等算法题时,我们总是不可避免地遇到堆这种数据结构。

当然,一般来说我们只要理解堆,知道堆的性质,知道怎么样用堆就足够了。在做题时只需要调用系统类库即可——在参加AtCoder时你甚至不会有时间去自己实现一个堆。

@@ -366,4 +366,4 @@

关于堆排序

  • 堆结构一般占用数组前端,因此从小到大排序时,有序部分从数组末尾开始扩张,建立的堆为大顶堆。
  • 堆排序只需要建堆与出堆操作,因此只需要实现下沉操作。
  • -

    关于堆排序的具体讨论,有机会的话我会另外写一篇来讲解。


    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +

    关于堆排序的具体讨论,有机会的话我会另外写一篇来讲解。


    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/articles/Sort-algorithm.html b/articles/Sort-algorithm.html index b3e0c9b0..0d7888da 100644 --- a/articles/Sort-algorithm.html +++ b/articles/Sort-algorithm.html @@ -4,7 +4,7 @@ 当然我不打算随便弄个什么十大排序算法或是经典排序总结之类响当当的名头,各个算法走马看花一样拉出来遛一遍,最后变得跟网上搜索到的其他讲排序的文章一样换汤不换药。你会发现这篇文章的结构跟在网上搜索到的任何讲排序的文章都有所不同: 在这篇文章里,你会发现你找不到冒泡排序——因为我认为冒泡排序只不过是一种低效率的选择排序。"/>

    排序算法

    序言

    +在这篇文章里,你会发现你找不到冒泡排序——因为我认为冒泡排序只不过是一种低效率的选择排序。"/>

    排序算法

    序言

    我们知道排序是算法入门基本功,排序算法有多重要想必也不需要我在这里说明了。因此这一篇就按着我的理解,聊一聊排序算法。

    当然我不打算随便弄个什么十大排序算法或是经典排序总结之类响当当的名头,各个算法走马看花一样拉出来遛一遍,最后变得跟网上搜索到的其他讲排序的文章一样换汤不换药。你会发现这篇文章的结构跟在网上搜索到的任何讲排序的文章都有所不同:

    在这篇文章里,你会发现你找不到冒泡排序——因为我认为冒泡排序只不过是一种低效率的选择排序。

    @@ -339,4 +339,4 @@

    堆排序逆序对消除方式比较Tricky,但可以看出消除逆序对大致在于出堆步骤,通过O(logn)时间复杂度消除O(n)个逆序对。(左小右大排序时需要建立左大右小的大顶堆,建堆时基本没有消除逆序对)

    最后

    -

    这篇文章我们主要关注了排序算法中的大头——基于比较的排序算法。在下篇文章,我们再来看一下不基于比较的排序算法,以及外排序与并行排序。


    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +

    这篇文章我们主要关注了排序算法中的大头——基于比较的排序算法。在下篇文章,我们再来看一下不基于比较的排序算法,以及外排序与并行排序。


    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/articles/The-beauty-of-design-parten.html b/articles/The-beauty-of-design-parten.html index ad0bfd8c..ec1c7cc7 100644 --- a/articles/The-beauty-of-design-parten.html +++ b/articles/The-beauty-of-design-parten.html @@ -4,7 +4,7 @@ 1. 易维护性:根本 2. 可读性:最重要"/>

    设计模式之美读书笔记

    导读

    +2. 可读性:最重要"/>
    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +

    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/articles/create-blog-cicd-by-github.html b/articles/create-blog-cicd-by-github.html index 34344330..2401392f 100644 --- a/articles/create-blog-cicd-by-github.html +++ b/articles/create-blog-cicd-by-github.html @@ -4,7 +4,7 @@ 但我今天要做的不是发布到 GitHub 这么简单,而是要同时发布到 GitHub 和自己的域名下。 我们需要构建一个 CI/CD 过程。这个过程需要做到以下目标:"/>

    用 GitHub Action 自动化构建 Hexo 并发布到 S3

    GitHub Action 自动化构建发布到 GitHub Pages 大家都见得多了,甚至 Hexo 官方自己都有相关的文档。 +我们需要构建一个 CI/CD 过程。这个过程需要做到以下目标:"/>

    用 GitHub Action 自动化构建 Hexo 并发布到 S3

    GitHub Action 自动化构建发布到 GitHub Pages 大家都见得多了,甚至 Hexo 官方自己都有相关的文档。 但我今天要做的不是发布到 GitHub 这么简单,而是要同时发布到 GitHub 和自己的域名下。

    这篇文章的目标

    我们需要构建一个 CI/CD 过程。这个过程需要做到以下目标:

    @@ -285,4 +285,4 @@

    之后的事

  • Lambda@Edge 还没有结合到 IaC 中
  • 配置文件生成过程仍有改进空间
  • -

    留下这些问题,今后再修改。


    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +

    留下这些问题,今后再修改。


    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/articles/graph-for-economics-1.html b/articles/graph-for-economics-1.html index a3add75c..7f949126 100644 --- a/articles/graph-for-economics-1.html +++ b/articles/graph-for-economics-1.html @@ -4,7 +4,7 @@ > 2. 这篇文章中的图使用 3Blue1Brown 的动画生成工具 manim 的 Community Edition 制作,源代码之后会上传到 GitHub 。 我们先不讲课,先来带个货。"/>

    图解经济学原理(1)

    +我们先不讲课,先来带个货。"/>

    图解经济学原理(1)

    1. 这篇文章参考了曼昆的《经济学原理》与北京大学王辉老师的《微观经济学》课程,内容上会有部分相似。
    2. 这篇文章中的图使用 3Blue1Brown 的动画生成工具 manim 的 Community Edition 制作,源代码之后会上传到 GitHub 。
    3. @@ -108,4 +108,4 @@

      总结一下


    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +

    总结一下


    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/articles/graph-for-economics-2.html b/articles/graph-for-economics-2.html index dfcfbb66..b20dde64 100644 --- a/articles/graph-for-economics-2.html +++ b/articles/graph-for-economics-2.html @@ -4,7 +4,7 @@ > 2. 这篇文章中的图使用 3Blue1Brown 的动画生成工具 manim 的 Community Edition 制作,源代码之后会上传到 GitHub 。 上一篇讲供给,这一篇讲需求。"/>

    图解经济学原理(2)

    +上一篇讲供给,这一篇讲需求。"/>

    图解经济学原理(2)

    1. 这篇文章参考了曼昆的《经济学原理》与北京大学王辉老师的《微观经济学》课程,内容上会有部分相似。
    2. 这篇文章中的图使用 3Blue1Brown 的动画生成工具 manim 的 Community Edition 制作,源代码之后会上传到 GitHub 。
    3. @@ -133,4 +133,4 @@

      调节经

      财政政策

      货币政策

      两种政策对经济影响 —— 总供给总需求模型

      -

      国际经济


    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +

    国际经济


    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/articles/hello-world.html b/articles/hello-world.html index 3f232bd9..d29ed9f4 100644 --- a/articles/hello-world.html +++ b/articles/hello-world.html @@ -4,7 +4,7 @@ 自己盲人摸象折腾了一两天,终于利用GitHub Pages,把自己的博客搭好了。 感谢[Huxpro][Huxpro]提供的博客模板,以及[BruceZhao][BruceZhao]编写的中文ReadMe。"/>

    Welcome to Ryo's Blog!

    +感谢[Huxpro][Huxpro]提供的博客模板,以及[BruceZhao][BruceZhao]编写的中文ReadMe。"/>
    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +

    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/articles/init-a-new-hexo-project.html b/articles/init-a-new-hexo-project.html index ed94fa2e..90e403be 100644 --- a/articles/init-a-new-hexo-project.html +++ b/articles/init-a-new-hexo-project.html @@ -4,7 +4,7 @@ 对之前的那个博客进行替代,并将之前的文章逐渐搬移过来。 使用的[这个主题](https://github.com/Yue-plus/hexo-theme-arknights)功能还是比较完善的。"/>

    init-a-new-hexo-project

    使用 hexo 搭建博客

    +使用的[这个主题](https://github.com/Yue-plus/hexo-theme-arknights)功能还是比较完善的。"/>
    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +

    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/articles/introduction-for-k8s-2.html b/articles/introduction-for-k8s-2.html index 6c59f02c..de2f1b3f 100644 --- a/articles/introduction-for-k8s-2.html +++ b/articles/introduction-for-k8s-2.html @@ -4,7 +4,7 @@ 其实我们之前已经接触过储存相关的内容了:在讲 Stateful Set 时我们提过 Stateful Set 创建出来的 Pod 都会有相互独立的储存;而讲 Daemon Set 时我们提到 K8s 推荐只在 Daemon Set 的 Pod 中访问宿主机磁盘。但独立的储存具体指什么?除了访问宿主机磁盘以外还有什么其他的储存? 在 Docker 中,我们可以把宿主机磁盘上的一个路径作为一个 Volume 来给容器绑定,或者直接使用 Docker Engine 管理的 Volume 来提供持久化存储或是容器间共享文件。在 K8s 里面也沿用了 Volume 这个概念,可以通过 Mount 绑定到容器内的路径,并通过实现 CSI 的各种引擎来提供更多样的存储。"/>

    Kubernetes 入门 (2)

    我们之前说的都是用于部署 Pod 的资源,我们接下来介绍与创建 Pod 不相关的资源:储存与网络。

    +在 Docker 中,我们可以把宿主机磁盘上的一个路径作为一个 Volume 来给容器绑定,或者直接使用 Docker Engine 管理的 Volume 来提供持久化存储或是容器间共享文件。在 K8s 里面也沿用了 Volume 这个概念,可以通过 Mount 绑定到容器内的路径,并通过实现 CSI 的各种引擎来提供更多样的存储。"/>

    Kubernetes 入门 (2)

    我们之前说的都是用于部署 Pod 的资源,我们接下来介绍与创建 Pod 不相关的资源:储存与网络。

    储存

    其实我们之前已经接触过储存相关的内容了:在讲 Stateful Set 时我们提过 Stateful Set 创建出来的 Pod 都会有相互独立的储存;而讲 Daemon Set 时我们提到 K8s 推荐只在 Daemon Set 的 Pod 中访问宿主机磁盘。但独立的储存具体指什么?除了访问宿主机磁盘以外还有什么其他的储存?

    在 Docker 中,我们可以把宿主机磁盘上的一个路径作为一个 Volume 来给容器绑定,或者直接使用 Docker Engine 管理的 Volume 来提供持久化存储或是容器间共享文件。在 K8s 里面也沿用了 Volume 这个概念,可以通过 Mount 绑定到容器内的路径,并通过实现 CSI 的各种引擎来提供更多样的存储。

    @@ -677,4 +677,4 @@

    各种工

    JOJO: 你到底想说什么?

    DIO: 我不用 kubectl apply 了! JOJO ! (其实还是要用的)

    -


    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +

    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/articles/introduction-for-k8s.html b/articles/introduction-for-k8s.html index c7fa695c..0800ae9b 100644 --- a/articles/introduction-for-k8s.html +++ b/articles/introduction-for-k8s.html @@ -4,7 +4,7 @@ > 要把一个不知道打过多少个升级补丁,不知道经历了多少任管理员的系统迁移到其他机器上,毫无疑问会是一场灾难。 —— Chad Fowler 《Trash Your Servers and Burn Your Code》 "Write once, run anywhere" 是 Java 曾经的口号。 Java 企图通过 JVM 虚拟机来实现一个可执行程序在多平台间的移植性。但我们现在知道, Java 语言并没能实现他的目标,会在操作系统调用、第三方依赖丢失、两个程序间依赖的冲突等各方面出现问题。"/>

    Kubernetes 入门 (1)

    容器, Docker 与 K8s

    +"Write once, run anywhere" 是 Java 曾经的口号。 Java 企图通过 JVM 虚拟机来实现一个可执行程序在多平台间的移植性。但我们现在知道, Java 语言并没能实现他的目标,会在操作系统调用、第三方依赖丢失、两个程序间依赖的冲突等各方面出现问题。"/>

    Kubernetes 入门 (1)

    容器, Docker 与 K8s

    我们知道 K8s 利用了容器虚拟化技术。而说到容器虚拟化就要说 Docker 。可是,容器到底是什么? Docker 又为我们做了些什么?我们又为什么要用 K8s ?

    关于容器虚拟化

    @@ -451,4 +451,4 @@

    Job 与 CronJob

    另外我们已经知道 Deployment 等资源一般会通过标签等来管理自己创建的资源,那两份不相关的应用完全有可能会撞标签,这时候部署逻辑就有可能会出问题。

    K8s 中提供了名称空间这种资源,用于进行资源隔离。K8s 中大部分资源都从属于一个且仅从属于一个名称空间, Deployment 等资源一般只能控制在同一名称空间下的资源,而不会影响其他名称空间。

    另外,也有一些资源是名称空间无关的,比如节点 Node

    -

    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +

    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/articles/python-dict.html b/articles/python-dict.html index 318a789a..86ed8656 100644 --- a/articles/python-dict.html +++ b/articles/python-dict.html @@ -4,7 +4,7 @@ 以前参加Python相关的面试时,面试官经常都会问一个问题:Python里的字典(dict)是有序的吗? 这自然难不倒我,我也照本宣科地讲:Python的字典底层是用哈希表实现的,在不发生冲突时读写的时间复杂度是O(1),比读写时间复杂度为O(logn)的红黑树要更快。但红黑树可以按下标的大小顺序进行遍历,而Dict遍历时是无序的。"/>

    Python字典的实现原理

    +这自然难不倒我,我也照本宣科地讲:Python的字典底层是用哈希表实现的,在不发生冲突时读写的时间复杂度是O(1),比读写时间复杂度为O(logn)的红黑树要更快。但红黑树可以按下标的大小顺序进行遍历,而Dict遍历时是无序的。"/>

    Python字典的实现原理

    CPython从3.6开始,字典(dict)不再是无序的了——字典的修改了原先的底层实现,变得能按字典插入的顺序进行遍历。而Python从3.7开始将字典的有序性写入语言特性,不管是Jython、IronPython还是其他Python实现,从3.7开始大家的字典都是有序的了。

    前言

    @@ -90,4 +90,4 @@

    参考文献

  • python3.7源码分析-字典_小屋子大侠的博客-CSDN博客_python 字典源码
  • 《深度剖析CPython解释器》9. 解密Python中字典和集合的底层实现,深度分析哈希表
  • CPython 源码阅读 - dict
  • -

    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +

    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/articles/the-using-in-cpp.html b/articles/the-using-in-cpp.html index 7014c613..7aea3300 100644 --- a/articles/the-using-in-cpp.html +++ b/articles/the-using-in-cpp.html @@ -4,7 +4,7 @@ 不引入命名空间时,使用其中变量需要使用`<命名空间名>::<变量名>`的方式使用。 ```C++"/> \ No newline at end of file +

    能做到类似别名功能的,还有宏#define。但#define运行在编译前的宏处理阶段,对代码进行字符串替换。没有类型检查或其他编译、链接阶段才能进行的检查,不具备安全性。在C++11中不提倡使用#define。


    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/articles/use-paste-image-and-vscode-memo.html b/articles/use-paste-image-and-vscode-memo.html index 297a8782..77e1721d 100644 --- a/articles/use-paste-image-and-vscode-memo.html +++ b/articles/use-paste-image-and-vscode-memo.html @@ -4,7 +4,7 @@ 可能有很多人不熟悉 vscode-memo 这个插件,我先来简单介绍一下。 vscode-memo 定位是一个 knowledge base ,对标的是 [Obsidian.md](https://obsidian.md/) 等软件。其功能包括且不限于:"/>

    完善 Hexo 编写环境,改善文章中使用图片的体验

    我平时使用 vscode-memo 插件写笔记,其中插入图片使用 ![[]] 语法,显示简短,也有较好的预览支持,体验极佳。希望这种特性也能在写 hexo 博客的时候使用。

    +vscode-memo 定位是一个 knowledge base ,对标的是 [Obsidian.md](https://obsidian.md/) 等软件。其功能包括且不限于:"/>

    完善 Hexo 编写环境,改善文章中使用图片的体验

    我平时使用 vscode-memo 插件写笔记,其中插入图片使用 ![[]] 语法,显示简短,也有较好的预览支持,体验极佳。希望这种特性也能在写 hexo 博客的时候使用。

    关于 vscode-memo

    可能有很多人不熟悉 vscode-memo 这个插件,我先来简单介绍一下。

    vscode-memo 定位是一个 knowledge base ,对标的是 Obsidian.md 等软件。其功能包括且不限于:

    @@ -111,4 +111,4 @@

    补充

    └───_posts ├───2022-03-26-create-blog-cicd-by-github.md └───2022-04-03-use-paste-image-and-vscode-memo.md
    -

    可以通过在代码中引用 data.source 解决。


    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +

    可以通过在代码中引用 data.source 解决。


    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/articles/why-homogeneous.html b/articles/why-homogeneous.html index a30e0f9f..7028570a 100644 --- a/articles/why-homogeneous.html +++ b/articles/why-homogeneous.html @@ -4,7 +4,7 @@ 也就是说,对于空间中所有向量 $$\vec{v_1}, \vec{v_2}$$ ,以及任意数量 $$k_1, k_2$$ ,如果有: $$"/>

    为什么使用在齐次坐标下矩阵乘法能表示点平移?

    首先,什么是线性变换?

    +$$"/>

    为什么使用在齐次坐标下矩阵乘法能表示点平移?

    首先,什么是线性变换?

    简化了一万倍来说,线性变换主要是在描述符合这两种性质的变换:一是要可加,二是要能数乘。 也就是说,对于空间中所有向量 v1,v2\vec{v_1}, \vec{v_2}

    Q: 为什么普通的矩阵乘法不能表示平移? A: 因为矩阵乘法只能表示线性变换。平移不是线性变换。

    Q: 为什么在齐次坐标下的矩阵乘法又能表示平移? -A: 因为齐次坐标增加了一个维度。平移变换矩阵其实是在新增的这个维度上做切变(一种线性变换)。切变后的结果正好就是原坐标中的平移变换。


    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +A: 因为齐次坐标增加了一个维度。平移变换矩阵其实是在新增的这个维度上做切变(一种线性变换)。切变后的结果正好就是原坐标中的平移变换。


    Loading comments...
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/clips.html b/clips.html index 8e6431e1..f65a0a1f 100644 --- a/clips.html +++ b/clips.html @@ -1 +1 @@ -Clips | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +Clips | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/ideas.html b/ideas.html index da3dd9ab..8bb9ae47 100644 --- a/ideas.html +++ b/ideas.html @@ -1 +1 @@ -Ideas | Ryo's Blog \ No newline at end of file +Ideas | Ryo's Blog \ No newline at end of file diff --git a/ideas/blog-in-next.html b/ideas/blog-in-next.html index 72ba7e72..06f5a46b 100644 --- a/ideas/blog-in-next.html +++ b/ideas/blog-in-next.html @@ -4,7 +4,7 @@ - [x] remark-math - [x] rehype-katex"/>

    用 Next.js 重构 blog ,TODO list

    blog todo

    + - [x] rehype-katex"/>
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +

    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/ideas/blog-syntax.html b/ideas/blog-syntax.html index 18d8361f..83dbb846 100644 --- a/ideas/blog-syntax.html +++ b/ideas/blog-syntax.html @@ -4,7 +4,7 @@ *斜体* ***加粗斜体***"/>

    博客语法渲染测试

    一级标题

    +***加粗斜体***"/>
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +

    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/ideas/first-idea.html b/ideas/first-idea.html index d66e3d13..3b6344bb 100644 --- a/ideas/first-idea.html +++ b/ideas/first-idea.html @@ -1,2 +1,2 @@ -<No Title> | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +<No Title> | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/ideas/newest.html b/ideas/newest.html index d1a10eb9..539ffc81 100644 --- a/ideas/newest.html +++ b/ideas/newest.html @@ -4,7 +4,7 @@ 然后这里是第二行。 这里是一些内容。"/>

    Kubernetes 入门 (1)

    这里是第一行, +这里是一些内容。"/>

    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +

    new lines!


    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/ideas/using-chart-js.html b/ideas/using-chart-js.html index b782e462..34aada6d 100644 --- a/ideas/using-chart-js.html +++ b/ideas/using-chart-js.html @@ -4,7 +4,7 @@ Introduce: - Chart.js: https://github.com/chartjs/Chart.js"/>

    About Chart.js

    testing for using chart js

    +- Chart.js: https://github.com/chartjs/Chart.js"/>

    About Chart.js

    testing for using chart js

    Use Chart.js in React.

    Introduce:

      @@ -71,4 +71,4 @@

      remark-mdx-chartjs data: [4,2,11,8,6,1,4] backgroundColor: "rgba(53, 162, 235, 0.5)"

    But it's not written in TypeScript, and raising a TS7016 error. -So raise an issue, and wait for the type definition.


    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +So raise an issue, and wait for the type definition.


    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/index.html b/index.html index fa5b574e..b4ab5977 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Ryo's Blog
    Ryo's Blog
    About Tech, Paint, and Games.
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +Ryo's Blog
    Ryo's Blog
    About Tech, Paint, and Games.
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml index 4efc64c7..8b306a1d 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1,52 +1,52 @@ -https://ryojerryyu.github.io/blog-next2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/articles2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/clips2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/ideas2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/articles/introduction-for-k8s-22024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/articles/introduction-for-k8s2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/articles/why-homogeneous2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/articles/graph-for-economics-22024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/articles/graph-for-economics-12024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/articles/use-paste-image-and-vscode-memo2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/articles/create-blog-cicd-by-github2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/articles/init-a-new-hexo-project2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/articles/Handy-heap-cheat-sheet2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/articles/The-beauty-of-design-parten2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/articles/Sort-algorithm2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/articles/python-dict2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/articles/the-using-in-cpp2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/articles/Building-this-blog2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/articles/hello-world2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/ideas/blog-syntax2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/ideas/using-chart-js2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/ideas/blog-in-next2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/ideas/first-idea2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/ideas/newest2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/kubernetes2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/devops2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/docker2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/cloud-native2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/blog2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/vscode2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/hexo2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/javascript2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/github2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/aws2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/ci-cd2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/iac2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/数据结构2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/算法2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/算法竞赛2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/设计模式2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/笔记2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/排序2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/python2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/c++2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/杂技2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/杂谈2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/nextjs2024-04-16T07:48:40.091Zdaily0.7 -https://ryojerryyu.github.io/blog-next/tags/cloud-computing2024-04-16T07:48:40.091Zdaily0.7 +https://ryojerryyu.github.io/blog-next2024-04-16T09:34:29.813Zdaily0.7 +https://ryojerryyu.github.io/blog-next/articles2024-04-16T09:34:29.813Zdaily0.7 +https://ryojerryyu.github.io/blog-next/clips2024-04-16T09:34:29.813Zdaily0.7 +https://ryojerryyu.github.io/blog-next/ideas2024-04-16T09:34:29.813Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags2024-04-16T09:34:29.813Zdaily0.7 +https://ryojerryyu.github.io/blog-next/articles/introduction-for-k8s-22024-04-16T09:34:29.813Zdaily0.7 +https://ryojerryyu.github.io/blog-next/articles/introduction-for-k8s2024-04-16T09:34:29.813Zdaily0.7 +https://ryojerryyu.github.io/blog-next/articles/why-homogeneous2024-04-16T09:34:29.813Zdaily0.7 +https://ryojerryyu.github.io/blog-next/articles/graph-for-economics-22024-04-16T09:34:29.813Zdaily0.7 +https://ryojerryyu.github.io/blog-next/articles/graph-for-economics-12024-04-16T09:34:29.813Zdaily0.7 +https://ryojerryyu.github.io/blog-next/articles/use-paste-image-and-vscode-memo2024-04-16T09:34:29.813Zdaily0.7 +https://ryojerryyu.github.io/blog-next/articles/create-blog-cicd-by-github2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/articles/init-a-new-hexo-project2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/articles/Handy-heap-cheat-sheet2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/articles/The-beauty-of-design-parten2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/articles/Sort-algorithm2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/articles/python-dict2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/articles/the-using-in-cpp2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/articles/Building-this-blog2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/articles/hello-world2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/ideas/blog-syntax2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/ideas/using-chart-js2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/ideas/blog-in-next2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/ideas/first-idea2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/ideas/newest2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/kubernetes2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/devops2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/docker2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/cloud-native2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/blog2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/vscode2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/hexo2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/javascript2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/github2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/aws2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/ci-cd2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/iac2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/数据结构2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/算法2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/算法竞赛2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/设计模式2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/笔记2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/排序2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/python2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/c++2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/杂技2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/杂谈2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/nextjs2024-04-16T09:34:29.814Zdaily0.7 +https://ryojerryyu.github.io/blog-next/tags/cloud-computing2024-04-16T09:34:29.814Zdaily0.7 \ No newline at end of file diff --git a/tags.html b/tags.html index 8a22d536..4f763268 100644 --- a/tags.html +++ b/tags.html @@ -1 +1 @@ -Tags | Ryo's Blog \ No newline at end of file +Tags | Ryo's Blog \ No newline at end of file diff --git a/tags/aws.html b/tags/aws.html index 656473a5..9288a6f8 100644 --- a/tags/aws.html +++ b/tags/aws.html @@ -1 +1 @@ -AWS | Ryo's Blog \ No newline at end of file +AWS | Ryo's Blog \ No newline at end of file diff --git a/tags/blog.html b/tags/blog.html index 1455c650..8650d89e 100644 --- a/tags/blog.html +++ b/tags/blog.html @@ -1 +1 @@ -Blog | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +Blog | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/tags/c++.html b/tags/c++.html index bc76a193..e771f3b0 100644 --- a/tags/c++.html +++ b/tags/c++.html @@ -1 +1 @@ -C++ | Ryo's Blog \ No newline at end of file +C++ | Ryo's Blog \ No newline at end of file diff --git a/tags/ci-cd.html b/tags/ci-cd.html index 92e26262..f8a24b2c 100644 --- a/tags/ci-cd.html +++ b/tags/ci-cd.html @@ -1 +1 @@ -CI/CD | Ryo's Blog \ No newline at end of file +CI/CD | Ryo's Blog \ No newline at end of file diff --git a/tags/cloud-computing.html b/tags/cloud-computing.html index 7037ec6c..ba30c250 100644 --- a/tags/cloud-computing.html +++ b/tags/cloud-computing.html @@ -1 +1 @@ -Cloud Computing | Ryo's Blog \ No newline at end of file +Cloud Computing | Ryo's Blog \ No newline at end of file diff --git a/tags/cloud-native.html b/tags/cloud-native.html index f770d364..e7ac5d6f 100644 --- a/tags/cloud-native.html +++ b/tags/cloud-native.html @@ -1 +1 @@ -Cloud Native | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +Cloud Native | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/tags/devops.html b/tags/devops.html index cf8d9c00..32fe0a41 100644 --- a/tags/devops.html +++ b/tags/devops.html @@ -1 +1 @@ -DevOps | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +DevOps | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/tags/docker.html b/tags/docker.html index fbd05845..e7c66c9c 100644 --- a/tags/docker.html +++ b/tags/docker.html @@ -1 +1 @@ -Docker | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +Docker | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/tags/github.html b/tags/github.html index 5b422384..0aa37969 100644 --- a/tags/github.html +++ b/tags/github.html @@ -1 +1 @@ -GitHub | Ryo's Blog \ No newline at end of file +GitHub | Ryo's Blog \ No newline at end of file diff --git a/tags/hexo.html b/tags/hexo.html index 9efa6c05..9e587d71 100644 --- a/tags/hexo.html +++ b/tags/hexo.html @@ -1 +1 @@ -Hexo | Ryo's Blog \ No newline at end of file +Hexo | Ryo's Blog \ No newline at end of file diff --git a/tags/iac.html b/tags/iac.html index 855542ea..43c8b0d0 100644 --- a/tags/iac.html +++ b/tags/iac.html @@ -1 +1 @@ -IaC | Ryo's Blog \ No newline at end of file +IaC | Ryo's Blog \ No newline at end of file diff --git a/tags/javascript.html b/tags/javascript.html index 0027dad8..c926f643 100644 --- a/tags/javascript.html +++ b/tags/javascript.html @@ -1 +1 @@ -JavaScript | Ryo's Blog \ No newline at end of file +JavaScript | Ryo's Blog \ No newline at end of file diff --git a/tags/kubernetes.html b/tags/kubernetes.html index 137795d5..eacb6d74 100644 --- a/tags/kubernetes.html +++ b/tags/kubernetes.html @@ -1 +1 @@ -Kubernetes | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +Kubernetes | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git a/tags/nextjs.html b/tags/nextjs.html index e91a0904..53d56339 100644 --- a/tags/nextjs.html +++ b/tags/nextjs.html @@ -1 +1 @@ -Nextjs | Ryo's Blog \ No newline at end of file +Nextjs | Ryo's Blog \ No newline at end of file diff --git a/tags/python.html b/tags/python.html index 39dd2094..62b56920 100644 --- a/tags/python.html +++ b/tags/python.html @@ -1 +1 @@ -Python | Ryo's Blog \ No newline at end of file +Python | Ryo's Blog \ No newline at end of file diff --git a/tags/vscode.html b/tags/vscode.html index 5e0d404c..80608921 100644 --- a/tags/vscode.html +++ b/tags/vscode.html @@ -1 +1 @@ -VSCode | Ryo's Blog \ No newline at end of file +VSCode | Ryo's Blog \ No newline at end of file diff --git "a/tags/\346\216\222\345\272\217.html" "b/tags/\346\216\222\345\272\217.html" index e44ad239..56f0d293 100644 --- "a/tags/\346\216\222\345\272\217.html" +++ "b/tags/\346\216\222\345\272\217.html" @@ -1 +1 @@ -排序 | Ryo's Blog \ No newline at end of file +排序 | Ryo's Blog \ No newline at end of file diff --git "a/tags/\346\225\260\346\215\256\347\273\223\346\236\204.html" "b/tags/\346\225\260\346\215\256\347\273\223\346\236\204.html" index 58c5fb6b..4fc716f2 100644 --- "a/tags/\346\225\260\346\215\256\347\273\223\346\236\204.html" +++ "b/tags/\346\225\260\346\215\256\347\273\223\346\236\204.html" @@ -1 +1 @@ -数据结构 | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +数据结构 | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git "a/tags/\346\235\202\346\212\200.html" "b/tags/\346\235\202\346\212\200.html" index a9f895af..bce28ead 100644 --- "a/tags/\346\235\202\346\212\200.html" +++ "b/tags/\346\235\202\346\212\200.html" @@ -1 +1 @@ -杂技 | Ryo's Blog \ No newline at end of file +杂技 | Ryo's Blog \ No newline at end of file diff --git "a/tags/\346\235\202\350\260\210.html" "b/tags/\346\235\202\350\260\210.html" index 1205bd28..b29285e4 100644 --- "a/tags/\346\235\202\350\260\210.html" +++ "b/tags/\346\235\202\350\260\210.html" @@ -1 +1 @@ -杂谈 | Ryo's Blog \ No newline at end of file +杂谈 | Ryo's Blog \ No newline at end of file diff --git "a/tags/\347\254\224\350\256\260.html" "b/tags/\347\254\224\350\256\260.html" index 50dcc706..cfc4f3ad 100644 --- "a/tags/\347\254\224\350\256\260.html" +++ "b/tags/\347\254\224\350\256\260.html" @@ -1 +1 @@ -笔记 | Ryo's Blog \ No newline at end of file +笔记 | Ryo's Blog \ No newline at end of file diff --git "a/tags/\347\256\227\346\263\225.html" "b/tags/\347\256\227\346\263\225.html" index 1a2ac235..21120cc8 100644 --- "a/tags/\347\256\227\346\263\225.html" +++ "b/tags/\347\256\227\346\263\225.html" @@ -1 +1 @@ -算法 | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file +算法 | Ryo's Blog
    © 2023 Ryo Jerry Yu. All rights reserved.
    \ No newline at end of file diff --git "a/tags/\347\256\227\346\263\225\347\253\236\350\265\233.html" "b/tags/\347\256\227\346\263\225\347\253\236\350\265\233.html" index 2ec175ac..d5aae87e 100644 --- "a/tags/\347\256\227\346\263\225\347\253\236\350\265\233.html" +++ "b/tags/\347\256\227\346\263\225\347\253\236\350\265\233.html" @@ -1 +1 @@ -算法竞赛 | Ryo's Blog \ No newline at end of file +算法竞赛 | Ryo's Blog \ No newline at end of file diff --git "a/tags/\350\256\276\350\256\241\346\250\241\345\274\217.html" "b/tags/\350\256\276\350\256\241\346\250\241\345\274\217.html" index 851da4ac..2236ceea 100644 --- "a/tags/\350\256\276\350\256\241\346\250\241\345\274\217.html" +++ "b/tags/\350\256\276\350\256\241\346\250\241\345\274\217.html" @@ -1 +1 @@ -设计模式 | Ryo's Blog \ No newline at end of file +设计模式 | Ryo's Blog \ No newline at end of file